@gisce/react-ooui 1.4.7-rc.2 → 1.4.7-rc.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.
@@ -1512,6 +1512,12 @@ function It({
1512
1512
  };
1513
1513
  return e.sort(l);
1514
1514
  }
1515
+ function _a(e) {
1516
+ for (const t in e)
1517
+ if (Object.prototype.hasOwnProperty.call(e, t) && e[t] !== void 0)
1518
+ return !0;
1519
+ return !1;
1520
+ }
1515
1521
  const zn = async (e) => {
1516
1522
  var p;
1517
1523
  const {
@@ -1564,10 +1570,10 @@ const zn = async (e) => {
1564
1570
  }).concat(l),
1565
1571
  d
1566
1572
  ];
1567
- }, _a = (e) => {
1573
+ }, Ia = (e) => {
1568
1574
  const t = e.filter((r) => r.id && r.id < 0).map((r) => r.id);
1569
1575
  return t.length === 0 ? -1 : Math.min(...t) - 1;
1570
- }, Ia = (e, t) => {
1576
+ }, Da = (e, t) => {
1571
1577
  const r = {};
1572
1578
  return Object.keys(e).forEach((i) => {
1573
1579
  var o;
@@ -1575,7 +1581,7 @@ const zn = async (e) => {
1575
1581
  (s) => s.operation !== "pendingRemove"
1576
1582
  ) : r[i] = e[i];
1577
1583
  }), r;
1578
- }, Da = (e) => {
1584
+ }, Va = (e) => {
1579
1585
  const {
1580
1586
  ooui: t
1581
1587
  } = e, {
@@ -1614,12 +1620,12 @@ const zn = async (e) => {
1614
1620
  }) : /* @__PURE__ */ n(ve, {
1615
1621
  type: "array",
1616
1622
  ...e,
1617
- children: /* @__PURE__ */ n(Va, {
1623
+ children: /* @__PURE__ */ n(Aa, {
1618
1624
  ooui: t,
1619
1625
  views: c
1620
1626
  })
1621
1627
  });
1622
- }, Va = (e) => {
1628
+ }, Aa = (e) => {
1623
1629
  const {
1624
1630
  value: t,
1625
1631
  views: r,
@@ -1730,21 +1736,21 @@ const zn = async (e) => {
1730
1736
  })]
1731
1737
  });
1732
1738
  }, {
1733
- useToken: Aa
1734
- } = Pe, Ra = (e) => {
1739
+ useToken: Ra
1740
+ } = Pe, ka = (e) => {
1735
1741
  const {
1736
1742
  ooui: t
1737
1743
  } = e;
1738
1744
  return /* @__PURE__ */ n(ve, {
1739
1745
  ooui: t,
1740
- children: /* @__PURE__ */ n(ka, {
1746
+ children: /* @__PURE__ */ n(Ma, {
1741
1747
  ooui: t
1742
1748
  })
1743
1749
  });
1744
- }, ka = (e) => {
1750
+ }, Ma = (e) => {
1745
1751
  const {
1746
1752
  token: t
1747
- } = Aa(), {
1753
+ } = Ra(), {
1748
1754
  ooui: r,
1749
1755
  value: i
1750
1756
  } = e, o = /* @__PURE__ */ P(ne, {
@@ -1771,7 +1777,7 @@ const zn = async (e) => {
1771
1777
  return r.card ? /* @__PURE__ */ n(ei, {
1772
1778
  children: l
1773
1779
  }) : l;
1774
- }, Ma = (e, t) => {
1780
+ }, Ea = (e, t) => {
1775
1781
  if (!t)
1776
1782
  return e;
1777
1783
  const r = {};
@@ -1785,7 +1791,7 @@ const zn = async (e) => {
1785
1791
  } else
1786
1792
  r[i] = e[i];
1787
1793
  }), r;
1788
- }, Ot = (e, t) => Ma(e, t), Sn = ({
1794
+ }, Ot = (e, t) => Ea(e, t), Sn = ({
1789
1795
  source: e,
1790
1796
  target: t,
1791
1797
  fields: r
@@ -1818,7 +1824,7 @@ const zn = async (e) => {
1818
1824
  else
1819
1825
  e[o] !== t[o] && (t[o] === void 0 ? i[o] = null : i[o] = t[o]);
1820
1826
  }), i;
1821
- }, Ea = ({
1827
+ }, $a = ({
1822
1828
  changedFields: e,
1823
1829
  formOoui: t,
1824
1830
  types: r
@@ -1826,7 +1832,7 @@ const zn = async (e) => {
1826
1832
  var a;
1827
1833
  const s = (a = t == null ? void 0 : t.findById(o)) == null ? void 0 : a.type;
1828
1834
  return r.includes(s);
1829
- }).some((o) => o === !0), $a = ({
1835
+ }).some((o) => o === !0), La = ({
1830
1836
  fieldsDomain: e,
1831
1837
  fields: t
1832
1838
  }) => {
@@ -1834,12 +1840,12 @@ const zn = async (e) => {
1834
1840
  return Object.keys(t).forEach((i) => {
1835
1841
  r[i] = t[i], e[i] && (r[i].domain = e[i]);
1836
1842
  }), r;
1837
- }, La = (e) => {
1843
+ }, Na = (e) => {
1838
1844
  const t = {};
1839
1845
  return !e || !Array.isArray(e) || (e == null ? void 0 : e.length) === 0 ? {} : (e.forEach((r) => {
1840
1846
  (r == null ? void 0 : r[1]) === "=" && (t[r[0]] = r[2]);
1841
1847
  }), t);
1842
- }, Na = ({
1848
+ }, Pa = ({
1843
1849
  onChangeFieldActionArgs: e,
1844
1850
  values: t,
1845
1851
  parentValues: r = {}
@@ -1900,7 +1906,7 @@ const Mt = ({
1900
1906
  r += ("00" + i.toString(16)).slice(-2);
1901
1907
  }
1902
1908
  return r;
1903
- }, Pa = (e, t) => e.replace(/\{([^}]+)\}/g, (r, i) => t[i] !== void 0 ? t[i] : r), Ha = (e) => /* @__PURE__ */ n(ve, {
1909
+ }, Ha = (e, t) => e.replace(/\{([^}]+)\}/g, (r, i) => t[i] !== void 0 ? t[i] : r), Ba = (e) => /* @__PURE__ */ n(ve, {
1904
1910
  ...e,
1905
1911
  children: /* @__PURE__ */ n(uo, {
1906
1912
  ...e
@@ -1933,18 +1939,18 @@ const Mt = ({
1933
1939
  color: t,
1934
1940
  children: e.children
1935
1941
  });
1936
- }, Ba = (e) => {
1942
+ }, ja = (e) => {
1937
1943
  const {
1938
1944
  ooui: t
1939
1945
  } = e;
1940
1946
  return /* @__PURE__ */ n(ve, {
1941
1947
  type: "array",
1942
1948
  ...e,
1943
- children: /* @__PURE__ */ n(ja, {
1949
+ children: /* @__PURE__ */ n(Ka, {
1944
1950
  ooui: t
1945
1951
  })
1946
1952
  });
1947
- }, ja = (e) => {
1953
+ }, Ka = (e) => {
1948
1954
  const {
1949
1955
  value: t,
1950
1956
  ooui: r,
@@ -2062,14 +2068,14 @@ const Mt = ({
2062
2068
  })
2063
2069
  })
2064
2070
  });
2065
- }, Ka = (e) => {
2071
+ }, Ya = (e) => {
2066
2072
  switch (e) {
2067
2073
  case "form":
2068
2074
  return Ut;
2069
2075
  case "tree":
2070
2076
  return pn;
2071
2077
  case "notebook":
2072
- return Hc;
2078
+ return Bc;
2073
2079
  case "group":
2074
2080
  return Do;
2075
2081
  case "label":
@@ -2077,7 +2083,7 @@ const Mt = ({
2077
2083
  case "char":
2078
2084
  return Qr;
2079
2085
  case "text":
2080
- return jc;
2086
+ return Kc;
2081
2087
  case "button":
2082
2088
  return Jr;
2083
2089
  case "buttonGroup":
@@ -2085,7 +2091,7 @@ const Mt = ({
2085
2091
  case "selection":
2086
2092
  return eo;
2087
2093
  case "many2one":
2088
- return ac;
2094
+ return lc;
2089
2095
  case "boolean":
2090
2096
  return ws;
2091
2097
  case "integer":
@@ -2093,69 +2099,69 @@ const Mt = ({
2093
2099
  case "float":
2094
2100
  return po;
2095
2101
  case "progressbar":
2096
- return $l;
2102
+ return Ll;
2097
2103
  case "date":
2098
- return ed;
2099
- case "datetime":
2100
2104
  return td;
2105
+ case "datetime":
2106
+ return nd;
2101
2107
  case "time":
2102
- return rd;
2108
+ return od;
2103
2109
  case "one2many":
2104
2110
  case "one2many_list":
2105
2111
  case "many2many":
2106
- return Ec;
2112
+ return $c;
2107
2113
  case "separator":
2108
- return Yc;
2114
+ return Wc;
2109
2115
  case "reference":
2110
- return id;
2116
+ return sd;
2111
2117
  case "binary":
2112
- return ld;
2118
+ return cd;
2113
2119
  case "image":
2114
2120
  return Ca;
2115
2121
  case "url":
2116
- return yd;
2117
- case "email":
2118
2122
  return vd;
2123
+ case "email":
2124
+ return wd;
2119
2125
  case "float_time":
2120
- return Lc;
2126
+ return Nc;
2121
2127
  case "fiber_grid":
2122
2128
  return Ta;
2123
2129
  case "timeline":
2124
- return Da;
2130
+ return Va;
2125
2131
  case "indicator":
2126
- return Ra;
2132
+ return ka;
2127
2133
  case "tags":
2128
- return Ba;
2134
+ return ja;
2129
2135
  case "tag":
2130
- return Ha;
2136
+ return Ba;
2131
2137
  case "multicheckbox":
2132
- return Gd;
2138
+ return qd;
2133
2139
  case "markdown":
2134
- return zd;
2140
+ return Jd;
2135
2141
  case "radio":
2136
- return Zd;
2142
+ return Xd;
2137
2143
  case "switch":
2138
- return Qd;
2144
+ return eu;
2139
2145
  case "steps":
2140
- return tu;
2146
+ return nu;
2141
2147
  case "codeeditor":
2142
- return ru;
2148
+ return ou;
2143
2149
  default:
2144
2150
  return;
2145
2151
  }
2146
- }, Ya = (e) => {
2152
+ }, Wa = (e) => {
2147
2153
  const {
2148
2154
  ooui: t
2149
2155
  } = e, {
2150
2156
  type: r
2151
- } = t, i = Ka(r);
2157
+ } = t, i = Ya(r);
2152
2158
  return i ? Je.createElement(i, e) : null;
2153
- }, Wa = ({
2159
+ }, Ua = ({
2154
2160
  item: e,
2155
2161
  responsiveBehaviour: t
2156
2162
  }) => ({
2157
2163
  gridColumnStart: "span " + (t ? 1 : e.colspan)
2158
- }), Ua = ({
2164
+ }), Ga = ({
2159
2165
  row: e,
2160
2166
  mustFillWithEmpties: t,
2161
2167
  numberOfColumns: r
@@ -2174,10 +2180,10 @@ const Mt = ({
2174
2180
  i.push(new At({ string: "" }));
2175
2181
  }
2176
2182
  }), i;
2177
- }, Ga = ({
2183
+ }, qa = ({
2178
2184
  row: e,
2179
2185
  numberOfColumns: t
2180
- }) => e.map((r) => (r._mustExpand && (r.colspan = t), r)), qa = (e, t) => {
2186
+ }) => e.map((r) => (r._mustExpand && (r.colspan = t), r)), za = (e, t) => {
2181
2187
  const r = e.map((i) => i instanceof At && i.fieldForLabel || i instanceof ui ? "auto" : "1fr");
2182
2188
  if (r.length < t) {
2183
2189
  const i = t - r.length;
@@ -2185,13 +2191,13 @@ const Mt = ({
2185
2191
  r.push("1fr");
2186
2192
  }
2187
2193
  return r.join(" ");
2188
- }, za = (e, t) => {
2194
+ }, Ja = (e, t) => {
2189
2195
  const r = t ? "1fr" : "auto", i = "auto";
2190
2196
  let o = "";
2191
2197
  for (let s = 0; s < e; s++)
2192
2198
  o += s % 2 ? r : i, s + 1 < e && (o += " ");
2193
2199
  return o;
2194
- }, Ja = (e) => e.map((r) => r.reduce((i, o) => i + o.colspan, 0)).reduce((r, i) => Math.max(r, i)), Vn = (e) => {
2200
+ }, Za = (e) => e.map((r) => r.reduce((i, o) => i + o.colspan, 0)).reduce((r, i) => Math.max(r, i)), Vn = (e) => {
2195
2201
  const {
2196
2202
  container: t,
2197
2203
  responsiveBehaviour: r
@@ -2201,33 +2207,33 @@ const Mt = ({
2201
2207
  let {
2202
2208
  columns: o
2203
2209
  } = t;
2204
- const s = Ja(i);
2210
+ const s = Za(i);
2205
2211
  s < o && (o = s);
2206
2212
  let a = !1, l = [];
2207
2213
  const u = i.map((d, m) => {
2208
- const y = d.filter((g) => !g.invisible), p = Ga({
2214
+ const y = d.filter((g) => !g.invisible), p = qa({
2209
2215
  row: y,
2210
2216
  numberOfColumns: o
2211
2217
  });
2212
2218
  let h = p;
2213
- return (m === 0 || !(d.length === 1 && d.some((g) => g.type === "group"))) && (h = Ua({
2219
+ return (m === 0 || !(d.length === 1 && d.some((g) => g.type === "group"))) && (h = Ga({
2214
2220
  row: p,
2215
2221
  numberOfColumns: o,
2216
2222
  mustFillWithEmpties: r
2217
2223
  }), l = l.concat(h)), h.map((g) => (g instanceof At && g.fieldForLabel && (a = !0), /* @__PURE__ */ n("div", {
2218
2224
  style: {
2219
- ...Wa({
2225
+ ...Ua({
2220
2226
  item: g,
2221
2227
  responsiveBehaviour: r
2222
2228
  }),
2223
2229
  minWidth: 0
2224
2230
  },
2225
- children: Ya({
2231
+ children: Wa({
2226
2232
  ooui: g,
2227
2233
  responsiveBehaviour: r
2228
2234
  })
2229
2235
  }, g.key)));
2230
- }), c = i.length === 1 ? qa(l, o) : za(o, a);
2236
+ }), c = i.length === 1 ? za(l, o) : Ja(o, a);
2231
2237
  return /* @__PURE__ */ n("div", {
2232
2238
  style: {
2233
2239
  display: "grid",
@@ -2239,13 +2245,13 @@ const Mt = ({
2239
2245
  children: u
2240
2246
  });
2241
2247
  }, {
2242
- confirm: Za
2248
+ confirm: Xa
2243
2249
  } = Ge, Wt = ({
2244
2250
  onOk: e,
2245
2251
  onCancel: t,
2246
2252
  lang: r
2247
2253
  }) => {
2248
- Za({
2254
+ Xa({
2249
2255
  title: Oe("unsavedChanges", r),
2250
2256
  icon: /* @__PURE__ */ n(pt, {}),
2251
2257
  centered: !0,
@@ -2256,25 +2262,25 @@ const Mt = ({
2256
2262
  cancelText: Oe("cancel", r)
2257
2263
  });
2258
2264
  }, {
2259
- error: Xa
2265
+ error: Qa
2260
2266
  } = Ge, vr = (e) => {
2261
- Xa({
2267
+ Qa({
2262
2268
  title: Oe("formHasErrors", e),
2263
2269
  icon: /* @__PURE__ */ n(pt, {}),
2264
2270
  centered: !0,
2265
2271
  content: Oe("fillRequiredFields", e)
2266
2272
  });
2267
2273
  }, {
2268
- warning: Qa
2269
- } = Ge, el = (e, t, r) => {
2270
- Qa({
2274
+ warning: el
2275
+ } = Ge, tl = (e, t, r) => {
2276
+ el({
2271
2277
  title: e,
2272
2278
  icon: /* @__PURE__ */ n(Nr, {}),
2273
2279
  centered: !0,
2274
2280
  content: t,
2275
2281
  onOk: r
2276
2282
  });
2277
- }, mo = Je.createContext(null), tl = (e) => {
2283
+ }, mo = Je.createContext(null), nl = (e) => {
2278
2284
  const {
2279
2285
  children: t,
2280
2286
  setTitle: r
@@ -2285,12 +2291,12 @@ const Mt = ({
2285
2291
  },
2286
2292
  children: t
2287
2293
  });
2288
- }, wr = (e) => typeof e == "string" && e === "true" || e === "false" ? e === "true" : e, nl = (e, t) => {
2289
- const r = ll(e), i = sl(r), o = al(i, t);
2294
+ }, wr = (e) => typeof e == "string" && e === "true" || e === "false" ? e === "true" : e, rl = (e, t) => {
2295
+ const r = cl(e), i = al(r), o = ll(i, t);
2290
2296
  return [
2291
- ...Object.keys(o).map((l) => rl(l, o[l], t))
2297
+ ...Object.keys(o).map((l) => ol(l, o[l], t))
2292
2298
  ].reduce((l, u) => Array.isArray(u[0]) ? l.concat(u) : [...l, u], []);
2293
- }, rl = (e, t, r) => {
2299
+ }, ol = (e, t, r) => {
2294
2300
  var s;
2295
2301
  const i = e.split("#")[0], o = (s = r.findById(i)) == null ? void 0 : s.type;
2296
2302
  if (o === "char" || o === "text" || o === "many2one" || o === "many2many" || o === "one2many")
@@ -2312,14 +2318,14 @@ const Mt = ({
2312
2318
  (a) => wr(a)
2313
2319
  )
2314
2320
  ] : [e, "=", wr(t)];
2315
- }, ol = (e) => Object.keys(e).filter((t) => t.indexOf("#date") !== -1), il = (e) => {
2321
+ }, il = (e) => Object.keys(e).filter((t) => t.indexOf("#date") !== -1), sl = (e) => {
2316
2322
  const t = { ...e };
2317
2323
  return Object.keys(t).forEach(
2318
2324
  (r) => (r.indexOf("#time") !== -1 || r.indexOf("#date") !== -1) && delete t[r]
2319
2325
  ), t;
2320
- }, sl = (e) => {
2321
- const t = { ...il(e) };
2322
- return ol(e).forEach((i) => {
2326
+ }, al = (e) => {
2327
+ const t = { ...sl(e) };
2328
+ return il(e).forEach((i) => {
2323
2329
  const o = e[i], s = i.split("#")[0], a = s + "#time", l = e[a];
2324
2330
  let u, c;
2325
2331
  if (o[0] !== null && (u = o[0].format("YYYY-MM-DD"), l && l[0] !== null)) {
@@ -2332,7 +2338,7 @@ const Mt = ({
2332
2338
  }
2333
2339
  t[s + "#datetime"] = [u, c];
2334
2340
  }), t;
2335
- }, al = (e, t) => {
2341
+ }, ll = (e, t) => {
2336
2342
  const r = Object.keys(e).filter((o) => {
2337
2343
  const s = t.findById(o);
2338
2344
  return s && s.type === "date";
@@ -2341,18 +2347,18 @@ const Mt = ({
2341
2347
  return r.forEach((o) => {
2342
2348
  delete i[o], e[o][0] !== null && (i[o + "#from"] = e[o][0]), e[o][1] !== null && (i[o + "#to"] = e[o][1]);
2343
2349
  }), i;
2344
- }, ll = (e) => {
2350
+ }, cl = (e) => {
2345
2351
  const t = { ...e };
2346
2352
  return Object.keys(t).forEach(
2347
2353
  (r) => (t[r] === void 0 || t[r] === null || t[r] === "") && delete t[r]
2348
2354
  ), t;
2349
- }, cl = (e) => {
2355
+ }, dl = (e) => {
2350
2356
  const t = {};
2351
2357
  return e.forEach((r) => {
2352
2358
  Array.isArray(r) && r[0] ? t[r[0]] = !0 : t[r] = !0;
2353
2359
  }), Object.keys(t);
2354
2360
  }, hn = (e, t) => {
2355
- const r = [...e], i = cl(e);
2361
+ const r = [...e], i = dl(e);
2356
2362
  return t.forEach((o) => {
2357
2363
  Array.isArray(o) && o[0] ? i.includes(o[0]) || r.push(o) : i.includes(o) || r.push(o);
2358
2364
  }), r;
@@ -2581,7 +2587,7 @@ const Mt = ({
2581
2587
  statusForResults: U,
2582
2588
  totalItems: N
2583
2589
  };
2584
- }, Qe = Je.createContext(null), dl = (e) => {
2590
+ }, Qe = Je.createContext(null), ul = (e) => {
2585
2591
  const {
2586
2592
  children: t,
2587
2593
  currentView: r,
@@ -2678,7 +2684,7 @@ const Mt = ({
2678
2684
  },
2679
2685
  children: t
2680
2686
  });
2681
- }, st = Je.createContext(null), ul = (e) => {
2687
+ }, st = Je.createContext(null), fl = (e) => {
2682
2688
  const {
2683
2689
  children: t,
2684
2690
  openAction: r,
@@ -2711,7 +2717,7 @@ const Mt = ({
2711
2717
  var t;
2712
2718
  for (let r = 0; r < e.length; r++)
2713
2719
  await ((t = e == null ? void 0 : e[r]) == null ? void 0 : t.call(e));
2714
- }, fl = (e, t) => {
2720
+ }, ml = (e, t) => {
2715
2721
  const {
2716
2722
  children: r,
2717
2723
  globalValues: i = {}
@@ -2809,7 +2815,7 @@ const Mt = ({
2809
2815
  context: w
2810
2816
  });
2811
2817
  if (L === "ir.actions.act_url")
2812
- window.open(Pa(E.url, {
2818
+ window.open(Ha(E.url, {
2813
2819
  ...C,
2814
2820
  context: w
2815
2821
  }), "_blank");
@@ -2869,7 +2875,7 @@ const Mt = ({
2869
2875
  const {
2870
2876
  initialView: M,
2871
2877
  views: I
2872
- } = await ml({
2878
+ } = await hl({
2873
2879
  model: S.res_model,
2874
2880
  context: A,
2875
2881
  view_mode: S.view_mode,
@@ -2981,7 +2987,7 @@ const Mt = ({
2981
2987
  })
2982
2988
  });
2983
2989
  };
2984
- async function ml({
2990
+ async function hl({
2985
2991
  views: e,
2986
2992
  view_mode: t,
2987
2993
  model: r,
@@ -3034,7 +3040,7 @@ async function ml({
3034
3040
  initialView: a
3035
3041
  };
3036
3042
  }
3037
- const hl = bt(fl), pl = ({
3043
+ const pl = bt(ml), gl = ({
3038
3044
  error: e,
3039
3045
  className: t
3040
3046
  }) => {
@@ -3058,8 +3064,8 @@ const hl = bt(fl), pl = ({
3058
3064
  type: i,
3059
3065
  banner: !0
3060
3066
  });
3061
- }, gl = 800;
3062
- function yl(e, t) {
3067
+ }, yl = 800;
3068
+ function vl(e, t) {
3063
3069
  const {
3064
3070
  model: r,
3065
3071
  id: i,
@@ -3086,7 +3092,7 @@ function yl(e, t) {
3086
3092
  } = e, {
3087
3093
  t: x,
3088
3094
  lang: C
3089
- } = Y(we), [w, S] = O(!1), [L, A] = O(), [F, k] = O(), [M] = ot.useForm(), [I, N] = O(), [R, j] = O(), q = Y(mo), [W, z] = O(), [U, $] = O(!1), B = de(), ee = de({}), Z = de({}), ie = de(!1), Q = de(!1), fe = (E !== void 0 ? E : W) < gl, be = Y(Ne), {
3095
+ } = Y(we), [w, S] = O(!1), [L, A] = O(), [F, k] = O(), [M] = ot.useForm(), [I, N] = O(), [R, j] = O(), q = Y(mo), [W, z] = O(), [U, $] = O(!1), B = de(), ee = de({}), Z = de({}), ie = de(!1), Q = de(!1), fe = (E !== void 0 ? E : W) < yl, be = Y(Ne), {
3090
3096
  activeId: $e,
3091
3097
  getPlainValues: Ie
3092
3098
  } = be || {}, Be = Y(Qe), {
@@ -3241,7 +3247,7 @@ function yl(e, t) {
3241
3247
  fields: re,
3242
3248
  arch: oe
3243
3249
  }), T && (G = {
3244
- ...La(T),
3250
+ ...Na(T),
3245
3251
  ...G
3246
3252
  }), ee.current = Ot(G, re), qt({
3247
3253
  values: G,
@@ -3405,7 +3411,7 @@ function yl(e, t) {
3405
3411
  const oe = new kr(K);
3406
3412
  oe.parse(G, {
3407
3413
  readOnly: f,
3408
- values: Ia({
3414
+ values: Da({
3409
3415
  ...re,
3410
3416
  ...Ae()
3411
3417
  }, K)
@@ -3421,7 +3427,7 @@ function yl(e, t) {
3421
3427
  fields: R
3422
3428
  }), re = Object.keys(G);
3423
3429
  if (re.length !== 0) {
3424
- if (Ea({
3430
+ if ($a({
3425
3431
  changedFields: re,
3426
3432
  formOoui: F,
3427
3433
  types: ["text", "codeeditor", "email", "url", "char", "float", "float_time", "integer", "many2one"]
@@ -3451,7 +3457,7 @@ function yl(e, t) {
3451
3457
  });
3452
3458
  return;
3453
3459
  }
3454
- const re = Na({
3460
+ const re = Pa({
3455
3461
  values: {
3456
3462
  ...xe(R),
3457
3463
  context: {
@@ -3488,12 +3494,12 @@ function yl(e, t) {
3488
3494
  title: Re,
3489
3495
  message: yt
3490
3496
  } = oe.warning;
3491
- ie.current = !0, el(Re, yt, () => {
3497
+ ie.current = !0, tl(Re, yt, () => {
3492
3498
  ie.current = !1;
3493
3499
  });
3494
3500
  }
3495
3501
  if (oe.domain && Object.keys(oe.domain).length > 0) {
3496
- const Re = $a({
3502
+ const Re = La({
3497
3503
  fieldsDomain: oe.domain,
3498
3504
  fields: R
3499
3505
  });
@@ -3688,14 +3694,14 @@ function yl(e, t) {
3688
3694
  }) => /* @__PURE__ */ P("div", {
3689
3695
  className: "pb-2",
3690
3696
  ref: K,
3691
- children: [L && /* @__PURE__ */ n(pl, {
3697
+ children: [L && /* @__PURE__ */ n(gl, {
3692
3698
  className: "mt-5 mb-10",
3693
3699
  error: L
3694
3700
  }), zo(), a && Jo()]
3695
3701
  })
3696
3702
  }) : null;
3697
3703
  }
3698
- const Ut = bt(yl), Gt = (e) => {
3704
+ const Ut = bt(vl), Gt = (e) => {
3699
3705
  const {
3700
3706
  visible: t,
3701
3707
  id: r,
@@ -3771,7 +3777,7 @@ const Ut = bt(yl), Gt = (e) => {
3771
3777
  });
3772
3778
  }
3773
3779
  const D = c * 0.95;
3774
- return /* @__PURE__ */ n(tl, {
3780
+ return /* @__PURE__ */ n(nl, {
3775
3781
  setTitle: d,
3776
3782
  children: /* @__PURE__ */ n(Ge, {
3777
3783
  title: a ? T() : f,
@@ -3792,14 +3798,14 @@ const Ut = bt(yl), Gt = (e) => {
3792
3798
  })
3793
3799
  })
3794
3800
  });
3795
- }, vl = (e) => /* @__PURE__ */ n(ve, {
3801
+ }, wl = (e) => /* @__PURE__ */ n(ve, {
3796
3802
  ...e,
3797
3803
  layout: "vertical",
3798
3804
  children: /* @__PURE__ */ n(Mn.RangePicker, {
3799
3805
  allowEmpty: [!0, !0],
3800
3806
  format: "DD/MM/YYYY"
3801
3807
  })
3802
- }), wl = (e) => {
3808
+ }), bl = (e) => {
3803
3809
  const {
3804
3810
  ooui: t,
3805
3811
  showLabel: r = !1
@@ -3852,7 +3858,7 @@ const Ut = bt(yl), Gt = (e) => {
3852
3858
  })]
3853
3859
  });
3854
3860
  }, {
3855
- useToken: bl
3861
+ useToken: xl
3856
3862
  } = Pe, po = (e) => {
3857
3863
  const {
3858
3864
  ooui: t
@@ -3863,7 +3869,7 @@ const Ut = bt(yl), Gt = (e) => {
3863
3869
  required: s
3864
3870
  } = t, {
3865
3871
  token: a
3866
- } = bl(), l = s && !o ? {
3872
+ } = xl(), l = s && !o ? {
3867
3873
  backgroundColor: a.colorPrimaryBg
3868
3874
  } : void 0, u = Y(Ne), {
3869
3875
  elementHasLostFocus: c
@@ -3885,7 +3891,7 @@ const Ut = bt(yl), Gt = (e) => {
3885
3891
  })
3886
3892
  });
3887
3893
  }, {
3888
- useToken: xl
3894
+ useToken: Cl
3889
3895
  } = Pe, tn = (e) => {
3890
3896
  const {
3891
3897
  ooui: t,
@@ -3896,7 +3902,7 @@ const Ut = bt(yl), Gt = (e) => {
3896
3902
  required: s
3897
3903
  } = t, {
3898
3904
  token: a
3899
- } = xl(), l = s && !o ? {
3905
+ } = Cl(), l = s && !o ? {
3900
3906
  backgroundColor: a.colorPrimaryBg
3901
3907
  } : void 0, u = Y(Ne), {
3902
3908
  elementHasLostFocus: c
@@ -3921,7 +3927,7 @@ const Ut = bt(yl), Gt = (e) => {
3921
3927
  })
3922
3928
  });
3923
3929
  };
3924
- function Cl(e) {
3930
+ function Sl(e) {
3925
3931
  const {
3926
3932
  ooui: t,
3927
3933
  showLabel: r
@@ -3966,11 +3972,11 @@ function Cl(e) {
3966
3972
  });
3967
3973
  }
3968
3974
  const {
3969
- defaultAlgorithm: Sl,
3970
- defaultSeed: Tl
3971
- } = Pe, Fl = Sl(Tl), {
3972
- Option: Ol
3973
- } = Ct, _l = (e) => {
3975
+ defaultAlgorithm: Tl,
3976
+ defaultSeed: Fl
3977
+ } = Pe, Ol = Tl(Fl), {
3978
+ Option: _l
3979
+ } = Ct, Il = (e) => {
3974
3980
  const {
3975
3981
  ooui: t
3976
3982
  } = e, {
@@ -3980,11 +3986,11 @@ const {
3980
3986
  required: r,
3981
3987
  type: "any",
3982
3988
  ...e,
3983
- children: /* @__PURE__ */ n(Il, {
3989
+ children: /* @__PURE__ */ n(Dl, {
3984
3990
  ...e
3985
3991
  })
3986
3992
  });
3987
- }, Il = (e) => {
3993
+ }, Dl = (e) => {
3988
3994
  const {
3989
3995
  ooui: t,
3990
3996
  onChange: r,
@@ -3998,11 +4004,11 @@ const {
3998
4004
  return i ? !i.includes(m) : !0;
3999
4005
  }).map((d) => {
4000
4006
  const [m, y] = d;
4001
- return /* @__PURE__ */ n(Ol, {
4007
+ return /* @__PURE__ */ n(_l, {
4002
4008
  value: y,
4003
4009
  children: y
4004
4010
  }, m);
4005
- }), c = a && !s ? Dl : Ct;
4011
+ }), c = a && !s ? Vl : Ct;
4006
4012
  function f(d) {
4007
4013
  const m = d.map((y) => {
4008
4014
  const p = l.find(([h, g]) => y === g);
@@ -4022,12 +4028,12 @@ const {
4022
4028
  showArrow: !0,
4023
4029
  children: u
4024
4030
  });
4025
- }, Dl = Kt(Ct)`
4031
+ }, Vl = Kt(Ct)`
4026
4032
  &.ant-select:not(.ant-select-customize-input) .ant-select-selector {
4027
- background-color: ${Fl.colorPrimaryBg};
4033
+ background-color: ${Ol.colorPrimaryBg};
4028
4034
  }
4029
4035
  `;
4030
- function Vl(e) {
4036
+ function Al(e) {
4031
4037
  const {
4032
4038
  field: t
4033
4039
  } = e;
@@ -4052,24 +4058,24 @@ function Vl(e) {
4052
4058
  case ft.progressbar:
4053
4059
  case ft.float_time:
4054
4060
  case ft.integer:
4055
- return /* @__PURE__ */ n(Cl, {
4061
+ return /* @__PURE__ */ n(Sl, {
4056
4062
  ooui: t,
4057
4063
  showLabel: !0
4058
4064
  });
4059
4065
  case ft.date:
4060
- return /* @__PURE__ */ n(vl, {
4066
+ return /* @__PURE__ */ n(wl, {
4061
4067
  ooui: t,
4062
4068
  layout: "vertical",
4063
4069
  showLabel: !0
4064
4070
  });
4065
4071
  case ft.datetime:
4066
- return /* @__PURE__ */ n(wl, {
4072
+ return /* @__PURE__ */ n(bl, {
4067
4073
  ooui: t,
4068
4074
  layout: "vertical",
4069
4075
  showLabel: !0
4070
4076
  });
4071
4077
  case ft.selection:
4072
- return /* @__PURE__ */ n(_l, {
4078
+ return /* @__PURE__ */ n(Il, {
4073
4079
  layout: "vertical",
4074
4080
  ooui: t,
4075
4081
  showLabel: !0
@@ -4083,7 +4089,7 @@ function Vl(e) {
4083
4089
  });
4084
4090
  }
4085
4091
  }
4086
- function Al(e) {
4092
+ function Rl(e) {
4087
4093
  const {
4088
4094
  onAdvancedFilterToggle: t,
4089
4095
  advancedFilter: r,
@@ -4124,7 +4130,7 @@ function Al(e) {
4124
4130
  })]
4125
4131
  });
4126
4132
  }
4127
- function Rl(e) {
4133
+ function kl(e) {
4128
4134
  const {
4129
4135
  onLimitChange: t
4130
4136
  } = e, {
@@ -4152,7 +4158,7 @@ function Rl(e) {
4152
4158
  });
4153
4159
  }
4154
4160
  const {
4155
- useToken: kl
4161
+ useToken: Ml
4156
4162
  } = Pe;
4157
4163
  function go(e) {
4158
4164
  const {
@@ -4174,7 +4180,7 @@ function go(e) {
4174
4180
  showLimitOptions: y = !0
4175
4181
  } = e, [p, h] = O(), [g, v] = O(), [T, D] = O(!1), b = de(), {
4176
4182
  token: V
4177
- } = kl(), [_] = ot.useForm();
4183
+ } = Ml(), [_] = ot.useForm();
4178
4184
  pe(() => {
4179
4185
  _.setFieldsValue(m);
4180
4186
  }, [m]);
@@ -4187,7 +4193,7 @@ function go(e) {
4187
4193
  xs: 24,
4188
4194
  className: "p-2",
4189
4195
  xl: 6,
4190
- children: /* @__PURE__ */ n(Vl, {
4196
+ children: /* @__PURE__ */ n(Al, {
4191
4197
  field: F
4192
4198
  })
4193
4199
  }, k))
@@ -4203,7 +4209,7 @@ function go(e) {
4203
4209
  offset: L
4204
4210
  } = w;
4205
4211
  delete w.offset, delete w.limit;
4206
- const A = nl(w, (F = b.current) == null ? void 0 : F._advancedSearchContainer);
4212
+ const A = rl(w, (F = b.current) == null ? void 0 : F._advancedSearchContainer);
4207
4213
  o({
4208
4214
  params: A,
4209
4215
  offset: L,
@@ -4236,9 +4242,9 @@ function go(e) {
4236
4242
  offset: a,
4237
4243
  limit: l
4238
4244
  },
4239
- children: [x, T && y && /* @__PURE__ */ n(Rl, {
4245
+ children: [x, T && y && /* @__PURE__ */ n(kl, {
4240
4246
  onLimitChange: u
4241
- }), /* @__PURE__ */ n(Al, {
4247
+ }), /* @__PURE__ */ n(Rl, {
4242
4248
  advancedFilter: T,
4243
4249
  onAdvancedFilterToggle: () => {
4244
4250
  D(!T);
@@ -4265,7 +4271,7 @@ const xr = (e, t = "14px -apple-system") => {
4265
4271
  i.font = t;
4266
4272
  const o = i.measureText(e);
4267
4273
  return Math.round((o.width + 80) * 1.5);
4268
- }, Ml = (e, t, r = 500) => {
4274
+ }, El = (e, t, r = 500) => {
4269
4275
  if (e.length === 0)
4270
4276
  return e;
4271
4277
  const i = e.map(
@@ -4287,7 +4293,7 @@ const xr = (e, t = "14px -apple-system") => {
4287
4293
  tableWidth: o
4288
4294
  };
4289
4295
  };
4290
- function El(e) {
4296
+ function $l(e) {
4291
4297
  if (!!e)
4292
4298
  try {
4293
4299
  if (e.includes(":")) {
@@ -4317,7 +4323,7 @@ function yo(e) {
4317
4323
  });
4318
4324
  return t = `${o}:${s}`, e < 0 && (t = "-" + t), t;
4319
4325
  }
4320
- const $l = (e) => /* @__PURE__ */ n(ve, {
4326
+ const Ll = (e) => /* @__PURE__ */ n(ve, {
4321
4327
  ...e,
4322
4328
  children: /* @__PURE__ */ n(vo, {})
4323
4329
  }), vo = ({
@@ -4334,7 +4340,7 @@ const $l = (e) => /* @__PURE__ */ n(ve, {
4334
4340
  display: "flex",
4335
4341
  alignItems: "center"
4336
4342
  },
4337
- children: [/* @__PURE__ */ n(Ll, {
4343
+ children: [/* @__PURE__ */ n(Nl, {
4338
4344
  percent: e
4339
4345
  }), /* @__PURE__ */ n("div", {
4340
4346
  style: {
@@ -4344,7 +4350,7 @@ const $l = (e) => /* @__PURE__ */ n(ve, {
4344
4350
  children: t
4345
4351
  })]
4346
4352
  });
4347
- }, Ll = Kt(ni)`
4353
+ }, Nl = Kt(ni)`
4348
4354
  .ant-progress-outer {
4349
4355
  margin-right: 0px;
4350
4356
  padding-right: 0px;
@@ -4525,7 +4531,7 @@ const $l = (e) => /* @__PURE__ */ n(ve, {
4525
4531
  onCancel: () => l(!1)
4526
4532
  })]
4527
4533
  });
4528
- }, Nl = (e) => {
4534
+ }, Pl = (e) => {
4529
4535
  const {
4530
4536
  m2oField: t
4531
4537
  } = e;
@@ -4537,7 +4543,7 @@ const $l = (e) => /* @__PURE__ */ n(ve, {
4537
4543
  model: t.model
4538
4544
  })]
4539
4545
  }) : /* @__PURE__ */ n(ne, {});
4540
- }, Pl = (e) => {
4546
+ }, Hl = (e) => {
4541
4547
  const {
4542
4548
  value: t,
4543
4549
  context: r,
@@ -4780,7 +4786,7 @@ var wo = { exports: {} };
4780
4786
  }, C.en = _[V], C.Ls = _, C.p = {}, C;
4781
4787
  });
4782
4788
  })(wo);
4783
- const dt = wo.exports, Hl = (e) => {
4789
+ const dt = wo.exports, Bl = (e) => {
4784
4790
  console.log("Avatar Props", e);
4785
4791
  const {
4786
4792
  ooui: t,
@@ -4815,7 +4821,7 @@ var bo = { exports: {} };
4815
4821
  };
4816
4822
  });
4817
4823
  })(bo);
4818
- const Bl = bo.exports;
4824
+ const jl = bo.exports;
4819
4825
  var xo = { exports: {} };
4820
4826
  (function(e, t) {
4821
4827
  (function(r, i) {
@@ -4893,11 +4899,11 @@ var xo = { exports: {} };
4893
4899
  };
4894
4900
  });
4895
4901
  })(xo);
4896
- const jl = xo.exports, {
4897
- useToken: Kl
4902
+ const Kl = xo.exports, {
4903
+ useToken: Yl
4898
4904
  } = Pe;
4899
- dt.extend(Bl);
4900
4905
  dt.extend(jl);
4906
+ dt.extend(Kl);
4901
4907
  const lt = {
4902
4908
  date: {
4903
4909
  placeholder: "__/__/____",
@@ -4919,12 +4925,12 @@ const lt = {
4919
4925
  return /* @__PURE__ */ n(ve, {
4920
4926
  required: i,
4921
4927
  ...e,
4922
- children: /* @__PURE__ */ n(Yl, {
4928
+ children: /* @__PURE__ */ n(Wl, {
4923
4929
  ooui: t,
4924
4930
  showTime: r
4925
4931
  })
4926
4932
  });
4927
- }, Yl = (e) => {
4933
+ }, Wl = (e) => {
4928
4934
  const {
4929
4935
  value: t,
4930
4936
  onChange: r,
@@ -4936,7 +4942,7 @@ const lt = {
4936
4942
  required: l
4937
4943
  } = i, {
4938
4944
  token: u
4939
- } = Kl(), c = l && !a ? {
4945
+ } = Yl(), c = l && !a ? {
4940
4946
  backgroundColor: u.colorPrimaryBg
4941
4947
  } : void 0, f = o ? "time" : "date", d = (p) => {
4942
4948
  r == null || r(p);
@@ -4961,7 +4967,7 @@ const lt = {
4961
4967
  value: y,
4962
4968
  onChange: m
4963
4969
  });
4964
- }, Wl = (e) => /* @__PURE__ */ n("div", {
4970
+ }, Ul = (e) => /* @__PURE__ */ n("div", {
4965
4971
  style: {
4966
4972
  display: "flex",
4967
4973
  justifyContent: "center",
@@ -4971,18 +4977,18 @@ const lt = {
4971
4977
  checked: e,
4972
4978
  disabled: !0
4973
4979
  })
4974
- }), Ul = (e) => /* @__PURE__ */ n(Nl, {
4980
+ }), Gl = (e) => /* @__PURE__ */ n(Pl, {
4975
4981
  m2oField: e
4976
- }), Gl = (e) => /* @__PURE__ */ n(Gn, {
4982
+ }), ql = (e) => /* @__PURE__ */ n(Gn, {
4977
4983
  content: e == null ? void 0 : e.toString().replace(/(?:\r\n|\r|\n)/g, "<br>")
4978
- }), ql = (e) => {
4984
+ }), zl = (e) => {
4979
4985
  if (!e || e && e.length === 0)
4980
4986
  return /* @__PURE__ */ n(ne, {});
4981
4987
  const t = dt(e, lt.date.dateInternalFormat).format(lt.date.dateDisplayFormat);
4982
4988
  return /* @__PURE__ */ n(ne, {
4983
4989
  children: t
4984
4990
  });
4985
- }, zl = (e) => {
4991
+ }, Jl = (e) => {
4986
4992
  if (!e || e && e.length === 0)
4987
4993
  return /* @__PURE__ */ n(ne, {});
4988
4994
  const t = dt(e, lt.time.dateInternalFormat).format(lt.time.dateDisplayFormat);
@@ -4994,33 +5000,33 @@ const lt = {
4994
5000
  return /* @__PURE__ */ n(ne, {
4995
5001
  children: `( ${t} )`
4996
5002
  });
4997
- }, Jl = (e) => /* @__PURE__ */ n(vo, {
5003
+ }, Zl = (e) => /* @__PURE__ */ n(vo, {
4998
5004
  value: e
4999
- }), Zl = (e) => /* @__PURE__ */ n(ne, {
5005
+ }), Xl = (e) => /* @__PURE__ */ n(ne, {
5000
5006
  children: yo(e)
5001
5007
  }), Tr = (e) => /* @__PURE__ */ n("div", {
5002
5008
  style: {
5003
5009
  textAlign: "right"
5004
5010
  },
5005
5011
  children: e
5006
- }), Xl = (e) => /* @__PURE__ */ n("img", {
5012
+ }), Ql = (e) => /* @__PURE__ */ n("img", {
5007
5013
  src: `data:image/*;base64,${e}`,
5008
5014
  style: {
5009
5015
  maxWidth: "50px",
5010
5016
  padding: "5px"
5011
5017
  }
5012
- }), Ql = (e, t, r, i) => /* @__PURE__ */ n(uo, {
5018
+ }), ec = (e, t, r, i) => /* @__PURE__ */ n(uo, {
5013
5019
  ooui: r,
5014
5020
  value: e
5015
- }), ec = (e, t, r, i) => /* @__PURE__ */ n(ne, {
5016
- children: r.selectionValues.get(e)
5017
5021
  }), tc = (e, t, r, i) => /* @__PURE__ */ n(ne, {
5018
- children: /* @__PURE__ */ n(Pl, {
5022
+ children: r.selectionValues.get(e)
5023
+ }), nc = (e, t, r, i) => /* @__PURE__ */ n(ne, {
5024
+ children: /* @__PURE__ */ n(Hl, {
5019
5025
  value: e,
5020
5026
  selectionValues: r.selectionValues,
5021
5027
  context: i
5022
5028
  })
5023
- }), nc = (e, t, r, i) => /* @__PURE__ */ n(Hl, {
5029
+ }), rc = (e, t, r, i) => /* @__PURE__ */ n(Bl, {
5024
5030
  ooui: r,
5025
5031
  value: e
5026
5032
  });
@@ -5055,22 +5061,22 @@ function pn(e) {
5055
5061
  pe(() => {
5056
5062
  w.current = _t(o);
5057
5063
  const z = Oa(w.current, {
5058
- boolean: Wl,
5059
- many2one: Ul,
5060
- text: Gl,
5064
+ boolean: Ul,
5065
+ many2one: Gl,
5066
+ text: ql,
5061
5067
  one2many: Sr,
5062
5068
  many2many: Sr,
5063
- progressbar: Jl,
5064
- float_time: Zl,
5065
- image: Xl,
5069
+ progressbar: Zl,
5070
+ float_time: Xl,
5071
+ image: Ql,
5066
5072
  integer: Tr,
5067
5073
  float: Tr,
5068
- reference: tc,
5069
- tag: Ql,
5070
- selection: ec,
5071
- date: ql,
5072
- datetime: zl,
5073
- avatar: nc
5074
+ reference: nc,
5075
+ tag: ec,
5076
+ selection: tc,
5077
+ date: zl,
5078
+ datetime: Jl,
5079
+ avatar: rc
5074
5080
  }, D);
5075
5081
  x(z), w.current.string && F !== w.current.string && (k == null || k(w.current.string));
5076
5082
  }, [o]), pe(() => {
@@ -5117,7 +5123,7 @@ function pn(e) {
5117
5123
  }
5118
5124
  let q, W = d;
5119
5125
  if (w.current !== null) {
5120
- q = Ml(E, V, 600);
5126
+ q = El(E, V, 600);
5121
5127
  const U = w.current;
5122
5128
  d && U.columns.some(($) => $.sum !== void 0) && (W = d - 30);
5123
5129
  }
@@ -5140,12 +5146,12 @@ function pn(e) {
5140
5146
  color: m[z.id]
5141
5147
  };
5142
5148
  },
5143
- onRowStatus: (z) => {
5149
+ onRowStatus: _a(y) ? (z) => {
5144
5150
  if (y[z.id])
5145
5151
  return /* @__PURE__ */ n(oi, {
5146
5152
  color: y[z.id]
5147
5153
  });
5148
- },
5154
+ } : void 0,
5149
5155
  onRowDoubleClick: u,
5150
5156
  onRowSelectionChange: f == null ? void 0 : f.onChange,
5151
5157
  onChangeSort: p,
@@ -5161,7 +5167,7 @@ function pn(e) {
5161
5167
  }), j()]
5162
5168
  });
5163
5169
  }
5164
- function rc(e, t) {
5170
+ function oc(e, t) {
5165
5171
  const {
5166
5172
  model: r,
5167
5173
  formView: i,
@@ -5375,7 +5381,7 @@ function rc(e, t) {
5375
5381
  children: y ? /* @__PURE__ */ n(Me, {}) : ye()
5376
5382
  });
5377
5383
  }
5378
- const So = bt(rc), To = (e) => {
5384
+ const So = bt(oc), To = (e) => {
5379
5385
  const {
5380
5386
  visible: t,
5381
5387
  onCloseModal: r,
@@ -5464,18 +5470,18 @@ const So = bt(rc), To = (e) => {
5464
5470
  })]
5465
5471
  });
5466
5472
  }, {
5467
- error: oc
5473
+ error: ic
5468
5474
  } = Ge, nn = (e) => {
5469
- oc({
5475
+ ic({
5470
5476
  title: "Error",
5471
5477
  icon: /* @__PURE__ */ n(pt, {}),
5472
5478
  centered: !0,
5473
5479
  content: e
5474
5480
  });
5475
5481
  }, {
5476
- defaultAlgorithm: ic,
5477
- defaultSeed: sc
5478
- } = Pe, Fo = ic(sc), ac = (e) => {
5482
+ defaultAlgorithm: sc,
5483
+ defaultSeed: ac
5484
+ } = Pe, Fo = sc(ac), lc = (e) => {
5479
5485
  const {
5480
5486
  ooui: t
5481
5487
  } = e, {
@@ -5610,7 +5616,7 @@ const So = bt(rc), To = (e) => {
5610
5616
  wrap: !1,
5611
5617
  children: [/* @__PURE__ */ n(le, {
5612
5618
  flex: "auto",
5613
- children: /* @__PURE__ */ n(o && !a ? lc : nt, {
5619
+ children: /* @__PURE__ */ n(o && !a ? cc : nt, {
5614
5620
  type: "text",
5615
5621
  value: b,
5616
5622
  disabled: a,
@@ -5694,11 +5700,11 @@ const So = bt(rc), To = (e) => {
5694
5700
  readOnly: a
5695
5701
  })]
5696
5702
  });
5697
- }, lc = Kt(nt)`
5703
+ }, cc = Kt(nt)`
5698
5704
  .ant-input {
5699
5705
  background-color: ${Fo.colorPrimaryBg};
5700
5706
  }
5701
- `, _o = Je.createContext(null), cc = ({
5707
+ `, _o = Je.createContext(null), dc = ({
5702
5708
  children: e,
5703
5709
  initialView: t
5704
5710
  }) => {
@@ -5716,7 +5722,7 @@ const So = bt(rc), To = (e) => {
5716
5722
  });
5717
5723
  }, {
5718
5724
  getValueForOperator: Fr
5719
- } = Er, rn = 0.7, on = 30, dc = (e) => {
5725
+ } = Er, rn = 0.7, on = 30, uc = (e) => {
5720
5726
  const {
5721
5727
  model: t,
5722
5728
  domain: r,
@@ -5858,7 +5864,7 @@ const So = bt(rc), To = (e) => {
5858
5864
  },
5859
5865
  children: ({
5860
5866
  measureRef: I
5861
- }) => a ? /* @__PURE__ */ n(fc, {
5867
+ }) => a ? /* @__PURE__ */ n(mc, {
5862
5868
  value: p,
5863
5869
  total: T,
5864
5870
  percent: g,
@@ -5868,7 +5874,7 @@ const So = bt(rc), To = (e) => {
5868
5874
  color: x,
5869
5875
  icon: w,
5870
5876
  suffix: u
5871
- }) : /* @__PURE__ */ n(uc, {
5877
+ }) : /* @__PURE__ */ n(fc, {
5872
5878
  value: p,
5873
5879
  total: T,
5874
5880
  measureRef: I,
@@ -5884,7 +5890,7 @@ function Io(e, t) {
5884
5890
  const i = document.createElement("canvas").getContext("2d");
5885
5891
  return i.font = t || getComputedStyle(document.body).font, i.measureText(e).width;
5886
5892
  }
5887
- function uc({
5893
+ function fc({
5888
5894
  measureRef: e,
5889
5895
  width: t,
5890
5896
  height: r,
@@ -5927,7 +5933,7 @@ function uc({
5927
5933
  })
5928
5934
  });
5929
5935
  }
5930
- function fc({
5936
+ function mc({
5931
5937
  measureRef: e,
5932
5938
  height: t,
5933
5939
  width: r,
@@ -6001,22 +6007,22 @@ const Tn = (e) => (t) => {
6001
6007
  });
6002
6008
  return { name: e === "pie" ? t.x : t.type, value: r };
6003
6009
  }, Zt = (e) => {
6004
- if (typeof e == "string" && mc(e))
6010
+ if (typeof e == "string" && hc(e))
6005
6011
  return parseFloat(e).toLocaleString("es-ES", {
6006
6012
  useGrouping: !0
6007
6013
  });
6008
- if (hc(e))
6014
+ if (pc(e))
6009
6015
  return e.toLocaleString("es-ES", {
6010
6016
  useGrouping: !0
6011
6017
  });
6012
- if (pc(e)) {
6013
- const t = gc(e);
6018
+ if (gc(e)) {
6019
+ const t = yc(e);
6014
6020
  return t === null ? e : dt(e, sn.input[t]).format(
6015
6021
  sn.output[t]
6016
6022
  );
6017
6023
  } else
6018
6024
  return e;
6019
- }, mc = (e) => /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(e), hc = (e) => typeof e == "number" && !isNaN(e), Or = {
6025
+ }, hc = (e) => /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(e), pc = (e) => typeof e == "number" && !isNaN(e), Or = {
6020
6026
  default: {
6021
6027
  padding: "auto",
6022
6028
  xAxis: {
@@ -6098,7 +6104,7 @@ const Tn = (e) => (t) => {
6098
6104
  }
6099
6105
  }
6100
6106
  };
6101
- function pc(e) {
6107
+ function gc(e) {
6102
6108
  return typeof e != "string" || e === void 0 ? !1 : new Date(e).toString() !== "Invalid Date";
6103
6109
  }
6104
6110
  const sn = {
@@ -6117,7 +6123,7 @@ const sn = {
6117
6123
  years: "YYYY"
6118
6124
  }
6119
6125
  };
6120
- function gc(e) {
6126
+ function yc(e) {
6121
6127
  for (const t in sn.input)
6122
6128
  if (dt(
6123
6129
  e,
@@ -6128,10 +6134,10 @@ function gc(e) {
6128
6134
  return null;
6129
6135
  }
6130
6136
  const {
6131
- processGraphData: yc
6137
+ processGraphData: vc
6132
6138
  } = Er, {
6133
- getFieldsToRetrieve: vc
6134
- } = mi, wc = (e) => {
6139
+ getFieldsToRetrieve: wc
6140
+ } = mi, bc = (e) => {
6135
6141
  const {
6136
6142
  model: t,
6137
6143
  domain: r = [],
@@ -6146,7 +6152,7 @@ const {
6146
6152
  c(!0), d(void 0);
6147
6153
  const T = Ln(o);
6148
6154
  v(T.type || "line");
6149
- const D = vc({
6155
+ const D = wc({
6150
6156
  ooui: T
6151
6157
  });
6152
6158
  let b, V;
@@ -6154,7 +6160,7 @@ const {
6154
6160
  ({
6155
6161
  values: b,
6156
6162
  fields: V
6157
- } = await xc({
6163
+ } = await Cc({
6158
6164
  model: t,
6159
6165
  domain: r,
6160
6166
  context: i,
@@ -6173,7 +6179,7 @@ const {
6173
6179
  return;
6174
6180
  }
6175
6181
  h(b);
6176
- const _ = yc({
6182
+ const _ = vc({
6177
6183
  ooui: T,
6178
6184
  values: b,
6179
6185
  fields: V,
@@ -6196,7 +6202,7 @@ const {
6196
6202
  evaluatedEntries: p
6197
6203
  };
6198
6204
  };
6199
- async function bc({
6205
+ async function xc({
6200
6206
  model: e,
6201
6207
  context: t,
6202
6208
  fields: r
@@ -6207,7 +6213,7 @@ async function bc({
6207
6213
  fields: r
6208
6214
  });
6209
6215
  }
6210
- async function xc({
6216
+ async function Cc({
6211
6217
  fields: e,
6212
6218
  model: t,
6213
6219
  domain: r,
@@ -6216,7 +6222,7 @@ async function xc({
6216
6222
  limit: s,
6217
6223
  manualIds: a
6218
6224
  }) {
6219
- const l = await bc({
6225
+ const l = await xc({
6220
6226
  model: t,
6221
6227
  context: i,
6222
6228
  fields: e
@@ -6245,11 +6251,11 @@ async function xc({
6245
6251
  fields: l
6246
6252
  };
6247
6253
  }
6248
- const Cc = {
6254
+ const Sc = {
6249
6255
  line: Di,
6250
6256
  bar: Vi,
6251
6257
  pie: Ai
6252
- }, Sc = (e) => {
6258
+ }, Tc = (e) => {
6253
6259
  var v;
6254
6260
  const {
6255
6261
  model: t,
@@ -6266,7 +6272,7 @@ const Cc = {
6266
6272
  values: f,
6267
6273
  type: d,
6268
6274
  evaluatedEntries: m
6269
- } = wc({
6275
+ } = bc({
6270
6276
  model: t,
6271
6277
  xml: o,
6272
6278
  limit: s,
@@ -6292,7 +6298,7 @@ const Cc = {
6292
6298
  data: y,
6293
6299
  isGroup: p,
6294
6300
  isStack: h
6295
- } = f, g = Cc[d];
6301
+ } = f, g = Sc[d];
6296
6302
  return g ? /* @__PURE__ */ P("div", {
6297
6303
  style: {
6298
6304
  padding: "1rem"
@@ -6305,7 +6311,7 @@ const Cc = {
6305
6311
  useGrouping: !0
6306
6312
  })}`
6307
6313
  }), /* @__PURE__ */ n(g, {
6308
- ...Tc({
6314
+ ...Fc({
6309
6315
  type: d,
6310
6316
  data: y,
6311
6317
  isGroup: p,
@@ -6316,7 +6322,7 @@ const Cc = {
6316
6322
  children: `Unknown graph type: ${d}`
6317
6323
  });
6318
6324
  };
6319
- function Tc(e) {
6325
+ function Fc(e) {
6320
6326
  const {
6321
6327
  type: t,
6322
6328
  data: r,
@@ -6326,7 +6332,7 @@ function Tc(e) {
6326
6332
  let s = Or[t];
6327
6333
  return s || (s = Or.default), s.data = r, t === "pie" ? (s.colorField = "x", s.angleField = "value") : (s.xField = "x", s.yField = "value", s.seriesField = "type", s.isGroup = i, o && (s.isStack = !0, s.groupField = "stacked")), s;
6328
6334
  }
6329
- const Fc = (e, t) => {
6335
+ const Oc = (e, t) => {
6330
6336
  const {
6331
6337
  view_id: r,
6332
6338
  model: i,
@@ -6388,7 +6394,7 @@ const Fc = (e, t) => {
6388
6394
  field: v.field,
6389
6395
  operator: v.operator
6390
6396
  } : {};
6391
- return /* @__PURE__ */ n(dc, {
6397
+ return /* @__PURE__ */ n(uc, {
6392
6398
  showPercent: v.showPercent,
6393
6399
  totalDomain: v.totalDomain,
6394
6400
  colorCondition: v.color,
@@ -6404,7 +6410,7 @@ const Fc = (e, t) => {
6404
6410
  case "line":
6405
6411
  case "bar":
6406
6412
  case "pie":
6407
- return /* @__PURE__ */ n(Sc, {
6413
+ return /* @__PURE__ */ n(Tc, {
6408
6414
  model: i,
6409
6415
  context: o,
6410
6416
  domain: s,
@@ -6417,13 +6423,13 @@ const Fc = (e, t) => {
6417
6423
  children: `Graph ${f.type} not implemented`
6418
6424
  });
6419
6425
  }
6420
- }, gn = bt(Fc), {
6421
- confirm: Oc
6422
- } = Ge, _c = ({
6426
+ }, gn = bt(Oc), {
6427
+ confirm: _c
6428
+ } = Ge, Ic = ({
6423
6429
  onOk: e,
6424
6430
  lang: t
6425
6431
  }) => {
6426
- Oc({
6432
+ _c({
6427
6433
  title: Oe("removeItems", t),
6428
6434
  icon: /* @__PURE__ */ n(pt, {}),
6429
6435
  centered: !0,
@@ -6433,12 +6439,12 @@ const Fc = (e, t) => {
6433
6439
  cancelText: Oe("cancel", t)
6434
6440
  });
6435
6441
  }, {
6436
- confirm: Ic
6437
- } = Ge, Dc = ({
6442
+ confirm: Dc
6443
+ } = Ge, Vc = ({
6438
6444
  onOk: e,
6439
6445
  lang: t
6440
6446
  }) => {
6441
- Ic({
6447
+ Dc({
6442
6448
  title: Oe("unlinkItems", t),
6443
6449
  icon: /* @__PURE__ */ n(pt, {}),
6444
6450
  centered: !0,
@@ -6448,8 +6454,8 @@ const Fc = (e, t) => {
6448
6454
  cancelText: Oe("cancel", t)
6449
6455
  });
6450
6456
  }, {
6451
- useToken: Vc
6452
- } = Pe, Ac = (e) => {
6457
+ useToken: Ac
6458
+ } = Pe, Rc = (e) => {
6453
6459
  const {
6454
6460
  title: t,
6455
6461
  readOnly: r,
@@ -6468,7 +6474,7 @@ const Fc = (e, t) => {
6468
6474
  showToggleButton: h
6469
6475
  } = e, {
6470
6476
  token: g
6471
- } = Vc();
6477
+ } = Ac();
6472
6478
  function v() {
6473
6479
  return /* @__PURE__ */ n("div", {
6474
6480
  className: "inline-block w-3"
@@ -6539,12 +6545,12 @@ const Fc = (e, t) => {
6539
6545
  })]
6540
6546
  })]
6541
6547
  });
6542
- }, Rc = {
6548
+ }, kc = {
6543
6549
  form: kr,
6544
6550
  tree: Ar,
6545
6551
  graph: gn
6546
6552
  };
6547
- function kc(e) {
6553
+ function Mc(e) {
6548
6554
  const t = e.map((i) => i.id);
6549
6555
  return e.filter((i, o) => {
6550
6556
  const {
@@ -6553,7 +6559,7 @@ function kc(e) {
6553
6559
  return !t.includes(s, o + 1);
6554
6560
  });
6555
6561
  }
6556
- const Mc = (e) => {
6562
+ const Ec = (e) => {
6557
6563
  var at;
6558
6564
  const {
6559
6565
  value: t,
@@ -6601,7 +6607,7 @@ const Mc = (e) => {
6601
6607
  var ae, Ae;
6602
6608
  r == null || r({
6603
6609
  fields: ((ae = o.get("form")) == null ? void 0 : ae.fields) || ((Ae = o.get("tree")) == null ? void 0 : Ae.fields),
6604
- items: kc(X)
6610
+ items: Mc(X)
6605
6611
  });
6606
6612
  }, $e = async () => {
6607
6613
  await Ie(), u > Q.length - 1 && u !== 0 && c(0);
@@ -6693,7 +6699,7 @@ const Mc = (e) => {
6693
6699
  }) : X();
6694
6700
  }, je = () => {
6695
6701
  if (Z) {
6696
- Dc({
6702
+ Vc({
6697
6703
  lang: g,
6698
6704
  onOk: () => {
6699
6705
  a === "form" ? Fe() : Ee();
@@ -6701,7 +6707,7 @@ const Mc = (e) => {
6701
6707
  });
6702
6708
  return;
6703
6709
  }
6704
- _c({
6710
+ Ic({
6705
6711
  lang: g,
6706
6712
  onOk: () => {
6707
6713
  a === "form" ? Fe() : Ee();
@@ -6769,7 +6775,7 @@ const Mc = (e) => {
6769
6775
  }
6770
6776
  } : ye);
6771
6777
  else {
6772
- const ye = _a(s);
6778
+ const ye = Ia(s);
6773
6779
  he = s.concat({
6774
6780
  id: ye,
6775
6781
  operation: "pendingCreate",
@@ -6829,7 +6835,7 @@ const Mc = (e) => {
6829
6835
  }
6830
6836
  };
6831
6837
  function ue() {
6832
- const X = Rc[a];
6838
+ const X = kc[a];
6833
6839
  if (a === "graph")
6834
6840
  return Ln(o.get("graph").arch).string;
6835
6841
  {
@@ -6921,7 +6927,7 @@ const Mc = (e) => {
6921
6927
  });
6922
6928
  const Ke = M;
6923
6929
  return b ? /* @__PURE__ */ n(Me, {}) : /* @__PURE__ */ P(ne, {
6924
- children: [/* @__PURE__ */ n(Ac, {
6930
+ children: [/* @__PURE__ */ n(Rc, {
6925
6931
  mode: a,
6926
6932
  title: ue(),
6927
6933
  readOnly: U,
@@ -6972,7 +6978,7 @@ const Mc = (e) => {
6972
6978
  }
6973
6979
  })]
6974
6980
  });
6975
- }, Ec = (e) => {
6981
+ }, $c = (e) => {
6976
6982
  const {
6977
6983
  ooui: t
6978
6984
  } = e, {
@@ -7020,7 +7026,7 @@ const Mc = (e) => {
7020
7026
  message: f,
7021
7027
  type: "error",
7022
7028
  banner: !0
7023
- }) : /* @__PURE__ */ n(cc, {
7029
+ }) : /* @__PURE__ */ n(dc, {
7024
7030
  initialView: l,
7025
7031
  children: /* @__PURE__ */ n(ve, {
7026
7032
  required: s,
@@ -7036,15 +7042,15 @@ const Mc = (e) => {
7036
7042
  throw new Error();
7037
7043
  },
7038
7044
  ...e,
7039
- children: /* @__PURE__ */ n(Mc, {
7045
+ children: /* @__PURE__ */ n(Ec, {
7040
7046
  ooui: t,
7041
7047
  views: m
7042
7048
  })
7043
7049
  })
7044
7050
  });
7045
7051
  }, {
7046
- useToken: $c
7047
- } = Pe, Lc = (e) => {
7052
+ useToken: Lc
7053
+ } = Pe, Nc = (e) => {
7048
7054
  const {
7049
7055
  ooui: t
7050
7056
  } = e, {
@@ -7054,11 +7060,11 @@ const Mc = (e) => {
7054
7060
  required: r,
7055
7061
  type: "number",
7056
7062
  ...e,
7057
- children: /* @__PURE__ */ n(Nc, {
7063
+ children: /* @__PURE__ */ n(Pc, {
7058
7064
  ooui: t
7059
7065
  })
7060
7066
  });
7061
- }, Nc = (e) => {
7067
+ }, Pc = (e) => {
7062
7068
  const {
7063
7069
  ooui: t,
7064
7070
  value: r,
@@ -7069,7 +7075,7 @@ const Mc = (e) => {
7069
7075
  required: a
7070
7076
  } = t, {
7071
7077
  token: l
7072
- } = $c(), u = a && !s ? {
7078
+ } = Lc(), u = a && !s ? {
7073
7079
  backgroundColor: l.colorPrimaryBg
7074
7080
  } : void 0, c = de(), [f, d] = O(), m = Y(Ne), {
7075
7081
  elementHasLostFocus: y
@@ -7084,7 +7090,7 @@ const Mc = (e) => {
7084
7090
  c.current = v.target.value, d(v.target.value);
7085
7091
  }
7086
7092
  async function g() {
7087
- p(El(f)), await new Promise((v) => setTimeout(v, 300)), y == null || y();
7093
+ p($l(f)), await new Promise((v) => setTimeout(v, 300)), y == null || y();
7088
7094
  }
7089
7095
  return /* @__PURE__ */ n(nt, {
7090
7096
  value: f,
@@ -7118,9 +7124,9 @@ function Do(e) {
7118
7124
  });
7119
7125
  }
7120
7126
  const {
7121
- TabPane: Pc
7127
+ TabPane: Hc
7122
7128
  } = Vr;
7123
- function Hc(e) {
7129
+ function Bc(e) {
7124
7130
  const {
7125
7131
  ooui: t,
7126
7132
  responsiveBehaviour: r
@@ -7134,7 +7140,7 @@ function Hc(e) {
7134
7140
  return /* @__PURE__ */ n(Vr, {
7135
7141
  defaultActiveKey: "1",
7136
7142
  tabPosition: t.tabPosition,
7137
- children: i.filter((s) => !s.invisible).map((s) => /* @__PURE__ */ n(Pc, {
7143
+ children: i.filter((s) => !s.invisible).map((s) => /* @__PURE__ */ n(Hc, {
7138
7144
  tab: /* @__PURE__ */ P(ne, {
7139
7145
  children: [o(s.icon), " ", s.label]
7140
7146
  }),
@@ -7147,10 +7153,10 @@ function Hc(e) {
7147
7153
  });
7148
7154
  }
7149
7155
  const {
7150
- useToken: Bc
7156
+ useToken: jc
7151
7157
  } = Pe, {
7152
7158
  TextArea: An
7153
- } = nt, jc = (e) => {
7159
+ } = nt, Kc = (e) => {
7154
7160
  const {
7155
7161
  ooui: t
7156
7162
  } = e, {
@@ -7161,7 +7167,7 @@ const {
7161
7167
  translatable: a
7162
7168
  } = t, {
7163
7169
  token: l
7164
- } = Bc(), u = o && !i ? {
7170
+ } = jc(), u = o && !i ? {
7165
7171
  backgroundColor: l.colorPrimaryBg
7166
7172
  } : void 0, c = Y(Ne), {
7167
7173
  elementHasLostFocus: f
@@ -7169,7 +7175,7 @@ const {
7169
7175
  return /* @__PURE__ */ n(ve, {
7170
7176
  required: o,
7171
7177
  ...e,
7172
- children: a ? /* @__PURE__ */ n(Kc, {
7178
+ children: a ? /* @__PURE__ */ n(Yc, {
7173
7179
  field: r,
7174
7180
  height: s,
7175
7181
  requiredStyle: u
@@ -7183,7 +7189,7 @@ const {
7183
7189
  onBlur: f
7184
7190
  })
7185
7191
  });
7186
- }, Kc = ({
7192
+ }, Yc = ({
7187
7193
  value: e,
7188
7194
  field: t,
7189
7195
  requiredStyle: r,
@@ -7268,7 +7274,7 @@ const {
7268
7274
  })
7269
7275
  })]
7270
7276
  });
7271
- }, Yc = (e) => {
7277
+ }, Wc = (e) => {
7272
7278
  const {
7273
7279
  ooui: t
7274
7280
  } = e, {
@@ -7282,7 +7288,7 @@ const {
7282
7288
  children: [o ? /* @__PURE__ */ n(o, {}) : null, r]
7283
7289
  })
7284
7290
  });
7285
- }, Wc = ({
7291
+ }, Uc = ({
7286
7292
  model: e,
7287
7293
  context: t,
7288
7294
  locale: r,
@@ -7303,7 +7309,7 @@ const {
7303
7309
  ]);
7304
7310
  const { datas: T } = await H.getHandler().exportData({
7305
7311
  model: e,
7306
- fields: Zc({
7312
+ fields: Xc({
7307
7313
  keys: g.selectedKeys,
7308
7314
  fields: l.current
7309
7315
  }),
@@ -7332,7 +7338,7 @@ const {
7332
7338
  fields: []
7333
7339
  });
7334
7340
  for (const [V, _] of Object.entries(b))
7335
- b[V].string = Gc({
7341
+ b[V].string = qc({
7336
7342
  parentTitle: T.string,
7337
7343
  title: _.string
7338
7344
  });
@@ -7343,7 +7349,7 @@ const {
7343
7349
  },
7344
7350
  [l.current, e, t]
7345
7351
  ), m = Le(async () => {
7346
- const g = await qc({ model: e, context: t }), v = await Jc({
7352
+ const g = await zc({ model: e, context: t }), v = await Zc({
7347
7353
  predefinedExports: g,
7348
7354
  fields: l.current,
7349
7355
  onGetFieldChilds: d
@@ -7425,7 +7431,7 @@ const {
7425
7431
  continue;
7426
7432
  const s = Vo(o);
7427
7433
  r.push({
7428
- key: Uc({ key: i, parentKey: t }),
7434
+ key: Gc({ key: i, parentKey: t }),
7429
7435
  title: o.string,
7430
7436
  tooltip: o.help,
7431
7437
  required: o.required,
@@ -7433,7 +7439,7 @@ const {
7433
7439
  });
7434
7440
  }
7435
7441
  return r;
7436
- }, Vo = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many", Uc = ({
7442
+ }, Vo = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many", Gc = ({
7437
7443
  parentKey: e,
7438
7444
  key: t
7439
7445
  }) => `${e ? e + "/" : ""}${t}`, Lt = (e) => e.indexOf("/") === -1 ? e : e.split("/").slice(0, -1).join("/"), Rn = (e) => {
@@ -7441,10 +7447,10 @@ const {
7441
7447
  return e;
7442
7448
  const t = e.split("/");
7443
7449
  return t[t.length - 1];
7444
- }, kn = (e, t) => e.indexOf("/") === -1 ? t["/"] : t[Lt(e)], Gc = ({
7450
+ }, kn = (e, t) => e.indexOf("/") === -1 ? t["/"] : t[Lt(e)], qc = ({
7445
7451
  title: e,
7446
7452
  parentTitle: t
7447
- }) => `${t ? t + " \u2192 " : ""}${e}`, qc = async ({
7453
+ }) => `${t ? t + " \u2192 " : ""}${e}`, zc = async ({
7448
7454
  model: e,
7449
7455
  context: t
7450
7456
  }) => {
@@ -7464,10 +7470,10 @@ const {
7464
7470
  key: o.find((u) => u.id === a).name
7465
7471
  }))
7466
7472
  }));
7467
- }, zc = ({
7473
+ }, Jc = ({
7468
7474
  fields: e,
7469
7475
  keys: t
7470
- }) => Xc([
7476
+ }) => Qc([
7471
7477
  ...new Set(
7472
7478
  t.filter((r) => {
7473
7479
  var i, o, s;
@@ -7481,27 +7487,27 @@ const {
7481
7487
  }
7482
7488
  }).map((r) => Lt(r))
7483
7489
  )
7484
- ]), Jc = async ({
7490
+ ]), Zc = async ({
7485
7491
  predefinedExports: e,
7486
7492
  fields: t,
7487
7493
  onGetFieldChilds: r
7488
7494
  }) => {
7489
7495
  const i = e.flatMap(
7490
7496
  (a) => a.fields.map((l) => l.key)
7491
- ), o = zc({
7497
+ ), o = Jc({
7492
7498
  fields: t,
7493
7499
  keys: i
7494
7500
  }), s = [];
7495
7501
  for (const a of o)
7496
7502
  s.push({ key: a, childs: await r(a) });
7497
7503
  return s;
7498
- }, Zc = ({
7504
+ }, Xc = ({
7499
7505
  keys: e,
7500
7506
  fields: t
7501
7507
  }) => e.map((r) => {
7502
7508
  const i = Rn(r), s = kn(r, t)[i];
7503
7509
  return Vo(s) ? `${r}/id` : r;
7504
- }), Xc = (e) => {
7510
+ }), Qc = (e) => {
7505
7511
  const t = /* @__PURE__ */ new Map(), r = [];
7506
7512
  for (const i of e) {
7507
7513
  const o = i.split("/");
@@ -7515,7 +7521,7 @@ const {
7515
7521
  const s = i.split("/").length, a = o.split("/").length;
7516
7522
  return s - a;
7517
7523
  }), r;
7518
- }, Qc = (e) => {
7524
+ }, ed = (e) => {
7519
7525
  const {
7520
7526
  visible: t,
7521
7527
  locale: r,
@@ -7534,7 +7540,7 @@ const {
7534
7540
  onGetPredefinedExports: p,
7535
7541
  onSavePredefinedExport: h,
7536
7542
  onRemovePredefinedExport: g
7537
- } = Wc({
7543
+ } = Uc({
7538
7544
  model: o,
7539
7545
  context: s,
7540
7546
  domain: u,
@@ -7557,14 +7563,14 @@ const {
7557
7563
  onSavePredefinedExport: h,
7558
7564
  onRemovePredefinedExport: g
7559
7565
  });
7560
- }, ed = (e) => {
7566
+ }, td = (e) => {
7561
7567
  const {
7562
7568
  ooui: t
7563
7569
  } = e;
7564
7570
  return /* @__PURE__ */ n(Co, {
7565
7571
  ooui: t
7566
7572
  });
7567
- }, td = (e) => {
7573
+ }, nd = (e) => {
7568
7574
  const {
7569
7575
  ooui: t
7570
7576
  } = e;
@@ -7703,24 +7709,24 @@ var Ao = { exports: {} };
7703
7709
  };
7704
7710
  });
7705
7711
  })(Ao);
7706
- const nd = Ao.exports;
7707
- dt.extend(nd);
7708
- const rd = (e) => {
7712
+ const rd = Ao.exports;
7713
+ dt.extend(rd);
7714
+ const od = (e) => {
7709
7715
  const {
7710
7716
  ooui: t
7711
7717
  } = e;
7712
7718
  return /* @__PURE__ */ n(ve, {
7713
7719
  ...e,
7714
- children: /* @__PURE__ */ n(od, {
7720
+ children: /* @__PURE__ */ n(id, {
7715
7721
  ooui: t
7716
7722
  })
7717
7723
  });
7718
- }, od = (e) => /* @__PURE__ */ n(Dr, {
7724
+ }, id = (e) => /* @__PURE__ */ n(Dr, {
7719
7725
  onChange: (r, i) => {
7720
7726
  e.onChange && e.onChange(i);
7721
7727
  },
7722
7728
  value: e.value ? dt(e.value, "HH:mm:ss") : void 0
7723
- }), id = (e) => {
7729
+ }), sd = (e) => {
7724
7730
  const {
7725
7731
  ooui: t
7726
7732
  } = e, {
@@ -7729,11 +7735,11 @@ const rd = (e) => {
7729
7735
  return /* @__PURE__ */ n(ve, {
7730
7736
  required: r,
7731
7737
  ...e,
7732
- children: /* @__PURE__ */ n(sd, {
7738
+ children: /* @__PURE__ */ n(ad, {
7733
7739
  ooui: t
7734
7740
  })
7735
7741
  });
7736
- }, sd = (e) => {
7742
+ }, ad = (e) => {
7737
7743
  const {
7738
7744
  value: t,
7739
7745
  onChange: r,
@@ -7790,8 +7796,8 @@ const rd = (e) => {
7790
7796
  })]
7791
7797
  });
7792
7798
  }, {
7793
- useToken: ad
7794
- } = Pe, ld = (e) => {
7799
+ useToken: ld
7800
+ } = Pe, cd = (e) => {
7795
7801
  const {
7796
7802
  ooui: t
7797
7803
  } = e, {
@@ -7800,11 +7806,11 @@ const rd = (e) => {
7800
7806
  return /* @__PURE__ */ n(ve, {
7801
7807
  required: r,
7802
7808
  ...e,
7803
- children: /* @__PURE__ */ n(cd, {
7809
+ children: /* @__PURE__ */ n(dd, {
7804
7810
  ooui: t
7805
7811
  })
7806
7812
  });
7807
- }, cd = (e) => {
7813
+ }, dd = (e) => {
7808
7814
  const {
7809
7815
  ooui: t,
7810
7816
  value: r,
@@ -7815,7 +7821,7 @@ const rd = (e) => {
7815
7821
  filenameField: a
7816
7822
  } = t, {
7817
7823
  token: l
7818
- } = ad(), u = s && !o ? {
7824
+ } = ld(), u = s && !o ? {
7819
7825
  backgroundColor: l.colorPrimaryBg
7820
7826
  } : void 0, c = de(null), {
7821
7827
  setFieldValue: f,
@@ -8079,13 +8085,13 @@ function Ro(e) {
8079
8085
  });
8080
8086
  }
8081
8087
  const {
8082
- confirm: dd
8083
- } = Ge, ud = ({
8088
+ confirm: ud
8089
+ } = Ge, fd = ({
8084
8090
  onOk: e,
8085
8091
  onCancel: t,
8086
8092
  lang: r
8087
8093
  }) => {
8088
- dd({
8094
+ ud({
8089
8095
  title: Oe("unsavedChanges", r),
8090
8096
  icon: /* @__PURE__ */ n(pt, {}),
8091
8097
  centered: !0,
@@ -8111,7 +8117,7 @@ async function ko(e, t, r) {
8111
8117
  children: ["ID: " + a, " ", /* @__PURE__ */ n("br", {}), r("createdBy") + ": " + s[1], " ", /* @__PURE__ */ n("br", {}), r("creationDate") + ": " + o, " ", /* @__PURE__ */ n("br", {}), r("lastUpdatedBy") + ": " + u[1], " ", /* @__PURE__ */ n("br", {}), r("lastUpdatedDate") + ": " + l]
8112
8118
  }));
8113
8119
  }
8114
- const fd = (e) => {
8120
+ const md = (e) => {
8115
8121
  const {
8116
8122
  numberOfAttachments: t,
8117
8123
  disabled: r
@@ -8130,12 +8136,12 @@ const fd = (e) => {
8130
8136
  onVisibleChange: (u) => a(u),
8131
8137
  visible: s,
8132
8138
  placement: "bottom",
8133
- content: md(e, a, o),
8139
+ content: hd(e, a, o),
8134
8140
  title: i("attachments"),
8135
8141
  arrowContent: null,
8136
8142
  children: l
8137
8143
  });
8138
- }, md = (e, t, r) => {
8144
+ }, hd = (e, t, r) => {
8139
8145
  const {
8140
8146
  attachments: i = [],
8141
8147
  loading: o,
@@ -8221,7 +8227,7 @@ const fd = (e) => {
8221
8227
  })]
8222
8228
  });
8223
8229
  };
8224
- function hd(e) {
8230
+ function pd(e) {
8225
8231
  const {
8226
8232
  attachments: t,
8227
8233
  disabled: r = !1,
@@ -8279,7 +8285,7 @@ function hd(e) {
8279
8285
  return pe(() => {
8280
8286
  p();
8281
8287
  }, [p]), /* @__PURE__ */ P(ne, {
8282
- children: [/* @__PURE__ */ n(fd, {
8288
+ children: [/* @__PURE__ */ n(md, {
8283
8289
  numberOfAttachments: t.length,
8284
8290
  attachments: c,
8285
8291
  disabled: r,
@@ -8299,7 +8305,7 @@ function hd(e) {
8299
8305
  })]
8300
8306
  });
8301
8307
  }
8302
- function pd({
8308
+ function gd({
8303
8309
  toolbar: e
8304
8310
  }) {
8305
8311
  const {
@@ -8338,7 +8344,7 @@ function pd({
8338
8344
  } = A || {};
8339
8345
  function M($) {
8340
8346
  if (s) {
8341
- ud({
8347
+ fd({
8342
8348
  lang: w,
8343
8349
  onOk: () => {
8344
8350
  $();
@@ -8532,7 +8538,7 @@ function pd({
8532
8538
  action_type: $.type
8533
8539
  });
8534
8540
  }
8535
- }), /* @__PURE__ */ n(hd, {
8541
+ }), /* @__PURE__ */ n(pd, {
8536
8542
  disabled: z,
8537
8543
  attachments: D,
8538
8544
  onAddNewAttachment: async () => {
@@ -8597,7 +8603,7 @@ async function Ft({
8597
8603
  };
8598
8604
  }
8599
8605
  const {
8600
- useToken: gd
8606
+ useToken: yd
8601
8607
  } = Pe, Mo = (e) => {
8602
8608
  const {
8603
8609
  ooui: t,
@@ -8611,7 +8617,7 @@ const {
8611
8617
  required: u
8612
8618
  } = t, {
8613
8619
  token: c
8614
- } = gd(), f = u && !l ? {
8620
+ } = yd(), f = u && !l ? {
8615
8621
  backgroundColor: c.colorPrimaryBg
8616
8622
  } : void 0, d = Y(Ne), {
8617
8623
  elementHasLostFocus: m
@@ -8674,7 +8680,7 @@ const {
8674
8680
  })
8675
8681
  })]
8676
8682
  });
8677
- }, yd = (e) => {
8683
+ }, vd = (e) => {
8678
8684
  const {
8679
8685
  ooui: t
8680
8686
  } = e, {
@@ -8688,7 +8694,7 @@ const {
8688
8694
  valueValidator: (i) => i ? Pi(i) : !1
8689
8695
  })
8690
8696
  });
8691
- }, vd = (e) => {
8697
+ }, wd = (e) => {
8692
8698
  const {
8693
8699
  ooui: t
8694
8700
  } = e, {
@@ -8703,7 +8709,7 @@ const {
8703
8709
  valueValidator: (i) => i ? Hi(i) : !1
8704
8710
  })
8705
8711
  });
8706
- }, wd = (e) => {
8712
+ }, bd = (e) => {
8707
8713
  const {
8708
8714
  visible: t,
8709
8715
  onIdSubmitted: r,
@@ -8773,7 +8779,7 @@ const {
8773
8779
  })
8774
8780
  });
8775
8781
  }, {
8776
- useToken: bd
8782
+ useToken: xd
8777
8783
  } = Pe;
8778
8784
  function Eo(e) {
8779
8785
  const {
@@ -8781,7 +8787,7 @@ function Eo(e) {
8781
8787
  ...r
8782
8788
  } = e, {
8783
8789
  token: i
8784
- } = bd();
8790
+ } = xd();
8785
8791
  return /* @__PURE__ */ P("div", {
8786
8792
  style: {
8787
8793
  position: "relative"
@@ -8815,7 +8821,7 @@ function Eo(e) {
8815
8821
  })]
8816
8822
  });
8817
8823
  }
8818
- function xd({
8824
+ function Cd({
8819
8825
  refreshGraph: e
8820
8826
  }) {
8821
8827
  const {
@@ -8866,9 +8872,9 @@ function xd({
8866
8872
  });
8867
8873
  }
8868
8874
  const {
8869
- useToken: Cd
8875
+ useToken: Sd
8870
8876
  } = Pe, {
8871
- Title: Sd,
8877
+ Title: Td,
8872
8878
  Text: Xt
8873
8879
  } = an;
8874
8880
  function yn(e) {
@@ -8887,7 +8893,7 @@ function yn(e) {
8887
8893
  t: f
8888
8894
  } = Y(we), {
8889
8895
  token: d
8890
- } = Cd();
8896
+ } = Sd();
8891
8897
  function m() {
8892
8898
  if ((o == null ? void 0 : o.type) === "form")
8893
8899
  return s ? u === 0 ? /* @__PURE__ */ P(ne, {
@@ -8942,7 +8948,7 @@ function yn(e) {
8942
8948
  align: "middle",
8943
8949
  children: [/* @__PURE__ */ P(le, {
8944
8950
  flex: 2,
8945
- children: [/* @__PURE__ */ n(Sd, {
8951
+ children: [/* @__PURE__ */ n(Td, {
8946
8952
  level: 3,
8947
8953
  style: {
8948
8954
  marginBottom: 0
@@ -8961,7 +8967,7 @@ function yn(e) {
8961
8967
  })]
8962
8968
  });
8963
8969
  }
8964
- const Td = (e) => {
8970
+ const Fd = (e) => {
8965
8971
  const {
8966
8972
  viewData: t,
8967
8973
  visible: r,
@@ -9029,7 +9035,7 @@ const Td = (e) => {
9029
9035
  return !r || !t ? null : /* @__PURE__ */ P(ne, {
9030
9036
  children: [/* @__PURE__ */ n(yn, {
9031
9037
  title: t.name,
9032
- children: /* @__PURE__ */ n(xd, {
9038
+ children: /* @__PURE__ */ n(Cd, {
9033
9039
  refreshGraph: () => {
9034
9040
  u.current.refresh();
9035
9041
  }
@@ -9061,7 +9067,7 @@ const Td = (e) => {
9061
9067
  manualIds: A ? y == null ? void 0 : y.map((j) => j.id) : void 0
9062
9068
  })]
9063
9069
  });
9064
- }, Fd = (e) => {
9070
+ }, Od = (e) => {
9065
9071
  const {
9066
9072
  visible: t,
9067
9073
  formRef: r,
@@ -9078,7 +9084,7 @@ const Td = (e) => {
9078
9084
  } = e;
9079
9085
  return t ? /* @__PURE__ */ P(ne, {
9080
9086
  children: [/* @__PURE__ */ n(yn, {
9081
- children: /* @__PURE__ */ n(pd, {
9087
+ children: /* @__PURE__ */ n(gd, {
9082
9088
  toolbar: a == null ? void 0 : a.toolbar
9083
9089
  })
9084
9090
  }), /* @__PURE__ */ n(Ut, {
@@ -9097,7 +9103,7 @@ const Td = (e) => {
9097
9103
  })]
9098
9104
  }) : null;
9099
9105
  };
9100
- function Od(e) {
9106
+ function _d(e) {
9101
9107
  const {
9102
9108
  onSearch: t,
9103
9109
  disabled: r = !1,
@@ -9164,10 +9170,10 @@ function Od(e) {
9164
9170
  })
9165
9171
  });
9166
9172
  }
9167
- const _d = Je.createContext({
9173
+ const Id = Je.createContext({
9168
9174
  previewFeatures: !1
9169
9175
  });
9170
- function Id(e) {
9176
+ function Dd(e) {
9171
9177
  var z;
9172
9178
  const {
9173
9179
  availableViews: t,
@@ -9199,7 +9205,7 @@ function Id(e) {
9199
9205
  toolbar: w
9200
9206
  } = e, {
9201
9207
  previewFeatures: S
9202
- } = Y(_d), {
9208
+ } = Y(Id), {
9203
9209
  t: L,
9204
9210
  lang: A
9205
9211
  } = Y(we), F = Y(Et), {
@@ -9269,7 +9275,7 @@ function Id(e) {
9269
9275
  children: [T && /* @__PURE__ */ P(ne, {
9270
9276
  children: [/* @__PURE__ */ n(Me, {}), vt(), vt()]
9271
9277
  }), C ? null : /* @__PURE__ */ P(ne, {
9272
- children: [/* @__PURE__ */ n(Od, {
9278
+ children: [/* @__PURE__ */ n(_d, {
9273
9279
  disabled: l || a || T,
9274
9280
  searchText: v,
9275
9281
  onSearch: (U) => {
@@ -9408,7 +9414,7 @@ function Id(e) {
9408
9414
  I(!0);
9409
9415
  },
9410
9416
  disabled: l || a || T || N
9411
- }), /* @__PURE__ */ n(Qc, {
9417
+ }), /* @__PURE__ */ n(ed, {
9412
9418
  visible: M,
9413
9419
  locale: A,
9414
9420
  onClose: () => I(!1),
@@ -9428,7 +9434,7 @@ function vt() {
9428
9434
  className: "inline-block w-2"
9429
9435
  });
9430
9436
  }
9431
- const Dd = (e) => {
9437
+ const Vd = (e) => {
9432
9438
  const {
9433
9439
  visible: t,
9434
9440
  searchTreeRef: r,
@@ -9449,7 +9455,7 @@ const Dd = (e) => {
9449
9455
  } = Y(Qe);
9450
9456
  return t ? /* @__PURE__ */ P(ne, {
9451
9457
  children: [/* @__PURE__ */ n(yn, {
9452
- children: /* @__PURE__ */ n(Id, {
9458
+ children: /* @__PURE__ */ n(Dd, {
9453
9459
  toolbar: a == null ? void 0 : a.toolbar,
9454
9460
  parentContext: o,
9455
9461
  treeExpandable: (a == null ? void 0 : a.isExpandable) || !1
@@ -9475,7 +9481,7 @@ const Dd = (e) => {
9475
9481
  }
9476
9482
  })]
9477
9483
  }) : null;
9478
- }, Xn = Je.createContext(null), Vd = (e) => {
9484
+ }, Xn = Je.createContext(null), Ad = (e) => {
9479
9485
  const [t, r] = O(!1), [i, o] = O(!1), {
9480
9486
  children: s,
9481
9487
  dashboardRef: a,
@@ -9493,7 +9499,7 @@ const Dd = (e) => {
9493
9499
  children: s
9494
9500
  });
9495
9501
  };
9496
- function Ad() {
9502
+ function Rd() {
9497
9503
  const {
9498
9504
  isLoading: e,
9499
9505
  dashboardRef: t,
@@ -9517,7 +9523,7 @@ function Ad() {
9517
9523
  onClick: () => {
9518
9524
  i(!r);
9519
9525
  }
9520
- }), Rd(), /* @__PURE__ */ n(qe, {
9526
+ }), kd(), /* @__PURE__ */ n(qe, {
9521
9527
  icon: /* @__PURE__ */ n(Oi, {}),
9522
9528
  tooltip: o("configDashboard"),
9523
9529
  disabled: e,
@@ -9536,25 +9542,25 @@ function Ad() {
9536
9542
  })]
9537
9543
  });
9538
9544
  }
9539
- function Rd() {
9545
+ function kd() {
9540
9546
  return /* @__PURE__ */ n("div", {
9541
9547
  className: "inline-block w-2"
9542
9548
  });
9543
9549
  }
9544
- const kd = (e) => {
9550
+ const Md = (e) => {
9545
9551
  const {
9546
9552
  dashboardData: t
9547
9553
  } = e, r = de(), i = Y(st), {
9548
9554
  openShortcut: o
9549
9555
  } = i || {};
9550
- return t ? /* @__PURE__ */ P(Vd, {
9556
+ return t ? /* @__PURE__ */ P(Ad, {
9551
9557
  dashboardRef: r,
9552
9558
  openAction: (s) => {
9553
9559
  o(s);
9554
9560
  },
9555
9561
  children: [/* @__PURE__ */ n(yn, {
9556
- children: /* @__PURE__ */ n(Ad, {})
9557
- }), /* @__PURE__ */ n(Ud, {
9562
+ children: /* @__PURE__ */ n(Rd, {})
9563
+ }), /* @__PURE__ */ n(Gd, {
9558
9564
  ref: r,
9559
9565
  model: t.model,
9560
9566
  id: t.id,
@@ -9563,7 +9569,7 @@ const kd = (e) => {
9563
9569
  })]
9564
9570
  }) : null;
9565
9571
  };
9566
- async function Md(e) {
9572
+ async function Ed(e) {
9567
9573
  const t = await Promise.all(
9568
9574
  e.map(async (i) => {
9569
9575
  try {
@@ -9578,7 +9584,7 @@ async function Md(e) {
9578
9584
  info: t[o]
9579
9585
  })).filter((i) => i.info !== null);
9580
9586
  }
9581
- function Ed(e, t) {
9587
+ function $d(e, t) {
9582
9588
  const {
9583
9589
  domain: r,
9584
9590
  model: i,
@@ -9634,7 +9640,7 @@ function Ed(e, t) {
9634
9640
  viewTuple: me
9635
9641
  });
9636
9642
  }
9637
- const Ee = await Md(Fe);
9643
+ const Ee = await Ed(Fe);
9638
9644
  for (const me of Ee) {
9639
9645
  if (!me)
9640
9646
  continue;
@@ -9749,7 +9755,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
9749
9755
  return D.map((te) => {
9750
9756
  switch (te.type) {
9751
9757
  case "form":
9752
- return /* @__PURE__ */ n(Fd, {
9758
+ return /* @__PURE__ */ n(Od, {
9753
9759
  formRef: ee,
9754
9760
  currentId: x,
9755
9761
  visible: v.type === te.type && v.view_id === te.view_id,
@@ -9764,7 +9770,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
9764
9770
  setCurrentItemIndex: A
9765
9771
  }, `${te.type}-${te.view_id}`);
9766
9772
  case "tree":
9767
- return /* @__PURE__ */ n(Dd, {
9773
+ return /* @__PURE__ */ n(Vd, {
9768
9774
  visible: v.type === te.type && v.view_id === te.view_id,
9769
9775
  limit: g,
9770
9776
  model: i,
@@ -9781,7 +9787,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
9781
9787
  setCurrentView: ge
9782
9788
  }, `${te.type}-${te.view_id}`);
9783
9789
  case "graph":
9784
- return /* @__PURE__ */ n(Td, {
9790
+ return /* @__PURE__ */ n(Fd, {
9785
9791
  visible: v.type === te.type && v.view_id === te.view_id,
9786
9792
  viewData: te,
9787
9793
  model: i,
@@ -9791,7 +9797,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
9791
9797
  formView: D.find((Fe) => Fe.type === "form")
9792
9798
  }, `${te.type}-${te.view_id}`);
9793
9799
  case "dashboard":
9794
- return /* @__PURE__ */ n(kd, {
9800
+ return /* @__PURE__ */ n(Md, {
9795
9801
  dashboardData: te
9796
9802
  }, `${te.type}-${te.view_id}`);
9797
9803
  }
@@ -9806,7 +9812,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
9806
9812
  ge(te);
9807
9813
  }
9808
9814
  }
9809
- return V ? /* @__PURE__ */ n(Me, {}) : v ? /* @__PURE__ */ P(dl, {
9815
+ return V ? /* @__PURE__ */ n(Me, {}) : v ? /* @__PURE__ */ P(ul, {
9810
9816
  title: a,
9811
9817
  currentView: v,
9812
9818
  setCurrentView: ge,
@@ -9831,7 +9837,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
9831
9837
  searchTreeNameSearch: U,
9832
9838
  goToResourceId: Ve,
9833
9839
  limit: g,
9834
- children: [je(), /* @__PURE__ */ n(wd, {
9840
+ children: [je(), /* @__PURE__ */ n(bd, {
9835
9841
  visible: j,
9836
9842
  onIdSubmitted: Ve,
9837
9843
  isSearching: W,
@@ -9841,8 +9847,8 @@ Please, make sure the view ids on the fields_view_get responses are the same as
9841
9847
  })]
9842
9848
  }) : null;
9843
9849
  }
9844
- const $o = bt(Ed);
9845
- async function $d({
9850
+ const $o = bt($d);
9851
+ async function Ld({
9846
9852
  actionId: e,
9847
9853
  rootContext: t = {},
9848
9854
  globalValues: r = {}
@@ -9894,7 +9900,7 @@ async function $d({
9894
9900
  treeExpandable: y
9895
9901
  };
9896
9902
  }
9897
- const Ld = Yi(Wi), Nd = (e) => {
9903
+ const Nd = Yi(Wi), Pd = (e) => {
9898
9904
  const {
9899
9905
  children: t = [],
9900
9906
  onPositionItemsChanged: r
@@ -9908,7 +9914,7 @@ const Ld = Yi(Wi), Nd = (e) => {
9908
9914
  children: o
9909
9915
  }, a);
9910
9916
  });
9911
- return /* @__PURE__ */ n(Ld, {
9917
+ return /* @__PURE__ */ n(Nd, {
9912
9918
  className: "layout",
9913
9919
  cols: {
9914
9920
  lg: 12,
@@ -9931,10 +9937,10 @@ const Ld = Yi(Wi), Nd = (e) => {
9931
9937
  children: i
9932
9938
  });
9933
9939
  }, {
9934
- useToken: Pd
9940
+ useToken: Hd
9935
9941
  } = Pe, {
9936
- Text: Hd
9937
- } = an, Bd = (e) => {
9942
+ Text: Bd
9943
+ } = an, jd = (e) => {
9938
9944
  const {
9939
9945
  title: t,
9940
9946
  children: r,
@@ -9942,7 +9948,7 @@ const Ld = Yi(Wi), Nd = (e) => {
9942
9948
  openAction: o
9943
9949
  } = e, {
9944
9950
  token: s
9945
- } = Pd();
9951
+ } = Hd();
9946
9952
  return /* @__PURE__ */ P("div", {
9947
9953
  className: "shadow-md",
9948
9954
  style: {
@@ -9970,7 +9976,7 @@ const Ld = Yi(Wi), Nd = (e) => {
9970
9976
  cursor: "grab",
9971
9977
  overflow: "hidden"
9972
9978
  },
9973
- children: /* @__PURE__ */ n(Hd, {
9979
+ children: /* @__PURE__ */ n(Bd, {
9974
9980
  ellipsis: !0,
9975
9981
  children: t
9976
9982
  })
@@ -9994,8 +10000,8 @@ const Ld = Yi(Wi), Nd = (e) => {
9994
10000
  })]
9995
10001
  }), r]
9996
10002
  });
9997
- }, jd = 80;
9998
- function Kd(e) {
10003
+ }, Kd = 80;
10004
+ function Yd(e) {
9999
10005
  const {
10000
10006
  action: t,
10001
10007
  model: r,
@@ -10004,7 +10010,7 @@ function Kd(e) {
10004
10010
  domain: s = [],
10005
10011
  visible: a = !0,
10006
10012
  parentContext: l = {}
10007
- } = e, [u, c] = O(!1), [f, d] = O(!1), [m, y] = O(), [p, h] = O(), [g, v] = O(), [T, D] = O(1), [b, V] = O(0), _ = de(jd), E = de([]), [x, C] = O(0), [w, S] = O([]), [L, A] = O(void 0), [F, k] = O(), [M, I] = O(), [N, R] = O(), [j, q] = O(!1), W = de([]), z = (J) => {
10013
+ } = e, [u, c] = O(!1), [f, d] = O(!1), [m, y] = O(), [p, h] = O(), [g, v] = O(), [T, D] = O(1), [b, V] = O(0), _ = de(Kd), E = de([]), [x, C] = O(0), [w, S] = O([]), [L, A] = O(void 0), [F, k] = O(), [M, I] = O(), [N, R] = O(), [j, q] = O(!1), W = de([]), z = (J) => {
10008
10014
  q(!0), D(J), V((J - 1) * _.current);
10009
10015
  }, U = async () => {
10010
10016
  const J = W.current.length > 0 ? W.current : s, fe = hn(E.current, J), {
@@ -10136,7 +10142,7 @@ function Kd(e) {
10136
10142
  }
10137
10143
  }) : Q();
10138
10144
  }
10139
- const Yd = (e) => {
10145
+ const Wd = (e) => {
10140
10146
  const {
10141
10147
  model: t
10142
10148
  } = e, [r, i] = O();
@@ -10164,7 +10170,7 @@ const Yd = (e) => {
10164
10170
  })
10165
10171
  });
10166
10172
  }, On = "line_ids";
10167
- function Wd(e, t) {
10173
+ function Ud(e, t) {
10168
10174
  const {
10169
10175
  model: r,
10170
10176
  context: i = {},
@@ -10244,7 +10250,7 @@ function Wd(e, t) {
10244
10250
  values: S
10245
10251
  } = w;
10246
10252
  if (S.action_id && S.action_id.length > 0) {
10247
- const L = parseInt(S.action_id[0], 10), A = await $d({
10253
+ const L = parseInt(S.action_id[0], 10), A = await Ld({
10248
10254
  actionId: L,
10249
10255
  rootContext: i
10250
10256
  });
@@ -10309,7 +10315,7 @@ function Wd(e, t) {
10309
10315
  message: f,
10310
10316
  type: "error",
10311
10317
  banner: !0
10312
- })) : u ? /* @__PURE__ */ n(rt, {}) : /* @__PURE__ */ n(Nd, {
10318
+ })) : u ? /* @__PURE__ */ n(rt, {}) : /* @__PURE__ */ n(Pd, {
10313
10319
  onPositionItemsChanged: _,
10314
10320
  children: a.map((x, C) => {
10315
10321
  const {
@@ -10351,12 +10357,12 @@ function Wd(e, t) {
10351
10357
  limit: z
10352
10358
  });
10353
10359
  else if ((W == null ? void 0 : W.type) === "form")
10354
- $ = /* @__PURE__ */ n(Yd, {
10360
+ $ = /* @__PURE__ */ n(Wd, {
10355
10361
  model: R,
10356
10362
  actionDomain: q
10357
10363
  });
10358
10364
  else if ((W == null ? void 0 : W.type) === "tree")
10359
- $ = /* @__PURE__ */ n(Kd, {
10365
+ $ = /* @__PURE__ */ n(Yd, {
10360
10366
  model: R,
10361
10367
  domain: q,
10362
10368
  view_id: N.filter((Z) => Z[1] === "tree")[0][0],
@@ -10426,7 +10432,7 @@ function Wd(e, t) {
10426
10432
  view_type: ie
10427
10433
  };
10428
10434
  }
10429
- return /* @__PURE__ */ n(Bd, {
10435
+ return /* @__PURE__ */ n(jd, {
10430
10436
  id: A,
10431
10437
  title: I,
10432
10438
  parms: U,
@@ -10437,18 +10443,18 @@ function Wd(e, t) {
10437
10443
  })
10438
10444
  });
10439
10445
  }
10440
- const Ud = bt(Wd), Gd = (e) => {
10446
+ const Gd = bt(Ud), qd = (e) => {
10441
10447
  const {
10442
10448
  ooui: t
10443
10449
  } = e;
10444
10450
  return /* @__PURE__ */ n(ve, {
10445
10451
  type: "array",
10446
10452
  ...e,
10447
- children: /* @__PURE__ */ n(qd, {
10453
+ children: /* @__PURE__ */ n(zd, {
10448
10454
  ooui: t
10449
10455
  })
10450
10456
  });
10451
- }, qd = (e) => {
10457
+ }, zd = (e) => {
10452
10458
  const {
10453
10459
  value: t,
10454
10460
  ooui: r,
@@ -10569,12 +10575,12 @@ const Ud = bt(Wd), Gd = (e) => {
10569
10575
  })]
10570
10576
  })
10571
10577
  });
10572
- }, zd = (e) => /* @__PURE__ */ n(ve, {
10578
+ }, Jd = (e) => /* @__PURE__ */ n(ve, {
10573
10579
  ...e,
10574
- children: /* @__PURE__ */ n(Jd, {
10580
+ children: /* @__PURE__ */ n(Zd, {
10575
10581
  ...e
10576
10582
  })
10577
- }), Jd = (e) => {
10583
+ }), Zd = (e) => {
10578
10584
  const {
10579
10585
  value: t,
10580
10586
  ooui: r
@@ -10589,7 +10595,7 @@ const Ud = bt(Wd), Gd = (e) => {
10589
10595
  className: "ant-typography"
10590
10596
  })
10591
10597
  });
10592
- }, Zd = (e) => {
10598
+ }, Xd = (e) => {
10593
10599
  const {
10594
10600
  ooui: t
10595
10601
  } = e, {
@@ -10599,11 +10605,11 @@ const Ud = bt(Wd), Gd = (e) => {
10599
10605
  required: r,
10600
10606
  type: "any",
10601
10607
  ...e,
10602
- children: /* @__PURE__ */ n(Xd, {
10608
+ children: /* @__PURE__ */ n(Qd, {
10603
10609
  ...e
10604
10610
  })
10605
10611
  });
10606
- }, Xd = (e) => {
10612
+ }, Qd = (e) => {
10607
10613
  const {
10608
10614
  ooui: t,
10609
10615
  onChange: r,
@@ -10628,7 +10634,7 @@ const Ud = bt(Wd), Gd = (e) => {
10628
10634
  children: u
10629
10635
  })
10630
10636
  });
10631
- }, Qd = (e) => {
10637
+ }, eu = (e) => {
10632
10638
  const {
10633
10639
  ooui: t
10634
10640
  } = e, {
@@ -10639,13 +10645,13 @@ const Ud = bt(Wd), Gd = (e) => {
10639
10645
  return /* @__PURE__ */ n(ve, {
10640
10646
  ...e,
10641
10647
  valuePropName: "checked",
10642
- children: /* @__PURE__ */ n(eu, {
10648
+ children: /* @__PURE__ */ n(tu, {
10643
10649
  id: r,
10644
10650
  readOnly: i,
10645
10651
  required: o
10646
10652
  })
10647
10653
  });
10648
- }, eu = (e) => {
10654
+ }, tu = (e) => {
10649
10655
  const {
10650
10656
  required: t,
10651
10657
  readOnly: r,
@@ -10658,7 +10664,7 @@ const Ud = bt(Wd), Gd = (e) => {
10658
10664
  ...i
10659
10665
  })
10660
10666
  });
10661
- }, tu = (e) => {
10667
+ }, nu = (e) => {
10662
10668
  const {
10663
10669
  ooui: t
10664
10670
  } = e, {
@@ -10668,11 +10674,11 @@ const Ud = bt(Wd), Gd = (e) => {
10668
10674
  required: r,
10669
10675
  type: "any",
10670
10676
  ...e,
10671
- children: /* @__PURE__ */ n(nu, {
10677
+ children: /* @__PURE__ */ n(ru, {
10672
10678
  ...e
10673
10679
  })
10674
10680
  });
10675
- }, nu = (e) => {
10681
+ }, ru = (e) => {
10676
10682
  const {
10677
10683
  ooui: t,
10678
10684
  value: r
@@ -10689,7 +10695,7 @@ const Ud = bt(Wd), Gd = (e) => {
10689
10695
  description: d === l && u === "error" ? c : null
10690
10696
  }))
10691
10697
  });
10692
- }, ru = (e) => {
10698
+ }, ou = (e) => {
10693
10699
  const {
10694
10700
  ooui: t
10695
10701
  } = e, {
@@ -10709,23 +10715,23 @@ const Ud = bt(Wd), Gd = (e) => {
10709
10715
  })
10710
10716
  });
10711
10717
  }, {
10712
- Content: ou
10718
+ Content: iu
10713
10719
  } = li, {
10714
- Title: iu
10720
+ Title: su
10715
10721
  } = an;
10716
- function su() {
10722
+ function au() {
10717
10723
  const {
10718
10724
  t: e
10719
10725
  } = Y(we);
10720
- return /* @__PURE__ */ n(ou, {
10726
+ return /* @__PURE__ */ n(iu, {
10721
10727
  className: "m-5 select-none",
10722
- children: /* @__PURE__ */ n(iu, {
10728
+ children: /* @__PURE__ */ n(su, {
10723
10729
  level: 5,
10724
10730
  children: e("welcome")
10725
10731
  })
10726
10732
  });
10727
10733
  }
10728
- function au(e, t) {
10734
+ function lu(e, t) {
10729
10735
  const {
10730
10736
  children: r,
10731
10737
  globalValues: i = {},
@@ -10735,7 +10741,7 @@ function au(e, t) {
10735
10741
  title: Oe("welcome", s),
10736
10742
  key: "welcome",
10737
10743
  closable: !0,
10738
- content: /* @__PURE__ */ n(su, {})
10744
+ content: /* @__PURE__ */ n(au, {})
10739
10745
  }]), f = de(/* @__PURE__ */ new Map()), d = de();
10740
10746
  xt(t, () => ({
10741
10747
  retrieveAndOpenAction: p,
@@ -11089,7 +11095,7 @@ function au(e, t) {
11089
11095
  }
11090
11096
  return /* @__PURE__ */ n(es, {
11091
11097
  lang: s,
11092
- children: /* @__PURE__ */ n(ul, {
11098
+ children: /* @__PURE__ */ n(fl, {
11093
11099
  openShortcut: v,
11094
11100
  openAction: D,
11095
11101
  openRelate: g,
@@ -11103,7 +11109,7 @@ function au(e, t) {
11103
11109
  onChangeTab: (b) => {
11104
11110
  l(b);
11105
11111
  },
11106
- children: /* @__PURE__ */ n(hl, {
11112
+ children: /* @__PURE__ */ n(pl, {
11107
11113
  ref: d,
11108
11114
  globalValues: i,
11109
11115
  children: r
@@ -11111,10 +11117,10 @@ function au(e, t) {
11111
11117
  })
11112
11118
  });
11113
11119
  }
11114
- const Nu = bt(au), {
11115
- useToken: lu
11120
+ const Pu = bt(lu), {
11121
+ useToken: cu
11116
11122
  } = Pe;
11117
- function cu(e) {
11123
+ function du(e) {
11118
11124
  const {
11119
11125
  label: t,
11120
11126
  onClose: r,
@@ -11123,7 +11129,7 @@ function cu(e) {
11123
11129
  onSelected: s
11124
11130
  } = e, {
11125
11131
  token: a
11126
- } = lu(), l = o ? a.colorBgContainer : a.colorPrimaryBg;
11132
+ } = cu(), l = o ? a.colorBgContainer : a.colorPrimaryBg;
11127
11133
  return /* @__PURE__ */ P("div", {
11128
11134
  onClick: () => {
11129
11135
  !o && s(i);
@@ -11178,7 +11184,7 @@ function cu(e) {
11178
11184
  })]
11179
11185
  });
11180
11186
  }
11181
- function Pu() {
11187
+ function Hu() {
11182
11188
  const e = Y(st), {
11183
11189
  activeKey: t,
11184
11190
  tabs: r,
@@ -11186,7 +11192,7 @@ function Pu() {
11186
11192
  onChangeTab: o
11187
11193
  } = e || {};
11188
11194
  return /* @__PURE__ */ n(ne, {
11189
- children: r.map((s) => /* @__PURE__ */ n(cu, {
11195
+ children: r.map((s) => /* @__PURE__ */ n(du, {
11190
11196
  tabKey: s.key,
11191
11197
  label: s.title,
11192
11198
  onClose: i,
@@ -11195,7 +11201,7 @@ function Pu() {
11195
11201
  }, s.key))
11196
11202
  });
11197
11203
  }
11198
- function du(e) {
11204
+ function uu(e) {
11199
11205
  const {
11200
11206
  tab: t
11201
11207
  } = e, r = Y(st), {
@@ -11208,11 +11214,11 @@ function du(e) {
11208
11214
  children: t.content
11209
11215
  });
11210
11216
  }
11211
- const uu = Je.memo(du, () => !0);
11212
- function Hu() {
11217
+ const fu = Je.memo(uu, () => !0);
11218
+ function Bu() {
11213
11219
  const e = Y(st), {
11214
11220
  tabs: t
11215
- } = e || {}, r = (t == null ? void 0 : t.map((i) => /* @__PURE__ */ n(uu, {
11221
+ } = e || {}, r = (t == null ? void 0 : t.map((i) => /* @__PURE__ */ n(fu, {
11216
11222
  tab: i
11217
11223
  }, i.key))) || null;
11218
11224
  return /* @__PURE__ */ n(ne, {
@@ -11220,8 +11226,8 @@ function Hu() {
11220
11226
  });
11221
11227
  }
11222
11228
  const {
11223
- useToken: fu
11224
- } = Pe, Bu = (e) => {
11229
+ useToken: mu
11230
+ } = Pe, ju = (e) => {
11225
11231
  const {
11226
11232
  onRetrieveShortcuts: t,
11227
11233
  onCheckIsFavourite: r,
@@ -11231,7 +11237,7 @@ const {
11231
11237
  t: h
11232
11238
  } = Y(we) || {}, {
11233
11239
  token: g
11234
- } = fu(), v = Y(st), {
11240
+ } = mu(), v = Y(st), {
11235
11241
  openShortcut: T,
11236
11242
  tabs: D,
11237
11243
  activeKey: b,
@@ -11418,57 +11424,57 @@ const {
11418
11424
  });
11419
11425
  };
11420
11426
  export {
11421
- pd as ActionBar,
11422
- ld as Binary,
11427
+ gd as ActionBar,
11428
+ cd as Binary,
11423
11429
  ws as Boolean,
11424
11430
  Jr as Button,
11425
11431
  os as ButtonGroup,
11426
11432
  Qr as Char,
11427
- ru as CodeEditor,
11428
- _d as ConfigContext,
11433
+ ou as CodeEditor,
11434
+ Id as ConfigContext,
11429
11435
  H as ConnectionProvider,
11430
- hl as ContentRootProvider,
11431
- Hu as CurrentTabContent,
11432
- Ud as Dashboard,
11433
- Nd as DashboardGrid,
11434
- Bd as DashboardGridItem,
11435
- ed as Date,
11436
- td as DateTime,
11437
- vd as Email,
11438
- Qc as ExportModal,
11439
- Bu as FavouriteButton,
11436
+ pl as ContentRootProvider,
11437
+ Bu as CurrentTabContent,
11438
+ Gd as Dashboard,
11439
+ Pd as DashboardGrid,
11440
+ jd as DashboardGridItem,
11441
+ td as Date,
11442
+ nd as DateTime,
11443
+ wd as Email,
11444
+ ed as ExportModal,
11445
+ ju as FavouriteButton,
11440
11446
  po as Float,
11441
- Lc as FloatTime,
11447
+ Nc as FloatTime,
11442
11448
  Ut as Form,
11443
11449
  Gt as FormModal,
11444
- dc as GraphIndicator,
11450
+ uc as GraphIndicator,
11445
11451
  Do as Group,
11446
11452
  Ca as Image,
11447
11453
  tn as Integer,
11448
11454
  un as Label,
11449
- ac as Many2one,
11450
- zd as Markdown,
11451
- Gd as MultiCheckbox,
11452
- Hc as Notebook,
11453
- Ec as One2many,
11454
- $l as ProgressBar,
11455
- Zd as Radio,
11456
- id as Reference,
11457
- Nu as RootView,
11455
+ lc as Many2one,
11456
+ Jd as Markdown,
11457
+ qd as MultiCheckbox,
11458
+ Bc as Notebook,
11459
+ $c as One2many,
11460
+ Ll as ProgressBar,
11461
+ Xd as Radio,
11462
+ sd as Reference,
11463
+ Pu as RootView,
11458
11464
  go as SearchFilter,
11459
11465
  To as SearchModal,
11460
11466
  So as SearchTree,
11461
11467
  eo as Selection,
11462
- Yc as Separator,
11463
- tu as Steps,
11464
- Qd as Switch,
11465
- Pu as TabSelector,
11466
- Ha as Tag,
11467
- Ba as Tags,
11468
- jc as Text,
11469
- rd as Time,
11468
+ Wc as Separator,
11469
+ nu as Steps,
11470
+ eu as Switch,
11471
+ Hu as TabSelector,
11472
+ Ba as Tag,
11473
+ ja as Tags,
11474
+ Kc as Text,
11475
+ od as Time,
11470
11476
  pn as Tree,
11471
- yd as Url,
11477
+ vd as Url,
11472
11478
  it as iconMapper,
11473
11479
  Yt as showConfirmDialog
11474
11480
  };