@nocobase/client 1.3.9-beta → 1.3.11-beta

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.
package/es/index.mjs CHANGED
@@ -4083,7 +4083,7 @@ function addAppVersion(e, t) {
4083
4083
  addAppVersion((n = e.properties) == null ? void 0 : n[o], t);
4084
4084
  }), e;
4085
4085
  }
4086
- const name = "@nocobase/client", version$1 = "1.3.9-beta", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
4086
+ const name = "@nocobase/client", version$1 = "1.3.11-beta", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
4087
4087
  "@ahooksjs/use-url-state": "3.5.1",
4088
4088
  "@ant-design/cssinjs": "^1.11.1",
4089
4089
  "@ant-design/icons": "^5.1.4",
@@ -4104,9 +4104,9 @@ const name = "@nocobase/client", version$1 = "1.3.9-beta", license = "AGPL-3.0",
4104
4104
  "@formily/reactive-react": "^2.2.27",
4105
4105
  "@formily/shared": "^2.2.27",
4106
4106
  "@formily/validator": "^2.2.27",
4107
- "@nocobase/evaluators": "1.3.9-beta",
4108
- "@nocobase/sdk": "1.3.9-beta",
4109
- "@nocobase/utils": "1.3.9-beta",
4107
+ "@nocobase/evaluators": "1.3.11-beta",
4108
+ "@nocobase/sdk": "1.3.11-beta",
4109
+ "@nocobase/utils": "1.3.11-beta",
4110
4110
  ahooks: "^3.7.2",
4111
4111
  antd: "^5.12.8",
4112
4112
  "antd-style": "3.4.5",
@@ -4785,15 +4785,15 @@ const TreeNode = (e) => {
4785
4785
  name: A.name,
4786
4786
  title: ((N = A == null ? void 0 : A.uiSchema) == null ? void 0 : N.title) || A.name,
4787
4787
  schema: A == null ? void 0 : A.uiSchema,
4788
- operators: ((w = O == null ? void 0 : O.filter) == null ? void 0 : w.call(O, (M) => !(M != null && M.visible) || M.visible(A))) || [],
4788
+ operators: ((w = O == null ? void 0 : O.filter) == null ? void 0 : w.call(O, (j) => !(j != null && j.visible) || j.visible(A))) || [],
4789
4789
  interface: A.interface
4790
4790
  };
4791
4791
  if (!(A.target && k > 2)) {
4792
4792
  if (k > 2)
4793
4793
  return z;
4794
4794
  if ($ != null && $.length && (z.children = $), D) {
4795
- const M = t(A.target), j = v(M, k + 1).filter(Boolean);
4796
- z.children = z.children || [], z.children.push(...j);
4795
+ const j = t(A.target), M = v(j, k + 1).filter(Boolean);
4796
+ z.children = z.children || [], z.children.push(...M);
4797
4797
  }
4798
4798
  return z;
4799
4799
  }
@@ -8916,14 +8916,14 @@ https://requirejs.org/docs/errors.html#` + e);
8916
8916
  function w(R, B, V, E) {
8917
8917
  R.detachEvent && !isOpera ? E && R.detachEvent(E, B) : R.removeEventListener(V, B, !1);
8918
8918
  }
8919
- function M(R) {
8919
+ function j(R) {
8920
8920
  var B = R.currentTarget || R.srcElement;
8921
8921
  return w(B, n.onScriptLoad, "load", "onreadystatechange"), w(B, n.onScriptError, "error"), {
8922
8922
  node: B,
8923
8923
  id: B && B.getAttribute("data-requiremodule")
8924
8924
  };
8925
8925
  }
8926
- function j() {
8926
+ function M() {
8927
8927
  var R;
8928
8928
  for (D(); d.length; ) {
8929
8929
  if (R = d.shift(), R[0] === null)
@@ -8989,8 +8989,8 @@ https://requirejs.org/docs/errors.html#` + e);
8989
8989
  B = B || {};
8990
8990
  function V(E, q, G) {
8991
8991
  var U, K, Y;
8992
- return B.enableBuildCallback && q && isFunction(q) && (q.__requireJsBuild = !0), typeof E == "string" ? isFunction(q) ? T(makeError("requireargs", "Invalid require call"), G) : R && hasProp(r, E) ? r[E](l[R.id]) : req.get ? req.get(n, E, R, V) : (K = I(E, R, !1, !0), U = K.id, hasProp(p, U) ? p[U] : T(makeError("notloaded", 'Module name "' + U + '" has not been loaded yet for context: ' + e + (R ? "" : ". Use require([])")))) : (j(), n.nextTick(function() {
8993
- j(), Y = A(I(null, R)), Y.skipMap = B.skipMap, Y.init(E, q, G, {
8992
+ return B.enableBuildCallback && q && isFunction(q) && (q.__requireJsBuild = !0), typeof E == "string" ? isFunction(q) ? T(makeError("requireargs", "Invalid require call"), G) : R && hasProp(r, E) ? r[E](l[R.id]) : req.get ? req.get(n, E, R, V) : (K = I(E, R, !1, !0), U = K.id, hasProp(p, U) ? p[U] : T(makeError("notloaded", 'Module name "' + U + '" has not been loaded yet for context: ' + e + (R ? "" : ". Use require([])")))) : (M(), n.nextTick(function() {
8993
+ M(), Y = A(I(null, R)), Y.skipMap = B.skipMap, Y.init(E, q, G, {
8994
8994
  enabled: !0
8995
8995
  }), z();
8996
8996
  }), V);
@@ -9110,7 +9110,7 @@ https://requirejs.org/docs/errors.html#` + e);
9110
9110
  onScriptLoad: function(R) {
9111
9111
  if (R.type === "load" || readyRegExp.test((R.currentTarget || R.srcElement).readyState)) {
9112
9112
  interactiveScript = null;
9113
- var B = M(R);
9113
+ var B = j(R);
9114
9114
  n.completeLoad(B.id);
9115
9115
  }
9116
9116
  },
@@ -9118,7 +9118,7 @@ https://requirejs.org/docs/errors.html#` + e);
9118
9118
  * Callback for script errors.
9119
9119
  */
9120
9120
  onScriptError: function(R) {
9121
- var B = M(R);
9121
+ var B = j(R);
9122
9122
  if (!y(B.id)) {
9123
9123
  var V = [];
9124
9124
  return eachProp(l, function(E, q) {
@@ -9208,22 +9208,22 @@ const useCollectionManager_deprecated = (e) => {
9208
9208
  const t = useDataSourceManager(), o = useDataSource(), n = useCollectionManager(), r = e || (o == null ? void 0 : o.key) || void 0, [i, a] = useState(uid()), { refresh: l } = useSchemaComponentContext(), c = useMemo(
9209
9209
  () => {
9210
9210
  var w;
9211
- return (w = t == null ? void 0 : t.collectionFieldInterfaceManager) == null ? void 0 : w.getFieldInterfaces().reduce((M, j) => (M[j.name] = j, M), {});
9211
+ return (w = t == null ? void 0 : t.collectionFieldInterfaceManager) == null ? void 0 : w.getFieldInterfaces().reduce((j, M) => (j[M.name] = M, j), {});
9212
9212
  },
9213
9213
  [t, i]
9214
9214
  ), u = useMemo(() => t == null ? void 0 : t.collectionTemplateManager.getCollectionTemplates(), [t, i]), d = useCallback(() => {
9215
- var w, M;
9216
- return (M = (w = t == null ? void 0 : t.getDataSource(r)) == null ? void 0 : w.collectionManager) == null ? void 0 : M.getCollections().map((j) => j.getOptions());
9215
+ var w, j;
9216
+ return (j = (w = t == null ? void 0 : t.getDataSource(r)) == null ? void 0 : w.collectionManager) == null ? void 0 : j.getCollections().map((M) => M.getOptions());
9217
9217
  }, [t, o]), p = useCallback(
9218
9218
  (w) => {
9219
- var M;
9220
- return n && !w ? n : (M = t == null ? void 0 : t.getDataSource(w || r)) == null ? void 0 : M.collectionManager;
9219
+ var j;
9220
+ return n && !w ? n : (j = t == null ? void 0 : t.getDataSource(w || r)) == null ? void 0 : j.collectionManager;
9221
9221
  },
9222
9222
  [n, t, r]
9223
9223
  ), m = useMemo(
9224
9224
  () => {
9225
- var w, M;
9226
- return (M = (w = t == null ? void 0 : t.getDataSource(DEFAULT_DATA_SOURCE_KEY)) == null ? void 0 : w.collectionManager) == null ? void 0 : M.getCollections();
9225
+ var w, j;
9226
+ return (j = (w = t == null ? void 0 : t.getDataSource(DEFAULT_DATA_SOURCE_KEY)) == null ? void 0 : w.collectionManager) == null ? void 0 : j.getCollections();
9227
9227
  },
9228
9228
  [t, i]
9229
9229
  ), g = useCallback(
@@ -9237,50 +9237,50 @@ const useCollectionManager_deprecated = (e) => {
9237
9237
  }),
9238
9238
  [t]
9239
9239
  ), x = useCompile(), C = useCallback(
9240
- (w, M) => {
9241
- var j, R;
9242
- return ((R = (j = p(M)) == null ? void 0 : j.getCollection(w)) == null ? void 0 : R.getInheritedFields()) || [];
9240
+ (w, j) => {
9241
+ var M, R;
9242
+ return ((R = (M = p(j)) == null ? void 0 : M.getCollection(w)) == null ? void 0 : R.getInheritedFields()) || [];
9243
9243
  },
9244
9244
  [t, p]
9245
9245
  ), S = useCallback(
9246
- (w, M) => {
9246
+ (w, j) => {
9247
9247
  var R, B;
9248
9248
  if (!w)
9249
9249
  return [];
9250
- const j = (R = p(M)) == null ? void 0 : R.getCollection(w);
9251
- return ((B = j == null ? void 0 : j.getAllFields) == null ? void 0 : B.call(j)) || (j == null ? void 0 : j.getFields()) || [];
9250
+ const M = (R = p(j)) == null ? void 0 : R.getCollection(w);
9251
+ return ((B = M == null ? void 0 : M.getAllFields) == null ? void 0 : B.call(M)) || (M == null ? void 0 : M.getFields()) || [];
9252
9252
  },
9253
9253
  [t, p]
9254
9254
  ), b = useCallback(
9255
- (w, M) => {
9256
- var j;
9255
+ (w, j) => {
9256
+ var M;
9257
9257
  if (!(!w || w.split(".").length < 2))
9258
- return (j = p(M)) == null ? void 0 : j.getCollectionField(w);
9258
+ return (M = p(j)) == null ? void 0 : M.getCollectionField(w);
9259
9259
  },
9260
9260
  [t, p]
9261
9261
  ), y = useCallback(
9262
- (w, M) => {
9263
- var j, R;
9264
- return w ? ((R = (j = p(M)) == null ? void 0 : j.getCollection(w)) == null ? void 0 : R.getParentCollectionsName()) || [] : [];
9262
+ (w, j) => {
9263
+ var M, R;
9264
+ return w ? ((R = (M = p(j)) == null ? void 0 : M.getCollection(w)) == null ? void 0 : R.getParentCollectionsName()) || [] : [];
9265
9265
  },
9266
9266
  [t, p]
9267
9267
  ), v = useCallback(
9268
- (w, M = !1, j) => {
9268
+ (w, j = !1, M) => {
9269
9269
  var V;
9270
9270
  if (!w)
9271
9271
  return [];
9272
- const R = (V = p(j)) == null ? void 0 : V.getCollection(w);
9273
- return (R == null ? void 0 : R.getChildrenCollections(M)) || [];
9272
+ const R = (V = p(M)) == null ? void 0 : V.getCollection(w);
9273
+ return (R == null ? void 0 : R.getChildrenCollections(j)) || [];
9274
9274
  },
9275
9275
  [t, p]
9276
9276
  ), I = useCallback(
9277
- (w, M) => {
9278
- var j, R;
9279
- return w ? ((R = (j = p(M)) == null ? void 0 : j.getCollection(w)) == null ? void 0 : R.getCurrentFields()) || [] : [];
9277
+ (w, j) => {
9278
+ var M, R;
9279
+ return w ? ((R = (M = p(j)) == null ? void 0 : M.getCollection(w)) == null ? void 0 : R.getCurrentFields()) || [] : [];
9280
9280
  },
9281
9281
  [t, p]
9282
9282
  ), A = useCallback(
9283
- (w, M = "string", j) => {
9283
+ (w, j = "string", M) => {
9284
9284
  var Q;
9285
9285
  const {
9286
9286
  association: R = !1,
@@ -9292,21 +9292,21 @@ const useCollectionManager_deprecated = (e) => {
9292
9292
  prefixFieldValue: U = "",
9293
9293
  usePrefix: K = !1,
9294
9294
  dataSource: Y
9295
- } = j || {};
9295
+ } = M || {};
9296
9296
  if (V.length - 1 > E)
9297
9297
  return;
9298
9298
  if (B[w])
9299
9299
  return _.cloneDeep(B[w]);
9300
- typeof M == "string" && (M = [M]);
9300
+ typeof j == "string" && (j = [j]);
9301
9301
  const H = S(w, Y), X = (Q = H == null ? void 0 : H.filter(
9302
- (J) => J.interface && !G.includes(J.interface) && (q || M.includes(J.type) || (R && J.target && J.target !== w && Array.isArray(R) ? R.includes(J.interface) : !1))
9302
+ (J) => J.interface && !G.includes(J.interface) && (q || j.includes(J.type) || (R && J.target && J.target !== w && Array.isArray(R) ? R.includes(J.interface) : !1))
9303
9303
  )) == null ? void 0 : Q.map((J) => {
9304
9304
  var ne, oe;
9305
9305
  const te = h({
9306
9306
  value: K && U ? `${U}.${J.name}` : J.name,
9307
9307
  label: x((ne = J == null ? void 0 : J.uiSchema) == null ? void 0 : ne.title) || J.name
9308
9308
  }, J);
9309
- return R && J.target && (te.children = V.includes(J.target) ? [] : A(J.target, M, F(h({}, j), {
9309
+ return R && J.target && (te.children = V.includes(J.target) ? [] : A(J.target, j, F(h({}, M), {
9310
9310
  cached: B,
9311
9311
  dataSource: Y,
9312
9312
  collectionNames: [...V, J.target],
@@ -9318,21 +9318,21 @@ const useCollectionManager_deprecated = (e) => {
9318
9318
  },
9319
9319
  [S]
9320
9320
  ), k = useCallback(
9321
- (w, M) => {
9322
- var j;
9323
- return (j = p(M)) == null ? void 0 : j.getCollection(w);
9321
+ (w, j) => {
9322
+ var M;
9323
+ return (M = p(j)) == null ? void 0 : M.getCollection(w);
9324
9324
  },
9325
9325
  [t, p]
9326
9326
  ), T = useCallback(
9327
- (w, M) => {
9328
- var j, R;
9329
- return (R = (j = p(M)) == null ? void 0 : j.getCollection(w)) == null ? void 0 : R.getAllCollectionsInheritChain();
9327
+ (w, j) => {
9328
+ var M, R;
9329
+ return (R = (M = p(j)) == null ? void 0 : M.getCollection(w)) == null ? void 0 : R.getAllCollectionsInheritChain();
9330
9330
  },
9331
9331
  [t, p]
9332
9332
  ), D = useCallback(
9333
- (w, M) => () => {
9334
- var j, R;
9335
- return (R = (j = p(M)) == null ? void 0 : j.getCollection(w)) == null ? void 0 : R.getInheritCollectionsChain();
9333
+ (w, j) => () => {
9334
+ var M, R;
9335
+ return (R = (M = p(j)) == null ? void 0 : M.getCollection(w)) == null ? void 0 : R.getInheritCollectionsChain();
9336
9336
  },
9337
9337
  [t, p]
9338
9338
  ), $ = useCallback(
@@ -9340,14 +9340,14 @@ const useCollectionManager_deprecated = (e) => {
9340
9340
  [t]
9341
9341
  ), O = useCallback(
9342
9342
  (w) => {
9343
- var M;
9344
- return (M = $(w.interface)) == null ? void 0 : M.titleUsable;
9343
+ var j;
9344
+ return (j = $(w.interface)) == null ? void 0 : j.titleUsable;
9345
9345
  },
9346
9346
  [$]
9347
9347
  ), z = useCallback(
9348
- (w, M, j) => {
9348
+ (w, j, M) => {
9349
9349
  var R, B;
9350
- return (B = (R = p(j)) == null ? void 0 : R.getCollection(M)) == null ? void 0 : B.getParentCollectionFields(w);
9350
+ return (B = (R = p(M)) == null ? void 0 : R.getCollection(j)) == null ? void 0 : B.getParentCollectionFields(w);
9351
9351
  },
9352
9352
  [t, p]
9353
9353
  ), N = useCallback(
@@ -9782,14 +9782,14 @@ const popupsContextStorage = {}, getStoredPopupContext = (e) => popupsContextSto
9782
9782
  popupUid: z,
9783
9783
  recordData: N,
9784
9784
  sourceId: w,
9785
- collection: M,
9786
- puid: j
9785
+ collection: j,
9786
+ puid: M
9787
9787
  }) => {
9788
9788
  const R = c.getFilterByTK(u || l, N);
9789
9789
  return getPopupPathFromParams({
9790
9790
  popupuid: z,
9791
- puid: j,
9792
- collection: M,
9791
+ puid: M,
9792
+ collection: j,
9793
9793
  filterbytk: R,
9794
9794
  sourceid: w,
9795
9795
  tab: O
@@ -9809,22 +9809,22 @@ const popupsContextStorage = {}, getStoredPopupContext = (e) => popupsContextSto
9809
9809
  parentRecordData: z,
9810
9810
  collectionNameUsedInURL: N,
9811
9811
  popupUidUsedInURL: w,
9812
- customActionSchema: M
9812
+ customActionSchema: j
9813
9813
  } = {}) => {
9814
9814
  if (!f())
9815
9815
  return y == null ? void 0 : y(!0);
9816
- const j = (M == null ? void 0 : M["x-uid"]) || (n == null ? void 0 : n["x-uid"]), R = b(z);
9816
+ const M = (j == null ? void 0 : j["x-uid"]) || (n == null ? void 0 : n["x-uid"]), R = b(z);
9817
9817
  O = O || (i == null ? void 0 : i.data);
9818
9818
  const B = v({
9819
- popupUid: j,
9819
+ popupUid: M,
9820
9820
  recordData: O,
9821
9821
  sourceId: R,
9822
9822
  collection: N,
9823
9823
  puid: w
9824
9824
  });
9825
9825
  let V = o.pathname;
9826
- _.last(V) === "/" && (V = V.slice(0, -1)), storePopupContext(j, {
9827
- schema: M || n,
9826
+ _.last(V) === "/" && (V = V.slice(0, -1)), storePopupContext(M, {
9827
+ schema: j || n,
9828
9828
  record: new CollectionRecord({ isNew: !1, data: O }),
9829
9829
  parentRecord: z ? new CollectionRecord({ isNew: !1, data: z }) : a,
9830
9830
  service: g,
@@ -9832,7 +9832,7 @@ const popupsContextStorage = {}, getStoredPopupContext = (e) => popupsContextSto
9832
9832
  collection: l.name,
9833
9833
  association: u,
9834
9834
  sourceId: R
9835
- }), C(I(), M), t(withSearchParams(`${V}${B}`));
9835
+ }), C(I(), j), t(withSearchParams(`${V}${B}`));
9836
9836
  },
9837
9837
  [
9838
9838
  u,
@@ -10800,18 +10800,18 @@ const variablesStore = {}, getFieldPath = (e, t) => {
10800
10800
  const { fieldPath: $ } = getFieldPath(x, v), O = b.length === 1 ? T.collectionName : (N = n($, k)) == null ? void 0 : N.target;
10801
10801
  if (!(y in I))
10802
10802
  throw new Error(`VariablesProvider: ${y} is not found`);
10803
- for (let M = 0; M < b.length; M++) {
10803
+ for (let j = 0; j < b.length; j++) {
10804
10804
  if (I == null)
10805
10805
  return {
10806
10806
  value: I === void 0 ? T.defaultValue : I,
10807
10807
  dataSource: k,
10808
10808
  collectionName: O
10809
10809
  };
10810
- const j = b[M], { fieldPath: R } = getFieldPath(b.slice(0, M + 1).join("."), v), B = n(R, k), V = (w = r(D)) == null ? void 0 : w.getPrimaryKey();
10810
+ const M = b[j], { fieldPath: R } = getFieldPath(b.slice(0, j + 1).join("."), v), B = n(R, k), V = (w = r(D)) == null ? void 0 : w.getPrimaryKey();
10811
10811
  if (Array.isArray(I)) {
10812
10812
  const E = I.map((q) => {
10813
- if (!(S != null && S.doNotRequest) && shouldToRequest(q == null ? void 0 : q[j]) && (q == null ? void 0 : q[V]) != null && B != null && B.target) {
10814
- const G = `/${D}/${q[B.sourceKey || V]}/${j}:${getAction(B.type)}`;
10813
+ if (!(S != null && S.doNotRequest) && shouldToRequest(q == null ? void 0 : q[M]) && (q == null ? void 0 : q[V]) != null && B != null && B.target) {
10814
+ const G = `/${D}/${q[B.sourceKey || V]}/${M}:${getAction(B.type)}`;
10815
10815
  if (hasRequested(G))
10816
10816
  return getRequested(G);
10817
10817
  const U = o.request({
@@ -10820,14 +10820,14 @@ const variablesStore = {}, getFieldPath = (e, t) => {
10820
10820
  params: {
10821
10821
  appends: S == null ? void 0 : S.appends
10822
10822
  }
10823
- }).then((K) => (clearRequested(G), q[j] = K.data.data, q[j]));
10823
+ }).then((K) => (clearRequested(G), q[M] = K.data.data, q[M]));
10824
10824
  return stashRequested(G, U), U;
10825
10825
  }
10826
- return q == null ? void 0 : q[j];
10826
+ return q == null ? void 0 : q[M];
10827
10827
  });
10828
10828
  I = removeThroughCollectionFields(_.flatten(yield Promise.all(E)), B);
10829
- } else if (!(S != null && S.doNotRequest) && shouldToRequest(I[j]) && I[V] != null && (B != null && B.target)) {
10830
- const E = `/${D}/${I[B.sourceKey || V]}/${j}:${getAction(B.type)}`;
10829
+ } else if (!(S != null && S.doNotRequest) && shouldToRequest(I[M]) && I[V] != null && (B != null && B.target)) {
10830
+ const E = `/${D}/${I[B.sourceKey || V]}/${M}:${getAction(B.type)}`;
10831
10831
  let q = null;
10832
10832
  if (hasRequested(E))
10833
10833
  q = yield getRequested(E);
@@ -10841,9 +10841,9 @@ const variablesStore = {}, getFieldPath = (e, t) => {
10841
10841
  });
10842
10842
  stashRequested(E, G), q = yield G, clearRequested(E);
10843
10843
  }
10844
- raw(I)[j] || (raw(I)[j] = q.data.data), I = removeThroughCollectionFields(getValuesByPath(I, j), B);
10844
+ raw(I)[M] || (raw(I)[M] = q.data.data), I = removeThroughCollectionFields(getValuesByPath(I, M), B);
10845
10845
  } else
10846
- I = removeThroughCollectionFields(getValuesByPath(I, j), B);
10846
+ I = removeThroughCollectionFields(getValuesByPath(I, M), B);
10847
10847
  B != null && B.target && (D = B.target);
10848
10848
  }
10849
10849
  const z = i(_.isFunction(I) ? I() : I);
@@ -12876,7 +12876,7 @@ const useGetAriaLabelOfDesigner = () => {
12876
12876
  })
12877
12877
  )
12878
12878
  };
12879
- }, [b, (V = z == null ? void 0 : z.cols) == null ? void 0 : V.length]), M = useMemo(() => u === !1 ? null : /* @__PURE__ */ jsx(DragHandler, { children: /* @__PURE__ */ jsx(DragOutlined, { role: "button", "aria-label": b("drag-handler") }) }), [u, b]), j = useMemo(() => {
12879
+ }, [b, (V = z == null ? void 0 : z.cols) == null ? void 0 : V.length]), j = useMemo(() => u === !1 ? null : /* @__PURE__ */ jsx(DragHandler, { children: /* @__PURE__ */ jsx(DragOutlined, { role: "button", "aria-label": b("drag-handler") }) }), [u, b]), M = useMemo(() => {
12880
12880
  var E;
12881
12881
  if (n === !1)
12882
12882
  return null;
@@ -12913,8 +12913,8 @@ const useGetAriaLabelOfDesigner = () => {
12913
12913
  k[1] && /* @__PURE__ */ jsx("span", { className: C.toolbarTitleTag, children: `${S("Reference template")}: ${`${k[1]}` || S("Untitled")}` })
12914
12914
  ] }) }),
12915
12915
  /* @__PURE__ */ jsx("div", { className: cls(C.toolbarIcons, a), style: l, children: /* @__PURE__ */ jsxs(Space$1, { size: 3, align: "center", className: d, style: p, children: [
12916
- M,
12917
12916
  j,
12917
+ M,
12918
12918
  R
12919
12919
  ] }) })
12920
12920
  ]
@@ -13293,8 +13293,8 @@ const ColDivider = (e) => {
13293
13293
  $.style.width = `${y[0] + T.delta.x}px`, O.style.width = `${y[1] - T.delta.x}px`;
13294
13294
  },
13295
13295
  onDragEnd(T) {
13296
- var M;
13297
- if (!o.current || (M = o.current) != null && M.startsWith(T.active.id) && !o.current.endsWith("_move") || y[0] <= 0 || y[1] <= 0 || (v([0, 0]), !g || !f))
13296
+ var j;
13297
+ if (!o.current || (j = o.current) != null && j.startsWith(T.active.id) && !o.current.endsWith("_move") || y[0] <= 0 || y[1] <= 0 || (v([0, 0]), !g || !f))
13298
13298
  return;
13299
13299
  const D = l.current, $ = D.previousElementSibling, O = D.nextElementSibling;
13300
13300
  g["x-component-props"] = g["x-component-props"] || {}, f["x-component-props"] = f["x-component-props"] || {};
@@ -14001,7 +14001,7 @@ function useMenuSearch({
14001
14001
  })) : f, [e, c, u, f]);
14002
14002
  }
14003
14003
  const DataBlockInitializer = (e) => {
14004
- var M;
14004
+ var j;
14005
14005
  const {
14006
14006
  templateWrap: t,
14007
14007
  onCreateBlockSchema: o,
@@ -14022,10 +14022,10 @@ const DataBlockInitializer = (e) => {
14022
14022
  currentText: S,
14023
14023
  otherText: b
14024
14024
  } = e, { insert: y, setVisible: v } = useSchemaInitializer(), I = useCompile(), { getTemplateSchemaByMode: A } = useSchemaTemplateManager(), k = useCallback(
14025
- (j) => L(void 0, null, function* () {
14026
- const { item: R, fromOthersInPopup: B } = j;
14025
+ (M) => L(void 0, null, function* () {
14026
+ const { item: R, fromOthersInPopup: B } = M;
14027
14027
  if (x)
14028
- return x(j);
14028
+ return x(M);
14029
14029
  if (R.template) {
14030
14030
  const V = yield A(R);
14031
14031
  y(t ? t(V, { item: R, fromOthersInPopup: B }) : V);
@@ -14049,8 +14049,8 @@ const DataBlockInitializer = (e) => {
14049
14049
  currentText: S,
14050
14050
  otherText: b
14051
14051
  }), D = useGetSchemaInitializerMenuItems(k), $ = useMemo(() => D(T, i), [D, T, i]), [O, z] = useState([]), N = useMenuSearch({ data: $, openKeys: O, hideSearch: u }), w = useMemo(() => {
14052
- let j = N.filter((R) => R.key !== "search" && R.key !== "empty");
14053
- return p && j.length === 1 ? j = j[0].children : j = N, [
14052
+ let M = N.filter((R) => R.key !== "search" && R.key !== "empty");
14053
+ return p && M.length === 1 ? M = M[0].children : M = N, [
14054
14054
  {
14055
14055
  key: i,
14056
14056
  label: I(a),
@@ -14058,15 +14058,15 @@ const DataBlockInitializer = (e) => {
14058
14058
  onClick: (R) => {
14059
14059
  R.key === i && k(F(h({}, R), { item: e }));
14060
14060
  },
14061
- children: j
14061
+ children: M
14062
14062
  }
14063
14063
  ];
14064
14064
  }, [N, p, i, I, a, r, k, e]);
14065
- return $.length > 1 || $.length === 1 && ((M = $[0].children) == null ? void 0 : M.length) > 0 ? /* @__PURE__ */ jsx(
14065
+ return $.length > 1 || $.length === 1 && ((j = $[0].children) == null ? void 0 : j.length) > 0 ? /* @__PURE__ */ jsx(
14066
14066
  SchemaInitializerMenu,
14067
14067
  {
14068
- onOpenChange: (j) => {
14069
- z(j);
14068
+ onOpenChange: (M) => {
14069
+ z(M);
14070
14070
  },
14071
14071
  items: w
14072
14072
  }
@@ -15056,8 +15056,8 @@ function useServiceOptions$1(e) {
15056
15056
  var C, S, b, y;
15057
15057
  const { action: t = "list", service: o, useOriginalFilter: n } = e, r = useFieldSchema(), i = useField(), { getField: a } = useCollection_deprecated(), { getCollectionJoinField: l } = useCollectionManager_deprecated(), c = useRecord(), { parseFilter: u, findVariable: d } = useParseDataScopeFilter(), [p, m] = useState(null);
15058
15058
  useEffect(() => {
15059
- var T, D, $, O, z, N, w, M, j;
15060
- const v = isString(($ = (D = (T = r == null ? void 0 : r["x-component-props"]) == null ? void 0 : T.service) == null ? void 0 : D.params) == null ? void 0 : $.filter) ? (N = (z = (O = i.componentProps) == null ? void 0 : O.service) == null ? void 0 : z.params) == null ? void 0 : N.filter : (j = (M = (w = r == null ? void 0 : r["x-component-props"]) == null ? void 0 : w.service) == null ? void 0 : M.params) == null ? void 0 : j.filter, I = () => L(this, null, function* () {
15059
+ var T, D, $, O, z, N, w, j, M;
15060
+ const v = isString(($ = (D = (T = r == null ? void 0 : r["x-component-props"]) == null ? void 0 : T.service) == null ? void 0 : D.params) == null ? void 0 : $.filter) ? (N = (z = (O = i.componentProps) == null ? void 0 : O.service) == null ? void 0 : z.params) == null ? void 0 : N.filter : (M = (j = (w = r == null ? void 0 : r["x-component-props"]) == null ? void 0 : w.service) == null ? void 0 : j.params) == null ? void 0 : M.filter, I = () => L(this, null, function* () {
15061
15061
  var B;
15062
15062
  const R = yield u(mergeFilter([v || ((B = o == null ? void 0 : o.params) == null ? void 0 : B.filter)]));
15063
15063
  m(R);
@@ -17070,8 +17070,8 @@ function formatVariableScop(e) {
17070
17070
  }));
17071
17071
  }
17072
17072
  const SchemaSettingsDefaultValue = function e(t) {
17073
- var j, R, B, V;
17074
- const o = useFieldSchema(), n = (j = t == null ? void 0 : t.fieldSchema) != null ? j : o, r = useField(), { dn: i } = useDesignable(), { t: a } = useTranslation(), l = useActionContext();
17073
+ var M, R, B, V;
17074
+ const o = useFieldSchema(), n = (M = t == null ? void 0 : t.fieldSchema) != null ? M : o, r = useField(), { dn: i } = useDesignable(), { t: a } = useTranslation(), l = useActionContext();
17075
17075
  let c;
17076
17076
  const { getField: u } = useCollection_deprecated(), { getCollectionJoinField: d, getCollectionFields: p, getAllCollectionsInheritChain: m } = useCollectionManager_deprecated(), g = useVariables$1(), f = useLocalVariables(), x = useCollection_deprecated(), C = useRecord(), { form: S } = useFormBlockContext(), { getFields: b } = useCollectionFilterOptionsV2(x), { isInSubForm: y, isInSubTable: v } = useFlag() || {}, { name: I } = x, A = useMemo(
17077
17077
  () => u(n.name) || d(n["x-collection-field"]),
@@ -17153,7 +17153,7 @@ const SchemaSettingsDefaultValue = function e(t) {
17153
17153
  $.collection,
17154
17154
  c,
17155
17155
  g
17156
- ]), M = useCallback(
17156
+ ]), j = useCallback(
17157
17157
  (E) => {
17158
17158
  var G;
17159
17159
  const q = {
@@ -17173,7 +17173,7 @@ const SchemaSettingsDefaultValue = function e(t) {
17173
17173
  components: N,
17174
17174
  width: 800,
17175
17175
  schema: w,
17176
- onSubmit: M
17176
+ onSubmit: j
17177
17177
  }
17178
17178
  );
17179
17179
  }, fieldComponentSettingsItem = {
@@ -17724,13 +17724,13 @@ const InternalTableBlockProvider = (e) => {
17724
17724
  const D = v.find((q) => q.uid === T.uid);
17725
17725
  if (!D)
17726
17726
  return;
17727
- const $ = (R = T.foreignKeyFields) == null ? void 0 : R.some((q) => q.name === D.field), O = getSourceKey(k, D.field), z = $ ? O : o.rowKey, N = [S[z]], w = ((B = T.service.params) == null ? void 0 : B[0]) || {}, M = ((E = (V = T.service.params) == null ? void 0 : V[1]) == null ? void 0 : E.filters) || {};
17727
+ const $ = (R = T.foreignKeyFields) == null ? void 0 : R.some((q) => q.name === D.field), O = getSourceKey(k, D.field), z = $ ? O : o.rowKey, N = [S[z]], w = ((B = T.service.params) == null ? void 0 : B[0]) || {}, j = ((E = (V = T.service.params) == null ? void 0 : V[1]) == null ? void 0 : E.filters) || {};
17728
17728
  if (y.includes(S[o.rowKey])) {
17729
17729
  if (T.dataLoadingMode === "manual")
17730
17730
  return T.clearData();
17731
- delete M[I];
17731
+ delete j[I];
17732
17732
  } else
17733
- M[I] = {
17733
+ j[I] = {
17734
17734
  $and: [
17735
17735
  {
17736
17736
  [D.field || o.rowKey]: {
@@ -17739,16 +17739,16 @@ const InternalTableBlockProvider = (e) => {
17739
17739
  }
17740
17740
  ]
17741
17741
  };
17742
- const j = mergeFilter([
17743
- ...Object.values(M).map((q) => removeNullCondition(q)),
17742
+ const M = mergeFilter([
17743
+ ...Object.values(j).map((q) => removeNullCondition(q)),
17744
17744
  T.defaultFilter
17745
17745
  ]);
17746
17746
  return T.doFilter(
17747
17747
  F(h({}, w), {
17748
17748
  page: 1,
17749
- filter: j
17749
+ filter: M
17750
17750
  }),
17751
- { filters: M }
17751
+ { filters: j }
17752
17752
  );
17753
17753
  }), b((T) => T != null && T.includes(S[o.rowKey]) ? [] : [S[o.rowKey]]);
17754
17754
  },
@@ -18072,10 +18072,10 @@ const useTableSelectorParams = () => useContext(TableSelectorParamsContext), Tab
18072
18072
  var a, l, c, u, d, p, m, g, f, x, C, S, b, y, v, I;
18073
18073
  const e = useField(), t = useTableSelectorContext(), o = useFieldSchema(), { getCollectionJoinField: n } = useCollectionManager_deprecated(), r = recursiveParent(o, "CollectionField"), i = n(r == null ? void 0 : r["x-collection-field"]);
18074
18074
  return useEffect(() => {
18075
- var k, T, D, $, O, z, N, w, M, j, R, B, V, E, q;
18075
+ var k, T, D, $, O, z, N, w, j, M, R, B, V, E, q;
18076
18076
  if (!((k = t == null ? void 0 : t.service) != null && k.loading)) {
18077
18077
  const G = (D = (T = t == null ? void 0 : t.service) == null ? void 0 : T.data) == null ? void 0 : D.data.map((U) => _.omit(U, i == null ? void 0 : i.foreignKey));
18078
- e.value = G, ($ = e == null ? void 0 : e.setInitialValue) == null || $.call(e, G), e.data = e.data || {}, e.data.selectedRowKeys = (z = (O = t == null ? void 0 : t.field) == null ? void 0 : O.data) == null ? void 0 : z.selectedRowKeys, e.componentProps.pagination = e.componentProps.pagination || {}, e.componentProps.pagination.pageSize = (M = (w = (N = t == null ? void 0 : t.service) == null ? void 0 : N.data) == null ? void 0 : w.meta) == null ? void 0 : M.pageSize, e.componentProps.pagination.total = (B = (R = (j = t == null ? void 0 : t.service) == null ? void 0 : j.data) == null ? void 0 : R.meta) == null ? void 0 : B.count, e.componentProps.pagination.current = (q = (E = (V = t == null ? void 0 : t.service) == null ? void 0 : V.data) == null ? void 0 : E.meta) == null ? void 0 : q.page;
18078
+ e.value = G, ($ = e == null ? void 0 : e.setInitialValue) == null || $.call(e, G), e.data = e.data || {}, e.data.selectedRowKeys = (z = (O = t == null ? void 0 : t.field) == null ? void 0 : O.data) == null ? void 0 : z.selectedRowKeys, e.componentProps.pagination = e.componentProps.pagination || {}, e.componentProps.pagination.pageSize = (j = (w = (N = t == null ? void 0 : t.service) == null ? void 0 : N.data) == null ? void 0 : w.meta) == null ? void 0 : j.pageSize, e.componentProps.pagination.total = (B = (R = (M = t == null ? void 0 : t.service) == null ? void 0 : M.data) == null ? void 0 : R.meta) == null ? void 0 : B.count, e.componentProps.pagination.current = (q = (E = (V = t == null ? void 0 : t.service) == null ? void 0 : V.data) == null ? void 0 : E.meta) == null ? void 0 : q.page;
18079
18079
  }
18080
18080
  }, [
18081
18081
  i == null ? void 0 : i.foreignKey,
@@ -19654,38 +19654,38 @@ const ActionLink = withDynamicSchemaProps(
19654
19654
  "addChild",
19655
19655
  "onMouseEnter",
19656
19656
  "refreshDataBlockRequest"
19657
- ]), y = useACLActionParamsContext(), { wrapSSR: v, componentCls: I, hashId: A } = useStyles$f(), { t: k } = useTranslation(), { visibleWithURL: T, setVisibleWithURL: D } = usePopupUtils(), [$, O] = useState(!1), [z, N] = useState(!1), { setSubmitted: w } = useActionContext(), M = useDesigner(), j = useField(), { run: R, element: B, disabled: V } = _.isFunction(i) ? i(f) : {}, E = useFieldSchema(), q = useCompile(), G = useForm(), U = useCollectionRecordData(), K = useCollectionParentRecordData(), Y = E["x-toolbar-props"] || E["x-designer-props"], H = (me = E == null ? void 0 : E["x-component-props"]) == null ? void 0 : me.openMode, X = (le = E == null ? void 0 : E["x-component-props"]) == null ? void 0 : le.openSize, Q = (ge = E == null ? void 0 : E["x-component-props"]) == null ? void 0 : ge.refreshDataBlockRequest, J = G.disabled || j.disabled || ((he = j.data) == null ? void 0 : he.disabled) || g || V, te = useMemo(() => (E == null ? void 0 : E["x-linkage-rules"]) || [], [E == null ? void 0 : E["x-linkage-rules"]]), { designable: ne } = useDesignable(), oe = useComponent(r) || r, { modal: se } = App.useApp(), ie = useVariables$1(), Se = useLocalVariables({ currentForm: { values: U, readPretty: !1 } }), { getAriaLabel: Ie } = useGetAriaLabelOfAction(c), Ae = useDataBlockRequest(), ke = useMemo(() => {
19657
+ ]), y = useACLActionParamsContext(), { wrapSSR: v, componentCls: I, hashId: A } = useStyles$f(), { t: k } = useTranslation(), { visibleWithURL: T, setVisibleWithURL: D } = usePopupUtils(), [$, O] = useState(!1), [z, N] = useState(!1), { setSubmitted: w } = useActionContext(), j = useDesigner(), M = useField(), { run: R, element: B, disabled: V } = _.isFunction(i) ? i(f) : {}, E = useFieldSchema(), q = useCompile(), G = useForm(), U = useCollectionRecordData(), K = useCollectionParentRecordData(), Y = E["x-toolbar-props"] || E["x-designer-props"], H = (me = E == null ? void 0 : E["x-component-props"]) == null ? void 0 : me.openMode, X = (le = E == null ? void 0 : E["x-component-props"]) == null ? void 0 : le.openSize, Q = (ge = E == null ? void 0 : E["x-component-props"]) == null ? void 0 : ge.refreshDataBlockRequest, J = G.disabled || M.disabled || ((he = M.data) == null ? void 0 : he.disabled) || g || V, te = useMemo(() => (E == null ? void 0 : E["x-linkage-rules"]) || [], [E == null ? void 0 : E["x-linkage-rules"]]), { designable: ne } = useDesignable(), oe = useComponent(r) || r, { modal: se } = App.useApp(), ie = useVariables$1(), Se = useLocalVariables({ currentForm: { values: U, readPretty: !1 } }), { getAriaLabel: Ie } = useGetAriaLabelOfAction(c), Ae = useDataBlockRequest(), ke = useMemo(() => {
19658
19658
  const Z = c || q(E.title);
19659
19659
  return _.isString(Z) ? k(Z) : Z;
19660
19660
  }, [c, E.title, k]);
19661
19661
  useEffect(() => {
19662
- j.stateOfLinkageRules && setInitialActionState(j), j.stateOfLinkageRules = {}, te.filter((Z) => !Z.disabled).forEach((Z) => {
19662
+ M.stateOfLinkageRules && setInitialActionState(M), M.stateOfLinkageRules = {}, te.filter((Z) => !Z.disabled).forEach((Z) => {
19663
19663
  var re;
19664
19664
  (re = Z.actions) == null || re.forEach((ae) => {
19665
19665
  linkageAction({
19666
19666
  operator: ae.operator,
19667
- field: j,
19667
+ field: M,
19668
19668
  condition: Z.condition,
19669
19669
  variables: ie,
19670
19670
  localVariables: Se
19671
19671
  });
19672
19672
  });
19673
19673
  });
19674
- }, [j, te, Se, ie]);
19674
+ }, [M, te, Se, ie]);
19675
19675
  const be = useMemo(() => {
19676
19676
  var Z;
19677
19677
  return F(h({}, d), {
19678
- opacity: ne && (((Z = j == null ? void 0 : j.data) == null ? void 0 : Z.hidden) || !y) && 0.1,
19678
+ opacity: ne && (((Z = M == null ? void 0 : M.data) == null ? void 0 : Z.hidden) || !y) && 0.1,
19679
19679
  color: J ? "rgba(0, 0, 0, 0.25)" : d == null ? void 0 : d.color
19680
19680
  });
19681
- }, [y, ne, (ee = j == null ? void 0 : j.data) == null ? void 0 : ee.hidden, d, J]), Te = useCallback(
19681
+ }, [y, ne, (ee = M == null ? void 0 : M.data) == null ? void 0 : ee.hidden, d, J]), Te = useCallback(
19682
19682
  (Z) => {
19683
19683
  C == null || C(Z);
19684
19684
  },
19685
19685
  [C]
19686
19686
  ), ue = {
19687
19687
  designable: ne,
19688
- field: j,
19688
+ field: M,
19689
19689
  aclCtx: y,
19690
19690
  actionTitle: ke,
19691
19691
  icon: l,
@@ -19701,7 +19701,7 @@ const ActionLink = withDynamicSchemaProps(
19701
19701
  others: b,
19702
19702
  getAriaLabel: Ie,
19703
19703
  type: e.type,
19704
- Designer: M,
19704
+ Designer: j,
19705
19705
  openMode: H,
19706
19706
  onClick: u,
19707
19707
  refreshDataBlockRequest: Q,
@@ -19727,7 +19727,7 @@ const ActionLink = withDynamicSchemaProps(
19727
19727
  fieldSchema: E,
19728
19728
  setSubmitted: w,
19729
19729
  children: [
19730
- t && /* @__PURE__ */ jsx(RecursionField, { basePath: j.address, onlyRenderProperties: !0, schema: E }),
19730
+ t && /* @__PURE__ */ jsx(RecursionField, { basePath: M.address, onlyRenderProperties: !0, schema: E }),
19731
19731
  !t && /* @__PURE__ */ jsx(RenderButton, h({}, ue)),
19732
19732
  /* @__PURE__ */ jsx(VariablePopupRecordProvider, { children: !t && e.children }),
19733
19733
  B
@@ -19814,7 +19814,7 @@ function RenderButton({
19814
19814
  confirm: D,
19815
19815
  modal: $
19816
19816
  }) {
19817
- var M, j;
19817
+ var j, M;
19818
19818
  const { t: O } = useTranslation(), { isPopupVisibleControlledByURL: z } = usePopupSettings(), { openPopup: N } = usePopupUtils(), w = useCallback(
19819
19819
  (R, B = !0) => {
19820
19820
  if (!(B && isPortalInBody(R.target)) && (R.preventDefault(), R.stopPropagation(), !a && o)) {
@@ -19847,14 +19847,14 @@ function RenderButton({
19847
19847
  O
19848
19848
  ]
19849
19849
  );
19850
- return !e && ((M = t == null ? void 0 : t.data) != null && M.hidden || !o) ? null : /* @__PURE__ */ jsxs(
19850
+ return !e && ((j = t == null ? void 0 : t.data) != null && j.hidden || !o) ? null : /* @__PURE__ */ jsxs(
19851
19851
  SortableItem,
19852
19852
  F(h({
19853
19853
  role: "button",
19854
19854
  "aria-label": x()
19855
19855
  }, f), {
19856
19856
  onMouseEnter: c,
19857
- loading: ((j = t == null ? void 0 : t.data) == null ? void 0 : j.loading) || i,
19857
+ loading: ((M = t == null ? void 0 : t.data) == null ? void 0 : M.loading) || i,
19858
19858
  icon: typeof r == "string" ? /* @__PURE__ */ jsx(Icon, { type: r }) : r,
19859
19859
  disabled: a,
19860
19860
  style: l,
@@ -22055,7 +22055,7 @@ const SchemaSettingsProvider = (e) => {
22055
22055
  }, [k]), D = useCallback(() => L(void 0, null, function* () {
22056
22056
  yield k.submit();
22057
22057
  try {
22058
- const N = k.values, w = Object.keys(N).reduce((M, j) => (k.query(j).take() && (M[j] = N[j]), M), {});
22058
+ const N = k.values, w = Object.keys(N).reduce((j, M) => (k.query(M).take() && (j[M] = N[M]), j), {});
22059
22059
  yield o == null ? void 0 : o(cloneDeep$1(w)), g(!1);
22060
22060
  } catch (N) {
22061
22061
  console.error(N);
@@ -22102,7 +22102,7 @@ const SchemaSettingsProvider = (e) => {
22102
22102
  });
22103
22103
  SchemaSettingsActionModalItem.displayName = "SchemaSettingsActionModalItem";
22104
22104
  const SchemaSettingsModalItem = (e) => {
22105
- const j = e, {
22105
+ const M = e, {
22106
22106
  hidden: t,
22107
22107
  title: o,
22108
22108
  components: n,
@@ -22113,7 +22113,7 @@ const SchemaSettingsModalItem = (e) => {
22113
22113
  initialValues: c,
22114
22114
  width: u = "fit-content",
22115
22115
  noRecord: d = !1
22116
- } = j, p = W(j, [
22116
+ } = M, p = W(M, [
22117
22117
  "hidden",
22118
22118
  "title",
22119
22119
  "components",
@@ -22124,7 +22124,7 @@ const SchemaSettingsModalItem = (e) => {
22124
22124
  "initialValues",
22125
22125
  "width",
22126
22126
  "noRecord"
22127
- ]), m = useContext(SchemaOptionsContext), g = useCollection_deprecated(), f = useAPIClient(), x = useApp(), { theme: C } = useGlobalTheme(), S = useBlockRequestContext(), b = useFormActiveFields(), { locale: y } = useContext(ConfigProvider.ConfigContext), v = useDataSourceManager(), I = useDataSourceKey(), A = useCollectionRecord(), { association: k } = useDataBlockProps() || {}, T = useFormBlockContext(), D = useBlockContext(), { getOperators: $ } = useOperators(), O = useLocationSearch(), { formValue: z, collection: N } = useSubFormValue(), w = useCurrentPopupRecord(), M = useParentPopupRecord();
22127
+ ]), m = useContext(SchemaOptionsContext), g = useCollection_deprecated(), f = useAPIClient(), x = useApp(), { theme: C } = useGlobalTheme(), S = useBlockRequestContext(), b = useFormActiveFields(), { locale: y } = useContext(ConfigProvider.ConfigContext), v = useDataSourceManager(), I = useDataSourceKey(), A = useCollectionRecord(), { association: k } = useDataBlockProps() || {}, T = useFormBlockContext(), D = useBlockContext(), { getOperators: $ } = useOperators(), O = useLocationSearch(), { formValue: z, collection: N } = useSubFormValue(), w = useCurrentPopupRecord(), j = useParentPopupRecord();
22128
22128
  return t ? null : /* @__PURE__ */ jsx(
22129
22129
  SchemaSettingsItem,
22130
22130
  F(h({
@@ -22140,8 +22140,8 @@ const SchemaSettingsModalItem = (e) => {
22140
22140
  recordData: w == null ? void 0 : w.value,
22141
22141
  collection: w == null ? void 0 : w.collection,
22142
22142
  parent: {
22143
- recordData: M == null ? void 0 : M.value,
22144
- collection: M == null ? void 0 : M.collection
22143
+ recordData: j == null ? void 0 : j.value,
22144
+ collection: j == null ? void 0 : j.collection
22145
22145
  },
22146
22146
  children: /* @__PURE__ */ jsx(CollectionRecordProvider, { record: d ? null : A, children: /* @__PURE__ */ jsx(FormBlockContext$1.Provider, { value: T, children: /* @__PURE__ */ jsx(SubFormProvider, { value: { value: z, collection: N }, children: /* @__PURE__ */ jsx(
22147
22147
  FormActiveFieldsProvider,
@@ -22318,11 +22318,11 @@ const SchemaSettingsModalItem = (e) => {
22318
22318
  [o, r, i, x, d, p, l, u, v]
22319
22319
  ), k = useMemo(() => ({ ArrayCollapse: ArrayCollapse$2, FormLayout }), []), T = useCallback(
22320
22320
  ($) => {
22321
- var M;
22321
+ var j;
22322
22322
  const O = [];
22323
- for (const j of $.fieldReaction.rules)
22324
- O.push(_.pickBy(j, _.identity));
22325
- const z = x["x-component"] === "BlockTemplate" && ((M = x["x-component-props"]) == null ? void 0 : M.templateId), w = {
22323
+ for (const M of $.fieldReaction.rules)
22324
+ O.push(_.pickBy(M, _.identity));
22325
+ const z = x["x-component"] === "BlockTemplate" && ((j = x["x-component-props"]) == null ? void 0 : j.templateId), w = {
22326
22326
  "x-uid": z && c(z).uid || x["x-uid"]
22327
22327
  };
22328
22328
  x[y] = O, w[y] = O, a.emit("patch", {
@@ -23614,10 +23614,10 @@ const useGetFilterOptions = () => {
23614
23614
  };
23615
23615
  });
23616
23616
  }, TableColumnDesigner$1 = (e) => {
23617
- var O, z, N, w, M, j, R, B, V, E, q, G;
23617
+ var O, z, N, w, j, M, R, B, V, E, q, G;
23618
23618
  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 = ((O = o == null ? void 0 : o["x-component-props"]) == null ? void 0 : O.fieldNames) || ((z = t == null ? void 0 : t["x-component-props"]) == null ? void 0 : z.fieldNames), m = useLabelFields$1((N = n == null ? void 0 : n.target) != null ? N : n == null ? void 0 : n.targetCollection), g = useColorFields((w = n == null ? void 0 : n.target) != null ? w : n == null ? void 0 : n.targetCollection), f = i(n == null ? void 0 : n.interface), x = a(n == null ? void 0 : n.target), C = isFileCollection$1(x), 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(
23619
23619
  n == null ? void 0 : n.interface
23620
- ), A = useFieldModeOptions({ fieldSchema: o }), k = ((M = o == null ? void 0 : o["x-component-props"]) == null ? void 0 : M.mode) || "Select";
23620
+ ), A = useFieldModeOptions({ fieldSchema: o }), k = ((j = o == null ? void 0 : o["x-component-props"]) == null ? void 0 : j.mode) || "Select";
23621
23621
  let T = "editable";
23622
23622
  o["x-disabled"] === !0 && (T = "readonly"), o["x-read-pretty"] === !0 && (T = "read-pretty");
23623
23623
  const D = I && k === "Select", $ = () => {
@@ -23636,7 +23636,7 @@ const useGetFilterOptions = () => {
23636
23636
  title: {
23637
23637
  title: c("Column title"),
23638
23638
  default: u == null ? void 0 : u.title,
23639
- description: `${c("Original field title: ")}${((j = n == null ? void 0 : n.uiSchema) == null ? void 0 : j.title) || (o == null ? void 0 : o.title)}`,
23639
+ description: `${c("Original field title: ")}${((M = n == null ? void 0 : n.uiSchema) == null ? void 0 : M.title) || (o == null ? void 0 : o.title)}`,
23640
23640
  "x-decorator": "FormItem",
23641
23641
  "x-component": "Input",
23642
23642
  "x-component-props": {}
@@ -24925,7 +24925,7 @@ const useCreateActionProps = () => {
24925
24925
  overwriteValues: $,
24926
24926
  skipValidator: O,
24927
24927
  triggerWorkflows: z
24928
- } = (R = l == null ? void 0 : l["x-action-settings"]) != null ? R : {}, N = (B = i == null ? void 0 : i["x-component-props"]) == null ? void 0 : B.addChild, w = {}, M = Object.keys(T).map((U) => L(this, null, function* () {
24928
+ } = (R = l == null ? void 0 : l["x-action-settings"]) != null ? R : {}, N = (B = i == null ? void 0 : i["x-component-props"]) == null ? void 0 : B.addChild, w = {}, j = Object.keys(T).map((U) => L(this, null, function* () {
24929
24929
  const K = T[U], Y = d(U);
24930
24930
  if (isVariable(K)) {
24931
24931
  const { value: H } = (yield C == null ? void 0 : C.parseVariable(K, S)) || {};
@@ -24933,8 +24933,8 @@ const useCreateActionProps = () => {
24933
24933
  } else
24934
24934
  K != null && K !== "" && (w[U] = K);
24935
24935
  }));
24936
- yield Promise.all(M), O || (yield e.submit());
24937
- const j = getFormValues({
24936
+ yield Promise.all(j), O || (yield e.submit());
24937
+ const M = getFormValues({
24938
24938
  filterByTk: f,
24939
24939
  field: t,
24940
24940
  form: e,
@@ -24945,12 +24945,12 @@ const useCreateActionProps = () => {
24945
24945
  });
24946
24946
  if (N) {
24947
24947
  const U = p();
24948
- j[(V = U == null ? void 0 : U.name) != null ? V : "parent"] = x, j[(E = U == null ? void 0 : U.foreignKey) != null ? E : "parentId"] = x.id;
24948
+ M[(V = U == null ? void 0 : U.name) != null ? V : "parent"] = x, M[(E = U == null ? void 0 : U.foreignKey) != null ? E : "parentId"] = x.id;
24949
24949
  }
24950
24950
  c.data = t.data || {}, c.data.loading = !0;
24951
24951
  try {
24952
24952
  const U = yield o[y]({
24953
- values: h(h(h({}, j), $), w),
24953
+ values: h(h(h({}, M), $), w),
24954
24954
  filterKeys: v,
24955
24955
  // TODO(refactor): should change to inject by plugin
24956
24956
  triggerWorkflows: z != null && z.length ? z.map((K) => [K.workflowKey, K.context].filter(Boolean).join("!")).join(",") : void 0
@@ -25104,20 +25104,20 @@ const useCreateActionProps = () => {
25104
25104
  } = (z = i == null ? void 0 : i["x-action-settings"]) != null ? z : {};
25105
25105
  m.data = e.data || {}, m.data.loading = !0;
25106
25106
  const $ = {}, O = Object.keys(k).map((w) => L(this, null, function* () {
25107
- const M = k[w], j = C(w);
25108
- if (isVariable(M)) {
25109
- const { value: R } = (yield f == null ? void 0 : f.parseVariable(M, S)) || {};
25110
- R && ($[w] = transformVariableValue(R, { targetCollectionField: j }));
25107
+ const j = k[w], M = C(w);
25108
+ if (isVariable(j)) {
25109
+ const { value: R } = (yield f == null ? void 0 : f.parseVariable(j, S)) || {};
25110
+ R && ($[w] = transformVariableValue(R, { targetCollectionField: M }));
25111
25111
  } else
25112
- M != null && M !== "" && ($[w] = M);
25112
+ j != null && j !== "" && ($[w] = j);
25113
25113
  }));
25114
25114
  yield Promise.all(O), g.confirm({
25115
25115
  title: p("Bulk update"),
25116
25116
  content: p(D === "selected" ? "Update selected data?" : "Update all data?"),
25117
25117
  onOk() {
25118
25118
  return L(this, null, function* () {
25119
- var j, R, B, V;
25120
- const { filter: w } = (R = (j = n.params) == null ? void 0 : j[0]) != null ? R : {}, M = {
25119
+ var M, R, B, V;
25120
+ const { filter: w } = (R = (M = n.params) == null ? void 0 : M[0]) != null ? R : {}, j = {
25121
25121
  values: h({}, $),
25122
25122
  filter: w,
25123
25123
  forceUpdate: !1
@@ -25127,11 +25127,11 @@ const useCreateActionProps = () => {
25127
25127
  message.error(p("Please select the records to be updated")), m.data.loading = !1;
25128
25128
  return;
25129
25129
  }
25130
- M.filter = { $and: [{ [l || "id"]: { $in: c } }] };
25130
+ j.filter = { $and: [{ [l || "id"]: { $in: c } }] };
25131
25131
  }
25132
- M.filter || (M.forceUpdate = !0);
25132
+ j.filter || (j.forceUpdate = !0);
25133
25133
  try {
25134
- yield t.update(M);
25134
+ yield t.update(j);
25135
25135
  } catch (E) {
25136
25136
  } finally {
25137
25137
  m.data.loading = !1;
@@ -25159,7 +25159,7 @@ const useCreateActionProps = () => {
25159
25159
  return {
25160
25160
  onClick() {
25161
25161
  return L(this, null, function* () {
25162
- var w, M, j, R;
25162
+ var w, j, M, R;
25163
25163
  const { skipValidator: I, onSuccess: A, requestSettings: k } = (w = n == null ? void 0 : n["x-action-settings"]) != null ? w : {}, T = n == null ? void 0 : n["x-action"];
25164
25164
  if (!k.url)
25165
25165
  return;
@@ -25186,7 +25186,7 @@ const useCreateActionProps = () => {
25186
25186
  };
25187
25187
  x.data = c.data || {}, x.data.loading = !0;
25188
25188
  try {
25189
- if (yield e.request(h({}, N)), x.data.loading = !1, u instanceof TableFieldResource || (j = (M = d == null ? void 0 : d.service) == null ? void 0 : M.refresh) == null || j.call(M), (R = p == null ? void 0 : p.refresh) == null || R.call(p), T === "customize:form:request" && (C == null || C(!1)), !(A != null && A.successMessage))
25189
+ if (yield e.request(h({}, N)), x.data.loading = !1, u instanceof TableFieldResource || (M = (j = d == null ? void 0 : d.service) == null ? void 0 : j.refresh) == null || M.call(j), (R = p == null ? void 0 : p.refresh) == null || R.call(p), T === "customize:form:request" && (C == null || C(!1)), !(A != null && A.successMessage))
25190
25190
  return;
25191
25191
  A != null && A.manualClose ? S.success({
25192
25192
  title: r(A == null ? void 0 : A.successMessage),
@@ -25205,23 +25205,23 @@ const useCreateActionProps = () => {
25205
25205
  return {
25206
25206
  onClick() {
25207
25207
  return L(this, null, function* () {
25208
- var M;
25208
+ var j;
25209
25209
  const {
25210
25210
  assignedValues: A = {},
25211
25211
  onSuccess: k,
25212
25212
  overwriteValues: T,
25213
25213
  skipValidator: D,
25214
25214
  triggerWorkflows: $
25215
- } = (M = c == null ? void 0 : c["x-action-settings"]) != null ? M : {}, O = {}, z = Object.keys(A).map((j) => L(this, null, function* () {
25216
- const R = A[j], B = p(j);
25215
+ } = (j = c == null ? void 0 : c["x-action-settings"]) != null ? j : {}, O = {}, z = Object.keys(A).map((M) => L(this, null, function* () {
25216
+ const R = A[M], B = p(M);
25217
25217
  if (isVariable(R)) {
25218
25218
  const { value: V } = (yield b == null ? void 0 : b.parseVariable(R, y)) || {};
25219
- V && (O[j] = transformVariableValue(V, { targetCollectionField: B }));
25219
+ V && (O[M] = transformVariableValue(V, { targetCollectionField: B }));
25220
25220
  } else
25221
- R != null && R !== "" && (O[j] = R);
25221
+ R != null && R !== "" && (O[M] = R);
25222
25222
  }));
25223
25223
  yield Promise.all(z), D || (yield e.submit());
25224
- const N = d.map((j) => j.name), w = getFormValues({
25224
+ const N = d.map((M) => M.name), w = getFormValues({
25225
25225
  filterByTk: t,
25226
25226
  field: o,
25227
25227
  form: e,
@@ -25238,7 +25238,7 @@ const useCreateActionProps = () => {
25238
25238
  }, S), {
25239
25239
  updateAssociationValues: x,
25240
25240
  // TODO(refactor): should change to inject by plugin
25241
- triggerWorkflows: $ != null && $.length ? $.map((j) => [j.workflowKey, j.context].filter(Boolean).join("!")).join(",") : void 0
25241
+ triggerWorkflows: $ != null && $.length ? $.map((M) => [M.workflowKey, M.context].filter(Boolean).join("!")).join(",") : void 0
25242
25242
  })), f.data.loading = !1, i == null || i(!1), a == null || a(!0), l == null || l(!1), !(k != null && k.successMessage))
25243
25243
  return;
25244
25244
  k != null && k.manualClose ? C.success({
@@ -25247,7 +25247,7 @@ const useCreateActionProps = () => {
25247
25247
  yield e.reset(), k != null && k.redirecting && (k != null && k.redirectTo) && (isURL(k.redirectTo) ? window.location.href = k.redirectTo : u(k.redirectTo));
25248
25248
  })
25249
25249
  }) : (message.success(g(k == null ? void 0 : k.successMessage)), k != null && k.redirecting && (k != null && k.redirectTo) && (isURL(k.redirectTo) ? window.location.href = k.redirectTo : u(k.redirectTo)));
25250
- } catch (j) {
25250
+ } catch (M) {
25251
25251
  f.data.loading = !1;
25252
25252
  }
25253
25253
  });
@@ -25480,7 +25480,7 @@ const useCreateActionProps = () => {
25480
25480
  u = z;
25481
25481
  return;
25482
25482
  }
25483
- u = z.filter((M) => M.label.includes(w));
25483
+ u = z.filter((j) => j.label.includes(w));
25484
25484
  };
25485
25485
  } else
25486
25486
  C = `${r}.${f}.$in`, u = (g == null ? void 0 : g.data) || [], d = ($) => {
@@ -25499,19 +25499,19 @@ const useCreateActionProps = () => {
25499
25499
  var V, E, q;
25500
25500
  if (!O.find((G) => G.uid === N.uid))
25501
25501
  return;
25502
- const M = `${z}${t.name}`, j = ((V = N.service.params) == null ? void 0 : V[0]) || {}, R = ((q = (E = N.service.params) == null ? void 0 : E[1]) == null ? void 0 : q.filters) || {};
25502
+ const j = `${z}${t.name}`, M = ((V = N.service.params) == null ? void 0 : V[0]) || {}, R = ((q = (E = N.service.params) == null ? void 0 : E[1]) == null ? void 0 : q.filters) || {};
25503
25503
  if ($.length)
25504
- R[M] = {
25504
+ R[j] = {
25505
25505
  [C]: $
25506
25506
  };
25507
25507
  else {
25508
25508
  if (N.dataLoadingMode === "manual")
25509
25509
  return N.clearData();
25510
- delete R[M];
25510
+ delete R[j];
25511
25511
  }
25512
25512
  const B = mergeFilter([...Object.values(R), N.defaultFilter]);
25513
25513
  return N.doFilter(
25514
- F(h({}, j), {
25514
+ F(h({}, M), {
25515
25515
  page: 1,
25516
25516
  filter: B
25517
25517
  }),
@@ -25758,7 +25758,7 @@ const useSyncFromForm = (e, t, o) => {
25758
25758
  isLeaf: !0,
25759
25759
  field: $,
25760
25760
  disabled: I
25761
- }), N = A.find((M) => M.name === z.key);
25761
+ }), N = A.find((j) => j.name === z.key);
25762
25762
  if (["belongsTo", "belongsToMany"].includes($.type) && (!N || ["Select", "Picker"].includes(N == null ? void 0 : N.fieldMode)))
25763
25763
  O.type = "reference", z.type = "reference", z.title = React.createElement(TreeNode, F(h({}, O), { type: "reference" })), z.isLeaf = !1, z.children = m($.target, {
25764
25764
  depth: b + 1,
@@ -25767,15 +25767,15 @@ const useSyncFromForm = (e, t, o) => {
25767
25767
  exclude: systemKeys
25768
25768
  });
25769
25769
  else if (["hasOne", "hasMany"].includes($.type) || ["Nester", "SubTable"].includes(N == null ? void 0 : N.fieldMode)) {
25770
- let M = !1;
25771
- ["hasOne", "hasMany"].includes($.type) && ["Select", "Picker"].includes(N == null ? void 0 : N.fieldMode) && (M = !0), z.disabled = !0, z.isLeaf = !1, z.children = p(
25770
+ let j = !1;
25771
+ ["hasOne", "hasMany"].includes($.type) && ["Select", "Picker"].includes(N == null ? void 0 : N.fieldMode) && (j = !0), z.disabled = !0, z.isLeaf = !1, z.children = p(
25772
25772
  $.target,
25773
25773
  {
25774
25774
  depth: b + 1,
25775
25775
  maxDepth: y,
25776
25776
  prefix: z.key,
25777
25777
  exclude: ["id", ...systemKeys],
25778
- disabled: M
25778
+ disabled: j
25779
25779
  },
25780
25780
  A
25781
25781
  );
@@ -25829,10 +25829,10 @@ const useSyncFromForm = (e, t, o) => {
25829
25829
  const x = /* @__PURE__ */ new Set([]), C = /* @__PURE__ */ new Set([]), S = (v, I) => {
25830
25830
  var A;
25831
25831
  (A = v == null ? void 0 : v.reduceProperties) == null || A.call(v, (k, T) => {
25832
- var M, j, R;
25832
+ var j, M, R;
25833
25833
  const D = k || I, $ = T["x-collection-field"] && n(T["x-collection-field"]), O = T.name.includes("."), z = $ && ["hasOne", "hasMany", "belongsTo", "belongsToMany"].includes($.type), N = !z && O ? getAssociationPath(T.name) : T.name, w = D === "" || !D ? N : D + "." + N;
25834
- if ($ && !(["hasOne", "hasMany"].includes($.type) || ["SubForm", "Nester"].includes((M = T["x-component-props"]) == null ? void 0 : M.mode)) && C.add(w), $ && (z || O) && T["x-component"] !== "TableField") {
25835
- if (x.add({ name: w, fieldMode: ((j = T["x-component-props"]) == null ? void 0 : j.mode) || "Select" }), ["Nester", "SubTable"].includes((R = T["x-component-props"]) == null ? void 0 : R.mode)) {
25834
+ if ($ && !(["hasOne", "hasMany"].includes($.type) || ["SubForm", "Nester"].includes((j = T["x-component-props"]) == null ? void 0 : j.mode)) && C.add(w), $ && (z || O) && T["x-component"] !== "TableField") {
25835
+ if (x.add({ name: w, fieldMode: ((M = T["x-component-props"]) == null ? void 0 : M.mode) || "Select" }), ["Nester", "SubTable"].includes((R = T["x-component-props"]) == null ? void 0 : R.mode)) {
25836
25836
  const B = D && D !== "" ? D + "." + T.name : T.name;
25837
25837
  S(T, B);
25838
25838
  }
@@ -26671,7 +26671,7 @@ function Input$1(e) {
26671
26671
  label: S("Constant"),
26672
26672
  [N.value]: "$",
26673
26673
  [N.label]: S("Constant")
26674
- } : i ? getTypedConstantOption(O, i, N) : null, [O, i]), M = w && !n ? w.component : NullComponent, j = Array.isArray(i) ? (G = (q = i.find((U) => Array.isArray(U) && U[0] === O)) == null ? void 0 : q[1]) != null ? G : {} : {};
26674
+ } : i ? getTypedConstantOption(O, i, N) : null, [O, i]), j = w && !n ? w.component : NullComponent, M = Array.isArray(i) ? (G = (q = i.find((U) => Array.isArray(U) && U[0] === O)) == null ? void 0 : q[1]) != null ? G : {} : {};
26675
26675
  let R;
26676
26676
  t == null ? n && k ? R = ["$"] : R = [""] : R = n ? ["$"] : [" ", O], useEffect(() => {
26677
26677
  const H = w != null ? w : {}, { component: U } = H, K = W(H, ["component"]), Y = [
@@ -26802,12 +26802,12 @@ function Input$1(e) {
26802
26802
  )
26803
26803
  ]
26804
26804
  }
26805
- ) : /* @__PURE__ */ jsx("div", { style: { flex: 1 }, children: n && k ? n : M ? /* @__PURE__ */ jsx(
26806
- M,
26805
+ ) : /* @__PURE__ */ jsx("div", { style: { flex: 1 }, children: n && k ? n : j ? /* @__PURE__ */ jsx(
26806
+ j,
26807
26807
  F(h({
26808
26808
  role: "button",
26809
26809
  "aria-label": "variable-constant"
26810
- }, j), {
26810
+ }, M), {
26811
26811
  value: t,
26812
26812
  onChange: o
26813
26813
  })
@@ -27080,68 +27080,68 @@ function getCurrentRange(e) {
27080
27080
  function TextArea(e) {
27081
27081
  const { wrapSSR: t, hashId: o, componentCls: n } = useStyles$c(), { value: r = "", scope: i, onChange: a, multiline: l = !0, changeOnSelect: c, style: u } = e, d = useRef(null), [p, m] = useState([]), g = useForm(), f = useMemo(() => createOptionsValueLabelMap(p), [p]), [x, C] = useState(!1), [S, b] = useState(!1), [y, v] = useState(() => renderHTML(r != null ? r : "", f)), [I, A] = useState([-1, 0, -1, 0]);
27082
27082
  useAntdInputStyle("ant-input"), useEffect(() => {
27083
- preloadOptions(i, r).then((M) => {
27084
- m(M);
27083
+ preloadOptions(i, r).then((j) => {
27084
+ m(j);
27085
27085
  }).catch(console.error);
27086
27086
  }, [i, r]), useEffect(() => {
27087
27087
  v(renderHTML(r != null ? r : "", f)), S || A([-1, 0, -1, 0]);
27088
27088
  }, [r, f]), useEffect(() => {
27089
27089
  var R;
27090
- const { current: M } = d;
27091
- if (!M)
27090
+ const { current: j } = d;
27091
+ if (!j)
27092
27092
  return;
27093
- const j = new Range();
27093
+ const M = new Range();
27094
27094
  if (S) {
27095
27095
  if (I.join() === "-1,0,-1,0")
27096
27096
  return;
27097
27097
  const B = (R = window.getSelection) == null ? void 0 : R.call(window);
27098
27098
  if (B)
27099
27099
  try {
27100
- const V = Array.from(M.childNodes);
27101
- V.length && (I[0] === -1 ? I[1] && j.setStartAfter(V[I[1] - 1]) : j.setStart(V[I[0]], I[1]), I[2] === -1 ? I[3] && j.setEndAfter(V[I[3] - 1]) : j.setEnd(V[I[2]], I[3])), j.collapse(!0), B.removeAllRanges(), B.addRange(j);
27100
+ const V = Array.from(j.childNodes);
27101
+ V.length && (I[0] === -1 ? I[1] && M.setStartAfter(V[I[1] - 1]) : M.setStart(V[I[0]], I[1]), I[2] === -1 ? I[3] && M.setEndAfter(V[I[3] - 1]) : M.setEnd(V[I[2]], I[3])), M.collapse(!0), B.removeAllRanges(), B.addRange(M);
27102
27102
  } catch (V) {
27103
27103
  }
27104
27104
  } else {
27105
- const { lastChild: B } = M;
27105
+ const { lastChild: B } = j;
27106
27106
  if (B) {
27107
- j.setStartAfter(B), j.setEndAfter(B);
27108
- const V = Array.from(M.childNodes), E = j.startContainer === M ? -1 : V.indexOf(B), q = j.startContainer === M ? -1 : V.indexOf(B);
27109
- A([E, j.startOffset, q, j.endOffset]);
27107
+ M.setStartAfter(B), M.setEndAfter(B);
27108
+ const V = Array.from(j.childNodes), E = M.startContainer === j ? -1 : V.indexOf(B), q = M.startContainer === j ? -1 : V.indexOf(B);
27109
+ A([E, M.startOffset, q, M.endOffset]);
27110
27110
  }
27111
27111
  }
27112
27112
  }, [y]);
27113
27113
  const k = useCallback(
27114
- function(M) {
27115
- const j = M.filter((V) => !!V.trim()), { current: R } = d;
27116
- if (!R || !j)
27114
+ function(j) {
27115
+ const M = j.filter((V) => !!V.trim()), { current: R } = d;
27116
+ if (!R || !M)
27117
27117
  return;
27118
27118
  R.focus();
27119
- const B = createVariableTagHTML(j.join("."), f);
27119
+ const B = createVariableTagHTML(M.join("."), f);
27120
27120
  pasteHTML(R, B, {
27121
27121
  range: I
27122
27122
  }), b(!0), A(getCurrentRange(R)), a(getValue(R));
27123
27123
  },
27124
27124
  [f, a, I]
27125
27125
  ), T = useCallback(
27126
- function({ currentTarget: M }) {
27127
- x || (b(!0), A(getCurrentRange(M)), a(getValue(M)));
27126
+ function({ currentTarget: j }) {
27127
+ x || (b(!0), A(getCurrentRange(j)), a(getValue(j)));
27128
27128
  },
27129
27129
  [x, a]
27130
- ), D = useCallback(function({ currentTarget: M }) {
27131
- A(getCurrentRange(M));
27132
- }, []), $ = useCallback(function(M) {
27133
- M.key === "Enter" && M.preventDefault();
27130
+ ), D = useCallback(function({ currentTarget: j }) {
27131
+ A(getCurrentRange(j));
27132
+ }, []), $ = useCallback(function(j) {
27133
+ j.key === "Enter" && j.preventDefault();
27134
27134
  }, []), O = useCallback(function() {
27135
27135
  C(!0);
27136
27136
  }, []), z = useCallback(
27137
- ({ currentTarget: M }) => {
27138
- C(!1), b(!0), A(getCurrentRange(M)), a(getValue(M));
27137
+ ({ currentTarget: j }) => {
27138
+ C(!1), b(!0), A(getCurrentRange(j)), a(getValue(j));
27139
27139
  },
27140
27140
  [a]
27141
27141
  ), N = useCallback(
27142
- function(M) {
27143
- M.preventDefault();
27144
- const j = M.clipboardData.getData("text/html") || M.clipboardData.getData("text"), R = sanitizeHTML(j, {
27142
+ function(j) {
27143
+ j.preventDefault();
27144
+ const M = j.clipboardData.getData("text/html") || j.clipboardData.getData("text"), R = sanitizeHTML(M, {
27145
27145
  allowedTags: ["span"],
27146
27146
  allowedAttributes: {
27147
27147
  span: ["data-variable", "contenteditable"]
@@ -27158,7 +27158,7 @@ function TextArea(e) {
27158
27158
  }
27159
27159
  }
27160
27160
  }).replace(/\n/g, " ");
27161
- b(!0), pasteHTML(M.currentTarget, R), A(getCurrentRange(M.currentTarget)), a(getValue(M.currentTarget));
27161
+ b(!0), pasteHTML(j.currentTarget, R), A(getCurrentRange(j.currentTarget)), a(getValue(j.currentTarget));
27162
27162
  },
27163
27163
  [a]
27164
27164
  ), w = e.disabled || g.disabled;
@@ -31893,7 +31893,7 @@ const getValues = (e, t) => castArray(e).filter((o) => o != null).map((o) => typ
31893
31893
  }
31894
31894
  },
31895
31895
  [O == null ? void 0 : O.uiSchema, t]
31896
- ), { data: M, run: j, loading: R } = useRequest(
31896
+ ), { data: j, run: M, loading: R } = useRequest(
31897
31897
  F(h({
31898
31898
  action: "list"
31899
31899
  }, o), {
@@ -31924,11 +31924,11 @@ const getValues = (e, t) => castArray(e).filter((o) => o != null).map((o) => typ
31924
31924
  }
31925
31925
  ) : null, [A.current]);
31926
31926
  useEffect(() => {
31927
- b.current && j();
31927
+ b.current && M();
31928
31928
  }, [B]);
31929
31929
  const E = (H) => L(void 0, null, function* () {
31930
31930
  var X;
31931
- j({
31931
+ M({
31932
31932
  filter: mergeFilter([
31933
31933
  H ? {
31934
31934
  [t.label]: {
@@ -31941,11 +31941,11 @@ const getValues = (e, t) => castArray(e).filter((o) => o != null).map((o) => typ
31941
31941
  }), q = useMemo(() => {
31942
31942
  var J;
31943
31943
  const H = r || i;
31944
- if (!((J = M == null ? void 0 : M.data) != null && J.length))
31944
+ if (!((J = j == null ? void 0 : j.data) != null && J.length))
31945
31945
  return H != null ? Array.isArray(H) ? H : [H] : [];
31946
- const X = H != null && (Array.isArray(H) ? H : [F(h({}, H), { [t.value]: H[t.value] || H })]) || [], Q = typeof p == "function" ? M.data.filter(p) : M.data;
31946
+ const X = H != null && (Array.isArray(H) ? H : [F(h({}, H), { [t.value]: H[t.value] || H })]) || [], Q = typeof p == "function" ? j.data.filter(p) : j.data;
31947
31947
  return uniqBy(Q.concat(X != null ? X : []), t.value);
31948
- }, [r, i, M == null ? void 0 : M.data, t.value, p]);
31948
+ }, [r, i, j == null ? void 0 : j.data, t.value, p]);
31949
31949
  return /* @__PURE__ */ jsx(
31950
31950
  Select,
31951
31951
  F(h({
@@ -31957,20 +31957,20 @@ const getValues = (e, t) => castArray(e).filter((o) => o != null).map((o) => typ
31957
31957
  fieldNames: t,
31958
31958
  onSearch: E,
31959
31959
  onDropdownVisibleChange: (H) => {
31960
- S(H), A.current = null, H && j(), b.current = !0;
31960
+ S(H), A.current = null, H && M(), b.current = !0;
31961
31961
  },
31962
31962
  objectValue: a,
31963
31963
  value: r,
31964
31964
  defaultValue: i
31965
31965
  }, g), {
31966
- loading: M ? R : !0,
31966
+ loading: j ? R : !0,
31967
31967
  options: w(q),
31968
31968
  rawOptions: q,
31969
31969
  dropdownRender: (H) => {
31970
31970
  const X = q.some((Q) => Q[t.label] === A.current);
31971
31971
  return /* @__PURE__ */ jsx(Fragment, { children: v ? /* @__PURE__ */ jsxs(Fragment, { children: [
31972
- !((M == null ? void 0 : M.data.length) === 0 && (A != null && A.current)) && H,
31973
- (M == null ? void 0 : M.data.length) > 0 && (A == null ? void 0 : A.current) && !X && /* @__PURE__ */ jsx(Divider, { style: { margin: 0 } }),
31972
+ !((j == null ? void 0 : j.data.length) === 0 && (A != null && A.current)) && H,
31973
+ (j == null ? void 0 : j.data.length) > 0 && (A == null ? void 0 : A.current) && !X && /* @__PURE__ */ jsx(Divider, { style: { margin: 0 } }),
31974
31974
  !X && /* @__PURE__ */ jsx(V, {})
31975
31975
  ] }) : H });
31976
31976
  }
@@ -33018,13 +33018,13 @@ const useStyles$9 = genStyleHook("nb-page", (e) => {
33018
33018
  // 处理 searchParams 是为了兼容旧版的 tab 参数
33019
33019
  () => p || I.get("tab") || Object.keys(l.properties || {}).shift(),
33020
33020
  [l.properties, I, p]
33021
- ), [D, $] = useState(0), { wrapSSR: O, hashId: z, componentCls: N } = useStyles$9(), w = useStyles$a(), { token: M } = useToken(), j = b ? void 0 : l.title || r(i);
33021
+ ), [D, $] = useState(0), { wrapSSR: O, hashId: z, componentCls: N } = useStyles$9(), w = useStyles$a(), { token: j } = useToken(), M = b ? void 0 : l.title || r(i);
33022
33022
  useRequest(
33023
33023
  {
33024
33024
  url: `/uiSchemas:getParentJsonSchema/${l["x-uid"]}`
33025
33025
  },
33026
33026
  {
33027
- ready: !b && !j,
33027
+ ready: !b && !M,
33028
33028
  onSuccess(U) {
33029
33029
  a(U.data.title);
33030
33030
  }
@@ -33039,10 +33039,10 @@ const useStyles$9 = genStyleHook("nb-page", (e) => {
33039
33039
  animated: f,
33040
33040
  activeKey: T,
33041
33041
  tabBarStyle: {
33042
- paddingLeft: M.paddingLG - M.paddingPageHorizontal,
33043
- paddingRight: M.paddingLG - M.paddingPageHorizontal,
33044
- marginLeft: M.paddingPageHorizontal - M.paddingLG,
33045
- marginRight: M.paddingPageHorizontal - M.paddingLG
33042
+ paddingLeft: j.paddingLG - j.paddingPageHorizontal,
33043
+ paddingRight: j.paddingLG - j.paddingPageHorizontal,
33044
+ marginLeft: j.paddingPageHorizontal - j.paddingLG,
33045
+ marginRight: j.paddingPageHorizontal - j.paddingLG
33046
33046
  },
33047
33047
  onChange: (U) => {
33048
33048
  k(!0), navigateToTab({ activeKey: U, navigate: v, basename: g }), setTimeout(() => {
@@ -33135,9 +33135,9 @@ const useStyles$9 = genStyleHook("nb-page", (e) => {
33135
33135
  children: !C && /* @__PURE__ */ jsx(
33136
33136
  PageHeader,
33137
33137
  F(h({
33138
- className: cls("pageHeaderCss", j || S ? "" : "height0"),
33138
+ className: cls("pageHeaderCss", M || S ? "" : "height0"),
33139
33139
  ghost: !1,
33140
- title: j || " "
33140
+ title: M || " "
33141
33141
  }, o), {
33142
33142
  footer: B
33143
33143
  })
@@ -33481,7 +33481,7 @@ const AppendsTreeSelect = (e) => {
33481
33481
  return c(z);
33482
33482
  if (!z.isLeaf && z.loadChildren) {
33483
33483
  const N = z.loadChildren(z);
33484
- g((w) => N.reduce((M, j) => Object.assign(M, { [j.value]: j }), h({}, w)));
33484
+ g((w) => N.reduce((j, M) => Object.assign(j, { [M.value]: M }), h({}, w)));
33485
33485
  }
33486
33486
  }),
33487
33487
  [c]
@@ -33493,7 +33493,7 @@ const AppendsTreeSelect = (e) => {
33493
33493
  title: l.label,
33494
33494
  fullTitle: l.label,
33495
33495
  isLeaf: !1
33496
- }) : null, w = (c === null ? [] : getCollectionFieldOptions.call({ compile: d, getCollectionFields: y, filter: a }, C, z)).reduce((M, j) => Object.assign(M, { [j.value]: j }), {});
33496
+ }) : null, w = (c === null ? [] : getCollectionFieldOptions.call({ compile: d, getCollectionFields: y, filter: a }, C, z)).reduce((j, M) => Object.assign(j, { [M.value]: M }), {});
33497
33497
  z && (w[z.value] = z), g(w);
33498
33498
  }, [f, l, a, c]), useEffect(() => {
33499
33499
  const z = e.multiple ? o : o ? [o] : [];
@@ -33501,20 +33501,20 @@ const AppendsTreeSelect = (e) => {
33501
33501
  return;
33502
33502
  const N = [];
33503
33503
  z.forEach((w) => {
33504
- const M = w.split(".");
33505
- let j = m[M[0]];
33506
- for (let R = 1; R < M.length && j; R++) {
33507
- const B = M.slice(0, R + 1).join(".");
33504
+ const j = w.split(".");
33505
+ let M = m[j[0]];
33506
+ for (let R = 1; R < j.length && M; R++) {
33507
+ const B = j.slice(0, R + 1).join(".");
33508
33508
  if (m[B]) {
33509
- j = m[B];
33509
+ M = m[B];
33510
33510
  break;
33511
33511
  }
33512
- if (!j.isLeaf && j.loadChildren) {
33513
- const V = j.loadChildren(j);
33514
- V != null && V.length && (N.push(...V), j = V.find((E) => E.value === M.slice(0, R + 1).join(".")));
33512
+ if (!M.isLeaf && M.loadChildren) {
33513
+ const V = M.loadChildren(M);
33514
+ V != null && V.length && (N.push(...V), M = V.find((E) => E.value === j.slice(0, R + 1).join(".")));
33515
33515
  }
33516
33516
  }
33517
- }), g((w) => N.reduce((M, j) => Object.assign(M, { [j.value]: j }), h({}, w)));
33517
+ }), g((w) => N.reduce((j, M) => Object.assign(j, { [M.value]: M }), h({}, w)));
33518
33518
  }, [o, v.length, e.multiple]);
33519
33519
  const k = useCallback(
33520
33520
  (z) => {
@@ -33522,15 +33522,15 @@ const AppendsTreeSelect = (e) => {
33522
33522
  n(z);
33523
33523
  return;
33524
33524
  }
33525
- const N = z.map((j) => j.value).filter(Boolean), w = new Set(N), M = I.find((j) => !w.has(j.value));
33526
- if (M) {
33527
- const j = `${M.value}.`;
33525
+ const N = z.map((M) => M.value).filter(Boolean), w = new Set(N), j = I.find((M) => !w.has(M.value));
33526
+ if (j) {
33527
+ const M = `${j.value}.`;
33528
33528
  Object.keys(m).forEach((R) => {
33529
- R.startsWith(j) && w.delete(R);
33529
+ R.startsWith(M) && w.delete(R);
33530
33530
  });
33531
33531
  } else
33532
- N.forEach((j) => {
33533
- const R = j.split(".");
33532
+ N.forEach((M) => {
33533
+ const R = M.split(".");
33534
33534
  if (R.length)
33535
33535
  for (let B = 1; B <= R.length; B++)
33536
33536
  w.add(R.slice(0, B).join("."));
@@ -33541,11 +33541,11 @@ const AppendsTreeSelect = (e) => {
33541
33541
  ), T = useCallback(
33542
33542
  (z) => {
33543
33543
  var B;
33544
- const { value: N, onClose: w, disabled: M, closable: j } = z;
33544
+ const { value: N, onClose: w, disabled: j, closable: M } = z;
33545
33545
  if (!N)
33546
33546
  return null;
33547
33547
  const { fullTitle: R } = (B = m[N]) != null ? B : {};
33548
- return /* @__PURE__ */ jsx(Tag, { closable: j && !M, onClose: w, children: R == null ? void 0 : R.join(" / ") });
33548
+ return /* @__PURE__ */ jsx(Tag, { closable: M && !j, onClose: w, children: R == null ? void 0 : R.join(" / ") });
33549
33549
  },
33550
33550
  [m]
33551
33551
  ), D = Array.isArray(I) ? I.filter((z) => z.value in m) : I, $ = e.multiple ? o : o != null ? [o] : [];
@@ -33593,8 +33593,8 @@ const AppendsTreeSelect = (e) => {
33593
33593
  const k = uid();
33594
33594
  return x.addEffects(k, () => {
33595
33595
  onFieldInputValueChange("*", (T) => {
33596
- var $, O, z, N;
33597
- (filterAnalyses((z = (O = ($ = r.componentProps) == null ? void 0 : $.service) == null ? void 0 : O.params) == null ? void 0 : z.filter) || []).includes((N = T == null ? void 0 : T.props) == null ? void 0 : N.name) && r.value && (r.setValue(void 0), p(void 0));
33596
+ var $, O, z, N, w, j;
33597
+ (filterAnalyses((z = (O = ($ = r.componentProps) == null ? void 0 : $.service) == null ? void 0 : O.params) == null ? void 0 : z.filter) || []).includes((N = T == null ? void 0 : T.props) == null ? void 0 : N.name) && r.value && ((w = T == null ? void 0 : T.indexes) == null ? void 0 : w[0]) === ((j = r == null ? void 0 : r.indexes) == null ? void 0 : j[0]) && (r.setValue(void 0), p(void 0));
33598
33598
  });
33599
33599
  }), () => {
33600
33600
  x.removeEffects(k);
@@ -34531,10 +34531,10 @@ const InternalFileManager = (e) => {
34531
34531
  setSelectedRows: u,
34532
34532
  collectionField: C
34533
34533
  }, A = () => {
34534
- const { setVisible: $ } = useActionContext(), { multiple: O, selectedRows: z, onChange: N, options: w, collectionField: M } = useContext(RecordPickerContext);
34534
+ const { setVisible: $ } = useActionContext(), { multiple: O, selectedRows: z, onChange: N, options: w, collectionField: j } = useContext(RecordPickerContext);
34535
34535
  return {
34536
34536
  onClick() {
34537
- N(O ? unionBy(z, w, (M == null ? void 0 : M.targetKey) || "id") : (z == null ? void 0 : z[0]) || null), $(!1);
34537
+ N(O ? unionBy(z, w, (j == null ? void 0 : j.targetKey) || "id") : (z == null ? void 0 : z[0]) || null), $(!1);
34538
34538
  }
34539
34539
  };
34540
34540
  };
@@ -34596,36 +34596,36 @@ const InternalFileManager = (e) => {
34596
34596
  useEffect(() => {
34597
34597
  var N;
34598
34598
  if (r) {
34599
- const w = Array.isArray(r) ? extractLastNonNullValueObjects(r == null ? void 0 : r.filter((j) => j.value), !0) : transformNestedData(r), M = (N = w == null ? void 0 : w.map) == null ? void 0 : N.call(w, (j) => ({
34600
- key: j.parentId,
34599
+ const w = Array.isArray(r) ? extractLastNonNullValueObjects(r == null ? void 0 : r.filter((M) => M.value), !0) : transformNestedData(r), j = (N = w == null ? void 0 : w.map) == null ? void 0 : N.call(w, (M) => ({
34600
+ key: M.parentId,
34601
34601
  children: [],
34602
- value: j
34602
+ value: M
34603
34603
  }));
34604
- a(M);
34604
+ a(j);
34605
34605
  }
34606
34606
  }, []);
34607
34607
  const k = useCallback(
34608
34608
  (N) => {
34609
34609
  try {
34610
34610
  return N == null ? void 0 : N.filter((w) => ["number", "string"].includes(typeof w[y.value])).map((w) => {
34611
- var j, R, B;
34612
- let M = p(w[y.label]);
34613
- if ((j = v == null ? void 0 : v.uiSchema) != null && j.enum)
34614
- if (Array.isArray(M))
34615
- M = M.map((V, E) => {
34611
+ var M, R, B;
34612
+ let j = p(w[y.label]);
34613
+ if ((M = v == null ? void 0 : v.uiSchema) != null && M.enum)
34614
+ if (Array.isArray(j))
34615
+ j = j.map((V, E) => {
34616
34616
  var G, U;
34617
34617
  const q = (U = (G = v.uiSchema.enum).find) == null ? void 0 : U.call(G, (K) => K.value === V);
34618
34618
  return q ? /* @__PURE__ */ jsx(Tag, { color: q.color, style: { marginRight: 3 }, children: (q == null ? void 0 : q.label) || V }, E) : /* @__PURE__ */ jsx(Tag, { children: V }, V);
34619
34619
  }).reverse();
34620
34620
  else {
34621
- const V = (B = (R = v.uiSchema.enum).find) == null ? void 0 : B.call(R, (E) => E.value === M);
34622
- V && (M = /* @__PURE__ */ jsx(Tag, { color: V.color, children: V.label }));
34621
+ const V = (B = (R = v.uiSchema.enum).find) == null ? void 0 : B.call(R, (E) => E.value === j);
34622
+ V && (j = /* @__PURE__ */ jsx(Tag, { color: V.color, children: V.label }));
34623
34623
  }
34624
- return (v == null ? void 0 : v.type) === "date" && (M = dayjs(M).format("YYYY-MM-DD")), o ? o({
34625
- [y.label]: M || EMPTY,
34624
+ return (v == null ? void 0 : v.type) === "date" && (j = dayjs(j).format("YYYY-MM-DD")), o ? o({
34625
+ [y.label]: j || EMPTY,
34626
34626
  [y.value]: w[y.value]
34627
34627
  }) : F(h({}, w), {
34628
- [y.label]: M || EMPTY,
34628
+ [y.label]: j || EMPTY,
34629
34629
  [y.value]: w[y.value]
34630
34630
  });
34631
34631
  }).filter(Boolean);
@@ -34635,46 +34635,46 @@ const InternalFileManager = (e) => {
34635
34635
  },
34636
34636
  [v == null ? void 0 : v.uiSchema, y]
34637
34637
  ), T = (N) => L(void 0, null, function* () {
34638
- var M;
34638
+ var j;
34639
34639
  const w = yield C.list({
34640
34640
  pageSize: 200,
34641
34641
  params: g == null ? void 0 : g.params,
34642
34642
  filter: mergeFilter([N]),
34643
34643
  tree: N.parentId ? void 0 : !0
34644
34644
  });
34645
- return (M = w == null ? void 0 : w.data) == null ? void 0 : M.data;
34646
- }), D = (N, w, M) => L(void 0, null, function* () {
34647
- const j = yield T({ parentId: w == null ? void 0 : w.id }), R = [...i];
34648
- if (R.splice(M + 1), R[M] = F(h({}, R[M]), { value: w }), w != null && w.id && (R[M + 1] = { key: w == null ? void 0 : w.id, children: (j == null ? void 0 : j.length) > 0 ? j : null }), a(R), ["o2m", "m2m"].includes(f.interface)) {
34645
+ return (j = w == null ? void 0 : w.data) == null ? void 0 : j.data;
34646
+ }), D = (N, w, j) => L(void 0, null, function* () {
34647
+ const M = yield T({ parentId: w == null ? void 0 : w.id }), R = [...i];
34648
+ if (R.splice(j + 1), R[j] = F(h({}, R[j]), { value: w }), w != null && w.id && (R[j + 1] = { key: w == null ? void 0 : w.id, children: (M == null ? void 0 : M.length) > 0 ? M : null }), a(R), ["o2m", "m2m"].includes(f.interface)) {
34649
34649
  const B = Array.isArray(x.fieldValue) ? x.fieldValue : [];
34650
34650
  B[A.index] = w, x.fieldValue = B;
34651
34651
  } else
34652
34652
  x.value = w;
34653
34653
  n == null || n(R);
34654
- }), $ = (N, w, M) => L(void 0, null, function* () {
34655
- var j, R, B;
34654
+ }), $ = (N, w, j) => L(void 0, null, function* () {
34655
+ var M, R, B;
34656
34656
  if (N) {
34657
34657
  d(!0);
34658
34658
  const V = yield T({ parentId: w == null ? void 0 : w.key });
34659
- if (d(!1), c(V), M === (i == null ? void 0 : i.length) - 1 && ((j = w == null ? void 0 : w.value) != null && j.id)) {
34659
+ if (d(!1), c(V), j === (i == null ? void 0 : i.length) - 1 && ((M = w == null ? void 0 : w.value) != null && M.id)) {
34660
34660
  const E = yield T({ parentId: (R = w == null ? void 0 : w.value) == null ? void 0 : R.id }), q = [...i];
34661
- q.splice(M + 1), q[M] = F(h({}, q[M]), { value: w == null ? void 0 : w.value }), q[M + 1] = { key: (B = w == null ? void 0 : w.value) == null ? void 0 : B.id, children: (E == null ? void 0 : E.length) > 0 ? E : null }, a(q), n == null || n(q);
34661
+ q.splice(j + 1), q[j] = F(h({}, q[j]), { value: w == null ? void 0 : w.value }), q[j + 1] = { key: (B = w == null ? void 0 : w.value) == null ? void 0 : B.id, children: (E == null ? void 0 : E.length) > 0 ? E : null }, a(q), n == null || n(q);
34662
34662
  }
34663
34663
  }
34664
34664
  }), O = (N, w) => L(void 0, null, function* () {
34665
- const M = N ? {
34665
+ const j = N ? {
34666
34666
  [y.label]: {
34667
34667
  [I]: N
34668
34668
  }
34669
34669
  } : {};
34670
34670
  d(!0);
34671
- const j = yield T(F(h({}, M), {
34671
+ const M = yield T(F(h({}, j), {
34672
34672
  parentId: w == null ? void 0 : w.key
34673
34673
  }));
34674
- d(!1), c(j);
34674
+ d(!1), c(M);
34675
34675
  });
34676
34676
  return /* @__PURE__ */ jsx(Space$1, { wrap: !0, children: i.map((N, w) => {
34677
- var M, j, R;
34677
+ var j, M, R;
34678
34678
  return N.children && /* @__PURE__ */ jsx(
34679
34679
  Select$1,
34680
34680
  {
@@ -34685,8 +34685,8 @@ const InternalFileManager = (e) => {
34685
34685
  filterOption: !1,
34686
34686
  filterSort: null,
34687
34687
  defaultValue: {
34688
- label: (M = N == null ? void 0 : N.value) == null ? void 0 : M[y.label],
34689
- value: (j = N == null ? void 0 : N.value) == null ? void 0 : j[y.value]
34688
+ label: (j = N == null ? void 0 : N.value) == null ? void 0 : j[y.label],
34689
+ value: (M = N == null ? void 0 : N.value) == null ? void 0 : M[y.value]
34690
34690
  },
34691
34691
  labelInValue: !0,
34692
34692
  onSearch: (B) => O(B, N),
@@ -34888,10 +34888,10 @@ const InternalNesterCss = css`
34888
34888
  }, InternalPicker = observer$1(
34889
34889
  (e) => {
34890
34890
  var N;
34891
- const z = e, { value: t, multiple: o, openSize: n, onChange: r, quickUpload: i, selectFile: a, shouldMountElement: l } = z, c = W(z, ["value", "multiple", "openSize", "onChange", "quickUpload", "selectFile", "shouldMountElement"]), u = useField(), d = useFieldNames$1(e), [p, m] = useState(!1), g = useFieldSchema(), f = useInsertSchema("Selector"), { options: x } = useAssociationFieldContext(), { collectionName: C } = useFormBlockContext(), S = useCompile(), b = useLabelUiSchema$1(x, (d == null ? void 0 : d.label) || "label"), y = g["x-add-new"], [v, I] = useState([]), A = useCollectionRecordData(), k = useMemo(() => t && Object.keys(t).length > 0 ? (Array.isArray(t) ? t : t ? [t] : []).filter(Boolean).map((M) => {
34892
- const j = M == null ? void 0 : M[d.label];
34893
- return F(h({}, M), {
34894
- [d.label]: getLabelFormatValue$1(S(b), S(j))
34891
+ const z = e, { value: t, multiple: o, openSize: n, onChange: r, quickUpload: i, selectFile: a, shouldMountElement: l } = z, c = W(z, ["value", "multiple", "openSize", "onChange", "quickUpload", "selectFile", "shouldMountElement"]), u = useField(), d = useFieldNames$1(e), [p, m] = useState(!1), g = useFieldSchema(), f = useInsertSchema("Selector"), { options: x } = useAssociationFieldContext(), { collectionName: C } = useFormBlockContext(), S = useCompile(), b = useLabelUiSchema$1(x, (d == null ? void 0 : d.label) || "label"), y = g["x-add-new"], [v, I] = useState([]), A = useCollectionRecordData(), k = useMemo(() => t && Object.keys(t).length > 0 ? (Array.isArray(t) ? t : t ? [t] : []).filter(Boolean).map((j) => {
34892
+ const M = j == null ? void 0 : j[d.label];
34893
+ return F(h({}, j), {
34894
+ [d.label]: getLabelFormatValue$1(S(b), S(M))
34895
34895
  });
34896
34896
  }) : [], [t, d == null ? void 0 : d.label]), T = {
34897
34897
  size: "small",
@@ -34908,18 +34908,18 @@ const InternalNesterCss = css`
34908
34908
  currentFormCollection: C
34909
34909
  }, D = () => {
34910
34910
  var w;
34911
- return o == null ? null : Array.isArray(t) ? (w = t.filter(Boolean)) == null ? void 0 : w.map((M) => M == null ? void 0 : M[d.value]) : t == null ? void 0 : t[d.value];
34911
+ return o == null ? null : Array.isArray(t) ? (w = t.filter(Boolean)) == null ? void 0 : w.map((j) => j == null ? void 0 : j[d.value]) : t == null ? void 0 : t[d.value];
34912
34912
  }, $ = () => {
34913
- const w = (x == null ? void 0 : x.targetKey) || "id", M = k.map((R) => R[w]).filter(Boolean);
34914
- return M.length ? { $and: [{ [`${w}.$ne`]: M }] } : {};
34913
+ const w = (x == null ? void 0 : x.targetKey) || "id", j = k.map((R) => R[w]).filter(Boolean);
34914
+ return j.length ? { $and: [{ [`${w}.$ne`]: j }] } : {};
34915
34915
  }, O = () => {
34916
- const { setVisible: w } = useActionContext(), { multiple: M, selectedRows: j, onChange: R, options: B, collectionField: V } = useContext(RecordPickerContext);
34916
+ const { setVisible: w } = useActionContext(), { multiple: j, selectedRows: M, onChange: R, options: B, collectionField: V } = useContext(RecordPickerContext);
34917
34917
  return {
34918
34918
  onClick() {
34919
- R(M ? unionBy(j, B, (V == null ? void 0 : V.targetKey) || "id") : (j == null ? void 0 : j[0]) || null), w(!1);
34919
+ R(j ? unionBy(M, B, (V == null ? void 0 : V.targetKey) || "id") : (M == null ? void 0 : M[0]) || null), w(!1);
34920
34920
  },
34921
34921
  style: {
34922
- display: M !== !1 && ["o2m", "m2m", "mbm"].includes(V == null ? void 0 : V.interface) ? "block" : "none"
34922
+ display: j !== !1 && ["o2m", "m2m", "mbm"].includes(V == null ? void 0 : V.interface) ? "block" : "none"
34923
34923
  }
34924
34924
  };
34925
34925
  };
@@ -34946,12 +34946,12 @@ const InternalNesterCss = css`
34946
34946
  r([]), I([]);
34947
34947
  return;
34948
34948
  }
34949
- const M = k == null ? void 0 : k.filter((j) => w.includes(j[d.value]));
34950
- r(M), I(M);
34949
+ const j = k == null ? void 0 : k.filter((M) => w.includes(M[d.value]));
34950
+ r(j), I(j);
34951
34951
  }
34952
34952
  } else {
34953
- const M = o ? [] : null;
34954
- r(M), I(M);
34953
+ const j = o ? [] : null;
34954
+ r(j), I(j);
34955
34955
  }
34956
34956
  },
34957
34957
  options: k,
@@ -35959,7 +35959,7 @@ const useColumnsDeepMemoized = (e) => {
35959
35959
  "loading",
35960
35960
  "onClickRow"
35961
35961
  ]), b = useArrayField(S), y = useTableColumns$1(S), v = useFieldSchema(), I = useCollection(), k = ((pe = v == null ? void 0 : v.parent) == null ? void 0 : pe["x-decorator"]) === "TableSelectorProvider" ? useTableSelectorContext() : useTableBlockContext(), { expandFlag: T, allIncludesChildren: D } = k, $ = useMemoizedFn(S.onRowDragEnd || (() => {
35962
- })), O = usePaginationProps$2(o, i), [z, N] = useState(() => T ? D : []), [w, M] = useState(((me = b == null ? void 0 : b.data) == null ? void 0 : me.selectedRowKeys) || []), [j, R] = useState([]), B = (p == null ? void 0 : p.type) !== "none", V = useRef(/* @__PURE__ */ new Map()), E = useMemo(() => css`
35962
+ })), O = usePaginationProps$2(o, i), [z, N] = useState(() => T ? D : []), [w, j] = useState(((me = b == null ? void 0 : b.data) == null ? void 0 : me.selectedRowKeys) || []), [M, R] = useState([]), B = (p == null ? void 0 : p.type) !== "none", V = useRef(/* @__PURE__ */ new Map()), E = useMemo(() => css`
35963
35963
  & > td {
35964
35964
  background-color: ${t.controlItemBgActiveHover} !important;
35965
35965
  }
@@ -35971,9 +35971,9 @@ const useColumnsDeepMemoized = (e) => {
35971
35971
  [C, t.controlItemBgActiveHover]
35972
35972
  ), G = useMemo(() => C ? (ee) => ({
35973
35973
  onClick: (Z) => {
35974
- isPortalInBody(Z.target) || C(ee, R, j);
35974
+ isPortalInBody(Z.target) || C(ee, R, M);
35975
35975
  }
35976
- }) : null, [C, j]);
35976
+ }) : null, [C, M]);
35977
35977
  useDeepCompareEffect(() => {
35978
35978
  const ee = T ? D : [];
35979
35979
  _.isEqual(ee, z) || N(ee);
@@ -36033,7 +36033,7 @@ const useColumnsDeepMemoized = (e) => {
36033
36033
  type: "checkbox",
36034
36034
  selectedRowKeys: w,
36035
36035
  onChange(ee, Z) {
36036
- b.data = b.data || {}, b.data.selectedRowKeys = ee, M(ee), u == null || u(ee, Z);
36036
+ b.data = b.data || {}, b.data.selectedRowKeys = ee, j(ee), u == null || u(ee, Z);
36037
36037
  },
36038
36038
  getCheckboxProps(ee) {
36039
36039
  return {
@@ -36104,8 +36104,8 @@ const useColumnsDeepMemoized = (e) => {
36104
36104
  x: "max-content",
36105
36105
  y: ie
36106
36106
  }), [ie, Ie]), ke = useCallback(
36107
- (ee) => j.includes(ee[m]) ? q : "",
36108
- [j, q, m]
36107
+ (ee) => M.includes(ee[m]) ? q : "",
36108
+ [M, q, m]
36109
36109
  ), be = useCallback(
36110
36110
  (ee, Z) => {
36111
36111
  const re = ee ? [...z, Z[I.getPrimaryKey()]] : z.filter((ae) => Z[I.getPrimaryKey()] !== ae);
@@ -36420,8 +36420,8 @@ const ReadPretty$7 = observer$1(
36420
36420
  InternalAssociationSelect.displayName = "InternalAssociationSelect";
36421
36421
  const AssociationSelect = InternalAssociationSelect;
36422
36422
  AssociationSelect.Designer = function e() {
36423
- var M, j, R, B, V, E, q, G, U, K, Y;
36424
- 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: g, insertAdjacent: f } = useDesignable(), x = 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), A = (M = I == null ? void 0 : I.validateSchema) == null ? void 0 : M.call(I, u), k = (j = b == null ? void 0 : b.uiSchema) == null ? void 0 : j.title, T = b != null && b.target ? t(b == null ? void 0 : b.target) : [];
36423
+ var j, M, R, B, V, E, q, G, U, K, Y;
36424
+ 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: g, insertAdjacent: f } = useDesignable(), x = 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), A = (j = I == null ? void 0 : I.validateSchema) == null ? void 0 : j.call(I, u), k = (M = b == null ? void 0 : b.uiSchema) == null ? void 0 : M.title, T = b != null && b.target ? t(b == null ? void 0 : b.target) : [];
36425
36425
  c.title === k || c.title;
36426
36426
  const D = useSortFields(b == null ? void 0 : b.target), $ = ((V = (B = (R = c.componentProps) == null ? void 0 : R.service) == null ? void 0 : B.params) == null ? void 0 : V.sort) || [];
36427
36427
  useEffect(() => {
@@ -36819,22 +36819,22 @@ AssociationSelect.Designer = function e() {
36819
36819
  ] });
36820
36820
  };
36821
36821
  AssociationSelect.FilterDesigner = function e() {
36822
- var I, A, k, T, D, $, O, z, N, w, M;
36822
+ var I, A, k, T, D, $, O, z, N, w, j;
36823
36823
  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"]), g = o(m == null ? void 0 : m.interface), f = (I = g == null ? void 0 : g.validateSchema) == null ? void 0 : I.call(g, l), x = (A = m == null ? void 0 : m.uiSchema) == null ? void 0 : A.title, C = m != null && m.target ? t(m == null ? void 0 : m.target) : [];
36824
36824
  a.title === x || a.title;
36825
- const S = useSortFields(m == null ? void 0 : m.target), b = ((D = (T = (k = a.componentProps) == null ? void 0 : k.service) == null ? void 0 : T.params) == null ? void 0 : D.sort) || [], y = b == null ? void 0 : b.map((j) => j.startsWith("-") ? {
36826
- field: j.substring(1),
36825
+ const S = useSortFields(m == null ? void 0 : m.target), b = ((D = (T = (k = a.componentProps) == null ? void 0 : k.service) == null ? void 0 : T.params) == null ? void 0 : D.sort) || [], y = b == null ? void 0 : b.map((M) => M.startsWith("-") ? {
36826
+ field: M.substring(1),
36827
36827
  direction: "desc"
36828
36828
  } : {
36829
- field: j,
36829
+ field: M,
36830
36830
  direction: "asc"
36831
36831
  });
36832
36832
  a.readPretty || a.required;
36833
- const v = C.filter((j) => !(j != null && j.target) && j.type !== "boolean").map((j) => {
36833
+ const v = C.filter((M) => !(M != null && M.target) && M.type !== "boolean").map((M) => {
36834
36834
  var R;
36835
36835
  return {
36836
- value: j == null ? void 0 : j.name,
36837
- label: p((R = j == null ? void 0 : j.uiSchema) == null ? void 0 : R.title) || (j == null ? void 0 : j.name)
36836
+ value: M == null ? void 0 : M.name,
36837
+ label: p((R = M == null ? void 0 : M.uiSchema) == null ? void 0 : R.title) || (M == null ? void 0 : M.name)
36838
36838
  };
36839
36839
  });
36840
36840
  return l["x-disabled"], l["x-read-pretty"], /* @__PURE__ */ jsxs(GeneralSchemaDesigner, { children: [
@@ -36925,10 +36925,10 @@ AssociationSelect.FilterDesigner = function e() {
36925
36925
  }
36926
36926
  }
36927
36927
  },
36928
- onSubmit: (j) => {
36928
+ onSubmit: (M) => {
36929
36929
  var E;
36930
36930
  const R = [];
36931
- for (const q of j.rules)
36931
+ for (const q of M.rules)
36932
36932
  R.push(_.pickBy(q, _.identity));
36933
36933
  const B = {
36934
36934
  "x-uid": l["x-uid"]
@@ -36960,11 +36960,11 @@ AssociationSelect.FilterDesigner = function e() {
36960
36960
  })
36961
36961
  }
36962
36962
  },
36963
- onSubmit: (j) => {
36963
+ onSubmit: (M) => {
36964
36964
  const R = {
36965
36965
  "x-uid": l["x-uid"]
36966
36966
  };
36967
- a.value !== j.default && (a.value = j.default), l.default = j.default, R.default = j.default, u.emit("patch", {
36967
+ a.value !== M.default && (a.value = M.default), l.default = M.default, R.default = M.default, u.emit("patch", {
36968
36968
  schema: R
36969
36969
  }), d();
36970
36970
  }
@@ -36976,8 +36976,8 @@ AssociationSelect.FilterDesigner = function e() {
36976
36976
  collectionName: m == null ? void 0 : m.target,
36977
36977
  defaultFilter: ((N = (z = (O = a.componentProps) == null ? void 0 : O.service) == null ? void 0 : z.params) == null ? void 0 : N.filter) || {},
36978
36978
  form: i,
36979
- onSubmit: ({ filter: j }) => {
36980
- j = removeNullCondition(j), _.set(a.componentProps, "service.params.filter", j), l["x-component-props"] = a.componentProps, u.emit("patch", {
36979
+ onSubmit: ({ filter: M }) => {
36980
+ M = removeNullCondition(M), _.set(a.componentProps, "service.params.filter", M), l["x-component-props"] = a.componentProps, u.emit("patch", {
36981
36981
  schema: {
36982
36982
  "x-uid": l["x-uid"],
36983
36983
  "x-component-props": a.componentProps
@@ -37060,8 +37060,8 @@ AssociationSelect.FilterDesigner = function e() {
37060
37060
  }
37061
37061
  }
37062
37062
  },
37063
- onSubmit: ({ sort: j }) => {
37064
- const R = j.map((B) => B.direction === "desc" ? `-${B.field}` : B.field);
37063
+ onSubmit: ({ sort: M }) => {
37064
+ const R = M.map((B) => B.direction === "desc" ? `-${B.field}` : B.field);
37065
37065
  _.set(a.componentProps, "service.params.sort", R), l["x-component-props"] = a.componentProps, u.emit("patch", {
37066
37066
  schema: {
37067
37067
  "x-uid": l["x-uid"],
@@ -37076,13 +37076,13 @@ AssociationSelect.FilterDesigner = function e() {
37076
37076
  {
37077
37077
  title: c("Title field"),
37078
37078
  options: v,
37079
- value: (M = (w = a == null ? void 0 : a.componentProps) == null ? void 0 : w.fieldNames) == null ? void 0 : M.label,
37080
- onChange: (j) => {
37079
+ value: (j = (w = a == null ? void 0 : a.componentProps) == null ? void 0 : w.fieldNames) == null ? void 0 : j.label,
37080
+ onChange: (M) => {
37081
37081
  var V, E;
37082
37082
  const R = {
37083
37083
  "x-uid": l["x-uid"]
37084
37084
  }, B = F(h(h({}, (E = (V = m == null ? void 0 : m.uiSchema) == null ? void 0 : V["x-component-props"]) == null ? void 0 : E.fieldNames), a.componentProps.fieldNames), {
37085
- label: j
37085
+ label: M
37086
37086
  });
37087
37087
  a.componentProps.fieldNames = B, l["x-component-props"] = l["x-component-props"] || {}, l["x-component-props"].fieldNames = B, R["x-component-props"] = l["x-component-props"], u.emit("patch", {
37088
37088
  schema: R
@@ -41623,7 +41623,7 @@ const TableActionColumnDesigner = (e) => {
41623
41623
  "sort-field"
41624
41624
  );
41625
41625
  }, TableBlockDesigner = () => {
41626
- var T, D, $, O, z, N, w, M, j, R;
41626
+ var T, D, $, O, z, N, w, j, M, R;
41627
41627
  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 = (T = i == null ? void 0 : i["x-decorator-props"]) == null ? void 0 : T.params) == null ? void 0 : D.sort) || [], g = (($ = i == null ? void 0 : i["x-decorator-props"]) == null ? void 0 : $.resource) || ((O = i == null ? void 0 : i["x-decorator-props"]) == null ? void 0 : O.association), f = !((z = i == null ? void 0 : i["x-decorator-props"]) != null && z.disableTemplate), x = m == null ? void 0 : m.map((B) => B != null && B.startsWith("-") ? {
41628
41628
  field: B.substring(1),
41629
41629
  direction: "desc"
@@ -41689,7 +41689,7 @@ const TableActionColumnDesigner = (e) => {
41689
41689
  SchemaSettingsDataScope,
41690
41690
  {
41691
41691
  collectionName: e,
41692
- defaultFilter: ((M = (w = i == null ? void 0 : i["x-decorator-props"]) == null ? void 0 : w.params) == null ? void 0 : M.filter) || {},
41692
+ defaultFilter: ((j = (w = i == null ? void 0 : i["x-decorator-props"]) == null ? void 0 : w.params) == null ? void 0 : j.filter) || {},
41693
41693
  form: a,
41694
41694
  onSubmit: A
41695
41695
  }
@@ -41786,7 +41786,7 @@ const TableActionColumnDesigner = (e) => {
41786
41786
  SchemaSettingsSelectItem,
41787
41787
  {
41788
41788
  title: u("Records per page"),
41789
- value: ((R = (j = r.decoratorProps) == null ? void 0 : j.params) == null ? void 0 : R.pageSize) || 20,
41789
+ value: ((R = (M = r.decoratorProps) == null ? void 0 : M.params) == null ? void 0 : R.pageSize) || 20,
41790
41790
  options: [
41791
41791
  { label: "10", value: 10 },
41792
41792
  { label: "20", value: 20 },
@@ -41859,14 +41859,14 @@ const TableSelectorDesigner = () => {
41859
41859
  defaultFilter: (($ = (D = i == null ? void 0 : i["x-decorator-props"]) == null ? void 0 : D.params) == null ? void 0 : $.filter) || {},
41860
41860
  form: a,
41861
41861
  onSubmit: ({ filter: N }) => {
41862
- var j;
41862
+ var M;
41863
41863
  N = removeNullCondition(N);
41864
41864
  const w = r.decoratorProps.params || {};
41865
41865
  w.filter = N, r.decoratorProps.params = w, i["x-decorator-props"].params = w;
41866
- let M = _.cloneDeep(N);
41867
- u && (M ? M = {
41868
- $and: [u, M]
41869
- } : M = u), c.run(F(h({}, (j = c.params) == null ? void 0 : j[0]), { filter: M, page: 1 })), p.emit("patch", {
41866
+ let j = _.cloneDeep(N);
41867
+ u && (j ? j = {
41868
+ $and: [u, j]
41869
+ } : j = u), c.run(F(h({}, (M = c.params) == null ? void 0 : M[0]), { filter: j, page: 1 })), p.emit("patch", {
41870
41870
  schema: {
41871
41871
  "x-uid": i["x-uid"],
41872
41872
  "x-decorator-props": i["x-decorator-props"]
@@ -41899,9 +41899,9 @@ const TableSelectorDesigner = () => {
41899
41899
  defaultChecked: !0,
41900
41900
  checked: r.decoratorProps.treeTable,
41901
41901
  onChange: (N) => {
41902
- var M;
41902
+ var j;
41903
41903
  r.form.clearFormGraph(`${r.address}.*`), r.decoratorProps.treeTable = N, i["x-decorator-props"].treeTable = N;
41904
- const w = F(h({}, (M = c.params) == null ? void 0 : M[0]), {
41904
+ const w = F(h({}, (j = c.params) == null ? void 0 : j[0]), {
41905
41905
  tree: N ? !0 : null
41906
41906
  });
41907
41907
  p.emit("patch", {
@@ -41987,14 +41987,14 @@ const TableSelectorDesigner = () => {
41987
41987
  }
41988
41988
  },
41989
41989
  onSubmit: ({ sort: N }) => {
41990
- var j;
41991
- const w = N.map((R) => R.direction === "desc" ? `-${R.field}` : R.field), M = r.decoratorProps.params || {};
41992
- M.sort = w, r.decoratorProps.params = M, i["x-decorator-props"].params = M, p.emit("patch", {
41990
+ var M;
41991
+ const w = N.map((R) => R.direction === "desc" ? `-${R.field}` : R.field), j = r.decoratorProps.params || {};
41992
+ j.sort = w, r.decoratorProps.params = j, i["x-decorator-props"].params = j, p.emit("patch", {
41993
41993
  schema: {
41994
41994
  "x-uid": i["x-uid"],
41995
41995
  "x-decorator-props": i["x-decorator-props"]
41996
41996
  }
41997
- }), c.run(F(h({}, (j = c.params) == null ? void 0 : j[0]), { sort: w }));
41997
+ }), c.run(F(h({}, (M = c.params) == null ? void 0 : M[0]), { sort: w }));
41998
41998
  }
41999
41999
  }
42000
42000
  ),
@@ -42011,9 +42011,9 @@ const TableSelectorDesigner = () => {
42011
42011
  { label: "200", value: 200 }
42012
42012
  ],
42013
42013
  onChange: (N) => {
42014
- var M;
42014
+ var j;
42015
42015
  const w = r.decoratorProps.params || {};
42016
- w.pageSize = N, r.decoratorProps.params = w, i["x-decorator-props"].params = w, c.run(F(h({}, (M = c.params) == null ? void 0 : M[0]), { pageSize: N, page: 1 })), p.emit("patch", {
42016
+ w.pageSize = N, r.decoratorProps.params = w, i["x-decorator-props"].params = w, c.run(F(h({}, (j = c.params) == null ? void 0 : j[0]), { pageSize: N, page: 1 })), p.emit("patch", {
42017
42017
  schema: {
42018
42018
  "x-uid": i["x-uid"],
42019
42019
  "x-decorator-props": i["x-decorator-props"]
@@ -43974,71 +43974,71 @@ const useCurrentAppInfo = () => useContext(CurrentAppInfoContext), CurrentAppInf
43974
43974
  label: b(w.title),
43975
43975
  value: w.name
43976
43976
  })), []), T = useCallback(() => {
43977
- const { availableFieldInterfaces: w } = u(n.template) || {}, { exclude: M, include: j } = w || {}, R = [];
43977
+ const { availableFieldInterfaces: w } = u(n.template) || {}, { exclude: j, include: M } = w || {}, R = [];
43978
43978
  return I.forEach((B) => {
43979
43979
  var V;
43980
43980
  if (B.key === "systemInfo")
43981
43981
  R.push(F(h({}, B), {
43982
- children: B.children.filter((E) => E.hidden ? !1 : E.value === "tableoid" ? j != null && j.length ? j.includes(E.value) : (l == null ? void 0 : l.dialect) === "postgres" : typeof n[E.value] == "boolean" ? n[E.value] : !0)
43982
+ children: B.children.filter((E) => E.hidden ? !1 : E.value === "tableoid" ? M != null && M.length ? M.includes(E.value) : (l == null ? void 0 : l.dialect) === "postgres" : typeof n[E.value] == "boolean" ? n[E.value] : !0)
43983
43983
  }));
43984
43984
  else {
43985
43985
  let E = [];
43986
- j != null && j.length ? j.forEach((q) => {
43986
+ M != null && M.length ? M.forEach((q) => {
43987
43987
  var U;
43988
43988
  const G = (U = B == null ? void 0 : B.children) == null ? void 0 : U.find((K) => [q, q.interface].includes(K.name));
43989
43989
  G && E.push(F(h({}, G), {
43990
43990
  targetScope: q == null ? void 0 : q.targetScope
43991
43991
  }));
43992
- }) : M != null && M.length ? E = (V = B == null ? void 0 : B.children) == null ? void 0 : V.filter((q) => !M.includes(q.name)) : E = B == null ? void 0 : B.children, E != null && E.length && R.push(F(h({}, B), {
43992
+ }) : j != null && j.length ? E = (V = B == null ? void 0 : B.children) == null ? void 0 : V.filter((q) => !j.includes(q.name)) : E = B == null ? void 0 : B.children, E != null && E.length && R.push(F(h({}, B), {
43993
43993
  children: E
43994
43994
  }));
43995
43995
  }
43996
43996
  }), R;
43997
43997
  }, [u, n]), D = useMemo(() => T().map((w) => {
43998
- var M;
43999
- return ((M = w == null ? void 0 : w.children) == null ? void 0 : M.length) === 0 ? null : n.template === "view" ? {
43998
+ var j;
43999
+ return ((j = w == null ? void 0 : w.children) == null ? void 0 : j.length) === 0 ? null : n.template === "view" ? {
44000
44000
  type: "group",
44001
44001
  label: b(w.label),
44002
44002
  title: b(w.label),
44003
44003
  key: w.label,
44004
- children: w.children.filter((j) => ["m2o"].includes(j.name)).map((j) => ({
44005
- label: b(j.title),
44006
- title: b(j.title),
44007
- key: j.name,
44008
- dataTargetScope: j.targetScope
44004
+ children: w.children.filter((M) => ["m2o"].includes(M.name)).map((M) => ({
44005
+ label: b(M.title),
44006
+ title: b(M.title),
44007
+ key: M.name,
44008
+ dataTargetScope: M.targetScope
44009
44009
  }))
44010
44010
  } : {
44011
44011
  type: "group",
44012
44012
  label: b(w.label),
44013
44013
  title: b(w.label),
44014
44014
  key: w.label,
44015
- children: w == null ? void 0 : w.children.filter((j) => !["o2o", "subTable", "linkTo"].includes(j.name)).map((j) => ({
44016
- label: b(j.title),
44017
- title: b(j.title),
44018
- key: j.name,
44019
- dataTargetScope: j.targetScope
44015
+ children: w == null ? void 0 : w.children.filter((M) => !["o2o", "subTable", "linkTo"].includes(M.name)).map((M) => ({
44016
+ label: b(M.title),
44017
+ title: b(M.title),
44018
+ key: M.name,
44019
+ dataTargetScope: M.targetScope
44020
44020
  }))
44021
44021
  };
44022
44022
  }).filter((w) => {
44023
- var M;
44024
- return (M = w == null ? void 0 : w.children) == null ? void 0 : M.length;
44023
+ var j;
44024
+ return (j = w == null ? void 0 : w.children) == null ? void 0 : j.length;
44025
44025
  }), [T]), $ = useMemo(() => ({
44026
44026
  style: {
44027
44027
  maxHeight: "60vh",
44028
44028
  overflow: "auto"
44029
44029
  },
44030
44030
  onClick: (w) => {
44031
- const M = w.item.props["data-targetScope"];
44032
- M && x(M);
44033
- const j = getSchema$8(c(w.key), n, b);
44034
- j && (S(j), g(!0));
44031
+ const j = w.item.props["data-targetScope"];
44032
+ j && x(j);
44033
+ const M = getSchema$8(c(w.key), n, b);
44034
+ M && (S(M), g(!0));
44035
44035
  },
44036
44036
  items: D
44037
44037
  }), [c, D, n]), O = useMemo(() => A.filter((w) => ["string", "bigInt", "integer"].includes(w.type)).map((w) => {
44038
- var M;
44038
+ var j;
44039
44039
  return {
44040
44040
  value: w.name,
44041
- label: b((M = w.uiSchema) == null ? void 0 : M.title)
44041
+ label: b((j = w.uiSchema) == null ? void 0 : j.title)
44042
44042
  };
44043
44043
  }), [A == null ? void 0 : A.length]);
44044
44044
  return n.template !== "sql" && /* @__PURE__ */ jsx(RecordProvider, { record: n, children: /* @__PURE__ */ jsxs(ActionContextProvider, { value: { visible: m, setVisible: g }, children: [
@@ -44310,13 +44310,13 @@ const useCurrentAppInfo = () => useContext(CurrentAppInfoContext), CurrentAppInf
44310
44310
  return /* @__PURE__ */ jsx(OverridingFieldAction, h({ item: t, parentItem: o }, e));
44311
44311
  }, getIsOverriding = (e, t) => e.find((n) => n.name === t.name), OverridingFieldAction = (e) => {
44312
44312
  const { scope: t, getContainer: o, item: n, parentItem: r, children: i, currentCollection: a } = e, { target: l, through: c } = n, { getInterface: u, getCollection: d, getCurrentCollectionFields: p, getChildrenCollections: m, collections: g } = useCollectionManager_deprecated(), [f, x] = useState(!1), [C, S] = useState({}), b = useAPIClient(), { t: y } = useTranslation(), v = useCompile(), I = (N) => {
44313
- var M;
44314
- return N && ((M = m(N)) == null ? void 0 : M.map((j) => j.name).concat([N]));
44313
+ var j;
44314
+ return N && ((j = m(N)) == null ? void 0 : j.map((M) => M.name).concat([N]));
44315
44315
  }, [A, k] = useState({}), T = p(a), D = getIsOverriding(T, n), $ = useMemo(() => g.map((N) => ({
44316
44316
  label: v(N.title),
44317
44317
  value: N.name
44318
44318
  })), []), O = () => {
44319
- const N = useForm(), { refresh: w } = useResourceActionContext(), { refreshCM: M } = useCollectionManager_deprecated(), j = useActionContext(), { resource: R } = useResourceContext();
44319
+ const N = useForm(), { refresh: w } = useResourceActionContext(), { refreshCM: j } = useCollectionManager_deprecated(), M = useActionContext(), { resource: R } = useResourceContext();
44320
44320
  return {
44321
44321
  run() {
44322
44322
  return L(this, null, function* () {
@@ -44335,17 +44335,17 @@ const useCurrentAppInfo = () => useContext(CurrentAppInfoContext), CurrentAppInf
44335
44335
  ]);
44336
44336
  yield R.create({
44337
44337
  values: E
44338
- }), yield N.reset(), yield M(), yield w(), j.setVisible(!1);
44338
+ }), yield N.reset(), yield j(), yield w(), M.setVisible(!1);
44339
44339
  });
44340
44340
  }
44341
44341
  };
44342
44342
  }, z = useMemo(() => {
44343
44343
  var N;
44344
44344
  return (n == null ? void 0 : n.fields) || ((N = d(n.collectionName)) == null ? void 0 : N.options.fields.filter((w) => ["string", "bigInt", "integer"].includes(w.type)).map((w) => {
44345
- var M;
44345
+ var j;
44346
44346
  return {
44347
44347
  value: w.name,
44348
- label: v((M = w.uiSchema) == null ? void 0 : M.title)
44348
+ label: v((j = w.uiSchema) == null ? void 0 : j.title)
44349
44349
  };
44350
44350
  }));
44351
44351
  }, [n.name]);
@@ -44362,11 +44362,11 @@ const useCurrentAppInfo = () => useContext(CurrentAppInfoContext), CurrentAppInf
44362
44362
  appends: ["reverseField"]
44363
44363
  });
44364
44364
  k(w == null ? void 0 : w.data);
44365
- const M = u(n.interface), j = cloneDeep(w == null ? void 0 : w.data) || {};
44366
- j != null && j.reverseField || (j.autoCreateReverseField = !1, j.reverseField = (N = M.default) == null ? void 0 : N.reverseField, set$1(j.reverseField, "name", `f_${uid()}`), set$1(j.reverseField, "uiSchema.title", n.__parent.title));
44365
+ const j = u(n.interface), M = cloneDeep(w == null ? void 0 : w.data) || {};
44366
+ M != null && M.reverseField || (M.autoCreateReverseField = !1, M.reverseField = (N = j.default) == null ? void 0 : N.reverseField, set$1(M.reverseField, "name", `f_${uid()}`), set$1(M.reverseField, "uiSchema.title", n.__parent.title));
44367
44367
  const R = getSchema$6(
44368
- F(h({}, M), {
44369
- default: j
44368
+ F(h({}, j), {
44369
+ default: M
44370
44370
  }),
44371
44371
  n,
44372
44372
  v
@@ -44824,10 +44824,10 @@ const getSchema$4 = (e, t, o) => {
44824
44824
  const { databaseView: t, viewName: o, sources: n, schema: r } = e, { data: i } = useContext(ResourceActionContext), a = useAPIClient(), { t: l } = useTranslation(), [c, u] = useState(!1), [d, p] = useState([]), [m, g] = useState([]), [f, x] = useState(n), [C, S] = useState([]), b = useField(), y = useForm(), { getCollection: v, getInterface: I, getCollectionFields: A, getInheritCollections: k, getParentCollectionFields: T } = useCollectionManager_deprecated(), D = useCompile(), O = useFieldInterfaceOptions().filter((w) => !["relation", "systemInfo"].includes(w.key));
44825
44825
  useEffect(() => {
44826
44826
  const w = [];
44827
- f.forEach((M) => {
44827
+ f.forEach((j) => {
44828
44828
  var E;
44829
- const j = v(M), B = k(M).map((q) => {
44830
- const G = T(q, M);
44829
+ const M = v(j), B = k(j).map((q) => {
44830
+ const G = T(q, j);
44831
44831
  return {
44832
44832
  type: "group",
44833
44833
  key: q,
@@ -44840,22 +44840,22 @@ const getSchema$4 = (e, t, o) => {
44840
44840
  };
44841
44841
  })
44842
44842
  };
44843
- }), V = (E = j.fields.filter((q) => !["obo", "oho", "m2m", "o2m"].includes(q == null ? void 0 : q.interface))) == null ? void 0 : E.map((q) => {
44843
+ }), V = (E = M.fields.filter((q) => !["obo", "oho", "m2m", "o2m"].includes(q == null ? void 0 : q.interface))) == null ? void 0 : E.map((q) => {
44844
44844
  var G;
44845
44845
  return { value: q.name, key: q.name, label: l(((G = q.uiSchema) == null ? void 0 : G.title) || q.name) };
44846
44846
  }).concat(B);
44847
44847
  w.push({
44848
- value: M,
44849
- label: l(j.title || j.name),
44848
+ value: j,
44849
+ label: l(M.title || M.name),
44850
44850
  children: V
44851
44851
  });
44852
44852
  }), g(w);
44853
44853
  }, [f, t]), useEffect(() => {
44854
44854
  t && (u(!0), a.resource("dbViews").get({ filterByTk: o, schema: r }).then(({ data: w }) => {
44855
- var M, j;
44855
+ var j, M;
44856
44856
  if (w) {
44857
44857
  u(!1), p([]);
44858
- const R = (j = Object.values((M = w == null ? void 0 : w.data) == null ? void 0 : M.fields)) == null ? void 0 : j.map((B) => {
44858
+ const R = (M = Object.values((j = w == null ? void 0 : w.data) == null ? void 0 : j.fields)) == null ? void 0 : M.map((B) => {
44859
44859
  var V, E;
44860
44860
  if (B.source) {
44861
44861
  const q = (i == null ? void 0 : i.data.find((G) => G.name === B.name)) || B;
@@ -44876,11 +44876,11 @@ const getSchema$4 = (e, t, o) => {
44876
44876
  }
44877
44877
  }).catch);
44878
44878
  }, [t]);
44879
- const z = (w, M) => {
44880
- d.splice(M, 1, w), p(d), b.value = d.map((j) => {
44879
+ const z = (w, j) => {
44880
+ d.splice(j, 1, w), p(d), b.value = d.map((M) => {
44881
44881
  var B, V, E;
44882
- const R = typeof j.source == "string" ? j.source : (E = (V = (B = j.source) == null ? void 0 : B.filter) == null ? void 0 : V.call(B, Boolean)) == null ? void 0 : E.join(".");
44883
- return F(h({}, j), {
44882
+ const R = typeof M.source == "string" ? M.source : (E = (V = (B = M.source) == null ? void 0 : B.filter) == null ? void 0 : V.call(B, Boolean)) == null ? void 0 : E.join(".");
44883
+ return F(h({}, M), {
44884
44884
  source: R
44885
44885
  });
44886
44886
  });
@@ -44896,7 +44896,7 @@ const getSchema$4 = (e, t, o) => {
44896
44896
  dataIndex: "source",
44897
44897
  key: "source",
44898
44898
  width: 200,
44899
- render: (w, M, j) => /* @__PURE__ */ jsx(
44899
+ render: (w, j, M) => /* @__PURE__ */ jsx(
44900
44900
  Cascader$1,
44901
44901
  {
44902
44902
  defaultValue: typeof w == "string" ? w == null ? void 0 : w.split(".") : w,
@@ -44906,7 +44906,7 @@ const getSchema$4 = (e, t, o) => {
44906
44906
  onChange: (R, B) => {
44907
44907
  var E;
44908
44908
  const V = (E = A(R == null ? void 0 : R[0])) == null ? void 0 : E.find((q) => q.name === last(R));
44909
- z(F(h({}, M), { source: R, uiSchema: V == null ? void 0 : V.uiSchema }), j);
44909
+ z(F(h({}, j), { source: R, uiSchema: V == null ? void 0 : V.uiSchema }), M);
44910
44910
  },
44911
44911
  placeholder: l("Select field source")
44912
44912
  }
@@ -44917,8 +44917,8 @@ const getSchema$4 = (e, t, o) => {
44917
44917
  dataIndex: "type",
44918
44918
  width: 140,
44919
44919
  key: "type",
44920
- render: (w, M, j) => {
44921
- const R = d[j];
44920
+ render: (w, j, M) => {
44921
+ const R = d[M];
44922
44922
  return R != null && R.source || !(R != null && R.possibleTypes) ? /* @__PURE__ */ jsx(Tag, { children: w }) : /* @__PURE__ */ jsx(
44923
44923
  Select$1,
44924
44924
  {
@@ -44926,7 +44926,7 @@ const getSchema$4 = (e, t, o) => {
44926
44926
  popupMatchSelectWidth: !1,
44927
44927
  style: { width: "100%" },
44928
44928
  options: (R == null ? void 0 : R.possibleTypes.map((B) => ({ label: B, value: B }))) || [],
44929
- onChange: (B) => z(F(h({}, R), { type: B }), j)
44929
+ onChange: (B) => z(F(h({}, R), { type: B }), M)
44930
44930
  }
44931
44931
  );
44932
44932
  }
@@ -44936,8 +44936,8 @@ const getSchema$4 = (e, t, o) => {
44936
44936
  dataIndex: "interface",
44937
44937
  key: "interface",
44938
44938
  width: 150,
44939
- render: (w, M, j) => {
44940
- const R = d[j], B = getInterfaceOptions(O, R.type);
44939
+ render: (w, j, M) => {
44940
+ const R = d[M], B = getInterfaceOptions(O, R.type);
44941
44941
  return R.source ? w : /* @__PURE__ */ jsx(
44942
44942
  Select$1,
44943
44943
  {
@@ -44947,7 +44947,7 @@ const getSchema$4 = (e, t, o) => {
44947
44947
  onChange: (V) => {
44948
44948
  var q;
44949
44949
  const E = I(V);
44950
- z(F(h({}, R), { interface: V, uiSchema: (q = E == null ? void 0 : E.default) == null ? void 0 : q.uiSchema }), j);
44950
+ z(F(h({}, R), { interface: V, uiSchema: (q = E == null ? void 0 : E.default) == null ? void 0 : q.uiSchema }), M);
44951
44951
  },
44952
44952
  children: B.map((V) => /* @__PURE__ */ jsx(Select$1.OptGroup, { label: D(V.label), children: V.children.map((E) => /* @__PURE__ */ jsx(Select$1.Option, { value: E.name, children: D(E.label) }, E.value)) }, V.key))
44953
44953
  }
@@ -44959,16 +44959,16 @@ const getSchema$4 = (e, t, o) => {
44959
44959
  dataIndex: "title",
44960
44960
  key: "title",
44961
44961
  width: 180,
44962
- render: (w, M, j) => {
44962
+ render: (w, j, M) => {
44963
44963
  var B;
44964
- const R = d[j];
44964
+ const R = d[M];
44965
44965
  return /* @__PURE__ */ jsx(
44966
44966
  Input$3,
44967
44967
  {
44968
44968
  defaultValue: ((B = R == null ? void 0 : R.uiSchema) == null ? void 0 : B.title) || w,
44969
44969
  onChange: (V) => z(
44970
44970
  F(h({}, R), { uiSchema: F(h({}, omit$1(R == null ? void 0 : R.uiSchema, "rawTitle")), { title: V.target.value }) }),
44971
- j
44971
+ M
44972
44972
  )
44973
44973
  }
44974
44974
  );
@@ -45021,14 +45021,14 @@ const mapFields = ["lineString", "point", "circle", "polygon"], PreviewTable$1 =
45021
45021
  }, b = (y) => {
45022
45022
  var v;
45023
45023
  return (v = y.filter((I) => I.source || I.interface)) == null ? void 0 : v.map((I) => {
45024
- var $, O, z, N, w, M;
45025
- const A = 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 = (O = g(A == null ? void 0 : A[0])) == null ? void 0 : O.find((j) => j.name === (A == null ? void 0 : A[1]))) == null ? void 0 : z.uiSchema, T = ((N = I == null ? void 0 : I.uiSchema) == null ? void 0 : N.title) || (k == null ? void 0 : k.title) || I.name, D = I.source ? k : (M = (w = m(I.interface)) == null ? void 0 : w.default) == null ? void 0 : M.uiSchema;
45024
+ var $, O, z, N, w, j;
45025
+ const A = 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 = (O = g(A == null ? void 0 : A[0])) == null ? void 0 : O.find((M) => M.name === (A == null ? void 0 : A[1]))) == null ? void 0 : z.uiSchema, T = ((N = I == null ? void 0 : I.uiSchema) == null ? void 0 : N.title) || (k == null ? void 0 : k.title) || I.name, D = I.source ? k : (j = (w = m(I.interface)) == null ? void 0 : w.default) == null ? void 0 : j.uiSchema;
45026
45026
  return {
45027
45027
  title: u(T),
45028
45028
  dataIndex: I.name,
45029
45029
  key: I.name,
45030
45030
  width: 200,
45031
- render: (j, R, B) => {
45031
+ render: (M, R, B) => {
45032
45032
  const V = R[I.name], E = {
45033
45033
  type: "object",
45034
45034
  properties: {
@@ -45274,15 +45274,15 @@ const AsyncDataProvider = (e) => {
45274
45274
  const T = /* @__PURE__ */ new Map();
45275
45275
  i || (a && a.length ? Object.entries((a == null ? void 0 : a[0]) || {}).forEach(([O, z]) => {
45276
45276
  var R;
45277
- const N = l[O], w = inferInterface(O, z), M = (R = C.current(w)) == null ? void 0 : R.default, j = (N == null ? void 0 : N.uiSchema) || (M == null ? void 0 : M.uiSchema) || {};
45277
+ const N = l[O], w = inferInterface(O, z), j = (R = C.current(w)) == null ? void 0 : R.default, M = (N == null ? void 0 : N.uiSchema) || (j == null ? void 0 : j.uiSchema) || {};
45278
45278
  T.set(O, {
45279
45279
  name: O,
45280
45280
  interface: (N == null ? void 0 : N.interface) || w,
45281
- type: (N == null ? void 0 : N.type) || (M == null ? void 0 : M.type),
45281
+ type: (N == null ? void 0 : N.type) || (j == null ? void 0 : j.type),
45282
45282
  source: N == null ? void 0 : N.source,
45283
45283
  uiSchema: h({
45284
45284
  title: O
45285
- }, j)
45285
+ }, M)
45286
45286
  });
45287
45287
  }) : Object.entries(l || {}).forEach(
45288
45288
  ([O, z]) => T.set(O, F(h({
@@ -45370,13 +45370,13 @@ const AsyncDataProvider = (e) => {
45370
45370
  style: { width: "100%" },
45371
45371
  popupMatchSelectWidth: !1,
45372
45372
  onChange: (N) => {
45373
- var M, j, R, B, V;
45373
+ var j, M, R, B, V;
45374
45374
  const w = p(N);
45375
45375
  b(
45376
45376
  F(h({}, O), {
45377
45377
  interface: N || null,
45378
- uiSchema: F(h({}, (M = w == null ? void 0 : w.default) == null ? void 0 : M.uiSchema), {
45379
- title: ((R = (j = w == null ? void 0 : w.default) == null ? void 0 : j.uiSchema) == null ? void 0 : R.title) || ((B = O.uiSchema) == null ? void 0 : B.title)
45378
+ uiSchema: F(h({}, (j = w == null ? void 0 : w.default) == null ? void 0 : j.uiSchema), {
45379
+ title: ((R = (M = w == null ? void 0 : w.default) == null ? void 0 : M.uiSchema) == null ? void 0 : R.title) || ((B = O.uiSchema) == null ? void 0 : B.title)
45380
45380
  }),
45381
45381
  type: (V = w == null ? void 0 : w.default) == null ? void 0 : V.type
45382
45382
  }),
@@ -54784,9 +54784,9 @@ const ActionInitializerItem = (e) => {
54784
54784
  return null;
54785
54785
  const w = (K) => {
54786
54786
  T(K), z(!1);
54787
- }, M = (K) => {
54788
- $(K), d(K);
54789
54787
  }, j = (K) => {
54788
+ $(K), d(K);
54789
+ }, M = (K) => {
54790
54790
  var H;
54791
54791
  const Y = (H = m == null ? void 0 : m[0]) == null ? void 0 : H.filter;
54792
54792
  (S || Y) && g(F(h({}, m == null ? void 0 : m[0]), {
@@ -54830,7 +54830,7 @@ const ActionInitializerItem = (e) => {
54830
54830
  style: {
54831
54831
  flex: "0 0 auto"
54832
54832
  },
54833
- children: S ? /* @__PURE__ */ jsx(CloseOutlined, { className: "CloseOutlined", onClick: j }) : /* @__PURE__ */ jsx(SearchOutlined, { className: "SearchOutlined", onClick: j })
54833
+ children: S ? /* @__PURE__ */ jsx(CloseOutlined, { className: "CloseOutlined", onClick: M }) : /* @__PURE__ */ jsx(SearchOutlined, { className: "SearchOutlined", onClick: M })
54834
54834
  }
54835
54835
  )
54836
54836
  ]
@@ -54844,7 +54844,7 @@ const ActionInitializerItem = (e) => {
54844
54844
  expandedKeys: k,
54845
54845
  autoExpandParent: O,
54846
54846
  treeData: u,
54847
- onSelect: M,
54847
+ onSelect: j,
54848
54848
  fieldNames: A,
54849
54849
  titleRender: (K) => /* @__PURE__ */ jsx(EllipsisWithTooltip, { ellipsis: !0, children: getLabelFormatValue(N, c(K[I])) }),
54850
54850
  selectedKeys: D,
@@ -57554,21 +57554,9 @@ const commonOptions$e = {
57554
57554
  name: "otherBlocks",
57555
57555
  children: [
57556
57556
  {
57557
- title: '{{t("Add text")}}',
57558
- Component: "BlockItemInitializer",
57559
- name: "addText",
57560
- schema: {
57561
- type: "void",
57562
- "x-editable": !1,
57563
- "x-decorator": "BlockItem",
57564
- // 'x-designer': 'Markdown.Void.Designer',
57565
- "x-toolbar": "BlockSchemaToolbar",
57566
- "x-settings": "blockSettings:markdown",
57567
- "x-component": "Markdown.Void",
57568
- "x-component-props": {
57569
- content: '{{t("This is a demo text, **supports Markdown syntax**.")}}'
57570
- }
57571
- }
57557
+ name: "markdown",
57558
+ title: '{{t("Markdown")}}',
57559
+ Component: "MarkdownBlockInitializer"
57572
57560
  }
57573
57561
  ]
57574
57562
  }