@gisce/react-ooui 2.0.0-alpha.66 → 2.0.0-alpha.67

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.
@@ -2015,7 +2015,7 @@ const Lt = ({
2015
2015
  setLimit: O,
2016
2016
  searchParams: _ = [],
2017
2017
  setSearchValues: V
2018
- } = e, [C, T] = b(!1), [x, S] = b(!1), [D, L] = b(), [N, j] = b(1), [P, $] = b(0), [K, R] = b(), [U, Q] = b([]), [X, se] = b(void 0), [Y, k] = b(void 0), E = de(v || Gt), ee = de([]), ce = Ce(
2018
+ } = e, [C, T] = b(!1), [x, S] = b(!1), [D, L] = b(), [P, j] = b(1), [N, $] = b(0), [K, R] = b(), [U, Q] = b([]), [X, se] = b(void 0), [Y, k] = b(void 0), E = de(v || Gt), ee = de([]), ce = Ce(
2019
2019
  (te) => {
2020
2020
  y == null || y([...te]), Q([...te]);
2021
2021
  },
@@ -2068,7 +2068,7 @@ const Lt = ({
2068
2068
  const { totalItems: De, results: $e, attrsEvaluated: oe } = await M.getHandler().searchForTree({
2069
2069
  params: Ne,
2070
2070
  limit: E.current,
2071
- offset: we || P,
2071
+ offset: we || N,
2072
2072
  model: t,
2073
2073
  fields: f.field_parent ? { ...f.fields, [f.field_parent]: {} } : f.fields,
2074
2074
  context: u,
@@ -2103,7 +2103,7 @@ const Lt = ({
2103
2103
  m,
2104
2104
  g,
2105
2105
  c,
2106
- P,
2106
+ N,
2107
2107
  _
2108
2108
  ]
2109
2109
  ), be = Ce(
@@ -2200,8 +2200,8 @@ const Lt = ({
2200
2200
  tableRefreshing: C,
2201
2201
  searchFilterLoading: x,
2202
2202
  searchError: D,
2203
- page: N,
2204
- offset: P,
2203
+ page: P,
2204
+ offset: N,
2205
2205
  limit: v,
2206
2206
  getResults: fe,
2207
2207
  requestPageChange: Me,
@@ -2239,7 +2239,7 @@ const Lt = ({
2239
2239
  setSearchTreeNameSearch: V,
2240
2240
  goToResourceId: C,
2241
2241
  limit: T
2242
- } = e, [x, S] = b(!1), [D, L] = b(!1), [N, j] = b(!1), [P, $] = b(!0), [K, R] = b(!0), [U, Q] = b([]), [X, se] = b(!1), [Y, k] = b([]), [E, ee] = b(!1), [ce, fe] = b(!0), [re, G] = b(), [be, Re] = b({}), [je, Me] = b(
2242
+ } = e, [x, S] = b(!1), [D, L] = b(!1), [P, j] = b(!1), [N, $] = b(!0), [K, R] = b(!0), [U, Q] = b([]), [X, se] = b(!1), [Y, k] = b([]), [E, ee] = b(!1), [ce, fe] = b(!0), [re, G] = b(), [be, Re] = b({}), [je, Me] = b(
2243
2243
  T !== void 0 ? T : Gt
2244
2244
  ), [Pe, Ge] = b(i);
2245
2245
  me(() => {
@@ -2286,9 +2286,9 @@ const Lt = ({
2286
2286
  results: m,
2287
2287
  setResults: f,
2288
2288
  currentModel: p,
2289
- removingItem: N,
2289
+ removingItem: P,
2290
2290
  setRemovingItem: j,
2291
- formIsLoading: P,
2291
+ formIsLoading: N,
2292
2292
  setFormIsLoading: $,
2293
2293
  treeIsLoading: K,
2294
2294
  setTreeIsLoading: R,
@@ -2374,15 +2374,15 @@ const Lt = ({
2374
2374
  const { reportData: C, fields: T, values: x, context: S = {} } = V, {
2375
2375
  context: D,
2376
2376
  model: L,
2377
- datas: N = {},
2377
+ datas: P = {},
2378
2378
  report_name: j,
2379
- type: P
2379
+ type: N
2380
2380
  } = C;
2381
- if (P !== "ir.actions.report.xml") {
2382
- qe(`${P} action not supported`);
2381
+ if (N !== "ir.actions.report.xml") {
2382
+ qe(`${N} action not supported`);
2383
2383
  return;
2384
2384
  }
2385
- const { ids: $ } = N || {}, K = $ || [], R = typeof D == "string" ? bt({
2385
+ const { ids: $ } = P || {}, K = $ || [], R = typeof D == "string" ? bt({
2386
2386
  context: D,
2387
2387
  fields: T,
2388
2388
  values: x
@@ -2391,7 +2391,7 @@ const Lt = ({
2391
2391
  const U = await M.getHandler().createReport({
2392
2392
  model: L,
2393
2393
  name: j,
2394
- datas: N,
2394
+ datas: P,
2395
2395
  ids: K,
2396
2396
  context: { ...S, ...R }
2397
2397
  });
@@ -2462,8 +2462,8 @@ const Lt = ({
2462
2462
  ...x,
2463
2463
  ...D
2464
2464
  };
2465
- let N = [];
2466
- if (S.domain && (N = await M.getHandler().evalDomain({
2465
+ let P = [];
2466
+ if (S.domain && (P = await M.getHandler().evalDomain({
2467
2467
  domain: S.domain,
2468
2468
  values: Lt({
2469
2469
  fields: C,
@@ -2472,20 +2472,20 @@ const Lt = ({
2472
2472
  fields: C,
2473
2473
  context: L
2474
2474
  })), S.target === "new") {
2475
- const P = await M.getHandler().getView({
2475
+ const N = await M.getHandler().getView({
2476
2476
  model: S.res_model,
2477
2477
  type: "form",
2478
2478
  id: ((j = S == null ? void 0 : S.view_id) == null ? void 0 : j[0]) || void 0,
2479
2479
  context: L
2480
2480
  });
2481
2481
  return v({
2482
- domain: N,
2482
+ domain: P,
2483
2483
  model: S.res_model,
2484
- formView: P,
2484
+ formView: N,
2485
2485
  context: L
2486
2486
  }), {};
2487
2487
  } else {
2488
- const { initialView: P, views: $ } = await _a({
2488
+ const { initialView: N, views: $ } = await _a({
2489
2489
  model: S.res_model,
2490
2490
  context: L,
2491
2491
  view_mode: S.view_mode,
@@ -2494,11 +2494,11 @@ const Lt = ({
2494
2494
  return u == null || u({
2495
2495
  target: "current",
2496
2496
  context: L,
2497
- domain: N,
2497
+ domain: P,
2498
2498
  model: S.res_model,
2499
2499
  views: $,
2500
2500
  title: S.name,
2501
- initialView: P,
2501
+ initialView: N,
2502
2502
  action_id: S.id,
2503
2503
  action_type: S.type
2504
2504
  }), { closeParent: !0 };
@@ -2681,7 +2681,7 @@ function Aa(e, t) {
2681
2681
  defaultValues: O,
2682
2682
  forcedValues: _ = {},
2683
2683
  parentWidth: V
2684
- } = e, { t: C, lang: T } = H(pe), [x, S] = b(!1), [D, L] = b(), [N, j] = b(), [P] = ct.useForm(), [$, K] = b(), [R, U] = b(), Q = H(po), [X, se] = b(), [Y, k] = b(!1), E = de(), ee = de({}), ce = de({}), fe = de(!1), re = de(!1), G = de(!1), Re = (V !== void 0 ? V : X) < Va, je = H(Le), { activeId: Me, getPlainValues: Pe } = je || {}, Ge = H(
2684
+ } = e, { t: C, lang: T } = H(pe), [x, S] = b(!1), [D, L] = b(), [P, j] = b(), [N] = ct.useForm(), [$, K] = b(), [R, U] = b(), Q = H(po), [X, se] = b(), [Y, k] = b(!1), E = de(), ee = de({}), ce = de({}), fe = de(!1), re = de(!1), G = de(!1), Re = (V !== void 0 ? V : X) < Va, je = H(Le), { activeId: Me, getPlainValues: Pe } = je || {}, Ge = H(
2685
2685
  at
2686
2686
  ), {
2687
2687
  setFormIsSaving: Se = void 0,
@@ -2756,7 +2756,7 @@ function Aa(e, t) {
2756
2756
  return B;
2757
2757
  }
2758
2758
  function Te() {
2759
- return { ...w, ...N == null ? void 0 : N.context };
2759
+ return { ...w, ...P == null ? void 0 : P.context };
2760
2760
  }
2761
2761
  function ge() {
2762
2762
  return ae() ? { active_id: ae(), active_ids: [ae()] } : {};
@@ -2771,7 +2771,7 @@ function Aa(e, t) {
2771
2771
  };
2772
2772
  }
2773
2773
  const Fe = async (B) => {
2774
- const W = ae() ? N == null ? void 0 : N.context : {};
2774
+ const W = ae() ? P == null ? void 0 : P.context : {};
2775
2775
  return await M.getHandler().defaultGet({
2776
2776
  model: r,
2777
2777
  fields: B,
@@ -2785,21 +2785,21 @@ function Aa(e, t) {
2785
2785
  fields: R
2786
2786
  })
2787
2787
  ).length !== 0, Xe = (B) => {
2788
- const W = P.getFieldsValue(!0);
2788
+ const W = N.getFieldsValue(!0);
2789
2789
  return Rt(W, B);
2790
2790
  }, yt = (B, W) => {
2791
2791
  Bt({
2792
2792
  values: {
2793
- ...Rt(P.getFieldsValue(!0), R),
2793
+ ...Rt(N.getFieldsValue(!0), R),
2794
2794
  [B]: W
2795
2795
  },
2796
2796
  fields: R,
2797
2797
  reset: !1
2798
2798
  });
2799
- }, Ve = (B) => P.getFieldsValue(!0)[B];
2799
+ }, Ve = (B) => N.getFieldsValue(!0)[B];
2800
2800
  async function ot() {
2801
2801
  try {
2802
- return await P.validateFields(), !1;
2802
+ return await N.validateFields(), !1;
2803
2803
  } catch {
2804
2804
  return Tn.error(C("fillRequiredFields")), !0;
2805
2805
  }
@@ -2857,7 +2857,7 @@ function Aa(e, t) {
2857
2857
  reset: Z,
2858
2858
  isDefaultGet: ne = !1
2859
2859
  }) => {
2860
- const it = { ...Z ? {} : P.getFieldsValue(!0), ...B }, xn = Rt(it, W), zo = Object.keys(W).map((Sn) => {
2860
+ const it = { ...Z ? {} : N.getFieldsValue(!0), ...B }, xn = Rt(it, W), zo = Object.keys(W).map((Sn) => {
2861
2861
  const Jo = xn[Sn] !== void 0 ? xn[Sn] : void 0;
2862
2862
  return {
2863
2863
  name: Sn,
@@ -2865,7 +2865,7 @@ function Aa(e, t) {
2865
2865
  value: Jo
2866
2866
  };
2867
2867
  });
2868
- ne || (ce.current = xn), P.setFields(zo);
2868
+ ne || (ce.current = xn), N.setFields(zo);
2869
2869
  }, Po = async ({
2870
2870
  fields: B,
2871
2871
  arch: W
@@ -2906,7 +2906,7 @@ function Aa(e, t) {
2906
2906
  fields: R,
2907
2907
  context: {
2908
2908
  ...w,
2909
- ...N == null ? void 0 : N.context
2909
+ ...P == null ? void 0 : P.context
2910
2910
  }
2911
2911
  }), ee.current = Xe(R);
2912
2912
  } else {
@@ -2916,7 +2916,7 @@ function Aa(e, t) {
2916
2916
  fields: R,
2917
2917
  context: {
2918
2918
  ...w,
2919
- ...N == null ? void 0 : N.context
2919
+ ...P == null ? void 0 : P.context
2920
2920
  }
2921
2921
  });
2922
2922
  E.current = ne, ee.current = Z;
@@ -2981,7 +2981,7 @@ function Aa(e, t) {
2981
2981
  }), Z = Object.keys(W);
2982
2982
  if (Z.length !== 0 && !(zs({
2983
2983
  changedFields: Z,
2984
- formOoui: N,
2984
+ formOoui: P,
2985
2985
  types: [
2986
2986
  "text",
2987
2987
  "codeeditor",
@@ -2994,7 +2994,7 @@ function Aa(e, t) {
2994
2994
  "many2one"
2995
2995
  ]
2996
2996
  }) && B !== !0)) {
2997
- const ne = Rt(P.getFieldsValue(!0), R);
2997
+ const ne = Rt(N.getFieldsValue(!0), R);
2998
2998
  ce.current = ne, d == null || d(ne), te == null || te(!0), Bo(Z);
2999
2999
  }
3000
3000
  }, $o = Oi(bn, 100), Bo = async (B) => {
@@ -3007,7 +3007,7 @@ function Aa(e, t) {
3007
3007
  qe(W);
3008
3008
  }
3009
3009
  }, Ho = async (B) => {
3010
- const W = N == null ? void 0 : N.onChangeFields[B];
3010
+ const W = P == null ? void 0 : P.onChangeFields[B];
3011
3011
  if (!W) {
3012
3012
  Ht({
3013
3013
  fields: R,
@@ -3021,7 +3021,7 @@ function Aa(e, t) {
3021
3021
  ...Xe(R),
3022
3022
  context: {
3023
3023
  ...w,
3024
- ...N == null ? void 0 : N.context
3024
+ ...P == null ? void 0 : P.context
3025
3025
  }
3026
3026
  },
3027
3027
  parentValues: Pe == null ? void 0 : Pe(),
@@ -3071,7 +3071,7 @@ function Aa(e, t) {
3071
3071
  action: B,
3072
3072
  payload: [ae()],
3073
3073
  context: {
3074
- ...N == null ? void 0 : N.context,
3074
+ ...P == null ? void 0 : P.context,
3075
3075
  ...w,
3076
3076
  ...W
3077
3077
  }
@@ -3122,7 +3122,7 @@ function Aa(e, t) {
3122
3122
  values: Ye(),
3123
3123
  context: {
3124
3124
  ...w,
3125
- ...N == null ? void 0 : N.context,
3125
+ ...P == null ? void 0 : P.context,
3126
3126
  ...W
3127
3127
  },
3128
3128
  onRefreshParentValues: () => {
@@ -3164,7 +3164,7 @@ function Aa(e, t) {
3164
3164
  ne && Cn(!1), qe(he);
3165
3165
  }
3166
3166
  }
3167
- const Go = () => !N && !D ? /* @__PURE__ */ n(Ee, {}) : !r && !h || !F ? null : /* @__PURE__ */ n(J, { children: /* @__PURE__ */ n(
3167
+ const Go = () => !P && !D ? /* @__PURE__ */ n(Ee, {}) : !r && !h || !F ? null : /* @__PURE__ */ n(J, { children: /* @__PURE__ */ n(
3168
3168
  ms,
3169
3169
  {
3170
3170
  getValues: Ye,
@@ -3184,15 +3184,15 @@ function Aa(e, t) {
3184
3184
  children: /* @__PURE__ */ n(
3185
3185
  ct,
3186
3186
  {
3187
- form: P,
3187
+ form: N,
3188
3188
  onFieldsChange: () => {
3189
3189
  $o({ elementHasLostFocus: !1 });
3190
3190
  },
3191
3191
  component: !1,
3192
- children: N && /* @__PURE__ */ n(
3192
+ children: P && /* @__PURE__ */ n(
3193
3193
  En,
3194
3194
  {
3195
- container: N.container,
3195
+ container: P.container,
3196
3196
  responsiveBehaviour: Re
3197
3197
  }
3198
3198
  )
@@ -3618,18 +3618,18 @@ function wo(e) {
3618
3618
  if (!y)
3619
3619
  return;
3620
3620
  const x = I ? y : h, S = x == null ? void 0 : x.rows;
3621
- return S == null ? void 0 : S.map((D, L) => /* @__PURE__ */ n(xe, { children: D.map((N, j) => /* @__PURE__ */ n(le, { xs: 24, className: "p-2", xl: 6, children: /* @__PURE__ */ n(Ya, { field: N }) }, j)) }, L));
3621
+ return S == null ? void 0 : S.map((D, L) => /* @__PURE__ */ n(xe, { children: D.map((P, j) => /* @__PURE__ */ n(le, { xs: 24, className: "p-2", xl: 6, children: /* @__PURE__ */ n(Ya, { field: P }) }, j)) }, L));
3622
3622
  };
3623
3623
  It(() => {
3624
3624
  F(!1), v.current = new ui(r, t), v.current.parse(), p(v.current._simpleSearchContainer), w(v.current._advancedSearchContainer);
3625
3625
  }, [t, r]);
3626
3626
  const C = V(), T = (x) => {
3627
- var N;
3627
+ var P;
3628
3628
  const { limit: S, offset: D } = x;
3629
3629
  delete x.offset, delete x.limit;
3630
3630
  const L = ga(
3631
3631
  x,
3632
- (N = v.current) == null ? void 0 : N._advancedSearchContainer
3632
+ (P = v.current) == null ? void 0 : P._advancedSearchContainer
3633
3633
  );
3634
3634
  o({ params: L, offset: D, limit: S, searchValues: x });
3635
3635
  };
@@ -3826,7 +3826,7 @@ const Qa = (e) => /* @__PURE__ */ n(ye, { ...e, children: /* @__PURE__ */ n(bo,
3826
3826
  if (!t)
3827
3827
  return null;
3828
3828
  async function F() {
3829
- var x, S, D, L, N;
3829
+ var x, S, D, L, P;
3830
3830
  u(!0);
3831
3831
  try {
3832
3832
  const j = await M.getHandler().getView({
@@ -3835,18 +3835,18 @@ const Qa = (e) => /* @__PURE__ */ n(ye, { ...e, children: /* @__PURE__ */ n(bo,
3835
3835
  context: i
3836
3836
  });
3837
3837
  f(j);
3838
- let P = [];
3838
+ let N = [];
3839
3839
  const { toolbar: $ } = j;
3840
- (x = $.action) == null || x.filter((R) => R.hasOwnProperty("context")).map((R) => P.push(...In(R.context))), (S = $.action) == null || S.filter((R) => R.hasOwnProperty("domain")).map((R) => P.push(...ur(R.domain))), (D = $.relate) == null || D.filter((R) => R.hasOwnProperty("context")).map((R) => P.push(...In(R.context))), (L = $.relate) == null || L.filter((R) => R.hasOwnProperty("domain")).map((R) => P.push(...ur(R.domain))), (N = $.print) == null || N.filter((R) => R.hasOwnProperty("context")).map((R) => P.push(...In(R.context))), P = P.filter(
3840
+ (x = $.action) == null || x.filter((R) => R.hasOwnProperty("context")).map((R) => N.push(...In(R.context))), (S = $.action) == null || S.filter((R) => R.hasOwnProperty("domain")).map((R) => N.push(...ur(R.domain))), (D = $.relate) == null || D.filter((R) => R.hasOwnProperty("context")).map((R) => N.push(...In(R.context))), (L = $.relate) == null || L.filter((R) => R.hasOwnProperty("domain")).map((R) => N.push(...ur(R.domain))), (P = $.print) == null || P.filter((R) => R.hasOwnProperty("context")).map((R) => N.push(...In(R.context))), N = N.filter(
3841
3841
  (R) => Object.keys(j.fields).indexOf(R) > -1
3842
3842
  );
3843
3843
  let K = {};
3844
- P.length > 0 && (K = (await M.getHandler().readObjects({
3844
+ N = [...new Set(N)], N.length > 0 && (K = (await M.getHandler().readObjects({
3845
3845
  model: r,
3846
3846
  ids: [t],
3847
- fieldsToRetrieve: P,
3847
+ fieldsToRetrieve: N,
3848
3848
  context: i
3849
- }))[0]), K = { ...Rt(K, P), active_id: t }, g(K), u(!1);
3849
+ }))[0]), K = { ...Rt(K, N), active_id: t }, g(K), u(!1);
3850
3850
  } catch (j) {
3851
3851
  u(!1), qe(j);
3852
3852
  }
@@ -4230,9 +4230,9 @@ const rl = (e) => {
4230
4230
  context: v,
4231
4231
  readonly: O,
4232
4232
  onSelectAllRecords: _
4233
- } = e, [V, C] = b([]), T = de(!1), [x, S] = b(), { t: D } = H(pe), L = de(r), N = H(
4233
+ } = e, [V, C] = b([]), T = de(!1), [x, S] = b(), { t: D } = H(pe), L = de(r), P = H(
4234
4234
  at
4235
- ), { title: j = void 0, setTitle: P = void 0 } = (F ? N : {}) || {}, $ = ke(() => {
4235
+ ), { title: j = void 0, setTitle: N = void 0 } = (F ? P : {}) || {}, $ = ke(() => {
4236
4236
  if (x)
4237
4237
  return $s(
4238
4238
  x,
@@ -4244,7 +4244,7 @@ const rl = (e) => {
4244
4244
  }, [v, x]);
4245
4245
  me(() => {
4246
4246
  const E = At(o);
4247
- S(E), E.string && j !== E.string && (P == null || P(E.string));
4247
+ S(E), E.string && j !== E.string && (N == null || N(E.string));
4248
4248
  }, [o, j]), me(() => {
4249
4249
  if (!x)
4250
4250
  return;
@@ -4358,9 +4358,9 @@ function bl(e, t) {
4358
4358
  rootTree: c = !1,
4359
4359
  parentContext: f = {},
4360
4360
  onChangeSelectedRowKeys: m
4361
- } = e, [g, h] = b(!1), [p, y] = b(!1), w = de(!1), [I, F] = b(), [v, O] = b(), [_, V] = b(), [C, T] = b(), [x, S] = b(200), D = de(), { height: L } = gn(), N = H(
4361
+ } = e, [g, h] = b(!1), [p, y] = b(!1), w = de(!1), [I, F] = b(), [v, O] = b(), [_, V] = b(), [C, T] = b(), [x, S] = b(200), D = de(), { height: L } = gn(), P = H(
4362
4362
  $t
4363
- ), { processAction: j } = N || {}, P = H(
4363
+ ), { processAction: j } = P || {}, N = H(
4364
4364
  at
4365
4365
  ), {
4366
4366
  setResults: $ = void 0,
@@ -4382,7 +4382,7 @@ function bl(e, t) {
4382
4382
  setSearchValues: Re = void 0,
4383
4383
  limit: je = Gt,
4384
4384
  setLimit: Me = void 0
4385
- } = (c ? P : {}) || {}, Pe = Ce(
4385
+ } = (c ? N : {}) || {}, Pe = Ce(
4386
4386
  (Ve) => {
4387
4387
  X == null || X(Ve.map((ot) => ({ id: ot }))), m == null || m(Ve);
4388
4388
  },
@@ -4711,11 +4711,11 @@ const xo = xt(bl), So = (e) => {
4711
4711
  context: l,
4712
4712
  id: d,
4713
4713
  domain: u
4714
- } = i, c = o && !a ? { backgroundColor: To.colorPrimaryBg } : void 0, [f, m] = b(!1), [g, h] = b(!1), [p, y] = b(!1), [w, I] = b(), F = de(!1), [v, O] = b(""), _ = de(), V = H(Le), { domain: C, getValues: T, getFields: x, getContext: S, elementHasLostFocus: D } = V || {}, L = de([]), [N, j] = b([]), P = t && t[0] || void 0, $ = t && t[1] || "";
4714
+ } = i, c = o && !a ? { backgroundColor: To.colorPrimaryBg } : void 0, [f, m] = b(!1), [g, h] = b(!1), [p, y] = b(!1), [w, I] = b(), F = de(!1), [v, O] = b(""), _ = de(), V = H(Le), { domain: C, getValues: T, getFields: x, getContext: S, elementHasLostFocus: D } = V || {}, L = de([]), [P, j] = b([]), N = t && t[0] || void 0, $ = t && t[1] || "";
4715
4715
  me(() => {
4716
4716
  !Array.isArray(t) && t && X(t);
4717
4717
  }, [t]), me(() => {
4718
- P && $.length === 0 ? X(P) : P && $.length > 0 ? O($) : !P && !$ && O(_.current || "");
4718
+ N && $.length === 0 ? X(N) : N && $.length > 0 ? O($) : !N && !$ && O(_.current || "");
4719
4719
  }, [t]);
4720
4720
  const K = (E) => {
4721
4721
  r == null || r(E), D == null || D();
@@ -4790,7 +4790,7 @@ const xo = xt(bl), So = (e) => {
4790
4790
  )), j(L.current);
4791
4791
  }
4792
4792
  async function Y(E) {
4793
- E.keyCode === 13 ? (E.preventDefault(), E.stopPropagation(), await U()) : E.code === "Backspace" && P !== void 0 && (E.preventDefault(), E.stopPropagation(), K([void 0, ""]));
4793
+ E.keyCode === 13 ? (E.preventDefault(), E.stopPropagation(), await U()) : E.code === "Backspace" && N !== void 0 && (E.preventDefault(), E.stopPropagation(), K([void 0, ""]));
4794
4794
  }
4795
4795
  return /* @__PURE__ */ A(xe, { gutter: 8, wrap: !1, children: [
4796
4796
  /* @__PURE__ */ n(le, { flex: "auto", children: /* @__PURE__ */ n(
@@ -4806,7 +4806,7 @@ const xo = xt(bl), So = (e) => {
4806
4806
  suffix: /* @__PURE__ */ n(
4807
4807
  nr,
4808
4808
  {
4809
- id: P,
4809
+ id: N,
4810
4810
  model: s,
4811
4811
  context: { ...S == null ? void 0 : S(), ...l }
4812
4812
  }
@@ -4817,7 +4817,7 @@ const xo = xt(bl), So = (e) => {
4817
4817
  Oe,
4818
4818
  {
4819
4819
  icon: /* @__PURE__ */ n(Wn, {}),
4820
- disabled: P === void 0 || $ === "" || v === void 0,
4820
+ disabled: N === void 0 || $ === "" || v === void 0,
4821
4821
  onClick: () => {
4822
4822
  h(!0);
4823
4823
  },
@@ -4841,10 +4841,10 @@ const xo = xt(bl), So = (e) => {
4841
4841
  So,
4842
4842
  {
4843
4843
  model: s,
4844
- domain: N,
4844
+ domain: P,
4845
4845
  context: { ...S == null ? void 0 : S(), ...l },
4846
4846
  visible: f,
4847
- nameSearch: P ? void 0 : w,
4847
+ nameSearch: N ? void 0 : w,
4848
4848
  onSelectValues: (E) => {
4849
4849
  m(!1), X(E[0]), F.current = !1, _.current = void 0;
4850
4850
  },
@@ -4911,9 +4911,9 @@ const xo = xt(bl), So = (e) => {
4911
4911
  manualIds: f
4912
4912
  } = e, [m, g] = b(!1), [h, p] = b(), [y, w] = b(), [I, F] = b(), [v, O] = b(0), [_, V] = b(0), [C, T] = b(), [x, S] = b(), [D, L] = b();
4913
4913
  me(() => {
4914
- P();
4914
+ N();
4915
4915
  }, [t, o]);
4916
- async function N({
4916
+ async function P({
4917
4917
  domain: $,
4918
4918
  isTotal: K
4919
4919
  }) {
@@ -4964,18 +4964,18 @@ const xo = xt(bl), So = (e) => {
4964
4964
  context: i
4965
4965
  });
4966
4966
  }
4967
- async function P() {
4967
+ async function N() {
4968
4968
  g(!0);
4969
4969
  let $, K;
4970
4970
  try {
4971
- const R = await N({ domain: r, isTotal: !1 });
4971
+ const R = await P({ domain: r, isTotal: !1 });
4972
4972
  if (p(R), s) {
4973
4973
  const U = await M.getHandler().evalDomain({
4974
4974
  domain: s,
4975
4975
  values: {},
4976
4976
  context: i
4977
4977
  });
4978
- $ = await N({
4978
+ $ = await P({
4979
4979
  domain: U,
4980
4980
  isTotal: !0
4981
4981
  }), F($);
@@ -5668,7 +5668,7 @@ const Xl = (e) => {
5668
5668
  var Ye;
5669
5669
  const { value: t, onChange: r, ooui: i, views: o } = e, { items: s = [] } = t || {}, { currentView: a, setCurrentView: l, itemIndex: d, setItemIndex: u } = H(
5670
5670
  Fo
5671
- ), c = H(Le), { activeId: f, getFields: m, getValues: g, getContext: h, domain: p } = c || {}, { lang: y, t: w } = H(pe), [I, F] = b(!1), [v, O] = b(!1), [_, V] = b(), [C, T] = b(!1), [x, S] = b(!1), [D, L] = b(), [N, j] = b([]), [P, $] = b(!1), K = de([]), [R, U] = b(), Q = de(), [X, se] = b(void 0), {
5671
+ ), c = H(Le), { activeId: f, getFields: m, getValues: g, getContext: h, domain: p } = c || {}, { lang: y, t: w } = H(pe), [I, F] = b(!1), [v, O] = b(!1), [_, V] = b(), [C, T] = b(!1), [x, S] = b(!1), [D, L] = b(), [P, j] = b([]), [N, $] = b(!1), K = de([]), [R, U] = b(), Q = de(), [X, se] = b(void 0), {
5672
5672
  readOnly: Y,
5673
5673
  relation: k,
5674
5674
  context: E,
@@ -5820,7 +5820,7 @@ const Xl = (e) => {
5820
5820
  }
5821
5821
  u(0), O(!1);
5822
5822
  }, De = async () => {
5823
- const z = re.filter((ie) => N.includes(ie.id));
5823
+ const z = re.filter((ie) => P.includes(ie.id));
5824
5824
  O(!0), F(!1), V(void 0);
5825
5825
  try {
5826
5826
  const ie = z.map((ge) => ge.id), Te = s.filter((ge) => !(ie.includes(ge.id) && ge.id < 0)).map((ge) => ie.includes(ge.id) ? {
@@ -5857,7 +5857,7 @@ const Xl = (e) => {
5857
5857
  treeValues: { ...Te, id: Fe }
5858
5858
  });
5859
5859
  }
5860
- Re(Ie), P || T(!1);
5860
+ Re(Ie), N || T(!1);
5861
5861
  }, oe = async (z) => {
5862
5862
  const { id: ie } = z;
5863
5863
  let Te = s;
@@ -5946,7 +5946,7 @@ const Xl = (e) => {
5946
5946
  loading: v,
5947
5947
  onRowClicked: ((Ie = o.get("form")) == null ? void 0 : Ie.fields) !== void 0 ? oe : void 0,
5948
5948
  showPagination: !1,
5949
- selectedRowKeys: N,
5949
+ selectedRowKeys: P,
5950
5950
  onRowSelectionChange: j,
5951
5951
  sorter: R,
5952
5952
  onChangeSort: U,
@@ -5971,7 +5971,7 @@ const Xl = (e) => {
5971
5971
  };
5972
5972
  if (_)
5973
5973
  return /* @__PURE__ */ n(tt, { className: "mt-10", message: _, type: "error", banner: !0 });
5974
- const Je = P;
5974
+ const Je = N;
5975
5975
  return v ? /* @__PURE__ */ n(Ee, {}) : /* @__PURE__ */ A(J, { children: [
5976
5976
  /* @__PURE__ */ n(
5977
5977
  ql,
@@ -5989,7 +5989,7 @@ const Xl = (e) => {
5989
5989
  onPreviousItem: Se,
5990
5990
  onNextItem: te,
5991
5991
  onSearchItem: q,
5992
- selectedRowKeys: N,
5992
+ selectedRowKeys: P,
5993
5993
  showCreateButton: ((Ye = o.get("form")) == null ? void 0 : Ye.fields) !== void 0,
5994
5994
  showToggleButton: o.size > 1
5995
5995
  }
@@ -7157,8 +7157,8 @@ function Dc({ toolbar: e }) {
7157
7157
  $t
7158
7158
  ), { processAction: D } = S || {}, L = H(
7159
7159
  ut
7160
- ), { openRelate: N, openDefaultActionForModel: j } = L || {};
7161
- function P(k) {
7160
+ ), { openRelate: P, openDefaultActionForModel: j } = L || {};
7161
+ function N(k) {
7162
7162
  if (s) {
7163
7163
  Oc({
7164
7164
  lang: x,
@@ -7304,7 +7304,7 @@ function Dc({ toolbar: e }) {
7304
7304
  disabled: a || l === void 0 || h || p || I,
7305
7305
  loading: !1,
7306
7306
  onClick: () => {
7307
- P(() => {
7307
+ N(() => {
7308
7308
  v.current.fetchValues();
7309
7309
  });
7310
7310
  }
@@ -7399,7 +7399,7 @@ function Dc({ toolbar: e }) {
7399
7399
  onItemClick: async (k) => {
7400
7400
  !k || !(await Ot({
7401
7401
  onFormSave: o
7402
- })).succeed || N({
7402
+ })).succeed || P({
7403
7403
  relateData: k,
7404
7404
  values: v.current.getValues(),
7405
7405
  fields: v.current.getFields(),
@@ -7826,14 +7826,14 @@ const Hc = (e) => {
7826
7826
  searchValues: x,
7827
7827
  setSearchValues: S,
7828
7828
  currentView: D
7829
- } = u || {}, [L, N] = b(!0);
7829
+ } = u || {}, [L, P] = b(!0);
7830
7830
  me(() => {
7831
7831
  var U;
7832
7832
  (U = d.current) == null || U.refresh();
7833
7833
  }, [T]), me(() => {
7834
- t.view_id !== D.view_id && N(!0);
7834
+ t.view_id !== D.view_id && P(!0);
7835
7835
  }, [D]);
7836
- const { clear: j, searchFilterLoading: P, searchError: $, offset: K, tableRefreshing: R } = go({
7836
+ const { clear: j, searchFilterLoading: N, searchError: $, offset: K, tableRefreshing: R } = go({
7837
7837
  model: i,
7838
7838
  setSearchTreeNameSearch: O,
7839
7839
  setSelectedRowItems: h,
@@ -7876,9 +7876,9 @@ const Hc = (e) => {
7876
7876
  limit: V,
7877
7877
  onClear: j,
7878
7878
  offset: K,
7879
- isSearching: P,
7879
+ isSearching: N,
7880
7880
  onSubmit: (U) => {
7881
- N(!1), p == null || p(U.params), w == null || w(!1);
7881
+ P(!1), p == null || p(U.params), w == null || w(!1);
7882
7882
  },
7883
7883
  searchError: $,
7884
7884
  searchVisible: y,
@@ -8012,9 +8012,9 @@ function Gc(e) {
8012
8012
  totalItems: V
8013
8013
  } = H(at), { parentContext: C = {}, treeExpandable: T, toolbar: x } = e, S = Uc(
8014
8014
  Eo.FEATURE_ADVANCED_EXPORT
8015
- ), { t: D, lang: L } = H(pe), N = H(
8015
+ ), { t: D, lang: L } = H(pe), P = H(
8016
8016
  $t
8017
- ), { processAction: j } = N || {}, [P, $] = b(!1), K = w !== void 0 && w.trim().length > 0;
8017
+ ), { processAction: j } = P || {}, [N, $] = b(!1), K = w !== void 0 && w.trim().length > 0;
8018
8018
  function R() {
8019
8019
  Xt({
8020
8020
  confirmMessage: D("confirmRemove"),
@@ -8268,7 +8268,7 @@ function Gc(e) {
8268
8268
  /* @__PURE__ */ n(
8269
8269
  gc,
8270
8270
  {
8271
- visible: P,
8271
+ visible: N,
8272
8272
  locale: L,
8273
8273
  onClose: () => $(!1),
8274
8274
  model: u,
@@ -8469,7 +8469,7 @@ function ed(e, t) {
8469
8469
  limit: y
8470
8470
  } = e, [w, I] = b(), [F, v] = b([]), [O, _] = b(!0), V = m || void 0, [C, T] = b(
8471
8471
  V
8472
- ), [x, S] = b([]), [D, L] = b(), [N, j] = b([]), [P, $] = b(), [K, R] = b(0), [U, Q] = b(!1), [X, se] = b(!1), [Y, k] = b(), { t: E } = H(pe) || {}, ee = de(), ce = de(), fe = H(
8472
+ ), [x, S] = b([]), [D, L] = b(), [P, j] = b([]), [N, $] = b(), [K, R] = b(0), [U, Q] = b(!1), [X, se] = b(!1), [Y, k] = b(), { t: E } = H(pe) || {}, ee = de(), ce = de(), fe = H(
8473
8473
  ut
8474
8474
  ), {
8475
8475
  setCurrentView: re,
@@ -8484,7 +8484,7 @@ function ed(e, t) {
8484
8484
  (q) => {
8485
8485
  q.preventDefault(), Ae();
8486
8486
  },
8487
- [Re, be, w, D, N]
8487
+ [Re, be, w, D, P]
8488
8488
  );
8489
8489
  function Pe(q) {
8490
8490
  T(q), G == null || G(q);
@@ -8593,7 +8593,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
8593
8593
  let ve, De;
8594
8594
  if (q.length === 1) {
8595
8595
  ve = "form", De = [];
8596
- const ue = q[0], Be = N.findIndex((Je) => Je.id === ue);
8596
+ const ue = q[0], Be = P.findIndex((Je) => Je.id === ue);
8597
8597
  let ae;
8598
8598
  if (Be === -1) {
8599
8599
  try {
@@ -8609,7 +8609,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
8609
8609
  return;
8610
8610
  }
8611
8611
  } else
8612
- ae = N[Be];
8612
+ ae = P[Be];
8613
8613
  } else
8614
8614
  ve = "tree", De = [["id", "in", q]];
8615
8615
  se(!1), Q(!1);
@@ -8643,7 +8643,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
8643
8643
  domain: r,
8644
8644
  defaultValues: c,
8645
8645
  forcedValues: f,
8646
- results: N,
8646
+ results: P,
8647
8647
  setResults: j,
8648
8648
  setCurrentItemIndex: L
8649
8649
  },
@@ -8663,7 +8663,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
8663
8663
  searchTreeRef: ce,
8664
8664
  searchTreeNameSearch: Y,
8665
8665
  availableViews: F,
8666
- results: N,
8666
+ results: P,
8667
8667
  setCurrentItemIndex: L,
8668
8668
  setCurrentId: Pe,
8669
8669
  setCurrentView: Ge
@@ -8721,10 +8721,10 @@ Please, make sure the view ids on the fields_view_get responses are the same as
8721
8721
  setCurrentId: Pe,
8722
8722
  setCurrentItemIndex: L,
8723
8723
  currentItemIndex: D,
8724
- results: N,
8724
+ results: P,
8725
8725
  setResults: j,
8726
8726
  currentModel: i,
8727
- sorter: P,
8727
+ sorter: N,
8728
8728
  setSorter: $,
8729
8729
  totalItems: K,
8730
8730
  setTotalItems: R,
@@ -8899,7 +8899,7 @@ function ld(e) {
8899
8899
  domain: s = [],
8900
8900
  visible: a = !0,
8901
8901
  parentContext: l = {}
8902
- } = e, [d, u] = b(!1), [c, f] = b(!1), [m, g] = b(), [h, p] = b(), [y, w] = b(), [I, F] = b(1), [v, O] = b(0), _ = de(ad), V = de([]), [C, T] = b(0), [x, S] = b([]), [D, L] = b(void 0), [N, j] = b(), [P, $] = b(), [K, R] = b(), [U, Q] = b(!1), X = de([]), se = (G) => {
8902
+ } = e, [d, u] = b(!1), [c, f] = b(!1), [m, g] = b(), [h, p] = b(), [y, w] = b(), [I, F] = b(1), [v, O] = b(0), _ = de(ad), V = de([]), [C, T] = b(0), [x, S] = b([]), [D, L] = b(void 0), [P, j] = b(), [N, $] = b(), [K, R] = b(), [U, Q] = b(!1), X = de([]), se = (G) => {
8903
8903
  Q(!0), F(G), O((G - 1) * _.current);
8904
8904
  }, Y = async () => {
8905
8905
  const G = X.current.length > 0 ? X.current : s, be = Ut(V.current, G), { colors: Re } = At(h), { totalItems: je, results: Me, attrsEvaluated: Pe } = await M.getHandler().searchForTree({
@@ -8914,7 +8914,7 @@ function ld(e) {
8914
8914
  L(sn(Pe));
8915
8915
  const Ge = Dt({
8916
8916
  resultsToSort: Me,
8917
- sorter: N,
8917
+ sorter: P,
8918
8918
  fields: { ...h.fields, ...y.fields }
8919
8919
  });
8920
8920
  Q(!1), S(Ge);
@@ -8972,7 +8972,7 @@ function ld(e) {
8972
8972
  treeView: h
8973
8973
  });
8974
8974
  }, re = () => !h || !y ? null : /* @__PURE__ */ A("div", { style: { overflowY: "scroll" }, children: [
8975
- P && /* @__PURE__ */ n(tt, { className: "mt-10", message: P, type: "error", banner: !0 }),
8975
+ N && /* @__PURE__ */ n(tt, { className: "mt-10", message: N, type: "error", banner: !0 }),
8976
8976
  /* @__PURE__ */ n(
8977
8977
  tn,
8978
8978
  {
@@ -8986,7 +8986,7 @@ function ld(e) {
8986
8986
  loading: U,
8987
8987
  onRowClicked: fe,
8988
8988
  colorsForResults: D,
8989
- sorter: N,
8989
+ sorter: P,
8990
8990
  onChangeSort: (G) => {
8991
8991
  j == null || j(G);
8992
8992
  const be = Dt({
@@ -9103,31 +9103,31 @@ function dd(e, t) {
9103
9103
  if (!h)
9104
9104
  return;
9105
9105
  const T = C.filter((L) => {
9106
- const N = a.find(
9107
- (P) => P.id === L.id
9106
+ const P = a.find(
9107
+ (N) => N.id === L.id
9108
9108
  );
9109
- if (!N)
9109
+ if (!P)
9110
9110
  return !1;
9111
- if (!N.position)
9111
+ if (!P.position)
9112
9112
  return !0;
9113
9113
  const j = {
9114
- ...JSON.parse(N.position.replace(/'/g, '"')),
9115
- id: N.id
9114
+ ...JSON.parse(P.position.replace(/'/g, '"')),
9115
+ id: P.id
9116
9116
  };
9117
9117
  return JSON.stringify(L) !== JSON.stringify(j);
9118
9118
  });
9119
9119
  if (T.length === 0)
9120
9120
  return;
9121
- const S = a.filter((L) => T.map((N) => N.id).includes(L.id)).map((L) => {
9122
- const N = {
9121
+ const S = a.filter((L) => T.map((P) => P.id).includes(L.id)).map((L) => {
9122
+ const P = {
9123
9123
  ...T.find((j) => j.id === L.id)
9124
9124
  };
9125
- return delete N.id, { ...L }, {
9125
+ return delete P.id, { ...L }, {
9126
9126
  ...L,
9127
9127
  operation: "pendingUpdate",
9128
9128
  values: {
9129
9129
  ...L.values,
9130
- position: JSON.stringify(N).replace(/"/g, "'")
9130
+ position: JSON.stringify(P).replace(/"/g, "'")
9131
9131
  }
9132
9132
  };
9133
9133
  }), D = {
@@ -9147,9 +9147,9 @@ function dd(e, t) {
9147
9147
  }
9148
9148
  return c ? (console.log(c), /* @__PURE__ */ n(tt, { className: "mt-10 mb-20", message: c, type: "error", banner: !0 })) : d ? /* @__PURE__ */ n(lt, {}) : /* @__PURE__ */ n(rd, { onPositionItemsChanged: _, children: a.map((C, T) => {
9149
9149
  const { actionData: x, values: S } = C, { position: D, id: L } = S, {
9150
- actionId: N,
9150
+ actionId: P,
9151
9151
  actionType: j,
9152
- key: P,
9152
+ key: N,
9153
9153
  title: $,
9154
9154
  views: K,
9155
9155
  model: R,
@@ -9219,9 +9219,9 @@ function dd(e, t) {
9219
9219
  k = /* @__PURE__ */ n(
9220
9220
  Mo,
9221
9221
  {
9222
- action_id: N,
9222
+ action_id: P,
9223
9223
  action_type: j,
9224
- tabKey: P,
9224
+ tabKey: N,
9225
9225
  title: $,
9226
9226
  views: K,
9227
9227
  model: R,
@@ -9506,16 +9506,16 @@ function kd(e, t) {
9506
9506
  qe("Action type not supported");
9507
9507
  return;
9508
9508
  }
9509
- const [S, D] = v.split(","), L = parseInt(D), N = bt({
9509
+ const [S, D] = v.split(","), L = parseInt(D), P = bt({
9510
9510
  context: x.context,
9511
9511
  values: i,
9512
9512
  fields: {}
9513
9513
  }), j = x.domain ? await M.getHandler().evalDomain({
9514
9514
  domain: x.domain,
9515
9515
  values: i,
9516
- context: { ...o, ...N }
9516
+ context: { ...o, ...P }
9517
9517
  }) : [], {
9518
- res_model: P,
9518
+ res_model: N,
9519
9519
  views: $,
9520
9520
  name: K,
9521
9521
  target: R,
@@ -9530,10 +9530,10 @@ function kd(e, t) {
9530
9530
  se.push([void 0, "dashboard"]);
9531
9531
  else {
9532
9532
  const { view_id: ce } = await M.getHandler().getView({
9533
- model: P,
9533
+ model: N,
9534
9534
  type: ee,
9535
9535
  id: E,
9536
- context: { ...o, ...N }
9536
+ context: { ...o, ...P }
9537
9537
  });
9538
9538
  se.push([ce, ee]);
9539
9539
  }
@@ -9550,8 +9550,8 @@ function kd(e, t) {
9550
9550
  }
9551
9551
  F({
9552
9552
  domain: [...j, ...T],
9553
- context: { ...o, ...N },
9554
- model: P,
9553
+ context: { ...o, ...P },
9554
+ model: N,
9555
9555
  views: se,
9556
9556
  title: K,
9557
9557
  target: R,
@@ -9596,9 +9596,9 @@ function kd(e, t) {
9596
9596
  domain: S,
9597
9597
  views: D,
9598
9598
  target: L,
9599
- string: N,
9599
+ string: P,
9600
9600
  limit: j
9601
- } = v, [P, $] = D[0], K = { id: P, type: $ }, R = bt({
9601
+ } = v, [N, $] = D[0], K = { id: N, type: $ }, R = bt({
9602
9602
  context: x,
9603
9603
  values: { ..._, ...i },
9604
9604
  fields: O
@@ -9617,7 +9617,7 @@ function kd(e, t) {
9617
9617
  views: D,
9618
9618
  context: { ...o, ...R },
9619
9619
  domain: U,
9620
- title: N,
9620
+ title: P,
9621
9621
  initialView: K,
9622
9622
  action_id: V,
9623
9623
  action_type: C,
@@ -9638,13 +9638,13 @@ function kd(e, t) {
9638
9638
  context: { ...o, ...S }
9639
9639
  }) : [], {
9640
9640
  res_model: L,
9641
- views: N,
9641
+ views: P,
9642
9642
  name: j,
9643
- target: P,
9643
+ target: N,
9644
9644
  view_type: $,
9645
9645
  limit: K
9646
9646
  } = x, R = $ === "tree", U = [];
9647
- for (const Y of N) {
9647
+ for (const Y of P) {
9648
9648
  const [k, E] = Y;
9649
9649
  if (k)
9650
9650
  U.push(Y);
@@ -9673,7 +9673,7 @@ function kd(e, t) {
9673
9673
  model: L,
9674
9674
  views: U,
9675
9675
  title: j,
9676
- target: P,
9676
+ target: N,
9677
9677
  initialView: se,
9678
9678
  action_id: O,
9679
9679
  action_type: _,
@@ -9711,9 +9711,9 @@ function kd(e, t) {
9711
9711
  action_id: S,
9712
9712
  action_type: D,
9713
9713
  res_id: L,
9714
- values: N,
9714
+ values: P,
9715
9715
  forced_values: j,
9716
- treeExpandable: P = !1,
9716
+ treeExpandable: N = !1,
9717
9717
  limit: $
9718
9718
  }) {
9719
9719
  const K = no();
@@ -9758,9 +9758,9 @@ function kd(e, t) {
9758
9758
  setCanWeClose: g,
9759
9759
  initialView: R,
9760
9760
  res_id: L,
9761
- formDefaultValues: N,
9761
+ formDefaultValues: P,
9762
9762
  formForcedValues: j,
9763
- treeExpandable: P,
9763
+ treeExpandable: N,
9764
9764
  limit: $
9765
9765
  }
9766
9766
  ),
@@ -9924,25 +9924,25 @@ const { useToken: Ld } = Ke, Ou = (e) => {
9924
9924
  async function C() {
9925
9925
  try {
9926
9926
  m(!0);
9927
- const P = await t();
9928
- c(P);
9929
- } catch (P) {
9930
- qe(P);
9927
+ const N = await t();
9928
+ c(N);
9929
+ } catch (N) {
9930
+ qe(N);
9931
9931
  } finally {
9932
9932
  m(!1);
9933
9933
  }
9934
9934
  }
9935
- function T(P) {
9936
- const { key: $ } = P, K = u.find((R) => R.id === Number($));
9935
+ function T(N) {
9936
+ const { key: $ } = N, K = u.find((R) => R.id === Number($));
9937
9937
  (K == null ? void 0 : K.action_type) !== "ir.actions.wizard" && (K && I(K), d(!1));
9938
9938
  }
9939
- function x(P) {
9940
- P && C(), d(P);
9939
+ function x(N) {
9940
+ N && C(), d(N);
9941
9941
  }
9942
9942
  async function S() {
9943
9943
  if (!O)
9944
9944
  return;
9945
- const P = F.find((X) => X.key === v), { id: $, type: K } = (P == null ? void 0 : P.action) || {};
9945
+ const N = F.find((X) => X.key === v), { id: $, type: K } = (N == null ? void 0 : N.action) || {};
9946
9946
  if (!$ || !K) {
9947
9947
  a(!1);
9948
9948
  return;
@@ -9973,18 +9973,18 @@ const { useToken: Ld } = Ke, Ou = (e) => {
9973
9973
  ) }) })
9974
9974
  ] }),
9975
9975
  /* @__PURE__ */ n(He.Divider, {}),
9976
- f ? /* @__PURE__ */ n(Ee, { style: { padding: "1rem" } }) : u.length > 0 ? /* @__PURE__ */ n(J, { children: u.map((P) => /* @__PURE__ */ n(He.Item, { children: /* @__PURE__ */ n(
9977
- N,
9976
+ f ? /* @__PURE__ */ n(Ee, { style: { padding: "1rem" } }) : u.length > 0 ? /* @__PURE__ */ n(J, { children: u.map((N) => /* @__PURE__ */ n(He.Item, { children: /* @__PURE__ */ n(
9977
+ P,
9978
9978
  {
9979
- title: P.name,
9980
- type: P.view_type
9979
+ title: N.name,
9980
+ type: N.view_type
9981
9981
  }
9982
- ) }, P.id)) }) : /* @__PURE__ */ n("div", { style: { width: 300, padding: 5, paddingLeft: 15 }, children: p == null ? void 0 : p("no_favorites") })
9982
+ ) }, N.id)) }) : /* @__PURE__ */ n("div", { style: { width: 300, padding: 5, paddingLeft: 15 }, children: p == null ? void 0 : p("no_favorites") })
9983
9983
  ] });
9984
- function N({ title: P, type: $ }) {
9984
+ function P({ title: N, type: $ }) {
9985
9985
  return /* @__PURE__ */ A(xe, { wrap: !1, children: [
9986
9986
  /* @__PURE__ */ n(le, { flex: "none", style: { paddingRight: 20 }, children: $ === "tree" ? /* @__PURE__ */ n(Jn, {}) : /* @__PURE__ */ n(jt, {}) }),
9987
- /* @__PURE__ */ n(le, { flex: "auto", children: P })
9987
+ /* @__PURE__ */ n(le, { flex: "auto", children: N })
9988
9988
  ] });
9989
9989
  }
9990
9990
  async function j() {
@@ -9993,7 +9993,7 @@ const { useToken: Ld } = Ke, Ou = (e) => {
9993
9993
  else {
9994
9994
  if (!O)
9995
9995
  return;
9996
- const P = F.find((Q) => Q.key === v), { id: $, type: K } = (P == null ? void 0 : P.action) || {}, R = O.view_id;
9996
+ const N = F.find((Q) => Q.key === v), { id: $, type: K } = (N == null ? void 0 : N.action) || {}, R = O.view_id;
9997
9997
  let U = !1;
9998
9998
  if (!$ || !K) {
9999
9999
  a(!1);
@@ -10037,7 +10037,7 @@ const { useToken: Ld } = Ke, Ou = (e) => {
10037
10037
  borderBottomLeftRadius: 0
10038
10038
  },
10039
10039
  icon: /* @__PURE__ */ n(Mt, { style: { fontSize: "0.5em" } }),
10040
- onClick: (P) => P.preventDefault()
10040
+ onClick: (N) => N.preventDefault()
10041
10041
  }
10042
10042
  )
10043
10043
  }