@abdellatifui/react 3.1.29 → 3.1.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/nextgen.d.ts CHANGED
@@ -101,8 +101,8 @@ export declare const createDefaultConnTemplate: (name: any, id: any, sourceId: a
101
101
  name: any;
102
102
  id: any;
103
103
  details: {};
104
- source: any;
105
- destination: any;
104
+ sourceId: any;
105
+ destinationId: any;
106
106
  linkColor: any;
107
107
  linkAnimationColor: any;
108
108
  };
package/dist/nextgen.js CHANGED
@@ -191,14 +191,14 @@ function Sf() {
191
191
  }
192
192
  return null;
193
193
  }
194
- var I = Object.assign, B = 0, Y, Z, U, ne, z, W, te;
194
+ var I = Object.assign, B = 0, Y, Z, q, ne, z, W, te;
195
195
  function oe() {
196
196
  }
197
197
  oe.__reactDisabledLog = !0;
198
198
  function X() {
199
199
  {
200
200
  if (B === 0) {
201
- Y = console.log, Z = console.info, U = console.warn, ne = console.error, z = console.group, W = console.groupCollapsed, te = console.groupEnd;
201
+ Y = console.log, Z = console.info, q = console.warn, ne = console.error, z = console.group, W = console.groupCollapsed, te = console.groupEnd;
202
202
  var k = {
203
203
  configurable: !0,
204
204
  enumerable: !0,
@@ -234,7 +234,7 @@ function Sf() {
234
234
  value: Z
235
235
  }),
236
236
  warn: I({}, k, {
237
- value: U
237
+ value: q
238
238
  }),
239
239
  error: I({}, k, {
240
240
  value: ne
@@ -406,9 +406,9 @@ function Sf() {
406
406
  }
407
407
  }
408
408
  }
409
- var Se = Array.isArray;
409
+ var Ee = Array.isArray;
410
410
  function bt(k) {
411
- return Se(k);
411
+ return Ee(k);
412
412
  }
413
413
  function mt(k) {
414
414
  {
@@ -553,7 +553,7 @@ Check the render method of \`` + k + "`.";
553
553
  return "";
554
554
  }
555
555
  var se = {};
556
- function q(k) {
556
+ function U(k) {
557
557
  {
558
558
  var F = jn();
559
559
  if (!F) {
@@ -570,7 +570,7 @@ Check the top-level render call using <` + J + ">.");
570
570
  if (!k._store || k._store.validated || k.key != null)
571
571
  return;
572
572
  k._store.validated = !0;
573
- var J = q(F);
573
+ var J = U(F);
574
574
  if (se[J])
575
575
  return;
576
576
  se[J] = !0;
@@ -578,7 +578,7 @@ Check the top-level render call using <` + J + ">.");
578
578
  k && k._owner && k._owner !== gn.current && (ue = " It was passed a child from " + M(k._owner.type) + "."), Kt(k), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', J, ue), Kt(null);
579
579
  }
580
580
  }
581
- function Ee(k, F) {
581
+ function Se(k, F) {
582
582
  {
583
583
  if (typeof k != "object")
584
584
  return;
@@ -655,12 +655,12 @@ Check the top-level render call using <` + J + ">.");
655
655
  if (ue)
656
656
  if (bt(Dt)) {
657
657
  for (var Un = 0; Un < Dt.length; Un++)
658
- Ee(Dt[Un], k);
658
+ Se(Dt[Un], k);
659
659
  Object.freeze && Object.freeze(Dt);
660
660
  } else
661
661
  S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
662
662
  else
663
- Ee(Dt, k);
663
+ Se(Dt, k);
664
664
  }
665
665
  if (it.call(F, "key")) {
666
666
  var On = M(k), wt = Object.keys(F).filter(function(yd) {
@@ -933,7 +933,7 @@ const De = (e) => {
933
933
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
934
934
  Lf.test(e) && !Bf.test(e)
935
935
  ), ac = () => !1, Qf = (e) => Vf.test(e), Zf = (e) => Wf.test(e), ep = () => {
936
- const e = De("colors"), n = De("spacing"), t = De("blur"), r = De("brightness"), o = De("borderColor"), s = De("borderRadius"), i = De("borderSpacing"), a = De("borderWidth"), l = De("contrast"), u = De("grayscale"), f = De("hueRotate"), p = De("invert"), h = De("gap"), g = De("gradientColorStops"), y = De("gradientColorStopPositions"), d = De("inset"), b = De("margin"), C = De("opacity"), S = De("padding"), x = De("saturate"), E = De("scale"), v = De("sepia"), w = De("skew"), T = De("space"), j = De("translate"), R = () => ["auto", "contain", "none"], _ = () => ["auto", "hidden", "clip", "visible", "scroll"], A = () => ["auto", ge, n], P = () => [ge, n], M = () => ["", on, vn], I = () => ["auto", nr, ge], B = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], Y = () => ["solid", "dashed", "dotted", "double", "none"], Z = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], U = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], ne = () => ["", "0", ge], z = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], W = () => [nr, ge];
936
+ const e = De("colors"), n = De("spacing"), t = De("blur"), r = De("brightness"), o = De("borderColor"), s = De("borderRadius"), i = De("borderSpacing"), a = De("borderWidth"), l = De("contrast"), u = De("grayscale"), f = De("hueRotate"), p = De("invert"), h = De("gap"), g = De("gradientColorStops"), y = De("gradientColorStopPositions"), d = De("inset"), b = De("margin"), C = De("opacity"), S = De("padding"), x = De("saturate"), E = De("scale"), v = De("sepia"), w = De("skew"), T = De("space"), j = De("translate"), R = () => ["auto", "contain", "none"], _ = () => ["auto", "hidden", "clip", "visible", "scroll"], A = () => ["auto", ge, n], P = () => [ge, n], M = () => ["", on, vn], I = () => ["auto", nr, ge], B = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], Y = () => ["solid", "dashed", "dotted", "double", "none"], Z = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], q = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], ne = () => ["", "0", ge], z = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], W = () => [nr, ge];
937
937
  return {
938
938
  cacheSize: 500,
939
939
  separator: ":",
@@ -1337,7 +1337,7 @@ const De = (e) => {
1337
1337
  * @see https://tailwindcss.com/docs/justify-content
1338
1338
  */
1339
1339
  "justify-content": [{
1340
- justify: ["normal", ...U()]
1340
+ justify: ["normal", ...q()]
1341
1341
  }],
1342
1342
  /**
1343
1343
  * Justify Items
@@ -1358,7 +1358,7 @@ const De = (e) => {
1358
1358
  * @see https://tailwindcss.com/docs/align-content
1359
1359
  */
1360
1360
  "align-content": [{
1361
- content: ["normal", ...U(), "baseline"]
1361
+ content: ["normal", ...q(), "baseline"]
1362
1362
  }],
1363
1363
  /**
1364
1364
  * Align Items
@@ -1379,7 +1379,7 @@ const De = (e) => {
1379
1379
  * @see https://tailwindcss.com/docs/place-content
1380
1380
  */
1381
1381
  "place-content": [{
1382
- "place-content": [...U(), "baseline"]
1382
+ "place-content": [...q(), "baseline"]
1383
1383
  }],
1384
1384
  /**
1385
1385
  * Place Items
@@ -5267,22 +5267,22 @@ svg.p-icon g,
5267
5267
  }, a = function() {
5268
5268
  var f, p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, h = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", g = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, y = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !0;
5269
5269
  p.hasOwnProperty("pt") && p.pt !== void 0 && (p = p.pt);
5270
- var d = h, b = /./g.test(d) && !!g[d.split(".")[0]], C = b ? Je.toFlatCase(d.split(".")[1]) : Je.toFlatCase(d), S = g.hostName && Je.toFlatCase(g.hostName), x = S || g.props && g.props.__TYPE && Je.toFlatCase(g.props.__TYPE) || "", E = C === "transition", v = "data-pc-", w = function(U) {
5271
- return U != null && U.props ? U.hostName ? U.props.__TYPE === U.hostName ? U.props : w(U.parent) : U.parent : void 0;
5272
- }, T = function(U) {
5270
+ var d = h, b = /./g.test(d) && !!g[d.split(".")[0]], C = b ? Je.toFlatCase(d.split(".")[1]) : Je.toFlatCase(d), S = g.hostName && Je.toFlatCase(g.hostName), x = S || g.props && g.props.__TYPE && Je.toFlatCase(g.props.__TYPE) || "", E = C === "transition", v = "data-pc-", w = function(q) {
5271
+ return q != null && q.props ? q.hostName ? q.props.__TYPE === q.hostName ? q.props : w(q.parent) : q.parent : void 0;
5272
+ }, T = function(q) {
5273
5273
  var ne, z;
5274
- return ((ne = g.props) === null || ne === void 0 ? void 0 : ne[U]) || ((z = w(g)) === null || z === void 0 ? void 0 : z[U]);
5274
+ return ((ne = g.props) === null || ne === void 0 ? void 0 : ne[q]) || ((z = w(g)) === null || z === void 0 ? void 0 : z[q]);
5275
5275
  };
5276
5276
  rt.cParams = g, rt.cName = x;
5277
5277
  var j = T("ptOptions") || rt.context.ptOptions || {}, R = j.mergeSections, _ = R === void 0 ? !0 : R, A = j.mergeProps, P = A === void 0 ? !1 : A, M = function() {
5278
- var U = sn.apply(void 0, arguments);
5279
- return Array.isArray(U) ? {
5280
- className: Fs.apply(void 0, fa(U))
5281
- } : Je.isString(U) ? {
5282
- className: U
5283
- } : U != null && U.hasOwnProperty("className") && Array.isArray(U.className) ? {
5284
- className: Fs.apply(void 0, fa(U.className))
5285
- } : U;
5278
+ var q = sn.apply(void 0, arguments);
5279
+ return Array.isArray(q) ? {
5280
+ className: Fs.apply(void 0, fa(q))
5281
+ } : Je.isString(q) ? {
5282
+ className: q
5283
+ } : q != null && q.hasOwnProperty("className") && Array.isArray(q.className) ? {
5284
+ className: Fs.apply(void 0, fa(q.className))
5285
+ } : q;
5286
5286
  }, I = y ? b ? fc(M, d, g) : pc(M, d, g) : void 0, B = b ? void 0 : _o(Po(p, x), M, d, g), Y = !E && at(at({}, C === "root" && Vs({}, "".concat(v, "name"), g.props && g.props.__parentMetadata ? Je.toFlatCase(g.props.__TYPE) : x)), {}, Vs({}, "".concat(v, "section"), C));
5287
5287
  return _ || !_ && B ? P ? mo([I, B, Object.keys(Y).length ? Y : {}], {
5288
5288
  classNameMergeFunction: (f = rt.context.ptOptions) === null || f === void 0 ? void 0 : f.classNameMergeFunction
@@ -5853,18 +5853,18 @@ const Gp = me((e, n) => {
5853
5853
  /* @__PURE__ */ c.jsxs(yc, { children: [
5854
5854
  /* @__PURE__ */ c.jsx(bc, { children: R ? /* @__PURE__ */ c.jsx("div", { className: V("w-full h-full flex items-center justify-center "), children: /* @__PURE__ */ c.jsx(ui, { size: "xs" }) }) : "No result." }),
5855
5855
  /* @__PURE__ */ c.jsx(xc, { className: "!custom-scroll-bar1 relative", children: t.map((I, B) => {
5856
- const Z = (f ? I : { label: I })[g], U = x == Z;
5857
- return U && M(), /* @__PURE__ */ c.jsx(
5856
+ const Z = (f ? I : { label: I })[g], q = x == Z;
5857
+ return q && M(), /* @__PURE__ */ c.jsx(
5858
5858
  Cc,
5859
5859
  {
5860
5860
  "data-id": "__" + Z,
5861
5861
  className: V(
5862
5862
  `__${Z} my-[5px] transition-all ease-in-out duration-75 h-[25px] z-[300] font-geist truncate w-full`,
5863
- U ? "bg-gray-200 text-black px-2" : null
5863
+ q ? "bg-gray-200 text-black px-2" : null
5864
5864
  ),
5865
5865
  value: Z,
5866
5866
  title: Z,
5867
- children: U ? /* @__PURE__ */ c.jsxs("div", { className: "space-x-2 flex items-center justify-center h-fit w-fit", children: [
5867
+ children: q ? /* @__PURE__ */ c.jsxs("div", { className: "space-x-2 flex items-center justify-center h-fit w-fit", children: [
5868
5868
  /* @__PURE__ */ c.jsx("div", { className: "rounded-3xl text-blue-500 w-[20px] aspect-square px-0 truncate flex items-center justify-center", children: /* @__PURE__ */ c.jsx(Hl, { size: 14 }) }),
5869
5869
  /* @__PURE__ */ c.jsx("label", { children: Z })
5870
5870
  ] }) : /* @__PURE__ */ c.jsx("label", { children: Z }),
@@ -6273,9 +6273,9 @@ function im() {
6273
6273
  }
6274
6274
  }
6275
6275
  }
6276
- var v = l, w = u, T = a, j = i, R = n, _ = f, A = r, P = y, M = g, I = t, B = s, Y = o, Z = p, U = !1;
6276
+ var v = l, w = u, T = a, j = i, R = n, _ = f, A = r, P = y, M = g, I = t, B = s, Y = o, Z = p, q = !1;
6277
6277
  function ne(K) {
6278
- return U || (U = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), z(K) || E(K) === l;
6278
+ return q || (q = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), z(K) || E(K) === l;
6279
6279
  }
6280
6280
  function z(K) {
6281
6281
  return E(K) === u;
@@ -6614,7 +6614,7 @@ function cm() {
6614
6614
  var te = z[W];
6615
6615
  if (typeof te != "function")
6616
6616
  return s(
6617
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + U(te) + " at index " + W + "."
6617
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + q(te) + " at index " + W + "."
6618
6618
  ), i;
6619
6619
  }
6620
6620
  function oe(X, ie, ae, G, L) {
@@ -6732,7 +6732,7 @@ Valid keys: ` + JSON.stringify(Object.keys(z), null, " ")
6732
6732
  }
6733
6733
  return W;
6734
6734
  }
6735
- function U(z) {
6735
+ function q(z) {
6736
6736
  var W = Z(z);
6737
6737
  switch (W) {
6738
6738
  case "array":
@@ -11000,8 +11000,8 @@ const My = ({ connections: e = [], mapApi: n, options: t, selectedConn: r, _onLi
11000
11000
  name: e,
11001
11001
  id: n,
11002
11002
  details: o || {},
11003
- source: t,
11004
- destination: r,
11003
+ sourceId: t,
11004
+ destinationId: r,
11005
11005
  linkColor: s,
11006
11006
  linkAnimationColor: i
11007
11007
  }), Dy = (e) => {
@@ -11058,20 +11058,20 @@ const Fy = me((e, n) => {
11058
11058
  mapStyle: A = ks == null ? void 0 : ks[1],
11059
11059
  isolateNonSelectedLinksOnNodeClick: P = !1,
11060
11060
  showLinkCount: M = !0
11061
- } = e, I = pe(), B = pe({}), Y = pe(), [Z, U] = D([]), [ne, z] = D([]), [W, te] = D(t), [oe, X] = D(), [ie, ae] = D(null), [G, L] = D({}), [Q, re] = D({}), [he, K] = D(!1), [de, We] = D({ connections: [], nodes: [], countBoxes: [] }), [Ke, it] = D({}), [pt, jt] = D(!1), yt = ye(() => {
11061
+ } = e, I = pe(), B = pe({}), Y = pe(), [Z, q] = D([]), [ne, z] = D([]), [W, te] = D(t), [oe, X] = D(), [ie, ae] = D(null), [G, L] = D({}), [Q, re] = D({}), [he, K] = D(!1), [de, We] = D({ connections: [], nodes: [], countBoxes: [] }), [Ke, it] = D({}), [pt, jt] = D(!1), yt = ye(() => {
11062
11062
  var $, se;
11063
- return !(($ = B == null ? void 0 : B.current) != null && $.getZoom) || !M ? [] : ((se = B.current) == null ? void 0 : se.getZoom()) < h ? [] : ne == null ? void 0 : ne.map((q) => {
11063
+ return console.log("Original Connections", ne), !(($ = B == null ? void 0 : B.current) != null && $.getZoom) || !M ? [] : ((se = B.current) == null ? void 0 : se.getZoom()) < h ? [] : ne == null ? void 0 : ne.map((U) => {
11064
11064
  var tt, Ge, je, ee, xe, Be, Ce;
11065
- ((tt = de == null ? void 0 : de.countBoxes) == null ? void 0 : tt.length) > 0 && ((Ge = de == null ? void 0 : de.countBoxes) != null && Ge.includes(q == null ? void 0 : q.connCountBoxId) ? q.visible = !0 : q.visible = !1), oe && (oe == null ? void 0 : oe.connCountBoxId) == (q == null ? void 0 : q.connCountBoxId) ? q.visible = !0 : q.visible = !1, ((je = de == null ? void 0 : de.countBoxes) == null ? void 0 : je.length) == 0 && !oe && (q.visible = !0);
11066
- const Me = q == null ? void 0 : q.linkColorHex, Ee = B.current.project([(ee = q == null ? void 0 : q.source) == null ? void 0 : ee.lng, (xe = q == null ? void 0 : q.source) == null ? void 0 : xe.lat]), le = B.current.project([(Be = q == null ? void 0 : q.destination) == null ? void 0 : Be.lng, (Ce = q == null ? void 0 : q.destination) == null ? void 0 : Ce.lat]);
11067
- return q.midpointx = ((Ee == null ? void 0 : Ee.x) + (le == null ? void 0 : le.x)) / 2, q.midpointy = ((Ee == null ? void 0 : Ee.y) + (le == null ? void 0 : le.y)) / 2, /* @__PURE__ */ c.jsx(Yo, { title: "Number of connections", children: /* @__PURE__ */ c.jsx(
11065
+ console.log("connection : ", U), ((tt = de == null ? void 0 : de.countBoxes) == null ? void 0 : tt.length) > 0 && ((Ge = de == null ? void 0 : de.countBoxes) != null && Ge.includes(U == null ? void 0 : U.connCountBoxId) ? U.visible = !0 : U.visible = !1), oe && (oe == null ? void 0 : oe.connCountBoxId) == (U == null ? void 0 : U.connCountBoxId) ? U.visible = !0 : U.visible = !1, ((je = de == null ? void 0 : de.countBoxes) == null ? void 0 : je.length) == 0 && !oe && (U.visible = !0);
11066
+ const Me = U == null ? void 0 : U.linkColorHex, Se = B.current.project([(ee = U == null ? void 0 : U.source) == null ? void 0 : ee.lng, (xe = U == null ? void 0 : U.source) == null ? void 0 : xe.lat]), le = B.current.project([(Be = U == null ? void 0 : U.destination) == null ? void 0 : Be.lng, (Ce = U == null ? void 0 : U.destination) == null ? void 0 : Ce.lat]);
11067
+ return U.midpointx = ((Se == null ? void 0 : Se.x) + (le == null ? void 0 : le.x)) / 2, U.midpointy = ((Se == null ? void 0 : Se.y) + (le == null ? void 0 : le.y)) / 2, /* @__PURE__ */ c.jsx(Yo, { title: "Number of connections", children: /* @__PURE__ */ c.jsx(
11068
11068
  "div",
11069
11069
  {
11070
- id: "#" + (q == null ? void 0 : q.connCountBoxId),
11070
+ id: "#" + (U == null ? void 0 : U.connCountBoxId),
11071
11071
  style: {
11072
- top: q == null ? void 0 : q.midpointy,
11073
- left: q == null ? void 0 : q.midpointx,
11074
- backgroundColor: q == null ? void 0 : q.linkColorHex,
11072
+ top: U == null ? void 0 : U.midpointy,
11073
+ left: U == null ? void 0 : U.midpointx,
11074
+ backgroundColor: U == null ? void 0 : U.linkColorHex,
11075
11075
  "--ring-color-2": Me,
11076
11076
  transform: "translate(-50%, -50%)",
11077
11077
  display: pt ? "" : "none"
@@ -11079,18 +11079,18 @@ const Fy = me((e, n) => {
11079
11079
  className: V(
11080
11080
  "z-[30] select-none pointer-events-none transition-all duration-300 ease-in-out ring-2 ring-offset-2 absolute font-geist opacity-80 text-white text-xs font-bold w-[20px] h-[20px] p-1 pt-1.5 rounded-full flex items-center justify-center",
11081
11081
  "ring-[var(--ring-color-2)]",
11082
- (q == null ? void 0 : q.visible) == !1 ? "hidden" : ""
11082
+ (U == null ? void 0 : U.visible) == !1 ? "hidden" : ""
11083
11083
  ),
11084
- children: q == null ? void 0 : q.linkCount
11084
+ children: U == null ? void 0 : U.linkCount
11085
11085
  },
11086
- "_s-" + (q == null ? void 0 : q.u_id)
11086
+ "_s-" + (U == null ? void 0 : U.u_id)
11087
11087
  ) });
11088
11088
  });
11089
11089
  }, [ne, h, oe, de == null ? void 0 : de.countBoxes, pt, M, B == null ? void 0 : B.current]), Yt = ye(() => {
11090
11090
  var se;
11091
11091
  const $ = S(G);
11092
11092
  return $ || "Link : " + ((se = G == null ? void 0 : G.data) == null ? void 0 : se.name);
11093
- }, [G]), [Se, bt] = D({
11093
+ }, [G]), [Ee, bt] = D({
11094
11094
  linkAnimation: l,
11095
11095
  enableNativeContextMenu: x,
11096
11096
  hideLinksOnDrag: a,
@@ -11102,15 +11102,15 @@ const Fy = me((e, n) => {
11102
11102
  mapStyle: A
11103
11103
  }), mt = ye(() => {
11104
11104
  var $, se;
11105
- if ((($ = Se == null ? void 0 : Se.mapStyle) == null ? void 0 : $.name) == "static") {
11106
- const q = structuredClone(Se == null ? void 0 : Se.mapStyle);
11107
- return p && (q.url.layers[0].paint["background-color"] = p), q.url;
11105
+ if ((($ = Ee == null ? void 0 : Ee.mapStyle) == null ? void 0 : $.name) == "static") {
11106
+ const U = structuredClone(Ee == null ? void 0 : Ee.mapStyle);
11107
+ return p && (U.url.layers[0].paint["background-color"] = p), U.url;
11108
11108
  }
11109
- return (se = Se == null ? void 0 : Se.mapStyle) == null ? void 0 : se.url;
11110
- }, [Se == null ? void 0 : Se.mapStyle, p]), Ot = My({
11109
+ return (se = Ee == null ? void 0 : Ee.mapStyle) == null ? void 0 : se.url;
11110
+ }, [Ee == null ? void 0 : Ee.mapStyle, p]), Ot = My({
11111
11111
  connections: ne,
11112
11112
  mapApi: B,
11113
- options: Se,
11113
+ options: Ee,
11114
11114
  _onLinkSelected: xt,
11115
11115
  selectedConn: G,
11116
11116
  mapDragging: he,
@@ -11143,16 +11143,18 @@ const Fy = me((e, n) => {
11143
11143
  }
11144
11144
  const Xt = ($) => {
11145
11145
  var se;
11146
- return $ != null && $.linkColor && ((se = $ == null ? void 0 : $.linkColor) != null && se.includes("#")) ? to($ == null ? void 0 : $.linkColor) : $ != null && $.linkColor ? $ == null ? void 0 : $.linkColor : Se == null ? void 0 : Se.defaultLinkColorHex;
11146
+ return $ != null && $.linkColor && ((se = $ == null ? void 0 : $.linkColor) != null && se.includes("#")) ? to($ == null ? void 0 : $.linkColor) : $ != null && $.linkColor ? $ == null ? void 0 : $.linkColor : Ee == null ? void 0 : Ee.defaultLinkColorHex;
11147
11147
  }, Mt = fe(($, se) => {
11148
- const q = $.map((le) => ({
11148
+ const U = $.map((le) => ({
11149
11149
  ...le,
11150
11150
  connections: []
11151
- })), Me = (le) => {
11151
+ }));
11152
+ console.log("Processed Nodes", U);
11153
+ const Me = (le) => {
11152
11154
  var Ge;
11153
11155
  const tt = se.filter((je) => (je == null ? void 0 : je.sourceId) == (le == null ? void 0 : le.sourceId) && (je == null ? void 0 : je.destinationId) == (le == null ? void 0 : le.destinationId) || (je == null ? void 0 : je.destinationId) == (le == null ? void 0 : le.sourceId) && (je == null ? void 0 : je.sourceId) == (le == null ? void 0 : le.destinationId) ? je : null);
11154
11156
  return (Ge = tt == null ? void 0 : tt.filter((je) => je != null)) == null ? void 0 : Ge.length;
11155
- }, Ee = se.map((le) => ({
11157
+ }, Se = se.map((le) => ({
11156
11158
  ...le,
11157
11159
  u_id: le.u_id || Vt(),
11158
11160
  linkColorHex: le.linkColor || s,
@@ -11165,25 +11167,25 @@ const Fy = me((e, n) => {
11165
11167
  timestamp: [0, 5, 10, 15],
11166
11168
  linkCount: Me(le)
11167
11169
  }));
11168
- q.forEach((le, tt) => {
11169
- Ee.forEach((Ge, je) => {
11170
+ console.log("Processed Connections", Se), U.forEach((le, tt) => {
11171
+ Se.forEach((Ge, je) => {
11170
11172
  const ee = (le == null ? void 0 : le.elementId) === (Ge == null ? void 0 : Ge.sourceId) ? "source" : (le == null ? void 0 : le.elementId) === (Ge == null ? void 0 : Ge.destinationId) ? "destination" : null;
11171
- ee && (Ee[je].nodes = [
11172
- ...Ee[je].nodes,
11173
+ ee && (Se[je].nodes = [
11174
+ ...Se[je].nodes,
11173
11175
  le
11174
- ], Ee[je][ee] = le == null ? void 0 : le.location, q[tt].connections = [
11175
- ...q[tt].connections,
11176
+ ], Se[je][ee] = le == null ? void 0 : le.location, U[tt].connections = [
11177
+ ...U[tt].connections,
11176
11178
  Ge
11177
11179
  ]);
11178
11180
  });
11179
- }), te(q), z(Ee);
11181
+ }), console.log("Processed Nodes final ", U), console.log("Processed Connections final", Se), te(U), z(Se);
11180
11182
  }, []);
11181
11183
  H(() => {
11182
11184
  Mt(t, r);
11183
11185
  }, [r, t]);
11184
11186
  const Ct = fe(() => {
11185
- localStorage.setItem(`network_map_options_${y}`, JSON.stringify(Se));
11186
- }, [y, Se]), ce = fe(() => {
11187
+ localStorage.setItem(`network_map_options_${y}`, JSON.stringify(Ee));
11188
+ }, [y, Ee]), ce = fe(() => {
11187
11189
  const $ = localStorage.getItem(`network_map_options_${y}`);
11188
11190
  $ && bt(JSON.parse($));
11189
11191
  }, [y]);
@@ -11191,9 +11193,9 @@ const Fy = me((e, n) => {
11191
11193
  Ct();
11192
11194
  }, [Ct]);
11193
11195
  function rn($) {
11194
- var se, q, Me, Ee, le, tt, Ge, je;
11195
- if (re($), f($), Se != null && Se.isolateNonSelectedLinksOnNodeClick) {
11196
- const ee = (q = (se = $ == null ? void 0 : $.data) == null ? void 0 : se.connections) == null ? void 0 : q.map((Ce) => Ce == null ? void 0 : Ce.sourceId), xe = (Ee = (Me = $ == null ? void 0 : $.data) == null ? void 0 : Me.connections) == null ? void 0 : Ee.map((Ce) => Ce == null ? void 0 : Ce.destinationId), Be = Array.from(/* @__PURE__ */ new Set([...ee, ...xe]));
11196
+ var se, U, Me, Se, le, tt, Ge, je;
11197
+ if (re($), f($), Ee != null && Ee.isolateNonSelectedLinksOnNodeClick) {
11198
+ const ee = (U = (se = $ == null ? void 0 : $.data) == null ? void 0 : se.connections) == null ? void 0 : U.map((Ce) => Ce == null ? void 0 : Ce.sourceId), xe = (Se = (Me = $ == null ? void 0 : $.data) == null ? void 0 : Me.connections) == null ? void 0 : Se.map((Ce) => Ce == null ? void 0 : Ce.destinationId), Be = Array.from(/* @__PURE__ */ new Set([...ee, ...xe]));
11197
11199
  We(
11198
11200
  {
11199
11201
  connections: (tt = (le = $ == null ? void 0 : $.data) == null ? void 0 : le.connections) == null ? void 0 : tt.map((Ce) => Ce == null ? void 0 : Ce.u_id),
@@ -11210,10 +11212,10 @@ const Fy = me((e, n) => {
11210
11212
  $.u_id = Vt(), te((se) => [...se, $]);
11211
11213
  }
11212
11214
  function Tn($) {
11213
- var q, Me, Ee;
11215
+ var U, Me, Se;
11214
11216
  const se = W == null ? void 0 : W.find((le) => (le == null ? void 0 : le.elementId) == $);
11215
- se && ((Ee = B.current) == null || Ee.flyTo({
11216
- center: [(q = se == null ? void 0 : se.location) == null ? void 0 : q.lng, (Me = se == null ? void 0 : se.location) == null ? void 0 : Me.lat],
11217
+ se && ((Se = B.current) == null || Se.flyTo({
11218
+ center: [(U = se == null ? void 0 : se.location) == null ? void 0 : U.lng, (Me = se == null ? void 0 : se.location) == null ? void 0 : Me.lat],
11217
11219
  zoom: 10
11218
11220
  }));
11219
11221
  }
@@ -11221,11 +11223,11 @@ const Fy = me((e, n) => {
11221
11223
  $.u_id = Vt(), z((se) => [...se, $]);
11222
11224
  }
11223
11225
  function vr($) {
11224
- const se = ne == null ? void 0 : ne.filter((q) => (q == null ? void 0 : q.id) != $);
11226
+ const se = ne == null ? void 0 : ne.filter((U) => (U == null ? void 0 : U.id) != $);
11225
11227
  z(se);
11226
11228
  }
11227
11229
  function Wn($) {
11228
- const se = W == null ? void 0 : W.filter((q) => (q == null ? void 0 : q.id) != $);
11230
+ const se = W == null ? void 0 : W.filter((U) => (U == null ? void 0 : U.id) != $);
11229
11231
  te(se);
11230
11232
  }
11231
11233
  function Hn() {
@@ -11278,10 +11280,10 @@ const Fy = me((e, n) => {
11278
11280
  }))) || [], [j, ie, G]), Jt = () => {
11279
11281
  jt(!0);
11280
11282
  }, jn = ($) => {
11281
- var q, Me, Ee;
11282
- $.layer || X(null), $ != null && $.coordinate && U($.coordinate), B.current.getCanvas().style.cursor = "";
11283
+ var U, Me, Se;
11284
+ $.layer || X(null), $ != null && $.coordinate && q($.coordinate), B.current.getCanvas().style.cursor = "";
11283
11285
  const se = document.querySelector("canvas[data-mapbox-overlay]");
11284
- se && (se.style.zIndex = "0", se.style.pointerEvents = "none"), $ != null && $.picked && ((Me = (q = $ == null ? void 0 : $.layer) == null ? void 0 : q.props) != null && Me.main) && (B.current.getCanvas().style.cursor = "default", X({ ...$.object }), b({ event: $, data: $ == null ? void 0 : $.object, type: "connection", id: (Ee = $ == null ? void 0 : $.object) == null ? void 0 : Ee.id, mapApi: B }));
11286
+ se && (se.style.zIndex = "0", se.style.pointerEvents = "none"), $ != null && $.picked && ((Me = (U = $ == null ? void 0 : $.layer) == null ? void 0 : U.props) != null && Me.main) && (B.current.getCanvas().style.cursor = "default", X({ ...$.object }), b({ event: $, data: $ == null ? void 0 : $.object, type: "connection", id: (Se = $ == null ? void 0 : $.object) == null ? void 0 : Se.id, mapApi: B }));
11285
11287
  };
11286
11288
  return /* @__PURE__ */ c.jsx("div", { className: "w-full h-full relative bg-blue-200", children: /* @__PURE__ */ c.jsxs(
11287
11289
  "div",
@@ -11334,10 +11336,10 @@ const Fy = me((e, n) => {
11334
11336
  ref: Y,
11335
11337
  onClick: ($) => {
11336
11338
  $ != null && $.layer || (L((se) => {
11337
- var q, Me;
11338
- return (Me = (q = se == null ? void 0 : se.object) == null ? void 0 : q.nodes) == null || Me.map((Ee) => {
11339
+ var U, Me;
11340
+ return (Me = (U = se == null ? void 0 : se.object) == null ? void 0 : U.nodes) == null || Me.map((Se) => {
11339
11341
  var le, tt;
11340
- (tt = (le = Ee == null ? void 0 : Ee.ref) == null ? void 0 : le.current) == null || tt.changeMarkerOutline(!1);
11342
+ (tt = (le = Se == null ? void 0 : Se.ref) == null ? void 0 : le.current) == null || tt.changeMarkerOutline(!1);
11341
11343
  }), {};
11342
11344
  }), We({ connections: [], nodes: [], countBoxes: [] }));
11343
11345
  },
@@ -11345,15 +11347,15 @@ const Fy = me((e, n) => {
11345
11347
  }
11346
11348
  ),
11347
11349
  W == null ? void 0 : W.map(($, se) => {
11348
- var q, Me;
11350
+ var U, Me;
11349
11351
  return /* @__PURE__ */ c.jsx(
11350
11352
  Oy,
11351
11353
  {
11352
11354
  name: $ == null ? void 0 : $.name,
11353
11355
  item: $,
11354
11356
  nodeSizeScaler: g,
11355
- longitude: (q = $ == null ? void 0 : $.location) == null ? void 0 : q.lng,
11356
- options: Se,
11357
+ longitude: (U = $ == null ? void 0 : $.location) == null ? void 0 : U.lng,
11358
+ options: Ee,
11357
11359
  CreateMapObjectsScheme: Mt,
11358
11360
  latitude: (Me = $ == null ? void 0 : $.location) == null ? void 0 : Me.lat,
11359
11361
  nodeIconMapper: _,
@@ -12806,14 +12808,14 @@ const Cb = me((e, n) => {
12806
12808
  function A() {
12807
12809
  return !!["default", "checkbox", "switch", "accordion"].includes(y);
12808
12810
  }
12809
- function P(U) {
12811
+ function P(q) {
12810
12812
  if (!g) {
12811
12813
  if (o) {
12812
12814
  s.defaultChecked == null && (s.defaultChecked = !1);
12813
12815
  const ne = s.defaultChecked != !0;
12814
- o(U, s, ne);
12816
+ o(q, s, ne);
12815
12817
  }
12816
- ["switch", "accordion"].includes(y) || f && (s == null ? void 0 : s.type) != "custom" && f(U, s);
12818
+ ["switch", "accordion"].includes(y) || f && (s == null ? void 0 : s.type) != "custom" && f(q, s);
12817
12819
  }
12818
12820
  }
12819
12821
  const M = ye(() => s.type === "checkbox" && s.checked ? /* @__PURE__ */ c.jsx(ql, {}) : s.icon ? s.icon : null, [s.type, s.checked, s.icon]);
@@ -12822,20 +12824,20 @@ const Cb = me((e, n) => {
12822
12824
  }, [M]);
12823
12825
  const I = () => {
12824
12826
  (l == null ? void 0 : l.length) > 0 && (v(!0), _()), T("yes");
12825
- }, B = (U) => {
12827
+ }, B = (q) => {
12826
12828
  T("no"), setTimeout(() => {
12827
12829
  var ne;
12828
12830
  ((ne = R == null ? void 0 : R.current) == null ? void 0 : ne.getAttribute("data-highlight")) === "no" && v(!1);
12829
- }, 100), h == null || h(U);
12830
- }, Y = (U) => {
12831
- s.onChange && s.onChange(U);
12831
+ }, 100), h == null || h(q);
12832
+ }, Y = (q) => {
12833
+ s.onChange && s.onChange(q);
12832
12834
  }, Z = ye(() => {
12833
- var U;
12835
+ var q;
12834
12836
  return p ? [
12835
12837
  p.ctrl && "CTRL",
12836
12838
  p.alt && "ALT",
12837
12839
  p.shift && "SHIFT",
12838
- (U = p.key) == null ? void 0 : U.toUpperCase()
12840
+ (q = p.key) == null ? void 0 : q.toUpperCase()
12839
12841
  ].filter(Boolean).join("+") : "";
12840
12842
  }, [p]);
12841
12843
  return /* @__PURE__ */ c.jsxs("div", { className: "relative", children: [
@@ -12858,8 +12860,8 @@ const Cb = me((e, n) => {
12858
12860
  {
12859
12861
  disabled: s.disabled,
12860
12862
  defaultChecked: s.defaultChecked,
12861
- onCheckedChange: (U) => {
12862
- s.checked = U, Y(U);
12863
+ onCheckedChange: (q) => {
12864
+ s.checked = q, Y(q);
12863
12865
  }
12864
12866
  }
12865
12867
  ) }),
@@ -13428,10 +13430,10 @@ const _b = _e("overflow-visible flex pr-2 font-Roboto text-gray-500", {
13428
13430
  x(/* @__PURE__ */ c.jsx("p", { className: "font-Roboto text-destructive", children: Z })), E && clearTimeout(E);
13429
13431
  else if (Y === "valid") {
13430
13432
  x(/* @__PURE__ */ c.jsx("p", { className: "font-Roboto text-green-600", children: Z })), E && clearTimeout(E);
13431
- const U = setTimeout(() => {
13433
+ const q = setTimeout(() => {
13432
13434
  x(o);
13433
13435
  }, 15e3);
13434
- v(U);
13436
+ v(q);
13435
13437
  }
13436
13438
  }
13437
13439
  function M(Y) {
@@ -13441,15 +13443,15 @@ const _b = _e("overflow-visible flex pr-2 font-Roboto text-gray-500", {
13441
13443
  }
13442
13444
  }
13443
13445
  const I = fe((Y, Z) => {
13444
- const U = Fe(`#${T}`).val();
13445
- l === "email" && M(Z || U);
13446
+ const q = Fe(`#${T}`).val();
13447
+ l === "email" && M(Z || q);
13446
13448
  }, [n == null ? void 0 : n.current, T]), B = (Y) => {
13447
- const Z = Y.target, U = Z.value;
13449
+ const Z = Y.target, q = Z.value;
13448
13450
  if (f) {
13449
13451
  const ne = Z.scrollHeight, z = Z.scrollTop;
13450
13452
  z > 0 && (Z.style.height = ne + z + "px");
13451
13453
  }
13452
- R(U), d(s, U);
13454
+ R(q), d(s, q);
13453
13455
  };
13454
13456
  return H(() => {
13455
13457
  u && R(u);
@@ -14823,8 +14825,8 @@ function yx(e) {
14823
14825
  var Y;
14824
14826
  const I = (Y = a.current.api) == null ? void 0 : Y.getColumnState();
14825
14827
  !(I == null ? void 0 : I.every((Z) => {
14826
- const U = P[Z.colId];
14827
- return !U || Z.hide === U.hide;
14828
+ const q = P[Z.colId];
14829
+ return !q || Z.hide === q.hide;
14828
14830
  })) && T < j ? (console.log(`State verification failed, retrying... (${T}/${j})`), R()) : (console.log("Column state successfully applied and verified"), d(!1));
14829
14831
  }, 100);
14830
14832
  } else
@@ -14997,7 +14999,7 @@ const Ui = Fn({}), bx = me((e, n) => {
14997
14999
  onMultiRowSelection: Y = function() {
14998
15000
  },
14999
15001
  hideFromTable: Z = [],
15000
- expandRows: U = {},
15002
+ expandRows: q = {},
15001
15003
  onExpand: ne = () => {
15002
15004
  },
15003
15005
  onCollapse: z = () => {
@@ -15024,7 +15026,7 @@ const Ui = Fn({}), bx = me((e, n) => {
15024
15026
  B,
15025
15027
  l,
15026
15028
  ie,
15027
- U,
15029
+ q,
15028
15030
  ne,
15029
15031
  _,
15030
15032
  z,
@@ -15034,7 +15036,7 @@ const Ui = Fn({}), bx = me((e, n) => {
15034
15036
  r
15035
15037
  ), [K] = Gb(a, o), [de, We] = Jb(X, t, e, ie, G), [Ke, it] = Xb(f, We);
15036
15038
  Qb(de);
15037
- const [pt, jt] = D(!0), [yt, Yt] = D(null), [Se, bt] = D(null), [mt, Ot] = D({ header: null, value: null }), [xt, Xt] = D(!0), [Mt] = px(de, j, mt, xt), [Ct] = tx(de, it, Ke), [ce, rn] = D(0), [mn, hn] = D(!1), Tn = fe((ee) => {
15039
+ const [pt, jt] = D(!0), [yt, Yt] = D(null), [Ee, bt] = D(null), [mt, Ot] = D({ header: null, value: null }), [xt, Xt] = D(!0), [Mt] = px(de, j, mt, xt), [Ct] = tx(de, it, Ke), [ce, rn] = D(0), [mn, hn] = D(!1), Tn = fe((ee) => {
15038
15040
  var Be, Ce, k;
15039
15041
  if (!X.current.api)
15040
15042
  return;
@@ -15093,13 +15095,13 @@ const Ui = Fn({}), bx = me((e, n) => {
15093
15095
  return X.current.api.applyTransaction({ remove: ee }), Kt();
15094
15096
  }, [Jt]), se = fe((ee) => {
15095
15097
  b(ee, ee.data);
15096
- }, [b]), q = fe(() => {
15098
+ }, [b]), U = fe(() => {
15097
15099
  de.ready && L((ee) => []);
15098
15100
  }, [de.ready]), Me = fe((ee) => {
15099
15101
  ee.updateSingleCallbackKey("ready", !1), C(ee), setTimeout(() => {
15100
15102
  ee.updateSingleCallbackKey("ready", !0);
15101
15103
  }, 1e3);
15102
- }, [C]), Ee = fe((ee) => {
15104
+ }, [C]), Se = fe((ee) => {
15103
15105
  if (r)
15104
15106
  try {
15105
15107
  const xe = localStorage.getItem(`table_columns_${r}`);
@@ -15130,11 +15132,11 @@ const Ui = Fn({}), bx = me((e, n) => {
15130
15132
  getSelectedRow: jn,
15131
15133
  onRefreshTrigger: Me,
15132
15134
  PanelDialogRef: ae,
15133
- reset: q,
15135
+ reset: U,
15134
15136
  removeSelectedRows: $,
15135
15137
  getTableData: Kt,
15136
15138
  getRawTableData: Nn
15137
- }), [Tn, Vn, Wn, Jt, jn, Me, q, $]);
15139
+ }), [Tn, Vn, Wn, Jt, jn, Me, U, $]);
15138
15140
  H(() => {
15139
15141
  X.current && We((ee) => ({ ...ee, ...le }));
15140
15142
  }, [le, We]);
@@ -15176,7 +15178,7 @@ const Ui = Fn({}), bx = me((e, n) => {
15176
15178
  onCellContextMenu: v ? gn : null,
15177
15179
  suppressContextMenu: !0,
15178
15180
  onRowDoubleClicked: se,
15179
- onFirstDataRendered: Ee,
15181
+ onFirstDataRendered: Se,
15180
15182
  ...s
15181
15183
  }), [
15182
15184
  r,
@@ -15194,7 +15196,7 @@ const Ui = Fn({}), bx = me((e, n) => {
15194
15196
  v,
15195
15197
  gn,
15196
15198
  se,
15197
- Ee,
15199
+ Se,
15198
15200
  s
15199
15201
  ]), je = ye(() => ({
15200
15202
  tref: ie,
@@ -15265,7 +15267,7 @@ const Ui = Fn({}), bx = me((e, n) => {
15265
15267
  To,
15266
15268
  {
15267
15269
  items: { items: Mt },
15268
- event: Se
15270
+ event: Ee
15269
15271
  }
15270
15272
  ),
15271
15273
  /* @__PURE__ */ c.jsx(
@@ -16912,7 +16914,7 @@ function q0(e) {
16912
16914
  lg: "1.55556",
16913
16915
  // large font sizes for components
16914
16916
  xl: "1.66667"
16915
- }, S.lineHeight), B = (n = (t = S.colorSchemes) == null || (t = t.light) == null ? void 0 : t.shadowRing) != null ? n : j.shadowRing, Y = (r = (o = S.colorSchemes) == null || (o = o.light) == null ? void 0 : o.shadowChannel) != null ? r : j.shadowChannel, Z = (s = (i = S.colorSchemes) == null || (i = i.light) == null ? void 0 : i.shadowOpacity) != null ? s : j.shadowOpacity, U = {
16917
+ }, S.lineHeight), B = (n = (t = S.colorSchemes) == null || (t = t.light) == null ? void 0 : t.shadowRing) != null ? n : j.shadowRing, Y = (r = (o = S.colorSchemes) == null || (o = o.light) == null ? void 0 : o.shadowChannel) != null ? r : j.shadowChannel, Z = (s = (i = S.colorSchemes) == null || (i = i.light) == null ? void 0 : i.shadowOpacity) != null ? s : j.shadowOpacity, q = {
16916
16918
  colorSchemes: {
16917
16919
  light: j,
16918
16920
  dark: R
@@ -17031,7 +17033,7 @@ function q0(e) {
17031
17033
  color: x(`palette-text-tertiary, ${j.palette.text.tertiary}`)
17032
17034
  }
17033
17035
  }
17034
- }, ne = S ? lt(U, S) : U, {
17036
+ }, ne = S ? lt(q, S) : q, {
17035
17037
  colorSchemes: z
17036
17038
  } = ne, W = ve(ne, H0), te = O({
17037
17039
  colorSchemes: z
@@ -17529,7 +17531,7 @@ const iC = (e) => {
17529
17531
  elementType: aC,
17530
17532
  externalForwardedProps: M,
17531
17533
  ownerState: A
17532
- }), [U, ne] = _t("endDecorator", {
17534
+ }), [q, ne] = _t("endDecorator", {
17533
17535
  className: P.endDecorator,
17534
17536
  elementType: lC,
17535
17537
  externalForwardedProps: M,
@@ -17542,7 +17544,7 @@ const iC = (e) => {
17542
17544
  children: S
17543
17545
  })), R ? /* @__PURE__ */ N.cloneElement(b, {
17544
17546
  variant: b.props.variant || "inline"
17545
- }) : b, C && /* @__PURE__ */ c.jsx(U, O({}, ne, {
17547
+ }) : b, C && /* @__PURE__ */ c.jsx(q, O({}, ne, {
17546
17548
  children: C
17547
17549
  }))]
17548
17550
  }))
@@ -17846,7 +17848,7 @@ const uC = ["checked", "uncheckedIcon", "checkedIcon", "label", "defaultChecked"
17846
17848
  component: B,
17847
17849
  slots: Y = {},
17848
17850
  slotProps: Z = {}
17849
- } = l, U = ve(l, uC), ne = N.useContext(nd), z = (r = (o = n.disabled) != null ? o : ne == null ? void 0 : ne.disabled) != null ? r : y, W = (s = (i = n.size) != null ? i : ne == null ? void 0 : ne.size) != null ? s : I;
17851
+ } = l, q = ve(l, uC), ne = N.useContext(nd), z = (r = (o = n.disabled) != null ? o : ne == null ? void 0 : ne.disabled) != null ? r : y, W = (s = (i = n.size) != null ? i : ne == null ? void 0 : ne.size) != null ? s : I;
17850
17852
  if (process.env.NODE_ENV !== "production") {
17851
17853
  const ce = ne == null ? void 0 : ne.registerEffect;
17852
17854
  N.useEffect(() => {
@@ -17876,7 +17878,7 @@ const uC = ["checked", "uncheckedIcon", "checkedIcon", "label", "defaultChecked"
17876
17878
  color: L ? K || "primary" : K || "neutral",
17877
17879
  variant: he,
17878
17880
  size: W
17879
- }), it = dC(Ke), pt = O({}, U, {
17881
+ }), it = dC(Ke), pt = O({}, q, {
17880
17882
  component: B,
17881
17883
  slots: Y,
17882
17884
  slotProps: Z
@@ -17886,7 +17888,7 @@ const uC = ["checked", "uncheckedIcon", "checkedIcon", "label", "defaultChecked"
17886
17888
  elementType: fC,
17887
17889
  externalForwardedProps: pt,
17888
17890
  ownerState: Ke
17889
- }), [Yt, Se] = _t("checkbox", {
17891
+ }), [Yt, Ee] = _t("checkbox", {
17890
17892
  className: it.checkbox,
17891
17893
  elementType: pC,
17892
17894
  externalForwardedProps: pt,
@@ -17925,7 +17927,7 @@ const uC = ["checked", "uncheckedIcon", "checkedIcon", "label", "defaultChecked"
17925
17927
  });
17926
17928
  let Ct = f;
17927
17929
  return d ? Ct = null : S ? Ct = x : ie && (Ct = p), /* @__PURE__ */ c.jsxs(jt, O({}, yt, {
17928
- children: [/* @__PURE__ */ c.jsxs(Yt, O({}, Se, {
17930
+ children: [/* @__PURE__ */ c.jsxs(Yt, O({}, Ee, {
17929
17931
  children: [/* @__PURE__ */ c.jsx(bt, O({}, mt, {
17930
17932
  children: /* @__PURE__ */ c.jsx(Ot, O({}, xt))
17931
17933
  })), Ct]
@@ -18678,7 +18680,7 @@ const MC = Bn("MuiButtonBase", ["root", "disabled", "focusVisible"]), DC = ["act
18678
18680
  TouchRippleProps: M,
18679
18681
  touchRippleRef: I,
18680
18682
  type: B
18681
- } = r, Y = ve(r, DC), Z = N.useRef(null), U = N.useRef(null), ne = xn(U, I), {
18683
+ } = r, Y = ve(r, DC), Z = N.useRef(null), q = N.useRef(null), ne = xn(q, I), {
18682
18684
  isFocusVisibleRef: z,
18683
18685
  onFocus: W,
18684
18686
  onBlur: te,
@@ -18695,10 +18697,10 @@ const MC = Bn("MuiButtonBase", ["root", "disabled", "focusVisible"]), DC = ["act
18695
18697
  }, []);
18696
18698
  const L = ae && !f && !u;
18697
18699
  N.useEffect(() => {
18698
- X && h && !f && ae && U.current.pulsate();
18700
+ X && h && !f && ae && q.current.pulsate();
18699
18701
  }, [f, h, X, ae]);
18700
18702
  function Q(ce, rn, mn = p) {
18701
- return tr((hn) => (rn && rn(hn), !mn && U.current && U.current[ce](hn), !0));
18703
+ return tr((hn) => (rn && rn(hn), !mn && q.current && q.current[ce](hn), !0));
18702
18704
  }
18703
18705
  const re = Q("start", w), he = Q("stop", b), K = Q("stop", C), de = Q("stop", j), We = Q("stop", (ce) => {
18704
18706
  X && ce.preventDefault(), T && T(ce);
@@ -18709,13 +18711,13 @@ const MC = Bn("MuiButtonBase", ["root", "disabled", "focusVisible"]), DC = ["act
18709
18711
  }), Yt = () => {
18710
18712
  const ce = Z.current;
18711
18713
  return l && l !== "button" && !(ce.tagName === "A" && ce.href);
18712
- }, Se = N.useRef(!1), bt = tr((ce) => {
18713
- h && !Se.current && X && U.current && ce.key === " " && (Se.current = !0, U.current.stop(ce, () => {
18714
- U.current.start(ce);
18714
+ }, Ee = N.useRef(!1), bt = tr((ce) => {
18715
+ h && !Ee.current && X && q.current && ce.key === " " && (Ee.current = !0, q.current.stop(ce, () => {
18716
+ q.current.start(ce);
18715
18717
  })), ce.target === ce.currentTarget && Yt() && ce.key === " " && ce.preventDefault(), E && E(ce), ce.target === ce.currentTarget && Yt() && ce.key === "Enter" && !u && (ce.preventDefault(), d && d(ce));
18716
18718
  }), mt = tr((ce) => {
18717
- h && ce.key === " " && U.current && X && !ce.defaultPrevented && (Se.current = !1, U.current.stop(ce, () => {
18718
- U.current.pulsate(ce);
18719
+ h && ce.key === " " && q.current && X && !ce.defaultPrevented && (Ee.current = !1, q.current.stop(ce, () => {
18720
+ q.current.pulsate(ce);
18719
18721
  })), v && v(ce), d && ce.target === ce.currentTarget && Yt() && ce.key === " " && !ce.defaultPrevented && d(ce);
18720
18722
  });
18721
18723
  let Ot = l;
@@ -18724,7 +18726,7 @@ const MC = Bn("MuiButtonBase", ["root", "disabled", "focusVisible"]), DC = ["act
18724
18726
  Ot === "button" ? (xt.type = B === void 0 ? "button" : B, xt.disabled = u) : (!Y.href && !Y.to && (xt.role = "button"), u && (xt["aria-disabled"] = u));
18725
18727
  const Xt = xn(t, oe, Z);
18726
18728
  process.env.NODE_ENV !== "production" && N.useEffect(() => {
18727
- L && !U.current && console.error(["MUI: The `component` prop provided to ButtonBase is invalid.", "Please make sure the children prop is rendered in this custom component."].join(`
18729
+ L && !q.current && console.error(["MUI: The `component` prop provided to ButtonBase is invalid.", "Please make sure the children prop is rendered in this custom component."].join(`
18728
18730
  `));
18729
18731
  }, [L]);
18730
18732
  const Mt = O({}, r, {
@@ -1 +1 @@
1
- {"version":3,"file":"Map.d.ts","sourceRoot":"","sources":["../../../../src/components/NetworkMap/Map.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAwG,MAAM,OAAO,CAAC;AAG7H,OAAO,kCAAkC,CAAC;AAW1C,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAU1C,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;IAWrB,CAAA;AA+eD,QAAA,MAAM,UAAU,4GAA4B,CAAC;AAC7C,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"Map.d.ts","sourceRoot":"","sources":["../../../../src/components/NetworkMap/Map.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAwG,MAAM,OAAO,CAAC;AAG7H,OAAO,kCAAkC,CAAC;AAW1C,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAU1C,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;IAWrB,CAAA;AAufD,QAAA,MAAM,UAAU,4GAA4B,CAAC;AAC7C,eAAe,UAAU,CAAC"}
@@ -13,8 +13,8 @@ export declare const createDefaultConnTemplate: (name: any, id: any, sourceId: a
13
13
  name: any;
14
14
  id: any;
15
15
  details: {};
16
- source: any;
17
- destination: any;
16
+ sourceId: any;
17
+ destinationId: any;
18
18
  linkColor: any;
19
19
  linkAnimationColor: any;
20
20
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@abdellatifui/react",
3
3
  "private": false,
4
- "version": "3.1.29",
4
+ "version": "3.1.31",
5
5
  "type": "module",
6
6
  "types": "dist/nextgen.d.ts",
7
7
  "files": [