@nocobase/client 1.5.17 → 1.5.19

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
@@ -5946,8 +5946,8 @@ const HEADERS_DATA_SOURCE_KEY = "x-data-source", isTitleField = (e, t) => {
5946
5946
  if (D > 2)
5947
5947
  return w;
5948
5948
  if (L != null && L.length && (w.children = L), z) {
5949
- const T = o(k.target), N = A(T, D + 1).filter(Boolean);
5950
- w.children = w.children || [], w.children.push(...N);
5949
+ const T = o(k.target), O = A(T, D + 1).filter(Boolean);
5950
+ w.children = w.children || [], w.children.push(...O);
5951
5951
  }
5952
5952
  return w;
5953
5953
  }
@@ -10500,7 +10500,7 @@ const Table$2 = withDynamicSchemaProps(
10500
10500
  "onClickRow",
10501
10501
  "value"
10502
10502
  ]), y = useArrayField$1(S), v = useFieldSchema(), { size: F = "small" } = (v == null ? void 0 : v["x-component-props"]) || {}, A = useCollection(), k = ((ce = v == null ? void 0 : v.parent) == null ? void 0 : ce["x-decorator"]) === "TableSelectorProvider" ? useTableSelectorContext() : useTableBlockContext(), { expandFlag: D, allIncludesChildren: j } = k, z = useMemoizedFn(S.onRowDragEnd || (() => {
10503
- })), L = usePaginationProps$3(n, i, e), M = useTableColumns$2(S, L), [w, B] = useState(() => D ? j : []), [$, T] = useState(((Ce = y == null ? void 0 : y.data) == null ? void 0 : Ce.selectedRowKeys) || []), [N, O] = useState([]), V = (p == null ? void 0 : p.type) !== "none", E = useRef(/* @__PURE__ */ new Map()), G = useMemo(() => css`
10503
+ })), L = usePaginationProps$3(n, i, e), M = useTableColumns$2(S, L), [w, B] = useState(() => D ? j : []), [$, T] = useState(((Ce = y == null ? void 0 : y.data) == null ? void 0 : Ce.selectedRowKeys) || []), [O, N] = useState([]), V = (p == null ? void 0 : p.type) !== "none", E = useRef(/* @__PURE__ */ new Map()), G = useMemo(() => css`
10504
10504
  & > td {
10505
10505
  background-color: ${t.controlItemBgActive} !important;
10506
10506
  }
@@ -10509,14 +10509,14 @@ const Table$2 = withDynamicSchemaProps(
10509
10509
  }
10510
10510
  `, [t.controlItemBgActive, t.controlItemBgActiveHover]), U = useMemo(() => C ? G : "", [G, C]), H = useMemo(() => C ? (re, ee) => ({
10511
10511
  onClick: (ne) => {
10512
- isPortalInBody(ne.target) || C(re, O, N);
10512
+ isPortalInBody(ne.target) || C(re, N, O);
10513
10513
  },
10514
10514
  rowIndex: ee,
10515
10515
  record: re
10516
10516
  }) : (re, ee) => ({
10517
10517
  rowIndex: ee,
10518
10518
  record: re
10519
- }), [C, N]);
10519
+ }), [C, O]);
10520
10520
  useDeepCompareEffect(() => {
10521
10521
  const re = D ? j : [];
10522
10522
  _.isEqual(re, w) || B(re);
@@ -10638,8 +10638,8 @@ const Table$2 = withDynamicSchemaProps(
10638
10638
  x: "max-content",
10639
10639
  y: ie
10640
10640
  }), [ie, J]), xe = useCallback(
10641
- (re) => N.includes(re[m]) ? U : "",
10642
- [N, U, JSON.stringify(m)]
10641
+ (re) => O.includes(re[m]) ? U : "",
10642
+ [O, U, JSON.stringify(m)]
10643
10643
  ), pe = useCallback(
10644
10644
  (re, ee) => {
10645
10645
  const ne = re ? [...w, ee[A.getPrimaryKey()]] : w.filter((se) => ee[A.getPrimaryKey()] !== se);
@@ -10884,14 +10884,14 @@ const popupsContextStorage = {}, getStoredPopupContext = (e) => popupsContextSto
10884
10884
  popupUid: B,
10885
10885
  recordData: $,
10886
10886
  sourceId: T,
10887
- collection: N,
10888
- puid: O
10887
+ collection: O,
10888
+ puid: N
10889
10889
  }) => {
10890
10890
  const V = c.getFilterByTK(u || l, $);
10891
10891
  return getPopupPathFromParams({
10892
10892
  popupuid: B,
10893
- puid: O,
10894
- collection: N,
10893
+ puid: N,
10894
+ collection: O,
10895
10895
  filterbytk: V,
10896
10896
  sourceid: T,
10897
10897
  tab: w
@@ -10911,11 +10911,11 @@ const popupsContextStorage = {}, getStoredPopupContext = (e) => popupsContextSto
10911
10911
  parentRecordData: B,
10912
10912
  collectionNameUsedInURL: $,
10913
10913
  popupUidUsedInURL: T,
10914
- customActionSchema: N
10914
+ customActionSchema: O
10915
10915
  } = {}) => {
10916
10916
  if (!f())
10917
10917
  return A == null ? void 0 : A(!0);
10918
- const O = N || o, V = O == null ? void 0 : O["x-uid"], E = y(B);
10918
+ const N = O || o, V = N == null ? void 0 : N["x-uid"], E = y(B);
10919
10919
  w = w || (i == null ? void 0 : i.data);
10920
10920
  const G = R({
10921
10921
  popupUid: V,
@@ -10926,7 +10926,7 @@ const popupsContextStorage = {}, getStoredPopupContext = (e) => popupsContextSto
10926
10926
  });
10927
10927
  let U = n.pathname;
10928
10928
  if (_.last(U) === "/" && (U = U.slice(0, -1)), storePopupContext(V, {
10929
- schema: O,
10929
+ schema: N,
10930
10930
  record: new CollectionRecord({ isNew: !1, data: w }),
10931
10931
  parentRecord: B ? new CollectionRecord({ isNew: !1, data: B }) : a,
10932
10932
  service: g(),
@@ -10935,7 +10935,7 @@ const popupsContextStorage = {}, getStoredPopupContext = (e) => popupsContextSto
10935
10935
  association: u,
10936
10936
  sourceId: E,
10937
10937
  tableBlockContext: P(x({}, F), { collection: l == null ? void 0 : l.name, blockData: v })
10938
- }), b(k(), N), O.properties) {
10938
+ }), b(k(), O), N.properties) {
10939
10939
  const H = h + 1;
10940
10940
  if (getPopupLayerState(H))
10941
10941
  return;
@@ -10943,7 +10943,7 @@ const popupsContextStorage = {}, getStoredPopupContext = (e) => popupsContextSto
10943
10943
  } else
10944
10944
  console.error(
10945
10945
  `[NocoBase] The popup schema is invalid, please check the schema:
10946
- ${JSON.stringify(O, null, 2)}`
10946
+ ${JSON.stringify(N, null, 2)}`
10947
10947
  );
10948
10948
  },
10949
10949
  [
@@ -12612,9 +12612,9 @@ const useTableBlockProps = () => {
12612
12612
  ),
12613
12613
  onChange: useCallback(
12614
12614
  ({ current: S, pageSize: y }, v, F) => {
12615
- var j, z, L, M, w, B, $, T, N, O;
12616
- const A = (L = (z = (j = t.parent) == null ? void 0 : j["x-decorator-props"]) == null ? void 0 : z.params) == null ? void 0 : L.sort, R = F.order ? F.order === "ascend" ? [F.field] : [`-${F.field}`] : A || i.dragSortBy, k = y || ((B = (w = (M = t.parent) == null ? void 0 : M["x-decorator-props"]) == null ? void 0 : w.params) == null ? void 0 : B.pageSize), D = P(x({}, (N = (T = ($ = a.current) == null ? void 0 : $.service) == null ? void 0 : T.params) == null ? void 0 : N[0]), { page: S || 1, pageSize: k });
12617
- R && (D.sort = R), (O = a.current) == null || O.service.run(D);
12615
+ var j, z, L, M, w, B, $, T, O, N;
12616
+ const A = (L = (z = (j = t.parent) == null ? void 0 : j["x-decorator-props"]) == null ? void 0 : z.params) == null ? void 0 : L.sort, R = F.order ? F.order === "ascend" ? [F.field] : [`-${F.field}`] : A || i.dragSortBy, k = y || ((B = (w = (M = t.parent) == null ? void 0 : M["x-decorator-props"]) == null ? void 0 : w.params) == null ? void 0 : B.pageSize), D = P(x({}, (O = (T = ($ = a.current) == null ? void 0 : $.service) == null ? void 0 : T.params) == null ? void 0 : O[0]), { page: S || 1, pageSize: k });
12617
+ R && (D.sort = R), (N = a.current) == null || N.service.run(D);
12618
12618
  },
12619
12619
  [t.parent]
12620
12620
  ),
@@ -12627,11 +12627,11 @@ const useTableBlockProps = () => {
12627
12627
  }
12628
12628
  const k = R.find((D) => D.uid === t.parent["x-uid"]);
12629
12629
  R.forEach((D) => {
12630
- var $, T, N;
12631
- const j = F.find((O) => O.uid === D.uid);
12630
+ var $, T, O;
12631
+ const j = F.find((N) => N.uid === D.uid);
12632
12632
  if (!j)
12633
12633
  return;
12634
- const z = getSourceKey(k, j.field) || i.rowKey || "id", L = [S[z]], M = (($ = D.service.params) == null ? void 0 : $[0]) || {}, w = ((N = (T = D.service.params) == null ? void 0 : T[1]) == null ? void 0 : N.filters) || {};
12634
+ const z = getSourceKey(k, j.field) || i.rowKey || "id", L = [S[z]], M = (($ = D.service.params) == null ? void 0 : $[0]) || {}, w = ((O = (T = D.service.params) == null ? void 0 : T[1]) == null ? void 0 : O.filters) || {};
12635
12635
  if (v.includes(S[i.rowKey])) {
12636
12636
  if (D.dataLoadingMode === "manual")
12637
12637
  return D.clearData();
@@ -12647,7 +12647,7 @@ const useTableBlockProps = () => {
12647
12647
  ]
12648
12648
  };
12649
12649
  const B = mergeFilter([
12650
- ...Object.values(w).map((O) => removeNullCondition(O)),
12650
+ ...Object.values(w).map((N) => removeNullCondition(N)),
12651
12651
  D.defaultFilter
12652
12652
  ]);
12653
12653
  return D.doFilter(
@@ -13113,10 +13113,10 @@ const useTableSelectorParams = () => useContext(TableSelectorParamsContext), Tab
13113
13113
  var a, l, c, u, d, p, m, h, g, f, C, b, S, y, v, F;
13114
13114
  const e = useField(), t = useTableSelectorContext(), n = useFieldSchema(), { getCollectionJoinField: o } = useCollectionManager_deprecated(), r = recursiveParent$1(n, "CollectionField"), i = o(r == null ? void 0 : r["x-collection-field"]);
13115
13115
  return useEffect(() => {
13116
- var R, k, D, j, z, L, M, w, B, $, T, N, O;
13116
+ var R, k, D, j, z, L, M, w, B, $, T, O, N;
13117
13117
  if (!((R = t == null ? void 0 : t.service) != null && R.loading)) {
13118
13118
  const V = (D = (k = t == null ? void 0 : t.service) == null ? void 0 : k.data) == null ? void 0 : D.data.map((E) => E);
13119
- e.value = V, (j = e == null ? void 0 : e.setInitialValue) == null || j.call(e, V), e.data = e.data || {}, e.data.selectedRowKeys = [], e.componentProps.pagination = e.componentProps.pagination || {}, e.componentProps.pagination.pageSize = (M = (L = (z = t == null ? void 0 : t.service) == null ? void 0 : z.data) == null ? void 0 : L.meta) == null ? void 0 : M.pageSize, e.componentProps.pagination.total = ($ = (B = (w = t == null ? void 0 : t.service) == null ? void 0 : w.data) == null ? void 0 : B.meta) == null ? void 0 : $.count, e.componentProps.pagination.current = (O = (N = (T = t == null ? void 0 : t.service) == null ? void 0 : T.data) == null ? void 0 : N.meta) == null ? void 0 : O.page;
13119
+ e.value = V, (j = e == null ? void 0 : e.setInitialValue) == null || j.call(e, V), e.data = e.data || {}, e.data.selectedRowKeys = [], e.componentProps.pagination = e.componentProps.pagination || {}, e.componentProps.pagination.pageSize = (M = (L = (z = t == null ? void 0 : t.service) == null ? void 0 : z.data) == null ? void 0 : L.meta) == null ? void 0 : M.pageSize, e.componentProps.pagination.total = ($ = (B = (w = t == null ? void 0 : t.service) == null ? void 0 : w.data) == null ? void 0 : B.meta) == null ? void 0 : $.count, e.componentProps.pagination.current = (N = (O = (T = t == null ? void 0 : t.service) == null ? void 0 : T.data) == null ? void 0 : O.meta) == null ? void 0 : N.page;
13120
13120
  }
13121
13121
  }, [
13122
13122
  i == null ? void 0 : i.foreignKey,
@@ -15175,7 +15175,7 @@ const useGetAriaLabelOfDesigner = () => {
15175
15175
  })
15176
15176
  )
15177
15177
  };
15178
- }, [y, (H = B == null ? void 0 : B.cols) == null ? void 0 : H.length]), N = useMemo(() => u === !1 || f === !1 ? null : /* @__PURE__ */ jsx(DragHandler, { children: /* @__PURE__ */ jsx(DragOutlined, { role: "button", "aria-label": y("drag-handler") }) }), [u, y, f]), O = useMemo(() => {
15178
+ }, [y, (H = B == null ? void 0 : B.cols) == null ? void 0 : H.length]), O = useMemo(() => u === !1 || f === !1 ? null : /* @__PURE__ */ jsx(DragHandler, { children: /* @__PURE__ */ jsx(DragOutlined, { role: "button", "aria-label": y("drag-handler") }) }), [u, y, f]), N = useMemo(() => {
15179
15179
  var K;
15180
15180
  if (o === !1)
15181
15181
  return null;
@@ -15222,8 +15222,8 @@ const useGetAriaLabelOfDesigner = () => {
15222
15222
  j[1] && /* @__PURE__ */ jsx("span", { className: "toolbar-title-tag", children: `${S("Reference template")}: ${`${j[1]}` || S("Untitled")}` })
15223
15223
  ] }) }),
15224
15224
  /* @__PURE__ */ jsx("div", { className: cls("toolbar-icons", a), style: l, children: /* @__PURE__ */ jsxs(Space$1, { size: 3, align: "center", className: d, style: p, children: [
15225
- N,
15226
- /* @__PURE__ */ jsx(RefreshComponentProvider, { refresh: D, children: O }),
15225
+ O,
15226
+ /* @__PURE__ */ jsx(RefreshComponentProvider, { refresh: D, children: N }),
15227
15227
  V
15228
15228
  ] }) })
15229
15229
  ]
@@ -16619,7 +16619,7 @@ const ActionLink = withDynamicSchemaProps(
16619
16619
  "onMouseEnter",
16620
16620
  "refreshDataBlockRequest",
16621
16621
  "confirmTitle"
16622
- ]), v = useDesigner(), F = useField(), A = useFieldSchema(), R = useCompile(), k = useCollectionRecordData(), D = R((G = A["x-component-props"]) == null ? void 0 : G.confirm) || g, j = useMemo(() => (A == null ? void 0 : A["x-linkage-rules"]) || [], [A == null ? void 0 : A["x-linkage-rules"]]), { designable: z } = useDesignable(), L = useComponent(o) || o, M = useVariables$1(), w = useLocalVariables$1({ currentForm: { values: k, readPretty: !1 } }), { visibleWithURL: B, setVisibleWithURL: $ } = usePopupUtils(), { setSubmitted: T } = useActionContext(), { getAriaLabel: N } = useGetAriaLabelOfAction(l), O = useCollectionParentRecordData();
16622
+ ]), v = useDesigner(), F = useField(), A = useFieldSchema(), R = useCompile(), k = useCollectionRecordData(), D = R((G = A["x-component-props"]) == null ? void 0 : G.confirm) || g, j = useMemo(() => (A == null ? void 0 : A["x-linkage-rules"]) || [], [A == null ? void 0 : A["x-linkage-rules"]]), { designable: z } = useDesignable(), L = useComponent(o) || o, M = useVariables$1(), w = useLocalVariables$1({ currentForm: { values: k, readPretty: !1 } }), { visibleWithURL: B, setVisibleWithURL: $ } = usePopupUtils(), { setSubmitted: T } = useActionContext(), { getAriaLabel: O } = useGetAriaLabelOfAction(l), N = useCollectionParentRecordData();
16623
16623
  useEffect(() => {
16624
16624
  F.stateOfLinkageRules && setInitialActionState(F), F.stateOfLinkageRules = {}, j.filter((U) => !U.disabled).forEach((U) => {
16625
16625
  var H;
@@ -16667,8 +16667,8 @@ const ActionLink = withDynamicSchemaProps(
16667
16667
  visibleWithURL: B,
16668
16668
  setVisibleWithURL: $,
16669
16669
  setSubmitted: T,
16670
- getAriaLabel: N,
16671
- parentRecordData: O,
16670
+ getAriaLabel: O,
16671
+ parentRecordData: N,
16672
16672
  actionCallback: h
16673
16673
  }, y)
16674
16674
  );
@@ -16732,7 +16732,7 @@ const ActionLink = withDynamicSchemaProps(
16732
16732
  "setSubmitted",
16733
16733
  "getAriaLabel",
16734
16734
  "parentRecordData"
16735
- ]), [w, B] = useState(!1), { wrapSSR: $, componentCls: T, hashId: N } = useStyles$e(), [O, V] = useState(!1), E = o["x-toolbar-props"] || o["x-designer-props"], G = (pe = o == null ? void 0 : o["x-component-props"]) == null ? void 0 : pe.openMode, U = (fe = o == null ? void 0 : o["x-component-props"]) == null ? void 0 : fe.openSize, H = (me = o == null ? void 0 : o["x-component-props"]) == null ? void 0 : me.refreshDataBlockRequest, { modal: K } = App.useApp(), Y = useForm(), J = useACLActionParamsContext(), { run: X, element: Q, disabled: Z } = (A == null ? void 0 : A(R)) || {}, oe = Y.disabled || i.disabled || ((he = i.data) == null ? void 0 : he.disabled) || F || Z, te = useMemo(() => {
16735
+ ]), [w, B] = useState(!1), { wrapSSR: $, componentCls: T, hashId: O } = useStyles$e(), [N, V] = useState(!1), E = o["x-toolbar-props"] || o["x-designer-props"], G = (pe = o == null ? void 0 : o["x-component-props"]) == null ? void 0 : pe.openMode, U = (fe = o == null ? void 0 : o["x-component-props"]) == null ? void 0 : fe.openSize, H = (me = o == null ? void 0 : o["x-component-props"]) == null ? void 0 : me.refreshDataBlockRequest, { modal: K } = App.useApp(), Y = useForm(), J = useACLActionParamsContext(), { run: X, element: Q, disabled: Z } = (A == null ? void 0 : A(R)) || {}, oe = Y.disabled || i.disabled || ((he = i.data) == null ? void 0 : he.disabled) || F || Z, te = useMemo(() => {
16736
16736
  var ce;
16737
16737
  return P(x({}, v), {
16738
16738
  opacity: r && (((ce = i == null ? void 0 : i.data) == null ? void 0 : ce.hidden) || !J) && 0.1,
@@ -16750,7 +16750,7 @@ const ActionLink = withDynamicSchemaProps(
16750
16750
  tarComponent: u,
16751
16751
  designerProps: E,
16752
16752
  componentCls: T,
16753
- hashId: N,
16753
+ hashId: O,
16754
16754
  className: d,
16755
16755
  others: M,
16756
16756
  getAriaLabel: z,
@@ -16778,7 +16778,7 @@ const ActionLink = withDynamicSchemaProps(
16778
16778
  button: RenderButton(ie),
16779
16779
  visible: w || k,
16780
16780
  setVisible: ae,
16781
- formValueChanged: O,
16781
+ formValueChanged: N,
16782
16782
  setFormValueChanged: V,
16783
16783
  openMode: G,
16784
16784
  openSize: U,
@@ -16868,9 +16868,9 @@ const RenderButton = ({
16868
16868
  const { getDataBlockRequest: z } = useDataBlockRequestGetter(), { t: L } = useTranslation(), { isPopupVisibleControlledByURL: M } = usePopupSettings(), { openPopup: w } = usePopupUtils(), B = useRef(null);
16869
16869
  B.current = w;
16870
16870
  const $ = useCallback(
16871
- (T, N = !0) => {
16872
- if (!(N && isPortalInBody(T.target)) && (T.preventDefault(), T.stopPropagation(), !i && n)) {
16873
- const O = () => {
16871
+ (T, O = !0) => {
16872
+ if (!(O && isPortalInBody(T.target)) && (T.preventDefault(), T.stopPropagation(), !i && n)) {
16873
+ const N = () => {
16874
16874
  b ? b(T, () => {
16875
16875
  var V, E;
16876
16876
  S !== !1 && (k == null || k(!0), (E = (V = z()) == null ? void 0 : V.refresh) == null || E.call(V));
@@ -16879,8 +16879,8 @@ const RenderButton = ({
16879
16879
  (A == null ? void 0 : A.enable) !== !1 && (A != null && A.content) ? R.confirm({
16880
16880
  title: L(A.title, { title: D || j || (t == null ? void 0 : t.title) }),
16881
16881
  content: L(A.content, { title: D || j || (t == null ? void 0 : t.title) }),
16882
- onOk: O
16883
- }) : O();
16882
+ onOk: N
16883
+ }) : N();
16884
16884
  }
16885
16885
  },
16886
16886
  [
@@ -17933,19 +17933,19 @@ https://requirejs.org/docs/errors.html#` + e);
17933
17933
  config: {}
17934
17934
  }, l = {}, c = {}, u = {}, d = [], p = {}, m = {}, h = {}, g = 1, f = 1;
17935
17935
  function C(T) {
17936
- var N, O;
17937
- for (N = 0; N < T.length; N++)
17938
- if (O = T[N], O === ".")
17939
- T.splice(N, 1), N -= 1;
17940
- else if (O === "..") {
17941
- if (N === 0 || N === 1 && T[2] === ".." || T[N - 1] === "..")
17936
+ var O, N;
17937
+ for (O = 0; O < T.length; O++)
17938
+ if (N = T[O], N === ".")
17939
+ T.splice(O, 1), O -= 1;
17940
+ else if (N === "..") {
17941
+ if (O === 0 || O === 1 && T[2] === ".." || T[O - 1] === "..")
17942
17942
  continue;
17943
- N > 0 && (T.splice(N - 1, 2), N -= 2);
17943
+ O > 0 && (T.splice(O - 1, 2), O -= 2);
17944
17944
  }
17945
17945
  }
17946
- function b(T, N, O) {
17947
- var V, E, G, U, H, K, Y, J, X, Q, Z, oe, te = N && N.split("/"), ie = a.map, ae = ie && ie["*"];
17948
- if (T && (T = T.split("/"), Y = T.length - 1, a.nodeIdCompat && jsSuffixRegExp.test(T[Y]) && (T[Y] = T[Y].replace(jsSuffixRegExp, "")), T[0].charAt(0) === "." && te && (oe = te.slice(0, te.length - 1), T = oe.concat(T)), C(T), T = T.join("/")), O && ie && (te || ae)) {
17946
+ function b(T, O, N) {
17947
+ var V, E, G, U, H, K, Y, J, X, Q, Z, oe, te = O && O.split("/"), ie = a.map, ae = ie && ie["*"];
17948
+ if (T && (T = T.split("/"), Y = T.length - 1, a.nodeIdCompat && jsSuffixRegExp.test(T[Y]) && (T[Y] = T[Y].replace(jsSuffixRegExp, "")), T[0].charAt(0) === "." && te && (oe = te.slice(0, te.length - 1), T = oe.concat(T)), C(T), T = T.join("/")), N && ie && (te || ae)) {
17949
17949
  G = T.split("/");
17950
17950
  e:
17951
17951
  for (U = G.length; U > 0; U -= 1) {
@@ -17963,30 +17963,30 @@ https://requirejs.org/docs/errors.html#` + e);
17963
17963
  return V = getOwn(a.pkgs, T), V || T;
17964
17964
  }
17965
17965
  function S(T) {
17966
- isBrowser && each(scripts(), function(N) {
17967
- if (N.getAttribute("data-requiremodule") === T && N.getAttribute("data-requirecontext") === o.contextName)
17968
- return N.parentNode.removeChild(N), !0;
17966
+ isBrowser && each(scripts(), function(O) {
17967
+ if (O.getAttribute("data-requiremodule") === T && O.getAttribute("data-requirecontext") === o.contextName)
17968
+ return O.parentNode.removeChild(O), !0;
17969
17969
  });
17970
17970
  }
17971
17971
  function y(T) {
17972
- var N = getOwn(a.paths, T);
17973
- if (N && isArray(N) && N.length > 1)
17974
- return N.shift(), o.require.undef(T), o.makeRequire(null, {
17972
+ var O = getOwn(a.paths, T);
17973
+ if (O && isArray(O) && O.length > 1)
17974
+ return O.shift(), o.require.undef(T), o.makeRequire(null, {
17975
17975
  skipMap: !0
17976
17976
  })([T]), !0;
17977
17977
  }
17978
17978
  function v(T) {
17979
- var N, O = T ? T.indexOf("!") : -1;
17980
- return O > -1 && (N = T.substring(0, O), T = T.substring(O + 1, T.length)), [N, T];
17979
+ var O, N = T ? T.indexOf("!") : -1;
17980
+ return N > -1 && (O = T.substring(0, N), T = T.substring(N + 1, T.length)), [O, T];
17981
17981
  }
17982
- function F(T, N, O, V) {
17983
- var E, G, U, H, K = null, Y = N ? N.name : null, J = T, X = !0, Q = "";
17984
- return T || (X = !1, T = "_@r" + (g += 1)), H = v(T), K = H[0], T = H[1], K && (K = b(K, Y, V), G = getOwn(p, K)), T && (K ? O ? Q = T : G && G.normalize ? Q = G.normalize(T, function(Z) {
17982
+ function F(T, O, N, V) {
17983
+ var E, G, U, H, K = null, Y = O ? O.name : null, J = T, X = !0, Q = "";
17984
+ return T || (X = !1, T = "_@r" + (g += 1)), H = v(T), K = H[0], T = H[1], K && (K = b(K, Y, V), G = getOwn(p, K)), T && (K ? N ? Q = T : G && G.normalize ? Q = G.normalize(T, function(Z) {
17985
17985
  return b(Z, Y, V);
17986
- }) : Q = T.indexOf("!") === -1 ? b(T, Y, V) : T : (Q = b(T, Y, V), H = v(Q), K = H[0], Q = H[1], O = !0, E = o.nameToUrl(Q))), U = K && !G && !O ? "_unnormalized" + (f += 1) : "", {
17986
+ }) : Q = T.indexOf("!") === -1 ? b(T, Y, V) : T : (Q = b(T, Y, V), H = v(Q), K = H[0], Q = H[1], N = !0, E = o.nameToUrl(Q))), U = K && !G && !N ? "_unnormalized" + (f += 1) : "", {
17987
17987
  prefix: K,
17988
17988
  name: Q,
17989
- parentMap: N,
17989
+ parentMap: O,
17990
17990
  unnormalized: !!U,
17991
17991
  url: E,
17992
17992
  originalName: J,
@@ -17995,24 +17995,24 @@ https://requirejs.org/docs/errors.html#` + e);
17995
17995
  };
17996
17996
  }
17997
17997
  function A(T) {
17998
- var N = T.id, O = getOwn(l, N);
17999
- return O || (O = l[N] = new o.Module(T)), O;
17998
+ var O = T.id, N = getOwn(l, O);
17999
+ return N || (N = l[O] = new o.Module(T)), N;
18000
18000
  }
18001
- function R(T, N, O) {
18001
+ function R(T, O, N) {
18002
18002
  var V = T.id, E = getOwn(l, V);
18003
- hasProp(p, V) && (!E || E.defineEmitComplete) ? N === "defined" && O(p[V]) : (E = A(T), E.error && N === "error" ? O(E.error) : E.on(N, O));
18003
+ hasProp(p, V) && (!E || E.defineEmitComplete) ? O === "defined" && N(p[V]) : (E = A(T), E.error && O === "error" ? N(E.error) : E.on(O, N));
18004
18004
  }
18005
- function k(T, N) {
18006
- var O = T.requireModules, V = !1;
18007
- N ? N(T) : (each(O, function(E) {
18005
+ function k(T, O) {
18006
+ var N = T.requireModules, V = !1;
18007
+ O ? O(T) : (each(N, function(E) {
18008
18008
  var G = getOwn(l, E);
18009
18009
  G && (G.error = T, G.events.error && (V = !0, G.emit("error", T)));
18010
18010
  }), V || req.onError(T));
18011
18011
  }
18012
18012
  function D() {
18013
18013
  globalDefQueue.length && (each(globalDefQueue, function(T) {
18014
- var N = T[0];
18015
- typeof N == "string" && (o.defQueueMap[N] = !0), d.push(T);
18014
+ var O = T[0];
18015
+ typeof O == "string" && (o.defQueueMap[O] = !0), d.push(T);
18016
18016
  }), globalDefQueue = []);
18017
18017
  }
18018
18018
  r = {
@@ -18037,21 +18037,21 @@ https://requirejs.org/docs/errors.html#` + e);
18037
18037
  function j(T) {
18038
18038
  delete l[T], delete c[T];
18039
18039
  }
18040
- function z(T, N, O) {
18040
+ function z(T, O, N) {
18041
18041
  var V = T.map.id;
18042
- T.error ? T.emit("error", T.error) : (N[V] = !0, each(T.depMaps, function(E, G) {
18042
+ T.error ? T.emit("error", T.error) : (O[V] = !0, each(T.depMaps, function(E, G) {
18043
18043
  var U = E.id, H = getOwn(l, U);
18044
- H && !T.depMatched[G] && !O[U] && (getOwn(N, U) ? (T.defineDep(G, p[U]), T.check()) : z(H, N, O));
18045
- }), O[V] = !0);
18044
+ H && !T.depMatched[G] && !N[U] && (getOwn(O, U) ? (T.defineDep(G, p[U]), T.check()) : z(H, O, N));
18045
+ }), N[V] = !0);
18046
18046
  }
18047
18047
  function L() {
18048
- var T, N, O = a.waitSeconds * 1e3, V = O && o.startTime + O < (/* @__PURE__ */ new Date()).getTime(), E = [], G = [], U = !1, H = !0;
18048
+ var T, O, N = a.waitSeconds * 1e3, V = N && o.startTime + N < (/* @__PURE__ */ new Date()).getTime(), E = [], G = [], U = !1, H = !0;
18049
18049
  if (!t) {
18050
18050
  if (t = !0, eachProp(c, function(K) {
18051
18051
  var Y = K.map, J = Y.id;
18052
18052
  if (K.enabled && (Y.isDefine || G.push(K), !K.error)) {
18053
18053
  if (!K.inited && V)
18054
- y(J) ? (N = !0, U = !0) : (E.push(J), S(J));
18054
+ y(J) ? (O = !0, U = !0) : (E.push(J), S(J));
18055
18055
  else if (!K.inited && K.fetched && Y.isDefine && (U = !0, !Y.prefix))
18056
18056
  return H = !1;
18057
18057
  }
@@ -18059,7 +18059,7 @@ https://requirejs.org/docs/errors.html#` + e);
18059
18059
  return T = makeError("timeout", "Load timeout for modules: " + E, null, E), T.contextName = o.contextName, k(T);
18060
18060
  H && each(G, function(K) {
18061
18061
  z(K, {}, {});
18062
- }), (!V || N) && U && (isBrowser || isWebWorker) && !i && (i = setTimeout(function() {
18062
+ }), (!V || O) && U && (isBrowser || isWebWorker) && !i && (i = setTimeout(function() {
18063
18063
  i = 0, L();
18064
18064
  }, 50)), t = !1;
18065
18065
  }
@@ -18067,13 +18067,13 @@ https://requirejs.org/docs/errors.html#` + e);
18067
18067
  n = function(T) {
18068
18068
  this.events = getOwn(u, T.id) || {}, this.map = T, this.shim = getOwn(a.shim, T.id), this.depExports = [], this.depMaps = [], this.depMatched = [], this.pluginMaps = {}, this.depCount = 0;
18069
18069
  }, n.prototype = {
18070
- init: function(T, N, O, V) {
18071
- V = V || {}, !this.inited && (this.factory = N, O ? this.on("error", O) : this.events.error && (O = bind(this, function(E) {
18070
+ init: function(T, O, N, V) {
18071
+ V = V || {}, !this.inited && (this.factory = O, N ? this.on("error", N) : this.events.error && (N = bind(this, function(E) {
18072
18072
  this.emit("error", E);
18073
- })), this.depMaps = T && T.slice(0), this.errback = O, this.inited = !0, this.ignore = V.ignore, V.enabled || this.enabled ? this.enable() : this.check());
18073
+ })), this.depMaps = T && T.slice(0), this.errback = N, this.inited = !0, this.ignore = V.ignore, V.enabled || this.enabled ? this.enable() : this.check());
18074
18074
  },
18075
- defineDep: function(T, N) {
18076
- this.depMatched[T] || (this.depMatched[T] = !0, this.depCount -= 1, this.depExports[T] = N);
18075
+ defineDep: function(T, O) {
18076
+ this.depMatched[T] || (this.depMatched[T] = !0, this.depCount -= 1, this.depExports[T] = O);
18077
18077
  },
18078
18078
  fetch: function() {
18079
18079
  if (!this.fetched) {
@@ -18099,9 +18099,9 @@ https://requirejs.org/docs/errors.html#` + e);
18099
18099
  */
18100
18100
  check: function() {
18101
18101
  if (!(!this.enabled || this.enabling)) {
18102
- var T, N, O = this.map.id, V = this.depExports, E = this.exports, G = this.factory;
18102
+ var T, O, N = this.map.id, V = this.depExports, E = this.exports, G = this.factory;
18103
18103
  if (!this.inited)
18104
- hasProp(o.defQueueMap, O) || this.fetch();
18104
+ hasProp(o.defQueueMap, N) || this.fetch();
18105
18105
  else if (this.error)
18106
18106
  this.emit("error", this.error);
18107
18107
  else if (!this.defining) {
@@ -18109,31 +18109,31 @@ https://requirejs.org/docs/errors.html#` + e);
18109
18109
  if (isFunction(G)) {
18110
18110
  if (this.events.error && this.map.isDefine || req.onError !== defaultOnError)
18111
18111
  try {
18112
- E = o.execCb(O, G, V, E);
18112
+ E = o.execCb(N, G, V, E);
18113
18113
  } catch (H) {
18114
18114
  T = H;
18115
18115
  }
18116
18116
  else
18117
- E = o.execCb(O, G, V, E);
18118
- if (this.map.isDefine && E === void 0 && (N = this.module, N ? E = N.exports : this.usingExports && (E = this.exports)), T)
18117
+ E = o.execCb(N, G, V, E);
18118
+ if (this.map.isDefine && E === void 0 && (O = this.module, O ? E = O.exports : this.usingExports && (E = this.exports)), T)
18119
18119
  return T.requireMap = this.map, T.requireModules = this.map.isDefine ? [this.map.id] : null, T.requireType = this.map.isDefine ? "define" : "require", k(this.error = T);
18120
18120
  } else
18121
18121
  E = G;
18122
- if (this.exports = E, this.map.isDefine && !this.ignore && (p[O] = E, req.onResourceLoad)) {
18122
+ if (this.exports = E, this.map.isDefine && !this.ignore && (p[N] = E, req.onResourceLoad)) {
18123
18123
  var U = [];
18124
18124
  each(this.depMaps, function(H) {
18125
18125
  U.push(H.normalizedMap || H);
18126
18126
  }), req.onResourceLoad(o, this.map, U);
18127
18127
  }
18128
- j(O), this.defined = !0;
18128
+ j(N), this.defined = !0;
18129
18129
  }
18130
18130
  this.defining = !1, this.defined && !this.defineEmitted && (this.defineEmitted = !0, this.emit("defined", this.exports), this.defineEmitComplete = !0);
18131
18131
  }
18132
18132
  }
18133
18133
  },
18134
18134
  callPlugin: function() {
18135
- var T = this.map, N = T.id, O = F(T.prefix);
18136
- this.depMaps.push(O), R(O, "defined", bind(this, function(V) {
18135
+ var T = this.map, O = T.id, N = F(T.prefix);
18136
+ this.depMaps.push(N), R(N, "defined", bind(this, function(V) {
18137
18137
  var E, G, U, H = getOwn(h, this.map.id), K = this.map.name, Y = this.map.parentMap ? this.map.parentMap.name : null, J = o.makeRequire(T.parentMap, {
18138
18138
  enableBuildCallback: !0
18139
18139
  });
@@ -18171,72 +18171,72 @@ https://requirejs.org/docs/errors.html#` + e);
18171
18171
  enabled: !0
18172
18172
  });
18173
18173
  }), E.error = bind(this, function(X) {
18174
- this.inited = !0, this.error = X, X.requireModules = [N], eachProp(l, function(Q) {
18175
- Q.map.id.indexOf(N + "_unnormalized") === 0 && j(Q.map.id);
18174
+ this.inited = !0, this.error = X, X.requireModules = [O], eachProp(l, function(Q) {
18175
+ Q.map.id.indexOf(O + "_unnormalized") === 0 && j(Q.map.id);
18176
18176
  }), k(X);
18177
18177
  }), E.fromText = bind(this, function(X, Q) {
18178
18178
  var Z = T.name, oe = F(Z), te = useInteractive;
18179
- Q && (X = Q), te && (useInteractive = !1), A(oe), hasProp(a.config, N) && (a.config[Z] = a.config[N]);
18179
+ Q && (X = Q), te && (useInteractive = !1), A(oe), hasProp(a.config, O) && (a.config[Z] = a.config[O]);
18180
18180
  try {
18181
18181
  req.exec(X);
18182
18182
  } catch (ie) {
18183
18183
  return k(makeError(
18184
18184
  "fromtexteval",
18185
- "fromText eval for " + N + " failed: " + ie,
18185
+ "fromText eval for " + O + " failed: " + ie,
18186
18186
  ie,
18187
- [N]
18187
+ [O]
18188
18188
  ));
18189
18189
  }
18190
18190
  te && (useInteractive = !0), this.depMaps.push(oe), o.completeLoad(Z), J([Z], E);
18191
18191
  }), V.load(T.name, J, E, a);
18192
- })), o.enable(O, this), this.pluginMaps[O.id] = O;
18192
+ })), o.enable(N, this), this.pluginMaps[N.id] = N;
18193
18193
  },
18194
18194
  enable: function() {
18195
- c[this.map.id] = this, this.enabled = !0, this.enabling = !0, each(this.depMaps, bind(this, function(T, N) {
18196
- var O, V, E;
18195
+ c[this.map.id] = this, this.enabled = !0, this.enabling = !0, each(this.depMaps, bind(this, function(T, O) {
18196
+ var N, V, E;
18197
18197
  if (typeof T == "string") {
18198
18198
  if (T = F(
18199
18199
  T,
18200
18200
  this.map.isDefine ? this.map : this.map.parentMap,
18201
18201
  !1,
18202
18202
  !this.skipMap
18203
- ), this.depMaps[N] = T, E = getOwn(r, T.id), E) {
18204
- this.depExports[N] = E(this);
18203
+ ), this.depMaps[O] = T, E = getOwn(r, T.id), E) {
18204
+ this.depExports[O] = E(this);
18205
18205
  return;
18206
18206
  }
18207
18207
  this.depCount += 1, R(T, "defined", bind(this, function(G) {
18208
- this.undefed || (this.defineDep(N, G), this.check());
18208
+ this.undefed || (this.defineDep(O, G), this.check());
18209
18209
  })), this.errback ? R(T, "error", bind(this, this.errback)) : this.events.error && R(T, "error", bind(this, function(G) {
18210
18210
  this.emit("error", G);
18211
18211
  }));
18212
18212
  }
18213
- O = T.id, V = l[O], !hasProp(r, O) && V && !V.enabled && o.enable(T, this);
18213
+ N = T.id, V = l[N], !hasProp(r, N) && V && !V.enabled && o.enable(T, this);
18214
18214
  })), eachProp(this.pluginMaps, bind(this, function(T) {
18215
- var N = getOwn(l, T.id);
18216
- N && !N.enabled && o.enable(T, this);
18215
+ var O = getOwn(l, T.id);
18216
+ O && !O.enabled && o.enable(T, this);
18217
18217
  })), this.enabling = !1, this.check();
18218
18218
  },
18219
- on: function(T, N) {
18220
- var O = this.events[T];
18221
- O || (O = this.events[T] = []), O.push(N);
18219
+ on: function(T, O) {
18220
+ var N = this.events[T];
18221
+ N || (N = this.events[T] = []), N.push(O);
18222
18222
  },
18223
- emit: function(T, N) {
18224
- each(this.events[T], function(O) {
18225
- O(N);
18223
+ emit: function(T, O) {
18224
+ each(this.events[T], function(N) {
18225
+ N(O);
18226
18226
  }), T === "error" && delete this.events[T];
18227
18227
  }
18228
18228
  };
18229
18229
  function M(T) {
18230
18230
  hasProp(p, T[0]) || A(F(T[0], null, !0)).init(T[1], T[2]);
18231
18231
  }
18232
- function w(T, N, O, V) {
18233
- T.detachEvent && !isOpera ? V && T.detachEvent(V, N) : T.removeEventListener(O, N, !1);
18232
+ function w(T, O, N, V) {
18233
+ T.detachEvent && !isOpera ? V && T.detachEvent(V, O) : T.removeEventListener(N, O, !1);
18234
18234
  }
18235
18235
  function B(T) {
18236
- var N = T.currentTarget || T.srcElement;
18237
- return w(N, o.onScriptLoad, "load", "onreadystatechange"), w(N, o.onScriptError, "error"), {
18238
- node: N,
18239
- id: N && N.getAttribute("data-requiremodule")
18236
+ var O = T.currentTarget || T.srcElement;
18237
+ return w(O, o.onScriptLoad, "load", "onreadystatechange"), w(O, o.onScriptError, "error"), {
18238
+ node: O,
18239
+ id: O && O.getAttribute("data-requiremodule")
18240
18240
  };
18241
18241
  }
18242
18242
  function $() {
@@ -18266,12 +18266,12 @@ https://requirejs.org/docs/errors.html#` + e);
18266
18266
  */
18267
18267
  configure: function(T) {
18268
18268
  if (T.baseUrl && T.baseUrl.charAt(T.baseUrl.length - 1) !== "/" && (T.baseUrl += "/"), typeof T.urlArgs == "string") {
18269
- var N = T.urlArgs;
18269
+ var O = T.urlArgs;
18270
18270
  T.urlArgs = function(E, G) {
18271
- return (G.indexOf("?") === -1 ? "?" : "&") + N;
18271
+ return (G.indexOf("?") === -1 ? "?" : "&") + O;
18272
18272
  };
18273
18273
  }
18274
- var O = a.shim, V = {
18274
+ var N = a.shim, V = {
18275
18275
  paths: !0,
18276
18276
  bundles: !0,
18277
18277
  config: !0,
@@ -18286,8 +18286,8 @@ https://requirejs.org/docs/errors.html#` + e);
18286
18286
  }), T.shim && (eachProp(T.shim, function(E, G) {
18287
18287
  isArray(E) && (E = {
18288
18288
  deps: E
18289
- }), (E.exports || E.init) && !E.exportsFn && (E.exportsFn = o.makeShimExports(E)), O[G] = E;
18290
- }), a.shim = O), T.packages && each(T.packages, function(E) {
18289
+ }), (E.exports || E.init) && !E.exportsFn && (E.exportsFn = o.makeShimExports(E)), N[G] = E;
18290
+ }), a.shim = N), T.packages && each(T.packages, function(E) {
18291
18291
  var G, U;
18292
18292
  E = typeof E == "string" ? { name: E } : E, U = E.name, G = E.location, G && (a.paths[U] = E.location), a.pkgs[U] = E.name + "/" + (E.main || "main").replace(currDirRegExp, "").replace(jsSuffixRegExp, "");
18293
18293
  }), eachProp(l, function(E, G) {
@@ -18295,23 +18295,23 @@ https://requirejs.org/docs/errors.html#` + e);
18295
18295
  }), (T.deps || T.callback) && o.require(T.deps || [], T.callback);
18296
18296
  },
18297
18297
  makeShimExports: function(T) {
18298
- function N() {
18299
- var O;
18300
- return T.init && (O = T.init.apply(global, arguments)), O || T.exports && getGlobal(T.exports);
18298
+ function O() {
18299
+ var N;
18300
+ return T.init && (N = T.init.apply(global, arguments)), N || T.exports && getGlobal(T.exports);
18301
18301
  }
18302
- return N;
18302
+ return O;
18303
18303
  },
18304
- makeRequire: function(T, N) {
18305
- N = N || {};
18306
- function O(V, E, G) {
18304
+ makeRequire: function(T, O) {
18305
+ O = O || {};
18306
+ function N(V, E, G) {
18307
18307
  var U, H, K;
18308
- return N.enableBuildCallback && E && isFunction(E) && (E.__requireJsBuild = !0), typeof V == "string" ? isFunction(E) ? k(makeError("requireargs", "Invalid require call"), G) : T && hasProp(r, V) ? r[V](l[T.id]) : req.get ? req.get(o, V, T, O) : (H = F(V, T, !1, !0), U = H.id, hasProp(p, U) ? p[U] : k(makeError("notloaded", 'Module name "' + U + '" has not been loaded yet for context: ' + e + (T ? "" : ". Use require([])")))) : ($(), o.nextTick(function() {
18309
- $(), K = A(F(null, T)), K.skipMap = N.skipMap, K.init(V, E, G, {
18308
+ return O.enableBuildCallback && E && isFunction(E) && (E.__requireJsBuild = !0), typeof V == "string" ? isFunction(E) ? k(makeError("requireargs", "Invalid require call"), G) : T && hasProp(r, V) ? r[V](l[T.id]) : req.get ? req.get(o, V, T, N) : (H = F(V, T, !1, !0), U = H.id, hasProp(p, U) ? p[U] : k(makeError("notloaded", 'Module name "' + U + '" has not been loaded yet for context: ' + e + (T ? "" : ". Use require([])")))) : ($(), o.nextTick(function() {
18309
+ $(), K = A(F(null, T)), K.skipMap = O.skipMap, K.init(V, E, G, {
18310
18310
  enabled: !0
18311
18311
  }), L();
18312
- }), O);
18312
+ }), N);
18313
18313
  }
18314
- return mixin(O, {
18314
+ return mixin(N, {
18315
18315
  isBrowser,
18316
18316
  /**
18317
18317
  * Converts a module name + .extension into an URL path.
@@ -18332,13 +18332,13 @@ https://requirejs.org/docs/errors.html#` + e);
18332
18332
  specified: function(V) {
18333
18333
  return V = F(V, T, !1, !0).id, hasProp(p, V) || hasProp(l, V);
18334
18334
  }
18335
- }), T || (O.undef = function(V) {
18335
+ }), T || (N.undef = function(V) {
18336
18336
  D();
18337
18337
  var E = F(V, T, !0), G = getOwn(l, V);
18338
18338
  G.undefed = !0, S(V), delete p[V], delete m[E.url], delete u[V], eachReverse(d, function(U, H) {
18339
18339
  U[0] === V && d.splice(H, 1);
18340
18340
  }), delete o.defQueueMap[V], G && (G.events.defined && (u[V] = G.events), j(V));
18341
- }), O;
18341
+ }), N;
18342
18342
  },
18343
18343
  /**
18344
18344
  * Called to enable a module if it is still in the registry
@@ -18347,8 +18347,8 @@ https://requirejs.org/docs/errors.html#` + e);
18347
18347
  * the optimizer. Not shown here to keep code compact.
18348
18348
  */
18349
18349
  enable: function(T) {
18350
- var N = getOwn(l, T.id);
18351
- N && A(T).enable();
18350
+ var O = getOwn(l, T.id);
18351
+ O && A(T).enable();
18352
18352
  },
18353
18353
  /**
18354
18354
  * Internal method used by environment adapters to complete a load event.
@@ -18357,17 +18357,17 @@ https://requirejs.org/docs/errors.html#` + e);
18357
18357
  * @param {String} moduleName the name of the module to potentially complete.
18358
18358
  */
18359
18359
  completeLoad: function(T) {
18360
- var N, O, V, E = getOwn(a.shim, T) || {}, G = E.exports;
18360
+ var O, N, V, E = getOwn(a.shim, T) || {}, G = E.exports;
18361
18361
  for (D(); d.length; ) {
18362
- if (O = d.shift(), O[0] === null) {
18363
- if (O[0] = T, N)
18362
+ if (N = d.shift(), N[0] === null) {
18363
+ if (N[0] = T, O)
18364
18364
  break;
18365
- N = !0;
18365
+ O = !0;
18366
18366
  } else
18367
- O[0] === T && (N = !0);
18368
- M(O);
18367
+ N[0] === T && (O = !0);
18368
+ M(N);
18369
18369
  }
18370
- if (o.defQueueMap = {}, V = getOwn(l, T), !N && !hasProp(p, T) && V && !V.inited) {
18370
+ if (o.defQueueMap = {}, V = getOwn(l, T), !O && !hasProp(p, T) && V && !V.inited) {
18371
18371
  if (a.enforceDefine && (!G || !getGlobal(G)))
18372
18372
  return y(T) ? void 0 : k(makeError(
18373
18373
  "nodefine",
@@ -18386,26 +18386,26 @@ https://requirejs.org/docs/errors.html#` + e);
18386
18386
  * it is assumed to have already been normalized. This is an
18387
18387
  * internal API, not a public one. Use toUrl for the public API.
18388
18388
  */
18389
- nameToUrl: function(T, N, O) {
18389
+ nameToUrl: function(T, O, N) {
18390
18390
  var V, E, G, U, H, K, Y, J = getOwn(a.pkgs, T);
18391
18391
  if (J && (T = J), Y = getOwn(h, T), Y)
18392
- return o.nameToUrl(Y, N, O);
18392
+ return o.nameToUrl(Y, O, N);
18393
18393
  if (req.jsExtRegExp.test(T))
18394
- H = T + (N || "");
18394
+ H = T + (O || "");
18395
18395
  else {
18396
18396
  for (V = a.paths, E = T.split("/"), G = E.length; G > 0; G -= 1)
18397
18397
  if (U = E.slice(0, G).join("/"), K = getOwn(V, U), K) {
18398
18398
  isArray(K) && (K = K[0]), E.splice(0, G, K);
18399
18399
  break;
18400
18400
  }
18401
- H = E.join("/"), H += N || (/^data\:|^blob\:|\?/.test(H) || O ? "" : ".js"), H = (H.charAt(0) === "/" || H.match(/^[\w\+\.\-]+:/) ? "" : a.baseUrl) + H;
18401
+ H = E.join("/"), H += O || (/^data\:|^blob\:|\?/.test(H) || N ? "" : ".js"), H = (H.charAt(0) === "/" || H.match(/^[\w\+\.\-]+:/) ? "" : a.baseUrl) + H;
18402
18402
  }
18403
18403
  return a.urlArgs && !/^blob\:/.test(H) ? H + a.urlArgs(T, H) : H;
18404
18404
  },
18405
18405
  //Delegates to req.load. Broken out as a separate function to
18406
18406
  //allow overriding in the optimizer.
18407
- load: function(T, N) {
18408
- req.load(o, T, N);
18407
+ load: function(T, O) {
18408
+ req.load(o, T, O);
18409
18409
  },
18410
18410
  /**
18411
18411
  * Executes a module callback function. Broken out as a separate function
@@ -18414,8 +18414,8 @@ https://requirejs.org/docs/errors.html#` + e);
18414
18414
  *
18415
18415
  * @private
18416
18416
  */
18417
- execCb: function(T, N, O, V) {
18418
- return N.apply(V, O);
18417
+ execCb: function(T, O, N, V) {
18418
+ return O.apply(V, N);
18419
18419
  },
18420
18420
  /**
18421
18421
  * callback for script loads, used to check status of loading.
@@ -18426,23 +18426,23 @@ https://requirejs.org/docs/errors.html#` + e);
18426
18426
  onScriptLoad: function(T) {
18427
18427
  if (T.type === "load" || readyRegExp.test((T.currentTarget || T.srcElement).readyState)) {
18428
18428
  interactiveScript = null;
18429
- var N = B(T);
18430
- o.completeLoad(N.id);
18429
+ var O = B(T);
18430
+ o.completeLoad(O.id);
18431
18431
  }
18432
18432
  },
18433
18433
  /**
18434
18434
  * Callback for script errors.
18435
18435
  */
18436
18436
  onScriptError: function(T) {
18437
- var N = B(T);
18438
- if (!y(N.id)) {
18439
- var O = [];
18437
+ var O = B(T);
18438
+ if (!y(O.id)) {
18439
+ var N = [];
18440
18440
  return eachProp(l, function(V, E) {
18441
18441
  E.indexOf("_@r") !== 0 && each(V.depMaps, function(G) {
18442
- if (G.id === N.id)
18443
- return O.push(E), !0;
18442
+ if (G.id === O.id)
18443
+ return N.push(E), !0;
18444
18444
  });
18445
- }), k(makeError("scripterror", 'Script error for "' + N.id + (O.length ? '", needed by: ' + O.join(", ") : '"'), T, [N.id]));
18445
+ }), k(makeError("scripterror", 'Script error for "' + O.id + (N.length ? '", needed by: ' + N.join(", ") : '"'), T, [O.id]));
18446
18446
  }
18447
18447
  }
18448
18448
  }, o.require = o.makeRequire(), o;
@@ -19017,11 +19017,11 @@ const useCollectionManager_deprecated = (e) => {
19017
19017
  [t, p]
19018
19018
  ), b = useCallback(
19019
19019
  (w, B) => {
19020
- var T, N;
19020
+ var T, O;
19021
19021
  if (!w)
19022
19022
  return [];
19023
19023
  const $ = (T = p(B)) == null ? void 0 : T.getCollection(w);
19024
- return ((N = $ == null ? void 0 : $.getAllFields) == null ? void 0 : N.call($)) || ($ == null ? void 0 : $.getFields()) || [];
19024
+ return ((O = $ == null ? void 0 : $.getAllFields) == null ? void 0 : O.call($)) || ($ == null ? void 0 : $.getFields()) || [];
19025
19025
  },
19026
19026
  [t, p]
19027
19027
  ), S = useCallback(
@@ -19039,10 +19039,10 @@ const useCollectionManager_deprecated = (e) => {
19039
19039
  [t, p]
19040
19040
  ), v = useCallback(
19041
19041
  (w, B = !1, $) => {
19042
- var O;
19042
+ var N;
19043
19043
  if (!w)
19044
19044
  return [];
19045
- const T = (O = p($)) == null ? void 0 : O.getCollection(w);
19045
+ const T = (N = p($)) == null ? void 0 : N.getCollection(w);
19046
19046
  return (T == null ? void 0 : T.getChildrenCollections(B)) || [];
19047
19047
  },
19048
19048
  [t, p]
@@ -19057,8 +19057,8 @@ const useCollectionManager_deprecated = (e) => {
19057
19057
  var X;
19058
19058
  const {
19059
19059
  association: T = !1,
19060
- cached: N = {},
19061
- collectionNames: O = [w],
19060
+ cached: O = {},
19061
+ collectionNames: N = [w],
19062
19062
  maxDepth: V = 1,
19063
19063
  allowAllTypes: E = !1,
19064
19064
  exceptInterfaces: G = [],
@@ -19066,10 +19066,10 @@ const useCollectionManager_deprecated = (e) => {
19066
19066
  usePrefix: H = !1,
19067
19067
  dataSource: K
19068
19068
  } = $ || {};
19069
- if (O.length - 1 > V)
19069
+ if (N.length - 1 > V)
19070
19070
  return;
19071
- if (N[w])
19072
- return _.cloneDeep(N[w]);
19071
+ if (O[w])
19072
+ return _.cloneDeep(O[w]);
19073
19073
  typeof B == "string" && (B = [B]);
19074
19074
  const Y = b(w, K), J = (X = Y == null ? void 0 : Y.filter(
19075
19075
  (Q) => Q.interface && !G.includes(Q.interface) && (E || B.includes(Q.type) || (T && Q.target && Q.target !== w && Array.isArray(T) ? T.includes(Q.interface) : !1))
@@ -19079,15 +19079,15 @@ const useCollectionManager_deprecated = (e) => {
19079
19079
  value: H && U ? `${U}.${Q.name}` : Q.name,
19080
19080
  label: f((oe = Q == null ? void 0 : Q.uiSchema) == null ? void 0 : oe.title) || Q.name
19081
19081
  }, Q);
19082
- return T && Q.target && (Z.children = O.includes(Q.target) ? [] : A(Q.target, B, P(x({}, $), {
19083
- cached: N,
19082
+ return T && Q.target && (Z.children = N.includes(Q.target) ? [] : A(Q.target, B, P(x({}, $), {
19083
+ cached: O,
19084
19084
  dataSource: K,
19085
- collectionNames: [...O, Q.target],
19085
+ collectionNames: [...N, Q.target],
19086
19086
  prefixFieldValue: H ? U ? `${U}.${Q.name}` : Q.name : "",
19087
19087
  usePrefix: H
19088
19088
  })), !((te = Z.children) != null && te.length)) ? null : Z;
19089
19089
  }).filter(Boolean);
19090
- return N[w] = J, J;
19090
+ return O[w] = J, J;
19091
19091
  },
19092
19092
  [b]
19093
19093
  ), R = useCallback(
@@ -19119,8 +19119,8 @@ const useCollectionManager_deprecated = (e) => {
19119
19119
  [j]
19120
19120
  ), L = useCallback(
19121
19121
  (w, B, $) => {
19122
- var T, N;
19123
- return (N = (T = p($)) == null ? void 0 : T.getCollection(B)) == null ? void 0 : N.getParentCollectionFields(w);
19122
+ var T, O;
19123
+ return (O = (T = p($)) == null ? void 0 : T.getCollection(B)) == null ? void 0 : O.getParentCollectionFields(w);
19124
19124
  },
19125
19125
  [t, p]
19126
19126
  ), M = useCallback(
@@ -22399,7 +22399,7 @@ const SchemaSettingsSwitchItem = (e) => {
22399
22399
  }, [D]), z = useCallback(() => q(void 0, null, function* () {
22400
22400
  yield D.submit();
22401
22401
  try {
22402
- const B = D.values, $ = Object.keys(B).reduce((T, N) => (D.query(N).take() && (T[N] = B[N]), T), {});
22402
+ const B = D.values, $ = Object.keys(B).reduce((T, O) => (D.query(O).take() && (T[O] = B[O]), T), {});
22403
22403
  yield n == null ? void 0 : n(cloneDeep$1($)), h(!1);
22404
22404
  } catch (B) {
22405
22405
  console.error(B);
@@ -22471,7 +22471,7 @@ const SchemaSettingsModalItem = (e) => {
22471
22471
  "width",
22472
22472
  "noRecord",
22473
22473
  "ModalContextProvider"
22474
- ]), h = useContext(SchemaOptionsContext), g = useCollection(), f = useAPIClient(), C = useApp(), { theme: b } = useGlobalTheme(), S = useBlockRequestContext(), y = useFormActiveFields(), { locale: v } = useContext(ConfigProvider.ConfigContext), F = useDataSourceManager(), A = useDataSourceKey(), R = useCollectionRecord(), { association: k } = useDataBlockProps() || {}, D = useCurrentRecord(), j = useFormBlockContext(), z = useBlockContext(), { getOperators: L } = useOperators(), M = useLocationSearch(), w = useVariables$1(), { formValue: B, collection: $, parent: T } = useSubFormValue(), N = useCurrentPopupRecord(), O = useParentPopupRecord();
22474
+ ]), h = useContext(SchemaOptionsContext), g = useCollection(), f = useAPIClient(), C = useApp(), { theme: b } = useGlobalTheme(), S = useBlockRequestContext(), y = useFormActiveFields(), { locale: v } = useContext(ConfigProvider.ConfigContext), F = useDataSourceManager(), A = useDataSourceKey(), R = useCollectionRecord(), { association: k } = useDataBlockProps() || {}, D = useCurrentRecord(), j = useFormBlockContext(), z = useBlockContext(), { getOperators: L } = useOperators(), M = useLocationSearch(), w = useVariables$1(), { formValue: B, collection: $, parent: T } = useSubFormValue(), O = useCurrentPopupRecord(), N = useParentPopupRecord();
22475
22475
  return t ? null : /* @__PURE__ */ jsx(
22476
22476
  SchemaSettingsItem,
22477
22477
  P(x({
@@ -22484,11 +22484,11 @@ const SchemaSettingsModalItem = (e) => {
22484
22484
  () => /* @__PURE__ */ jsx(p, { children: /* @__PURE__ */ jsx(CollectOperators, { defaultOperators: L(), children: /* @__PURE__ */ jsx(VariablesContext.Provider, { value: w, children: /* @__PURE__ */ jsx(BlockContext.Provider, { value: z, children: /* @__PURE__ */ jsx(
22485
22485
  VariablePopupRecordProvider,
22486
22486
  {
22487
- recordData: N == null ? void 0 : N.value,
22488
- collection: N == null ? void 0 : N.collection,
22487
+ recordData: O == null ? void 0 : O.value,
22488
+ collection: O == null ? void 0 : O.collection,
22489
22489
  parent: {
22490
- recordData: O == null ? void 0 : O.value,
22491
- collection: O == null ? void 0 : O.collection
22490
+ recordData: N == null ? void 0 : N.value,
22491
+ collection: N == null ? void 0 : N.collection
22492
22492
  },
22493
22493
  children: /* @__PURE__ */ jsx(CollectionRecordProvider, { record: d ? null : R, children: /* @__PURE__ */ jsx(CurrentRecordContextProvider, P(x({}, D), { children: /* @__PURE__ */ jsx(FormBlockContext$1.Provider, { value: j, children: /* @__PURE__ */ jsx(SubFormProvider, { value: { value: B, collection: $, parent: T }, children: /* @__PURE__ */ jsx(
22494
22494
  FormActiveFieldsProvider,
@@ -22674,8 +22674,8 @@ const SchemaSettingsModalItem = (e) => {
22674
22674
  (L) => {
22675
22675
  var T;
22676
22676
  const M = [];
22677
- for (const N of L.fieldReaction.rules)
22678
- M.push(_.pickBy(N, _.identity));
22677
+ for (const O of L.fieldReaction.rules)
22678
+ M.push(_.pickBy(O, _.identity));
22679
22679
  const w = b["x-component"] === "BlockTemplate" && ((T = b["x-component-props"]) == null ? void 0 : T.templateId), $ = {
22680
22680
  "x-uid": w && d(w).uid || b["x-uid"]
22681
22681
  };
@@ -23372,7 +23372,7 @@ const getActionContext = (e) => {
23372
23372
  var n;
23373
23373
  return ((n = e.fieldSchema) == null ? void 0 : n["x-action-context"]) || {};
23374
23374
  }, SchemaSettingsDefaultValue = function e(t) {
23375
- var T, N, O;
23375
+ var T, O, N;
23376
23376
  const n = useFieldSchema(), o = (T = t == null ? void 0 : t.fieldSchema) != null ? T : n, r = useField(), { dn: i } = useDesignable(), { t: a } = useTranslation(), l = useActionContext(), c = getActionContext(l).collection;
23377
23377
  let u;
23378
23378
  const { getField: d } = useCollection_deprecated(), { getCollectionJoinField: p, getCollectionFields: m, getAllCollectionsInheritChain: h } = useCollectionManager_deprecated(), g = useVariables$1(), f = useLocalVariables$1(), C = useCollection_deprecated(), b = useRecord(), { form: S } = useFormBlockContext(), { getFields: y } = useCollectionFilterOptionsV2(C), { isInSubForm: v, isInSubTable: F } = useFlag() || {}, { name: A } = C, R = useMemo(
@@ -23380,7 +23380,7 @@ const getActionContext = (e) => {
23380
23380
  [o, p, d]
23381
23381
  ), k = _.omit(o, "required");
23382
23382
  R != null && R.target && (u = p(
23383
- `${R.target}.${((O = (N = o["x-component-props"]) == null ? void 0 : N.fieldNames) == null ? void 0 : O.label) || "id"}`
23383
+ `${R.target}.${((N = (O = o["x-component-props"]) == null ? void 0 : O.fieldNames) == null ? void 0 : N.label) || "id"}`
23384
23384
  ));
23385
23385
  const D = (R == null ? void 0 : R.interface) === "m2o" && findParentFieldSchema(o), j = D && p(D == null ? void 0 : D["x-collection-field"]), z = useTableBlockContext(), L = (R == null ? void 0 : R.interface) === "m2m" || (R == null ? void 0 : R.interface) === "mbm" || (j == null ? void 0 : j.type) === "hasMany" && (R == null ? void 0 : R.interface) === "m2o", M = useCallback(
23386
23386
  (V) => {
@@ -24252,7 +24252,7 @@ const useGetFilterOptions = () => {
24252
24252
  };
24253
24253
  });
24254
24254
  }, TableColumnDesigner$1 = (e) => {
24255
- var z, L, M, w, B, $, T, N, O, V, E, G;
24255
+ var z, L, M, w, B, $, T, O, N, V, E, G;
24256
24256
  const { uiSchema: t, fieldSchema: n, collectionField: o } = e, { form: r } = useFormBlockContext(), { getInterface: i, getCollection: a } = useCollectionManager_deprecated(), l = useField(), { t: c } = useTranslation(), u = useFieldSchema(), { dn: d } = useDesignable(), p = ((z = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : z.fieldNames) || ((L = t == null ? void 0 : t["x-component-props"]) == null ? void 0 : L.fieldNames), m = useLabelFields$1((M = o == null ? void 0 : o.target) != null ? M : o == null ? void 0 : o.targetCollection), h = useColorFields((w = o == null ? void 0 : o.target) != null ? w : o == null ? void 0 : o.targetCollection), g = i(o == null ? void 0 : o.interface), f = a(o == null ? void 0 : o.target), C = isFileCollection$2(f), b = ["QuickEdit", "FormItem"].includes(n["x-decorator"]), { currentMode: S } = useAssociationFieldContext(), { isAllowToSetDefaultValue: y } = useIsAllowToSetDefaultValue({ collectionField: o, fieldSchema: n }), v = ["datetime", "createdAt", "updatedAt"].includes(o == null ? void 0 : o.interface), F = ["obo", "oho", "o2o", "o2m", "m2m", "m2o", "snapshot"].includes(
24257
24257
  o == null ? void 0 : o.interface
24258
24258
  ), A = useFieldModeOptions({ fieldSchema: n }), R = ((B = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : B.mode) || "Select";
@@ -24295,7 +24295,7 @@ const useGetFilterOptions = () => {
24295
24295
  SchemaSettingsDataScope,
24296
24296
  {
24297
24297
  collectionName: o == null ? void 0 : o.target,
24298
- defaultFilter: ((O = (N = (T = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : T.service) == null ? void 0 : N.params) == null ? void 0 : O.filter) || {},
24298
+ defaultFilter: ((N = (O = (T = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : T.service) == null ? void 0 : O.params) == null ? void 0 : N.filter) || {},
24299
24299
  form: r,
24300
24300
  onSubmit: ({ filter: U }) => {
24301
24301
  var K, Y;
@@ -25561,14 +25561,14 @@ const useCreateActionProps = () => {
25561
25561
  return {
25562
25562
  onClick() {
25563
25563
  return q(this, null, function* () {
25564
- var N, O, V, E, G, U;
25564
+ var O, N, V, E, G, U;
25565
25565
  const R = u.map((H) => H.name), {
25566
25566
  assignedValues: k = {},
25567
25567
  onSuccess: D,
25568
25568
  overwriteValues: j,
25569
25569
  skipValidator: z,
25570
25570
  triggerWorkflows: L
25571
- } = (N = l == null ? void 0 : l["x-action-settings"]) != null ? N : {}, M = (O = i == null ? void 0 : i["x-component-props"]) == null ? void 0 : O.addChild, { successMessage: w } = D || {}, B = {}, $ = Object.keys(k).map((H) => q(this, null, function* () {
25571
+ } = (O = l == null ? void 0 : l["x-action-settings"]) != null ? O : {}, M = (N = i == null ? void 0 : i["x-component-props"]) == null ? void 0 : N.addChild, { successMessage: w } = D || {}, B = {}, $ = Object.keys(k).map((H) => q(this, null, function* () {
25572
25572
  const K = k[H], Y = d(H);
25573
25573
  if (isVariable(K)) {
25574
25574
  const { value: J } = (yield C == null ? void 0 : C.parseVariable(K, b)) || {};
@@ -25714,8 +25714,8 @@ const useCreateActionProps = () => {
25714
25714
  } = (L = r == null ? void 0 : r["x-action-settings"]) != null ? L : {}, { manualClose: F, redirecting: A, redirectTo: R, successMessage: k, actionAfterSuccess: D } = S || {}, j = {}, z = Object.keys(b).map((B) => q(this, null, function* () {
25715
25715
  const $ = b[B], T = m(B);
25716
25716
  if (isVariable($)) {
25717
- const { value: N } = (yield u == null ? void 0 : u.parseVariable($, d)) || {};
25718
- N && (j[B] = transformVariableValue(N, { targetCollectionField: T }));
25717
+ const { value: O } = (yield u == null ? void 0 : u.parseVariable($, d)) || {};
25718
+ O && (j[B] = transformVariableValue(O, { targetCollectionField: T }));
25719
25719
  } else
25720
25720
  $ != null && $ !== "" && (j[B] = $);
25721
25721
  }));
@@ -25741,12 +25741,12 @@ const useCreateActionProps = () => {
25741
25741
  return {
25742
25742
  onClick() {
25743
25743
  return q(this, null, function* () {
25744
- var N;
25744
+ var O;
25745
25745
  const {
25746
25746
  assignedValues: k = {},
25747
25747
  onSuccess: D,
25748
25748
  updateMode: j
25749
- } = (N = i == null ? void 0 : i["x-action-settings"]) != null ? N : {}, { manualClose: z, redirecting: L, redirectTo: M, successMessage: w, actionAfterSuccess: B } = D || {};
25749
+ } = (O = i == null ? void 0 : i["x-action-settings"]) != null ? O : {}, { manualClose: z, redirecting: L, redirectTo: M, successMessage: w, actionAfterSuccess: B } = D || {};
25750
25750
  m.data = e.data || {}, m.data.loading = !0;
25751
25751
  const $ = {}, T = Object.keys(k).map((V) => q(this, null, function* () {
25752
25752
  const E = k[V], G = C(V);
@@ -25822,7 +25822,7 @@ const useCreateActionProps = () => {
25822
25822
  });
25823
25823
  Object.assign(T, K);
25824
25824
  }
25825
- const O = {
25825
+ const N = {
25826
25826
  url: renderTemplate(k.url, { currentRecord: m, currentUser: g }),
25827
25827
  method: k.method,
25828
25828
  headers: parse(B)({ currentRecord: m, currentUser: g }),
@@ -25831,7 +25831,7 @@ const useCreateActionProps = () => {
25831
25831
  };
25832
25832
  f.data = c.data || {}, f.data.loading = !0;
25833
25833
  try {
25834
- yield e.request(x({}, O)), f.data.loading = !1, u instanceof TableFieldResource || (G = (E = d == null ? void 0 : d.service) == null ? void 0 : E.refresh) == null || G.call(E), (U = p == null ? void 0 : p.refresh) == null || U.call(p), w === "customize:form:request" && (M === "previous" || !M && j !== !0) && (b == null || b(!1)), L || (message.success(C("Saved successfully")), yield resetFormCorrectly(i), (j && !M || M === "redirect") && z && (isURL(z) ? window.location.href = z : t(z))), D ? S.success({
25834
+ yield e.request(x({}, N)), f.data.loading = !1, u instanceof TableFieldResource || (G = (E = d == null ? void 0 : d.service) == null ? void 0 : E.refresh) == null || G.call(E), (U = p == null ? void 0 : p.refresh) == null || U.call(p), w === "customize:form:request" && (M === "previous" || !M && j !== !0) && (b == null || b(!1)), L || (message.success(C("Saved successfully")), yield resetFormCorrectly(i), (j && !M || M === "redirect") && z && (isURL(z) ? window.location.href = z : t(z))), D ? S.success({
25835
25835
  title: r(L),
25836
25836
  onOk: () => q(this, null, function* () {
25837
25837
  (j && !M || M === "redirect") && z && (isURL(z) ? window.location.href = z : t(z));
@@ -25855,7 +25855,7 @@ const useCreateActionProps = () => {
25855
25855
  overwriteValues: D,
25856
25856
  skipValidator: j,
25857
25857
  triggerWorkflows: z
25858
- } = (E = l == null ? void 0 : l["x-action-settings"]) != null ? E : {}, { manualClose: L, redirecting: M, redirectTo: w, successMessage: B, actionAfterSuccess: $ } = k || {}, T = {}, N = Object.keys(R).map((G) => q(this, null, function* () {
25858
+ } = (E = l == null ? void 0 : l["x-action-settings"]) != null ? E : {}, { manualClose: L, redirecting: M, redirectTo: w, successMessage: B, actionAfterSuccess: $ } = k || {}, T = {}, O = Object.keys(R).map((G) => q(this, null, function* () {
25859
25859
  const U = R[G], H = d(G);
25860
25860
  if (isVariable(U)) {
25861
25861
  const { value: K } = (yield b == null ? void 0 : b.parseVariable(U, S)) || {};
@@ -25863,12 +25863,12 @@ const useCreateActionProps = () => {
25863
25863
  } else
25864
25864
  U != null && U !== "" && (T[G] = U);
25865
25865
  }));
25866
- yield Promise.all(N), j || (yield e.submit());
25867
- const O = u.map((G) => G.name), V = getFormValues({
25866
+ yield Promise.all(O), j || (yield e.submit());
25867
+ const N = u.map((G) => G.name), V = getFormValues({
25868
25868
  filterByTk: t,
25869
25869
  field: n,
25870
25870
  form: e,
25871
- fieldNames: O,
25871
+ fieldNames: N,
25872
25872
  getField: d,
25873
25873
  resource: o,
25874
25874
  actionFields: (y == null ? void 0 : y("form")) || []
@@ -26115,17 +26115,17 @@ const useCreateActionProps = () => {
26115
26115
  var U, H, K;
26116
26116
  if (!B.find((Y) => Y.uid === T.uid))
26117
26117
  return;
26118
- const O = `${$}${t.name}`, V = ((U = T.service.params) == null ? void 0 : U[0]) || {};
26118
+ const N = `${$}${t.name}`, V = ((U = T.service.params) == null ? void 0 : U[0]) || {};
26119
26119
  (K = (H = T.service.params) == null ? void 0 : H[1]) != null && K.filters || _.set(T.service.params, "[1].filters", {});
26120
26120
  const E = T.service.params[1].filters;
26121
26121
  if (w.length)
26122
- E[O] = {
26122
+ E[N] = {
26123
26123
  [S]: w
26124
26124
  };
26125
26125
  else {
26126
26126
  if (T.dataLoadingMode === "manual")
26127
26127
  return T.clearData();
26128
- delete E[O];
26128
+ delete E[N];
26129
26129
  }
26130
26130
  const G = mergeFilter([...Object.values(E), T.defaultFilter]);
26131
26131
  return T.doFilter(
@@ -26150,12 +26150,12 @@ const useCreateActionProps = () => {
26150
26150
  }, $ = ((M = w == null ? void 0 : w.uiSchema) == null ? void 0 : M.enum) || [];
26151
26151
  C = "value", b = "label", p = $, h = {}, g = () => {
26152
26152
  }, S = `${w.name}.${B[w.interface]}`, m = (T) => {
26153
- const N = T.target.value;
26154
- if (!N) {
26153
+ const O = T.target.value;
26154
+ if (!O) {
26155
26155
  p = $;
26156
26156
  return;
26157
26157
  }
26158
- p = $.filter((O) => O.label.includes(N));
26158
+ p = $.filter((N) => N.label.includes(O));
26159
26159
  };
26160
26160
  } else
26161
26161
  S = `${r}.${C}.$in`, p = (f == null ? void 0 : f.data) || [], m = (w) => {
@@ -26526,8 +26526,8 @@ const useSyncFromForm = (e, t, n) => {
26526
26526
  const D = R || F, j = k["x-collection-field"] && o(k["x-collection-field"]), z = k.name.includes("."), L = j && ["hasOne", "hasMany", "belongsTo", "belongsToMany"].includes(j.type), M = !L && z ? getAssociationPath(k.name) : k.name, w = D === "" || !D ? M : D + "." + M;
26527
26527
  if (j && !(["hasOne", "hasMany"].includes(j.type) || ["SubForm", "Nester"].includes((B = k["x-component-props"]) == null ? void 0 : B.mode)) && C.add(w), j && (L || z) && k["x-component"] !== "TableField") {
26528
26528
  if (f.add({ name: w, fieldMode: (($ = k["x-component-props"]) == null ? void 0 : $.mode) || "Select" }), ["Nester", "SubTable"].includes((T = k["x-component-props"]) == null ? void 0 : T.mode)) {
26529
- const N = D && D !== "" ? D + "." + k.name : k.name;
26530
- b(k, N);
26529
+ const O = D && D !== "" ? D + "." + k.name : k.name;
26530
+ b(k, O);
26531
26531
  }
26532
26532
  } else
26533
26533
  [
@@ -29006,9 +29006,9 @@ function Input$1(e) {
29006
29006
  label: y("Constant"),
29007
29007
  [B.value]: "$",
29008
29008
  [B.label]: y("Constant")
29009
- } : i ? getTypedConstantOption(M, i, B) : null, [M, i]), T = (H = $ == null ? void 0 : $.component) != null ? H : NullComponent, N = Array.isArray(i) ? (Y = (K = i.find((J) => Array.isArray(J) && J[0] === M)) == null ? void 0 : K[1]) != null ? Y : {} : {};
29010
- let O;
29011
- t == null ? a ? o && D ? O = ["$"] : O = [""] : o ? O = ["$"] : O = [" ", M] : O = o ? ["$"] : [" ", M], m && (O = ["$"]), useEffect(() => {
29009
+ } : i ? getTypedConstantOption(M, i, B) : null, [M, i]), T = (H = $ == null ? void 0 : $.component) != null ? H : NullComponent, O = Array.isArray(i) ? (Y = (K = i.find((J) => Array.isArray(J) && J[0] === M)) == null ? void 0 : K[1]) != null ? Y : {} : {};
29010
+ let N;
29011
+ t == null ? a ? o && D ? N = ["$"] : N = [""] : o ? N = ["$"] : N = [" ", M] : N = o ? ["$"] : [" ", M], m && (N = ["$"]), useEffect(() => {
29012
29012
  const Z = $ != null ? $ : {}, { component: J } = Z, X = W(Z, ["component"]), Q = [
29013
29013
  ...a ? [
29014
29014
  {
@@ -29149,7 +29149,7 @@ function Input$1(e) {
29149
29149
  P(x({
29150
29150
  role: "button",
29151
29151
  "aria-label": "variable-constant"
29152
- }, N), {
29152
+ }, O), {
29153
29153
  value: t,
29154
29154
  onChange: n
29155
29155
  })
@@ -29158,7 +29158,7 @@ function Input$1(e) {
29158
29158
  Cascader$1,
29159
29159
  {
29160
29160
  options: F,
29161
- value: w != null ? w : O,
29161
+ value: w != null ? w : N,
29162
29162
  onChange: E,
29163
29163
  loadData: V,
29164
29164
  changeOnSelect: u,
@@ -29440,15 +29440,15 @@ function TextArea(e) {
29440
29440
  useAntdInputStyle("ant-input");
29441
29441
  const { token: D } = theme$1.useToken(), j = u.join(" ");
29442
29442
  useEffect(() => {
29443
- preloadOptions(r, p).then((O) => {
29444
- g(O);
29443
+ preloadOptions(r, p).then((N) => {
29444
+ g(N);
29445
29445
  }).catch(console.error);
29446
29446
  }, [r, JSON.stringify(p)]), useEffect(() => {
29447
29447
  A(renderHTML(d != null ? d : "", C, u)), y || k([-1, 0, -1, 0]);
29448
29448
  }, [d, C, j]), useEffect(() => {
29449
29449
  var E;
29450
- const { current: O } = m;
29451
- if (!O)
29450
+ const { current: N } = m;
29451
+ if (!N)
29452
29452
  return;
29453
29453
  const V = new Range();
29454
29454
  if (y) {
@@ -29457,22 +29457,22 @@ function TextArea(e) {
29457
29457
  const G = (E = window.getSelection) == null ? void 0 : E.call(window);
29458
29458
  if (G)
29459
29459
  try {
29460
- const U = Array.from(O.childNodes);
29460
+ const U = Array.from(N.childNodes);
29461
29461
  U.length && (R[0] === -1 ? R[1] && V.setStartAfter(U[R[1] - 1]) : V.setStart(U[R[0]], R[1]), R[2] === -1 ? R[3] && V.setEndAfter(U[R[3] - 1]) : V.setEnd(U[R[2]], R[3])), V.collapse(!0), G.removeAllRanges(), G.addRange(V);
29462
29462
  } catch (U) {
29463
29463
  }
29464
29464
  } else {
29465
- const { lastChild: G } = O;
29465
+ const { lastChild: G } = N;
29466
29466
  if (G) {
29467
29467
  V.setStartAfter(G), V.setEndAfter(G);
29468
- const U = Array.from(O.childNodes), H = V.startContainer === O ? -1 : U.indexOf(G), K = V.startContainer === O ? -1 : U.indexOf(G);
29468
+ const U = Array.from(N.childNodes), H = V.startContainer === N ? -1 : U.indexOf(G), K = V.startContainer === N ? -1 : U.indexOf(G);
29469
29469
  k([H, V.startOffset, K, V.endOffset]);
29470
29470
  }
29471
29471
  }
29472
29472
  }, [F]);
29473
29473
  const z = useCallback(
29474
- function(O) {
29475
- const V = O.filter((U) => !!U.trim()), { current: E } = m;
29474
+ function(N) {
29475
+ const V = N.filter((U) => !!U.trim()), { current: E } = m;
29476
29476
  if (!E || !V)
29477
29477
  return;
29478
29478
  E.focus();
@@ -29483,25 +29483,25 @@ function TextArea(e) {
29483
29483
  },
29484
29484
  [C, i, R, j]
29485
29485
  ), L = useCallback(
29486
- function({ currentTarget: O }) {
29487
- b || (v(!0), k(getCurrentRange(O)), i(getValue(O, u)));
29486
+ function({ currentTarget: N }) {
29487
+ b || (v(!0), k(getCurrentRange(N)), i(getValue(N, u)));
29488
29488
  },
29489
29489
  [b, i, j]
29490
- ), M = useCallback(function({ currentTarget: O }) {
29491
- k(getCurrentRange(O));
29492
- }, []), w = useCallback(function(O) {
29493
- O.key === "Enter" && O.preventDefault();
29490
+ ), M = useCallback(function({ currentTarget: N }) {
29491
+ k(getCurrentRange(N));
29492
+ }, []), w = useCallback(function(N) {
29493
+ N.key === "Enter" && N.preventDefault();
29494
29494
  }, []), B = useCallback(function() {
29495
29495
  S(!0);
29496
29496
  }, []), $ = useCallback(
29497
- ({ currentTarget: O }) => {
29498
- S(!1), v(!0), k(getCurrentRange(O)), i(getValue(O, u));
29497
+ ({ currentTarget: N }) => {
29498
+ S(!1), v(!0), k(getCurrentRange(N)), i(getValue(N, u));
29499
29499
  },
29500
29500
  [i, j]
29501
29501
  ), T = useCallback(
29502
- function(O) {
29503
- O.preventDefault();
29504
- const V = O.clipboardData.getData("text/html") || O.clipboardData.getData("text"), E = sanitizeHTML(V, {
29502
+ function(N) {
29503
+ N.preventDefault();
29504
+ const V = N.clipboardData.getData("text/html") || N.clipboardData.getData("text"), E = sanitizeHTML(V, {
29505
29505
  allowedTags: ["span"],
29506
29506
  allowedAttributes: {
29507
29507
  span: ["data-variable", "contenteditable"]
@@ -29518,10 +29518,10 @@ function TextArea(e) {
29518
29518
  }
29519
29519
  }
29520
29520
  }).replace(/\n/g, " ");
29521
- v(!0), pasteHTML(O.currentTarget, E), k(getCurrentRange(O.currentTarget)), i(getValue(O.currentTarget, u));
29521
+ v(!0), pasteHTML(N.currentTarget, E), k(getCurrentRange(N.currentTarget)), i(getValue(N.currentTarget, u));
29522
29522
  },
29523
29523
  [i, j]
29524
- ), N = e.disabled || f.disabled;
29524
+ ), O = e.disabled || f.disabled;
29525
29525
  return t(
29526
29526
  /* @__PURE__ */ jsxs(
29527
29527
  Space$1.Compact,
@@ -29565,7 +29565,7 @@ function TextArea(e) {
29565
29565
  className: cx(
29566
29566
  n,
29567
29567
  "ant-input",
29568
- { "ant-input-disabled": N },
29568
+ { "ant-input-disabled": O },
29569
29569
  // NOTE: `pre-wrap` here for avoid the `&nbsp;` (\x160) issue when paste content, we need normal space (\x32).
29570
29570
  css`
29571
29571
  min-height: ${D.controlHeight}px;
@@ -29587,7 +29587,7 @@ function TextArea(e) {
29587
29587
  `
29588
29588
  ),
29589
29589
  ref: m,
29590
- contentEditable: !N,
29590
+ contentEditable: !O,
29591
29591
  dangerouslySetInnerHTML: { __html: F }
29592
29592
  }
29593
29593
  ),
@@ -29599,7 +29599,7 @@ function TextArea(e) {
29599
29599
  onInsert: z,
29600
29600
  changeOnSelect: a,
29601
29601
  fieldNames: c || defaultFieldNames$2,
29602
- disabled: N
29602
+ disabled: O
29603
29603
  }
29604
29604
  )
29605
29605
  ]
@@ -33159,10 +33159,10 @@ const tableBlockSettings = new SchemaSettings({
33159
33159
  name: "fieldSettings:component:CascadeSelect",
33160
33160
  items: [fieldComponent$7, titleField$2, ellipsisSettingsItem]
33161
33161
  }), SchemaSettingsDateRange = function e(t) {
33162
- var R, k, D, j, z, L, M, w, B, $, T, N, O, V, E, G;
33163
- const { fieldSchema: n } = t, o = useField(), { dn: r } = useDesignable(), { t: i } = useTranslation(), { getCollectionJoinField: a } = useCollectionManager_deprecated(), { isInSubForm: l, isInSubTable: c } = useFlag() || {}, u = a(n == null ? void 0 : n["x-collection-field"]) || {}, d = ((R = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : R.showTime) || ((D = (k = u == null ? void 0 : u.uiSchema) == null ? void 0 : k["x-component-props"]) == null ? void 0 : D.showTime) || !1, p = ((j = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : j.dateFormat) || ((L = (z = u == null ? void 0 : u.uiSchema) == null ? void 0 : z["x-component-props"]) == null ? void 0 : L.dateFormat) || "YYYY-MM-DD", m = ((M = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : M.timeFormat) || ((B = (w = u == null ? void 0 : u.uiSchema) == null ? void 0 : w["x-component-props"]) == null ? void 0 : B.timeFormat) || "HH:mm:ss", h = (($ = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : $.picker) || ((N = (T = u == null ? void 0 : u.uiSchema) == null ? void 0 : T["x-component-props"]) == null ? void 0 : N.picker) || "date";
33162
+ var R, k, D, j, z, L, M, w, B, $, T, O, N, V, E, G;
33163
+ const { fieldSchema: n } = t, o = useField(), { dn: r } = useDesignable(), { t: i } = useTranslation(), { getCollectionJoinField: a } = useCollectionManager_deprecated(), { isInSubForm: l, isInSubTable: c } = useFlag() || {}, u = a(n == null ? void 0 : n["x-collection-field"]) || {}, d = ((R = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : R.showTime) || ((D = (k = u == null ? void 0 : u.uiSchema) == null ? void 0 : k["x-component-props"]) == null ? void 0 : D.showTime) || !1, p = ((j = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : j.dateFormat) || ((L = (z = u == null ? void 0 : u.uiSchema) == null ? void 0 : z["x-component-props"]) == null ? void 0 : L.dateFormat) || "YYYY-MM-DD", m = ((M = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : M.timeFormat) || ((B = (w = u == null ? void 0 : u.uiSchema) == null ? void 0 : w["x-component-props"]) == null ? void 0 : B.timeFormat) || "HH:mm:ss", h = (($ = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : $.picker) || ((O = (T = u == null ? void 0 : u.uiSchema) == null ? void 0 : T["x-component-props"]) == null ? void 0 : O.picker) || "date";
33164
33164
  n["x-read-pretty"] || o.readOnly || o.readPretty;
33165
- const g = (O = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : O._minDate, f = (V = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : V._maxDate, C = ((E = u == null ? void 0 : u.uiSchema) == null ? void 0 : E["x-component-props"].gmt) || !1, b = ((G = u == null ? void 0 : u.uiSchema) == null ? void 0 : G["x-component-props"].utc) || !1, S = useRecord(), { form: y } = useFormBlockContext(), v = useCallback(
33165
+ const g = (N = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : N._minDate, f = (V = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : V._maxDate, C = ((E = u == null ? void 0 : u.uiSchema) == null ? void 0 : E["x-component-props"].gmt) || !1, b = ((G = u == null ? void 0 : u.uiSchema) == null ? void 0 : G["x-component-props"].utc) || !1, S = useRecord(), { form: y } = useFormBlockContext(), v = useCallback(
33166
33166
  (U) => /* @__PURE__ */ jsx(
33167
33167
  SchemaComponent,
33168
33168
  {
@@ -34798,10 +34798,10 @@ const variablesStore = {}, getFieldPath = (e, t) => {
34798
34798
  dataSource: k,
34799
34799
  collectionName: L
34800
34800
  };
34801
- const T = y[$], N = y.slice(0, $ + 1).join("."), { fieldPath: O } = getFieldPath(N, F), V = r(O, k), E = (B = i(j, k)) == null ? void 0 : B.getPrimaryKey();
34801
+ const T = y[$], O = y.slice(0, $ + 1).join("."), { fieldPath: N } = getFieldPath(O, F), V = r(N, k), E = (B = i(j, k)) == null ? void 0 : B.getPrimaryKey();
34802
34802
  if (Array.isArray(A)) {
34803
34803
  const G = A.map((U) => {
34804
- if (!(S != null && S.doNotRequest) && shouldToRequest(U == null ? void 0 : U[T], U, N) && (U == null ? void 0 : U[E]) != null && V != null && V.target) {
34804
+ if (!(S != null && S.doNotRequest) && shouldToRequest(U == null ? void 0 : U[T], U, O) && (U == null ? void 0 : U[E]) != null && V != null && V.target) {
34805
34805
  const H = `/${j}/${U[V.sourceKey || E]}/${T}:${getAction(V.type)}`;
34806
34806
  if (hasRequested(H))
34807
34807
  return getRequested(H);
@@ -34814,14 +34814,14 @@ const variablesStore = {}, getFieldPath = (e, t) => {
34814
34814
  }).then((Y) => {
34815
34815
  clearRequested(H);
34816
34816
  const J = Y.data.data;
34817
- return cacheLazyLoadedValues(U, N, J), J;
34817
+ return cacheLazyLoadedValues(U, O, J), J;
34818
34818
  });
34819
34819
  return stashRequested(H, K), K;
34820
34820
  }
34821
- return getCachedLazyLoadedValues(U, N) || (U == null ? void 0 : U[T]);
34821
+ return getCachedLazyLoadedValues(U, O) || (U == null ? void 0 : U[T]);
34822
34822
  });
34823
34823
  A = removeThroughCollectionFields(_.flatten(yield Promise.all(G)), V);
34824
- } else if (!(S != null && S.doNotRequest) && shouldToRequest(A[T], A, N) && A[E] != null && (V != null && V.target)) {
34824
+ } else if (!(S != null && S.doNotRequest) && shouldToRequest(A[T], A, O) && A[E] != null && (V != null && V.target)) {
34825
34825
  const G = `/${j}/${A[V.sourceKey || E]}/${T}:${getAction(V.type)}`;
34826
34826
  let U = null;
34827
34827
  if (hasRequested(G))
@@ -34837,10 +34837,10 @@ const variablesStore = {}, getFieldPath = (e, t) => {
34837
34837
  stashRequested(G, K), U = yield K, clearRequested(G);
34838
34838
  }
34839
34839
  const H = U.data.data;
34840
- getCachedLazyLoadedValues(A, N) || cacheLazyLoadedValues(A, N, H), A = removeThroughCollectionFields(H, V);
34840
+ getCachedLazyLoadedValues(A, O) || cacheLazyLoadedValues(A, O, H), A = removeThroughCollectionFields(H, V);
34841
34841
  } else
34842
34842
  A = removeThroughCollectionFields(
34843
- getCachedLazyLoadedValues(A, N) || getValuesByPath(A, T),
34843
+ getCachedLazyLoadedValues(A, O) || getValuesByPath(A, T),
34844
34844
  V
34845
34845
  );
34846
34846
  V != null && V.target && (j = V.target);
@@ -35206,7 +35206,7 @@ function addAppVersion(e, t) {
35206
35206
  addAppVersion((o = e.properties) == null ? void 0 : o[n], t);
35207
35207
  }), e;
35208
35208
  }
35209
- const name = "@nocobase/client", version = "1.5.17", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
35209
+ const name = "@nocobase/client", version = "1.5.19", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
35210
35210
  "@ahooksjs/use-url-state": "3.5.1",
35211
35211
  "@ant-design/cssinjs": "^1.11.1",
35212
35212
  "@ant-design/icons": "^5.1.4",
@@ -35228,9 +35228,9 @@ const name = "@nocobase/client", version = "1.5.17", license = "AGPL-3.0", main
35228
35228
  "@formily/reactive-react": "^2.2.27",
35229
35229
  "@formily/shared": "^2.2.27",
35230
35230
  "@formily/validator": "^2.2.27",
35231
- "@nocobase/evaluators": "1.5.17",
35232
- "@nocobase/sdk": "1.5.17",
35233
- "@nocobase/utils": "1.5.17",
35231
+ "@nocobase/evaluators": "1.5.19",
35232
+ "@nocobase/sdk": "1.5.19",
35233
+ "@nocobase/utils": "1.5.19",
35234
35234
  ahooks: "^3.7.2",
35235
35235
  antd: "5.12.8",
35236
35236
  "antd-style": "3.7.1",
@@ -36579,7 +36579,7 @@ const getValues = (e, t) => castArray(e).filter((n) => n != null).map((n) => typ
36579
36579
  }
36580
36580
  },
36581
36581
  [M == null ? void 0 : M.uiSchema, t]
36582
- ), { data: T, run: N, loading: O } = useRequest(
36582
+ ), { data: T, run: O, loading: N } = useRequest(
36583
36583
  P(x({
36584
36584
  action: "list"
36585
36585
  }, n), {
@@ -36610,11 +36610,11 @@ const getValues = (e, t) => castArray(e).filter((n) => n != null).map((n) => typ
36610
36610
  }
36611
36611
  ) : null, [k.current]);
36612
36612
  useEffect(() => {
36613
- v.current && N();
36613
+ v.current && O();
36614
36614
  }, [V]);
36615
36615
  const G = (X) => q(void 0, null, function* () {
36616
36616
  var Q;
36617
- N({
36617
+ O({
36618
36618
  filter: mergeFilter([
36619
36619
  X ? {
36620
36620
  [t.label]: {
@@ -36643,13 +36643,13 @@ const getValues = (e, t) => castArray(e).filter((n) => n != null).map((n) => typ
36643
36643
  fieldNames: t,
36644
36644
  onSearch: G,
36645
36645
  onDropdownVisibleChange: (X) => {
36646
- y(X), k.current = null, X && N(), v.current = !0;
36646
+ y(X), k.current = null, X && O(), v.current = !0;
36647
36647
  },
36648
36648
  objectValue: a,
36649
36649
  value: r,
36650
36650
  defaultValue: i
36651
36651
  }, f), {
36652
- loading: T ? O : !0,
36652
+ loading: T ? N : !0,
36653
36653
  options: h($(U)),
36654
36654
  rawOptions: U,
36655
36655
  dropdownRender: (X) => {
@@ -38065,14 +38065,14 @@ const AppendsTreeSelect = (e) => {
38065
38065
  const B = w.split(".");
38066
38066
  let $ = m[B[0]];
38067
38067
  for (let T = 1; T < B.length && $; T++) {
38068
- const N = B.slice(0, T + 1).join(".");
38069
- if (m[N]) {
38070
- $ = m[N];
38068
+ const O = B.slice(0, T + 1).join(".");
38069
+ if (m[O]) {
38070
+ $ = m[O];
38071
38071
  break;
38072
38072
  }
38073
38073
  if (!$.isLeaf && $.loadChildren) {
38074
- const O = $.loadChildren($);
38075
- O != null && O.length && (M.push(...O), $ = O.find((V) => V.value === B.slice(0, T + 1).join(".")));
38074
+ const N = $.loadChildren($);
38075
+ N != null && N.length && (M.push(...N), $ = N.find((V) => V.value === B.slice(0, T + 1).join(".")));
38076
38076
  }
38077
38077
  }
38078
38078
  }), h((w) => M.reduce((B, $) => Object.assign(B, { [$.value]: $ }), x({}, w)));
@@ -38093,19 +38093,19 @@ const AppendsTreeSelect = (e) => {
38093
38093
  M.forEach(($) => {
38094
38094
  const T = $.split(".");
38095
38095
  if (T.length)
38096
- for (let N = 1; N <= T.length; N++)
38097
- w.add(T.slice(0, N).join("."));
38096
+ for (let O = 1; O <= T.length; O++)
38097
+ w.add(T.slice(0, O).join("."));
38098
38098
  });
38099
38099
  o(Array.from(w));
38100
38100
  },
38101
38101
  [e.multiple, F, o, m]
38102
38102
  ), k = useCallback(
38103
38103
  (L) => {
38104
- var N;
38104
+ var O;
38105
38105
  const { value: M, onClose: w, disabled: B, closable: $ } = L;
38106
38106
  if (!M)
38107
38107
  return null;
38108
- const { fullTitle: T } = (N = m[M]) != null ? N : {};
38108
+ const { fullTitle: T } = (O = m[M]) != null ? O : {};
38109
38109
  return /* @__PURE__ */ jsx(Tag, { closable: $ && !B, onClose: w, children: T == null ? void 0 : T.join(" / ") });
38110
38110
  },
38111
38111
  [m]
@@ -39211,18 +39211,18 @@ const InternalFileManager = (e) => {
39211
39211
  (M) => {
39212
39212
  try {
39213
39213
  return M == null ? void 0 : M.filter((w) => ["number", "string"].includes(typeof w[y.value])).map((w) => {
39214
- var $, T, N;
39214
+ var $, T, O;
39215
39215
  let B = p(w[y.label]);
39216
39216
  if (($ = v == null ? void 0 : v.uiSchema) != null && $.enum)
39217
39217
  if (Array.isArray(B))
39218
- B = B.map((O, V) => {
39218
+ B = B.map((N, V) => {
39219
39219
  var G, U;
39220
- const E = (U = (G = v.uiSchema.enum).find) == null ? void 0 : U.call(G, (H) => H.value === O);
39221
- return E ? /* @__PURE__ */ jsx(Tag, { color: E.color, style: { marginRight: 3 }, children: (E == null ? void 0 : E.label) || O }, V) : /* @__PURE__ */ jsx(Tag, { children: O }, O);
39220
+ const E = (U = (G = v.uiSchema.enum).find) == null ? void 0 : U.call(G, (H) => H.value === N);
39221
+ return E ? /* @__PURE__ */ jsx(Tag, { color: E.color, style: { marginRight: 3 }, children: (E == null ? void 0 : E.label) || N }, V) : /* @__PURE__ */ jsx(Tag, { children: N }, N);
39222
39222
  }).reverse();
39223
39223
  else {
39224
- const O = (N = (T = v.uiSchema.enum).find) == null ? void 0 : N.call(T, (V) => V.value === B);
39225
- O && (B = /* @__PURE__ */ jsx(Tag, { color: O.color, children: O.label }));
39224
+ const N = (O = (T = v.uiSchema.enum).find) == null ? void 0 : O.call(T, (V) => V.value === B);
39225
+ N && (B = /* @__PURE__ */ jsx(Tag, { color: N.color, children: N.label }));
39226
39226
  }
39227
39227
  return (v == null ? void 0 : v.type) === "date" && (B = dayjs(B).format("YYYY-MM-DD")), n ? n({
39228
39228
  [y.label]: B || EMPTY,
@@ -39249,19 +39249,19 @@ const InternalFileManager = (e) => {
39249
39249
  }), D = (M, w, B) => q(void 0, null, function* () {
39250
39250
  const $ = yield k({ parentId: w == null ? void 0 : w.id }), T = [...i];
39251
39251
  if (T.splice(B + 1), T[B] = P(x({}, T[B]), { value: w }), w != null && w.id && (T[B + 1] = { key: w == null ? void 0 : w.id, children: ($ == null ? void 0 : $.length) > 0 ? $ : null }), a(T), ["o2m", "m2m"].includes(g.interface)) {
39252
- const N = Array.isArray(f.fieldValue) ? f.fieldValue : [];
39253
- N[A.index] = w, f.fieldValue = N;
39252
+ const O = Array.isArray(f.fieldValue) ? f.fieldValue : [];
39253
+ O[A.index] = w, f.fieldValue = O;
39254
39254
  } else
39255
39255
  f.value = w;
39256
39256
  o == null || o(T);
39257
39257
  }), j = (M, w, B) => q(void 0, null, function* () {
39258
- var $, T, N;
39258
+ var $, T, O;
39259
39259
  if (M) {
39260
39260
  d(!0);
39261
- const O = yield k({ parentId: w == null ? void 0 : w.key });
39262
- if (d(!1), c(O), B === (i == null ? void 0 : i.length) - 1 && (($ = w == null ? void 0 : w.value) != null && $.id)) {
39261
+ const N = yield k({ parentId: w == null ? void 0 : w.key });
39262
+ if (d(!1), c(N), B === (i == null ? void 0 : i.length) - 1 && (($ = w == null ? void 0 : w.value) != null && $.id)) {
39263
39263
  const V = yield k({ parentId: (T = w == null ? void 0 : w.value) == null ? void 0 : T.id }), E = [...i];
39264
- E.splice(B + 1), E[B] = P(x({}, E[B]), { value: w == null ? void 0 : w.value }), E[B + 1] = { key: (N = w == null ? void 0 : w.value) == null ? void 0 : N.id, children: (V == null ? void 0 : V.length) > 0 ? V : null }, a(E), o == null || o(E);
39264
+ E.splice(B + 1), E[B] = P(x({}, E[B]), { value: w == null ? void 0 : w.value }), E[B + 1] = { key: (O = w == null ? void 0 : w.value) == null ? void 0 : O.id, children: (V == null ? void 0 : V.length) > 0 ? V : null }, a(E), o == null || o(E);
39265
39265
  }
39266
39266
  }
39267
39267
  }), z = (M, w) => q(void 0, null, function* () {
@@ -39292,12 +39292,12 @@ const InternalFileManager = (e) => {
39292
39292
  value: ($ = M == null ? void 0 : M.value) == null ? void 0 : $[y.value]
39293
39293
  },
39294
39294
  labelInValue: !0,
39295
- onSearch: (N) => z(N, M),
39295
+ onSearch: (O) => z(O, M),
39296
39296
  fieldNames: y,
39297
39297
  style: { minWidth: 150 },
39298
- onChange: (N, O) => D(N, O, w),
39298
+ onChange: (O, N) => D(O, N, w),
39299
39299
  options: u ? [] : R(l),
39300
- onDropdownVisibleChange: (N) => j(N, M, w),
39300
+ onDropdownVisibleChange: (O) => j(O, M, w),
39301
39301
  notFoundContent: u ? /* @__PURE__ */ jsx(Spin, { size: "small" }) : null
39302
39302
  },
39303
39303
  `${(T = M.value) == null ? void 0 : T.id}+ ${M.key} + ${y.label}`
@@ -39538,13 +39538,13 @@ const InternalNesterCardCss = css`
39538
39538
  const w = (f == null ? void 0 : f.targetKey) || "id", B = R.map((T) => T[w]).filter(Boolean);
39539
39539
  return B.length ? { $and: [{ [`${w}.$ne`]: B }] } : {};
39540
39540
  }, z = () => {
39541
- const { setVisible: w } = useActionContext(), { multiple: B, selectedRows: $, onChange: T, options: N, collectionField: O } = useContext(RecordPickerContext);
39541
+ const { setVisible: w } = useActionContext(), { multiple: B, selectedRows: $, onChange: T, options: O, collectionField: N } = useContext(RecordPickerContext);
39542
39542
  return {
39543
39543
  onClick() {
39544
- T(B ? unionBy($, N, (O == null ? void 0 : O.targetKey) || "id") : ($ == null ? void 0 : $[0]) || null), w(!1);
39544
+ T(B ? unionBy($, O, (N == null ? void 0 : N.targetKey) || "id") : ($ == null ? void 0 : $[0]) || null), w(!1);
39545
39545
  },
39546
39546
  style: {
39547
- display: B !== !1 && ["o2m", "m2m", "mbm"].includes(O == null ? void 0 : O.interface) ? "block" : "none"
39547
+ display: B !== !1 && ["o2m", "m2m", "mbm"].includes(N == null ? void 0 : N.interface) ? "block" : "none"
39548
39548
  }
39549
39549
  };
39550
39550
  };
@@ -39754,7 +39754,15 @@ const getSourceData = (e, t) => {
39754
39754
  F,
39755
39755
  h && (y() ? (
39756
39756
  // The recordData here is only provided when the popup is opened, not the current row record
39757
- /* @__PURE__ */ jsx(VariablePopupRecordProvider, { children: /* @__PURE__ */ jsx(WithoutTableFieldResource.Provider, { value: !0, children: /* @__PURE__ */ jsx(NocoBaseRecursionField, { schema: o, onlyRenderProperties: !0, basePath: l.address }) }) })
39757
+ /* @__PURE__ */ jsx(VariablePopupRecordProvider, { children: /* @__PURE__ */ jsx(WithoutTableFieldResource.Provider, { value: !0, children: /* @__PURE__ */ jsx(
39758
+ NocoBaseRecursionField,
39759
+ {
39760
+ schema: o,
39761
+ onlyRenderProperties: !0,
39762
+ basePath: l.address,
39763
+ filterProperties: (k) => k["x-component"] !== "Action"
39764
+ }
39765
+ ) }) })
39758
39766
  ) : /* @__PURE__ */ jsx(CollectionRecordProvider, { isNew: !1, record: b, parentRecord: C, children: /* @__PURE__ */ jsx(VariablePopupRecordProvider, { children: /* @__PURE__ */ jsx(WithoutTableFieldResource.Provider, { value: !0, children: /* @__PURE__ */ jsx(NocoBaseRecursionField, { schema: o, onlyRenderProperties: !0, basePath: l.address }) }) }) }))
39759
39767
  ] }) });
39760
39768
  }, InternalPopoverNesterContentCss = css`
@@ -40833,7 +40841,7 @@ const Table$1 = withDynamicSchemaProps(
40833
40841
  "loading",
40834
40842
  "onClickRow"
40835
40843
  ]), S = useArrayField(b), y = useFieldSchema(), { size: v = "small" } = (y == null ? void 0 : y["x-component-props"]) || {}, F = useCollection(), R = ((ce = y == null ? void 0 : y.parent) == null ? void 0 : ce["x-decorator"]) === "TableSelectorProvider" ? useTableSelectorContext() : useTableBlockContext(), { expandFlag: k, allIncludesChildren: D } = R, j = useMemoizedFn(b.onRowDragEnd || (() => {
40836
- })), z = usePaginationProps$2(n, i), L = useTableColumns$1(b, z), [M, w] = useState(() => k ? D : []), [B, $] = useState(((Ce = S == null ? void 0 : S.data) == null ? void 0 : Ce.selectedRowKeys) || []), [T, N] = useState([]), O = (p == null ? void 0 : p.type) !== "none", V = useRef(/* @__PURE__ */ new Map()), E = useMemo(() => css`
40844
+ })), z = usePaginationProps$2(n, i), L = useTableColumns$1(b, z), [M, w] = useState(() => k ? D : []), [B, $] = useState(((Ce = S == null ? void 0 : S.data) == null ? void 0 : Ce.selectedRowKeys) || []), [T, O] = useState([]), N = (p == null ? void 0 : p.type) !== "none", V = useRef(/* @__PURE__ */ new Map()), E = useMemo(() => css`
40837
40845
  & > td {
40838
40846
  background-color: ${t.controlItemBgActive} !important;
40839
40847
  }
@@ -40842,7 +40850,7 @@ const Table$1 = withDynamicSchemaProps(
40842
40850
  }
40843
40851
  `, [t.controlItemBgActive, t.controlItemBgActiveHover]), G = useMemo(() => C ? E : "", [E, C]), U = useMemo(() => C ? (ee, ne) => ({
40844
40852
  onClick: (se) => {
40845
- isPortalInBody(se.target) || C(ee, N, T);
40853
+ isPortalInBody(se.target) || C(ee, O, T);
40846
40854
  },
40847
40855
  rowIndex: ne
40848
40856
  }) : null, [C, T]);
@@ -40914,14 +40922,14 @@ const Table$1 = withDynamicSchemaProps(
40914
40922
  role: "button",
40915
40923
  "aria-label": `table-index-${se}`,
40916
40924
  className: cls(ee ? "checked" : floatLeftClass, rowSelectCheckboxWrapperClass, {
40917
- [rowSelectCheckboxWrapperClassHover]: O
40925
+ [rowSelectCheckboxWrapperClassHover]: N
40918
40926
  }),
40919
40927
  children: [
40920
40928
  /* @__PURE__ */ jsxs("div", { className: cls(ee ? "checked" : null, rowSelectCheckboxContentClass), children: [
40921
40929
  l && /* @__PURE__ */ jsx(SortHandle$1, { id: K(ne) }),
40922
40930
  c && /* @__PURE__ */ jsx(TableIndex$2, { index: se })
40923
40931
  ] }),
40924
- O && /* @__PURE__ */ jsx(
40932
+ N && /* @__PURE__ */ jsx(
40925
40933
  "div",
40926
40934
  {
40927
40935
  className: cls(
@@ -40946,7 +40954,7 @@ const Table$1 = withDynamicSchemaProps(
40946
40954
  l,
40947
40955
  S,
40948
40956
  K,
40949
- O,
40957
+ N,
40950
40958
  Q,
40951
40959
  z
40952
40960
  ]
@@ -41047,15 +41055,15 @@ const Table$1 = withDynamicSchemaProps(
41047
41055
  }
41048
41056
  `, SubTable = observer$1(
41049
41057
  (e) => {
41050
- var B, $, T, N;
41058
+ var B, $, T, O;
41051
41059
  const { openSize: t } = e, { field: n, options: o, fieldSchema: r } = useAssociationFieldContext(), { t: i } = useTranslation(), [a, l] = useState(!1), [c, u] = useState([]), d = useFieldNames$1(e), p = useFieldSchema(), m = useCompile(), h = useLabelUiSchema$1(o, (d == null ? void 0 : d.label) || "label"), g = useCollectionRecord(), f = useCollection(), { allowSelectExistingRecord: C, allowAddnew: b, allowDisassociation: S } = n.componentProps;
41052
41060
  useSubTableSpecialCase({ rootField: n, rootSchema: r });
41053
- const y = (O, V) => {
41054
- if (V !== void 0 && isArr(n.value) && O !== V)
41061
+ const y = (N, V) => {
41062
+ if (V !== void 0 && isArr(n.value) && N !== V)
41055
41063
  return action(() => {
41056
- const E = n.value[O];
41057
- return n.value.splice(O, 1), n.value.splice(V, 0, E), exchangeArrayState(n, {
41058
- fromIndex: O,
41064
+ const E = n.value[N];
41065
+ return n.value.splice(N, 1), n.value.splice(V, 0, E), exchangeArrayState(n, {
41066
+ fromIndex: N,
41059
41067
  toIndex: V
41060
41068
  }), n.onInput(n.value);
41061
41069
  });
@@ -41079,28 +41087,28 @@ const Table$1 = withDynamicSchemaProps(
41079
41087
  setSelectedRows: u,
41080
41088
  collectionField: o
41081
41089
  }, A = () => {
41082
- const { setVisible: O } = useActionContext(), { selectedRows: V, setSelectedRows: E } = useContext(RecordPickerContext);
41090
+ const { setVisible: N } = useActionContext(), { selectedRows: V, setSelectedRows: E } = useContext(RecordPickerContext);
41083
41091
  return {
41084
41092
  onClick() {
41085
41093
  var U;
41086
- Array.isArray(n.value) || (n.value = []), V.forEach((H) => n.value.push(markRecordAsNew(H))), n.onInput(n.value), n.initialValue = n.value, E([]), O(!1);
41094
+ Array.isArray(n.value) || (n.value = []), V.forEach((H) => n.value.push(markRecordAsNew(H))), n.onInput(n.value), n.initialValue = n.value, E([]), N(!1);
41087
41095
  const G = Math.ceil(n.value.length / (((U = n.componentProps) == null ? void 0 : U.pageSize) || 10));
41088
41096
  D(G);
41089
41097
  }
41090
41098
  };
41091
41099
  }, R = () => {
41092
- const O = (o == null ? void 0 : o.targetKey) || "id", V = (n.value || []).map((G) => G == null ? void 0 : G[O]).filter(Boolean);
41093
- return V.length ? { $and: [{ [`${O}.$ne`]: V }] } : {};
41100
+ const N = (o == null ? void 0 : o.targetKey) || "id", V = (n.value || []).map((G) => G == null ? void 0 : G[N]).filter(Boolean);
41101
+ return V.length ? { $and: [{ [`${N}.$ne`]: V }] } : {};
41094
41102
  }, [k, D] = useState(1), [j, z] = useState(((B = n.componentProps) == null ? void 0 : B.pageSize) || 10);
41095
41103
  useEffect(() => {
41096
- var O;
41097
- z((O = n.componentProps) == null ? void 0 : O.pageSize);
41104
+ var N;
41105
+ z((N = n.componentProps) == null ? void 0 : N.pageSize);
41098
41106
  }, [($ = n.componentProps) == null ? void 0 : $.pageSize]);
41099
41107
  const L = useMemo(() => {
41100
41108
  var V;
41101
- const O = Math.ceil(((V = n.value) == null ? void 0 : V.length) / 10);
41109
+ const N = Math.ceil(((V = n.value) == null ? void 0 : V.length) / 10);
41102
41110
  return {
41103
- current: k > O ? O : k,
41111
+ current: k > N ? N : k,
41104
41112
  pageSize: j || 10,
41105
41113
  total: n == null ? void 0 : n.value,
41106
41114
  onChange: (E, G) => {
@@ -41111,13 +41119,13 @@ const Table$1 = withDynamicSchemaProps(
41111
41119
  hideOnSinglePage: !1
41112
41120
  };
41113
41121
  }, [(T = n.value) == null ? void 0 : T.length, j, k]), M = () => {
41114
- const { field: O } = useAssociationFieldContext();
41122
+ const { field: N } = useAssociationFieldContext();
41115
41123
  return {
41116
41124
  run() {
41117
41125
  var E;
41118
- O.value = O.value || [], O.value.push(markRecordAsNew({}));
41119
- const V = Math.ceil(O.value.length / (((E = O.componentProps) == null ? void 0 : E.pageSize) || 10));
41120
- return D(V), O.onInput(O.value);
41126
+ N.value = N.value || [], N.value.push(markRecordAsNew({}));
41127
+ const V = Math.ceil(N.value.length / (((E = N.componentProps) == null ? void 0 : E.pageSize) || 10));
41128
+ return D(V), N.onInput(N.value);
41121
41129
  }
41122
41130
  };
41123
41131
  }, w = () => ({
@@ -41135,7 +41143,7 @@ const Table$1 = withDynamicSchemaProps(
41135
41143
  field: n,
41136
41144
  showIndex: !0,
41137
41145
  dragSort: !1,
41138
- showDel: n.editable && (b !== !1 || C !== !1 || S !== !1) ? (O) => n.editable ? S !== !1 ? !0 : O == null ? void 0 : O.__isNewRecord__ : !1 : !1,
41146
+ showDel: n.editable && (b !== !1 || C !== !1 || S !== !1) ? (N) => n.editable ? S !== !1 ? !0 : N == null ? void 0 : N.__isNewRecord__ : !1 : !1,
41139
41147
  pagination: L,
41140
41148
  rowSelection: { type: "none", hideSelectAll: !0 },
41141
41149
  isSubTable: !0,
@@ -41152,7 +41160,7 @@ const Table$1 = withDynamicSchemaProps(
41152
41160
  {
41153
41161
  style: {
41154
41162
  marginTop: "10px",
41155
- position: (N = n.value) != null && N.length ? "absolute" : "relative",
41163
+ position: (O = n.value) != null && O.length ? "absolute" : "relative",
41156
41164
  bottom: "0",
41157
41165
  gap: 15
41158
41166
  },
@@ -41206,7 +41214,7 @@ const Table$1 = withDynamicSchemaProps(
41206
41214
  onlyRenderProperties: !0,
41207
41215
  basePath: n.address,
41208
41216
  schema: p.parent,
41209
- filterProperties: (O) => O["x-component"] === "AssociationField.Selector"
41217
+ filterProperties: (N) => N["x-component"] === "AssociationField.Selector"
41210
41218
  }
41211
41219
  )
41212
41220
  }
@@ -41305,10 +41313,10 @@ const ReadPretty$7 = observer$1(
41305
41313
  InternalAssociationSelect.displayName = "InternalAssociationSelect";
41306
41314
  const AssociationSelect = InternalAssociationSelect;
41307
41315
  AssociationSelect.Designer = function e() {
41308
- var B, $, T, N, O, V, E, G, U, H, K;
41316
+ var B, $, T, O, N, V, E, G, U, H, K;
41309
41317
  const { getCollectionFields: t, getInterface: n, getCollectionJoinField: o, getCollection: r, isTitleField: i } = useCollectionManager_deprecated(), { getField: a } = useCollection_deprecated(), { form: l } = useFormBlockContext(), c = useField(), u = useFieldSchema(), { t: d } = useTranslation(), p = useFilterByTk(), { dn: m, refresh: h, insertAdjacent: g } = useDesignable(), f = useCompile(), C = useIsShowMultipleSwitch(), { isAllowToSetDefaultValue: b } = useIsAllowToSetDefaultValue(), S = a(u.name) || o(u["x-collection-field"]), y = useFieldComponentOptions(), v = c.address.segments.includes("__form_grid"), F = n(S == null ? void 0 : S.interface), A = (B = F == null ? void 0 : F.validateSchema) == null ? void 0 : B.call(F, u), R = ($ = S == null ? void 0 : S.uiSchema) == null ? void 0 : $.title, k = S != null && S.target ? t(S == null ? void 0 : S.target) : [];
41310
41318
  c.title === R || c.title;
41311
- const D = useSortFields(S == null ? void 0 : S.target), j = ((O = (N = (T = c.componentProps) == null ? void 0 : T.service) == null ? void 0 : N.params) == null ? void 0 : O.sort) || [];
41319
+ const D = useSortFields(S == null ? void 0 : S.target), j = ((N = (O = (T = c.componentProps) == null ? void 0 : T.service) == null ? void 0 : O.params) == null ? void 0 : N.sort) || [];
41312
41320
  useEffect(() => {
41313
41321
  c.readPretty !== u["x-read-pretty"] && (c.readPretty = !!u["x-read-pretty"]);
41314
41322
  }, [u["x-read-pretty"]]);
@@ -41815,15 +41823,15 @@ AssociationSelect.FilterDesigner = function e() {
41815
41823
  const T = [];
41816
41824
  for (const E of $.rules)
41817
41825
  T.push(_.pickBy(E, _.identity));
41818
- const N = {
41826
+ const O = {
41819
41827
  "x-uid": l["x-uid"]
41820
41828
  };
41821
41829
  if (["percent"].includes(m == null ? void 0 : m.interface))
41822
41830
  for (const E of T)
41823
41831
  (E.maxValue || E.minValue) && (E.percentMode = !0), E.percentFormat && (E.percentFormats = !0);
41824
- const O = _.concat([], ((V = m == null ? void 0 : m.uiSchema) == null ? void 0 : V["x-validator"]) || [], T);
41825
- a.validator = O, l["x-validator"] = T, N["x-validator"] = T, u.emit("patch", {
41826
- schema: N
41832
+ const N = _.concat([], ((V = m == null ? void 0 : m.uiSchema) == null ? void 0 : V["x-validator"]) || [], T);
41833
+ a.validator = N, l["x-validator"] = T, O["x-validator"] = T, u.emit("patch", {
41834
+ schema: O
41827
41835
  }), d();
41828
41836
  }
41829
41837
  }
@@ -41946,7 +41954,7 @@ AssociationSelect.FilterDesigner = function e() {
41946
41954
  }
41947
41955
  },
41948
41956
  onSubmit: ({ sort: $ }) => {
41949
- const T = $.map((N) => N.direction === "desc" ? `-${N.field}` : N.field);
41957
+ const T = $.map((O) => O.direction === "desc" ? `-${O.field}` : O.field);
41950
41958
  _.set(a.componentProps, "service.params.sort", T), l["x-component-props"] = a.componentProps, u.emit("patch", {
41951
41959
  schema: {
41952
41960
  "x-uid": l["x-uid"],
@@ -41963,13 +41971,13 @@ AssociationSelect.FilterDesigner = function e() {
41963
41971
  options: v,
41964
41972
  value: (B = (w = a == null ? void 0 : a.componentProps) == null ? void 0 : w.fieldNames) == null ? void 0 : B.label,
41965
41973
  onChange: ($) => {
41966
- var O, V;
41974
+ var N, V;
41967
41975
  const T = {
41968
41976
  "x-uid": l["x-uid"]
41969
- }, N = P(x(x({}, (V = (O = m == null ? void 0 : m.uiSchema) == null ? void 0 : O["x-component-props"]) == null ? void 0 : V.fieldNames), a.componentProps.fieldNames), {
41977
+ }, O = P(x(x({}, (V = (N = m == null ? void 0 : m.uiSchema) == null ? void 0 : N["x-component-props"]) == null ? void 0 : V.fieldNames), a.componentProps.fieldNames), {
41970
41978
  label: $
41971
41979
  });
41972
- a.componentProps.fieldNames = N, l["x-component-props"] = l["x-component-props"] || {}, l["x-component-props"].fieldNames = N, T["x-component-props"] = l["x-component-props"], u.emit("patch", {
41980
+ a.componentProps.fieldNames = O, l["x-component-props"] = l["x-component-props"] || {}, l["x-component-props"].fieldNames = O, T["x-component-props"] = l["x-component-props"], u.emit("patch", {
41973
41981
  schema: T
41974
41982
  }), u.refresh();
41975
41983
  }
@@ -43541,7 +43549,7 @@ const InternalListBlockProvider = (e) => {
43541
43549
  display: none !important;
43542
43550
  }
43543
43551
  `,
43544
- itemRender: ($, T, N) => T === "prev" ? /* @__PURE__ */ jsxs(
43552
+ itemRender: ($, T, O) => T === "prev" ? /* @__PURE__ */ jsxs(
43545
43553
  "div",
43546
43554
  {
43547
43555
  style: { display: "flex" },
@@ -43551,12 +43559,12 @@ const InternalListBlockProvider = (e) => {
43551
43559
  }
43552
43560
  `,
43553
43561
  children: [
43554
- N,
43562
+ O,
43555
43563
  " ",
43556
43564
  /* @__PURE__ */ jsx("div", { style: { marginLeft: "7px" }, children: d })
43557
43565
  ]
43558
43566
  }
43559
- ) : N
43567
+ ) : O
43560
43568
  };
43561
43569
  })();
43562
43570
  return h(
@@ -46656,18 +46664,18 @@ const TableActionColumnDesigner = (e) => {
46656
46664
  "sort-field"
46657
46665
  );
46658
46666
  }, TableBlockDesigner = () => {
46659
- var k, D, j, z, L, M, w, B, $, T, N;
46660
- const { name: e, title: t } = useCollection_deprecated(), { getCollectionField: n, getCollection: o } = 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 = (k = i == null ? void 0 : i["x-decorator-props"]) == null ? void 0 : k.params) == null ? void 0 : D.sort) || [], h = ((j = i == null ? void 0 : i["x-decorator-props"]) == null ? void 0 : j.resource) || ((z = i == null ? void 0 : i["x-decorator-props"]) == null ? void 0 : z.association), g = !((L = i == null ? void 0 : i["x-decorator-props"]) != null && L.disableTemplate), f = m == null ? void 0 : m.map((O) => O != null && O.startsWith("-") ? {
46661
- field: O.substring(1),
46667
+ var k, D, j, z, L, M, w, B, $, T, O;
46668
+ const { name: e, title: t } = useCollection_deprecated(), { getCollectionField: n, getCollection: o } = 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 = (k = i == null ? void 0 : i["x-decorator-props"]) == null ? void 0 : k.params) == null ? void 0 : D.sort) || [], h = ((j = i == null ? void 0 : i["x-decorator-props"]) == null ? void 0 : j.resource) || ((z = i == null ? void 0 : i["x-decorator-props"]) == null ? void 0 : z.association), g = !((L = i == null ? void 0 : i["x-decorator-props"]) != null && L.disableTemplate), f = m == null ? void 0 : m.map((N) => N != null && N.startsWith("-") ? {
46669
+ field: N.substring(1),
46662
46670
  direction: "desc"
46663
46671
  } : {
46664
- field: O,
46672
+ field: N,
46665
46673
  direction: "asc"
46666
46674
  }), C = useSchemaTemplate(), b = useCollection_deprecated(), { dragSort: S, resource: y } = r.decoratorProps, v = y && n(y), F = y != null && y.includes(".") ? (M = o(v == null ? void 0 : v.target)) == null ? void 0 : M.tree : !!(b != null && b.tree), A = useCallback(
46667
- ({ filter: O }) => {
46668
- O = removeNullCondition(O);
46675
+ ({ filter: N }) => {
46676
+ N = removeNullCondition(N);
46669
46677
  const V = r.decoratorProps.params || {};
46670
- V.filter = O, r.decoratorProps.params = V, i["x-decorator-props"].params = V, d.emit("patch", {
46678
+ V.filter = N, r.decoratorProps.params = V, i["x-decorator-props"].params = V, d.emit("patch", {
46671
46679
  schema: {
46672
46680
  "x-uid": i["x-uid"],
46673
46681
  "x-decorator-props": i["x-decorator-props"]
@@ -46685,11 +46693,11 @@ const TableActionColumnDesigner = (e) => {
46685
46693
  title: u("Tree table"),
46686
46694
  defaultChecked: !0,
46687
46695
  checked: F ? r.decoratorProps.treeTable : !1,
46688
- onChange: (O) => {
46696
+ onChange: (N) => {
46689
46697
  var E;
46690
- r.decoratorProps.treeTable = O, i["x-decorator-props"].treeTable = O;
46698
+ r.decoratorProps.treeTable = N, i["x-decorator-props"].treeTable = N;
46691
46699
  const V = P(x({}, (E = c.params) == null ? void 0 : E[0]), {
46692
- tree: O ? !0 : null
46700
+ tree: N ? !0 : null
46693
46701
  });
46694
46702
  d.emit("patch", {
46695
46703
  schema: i
@@ -46702,13 +46710,13 @@ const TableActionColumnDesigner = (e) => {
46702
46710
  {
46703
46711
  title: u("Enable drag and drop sorting"),
46704
46712
  checked: r.decoratorProps.dragSort,
46705
- onChange: (O) => q(void 0, null, function* () {
46706
- O && v && (yield R.resource("collections.fields", v.collectionName).update({
46713
+ onChange: (N) => q(void 0, null, function* () {
46714
+ N && v && (yield R.resource("collections.fields", v.collectionName).update({
46707
46715
  filterByTk: v.name,
46708
46716
  values: {
46709
46717
  sortable: !0
46710
46718
  }
46711
- })), r.decoratorProps.dragSort = O, i["x-decorator-props"].dragSort = O, d.emit("patch", {
46719
+ })), r.decoratorProps.dragSort = N, i["x-decorator-props"].dragSort = N, d.emit("patch", {
46712
46720
  schema: {
46713
46721
  "x-uid": i["x-uid"],
46714
46722
  "x-decorator-props": i["x-decorator-props"]
@@ -46802,9 +46810,9 @@ const TableActionColumnDesigner = (e) => {
46802
46810
  }
46803
46811
  }
46804
46812
  },
46805
- onSubmit: ({ sort: O }) => {
46813
+ onSubmit: ({ sort: N }) => {
46806
46814
  var G;
46807
- const V = O.map((U) => U.direction === "desc" ? `-${U.field}` : U.field), E = r.decoratorProps.params || {};
46815
+ const V = N.map((U) => U.direction === "desc" ? `-${U.field}` : U.field), E = r.decoratorProps.params || {};
46808
46816
  E.sort = V, r.decoratorProps.params = E, i["x-decorator-props"].params = E, d.emit("patch", {
46809
46817
  schema: {
46810
46818
  "x-uid": i["x-uid"],
@@ -46828,10 +46836,10 @@ const TableActionColumnDesigner = (e) => {
46828
46836
  { label: "100", value: 100 },
46829
46837
  { label: "200", value: 200 }
46830
46838
  ],
46831
- onChange: (O) => {
46839
+ onChange: (N) => {
46832
46840
  var E;
46833
46841
  const V = r.decoratorProps.params || {};
46834
- V.pageSize = O, r.decoratorProps.params = V, i["x-decorator-props"].params = V, c.run(P(x({}, (E = c.params) == null ? void 0 : E[0]), { pageSize: O, page: 1 })), d.emit("patch", {
46842
+ V.pageSize = N, r.decoratorProps.params = V, i["x-decorator-props"].params = V, c.run(P(x({}, (E = c.params) == null ? void 0 : E[0]), { pageSize: N, page: 1 })), d.emit("patch", {
46835
46843
  schema: {
46836
46844
  "x-uid": i["x-uid"],
46837
46845
  "x-decorator-props": i["x-decorator-props"]
@@ -46844,18 +46852,18 @@ const TableActionColumnDesigner = (e) => {
46844
46852
  SchemaSettingsSelectItem,
46845
46853
  {
46846
46854
  title: u("Table size"),
46847
- value: ((N = r.componentProps) == null ? void 0 : N.size) || "middle",
46855
+ value: ((O = r.componentProps) == null ? void 0 : O.size) || "middle",
46848
46856
  options: [
46849
46857
  { label: u("Large"), value: "large" },
46850
46858
  { label: u("Middle"), value: "middle" },
46851
46859
  { label: u("Small"), value: "small" }
46852
46860
  ],
46853
- onChange: (O) => {
46861
+ onChange: (N) => {
46854
46862
  const V = i.reduceProperties((E, G) => {
46855
46863
  if (G["x-component"] === "TableV2")
46856
46864
  return G;
46857
46865
  }, null);
46858
- V["x-component-props"] = V["x-component-props"] || {}, V["x-component-props"].size = O, d.emit("patch", {
46866
+ V["x-component-props"] = V["x-component-props"] || {}, V["x-component-props"].size = N, d.emit("patch", {
46859
46867
  schema: {
46860
46868
  "x-uid": V["x-uid"],
46861
46869
  "x-decorator-props": V["x-component-props"]
@@ -48705,21 +48713,21 @@ const useCurrentAppInfo = () => useContext(CurrentAppInfoContext), CurrentAppInf
48705
48713
  value: w.name
48706
48714
  })), []), k = useCallback(() => {
48707
48715
  const { availableFieldInterfaces: w } = u(o.template) || {}, { exclude: B, include: $ } = w || {}, T = [];
48708
- return F.forEach((N) => {
48709
- var O;
48710
- if (N.key === "systemInfo")
48711
- T.push(P(x({}, N), {
48712
- children: N.children.filter((V) => V.hidden ? !1 : V.value === "tableoid" ? $ != null && $.length ? $.includes(V.value) : (l == null ? void 0 : l.dialect) === "postgres" : typeof o[V.value] == "boolean" ? o[V.value] : !0)
48716
+ return F.forEach((O) => {
48717
+ var N;
48718
+ if (O.key === "systemInfo")
48719
+ T.push(P(x({}, O), {
48720
+ children: O.children.filter((V) => V.hidden ? !1 : V.value === "tableoid" ? $ != null && $.length ? $.includes(V.value) : (l == null ? void 0 : l.dialect) === "postgres" : typeof o[V.value] == "boolean" ? o[V.value] : !0)
48713
48721
  }));
48714
48722
  else {
48715
48723
  let V = [];
48716
48724
  $ != null && $.length ? $.forEach((E) => {
48717
48725
  var U;
48718
- const G = (U = N == null ? void 0 : N.children) == null ? void 0 : U.find((H) => [E, E.interface].includes(H.name));
48726
+ const G = (U = O == null ? void 0 : O.children) == null ? void 0 : U.find((H) => [E, E.interface].includes(H.name));
48719
48727
  G && V.push(P(x({}, G), {
48720
48728
  targetScope: E == null ? void 0 : E.targetScope
48721
48729
  }));
48722
- }) : B != null && B.length ? V = (O = N == null ? void 0 : N.children) == null ? void 0 : O.filter((E) => !B.includes(E.name)) : V = N == null ? void 0 : N.children, V != null && V.length && T.push(P(x({}, N), {
48730
+ }) : B != null && B.length ? V = (N = O == null ? void 0 : O.children) == null ? void 0 : N.filter((E) => !B.includes(E.name)) : V = O == null ? void 0 : O.children, V != null && V.length && T.push(P(x({}, O), {
48723
48731
  children: V
48724
48732
  }));
48725
48733
  }
@@ -49011,7 +49019,7 @@ const useCurrentAppInfo = () => useContext(CurrentAppInfoContext), CurrentAppInf
49011
49019
  run() {
49012
49020
  return q(this, null, function* () {
49013
49021
  yield M.submit();
49014
- const O = cloneDeep(M.values), V = omit(O, [
49022
+ const N = cloneDeep(M.values), V = omit(N, [
49015
49023
  "key",
49016
49024
  "uiSchemaUid",
49017
49025
  "collectionName",
@@ -49519,7 +49527,7 @@ const getSchema$4 = (e, t, n) => {
49519
49527
  const w = [];
49520
49528
  g.forEach((B) => {
49521
49529
  var V;
49522
- const $ = v(B), N = R(B).map((E) => {
49530
+ const $ = v(B), O = R(B).map((E) => {
49523
49531
  const G = k(E, B);
49524
49532
  return {
49525
49533
  type: "group",
@@ -49533,14 +49541,14 @@ const getSchema$4 = (e, t, n) => {
49533
49541
  };
49534
49542
  })
49535
49543
  };
49536
- }), O = (V = $.fields.filter((E) => !["obo", "oho", "m2m", "o2m"].includes(E == null ? void 0 : E.interface))) == null ? void 0 : V.map((E) => {
49544
+ }), N = (V = $.fields.filter((E) => !["obo", "oho", "m2m", "o2m"].includes(E == null ? void 0 : E.interface))) == null ? void 0 : V.map((E) => {
49537
49545
  var G;
49538
49546
  return { value: E.name, key: E.name, label: l(((G = E.uiSchema) == null ? void 0 : G.title) || E.name) };
49539
- }).concat(N);
49547
+ }).concat(O);
49540
49548
  w.push({
49541
49549
  value: B,
49542
49550
  label: l($.title || $.name),
49543
- children: O
49551
+ children: N
49544
49552
  });
49545
49553
  }), h(w);
49546
49554
  }, [g, t]), useEffect(() => {
@@ -49548,31 +49556,31 @@ const getSchema$4 = (e, t, n) => {
49548
49556
  var B, $;
49549
49557
  if (w) {
49550
49558
  u(!1), p([]);
49551
- const T = ($ = Object.values((B = w == null ? void 0 : w.data) == null ? void 0 : B.fields)) == null ? void 0 : $.map((N) => {
49552
- var O, V;
49553
- if (N.source) {
49554
- const E = (i == null ? void 0 : i.data.find((G) => G.name === N.name)) || N;
49555
- return P(x({}, N), {
49556
- uiSchema: P(x({}, omit(E.uiSchema, "rawTitle")), { title: ((O = E.uiSchema) == null ? void 0 : O.title) || E.name })
49559
+ const T = ($ = Object.values((B = w == null ? void 0 : w.data) == null ? void 0 : B.fields)) == null ? void 0 : $.map((O) => {
49560
+ var N, V;
49561
+ if (O.source) {
49562
+ const E = (i == null ? void 0 : i.data.find((G) => G.name === O.name)) || O;
49563
+ return P(x({}, O), {
49564
+ uiSchema: P(x({}, omit(E.uiSchema, "rawTitle")), { title: ((N = E.uiSchema) == null ? void 0 : N.title) || E.name })
49557
49565
  });
49558
49566
  } else {
49559
- const E = (i == null ? void 0 : i.data.find((G) => G.name === N.name)) || N;
49567
+ const E = (i == null ? void 0 : i.data.find((G) => G.name === O.name)) || O;
49560
49568
  return P(x({}, E), {
49561
49569
  uiSchema: P(x({}, omit(E.uiSchema, "rawTitle")), { title: ((V = E.uiSchema) == null ? void 0 : V.title) || E.name })
49562
49570
  });
49563
49571
  }
49564
49572
  });
49565
49573
  S.value = T, setTimeout(() => {
49566
- var N, O, V;
49567
- p(T), y.setValuesIn("sources", (N = w.data) == null ? void 0 : N.sources), f((O = w.data) == null ? void 0 : O.sources), b((V = w == null ? void 0 : w.data) == null ? void 0 : V.unsupportedFields);
49574
+ var O, N, V;
49575
+ p(T), y.setValuesIn("sources", (O = w.data) == null ? void 0 : O.sources), f((N = w.data) == null ? void 0 : N.sources), b((V = w == null ? void 0 : w.data) == null ? void 0 : V.unsupportedFields);
49568
49576
  });
49569
49577
  }
49570
49578
  }).catch);
49571
49579
  }, [t]);
49572
49580
  const L = (w, B) => {
49573
49581
  d.splice(B, 1, w), p(d), S.value = d.map(($) => {
49574
- var N, O, V;
49575
- const T = typeof $.source == "string" ? $.source : (V = (O = (N = $.source) == null ? void 0 : N.filter) == null ? void 0 : O.call(N, Boolean)) == null ? void 0 : V.join(".");
49582
+ var O, N, V;
49583
+ const T = typeof $.source == "string" ? $.source : (V = (N = (O = $.source) == null ? void 0 : O.filter) == null ? void 0 : N.call(O, Boolean)) == null ? void 0 : V.join(".");
49576
49584
  return P(x({}, $), {
49577
49585
  source: T
49578
49586
  });
@@ -49596,10 +49604,10 @@ const getSchema$4 = (e, t, n) => {
49596
49604
  allowClear: !0,
49597
49605
  style: { width: "100%" },
49598
49606
  options: D(m),
49599
- onChange: (T, N) => {
49607
+ onChange: (T, O) => {
49600
49608
  var V;
49601
- const O = (V = A(T == null ? void 0 : T[0])) == null ? void 0 : V.find((E) => E.name === last(T));
49602
- L(P(x({}, B), { source: T, uiSchema: O == null ? void 0 : O.uiSchema }), $);
49609
+ const N = (V = A(T == null ? void 0 : T[0])) == null ? void 0 : V.find((E) => E.name === last(T));
49610
+ L(P(x({}, B), { source: T, uiSchema: N == null ? void 0 : N.uiSchema }), $);
49603
49611
  },
49604
49612
  placeholder: l("Select field source")
49605
49613
  }
@@ -49618,8 +49626,8 @@ const getSchema$4 = (e, t, n) => {
49618
49626
  defaultValue: w,
49619
49627
  popupMatchSelectWidth: !1,
49620
49628
  style: { width: "100%" },
49621
- options: (T == null ? void 0 : T.possibleTypes.map((N) => ({ label: N, value: N }))) || [],
49622
- onChange: (N) => L(P(x({}, T), { type: N }), $)
49629
+ options: (T == null ? void 0 : T.possibleTypes.map((O) => ({ label: O, value: O }))) || [],
49630
+ onChange: (O) => L(P(x({}, T), { type: O }), $)
49623
49631
  }
49624
49632
  );
49625
49633
  }
@@ -49630,19 +49638,19 @@ const getSchema$4 = (e, t, n) => {
49630
49638
  key: "interface",
49631
49639
  width: 150,
49632
49640
  render: (w, B, $) => {
49633
- const T = d[$], N = getInterfaceOptions(z, T.type);
49641
+ const T = d[$], O = getInterfaceOptions(z, T.type);
49634
49642
  return T.source ? w : /* @__PURE__ */ jsx(
49635
49643
  Select$1,
49636
49644
  {
49637
49645
  defaultValue: w,
49638
49646
  style: { width: "100%" },
49639
49647
  popupMatchSelectWidth: !1,
49640
- onChange: (O) => {
49648
+ onChange: (N) => {
49641
49649
  var E;
49642
- const V = F(O);
49643
- L(P(x({}, T), { interface: O, uiSchema: (E = V == null ? void 0 : V.default) == null ? void 0 : E.uiSchema }), $);
49650
+ const V = F(N);
49651
+ L(P(x({}, T), { interface: N, uiSchema: (E = V == null ? void 0 : V.default) == null ? void 0 : E.uiSchema }), $);
49644
49652
  },
49645
- children: N.map((O) => /* @__PURE__ */ jsx(Select$1.OptGroup, { label: D(O.label), children: O.children.map((V) => /* @__PURE__ */ jsx(Select$1.Option, { value: V.name, children: D(V.label) }, V.value)) }, O.key))
49653
+ children: O.map((N) => /* @__PURE__ */ jsx(Select$1.OptGroup, { label: D(N.label), children: N.children.map((V) => /* @__PURE__ */ jsx(Select$1.Option, { value: V.name, children: D(V.label) }, V.value)) }, N.key))
49646
49654
  }
49647
49655
  );
49648
49656
  }
@@ -49653,14 +49661,14 @@ const getSchema$4 = (e, t, n) => {
49653
49661
  key: "title",
49654
49662
  width: 180,
49655
49663
  render: (w, B, $) => {
49656
- var N;
49664
+ var O;
49657
49665
  const T = d[$];
49658
49666
  return /* @__PURE__ */ jsx(
49659
49667
  Input$3,
49660
49668
  {
49661
- defaultValue: ((N = T == null ? void 0 : T.uiSchema) == null ? void 0 : N.title) || w,
49662
- onChange: (O) => L(
49663
- P(x({}, T), { uiSchema: P(x({}, omit(T == null ? void 0 : T.uiSchema, "rawTitle")), { title: O.target.value }) }),
49669
+ defaultValue: ((O = T == null ? void 0 : T.uiSchema) == null ? void 0 : O.title) || w,
49670
+ onChange: (N) => L(
49671
+ P(x({}, T), { uiSchema: P(x({}, omit(T == null ? void 0 : T.uiSchema, "rawTitle")), { title: N.target.value }) }),
49664
49672
  $
49665
49673
  )
49666
49674
  }
@@ -49721,8 +49729,8 @@ const mapFields = ["lineString", "point", "circle", "polygon"], PreviewTable$1 =
49721
49729
  dataIndex: F.name,
49722
49730
  key: F.name,
49723
49731
  width: 200,
49724
- render: ($, T, N) => {
49725
- const O = T[F.name], V = {
49732
+ render: ($, T, O) => {
49733
+ const N = T[F.name], V = {
49726
49734
  type: "object",
49727
49735
  properties: {
49728
49736
  [F.name]: {
@@ -49730,11 +49738,11 @@ const mapFields = ["lineString", "point", "circle", "polygon"], PreviewTable$1 =
49730
49738
  "x-component": D && A ? "CollectionField" : "Input",
49731
49739
  "x-read-pretty": !0,
49732
49740
  "x-collection-field": A == null ? void 0 : A.join("."),
49733
- default: F.interface === "json" ? JSON.stringify(O) : O
49741
+ default: F.interface === "json" ? JSON.stringify(N) : N
49734
49742
  }
49735
49743
  }
49736
49744
  };
49737
- return /* @__PURE__ */ jsx(EllipsisWithTooltip, { ellipsis: !0, children: /* @__PURE__ */ jsx(RecursionField, { schema: V, name: N, onlyRenderProperties: !0 }) });
49745
+ return /* @__PURE__ */ jsx(EllipsisWithTooltip, { ellipsis: !0, children: /* @__PURE__ */ jsx(RecursionField, { schema: V, name: O, onlyRenderProperties: !0 }) });
49738
49746
  }
49739
49747
  };
49740
49748
  });
@@ -50063,15 +50071,15 @@ const AsyncDataProvider = (e) => {
50063
50071
  style: { width: "100%" },
50064
50072
  popupMatchSelectWidth: !1,
50065
50073
  onChange: (M) => {
50066
- var B, $, T, N, O;
50074
+ var B, $, T, O, N;
50067
50075
  const w = p(M);
50068
50076
  S(
50069
50077
  P(x({}, z), {
50070
50078
  interface: M || null,
50071
50079
  uiSchema: P(x({}, (B = w == null ? void 0 : w.default) == null ? void 0 : B.uiSchema), {
50072
- title: ((T = ($ = w == null ? void 0 : w.default) == null ? void 0 : $.uiSchema) == null ? void 0 : T.title) || ((N = z.uiSchema) == null ? void 0 : N.title)
50080
+ title: ((T = ($ = w == null ? void 0 : w.default) == null ? void 0 : $.uiSchema) == null ? void 0 : T.title) || ((O = z.uiSchema) == null ? void 0 : O.title)
50073
50081
  }),
50074
- type: (O = w == null ? void 0 : w.default) == null ? void 0 : O.type
50082
+ type: (N = w == null ? void 0 : w.default) == null ? void 0 : N.type
50075
50083
  }),
50076
50084
  j
50077
50085
  );
@@ -58976,9 +58984,9 @@ const ActionInitializerItem = (e) => {
58976
58984
  (S || Y) && g(P(x({}, h == null ? void 0 : h[0]), {
58977
58985
  filter: void 0
58978
58986
  })), y(!S), K.stopPropagation();
58979
- }, N = (K) => {
58980
- K.stopPropagation();
58981
58987
  }, O = (K) => {
58988
+ K.stopPropagation();
58989
+ }, N = (K) => {
58982
58990
  m(K);
58983
58991
  }, V = (H = a.title) != null ? H : (U = i == null ? void 0 : i.uiSchema) == null ? void 0 : U.title;
58984
58992
  return t(
@@ -59004,8 +59012,8 @@ const ActionInitializerItem = (e) => {
59004
59012
  autoFocus: !0,
59005
59013
  placeholder: "Search...",
59006
59014
  className: "search",
59007
- onClick: N,
59008
- onChange: O
59015
+ onClick: O,
59016
+ onChange: N
59009
59017
  }
59010
59018
  ) : c(V) }),
59011
59019
  /* @__PURE__ */ jsx(
@@ -59412,7 +59420,7 @@ function useMenuSearch({
59412
59420
  })) : g, [e, c, u, g]);
59413
59421
  }
59414
59422
  const DataBlockInitializer = (e) => {
59415
- var B, $;
59423
+ var $, T;
59416
59424
  const {
59417
59425
  templateWrap: t,
59418
59426
  onCreateBlockSchema: n,
@@ -59431,21 +59439,22 @@ const DataBlockInitializer = (e) => {
59431
59439
  onClick: f,
59432
59440
  filterOtherRecordsCollection: C,
59433
59441
  currentText: b,
59434
- otherText: S
59435
- } = e, { insert: y, setVisible: v } = useSchemaInitializer(), F = useCompile(), { getTemplateSchemaByMode: A } = useSchemaTemplateManager(), R = useCallback(
59436
- (T) => q(void 0, null, function* () {
59437
- const { item: N, fromOthersInPopup: O } = T;
59442
+ otherText: S,
59443
+ alwaysRenderMenu: y
59444
+ } = e, { insert: v, setVisible: F } = useSchemaInitializer(), A = useCompile(), { getTemplateSchemaByMode: R } = useSchemaTemplateManager(), k = useCallback(
59445
+ (O) => q(void 0, null, function* () {
59446
+ const { item: N, fromOthersInPopup: V } = O;
59438
59447
  if (f)
59439
- return f(T);
59448
+ return f(O);
59440
59449
  if (N.template) {
59441
- const V = yield A(N);
59442
- y(t ? t(V, { item: N, fromOthersInPopup: O }) : V);
59450
+ const E = yield R(N);
59451
+ v(t ? t(E, { item: N, fromOthersInPopup: V }) : E);
59443
59452
  } else
59444
- n && n({ item: N, fromOthersInPopup: O });
59445
- v(!1);
59453
+ n && n({ item: N, fromOthersInPopup: V });
59454
+ F(!1);
59446
59455
  }),
59447
- [A, y, v, n, f, t]
59448
- ), k = h || // eslint-disable-next-line react-hooks/rules-of-hooks
59456
+ [R, v, F, n, f, t]
59457
+ ), D = h || // eslint-disable-next-line react-hooks/rules-of-hooks
59449
59458
  useCollectionDataSourceItems({
59450
59459
  name: i,
59451
59460
  componentName: o,
@@ -59456,32 +59465,32 @@ const DataBlockInitializer = (e) => {
59456
59465
  showAssociationFields: d,
59457
59466
  dataBlockInitializerProps: e,
59458
59467
  hideOtherRecordsInPopup: g,
59459
- onClick: R,
59468
+ onClick: k,
59460
59469
  currentText: b,
59461
59470
  otherText: S
59462
- }), D = useGetSchemaInitializerMenuItems(R), j = useMemo(() => D(k, i), [D, k, i]), [z, L] = useState([]), M = useMenuSearch({ data: j, openKeys: z, hideSearch: u }), w = useMemo(() => {
59463
- let T = M.filter((N) => N.key !== "search" && N.key !== "empty");
59464
- return p && T.length === 1 ? T = T[0].children : T = M, [
59471
+ }), j = useGetSchemaInitializerMenuItems(k), z = useMemo(() => j(D, i), [j, D, i]), [L, M] = useState([]), w = useMenuSearch({ data: z, openKeys: L, hideSearch: u }), B = useMemo(() => {
59472
+ let O = w.filter((N) => N.key !== "search" && N.key !== "empty");
59473
+ return p && O.length === 1 ? O = O[0].children : O = w, [
59465
59474
  {
59466
59475
  key: i,
59467
- label: F(a),
59476
+ label: A(a),
59468
59477
  icon: typeof r == "string" ? /* @__PURE__ */ jsx(antIcons__default, { type: r }) : r,
59469
59478
  onClick: (N) => {
59470
- N.key === i && R(P(x({}, N), { item: e }));
59479
+ N.key === i && k(P(x({}, N), { item: e }));
59471
59480
  },
59472
- children: T
59481
+ children: O
59473
59482
  }
59474
59483
  ];
59475
- }, [M, p, i, F, a, r, R, e]);
59476
- return j.length > 1 || j.length === 1 && (($ = (B = j[0]) == null ? void 0 : B.children) == null ? void 0 : $.length) > 0 ? /* @__PURE__ */ jsx(
59484
+ }, [w, p, i, A, a, r, k, e]);
59485
+ return z.length > 1 || z.length === 1 && ((T = ($ = z[0]) == null ? void 0 : $.children) == null ? void 0 : T.length) > 0 || y ? /* @__PURE__ */ jsx(
59477
59486
  SchemaInitializerMenu,
59478
59487
  {
59479
- onOpenChange: (T) => {
59480
- L(T);
59488
+ onOpenChange: (O) => {
59489
+ M(O);
59481
59490
  },
59482
- items: w
59491
+ items: B
59483
59492
  }
59484
- ) : /* @__PURE__ */ jsx(SchemaInitializerItem, P(x({}, e), { onClick: R }));
59493
+ ) : /* @__PURE__ */ jsx(SchemaInitializerItem, P(x({}, e), { onClick: k }));
59485
59494
  }, G2PlotInitializer = () => {
59486
59495
  const e = useSchemaInitializerItem(), { insert: t } = useSchemaInitializer();
59487
59496
  return /* @__PURE__ */ jsx(