@nocobase/client 1.4.4 → 1.4.5

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.
Files changed (3) hide show
  1. package/es/index.mjs +399 -399
  2. package/lib/index.js +1 -1
  3. package/package.json +5 -5
package/es/index.mjs CHANGED
@@ -3902,7 +3902,7 @@ class APIClient extends APIClient$1 {
3902
3902
  (o) => o,
3903
3903
  (o) => {
3904
3904
  const n = this.toErrMessages(o);
3905
- throw n.find((r) => r.code === "ROLE_NOT_FOUND_ERR") && this.auth.setRole(null), n.find((r) => r.code === "TOKEN_INVALID") && this.auth.setToken(null), o;
3905
+ throw n.find((r) => r.code === "ROLE_NOT_FOUND_ERR") && (this.auth.setRole(null), window.location.reload()), n.find((r) => r.code === "TOKEN_INVALID") && this.auth.setToken(null), n.find((r) => r.code === "ROLE_NOT_FOUND_FOR_USER") && (this.auth.setRole(null), window.location.reload()), o;
3906
3906
  }
3907
3907
  );
3908
3908
  }
@@ -4295,7 +4295,7 @@ function addAppVersion(e, t) {
4295
4295
  addAppVersion((n = e.properties) == null ? void 0 : n[o], t);
4296
4296
  }), e;
4297
4297
  }
4298
- const name = "@nocobase/client", version$1 = "1.4.4", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
4298
+ const name = "@nocobase/client", version$1 = "1.4.5", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
4299
4299
  "@ahooksjs/use-url-state": "3.5.1",
4300
4300
  "@ant-design/cssinjs": "^1.11.1",
4301
4301
  "@ant-design/icons": "^5.1.4",
@@ -4317,9 +4317,9 @@ const name = "@nocobase/client", version$1 = "1.4.4", license = "AGPL-3.0", main
4317
4317
  "@formily/reactive-react": "^2.2.27",
4318
4318
  "@formily/shared": "^2.2.27",
4319
4319
  "@formily/validator": "^2.2.27",
4320
- "@nocobase/evaluators": "1.4.4",
4321
- "@nocobase/sdk": "1.4.4",
4322
- "@nocobase/utils": "1.4.4",
4320
+ "@nocobase/evaluators": "1.4.5",
4321
+ "@nocobase/sdk": "1.4.5",
4322
+ "@nocobase/utils": "1.4.5",
4323
4323
  ahooks: "^3.7.2",
4324
4324
  antd: "5.12.8",
4325
4325
  "antd-style": "3.7.1",
@@ -5000,7 +5000,7 @@ const TreeNode = (e) => {
5000
5000
  const $ = a(A.interface);
5001
5001
  if (!($ != null && $.filterable))
5002
5002
  return;
5003
- const { nested: L, children: z, operators: j } = $.filterable, R = {
5003
+ const { nested: L, children: O, operators: j } = $.filterable, R = {
5004
5004
  name: A.name,
5005
5005
  title: ((B = A == null ? void 0 : A.uiSchema) == null ? void 0 : B.title) || A.name,
5006
5006
  schema: A == null ? void 0 : A.uiSchema,
@@ -5010,7 +5010,7 @@ const TreeNode = (e) => {
5010
5010
  if (!(A.target && D > 2)) {
5011
5011
  if (D > 2)
5012
5012
  return R;
5013
- if (z != null && z.length && (R.children = z), L) {
5013
+ if (O != null && O.length && (R.children = O), L) {
5014
5014
  const T = n(A.target), N = w(T, D + 1).filter(Boolean);
5015
5015
  R.children = R.children || [], R.children.push(...N);
5016
5016
  }
@@ -5019,8 +5019,8 @@ const TreeNode = (e) => {
5019
5019
  }, w = (A, D) => {
5020
5020
  const $ = [];
5021
5021
  return A.forEach((L) => {
5022
- const z = I(L, D);
5023
- z && $.push(z);
5022
+ const O = I(L, D);
5023
+ O && $.push(O);
5024
5024
  }), $;
5025
5025
  };
5026
5026
  return w(v, 1);
@@ -9263,7 +9263,7 @@ function withInitializer(e) {
9263
9263
  b ? b(y(R, { isInSubTable: i })) : r(d, y(R, { isInSubTable: i }), { onSuccess: p });
9264
9264
  },
9265
9265
  [b, y, r, d, p]
9266
- ), { wrapSSR: I, hashId: w, componentCls: k } = useSchemaInitializerStyles(), [A, D] = useState(!1), { token: $ } = theme.useToken(), L = useNiceDropdownMaxHeight([A]), z = useMemo(
9266
+ ), { wrapSSR: I, hashId: w, componentCls: k } = useSchemaInitializerStyles(), [A, D] = useState(!1), { token: $ } = theme.useToken(), L = useNiceDropdownMaxHeight([A]), O = useMemo(
9267
9267
  () => x({
9268
9268
  options: o,
9269
9269
  style: C
@@ -9289,7 +9289,7 @@ function withInitializer(e) {
9289
9289
  insert: v,
9290
9290
  options: o
9291
9291
  },
9292
- children: f === !1 ? React.createElement(e, z) : /* @__PURE__ */ jsx(
9292
+ children: f === !1 ? React.createElement(e, O) : /* @__PURE__ */ jsx(
9293
9293
  Popover,
9294
9294
  F(x({
9295
9295
  placement: "bottomLeft"
@@ -9326,7 +9326,7 @@ function withInitializer(e) {
9326
9326
  }
9327
9327
  )
9328
9328
  ),
9329
- children: React.createElement(e, z)
9329
+ children: React.createElement(e, O)
9330
9330
  })
9331
9331
  )
9332
9332
  }
@@ -10455,7 +10455,7 @@ const variablesStore = {}, getFieldPath = (e, t) => {
10455
10455
  let w = mergeCtxWithLocalVariables(o.current, S);
10456
10456
  const { fieldPath: k, dataSource: A, variableOption: D } = getFieldPath(v, I);
10457
10457
  let $ = k;
10458
- const { fieldPath: L } = getFieldPath(C, I), z = y.length === 1 ? D == null ? void 0 : D.collectionName : (R = r(L, A)) == null ? void 0 : R.target;
10458
+ const { fieldPath: L } = getFieldPath(C, I), O = y.length === 1 ? D == null ? void 0 : D.collectionName : (R = r(L, A)) == null ? void 0 : R.target;
10459
10459
  if (!(v in w))
10460
10460
  throw new Error(`VariablesProvider: ${v} is not found`);
10461
10461
  for (let M = 0; M < y.length; M++) {
@@ -10463,13 +10463,13 @@ const variablesStore = {}, getFieldPath = (e, t) => {
10463
10463
  return {
10464
10464
  value: w === void 0 ? D == null ? void 0 : D.defaultValue : w,
10465
10465
  dataSource: A,
10466
- collectionName: z
10466
+ collectionName: O
10467
10467
  };
10468
- const T = y[M], { fieldPath: N } = getFieldPath(y.slice(0, M + 1).join("."), I), O = r(N, A), q = (B = i($)) == null ? void 0 : B.getPrimaryKey();
10468
+ const T = y[M], { fieldPath: N } = getFieldPath(y.slice(0, M + 1).join("."), I), z = r(N, A), q = (B = i($)) == null ? void 0 : B.getPrimaryKey();
10469
10469
  if (Array.isArray(w)) {
10470
10470
  const E = w.map((U) => {
10471
- if (!(b != null && b.doNotRequest) && shouldToRequest(U == null ? void 0 : U[T]) && (U == null ? void 0 : U[q]) != null && O != null && O.target) {
10472
- const G = `/${$}/${U[O.sourceKey || q]}/${T}:${getAction(O.type)}`;
10471
+ if (!(b != null && b.doNotRequest) && shouldToRequest(U == null ? void 0 : U[T]) && (U == null ? void 0 : U[q]) != null && z != null && z.target) {
10472
+ const G = `/${$}/${U[z.sourceKey || q]}/${T}:${getAction(z.type)}`;
10473
10473
  if (hasRequested(G))
10474
10474
  return getRequested(G);
10475
10475
  const H = n.request({
@@ -10483,9 +10483,9 @@ const variablesStore = {}, getFieldPath = (e, t) => {
10483
10483
  }
10484
10484
  return U == null ? void 0 : U[T];
10485
10485
  });
10486
- w = removeThroughCollectionFields(_.flatten(yield Promise.all(E)), O);
10487
- } else if (!(b != null && b.doNotRequest) && shouldToRequest(w[T]) && w[q] != null && (O != null && O.target)) {
10488
- const E = `/${$}/${w[O.sourceKey || q]}/${T}:${getAction(O.type)}`;
10486
+ w = removeThroughCollectionFields(_.flatten(yield Promise.all(E)), z);
10487
+ } else if (!(b != null && b.doNotRequest) && shouldToRequest(w[T]) && w[q] != null && (z != null && z.target)) {
10488
+ const E = `/${$}/${w[z.sourceKey || q]}/${T}:${getAction(z.type)}`;
10489
10489
  let U = null;
10490
10490
  if (hasRequested(E))
10491
10491
  U = yield getRequested(E);
@@ -10499,10 +10499,10 @@ const variablesStore = {}, getFieldPath = (e, t) => {
10499
10499
  });
10500
10500
  stashRequested(E, G), U = yield G, clearRequested(E);
10501
10501
  }
10502
- raw(w)[T] || (raw(w)[T] = U.data.data), w = removeThroughCollectionFields(getValuesByPath(w, T), O);
10502
+ raw(w)[T] || (raw(w)[T] = U.data.data), w = removeThroughCollectionFields(getValuesByPath(w, T), z);
10503
10503
  } else
10504
- w = removeThroughCollectionFields(getValuesByPath(w, T), O);
10505
- O != null && O.target && ($ = O.target);
10504
+ w = removeThroughCollectionFields(getValuesByPath(w, T), z);
10505
+ z != null && z.target && ($ = z.target);
10506
10506
  }
10507
10507
  const j = a(
10508
10508
  _.isFunction(w) ? w({ fieldOperator: b == null ? void 0 : b.fieldOperator, isParsingVariable: !0 }) : w
@@ -10510,7 +10510,7 @@ const variablesStore = {}, getFieldPath = (e, t) => {
10510
10510
  return {
10511
10511
  value: j === void 0 ? D.defaultValue : j,
10512
10512
  dataSource: A,
10513
- collectionName: z
10513
+ collectionName: O
10514
10514
  };
10515
10515
  }),
10516
10516
  [r]
@@ -11838,14 +11838,14 @@ const popupsContextStorage = {}, getStoredPopupContext = (e) => popupsContextSto
11838
11838
  ].filter(Boolean).map((c) => encodePathValue(c)).join("/")}`;
11839
11839
  }, usePopupUtils = (e = {}) => {
11840
11840
  const t = useNavigateNoUpdate(), o = useLocationNoUpdate(), n = useFieldSchema(), r = useDataSourceKey(), i = useCollectionRecord(), a = useCollectionParentRecord(), l = useCollection(), c = useCollectionManager(), u = useAssociationName(), { visible: d, setVisible: p } = useContext(PopupVisibleProviderContext) || { visible: !1, setVisible: _.noop }, { params: m } = useCurrentPopupContext(), h = useDataBlockRequest(), { isPopupVisibleControlledByURL: g } = usePopupSettings(), { setVisible: f } = useContext(ActionContext), { updatePopupContext: C } = usePopupContextInActionOrAssociationField(), S = useCurrentPopupContext(), b = useCallback(
11841
- (z) => {
11841
+ (O) => {
11842
11842
  var j;
11843
- return (j = z || (a == null ? void 0 : a.data)) == null ? void 0 : j[c.getSourceKeyByAssociation(u)];
11843
+ return (j = O || (a == null ? void 0 : a.data)) == null ? void 0 : j[c.getSourceKeyByAssociation(u)];
11844
11844
  },
11845
11845
  [a, u]
11846
11846
  ), y = useTableBlockContext(), v = e.setVisible || f, I = useCallback(
11847
11847
  ({
11848
- tabKey: z,
11848
+ tabKey: O,
11849
11849
  popupUid: j,
11850
11850
  recordData: R,
11851
11851
  sourceId: B,
@@ -11859,20 +11859,20 @@ const popupsContextStorage = {}, getStoredPopupContext = (e) => popupsContextSto
11859
11859
  collection: M,
11860
11860
  filterbytk: N,
11861
11861
  sourceid: B,
11862
- tab: z
11862
+ tab: O
11863
11863
  });
11864
11864
  },
11865
11865
  [u, c, l, r, a == null ? void 0 : a.data, u]
11866
11866
  ), w = useCallback(() => {
11867
- const z = {
11867
+ const O = {
11868
11868
  dataSource: r,
11869
11869
  collection: u || l == null ? void 0 : l.name,
11870
11870
  association: u
11871
11871
  };
11872
- return _.omitBy(z, _.isNil);
11872
+ return _.omitBy(O, _.isNil);
11873
11873
  }, [r, l, u]), k = useCallback(
11874
11874
  ({
11875
- recordData: z,
11875
+ recordData: O,
11876
11876
  parentRecordData: j,
11877
11877
  collectionNameUsedInURL: R,
11878
11878
  popupUidUsedInURL: B,
@@ -11881,10 +11881,10 @@ const popupsContextStorage = {}, getStoredPopupContext = (e) => popupsContextSto
11881
11881
  if (!g())
11882
11882
  return v == null ? void 0 : v(!0);
11883
11883
  const T = (M == null ? void 0 : M["x-uid"]) || (n == null ? void 0 : n["x-uid"]), N = b(j);
11884
- z = z || (i == null ? void 0 : i.data);
11885
- const O = I({
11884
+ O = O || (i == null ? void 0 : i.data);
11885
+ const z = I({
11886
11886
  popupUid: T,
11887
- recordData: z,
11887
+ recordData: O,
11888
11888
  sourceId: N,
11889
11889
  collection: R,
11890
11890
  puid: B
@@ -11892,7 +11892,7 @@ const popupsContextStorage = {}, getStoredPopupContext = (e) => popupsContextSto
11892
11892
  let q = o.pathname;
11893
11893
  _.last(q) === "/" && (q = q.slice(0, -1)), storePopupContext(T, {
11894
11894
  schema: M || n,
11895
- record: new CollectionRecord({ isNew: !1, data: z }),
11895
+ record: new CollectionRecord({ isNew: !1, data: O }),
11896
11896
  parentRecord: j ? new CollectionRecord({ isNew: !1, data: j }) : a,
11897
11897
  service: h,
11898
11898
  dataSource: r,
@@ -11900,7 +11900,7 @@ const popupsContextStorage = {}, getStoredPopupContext = (e) => popupsContextSto
11900
11900
  association: u,
11901
11901
  sourceId: N,
11902
11902
  tableBlockContext: y
11903
- }), C(w(), M), t(withSearchParams(`${q}${O}`));
11903
+ }), C(w(), M), t(withSearchParams(`${q}${z}`));
11904
11904
  },
11905
11905
  [
11906
11906
  u,
@@ -11924,9 +11924,9 @@ const popupsContextStorage = {}, getStoredPopupContext = (e) => popupsContextSto
11924
11924
  return v == null ? void 0 : v(!1);
11925
11925
  t(withSearchParams(removeLastPopupPath(o.pathname)), { replace: !0 });
11926
11926
  }, [g, v, t, o == null ? void 0 : o.pathname]), D = useCallback(
11927
- (z) => {
11927
+ (O) => {
11928
11928
  const j = b(), R = I({
11929
- tabKey: z,
11929
+ tabKey: O,
11930
11930
  popupUid: m == null ? void 0 : m.popupuid,
11931
11931
  recordData: i == null ? void 0 : i.data,
11932
11932
  sourceId: j
@@ -11937,9 +11937,9 @@ const popupsContextStorage = {}, getStoredPopupContext = (e) => popupsContextSto
11937
11937
  });
11938
11938
  },
11939
11939
  [I, t, m == null ? void 0 : m.popupuid, i == null ? void 0 : i.data, o]
11940
- ), $ = useCallback((z, j) => {
11941
- j.__popup = z;
11942
- }, []), L = useCallback((z) => z.__popup, []);
11940
+ ), $ = useCallback((O, j) => {
11941
+ j.__popup = O;
11942
+ }, []), L = useCallback((O) => O.__popup, []);
11943
11943
  return {
11944
11944
  /**
11945
11945
  * used to open popup by changing the url
@@ -12981,7 +12981,7 @@ const ColDivider = (e) => {
12981
12981
  return;
12982
12982
  const D = l.current, $ = D.previousElementSibling, L = D.nextElementSibling;
12983
12983
  h["x-component-props"] = h["x-component-props"] || {}, g["x-component-props"] = g["x-component-props"] || {};
12984
- const z = D.clientWidth * (e.cols.length + 1) / e.cols.length, j = (100 * ($.getBoundingClientRect().width + z) / D.parentElement.clientWidth).toFixed(2), R = (100 * (L.getBoundingClientRect().width + z) / D.parentElement.clientWidth).toFixed(2);
12984
+ const O = D.clientWidth * (e.cols.length + 1) / e.cols.length, j = (100 * ($.getBoundingClientRect().width + O) / D.parentElement.clientWidth).toFixed(2), R = (100 * (L.getBoundingClientRect().width + O) / D.parentElement.clientWidth).toFixed(2);
12985
12985
  _.set(h, "x-component-props.width", j), _.set(g, "x-component-props.width", R), i.emit("batchPatch", {
12986
12986
  schemas: [
12987
12987
  {
@@ -13274,8 +13274,8 @@ const TableColumnSchemaToolbar = (e) => /* @__PURE__ */ jsx(GridRowContext.Provi
13274
13274
  ),
13275
13275
  onChange: useCallback(
13276
13276
  ({ current: h, pageSize: g }, f, C) => {
13277
- var I, w, k, A, D, $, L, z, j, R;
13278
- const S = (k = (w = (I = t.parent) == null ? void 0 : I["x-decorator-props"]) == null ? void 0 : w.params) == null ? void 0 : k.sort, b = C.order ? C.order === "ascend" ? [C.field] : [`-${C.field}`] : S || i.current.dragSortBy, y = g || (($ = (D = (A = t.parent) == null ? void 0 : A["x-decorator-props"]) == null ? void 0 : D.params) == null ? void 0 : $.pageSize), v = F(x({}, (j = (z = (L = i.current) == null ? void 0 : L.service) == null ? void 0 : z.params) == null ? void 0 : j[0]), { page: h || 1, pageSize: y });
13277
+ var I, w, k, A, D, $, L, O, j, R;
13278
+ const S = (k = (w = (I = t.parent) == null ? void 0 : I["x-decorator-props"]) == null ? void 0 : w.params) == null ? void 0 : k.sort, b = C.order ? C.order === "ascend" ? [C.field] : [`-${C.field}`] : S || i.current.dragSortBy, y = g || (($ = (D = (A = t.parent) == null ? void 0 : A["x-decorator-props"]) == null ? void 0 : D.params) == null ? void 0 : $.pageSize), v = F(x({}, (j = (O = (L = i.current) == null ? void 0 : L.service) == null ? void 0 : O.params) == null ? void 0 : j[0]), { page: h || 1, pageSize: y });
13279
13279
  b && (v.sort = b), (R = i.current) == null || R.service.run(v);
13280
13280
  },
13281
13281
  [t.parent]
@@ -13289,11 +13289,11 @@ const TableColumnSchemaToolbar = (e) => /* @__PURE__ */ jsx(GridRowContext.Provi
13289
13289
  }
13290
13290
  const y = b.find((v) => v.uid === t.parent["x-uid"]);
13291
13291
  b.forEach((v) => {
13292
- var L, z, j;
13292
+ var L, O, j;
13293
13293
  const I = C.find((R) => R.uid === v.uid);
13294
13294
  if (!I)
13295
13295
  return;
13296
- const w = getSourceKey(y, I.field) || o.rowKey || "id", k = [h[w]], A = ((L = v.service.params) == null ? void 0 : L[0]) || {}, D = ((j = (z = v.service.params) == null ? void 0 : z[1]) == null ? void 0 : j.filters) || {};
13296
+ const w = getSourceKey(y, I.field) || o.rowKey || "id", k = [h[w]], A = ((L = v.service.params) == null ? void 0 : L[0]) || {}, D = ((j = (O = v.service.params) == null ? void 0 : O[1]) == null ? void 0 : j.filters) || {};
13297
13297
  if (f.includes(h[o.rowKey])) {
13298
13298
  if (v.dataLoadingMode === "manual")
13299
13299
  return v.clearData();
@@ -13646,10 +13646,10 @@ const useTableSelectorParams = () => useContext(TableSelectorParamsContext), Tab
13646
13646
  var a, l, c, u, d, p, m, h, g, f, C, S, b, y, v, I;
13647
13647
  const e = useField(), t = useTableSelectorContext(), o = useFieldSchema(), { getCollectionJoinField: n } = useCollectionManager_deprecated(), r = recursiveParent$1(o, "CollectionField"), i = n(r == null ? void 0 : r["x-collection-field"]);
13648
13648
  return useEffect(() => {
13649
- var k, A, D, $, L, z, j, R, B, M, T, N, O;
13649
+ var k, A, D, $, L, O, j, R, B, M, T, N, z;
13650
13650
  if (!((k = t == null ? void 0 : t.service) != null && k.loading)) {
13651
13651
  const q = (D = (A = t == null ? void 0 : t.service) == null ? void 0 : A.data) == null ? void 0 : D.data.map((E) => E);
13652
- e.value = q, ($ = e == null ? void 0 : e.setInitialValue) == null || $.call(e, q), e.data = e.data || {}, e.data.selectedRowKeys = [], e.componentProps.pagination = e.componentProps.pagination || {}, e.componentProps.pagination.pageSize = (j = (z = (L = t == null ? void 0 : t.service) == null ? void 0 : L.data) == null ? void 0 : z.meta) == null ? void 0 : j.pageSize, e.componentProps.pagination.total = (M = (B = (R = t == null ? void 0 : t.service) == null ? void 0 : R.data) == null ? void 0 : B.meta) == null ? void 0 : M.count, e.componentProps.pagination.current = (O = (N = (T = t == null ? void 0 : t.service) == null ? void 0 : T.data) == null ? void 0 : N.meta) == null ? void 0 : O.page;
13652
+ e.value = q, ($ = e == null ? void 0 : e.setInitialValue) == null || $.call(e, q), e.data = e.data || {}, e.data.selectedRowKeys = [], e.componentProps.pagination = e.componentProps.pagination || {}, e.componentProps.pagination.pageSize = (j = (O = (L = t == null ? void 0 : t.service) == null ? void 0 : L.data) == null ? void 0 : O.meta) == null ? void 0 : j.pageSize, e.componentProps.pagination.total = (M = (B = (R = t == null ? void 0 : t.service) == null ? void 0 : R.data) == null ? void 0 : B.meta) == null ? void 0 : M.count, e.componentProps.pagination.current = (z = (N = (T = t == null ? void 0 : t.service) == null ? void 0 : T.data) == null ? void 0 : N.meta) == null ? void 0 : z.page;
13653
13653
  }
13654
13654
  }, [
13655
13655
  i == null ? void 0 : i.foreignKey,
@@ -14424,8 +14424,8 @@ const useFormItemInitializerFields = (e) => {
14424
14424
  schema: b
14425
14425
  };
14426
14426
  return l == "Kanban" && (y.find = (D, $, L) => {
14427
- const z = findSchema(D, "x-component", l);
14428
- return findSchema(z, $, L);
14427
+ const O = findSchema(D, "x-component", l);
14428
+ return findSchema(O, $, L);
14429
14429
  }), y;
14430
14430
  });
14431
14431
  }, useFilterFormItemInitializerFields = (e) => {
@@ -14795,7 +14795,7 @@ const useFormItemInitializerFields = (e) => {
14795
14795
  ]
14796
14796
  })), [y, C == null ? void 0 : C.inherits, C == null ? void 0 : C.name, t, v, h]);
14797
14797
  return r ? useMemo(() => {
14798
- var z;
14798
+ var O;
14799
14799
  const w = {
14800
14800
  name: "currentRecord",
14801
14801
  collectionName: C.name,
@@ -14866,7 +14866,7 @@ const useFormItemInitializerFields = (e) => {
14866
14866
  else if (I[0].children.length)
14867
14867
  if (l) {
14868
14868
  if (I[0].children.length <= 1)
14869
- return I[0].children = ((z = I[0].children[0]) == null ? void 0 : z.children) || [], I;
14869
+ return I[0].children = ((O = I[0].children[0]) == null ? void 0 : O.children) || [], I;
14870
14870
  $ = [w];
14871
14871
  } else
14872
14872
  $ = [w, D];
@@ -15598,10 +15598,10 @@ const useGetAriaLabelOfDesigner = () => {
15598
15598
  t["x-settings"] || i,
15599
15599
  t["x-settings-props"]
15600
15600
  ), b = useGridRowContext(), y = useGridContext(), v = useDataSourceManager(), I = v == null ? void 0 : v.getDataSources(), w = useDataSource(), k = (I == null ? void 0 : I.length) > 1 && w, A = ["FormItem", "ReadPrettyFormItem"].includes(r == null ? void 0 : r.componentName) ? `${r == null ? void 0 : r.name} ${m("(Fields only)")}` : r == null ? void 0 : r.name, D = useMemo(() => {
15601
- var z;
15601
+ var O;
15602
15602
  return {
15603
15603
  insertPosition: "afterEnd",
15604
- wrap: ((z = b == null ? void 0 : b.cols) == null ? void 0 : z.length) > 1 ? void 0 : gridRowColWrap,
15604
+ wrap: ((O = b == null ? void 0 : b.cols) == null ? void 0 : O.length) > 1 ? void 0 : gridRowColWrap,
15605
15605
  Component: (j) => /* @__PURE__ */ jsx(
15606
15606
  PlusOutlined,
15607
15607
  F(x({}, j), {
@@ -15642,7 +15642,7 @@ const useGetAriaLabelOfDesigner = () => {
15642
15642
  ] }) })
15643
15643
  ] }) })) : null;
15644
15644
  }, InternalSchemaToolbar = (e) => {
15645
- var O;
15645
+ var z;
15646
15646
  const t = useFieldSchema(), {
15647
15647
  title: o,
15648
15648
  initializer: n,
@@ -15669,11 +15669,11 @@ const useGetAriaLabelOfDesigner = () => {
15669
15669
  ), { render: $, exists: L } = useSchemaInitializerRender(
15670
15670
  n || (t == null ? void 0 : t["x-initializer"]),
15671
15671
  t == null ? void 0 : t["x-initializer-props"]
15672
- ), z = useGridRowContext(), j = useGridContext(), R = useMemo(() => {
15672
+ ), O = useGridRowContext(), j = useGridContext(), R = useMemo(() => {
15673
15673
  var q;
15674
15674
  return {
15675
15675
  insertPosition: "afterEnd",
15676
- wrap: ((q = z == null ? void 0 : z.cols) == null ? void 0 : q.length) === 1 ? gridRowColWrap : void 0,
15676
+ wrap: ((q = O == null ? void 0 : O.cols) == null ? void 0 : q.length) === 1 ? gridRowColWrap : void 0,
15677
15677
  Component: (E) => /* @__PURE__ */ jsx(
15678
15678
  PlusOutlined,
15679
15679
  F(x({}, E), {
@@ -15683,7 +15683,7 @@ const useGetAriaLabelOfDesigner = () => {
15683
15683
  })
15684
15684
  )
15685
15685
  };
15686
- }, [b, (O = z == null ? void 0 : z.cols) == null ? void 0 : O.length]), B = useMemo(() => u === !1 ? null : /* @__PURE__ */ jsx(DragHandler, { children: /* @__PURE__ */ jsx(DragOutlined, { role: "button", "aria-label": b("drag-handler") }) }), [u, b]), M = useMemo(() => {
15686
+ }, [b, (z = O == null ? void 0 : O.cols) == null ? void 0 : z.length]), B = useMemo(() => u === !1 ? null : /* @__PURE__ */ jsx(DragHandler, { children: /* @__PURE__ */ jsx(DragOutlined, { role: "button", "aria-label": b("drag-handler") }) }), [u, b]), M = useMemo(() => {
15687
15687
  var q;
15688
15688
  if (n === !1)
15689
15689
  return null;
@@ -17154,7 +17154,7 @@ const ActionLink = withDynamicSchemaProps(
17154
17154
  "onMouseEnter",
17155
17155
  "refreshDataBlockRequest",
17156
17156
  "confirmTitle"
17157
- ]), { t: v } = useTranslation(), I = useDesigner(), w = useField(), k = useFieldSchema(), A = useCompile(), D = useCollectionRecordData(), $ = A((H = k["x-component-props"]) == null ? void 0 : H.confirm) || g, L = useMemo(() => (k == null ? void 0 : k["x-linkage-rules"]) || [], [k == null ? void 0 : k["x-linkage-rules"]]), { designable: z } = useDesignable(), j = useComponent(n) || n, R = useVariables(), B = useLocalVariables({ currentForm: { values: D, readPretty: !1 } }), { visibleWithURL: M, setVisibleWithURL: T } = usePopupUtils(), { setSubmitted: N } = useActionContext(), { getAriaLabel: O } = useGetAriaLabelOfAction(l), q = useCollectionParentRecordData(), E = useMemo(() => {
17157
+ ]), { t: v } = useTranslation(), I = useDesigner(), w = useField(), k = useFieldSchema(), A = useCompile(), D = useCollectionRecordData(), $ = A((H = k["x-component-props"]) == null ? void 0 : H.confirm) || g, L = useMemo(() => (k == null ? void 0 : k["x-linkage-rules"]) || [], [k == null ? void 0 : k["x-linkage-rules"]]), { designable: O } = useDesignable(), j = useComponent(n) || n, R = useVariables(), B = useLocalVariables({ currentForm: { values: D, readPretty: !1 } }), { visibleWithURL: M, setVisibleWithURL: T } = usePopupUtils(), { setSubmitted: N } = useActionContext(), { getAriaLabel: z } = useGetAriaLabelOfAction(l), q = useCollectionParentRecordData(), E = useMemo(() => {
17158
17158
  const W = l || A(k.title);
17159
17159
  return _.isString(W) ? v(W) : W;
17160
17160
  }, [l, k.title, v]);
@@ -17183,7 +17183,7 @@ const ActionLink = withDynamicSchemaProps(
17183
17183
  x({
17184
17184
  containerRefKey: o,
17185
17185
  fieldSchema: k,
17186
- designable: z,
17186
+ designable: O,
17187
17187
  field: w,
17188
17188
  actionTitle: E,
17189
17189
  icon: a,
@@ -17206,7 +17206,7 @@ const ActionLink = withDynamicSchemaProps(
17206
17206
  visibleWithURL: M,
17207
17207
  setVisibleWithURL: T,
17208
17208
  setSubmitted: N,
17209
- getAriaLabel: O,
17209
+ getAriaLabel: z,
17210
17210
  parentRecordData: q,
17211
17211
  actionCallback: h
17212
17212
  }, y)
@@ -17242,7 +17242,7 @@ const ActionLink = withDynamicSchemaProps(
17242
17242
  visibleWithURL: D,
17243
17243
  setVisibleWithURL: $,
17244
17244
  setSubmitted: L,
17245
- getAriaLabel: z,
17245
+ getAriaLabel: O,
17246
17246
  parentRecordData: j
17247
17247
  } = ge, R = K(ge, [
17248
17248
  "containerRefKey",
@@ -17273,7 +17273,7 @@ const ActionLink = withDynamicSchemaProps(
17273
17273
  "setSubmitted",
17274
17274
  "getAriaLabel",
17275
17275
  "parentRecordData"
17276
- ]), [B, M] = useState(!1), { wrapSSR: T, componentCls: N, hashId: O } = useStyles$g(), [q, E] = useState(!1), U = n["x-toolbar-props"] || n["x-designer-props"], G = (ue = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : ue.openMode, H = (xe = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : xe.openSize, W = (de = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : de.refreshDataBlockRequest, { modal: X } = App.useApp(), J = useForm(), Y = useACLActionParamsContext(), { run: Q, element: Z, disabled: te } = (k == null ? void 0 : k(A)) || {}, ee = J.disabled || i.disabled || ((pe = i.data) == null ? void 0 : pe.disabled) || w || te, se = useMemo(() => {
17276
+ ]), [B, M] = useState(!1), { wrapSSR: T, componentCls: N, hashId: z } = useStyles$g(), [q, E] = useState(!1), U = n["x-toolbar-props"] || n["x-designer-props"], G = (ue = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : ue.openMode, H = (xe = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : xe.openSize, W = (de = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : de.refreshDataBlockRequest, { modal: X } = App.useApp(), J = useForm(), Y = useACLActionParamsContext(), { run: Q, element: Z, disabled: te } = (k == null ? void 0 : k(A)) || {}, ee = J.disabled || i.disabled || ((pe = i.data) == null ? void 0 : pe.disabled) || w || te, se = useMemo(() => {
17277
17277
  var ce;
17278
17278
  return F(x({}, I), {
17279
17279
  opacity: r && (((ce = i == null ? void 0 : i.data) == null ? void 0 : ce.hidden) || !Y) && 0.1,
@@ -17292,10 +17292,10 @@ const ActionLink = withDynamicSchemaProps(
17292
17292
  tarComponent: d,
17293
17293
  designerProps: U,
17294
17294
  componentCls: N,
17295
- hashId: O,
17295
+ hashId: z,
17296
17296
  className: p,
17297
17297
  others: R,
17298
- getAriaLabel: z,
17298
+ getAriaLabel: O,
17299
17299
  type: m,
17300
17300
  Designer: h,
17301
17301
  openMode: G,
@@ -17405,15 +17405,15 @@ function RenderButton({
17405
17405
  setSubmitted: $,
17406
17406
  confirmTitle: L
17407
17407
  }) {
17408
- const z = useDataBlockRequest(), { t: j } = useTranslation(), { isPopupVisibleControlledByURL: R } = usePopupSettings(), { openPopup: B } = usePopupUtils(), M = useRef(null);
17409
- M.current = z;
17408
+ const O = useDataBlockRequest(), { t: j } = useTranslation(), { isPopupVisibleControlledByURL: R } = usePopupSettings(), { openPopup: B } = usePopupUtils(), M = useRef(null);
17409
+ M.current = O;
17410
17410
  const T = useRef(null);
17411
17411
  T.current = B;
17412
17412
  const N = useCallback(
17413
- (O, q = !0) => {
17414
- if (!(q && isPortalInBody(O.target)) && (O.preventDefault(), O.stopPropagation(), !a && o)) {
17413
+ (z, q = !0) => {
17414
+ if (!(q && isPortalInBody(z.target)) && (z.preventDefault(), z.stopPropagation(), !a && o)) {
17415
17415
  const E = () => {
17416
- y ? y(O, () => {
17416
+ y ? y(z, () => {
17417
17417
  var U, G;
17418
17418
  v !== !1 && ($ == null || $(!0), (G = (U = M.current) == null ? void 0 : U.refresh) == null || G.call(U));
17419
17419
  }) : isBulkEditAction(I) || !R() ? (w(!0), k == null || k()) : ["view", "update", "create", "customize:popup"].includes(I["x-action"]) && I["x-uid"] ? T.current() : (w(!0), k == null || k());
@@ -18041,19 +18041,19 @@ https://requirejs.org/docs/errors.html#` + e);
18041
18041
  config: {}
18042
18042
  }, l = {}, c = {}, u = {}, d = [], p = {}, m = {}, h = {}, g = 1, f = 1;
18043
18043
  function C(T) {
18044
- var N, O;
18044
+ var N, z;
18045
18045
  for (N = 0; N < T.length; N++)
18046
- if (O = T[N], O === ".")
18046
+ if (z = T[N], z === ".")
18047
18047
  T.splice(N, 1), N -= 1;
18048
- else if (O === "..") {
18048
+ else if (z === "..") {
18049
18049
  if (N === 0 || N === 1 && T[2] === ".." || T[N - 1] === "..")
18050
18050
  continue;
18051
18051
  N > 0 && (T.splice(N - 1, 2), N -= 2);
18052
18052
  }
18053
18053
  }
18054
- function S(T, N, O) {
18054
+ function S(T, N, z) {
18055
18055
  var q, E, U, G, H, W, X, J, Y, Q, Z, te, ee = N && N.split("/"), se = a.map, ie = se && se["*"];
18056
- if (T && (T = T.split("/"), X = T.length - 1, a.nodeIdCompat && jsSuffixRegExp.test(T[X]) && (T[X] = T[X].replace(jsSuffixRegExp, "")), T[0].charAt(0) === "." && ee && (te = ee.slice(0, ee.length - 1), T = te.concat(T)), C(T), T = T.join("/")), O && se && (ee || ie)) {
18056
+ if (T && (T = T.split("/"), X = T.length - 1, a.nodeIdCompat && jsSuffixRegExp.test(T[X]) && (T[X] = T[X].replace(jsSuffixRegExp, "")), T[0].charAt(0) === "." && ee && (te = ee.slice(0, ee.length - 1), T = te.concat(T)), C(T), T = T.join("/")), z && se && (ee || ie)) {
18057
18057
  U = T.split("/");
18058
18058
  e:
18059
18059
  for (G = U.length; G > 0; G -= 1) {
@@ -18084,14 +18084,14 @@ https://requirejs.org/docs/errors.html#` + e);
18084
18084
  })([T]), !0;
18085
18085
  }
18086
18086
  function v(T) {
18087
- var N, O = T ? T.indexOf("!") : -1;
18088
- return O > -1 && (N = T.substring(0, O), T = T.substring(O + 1, T.length)), [N, T];
18087
+ var N, z = T ? T.indexOf("!") : -1;
18088
+ return z > -1 && (N = T.substring(0, z), T = T.substring(z + 1, T.length)), [N, T];
18089
18089
  }
18090
- function I(T, N, O, q) {
18090
+ function I(T, N, z, q) {
18091
18091
  var E, U, G, H, W = null, X = N ? N.name : null, J = T, Y = !0, Q = "";
18092
- return T || (Y = !1, T = "_@r" + (g += 1)), H = v(T), W = H[0], T = H[1], W && (W = S(W, X, q), U = getOwn(p, W)), T && (W ? O ? Q = T : U && U.normalize ? Q = U.normalize(T, function(Z) {
18092
+ return T || (Y = !1, T = "_@r" + (g += 1)), H = v(T), W = H[0], T = H[1], W && (W = S(W, X, q), U = getOwn(p, W)), T && (W ? z ? Q = T : U && U.normalize ? Q = U.normalize(T, function(Z) {
18093
18093
  return S(Z, X, q);
18094
- }) : Q = T.indexOf("!") === -1 ? S(T, X, q) : T : (Q = S(T, X, q), H = v(Q), W = H[0], Q = H[1], O = !0, E = n.nameToUrl(Q))), G = W && !U && !O ? "_unnormalized" + (f += 1) : "", {
18094
+ }) : Q = T.indexOf("!") === -1 ? S(T, X, q) : T : (Q = S(T, X, q), H = v(Q), W = H[0], Q = H[1], z = !0, E = n.nameToUrl(Q))), G = W && !U && !z ? "_unnormalized" + (f += 1) : "", {
18095
18095
  prefix: W,
18096
18096
  name: Q,
18097
18097
  parentMap: N,
@@ -18103,16 +18103,16 @@ https://requirejs.org/docs/errors.html#` + e);
18103
18103
  };
18104
18104
  }
18105
18105
  function w(T) {
18106
- var N = T.id, O = getOwn(l, N);
18107
- return O || (O = l[N] = new n.Module(T)), O;
18106
+ var N = T.id, z = getOwn(l, N);
18107
+ return z || (z = l[N] = new n.Module(T)), z;
18108
18108
  }
18109
- function k(T, N, O) {
18109
+ function k(T, N, z) {
18110
18110
  var q = T.id, E = getOwn(l, q);
18111
- hasProp(p, q) && (!E || E.defineEmitComplete) ? N === "defined" && O(p[q]) : (E = w(T), E.error && N === "error" ? O(E.error) : E.on(N, O));
18111
+ hasProp(p, q) && (!E || E.defineEmitComplete) ? N === "defined" && z(p[q]) : (E = w(T), E.error && N === "error" ? z(E.error) : E.on(N, z));
18112
18112
  }
18113
18113
  function A(T, N) {
18114
- var O = T.requireModules, q = !1;
18115
- N ? N(T) : (each(O, function(E) {
18114
+ var z = T.requireModules, q = !1;
18115
+ N ? N(T) : (each(z, function(E) {
18116
18116
  var U = getOwn(l, E);
18117
18117
  U && (U.error = T, U.events.error && (q = !0, U.emit("error", T)));
18118
18118
  }), q || req.onError(T));
@@ -18145,15 +18145,15 @@ https://requirejs.org/docs/errors.html#` + e);
18145
18145
  function $(T) {
18146
18146
  delete l[T], delete c[T];
18147
18147
  }
18148
- function L(T, N, O) {
18148
+ function L(T, N, z) {
18149
18149
  var q = T.map.id;
18150
18150
  T.error ? T.emit("error", T.error) : (N[q] = !0, each(T.depMaps, function(E, U) {
18151
18151
  var G = E.id, H = getOwn(l, G);
18152
- H && !T.depMatched[U] && !O[G] && (getOwn(N, G) ? (T.defineDep(U, p[G]), T.check()) : L(H, N, O));
18153
- }), O[q] = !0);
18152
+ H && !T.depMatched[U] && !z[G] && (getOwn(N, G) ? (T.defineDep(U, p[G]), T.check()) : L(H, N, z));
18153
+ }), z[q] = !0);
18154
18154
  }
18155
- function z() {
18156
- var T, N, O = a.waitSeconds * 1e3, q = O && n.startTime + O < (/* @__PURE__ */ new Date()).getTime(), E = [], U = [], G = !1, H = !0;
18155
+ function O() {
18156
+ var T, N, z = a.waitSeconds * 1e3, q = z && n.startTime + z < (/* @__PURE__ */ new Date()).getTime(), E = [], U = [], G = !1, H = !0;
18157
18157
  if (!t) {
18158
18158
  if (t = !0, eachProp(c, function(W) {
18159
18159
  var X = W.map, J = X.id;
@@ -18168,17 +18168,17 @@ https://requirejs.org/docs/errors.html#` + e);
18168
18168
  H && each(U, function(W) {
18169
18169
  L(W, {}, {});
18170
18170
  }), (!q || N) && G && (isBrowser || isWebWorker) && !i && (i = setTimeout(function() {
18171
- i = 0, z();
18171
+ i = 0, O();
18172
18172
  }, 50)), t = !1;
18173
18173
  }
18174
18174
  }
18175
18175
  o = function(T) {
18176
18176
  this.events = getOwn(u, T.id) || {}, this.map = T, this.shim = getOwn(a.shim, T.id), this.depExports = [], this.depMaps = [], this.depMatched = [], this.pluginMaps = {}, this.depCount = 0;
18177
18177
  }, o.prototype = {
18178
- init: function(T, N, O, q) {
18179
- q = q || {}, !this.inited && (this.factory = N, O ? this.on("error", O) : this.events.error && (O = bind(this, function(E) {
18178
+ init: function(T, N, z, q) {
18179
+ q = q || {}, !this.inited && (this.factory = N, z ? this.on("error", z) : this.events.error && (z = bind(this, function(E) {
18180
18180
  this.emit("error", E);
18181
- })), this.depMaps = T && T.slice(0), this.errback = O, this.inited = !0, this.ignore = q.ignore, q.enabled || this.enabled ? this.enable() : this.check());
18181
+ })), this.depMaps = T && T.slice(0), this.errback = z, this.inited = !0, this.ignore = q.ignore, q.enabled || this.enabled ? this.enable() : this.check());
18182
18182
  },
18183
18183
  defineDep: function(T, N) {
18184
18184
  this.depMatched[T] || (this.depMatched[T] = !0, this.depCount -= 1, this.depExports[T] = N);
@@ -18207,9 +18207,9 @@ https://requirejs.org/docs/errors.html#` + e);
18207
18207
  */
18208
18208
  check: function() {
18209
18209
  if (!(!this.enabled || this.enabling)) {
18210
- var T, N, O = this.map.id, q = this.depExports, E = this.exports, U = this.factory;
18210
+ var T, N, z = this.map.id, q = this.depExports, E = this.exports, U = this.factory;
18211
18211
  if (!this.inited)
18212
- hasProp(n.defQueueMap, O) || this.fetch();
18212
+ hasProp(n.defQueueMap, z) || this.fetch();
18213
18213
  else if (this.error)
18214
18214
  this.emit("error", this.error);
18215
18215
  else if (!this.defining) {
@@ -18217,31 +18217,31 @@ https://requirejs.org/docs/errors.html#` + e);
18217
18217
  if (isFunction(U)) {
18218
18218
  if (this.events.error && this.map.isDefine || req.onError !== defaultOnError)
18219
18219
  try {
18220
- E = n.execCb(O, U, q, E);
18220
+ E = n.execCb(z, U, q, E);
18221
18221
  } catch (H) {
18222
18222
  T = H;
18223
18223
  }
18224
18224
  else
18225
- E = n.execCb(O, U, q, E);
18225
+ E = n.execCb(z, U, q, E);
18226
18226
  if (this.map.isDefine && E === void 0 && (N = this.module, N ? E = N.exports : this.usingExports && (E = this.exports)), T)
18227
18227
  return T.requireMap = this.map, T.requireModules = this.map.isDefine ? [this.map.id] : null, T.requireType = this.map.isDefine ? "define" : "require", A(this.error = T);
18228
18228
  } else
18229
18229
  E = U;
18230
- if (this.exports = E, this.map.isDefine && !this.ignore && (p[O] = E, req.onResourceLoad)) {
18230
+ if (this.exports = E, this.map.isDefine && !this.ignore && (p[z] = E, req.onResourceLoad)) {
18231
18231
  var G = [];
18232
18232
  each(this.depMaps, function(H) {
18233
18233
  G.push(H.normalizedMap || H);
18234
18234
  }), req.onResourceLoad(n, this.map, G);
18235
18235
  }
18236
- $(O), this.defined = !0;
18236
+ $(z), this.defined = !0;
18237
18237
  }
18238
18238
  this.defining = !1, this.defined && !this.defineEmitted && (this.defineEmitted = !0, this.emit("defined", this.exports), this.defineEmitComplete = !0);
18239
18239
  }
18240
18240
  }
18241
18241
  },
18242
18242
  callPlugin: function() {
18243
- var T = this.map, N = T.id, O = I(T.prefix);
18244
- this.depMaps.push(O), k(O, "defined", bind(this, function(q) {
18243
+ var T = this.map, N = T.id, z = I(T.prefix);
18244
+ this.depMaps.push(z), k(z, "defined", bind(this, function(q) {
18245
18245
  var E, U, G, H = getOwn(h, this.map.id), W = this.map.name, X = this.map.parentMap ? this.map.parentMap.name : null, J = n.makeRequire(T.parentMap, {
18246
18246
  enableBuildCallback: !0
18247
18247
  });
@@ -18297,11 +18297,11 @@ https://requirejs.org/docs/errors.html#` + e);
18297
18297
  }
18298
18298
  ee && (useInteractive = !0), this.depMaps.push(te), n.completeLoad(Z), J([Z], E);
18299
18299
  }), q.load(T.name, J, E, a);
18300
- })), n.enable(O, this), this.pluginMaps[O.id] = O;
18300
+ })), n.enable(z, this), this.pluginMaps[z.id] = z;
18301
18301
  },
18302
18302
  enable: function() {
18303
18303
  c[this.map.id] = this, this.enabled = !0, this.enabling = !0, each(this.depMaps, bind(this, function(T, N) {
18304
- var O, q, E;
18304
+ var z, q, E;
18305
18305
  if (typeof T == "string") {
18306
18306
  if (T = I(
18307
18307
  T,
@@ -18318,27 +18318,27 @@ https://requirejs.org/docs/errors.html#` + e);
18318
18318
  this.emit("error", U);
18319
18319
  }));
18320
18320
  }
18321
- O = T.id, q = l[O], !hasProp(r, O) && q && !q.enabled && n.enable(T, this);
18321
+ z = T.id, q = l[z], !hasProp(r, z) && q && !q.enabled && n.enable(T, this);
18322
18322
  })), eachProp(this.pluginMaps, bind(this, function(T) {
18323
18323
  var N = getOwn(l, T.id);
18324
18324
  N && !N.enabled && n.enable(T, this);
18325
18325
  })), this.enabling = !1, this.check();
18326
18326
  },
18327
18327
  on: function(T, N) {
18328
- var O = this.events[T];
18329
- O || (O = this.events[T] = []), O.push(N);
18328
+ var z = this.events[T];
18329
+ z || (z = this.events[T] = []), z.push(N);
18330
18330
  },
18331
18331
  emit: function(T, N) {
18332
- each(this.events[T], function(O) {
18333
- O(N);
18332
+ each(this.events[T], function(z) {
18333
+ z(N);
18334
18334
  }), T === "error" && delete this.events[T];
18335
18335
  }
18336
18336
  };
18337
18337
  function j(T) {
18338
18338
  hasProp(p, T[0]) || w(I(T[0], null, !0)).init(T[1], T[2]);
18339
18339
  }
18340
- function R(T, N, O, q) {
18341
- T.detachEvent && !isOpera ? q && T.detachEvent(q, N) : T.removeEventListener(O, N, !1);
18340
+ function R(T, N, z, q) {
18341
+ T.detachEvent && !isOpera ? q && T.detachEvent(q, N) : T.removeEventListener(z, N, !1);
18342
18342
  }
18343
18343
  function B(T) {
18344
18344
  var N = T.currentTarget || T.srcElement;
@@ -18379,7 +18379,7 @@ https://requirejs.org/docs/errors.html#` + e);
18379
18379
  return (U.indexOf("?") === -1 ? "?" : "&") + N;
18380
18380
  };
18381
18381
  }
18382
- var O = a.shim, q = {
18382
+ var z = a.shim, q = {
18383
18383
  paths: !0,
18384
18384
  bundles: !0,
18385
18385
  config: !0,
@@ -18394,8 +18394,8 @@ https://requirejs.org/docs/errors.html#` + e);
18394
18394
  }), T.shim && (eachProp(T.shim, function(E, U) {
18395
18395
  isArray(E) && (E = {
18396
18396
  deps: E
18397
- }), (E.exports || E.init) && !E.exportsFn && (E.exportsFn = n.makeShimExports(E)), O[U] = E;
18398
- }), a.shim = O), T.packages && each(T.packages, function(E) {
18397
+ }), (E.exports || E.init) && !E.exportsFn && (E.exportsFn = n.makeShimExports(E)), z[U] = E;
18398
+ }), a.shim = z), T.packages && each(T.packages, function(E) {
18399
18399
  var U, G;
18400
18400
  E = typeof E == "string" ? { name: E } : E, G = E.name, U = E.location, U && (a.paths[G] = E.location), a.pkgs[G] = E.name + "/" + (E.main || "main").replace(currDirRegExp, "").replace(jsSuffixRegExp, "");
18401
18401
  }), eachProp(l, function(E, U) {
@@ -18404,22 +18404,22 @@ https://requirejs.org/docs/errors.html#` + e);
18404
18404
  },
18405
18405
  makeShimExports: function(T) {
18406
18406
  function N() {
18407
- var O;
18408
- return T.init && (O = T.init.apply(global, arguments)), O || T.exports && getGlobal(T.exports);
18407
+ var z;
18408
+ return T.init && (z = T.init.apply(global, arguments)), z || T.exports && getGlobal(T.exports);
18409
18409
  }
18410
18410
  return N;
18411
18411
  },
18412
18412
  makeRequire: function(T, N) {
18413
18413
  N = N || {};
18414
- function O(q, E, U) {
18414
+ function z(q, E, U) {
18415
18415
  var G, H, W;
18416
- return N.enableBuildCallback && E && isFunction(E) && (E.__requireJsBuild = !0), typeof q == "string" ? isFunction(E) ? A(makeError("requireargs", "Invalid require call"), U) : T && hasProp(r, q) ? r[q](l[T.id]) : req.get ? req.get(n, q, T, O) : (H = I(q, T, !1, !0), G = H.id, hasProp(p, G) ? p[G] : A(makeError("notloaded", 'Module name "' + G + '" has not been loaded yet for context: ' + e + (T ? "" : ". Use require([])")))) : (M(), n.nextTick(function() {
18416
+ return N.enableBuildCallback && E && isFunction(E) && (E.__requireJsBuild = !0), typeof q == "string" ? isFunction(E) ? A(makeError("requireargs", "Invalid require call"), U) : T && hasProp(r, q) ? r[q](l[T.id]) : req.get ? req.get(n, q, T, z) : (H = I(q, T, !1, !0), G = H.id, hasProp(p, G) ? p[G] : A(makeError("notloaded", 'Module name "' + G + '" has not been loaded yet for context: ' + e + (T ? "" : ". Use require([])")))) : (M(), n.nextTick(function() {
18417
18417
  M(), W = w(I(null, T)), W.skipMap = N.skipMap, W.init(q, E, U, {
18418
18418
  enabled: !0
18419
- }), z();
18420
- }), O);
18419
+ }), O();
18420
+ }), z);
18421
18421
  }
18422
- return mixin(O, {
18422
+ return mixin(z, {
18423
18423
  isBrowser,
18424
18424
  /**
18425
18425
  * Converts a module name + .extension into an URL path.
@@ -18440,13 +18440,13 @@ https://requirejs.org/docs/errors.html#` + e);
18440
18440
  specified: function(q) {
18441
18441
  return q = I(q, T, !1, !0).id, hasProp(p, q) || hasProp(l, q);
18442
18442
  }
18443
- }), T || (O.undef = function(q) {
18443
+ }), T || (z.undef = function(q) {
18444
18444
  D();
18445
18445
  var E = I(q, T, !0), U = getOwn(l, q);
18446
18446
  U.undefed = !0, b(q), delete p[q], delete m[E.url], delete u[q], eachReverse(d, function(G, H) {
18447
18447
  G[0] === q && d.splice(H, 1);
18448
18448
  }), delete n.defQueueMap[q], U && (U.events.defined && (u[q] = U.events), $(q));
18449
- }), O;
18449
+ }), z;
18450
18450
  },
18451
18451
  /**
18452
18452
  * Called to enable a module if it is still in the registry
@@ -18465,15 +18465,15 @@ https://requirejs.org/docs/errors.html#` + e);
18465
18465
  * @param {String} moduleName the name of the module to potentially complete.
18466
18466
  */
18467
18467
  completeLoad: function(T) {
18468
- var N, O, q, E = getOwn(a.shim, T) || {}, U = E.exports;
18468
+ var N, z, q, E = getOwn(a.shim, T) || {}, U = E.exports;
18469
18469
  for (D(); d.length; ) {
18470
- if (O = d.shift(), O[0] === null) {
18471
- if (O[0] = T, N)
18470
+ if (z = d.shift(), z[0] === null) {
18471
+ if (z[0] = T, N)
18472
18472
  break;
18473
18473
  N = !0;
18474
18474
  } else
18475
- O[0] === T && (N = !0);
18476
- j(O);
18475
+ z[0] === T && (N = !0);
18476
+ j(z);
18477
18477
  }
18478
18478
  if (n.defQueueMap = {}, q = getOwn(l, T), !N && !hasProp(p, T) && q && !q.inited) {
18479
18479
  if (a.enforceDefine && (!U || !getGlobal(U)))
@@ -18485,7 +18485,7 @@ https://requirejs.org/docs/errors.html#` + e);
18485
18485
  ));
18486
18486
  j([T, E.deps || [], E.exportsFn]);
18487
18487
  }
18488
- z();
18488
+ O();
18489
18489
  },
18490
18490
  /**
18491
18491
  * Converts a module name to a file path. Supports cases where
@@ -18494,10 +18494,10 @@ https://requirejs.org/docs/errors.html#` + e);
18494
18494
  * it is assumed to have already been normalized. This is an
18495
18495
  * internal API, not a public one. Use toUrl for the public API.
18496
18496
  */
18497
- nameToUrl: function(T, N, O) {
18497
+ nameToUrl: function(T, N, z) {
18498
18498
  var q, E, U, G, H, W, X, J = getOwn(a.pkgs, T);
18499
18499
  if (J && (T = J), X = getOwn(h, T), X)
18500
- return n.nameToUrl(X, N, O);
18500
+ return n.nameToUrl(X, N, z);
18501
18501
  if (req.jsExtRegExp.test(T))
18502
18502
  H = T + (N || "");
18503
18503
  else {
@@ -18506,7 +18506,7 @@ https://requirejs.org/docs/errors.html#` + e);
18506
18506
  isArray(W) && (W = W[0]), E.splice(0, U, W);
18507
18507
  break;
18508
18508
  }
18509
- H = E.join("/"), H += N || (/^data\:|^blob\:|\?/.test(H) || O ? "" : ".js"), H = (H.charAt(0) === "/" || H.match(/^[\w\+\.\-]+:/) ? "" : a.baseUrl) + H;
18509
+ H = E.join("/"), H += N || (/^data\:|^blob\:|\?/.test(H) || z ? "" : ".js"), H = (H.charAt(0) === "/" || H.match(/^[\w\+\.\-]+:/) ? "" : a.baseUrl) + H;
18510
18510
  }
18511
18511
  return a.urlArgs && !/^blob\:/.test(H) ? H + a.urlArgs(T, H) : H;
18512
18512
  },
@@ -18522,8 +18522,8 @@ https://requirejs.org/docs/errors.html#` + e);
18522
18522
  *
18523
18523
  * @private
18524
18524
  */
18525
- execCb: function(T, N, O, q) {
18526
- return N.apply(q, O);
18525
+ execCb: function(T, N, z, q) {
18526
+ return N.apply(q, z);
18527
18527
  },
18528
18528
  /**
18529
18529
  * callback for script loads, used to check status of loading.
@@ -18544,13 +18544,13 @@ https://requirejs.org/docs/errors.html#` + e);
18544
18544
  onScriptError: function(T) {
18545
18545
  var N = B(T);
18546
18546
  if (!y(N.id)) {
18547
- var O = [];
18547
+ var z = [];
18548
18548
  return eachProp(l, function(q, E) {
18549
18549
  E.indexOf("_@r") !== 0 && each(q.depMaps, function(U) {
18550
18550
  if (U.id === N.id)
18551
- return O.push(E), !0;
18551
+ return z.push(E), !0;
18552
18552
  });
18553
- }), A(makeError("scripterror", 'Script error for "' + N.id + (O.length ? '", needed by: ' + O.join(", ") : '"'), T, [N.id]));
18553
+ }), A(makeError("scripterror", 'Script error for "' + N.id + (z.length ? '", needed by: ' + z.join(", ") : '"'), T, [N.id]));
18554
18554
  }
18555
18555
  }
18556
18556
  }, n.require = n.makeRequire(), n;
@@ -19092,10 +19092,10 @@ const useCollectionManager_deprecated = (e) => {
19092
19092
  [t, p]
19093
19093
  ), v = useCallback(
19094
19094
  (R, B = !1, M) => {
19095
- var O;
19095
+ var z;
19096
19096
  if (!R)
19097
19097
  return [];
19098
- const T = (O = p(M)) == null ? void 0 : O.getCollection(R);
19098
+ const T = (z = p(M)) == null ? void 0 : z.getCollection(R);
19099
19099
  return (T == null ? void 0 : T.getChildrenCollections(B)) || [];
19100
19100
  },
19101
19101
  [t, p]
@@ -19111,7 +19111,7 @@ const useCollectionManager_deprecated = (e) => {
19111
19111
  const {
19112
19112
  association: T = !1,
19113
19113
  cached: N = {},
19114
- collectionNames: O = [R],
19114
+ collectionNames: z = [R],
19115
19115
  maxDepth: q = 1,
19116
19116
  allowAllTypes: E = !1,
19117
19117
  exceptInterfaces: U = [],
@@ -19119,7 +19119,7 @@ const useCollectionManager_deprecated = (e) => {
19119
19119
  usePrefix: H = !1,
19120
19120
  dataSource: W
19121
19121
  } = M || {};
19122
- if (O.length - 1 > q)
19122
+ if (z.length - 1 > q)
19123
19123
  return;
19124
19124
  if (N[R])
19125
19125
  return _.cloneDeep(N[R]);
@@ -19132,10 +19132,10 @@ const useCollectionManager_deprecated = (e) => {
19132
19132
  value: H && G ? `${G}.${Q.name}` : Q.name,
19133
19133
  label: f((te = Q == null ? void 0 : Q.uiSchema) == null ? void 0 : te.title) || Q.name
19134
19134
  }, Q);
19135
- return T && Q.target && (Z.children = O.includes(Q.target) ? [] : w(Q.target, B, F(x({}, M), {
19135
+ return T && Q.target && (Z.children = z.includes(Q.target) ? [] : w(Q.target, B, F(x({}, M), {
19136
19136
  cached: N,
19137
19137
  dataSource: W,
19138
- collectionNames: [...O, Q.target],
19138
+ collectionNames: [...z, Q.target],
19139
19139
  prefixFieldValue: H ? G ? `${G}.${Q.name}` : Q.name : "",
19140
19140
  usePrefix: H
19141
19141
  })), !((ee = Z.children) != null && ee.length)) ? null : Z;
@@ -19170,7 +19170,7 @@ const useCollectionManager_deprecated = (e) => {
19170
19170
  return (B = $(R.interface)) == null ? void 0 : B.titleUsable;
19171
19171
  },
19172
19172
  [$]
19173
- ), z = useCallback(
19173
+ ), O = useCallback(
19174
19174
  (R, B, M) => {
19175
19175
  var T, N;
19176
19176
  return (N = (T = p(M)) == null ? void 0 : T.getCollection(B)) == null ? void 0 : N.getParentCollectionFields(R);
@@ -19188,7 +19188,7 @@ const useCollectionManager_deprecated = (e) => {
19188
19188
  getTemplate: j,
19189
19189
  getInterface: $,
19190
19190
  getCollections: d,
19191
- getParentCollectionFields: z,
19191
+ getParentCollectionFields: O,
19192
19192
  getInheritCollections: y,
19193
19193
  getChildrenCollections: v,
19194
19194
  refreshCM: g,
@@ -19428,7 +19428,7 @@ const useUserVariable = ({
19428
19428
  collectionField: e,
19429
19429
  noDisabled: r,
19430
19430
  targetFieldSchema: i
19431
- }), { urlSearchParamsSettings: L, shouldDisplay: z } = useURLSearchParamsVariable();
19431
+ }), { urlSearchParamsSettings: L, shouldDisplay: O } = useURLSearchParamsVariable();
19432
19432
  return useMemo(() => [
19433
19433
  u,
19434
19434
  d,
@@ -19441,7 +19441,7 @@ const useUserVariable = ({
19441
19441
  $ && D,
19442
19442
  w && I,
19443
19443
  A && k,
19444
- z && L
19444
+ O && L
19445
19445
  ].filter(Boolean).filter(l), [
19446
19446
  u,
19447
19447
  d,
@@ -19459,7 +19459,7 @@ const useUserVariable = ({
19459
19459
  D,
19460
19460
  w,
19461
19461
  I,
19462
- z,
19462
+ O,
19463
19463
  L
19464
19464
  ]);
19465
19465
  }, RemoveConditionContext = createContext(null);
@@ -21523,7 +21523,7 @@ const SchemaSettingsProvider = (e) => {
21523
21523
  } catch (B) {
21524
21524
  console.error(B);
21525
21525
  }
21526
- }), [D, o]), z = useCallback(() => V(void 0, null, function* () {
21526
+ }), [D, o]), O = useCallback(() => V(void 0, null, function* () {
21527
21527
  !g && (a != null && a["x-uid"]) && (S["x-action-settings"].schemaUid = a["x-uid"], y.emit("patch", { schema: S }), yield I.resource("uiSchemas").insert({ values: a }), f(a["x-uid"])), typeof i == "function" && (i == null || i()), b.setVisible(!1), h(!0);
21528
21528
  }), [I, b, y, S, a, g]), j = useCallback((B) => B.stopPropagation(), []);
21529
21529
  return /* @__PURE__ */ jsxs(zIndexContext.Provider, { value: A, children: [
@@ -21532,7 +21532,7 @@ const SchemaSettingsProvider = (e) => {
21532
21532
  F(x({
21533
21533
  title: v(t)
21534
21534
  }, p), {
21535
- onClick: z,
21535
+ onClick: O,
21536
21536
  onKeyDown: j,
21537
21537
  children: e.children || e.title
21538
21538
  })
@@ -21566,7 +21566,7 @@ const SchemaSettingsProvider = (e) => {
21566
21566
  });
21567
21567
  SchemaSettingsActionModalItem.displayName = "SchemaSettingsActionModalItem";
21568
21568
  const SchemaSettingsModalItem = (e) => {
21569
- const O = e, {
21569
+ const z = e, {
21570
21570
  hidden: t,
21571
21571
  title: o,
21572
21572
  components: n,
@@ -21578,7 +21578,7 @@ const SchemaSettingsModalItem = (e) => {
21578
21578
  width: u = "fit-content",
21579
21579
  noRecord: d = !1,
21580
21580
  ModalContextProvider: p = (q) => /* @__PURE__ */ jsx(Fragment, { children: q.children })
21581
- } = O, m = K(O, [
21581
+ } = z, m = K(z, [
21582
21582
  "hidden",
21583
21583
  "title",
21584
21584
  "components",
@@ -21590,7 +21590,7 @@ const SchemaSettingsModalItem = (e) => {
21590
21590
  "width",
21591
21591
  "noRecord",
21592
21592
  "ModalContextProvider"
21593
- ]), h = useContext(SchemaOptionsContext), g = useCollection_deprecated(), f = useAPIClient(), C = useApp(), { theme: S } = useGlobalTheme(), b = useBlockRequestContext(), y = useFormActiveFields(), { locale: v } = useContext(ConfigProvider.ConfigContext), I = useDataSourceManager(), w = useDataSourceKey(), k = useCollectionRecord(), { association: A } = useDataBlockProps() || {}, D = useFormBlockContext(), $ = useBlockContext(), { getOperators: L } = useOperators(), z = useLocationSearch(), j = useVariables(), { formValue: R, collection: B, parent: M } = useSubFormValue(), T = useCurrentPopupRecord(), N = useParentPopupRecord();
21593
+ ]), h = useContext(SchemaOptionsContext), g = useCollection_deprecated(), f = useAPIClient(), C = useApp(), { theme: S } = useGlobalTheme(), b = useBlockRequestContext(), y = useFormActiveFields(), { locale: v } = useContext(ConfigProvider.ConfigContext), I = useDataSourceManager(), w = useDataSourceKey(), k = useCollectionRecord(), { association: A } = useDataBlockProps() || {}, D = useFormBlockContext(), $ = useBlockContext(), { getOperators: L } = useOperators(), O = useLocationSearch(), j = useVariables(), { formValue: R, collection: B, parent: M } = useSubFormValue(), T = useCurrentPopupRecord(), N = useParentPopupRecord();
21594
21594
  return t ? null : /* @__PURE__ */ jsx(
21595
21595
  SchemaSettingsItem,
21596
21596
  F(x({
@@ -21614,7 +21614,7 @@ const SchemaSettingsModalItem = (e) => {
21614
21614
  {
21615
21615
  name: "form",
21616
21616
  getActiveFieldsName: y == null ? void 0 : y.getActiveFieldsName,
21617
- children: /* @__PURE__ */ jsx(LocationSearchContext.Provider, { value: z, children: /* @__PURE__ */ jsx(BlockRequestContext_deprecated.Provider, { value: b, children: /* @__PURE__ */ jsx(DataSourceApplicationProvider, { dataSourceManager: I, dataSource: w, children: /* @__PURE__ */ jsx(
21617
+ children: /* @__PURE__ */ jsx(LocationSearchContext.Provider, { value: O, children: /* @__PURE__ */ jsx(BlockRequestContext_deprecated.Provider, { value: b, children: /* @__PURE__ */ jsx(DataSourceApplicationProvider, { dataSourceManager: I, dataSource: w, children: /* @__PURE__ */ jsx(
21618
21618
  AssociationOrCollectionProvider,
21619
21619
  {
21620
21620
  allowNull: !0,
@@ -21790,10 +21790,10 @@ const SchemaSettingsModalItem = (e) => {
21790
21790
  }),
21791
21791
  [o, a, l, S, m, h, u, p, w, r]
21792
21792
  ), D = useMemo(() => ({ ArrayCollapse: ArrayCollapse$2, FormLayout }), []), $ = useCallback(
21793
- (z) => {
21793
+ (O) => {
21794
21794
  var T;
21795
21795
  const j = [];
21796
- for (const N of z.fieldReaction.rules)
21796
+ for (const N of O.fieldReaction.rules)
21797
21797
  j.push(_.pickBy(N, _.identity));
21798
21798
  const R = S["x-component"] === "BlockTemplate" && ((T = S["x-component-props"]) == null ? void 0 : T.templateId), M = {
21799
21799
  "x-uid": R && d(R).uid || S["x-uid"]
@@ -22476,8 +22476,8 @@ const useColumnSchema$1 = () => {
22476
22476
  (n.componentProps.picker || "date") !== D.picker && !m && n.value && (n.value = void 0, n.initialValue = void 0, o.default = void 0, $.default = void 0), $["x-component-props"] = n.componentProps || {}, o["x-component-props"] = x(x({}, n.componentProps || {}), D), $["x-component-props"] = o["x-component-props"], n.componentProps = o["x-component-props"];
22477
22477
  const L = n.path.entire.split(".");
22478
22478
  L.pop();
22479
- const z = L.join(".");
22480
- n.query(`${z}.*[0:].${o.name}`).forEach((j) => {
22479
+ const O = L.join(".");
22480
+ n.query(`${O}.*[0:].${o.name}`).forEach((j) => {
22481
22481
  j.props.name === o.name && ((n.componentProps.picker || "date") !== D.picker && !m && (j.value = void 0, j.initialValue = void 0), j.setComponentProps(x({}, D)));
22482
22482
  }), r.emit("patch", {
22483
22483
  schema: $
@@ -22499,7 +22499,7 @@ const getActionContext = (e) => {
22499
22499
  var o;
22500
22500
  return ((o = e.fieldSchema) == null ? void 0 : o["x-action-context"]) || {};
22501
22501
  }, SchemaSettingsDefaultValue = function e(t) {
22502
- var T, N, O;
22502
+ var T, N, z;
22503
22503
  const o = useFieldSchema(), n = (T = t == null ? void 0 : t.fieldSchema) != null ? T : o, r = useField(), { dn: i } = useDesignable(), { t: a } = useTranslation(), l = useActionContext(), c = getActionContext(l).collection;
22504
22504
  let u;
22505
22505
  const { getField: d } = useCollection_deprecated(), { getCollectionJoinField: p, getCollectionFields: m, getAllCollectionsInheritChain: h } = useCollectionManager_deprecated(), g = useVariables(), f = useLocalVariables(), C = useCollection_deprecated(), S = useRecord(), { form: b } = useFormBlockContext(), { getFields: y } = useCollectionFilterOptionsV2(C), { isInSubForm: v, isInSubTable: I } = useFlag() || {}, { name: w } = C, k = useMemo(
@@ -22507,9 +22507,9 @@ const getActionContext = (e) => {
22507
22507
  [n, p, d]
22508
22508
  ), A = _.omit(n, "required");
22509
22509
  k != null && k.target && (u = p(
22510
- `${k.target}.${((O = (N = n["x-component-props"]) == null ? void 0 : N.fieldNames) == null ? void 0 : O.label) || "id"}`
22510
+ `${k.target}.${((z = (N = n["x-component-props"]) == null ? void 0 : N.fieldNames) == null ? void 0 : z.label) || "id"}`
22511
22511
  ));
22512
- const D = (k == null ? void 0 : k.interface) === "m2o" && findParentFieldSchema(n), $ = D && p(D == null ? void 0 : D["x-collection-field"]), L = useTableBlockContext(), z = (k == null ? void 0 : k.interface) === "m2m" || ($ == null ? void 0 : $.type) === "hasMany" && (k == null ? void 0 : k.interface) === "m2o", j = useCallback(
22512
+ const D = (k == null ? void 0 : k.interface) === "m2o" && findParentFieldSchema(n), $ = D && p(D == null ? void 0 : D["x-collection-field"]), L = useTableBlockContext(), O = (k == null ? void 0 : k.interface) === "m2m" || ($ == null ? void 0 : $.type) === "hasMany" && (k == null ? void 0 : k.interface) === "m2o", j = useCallback(
22513
22513
  (q) => {
22514
22514
  const E = q.find((G) => G.value === "$nForm"), U = m(w);
22515
22515
  return !(U != null && U.length) && E && (E.children = formatVariableScop(y())), q;
@@ -22534,7 +22534,7 @@ const getActionContext = (e) => {
22534
22534
  "x-component": "VariableInput",
22535
22535
  "x-component-props": F(x({}, (n == null ? void 0 : n["x-component-props"]) || {}), {
22536
22536
  collectionField: k,
22537
- contextCollectionName: z ? c : "",
22537
+ contextCollectionName: O ? c : "",
22538
22538
  schema: k == null ? void 0 : k.uiSchema,
22539
22539
  targetFieldSchema: n,
22540
22540
  className: defaultInputStyle,
@@ -22582,7 +22582,7 @@ const getActionContext = (e) => {
22582
22582
  A,
22583
22583
  b,
22584
22584
  h,
22585
- z,
22585
+ O,
22586
22586
  f,
22587
22587
  S,
22588
22588
  j,
@@ -23357,8 +23357,8 @@ const useGetFilterOptions = () => {
23357
23357
  };
23358
23358
  });
23359
23359
  }, TableColumnDesigner$1 = (e) => {
23360
- var L, z, j, R, B, M, T, N, O, q, E, U;
23361
- const { uiSchema: t, fieldSchema: o, collectionField: n } = e, { form: r } = useFormBlockContext(), { getInterface: i, getCollection: a } = useCollectionManager_deprecated(), l = useField(), { t: c } = useTranslation(), u = useFieldSchema(), { dn: d } = useDesignable(), p = ((L = o == null ? void 0 : o["x-component-props"]) == null ? void 0 : L.fieldNames) || ((z = t == null ? void 0 : t["x-component-props"]) == null ? void 0 : z.fieldNames), m = useLabelFields$1((j = n == null ? void 0 : n.target) != null ? j : n == null ? void 0 : n.targetCollection), h = useColorFields((R = n == null ? void 0 : n.target) != null ? R : n == null ? void 0 : n.targetCollection), g = i(n == null ? void 0 : n.interface), f = a(n == null ? void 0 : n.target), C = isFileCollection$2(f), S = ["QuickEdit", "FormItem"].includes(o["x-decorator"]), { currentMode: b } = useAssociationFieldContext(), { isAllowToSetDefaultValue: y } = useIsAllowToSetDefaultValue({ collectionField: n, fieldSchema: o }), v = ["datetime", "createdAt", "updatedAt"].includes(n == null ? void 0 : n.interface), I = ["obo", "oho", "o2o", "o2m", "m2m", "m2o", "snapshot"].includes(
23360
+ var L, O, j, R, B, M, T, N, z, q, E, U;
23361
+ const { uiSchema: t, fieldSchema: o, collectionField: n } = e, { form: r } = useFormBlockContext(), { getInterface: i, getCollection: a } = useCollectionManager_deprecated(), l = useField(), { t: c } = useTranslation(), u = useFieldSchema(), { dn: d } = useDesignable(), p = ((L = o == null ? void 0 : o["x-component-props"]) == null ? void 0 : L.fieldNames) || ((O = t == null ? void 0 : t["x-component-props"]) == null ? void 0 : O.fieldNames), m = useLabelFields$1((j = n == null ? void 0 : n.target) != null ? j : n == null ? void 0 : n.targetCollection), h = useColorFields((R = n == null ? void 0 : n.target) != null ? R : n == null ? void 0 : n.targetCollection), g = i(n == null ? void 0 : n.interface), f = a(n == null ? void 0 : n.target), C = isFileCollection$2(f), S = ["QuickEdit", "FormItem"].includes(o["x-decorator"]), { currentMode: b } = useAssociationFieldContext(), { isAllowToSetDefaultValue: y } = useIsAllowToSetDefaultValue({ collectionField: n, fieldSchema: o }), v = ["datetime", "createdAt", "updatedAt"].includes(n == null ? void 0 : n.interface), I = ["obo", "oho", "o2o", "o2m", "m2m", "m2o", "snapshot"].includes(
23362
23362
  n == null ? void 0 : n.interface
23363
23363
  ), w = useFieldModeOptions({ fieldSchema: o }), k = ((B = o == null ? void 0 : o["x-component-props"]) == null ? void 0 : B.mode) || "Select";
23364
23364
  let A = "editable";
@@ -23400,7 +23400,7 @@ const useGetFilterOptions = () => {
23400
23400
  SchemaSettingsDataScope,
23401
23401
  {
23402
23402
  collectionName: n == null ? void 0 : n.target,
23403
- defaultFilter: ((O = (N = (T = o == null ? void 0 : o["x-component-props"]) == null ? void 0 : T.service) == null ? void 0 : N.params) == null ? void 0 : O.filter) || {},
23403
+ defaultFilter: ((z = (N = (T = o == null ? void 0 : o["x-component-props"]) == null ? void 0 : T.service) == null ? void 0 : N.params) == null ? void 0 : z.filter) || {},
23404
23404
  form: r,
23405
23405
  onSubmit: ({ filter: G }) => {
23406
23406
  var W, X;
@@ -24594,8 +24594,8 @@ function useCollectValuesToSubmit() {
24594
24594
  }), b = {}, y = Object.keys(f).map((D) => V(this, null, function* () {
24595
24595
  const $ = f[D], L = i(D);
24596
24596
  if (isVariable($)) {
24597
- const { value: z } = (yield p == null ? void 0 : p.parseVariable($, m)) || {};
24598
- z != null && (b[D] = transformVariableValue(z, { targetCollectionField: L }));
24597
+ const { value: O } = (yield p == null ? void 0 : p.parseVariable($, m)) || {};
24598
+ O != null && (b[D] = transformVariableValue(O, { targetCollectionField: L }));
24599
24599
  } else
24600
24600
  $ != null && $ !== "" && (b[D] = $);
24601
24601
  }));
@@ -24630,11 +24630,11 @@ const useCreateActionProps = () => {
24630
24630
  var j;
24631
24631
  const { onSuccess: v, skipValidator: I, triggerWorkflows: w } = (j = u == null ? void 0 : u["x-action-settings"]) != null ? j : {}, { manualClose: k, redirecting: A, redirectTo: D, successMessage: $, actionAfterSuccess: L } = v || {};
24632
24632
  I || (yield o.submit());
24633
- const z = yield f();
24633
+ const O = yield f();
24634
24634
  d.data = n.data || {}, d.data.loading = !0;
24635
24635
  try {
24636
24636
  const R = yield r[C]({
24637
- values: z,
24637
+ values: O,
24638
24638
  filterKeys: S,
24639
24639
  filterByTk: e,
24640
24640
  // TODO(refactor): should change to inject by plugin
@@ -24663,14 +24663,14 @@ const useCreateActionProps = () => {
24663
24663
  return {
24664
24664
  onClick() {
24665
24665
  return V(this, null, function* () {
24666
- var N, O, q, E, U, G;
24666
+ var N, z, q, E, U, G;
24667
24667
  const k = u.map((H) => H.name), {
24668
24668
  assignedValues: A = {},
24669
24669
  onSuccess: D,
24670
24670
  overwriteValues: $,
24671
24671
  skipValidator: L,
24672
- triggerWorkflows: z
24673
- } = (N = l == null ? void 0 : l["x-action-settings"]) != null ? N : {}, j = (O = i == null ? void 0 : i["x-component-props"]) == null ? void 0 : O.addChild, { successMessage: R } = D || {}, B = {}, M = Object.keys(A).map((H) => V(this, null, function* () {
24672
+ triggerWorkflows: O
24673
+ } = (N = l == null ? void 0 : l["x-action-settings"]) != null ? N : {}, j = (z = i == null ? void 0 : i["x-component-props"]) == null ? void 0 : z.addChild, { successMessage: R } = D || {}, B = {}, M = Object.keys(A).map((H) => V(this, null, function* () {
24674
24674
  const W = A[H], X = d(H);
24675
24675
  if (isVariable(W)) {
24676
24676
  const { value: J } = (yield C == null ? void 0 : C.parseVariable(W, S)) || {};
@@ -24698,7 +24698,7 @@ const useCreateActionProps = () => {
24698
24698
  values: x(x(x({}, T), $), B),
24699
24699
  filterKeys: v,
24700
24700
  // TODO(refactor): should change to inject by plugin
24701
- triggerWorkflows: z != null && z.length ? z.map((W) => [W.workflowKey, W.context].filter(Boolean).join("!")).join(",") : void 0
24701
+ triggerWorkflows: O != null && O.length ? O.map((W) => [W.workflowKey, W.context].filter(Boolean).join("!")).join(",") : void 0
24702
24702
  });
24703
24703
  if (c.data.loading = !1, c.data.data = H, (G = (U = n == null ? void 0 : n.service) == null ? void 0 : U.refresh) == null || G.call(U), r == null || r(!1), a == null || a(!0), !R)
24704
24704
  return;
@@ -24805,13 +24805,13 @@ const useCreateActionProps = () => {
24805
24805
  return {
24806
24806
  onClick(f, C) {
24807
24807
  return V(this, null, function* () {
24808
- var z, j, R;
24808
+ var O, j, R;
24809
24809
  const {
24810
24810
  assignedValues: S = {},
24811
24811
  onSuccess: b,
24812
24812
  skipValidator: y,
24813
24813
  triggerWorkflows: v
24814
- } = (z = r == null ? void 0 : r["x-action-settings"]) != null ? z : {}, { manualClose: I, redirecting: w, redirectTo: k, successMessage: A, actionAfterSuccess: D } = b || {}, $ = {}, L = Object.keys(S).map((B) => V(this, null, function* () {
24814
+ } = (O = r == null ? void 0 : r["x-action-settings"]) != null ? O : {}, { manualClose: I, redirecting: w, redirectTo: k, successMessage: A, actionAfterSuccess: D } = b || {}, $ = {}, L = Object.keys(S).map((B) => V(this, null, function* () {
24815
24815
  const M = S[B], T = m(B);
24816
24816
  if (isVariable(M)) {
24817
24817
  const { value: N } = (yield u == null ? void 0 : u.parseVariable(M, d)) || {};
@@ -24846,7 +24846,7 @@ const useCreateActionProps = () => {
24846
24846
  assignedValues: A = {},
24847
24847
  onSuccess: D,
24848
24848
  updateMode: $
24849
- } = (N = i == null ? void 0 : i["x-action-settings"]) != null ? N : {}, { manualClose: L, redirecting: z, redirectTo: j, successMessage: R, actionAfterSuccess: B } = D || {};
24849
+ } = (N = i == null ? void 0 : i["x-action-settings"]) != null ? N : {}, { manualClose: L, redirecting: O, redirectTo: j, successMessage: R, actionAfterSuccess: B } = D || {};
24850
24850
  m.data = e.data || {}, m.data.loading = !0;
24851
24851
  const M = {}, T = Object.keys(A).map((q) => V(this, null, function* () {
24852
24852
  const E = A[q], U = C(q);
@@ -24856,7 +24856,7 @@ const useCreateActionProps = () => {
24856
24856
  } else
24857
24857
  E != null && E !== "" && (M[q] = E);
24858
24858
  }));
24859
- yield Promise.all(T), (B === "previous" || !B && z !== !0) && (b == null || b(!1)), h.confirm({
24859
+ yield Promise.all(T), (B === "previous" || !B && O !== !0) && (b == null || b(!1)), h.confirm({
24860
24860
  title: p("Bulk update"),
24861
24861
  content: p($ === "selected" ? "Update selected data?" : "Update all data?"),
24862
24862
  onOk() {
@@ -24884,9 +24884,9 @@ const useCreateActionProps = () => {
24884
24884
  t instanceof TableFieldResource || (W = (H = o == null ? void 0 : o.service) == null ? void 0 : H.refresh) == null || W.call(H), R && (L ? h.success({
24885
24885
  title: d(R),
24886
24886
  onOk: () => V(this, null, function* () {
24887
- (z && !B || B === "redirect") && j && (isURL(j) ? window.location.href = j : u(j));
24887
+ (O && !B || B === "redirect") && j && (isURL(j) ? window.location.href = j : u(j));
24888
24888
  })
24889
- }) : (message.success(d(R)), (z && !B || B === "redirect") && j && (isURL(j) ? window.location.href = j : u(j))));
24889
+ }) : (message.success(d(R)), (O && !B || B === "redirect") && j && (isURL(j) ? window.location.href = j : u(j))));
24890
24890
  });
24891
24891
  },
24892
24892
  onCancel() {
@@ -24905,7 +24905,7 @@ const useCreateActionProps = () => {
24905
24905
  onClick() {
24906
24906
  return V(this, null, function* () {
24907
24907
  var q, E, U, G;
24908
- const { skipValidator: w, onSuccess: k, requestSettings: A } = (q = n == null ? void 0 : n["x-action-settings"]) != null ? q : {}, { manualClose: D, redirecting: $, redirectTo: L, successMessage: z, actionAfterSuccess: j } = k || {}, R = n == null ? void 0 : n["x-action"];
24908
+ const { skipValidator: w, onSuccess: k, requestSettings: A } = (q = n == null ? void 0 : n["x-action-settings"]) != null ? q : {}, { manualClose: D, redirecting: $, redirectTo: L, successMessage: O, actionAfterSuccess: j } = k || {}, R = n == null ? void 0 : n["x-action"];
24909
24909
  if (!A.url)
24910
24910
  return;
24911
24911
  w !== !0 && R === "customize:form:request" && (yield i.submit());
@@ -24922,7 +24922,7 @@ const useCreateActionProps = () => {
24922
24922
  });
24923
24923
  Object.assign(T, W);
24924
24924
  }
24925
- const O = {
24925
+ const z = {
24926
24926
  url: renderTemplate(A.url, { currentRecord: m, currentUser: g }),
24927
24927
  method: A.method,
24928
24928
  headers: parse(B)({ currentRecord: m, currentUser: g }),
@@ -24931,12 +24931,12 @@ const useCreateActionProps = () => {
24931
24931
  };
24932
24932
  f.data = c.data || {}, f.data.loading = !0;
24933
24933
  try {
24934
- yield e.request(x({}, O)), f.data.loading = !1, u instanceof TableFieldResource || (U = (E = d == null ? void 0 : d.service) == null ? void 0 : E.refresh) == null || U.call(E), (G = p == null ? void 0 : p.refresh) == null || G.call(p), R === "customize:form:request" && (j === "previous" || !j && $ !== !0) && (S == null || S(!1)), z || (message.success(C("Saved successfully")), yield resetFormCorrectly(i), ($ && !j || j === "redirect") && L && (isURL(L) ? window.location.href = L : t(L))), D ? b.success({
24935
- title: r(z),
24934
+ yield e.request(x({}, z)), f.data.loading = !1, u instanceof TableFieldResource || (U = (E = d == null ? void 0 : d.service) == null ? void 0 : E.refresh) == null || U.call(E), (G = p == null ? void 0 : p.refresh) == null || G.call(p), R === "customize:form:request" && (j === "previous" || !j && $ !== !0) && (S == null || S(!1)), O || (message.success(C("Saved successfully")), yield resetFormCorrectly(i), ($ && !j || j === "redirect") && L && (isURL(L) ? window.location.href = L : t(L))), D ? b.success({
24935
+ title: r(O),
24936
24936
  onOk: () => V(this, null, function* () {
24937
24937
  ($ && !j || j === "redirect") && L && (isURL(L) ? window.location.href = L : t(L));
24938
24938
  })
24939
- }) : message.success(r(z));
24939
+ }) : message.success(r(O));
24940
24940
  } finally {
24941
24941
  f.data.loading = !1;
24942
24942
  }
@@ -24955,7 +24955,7 @@ const useCreateActionProps = () => {
24955
24955
  overwriteValues: D,
24956
24956
  skipValidator: $,
24957
24957
  triggerWorkflows: L
24958
- } = (E = l == null ? void 0 : l["x-action-settings"]) != null ? E : {}, { manualClose: z, redirecting: j, redirectTo: R, successMessage: B, actionAfterSuccess: M } = A || {}, T = {}, N = Object.keys(k).map((U) => V(this, null, function* () {
24958
+ } = (E = l == null ? void 0 : l["x-action-settings"]) != null ? E : {}, { manualClose: O, redirecting: j, redirectTo: R, successMessage: B, actionAfterSuccess: M } = A || {}, T = {}, N = Object.keys(k).map((U) => V(this, null, function* () {
24959
24959
  const G = k[U], H = d(U);
24960
24960
  if (isVariable(G)) {
24961
24961
  const { value: W } = (yield S == null ? void 0 : S.parseVariable(G, b)) || {};
@@ -24964,11 +24964,11 @@ const useCreateActionProps = () => {
24964
24964
  G != null && G !== "" && (T[U] = G);
24965
24965
  }));
24966
24966
  yield Promise.all(N), $ || (yield e.submit());
24967
- const O = u.map((U) => U.name), q = getFormValues({
24967
+ const z = u.map((U) => U.name), q = getFormValues({
24968
24968
  filterByTk: t,
24969
24969
  field: o,
24970
24970
  form: e,
24971
- fieldNames: O,
24971
+ fieldNames: z,
24972
24972
  getField: d,
24973
24973
  resource: n,
24974
24974
  actionFields: (y == null ? void 0 : y("form")) || []
@@ -24984,7 +24984,7 @@ const useCreateActionProps = () => {
24984
24984
  triggerWorkflows: L != null && L.length ? L.map((U) => [U.workflowKey, U.context].filter(Boolean).join("!")).join(",") : void 0
24985
24985
  })), h.data.loading = !1, w && (w == null || w()), (M === "previous" || !M && j !== !0) && (i == null || i(!1)), a == null || a(!1), !B)
24986
24986
  return;
24987
- z ? f.success({
24987
+ O ? f.success({
24988
24988
  title: m(B),
24989
24989
  onOk: () => V(this, null, function* () {
24990
24990
  yield e.reset(), (j && !M || M === "redirect") && R && (isURL(R) ? window.location.href = R : c(R));
@@ -25195,7 +25195,7 @@ const useCreateActionProps = () => {
25195
25195
  var o;
25196
25196
  return ["select", "multipleSelect", "checkbox", "checkboxGroup", "chinaRegion"].includes(e == null ? void 0 : e.interface) && ((o = e == null ? void 0 : e.uiSchema) == null ? void 0 : o.enum);
25197
25197
  }, useAssociationFilterBlockProps = () => {
25198
- var v, I, w, k, A, D, $, L, z, j;
25198
+ var v, I, w, k, A, D, $, L, O, j;
25199
25199
  const e = AssociationFilter.useAssociationField(), t = useFieldSchema(), o = useOptionalFieldList(), { getDataBlocks: n } = useFilterBlock(), r = e == null ? void 0 : e.name, i = useField(), { props: a } = useBlockRequestContext(), l = useDataSourceHeaders(a == null ? void 0 : a.dataSource), c = useCollectionManager_deprecated(), { filter: u, parseVariableLoading: d } = useParsedFilter({ filterOption: (I = (v = i.componentProps) == null ? void 0 : v.params) == null ? void 0 : I.filter });
25200
25200
  let p, m, h, g, f, C, S, b;
25201
25201
  C = e != null && e.target ? (w = c.getCollection(e.target)) == null ? void 0 : w.getPrimaryKey() : "id", S = ((A = (k = t["x-component-props"]) == null ? void 0 : k.fieldNames) == null ? void 0 : A.label) || C, { data: f, params: h, run: g } = useRequest(
@@ -25224,7 +25224,7 @@ const useCreateActionProps = () => {
25224
25224
  g,
25225
25225
  C,
25226
25226
  ($ = i.componentProps) == null ? void 0 : $.params,
25227
- (z = (L = i.componentProps) == null ? void 0 : L.params) == null ? void 0 : z.sort,
25227
+ (O = (L = i.componentProps) == null ? void 0 : L.params) == null ? void 0 : O.sort,
25228
25228
  d
25229
25229
  ]);
25230
25230
  const y = useCallback(
@@ -25234,17 +25234,17 @@ const useCreateActionProps = () => {
25234
25234
  var G, H, W;
25235
25235
  if (!B.find((X) => X.uid === T.uid))
25236
25236
  return;
25237
- const O = `${M}${t.name}`, q = ((G = T.service.params) == null ? void 0 : G[0]) || {};
25237
+ const z = `${M}${t.name}`, q = ((G = T.service.params) == null ? void 0 : G[0]) || {};
25238
25238
  (W = (H = T.service.params) == null ? void 0 : H[1]) != null && W.filters || _.set(T.service.params, "[1].filters", {});
25239
25239
  const E = T.service.params[1].filters;
25240
25240
  if (R.length)
25241
- E[O] = {
25241
+ E[z] = {
25242
25242
  [b]: R
25243
25243
  };
25244
25244
  else {
25245
25245
  if (T.dataLoadingMode === "manual")
25246
25246
  return T.clearData();
25247
- delete E[O];
25247
+ delete E[z];
25248
25248
  }
25249
25249
  const U = mergeFilter([...Object.values(E), T.defaultFilter]);
25250
25250
  return T.doFilter(
@@ -25274,7 +25274,7 @@ const useCreateActionProps = () => {
25274
25274
  p = M;
25275
25275
  return;
25276
25276
  }
25277
- p = M.filter((O) => O.label.includes(N));
25277
+ p = M.filter((z) => z.label.includes(N));
25278
25278
  };
25279
25279
  } else
25280
25280
  b = `${r}.${C}.$in`, p = (f == null ? void 0 : f.data) || [], m = (R) => {
@@ -25557,35 +25557,35 @@ const useSyncFromForm = (e, t, o) => {
25557
25557
  const L = {
25558
25558
  type: "duplicate",
25559
25559
  tag: c((R = $.uiSchema) == null ? void 0 : R.title) || $.name
25560
- }, z = F(x({}, L), {
25560
+ }, O = F(x({}, L), {
25561
25561
  title: React.createElement(TreeNode, L),
25562
25562
  key: v ? `${v}.${$.name}` : $.name,
25563
25563
  isLeaf: !0,
25564
25564
  field: $,
25565
25565
  disabled: I
25566
- }), j = w.find((B) => B.name === z.key);
25566
+ }), j = w.find((B) => B.name === O.key);
25567
25567
  if (["belongsTo", "belongsToMany"].includes($.type) && (!j || ["Select", "Picker"].includes(j == null ? void 0 : j.fieldMode)))
25568
- L.type = "reference", z.type = "reference", z.title = React.createElement(TreeNode, F(x({}, L), { type: "reference" })), z.isLeaf = !1, z.children = m($.target, {
25568
+ L.type = "reference", O.type = "reference", O.title = React.createElement(TreeNode, F(x({}, L), { type: "reference" })), O.isLeaf = !1, O.children = m($.target, {
25569
25569
  depth: b + 1,
25570
25570
  maxDepth: y,
25571
- prefix: z.key,
25571
+ prefix: O.key,
25572
25572
  exclude: systemKeys
25573
25573
  });
25574
25574
  else if (["hasOne", "hasMany"].includes($.type) || ["Nester", "SubTable"].includes(j == null ? void 0 : j.fieldMode)) {
25575
25575
  let B = !1;
25576
- ["hasOne", "hasMany"].includes($.type) && ["Select", "Picker"].includes(j == null ? void 0 : j.fieldMode) && (B = !0), z.disabled = !0, z.isLeaf = !1, z.children = p(
25576
+ ["hasOne", "hasMany"].includes($.type) && ["Select", "Picker"].includes(j == null ? void 0 : j.fieldMode) && (B = !0), O.disabled = !0, O.isLeaf = !1, O.children = p(
25577
25577
  $.target,
25578
25578
  {
25579
25579
  depth: b + 1,
25580
25580
  maxDepth: y,
25581
- prefix: z.key,
25581
+ prefix: O.key,
25582
25582
  exclude: ["id", ...systemKeys],
25583
25583
  disabled: B
25584
25584
  },
25585
25585
  w
25586
25586
  );
25587
25587
  }
25588
- return z;
25588
+ return O;
25589
25589
  }).filter(Boolean);
25590
25590
  return f.set(k, D), D;
25591
25591
  })(new LRUCache({ max: 100 })), m = /* @__PURE__ */ ((f) => (C, { prefix: S, maxDepth: b, depth: y = 0, exclude: v = [] }) => {
@@ -25595,7 +25595,7 @@ const useSyncFromForm = (e, t, o) => {
25595
25595
  if (y > b)
25596
25596
  return [];
25597
25597
  const k = r(C).map((A) => {
25598
- var L, z;
25598
+ var L, O;
25599
25599
  if (!A.target || !A.interface || v.includes(A.name))
25600
25600
  return;
25601
25601
  const D = {
@@ -25604,7 +25604,7 @@ const useSyncFromForm = (e, t, o) => {
25604
25604
  }, $ = S ? `${S}.${A.name}` : A.name;
25605
25605
  return {
25606
25606
  type: "preloading",
25607
- tag: c((z = A.uiSchema) == null ? void 0 : z.title) || A.name,
25607
+ tag: c((O = A.uiSchema) == null ? void 0 : O.title) || A.name,
25608
25608
  title: React.createElement(TreeNode, D),
25609
25609
  key: $,
25610
25610
  isLeaf: !1,
@@ -25635,8 +25635,8 @@ const useSyncFromForm = (e, t, o) => {
25635
25635
  var w;
25636
25636
  (w = v == null ? void 0 : v.reduceProperties) == null || w.call(v, (k, A) => {
25637
25637
  var B, M, T;
25638
- const D = k || I, $ = A["x-collection-field"] && n(A["x-collection-field"]), L = A.name.includes("."), z = $ && ["hasOne", "hasMany", "belongsTo", "belongsToMany"].includes($.type), j = !z && L ? getAssociationPath(A.name) : A.name, R = D === "" || !D ? j : D + "." + j;
25639
- if ($ && !(["hasOne", "hasMany"].includes($.type) || ["SubForm", "Nester"].includes((B = A["x-component-props"]) == null ? void 0 : B.mode)) && C.add(R), $ && (z || L) && A["x-component"] !== "TableField") {
25638
+ const D = k || I, $ = A["x-collection-field"] && n(A["x-collection-field"]), L = A.name.includes("."), O = $ && ["hasOne", "hasMany", "belongsTo", "belongsToMany"].includes($.type), j = !O && L ? getAssociationPath(A.name) : A.name, R = D === "" || !D ? j : D + "." + j;
25639
+ if ($ && !(["hasOne", "hasMany"].includes($.type) || ["SubForm", "Nester"].includes((B = A["x-component-props"]) == null ? void 0 : B.mode)) && C.add(R), $ && (O || L) && A["x-component"] !== "TableField") {
25640
25640
  if (f.add({ name: R, fieldMode: ((M = A["x-component-props"]) == null ? void 0 : M.mode) || "Select" }), ["Nester", "SubTable"].includes((T = A["x-component-props"]) == null ? void 0 : T.mode)) {
25641
25641
  const N = D && D !== "" ? D + "." + A.name : A.name;
25642
25642
  S(A, N);
@@ -26486,7 +26486,7 @@ const useParseDefaultValue = () => {
26486
26486
  const D = !t.name.toString().includes(".") && (d == null ? void 0 : d.getField(t.name)), {
26487
26487
  value: $,
26488
26488
  collectionName: L,
26489
- dataSource: z = "main"
26489
+ dataSource: O = "main"
26490
26490
  } = yield o.parseVariable(t.default, n, {
26491
26491
  fieldOperator: C(t.name)
26492
26492
  });
@@ -26494,7 +26494,7 @@ const useParseDefaultValue = () => {
26494
26494
  collectionName: D.target,
26495
26495
  targetCollectionName: L,
26496
26496
  dm: S,
26497
- dataSource: z
26497
+ dataSource: O
26498
26498
  })) {
26499
26499
  e.loading = !1;
26500
26500
  return;
@@ -26510,8 +26510,8 @@ const useParseDefaultValue = () => {
26510
26510
  const k = getVariableName(t.default), A = b(k);
26511
26511
  return A ? (y(), reaction(
26512
26512
  () => {
26513
- const $ = { [k]: (A == null ? void 0 : A.ctx) || {} }, L = getPath(t.default), z = getValuesByPath($, L);
26514
- return z === void 0 ? Math.random() : z;
26513
+ const $ = { [k]: (A == null ? void 0 : A.ctx) || {} }, L = getPath(t.default), O = getValuesByPath($, L);
26514
+ return O === void 0 ? Math.random() : O;
26515
26515
  },
26516
26516
  () => v({ forceUpdate: !0 }),
26517
26517
  {
@@ -27917,7 +27917,7 @@ function Input$1(e) {
27917
27917
  useAntdInputStyle(`${S}-input`);
27918
27918
  const b = useCompile(), { t: y } = useTranslation(), v = useForm(), [I, w] = React.useState([]), [k, A] = React.useState([]), [D, $] = React.useState(
27919
27919
  m || !!(n && t != null)
27920
- ), L = useMemo(() => parseValue(t, p), [p, t]), z = typeof L == "string", j = z ? L : "", R = z ? null : L, B = Object.assign(
27920
+ ), L = useMemo(() => parseValue(t, p), [p, t]), O = typeof L == "string", j = O ? L : "", R = O ? null : L, B = Object.assign(
27921
27921
  {
27922
27922
  label: "label",
27923
27923
  value: "value",
@@ -27930,8 +27930,8 @@ function Input$1(e) {
27930
27930
  [B.value]: "$",
27931
27931
  [B.label]: y("Constant")
27932
27932
  } : i ? getTypedConstantOption(j, i, B) : null, [j, i]), T = (H = M == null ? void 0 : M.component) != null ? H : NullComponent, N = Array.isArray(i) ? (X = (W = i.find((J) => Array.isArray(J) && J[0] === j)) == null ? void 0 : W[1]) != null ? X : {} : {};
27933
- let O;
27934
- t == null ? a ? n && D ? O = ["$"] : O = [""] : n ? O = ["$"] : O = [" ", j] : O = n ? ["$"] : [" ", j], m && (O = ["$"]), useEffect(() => {
27933
+ let z;
27934
+ t == null ? a ? n && D ? z = ["$"] : z = [""] : n ? z = ["$"] : z = [" ", j] : z = n ? ["$"] : [" ", j], m && (z = ["$"]), useEffect(() => {
27935
27935
  const Z = M != null ? M : {}, { component: J } = Z, Y = K(Z, ["component"]), Q = [
27936
27936
  ...a ? [
27937
27937
  {
@@ -28081,7 +28081,7 @@ function Input$1(e) {
28081
28081
  Cascader$1,
28082
28082
  {
28083
28083
  options: I,
28084
- value: R != null ? R : O,
28084
+ value: R != null ? R : z,
28085
28085
  onChange: E,
28086
28086
  loadData: q,
28087
28087
  changeOnSelect: u,
@@ -28371,7 +28371,7 @@ function TextArea(e) {
28371
28371
  const { current: N } = m;
28372
28372
  if (!N)
28373
28373
  return;
28374
- const O = new Range();
28374
+ const z = new Range();
28375
28375
  if (y) {
28376
28376
  if (k.join() === "-1,0,-1,0")
28377
28377
  return;
@@ -28379,25 +28379,25 @@ function TextArea(e) {
28379
28379
  if (E)
28380
28380
  try {
28381
28381
  const U = Array.from(N.childNodes);
28382
- U.length && (k[0] === -1 ? k[1] && O.setStartAfter(U[k[1] - 1]) : O.setStart(U[k[0]], k[1]), k[2] === -1 ? k[3] && O.setEndAfter(U[k[3] - 1]) : O.setEnd(U[k[2]], k[3])), O.collapse(!0), E.removeAllRanges(), E.addRange(O);
28382
+ U.length && (k[0] === -1 ? k[1] && z.setStartAfter(U[k[1] - 1]) : z.setStart(U[k[0]], k[1]), k[2] === -1 ? k[3] && z.setEndAfter(U[k[3] - 1]) : z.setEnd(U[k[2]], k[3])), z.collapse(!0), E.removeAllRanges(), E.addRange(z);
28383
28383
  } catch (U) {
28384
28384
  }
28385
28385
  } else {
28386
28386
  const { lastChild: E } = N;
28387
28387
  if (E) {
28388
- O.setStartAfter(E), O.setEndAfter(E);
28389
- const U = Array.from(N.childNodes), G = O.startContainer === N ? -1 : U.indexOf(E), H = O.startContainer === N ? -1 : U.indexOf(E);
28390
- A([G, O.startOffset, H, O.endOffset]);
28388
+ z.setStartAfter(E), z.setEndAfter(E);
28389
+ const U = Array.from(N.childNodes), G = z.startContainer === N ? -1 : U.indexOf(E), H = z.startContainer === N ? -1 : U.indexOf(E);
28390
+ A([G, z.startOffset, H, z.endOffset]);
28391
28391
  }
28392
28392
  }
28393
28393
  }, [I]);
28394
28394
  const $ = useCallback(
28395
28395
  function(N) {
28396
- const O = N.filter((U) => !!U.trim()), { current: q } = m;
28397
- if (!q || !O)
28396
+ const z = N.filter((U) => !!U.trim()), { current: q } = m;
28397
+ if (!q || !z)
28398
28398
  return;
28399
28399
  q.focus();
28400
- const E = createVariableTagHTML(O.join("."), C);
28400
+ const E = createVariableTagHTML(z.join("."), C);
28401
28401
  pasteHTML(q, E, {
28402
28402
  range: k
28403
28403
  }), v(!0), A(getCurrentRange(q)), i(getValue(q, u));
@@ -28408,7 +28408,7 @@ function TextArea(e) {
28408
28408
  S || (v(!0), A(getCurrentRange(N)), i(getValue(N, u)));
28409
28409
  },
28410
28410
  [S, i, D]
28411
- ), z = useCallback(function({ currentTarget: N }) {
28411
+ ), O = useCallback(function({ currentTarget: N }) {
28412
28412
  A(getCurrentRange(N));
28413
28413
  }, []), j = useCallback(function(N) {
28414
28414
  N.key === "Enter" && N.preventDefault();
@@ -28422,7 +28422,7 @@ function TextArea(e) {
28422
28422
  ), M = useCallback(
28423
28423
  function(N) {
28424
28424
  N.preventDefault();
28425
- const O = N.clipboardData.getData("text/html") || N.clipboardData.getData("text"), q = sanitizeHTML(O, {
28425
+ const z = N.clipboardData.getData("text/html") || N.clipboardData.getData("text"), q = sanitizeHTML(z, {
28426
28426
  allowedTags: ["span"],
28427
28427
  allowedAttributes: {
28428
28428
  span: ["data-variable", "contenteditable"]
@@ -28476,7 +28476,7 @@ function TextArea(e) {
28476
28476
  role: "button",
28477
28477
  "aria-label": "textbox",
28478
28478
  onInput: L,
28479
- onBlur: z,
28479
+ onBlur: O,
28480
28480
  onKeyDown: j,
28481
28481
  onPaste: M,
28482
28482
  onCompositionStart: R,
@@ -33583,8 +33583,8 @@ const useFieldComponentOptions = () => {
33583
33583
  const { refresh: t } = useDesignable(), o = useAPIClient(), { t: n } = useTranslation();
33584
33584
  return useCallback(
33585
33585
  (r) => {
33586
- var f, C, S, b, y, v, I, w, k, A, D, $, L, z, j;
33587
- const { active: i, over: a } = r, l = (C = (f = i == null ? void 0 : i.data) == null ? void 0 : f.current) == null ? void 0 : C.schema, c = (b = (S = a == null ? void 0 : a.data) == null ? void 0 : S.current) == null ? void 0 : b.schema, u = (v = (y = a == null ? void 0 : a.data) == null ? void 0 : y.current) == null ? void 0 : v.insertAdjacent, d = (w = (I = a == null ? void 0 : a.data) == null ? void 0 : I.current) == null ? void 0 : w.breakRemoveOn, p = (A = (k = a == null ? void 0 : a.data) == null ? void 0 : k.current) == null ? void 0 : A.wrapSchema, m = ($ = (D = a == null ? void 0 : a.data) == null ? void 0 : D.current) == null ? void 0 : $.onSuccess, h = (j = (z = (L = a == null ? void 0 : a.data) == null ? void 0 : L.current) == null ? void 0 : z.removeParentsIfNoChildren) != null ? j : !0;
33586
+ var f, C, S, b, y, v, I, w, k, A, D, $, L, O, j;
33587
+ const { active: i, over: a } = r, l = (C = (f = i == null ? void 0 : i.data) == null ? void 0 : f.current) == null ? void 0 : C.schema, c = (b = (S = a == null ? void 0 : a.data) == null ? void 0 : S.current) == null ? void 0 : b.schema, u = (v = (y = a == null ? void 0 : a.data) == null ? void 0 : y.current) == null ? void 0 : v.insertAdjacent, d = (w = (I = a == null ? void 0 : a.data) == null ? void 0 : I.current) == null ? void 0 : w.breakRemoveOn, p = (A = (k = a == null ? void 0 : a.data) == null ? void 0 : k.current) == null ? void 0 : A.wrapSchema, m = ($ = (D = a == null ? void 0 : a.data) == null ? void 0 : D.current) == null ? void 0 : $.onSuccess, h = (j = (O = (L = a == null ? void 0 : a.data) == null ? void 0 : L.current) == null ? void 0 : O.removeParentsIfNoChildren) != null ? j : !0;
33588
33588
  if (!l || !c) {
33589
33589
  e == null || e(r);
33590
33590
  return;
@@ -34104,7 +34104,7 @@ const getValues = (e, t) => castArray(e).filter((o) => o != null).map((o) => typ
34104
34104
  "dataSource",
34105
34105
  "toOptionsItem",
34106
34106
  "popupMatchSelectWidth"
34107
- ]), C = useDataSourceKey(), S = useDataSourceHeaders(m || C), [b, y] = useState(!1), v = useRef(!1), I = useFieldSchema(), w = ((X = I["x-component-props"]) == null ? void 0 : X.addMode) === "quickAdd", { getField: k } = useCollection_deprecated(), A = useRef(null), { getCollectionJoinField: D, getInterface: $ } = useCollectionManager_deprecated(), L = I["x-collection-field"] || I.name, z = k(L) || D(L), j = u || (z == null ? void 0 : z.target) && (t == null ? void 0 : t.label) && D(`${z.target}.${t.label}`), R = useMemo(() => {
34107
+ ]), C = useDataSourceKey(), S = useDataSourceHeaders(m || C), [b, y] = useState(!1), v = useRef(!1), I = useFieldSchema(), w = ((X = I["x-component-props"]) == null ? void 0 : X.addMode) === "quickAdd", { getField: k } = useCollection_deprecated(), A = useRef(null), { getCollectionJoinField: D, getInterface: $ } = useCollectionManager_deprecated(), L = I["x-collection-field"] || I.name, O = k(L) || D(L), j = u || (O == null ? void 0 : O.target) && (t == null ? void 0 : t.label) && D(`${O.target}.${t.label}`), R = useMemo(() => {
34108
34108
  var Y;
34109
34109
  if (j != null && j.interface) {
34110
34110
  const Q = $(j.interface), Z = ((Y = Q == null ? void 0 : Q.filterable) == null ? void 0 : Y.operators[0].value) || "$includes";
@@ -34140,7 +34140,7 @@ const getValues = (e, t) => castArray(e).filter((o) => o != null).map((o) => typ
34140
34140
  }
34141
34141
  },
34142
34142
  [j == null ? void 0 : j.uiSchema, t]
34143
- ), { data: T, run: N, loading: O } = useRequest(
34143
+ ), { data: T, run: N, loading: z } = useRequest(
34144
34144
  F(x({
34145
34145
  action: "list"
34146
34146
  }, o), {
@@ -34210,7 +34210,7 @@ const getValues = (e, t) => castArray(e).filter((o) => o != null).map((o) => typ
34210
34210
  value: r,
34211
34211
  defaultValue: i
34212
34212
  }, f), {
34213
- loading: T ? O : !0,
34213
+ loading: T ? z : !0,
34214
34214
  options: h(M(G)),
34215
34215
  rawOptions: G,
34216
34216
  dropdownRender: (Y) => {
@@ -35176,7 +35176,7 @@ const useStyles$9 = genStyleHook("nb-page", (e) => {
35176
35176
  ] }) }) }) }) : null;
35177
35177
  }, Page = (e) => {
35178
35178
  var q, E, U;
35179
- const O = e, { children: t } = O, o = K(O, ["children"]), { t: n } = useTranslation(), r = useCompile(), { title: i, setTitle: a } = useDocumentTitle(), l = useFieldSchema(), c = useDesignable(), { theme: u } = useGlobalTheme(), { getAriaLabel: d } = useGetAriaLabelOfSchemaInitializer(), { tabUid: p, name: m } = useParams(), h = useRouterBasename(), [g, f] = useState(!1);
35179
+ const z = e, { children: t } = z, o = K(z, ["children"]), { t: n } = useTranslation(), r = useCompile(), { title: i, setTitle: a } = useDocumentTitle(), l = useFieldSchema(), c = useDesignable(), { theme: u } = useGlobalTheme(), { getAriaLabel: d } = useGetAriaLabelOfSchemaInitializer(), { tabUid: p, name: m } = useParams(), h = useRouterBasename(), [g, f] = useState(!1);
35180
35180
  useEffect(() => {
35181
35181
  setTimeout(() => {
35182
35182
  f(!0);
@@ -35188,7 +35188,7 @@ const useStyles$9 = genStyleHook("nb-page", (e) => {
35188
35188
  // 处理 searchParams 是为了兼容旧版的 tab 参数
35189
35189
  () => p || I.get("tab") || Object.keys(l.properties || {}).shift(),
35190
35190
  [l.properties, I, p]
35191
- ), [D, $] = useState(0), { wrapSSR: L, hashId: z, componentCls: j } = useStyles$9(), R = useStyles$a(), { token: B } = useToken(), M = b ? void 0 : l.title || r(i);
35191
+ ), [D, $] = useState(0), { wrapSSR: L, hashId: O, componentCls: j } = useStyles$9(), R = useStyles$a(), { token: B } = useToken(), M = b ? void 0 : l.title || r(i);
35192
35192
  useRequest(
35193
35193
  {
35194
35194
  url: `/uiSchemas:getParentJsonSchema/${l["x-uid"]}`
@@ -35294,7 +35294,7 @@ const useStyles$9 = genStyleHook("nb-page", (e) => {
35294
35294
  S
35295
35295
  ]);
35296
35296
  return L(
35297
- /* @__PURE__ */ jsxs("div", { className: `${j} ${z} ${R.styles}`, children: [
35297
+ /* @__PURE__ */ jsxs("div", { className: `${j} ${O} ${R.styles}`, children: [
35298
35298
  /* @__PURE__ */ jsx(PageDesigner, { title: l.title || i }),
35299
35299
  /* @__PURE__ */ jsx(
35300
35300
  "div",
@@ -35645,35 +35645,35 @@ const AppendsTreeSelect = (e) => {
35645
35645
  "filter",
35646
35646
  "rootOption",
35647
35647
  "loadData"
35648
- ]), d = useCompile(), { t: p } = useTranslation(), [m, h] = useState({}), g = i({ collection: r }), [f, C] = parseCollectionName(g), S = useApp(), { collectionManager: b } = S.dataSourceManager.getDataSource(f), y = (z, j) => {
35649
- const R = b.getCollection(z);
35648
+ ]), d = useCompile(), { t: p } = useTranslation(), [m, h] = useState({}), g = i({ collection: r }), [f, C] = parseCollectionName(g), S = useApp(), { collectionManager: b } = S.dataSourceManager.getDataSource(f), y = (O, j) => {
35649
+ const R = b.getCollection(O);
35650
35650
  return R ? R.getAllFields(j) : [];
35651
- }, v = Object.values(m), I = useMemo(() => e.multiple ? (o || []).map((z) => m[z]).filter(Boolean) : o, [o, e.multiple, m]), w = useCallback(
35652
- (z) => V(void 0, null, function* () {
35651
+ }, v = Object.values(m), I = useMemo(() => e.multiple ? (o || []).map((O) => m[O]).filter(Boolean) : o, [o, e.multiple, m]), w = useCallback(
35652
+ (O) => V(void 0, null, function* () {
35653
35653
  if (c != null)
35654
- return c(z);
35655
- if (!z.isLeaf && z.loadChildren) {
35656
- const j = z.loadChildren(z);
35654
+ return c(O);
35655
+ if (!O.isLeaf && O.loadChildren) {
35656
+ const j = O.loadChildren(O);
35657
35657
  h((R) => j.reduce((B, M) => Object.assign(B, { [M.value]: M }), x({}, R)));
35658
35658
  }
35659
35659
  }),
35660
35660
  [c]
35661
35661
  );
35662
35662
  useEffect(() => {
35663
- const z = l ? F(x({}, l), {
35663
+ const O = l ? F(x({}, l), {
35664
35664
  id: l.value,
35665
35665
  key: l.value,
35666
35666
  title: l.label,
35667
35667
  fullTitle: l.label,
35668
35668
  isLeaf: !1
35669
- }) : null, R = (c === null ? [] : getCollectionFieldOptions.call({ compile: d, getCollectionFields: y, filter: a }, C, z)).reduce((B, M) => Object.assign(B, { [M.value]: M }), {});
35670
- z && (R[z.value] = z), h(R);
35669
+ }) : null, R = (c === null ? [] : getCollectionFieldOptions.call({ compile: d, getCollectionFields: y, filter: a }, C, O)).reduce((B, M) => Object.assign(B, { [M.value]: M }), {});
35670
+ O && (R[O.value] = O), h(R);
35671
35671
  }, [g, l, a, c]), useEffect(() => {
35672
- const z = e.multiple ? o : o ? [o] : [];
35673
- if (!(z != null && z.length) || z.every((R) => !!m[R]))
35672
+ const O = e.multiple ? o : o ? [o] : [];
35673
+ if (!(O != null && O.length) || O.every((R) => !!m[R]))
35674
35674
  return;
35675
35675
  const j = [];
35676
- z.forEach((R) => {
35676
+ O.forEach((R) => {
35677
35677
  const B = R.split(".");
35678
35678
  let M = m[B[0]];
35679
35679
  for (let T = 1; T < B.length && M; T++) {
@@ -35683,19 +35683,19 @@ const AppendsTreeSelect = (e) => {
35683
35683
  break;
35684
35684
  }
35685
35685
  if (!M.isLeaf && M.loadChildren) {
35686
- const O = M.loadChildren(M);
35687
- O != null && O.length && (j.push(...O), M = O.find((q) => q.value === B.slice(0, T + 1).join(".")));
35686
+ const z = M.loadChildren(M);
35687
+ z != null && z.length && (j.push(...z), M = z.find((q) => q.value === B.slice(0, T + 1).join(".")));
35688
35688
  }
35689
35689
  }
35690
35690
  }), h((R) => j.reduce((B, M) => Object.assign(B, { [M.value]: M }), x({}, R)));
35691
35691
  }, [o, v.length, e.multiple]);
35692
35692
  const k = useCallback(
35693
- (z) => {
35693
+ (O) => {
35694
35694
  if (!e.multiple) {
35695
- n(z);
35695
+ n(O);
35696
35696
  return;
35697
35697
  }
35698
- const j = z.map((M) => M.value).filter(Boolean), R = new Set(j), B = I.find((M) => !R.has(M.value));
35698
+ const j = O.map((M) => M.value).filter(Boolean), R = new Set(j), B = I.find((M) => !R.has(M.value));
35699
35699
  if (B) {
35700
35700
  const M = `${B.value}.`;
35701
35701
  Object.keys(m).forEach((T) => {
@@ -35712,16 +35712,16 @@ const AppendsTreeSelect = (e) => {
35712
35712
  },
35713
35713
  [e.multiple, I, n, m]
35714
35714
  ), A = useCallback(
35715
- (z) => {
35715
+ (O) => {
35716
35716
  var N;
35717
- const { value: j, onClose: R, disabled: B, closable: M } = z;
35717
+ const { value: j, onClose: R, disabled: B, closable: M } = O;
35718
35718
  if (!j)
35719
35719
  return null;
35720
35720
  const { fullTitle: T } = (N = m[j]) != null ? N : {};
35721
35721
  return /* @__PURE__ */ jsx(Tag, { closable: M && !B, onClose: R, children: T == null ? void 0 : T.join(" / ") });
35722
35722
  },
35723
35723
  [m]
35724
- ), D = Array.isArray(I) ? I.filter((z) => z.value in m) : I, $ = e.multiple ? o : o != null ? [o] : [];
35724
+ ), D = Array.isArray(I) ? I.filter((O) => O.value in m) : I, $ = e.multiple ? o : o != null ? [o] : [];
35725
35725
  return /* @__PURE__ */ jsx(
35726
35726
  TreeSelect$2,
35727
35727
  x({
@@ -35766,20 +35766,20 @@ const AppendsTreeSelect = (e) => {
35766
35766
  const k = uid();
35767
35767
  return f.addEffects(k, () => {
35768
35768
  onFieldInputValueChange("*", (A) => {
35769
- var $, L, z, j, R;
35770
- (filterAnalyses((z = (L = ($ = r.componentProps) == null ? void 0 : $.service) == null ? void 0 : L.params) == null ? void 0 : z.filter) || []).includes((j = A == null ? void 0 : A.props) == null ? void 0 : j.name) && r.value && isEqual(A == null ? void 0 : A.indexes, r == null ? void 0 : r.indexes) && ((R = A == null ? void 0 : A.props) == null ? void 0 : R.name) !== r.props.name && (r.setValue(void 0), p(void 0));
35769
+ var $, L, O, j, R;
35770
+ (filterAnalyses((O = (L = ($ = r.componentProps) == null ? void 0 : $.service) == null ? void 0 : L.params) == null ? void 0 : O.filter) || []).includes((j = A == null ? void 0 : A.props) == null ? void 0 : j.name) && r.value && isEqual(A == null ? void 0 : A.indexes, r == null ? void 0 : r.indexes) && ((R = A == null ? void 0 : A.props) == null ? void 0 : R.name) !== r.props.name && (r.setValue(void 0), p(void 0));
35771
35771
  });
35772
35772
  }), () => {
35773
35773
  f.removeEffects(k);
35774
35774
  };
35775
35775
  }, []);
35776
35776
  const y = (k) => V(void 0, null, function* () {
35777
- var L, z;
35777
+ var L, O;
35778
35778
  const { search: A, callBack: D } = k, {
35779
35779
  data: { data: $ }
35780
35780
  } = yield S.create({
35781
35781
  values: {
35782
- [((z = (L = r == null ? void 0 : r.componentProps) == null ? void 0 : L.fieldNames) == null ? void 0 : z.label) || "id"]: A
35782
+ [((O = (L = r == null ? void 0 : r.componentProps) == null ? void 0 : L.fieldNames) == null ? void 0 : O.label) || "id"]: A
35783
35783
  }
35784
35784
  });
35785
35785
  if ($) {
@@ -36376,8 +36376,8 @@ function Uploader(o) {
36376
36376
  const D = k.fileList.filter(($) => $.status === "done");
36377
36377
  if (D.length) {
36378
36378
  const $ = [...a != null ? a : [], ...D.map((L) => {
36379
- var z;
36380
- return c((z = L.response) == null ? void 0 : z.data);
36379
+ var O;
36380
+ return c((O = L.response) == null ? void 0 : O.data);
36381
36381
  })];
36382
36382
  l == null || l($);
36383
36383
  }
@@ -36711,9 +36711,9 @@ const InternalFileManager = (e) => {
36711
36711
  };
36712
36712
  useEffect(() => {
36713
36713
  if (t && Object.keys(t).length > 0) {
36714
- const L = (Array.isArray(t) ? t : t ? [t] : []).filter(Boolean).map((z) => {
36715
- const j = z[p.label];
36716
- return F(x({}, z), {
36714
+ const L = (Array.isArray(t) ? t : t ? [t] : []).filter(Boolean).map((O) => {
36715
+ const j = O[p.label];
36716
+ return F(x({}, O), {
36717
36717
  [p.label]: getLabelFormatValue$1(y(b), y(j))
36718
36718
  });
36719
36719
  });
@@ -36734,10 +36734,10 @@ const InternalFileManager = (e) => {
36734
36734
  setSelectedRows: u,
36735
36735
  collectionField: S
36736
36736
  }, k = () => {
36737
- const { setVisible: L } = useActionContext(), { multiple: z, selectedRows: j, onChange: R, options: B, collectionField: M } = useContext(RecordPickerContext);
36737
+ const { setVisible: L } = useActionContext(), { multiple: O, selectedRows: j, onChange: R, options: B, collectionField: M } = useContext(RecordPickerContext);
36738
36738
  return {
36739
36739
  onClick() {
36740
- R(z ? unionBy(j, B, (M == null ? void 0 : M.targetKey) || "id") : (j == null ? void 0 : j[0]) || null), L(!1);
36740
+ R(O ? unionBy(j, B, (M == null ? void 0 : M.targetKey) || "id") : (j == null ? void 0 : j[0]) || null), L(!1);
36741
36741
  }
36742
36742
  };
36743
36743
  };
@@ -36789,10 +36789,10 @@ const InternalFileManager = (e) => {
36789
36789
  FormItem: FormItem$1
36790
36790
  }
36791
36791
  }), CascadeSelect = connect((e) => {
36792
- var z;
36792
+ var O;
36793
36793
  const { data: t, mapOptions: o, onChange: n, value: r } = e, [i, a] = useState([
36794
36794
  { key: void 0, children: [], value: null }
36795
- ]), [l, c] = useState(t), [u, d] = useState(!1), p = useCompile(), m = useAPIClient(), h = useServiceOptions$1(e), { options: g, field: f } = useAssociationFieldContext(), C = m.resource(g.target), { getCollectionJoinField: S, getInterface: b } = useCollectionManager_deprecated(), y = (z = f == null ? void 0 : f.componentProps) == null ? void 0 : z.fieldNames, v = (g == null ? void 0 : g.target) && (y == null ? void 0 : y.label) && S(`${g.target}.${y.label}`), I = useMemo(() => {
36795
+ ]), [l, c] = useState(t), [u, d] = useState(!1), p = useCompile(), m = useAPIClient(), h = useServiceOptions$1(e), { options: g, field: f } = useAssociationFieldContext(), C = m.resource(g.target), { getCollectionJoinField: S, getInterface: b } = useCollectionManager_deprecated(), y = (O = f == null ? void 0 : f.componentProps) == null ? void 0 : O.fieldNames, v = (g == null ? void 0 : g.target) && (y == null ? void 0 : y.label) && S(`${g.target}.${y.label}`), I = useMemo(() => {
36796
36796
  var j, R;
36797
36797
  return v != null && v.interface && ((R = (j = b(v.interface)) == null ? void 0 : j.filterable) == null ? void 0 : R.operators[0].value) || "$includes";
36798
36798
  }, [v]), w = useField();
@@ -36815,14 +36815,14 @@ const InternalFileManager = (e) => {
36815
36815
  let B = p(R[y.label]);
36816
36816
  if ((M = v == null ? void 0 : v.uiSchema) != null && M.enum)
36817
36817
  if (Array.isArray(B))
36818
- B = B.map((O, q) => {
36818
+ B = B.map((z, q) => {
36819
36819
  var U, G;
36820
- const E = (G = (U = v.uiSchema.enum).find) == null ? void 0 : G.call(U, (H) => H.value === O);
36821
- return E ? /* @__PURE__ */ jsx(Tag, { color: E.color, style: { marginRight: 3 }, children: (E == null ? void 0 : E.label) || O }, q) : /* @__PURE__ */ jsx(Tag, { children: O }, O);
36820
+ const E = (G = (U = v.uiSchema.enum).find) == null ? void 0 : G.call(U, (H) => H.value === z);
36821
+ return E ? /* @__PURE__ */ jsx(Tag, { color: E.color, style: { marginRight: 3 }, children: (E == null ? void 0 : E.label) || z }, q) : /* @__PURE__ */ jsx(Tag, { children: z }, z);
36822
36822
  }).reverse();
36823
36823
  else {
36824
- const O = (N = (T = v.uiSchema.enum).find) == null ? void 0 : N.call(T, (q) => q.value === B);
36825
- O && (B = /* @__PURE__ */ jsx(Tag, { color: O.color, children: O.label }));
36824
+ const z = (N = (T = v.uiSchema.enum).find) == null ? void 0 : N.call(T, (q) => q.value === B);
36825
+ z && (B = /* @__PURE__ */ jsx(Tag, { color: z.color, children: z.label }));
36826
36826
  }
36827
36827
  return (v == null ? void 0 : v.type) === "date" && (B = dayjs(B).format("YYYY-MM-DD")), o ? o({
36828
36828
  [y.label]: B || EMPTY,
@@ -36858,8 +36858,8 @@ const InternalFileManager = (e) => {
36858
36858
  var M, T, N;
36859
36859
  if (j) {
36860
36860
  d(!0);
36861
- const O = yield A({ parentId: R == null ? void 0 : R.key });
36862
- if (d(!1), c(O), B === (i == null ? void 0 : i.length) - 1 && ((M = R == null ? void 0 : R.value) != null && M.id)) {
36861
+ const z = yield A({ parentId: R == null ? void 0 : R.key });
36862
+ if (d(!1), c(z), B === (i == null ? void 0 : i.length) - 1 && ((M = R == null ? void 0 : R.value) != null && M.id)) {
36863
36863
  const q = yield A({ parentId: (T = R == null ? void 0 : R.value) == null ? void 0 : T.id }), E = [...i];
36864
36864
  E.splice(B + 1), E[B] = F(x({}, E[B]), { value: R == null ? void 0 : R.value }), E[B + 1] = { key: (N = R == null ? void 0 : R.value) == null ? void 0 : N.id, children: (q == null ? void 0 : q.length) > 0 ? q : null }, a(E), n == null || n(E);
36865
36865
  }
@@ -36895,7 +36895,7 @@ const InternalFileManager = (e) => {
36895
36895
  onSearch: (N) => L(N, j),
36896
36896
  fieldNames: y,
36897
36897
  style: { minWidth: 150 },
36898
- onChange: (N, O) => D(N, O, R),
36898
+ onChange: (N, z) => D(N, z, R),
36899
36899
  options: u ? [] : k(l),
36900
36900
  onDropdownVisibleChange: (N) => $(N, j, R),
36901
36901
  notFoundContent: u ? /* @__PURE__ */ jsx(Spin, { size: "small" }) : null
@@ -37111,7 +37111,7 @@ const InternalNesterCss = css`
37111
37111
  }, InternalPicker = observer$1(
37112
37112
  (e) => {
37113
37113
  var j;
37114
- const z = e, { value: t, multiple: o, openSize: n, onChange: r, quickUpload: i, selectFile: a, shouldMountElement: l } = z, c = K(z, ["value", "multiple", "openSize", "onChange", "quickUpload", "selectFile", "shouldMountElement"]), u = useField(), d = useFieldNames$1(e), [p, m] = useState(!1), h = useFieldSchema(), g = useInsertSchema("Selector"), { options: f } = useAssociationFieldContext(), { collectionName: C } = useFormBlockContext(), S = useCompile(), b = useLabelUiSchema$1(f, (d == null ? void 0 : d.label) || "label"), y = h["x-add-new"], [v, I] = useState([]), w = useCollectionRecordData(), k = useMemo(() => t && Object.keys(t).length > 0 ? (Array.isArray(t) ? t : t ? [t] : []).filter(Boolean).map((B) => {
37114
+ const O = e, { value: t, multiple: o, openSize: n, onChange: r, quickUpload: i, selectFile: a, shouldMountElement: l } = O, c = K(O, ["value", "multiple", "openSize", "onChange", "quickUpload", "selectFile", "shouldMountElement"]), u = useField(), d = useFieldNames$1(e), [p, m] = useState(!1), h = useFieldSchema(), g = useInsertSchema("Selector"), { options: f } = useAssociationFieldContext(), { collectionName: C } = useFormBlockContext(), S = useCompile(), b = useLabelUiSchema$1(f, (d == null ? void 0 : d.label) || "label"), y = h["x-add-new"], [v, I] = useState([]), w = useCollectionRecordData(), k = useMemo(() => t && Object.keys(t).length > 0 ? (Array.isArray(t) ? t : t ? [t] : []).filter(Boolean).map((B) => {
37115
37115
  const M = B == null ? void 0 : B[d.label];
37116
37116
  return F(x({}, B), {
37117
37117
  [d.label]: getLabelFormatValue$1(S(b), S(M))
@@ -37136,13 +37136,13 @@ const InternalNesterCss = css`
37136
37136
  const R = (f == null ? void 0 : f.targetKey) || "id", B = k.map((T) => T[R]).filter(Boolean);
37137
37137
  return B.length ? { $and: [{ [`${R}.$ne`]: B }] } : {};
37138
37138
  }, L = () => {
37139
- const { setVisible: R } = useActionContext(), { multiple: B, selectedRows: M, onChange: T, options: N, collectionField: O } = useContext(RecordPickerContext);
37139
+ const { setVisible: R } = useActionContext(), { multiple: B, selectedRows: M, onChange: T, options: N, collectionField: z } = useContext(RecordPickerContext);
37140
37140
  return {
37141
37141
  onClick() {
37142
- T(B ? unionBy(M, N, (O == null ? void 0 : O.targetKey) || "id") : (M == null ? void 0 : M[0]) || null), R(!1);
37142
+ T(B ? unionBy(M, N, (z == null ? void 0 : z.targetKey) || "id") : (M == null ? void 0 : M[0]) || null), R(!1);
37143
37143
  },
37144
37144
  style: {
37145
- display: B !== !1 && ["o2m", "m2m", "mbm"].includes(O == null ? void 0 : O.interface) ? "block" : "none"
37145
+ display: B !== !1 && ["o2m", "m2m", "mbm"].includes(z == null ? void 0 : z.interface) ? "block" : "none"
37146
37146
  }
37147
37147
  };
37148
37148
  };
@@ -37249,7 +37249,7 @@ const RenderRecord = React.memo(
37249
37249
  const [f, C] = useState(!0), [S, b] = useState([]);
37250
37250
  return useEffect(() => {
37251
37251
  const y = toArr$3(h).map((v, I, w) => {
37252
- const k = v == null ? void 0 : v[(e == null ? void 0 : e.label) || "label"], A = t ? transformNestedData(v).map((z) => z == null ? void 0 : z[(e == null ? void 0 : e.label) || "label"]).join(" / ") : isObject(k) ? JSON.stringify(k) : k, D = toValue$3(o(A), "N/A"), $ = n(
37252
+ const k = v == null ? void 0 : v[(e == null ? void 0 : e.label) || "label"], A = t ? transformNestedData(v).map((O) => O == null ? void 0 : O[(e == null ? void 0 : e.label) || "label"]).join(" / ") : isObject(k) ? JSON.stringify(k) : k, D = toValue$3(o(A), "N/A"), $ = n(
37253
37253
  (v == null ? void 0 : v.__collection) || (r == null ? void 0 : r.target),
37254
37254
  (e == null ? void 0 : e.label) || "label"
37255
37255
  ), L = getLabelFormatValue$1(o($), D, !0);
@@ -37260,9 +37260,9 @@ const RenderRecord = React.memo(
37260
37260
  onMouseEnter: () => {
37261
37261
  g(!0);
37262
37262
  },
37263
- onClick: (z) => {
37263
+ onClick: (O) => {
37264
37264
  var j;
37265
- g(!0), z.stopPropagation(), z.preventDefault(), l && c(schema$1.Viewer), u.properties && d({
37265
+ g(!0), O.stopPropagation(), O.preventDefault(), l && c(schema$1.Viewer), u.properties && d({
37266
37266
  recordData: v,
37267
37267
  parentRecordData: p
37268
37268
  }), (j = m == null ? void 0 : m.current) == null || j.setPopoverVisible(!1);
@@ -38050,8 +38050,8 @@ const useColumnsDeepMemoized = (e) => {
38050
38050
  width: I && !a ? 0 : ((A = b["x-component-props"]) == null ? void 0 : A.width) || 100,
38051
38051
  render: (D, $) => {
38052
38052
  var j;
38053
- const L = (j = n.value) == null ? void 0 : j.indexOf($), z = n.address.concat($.__index || L);
38054
- return /* @__PURE__ */ jsx(SubFormProvider, { value: { value: $, collection: f, fieldSchema: r.parent }, children: /* @__PURE__ */ jsx(RecordIndexProvider, { index: $.__index || L, children: /* @__PURE__ */ jsx(RecordProvider, { isNew: isNewRecord($), record: $, parent: u, children: /* @__PURE__ */ jsx(ColumnFieldProvider, { schema: b, basePath: z, children: /* @__PURE__ */ jsx("span", { role: "button", className: g, children: /* @__PURE__ */ jsx(RecursionField, { basePath: z, schema: b, onlyRenderProperties: !0 }) }) }) }) }) });
38053
+ const L = (j = n.value) == null ? void 0 : j.indexOf($), O = n.address.concat($.__index || L);
38054
+ return /* @__PURE__ */ jsx(SubFormProvider, { value: { value: $, collection: f, fieldSchema: r.parent }, children: /* @__PURE__ */ jsx(RecordIndexProvider, { index: $.__index || L, children: /* @__PURE__ */ jsx(RecordProvider, { isNew: isNewRecord($), record: $, parent: u, children: /* @__PURE__ */ jsx(ColumnFieldProvider, { schema: b, basePath: O, children: /* @__PURE__ */ jsx("span", { role: "button", className: g, children: /* @__PURE__ */ jsx(RecursionField, { basePath: O, schema: b, onlyRenderProperties: !0 }) }) }) }) }) });
38055
38055
  },
38056
38056
  onCell: (D, $) => ({
38057
38057
  record: D,
@@ -38393,7 +38393,7 @@ const Table$1 = withDynamicSchemaProps(
38393
38393
  "loading",
38394
38394
  "onClickRow"
38395
38395
  ]), b = useArrayField(S), y = useFieldSchema(), { size: v = "small" } = (y == null ? void 0 : y["x-component-props"]) || {}, I = useCollection(), k = ((ce = y == null ? void 0 : y.parent) == null ? void 0 : ce["x-decorator"]) === "TableSelectorProvider" ? useTableSelectorContext() : useTableBlockContext(), { expandFlag: A, allIncludesChildren: D } = k, $ = useMemoizedFn(S.onRowDragEnd || (() => {
38396
- })), L = usePaginationProps$2(o, i), z = useTableColumns$1(S, L), [j, R] = useState(() => A ? D : []), [B, M] = useState(((ye = b == null ? void 0 : b.data) == null ? void 0 : ye.selectedRowKeys) || []), [T, N] = useState([]), O = (p == null ? void 0 : p.type) !== "none", q = useRef(/* @__PURE__ */ new Map()), E = useMemo(() => css`
38396
+ })), L = usePaginationProps$2(o, i), O = useTableColumns$1(S, L), [j, R] = useState(() => A ? D : []), [B, M] = useState(((ye = b == null ? void 0 : b.data) == null ? void 0 : ye.selectedRowKeys) || []), [T, N] = useState([]), z = (p == null ? void 0 : p.type) !== "none", q = useRef(/* @__PURE__ */ new Map()), E = useMemo(() => css`
38397
38397
  & > td {
38398
38398
  background-color: ${t.controlItemBgActive} !important;
38399
38399
  }
@@ -38474,14 +38474,14 @@ const Table$1 = withDynamicSchemaProps(
38474
38474
  role: "button",
38475
38475
  "aria-label": `table-index-${re}`,
38476
38476
  className: cls(oe ? "checked" : floatLeftClass, rowSelectCheckboxWrapperClass, {
38477
- [rowSelectCheckboxWrapperClassHover]: O
38477
+ [rowSelectCheckboxWrapperClassHover]: z
38478
38478
  }),
38479
38479
  children: [
38480
38480
  /* @__PURE__ */ jsxs("div", { className: cls(oe ? "checked" : null, rowSelectCheckboxContentClass), children: [
38481
38481
  l && /* @__PURE__ */ jsx(SortHandle$1, { id: W(ne) }),
38482
38482
  c && /* @__PURE__ */ jsx(TableIndex$2, { index: re })
38483
38483
  ] }),
38484
- O && /* @__PURE__ */ jsx(
38484
+ z && /* @__PURE__ */ jsx(
38485
38485
  "div",
38486
38486
  {
38487
38487
  className: cls(
@@ -38506,7 +38506,7 @@ const Table$1 = withDynamicSchemaProps(
38506
38506
  l,
38507
38507
  b,
38508
38508
  W,
38509
- O,
38509
+ z,
38510
38510
  Q,
38511
38511
  L
38512
38512
  ]
@@ -38557,7 +38557,7 @@ const Table$1 = withDynamicSchemaProps(
38557
38557
  onRow: G,
38558
38558
  rowClassName: ge,
38559
38559
  scroll: le,
38560
- columns: z,
38560
+ columns: O,
38561
38561
  expandable: xe,
38562
38562
  field: b,
38563
38563
  size: v
@@ -38611,7 +38611,7 @@ const Table$1 = withDynamicSchemaProps(
38611
38611
  border-radius: 0px;
38612
38612
  `, SubTable = observer$1(
38613
38613
  (e) => {
38614
- var z, j, R;
38614
+ var O, j, R;
38615
38615
  const { openSize: t } = e, { field: o, options: n } = useAssociationFieldContext(), { t: r } = useTranslation(), [i, a] = useState(!1), [l, c] = useState([]), u = useFieldNames$1(e), d = useFieldSchema(), p = useCompile(), m = useLabelUiSchema$1(n, (u == null ? void 0 : u.label) || "label"), h = useCollectionRecord(), g = useCollection(), { allowSelectExistingRecord: f, allowAddnew: C, allowDisassociation: S } = o.componentProps;
38616
38616
  useSubTableSpecialCase({ field: o });
38617
38617
  const b = (B, M) => {
@@ -38646,16 +38646,16 @@ const Table$1 = withDynamicSchemaProps(
38646
38646
  const { setVisible: B } = useActionContext(), { selectedRows: M, setSelectedRows: T } = useContext(RecordPickerContext);
38647
38647
  return {
38648
38648
  onClick() {
38649
- var O;
38649
+ var z;
38650
38650
  M.map((q) => o.value.push(markRecordAsNew(q))), o.onInput(o.value), o.initialValue = o.value, T([]), B(!1);
38651
- const N = Math.ceil(o.value.length / (((O = o.componentProps) == null ? void 0 : O.pageSize) || 10));
38651
+ const N = Math.ceil(o.value.length / (((z = o.componentProps) == null ? void 0 : z.pageSize) || 10));
38652
38652
  A(N);
38653
38653
  }
38654
38654
  };
38655
38655
  }, w = () => {
38656
38656
  const B = (n == null ? void 0 : n.targetKey) || "id", M = (o.value || []).map((N) => N == null ? void 0 : N[B]).filter(Boolean);
38657
38657
  return M.length ? { $and: [{ [`${B}.$ne`]: M }] } : {};
38658
- }, [k, A] = useState(1), [D, $] = useState(((z = o.componentProps) == null ? void 0 : z.pageSize) || 10);
38658
+ }, [k, A] = useState(1), [D, $] = useState(((O = o.componentProps) == null ? void 0 : O.pageSize) || 10);
38659
38659
  useEffect(() => {
38660
38660
  var B;
38661
38661
  $((B = o.componentProps) == null ? void 0 : B.pageSize);
@@ -38841,10 +38841,10 @@ const ReadPretty$7 = observer$1(
38841
38841
  InternalAssociationSelect.displayName = "InternalAssociationSelect";
38842
38842
  const AssociationSelect = InternalAssociationSelect;
38843
38843
  AssociationSelect.Designer = function e() {
38844
- var B, M, T, N, O, q, E, U, G, H, W;
38844
+ var B, M, T, N, z, q, E, U, G, H, W;
38845
38845
  const { getCollectionFields: t, getInterface: o, getCollectionJoinField: n, getCollection: r, isTitleField: i } = useCollectionManager_deprecated(), { getField: a } = useCollection_deprecated(), { form: l } = useFormBlockContext(), c = useField(), u = useFieldSchema(), { t: d } = useTranslation(), p = useFilterByTk(), { dn: m, refresh: h, insertAdjacent: g } = useDesignable(), f = useCompile(), C = useIsShowMultipleSwitch(), { isAllowToSetDefaultValue: S } = useIsAllowToSetDefaultValue(), b = a(u.name) || n(u["x-collection-field"]), y = useFieldComponentOptions(), v = c.address.segments.includes("__form_grid"), I = o(b == null ? void 0 : b.interface), w = (B = I == null ? void 0 : I.validateSchema) == null ? void 0 : B.call(I, u), k = (M = b == null ? void 0 : b.uiSchema) == null ? void 0 : M.title, A = b != null && b.target ? t(b == null ? void 0 : b.target) : [];
38846
38846
  c.title === k || c.title;
38847
- const D = useSortFields(b == null ? void 0 : b.target), $ = ((O = (N = (T = c.componentProps) == null ? void 0 : T.service) == null ? void 0 : N.params) == null ? void 0 : O.sort) || [];
38847
+ const D = useSortFields(b == null ? void 0 : b.target), $ = ((z = (N = (T = c.componentProps) == null ? void 0 : T.service) == null ? void 0 : N.params) == null ? void 0 : z.sort) || [];
38848
38848
  useEffect(() => {
38849
38849
  c.readPretty !== u["x-read-pretty"] && (c.readPretty = !!u["x-read-pretty"]);
38850
38850
  }, [u["x-read-pretty"]]);
@@ -38856,7 +38856,7 @@ AssociationSelect.Designer = function e() {
38856
38856
  direction: "asc"
38857
38857
  });
38858
38858
  c.readPretty || c.required;
38859
- const z = A.filter((X) => i(X)).map((X) => {
38859
+ const O = A.filter((X) => i(X)).map((X) => {
38860
38860
  var J;
38861
38861
  return {
38862
38862
  value: X == null ? void 0 : X.name,
@@ -39207,7 +39207,7 @@ AssociationSelect.Designer = function e() {
39207
39207
  SchemaSettingsSelectItem,
39208
39208
  {
39209
39209
  title: d("Title field"),
39210
- options: z,
39210
+ options: O,
39211
39211
  value: (W = (H = c == null ? void 0 : c.componentProps) == null ? void 0 : H.fieldNames) == null ? void 0 : W.label,
39212
39212
  onChange: (X) => {
39213
39213
  var Q, Z;
@@ -39240,7 +39240,7 @@ AssociationSelect.Designer = function e() {
39240
39240
  ] });
39241
39241
  };
39242
39242
  AssociationSelect.FilterDesigner = function e() {
39243
- var I, w, k, A, D, $, L, z, j, R, B;
39243
+ var I, w, k, A, D, $, L, O, j, R, B;
39244
39244
  const { getCollectionFields: t, getInterface: o, getCollectionJoinField: n } = useCollectionManager_deprecated(), { getField: r } = useCollection_deprecated(), { form: i } = useFormBlockContext(), a = useField(), l = useFieldSchema(), { t: c } = useTranslation(), { dn: u, refresh: d } = useDesignable(), p = useCompile(), m = r(l.name) || n(l["x-collection-field"]), h = o(m == null ? void 0 : m.interface), g = (I = h == null ? void 0 : h.validateSchema) == null ? void 0 : I.call(h, l), f = (w = m == null ? void 0 : m.uiSchema) == null ? void 0 : w.title, C = m != null && m.target ? t(m == null ? void 0 : m.target) : [];
39245
39245
  a.title === f || a.title;
39246
39246
  const S = useSortFields(m == null ? void 0 : m.target), b = ((D = (A = (k = a.componentProps) == null ? void 0 : k.service) == null ? void 0 : A.params) == null ? void 0 : D.sort) || [], y = b == null ? void 0 : b.map((M) => M.startsWith("-") ? {
@@ -39357,8 +39357,8 @@ AssociationSelect.FilterDesigner = function e() {
39357
39357
  if (["percent"].includes(m == null ? void 0 : m.interface))
39358
39358
  for (const E of T)
39359
39359
  (E.maxValue || E.minValue) && (E.percentMode = !0), E.percentFormat && (E.percentFormats = !0);
39360
- const O = _.concat([], ((q = m == null ? void 0 : m.uiSchema) == null ? void 0 : q["x-validator"]) || [], T);
39361
- a.validator = O, l["x-validator"] = T, N["x-validator"] = T, u.emit("patch", {
39360
+ const z = _.concat([], ((q = m == null ? void 0 : m.uiSchema) == null ? void 0 : q["x-validator"]) || [], T);
39361
+ a.validator = z, l["x-validator"] = T, N["x-validator"] = T, u.emit("patch", {
39362
39362
  schema: N
39363
39363
  }), d();
39364
39364
  }
@@ -39395,7 +39395,7 @@ AssociationSelect.FilterDesigner = function e() {
39395
39395
  SchemaSettingsDataScope,
39396
39396
  {
39397
39397
  collectionName: m == null ? void 0 : m.target,
39398
- defaultFilter: ((j = (z = (L = a.componentProps) == null ? void 0 : L.service) == null ? void 0 : z.params) == null ? void 0 : j.filter) || {},
39398
+ defaultFilter: ((j = (O = (L = a.componentProps) == null ? void 0 : L.service) == null ? void 0 : O.params) == null ? void 0 : j.filter) || {},
39399
39399
  form: i,
39400
39400
  onSubmit: ({ filter: M }) => {
39401
39401
  M = removeNullCondition(M), _.set(a.componentProps, "service.params.filter", M), l["x-component-props"] = a.componentProps, u.emit("patch", {
@@ -39499,10 +39499,10 @@ AssociationSelect.FilterDesigner = function e() {
39499
39499
  options: v,
39500
39500
  value: (B = (R = a == null ? void 0 : a.componentProps) == null ? void 0 : R.fieldNames) == null ? void 0 : B.label,
39501
39501
  onChange: (M) => {
39502
- var O, q;
39502
+ var z, q;
39503
39503
  const T = {
39504
39504
  "x-uid": l["x-uid"]
39505
- }, N = F(x(x({}, (q = (O = m == null ? void 0 : m.uiSchema) == null ? void 0 : O["x-component-props"]) == null ? void 0 : q.fieldNames), a.componentProps.fieldNames), {
39505
+ }, N = F(x(x({}, (q = (z = m == null ? void 0 : m.uiSchema) == null ? void 0 : z["x-component-props"]) == null ? void 0 : q.fieldNames), a.componentProps.fieldNames), {
39506
39506
  label: M
39507
39507
  });
39508
39508
  a.componentProps.fieldNames = N, l["x-component-props"] = l["x-component-props"] || {}, l["x-component-props"].fieldNames = N, T["x-component-props"] = l["x-component-props"], u.emit("patch", {
@@ -41041,8 +41041,8 @@ const InternalListBlockProvider = (e) => {
41041
41041
  const d = i ? o.fontSizeLG * o.lineHeightLG + o.padding * 2 - 1 : 0, m = Object.keys(((g = t.parent.properties.actionBar) == null ? void 0 : g.properties) || {}).length > 0 || n ? o.controlHeight + 2 * o.marginLG : o.marginLG, h = u ? o.controlHeight + o.paddingLG + o.marginLG : o.marginLG;
41042
41042
  return e - m - h - d;
41043
41043
  }, InternalList = (e) => {
41044
- var z, j, R;
41045
- const { service: t } = useListBlockContext(), { run: o, params: n } = t, r = useFieldSchema(), i = useDesigner(), a = (z = t == null ? void 0 : t.data) == null ? void 0 : z.meta, { pageSize: l, count: c, hasNext: u, page: d } = a || {}, p = useField(), [m] = useState(/* @__PURE__ */ new Map()), { wrapSSR: h, componentCls: g, hashId: f } = useStyles$5(), C = useListBlockHeight(), { token: S } = theme.useToken(), b = useCallback(
41044
+ var O, j, R;
41045
+ const { service: t } = useListBlockContext(), { run: o, params: n } = t, r = useFieldSchema(), i = useDesigner(), a = (O = t == null ? void 0 : t.data) == null ? void 0 : O.meta, { pageSize: l, count: c, hasNext: u, page: d } = a || {}, p = useField(), [m] = useState(/* @__PURE__ */ new Map()), { wrapSSR: h, componentCls: g, hashId: f } = useStyles$5(), C = useListBlockHeight(), { token: S } = theme.useToken(), b = useCallback(
41046
41046
  (B) => (m.has(B) || m.set(
41047
41047
  B,
41048
41048
  new Schema({
@@ -42202,14 +42202,14 @@ const Menu = observer$1(
42202
42202
  "children"
42203
42203
  ]), { t: d } = useTranslation(), p = useDesigner(), m = useFieldSchema(), { refresh: h } = useDesignable(), g = useAPIClient(), { render: f } = useSchemaInitializerRender(m["x-initializer"], m["x-initializer-props"]), C = useSideMenuRef(), [S, b] = useState(), [y, v] = useState(() => a || (r ? findKeysByUid(m, r) : [])), [I, w] = useState(!1), [k, A] = useState(() => ["inline", "mix"].includes(o) ? l || y : l), D = useMemo(() => {
42204
42204
  var j;
42205
- let z;
42205
+ let O;
42206
42206
  if (n) {
42207
42207
  const R = findKeysByUid(m, n);
42208
- z = (R == null ? void 0 : R[0]) || null;
42208
+ O = (R == null ? void 0 : R[0]) || null;
42209
42209
  } else
42210
- z = (y == null ? void 0 : y[0]) || null;
42211
- if (o === "mix" && z) {
42212
- const R = (j = m.properties) == null ? void 0 : j[z];
42210
+ O = (y == null ? void 0 : y[0]) || null;
42211
+ if (o === "mix" && O) {
42212
+ const R = (j = m.properties) == null ? void 0 : j[O];
42213
42213
  if ((R == null ? void 0 : R["x-component"]) === "Menu.SubMenu")
42214
42214
  return R;
42215
42215
  }
@@ -42220,8 +42220,8 @@ const Menu = observer$1(
42220
42220
  b(void 0);
42221
42221
  return;
42222
42222
  }
42223
- const z = findKeysByUid(m, n);
42224
- b(z), ["inline", "mix"].includes(o) && A(l || z);
42223
+ const O = findKeysByUid(m, n);
42224
+ b(O), ["inline", "mix"].includes(o) && A(l || O);
42225
42225
  }, [n]), useEffect(() => {
42226
42226
  ["inline", "mix"].includes(o) && A(y);
42227
42227
  }, [y]);
@@ -42778,8 +42778,8 @@ const toValue = (e, t) => e == null ? t : e, ReadPrettyRecordPicker = observer$1
42778
42778
  "a",
42779
42779
  {
42780
42780
  onClick: (L) => {
42781
- var z;
42782
- L.stopPropagation(), L.preventDefault(), l(!0), p(w), (z = C == null ? void 0 : C.current) == null || z.setPopoverVisible(!1);
42781
+ var O;
42782
+ L.stopPropagation(), L.preventDefault(), l(!0), p(w), (O = C == null ? void 0 : C.current) == null || O.setPopoverVisible(!1);
42783
42783
  },
42784
42784
  children: $
42785
42785
  }
@@ -44195,18 +44195,18 @@ const TableActionColumnDesigner = (e) => {
44195
44195
  "sort-field"
44196
44196
  );
44197
44197
  }, TableBlockDesigner = () => {
44198
- var A, D, $, L, z, j, R, B, M, T, N;
44199
- const { name: e, title: t } = useCollection_deprecated(), { getCollectionField: o, getCollection: n } = useCollectionManager_deprecated(), r = useField(), i = useFieldSchema(), { form: a } = useFormBlockContext(), l = useSortFields(e), { service: c } = useTableBlockContext(), { t: u } = useTranslation(), { dn: d } = useDesignable(), { componentNamePrefix: p } = useBlockTemplateContext(), m = ((D = (A = i == null ? void 0 : i["x-decorator-props"]) == null ? void 0 : A.params) == null ? void 0 : D.sort) || [], h = (($ = i == null ? void 0 : i["x-decorator-props"]) == null ? void 0 : $.resource) || ((L = i == null ? void 0 : i["x-decorator-props"]) == null ? void 0 : L.association), g = !((z = i == null ? void 0 : i["x-decorator-props"]) != null && z.disableTemplate), f = m == null ? void 0 : m.map((O) => O != null && O.startsWith("-") ? {
44200
- field: O.substring(1),
44198
+ var A, D, $, L, O, j, R, B, M, T, N;
44199
+ const { name: e, title: t } = useCollection_deprecated(), { getCollectionField: o, getCollection: n } = useCollectionManager_deprecated(), r = useField(), i = useFieldSchema(), { form: a } = useFormBlockContext(), l = useSortFields(e), { service: c } = useTableBlockContext(), { t: u } = useTranslation(), { dn: d } = useDesignable(), { componentNamePrefix: p } = useBlockTemplateContext(), m = ((D = (A = i == null ? void 0 : i["x-decorator-props"]) == null ? void 0 : A.params) == null ? void 0 : D.sort) || [], h = (($ = i == null ? void 0 : i["x-decorator-props"]) == null ? void 0 : $.resource) || ((L = i == null ? void 0 : i["x-decorator-props"]) == null ? void 0 : L.association), g = !((O = i == null ? void 0 : i["x-decorator-props"]) != null && O.disableTemplate), f = m == null ? void 0 : m.map((z) => z != null && z.startsWith("-") ? {
44200
+ field: z.substring(1),
44201
44201
  direction: "desc"
44202
44202
  } : {
44203
- field: O,
44203
+ field: z,
44204
44204
  direction: "asc"
44205
44205
  }), C = useSchemaTemplate(), S = useCollection_deprecated(), { dragSort: b, resource: y } = r.decoratorProps, v = y && o(y), I = y != null && y.includes(".") ? (j = n(v == null ? void 0 : v.target)) == null ? void 0 : j.tree : !!(S != null && S.tree), w = useCallback(
44206
- ({ filter: O }) => {
44207
- O = removeNullCondition(O);
44206
+ ({ filter: z }) => {
44207
+ z = removeNullCondition(z);
44208
44208
  const q = r.decoratorProps.params || {};
44209
- q.filter = O, r.decoratorProps.params = q, i["x-decorator-props"].params = q, d.emit("patch", {
44209
+ q.filter = z, r.decoratorProps.params = q, i["x-decorator-props"].params = q, d.emit("patch", {
44210
44210
  schema: {
44211
44211
  "x-uid": i["x-uid"],
44212
44212
  "x-decorator-props": i["x-decorator-props"]
@@ -44224,11 +44224,11 @@ const TableActionColumnDesigner = (e) => {
44224
44224
  title: u("Tree table"),
44225
44225
  defaultChecked: !0,
44226
44226
  checked: I ? r.decoratorProps.treeTable : !1,
44227
- onChange: (O) => {
44227
+ onChange: (z) => {
44228
44228
  var E;
44229
- r.decoratorProps.treeTable = O, i["x-decorator-props"].treeTable = O;
44229
+ r.decoratorProps.treeTable = z, i["x-decorator-props"].treeTable = z;
44230
44230
  const q = F(x({}, (E = c.params) == null ? void 0 : E[0]), {
44231
- tree: O ? !0 : null
44231
+ tree: z ? !0 : null
44232
44232
  });
44233
44233
  d.emit("patch", {
44234
44234
  schema: i
@@ -44241,13 +44241,13 @@ const TableActionColumnDesigner = (e) => {
44241
44241
  {
44242
44242
  title: u("Enable drag and drop sorting"),
44243
44243
  checked: r.decoratorProps.dragSort,
44244
- onChange: (O) => V(void 0, null, function* () {
44245
- O && v && (yield k.resource("collections.fields", v.collectionName).update({
44244
+ onChange: (z) => V(void 0, null, function* () {
44245
+ z && v && (yield k.resource("collections.fields", v.collectionName).update({
44246
44246
  filterByTk: v.name,
44247
44247
  values: {
44248
44248
  sortable: !0
44249
44249
  }
44250
- })), r.decoratorProps.dragSort = O, i["x-decorator-props"].dragSort = O, d.emit("patch", {
44250
+ })), r.decoratorProps.dragSort = z, i["x-decorator-props"].dragSort = z, d.emit("patch", {
44251
44251
  schema: {
44252
44252
  "x-uid": i["x-uid"],
44253
44253
  "x-decorator-props": i["x-decorator-props"]
@@ -44341,9 +44341,9 @@ const TableActionColumnDesigner = (e) => {
44341
44341
  }
44342
44342
  }
44343
44343
  },
44344
- onSubmit: ({ sort: O }) => {
44344
+ onSubmit: ({ sort: z }) => {
44345
44345
  var U;
44346
- const q = O.map((G) => G.direction === "desc" ? `-${G.field}` : G.field), E = r.decoratorProps.params || {};
44346
+ const q = z.map((G) => G.direction === "desc" ? `-${G.field}` : G.field), E = r.decoratorProps.params || {};
44347
44347
  E.sort = q, r.decoratorProps.params = E, i["x-decorator-props"].params = E, d.emit("patch", {
44348
44348
  schema: {
44349
44349
  "x-uid": i["x-uid"],
@@ -44367,10 +44367,10 @@ const TableActionColumnDesigner = (e) => {
44367
44367
  { label: "100", value: 100 },
44368
44368
  { label: "200", value: 200 }
44369
44369
  ],
44370
- onChange: (O) => {
44370
+ onChange: (z) => {
44371
44371
  var E;
44372
44372
  const q = r.decoratorProps.params || {};
44373
- q.pageSize = O, r.decoratorProps.params = q, i["x-decorator-props"].params = q, c.run(F(x({}, (E = c.params) == null ? void 0 : E[0]), { pageSize: O, page: 1 })), d.emit("patch", {
44373
+ q.pageSize = z, r.decoratorProps.params = q, i["x-decorator-props"].params = q, c.run(F(x({}, (E = c.params) == null ? void 0 : E[0]), { pageSize: z, page: 1 })), d.emit("patch", {
44374
44374
  schema: {
44375
44375
  "x-uid": i["x-uid"],
44376
44376
  "x-decorator-props": i["x-decorator-props"]
@@ -44389,12 +44389,12 @@ const TableActionColumnDesigner = (e) => {
44389
44389
  { label: u("Middle"), value: "middle" },
44390
44390
  { label: u("Small"), value: "small" }
44391
44391
  ],
44392
- onChange: (O) => {
44392
+ onChange: (z) => {
44393
44393
  const q = i.reduceProperties((E, U) => {
44394
44394
  if (U["x-component"] === "TableV2")
44395
44395
  return U;
44396
44396
  }, null);
44397
- q["x-component-props"] = q["x-component-props"] || {}, q["x-component-props"].size = O, d.emit("patch", {
44397
+ q["x-component-props"] = q["x-component-props"] || {}, q["x-component-props"].size = z, d.emit("patch", {
44398
44398
  schema: {
44399
44399
  "x-uid": q["x-uid"],
44400
44400
  "x-decorator-props": q["x-component-props"]
@@ -44441,7 +44441,7 @@ TableField.ActionBar = observer$1(
44441
44441
  { displayName: "TableField.ActionBar" }
44442
44442
  );
44443
44443
  const TableSelectorDesigner = () => {
44444
- var k, A, D, $, L, z;
44444
+ var k, A, D, $, L, O;
44445
44445
  const { name: e, title: t } = useCollection_deprecated(), { getCollectionJoinField: o, getAllCollectionsInheritChain: n } = useCollectionManager_deprecated(), r = useField(), i = useFieldSchema(), { form: a } = useFormBlockContext(), l = useSortFields(e), { service: c, extraFilter: u } = useTableSelectorContext(), { t: d } = useTranslation(), { dn: p } = useDesignable(), m = ((A = (k = i == null ? void 0 : i["x-decorator-props"]) == null ? void 0 : k.params) == null ? void 0 : A.sort) || [], h = recursiveParent$1(i, "CollectionField"), g = o(h == null ? void 0 : h["x-collection-field"]), f = m == null ? void 0 : m.map((j) => j.startsWith("-") ? {
44446
44446
  field: j.substring(1),
44447
44447
  direction: "desc"
@@ -44599,7 +44599,7 @@ const TableSelectorDesigner = () => {
44599
44599
  SchemaSettingsSelectItem,
44600
44600
  {
44601
44601
  title: d("Records per page"),
44602
- value: ((z = (L = r.decoratorProps) == null ? void 0 : L.params) == null ? void 0 : z.pageSize) || 20,
44602
+ value: ((O = (L = r.decoratorProps) == null ? void 0 : L.params) == null ? void 0 : O.pageSize) || 20,
44603
44603
  options: [
44604
44604
  { label: "5", value: 5 },
44605
44605
  { label: "10", value: 10 },
@@ -46555,14 +46555,14 @@ const useCurrentAppInfo = () => useContext(CurrentAppInfoContext), CurrentAppInf
46555
46555
  const t = useRecord();
46556
46556
  return /* @__PURE__ */ jsx(AddFieldAction, x({ item: t }, e));
46557
46557
  }, AddFieldAction = (e) => {
46558
- var z, j;
46559
- const { scope: t, getContainer: o, item: n, children: r, trigger: i, align: a, database: l } = e, { getInterface: c, getTemplate: u, collections: d, getCollection: p } = useCollectionManager_deprecated(), [m, h] = useState(!1), [g, f] = useState(), [C, S] = useState({}), b = useCompile(), { t: y } = useTranslation(), { isDialect: v } = useDialect(), I = useFieldInterfaceOptions(), w = ((j = (z = p(n.name)) == null ? void 0 : z.options) == null ? void 0 : j.fields) || n.fields || [], k = useMemo(() => d.map((R) => ({
46558
+ var O, j;
46559
+ const { scope: t, getContainer: o, item: n, children: r, trigger: i, align: a, database: l } = e, { getInterface: c, getTemplate: u, collections: d, getCollection: p } = useCollectionManager_deprecated(), [m, h] = useState(!1), [g, f] = useState(), [C, S] = useState({}), b = useCompile(), { t: y } = useTranslation(), { isDialect: v } = useDialect(), I = useFieldInterfaceOptions(), w = ((j = (O = p(n.name)) == null ? void 0 : O.options) == null ? void 0 : j.fields) || n.fields || [], k = useMemo(() => d.map((R) => ({
46560
46560
  label: b(R.title),
46561
46561
  value: R.name
46562
46562
  })), []), A = useCallback(() => {
46563
46563
  const { availableFieldInterfaces: R } = u(n.template) || {}, { exclude: B, include: M } = R || {}, T = [];
46564
46564
  return I.forEach((N) => {
46565
- var O;
46565
+ var z;
46566
46566
  if (N.key === "systemInfo")
46567
46567
  T.push(F(x({}, N), {
46568
46568
  children: N.children.filter((q) => q.hidden ? !1 : q.value === "tableoid" ? M != null && M.length ? M.includes(q.value) : (l == null ? void 0 : l.dialect) === "postgres" : typeof n[q.value] == "boolean" ? n[q.value] : !0)
@@ -46575,7 +46575,7 @@ const useCurrentAppInfo = () => useContext(CurrentAppInfoContext), CurrentAppInf
46575
46575
  U && q.push(F(x({}, U), {
46576
46576
  targetScope: E == null ? void 0 : E.targetScope
46577
46577
  }));
46578
- }) : B != null && B.length ? q = (O = N == null ? void 0 : N.children) == null ? void 0 : O.filter((E) => !B.includes(E.name)) : q = N == null ? void 0 : N.children, q != null && q.length && T.push(F(x({}, N), {
46578
+ }) : B != null && B.length ? q = (z = N == null ? void 0 : N.children) == null ? void 0 : z.filter((E) => !B.includes(E.name)) : q = N == null ? void 0 : N.children, q != null && q.length && T.push(F(x({}, N), {
46579
46579
  children: q
46580
46580
  }));
46581
46581
  }
@@ -46754,14 +46754,14 @@ const useCurrentAppInfo = () => useContext(CurrentAppInfoContext), CurrentAppInf
46754
46754
  "a",
46755
46755
  F(x({}, a), {
46756
46756
  onClick: () => V(void 0, null, function* () {
46757
- var L, z;
46757
+ var L, O;
46758
46758
  const { data: k } = yield g.resource("collections.fields", n.collectionName).get({
46759
46759
  filterByTk: n.name,
46760
46760
  appends: ["reverseField"]
46761
46761
  });
46762
46762
  b(k == null ? void 0 : k.data);
46763
46763
  const A = l(n.interface), D = cloneDeep(k == null ? void 0 : k.data) || {};
46764
- D != null && D.reverseField || (D.autoCreateReverseField = !1, D.reverseField = (L = A == null ? void 0 : A.default) == null ? void 0 : L.reverseField, set(D.reverseField, "name", `f_${uid()}`), set(D.reverseField, "uiSchema.title", (z = n.__parent) == null ? void 0 : z.title));
46764
+ D != null && D.reverseField || (D.autoCreateReverseField = !1, D.reverseField = (L = A == null ? void 0 : A.default) == null ? void 0 : L.reverseField, set(D.reverseField, "name", `f_${uid()}`), set(D.reverseField, "uiSchema.title", (O = n.__parent) == null ? void 0 : O.title));
46765
46765
  const $ = getSchema$7(A, D, n, C);
46766
46766
  h($), p(!0);
46767
46767
  }),
@@ -46867,7 +46867,7 @@ const useCurrentAppInfo = () => useContext(CurrentAppInfoContext), CurrentAppInf
46867
46867
  run() {
46868
46868
  return V(this, null, function* () {
46869
46869
  yield j.submit();
46870
- const O = cloneDeep(j.values), q = omit$1(O, [
46870
+ const z = cloneDeep(j.values), q = omit$1(z, [
46871
46871
  "key",
46872
46872
  "uiSchemaUid",
46873
46873
  "collectionName",
@@ -46885,7 +46885,7 @@ const useCurrentAppInfo = () => useContext(CurrentAppInfoContext), CurrentAppInf
46885
46885
  });
46886
46886
  }
46887
46887
  };
46888
- }, z = useMemo(() => {
46888
+ }, O = useMemo(() => {
46889
46889
  var j;
46890
46890
  return (n == null ? void 0 : n.fields) || ((j = d(n.collectionName)) == null ? void 0 : j.options.fields.filter((R) => ["string", "bigInt", "integer"].includes(R.type)).map((R) => {
46891
46891
  var B;
@@ -46938,7 +46938,7 @@ const useCurrentAppInfo = () => useContext(CurrentAppInfoContext), CurrentAppInf
46938
46938
  isOverride: !0,
46939
46939
  targetScope: { target: I(l), through: I(c) },
46940
46940
  collections: $,
46941
- scopeKeyOptions: z
46941
+ scopeKeyOptions: O
46942
46942
  }, t)
46943
46943
  }
46944
46944
  )
@@ -47389,14 +47389,14 @@ const getSchema$4 = (e, t, o) => {
47389
47389
  };
47390
47390
  })
47391
47391
  };
47392
- }), O = (q = M.fields.filter((E) => !["obo", "oho", "m2m", "o2m"].includes(E == null ? void 0 : E.interface))) == null ? void 0 : q.map((E) => {
47392
+ }), z = (q = M.fields.filter((E) => !["obo", "oho", "m2m", "o2m"].includes(E == null ? void 0 : E.interface))) == null ? void 0 : q.map((E) => {
47393
47393
  var U;
47394
47394
  return { value: E.name, key: E.name, label: l(((U = E.uiSchema) == null ? void 0 : U.title) || E.name) };
47395
47395
  }).concat(N);
47396
47396
  R.push({
47397
47397
  value: B,
47398
47398
  label: l(M.title || M.name),
47399
- children: O
47399
+ children: z
47400
47400
  });
47401
47401
  }), h(R);
47402
47402
  }, [g, t]), useEffect(() => {
@@ -47405,11 +47405,11 @@ const getSchema$4 = (e, t, o) => {
47405
47405
  if (R) {
47406
47406
  u(!1), p([]);
47407
47407
  const T = (M = Object.values((B = R == null ? void 0 : R.data) == null ? void 0 : B.fields)) == null ? void 0 : M.map((N) => {
47408
- var O, q;
47408
+ var z, q;
47409
47409
  if (N.source) {
47410
47410
  const E = (i == null ? void 0 : i.data.find((U) => U.name === N.name)) || N;
47411
47411
  return F(x({}, N), {
47412
- uiSchema: F(x({}, omit$1(E.uiSchema, "rawTitle")), { title: ((O = E.uiSchema) == null ? void 0 : O.title) || E.name })
47412
+ uiSchema: F(x({}, omit$1(E.uiSchema, "rawTitle")), { title: ((z = E.uiSchema) == null ? void 0 : z.title) || E.name })
47413
47413
  });
47414
47414
  } else {
47415
47415
  const E = (i == null ? void 0 : i.data.find((U) => U.name === N.name)) || N;
@@ -47419,16 +47419,16 @@ const getSchema$4 = (e, t, o) => {
47419
47419
  }
47420
47420
  });
47421
47421
  b.value = T, setTimeout(() => {
47422
- var N, O, q;
47423
- p(T), y.setValuesIn("sources", (N = R.data) == null ? void 0 : N.sources), f((O = R.data) == null ? void 0 : O.sources), S((q = R == null ? void 0 : R.data) == null ? void 0 : q.unsupportedFields);
47422
+ var N, z, q;
47423
+ p(T), y.setValuesIn("sources", (N = R.data) == null ? void 0 : N.sources), f((z = R.data) == null ? void 0 : z.sources), S((q = R == null ? void 0 : R.data) == null ? void 0 : q.unsupportedFields);
47424
47424
  });
47425
47425
  }
47426
47426
  }).catch);
47427
47427
  }, [t]);
47428
- const z = (R, B) => {
47428
+ const O = (R, B) => {
47429
47429
  d.splice(B, 1, R), p(d), b.value = d.map((M) => {
47430
- var N, O, q;
47431
- const T = typeof M.source == "string" ? M.source : (q = (O = (N = M.source) == null ? void 0 : N.filter) == null ? void 0 : O.call(N, Boolean)) == null ? void 0 : q.join(".");
47430
+ var N, z, q;
47431
+ const T = typeof M.source == "string" ? M.source : (q = (z = (N = M.source) == null ? void 0 : N.filter) == null ? void 0 : z.call(N, Boolean)) == null ? void 0 : q.join(".");
47432
47432
  return F(x({}, M), {
47433
47433
  source: T
47434
47434
  });
@@ -47454,8 +47454,8 @@ const getSchema$4 = (e, t, o) => {
47454
47454
  options: D(m),
47455
47455
  onChange: (T, N) => {
47456
47456
  var q;
47457
- const O = (q = w(T == null ? void 0 : T[0])) == null ? void 0 : q.find((E) => E.name === last(T));
47458
- z(F(x({}, B), { source: T, uiSchema: O == null ? void 0 : O.uiSchema }), M);
47457
+ const z = (q = w(T == null ? void 0 : T[0])) == null ? void 0 : q.find((E) => E.name === last(T));
47458
+ O(F(x({}, B), { source: T, uiSchema: z == null ? void 0 : z.uiSchema }), M);
47459
47459
  },
47460
47460
  placeholder: l("Select field source")
47461
47461
  }
@@ -47475,7 +47475,7 @@ const getSchema$4 = (e, t, o) => {
47475
47475
  popupMatchSelectWidth: !1,
47476
47476
  style: { width: "100%" },
47477
47477
  options: (T == null ? void 0 : T.possibleTypes.map((N) => ({ label: N, value: N }))) || [],
47478
- onChange: (N) => z(F(x({}, T), { type: N }), M)
47478
+ onChange: (N) => O(F(x({}, T), { type: N }), M)
47479
47479
  }
47480
47480
  );
47481
47481
  }
@@ -47493,12 +47493,12 @@ const getSchema$4 = (e, t, o) => {
47493
47493
  defaultValue: R,
47494
47494
  style: { width: "100%" },
47495
47495
  popupMatchSelectWidth: !1,
47496
- onChange: (O) => {
47496
+ onChange: (z) => {
47497
47497
  var E;
47498
- const q = I(O);
47499
- z(F(x({}, T), { interface: O, uiSchema: (E = q == null ? void 0 : q.default) == null ? void 0 : E.uiSchema }), M);
47498
+ const q = I(z);
47499
+ O(F(x({}, T), { interface: z, uiSchema: (E = q == null ? void 0 : q.default) == null ? void 0 : E.uiSchema }), M);
47500
47500
  },
47501
- children: N.map((O) => /* @__PURE__ */ jsx(Select$1.OptGroup, { label: D(O.label), children: O.children.map((q) => /* @__PURE__ */ jsx(Select$1.Option, { value: q.name, children: D(q.label) }, q.value)) }, O.key))
47501
+ children: N.map((z) => /* @__PURE__ */ jsx(Select$1.OptGroup, { label: D(z.label), children: z.children.map((q) => /* @__PURE__ */ jsx(Select$1.Option, { value: q.name, children: D(q.label) }, q.value)) }, z.key))
47502
47502
  }
47503
47503
  );
47504
47504
  }
@@ -47515,8 +47515,8 @@ const getSchema$4 = (e, t, o) => {
47515
47515
  Input$3,
47516
47516
  {
47517
47517
  defaultValue: ((N = T == null ? void 0 : T.uiSchema) == null ? void 0 : N.title) || R,
47518
- onChange: (O) => z(
47519
- F(x({}, T), { uiSchema: F(x({}, omit$1(T == null ? void 0 : T.uiSchema, "rawTitle")), { title: O.target.value }) }),
47518
+ onChange: (z) => O(
47519
+ F(x({}, T), { uiSchema: F(x({}, omit$1(T == null ? void 0 : T.uiSchema, "rawTitle")), { title: z.target.value }) }),
47520
47520
  M
47521
47521
  )
47522
47522
  }
@@ -47570,15 +47570,15 @@ const mapFields = ["lineString", "point", "circle", "polygon"], PreviewTable$1 =
47570
47570
  }, b = (y) => {
47571
47571
  var v;
47572
47572
  return (v = y.filter((I) => I.source || I.interface)) == null ? void 0 : v.map((I) => {
47573
- var $, L, z, j, R, B;
47574
- const w = typeof (I == null ? void 0 : I.source) == "string" ? ($ = I == null ? void 0 : I.source) == null ? void 0 : $.split(".") : I == null ? void 0 : I.source, k = (z = (L = h(w == null ? void 0 : w[0])) == null ? void 0 : L.find((M) => M.name === (w == null ? void 0 : w[1]))) == null ? void 0 : z.uiSchema, A = ((j = I == null ? void 0 : I.uiSchema) == null ? void 0 : j.title) || (k == null ? void 0 : k.title) || I.name, D = I.source ? k : (B = (R = m(I.interface)) == null ? void 0 : R.default) == null ? void 0 : B.uiSchema;
47573
+ var $, L, O, j, R, B;
47574
+ const w = typeof (I == null ? void 0 : I.source) == "string" ? ($ = I == null ? void 0 : I.source) == null ? void 0 : $.split(".") : I == null ? void 0 : I.source, k = (O = (L = h(w == null ? void 0 : w[0])) == null ? void 0 : L.find((M) => M.name === (w == null ? void 0 : w[1]))) == null ? void 0 : O.uiSchema, A = ((j = I == null ? void 0 : I.uiSchema) == null ? void 0 : j.title) || (k == null ? void 0 : k.title) || I.name, D = I.source ? k : (B = (R = m(I.interface)) == null ? void 0 : R.default) == null ? void 0 : B.uiSchema;
47575
47575
  return {
47576
47576
  title: u(A),
47577
47577
  dataIndex: I.name,
47578
47578
  key: I.name,
47579
47579
  width: 200,
47580
47580
  render: (M, T, N) => {
47581
- const O = T[I.name], q = {
47581
+ const z = T[I.name], q = {
47582
47582
  type: "object",
47583
47583
  properties: {
47584
47584
  [I.name]: {
@@ -47586,7 +47586,7 @@ const mapFields = ["lineString", "point", "circle", "polygon"], PreviewTable$1 =
47586
47586
  "x-component": D && w ? "CollectionField" : "Input",
47587
47587
  "x-read-pretty": !0,
47588
47588
  "x-collection-field": w == null ? void 0 : w.join("."),
47589
- default: I.interface === "json" ? JSON.stringify(O) : O
47589
+ default: I.interface === "json" ? JSON.stringify(z) : z
47590
47590
  }
47591
47591
  }
47592
47592
  };
@@ -47821,9 +47821,9 @@ const AsyncDataProvider = (e) => {
47821
47821
  if (useEffect(() => {
47822
47822
  var $;
47823
47823
  const A = /* @__PURE__ */ new Map();
47824
- i || (a && a.length ? Object.entries((a == null ? void 0 : a[0]) || {}).forEach(([L, z]) => {
47824
+ i || (a && a.length ? Object.entries((a == null ? void 0 : a[0]) || {}).forEach(([L, O]) => {
47825
47825
  var T;
47826
- const j = l[L], R = inferInterface(L, z), B = (T = C.current(R)) == null ? void 0 : T.default, M = (j == null ? void 0 : j.uiSchema) || (B == null ? void 0 : B.uiSchema) || {};
47826
+ const j = l[L], R = inferInterface(L, O), B = (T = C.current(R)) == null ? void 0 : T.default, M = (j == null ? void 0 : j.uiSchema) || (B == null ? void 0 : B.uiSchema) || {};
47827
47827
  A.set(L, {
47828
47828
  name: L,
47829
47829
  interface: (j == null ? void 0 : j.interface) || R,
@@ -47834,13 +47834,13 @@ const AsyncDataProvider = (e) => {
47834
47834
  }, M)
47835
47835
  });
47836
47836
  }) : Object.entries(l || {}).forEach(
47837
- ([L, z]) => A.set(L, F(x({
47837
+ ([L, O]) => A.set(L, F(x({
47838
47838
  name: L,
47839
47839
  type: "string"
47840
- }, z), {
47840
+ }, O), {
47841
47841
  uiSchema: x({
47842
47842
  title: L
47843
- }, (z == null ? void 0 : z.uiSchema) || {})
47843
+ }, (O == null ? void 0 : O.uiSchema) || {})
47844
47844
  }))
47845
47845
  )), ($ = c.value) != null && $.length && c.value.forEach((L) => {
47846
47846
  A.has(L.name) && A.set(L.name, L);
@@ -47861,9 +47861,9 @@ const AsyncDataProvider = (e) => {
47861
47861
  const $ = [...t];
47862
47862
  $.splice(D, 1, A), o($), c.setValue(
47863
47863
  $.map((L) => {
47864
- var z, j, R;
47864
+ var O, j, R;
47865
47865
  return F(x({}, L), {
47866
- source: typeof L.source == "string" ? L.source : ((R = (j = (z = L.source) == null ? void 0 : z.filter) == null ? void 0 : j.call(z, Boolean)) == null ? void 0 : R.join(".")) || null
47866
+ source: typeof L.source == "string" ? L.source : ((R = (j = (O = L.source) == null ? void 0 : O.filter) == null ? void 0 : j.call(O, Boolean)) == null ? void 0 : R.join(".")) || null
47867
47867
  });
47868
47868
  })
47869
47869
  );
@@ -47888,11 +47888,11 @@ const AsyncDataProvider = (e) => {
47888
47888
  allowClear: !0,
47889
47889
  options: d(f),
47890
47890
  placeholder: e("Select field source"),
47891
- onChange: (z) => {
47892
- let j = l[z == null ? void 0 : z[1]];
47893
- j != null && j.interface || (j = m((z == null ? void 0 : z.join(".")) || "")), b(
47891
+ onChange: (O) => {
47892
+ let j = l[O == null ? void 0 : O[1]];
47893
+ j != null && j.interface || (j = m((O == null ? void 0 : O.join(".")) || "")), b(
47894
47894
  F(x({}, L), {
47895
- source: z,
47895
+ source: O,
47896
47896
  interface: j == null ? void 0 : j.interface,
47897
47897
  type: j == null ? void 0 : j.type,
47898
47898
  uiSchema: j == null ? void 0 : j.uiSchema
@@ -47910,16 +47910,16 @@ const AsyncDataProvider = (e) => {
47910
47910
  key: "interface",
47911
47911
  width: 150,
47912
47912
  render: (A, D, $) => {
47913
- var z;
47913
+ var O;
47914
47914
  const L = t[$];
47915
- return L.source ? /* @__PURE__ */ jsx(Tag, { children: d((z = p(A)) == null ? void 0 : z.title) || A }) : /* @__PURE__ */ jsx(
47915
+ return L.source ? /* @__PURE__ */ jsx(Tag, { children: d((O = p(A)) == null ? void 0 : O.title) || A }) : /* @__PURE__ */ jsx(
47916
47916
  Select$1,
47917
47917
  {
47918
47918
  defaultValue: L.interface || "input",
47919
47919
  style: { width: "100%" },
47920
47920
  popupMatchSelectWidth: !1,
47921
47921
  onChange: (j) => {
47922
- var B, M, T, N, O;
47922
+ var B, M, T, N, z;
47923
47923
  const R = p(j);
47924
47924
  b(
47925
47925
  F(x({}, L), {
@@ -47927,7 +47927,7 @@ const AsyncDataProvider = (e) => {
47927
47927
  uiSchema: F(x({}, (B = R == null ? void 0 : R.default) == null ? void 0 : B.uiSchema), {
47928
47928
  title: ((T = (M = R == null ? void 0 : R.default) == null ? void 0 : M.uiSchema) == null ? void 0 : T.title) || ((N = L.uiSchema) == null ? void 0 : N.title)
47929
47929
  }),
47930
- type: (O = R == null ? void 0 : R.default) == null ? void 0 : O.type
47930
+ type: (z = R == null ? void 0 : R.default) == null ? void 0 : z.type
47931
47931
  }),
47932
47932
  $
47933
47933
  );
@@ -47944,12 +47944,12 @@ const AsyncDataProvider = (e) => {
47944
47944
  key: "title",
47945
47945
  width: 180,
47946
47946
  render: (A, D, $) => {
47947
- var z, j;
47947
+ var O, j;
47948
47948
  const L = t[$];
47949
47949
  return /* @__PURE__ */ jsx(
47950
47950
  Input$3,
47951
47951
  {
47952
- value: ((z = L.uiSchema) == null ? void 0 : z.title) || A,
47952
+ value: ((O = L.uiSchema) == null ? void 0 : O.title) || A,
47953
47953
  defaultValue: ((j = L.uiSchema) == null ? void 0 : j.title) !== void 0 ? L.uiSchema.title : L == null ? void 0 : L.name,
47954
47954
  onChange: (R) => b(F(x({}, L), { uiSchema: F(x({}, L == null ? void 0 : L.uiSchema), { title: R.target.value }) }), $)
47955
47955
  }
@@ -54155,13 +54155,13 @@ const RolesResourcesActions = connect((e) => {
54155
54155
  onChange: () => {
54156
54156
  const L = m[k.name] || {
54157
54157
  name: k.name
54158
- }, z = L.fields || [];
54158
+ }, O = L.fields || [];
54159
54159
  if (D) {
54160
- const j = z.indexOf($.name);
54161
- z.splice(j, 1);
54160
+ const j = O.indexOf($.name);
54161
+ O.splice(j, 1);
54162
54162
  } else
54163
- z.push($.name);
54164
- L.fields = z, m[k.name] = L, o(Object.values(m));
54163
+ O.push($.name);
54164
+ L.fields = O, m[k.name] = L, o(Object.values(m));
54165
54165
  }
54166
54166
  }
54167
54167
  )
@@ -56021,8 +56021,8 @@ const useMenuProps = () => {
56021
56021
  var D, $, L;
56022
56022
  const A = (($ = Object.values(((D = f == null ? void 0 : f.root) == null ? void 0 : D.properties) || {}).shift()) == null ? void 0 : $.properties) || ((L = v == null ? void 0 : v.data) == null ? void 0 : L.properties);
56023
56023
  if (h.current) {
56024
- const z = A && Object.values(A).find((R) => R["x-uid"] === l.name && R["x-component"] === "Menu.Item"), j = c == null ? void 0 : c.pathname.includes("/settings");
56025
- z || j ? h.current.style.display = "none" : h.current.style.display = "block";
56024
+ const O = A && Object.values(A).find((R) => R["x-uid"] === l.name && R["x-component"] === "Menu.Item"), j = c == null ? void 0 : c.pathname.includes("/settings");
56025
+ O || j ? h.current.style.display = "none" : h.current.style.display = "block";
56026
56026
  }
56027
56027
  }, [v == null ? void 0 : v.data, l.name, h, c == null ? void 0 : c.pathname]);
56028
56028
  const w = useMemo(() => {
@@ -56992,7 +56992,7 @@ const ActionInitializerItem = (e) => {
56992
56992
  ), I = f || (i == null ? void 0 : i.targetKey) || "id", w = C || ((U = (E = a["x-component-props"]) == null ? void 0 : E.fieldNames) == null ? void 0 : U.label) || I, k = {
56993
56993
  title: w || I,
56994
56994
  key: I
56995
- }, [A, D] = useState([]), [$, L] = useState(a.default || []), [z, j] = useState(!0), R = useLabelUiSchema(i, (k == null ? void 0 : k.title) || "label");
56995
+ }, [A, D] = useState([]), [$, L] = useState(a.default || []), [O, j] = useState(!0), R = useLabelUiSchema(i, (k == null ? void 0 : k.title) || "label");
56996
56996
  if (useEffect(() => {
56997
56997
  a.default && (d(a.default), L(a.default));
56998
56998
  }, [a.default, d]), !i)
@@ -57009,7 +57009,7 @@ const ActionInitializerItem = (e) => {
57009
57009
  })), y(!b), W.stopPropagation();
57010
57010
  }, N = (W) => {
57011
57011
  W.stopPropagation();
57012
- }, O = (W) => {
57012
+ }, z = (W) => {
57013
57013
  m(W);
57014
57014
  }, q = (H = a.title) != null ? H : (G = i == null ? void 0 : i.uiSchema) == null ? void 0 : G.title;
57015
57015
  return t(
@@ -57036,7 +57036,7 @@ const ActionInitializerItem = (e) => {
57036
57036
  placeholder: "Search...",
57037
57037
  className: "search",
57038
57038
  onClick: N,
57039
- onChange: O
57039
+ onChange: z
57040
57040
  }
57041
57041
  ) : c(q) }),
57042
57042
  /* @__PURE__ */ jsx(
@@ -57057,7 +57057,7 @@ const ActionInitializerItem = (e) => {
57057
57057
  className: "Tree",
57058
57058
  onExpand: B,
57059
57059
  expandedKeys: A,
57060
- autoExpandParent: z,
57060
+ autoExpandParent: O,
57061
57061
  treeData: u,
57062
57062
  onSelect: M,
57063
57063
  fieldNames: k,
@@ -57469,8 +57469,8 @@ const DataBlockInitializer = (e) => {
57469
57469
  if (f)
57470
57470
  return f(M);
57471
57471
  if (T.template) {
57472
- const O = yield w(T);
57473
- y(t ? t(O, { item: T, fromOthersInPopup: N }) : O);
57472
+ const z = yield w(T);
57473
+ y(t ? t(z, { item: T, fromOthersInPopup: N }) : z);
57474
57474
  } else
57475
57475
  o && o({ item: T, fromOthersInPopup: N });
57476
57476
  v(!1);
@@ -57490,7 +57490,7 @@ const DataBlockInitializer = (e) => {
57490
57490
  onClick: k,
57491
57491
  currentText: S,
57492
57492
  otherText: b
57493
- }), D = useGetSchemaInitializerMenuItems(k), $ = useMemo(() => D(A, i), [D, A, i]), [L, z] = useState([]), j = useMenuSearch({ data: $, openKeys: L, hideSearch: u }), R = useMemo(() => {
57493
+ }), D = useGetSchemaInitializerMenuItems(k), $ = useMemo(() => D(A, i), [D, A, i]), [L, O] = useState([]), j = useMenuSearch({ data: $, openKeys: L, hideSearch: u }), R = useMemo(() => {
57494
57494
  let M = j.filter((T) => T.key !== "search" && T.key !== "empty");
57495
57495
  return p && M.length === 1 ? M = M[0].children : M = j, [
57496
57496
  {
@@ -57508,7 +57508,7 @@ const DataBlockInitializer = (e) => {
57508
57508
  SchemaInitializerMenu,
57509
57509
  {
57510
57510
  onOpenChange: (M) => {
57511
- z(M);
57511
+ O(M);
57512
57512
  },
57513
57513
  items: R
57514
57514
  }