@gisce/react-ooui 2.26.3 → 2.27.0-alpha.2

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.
@@ -1193,37 +1193,22 @@ const Ic = (e) => {
1193
1193
  return c ? /* @__PURE__ */ i(tt, { className: "mt-10", message: c, type: "error", banner: !0 }) : a ? /* @__PURE__ */ i(He, {}) : /* @__PURE__ */ E(ae, { children: [
1194
1194
  /* @__PURE__ */ i(gr, { style: { padding: "1rem" }, children: T.map((F, O) => {
1195
1195
  var V, A;
1196
- return /* @__PURE__ */ i("div", { children: /* @__PURE__ */ E(gr.Item, { children: [
1197
- /* @__PURE__ */ i(
1198
- "div",
1199
- {
1200
- style: { display: "inline-block", cursor: "pointer" },
1201
- onClick: () => {
1202
- h(
1203
- T.find(
1204
- (R) => F.id === R.id
1205
- )
1206
- ), d(!0);
1207
- },
1208
- children: /* @__PURE__ */ i("strong", { children: (V = F.values) == null ? void 0 : V[w] })
1209
- }
1210
- ),
1211
- /* @__PURE__ */ i("br", {}),
1212
- /* @__PURE__ */ i(
1213
- "div",
1214
- {
1215
- style: { display: "inline-block", cursor: "pointer" },
1216
- onClick: () => {
1217
- h(
1218
- T.find(
1219
- (R) => F.id === R.id
1220
- )
1221
- ), d(!0);
1222
- },
1223
- children: (A = F.values) == null ? void 0 : A[g]
1224
- }
1225
- )
1226
- ] }, O) }, O);
1196
+ return /* @__PURE__ */ i(gr.Item, { children: /* @__PURE__ */ E(
1197
+ "div",
1198
+ {
1199
+ style: { display: "inline-block", cursor: "pointer" },
1200
+ onClick: () => {
1201
+ h(
1202
+ T.find((R) => F.id === R.id)
1203
+ ), d(!0);
1204
+ },
1205
+ children: [
1206
+ /* @__PURE__ */ i("strong", { children: (V = F.values) == null ? void 0 : V[w] }),
1207
+ /* @__PURE__ */ i("br", {}),
1208
+ ((A = F.values) == null ? void 0 : A[g]) && /* @__PURE__ */ i("span", { children: F.values[g] })
1209
+ ]
1210
+ }
1211
+ ) }, O);
1227
1212
  }) }),
1228
1213
  /* @__PURE__ */ i(
1229
1214
  cn,
@@ -2486,7 +2471,7 @@ const Jc = ({
2486
2471
  goToResourceId: F,
2487
2472
  limit: O,
2488
2473
  isActive: V
2489
- } = e, [A, R] = C(!1), [P, D] = C(!1), [L, W] = C(!1), [G, M] = C(!0), [$, Q] = C(!0), [re, Z] = C([]), [j, se] = C(!1), [U, _] = C([]), [J, K] = C(!1), [he, oe] = C(!0), [Y, ue] = C(), [ve, Ve] = C({}), [Ne, De] = C(0), [Ee, Ge] = C(), [Se, ce] = C(!1), [fe, we] = C(
2474
+ } = e, [A, R] = C(!1), [P, D] = C(!1), [L, W] = C(!1), [G, M] = C(!0), [$, Q] = C(!0), [re, Z] = C([]), [j, se] = C(!1), [H, _] = C([]), [J, K] = C(!1), [he, oe] = C(!0), [Y, ue] = C(), [ve, Ve] = C({}), [Ne, De] = C(0), [Ee, Ge] = C(), [Se, ce] = C(!1), [fe, we] = C(
2490
2475
  O !== void 0 ? O : kt
2491
2476
  ), [Pe, z] = C(r);
2492
2477
  de(() => {
@@ -2546,7 +2531,7 @@ const Jc = ({
2546
2531
  duplicatingItem: j,
2547
2532
  setDuplicatingItem: se,
2548
2533
  setSearchParams: _,
2549
- searchParams: U,
2534
+ searchParams: H,
2550
2535
  searchVisible: J,
2551
2536
  setSearchVisible: K,
2552
2537
  sorter: v,
@@ -3647,7 +3632,7 @@ function kd(e, t) {
3647
3632
  forcedValues: S = {},
3648
3633
  parentWidth: x,
3649
3634
  onMustRefreshParent: F
3650
- } = e, { t: O } = ye(), [V, A] = C(!1), [R, P] = C(), [D, L] = C(), [W] = ft.useForm(), [G, M] = C(), [$, Q] = C(), re = te(cs), [Z, j] = C(), [se, U] = C(!1), _ = X(), J = X({}), K = X({}), he = X(!1), oe = X(!1), Y = X(!1), ve = (x !== void 0 ? x : Z) < Pd, Ve = te(je), { activeId: Ne, getPlainValues: De } = Ve || {}, Ee = X(!1), Ge = te(
3635
+ } = e, { t: O } = ye(), [V, A] = C(!1), [R, P] = C(), [D, L] = C(), [W] = ft.useForm(), [G, M] = C(), [$, Q] = C(), re = te(cs), [Z, j] = C(), [se, H] = C(!1), _ = X(), J = X({}), K = X({}), he = X(!1), oe = X(!1), Y = X(!1), ve = (x !== void 0 ? x : Z) < Pd, Ve = te(je), { activeId: Ne, getPlainValues: De } = Ve || {}, Ee = X(!1), Ge = te(
3651
3636
  at
3652
3637
  ), {
3653
3638
  setFormIsSaving: Se = void 0,
@@ -3682,14 +3667,14 @@ function kd(e, t) {
3682
3667
  }, [r, n, h, m, T]), de(() => {
3683
3668
  se && (Zn({
3684
3669
  elementHasLostFocus: !0
3685
- }), U(!1));
3670
+ }), H(!1));
3686
3671
  }, [se]);
3687
- const ne = (H, q, ie, le) => {
3688
- ce == null || ce(!1), Se == null || Se(!1), s == null || s(H, q, ie, le), fe == null || fe(H), Ee.current && (F == null || F());
3672
+ const ne = (U, q, ie, le) => {
3673
+ ce == null || ce(!1), Se == null || Se(!1), s == null || s(U, q, ie, le), fe == null || fe(U), Ee.current && (F == null || F());
3689
3674
  }, Ie = () => {
3690
3675
  Ee.current && (F == null || F()), Se == null || Se(!1), o == null || o();
3691
- }, Ue = (H) => {
3692
- Se == null || Se(!1), u == null || u(H);
3676
+ }, Ue = (U) => {
3677
+ Se == null || Se(!1), u == null || u(U);
3693
3678
  };
3694
3679
  function me() {
3695
3680
  return r || _.current;
@@ -3698,28 +3683,28 @@ function kd(e, t) {
3698
3683
  return $;
3699
3684
  }
3700
3685
  function N() {
3701
- const H = {
3686
+ const U = {
3702
3687
  ...Ke($),
3703
3688
  ..._e()
3704
3689
  };
3705
- for (const q in H)
3706
- H[q] === void 0 && delete H[q];
3707
- return H;
3690
+ for (const q in U)
3691
+ U[q] === void 0 && delete U[q];
3692
+ return U;
3708
3693
  }
3709
3694
  function ee() {
3710
- const H = N(), q = Qe(), ie = {};
3711
- return Object.keys(H).forEach((le) => {
3712
- const Oe = H[le];
3695
+ const U = N(), q = Qe(), ie = {};
3696
+ return Object.keys(U).forEach((le) => {
3697
+ const Oe = U[le];
3713
3698
  q[le] && q[le].type === "many2one" && Oe && Array.isArray(Oe) && Oe.length === 2 ? ie[le] = Oe[0] : q[le] && (q[le].type === "one2many" || q[le].type === "many2many") && Oe && Oe.items ? ie[le] = Oe.items.filter((ze) => ze.operation !== "pendingRemove").map((ze) => ze.id) : ie[le] = Oe;
3714
3699
  }), ie;
3715
3700
  }
3716
3701
  function ge() {
3717
- const H = {
3702
+ const U = {
3718
3703
  ...Ke($)
3719
3704
  };
3720
- for (const q in H)
3721
- H[q] === void 0 && delete H[q];
3722
- return H;
3705
+ for (const q in U)
3706
+ U[q] === void 0 && delete U[q];
3707
+ return U;
3723
3708
  }
3724
3709
  function pe() {
3725
3710
  return { ...g, ...D == null ? void 0 : D.context };
@@ -3736,11 +3721,11 @@ function kd(e, t) {
3736
3721
  ...$e
3737
3722
  };
3738
3723
  }
3739
- const lt = async (H) => {
3724
+ const lt = async (U) => {
3740
3725
  const q = me() ? D == null ? void 0 : D.context : {};
3741
3726
  return await k.getHandler().defaultGet({
3742
3727
  model: n,
3743
- fields: H,
3728
+ fields: U,
3744
3729
  context: { ...g, ...q },
3745
3730
  extraValues: b
3746
3731
  });
@@ -3750,19 +3735,19 @@ function kd(e, t) {
3750
3735
  target: Ke($),
3751
3736
  fields: $
3752
3737
  })
3753
- ).length !== 0, Ke = (H) => {
3738
+ ).length !== 0, Ke = (U) => {
3754
3739
  const q = W.getFieldsValue(!0);
3755
- return Ut(q, H);
3756
- }, ct = (H, q) => {
3740
+ return Ut(q, U);
3741
+ }, ct = (U, q) => {
3757
3742
  un({
3758
3743
  values: {
3759
3744
  ...Ut(W.getFieldsValue(!0), $),
3760
- [H]: q
3745
+ [U]: q
3761
3746
  },
3762
3747
  fields: $,
3763
3748
  reset: !1
3764
3749
  });
3765
- }, Rt = (H) => W.getFieldsValue(!0)[H];
3750
+ }, Rt = (U) => W.getFieldsValue(!0)[U];
3766
3751
  async function Ct() {
3767
3752
  try {
3768
3753
  return await W.validateFields(), !1;
@@ -3772,10 +3757,10 @@ function kd(e, t) {
3772
3757
  }
3773
3758
  const Le = async () => {
3774
3759
  P(void 0), we == null || we(!0);
3775
- let H;
3760
+ let U;
3776
3761
  try {
3777
- m ? H = { arch: m.arch, fields: m.fields } : H = await ca();
3778
- const { fields: q, arch: ie } = H;
3762
+ m ? U = { arch: m.arch, fields: m.fields } : U = await ca();
3763
+ const { fields: q, arch: ie } = U;
3779
3764
  Q(q), M(ie), await qe({
3780
3765
  fields: q,
3781
3766
  arch: ie
@@ -3783,9 +3768,9 @@ function kd(e, t) {
3783
3768
  } catch (q) {
3784
3769
  P(q != null && q.message ? q.message + q.stack : q), we == null || we(!1);
3785
3770
  }
3786
- }, qe = async (H) => {
3771
+ }, qe = async (U) => {
3787
3772
  let q, ie, le, Oe;
3788
- we == null || we(!0), P(void 0), H != null && H.fields ? (ie = H.fields, le = H.arch) : (ie = $, le = G), h && (H == null ? void 0 : H.forceRefresh) !== !0 ? q = h : { values: q, defaultGetCalled: Oe } = await da({
3773
+ we == null || we(!0), P(void 0), U != null && U.fields ? (ie = U.fields, le = U.arch) : (ie = $, le = G), h && (U == null ? void 0 : U.forceRefresh) !== !0 ? q = h : { values: q, defaultGetCalled: Oe } = await da({
3789
3774
  fields: ie,
3790
3775
  arch: le
3791
3776
  }), w && (q = { ...ud(w), ...q }), J.current = Ut(q, ie), un({
@@ -3793,22 +3778,22 @@ function kd(e, t) {
3793
3778
  fields: ie,
3794
3779
  reset: !0,
3795
3780
  isDefaultGet: Oe
3796
- }), fn({ fields: ie, arch: le, values: q }), we == null || we(!1), ce == null || ce(!1), Oe && U(!0);
3797
- }, rt = async () => new Promise(async (H) => {
3781
+ }), fn({ fields: ie, arch: le, values: q }), we == null || we(!1), ce == null || ce(!1), Oe && H(!0);
3782
+ }, rt = async () => new Promise(async (U) => {
3798
3783
  nt() ? sn({
3799
3784
  t: O,
3800
3785
  onOk: () => {
3801
- Ie == null || Ie(), H(!0);
3786
+ Ie == null || Ie(), U(!0);
3802
3787
  },
3803
3788
  onCancel: () => {
3804
- H(!1);
3789
+ U(!1);
3805
3790
  }
3806
- }) : (Ie == null || Ie(), H(!0));
3791
+ }) : (Ie == null || Ie(), U(!0));
3807
3792
  }), ca = async () => {
3808
3793
  if (l) {
3809
- const H = await k.getHandler().getActionStringForModel(n);
3794
+ const U = await k.getHandler().getActionStringForModel(n);
3810
3795
  return (await k.getHandler().getViewsForAction({
3811
- action: H,
3796
+ action: U,
3812
3797
  context: g
3813
3798
  })).views.get("form");
3814
3799
  }
@@ -3818,12 +3803,12 @@ function kd(e, t) {
3818
3803
  context: g
3819
3804
  });
3820
3805
  }, un = ({
3821
- values: H,
3806
+ values: U,
3822
3807
  fields: q,
3823
3808
  reset: ie,
3824
3809
  isDefaultGet: le = !1
3825
3810
  }) => {
3826
- const ze = { ...ie ? {} : W.getFieldsValue(!0), ...H }, tr = Ut(ze, q), Ca = Object.keys(q).map((nr) => {
3811
+ const ze = { ...ie ? {} : W.getFieldsValue(!0), ...U }, tr = Ut(ze, q), Ca = Object.keys(q).map((nr) => {
3827
3812
  const xa = tr[nr] !== void 0 ? tr[nr] : void 0;
3828
3813
  return {
3829
3814
  name: nr,
@@ -3833,20 +3818,20 @@ function kd(e, t) {
3833
3818
  });
3834
3819
  le || (K.current = tr), W.setFields(Ca);
3835
3820
  }, da = async ({
3836
- fields: H,
3821
+ fields: U,
3837
3822
  arch: q
3838
3823
  }) => {
3839
3824
  let ie = {}, le = !1;
3840
3825
  if (me()) {
3841
3826
  const Oe = D || ho({
3842
3827
  arch: q,
3843
- fields: H,
3828
+ fields: U,
3844
3829
  values: {}
3845
3830
  });
3846
3831
  if (ie = (await k.getHandler().readObjects({
3847
3832
  model: n,
3848
3833
  ids: [me()],
3849
- fields: Ed(H, Oe == null ? void 0 : Oe.contextForFields),
3834
+ fields: Ed(U, Oe == null ? void 0 : Oe.contextForFields),
3850
3835
  context: g
3851
3836
  }))[0], v)
3852
3837
  return { values: ie, defaultGetCalled: le };
@@ -3861,10 +3846,10 @@ function kd(e, t) {
3861
3846
  });
3862
3847
  Pe == null || Pe(ze);
3863
3848
  } else
3864
- Pe == null || Pe([]), ie = await lt(H), le = !0;
3849
+ Pe == null || Pe([]), ie = await lt(U), le = !0;
3865
3850
  return { values: ie, defaultGetCalled: le };
3866
- }, po = async (H) => {
3867
- const { callOnSubmitSucceed: q = !0 } = H || {};
3851
+ }, po = async (U) => {
3852
+ const { callOnSubmitSucceed: q = !0 } = U || {};
3868
3853
  if (me()) {
3869
3854
  const ie = ir({
3870
3855
  source: J.current,
@@ -3894,12 +3879,12 @@ function kd(e, t) {
3894
3879
  _.current = le, J.current = ie;
3895
3880
  }
3896
3881
  y && await y([me()]), !v && q && (ne == null || ne(me(), N(), ge()));
3897
- }, ua = async (H) => {
3898
- const { callOnSubmitSucceed: q = !0 } = H || {};
3882
+ }, ua = async (U) => {
3883
+ const { callOnSubmitSucceed: q = !0 } = U || {};
3899
3884
  !v && q && (ne == null || ne(me(), N(), ge()));
3900
- }, On = async (H) => {
3885
+ }, On = async (U) => {
3901
3886
  let q = !1;
3902
- const { callOnSubmitSucceed: ie = !0 } = H || {};
3887
+ const { callOnSubmitSucceed: ie = !0 } = U || {};
3903
3888
  if (oe.current = !0, P(void 0), Y.current && !nt() && me() && ie) {
3904
3889
  oe.current = !1, ce == null || ce(!1), ne == null || ne(
3905
3890
  me(),
@@ -3916,7 +3901,7 @@ function kd(e, t) {
3916
3901
  return oe.current = !1, $o(O), { succeed: !1, id: me() };
3917
3902
  A(!0), Se == null || Se(!0);
3918
3903
  try {
3919
- p === "api" ? await po(H) : await ua(H), d && (_.current = void 0, un({ values: {}, fields: $, reset: !0 })), await qe({ forceRefresh: !0 }), q = !0, rr.success(O("savedRegisters"));
3904
+ p === "api" ? await po(U) : await ua(U), d && (_.current = void 0, un({ values: {}, fields: $, reset: !0 })), await qe({ forceRefresh: !0 }), q = !0, rr.success(O("savedRegisters"));
3920
3905
  } catch (le) {
3921
3906
  oe.current = !1, A(!1), Se == null || Se(!1), Ue == null || Ue(le), rr.error(O("errorWhileSavingForm")), P(le != null && le.message ? le.message : le);
3922
3907
  } finally {
@@ -3924,12 +3909,12 @@ function kd(e, t) {
3924
3909
  }
3925
3910
  return { succeed: q, id: me() };
3926
3911
  }, ho = ({
3927
- fields: H,
3912
+ fields: U,
3928
3913
  arch: q,
3929
3914
  values: ie,
3930
3915
  operationInProgress: le = !1
3931
3916
  }) => {
3932
- const Oe = new Ri(H);
3917
+ const Oe = new Ri(U);
3933
3918
  return Oe.parse(q, {
3934
3919
  readOnly: f || le,
3935
3920
  values: xc(
@@ -3937,11 +3922,11 @@ function kd(e, t) {
3937
3922
  ...ie,
3938
3923
  ..._e()
3939
3924
  },
3940
- H
3925
+ U
3941
3926
  )
3942
3927
  }), Oe;
3943
3928
  }, fn = ({
3944
- fields: H,
3929
+ fields: U,
3945
3930
  arch: q,
3946
3931
  values: ie,
3947
3932
  operationInProgress: le = !1
@@ -3949,13 +3934,13 @@ function kd(e, t) {
3949
3934
  var ze;
3950
3935
  const Oe = ho({
3951
3936
  arch: q,
3952
- fields: H,
3937
+ fields: U,
3953
3938
  values: ie,
3954
3939
  operationInProgress: le
3955
3940
  });
3956
3941
  L(Oe), Oe.string && Oe.string !== z && (Te == null || Te(Oe.string)), re && Oe.string && ((ze = re.setTitle) == null || ze.call(re, Oe.string));
3957
3942
  }, Zn = async ({
3958
- elementHasLostFocus: H = !1
3943
+ elementHasLostFocus: U = !1
3959
3944
  }) => {
3960
3945
  if (oe.current)
3961
3946
  return;
@@ -3978,21 +3963,21 @@ function kd(e, t) {
3978
3963
  "integer",
3979
3964
  "many2one"
3980
3965
  ]
3981
- }) && H !== !0)) {
3966
+ }) && U !== !0)) {
3982
3967
  const le = Ut(W.getFieldsValue(!0), $);
3983
3968
  K.current = le, c == null || c(le), ce == null || ce(!0), ma(ie);
3984
3969
  }
3985
- }, fa = ul(Zn, 100), ma = async (H) => {
3970
+ }, fa = ul(Zn, 100), ma = async (U) => {
3986
3971
  try {
3987
- for (let q = 0; q < H.length; q += 1) {
3988
- const ie = H[q];
3972
+ for (let q = 0; q < U.length; q += 1) {
3973
+ const ie = U[q];
3989
3974
  await pa(ie);
3990
3975
  }
3991
3976
  } catch (q) {
3992
3977
  ot(q);
3993
3978
  }
3994
- }, pa = async (H) => {
3995
- const q = D == null ? void 0 : D.onChangeFields[H];
3979
+ }, pa = async (U) => {
3980
+ const q = D == null ? void 0 : D.onChangeFields[U];
3996
3981
  if (!q) {
3997
3982
  fn({
3998
3983
  fields: $,
@@ -4055,12 +4040,12 @@ function kd(e, t) {
4055
4040
  }
4056
4041
  };
4057
4042
  async function ha({
4058
- action: H,
4043
+ action: U,
4059
4044
  context: q
4060
4045
  }) {
4061
4046
  const ie = await k.getHandler().execute({
4062
4047
  model: n,
4063
- action: H,
4048
+ action: U,
4064
4049
  payload: [me()],
4065
4050
  context: {
4066
4051
  ...D == null ? void 0 : D.context,
@@ -4085,31 +4070,31 @@ function kd(e, t) {
4085
4070
  } else
4086
4071
  await qe({ forceRefresh: !0 });
4087
4072
  }
4088
- async function ga({ action: H }) {
4073
+ async function ga({ action: U }) {
4089
4074
  const q = await k.getHandler().executeWorkflow({
4090
4075
  model: n,
4091
- action: H,
4076
+ action: U,
4092
4077
  payload: me()
4093
4078
  });
4094
4079
  q.type && q.type === "ir.actions.act_window_close" ? ne == null || ne(me(), N(), ge()) : await qe({ forceRefresh: !0 });
4095
4080
  }
4096
4081
  async function ya({
4097
- action: H,
4082
+ action: U,
4098
4083
  context: q
4099
4084
  }) {
4100
4085
  const ie = (await k.getHandler().readObjects({
4101
4086
  model: "ir.actions.actions",
4102
- ids: [parseInt(H)],
4087
+ ids: [parseInt(U)],
4103
4088
  context: g
4104
4089
  }))[0];
4105
4090
  await go({ actionData: ie, context: q });
4106
4091
  }
4107
4092
  async function go({
4108
- actionData: H,
4093
+ actionData: U,
4109
4094
  context: q
4110
4095
  }) {
4111
4096
  const { closeParent: ie } = await (Be == null ? void 0 : Be({
4112
- actionData: H,
4097
+ actionData: U,
4113
4098
  fields: $,
4114
4099
  values: N(),
4115
4100
  context: {
@@ -4126,20 +4111,20 @@ function kd(e, t) {
4126
4111
  function va() {
4127
4112
  Zn({ elementHasLostFocus: !0 });
4128
4113
  }
4129
- function er(H) {
4114
+ function er(U) {
4130
4115
  fn({
4131
4116
  fields: $,
4132
4117
  arch: G,
4133
4118
  values: Ke($),
4134
- operationInProgress: H
4119
+ operationInProgress: U
4135
4120
  });
4136
4121
  }
4137
4122
  async function wa({
4138
- type: H,
4123
+ type: U,
4139
4124
  action: q,
4140
4125
  context: ie
4141
4126
  }) {
4142
- if (H === "cancel") {
4127
+ if (U === "cancel") {
4143
4128
  Ie == null || Ie();
4144
4129
  return;
4145
4130
  }
@@ -4151,7 +4136,7 @@ function kd(e, t) {
4151
4136
  try {
4152
4137
  !f && (nt() || me() === void 0) && (le = !0, er(!0), p === "2many" ? (await po({ callOnSubmitSucceed: !1 }), Y.current = !0) : await On({ callOnSubmitSucceed: !1 }));
4153
4138
  const Oe = Y.current ? Ae() : {}, ze = { ...ie, ...Oe };
4154
- H === "object" ? await ha({ action: q, context: ze }) : H === "workflow" ? await ga({ action: q }) : H === "action" && await ya({ action: q, context: ze }), le && er(!1);
4139
+ U === "object" ? await ha({ action: q, context: ze }) : U === "workflow" ? await ga({ action: q }) : U === "action" && await ya({ action: q, context: ze }), le && er(!1);
4155
4140
  } catch (Oe) {
4156
4141
  le && er(!1), ot(Oe);
4157
4142
  }
@@ -4225,11 +4210,11 @@ function kd(e, t) {
4225
4210
  zr,
4226
4211
  {
4227
4212
  bounds: !0,
4228
- onResize: (H) => {
4213
+ onResize: (U) => {
4229
4214
  var q;
4230
- j((q = H.bounds) == null ? void 0 : q.width);
4215
+ j((q = U.bounds) == null ? void 0 : q.width);
4231
4216
  },
4232
- children: ({ measureRef: H }) => /* @__PURE__ */ E("div", { className: "pb-2", ref: H, children: [
4217
+ children: ({ measureRef: U }) => /* @__PURE__ */ E("div", { className: "pb-2", ref: U, children: [
4233
4218
  R && /* @__PURE__ */ i(es, { className: "mt-5 mb-10", error: R }),
4234
4219
  ba(),
4235
4220
  a && Sa()
@@ -5396,18 +5381,18 @@ const du = (e) => /* @__PURE__ */ i(Re, { ...e, children: /* @__PURE__ */ i(ps,
5396
5381
  const ue = oe.reduce((ve, Ve) => Ve[Y.field] && !isNaN(Ve[Y.field]) ? ve + Ve[Y.field] : ve, 0);
5397
5382
  he.push(`${Y.label}: ${Math.round(ue * 100) / 100}`);
5398
5383
  }), /* @__PURE__ */ i("div", { className: "p-1 pb-0 pl-2 mt-2 ", children: he.join(", ") });
5399
- }, [O, d, R]), U = be(() => {
5384
+ }, [O, d, R]), H = be(() => {
5400
5385
  if (R !== null && $ && $.length > 0)
5401
5386
  return su($, O, 600);
5402
5387
  }, [$, O, R]), _ = be(() => h && (R != null && R.columns.some((K) => K.sum !== void 0)) ? h - 30 : h, [h, R == null ? void 0 : R.columns]);
5403
- return R === null || !U || ((J = U == null ? void 0 : U.columns) == null ? void 0 : J.length) === 0 ? /* @__PURE__ */ i(He, { style: { padding: "2rem" } }) : /* @__PURE__ */ E(Vn, { children: [
5388
+ return R === null || !H || ((J = H == null ? void 0 : H.columns) == null ? void 0 : J.length) === 0 ? /* @__PURE__ */ i(He, { style: { padding: "2rem" } }) : /* @__PURE__ */ E(Vn, { children: [
5404
5389
  j,
5405
5390
  /* @__PURE__ */ i(
5406
5391
  Tl,
5407
5392
  {
5408
5393
  ref: F,
5409
5394
  height: _,
5410
- columns: U.columns,
5395
+ columns: H.columns,
5411
5396
  dataSource: O,
5412
5397
  loading: c,
5413
5398
  loadingComponent: /* @__PURE__ */ i(He, {}),
@@ -5465,7 +5450,7 @@ const ys = (e) => {
5465
5450
  searchParams: S = [],
5466
5451
  setSearchValues: x,
5467
5452
  clearSelection: F
5468
- } = e, [O, V] = C(!1), [A, R] = C(!1), [P, D] = C(), [L, W] = C(1), [G, M] = C(0), [$, Q] = C(), [re, Z] = C([]), [j, se] = C(void 0), [U, _] = C(void 0), J = X(I || kt), K = X([]), he = B(
5453
+ } = e, [O, V] = C(!1), [A, R] = C(!1), [P, D] = C(), [L, W] = C(1), [G, M] = C(0), [$, Q] = C(), [re, Z] = C([]), [j, se] = C(void 0), [H, _] = C(void 0), J = X(I || kt), K = X([]), he = B(
5469
5454
  (ce) => {
5470
5455
  v == null || v([...ce]), Z([...ce]);
5471
5456
  },
@@ -5659,7 +5644,7 @@ const ys = (e) => {
5659
5644
  changeSort: Ve,
5660
5645
  fetchChildrenForRecord: Ge,
5661
5646
  colorsForResults: j,
5662
- statusForResults: U,
5647
+ statusForResults: H,
5663
5648
  totalItems: $,
5664
5649
  getAllIds: Se
5665
5650
  };
@@ -5690,7 +5675,7 @@ function Du(e, t) {
5690
5675
  selectedRowItems: Z = void 0,
5691
5676
  setSelectedRowItems: j = void 0,
5692
5677
  searchParams: se = [],
5693
- setSearchParams: U = void 0,
5678
+ setSearchParams: H = void 0,
5694
5679
  searchVisible: _ = !0,
5695
5680
  setSearchVisible: J = void 0,
5696
5681
  sorter: K = void 0,
@@ -5729,7 +5714,7 @@ function Du(e, t) {
5729
5714
  model: T,
5730
5715
  setSearchTreeNameSearch: Y,
5731
5716
  setSelectedRowItems: Ee,
5732
- setSearchParams: U,
5717
+ setSearchParams: H,
5733
5718
  setSearchValues: Ve,
5734
5719
  searchParams: se,
5735
5720
  setSearchVisible: J,
@@ -6484,7 +6469,7 @@ const Uu = (e) => {
6484
6469
  fetchValues: v
6485
6470
  } = f || {}, { t: g } = ye(), [w, T] = C(!1), [I, b] = C(!1), [S, x] = C(), [F, O] = C(!1), [V, A] = C(!1), [R, P] = C(), [D, L] = C([]), [W, G] = C(!1), M = X([]), [$, Q] = C(), re = X(), [Z, j] = C(void 0), {
6486
6471
  readOnly: se,
6487
- relation: U,
6472
+ relation: H,
6488
6473
  context: _,
6489
6474
  domain: J
6490
6475
  } = r, K = r.type === "many2many", { id: he } = r, oe = s.filter(
@@ -6523,7 +6508,7 @@ const Uu = (e) => {
6523
6508
  formView: {
6524
6509
  fields: ((pe = o.get("form")) == null ? void 0 : pe.fields) || {}
6525
6510
  },
6526
- model: U,
6511
+ model: H,
6527
6512
  items: s,
6528
6513
  context: { ...m == null ? void 0 : m(), ..._ },
6529
6514
  currentView: N || a
@@ -6567,12 +6552,12 @@ const Uu = (e) => {
6567
6552
  }) : u(c + 1));
6568
6553
  }, ce = async () => {
6569
6554
  const N = oe[c].id, ee = (await k.getHandler().readObjects({
6570
- model: U,
6555
+ model: H,
6571
6556
  ids: [N],
6572
6557
  fields: o.get("form").fields,
6573
6558
  context: { ...m == null ? void 0 : m(), ..._ }
6574
6559
  }))[0], ge = (await k.getHandler().readObjects({
6575
- model: U,
6560
+ model: H,
6576
6561
  ids: [N],
6577
6562
  fields: o.get("tree").fields,
6578
6563
  context: { ...m == null ? void 0 : m(), ..._ }
@@ -6683,12 +6668,12 @@ const Uu = (e) => {
6683
6668
  try {
6684
6669
  for (const pe of ge) {
6685
6670
  const Ae = (await k.getHandler().readObjects({
6686
- model: U,
6671
+ model: H,
6687
6672
  ids: [pe],
6688
6673
  fields: o.get("form").fields,
6689
6674
  context: { ...m == null ? void 0 : m(), ..._ }
6690
6675
  }))[0], _e = (await k.getHandler().readObjects({
6691
- model: U,
6676
+ model: H,
6692
6677
  ids: [pe],
6693
6678
  fields: o.get("tree").fields,
6694
6679
  context: { ...m == null ? void 0 : m(), ..._ }
@@ -6725,7 +6710,7 @@ const Uu = (e) => {
6725
6710
  formView: o.get("form"),
6726
6711
  values: (ee = oe[c]) == null ? void 0 : ee.values,
6727
6712
  parentContext: { ...m == null ? void 0 : m(), ..._ },
6728
- model: U,
6713
+ model: H,
6729
6714
  id: (ge = oe[c]) == null ? void 0 : ge.id,
6730
6715
  submitMode: "values",
6731
6716
  onFieldsChange: (_e) => {
@@ -6814,7 +6799,7 @@ const Uu = (e) => {
6814
6799
  cn,
6815
6800
  {
6816
6801
  formView: o.get("form"),
6817
- model: U,
6802
+ model: H,
6818
6803
  id: R == null ? void 0 : R.id,
6819
6804
  submitMode: "2many",
6820
6805
  values: R == null ? void 0 : R.values,
@@ -6836,7 +6821,7 @@ const Uu = (e) => {
6836
6821
  so,
6837
6822
  {
6838
6823
  domain: M.current,
6839
- model: U,
6824
+ model: H,
6840
6825
  context: { ...m == null ? void 0 : m(), ..._ },
6841
6826
  visible: V,
6842
6827
  onSelectValues: async (N) => {
@@ -7336,8 +7321,10 @@ const Xu = ({
7336
7321
  }, As = (e) => {
7337
7322
  const [t, n] = C(!0), r = X(void 0), { getColumnState: o, updateColumnState: s } = tf(e);
7338
7323
  return de(() => {
7339
- if (!e)
7324
+ if (!e) {
7325
+ n(!1);
7340
7326
  return;
7327
+ }
7341
7328
  (async () => {
7342
7329
  n(!0);
7343
7330
  try {
@@ -7397,15 +7384,15 @@ const Xu = ({
7397
7384
  const { results: Z, colors: j, status: se } = await a({
7398
7385
  idsToFetch: Q,
7399
7386
  sortFields: W
7400
- }), U = zn(o, Z), _ = $.map((J) => {
7387
+ }), H = zn(o, Z), _ = $.map((J) => {
7401
7388
  var he;
7402
- const K = U.find((oe) => oe.id === J);
7389
+ const K = H.find((oe) => oe.id === J);
7403
7390
  return K || ((he = G.find((oe) => oe.id === J)) == null ? void 0 : he.treeValues);
7404
7391
  });
7405
7392
  return _.sort((J, K) => {
7406
- const he = U.findIndex(
7393
+ const he = H.findIndex(
7407
7394
  (Y) => Y.id === J.id
7408
- ), oe = U.findIndex(
7395
+ ), oe = H.findIndex(
7409
7396
  (Y) => Y.id === K.id
7410
7397
  );
7411
7398
  return he - oe;
@@ -7604,7 +7591,7 @@ const Xu = ({
7604
7591
  triggerChange: $
7605
7592
  }), {
7606
7593
  showFormModal: se,
7607
- modalItem: U,
7594
+ modalItem: H,
7608
7595
  continuousEntryMode: _,
7609
7596
  onCancelFormModal: J,
7610
7597
  onFormModalSubmitSucceed: K,
@@ -7733,10 +7720,10 @@ const Xu = ({
7733
7720
  {
7734
7721
  formView: s.get("form"),
7735
7722
  model: h,
7736
- id: U == null ? void 0 : U.id,
7723
+ id: H == null ? void 0 : H.id,
7737
7724
  submitMode: "2many",
7738
- values: U == null ? void 0 : U.values,
7739
- defaultValues: U == null ? void 0 : U.defaultValues,
7725
+ values: H == null ? void 0 : H.values,
7726
+ defaultValues: H == null ? void 0 : H.defaultValues,
7740
7727
  visible: se,
7741
7728
  onSubmitSucceed: K,
7742
7729
  parentContext: x,
@@ -8925,7 +8912,7 @@ function Hf({ toolbar: e }) {
8925
8912
  context: O.current.getContext()
8926
8913
  });
8927
8914
  const j = h == null ? void 0 : h.filter(
8928
- (U) => U.id !== p
8915
+ (H) => H.id !== p
8929
8916
  );
8930
8917
  S == null || S(j);
8931
8918
  const se = Math.max(0, (y || 0) - 1);
@@ -9787,13 +9774,13 @@ function em(e) {
9787
9774
  });
9788
9775
  }
9789
9776
  async function re() {
9790
- var U;
9777
+ var H;
9791
9778
  try {
9792
9779
  s == null || s(!0), await k.getHandler().deleteObjects({
9793
9780
  model: u,
9794
9781
  ids: o.map((_) => _.id),
9795
9782
  context: { ...O }
9796
- }), d == null || d(void 0), p == null || p(void 0), (U = f == null ? void 0 : f.current) == null || U.refreshResults();
9783
+ }), d == null || d(void 0), p == null || p(void 0), (H = f == null ? void 0 : f.current) == null || H.refreshResults();
9797
9784
  } catch (_) {
9798
9785
  ot(_);
9799
9786
  } finally {
@@ -9801,7 +9788,7 @@ function em(e) {
9801
9788
  }
9802
9789
  }
9803
9790
  async function Z() {
9804
- var U;
9791
+ var H;
9805
9792
  try {
9806
9793
  c == null || c(!0);
9807
9794
  const _ = o[0].id;
@@ -9809,16 +9796,16 @@ function em(e) {
9809
9796
  id: _,
9810
9797
  model: u,
9811
9798
  context: { ...O }
9812
- }) && ((U = f == null ? void 0 : f.current) == null || U.refreshResults());
9799
+ }) && ((H = f == null ? void 0 : f.current) == null || H.refreshResults());
9813
9800
  } catch (_) {
9814
9801
  ot(_);
9815
9802
  } finally {
9816
9803
  c == null || c(!1);
9817
9804
  }
9818
9805
  }
9819
- function j(U) {
9806
+ function j(H) {
9820
9807
  L == null || L({
9821
- actionData: U,
9808
+ actionData: H,
9822
9809
  values: {
9823
9810
  active_id: o == null ? void 0 : o.map((_) => _.id)[0],
9824
9811
  active_ids: o == null ? void 0 : o.map((_) => _.id)
@@ -9847,9 +9834,9 @@ function em(e) {
9847
9834
  {
9848
9835
  disabled: l || a || w,
9849
9836
  searchText: g,
9850
- onSearch: (U) => {
9837
+ onSearch: (H) => {
9851
9838
  var _;
9852
- U && U.trim().length > 0 ? v == null || v(U) : (v == null || v(void 0), (_ = f == null ? void 0 : f.current) == null || _.refreshResults());
9839
+ H && H.trim().length > 0 ? v == null || v(H) : (v == null || v(void 0), (_ = f == null ? void 0 : f.current) == null || _.refreshResults());
9853
9840
  }
9854
9841
  }
9855
9842
  ),
@@ -9915,8 +9902,8 @@ function em(e) {
9915
9902
  disabled: l || a || w,
9916
9903
  loading: !1,
9917
9904
  onClick: () => {
9918
- var U;
9919
- (U = f == null ? void 0 : f.current) == null || U.refreshResults();
9905
+ var H;
9906
+ (H = f == null ? void 0 : f.current) == null || H.refreshResults();
9920
9907
  }
9921
9908
  }
9922
9909
  ),
@@ -9927,8 +9914,8 @@ function em(e) {
9927
9914
  {
9928
9915
  currentView: n,
9929
9916
  availableViews: t,
9930
- onChangeView: (U) => {
9931
- T == null || T(n), r == null || r(U);
9917
+ onChangeView: (H) => {
9918
+ T == null || T(n), r == null || r(H);
9932
9919
  },
9933
9920
  previousView: I,
9934
9921
  disabled: w
@@ -9945,8 +9932,8 @@ function em(e) {
9945
9932
  onRetrieveData: async () => [
9946
9933
  { label: P("actions"), items: A == null ? void 0 : A.action }
9947
9934
  ],
9948
- onItemClick: (U) => {
9949
- U && j(U);
9935
+ onItemClick: (H) => {
9936
+ H && j(H);
9950
9937
  }
9951
9938
  }
9952
9939
  ),
@@ -9959,11 +9946,11 @@ function em(e) {
9959
9946
  onRetrieveData: async () => [
9960
9947
  { label: P("reports"), items: A == null ? void 0 : A.print }
9961
9948
  ],
9962
- onItemClick: (U) => {
9963
- U && j({
9964
- ...U,
9949
+ onItemClick: (H) => {
9950
+ H && j({
9951
+ ...H,
9965
9952
  datas: {
9966
- ...U.datas || {},
9953
+ ...H.datas || {},
9967
9954
  ids: o.map((_) => _.id)
9968
9955
  }
9969
9956
  });
@@ -10017,8 +10004,8 @@ function em(e) {
10017
10004
  ]
10018
10005
  }
10019
10006
  ],
10020
- onItemClick: (U) => {
10021
- if (U.id === "print_screen") {
10007
+ onItemClick: (H) => {
10008
+ if (H.id === "print_screen") {
10022
10009
  let _ = (o == null ? void 0 : o.map((J) => J.id)) || [];
10023
10010
  _.length === 0 && (_ = (b == null ? void 0 : b.map((J) => J.id)) || []), j({
10024
10011
  id: -1,
@@ -10105,10 +10092,7 @@ const tm = ({
10105
10092
  };
10106
10093
  return a(), window.addEventListener("resize", a), () => window.removeEventListener("resize", a);
10107
10094
  }, [e, ...n]), be(() => r, [r]) - t;
10108
- }, rm = (e) => {
10109
- if (!(!e.treeViewId || !e.model))
10110
- return `columnState-${e.treeViewId}-${e.model}`;
10111
- }, { Text: Ko } = At, om = ({
10095
+ }, rm = (e) => e.model ? `columnState-${e.treeViewId ?? "tree"}-${e.model}` : void 0, { Text: Ko } = At, om = ({
10112
10096
  totalRows: e,
10113
10097
  selectedRowKeys: t,
10114
10098
  allRowSelectedMode: n
@@ -11231,7 +11215,7 @@ function ph(e, t) {
11231
11215
  setResults: Z,
11232
11216
  results: j,
11233
11217
  setSearchQuery: se,
11234
- setTotalItems: U
11218
+ setTotalItems: H
11235
11219
  } = eo(c), _ = d || Q, J = X(_);
11236
11220
  de(() => {
11237
11221
  var N, ee;
@@ -11272,7 +11256,7 @@ function ph(e, t) {
11272
11256
  const Ae = _ ? a : Ve;
11273
11257
  let _e = !1;
11274
11258
  const lt = `${JSON.stringify(Ae)}-${_}`;
11275
- lt !== me.current && (me.current = lt, _e = !0, w(void 0), U(0));
11259
+ lt !== me.current && (me.current = lt, _e = !0, w(void 0), H(0));
11276
11260
  const nt = Sc(ge), {
11277
11261
  totalItems: Ke,
11278
11262
  results: ct,
@@ -11301,10 +11285,10 @@ function ph(e, t) {
11301
11285
  Z == null || Z(rt);
11302
11286
  }
11303
11287
  if (Qe.current = nt, ct.length === 0)
11304
- return y.current = [], w(0), U(0), [];
11288
+ return y.current = [], w(0), H(0), [];
11305
11289
  _e && Promise.resolve().then(async () => {
11306
11290
  Ke().then((rt) => {
11307
- w(rt), U(rt);
11291
+ w(rt), H(rt);
11308
11292
  });
11309
11293
  });
11310
11294
  const Le = zn(K, ct), qe = Xt(Rt);
@@ -11329,6 +11313,7 @@ function ph(e, t) {
11329
11313
  u,
11330
11314
  Z,
11331
11315
  se,
11316
+ H,
11332
11317
  K,
11333
11318
  S
11334
11319
  ]
@@ -11350,12 +11335,12 @@ function ph(e, t) {
11350
11335
  sortFields: ge
11351
11336
  });
11352
11337
  } catch (pe) {
11353
- throw console.error(pe), w(null), U(0), v(pe), pe;
11338
+ throw console.error(pe), w(null), H(0), v(pe), pe;
11354
11339
  } finally {
11355
11340
  O == null || O(!1);
11356
11341
  }
11357
11342
  },
11358
- [Ne, U, O, v]
11343
+ [Ne, H, O, v]
11359
11344
  ), Ge = B((N) => {
11360
11345
  var ee, ge, pe, Ae;
11361
11346
  if (p.current[(ge = (ee = N.node) == null ? void 0 : ee.data) == null ? void 0 : ge.id])
@@ -11718,7 +11703,7 @@ function Ch(e, t) {
11718
11703
  limit: v
11719
11704
  } = e, [g, w] = C(), [T, I] = C([]), [b, S] = C(!0), x = p || void 0, [F, O] = C(
11720
11705
  x
11721
- ), [V, A] = C([]), [R, P] = C(), [D, L] = C([]), [W, G] = C(), [M, $] = C(0), [Q, re] = C(!1), [Z, j] = C(!1), [se, U] = C(), { t: _ } = ye(), J = X(), K = X(), he = te(
11706
+ ), [V, A] = C([]), [R, P] = C(), [D, L] = C([]), [W, G] = C(), [M, $] = C(0), [Q, re] = C(!1), [Z, j] = C(!1), [se, H] = C(), { t: _ } = ye(), J = X(), K = X(), he = te(
11722
11707
  wt
11723
11708
  ), {
11724
11709
  setCurrentView: oe,
@@ -11993,7 +11978,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
11993
11978
  setTotalItems: $,
11994
11979
  selectedRowItems: V,
11995
11980
  setSelectedRowItems: A,
11996
- setSearchTreeNameSearch: U,
11981
+ setSearchTreeNameSearch: H,
11997
11982
  searchTreeNameSearch: se,
11998
11983
  goToResourceId: fe,
11999
11984
  limit: v,
@@ -12076,7 +12061,7 @@ function Oh(e) {
12076
12061
  re(!1), A(Ee);
12077
12062
  const Ge = await Ve();
12078
12063
  O(Ge);
12079
- }, U = async () => {
12064
+ }, H = async () => {
12080
12065
  try {
12081
12066
  re(!0), await se();
12082
12067
  } catch (Y) {
@@ -12084,7 +12069,7 @@ function Oh(e) {
12084
12069
  }
12085
12070
  };
12086
12071
  de(() => {
12087
- f && a && U();
12072
+ f && a && H();
12088
12073
  }, [w, I, f, a]);
12089
12074
  const _ = async (Y) => {
12090
12075
  d(!1), u(!0), $(void 0);
@@ -12314,7 +12299,7 @@ function Fh(e, t) {
12314
12299
  views: Z,
12315
12300
  model: j,
12316
12301
  context: se,
12317
- domain: U,
12302
+ domain: H,
12318
12303
  initialView: _,
12319
12304
  limit: J
12320
12305
  } = D;
@@ -12335,19 +12320,19 @@ function Fh(e, t) {
12335
12320
  )[0][0],
12336
12321
  model: j,
12337
12322
  context: se,
12338
- domain: U,
12323
+ domain: H,
12339
12324
  limit: J
12340
12325
  },
12341
12326
  G
12342
12327
  );
12343
12328
  } else if ((_ == null ? void 0 : _.type) === "form")
12344
- he = /* @__PURE__ */ i(Ah, { model: j, actionDomain: U }, G);
12329
+ he = /* @__PURE__ */ i(Ah, { model: j, actionDomain: H }, G);
12345
12330
  else if ((_ == null ? void 0 : _.type) === "tree")
12346
12331
  he = /* @__PURE__ */ i(
12347
12332
  Ih,
12348
12333
  {
12349
12334
  model: j,
12350
- domain: U,
12335
+ domain: H,
12351
12336
  view_id: Z.filter(
12352
12337
  (ue) => ue[1] === "tree"
12353
12338
  )[0][0],
@@ -12389,7 +12374,7 @@ function Fh(e, t) {
12389
12374
  views: Z,
12390
12375
  model: j,
12391
12376
  context: se,
12392
- domain: U,
12377
+ domain: H,
12393
12378
  setCanWeClose: () => {
12394
12379
  },
12395
12380
  initialView: ue,
@@ -12721,10 +12706,10 @@ function Zh(e, t) {
12721
12706
  view_type: Q,
12722
12707
  limit: re
12723
12708
  } = V, Z = Q === "tree", j = [];
12724
- for (const U of G) {
12725
- const [_, J] = U;
12709
+ for (const H of G) {
12710
+ const [_, J] = H;
12726
12711
  if (_)
12727
- j.push(U);
12712
+ j.push(H);
12728
12713
  else if (J === "dashboard")
12729
12714
  j.push([void 0, "dashboard"]);
12730
12715
  else {
@@ -12739,13 +12724,13 @@ function Zh(e, t) {
12739
12724
  }
12740
12725
  let se;
12741
12726
  if (x) {
12742
- const [U, _] = j.find(
12727
+ const [H, _] = j.find(
12743
12728
  ([J, K]) => K === x
12744
12729
  );
12745
- se = { id: U, type: _ };
12730
+ se = { id: H, type: _ };
12746
12731
  } else {
12747
- const [U, _] = j[0];
12748
- se = { id: U, type: _ };
12732
+ const [H, _] = j[0];
12733
+ se = { id: H, type: _ };
12749
12734
  }
12750
12735
  T({
12751
12736
  domain: [...L, ...O],
@@ -12872,7 +12857,7 @@ function Zh(e, t) {
12872
12857
  j = void 0, se = _[1];
12873
12858
  } else
12874
12859
  [j, se] = Z.find((_) => _[0] === void 0 ? !1 : _[0] === F);
12875
- const U = { id: j, type: se };
12860
+ const H = { id: j, type: se };
12876
12861
  T({
12877
12862
  domain: D,
12878
12863
  context: { ...l, ...P },
@@ -12880,7 +12865,7 @@ function Zh(e, t) {
12880
12865
  views: Z,
12881
12866
  title: G,
12882
12867
  target: M,
12883
- initialView: U,
12868
+ initialView: H,
12884
12869
  action_id: b,
12885
12870
  action_type: S,
12886
12871
  res_id: x,