@nocobase/client 1.9.13 → 1.9.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/es/index.mjs +735 -691
  2. package/lib/index.js +62 -62
  3. package/package.json +5 -5
package/es/index.mjs CHANGED
@@ -11,7 +11,7 @@ var we = (e, t, n) => t in e ? Ee(e, t, { enumerable: !0, configurable: !0, writ
11
11
  Ne.call(t, n) && we(e, n, t[n]);
12
12
  return e;
13
13
  }, P = (e, t) => Oe(e, Ve(t));
14
- var Y = (e, t) => {
14
+ var W = (e, t) => {
15
15
  var n = {};
16
16
  for (var o in e)
17
17
  Be.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
@@ -4907,7 +4907,7 @@ function toSchema(e) {
4907
4907
  }
4908
4908
  const useMemoizedSchema = (e) => useMemo(() => toSchema(e), []), SchemaComponentOnChangeContext = createContext({ onChange: _.noop }), RecursionSchemaComponent = memo(
4909
4909
  (e) => {
4910
- const h = e, { components: t, scope: n, schema: o, distributed: r, onChange: a, parentSchema: i } = h, l = Y(h, ["components", "scope", "schema", "distributed", "onChange", "parentSchema"]), c = useContext(SchemaComponentContext), u = useMemo(() => toSchema(o), [o]), d = useMemo(
4910
+ const h = e, { components: t, scope: n, schema: o, distributed: r, onChange: a, parentSchema: i } = h, l = W(h, ["components", "scope", "schema", "distributed", "onChange", "parentSchema"]), c = useContext(SchemaComponentContext), u = useMemo(() => toSchema(o), [o]), d = useMemo(
4911
4911
  () => P(x({}, c), {
4912
4912
  distributed: c.distributed == !1 ? !1 : r,
4913
4913
  /**
@@ -4930,14 +4930,14 @@ const useMemoizedSchema = (e) => useMemo(() => toSchema(e), []), SchemaComponent
4930
4930
  RecursionSchemaComponent.displayName = "RecursionSchemaComponent";
4931
4931
  const MemoizedSchemaComponent = memo(
4932
4932
  (e) => {
4933
- const a = e, { schema: t, parentSchema: n } = a, o = Y(a, ["schema", "parentSchema"]), r = useMemoizedSchema(t);
4933
+ const a = e, { schema: t, parentSchema: n } = a, o = W(a, ["schema", "parentSchema"]), r = useMemoizedSchema(t);
4934
4934
  return /* @__PURE__ */ jsx(RecursionSchemaComponent, P(x({}, o), { schema: r, parentSchema: n }));
4935
4935
  }
4936
4936
  );
4937
4937
  MemoizedSchemaComponent.displayName = "MemoizedSchemaComponent";
4938
4938
  const SchemaComponent = memo(
4939
4939
  (e) => {
4940
- const o = e, { memoized: t } = o, n = Y(o, ["memoized"]);
4940
+ const o = e, { memoized: t } = o, n = W(o, ["memoized"]);
4941
4941
  return t ? /* @__PURE__ */ jsx(MemoizedSchemaComponent, x({}, n)) : /* @__PURE__ */ jsx(RecursionSchemaComponent, x({}, n));
4942
4942
  }
4943
4943
  );
@@ -6658,14 +6658,15 @@ const InternalFormBlockProvider = (e) => {
6658
6658
  const e = useFormBlockContext(), { fieldSchema: t } = useActionContext();
6659
6659
  return e.type !== "create" && (t == null ? void 0 : t["x-acl-action"]) !== "create" && (t == null ? void 0 : t["x-action"]) !== "create";
6660
6660
  }, FormBlockProvider = withDynamicSchemaProps((e) => {
6661
- const t = useCollectionParentRecordData(), { parentRecord: n, action: o } = e, r = useCollectionRecordData(), { association: a } = e, i = useCollectionManager(), { __collection: l } = r || {}, { designable: c } = useDesignable(), u = e.collection || i.getCollection(a).name, d = useUpdate();
6662
- return !c && l && o && l !== u ? null : /* @__PURE__ */ jsx(TemplateBlockProvider, { onTemplateLoaded: d, children: /* @__PURE__ */ jsx(
6661
+ var h;
6662
+ const t = useCollectionParentRecordData(), { parentRecord: n, action: o } = e, r = useCollectionRecordData(), { association: a } = e, i = useCollectionManager(), { __collection: l } = r || {}, { designable: c } = useDesignable(), u = e.collection || i.getCollection(a).name, { fieldSchema: d } = useActionContext(), p = (h = d == null ? void 0 : d["x-component-props"]) == null ? void 0 : h.addChild, m = useUpdate();
6663
+ return !c && l && o && l !== u ? null : /* @__PURE__ */ jsx(TemplateBlockProvider, { onTemplateLoaded: m, children: /* @__PURE__ */ jsx(
6663
6664
  BlockProvider,
6664
6665
  P(x({
6665
6666
  name: e.name || "form"
6666
6667
  }, e), {
6667
6668
  block: "form",
6668
- parentRecord: n || t,
6669
+ parentRecord: p ? t : n || t,
6669
6670
  children: /* @__PURE__ */ jsx(FormActiveFieldsProvider, { name: "form", children: /* @__PURE__ */ jsx(InternalFormBlockProvider, x({}, e)) })
6670
6671
  })
6671
6672
  ) });
@@ -7899,7 +7900,7 @@ Object.keys(antIcons).forEach((e) => {
7899
7900
  registerIcon(e, antIcons[e]);
7900
7901
  });
7901
7902
  const Icon = (e) => {
7902
- const r = e, { type: t = "", component: n } = r, o = Y(r, ["type", "component"]);
7903
+ const r = e, { type: t = "", component: n } = r, o = W(r, ["type", "component"]);
7903
7904
  if (n)
7904
7905
  return /* @__PURE__ */ jsx(antIcons__default, x({ component: n }, o));
7905
7906
  if (t && icons.has(t.toLowerCase())) {
@@ -7971,7 +7972,7 @@ class PluginSettingsManager {
7971
7972
  const o = this.hasAuth(t), r = this.getSetting(t);
7972
7973
  if (n && !o || !r)
7973
7974
  return null;
7974
- const a = Object.keys(r.children || {}).sort((p, m) => p.localeCompare(m)).map((p) => this.get(r.children[p].name, n)).filter(Boolean).sort((p, m) => (p.sort || 0) - (m.sort || 0)), d = r, { title: i, icon: l, aclSnippet: c } = d, u = Y(d, ["title", "icon", "aclSnippet"]);
7975
+ const a = Object.keys(r.children || {}).sort((p, m) => p.localeCompare(m)).map((p) => this.get(r.children[p].name, n)).filter(Boolean).sort((p, m) => (p.sort || 0) - (m.sort || 0)), d = r, { title: i, icon: l, aclSnippet: c } = d, u = W(d, ["title", "icon", "aclSnippet"]);
7975
7976
  return P(x({
7976
7977
  isTopLevel: t === r.topLevelName
7977
7978
  }, u), {
@@ -7999,7 +8000,7 @@ const ApplicationContext = createContext(null);
7999
8000
  ApplicationContext.displayName = "ApplicationContext";
8000
8001
  const AppComponent = observer(
8001
8002
  (n) => {
8002
- var o = n, { children: e } = o, t = Y(o, ["children"]);
8003
+ var o = n, { children: e } = o, t = W(o, ["children"]);
8003
8004
  var l;
8004
8005
  const { app: r } = t, a = useCallback((c, u) => {
8005
8006
  console.error(c);
@@ -8129,7 +8130,7 @@ class RouterManager {
8129
8130
  if (Object.keys(a).length === 1 && a.children)
8130
8131
  r.push(...n(a.children));
8131
8132
  else {
8132
- const i = a, { Component: l, element: c, children: u } = i, d = Y(i, ["Component", "element", "children"]);
8133
+ const i = a, { Component: l, element: c, children: u } = i, d = W(i, ["Component", "element", "children"]);
8133
8134
  let p = c;
8134
8135
  l && (typeof l == "string" ? p = this.app.renderComponent(l) : p = React.createElement(l));
8135
8136
  const m = P(x({}, d), {
@@ -8168,7 +8169,7 @@ class RouterManager {
8168
8169
  * @internal
8169
8170
  */
8170
8171
  getRouterComponent(t) {
8171
- const d = this.options, { type: n = "browser" } = d, o = Y(d, ["type"]), r = {
8172
+ const d = this.options, { type: n = "browser" } = d, o = W(d, ["type"]), r = {
8172
8173
  hash: createHashRouter,
8173
8174
  browser: createBrowserRouter,
8174
8175
  memory: createMemoryRouter
@@ -8476,7 +8477,7 @@ function withInitializer(e) {
8476
8477
  );
8477
8478
  }
8478
8479
  const SchemaInitializerSubMenuContext = React.createContext({}), SchemaInitializerMenuProvider = (e) => /* @__PURE__ */ jsx(SchemaInitializerSubMenuContext.Provider, { value: { isInMenu: !0 }, children: e.children }), useSchemaInitializerSubMenuContext = () => React.useContext(SchemaInitializerSubMenuContext), SchemaInitializerMenu = (e) => {
8479
- const { componentCls: t, hashId: n } = useSchemaInitializerStyles(), l = e, { items: o } = l, r = Y(l, ["items"]), { token: a } = theme.useToken(), i = useMemo(
8480
+ const { componentCls: t, hashId: n } = useSchemaInitializerStyles(), l = e, { items: o } = l, r = W(l, ["items"]), { token: a } = theme.useToken(), i = useMemo(
8480
8481
  () => o.map((c) => P(x({}, c), {
8481
8482
  popupClassName: `${n} ${t}-menu-sub`
8482
8483
  })),
@@ -8525,7 +8526,7 @@ const SchemaInitializerSubMenuContext = React.createContext({}), SchemaInitializ
8525
8526
  ) });
8526
8527
  }, SchemaInitializerSubMenu = (e) => {
8527
8528
  var f;
8528
- const g = e, { children: t, items: n, title: o, name: r, onOpenChange: a, icon: i } = g, l = Y(g, ["children", "items", "title", "name", "onOpenChange", "icon"]), c = useCompile(), u = useSchemaInitializerItem(), d = useMemo(() => r || (u == null ? void 0 : u.name) || uid(), [r, u]), p = (f = n || t) == null ? void 0 : f.filter((C) => C.useVisible ? C.useVisible() : !0), m = useSchemaInitializerMenuItems(p, r), h = useMemo(() => [
8529
+ const g = e, { children: t, items: n, title: o, name: r, onOpenChange: a, icon: i } = g, l = W(g, ["children", "items", "title", "name", "onOpenChange", "icon"]), c = useCompile(), u = useSchemaInitializerItem(), d = useMemo(() => r || (u == null ? void 0 : u.name) || uid(), [r, u]), p = (f = n || t) == null ? void 0 : f.filter((C) => C.useVisible ? C.useVisible() : !0), m = useSchemaInitializerMenuItems(p, r), h = useMemo(() => [
8529
8530
  P(x({}, l), {
8530
8531
  key: d,
8531
8532
  label: c(o),
@@ -8856,7 +8857,7 @@ function addAppVersion(e, t) {
8856
8857
  addAppVersion((o = e.properties) == null ? void 0 : o[n], t);
8857
8858
  }), e;
8858
8859
  }
8859
- const name = "@nocobase/client", version = "1.9.13", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
8860
+ const name = "@nocobase/client", version = "1.9.15", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
8860
8861
  "@ahooksjs/use-url-state": "3.5.1",
8861
8862
  "@ant-design/cssinjs": "^1.11.1",
8862
8863
  "@ant-design/icons": "^5.6.1",
@@ -8877,9 +8878,9 @@ const name = "@nocobase/client", version = "1.9.13", license = "AGPL-3.0", main
8877
8878
  "@formily/reactive-react": "^2.2.27",
8878
8879
  "@formily/shared": "^2.2.27",
8879
8880
  "@formily/validator": "^2.2.27",
8880
- "@nocobase/evaluators": "1.9.13",
8881
- "@nocobase/sdk": "1.9.13",
8882
- "@nocobase/utils": "1.9.13",
8881
+ "@nocobase/evaluators": "1.9.15",
8882
+ "@nocobase/sdk": "1.9.15",
8883
+ "@nocobase/utils": "1.9.15",
8883
8884
  ahooks: "^3.7.2",
8884
8885
  antd: "5.24.2",
8885
8886
  "antd-mobile": "^5.41.1",
@@ -9520,7 +9521,7 @@ const useFieldComponentOptions = () => {
9520
9521
  e != null && e.title || (e.title = a((l = r == null ? void 0 : r.uiSchema) == null ? void 0 : l.title));
9521
9522
  }, [(i = r == null ? void 0 : r.uiSchema) == null ? void 0 : i.title]);
9522
9523
  }, useDef$4 = () => ({}), useProps = (e = {}) => {
9523
- const a = e, { useProps: t = useDef$4 } = a, n = Y(a, ["useProps"]);
9524
+ const a = e, { useProps: t = useDef$4 } = a, n = W(a, ["useProps"]);
9524
9525
  let o = t;
9525
9526
  typeof t != "function" && (o = useDef$4);
9526
9527
  const r = o();
@@ -10161,7 +10162,7 @@ const TableCellRender = ({ record: e, columnSchema: t, uiSchema: n, filterProper
10161
10162
  }, D["x-component-props"]), {
10162
10163
  width: R,
10163
10164
  schema: D,
10164
- render: (U, K, X) => /* @__PURE__ */ jsx(RefreshComponentProvider, { refresh: g, children: /* @__PURE__ */ jsx(
10165
+ render: (U, K, Y) => /* @__PURE__ */ jsx(RefreshComponentProvider, { refresh: g, children: /* @__PURE__ */ jsx(
10165
10166
  TableCellRender,
10166
10167
  {
10167
10168
  record: K,
@@ -10170,7 +10171,7 @@ const TableCellRender = ({ record: e, columnSchema: t, uiSchema: n, filterProper
10170
10171
  filterProperties: f,
10171
10172
  schemaToolbarBigger: C,
10172
10173
  field: r,
10173
- index: X
10174
+ index: Y
10174
10175
  }
10175
10176
  ) }),
10176
10177
  onCell: (U, K) => ({
@@ -10256,7 +10257,7 @@ const TableCellRender = ({ record: e, columnSchema: t, uiSchema: n, filterProper
10256
10257
  var m, g, f;
10257
10258
  const { token: t } = useToken$1(), n = (m = e["data-row-key"]) == null ? void 0 : m.toString(), { setNodeRef: o, active: r, over: a } = useSortable({
10258
10259
  id: n
10259
- }), h = e, { rowIndex: i } = h, l = Y(h, ["rowIndex"]), c = (a == null ? void 0 : a.id) == n, u = useMemo(() => {
10260
+ }), h = e, { rowIndex: i } = h, l = W(h, ["rowIndex"]), c = (a == null ? void 0 : a.id) == n, u = useMemo(() => {
10260
10261
  const C = new TinyColor(t.colorSettings).setAlpha(0.6).toHex8String();
10261
10262
  return {
10262
10263
  topActiveClass: css`
@@ -10282,12 +10283,12 @@ const TableCellRender = ({ record: e, columnSchema: t, uiSchema: n, filterProper
10282
10283
  })
10283
10284
  );
10284
10285
  }, SortHandle$2 = (e) => {
10285
- const a = e, { id: t } = a, n = Y(a, ["id"]), { listeners: o, setNodeRef: r } = useSortable({
10286
+ const a = e, { id: t } = a, n = W(a, ["id"]), { listeners: o, setNodeRef: r } = useSortable({
10286
10287
  id: t
10287
10288
  });
10288
10289
  return /* @__PURE__ */ jsx(MenuOutlined, P(x(x({ ref: r }, n), o), { style: { cursor: "grab" } }));
10289
10290
  }, TableIndex$3 = (e) => {
10290
- const o = e, { index: t } = o, n = Y(o, ["index"]);
10291
+ const o = e, { index: t } = o, n = W(o, ["index"]);
10291
10292
  return /* @__PURE__ */ jsx("div", P(x({ className: cls("nb-table-index"), style: { padding: "0 8px 0 16px" } }, n), { children: t }));
10292
10293
  }, pageSizeOptions$3 = [5, 10, 20, 50, 100, 200], usePaginationProps$3 = (e, t, n) => {
10293
10294
  var S, y, v, I, F, w;
@@ -10413,7 +10414,7 @@ const BodyRowComponent$1 = React.memo((e) => {
10413
10414
  });
10414
10415
  BodyRowComponent$1.displayName = "BodyRowComponent";
10415
10416
  const InternalBodyCellComponent$1 = React.memo((e) => {
10416
- const p = e, { record: t, schema: n, rowIndex: o, isSubTable: r } = p, a = Y(p, ["record", "schema", "rowIndex", "isSubTable"]), i = n == null ? void 0 : n[LinkageRuleDataKeyMap.style], [l, c] = useState({}), u = !!(n != null && n.properties) && Object.values(n.properties).some((m) => m["x-read-pretty"] === !0) || (n == null ? void 0 : n["x-action-column"]) === "actions", d = useMemo(
10417
+ const p = e, { record: t, schema: n, rowIndex: o, isSubTable: r } = p, a = W(p, ["record", "schema", "rowIndex", "isSubTable"]), i = n == null ? void 0 : n[LinkageRuleDataKeyMap.style], [l, c] = useState({}), u = !!(n != null && n.properties) && Object.values(n.properties).some((m) => m["x-read-pretty"] === !0) || (n == null ? void 0 : n["x-action-column"]) === "actions", d = useMemo(
10417
10418
  () => x(x({ overflow: "hidden" }, e.style), l),
10418
10419
  [e.style, l]
10419
10420
  );
@@ -10445,7 +10446,7 @@ const TableElementRefContext = createContext(null), useTableElementRef = () => u
10445
10446
  columns: m,
10446
10447
  expandable: h,
10447
10448
  field: g
10448
- } = y, f = Y(y, [
10449
+ } = y, f = W(y, [
10449
10450
  "tableHeight",
10450
10451
  "SortableWrapper",
10451
10452
  "tableSizeRefCallback",
@@ -10538,8 +10539,8 @@ InternalNocoBaseTable$1.displayName = "InternalNocoBaseTable";
10538
10539
  const Table$2 = withDynamicSchemaProps(
10539
10540
  withSkeletonComponent(
10540
10541
  observer$1((e) => {
10541
- var ye, se;
10542
- const { token: t } = useToken$1(), he = omit(e, ["onBlur", "onFocus"]), { pagination: n, useProps: o } = he, r = Y(he, ["pagination", "useProps"]), de = (o == null ? void 0 : o()) || {}, { pagination: a } = de, i = Y(de, ["pagination"]), be = x(x({}, r), i), {
10542
+ var ye, ae;
10543
+ const { token: t } = useToken$1(), ge = omit(e, ["onBlur", "onFocus"]), { pagination: n, useProps: o } = ge, r = W(ge, ["pagination", "useProps"]), pe = (o == null ? void 0 : o()) || {}, { pagination: a } = pe, i = W(pe, ["pagination"]), be = x(x({}, r), i), {
10543
10544
  dragSort: l = !1,
10544
10545
  showIndex: c = !0,
10545
10546
  onRowSelectionChange: u,
@@ -10551,7 +10552,7 @@ const Table$2 = withDynamicSchemaProps(
10551
10552
  loading: f,
10552
10553
  onClickRow: C,
10553
10554
  value: b
10554
- } = be, S = Y(be, [
10555
+ } = be, S = W(be, [
10555
10556
  "dragSort",
10556
10557
  "showIndex",
10557
10558
  "onRowSelectionChange",
@@ -10564,7 +10565,7 @@ const Table$2 = withDynamicSchemaProps(
10564
10565
  "onClickRow",
10565
10566
  "value"
10566
10567
  ]), y = useArrayField$1(S), v = useFieldSchema(), { size: I = "small" } = (v == null ? void 0 : v["x-component-props"]) || {}, F = useCollection(), T = ((ye = v == null ? void 0 : v.parent) == null ? void 0 : ye["x-decorator"]) === "TableSelectorProvider" ? useTableSelectorContext() : useTableBlockContext(), { expandFlag: D, allIncludesChildren: B, enableIndexColumn: N } = T, M = useMemoizedFn(S.onRowDragEnd || (() => {
10567
- })), j = usePaginationProps$3(n, a, e), R = useTableColumns$3(S, j), [O, $] = useState(() => D ? B : []), [A, E] = useState(((se = y == null ? void 0 : y.data) == null ? void 0 : se.selectedRowKeys) || []), [z, L] = useState([]), V = (p == null ? void 0 : p.type) !== "none", G = useRef(/* @__PURE__ */ new Map()), H = useMemo(() => css`
10568
+ })), j = usePaginationProps$3(n, a, e), R = useTableColumns$3(S, j), [O, $] = useState(() => D ? B : []), [A, E] = useState(((ae = y == null ? void 0 : y.data) == null ? void 0 : ae.selectedRowKeys) || []), [z, L] = useState([]), V = (p == null ? void 0 : p.type) !== "none", G = useRef(/* @__PURE__ */ new Map()), H = useMemo(() => css`
10568
10569
  & > td {
10569
10570
  background-color: ${t.controlItemBgActive} !important;
10570
10571
  }
@@ -10573,109 +10574,109 @@ const Table$2 = withDynamicSchemaProps(
10573
10574
  }
10574
10575
  `, [t.controlItemBgActive, t.controlItemBgActiveHover]), U = useTableBlockContextBasicValue(), K = useRef(b);
10575
10576
  K.current = b, useEffect(() => {
10576
- var te;
10577
- U != null && U.field && (U.field.data = ((te = U.field) == null ? void 0 : te.data) || {}, U.field.data.clearSelectedRowKeys = () => {
10577
+ var ne;
10578
+ U != null && U.field && (U.field.data = ((ne = U.field) == null ? void 0 : ne.data) || {}, U.field.data.clearSelectedRowKeys = () => {
10578
10579
  U.field.data.selectedRowKeys = [], E([]);
10579
10580
  }, U.field.data.setSelectedRowKeys = E);
10580
10581
  }, [U == null ? void 0 : U.field]);
10581
- const X = useMemo(() => C ? H : "", [H, C]), W = useMemo(() => C ? (te, oe) => ({
10582
- onClick: (ae) => {
10583
- isPortalInBody(ae.target) || C(te, L, z);
10582
+ const Y = useMemo(() => C ? H : "", [H, C]), X = useMemo(() => C ? (ne, oe) => ({
10583
+ onClick: (ie) => {
10584
+ isPortalInBody(ie.target) || C(ne, L, z);
10584
10585
  },
10585
10586
  rowIndex: oe,
10586
- record: te
10587
- }) : (te, oe) => ({
10587
+ record: ne
10588
+ }) : (ne, oe) => ({
10588
10589
  rowIndex: oe,
10589
- record: te
10590
+ record: ne
10590
10591
  }), [C, z]);
10591
10592
  useDeepCompareEffect(() => {
10592
- const te = D ? B : [];
10593
- _.isEqual(te, O) || $(te);
10593
+ const ne = D ? B : [];
10594
+ _.isEqual(ne, O) || $(ne);
10594
10595
  }, [D, B]);
10595
- const J = useCallback((te) => {
10596
+ const Q = useCallback((ne) => {
10596
10597
  if (m)
10597
- return Z(te);
10598
- if (te.key)
10599
- return te.key;
10600
- if (G.current.has(te))
10601
- return G.current.get(te);
10598
+ return ee(ne);
10599
+ if (ne.key)
10600
+ return ne.key;
10601
+ if (G.current.has(ne))
10602
+ return G.current.get(ne);
10602
10603
  const oe = uid();
10603
- return G.current.set(te, oe), oe;
10604
- }, []), Z = useCallback(
10605
- (te) => {
10604
+ return G.current.set(ne, oe), oe;
10605
+ }, []), ee = useCallback(
10606
+ (ne) => {
10606
10607
  var oe;
10607
- return Array.isArray(m) ? m.map((ae) => {
10608
- var le;
10609
- return ((le = te[ae]) == null ? void 0 : le.toString()) || "";
10610
- }).join("-") : typeof m == "string" ? te[m] : (oe = (m != null ? m : J)(te)) == null ? void 0 : oe.toString();
10608
+ return Array.isArray(m) ? m.map((ie) => {
10609
+ var ce;
10610
+ return ((ce = ne[ie]) == null ? void 0 : ce.toString()) || "";
10611
+ }).join("-") : typeof m == "string" ? ne[m] : (oe = (m != null ? m : Q)(ne)) == null ? void 0 : oe.toString();
10611
10612
  },
10612
- [JSON.stringify(m), J]
10613
- ), Q = useMemo(() => (Array.isArray(b) ? b : []).filter(Boolean), [b, b == null ? void 0 : b.length]), ee = useMemo(() => (te) => {
10614
- const oe = useCallback((ae) => {
10613
+ [JSON.stringify(m), Q]
10614
+ ), J = useMemo(() => (Array.isArray(b) ? b : []).filter(Boolean), [b, b == null ? void 0 : b.length]), Z = useMemo(() => (ne) => {
10615
+ const oe = useCallback((ie) => {
10615
10616
  var ve, Pe, Fe, Ie, ke, De, je, Me;
10616
- if (!ae.active || !ae.over) {
10617
+ if (!ie.active || !ie.over) {
10617
10618
  console.warn("move cancel");
10618
10619
  return;
10619
10620
  }
10620
- const le = (Fe = (Pe = (ve = ae.active) == null ? void 0 : ve.data.current) == null ? void 0 : Pe.sortable) == null ? void 0 : Fe.index, ue = (De = (ke = (Ie = ae.over) == null ? void 0 : Ie.data.current) == null ? void 0 : ke.sortable) == null ? void 0 : De.index, Se = ((je = K.current) == null ? void 0 : je[le]) || ae.active, Ae = ((Me = K.current) == null ? void 0 : Me[ue]) || ae.over;
10621
- y.move(le, ue), M({ from: Se, to: Ae });
10621
+ const ce = (Fe = (Pe = (ve = ie.active) == null ? void 0 : ve.data.current) == null ? void 0 : Pe.sortable) == null ? void 0 : Fe.index, de = (De = (ke = (Ie = ie.over) == null ? void 0 : Ie.data.current) == null ? void 0 : ke.sortable) == null ? void 0 : De.index, Se = ((je = K.current) == null ? void 0 : je[ce]) || ie.active, Ae = ((Me = K.current) == null ? void 0 : Me[de]) || ie.over;
10622
+ y.move(ce, de), M({ from: Se, to: Ae });
10622
10623
  }, []);
10623
- return /* @__PURE__ */ jsx(DndContext, { onDragEnd: oe, children: /* @__PURE__ */ jsx("tbody", x({}, te)) });
10624
+ return /* @__PURE__ */ jsx(DndContext, { onDragEnd: oe, children: /* @__PURE__ */ jsx("tbody", x({}, ne)) });
10624
10625
  }, [y, M]);
10625
- ee.displayName = "BodyWrapperComponent";
10626
- const ne = useMemo(() => ({
10626
+ Z.displayName = "BodyWrapperComponent";
10627
+ const te = useMemo(() => ({
10627
10628
  header: {
10628
10629
  wrapper: HeaderWrapperComponent$1,
10629
10630
  cell: HeaderCellComponent$1
10630
10631
  },
10631
10632
  body: {
10632
- wrapper: ee,
10633
+ wrapper: Z,
10633
10634
  row: BodyRowComponent$1,
10634
10635
  cell: BodyCellComponent$1
10635
10636
  }
10636
- }), [ee]), re = useMemo(() => p, [JSON.stringify(p)]), ie = useMemo(
10637
+ }), [Z]), re = useMemo(() => p, [JSON.stringify(p)]), se = useMemo(
10637
10638
  () => ({
10638
10639
  rowSelection: N !== !1 && re ? x({
10639
10640
  type: "checkbox",
10640
10641
  selectedRowKeys: A,
10641
- onChange(te, oe) {
10642
- y.data = y.data || {}, y.data.selectedRowKeys = te, y.data.selectedRowData = oe, E(te), u == null || u(te, oe, E);
10642
+ onChange(ne, oe) {
10643
+ y.data = y.data || {}, y.data.selectedRowKeys = ne, y.data.selectedRowData = oe, E(ne), u == null || u(ne, oe, E);
10643
10644
  },
10644
- onSelect: (te, oe, ae, le) => {
10645
- var ue;
10646
- U && (U.field.data = ((ue = U.field) == null ? void 0 : ue.data) || {}, U.field.data.selectedRecord = te, U.field.data.selected = oe);
10645
+ onSelect: (ne, oe, ie, ce) => {
10646
+ var de;
10647
+ U && (U.field.data = ((de = U.field) == null ? void 0 : de.data) || {}, U.field.data.selectedRecord = ne, U.field.data.selected = oe);
10647
10648
  },
10648
- getCheckboxProps(te) {
10649
+ getCheckboxProps(ne) {
10649
10650
  return {
10650
10651
  "aria-label": "checkbox"
10651
10652
  };
10652
10653
  },
10653
- renderCell: (te, oe, ae, le) => {
10654
+ renderCell: (ne, oe, ie, ce) => {
10654
10655
  if (!l && !c)
10655
- return le;
10656
- const ue = j == null ? void 0 : j.current, Se = (j == null ? void 0 : j.pageSize) || 20;
10657
- return ue ? ae = ae + (ue - 1) * Se + 1 : ae = ae + 1, oe.__index && (ae = extractIndex(oe.__index)), /* @__PURE__ */ jsxs(
10656
+ return ce;
10657
+ const de = j == null ? void 0 : j.current, Se = (j == null ? void 0 : j.pageSize) || 20;
10658
+ return de ? ie = ie + (de - 1) * Se + 1 : ie = ie + 1, oe.__index && (ie = extractIndex(oe.__index)), /* @__PURE__ */ jsxs(
10658
10659
  "div",
10659
10660
  {
10660
10661
  role: "button",
10661
- "aria-label": `table-index-${ae}`,
10662
- className: cls(te ? "checked" : null, rowSelectCheckboxWrapperClass$1, {
10662
+ "aria-label": `table-index-${ie}`,
10663
+ className: cls(ne ? "checked" : null, rowSelectCheckboxWrapperClass$1, {
10663
10664
  [rowSelectCheckboxWrapperClassHover$1]: V
10664
10665
  }),
10665
10666
  children: [
10666
- /* @__PURE__ */ jsxs("div", { className: cls(te ? "checked" : null, rowSelectCheckboxContentClass$1), children: [
10667
- l && /* @__PURE__ */ jsx(SortHandle$2, { id: Z(oe) }),
10668
- c && /* @__PURE__ */ jsx(TableIndex$3, { index: ae })
10667
+ /* @__PURE__ */ jsxs("div", { className: cls(ne ? "checked" : null, rowSelectCheckboxContentClass$1), children: [
10668
+ l && /* @__PURE__ */ jsx(SortHandle$2, { id: ee(oe) }),
10669
+ c && /* @__PURE__ */ jsx(TableIndex$3, { index: ie })
10669
10670
  ] }),
10670
10671
  V && /* @__PURE__ */ jsx(
10671
10672
  "div",
10672
10673
  {
10673
10674
  className: cls(
10674
10675
  "nb-origin-node",
10675
- te ? "checked" : null,
10676
+ ne ? "checked" : null,
10676
10677
  rowSelectCheckboxCheckedClassHover$1
10677
10678
  ),
10678
- children: le
10679
+ children: ce
10679
10680
  }
10680
10681
  )
10681
10682
  ]
@@ -10691,62 +10692,62 @@ const Table$2 = withDynamicSchemaProps(
10691
10692
  c,
10692
10693
  l,
10693
10694
  y,
10694
- Z,
10695
+ ee,
10695
10696
  V,
10696
10697
  re,
10697
10698
  j,
10698
10699
  U,
10699
10700
  N
10700
10701
  ]
10701
- ), pe = useCallback(
10702
- ({ children: te }) => {
10703
- var oe, ae;
10702
+ ), ue = useCallback(
10703
+ ({ children: ne }) => {
10704
+ var oe, ie;
10704
10705
  return l ? React.createElement(
10705
10706
  SortableContext$1,
10706
10707
  {
10707
- items: ((ae = (oe = K.current) == null ? void 0 : oe.map) == null ? void 0 : ae.call(oe, Z)) || []
10708
+ items: ((ie = (oe = K.current) == null ? void 0 : oe.map) == null ? void 0 : ie.call(oe, ee)) || []
10708
10709
  },
10709
- te
10710
- ) : React.createElement(React.Fragment, {}, te);
10710
+ ne
10711
+ ) : React.createElement(React.Fragment, {}, ne);
10711
10712
  },
10712
- [l, Z]
10713
+ [l, ee]
10713
10714
  // Don't put 'value' in dependencies, otherwise it will cause the dropdown component to disappear immediately when adding association fields to the table
10714
- ), { height: ce, tableSizeRefCallback: fe } = useTableSize(), ge = useMemo(() => ({
10715
+ ), { height: le, tableSizeRefCallback: me } = useTableSize(), xe = useMemo(() => ({
10715
10716
  x: "max-content",
10716
- y: ce
10717
- }), [ce, Q]), Ce = useCallback(
10718
- (te) => z.includes(te[m]) ? X : "",
10719
- [z, X, JSON.stringify(m)]
10720
- ), me = useCallback(
10721
- (te, oe) => {
10722
- const ae = te ? [...O, oe[F.getPrimaryKey()]] : O.filter((le) => oe[F.getPrimaryKey()] !== le);
10723
- $(ae), g == null || g(te, oe);
10717
+ y: le
10718
+ }), [le, J]), Ce = useCallback(
10719
+ (ne) => z.includes(ne[m]) ? Y : "",
10720
+ [z, Y, JSON.stringify(m)]
10721
+ ), he = useCallback(
10722
+ (ne, oe) => {
10723
+ const ie = ne ? [...O, oe[F.getPrimaryKey()]] : O.filter((ce) => oe[F.getPrimaryKey()] !== ce);
10724
+ $(ie), g == null || g(ne, oe);
10724
10725
  },
10725
10726
  [O, g, F]
10726
- ), xe = useMemo(() => ({
10727
- onExpand: me,
10727
+ ), fe = useMemo(() => ({
10728
+ onExpand: he,
10728
10729
  expandedRowKeys: O
10729
- }), [O, me]);
10730
+ }), [O, he]);
10730
10731
  return (
10731
10732
  // If spinning is set to undefined, it will cause the subtable to always display loading, so we need to convert it here.
10732
10733
  // We use Spin here instead of Table's loading prop because using Spin here reduces unnecessary re-renders.
10733
10734
  /* @__PURE__ */ jsx(HighPerformanceSpin, { spinning: !!f, children: /* @__PURE__ */ jsx(BlockRequestLoadingContext.Provider, { value: !1, children: /* @__PURE__ */ jsx(
10734
10735
  InternalNocoBaseTable$1,
10735
10736
  P(x(x({
10736
- tableHeight: ce,
10737
- SortableWrapper: pe,
10738
- tableSizeRefCallback: fe,
10739
- defaultRowKey: J,
10740
- dataSource: Q
10741
- }, S), ie), {
10737
+ tableHeight: le,
10738
+ SortableWrapper: ue,
10739
+ tableSizeRefCallback: me,
10740
+ defaultRowKey: Q,
10741
+ dataSource: J
10742
+ }, S), se), {
10742
10743
  paginationProps: j,
10743
- components: ne,
10744
+ components: te,
10744
10745
  onTableChange: d,
10745
- onRow: W,
10746
+ onRow: X,
10746
10747
  rowClassName: Ce,
10747
- scroll: ge,
10748
+ scroll: xe,
10748
10749
  columns: R,
10749
- expandable: xe,
10750
+ expandable: fe,
10750
10751
  field: y,
10751
10752
  size: I
10752
10753
  })
@@ -10980,7 +10981,7 @@ const InternalTableBlockProvider = (e) => {
10980
10981
  [t, p]
10981
10982
  ), F = useCallback(
10982
10983
  (R, O, $, A) => {
10983
- var Z;
10984
+ var ee;
10984
10985
  const {
10985
10986
  association: E = !1,
10986
10987
  cached: z = {},
@@ -10990,30 +10991,30 @@ const InternalTableBlockProvider = (e) => {
10990
10991
  exceptInterfaces: H = [],
10991
10992
  prefixFieldValue: U = "",
10992
10993
  usePrefix: K = !1,
10993
- dataSource: X
10994
+ dataSource: Y
10994
10995
  } = A || {};
10995
10996
  if (L.length - 1 > V)
10996
10997
  return;
10997
10998
  if (z[R])
10998
10999
  return _.cloneDeep(z[R]);
10999
11000
  O && typeof O == "string" && (O = [O]), $ && typeof $ == "string" && ($ = [$]);
11000
- const W = b(R, X), J = (Z = W == null ? void 0 : W.filter(
11001
- (Q) => Q.interface && !H.includes(Q.interface) && (G || O && O.includes(Q.type) || $ && $.includes(Q.interface) || (E && Q.target && Q.target !== R && Array.isArray(E) ? E.includes(Q.interface) : !1))
11002
- )) == null ? void 0 : Z.map((Q) => {
11003
- var ne, re;
11004
- const ee = x({
11005
- value: K && U ? `${U}.${Q.name}` : Q.name,
11006
- label: f((ne = Q == null ? void 0 : Q.uiSchema) == null ? void 0 : ne.title) || Q.name
11007
- }, Q);
11008
- return E && Q.target && (ee.children = L.includes(Q.target) ? [] : F(Q.target, O, $, P(x({}, A), {
11001
+ const X = b(R, Y), Q = (ee = X == null ? void 0 : X.filter(
11002
+ (J) => J.interface && !H.includes(J.interface) && (G || O && O.includes(J.type) || $ && $.includes(J.interface) || (E && J.target && J.target !== R && Array.isArray(E) ? E.includes(J.interface) : !1))
11003
+ )) == null ? void 0 : ee.map((J) => {
11004
+ var te, re;
11005
+ const Z = x({
11006
+ value: K && U ? `${U}.${J.name}` : J.name,
11007
+ label: f((te = J == null ? void 0 : J.uiSchema) == null ? void 0 : te.title) || J.name
11008
+ }, J);
11009
+ return E && J.target && (Z.children = L.includes(J.target) ? [] : F(J.target, O, $, P(x({}, A), {
11009
11010
  cached: z,
11010
- dataSource: X,
11011
- collectionNames: [...L, Q.target],
11012
- prefixFieldValue: K ? U ? `${U}.${Q.name}` : Q.name : "",
11011
+ dataSource: Y,
11012
+ collectionNames: [...L, J.target],
11013
+ prefixFieldValue: K ? U ? `${U}.${J.name}` : J.name : "",
11013
11014
  usePrefix: K
11014
- })), !((re = ee.children) != null && re.length)) ? null : ee;
11015
+ })), !((re = Z.children) != null && re.length)) ? null : Z;
11015
11016
  }).filter(Boolean);
11016
- return z[R] = J, J;
11017
+ return z[R] = Q, Q;
11017
11018
  },
11018
11019
  [b]
11019
11020
  ), w = useCallback(
@@ -11085,7 +11086,7 @@ function SelectWithTitle(i) {
11085
11086
  onChange: n,
11086
11087
  options: o,
11087
11088
  fieldNames: r
11088
- } = l, a = Y(l, [
11089
+ } = l, a = W(l, [
11089
11090
  "title",
11090
11091
  "defaultValue",
11091
11092
  "onChange",
@@ -11133,7 +11134,7 @@ const DataSourceApplicationProvider = (o) => {
11133
11134
  var r = o, {
11134
11135
  children: e,
11135
11136
  dataSourceManager: t
11136
- } = r, n = Y(r, [
11137
+ } = r, n = W(r, [
11137
11138
  "children",
11138
11139
  "dataSourceManager"
11139
11140
  ]);
@@ -11610,10 +11611,10 @@ const AllDataBlocksContext = React.createContext({
11610
11611
  getAllDataBlocks: t
11611
11612
  };
11612
11613
  }, WithForm$1 = (e) => {
11613
- const c = e, { children: t, form: n } = c, o = Y(c, ["children", "form"]), r = useContext(SchemaOptionsContext), a = useContext(SchemaExpressionScopeContext), i = x(x({}, r == null ? void 0 : r.scope), a), l = x({}, r == null ? void 0 : r.components);
11614
+ const c = e, { children: t, form: n } = c, o = W(c, ["children", "form"]), r = useContext(SchemaOptionsContext), a = useContext(SchemaExpressionScopeContext), i = x(x({}, r == null ? void 0 : r.scope), a), l = x({}, r == null ? void 0 : r.components);
11614
11615
  return /* @__PURE__ */ jsx(FormProvider$1, P(x({}, o), { form: n, children: /* @__PURE__ */ jsx(SchemaComponentOptions, { components: l, scope: i, children: t }) }));
11615
11616
  }, WithoutForm$1 = (e) => {
11616
- const c = e, { children: t } = c, n = Y(c, ["children"]), o = useContext(SchemaOptionsContext), r = useContext(SchemaExpressionScopeContext), a = x(x({}, o == null ? void 0 : o.scope), r), i = x({}, o == null ? void 0 : o.components), l = useMemo(() => createForm(), []);
11617
+ const c = e, { children: t } = c, n = W(c, ["children"]), o = useContext(SchemaOptionsContext), r = useContext(SchemaExpressionScopeContext), a = x(x({}, o == null ? void 0 : o.scope), r), i = x({}, o == null ? void 0 : o.components), l = useMemo(() => createForm(), []);
11617
11618
  return /* @__PURE__ */ jsx(FormProvider$1, P(x({}, n), { form: l, children: /* @__PURE__ */ jsx(SchemaComponentOptions, { components: i, scope: a, children: t }) }));
11618
11619
  }, FormProvider = (e) => e.form ? /* @__PURE__ */ jsx(WithForm$1, x({}, e)) : /* @__PURE__ */ jsx(WithoutForm$1, x({}, e)), CollectionHistoryContext = createContext({
11619
11620
  historyCollections: [],
@@ -12255,7 +12256,7 @@ const designerCss$4 = ({ margin: e = "-18px -16px", padding: t = "18px 16px" } =
12255
12256
  }, SchemaToolbarContext = createContext({});
12256
12257
  SchemaToolbarContext.displayName = "SchemaToolbarContext";
12257
12258
  const SchemaToolbarProvider = (e) => {
12258
- const o = e, { children: t } = o, n = Y(o, ["children"]);
12259
+ const o = e, { children: t } = o, n = W(o, ["children"]);
12259
12260
  return /* @__PURE__ */ jsx(SchemaToolbarContext.Provider, { value: n, children: t });
12260
12261
  };
12261
12262
  function useSchemaToolbar() {
@@ -13099,7 +13100,7 @@ const useCurrentUserSettingsMenu = () => {
13099
13100
  [e, t]
13100
13101
  );
13101
13102
  }, filterProperties = (e) => e["x-component"] === "Action.Container", FieldLink = (e) => {
13102
- const d = e, { WrappedComponent: t } = d, n = Y(d, ["WrappedComponent"]), o = useFieldSchema(), { openPopup: r } = usePopupUtils(), a = useRef(!1), i = useInsertSchema(), l = useRef(o);
13103
+ const d = e, { WrappedComponent: t } = d, n = W(d, ["WrappedComponent"]), o = useFieldSchema(), { openPopup: r } = usePopupUtils(), a = useRef(!1), i = useInsertSchema(), l = useRef(o);
13103
13104
  l.current = o;
13104
13105
  const c = useCallback(() => l.current, []), u = useCallback(() => {
13105
13106
  o.properties || (i(popupSchema), a.current = !0), a.current ? (setTimeout(() => {
@@ -14614,7 +14615,10 @@ const getActionContext = (e) => {
14614
14615
  getAllCollectionsInheritChain: h
14615
14616
  }),
14616
14617
  renderSchemaComponent: function(G) {
14617
- const H = useMemo(() => _.cloneDeep(D) || {}, []);
14618
+ const H = useMemo(
14619
+ () => _.cloneDeep(D.toJSON()) || {},
14620
+ []
14621
+ );
14618
14622
  H["x-read-pretty"] = !1, H["x-disabled"] = !1, _.set(H, "x-decorator-props.showTitle", !1);
14619
14623
  const U = getFieldDefaultValue(H, T);
14620
14624
  T.target && H["x-component-props"] && (H["x-component-props"].mode = "Select"), T != null && T.uiSchema.type && (H.type = T.uiSchema.type), (T == null ? void 0 : T.uiSchema["x-component"]) === "Checkbox" && (_.set(H, "x-component-props.defaultChecked", U), H.type = "void");
@@ -15592,11 +15596,11 @@ const useGetFilterOptions = () => {
15592
15596
  defaultFilter: ((z = (E = (A = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : A.service) == null ? void 0 : E.params) == null ? void 0 : z.filter) || {},
15593
15597
  form: r,
15594
15598
  onSubmit: ({ filter: H }) => {
15595
- var K, X;
15599
+ var K, Y;
15596
15600
  H = removeNullCondition(H), set(l.componentProps, "service.params.filter", H), n["x-component-props"] = l.componentProps;
15597
- const U = (X = l.path) == null ? void 0 : X.splice(((K = l.path) == null ? void 0 : K.length) - 1, 1);
15598
- l.form.query(`${U.concat("*." + n.name)}`).forEach((W) => {
15599
- W.componentProps.service = W.componentProps.service || { params: {} }, W.componentProps.service.params.filter = H;
15601
+ const U = (Y = l.path) == null ? void 0 : Y.splice(((K = l.path) == null ? void 0 : K.length) - 1, 1);
15602
+ l.form.query(`${U.concat("*." + n.name)}`).forEach((X) => {
15603
+ X.componentProps.service = X.componentProps.service || { params: {} }, X.componentProps.service.params.filter = H;
15600
15604
  }), d.emit("patch", {
15601
15605
  schema: {
15602
15606
  "x-uid": n["x-uid"],
@@ -15680,14 +15684,14 @@ const useGetFilterOptions = () => {
15680
15684
  options: m,
15681
15685
  value: p == null ? void 0 : p.label,
15682
15686
  onChange: (H) => {
15683
- var X, W, J, Z, Q;
15684
- const U = P(x(x({}, (W = (X = o == null ? void 0 : o.uiSchema) == null ? void 0 : X["x-component-props"]) == null ? void 0 : W.fieldNames), (J = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : J.fieldNames), {
15687
+ var Y, X, Q, ee, J;
15688
+ const U = P(x(x({}, (X = (Y = o == null ? void 0 : o.uiSchema) == null ? void 0 : Y["x-component-props"]) == null ? void 0 : X.fieldNames), (Q = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : Q.fieldNames), {
15685
15689
  label: H
15686
15690
  });
15687
15691
  _.set(n, "x-component-props.fieldNames", U);
15688
- const K = (Q = l.path) == null ? void 0 : Q.splice(((Z = l.path) == null ? void 0 : Z.length) - 1, 1);
15689
- l.form.query(`${K.concat("*." + n.name)}`).forEach((ee) => {
15690
- ee.componentProps.fieldNames = U;
15692
+ const K = (J = l.path) == null ? void 0 : J.splice(((ee = l.path) == null ? void 0 : ee.length) - 1, 1);
15693
+ l.form.query(`${K.concat("*." + n.name)}`).forEach((Z) => {
15694
+ Z.componentProps.fieldNames = U;
15691
15695
  }), d.emit("patch", {
15692
15696
  schema: {
15693
15697
  "x-uid": n["x-uid"],
@@ -15741,14 +15745,14 @@ const useGetFilterOptions = () => {
15741
15745
  title: c("Required"),
15742
15746
  checked: n.required,
15743
15747
  onChange: (H) => {
15744
- var X, W;
15748
+ var Y, X;
15745
15749
  const U = {
15746
15750
  "x-uid": n["x-uid"]
15747
15751
  };
15748
15752
  n.required = H, U.required = H;
15749
- const K = (W = l.path) == null ? void 0 : W.splice(((X = l.path) == null ? void 0 : X.length) - 1, 1);
15750
- l.form.query(`${K.concat("*." + n.name)}`).forEach((J) => {
15751
- J.required = H;
15753
+ const K = (X = l.path) == null ? void 0 : X.splice(((Y = l.path) == null ? void 0 : Y.length) - 1, 1);
15754
+ l.form.query(`${K.concat("*." + n.name)}`).forEach((Q) => {
15755
+ Q.required = H;
15752
15756
  }), d.emit("patch", {
15753
15757
  schema: U
15754
15758
  }), d.refresh();
@@ -15767,26 +15771,26 @@ const useGetFilterOptions = () => {
15767
15771
  ],
15768
15772
  value: T,
15769
15773
  onChange: (H) => {
15770
- var X, W;
15774
+ var Y, X;
15771
15775
  const U = {
15772
15776
  "x-uid": n["x-uid"]
15773
- }, K = (W = l.path) == null ? void 0 : W.splice(((X = l.path) == null ? void 0 : X.length) - 1, 1);
15777
+ }, K = (X = l.path) == null ? void 0 : X.splice(((Y = l.path) == null ? void 0 : Y.length) - 1, 1);
15774
15778
  switch (H) {
15775
15779
  case "readonly": {
15776
- n["x-read-pretty"] = !1, n["x-disabled"] = !0, U["x-read-pretty"] = !1, U["x-disabled"] = !0, l.form.query(`${K.concat("*." + n.name)}`).forEach((J) => {
15777
- J.readonly = !0, J.disabled = !0;
15780
+ n["x-read-pretty"] = !1, n["x-disabled"] = !0, U["x-read-pretty"] = !1, U["x-disabled"] = !0, l.form.query(`${K.concat("*." + n.name)}`).forEach((Q) => {
15781
+ Q.readonly = !0, Q.disabled = !0;
15778
15782
  });
15779
15783
  break;
15780
15784
  }
15781
15785
  case "read-pretty": {
15782
- n["x-read-pretty"] = !0, n["x-disabled"] = !1, U["x-read-pretty"] = !0, U["x-disabled"] = !1, l.form.query(`${K.concat("*." + n.name)}`).forEach((J) => {
15783
- J.readPretty = !0;
15786
+ n["x-read-pretty"] = !0, n["x-disabled"] = !1, U["x-read-pretty"] = !0, U["x-disabled"] = !1, l.form.query(`${K.concat("*." + n.name)}`).forEach((Q) => {
15787
+ Q.readPretty = !0;
15784
15788
  });
15785
15789
  break;
15786
15790
  }
15787
15791
  default: {
15788
- n["x-read-pretty"] = !1, n["x-disabled"] = !1, U["x-read-pretty"] = !1, U["x-disabled"] = !1, l.form.query(`${K.concat("*." + n.name)}`).forEach((J) => {
15789
- J.readPretty = !1, J.disabled + !1;
15792
+ n["x-read-pretty"] = !1, n["x-disabled"] = !1, U["x-read-pretty"] = !1, U["x-disabled"] = !1, l.form.query(`${K.concat("*." + n.name)}`).forEach((Q) => {
15793
+ Q.readPretty = !1, Q.disabled + !1;
15790
15794
  });
15791
15795
  break;
15792
15796
  }
@@ -15804,10 +15808,10 @@ const useGetFilterOptions = () => {
15804
15808
  {
15805
15809
  fieldSchema: n,
15806
15810
  onSubmitCallBack: (H) => {
15807
- var K, X;
15808
- const U = (X = l.path) == null ? void 0 : X.splice(((K = l.path) == null ? void 0 : K.length) - 1, 1);
15809
- l.form.query(`${U.concat("*." + n.name)}`).forEach((W) => {
15810
- W.componentProps.service = W.componentProps.service || { params: {} }, W.componentProps.service.params.sort = H;
15811
+ var K, Y;
15812
+ const U = (Y = l.path) == null ? void 0 : Y.splice(((K = l.path) == null ? void 0 : K.length) - 1, 1);
15813
+ l.form.query(`${U.concat("*." + n.name)}`).forEach((X) => {
15814
+ X.componentProps.service = X.componentProps.service || { params: {} }, X.componentProps.service.params.sort = H;
15811
15815
  });
15812
15816
  }
15813
15817
  }
@@ -16537,7 +16541,7 @@ function useFieldComponentName() {
16537
16541
  return c[u] || u;
16538
16542
  }
16539
16543
  const SchemaSettingsChildErrorFallback = (e) => {
16540
- const o = e, { title: t } = o, n = Y(o, ["title"]);
16544
+ const o = e, { title: t } = o, n = W(o, ["title"]);
16541
16545
  return /* @__PURE__ */ jsx(SchemaSettingsItem, { title: t, children: /* @__PURE__ */ jsx(ErrorFallback.Modal, x({}, n)) });
16542
16546
  }, getFallbackComponent = _.memoize((e) => (t) => /* @__PURE__ */ jsx(SchemaSettingsChildErrorFallback, P(x({}, t), { title: e }))), SchemaSettingsChildren = (e) => {
16543
16547
  const { children: t } = e, { visible: n } = useSchemaSettings(), o = useRef(!1), r = useFieldComponentName();
@@ -16596,7 +16600,7 @@ const SchemaSettingsChildErrorFallback = (e) => {
16596
16600
  });
16597
16601
  SchemaSettingsIcon.displayName = "SchemaSettingsIcon";
16598
16602
  const SchemaSettingsWrapper = React.memo((e) => {
16599
- const p = e, { items: t, Component: n = SchemaSettingsIcon, name: o, componentProps: r, style: a } = p, i = Y(p, ["items", "Component", "name", "componentProps", "style"]), { dn: l } = useDesignable(), c = useField(), u = useFieldSchema(), d = useMemo(
16603
+ const p = e, { items: t, Component: n = SchemaSettingsIcon, name: o, componentProps: r, style: a } = p, i = W(p, ["items", "Component", "name", "componentProps", "style"]), { dn: l } = useDesignable(), c = useField(), u = useFieldSchema(), d = useMemo(
16600
16604
  () => x({
16601
16605
  options: e,
16602
16606
  style: a
@@ -17395,7 +17399,7 @@ const useFormItemInitializerFields = (e) => {
17395
17399
  template: i,
17396
17400
  settings: l,
17397
17401
  action: c = "list"
17398
- } = m, u = Y(m, [
17402
+ } = m, u = W(m, [
17399
17403
  "formItemInitializers",
17400
17404
  "actionInitializers",
17401
17405
  "collection",
@@ -17471,7 +17475,7 @@ const useFormItemInitializerFields = (e) => {
17471
17475
  template: d,
17472
17476
  title: p,
17473
17477
  settings: m
17474
- } = C, h = Y(C, [
17478
+ } = C, h = W(C, [
17475
17479
  "formItemInitializers",
17476
17480
  "actionInitializers",
17477
17481
  "collection",
@@ -17543,7 +17547,7 @@ const useFormItemInitializerFields = (e) => {
17543
17547
  resource: i,
17544
17548
  template: l,
17545
17549
  settings: c
17546
- } = m, u = Y(m, [
17550
+ } = m, u = W(m, [
17547
17551
  "formItemInitializers",
17548
17552
  "actionInitializers",
17549
17553
  "collection",
@@ -17609,7 +17613,7 @@ const useFormItemInitializerFields = (e) => {
17609
17613
  dataSource: c,
17610
17614
  blockType: u,
17611
17615
  pageSize: d = 20
17612
- } = h, p = Y(h, [
17616
+ } = h, p = W(h, [
17613
17617
  "collection",
17614
17618
  "rowKey",
17615
17619
  "tableActionInitializers",
@@ -18181,7 +18185,7 @@ const useStyles$g = genStyleHook("nb-schema-toolbar", (e) => {
18181
18185
  }
18182
18186
  ) })) : null;
18183
18187
  }, InternalSchemaToolbar = React.memo((e) => {
18184
- var X;
18188
+ var Y;
18185
18189
  const t = useFieldSchema(), {
18186
18190
  title: n,
18187
18191
  initializer: o,
@@ -18212,46 +18216,46 @@ const useStyles$g = genStyleHook("nb-schema-toolbar", (e) => {
18212
18216
  o || (t == null ? void 0 : t["x-initializer"]),
18213
18217
  t == null ? void 0 : t["x-initializer-props"]
18214
18218
  ), A = useGridRowContext(), E = useGridContext(), z = useMemo(() => {
18215
- var W;
18219
+ var X;
18216
18220
  return {
18217
18221
  insertPosition: "afterEnd",
18218
- wrap: ((W = A == null ? void 0 : A.cols) == null ? void 0 : W.length) === 1 ? gridRowColWrap : void 0,
18219
- Component: (J) => /* @__PURE__ */ jsx(
18222
+ wrap: ((X = A == null ? void 0 : A.cols) == null ? void 0 : X.length) === 1 ? gridRowColWrap : void 0,
18223
+ Component: (Q) => /* @__PURE__ */ jsx(
18220
18224
  PlusOutlined,
18221
- P(x({}, J), {
18225
+ P(x({}, Q), {
18222
18226
  role: "button",
18223
18227
  "aria-label": v("schema-initializer"),
18224
18228
  style: { cursor: "pointer", fontSize: 14 }
18225
18229
  })
18226
18230
  )
18227
18231
  };
18228
- }, [v, (X = A == null ? void 0 : A.cols) == null ? void 0 : X.length]), L = useMemo(() => u === !1 || C === !1 ? null : /* @__PURE__ */ jsx(DragHandler, { children: /* @__PURE__ */ jsx(DragOutlined, { role: "button", "aria-label": v("drag-handler") }) }), [u, v, C]), V = useMemo(() => {
18229
- var W;
18232
+ }, [v, (Y = A == null ? void 0 : A.cols) == null ? void 0 : Y.length]), L = useMemo(() => u === !1 || C === !1 ? null : /* @__PURE__ */ jsx(DragHandler, { children: /* @__PURE__ */ jsx(DragOutlined, { role: "button", "aria-label": v("drag-handler") }) }), [u, v, C]), V = useMemo(() => {
18233
+ var X;
18230
18234
  if (o === !1)
18231
18235
  return null;
18232
18236
  if ($)
18233
18237
  return O(z);
18234
18238
  if (E != null && E.InitializerComponent || E != null && E.renderSchemaInitializer)
18235
- return E != null && E.InitializerComponent ? /* @__PURE__ */ jsx(E.InitializerComponent, x({}, z)) : (W = E.renderSchemaInitializer) == null ? void 0 : W.call(E, z);
18239
+ return E != null && E.InitializerComponent ? /* @__PURE__ */ jsx(E.InitializerComponent, x({}, z)) : (X = E.renderSchemaInitializer) == null ? void 0 : X.call(E, z);
18236
18240
  }, [E, o, z, $, O]), G = useMemo(() => r !== !1 && R ? j() : null, [R, j, r]), H = useRef(null), U = "hidden";
18237
18241
  useEffect(() => {
18238
- const W = H.current;
18239
- let J = W == null ? void 0 : W.parentElement;
18240
- for (; J && J.clientHeight === 0; )
18241
- J = J.parentElement;
18242
- const Z = g || J;
18243
- if (!Z)
18242
+ const X = H.current;
18243
+ let Q = X == null ? void 0 : X.parentElement;
18244
+ for (; Q && Q.clientHeight === 0; )
18245
+ Q = Q.parentElement;
18246
+ const ee = g || Q;
18247
+ if (!ee)
18244
18248
  return;
18245
- function Q() {
18246
- var ne;
18247
- W && (W.classList.remove(U), (ne = e.onVisibleChange) == null || ne.call(e, !0));
18249
+ function J() {
18250
+ var te;
18251
+ X && (X.classList.remove(U), (te = e.onVisibleChange) == null || te.call(e, !0));
18248
18252
  }
18249
- function ee() {
18250
- var ne;
18251
- W && (W.classList.add(U), (ne = e.onVisibleChange) == null || ne.call(e, !1));
18253
+ function Z() {
18254
+ var te;
18255
+ X && (X.classList.add(U), (te = e.onVisibleChange) == null || te.call(e, !1));
18252
18256
  }
18253
- return Z.addEventListener("mouseenter", Q), Z.addEventListener("mouseleave", ee), () => {
18254
- Z.removeEventListener("mouseenter", Q), Z.removeEventListener("mouseleave", ee);
18257
+ return ee.addEventListener("mouseenter", J), ee.addEventListener("mouseleave", Z), () => {
18258
+ ee.removeEventListener("mouseenter", J), ee.removeEventListener("mouseleave", Z);
18255
18259
  };
18256
18260
  }, [e.onVisibleChange, g]);
18257
18261
  const K = useMemo(
@@ -20272,7 +20276,7 @@ function getSelectedIdFilter(e) {
20272
20276
  } : null;
20273
20277
  }
20274
20278
  function SelectItem(e) {
20275
- const i = e, { title: t, options: n, value: o, onChange: r } = i, a = Y(i, ["title", "options", "value", "onChange"]);
20279
+ const i = e, { title: t, options: n, value: o, onChange: r } = i, a = W(i, ["title", "options", "value", "onChange"]);
20276
20280
  return /* @__PURE__ */ jsx(SchemaSettingsItem, P(x({ title: t }, a), { children: /* @__PURE__ */ jsxs("div", { style: { alignItems: "center", display: "flex", justifyContent: "space-between" }, children: [
20277
20281
  t,
20278
20282
  /* @__PURE__ */ jsx(
@@ -20298,7 +20302,7 @@ const Tree$1 = connect(
20298
20302
  Tree$1.displayName = "Tree";
20299
20303
  const compatibleDataId = (e, t) => e == null ? void 0 : e.map((n) => {
20300
20304
  var l;
20301
- const i = n, { dataId: o } = i, r = Y(i, ["dataId"]), a = x({}, r);
20305
+ const i = n, { dataId: o } = i, r = W(i, ["dataId"]), a = x({}, r);
20302
20306
  return o && (a.dataScope = { $and: [{ id: { $eq: o } }] }, a.titleField = (a == null ? void 0 : a.titleField) || ((l = t == null ? void 0 : t[n.collection]) == null ? void 0 : l.titleField) || "id"), a;
20303
20307
  }), FormDataTemplates = withDynamicSchemaProps(
20304
20308
  observer$1((e) => {
@@ -21784,7 +21788,7 @@ const SchemaSettingsProvider = (e) => {
21784
21788
  );
21785
21789
  return /* @__PURE__ */ jsx(SchemaSettingsContext.Provider, { value: i, children: t });
21786
21790
  }, InternalSchemaSettingsDropdown = React.memo((e) => {
21787
- const f = e, { title: t, dn: n } = f, o = Y(f, ["title", "dn"]), [r, a] = useState(!1), { Component: i, getMenuItems: l } = useMenuItem(), c = useNiceDropdownMaxHeight([r]), [u, d] = useState(!1), p = useContext(SchemaToolbarVisibleContext);
21791
+ const f = e, { title: t, dn: n } = f, o = W(f, ["title", "dn"]), [r, a] = useState(!1), { Component: i, getMenuItems: l } = useMenuItem(), c = useNiceDropdownMaxHeight([r]), [u, d] = useState(!1), p = useContext(SchemaToolbarVisibleContext);
21788
21792
  useEffect(() => {
21789
21793
  p && d(!1);
21790
21794
  }, [p]);
@@ -21821,7 +21825,7 @@ const SchemaSettingsProvider = (e) => {
21821
21825
  )
21822
21826
  ] }));
21823
21827
  }), InternalSchemaSettingsMenu = React.memo((e) => {
21824
- const u = e, { title: t, dn: n } = u, o = Y(u, ["title", "dn"]), [r, a] = useState(!0), { Component: i, getMenuItems: l } = useMenuItem(), c = l(() => e.children);
21828
+ const u = e, { title: t, dn: n } = u, o = W(u, ["title", "dn"]), [r, a] = useState(!0), { Component: i, getMenuItems: l } = useMenuItem(), c = l(() => e.children);
21825
21829
  return /* @__PURE__ */ jsxs(SchemaSettingsProvider, P(x({ visible: r, setVisible: a, dn: n }, o), { children: [
21826
21830
  /* @__PURE__ */ jsx(i, {}),
21827
21831
  /* @__PURE__ */ jsx(Menu$1, { items: c })
@@ -22012,10 +22016,10 @@ const findGridSchema = (e) => e.reduceProperties((t, n) => {
22012
22016
  }
22013
22017
  );
22014
22018
  }, SchemaSettingsSelectItem = (e) => {
22015
- const l = e, { title: t, options: n, value: o, onChange: r, optionRender: a } = l, i = Y(l, ["title", "options", "value", "onChange", "optionRender"]);
22019
+ const l = e, { title: t, options: n, value: o, onChange: r, optionRender: a } = l, i = W(l, ["title", "options", "value", "onChange", "optionRender"]);
22016
22020
  return /* @__PURE__ */ jsx(SchemaSettingsItem, P(x({ title: t }, i), { children: /* @__PURE__ */ jsx(SelectWithTitle, { title: t, defaultValue: o, onChange: r, options: n, optionRender: a }) }));
22017
22021
  }, SchemaSettingsCascaderItem = (e) => {
22018
- const i = e, { title: t, options: n, value: o, onChange: r } = i, a = Y(i, ["title", "options", "value", "onChange"]);
22022
+ const i = e, { title: t, options: n, value: o, onChange: r } = i, a = W(i, ["title", "options", "value", "onChange"]);
22019
22023
  return /* @__PURE__ */ jsx(SchemaSettingsItem, P(x({ title: t }, a), { children: /* @__PURE__ */ jsxs("div", { style: { alignItems: "center", display: "flex", justifyContent: "space-between" }, children: [
22020
22024
  t,
22021
22025
  /* @__PURE__ */ jsx(
@@ -22034,7 +22038,7 @@ const findGridSchema = (e) => e.reduceProperties((t, n) => {
22034
22038
  }, ml32 = { marginLeft: 32 }, MenuItemSwitch = observer$1(({ state: e }) => /* @__PURE__ */ jsx(Switch, { size: "small", checked: e.checked, style: ml32 }));
22035
22039
  MenuItemSwitch.displayName = "MenuItemSwitch";
22036
22040
  const SchemaSettingsSwitchItem = (e) => {
22037
- const a = e, { title: t, onChange: n } = a, o = Y(a, ["title", "onChange"]), [r] = useState(() => observable({ checked: !!e.checked }));
22041
+ const a = e, { title: t, onChange: n } = a, o = W(a, ["title", "onChange"]), [r] = useState(() => observable({ checked: !!e.checked }));
22038
22042
  return /* @__PURE__ */ jsx(
22039
22043
  SchemaSettingsItem,
22040
22044
  P(x({
@@ -22050,7 +22054,7 @@ const SchemaSettingsSwitchItem = (e) => {
22050
22054
  })
22051
22055
  );
22052
22056
  }, SchemaSettingsPopupItem = (e) => {
22053
- const i = e, { schema: t } = i, n = Y(i, ["schema"]), [o, r] = useState(!1), a = useContext(SchemaSettingsContext);
22057
+ const i = e, { schema: t } = i, n = W(i, ["schema"]), [o, r] = useState(!1), a = useContext(SchemaSettingsContext);
22054
22058
  return /* @__PURE__ */ jsxs(ActionContextProvider, { value: { visible: o, setVisible: r }, children: [
22055
22059
  /* @__PURE__ */ jsx(
22056
22060
  SchemaSettingsItem,
@@ -22084,7 +22088,7 @@ const SchemaSettingsSwitchItem = (e) => {
22084
22088
  modalTip: c,
22085
22089
  components: u,
22086
22090
  scope: d
22087
- } = R, p = Y(R, [
22091
+ } = R, p = W(R, [
22088
22092
  "title",
22089
22093
  "onSubmit",
22090
22094
  "width",
@@ -22171,7 +22175,7 @@ const SchemaSettingsModalItem = (e) => {
22171
22175
  noRecord: d = !1,
22172
22176
  ModalContextProvider: p = (K) => /* @__PURE__ */ jsx(Fragment$1, { children: K.children }),
22173
22177
  dialogRootClassName: m
22174
- } = U, h = Y(U, [
22178
+ } = U, h = W(U, [
22175
22179
  "hidden",
22176
22180
  "title",
22177
22181
  "components",
@@ -22191,9 +22195,9 @@ const SchemaSettingsModalItem = (e) => {
22191
22195
  title: n
22192
22196
  }, h), {
22193
22197
  onClick: () => q(void 0, null, function* () {
22194
- const K = l ? yield l() : c, X = _.isFunction(e.schema) ? e.schema() : e.schema;
22198
+ const K = l ? yield l() : c, Y = _.isFunction(e.schema) ? e.schema() : e.schema;
22195
22199
  FormDialog(
22196
- { title: X.title || n, width: u, rootClassName: m },
22200
+ { title: Y.title || n, width: u, rootClassName: m },
22197
22201
  () => /* @__PURE__ */ jsx(VariableScopeContext$1.Provider, { value: E, children: /* @__PURE__ */ jsx(SchemaComponentContext.Provider, { value: A, children: /* @__PURE__ */ jsx(AllDataBlocksContext.Provider, { value: $, children: /* @__PURE__ */ jsx(p, { children: /* @__PURE__ */ jsx(CollectOperators, { defaultOperators: j(), children: /* @__PURE__ */ jsx(VariablesContext.Provider, { value: O, children: /* @__PURE__ */ jsx(BlockContext.Provider, { value: M, children: /* @__PURE__ */ jsx(
22198
22202
  VariablePopupRecordProvider,
22199
22203
  {
@@ -22248,7 +22252,7 @@ const SchemaSettingsModalItem = (e) => {
22248
22252
  {
22249
22253
  components: o,
22250
22254
  scope: r,
22251
- schema: X
22255
+ schema: Y
22252
22256
  }
22253
22257
  ) }) }) }) })
22254
22258
  }
@@ -22269,8 +22273,8 @@ const SchemaSettingsModalItem = (e) => {
22269
22273
  ).open({
22270
22274
  initialValues: K,
22271
22275
  effects: a
22272
- }).then((W) => (i(W), W)).catch((W) => {
22273
- console.error(W);
22276
+ }).then((X) => (i(X), X)).catch((X) => {
22277
+ console.error(X);
22274
22278
  });
22275
22279
  }),
22276
22280
  children: e.children || e.title
@@ -22788,7 +22792,7 @@ const HeightMode = {
22788
22792
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
22789
22793
  `, Json = React.forwardRef(
22790
22794
  (i, a) => {
22791
- var l = i, { value: e, onChange: t, space: n = 2, json5: o = !1 } = l, r = Y(l, ["value", "onChange", "space", "json5"]);
22795
+ var l = i, { value: e, onChange: t, space: n = 2, json5: o = !1 } = l, r = W(l, ["value", "onChange", "space", "json5"]);
22792
22796
  const c = o ? JSON5 : JSON, u = useField(), [d, p] = useState("");
22793
22797
  return useEffect(() => {
22794
22798
  try {
@@ -23275,7 +23279,7 @@ const qrcodeEleId = "qrcode-scanner", QRCodeScannerInner = ({ visible: e, onClos
23275
23279
  ] });
23276
23280
  };
23277
23281
  function InputInner(e) {
23278
- const i = e, { onChange: t, trim: n, enableScan: o } = i, r = Y(i, ["onChange", "trim", "enableScan"]), a = useCallback(
23282
+ const i = e, { onChange: t, trim: n, enableScan: o } = i, r = W(i, ["onChange", "trim", "enableScan"]), a = useCallback(
23279
23283
  (l) => {
23280
23284
  n && (l.target.value = l.target.value.trim()), t == null || t(l);
23281
23285
  },
@@ -23423,7 +23427,7 @@ const ConstantTypes = {
23423
23427
  label: '{{t("String")}}',
23424
23428
  value: "string",
23425
23429
  component: function(r) {
23426
- var a = r, { onChange: t, value: n } = a, o = Y(a, ["onChange", "value"]);
23430
+ var a = r, { onChange: t, value: n } = a, o = W(a, ["onChange", "value"]);
23427
23431
  return /* @__PURE__ */ jsx(Input$3, x({ value: n, onChange: (i) => t(i.target.value) }, o));
23428
23432
  },
23429
23433
  default() {
@@ -23434,7 +23438,7 @@ const ConstantTypes = {
23434
23438
  label: '{{t("Number")}}',
23435
23439
  value: "number",
23436
23440
  component: function(r) {
23437
- var a = r, { onChange: t, value: n } = a, o = Y(a, ["onChange", "value"]);
23441
+ var a = r, { onChange: t, value: n } = a, o = W(a, ["onChange", "value"]);
23438
23442
  return /* @__PURE__ */ jsx(InputNumber$1, x({ value: n, onChange: t }, o));
23439
23443
  },
23440
23444
  default() {
@@ -23445,7 +23449,7 @@ const ConstantTypes = {
23445
23449
  label: '{{t("Boolean")}}',
23446
23450
  value: "boolean",
23447
23451
  component: function(r) {
23448
- var a = r, { onChange: t, value: n } = a, o = Y(a, ["onChange", "value"]);
23452
+ var a = r, { onChange: t, value: n } = a, o = W(a, ["onChange", "value"]);
23449
23453
  const { t: i } = useTranslation();
23450
23454
  return /* @__PURE__ */ jsx(
23451
23455
  Select$1,
@@ -23470,7 +23474,7 @@ const ConstantTypes = {
23470
23474
  label: '{{t("Date")}}',
23471
23475
  value: "date",
23472
23476
  component: function(r) {
23473
- var a = r, { onChange: t, value: n } = a, o = Y(a, ["onChange", "value"]);
23477
+ var a = r, { onChange: t, value: n } = a, o = W(a, ["onChange", "value"]);
23474
23478
  return /* @__PURE__ */ jsx(
23475
23479
  DatePicker$1,
23476
23480
  x({
@@ -23527,8 +23531,8 @@ function getTypedConstantOption(e, t, n) {
23527
23531
  };
23528
23532
  }
23529
23533
  function Input$1(e) {
23530
- var W, J, Z;
23531
- const X = e, {
23534
+ var X, Q, ee;
23535
+ const Y = e, {
23532
23536
  value: t = "",
23533
23537
  onChange: n,
23534
23538
  children: o,
@@ -23542,7 +23546,7 @@ function Input$1(e) {
23542
23546
  parseOptions: p,
23543
23547
  hideVariableButton: m,
23544
23548
  constantAbel: h = !0
23545
- } = X, g = Y(X, [
23549
+ } = Y, g = W(Y, [
23546
23550
  "value",
23547
23551
  "onChange",
23548
23552
  "children",
@@ -23572,10 +23576,10 @@ function Input$1(e) {
23572
23576
  label: I("Constant"),
23573
23577
  [A.value]: "$",
23574
23578
  [A.label]: I("Constant")
23575
- } : a ? getTypedConstantOption(O, a, A) : null : null, [O, a]), z = (W = E == null ? void 0 : E.component) != null ? W : NullComponent, L = Array.isArray(a) ? (Z = (J = a.find((Q) => Array.isArray(Q) && Q[0] === O)) == null ? void 0 : J[1]) != null ? Z : {} : {};
23579
+ } : a ? getTypedConstantOption(O, a, A) : null : null, [O, a]), z = (X = E == null ? void 0 : E.component) != null ? X : NullComponent, L = Array.isArray(a) ? (ee = (Q = a.find((J) => Array.isArray(J) && J[0] === O)) == null ? void 0 : Q[1]) != null ? ee : {} : {};
23576
23580
  let V;
23577
23581
  t == null ? i ? o && N ? V = ["$"] : V = [""] : o ? V = ["$"] : V = [" ", O] : V = o ? ["$"] : [" ", O], m && (V = ["$"]), useEffect(() => {
23578
- const re = E != null ? E : {}, { component: Q } = re, ee = Y(re, ["component"]), ne = [
23582
+ const re = E != null ? E : {}, { component: J } = re, Z = W(re, ["component"]), te = [
23579
23583
  ...i ? [
23580
23584
  {
23581
23585
  value: "",
@@ -23584,49 +23588,49 @@ function Input$1(e) {
23584
23588
  [A.label]: I("Null")
23585
23589
  }
23586
23590
  ] : [],
23587
- ...E ? [v(ee)] : [],
23591
+ ...E ? [v(Z)] : [],
23588
23592
  ...f ? [...f] : []
23589
- ].filter((ie) => !ie.deprecated || ($ == null ? void 0 : $[0]) === ie[A.value]);
23590
- T(ne);
23593
+ ].filter((se) => !se.deprecated || ($ == null ? void 0 : $[0]) === se[A.value]);
23594
+ T(te);
23591
23595
  }, [f, $, E, i]);
23592
- const G = (Q) => q(this, null, function* () {
23593
- var ne;
23594
- const ee = Q[Q.length - 1];
23595
- if (!((ne = ee.children) != null && ne.length) && !ee.isLeaf && ee.loadChildren) {
23596
+ const G = (J) => q(this, null, function* () {
23597
+ var te;
23598
+ const Z = J[J.length - 1];
23599
+ if (!((te = Z.children) != null && te.length) && !Z.isLeaf && Z.loadChildren) {
23596
23600
  let re;
23597
23601
  if ($ && $.length >= 2) {
23598
- for (const ie of $)
23599
- if (ie === ee[A.value]) {
23600
- re = ie;
23602
+ for (const se of $)
23603
+ if (se === Z[A.value]) {
23604
+ re = se;
23601
23605
  break;
23602
23606
  }
23603
23607
  }
23604
- yield ee.loadChildren(ee, re, $), T((ie) => [...ie]);
23608
+ yield Z.loadChildren(Z, re, $), T((se) => [...se]);
23605
23609
  }
23606
23610
  }), H = useCallback(
23607
- (Q, ee) => {
23608
- var ne, re, ie;
23609
- if (Q[0] === "$") {
23610
- M(!0), $ && n(null, ee);
23611
+ (J, Z) => {
23612
+ var te, re, se;
23613
+ if (J[0] === "$") {
23614
+ M(!0), $ && n(null, Z);
23611
23615
  return;
23612
23616
  } else
23613
23617
  M(!1);
23614
- if (Q[0] === "") {
23618
+ if (J[0] === "") {
23615
23619
  n(null);
23616
23620
  return;
23617
23621
  }
23618
- if (Q[0] === " ") {
23619
- Q[1] ? Q[1] !== O && n((ie = (re = (ne = ConstantTypes[Q[1]]) == null ? void 0 : ne.default) == null ? void 0 : re.call(ne)) != null ? ie : null, ee) : $ && n(null, ee);
23622
+ if (J[0] === " ") {
23623
+ J[1] ? J[1] !== O && n((se = (re = (te = ConstantTypes[J[1]]) == null ? void 0 : te.default) == null ? void 0 : re.call(te)) != null ? se : null, Z) : $ && n(null, Z);
23620
23624
  return;
23621
23625
  }
23622
- n(`{{${Q.join(".")}}}`, ee);
23626
+ n(`{{${J.join(".")}}}`, Z);
23623
23627
  },
23624
23628
  [O, $, n]
23625
23629
  ), U = useCallback(() => {
23626
- var Q;
23627
- if (M(!!o), (Q = E == null ? void 0 : E.children) != null && Q.length) {
23628
- const ee = E.children[0].default();
23629
- return n(ee);
23630
+ var J;
23631
+ if (M(!!o), (J = E == null ? void 0 : E.children) != null && J.length) {
23632
+ const Z = E.children[0].default();
23633
+ return n(Z);
23630
23634
  }
23631
23635
  n(null);
23632
23636
  }, [E]);
@@ -23635,19 +23639,19 @@ function Input$1(e) {
23635
23639
  var re;
23636
23640
  if (!$ || w.length <= 1)
23637
23641
  return;
23638
- let ee = null;
23639
- const ne = [];
23640
- for (let ie = 0; ie < $.length; ie++) {
23641
- const pe = $[ie];
23642
+ let Z = null;
23643
+ const te = [];
23644
+ for (let se = 0; se < $.length; se++) {
23645
+ const ue = $[se];
23642
23646
  try {
23643
- if (ie === 0 ? ee = w.find((ce) => ce[A.value] === pe) : (ee.loadChildren && !((re = ee.children) != null && re.length) && (yield ee.loadChildren(ee, pe, $)), ee = ee.children.find((ce) => ce[A.value] === pe)), !ee)
23647
+ if (se === 0 ? Z = w.find((le) => le[A.value] === ue) : (Z.loadChildren && !((re = Z.children) != null && re.length) && (yield Z.loadChildren(Z, ue, $)), Z = Z.children.find((le) => le[A.value] === ue)), !Z)
23644
23648
  return;
23645
- ne.push(ee[A.label]);
23646
- } catch (ce) {
23647
- error(ce);
23649
+ te.push(Z[A.label]);
23650
+ } catch (le) {
23651
+ error(le);
23648
23652
  }
23649
23653
  }
23650
- T([...w]), B([...ne]);
23654
+ T([...w]), B([...te]);
23651
23655
  });
23652
23656
  }, [$, w.length]);
23653
23657
  const K = e.disabled || F.disabled;
@@ -23692,10 +23696,10 @@ function Input$1(e) {
23692
23696
  "aria-label": "variable-tag",
23693
23697
  style: { overflow: "hidden" },
23694
23698
  className: cx("ant-input ant-input-outlined", { "ant-input-disabled": K }, b),
23695
- children: /* @__PURE__ */ jsx(Tag, { color: "blue", children: D.map((Q, ee) => /* @__PURE__ */ jsxs(React.Fragment, { children: [
23696
- ee ? " / " : "",
23697
- Q
23698
- ] }, Q)) })
23699
+ children: /* @__PURE__ */ jsx(Tag, { color: "blue", children: D.map((J, Z) => /* @__PURE__ */ jsxs(React.Fragment, { children: [
23700
+ Z ? " / " : "",
23701
+ J
23702
+ ] }, J)) })
23699
23703
  }
23700
23704
  ),
23701
23705
  K ? null : /* @__PURE__ */ jsx(
@@ -23845,12 +23849,26 @@ function setNativeInputValue(e, t) {
23845
23849
  );
23846
23850
  }
23847
23851
  function RawTextArea(e) {
23848
- const t = useRef(null), m = e, { changeOnSelect: n, component: o = Input$3.TextArea, fieldNames: r, scope: a, buttonClass: i } = m, l = Y(m, ["changeOnSelect", "component", "fieldNames", "scope", "buttonClass"]), c = typeof a == "function" ? a() : a, [u, d] = useState(c || []);
23849
- function p(h) {
23852
+ const t = useRef(null), h = e, {
23853
+ changeOnSelect: n,
23854
+ component: o = Input$3.TextArea,
23855
+ fieldNames: r,
23856
+ scope: a,
23857
+ buttonClass: i,
23858
+ delimiters: l = ["{{", "}}"]
23859
+ } = h, c = W(h, [
23860
+ "changeOnSelect",
23861
+ "component",
23862
+ "fieldNames",
23863
+ "scope",
23864
+ "buttonClass",
23865
+ "delimiters"
23866
+ ]), u = typeof a == "function" ? a() : a, [d, p] = useState(u || []);
23867
+ function m(g) {
23850
23868
  if (!t.current)
23851
23869
  return;
23852
- const g = `{{${h.join(".")}}}`, { textArea: f } = t.current.resizableTextArea, C = f.value.slice(0, f.selectionStart) + g + f.value.slice(f.selectionEnd), b = [f.selectionStart, f.selectionStart + g.length];
23853
- setNativeInputValue(f, C), f.setSelectionRange(...b), f.focus();
23870
+ const f = `${l[0]}${g.join(".")}${l[1]}`, { textArea: C } = t.current.resizableTextArea, b = C.value.slice(0, C.selectionStart) + f + C.value.slice(C.selectionEnd), S = [C.selectionStart, C.selectionStart + f.length];
23871
+ setNativeInputValue(C, b), C.setSelectionRange(...S), C.focus();
23854
23872
  }
23855
23873
  return /* @__PURE__ */ jsxs(
23856
23874
  "div",
@@ -23862,7 +23880,7 @@ function RawTextArea(e) {
23862
23880
  }
23863
23881
  `,
23864
23882
  children: [
23865
- /* @__PURE__ */ jsx(o, P(x({}, l), { ref: t })),
23883
+ /* @__PURE__ */ jsx(o, P(x({}, c), { ref: t })),
23866
23884
  /* @__PURE__ */ jsx(
23867
23885
  Space$1.Compact,
23868
23886
  {
@@ -23885,11 +23903,11 @@ function RawTextArea(e) {
23885
23903
  background-color: transparent;
23886
23904
  `,
23887
23905
  fieldNames: r,
23888
- options: u,
23889
- setOptions: d,
23890
- onInsert: p,
23906
+ options: d,
23907
+ setOptions: p,
23908
+ onInsert: m,
23891
23909
  changeOnSelect: n,
23892
- disabled: l.disabled
23910
+ disabled: c.disabled
23893
23911
  }
23894
23912
  )
23895
23913
  }
@@ -24042,8 +24060,8 @@ function TextArea(e) {
24042
24060
  const { lastChild: U } = V;
24043
24061
  if (U) {
24044
24062
  G.setStartAfter(U), G.setEndAfter(U);
24045
- const K = Array.from(V.childNodes), X = G.startContainer === V ? -1 : K.indexOf(U), W = G.startContainer === V ? -1 : K.indexOf(U);
24046
- D([X, G.startOffset, W, G.endOffset]);
24063
+ const K = Array.from(V.childNodes), Y = G.startContainer === V ? -1 : K.indexOf(U), X = G.startContainer === V ? -1 : K.indexOf(U);
24064
+ D([Y, G.startOffset, X, G.endOffset]);
24047
24065
  }
24048
24066
  }
24049
24067
  }, [F]);
@@ -25737,7 +25755,7 @@ class SchemaComponentPlugin extends Plugin {
25737
25755
  }
25738
25756
  }
25739
25757
  const TabsContext = React.createContext({}), TabsContextProvider = (n) => {
25740
- var o = n, { children: e } = o, t = Y(o, ["children"]);
25758
+ var o = n, { children: e } = o, t = W(o, ["children"]);
25741
25759
  return /* @__PURE__ */ jsx(TabsContext.Provider, { value: t, children: e });
25742
25760
  }, useTabsContext = () => React.useContext(TabsContext), randomNestedSchemaKeyStorage = {}, getRandomNestedSchemaKey = (e) => randomNestedSchemaKeyStorage[e] || (randomNestedSchemaKeyStorage[e] = uid()), deleteRandomNestedSchemaKey = (e) => delete randomNestedSchemaKeyStorage[e], PopupVisibleProviderContext = React.createContext(null), PopupParamsProviderContext = React.createContext(null), AllPopupsPropsProviderContext = React.createContext(null);
25743
25761
  PopupVisibleProviderContext.displayName = "PopupVisibleProviderContext";
@@ -26153,7 +26171,7 @@ const DrawerErrorFallback = (e) => {
26153
26171
  ActionDrawerContent.displayName = "ActionDrawerContent";
26154
26172
  const InternalActionDrawer = observer$1(
26155
26173
  (e) => {
26156
- const F = e, { footerNodeName: t = "Action.Drawer.Footer", zIndex: n, onClose: o } = F, r = Y(F, ["footerNodeName", "zIndex", "onClose"]), { visible: a, setVisible: i, openSize: l = "middle", drawerProps: c } = useActionContext(), u = useFieldSchema(), d = useField(), { t: p } = useTranslation(), { componentCls: m, hashId: h } = useStyles$b(), g = useTabsContext(), f = useZIndexContext(), C = u.reduceProperties((w, T) => T["x-component"] === t ? T : w), { hidden: b } = useCurrentPopupContext(), S = useMemo(() => P(x(x({}, c == null ? void 0 : c.style), r == null ? void 0 : r.style), {
26174
+ const F = e, { footerNodeName: t = "Action.Drawer.Footer", zIndex: n, onClose: o } = F, r = W(F, ["footerNodeName", "zIndex", "onClose"]), { visible: a, setVisible: i, openSize: l = "middle", drawerProps: c } = useActionContext(), u = useFieldSchema(), d = useField(), { t: p } = useTranslation(), { componentCls: m, hashId: h } = useStyles$b(), g = useTabsContext(), f = useZIndexContext(), C = u.reduceProperties((w, T) => T["x-component"] === t ? T : w), { hidden: b } = useCurrentPopupContext(), S = useMemo(() => P(x(x({}, c == null ? void 0 : c.style), r == null ? void 0 : r.style), {
26157
26175
  display: b ? "none" : "block"
26158
26176
  }), [b, c == null ? void 0 : c.style, r == null ? void 0 : r.style]), y = getZIndex("drawer", n || f, e.level || 0), v = useCallback(
26159
26177
  (w) => {
@@ -26263,7 +26281,7 @@ function useDelayedVisible(e, t = 200) {
26263
26281
  }
26264
26282
  const InternalActionModal = observer$1(
26265
26283
  (e) => {
26266
- const I = e, { footerNodeName: t = "Action.Modal.Footer", width: n, zIndex: o, delay: r = 200 } = I, a = Y(I, ["footerNodeName", "width", "zIndex", "delay"]), { visible: i, setVisible: l, openSize: c = "middle", modalProps: u } = useActionContext(), d = n != null ? n : openSizeWidthMap.get(c), p = useFieldSchema(), m = useField(), { token: h } = useToken(), g = useTabsContext(), f = useZIndexContext(), C = p.reduceProperties((F, w) => w["x-component"] === t ? w : F), { hidden: b } = useCurrentPopupContext(), S = !!C, y = getZIndex("modal", o || f, e.level || 0), v = useDelayedVisible(i, r);
26284
+ const I = e, { footerNodeName: t = "Action.Modal.Footer", width: n, zIndex: o, delay: r = 200 } = I, a = W(I, ["footerNodeName", "width", "zIndex", "delay"]), { visible: i, setVisible: l, openSize: c = "middle", modalProps: u } = useActionContext(), d = n != null ? n : openSizeWidthMap.get(c), p = useFieldSchema(), m = useField(), { token: h } = useToken(), g = useTabsContext(), f = useZIndexContext(), C = p.reduceProperties((F, w) => w["x-component"] === t ? w : F), { hidden: b } = useCurrentPopupContext(), S = !!C, y = getZIndex("modal", o || f, e.level || 0), v = useDelayedVisible(i, r);
26267
26285
  return /* @__PURE__ */ jsx(ActionContextNoRerender, { children: /* @__PURE__ */ jsx(zIndexContext.Provider, { value: y, children: /* @__PURE__ */ jsx(TabsContextProvider, P(x({}, g), { tabBarExtraContent: null, children: /* @__PURE__ */ jsx(
26268
26286
  Modal,
26269
26287
  P(x(x({
@@ -26486,7 +26504,7 @@ const SchemaInitializerItemInternal = () => {
26486
26504
  const e = useSchemaInitializerItem();
26487
26505
  return /* @__PURE__ */ jsx(SchemaInitializerItem, x({}, e));
26488
26506
  }, switchStyle = { marginLeft: 20 }, itemStyle = { display: "flex", alignItems: "center", justifyContent: "space-between" }, SchemaInitializerSwitch = (e) => {
26489
- const a = e, { title: t, checked: n } = a, o = Y(a, ["title", "checked"]), r = useCompile();
26507
+ const a = e, { title: t, checked: n } = a, o = W(a, ["title", "checked"]), r = useCompile();
26490
26508
  return /* @__PURE__ */ jsx(SchemaInitializerItem, P(x({}, o), { closeInitializerMenuWhenClick: !1, children: /* @__PURE__ */ jsxs("div", { style: itemStyle, children: [
26491
26509
  r(t),
26492
26510
  /* @__PURE__ */ jsx(Switch, { disabled: e.disabled, style: switchStyle, size: "small", checked: n })
@@ -26518,7 +26536,7 @@ const SchemaInitializerItemInternal = () => {
26518
26536
  hideIfNoChildren: c,
26519
26537
  componentProps: u,
26520
26538
  sort: d
26521
- } = I, p = Y(I, [
26539
+ } = I, p = W(I, [
26522
26540
  "type",
26523
26541
  "Component",
26524
26542
  "component",
@@ -26650,7 +26668,7 @@ const useMenuSearch$1 = (e) => {
26650
26668
  const { items: t } = e;
26651
26669
  return t.length === 0 ? null : /* @__PURE__ */ jsx(SchemaInitializerChildren, { children: t });
26652
26670
  }, SchemaInitializerActionModalItemComponent = React.forwardRef((e, t) => {
26653
- const r = e, { onClick: n } = r, o = Y(r, ["onClick"]);
26671
+ const r = e, { onClick: n } = r, o = W(r, ["onClick"]);
26654
26672
  return /* @__PURE__ */ jsx(SchemaInitializerItem, P(x({ ref: t }, o), { onClick: (a) => n == null ? void 0 : n(a.event, !1) }));
26655
26673
  }), SchemaInitializerActionModal = (e) => {
26656
26674
  const { title: t, icon: n, width: o, schema: r, buttonText: a, btnStyles: i, isItem: l, component: c, onCancel: u, onSubmit: d } = e, { setVisible: p } = useSchemaInitializer(), m = useCallback(() => {
@@ -26748,7 +26766,7 @@ const useMenuSearch$1 = (e) => {
26748
26766
  const e = useSchemaInitializerItem();
26749
26767
  return /* @__PURE__ */ jsx(SchemaInitializerActionModal, x({}, e));
26750
26768
  }, SchemaInitializerSelect = (e) => {
26751
- const h = e, { title: t, options: n, value: o, onChange: r, openOnHover: a, onClick: i } = h, l = Y(h, ["title", "options", "value", "onChange", "openOnHover", "onClick"]), [c, u] = useState(!1), d = useCallback(
26769
+ const h = e, { title: t, options: n, value: o, onChange: r, openOnHover: a, onClick: i } = h, l = W(h, ["title", "options", "value", "onChange", "openOnHover", "onClick"]), [c, u] = useState(!1), d = useCallback(
26752
26770
  (...g) => {
26753
26771
  u(!1), i == null || i(...g);
26754
26772
  },
@@ -26813,7 +26831,7 @@ const useMenuSearch$1 = (e) => {
26813
26831
  [e, t]
26814
26832
  ) };
26815
26833
  }, SchemaInitializerButton = React.memo((e) => {
26816
- const i = e, { style: t, options: n } = i, o = Y(i, ["style", "options"]), r = useCompile(), { getAriaLabel: a } = useGetAriaLabelOfSchemaInitializer();
26834
+ const i = e, { style: t, options: n } = i, o = W(i, ["style", "options"]), r = useCompile(), { getAriaLabel: a } = useGetAriaLabelOfSchemaInitializer();
26817
26835
  return /* @__PURE__ */ jsx(
26818
26836
  Button,
26819
26837
  P(x({
@@ -26915,7 +26933,7 @@ function useGetSchemaInitializerMenuItems(e) {
26915
26933
  }
26916
26934
  if (a.isMenuType) {
26917
26935
  const f = a, { isMenuType: C } = f;
26918
- return Y(f, ["isMenuType"]);
26936
+ return W(f, ["isMenuType"]);
26919
26937
  }
26920
26938
  const d = c || u, p = a.key || `${r}-${u}-${i}`, m = (C) => {
26921
26939
  C.domEvent.stopPropagation(), C.key === p && (a.onClick ? a.onClick(P(x({}, C), { item: a })) : e == null || e(P(x({}, C), { item: a })));
@@ -27159,21 +27177,21 @@ https://requirejs.org/docs/errors.html#` + e);
27159
27177
  }
27160
27178
  }
27161
27179
  function b(A, E, z) {
27162
- var L, V, G, H, U, K, X, W, J, Z, Q, ee, ne = E && E.split("/"), re = i.map, ie = re && re["*"];
27163
- if (A && (A = A.split("/"), X = A.length - 1, i.nodeIdCompat && jsSuffixRegExp.test(A[X]) && (A[X] = A[X].replace(jsSuffixRegExp, "")), A[0].charAt(0) === "." && ne && (ee = ne.slice(0, ne.length - 1), A = ee.concat(A)), C(A), A = A.join("/")), z && re && (ne || ie)) {
27180
+ var L, V, G, H, U, K, Y, X, Q, ee, J, Z, te = E && E.split("/"), re = i.map, se = re && re["*"];
27181
+ if (A && (A = A.split("/"), Y = A.length - 1, i.nodeIdCompat && jsSuffixRegExp.test(A[Y]) && (A[Y] = A[Y].replace(jsSuffixRegExp, "")), A[0].charAt(0) === "." && te && (Z = te.slice(0, te.length - 1), A = Z.concat(A)), C(A), A = A.join("/")), z && re && (te || se)) {
27164
27182
  G = A.split("/");
27165
27183
  e:
27166
27184
  for (H = G.length; H > 0; H -= 1) {
27167
- if (K = G.slice(0, H).join("/"), ne) {
27168
- for (U = ne.length; U > 0; U -= 1)
27169
- if (V = getOwn(re, ne.slice(0, U).join("/")), V && (V = getOwn(V, K), V)) {
27170
- W = V, J = H;
27185
+ if (K = G.slice(0, H).join("/"), te) {
27186
+ for (U = te.length; U > 0; U -= 1)
27187
+ if (V = getOwn(re, te.slice(0, U).join("/")), V && (V = getOwn(V, K), V)) {
27188
+ X = V, Q = H;
27171
27189
  break e;
27172
27190
  }
27173
27191
  }
27174
- !Z && ie && getOwn(ie, K) && (Z = getOwn(ie, K), Q = H);
27192
+ !ee && se && getOwn(se, K) && (ee = getOwn(se, K), J = H);
27175
27193
  }
27176
- !W && Z && (W = Z, J = Q), W && (G.splice(0, J, W), A = G.join("/"));
27194
+ !X && ee && (X = ee, Q = J), X && (G.splice(0, Q, X), A = G.join("/"));
27177
27195
  }
27178
27196
  return L = getOwn(i.pkgs, A), L || A;
27179
27197
  }
@@ -27195,18 +27213,18 @@ https://requirejs.org/docs/errors.html#` + e);
27195
27213
  return z > -1 && (E = A.substring(0, z), A = A.substring(z + 1, A.length)), [E, A];
27196
27214
  }
27197
27215
  function I(A, E, z, L) {
27198
- var V, G, H, U, K = null, X = E ? E.name : null, W = A, J = !0, Z = "";
27199
- return A || (J = !1, A = "_@r" + (g += 1)), U = v(A), K = U[0], A = U[1], K && (K = b(K, X, L), G = getOwn(p, K)), A && (K ? z ? Z = A : G && G.normalize ? Z = G.normalize(A, function(Q) {
27200
- return b(Q, X, L);
27201
- }) : Z = A.indexOf("!") === -1 ? b(A, X, L) : A : (Z = b(A, X, L), U = v(Z), K = U[0], Z = U[1], z = !0, V = o.nameToUrl(Z))), H = K && !G && !z ? "_unnormalized" + (f += 1) : "", {
27216
+ var V, G, H, U, K = null, Y = E ? E.name : null, X = A, Q = !0, ee = "";
27217
+ return A || (Q = !1, A = "_@r" + (g += 1)), U = v(A), K = U[0], A = U[1], K && (K = b(K, Y, L), G = getOwn(p, K)), A && (K ? z ? ee = A : G && G.normalize ? ee = G.normalize(A, function(J) {
27218
+ return b(J, Y, L);
27219
+ }) : ee = A.indexOf("!") === -1 ? b(A, Y, L) : A : (ee = b(A, Y, L), U = v(ee), K = U[0], ee = U[1], z = !0, V = o.nameToUrl(ee))), H = K && !G && !z ? "_unnormalized" + (f += 1) : "", {
27202
27220
  prefix: K,
27203
- name: Z,
27221
+ name: ee,
27204
27222
  parentMap: E,
27205
27223
  unnormalized: !!H,
27206
27224
  url: V,
27207
- originalName: W,
27208
- isDefine: J,
27209
- id: (K ? K + "!" + Z : Z) + H
27225
+ originalName: X,
27226
+ isDefine: Q,
27227
+ id: (K ? K + "!" + ee : ee) + H
27210
27228
  };
27211
27229
  }
27212
27230
  function F(A) {
@@ -27263,11 +27281,11 @@ https://requirejs.org/docs/errors.html#` + e);
27263
27281
  var A, E, z = i.waitSeconds * 1e3, L = z && o.startTime + z < (/* @__PURE__ */ new Date()).getTime(), V = [], G = [], H = !1, U = !0;
27264
27282
  if (!t) {
27265
27283
  if (t = !0, eachProp(c, function(K) {
27266
- var X = K.map, W = X.id;
27267
- if (K.enabled && (X.isDefine || G.push(K), !K.error)) {
27284
+ var Y = K.map, X = Y.id;
27285
+ if (K.enabled && (Y.isDefine || G.push(K), !K.error)) {
27268
27286
  if (!K.inited && L)
27269
- y(W) ? (E = !0, H = !0) : (V.push(W), S(W));
27270
- else if (!K.inited && K.fetched && X.isDefine && (H = !0, !X.prefix))
27287
+ y(X) ? (E = !0, H = !0) : (V.push(X), S(X));
27288
+ else if (!K.inited && K.fetched && Y.isDefine && (H = !0, !Y.prefix))
27271
27289
  return U = !1;
27272
27290
  }
27273
27291
  }), L && V.length)
@@ -27349,12 +27367,12 @@ https://requirejs.org/docs/errors.html#` + e);
27349
27367
  callPlugin: function() {
27350
27368
  var A = this.map, E = A.id, z = I(A.prefix);
27351
27369
  this.depMaps.push(z), w(z, "defined", bind(this, function(L) {
27352
- var V, G, H, U = getOwn(h, this.map.id), K = this.map.name, X = this.map.parentMap ? this.map.parentMap.name : null, W = o.makeRequire(A.parentMap, {
27370
+ var V, G, H, U = getOwn(h, this.map.id), K = this.map.name, Y = this.map.parentMap ? this.map.parentMap.name : null, X = o.makeRequire(A.parentMap, {
27353
27371
  enableBuildCallback: !0
27354
27372
  });
27355
27373
  if (this.map.unnormalized) {
27356
- L.normalize && (K = L.normalize(K, function(J) {
27357
- return b(J, X, !0);
27374
+ L.normalize && (K = L.normalize(K, function(Q) {
27375
+ return b(Q, Y, !0);
27358
27376
  }) || ""), G = I(
27359
27377
  A.prefix + "!" + K,
27360
27378
  this.map.parentMap,
@@ -27362,16 +27380,16 @@ https://requirejs.org/docs/errors.html#` + e);
27362
27380
  ), w(
27363
27381
  G,
27364
27382
  "defined",
27365
- bind(this, function(J) {
27383
+ bind(this, function(Q) {
27366
27384
  this.map.normalizedMap = G, this.init([], function() {
27367
- return J;
27385
+ return Q;
27368
27386
  }, null, {
27369
27387
  enabled: !0,
27370
27388
  ignore: !0
27371
27389
  });
27372
27390
  })
27373
- ), H = getOwn(l, G.id), H && (this.depMaps.push(G), this.events.error && H.on("error", bind(this, function(J) {
27374
- this.emit("error", J);
27391
+ ), H = getOwn(l, G.id), H && (this.depMaps.push(G), this.events.error && H.on("error", bind(this, function(Q) {
27392
+ this.emit("error", Q);
27375
27393
  })), H.enable());
27376
27394
  return;
27377
27395
  }
@@ -27379,21 +27397,21 @@ https://requirejs.org/docs/errors.html#` + e);
27379
27397
  this.map.url = o.nameToUrl(U), this.load();
27380
27398
  return;
27381
27399
  }
27382
- V = bind(this, function(J) {
27400
+ V = bind(this, function(Q) {
27383
27401
  this.init([], function() {
27384
- return J;
27402
+ return Q;
27385
27403
  }, null, {
27386
27404
  enabled: !0
27387
27405
  });
27388
- }), V.error = bind(this, function(J) {
27389
- this.inited = !0, this.error = J, J.requireModules = [E], eachProp(l, function(Z) {
27390
- Z.map.id.indexOf(E + "_unnormalized") === 0 && B(Z.map.id);
27391
- }), T(J);
27392
- }), V.fromText = bind(this, function(J, Z) {
27393
- var Q = A.name, ee = I(Q), ne = useInteractive;
27394
- Z && (J = Z), ne && (useInteractive = !1), F(ee), hasProp(i.config, E) && (i.config[Q] = i.config[E]);
27406
+ }), V.error = bind(this, function(Q) {
27407
+ this.inited = !0, this.error = Q, Q.requireModules = [E], eachProp(l, function(ee) {
27408
+ ee.map.id.indexOf(E + "_unnormalized") === 0 && B(ee.map.id);
27409
+ }), T(Q);
27410
+ }), V.fromText = bind(this, function(Q, ee) {
27411
+ var J = A.name, Z = I(J), te = useInteractive;
27412
+ ee && (Q = ee), te && (useInteractive = !1), F(Z), hasProp(i.config, E) && (i.config[J] = i.config[E]);
27395
27413
  try {
27396
- req.exec(J);
27414
+ req.exec(Q);
27397
27415
  } catch (re) {
27398
27416
  return T(makeError(
27399
27417
  "fromtexteval",
@@ -27402,8 +27420,8 @@ https://requirejs.org/docs/errors.html#` + e);
27402
27420
  [E]
27403
27421
  ));
27404
27422
  }
27405
- ne && (useInteractive = !0), this.depMaps.push(ee), o.completeLoad(Q), W([Q], V);
27406
- }), L.load(A.name, W, V, i);
27423
+ te && (useInteractive = !0), this.depMaps.push(Z), o.completeLoad(J), X([J], V);
27424
+ }), L.load(A.name, X, V, i);
27407
27425
  })), o.enable(z, this), this.pluginMaps[z.id] = z;
27408
27426
  },
27409
27427
  enable: function() {
@@ -27602,9 +27620,9 @@ https://requirejs.org/docs/errors.html#` + e);
27602
27620
  * internal API, not a public one. Use toUrl for the public API.
27603
27621
  */
27604
27622
  nameToUrl: function(A, E, z) {
27605
- var L, V, G, H, U, K, X, W = getOwn(i.pkgs, A);
27606
- if (W && (A = W), X = getOwn(h, A), X)
27607
- return o.nameToUrl(X, E, z);
27623
+ var L, V, G, H, U, K, Y, X = getOwn(i.pkgs, A);
27624
+ if (X && (A = X), Y = getOwn(h, A), Y)
27625
+ return o.nameToUrl(Y, E, z);
27608
27626
  if (req.jsExtRegExp.test(A))
27609
27627
  U = A + (E || "");
27610
27628
  else {
@@ -28707,7 +28725,7 @@ const DataBlockResourceContext = createContext(null), RerenderDataBlockProvider
28707
28725
  return /* @__PURE__ */ jsx(r.Component, { name: r.name, allowNull: o, children: e.children });
28708
28726
  }, DataBlockProvider = withDynamicSchemaProps(
28709
28727
  React.memo((e) => {
28710
- const u = e, { collection: t, association: n, dataSource: o, children: r, hidden: a } = u, i = Y(u, ["collection", "association", "dataSource", "children", "hidden"]), { dn: l } = useDesignable(), c = useFieldSchema();
28728
+ const u = e, { collection: t, association: n, dataSource: o, children: r, hidden: a } = u, i = W(u, ["collection", "association", "dataSource", "children", "hidden"]), { dn: l } = useDesignable(), c = useFieldSchema();
28711
28729
  return a ? null : /* @__PURE__ */ jsx(VariableScope, { scopeId: c == null ? void 0 : c["x-uid"], type: "dataBlock", children: /* @__PURE__ */ jsx(
28712
28730
  DataBlockContext.Provider,
28713
28731
  {
@@ -29358,8 +29376,8 @@ const Markdown = connect(
29358
29376
  };
29359
29377
  Markdown.Void = MarkdownVoid;
29360
29378
  const BlockItemCardContext = createContext({}), BlockItemCard = React.forwardRef((o, n) => {
29361
- var r = o, { children: e } = r, t = Y(r, ["children"]);
29362
- const { token: a } = useToken(), S = t, { title: i, description: l } = S, c = Y(S, ["title", "description"]), u = useMemo(() => ({ marginBottom: a.marginBlock, height: "100%" }), [a.marginBlock]), [d, p] = useState(0), m = useRef(null), { t: h } = useTranslation(), g = useFieldSchema(), f = g == null ? void 0 : g["x-block-linkage-rules"];
29379
+ var r = o, { children: e } = r, t = W(r, ["children"]);
29380
+ const { token: a } = useToken(), S = t, { title: i, description: l } = S, c = W(S, ["title", "description"]), u = useMemo(() => ({ marginBottom: a.marginBlock, height: "100%" }), [a.marginBlock]), [d, p] = useState(0), m = useRef(null), { t: h } = useTranslation(), g = useFieldSchema(), f = g == null ? void 0 : g["x-block-linkage-rules"];
29363
29381
  useEffect(() => {
29364
29382
  const y = setTimeout(() => {
29365
29383
  if (m.current) {
@@ -29566,10 +29584,10 @@ const useCreateActionProps = () => {
29566
29584
  skipValidator: N,
29567
29585
  triggerWorkflows: M
29568
29586
  } = (E = l == null ? void 0 : l["x-action-settings"]) != null ? E : {}, j = (z = a == null ? void 0 : a["x-component-props"]) == null ? void 0 : z.addChild, { successMessage: R } = D || {}, O = {}, $ = Object.keys(T).map((U) => q(this, null, function* () {
29569
- const K = T[U], X = d(U);
29587
+ const K = T[U], Y = d(U);
29570
29588
  if (isVariable$1(K)) {
29571
- const { value: W } = (yield C == null ? void 0 : C.parseVariable(K, b)) || {};
29572
- O[U] = transformVariableValue(W, { targetCollectionField: X });
29589
+ const { value: X } = (yield C == null ? void 0 : C.parseVariable(K, b)) || {};
29590
+ O[U] = transformVariableValue(X, { targetCollectionField: Y });
29573
29591
  } else
29574
29592
  K !== "" && (O[U] = K);
29575
29593
  }));
@@ -29796,7 +29814,7 @@ const useCreateActionProps = () => {
29796
29814
  V.filter || (V.forceUpdate = !0);
29797
29815
  try {
29798
29816
  yield t.update(V);
29799
- } catch (X) {
29817
+ } catch (Y) {
29800
29818
  } finally {
29801
29819
  m.data.loading = !1;
29802
29820
  }
@@ -29830,7 +29848,7 @@ const useCreateActionProps = () => {
29830
29848
  F !== !0 && R === "customize:form:request" && (yield a.submit());
29831
29849
  const O = T.headers ? JSON.parse(T.headers) : {}, $ = T.params ? JSON.parse(T.params) : {}, A = T.data ? JSON.parse(T.data) : {};
29832
29850
  if (R === "customize:form:request" && ["POST", "PUT", "PATCH"].includes(T.method)) {
29833
- const U = i.map((X) => X.name), K = getFormValues({
29851
+ const U = i.map((Y) => Y.name), K = getFormValues({
29834
29852
  filterByTk: n,
29835
29853
  field: c,
29836
29854
  form: a,
@@ -29883,8 +29901,8 @@ const useCreateActionProps = () => {
29883
29901
  } = T || {}, A = {}, E = Object.keys(w).map((H) => q(this, null, function* () {
29884
29902
  const U = w[H], K = d(H);
29885
29903
  if (isVariable$1(U)) {
29886
- const { value: X } = (yield b == null ? void 0 : b.parseVariable(U, S)) || {};
29887
- A[H] = transformVariableValue(X, { targetCollectionField: K });
29904
+ const { value: Y } = (yield b == null ? void 0 : b.parseVariable(U, S)) || {};
29905
+ A[H] = transformVariableValue(Y, { targetCollectionField: K });
29888
29906
  } else
29889
29907
  U !== "" && (A[H] = U);
29890
29908
  }));
@@ -30259,8 +30277,8 @@ const useCreateActionProps = () => {
30259
30277
  (R) => {
30260
30278
  const { targets: O, uid: $ } = findFilterTargets(t);
30261
30279
  o().forEach((A) => {
30262
- var H, U, K, X;
30263
- if (!O.find((W) => W.uid === A.uid))
30280
+ var H, U, K, Y;
30281
+ if (!O.find((X) => X.uid === A.uid))
30264
30282
  return;
30265
30283
  const z = `${$}${t.name}`, L = ((H = A.service.params) == null ? void 0 : H[0]) || {};
30266
30284
  (K = (U = A.service.params) == null ? void 0 : U[1]) != null && K.filters || _.set(A.service.params, "[1].filters", {});
@@ -30270,7 +30288,7 @@ const useCreateActionProps = () => {
30270
30288
  [S]: R
30271
30289
  };
30272
30290
  else {
30273
- if ((X = A.clearSelection) == null || X.call(A), A.dataLoadingMode === "manual")
30291
+ if ((Y = A.clearSelection) == null || Y.call(A), A.dataLoadingMode === "manual")
30274
30292
  return A.clearData();
30275
30293
  delete V[z];
30276
30294
  }
@@ -30965,7 +30983,7 @@ const SortableProvider = (e) => {
30965
30983
  return /* @__PURE__ */ jsx(SortableContext.Provider, { value: i, children: o });
30966
30984
  }, getComputedColor = (e) => new TinyColor(e).setAlpha(0.15).toHex8String(), Sortable = (e) => {
30967
30985
  var C, b;
30968
- const f = e, { component: t, overStyle: n, style: o, children: r, openMode: a } = f, i = Y(f, ["component", "overStyle", "style", "children", "openMode"]), { token: l } = useToken$1(), { draggable: c, droppable: u } = useContext(SortableContext), { isOver: d, setNodeRef: p } = u, m = x({}, o), h = useFieldSchema(), g = (h == null ? void 0 : h["x-component"]) === "Action.Link" || t === "a";
30986
+ const f = e, { component: t, overStyle: n, style: o, children: r, openMode: a } = f, i = W(f, ["component", "overStyle", "style", "children", "openMode"]), { token: l } = useToken$1(), { draggable: c, droppable: u } = useContext(SortableContext), { isOver: d, setNodeRef: p } = u, m = x({}, o), h = useFieldSchema(), g = (h == null ? void 0 : h["x-component"]) === "Action.Link" || t === "a";
30969
30987
  return d && ((C = c == null ? void 0 : c.active) == null ? void 0 : C.id) !== ((b = u == null ? void 0 : u.over) == null ? void 0 : b.id) && (m[g ? "color" : "background"] = getComputedColor(l.colorSettings), Object.assign(m, n)), React.createElement(
30970
30988
  t || "div",
30971
30989
  P(x({
@@ -30986,7 +31004,7 @@ const SortableProvider = (e) => {
30986
31004
  return e.id ? e.id : (n = t.address) == null ? void 0 : n.toString();
30987
31005
  }, InternalSortableItem = observer$1(
30988
31006
  (e) => {
30989
- const l = useSortableItemProps(e), { schema: t, id: n, eid: o, removeParentsIfNoChildren: r } = l, a = Y(l, ["schema", "id", "eid", "removeParentsIfNoChildren"]), i = useMemo(() => {
31007
+ const l = useSortableItemProps(e), { schema: t, id: n, eid: o, removeParentsIfNoChildren: r } = l, a = W(l, ["schema", "id", "eid", "removeParentsIfNoChildren"]), i = useMemo(() => {
30990
31008
  var c, u, d;
30991
31009
  return {
30992
31010
  insertAdjacent: "afterEnd",
@@ -30998,7 +31016,7 @@ const SortableProvider = (e) => {
30998
31016
  },
30999
31017
  { displayName: "InternalSortableItem" }
31000
31018
  ), SortableItem = React.memo((e) => {
31001
- const r = e, { component: t } = r, n = Y(r, ["component"]), { designable: o } = useDesignable();
31019
+ const r = e, { component: t } = r, n = W(r, ["component"]), { designable: o } = useDesignable();
31002
31020
  return o ? /* @__PURE__ */ jsx(InternalSortableItem, x({}, e)) : React.createElement(
31003
31021
  t || "div",
31004
31022
  _.omit(n, ["children", "schema", "overStyle", "openMode", "id", "eid", "removeParentsIfNoChildren"]),
@@ -31070,7 +31088,7 @@ const DragHandler = (e) => {
31070
31088
  { value: "lastYear", label: '{{t("Last Year")}}' },
31071
31089
  { value: "nextYear", label: '{{t("Next Year")}}' }
31072
31090
  ], SmartDatePicker = (e) => {
31073
- const r = e, { isRange: t, defaultValue: n } = r, o = Y(r, ["isRange", "defaultValue"]);
31091
+ const r = e, { isRange: t, defaultValue: n } = r, o = W(r, ["isRange", "defaultValue"]);
31074
31092
  return t ? /* @__PURE__ */ jsx(DatePicker.RangePicker, x({}, o)) : /* @__PURE__ */ jsx(DatePicker.FilterWithPicker, x({}, o));
31075
31093
  }, DateFilterDynamicComponent = (e) => {
31076
31094
  const { value: t, onChange: n } = e, o = useCompile(), { t: r } = useTranslation(), { token: a } = theme.useToken(), [i, l] = useState(!1), c = (d) => {
@@ -33606,7 +33624,7 @@ const actionSettings = new SchemaSettings({
33606
33624
  linkageRulesProps: a,
33607
33625
  schemaSettings: i = "ActionSettings",
33608
33626
  enableDrag: l = !0
33609
- } = f, c = Y(f, [
33627
+ } = f, c = W(f, [
33610
33628
  "modalTip",
33611
33629
  "linkageAction",
33612
33630
  "removeButtonProps",
@@ -38125,9 +38143,9 @@ const enabledIndexColumn$1 = {
38125
38143
  }), U["x-component-props"] = n["x-component-props"], o.componentProps = n["x-component-props"];
38126
38144
  const K = o.path.entire.split(".");
38127
38145
  K.pop();
38128
- const X = K.join(".");
38129
- o.query(`${X}.*[0:].${n.name}`).forEach((W) => {
38130
- W.props.name === n.name && W.setComponentProps({
38146
+ const Y = K.join(".");
38147
+ o.query(`${Y}.*[0:].${n.name}`).forEach((X) => {
38148
+ X.props.name === n.name && X.setComponentProps({
38131
38149
  _maxDate: F(H == null ? void 0 : H._maxDate),
38132
38150
  _minDate: F(H == null ? void 0 : H._minDate)
38133
38151
  });
@@ -39548,7 +39566,7 @@ const variablesStore = {}, getFieldPath$1 = (e, t) => {
39548
39566
  params: {
39549
39567
  appends: S == null ? void 0 : S.appends
39550
39568
  }
39551
- }).then((X) => (clearRequested(U), X.data.data));
39569
+ }).then((Y) => (clearRequested(U), Y.data.data));
39552
39570
  return stashRequested(U, K), K;
39553
39571
  }
39554
39572
  return H == null ? void 0 : H[A];
@@ -40122,7 +40140,7 @@ const ActionLink = withDynamicSchemaProps(
40122
40140
  }
40123
40141
  }), handleError = console.log, Action = withDynamicSchemaProps(
40124
40142
  React.memo((e) => {
40125
- var X;
40143
+ var Y;
40126
40144
  const K = useProps(e), {
40127
40145
  popover: t,
40128
40146
  containerRefKey: n,
@@ -40142,7 +40160,7 @@ const ActionLink = withDynamicSchemaProps(
40142
40160
  onMouseEnter: C,
40143
40161
  refreshDataBlockRequest: b,
40144
40162
  confirmTitle: S
40145
- } = K, y = Y(K, [
40163
+ } = K, y = W(K, [
40146
40164
  "popover",
40147
40165
  "containerRefKey",
40148
40166
  "component",
@@ -40162,31 +40180,31 @@ const ActionLink = withDynamicSchemaProps(
40162
40180
  "onMouseEnter",
40163
40181
  "refreshDataBlockRequest",
40164
40182
  "confirmTitle"
40165
- ]), v = useDesigner(), I = useField(), F = useFieldSchema(), w = useCompile(), T = useCollectionRecordData(), D = w((X = F["x-component-props"]) == null ? void 0 : X.confirm) || g, B = useMemo(
40183
+ ]), v = useDesigner(), I = useField(), F = useFieldSchema(), w = useCompile(), T = useCollectionRecordData(), D = w((Y = F["x-component-props"]) == null ? void 0 : Y.confirm) || g, B = useMemo(
40166
40184
  () => {
40167
- var W;
40168
- return ((W = F == null ? void 0 : F["x-linkage-rules"]) == null ? void 0 : W.filter((J) => !J.disabled)) || [];
40185
+ var X;
40186
+ return ((X = F == null ? void 0 : F["x-linkage-rules"]) == null ? void 0 : X.filter((Q) => !Q.disabled)) || [];
40169
40187
  },
40170
40188
  [F == null ? void 0 : F["x-linkage-rules"]]
40171
40189
  ), { designable: N } = useDesignable(), M = useComponent(o) || o, j = useVariables$1(), R = useLocalVariables$1(), { visibleWithURL: O, setVisibleWithURL: $ } = usePopupUtils(), { setSubmitted: A } = useActionContext(), { getAriaLabel: E } = useGetAriaLabelOfAction(l), z = useCollectionParentRecordData(), L = useApp(), { getAllDataBlocks: V } = useAllDataBlocks(), G = useForm();
40172
40190
  useEffect(() => {
40173
40191
  I.stateOfLinkageRules && setInitialActionState(I);
40174
- const W = uid(), J = [];
40192
+ const X = uid(), Q = [];
40175
40193
  return setTimeout(() => {
40176
- G.addEffects(W, () => {
40177
- forEachLinkageRule(B, (Z, Q) => {
40178
- J.push(
40194
+ G.addEffects(X, () => {
40195
+ forEachLinkageRule(B, (ee, J) => {
40196
+ Q.push(
40179
40197
  reaction(
40180
40198
  () => [getVariableValuesInCondition({ linkageRules: B, localVariables: R })].map((re) => JSON.stringify(re)).join(","),
40181
40199
  () => {
40182
40200
  I.stateOfLinkageRules = {}, linkageAction(
40183
40201
  {
40184
- operator: Z.operator,
40202
+ operator: ee.operator,
40185
40203
  field: I,
40186
- condition: Q.condition,
40204
+ condition: J.condition,
40187
40205
  variables: j,
40188
40206
  localVariables: R,
40189
- conditionType: Q.conditionType,
40207
+ conditionType: J.conditionType,
40190
40208
  variableNameOfLeftCondition: "$nRecord"
40191
40209
  },
40192
40210
  L.jsonLogic
@@ -40198,27 +40216,27 @@ const ActionLink = withDynamicSchemaProps(
40198
40216
  });
40199
40217
  });
40200
40218
  }), () => {
40201
- G.removeEffects(W), J.forEach((Z) => {
40202
- Z();
40219
+ G.removeEffects(X), Q.forEach((ee) => {
40220
+ ee();
40203
40221
  });
40204
40222
  };
40205
40223
  }, [B, T]);
40206
40224
  const H = useCallback(
40207
- (W) => {
40208
- C == null || C(W);
40225
+ (X) => {
40226
+ C == null || C(X);
40209
40227
  },
40210
40228
  [C]
40211
- ), U = useMemo(() => c && ((W, J) => q(void 0, null, function* () {
40212
- var Q, ee;
40213
- yield c == null ? void 0 : c(W, J);
40214
- const Z = ((ee = (Q = F["x-action-settings"]) == null ? void 0 : Q.onSuccess) == null ? void 0 : ee.blocksToRefresh) || [];
40215
- Z.length > 0 && V().forEach((ne) => {
40229
+ ), U = useMemo(() => c && ((X, Q) => q(void 0, null, function* () {
40230
+ var J, Z;
40231
+ yield c == null ? void 0 : c(X, Q);
40232
+ const ee = ((Z = (J = F["x-action-settings"]) == null ? void 0 : J.onSuccess) == null ? void 0 : Z.blocksToRefresh) || [];
40233
+ ee.length > 0 && V().forEach((te) => {
40216
40234
  var re;
40217
- if (Z.includes(ne.uid))
40235
+ if (ee.includes(te.uid))
40218
40236
  try {
40219
- (re = ne.service) == null || re.refresh();
40220
- } catch (ie) {
40221
- console.error("Failed to refresh block:", ne.uid, ie);
40237
+ (re = te.service) == null || re.refresh();
40238
+ } catch (se) {
40239
+ console.error("Failed to refresh block:", te.uid, se);
40222
40240
  }
40223
40241
  });
40224
40242
  })), [c, F, V]);
@@ -40257,8 +40275,8 @@ const ActionLink = withDynamicSchemaProps(
40257
40275
  }),
40258
40276
  { displayName: "Action" }
40259
40277
  ), InternalAction = observer$1(function e(t) {
40260
- var ge, Ce, me, xe, he;
40261
- const fe = t, {
40278
+ var xe, Ce, he, fe, ge;
40279
+ const me = t, {
40262
40280
  containerRefKey: n,
40263
40281
  fieldSchema: o,
40264
40282
  designable: r,
@@ -40286,7 +40304,7 @@ const ActionLink = withDynamicSchemaProps(
40286
40304
  setSubmitted: B,
40287
40305
  getAriaLabel: N,
40288
40306
  parentRecordData: M
40289
- } = fe, j = Y(fe, [
40307
+ } = me, j = W(me, [
40290
40308
  "containerRefKey",
40291
40309
  "fieldSchema",
40292
40310
  "designable",
@@ -40314,24 +40332,24 @@ const ActionLink = withDynamicSchemaProps(
40314
40332
  "setSubmitted",
40315
40333
  "getAriaLabel",
40316
40334
  "parentRecordData"
40317
- ]), [R, O] = useState(!1), { wrapSSR: $, componentCls: A, hashId: E } = useStyles$8(), [z, L] = useState(!1), V = o["x-toolbar-props"] || o["x-designer-props"], G = (ge = o == null ? void 0 : o["x-component-props"]) == null ? void 0 : ge.openMode, H = (Ce = o == null ? void 0 : o["x-component-props"]) == null ? void 0 : Ce.openSize, U = (me = o == null ? void 0 : o["x-component-props"]) == null ? void 0 : me.refreshDataBlockRequest, { modal: K } = App.useApp(), X = useForm(), W = useACLActionParamsContext(), {
40318
- run: J,
40319
- element: Z,
40320
- disabled: Q,
40321
- loading: ee
40322
- } = (F == null ? void 0 : F(w)) || {}, ne = X.disabled || a.disabled || ((xe = a.data) == null ? void 0 : xe.disabled) || I || Q, re = useMemo(() => {
40323
- var de;
40335
+ ]), [R, O] = useState(!1), { wrapSSR: $, componentCls: A, hashId: E } = useStyles$8(), [z, L] = useState(!1), V = o["x-toolbar-props"] || o["x-designer-props"], G = (xe = o == null ? void 0 : o["x-component-props"]) == null ? void 0 : xe.openMode, H = (Ce = o == null ? void 0 : o["x-component-props"]) == null ? void 0 : Ce.openSize, U = (he = o == null ? void 0 : o["x-component-props"]) == null ? void 0 : he.refreshDataBlockRequest, { modal: K } = App.useApp(), Y = useForm(), X = useACLActionParamsContext(), {
40336
+ run: Q,
40337
+ element: ee,
40338
+ disabled: J,
40339
+ loading: Z
40340
+ } = (F == null ? void 0 : F(w)) || {}, te = Y.disabled || a.disabled || ((fe = a.data) == null ? void 0 : fe.disabled) || I || J, re = useMemo(() => {
40341
+ var pe;
40324
40342
  return P(x({}, v), {
40325
- opacity: r && (((de = a == null ? void 0 : a.data) == null ? void 0 : de.hidden) || !W) && 0.1,
40326
- color: ne ? "rgba(0, 0, 0, 0.25)" : v == null ? void 0 : v.color
40343
+ opacity: r && (((pe = a == null ? void 0 : a.data) == null ? void 0 : pe.hidden) || !X) && 0.1,
40344
+ color: te ? "rgba(0, 0, 0, 0.25)" : v == null ? void 0 : v.color
40327
40345
  });
40328
- }, [W, r, (he = a == null ? void 0 : a.data) == null ? void 0 : he.hidden, v, ne]), ie = {
40346
+ }, [X, r, (ge = a == null ? void 0 : a.data) == null ? void 0 : ge.hidden, v, te]), se = {
40329
40347
  designable: r,
40330
40348
  field: a,
40331
- aclCtx: W,
40349
+ aclCtx: X,
40332
40350
  icon: i,
40333
- loading: typeof ee == "boolean" ? ee : l,
40334
- disabled: ne,
40351
+ loading: typeof Z == "boolean" ? Z : l,
40352
+ disabled: te,
40335
40353
  buttonStyle: re,
40336
40354
  handleMouseEnter: c,
40337
40355
  tarComponent: u,
@@ -40347,24 +40365,24 @@ const ActionLink = withDynamicSchemaProps(
40347
40365
  refreshDataBlockRequest: U,
40348
40366
  fieldSchema: o,
40349
40367
  setVisible: O,
40350
- run: J,
40368
+ run: Q,
40351
40369
  confirm: g,
40352
40370
  modal: K,
40353
40371
  setSubmitted: B,
40354
40372
  confirmTitle: f,
40355
40373
  title: y
40356
- }, pe = useCallback(
40357
- (de) => {
40358
- O == null || O(de), D == null || D(de);
40374
+ }, ue = useCallback(
40375
+ (pe) => {
40376
+ O == null || O(pe), D == null || D(pe);
40359
40377
  },
40360
40378
  [D]
40361
40379
  );
40362
- let ce = /* @__PURE__ */ jsx(PopupVisibleProvider, { visible: !1, children: /* @__PURE__ */ jsxs(
40380
+ let le = /* @__PURE__ */ jsx(PopupVisibleProvider, { visible: !1, children: /* @__PURE__ */ jsxs(
40363
40381
  ActionContextProvider,
40364
40382
  {
40365
- button: RenderButton(ie),
40383
+ button: RenderButton(se),
40366
40384
  visible: R || T,
40367
- setVisible: pe,
40385
+ setVisible: ue,
40368
40386
  formValueChanged: z,
40369
40387
  setFormValueChanged: L,
40370
40388
  openMode: G,
@@ -40374,13 +40392,13 @@ const ActionLink = withDynamicSchemaProps(
40374
40392
  setSubmitted: B,
40375
40393
  children: [
40376
40394
  C && /* @__PURE__ */ jsx(NocoBaseRecursionField, { basePath: a.address, onlyRenderProperties: !0, schema: o }),
40377
- !C && /* @__PURE__ */ jsx(RenderButton, x({}, ie)),
40395
+ !C && /* @__PURE__ */ jsx(RenderButton, x({}, se)),
40378
40396
  /* @__PURE__ */ jsx(VariablePopupRecordProvider, { children: !C && t.children }),
40379
- Z
40397
+ ee
40380
40398
  ]
40381
40399
  }
40382
40400
  ) });
40383
- return isBulkEditAction(o) && (ce = /* @__PURE__ */ jsx(TabsContextProvider, { children: ce })), $(b ? /* @__PURE__ */ jsx(TreeRecordProvider, { parent: S, children: ce }) : ce);
40401
+ return isBulkEditAction(o) && (le = /* @__PURE__ */ jsx(TabsContextProvider, { children: le })), $(b ? /* @__PURE__ */ jsx(TreeRecordProvider, { parent: S, children: le }) : le);
40384
40402
  });
40385
40403
  InternalAction.displayName = "InternalAction";
40386
40404
  Action.Popover = function e(t) {
@@ -40461,23 +40479,23 @@ const RenderButton = ({
40461
40479
  localVariables: $
40462
40480
  }, V = useCallback(
40463
40481
  (G, H = !0) => q(void 0, null, function* () {
40464
- var X;
40482
+ var Y;
40465
40483
  if (H && isPortalInBody(G.target))
40466
40484
  return;
40467
40485
  G.preventDefault(), G.stopPropagation();
40468
40486
  const U = yield getVariableValue(M(F == null ? void 0 : F.title, { title: E(y.title) }), L), K = yield getVariableValue(M(F == null ? void 0 : F.content, { title: E(y.title) }), L);
40469
40487
  if (!a && n) {
40470
- const W = () => {
40488
+ const X = () => {
40471
40489
  b ? b(G, () => {
40472
- var J, Z;
40473
- S !== !1 && (T == null || T(!0), (Z = (J = N()) == null ? void 0 : J.refresh) == null || Z.call(J));
40490
+ var Q, ee;
40491
+ S !== !1 && (T == null || T(!0), (ee = (Q = N()) == null ? void 0 : Q.refresh) == null || ee.call(Q));
40474
40492
  }) : isBulkEditAction(y) || !j() ? (v(!0), I == null || I()) : ["view", "update", "create", "customize:popup"].includes(y["x-action"]) && y["x-uid"] ? A.current() : (v(!0), I == null || I());
40475
40493
  };
40476
- (F == null ? void 0 : F.enable) !== !1 && (F != null && F.content) ? (yield (X = z == null ? void 0 : z.submit) == null ? void 0 : X.call(z), w.confirm({
40494
+ (F == null ? void 0 : F.enable) !== !1 && (F != null && F.content) ? (yield (Y = z == null ? void 0 : z.submit) == null ? void 0 : Y.call(z), w.confirm({
40477
40495
  title: M(U, { title: D || B || (t == null ? void 0 : t.title) }),
40478
40496
  content: M(K, { title: D || B || (t == null ? void 0 : t.title) }),
40479
- onOk: W
40480
- })) : W();
40497
+ onOk: X
40498
+ })) : X();
40481
40499
  }
40482
40500
  }),
40483
40501
  [
@@ -40550,7 +40568,7 @@ const RenderButtonInner = observer$1(
40550
40568
  title: S,
40551
40569
  isLink: y,
40552
40570
  onlyIcon: v
40553
- } = O, I = Y(O, [
40571
+ } = O, I = W(O, [
40554
40572
  "designable",
40555
40573
  "field",
40556
40574
  "aclCtx",
@@ -40587,7 +40605,7 @@ const RenderButtonInner = observer$1(
40587
40605
  const T = useMemo(
40588
40606
  () => React.forwardRef(
40589
40607
  (K, U) => {
40590
- var X = K, { component: z = p || Button, icon: L, onlyIcon: V, children: G } = X, H = Y(X, ["component", "icon", "onlyIcon", "children"]);
40608
+ var Y = K, { component: z = p || Button, icon: L, onlyIcon: V, children: G } = Y, H = W(Y, ["component", "icon", "onlyIcon", "children"]);
40591
40609
  return /* @__PURE__ */ jsxs(z, P(x({ ref: U }, H), { children: [
40592
40610
  v ? /* @__PURE__ */ jsx(Tooltip, { title: H.title, children: /* @__PURE__ */ jsx("span", { style: { padding: 3 }, children: L && typeof L == "string" ? /* @__PURE__ */ jsx(Icon, { type: L }) : L }) }) : /* @__PURE__ */ jsx("span", { style: { paddingRight: 3 }, children: L && typeof L == "string" ? /* @__PURE__ */ jsx(Icon, { type: L }) : L }),
40593
40611
  v ? G[1] : G
@@ -40598,7 +40616,7 @@ const RenderButtonInner = observer$1(
40598
40616
  );
40599
40617
  if (!t && (($ = n == null ? void 0 : n.data) != null && $.hidden || !o))
40600
40618
  return null;
40601
- const D = S != null ? S : n == null ? void 0 : n.title, B = typeof D == "string" ? F(D, { ns: NAMESPACE_UI_SCHEMA }) : D, A = l, { opacity: N } = A, M = Y(A, ["opacity"]), j = y && N ? { opacity: N } : void 0, R = v || p ? T : p || Button;
40619
+ const D = S != null ? S : n == null ? void 0 : n.title, B = typeof D == "string" ? F(D, { ns: NAMESPACE_UI_SCHEMA }) : D, A = l, { opacity: N } = A, M = W(A, ["opacity"]), j = y && N ? { opacity: N } : void 0, R = v || p ? T : p || Button;
40602
40620
  return /* @__PURE__ */ jsxs(
40603
40621
  SortableItem,
40604
40622
  P(x({
@@ -40627,14 +40645,14 @@ RenderButtonInner.displayName = "RenderButtonInner";
40627
40645
  const ActionBarContext = React.createContext({
40628
40646
  container: null
40629
40647
  }), ActionBarProvider = (n) => {
40630
- var o = n, { children: e } = o, t = Y(o, ["children"]);
40648
+ var o = n, { children: e } = o, t = W(o, ["children"]);
40631
40649
  return /* @__PURE__ */ jsx(ActionBarContext.Provider, { value: t, children: e });
40632
40650
  }, useActionBarContext = () => useContext(ActionBarContext), Portal = (e) => {
40633
40651
  const t = useFieldSchema(), { container: n, parentComponents: o = ["BlockItem", "CardItem"] } = useActionBarContext();
40634
40652
  return /* @__PURE__ */ jsx(Fragment$1, { children: n && o.includes(t.parent["x-component"]) ? createPortal(e.children, n) : e.children });
40635
40653
  }, InternalActionBar = (e) => {
40636
40654
  var p;
40637
- const { forceProps: t = {} } = useActionBarContext(), d = x(x({}, useProps(e)), t), { layout: n = "two-columns", style: o, spaceProps: r } = d, a = Y(d, ["layout", "style", "spaceProps"]), i = useFieldSchema(), { render: l } = useSchemaInitializerRender(i["x-initializer"], i["x-initializer-props"]), { designable: c } = useDesignable();
40655
+ const { forceProps: t = {} } = useActionBarContext(), d = x(x({}, useProps(e)), t), { layout: n = "two-columns", style: o, spaceProps: r } = d, a = W(d, ["layout", "style", "spaceProps"]), i = useFieldSchema(), { render: l } = useSchemaInitializerRender(i["x-initializer"], i["x-initializer-props"]), { designable: c } = useDesignable();
40638
40656
  if (n === "one-column")
40639
40657
  return /* @__PURE__ */ jsx(Portal, { children: /* @__PURE__ */ jsx(DndContext, { children: /* @__PURE__ */ jsxs(
40640
40658
  "div",
@@ -40706,10 +40724,10 @@ const ActionBarContext = React.createContext({
40706
40724
  }
40707
40725
  });
40708
40726
  }, FormComponent$1 = (e) => {
40709
- const l = e, { form: t, children: n } = l, o = Y(l, ["form", "children"]), r = useField(), a = useFieldSchema(), i = useAttach(t.createVoidField(P(x({}, r.props), { basePath: "" })));
40727
+ const l = e, { form: t, children: n } = l, o = W(l, ["form", "children"]), r = useField(), a = useFieldSchema(), i = useAttach(t.createVoidField(P(x({}, r.props), { basePath: "" })));
40710
40728
  return /* @__PURE__ */ jsx(FieldContext.Provider, { value: void 0, children: /* @__PURE__ */ jsx(FormContext.Provider, { value: t, children: /* @__PURE__ */ jsx(FormLayout, P(x({ layout: "vertical" }, o), { children: /* @__PURE__ */ jsx(NocoBaseRecursionField, { basePath: i.address, schema: a, onlyRenderProperties: !0 }) })) }) });
40711
40729
  }, Def$1 = (e) => e.children, FormDecorator$1 = (e) => {
40712
- const u = e, { form: t, children: n, disabled: o } = u, r = Y(u, ["form", "children", "disabled"]), a = useField(), i = useFieldSchema(), l = useAttach(t.createVoidField(P(x({}, a.props), { basePath: "" }))), c = useComponent(i["x-component"], Def$1);
40730
+ const u = e, { form: t, children: n, disabled: o } = u, r = W(u, ["form", "children", "disabled"]), a = useField(), i = useFieldSchema(), l = useAttach(t.createVoidField(P(x({}, a.props), { basePath: "" }))), c = useComponent(i["x-component"], Def$1);
40713
40731
  return useEffect(() => {
40714
40732
  t.disabled = o || a.disabled;
40715
40733
  }, [o, a.disabled]), /* @__PURE__ */ jsx(ConfigProvider, { componentDisabled: o, children: /* @__PURE__ */ jsx(FieldContext.Provider, { value: void 0, children: /* @__PURE__ */ jsx(FormContext.Provider, { value: t, children: /* @__PURE__ */ jsx(FormLayout, P(x({ layout: "vertical" }, r), { children: /* @__PURE__ */ jsx(FieldContext.Provider, { value: l, children: /* @__PURE__ */ jsx(c, P(x({}, a.componentProps), { children: /* @__PURE__ */ jsx(NocoBaseRecursionField, { basePath: l.address, schema: i, onlyRenderProperties: !0 }) })) }) })) }) }) });
@@ -40722,7 +40740,7 @@ const ActionBarContext = React.createContext({
40722
40740
  FormBlockContext.displayName = "FormBlockContext";
40723
40741
  const Form$1 = observer$1(
40724
40742
  (e) => {
40725
- const p = e, { request: t, effects: n, initialValue: o, useValues: r = useDefaultValues } = p, a = Y(p, ["request", "effects", "initialValue", "useValues"]), i = useFieldSchema(), l = useField(), c = useMemo(() => createForm({ effects: n }), []), u = r(
40743
+ const p = e, { request: t, effects: n, initialValue: o, useValues: r = useDefaultValues } = p, a = W(p, ["request", "effects", "initialValue", "useValues"]), i = useFieldSchema(), l = useField(), c = useMemo(() => createForm({ effects: n }), []), u = r(
40726
40744
  {
40727
40745
  uid: i["x-uid"],
40728
40746
  onSuccess(h) {
@@ -40885,7 +40903,7 @@ const ReadPrettyInternal = observer$1(
40885
40903
  },
40886
40904
  { displayName: "SelectReadPretty" }
40887
40905
  ), ReadPretty$b = withPopupWrapper(ReadPrettyInternal), isEmptyObject = (e) => !isValid(e) || typeof e == "object" && Object.keys(e).length === 0, ObjectSelect = (e) => {
40888
- const h = e, { value: t, options: n, onChange: o, fieldNames: r, mode: a, loading: i, rawOptions: l, defaultValue: c } = h, u = Y(h, ["value", "options", "onChange", "fieldNames", "mode", "loading", "rawOptions", "defaultValue"]), d = isDesktop ? "" : fixKeyboardIssue, p = isDesktop ? void 0 : "topLeft", m = (g) => {
40906
+ const h = e, { value: t, options: n, onChange: o, fieldNames: r, mode: a, loading: i, rawOptions: l, defaultValue: c } = h, u = W(h, ["value", "options", "onChange", "fieldNames", "mode", "loading", "rawOptions", "defaultValue"]), d = isDesktop ? "" : fixKeyboardIssue, p = isDesktop ? void 0 : "topLeft", m = (g) => {
40889
40907
  var b;
40890
40908
  if (isEmptyObject(g))
40891
40909
  return;
@@ -40955,7 +40973,7 @@ const ReadPrettyInternal = observer$1(
40955
40973
  }
40956
40974
  `, InternalSelect = connect(
40957
40975
  (e) => {
40958
- const m = e, { objectValue: t, loading: n, value: o, rawOptions: r, defaultValue: a } = m, i = Y(m, ["objectValue", "loading", "value", "rawOptions", "defaultValue"]), l = useCompile(), c = isDesktop ? "" : fixKeyboardIssue, u = isDesktop ? void 0 : "topLeft";
40976
+ const m = e, { objectValue: t, loading: n, value: o, rawOptions: r, defaultValue: a } = m, i = W(m, ["objectValue", "loading", "value", "rawOptions", "defaultValue"]), l = useCompile(), c = isDesktop ? "" : fixKeyboardIssue, u = isDesktop ? void 0 : "topLeft";
40959
40977
  let d = e.multiple ? "multiple" : e.mode;
40960
40978
  if (d && !["multiple", "tags"].includes(d) && (d = void 0), useEffect(() => {
40961
40979
  var h;
@@ -41058,8 +41076,8 @@ const getValues = (e, t) => castArray(e).filter((n) => n != null).map((n) => typ
41058
41076
  ), EMPTY$1 = "N/A", InternalRemoteSelect = withDynamicSchemaProps(
41059
41077
  connect(
41060
41078
  (e) => {
41061
- var K, X;
41062
- const U = e, {
41079
+ var Q, ee;
41080
+ const X = e, {
41063
41081
  fieldNames: t = {},
41064
41082
  service: n = {},
41065
41083
  wait: o = 300,
@@ -41072,10 +41090,10 @@ const getValues = (e, t) => castArray(e).filter((n) => n != null).map((n) => typ
41072
41090
  CustomDropdownRender: d,
41073
41091
  optionFilter: p,
41074
41092
  dataSource: m,
41075
- toOptionsItem: h = (W) => W,
41093
+ toOptionsItem: h = (J) => J,
41076
41094
  popupMatchSelectWidth: g = !1,
41077
41095
  onSuccess: f
41078
- } = U, C = Y(U, [
41096
+ } = X, C = W(X, [
41079
41097
  "fieldNames",
41080
41098
  "service",
41081
41099
  "wait",
@@ -41091,39 +41109,39 @@ const getValues = (e, t) => castArray(e).filter((n) => n != null).map((n) => typ
41091
41109
  "toOptionsItem",
41092
41110
  "popupMatchSelectWidth",
41093
41111
  "onSuccess"
41094
- ]), b = useDataSourceKey(), S = useDataSourceHeaders(m || b), y = useRef(!1), v = useFieldSchema(), I = ((K = v["x-component-props"]) == null ? void 0 : K.addMode) === "quickAdd", { getField: F } = useCollection_deprecated(), w = useRef(null), { getCollectionJoinField: T, getInterface: D } = useCollectionManager_deprecated(), B = v["x-collection-field"] || v.name, N = F(B) || T(B), M = u || (N == null ? void 0 : N.target) && (t == null ? void 0 : t.label) && T(`${N.target}.${t.label}`), j = useMemo(() => {
41095
- var W;
41112
+ ]), b = useDataSourceKey(), S = useDataSourceHeaders(m || b), y = useRef(!1), v = useFieldSchema(), I = ((Q = v["x-component-props"]) == null ? void 0 : Q.addMode) === "quickAdd", { getField: F } = useCollection_deprecated(), w = useRef(null), { getCollectionJoinField: T, getInterface: D } = useCollectionManager_deprecated(), B = v["x-collection-field"] || v.name, N = F(B) || T(B), M = u || (N == null ? void 0 : N.target) && (t == null ? void 0 : t.label) && T(`${N.target}.${t.label}`), j = useMemo(() => {
41113
+ var J;
41096
41114
  if (M != null && M.interface) {
41097
- const J = D(M.interface), Z = ((W = J == null ? void 0 : J.filterable) == null ? void 0 : W.operators[0].value) || "$includes";
41098
- return M.type === "string" || M.dataType === "string" ? "$includes" : Z;
41115
+ const Z = D(M.interface), te = ((J = Z == null ? void 0 : Z.filterable) == null ? void 0 : J.operators[0].value) || "$includes";
41116
+ return M.type === "string" || M.dataType === "string" ? "$includes" : te;
41099
41117
  }
41100
41118
  return "$includes";
41101
41119
  }, [M]), R = useCompile(), O = useCallback(
41102
- (W) => {
41120
+ (J) => {
41103
41121
  try {
41104
- return W.filter((J) => ["number", "string"].includes(typeof J[t.value]) || !J[t.value]).map((J) => {
41105
- var Q;
41106
- let Z = R(J[t.label]);
41107
- if ((Q = M == null ? void 0 : M.uiSchema) != null && Q.enum)
41108
- if (Array.isArray(Z))
41109
- Z = Z.map((ee, ne) => {
41110
- const re = M.uiSchema.enum.find((ie) => ie.value === ee);
41111
- return re ? /* @__PURE__ */ jsx(Tag, { role: "button", color: re.color, style: { marginRight: 3 }, children: (re == null ? void 0 : re.label) || ee }, ne) : /* @__PURE__ */ jsx(Tag, { role: "button", children: ee }, ee);
41122
+ return J.filter((Z) => ["number", "string"].includes(typeof Z[t.value]) || !Z[t.value]).map((Z) => {
41123
+ var re;
41124
+ let te = R(Z[t.label]);
41125
+ if ((re = M == null ? void 0 : M.uiSchema) != null && re.enum)
41126
+ if (Array.isArray(te))
41127
+ te = te.map((se, ue) => {
41128
+ const le = M.uiSchema.enum.find((me) => me.value === se);
41129
+ return le ? /* @__PURE__ */ jsx(Tag, { role: "button", color: le.color, style: { marginRight: 3 }, children: (le == null ? void 0 : le.label) || se }, ue) : /* @__PURE__ */ jsx(Tag, { role: "button", children: se }, se);
41112
41130
  }).reverse();
41113
41131
  else {
41114
- const ee = M.uiSchema.enum.find((ne) => ne.value === Z);
41115
- ee && (Z = /* @__PURE__ */ jsx(Tag, { role: "button", color: ee.color, children: ee.label }));
41132
+ const se = M.uiSchema.enum.find((ue) => ue.value === te);
41133
+ se && (te = /* @__PURE__ */ jsx(Tag, { role: "button", color: se.color, children: se.label }));
41116
41134
  }
41117
- return (M == null ? void 0 : M.type) === "date" && (Z = dayjs(Z).format("YYYY-MM-DD")), c ? c({
41118
- [t.label]: Z || EMPTY$1,
41119
- [t.value]: J[t.value]
41120
- }) : P(x({}, omit(J, "style")), {
41121
- [t.label]: Z || EMPTY$1,
41122
- [t.value]: J[t.value]
41135
+ return (M == null ? void 0 : M.type) === "date" && (te = dayjs(te).format("YYYY-MM-DD")), c ? c({
41136
+ [t.label]: te || EMPTY$1,
41137
+ [t.value]: Z[t.value]
41138
+ }) : P(x({}, omit(Z, "style")), {
41139
+ [t.label]: te || EMPTY$1,
41140
+ [t.value]: Z[t.value]
41123
41141
  });
41124
41142
  }).filter(Boolean);
41125
- } catch (J) {
41126
- return console.error(J), W;
41143
+ } catch (Z) {
41144
+ return console.error(Z), J;
41127
41145
  }
41128
41146
  },
41129
41147
  [M == null ? void 0 : M.uiSchema, t]
@@ -41135,7 +41153,7 @@ const getValues = (e, t) => castArray(e).filter((n) => n != null).map((n) => typ
41135
41153
  params: P(x({
41136
41154
  pageSize: 200
41137
41155
  }, n == null ? void 0 : n.params), {
41138
- filter: (X = n == null ? void 0 : n.params) == null ? void 0 : X.filter
41156
+ filter: (ee = n == null ? void 0 : n.params) == null ? void 0 : ee.filter
41139
41157
  })
41140
41158
  }),
41141
41159
  x({
@@ -41143,13 +41161,27 @@ const getValues = (e, t) => castArray(e).filter((n) => n != null).map((n) => typ
41143
41161
  debounceWait: o,
41144
41162
  onSuccess: f
41145
41163
  }, n.defaultParams ? { defaultParams: [n.defaultParams] } : {})
41146
- ), z = useMemo(
41164
+ ), {
41165
+ data: z,
41166
+ run: L,
41167
+ loading: V
41168
+ } = useRequest(
41169
+ P(x({
41170
+ action: "get"
41171
+ }, n), {
41172
+ headers: S
41173
+ }),
41174
+ {
41175
+ manual: !0,
41176
+ debounceWait: o
41177
+ }
41178
+ ), G = useMemo(
41147
41179
  () => JSON.stringify({
41148
41180
  service: n,
41149
41181
  fieldNames: t
41150
41182
  }),
41151
41183
  [n, t]
41152
- ), L = useCallback(() => w.current && d ? /* @__PURE__ */ jsx(
41184
+ ), H = useCallback(() => w.current && d ? /* @__PURE__ */ jsx(
41153
41185
  d,
41154
41186
  {
41155
41187
  search: w.current,
@@ -41160,27 +41192,31 @@ const getValues = (e, t) => castArray(e).filter((n) => n != null).map((n) => typ
41160
41192
  ) : null, [w.current]);
41161
41193
  useEffect(() => {
41162
41194
  y.current && A();
41163
- }, [z]);
41164
- const V = (W) => q(void 0, null, function* () {
41165
- var J;
41195
+ }, [G]), useEffect(() => {
41196
+ !i && ($ != null && $.data) && ($ != null && $.data.some((J) => J[t.value] === r) || L({
41197
+ filterByTk: r
41198
+ }));
41199
+ }, [r, $ == null ? void 0 : $.data]);
41200
+ const U = (J) => q(void 0, null, function* () {
41201
+ var Z;
41166
41202
  A({
41167
41203
  filter: mergeFilter([
41168
- W ? {
41204
+ J ? {
41169
41205
  [t.label]: {
41170
- [j]: W
41206
+ [j]: J
41171
41207
  }
41172
41208
  } : {},
41173
- (J = n == null ? void 0 : n.params) == null ? void 0 : J.filter
41209
+ (Z = n == null ? void 0 : n.params) == null ? void 0 : Z.filter
41174
41210
  ])
41175
- }), w.current = W;
41176
- }), G = useMemo(() => {
41177
- var Q;
41178
- const W = r || a;
41179
- if (!((Q = $ == null ? void 0 : $.data) != null && Q.length))
41180
- return W != null ? Array.isArray(W) ? W : [W] : [];
41181
- const J = W != null && (Array.isArray(W) ? W.map((ee) => P(x({}, ee), { [t.value]: ee[t.value] || ee })) : [P(x({}, W), { [t.value]: W[t.value] || W })]) || [], Z = typeof p == "function" ? $.data.filter(p) : $.data;
41182
- return uniqBy(Z.concat(J != null ? J : []), t.value);
41183
- }, [r, a, $ == null ? void 0 : $.data, t.value, p]);
41211
+ }), w.current = J;
41212
+ }), K = useMemo(() => {
41213
+ var re;
41214
+ const J = i ? r || a : z == null ? void 0 : z.data;
41215
+ if (!((re = $ == null ? void 0 : $.data) != null && re.length))
41216
+ return J != null ? Array.isArray(J) ? J : [J] : [];
41217
+ const Z = J != null && (Array.isArray(J) ? J.map((se) => P(x({}, se), { [t.value]: se[t.value] || se })) : [P(x({}, J), { [t.value]: J[t.value] || J })]) || [], te = typeof p == "function" ? $.data.filter(p) : $.data;
41218
+ return uniqBy(te.concat(Z != null ? Z : []), t.value);
41219
+ }, [r, a, $ == null ? void 0 : $.data, t.value, p, z == null ? void 0 : z.data]);
41184
41220
  return /* @__PURE__ */ jsx(
41185
41221
  Select,
41186
41222
  P(x({
@@ -41189,24 +41225,24 @@ const getValues = (e, t) => castArray(e).filter((n) => n != null).map((n) => typ
41189
41225
  filterOption: !1,
41190
41226
  filterSort: null,
41191
41227
  fieldNames: t,
41192
- onSearch: V,
41193
- onDropdownVisibleChange: (W) => {
41194
- w.current = null, W && A(), y.current = !0;
41228
+ onSearch: U,
41229
+ onDropdownVisibleChange: (J) => {
41230
+ w.current = null, J && A(), y.current = !0;
41195
41231
  },
41196
41232
  objectValue: i,
41197
41233
  value: r,
41198
41234
  defaultValue: a
41199
41235
  }, C), {
41200
41236
  loading: $ ? E : !0,
41201
- options: h(O(G)),
41202
- rawOptions: G,
41203
- dropdownRender: (W) => {
41204
- const J = G.some((Z) => Z[t.label] === w.current);
41237
+ options: h(O(K)),
41238
+ rawOptions: K,
41239
+ dropdownRender: (J) => {
41240
+ const Z = K.some((te) => te[t.label] === w.current);
41205
41241
  return /* @__PURE__ */ jsx(Fragment$1, { children: I ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
41206
- !(($ == null ? void 0 : $.data.length) === 0 && (w != null && w.current)) && W,
41207
- ($ == null ? void 0 : $.data.length) > 0 && (w == null ? void 0 : w.current) && !J && /* @__PURE__ */ jsx(Divider$1, { style: { margin: 0 } }),
41208
- !J && /* @__PURE__ */ jsx(L, {})
41209
- ] }) : W });
41242
+ !(($ == null ? void 0 : $.data.length) === 0 && (w != null && w.current)) && J,
41243
+ ($ == null ? void 0 : $.data.length) > 0 && (w == null ? void 0 : w.current) && !Z && /* @__PURE__ */ jsx(Divider$1, { style: { margin: 0 } }),
41244
+ !Z && /* @__PURE__ */ jsx(H, {})
41245
+ ] }) : J });
41210
41246
  }
41211
41247
  })
41212
41248
  );
@@ -41346,7 +41382,7 @@ const useFormBlockHeight = () => {
41346
41382
  const e = useDataBlockHeight(), t = useFieldSchema(), { token: n } = theme.useToken(), { designable: o } = useDesignable(), { heightProps: r } = useBlockHeightProps() || {}, { title: a, titleHeight: i } = r || {}, { display: l, enabled: c } = useFormDataTemplates(), u = t.reduceProperties((w, T) => T["x-component"] === "ActionBar" ? T : w), d = Object.keys((u == null ? void 0 : u.properties) || {}).length > 0, p = (F = (I = (v = t == null ? void 0 : t.parent) == null ? void 0 : v["x-decorator"]) == null ? void 0 : I.includes) == null ? void 0 : F.call(I, "FormBlockProvider"), m = d || o ? n.controlHeight + (p ? 1 * n.marginLG : 24 + n.paddingLG) : n.marginLG, h = a ? i : 0, g = useDataBlockRequestData(), { count: f, pageSize: C } = (g == null ? void 0 : g.meta) || {}, S = f > C ? n.controlHeightSM + 24 : 0, y = l && c ? n.controlHeight + 2 * n.padding + n.margin : 0;
41347
41383
  return e - m - n.paddingLG - h - S - y;
41348
41384
  }, FormComponent = (e) => {
41349
- const S = e, { form: t, children: n } = S, o = Y(S, ["form", "children"]), r = useField(), a = useFieldSchema(), i = getCardItemSchema == null ? void 0 : getCardItemSchema(a), l = useAttach(t.createVoidField(P(x({}, r.props), { basePath: "" }))), c = useFormBlockHeight(), { token: u } = theme.useToken(), {
41385
+ const S = e, { form: t, children: n } = S, o = W(S, ["form", "children"]), r = useField(), a = useFieldSchema(), i = getCardItemSchema == null ? void 0 : getCardItemSchema(a), l = useAttach(t.createVoidField(P(x({}, r.props), { basePath: "" }))), c = useFormBlockHeight(), { token: u } = theme.useToken(), {
41350
41386
  layout: d = "vertical",
41351
41387
  labelAlign: p = "left",
41352
41388
  labelWidth: m = 120,
@@ -41393,7 +41429,7 @@ const useFormBlockHeight = () => {
41393
41429
  })
41394
41430
  ) }) });
41395
41431
  }, Def = (e) => e.children, FormDecorator = (e) => {
41396
- const p = e, { form: t, children: n, disabled: o } = p, r = Y(p, ["form", "children", "disabled"]), a = useField(), i = useFieldSchema(), l = useAttach(t.createVoidField(P(x({}, a.props), { basePath: "" }))), c = useComponent(i["x-component"], Def), { isMobileLayout: u } = useMobileLayout(), d = useMemo(
41432
+ const p = e, { form: t, children: n, disabled: o } = p, r = W(p, ["form", "children", "disabled"]), a = useField(), i = useFieldSchema(), l = useAttach(t.createVoidField(P(x({}, a.props), { basePath: "" }))), c = useComponent(i["x-component"], Def), { isMobileLayout: u } = useMobileLayout(), d = useMemo(
41397
41433
  () => u ? transformMultiColumnToSingleColumn(i) : i,
41398
41434
  [i, u]
41399
41435
  );
@@ -41470,7 +41506,7 @@ const useFormBlockHeight = () => {
41470
41506
  }
41471
41507
  `, Form = withDynamicSchemaProps(
41472
41508
  observer$1((e) => {
41473
- const t = useField(), { token: n } = useToken(), c = useProps(e), { form: o, disabled: r } = c, a = Y(c, ["form", "disabled"]), i = useMemo(() => ({
41509
+ const t = useField(), { token: n } = useToken(), c = useProps(e), { form: o, disabled: r } = c, a = W(c, ["form", "disabled"]), i = useMemo(() => ({
41474
41510
  token: {
41475
41511
  // 这里是为了防止区块内部也收到 marginBlock 的影响(marginBlock:区块之间的间距)
41476
41512
  // @ts-ignore
@@ -42866,7 +42902,7 @@ const menuItemTitleStyle = {
42866
42902
  };
42867
42903
  Menu.Item = observer$1(
42868
42904
  (e) => {
42869
- const { t } = useMenuTranslation(), { pushMenuItem: n } = useCollectMenuItems(), p = e, { icon: o, children: r, hidden: a } = p, i = Y(p, ["icon", "children", "hidden"]), l = useFieldSchema(), c = useField(), u = useContext(MenuItemDesignerContext), d = useMemo(() => {
42905
+ const { t } = useMenuTranslation(), { pushMenuItem: n } = useCollectMenuItems(), p = e, { icon: o, children: r, hidden: a } = p, i = W(p, ["icon", "children", "hidden"]), l = useFieldSchema(), c = useField(), u = useContext(MenuItemDesignerContext), d = useMemo(() => {
42870
42906
  var m;
42871
42907
  return P(x({}, i), {
42872
42908
  hidden: a,
@@ -42938,7 +42974,7 @@ const MenuURLButton = ({ href: e, params: t, icon: n }) => {
42938
42974
  };
42939
42975
  Menu.URL = observer$1(
42940
42976
  (e) => {
42941
- const { pushMenuItem: t } = useCollectMenuItems(), { designable: n } = useDesignable(), d = e, { icon: o, children: r, hidden: a } = d, i = Y(d, ["icon", "children", "hidden"]), l = useFieldSchema(), c = useField();
42977
+ const { pushMenuItem: t } = useCollectMenuItems(), { designable: n } = useDesignable(), d = e, { icon: o, children: r, hidden: a } = d, i = W(d, ["icon", "children", "hidden"]), l = useFieldSchema(), c = useField();
42942
42978
  if (!t)
42943
42979
  return error("Menu.URL must be wrapped by GetMenuItemsContext.Provider"), null;
42944
42980
  const u = useMemo(() => P(x({}, i), {
@@ -42957,7 +42993,7 @@ Menu.URL = observer$1(
42957
42993
  );
42958
42994
  Menu.SubMenu = observer$1(
42959
42995
  (e) => {
42960
- const { t } = useMenuTranslation(), { designable: n } = useDesignable(), { Component: o, getMenuItems: r } = useMenuItem(), { pushMenuItem: a } = useCollectMenuItems(), f = e, { icon: i, children: l, hidden: c } = f, u = Y(f, ["icon", "children", "hidden"]), d = useFieldSchema(), p = useField(), m = useContext(MenuModeContext), h = useContext(MenuItemDesignerContext), g = useMemo(() => {
42996
+ const { t } = useMenuTranslation(), { designable: n } = useDesignable(), { Component: o, getMenuItems: r } = useMenuItem(), { pushMenuItem: a } = useCollectMenuItems(), f = e, { icon: i, children: l, hidden: c } = f, u = W(f, ["icon", "children", "hidden"]), d = useFieldSchema(), p = useField(), m = useContext(MenuModeContext), h = useContext(MenuItemDesignerContext), g = useMemo(() => {
42961
42997
  var C;
42962
42998
  return P(x({}, u), {
42963
42999
  hidden: n ? !1 : c,
@@ -43201,7 +43237,15 @@ const className1 = css`
43201
43237
  }, PageContent = memo((e) => /* @__PURE__ */ jsx(PopupRouteContextResetter, { children: /* @__PURE__ */ jsx(InternalPageContent, x({}, e)) })), TabBadge = (e) => {
43202
43238
  var n, o, r;
43203
43239
  const t = useEvaluatedExpression((o = (n = e.tabRoute.options) == null ? void 0 : n.badge) == null ? void 0 : o.count);
43204
- return t == null ? null : /* @__PURE__ */ jsx(Badge, P(x({}, (r = e.tabRoute.options) == null ? void 0 : r.badge), { count: t, style: x({ maxWidth: "10em" }, e.style), dot: !1, children: e.children }));
43240
+ return t == null ? null : /* @__PURE__ */ jsx(
43241
+ Badge,
43242
+ P(x({}, (r = e.tabRoute.options) == null ? void 0 : r.badge), {
43243
+ count: t,
43244
+ style: x({ maxWidth: "10em" }, e.style),
43245
+ dot: !1,
43246
+ children: e.children
43247
+ })
43248
+ );
43205
43249
  }, NocoBasePageHeaderTabs = ({ className: e, activeKey: t }) => {
43206
43250
  const n = useFieldSchema(), { t: o } = useTranslation(), { t: r } = useRouteTranslation(), { token: a } = useToken$1(), i = useRouterBasename(), l = useNavigateNoUpdate(), c = useCallback(
43207
43251
  (I) => {
@@ -43654,7 +43698,7 @@ const FieldsTreeSelect = (e) => {
43654
43698
  rootOption: l,
43655
43699
  loadData: c,
43656
43700
  includeFieldPaths: u
43657
- } = M, d = Y(M, [
43701
+ } = M, d = W(M, [
43658
43702
  "title",
43659
43703
  "value",
43660
43704
  "onChange",
@@ -43787,7 +43831,7 @@ function getFieldPath(e) {
43787
43831
  const InternalAssociationSelect$1 = observer$1(
43788
43832
  (e) => {
43789
43833
  var B;
43790
- const D = e, { objectValue: t = !0, addMode: n } = D, o = Y(D, ["objectValue", "addMode"]), r = useField(), a = useFieldSchema(), i = useServiceOptions$1((a == null ? void 0 : a["x-component-props"]) || e), { options: l } = useAssociationFieldContext(), c = isVariable$1(e.value) ? void 0 : e.value, u = Array.isArray(c) ? c.filter(Boolean) : c, [d, p] = useState(u), m = (B = a["x-component-props"]) == null ? void 0 : B.addMode, { t: h } = useTranslation(), { multiple: g } = e, f = useForm(), b = useAPIClient().resource(l.target), S = useCollectionRecordData(), y = useContext(SchemaComponentContext), { getCollection: v } = useCollectionManager_deprecated(), I = v(l.target), { filterTargetKey: F } = I;
43834
+ const D = e, { objectValue: t = !0, addMode: n } = D, o = W(D, ["objectValue", "addMode"]), r = useField(), a = useFieldSchema(), i = useServiceOptions$1((a == null ? void 0 : a["x-component-props"]) || e), { options: l } = useAssociationFieldContext(), c = isVariable$1(e.value) ? void 0 : e.value, u = Array.isArray(c) ? c.filter(Boolean) : c, [d, p] = useState(u), m = (B = a["x-component-props"]) == null ? void 0 : B.addMode, { t: h } = useTranslation(), { multiple: g } = e, f = useForm(), b = useAPIClient().resource(l.target), S = useCollectionRecordData(), y = useContext(SchemaComponentContext), { getCollection: v } = useCollectionManager_deprecated(), I = v(l.target), { filterTargetKey: F } = I;
43791
43835
  useEffect(() => {
43792
43836
  const N = isVariable$1(r.value) ? void 0 : r.value, M = Array.isArray(N) ? N.filter(Boolean) : N, j = removeIfKeyEmpty(M, F);
43793
43837
  p(j), isEqual(r.value, j) || (r.value = j);
@@ -44349,7 +44393,7 @@ function IframePreviewer({ index: e, list: t, onSwitchIndex: n }) {
44349
44393
  );
44350
44394
  }
44351
44395
  function InternalUpload(e) {
44352
- const r = e, { onChange: t } = r, n = Y(r, ["onChange"]), o = useCallback(
44396
+ const r = e, { onChange: t } = r, n = W(r, ["onChange"]), o = useCallback(
44353
44397
  (a) => {
44354
44398
  t == null || t(toFileList(a.fileList));
44355
44399
  },
@@ -44358,7 +44402,7 @@ function InternalUpload(e) {
44358
44402
  return /* @__PURE__ */ jsx(Upload$1, P(x({}, useUploadProps(n)), { onChange: o }));
44359
44403
  }
44360
44404
  function ReadPretty$9(i) {
44361
- var l = i, { value: e, onChange: t, disabled: n, multiple: o, size: r } = l, a = Y(l, ["value", "onChange", "disabled", "multiple", "size"]);
44405
+ var l = i, { value: e, onChange: t, disabled: n, multiple: o, size: r } = l, a = W(l, ["value", "onChange", "disabled", "multiple", "size"]);
44362
44406
  const { wrapSSR: c, hashId: u, componentCls: d } = useStyles$6();
44363
44407
  (useUploadStyle.default ? useUploadStyle.default : useUploadStyle)(d);
44364
44408
  const { isInTableCell: m } = useFlag(), h = useMemo(() => m ? { display: "inline-block" } : {}, [m]);
@@ -44497,7 +44541,7 @@ function AttachmentList(e) {
44497
44541
  ] });
44498
44542
  }
44499
44543
  function Uploader(n) {
44500
- var o = n, { rules: e } = o, t = Y(o, ["rules"]);
44544
+ var o = n, { rules: e } = o, t = W(o, ["rules"]);
44501
44545
  const { disabled: r, multiple: a, value: i, onChange: l, toValueItem: c = toValueItem } = t, [u, d] = useState([]), [p, m] = useState([]), { t: h } = useTranslation(), { componentCls: g } = useStyles$6(), f = useField(), C = useUploadProps(t), b = useBeforeUpload(e);
44502
44546
  useEffect(() => {
44503
44547
  if (p.length) {
@@ -44590,7 +44634,7 @@ Upload.Attachment = withDynamicSchemaProps(connect(Attachment, mapReadPretty(Att
44590
44634
  });
44591
44635
  Upload.Dragger = connect(
44592
44636
  (e) => {
44593
- const c = e, { tipContent: t, onChange: n } = c, o = Y(c, ["tipContent", "onChange"]), { wrapSSR: r, hashId: a, componentCls: i } = useStyles$6(), l = useCallback(
44637
+ const c = e, { tipContent: t, onChange: n } = c, o = W(c, ["tipContent", "onChange"]), { wrapSSR: r, hashId: a, componentCls: i } = useStyles$6(), l = useCallback(
44594
44638
  (u) => {
44595
44639
  n == null || n(toFileList(u.fileList));
44596
44640
  },
@@ -44610,8 +44654,8 @@ Upload.Dragger = connect(
44610
44654
  Upload.DraggerV2 = withDynamicSchemaProps(
44611
44655
  connect(
44612
44656
  (n) => {
44613
- var o = n, { rules: e } = o, t = Y(o, ["rules"]);
44614
- const { t: r } = useTranslation(), a = r("Click or drag file to this area to upload"), S = useProps(t), { title: i = a } = S, l = Y(S, ["title"]), [c, u] = useState(!1), { wrapSSR: d, hashId: p, componentCls: m } = useStyles$6(), h = useBeforeUpload(e), { size: g, mimetype: f } = e != null ? e : {}, C = useSizeHint(g), b = useCallback(
44657
+ var o = n, { rules: e } = o, t = W(o, ["rules"]);
44658
+ const { t: r } = useTranslation(), a = r("Click or drag file to this area to upload"), S = useProps(t), { title: i = a } = S, l = W(S, ["title"]), [c, u] = useState(!1), { wrapSSR: d, hashId: p, componentCls: m } = useStyles$6(), h = useBeforeUpload(e), { size: g, mimetype: f } = e != null ? e : {}, C = useSizeHint(g), b = useCallback(
44615
44659
  ({ fileList: y }) => {
44616
44660
  const { onChange: v } = l;
44617
44661
  v == null || v(y), y.some((I) => I.status === "uploading") ? u(!0) : u(!1);
@@ -44780,7 +44824,7 @@ const schema$1 = {
44780
44824
  setSelectedRows: o,
44781
44825
  selectedRows: r = [],
44782
44826
  onChange: a
44783
- } = useContext(RecordPickerContext), d = useTableSelectorProps$4(), { onRowSelectionChange: i, rowKey: l = "id" } = d, c = Y(d, ["onRowSelectionChange", "rowKey"]), { setVisible: u } = useActionContext();
44827
+ } = useContext(RecordPickerContext), d = useTableSelectorProps$4(), { onRowSelectionChange: i, rowKey: l = "id" } = d, c = W(d, ["onRowSelectionChange", "rowKey"]), { setVisible: u } = useActionContext();
44784
44828
  return P(x({}, c), {
44785
44829
  rowKey: l,
44786
44830
  rowSelection: {
@@ -44797,7 +44841,7 @@ const schema$1 = {
44797
44841
  });
44798
44842
  };
44799
44843
  function FileSelector(e) {
44800
- const y = e, { disabled: t, multiple: n, value: o, onChange: r, action: a, onSelect: i, quickUpload: l, selectFile: c } = y, u = Y(y, ["disabled", "multiple", "value", "onChange", "action", "onSelect", "quickUpload", "selectFile"]), { wrapSSR: d, hashId: p, componentCls: m } = useStyles$6(), { useFileCollectionStorageRules: h, useAttachmentFieldProps: g } = useExpressionScope(), { t: f } = useTranslation(), C = h(), b = g(), S = c === void 0 && l === void 0;
44844
+ const y = e, { disabled: t, multiple: n, value: o, onChange: r, action: a, onSelect: i, quickUpload: l, selectFile: c } = y, u = W(y, ["disabled", "multiple", "value", "onChange", "action", "onSelect", "quickUpload", "selectFile"]), { wrapSSR: d, hashId: p, componentCls: m } = useStyles$6(), { useFileCollectionStorageRules: h, useAttachmentFieldProps: g } = useExpressionScope(), { t: f } = useTranslation(), C = h(), b = g(), S = c === void 0 && l === void 0;
44801
44845
  return d(
44802
44846
  /* @__PURE__ */ jsx("div", { className: cls(`${m}-wrapper`, `${m}-picture-card-wrapper`, "nb-upload", p), children: /* @__PURE__ */ jsxs("div", { className: cls(`${m}-list`, `${m}-list-picture-card`), children: [
44803
44847
  /* @__PURE__ */ jsx(AttachmentList, x({ disabled: t, multiple: n, value: o, onChange: r }, u)),
@@ -44853,7 +44897,7 @@ function FileSelector(e) {
44853
44897
  }
44854
44898
  const InternalFileManager = (e) => {
44855
44899
  var D, B;
44856
- const T = e, { value: t, multiple: n, onChange: o } = T, r = Y(T, ["value", "multiple", "onChange"]), a = useFieldSchema(), [i, l] = useState(!1), [c, u] = useState([]), d = useInsertSchema$1("Selector"), p = useFieldNames$1(e), { designable: m } = useDesignable(), h = useField(), [g, f] = useState([]), { getField: C } = useCollection_deprecated(), b = C(h.props.name), S = useLabelUiSchema$1(b == null ? void 0 : b.target, (p == null ? void 0 : p.label) || "label"), y = useCompile(), { modalProps: v } = useActionContext(), I = (N) => {
44900
+ const T = e, { value: t, multiple: n, onChange: o } = T, r = W(T, ["value", "multiple", "onChange"]), a = useFieldSchema(), [i, l] = useState(!1), [c, u] = useState([]), d = useInsertSchema$1("Selector"), p = useFieldNames$1(e), { designable: m } = useDesignable(), h = useField(), [g, f] = useState([]), { getField: C } = useCollection_deprecated(), b = C(h.props.name), S = useLabelUiSchema$1(b == null ? void 0 : b.target, (p == null ? void 0 : p.label) || "label"), y = useCompile(), { modalProps: v } = useActionContext(), I = (N) => {
44857
44901
  N.stopPropagation(), N.preventDefault(), m ? d(schema$1.Selector) : a.reduceProperties((j, R) => R["x-component"] === "AssociationField.Selector" ? R : j, null) || a.addProperty("selector", schema$1.Selector), l(!0), u([]);
44858
44902
  };
44859
44903
  useEffect(() => {
@@ -45180,7 +45224,7 @@ function transformNestedData(e) {
45180
45224
  const { parent: l } = o;
45181
45225
  n(l);
45182
45226
  }
45183
- const i = o, { parent: r } = i, a = Y(i, ["parent"]);
45227
+ const i = o, { parent: r } = i, a = W(i, ["parent"]);
45184
45228
  t.push(a);
45185
45229
  }
45186
45230
  return e && n(e), t;
@@ -45327,7 +45371,7 @@ const useTableSelectorProps$2 = () => {
45327
45371
  setSelectedRows: o,
45328
45372
  selectedRows: r = [],
45329
45373
  onChange: a
45330
- } = useContext(RecordPickerContext), d = useTableSelectorProps$4(), { onRowSelectionChange: i, rowKey: l = "id" } = d, c = Y(d, ["onRowSelectionChange", "rowKey"]), { setVisible: u } = useActionContext();
45374
+ } = useContext(RecordPickerContext), d = useTableSelectorProps$4(), { onRowSelectionChange: i, rowKey: l = "id" } = d, c = W(d, ["onRowSelectionChange", "rowKey"]), { setVisible: u } = useActionContext();
45331
45375
  return P(x({}, c), {
45332
45376
  rowKey: l,
45333
45377
  rowSelection: {
@@ -45345,7 +45389,7 @@ const useTableSelectorProps$2 = () => {
45345
45389
  }, InternalPicker = observer$1(
45346
45390
  (e) => {
45347
45391
  var z;
45348
- const E = e, { value: t, multiple: n, openSize: o, onChange: r, quickUpload: a, selectFile: i, shouldMountElement: l } = E, c = Y(E, ["value", "multiple", "openSize", "onChange", "quickUpload", "selectFile", "shouldMountElement"]), u = useField(), d = useFieldNames$1(e), [p, m] = useState(!1), h = useFieldSchema(), g = useInsertSchema$1("Selector"), { options: f } = useAssociationFieldContext(), { collectionName: C } = useFormBlockContext(), b = useCompile(), S = useLabelUiSchema$1(f, (d == null ? void 0 : d.label) || "label"), y = h["x-add-new"], [v, I] = useState([]), F = useCollectionRecordData(), w = useMemo(() => t && Object.keys(t).length > 0 ? (Array.isArray(t) ? t : t ? [t] : []).filter(Boolean).map((V) => {
45392
+ const E = e, { value: t, multiple: n, openSize: o, onChange: r, quickUpload: a, selectFile: i, shouldMountElement: l } = E, c = W(E, ["value", "multiple", "openSize", "onChange", "quickUpload", "selectFile", "shouldMountElement"]), u = useField(), d = useFieldNames$1(e), [p, m] = useState(!1), h = useFieldSchema(), g = useInsertSchema$1("Selector"), { options: f } = useAssociationFieldContext(), { collectionName: C } = useFormBlockContext(), b = useCompile(), S = useLabelUiSchema$1(f, (d == null ? void 0 : d.label) || "label"), y = h["x-add-new"], [v, I] = useState([]), F = useCollectionRecordData(), w = useMemo(() => t && Object.keys(t).length > 0 ? (Array.isArray(t) ? t : t ? [t] : []).filter(Boolean).map((V) => {
45349
45393
  const G = V == null ? void 0 : V[d.label];
45350
45394
  return P(x({}, V), {
45351
45395
  [d.label]: getLabelFormatValue$1(b(S), b(G))
@@ -46111,7 +46155,7 @@ function FinallyButton(h) {
46111
46155
  linkageFromForm: t,
46112
46156
  allowAddToCurrent: n,
46113
46157
  props: f
46114
- } = g, C = f, { onlyIcon: o } = C, r = Y(C, ["onlyIcon"]), {
46158
+ } = g, C = f, { onlyIcon: o } = C, r = W(C, ["onlyIcon"]), {
46115
46159
  componentType: a,
46116
46160
  menu: i,
46117
46161
  onClick: l,
@@ -46587,7 +46631,7 @@ const useColumnsDeepMemoized = (e) => {
46587
46631
  var g, C, b, S, y, v;
46588
46632
  const { isInSubTable: t } = useFlag(), { token: n } = useToken$1(), o = (g = e["data-row-key"]) == null ? void 0 : g.toString(), { setNodeRef: r, isOver: a, active: i, over: l } = useSortable({
46589
46633
  id: o
46590
- }), f = e, { rowIndex: c } = f, u = Y(f, ["rowIndex"]), { ref: d, inView: p } = useInView({
46634
+ }), f = e, { rowIndex: c } = f, u = W(f, ["rowIndex"]), { ref: d, inView: p } = useInView({
46591
46635
  threshold: 0,
46592
46636
  triggerOnce: !0,
46593
46637
  initialInView: t || (c || 0) < INITIAL_ROWS_NUMBER,
@@ -46618,12 +46662,12 @@ const useColumnsDeepMemoized = (e) => {
46618
46662
  })
46619
46663
  ) });
46620
46664
  }, SortHandle$1 = (e) => {
46621
- const a = e, { id: t } = a, n = Y(a, ["id"]), { listeners: o, setNodeRef: r } = useSortable({
46665
+ const a = e, { id: t } = a, n = W(a, ["id"]), { listeners: o, setNodeRef: r } = useSortable({
46622
46666
  id: t
46623
46667
  });
46624
46668
  return /* @__PURE__ */ jsx(MenuOutlined, P(x(x({ ref: r }, n), o), { style: { cursor: "grab" } }));
46625
46669
  }, TableIndex$2 = (e) => {
46626
- const o = e, { index: t } = o, n = Y(o, ["index"]);
46670
+ const o = e, { index: t } = o, n = W(o, ["index"]);
46627
46671
  return /* @__PURE__ */ jsx("div", P(x({ className: cls("nb-table-index"), style: { padding: "0 8px 0 16px" } }, n), { children: t }));
46628
46672
  }, pageSizeOptions$1 = [5, 10, 20, 50, 100, 200], usePaginationProps$2 = (e, t) => {
46629
46673
  var S, y, v, I, F, w;
@@ -46728,19 +46772,19 @@ const useColumnsDeepMemoized = (e) => {
46728
46772
  }, columnOpacityStyle = {
46729
46773
  opacity: 0.3
46730
46774
  }, HeaderCellComponent = (n) => {
46731
- var o = n, { columnHidden: e } = o, t = Y(o, ["columnHidden"]);
46775
+ var o = n, { columnHidden: e } = o, t = W(o, ["columnHidden"]);
46732
46776
  const { designable: r } = useDesignable();
46733
46777
  return e ? /* @__PURE__ */ jsx("th", { style: r ? columnOpacityStyle : columnHiddenStyle, children: r ? t.children : null }) : /* @__PURE__ */ jsx("th", P(x({}, t), { className: cls(t.className, headerClass) }));
46734
46778
  }, BodyRowComponent = (e) => /* @__PURE__ */ jsx(SortableRow, x({}, e)), InternalBodyCellComponent = (e) => {
46735
46779
  var m;
46736
- const { token: t } = useToken$1(), n = useContext(InViewContext), o = (m = e.className) == null ? void 0 : m.includes("selection-column"), h = e, { record: r, schema: a, rowIndex: i, isSubTable: l } = h, c = Y(h, ["record", "schema", "rowIndex", "isSubTable"]), { valueMap: u } = useSatisfiedActionValues({ formValues: r, category: "style", schema: a }), d = useMemo(() => Object.assign(x({}, e.style), u), [e.style, u]), p = {
46780
+ const { token: t } = useToken$1(), n = useContext(InViewContext), o = (m = e.className) == null ? void 0 : m.includes("selection-column"), h = e, { record: r, schema: a, rowIndex: i, isSubTable: l } = h, c = W(h, ["record", "schema", "rowIndex", "isSubTable"]), { valueMap: u } = useSatisfiedActionValues({ formValues: r, category: "style", schema: a }), d = useMemo(() => Object.assign(x({}, e.style), u), [e.style, u]), p = {
46737
46781
  height: "1em",
46738
46782
  backgroundColor: "rgba(0, 0, 0, 0.06)",
46739
46783
  borderRadius: `${t.borderRadiusSM}px`
46740
46784
  };
46741
46785
  return /* @__PURE__ */ jsx("td", P(x({}, c), { className: cls(e.className, cellClass), style: d, children: l || n || o ? e.children : /* @__PURE__ */ jsx("div", { style: p }) }));
46742
46786
  }, displayNone = { display: "none" }, BodyCellComponent = (n) => {
46743
- var o = n, { columnHidden: e } = o, t = Y(o, ["columnHidden"]);
46787
+ var o = n, { columnHidden: e } = o, t = W(o, ["columnHidden"]);
46744
46788
  const { designable: r } = useDesignable(), a = useCollection();
46745
46789
  return e ? /* @__PURE__ */ jsx("td", { style: r ? columnOpacityStyle : columnHiddenStyle, children: r ? t.children : /* @__PURE__ */ jsx("span", { style: displayNone, children: t.children }) }) : /* @__PURE__ */ jsxs(SubFormProvider, { value: { value: t == null ? void 0 : t.record, collection: a, fieldSchema: t.schema }, children: [
46746
46790
  /* @__PURE__ */ jsx(InternalBodyCellComponent, x({}, t)),
@@ -46763,7 +46807,7 @@ const useColumnsDeepMemoized = (e) => {
46763
46807
  columns: m,
46764
46808
  expandable: h,
46765
46809
  field: g
46766
- } = b, f = Y(b, [
46810
+ } = b, f = W(b, [
46767
46811
  "tableHeight",
46768
46812
  "SortableWrapper",
46769
46813
  "tableSizeRefCallback",
@@ -46841,8 +46885,8 @@ const useColumnsDeepMemoized = (e) => {
46841
46885
  InternalNocoBaseTable.displayName = "InternalNocoBaseTable";
46842
46886
  const Table$1 = withDynamicSchemaProps(
46843
46887
  observer$1((e) => {
46844
- var de, be, ye;
46845
- const { token: t } = useToken$1(), me = omit(e, ["onBlur", "onFocus", "value"]), { pagination: n, useProps: o } = me, r = Y(me, ["pagination", "useProps"]), xe = (o == null ? void 0 : o()) || {}, { pagination: a } = xe, i = Y(xe, ["pagination"]), he = x(x({}, r), i), {
46888
+ var pe, be, ye;
46889
+ const { token: t } = useToken$1(), he = omit(e, ["onBlur", "onFocus", "value"]), { pagination: n, useProps: o } = he, r = W(he, ["pagination", "useProps"]), fe = (o == null ? void 0 : o()) || {}, { pagination: a } = fe, i = W(fe, ["pagination"]), ge = x(x({}, r), i), {
46846
46890
  dragSort: l = !1,
46847
46891
  showIndex: c = !0,
46848
46892
  onRowSelectionChange: u,
@@ -46854,7 +46898,7 @@ const Table$1 = withDynamicSchemaProps(
46854
46898
  loading: f,
46855
46899
  onClickRow: C,
46856
46900
  enableIndexColumn: b
46857
- } = he, S = Y(he, [
46901
+ } = ge, S = W(ge, [
46858
46902
  "dragSort",
46859
46903
  "showIndex",
46860
46904
  "onRowSelectionChange",
@@ -46866,7 +46910,7 @@ const Table$1 = withDynamicSchemaProps(
46866
46910
  "loading",
46867
46911
  "onClickRow",
46868
46912
  "enableIndexColumn"
46869
- ]), y = useArrayField(S), v = useFieldSchema(), { size: I = "small" } = (v == null ? void 0 : v["x-component-props"]) || {}, F = useCollection(), T = ((de = v == null ? void 0 : v.parent) == null ? void 0 : de["x-decorator"]) === "TableSelectorProvider" ? useTableSelectorContext() : useTableBlockContext(), { expandFlag: D, allIncludesChildren: B } = T, N = useMemoizedFn(S.onRowDragEnd || (() => {
46913
+ ]), y = useArrayField(S), v = useFieldSchema(), { size: I = "small" } = (v == null ? void 0 : v["x-component-props"]) || {}, F = useCollection(), T = ((pe = v == null ? void 0 : v.parent) == null ? void 0 : pe["x-decorator"]) === "TableSelectorProvider" ? useTableSelectorContext() : useTableBlockContext(), { expandFlag: D, allIncludesChildren: B } = T, N = useMemoizedFn(S.onRowDragEnd || (() => {
46870
46914
  })), M = usePaginationProps$2(n, a), j = useTableColumns$1(S, M), [R, O] = useState(() => D ? B : []), [$, A] = useState(((be = y == null ? void 0 : y.data) == null ? void 0 : be.selectedRowKeys) || []), [E, z] = useState([]), L = (p == null ? void 0 : p.type) !== "none", V = useRef(/* @__PURE__ */ new Map()), G = useMemo(() => css`
46871
46915
  & > td {
46872
46916
  background-color: ${t.controlItemBgActive} !important;
@@ -46874,85 +46918,85 @@ const Table$1 = withDynamicSchemaProps(
46874
46918
  &:hover > td {
46875
46919
  background-color: ${t.controlItemBgActiveHover} !important;
46876
46920
  }
46877
- `, [t.controlItemBgActive, t.controlItemBgActiveHover]), H = useMemo(() => C ? G : "", [G, C]), U = useMemo(() => C ? (se, te) => ({
46921
+ `, [t.controlItemBgActive, t.controlItemBgActiveHover]), H = useMemo(() => C ? G : "", [G, C]), U = useMemo(() => C ? (ae, ne) => ({
46878
46922
  onClick: (oe) => {
46879
- isPortalInBody(oe.target) || C(se, z, E);
46923
+ isPortalInBody(oe.target) || C(ae, z, E);
46880
46924
  },
46881
- rowIndex: te
46925
+ rowIndex: ne
46882
46926
  }) : null, [C, E]);
46883
46927
  useDeepCompareEffect(() => {
46884
- const se = D ? B : [];
46885
- _.isEqual(se, R) || O(se);
46928
+ const ae = D ? B : [];
46929
+ _.isEqual(ae, R) || O(ae);
46886
46930
  }, [D, B]);
46887
- const K = useCallback((se) => {
46931
+ const K = useCallback((ae) => {
46888
46932
  if (m)
46889
- return X(se);
46890
- if (se.key)
46891
- return se.key;
46892
- if (V.current.has(se))
46893
- return V.current.get(se);
46894
- const te = uid();
46895
- return V.current.set(se, te), te;
46896
- }, []), X = useCallback(
46897
- (se) => {
46898
- var te;
46933
+ return Y(ae);
46934
+ if (ae.key)
46935
+ return ae.key;
46936
+ if (V.current.has(ae))
46937
+ return V.current.get(ae);
46938
+ const ne = uid();
46939
+ return V.current.set(ae, ne), ne;
46940
+ }, []), Y = useCallback(
46941
+ (ae) => {
46942
+ var ne;
46899
46943
  return Array.isArray(m) ? m.map((oe) => {
46900
- var ae;
46901
- return ((ae = se[oe]) == null ? void 0 : ae.toString()) || "";
46902
- }).join("-") : typeof m == "string" ? se[m] : (te = (m != null ? m : K)(se)) == null ? void 0 : te.toString();
46944
+ var ie;
46945
+ return ((ie = ae[oe]) == null ? void 0 : ie.toString()) || "";
46946
+ }).join("-") : typeof m == "string" ? ae[m] : (ne = (m != null ? m : K)(ae)) == null ? void 0 : ne.toString();
46903
46947
  },
46904
46948
  [JSON.stringify(m), K]
46905
- ), W = useMemo(() => (Array.isArray(y == null ? void 0 : y.value) ? y.value : []).filter(Boolean), [y == null ? void 0 : y.value, (ye = y == null ? void 0 : y.value) == null ? void 0 : ye.length]), J = useMemo(() => (se) => {
46906
- const te = useCallback((oe) => {
46949
+ ), X = useMemo(() => (Array.isArray(y == null ? void 0 : y.value) ? y.value : []).filter(Boolean), [y == null ? void 0 : y.value, (ye = y == null ? void 0 : y.value) == null ? void 0 : ye.length]), Q = useMemo(() => (ae) => {
46950
+ const ne = useCallback((oe) => {
46907
46951
  var Ae, ve, Pe, Fe, Ie, ke;
46908
46952
  if (!oe.active || !oe.over) {
46909
46953
  console.warn("move cancel");
46910
46954
  return;
46911
46955
  }
46912
- const ae = (Pe = (ve = (Ae = oe.active) == null ? void 0 : Ae.data.current) == null ? void 0 : ve.sortable) == null ? void 0 : Pe.index, le = (ke = (Ie = (Fe = oe.over) == null ? void 0 : Fe.data.current) == null ? void 0 : Ie.sortable) == null ? void 0 : ke.index, ue = y.value[ae] || oe.active, Se = y.value[le] || oe.over;
46913
- y.move(ae, le), N({ from: ue, to: Se });
46956
+ const ie = (Pe = (ve = (Ae = oe.active) == null ? void 0 : Ae.data.current) == null ? void 0 : ve.sortable) == null ? void 0 : Pe.index, ce = (ke = (Ie = (Fe = oe.over) == null ? void 0 : Fe.data.current) == null ? void 0 : Ie.sortable) == null ? void 0 : ke.index, de = y.value[ie] || oe.active, Se = y.value[ce] || oe.over;
46957
+ y.move(ie, ce), N({ from: de, to: Se });
46914
46958
  }, []);
46915
- return /* @__PURE__ */ jsx(DndContext, { onDragEnd: te, children: /* @__PURE__ */ jsx("tbody", x({}, se)) });
46959
+ return /* @__PURE__ */ jsx(DndContext, { onDragEnd: ne, children: /* @__PURE__ */ jsx("tbody", x({}, ae)) });
46916
46960
  }, [y, N]);
46917
- J.displayName = "BodyWrapperComponent";
46918
- const Z = useMemo(() => ({
46961
+ Q.displayName = "BodyWrapperComponent";
46962
+ const ee = useMemo(() => ({
46919
46963
  header: {
46920
46964
  wrapper: HeaderWrapperComponent,
46921
46965
  cell: HeaderCellComponent
46922
46966
  },
46923
46967
  body: {
46924
- wrapper: J,
46968
+ wrapper: Q,
46925
46969
  row: BodyRowComponent,
46926
46970
  cell: BodyCellComponent
46927
46971
  }
46928
- }), [J]), Q = useMemo(() => p, [JSON.stringify(p)]), ee = useMemo(
46972
+ }), [Q]), J = useMemo(() => p, [JSON.stringify(p)]), Z = useMemo(
46929
46973
  () => ({
46930
- rowSelection: b && Q ? x({
46974
+ rowSelection: b && J ? x({
46931
46975
  type: "checkbox",
46932
46976
  selectedRowKeys: $,
46933
- onChange(se, te) {
46934
- y.data = y.data || {}, y.data.selectedRowKeys = se, y.data.selectedRowData = te, A(se), u == null || u(se, te);
46977
+ onChange(ae, ne) {
46978
+ y.data = y.data || {}, y.data.selectedRowKeys = ae, y.data.selectedRowData = ne, A(ae), u == null || u(ae, ne);
46935
46979
  },
46936
- getCheckboxProps(se) {
46980
+ getCheckboxProps(ae) {
46937
46981
  return {
46938
46982
  "aria-label": "checkbox"
46939
46983
  };
46940
46984
  },
46941
- renderCell: (se, te, oe, ae) => {
46985
+ renderCell: (ae, ne, oe, ie) => {
46942
46986
  if (!l && !c)
46943
- return ae;
46944
- const le = M == null ? void 0 : M.current, ue = (M == null ? void 0 : M.pageSize) || 20;
46945
- return le ? oe = oe + (le - 1) * ue + 1 : oe = oe + 1, te.__index && (oe = extractIndex(te.__index)), /* @__PURE__ */ jsxs(
46987
+ return ie;
46988
+ const ce = M == null ? void 0 : M.current, de = (M == null ? void 0 : M.pageSize) || 20;
46989
+ return ce ? oe = oe + (ce - 1) * de + 1 : oe = oe + 1, ne.__index && (oe = extractIndex(ne.__index)), /* @__PURE__ */ jsxs(
46946
46990
  "div",
46947
46991
  {
46948
46992
  role: "button",
46949
46993
  "aria-label": `table-index-${oe}`,
46950
- className: cls(se ? "checked" : null, rowSelectCheckboxWrapperClass, {
46994
+ className: cls(ae ? "checked" : null, rowSelectCheckboxWrapperClass, {
46951
46995
  [rowSelectCheckboxWrapperClassHover]: L
46952
46996
  }),
46953
46997
  children: [
46954
- /* @__PURE__ */ jsxs("div", { className: cls(se ? "checked" : null, rowSelectCheckboxContentClass), children: [
46955
- l && /* @__PURE__ */ jsx(SortHandle$1, { id: X(te) }),
46998
+ /* @__PURE__ */ jsxs("div", { className: cls(ae ? "checked" : null, rowSelectCheckboxContentClass), children: [
46999
+ l && /* @__PURE__ */ jsx(SortHandle$1, { id: Y(ne) }),
46956
47000
  c && /* @__PURE__ */ jsx(TableIndex$2, { index: oe })
46957
47001
  ] }),
46958
47002
  L && /* @__PURE__ */ jsx(
@@ -46960,78 +47004,78 @@ const Table$1 = withDynamicSchemaProps(
46960
47004
  {
46961
47005
  className: cls(
46962
47006
  "nb-origin-node",
46963
- se ? "checked" : null,
47007
+ ae ? "checked" : null,
46964
47008
  rowSelectCheckboxCheckedClassHover
46965
47009
  ),
46966
- children: ae
47010
+ children: ie
46967
47011
  }
46968
47012
  )
46969
47013
  ]
46970
47014
  }
46971
47015
  );
46972
47016
  }
46973
- }, Q) : void 0
47017
+ }, J) : void 0
46974
47018
  }),
46975
47019
  [
46976
- Q,
47020
+ J,
46977
47021
  $,
46978
47022
  u,
46979
47023
  c,
46980
47024
  l,
46981
47025
  y,
46982
- X,
47026
+ Y,
46983
47027
  L,
46984
- Q,
47028
+ J,
46985
47029
  M,
46986
47030
  b
46987
47031
  ]
46988
- ), ne = useCallback(
46989
- ({ children: se }) => {
46990
- var te, oe;
47032
+ ), te = useCallback(
47033
+ ({ children: ae }) => {
47034
+ var ne, oe;
46991
47035
  return l ? React.createElement(
46992
47036
  SortableContext$1,
46993
47037
  {
46994
- items: ((oe = (te = y.value) == null ? void 0 : te.map) == null ? void 0 : oe.call(te, X)) || []
47038
+ items: ((oe = (ne = y.value) == null ? void 0 : ne.map) == null ? void 0 : oe.call(ne, Y)) || []
46995
47039
  },
46996
- se
46997
- ) : React.createElement(React.Fragment, {}, se);
47040
+ ae
47041
+ ) : React.createElement(React.Fragment, {}, ae);
46998
47042
  },
46999
- [y, l, X]
47000
- ), { height: re, tableSizeRefCallback: ie } = useTableSize(), pe = useMemo(() => ({
47043
+ [y, l, Y]
47044
+ ), { height: re, tableSizeRefCallback: se } = useTableSize(), ue = useMemo(() => ({
47001
47045
  x: "max-content"
47002
- }), []), ce = useMemo(() => ({
47046
+ }), []), le = useMemo(() => ({
47003
47047
  x: "max-content",
47004
- y: W.length > 0 ? re : void 0
47005
- }), [re, pe, W]), fe = useCallback(
47006
- (se) => E.includes(se[m]) ? H : "",
47048
+ y: X.length > 0 ? re : void 0
47049
+ }), [re, ue, X]), me = useCallback(
47050
+ (ae) => E.includes(ae[m]) ? H : "",
47007
47051
  [E, H, JSON.stringify(m)]
47008
- ), ge = useCallback(
47009
- (se, te) => {
47010
- const oe = se ? [...R, te[F.getPrimaryKey()]] : R.filter((ae) => te[F.getPrimaryKey()] !== ae);
47011
- O(oe), g == null || g(se, te);
47052
+ ), xe = useCallback(
47053
+ (ae, ne) => {
47054
+ const oe = ae ? [...R, ne[F.getPrimaryKey()]] : R.filter((ie) => ne[F.getPrimaryKey()] !== ie);
47055
+ O(oe), g == null || g(ae, ne);
47012
47056
  },
47013
47057
  [R, g, F]
47014
47058
  ), Ce = useMemo(() => ({
47015
- onExpand: ge,
47059
+ onExpand: xe,
47016
47060
  expandedRowKeys: R
47017
- }), [R, ge]);
47061
+ }), [R, xe]);
47018
47062
  return (
47019
47063
  // If spinning is set to undefined, it will cause the subtable to always display loading, so we need to convert it here
47020
47064
  /* @__PURE__ */ jsx(Spin, { spinning: !!f, children: /* @__PURE__ */ jsx(
47021
47065
  InternalNocoBaseTable,
47022
47066
  P(x(x({
47023
47067
  tableHeight: re,
47024
- SortableWrapper: ne,
47025
- tableSizeRefCallback: ie,
47068
+ SortableWrapper: te,
47069
+ tableSizeRefCallback: se,
47026
47070
  defaultRowKey: K,
47027
- dataSource: W
47028
- }, S), ee), {
47071
+ dataSource: X
47072
+ }, S), Z), {
47029
47073
  paginationProps: M,
47030
- components: Z,
47074
+ components: ee,
47031
47075
  onTableChange: d,
47032
47076
  onRow: U,
47033
- rowClassName: fe,
47034
- scroll: ce,
47077
+ rowClassName: me,
47078
+ scroll: le,
47035
47079
  columns: j,
47036
47080
  expandable: Ce,
47037
47081
  field: y,
@@ -47354,19 +47398,19 @@ AssociationSelect.Designer = function e() {
47354
47398
  useEffect(() => {
47355
47399
  c.readPretty !== u["x-read-pretty"] && (c.readPretty = !!u["x-read-pretty"]);
47356
47400
  }, [u["x-read-pretty"]]);
47357
- const N = B == null ? void 0 : B.map((X) => X.startsWith("-") ? {
47358
- field: X.substring(1),
47401
+ const N = B == null ? void 0 : B.map((Y) => Y.startsWith("-") ? {
47402
+ field: Y.substring(1),
47359
47403
  direction: "desc"
47360
47404
  } : {
47361
- field: X,
47405
+ field: Y,
47362
47406
  direction: "asc"
47363
47407
  });
47364
47408
  c.readPretty || c.required;
47365
- const M = T.filter((X) => a(X)).map((X) => {
47366
- var W;
47409
+ const M = T.filter((Y) => a(Y)).map((Y) => {
47410
+ var X;
47367
47411
  return {
47368
- value: X == null ? void 0 : X.name,
47369
- label: f((W = X == null ? void 0 : X.uiSchema) == null ? void 0 : W.title) || (X == null ? void 0 : X.name)
47412
+ value: Y == null ? void 0 : Y.name,
47413
+ label: f((X = Y == null ? void 0 : Y.uiSchema) == null ? void 0 : X.title) || (Y == null ? void 0 : Y.name)
47370
47414
  };
47371
47415
  });
47372
47416
  let j = "editable";
@@ -47460,20 +47504,20 @@ AssociationSelect.Designer = function e() {
47460
47504
  }
47461
47505
  }
47462
47506
  },
47463
- onSubmit: (X) => {
47464
- var ee;
47465
- const W = [], J = (ne) => ne != null && !Number.isNaN(ne);
47466
- for (const ne of X.rules)
47467
- W.push(_.pickBy(ne, J));
47468
- const Z = {
47507
+ onSubmit: (Y) => {
47508
+ var Z;
47509
+ const X = [], Q = (te) => te != null && !Number.isNaN(te);
47510
+ for (const te of Y.rules)
47511
+ X.push(_.pickBy(te, Q));
47512
+ const ee = {
47469
47513
  "x-uid": u["x-uid"]
47470
47514
  };
47471
47515
  if (["percent"].includes(S == null ? void 0 : S.interface))
47472
- for (const ne of W)
47473
- (ne.maxValue || ne.minValue) && (ne.percentMode = !0), ne.percentFormat && (ne.percentFormats = !0);
47474
- const Q = _.concat([], ((ee = S == null ? void 0 : S.uiSchema) == null ? void 0 : ee["x-validator"]) || [], W);
47475
- c.validator = Q, u["x-validator"] = W, Z["x-validator"] = W, m.emit("patch", {
47476
- schema: Z
47516
+ for (const te of X)
47517
+ (te.maxValue || te.minValue) && (te.percentMode = !0), te.percentFormat && (te.percentFormats = !0);
47518
+ const J = _.concat([], ((Z = S == null ? void 0 : S.uiSchema) == null ? void 0 : Z["x-validator"]) || [], X);
47519
+ c.validator = J, u["x-validator"] = X, ee["x-validator"] = X, m.emit("patch", {
47520
+ schema: ee
47477
47521
  }), h();
47478
47522
  }
47479
47523
  }
@@ -47504,12 +47548,12 @@ AssociationSelect.Designer = function e() {
47504
47548
  })
47505
47549
  }
47506
47550
  },
47507
- onSubmit: (X) => {
47508
- const W = {
47551
+ onSubmit: (Y) => {
47552
+ const X = {
47509
47553
  "x-uid": u["x-uid"]
47510
47554
  };
47511
- c.value !== X.default && (c.value = X.default), u.default = X.default, W.default = X.default, m.emit("patch", {
47512
- schema: W
47555
+ c.value !== Y.default && (c.value = Y.default), u.default = Y.default, X.default = Y.default, m.emit("patch", {
47556
+ schema: X
47513
47557
  }), h();
47514
47558
  }
47515
47559
  }
@@ -47520,9 +47564,9 @@ AssociationSelect.Designer = function e() {
47520
47564
  title: d("Field component"),
47521
47565
  options: y,
47522
47566
  value: u["x-component"],
47523
- onChange: (X) => {
47524
- var J, Z;
47525
- const W = {
47567
+ onChange: (Y) => {
47568
+ var Q, ee;
47569
+ const X = {
47526
47570
  name: S == null ? void 0 : S.name,
47527
47571
  type: "void",
47528
47572
  required: u.required,
@@ -47532,19 +47576,19 @@ AssociationSelect.Designer = function e() {
47532
47576
  // 'x-designer': 'FormItem.Designer',
47533
47577
  "x-toolbar": "FormItemSchemaToolbar",
47534
47578
  "x-settings": "fieldSettings:FormItem",
47535
- "x-component": X,
47579
+ "x-component": Y,
47536
47580
  "x-validator": u["x-validator"],
47537
47581
  "x-collection-field": u["x-collection-field"],
47538
47582
  "x-decorator-props": u["x-decorator-props"],
47539
- "x-component-props": x(x({}, (J = S == null ? void 0 : S.uiSchema) == null ? void 0 : J["x-component-props"]), u["x-component-props"])
47583
+ "x-component-props": x(x({}, (Q = S == null ? void 0 : S.uiSchema) == null ? void 0 : Q["x-component-props"]), u["x-component-props"])
47540
47584
  };
47541
- (Z = I == null ? void 0 : I.schemaInitialize) == null || Z.call(I, W, {
47585
+ (ee = I == null ? void 0 : I.schemaInitialize) == null || ee.call(I, X, {
47542
47586
  field: S,
47543
47587
  block: "Form",
47544
47588
  readPretty: c.readPretty,
47545
47589
  action: p ? "get" : null,
47546
47590
  targetCollection: r(S == null ? void 0 : S.target)
47547
- }), X === "CollectionField" && (W.type = "string"), g("beforeBegin", divWrap(W), {
47591
+ }), Y === "CollectionField" && (X.type = "string"), g("beforeBegin", divWrap(X), {
47548
47592
  onSuccess: () => {
47549
47593
  m.remove(null, {
47550
47594
  removeParentsIfNoChildren: !0,
@@ -47562,12 +47606,12 @@ AssociationSelect.Designer = function e() {
47562
47606
  {
47563
47607
  title: d("Allow multiple"),
47564
47608
  checked: ((L = u["x-component-props"]) == null ? void 0 : L.multiple) === void 0 ? !0 : u["x-component-props"].multiple,
47565
- onChange: (X) => {
47566
- const W = {
47609
+ onChange: (Y) => {
47610
+ const X = {
47567
47611
  "x-uid": u["x-uid"]
47568
47612
  };
47569
- u["x-component-props"] = u["x-component-props"] || {}, c.componentProps = c.componentProps || {}, u["x-component-props"].multiple = X, c.componentProps.multiple = X, W["x-component-props"] = u["x-component-props"], m.emit("patch", {
47570
- schema: W
47613
+ u["x-component-props"] = u["x-component-props"] || {}, c.componentProps = c.componentProps || {}, u["x-component-props"].multiple = Y, c.componentProps.multiple = Y, X["x-component-props"] = u["x-component-props"], m.emit("patch", {
47614
+ schema: X
47571
47615
  }), h();
47572
47616
  }
47573
47617
  },
@@ -47579,8 +47623,8 @@ AssociationSelect.Designer = function e() {
47579
47623
  collectionName: S == null ? void 0 : S.target,
47580
47624
  defaultFilter: ((H = (G = (V = c.componentProps) == null ? void 0 : V.service) == null ? void 0 : G.params) == null ? void 0 : H.filter) || {},
47581
47625
  form: l,
47582
- onSubmit: ({ filter: X }) => {
47583
- X = removeNullCondition(X), _.set(c.componentProps, "service.params.filter", X), u["x-component-props"] = c.componentProps, m.emit("patch", {
47626
+ onSubmit: ({ filter: Y }) => {
47627
+ Y = removeNullCondition(Y), _.set(c.componentProps, "service.params.filter", Y), u["x-component-props"] = c.componentProps, m.emit("patch", {
47584
47628
  schema: {
47585
47629
  "x-uid": u["x-uid"],
47586
47630
  "x-component-props": c.componentProps
@@ -47663,9 +47707,9 @@ AssociationSelect.Designer = function e() {
47663
47707
  }
47664
47708
  }
47665
47709
  },
47666
- onSubmit: ({ sort: X }) => {
47667
- const W = X.map((J) => J.direction === "desc" ? `-${J.field}` : J.field);
47668
- _.set(c.componentProps, "service.params.sort", W), u["x-component-props"] = c.componentProps, m.emit("patch", {
47710
+ onSubmit: ({ sort: Y }) => {
47711
+ const X = Y.map((Q) => Q.direction === "desc" ? `-${Q.field}` : Q.field);
47712
+ _.set(c.componentProps, "service.params.sort", X), u["x-component-props"] = c.componentProps, m.emit("patch", {
47669
47713
  schema: {
47670
47714
  "x-uid": u["x-uid"],
47671
47715
  "x-component-props": c.componentProps
@@ -47684,26 +47728,26 @@ AssociationSelect.Designer = function e() {
47684
47728
  { label: d("Easy-reading"), value: "read-pretty" }
47685
47729
  ],
47686
47730
  value: j,
47687
- onChange: (X) => {
47688
- const W = {
47731
+ onChange: (Y) => {
47732
+ const X = {
47689
47733
  "x-uid": u["x-uid"]
47690
47734
  };
47691
- switch (X) {
47735
+ switch (Y) {
47692
47736
  case "readonly": {
47693
- u["x-read-pretty"] = !1, u["x-disabled"] = !0, W["x-read-pretty"] = !1, W["x-disabled"] = !0, c.readPretty = !1, c.disabled = !0;
47737
+ u["x-read-pretty"] = !1, u["x-disabled"] = !0, X["x-read-pretty"] = !1, X["x-disabled"] = !0, c.readPretty = !1, c.disabled = !0;
47694
47738
  break;
47695
47739
  }
47696
47740
  case "read-pretty": {
47697
- u["x-read-pretty"] = !0, u["x-disabled"] = !1, W["x-read-pretty"] = !0, W["x-disabled"] = !1, c.readPretty = !0;
47741
+ u["x-read-pretty"] = !0, u["x-disabled"] = !1, X["x-read-pretty"] = !0, X["x-disabled"] = !1, c.readPretty = !0;
47698
47742
  break;
47699
47743
  }
47700
47744
  default: {
47701
- u["x-read-pretty"] = !1, u["x-disabled"] = !1, W["x-read-pretty"] = !1, W["x-disabled"] = !1, c.readPretty = !1, c.disabled = !1;
47745
+ u["x-read-pretty"] = !1, u["x-disabled"] = !1, X["x-read-pretty"] = !1, X["x-disabled"] = !1, c.readPretty = !1, c.disabled = !1;
47702
47746
  break;
47703
47747
  }
47704
47748
  }
47705
47749
  m.emit("patch", {
47706
- schema: W
47750
+ schema: X
47707
47751
  }), m.refresh();
47708
47752
  }
47709
47753
  },
@@ -47715,15 +47759,15 @@ AssociationSelect.Designer = function e() {
47715
47759
  title: d("Title field"),
47716
47760
  options: M,
47717
47761
  value: (K = (U = c == null ? void 0 : c.componentProps) == null ? void 0 : U.fieldNames) == null ? void 0 : K.label,
47718
- onChange: (X) => {
47719
- var Z, Q;
47720
- const W = {
47762
+ onChange: (Y) => {
47763
+ var ee, J;
47764
+ const X = {
47721
47765
  "x-uid": u["x-uid"]
47722
- }, J = P(x(x({}, (Q = (Z = S == null ? void 0 : S.uiSchema) == null ? void 0 : Z["x-component-props"]) == null ? void 0 : Q.fieldNames), c.componentProps.fieldNames), {
47723
- label: X
47766
+ }, Q = P(x(x({}, (J = (ee = S == null ? void 0 : S.uiSchema) == null ? void 0 : ee["x-component-props"]) == null ? void 0 : J.fieldNames), c.componentProps.fieldNames), {
47767
+ label: Y
47724
47768
  });
47725
- c.componentProps.fieldNames = J, u["x-component-props"] = u["x-component-props"] || {}, u["x-component-props"].fieldNames = J, W["x-component-props"] = u["x-component-props"], m.emit("patch", {
47726
- schema: W
47769
+ c.componentProps.fieldNames = Q, u["x-component-props"] = u["x-component-props"] || {}, u["x-component-props"].fieldNames = Q, X["x-component-props"] = u["x-component-props"], m.emit("patch", {
47770
+ schema: X
47727
47771
  }), m.refresh();
47728
47772
  }
47729
47773
  },
@@ -48067,7 +48111,7 @@ const AutoComplete = withDynamicSchemaProps(
48067
48111
  }
48068
48112
  };
48069
48113
  }), CardItem = (e) => {
48070
- const p = e, { children: t, name: n, heightMode: o } = p, r = Y(p, ["children", "name", "heightMode"]), a = useSchemaTemplate(), i = useFieldSchema(), l = i == null ? void 0 : i["x-template-key"], { wrapSSR: c, componentCls: u, hashId: d } = useStyles$5();
48114
+ const p = e, { children: t, name: n, heightMode: o } = p, r = W(p, ["children", "name", "heightMode"]), a = useSchemaTemplate(), i = useFieldSchema(), l = i == null ? void 0 : i["x-template-key"], { wrapSSR: c, componentCls: u, hashId: d } = useStyles$5();
48071
48115
  return l && !a ? null : c(
48072
48116
  /* @__PURE__ */ jsx(BlockItemError, { children: /* @__PURE__ */ jsx(BlockItem, { name: n, className: `${u} ${d} noco-card-item`, children: /* @__PURE__ */ jsx(BlockItemCard, P(x({}, r), { children: e.children })) }) })
48073
48117
  );
@@ -48108,7 +48152,7 @@ const AutoComplete = withDynamicSchemaProps(
48108
48152
  changeOnSelectLast: c,
48109
48153
  changeOnSelect: u,
48110
48154
  maxLevel: d
48111
- } = y, p = Y(y, [
48155
+ } = y, p = W(y, [
48112
48156
  "value",
48113
48157
  "onChange",
48114
48158
  "labelInValue",
@@ -48204,7 +48248,7 @@ function useCollectionOptions({ filter: e, isTableOid: t }) {
48204
48248
  }
48205
48249
  const CollectionSelect = connect(
48206
48250
  (e) => {
48207
- const i = e, { filter: t } = i, n = Y(i, ["filter"]), o = useCollectionOptions(e), { t: r } = useTranslation(), a = useCallback(
48251
+ const i = e, { filter: t } = i, n = W(i, ["filter"]), o = useCollectionOptions(e), { t: r } = useTranslation(), a = useCallback(
48208
48252
  (l, c) => {
48209
48253
  var u, d;
48210
48254
  return ((u = c == null ? void 0 : c.label.toLowerCase()) != null ? u : "").includes(l.toLocaleLowerCase()) || ((d = c == null ? void 0 : c.value.toString().toLowerCase()) != null ? d : "").includes(l.toLocaleLowerCase());
@@ -48249,7 +48293,7 @@ function useDataSourceOptions({ filter: e }) {
48249
48293
  );
48250
48294
  }
48251
48295
  const DataSourceSelect = connect((e) => {
48252
- const i = e, { filter: t } = i, n = Y(i, ["filter"]), o = useDataSourceOptions(e), { t: r } = useTranslation(), a = useCallback(
48296
+ const i = e, { filter: t } = i, n = W(i, ["filter"]), o = useDataSourceOptions(e), { t: r } = useTranslation(), a = useCallback(
48253
48297
  (l, c) => {
48254
48298
  var u, d;
48255
48299
  return ((u = c == null ? void 0 : c.label.toLowerCase()) != null ? u : "").includes(l.toLocaleLowerCase()) || ((d = c == null ? void 0 : c.value.toString().toLowerCase()) != null ? d : "").includes(l.toLocaleLowerCase());
@@ -48270,7 +48314,7 @@ const DataSourceSelect = connect((e) => {
48270
48314
  })
48271
48315
  );
48272
48316
  }), DataSourceCollectionCascaderReadPretty = observer$1((e) => {
48273
- const t = useDataSourceManager(), n = useCompile(), f = e, { value: o, onChange: r, dataSourceFilter: a, collectionFilter: i } = f, l = Y(f, ["value", "onChange", "dataSourceFilter", "collectionFilter"]), [c, u] = parseCollectionName(o), d = [c, u].filter(Boolean), p = t.getDataSources(), m = useMemo(() => (a ? p.filter(a) : p).map((C) => ({
48317
+ const t = useDataSourceManager(), n = useCompile(), f = e, { value: o, onChange: r, dataSourceFilter: a, collectionFilter: i } = f, l = W(f, ["value", "onChange", "dataSourceFilter", "collectionFilter"]), [c, u] = parseCollectionName(o), d = [c, u].filter(Boolean), p = t.getDataSources(), m = useMemo(() => (a ? p.filter(a) : p).map((C) => ({
48274
48318
  label: n(C.displayName),
48275
48319
  value: C.key,
48276
48320
  children: C.collectionManager.collectionInstancesArr.filter(i != null ? i : (b) => !b.hidden).map((b) => ({
@@ -48287,7 +48331,7 @@ const DataSourceSelect = connect((e) => {
48287
48331
  })(d, m);
48288
48332
  return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Tag, { children: g.join(" / ") }) });
48289
48333
  }), DataSourceCollectionCascader = connect((e) => {
48290
- const t = useDataSourceManager(), n = useCompile(), g = e, { value: o, onChange: r, dataSourceFilter: a, collectionFilter: i } = g, l = Y(g, ["value", "onChange", "dataSourceFilter", "collectionFilter"]), [c, u] = parseCollectionName(o), d = [c, u].filter(Boolean), p = t.getDataSources(), m = useMemo(() => (a ? p.filter(a) : p).map((f) => ({
48334
+ const t = useDataSourceManager(), n = useCompile(), g = e, { value: o, onChange: r, dataSourceFilter: a, collectionFilter: i } = g, l = W(g, ["value", "onChange", "dataSourceFilter", "collectionFilter"]), [c, u] = parseCollectionName(o), d = [c, u].filter(Boolean), p = t.getDataSources(), m = useMemo(() => (a ? p.filter(a) : p).map((f) => ({
48291
48335
  label: n(f.displayName),
48292
48336
  value: f.key,
48293
48337
  children: f.collectionManager.collectionInstancesArr.filter(i != null ? i : (C) => !C.hidden).map((C) => ({
@@ -48305,7 +48349,7 @@ const DataSourceSelect = connect((e) => {
48305
48349
  return /* @__PURE__ */ jsx(Cascader$1, P(x({ showSearch: !0 }, l), { options: m, value: d, onChange: h }));
48306
48350
  }, mapReadPretty(DataSourceCollectionCascaderReadPretty)), ColorPicker = connect(
48307
48351
  (e) => {
48308
- const r = e, { value: t, onChange: n } = r, o = Y(r, ["value", "onChange"]);
48352
+ const r = e, { value: t, onChange: n } = r, o = W(r, ["value", "onChange"]);
48309
48353
  return /* @__PURE__ */ jsx("div", { role: "button", "aria-label": "color-picker-normal", style: { display: "inline-block" }, children: /* @__PURE__ */ jsx(
48310
48354
  ColorPicker$1,
48311
48355
  P(x({
@@ -48377,7 +48421,7 @@ const DataSourceSelect = connect((e) => {
48377
48421
  default: '{{t("Default")}}'
48378
48422
  }, ColorSelect = connect(
48379
48423
  (e) => {
48380
- const t = useCompile(), r = e, { colors: n = defaultColors } = r, o = Y(r, ["colors"]);
48424
+ const t = useCompile(), r = e, { colors: n = defaultColors } = r, o = W(r, ["colors"]);
48381
48425
  return /* @__PURE__ */ jsx(Select$1, P(x({}, o), { children: Object.keys(n).map((a) => /* @__PURE__ */ jsx(Select$1.Option, { value: a, children: /* @__PURE__ */ jsx(Tag, { color: a, children: t(n[a] || n.default) }) }, a)) }));
48382
48426
  },
48383
48427
  mapProps((e, t) => P(x({}, e), {
@@ -48388,7 +48432,7 @@ const DataSourceSelect = connect((e) => {
48388
48432
  return o[n] ? /* @__PURE__ */ jsx(Tag, { color: n, children: t(o[n] || o.default) }) : null;
48389
48433
  })
48390
48434
  ), Input = (e) => {
48391
- const o = e, { onChange: t } = o, n = Y(o, ["onChange"]);
48435
+ const o = e, { onChange: t } = o, n = W(o, ["onChange"]);
48392
48436
  return /* @__PURE__ */ jsx(
48393
48437
  "fieldset",
48394
48438
  {
@@ -49783,7 +49827,7 @@ function toSafeNumber(e) {
49783
49827
  return e && (e > Number.MAX_SAFE_INTEGER || e < Number.MIN_SAFE_INTEGER ? new BigNumber(e).toString() : Number(e));
49784
49828
  }
49785
49829
  const InputNumber = connect((e) => {
49786
- const a = e, { onChange: t } = a, n = Y(a, ["onChange"]);
49830
+ const a = e, { onChange: t } = a, n = W(a, ["onChange"]);
49787
49831
  let r = x({
49788
49832
  onChange: (i) => {
49789
49833
  Number.isNaN(i) ? t(null) : t(toSafeNumber(i));
@@ -50228,7 +50272,7 @@ const NanoIDInput = Object.assign(
50228
50272
  ), Pagination = withDynamicSchemaProps(
50229
50273
  observer$1(
50230
50274
  (e) => {
50231
- const r = useProps(e), { hidden: t } = r, n = Y(r, ["hidden"]);
50275
+ const r = useProps(e), { hidden: t } = r, n = W(r, ["hidden"]);
50232
50276
  return t ? null : /* @__PURE__ */ jsx("div", { onKeyPress: (a) => {
50233
50277
  a.key === "Enter" && a.preventDefault();
50234
50278
  }, children: /* @__PURE__ */ jsx(Pagination$1, x({}, n)) });
@@ -50280,7 +50324,7 @@ const NanoIDInput = Object.assign(
50280
50324
  return m += 4 * h, n > 0 && (m += 2 * (h - n)), o > 0 && (m += 2 * (h - o)), t !== h && (m += 4 * t), m += 6 * r, m += 2 * a, m += 2 * p(), h === n + o && (m -= h), h === t && (m -= t), m -= l, m -= 2 * c, m -= 3 * u, m = m < 0 ? 0 : m, m = m > 100 ? 100 : m, m >= 80 ? 100 : m >= 60 ? 80 : m >= 40 ? 60 : m >= 20 ? 40 : 20;
50281
50325
  }, PasswordStrength = (e) => isFn(e.children) ? e.children(getStrength(String(e.value || ""))) : /* @__PURE__ */ jsx(Fragment, { children: e.children }), Password = connect(
50282
50326
  (e) => {
50283
- const l = e, { value: t, className: n, checkStrength: o, showForgotPassword: r } = l, a = Y(l, ["value", "className", "checkStrength", "showForgotPassword"]), i = {
50327
+ const l = e, { value: t, className: n, checkStrength: o, showForgotPassword: r } = l, a = W(l, ["value", "className", "checkStrength", "showForgotPassword"]), i = {
50284
50328
  position: "absolute",
50285
50329
  zIndex: 1,
50286
50330
  height: 8,
@@ -50445,7 +50489,7 @@ const useTableSelectorProps$1 = () => {
50445
50489
  setSelectedRows: o,
50446
50490
  selectedRows: r = [],
50447
50491
  onChange: a
50448
- } = useContext(RecordPickerContext), d = useTableSelectorProps$4(), { onRowSelectionChange: i, rowKey: l = "id" } = d, c = Y(d, ["onRowSelectionChange", "rowKey"]), { setVisible: u } = useActionContext();
50492
+ } = useContext(RecordPickerContext), d = useTableSelectorProps$4(), { onRowSelectionChange: i, rowKey: l = "id" } = d, c = W(d, ["onRowSelectionChange", "rowKey"]), { setVisible: u } = useActionContext();
50449
50493
  return P(x({}, c), {
50450
50494
  rowKey: l,
50451
50495
  rowSelection: {
@@ -50471,7 +50515,7 @@ const useTableSelectorProps$1 = () => {
50471
50515
  const t = useFieldSchema(), { association: n } = e, { getField: o } = useCollection_deprecated();
50472
50516
  return n || o(t.name);
50473
50517
  }, InputRecordPicker = (e) => {
50474
- const v = e, { value: t, multiple: n, onChange: o, quickUpload: r, selectFile: a } = v, i = Y(v, ["value", "multiple", "onChange", "quickUpload", "selectFile"]), l = useFieldNames(e), [c, u] = useState(!1), d = useFieldSchema(), p = useAssociation(e), m = useCompile(), h = useLabelUiSchema(p, (l == null ? void 0 : l.label) || "label"), g = isShowFilePicker(h), [f, C] = useState([]), [b, S] = useState([]);
50518
+ const v = e, { value: t, multiple: n, onChange: o, quickUpload: r, selectFile: a } = v, i = W(v, ["value", "multiple", "onChange", "quickUpload", "selectFile"]), l = useFieldNames(e), [c, u] = useState(!1), d = useFieldSchema(), p = useAssociation(e), m = useCompile(), h = useLabelUiSchema(p, (l == null ? void 0 : l.label) || "label"), g = isShowFilePicker(h), [f, C] = useState([]), [b, S] = useState([]);
50475
50519
  useEffect(() => {
50476
50520
  if (t) {
50477
50521
  const I = (Array.isArray(t) ? t : t ? [t] : []).map((F) => {
@@ -50540,7 +50584,7 @@ const useTableSelectorProps$1 = () => {
50540
50584
  })
50541
50585
  ] });
50542
50586
  }, RecordPickerProvider = (e) => {
50543
- const c = e, { multiple: t, onChange: n, selectedRows: o, setSelectedRows: r, options: a, collectionField: i } = c, l = Y(c, ["multiple", "onChange", "selectedRows", "setSelectedRows", "options", "collectionField"]);
50587
+ const c = e, { multiple: t, onChange: n, selectedRows: o, setSelectedRows: r, options: a, collectionField: i } = c, l = W(c, ["multiple", "onChange", "selectedRows", "setSelectedRows", "options", "collectionField"]);
50544
50588
  return /* @__PURE__ */ jsx(
50545
50589
  RecordPickerContext.Provider,
50546
50590
  {
@@ -51399,7 +51443,7 @@ const useStyles$2 = genStyleHook("nb-rich-text", (e) => {
51399
51443
  data: n.value
51400
51444
  }), e);
51401
51445
  }, SortHandle = (e) => /* @__PURE__ */ jsx(MenuOutlined, x({ className: "drag-handle", style: { cursor: "grab" } }, e)), TableIndex$1 = (e) => {
51402
- const o = e, { index: t } = o, n = Y(o, ["index"]);
51446
+ const o = e, { index: t } = o, n = W(o, ["index"]);
51403
51447
  return /* @__PURE__ */ jsx("div", P(x({ className: cls("nb-table-index"), style: { padding: "0 8px 0 16px" } }, n), { children: t + 1 }));
51404
51448
  }, useDefAction = () => ({
51405
51449
  move() {
@@ -51416,7 +51460,7 @@ const useStyles$2 = genStyleHook("nb-rich-text", (e) => {
51416
51460
  useDataSource: l = useDefDataSource,
51417
51461
  useAction: c = useDefAction,
51418
51462
  onChange: u
51419
- } = C, d = Y(C, [
51463
+ } = C, d = W(C, [
51420
51464
  "dragSort",
51421
51465
  "showIndex",
51422
51466
  "useSelectedRowKeys",
@@ -52710,7 +52754,7 @@ const UnixTimestamp = connect(
52710
52754
  const t = useGlobalVariable("$env");
52711
52755
  return useMemo(() => t ? [t].filter(Boolean) : e, [t, e]);
52712
52756
  }, isVariable = (e) => /{{.*?}}/.test(e), TextAreaWithGlobalScope = connect((e) => {
52713
- const d = e, { supportsLineBreak: t, password: n, number: o, boolean: r, input: a, expression: i = !0 } = d, l = Y(d, ["supportsLineBreak", "password", "number", "boolean", "input", "expression"]), c = useEnvironmentVariableOptions(e.scope), u = { value: "name", label: "title" };
52757
+ const d = e, { supportsLineBreak: t, password: n, number: o, boolean: r, input: a, expression: i = !0 } = d, l = W(d, ["supportsLineBreak", "password", "number", "boolean", "input", "expression"]), c = useEnvironmentVariableOptions(e.scope), u = { value: "name", label: "title" };
52714
52758
  return t ? /* @__PURE__ */ jsx(RawTextArea, P(x({}, l), { scope: c, fieldNames: u, rows: 3 })) : o ? /* @__PURE__ */ jsx(Variable.Input, P(x({}, e), { scope: c, fieldNames: u })) : n && e.value && !isVariable(e.value) ? /* @__PURE__ */ jsx(Password, P(x({}, l), { autoFocus: !0 })) : r ? /* @__PURE__ */ jsx(Variable.Input, P(x({}, e), { scope: c, fieldNames: u })) : a ? /* @__PURE__ */ jsx(Variable.Input, P(x({}, l), { scope: c, fieldNames: u })) : i ? /* @__PURE__ */ jsx(TextArea, P(x({}, l), { scope: c, fieldNames: u })) : /* @__PURE__ */ jsx(Variable.Input, P(x({}, l), { scope: c, fieldNames: u }));
52715
52759
  }, mapReadPretty(Input$2.ReadPretty)), isDrawerTitle = (e) => isNum$1(e) || isStr(e) || isBool(e) || React.isValidElement(e), getDrawerProps = (e) => isDrawerTitle(e) ? {
52716
52760
  title: e
@@ -53166,12 +53210,12 @@ const useCollectionFields = (e) => {
53166
53210
  const t = useCollection();
53167
53211
  return useMemo(() => t.getFields(e), [t, e]);
53168
53212
  }, collectionTransform = (e, t) => {
53169
- const i = e, { rawTitle: n, title: o, fields: r = [] } = i, a = Y(i, ["rawTitle", "title", "fields"]);
53213
+ const i = e, { rawTitle: n, title: o, fields: r = [] } = i, a = W(i, ["rawTitle", "title", "fields"]);
53170
53214
  return P(x({}, a), {
53171
53215
  title: n ? o : t.i18n.t(o, { ns: "lm-collections" }),
53172
53216
  rawTitle: n || o,
53173
53217
  fields: r == null ? void 0 : r.map((u) => {
53174
- var d = u, { uiSchema: l } = d, c = Y(d, ["uiSchema"]);
53218
+ var d = u, { uiSchema: l } = d, c = W(d, ["uiSchema"]);
53175
53219
  if (l != null && l.title) {
53176
53220
  const p = l.title;
53177
53221
  l.title = l.rawTitle ? p : t.i18n.t(p, { ns: "lm-collections" }), l.rawTitle = l.rawTitle || p;
@@ -53453,7 +53497,7 @@ const SelfFields = (e) => {
53453
53497
  });
53454
53498
  return /* @__PURE__ */ jsx(SchemaInitializerChildren, { children: i });
53455
53499
  }, AssociationCollectionFields = (e) => {
53456
- const m = e, { filterAssociationField: t, filterSelfField: n = () => !0, getSchema: o } = m, r = Y(m, ["filterAssociationField", "filterSelfField", "getSchema"]), { collection: a, t: i, collectionManager: l } = e.context, c = a.getFields(), u = ["o2o", "oho", "obo", "m2o"], d = c.filter((h) => u.includes(h.interface)).filter((h) => n(h, e.context));
53500
+ const m = e, { filterAssociationField: t, filterSelfField: n = () => !0, getSchema: o } = m, r = W(m, ["filterAssociationField", "filterSelfField", "getSchema"]), { collection: a, t: i, collectionManager: l } = e.context, c = a.getFields(), u = ["o2o", "oho", "obo", "m2o"], d = c.filter((h) => u.includes(h.interface)).filter((h) => n(h, e.context));
53457
53501
  if (!d.length)
53458
53502
  return null;
53459
53503
  const p = d.map((h) => {
@@ -54528,19 +54572,19 @@ const useCurrentAppInfo = () => useContext(CurrentAppInfoContext), CurrentAppInf
54528
54572
  {
54529
54573
  value: O,
54530
54574
  onChange: (U) => {
54531
- var K, X;
54575
+ var K, Y;
54532
54576
  if (R.key === "tlds" && (j.key === "email" || j.key === "domain")) {
54533
- const W = U.target.value;
54534
- if (W === "iana")
54577
+ const X = U.target.value;
54578
+ if (X === "iana")
54535
54579
  F(M.key, "tlds", { allow: !0 });
54536
- else if (W === "disable")
54580
+ else if (X === "disable")
54537
54581
  F(M.key, "tlds", !1);
54538
- else if (W === "allow") {
54539
- const J = (K = M.args) == null ? void 0 : K.tlds, Z = Array.isArray(J == null ? void 0 : J.allow) ? J.allow : [];
54540
- F(M.key, "tlds", { allow: Z });
54541
- } else if (W === "deny") {
54542
- const J = (X = M.args) == null ? void 0 : X.tlds, Z = Array.isArray(J == null ? void 0 : J.deny) ? J.deny : [];
54543
- F(M.key, "tlds", { deny: Z });
54582
+ else if (X === "allow") {
54583
+ const Q = (K = M.args) == null ? void 0 : K.tlds, ee = Array.isArray(Q == null ? void 0 : Q.allow) ? Q.allow : [];
54584
+ F(M.key, "tlds", { allow: ee });
54585
+ } else if (X === "deny") {
54586
+ const Q = (Y = M.args) == null ? void 0 : Y.tlds, ee = Array.isArray(Q == null ? void 0 : Q.deny) ? Q.deny : [];
54587
+ F(M.key, "tlds", { deny: ee });
54544
54588
  }
54545
54589
  } else
54546
54590
  F(M.key, R.key, U.target.value);
@@ -54549,21 +54593,21 @@ const useCurrentAppInfo = () => useContext(CurrentAppInfoContext), CurrentAppInf
54549
54593
  }
54550
54594
  ),
54551
54595
  (L = R.options) == null ? void 0 : L.map((U) => {
54552
- var K, X, W;
54596
+ var K, Y, X;
54553
54597
  return U.value === O && U.componentType ? /* @__PURE__ */ jsx("div", { style: { marginTop: c.marginXS }, children: U.componentType === "text" ? (() => {
54554
- var Z;
54598
+ var ee;
54555
54599
  if (R.key === "tlds" && (U.value === "allow" || U.value === "deny")) {
54556
- const Q = (Z = M.args) == null ? void 0 : Z.tlds, ee = Array.isArray(
54557
- U.value === "allow" ? Q == null ? void 0 : Q.allow : Q == null ? void 0 : Q.deny
54558
- ) ? U.value === "allow" ? Q.allow : Q.deny : [];
54600
+ const J = (ee = M.args) == null ? void 0 : ee.tlds, Z = Array.isArray(
54601
+ U.value === "allow" ? J == null ? void 0 : J.allow : J == null ? void 0 : J.deny
54602
+ ) ? U.value === "allow" ? J.allow : J.deny : [];
54559
54603
  return /* @__PURE__ */ jsx(
54560
54604
  Select$1,
54561
54605
  {
54562
54606
  mode: "tags",
54563
- value: ee,
54564
- onChange: (ne) => {
54607
+ value: Z,
54608
+ onChange: (te) => {
54565
54609
  const re = Array.from(
54566
- new Set(ne.map((ie) => String(ie).trim()).filter(Boolean))
54610
+ new Set(te.map((se) => String(se).trim()).filter(Boolean))
54567
54611
  );
54568
54612
  U.value === "allow" ? F(M.key, "tlds", { allow: re }) : F(M.key, "tlds", { deny: re });
54569
54613
  },
@@ -54578,7 +54622,7 @@ const useCurrentAppInfo = () => useContext(CurrentAppInfoContext), CurrentAppInf
54578
54622
  Input$3,
54579
54623
  {
54580
54624
  value: "",
54581
- onChange: (Q) => F(M.key, `${R.key}_${U.value}`, Q.target.value),
54625
+ onChange: (J) => F(M.key, `${R.key}_${U.value}`, J.target.value),
54582
54626
  style: { width: "100%" }
54583
54627
  }
54584
54628
  );
@@ -54588,21 +54632,21 @@ const useCurrentAppInfo = () => useContext(CurrentAppInfoContext), CurrentAppInf
54588
54632
  precision: y ? void 0 : 0,
54589
54633
  step: y ? 0.1 : 1,
54590
54634
  value: ((K = M.args) == null ? void 0 : K[`${R.key}_${U.value}`]) || "",
54591
- onChange: (J) => F(M.key, `${R.key}_${U.value}`, J),
54635
+ onChange: (Q) => F(M.key, `${R.key}_${U.value}`, Q),
54592
54636
  style: { width: "100%" }
54593
54637
  }
54594
54638
  ) : U.componentType === "checkbox" ? /* @__PURE__ */ jsx(
54595
54639
  Checkbox$1,
54596
54640
  {
54597
- checked: ((X = M.args) == null ? void 0 : X[`${R.key}_${U.value}`]) || !1,
54598
- onChange: (J) => F(M.key, `${R.key}_${U.value}`, J.target.checked),
54641
+ checked: ((Y = M.args) == null ? void 0 : Y[`${R.key}_${U.value}`]) || !1,
54642
+ onChange: (Q) => F(M.key, `${R.key}_${U.value}`, Q.target.checked),
54599
54643
  children: l(U.label)
54600
54644
  }
54601
54645
  ) : U.componentType === "datePicker" ? /* @__PURE__ */ jsx(
54602
54646
  DatePicker$1,
54603
54647
  {
54604
- value: (W = M.args) != null && W[`${R.key}_${U.value}`] ? dayjs(M.args[`${R.key}_${U.value}`]) : null,
54605
- onChange: (J) => F(M.key, `${R.key}_${U.value}`, J == null ? void 0 : J.toISOString()),
54648
+ value: (X = M.args) != null && X[`${R.key}_${U.value}`] ? dayjs(M.args[`${R.key}_${U.value}`]) : null,
54649
+ onChange: (Q) => F(M.key, `${R.key}_${U.value}`, Q == null ? void 0 : Q.toISOString()),
54606
54650
  placeholder: l("Select date"),
54607
54651
  style: { width: "100%" }
54608
54652
  }
@@ -55357,7 +55401,7 @@ const supportTypes = ["string", "bigInt", "integer", "uuid", "uid", "nanoid"], S
55357
55401
  const t = useRecord(), n = useCollectionParentRecordData();
55358
55402
  return /* @__PURE__ */ jsx(EditFieldAction, x({ item: t, parentItem: n }, e));
55359
55403
  }, EditFieldAction = (e) => {
55360
- const F = e, { scope: t, getContainer: n, item: o, parentItem: r, children: a } = F, i = Y(F, ["scope", "getContainer", "item", "parentItem", "children"]), { getInterface: l, collections: c, getCollection: u } = useCollectionManager_deprecated(), [d, p] = useState(!1), [m, h] = useState({}), g = useAPIClient(), { t: f } = useTranslation(), C = useCompile(), [b, S] = useState({}), { isDialect: y } = useDialect(), v = useMemo(() => {
55404
+ const F = e, { scope: t, getContainer: n, item: o, parentItem: r, children: a } = F, i = W(F, ["scope", "getContainer", "item", "parentItem", "children"]), { getInterface: l, collections: c, getCollection: u } = useCollectionManager_deprecated(), [d, p] = useState(!1), [m, h] = useState({}), g = useAPIClient(), { t: f } = useTranslation(), C = useCompile(), [b, S] = useState({}), { isDialect: y } = useDialect(), v = useMemo(() => {
55361
55405
  var w;
55362
55406
  return (o == null ? void 0 : o.fields) || ((w = u(o.collectionName)) == null ? void 0 : w.options.fields.filter((T) => ["string", "bigInt", "integer"].includes(T.type)).map((T) => {
55363
55407
  var D;
@@ -55928,7 +55972,7 @@ const getSchema$4 = (e, t, n) => {
55928
55972
  const t = useRecord();
55929
55973
  return /* @__PURE__ */ jsx(EditCollectionAction, x({ item: t }, e));
55930
55974
  }, EditCollectionAction = (e) => {
55931
- const h = e, { scope: t, getContainer: n, item: o, children: r } = h, a = Y(h, ["scope", "getContainer", "item", "children"]), { getTemplate: i } = useCollectionManager_deprecated(), [l, c] = useState(!1), [u, d] = useState({}), { t: p } = useTranslation(), m = useCompile();
55975
+ const h = e, { scope: t, getContainer: n, item: o, children: r } = h, a = W(h, ["scope", "getContainer", "item", "children"]), { getTemplate: i } = useCollectionManager_deprecated(), [l, c] = useState(!1), [u, d] = useState({}), { t: p } = useTranslation(), m = useCompile();
55932
55976
  return /* @__PURE__ */ jsx(RecordProvider, { record: o, children: /* @__PURE__ */ jsxs(ActionContextProvider, { value: { visible: l, setVisible: c }, children: [
55933
55977
  /* @__PURE__ */ jsx(
55934
55978
  "a",
@@ -56389,7 +56433,7 @@ const mapFields = ["lineString", "point", "circle", "polygon"], PreviewTable$1 =
56389
56433
  }, AsyncDataContext = createContext(null);
56390
56434
  AsyncDataContext.displayName = "AsyncDataContext";
56391
56435
  const AsyncDataProvider = (e) => {
56392
- const i = e, { value: t, request: n, children: o } = i, r = Y(i, ["value", "request", "children"]), a = useRequest(n, x({}, r));
56436
+ const i = e, { value: t, request: n, children: o } = i, r = W(i, ["value", "request", "children"]), a = useRequest(n, x({}, r));
56393
56437
  return t ? /* @__PURE__ */ jsx(AsyncDataContext.Provider, { value: t, children: o }) : /* @__PURE__ */ jsx(AsyncDataContext.Provider, { value: a, children: o });
56394
56438
  }, useAsyncData = () => useContext(AsyncDataContext), inferInterface = (e, t) => e.toLowerCase().includes("id") ? "id" : typeof t == "number" ? Number.isInteger(t) ? "integer" : "number" : typeof t == "boolean" ? "checkbox" : dayjs(t).isValid() ? "datetime" : "input", useSourceFieldsOptions = () => {
56395
56439
  const e = useForm(), { sources: t = [] } = e.values, { t: n } = useTranslation(), { getCollection: o, getInheritCollections: r, getParentCollectionFields: a } = useCollectionManager_deprecated(), i = [];
@@ -56851,7 +56895,7 @@ const AsyncDataProvider = (e) => {
56851
56895
  }
56852
56896
  };
56853
56897
  }, DeleteCollectionAction = (e) => {
56854
- const h = e, { scope: t, getContainer: n, item: o, children: r, isBulk: a, useAction: i } = h, l = Y(h, ["scope", "getContainer", "item", "children", "isBulk", "useAction"]), { t: c } = useTranslation(), [u, d] = useState(!1), p = () => a ? useBulkDestroyActionAndRefreshCM : i || useDestroyActionAndRefreshCM, m = () => /* @__PURE__ */ jsxs("span", { children: [
56898
+ const h = e, { scope: t, getContainer: n, item: o, children: r, isBulk: a, useAction: i } = h, l = W(h, ["scope", "getContainer", "item", "children", "isBulk", "useAction"]), { t: c } = useTranslation(), [u, d] = useState(!1), p = () => a ? useBulkDestroyActionAndRefreshCM : i || useDestroyActionAndRefreshCM, m = () => /* @__PURE__ */ jsxs("span", { children: [
56855
56899
  /* @__PURE__ */ jsx(ExclamationCircleFilled, { style: { color: "#faad14", marginRight: "12px", fontSize: "22px" } }),
56856
56900
  /* @__PURE__ */ jsx("span", { style: { fontSize: "19px" }, children: c("Delete collection") })
56857
56901
  ] });
@@ -61276,7 +61320,7 @@ const useBlockContext = () => useContext(BlockContext), useCompatDataBlockParent
61276
61320
  };
61277
61321
  return n.__collection && i && !["oho", "m2o", "obo"].includes(i.interface) && (u.targetCollection = n.__collection), !t && Object.keys(c).length > 0 && (u.filter = c), u;
61278
61322
  }, RecordLink = (e) => {
61279
- const t = useField(), n = useRecord(), l = e, { title: o, to: r } = l, a = Y(l, ["title", "to"]), i = template(r || "");
61323
+ const t = useField(), n = useRecord(), l = e, { title: o, to: r } = l, a = W(l, ["title", "to"]), i = template(r || "");
61280
61324
  return /* @__PURE__ */ jsx(Link$1, P(x({}, a), { to: i({ record: n || {} }), children: t.title }));
61281
61325
  }, ACLContext = createContext({});
61282
61326
  ACLContext.displayName = "ACLContext";
@@ -64246,7 +64290,7 @@ AppLangContext.displayName = "AppLangContext";
64246
64290
  const useAppLangContext = () => useContext(AppLangContext);
64247
64291
  function AntdConfigProvider(e) {
64248
64292
  var c;
64249
- const l = e, { remoteLocale: t } = l, n = Y(l, ["remoteLocale"]), o = useAPIClient(), { i18n: r } = useTranslation(), { data: a, loading: i } = useRequest(
64293
+ const l = e, { remoteLocale: t } = l, n = W(l, ["remoteLocale"]), o = useAPIClient(), { i18n: r } = useTranslation(), { data: a, loading: i } = useRequest(
64250
64294
  {
64251
64295
  url: "app:getLang",
64252
64296
  params: {
@@ -65114,20 +65158,20 @@ const ActionInitializerItem = (e) => {
65114
65158
  }, 100);
65115
65159
  }, [i.default, d]), !a)
65116
65160
  return null;
65117
- const $ = (X) => {
65118
- B(X), R(!1);
65119
- }, A = (X) => {
65120
- M(X), d(X), p == null || p(X);
65121
- }, E = (X) => {
65122
- var J;
65123
- const W = (J = h == null ? void 0 : h[0]) == null ? void 0 : J.filter;
65124
- (y || W) && g(P(x({}, h == null ? void 0 : h[0]), {
65161
+ const $ = (Y) => {
65162
+ B(Y), R(!1);
65163
+ }, A = (Y) => {
65164
+ M(Y), d(Y), p == null || p(Y);
65165
+ }, E = (Y) => {
65166
+ var Q;
65167
+ const X = (Q = h == null ? void 0 : h[0]) == null ? void 0 : Q.filter;
65168
+ (y || X) && g(P(x({}, h == null ? void 0 : h[0]), {
65125
65169
  filter: f
65126
- })), v(!y), X.stopPropagation();
65127
- }, z = (X) => {
65128
- X.stopPropagation();
65129
- }, L = (X) => {
65130
- m(X);
65170
+ })), v(!y), Y.stopPropagation();
65171
+ }, z = (Y) => {
65172
+ Y.stopPropagation();
65173
+ }, L = (Y) => {
65174
+ m(Y);
65131
65175
  }, V = (K = i.title) != null ? K : (U = a == null ? void 0 : a.uiSchema) == null ? void 0 : U.title;
65132
65176
  return t(
65133
65177
  /* @__PURE__ */ jsxs(SortableItem, { className: cls(n, o, "nb-block-item", e.className, "SortableItem"), children: [
@@ -65178,7 +65222,7 @@ const ActionInitializerItem = (e) => {
65178
65222
  treeData: u,
65179
65223
  onSelect: A,
65180
65224
  fieldNames: T,
65181
- titleRender: (X) => /* @__PURE__ */ jsx(EllipsisWithTooltip, { ellipsis: !0, children: getLabelFormatValue(O, c(X[w])) }),
65225
+ titleRender: (Y) => /* @__PURE__ */ jsx(EllipsisWithTooltip, { ellipsis: !0, children: getLabelFormatValue(O, c(Y[w])) }),
65182
65226
  selectedKeys: N,
65183
65227
  blockNode: !0
65184
65228
  }
@@ -65395,7 +65439,7 @@ const AssociationFilterDesignerDelete = () => {
65395
65439
  }
65396
65440
  );
65397
65441
  }, BlockInitializer = (e) => {
65398
- const a = e, { item: t, schema: n } = a, o = Y(a, ["item", "schema"]), { insert: r } = useSchemaInitializer();
65442
+ const a = e, { item: t, schema: n } = a, o = W(a, ["item", "schema"]), { insert: r } = useSchemaInitializer();
65399
65443
  return /* @__PURE__ */ jsx(
65400
65444
  SchemaInitializerItem,
65401
65445
  P(x({}, o), {
@@ -65407,7 +65451,7 @@ const AssociationFilterDesignerDelete = () => {
65407
65451
  })
65408
65452
  );
65409
65453
  }, BlockItemInitializer = () => {
65410
- const e = useSchemaInitializerItem(), o = e, { schema: t } = o, n = Y(o, ["schema"]);
65454
+ const e = useSchemaInitializerItem(), o = e, { schema: t } = o, n = W(o, ["schema"]);
65411
65455
  return /* @__PURE__ */ jsx(BlockInitializer, P(x({}, n), { item: e }));
65412
65456
  }, CreateFilterActionInitializer = (e) => {
65413
65457
  const t = {
@@ -65746,7 +65790,7 @@ const DataBlockInitializer = (e) => {
65746
65790
  }
65747
65791
  };
65748
65792
  }, RecordAssociationBlockInitializer = () => {
65749
- const e = useSchemaInitializerItem(), p = e, { onCreateBlockSchema: t, componentType: n, createBlockSchema: o } = p, r = Y(p, ["onCreateBlockSchema", "componentType", "createBlockSchema"]), { insert: a } = useSchemaInitializer(), { getTemplateSchemaByMode: i } = useSchemaTemplateManager(), { getCollection: l } = useCollectionManager_deprecated(), c = e.field, u = l(c.target), d = `${c.collectionName}.${c.name}`;
65793
+ const e = useSchemaInitializerItem(), p = e, { onCreateBlockSchema: t, componentType: n, createBlockSchema: o } = p, r = W(p, ["onCreateBlockSchema", "componentType", "createBlockSchema"]), { insert: a } = useSchemaInitializer(), { getTemplateSchemaByMode: i } = useSchemaTemplateManager(), { getCollection: l } = useCollectionManager_deprecated(), c = e.field, u = l(c.target), d = `${c.collectionName}.${c.name}`;
65750
65794
  return /* @__PURE__ */ jsx(
65751
65795
  SchemaInitializerItem,
65752
65796
  P(x({
@@ -65840,7 +65884,7 @@ function createDetailsWithPaginationUISchema(e) {
65840
65884
  };
65841
65885
  }
65842
65886
  const RecordAssociationDetailsBlockInitializer = () => {
65843
- const e = useSchemaInitializerItem(), p = e, { onCreateBlockSchema: t, componentType: n, createBlockSchema: o } = p, r = Y(p, ["onCreateBlockSchema", "componentType", "createBlockSchema"]), { insert: a } = useSchemaInitializer(), { getTemplateSchemaByMode: i } = useSchemaTemplateManager(), { getCollection: l } = useCollectionManager_deprecated(), c = e.field, u = l(c.target), d = `${c.collectionName}.${c.name}`;
65887
+ const e = useSchemaInitializerItem(), p = e, { onCreateBlockSchema: t, componentType: n, createBlockSchema: o } = p, r = W(p, ["onCreateBlockSchema", "componentType", "createBlockSchema"]), { insert: a } = useSchemaInitializer(), { getTemplateSchemaByMode: i } = useSchemaTemplateManager(), { getCollection: l } = useCollectionManager_deprecated(), c = e.field, u = l(c.target), d = `${c.collectionName}.${c.name}`;
65844
65888
  return /* @__PURE__ */ jsx(
65845
65889
  SchemaInitializerItem,
65846
65890
  P(x({
@@ -65926,7 +65970,7 @@ function createCreateFormBlockUISchema(e) {
65926
65970
  };
65927
65971
  }
65928
65972
  const RecordAssociationFormBlockInitializer = () => {
65929
- const e = useSchemaInitializerItem(), p = e, { onCreateBlockSchema: t, componentType: n, createBlockSchema: o } = p, r = Y(p, ["onCreateBlockSchema", "componentType", "createBlockSchema"]), { insert: a } = useSchemaInitializer(), { getCollection: i } = useCollectionManager_deprecated(), { getTemplateSchemaByMode: l } = useSchemaTemplateManager(), c = e.field, u = c.target, d = useMemo(() => i(u), [u]);
65973
+ const e = useSchemaInitializerItem(), p = e, { onCreateBlockSchema: t, componentType: n, createBlockSchema: o } = p, r = W(p, ["onCreateBlockSchema", "componentType", "createBlockSchema"]), { insert: a } = useSchemaInitializer(), { getCollection: i } = useCollectionManager_deprecated(), { getTemplateSchemaByMode: l } = useSchemaTemplateManager(), c = e.field, u = c.target, d = useMemo(() => i(u), [u]);
65930
65974
  return /* @__PURE__ */ jsx(
65931
65975
  SchemaInitializerItem,
65932
65976
  P(x({
@@ -66054,7 +66098,7 @@ const createGridCardBlockUISchema = (e) => {
66054
66098
  }
66055
66099
  };
66056
66100
  }, RecordAssociationGridCardBlockInitializer = () => {
66057
- const e = useSchemaInitializerItem(), p = e, { onCreateBlockSchema: t, componentType: n, createBlockSchema: o } = p, r = Y(p, ["onCreateBlockSchema", "componentType", "createBlockSchema"]), { insert: a } = useSchemaInitializer(), { getTemplateSchemaByMode: i } = useSchemaTemplateManager(), { getCollection: l } = useCollectionManager_deprecated(), c = e.field, u = l(c.target), d = `${c.collectionName}.${c.name}`;
66101
+ const e = useSchemaInitializerItem(), p = e, { onCreateBlockSchema: t, componentType: n, createBlockSchema: o } = p, r = W(p, ["onCreateBlockSchema", "componentType", "createBlockSchema"]), { insert: a } = useSchemaInitializer(), { getTemplateSchemaByMode: i } = useSchemaTemplateManager(), { getCollection: l } = useCollectionManager_deprecated(), c = e.field, u = l(c.target), d = `${c.collectionName}.${c.name}`;
66058
66102
  return /* @__PURE__ */ jsx(
66059
66103
  SchemaInitializerItem,
66060
66104
  P(x({
@@ -66159,7 +66203,7 @@ const createListBlockUISchema = (e) => {
66159
66203
  }
66160
66204
  };
66161
66205
  }, RecordAssociationListBlockInitializer = () => {
66162
- const e = useSchemaInitializerItem(), p = e, { onCreateBlockSchema: t, componentType: n, createBlockSchema: o } = p, r = Y(p, ["onCreateBlockSchema", "componentType", "createBlockSchema"]), { insert: a } = useSchemaInitializer(), { getTemplateSchemaByMode: i } = useSchemaTemplateManager(), { getCollection: l } = useCollectionManager_deprecated(), c = e.field, u = l(c.target), d = `${c.collectionName}.${c.name}`;
66206
+ const e = useSchemaInitializerItem(), p = e, { onCreateBlockSchema: t, componentType: n, createBlockSchema: o } = p, r = W(p, ["onCreateBlockSchema", "componentType", "createBlockSchema"]), { insert: a } = useSchemaInitializer(), { getTemplateSchemaByMode: i } = useSchemaTemplateManager(), { getCollection: l } = useCollectionManager_deprecated(), c = e.field, u = l(c.target), d = `${c.collectionName}.${c.name}`;
66163
66207
  return /* @__PURE__ */ jsx(
66164
66208
  SchemaInitializerItem,
66165
66209
  P(x({
@@ -66248,7 +66292,7 @@ function createDetailsUISchema(e) {
66248
66292
  });
66249
66293
  }
66250
66294
  const RecordReadPrettyAssociationFormBlockInitializer = () => {
66251
- const e = useSchemaInitializerItem(), m = e, { onCreateBlockSchema: t, componentType: n, createBlockSchema: o } = m, r = Y(m, ["onCreateBlockSchema", "componentType", "createBlockSchema"]), { insert: a } = useSchemaInitializer(), { getCollection: i } = useCollectionManager_deprecated(), { getTemplateSchemaByMode: l } = useSchemaTemplateManager(), c = e.field, u = c.target, d = i(u), p = `${c.collectionName}.${c.name}`;
66295
+ const e = useSchemaInitializerItem(), m = e, { onCreateBlockSchema: t, componentType: n, createBlockSchema: o } = m, r = W(m, ["onCreateBlockSchema", "componentType", "createBlockSchema"]), { insert: a } = useSchemaInitializer(), { getCollection: i } = useCollectionManager_deprecated(), { getTemplateSchemaByMode: l } = useSchemaTemplateManager(), c = e.field, u = c.target, d = i(u), p = `${c.collectionName}.${c.name}`;
66252
66296
  return /* @__PURE__ */ jsx(
66253
66297
  SchemaInitializerItem,
66254
66298
  P(x({
@@ -66405,7 +66449,7 @@ const SelectActionInitializer = (e) => {
66405
66449
  return /* @__PURE__ */ jsx(InitializerWithSwitch, P(x({}, t), { schema: e, item: t, type: "x-action-column" }));
66406
66450
  };
66407
66451
  function ModalActionSchemaInitializerItem(e) {
66408
- const d = e, { modalSchema: t = {}, components: n = {} } = d, o = Y(d, ["modalSchema", "components"]), p = t, { properties: r } = p, a = Y(p, ["properties"]), [i, l] = useState(!1), { setVisible: c } = useSchemaInitializer$1(), u = useMemo(() => P(x({
66452
+ const d = e, { modalSchema: t = {}, components: n = {} } = d, o = W(d, ["modalSchema", "components"]), p = t, { properties: r } = p, a = W(p, ["properties"]), [i, l] = useState(!1), { setVisible: c } = useSchemaInitializer$1(), u = useMemo(() => P(x({
66409
66453
  name: uid$1(),
66410
66454
  "x-component": "Action.Modal",
66411
66455
  "x-component-props": {
@@ -66704,7 +66748,7 @@ const items = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
66704
66748
  }, r = useSchemaInitializerItem();
66705
66749
  return /* @__PURE__ */ jsx(BlockInitializer, P(x({}, r), { schema: o, item: r }));
66706
66750
  }, useTableSelectorProps = () => {
66707
- const { setSelectedRows: e } = useContext(RecordPickerContext), r = useTableSelectorProps$4(), { onRowSelectionChange: t, rowKey: n = "id" } = r, o = Y(r, ["onRowSelectionChange", "rowKey"]);
66751
+ const { setSelectedRows: e } = useContext(RecordPickerContext), r = useTableSelectorProps$4(), { onRowSelectionChange: t, rowKey: n = "id" } = r, o = W(r, ["onRowSelectionChange", "rowKey"]);
66708
66752
  return P(x({}, o), {
66709
66753
  rowKey: n,
66710
66754
  rowSelection: {
@@ -67168,7 +67212,7 @@ const items = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
67168
67212
  }, commonOptions$i),
67169
67213
  readPrettyFormItemInitializers_deprecated
67170
67214
  ), RecordReadPrettyFormBlockInitializer = () => {
67171
- const l = useSchemaInitializerItem(), { icon: t = !0, targetCollection: n } = l, o = Y(l, ["icon", "targetCollection"]), r = useCollection_deprecated(), a = n || r, { createSingleDetailsSchema: i } = useCreateSingleDetailsSchema();
67215
+ const l = useSchemaInitializerItem(), { icon: t = !0, targetCollection: n } = l, o = W(l, ["icon", "targetCollection"]), r = useCollection_deprecated(), a = n || r, { createSingleDetailsSchema: i } = useCreateSingleDetailsSchema();
67172
67216
  return /* @__PURE__ */ jsx(
67173
67217
  SchemaInitializerItem,
67174
67218
  P(x({
@@ -67369,7 +67413,7 @@ function createEditFormBlockUISchema(e) {
67369
67413
  });
67370
67414
  }
67371
67415
  const RecordFormBlockInitializer = () => {
67372
- const u = useSchemaInitializerItem(), { targetCollection: t } = u, n = Y(u, ["targetCollection"]), { insert: o } = useSchemaInitializer(), { getTemplateSchemaByMode: r } = useSchemaTemplateManager(), a = useCollection_deprecated(), i = t || a, { createEditFormBlock: l, templateWrap: c } = useCreateEditFormBlock();
67416
+ const u = useSchemaInitializerItem(), { targetCollection: t } = u, n = W(u, ["targetCollection"]), { insert: o } = useSchemaInitializer(), { getTemplateSchemaByMode: r } = useSchemaTemplateManager(), a = useCollection_deprecated(), i = t || a, { createEditFormBlock: l, templateWrap: c } = useCreateEditFormBlock();
67373
67417
  return /* @__PURE__ */ jsx(
67374
67418
  SchemaInitializerItem,
67375
67419
  P(x({
@@ -68041,7 +68085,7 @@ const commonOptions$h = {
68041
68085
  }
68042
68086
  };
68043
68087
  }, TableSelectorInitializer = () => {
68044
- const l = useSchemaInitializerItem(), { onCreateBlockSchema: t, componentType: n, createBlockSchema: o } = l, r = Y(l, ["onCreateBlockSchema", "componentType", "createBlockSchema"]), { insert: a } = useSchemaInitializer(), i = useCollection_deprecated();
68088
+ const l = useSchemaInitializerItem(), { onCreateBlockSchema: t, componentType: n, createBlockSchema: o } = l, r = W(l, ["onCreateBlockSchema", "componentType", "createBlockSchema"]), { insert: a } = useSchemaInitializer(), i = useCollection_deprecated();
68045
68089
  return /* @__PURE__ */ jsx(
68046
68090
  SchemaInitializerItem,
68047
68091
  P(x({
@@ -68066,7 +68110,7 @@ const commonOptions$h = {
68066
68110
  {
68067
68111
  title: e("Column width"),
68068
68112
  component: React.forwardRef((r, a) => {
68069
- const u = r, { children: i, onClick: l } = u, c = Y(u, ["children", "onClick"]);
68113
+ const u = r, { children: i, onClick: l } = u, c = W(u, ["children", "onClick"]);
68070
68114
  return /* @__PURE__ */ jsx(
68071
68115
  SchemaInitializerItem,
68072
68116
  P(x({