aquasis-fe-components 1.2.13-b → 1.2.13-c

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.
@@ -71415,21 +71415,21 @@ const XNe = ({ size: e }) => {
71415
71415
  ) })
71416
71416
  }
71417
71417
  ) }) });
71418
- }, QNe = Fh(), V$e = QNe(XNe), JNe = (e) => {
71419
- const t = (r) => {
71420
- const { language: a, ...o } = r;
71421
- return Mt(() => {
71422
- Yn.changeLanguage(a);
71423
- }, [a]), /* @__PURE__ */ we.jsx(e, { ...o });
71418
+ }, QNe = Fh(), U$e = QNe(XNe), JNe = (e) => {
71419
+ var t, n;
71420
+ return {
71421
+ language: (t = e == null ? void 0 : e.app) == null ? void 0 : t.language,
71422
+ theme: (n = e == null ? void 0 : e.app) == null ? void 0 : n.theme
71424
71423
  };
71425
- return Fh((r) => {
71426
- var a, o;
71427
- return {
71428
- language: (a = r == null ? void 0 : r.app) == null ? void 0 : a.language,
71429
- theme: (o = r == null ? void 0 : r.app) == null ? void 0 : o.theme
71430
- };
71431
- })(t);
71432
- };
71424
+ }, ZNe = Fh(JNe);
71425
+ function e$e(e) {
71426
+ return ZNe((n) => {
71427
+ const { language: r, theme: a, dispatch: o, ...i } = n;
71428
+ return Mt(() => {
71429
+ Yn.changeLanguage(r);
71430
+ }, [r]), /* @__PURE__ */ we.jsx(e, { ...i, language: r, theme: n.theme, dispatch: o });
71431
+ });
71432
+ }
71433
71433
  function Mc(e, t) {
71434
71434
  e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Ja(e, t);
71435
71435
  }
@@ -71454,7 +71454,7 @@ var wc = /* @__PURE__ */ function() {
71454
71454
  }(), w0 = typeof window > "u";
71455
71455
  function l1() {
71456
71456
  }
71457
- function ZNe(e, t) {
71457
+ function t$e(e, t) {
71458
71458
  return typeof e == "function" ? e(t) : e;
71459
71459
  }
71460
71460
  function fu(e) {
@@ -71479,7 +71479,7 @@ function p2(e, t, n) {
71479
71479
  queryKey: e
71480
71480
  }), n] : [e || {}, t];
71481
71481
  }
71482
- function e$e(e, t) {
71482
+ function n$e(e, t) {
71483
71483
  if (e === !0 && t === !0 || e == null && t == null)
71484
71484
  return "all";
71485
71485
  if (e === !1 && t === !1)
@@ -71496,7 +71496,7 @@ function uh(e, t) {
71496
71496
  } else if (!N0(t.queryKey, c))
71497
71497
  return !1;
71498
71498
  }
71499
- var s = e$e(n, o);
71499
+ var s = n$e(n, o);
71500
71500
  if (s === "none")
71501
71501
  return !1;
71502
71502
  if (s !== "all") {
@@ -71525,9 +71525,9 @@ function Rf(e, t) {
71525
71525
  }
71526
71526
  function q2(e) {
71527
71527
  var t = z0(e);
71528
- return t$e(t);
71528
+ return r$e(t);
71529
71529
  }
71530
- function t$e(e) {
71530
+ function r$e(e) {
71531
71531
  return JSON.stringify(e, function(t, n) {
71532
71532
  return mu(n) ? Object.keys(n).sort().reduce(function(r, a) {
71533
71533
  return r[a] = n[a], r;
@@ -71555,7 +71555,7 @@ function $0(e, t) {
71555
71555
  }
71556
71556
  return t;
71557
71557
  }
71558
- function n$e(e, t) {
71558
+ function a$e(e, t) {
71559
71559
  if (e && !t || t && !e)
71560
71560
  return !1;
71561
71561
  for (var n in e)
@@ -71578,7 +71578,7 @@ function fh(e) {
71578
71578
  function c3(e) {
71579
71579
  return typeof e == "string" || Array.isArray(e);
71580
71580
  }
71581
- function r$e(e) {
71581
+ function o$e(e) {
71582
71582
  return new Promise(function(t) {
71583
71583
  setTimeout(t, e);
71584
71584
  });
@@ -71594,7 +71594,7 @@ function mI() {
71594
71594
  if (typeof AbortController == "function")
71595
71595
  return new AbortController();
71596
71596
  }
71597
- var a$e = /* @__PURE__ */ function(e) {
71597
+ var i$e = /* @__PURE__ */ function(e) {
71598
71598
  Mc(t, e);
71599
71599
  function t() {
71600
71600
  var r;
@@ -71632,7 +71632,7 @@ var a$e = /* @__PURE__ */ function(e) {
71632
71632
  }, n.isFocused = function() {
71633
71633
  return typeof this.focused == "boolean" ? this.focused : typeof document > "u" ? !0 : [void 0, "visible", "prerender"].includes(document.visibilityState);
71634
71634
  }, t;
71635
- }(wc), gi = new a$e(), o$e = /* @__PURE__ */ function(e) {
71635
+ }(wc), gi = new i$e(), c$e = /* @__PURE__ */ function(e) {
71636
71636
  Mc(t, e);
71637
71637
  function t() {
71638
71638
  var r;
@@ -71670,8 +71670,8 @@ var a$e = /* @__PURE__ */ function(e) {
71670
71670
  }, n.isOnline = function() {
71671
71671
  return typeof this.online == "boolean" ? this.online : typeof navigator > "u" || typeof navigator.onLine > "u" ? !0 : navigator.onLine;
71672
71672
  }, t;
71673
- }(wc), Tl = new o$e();
71674
- function i$e(e) {
71673
+ }(wc), Tl = new c$e();
71674
+ function l$e(e) {
71675
71675
  return Math.min(1e3 * Math.pow(2, e), 3e4);
71676
71676
  }
71677
71677
  function O0(e) {
@@ -71723,12 +71723,12 @@ var gI = function(t) {
71723
71723
  }, n.isTransportCancelable = O0(p), Promise.resolve(p).then(l).catch(function(h) {
71724
71724
  var v, g;
71725
71725
  if (!n.isResolved) {
71726
- var C = (v = t.retry) != null ? v : 3, b = (g = t.retryDelay) != null ? g : i$e, y = typeof b == "function" ? b(n.failureCount, h) : b, x = C === !0 || typeof C == "number" && n.failureCount < C || typeof C == "function" && C(n.failureCount, h);
71726
+ var C = (v = t.retry) != null ? v : 3, b = (g = t.retryDelay) != null ? g : l$e, y = typeof b == "function" ? b(n.failureCount, h) : b, x = C === !0 || typeof C == "number" && n.failureCount < C || typeof C == "function" && C(n.failureCount, h);
71727
71727
  if (r || !x) {
71728
71728
  s(h);
71729
71729
  return;
71730
71730
  }
71731
- n.failureCount++, t.onFail == null || t.onFail(n.failureCount, h), r$e(y).then(function() {
71731
+ n.failureCount++, t.onFail == null || t.onFail(n.failureCount, h), o$e(y).then(function() {
71732
71732
  if (!gi.isFocused() || !Tl.isOnline())
71733
71733
  return d();
71734
71734
  }).then(function() {
@@ -71739,7 +71739,7 @@ var gI = function(t) {
71739
71739
  }
71740
71740
  };
71741
71741
  f();
71742
- }, c$e = /* @__PURE__ */ function() {
71742
+ }, s$e = /* @__PURE__ */ function() {
71743
71743
  function e() {
71744
71744
  this.queue = [], this.transactions = 0, this.notifyFn = function(n) {
71745
71745
  n();
@@ -71785,14 +71785,14 @@ var gI = function(t) {
71785
71785
  }, t.setBatchNotifyFunction = function(r) {
71786
71786
  this.batchNotifyFn = r;
71787
71787
  }, e;
71788
- }(), Pn = new c$e(), hI = console;
71788
+ }(), Pn = new s$e(), hI = console;
71789
71789
  function R0() {
71790
71790
  return hI;
71791
71791
  }
71792
- function l$e(e) {
71792
+ function u$e(e) {
71793
71793
  hI = e;
71794
71794
  }
71795
- var s$e = /* @__PURE__ */ function() {
71795
+ var d$e = /* @__PURE__ */ function() {
71796
71796
  function e(n) {
71797
71797
  this.abortSignalConsumed = !1, this.hadObservers = !1, this.defaultOptions = n.defaultOptions, this.setOptions(n.options), this.observers = [], this.cache = n.cache, this.queryKey = n.queryKey, this.queryHash = n.queryHash, this.initialState = n.state || this.getDefaultState(this.options), this.state = this.initialState, this.meta = n.meta, this.scheduleGc();
71798
71798
  }
@@ -71812,7 +71812,7 @@ var s$e = /* @__PURE__ */ function() {
71812
71812
  }, t.optionalRemove = function() {
71813
71813
  this.observers.length || (this.state.isFetching ? this.hadObservers && this.scheduleGc() : this.cache.remove(this));
71814
71814
  }, t.setData = function(r, a) {
71815
- var o, i, c = this.state.data, l = ZNe(r, c);
71815
+ var o, i, c = this.state.data, l = t$e(r, c);
71816
71816
  return (o = (i = this.options).isDataEqual) != null && o.call(i, c, l) ? l = c : this.options.structuralSharing !== !1 && (l = $0(c, l)), this.dispatch({
71817
71817
  data: l,
71818
71818
  type: "success",
@@ -72043,7 +72043,7 @@ var s$e = /* @__PURE__ */ function() {
72043
72043
  return r;
72044
72044
  }
72045
72045
  }, e;
72046
- }(), u$e = /* @__PURE__ */ function(e) {
72046
+ }(), f$e = /* @__PURE__ */ function(e) {
72047
72047
  Mc(t, e);
72048
72048
  function t(r) {
72049
72049
  var a;
@@ -72052,7 +72052,7 @@ var s$e = /* @__PURE__ */ function() {
72052
72052
  var n = t.prototype;
72053
72053
  return n.build = function(a, o, i) {
72054
72054
  var c, l = o.queryKey, s = (c = o.queryHash) != null ? c : Rf(l, o), d = this.get(s);
72055
- return d || (d = new s$e({
72055
+ return d || (d = new d$e({
72056
72056
  cache: this,
72057
72057
  queryKey: l,
72058
72058
  queryHash: s,
@@ -72117,9 +72117,9 @@ var s$e = /* @__PURE__ */ function() {
72117
72117
  });
72118
72118
  });
72119
72119
  }, t;
72120
- }(wc), d$e = /* @__PURE__ */ function() {
72120
+ }(wc), m$e = /* @__PURE__ */ function() {
72121
72121
  function e(n) {
72122
- this.options = le({}, n.defaultOptions, n.options), this.mutationId = n.mutationId, this.mutationCache = n.mutationCache, this.observers = [], this.state = n.state || f$e(), this.meta = n.meta;
72122
+ this.options = le({}, n.defaultOptions, n.options), this.mutationId = n.mutationId, this.mutationCache = n.mutationCache, this.observers = [], this.state = n.state || p$e(), this.meta = n.meta;
72123
72123
  }
72124
72124
  var t = e.prototype;
72125
72125
  return t.setState = function(r) {
@@ -72203,14 +72203,14 @@ var s$e = /* @__PURE__ */ function() {
72203
72203
  }), this.retryer.promise;
72204
72204
  }, t.dispatch = function(r) {
72205
72205
  var a = this;
72206
- this.state = m$e(this.state, r), Pn.batch(function() {
72206
+ this.state = g$e(this.state, r), Pn.batch(function() {
72207
72207
  a.observers.forEach(function(o) {
72208
72208
  o.onMutationUpdate(r);
72209
72209
  }), a.mutationCache.notify(a);
72210
72210
  });
72211
72211
  }, e;
72212
72212
  }();
72213
- function f$e() {
72213
+ function p$e() {
72214
72214
  return {
72215
72215
  context: void 0,
72216
72216
  data: void 0,
@@ -72221,7 +72221,7 @@ function f$e() {
72221
72221
  variables: void 0
72222
72222
  };
72223
72223
  }
72224
- function m$e(e, t) {
72224
+ function g$e(e, t) {
72225
72225
  switch (t.type) {
72226
72226
  case "failed":
72227
72227
  return le({}, e, {
@@ -72265,7 +72265,7 @@ function m$e(e, t) {
72265
72265
  return e;
72266
72266
  }
72267
72267
  }
72268
- var p$e = /* @__PURE__ */ function(e) {
72268
+ var h$e = /* @__PURE__ */ function(e) {
72269
72269
  Mc(t, e);
72270
72270
  function t(r) {
72271
72271
  var a;
@@ -72273,7 +72273,7 @@ var p$e = /* @__PURE__ */ function(e) {
72273
72273
  }
72274
72274
  var n = t.prototype;
72275
72275
  return n.build = function(a, o, i) {
72276
- var c = new d$e({
72276
+ var c = new m$e({
72277
72277
  mutationCache: this,
72278
72278
  mutationId: ++this.mutationId,
72279
72279
  options: a.defaultMutationOptions(o),
@@ -72329,7 +72329,7 @@ var p$e = /* @__PURE__ */ function(e) {
72329
72329
  });
72330
72330
  }, t;
72331
72331
  }(wc);
72332
- function g$e() {
72332
+ function v$e() {
72333
72333
  return {
72334
72334
  onFetch: function(t) {
72335
72335
  t.fetchFn = function() {
@@ -72362,7 +72362,7 @@ function g$e() {
72362
72362
  var E = typeof d < "u", w = E ? d : ph(t.options, p);
72363
72363
  L = S(p, E, w);
72364
72364
  } else if (m) {
72365
- var M = typeof d < "u", z = M ? d : h$e(t.options, p);
72365
+ var M = typeof d < "u", z = M ? d : b$e(t.options, p);
72366
72366
  L = S(p, M, z, !0);
72367
72367
  } else
72368
72368
  (function() {
@@ -72397,12 +72397,12 @@ function g$e() {
72397
72397
  function ph(e, t) {
72398
72398
  return e.getNextPageParam == null ? void 0 : e.getNextPageParam(t[t.length - 1], t);
72399
72399
  }
72400
- function h$e(e, t) {
72400
+ function b$e(e, t) {
72401
72401
  return e.getPreviousPageParam == null ? void 0 : e.getPreviousPageParam(t[0], t);
72402
72402
  }
72403
- var v$e = /* @__PURE__ */ function() {
72403
+ var C$e = /* @__PURE__ */ function() {
72404
72404
  function e(n) {
72405
- n === void 0 && (n = {}), this.queryCache = n.queryCache || new u$e(), this.mutationCache = n.mutationCache || new p$e(), this.defaultOptions = n.defaultOptions || {}, this.queryDefaults = [], this.mutationDefaults = [];
72405
+ n === void 0 && (n = {}), this.queryCache = n.queryCache || new f$e(), this.mutationCache = n.mutationCache || new h$e(), this.defaultOptions = n.defaultOptions || {}, this.queryDefaults = [], this.mutationDefaults = [];
72406
72406
  }
72407
72407
  var t = e.prototype;
72408
72408
  return t.mount = function() {
@@ -72501,7 +72501,7 @@ var v$e = /* @__PURE__ */ function() {
72501
72501
  return this.fetchQuery(r, a, o).then(l1).catch(l1);
72502
72502
  }, t.fetchInfiniteQuery = function(r, a, o) {
72503
72503
  var i = Il(r, a, o);
72504
- return i.behavior = g$e(), this.fetchQuery(i);
72504
+ return i.behavior = v$e(), this.fetchQuery(i);
72505
72505
  }, t.prefetchInfiniteQuery = function(r, a, o) {
72506
72506
  return this.fetchInfiniteQuery(r, a, o).then(l1).catch(l1);
72507
72507
  }, t.cancelMutations = function() {
@@ -72565,7 +72565,7 @@ var v$e = /* @__PURE__ */ function() {
72565
72565
  }, t.clear = function() {
72566
72566
  this.queryCache.clear(), this.mutationCache.clear();
72567
72567
  }, e;
72568
- }(), b$e = /* @__PURE__ */ function(e) {
72568
+ }(), y$e = /* @__PURE__ */ function(e) {
72569
72569
  Mc(t, e);
72570
72570
  function t(r, a) {
72571
72571
  var o;
@@ -72740,7 +72740,7 @@ var v$e = /* @__PURE__ */ function() {
72740
72740
  });
72741
72741
  }, n.updateResult = function(a) {
72742
72742
  var o = this.currentResult;
72743
- if (this.currentResult = this.createResult(this.currentQuery, this.options), this.currentResultState = this.currentQuery.state, this.currentResultOptions = this.options, !n$e(this.currentResult, o)) {
72743
+ if (this.currentResult = this.createResult(this.currentQuery, this.options), this.currentResultState = this.currentQuery.state, this.currentResultOptions = this.options, !a$e(this.currentResult, o)) {
72744
72744
  var i = {
72745
72745
  cache: !0
72746
72746
  };
@@ -72767,11 +72767,11 @@ var v$e = /* @__PURE__ */ function() {
72767
72767
  });
72768
72768
  }, t;
72769
72769
  }(wc);
72770
- function C$e(e, t) {
72770
+ function S$e(e, t) {
72771
72771
  return t.enabled !== !1 && !e.state.dataUpdatedAt && !(e.state.status === "error" && t.retryOnMount === !1);
72772
72772
  }
72773
72773
  function gh(e, t) {
72774
- return C$e(e, t) || e.state.dataUpdatedAt > 0 && pu(e, t, t.refetchOnMount);
72774
+ return S$e(e, t) || e.state.dataUpdatedAt > 0 && pu(e, t, t.refetchOnMount);
72775
72775
  }
72776
72776
  function pu(e, t, n) {
72777
72777
  if (t.enabled !== !1) {
@@ -72786,15 +72786,15 @@ function hh(e, t, n, r) {
72786
72786
  function Pf(e, t) {
72787
72787
  return e.isStaleByTime(t.staleTime);
72788
72788
  }
72789
- var y$e = hi.unstable_batchedUpdates;
72790
- Pn.setBatchNotifyFunction(y$e);
72791
- var S$e = console;
72792
- l$e(S$e);
72789
+ var x$e = hi.unstable_batchedUpdates;
72790
+ Pn.setBatchNotifyFunction(x$e);
72791
+ var L$e = console;
72792
+ u$e(L$e);
72793
72793
  var vh = /* @__PURE__ */ ee.createContext(void 0), vI = /* @__PURE__ */ ee.createContext(!1);
72794
72794
  function bI(e) {
72795
72795
  return e && typeof window < "u" ? (window.ReactQueryClientContext || (window.ReactQueryClientContext = vh), window.ReactQueryClientContext) : vh;
72796
72796
  }
72797
- var x$e = function() {
72797
+ var E$e = function() {
72798
72798
  var t = ee.useContext(bI(ee.useContext(vI)));
72799
72799
  if (!t)
72800
72800
  throw new Error("No QueryClient set, use QueryClientProvider to set one");
@@ -72813,7 +72813,7 @@ var x$e = function() {
72813
72813
  value: n
72814
72814
  }, o));
72815
72815
  };
72816
- function L$e() {
72816
+ function M$e() {
72817
72817
  var e = !1;
72818
72818
  return {
72819
72819
  clearReset: function() {
@@ -72827,14 +72827,14 @@ function L$e() {
72827
72827
  }
72828
72828
  };
72829
72829
  }
72830
- var E$e = /* @__PURE__ */ ee.createContext(L$e()), M$e = function() {
72831
- return ee.useContext(E$e);
72830
+ var w$e = /* @__PURE__ */ ee.createContext(M$e()), z$e = function() {
72831
+ return ee.useContext(w$e);
72832
72832
  };
72833
- function w$e(e, t, n) {
72833
+ function N$e(e, t, n) {
72834
72834
  return typeof t == "function" ? t.apply(void 0, n) : typeof t == "boolean" ? t : !!e;
72835
72835
  }
72836
- function z$e(e, t) {
72837
- var n = ee.useRef(!1), r = ee.useState(0), a = r[1], o = x$e(), i = M$e(), c = o.defaultQueryObserverOptions(e);
72836
+ function $$e(e, t) {
72837
+ var n = ee.useRef(!1), r = ee.useState(0), a = r[1], o = E$e(), i = z$e(), c = o.defaultQueryObserverOptions(e);
72838
72838
  c.optimisticResults = !0, c.onError && (c.onError = Pn.batchCalls(c.onError)), c.onSuccess && (c.onSuccess = Pn.batchCalls(c.onSuccess)), c.onSettled && (c.onSettled = Pn.batchCalls(c.onSettled)), c.suspense && (typeof c.staleTime != "number" && (c.staleTime = 1e3), c.cacheTime === 0 && (c.cacheTime = 1)), (c.suspense || c.useErrorBoundary) && (i.isReset() || (c.retryOnMount = !1));
72839
72839
  var l = ee.useState(function() {
72840
72840
  return new t(o, c);
@@ -72860,35 +72860,35 @@ function z$e(e, t) {
72860
72860
  }).catch(function(f) {
72861
72861
  i.clearReset(), c.onError == null || c.onError(f), c.onSettled == null || c.onSettled(void 0, f);
72862
72862
  });
72863
- if (d.isError && !i.isReset() && !d.isFetching && w$e(c.suspense, c.useErrorBoundary, [d.error, s.getCurrentQuery()]))
72863
+ if (d.isError && !i.isReset() && !d.isFetching && N$e(c.suspense, c.useErrorBoundary, [d.error, s.getCurrentQuery()]))
72864
72864
  throw d.error;
72865
72865
  return c.notifyOnChangeProps === "tracked" && (d = s.trackResult(d, c)), d;
72866
72866
  }
72867
72867
  function CI(e, t, n) {
72868
72868
  var r = Il(e, t, n);
72869
- return z$e(r, b$e);
72869
+ return $$e(r, y$e);
72870
72870
  }
72871
72871
  var Yt = /* @__PURE__ */ ((e) => (e.App = "idApp", e.Version = "version", e.DeployDate = "releaseDate", e.ReleasePages = "gaReleasePages", e.Fields = "gaReleasePagesContent", e.Title = "title", e.Description = "description", e.Image = "idFile", e.Order = "order", e.NoImage = "noImage", e))(Yt || {}), If = /* @__PURE__ */ ((e) => (e.GetApps = "GetApps", e.GetReleases = "GetReleases", e))(If || {});
72872
- const N$e = async () => {
72872
+ const O$e = async () => {
72873
72873
  const e = window.globalAuthUrl, { data: t } = await da.get(`${e}/getApps`);
72874
72874
  return t;
72875
- }, $$e = async (e) => {
72875
+ }, R$e = async (e) => {
72876
72876
  const t = window.globalAuthUrl, { data: n } = await da.post(`${t}/ListReleases`, e);
72877
72877
  return n;
72878
- }, O$e = async (e) => {
72878
+ }, P$e = async (e) => {
72879
72879
  const t = window.globalAuthUrl, { data: n } = await da.post(`${t}/MaintainReleases`, e);
72880
72880
  return n;
72881
- }, R$e = async (e, t) => {
72881
+ }, I$e = async (e, t) => {
72882
72882
  const n = window.globalAuthUrl, { data: r } = await da.post(`${n}/ReadNotification`, { idRelease: e, userId: t });
72883
72883
  return r;
72884
- }, yI = () => CI([If.GetApps], async () => await N$e()), P$e = (e) => {
72884
+ }, yI = () => CI([If.GetApps], async () => await O$e()), T$e = (e) => {
72885
72885
  const { idApp: t, userId: n, lastDeployed: r } = e;
72886
72886
  return CI(
72887
72887
  [If.GetReleases, t, n, r],
72888
- async () => await $$e(e),
72888
+ async () => await R$e(e),
72889
72889
  { enabled: !!t }
72890
72890
  );
72891
- }, I$e = ({ index: e }) => {
72891
+ }, D$e = ({ index: e }) => {
72892
72892
  const { requiredField: t } = S5();
72893
72893
  return /* @__PURE__ */ we.jsx(mn.List, { name: [e, Yt.Fields], children: (n, { remove: r }) => /* @__PURE__ */ we.jsxs(we.Fragment, { children: [
72894
72894
  /* @__PURE__ */ we.jsx(L0, { fieldName: "idReleasePage", hidden: !0 }),
@@ -72917,7 +72917,7 @@ const N$e = async () => {
72917
72917
  ) }) })
72918
72918
  ] }, a)) })
72919
72919
  ] }) });
72920
- }, T$e = C1(({ changeSlide: e }, t) => {
72920
+ }, A$e = C1(({ changeSlide: e }, t) => {
72921
72921
  const [n, r] = Et([]), a = mn.useFormInstance(), o = mn.useWatch(Yt.ReleasePages, a), i = (s) => ({ file: d, fileList: f }) => {
72922
72922
  const m = s[0], p = s[1], h = o[m];
72923
72923
  r(f), U2e(d.originFileObj, (v) => {
@@ -72943,7 +72943,7 @@ const N$e = async () => {
72943
72943
  const p = (v = o == null ? void 0 : o[f]) == null ? void 0 : v[Yt.Image], h = (g = o == null ? void 0 : o[f]) == null ? void 0 : g[Yt.NoImage];
72944
72944
  return /* @__PURE__ */ we.jsx("div", { children: /* @__PURE__ */ we.jsxs(Rr, { gutter: [8, 16], style: { marginBottom: 35 }, children: [
72945
72945
  /* @__PURE__ */ we.jsx(d1, { span: 24, children: /* @__PURE__ */ we.jsxs(Rr, { gutter: 8, children: [
72946
- /* @__PURE__ */ we.jsx(d1, { span: h ? 24 : 12, children: /* @__PURE__ */ we.jsx(I$e, { index: f }) }),
72946
+ /* @__PURE__ */ we.jsx(d1, { span: h ? 24 : 12, children: /* @__PURE__ */ we.jsx(D$e, { index: f }) }),
72947
72947
  !h && /* @__PURE__ */ we.jsx(d1, { span: 12, children: /* @__PURE__ */ we.jsx(ba, { bordered: !0, styles: { body: { display: "flex", justifyContent: "center", padding: 2 } }, children: /* @__PURE__ */ we.jsx(mn.Item, { ...m, name: [f, Yt.Image], noStyle: !0, children: /* @__PURE__ */ we.jsx(
72948
72948
  C5,
72949
72949
  {
@@ -72970,7 +72970,7 @@ const N$e = async () => {
72970
72970
  ] }) }, d);
72971
72971
  }) })
72972
72972
  ] }) });
72973
- }), jr = "RELEASE-NOTES", D$e = ({
72973
+ }), jr = "RELEASE-NOTES", _$e = ({
72974
72974
  addBtnLabel: e,
72975
72975
  addBtnTooltipText: t,
72976
72976
  release2edit: n,
@@ -73011,7 +73011,7 @@ const N$e = async () => {
73011
73011
  [Yt.Fields]: A[Yt.Fields].map((H, F) => ({ ...H, order: F }))
73012
73012
  }))
73013
73013
  };
73014
- O$e(_).then(() => {
73014
+ P$e(_).then(() => {
73015
73015
  x(), l0.success(At("GENERAL.MESSAGES.SUCCESS.ITEM_CREATE", { item: At(`${jr}.TEXT_SINGULAR`) })), o && o();
73016
73016
  }).catch((A) => {
73017
73017
  var H;
@@ -73115,13 +73115,13 @@ const N$e = async () => {
73115
73115
  rules: g
73116
73116
  }
73117
73117
  ) }),
73118
- /* @__PURE__ */ we.jsx(d1, { span: 24, children: /* @__PURE__ */ we.jsx(ba, { styles: { body: { background: h("PrimaryColorBgContainer") } }, children: /* @__PURE__ */ we.jsx(T$e, { ref: v, changeSlide: y }) }) })
73118
+ /* @__PURE__ */ we.jsx(d1, { span: 24, children: /* @__PURE__ */ we.jsx(ba, { styles: { body: { background: h("PrimaryColorBgContainer") } }, children: /* @__PURE__ */ we.jsx(A$e, { ref: v, changeSlide: y }) }) })
73119
73119
  ] })
73120
73120
  ] }) })
73121
73121
  ] });
73122
- }, { Title: A$e, Text: _$e } = Ro, k$e = () => {
73122
+ }, { Title: k$e, Text: F$e } = Ro, j$e = () => {
73123
73123
  var E, w;
73124
- const [e, t] = Et(!1), [n, r] = Et(!1), [a, o] = Et(0), i = gc(), c = Be(null), l = so(Gr.AppId), s = so(Gr.UserId), { data: d } = yI(), { data: f } = P$e({ idApp: l, lastDeployed: !0, userId: s }), m = f == null ? void 0 : f[0], p = d == null ? void 0 : d.find((M) => M.id === l);
73124
+ const [e, t] = Et(!1), [n, r] = Et(!1), [a, o] = Et(0), i = gc(), c = Be(null), l = so(Gr.AppId), s = so(Gr.UserId), { data: d } = yI(), { data: f } = T$e({ idApp: l, lastDeployed: !0, userId: s }), m = f == null ? void 0 : f[0], p = d == null ? void 0 : d.find((M) => M.id === l);
73125
73125
  Mt(() => {
73126
73126
  if (f != null && f.length) {
73127
73127
  const M = f[0], z = !M.readRelease && !!M.isDeployed;
@@ -73130,7 +73130,7 @@ const N$e = async () => {
73130
73130
  }, [f]);
73131
73131
  const h = () => {
73132
73132
  const M = f == null ? void 0 : f[0];
73133
- n && (M != null && M.isDeployed) && R$e(M == null ? void 0 : M.idRelease, s), t(!1);
73133
+ n && (M != null && M.isDeployed) && I$e(M == null ? void 0 : M.idRelease, s), t(!1);
73134
73134
  }, v = () => {
73135
73135
  var M;
73136
73136
  return (M = c.current) == null ? void 0 : M.next();
@@ -73150,19 +73150,19 @@ const N$e = async () => {
73150
73150
  );
73151
73151
  return /* @__PURE__ */ we.jsx(V1, { open: e, title: L, onCancel: h, width: "70%", footer: S, children: /* @__PURE__ */ we.jsx(Bd, { infinite: !1, ref: c, afterChange: C, children: (w = m == null ? void 0 : m.gaReleasePages) == null ? void 0 : w.map(({ idFile: M, gaReleasePagesContent: z }, O) => /* @__PURE__ */ we.jsx("div", { children: /* @__PURE__ */ we.jsxs(Rr, { gutter: [16, 16], style: { marginBottom: 35 }, children: [
73152
73152
  /* @__PURE__ */ we.jsx(d1, { span: M ? 12 : 24, children: /* @__PURE__ */ we.jsx(cr, { gap: 16, vertical: !0, children: z.map(({ title: T, description: D }, $) => /* @__PURE__ */ we.jsxs(cr, { vertical: !0, children: [
73153
- /* @__PURE__ */ we.jsx(A$e, { level: 5, children: T }),
73154
- /* @__PURE__ */ we.jsx(_$e, { style: { opacity: 0.5 }, children: D })
73153
+ /* @__PURE__ */ we.jsx(k$e, { level: 5, children: T }),
73154
+ /* @__PURE__ */ we.jsx(F$e, { style: { opacity: 0.5 }, children: D })
73155
73155
  ] }, `${O}-${$}`)) }) }),
73156
73156
  !!M && /* @__PURE__ */ we.jsx(d1, { span: 12, children: /* @__PURE__ */ we.jsx(cr, { justify: "center", children: /* @__PURE__ */ we.jsx(ba, { bordered: !0, styles: { body: { display: "flex", justifyContent: "center", padding: 2 } }, children: /* @__PURE__ */ we.jsx(zs, { src: sE(M), style: { maxHeight: 600, borderRadius: 8 } }) }) }) })
73157
73157
  ] }) }, O)) }) });
73158
- }, Ch = new v$e({
73158
+ }, Ch = new C$e({
73159
73159
  defaultOptions: {
73160
73160
  queries: {
73161
73161
  retry: 2
73162
73162
  }
73163
73163
  }
73164
- }), F$e = ({ showAddBtn: e, ...t }) => e ? /* @__PURE__ */ we.jsx(k8, { children: /* @__PURE__ */ we.jsx(bh, { client: Ch, children: /* @__PURE__ */ we.jsx(D$e, { ...t }) }) }) : /* @__PURE__ */ we.jsx(k8, { children: /* @__PURE__ */ we.jsx(bh, { client: Ch, children: /* @__PURE__ */ we.jsx(k$e, {}) }) }), W$e = JNe(F$e);
73164
+ }), B$e = ({ showAddBtn: e, ...t }) => e ? /* @__PURE__ */ we.jsx(k8, { children: /* @__PURE__ */ we.jsx(bh, { client: Ch, children: /* @__PURE__ */ we.jsx(_$e, { ...t }) }) }) : /* @__PURE__ */ we.jsx(k8, { children: /* @__PURE__ */ we.jsx(bh, { client: Ch, children: /* @__PURE__ */ we.jsx(j$e, {}) }) }), K$e = e$e(B$e);
73165
73165
  export {
73166
- V$e as Helpdesk,
73167
- W$e as ReleaseNote
73166
+ U$e as Helpdesk,
73167
+ K$e as ReleaseNote
73168
73168
  };
@@ -1,4 +1,4 @@
1
- (function(sr,O){typeof exports=="object"&&typeof module<"u"?O(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],O):(sr=typeof globalThis<"u"?globalThis:sr||self,O(sr["Aquasis FE Components"]={},sr.React,sr.ReactDOM))})(this,function(sr,O,Tn){"use strict";var $Ne=Object.defineProperty;var PNe=(sr,O,Tn)=>O in sr?$Ne(sr,O,{enumerable:!0,configurable:!0,writable:!0,value:Tn}):sr[O]=Tn;var Sf=(sr,O,Tn)=>PNe(sr,typeof O!="symbol"?O+"":O,Tn);var xf=document.createElement("style");xf.textContent=`.helpdesk__container .ant-card .ant-card-body{height:100%;max-height:80dvh;overflow-y:auto}.helpdesk__content{border-radius:10px;padding:10px;max-width:400px;background-color:#f7f7f7}.helpdesk__title{padding:10px 16px}.helpdesk__title.ant-typography{color:#60c5cf}.helpdesk__fields-files{flex-direction:column;margin-top:10px;width:100%}.helpdesk__fields-files .ant-upload-list{margin-top:5px;width:100%}body.dark .helpdesk__content{background-color:#333}.form__item-multiTable .ant-transfer-list-body-customize-wrapper{overflow-y:auto}.release-notes-image.ant-upload-wrapper{width:100%}*{padding:0;margin:0;box-sizing:border-box}body{height:100vh;width:100vw;overflow:hidden;background-color:#fff}body #root{height:100%}body ::placeholder{color:#919191}body .map-container{height:90dvh;width:100%}body .map-container canvas{border-radius:8px}body .map-widgets-wrapper{padding:0;min-width:400px;max-height:540px;overflow-y:auto}body .page__title-container{margin:0;padding:10px 20px;height:auto;border-bottom:1px solid rgba(5,5,5,.06)}body .page__title-container h1,body .page__title-container h2,body .page__title-container h3,body .page__title-container h4,body .page__title-container h5{color:#60c5cf;margin:0}body .recaptcha{display:flex;justify-content:center;width:100%;margin-bottom:24px}body .ant-layout-sider-trigger{border-right:1px solid rgba(5,5,5,.06)}body .ant-skeleton.ant-skeleton-element,body .ant-skeleton.ant-skeleton-element .ant-skeleton-image{width:100%;height:100%}body .filter__buttons{display:flex;align-items:center;justify-content:center;width:100%;gap:10px}body .ant-form-item .ant-form-item-control-input{min-height:32px}body .ant-form-item .ant-form-item-control-input .ant-form-item-control-input-content{display:flex}body .ant-form-item .ant-form-item-control-input .ant-form-item-control-input-content .ant-upload-wrapper{display:flex;align-items:center}body .ant-form-item .ant-form-item-control-input .ant-form-item-control-input-content .ant-upload-wrapper .ant-upload-list-item{margin:0 0 0 10px}body .avatar-uploader.ant-upload-wrapper.ant-upload-picture-circle-wrapper .ant-upload,body .avatar-uploader.ant-upload-wrapper.ant-upload-picture-circle-wrapper .ant-upload-select{margin-inline-end:0;margin-bottom:0}body .avatar-uploader .float-btn{opacity:0;position:absolute;bottom:3px;left:40%;transition:opacity .5s ease;display:flex;justify-content:center;align-items:center}body .avatar-uploader .float-btn-container{width:100%;height:100%;display:flex;justify-content:center}body .avatar-uploader .float-btn-container:hover .float-btn{opacity:1}body .rule-form-badge{margin-right:5px}body .rule-form-badge.ant-badge.ant-badge-status .ant-badge-status-dot{width:20px;height:20px}body .skeleton__loading{height:100%}body .ant-list-items .ant-list-item .ant-list-item-action{margin-inline-start:12px}body .ant-notification .ant-notification-notice.table-notification{min-width:500px}body .ant-notification .ant-notification-notice.notification-error{width:250px;padding:14px 16px}body .ant-notification .ant-notification-notice.notification-error .ant-notification-notice-icon{font-size:20px}body .ant-notification .ant-notification-notice.notification-error .ant-notification-notice-close{top:14px;right:14px}body .ant-notification .ant-notification-notice.notification-error .ant-notification-notice-message{font-size:14px;margin-inline-start:30px}body .ant-notification .ant-notification-notice.notification-error .ant-notification-notice-description{font-size:12px;margin-inline-start:30px}body .ant-spin-nested-loading,body .ant-spin-nested-loading .ant-spin-container{height:100%;width:100%}body .ant-skeleton.ant-skeleton-element.custom-skeleton{display:flex}body .esri-attribution{display:none}body .ant-carousel .slick-slider .slick-arrow{color:#60c5cf}body .ant-carousel .slick-slider .slick-dots>li>button{background:#60c5cf}body .ant-carousel .slick-slider .slick-list .slick-track .slick-slide{width:100%}body.dark{background-color:#333}body.dark .ant-layout-sider-trigger{border-right:1px solid rgba(253,253,253,.12)}body.dark .page__title-container{border-bottom:1px solid rgba(253,253,253,.12)}body.dark .ant-popover .ant-popover-arrow{--antd-arrow-background-color: #3b3b3b}body.dark .ant-popover .ant-popover-content .ant-popover-inner{background-color:#3b3b3b}body.dark .ant-badge .ant-badge-count{color:#fff;box-shadow:0 0 0 1px #3b3b3b}
1
+ (function(sr,O){typeof exports=="object"&&typeof module<"u"?O(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],O):(sr=typeof globalThis<"u"?globalThis:sr||self,O(sr["Aquasis FE Components"]={},sr.React,sr.ReactDOM))})(this,function(sr,O,Tn){"use strict";var PNe=Object.defineProperty;var INe=(sr,O,Tn)=>O in sr?PNe(sr,O,{enumerable:!0,configurable:!0,writable:!0,value:Tn}):sr[O]=Tn;var Sf=(sr,O,Tn)=>INe(sr,typeof O!="symbol"?O+"":O,Tn);var xf=document.createElement("style");xf.textContent=`.helpdesk__container .ant-card .ant-card-body{height:100%;max-height:80dvh;overflow-y:auto}.helpdesk__content{border-radius:10px;padding:10px;max-width:400px;background-color:#f7f7f7}.helpdesk__title{padding:10px 16px}.helpdesk__title.ant-typography{color:#60c5cf}.helpdesk__fields-files{flex-direction:column;margin-top:10px;width:100%}.helpdesk__fields-files .ant-upload-list{margin-top:5px;width:100%}body.dark .helpdesk__content{background-color:#333}.form__item-multiTable .ant-transfer-list-body-customize-wrapper{overflow-y:auto}.release-notes-image.ant-upload-wrapper{width:100%}*{padding:0;margin:0;box-sizing:border-box}body{height:100vh;width:100vw;overflow:hidden;background-color:#fff}body #root{height:100%}body ::placeholder{color:#919191}body .map-container{height:90dvh;width:100%}body .map-container canvas{border-radius:8px}body .map-widgets-wrapper{padding:0;min-width:400px;max-height:540px;overflow-y:auto}body .page__title-container{margin:0;padding:10px 20px;height:auto;border-bottom:1px solid rgba(5,5,5,.06)}body .page__title-container h1,body .page__title-container h2,body .page__title-container h3,body .page__title-container h4,body .page__title-container h5{color:#60c5cf;margin:0}body .recaptcha{display:flex;justify-content:center;width:100%;margin-bottom:24px}body .ant-layout-sider-trigger{border-right:1px solid rgba(5,5,5,.06)}body .ant-skeleton.ant-skeleton-element,body .ant-skeleton.ant-skeleton-element .ant-skeleton-image{width:100%;height:100%}body .filter__buttons{display:flex;align-items:center;justify-content:center;width:100%;gap:10px}body .ant-form-item .ant-form-item-control-input{min-height:32px}body .ant-form-item .ant-form-item-control-input .ant-form-item-control-input-content{display:flex}body .ant-form-item .ant-form-item-control-input .ant-form-item-control-input-content .ant-upload-wrapper{display:flex;align-items:center}body .ant-form-item .ant-form-item-control-input .ant-form-item-control-input-content .ant-upload-wrapper .ant-upload-list-item{margin:0 0 0 10px}body .avatar-uploader.ant-upload-wrapper.ant-upload-picture-circle-wrapper .ant-upload,body .avatar-uploader.ant-upload-wrapper.ant-upload-picture-circle-wrapper .ant-upload-select{margin-inline-end:0;margin-bottom:0}body .avatar-uploader .float-btn{opacity:0;position:absolute;bottom:3px;left:40%;transition:opacity .5s ease;display:flex;justify-content:center;align-items:center}body .avatar-uploader .float-btn-container{width:100%;height:100%;display:flex;justify-content:center}body .avatar-uploader .float-btn-container:hover .float-btn{opacity:1}body .rule-form-badge{margin-right:5px}body .rule-form-badge.ant-badge.ant-badge-status .ant-badge-status-dot{width:20px;height:20px}body .skeleton__loading{height:100%}body .ant-list-items .ant-list-item .ant-list-item-action{margin-inline-start:12px}body .ant-notification .ant-notification-notice.table-notification{min-width:500px}body .ant-notification .ant-notification-notice.notification-error{width:250px;padding:14px 16px}body .ant-notification .ant-notification-notice.notification-error .ant-notification-notice-icon{font-size:20px}body .ant-notification .ant-notification-notice.notification-error .ant-notification-notice-close{top:14px;right:14px}body .ant-notification .ant-notification-notice.notification-error .ant-notification-notice-message{font-size:14px;margin-inline-start:30px}body .ant-notification .ant-notification-notice.notification-error .ant-notification-notice-description{font-size:12px;margin-inline-start:30px}body .ant-spin-nested-loading,body .ant-spin-nested-loading .ant-spin-container{height:100%;width:100%}body .ant-skeleton.ant-skeleton-element.custom-skeleton{display:flex}body .esri-attribution{display:none}body .ant-carousel .slick-slider .slick-arrow{color:#60c5cf}body .ant-carousel .slick-slider .slick-dots>li>button{background:#60c5cf}body .ant-carousel .slick-slider .slick-list .slick-track .slick-slide{width:100%}body.dark{background-color:#333}body.dark .ant-layout-sider-trigger{border-right:1px solid rgba(253,253,253,.12)}body.dark .page__title-container{border-bottom:1px solid rgba(253,253,253,.12)}body.dark .ant-popover .ant-popover-arrow{--antd-arrow-background-color: #3b3b3b}body.dark .ant-popover .ant-popover-content .ant-popover-inner{background-color:#3b3b3b}body.dark .ant-badge .ant-badge-count{color:#fff;box-shadow:0 0 0 1px #3b3b3b}
2
2
  `,document.head.appendChild(xf);function Lf(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const u=Lf(O),cT=Lf(Tn);var z2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xs={exports:{}},Qs={};/**
3
3
  * @license React
4
4
  * use-sync-external-store-with-selector.production.min.js
@@ -1066,4 +1066,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1066
1066
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[CI]=this[CI]={accessors:{}}).accessors,a=this.prototype;function o(i){const c=fc(i);r[c]||(gze(a,i),r[c]=!0)}return $e.isArray(t)?t.forEach(o):o(t),this}}yr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),$e.reduceDescriptors(yr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),$e.freezeMethods(yr);function rf(e,t){const n=this||dc,r=t||n,a=yr.from(r.headers);let o=r.data;return $e.forEach(e,function(c){o=c.call(n,o,a.normalize(),t?t.status:void 0)}),a.normalize(),o}function yI(e){return!!(e&&e.__CANCEL__)}function Mo(e,t,n){Bt.call(this,e??"canceled",Bt.ERR_CANCELED,t,n),this.name="CanceledError"}$e.inherits(Mo,Bt,{__CANCEL__:!0});function SI(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Bt("Request failed with status code "+n.status,[Bt.ERR_BAD_REQUEST,Bt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function hze(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function vze(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,o=0,i;return t=t!==void 0?t:1e3,function(l){const s=Date.now(),d=r[o];i||(i=s),n[a]=l,r[a]=s;let f=o,m=0;for(;f!==a;)m+=n[f++],f=f%e;if(a=(a+1)%e,a===o&&(o=(o+1)%e),s-i<t)return;const p=d&&s-d;return p?Math.round(m*1e3/p):void 0}}function bze(e,t){let n=0,r=1e3/t,a,o;const i=(s,d=Date.now())=>{n=d,a=null,o&&(clearTimeout(o),o=null),e.apply(null,s)};return[(...s)=>{const d=Date.now(),f=d-n;f>=r?i(s,d):(a=s,o||(o=setTimeout(()=>{o=null,i(a)},r-f)))},()=>a&&i(a)]}const As=(e,t,n=3)=>{let r=0;const a=vze(50,250);return bze(o=>{const i=o.loaded,c=o.lengthComputable?o.total:void 0,l=i-r,s=a(l),d=i<=c;r=i;const f={loaded:i,total:c,progress:c?i/c:void 0,bytes:l,rate:s||void 0,estimated:s&&c&&d?(c-i)/s:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(f)},n)},xI=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},LI=e=>(...t)=>$e.asap(()=>e(...t)),Cze=Cr.hasStandardBrowserEnv?function(){const t=Cr.navigator&&/(msie|trident)/i.test(Cr.navigator.userAgent),n=document.createElement("a");let r;function a(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=a(window.location.href),function(i){const c=$e.isString(i)?a(i):i;return c.protocol===r.protocol&&c.host===r.host}}():function(){return function(){return!0}}(),yze=Cr.hasStandardBrowserEnv?{write(e,t,n,r,a,o){const i=[e+"="+encodeURIComponent(t)];$e.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),$e.isString(r)&&i.push("path="+r),$e.isString(a)&&i.push("domain="+a),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Sze(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function xze(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function EI(e,t){return e&&!Sze(t)?xze(e,t):t}const MI=e=>e instanceof yr?{...e}:e;function ca(e,t){t=t||{};const n={};function r(s,d,f){return $e.isPlainObject(s)&&$e.isPlainObject(d)?$e.merge.call({caseless:f},s,d):$e.isPlainObject(d)?$e.merge({},d):$e.isArray(d)?d.slice():d}function a(s,d,f){if($e.isUndefined(d)){if(!$e.isUndefined(s))return r(void 0,s,f)}else return r(s,d,f)}function o(s,d){if(!$e.isUndefined(d))return r(void 0,d)}function i(s,d){if($e.isUndefined(d)){if(!$e.isUndefined(s))return r(void 0,s)}else return r(void 0,d)}function c(s,d,f){if(f in t)return r(s,d);if(f in e)return r(void 0,s)}const l={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(s,d)=>a(MI(s),MI(d),!0)};return $e.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=l[d]||a,m=f(e[d],t[d],d);$e.isUndefined(m)&&f!==c||(n[d]=m)}),n}const wI=e=>{const t=ca({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:o,headers:i,auth:c}=t;t.headers=i=yr.from(i),t.url=gI(EI(t.baseURL,t.url),e.params,e.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let l;if($e.isFormData(n)){if(Cr.hasStandardBrowserEnv||Cr.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((l=i.getContentType())!==!1){const[s,...d]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];i.setContentType([s||"multipart/form-data",...d].join("; "))}}if(Cr.hasStandardBrowserEnv&&(r&&$e.isFunction(r)&&(r=r(t)),r||r!==!1&&Cze(t.url))){const s=a&&o&&yze.read(o);s&&i.set(a,s)}return t},Lze=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const a=wI(e);let o=a.data;const i=yr.from(a.headers).normalize();let{responseType:c,onUploadProgress:l,onDownloadProgress:s}=a,d,f,m,p,h;function v(){p&&p(),h&&h(),a.cancelToken&&a.cancelToken.unsubscribe(d),a.signal&&a.signal.removeEventListener("abort",d)}let g=new XMLHttpRequest;g.open(a.method.toUpperCase(),a.url,!0),g.timeout=a.timeout;function C(){if(!g)return;const y=yr.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),S={data:!c||c==="text"||c==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:y,config:e,request:g};SI(function(E){n(E),v()},function(E){r(E),v()},S),g=null}"onloadend"in g?g.onloadend=C:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(C)},g.onabort=function(){g&&(r(new Bt("Request aborted",Bt.ECONNABORTED,e,g)),g=null)},g.onerror=function(){r(new Bt("Network Error",Bt.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let x=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const S=a.transitional||vI;a.timeoutErrorMessage&&(x=a.timeoutErrorMessage),r(new Bt(x,S.clarifyTimeoutError?Bt.ETIMEDOUT:Bt.ECONNABORTED,e,g)),g=null},o===void 0&&i.setContentType(null),"setRequestHeader"in g&&$e.forEach(i.toJSON(),function(x,S){g.setRequestHeader(S,x)}),$e.isUndefined(a.withCredentials)||(g.withCredentials=!!a.withCredentials),c&&c!=="json"&&(g.responseType=a.responseType),s&&([m,h]=As(s,!0),g.addEventListener("progress",m)),l&&g.upload&&([f,p]=As(l),g.upload.addEventListener("progress",f),g.upload.addEventListener("loadend",p)),(a.cancelToken||a.signal)&&(d=y=>{g&&(r(!y||y.type?new Mo(null,e,g):y),g.abort(),g=null)},a.cancelToken&&a.cancelToken.subscribe(d),a.signal&&(a.signal.aborted?d():a.signal.addEventListener("abort",d)));const b=hze(a.url);if(b&&Cr.protocols.indexOf(b)===-1){r(new Bt("Unsupported protocol "+b+":",Bt.ERR_BAD_REQUEST,e));return}g.send(o||null)})},Eze=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,a;const o=function(s){if(!a){a=!0,c();const d=s instanceof Error?s:this.reason;r.abort(d instanceof Bt?d:new Mo(d instanceof Error?d.message:d))}};let i=t&&setTimeout(()=>{i=null,o(new Bt(`timeout ${t} of ms exceeded`,Bt.ETIMEDOUT))},t);const c=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(s=>{s.unsubscribe?s.unsubscribe(o):s.removeEventListener("abort",o)}),e=null)};e.forEach(s=>s.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=()=>$e.asap(c),l}},Mze=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,a;for(;r<n;)a=r+t,yield e.slice(r,a),r=a},wze=async function*(e,t){for await(const n of zze(e))yield*Mze(n,t)},zze=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},zI=(e,t,n,r)=>{const a=wze(e,t);let o=0,i,c=l=>{i||(i=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:s,value:d}=await a.next();if(s){c(),l.close();return}let f=d.byteLength;if(n){let m=o+=f;n(m)}l.enqueue(new Uint8Array(d))}catch(s){throw c(s),s}},cancel(l){return c(l),a.return()}},{highWaterMark:2})},Ds=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",NI=Ds&&typeof ReadableStream=="function",Nze=Ds&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),OI=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Oze=NI&&OI(()=>{let e=!1;const t=new Request(Cr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),$I=64*1024,af=NI&&OI(()=>$e.isReadableStream(new Response("").body)),_s={stream:af&&(e=>e.body)};Ds&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!_s[t]&&(_s[t]=$e.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Bt(`Response type '${t}' is not supported`,Bt.ERR_NOT_SUPPORT,r)})})})(new Response);const $ze=async e=>{if(e==null)return 0;if($e.isBlob(e))return e.size;if($e.isSpecCompliantForm(e))return(await new Request(Cr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if($e.isArrayBufferView(e)||$e.isArrayBuffer(e))return e.byteLength;if($e.isURLSearchParams(e)&&(e=e+""),$e.isString(e))return(await Nze(e)).byteLength},Pze=async(e,t)=>{const n=$e.toFiniteNumber(e.getContentLength());return n??$ze(t)},of={http:Jwe,xhr:Lze,fetch:Ds&&(async e=>{let{url:t,method:n,data:r,signal:a,cancelToken:o,timeout:i,onDownloadProgress:c,onUploadProgress:l,responseType:s,headers:d,withCredentials:f="same-origin",fetchOptions:m}=wI(e);s=s?(s+"").toLowerCase():"text";let p=Eze([a,o&&o.toAbortSignal()],i),h;const v=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let g;try{if(l&&Oze&&n!=="get"&&n!=="head"&&(g=await Pze(d,r))!==0){let S=new Request(t,{method:"POST",body:r,duplex:"half"}),L;if($e.isFormData(r)&&(L=S.headers.get("content-type"))&&d.setContentType(L),S.body){const[E,w]=xI(g,As(LI(l)));r=zI(S.body,$I,E,w)}}$e.isString(f)||(f=f?"include":"omit");const C="credentials"in Request.prototype;h=new Request(t,{...m,signal:p,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:C?f:void 0});let b=await fetch(h);const y=af&&(s==="stream"||s==="response");if(af&&(c||y&&v)){const S={};["status","statusText","headers"].forEach(M=>{S[M]=b[M]});const L=$e.toFiniteNumber(b.headers.get("content-length")),[E,w]=c&&xI(L,As(LI(c),!0))||[];b=new Response(zI(b.body,$I,E,()=>{w&&w(),v&&v()}),S)}s=s||"text";let x=await _s[$e.findKey(_s,s)||"text"](b,e);return!y&&v&&v(),await new Promise((S,L)=>{SI(S,L,{data:x,headers:yr.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:h})})}catch(C){throw v&&v(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new Bt("Network Error",Bt.ERR_NETWORK,e,h),{cause:C.cause||C}):Bt.from(C,C&&C.code,e,h)}})};$e.forEach(of,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const PI=e=>`- ${e}`,Ize=e=>$e.isFunction(e)||e===null||e===!1,II={getAdapter:e=>{e=$e.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let o=0;o<t;o++){n=e[o];let i;if(r=n,!Ize(n)&&(r=of[(i=String(n)).toLowerCase()],r===void 0))throw new Bt(`Unknown adapter '${i}'`);if(r)break;a[i||"#"+o]=r}if(!r){const o=Object.entries(a).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since :
1067
1067
  `+o.map(PI).join(`
1068
1068
  `):" "+PI(o[0]):"as no adapter specified";throw new Bt("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:of};function cf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Mo(null,e)}function TI(e){return cf(e),e.headers=yr.from(e.headers),e.data=rf.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),II.getAdapter(e.adapter||dc.adapter)(e).then(function(r){return cf(e),r.data=rf.call(e,e.transformResponse,r),r.headers=yr.from(r.headers),r},function(r){return yI(r)||(cf(e),r&&r.response&&(r.response.data=rf.call(e,e.transformResponse,r.response),r.response.headers=yr.from(r.response.headers))),Promise.reject(r)})}const RI="1.7.7",lf={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{lf[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const AI={};lf.transitional=function(t,n,r){function a(o,i){return"[Axios v"+RI+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,c)=>{if(t===!1)throw new Bt(a(i," has been removed"+(n?" in "+n:"")),Bt.ERR_DEPRECATED);return n&&!AI[i]&&(AI[i]=!0,console.warn(a(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,c):!0}};function Tze(e,t,n){if(typeof e!="object")throw new Bt("options must be an object",Bt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const o=r[a],i=t[o];if(i){const c=e[o],l=c===void 0||i(c,o,e);if(l!==!0)throw new Bt("option "+o+" must be "+l,Bt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Bt("Unknown option "+o,Bt.ERR_BAD_OPTION)}}const sf={assertOptions:Tze,validators:lf},E2=sf.validators;class la{constructor(t){this.defaults=t,this.interceptors={request:new hI,response:new hI}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a;Error.captureStackTrace?Error.captureStackTrace(a={}):a=new Error;const o=a.stack?a.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
1069
- `+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ca(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:o}=n;r!==void 0&&sf.assertOptions(r,{silentJSONParsing:E2.transitional(E2.boolean),forcedJSONParsing:E2.transitional(E2.boolean),clarifyTimeoutError:E2.transitional(E2.boolean)},!1),a!=null&&($e.isFunction(a)?n.paramsSerializer={serialize:a}:sf.assertOptions(a,{encode:E2.function,serialize:E2.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&$e.merge(o.common,o[n.method]);o&&$e.forEach(["delete","get","head","post","put","patch","common"],h=>{delete o[h]}),n.headers=yr.concat(i,o);const c=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(l=l&&v.synchronous,c.unshift(v.fulfilled,v.rejected))});const s=[];this.interceptors.response.forEach(function(v){s.push(v.fulfilled,v.rejected)});let d,f=0,m;if(!l){const h=[TI.bind(this),void 0];for(h.unshift.apply(h,c),h.push.apply(h,s),m=h.length,d=Promise.resolve(n);f<m;)d=d.then(h[f++],h[f++]);return d}m=c.length;let p=n;for(f=0;f<m;){const h=c[f++],v=c[f++];try{p=h(p)}catch(g){v.call(this,g);break}}try{d=TI.call(this,p)}catch(h){return Promise.reject(h)}for(f=0,m=s.length;f<m;)d=d.then(s[f++],s[f++]);return d}getUri(t){t=ca(this.defaults,t);const n=EI(t.baseURL,t.url);return gI(n,t.params,t.paramsSerializer)}}$e.forEach(["delete","get","head","options"],function(t){la.prototype[t]=function(n,r){return this.request(ca(r||{},{method:t,url:n,data:(r||{}).data}))}}),$e.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,c){return this.request(ca(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}la.prototype[t]=n(),la.prototype[t+"Form"]=n(!0)});class uf{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(a=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](a);r._listeners=null}),this.promise.then=a=>{let o;const i=new Promise(c=>{r.subscribe(c),o=c}).then(a);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,c){r.reason||(r.reason=new Mo(o,i,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new uf(function(a){t=a}),cancel:t}}}function Rze(e){return function(n){return e.apply(null,n)}}function Aze(e){return $e.isObject(e)&&e.isAxiosError===!0}const df={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(df).forEach(([e,t])=>{df[t]=e});function DI(e){const t=new la(e),n=ZP(la.prototype.request,t);return $e.extend(n,la.prototype,t,{allOwnKeys:!0}),$e.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return DI(ca(e,a))},n}const Dn=DI(dc);Dn.Axios=la,Dn.CanceledError=Mo,Dn.CancelToken=uf,Dn.isCancel=yI,Dn.VERSION=RI,Dn.toFormData=Ts,Dn.AxiosError=Bt,Dn.Cancel=Dn.CanceledError,Dn.all=function(t){return Promise.all(t)},Dn.spread=Rze,Dn.isAxiosError=Aze,Dn.mergeConfig=ca,Dn.AxiosHeaders=yr,Dn.formToJSON=e=>bI($e.isHTMLForm(e)?new FormData(e):e),Dn.getAdapter=II.getAdapter,Dn.HttpStatusCode=df,Dn.default=Dn;const sa=Dn.create({baseURL:window.baseUrl,timeout:6e4});sa.interceptors.request.use(e=>{const t=mo(R1.Token);return e.headers.IdApp=J1e(),e.headers.Authorization="Bearer "+t,e},e=>Promise.reject(e));const _I="https://aquasis.freshdesk.com/api/v2/",kI=btoa("UtA4JWhMo8w4eWzzgo9"),Dze=async({appName:e,...t})=>{var l;const n=+"23000031142",{data:r}=await sa.get(_I+"ticket_fields",{headers:{Authorization:`Basic ${kI}`}}),a=r.find(s=>s.name==="cf_produto"),o=(l=a==null?void 0:a.choices)==null?void 0:l.find(s=>s.toLowerCase().includes(e.toLowerCase())),i={...t,status:2,priority:4,group_id:n,type:"Pedido de Suporte",custom_fields:{cf_produto:o},tags:["new-freshdesk-widget"],source:9},c=new FormData;return Object.keys(i).forEach(s=>{var d;s==="custom_fields"?Object.keys(i[s]).forEach(f=>{c.append(`custom_fields[${f}]`,i.custom_fields[f])}):s==="attachments"?(d=t.attachments)==null||d.forEach(f=>{c.append("attachments[]",new File([f],f.name))}):s==="tags"?c.append("tags[]",i[s]):c.append(s,i[s])}),sa.post(_I+"tickets",c,{headers:{Authorization:`Basic ${kI}`,"Content-Type":"multipart/form-data"}})},_ze={prefix:"far",iconName:"paper-plane",icon:[512,512,[61913],"f1d8","M16.1 260.2c-22.6 12.9-20.5 47.3 3.6 57.3L160 376l0 103.3c0 18.1 14.6 32.7 32.7 32.7c9.7 0 18.9-4.3 25.1-11.8l62-74.3 123.9 51.6c18.9 7.9 40.8-4.5 43.9-24.7l64-416c1.9-12.1-3.4-24.3-13.5-31.2s-23.3-7.5-34-1.4l-448 256zm52.1 25.5L409.7 90.6 190.1 336l1.2 1L68.2 285.7zM403.3 425.4L236.7 355.9 450.8 116.6 403.3 425.4z"]},{Title:FI}=fo,Xr="HELPDESK.FORM",kze="GENERAL.MESSAGES",Fze=({onCancel:e})=>{const[t,n]=O.useState(!1),[r]=cn.useForm(),a=Wi(),{requiredField:o}=fd(),i=mo(R1.AppName);O.useEffect(()=>{Un.changeLanguage(a)},[a]);const c=[{dataIndex:"field",title:It("HELPDESK.TABLE.FIELD"),render:d=>It(`HELPDESK.FORM.FIELDS.${d.toUpperCase()}`)},{dataIndex:"code",title:It("HELPDESK.TABLE.CODE"),render:d=>It(`HELPDESK.ERRORS_CODE.${d.toUpperCase()}`)}],l=d=>{r.setFieldValue(oa.Attachments,d.fileList)},s=d=>{n(!0);const f={...d,appName:i};Dze(f).then(()=>{z0.success({message:It(`${kze}.SUCCESS.TICKET`),placement:"topLeft"}),e&&e()}).catch(({response:m})=>{const{errors:p}=m.data;z0.error({className:"table-notification",message:It("ERROR"),placement:"topLeft",description:we.jsx(w1,{dataSource:p,columns:c,pagination:{defaultPageSize:5},rowKey:"field",size:"small",bordered:!0}),duration:0})}).finally(()=>n(!1))};return we.jsxs(y1,{className:"helpdesk__content",children:[we.jsx(ir,{span:24,children:we.jsx(FI,{level:3,className:"helpdesk__title",children:It(`${Xr}.TITLE`)})}),we.jsx(ir,{span:24,children:we.jsxs(G2,{children:[we.jsx(FI,{level:4,children:It(`${Xr}.FIELDS.TITLE`)}),we.jsxs(cn,{form:r,layout:"vertical",onFinish:s,children:[we.jsx(zs,{fieldName:oa.Name,label:It(`${Xr}.FIELDS.NAME`),placeholder:It(`${Xr}.FIELDS.NAME`,{context:"PLACEHOLDER"}),rules:o}),we.jsx(zs,{fieldName:oa.Email,label:It(`${Xr}.FIELDS.EMAIL`),placeholder:It(`${Xr}.FIELDS.EMAIL`,{context:"PLACEHOLDER"}),rules:o}),we.jsx(zs,{fieldName:oa.Subject,label:It(`${Xr}.FIELDS.SUBJECT`),placeholder:It(`${Xr}.FIELDS.SUBJECT`,{context:"PLACEHOLDER"}),rules:o}),we.jsx(fwe,{fieldName:oa.Description,label:It(`${Xr}.FIELDS.DESCRIPTION`),placeholder:It(`${Xr}.FIELDS.DESCRIPTION`,{context:"PLACEHOLDER"}),rows:4,rules:o}),we.jsx(cn.Item,{name:oa.Attachments,children:we.jsxs(ad,{beforeUpload:()=>!1,maxCount:5,onChange:l,className:"helpdesk__fields-files",multiple:!0,children:[we.jsx("p",{className:"ant-upload-drag-icon",children:we.jsx(h8,{})}),we.jsx(_2e,{i18nKey:It(`${Xr}.FIELDS.UPLOAD_FILES`),components:{strong:we.jsx("strong",{}),br:we.jsx("br",{}),small:we.jsx("small",{})}})]})}),we.jsx(mn,{htmlType:"submit",type:"primary",icon:we.jsx(I1,{icon:_ze}),loading:t,disabled:t,block:!0,children:It(`${Xr}.BUTTONS.SEND`)})]})]})})]})};pie.add(_Me);const jze=({size:e})=>{const[t,n]=O.useState(!1),r=Wi(),a=()=>n(c=>!c),o=()=>n(!1);O.useEffect(()=>{Un.changeLanguage(r)},[r]);const i=()=>{switch(e){case"small":return"1x";case"large":return"xl";default:return"lg"}};return we.jsx(cd,{children:we.jsx(y1,{align:"middle",children:we.jsx(j6,{placement:"bottomRight",trigger:"click",content:we.jsx(Fze,{onCancel:o}),rootClassName:"helpdesk__container",overlayInnerStyle:{padding:0},arrow:!1,open:t,destroyTooltipOnHide:!0,children:we.jsx(fr,{title:It("HELPDESK.SUPPORT"),placement:"left",children:we.jsx(mn,{type:"primary",shape:"circle",icon:we.jsx(I1,{icon:cw,size:i()}),onClick:a,size:e})})})})})},Bze=Xf()(jze),Hze=e=>{const t=r=>{const{language:a,...o}=r;return O.useEffect(()=>{Un.changeLanguage(a)},[a]),we.jsx(e,{...o})};return Xf(r=>{var a,o;return{language:(a=r==null?void 0:r.app)==null?void 0:a.language,theme:(o=r==null?void 0:r.app)==null?void 0:o.theme}})(t)};function mc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,fa(e,t)}var pc=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(r){var a=this,o=r||function(){};return this.listeners.push(o),this.onSubscribe(),function(){a.listeners=a.listeners.filter(function(i){return i!==o}),a.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}(),ks=typeof window>"u";function cr(){}function Vze(e,t){return typeof e=="function"?e(t):e}function ff(e){return typeof e=="number"&&e>=0&&e!==1/0}function Fs(e){return Array.isArray(e)?e:[e]}function jI(e,t){return Math.max(e+(t||0)-Date.now(),0)}function js(e,t,n){return Vs(e)?typeof t=="function"?le({},n,{queryKey:e,queryFn:t}):le({},t,{queryKey:e}):e}function M2(e,t,n){return Vs(e)?[le({},t,{queryKey:e}),n]:[e||{},t]}function Wze(e,t){if(e===!0&&t===!0||e==null&&t==null)return"all";if(e===!1&&t===!1)return"none";var n=e??!t;return n?"active":"inactive"}function BI(e,t){var n=e.active,r=e.exact,a=e.fetching,o=e.inactive,i=e.predicate,c=e.queryKey,l=e.stale;if(Vs(c)){if(r){if(t.queryHash!==mf(c,t.options))return!1}else if(!Bs(t.queryKey,c))return!1}var s=Wze(n,o);if(s==="none")return!1;if(s!=="all"){var d=t.isActive();if(s==="active"&&!d||s==="inactive"&&d)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||typeof a=="boolean"&&t.isFetching()!==a||i&&!i(t))}function HI(e,t){var n=e.exact,r=e.fetching,a=e.predicate,o=e.mutationKey;if(Vs(o)){if(!t.options.mutationKey)return!1;if(n){if(ua(t.options.mutationKey)!==ua(o))return!1}else if(!Bs(t.options.mutationKey,o))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||a&&!a(t))}function mf(e,t){var n=(t==null?void 0:t.queryKeyHashFn)||ua;return n(e)}function ua(e){var t=Fs(e);return Uze(t)}function Uze(e){return JSON.stringify(e,function(t,n){return pf(n)?Object.keys(n).sort().reduce(function(r,a){return r[a]=n[a],r},{}):n})}function Bs(e,t){return VI(Fs(e),Fs(t))}function VI(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(function(n){return!VI(e[n],t[n])}):!1}function Hs(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||pf(e)&&pf(t)){for(var r=n?e.length:Object.keys(e).length,a=n?t:Object.keys(t),o=a.length,i=n?[]:{},c=0,l=0;l<o;l++){var s=n?l:a[l];i[s]=Hs(e[s],t[s]),i[s]===e[s]&&c++}return r===o&&c===r?e:i}return t}function Kze(e,t){if(e&&!t||t&&!e)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}function pf(e){if(!WI(e))return!1;var t=e.constructor;if(typeof t>"u")return!0;var n=t.prototype;return!(!WI(n)||!n.hasOwnProperty("isPrototypeOf"))}function WI(e){return Object.prototype.toString.call(e)==="[object Object]"}function Vs(e){return typeof e=="string"||Array.isArray(e)}function qze(e){return new Promise(function(t){setTimeout(t,e)})}function UI(e){Promise.resolve().then(e).catch(function(t){return setTimeout(function(){throw t})})}function KI(){if(typeof AbortController=="function")return new AbortController}var Gze=function(e){mc(t,e);function t(){var r;return r=e.call(this)||this,r.setup=function(a){var o;if(!ks&&((o=window)!=null&&o.addEventListener)){var i=function(){return a()};return window.addEventListener("visibilitychange",i,!1),window.addEventListener("focus",i,!1),function(){window.removeEventListener("visibilitychange",i),window.removeEventListener("focus",i)}}},r}var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var a;(a=this.cleanup)==null||a.call(this),this.cleanup=void 0}},n.setEventListener=function(a){var o,i=this;this.setup=a,(o=this.cleanup)==null||o.call(this),this.cleanup=a(function(c){typeof c=="boolean"?i.setFocused(c):i.onFocus()})},n.setFocused=function(a){this.focused=a,a&&this.onFocus()},n.onFocus=function(){this.listeners.forEach(function(a){a()})},n.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},t}(pc),gc=new Gze,Yze=function(e){mc(t,e);function t(){var r;return r=e.call(this)||this,r.setup=function(a){var o;if(!ks&&((o=window)!=null&&o.addEventListener)){var i=function(){return a()};return window.addEventListener("online",i,!1),window.addEventListener("offline",i,!1),function(){window.removeEventListener("online",i),window.removeEventListener("offline",i)}}},r}var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var a;(a=this.cleanup)==null||a.call(this),this.cleanup=void 0}},n.setEventListener=function(a){var o,i=this;this.setup=a,(o=this.cleanup)==null||o.call(this),this.cleanup=a(function(c){typeof c=="boolean"?i.setOnline(c):i.onOnline()})},n.setOnline=function(a){this.online=a,a&&this.onOnline()},n.onOnline=function(){this.listeners.forEach(function(a){a()})},n.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine},t}(pc),Ws=new Yze;function Xze(e){return Math.min(1e3*Math.pow(2,e),3e4)}function Us(e){return typeof(e==null?void 0:e.cancel)=="function"}var qI=function(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent};function Ks(e){return e instanceof qI}var GI=function(t){var n=this,r=!1,a,o,i,c;this.abort=t.abort,this.cancel=function(m){return a==null?void 0:a(m)},this.cancelRetry=function(){r=!0},this.continueRetry=function(){r=!1},this.continue=function(){return o==null?void 0:o()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(m,p){i=m,c=p});var l=function(p){n.isResolved||(n.isResolved=!0,t.onSuccess==null||t.onSuccess(p),o==null||o(),i(p))},s=function(p){n.isResolved||(n.isResolved=!0,t.onError==null||t.onError(p),o==null||o(),c(p))},d=function(){return new Promise(function(p){o=p,n.isPaused=!0,t.onPause==null||t.onPause()}).then(function(){o=void 0,n.isPaused=!1,t.onContinue==null||t.onContinue()})},f=function m(){if(!n.isResolved){var p;try{p=t.fn()}catch(h){p=Promise.reject(h)}a=function(v){if(!n.isResolved&&(s(new qI(v)),n.abort==null||n.abort(),Us(p)))try{p.cancel()}catch{}},n.isTransportCancelable=Us(p),Promise.resolve(p).then(l).catch(function(h){var v,g;if(!n.isResolved){var C=(v=t.retry)!=null?v:3,b=(g=t.retryDelay)!=null?g:Xze,y=typeof b=="function"?b(n.failureCount,h):b,x=C===!0||typeof C=="number"&&n.failureCount<C||typeof C=="function"&&C(n.failureCount,h);if(r||!x){s(h);return}n.failureCount++,t.onFail==null||t.onFail(n.failureCount,h),qze(y).then(function(){if(!gc.isFocused()||!Ws.isOnline())return d()}).then(function(){r?s(h):m()})}})}};f()},Qze=function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(n){n()},this.batchNotifyFn=function(n){n()}}var t=e.prototype;return t.batch=function(r){var a;this.transactions++;try{a=r()}finally{this.transactions--,this.transactions||this.flush()}return a},t.schedule=function(r){var a=this;this.transactions?this.queue.push(r):UI(function(){a.notifyFn(r)})},t.batchCalls=function(r){var a=this;return function(){for(var o=arguments.length,i=new Array(o),c=0;c<o;c++)i[c]=arguments[c];a.schedule(function(){r.apply(void 0,i)})}},t.flush=function(){var r=this,a=this.queue;this.queue=[],a.length&&UI(function(){r.batchNotifyFn(function(){a.forEach(function(o){r.notifyFn(o)})})})},t.setNotifyFunction=function(r){this.notifyFn=r},t.setBatchNotifyFunction=function(r){this.batchNotifyFn=r},e}(),Mn=new Qze,YI=console;function qs(){return YI}function Jze(e){YI=e}var Zze=function(){function e(n){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.cache=n.cache,this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.initialState=n.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=n.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(r){var a;this.options=le({},this.defaultOptions,r),this.meta=r==null?void 0:r.meta,this.cacheTime=Math.max(this.cacheTime||0,(a=this.options.cacheTime)!=null?a:5*60*1e3)},t.setDefaultOptions=function(r){this.defaultOptions=r},t.scheduleGc=function(){var r=this;this.clearGcTimeout(),ff(this.cacheTime)&&(this.gcTimeout=setTimeout(function(){r.optionalRemove()},this.cacheTime))},t.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},t.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(r,a){var o,i,c=this.state.data,l=Vze(r,c);return(o=(i=this.options).isDataEqual)!=null&&o.call(i,c,l)?l=c:this.options.structuralSharing!==!1&&(l=Hs(c,l)),this.dispatch({data:l,type:"success",dataUpdatedAt:a==null?void 0:a.updatedAt}),l},t.setState=function(r,a){this.dispatch({type:"setState",state:r,setStateOptions:a})},t.cancel=function(r){var a,o=this.promise;return(a=this.retryer)==null||a.cancel(r),o?o.then(cr).catch(cr):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some(function(r){return r.options.enabled!==!1})},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(function(r){return r.getCurrentResult().isStale})},t.isStaleByTime=function(r){return r===void 0&&(r=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!jI(this.state.dataUpdatedAt,r)},t.onFocus=function(){var r,a=this.observers.find(function(o){return o.shouldFetchOnWindowFocus()});a&&a.refetch(),(r=this.retryer)==null||r.continue()},t.onOnline=function(){var r,a=this.observers.find(function(o){return o.shouldFetchOnReconnect()});a&&a.refetch(),(r=this.retryer)==null||r.continue()},t.addObserver=function(r){this.observers.indexOf(r)===-1&&(this.observers.push(r),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:r}))},t.removeObserver=function(r){this.observers.indexOf(r)!==-1&&(this.observers=this.observers.filter(function(a){return a!==r}),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:r}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(r,a){var o=this,i,c,l;if(this.state.isFetching){if(this.state.dataUpdatedAt&&(a!=null&&a.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var s;return(s=this.retryer)==null||s.continueRetry(),this.promise}}if(r&&this.setOptions(r),!this.options.queryFn){var d=this.observers.find(function(b){return b.options.queryFn});d&&this.setOptions(d.options)}var f=Fs(this.queryKey),m=KI(),p={queryKey:f,pageParam:void 0,meta:this.meta};Object.defineProperty(p,"signal",{enumerable:!0,get:function(){if(m)return o.abortSignalConsumed=!0,m.signal}});var h=function(){return o.options.queryFn?(o.abortSignalConsumed=!1,o.options.queryFn(p)):Promise.reject("Missing queryFn")},v={fetchOptions:a,options:this.options,queryKey:f,state:this.state,fetchFn:h,meta:this.meta};if((i=this.options.behavior)!=null&&i.onFetch){var g;(g=this.options.behavior)==null||g.onFetch(v)}if(this.revertState=this.state,!this.state.isFetching||this.state.fetchMeta!==((c=v.fetchOptions)==null?void 0:c.meta)){var C;this.dispatch({type:"fetch",meta:(C=v.fetchOptions)==null?void 0:C.meta})}return this.retryer=new GI({fn:v.fetchFn,abort:m==null||(l=m.abort)==null?void 0:l.bind(m),onSuccess:function(y){o.setData(y),o.cache.config.onSuccess==null||o.cache.config.onSuccess(y,o),o.cacheTime===0&&o.optionalRemove()},onError:function(y){Ks(y)&&y.silent||o.dispatch({type:"error",error:y}),Ks(y)||(o.cache.config.onError==null||o.cache.config.onError(y,o),qs().error(y)),o.cacheTime===0&&o.optionalRemove()},onFail:function(){o.dispatch({type:"failed"})},onPause:function(){o.dispatch({type:"pause"})},onContinue:function(){o.dispatch({type:"continue"})},retry:v.options.retry,retryDelay:v.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(r){var a=this;this.state=this.reducer(this.state,r),Mn.batch(function(){a.observers.forEach(function(o){o.onQueryUpdate(r)}),a.cache.notify({query:a,type:"queryUpdated",action:r})})},t.getDefaultState=function(r){var a=typeof r.initialData=="function"?r.initialData():r.initialData,o=typeof r.initialData<"u",i=o?typeof r.initialDataUpdatedAt=="function"?r.initialDataUpdatedAt():r.initialDataUpdatedAt:0,c=typeof a<"u";return{data:a,dataUpdateCount:0,dataUpdatedAt:c?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:c?"success":"idle"}},t.reducer=function(r,a){var o,i;switch(a.type){case"failed":return le({},r,{fetchFailureCount:r.fetchFailureCount+1});case"pause":return le({},r,{isPaused:!0});case"continue":return le({},r,{isPaused:!1});case"fetch":return le({},r,{fetchFailureCount:0,fetchMeta:(o=a.meta)!=null?o:null,isFetching:!0,isPaused:!1},!r.dataUpdatedAt&&{error:null,status:"loading"});case"success":return le({},r,{data:a.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(i=a.dataUpdatedAt)!=null?i:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var c=a.error;return Ks(c)&&c.revert&&this.revertState?le({},this.revertState):le({},r,{error:c,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return le({},r,{isInvalidated:!0});case"setState":return le({},r,a.state);default:return r}},e}(),eNe=function(e){mc(t,e);function t(r){var a;return a=e.call(this)||this,a.config=r||{},a.queries=[],a.queriesMap={},a}var n=t.prototype;return n.build=function(a,o,i){var c,l=o.queryKey,s=(c=o.queryHash)!=null?c:mf(l,o),d=this.get(s);return d||(d=new Zze({cache:this,queryKey:l,queryHash:s,options:a.defaultQueryOptions(o),state:i,defaultOptions:a.getQueryDefaults(l),meta:o.meta}),this.add(d)),d},n.add=function(a){this.queriesMap[a.queryHash]||(this.queriesMap[a.queryHash]=a,this.queries.push(a),this.notify({type:"queryAdded",query:a}))},n.remove=function(a){var o=this.queriesMap[a.queryHash];o&&(a.destroy(),this.queries=this.queries.filter(function(i){return i!==a}),o===a&&delete this.queriesMap[a.queryHash],this.notify({type:"queryRemoved",query:a}))},n.clear=function(){var a=this;Mn.batch(function(){a.queries.forEach(function(o){a.remove(o)})})},n.get=function(a){return this.queriesMap[a]},n.getAll=function(){return this.queries},n.find=function(a,o){var i=M2(a,o),c=i[0];return typeof c.exact>"u"&&(c.exact=!0),this.queries.find(function(l){return BI(c,l)})},n.findAll=function(a,o){var i=M2(a,o),c=i[0];return Object.keys(c).length>0?this.queries.filter(function(l){return BI(c,l)}):this.queries},n.notify=function(a){var o=this;Mn.batch(function(){o.listeners.forEach(function(i){i(a)})})},n.onFocus=function(){var a=this;Mn.batch(function(){a.queries.forEach(function(o){o.onFocus()})})},n.onOnline=function(){var a=this;Mn.batch(function(){a.queries.forEach(function(o){o.onOnline()})})},t}(pc),tNe=function(){function e(n){this.options=le({},n.defaultOptions,n.options),this.mutationId=n.mutationId,this.mutationCache=n.mutationCache,this.observers=[],this.state=n.state||nNe(),this.meta=n.meta}var t=e.prototype;return t.setState=function(r){this.dispatch({type:"setState",state:r})},t.addObserver=function(r){this.observers.indexOf(r)===-1&&this.observers.push(r)},t.removeObserver=function(r){this.observers=this.observers.filter(function(a){return a!==r})},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(cr).catch(cr)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var r=this,a,o=this.state.status==="loading",i=Promise.resolve();return o||(this.dispatch({type:"loading",variables:this.options.variables}),i=i.then(function(){r.mutationCache.config.onMutate==null||r.mutationCache.config.onMutate(r.state.variables,r)}).then(function(){return r.options.onMutate==null?void 0:r.options.onMutate(r.state.variables)}).then(function(c){c!==r.state.context&&r.dispatch({type:"loading",context:c,variables:r.state.variables})})),i.then(function(){return r.executeMutation()}).then(function(c){a=c,r.mutationCache.config.onSuccess==null||r.mutationCache.config.onSuccess(a,r.state.variables,r.state.context,r)}).then(function(){return r.options.onSuccess==null?void 0:r.options.onSuccess(a,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(a,null,r.state.variables,r.state.context)}).then(function(){return r.dispatch({type:"success",data:a}),a}).catch(function(c){return r.mutationCache.config.onError==null||r.mutationCache.config.onError(c,r.state.variables,r.state.context,r),qs().error(c),Promise.resolve().then(function(){return r.options.onError==null?void 0:r.options.onError(c,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(void 0,c,r.state.variables,r.state.context)}).then(function(){throw r.dispatch({type:"error",error:c}),c})})},t.executeMutation=function(){var r=this,a;return this.retryer=new GI({fn:function(){return r.options.mutationFn?r.options.mutationFn(r.state.variables):Promise.reject("No mutationFn found")},onFail:function(){r.dispatch({type:"failed"})},onPause:function(){r.dispatch({type:"pause"})},onContinue:function(){r.dispatch({type:"continue"})},retry:(a=this.options.retry)!=null?a:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(r){var a=this;this.state=rNe(this.state,r),Mn.batch(function(){a.observers.forEach(function(o){o.onMutationUpdate(r)}),a.mutationCache.notify(a)})},e}();function nNe(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function rNe(e,t){switch(t.type){case"failed":return le({},e,{failureCount:e.failureCount+1});case"pause":return le({},e,{isPaused:!0});case"continue":return le({},e,{isPaused:!1});case"loading":return le({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return le({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return le({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return le({},e,t.state);default:return e}}var aNe=function(e){mc(t,e);function t(r){var a;return a=e.call(this)||this,a.config=r||{},a.mutations=[],a.mutationId=0,a}var n=t.prototype;return n.build=function(a,o,i){var c=new tNe({mutationCache:this,mutationId:++this.mutationId,options:a.defaultMutationOptions(o),state:i,defaultOptions:o.mutationKey?a.getMutationDefaults(o.mutationKey):void 0,meta:o.meta});return this.add(c),c},n.add=function(a){this.mutations.push(a),this.notify(a)},n.remove=function(a){this.mutations=this.mutations.filter(function(o){return o!==a}),a.cancel(),this.notify(a)},n.clear=function(){var a=this;Mn.batch(function(){a.mutations.forEach(function(o){a.remove(o)})})},n.getAll=function(){return this.mutations},n.find=function(a){return typeof a.exact>"u"&&(a.exact=!0),this.mutations.find(function(o){return HI(a,o)})},n.findAll=function(a){return this.mutations.filter(function(o){return HI(a,o)})},n.notify=function(a){var o=this;Mn.batch(function(){o.listeners.forEach(function(i){i(a)})})},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var a=this.mutations.filter(function(o){return o.state.isPaused});return Mn.batch(function(){return a.reduce(function(o,i){return o.then(function(){return i.continue().catch(cr)})},Promise.resolve())})},t}(pc);function oNe(){return{onFetch:function(t){t.fetchFn=function(){var n,r,a,o,i,c,l=(n=t.fetchOptions)==null||(r=n.meta)==null?void 0:r.refetchPage,s=(a=t.fetchOptions)==null||(o=a.meta)==null?void 0:o.fetchMore,d=s==null?void 0:s.pageParam,f=(s==null?void 0:s.direction)==="forward",m=(s==null?void 0:s.direction)==="backward",p=((i=t.state.data)==null?void 0:i.pages)||[],h=((c=t.state.data)==null?void 0:c.pageParams)||[],v=KI(),g=v==null?void 0:v.signal,C=h,b=!1,y=t.options.queryFn||function(){return Promise.reject("Missing queryFn")},x=function($,T,R,N){return C=N?[T].concat(C):[].concat(C,[T]),N?[R].concat($):[].concat($,[R])},S=function($,T,R,N){if(b)return Promise.reject("Cancelled");if(typeof R>"u"&&!T&&$.length)return Promise.resolve($);var I={queryKey:t.queryKey,signal:g,pageParam:R,meta:t.meta},k=y(I),_=Promise.resolve(k).then(function(V){return x($,R,V,N)});if(Us(k)){var F=_;F.cancel=k.cancel}return _},L;if(!p.length)L=S([]);else if(f){var E=typeof d<"u",w=E?d:XI(t.options,p);L=S(p,E,w)}else if(m){var M=typeof d<"u",z=M?d:iNe(t.options,p);L=S(p,M,z,!0)}else(function(){C=[];var D=typeof t.options.getNextPageParam>"u",$=l&&p[0]?l(p[0],0,p):!0;L=$?S([],D,h[0]):Promise.resolve(x([],h[0],p[0]));for(var T=function(I){L=L.then(function(k){var _=l&&p[I]?l(p[I],I,p):!0;if(_){var F=D?h[I]:XI(t.options,k);return S(k,D,F)}return Promise.resolve(x(k,h[I],p[I]))})},R=1;R<p.length;R++)T(R)})();var P=L.then(function(D){return{pages:D,pageParams:C}}),A=P;return A.cancel=function(){b=!0,v==null||v.abort(),Us(L)&&L.cancel()},P}}}}function XI(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function iNe(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}var cNe=function(){function e(n){n===void 0&&(n={}),this.queryCache=n.queryCache||new eNe,this.mutationCache=n.mutationCache||new aNe,this.defaultOptions=n.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var r=this;this.unsubscribeFocus=gc.subscribe(function(){gc.isFocused()&&Ws.isOnline()&&(r.mutationCache.onFocus(),r.queryCache.onFocus())}),this.unsubscribeOnline=Ws.subscribe(function(){gc.isFocused()&&Ws.isOnline()&&(r.mutationCache.onOnline(),r.queryCache.onOnline())})},t.unmount=function(){var r,a;(r=this.unsubscribeFocus)==null||r.call(this),(a=this.unsubscribeOnline)==null||a.call(this)},t.isFetching=function(r,a){var o=M2(r,a),i=o[0];return i.fetching=!0,this.queryCache.findAll(i).length},t.isMutating=function(r){return this.mutationCache.findAll(le({},r,{fetching:!0})).length},t.getQueryData=function(r,a){var o;return(o=this.queryCache.find(r,a))==null?void 0:o.state.data},t.getQueriesData=function(r){return this.getQueryCache().findAll(r).map(function(a){var o=a.queryKey,i=a.state,c=i.data;return[o,c]})},t.setQueryData=function(r,a,o){var i=js(r),c=this.defaultQueryOptions(i);return this.queryCache.build(this,c).setData(a,o)},t.setQueriesData=function(r,a,o){var i=this;return Mn.batch(function(){return i.getQueryCache().findAll(r).map(function(c){var l=c.queryKey;return[l,i.setQueryData(l,a,o)]})})},t.getQueryState=function(r,a){var o;return(o=this.queryCache.find(r,a))==null?void 0:o.state},t.removeQueries=function(r,a){var o=M2(r,a),i=o[0],c=this.queryCache;Mn.batch(function(){c.findAll(i).forEach(function(l){c.remove(l)})})},t.resetQueries=function(r,a,o){var i=this,c=M2(r,a,o),l=c[0],s=c[1],d=this.queryCache,f=le({},l,{active:!0});return Mn.batch(function(){return d.findAll(l).forEach(function(m){m.reset()}),i.refetchQueries(f,s)})},t.cancelQueries=function(r,a,o){var i=this,c=M2(r,a,o),l=c[0],s=c[1],d=s===void 0?{}:s;typeof d.revert>"u"&&(d.revert=!0);var f=Mn.batch(function(){return i.queryCache.findAll(l).map(function(m){return m.cancel(d)})});return Promise.all(f).then(cr).catch(cr)},t.invalidateQueries=function(r,a,o){var i,c,l,s=this,d=M2(r,a,o),f=d[0],m=d[1],p=le({},f,{active:(i=(c=f.refetchActive)!=null?c:f.active)!=null?i:!0,inactive:(l=f.refetchInactive)!=null?l:!1});return Mn.batch(function(){return s.queryCache.findAll(f).forEach(function(h){h.invalidate()}),s.refetchQueries(p,m)})},t.refetchQueries=function(r,a,o){var i=this,c=M2(r,a,o),l=c[0],s=c[1],d=Mn.batch(function(){return i.queryCache.findAll(l).map(function(m){return m.fetch(void 0,le({},s,{meta:{refetchPage:l==null?void 0:l.refetchPage}}))})}),f=Promise.all(d).then(cr);return s!=null&&s.throwOnError||(f=f.catch(cr)),f},t.fetchQuery=function(r,a,o){var i=js(r,a,o),c=this.defaultQueryOptions(i);typeof c.retry>"u"&&(c.retry=!1);var l=this.queryCache.build(this,c);return l.isStaleByTime(c.staleTime)?l.fetch(c):Promise.resolve(l.state.data)},t.prefetchQuery=function(r,a,o){return this.fetchQuery(r,a,o).then(cr).catch(cr)},t.fetchInfiniteQuery=function(r,a,o){var i=js(r,a,o);return i.behavior=oNe(),this.fetchQuery(i)},t.prefetchInfiniteQuery=function(r,a,o){return this.fetchInfiniteQuery(r,a,o).then(cr).catch(cr)},t.cancelMutations=function(){var r=this,a=Mn.batch(function(){return r.mutationCache.getAll().map(function(o){return o.cancel()})});return Promise.all(a).then(cr).catch(cr)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(r){return this.mutationCache.build(this,r).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(r){this.defaultOptions=r},t.setQueryDefaults=function(r,a){var o=this.queryDefaults.find(function(i){return ua(r)===ua(i.queryKey)});o?o.defaultOptions=a:this.queryDefaults.push({queryKey:r,defaultOptions:a})},t.getQueryDefaults=function(r){var a;return r?(a=this.queryDefaults.find(function(o){return Bs(r,o.queryKey)}))==null?void 0:a.defaultOptions:void 0},t.setMutationDefaults=function(r,a){var o=this.mutationDefaults.find(function(i){return ua(r)===ua(i.mutationKey)});o?o.defaultOptions=a:this.mutationDefaults.push({mutationKey:r,defaultOptions:a})},t.getMutationDefaults=function(r){var a;return r?(a=this.mutationDefaults.find(function(o){return Bs(r,o.mutationKey)}))==null?void 0:a.defaultOptions:void 0},t.defaultQueryOptions=function(r){if(r!=null&&r._defaulted)return r;var a=le({},this.defaultOptions.queries,this.getQueryDefaults(r==null?void 0:r.queryKey),r,{_defaulted:!0});return!a.queryHash&&a.queryKey&&(a.queryHash=mf(a.queryKey,a)),a},t.defaultQueryObserverOptions=function(r){return this.defaultQueryOptions(r)},t.defaultMutationOptions=function(r){return r!=null&&r._defaulted?r:le({},this.defaultOptions.mutations,this.getMutationDefaults(r==null?void 0:r.mutationKey),r,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}(),lNe=function(e){mc(t,e);function t(r,a){var o;return o=e.call(this)||this,o.client=r,o.options=a,o.trackedProps=[],o.selectError=null,o.bindMethods(),o.setOptions(a),o}var n=t.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){this.listeners.length===1&&(this.currentQuery.addObserver(this),QI(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return gf(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return gf(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(a,o){var i=this.options,c=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(a),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=i.queryKey),this.updateQuery();var l=this.hasListeners();l&&JI(this.currentQuery,c,this.options,i)&&this.executeFetch(),this.updateResult(o),l&&(this.currentQuery!==c||this.options.enabled!==i.enabled||this.options.staleTime!==i.staleTime)&&this.updateStaleTimeout();var s=this.computeRefetchInterval();l&&(this.currentQuery!==c||this.options.enabled!==i.enabled||s!==this.currentRefetchInterval)&&this.updateRefetchInterval(s)},n.getOptimisticResult=function(a){var o=this.client.defaultQueryObserverOptions(a),i=this.client.getQueryCache().build(this.client,o);return this.createResult(i,o)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(a,o){var i=this,c={},l=function(d){i.trackedProps.includes(d)||i.trackedProps.push(d)};return Object.keys(a).forEach(function(s){Object.defineProperty(c,s,{configurable:!1,enumerable:!0,get:function(){return l(s),a[s]}})}),(o.useErrorBoundary||o.suspense)&&l("error"),c},n.getNextResult=function(a){var o=this;return new Promise(function(i,c){var l=o.subscribe(function(s){s.isFetching||(l(),s.isError&&(a!=null&&a.throwOnError)?c(s.error):i(s))})})},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(a){return this.fetch(le({},a,{meta:{refetchPage:a==null?void 0:a.refetchPage}}))},n.fetchOptimistic=function(a){var o=this,i=this.client.defaultQueryObserverOptions(a),c=this.client.getQueryCache().build(this.client,i);return c.fetch().then(function(){return o.createResult(c,i)})},n.fetch=function(a){var o=this;return this.executeFetch(a).then(function(){return o.updateResult(),o.currentResult})},n.executeFetch=function(a){this.updateQuery();var o=this.currentQuery.fetch(this.options,a);return a!=null&&a.throwOnError||(o=o.catch(cr)),o},n.updateStaleTimeout=function(){var a=this;if(this.clearStaleTimeout(),!(ks||this.currentResult.isStale||!ff(this.options.staleTime))){var o=jI(this.currentResult.dataUpdatedAt,this.options.staleTime),i=o+1;this.staleTimeoutId=setTimeout(function(){a.currentResult.isStale||a.updateResult()},i)}},n.computeRefetchInterval=function(){var a;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(a=this.options.refetchInterval)!=null?a:!1},n.updateRefetchInterval=function(a){var o=this;this.clearRefetchInterval(),this.currentRefetchInterval=a,!(ks||this.options.enabled===!1||!ff(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(o.options.refetchIntervalInBackground||gc.isFocused())&&o.executeFetch()},this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},n.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},n.createResult=function(a,o){var i=this.currentQuery,c=this.options,l=this.currentResult,s=this.currentResultState,d=this.currentResultOptions,f=a!==i,m=f?a.state:this.currentQueryInitialState,p=f?this.currentResult:this.previousQueryResult,h=a.state,v=h.dataUpdatedAt,g=h.error,C=h.errorUpdatedAt,b=h.isFetching,y=h.status,x=!1,S=!1,L;if(o.optimisticResults){var E=this.hasListeners(),w=!E&&QI(a,o),M=E&&JI(a,i,o,c);(w||M)&&(b=!0,v||(y="loading"))}if(o.keepPreviousData&&!h.dataUpdateCount&&(p!=null&&p.isSuccess)&&y!=="error")L=p.data,v=p.dataUpdatedAt,y=p.status,x=!0;else if(o.select&&typeof h.data<"u")if(l&&h.data===(s==null?void 0:s.data)&&o.select===this.selectFn)L=this.selectResult;else try{this.selectFn=o.select,L=o.select(h.data),o.structuralSharing!==!1&&(L=Hs(l==null?void 0:l.data,L)),this.selectResult=L,this.selectError=null}catch(A){qs().error(A),this.selectError=A}else L=h.data;if(typeof o.placeholderData<"u"&&typeof L>"u"&&(y==="loading"||y==="idle")){var z;if(l!=null&&l.isPlaceholderData&&o.placeholderData===(d==null?void 0:d.placeholderData))z=l.data;else if(z=typeof o.placeholderData=="function"?o.placeholderData():o.placeholderData,o.select&&typeof z<"u")try{z=o.select(z),o.structuralSharing!==!1&&(z=Hs(l==null?void 0:l.data,z)),this.selectError=null}catch(A){qs().error(A),this.selectError=A}typeof z<"u"&&(y="success",L=z,S=!0)}this.selectError&&(g=this.selectError,L=this.selectResult,C=Date.now(),y="error");var P={status:y,isLoading:y==="loading",isSuccess:y==="success",isError:y==="error",isIdle:y==="idle",data:L,dataUpdatedAt:v,error:g,errorUpdatedAt:C,failureCount:h.fetchFailureCount,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>m.dataUpdateCount||h.errorUpdateCount>m.errorUpdateCount,isFetching:b,isRefetching:b&&y!=="loading",isLoadingError:y==="error"&&h.dataUpdatedAt===0,isPlaceholderData:S,isPreviousData:x,isRefetchError:y==="error"&&h.dataUpdatedAt!==0,isStale:hf(a,o),refetch:this.refetch,remove:this.remove};return P},n.shouldNotifyListeners=function(a,o){if(!o)return!0;var i=this.options,c=i.notifyOnChangeProps,l=i.notifyOnChangePropsExclusions;if(!c&&!l||c==="tracked"&&!this.trackedProps.length)return!0;var s=c==="tracked"?this.trackedProps:c;return Object.keys(a).some(function(d){var f=d,m=a[f]!==o[f],p=s==null?void 0:s.some(function(v){return v===d}),h=l==null?void 0:l.some(function(v){return v===d});return m&&!h&&(!s||p)})},n.updateResult=function(a){var o=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!Kze(this.currentResult,o)){var i={cache:!0};(a==null?void 0:a.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,o)&&(i.listeners=!0),this.notify(le({},i,a))}},n.updateQuery=function(){var a=this.client.getQueryCache().build(this.client,this.options);if(a!==this.currentQuery){var o=this.currentQuery;this.currentQuery=a,this.currentQueryInitialState=a.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(o==null||o.removeObserver(this),a.addObserver(this))}},n.onQueryUpdate=function(a){var o={};a.type==="success"?o.onSuccess=!0:a.type==="error"&&!Ks(a.error)&&(o.onError=!0),this.updateResult(o),this.hasListeners()&&this.updateTimers()},n.notify=function(a){var o=this;Mn.batch(function(){a.onSuccess?(o.options.onSuccess==null||o.options.onSuccess(o.currentResult.data),o.options.onSettled==null||o.options.onSettled(o.currentResult.data,null)):a.onError&&(o.options.onError==null||o.options.onError(o.currentResult.error),o.options.onSettled==null||o.options.onSettled(void 0,o.currentResult.error)),a.listeners&&o.listeners.forEach(function(i){i(o.currentResult)}),a.cache&&o.client.getQueryCache().notify({query:o.currentQuery,type:"observerResultsUpdated"})})},t}(pc);function sNe(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function QI(e,t){return sNe(e,t)||e.state.dataUpdatedAt>0&&gf(e,t,t.refetchOnMount)}function gf(e,t,n){if(t.enabled!==!1){var r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&hf(e,t)}return!1}function JI(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&hf(e,n)}function hf(e,t){return e.isStaleByTime(t.staleTime)}var uNe=Tn.unstable_batchedUpdates;Mn.setBatchNotifyFunction(uNe);var dNe=console;Jze(dNe);var ZI=O.createContext(void 0),eT=O.createContext(!1);function tT(e){return e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=ZI),window.ReactQueryClientContext):ZI}var fNe=function(){var t=O.useContext(tT(O.useContext(eT)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},nT=function(t){var n=t.client,r=t.contextSharing,a=r===void 0?!1:r,o=t.children;O.useEffect(function(){return n.mount(),function(){n.unmount()}},[n]);var i=tT(a);return O.createElement(eT.Provider,{value:a},O.createElement(i.Provider,{value:n},o))};function mNe(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var pNe=O.createContext(mNe()),gNe=function(){return O.useContext(pNe)};function hNe(e,t,n){return typeof t=="function"?t.apply(void 0,n):typeof t=="boolean"?t:!!e}function vNe(e,t){var n=O.useRef(!1),r=O.useState(0),a=r[1],o=fNe(),i=gNe(),c=o.defaultQueryObserverOptions(e);c.optimisticResults=!0,c.onError&&(c.onError=Mn.batchCalls(c.onError)),c.onSuccess&&(c.onSuccess=Mn.batchCalls(c.onSuccess)),c.onSettled&&(c.onSettled=Mn.batchCalls(c.onSettled)),c.suspense&&(typeof c.staleTime!="number"&&(c.staleTime=1e3),c.cacheTime===0&&(c.cacheTime=1)),(c.suspense||c.useErrorBoundary)&&(i.isReset()||(c.retryOnMount=!1));var l=O.useState(function(){return new t(o,c)}),s=l[0],d=s.getOptimisticResult(c);if(O.useEffect(function(){n.current=!0,i.clearReset();var f=s.subscribe(Mn.batchCalls(function(){n.current&&a(function(m){return m+1})}));return s.updateResult(),function(){n.current=!1,f()}},[i,s]),O.useEffect(function(){s.setOptions(c,{listeners:!1})},[c,s]),c.suspense&&d.isLoading)throw s.fetchOptimistic(c).then(function(f){var m=f.data;c.onSuccess==null||c.onSuccess(m),c.onSettled==null||c.onSettled(m,null)}).catch(function(f){i.clearReset(),c.onError==null||c.onError(f),c.onSettled==null||c.onSettled(void 0,f)});if(d.isError&&!i.isReset()&&!d.isFetching&&hNe(c.suspense,c.useErrorBoundary,[d.error,s.getCurrentQuery()]))throw d.error;return c.notifyOnChangeProps==="tracked"&&(d=s.trackResult(d,c)),d}function rT(e,t,n){var r=js(e,t,n);return vNe(r,lNe)}var Ut=(e=>(e.App="idApp",e.Version="version",e.DeployDate="releaseDate",e.ReleasePages="gaReleasePages",e.Fields="gaReleasePagesContent",e.Title="title",e.Description="description",e.Image="idFile",e.Order="order",e.NoImage="noImage",e))(Ut||{}),vf=(e=>(e.GetApps="GetApps",e.GetReleases="GetReleases",e))(vf||{});const bNe=async()=>{const e=window.globalAuthUrl,{data:t}=await sa.get(`${e}/getApps`);return t},CNe=async e=>{const t=window.globalAuthUrl,{data:n}=await sa.post(`${t}/ListReleases`,e);return n},yNe=async e=>{const t=window.globalAuthUrl,{data:n}=await sa.post(`${t}/MaintainReleases`,e);return n},SNe=async(e,t)=>{const n=window.globalAuthUrl,{data:r}=await sa.post(`${n}/ReadNotification`,{idRelease:e,userId:t});return r},aT=()=>rT([vf.GetApps],async()=>await bNe()),xNe=e=>{const{idApp:t,userId:n,lastDeployed:r}=e;return rT([vf.GetReleases,t,n,r],async()=>await CNe(e),{enabled:!!t})},LNe=({index:e})=>{const{requiredField:t}=fd();return we.jsx(cn.List,{name:[e,Ut.Fields],children:(n,{remove:r})=>we.jsxs(we.Fragment,{children:[we.jsx(Ns,{fieldName:"idReleasePage",hidden:!0}),we.jsx(u1,{gap:16,vertical:!0,children:n.map(({key:a,name:o,...i})=>we.jsxs(u1,{gap:6,align:"center",children:[we.jsxs(u1,{vertical:!0,gap:2,style:{width:"100%"},children:[we.jsx(cn.Item,{...i,name:[o,Ut.Title],rules:t,noStyle:!0,children:we.jsx(S1,{placeholder:It("RELEASE-NOTES.FORM.FIELDS.TITLE"),maxLength:500})}),we.jsx(cn.Item,{...i,name:[o,Ut.Description],rules:t,noStyle:!0,children:we.jsx(Yu,{autoSize:{minRows:2},placeholder:It("RELEASE-NOTES.FORM.FIELDS.DESCRIPTION")})})]}),we.jsx(cn.Item,{noStyle:!0,children:we.jsx(fr,{title:It("GENERAL.REMOVE"),children:we.jsx(mn,{type:"text",icon:we.jsx(By,{}),onClick:()=>r(o),disabled:n.length===1})})})]},a))})]})})},ENe=O.forwardRef(({changeSlide:e},t)=>{const[n,r]=O.useState([]),a=cn.useFormInstance(),o=cn.useWatch(Ut.ReleasePages,a),i=s=>({file:d,fileList:f})=>{const m=s[0],p=s[1],h=o[m];r(f),Z1e(d.originFileObj,v=>{a.setFieldValue(Ut.ReleasePages,o.toSpliced(m,1,{...h,[p]:v}))})},c=s=>()=>{var p;const d=o==null?void 0:o[s],m=[...((p=o==null?void 0:o[s])==null?void 0:p[Ut.Fields])??[],{}];a.setFieldValue(Ut.ReleasePages,o.toSpliced(s,1,{...d,[Ut.Fields]:m}))},l=we.jsx(y1,{justify:"center",align:"middle",children:we.jsxs(p0,{direction:"vertical",children:[we.jsx("p",{className:"ant-upload-drag-icon",children:we.jsx(h8,{})}),we.jsx("p",{className:"ant-upload-text",children:It("GENERAL.UPLOAD_LABEL")}),we.jsx("p",{className:"ant-upload-hint",children:It("GENERAL.JPG_PNG_WARNING")})]})});return we.jsx(cn.List,{name:Ut.ReleasePages,children:s=>we.jsxs(we.Fragment,{children:[we.jsx(Ns,{fieldName:"idRelease",hidden:!0}),we.jsx(Ns,{fieldName:"idReleasePage",hidden:!0}),we.jsx(Ru,{infinite:!1,ref:t,afterChange:e,children:s.map(({key:d,name:f,...m})=>{var v,g;const p=(v=o==null?void 0:o[f])==null?void 0:v[Ut.Image],h=(g=o==null?void 0:o[f])==null?void 0:g[Ut.NoImage];return we.jsx("div",{children:we.jsxs(y1,{gutter:[8,16],style:{marginBottom:35},children:[we.jsx(ir,{span:24,children:we.jsxs(y1,{gutter:8,children:[we.jsx(ir,{span:h?24:12,children:we.jsx(LNe,{index:f})}),!h&&we.jsx(ir,{span:12,children:we.jsx(G2,{bordered:!0,styles:{body:{display:"flex",justifyContent:"center",padding:2}},children:we.jsx(cn.Item,{...m,name:[f,Ut.Image],noStyle:!0,children:we.jsx(ad,{listType:"picture",className:"release-notes-image",showUploadList:!1,fileList:n,beforeUpload:e2e,onChange:i([f,Ut.Image]),children:p?we.jsx(y0,{src:p,preview:!1,style:{maxHeight:600}}):l})})})})]})}),we.jsx(ir,{span:8,children:we.jsxs(u1,{vertical:!0,children:[we.jsx(cn.Item,{children:we.jsx(mn,{type:"dashed",onClick:c(f),icon:we.jsx(Su,{}),block:!0,children:It("RELEASE-NOTES.FORM.ADD_NEW_FIELD")})}),we.jsx(dwe,{fieldName:[f,Ut.NoImage],label:It("GENERAL.DO_NOT_USE_IMAGE")})]})})]})},d)})})]})})}),e2="RELEASE-NOTES",MNe=({addBtnLabel:e,addBtnTooltipText:t,release2edit:n,beforeOpenModal:r,beforeCloseModal:a,afterSubmit:o})=>{const[i,c]=O.useState(!1),[l,s]=O.useState(!1),[d,f]=O.useState(0),[m]=cn.useForm(),p=Wi(),{getColor:h}=V2e(),v=O.useRef(null),{requiredField:g}=fd(),{data:C}=aT(),b=cn.useWatch(Ut.ReleasePages,m),y=I=>f(I),x=()=>m.resetFields();O.useEffect(()=>{var k;const I=(b==null?void 0:b.length)-1;(k=v.current)==null||k.goTo(I)},[b==null?void 0:b.length]),O.useEffect(()=>(n&&(c(!0),m.setFieldsValue({...n,[Ut.ReleasePages]:n[Ut.ReleasePages].map(I=>({...I,[Ut.Image]:gx(I[Ut.Image])})),[Ut.DeployDate]:Yn(n[Ut.DeployDate])})),()=>{x()}),[n]);const S=()=>{r?new Promise(I=>I(r())).then(()=>c(!0)):c(!0)},L=()=>{a?new Promise(I=>I(a())).then(()=>c(!1)):c(!1)},E=()=>m.setFieldValue(Ut.ReleasePages,[...b,{[Ut.Fields]:[{}]}]),w=()=>m.setFieldValue(Ut.ReleasePages,b.filter((I,k)=>k!==d)),M=I=>{const k={...I,[Ut.DeployDate]:Yn(I[Ut.DeployDate]).format(cR),[Ut.ReleasePages]:I[Ut.ReleasePages].map((_,F)=>({..._,[Ut.Image]:t2e(_[Ut.Image]),order:F,[Ut.Fields]:_[Ut.Fields].map((V,j)=>({...V,order:j}))}))};yNe(k).then(()=>{x(),E0.success(It("GENERAL.MESSAGES.SUCCESS.ITEM_CREATE",{item:It(`${e2}.TEXT_SINGULAR`)})),o&&o()}).catch(_=>{var V;const F=((V=_.response)==null?void 0:V.data)??[];z0.error({message:It("GENERAL.ERROR"),description:we.jsx(f8,{dataSource:F,renderItem:j=>we.jsx(f8.Item,{children:It(`GENERAL.MESSAGES.ERROR.RELEASE_NOTE.${j.error}`)})})})}).finally(L)},z=()=>!!(b!=null&&b.length)&&d!==0,P=()=>!!(b!=null&&b.length)&&d!==(b==null?void 0:b.length)-1,A=()=>(b==null?void 0:b.length)>1,D=we.jsxs(u1,{justify:"flex-end",gap:8,children:[z()&&we.jsx(mn,{type:"dashed",icon:we.jsx(I1,{icon:g$}),onClick:()=>{var I;return(I=v.current)==null?void 0:I.prev()},children:It("GENERAL.BACK")}),P()&&we.jsx(mn,{type:"dashed",iconPosition:"end",icon:we.jsx(I1,{icon:h$}),onClick:()=>{var I;return(I=v.current)==null?void 0:I.next()},children:It("GENERAL.NEXT")}),A()&&we.jsx(mn,{type:"dashed",danger:!0,icon:we.jsx(I1,{icon:hN}),onClick:w,children:It(`${e2}.REMOVE_CURRENT_SLIDE`)}),we.jsx(mn,{type:"dashed",icon:we.jsx(I1,{icon:K$}),onClick:E,children:It(`${e2}.ADD_NEW_SLIDE`)}),we.jsx(mn,{type:"primary",icon:we.jsx(I1,{icon:rN}),onClick:()=>m.submit(),children:It("GENERAL.SAVE")})]}),$=I=>{s(t?I:!1)},T={[Ut.ReleasePages]:[{[Ut.Fields]:[{}]}],[Ut.DeployDate]:Yn()},R=n2e(C??[],"appName","id"),N=O.useMemo(()=>It(`${e2}.${n?"UPD_RELEASE_NOTE":"ADD_RELEASE_NOTE"}`),[p]);return we.jsxs(we.Fragment,{children:[we.jsx(fr,{title:t,open:l,onOpenChange:$,children:we.jsx(mn,{type:"primary",icon:we.jsx(I1,{icon:uz}),shape:e?"default":"circle",onClick:S,children:e})}),we.jsx(Pr,{open:i,title:N,onCancel:L,width:"60%",footer:D,destroyOnClose:!0,children:we.jsxs(cn,{form:m,layout:"vertical",initialValues:T,onFinish:M,children:[we.jsx(Ns,{fieldName:"idRelease",hidden:!0}),we.jsxs(y1,{gutter:10,children:[we.jsx(ir,{span:8,children:we.jsx(swe,{fieldName:Ut.App,label:It(`${e2}.FORM.FIELDS.APP`),placeholder:It(`${e2}.FORM.FIELDS.APP`,{context:"PLACEHOLDER"}),options:R,rules:g})}),we.jsx(ir,{span:8,children:we.jsx(zs,{fieldName:Ut.Version,label:It(`${e2}.FORM.FIELDS.VERSION`),placeholder:"0.0.0",tooltip:It(`${e2}.FORM.FIELDS.VERSION`,{context:"TOOLTIP"}),normalize:I=>I.replace(/\s/,".").replace(/[.]{2}/g,".").replace(/^[^0-9]|[^0-9.\b]/g,""),rules:[...g,()=>({validator(I,k){var V,j;const _=/[^0-9]$/,F=(j=(V=k==null?void 0:k.split("."))==null?void 0:V.filter(Boolean))==null?void 0:j.length;return _.test(k)?Promise.reject(new Error(It("GENERAL.FORM.ERRORS.VERSION"))):F>3||F<3?Promise.reject(new Error(It("GENERAL.FORM.ERRORS.FORMAT"))):Promise.resolve()}})]})}),we.jsx(ir,{span:8,children:we.jsx(uwe,{fieldName:Ut.DeployDate,label:It(`${e2}.FORM.FIELDS.DEPLOY_DATE`),format:iR,rules:g})}),we.jsx(ir,{span:24,children:we.jsx(G2,{styles:{body:{background:h("PrimaryColorBgContainer")}},children:we.jsx(ENe,{ref:v,changeSlide:y})})})]})]})})]})},{Title:wNe,Text:zNe}=fo,NNe=()=>{var E,w;const[e,t]=O.useState(!1),[n,r]=O.useState(!1),[a,o]=O.useState(0),i=Wi(),c=O.useRef(null),l=mo(R1.AppId),s=mo(R1.UserId),{data:d}=aT(),{data:f}=xNe({idApp:l,lastDeployed:!0,userId:s}),m=f==null?void 0:f[0],p=d==null?void 0:d.find(M=>M.id===l);O.useEffect(()=>{if(f!=null&&f.length){const M=f[0],z=!M.readRelease&&!!M.isDeployed;t(z)}},[f]);const h=()=>{const M=f==null?void 0:f[0];n&&(M!=null&&M.isDeployed)&&SNe(M==null?void 0:M.idRelease,s),t(!1)},v=()=>{var M;return(M=c.current)==null?void 0:M.next()},g=()=>{var M;return(M=c.current)==null?void 0:M.prev()},C=M=>o(M),b=a===0,y=a===(((E=m==null?void 0:m.gaReleasePages)==null?void 0:E.length)??0)-1,x=M=>r(M.target.checked),S=we.jsxs(u1,{justify:"space-between",align:"center",children:[we.jsx(Y1,{checked:n,onChange:x,children:It("RELEASE-NOTES.FORM.FIELDS.DO_NOT_SHOW_AGAIN")}),we.jsxs(u1,{gap:8,children:[!b&&we.jsx(mn,{onClick:g,children:It("Prev")}),!y&&we.jsx(mn,{type:"primary",onClick:v,children:It("GENERAL.ACTIONS.NEXT")}),y&&we.jsx(mn,{type:"primary",onClick:h,children:It("GENERAL.ACTIONS.CLOSE")})]})]}),L=O.useMemo(()=>It("RELEASE-NOTES.WHATS_NEWS",{app:p==null?void 0:p.appName,version:m==null?void 0:m.version}),[i]);return we.jsx(Pr,{open:e,title:L,onCancel:h,width:"70%",footer:S,children:we.jsx(Ru,{infinite:!1,ref:c,afterChange:C,children:(w=m==null?void 0:m.gaReleasePages)==null?void 0:w.map(({idFile:M,gaReleasePagesContent:z},P)=>we.jsx("div",{children:we.jsxs(y1,{gutter:[16,16],style:{marginBottom:35},children:[we.jsx(ir,{span:M?12:24,children:we.jsx(u1,{gap:16,vertical:!0,children:z.map(({title:A,description:D},$)=>we.jsxs(u1,{vertical:!0,children:[we.jsx(wNe,{level:5,children:A}),we.jsx(zNe,{style:{opacity:.5},children:D})]},`${P}-${$}`))})}),!!M&&we.jsx(ir,{span:12,children:we.jsx(u1,{justify:"center",children:we.jsx(G2,{bordered:!0,styles:{body:{display:"flex",justifyContent:"center",padding:2}},children:we.jsx(y0,{src:gx(M),style:{maxHeight:600,borderRadius:8}})})})})]})},P))})})},oT=new cNe({defaultOptions:{queries:{retry:2}}}),ONe=Hze(({showAddBtn:e,...t})=>e?we.jsx(cd,{children:we.jsx(nT,{client:oT,children:we.jsx(MNe,{...t})})}):we.jsx(cd,{children:we.jsx(nT,{client:oT,children:we.jsx(NNe,{})})}));sr.Helpdesk=Bze,sr.ReleaseNote=ONe,Object.defineProperty(sr,Symbol.toStringTag,{value:"Module"})});
1069
+ `+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ca(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:o}=n;r!==void 0&&sf.assertOptions(r,{silentJSONParsing:E2.transitional(E2.boolean),forcedJSONParsing:E2.transitional(E2.boolean),clarifyTimeoutError:E2.transitional(E2.boolean)},!1),a!=null&&($e.isFunction(a)?n.paramsSerializer={serialize:a}:sf.assertOptions(a,{encode:E2.function,serialize:E2.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&$e.merge(o.common,o[n.method]);o&&$e.forEach(["delete","get","head","post","put","patch","common"],h=>{delete o[h]}),n.headers=yr.concat(i,o);const c=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(l=l&&v.synchronous,c.unshift(v.fulfilled,v.rejected))});const s=[];this.interceptors.response.forEach(function(v){s.push(v.fulfilled,v.rejected)});let d,f=0,m;if(!l){const h=[TI.bind(this),void 0];for(h.unshift.apply(h,c),h.push.apply(h,s),m=h.length,d=Promise.resolve(n);f<m;)d=d.then(h[f++],h[f++]);return d}m=c.length;let p=n;for(f=0;f<m;){const h=c[f++],v=c[f++];try{p=h(p)}catch(g){v.call(this,g);break}}try{d=TI.call(this,p)}catch(h){return Promise.reject(h)}for(f=0,m=s.length;f<m;)d=d.then(s[f++],s[f++]);return d}getUri(t){t=ca(this.defaults,t);const n=EI(t.baseURL,t.url);return gI(n,t.params,t.paramsSerializer)}}$e.forEach(["delete","get","head","options"],function(t){la.prototype[t]=function(n,r){return this.request(ca(r||{},{method:t,url:n,data:(r||{}).data}))}}),$e.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,c){return this.request(ca(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}la.prototype[t]=n(),la.prototype[t+"Form"]=n(!0)});class uf{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(a=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](a);r._listeners=null}),this.promise.then=a=>{let o;const i=new Promise(c=>{r.subscribe(c),o=c}).then(a);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,c){r.reason||(r.reason=new Mo(o,i,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new uf(function(a){t=a}),cancel:t}}}function Rze(e){return function(n){return e.apply(null,n)}}function Aze(e){return $e.isObject(e)&&e.isAxiosError===!0}const df={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(df).forEach(([e,t])=>{df[t]=e});function DI(e){const t=new la(e),n=ZP(la.prototype.request,t);return $e.extend(n,la.prototype,t,{allOwnKeys:!0}),$e.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return DI(ca(e,a))},n}const Dn=DI(dc);Dn.Axios=la,Dn.CanceledError=Mo,Dn.CancelToken=uf,Dn.isCancel=yI,Dn.VERSION=RI,Dn.toFormData=Ts,Dn.AxiosError=Bt,Dn.Cancel=Dn.CanceledError,Dn.all=function(t){return Promise.all(t)},Dn.spread=Rze,Dn.isAxiosError=Aze,Dn.mergeConfig=ca,Dn.AxiosHeaders=yr,Dn.formToJSON=e=>bI($e.isHTMLForm(e)?new FormData(e):e),Dn.getAdapter=II.getAdapter,Dn.HttpStatusCode=df,Dn.default=Dn;const sa=Dn.create({baseURL:window.baseUrl,timeout:6e4});sa.interceptors.request.use(e=>{const t=mo(R1.Token);return e.headers.IdApp=J1e(),e.headers.Authorization="Bearer "+t,e},e=>Promise.reject(e));const _I="https://aquasis.freshdesk.com/api/v2/",kI=btoa("UtA4JWhMo8w4eWzzgo9"),Dze=async({appName:e,...t})=>{var l;const n=+"23000031142",{data:r}=await sa.get(_I+"ticket_fields",{headers:{Authorization:`Basic ${kI}`}}),a=r.find(s=>s.name==="cf_produto"),o=(l=a==null?void 0:a.choices)==null?void 0:l.find(s=>s.toLowerCase().includes(e.toLowerCase())),i={...t,status:2,priority:4,group_id:n,type:"Pedido de Suporte",custom_fields:{cf_produto:o},tags:["new-freshdesk-widget"],source:9},c=new FormData;return Object.keys(i).forEach(s=>{var d;s==="custom_fields"?Object.keys(i[s]).forEach(f=>{c.append(`custom_fields[${f}]`,i.custom_fields[f])}):s==="attachments"?(d=t.attachments)==null||d.forEach(f=>{c.append("attachments[]",new File([f],f.name))}):s==="tags"?c.append("tags[]",i[s]):c.append(s,i[s])}),sa.post(_I+"tickets",c,{headers:{Authorization:`Basic ${kI}`,"Content-Type":"multipart/form-data"}})},_ze={prefix:"far",iconName:"paper-plane",icon:[512,512,[61913],"f1d8","M16.1 260.2c-22.6 12.9-20.5 47.3 3.6 57.3L160 376l0 103.3c0 18.1 14.6 32.7 32.7 32.7c9.7 0 18.9-4.3 25.1-11.8l62-74.3 123.9 51.6c18.9 7.9 40.8-4.5 43.9-24.7l64-416c1.9-12.1-3.4-24.3-13.5-31.2s-23.3-7.5-34-1.4l-448 256zm52.1 25.5L409.7 90.6 190.1 336l1.2 1L68.2 285.7zM403.3 425.4L236.7 355.9 450.8 116.6 403.3 425.4z"]},{Title:FI}=fo,Xr="HELPDESK.FORM",kze="GENERAL.MESSAGES",Fze=({onCancel:e})=>{const[t,n]=O.useState(!1),[r]=cn.useForm(),a=Wi(),{requiredField:o}=fd(),i=mo(R1.AppName);O.useEffect(()=>{Un.changeLanguage(a)},[a]);const c=[{dataIndex:"field",title:It("HELPDESK.TABLE.FIELD"),render:d=>It(`HELPDESK.FORM.FIELDS.${d.toUpperCase()}`)},{dataIndex:"code",title:It("HELPDESK.TABLE.CODE"),render:d=>It(`HELPDESK.ERRORS_CODE.${d.toUpperCase()}`)}],l=d=>{r.setFieldValue(oa.Attachments,d.fileList)},s=d=>{n(!0);const f={...d,appName:i};Dze(f).then(()=>{z0.success({message:It(`${kze}.SUCCESS.TICKET`),placement:"topLeft"}),e&&e()}).catch(({response:m})=>{const{errors:p}=m.data;z0.error({className:"table-notification",message:It("ERROR"),placement:"topLeft",description:we.jsx(w1,{dataSource:p,columns:c,pagination:{defaultPageSize:5},rowKey:"field",size:"small",bordered:!0}),duration:0})}).finally(()=>n(!1))};return we.jsxs(y1,{className:"helpdesk__content",children:[we.jsx(ir,{span:24,children:we.jsx(FI,{level:3,className:"helpdesk__title",children:It(`${Xr}.TITLE`)})}),we.jsx(ir,{span:24,children:we.jsxs(G2,{children:[we.jsx(FI,{level:4,children:It(`${Xr}.FIELDS.TITLE`)}),we.jsxs(cn,{form:r,layout:"vertical",onFinish:s,children:[we.jsx(zs,{fieldName:oa.Name,label:It(`${Xr}.FIELDS.NAME`),placeholder:It(`${Xr}.FIELDS.NAME`,{context:"PLACEHOLDER"}),rules:o}),we.jsx(zs,{fieldName:oa.Email,label:It(`${Xr}.FIELDS.EMAIL`),placeholder:It(`${Xr}.FIELDS.EMAIL`,{context:"PLACEHOLDER"}),rules:o}),we.jsx(zs,{fieldName:oa.Subject,label:It(`${Xr}.FIELDS.SUBJECT`),placeholder:It(`${Xr}.FIELDS.SUBJECT`,{context:"PLACEHOLDER"}),rules:o}),we.jsx(fwe,{fieldName:oa.Description,label:It(`${Xr}.FIELDS.DESCRIPTION`),placeholder:It(`${Xr}.FIELDS.DESCRIPTION`,{context:"PLACEHOLDER"}),rows:4,rules:o}),we.jsx(cn.Item,{name:oa.Attachments,children:we.jsxs(ad,{beforeUpload:()=>!1,maxCount:5,onChange:l,className:"helpdesk__fields-files",multiple:!0,children:[we.jsx("p",{className:"ant-upload-drag-icon",children:we.jsx(h8,{})}),we.jsx(_2e,{i18nKey:It(`${Xr}.FIELDS.UPLOAD_FILES`),components:{strong:we.jsx("strong",{}),br:we.jsx("br",{}),small:we.jsx("small",{})}})]})}),we.jsx(mn,{htmlType:"submit",type:"primary",icon:we.jsx(I1,{icon:_ze}),loading:t,disabled:t,block:!0,children:It(`${Xr}.BUTTONS.SEND`)})]})]})})]})};pie.add(_Me);const jze=({size:e})=>{const[t,n]=O.useState(!1),r=Wi(),a=()=>n(c=>!c),o=()=>n(!1);O.useEffect(()=>{Un.changeLanguage(r)},[r]);const i=()=>{switch(e){case"small":return"1x";case"large":return"xl";default:return"lg"}};return we.jsx(cd,{children:we.jsx(y1,{align:"middle",children:we.jsx(j6,{placement:"bottomRight",trigger:"click",content:we.jsx(Fze,{onCancel:o}),rootClassName:"helpdesk__container",overlayInnerStyle:{padding:0},arrow:!1,open:t,destroyTooltipOnHide:!0,children:we.jsx(fr,{title:It("HELPDESK.SUPPORT"),placement:"left",children:we.jsx(mn,{type:"primary",shape:"circle",icon:we.jsx(I1,{icon:cw,size:i()}),onClick:a,size:e})})})})})},Bze=Xf()(jze),Hze=Xf(e=>{var t,n;return{language:(t=e==null?void 0:e.app)==null?void 0:t.language,theme:(n=e==null?void 0:e.app)==null?void 0:n.theme}});function Vze(e){return Hze(n=>{const{language:r,theme:a,dispatch:o,...i}=n;return O.useEffect(()=>{Un.changeLanguage(r)},[r]),we.jsx(e,{...i,language:r,theme:n.theme,dispatch:o})})}function mc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,fa(e,t)}var pc=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(r){var a=this,o=r||function(){};return this.listeners.push(o),this.onSubscribe(),function(){a.listeners=a.listeners.filter(function(i){return i!==o}),a.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}(),ks=typeof window>"u";function cr(){}function Wze(e,t){return typeof e=="function"?e(t):e}function ff(e){return typeof e=="number"&&e>=0&&e!==1/0}function Fs(e){return Array.isArray(e)?e:[e]}function jI(e,t){return Math.max(e+(t||0)-Date.now(),0)}function js(e,t,n){return Vs(e)?typeof t=="function"?le({},n,{queryKey:e,queryFn:t}):le({},t,{queryKey:e}):e}function M2(e,t,n){return Vs(e)?[le({},t,{queryKey:e}),n]:[e||{},t]}function Uze(e,t){if(e===!0&&t===!0||e==null&&t==null)return"all";if(e===!1&&t===!1)return"none";var n=e??!t;return n?"active":"inactive"}function BI(e,t){var n=e.active,r=e.exact,a=e.fetching,o=e.inactive,i=e.predicate,c=e.queryKey,l=e.stale;if(Vs(c)){if(r){if(t.queryHash!==mf(c,t.options))return!1}else if(!Bs(t.queryKey,c))return!1}var s=Uze(n,o);if(s==="none")return!1;if(s!=="all"){var d=t.isActive();if(s==="active"&&!d||s==="inactive"&&d)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||typeof a=="boolean"&&t.isFetching()!==a||i&&!i(t))}function HI(e,t){var n=e.exact,r=e.fetching,a=e.predicate,o=e.mutationKey;if(Vs(o)){if(!t.options.mutationKey)return!1;if(n){if(ua(t.options.mutationKey)!==ua(o))return!1}else if(!Bs(t.options.mutationKey,o))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||a&&!a(t))}function mf(e,t){var n=(t==null?void 0:t.queryKeyHashFn)||ua;return n(e)}function ua(e){var t=Fs(e);return Kze(t)}function Kze(e){return JSON.stringify(e,function(t,n){return pf(n)?Object.keys(n).sort().reduce(function(r,a){return r[a]=n[a],r},{}):n})}function Bs(e,t){return VI(Fs(e),Fs(t))}function VI(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(function(n){return!VI(e[n],t[n])}):!1}function Hs(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||pf(e)&&pf(t)){for(var r=n?e.length:Object.keys(e).length,a=n?t:Object.keys(t),o=a.length,i=n?[]:{},c=0,l=0;l<o;l++){var s=n?l:a[l];i[s]=Hs(e[s],t[s]),i[s]===e[s]&&c++}return r===o&&c===r?e:i}return t}function qze(e,t){if(e&&!t||t&&!e)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}function pf(e){if(!WI(e))return!1;var t=e.constructor;if(typeof t>"u")return!0;var n=t.prototype;return!(!WI(n)||!n.hasOwnProperty("isPrototypeOf"))}function WI(e){return Object.prototype.toString.call(e)==="[object Object]"}function Vs(e){return typeof e=="string"||Array.isArray(e)}function Gze(e){return new Promise(function(t){setTimeout(t,e)})}function UI(e){Promise.resolve().then(e).catch(function(t){return setTimeout(function(){throw t})})}function KI(){if(typeof AbortController=="function")return new AbortController}var Yze=function(e){mc(t,e);function t(){var r;return r=e.call(this)||this,r.setup=function(a){var o;if(!ks&&((o=window)!=null&&o.addEventListener)){var i=function(){return a()};return window.addEventListener("visibilitychange",i,!1),window.addEventListener("focus",i,!1),function(){window.removeEventListener("visibilitychange",i),window.removeEventListener("focus",i)}}},r}var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var a;(a=this.cleanup)==null||a.call(this),this.cleanup=void 0}},n.setEventListener=function(a){var o,i=this;this.setup=a,(o=this.cleanup)==null||o.call(this),this.cleanup=a(function(c){typeof c=="boolean"?i.setFocused(c):i.onFocus()})},n.setFocused=function(a){this.focused=a,a&&this.onFocus()},n.onFocus=function(){this.listeners.forEach(function(a){a()})},n.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},t}(pc),gc=new Yze,Xze=function(e){mc(t,e);function t(){var r;return r=e.call(this)||this,r.setup=function(a){var o;if(!ks&&((o=window)!=null&&o.addEventListener)){var i=function(){return a()};return window.addEventListener("online",i,!1),window.addEventListener("offline",i,!1),function(){window.removeEventListener("online",i),window.removeEventListener("offline",i)}}},r}var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var a;(a=this.cleanup)==null||a.call(this),this.cleanup=void 0}},n.setEventListener=function(a){var o,i=this;this.setup=a,(o=this.cleanup)==null||o.call(this),this.cleanup=a(function(c){typeof c=="boolean"?i.setOnline(c):i.onOnline()})},n.setOnline=function(a){this.online=a,a&&this.onOnline()},n.onOnline=function(){this.listeners.forEach(function(a){a()})},n.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine},t}(pc),Ws=new Xze;function Qze(e){return Math.min(1e3*Math.pow(2,e),3e4)}function Us(e){return typeof(e==null?void 0:e.cancel)=="function"}var qI=function(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent};function Ks(e){return e instanceof qI}var GI=function(t){var n=this,r=!1,a,o,i,c;this.abort=t.abort,this.cancel=function(m){return a==null?void 0:a(m)},this.cancelRetry=function(){r=!0},this.continueRetry=function(){r=!1},this.continue=function(){return o==null?void 0:o()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(m,p){i=m,c=p});var l=function(p){n.isResolved||(n.isResolved=!0,t.onSuccess==null||t.onSuccess(p),o==null||o(),i(p))},s=function(p){n.isResolved||(n.isResolved=!0,t.onError==null||t.onError(p),o==null||o(),c(p))},d=function(){return new Promise(function(p){o=p,n.isPaused=!0,t.onPause==null||t.onPause()}).then(function(){o=void 0,n.isPaused=!1,t.onContinue==null||t.onContinue()})},f=function m(){if(!n.isResolved){var p;try{p=t.fn()}catch(h){p=Promise.reject(h)}a=function(v){if(!n.isResolved&&(s(new qI(v)),n.abort==null||n.abort(),Us(p)))try{p.cancel()}catch{}},n.isTransportCancelable=Us(p),Promise.resolve(p).then(l).catch(function(h){var v,g;if(!n.isResolved){var C=(v=t.retry)!=null?v:3,b=(g=t.retryDelay)!=null?g:Qze,y=typeof b=="function"?b(n.failureCount,h):b,x=C===!0||typeof C=="number"&&n.failureCount<C||typeof C=="function"&&C(n.failureCount,h);if(r||!x){s(h);return}n.failureCount++,t.onFail==null||t.onFail(n.failureCount,h),Gze(y).then(function(){if(!gc.isFocused()||!Ws.isOnline())return d()}).then(function(){r?s(h):m()})}})}};f()},Jze=function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(n){n()},this.batchNotifyFn=function(n){n()}}var t=e.prototype;return t.batch=function(r){var a;this.transactions++;try{a=r()}finally{this.transactions--,this.transactions||this.flush()}return a},t.schedule=function(r){var a=this;this.transactions?this.queue.push(r):UI(function(){a.notifyFn(r)})},t.batchCalls=function(r){var a=this;return function(){for(var o=arguments.length,i=new Array(o),c=0;c<o;c++)i[c]=arguments[c];a.schedule(function(){r.apply(void 0,i)})}},t.flush=function(){var r=this,a=this.queue;this.queue=[],a.length&&UI(function(){r.batchNotifyFn(function(){a.forEach(function(o){r.notifyFn(o)})})})},t.setNotifyFunction=function(r){this.notifyFn=r},t.setBatchNotifyFunction=function(r){this.batchNotifyFn=r},e}(),Mn=new Jze,YI=console;function qs(){return YI}function Zze(e){YI=e}var eNe=function(){function e(n){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.cache=n.cache,this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.initialState=n.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=n.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(r){var a;this.options=le({},this.defaultOptions,r),this.meta=r==null?void 0:r.meta,this.cacheTime=Math.max(this.cacheTime||0,(a=this.options.cacheTime)!=null?a:5*60*1e3)},t.setDefaultOptions=function(r){this.defaultOptions=r},t.scheduleGc=function(){var r=this;this.clearGcTimeout(),ff(this.cacheTime)&&(this.gcTimeout=setTimeout(function(){r.optionalRemove()},this.cacheTime))},t.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},t.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(r,a){var o,i,c=this.state.data,l=Wze(r,c);return(o=(i=this.options).isDataEqual)!=null&&o.call(i,c,l)?l=c:this.options.structuralSharing!==!1&&(l=Hs(c,l)),this.dispatch({data:l,type:"success",dataUpdatedAt:a==null?void 0:a.updatedAt}),l},t.setState=function(r,a){this.dispatch({type:"setState",state:r,setStateOptions:a})},t.cancel=function(r){var a,o=this.promise;return(a=this.retryer)==null||a.cancel(r),o?o.then(cr).catch(cr):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some(function(r){return r.options.enabled!==!1})},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(function(r){return r.getCurrentResult().isStale})},t.isStaleByTime=function(r){return r===void 0&&(r=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!jI(this.state.dataUpdatedAt,r)},t.onFocus=function(){var r,a=this.observers.find(function(o){return o.shouldFetchOnWindowFocus()});a&&a.refetch(),(r=this.retryer)==null||r.continue()},t.onOnline=function(){var r,a=this.observers.find(function(o){return o.shouldFetchOnReconnect()});a&&a.refetch(),(r=this.retryer)==null||r.continue()},t.addObserver=function(r){this.observers.indexOf(r)===-1&&(this.observers.push(r),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:r}))},t.removeObserver=function(r){this.observers.indexOf(r)!==-1&&(this.observers=this.observers.filter(function(a){return a!==r}),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:r}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(r,a){var o=this,i,c,l;if(this.state.isFetching){if(this.state.dataUpdatedAt&&(a!=null&&a.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var s;return(s=this.retryer)==null||s.continueRetry(),this.promise}}if(r&&this.setOptions(r),!this.options.queryFn){var d=this.observers.find(function(b){return b.options.queryFn});d&&this.setOptions(d.options)}var f=Fs(this.queryKey),m=KI(),p={queryKey:f,pageParam:void 0,meta:this.meta};Object.defineProperty(p,"signal",{enumerable:!0,get:function(){if(m)return o.abortSignalConsumed=!0,m.signal}});var h=function(){return o.options.queryFn?(o.abortSignalConsumed=!1,o.options.queryFn(p)):Promise.reject("Missing queryFn")},v={fetchOptions:a,options:this.options,queryKey:f,state:this.state,fetchFn:h,meta:this.meta};if((i=this.options.behavior)!=null&&i.onFetch){var g;(g=this.options.behavior)==null||g.onFetch(v)}if(this.revertState=this.state,!this.state.isFetching||this.state.fetchMeta!==((c=v.fetchOptions)==null?void 0:c.meta)){var C;this.dispatch({type:"fetch",meta:(C=v.fetchOptions)==null?void 0:C.meta})}return this.retryer=new GI({fn:v.fetchFn,abort:m==null||(l=m.abort)==null?void 0:l.bind(m),onSuccess:function(y){o.setData(y),o.cache.config.onSuccess==null||o.cache.config.onSuccess(y,o),o.cacheTime===0&&o.optionalRemove()},onError:function(y){Ks(y)&&y.silent||o.dispatch({type:"error",error:y}),Ks(y)||(o.cache.config.onError==null||o.cache.config.onError(y,o),qs().error(y)),o.cacheTime===0&&o.optionalRemove()},onFail:function(){o.dispatch({type:"failed"})},onPause:function(){o.dispatch({type:"pause"})},onContinue:function(){o.dispatch({type:"continue"})},retry:v.options.retry,retryDelay:v.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(r){var a=this;this.state=this.reducer(this.state,r),Mn.batch(function(){a.observers.forEach(function(o){o.onQueryUpdate(r)}),a.cache.notify({query:a,type:"queryUpdated",action:r})})},t.getDefaultState=function(r){var a=typeof r.initialData=="function"?r.initialData():r.initialData,o=typeof r.initialData<"u",i=o?typeof r.initialDataUpdatedAt=="function"?r.initialDataUpdatedAt():r.initialDataUpdatedAt:0,c=typeof a<"u";return{data:a,dataUpdateCount:0,dataUpdatedAt:c?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:c?"success":"idle"}},t.reducer=function(r,a){var o,i;switch(a.type){case"failed":return le({},r,{fetchFailureCount:r.fetchFailureCount+1});case"pause":return le({},r,{isPaused:!0});case"continue":return le({},r,{isPaused:!1});case"fetch":return le({},r,{fetchFailureCount:0,fetchMeta:(o=a.meta)!=null?o:null,isFetching:!0,isPaused:!1},!r.dataUpdatedAt&&{error:null,status:"loading"});case"success":return le({},r,{data:a.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(i=a.dataUpdatedAt)!=null?i:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var c=a.error;return Ks(c)&&c.revert&&this.revertState?le({},this.revertState):le({},r,{error:c,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return le({},r,{isInvalidated:!0});case"setState":return le({},r,a.state);default:return r}},e}(),tNe=function(e){mc(t,e);function t(r){var a;return a=e.call(this)||this,a.config=r||{},a.queries=[],a.queriesMap={},a}var n=t.prototype;return n.build=function(a,o,i){var c,l=o.queryKey,s=(c=o.queryHash)!=null?c:mf(l,o),d=this.get(s);return d||(d=new eNe({cache:this,queryKey:l,queryHash:s,options:a.defaultQueryOptions(o),state:i,defaultOptions:a.getQueryDefaults(l),meta:o.meta}),this.add(d)),d},n.add=function(a){this.queriesMap[a.queryHash]||(this.queriesMap[a.queryHash]=a,this.queries.push(a),this.notify({type:"queryAdded",query:a}))},n.remove=function(a){var o=this.queriesMap[a.queryHash];o&&(a.destroy(),this.queries=this.queries.filter(function(i){return i!==a}),o===a&&delete this.queriesMap[a.queryHash],this.notify({type:"queryRemoved",query:a}))},n.clear=function(){var a=this;Mn.batch(function(){a.queries.forEach(function(o){a.remove(o)})})},n.get=function(a){return this.queriesMap[a]},n.getAll=function(){return this.queries},n.find=function(a,o){var i=M2(a,o),c=i[0];return typeof c.exact>"u"&&(c.exact=!0),this.queries.find(function(l){return BI(c,l)})},n.findAll=function(a,o){var i=M2(a,o),c=i[0];return Object.keys(c).length>0?this.queries.filter(function(l){return BI(c,l)}):this.queries},n.notify=function(a){var o=this;Mn.batch(function(){o.listeners.forEach(function(i){i(a)})})},n.onFocus=function(){var a=this;Mn.batch(function(){a.queries.forEach(function(o){o.onFocus()})})},n.onOnline=function(){var a=this;Mn.batch(function(){a.queries.forEach(function(o){o.onOnline()})})},t}(pc),nNe=function(){function e(n){this.options=le({},n.defaultOptions,n.options),this.mutationId=n.mutationId,this.mutationCache=n.mutationCache,this.observers=[],this.state=n.state||rNe(),this.meta=n.meta}var t=e.prototype;return t.setState=function(r){this.dispatch({type:"setState",state:r})},t.addObserver=function(r){this.observers.indexOf(r)===-1&&this.observers.push(r)},t.removeObserver=function(r){this.observers=this.observers.filter(function(a){return a!==r})},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(cr).catch(cr)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var r=this,a,o=this.state.status==="loading",i=Promise.resolve();return o||(this.dispatch({type:"loading",variables:this.options.variables}),i=i.then(function(){r.mutationCache.config.onMutate==null||r.mutationCache.config.onMutate(r.state.variables,r)}).then(function(){return r.options.onMutate==null?void 0:r.options.onMutate(r.state.variables)}).then(function(c){c!==r.state.context&&r.dispatch({type:"loading",context:c,variables:r.state.variables})})),i.then(function(){return r.executeMutation()}).then(function(c){a=c,r.mutationCache.config.onSuccess==null||r.mutationCache.config.onSuccess(a,r.state.variables,r.state.context,r)}).then(function(){return r.options.onSuccess==null?void 0:r.options.onSuccess(a,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(a,null,r.state.variables,r.state.context)}).then(function(){return r.dispatch({type:"success",data:a}),a}).catch(function(c){return r.mutationCache.config.onError==null||r.mutationCache.config.onError(c,r.state.variables,r.state.context,r),qs().error(c),Promise.resolve().then(function(){return r.options.onError==null?void 0:r.options.onError(c,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(void 0,c,r.state.variables,r.state.context)}).then(function(){throw r.dispatch({type:"error",error:c}),c})})},t.executeMutation=function(){var r=this,a;return this.retryer=new GI({fn:function(){return r.options.mutationFn?r.options.mutationFn(r.state.variables):Promise.reject("No mutationFn found")},onFail:function(){r.dispatch({type:"failed"})},onPause:function(){r.dispatch({type:"pause"})},onContinue:function(){r.dispatch({type:"continue"})},retry:(a=this.options.retry)!=null?a:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(r){var a=this;this.state=aNe(this.state,r),Mn.batch(function(){a.observers.forEach(function(o){o.onMutationUpdate(r)}),a.mutationCache.notify(a)})},e}();function rNe(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function aNe(e,t){switch(t.type){case"failed":return le({},e,{failureCount:e.failureCount+1});case"pause":return le({},e,{isPaused:!0});case"continue":return le({},e,{isPaused:!1});case"loading":return le({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return le({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return le({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return le({},e,t.state);default:return e}}var oNe=function(e){mc(t,e);function t(r){var a;return a=e.call(this)||this,a.config=r||{},a.mutations=[],a.mutationId=0,a}var n=t.prototype;return n.build=function(a,o,i){var c=new nNe({mutationCache:this,mutationId:++this.mutationId,options:a.defaultMutationOptions(o),state:i,defaultOptions:o.mutationKey?a.getMutationDefaults(o.mutationKey):void 0,meta:o.meta});return this.add(c),c},n.add=function(a){this.mutations.push(a),this.notify(a)},n.remove=function(a){this.mutations=this.mutations.filter(function(o){return o!==a}),a.cancel(),this.notify(a)},n.clear=function(){var a=this;Mn.batch(function(){a.mutations.forEach(function(o){a.remove(o)})})},n.getAll=function(){return this.mutations},n.find=function(a){return typeof a.exact>"u"&&(a.exact=!0),this.mutations.find(function(o){return HI(a,o)})},n.findAll=function(a){return this.mutations.filter(function(o){return HI(a,o)})},n.notify=function(a){var o=this;Mn.batch(function(){o.listeners.forEach(function(i){i(a)})})},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var a=this.mutations.filter(function(o){return o.state.isPaused});return Mn.batch(function(){return a.reduce(function(o,i){return o.then(function(){return i.continue().catch(cr)})},Promise.resolve())})},t}(pc);function iNe(){return{onFetch:function(t){t.fetchFn=function(){var n,r,a,o,i,c,l=(n=t.fetchOptions)==null||(r=n.meta)==null?void 0:r.refetchPage,s=(a=t.fetchOptions)==null||(o=a.meta)==null?void 0:o.fetchMore,d=s==null?void 0:s.pageParam,f=(s==null?void 0:s.direction)==="forward",m=(s==null?void 0:s.direction)==="backward",p=((i=t.state.data)==null?void 0:i.pages)||[],h=((c=t.state.data)==null?void 0:c.pageParams)||[],v=KI(),g=v==null?void 0:v.signal,C=h,b=!1,y=t.options.queryFn||function(){return Promise.reject("Missing queryFn")},x=function($,T,R,N){return C=N?[T].concat(C):[].concat(C,[T]),N?[R].concat($):[].concat($,[R])},S=function($,T,R,N){if(b)return Promise.reject("Cancelled");if(typeof R>"u"&&!T&&$.length)return Promise.resolve($);var I={queryKey:t.queryKey,signal:g,pageParam:R,meta:t.meta},k=y(I),_=Promise.resolve(k).then(function(V){return x($,R,V,N)});if(Us(k)){var F=_;F.cancel=k.cancel}return _},L;if(!p.length)L=S([]);else if(f){var E=typeof d<"u",w=E?d:XI(t.options,p);L=S(p,E,w)}else if(m){var M=typeof d<"u",z=M?d:cNe(t.options,p);L=S(p,M,z,!0)}else(function(){C=[];var D=typeof t.options.getNextPageParam>"u",$=l&&p[0]?l(p[0],0,p):!0;L=$?S([],D,h[0]):Promise.resolve(x([],h[0],p[0]));for(var T=function(I){L=L.then(function(k){var _=l&&p[I]?l(p[I],I,p):!0;if(_){var F=D?h[I]:XI(t.options,k);return S(k,D,F)}return Promise.resolve(x(k,h[I],p[I]))})},R=1;R<p.length;R++)T(R)})();var P=L.then(function(D){return{pages:D,pageParams:C}}),A=P;return A.cancel=function(){b=!0,v==null||v.abort(),Us(L)&&L.cancel()},P}}}}function XI(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function cNe(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}var lNe=function(){function e(n){n===void 0&&(n={}),this.queryCache=n.queryCache||new tNe,this.mutationCache=n.mutationCache||new oNe,this.defaultOptions=n.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var r=this;this.unsubscribeFocus=gc.subscribe(function(){gc.isFocused()&&Ws.isOnline()&&(r.mutationCache.onFocus(),r.queryCache.onFocus())}),this.unsubscribeOnline=Ws.subscribe(function(){gc.isFocused()&&Ws.isOnline()&&(r.mutationCache.onOnline(),r.queryCache.onOnline())})},t.unmount=function(){var r,a;(r=this.unsubscribeFocus)==null||r.call(this),(a=this.unsubscribeOnline)==null||a.call(this)},t.isFetching=function(r,a){var o=M2(r,a),i=o[0];return i.fetching=!0,this.queryCache.findAll(i).length},t.isMutating=function(r){return this.mutationCache.findAll(le({},r,{fetching:!0})).length},t.getQueryData=function(r,a){var o;return(o=this.queryCache.find(r,a))==null?void 0:o.state.data},t.getQueriesData=function(r){return this.getQueryCache().findAll(r).map(function(a){var o=a.queryKey,i=a.state,c=i.data;return[o,c]})},t.setQueryData=function(r,a,o){var i=js(r),c=this.defaultQueryOptions(i);return this.queryCache.build(this,c).setData(a,o)},t.setQueriesData=function(r,a,o){var i=this;return Mn.batch(function(){return i.getQueryCache().findAll(r).map(function(c){var l=c.queryKey;return[l,i.setQueryData(l,a,o)]})})},t.getQueryState=function(r,a){var o;return(o=this.queryCache.find(r,a))==null?void 0:o.state},t.removeQueries=function(r,a){var o=M2(r,a),i=o[0],c=this.queryCache;Mn.batch(function(){c.findAll(i).forEach(function(l){c.remove(l)})})},t.resetQueries=function(r,a,o){var i=this,c=M2(r,a,o),l=c[0],s=c[1],d=this.queryCache,f=le({},l,{active:!0});return Mn.batch(function(){return d.findAll(l).forEach(function(m){m.reset()}),i.refetchQueries(f,s)})},t.cancelQueries=function(r,a,o){var i=this,c=M2(r,a,o),l=c[0],s=c[1],d=s===void 0?{}:s;typeof d.revert>"u"&&(d.revert=!0);var f=Mn.batch(function(){return i.queryCache.findAll(l).map(function(m){return m.cancel(d)})});return Promise.all(f).then(cr).catch(cr)},t.invalidateQueries=function(r,a,o){var i,c,l,s=this,d=M2(r,a,o),f=d[0],m=d[1],p=le({},f,{active:(i=(c=f.refetchActive)!=null?c:f.active)!=null?i:!0,inactive:(l=f.refetchInactive)!=null?l:!1});return Mn.batch(function(){return s.queryCache.findAll(f).forEach(function(h){h.invalidate()}),s.refetchQueries(p,m)})},t.refetchQueries=function(r,a,o){var i=this,c=M2(r,a,o),l=c[0],s=c[1],d=Mn.batch(function(){return i.queryCache.findAll(l).map(function(m){return m.fetch(void 0,le({},s,{meta:{refetchPage:l==null?void 0:l.refetchPage}}))})}),f=Promise.all(d).then(cr);return s!=null&&s.throwOnError||(f=f.catch(cr)),f},t.fetchQuery=function(r,a,o){var i=js(r,a,o),c=this.defaultQueryOptions(i);typeof c.retry>"u"&&(c.retry=!1);var l=this.queryCache.build(this,c);return l.isStaleByTime(c.staleTime)?l.fetch(c):Promise.resolve(l.state.data)},t.prefetchQuery=function(r,a,o){return this.fetchQuery(r,a,o).then(cr).catch(cr)},t.fetchInfiniteQuery=function(r,a,o){var i=js(r,a,o);return i.behavior=iNe(),this.fetchQuery(i)},t.prefetchInfiniteQuery=function(r,a,o){return this.fetchInfiniteQuery(r,a,o).then(cr).catch(cr)},t.cancelMutations=function(){var r=this,a=Mn.batch(function(){return r.mutationCache.getAll().map(function(o){return o.cancel()})});return Promise.all(a).then(cr).catch(cr)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(r){return this.mutationCache.build(this,r).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(r){this.defaultOptions=r},t.setQueryDefaults=function(r,a){var o=this.queryDefaults.find(function(i){return ua(r)===ua(i.queryKey)});o?o.defaultOptions=a:this.queryDefaults.push({queryKey:r,defaultOptions:a})},t.getQueryDefaults=function(r){var a;return r?(a=this.queryDefaults.find(function(o){return Bs(r,o.queryKey)}))==null?void 0:a.defaultOptions:void 0},t.setMutationDefaults=function(r,a){var o=this.mutationDefaults.find(function(i){return ua(r)===ua(i.mutationKey)});o?o.defaultOptions=a:this.mutationDefaults.push({mutationKey:r,defaultOptions:a})},t.getMutationDefaults=function(r){var a;return r?(a=this.mutationDefaults.find(function(o){return Bs(r,o.mutationKey)}))==null?void 0:a.defaultOptions:void 0},t.defaultQueryOptions=function(r){if(r!=null&&r._defaulted)return r;var a=le({},this.defaultOptions.queries,this.getQueryDefaults(r==null?void 0:r.queryKey),r,{_defaulted:!0});return!a.queryHash&&a.queryKey&&(a.queryHash=mf(a.queryKey,a)),a},t.defaultQueryObserverOptions=function(r){return this.defaultQueryOptions(r)},t.defaultMutationOptions=function(r){return r!=null&&r._defaulted?r:le({},this.defaultOptions.mutations,this.getMutationDefaults(r==null?void 0:r.mutationKey),r,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}(),sNe=function(e){mc(t,e);function t(r,a){var o;return o=e.call(this)||this,o.client=r,o.options=a,o.trackedProps=[],o.selectError=null,o.bindMethods(),o.setOptions(a),o}var n=t.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){this.listeners.length===1&&(this.currentQuery.addObserver(this),QI(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return gf(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return gf(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(a,o){var i=this.options,c=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(a),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=i.queryKey),this.updateQuery();var l=this.hasListeners();l&&JI(this.currentQuery,c,this.options,i)&&this.executeFetch(),this.updateResult(o),l&&(this.currentQuery!==c||this.options.enabled!==i.enabled||this.options.staleTime!==i.staleTime)&&this.updateStaleTimeout();var s=this.computeRefetchInterval();l&&(this.currentQuery!==c||this.options.enabled!==i.enabled||s!==this.currentRefetchInterval)&&this.updateRefetchInterval(s)},n.getOptimisticResult=function(a){var o=this.client.defaultQueryObserverOptions(a),i=this.client.getQueryCache().build(this.client,o);return this.createResult(i,o)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(a,o){var i=this,c={},l=function(d){i.trackedProps.includes(d)||i.trackedProps.push(d)};return Object.keys(a).forEach(function(s){Object.defineProperty(c,s,{configurable:!1,enumerable:!0,get:function(){return l(s),a[s]}})}),(o.useErrorBoundary||o.suspense)&&l("error"),c},n.getNextResult=function(a){var o=this;return new Promise(function(i,c){var l=o.subscribe(function(s){s.isFetching||(l(),s.isError&&(a!=null&&a.throwOnError)?c(s.error):i(s))})})},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(a){return this.fetch(le({},a,{meta:{refetchPage:a==null?void 0:a.refetchPage}}))},n.fetchOptimistic=function(a){var o=this,i=this.client.defaultQueryObserverOptions(a),c=this.client.getQueryCache().build(this.client,i);return c.fetch().then(function(){return o.createResult(c,i)})},n.fetch=function(a){var o=this;return this.executeFetch(a).then(function(){return o.updateResult(),o.currentResult})},n.executeFetch=function(a){this.updateQuery();var o=this.currentQuery.fetch(this.options,a);return a!=null&&a.throwOnError||(o=o.catch(cr)),o},n.updateStaleTimeout=function(){var a=this;if(this.clearStaleTimeout(),!(ks||this.currentResult.isStale||!ff(this.options.staleTime))){var o=jI(this.currentResult.dataUpdatedAt,this.options.staleTime),i=o+1;this.staleTimeoutId=setTimeout(function(){a.currentResult.isStale||a.updateResult()},i)}},n.computeRefetchInterval=function(){var a;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(a=this.options.refetchInterval)!=null?a:!1},n.updateRefetchInterval=function(a){var o=this;this.clearRefetchInterval(),this.currentRefetchInterval=a,!(ks||this.options.enabled===!1||!ff(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(o.options.refetchIntervalInBackground||gc.isFocused())&&o.executeFetch()},this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},n.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},n.createResult=function(a,o){var i=this.currentQuery,c=this.options,l=this.currentResult,s=this.currentResultState,d=this.currentResultOptions,f=a!==i,m=f?a.state:this.currentQueryInitialState,p=f?this.currentResult:this.previousQueryResult,h=a.state,v=h.dataUpdatedAt,g=h.error,C=h.errorUpdatedAt,b=h.isFetching,y=h.status,x=!1,S=!1,L;if(o.optimisticResults){var E=this.hasListeners(),w=!E&&QI(a,o),M=E&&JI(a,i,o,c);(w||M)&&(b=!0,v||(y="loading"))}if(o.keepPreviousData&&!h.dataUpdateCount&&(p!=null&&p.isSuccess)&&y!=="error")L=p.data,v=p.dataUpdatedAt,y=p.status,x=!0;else if(o.select&&typeof h.data<"u")if(l&&h.data===(s==null?void 0:s.data)&&o.select===this.selectFn)L=this.selectResult;else try{this.selectFn=o.select,L=o.select(h.data),o.structuralSharing!==!1&&(L=Hs(l==null?void 0:l.data,L)),this.selectResult=L,this.selectError=null}catch(A){qs().error(A),this.selectError=A}else L=h.data;if(typeof o.placeholderData<"u"&&typeof L>"u"&&(y==="loading"||y==="idle")){var z;if(l!=null&&l.isPlaceholderData&&o.placeholderData===(d==null?void 0:d.placeholderData))z=l.data;else if(z=typeof o.placeholderData=="function"?o.placeholderData():o.placeholderData,o.select&&typeof z<"u")try{z=o.select(z),o.structuralSharing!==!1&&(z=Hs(l==null?void 0:l.data,z)),this.selectError=null}catch(A){qs().error(A),this.selectError=A}typeof z<"u"&&(y="success",L=z,S=!0)}this.selectError&&(g=this.selectError,L=this.selectResult,C=Date.now(),y="error");var P={status:y,isLoading:y==="loading",isSuccess:y==="success",isError:y==="error",isIdle:y==="idle",data:L,dataUpdatedAt:v,error:g,errorUpdatedAt:C,failureCount:h.fetchFailureCount,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>m.dataUpdateCount||h.errorUpdateCount>m.errorUpdateCount,isFetching:b,isRefetching:b&&y!=="loading",isLoadingError:y==="error"&&h.dataUpdatedAt===0,isPlaceholderData:S,isPreviousData:x,isRefetchError:y==="error"&&h.dataUpdatedAt!==0,isStale:hf(a,o),refetch:this.refetch,remove:this.remove};return P},n.shouldNotifyListeners=function(a,o){if(!o)return!0;var i=this.options,c=i.notifyOnChangeProps,l=i.notifyOnChangePropsExclusions;if(!c&&!l||c==="tracked"&&!this.trackedProps.length)return!0;var s=c==="tracked"?this.trackedProps:c;return Object.keys(a).some(function(d){var f=d,m=a[f]!==o[f],p=s==null?void 0:s.some(function(v){return v===d}),h=l==null?void 0:l.some(function(v){return v===d});return m&&!h&&(!s||p)})},n.updateResult=function(a){var o=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!qze(this.currentResult,o)){var i={cache:!0};(a==null?void 0:a.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,o)&&(i.listeners=!0),this.notify(le({},i,a))}},n.updateQuery=function(){var a=this.client.getQueryCache().build(this.client,this.options);if(a!==this.currentQuery){var o=this.currentQuery;this.currentQuery=a,this.currentQueryInitialState=a.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(o==null||o.removeObserver(this),a.addObserver(this))}},n.onQueryUpdate=function(a){var o={};a.type==="success"?o.onSuccess=!0:a.type==="error"&&!Ks(a.error)&&(o.onError=!0),this.updateResult(o),this.hasListeners()&&this.updateTimers()},n.notify=function(a){var o=this;Mn.batch(function(){a.onSuccess?(o.options.onSuccess==null||o.options.onSuccess(o.currentResult.data),o.options.onSettled==null||o.options.onSettled(o.currentResult.data,null)):a.onError&&(o.options.onError==null||o.options.onError(o.currentResult.error),o.options.onSettled==null||o.options.onSettled(void 0,o.currentResult.error)),a.listeners&&o.listeners.forEach(function(i){i(o.currentResult)}),a.cache&&o.client.getQueryCache().notify({query:o.currentQuery,type:"observerResultsUpdated"})})},t}(pc);function uNe(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function QI(e,t){return uNe(e,t)||e.state.dataUpdatedAt>0&&gf(e,t,t.refetchOnMount)}function gf(e,t,n){if(t.enabled!==!1){var r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&hf(e,t)}return!1}function JI(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&hf(e,n)}function hf(e,t){return e.isStaleByTime(t.staleTime)}var dNe=Tn.unstable_batchedUpdates;Mn.setBatchNotifyFunction(dNe);var fNe=console;Zze(fNe);var ZI=O.createContext(void 0),eT=O.createContext(!1);function tT(e){return e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=ZI),window.ReactQueryClientContext):ZI}var mNe=function(){var t=O.useContext(tT(O.useContext(eT)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},nT=function(t){var n=t.client,r=t.contextSharing,a=r===void 0?!1:r,o=t.children;O.useEffect(function(){return n.mount(),function(){n.unmount()}},[n]);var i=tT(a);return O.createElement(eT.Provider,{value:a},O.createElement(i.Provider,{value:n},o))};function pNe(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var gNe=O.createContext(pNe()),hNe=function(){return O.useContext(gNe)};function vNe(e,t,n){return typeof t=="function"?t.apply(void 0,n):typeof t=="boolean"?t:!!e}function bNe(e,t){var n=O.useRef(!1),r=O.useState(0),a=r[1],o=mNe(),i=hNe(),c=o.defaultQueryObserverOptions(e);c.optimisticResults=!0,c.onError&&(c.onError=Mn.batchCalls(c.onError)),c.onSuccess&&(c.onSuccess=Mn.batchCalls(c.onSuccess)),c.onSettled&&(c.onSettled=Mn.batchCalls(c.onSettled)),c.suspense&&(typeof c.staleTime!="number"&&(c.staleTime=1e3),c.cacheTime===0&&(c.cacheTime=1)),(c.suspense||c.useErrorBoundary)&&(i.isReset()||(c.retryOnMount=!1));var l=O.useState(function(){return new t(o,c)}),s=l[0],d=s.getOptimisticResult(c);if(O.useEffect(function(){n.current=!0,i.clearReset();var f=s.subscribe(Mn.batchCalls(function(){n.current&&a(function(m){return m+1})}));return s.updateResult(),function(){n.current=!1,f()}},[i,s]),O.useEffect(function(){s.setOptions(c,{listeners:!1})},[c,s]),c.suspense&&d.isLoading)throw s.fetchOptimistic(c).then(function(f){var m=f.data;c.onSuccess==null||c.onSuccess(m),c.onSettled==null||c.onSettled(m,null)}).catch(function(f){i.clearReset(),c.onError==null||c.onError(f),c.onSettled==null||c.onSettled(void 0,f)});if(d.isError&&!i.isReset()&&!d.isFetching&&vNe(c.suspense,c.useErrorBoundary,[d.error,s.getCurrentQuery()]))throw d.error;return c.notifyOnChangeProps==="tracked"&&(d=s.trackResult(d,c)),d}function rT(e,t,n){var r=js(e,t,n);return bNe(r,sNe)}var Ut=(e=>(e.App="idApp",e.Version="version",e.DeployDate="releaseDate",e.ReleasePages="gaReleasePages",e.Fields="gaReleasePagesContent",e.Title="title",e.Description="description",e.Image="idFile",e.Order="order",e.NoImage="noImage",e))(Ut||{}),vf=(e=>(e.GetApps="GetApps",e.GetReleases="GetReleases",e))(vf||{});const CNe=async()=>{const e=window.globalAuthUrl,{data:t}=await sa.get(`${e}/getApps`);return t},yNe=async e=>{const t=window.globalAuthUrl,{data:n}=await sa.post(`${t}/ListReleases`,e);return n},SNe=async e=>{const t=window.globalAuthUrl,{data:n}=await sa.post(`${t}/MaintainReleases`,e);return n},xNe=async(e,t)=>{const n=window.globalAuthUrl,{data:r}=await sa.post(`${n}/ReadNotification`,{idRelease:e,userId:t});return r},aT=()=>rT([vf.GetApps],async()=>await CNe()),LNe=e=>{const{idApp:t,userId:n,lastDeployed:r}=e;return rT([vf.GetReleases,t,n,r],async()=>await yNe(e),{enabled:!!t})},ENe=({index:e})=>{const{requiredField:t}=fd();return we.jsx(cn.List,{name:[e,Ut.Fields],children:(n,{remove:r})=>we.jsxs(we.Fragment,{children:[we.jsx(Ns,{fieldName:"idReleasePage",hidden:!0}),we.jsx(u1,{gap:16,vertical:!0,children:n.map(({key:a,name:o,...i})=>we.jsxs(u1,{gap:6,align:"center",children:[we.jsxs(u1,{vertical:!0,gap:2,style:{width:"100%"},children:[we.jsx(cn.Item,{...i,name:[o,Ut.Title],rules:t,noStyle:!0,children:we.jsx(S1,{placeholder:It("RELEASE-NOTES.FORM.FIELDS.TITLE"),maxLength:500})}),we.jsx(cn.Item,{...i,name:[o,Ut.Description],rules:t,noStyle:!0,children:we.jsx(Yu,{autoSize:{minRows:2},placeholder:It("RELEASE-NOTES.FORM.FIELDS.DESCRIPTION")})})]}),we.jsx(cn.Item,{noStyle:!0,children:we.jsx(fr,{title:It("GENERAL.REMOVE"),children:we.jsx(mn,{type:"text",icon:we.jsx(By,{}),onClick:()=>r(o),disabled:n.length===1})})})]},a))})]})})},MNe=O.forwardRef(({changeSlide:e},t)=>{const[n,r]=O.useState([]),a=cn.useFormInstance(),o=cn.useWatch(Ut.ReleasePages,a),i=s=>({file:d,fileList:f})=>{const m=s[0],p=s[1],h=o[m];r(f),Z1e(d.originFileObj,v=>{a.setFieldValue(Ut.ReleasePages,o.toSpliced(m,1,{...h,[p]:v}))})},c=s=>()=>{var p;const d=o==null?void 0:o[s],m=[...((p=o==null?void 0:o[s])==null?void 0:p[Ut.Fields])??[],{}];a.setFieldValue(Ut.ReleasePages,o.toSpliced(s,1,{...d,[Ut.Fields]:m}))},l=we.jsx(y1,{justify:"center",align:"middle",children:we.jsxs(p0,{direction:"vertical",children:[we.jsx("p",{className:"ant-upload-drag-icon",children:we.jsx(h8,{})}),we.jsx("p",{className:"ant-upload-text",children:It("GENERAL.UPLOAD_LABEL")}),we.jsx("p",{className:"ant-upload-hint",children:It("GENERAL.JPG_PNG_WARNING")})]})});return we.jsx(cn.List,{name:Ut.ReleasePages,children:s=>we.jsxs(we.Fragment,{children:[we.jsx(Ns,{fieldName:"idRelease",hidden:!0}),we.jsx(Ns,{fieldName:"idReleasePage",hidden:!0}),we.jsx(Ru,{infinite:!1,ref:t,afterChange:e,children:s.map(({key:d,name:f,...m})=>{var v,g;const p=(v=o==null?void 0:o[f])==null?void 0:v[Ut.Image],h=(g=o==null?void 0:o[f])==null?void 0:g[Ut.NoImage];return we.jsx("div",{children:we.jsxs(y1,{gutter:[8,16],style:{marginBottom:35},children:[we.jsx(ir,{span:24,children:we.jsxs(y1,{gutter:8,children:[we.jsx(ir,{span:h?24:12,children:we.jsx(ENe,{index:f})}),!h&&we.jsx(ir,{span:12,children:we.jsx(G2,{bordered:!0,styles:{body:{display:"flex",justifyContent:"center",padding:2}},children:we.jsx(cn.Item,{...m,name:[f,Ut.Image],noStyle:!0,children:we.jsx(ad,{listType:"picture",className:"release-notes-image",showUploadList:!1,fileList:n,beforeUpload:e2e,onChange:i([f,Ut.Image]),children:p?we.jsx(y0,{src:p,preview:!1,style:{maxHeight:600}}):l})})})})]})}),we.jsx(ir,{span:8,children:we.jsxs(u1,{vertical:!0,children:[we.jsx(cn.Item,{children:we.jsx(mn,{type:"dashed",onClick:c(f),icon:we.jsx(Su,{}),block:!0,children:It("RELEASE-NOTES.FORM.ADD_NEW_FIELD")})}),we.jsx(dwe,{fieldName:[f,Ut.NoImage],label:It("GENERAL.DO_NOT_USE_IMAGE")})]})})]})},d)})})]})})}),e2="RELEASE-NOTES",wNe=({addBtnLabel:e,addBtnTooltipText:t,release2edit:n,beforeOpenModal:r,beforeCloseModal:a,afterSubmit:o})=>{const[i,c]=O.useState(!1),[l,s]=O.useState(!1),[d,f]=O.useState(0),[m]=cn.useForm(),p=Wi(),{getColor:h}=V2e(),v=O.useRef(null),{requiredField:g}=fd(),{data:C}=aT(),b=cn.useWatch(Ut.ReleasePages,m),y=I=>f(I),x=()=>m.resetFields();O.useEffect(()=>{var k;const I=(b==null?void 0:b.length)-1;(k=v.current)==null||k.goTo(I)},[b==null?void 0:b.length]),O.useEffect(()=>(n&&(c(!0),m.setFieldsValue({...n,[Ut.ReleasePages]:n[Ut.ReleasePages].map(I=>({...I,[Ut.Image]:gx(I[Ut.Image])})),[Ut.DeployDate]:Yn(n[Ut.DeployDate])})),()=>{x()}),[n]);const S=()=>{r?new Promise(I=>I(r())).then(()=>c(!0)):c(!0)},L=()=>{a?new Promise(I=>I(a())).then(()=>c(!1)):c(!1)},E=()=>m.setFieldValue(Ut.ReleasePages,[...b,{[Ut.Fields]:[{}]}]),w=()=>m.setFieldValue(Ut.ReleasePages,b.filter((I,k)=>k!==d)),M=I=>{const k={...I,[Ut.DeployDate]:Yn(I[Ut.DeployDate]).format(cR),[Ut.ReleasePages]:I[Ut.ReleasePages].map((_,F)=>({..._,[Ut.Image]:t2e(_[Ut.Image]),order:F,[Ut.Fields]:_[Ut.Fields].map((V,j)=>({...V,order:j}))}))};SNe(k).then(()=>{x(),E0.success(It("GENERAL.MESSAGES.SUCCESS.ITEM_CREATE",{item:It(`${e2}.TEXT_SINGULAR`)})),o&&o()}).catch(_=>{var V;const F=((V=_.response)==null?void 0:V.data)??[];z0.error({message:It("GENERAL.ERROR"),description:we.jsx(f8,{dataSource:F,renderItem:j=>we.jsx(f8.Item,{children:It(`GENERAL.MESSAGES.ERROR.RELEASE_NOTE.${j.error}`)})})})}).finally(L)},z=()=>!!(b!=null&&b.length)&&d!==0,P=()=>!!(b!=null&&b.length)&&d!==(b==null?void 0:b.length)-1,A=()=>(b==null?void 0:b.length)>1,D=we.jsxs(u1,{justify:"flex-end",gap:8,children:[z()&&we.jsx(mn,{type:"dashed",icon:we.jsx(I1,{icon:g$}),onClick:()=>{var I;return(I=v.current)==null?void 0:I.prev()},children:It("GENERAL.BACK")}),P()&&we.jsx(mn,{type:"dashed",iconPosition:"end",icon:we.jsx(I1,{icon:h$}),onClick:()=>{var I;return(I=v.current)==null?void 0:I.next()},children:It("GENERAL.NEXT")}),A()&&we.jsx(mn,{type:"dashed",danger:!0,icon:we.jsx(I1,{icon:hN}),onClick:w,children:It(`${e2}.REMOVE_CURRENT_SLIDE`)}),we.jsx(mn,{type:"dashed",icon:we.jsx(I1,{icon:K$}),onClick:E,children:It(`${e2}.ADD_NEW_SLIDE`)}),we.jsx(mn,{type:"primary",icon:we.jsx(I1,{icon:rN}),onClick:()=>m.submit(),children:It("GENERAL.SAVE")})]}),$=I=>{s(t?I:!1)},T={[Ut.ReleasePages]:[{[Ut.Fields]:[{}]}],[Ut.DeployDate]:Yn()},R=n2e(C??[],"appName","id"),N=O.useMemo(()=>It(`${e2}.${n?"UPD_RELEASE_NOTE":"ADD_RELEASE_NOTE"}`),[p]);return we.jsxs(we.Fragment,{children:[we.jsx(fr,{title:t,open:l,onOpenChange:$,children:we.jsx(mn,{type:"primary",icon:we.jsx(I1,{icon:uz}),shape:e?"default":"circle",onClick:S,children:e})}),we.jsx(Pr,{open:i,title:N,onCancel:L,width:"60%",footer:D,destroyOnClose:!0,children:we.jsxs(cn,{form:m,layout:"vertical",initialValues:T,onFinish:M,children:[we.jsx(Ns,{fieldName:"idRelease",hidden:!0}),we.jsxs(y1,{gutter:10,children:[we.jsx(ir,{span:8,children:we.jsx(swe,{fieldName:Ut.App,label:It(`${e2}.FORM.FIELDS.APP`),placeholder:It(`${e2}.FORM.FIELDS.APP`,{context:"PLACEHOLDER"}),options:R,rules:g})}),we.jsx(ir,{span:8,children:we.jsx(zs,{fieldName:Ut.Version,label:It(`${e2}.FORM.FIELDS.VERSION`),placeholder:"0.0.0",tooltip:It(`${e2}.FORM.FIELDS.VERSION`,{context:"TOOLTIP"}),normalize:I=>I.replace(/\s/,".").replace(/[.]{2}/g,".").replace(/^[^0-9]|[^0-9.\b]/g,""),rules:[...g,()=>({validator(I,k){var V,j;const _=/[^0-9]$/,F=(j=(V=k==null?void 0:k.split("."))==null?void 0:V.filter(Boolean))==null?void 0:j.length;return _.test(k)?Promise.reject(new Error(It("GENERAL.FORM.ERRORS.VERSION"))):F>3||F<3?Promise.reject(new Error(It("GENERAL.FORM.ERRORS.FORMAT"))):Promise.resolve()}})]})}),we.jsx(ir,{span:8,children:we.jsx(uwe,{fieldName:Ut.DeployDate,label:It(`${e2}.FORM.FIELDS.DEPLOY_DATE`),format:iR,rules:g})}),we.jsx(ir,{span:24,children:we.jsx(G2,{styles:{body:{background:h("PrimaryColorBgContainer")}},children:we.jsx(MNe,{ref:v,changeSlide:y})})})]})]})})]})},{Title:zNe,Text:NNe}=fo,ONe=()=>{var E,w;const[e,t]=O.useState(!1),[n,r]=O.useState(!1),[a,o]=O.useState(0),i=Wi(),c=O.useRef(null),l=mo(R1.AppId),s=mo(R1.UserId),{data:d}=aT(),{data:f}=LNe({idApp:l,lastDeployed:!0,userId:s}),m=f==null?void 0:f[0],p=d==null?void 0:d.find(M=>M.id===l);O.useEffect(()=>{if(f!=null&&f.length){const M=f[0],z=!M.readRelease&&!!M.isDeployed;t(z)}},[f]);const h=()=>{const M=f==null?void 0:f[0];n&&(M!=null&&M.isDeployed)&&xNe(M==null?void 0:M.idRelease,s),t(!1)},v=()=>{var M;return(M=c.current)==null?void 0:M.next()},g=()=>{var M;return(M=c.current)==null?void 0:M.prev()},C=M=>o(M),b=a===0,y=a===(((E=m==null?void 0:m.gaReleasePages)==null?void 0:E.length)??0)-1,x=M=>r(M.target.checked),S=we.jsxs(u1,{justify:"space-between",align:"center",children:[we.jsx(Y1,{checked:n,onChange:x,children:It("RELEASE-NOTES.FORM.FIELDS.DO_NOT_SHOW_AGAIN")}),we.jsxs(u1,{gap:8,children:[!b&&we.jsx(mn,{onClick:g,children:It("Prev")}),!y&&we.jsx(mn,{type:"primary",onClick:v,children:It("GENERAL.ACTIONS.NEXT")}),y&&we.jsx(mn,{type:"primary",onClick:h,children:It("GENERAL.ACTIONS.CLOSE")})]})]}),L=O.useMemo(()=>It("RELEASE-NOTES.WHATS_NEWS",{app:p==null?void 0:p.appName,version:m==null?void 0:m.version}),[i]);return we.jsx(Pr,{open:e,title:L,onCancel:h,width:"70%",footer:S,children:we.jsx(Ru,{infinite:!1,ref:c,afterChange:C,children:(w=m==null?void 0:m.gaReleasePages)==null?void 0:w.map(({idFile:M,gaReleasePagesContent:z},P)=>we.jsx("div",{children:we.jsxs(y1,{gutter:[16,16],style:{marginBottom:35},children:[we.jsx(ir,{span:M?12:24,children:we.jsx(u1,{gap:16,vertical:!0,children:z.map(({title:A,description:D},$)=>we.jsxs(u1,{vertical:!0,children:[we.jsx(zNe,{level:5,children:A}),we.jsx(NNe,{style:{opacity:.5},children:D})]},`${P}-${$}`))})}),!!M&&we.jsx(ir,{span:12,children:we.jsx(u1,{justify:"center",children:we.jsx(G2,{bordered:!0,styles:{body:{display:"flex",justifyContent:"center",padding:2}},children:we.jsx(y0,{src:gx(M),style:{maxHeight:600,borderRadius:8}})})})})]})},P))})})},oT=new lNe({defaultOptions:{queries:{retry:2}}}),$Ne=Vze(({showAddBtn:e,...t})=>e?we.jsx(cd,{children:we.jsx(nT,{client:oT,children:we.jsx(wNe,{...t})})}):we.jsx(cd,{children:we.jsx(nT,{client:oT,children:we.jsx(ONe,{})})}));sr.Helpdesk=Bze,sr.ReleaseNote=$Ne,Object.defineProperty(sr,Symbol.toStringTag,{value:"Module"})});
@@ -1,14 +1,11 @@
1
- import { ComponentType, FC } from 'react';
2
- declare const withLanguage: (WrappedComponent: ComponentType<any>) => import('react-redux').ConnectedComponent<FC<any>, {
3
- [x: string]: any;
4
- [x: number]: any;
5
- [x: symbol]: any;
6
- context?: import('react').Context<import('react-redux').ReactReduxContextValue<any, import('redux').UnknownAction> | null> | undefined;
7
- store?: import('redux').Store | undefined;
8
- } | {
9
- [x: string]: any;
10
- [x: number]: any;
11
- [x: symbol]: any;
12
- store?: import('redux').Store | undefined;
13
- }>;
1
+ import { Themes } from '../enums/app';
2
+ import { ComponentType } from 'react';
3
+ import { ConnectedProps, DispatchProp } from 'react-redux';
4
+ export interface LanguageProps {
5
+ language: string;
6
+ theme: Themes;
7
+ }
8
+ declare const connector: import('react-redux').InferableComponentEnhancerWithProps<LanguageProps & DispatchProp<import('redux').UnknownAction>, {}>;
9
+ type ReduxProps = ConnectedProps<typeof connector> & DispatchProp;
10
+ declare function withLanguage<P>(WrappedComponent: ComponentType<P & ReduxProps>): import('react-redux').ConnectedComponent<ComponentType<import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>>, (import('react-redux').DistributiveOmit<import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>, Extract<"dispatch", ("dispatch" | keyof LanguageProps | keyof P) & ("dispatch" | keyof LanguageProps | keyof P | keyof import('react').ClassAttributes<import('react').Component<import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>, any, any>>)> | Extract<"theme", ("dispatch" | keyof LanguageProps | keyof P) & ("dispatch" | keyof LanguageProps | keyof P | keyof import('react').ClassAttributes<import('react').Component<import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>, any, any>>)> | Extract<"language", ("dispatch" | keyof LanguageProps | keyof P) & ("dispatch" | keyof LanguageProps | keyof P | keyof import('react').ClassAttributes<import('react').Component<import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>, any, any>>)>> & {} & import('react-redux').ConnectPropsMaybeWithoutContext<import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>> extends infer T ? { [k in keyof T]: (import('react-redux').DistributiveOmit<import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>, Extract<"dispatch", ("dispatch" | keyof LanguageProps | keyof P) & ("dispatch" | keyof LanguageProps | keyof P | keyof import('react').ClassAttributes<import('react').Component<import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>, any, any>>)> | Extract<"theme", ("dispatch" | keyof LanguageProps | keyof P) & ("dispatch" | keyof LanguageProps | keyof P | keyof import('react').ClassAttributes<import('react').Component<import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>, any, any>>)> | Extract<"language", ("dispatch" | keyof LanguageProps | keyof P) & ("dispatch" | keyof LanguageProps | keyof P | keyof import('react').ClassAttributes<import('react').Component<import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>, any, any>>)>> & {} & import('react-redux').ConnectPropsMaybeWithoutContext<import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>>)[k]; } : never) | (import('react-redux').DistributiveOmit<import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>, Extract<"dispatch", ("dispatch" | keyof LanguageProps | keyof P) & ("dispatch" | keyof LanguageProps | keyof P | keyof import('react').ClassAttributes<import('react').Component<import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>, any, any>>)> | Extract<"theme", ("dispatch" | keyof LanguageProps | keyof P) & ("dispatch" | keyof LanguageProps | keyof P | keyof import('react').ClassAttributes<import('react').Component<import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>, any, any>>)> | Extract<"language", ("dispatch" | keyof LanguageProps | keyof P) & ("dispatch" | keyof LanguageProps | keyof P | keyof import('react').ClassAttributes<import('react').Component<import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>, any, any>>)>> & {} & import('react-redux').ConnectPropsMaybeWithoutContext<import('react').ClassAttributes<import('react').Component<import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>, any, any>> & import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>> extends infer T_1 ? { [k_1 in keyof T_1]: (import('react-redux').DistributiveOmit<import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>, Extract<"dispatch", ("dispatch" | keyof LanguageProps | keyof P) & ("dispatch" | keyof LanguageProps | keyof P | keyof import('react').ClassAttributes<import('react').Component<import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>, any, any>>)> | Extract<"theme", ("dispatch" | keyof LanguageProps | keyof P) & ("dispatch" | keyof LanguageProps | keyof P | keyof import('react').ClassAttributes<import('react').Component<import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>, any, any>>)> | Extract<"language", ("dispatch" | keyof LanguageProps | keyof P) & ("dispatch" | keyof LanguageProps | keyof P | keyof import('react').ClassAttributes<import('react').Component<import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>, any, any>>)>> & {} & import('react-redux').ConnectPropsMaybeWithoutContext<import('react').ClassAttributes<import('react').Component<import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>, any, any>> & import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>>)[k_1]; } : never) | (import('react-redux').DistributiveOmit<import('react').ClassAttributes<import('react').Component<import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>, any, any>> & import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>, Extract<"dispatch", ("dispatch" | keyof LanguageProps | keyof P) & ("dispatch" | keyof LanguageProps | keyof P | keyof import('react').ClassAttributes<import('react').Component<import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>, any, any>>)> | Extract<"theme", ("dispatch" | keyof LanguageProps | keyof P) & ("dispatch" | keyof LanguageProps | keyof P | keyof import('react').ClassAttributes<import('react').Component<import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>, any, any>>)> | Extract<"language", ("dispatch" | keyof LanguageProps | keyof P) & ("dispatch" | keyof LanguageProps | keyof P | keyof import('react').ClassAttributes<import('react').Component<import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>, any, any>>)>> & {} & import('react-redux').ConnectPropsMaybeWithoutContext<import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>> extends infer T_2 ? { [k_2 in keyof T_2]: (import('react-redux').DistributiveOmit<import('react').ClassAttributes<import('react').Component<import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>, any, any>> & import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>, Extract<"dispatch", ("dispatch" | keyof LanguageProps | keyof P) & ("dispatch" | keyof LanguageProps | keyof P | keyof import('react').ClassAttributes<import('react').Component<import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>, any, any>>)> | Extract<"theme", ("dispatch" | keyof LanguageProps | keyof P) & ("dispatch" | keyof LanguageProps | keyof P | keyof import('react').ClassAttributes<import('react').Component<import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>, any, any>>)> | Extract<"language", ("dispatch" | keyof LanguageProps | keyof P) & ("dispatch" | keyof LanguageProps | keyof P | keyof import('react').ClassAttributes<import('react').Component<import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>, any, any>>)>> & {} & import('react-redux').ConnectPropsMaybeWithoutContext<import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>>)[k_2]; } : never) | (import('react-redux').DistributiveOmit<import('react').ClassAttributes<import('react').Component<import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>, any, any>> & import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>, Extract<"dispatch", ("dispatch" | keyof LanguageProps | keyof P) & ("dispatch" | keyof LanguageProps | keyof P | keyof import('react').ClassAttributes<import('react').Component<import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>, any, any>>)> | Extract<"theme", ("dispatch" | keyof LanguageProps | keyof P) & ("dispatch" | keyof LanguageProps | keyof P | keyof import('react').ClassAttributes<import('react').Component<import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>, any, any>>)> | Extract<"language", ("dispatch" | keyof LanguageProps | keyof P) & ("dispatch" | keyof LanguageProps | keyof P | keyof import('react').ClassAttributes<import('react').Component<import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>, any, any>>)>> & {} & import('react-redux').ConnectPropsMaybeWithoutContext<import('react').ClassAttributes<import('react').Component<import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>, any, any>> & import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>> extends infer T_3 ? { [k_3 in keyof T_3]: (import('react-redux').DistributiveOmit<import('react').ClassAttributes<import('react').Component<import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>, any, any>> & import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>, Extract<"dispatch", ("dispatch" | keyof LanguageProps | keyof P) & ("dispatch" | keyof LanguageProps | keyof P | keyof import('react').ClassAttributes<import('react').Component<import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>, any, any>>)> | Extract<"theme", ("dispatch" | keyof LanguageProps | keyof P) & ("dispatch" | keyof LanguageProps | keyof P | keyof import('react').ClassAttributes<import('react').Component<import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>, any, any>>)> | Extract<"language", ("dispatch" | keyof LanguageProps | keyof P) & ("dispatch" | keyof LanguageProps | keyof P | keyof import('react').ClassAttributes<import('react').Component<import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>, any, any>>)>> & {} & import('react-redux').ConnectPropsMaybeWithoutContext<import('react').ClassAttributes<import('react').Component<import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>, any, any>> & import('react-redux').Matching<LanguageProps & DispatchProp<import('redux').UnknownAction>, P & LanguageProps & DispatchProp<import('redux').UnknownAction> & DispatchProp<import('redux').UnknownAction>>>)[k_3]; } : never)>;
14
11
  export default withLanguage;
@@ -1,13 +1,25 @@
1
- declare const ReleaseNotesConnector: import('react-redux').ConnectedComponent<import('react').FC<any>, {
2
- [x: string]: any;
3
- [x: number]: any;
4
- [x: symbol]: any;
1
+ import { ReleaseNoteProps } from '.';
2
+ declare const ReleaseNotesConnector: import('react-redux').ConnectedComponent<import('react').ComponentType<import('react-redux').Matching<import('../../connector').LanguageProps & import('react-redux').DispatchProp<import('redux').UnknownAction>, ReleaseNoteProps & import('../../connector').LanguageProps & import('react-redux').DispatchProp<import('redux').UnknownAction> & import('react-redux').DispatchProp<import('redux').UnknownAction>>>, {
3
+ addBtnLabel?: string | undefined;
4
+ addBtnTooltipText?: string | undefined;
5
+ release2edit?: import('../..').IReleaseNote | undefined;
6
+ beforeOpenModal?: (() => void) | undefined;
7
+ beforeCloseModal?: (() => void) | undefined;
8
+ afterSubmit?: (() => void) | undefined;
9
+ showAddBtn?: boolean | undefined;
5
10
  context?: import('react').Context<import('react-redux').ReactReduxContextValue<any, import('redux').UnknownAction> | null> | undefined;
6
11
  store?: import('redux').Store | undefined;
7
12
  } | {
8
- [x: string]: any;
9
- [x: number]: any;
10
- [x: symbol]: any;
13
+ ref?: import('react').LegacyRef<import('react').Component<import('react-redux').Matching<import('../../connector').LanguageProps & import('react-redux').DispatchProp<import('redux').UnknownAction>, ReleaseNoteProps & import('../../connector').LanguageProps & import('react-redux').DispatchProp<import('redux').UnknownAction> & import('react-redux').DispatchProp<import('redux').UnknownAction>>, any, any>> | undefined;
14
+ key?: import('react').Key | null | undefined;
15
+ addBtnLabel?: string | undefined;
16
+ addBtnTooltipText?: string | undefined;
17
+ release2edit?: import('../..').IReleaseNote | undefined;
18
+ beforeOpenModal?: (() => void) | undefined;
19
+ beforeCloseModal?: (() => void) | undefined;
20
+ afterSubmit?: (() => void) | undefined;
21
+ showAddBtn?: boolean | undefined;
22
+ context?: import('react').Context<import('react-redux').ReactReduxContextValue<any, import('redux').UnknownAction> | null> | undefined;
11
23
  store?: import('redux').Store | undefined;
12
24
  }>;
13
25
  export { ReleaseNotesConnector };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "aquasis-fe-components",
3
3
  "private": false,
4
- "version": "1.2.13-b",
4
+ "version": "1.2.13-c",
5
5
  "type": "module",
6
6
  "license": "ISC",
7
7
  "author": "Ewerton Souza",