@gisce/react-ooui 1.5.16 → 1.5.17

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.
@@ -2409,7 +2409,7 @@ const $t = ({
2409
2409
  setLimit: A,
2410
2410
  searchParams: S = [],
2411
2411
  setSearchValues: E
2412
- } = e, [x, T] = I(!1), [F, w] = I(!1), [L, R] = I(), [O, M] = I(1), [k, _] = I(0), [$, D] = I(), [j, G] = I([]), [U, Y] = I(void 0), [z, N] = I(void 0), B = ue(b || Ut), X = ue([]), ne = ke((ie) => {
2412
+ } = e, [x, T] = I(!1), [F, w] = I(!1), [L, k] = I(), [O, M] = I(1), [R, _] = I(0), [$, D] = I(), [j, G] = I([]), [U, Y] = I(void 0), [z, N] = I(void 0), B = ue(b || Ut), X = ue([]), ne = ke((ie) => {
2413
2413
  g == null || g([...ie]), G([...ie]);
2414
2414
  }, []), le = ke(() => v || j, [v, j]), J = ke(async () => {
2415
2415
  const ie = await H.getHandler().nameSearch({
@@ -2459,7 +2459,7 @@ const $t = ({
2459
2459
  const { totalItems: Re, results: He, attrsEvaluated: se } = await H.getHandler().searchForTree({
2460
2460
  params: $e,
2461
2461
  limit: B.current,
2462
- offset: be || k,
2462
+ offset: be || R,
2463
2463
  model: t,
2464
2464
  fields: u.field_parent ? { ...u.fields, [u.field_parent]: {} } : u.fields,
2465
2465
  context: c,
@@ -2495,7 +2495,7 @@ const $t = ({
2495
2495
  y,
2496
2496
  d,
2497
2497
  b,
2498
- k,
2498
+ R,
2499
2499
  S
2500
2500
  ]
2501
2501
  ), fe = ke(
@@ -2503,7 +2503,7 @@ const $t = ({
2503
2503
  try {
2504
2504
  T(!0), a == null || a(!0), l && !f.current ? await J() : await Z(ie);
2505
2505
  } catch (Ee) {
2506
- R(Ee.message);
2506
+ k(Ee.message);
2507
2507
  } finally {
2508
2508
  i == null || i([]), w(!1), a == null || a(!1);
2509
2509
  }
@@ -2516,13 +2516,13 @@ const $t = ({
2516
2516
  b,
2517
2517
  t,
2518
2518
  l,
2519
- k,
2519
+ R,
2520
2520
  v,
2521
2521
  f,
2522
2522
  d,
2523
2523
  h,
2524
2524
  ne,
2525
- R,
2525
+ k,
2526
2526
  w,
2527
2527
  T,
2528
2528
  a,
@@ -2545,7 +2545,7 @@ const $t = ({
2545
2545
  ), Me = ke(
2546
2546
  (ie) => {
2547
2547
  const { params: Ee, searchValues: be, limit: $e, offset: Ke } = ie;
2548
- x || (r == null || r(void 0), i == null || i([]), E == null || E(be), o == null || o(Ee), s == null || s(!1), w(!0), R(void 0), M(1), $e && (B.current = $e, A == null || A($e)), Ke && _(Ke), fe({
2548
+ x || (r == null || r(void 0), i == null || i([]), E == null || E(be), o == null || o(Ee), s == null || s(!1), w(!0), k(void 0), M(1), $e && (B.current = $e, A == null || A($e)), Ke && _(Ke), fe({
2549
2549
  params: Ee,
2550
2550
  newOffset: Ke
2551
2551
  }));
@@ -2557,7 +2557,7 @@ const $t = ({
2557
2557
  o,
2558
2558
  s,
2559
2559
  w,
2560
- R,
2560
+ k,
2561
2561
  M,
2562
2562
  A,
2563
2563
  _,
@@ -2569,12 +2569,12 @@ const $t = ({
2569
2569
  },
2570
2570
  [T, b, _, M]
2571
2571
  ), Ne = ke(() => {
2572
- x || (r == null || r(void 0), o == null || o([]), E == null || E({}), R(void 0), _(0), M(1), A == null || A(b || Ut));
2572
+ x || (r == null || r(void 0), o == null || o([]), E == null || E({}), k(void 0), _(0), M(1), A == null || A(b || Ut));
2573
2573
  }, [
2574
2574
  x,
2575
2575
  r,
2576
2576
  o,
2577
- R,
2577
+ k,
2578
2578
  _,
2579
2579
  M,
2580
2580
  A,
@@ -2604,7 +2604,7 @@ const $t = ({
2604
2604
  searchFilterLoading: F,
2605
2605
  searchError: L,
2606
2606
  page: O,
2607
- offset: k,
2607
+ offset: R,
2608
2608
  limit: b,
2609
2609
  getResults: le,
2610
2610
  requestPageChange: _e,
@@ -2642,7 +2642,7 @@ const $t = ({
2642
2642
  setSearchTreeNameSearch: E,
2643
2643
  goToResourceId: x,
2644
2644
  limit: T
2645
- } = e, [F, w] = I(!1), [L, R] = I(!1), [O, M] = I(!1), [k, _] = I(!0), [$, D] = I(!0), [j, G] = I([]), [U, Y] = I(!1), [z, N] = I([]), [B, X] = I(!1), [ne, le] = I(!0), [J, Z] = I(), [fe, pe] = I({}), [Me, _e] = I(T !== void 0 ? T : Ut), [Ne, Ge] = I(i);
2645
+ } = e, [F, w] = I(!1), [L, k] = I(!1), [O, M] = I(!1), [R, _] = I(!0), [$, D] = I(!0), [j, G] = I([]), [U, Y] = I(!1), [z, N] = I([]), [B, X] = I(!1), [ne, le] = I(!0), [J, Z] = I(), [fe, pe] = I({}), [Me, _e] = I(T !== void 0 ? T : Ut), [Ne, Ge] = I(i);
2646
2646
  he(() => {
2647
2647
  m && m.length > 0 && !y && (p == null || p(0), d == null || d(m[0].id));
2648
2648
  }, [m]), he(() => {
@@ -2665,7 +2665,7 @@ const $t = ({
2665
2665
  formIsSaving: F,
2666
2666
  setFormIsSaving: w,
2667
2667
  formHasChanges: L,
2668
- setFormHasChanges: R,
2668
+ setFormHasChanges: k,
2669
2669
  formRef: a,
2670
2670
  searchTreeRef: l,
2671
2671
  onFormSave: Se,
@@ -2679,7 +2679,7 @@ const $t = ({
2679
2679
  currentModel: h,
2680
2680
  removingItem: O,
2681
2681
  setRemovingItem: M,
2682
- formIsLoading: k,
2682
+ formIsLoading: R,
2683
2683
  setFormIsLoading: _,
2684
2684
  treeIsLoading: $,
2685
2685
  setTreeIsLoading: D,
@@ -2768,13 +2768,13 @@ const $t = ({
2768
2768
  context: w = {}
2769
2769
  } = E, {
2770
2770
  context: L,
2771
- model: R,
2771
+ model: k,
2772
2772
  datas: O = {},
2773
2773
  report_name: M,
2774
- type: k
2774
+ type: R
2775
2775
  } = x;
2776
- if (k !== "ir.actions.report.xml") {
2777
- ze(`${k} action not supported`);
2776
+ if (R !== "ir.actions.report.xml") {
2777
+ ze(`${R} action not supported`);
2778
2778
  return;
2779
2779
  }
2780
2780
  const {
@@ -2788,7 +2788,7 @@ const $t = ({
2788
2788
  }) : L;
2789
2789
  try {
2790
2790
  const j = await H.getHandler().createReport({
2791
- model: R,
2791
+ model: k,
2792
2792
  name: M,
2793
2793
  datas: O,
2794
2794
  ids: $,
@@ -2870,7 +2870,7 @@ const $t = ({
2870
2870
  ...T,
2871
2871
  ...i
2872
2872
  }
2873
- }) : w.context, R = {
2873
+ }) : w.context, k = {
2874
2874
  ...F,
2875
2875
  ...L
2876
2876
  };
@@ -2885,38 +2885,38 @@ const $t = ({
2885
2885
  }
2886
2886
  }),
2887
2887
  fields: x,
2888
- context: R
2888
+ context: k
2889
2889
  })), w.target === "new") {
2890
- const k = await H.getHandler().getView({
2890
+ const R = await H.getHandler().getView({
2891
2891
  model: w.res_model,
2892
2892
  type: "form",
2893
2893
  id: ((M = w == null ? void 0 : w.view_id) == null ? void 0 : M[0]) || void 0,
2894
- context: R
2894
+ context: k
2895
2895
  });
2896
2896
  return b({
2897
2897
  domain: O,
2898
2898
  model: w.res_model,
2899
- formView: k,
2900
- context: R
2899
+ formView: R,
2900
+ context: k
2901
2901
  }), {};
2902
2902
  } else {
2903
2903
  const {
2904
- initialView: k,
2904
+ initialView: R,
2905
2905
  views: _
2906
2906
  } = await Sl({
2907
2907
  model: w.res_model,
2908
- context: R,
2908
+ context: k,
2909
2909
  view_mode: w.view_mode,
2910
2910
  views: w.views
2911
2911
  });
2912
2912
  return c == null || c({
2913
2913
  target: "current",
2914
- context: R,
2914
+ context: k,
2915
2915
  domain: O,
2916
2916
  model: w.res_model,
2917
2917
  views: _,
2918
2918
  title: w.name,
2919
- initialView: k,
2919
+ initialView: R,
2920
2920
  action_id: w.id,
2921
2921
  action_type: w.type
2922
2922
  }), {
@@ -3120,7 +3120,7 @@ function Il(e, t) {
3120
3120
  } = e, {
3121
3121
  t: x,
3122
3122
  lang: T
3123
- } = W(ye), [F, w] = I(!1), [L, R] = I(), [O, M] = I(), [k] = lt.useForm(), [_, $] = I(), [D, j] = I(), G = W(So), [U, Y] = I(), [z, N] = I(!1), B = ue(), X = ue({}), ne = ue({}), le = ue(!1), J = ue(!1), Z = ue(!1), pe = (E !== void 0 ? E : U) < Ol, Me = W(Le), {
3123
+ } = W(ye), [F, w] = I(!1), [L, k] = I(), [O, M] = I(), [R] = lt.useForm(), [_, $] = I(), [D, j] = I(), G = W(So), [U, Y] = I(), [z, N] = I(!1), B = ue(), X = ue({}), ne = ue({}), le = ue(!1), J = ue(!1), Z = ue(!1), pe = (E !== void 0 ? E : U) < Ol, Me = W(Le), {
3124
3124
  activeId: _e,
3125
3125
  getPlainValues: Ne
3126
3126
  } = Me || {}, Ge = W(it), {
@@ -3147,7 +3147,7 @@ function Il(e, t) {
3147
3147
  B.current = void 0, M(void 0), or();
3148
3148
  }
3149
3149
  })), he(() => {
3150
- if (R(void 0), !(!r && !p)) {
3150
+ if (k(void 0), !(!r && !p)) {
3151
3151
  if (!V) {
3152
3152
  B.current = void 0, M(void 0);
3153
3153
  return;
@@ -3234,27 +3234,27 @@ function Il(e, t) {
3234
3234
  target: qe(D),
3235
3235
  fields: D
3236
3236
  })).length !== 0, qe = (K) => {
3237
- const q = k.getFieldsValue(!0);
3237
+ const q = R.getFieldsValue(!0);
3238
3238
  return It(q, K);
3239
3239
  }, Ae = (K, q) => {
3240
3240
  Nt({
3241
3241
  values: {
3242
- ...It(k.getFieldsValue(!0), D),
3242
+ ...It(R.getFieldsValue(!0), D),
3243
3243
  [K]: q
3244
3244
  },
3245
3245
  fields: D,
3246
3246
  reset: !1
3247
3247
  });
3248
- }, Ue = (K) => k.getFieldsValue(!0)[K];
3248
+ }, Ue = (K) => R.getFieldsValue(!0)[K];
3249
3249
  async function Tt() {
3250
3250
  try {
3251
- return await k.validateFields(), !1;
3251
+ return await R.validateFields(), !1;
3252
3252
  } catch {
3253
3253
  return Sn.error(x("fillRequiredFields")), !0;
3254
3254
  }
3255
3255
  }
3256
3256
  const or = async () => {
3257
- R(void 0), be == null || be(!0);
3257
+ k(void 0), be == null || be(!0);
3258
3258
  let K;
3259
3259
  try {
3260
3260
  p ? K = {
@@ -3270,11 +3270,11 @@ function Il(e, t) {
3270
3270
  arch: re
3271
3271
  });
3272
3272
  } catch (q) {
3273
- R(q != null && q.message ? q.message + q.stack : q), be == null || be(!1);
3273
+ k(q != null && q.message ? q.message + q.stack : q), be == null || be(!1);
3274
3274
  }
3275
3275
  }, yt = async (K) => {
3276
3276
  let q, re, oe, ge;
3277
- be == null || be(!0), R(void 0), K != null && K.fields ? (re = K.fields, oe = K.arch) : (re = D, oe = _), y && (K == null ? void 0 : K.forceRefresh) !== !0 ? q = y : {
3277
+ be == null || be(!0), k(void 0), K != null && K.fields ? (re = K.fields, oe = K.arch) : (re = D, oe = _), y && (K == null ? void 0 : K.forceRefresh) !== !0 ? q = y : {
3278
3278
  values: q,
3279
3279
  defaultGetCalled: ge
3280
3280
  } = await zo({
@@ -3323,7 +3323,7 @@ function Il(e, t) {
3323
3323
  isDefaultGet: oe = !1
3324
3324
  }) => {
3325
3325
  const rt = {
3326
- ...re ? {} : k.getFieldsValue(!0),
3326
+ ...re ? {} : R.getFieldsValue(!0),
3327
3327
  ...K
3328
3328
  }, xn = It(rt, q), ai = Object.keys(q).map((Cn) => {
3329
3329
  const li = xn[Cn] !== void 0 ? xn[Cn] : void 0;
@@ -3333,7 +3333,7 @@ function Il(e, t) {
3333
3333
  value: li
3334
3334
  };
3335
3335
  });
3336
- oe || (ne.current = xn), k.setFields(ai);
3336
+ oe || (ne.current = xn), R.setFields(ai);
3337
3337
  }, zo = async ({
3338
3338
  fields: K,
3339
3339
  arch: q
@@ -3408,7 +3408,7 @@ function Il(e, t) {
3408
3408
  const {
3409
3409
  callOnSubmitSucceed: re = !0
3410
3410
  } = K || {};
3411
- if (J.current = !0, R(void 0), Z.current && !nt() && ce() && re) {
3411
+ if (J.current = !0, k(void 0), Z.current && !nt() && ce() && re) {
3412
3412
  J.current = !1, ie == null || ie(!1), se == null || se(ce(), Ye(), ae(), Z.current), Z.current = !1;
3413
3413
  const oe = ce();
3414
3414
  return u && (B.current = void 0, Nt({
@@ -3440,7 +3440,7 @@ function Il(e, t) {
3440
3440
  forceRefresh: !0
3441
3441
  }), q = !0, Sn.success(x("savedRegisters"));
3442
3442
  } catch (oe) {
3443
- J.current = !1, w(!1), Se == null || Se(!1), Be == null || Be(oe), Sn.error(x("errorWhileSavingForm")), R(oe != null && oe.message ? oe.message : oe);
3443
+ J.current = !1, w(!1), Se == null || Se(!1), Be == null || Be(oe), Sn.error(x("errorWhileSavingForm")), k(oe != null && oe.message ? oe.message : oe);
3444
3444
  } finally {
3445
3445
  J.current = !1, Se == null || Se(!1), w(!1);
3446
3446
  }
@@ -3481,7 +3481,7 @@ function Il(e, t) {
3481
3481
  }) && K !== !0)
3482
3482
  return;
3483
3483
  {
3484
- const oe = It(k.getFieldsValue(!0), D);
3484
+ const oe = It(R.getFieldsValue(!0), D);
3485
3485
  ne.current = oe, f == null || f(oe), ie == null || ie(!0), Xo(re);
3486
3486
  }
3487
3487
  }
@@ -3709,7 +3709,7 @@ function Il(e, t) {
3709
3709
  formHasChanges: nt,
3710
3710
  elementHasLostFocus: ri,
3711
3711
  children: /* @__PURE__ */ n(lt, {
3712
- form: k,
3712
+ form: R,
3713
3713
  onFieldsChange: () => {
3714
3714
  Zo({
3715
3715
  elementHasLostFocus: !1
@@ -4249,7 +4249,7 @@ function Oo(e) {
4249
4249
  if (!g)
4250
4250
  return;
4251
4251
  const F = C ? g : p, w = F == null ? void 0 : F.rows;
4252
- return w == null ? void 0 : w.map((L, R) => /* @__PURE__ */ n(Ce, {
4252
+ return w == null ? void 0 : w.map((L, k) => /* @__PURE__ */ n(Ce, {
4253
4253
  children: L.map((O, M) => /* @__PURE__ */ n(de, {
4254
4254
  xs: 24,
4255
4255
  className: "p-2",
@@ -4258,7 +4258,7 @@ function Oo(e) {
4258
4258
  field: O
4259
4259
  })
4260
4260
  }, M))
4261
- }, R));
4261
+ }, k));
4262
4262
  };
4263
4263
  St(() => {
4264
4264
  V(!1), b.current = new wi(r, t), b.current.parse(), h(b.current._simpleSearchContainer), v(b.current._advancedSearchContainer);
@@ -4270,9 +4270,9 @@ function Oo(e) {
4270
4270
  offset: L
4271
4271
  } = F;
4272
4272
  delete F.offset, delete F.limit;
4273
- const R = fl(F, (O = b.current) == null ? void 0 : O._advancedSearchContainer);
4273
+ const k = fl(F, (O = b.current) == null ? void 0 : O._advancedSearchContainer);
4274
4274
  o({
4275
- params: R,
4275
+ params: k,
4276
4276
  offset: L,
4277
4277
  limit: w,
4278
4278
  searchValues: F
@@ -4464,7 +4464,7 @@ const Ul = (e) => /* @__PURE__ */ n(we, {
4464
4464
  if (!t)
4465
4465
  return null;
4466
4466
  async function V() {
4467
- var F, w, L, R, O;
4467
+ var F, w, L, k, O;
4468
4468
  c(!0);
4469
4469
  try {
4470
4470
  const M = await H.getHandler().getView({
@@ -4473,19 +4473,19 @@ const Ul = (e) => /* @__PURE__ */ n(we, {
4473
4473
  context: i
4474
4474
  });
4475
4475
  u(M);
4476
- let k = [];
4476
+ let R = [];
4477
4477
  const {
4478
4478
  toolbar: _
4479
4479
  } = M;
4480
- (F = _.action) == null || F.filter((D) => D.hasOwnProperty("context")).map((D) => k.push(...Tn(D.context))), (w = _.action) == null || w.filter((D) => D.hasOwnProperty("domain")).map((D) => k.push(...dr(D.domain))), (L = _.relate) == null || L.filter((D) => D.hasOwnProperty("context")).map((D) => k.push(...Tn(D.context))), (R = _.relate) == null || R.filter((D) => D.hasOwnProperty("domain")).map((D) => k.push(...dr(D.domain))), (O = _.print) == null || O.filter((D) => D.hasOwnProperty("context")).map((D) => k.push(...Tn(D.context))), k = k.filter((D) => Object.keys(M.fields).indexOf(D) > -1);
4480
+ (F = _.action) == null || F.filter((D) => D.hasOwnProperty("context")).map((D) => R.push(...Tn(D.context))), (w = _.action) == null || w.filter((D) => D.hasOwnProperty("domain")).map((D) => R.push(...dr(D.domain))), (L = _.relate) == null || L.filter((D) => D.hasOwnProperty("context")).map((D) => R.push(...Tn(D.context))), (k = _.relate) == null || k.filter((D) => D.hasOwnProperty("domain")).map((D) => R.push(...dr(D.domain))), (O = _.print) == null || O.filter((D) => D.hasOwnProperty("context")).map((D) => R.push(...Tn(D.context))), R = R.filter((D) => Object.keys(M.fields).indexOf(D) > -1);
4481
4481
  let $ = {};
4482
- k.length > 0 && ($ = (await H.getHandler().readObjects({
4482
+ R = [...new Set(R)], R.length > 0 && ($ = (await H.getHandler().readObjects({
4483
4483
  model: r,
4484
4484
  ids: [t],
4485
- fieldsToRetrieve: k,
4485
+ fieldsToRetrieve: R,
4486
4486
  context: i
4487
4487
  }))[0]), $ = {
4488
- ...It($, k),
4488
+ ...It($, R),
4489
4489
  active_id: t
4490
4490
  }, y($), c(!1);
4491
4491
  } catch (M) {
@@ -4647,31 +4647,31 @@ var _o = { exports: {} };
4647
4647
  (function(r, i) {
4648
4648
  e.exports = i();
4649
4649
  })(ft, function() {
4650
- var r = 1e3, i = 6e4, o = 36e5, s = "millisecond", a = "second", l = "minute", f = "hour", c = "day", d = "week", u = "month", m = "quarter", y = "year", p = "date", h = "Invalid Date", g = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, v = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, C = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(R) {
4651
- var O = ["th", "st", "nd", "rd"], M = R % 100;
4652
- return "[" + R + (O[(M - 20) % 10] || O[M] || O[0]) + "]";
4653
- } }, V = function(R, O, M) {
4654
- var k = String(R);
4655
- return !k || k.length >= O ? R : "" + Array(O + 1 - k.length).join(M) + R;
4656
- }, b = { s: V, z: function(R) {
4657
- var O = -R.utcOffset(), M = Math.abs(O), k = Math.floor(M / 60), _ = M % 60;
4658
- return (O <= 0 ? "+" : "-") + V(k, 2, "0") + ":" + V(_, 2, "0");
4659
- }, m: function R(O, M) {
4650
+ var r = 1e3, i = 6e4, o = 36e5, s = "millisecond", a = "second", l = "minute", f = "hour", c = "day", d = "week", u = "month", m = "quarter", y = "year", p = "date", h = "Invalid Date", g = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, v = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, C = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(k) {
4651
+ var O = ["th", "st", "nd", "rd"], M = k % 100;
4652
+ return "[" + k + (O[(M - 20) % 10] || O[M] || O[0]) + "]";
4653
+ } }, V = function(k, O, M) {
4654
+ var R = String(k);
4655
+ return !R || R.length >= O ? k : "" + Array(O + 1 - R.length).join(M) + k;
4656
+ }, b = { s: V, z: function(k) {
4657
+ var O = -k.utcOffset(), M = Math.abs(O), R = Math.floor(M / 60), _ = M % 60;
4658
+ return (O <= 0 ? "+" : "-") + V(R, 2, "0") + ":" + V(_, 2, "0");
4659
+ }, m: function k(O, M) {
4660
4660
  if (O.date() < M.date())
4661
- return -R(M, O);
4662
- var k = 12 * (M.year() - O.year()) + (M.month() - O.month()), _ = O.clone().add(k, u), $ = M - _ < 0, D = O.clone().add(k + ($ ? -1 : 1), u);
4663
- return +(-(k + (M - _) / ($ ? _ - D : D - _)) || 0);
4664
- }, a: function(R) {
4665
- return R < 0 ? Math.ceil(R) || 0 : Math.floor(R);
4666
- }, p: function(R) {
4667
- return { M: u, y, w: d, d: c, D: p, h: f, m: l, s: a, ms: s, Q: m }[R] || String(R || "").toLowerCase().replace(/s$/, "");
4668
- }, u: function(R) {
4669
- return R === void 0;
4661
+ return -k(M, O);
4662
+ var R = 12 * (M.year() - O.year()) + (M.month() - O.month()), _ = O.clone().add(R, u), $ = M - _ < 0, D = O.clone().add(R + ($ ? -1 : 1), u);
4663
+ return +(-(R + (M - _) / ($ ? _ - D : D - _)) || 0);
4664
+ }, a: function(k) {
4665
+ return k < 0 ? Math.ceil(k) || 0 : Math.floor(k);
4666
+ }, p: function(k) {
4667
+ return { M: u, y, w: d, d: c, D: p, h: f, m: l, s: a, ms: s, Q: m }[k] || String(k || "").toLowerCase().replace(/s$/, "");
4668
+ }, u: function(k) {
4669
+ return k === void 0;
4670
4670
  } }, A = "en", S = {};
4671
4671
  S[A] = C;
4672
- var E = function(R) {
4673
- return R instanceof w;
4674
- }, x = function R(O, M, k) {
4672
+ var E = function(k) {
4673
+ return k instanceof w;
4674
+ }, x = function k(O, M, R) {
4675
4675
  var _;
4676
4676
  if (!O)
4677
4677
  return A;
@@ -4680,29 +4680,29 @@ var _o = { exports: {} };
4680
4680
  S[$] && (_ = $), M && (S[$] = M, _ = $);
4681
4681
  var D = O.split("-");
4682
4682
  if (!_ && D.length > 1)
4683
- return R(D[0]);
4683
+ return k(D[0]);
4684
4684
  } else {
4685
4685
  var j = O.name;
4686
4686
  S[j] = O, _ = j;
4687
4687
  }
4688
- return !k && _ && (A = _), _ || !k && A;
4689
- }, T = function(R, O) {
4690
- if (E(R))
4691
- return R.clone();
4688
+ return !R && _ && (A = _), _ || !R && A;
4689
+ }, T = function(k, O) {
4690
+ if (E(k))
4691
+ return k.clone();
4692
4692
  var M = typeof O == "object" ? O : {};
4693
- return M.date = R, M.args = arguments, new w(M);
4693
+ return M.date = k, M.args = arguments, new w(M);
4694
4694
  }, F = b;
4695
- F.l = x, F.i = E, F.w = function(R, O) {
4696
- return T(R, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset });
4695
+ F.l = x, F.i = E, F.w = function(k, O) {
4696
+ return T(k, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset });
4697
4697
  };
4698
4698
  var w = function() {
4699
- function R(M) {
4699
+ function k(M) {
4700
4700
  this.$L = x(M.locale, null, !0), this.parse(M);
4701
4701
  }
4702
- var O = R.prototype;
4702
+ var O = k.prototype;
4703
4703
  return O.parse = function(M) {
4704
- this.$d = function(k) {
4705
- var _ = k.date, $ = k.utc;
4704
+ this.$d = function(R) {
4705
+ var _ = R.date, $ = R.utc;
4706
4706
  if (_ === null)
4707
4707
  return new Date(NaN);
4708
4708
  if (F.u(_))
@@ -4725,21 +4725,21 @@ var _o = { exports: {} };
4725
4725
  return F;
4726
4726
  }, O.isValid = function() {
4727
4727
  return this.$d.toString() !== h;
4728
- }, O.isSame = function(M, k) {
4728
+ }, O.isSame = function(M, R) {
4729
4729
  var _ = T(M);
4730
- return this.startOf(k) <= _ && _ <= this.endOf(k);
4731
- }, O.isAfter = function(M, k) {
4732
- return T(M) < this.startOf(k);
4733
- }, O.isBefore = function(M, k) {
4734
- return this.endOf(k) < T(M);
4735
- }, O.$g = function(M, k, _) {
4736
- return F.u(M) ? this[k] : this.set(_, M);
4730
+ return this.startOf(R) <= _ && _ <= this.endOf(R);
4731
+ }, O.isAfter = function(M, R) {
4732
+ return T(M) < this.startOf(R);
4733
+ }, O.isBefore = function(M, R) {
4734
+ return this.endOf(R) < T(M);
4735
+ }, O.$g = function(M, R, _) {
4736
+ return F.u(M) ? this[R] : this.set(_, M);
4737
4737
  }, O.unix = function() {
4738
4738
  return Math.floor(this.valueOf() / 1e3);
4739
4739
  }, O.valueOf = function() {
4740
4740
  return this.$d.getTime();
4741
- }, O.startOf = function(M, k) {
4742
- var _ = this, $ = !!F.u(k) || k, D = F.p(M), j = function(ne, le) {
4741
+ }, O.startOf = function(M, R) {
4742
+ var _ = this, $ = !!F.u(R) || R, D = F.p(M), j = function(ne, le) {
4743
4743
  var J = F.w(_.$u ? Date.UTC(_.$y, le, ne) : new Date(_.$y, le, ne), _);
4744
4744
  return $ ? J : J.endOf(c);
4745
4745
  }, G = function(ne, le) {
@@ -4767,22 +4767,22 @@ var _o = { exports: {} };
4767
4767
  }
4768
4768
  }, O.endOf = function(M) {
4769
4769
  return this.startOf(M, !1);
4770
- }, O.$set = function(M, k) {
4771
- var _, $ = F.p(M), D = "set" + (this.$u ? "UTC" : ""), j = (_ = {}, _[c] = D + "Date", _[p] = D + "Date", _[u] = D + "Month", _[y] = D + "FullYear", _[f] = D + "Hours", _[l] = D + "Minutes", _[a] = D + "Seconds", _[s] = D + "Milliseconds", _)[$], G = $ === c ? this.$D + (k - this.$W) : k;
4770
+ }, O.$set = function(M, R) {
4771
+ var _, $ = F.p(M), D = "set" + (this.$u ? "UTC" : ""), j = (_ = {}, _[c] = D + "Date", _[p] = D + "Date", _[u] = D + "Month", _[y] = D + "FullYear", _[f] = D + "Hours", _[l] = D + "Minutes", _[a] = D + "Seconds", _[s] = D + "Milliseconds", _)[$], G = $ === c ? this.$D + (R - this.$W) : R;
4772
4772
  if ($ === u || $ === y) {
4773
4773
  var U = this.clone().set(p, 1);
4774
4774
  U.$d[j](G), U.init(), this.$d = U.set(p, Math.min(this.$D, U.daysInMonth())).$d;
4775
4775
  } else
4776
4776
  j && this.$d[j](G);
4777
4777
  return this.init(), this;
4778
- }, O.set = function(M, k) {
4779
- return this.clone().$set(M, k);
4778
+ }, O.set = function(M, R) {
4779
+ return this.clone().$set(M, R);
4780
4780
  }, O.get = function(M) {
4781
4781
  return this[F.p(M)]();
4782
- }, O.add = function(M, k) {
4782
+ }, O.add = function(M, R) {
4783
4783
  var _, $ = this;
4784
4784
  M = Number(M);
4785
- var D = F.p(k), j = function(Y) {
4785
+ var D = F.p(R), j = function(Y) {
4786
4786
  var z = T($);
4787
4787
  return F.w(z.date(z.date() + Math.round(Y * M)), $);
4788
4788
  };
@@ -4796,14 +4796,14 @@ var _o = { exports: {} };
4796
4796
  return j(7);
4797
4797
  var G = (_ = {}, _[l] = i, _[f] = o, _[a] = r, _)[D] || 1, U = this.$d.getTime() + M * G;
4798
4798
  return F.w(U, this);
4799
- }, O.subtract = function(M, k) {
4800
- return this.add(-1 * M, k);
4799
+ }, O.subtract = function(M, R) {
4800
+ return this.add(-1 * M, R);
4801
4801
  }, O.format = function(M) {
4802
- var k = this, _ = this.$locale();
4802
+ var R = this, _ = this.$locale();
4803
4803
  if (!this.isValid())
4804
4804
  return _.invalidDate || h;
4805
4805
  var $ = M || "YYYY-MM-DDTHH:mm:ssZ", D = F.z(this), j = this.$H, G = this.$m, U = this.$M, Y = _.weekdays, z = _.months, N = function(le, J, Z, fe) {
4806
- return le && (le[J] || le(k, $)) || Z[J].slice(0, fe);
4806
+ return le && (le[J] || le(R, $)) || Z[J].slice(0, fe);
4807
4807
  }, B = function(le) {
4808
4808
  return F.s(j % 12 || 12, le, "0");
4809
4809
  }, X = _.meridiem || function(le, J, Z) {
@@ -4815,17 +4815,17 @@ var _o = { exports: {} };
4815
4815
  });
4816
4816
  }, O.utcOffset = function() {
4817
4817
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
4818
- }, O.diff = function(M, k, _) {
4819
- var $, D = F.p(k), j = T(M), G = (j.utcOffset() - this.utcOffset()) * i, U = this - j, Y = F.m(this, j);
4818
+ }, O.diff = function(M, R, _) {
4819
+ var $, D = F.p(R), j = T(M), G = (j.utcOffset() - this.utcOffset()) * i, U = this - j, Y = F.m(this, j);
4820
4820
  return Y = ($ = {}, $[y] = Y / 12, $[u] = Y, $[m] = Y / 3, $[d] = (U - G) / 6048e5, $[c] = (U - G) / 864e5, $[f] = U / o, $[l] = U / i, $[a] = U / r, $)[D] || U, _ ? Y : F.a(Y);
4821
4821
  }, O.daysInMonth = function() {
4822
4822
  return this.endOf(u).$D;
4823
4823
  }, O.$locale = function() {
4824
4824
  return S[this.$L];
4825
- }, O.locale = function(M, k) {
4825
+ }, O.locale = function(M, R) {
4826
4826
  if (!M)
4827
4827
  return this.$L;
4828
- var _ = this.clone(), $ = x(M, k, !0);
4828
+ var _ = this.clone(), $ = x(M, R, !0);
4829
4829
  return $ && (_.$L = $), _;
4830
4830
  }, O.clone = function() {
4831
4831
  return F.w(this.$d, this);
@@ -4837,16 +4837,16 @@ var _o = { exports: {} };
4837
4837
  return this.$d.toISOString();
4838
4838
  }, O.toString = function() {
4839
4839
  return this.$d.toUTCString();
4840
- }, R;
4840
+ }, k;
4841
4841
  }(), L = w.prototype;
4842
- return T.prototype = L, [["$ms", s], ["$s", a], ["$m", l], ["$H", f], ["$W", c], ["$M", u], ["$y", y], ["$D", p]].forEach(function(R) {
4843
- L[R[1]] = function(O) {
4844
- return this.$g(O, R[0], R[1]);
4842
+ return T.prototype = L, [["$ms", s], ["$s", a], ["$m", l], ["$H", f], ["$W", c], ["$M", u], ["$y", y], ["$D", p]].forEach(function(k) {
4843
+ L[k[1]] = function(O) {
4844
+ return this.$g(O, k[0], k[1]);
4845
4845
  };
4846
- }), T.extend = function(R, O) {
4847
- return R.$i || (R(O, w, T), R.$i = !0), T;
4848
- }, T.locale = x, T.isDayjs = E, T.unix = function(R) {
4849
- return T(1e3 * R);
4846
+ }), T.extend = function(k, O) {
4847
+ return k.$i || (k(O, w, T), k.$i = !0), T;
4848
+ }, T.locale = x, T.isDayjs = E, T.unix = function(k) {
4849
+ return T(1e3 * k);
4850
4850
  }, T.en = S[A], T.Ls = S, T.p = {}, T;
4851
4851
  });
4852
4852
  })(_o);
@@ -5195,9 +5195,9 @@ function gn(e) {
5195
5195
  onSelectAllRecords: A
5196
5196
  } = e, [S, E] = I([]), [x, T] = I([]), F = ue(!1), w = ue(null), {
5197
5197
  t: L
5198
- } = W(ye), R = ue(r), O = W(it), {
5198
+ } = W(ye), k = ue(r), O = W(it), {
5199
5199
  title: M = void 0,
5200
- setTitle: k = void 0
5200
+ setTitle: R = void 0
5201
5201
  } = (C ? O : {}) || {};
5202
5202
  he(() => {
5203
5203
  w.current = Dt(o);
@@ -5220,13 +5220,13 @@ function gn(e) {
5220
5220
  avatar: pc,
5221
5221
  tags: fc
5222
5222
  }, V);
5223
- T(N), w.current.string && M !== w.current.string && (k == null || k(w.current.string));
5223
+ T(N), w.current.string && M !== w.current.string && (R == null || R(w.current.string));
5224
5224
  }, [o]), he(() => {
5225
5225
  F.current = !1;
5226
5226
  const N = wo(w.current, s);
5227
- E(N), R.current = r;
5227
+ E(N), k.current = r;
5228
5228
  }, [s]);
5229
- const _ = (t - 1) * R.current + 1, $ = _ - 1 + S.length, D = i === void 0 ? null : i === 0 ? L("no_results") : L("summary").replace("{from}", _ == null ? void 0 : _.toString()).replace("{to}", $ == null ? void 0 : $.toString()).replace("{total}", i == null ? void 0 : i.toString()), j = () => {
5229
+ const _ = (t - 1) * k.current + 1, $ = _ - 1 + S.length, D = i === void 0 ? null : i === 0 ? L("no_results") : L("summary").replace("{from}", _ == null ? void 0 : _.toString()).replace("{to}", $ == null ? void 0 : $.toString()).replace("{total}", i == null ? void 0 : i.toString()), j = () => {
5230
5230
  var B;
5231
5231
  if (!c || o.isExpandable)
5232
5232
  return null;
@@ -5240,7 +5240,7 @@ function gn(e) {
5240
5240
  span: A ? 8 : 12,
5241
5241
  children: /* @__PURE__ */ n(fi, {
5242
5242
  total: i,
5243
- pageSize: R.current === 0 ? i : R.current,
5243
+ pageSize: k.current === 0 ? i : k.current,
5244
5244
  current: t,
5245
5245
  showSizeChanger: !1,
5246
5246
  onChange: a
@@ -5340,10 +5340,10 @@ function gc(e, t) {
5340
5340
  parentContext: u = {},
5341
5341
  onChangeSelectedRowKeys: m
5342
5342
  } = e, [y, p] = I(!1), [h, g] = I(!1), v = ue(!1), [C, V] = I(), [b, A] = I(), [S, E] = I(), [x, T] = I(), [F, w] = I(200), L = ue(), {
5343
- height: R
5343
+ height: k
5344
5344
  } = hn(), O = W(Lt), {
5345
5345
  processAction: M
5346
- } = O || {}, k = W(it), {
5346
+ } = O || {}, R = W(it), {
5347
5347
  setResults: _ = void 0,
5348
5348
  setCurrentItemIndex: $ = void 0,
5349
5349
  currentId: D = void 0,
@@ -5363,7 +5363,7 @@ function gc(e, t) {
5363
5363
  setSearchValues: pe = void 0,
5364
5364
  limit: Me = Ut,
5365
5365
  setLimit: _e = void 0
5366
- } = (d ? k : {}) || {}, {
5366
+ } = (d ? R : {}) || {}, {
5367
5367
  submit: Ne,
5368
5368
  clear: Ge,
5369
5369
  fetchResults: Se,
@@ -5493,7 +5493,7 @@ function gc(e, t) {
5493
5493
  }))), m == null || m(Ae);
5494
5494
  }
5495
5495
  function De() {
5496
- return b != null && b.isExpandable ? R - 160 : R - (F + 210);
5496
+ return b != null && b.isExpandable ? k - 160 : k - (F + 210);
5497
5497
  }
5498
5498
  const nt = () => !b || !S ? null : /* @__PURE__ */ P(te, {
5499
5499
  children: [/* @__PURE__ */ n(Oo, {
@@ -5691,11 +5691,11 @@ const ko = bt(gc), Mo = (e) => {
5691
5691
  getFields: F,
5692
5692
  getContext: w,
5693
5693
  elementHasLostFocus: L
5694
- } = E || {}, R = ue([]), [O, M] = I([]), k = t && t[0] || void 0, _ = t && t[1] || "";
5694
+ } = E || {}, k = ue([]), [O, M] = I([]), R = t && t[0] || void 0, _ = t && t[1] || "";
5695
5695
  he(() => {
5696
5696
  !Array.isArray(t) && t && U(t);
5697
5697
  }, [t]), he(() => {
5698
- k && _.length === 0 ? U(k) : k && _.length > 0 ? A(_) : !k && !_ && A(S.current || "");
5698
+ R && _.length === 0 ? U(R) : R && _.length > 0 ? A(_) : !R && !_ && A(S.current || "");
5699
5699
  }, [t]);
5700
5700
  const $ = (B) => {
5701
5701
  r == null || r(B), L == null || L();
@@ -5709,7 +5709,7 @@ const ko = bt(gc), Mo = (e) => {
5709
5709
  }
5710
5710
  g(!0);
5711
5711
  try {
5712
- if (R.current && R.current.length > 0)
5712
+ if (k.current && k.current.length > 0)
5713
5713
  G(S.current);
5714
5714
  else {
5715
5715
  const B = await H.getHandler().nameSearch({
@@ -5729,9 +5729,9 @@ const ko = bt(gc), Mo = (e) => {
5729
5729
  }
5730
5730
  }
5731
5731
  }, G = async (B) => {
5732
- if (await Y(), R.current && R.current.length > 0) {
5732
+ if (await Y(), k.current && k.current.length > 0) {
5733
5733
  const X = await H.getHandler().searchAllIds({
5734
- params: R.current,
5734
+ params: k.current,
5735
5735
  model: s,
5736
5736
  context: {
5737
5737
  ...w == null ? void 0 : w(),
@@ -5763,7 +5763,7 @@ const ko = bt(gc), Mo = (e) => {
5763
5763
  }
5764
5764
  };
5765
5765
  async function Y() {
5766
- c && (R.current = await H.getHandler().evalDomain({
5766
+ c && (k.current = await H.getHandler().evalDomain({
5767
5767
  domain: c,
5768
5768
  values: $t({
5769
5769
  fields: F(),
@@ -5771,13 +5771,13 @@ const ko = bt(gc), Mo = (e) => {
5771
5771
  }),
5772
5772
  fields: F(),
5773
5773
  context: w()
5774
- })), x && x.length > 0 && (R.current = R.current.concat(Wr({
5774
+ })), x && x.length > 0 && (k.current = k.current.concat(Wr({
5775
5775
  domain: x,
5776
5776
  widgetFieldName: f
5777
- }))), M(R.current);
5777
+ }))), M(k.current);
5778
5778
  }
5779
5779
  async function z(B) {
5780
- B.keyCode === 13 ? (B.preventDefault(), B.stopPropagation(), await j()) : B.code === "Backspace" && k !== void 0 && (B.preventDefault(), B.stopPropagation(), $([void 0, ""]));
5780
+ B.keyCode === 13 ? (B.preventDefault(), B.stopPropagation(), await j()) : B.code === "Backspace" && R !== void 0 && (B.preventDefault(), B.stopPropagation(), $([void 0, ""]));
5781
5781
  }
5782
5782
  return /* @__PURE__ */ P(Ce, {
5783
5783
  gutter: 8,
@@ -5793,7 +5793,7 @@ const ko = bt(gc), Mo = (e) => {
5793
5793
  onBlur: j,
5794
5794
  onKeyDown: z,
5795
5795
  suffix: /* @__PURE__ */ n(tr, {
5796
- id: k,
5796
+ id: R,
5797
5797
  model: s,
5798
5798
  context: {
5799
5799
  ...w == null ? void 0 : w(),
@@ -5808,7 +5808,7 @@ const ko = bt(gc), Mo = (e) => {
5808
5808
  },
5809
5809
  children: /* @__PURE__ */ n(Ie, {
5810
5810
  icon: /* @__PURE__ */ n(jn, {}),
5811
- disabled: k === void 0 || _ === "" || b === void 0,
5811
+ disabled: R === void 0 || _ === "" || b === void 0,
5812
5812
  onClick: () => {
5813
5813
  p(!0);
5814
5814
  },
@@ -5843,7 +5843,7 @@ const ko = bt(gc), Mo = (e) => {
5843
5843
  ...l
5844
5844
  },
5845
5845
  visible: u,
5846
- nameSearch: k ? void 0 : v,
5846
+ nameSearch: R ? void 0 : v,
5847
5847
  onSelectValues: (B) => {
5848
5848
  m(!1), U(B[0]), V.current = !1, S.current = void 0;
5849
5849
  },
@@ -5903,9 +5903,9 @@ const ko = bt(gc), Mo = (e) => {
5903
5903
  field: c,
5904
5904
  operator: d,
5905
5905
  manualIds: u
5906
- } = e, [m, y] = I(!1), [p, h] = I(), [g, v] = I(), [C, V] = I(), [b, A] = I(0), [S, E] = I(0), [x, T] = I(), [F, w] = I(), [L, R] = I();
5906
+ } = e, [m, y] = I(!1), [p, h] = I(), [g, v] = I(), [C, V] = I(), [b, A] = I(0), [S, E] = I(0), [x, T] = I(), [F, w] = I(), [L, k] = I();
5907
5907
  he(() => {
5908
- k();
5908
+ R();
5909
5909
  }, [t, o]);
5910
5910
  async function O({
5911
5911
  domain: _,
@@ -5962,7 +5962,7 @@ const ko = bt(gc), Mo = (e) => {
5962
5962
  context: i
5963
5963
  });
5964
5964
  }
5965
- async function k() {
5965
+ async function R() {
5966
5966
  y(!0);
5967
5967
  let _, $;
5968
5968
  try {
@@ -6006,7 +6006,7 @@ const ko = bt(gc), Mo = (e) => {
6006
6006
  } else
6007
6007
  w(l);
6008
6008
  } catch (D) {
6009
- R(JSON.stringify(D));
6009
+ k(JSON.stringify(D));
6010
6010
  }
6011
6011
  y(!1);
6012
6012
  }
@@ -6762,7 +6762,7 @@ const Gc = (e) => {
6762
6762
  } = d || {}, {
6763
6763
  lang: g,
6764
6764
  t: v
6765
- } = W(ye), [C, V] = I(!1), [b, A] = I(!1), [S, E] = I(), [x, T] = I(!1), [F, w] = I(!1), [L, R] = I(), [O, M] = I([]), [k, _] = I(!1), $ = ue([]), [D, j] = I(), G = ue(), [U, Y] = I(void 0), {
6765
+ } = W(ye), [C, V] = I(!1), [b, A] = I(!1), [S, E] = I(), [x, T] = I(!1), [F, w] = I(!1), [L, k] = I(), [O, M] = I([]), [R, _] = I(!1), $ = ue([]), [D, j] = I(), G = ue(), [U, Y] = I(void 0), {
6766
6766
  readOnly: z,
6767
6767
  relation: N,
6768
6768
  context: B,
@@ -6901,10 +6901,10 @@ const Gc = (e) => {
6901
6901
  Q && u && (ae = {
6902
6902
  [Q]: u
6903
6903
  }), a === "form" ? be(() => {
6904
- _(!0), R({
6904
+ _(!0), k({
6905
6905
  defaultValues: ae
6906
6906
  }), T(!0);
6907
- }) : (_(!0), R({
6907
+ }) : (_(!0), k({
6908
6908
  defaultValues: ae
6909
6909
  }), T(!0));
6910
6910
  }, ee = async () => {
@@ -6982,14 +6982,14 @@ const Gc = (e) => {
6982
6982
  }
6983
6983
  });
6984
6984
  }
6985
- pe(Fe), k || T(!1);
6985
+ pe(Fe), R || T(!1);
6986
6986
  }, se = async (Q) => {
6987
6987
  const {
6988
6988
  id: ae
6989
6989
  } = Q;
6990
6990
  let Te = s;
6991
6991
  const ve = s.find((Fe) => Fe.id === ae);
6992
- (ve == null ? void 0 : ve.values) === void 0 && (Te = await _e("form")), R(Te.find((Fe) => Fe.id === ae)), _(!1), T(!0);
6992
+ (ve == null ? void 0 : ve.values) === void 0 && (Te = await _e("form")), k(Te.find((Fe) => Fe.id === ae)), _(!1), T(!0);
6993
6993
  }, me = async (Q) => {
6994
6994
  A(!0);
6995
6995
  let ae = s;
@@ -7118,7 +7118,7 @@ const Gc = (e) => {
7118
7118
  type: "error",
7119
7119
  banner: !0
7120
7120
  });
7121
- const et = k;
7121
+ const et = R;
7122
7122
  return b ? /* @__PURE__ */ n(Ve, {}) : /* @__PURE__ */ P(te, {
7123
7123
  children: [/* @__PURE__ */ n(Yc, {
7124
7124
  mode: a,
@@ -7840,7 +7840,7 @@ var Bo = { exports: {} };
7840
7840
  g = h, v = l && l.formats;
7841
7841
  for (var C = (h = g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(T, F, w) {
7842
7842
  var L = w && w.toUpperCase();
7843
- return F || v[w] || r[w] || v[L].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(R, O, M) {
7843
+ return F || v[w] || r[w] || v[L].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(k, O, M) {
7844
7844
  return O || M.slice(1);
7845
7845
  });
7846
7846
  })).match(i), V = C.length, b = 0; b < V; b += 1) {
@@ -7849,11 +7849,11 @@ var Bo = { exports: {} };
7849
7849
  }
7850
7850
  return function(T) {
7851
7851
  for (var F = {}, w = 0, L = 0; w < V; w += 1) {
7852
- var R = C[w];
7853
- if (typeof R == "string")
7854
- L += R.length;
7852
+ var k = C[w];
7853
+ if (typeof k == "string")
7854
+ L += k.length;
7855
7855
  else {
7856
- var O = R.regex, M = R.parser, k = T.slice(L), _ = O.exec(k)[0];
7856
+ var O = k.regex, M = k.parser, R = T.slice(L), _ = O.exec(R)[0];
7857
7857
  M.call(F, _), T = T.replace(_, "");
7858
7858
  }
7859
7859
  }
@@ -7875,11 +7875,11 @@ var Bo = { exports: {} };
7875
7875
  var x = E[1];
7876
7876
  if (typeof x == "string") {
7877
7877
  var T = E[2] === !0, F = E[3] === !0, w = T || F, L = E[2];
7878
- F && (L = E[2]), l = this.$locale(), !T && L && (l = v.Ls[L]), this.$d = function(k, _, $) {
7878
+ F && (L = E[2]), l = this.$locale(), !T && L && (l = v.Ls[L]), this.$d = function(R, _, $) {
7879
7879
  try {
7880
7880
  if (["x", "X"].indexOf(_) > -1)
7881
- return new Date((_ === "X" ? 1e3 : 1) * k);
7882
- var D = p(_)(k), j = D.year, G = D.month, U = D.day, Y = D.hours, z = D.minutes, N = D.seconds, B = D.milliseconds, X = D.zone, ne = new Date(), le = U || (j || G ? 1 : ne.getDate()), J = j || ne.getFullYear(), Z = 0;
7881
+ return new Date((_ === "X" ? 1e3 : 1) * R);
7882
+ var D = p(_)(R), j = D.year, G = D.month, U = D.day, Y = D.hours, z = D.minutes, N = D.seconds, B = D.milliseconds, X = D.zone, ne = new Date(), le = U || (j || G ? 1 : ne.getDate()), J = j || ne.getFullYear(), Z = 0;
7883
7883
  j && !G || (Z = G > 0 ? G - 1 : ne.getMonth());
7884
7884
  var fe = Y || 0, pe = z || 0, Me = N || 0, _e = B || 0;
7885
7885
  return X ? new Date(Date.UTC(J, Z, le, fe, pe, Me, _e + 60 * X.offset * 1e3)) : $ ? new Date(Date.UTC(J, Z, le, fe, pe, Me, _e)) : new Date(J, Z, le, fe, pe, Me, _e);
@@ -7888,14 +7888,14 @@ var Bo = { exports: {} };
7888
7888
  }
7889
7889
  }(A, x, S), this.init(), L && L !== !0 && (this.$L = this.locale(L).$L), w && A != this.format(x) && (this.$d = new Date("")), l = {};
7890
7890
  } else if (x instanceof Array)
7891
- for (var R = x.length, O = 1; O <= R; O += 1) {
7891
+ for (var k = x.length, O = 1; O <= k; O += 1) {
7892
7892
  E[1] = x[O - 1];
7893
7893
  var M = v.apply(this, E);
7894
7894
  if (M.isValid()) {
7895
7895
  this.$d = M.$d, this.$L = M.$L, this.init();
7896
7896
  break;
7897
7897
  }
7898
- O === R && (this.$d = new Date(""));
7898
+ O === k && (this.$d = new Date(""));
7899
7899
  }
7900
7900
  else
7901
7901
  V.call(this, b);
@@ -8564,11 +8564,11 @@ function _d({
8564
8564
  lang: F
8565
8565
  } = W(ye), w = W(Lt), {
8566
8566
  processAction: L
8567
- } = w || {}, R = W(dt), {
8567
+ } = w || {}, k = W(dt), {
8568
8568
  openRelate: O,
8569
8569
  openDefaultActionForModel: M
8570
- } = R || {};
8571
- function k(N) {
8570
+ } = k || {};
8571
+ function R(N) {
8572
8572
  if (s) {
8573
8573
  Fd({
8574
8574
  lang: F,
@@ -8689,7 +8689,7 @@ function _d({
8689
8689
  disabled: a || l === void 0 || p || h || C,
8690
8690
  loading: !1,
8691
8691
  onClick: () => {
8692
- k(() => {
8692
+ R(() => {
8693
8693
  b.current.fetchValues();
8694
8694
  });
8695
8695
  }
@@ -9229,7 +9229,7 @@ const Nd = (e) => {
9229
9229
  searchValues: F,
9230
9230
  setSearchValues: w,
9231
9231
  currentView: L
9232
- } = c || {}, [R, O] = I(!0);
9232
+ } = c || {}, [k, O] = I(!0);
9233
9233
  he(() => {
9234
9234
  var j;
9235
9235
  (j = f.current) == null || j.refresh();
@@ -9238,7 +9238,7 @@ const Nd = (e) => {
9238
9238
  }, [L]);
9239
9239
  const {
9240
9240
  clear: M,
9241
- searchFilterLoading: k,
9241
+ searchFilterLoading: R,
9242
9242
  searchError: _,
9243
9243
  offset: $,
9244
9244
  tableRefreshing: D
@@ -9282,7 +9282,7 @@ const Nd = (e) => {
9282
9282
  limit: E,
9283
9283
  onClear: M,
9284
9284
  offset: $,
9285
- isSearching: k,
9285
+ isSearching: R,
9286
9286
  onSubmit: (j) => {
9287
9287
  O(!1), h == null || h(j.params), v == null || v(!1);
9288
9288
  },
@@ -9296,8 +9296,8 @@ const Nd = (e) => {
9296
9296
  model: i,
9297
9297
  context: o,
9298
9298
  domain: Wt(T || [], s),
9299
- limit: R ? E : void 0,
9300
- manualIds: R ? y == null ? void 0 : y.map((j) => j.id) : void 0
9299
+ limit: k ? E : void 0,
9300
+ manualIds: k ? y == null ? void 0 : y.map((j) => j.id) : void 0
9301
9301
  })]
9302
9302
  });
9303
9303
  }, Pd = (e) => {
@@ -9441,9 +9441,9 @@ function jd(e) {
9441
9441
  const {
9442
9442
  t: w,
9443
9443
  lang: L
9444
- } = W(ye), R = W(Lt), {
9444
+ } = W(ye), k = W(Lt), {
9445
9445
  processAction: O
9446
- } = R || {}, [M, k] = I(!1), _ = v !== void 0 && v.trim().length > 0;
9446
+ } = k || {}, [M, R] = I(!1), _ = v !== void 0 && v.trim().length > 0;
9447
9447
  function $() {
9448
9448
  Jt({
9449
9449
  confirmMessage: w("confirmRemove"),
@@ -9646,13 +9646,13 @@ function jd(e) {
9646
9646
  });
9647
9647
  return;
9648
9648
  }
9649
- k(!0);
9649
+ R(!0);
9650
9650
  },
9651
9651
  disabled: l || a || C || _
9652
9652
  }), /* @__PURE__ */ n(fd, {
9653
9653
  visible: M,
9654
9654
  locale: L,
9655
- onClose: () => k(!1),
9655
+ onClose: () => R(!1),
9656
9656
  model: c,
9657
9657
  domain: Wt(((U = d == null ? void 0 : d.current) == null ? void 0 : U.getDomain()) || [], y || []),
9658
9658
  limit: S,
@@ -9835,7 +9835,7 @@ function zd(e, t) {
9835
9835
  action_type: p,
9836
9836
  treeExpandable: h = !1,
9837
9837
  limit: g
9838
- } = e, [v, C] = I(), [V, b] = I([]), [A, S] = I(!0), E = m || void 0, [x, T] = I(E), [F, w] = I([]), [L, R] = I(), [O, M] = I([]), [k, _] = I(), [$, D] = I(0), [j, G] = I(!1), [U, Y] = I(!1), [z, N] = I(), {
9838
+ } = e, [v, C] = I(), [V, b] = I([]), [A, S] = I(!0), E = m || void 0, [x, T] = I(E), [F, w] = I([]), [L, k] = I(), [O, M] = I([]), [R, _] = I(), [$, D] = I(0), [j, G] = I(!1), [U, Y] = I(!1), [z, N] = I(), {
9839
9839
  t: B
9840
9840
  } = W(ye), X = ue(), ne = ue(), le = W(dt), {
9841
9841
  setCurrentView: J,
@@ -9937,7 +9937,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
9937
9937
  canWeClose: ie
9938
9938
  }), he(() => {
9939
9939
  const ee = V.find((Re) => Re.type === "tree"), xe = V.find((Re) => c.id ? Re.type === c.type && Re.view_id === c.id : Re.type === c.type);
9940
- Ge(xe || ee), m ? Z == null || Z(E) : (Ne(void 0), R(void 0)), Se();
9940
+ Ge(xe || ee), m ? Z == null || Z(E) : (Ne(void 0), k(void 0)), Se();
9941
9941
  }, [i, s, m]), he(() => {
9942
9942
  pe === f && (Z == null || Z(x), J == null || J(v));
9943
9943
  }, [fe, pe]);
@@ -10006,7 +10006,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
10006
10006
  forcedValues: u,
10007
10007
  results: O,
10008
10008
  setResults: M,
10009
- setCurrentItemIndex: R
10009
+ setCurrentItemIndex: k
10010
10010
  }, `${ee.type}-${ee.view_id}`);
10011
10011
  case "tree":
10012
10012
  return /* @__PURE__ */ n(Kd, {
@@ -10021,7 +10021,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
10021
10021
  searchTreeNameSearch: z,
10022
10022
  availableViews: V,
10023
10023
  results: O,
10024
- setCurrentItemIndex: R,
10024
+ setCurrentItemIndex: k,
10025
10025
  setCurrentId: Ne,
10026
10026
  setCurrentView: Ge
10027
10027
  }, `${ee.type}-${ee.view_id}`);
@@ -10061,12 +10061,12 @@ Please, make sure the view ids on the fields_view_get responses are the same as
10061
10061
  onNewClicked: Ke,
10062
10062
  currentId: x,
10063
10063
  setCurrentId: Ne,
10064
- setCurrentItemIndex: R,
10064
+ setCurrentItemIndex: k,
10065
10065
  currentItemIndex: L,
10066
10066
  results: O,
10067
10067
  setResults: M,
10068
10068
  currentModel: i,
10069
- sorter: k,
10069
+ sorter: R,
10070
10070
  setSorter: _,
10071
10071
  totalItems: $,
10072
10072
  setTotalItems: D,
@@ -10249,7 +10249,7 @@ function ru(e) {
10249
10249
  domain: s = [],
10250
10250
  visible: a = !0,
10251
10251
  parentContext: l = {}
10252
- } = e, [f, c] = I(!1), [d, u] = I(!1), [m, y] = I(), [p, h] = I(), [g, v] = I(), [C, V] = I(1), [b, A] = I(0), S = ue(nu), E = ue([]), [x, T] = I(0), [F, w] = I([]), [L, R] = I(void 0), [O, M] = I(), [k, _] = I(), [$, D] = I(), [j, G] = I(!1), U = ue([]), Y = (Z) => {
10252
+ } = e, [f, c] = I(!1), [d, u] = I(!1), [m, y] = I(), [p, h] = I(), [g, v] = I(), [C, V] = I(1), [b, A] = I(0), S = ue(nu), E = ue([]), [x, T] = I(0), [F, w] = I([]), [L, k] = I(void 0), [O, M] = I(), [R, _] = I(), [$, D] = I(), [j, G] = I(!1), U = ue([]), Y = (Z) => {
10253
10253
  G(!0), V(Z), A((Z - 1) * S.current);
10254
10254
  }, z = async () => {
10255
10255
  const Z = U.current.length > 0 ? U.current : s, fe = Wt(E.current, Z), {
@@ -10269,7 +10269,7 @@ function ru(e) {
10269
10269
  colors: pe
10270
10270
  }
10271
10271
  });
10272
- R(rn(Ne));
10272
+ k(rn(Ne));
10273
10273
  const Ge = _t({
10274
10274
  resultsToSort: _e,
10275
10275
  sorter: O,
@@ -10338,9 +10338,9 @@ function ru(e) {
10338
10338
  style: {
10339
10339
  overflowY: "scroll"
10340
10340
  },
10341
- children: [k && /* @__PURE__ */ n(tt, {
10341
+ children: [R && /* @__PURE__ */ n(tt, {
10342
10342
  className: "mt-10",
10343
- message: k,
10343
+ message: R,
10344
10344
  type: "error",
10345
10345
  banner: !0
10346
10346
  }), /* @__PURE__ */ n(gn, {
@@ -10437,8 +10437,8 @@ function iu(e, t) {
10437
10437
  items: w,
10438
10438
  model: F,
10439
10439
  context: i
10440
- }), R = await A(L);
10441
- l(R), c(!1), m(!1);
10440
+ }), k = await A(L);
10441
+ l(k), c(!1), m(!1);
10442
10442
  } catch (x) {
10443
10443
  u(JSON.stringify(x));
10444
10444
  }
@@ -10489,13 +10489,13 @@ function iu(e, t) {
10489
10489
  values: w
10490
10490
  } = F;
10491
10491
  if (w.action_id && w.action_id.length > 0) {
10492
- const L = parseInt(w.action_id[0], 10), R = await Jd({
10492
+ const L = parseInt(w.action_id[0], 10), k = await Jd({
10493
10493
  actionId: L,
10494
10494
  rootContext: i
10495
10495
  });
10496
10496
  T.push({
10497
10497
  ...F,
10498
- actionData: R
10498
+ actionData: k
10499
10499
  });
10500
10500
  }
10501
10501
  }
@@ -10504,8 +10504,8 @@ function iu(e, t) {
10504
10504
  async function S(x) {
10505
10505
  if (!p)
10506
10506
  return;
10507
- const T = x.filter((R) => {
10508
- const O = a.find((k) => k.id === R.id);
10507
+ const T = x.filter((k) => {
10508
+ const O = a.find((R) => R.id === k.id);
10509
10509
  if (!O)
10510
10510
  return !1;
10511
10511
  if (!O.position)
@@ -10514,21 +10514,21 @@ function iu(e, t) {
10514
10514
  ...JSON.parse(O.position.replace(/'/g, '"')),
10515
10515
  id: O.id
10516
10516
  };
10517
- return JSON.stringify(R) !== JSON.stringify(M);
10517
+ return JSON.stringify(k) !== JSON.stringify(M);
10518
10518
  });
10519
10519
  if (T.length === 0)
10520
10520
  return;
10521
- const w = a.filter((R) => T.map((O) => O.id).includes(R.id)).map((R) => {
10521
+ const w = a.filter((k) => T.map((O) => O.id).includes(k.id)).map((k) => {
10522
10522
  const O = {
10523
- ...T.find((M) => M.id === R.id)
10523
+ ...T.find((M) => M.id === k.id)
10524
10524
  };
10525
10525
  return delete O.id, {
10526
- ...R
10526
+ ...k
10527
10527
  }, {
10528
- ...R,
10528
+ ...k,
10529
10529
  operation: "pendingUpdate",
10530
10530
  values: {
10531
- ...R.values,
10531
+ ...k.values,
10532
10532
  position: JSON.stringify(O).replace(/"/g, "'")
10533
10533
  }
10534
10534
  };
@@ -10562,11 +10562,11 @@ function iu(e, t) {
10562
10562
  values: w
10563
10563
  } = x, {
10564
10564
  position: L,
10565
- id: R
10565
+ id: k
10566
10566
  } = w, {
10567
10567
  actionId: O,
10568
10568
  actionType: M,
10569
- key: k,
10569
+ key: R,
10570
10570
  title: _,
10571
10571
  views: $,
10572
10572
  model: D,
@@ -10637,7 +10637,7 @@ function iu(e, t) {
10637
10637
  N = /* @__PURE__ */ n(Uo, {
10638
10638
  action_id: O,
10639
10639
  action_type: M,
10640
- tabKey: k,
10640
+ tabKey: R,
10641
10641
  title: _,
10642
10642
  views: $,
10643
10643
  model: D,
@@ -10672,13 +10672,13 @@ function iu(e, t) {
10672
10672
  };
10673
10673
  }
10674
10674
  return /* @__PURE__ */ n(tu, {
10675
- id: R,
10675
+ id: k,
10676
10676
  title: _,
10677
10677
  parms: z,
10678
10678
  action: B,
10679
10679
  openAction: y,
10680
10680
  children: N
10681
- }, R);
10681
+ }, k);
10682
10682
  })
10683
10683
  });
10684
10684
  }
@@ -10743,9 +10743,9 @@ const su = bt(iu), au = (e) => {
10743
10743
  }
10744
10744
  })).map((w) => {
10745
10745
  const L = w[h];
10746
- let R = L;
10747
- return Array.isArray(L) && (R = L[1]), {
10748
- label: R,
10746
+ let k = L;
10747
+ return Array.isArray(L) && (k = L[1]), {
10748
+ label: k,
10749
10749
  value: w.id
10750
10750
  };
10751
10751
  });
@@ -11149,7 +11149,7 @@ function _u(e, t) {
11149
11149
  ze("Action type not supported");
11150
11150
  return;
11151
11151
  }
11152
- const [w, L] = b.split(","), R = parseInt(L), O = wt({
11152
+ const [w, L] = b.split(","), k = parseInt(L), O = wt({
11153
11153
  context: F.context,
11154
11154
  values: i,
11155
11155
  fields: {}
@@ -11161,7 +11161,7 @@ function _u(e, t) {
11161
11161
  ...O
11162
11162
  }
11163
11163
  }) : [], {
11164
- res_model: k,
11164
+ res_model: R,
11165
11165
  views: _,
11166
11166
  name: $,
11167
11167
  target: D,
@@ -11178,7 +11178,7 @@ function _u(e, t) {
11178
11178
  const {
11179
11179
  view_id: ne
11180
11180
  } = await H.getHandler().getView({
11181
- model: k,
11181
+ model: R,
11182
11182
  type: X,
11183
11183
  id: B,
11184
11184
  context: {
@@ -11209,13 +11209,13 @@ function _u(e, t) {
11209
11209
  ...o,
11210
11210
  ...O
11211
11211
  },
11212
- model: k,
11212
+ model: R,
11213
11213
  views: Y,
11214
11214
  title: $,
11215
11215
  target: D,
11216
11216
  initialView: z,
11217
11217
  action_type: w,
11218
- action_id: R,
11218
+ action_id: k,
11219
11219
  values: A,
11220
11220
  forced_values: S,
11221
11221
  res_id: x,
@@ -11250,11 +11250,11 @@ function _u(e, t) {
11250
11250
  context: F,
11251
11251
  domain: w,
11252
11252
  views: L,
11253
- target: R,
11253
+ target: k,
11254
11254
  string: O,
11255
11255
  limit: M
11256
- } = b, [k, _] = L[0], $ = {
11257
- id: k,
11256
+ } = b, [R, _] = L[0], $ = {
11257
+ id: R,
11258
11258
  type: _
11259
11259
  }, D = wt({
11260
11260
  context: F,
@@ -11280,7 +11280,7 @@ function _u(e, t) {
11280
11280
  }) : [];
11281
11281
  V({
11282
11282
  model: T,
11283
- target: R,
11283
+ target: k,
11284
11284
  views: L,
11285
11285
  context: {
11286
11286
  ...o,
@@ -11315,10 +11315,10 @@ function _u(e, t) {
11315
11315
  ...w
11316
11316
  }
11317
11317
  }) : [], {
11318
- res_model: R,
11318
+ res_model: k,
11319
11319
  views: O,
11320
11320
  name: M,
11321
- target: k,
11321
+ target: R,
11322
11322
  view_type: _,
11323
11323
  limit: $
11324
11324
  } = F, D = _ === "tree", j = [];
@@ -11332,7 +11332,7 @@ function _u(e, t) {
11332
11332
  const {
11333
11333
  view_id: X
11334
11334
  } = await H.getHandler().getView({
11335
- model: R,
11335
+ model: k,
11336
11336
  type: B,
11337
11337
  id: N,
11338
11338
  context: {
@@ -11359,10 +11359,10 @@ function _u(e, t) {
11359
11359
  ...o,
11360
11360
  ...w
11361
11361
  },
11362
- model: R,
11362
+ model: k,
11363
11363
  views: j,
11364
11364
  title: M,
11365
- target: k,
11365
+ target: R,
11366
11366
  initialView: Y,
11367
11367
  action_id: A,
11368
11368
  action_type: S,
@@ -11399,10 +11399,10 @@ function _u(e, t) {
11399
11399
  initialView: F,
11400
11400
  action_id: w,
11401
11401
  action_type: L,
11402
- res_id: R,
11402
+ res_id: k,
11403
11403
  values: O,
11404
11404
  forced_values: M,
11405
- treeExpandable: k = !1,
11405
+ treeExpandable: R = !1,
11406
11406
  limit: _
11407
11407
  }) {
11408
11408
  const $ = so();
@@ -11427,7 +11427,7 @@ function _u(e, t) {
11427
11427
  actionData: {
11428
11428
  action_id: w,
11429
11429
  action_type: L,
11430
- res_id: R,
11430
+ res_id: k,
11431
11431
  view_id: D.view_id
11432
11432
  }
11433
11433
  });
@@ -11456,10 +11456,10 @@ function _u(e, t) {
11456
11456
  domain: b,
11457
11457
  setCanWeClose: y,
11458
11458
  initialView: D,
11459
- res_id: R,
11459
+ res_id: k,
11460
11460
  formDefaultValues: O,
11461
11461
  formForcedValues: M,
11462
- treeExpandable: k,
11462
+ treeExpandable: R,
11463
11463
  limit: _
11464
11464
  }),
11465
11465
  key: $
@@ -11626,30 +11626,30 @@ const {
11626
11626
  async function x() {
11627
11627
  try {
11628
11628
  m(!0);
11629
- const k = await t();
11630
- d(k);
11631
- } catch (k) {
11632
- ze(k);
11629
+ const R = await t();
11630
+ d(R);
11631
+ } catch (R) {
11632
+ ze(R);
11633
11633
  } finally {
11634
11634
  m(!1);
11635
11635
  }
11636
11636
  }
11637
- function T(k) {
11637
+ function T(R) {
11638
11638
  const {
11639
11639
  key: _
11640
- } = k, $ = c.find((D) => D.id === Number(_));
11640
+ } = R, $ = c.find((D) => D.id === Number(_));
11641
11641
  ($ == null ? void 0 : $.action_type) !== "ir.actions.wizard" && ($ && C($), f(!1));
11642
11642
  }
11643
- function F(k) {
11644
- k && x(), f(k);
11643
+ function F(R) {
11644
+ R && x(), f(R);
11645
11645
  }
11646
11646
  async function w() {
11647
11647
  if (!A)
11648
11648
  return;
11649
- const k = V.find((U) => U.key === b), {
11649
+ const R = V.find((U) => U.key === b), {
11650
11650
  id: _,
11651
11651
  type: $
11652
- } = (k == null ? void 0 : k.action) || {};
11652
+ } = (R == null ? void 0 : R.action) || {};
11653
11653
  if (!_ || !$) {
11654
11654
  a(!1);
11655
11655
  return;
@@ -11670,7 +11670,7 @@ const {
11670
11670
  model: "ir.ui.view_sc"
11671
11671
  });
11672
11672
  }
11673
- const R = /* @__PURE__ */ P(je, {
11673
+ const k = /* @__PURE__ */ P(je, {
11674
11674
  onClick: T,
11675
11675
  children: [/* @__PURE__ */ P("div", {
11676
11676
  style: {
@@ -11705,12 +11705,12 @@ const {
11705
11705
  padding: "1rem"
11706
11706
  }
11707
11707
  }) : c.length > 0 ? /* @__PURE__ */ n(te, {
11708
- children: c.map((k) => /* @__PURE__ */ n(je.Item, {
11708
+ children: c.map((R) => /* @__PURE__ */ n(je.Item, {
11709
11709
  children: /* @__PURE__ */ n(O, {
11710
- title: k.name,
11711
- type: k.view_type
11710
+ title: R.name,
11711
+ type: R.view_type
11712
11712
  })
11713
- }, k.id))
11713
+ }, R.id))
11714
11714
  }) : /* @__PURE__ */ n("div", {
11715
11715
  style: {
11716
11716
  width: 300,
@@ -11721,7 +11721,7 @@ const {
11721
11721
  })]
11722
11722
  });
11723
11723
  function O({
11724
- title: k,
11724
+ title: R,
11725
11725
  type: _
11726
11726
  }) {
11727
11727
  return /* @__PURE__ */ P(Ce, {
@@ -11734,7 +11734,7 @@ const {
11734
11734
  children: _ === "tree" ? /* @__PURE__ */ n(zn, {}) : /* @__PURE__ */ n(Kt, {})
11735
11735
  }), /* @__PURE__ */ n(de, {
11736
11736
  flex: "auto",
11737
- children: k
11737
+ children: R
11738
11738
  })]
11739
11739
  });
11740
11740
  }
@@ -11744,10 +11744,10 @@ const {
11744
11744
  else {
11745
11745
  if (!A)
11746
11746
  return;
11747
- const k = V.find((G) => G.key === b), {
11747
+ const R = V.find((G) => G.key === b), {
11748
11748
  id: _,
11749
11749
  type: $
11750
- } = (k == null ? void 0 : k.action) || {}, D = A.view_id;
11750
+ } = (R == null ? void 0 : R.action) || {}, D = A.view_id;
11751
11751
  let j = !1;
11752
11752
  if (!_ || !$) {
11753
11753
  a(!1);
@@ -11777,7 +11777,7 @@ const {
11777
11777
  },
11778
11778
  onClick: M
11779
11779
  }), /* @__PURE__ */ n(qt, {
11780
- overlay: R,
11780
+ overlay: k,
11781
11781
  onVisibleChange: F,
11782
11782
  open: l,
11783
11783
  children: /* @__PURE__ */ n(Ie, {
@@ -11791,7 +11791,7 @@ const {
11791
11791
  fontSize: "0.5em"
11792
11792
  }
11793
11793
  }),
11794
- onClick: (k) => k.preventDefault()
11794
+ onClick: (R) => R.preventDefault()
11795
11795
  })
11796
11796
  })]
11797
11797
  });