@gisce/react-ooui 2.123.0-alpha.11 → 2.123.0-alpha.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4842,21 +4842,27 @@ const Vp = ({
4842
4842
  fixedHeight: a
4843
4843
  }
4844
4844
  );
4845
- }, Ui = (t) => typeof t == "string" && t === "true" || t === "false" ? t === "true" : t, Bp = (t) => {
4846
- const e = {};
4847
- t.forEach((i, a) => {
4848
- if (Array.isArray(i) && i.length === 3) {
4849
- const [d, c, l] = i;
4850
- (c === ">=" || c === "<=") && (e[d] || (e[d] = { index: {} }), c === ">=" ? (e[d].gte = l, e[d].index.gte = a) : (e[d].lte = l, e[d].index.lte = a));
4845
+ }, Ui = (t) => typeof t == "string" && t === "true" || t === "false" ? t === "true" : t, Bp = (t, e) => {
4846
+ const n = {};
4847
+ t.forEach((a, d) => {
4848
+ if (Array.isArray(a) && a.length === 3) {
4849
+ const [c, l, f] = a;
4850
+ (l === ">=" || l === "<=") && (n[c] || (n[c] = { index: {} }), l === ">=" ? (n[c].gte = f, n[c].index.gte = d) : (n[c].lte = f, n[c].index.lte = d));
4851
4851
  }
4852
4852
  });
4853
- const n = [], r = [];
4854
- return Object.entries(e).forEach(([i, { gte: a, lte: d, index: c }]) => {
4855
- a !== void 0 && d !== void 0 && a === d && (r.push({ index: c.gte, param: [i, "=", a] }), n.push(c.lte));
4856
- }), t.map((i, a) => {
4857
- const d = r.find((c) => c.index === a);
4858
- return d ? d.param : i;
4859
- }).filter((i, a) => !n.includes(a));
4853
+ const r = [], o = [];
4854
+ return Object.entries(n).forEach(([a, { gte: d, lte: c, index: l }]) => {
4855
+ var f;
4856
+ if (d !== void 0 && c !== void 0 && d === c) {
4857
+ const u = (f = e == null ? void 0 : e.findById(a)) == null ? void 0 : f.type;
4858
+ if (u === "date" || u === "datetime")
4859
+ return;
4860
+ o.push({ index: l.gte, param: [a, "=", d] }), r.push(l.lte);
4861
+ }
4862
+ }), t.map((a, d) => {
4863
+ const c = o.find((l) => l.index === d);
4864
+ return c ? c.param : a;
4865
+ }).filter((a, d) => !r.includes(d));
4860
4866
  }, Mr = (t, e, n) => {
4861
4867
  const r = Yp(t), o = Wp(r), i = zp(
4862
4868
  o,
@@ -4869,7 +4875,7 @@ const Vp = ({
4869
4875
  n
4870
4876
  ))
4871
4877
  ].reduce((c, l) => Array.isArray(l[0]) ? c.concat(l) : [...c, l], []);
4872
- return Bp(d);
4878
+ return Bp(d, e);
4873
4879
  }, Hp = (t, e, n, r) => {
4874
4880
  var f;
4875
4881
  const o = t.split("#")[0], i = n.findById(o), a = i == null ? void 0 : i.type, d = (f = i == null ? void 0 : i.raw_props) == null ? void 0 : f.widget, c = i == null ? void 0 : i.fieldType;
@@ -25381,4 +25387,4 @@ export {
25381
25387
  Wm as y,
25382
25388
  GC as z
25383
25389
  };
25384
- //# sourceMappingURL=TabContent-9432be40.mjs.map
25390
+ //# sourceMappingURL=TabContent-3e3defb5.mjs.map