@devtron-labs/devtron-fe-common-lib 0.0.71-beta-1 → 0.0.71-beta-3

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.
Files changed (2) hide show
  1. package/dist/index.js +87 -87
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6571,14 +6571,14 @@ function Qy(e, t) {
6571
6571
  ;
6572
6572
  return e;
6573
6573
  }
6574
- function Pt(e, t, n) {
6575
- return typeof Reflect < "u" && Reflect.get ? Pt = Reflect.get : Pt = function(a, i, s) {
6574
+ function Bt(e, t, n) {
6575
+ return typeof Reflect < "u" && Reflect.get ? Bt = Reflect.get : Bt = function(a, i, s) {
6576
6576
  var o = Qy(a, i);
6577
6577
  if (o) {
6578
6578
  var u = Object.getOwnPropertyDescriptor(o, i);
6579
6579
  return u.get ? u.get.call(s) : u.value;
6580
6580
  }
6581
- }, Pt(e, t, n || e);
6581
+ }, Bt(e, t, n || e);
6582
6582
  }
6583
6583
  function Gi(e, t) {
6584
6584
  return qh(e) || Zy(e, t) || qc(e, t) || _h();
@@ -7388,7 +7388,7 @@ var Ke = /* @__PURE__ */ function() {
7388
7388
  }, {
7389
7389
  key: "setOrigRanges",
7390
7390
  value: function(a, i) {
7391
- return i = Pt(ht(n.prototype), "setOrigRanges", this).call(this, a, i), this.node ? this.node.setOrigRanges(a, i) : i;
7391
+ return i = Bt(ht(n.prototype), "setOrigRanges", this).call(this, a, i), this.node ? this.node.setOrigRanges(a, i) : i;
7392
7392
  }
7393
7393
  }, {
7394
7394
  key: "toString",
@@ -7553,7 +7553,7 @@ var tp = /* @__PURE__ */ function(e) {
7553
7553
  }, {
7554
7554
  key: "setOrigRanges",
7555
7555
  value: function(a, i) {
7556
- return i = Pt(ht(n.prototype), "setOrigRanges", this).call(this, a, i), this.items.forEach(function(s) {
7556
+ return i = Bt(ht(n.prototype), "setOrigRanges", this).call(this, a, i), this.items.forEach(function(s) {
7557
7557
  i = s.setOrigRanges(a, i);
7558
7558
  }), i;
7559
7559
  }
@@ -7747,7 +7747,7 @@ var tp = /* @__PURE__ */ function(e) {
7747
7747
  }, {
7748
7748
  key: "setOrigRanges",
7749
7749
  value: function(a, i) {
7750
- return i = Pt(ht(n.prototype), "setOrigRanges", this).call(this, a, i), this.directives.forEach(function(s) {
7750
+ return i = Bt(ht(n.prototype), "setOrigRanges", this).call(this, a, i), this.directives.forEach(function(s) {
7751
7751
  i = s.setOrigRanges(a, i);
7752
7752
  }), this.directivesEndMarker && (i = this.directivesEndMarker.setOrigRange(a, i)), this.contents.forEach(function(s) {
7753
7753
  i = s.setOrigRanges(a, i);
@@ -7948,7 +7948,7 @@ var tp = /* @__PURE__ */ function(e) {
7948
7948
  }, {
7949
7949
  key: "setOrigRanges",
7950
7950
  value: function(a, i) {
7951
- return i = Pt(ht(n.prototype), "setOrigRanges", this).call(this, a, i), this.header ? this.header.setOrigRange(a, i) : i;
7951
+ return i = Bt(ht(n.prototype), "setOrigRanges", this).call(this, a, i), this.header ? this.header.setOrigRange(a, i) : i;
7952
7952
  }
7953
7953
  }]), n;
7954
7954
  }(Y), tC = /* @__PURE__ */ function(e) {
@@ -8050,7 +8050,7 @@ var tp = /* @__PURE__ */ function(e) {
8050
8050
  }, {
8051
8051
  key: "setOrigRanges",
8052
8052
  value: function(a, i) {
8053
- return i = Pt(ht(n.prototype), "setOrigRanges", this).call(this, a, i), this.items.forEach(function(s) {
8053
+ return i = Bt(ht(n.prototype), "setOrigRanges", this).call(this, a, i), this.items.forEach(function(s) {
8054
8054
  if (s instanceof Y)
8055
8055
  i = s.setOrigRanges(a, i);
8056
8056
  else if (a.length === 0)
@@ -8452,7 +8452,7 @@ function ta(e, t, n) {
8452
8452
  `) === -1 ? "".concat(e, " #").concat(n) : "".concat(e, `
8453
8453
  `) + n.replace(/^/gm, "".concat(t || "", "#")) : e;
8454
8454
  }
8455
- var jt = function e() {
8455
+ var Rt = function e() {
8456
8456
  be(this, e);
8457
8457
  };
8458
8458
  function cn(e, t, n) {
@@ -8488,7 +8488,7 @@ var je = /* @__PURE__ */ function(e) {
8488
8488
  return String(this.value);
8489
8489
  }
8490
8490
  }]), n;
8491
- }(jt);
8491
+ }(Rt);
8492
8492
  function fd(e, t, n) {
8493
8493
  for (var r = n, a = t.length - 1; a >= 0; --a) {
8494
8494
  var i = t[a];
@@ -8672,7 +8672,7 @@ var Ua = function(t) {
8672
8672
  ` + this.comment.replace(/^/gm, "".concat(p, "#")), s && s()) : C && o && o(), E;
8673
8673
  }
8674
8674
  }]), n;
8675
- }(jt);
8675
+ }(Rt);
8676
8676
  yt(gt, "maxFlowStringSingleLineLength", 60);
8677
8677
  function _i(e) {
8678
8678
  var t = e instanceof je ? e.value : e;
@@ -8742,7 +8742,7 @@ var Mn = /* @__PURE__ */ function(e) {
8742
8742
  }, {
8743
8743
  key: "toString",
8744
8744
  value: function(a, i, s) {
8745
- return a ? Pt(ht(n.prototype), "toString", this).call(this, a, {
8745
+ return a ? Bt(ht(n.prototype), "toString", this).call(this, a, {
8746
8746
  blockItem: function(u) {
8747
8747
  return u.type === "comment" ? u.str : "- ".concat(u.str);
8748
8748
  },
@@ -8756,7 +8756,7 @@ var Mn = /* @__PURE__ */ function(e) {
8756
8756
  }
8757
8757
  }]), n;
8758
8758
  }(gt), oC = function(t, n, r) {
8759
- return n === null ? "" : zt(n) !== "object" ? String(n) : t instanceof jt && r && r.doc ? t.toString({
8759
+ return n === null ? "" : zt(n) !== "object" ? String(n) : t instanceof Rt && r && r.doc ? t.toString({
8760
8760
  anchors: /* @__PURE__ */ Object.create(null),
8761
8761
  doc: r.doc,
8762
8762
  indent: "",
@@ -8775,10 +8775,10 @@ var Mn = /* @__PURE__ */ function(e) {
8775
8775
  return Be(n, [{
8776
8776
  key: "commentBefore",
8777
8777
  get: function() {
8778
- return this.key instanceof jt ? this.key.commentBefore : void 0;
8778
+ return this.key instanceof Rt ? this.key.commentBefore : void 0;
8779
8779
  },
8780
8780
  set: function(a) {
8781
- if (this.key == null && (this.key = new je(null)), this.key instanceof jt)
8781
+ if (this.key == null && (this.key = new je(null)), this.key instanceof Rt)
8782
8782
  this.key.commentBefore = a;
8783
8783
  else {
8784
8784
  var i = "Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.";
@@ -8816,7 +8816,7 @@ var Mn = /* @__PURE__ */ function(e) {
8816
8816
  value: function(a, i, s) {
8817
8817
  if (!a || !a.doc)
8818
8818
  return JSON.stringify(this);
8819
- var o = a.doc.options, u = o.indent, c = o.indentSeq, l = o.simpleKeys, d = this.key, g = this.value, h = d instanceof jt && d.comment;
8819
+ var o = a.doc.options, u = o.indent, c = o.indentSeq, l = o.simpleKeys, d = this.key, g = this.value, h = d instanceof Rt && d.comment;
8820
8820
  if (l) {
8821
8821
  if (h)
8822
8822
  throw new Error("With simple keys, key nodes cannot have comments");
@@ -8825,7 +8825,7 @@ var Mn = /* @__PURE__ */ function(e) {
8825
8825
  throw new Error(p);
8826
8826
  }
8827
8827
  }
8828
- var v = !l && (!d || h || (d instanceof jt ? d instanceof gt || d.type === D.BLOCK_FOLDED || d.type === D.BLOCK_LITERAL : zt(d) === "object")), A = a, I = A.doc, y = A.indent, C = A.indentStep, m = A.stringify;
8828
+ var v = !l && (!d || h || (d instanceof Rt ? d instanceof gt || d.type === D.BLOCK_FOLDED || d.type === D.BLOCK_LITERAL : zt(d) === "object")), A = a, I = A.doc, y = A.indent, C = A.indentStep, m = A.stringify;
8829
8829
  a = Object.assign({}, a, {
8830
8830
  implicitKey: !v,
8831
8831
  indent: y + C
@@ -8845,7 +8845,7 @@ var Mn = /* @__PURE__ */ function(e) {
8845
8845
  E = v ? "? ".concat(E, `
8846
8846
  `).concat(y, ":") : "".concat(E, ":"), this.comment && (E = ta(E, a.indent, this.comment), i && i());
8847
8847
  var M = "", T = null;
8848
- if (g instanceof jt) {
8848
+ if (g instanceof Rt) {
8849
8849
  if (g.spaceBefore && (M = `
8850
8850
  `), g.commentBefore) {
8851
8851
  var w = g.commentBefore.replace(/^/gm, "".concat(a.indent, "#"));
@@ -8875,7 +8875,7 @@ var Mn = /* @__PURE__ */ function(e) {
8875
8875
  return b && !T && s && s(), ta(E + L + S, a.indent, T);
8876
8876
  }
8877
8877
  }]), n;
8878
- }(jt);
8878
+ }(Rt);
8879
8879
  yt(me, "Type", {
8880
8880
  PAIR: "PAIR",
8881
8881
  MERGE_PAIR: "MERGE_PAIR"
@@ -8949,7 +8949,7 @@ var uC = function e(t, n) {
8949
8949
  throw new Error("".concat(h, " [").concat(s, "]"));
8950
8950
  }
8951
8951
  }]), n;
8952
- }(jt);
8952
+ }(Rt);
8953
8953
  yt(qn, "default", !0);
8954
8954
  function Tr(e, t) {
8955
8955
  var n = t instanceof je ? t.value : t, r = Ye(e), a;
@@ -8965,7 +8965,7 @@ function Tr(e, t) {
8965
8965
  r.f();
8966
8966
  }
8967
8967
  }
8968
- var Rt = /* @__PURE__ */ function(e) {
8968
+ var Pt = /* @__PURE__ */ function(e) {
8969
8969
  He(n, e);
8970
8970
  var t = Ve(n);
8971
8971
  function n() {
@@ -9055,7 +9055,7 @@ var Rt = /* @__PURE__ */ function(e) {
9055
9055
  } finally {
9056
9056
  o.f();
9057
9057
  }
9058
- return Pt(ht(n.prototype), "toString", this).call(this, a, {
9058
+ return Bt(ht(n.prototype), "toString", this).call(this, a, {
9059
9059
  blockItem: function(d) {
9060
9060
  return d.str;
9061
9061
  },
@@ -9087,7 +9087,7 @@ var Rt = /* @__PURE__ */ function(e) {
9087
9087
  try {
9088
9088
  for (s.s(); !(o = s.n()).done; ) {
9089
9089
  var u = o.value.source;
9090
- if (!(u instanceof Rt))
9090
+ if (!(u instanceof Pt))
9091
9091
  throw new Error("Merge sources must be maps");
9092
9092
  var c = u.toJSON(null, a, Map), l = Ye(c), d;
9093
9093
  try {
@@ -9118,9 +9118,9 @@ var Rt = /* @__PURE__ */ function(e) {
9118
9118
  value: function(a, i) {
9119
9119
  var s = this.value;
9120
9120
  if (s.items.length > 1)
9121
- return Pt(ht(n.prototype), "toString", this).call(this, a, i);
9121
+ return Bt(ht(n.prototype), "toString", this).call(this, a, i);
9122
9122
  this.value = s.items[0];
9123
- var o = Pt(ht(n.prototype), "toString", this).call(this, a, i);
9123
+ var o = Bt(ht(n.prototype), "toString", this).call(this, a, i);
9124
9124
  return this.value = s, o;
9125
9125
  }
9126
9126
  }]), n;
@@ -9706,7 +9706,7 @@ function lp(e, t) {
9706
9706
  var n = "A ".concat(t.type, " node cannot be resolved as a mapping");
9707
9707
  return e.errors.push(new Nt(t, n)), null;
9708
9708
  }
9709
- var r = t.type === D.FLOW_MAP ? yC(e, t) : bC(e, t), a = r.comments, i = r.items, s = new Rt();
9709
+ var r = t.type === D.FLOW_MAP ? yC(e, t) : bC(e, t), a = r.comments, i = r.items, s = new Pt();
9710
9710
  s.items = i, cp(s, a);
9711
9711
  for (var o = !1, u = 0; u < i.length; ++u) {
9712
9712
  var c = i[u].key;
@@ -10038,7 +10038,7 @@ function gp(e, t) {
10038
10038
  for (var n = dp(e, t), r = 0; r < n.items.length; ++r) {
10039
10039
  var a = n.items[r];
10040
10040
  if (!(a instanceof me)) {
10041
- if (a instanceof Rt) {
10041
+ if (a instanceof Pt) {
10042
10042
  if (a.items.length > 1) {
10043
10043
  var i = "Each pair must have its own sequence indicator";
10044
10044
  throw new re(t, i);
@@ -10093,7 +10093,7 @@ var pp = {
10093
10093
  var t = Ve(n);
10094
10094
  function n() {
10095
10095
  var r;
10096
- return be(this, n), r = t.call(this), yt(Kt(r), "add", Rt.prototype.add.bind(Kt(r))), yt(Kt(r), "delete", Rt.prototype.delete.bind(Kt(r))), yt(Kt(r), "get", Rt.prototype.get.bind(Kt(r))), yt(Kt(r), "has", Rt.prototype.has.bind(Kt(r))), yt(Kt(r), "set", Rt.prototype.set.bind(Kt(r))), r.tag = n.tag, r;
10096
+ return be(this, n), r = t.call(this), yt(Kt(r), "add", Pt.prototype.add.bind(Kt(r))), yt(Kt(r), "delete", Pt.prototype.delete.bind(Kt(r))), yt(Kt(r), "get", Pt.prototype.get.bind(Kt(r))), yt(Kt(r), "has", Pt.prototype.has.bind(Kt(r))), yt(Kt(r), "set", Pt.prototype.set.bind(Kt(r))), r.tag = n.tag, r;
10097
10097
  }
10098
10098
  return Be(n, [{
10099
10099
  key: "toJSON",
@@ -10180,7 +10180,7 @@ var vp = {
10180
10180
  }, {
10181
10181
  key: "toJSON",
10182
10182
  value: function(a, i) {
10183
- return Pt(ht(n.prototype), "toJSON", this).call(this, a, i, Set);
10183
+ return Bt(ht(n.prototype), "toJSON", this).call(this, a, i, Set);
10184
10184
  }
10185
10185
  }, {
10186
10186
  key: "toString",
@@ -10188,11 +10188,11 @@ var vp = {
10188
10188
  if (!a)
10189
10189
  return JSON.stringify(this);
10190
10190
  if (this.hasAllNullValues())
10191
- return Pt(ht(n.prototype), "toString", this).call(this, a, i, s);
10191
+ return Bt(ht(n.prototype), "toString", this).call(this, a, i, s);
10192
10192
  throw new Error("Set items must all have null values");
10193
10193
  }
10194
10194
  }]), n;
10195
- }(Rt);
10195
+ }(Pt);
10196
10196
  yt(mo, "tag", "tag:yaml.org,2002:set");
10197
10197
  function SC(e, t) {
10198
10198
  var n = lp(e, t);
@@ -10305,7 +10305,7 @@ function TC(e, t) {
10305
10305
  }
10306
10306
  }
10307
10307
  function xC(e, t, n) {
10308
- var r = new Rt(e);
10308
+ var r = new Pt(e);
10309
10309
  if (t instanceof Map) {
10310
10310
  var a = Ye(t), i;
10311
10311
  try {
@@ -10328,7 +10328,7 @@ function xC(e, t, n) {
10328
10328
  var Ai = {
10329
10329
  createNode: xC,
10330
10330
  default: !0,
10331
- nodeClass: Rt,
10331
+ nodeClass: Pt,
10332
10332
  tag: "tag:yaml.org,2002:map",
10333
10333
  resolve: lp
10334
10334
  };
@@ -10754,7 +10754,7 @@ function BC(e, t, n) {
10754
10754
  });
10755
10755
  }
10756
10756
  function kC(e, t, n) {
10757
- if (e instanceof jt)
10757
+ if (e instanceof Rt)
10758
10758
  return e;
10759
10759
  var r = n.defaultPrefix, a = n.onTagObj, i = n.prevObjects, s = n.schema, o = n.wrapScalars;
10760
10760
  t && t.startsWith("!!") && (t = r + t.slice(2));
@@ -10777,7 +10777,7 @@ function kC(e, t, n) {
10777
10777
  }
10778
10778
  c.value = e, i.set(e, c);
10779
10779
  }
10780
- return c.node = u.createNode ? u.createNode(n.schema, e, n) : o ? new je(e) : e, t && c.node instanceof jt && (c.node.tag = t), c.node;
10780
+ return c.node = u.createNode ? u.createNode(n.schema, e, n) : o ? new je(e) : e, t && c.node instanceof Rt && (c.node.tag = t), c.node;
10781
10781
  }
10782
10782
  function FC(e, t, n, r) {
10783
10783
  var a = e[r.replace(/\W/g, "")];
@@ -10996,7 +10996,7 @@ function VC(e, t, n) {
10996
10996
  }
10997
10997
  function ts(e, t, n, r) {
10998
10998
  var a = t.doc, i = a.anchors, s = a.schema, o;
10999
- if (!(e instanceof jt)) {
10999
+ if (!(e instanceof Rt)) {
11000
11000
  var u = {
11001
11001
  aliasNodes: [],
11002
11002
  onTagObj: function(A) {
@@ -11044,9 +11044,9 @@ var UC = /* @__PURE__ */ function() {
11044
11044
  i[s] = arguments[s];
11045
11045
  return r.value.items = i.map(function(o) {
11046
11046
  if (o instanceof qn) {
11047
- if (o.source instanceof Rt)
11047
+ if (o.source instanceof Pt)
11048
11048
  return o;
11049
- } else if (o instanceof Rt)
11049
+ } else if (o instanceof Pt)
11050
11050
  return n.createAlias(o);
11051
11051
  throw new Error("Merge sources must be Map nodes or their Aliases");
11052
11052
  }), r;
@@ -11118,7 +11118,7 @@ var UC = /* @__PURE__ */ function() {
11118
11118
  }], [{
11119
11119
  key: "validAnchorNode",
11120
11120
  value: function(n) {
11121
- return n instanceof je || n instanceof Mn || n instanceof Rt;
11121
+ return n instanceof je || n instanceof Mn || n instanceof Pt;
11122
11122
  }
11123
11123
  }]), e;
11124
11124
  }(), zC = function e(t, n) {
@@ -11453,7 +11453,7 @@ var sl = /* @__PURE__ */ function() {
11453
11453
  // Requiring directly in nodes would create circular dependencies
11454
11454
  }, c = !1, l = null;
11455
11455
  if (this.contents) {
11456
- this.contents instanceof jt && (this.contents.spaceBefore && (i || this.directivesEndMarker) && a.push(""), this.contents.commentBefore && a.push(this.contents.commentBefore.replace(/^/gm, "#")), u.forceBlockIndent = !!this.comment, l = this.contents.comment);
11456
+ this.contents instanceof Rt && (this.contents.spaceBefore && (i || this.directivesEndMarker) && a.push(""), this.contents.commentBefore && a.push(this.contents.commentBefore.replace(/^/gm, "#")), u.forceBlockIndent = !!this.comment, l = this.contents.comment);
11457
11457
  var d = l ? null : function() {
11458
11458
  return c = !0;
11459
11459
  }, g = ts(this.contents, u, function() {
@@ -11554,7 +11554,7 @@ function aE(e, t, n, r) {
11554
11554
  let a = t[e], i = n[e];
11555
11555
  return r && (a = a.toLowerCase(), i = i.toLowerCase()), a < i ? -1 : a > i ? 1 : 0;
11556
11556
  }
11557
- const Gt = (e) => {
11557
+ const jt = (e) => {
11558
11558
  e.stopPropagation();
11559
11559
  };
11560
11560
  function Bp(e, t, n = []) {
@@ -12332,7 +12332,7 @@ const ol = ({
12332
12332
  ol.Button = yE;
12333
12333
  ol.Body = CE;
12334
12334
  const Zn = ol;
12335
- var Bt = "top", $t = "bottom", en = "right", kt = "left", Co = "auto", Vi = [Bt, $t, en, kt], la = "start", bi = "end", EE = "clippingParents", zp = "viewport", Fa = "popper", NE = "reference", Ed = /* @__PURE__ */ Vi.reduce(function(e, t) {
12335
+ var kt = "top", $t = "bottom", en = "right", Ft = "left", Co = "auto", Vi = [kt, $t, en, Ft], la = "start", bi = "end", EE = "clippingParents", zp = "viewport", Fa = "popper", NE = "reference", Ed = /* @__PURE__ */ Vi.reduce(function(e, t) {
12336
12336
  return e.concat([t + "-" + la, t + "-" + bi]);
12337
12337
  }, []), Wp = /* @__PURE__ */ [].concat(Vi, [Co]).reduce(function(e, t) {
12338
12338
  return e.concat([t, t + "-" + la, t + "-" + bi]);
@@ -12538,9 +12538,9 @@ var GE = function(t, n) {
12538
12538
  })) : t, Kp(typeof t != "number" ? t : qp(t, Vi));
12539
12539
  };
12540
12540
  function YE(e) {
12541
- var t, n = e.state, r = e.name, a = e.options, i = n.elements.arrow, s = n.modifiersData.popperOffsets, o = ln(n.placement), u = ll(o), c = [kt, en].indexOf(o) >= 0, l = c ? "height" : "width";
12541
+ var t, n = e.state, r = e.name, a = e.options, i = n.elements.arrow, s = n.modifiersData.popperOffsets, o = ln(n.placement), u = ll(o), c = [Ft, en].indexOf(o) >= 0, l = c ? "height" : "width";
12542
12542
  if (!(!i || !s)) {
12543
- var d = GE(a.padding, n), g = cl(i), h = u === "y" ? Bt : kt, p = u === "y" ? $t : en, v = n.rects.reference[l] + n.rects.reference[u] - s[u] - n.rects.popper[l], A = s[u] - n.rects.reference[u], I = Ui(i), y = I ? u === "y" ? I.clientHeight || 0 : I.clientWidth || 0 : 0, C = v / 2 - A / 2, m = d[h], b = y - g[l] - d[p], E = y / 2 - g[l] / 2 + C, M = ei(m, E, b), T = u;
12543
+ var d = GE(a.padding, n), g = cl(i), h = u === "y" ? kt : Ft, p = u === "y" ? $t : en, v = n.rects.reference[l] + n.rects.reference[u] - s[u] - n.rects.popper[l], A = s[u] - n.rects.reference[u], I = Ui(i), y = I ? u === "y" ? I.clientHeight || 0 : I.clientWidth || 0 : 0, C = v / 2 - A / 2, m = d[h], b = y - g[l] - d[p], E = y / 2 - g[l] / 2 + C, M = ei(m, E, b), T = u;
12544
12544
  n.modifiersData[r] = (t = {}, t[T] = M, t.centerOffset = M - E, t);
12545
12545
  }
12546
12546
  }
@@ -12588,10 +12588,10 @@ function wd(e) {
12588
12588
  y: v
12589
12589
  };
12590
12590
  h = A.x, v = A.y;
12591
- var I = s.hasOwnProperty("x"), y = s.hasOwnProperty("y"), C = kt, m = Bt, b = window;
12591
+ var I = s.hasOwnProperty("x"), y = s.hasOwnProperty("y"), C = Ft, m = kt, b = window;
12592
12592
  if (c) {
12593
12593
  var E = Ui(n), M = "clientHeight", T = "clientWidth";
12594
- if (E === rn(n) && (E = Ir(n), gn(E).position !== "static" && o === "absolute" && (M = "scrollHeight", T = "scrollWidth")), E = E, a === Bt || (a === kt || a === en) && i === bi) {
12594
+ if (E === rn(n) && (E = Ir(n), gn(E).position !== "static" && o === "absolute" && (M = "scrollHeight", T = "scrollWidth")), E = E, a === kt || (a === Ft || a === en) && i === bi) {
12595
12595
  m = $t;
12596
12596
  var w = d && E === b && b.visualViewport ? b.visualViewport.height : (
12597
12597
  // $FlowFixMe[prop-missing]
@@ -12599,7 +12599,7 @@ function wd(e) {
12599
12599
  );
12600
12600
  v -= w - r.height, v *= u ? 1 : -1;
12601
12601
  }
12602
- if (a === kt || (a === Bt || a === $t) && i === bi) {
12602
+ if (a === Ft || (a === kt || a === $t) && i === bi) {
12603
12603
  C = en;
12604
12604
  var S = d && E === b && b.visualViewport ? b.visualViewport.width : (
12605
12605
  // $FlowFixMe[prop-missing]
@@ -12786,7 +12786,7 @@ function tN(e, t, n, r) {
12786
12786
  function $p(e) {
12787
12787
  var t = e.reference, n = e.element, r = e.placement, a = r ? ln(r) : null, i = r ? ga(r) : null, s = t.x + t.width / 2 - n.width / 2, o = t.y + t.height / 2 - n.height / 2, u;
12788
12788
  switch (a) {
12789
- case Bt:
12789
+ case kt:
12790
12790
  u = {
12791
12791
  x: s,
12792
12792
  y: t.y - n.height
@@ -12804,7 +12804,7 @@ function $p(e) {
12804
12804
  y: o
12805
12805
  };
12806
12806
  break;
12807
- case kt:
12807
+ case Ft:
12808
12808
  u = {
12809
12809
  x: t.x - n.width,
12810
12810
  y: o
@@ -12846,7 +12846,7 @@ function yi(e, t) {
12846
12846
  if (g === Fa && L) {
12847
12847
  var G = L[a];
12848
12848
  Object.keys(S).forEach(function(V) {
12849
- var F = [en, $t].indexOf(V) >= 0 ? 1 : -1, k = [Bt, $t].indexOf(V) >= 0 ? "y" : "x";
12849
+ var F = [en, $t].indexOf(V) >= 0 ? 1 : -1, k = [kt, $t].indexOf(V) >= 0 ? "y" : "x";
12850
12850
  S[V] += G[k] * F;
12851
12851
  });
12852
12852
  }
@@ -12891,13 +12891,13 @@ function aN(e) {
12891
12891
  allowedAutoPlacements: v
12892
12892
  }) : Ee);
12893
12893
  }, []), b = t.rects.reference, E = t.rects.popper, M = /* @__PURE__ */ new Map(), T = !0, w = m[0], S = 0; S < m.length; S++) {
12894
- var L = m[S], G = ln(L), V = ga(L) === la, F = [Bt, $t].indexOf(G) >= 0, k = F ? "width" : "height", Z = yi(t, {
12894
+ var L = m[S], G = ln(L), V = ga(L) === la, F = [kt, $t].indexOf(G) >= 0, k = F ? "width" : "height", Z = yi(t, {
12895
12895
  placement: L,
12896
12896
  boundary: l,
12897
12897
  rootBoundary: d,
12898
12898
  altBoundary: g,
12899
12899
  padding: c
12900
- }), z = F ? V ? en : kt : V ? $t : Bt;
12900
+ }), z = F ? V ? en : Ft : V ? $t : kt;
12901
12901
  b[k] > E[k] && (z = Is(z));
12902
12902
  var B = Is(z), le = [];
12903
12903
  if (i && le.push(Z[G] <= 0), o && le.push(Z[z] <= 0, Z[B] <= 0), le.every(function(ke) {
@@ -12949,7 +12949,7 @@ function Td(e, t, n) {
12949
12949
  };
12950
12950
  }
12951
12951
  function xd(e) {
12952
- return [Bt, en, $t, kt].some(function(t) {
12952
+ return [kt, en, $t, Ft].some(function(t) {
12953
12953
  return e[t] >= 0;
12954
12954
  });
12955
12955
  }
@@ -12977,10 +12977,10 @@ const oN = {
12977
12977
  fn: sN
12978
12978
  };
12979
12979
  function uN(e, t, n) {
12980
- var r = ln(e), a = [kt, Bt].indexOf(r) >= 0 ? -1 : 1, i = typeof n == "function" ? n(Object.assign({}, t, {
12980
+ var r = ln(e), a = [Ft, kt].indexOf(r) >= 0 ? -1 : 1, i = typeof n == "function" ? n(Object.assign({}, t, {
12981
12981
  placement: e
12982
12982
  })) : n, s = i[0], o = i[1];
12983
- return s = s || 0, o = (o || 0) * a, [kt, en].indexOf(r) >= 0 ? {
12983
+ return s = s || 0, o = (o || 0) * a, [Ft, en].indexOf(r) >= 0 ? {
12984
12984
  x: o,
12985
12985
  y: s
12986
12986
  } : {
@@ -13040,14 +13040,14 @@ function hN(e) {
13040
13040
  };
13041
13041
  if (E) {
13042
13042
  if (i) {
13043
- var V, F = m === "y" ? Bt : kt, k = m === "y" ? $t : en, Z = m === "y" ? "height" : "width", z = E[m], B = z + A[F], le = z - A[k], te = h ? -T[Z] / 2 : 0, ge = y === la ? M[Z] : T[Z], ie = y === la ? -T[Z] : -M[Z], ue = t.elements.arrow, ke = h && ue ? cl(ue) : {
13043
+ var V, F = m === "y" ? kt : Ft, k = m === "y" ? $t : en, Z = m === "y" ? "height" : "width", z = E[m], B = z + A[F], le = z - A[k], te = h ? -T[Z] / 2 : 0, ge = y === la ? M[Z] : T[Z], ie = y === la ? -T[Z] : -M[Z], ue = t.elements.arrow, ke = h && ue ? cl(ue) : {
13044
13044
  width: 0,
13045
13045
  height: 0
13046
13046
  }, Ee = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Jp(), Ae = Ee[F], Ue = Ee[k], Xe = ei(0, M[Z], ke[Z]), nt = C ? M[Z] / 2 - te - Xe - Ae - S.mainAxis : ge - Xe - Ae - S.mainAxis, $e = C ? -M[Z] / 2 + te + Xe + Ue + S.mainAxis : ie + Xe + Ue + S.mainAxis, pt = t.elements.arrow && Ui(t.elements.arrow), W = pt ? m === "y" ? pt.clientTop || 0 : pt.clientLeft || 0 : 0, vt = (V = L?.[m]) != null ? V : 0, mt = z + nt - vt - W, At = z + $e - vt, pn = ei(h ? Rs(B, mt) : B, z, h ? Rr(le, At) : le);
13047
13047
  E[m] = pn, G[m] = pn - z;
13048
13048
  }
13049
13049
  if (o) {
13050
- var vn, an = m === "x" ? Bt : kt, jn = m === "x" ? $t : en, ut = E[b], Ot = b === "y" ? "height" : "width", J = ut + A[an], ce = ut - A[jn], ae = [Bt, kt].indexOf(I) !== -1, De = (vn = L?.[b]) != null ? vn : 0, qe = ae ? J : ut - M[Ot] - T[Ot] - De + S.altAxis, ct = ae ? ut + M[Ot] + T[Ot] - De - S.altAxis : ce, ar = h && ae ? FE(qe, ut, ct) : ei(h ? qe : J, ut, h ? ct : ce);
13050
+ var vn, an = m === "x" ? kt : Ft, jn = m === "x" ? $t : en, ut = E[b], Ot = b === "y" ? "height" : "width", J = ut + A[an], ce = ut - A[jn], ae = [kt, Ft].indexOf(I) !== -1, De = (vn = L?.[b]) != null ? vn : 0, qe = ae ? J : ut - M[Ot] - T[Ot] - De + S.altAxis, ct = ae ? ut + M[Ot] + T[Ot] - De - S.altAxis : ce, ar = h && ae ? FE(qe, ut, ct) : ei(h ? qe : J, ut, h ? ct : ce);
13051
13051
  E[b] = ar, G[b] = ar - ut;
13052
13052
  }
13053
13053
  t.modifiersData[r] = G;
@@ -14349,7 +14349,7 @@ const vl = (e) => {
14349
14349
  const t = Re(null), [n, r] = K(!1), a = e.theme === Li.white, i = (C) => {
14350
14350
  t.current = C, document.addEventListener("keydown", o);
14351
14351
  }, s = (C) => {
14352
- C.target === t.current ? (C.stopPropagation(), t.current?.hide && (t.current.hide(), t.current = null, e.onClose && e.onClose()), r(!1)) : C.stopPropagation();
14352
+ jt(C), t.current?.hide && (t.current.hide(), t.current = null, e.onClose && e.onClose()), r(!1);
14353
14353
  }, o = (C) => {
14354
14354
  C.keyCode === 27 && s(C);
14355
14355
  }, u = (C) => {
@@ -14439,14 +14439,14 @@ const vl = (e) => {
14439
14439
  return /* @__PURE__ */ f.jsx(
14440
14440
  Xt,
14441
14441
  {
14442
- className: `${a ? "tippy-white-container default-white" : "tippy-black-container default-black"} no-content-padding tippy-shadow ${l}`,
14442
+ className: `${a ? "tippy-white-c ontainer default-white" : "tippy-black-container default-black"} no-content-padding tippy-shadow ${l}`,
14443
14443
  arrow: g || !1,
14444
14444
  interactive: h || !1,
14445
14445
  placement: d || "top",
14446
14446
  content: c(),
14447
14447
  trigger: v || "mouseenter",
14448
14448
  onMount: i,
14449
- onClickOutside: s,
14449
+ onClickOutside: (C, m) => s(m),
14450
14450
  showOnCreate: p || !1,
14451
14451
  animation: A || "fade",
14452
14452
  duration: I || 300,
@@ -14599,12 +14599,12 @@ const Qd = ({
14599
14599
  }, y = (w) => {
14600
14600
  g(w.target.value);
14601
14601
  }, C = (w) => {
14602
- Gt(w);
14602
+ jt(w);
14603
14603
  const S = { ...t };
14604
14604
  S[i] = w.currentTarget.dataset.key, S.propagate = w.currentTarget.dataset.propagate === "true", n(e, S), p("");
14605
14605
  }, m = () => {
14606
14606
  let w = { isValid: !0, messages: [] };
14607
- return i === Vn.KEY ? (d || t.value) && (w = v.propagateTagKey(d)) : (a || d || t.propagate) && (w = v.propagateTagValue(d, t.key)), w.isValid ? null : /* @__PURE__ */ f.jsxs("div", { className: "p-4", onClick: Gt, "data-testid": "tag-label-cross-stop-propagation", children: [
14607
+ return i === Vn.KEY ? (d || t.value) && (w = v.propagateTagKey(d)) : (a || d || t.propagate) && (w = v.propagateTagValue(d, t.key)), w.isValid ? null : /* @__PURE__ */ f.jsxs("div", { className: "p-4", onClick: jt, "data-testid": "tag-label-cross-stop-propagation", children: [
14608
14608
  w.messages.map((S) => /* @__PURE__ */ f.jsxs("div", { className: "flexbox pr-4 pl-4", children: [
14609
14609
  /* @__PURE__ */ f.jsx("span", { children: /* @__PURE__ */ f.jsx(Hi, { className: "icon-dim-14 scr-5 mt-3 mr-4" }) }),
14610
14610
  /* @__PURE__ */ f.jsx("span", { children: S })
@@ -14685,7 +14685,7 @@ const Qd = ({
14685
14685
  suggestedTagsOptions: i
14686
14686
  }) => {
14687
14687
  const s = Re(null), o = Re(null), u = new pv(), c = (d) => {
14688
- Gt(d), r(e);
14688
+ jt(d), r(e);
14689
14689
  }, l = () => {
14690
14690
  const d = { ...t };
14691
14691
  d.propagate = !d.propagate, d.propagate ? (d.isInvalidKey = d.isInvalidKey || !d.key, d.isInvalidValue = d.isInvalidValue || !d.value) : (d.isInvalidKey = d.key || d.value ? !u.propagateTagKey(d.key).isValid : !1, d.isInvalidValue = d.value ? !u.propagateTagValue(d.value, d.key).isValid : !1), n(e, d);
@@ -14992,7 +14992,7 @@ function as(e, t) {
14992
14992
  function xw(e, t) {
14993
14993
  return e.map(t).join("");
14994
14994
  }
14995
- var Mo = 1, ha = 1, Av = 0, Ft = 0, it = 0, Ca = "";
14995
+ var Mo = 1, ha = 1, Av = 0, Gt = 0, it = 0, Ca = "";
14996
14996
  function To(e, t, n, r, a, i, s) {
14997
14997
  return { value: e, root: t, parent: n, type: r, props: a, children: i, line: Mo, column: ha, length: s, return: "" };
14998
14998
  }
@@ -15003,16 +15003,16 @@ function Ow() {
15003
15003
  return it;
15004
15004
  }
15005
15005
  function Lw() {
15006
- return it = Ft > 0 ? dt(Ca, --Ft) : 0, ha--, it === 10 && (ha = 1, Mo--), it;
15006
+ return it = Gt > 0 ? dt(Ca, --Gt) : 0, ha--, it === 10 && (ha = 1, Mo--), it;
15007
15007
  }
15008
15008
  function Qt() {
15009
- return it = Ft < Av ? dt(Ca, Ft++) : 0, ha++, it === 10 && (ha = 1, Mo++), it;
15009
+ return it = Gt < Av ? dt(Ca, Gt++) : 0, ha++, it === 10 && (ha = 1, Mo++), it;
15010
15010
  }
15011
15011
  function Tn() {
15012
- return dt(Ca, Ft);
15012
+ return dt(Ca, Gt);
15013
15013
  }
15014
15014
  function ys() {
15015
- return Ft;
15015
+ return Gt;
15016
15016
  }
15017
15017
  function Wi(e, t) {
15018
15018
  return wi(Ca, e, t);
@@ -15050,13 +15050,13 @@ function Si(e) {
15050
15050
  return 0;
15051
15051
  }
15052
15052
  function Iv(e) {
15053
- return Mo = ha = 1, Av = bn(Ca = e), Ft = 0, [];
15053
+ return Mo = ha = 1, Av = bn(Ca = e), Gt = 0, [];
15054
15054
  }
15055
15055
  function bv(e) {
15056
15056
  return Ca = "", e;
15057
15057
  }
15058
15058
  function Cs(e) {
15059
- return mv(Wi(Ft - 1, ic(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
15059
+ return mv(Wi(Gt - 1, ic(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
15060
15060
  }
15061
15061
  function Dw(e) {
15062
15062
  for (; (it = Tn()) && it < 33; )
@@ -15072,7 +15072,7 @@ function ic(e) {
15072
15072
  for (; Qt(); )
15073
15073
  switch (it) {
15074
15074
  case e:
15075
- return Ft;
15075
+ return Gt;
15076
15076
  case 34:
15077
15077
  case 39:
15078
15078
  e !== 34 && e !== 39 && ic(it);
@@ -15084,18 +15084,18 @@ function ic(e) {
15084
15084
  Qt();
15085
15085
  break;
15086
15086
  }
15087
- return Ft;
15087
+ return Gt;
15088
15088
  }
15089
15089
  function Rw(e, t) {
15090
15090
  for (; Qt() && e + it !== 47 + 10; )
15091
15091
  if (e + it === 42 + 42 && Tn() === 47)
15092
15092
  break;
15093
- return "/*" + Wi(t, Ft - 1) + "*" + So(e === 47 ? e : Qt());
15093
+ return "/*" + Wi(t, Gt - 1) + "*" + So(e === 47 ? e : Qt());
15094
15094
  }
15095
15095
  function Pw(e) {
15096
15096
  for (; !Si(Tn()); )
15097
15097
  Qt();
15098
- return Wi(e, Ft);
15098
+ return Wi(e, Gt);
15099
15099
  }
15100
15100
  function Bw(e) {
15101
15101
  return bv(Es("", null, null, null, [""], e = Iv(e), 0, [0], e));
@@ -15241,13 +15241,13 @@ function Hw(e) {
15241
15241
  var Vw = function(t, n, r) {
15242
15242
  for (var a = 0, i = 0; a = i, i = Tn(), a === 38 && i === 12 && (n[r] = 1), !Si(i); )
15243
15243
  Qt();
15244
- return Wi(t, Ft);
15244
+ return Wi(t, Gt);
15245
15245
  }, Uw = function(t, n) {
15246
15246
  var r = -1, a = 44;
15247
15247
  do
15248
15248
  switch (Si(a)) {
15249
15249
  case 0:
15250
- a === 38 && Tn() === 12 && (n[r] = 1), t[r] += Vw(Ft - 1, n, r);
15250
+ a === 38 && Tn() === 12 && (n[r] = 1), t[r] += Vw(Gt - 1, n, r);
15251
15251
  break;
15252
15252
  case 2:
15253
15253
  t[r] += Cs(a);
@@ -19835,7 +19835,7 @@ const Bl = (e) => /* @__PURE__ */ x.createElement("svg", { xmlns: "http://www.w3
19835
19835
  }, jn = (J) => {
19836
19836
  J.target.value && nt(J.target.value), ie(J.target.value);
19837
19837
  }, ut = (J) => {
19838
- Gt(J), ge.trim() && $e(ge.trim());
19838
+ jt(J), ge.trim() && $e(ge.trim());
19839
19839
  }, Ot = () => {
19840
19840
  let J = V;
19841
19841
  ge.trim() && (J = $e(ge)), mt(J);
@@ -19887,10 +19887,10 @@ const Bl = (e) => /* @__PURE__ */ x.createElement("svg", { xmlns: "http://www.w3
19887
19887
  isSoftDeleted: J?.deleted,
19888
19888
  isEditing: b,
19889
19889
  onSoftDeleteClick: (ae) => {
19890
- Gt(ae), pt(ce);
19890
+ jt(ae), pt(ce);
19891
19891
  },
19892
19892
  onHardDeleteClick: (ae) => {
19893
- Gt(ae), W(ce);
19893
+ jt(ae), W(ce);
19894
19894
  },
19895
19895
  tagId: J.id,
19896
19896
  softDeleteTags: k,
@@ -19932,7 +19932,7 @@ const Bl = (e) => /* @__PURE__ */ x.createElement("svg", { xmlns: "http://www.w3
19932
19932
  className: "cta flex cancel h-32 lh-32-imp",
19933
19933
  type: "button",
19934
19934
  onClick: (J) => {
19935
- Gt(J), Xe();
19935
+ jt(J), Xe();
19936
19936
  },
19937
19937
  disabled: ue,
19938
19938
  children: "Cancel"
@@ -19945,7 +19945,7 @@ const Bl = (e) => /* @__PURE__ */ x.createElement("svg", { xmlns: "http://www.w3
19945
19945
  "data-testid": "save-tags-button",
19946
19946
  type: "button",
19947
19947
  onClick: (J) => {
19948
- Gt(J), Ot();
19948
+ jt(J), Ot();
19949
19949
  },
19950
19950
  disabled: ue,
19951
19951
  children: ue ? /* @__PURE__ */ f.jsx(Ar, {}) : "Save"
@@ -19967,10 +19967,10 @@ const Bl = (e) => /* @__PURE__ */ x.createElement("svg", { xmlns: "http://www.w3
19967
19967
  isSoftDeleted: J?.deleted,
19968
19968
  isEditing: b,
19969
19969
  onSoftDeleteClick: (ae) => {
19970
- Gt(ae), pt(ce);
19970
+ jt(ae), pt(ce);
19971
19971
  },
19972
19972
  onHardDeleteClick: (ae) => {
19973
- Gt(ae), W(ce);
19973
+ jt(ae), W(ce);
19974
19974
  },
19975
19975
  tagId: J.id,
19976
19976
  softDeleteTags: k,
@@ -19989,7 +19989,7 @@ const Bl = (e) => /* @__PURE__ */ x.createElement("svg", { xmlns: "http://www.w3
19989
19989
  className: "icon-dim-16 image-tags-container-edit__icon cursor",
19990
19990
  "data-testid": "edit-tags-icon",
19991
19991
  onClick: (J) => {
19992
- Gt(J), Ae();
19992
+ jt(J), Ae();
19993
19993
  }
19994
19994
  }
19995
19995
  ) })
@@ -20049,7 +20049,7 @@ const Bl = (e) => /* @__PURE__ */ x.createElement("svg", { xmlns: "http://www.w3
20049
20049
  );
20050
20050
  }, wT = ({ handleEditClick: e }) => {
20051
20051
  const t = (n) => {
20052
- Gt(n), e();
20052
+ jt(n), e();
20053
20053
  };
20054
20054
  return /* @__PURE__ */ f.jsx("div", { className: "add-tag-button flex pt-12 pr-12", "data-testid": "add-tags-button", onClick: t, children: /* @__PURE__ */ f.jsxs("div", { className: "lh-16 flex", children: [
20055
20055
  /* @__PURE__ */ f.jsx(ml, { className: "icon-dim-16 cn-6" }),
@@ -22466,7 +22466,7 @@ const ma = {
22466
22466
  }), jP = (e) => {
22467
22467
  const { selectProps: t, data: n, showTippy: r, style: a, placement: i, tippyContent: s, tippyClass: o } = e;
22468
22468
  t.styles.option = lR(a);
22469
- const u = () => /* @__PURE__ */ f.jsx("div", { onClick: Gt, children: /* @__PURE__ */ f.jsx(nr.Option, { ...e }) });
22469
+ const u = () => /* @__PURE__ */ f.jsx("div", { onClick: jt, children: /* @__PURE__ */ f.jsx(nr.Option, { ...e }) });
22470
22470
  return r ? /* @__PURE__ */ f.jsx(
22471
22471
  Xt,
22472
22472
  {
@@ -23817,7 +23817,7 @@ export {
23817
23817
  WM as setImageTags,
23818
23818
  ya as showError,
23819
23819
  aE as sortCallback,
23820
- Gt as stopPropagation,
23820
+ jt as stopPropagation,
23821
23821
  W0 as toastAccessDenied,
23822
23822
  h5 as trash,
23823
23823
  OR as unitSelectorStyles,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtron-labs/devtron-fe-common-lib",
3
- "version": "0.0.71-beta-1",
3
+ "version": "0.0.71-beta-3",
4
4
  "description": "Supporting common component library",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",