builder-settings-types 0.0.415 → 0.0.416

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.
@@ -273,7 +273,7 @@ function Er(t) {
273
273
  return t instanceof Ae;
274
274
  }
275
275
  function $e(t) {
276
- return t instanceof dr;
276
+ return t instanceof nr;
277
277
  }
278
278
  function vi(t) {
279
279
  return Er(t) || $e(t);
@@ -298,7 +298,7 @@ const es = (t, e, r) => {
298
298
  if (!t) return null;
299
299
  let e = t.trim();
300
300
  return !e.startsWith("#") || (e = e.slice(1), e.length === 3 && (e = e.split("").map((r) => r + r).join("")), !/^[0-9a-fA-F]{6}$/.test(e)) ? null : `#${e.toUpperCase()}`;
301
- }, Bn = (t, e, r) => `#${[t, e, r].map((a) => Math.max(0, Math.min(255, a)).toString(16).padStart(2, "0")).join("")}`, ur = (t) => {
301
+ }, Bn = (t, e, r) => `#${[t, e, r].map((a) => Math.max(0, Math.min(255, a)).toString(16).padStart(2, "0")).join("")}`, dr = (t) => {
302
302
  const e = t.replace("#", ""), r = e.length === 3 ? e.split("").map((a) => a + a).join("") : e;
303
303
  return {
304
304
  r: parseInt(r.slice(0, 2), 16),
@@ -306,7 +306,7 @@ const es = (t, e, r) => {
306
306
  b: parseInt(r.slice(4, 6), 16)
307
307
  };
308
308
  }, ya = (t) => {
309
- const { r: e, g: r, b: a } = ur(t), n = e / 255, i = r / 255, s = a / 255, o = Math.max(n, i, s), l = Math.min(n, i, s), c = o - l;
309
+ const { r: e, g: r, b: a } = dr(t), n = e / 255, i = r / 255, s = a / 255, o = Math.max(n, i, s), l = Math.min(n, i, s), c = o - l;
310
310
  let f = 0;
311
311
  c !== 0 && (o === n ? f = (i - s) / c % 6 : o === i ? f = (s - n) / c + 2 : f = (n - i) / c + 4), f < 0 && (f += 6);
312
312
  const h = o === 0 ? 0 : c / o, u = o;
@@ -333,7 +333,7 @@ const es = (t, e, r) => {
333
333
  }, Ri = (t, e) => {
334
334
  const r = Math.max(0, Math.min(100, e)) / 100;
335
335
  if (t.startsWith("#")) {
336
- const { r: n, g: i, b: s } = ur(t);
336
+ const { r: n, g: i, b: s } = dr(t);
337
337
  return `rgba(${n}, ${i}, ${s}, ${r})`;
338
338
  }
339
339
  if (t.startsWith("rgba("))
@@ -364,7 +364,7 @@ const es = (t, e, r) => {
364
364
  }
365
365
  const a = Qr(t);
366
366
  if (a) {
367
- const { r: n, g: i, b: s } = ur(a);
367
+ const { r: n, g: i, b: s } = dr(a);
368
368
  return `rgba(${n}, ${i}, ${s}, ${r})`;
369
369
  }
370
370
  return t;
@@ -683,7 +683,7 @@ const ts = (t, e) => {
683
683
  return Vn(e);
684
684
  const r = Qr(t);
685
685
  if (r) {
686
- const a = ur(r);
686
+ const a = dr(r);
687
687
  return `${r} (RGB: ${a.r}, ${a.g}, ${a.b})`;
688
688
  }
689
689
  return t;
@@ -870,7 +870,7 @@ class pf {
870
870
  const e = this.select.value, { h: r, s: a, v: n } = ya(this.currentColor);
871
871
  if (e === "hex") this.input.value = this.currentColor;
872
872
  else if (e === "rgb") {
873
- const { r: i, g: s, b: o } = ur(this.currentColor);
873
+ const { r: i, g: s, b: o } = dr(this.currentColor);
874
874
  this.input.value = `rgb(${i}, ${s}, ${o})`;
875
875
  } else {
876
876
  const { hue: i, sat: s, lightness: o } = v0(r, a, n);
@@ -899,7 +899,7 @@ class pf {
899
899
  r && this.setColor(r);
900
900
  }
901
901
  updateOpacityBg() {
902
- const { r: e, g: r, b: a } = ur(this.currentColor);
902
+ const { r: e, g: r, b: a } = dr(this.currentColor);
903
903
  this.opacitySlider.style.setProperty(
904
904
  "--base-color",
905
905
  `rgb(${e}, ${r}, ${a})`
@@ -1080,7 +1080,7 @@ class mf {
1080
1080
  if (e === "hex")
1081
1081
  this.input.value = this.currentColor;
1082
1082
  else if (e === "rgb") {
1083
- const { r: i, g: s, b: o } = ur(this.currentColor);
1083
+ const { r: i, g: s, b: o } = dr(this.currentColor);
1084
1084
  this.input.value = `rgb(${i}, ${s}, ${o})`;
1085
1085
  } else {
1086
1086
  const { hue: i, sat: s, lightness: o } = v0(r, a, n);
@@ -1110,7 +1110,7 @@ class mf {
1110
1110
  r && (this.setColor(r), this.onColorChange(this.currentColor, this.currentOpacity));
1111
1111
  }
1112
1112
  updateOpacityBg() {
1113
- const { r: e, g: r, b: a } = ur(this.currentColor);
1113
+ const { r: e, g: r, b: a } = dr(this.currentColor);
1114
1114
  this.opacitySlider.style.setProperty(
1115
1115
  "--base-color",
1116
1116
  `rgb(${e}, ${r}, ${a})`
@@ -1794,7 +1794,7 @@ const qt = class qt extends Ae {
1794
1794
  if (n === i || n.position === i.position)
1795
1795
  s = n.color, o = n.opacity ?? 100;
1796
1796
  else {
1797
- const c = (r - n.position) / (i.position - n.position), f = ur(n.color), h = ur(i.color), u = Math.round(f.r + (h.r - f.r) * c), p = Math.round(f.g + (h.g - f.g) * c), m = Math.round(f.b + (h.b - f.b) * c);
1797
+ const c = (r - n.position) / (i.position - n.position), f = dr(n.color), h = dr(i.color), u = Math.round(f.r + (h.r - f.r) * c), p = Math.round(f.g + (h.g - f.g) * c), m = Math.round(f.b + (h.b - f.b) * c);
1798
1798
  s = `#${u.toString(16).padStart(2, "0")}${p.toString(16).padStart(2, "0")}${m.toString(16).padStart(2, "0")}`.toUpperCase(), o = Math.round(
1799
1799
  (n.opacity ?? 100) + ((i.opacity ?? 100) - (n.opacity ?? 100)) * c
1800
1800
  );
@@ -2620,15 +2620,15 @@ function M0(t, e) {
2620
2620
  } else r = e.toExponential(a);
2621
2621
  return t.match(/E\+00$/) && r.match(/e[+-]\d$/) && (r = r.substr(0, r.length - 1) + "0" + r.charAt(r.length - 1)), t.match(/E\-/) && r.match(/e\+/) && (r = r.replace(/e\+/, "e")), r.replace("e", "E");
2622
2622
  }
2623
- function lr(t, e, r) {
2623
+ function cr(t, e, r) {
2624
2624
  if (t.charCodeAt(0) === 40 && !e.match(I0)) {
2625
2625
  var a = e.replace(/\( */, "").replace(/ \)/, "").replace(/\)/, "");
2626
- return r >= 0 ? lr("n", a, r) : "(" + lr("n", a, -r) + ")";
2626
+ return r >= 0 ? cr("n", a, r) : "(" + cr("n", a, -r) + ")";
2627
2627
  }
2628
2628
  if (e.charCodeAt(e.length - 1) === 44) return Bf(t, e, r);
2629
2629
  if (e.indexOf("%") !== -1) return Vf(t, e, r);
2630
2630
  if (e.indexOf("E") !== -1) return M0(e, r);
2631
- if (e.charCodeAt(0) === 36) return "$" + lr(t, e.substr(e.charAt(1) == " " ? 2 : 1), r);
2631
+ if (e.charCodeAt(0) === 36) return "$" + cr(t, e.substr(e.charAt(1) == " " ? 2 : 1), r);
2632
2632
  var n, i, s, o, l = Math.abs(r), c = r < 0 ? "-" : "";
2633
2633
  if (e.match(/^00+$/)) return c + tr(l, e.length);
2634
2634
  if (e.match(/^[#?]+$/))
@@ -2643,14 +2643,14 @@ function lr(t, e, r) {
2643
2643
  return c + ("" + l).replace(/\.(\d*[1-9])0*$/, ".$1").replace(/^(-?\d*)$/, "$1.").replace(/^0\./, i[1].length ? "0." : ".");
2644
2644
  if (i = e.match(/^#{1,3},##0(\.?)$/)) return c + Pr("" + l);
2645
2645
  if (i = e.match(/^#,##0\.([#0]*0)$/))
2646
- return r < 0 ? "-" + lr(t, e, -r) : Pr("" + r) + "." + Ke("0", i[1].length);
2647
- if (i = e.match(/^#,#*,#0/)) return lr(t, e.replace(/^#,#*,/, ""), r);
2646
+ return r < 0 ? "-" + cr(t, e, -r) : Pr("" + r) + "." + Ke("0", i[1].length);
2647
+ if (i = e.match(/^#,#*,#0/)) return cr(t, e.replace(/^#,#*,/, ""), r);
2648
2648
  if (i = e.match(/^([0#]+)(\\?-([0#]+))+$/))
2649
- return n = _a(lr(t, e.replace(/[\\-]/g, ""), r)), s = 0, _a(_a(e.replace(/\\/g, "")).replace(/[0#]/g, function(m) {
2649
+ return n = _a(cr(t, e.replace(/[\\-]/g, ""), r)), s = 0, _a(_a(e.replace(/\\/g, "")).replace(/[0#]/g, function(m) {
2650
2650
  return s < n.length ? n.charAt(s++) : m === "0" ? "0" : "";
2651
2651
  }));
2652
2652
  if (e.match(N0))
2653
- return n = lr(t, "##########", r), "(" + n.substr(0, 3) + ") " + n.substr(3, 3) + "-" + n.substr(6);
2653
+ return n = cr(t, "##########", r), "(" + n.substr(0, 3) + ") " + n.substr(3, 3) + "-" + n.substr(6);
2654
2654
  var f = "";
2655
2655
  if (i = e.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))
2656
2656
  return s = Math.min(
@@ -2675,7 +2675,7 @@ function lr(t, e, r) {
2675
2675
  return Tt(e.substr(0, h) + n + e.substr(e.length - u));
2676
2676
  }
2677
2677
  if (i = e.match(/^00,000\.([#0]*0)$/))
2678
- return r < 0 ? "-" + lr(t, e, -r) : Pr("" + r).replace(/^\d,\d{3}$/, "0$&").replace(/^\d*$/, function(m) {
2678
+ return r < 0 ? "-" + cr(t, e, -r) : Pr("" + r).replace(/^\d,\d{3}$/, "0$&").replace(/^\d*$/, function(m) {
2679
2679
  return "00," + (m.length < 3 ? tr(0, 3 - m.length) : "") + m;
2680
2680
  }) + "." + tr(0, i[1].length);
2681
2681
  switch (e) {
@@ -2685,12 +2685,12 @@ function lr(t, e, r) {
2685
2685
  var p = Pr("" + l);
2686
2686
  return p !== "0" ? c + p : "";
2687
2687
  default:
2688
- if (e.match(/\.[0#?]*$/)) return lr(t, e.slice(0, e.lastIndexOf(".")), r) + Tt(e.slice(e.lastIndexOf(".")));
2688
+ if (e.match(/\.[0#?]*$/)) return cr(t, e.slice(0, e.lastIndexOf(".")), r) + Tt(e.slice(e.lastIndexOf(".")));
2689
2689
  }
2690
2690
  throw new Error("unsupported format |" + e + "|");
2691
2691
  }
2692
2692
  function _r(t, e, r) {
2693
- return (r | 0) === r ? lr(t, e, r) : Ut(t, e, r);
2693
+ return (r | 0) === r ? cr(t, e, r) : Ut(t, e, r);
2694
2694
  }
2695
2695
  function Hf(t) {
2696
2696
  for (var e = [], r = !1, a = 0, n = 0; a < t.length; ++a) switch (
@@ -3724,7 +3724,7 @@ var Xf = /* @__PURE__ */ function() {
3724
3724
  var k = _ & 7, T = _ >>> 3;
3725
3725
  return k <= 5 ? E[T] |= (C & 7) << k : (E[T] |= C << k & 255, E[T + 1] = (C & 7) >> 8 - k), _ + 3;
3726
3726
  }
3727
- function nr(E, _, C) {
3727
+ function ir(E, _, C) {
3728
3728
  var k = _ & 7, T = _ >>> 3;
3729
3729
  return C = (C & 1) << k, E[T] |= C, _ + 1;
3730
3730
  }
@@ -3789,7 +3789,7 @@ var Xf = /* @__PURE__ */ function() {
3789
3789
  for (; _ <= 287; _++) C.push(8);
3790
3790
  vr(C, Nr, 288);
3791
3791
  })();
3792
- var ir = /* @__PURE__ */ function() {
3792
+ var sr = /* @__PURE__ */ function() {
3793
3793
  for (var _ = Q ? new Uint8Array(32768) : [], C = 0, k = 0; C < te.length - 1; ++C)
3794
3794
  for (; k < te[C + 1]; ++k) _[k] = C;
3795
3795
  for (; k < 32768; ++k) _[k] = 29;
@@ -3831,7 +3831,7 @@ var Xf = /* @__PURE__ */ function() {
3831
3831
  Z[ue] = G & 32767, ue = (ue << 5 ^ j[G]) & 32767, ++G;
3832
3832
  se -= Ee - 1;
3833
3833
  } else
3834
- ee <= 143 ? ee = ee + 48 : W = nr(V, W, 1), W = xr(V, W, q[ee]), Z[ue] = G & 32767, ++G;
3834
+ ee <= 143 ? ee = ee + 48 : W = ir(V, W, 1), W = xr(V, W, q[ee]), Z[ue] = G & 32767, ++G;
3835
3835
  }
3836
3836
  W = xr(V, W, 0) - 1;
3837
3837
  }
@@ -3842,7 +3842,7 @@ var Xf = /* @__PURE__ */ function() {
3842
3842
  };
3843
3843
  }();
3844
3844
  function Te(E) {
3845
- var _ = X(50 + Math.floor(E.length * 1.1)), C = ir(E, _);
3845
+ var _ = X(50 + Math.floor(E.length * 1.1)), C = sr(E, _);
3846
3846
  return _.slice(0, C);
3847
3847
  }
3848
3848
  var Ze = Q ? new Uint16Array(32768) : It(32768), Vt = Q ? new Uint16Array(32768) : It(32768), it = Q ? new Uint16Array(128) : It(128), $r = 1, zs = 1;
@@ -4210,7 +4210,7 @@ function pn(t, e, r) {
4210
4210
  }
4211
4211
  return Deno.writeFileSync(t, e);
4212
4212
  }
4213
- var a = r == "utf8" ? hr(e) : e;
4213
+ var a = r == "utf8" ? ur(e) : e;
4214
4214
  if (typeof IE_SaveFile < "u") return IE_SaveFile(a, t);
4215
4215
  if (typeof Blob < "u") {
4216
4216
  var n = new Blob([jf(a)], { type: "application/octet-stream" });
@@ -4318,15 +4318,15 @@ function Ue(t, e) {
4318
4318
  function ra(t, e) {
4319
4319
  if (_e && Buffer.isBuffer(t)) {
4320
4320
  if (e) {
4321
- if (t[0] == 255 && t[1] == 254) return hr(t.slice(2).toString("utf16le"));
4322
- if (t[1] == 254 && t[2] == 255) return hr(_0(t.slice(2).toString("binary")));
4321
+ if (t[0] == 255 && t[1] == 254) return ur(t.slice(2).toString("utf16le"));
4322
+ if (t[1] == 254 && t[2] == 255) return ur(_0(t.slice(2).toString("binary")));
4323
4323
  }
4324
4324
  return t.toString("binary");
4325
4325
  }
4326
4326
  if (typeof TextDecoder < "u") try {
4327
4327
  if (e) {
4328
- if (t[0] == 255 && t[1] == 254) return hr(new TextDecoder("utf-16le").decode(t.slice(2)));
4329
- if (t[0] == 254 && t[1] == 255) return hr(new TextDecoder("utf-16be").decode(t.slice(2)));
4328
+ if (t[0] == 255 && t[1] == 254) return ur(new TextDecoder("utf-16le").decode(t.slice(2)));
4329
+ if (t[0] == 254 && t[1] == 255) return ur(new TextDecoder("utf-16be").decode(t.slice(2)));
4330
4330
  }
4331
4331
  var r = {
4332
4332
  "€": "€",
@@ -4616,7 +4616,7 @@ function xo(t) {
4616
4616
  function vo(t) {
4617
4617
  return Fr(t, "binary").toString("utf8");
4618
4618
  }
4619
- var _n = "foo bar baz☃🍣", Re = _e && (/* @__PURE__ */ vo(_n) == /* @__PURE__ */ Ei(_n) && vo || /* @__PURE__ */ xo(_n) == /* @__PURE__ */ Ei(_n) && xo) || Ei, hr = _e ? function(t) {
4619
+ var _n = "foo bar baz☃🍣", Re = _e && (/* @__PURE__ */ vo(_n) == /* @__PURE__ */ Ei(_n) && vo || /* @__PURE__ */ xo(_n) == /* @__PURE__ */ Ei(_n) && xo) || Ei, ur = _e ? function(t) {
4620
4620
  return Fr(t, "utf8").toString("binary");
4621
4621
  } : function(t) {
4622
4622
  for (var e = [], r = 0, a = 0, n = 0; r < t.length; )
@@ -8836,9 +8836,9 @@ var qr = /* @__PURE__ */ function() {
8836
8836
  /* NUMBER */
8837
8837
  case 16:
8838
8838
  Bt == 14 && (ce[2] & 112) == 112 && (ce[2] & 15) > 1 && (ce[2] & 15) < 15 && (ce[1].z = M.dateNF || me[14], M.cellDates && (ce[1].t = "d", ce[1].v = hi(ce[1].v))), M.qpro && ce[3] > re && (O["!ref"] = Ce(F), Q[K] = O, q.push(K), O = M.dense ? [] : {}, F = { s: { r: 0, c: 0 }, e: { r: 0, c: 0 } }, re = ce[3], K = te || "Sheet" + (re + 1), te = "");
8839
- var nr = M.dense ? (O[ce[0].r] || [])[ce[0].c] : O[ge(ce[0])];
8840
- if (nr) {
8841
- nr.t = ce[1].t, nr.v = ce[1].v, ce[1].z != null && (nr.z = ce[1].z), ce[1].f != null && (nr.f = ce[1].f);
8839
+ var ir = M.dense ? (O[ce[0].r] || [])[ce[0].c] : O[ge(ce[0])];
8840
+ if (ir) {
8841
+ ir.t = ce[1].t, ir.v = ce[1].v, ce[1].z != null && (ir.z = ce[1].z), ce[1].f != null && (ir.f = ce[1].f);
8842
8842
  break;
8843
8843
  }
8844
8844
  M.dense ? (O[ce[0].r] || (O[ce[0].r] = []), O[ce[0].r][ce[0].c] = ce[1]) : O[ge(ce[0])] = ce[1];
@@ -14180,7 +14180,7 @@ function og(t, e, r, a, n) {
14180
14180
  e.Workbook && (l = e.Workbook.Sheets[r].CodeName || l);
14181
14181
  } catch {
14182
14182
  }
14183
- i = !0, s.codeName = hr(De(l));
14183
+ i = !0, s.codeName = ur(De(l));
14184
14184
  }
14185
14185
  if (t && t["!outline"]) {
14186
14186
  var c = { summaryBelow: 1, summaryRight: 1 };
@@ -17155,7 +17155,7 @@ function Jv(t, e, r, a, n) {
17155
17155
  if (h.length < a) throw "XLS Record 0x" + t.toString(16) + " Truncated: " + h.length + " < " + a;
17156
17156
  return e.f(h, h.length, n);
17157
17157
  }
17158
- function sr(t, e, r) {
17158
+ function or(t, e, r) {
17159
17159
  if (t.t !== "z" && t.XF) {
17160
17160
  var a = 0;
17161
17161
  try {
@@ -17403,19 +17403,19 @@ function qv(t, e) {
17403
17403
  case 515:
17404
17404
  case 3:
17405
17405
  case 2:
17406
- n["!type"] == "chart" && (e.dense ? (n[F.r] || [])[F.c] : n[ge({ c: F.c, r: F.r })]) && ++F.c, x = { ixfe: F.ixfe, XF: I[F.ixfe] || {}, v: F.val, t: "n" }, A > 0 && (x.z = R[x.ixfe >> 8 & 63]), sr(x, e, r.opts.Date1904), B({ c: F.c, r: F.r }, x, e);
17406
+ n["!type"] == "chart" && (e.dense ? (n[F.r] || [])[F.c] : n[ge({ c: F.c, r: F.r })]) && ++F.c, x = { ixfe: F.ixfe, XF: I[F.ixfe] || {}, v: F.val, t: "n" }, A > 0 && (x.z = R[x.ixfe >> 8 & 63]), or(x, e, r.opts.Date1904), B({ c: F.c, r: F.r }, x, e);
17407
17407
  break;
17408
17408
  case 5:
17409
17409
  case 517:
17410
- x = { ixfe: F.ixfe, XF: I[F.ixfe], v: F.val, t: F.t }, A > 0 && (x.z = R[x.ixfe >> 8 & 63]), sr(x, e, r.opts.Date1904), B({ c: F.c, r: F.r }, x, e);
17410
+ x = { ixfe: F.ixfe, XF: I[F.ixfe], v: F.val, t: F.t }, A > 0 && (x.z = R[x.ixfe >> 8 & 63]), or(x, e, r.opts.Date1904), B({ c: F.c, r: F.r }, x, e);
17411
17411
  break;
17412
17412
  case 638:
17413
- x = { ixfe: F.ixfe, XF: I[F.ixfe], v: F.rknum, t: "n" }, A > 0 && (x.z = R[x.ixfe >> 8 & 63]), sr(x, e, r.opts.Date1904), B({ c: F.c, r: F.r }, x, e);
17413
+ x = { ixfe: F.ixfe, XF: I[F.ixfe], v: F.rknum, t: "n" }, A > 0 && (x.z = R[x.ixfe >> 8 & 63]), or(x, e, r.opts.Date1904), B({ c: F.c, r: F.r }, x, e);
17414
17414
  break;
17415
17415
  case 189:
17416
17416
  for (var be = F.c; be <= F.C; ++be) {
17417
17417
  var ce = F.rkrec[be - F.c][0];
17418
- x = { ixfe: ce, XF: I[ce], v: F.rkrec[be - F.c][1], t: "n" }, A > 0 && (x.z = R[x.ixfe >> 8 & 63]), sr(x, e, r.opts.Date1904), B({ c: be, r: F.r }, x, e);
17418
+ x = { ixfe: ce, XF: I[ce], v: F.rkrec[be - F.c][1], t: "n" }, A > 0 && (x.z = R[x.ixfe >> 8 & 63]), or(x, e, r.opts.Date1904), B({ c: be, r: F.r }, x, e);
17419
17419
  }
17420
17420
  break;
17421
17421
  case 6:
@@ -17429,17 +17429,17 @@ function qv(t, e) {
17429
17429
  if (x = Nn(F.val, F.cell.ixfe, F.tt), x.XF = I[x.ixfe], e.cellFormula) {
17430
17430
  var qe = F.formula;
17431
17431
  if (qe && qe[0] && qe[0][0] && qe[0][0][0] == "PtgExp") {
17432
- var Bt = qe[0][0][1][0], nr = qe[0][0][1][1], xr = ge({ r: Bt, c: nr });
17433
- v[xr] ? x.f = "" + vt(F.formula, s, F.cell, U, D) : x.F = ((e.dense ? (n[Bt] || [])[nr] : n[xr]) || {}).F;
17432
+ var Bt = qe[0][0][1][0], ir = qe[0][0][1][1], xr = ge({ r: Bt, c: ir });
17433
+ v[xr] ? x.f = "" + vt(F.formula, s, F.cell, U, D) : x.F = ((e.dense ? (n[Bt] || [])[ir] : n[xr]) || {}).F;
17434
17434
  } else x.f = "" + vt(F.formula, s, F.cell, U, D);
17435
17435
  }
17436
- A > 0 && (x.z = R[x.ixfe >> 8 & 63]), sr(x, e, r.opts.Date1904), B(F.cell, x, e), o = F;
17436
+ A > 0 && (x.z = R[x.ixfe >> 8 & 63]), or(x, e, r.opts.Date1904), B(F.cell, x, e), o = F;
17437
17437
  }
17438
17438
  break;
17439
17439
  case 7:
17440
17440
  case 519:
17441
17441
  if (o)
17442
- o.val = F, x = Nn(F, o.cell.ixfe, "s"), x.XF = I[x.ixfe], e.cellFormula && (x.f = "" + vt(o.formula, s, o.cell, U, D)), A > 0 && (x.z = R[x.ixfe >> 8 & 63]), sr(x, e, r.opts.Date1904), B(o.cell, x, e), o = null;
17442
+ o.val = F, x = Nn(F, o.cell.ixfe, "s"), x.XF = I[x.ixfe], e.cellFormula && (x.f = "" + vt(o.formula, s, o.cell, U, D)), A > 0 && (x.z = R[x.ixfe >> 8 & 63]), or(x, e, r.opts.Date1904), B(o.cell, x, e), o = null;
17443
17443
  else throw new Error("String record expects Formula");
17444
17444
  break;
17445
17445
  case 33:
@@ -17463,22 +17463,22 @@ function qv(t, e) {
17463
17463
  }
17464
17464
  break;
17465
17465
  case 253:
17466
- x = Nn(l[F.isst].t, F.ixfe, "s"), l[F.isst].h && (x.h = l[F.isst].h), x.XF = I[x.ixfe], A > 0 && (x.z = R[x.ixfe >> 8 & 63]), sr(x, e, r.opts.Date1904), B({ c: F.c, r: F.r }, x, e);
17466
+ x = Nn(l[F.isst].t, F.ixfe, "s"), l[F.isst].h && (x.h = l[F.isst].h), x.XF = I[x.ixfe], A > 0 && (x.z = R[x.ixfe >> 8 & 63]), or(x, e, r.opts.Date1904), B({ c: F.c, r: F.r }, x, e);
17467
17467
  break;
17468
17468
  case 513:
17469
- e.sheetStubs && (x = { ixfe: F.ixfe, XF: I[F.ixfe], t: "z" }, A > 0 && (x.z = R[x.ixfe >> 8 & 63]), sr(x, e, r.opts.Date1904), B({ c: F.c, r: F.r }, x, e));
17469
+ e.sheetStubs && (x = { ixfe: F.ixfe, XF: I[F.ixfe], t: "z" }, A > 0 && (x.z = R[x.ixfe >> 8 & 63]), or(x, e, r.opts.Date1904), B({ c: F.c, r: F.r }, x, e));
17470
17470
  break;
17471
17471
  case 190:
17472
17472
  if (e.sheetStubs)
17473
17473
  for (var Ir = F.c; Ir <= F.C; ++Ir) {
17474
17474
  var It = F.ixfe[Ir - F.c];
17475
- x = { ixfe: It, XF: I[It], t: "z" }, A > 0 && (x.z = R[x.ixfe >> 8 & 63]), sr(x, e, r.opts.Date1904), B({ c: Ir, r: F.r }, x, e);
17475
+ x = { ixfe: It, XF: I[It], t: "z" }, A > 0 && (x.z = R[x.ixfe >> 8 & 63]), or(x, e, r.opts.Date1904), B({ c: Ir, r: F.r }, x, e);
17476
17476
  }
17477
17477
  break;
17478
17478
  case 214:
17479
17479
  case 516:
17480
17480
  case 4:
17481
- x = Nn(F.val, F.ixfe, "s"), x.XF = I[x.ixfe], A > 0 && (x.z = R[x.ixfe >> 8 & 63]), sr(x, e, r.opts.Date1904), B({ c: F.c, r: F.r }, x, e);
17481
+ x = Nn(F.val, F.ixfe, "s"), x.XF = I[x.ixfe], A > 0 && (x.z = R[x.ixfe >> 8 & 63]), or(x, e, r.opts.Date1904), B({ c: F.c, r: F.r }, x, e);
17482
17482
  break;
17483
17483
  case 0:
17484
17484
  case 512:
@@ -17575,12 +17575,12 @@ function qv(t, e) {
17575
17575
  } else
17576
17576
  q || console.error("Missing Info for XLS Record 0x" + re.toString(16)), t.l += Q;
17577
17577
  }
17578
- return r.SheetNames = Je(i).sort(function(ir, Te) {
17579
- return Number(ir) - Number(Te);
17580
- }).map(function(ir) {
17581
- return i[ir].name;
17582
- }), e.bookSheets || (r.Sheets = a), !r.SheetNames.length && f["!ref"] ? (r.SheetNames.push("Sheet1"), r.Sheets && (r.Sheets.Sheet1 = f)) : r.Preamble = f, r.Sheets && M.forEach(function(ir, Te) {
17583
- r.Sheets[r.SheetNames[Te]]["!autofilter"] = ir;
17578
+ return r.SheetNames = Je(i).sort(function(sr, Te) {
17579
+ return Number(sr) - Number(Te);
17580
+ }).map(function(sr) {
17581
+ return i[sr].name;
17582
+ }), e.bookSheets || (r.Sheets = a), !r.SheetNames.length && f["!ref"] ? (r.SheetNames.push("Sheet1"), r.Sheets && (r.Sheets.Sheet1 = f)) : r.Preamble = f, r.Sheets && M.forEach(function(sr, Te) {
17583
+ r.Sheets[r.SheetNames[Te]]["!autofilter"] = sr;
17584
17584
  }), r.Strings = l, r.SSF = We(me), D.enc && (r.Encryption = D.enc), J && (r.Themes = J), r.Metadata = {}, b !== void 0 && (r.Metadata.Country = b), U.names.length > 0 && (y.Names = U.names), r.Workbook = y, r;
17585
17585
  }
17586
17586
  var Za = {
@@ -24887,7 +24887,7 @@ function Yi(t) {
24887
24887
  return typeof TextDecoder < "u" ? new TextDecoder().decode(t) : Re(Hr(t));
24888
24888
  }
24889
24889
  function S5(t) {
24890
- return typeof TextEncoder < "u" ? new TextEncoder().encode(t) : Pt(hr(t));
24890
+ return typeof TextEncoder < "u" ? new TextEncoder().encode(t) : Pt(ur(t));
24891
24891
  }
24892
24892
  function b5(t, e) {
24893
24893
  e:
@@ -25926,7 +25926,7 @@ function Q5(t, e) {
25926
25926
  return e.type == "base64" && (r = Rt(r)), r = Bi.utils.decode(1200, r.slice(2), "str"), e.type = "binary", Sc(r, e);
25927
25927
  }
25928
25928
  function e4(t) {
25929
- return t.match(/[^\x00-\x7F]/) ? hr(t) : t;
25929
+ return t.match(/[^\x00-\x7F]/) ? ur(t) : t;
25930
25930
  }
25931
25931
  function Ni(t, e, r, a) {
25932
25932
  return a ? (r.type = "string", Aa.to_workbook(t, r)) : Aa.to_workbook(e, r);
@@ -26048,20 +26048,20 @@ function a4(t, e) {
26048
26048
  var r = e || {}, a = e5(t, r);
26049
26049
  return bc(a, r);
26050
26050
  }
26051
- function cr(t, e, r) {
26051
+ function fr(t, e, r) {
26052
26052
  r || (r = "");
26053
26053
  var a = r + t;
26054
26054
  switch (e.type) {
26055
26055
  case "base64":
26056
- return en(hr(a));
26056
+ return en(ur(a));
26057
26057
  case "binary":
26058
- return hr(a);
26058
+ return ur(a);
26059
26059
  case "string":
26060
26060
  return t;
26061
26061
  case "file":
26062
26062
  return pn(e.file, a, "utf8");
26063
26063
  case "buffer":
26064
- return _e ? Fr(a, "utf8") : typeof TextEncoder < "u" ? new TextEncoder().encode(a) : cr(a, { type: "binary" }).split("").map(function(n) {
26064
+ return _e ? Fr(a, "utf8") : typeof TextEncoder < "u" ? new TextEncoder().encode(a) : fr(a, { type: "binary" }).split("").map(function(n) {
26065
26065
  return n.charCodeAt(0);
26066
26066
  });
26067
26067
  }
@@ -26114,29 +26114,29 @@ function Fc(t, e) {
26114
26114
  switch (r.bookType || "xlsb") {
26115
26115
  case "xml":
26116
26116
  case "xlml":
26117
- return cr(jv(t, r), r);
26117
+ return fr(jv(t, r), r);
26118
26118
  case "slk":
26119
26119
  case "sylk":
26120
- return cr(Pl.from_sheet(t.Sheets[t.SheetNames[n]], r), r);
26120
+ return fr(Pl.from_sheet(t.Sheets[t.SheetNames[n]], r), r);
26121
26121
  case "htm":
26122
26122
  case "html":
26123
- return cr(Ec(t.Sheets[t.SheetNames[n]], r), r);
26123
+ return fr(Ec(t.Sheets[t.SheetNames[n]], r), r);
26124
26124
  case "txt":
26125
26125
  return n4(Lc(t.Sheets[t.SheetNames[n]], r), r);
26126
26126
  case "csv":
26127
- return cr(Hs(t.Sheets[t.SheetNames[n]], r), r, "\uFEFF");
26127
+ return fr(Hs(t.Sheets[t.SheetNames[n]], r), r, "\uFEFF");
26128
26128
  case "dif":
26129
- return cr(Dl.from_sheet(t.Sheets[t.SheetNames[n]], r), r);
26129
+ return fr(Dl.from_sheet(t.Sheets[t.SheetNames[n]], r), r);
26130
26130
  case "dbf":
26131
26131
  return Mn(Xi.from_sheet(t.Sheets[t.SheetNames[n]], r), r);
26132
26132
  case "prn":
26133
- return cr(Aa.from_sheet(t.Sheets[t.SheetNames[n]], r), r);
26133
+ return fr(Aa.from_sheet(t.Sheets[t.SheetNames[n]], r), r);
26134
26134
  case "rtf":
26135
- return cr($l.from_sheet(t.Sheets[t.SheetNames[n]], r), r);
26135
+ return fr($l.from_sheet(t.Sheets[t.SheetNames[n]], r), r);
26136
26136
  case "eth":
26137
- return cr(Rl.from_sheet(t.Sheets[t.SheetNames[n]], r), r);
26137
+ return fr(Rl.from_sheet(t.Sheets[t.SheetNames[n]], r), r);
26138
26138
  case "fods":
26139
- return cr(_c(t, r), r);
26139
+ return fr(_c(t, r), r);
26140
26140
  case "wk1":
26141
26141
  return Mn(qr.sheet_to_wk1(t.Sheets[t.SheetNames[n]], r), r);
26142
26142
  case "wk3":
@@ -26652,7 +26652,7 @@ function qi(t) {
26652
26652
  const si = class si {
26653
26653
  constructor(e) {
26654
26654
  this.elementRef = null, this.isHidden = !1, this.custom = !1, this.initialValues = {}, this.changeTimeout = null, this.isHandlingChange = !1, this.changeHandlers = /* @__PURE__ */ new Set(), this.blurTimeout = null, this.lastChangeTime = 0, this.handleBlur = () => {
26655
- }, this.pendingBlurHandler = null, this.originalDefaultValues = {}, this.nestingLevel = 0, this.dataPropsPath = "", this.hide = !1, this.isSettingValue = !1, this.suppressOnChange = !1, this.suppressOnChange = !0, this.id = e.id || Un(), this.title = e.title, this.settings = e.settings, this.isCollapsed = e.collapsed ?? !1, this.isMain = e.main ?? !1, this.custom = e.custom ?? !1, this.nestingLevel = 0, this.includeGetJson = e.includeGetJson ?? !0, this.addItemCfg = e.addItem, this.deleteItemCfg = e.deleteItem, this.dataProps = e.dataProps, this.dataPropsPath = e.dataProps || "", this.hide = e.hide ?? !1, Object.assign(this, e.settings), this.initialValues = this.getValues(), this.originalDefaultValues = this.getDefaultValues(), this.propagateNestingLevel(), this.propagateDataPropsPath(), this.propagateComponentPaths(), this.suppressOnChange = !1;
26655
+ }, this.pendingBlurHandler = null, this.originalDefaultValues = {}, this.nestingLevel = 0, this.dataPropsPath = "", this.hide = !1, this.isSettingValue = !1, this.suppressOnChange = !1, this.isRootNode = !1, this.suppressOnChange = !0, this.id = e.id || Un(), this.title = e.title, this.settings = e.settings, this.isCollapsed = e.collapsed ?? !1, this.isMain = e.main ?? !1, this.custom = e.custom ?? !1, this.nestingLevel = 0, this.includeGetJson = e.includeGetJson ?? !0, this.addItemCfg = e.addItem, this.deleteItemCfg = e.deleteItem, this.dataProps = e.dataProps, this.dataPropsPath = e.dataProps || "", this.hide = e.hide ?? !1, Object.assign(this, e.settings), this.initialValues = this.getValues(), this.originalDefaultValues = this.getDefaultValues(), this.propagateNestingLevel(), this.propagateDataPropsPath(), this.propagateComponentPaths(), this.suppressOnChange = !1;
26656
26656
  }
26657
26657
  propagateNestingLevel() {
26658
26658
  const e = this.nestingLevel + 1;
@@ -27486,7 +27486,10 @@ const si = class si {
27486
27486
  try {
27487
27487
  g.disabled = !0, g.innerHTML = "<span>Importing...</span>";
27488
27488
  const N = await Pn.importFromExcel(L);
27489
- N.rules.length === 0 ? this.showImportError("No valid rules found in the Excel file") : this.showImportPreview(N, m.languages || ["en", "ka", "ru", "tr"]);
27489
+ N.rules.length === 0 ? this.showImportError("No valid rules found in the Excel file") : this.showImportPreview(
27490
+ N,
27491
+ m.languages || ["en", "ka", "ru", "tr"]
27492
+ );
27490
27493
  } catch (N) {
27491
27494
  this.showImportError(
27492
27495
  N instanceof Error ? N.message : "Import failed"
@@ -27544,10 +27547,17 @@ const si = class si {
27544
27547
  });
27545
27548
  const P = m.languages || ["en", "ka", "ru", "tr"];
27546
27549
  if (L.length === 0) {
27547
- Pn.downloadTemplate(P, "rules-template.xlsx");
27550
+ Pn.downloadTemplate(
27551
+ P,
27552
+ "rules-template.xlsx"
27553
+ );
27548
27554
  return;
27549
27555
  }
27550
- Pn.exportToExcel(L, P, "rules-export.xlsx");
27556
+ Pn.exportToExcel(
27557
+ L,
27558
+ P,
27559
+ "rules-export.xlsx"
27560
+ );
27551
27561
  }), x.addEventListener("mouseenter", () => {
27552
27562
  x.style.background = "#dbeafe", x.style.borderColor = "#2563eb";
27553
27563
  }), x.addEventListener("mouseleave", () => {
@@ -27599,11 +27609,16 @@ const si = class si {
27599
27609
  }
27600
27610
  };
27601
27611
  si.hiddenElements = /* @__PURE__ */ new Set();
27602
- let dr = si;
27603
- function D3(t) {
27612
+ let nr = si;
27613
+ class D3 extends nr {
27614
+ constructor(e) {
27615
+ super(e), this.isRootNode = !0;
27616
+ }
27617
+ }
27618
+ function R3(t) {
27604
27619
  return new g4(t);
27605
27620
  }
27606
- class g4 extends dr {
27621
+ class g4 extends nr {
27607
27622
  constructor(e) {
27608
27623
  super(e);
27609
27624
  const r = Object.keys(this.settings)[0];
@@ -27664,9 +27679,9 @@ class g4 extends dr {
27664
27679
  }
27665
27680
  }
27666
27681
  function x4(t) {
27667
- return new dr(t);
27682
+ return new nr(t);
27668
27683
  }
27669
- function R3(t) {
27684
+ function B3(t) {
27670
27685
  return t;
27671
27686
  }
27672
27687
  class v4 extends Ae {
@@ -27690,17 +27705,17 @@ class v4 extends Ae {
27690
27705
  }
27691
27706
  }
27692
27707
  const w4 = "<svg xmlns='http://www.w3.org/2000/svg' width='18' height='19' viewBox='0 0 18 19' fill='none'><path d='M8.99999 15.8542C9.79613 16.5667 10.8475 17 12 17C14.4853 17 16.5 14.9853 16.5 12.5C16.5 10.4248 15.0953 8.67769 13.1849 8.15763M4.81513 8.15762C2.9047 8.67768 1.5 10.4248 1.5 12.5C1.5 14.9853 3.51472 17 6 17C8.48528 17 10.5 14.9853 10.5 12.5C10.5 11.9146 10.3882 11.3554 10.1849 10.8424M13.5 6.5C13.5 8.98528 11.4853 11 9 11C6.51472 11 4.5 8.98528 4.5 6.5C4.5 4.01472 6.51472 2 9 2C11.4853 2 13.5 4.01472 13.5 6.5Z' stroke='#667085' strokeLinecap='round' strokeLinejoin='round'/></svg>";
27693
- class fr extends v4 {
27708
+ class hr extends v4 {
27694
27709
  constructor(e) {
27695
27710
  super({
27696
27711
  ...e,
27697
27712
  icon: e.icon || w4,
27698
27713
  title: e.title || "Color",
27699
- default: e.default ? fr.normalizeColorValue(e.default) : "#000000"
27714
+ default: e.default ? hr.normalizeColorValue(e.default) : "#000000"
27700
27715
  }), this.inputType = "color", this.element = null, this.colorInputEl = null, this.textInputEl = null, this.detectChange = e.detectChange;
27701
27716
  }
27702
27717
  static normalizeColorValue(e) {
27703
- return e.startsWith("var(--") ? e : e.startsWith("#") ? fr.normalizeHexValue(e) : e.includes(",") ? fr.rgbToHexStatic(e) : fr.normalizeHexValue(e);
27718
+ return e.startsWith("var(--") ? e : e.startsWith("#") ? hr.normalizeHexValue(e) : e.includes(",") ? hr.rgbToHexStatic(e) : hr.normalizeHexValue(e);
27704
27719
  }
27705
27720
  static normalizeHexValue(e) {
27706
27721
  return e = e.replace("#", ""), e.length === 3 && (e = e.split("").map((r) => r + r).join("")), e.length !== 6 ? (console.warn(`Invalid hex value "${e}", using default "#000000"`), "#000000") : /^[0-9A-Fa-f]{6}$/.test(e) ? `#${e.toLowerCase()}` : (console.warn(`Invalid hex value "${e}", using default "#000000"`), "#000000");
@@ -27721,7 +27736,7 @@ class fr extends v4 {
27721
27736
  return;
27722
27737
  }
27723
27738
  if (typeof e == "string") {
27724
- const r = fr.normalizeColorValue(e);
27739
+ const r = hr.normalizeColorValue(e);
27725
27740
  this.value = r, this.colorInputEl && (this.colorInputEl.value = r), this.textInputEl && (this.textInputEl.value = r), this.onChange && this.onChange(r), this.props.detectChange && this.props.detectChange(r);
27726
27741
  } else
27727
27742
  this.value = "#000000", this.colorInputEl && (this.colorInputEl.value = "#000000"), this.textInputEl && (this.textInputEl.value = "#000000"), this.onChange && this.onChange("#000000"), this.props.detectChange && this.props.detectChange("#000000");
@@ -27813,7 +27828,7 @@ class fr extends v4 {
27813
27828
  var v, w;
27814
27829
  let g = d.trim();
27815
27830
  if (g && !g.startsWith("#") && !g.startsWith("var(") && /^[0-9A-Fa-f]{3}$|^[0-9A-Fa-f]{6}$/.test(g) && (g = "#" + g, this.textInputEl && (this.textInputEl.value = g)), this.textInputEl && c(this.textInputEl)) {
27816
- const x = fr.normalizeColorValue(g);
27831
+ const x = hr.normalizeColorValue(g);
27817
27832
  this.value = x, (v = this.onChange) == null || v.call(this, x), (w = this.detectChange) == null || w.call(this, x), this.colorInputEl && (this.colorInputEl.value = x), h.style.backgroundColor = x;
27818
27833
  }
27819
27834
  };
@@ -27830,11 +27845,11 @@ class fr extends v4 {
27830
27845
  d.key === "Enter" && (d.preventDefault(), m(((g = this.textInputEl) == null ? void 0 : g.value) || ""), (v = this.textInputEl) == null || v.blur()), d.key === "Escape" && (this.textInputEl && this.value && (this.textInputEl.value = this.value), (w = this.textInputEl) == null || w.blur(), r.classList.remove("error"));
27831
27846
  }), this.colorInputEl.addEventListener("input", (d) => {
27832
27847
  var w, x;
27833
- const g = d.target.value, v = fr.normalizeColorValue(g);
27848
+ const g = d.target.value, v = hr.normalizeColorValue(g);
27834
27849
  this.value = v, (w = this.onChange) == null || w.call(this, v), (x = this.detectChange) == null || x.call(this, v), this.textInputEl && (this.textInputEl.value = v), h.style.backgroundColor = v, r.classList.remove("error");
27835
27850
  }), this.colorInputEl.addEventListener("change", (d) => {
27836
27851
  var w, x;
27837
- const g = d.target.value, v = fr.normalizeColorValue(g);
27852
+ const g = d.target.value, v = hr.normalizeColorValue(g);
27838
27853
  this.value = v, (w = this.onChange) == null || w.call(this, v), (x = this.detectChange) == null || x.call(this, v), this.textInputEl && (this.textInputEl.value = v), h.style.backgroundColor = v;
27839
27854
  }), s.appendChild(f), s.appendChild(h), s.appendChild(p), r.appendChild(a), r.appendChild(s), r.appendChild(o), e.appendChild(r), this.element = e, e;
27840
27855
  }
@@ -27843,7 +27858,7 @@ class fr extends v4 {
27843
27858
  }
27844
27859
  // Helper method to get normalized hex value
27845
27860
  getNormalizedValue() {
27846
- return this.value ? fr.normalizeColorValue(this.value) : "#000000";
27861
+ return this.value ? hr.normalizeColorValue(this.value) : "#000000";
27847
27862
  }
27848
27863
  // Helper method to check if current value is valid hex
27849
27864
  isValidHex() {
@@ -27997,7 +28012,7 @@ class wa extends Ae {
27997
28012
  };
27998
28013
  }
27999
28014
  }
28000
- class B3 extends Ae {
28015
+ class V3 extends Ae {
28001
28016
  constructor(e = {}) {
28002
28017
  super(e), this.inputType = "text", e.onChange && this.setOnChange(e.onChange);
28003
28018
  }
@@ -28282,7 +28297,7 @@ class _4 extends Ae {
28282
28297
  }), e.appendChild(a), e;
28283
28298
  }
28284
28299
  }
28285
- class V3 extends Ae {
28300
+ class H3 extends Ae {
28286
28301
  constructor(e) {
28287
28302
  super(e), this.inputType = "button", this.bgWithAlpha = "rgba(145, 158, 171, 0.08)";
28288
28303
  }
@@ -28311,7 +28326,7 @@ class V3 extends Ae {
28311
28326
  return s.className = "button-setting-wrapper " + (this.props.wrapperClassName || ""), s.appendChild(e), s;
28312
28327
  }
28313
28328
  }
28314
- class H3 extends Ae {
28329
+ class U3 extends Ae {
28315
28330
  constructor(e = {}) {
28316
28331
  super(e), this.inputType = { width: "number", height: "number" }, this.aspectRatio = 1, this.isUpdating = !1;
28317
28332
  const r = e.width || 0, a = e.height || 0;
@@ -28985,7 +29000,7 @@ function n3() {
28985
29000
  uploadBox: document.createElement("div")
28986
29001
  };
28987
29002
  }
28988
- function or(t, e) {
29003
+ function lr(t, e) {
28989
29004
  const r = e && e.imageUrl && e.imageUrl !== "", a = t.thumbnailEl.parentElement, n = a == null ? void 0 : a.parentElement;
28990
29005
  n && (r ? (n.classList.add("has-image"), t.thumbnailEl.src = e.imageUrl) : (n.classList.remove("has-image"), t.thumbnailEl.src = "")), t.configureButtonTextEl.textContent = "Configure Map", t.configureButton && (t.configureButton.disabled = !r);
28991
29006
  }
@@ -29138,7 +29153,7 @@ const h3 = `<svg xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox
29138
29153
  const i = i3(
29139
29154
  this.mainDisplayElements.thumbnailEl,
29140
29155
  () => {
29141
- this.value = { imageUrl: "", markers: [] }, this.mainDisplayElements && or(this.mainDisplayElements, this.value), this.triggerChange();
29156
+ this.value = { imageUrl: "", markers: [] }, this.mainDisplayElements && lr(this.mainDisplayElements, this.value), this.triggerChange();
29142
29157
  }
29143
29158
  ), s = this.props.upload || "file-manager", o = s3(
29144
29159
  s,
@@ -29152,7 +29167,7 @@ const h3 = `<svg xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox
29152
29167
  return c.className = "image-map-section-title", c.textContent = "Map Setup", l.appendChild(c), this.mainDisplayElements.configureButton.addEventListener("click", () => {
29153
29168
  var f;
29154
29169
  (f = this.mainDisplayElements) != null && f.configureButton.disabled || this.openPopover();
29155
- }), l.appendChild(this.mainDisplayElements.configureButton), r.appendChild(l), e.appendChild(r), this.createPopoverElements(), or(this.mainDisplayElements, this.value), e;
29170
+ }), l.appendChild(this.mainDisplayElements.configureButton), r.appendChild(l), e.appendChild(r), this.createPopoverElements(), lr(this.mainDisplayElements, this.value), e;
29156
29171
  }
29157
29172
  createPopoverElements() {
29158
29173
  this.popoverElements = l3(
@@ -29187,7 +29202,7 @@ const h3 = `<svg xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox
29187
29202
  return;
29188
29203
  this.initialValue && (this.value = JSON.parse(
29189
29204
  JSON.stringify(this.initialValue)
29190
- ), this.mainDisplayElements && or(this.mainDisplayElements, this.value), this.triggerChange());
29205
+ ), this.mainDisplayElements && lr(this.mainDisplayElements, this.value), this.triggerChange());
29191
29206
  }
29192
29207
  this.isPopoverOpen = !1, this.draggingMarkerId = null, this.clearErrorTooltip(), this.popoverElements && (this.popoverElements.backdrop.style.display = "none", this.popoverElements.popover.style.display = "none"), document.removeEventListener("click", this.onBackgroundClick, !0), document.removeEventListener("keydown", this.handlePopoverKeydown, !0), Cr.openInstance === this && (Cr.openInstance = null);
29193
29208
  }
@@ -29305,7 +29320,7 @@ const h3 = `<svg xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox
29305
29320
  this.value = {
29306
29321
  imageUrl: e,
29307
29322
  markers: i
29308
- }, this.previousImageDimensions = n, this.historyManager.initialize(i), this.updateUndoRedoButtons(), this.mainDisplayElements && or(this.mainDisplayElements, this.value), this.isPopoverOpen && this.refreshPopoverContent(), this.triggerChange();
29323
+ }, this.previousImageDimensions = n, this.historyManager.initialize(i), this.updateUndoRedoButtons(), this.mainDisplayElements && lr(this.mainDisplayElements, this.value), this.isPopoverOpen && this.refreshPopoverContent(), this.triggerChange();
29309
29324
  }, a.onerror = () => {
29310
29325
  Ea.show("Failed to load image from file manager.");
29311
29326
  }, a.src = e;
@@ -29338,7 +29353,7 @@ const h3 = `<svg xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox
29338
29353
  this.value = {
29339
29354
  imageUrl: s,
29340
29355
  markers: f
29341
- }, this.previousImageDimensions = c, this.historyManager.initialize(f), this.updateUndoRedoButtons(), this.mainDisplayElements && or(this.mainDisplayElements, this.value), this.isPopoverOpen && this.refreshPopoverContent(), this.triggerChange();
29356
+ }, this.previousImageDimensions = c, this.historyManager.initialize(f), this.updateUndoRedoButtons(), this.mainDisplayElements && lr(this.mainDisplayElements, this.value), this.isPopoverOpen && this.refreshPopoverContent(), this.triggerChange();
29342
29357
  }, l.onerror = () => {
29343
29358
  Ea.show("Failed to read image file.");
29344
29359
  }, l.src = s;
@@ -29364,7 +29379,7 @@ const h3 = `<svg xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox
29364
29379
  y: n,
29365
29380
  prizeName: s
29366
29381
  }, l = [...this.value.markers, o];
29367
- this.setMarkers(l), this.saveState(), this.refreshPopoverContent(), this.mainDisplayElements && or(this.mainDisplayElements, this.value), this.triggerChange();
29382
+ this.setMarkers(l), this.saveState(), this.refreshPopoverContent(), this.mainDisplayElements && lr(this.mainDisplayElements, this.value), this.triggerChange();
29368
29383
  }
29369
29384
  handleMarkerDrag(e) {
29370
29385
  var o;
@@ -29402,10 +29417,10 @@ const h3 = `<svg xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox
29402
29417
  handleDeleteMarker(e) {
29403
29418
  if (!this.value) return;
29404
29419
  const r = this.value.markers.filter((a) => a.id !== e);
29405
- this.setMarkers(r), this.saveState(), this.refreshPopoverContent(), this.mainDisplayElements && or(this.mainDisplayElements, this.value), this.triggerChange();
29420
+ this.setMarkers(r), this.saveState(), this.refreshPopoverContent(), this.mainDisplayElements && lr(this.mainDisplayElements, this.value), this.triggerChange();
29406
29421
  }
29407
29422
  handleClearAllMarkers() {
29408
- this.value && (this.setMarkers([]), this.saveState(), this.refreshPopoverContent(), this.mainDisplayElements && or(this.mainDisplayElements, this.value), this.triggerChange());
29423
+ this.value && (this.setMarkers([]), this.saveState(), this.refreshPopoverContent(), this.mainDisplayElements && lr(this.mainDisplayElements, this.value), this.triggerChange());
29409
29424
  }
29410
29425
  updateCursorTooltipContent() {
29411
29426
  if (!this.cursorTooltip || !this.value) return;
@@ -29424,12 +29439,12 @@ const h3 = `<svg xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox
29424
29439
  undo() {
29425
29440
  if (!this.value) return;
29426
29441
  const e = this.historyManager.undo();
29427
- e !== null && (this.isUndoRedoOperation = !0, this.setMarkers(e), this.refreshPopoverContent(), this.mainDisplayElements && or(this.mainDisplayElements, this.value), this.triggerChange(), this.isUndoRedoOperation = !1, this.updateUndoRedoButtons());
29442
+ e !== null && (this.isUndoRedoOperation = !0, this.setMarkers(e), this.refreshPopoverContent(), this.mainDisplayElements && lr(this.mainDisplayElements, this.value), this.triggerChange(), this.isUndoRedoOperation = !1, this.updateUndoRedoButtons());
29428
29443
  }
29429
29444
  redo() {
29430
29445
  if (!this.value) return;
29431
29446
  const e = this.historyManager.redo();
29432
- e !== null && (this.isUndoRedoOperation = !0, this.setMarkers(e), this.refreshPopoverContent(), this.mainDisplayElements && or(this.mainDisplayElements, this.value), this.triggerChange(), this.isUndoRedoOperation = !1, this.updateUndoRedoButtons());
29447
+ e !== null && (this.isUndoRedoOperation = !0, this.setMarkers(e), this.refreshPopoverContent(), this.mainDisplayElements && lr(this.mainDisplayElements, this.value), this.triggerChange(), this.isUndoRedoOperation = !1, this.updateUndoRedoButtons());
29433
29448
  }
29434
29449
  updateUndoRedoButtons() {
29435
29450
  if (!this.popoverElements) return;
@@ -29552,7 +29567,7 @@ const m3 = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewB
29552
29567
  <polyline points="6 9 12 15 18 9"></polyline>
29553
29568
  </svg>
29554
29569
  `;
29555
- class U3 extends Ae {
29570
+ class W3 extends Ae {
29556
29571
  constructor(e = {}) {
29557
29572
  if (super(e), this.inputType = "select", this._options = [], this.isOpen = !1, this.selectedOptionIndex = null, this.optionsListEl = null, this.svgContainer = null, this.buttonEl = null, this.isLoading = !1, this.container = null, this.hasInitializedOptions = !1, this.selectedOptionIndex = null, e.default !== void 0 && (this.value = e.default), this.initializeOptions(e), !e.getOptionsAsync && this.value !== void 0) {
29558
29573
  const r = this._options.findIndex(
@@ -29703,7 +29718,7 @@ class U3 extends Ae {
29703
29718
  ), this.updateButtonText(), this.updateOptionsList(), this.detectChangeCallback && this.detectChangeCallback !== this.props.detectChange && this.detectChangeCallback(e);
29704
29719
  }
29705
29720
  }
29706
- class W3 extends Ae {
29721
+ class $3 extends Ae {
29707
29722
  constructor(e) {
29708
29723
  var r, a;
29709
29724
  super(e), this.inputType = "text", this.value = e.default ?? ((a = (r = e.options) == null ? void 0 : r[0]) == null ? void 0 : a.value) ?? "", this.detectChangeCallback = e.detectChange;
@@ -29756,7 +29771,7 @@ class W3 extends Ae {
29756
29771
  const x3 = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
29757
29772
  <path d="M13.3334 5.99996H2.66675M13.3334 9.99996H2.66675M5.33341 12.6666V3.33329M10.6667 12.6666V3.33329" stroke="#667085" strokeWidth="1.33333" strokeLinecap="round" strokeLinejoin="round"/>
29758
29773
  </svg>`;
29759
- class $3 extends Ae {
29774
+ class G3 extends Ae {
29760
29775
  // Store mobile value
29761
29776
  constructor(e = {}) {
29762
29777
  e.rowGap = e.rowGap ?? !0, e.columnGap = e.columnGap ?? !0, e.title = e.title ?? "Gap", e.icon = e.icon ?? x3, e.suffix = e.suffix ?? "px", e.minValue = e.minValue ?? 0, super(e), this.inputType = "number", this.inputValues = {}, this.mobileValue = e.mobile, this.value = this.validateValue(e.default ?? 0), e.rowGap && (this.inputValues.row = this.value), e.columnGap && (this.inputValues.column = this.value);
@@ -29813,7 +29828,7 @@ class $3 extends Ae {
29813
29828
  const v3 = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
29814
29829
  <path d="M2.25 11.75H15.75M5.85 2.75H12.15C13.4101 2.75 14.0402 2.75 14.5215 2.99524C14.9448 3.21095 15.289 3.55516 15.5048 3.97852C15.75 4.45982 15.75 5.08988 15.75 6.35V12.65C15.75 13.9101 15.75 14.5402 15.5048 15.0215C15.289 15.4448 14.9448 15.789 14.5215 16.0048C14.0402 16.25 13.4101 16.25 12.15 16.25H5.85C4.58988 16.25 3.95982 16.25 3.47852 16.0048C3.05516 15.789 2.71095 15.4448 2.49524 15.0215C2.25 14.5402 2.25 13.9101 2.25 12.65V6.35C2.25 5.08988 2.25 4.45982 2.49524 3.97852C2.71095 3.55516 3.05516 3.21095 3.47852 2.99524C3.95982 2.75 4.58988 2.75 5.85 2.75Z" stroke="#667085" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round"/>
29815
29830
  </svg>`;
29816
- class G3 extends pr {
29831
+ class z3 extends pr {
29817
29832
  constructor(e = {}) {
29818
29833
  super({
29819
29834
  ...e,
@@ -29830,7 +29845,7 @@ const w3 = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewB
29830
29845
  <path d="M15.75 7.25H2.25m9.9 9h-6.3c-1.26 0-1.89 0-2.371-.245a2.25 2.25 0 0 1-.984-.983c-.245-.482-.245-1.112-.245-2.372v-6.3c0-1.26 0-1.89.245-2.371a2.25 2.25 0 0 1 .984-.984c.48-.245 1.11-.245 2.371-.245h6.3c1.26 0 1.89 0 2.371.245.424.216.768.56.984.984.245.48.245 1.11.245 2.371v6.3c0 1.26 0 1.89-.245 2.371-.216.424-.56.768-.984.984-.48.245-1.11.245-2.371.245"
29831
29846
  stroke="#667085" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round"/>
29832
29847
  </svg>`;
29833
- class z3 extends pr {
29848
+ class X3 extends pr {
29834
29849
  constructor(e = {}) {
29835
29850
  super({
29836
29851
  ...e,
@@ -30631,7 +30646,7 @@ const Zt = class Zt extends Ae {
30631
30646
  };
30632
30647
  Zt.instances = /* @__PURE__ */ new Map(), Zt.messageListeners = /* @__PURE__ */ new Map();
30633
30648
  let Ca = Zt;
30634
- class X3 {
30649
+ class j3 {
30635
30650
  constructor(e = {}) {
30636
30651
  this.container = null, this.options = e;
30637
30652
  }
@@ -30696,7 +30711,7 @@ class X3 {
30696
30711
  return Ca.getAllInstances().size;
30697
30712
  }
30698
30713
  }
30699
- class j3 extends Ae {
30714
+ class K3 extends Ae {
30700
30715
  constructor(e = {}) {
30701
30716
  super(e), this.inputType = "select";
30702
30717
  const r = [
@@ -30732,7 +30747,7 @@ const b3 = `
30732
30747
  <path d="M6 2.75H5.85C4.58988 2.75 3.95982 2.75 3.47852 2.99524C3.05516 3.21095 2.71095 3.55516 2.49524 3.97852C2.25 4.45982 2.25 5.08988 2.25 6.35V6.5M6 16.25H5.85C4.58988 16.25 3.95982 16.25 3.47852 16.0048C3.05516 15.789 2.71095 15.4448 2.49524 15.0215C2.25 14.5402 2.25 13.9101 2.25 12.65V12.5M15.75 6.5V6.35C15.75 5.08988 15.75 4.45982 15.5048 3.97852C15.289 3.55516 14.9448 3.21095 14.5215 2.99524C14.0402 2.75 13.4101 2.75 12.15 2.75H12M15.75 12.5V12.65C15.75 13.9101 15.75 14.5402 15.5048 15.0215C15.289 15.4448 14.9448 15.789 14.5215 16.0048C14.0402 16.25 13.4101 16.25 12.15 16.25H12" stroke="#667085" strokeLinecap="round" strokeLinejoin="round"/>
30733
30748
  </svg>
30734
30749
  `;
30735
- class K3 extends dr {
30750
+ class Y3 extends nr {
30736
30751
  constructor(e) {
30737
30752
  super({
30738
30753
  title: "Border",
@@ -30787,7 +30802,7 @@ const L3 = `
30787
30802
  <path d="M6 5.75H12M9 5.75V13.25M5.85 16.25H12.15C13.4101 16.25 14.0402 16.25 14.5215 16.0048C14.9448 15.789 15.289 15.4448 15.5048 15.0215C15.75 14.5402 15.75 13.9101 15.75 12.65V6.35C15.75 5.08988 15.75 4.45982 15.5048 3.97852C15.289 3.55516 14.9448 3.21095 14.5215 2.99524C14.0402 2.75 13.4101 2.75 12.15 2.75H5.85C4.58988 2.75 3.95982 2.75 3.47852 2.99524C3.05516 3.21095 2.71095 3.55516 2.49524 3.97852C2.25 4.45982 2.25 5.08988 2.25 6.35V12.65C2.25 13.9101 2.25 14.5402 2.49524 15.0215C2.71095 15.4448 3.05516 15.789 3.47852 16.0048C3.95982 16.25 4.58988 16.25 5.85 16.25Z" stroke="#667085" strokeLinecap="round" strokeLinejoin="round"/>
30788
30803
  </svg>
30789
30804
  `;
30790
- class Y3 extends dr {
30805
+ class J3 extends nr {
30791
30806
  constructor(e = {}) {
30792
30807
  const { showAlign: r = e.showAlign ?? !0, ...a } = e;
30793
30808
  super({
@@ -30912,7 +30927,7 @@ class Dn extends Ae {
30912
30927
  }), a;
30913
30928
  }
30914
30929
  }
30915
- class J3 extends dr {
30930
+ class q3 extends nr {
30916
30931
  constructor(e) {
30917
30932
  super({
30918
30933
  title: "Margins",
@@ -30964,7 +30979,7 @@ const N3 = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewB
30964
30979
  </svg>`, P3 = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
30965
30980
  <path d="M5.625 2.75H5.6325M5.625 9.5H5.6325M5.625 16.25H5.6325M12.375 2.75H12.3825M12.375 9.5H12.3825M12.375 16.25H12.3825M9 2.75H9.0075M9 9.5H9.0075M9 16.25H9.0075M9 12.875H9.0075M9 6.125H9.0075M15.75 2.75H15.7575M15.75 9.5H15.7575M15.75 16.25H15.7575M15.75 12.875H15.7575M15.75 6.125H15.7575M2.25 16.25V2.75" stroke="#667085" strokeLinecap="round" strokeLinejoin="round"/>
30966
30981
  </svg>`;
30967
- class q3 extends dr {
30982
+ class Z3 extends nr {
30968
30983
  constructor(e) {
30969
30984
  super({
30970
30985
  title: "Background Image",
@@ -31003,7 +31018,7 @@ class q3 extends dr {
31003
31018
  `;
31004
31019
  }
31005
31020
  }
31006
- class Z3 extends dr {
31021
+ class Q3 extends nr {
31007
31022
  constructor(e) {
31008
31023
  super({
31009
31024
  title: (e == null ? void 0 : e.title) ?? "Image",
@@ -31027,42 +31042,43 @@ class Z3 extends dr {
31027
31042
  }
31028
31043
  export {
31029
31044
  _4 as AlignSetting,
31030
- j3 as AnimationSetting,
31031
- q3 as BackgroundSettingSet,
31032
- K3 as BorderSettingSet,
31033
- V3 as ButtonSetting,
31034
- fr as ColorSetting,
31045
+ K3 as AnimationSetting,
31046
+ Z3 as BackgroundSettingSet,
31047
+ Y3 as BorderSettingSet,
31048
+ H3 as ButtonSetting,
31049
+ hr as ColorSetting,
31035
31050
  wa as ColorWithOpacitySetting,
31036
- H3 as DimensionSetting,
31051
+ U3 as DimensionSetting,
31037
31052
  Pn as ExcelRulesService,
31038
31053
  x0 as ExcelTranslationService,
31039
- $3 as GapSetting,
31054
+ G3 as GapSetting,
31040
31055
  Fa as GradientSetting,
31041
- Y3 as HeaderTypographySettingSet,
31056
+ J3 as HeaderTypographySettingSet,
31042
31057
  u3 as HeightSetting,
31043
- B3 as HtmlSetting,
31058
+ V3 as HtmlSetting,
31044
31059
  m0 as ImageMapSetting,
31045
- Z3 as ImageSettingSet,
31046
- G3 as MarginBottomSetting,
31047
- J3 as MarginSettingGroup,
31048
- z3 as MarginTopSetting,
31060
+ Q3 as ImageSettingSet,
31061
+ z3 as MarginBottomSetting,
31062
+ q3 as MarginSettingGroup,
31063
+ X3 as MarginTopSetting,
31049
31064
  Ca as MultiLanguageSetting,
31050
31065
  pr as NumberSetting,
31051
31066
  y4 as OpacitySetting,
31052
- U3 as SelectApiSettings,
31067
+ D3 as RootSettingGroup,
31068
+ W3 as SelectApiSettings,
31053
31069
  Zi as SelectSetting,
31054
31070
  Ae as Setting,
31055
- dr as SettingGroup,
31071
+ nr as SettingGroup,
31056
31072
  v4 as StringSetting,
31057
31073
  g4 as TabSettingGroup,
31058
31074
  g4 as TabsSettingGroup,
31059
- W3 as Toggle,
31060
- X3 as TranslationManager,
31075
+ $3 as Toggle,
31076
+ j3 as TranslationManager,
31061
31077
  ai as UploadSetting,
31062
31078
  p3 as WidthSetting,
31063
- R3 as asSettingGroupWithSettings,
31079
+ B3 as asSettingGroupWithSettings,
31064
31080
  x4 as createSettingGroup,
31065
- D3 as createTabSettingGroup,
31081
+ R3 as createTabSettingGroup,
31066
31082
  Er as isSetting,
31067
31083
  vi as isSettingChild,
31068
31084
  $e as isSettingGroup,