@nocobase/client 1.6.4 → 1.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es/index.mjs CHANGED
@@ -701,9 +701,6 @@ const bp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
701
701
  get defaultFieldNames() {
702
702
  return defaultFieldNames$1;
703
703
  },
704
- get encodeFileURL() {
705
- return encodeFileURL;
706
- },
707
704
  get fetchTemplateData() {
708
705
  return fetchTemplateData;
709
706
  },
@@ -2817,9 +2814,6 @@ const bp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2817
2814
  get editFormBlockSettings() {
2818
2815
  return editFormBlockSettings;
2819
2816
  },
2820
- get encodeFileURL() {
2821
- return encodeFileURL;
2822
- },
2823
2817
  get fetchTemplateData() {
2824
2818
  return fetchTemplateData;
2825
2819
  },
@@ -6885,7 +6879,7 @@ const DataBlockCollector = ({
6885
6879
  },
6886
6880
  clearSelection() {
6887
6881
  var h, g;
6888
- i && ((g = (h = i.data).clearSelectedRowKeys) == null || g.call(h));
6882
+ i && ((g = (h = i.data) == null ? void 0 : h.clearSelectedRowKeys) == null || g.call(h));
6889
6883
  }
6890
6884
  });
6891
6885
  }, [
@@ -7676,7 +7670,7 @@ const useGlobalTheme = () => React.useContext(GlobalThemeContext) || { theme: {}
7676
7670
  }, useToken = () => theme.useToken(), CSSVariableProvider = ({ children: e }) => {
7677
7671
  const { token: t } = useToken(), n = t.colorFillTertiary, o = new TinyColor(t.colorFill).onBackground(t.colorFillSecondary).toHexShortString(), r = new TinyColor(t.colorFill).onBackground(t.colorFill).toHexShortString(), i = new TinyColor(t.colorFill).onBackground(t.colorFill).onBackground(t.colorFill).toHexShortString();
7678
7672
  return useEffect(() => {
7679
- document.body.style.setProperty("--nb-spacing", `${t.marginLG}px`), document.body.style.setProperty("--nb-designer-offset", `${t.marginXS}px`), document.body.style.setProperty("--nb-header-height", `${t.sizeXXL - 2}px`), document.body.style.setProperty("--nb-box-bg", t.colorBgLayout), document.body.style.setProperty("--nb-box-bg", t.colorBgLayout), document.body.style.setProperty("--controlHeightLG", `${t.controlHeightLG}px`), document.body.style.setProperty("--paddingContentVerticalSM", `${t.paddingContentVerticalSM}px`), document.body.style.setProperty("--marginSM", `${t.marginSM}px`), document.body.style.setProperty("--colorInfoBg", t.colorInfoBg), document.body.style.setProperty("--colorInfoBorder", t.colorInfoBorder), document.body.style.setProperty("--colorWarningBg", t.colorWarningBg), document.body.style.setProperty("--colorWarningBorder", t.colorWarningBorder), document.body.style.setProperty("--colorText", t.colorText), document.body.style.setProperty("--colorPrimaryText", t.colorPrimaryText), document.body.style.setProperty("--colorPrimaryTextActive", t.colorPrimaryTextActive), document.body.style.setProperty("--colorPrimaryTextHover", t.colorPrimaryTextHover), document.body.style.setProperty("--colorBgScrollTrack", n), document.body.style.setProperty("--colorBgScrollBar", o), document.body.style.setProperty("--colorBgScrollBarHover", r), document.body.style.setProperty("--colorBgScrollBarActive", i), document.body.style.setProperty("--colorSettings", t.colorSettings || defaultTheme.token.colorSettings), document.body.style.setProperty("--colorBgSettingsHover", t.colorBgSettingsHover), document.body.style.setProperty("--colorBorderSettingsHover", t.colorBorderSettingsHover), document.body.style.setProperty("--colorBgMenuItemSelected", t.colorBgHeaderMenuActive), document.body.style.setProperty("background-color", t.colorBgContainer);
7673
+ document.body.style.setProperty("--nb-spacing", `${t.marginLG}px`), document.body.style.setProperty("--nb-designer-offset", `${t.marginXS}px`), document.body.style.setProperty("--nb-header-height", `${t.sizeXXL - 2}px`), document.body.style.setProperty("--nb-box-bg", t.colorBgLayout), document.body.style.setProperty("--nb-box-bg", t.colorBgLayout), document.body.style.setProperty("--controlHeightLG", `${t.controlHeightLG}px`), document.body.style.setProperty("--paddingContentVerticalSM", `${t.paddingContentVerticalSM}px`), document.body.style.setProperty("--marginSM", `${t.marginSM}px`), document.body.style.setProperty("--colorInfoBg", t.colorInfoBg), document.body.style.setProperty("--colorInfoBorder", t.colorInfoBorder), document.body.style.setProperty("--colorWarningBg", t.colorWarningBg), document.body.style.setProperty("--colorWarningBorder", t.colorWarningBorder), document.body.style.setProperty("--colorText", t.colorText), document.body.style.setProperty("--colorTextHeaderMenu", t.colorTextHeaderMenu), document.body.style.setProperty("--colorPrimaryText", t.colorPrimaryText), document.body.style.setProperty("--colorPrimaryTextActive", t.colorPrimaryTextActive), document.body.style.setProperty("--colorPrimaryTextHover", t.colorPrimaryTextHover), document.body.style.setProperty("--colorBgScrollTrack", n), document.body.style.setProperty("--colorBgScrollBar", o), document.body.style.setProperty("--colorBgScrollBarHover", r), document.body.style.setProperty("--colorBgScrollBarActive", i), document.body.style.setProperty("--colorSettings", t.colorSettings || defaultTheme.token.colorSettings), document.body.style.setProperty("--colorBgSettingsHover", t.colorBgSettingsHover), document.body.style.setProperty("--colorBorderSettingsHover", t.colorBorderSettingsHover), document.body.style.setProperty("--colorBgMenuItemSelected", t.colorBgHeaderMenuActive), document.body.style.setProperty("background-color", t.colorBgContainer);
7680
7674
  }, [
7681
7675
  o,
7682
7676
  i,
@@ -7700,7 +7694,8 @@ const useGlobalTheme = () => React.useContext(GlobalThemeContext) || { theme: {}
7700
7694
  t.marginSM,
7701
7695
  t.marginXS,
7702
7696
  t.paddingContentVerticalSM,
7703
- t.sizeXXL
7697
+ t.sizeXXL,
7698
+ t.colorTextHeaderMenu
7704
7699
  ]), e;
7705
7700
  };
7706
7701
  CSSVariableProvider.displayName = "CSSVariableProvider";
@@ -9163,7 +9158,7 @@ function addAppVersion(e, t) {
9163
9158
  addAppVersion((o = e.properties) == null ? void 0 : o[n], t);
9164
9159
  }), e;
9165
9160
  }
9166
- const name = "@nocobase/client", version = "1.6.4", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
9161
+ const name = "@nocobase/client", version = "1.6.5", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
9167
9162
  "@ahooksjs/use-url-state": "3.5.1",
9168
9163
  "@ant-design/cssinjs": "^1.11.1",
9169
9164
  "@ant-design/icons": "^5.6.1",
@@ -9185,9 +9180,9 @@ const name = "@nocobase/client", version = "1.6.4", license = "AGPL-3.0", main =
9185
9180
  "@formily/reactive-react": "^2.2.27",
9186
9181
  "@formily/shared": "^2.2.27",
9187
9182
  "@formily/validator": "^2.2.27",
9188
- "@nocobase/evaluators": "1.6.4",
9189
- "@nocobase/sdk": "1.6.4",
9190
- "@nocobase/utils": "1.6.4",
9183
+ "@nocobase/evaluators": "1.6.5",
9184
+ "@nocobase/sdk": "1.6.5",
9185
+ "@nocobase/utils": "1.6.5",
9191
9186
  ahooks: "^3.7.2",
9192
9187
  antd: "5.12.8",
9193
9188
  "antd-style": "3.7.1",
@@ -10610,7 +10605,7 @@ const Table$2 = withDynamicSchemaProps(
10610
10605
  "onClickRow",
10611
10606
  "value"
10612
10607
  ]), v = useArrayField$1(S), y = useFieldSchema(), { size: F = "small" } = (y == null ? void 0 : y["x-component-props"]) || {}, I = useCollection(), k = ((Ce = y == null ? void 0 : y.parent) == null ? void 0 : Ce["x-decorator"]) === "TableSelectorProvider" ? useTableSelectorContext() : useTableBlockContext(), { expandFlag: D, allIncludesChildren: N } = k, j = useMemoizedFn(S.onRowDragEnd || (() => {
10613
- })), O = usePaginationProps$3(n, i, e), B = useTableColumns$2(S, O), [R, M] = useState(() => D ? N : []), [$, T] = useState(((be = v == null ? void 0 : v.data) == null ? void 0 : be.selectedRowKeys) || []), [z, E] = useState([]), L = (p == null ? void 0 : p.type) !== "none", q = useRef(/* @__PURE__ */ new Map()), G = useMemo(() => css`
10608
+ })), O = usePaginationProps$3(n, i, e), B = useTableColumns$2(S, O), [R, M] = useState(() => D ? N : []), [$, T] = useState(((be = v == null ? void 0 : v.data) == null ? void 0 : be.selectedRowKeys) || []), [z, L] = useState([]), E = (p == null ? void 0 : p.type) !== "none", q = useRef(/* @__PURE__ */ new Map()), G = useMemo(() => css`
10614
10609
  & > td {
10615
10610
  background-color: ${t.controlItemBgActive} !important;
10616
10611
  }
@@ -10624,9 +10619,9 @@ const Table$2 = withDynamicSchemaProps(
10624
10619
  U.field.data.selectedRowKeys = [], T([]);
10625
10620
  }, U.field.data.setSelectedRowKeys = T);
10626
10621
  }, [U == null ? void 0 : U.field]);
10627
- const H = useMemo(() => C ? G : "", [G, C]), X = useMemo(() => C ? (Q, te) => ({
10622
+ const H = useMemo(() => C ? G : "", [G, C]), J = useMemo(() => C ? (Q, te) => ({
10628
10623
  onClick: (oe) => {
10629
- isPortalInBody(oe.target) || C(Q, E, z);
10624
+ isPortalInBody(oe.target) || C(Q, L, z);
10630
10625
  },
10631
10626
  rowIndex: te,
10632
10627
  record: Q
@@ -10656,7 +10651,7 @@ const Table$2 = withDynamicSchemaProps(
10656
10651
  }).join("-") : typeof m == "string" ? Q[m] : (te = (m != null ? m : W)(Q)) == null ? void 0 : te.toString();
10657
10652
  },
10658
10653
  [JSON.stringify(m), W]
10659
- ), J = useMemo(() => (Array.isArray(b) ? b : []).filter(Boolean), [b, b == null ? void 0 : b.length]), ee = useMemo(() => (Q) => {
10654
+ ), X = useMemo(() => (Array.isArray(b) ? b : []).filter(Boolean), [b, b == null ? void 0 : b.length]), ee = useMemo(() => (Q) => {
10660
10655
  const te = useCallback((oe) => {
10661
10656
  var Se, ye, ve, Pe, Fe, Ie;
10662
10657
  if (!oe.active || !oe.over) {
@@ -10706,14 +10701,14 @@ const Table$2 = withDynamicSchemaProps(
10706
10701
  role: "button",
10707
10702
  "aria-label": `table-index-${oe}`,
10708
10703
  className: cls(Q ? "checked" : null, rowSelectCheckboxWrapperClass$1, {
10709
- [rowSelectCheckboxWrapperClassHover$1]: L
10704
+ [rowSelectCheckboxWrapperClassHover$1]: E
10710
10705
  }),
10711
10706
  children: [
10712
10707
  /* @__PURE__ */ jsxs("div", { className: cls(Q ? "checked" : null, rowSelectCheckboxContentClass$1), children: [
10713
10708
  l && /* @__PURE__ */ jsx(SortHandle$2, { id: K(te) }),
10714
10709
  c && /* @__PURE__ */ jsx(TableIndex$3, { index: oe })
10715
10710
  ] }),
10716
- L && /* @__PURE__ */ jsx(
10711
+ E && /* @__PURE__ */ jsx(
10717
10712
  "div",
10718
10713
  {
10719
10714
  className: cls(
@@ -10738,7 +10733,7 @@ const Table$2 = withDynamicSchemaProps(
10738
10733
  l,
10739
10734
  v,
10740
10735
  K,
10741
- L,
10736
+ E,
10742
10737
  ne,
10743
10738
  O,
10744
10739
  U
@@ -10759,7 +10754,7 @@ const Table$2 = withDynamicSchemaProps(
10759
10754
  ), { height: le, tableSizeRefCallback: ue } = useTableSize(), fe = useMemo(() => ({
10760
10755
  x: "max-content",
10761
10756
  y: le
10762
- }), [le, J]), me = useCallback(
10757
+ }), [le, X]), me = useCallback(
10763
10758
  (Q) => z.includes(Q[m]) ? H : "",
10764
10759
  [z, H, JSON.stringify(m)]
10765
10760
  ), he = useCallback(
@@ -10782,12 +10777,12 @@ const Table$2 = withDynamicSchemaProps(
10782
10777
  SortableWrapper: se,
10783
10778
  tableSizeRefCallback: ue,
10784
10779
  defaultRowKey: W,
10785
- dataSource: J
10780
+ dataSource: X
10786
10781
  }, S), re), {
10787
10782
  paginationProps: O,
10788
10783
  components: Z,
10789
10784
  onTableChange: d,
10790
- onRow: X,
10785
+ onRow: J,
10791
10786
  rowClassName: me,
10792
10787
  scroll: fe,
10793
10788
  columns: B,
@@ -11360,14 +11355,14 @@ const popupsContextStorage = {}, getStoredPopupContext = (e) => popupsContextSto
11360
11355
  recordData: $,
11361
11356
  sourceId: T,
11362
11357
  collection: z,
11363
- puid: E
11358
+ puid: L
11364
11359
  }) => {
11365
- const L = c.getFilterByTK(u || l, $);
11360
+ const E = c.getFilterByTK(u || l, $);
11366
11361
  return getPopupPathFromParams({
11367
11362
  popupuid: M,
11368
- puid: E,
11363
+ puid: L,
11369
11364
  collection: z,
11370
- filterbytk: L,
11365
+ filterbytk: E,
11371
11366
  sourceid: T,
11372
11367
  tab: R
11373
11368
  });
@@ -11390,18 +11385,18 @@ const popupsContextStorage = {}, getStoredPopupContext = (e) => popupsContextSto
11390
11385
  } = {}) => {
11391
11386
  if (!f())
11392
11387
  return I == null ? void 0 : I(!0);
11393
- const E = z || o, L = E == null ? void 0 : E["x-uid"], q = v(M);
11388
+ const L = z || o, E = L == null ? void 0 : L["x-uid"], q = v(M);
11394
11389
  R = R || (i == null ? void 0 : i.data);
11395
11390
  const G = w({
11396
- popupUid: L,
11391
+ popupUid: E,
11397
11392
  recordData: R,
11398
11393
  sourceId: q,
11399
11394
  collection: $,
11400
11395
  puid: T
11401
11396
  });
11402
11397
  let U = n.pathname;
11403
- if (_.last(U) === "/" && (U = U.slice(0, -1)), storePopupContext(L, {
11404
- schema: E,
11398
+ if (_.last(U) === "/" && (U = U.slice(0, -1)), storePopupContext(E, {
11399
+ schema: L,
11405
11400
  record: new CollectionRecord({ isNew: !1, data: R }),
11406
11401
  parentRecord: M ? new CollectionRecord({ isNew: !1, data: M }) : a,
11407
11402
  service: g(),
@@ -11410,7 +11405,7 @@ const popupsContextStorage = {}, getStoredPopupContext = (e) => popupsContextSto
11410
11405
  association: u,
11411
11406
  sourceId: q,
11412
11407
  tableBlockContext: P(x({}, F), { collection: l == null ? void 0 : l.name, blockData: y })
11413
- }), b(k(), z), E.properties) {
11408
+ }), b(k(), z), L.properties) {
11414
11409
  const H = h + 1;
11415
11410
  if (getPopupLayerState(H))
11416
11411
  return;
@@ -11418,7 +11413,7 @@ const popupsContextStorage = {}, getStoredPopupContext = (e) => popupsContextSto
11418
11413
  } else
11419
11414
  console.error(
11420
11415
  `[NocoBase] The popup schema is invalid, please check the schema:
11421
- ${JSON.stringify(E, null, 2)}`
11416
+ ${JSON.stringify(L, null, 2)}`
11422
11417
  );
11423
11418
  },
11424
11419
  [
@@ -12948,34 +12943,34 @@ https://requirejs.org/docs/errors.html#` + e);
12948
12943
  config: {}
12949
12944
  }, l = {}, c = {}, u = {}, d = [], p = {}, m = {}, h = {}, g = 1, f = 1;
12950
12945
  function C(T) {
12951
- var z, E;
12946
+ var z, L;
12952
12947
  for (z = 0; z < T.length; z++)
12953
- if (E = T[z], E === ".")
12948
+ if (L = T[z], L === ".")
12954
12949
  T.splice(z, 1), z -= 1;
12955
- else if (E === "..") {
12950
+ else if (L === "..") {
12956
12951
  if (z === 0 || z === 1 && T[2] === ".." || T[z - 1] === "..")
12957
12952
  continue;
12958
12953
  z > 0 && (T.splice(z - 1, 2), z -= 2);
12959
12954
  }
12960
12955
  }
12961
- function b(T, z, E) {
12962
- var L, q, G, U, H, X, W, K, J, ee, Z, ne, re = z && z.split("/"), se = a.map, le = se && se["*"];
12963
- if (T && (T = T.split("/"), W = T.length - 1, a.nodeIdCompat && jsSuffixRegExp.test(T[W]) && (T[W] = T[W].replace(jsSuffixRegExp, "")), T[0].charAt(0) === "." && re && (ne = re.slice(0, re.length - 1), T = ne.concat(T)), C(T), T = T.join("/")), E && se && (re || le)) {
12956
+ function b(T, z, L) {
12957
+ var E, q, G, U, H, J, W, K, X, ee, Z, ne, re = z && z.split("/"), se = a.map, le = se && se["*"];
12958
+ if (T && (T = T.split("/"), W = T.length - 1, a.nodeIdCompat && jsSuffixRegExp.test(T[W]) && (T[W] = T[W].replace(jsSuffixRegExp, "")), T[0].charAt(0) === "." && re && (ne = re.slice(0, re.length - 1), T = ne.concat(T)), C(T), T = T.join("/")), L && se && (re || le)) {
12964
12959
  G = T.split("/");
12965
12960
  e:
12966
12961
  for (U = G.length; U > 0; U -= 1) {
12967
- if (X = G.slice(0, U).join("/"), re) {
12962
+ if (J = G.slice(0, U).join("/"), re) {
12968
12963
  for (H = re.length; H > 0; H -= 1)
12969
- if (q = getOwn(se, re.slice(0, H).join("/")), q && (q = getOwn(q, X), q)) {
12970
- K = q, J = U;
12964
+ if (q = getOwn(se, re.slice(0, H).join("/")), q && (q = getOwn(q, J), q)) {
12965
+ K = q, X = U;
12971
12966
  break e;
12972
12967
  }
12973
12968
  }
12974
- !ee && le && getOwn(le, X) && (ee = getOwn(le, X), Z = U);
12969
+ !ee && le && getOwn(le, J) && (ee = getOwn(le, J), Z = U);
12975
12970
  }
12976
- !K && ee && (K = ee, J = Z), K && (G.splice(0, J, K), T = G.join("/"));
12971
+ !K && ee && (K = ee, X = Z), K && (G.splice(0, X, K), T = G.join("/"));
12977
12972
  }
12978
- return L = getOwn(a.pkgs, T), L || T;
12973
+ return E = getOwn(a.pkgs, T), E || T;
12979
12974
  }
12980
12975
  function S(T) {
12981
12976
  isBrowser && each(scripts(), function(z) {
@@ -12991,38 +12986,38 @@ https://requirejs.org/docs/errors.html#` + e);
12991
12986
  })([T]), !0;
12992
12987
  }
12993
12988
  function y(T) {
12994
- var z, E = T ? T.indexOf("!") : -1;
12995
- return E > -1 && (z = T.substring(0, E), T = T.substring(E + 1, T.length)), [z, T];
12996
- }
12997
- function F(T, z, E, L) {
12998
- var q, G, U, H, X = null, W = z ? z.name : null, K = T, J = !0, ee = "";
12999
- return T || (J = !1, T = "_@r" + (g += 1)), H = y(T), X = H[0], T = H[1], X && (X = b(X, W, L), G = getOwn(p, X)), T && (X ? E ? ee = T : G && G.normalize ? ee = G.normalize(T, function(Z) {
13000
- return b(Z, W, L);
13001
- }) : ee = T.indexOf("!") === -1 ? b(T, W, L) : T : (ee = b(T, W, L), H = y(ee), X = H[0], ee = H[1], E = !0, q = o.nameToUrl(ee))), U = X && !G && !E ? "_unnormalized" + (f += 1) : "", {
13002
- prefix: X,
12989
+ var z, L = T ? T.indexOf("!") : -1;
12990
+ return L > -1 && (z = T.substring(0, L), T = T.substring(L + 1, T.length)), [z, T];
12991
+ }
12992
+ function F(T, z, L, E) {
12993
+ var q, G, U, H, J = null, W = z ? z.name : null, K = T, X = !0, ee = "";
12994
+ return T || (X = !1, T = "_@r" + (g += 1)), H = y(T), J = H[0], T = H[1], J && (J = b(J, W, E), G = getOwn(p, J)), T && (J ? L ? ee = T : G && G.normalize ? ee = G.normalize(T, function(Z) {
12995
+ return b(Z, W, E);
12996
+ }) : ee = T.indexOf("!") === -1 ? b(T, W, E) : T : (ee = b(T, W, E), H = y(ee), J = H[0], ee = H[1], L = !0, q = o.nameToUrl(ee))), U = J && !G && !L ? "_unnormalized" + (f += 1) : "", {
12997
+ prefix: J,
13003
12998
  name: ee,
13004
12999
  parentMap: z,
13005
13000
  unnormalized: !!U,
13006
13001
  url: q,
13007
13002
  originalName: K,
13008
- isDefine: J,
13009
- id: (X ? X + "!" + ee : ee) + U
13003
+ isDefine: X,
13004
+ id: (J ? J + "!" + ee : ee) + U
13010
13005
  };
13011
13006
  }
13012
13007
  function I(T) {
13013
- var z = T.id, E = getOwn(l, z);
13014
- return E || (E = l[z] = new o.Module(T)), E;
13008
+ var z = T.id, L = getOwn(l, z);
13009
+ return L || (L = l[z] = new o.Module(T)), L;
13015
13010
  }
13016
- function w(T, z, E) {
13017
- var L = T.id, q = getOwn(l, L);
13018
- hasProp(p, L) && (!q || q.defineEmitComplete) ? z === "defined" && E(p[L]) : (q = I(T), q.error && z === "error" ? E(q.error) : q.on(z, E));
13011
+ function w(T, z, L) {
13012
+ var E = T.id, q = getOwn(l, E);
13013
+ hasProp(p, E) && (!q || q.defineEmitComplete) ? z === "defined" && L(p[E]) : (q = I(T), q.error && z === "error" ? L(q.error) : q.on(z, L));
13019
13014
  }
13020
13015
  function k(T, z) {
13021
- var E = T.requireModules, L = !1;
13022
- z ? z(T) : (each(E, function(q) {
13016
+ var L = T.requireModules, E = !1;
13017
+ z ? z(T) : (each(L, function(q) {
13023
13018
  var G = getOwn(l, q);
13024
- G && (G.error = T, G.events.error && (L = !0, G.emit("error", T)));
13025
- }), L || req.onError(T));
13019
+ G && (G.error = T, G.events.error && (E = !0, G.emit("error", T)));
13020
+ }), E || req.onError(T));
13026
13021
  }
13027
13022
  function D() {
13028
13023
  globalDefQueue.length && (each(globalDefQueue, function(T) {
@@ -13052,29 +13047,29 @@ https://requirejs.org/docs/errors.html#` + e);
13052
13047
  function N(T) {
13053
13048
  delete l[T], delete c[T];
13054
13049
  }
13055
- function j(T, z, E) {
13056
- var L = T.map.id;
13057
- T.error ? T.emit("error", T.error) : (z[L] = !0, each(T.depMaps, function(q, G) {
13050
+ function j(T, z, L) {
13051
+ var E = T.map.id;
13052
+ T.error ? T.emit("error", T.error) : (z[E] = !0, each(T.depMaps, function(q, G) {
13058
13053
  var U = q.id, H = getOwn(l, U);
13059
- H && !T.depMatched[G] && !E[U] && (getOwn(z, U) ? (T.defineDep(G, p[U]), T.check()) : j(H, z, E));
13060
- }), E[L] = !0);
13054
+ H && !T.depMatched[G] && !L[U] && (getOwn(z, U) ? (T.defineDep(G, p[U]), T.check()) : j(H, z, L));
13055
+ }), L[E] = !0);
13061
13056
  }
13062
13057
  function O() {
13063
- var T, z, E = a.waitSeconds * 1e3, L = E && o.startTime + E < (/* @__PURE__ */ new Date()).getTime(), q = [], G = [], U = !1, H = !0;
13058
+ var T, z, L = a.waitSeconds * 1e3, E = L && o.startTime + L < (/* @__PURE__ */ new Date()).getTime(), q = [], G = [], U = !1, H = !0;
13064
13059
  if (!t) {
13065
- if (t = !0, eachProp(c, function(X) {
13066
- var W = X.map, K = W.id;
13067
- if (X.enabled && (W.isDefine || G.push(X), !X.error)) {
13068
- if (!X.inited && L)
13060
+ if (t = !0, eachProp(c, function(J) {
13061
+ var W = J.map, K = W.id;
13062
+ if (J.enabled && (W.isDefine || G.push(J), !J.error)) {
13063
+ if (!J.inited && E)
13069
13064
  v(K) ? (z = !0, U = !0) : (q.push(K), S(K));
13070
- else if (!X.inited && X.fetched && W.isDefine && (U = !0, !W.prefix))
13065
+ else if (!J.inited && J.fetched && W.isDefine && (U = !0, !W.prefix))
13071
13066
  return H = !1;
13072
13067
  }
13073
- }), L && q.length)
13068
+ }), E && q.length)
13074
13069
  return T = makeError("timeout", "Load timeout for modules: " + q, null, q), T.contextName = o.contextName, k(T);
13075
- H && each(G, function(X) {
13076
- j(X, {}, {});
13077
- }), (!L || z) && U && (isBrowser || isWebWorker) && !i && (i = setTimeout(function() {
13070
+ H && each(G, function(J) {
13071
+ j(J, {}, {});
13072
+ }), (!E || z) && U && (isBrowser || isWebWorker) && !i && (i = setTimeout(function() {
13078
13073
  i = 0, O();
13079
13074
  }, 50)), t = !1;
13080
13075
  }
@@ -13082,10 +13077,10 @@ https://requirejs.org/docs/errors.html#` + e);
13082
13077
  n = function(T) {
13083
13078
  this.events = getOwn(u, T.id) || {}, this.map = T, this.shim = getOwn(a.shim, T.id), this.depExports = [], this.depMaps = [], this.depMatched = [], this.pluginMaps = {}, this.depCount = 0;
13084
13079
  }, n.prototype = {
13085
- init: function(T, z, E, L) {
13086
- L = L || {}, !this.inited && (this.factory = z, E ? this.on("error", E) : this.events.error && (E = bind(this, function(q) {
13080
+ init: function(T, z, L, E) {
13081
+ E = E || {}, !this.inited && (this.factory = z, L ? this.on("error", L) : this.events.error && (L = bind(this, function(q) {
13087
13082
  this.emit("error", q);
13088
- })), this.depMaps = T && T.slice(0), this.errback = E, this.inited = !0, this.ignore = L.ignore, L.enabled || this.enabled ? this.enable() : this.check());
13083
+ })), this.depMaps = T && T.slice(0), this.errback = L, this.inited = !0, this.ignore = E.ignore, E.enabled || this.enabled ? this.enable() : this.check());
13089
13084
  },
13090
13085
  defineDep: function(T, z) {
13091
13086
  this.depMatched[T] || (this.depMatched[T] = !0, this.depCount -= 1, this.depExports[T] = z);
@@ -13114,9 +13109,9 @@ https://requirejs.org/docs/errors.html#` + e);
13114
13109
  */
13115
13110
  check: function() {
13116
13111
  if (!(!this.enabled || this.enabling)) {
13117
- var T, z, E = this.map.id, L = this.depExports, q = this.exports, G = this.factory;
13112
+ var T, z, L = this.map.id, E = this.depExports, q = this.exports, G = this.factory;
13118
13113
  if (!this.inited)
13119
- hasProp(o.defQueueMap, E) || this.fetch();
13114
+ hasProp(o.defQueueMap, L) || this.fetch();
13120
13115
  else if (this.error)
13121
13116
  this.emit("error", this.error);
13122
13117
  else if (!this.defining) {
@@ -13124,54 +13119,54 @@ https://requirejs.org/docs/errors.html#` + e);
13124
13119
  if (isFunction(G)) {
13125
13120
  if (this.events.error && this.map.isDefine || req.onError !== defaultOnError)
13126
13121
  try {
13127
- q = o.execCb(E, G, L, q);
13122
+ q = o.execCb(L, G, E, q);
13128
13123
  } catch (H) {
13129
13124
  T = H;
13130
13125
  }
13131
13126
  else
13132
- q = o.execCb(E, G, L, q);
13127
+ q = o.execCb(L, G, E, q);
13133
13128
  if (this.map.isDefine && q === void 0 && (z = this.module, z ? q = z.exports : this.usingExports && (q = this.exports)), T)
13134
13129
  return T.requireMap = this.map, T.requireModules = this.map.isDefine ? [this.map.id] : null, T.requireType = this.map.isDefine ? "define" : "require", k(this.error = T);
13135
13130
  } else
13136
13131
  q = G;
13137
- if (this.exports = q, this.map.isDefine && !this.ignore && (p[E] = q, req.onResourceLoad)) {
13132
+ if (this.exports = q, this.map.isDefine && !this.ignore && (p[L] = q, req.onResourceLoad)) {
13138
13133
  var U = [];
13139
13134
  each(this.depMaps, function(H) {
13140
13135
  U.push(H.normalizedMap || H);
13141
13136
  }), req.onResourceLoad(o, this.map, U);
13142
13137
  }
13143
- N(E), this.defined = !0;
13138
+ N(L), this.defined = !0;
13144
13139
  }
13145
13140
  this.defining = !1, this.defined && !this.defineEmitted && (this.defineEmitted = !0, this.emit("defined", this.exports), this.defineEmitComplete = !0);
13146
13141
  }
13147
13142
  }
13148
13143
  },
13149
13144
  callPlugin: function() {
13150
- var T = this.map, z = T.id, E = F(T.prefix);
13151
- this.depMaps.push(E), w(E, "defined", bind(this, function(L) {
13152
- var q, G, U, H = getOwn(h, this.map.id), X = this.map.name, W = this.map.parentMap ? this.map.parentMap.name : null, K = o.makeRequire(T.parentMap, {
13145
+ var T = this.map, z = T.id, L = F(T.prefix);
13146
+ this.depMaps.push(L), w(L, "defined", bind(this, function(E) {
13147
+ var q, G, U, H = getOwn(h, this.map.id), J = this.map.name, W = this.map.parentMap ? this.map.parentMap.name : null, K = o.makeRequire(T.parentMap, {
13153
13148
  enableBuildCallback: !0
13154
13149
  });
13155
13150
  if (this.map.unnormalized) {
13156
- L.normalize && (X = L.normalize(X, function(J) {
13157
- return b(J, W, !0);
13151
+ E.normalize && (J = E.normalize(J, function(X) {
13152
+ return b(X, W, !0);
13158
13153
  }) || ""), G = F(
13159
- T.prefix + "!" + X,
13154
+ T.prefix + "!" + J,
13160
13155
  this.map.parentMap,
13161
13156
  !0
13162
13157
  ), w(
13163
13158
  G,
13164
13159
  "defined",
13165
- bind(this, function(J) {
13160
+ bind(this, function(X) {
13166
13161
  this.map.normalizedMap = G, this.init([], function() {
13167
- return J;
13162
+ return X;
13168
13163
  }, null, {
13169
13164
  enabled: !0,
13170
13165
  ignore: !0
13171
13166
  });
13172
13167
  })
13173
- ), U = getOwn(l, G.id), U && (this.depMaps.push(G), this.events.error && U.on("error", bind(this, function(J) {
13174
- this.emit("error", J);
13168
+ ), U = getOwn(l, G.id), U && (this.depMaps.push(G), this.events.error && U.on("error", bind(this, function(X) {
13169
+ this.emit("error", X);
13175
13170
  })), U.enable());
13176
13171
  return;
13177
13172
  }
@@ -13179,21 +13174,21 @@ https://requirejs.org/docs/errors.html#` + e);
13179
13174
  this.map.url = o.nameToUrl(H), this.load();
13180
13175
  return;
13181
13176
  }
13182
- q = bind(this, function(J) {
13177
+ q = bind(this, function(X) {
13183
13178
  this.init([], function() {
13184
- return J;
13179
+ return X;
13185
13180
  }, null, {
13186
13181
  enabled: !0
13187
13182
  });
13188
- }), q.error = bind(this, function(J) {
13189
- this.inited = !0, this.error = J, J.requireModules = [z], eachProp(l, function(ee) {
13183
+ }), q.error = bind(this, function(X) {
13184
+ this.inited = !0, this.error = X, X.requireModules = [z], eachProp(l, function(ee) {
13190
13185
  ee.map.id.indexOf(z + "_unnormalized") === 0 && N(ee.map.id);
13191
- }), k(J);
13192
- }), q.fromText = bind(this, function(J, ee) {
13186
+ }), k(X);
13187
+ }), q.fromText = bind(this, function(X, ee) {
13193
13188
  var Z = T.name, ne = F(Z), re = useInteractive;
13194
- ee && (J = ee), re && (useInteractive = !1), I(ne), hasProp(a.config, z) && (a.config[Z] = a.config[z]);
13189
+ ee && (X = ee), re && (useInteractive = !1), I(ne), hasProp(a.config, z) && (a.config[Z] = a.config[z]);
13195
13190
  try {
13196
- req.exec(J);
13191
+ req.exec(X);
13197
13192
  } catch (se) {
13198
13193
  return k(makeError(
13199
13194
  "fromtexteval",
@@ -13203,12 +13198,12 @@ https://requirejs.org/docs/errors.html#` + e);
13203
13198
  ));
13204
13199
  }
13205
13200
  re && (useInteractive = !0), this.depMaps.push(ne), o.completeLoad(Z), K([Z], q);
13206
- }), L.load(T.name, K, q, a);
13207
- })), o.enable(E, this), this.pluginMaps[E.id] = E;
13201
+ }), E.load(T.name, K, q, a);
13202
+ })), o.enable(L, this), this.pluginMaps[L.id] = L;
13208
13203
  },
13209
13204
  enable: function() {
13210
13205
  c[this.map.id] = this, this.enabled = !0, this.enabling = !0, each(this.depMaps, bind(this, function(T, z) {
13211
- var E, L, q;
13206
+ var L, E, q;
13212
13207
  if (typeof T == "string") {
13213
13208
  if (T = F(
13214
13209
  T,
@@ -13225,27 +13220,27 @@ https://requirejs.org/docs/errors.html#` + e);
13225
13220
  this.emit("error", G);
13226
13221
  }));
13227
13222
  }
13228
- E = T.id, L = l[E], !hasProp(r, E) && L && !L.enabled && o.enable(T, this);
13223
+ L = T.id, E = l[L], !hasProp(r, L) && E && !E.enabled && o.enable(T, this);
13229
13224
  })), eachProp(this.pluginMaps, bind(this, function(T) {
13230
13225
  var z = getOwn(l, T.id);
13231
13226
  z && !z.enabled && o.enable(T, this);
13232
13227
  })), this.enabling = !1, this.check();
13233
13228
  },
13234
13229
  on: function(T, z) {
13235
- var E = this.events[T];
13236
- E || (E = this.events[T] = []), E.push(z);
13230
+ var L = this.events[T];
13231
+ L || (L = this.events[T] = []), L.push(z);
13237
13232
  },
13238
13233
  emit: function(T, z) {
13239
- each(this.events[T], function(E) {
13240
- E(z);
13234
+ each(this.events[T], function(L) {
13235
+ L(z);
13241
13236
  }), T === "error" && delete this.events[T];
13242
13237
  }
13243
13238
  };
13244
13239
  function B(T) {
13245
13240
  hasProp(p, T[0]) || I(F(T[0], null, !0)).init(T[1], T[2]);
13246
13241
  }
13247
- function R(T, z, E, L) {
13248
- T.detachEvent && !isOpera ? L && T.detachEvent(L, z) : T.removeEventListener(E, z, !1);
13242
+ function R(T, z, L, E) {
13243
+ T.detachEvent && !isOpera ? E && T.detachEvent(E, z) : T.removeEventListener(L, z, !1);
13249
13244
  }
13250
13245
  function M(T) {
13251
13246
  var z = T.currentTarget || T.srcElement;
@@ -13286,14 +13281,14 @@ https://requirejs.org/docs/errors.html#` + e);
13286
13281
  return (G.indexOf("?") === -1 ? "?" : "&") + z;
13287
13282
  };
13288
13283
  }
13289
- var E = a.shim, L = {
13284
+ var L = a.shim, E = {
13290
13285
  paths: !0,
13291
13286
  bundles: !0,
13292
13287
  config: !0,
13293
13288
  map: !0
13294
13289
  };
13295
13290
  eachProp(T, function(q, G) {
13296
- L[G] ? (a[G] || (a[G] = {}), mixin(a[G], q, !0, !0)) : a[G] = q;
13291
+ E[G] ? (a[G] || (a[G] = {}), mixin(a[G], q, !0, !0)) : a[G] = q;
13297
13292
  }), T.bundles && eachProp(T.bundles, function(q, G) {
13298
13293
  each(q, function(U) {
13299
13294
  U !== G && (h[U] = G);
@@ -13301,8 +13296,8 @@ https://requirejs.org/docs/errors.html#` + e);
13301
13296
  }), T.shim && (eachProp(T.shim, function(q, G) {
13302
13297
  isArray(q) && (q = {
13303
13298
  deps: q
13304
- }), (q.exports || q.init) && !q.exportsFn && (q.exportsFn = o.makeShimExports(q)), E[G] = q;
13305
- }), a.shim = E), T.packages && each(T.packages, function(q) {
13299
+ }), (q.exports || q.init) && !q.exportsFn && (q.exportsFn = o.makeShimExports(q)), L[G] = q;
13300
+ }), a.shim = L), T.packages && each(T.packages, function(q) {
13306
13301
  var G, U;
13307
13302
  q = typeof q == "string" ? { name: q } : q, U = q.name, G = q.location, G && (a.paths[U] = q.location), a.pkgs[U] = q.name + "/" + (q.main || "main").replace(currDirRegExp, "").replace(jsSuffixRegExp, "");
13308
13303
  }), eachProp(l, function(q, G) {
@@ -13311,49 +13306,49 @@ https://requirejs.org/docs/errors.html#` + e);
13311
13306
  },
13312
13307
  makeShimExports: function(T) {
13313
13308
  function z() {
13314
- var E;
13315
- return T.init && (E = T.init.apply(global, arguments)), E || T.exports && getGlobal(T.exports);
13309
+ var L;
13310
+ return T.init && (L = T.init.apply(global, arguments)), L || T.exports && getGlobal(T.exports);
13316
13311
  }
13317
13312
  return z;
13318
13313
  },
13319
13314
  makeRequire: function(T, z) {
13320
13315
  z = z || {};
13321
- function E(L, q, G) {
13322
- var U, H, X;
13323
- return z.enableBuildCallback && q && isFunction(q) && (q.__requireJsBuild = !0), typeof L == "string" ? isFunction(q) ? k(makeError("requireargs", "Invalid require call"), G) : T && hasProp(r, L) ? r[L](l[T.id]) : req.get ? req.get(o, L, T, E) : (H = F(L, T, !1, !0), U = H.id, hasProp(p, U) ? p[U] : k(makeError("notloaded", 'Module name "' + U + '" has not been loaded yet for context: ' + e + (T ? "" : ". Use require([])")))) : ($(), o.nextTick(function() {
13324
- $(), X = I(F(null, T)), X.skipMap = z.skipMap, X.init(L, q, G, {
13316
+ function L(E, q, G) {
13317
+ var U, H, J;
13318
+ return z.enableBuildCallback && q && isFunction(q) && (q.__requireJsBuild = !0), typeof E == "string" ? isFunction(q) ? k(makeError("requireargs", "Invalid require call"), G) : T && hasProp(r, E) ? r[E](l[T.id]) : req.get ? req.get(o, E, T, L) : (H = F(E, T, !1, !0), U = H.id, hasProp(p, U) ? p[U] : k(makeError("notloaded", 'Module name "' + U + '" has not been loaded yet for context: ' + e + (T ? "" : ". Use require([])")))) : ($(), o.nextTick(function() {
13319
+ $(), J = I(F(null, T)), J.skipMap = z.skipMap, J.init(E, q, G, {
13325
13320
  enabled: !0
13326
13321
  }), O();
13327
- }), E);
13322
+ }), L);
13328
13323
  }
13329
- return mixin(E, {
13324
+ return mixin(L, {
13330
13325
  isBrowser,
13331
13326
  /**
13332
13327
  * Converts a module name + .extension into an URL path.
13333
13328
  * *Requires* the use of a module name. It does not support using
13334
13329
  * plain URLs like nameToUrl.
13335
13330
  */
13336
- toUrl: function(L) {
13337
- var q, G = L.lastIndexOf("."), U = L.split("/")[0], H = U === "." || U === "..";
13338
- return G !== -1 && (!H || G > 1) && (q = L.substring(G, L.length), L = L.substring(0, G)), o.nameToUrl(b(
13339
- L,
13331
+ toUrl: function(E) {
13332
+ var q, G = E.lastIndexOf("."), U = E.split("/")[0], H = U === "." || U === "..";
13333
+ return G !== -1 && (!H || G > 1) && (q = E.substring(G, E.length), E = E.substring(0, G)), o.nameToUrl(b(
13334
+ E,
13340
13335
  T && T.id,
13341
13336
  !0
13342
13337
  ), q, !0);
13343
13338
  },
13344
- defined: function(L) {
13345
- return hasProp(p, F(L, T, !1, !0).id);
13339
+ defined: function(E) {
13340
+ return hasProp(p, F(E, T, !1, !0).id);
13346
13341
  },
13347
- specified: function(L) {
13348
- return L = F(L, T, !1, !0).id, hasProp(p, L) || hasProp(l, L);
13342
+ specified: function(E) {
13343
+ return E = F(E, T, !1, !0).id, hasProp(p, E) || hasProp(l, E);
13349
13344
  }
13350
- }), T || (E.undef = function(L) {
13345
+ }), T || (L.undef = function(E) {
13351
13346
  D();
13352
- var q = F(L, T, !0), G = getOwn(l, L);
13353
- G.undefed = !0, S(L), delete p[L], delete m[q.url], delete u[L], eachReverse(d, function(U, H) {
13354
- U[0] === L && d.splice(H, 1);
13355
- }), delete o.defQueueMap[L], G && (G.events.defined && (u[L] = G.events), N(L));
13356
- }), E;
13347
+ var q = F(E, T, !0), G = getOwn(l, E);
13348
+ G.undefed = !0, S(E), delete p[E], delete m[q.url], delete u[E], eachReverse(d, function(U, H) {
13349
+ U[0] === E && d.splice(H, 1);
13350
+ }), delete o.defQueueMap[E], G && (G.events.defined && (u[E] = G.events), N(E));
13351
+ }), L;
13357
13352
  },
13358
13353
  /**
13359
13354
  * Called to enable a module if it is still in the registry
@@ -13372,17 +13367,17 @@ https://requirejs.org/docs/errors.html#` + e);
13372
13367
  * @param {String} moduleName the name of the module to potentially complete.
13373
13368
  */
13374
13369
  completeLoad: function(T) {
13375
- var z, E, L, q = getOwn(a.shim, T) || {}, G = q.exports;
13370
+ var z, L, E, q = getOwn(a.shim, T) || {}, G = q.exports;
13376
13371
  for (D(); d.length; ) {
13377
- if (E = d.shift(), E[0] === null) {
13378
- if (E[0] = T, z)
13372
+ if (L = d.shift(), L[0] === null) {
13373
+ if (L[0] = T, z)
13379
13374
  break;
13380
13375
  z = !0;
13381
13376
  } else
13382
- E[0] === T && (z = !0);
13383
- B(E);
13377
+ L[0] === T && (z = !0);
13378
+ B(L);
13384
13379
  }
13385
- if (o.defQueueMap = {}, L = getOwn(l, T), !z && !hasProp(p, T) && L && !L.inited) {
13380
+ if (o.defQueueMap = {}, E = getOwn(l, T), !z && !hasProp(p, T) && E && !E.inited) {
13386
13381
  if (a.enforceDefine && (!G || !getGlobal(G)))
13387
13382
  return v(T) ? void 0 : k(makeError(
13388
13383
  "nodefine",
@@ -13401,19 +13396,19 @@ https://requirejs.org/docs/errors.html#` + e);
13401
13396
  * it is assumed to have already been normalized. This is an
13402
13397
  * internal API, not a public one. Use toUrl for the public API.
13403
13398
  */
13404
- nameToUrl: function(T, z, E) {
13405
- var L, q, G, U, H, X, W, K = getOwn(a.pkgs, T);
13399
+ nameToUrl: function(T, z, L) {
13400
+ var E, q, G, U, H, J, W, K = getOwn(a.pkgs, T);
13406
13401
  if (K && (T = K), W = getOwn(h, T), W)
13407
- return o.nameToUrl(W, z, E);
13402
+ return o.nameToUrl(W, z, L);
13408
13403
  if (req.jsExtRegExp.test(T))
13409
13404
  H = T + (z || "");
13410
13405
  else {
13411
- for (L = a.paths, q = T.split("/"), G = q.length; G > 0; G -= 1)
13412
- if (U = q.slice(0, G).join("/"), X = getOwn(L, U), X) {
13413
- isArray(X) && (X = X[0]), q.splice(0, G, X);
13406
+ for (E = a.paths, q = T.split("/"), G = q.length; G > 0; G -= 1)
13407
+ if (U = q.slice(0, G).join("/"), J = getOwn(E, U), J) {
13408
+ isArray(J) && (J = J[0]), q.splice(0, G, J);
13414
13409
  break;
13415
13410
  }
13416
- H = q.join("/"), H += z || (/^data\:|^blob\:|\?/.test(H) || E ? "" : ".js"), H = (H.charAt(0) === "/" || H.match(/^[\w\+\.\-]+:/) ? "" : a.baseUrl) + H;
13411
+ H = q.join("/"), H += z || (/^data\:|^blob\:|\?/.test(H) || L ? "" : ".js"), H = (H.charAt(0) === "/" || H.match(/^[\w\+\.\-]+:/) ? "" : a.baseUrl) + H;
13417
13412
  }
13418
13413
  return a.urlArgs && !/^blob\:/.test(H) ? H + a.urlArgs(T, H) : H;
13419
13414
  },
@@ -13429,8 +13424,8 @@ https://requirejs.org/docs/errors.html#` + e);
13429
13424
  *
13430
13425
  * @private
13431
13426
  */
13432
- execCb: function(T, z, E, L) {
13433
- return z.apply(L, E);
13427
+ execCb: function(T, z, L, E) {
13428
+ return z.apply(E, L);
13434
13429
  },
13435
13430
  /**
13436
13431
  * callback for script loads, used to check status of loading.
@@ -13451,13 +13446,13 @@ https://requirejs.org/docs/errors.html#` + e);
13451
13446
  onScriptError: function(T) {
13452
13447
  var z = M(T);
13453
13448
  if (!v(z.id)) {
13454
- var E = [];
13455
- return eachProp(l, function(L, q) {
13456
- q.indexOf("_@r") !== 0 && each(L.depMaps, function(G) {
13449
+ var L = [];
13450
+ return eachProp(l, function(E, q) {
13451
+ q.indexOf("_@r") !== 0 && each(E.depMaps, function(G) {
13457
13452
  if (G.id === z.id)
13458
- return E.push(q), !0;
13453
+ return L.push(q), !0;
13459
13454
  });
13460
- }), k(makeError("scripterror", 'Script error for "' + z.id + (E.length ? '", needed by: ' + E.join(", ") : '"'), T, [z.id]));
13455
+ }), k(makeError("scripterror", 'Script error for "' + z.id + (L.length ? '", needed by: ' + L.join(", ") : '"'), T, [z.id]));
13461
13456
  }
13462
13457
  }
13463
13458
  }, o.require = o.makeRequire(), o;
@@ -15458,9 +15453,9 @@ const useTableBlockProps = () => {
15458
15453
  ),
15459
15454
  onChange: useCallback(
15460
15455
  ({ current: S, pageSize: v }, y, F) => {
15461
- var N, j, O, B, R, M, $, T, z, E;
15456
+ var N, j, O, B, R, M, $, T, z, L;
15462
15457
  const I = (O = (j = (N = t.parent) == null ? void 0 : N["x-decorator-props"]) == null ? void 0 : j.params) == null ? void 0 : O.sort, w = F.order ? F.order === "ascend" ? [F.field] : [`-${F.field}`] : I || i.dragSortBy, k = v || ((M = (R = (B = t.parent) == null ? void 0 : B["x-decorator-props"]) == null ? void 0 : R.params) == null ? void 0 : M.pageSize), D = P(x({}, (z = (T = ($ = a.current) == null ? void 0 : $.service) == null ? void 0 : T.params) == null ? void 0 : z[0]), { page: S || 1, pageSize: k });
15463
- w && (D.sort = w), (E = a.current) == null || E.service.run(D);
15458
+ w && (D.sort = w), (L = a.current) == null || L.service.run(D);
15464
15459
  },
15465
15460
  [t.parent]
15466
15461
  ),
@@ -15473,13 +15468,13 @@ const useTableBlockProps = () => {
15473
15468
  }
15474
15469
  const k = w.find((D) => D.uid === t.parent["x-uid"]);
15475
15470
  w.forEach((D) => {
15476
- var $, T, z, E;
15477
- const N = F.find((L) => L.uid === D.uid);
15471
+ var $, T, z, L;
15472
+ const N = F.find((E) => E.uid === D.uid);
15478
15473
  if (!N)
15479
15474
  return;
15480
15475
  const j = getSourceKey(k, N.field) || i.rowKey || "id", O = [S[j]], B = (($ = D.service.params) == null ? void 0 : $[0]) || {}, R = ((z = (T = D.service.params) == null ? void 0 : T[1]) == null ? void 0 : z.filters) || {};
15481
15476
  if (y.includes(S[i.rowKey])) {
15482
- if ((E = D.clearSelection) == null || E.call(D), D.dataLoadingMode === "manual")
15477
+ if ((L = D.clearSelection) == null || L.call(D), D.dataLoadingMode === "manual")
15483
15478
  return D.clearData();
15484
15479
  delete R[I];
15485
15480
  } else
@@ -15493,7 +15488,7 @@ const useTableBlockProps = () => {
15493
15488
  ]
15494
15489
  };
15495
15490
  const M = mergeFilter([
15496
- ...Object.values(R).map((L) => removeNullCondition(L)),
15491
+ ...Object.values(R).map((E) => removeNullCondition(E)),
15497
15492
  D.defaultFilter
15498
15493
  ]);
15499
15494
  return D.doFilter(
@@ -15897,10 +15892,10 @@ const useTableSelectorParams = () => useContext(TableSelectorParamsContext), Tab
15897
15892
  var a, l, c, u, d, p, m, h, g, f, C, b, S, v, y, F;
15898
15893
  const e = useField(), t = useTableSelectorContext(), n = useFieldSchema(), { getCollectionJoinField: o } = useCollectionManager_deprecated(), r = recursiveParent$1(n, "CollectionField"), i = o(r == null ? void 0 : r["x-collection-field"]);
15899
15894
  return useEffect(() => {
15900
- var w, k, D, N, j, O, B, R, M, $, T, z, E;
15895
+ var w, k, D, N, j, O, B, R, M, $, T, z, L;
15901
15896
  if (!((w = t == null ? void 0 : t.service) != null && w.loading)) {
15902
- const L = (D = (k = t == null ? void 0 : t.service) == null ? void 0 : k.data) == null ? void 0 : D.data.map((q) => q);
15903
- e.value = L, (N = e == null ? void 0 : e.setInitialValue) == null || N.call(e, L), e.data = e.data || {}, e.data.selectedRowKeys = [], e.componentProps.pagination = e.componentProps.pagination || {}, e.componentProps.pagination.pageSize = (B = (O = (j = t == null ? void 0 : t.service) == null ? void 0 : j.data) == null ? void 0 : O.meta) == null ? void 0 : B.pageSize, e.componentProps.pagination.total = ($ = (M = (R = t == null ? void 0 : t.service) == null ? void 0 : R.data) == null ? void 0 : M.meta) == null ? void 0 : $.count, e.componentProps.pagination.current = (E = (z = (T = t == null ? void 0 : t.service) == null ? void 0 : T.data) == null ? void 0 : z.meta) == null ? void 0 : E.page;
15897
+ const E = (D = (k = t == null ? void 0 : t.service) == null ? void 0 : k.data) == null ? void 0 : D.data.map((q) => q);
15898
+ e.value = E, (N = e == null ? void 0 : e.setInitialValue) == null || N.call(e, E), e.data = e.data || {}, e.data.selectedRowKeys = [], e.componentProps.pagination = e.componentProps.pagination || {}, e.componentProps.pagination.pageSize = (B = (O = (j = t == null ? void 0 : t.service) == null ? void 0 : j.data) == null ? void 0 : O.meta) == null ? void 0 : B.pageSize, e.componentProps.pagination.total = ($ = (M = (R = t == null ? void 0 : t.service) == null ? void 0 : R.data) == null ? void 0 : M.meta) == null ? void 0 : $.count, e.componentProps.pagination.current = (L = (z = (T = t == null ? void 0 : t.service) == null ? void 0 : T.data) == null ? void 0 : z.meta) == null ? void 0 : L.page;
15904
15899
  }
15905
15900
  }, [
15906
15901
  i == null ? void 0 : i.foreignKey,
@@ -17949,7 +17944,7 @@ const useGetAriaLabelOfDesigner = () => {
17949
17944
  ] }) })
17950
17945
  ] }) })) : null;
17951
17946
  }, InternalSchemaToolbar = React.memo((e) => {
17952
- var X;
17947
+ var J;
17953
17948
  const t = useFieldSchema(), {
17954
17949
  title: n,
17955
17950
  initializer: o,
@@ -17993,7 +17988,7 @@ const useGetAriaLabelOfDesigner = () => {
17993
17988
  })
17994
17989
  )
17995
17990
  };
17996
- }, [y, (X = $ == null ? void 0 : $.cols) == null ? void 0 : X.length]), E = useMemo(() => u === !1 || C === !1 ? null : /* @__PURE__ */ jsx(DragHandler, { children: /* @__PURE__ */ jsx(DragOutlined, { role: "button", "aria-label": y("drag-handler") }) }), [u, y, C]), L = useMemo(() => {
17991
+ }, [y, (J = $ == null ? void 0 : $.cols) == null ? void 0 : J.length]), L = useMemo(() => u === !1 || C === !1 ? null : /* @__PURE__ */ jsx(DragHandler, { children: /* @__PURE__ */ jsx(DragOutlined, { role: "button", "aria-label": y("drag-handler") }) }), [u, y, C]), E = useMemo(() => {
17997
17992
  var W;
17998
17993
  if (o === !1)
17999
17994
  return null;
@@ -18007,8 +18002,8 @@ const useGetAriaLabelOfDesigner = () => {
18007
18002
  let K = W == null ? void 0 : W.parentElement;
18008
18003
  for (; K && K.clientHeight === 0; )
18009
18004
  K = K.parentElement;
18010
- const J = g || K;
18011
- if (!J)
18005
+ const X = g || K;
18006
+ if (!X)
18012
18007
  return;
18013
18008
  function ee() {
18014
18009
  var ne;
@@ -18018,8 +18013,8 @@ const useGetAriaLabelOfDesigner = () => {
18018
18013
  var ne;
18019
18014
  W && (W.classList.add(U), (ne = e.onVisibleChange) == null || ne.call(e, !1));
18020
18015
  }
18021
- return J.addEventListener("mouseenter", ee), J.addEventListener("mouseleave", Z), () => {
18022
- J.removeEventListener("mouseenter", ee), J.removeEventListener("mouseleave", Z);
18016
+ return X.addEventListener("mouseenter", ee), X.addEventListener("mouseleave", Z), () => {
18017
+ X.removeEventListener("mouseenter", ee), X.removeEventListener("mouseleave", Z);
18023
18018
  };
18024
18019
  }, [e.onVisibleChange, g]);
18025
18020
  const H = useMemo(
@@ -18041,8 +18036,8 @@ const useGetAriaLabelOfDesigner = () => {
18041
18036
  j[1] && /* @__PURE__ */ jsx("span", { className: "toolbar-title-tag", children: `${v("Reference template")}: ${`${j[1]}` || v("Untitled")}` })
18042
18037
  ] }) }),
18043
18038
  /* @__PURE__ */ jsx("div", { className: cls("toolbar-icons", a), style: l, children: /* @__PURE__ */ jsxs(Space$1, { size: 3, align: "center", className: d, style: p, children: [
18044
- E,
18045
- /* @__PURE__ */ jsx(RefreshComponentProvider, { refresh: N, children: L }),
18039
+ L,
18040
+ /* @__PURE__ */ jsx(RefreshComponentProvider, { refresh: N, children: E }),
18046
18041
  q
18047
18042
  ] }) })
18048
18043
  ]
@@ -18137,10 +18132,10 @@ const SchemaToolbarErrorFallback = (e) => {
18137
18132
  [t, p]
18138
18133
  ), y = useCallback(
18139
18134
  (R, M = !1, $) => {
18140
- var E;
18135
+ var L;
18141
18136
  if (!R)
18142
18137
  return [];
18143
- const T = (E = p($)) == null ? void 0 : E.getCollection(R);
18138
+ const T = (L = p($)) == null ? void 0 : L.getCollection(R);
18144
18139
  return (T == null ? void 0 : T.getChildrenCollections(M)) || [];
18145
18140
  },
18146
18141
  [t, p]
@@ -18155,37 +18150,37 @@ const SchemaToolbarErrorFallback = (e) => {
18155
18150
  var ee;
18156
18151
  const {
18157
18152
  association: z = !1,
18158
- cached: E = {},
18159
- collectionNames: L = [R],
18153
+ cached: L = {},
18154
+ collectionNames: E = [R],
18160
18155
  maxDepth: q = 1,
18161
18156
  allowAllTypes: G = !1,
18162
18157
  exceptInterfaces: U = [],
18163
18158
  prefixFieldValue: H = "",
18164
- usePrefix: X = !1,
18159
+ usePrefix: J = !1,
18165
18160
  dataSource: W
18166
18161
  } = T || {};
18167
- if (L.length - 1 > q)
18162
+ if (E.length - 1 > q)
18168
18163
  return;
18169
- if (E[R])
18170
- return _.cloneDeep(E[R]);
18164
+ if (L[R])
18165
+ return _.cloneDeep(L[R]);
18171
18166
  M && typeof M == "string" && (M = [M]), $ && typeof $ == "string" && ($ = [$]);
18172
- const K = b(R, W), J = (ee = K == null ? void 0 : K.filter(
18167
+ const K = b(R, W), X = (ee = K == null ? void 0 : K.filter(
18173
18168
  (Z) => Z.interface && !U.includes(Z.interface) && (G || M && M.includes(Z.type) || $ && $.includes(Z.interface) || (z && Z.target && Z.target !== R && Array.isArray(z) ? z.includes(Z.interface) : !1))
18174
18169
  )) == null ? void 0 : ee.map((Z) => {
18175
18170
  var re, se;
18176
18171
  const ne = x({
18177
- value: X && H ? `${H}.${Z.name}` : Z.name,
18172
+ value: J && H ? `${H}.${Z.name}` : Z.name,
18178
18173
  label: f((re = Z == null ? void 0 : Z.uiSchema) == null ? void 0 : re.title) || Z.name
18179
18174
  }, Z);
18180
- return z && Z.target && (ne.children = L.includes(Z.target) ? [] : I(Z.target, M, $, P(x({}, T), {
18181
- cached: E,
18175
+ return z && Z.target && (ne.children = E.includes(Z.target) ? [] : I(Z.target, M, $, P(x({}, T), {
18176
+ cached: L,
18182
18177
  dataSource: W,
18183
- collectionNames: [...L, Z.target],
18184
- prefixFieldValue: X ? H ? `${H}.${Z.name}` : Z.name : "",
18185
- usePrefix: X
18178
+ collectionNames: [...E, Z.target],
18179
+ prefixFieldValue: J ? H ? `${H}.${Z.name}` : Z.name : "",
18180
+ usePrefix: J
18186
18181
  })), !((se = ne.children) != null && se.length)) ? null : ne;
18187
18182
  }).filter(Boolean);
18188
- return E[R] = J, J;
18183
+ return L[R] = X, X;
18189
18184
  },
18190
18185
  [b]
18191
18186
  ), w = useCallback(
@@ -18564,9 +18559,7 @@ const DatePickerContext = React.createContext({ utc: !0 }), useDatePickerContext
18564
18559
  };
18565
18560
  };
18566
18561
  a(() => b), c(() => S);
18567
- });
18568
- console.log(i);
18569
- const p = P(x({
18562
+ }), p = P(x({
18570
18563
  utc: t
18571
18564
  }, e), {
18572
18565
  disabledDate: i,
@@ -21584,7 +21577,7 @@ const SchemaSettingsSwitchItem = (e) => {
21584
21577
  });
21585
21578
  SchemaSettingsActionModalItem.displayName = "SchemaSettingsActionModalItem";
21586
21579
  const SchemaSettingsModalItem = (e) => {
21587
- const L = e, {
21580
+ const E = e, {
21588
21581
  hidden: t,
21589
21582
  title: n,
21590
21583
  components: o,
@@ -21596,7 +21589,7 @@ const SchemaSettingsModalItem = (e) => {
21596
21589
  width: u = "fit-content",
21597
21590
  noRecord: d = !1,
21598
21591
  ModalContextProvider: p = (q) => /* @__PURE__ */ jsx(Fragment$1, { children: q.children })
21599
- } = L, m = Y(L, [
21592
+ } = E, m = Y(E, [
21600
21593
  "hidden",
21601
21594
  "title",
21602
21595
  "components",
@@ -21608,7 +21601,7 @@ const SchemaSettingsModalItem = (e) => {
21608
21601
  "width",
21609
21602
  "noRecord",
21610
21603
  "ModalContextProvider"
21611
- ]), h = useContext(SchemaOptionsContext), g = useCollection(), f = useAPIClient(), C = useApp(), { theme: b } = useGlobalTheme(), S = useBlockRequestContext(), v = useFormActiveFields(), { locale: y } = useContext(ConfigProvider.ConfigContext), F = useDataSourceManager(), I = useDataSourceKey(), w = useCollectionRecord(), { association: k } = useDataBlockProps() || {}, D = useCurrentRecord(), N = useFormBlockContext(), j = useBlockContext(), { getOperators: O } = useOperators(), B = useLocationSearch(), R = useVariables$1(), { formValue: M, collection: $, parent: T } = useSubFormValue(), z = useCurrentPopupRecord(), E = useParentPopupRecord();
21604
+ ]), h = useContext(SchemaOptionsContext), g = useCollection(), f = useAPIClient(), C = useApp(), { theme: b } = useGlobalTheme(), S = useBlockRequestContext(), v = useFormActiveFields(), { locale: y } = useContext(ConfigProvider.ConfigContext), F = useDataSourceManager(), I = useDataSourceKey(), w = useCollectionRecord(), { association: k } = useDataBlockProps() || {}, D = useCurrentRecord(), N = useFormBlockContext(), j = useBlockContext(), { getOperators: O } = useOperators(), B = useLocationSearch(), R = useVariables$1(), { formValue: M, collection: $, parent: T } = useSubFormValue(), z = useCurrentPopupRecord(), L = useParentPopupRecord();
21612
21605
  return t ? null : /* @__PURE__ */ jsx(
21613
21606
  SchemaSettingsItem,
21614
21607
  P(x({
@@ -21624,8 +21617,8 @@ const SchemaSettingsModalItem = (e) => {
21624
21617
  recordData: z == null ? void 0 : z.value,
21625
21618
  collection: z == null ? void 0 : z.collection,
21626
21619
  parent: {
21627
- recordData: E == null ? void 0 : E.value,
21628
- collection: E == null ? void 0 : E.collection
21620
+ recordData: L == null ? void 0 : L.value,
21621
+ collection: L == null ? void 0 : L.collection
21629
21622
  },
21630
21623
  children: /* @__PURE__ */ jsx(CollectionRecordProvider, { record: d ? null : w, children: /* @__PURE__ */ jsx(CurrentRecordContextProvider, P(x({}, D), { children: /* @__PURE__ */ jsx(FormBlockContext$1.Provider, { value: N, children: /* @__PURE__ */ jsx(SubFormProvider, { value: { value: M, collection: $, parent: T }, children: /* @__PURE__ */ jsx(
21631
21624
  FormActiveFieldsProvider,
@@ -22509,7 +22502,7 @@ const getActionContext = (e) => {
22509
22502
  var n;
22510
22503
  return ((n = e.fieldSchema) == null ? void 0 : n["x-action-context"]) || {};
22511
22504
  }, SchemaSettingsDefaultValue = function e(t) {
22512
- var T, z, E;
22505
+ var T, z, L;
22513
22506
  const n = useFieldSchema(), o = (T = t == null ? void 0 : t.fieldSchema) != null ? T : n, r = useField(), { dn: i } = useDesignable(), { t: a } = useTranslation(), l = useActionContext(), c = getActionContext(l).collection;
22514
22507
  let u;
22515
22508
  const { getField: d } = useCollection_deprecated(), { getCollectionJoinField: p, getCollectionFields: m, getAllCollectionsInheritChain: h } = useCollectionManager_deprecated(), g = useVariables$1(), f = useLocalVariables$1(), C = useCollection_deprecated(), b = useRecord(), { form: S } = useFormBlockContext(), { getFields: v } = useCollectionFilterOptionsV2(C), { isInSubForm: y, isInSubTable: F } = useFlag() || {}, { name: I } = C, w = useMemo(
@@ -22517,21 +22510,21 @@ const getActionContext = (e) => {
22517
22510
  [o, p, d]
22518
22511
  ), k = _.omit(o, "required");
22519
22512
  w != null && w.target && (u = p(
22520
- `${w.target}.${((E = (z = o["x-component-props"]) == null ? void 0 : z.fieldNames) == null ? void 0 : E.label) || "id"}`
22513
+ `${w.target}.${((L = (z = o["x-component-props"]) == null ? void 0 : z.fieldNames) == null ? void 0 : L.label) || "id"}`
22521
22514
  ));
22522
22515
  const D = (w == null ? void 0 : w.interface) === "m2o" && findParentFieldSchema(o), N = D && p(D == null ? void 0 : D["x-collection-field"]), j = useTableBlockContext(), O = (w == null ? void 0 : w.interface) === "m2m" || (w == null ? void 0 : w.interface) === "mbm" || (N == null ? void 0 : N.type) === "hasMany" && (w == null ? void 0 : w.interface) === "m2o", B = useCallback(
22523
- (L) => {
22524
- const q = L.find((U) => U.value === "$nForm"), G = m(I);
22525
- return !(G != null && G.length) && q && (q.children = formatVariableScop(v())), L;
22516
+ (E) => {
22517
+ const q = E.find((U) => U.value === "$nForm"), G = m(I);
22518
+ return !(G != null && G.length) && q && (q.children = formatVariableScop(v())), E;
22526
22519
  },
22527
22520
  [v, I]
22528
22521
  ), R = useMemo(() => ({
22529
22522
  ArrayCollapse: ArrayCollapse$2,
22530
22523
  FormLayout,
22531
- VariableInput: (L) => /* @__PURE__ */ jsx(
22524
+ VariableInput: (E) => /* @__PURE__ */ jsx(
22532
22525
  VariableInput,
22533
- P(x({}, L), {
22534
- value: L.value || void 0,
22526
+ P(x({}, E), {
22527
+ value: E.value || void 0,
22535
22528
  hideVariableButton: t == null ? void 0 : t.hideVariableButton
22536
22529
  })
22537
22530
  )
@@ -22601,12 +22594,12 @@ const getActionContext = (e) => {
22601
22594
  u,
22602
22595
  g
22603
22596
  ]), $ = useCallback(
22604
- (L) => {
22597
+ (E) => {
22605
22598
  var G, U, H;
22606
22599
  const q = {
22607
22600
  "x-uid": o["x-uid"]
22608
22601
  };
22609
- o.default = (G = L.default) != null ? G : null, isVariable$1(L.default) || (U = r.setInitialValue) == null || U.call(r, L.default), q.default = (H = L.default) != null ? H : null, i.emit("patch", {
22602
+ o.default = (G = E.default) != null ? G : null, isVariable$1(E.default) || (U = r.setInitialValue) == null || U.call(r, E.default), q.default = (H = E.default) != null ? H : null, i.emit("patch", {
22610
22603
  schema: q,
22611
22604
  currentSchema: n
22612
22605
  });
@@ -22621,7 +22614,7 @@ const getActionContext = (e) => {
22621
22614
  width: 800,
22622
22615
  schema: M,
22623
22616
  onSubmit: $,
22624
- ModalContextProvider: (L) => /* @__PURE__ */ jsx(FlagProvider, { isInSubForm: y, isInSubTable: F, isInSetDefaultValueDialog: !0, children: L.children })
22617
+ ModalContextProvider: (E) => /* @__PURE__ */ jsx(FlagProvider, { isInSubForm: y, isInSubTable: F, isInSetDefaultValueDialog: !0, children: E.children })
22625
22618
  }
22626
22619
  );
22627
22620
  }, SchemaSettingsSortingRule = function e(t) {
@@ -23389,7 +23382,7 @@ const useGetFilterOptions = () => {
23389
23382
  };
23390
23383
  });
23391
23384
  }, TableColumnDesigner$1 = (e) => {
23392
- var j, O, B, R, M, $, T, z, E, L, q, G;
23385
+ var j, O, B, R, M, $, T, z, L, E, q, G;
23393
23386
  const { uiSchema: t, fieldSchema: n, collectionField: o } = e, { form: r } = useFormBlockContext(), { getInterface: i, getCollection: a } = useCollectionManager_deprecated(), l = useField(), { t: c } = useTranslation(), u = useFieldSchema(), { dn: d } = useDesignable(), p = ((j = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : j.fieldNames) || ((O = t == null ? void 0 : t["x-component-props"]) == null ? void 0 : O.fieldNames), m = useLabelFields$1((B = o == null ? void 0 : o.target) != null ? B : o == null ? void 0 : o.targetCollection), h = useColorFields((R = o == null ? void 0 : o.target) != null ? R : o == null ? void 0 : o.targetCollection), g = i(o == null ? void 0 : o.interface), f = a(o == null ? void 0 : o.target), C = isFileCollection$2(f), b = ["QuickEdit", "FormItem"].includes(n["x-decorator"]), { currentMode: S } = useAssociationFieldContext(), { isAllowToSetDefaultValue: v } = useIsAllowToSetDefaultValue({ collectionField: o, fieldSchema: n }), y = ["datetime", "createdAt", "updatedAt"].includes(o == null ? void 0 : o.interface), F = ["obo", "oho", "o2o", "o2m", "m2m", "m2o", "snapshot"].includes(
23394
23387
  o == null ? void 0 : o.interface
23395
23388
  ), I = useFieldModeOptions({ fieldSchema: n }), w = ((M = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : M.mode) || "Select";
@@ -23432,12 +23425,12 @@ const useGetFilterOptions = () => {
23432
23425
  SchemaSettingsDataScope,
23433
23426
  {
23434
23427
  collectionName: o == null ? void 0 : o.target,
23435
- defaultFilter: ((E = (z = (T = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : T.service) == null ? void 0 : z.params) == null ? void 0 : E.filter) || {},
23428
+ defaultFilter: ((L = (z = (T = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : T.service) == null ? void 0 : z.params) == null ? void 0 : L.filter) || {},
23436
23429
  form: r,
23437
23430
  onSubmit: ({ filter: U }) => {
23438
- var X, W;
23431
+ var J, W;
23439
23432
  U = removeNullCondition(U), set(l.componentProps, "service.params.filter", U), n["x-component-props"] = l.componentProps;
23440
- const H = (W = l.path) == null ? void 0 : W.splice(((X = l.path) == null ? void 0 : X.length) - 1, 1);
23433
+ const H = (W = l.path) == null ? void 0 : W.splice(((J = l.path) == null ? void 0 : J.length) - 1, 1);
23441
23434
  l.form.query(`${H.concat("*." + n.name)}`).forEach((K) => {
23442
23435
  K.componentProps.service = K.componentProps.service || { params: {} }, K.componentProps.service.params.filter = U;
23443
23436
  }), d.emit("patch", {
@@ -23458,7 +23451,7 @@ const useGetFilterOptions = () => {
23458
23451
  title: c("Column width"),
23459
23452
  properties: {
23460
23453
  width: {
23461
- default: ((L = u == null ? void 0 : u["x-component-props"]) == null ? void 0 : L.width) || 100,
23454
+ default: ((E = u == null ? void 0 : u["x-component-props"]) == null ? void 0 : E.width) || 100,
23462
23455
  "x-decorator": "FormItem",
23463
23456
  "x-component": "InputNumber",
23464
23457
  "x-component-props": {}
@@ -23468,11 +23461,11 @@ const useGetFilterOptions = () => {
23468
23461
  onSubmit: ({ width: U }) => {
23469
23462
  const H = u["x-component-props"] || {};
23470
23463
  H.width = U;
23471
- const X = {
23464
+ const J = {
23472
23465
  "x-uid": u["x-uid"]
23473
23466
  };
23474
- X["x-component-props"] = H, u["x-component-props"] = H, l.componentProps.width = U, d.emit("patch", {
23475
- schema: X
23467
+ J["x-component-props"] = H, u["x-component-props"] = H, l.componentProps.width = U, d.emit("patch", {
23468
+ schema: J
23476
23469
  }), d.refresh();
23477
23470
  }
23478
23471
  }
@@ -23523,13 +23516,13 @@ const useGetFilterOptions = () => {
23523
23516
  options: m,
23524
23517
  value: p == null ? void 0 : p.label,
23525
23518
  onChange: (U) => {
23526
- var W, K, J, ee, Z;
23527
- const H = P(x(x({}, (K = (W = o == null ? void 0 : o.uiSchema) == null ? void 0 : W["x-component-props"]) == null ? void 0 : K.fieldNames), (J = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : J.fieldNames), {
23519
+ var W, K, X, ee, Z;
23520
+ const H = P(x(x({}, (K = (W = o == null ? void 0 : o.uiSchema) == null ? void 0 : W["x-component-props"]) == null ? void 0 : K.fieldNames), (X = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : X.fieldNames), {
23528
23521
  label: U
23529
23522
  });
23530
23523
  _.set(n, "x-component-props.fieldNames", H);
23531
- const X = (Z = l.path) == null ? void 0 : Z.splice(((ee = l.path) == null ? void 0 : ee.length) - 1, 1);
23532
- l.form.query(`${X.concat("*." + n.name)}`).forEach((ne) => {
23524
+ const J = (Z = l.path) == null ? void 0 : Z.splice(((ee = l.path) == null ? void 0 : ee.length) - 1, 1);
23525
+ l.form.query(`${J.concat("*." + n.name)}`).forEach((ne) => {
23533
23526
  ne.componentProps.fieldNames = H;
23534
23527
  }), d.emit("patch", {
23535
23528
  schema: {
@@ -23589,9 +23582,9 @@ const useGetFilterOptions = () => {
23589
23582
  "x-uid": n["x-uid"]
23590
23583
  };
23591
23584
  n.required = U, H.required = U;
23592
- const X = (K = l.path) == null ? void 0 : K.splice(((W = l.path) == null ? void 0 : W.length) - 1, 1);
23593
- l.form.query(`${X.concat("*." + n.name)}`).forEach((J) => {
23594
- J.required = U;
23585
+ const J = (K = l.path) == null ? void 0 : K.splice(((W = l.path) == null ? void 0 : W.length) - 1, 1);
23586
+ l.form.query(`${J.concat("*." + n.name)}`).forEach((X) => {
23587
+ X.required = U;
23595
23588
  }), d.emit("patch", {
23596
23589
  schema: H
23597
23590
  }), d.refresh();
@@ -23613,23 +23606,23 @@ const useGetFilterOptions = () => {
23613
23606
  var W, K;
23614
23607
  const H = {
23615
23608
  "x-uid": n["x-uid"]
23616
- }, X = (K = l.path) == null ? void 0 : K.splice(((W = l.path) == null ? void 0 : W.length) - 1, 1);
23609
+ }, J = (K = l.path) == null ? void 0 : K.splice(((W = l.path) == null ? void 0 : W.length) - 1, 1);
23617
23610
  switch (U) {
23618
23611
  case "readonly": {
23619
- n["x-read-pretty"] = !1, n["x-disabled"] = !0, H["x-read-pretty"] = !1, H["x-disabled"] = !0, l.form.query(`${X.concat("*." + n.name)}`).forEach((J) => {
23620
- J.readonly = !0, J.disabled = !0;
23612
+ n["x-read-pretty"] = !1, n["x-disabled"] = !0, H["x-read-pretty"] = !1, H["x-disabled"] = !0, l.form.query(`${J.concat("*." + n.name)}`).forEach((X) => {
23613
+ X.readonly = !0, X.disabled = !0;
23621
23614
  });
23622
23615
  break;
23623
23616
  }
23624
23617
  case "read-pretty": {
23625
- n["x-read-pretty"] = !0, n["x-disabled"] = !1, H["x-read-pretty"] = !0, H["x-disabled"] = !1, l.form.query(`${X.concat("*." + n.name)}`).forEach((J) => {
23626
- J.readPretty = !0;
23618
+ n["x-read-pretty"] = !0, n["x-disabled"] = !1, H["x-read-pretty"] = !0, H["x-disabled"] = !1, l.form.query(`${J.concat("*." + n.name)}`).forEach((X) => {
23619
+ X.readPretty = !0;
23627
23620
  });
23628
23621
  break;
23629
23622
  }
23630
23623
  default: {
23631
- n["x-read-pretty"] = !1, n["x-disabled"] = !1, H["x-read-pretty"] = !1, H["x-disabled"] = !1, l.form.query(`${X.concat("*." + n.name)}`).forEach((J) => {
23632
- J.readPretty = !1, J.disabled + !1;
23624
+ n["x-read-pretty"] = !1, n["x-disabled"] = !1, H["x-read-pretty"] = !1, H["x-disabled"] = !1, l.form.query(`${J.concat("*." + n.name)}`).forEach((X) => {
23625
+ X.readPretty = !1, X.disabled + !1;
23633
23626
  });
23634
23627
  break;
23635
23628
  }
@@ -23647,8 +23640,8 @@ const useGetFilterOptions = () => {
23647
23640
  {
23648
23641
  fieldSchema: n,
23649
23642
  onSubmitCallBack: (U) => {
23650
- var X, W;
23651
- const H = (W = l.path) == null ? void 0 : W.splice(((X = l.path) == null ? void 0 : X.length) - 1, 1);
23643
+ var J, W;
23644
+ const H = (W = l.path) == null ? void 0 : W.splice(((J = l.path) == null ? void 0 : J.length) - 1, 1);
23652
23645
  l.form.query(`${H.concat("*." + n.name)}`).forEach((K) => {
23653
23646
  K.componentProps.service = K.componentProps.service || { params: {} }, K.componentProps.service.params.sort = U;
23654
23647
  });
@@ -24642,23 +24635,8 @@ ReadPretty$c.Html = (e) => {
24642
24635
  );
24643
24636
  };
24644
24637
  const ellipsisStyle = { textOverflow: "ellipsis", overflow: "hidden", whiteSpace: "nowrap", display: "block" };
24645
- function encodeFileURL$1(e) {
24646
- if (!e || e.includes("X-Amz-Content-Sha256"))
24647
- return e;
24648
- const t = e.split("/"), n = t.pop();
24649
- return t.push(encodeURIComponent(n)), t.join("/");
24650
- }
24651
24638
  ReadPretty$c.URL = (e) => {
24652
- const t = usePrefixCls$1("description-url", e), n = e.value && /* @__PURE__ */ jsx(
24653
- "a",
24654
- {
24655
- style: e.ellipsis ? ellipsisStyle : void 0,
24656
- target: "_blank",
24657
- rel: "noopener noreferrer",
24658
- href: encodeFileURL$1(e.value),
24659
- children: e.value
24660
- }
24661
- );
24639
+ const t = usePrefixCls$1("description-url", e), n = e.value && /* @__PURE__ */ jsx("a", { style: e.ellipsis ? ellipsisStyle : void 0, target: "_blank", rel: "noopener noreferrer", href: e.value, children: e.value });
24662
24640
  return /* @__PURE__ */ jsxs("div", { className: cls(t, e.className), style: x({ whiteSpace: "normal" }, e.style), children: [
24663
24641
  e.addonBefore,
24664
24642
  e.prefix,
@@ -25441,7 +25419,7 @@ function getTypedConstantOption(e, t, n) {
25441
25419
  };
25442
25420
  }
25443
25421
  function Input$1(e) {
25444
- var H, X, W;
25422
+ var H, J, W;
25445
25423
  const {
25446
25424
  value: t = "",
25447
25425
  onChange: n,
@@ -25471,10 +25449,10 @@ function Input$1(e) {
25471
25449
  label: v("Constant"),
25472
25450
  [M.value]: "$",
25473
25451
  [M.label]: v("Constant")
25474
- } : i ? getTypedConstantOption(B, i, M) : null, [B, i]), T = (H = $ == null ? void 0 : $.component) != null ? H : NullComponent, z = Array.isArray(i) ? (W = (X = i.find((K) => Array.isArray(K) && K[0] === B)) == null ? void 0 : X[1]) != null ? W : {} : {};
25475
- let E;
25476
- t == null ? a ? o && D ? E = ["$"] : E = [""] : o ? E = ["$"] : E = [" ", B] : E = o ? ["$"] : [" ", B], m && (E = ["$"]), useEffect(() => {
25477
- const Z = $ != null ? $ : {}, { component: K } = Z, J = Y(Z, ["component"]), ee = [
25452
+ } : i ? getTypedConstantOption(B, i, M) : null, [B, i]), T = (H = $ == null ? void 0 : $.component) != null ? H : NullComponent, z = Array.isArray(i) ? (W = (J = i.find((K) => Array.isArray(K) && K[0] === B)) == null ? void 0 : J[1]) != null ? W : {} : {};
25453
+ let L;
25454
+ t == null ? a ? o && D ? L = ["$"] : L = [""] : o ? L = ["$"] : L = [" ", B] : L = o ? ["$"] : [" ", B], m && (L = ["$"]), useEffect(() => {
25455
+ const Z = $ != null ? $ : {}, { component: K } = Z, X = Y(Z, ["component"]), ee = [
25478
25456
  ...a ? [
25479
25457
  {
25480
25458
  value: "",
@@ -25483,30 +25461,30 @@ function Input$1(e) {
25483
25461
  [M.label]: v("Null")
25484
25462
  }
25485
25463
  ] : [],
25486
- ...$ ? [S(J)] : [],
25464
+ ...$ ? [S(X)] : [],
25487
25465
  ...h ? [...h] : []
25488
25466
  ].filter((ne) => !ne.deprecated || (R == null ? void 0 : R[0]) === ne[M.value]);
25489
25467
  I(ee);
25490
25468
  }, [h, R, $, a]);
25491
- const L = (K) => V(this, null, function* () {
25469
+ const E = (K) => V(this, null, function* () {
25492
25470
  var ee;
25493
- const J = K[K.length - 1];
25494
- if (!((ee = J.children) != null && ee.length) && !J.isLeaf && J.loadChildren) {
25471
+ const X = K[K.length - 1];
25472
+ if (!((ee = X.children) != null && ee.length) && !X.isLeaf && X.loadChildren) {
25495
25473
  let Z;
25496
25474
  if (R && R.length >= 2) {
25497
25475
  for (const ne of R)
25498
- if (ne === J[M.value]) {
25476
+ if (ne === X[M.value]) {
25499
25477
  Z = ne;
25500
25478
  break;
25501
25479
  }
25502
25480
  }
25503
- yield J.loadChildren(J, Z, R), I((ne) => [...ne]);
25481
+ yield X.loadChildren(X, Z, R), I((ne) => [...ne]);
25504
25482
  }
25505
25483
  }), q = useCallback(
25506
- (K, J) => {
25484
+ (K, X) => {
25507
25485
  var ee, Z, ne;
25508
25486
  if (K[0] === "$") {
25509
- N(!0), R && n(null, J);
25487
+ N(!0), R && n(null, X);
25510
25488
  return;
25511
25489
  } else
25512
25490
  N(!1);
@@ -25515,17 +25493,17 @@ function Input$1(e) {
25515
25493
  return;
25516
25494
  }
25517
25495
  if (K[0] === " ") {
25518
- K[1] ? K[1] !== B && n((ne = (Z = (ee = ConstantTypes[K[1]]) == null ? void 0 : ee.default) == null ? void 0 : Z.call(ee)) != null ? ne : null, J) : R && n(null, J);
25496
+ K[1] ? K[1] !== B && n((ne = (Z = (ee = ConstantTypes[K[1]]) == null ? void 0 : ee.default) == null ? void 0 : Z.call(ee)) != null ? ne : null, X) : R && n(null, X);
25519
25497
  return;
25520
25498
  }
25521
- n(`{{${K.join(".")}}}`, J);
25499
+ n(`{{${K.join(".")}}}`, X);
25522
25500
  },
25523
25501
  [B, R, n]
25524
25502
  ), G = useCallback(() => {
25525
25503
  var K;
25526
25504
  if (N(!!o), (K = $ == null ? void 0 : $.children) != null && K.length) {
25527
- const J = $.children[0].default();
25528
- return n(J);
25505
+ const X = $.children[0].default();
25506
+ return n(X);
25529
25507
  }
25530
25508
  n(null);
25531
25509
  }, [$]);
@@ -25534,14 +25512,14 @@ function Input$1(e) {
25534
25512
  var Z;
25535
25513
  if (!R || F.length <= 1)
25536
25514
  return;
25537
- let J = null;
25515
+ let X = null;
25538
25516
  const ee = [];
25539
25517
  for (let ne = 0; ne < R.length; ne++) {
25540
25518
  const re = R[ne];
25541
25519
  try {
25542
- if (ne === 0 ? J = F.find((se) => se[M.value] === re) : (J.loadChildren && !((Z = J.children) != null && Z.length) && (yield J.loadChildren(J, re, R)), J = J.children.find((se) => se[M.value] === re)), !J)
25520
+ if (ne === 0 ? X = F.find((se) => se[M.value] === re) : (X.loadChildren && !((Z = X.children) != null && Z.length) && (yield X.loadChildren(X, re, R)), X = X.children.find((se) => se[M.value] === re)), !X)
25543
25521
  return;
25544
- ee.push(J[M.label]);
25522
+ ee.push(X[M.label]);
25545
25523
  } catch (se) {
25546
25524
  error(se);
25547
25525
  }
@@ -25590,8 +25568,8 @@ function Input$1(e) {
25590
25568
  "aria-label": "variable-tag",
25591
25569
  style: { overflow: "hidden" },
25592
25570
  className: cx("ant-input", { "ant-input-disabled": U }, f),
25593
- children: /* @__PURE__ */ jsx(Tag, { color: "blue", children: w.map((K, J) => /* @__PURE__ */ jsxs(React.Fragment, { children: [
25594
- J ? " / " : "",
25571
+ children: /* @__PURE__ */ jsx(Tag, { color: "blue", children: w.map((K, X) => /* @__PURE__ */ jsxs(React.Fragment, { children: [
25572
+ X ? " / " : "",
25595
25573
  K
25596
25574
  ] }, K)) })
25597
25575
  }
@@ -25623,9 +25601,9 @@ function Input$1(e) {
25623
25601
  Cascader$1,
25624
25602
  {
25625
25603
  options: F,
25626
- value: R != null ? R : E,
25604
+ value: R != null ? R : L,
25627
25605
  onChange: q,
25628
- loadData: L,
25606
+ loadData: E,
25629
25607
  changeOnSelect: u,
25630
25608
  fieldNames: d,
25631
25609
  disabled: U,
@@ -25818,15 +25796,15 @@ function TextArea(e) {
25818
25796
  useAntdInputStyle("ant-input");
25819
25797
  const { token: N } = theme.useToken(), j = u.join(" ");
25820
25798
  useEffect(() => {
25821
- preloadOptions(r, m).then((L) => {
25822
- f(L);
25799
+ preloadOptions(r, m).then((E) => {
25800
+ f(E);
25823
25801
  }).catch(console.error);
25824
25802
  }, [r, JSON.stringify(m)]), useEffect(() => {
25825
25803
  w(renderHTML(p != null ? p : "", b, u)), y || D([-1, 0, -1, 0]);
25826
25804
  }, [p, b, j]), useEffect(() => {
25827
25805
  var G;
25828
- const { current: L } = h;
25829
- if (!L)
25806
+ const { current: E } = h;
25807
+ if (!E)
25830
25808
  return;
25831
25809
  const q = new Range();
25832
25810
  if (y) {
@@ -25835,22 +25813,22 @@ function TextArea(e) {
25835
25813
  const U = (G = window.getSelection) == null ? void 0 : G.call(window);
25836
25814
  if (U)
25837
25815
  try {
25838
- const H = Array.from(L.childNodes);
25816
+ const H = Array.from(E.childNodes);
25839
25817
  H.length && (k[0] === -1 ? k[1] && q.setStartAfter(H[k[1] - 1]) : q.setStart(H[k[0]], k[1]), k[2] === -1 ? k[3] && q.setEndAfter(H[k[3] - 1]) : q.setEnd(H[k[2]], k[3])), q.collapse(!0), U.removeAllRanges(), U.addRange(q);
25840
25818
  } catch (H) {
25841
25819
  }
25842
25820
  } else {
25843
- const { lastChild: U } = L;
25821
+ const { lastChild: U } = E;
25844
25822
  if (U) {
25845
25823
  q.setStartAfter(U), q.setEndAfter(U);
25846
- const H = Array.from(L.childNodes), X = q.startContainer === L ? -1 : H.indexOf(U), W = q.startContainer === L ? -1 : H.indexOf(U);
25847
- D([X, q.startOffset, W, q.endOffset]);
25824
+ const H = Array.from(E.childNodes), J = q.startContainer === E ? -1 : H.indexOf(U), W = q.startContainer === E ? -1 : H.indexOf(U);
25825
+ D([J, q.startOffset, W, q.endOffset]);
25848
25826
  }
25849
25827
  }
25850
25828
  }, [I]);
25851
25829
  const O = useCallback(
25852
- function(L) {
25853
- const q = L.filter((H) => !!H.trim()), { current: G } = h;
25830
+ function(E) {
25831
+ const q = E.filter((H) => !!H.trim()), { current: G } = h;
25854
25832
  if (!G || !q)
25855
25833
  return;
25856
25834
  G.focus();
@@ -25861,25 +25839,25 @@ function TextArea(e) {
25861
25839
  },
25862
25840
  [b, i, k, j]
25863
25841
  ), B = useCallback(
25864
- function({ currentTarget: L }) {
25865
- S || (F(!0), D(getCurrentRange(L)), i(getValue(L, u)));
25842
+ function({ currentTarget: E }) {
25843
+ S || (F(!0), D(getCurrentRange(E)), i(getValue(E, u)));
25866
25844
  },
25867
25845
  [S, i, j]
25868
- ), R = useCallback(function({ currentTarget: L }) {
25869
- D(getCurrentRange(L));
25870
- }, []), M = useCallback(function(L) {
25871
- L.key === "Enter" && L.preventDefault();
25846
+ ), R = useCallback(function({ currentTarget: E }) {
25847
+ D(getCurrentRange(E));
25848
+ }, []), M = useCallback(function(E) {
25849
+ E.key === "Enter" && E.preventDefault();
25872
25850
  }, []), $ = useCallback(function() {
25873
25851
  v(!0);
25874
25852
  }, []), T = useCallback(
25875
- ({ currentTarget: L }) => {
25876
- v(!1), F(!0), D(getCurrentRange(L)), i(getValue(L, u));
25853
+ ({ currentTarget: E }) => {
25854
+ v(!1), F(!0), D(getCurrentRange(E)), i(getValue(E, u));
25877
25855
  },
25878
25856
  [i, j]
25879
25857
  ), z = useCallback(
25880
- function(L) {
25881
- L.preventDefault();
25882
- const q = L.clipboardData.getData("text/html") || L.clipboardData.getData("text"), G = sanitizeHTML(q, {
25858
+ function(E) {
25859
+ E.preventDefault();
25860
+ const q = E.clipboardData.getData("text/html") || E.clipboardData.getData("text"), G = sanitizeHTML(q, {
25883
25861
  allowedTags: ["span"],
25884
25862
  allowedAttributes: {
25885
25863
  span: ["data-variable", "contenteditable"]
@@ -25896,10 +25874,10 @@ function TextArea(e) {
25896
25874
  }
25897
25875
  }
25898
25876
  }).replace(/\n/g, " ");
25899
- F(!0), pasteHTML(L.currentTarget, G), D(getCurrentRange(L.currentTarget)), i(getValue(L.currentTarget, u));
25877
+ F(!0), pasteHTML(E.currentTarget, G), D(getCurrentRange(E.currentTarget)), i(getValue(E.currentTarget, u));
25900
25878
  },
25901
25879
  [i, j]
25902
- ), E = e.disabled || C.disabled;
25880
+ ), L = e.disabled || C.disabled;
25903
25881
  return t(
25904
25882
  /* @__PURE__ */ jsxs(
25905
25883
  Space$1.Compact,
@@ -25958,7 +25936,7 @@ function TextArea(e) {
25958
25936
  className: cx(
25959
25937
  n,
25960
25938
  "ant-input",
25961
- { "ant-input-disabled": E },
25939
+ { "ant-input-disabled": L },
25962
25940
  // NOTE: `pre-wrap` here for avoid the `&nbsp;` (\x160) issue when paste content, we need normal space (\x32).
25963
25941
  css`
25964
25942
  min-height: ${N.controlHeight}px;
@@ -25980,7 +25958,7 @@ function TextArea(e) {
25980
25958
  `
25981
25959
  ),
25982
25960
  ref: h,
25983
- contentEditable: !E,
25961
+ contentEditable: !L,
25984
25962
  dangerouslySetInnerHTML: { __html: I }
25985
25963
  }
25986
25964
  ),
@@ -25992,7 +25970,7 @@ function TextArea(e) {
25992
25970
  onInsert: O,
25993
25971
  changeOnSelect: a,
25994
25972
  fieldNames: c || defaultFieldNames$2,
25995
- disabled: E
25973
+ disabled: L
25996
25974
  }
25997
25975
  )
25998
25976
  ]
@@ -27451,20 +27429,20 @@ const useCreateActionProps = () => {
27451
27429
  return {
27452
27430
  onClick() {
27453
27431
  return V(this, null, function* () {
27454
- var z, E, L, q, G, U;
27432
+ var z, L, E, q, G, U;
27455
27433
  const w = u.map((H) => H.name), {
27456
27434
  assignedValues: k = {},
27457
27435
  onSuccess: D,
27458
27436
  overwriteValues: N,
27459
27437
  skipValidator: j,
27460
27438
  triggerWorkflows: O
27461
- } = (z = l == null ? void 0 : l["x-action-settings"]) != null ? z : {}, B = (E = i == null ? void 0 : i["x-component-props"]) == null ? void 0 : E.addChild, { successMessage: R } = D || {}, M = {}, $ = Object.keys(k).map((H) => V(this, null, function* () {
27462
- const X = k[H], W = d(H);
27463
- if (isVariable$1(X)) {
27464
- const { value: K } = (yield C == null ? void 0 : C.parseVariable(X, b)) || {};
27439
+ } = (z = l == null ? void 0 : l["x-action-settings"]) != null ? z : {}, B = (L = i == null ? void 0 : i["x-component-props"]) == null ? void 0 : L.addChild, { successMessage: R } = D || {}, M = {}, $ = Object.keys(k).map((H) => V(this, null, function* () {
27440
+ const J = k[H], W = d(H);
27441
+ if (isVariable$1(J)) {
27442
+ const { value: K } = (yield C == null ? void 0 : C.parseVariable(J, b)) || {};
27465
27443
  K && (M[H] = transformVariableValue(K, { targetCollectionField: W }));
27466
27444
  } else
27467
- X != null && X !== "" && (M[H] = X);
27445
+ J != null && J !== "" && (M[H] = J);
27468
27446
  }));
27469
27447
  yield Promise.all($), j || (yield e.submit());
27470
27448
  const T = getFormValues({
@@ -27478,7 +27456,7 @@ const useCreateActionProps = () => {
27478
27456
  });
27479
27457
  if (B) {
27480
27458
  const H = p();
27481
- T[(L = H == null ? void 0 : H.name) != null ? L : "parent"] = f, T[(q = H == null ? void 0 : H.foreignKey) != null ? q : "parentId"] = f.id;
27459
+ T[(E = H == null ? void 0 : H.name) != null ? E : "parent"] = f, T[(q = H == null ? void 0 : H.foreignKey) != null ? q : "parentId"] = f.id;
27482
27460
  }
27483
27461
  c.data = t.data || {}, c.data.loading = !0;
27484
27462
  try {
@@ -27486,7 +27464,7 @@ const useCreateActionProps = () => {
27486
27464
  values: x(x(x({}, T), N), M),
27487
27465
  filterKeys: y,
27488
27466
  // TODO(refactor): should change to inject by plugin
27489
- triggerWorkflows: O != null && O.length ? O.map((X) => [X.workflowKey, X.context].filter(Boolean).join("!")).join(",") : void 0
27467
+ triggerWorkflows: O != null && O.length ? O.map((J) => [J.workflowKey, J.context].filter(Boolean).join("!")).join(",") : void 0
27490
27468
  });
27491
27469
  if (c.data.loading = !1, c.data.data = H, (U = (G = o == null ? void 0 : o.service) == null ? void 0 : G.refresh) == null || U.call(G), r == null || r(!1), a == null || a(!0), !R)
27492
27470
  return;
@@ -27638,23 +27616,23 @@ const useCreateActionProps = () => {
27638
27616
  updateMode: N
27639
27617
  } = (z = i == null ? void 0 : i["x-action-settings"]) != null ? z : {}, { manualClose: j, redirecting: O, redirectTo: B, successMessage: R, actionAfterSuccess: M } = D || {};
27640
27618
  m.data = e.data || {}, m.data.loading = !0;
27641
- const $ = {}, T = Object.keys(k).map((L) => V(this, null, function* () {
27642
- const q = k[L], G = C(L);
27619
+ const $ = {}, T = Object.keys(k).map((E) => V(this, null, function* () {
27620
+ const q = k[E], G = C(E);
27643
27621
  if (isVariable$1(q)) {
27644
27622
  const { value: U } = (yield g == null ? void 0 : g.parseVariable(q, b)) || {};
27645
- U && ($[L] = transformVariableValue(U, { targetCollectionField: G }));
27623
+ U && ($[E] = transformVariableValue(U, { targetCollectionField: G }));
27646
27624
  } else
27647
- q != null && q !== "" && ($[L] = q);
27625
+ q != null && q !== "" && ($[E] = q);
27648
27626
  }));
27649
27627
  yield Promise.all(T), (M === "previous" || !M && O !== !0) && (S == null || S(!1)), h.confirm({
27650
27628
  title: p("Bulk update"),
27651
27629
  content: p(N === "selected" ? "Update selected data?" : "Update all data?"),
27652
27630
  onOk() {
27653
27631
  return V(this, null, function* () {
27654
- var G, U, H, X;
27655
- const { filter: L } = (U = (G = o.params) == null ? void 0 : G[0]) != null ? U : {}, q = {
27632
+ var G, U, H, J;
27633
+ const { filter: E } = (U = (G = o.params) == null ? void 0 : G[0]) != null ? U : {}, q = {
27656
27634
  values: x({}, $),
27657
- filter: L,
27635
+ filter: E,
27658
27636
  forceUpdate: !1
27659
27637
  };
27660
27638
  if (N === "selected") {
@@ -27671,7 +27649,7 @@ const useCreateActionProps = () => {
27671
27649
  } finally {
27672
27650
  m.data.loading = !1;
27673
27651
  }
27674
- t instanceof TableFieldResource || (X = (H = n == null ? void 0 : n.service) == null ? void 0 : H.refresh) == null || X.call(H), R && (j ? h.success({
27652
+ t instanceof TableFieldResource || (J = (H = n == null ? void 0 : n.service) == null ? void 0 : H.refresh) == null || J.call(H), R && (j ? h.success({
27675
27653
  title: d(R),
27676
27654
  onOk: () => V(this, null, function* () {
27677
27655
  (O && !M || M === "redirect") && B && (isURL(B) ? window.location.href = B : u(B));
@@ -27694,14 +27672,14 @@ const useCreateActionProps = () => {
27694
27672
  return {
27695
27673
  onClick() {
27696
27674
  return V(this, null, function* () {
27697
- var L, q, G, U;
27698
- const { skipValidator: I, onSuccess: w, requestSettings: k } = (L = o == null ? void 0 : o["x-action-settings"]) != null ? L : {}, { manualClose: D, redirecting: N, redirectTo: j, successMessage: O, actionAfterSuccess: B } = w || {}, R = o == null ? void 0 : o["x-action"];
27675
+ var E, q, G, U;
27676
+ const { skipValidator: I, onSuccess: w, requestSettings: k } = (E = o == null ? void 0 : o["x-action-settings"]) != null ? E : {}, { manualClose: D, redirecting: N, redirectTo: j, successMessage: O, actionAfterSuccess: B } = w || {}, R = o == null ? void 0 : o["x-action"];
27699
27677
  if (!k.url)
27700
27678
  return;
27701
27679
  I !== !0 && R === "customize:form:request" && (yield i.submit());
27702
27680
  const M = k.headers ? JSON.parse(k.headers) : {}, $ = k.params ? JSON.parse(k.params) : {}, T = k.data ? JSON.parse(k.data) : {};
27703
27681
  if (R === "customize:form:request" && ["POST", "PUT", "PATCH"].includes(k.method)) {
27704
- const H = a.map((W) => W.name), X = getFormValues({
27682
+ const H = a.map((W) => W.name), J = getFormValues({
27705
27683
  filterByTk: n,
27706
27684
  field: c,
27707
27685
  form: i,
@@ -27710,9 +27688,9 @@ const useCreateActionProps = () => {
27710
27688
  resource: u,
27711
27689
  actionFields: (v == null ? void 0 : v("form")) || []
27712
27690
  });
27713
- Object.assign(T, X);
27691
+ Object.assign(T, J);
27714
27692
  }
27715
- const E = {
27693
+ const L = {
27716
27694
  url: renderTemplate(k.url, { currentRecord: m, currentUser: g }),
27717
27695
  method: k.method,
27718
27696
  headers: parse(M)({ currentRecord: m, currentUser: g }),
@@ -27721,7 +27699,7 @@ const useCreateActionProps = () => {
27721
27699
  };
27722
27700
  f.data = c.data || {}, f.data.loading = !0;
27723
27701
  try {
27724
- yield e.request(x({}, E)), f.data.loading = !1, u instanceof TableFieldResource || (G = (q = d == null ? void 0 : d.service) == null ? void 0 : q.refresh) == null || G.call(q), (U = p == null ? void 0 : p.refresh) == null || U.call(p), R === "customize:form:request" && (B === "previous" || !B && N !== !0) && (b == null || b(!1)), O || (message.success(C("Saved successfully")), yield resetFormCorrectly(i), (N && !B || B === "redirect") && j && (isURL(j) ? window.location.href = j : t(j))), D ? S.success({
27702
+ yield e.request(x({}, L)), f.data.loading = !1, u instanceof TableFieldResource || (G = (q = d == null ? void 0 : d.service) == null ? void 0 : q.refresh) == null || G.call(q), (U = p == null ? void 0 : p.refresh) == null || U.call(p), R === "customize:form:request" && (B === "previous" || !B && N !== !0) && (b == null || b(!1)), O || (message.success(C("Saved successfully")), yield resetFormCorrectly(i), (N && !B || B === "redirect") && j && (isURL(j) ? window.location.href = j : t(j))), D ? S.success({
27725
27703
  title: r(O),
27726
27704
  onOk: () => V(this, null, function* () {
27727
27705
  (N && !B || B === "redirect") && j && (isURL(j) ? window.location.href = j : t(j));
@@ -27748,17 +27726,17 @@ const useCreateActionProps = () => {
27748
27726
  } = (q = l == null ? void 0 : l["x-action-settings"]) != null ? q : {}, { manualClose: O, redirecting: B, redirectTo: R, successMessage: M, actionAfterSuccess: $ } = k || {}, T = {}, z = Object.keys(w).map((G) => V(this, null, function* () {
27749
27727
  const U = w[G], H = d(G);
27750
27728
  if (isVariable$1(U)) {
27751
- const { value: X } = (yield b == null ? void 0 : b.parseVariable(U, S)) || {};
27752
- X && (T[G] = transformVariableValue(X, { targetCollectionField: H }));
27729
+ const { value: J } = (yield b == null ? void 0 : b.parseVariable(U, S)) || {};
27730
+ J && (T[G] = transformVariableValue(J, { targetCollectionField: H }));
27753
27731
  } else
27754
27732
  U != null && U !== "" && (T[G] = U);
27755
27733
  }));
27756
27734
  yield Promise.all(z), N || (yield e.submit());
27757
- const E = u.map((G) => G.name), L = getFormValues({
27735
+ const L = u.map((G) => G.name), E = getFormValues({
27758
27736
  filterByTk: t,
27759
27737
  field: n,
27760
27738
  form: e,
27761
- fieldNames: E,
27739
+ fieldNames: L,
27762
27740
  getField: d,
27763
27741
  resource: o,
27764
27742
  actionFields: (v == null ? void 0 : v("form")) || []
@@ -27767,7 +27745,7 @@ const useCreateActionProps = () => {
27767
27745
  try {
27768
27746
  if (yield o.update(P(x({
27769
27747
  filterByTk: t,
27770
- values: x(x(x({}, L), D), T)
27748
+ values: x(x(x({}, E), D), T)
27771
27749
  }, C), {
27772
27750
  updateAssociationValues: g,
27773
27751
  // TODO(refactor): should change to inject by plugin
@@ -28002,24 +27980,24 @@ const useCreateActionProps = () => {
28002
27980
  (R) => {
28003
27981
  const { targets: M, uid: $ } = findFilterTargets(t);
28004
27982
  o().forEach((T) => {
28005
- var U, H, X, W;
27983
+ var U, H, J, W;
28006
27984
  if (!M.find((K) => K.uid === T.uid))
28007
27985
  return;
28008
- const E = `${$}${t.name}`, L = ((U = T.service.params) == null ? void 0 : U[0]) || {};
28009
- (X = (H = T.service.params) == null ? void 0 : H[1]) != null && X.filters || _.set(T.service.params, "[1].filters", {});
27986
+ const L = `${$}${t.name}`, E = ((U = T.service.params) == null ? void 0 : U[0]) || {};
27987
+ (J = (H = T.service.params) == null ? void 0 : H[1]) != null && J.filters || _.set(T.service.params, "[1].filters", {});
28010
27988
  const q = T.service.params[1].filters;
28011
27989
  if (R.length)
28012
- q[E] = {
27990
+ q[L] = {
28013
27991
  [S]: R
28014
27992
  };
28015
27993
  else {
28016
27994
  if ((W = T.clearSelection) == null || W.call(T), T.dataLoadingMode === "manual")
28017
27995
  return T.clearData();
28018
- delete q[E];
27996
+ delete q[L];
28019
27997
  }
28020
27998
  const G = mergeFilter([...Object.values(q), T.defaultFilter]);
28021
27999
  return T.doFilter(
28022
- P(x({}, L), {
28000
+ P(x({}, E), {
28023
28001
  page: 1,
28024
28002
  filter: G
28025
28003
  }),
@@ -28045,7 +28023,7 @@ const useCreateActionProps = () => {
28045
28023
  p = $;
28046
28024
  return;
28047
28025
  }
28048
- p = $.filter((E) => E.label.includes(z));
28026
+ p = $.filter((L) => L.label.includes(z));
28049
28027
  };
28050
28028
  } else
28051
28029
  S = `${r}.${C}.$in`, p = (f == null ? void 0 : f.data) || [], m = (R) => {
@@ -35139,10 +35117,10 @@ const tableBlockSettings = new SchemaSettings({
35139
35117
  name: "fieldSettings:component:CascadeSelect",
35140
35118
  items: [fieldComponent$6, titleField$1, ellipsisSettingsItem, setTheDataScope]
35141
35119
  }), SchemaSettingsDateRange = function e(t) {
35142
- var w, k, D, N, j, O, B, R, M, $, T, z, E, L, q, G;
35120
+ var w, k, D, N, j, O, B, R, M, $, T, z, L, E, q, G;
35143
35121
  const { fieldSchema: n } = t, o = useField(), { dn: r } = useDesignable(), { t: i } = useTranslation(), { getCollectionJoinField: a } = useCollectionManager_deprecated(), { isInSubForm: l, isInSubTable: c } = useFlag() || {}, u = a(n == null ? void 0 : n["x-collection-field"]) || {}, d = ((w = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : w.showTime) || ((D = (k = u == null ? void 0 : u.uiSchema) == null ? void 0 : k["x-component-props"]) == null ? void 0 : D.showTime) || !1, p = ((N = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : N.dateFormat) || ((O = (j = u == null ? void 0 : u.uiSchema) == null ? void 0 : j["x-component-props"]) == null ? void 0 : O.dateFormat) || "YYYY-MM-DD", m = ((B = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : B.timeFormat) || ((M = (R = u == null ? void 0 : u.uiSchema) == null ? void 0 : R["x-component-props"]) == null ? void 0 : M.timeFormat) || "HH:mm:ss", h = (($ = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : $.picker) || ((z = (T = u == null ? void 0 : u.uiSchema) == null ? void 0 : T["x-component-props"]) == null ? void 0 : z.picker) || "date";
35144
35122
  n["x-read-pretty"] || o.readOnly || o.readPretty;
35145
- const g = (E = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : E._minDate, f = (L = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : L._maxDate, C = ((q = u == null ? void 0 : u.uiSchema) == null ? void 0 : q["x-component-props"].gmt) || !1, b = ((G = u == null ? void 0 : u.uiSchema) == null ? void 0 : G["x-component-props"].utc) || !1, S = useRecord(), { form: v } = useFormBlockContext(), y = useCallback(
35123
+ const g = (L = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : L._minDate, f = (E = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : E._maxDate, C = ((q = u == null ? void 0 : u.uiSchema) == null ? void 0 : q["x-component-props"].gmt) || !1, b = ((G = u == null ? void 0 : u.uiSchema) == null ? void 0 : G["x-component-props"].utc) || !1, S = useRecord(), { form: v } = useFormBlockContext(), y = useCallback(
35146
35124
  (U) => /* @__PURE__ */ jsx(
35147
35125
  SchemaComponent,
35148
35126
  {
@@ -35227,9 +35205,9 @@ const tableBlockSettings = new SchemaSettings({
35227
35205
  _maxDate: I(U == null ? void 0 : U._maxDate),
35228
35206
  _minDate: I(U == null ? void 0 : U._minDate)
35229
35207
  }), H["x-component-props"] = n["x-component-props"], o.componentProps = n["x-component-props"];
35230
- const X = o.path.entire.split(".");
35231
- X.pop();
35232
- const W = X.join(".");
35208
+ const J = o.path.entire.split(".");
35209
+ J.pop();
35210
+ const W = J.join(".");
35233
35211
  o.query(`${W}.*[0:].${n.name}`).forEach((K) => {
35234
35212
  K.props.name === n.name && K.setComponentProps({
35235
35213
  _maxDate: I(U == null ? void 0 : U._maxDate),
@@ -36616,14 +36594,14 @@ const variablesStore = {}, getFieldPath = (e, t) => {
36616
36594
  dataSource: k,
36617
36595
  collectionName: O
36618
36596
  };
36619
- const T = v[$], z = v.slice(0, $ + 1).join("."), { fieldPath: E } = getFieldPath(z, F), L = r(E, k), q = (M = i(N, k)) == null ? void 0 : M.getPrimaryKey();
36597
+ const T = v[$], z = v.slice(0, $ + 1).join("."), { fieldPath: L } = getFieldPath(z, F), E = r(L, k), q = (M = i(N, k)) == null ? void 0 : M.getPrimaryKey();
36620
36598
  if (Array.isArray(I)) {
36621
36599
  const G = I.map((U) => {
36622
- if (!(S != null && S.doNotRequest) && shouldToRequest(U == null ? void 0 : U[T], U, z) && (U == null ? void 0 : U[q]) != null && L != null && L.target) {
36623
- const H = `/${N}/${U[L.sourceKey || q]}/${T}:${getAction(L.type)}`;
36600
+ if (!(S != null && S.doNotRequest) && shouldToRequest(U == null ? void 0 : U[T], U, z) && (U == null ? void 0 : U[q]) != null && E != null && E.target) {
36601
+ const H = `/${N}/${U[E.sourceKey || q]}/${T}:${getAction(E.type)}`;
36624
36602
  if (hasRequested(H))
36625
36603
  return getRequested(H);
36626
- const X = o.request({
36604
+ const J = o.request({
36627
36605
  headers: getDataSourceHeaders(k),
36628
36606
  url: H,
36629
36607
  params: {
@@ -36634,34 +36612,34 @@ const variablesStore = {}, getFieldPath = (e, t) => {
36634
36612
  const K = W.data.data;
36635
36613
  return cacheLazyLoadedValues(U, z, K), K;
36636
36614
  });
36637
- return stashRequested(H, X), X;
36615
+ return stashRequested(H, J), J;
36638
36616
  }
36639
36617
  return getCachedLazyLoadedValues(U, z) || (U == null ? void 0 : U[T]);
36640
36618
  });
36641
- I = removeThroughCollectionFields(_.flatten(yield Promise.all(G)), L);
36642
- } else if (!(S != null && S.doNotRequest) && shouldToRequest(I[T], I, z) && I[q] != null && (L != null && L.target)) {
36643
- const G = `/${N}/${I[L.sourceKey || q]}/${T}:${getAction(L.type)}`;
36619
+ I = removeThroughCollectionFields(_.flatten(yield Promise.all(G)), E);
36620
+ } else if (!(S != null && S.doNotRequest) && shouldToRequest(I[T], I, z) && I[q] != null && (E != null && E.target)) {
36621
+ const G = `/${N}/${I[E.sourceKey || q]}/${T}:${getAction(E.type)}`;
36644
36622
  let U = null;
36645
36623
  if (hasRequested(G))
36646
36624
  U = yield getRequested(G);
36647
36625
  else {
36648
- const X = o.request({
36626
+ const J = o.request({
36649
36627
  headers: getDataSourceHeaders(k),
36650
36628
  url: G,
36651
36629
  params: {
36652
36630
  appends: S == null ? void 0 : S.appends
36653
36631
  }
36654
36632
  });
36655
- stashRequested(G, X), U = yield X, clearRequested(G);
36633
+ stashRequested(G, J), U = yield J, clearRequested(G);
36656
36634
  }
36657
36635
  const H = U.data.data;
36658
- getCachedLazyLoadedValues(I, z) || cacheLazyLoadedValues(I, z, H), I = removeThroughCollectionFields(H, L);
36636
+ getCachedLazyLoadedValues(I, z) || cacheLazyLoadedValues(I, z, H), I = removeThroughCollectionFields(H, E);
36659
36637
  } else
36660
36638
  I = removeThroughCollectionFields(
36661
36639
  getCachedLazyLoadedValues(I, z) || getValuesByPath(I, T),
36662
- L
36640
+ E
36663
36641
  );
36664
- L != null && L.target && (N = L.target);
36642
+ E != null && E.target && (N = E.target);
36665
36643
  }
36666
36644
  const B = a(
36667
36645
  _.isFunction(I) ? I({ fieldOperator: S == null ? void 0 : S.fieldOperator, isParsingVariable: !0 }) : I
@@ -37103,11 +37081,11 @@ const ActionLink = withDynamicSchemaProps(
37103
37081
  "onMouseEnter",
37104
37082
  "refreshDataBlockRequest",
37105
37083
  "confirmTitle"
37106
- ]), y = useDesigner(), F = useField(), I = useFieldSchema(), w = useCompile(), k = useCollectionRecordData(), D = w((U = I["x-component-props"]) == null ? void 0 : U.confirm) || g, N = useMemo(() => (I == null ? void 0 : I["x-linkage-rules"]) || [], [I == null ? void 0 : I["x-linkage-rules"]]), { designable: j } = useDesignable(), O = useComponent(o) || o, B = useVariables$1(), R = useLocalVariables$1({ currentForm: { values: k, readPretty: !1 } }), { visibleWithURL: M, setVisibleWithURL: $ } = usePopupUtils(), { setSubmitted: T } = useActionContext(), { getAriaLabel: z } = useGetAriaLabelOfAction(l), E = useCollectionParentRecordData(), L = useApp();
37084
+ ]), y = useDesigner(), F = useField(), I = useFieldSchema(), w = useCompile(), k = useCollectionRecordData(), D = w((U = I["x-component-props"]) == null ? void 0 : U.confirm) || g, N = useMemo(() => (I == null ? void 0 : I["x-linkage-rules"]) || [], [I == null ? void 0 : I["x-linkage-rules"]]), { designable: j } = useDesignable(), O = useComponent(o) || o, B = useVariables$1(), R = useLocalVariables$1({ currentForm: { values: k, readPretty: !1 } }), { visibleWithURL: M, setVisibleWithURL: $ } = usePopupUtils(), { setSubmitted: T } = useActionContext(), { getAriaLabel: z } = useGetAriaLabelOfAction(l), L = useCollectionParentRecordData(), E = useApp();
37107
37085
  useEffect(() => {
37108
37086
  F.stateOfLinkageRules && setInitialActionState(F), F.stateOfLinkageRules = {}, N.filter((H) => !H.disabled).forEach((H) => {
37109
- var X;
37110
- (X = H.actions) == null || X.forEach((W) => {
37087
+ var J;
37088
+ (J = H.actions) == null || J.forEach((W) => {
37111
37089
  linkageAction(
37112
37090
  {
37113
37091
  operator: W.operator,
@@ -37116,7 +37094,7 @@ const ActionLink = withDynamicSchemaProps(
37116
37094
  variables: B,
37117
37095
  localVariables: R
37118
37096
  },
37119
- L.jsonLogic
37097
+ E.jsonLogic
37120
37098
  );
37121
37099
  });
37122
37100
  });
@@ -37155,7 +37133,7 @@ const ActionLink = withDynamicSchemaProps(
37155
37133
  setVisibleWithURL: $,
37156
37134
  setSubmitted: T,
37157
37135
  getAriaLabel: z,
37158
- parentRecordData: E,
37136
+ parentRecordData: L,
37159
37137
  actionCallback: h
37160
37138
  }, v)
37161
37139
  );
@@ -37219,7 +37197,7 @@ const ActionLink = withDynamicSchemaProps(
37219
37197
  "setSubmitted",
37220
37198
  "getAriaLabel",
37221
37199
  "parentRecordData"
37222
- ]), [R, M] = useState(!1), { wrapSSR: $, componentCls: T, hashId: z } = useStyles$8(), [E, L] = useState(!1), q = o["x-toolbar-props"] || o["x-designer-props"], G = (me = o == null ? void 0 : o["x-component-props"]) == null ? void 0 : me.openMode, U = (he = o == null ? void 0 : o["x-component-props"]) == null ? void 0 : he.openSize, H = (ge = o == null ? void 0 : o["x-component-props"]) == null ? void 0 : ge.refreshDataBlockRequest, { modal: X } = App.useApp(), W = useForm(), K = useACLActionParamsContext(), { run: J, element: ee, disabled: Z } = (I == null ? void 0 : I(w)) || {}, ne = W.disabled || i.disabled || ((de = i.data) == null ? void 0 : de.disabled) || F || Z, re = useMemo(() => {
37200
+ ]), [R, M] = useState(!1), { wrapSSR: $, componentCls: T, hashId: z } = useStyles$8(), [L, E] = useState(!1), q = o["x-toolbar-props"] || o["x-designer-props"], G = (me = o == null ? void 0 : o["x-component-props"]) == null ? void 0 : me.openMode, U = (he = o == null ? void 0 : o["x-component-props"]) == null ? void 0 : he.openSize, H = (ge = o == null ? void 0 : o["x-component-props"]) == null ? void 0 : ge.refreshDataBlockRequest, { modal: J } = App.useApp(), W = useForm(), K = useACLActionParamsContext(), { run: X, element: ee, disabled: Z } = (I == null ? void 0 : I(w)) || {}, ne = W.disabled || i.disabled || ((de = i.data) == null ? void 0 : de.disabled) || F || Z, re = useMemo(() => {
37223
37201
  var ce;
37224
37202
  return P(x({}, y), {
37225
37203
  opacity: r && (((ce = i == null ? void 0 : i.data) == null ? void 0 : ce.hidden) || !K) && 0.1,
@@ -37247,9 +37225,9 @@ const ActionLink = withDynamicSchemaProps(
37247
37225
  refreshDataBlockRequest: H,
37248
37226
  fieldSchema: o,
37249
37227
  setVisible: M,
37250
- run: J,
37228
+ run: X,
37251
37229
  confirm: g,
37252
- modal: X,
37230
+ modal: J,
37253
37231
  setSubmitted: N,
37254
37232
  confirmTitle: f,
37255
37233
  title: v
@@ -37265,8 +37243,8 @@ const ActionLink = withDynamicSchemaProps(
37265
37243
  button: RenderButton(se),
37266
37244
  visible: R || k,
37267
37245
  setVisible: le,
37268
- formValueChanged: E,
37269
- setFormValueChanged: L,
37246
+ formValueChanged: L,
37247
+ setFormValueChanged: E,
37270
37248
  openMode: G,
37271
37249
  openSize: U,
37272
37250
  containerRefKey: n,
@@ -37357,17 +37335,17 @@ const RenderButton = ({
37357
37335
  const $ = useCallback(
37358
37336
  (T, z = !0) => {
37359
37337
  if (!(z && isPortalInBody(T.target)) && (T.preventDefault(), T.stopPropagation(), !i && n)) {
37360
- const E = () => {
37338
+ const L = () => {
37361
37339
  b ? b(T, () => {
37362
- var L, q;
37363
- S !== !1 && (k == null || k(!0), (q = (L = j()) == null ? void 0 : L.refresh) == null || q.call(L));
37340
+ var E, q;
37341
+ S !== !1 && (k == null || k(!0), (q = (E = j()) == null ? void 0 : E.refresh) == null || q.call(E));
37364
37342
  }) : isBulkEditAction(v) || !B() ? (y(!0), F == null || F()) : ["view", "update", "create", "customize:popup"].includes(v["x-action"]) && v["x-uid"] ? M.current() : (y(!0), F == null || F());
37365
37343
  };
37366
37344
  (I == null ? void 0 : I.enable) !== !1 && (I != null && I.content) ? w.confirm({
37367
37345
  title: O(I.title, { title: D || N || (t == null ? void 0 : t.title) }),
37368
37346
  content: O(I.content, { title: D || N || (t == null ? void 0 : t.title) }),
37369
- onOk: E
37370
- }) : E();
37347
+ onOk: L
37348
+ }) : L();
37371
37349
  }
37372
37350
  },
37373
37351
  [
@@ -37906,7 +37884,7 @@ const getValues = (e, t) => castArray(e).filter((n) => n != null).map((n) => typ
37906
37884
  ), EMPTY$1 = "N/A", InternalRemoteSelect = withDynamicSchemaProps(
37907
37885
  connect(
37908
37886
  (e) => {
37909
- var H, X;
37887
+ var H, J;
37910
37888
  const U = e, {
37911
37889
  fieldNames: t = {},
37912
37890
  service: n = {},
@@ -37940,8 +37918,8 @@ const getValues = (e, t) => castArray(e).filter((n) => n != null).map((n) => typ
37940
37918
  ]), C = useDataSourceKey(), b = useDataSourceHeaders(m || C), S = useRef(!1), v = useFieldSchema(), y = ((H = v["x-component-props"]) == null ? void 0 : H.addMode) === "quickAdd", { getField: F } = useCollection_deprecated(), I = useRef(null), { getCollectionJoinField: w, getInterface: k } = useCollectionManager_deprecated(), D = v["x-collection-field"] || v.name, N = F(D) || w(D), j = u || (N == null ? void 0 : N.target) && (t == null ? void 0 : t.label) && w(`${N.target}.${t.label}`), O = useMemo(() => {
37941
37919
  var W;
37942
37920
  if (j != null && j.interface) {
37943
- const K = k(j.interface), J = ((W = K == null ? void 0 : K.filterable) == null ? void 0 : W.operators[0].value) || "$includes";
37944
- return j.type === "string" ? "$includes" : J;
37921
+ const K = k(j.interface), X = ((W = K == null ? void 0 : K.filterable) == null ? void 0 : W.operators[0].value) || "$includes";
37922
+ return j.type === "string" ? "$includes" : X;
37945
37923
  }
37946
37924
  return "$includes";
37947
37925
  }, [j]), B = useCompile(), R = useCallback(
@@ -37949,22 +37927,22 @@ const getValues = (e, t) => castArray(e).filter((n) => n != null).map((n) => typ
37949
37927
  try {
37950
37928
  return W.filter((K) => ["number", "string"].includes(typeof K[t.value]) || !K[t.value]).map((K) => {
37951
37929
  var ee;
37952
- let J = B(K[t.label]);
37930
+ let X = B(K[t.label]);
37953
37931
  if ((ee = j == null ? void 0 : j.uiSchema) != null && ee.enum)
37954
- if (Array.isArray(J))
37955
- J = J.map((Z, ne) => {
37932
+ if (Array.isArray(X))
37933
+ X = X.map((Z, ne) => {
37956
37934
  const re = j.uiSchema.enum.find((se) => se.value === Z);
37957
37935
  return re ? /* @__PURE__ */ jsx(Tag, { role: "button", color: re.color, style: { marginRight: 3 }, children: (re == null ? void 0 : re.label) || Z }, ne) : /* @__PURE__ */ jsx(Tag, { role: "button", children: Z }, Z);
37958
37936
  }).reverse();
37959
37937
  else {
37960
- const Z = j.uiSchema.enum.find((ne) => ne.value === J);
37961
- Z && (J = /* @__PURE__ */ jsx(Tag, { role: "button", color: Z.color, children: Z.label }));
37938
+ const Z = j.uiSchema.enum.find((ne) => ne.value === X);
37939
+ Z && (X = /* @__PURE__ */ jsx(Tag, { role: "button", color: Z.color, children: Z.label }));
37962
37940
  }
37963
- return (j == null ? void 0 : j.type) === "date" && (J = dayjs(J).format("YYYY-MM-DD")), c ? c({
37964
- [t.label]: J || EMPTY$1,
37941
+ return (j == null ? void 0 : j.type) === "date" && (X = dayjs(X).format("YYYY-MM-DD")), c ? c({
37942
+ [t.label]: X || EMPTY$1,
37965
37943
  [t.value]: K[t.value]
37966
37944
  }) : P(x({}, K), {
37967
- [t.label]: J || EMPTY$1,
37945
+ [t.label]: X || EMPTY$1,
37968
37946
  [t.value]: K[t.value]
37969
37947
  });
37970
37948
  }).filter(Boolean);
@@ -37981,7 +37959,7 @@ const getValues = (e, t) => castArray(e).filter((n) => n != null).map((n) => typ
37981
37959
  params: P(x({
37982
37960
  pageSize: 200
37983
37961
  }, n == null ? void 0 : n.params), {
37984
- filter: (X = n == null ? void 0 : n.params) == null ? void 0 : X.filter
37962
+ filter: (J = n == null ? void 0 : n.params) == null ? void 0 : J.filter
37985
37963
  })
37986
37964
  }),
37987
37965
  x({
@@ -37994,7 +37972,7 @@ const getValues = (e, t) => castArray(e).filter((n) => n != null).map((n) => typ
37994
37972
  fieldNames: t
37995
37973
  }),
37996
37974
  [n, t]
37997
- ), E = useCallback(() => I.current && d ? /* @__PURE__ */ jsx(
37975
+ ), L = useCallback(() => I.current && d ? /* @__PURE__ */ jsx(
37998
37976
  d,
37999
37977
  {
38000
37978
  search: I.current,
@@ -38006,7 +37984,7 @@ const getValues = (e, t) => castArray(e).filter((n) => n != null).map((n) => typ
38006
37984
  useEffect(() => {
38007
37985
  S.current && $();
38008
37986
  }, [z]);
38009
- const L = (W) => V(void 0, null, function* () {
37987
+ const E = (W) => V(void 0, null, function* () {
38010
37988
  var K;
38011
37989
  $({
38012
37990
  filter: mergeFilter([
@@ -38023,8 +38001,8 @@ const getValues = (e, t) => castArray(e).filter((n) => n != null).map((n) => typ
38023
38001
  const W = r || i;
38024
38002
  if (!((ee = M == null ? void 0 : M.data) != null && ee.length))
38025
38003
  return W != null ? Array.isArray(W) ? W : [W] : [];
38026
- const K = W != null && (Array.isArray(W) ? W.map((Z) => P(x({}, Z), { [t.value]: Z[t.value] || Z })) : [P(x({}, W), { [t.value]: W[t.value] || W })]) || [], J = typeof p == "function" ? M.data.filter(p) : M.data;
38027
- return uniqBy(J.concat(K != null ? K : []), t.value);
38004
+ const K = W != null && (Array.isArray(W) ? W.map((Z) => P(x({}, Z), { [t.value]: Z[t.value] || Z })) : [P(x({}, W), { [t.value]: W[t.value] || W })]) || [], X = typeof p == "function" ? M.data.filter(p) : M.data;
38005
+ return uniqBy(X.concat(K != null ? K : []), t.value);
38028
38006
  }, [r, i, M == null ? void 0 : M.data, t.value, p]);
38029
38007
  return /* @__PURE__ */ jsx(
38030
38008
  Select,
@@ -38034,7 +38012,7 @@ const getValues = (e, t) => castArray(e).filter((n) => n != null).map((n) => typ
38034
38012
  filterOption: !1,
38035
38013
  filterSort: null,
38036
38014
  fieldNames: t,
38037
- onSearch: L,
38015
+ onSearch: E,
38038
38016
  onDropdownVisibleChange: (W) => {
38039
38017
  I.current = null, W && $(), S.current = !0;
38040
38018
  },
@@ -38046,11 +38024,11 @@ const getValues = (e, t) => castArray(e).filter((n) => n != null).map((n) => typ
38046
38024
  options: h(R(q)),
38047
38025
  rawOptions: q,
38048
38026
  dropdownRender: (W) => {
38049
- const K = q.some((J) => J[t.label] === I.current);
38027
+ const K = q.some((X) => X[t.label] === I.current);
38050
38028
  return /* @__PURE__ */ jsx(Fragment$1, { children: y ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
38051
38029
  !((M == null ? void 0 : M.data.length) === 0 && (I != null && I.current)) && W,
38052
38030
  (M == null ? void 0 : M.data.length) > 0 && (I == null ? void 0 : I.current) && !K && /* @__PURE__ */ jsx(Divider$1, { style: { margin: 0 } }),
38053
- !K && /* @__PURE__ */ jsx(E, {})
38031
+ !K && /* @__PURE__ */ jsx(L, {})
38054
38032
  ] }) : W });
38055
38033
  }
38056
38034
  })
@@ -38955,6 +38933,11 @@ const useCurrentAppInfo = () => useContext(CurrentAppInfoContext), CurrentAppInf
38955
38933
  }, pinnedPluginListClassName = css`
38956
38934
  display: inline-flex;
38957
38935
  align-items: center;
38936
+ color: var(--colorTextHeaderMenu);
38937
+
38938
+ .anticon {
38939
+ color: var(--colorTextHeaderMenu);
38940
+ }
38958
38941
 
38959
38942
  .ant-btn {
38960
38943
  display: inline-flex;
@@ -41030,12 +41013,6 @@ function useBeforeUpload(e) {
41030
41013
  [e]
41031
41014
  );
41032
41015
  }
41033
- function encodeFileURL(e) {
41034
- if (!e || e.includes("X-Amz-Content-Sha256"))
41035
- return e;
41036
- const [t, n = ""] = e.split("?"), o = t.split("/"), r = o.pop();
41037
- return o.push(encodeURIComponent(r)), `${o.join("/")}${n ? `?${n}` : ""}`;
41038
- }
41039
41016
  const useStyles$6 = genStyleHook("upload", (e) => {
41040
41017
  const { componentCls: t, antCls: n } = e;
41041
41018
  return {
@@ -41139,7 +41116,7 @@ attachmentFileTypes.add({
41139
41116
  return matchMimetype(e, "image/*");
41140
41117
  },
41141
41118
  getThumbnailURL(e) {
41142
- return e.preview ? encodeFileURL(e.preview) : e.url ? encodeFileURL(`${e.url}${e.thumbnailRule || ""}`) : e.originFileObj ? URL.createObjectURL(e.originFileObj) : null;
41119
+ return e.preview ? e.preview : e.url ? e.url : e.originFileObj ? URL.createObjectURL(e.originFileObj) : null;
41143
41120
  },
41144
41121
  Previewer({ index: e, list: t, onSwitchIndex: n }) {
41145
41122
  var r, i, a, l;
@@ -41154,9 +41131,9 @@ attachmentFileTypes.add({
41154
41131
  return /* @__PURE__ */ jsx(
41155
41132
  LightBox,
41156
41133
  {
41157
- mainSrc: encodeFileURL((r = t[e]) == null ? void 0 : r.url),
41158
- nextSrc: encodeFileURL((i = t[(e + 1) % t.length]) == null ? void 0 : i.url),
41159
- prevSrc: encodeFileURL((a = t[(e + t.length - 1) % t.length]) == null ? void 0 : a.url),
41134
+ mainSrc: (r = t[e]) == null ? void 0 : r.url,
41135
+ nextSrc: (i = t[(e + 1) % t.length]) == null ? void 0 : i.url,
41136
+ prevSrc: (a = t[(e + t.length - 1) % t.length]) == null ? void 0 : a.url,
41160
41137
  onCloseRequest: () => n(null),
41161
41138
  onMovePrevRequest: () => n((e + t.length - 1) % t.length),
41162
41139
  onMoveNextRequest: () => n((e + 1) % t.length),
@@ -41182,7 +41159,7 @@ attachmentFileTypes.add({
41182
41159
  });
41183
41160
  const iframePreviewSupportedTypes = ["application/pdf", "audio/*", "image/*", "video/*", "text/*"];
41184
41161
  function IframePreviewer({ index: e, list: t, onSwitchIndex: n }) {
41185
- const { t: o } = useTranslation(), r = t[e], i = encodeFileURL(r.url), a = useCallback(
41162
+ const { t: o } = useTranslation(), r = t[e], i = r.url, a = useCallback(
41186
41163
  (u) => {
41187
41164
  u.preventDefault(), u.stopPropagation(), window.open(i);
41188
41165
  },
@@ -41315,7 +41292,7 @@ function AttachmentListItem(e) {
41315
41292
  }, [t]), { ThumbnailPreviewer: m = DefaultThumbnailPreviewer } = (C = attachmentFileTypes.getTypeByFile(t)) != null ? C : {}, h = [
41316
41293
  /* @__PURE__ */ jsx("span", { className: `${l}-list-item-thumbnail`, children: /* @__PURE__ */ jsx(m, { file: t }) }, "thumbnail"),
41317
41294
  a !== !1 && t.title ? /* @__PURE__ */ jsx("span", { className: `${l}-list-item-name`, title: t.title, children: t.status === "uploading" ? c("Uploading") : t.title }, "title") : null
41318
- ], g = t.url ? /* @__PURE__ */ jsx("a", { target: "_blank", rel: "noopener noreferrer", href: encodeFileURL(t.url), onClick: u, children: h }) : /* @__PURE__ */ jsx("span", { className: `${l}-span`, children: h }), f = /* @__PURE__ */ jsxs(
41295
+ ], g = t.url ? /* @__PURE__ */ jsx("a", { target: "_blank", rel: "noopener noreferrer", href: t.url, onClick: u, children: h }) : /* @__PURE__ */ jsx("span", { className: `${l}-span`, children: h }), f = /* @__PURE__ */ jsxs(
41319
41296
  "div",
41320
41297
  {
41321
41298
  className: cls(
@@ -41872,21 +41849,21 @@ const useStyles$5 = genStyleHook("nb-association-filter-item", (e) => {
41872
41849
  a.default && (d(a.default), j(a.default));
41873
41850
  }, [a.default, d]), !i)
41874
41851
  return null;
41875
- const M = (X) => {
41876
- D(X), B(!1);
41877
- }, $ = (X) => {
41878
- j(X), d(X), p == null || p(X);
41879
- }, T = (X) => {
41852
+ const M = (J) => {
41853
+ D(J), B(!1);
41854
+ }, $ = (J) => {
41855
+ j(J), d(J), p == null || p(J);
41856
+ }, T = (J) => {
41880
41857
  var K;
41881
41858
  const W = (K = h == null ? void 0 : h[0]) == null ? void 0 : K.filter;
41882
41859
  (S || W) && g(P(x({}, h == null ? void 0 : h[0]), {
41883
41860
  filter: void 0
41884
- })), v(!S), X.stopPropagation();
41885
- }, z = (X) => {
41886
- X.stopPropagation();
41887
- }, E = (X) => {
41888
- m(X);
41889
- }, L = (H = a.title) != null ? H : (U = i == null ? void 0 : i.uiSchema) == null ? void 0 : U.title;
41861
+ })), v(!S), J.stopPropagation();
41862
+ }, z = (J) => {
41863
+ J.stopPropagation();
41864
+ }, L = (J) => {
41865
+ m(J);
41866
+ }, E = (H = a.title) != null ? H : (U = i == null ? void 0 : i.uiSchema) == null ? void 0 : U.title;
41890
41867
  return t(
41891
41868
  /* @__PURE__ */ jsxs(SortableItem, { className: cls(n, o, "nb-block-item", e.className, "SortableItem"), children: [
41892
41869
  /* @__PURE__ */ jsx(l, {}),
@@ -41903,7 +41880,7 @@ const useStyles$5 = genStyleHook("nb-association-filter-item", (e) => {
41903
41880
  },
41904
41881
  gutter: 5,
41905
41882
  children: [
41906
- /* @__PURE__ */ jsx(Col, { title: c(L), className: "headerCol", children: S ? /* @__PURE__ */ jsx(
41883
+ /* @__PURE__ */ jsx(Col, { title: c(E), className: "headerCol", children: S ? /* @__PURE__ */ jsx(
41907
41884
  Input$3,
41908
41885
  {
41909
41886
  bordered: !1,
@@ -41911,9 +41888,9 @@ const useStyles$5 = genStyleHook("nb-association-filter-item", (e) => {
41911
41888
  placeholder: "Search...",
41912
41889
  className: "search",
41913
41890
  onClick: z,
41914
- onChange: E
41891
+ onChange: L
41915
41892
  }
41916
- ) : c(L) }),
41893
+ ) : c(E) }),
41917
41894
  /* @__PURE__ */ jsx(
41918
41895
  Col,
41919
41896
  {
@@ -41936,7 +41913,7 @@ const useStyles$5 = genStyleHook("nb-association-filter-item", (e) => {
41936
41913
  treeData: u,
41937
41914
  onSelect: $,
41938
41915
  fieldNames: w,
41939
- titleRender: (X) => /* @__PURE__ */ jsx(EllipsisWithTooltip, { ellipsis: !0, children: getLabelFormatValue(R, c(X[I])) }),
41916
+ titleRender: (J) => /* @__PURE__ */ jsx(EllipsisWithTooltip, { ellipsis: !0, children: getLabelFormatValue(R, c(J[I])) }),
41940
41917
  selectedKeys: N,
41941
41918
  blockNode: !0
41942
41919
  }
@@ -42341,14 +42318,14 @@ const DataBlockInitializer = (e) => {
42341
42318
  alwaysRenderMenu: v
42342
42319
  } = e, { insert: y, setVisible: F } = useSchemaInitializer(), I = useCompile(), { getTemplateSchemaByMode: w } = useSchemaTemplateManager(), k = useCallback(
42343
42320
  (z) => V(void 0, null, function* () {
42344
- const { item: E, fromOthersInPopup: L } = z;
42321
+ const { item: L, fromOthersInPopup: E } = z;
42345
42322
  if (f)
42346
42323
  return f(z);
42347
- if (E.template) {
42348
- const q = yield w(E);
42349
- y(t ? t(q, { item: E, fromOthersInPopup: L }) : q);
42324
+ if (L.template) {
42325
+ const q = yield w(L);
42326
+ y(t ? t(q, { item: L, fromOthersInPopup: E }) : q);
42350
42327
  } else
42351
- n && n({ item: E, fromOthersInPopup: L });
42328
+ n && n({ item: L, fromOthersInPopup: E });
42352
42329
  F(!1);
42353
42330
  }),
42354
42331
  [w, y, F, n, f, t]
@@ -42367,14 +42344,14 @@ const DataBlockInitializer = (e) => {
42367
42344
  currentText: b,
42368
42345
  otherText: S
42369
42346
  }), N = useGetSchemaInitializerMenuItems(k), j = useMemo(() => N(D, i), [N, D, i]), [O, B] = useState([]), R = useMenuSearch({ data: j, openKeys: O, hideSearch: u }), M = useMemo(() => {
42370
- let z = R.filter((E) => E.key !== "search" && E.key !== "empty");
42347
+ let z = R.filter((L) => L.key !== "search" && L.key !== "empty");
42371
42348
  return p && z.length === 1 ? z = z[0].children : z = R, [
42372
42349
  {
42373
42350
  key: i,
42374
42351
  label: I(a),
42375
42352
  icon: typeof r == "string" ? /* @__PURE__ */ jsx(antIcons__default, { type: r }) : r,
42376
- onClick: (E) => {
42377
- E.key === i && k(P(x({}, E), { item: e }));
42353
+ onClick: (L) => {
42354
+ L.key === i && k(P(x({}, L), { item: e }));
42378
42355
  },
42379
42356
  children: z
42380
42357
  }
@@ -47069,8 +47046,8 @@ const insertPositionToMethod = {
47069
47046
  }
47070
47047
  }), [h, l]), { moveRoute: I } = useNocoBaseRoutes(), w = useCallback(
47071
47048
  (B) => V(void 0, [B], function* ({ target: j, position: O }) {
47072
- var E;
47073
- const [R] = ((E = j == null ? void 0 : j.split) == null ? void 0 : E.call(j, "||")) || [];
47049
+ var L;
47050
+ const [R] = ((L = j == null ? void 0 : j.split) == null ? void 0 : L.call(j, "||")) || [];
47074
47051
  if (!R)
47075
47052
  return;
47076
47053
  const M = findByUid(c, R), $ = createDesignable({
@@ -48436,8 +48413,8 @@ const AppendsTreeSelect = (e) => {
48436
48413
  break;
48437
48414
  }
48438
48415
  if (!$.isLeaf && $.loadChildren) {
48439
- const E = $.loadChildren($);
48440
- E != null && E.length && (B.push(...E), $ = E.find((L) => L.value === M.slice(0, T + 1).join(".")));
48416
+ const L = $.loadChildren($);
48417
+ L != null && L.length && (B.push(...L), $ = L.find((E) => E.value === M.slice(0, T + 1).join(".")));
48441
48418
  }
48442
48419
  }
48443
48420
  }), h((R) => B.reduce((M, $) => Object.assign(M, { [$.value]: $ }), x({}, R)));
@@ -48926,14 +48903,14 @@ const InternalFileManager = (e) => {
48926
48903
  let M = p(R[v.label]);
48927
48904
  if (($ = y == null ? void 0 : y.uiSchema) != null && $.enum)
48928
48905
  if (Array.isArray(M))
48929
- M = M.map((E, L) => {
48906
+ M = M.map((L, E) => {
48930
48907
  var G, U;
48931
- const q = (U = (G = y.uiSchema.enum).find) == null ? void 0 : U.call(G, (H) => H.value === E);
48932
- return q ? /* @__PURE__ */ jsx(Tag, { color: q.color, style: { marginRight: 3 }, children: (q == null ? void 0 : q.label) || E }, L) : /* @__PURE__ */ jsx(Tag, { children: E }, E);
48908
+ const q = (U = (G = y.uiSchema.enum).find) == null ? void 0 : U.call(G, (H) => H.value === L);
48909
+ return q ? /* @__PURE__ */ jsx(Tag, { color: q.color, style: { marginRight: 3 }, children: (q == null ? void 0 : q.label) || L }, E) : /* @__PURE__ */ jsx(Tag, { children: L }, L);
48933
48910
  }).reverse();
48934
48911
  else {
48935
- const E = (z = (T = y.uiSchema.enum).find) == null ? void 0 : z.call(T, (L) => L.value === M);
48936
- E && (M = /* @__PURE__ */ jsx(Tag, { color: E.color, children: E.label }));
48912
+ const L = (z = (T = y.uiSchema.enum).find) == null ? void 0 : z.call(T, (E) => E.value === M);
48913
+ L && (M = /* @__PURE__ */ jsx(Tag, { color: L.color, children: L.label }));
48937
48914
  }
48938
48915
  return (y == null ? void 0 : y.type) === "date" && (M = dayjs(M).format("YYYY-MM-DD")), n ? n({
48939
48916
  [v.label]: M || EMPTY,
@@ -48969,10 +48946,10 @@ const InternalFileManager = (e) => {
48969
48946
  var $, T, z;
48970
48947
  if (B) {
48971
48948
  d(!0);
48972
- const E = yield k({ parentId: R == null ? void 0 : R.key });
48973
- if (d(!1), c(E), M === (i == null ? void 0 : i.length) - 1 && (($ = R == null ? void 0 : R.value) != null && $.id)) {
48974
- const L = yield k({ parentId: (T = R == null ? void 0 : R.value) == null ? void 0 : T.id }), q = [...i];
48975
- q.splice(M + 1), q[M] = P(x({}, q[M]), { value: R == null ? void 0 : R.value }), q[M + 1] = { key: (z = R == null ? void 0 : R.value) == null ? void 0 : z.id, children: (L == null ? void 0 : L.length) > 0 ? L : null }, a(q), o == null || o(q);
48949
+ const L = yield k({ parentId: R == null ? void 0 : R.key });
48950
+ if (d(!1), c(L), M === (i == null ? void 0 : i.length) - 1 && (($ = R == null ? void 0 : R.value) != null && $.id)) {
48951
+ const E = yield k({ parentId: (T = R == null ? void 0 : R.value) == null ? void 0 : T.id }), q = [...i];
48952
+ q.splice(M + 1), q[M] = P(x({}, q[M]), { value: R == null ? void 0 : R.value }), q[M + 1] = { key: (z = R == null ? void 0 : R.value) == null ? void 0 : z.id, children: (E == null ? void 0 : E.length) > 0 ? E : null }, a(q), o == null || o(q);
48976
48953
  }
48977
48954
  }
48978
48955
  }), j = (B, R) => V(void 0, null, function* () {
@@ -49006,7 +48983,7 @@ const InternalFileManager = (e) => {
49006
48983
  onSearch: (z) => j(z, B),
49007
48984
  fieldNames: v,
49008
48985
  style: { minWidth: 150 },
49009
- onChange: (z, E) => D(z, E, R),
48986
+ onChange: (z, L) => D(z, L, R),
49010
48987
  options: u ? [] : w(l),
49011
48988
  onDropdownVisibleChange: (z) => N(z, B, R),
49012
48989
  notFoundContent: u ? /* @__PURE__ */ jsx(Spin, { size: "small" }) : null
@@ -49252,13 +49229,13 @@ const InternalNesterCardCss = css`
49252
49229
  const R = (f == null ? void 0 : f.targetKey) || "id", M = w.map((T) => T[R]).filter(Boolean);
49253
49230
  return M.length ? { $and: [{ [`${R}.$ne`]: M }] } : {};
49254
49231
  }, j = () => {
49255
- const { setVisible: R } = useActionContext(), { multiple: M, selectedRows: $, onChange: T, options: z, collectionField: E } = useContext(RecordPickerContext);
49232
+ const { setVisible: R } = useActionContext(), { multiple: M, selectedRows: $, onChange: T, options: z, collectionField: L } = useContext(RecordPickerContext);
49256
49233
  return {
49257
49234
  onClick() {
49258
- T(M ? unionBy($, z, (E == null ? void 0 : E.targetKey) || "id") : ($ == null ? void 0 : $[0]) || null), R(!1);
49235
+ T(M ? unionBy($, z, (L == null ? void 0 : L.targetKey) || "id") : ($ == null ? void 0 : $[0]) || null), R(!1);
49259
49236
  },
49260
49237
  style: {
49261
- display: M !== !1 && ["o2m", "m2m", "mbm"].includes(E == null ? void 0 : E.interface) ? "block" : "none"
49238
+ display: M !== !1 && ["o2m", "m2m", "mbm"].includes(L == null ? void 0 : L.interface) ? "block" : "none"
49262
49239
  }
49263
49240
  };
49264
49241
  };
@@ -50386,7 +50363,7 @@ const Table$1 = withDynamicSchemaProps(
50386
50363
  "loading",
50387
50364
  "onClickRow"
50388
50365
  ]), S = useArrayField(b), v = useFieldSchema(), { size: y = "small" } = (v == null ? void 0 : v["x-component-props"]) || {}, F = useCollection(), w = ((ce = v == null ? void 0 : v.parent) == null ? void 0 : ce["x-decorator"]) === "TableSelectorProvider" ? useTableSelectorContext() : useTableBlockContext(), { expandFlag: k, allIncludesChildren: D } = w, N = useMemoizedFn(b.onRowDragEnd || (() => {
50389
- })), j = usePaginationProps$2(n, i), O = useTableColumns$1(b, j), [B, R] = useState(() => k ? D : []), [M, $] = useState(((Ce = S == null ? void 0 : S.data) == null ? void 0 : Ce.selectedRowKeys) || []), [T, z] = useState([]), E = (p == null ? void 0 : p.type) !== "none", L = useRef(/* @__PURE__ */ new Map()), q = useMemo(() => css`
50366
+ })), j = usePaginationProps$2(n, i), O = useTableColumns$1(b, j), [B, R] = useState(() => k ? D : []), [M, $] = useState(((Ce = S == null ? void 0 : S.data) == null ? void 0 : Ce.selectedRowKeys) || []), [T, z] = useState([]), L = (p == null ? void 0 : p.type) !== "none", E = useRef(/* @__PURE__ */ new Map()), q = useMemo(() => css`
50390
50367
  & > td {
50391
50368
  background-color: ${t.controlItemBgActive} !important;
50392
50369
  }
@@ -50405,14 +50382,14 @@ const Table$1 = withDynamicSchemaProps(
50405
50382
  }, [k, D]);
50406
50383
  const H = useCallback((Q) => {
50407
50384
  if (m)
50408
- return X(Q);
50385
+ return J(Q);
50409
50386
  if (Q.key)
50410
50387
  return Q.key;
50411
- if (L.current.has(Q))
50412
- return L.current.get(Q);
50388
+ if (E.current.has(Q))
50389
+ return E.current.get(Q);
50413
50390
  const te = uid();
50414
- return L.current.set(Q, te), te;
50415
- }, []), X = useCallback(
50391
+ return E.current.set(Q, te), te;
50392
+ }, []), J = useCallback(
50416
50393
  (Q) => {
50417
50394
  var te;
50418
50395
  return Array.isArray(m) ? m.map((oe) => {
@@ -50434,7 +50411,7 @@ const Table$1 = withDynamicSchemaProps(
50434
50411
  return /* @__PURE__ */ jsx(DndContext, { onDragEnd: te, children: /* @__PURE__ */ jsx("tbody", x({}, Q)) });
50435
50412
  }, [S, N]);
50436
50413
  K.displayName = "BodyWrapperComponent";
50437
- const J = useMemo(() => ({
50414
+ const X = useMemo(() => ({
50438
50415
  header: {
50439
50416
  wrapper: HeaderWrapperComponent,
50440
50417
  cell: HeaderCellComponent
@@ -50467,14 +50444,14 @@ const Table$1 = withDynamicSchemaProps(
50467
50444
  role: "button",
50468
50445
  "aria-label": `table-index-${oe}`,
50469
50446
  className: cls(Q ? "checked" : null, rowSelectCheckboxWrapperClass, {
50470
- [rowSelectCheckboxWrapperClassHover]: E
50447
+ [rowSelectCheckboxWrapperClassHover]: L
50471
50448
  }),
50472
50449
  children: [
50473
50450
  /* @__PURE__ */ jsxs("div", { className: cls(Q ? "checked" : null, rowSelectCheckboxContentClass), children: [
50474
- l && /* @__PURE__ */ jsx(SortHandle$1, { id: X(te) }),
50451
+ l && /* @__PURE__ */ jsx(SortHandle$1, { id: J(te) }),
50475
50452
  c && /* @__PURE__ */ jsx(TableIndex$2, { index: oe })
50476
50453
  ] }),
50477
- E && /* @__PURE__ */ jsx(
50454
+ L && /* @__PURE__ */ jsx(
50478
50455
  "div",
50479
50456
  {
50480
50457
  className: cls(
@@ -50498,8 +50475,8 @@ const Table$1 = withDynamicSchemaProps(
50498
50475
  c,
50499
50476
  l,
50500
50477
  S,
50501
- X,
50502
- E,
50478
+ J,
50479
+ L,
50503
50480
  ee,
50504
50481
  j
50505
50482
  ]
@@ -50509,12 +50486,12 @@ const Table$1 = withDynamicSchemaProps(
50509
50486
  return l ? React.createElement(
50510
50487
  SortableContext$1,
50511
50488
  {
50512
- items: ((oe = (te = S.value) == null ? void 0 : te.map) == null ? void 0 : oe.call(te, X)) || []
50489
+ items: ((oe = (te = S.value) == null ? void 0 : te.map) == null ? void 0 : oe.call(te, J)) || []
50513
50490
  },
50514
50491
  Q
50515
50492
  ) : React.createElement(React.Fragment, {}, Q);
50516
50493
  },
50517
- [S, l, X]
50494
+ [S, l, J]
50518
50495
  ), { height: re, tableSizeRefCallback: se } = useTableSize(), le = useMemo(() => ({
50519
50496
  x: "max-content"
50520
50497
  }), []), ue = useMemo(() => ({
@@ -50545,7 +50522,7 @@ const Table$1 = withDynamicSchemaProps(
50545
50522
  dataSource: W
50546
50523
  }, b), Z), {
50547
50524
  paginationProps: j,
50548
- components: J,
50525
+ components: X,
50549
50526
  onTableChange: d,
50550
50527
  onRow: U,
50551
50528
  rowClassName: fe,
@@ -50603,20 +50580,20 @@ const Table$1 = withDynamicSchemaProps(
50603
50580
  var M, $, T, z;
50604
50581
  const { openSize: t } = e, { field: n, options: o, fieldSchema: r } = useAssociationFieldContext(), { t: i } = useTranslation(), [a, l] = useState(!1), [c, u] = useState([]), d = useFieldNames$1(e), p = useFieldSchema(), m = useCompile(), h = useLabelUiSchema$1(o, (d == null ? void 0 : d.label) || "label"), g = useCollectionRecord(), f = useCollection(), { allowSelectExistingRecord: C, allowAddnew: b, allowDisassociation: S } = n.componentProps;
50605
50582
  useSubTableSpecialCase({ rootField: n, rootSchema: r });
50606
- const v = (E, L) => {
50607
- if (L !== void 0 && isArr(n.value) && E !== L)
50583
+ const v = (L, E) => {
50584
+ if (E !== void 0 && isArr(n.value) && L !== E)
50608
50585
  return action(() => {
50609
- const q = n.value[E];
50610
- return n.value.splice(E, 1), n.value.splice(L, 0, q), exchangeArrayState(n, {
50611
- fromIndex: E,
50612
- toIndex: L
50586
+ const q = n.value[L];
50587
+ return n.value.splice(L, 1), n.value.splice(E, 0, q), exchangeArrayState(n, {
50588
+ fromIndex: L,
50589
+ toIndex: E
50613
50590
  }), n.onInput(n.value);
50614
50591
  });
50615
50592
  };
50616
50593
  n.move = v;
50617
- const y = useMemo(() => n.value && Object.keys(n.value).length > 0 ? (Array.isArray(n.value) ? n.value : n.value ? [n.value] : []).filter(Boolean).map((L) => {
50618
- const q = L == null ? void 0 : L[d.label];
50619
- return P(x({}, L), {
50594
+ const y = useMemo(() => n.value && Object.keys(n.value).length > 0 ? (Array.isArray(n.value) ? n.value : n.value ? [n.value] : []).filter(Boolean).map((E) => {
50595
+ const q = E == null ? void 0 : E[d.label];
50596
+ return P(x({}, E), {
50620
50597
  [d.label]: getLabelFormatValue$1(m(h), m(q))
50621
50598
  });
50622
50599
  }) : [], [n.value, d == null ? void 0 : d.label]), F = {
@@ -50632,28 +50609,28 @@ const Table$1 = withDynamicSchemaProps(
50632
50609
  setSelectedRows: u,
50633
50610
  collectionField: o
50634
50611
  }, I = () => {
50635
- const { setVisible: E } = useActionContext(), { selectedRows: L, setSelectedRows: q } = useContext(RecordPickerContext);
50612
+ const { setVisible: L } = useActionContext(), { selectedRows: E, setSelectedRows: q } = useContext(RecordPickerContext);
50636
50613
  return {
50637
50614
  onClick() {
50638
50615
  var U;
50639
- Array.isArray(n.value) || (n.value = []), L.forEach((H) => n.value.push(markRecordAsNew(H))), n.onInput(n.value), n.initialValue = n.value, q([]), E(!1);
50616
+ Array.isArray(n.value) || (n.value = []), E.forEach((H) => n.value.push(markRecordAsNew(H))), n.onInput(n.value), n.initialValue = n.value, q([]), L(!1);
50640
50617
  const G = Math.ceil(n.value.length / (((U = n.componentProps) == null ? void 0 : U.pageSize) || 10));
50641
50618
  D(G);
50642
50619
  }
50643
50620
  };
50644
50621
  }, w = () => {
50645
- const E = (o == null ? void 0 : o.targetKey) || "id", L = (n.value || []).map((G) => G == null ? void 0 : G[E]).filter(Boolean);
50646
- return L.length ? { $and: [{ [`${E}.$ne`]: L }] } : {};
50622
+ const L = (o == null ? void 0 : o.targetKey) || "id", E = (n.value || []).map((G) => G == null ? void 0 : G[L]).filter(Boolean);
50623
+ return E.length ? { $and: [{ [`${L}.$ne`]: E }] } : {};
50647
50624
  }, [k, D] = useState(1), [N, j] = useState(((M = n.componentProps) == null ? void 0 : M.pageSize) || 10);
50648
50625
  useEffect(() => {
50649
- var E;
50650
- j((E = n.componentProps) == null ? void 0 : E.pageSize);
50626
+ var L;
50627
+ j((L = n.componentProps) == null ? void 0 : L.pageSize);
50651
50628
  }, [($ = n.componentProps) == null ? void 0 : $.pageSize]);
50652
50629
  const O = useMemo(() => {
50653
- var L;
50654
- const E = Math.ceil(((L = n.value) == null ? void 0 : L.length) / 10);
50630
+ var E;
50631
+ const L = Math.ceil(((E = n.value) == null ? void 0 : E.length) / 10);
50655
50632
  return {
50656
- current: k > E ? E : k,
50633
+ current: k > L ? L : k,
50657
50634
  pageSize: N || 10,
50658
50635
  total: n == null ? void 0 : n.value,
50659
50636
  onChange: (q, G) => {
@@ -50664,13 +50641,13 @@ const Table$1 = withDynamicSchemaProps(
50664
50641
  hideOnSinglePage: !1
50665
50642
  };
50666
50643
  }, [(T = n.value) == null ? void 0 : T.length, N, k]), B = () => {
50667
- const { field: E } = useAssociationFieldContext();
50644
+ const { field: L } = useAssociationFieldContext();
50668
50645
  return {
50669
50646
  run() {
50670
50647
  var q;
50671
- E.value = E.value || [], E.value.push(markRecordAsNew({}));
50672
- const L = Math.ceil(E.value.length / (((q = E.componentProps) == null ? void 0 : q.pageSize) || 10));
50673
- return D(L), E.onInput(E.value);
50648
+ L.value = L.value || [], L.value.push(markRecordAsNew({}));
50649
+ const E = Math.ceil(L.value.length / (((q = L.componentProps) == null ? void 0 : q.pageSize) || 10));
50650
+ return D(E), L.onInput(L.value);
50674
50651
  }
50675
50652
  };
50676
50653
  }, R = () => ({
@@ -50688,7 +50665,7 @@ const Table$1 = withDynamicSchemaProps(
50688
50665
  field: n,
50689
50666
  showIndex: !0,
50690
50667
  dragSort: !1,
50691
- showDel: n.editable && (b !== !1 || C !== !1 || S !== !1) ? (E) => n.editable ? S !== !1 ? !0 : E == null ? void 0 : E.__isNewRecord__ : !1 : !1,
50668
+ showDel: n.editable && (b !== !1 || C !== !1 || S !== !1) ? (L) => n.editable ? S !== !1 ? !0 : L == null ? void 0 : L.__isNewRecord__ : !1 : !1,
50692
50669
  pagination: O,
50693
50670
  rowSelection: { type: "none", hideSelectAll: !0 },
50694
50671
  isSubTable: !0,
@@ -50759,7 +50736,7 @@ const Table$1 = withDynamicSchemaProps(
50759
50736
  onlyRenderProperties: !0,
50760
50737
  basePath: n.address,
50761
50738
  schema: p.parent,
50762
- filterProperties: (E) => E["x-component"] === "AssociationField.Selector"
50739
+ filterProperties: (L) => L["x-component"] === "AssociationField.Selector"
50763
50740
  }
50764
50741
  )
50765
50742
  }
@@ -50858,10 +50835,10 @@ const ReadPretty$7 = observer$1(
50858
50835
  InternalAssociationSelect.displayName = "InternalAssociationSelect";
50859
50836
  const AssociationSelect = InternalAssociationSelect;
50860
50837
  AssociationSelect.Designer = function e() {
50861
- var M, $, T, z, E, L, q, G, U, H, X;
50838
+ var M, $, T, z, L, E, q, G, U, H, J;
50862
50839
  const { getCollectionFields: t, getInterface: n, getCollectionJoinField: o, getCollection: r, isTitleField: i } = useCollectionManager_deprecated(), { getField: a } = useCollection_deprecated(), { form: l } = useFormBlockContext(), c = useField(), u = useFieldSchema(), { t: d } = useTranslation(), p = useFilterByTk(), { dn: m, refresh: h, insertAdjacent: g } = useDesignable(), f = useCompile(), C = useIsShowMultipleSwitch(), { isAllowToSetDefaultValue: b } = useIsAllowToSetDefaultValue(), S = a(u.name) || o(u["x-collection-field"]), v = useFieldComponentOptions(), y = c.address.segments.includes("__form_grid"), F = n(S == null ? void 0 : S.interface), I = (M = F == null ? void 0 : F.validateSchema) == null ? void 0 : M.call(F, u), w = ($ = S == null ? void 0 : S.uiSchema) == null ? void 0 : $.title, k = S != null && S.target ? t(S == null ? void 0 : S.target) : [];
50863
50840
  c.title === w || c.title;
50864
- const D = useSortFields(S == null ? void 0 : S.target), N = ((E = (z = (T = c.componentProps) == null ? void 0 : T.service) == null ? void 0 : z.params) == null ? void 0 : E.sort) || [];
50841
+ const D = useSortFields(S == null ? void 0 : S.target), N = ((L = (z = (T = c.componentProps) == null ? void 0 : T.service) == null ? void 0 : z.params) == null ? void 0 : L.sort) || [];
50865
50842
  useEffect(() => {
50866
50843
  c.readPretty !== u["x-read-pretty"] && (c.readPretty = !!u["x-read-pretty"]);
50867
50844
  }, [u["x-read-pretty"]]);
@@ -50973,9 +50950,9 @@ AssociationSelect.Designer = function e() {
50973
50950
  },
50974
50951
  onSubmit: (W) => {
50975
50952
  var ne;
50976
- const K = [], J = (re) => re != null && !Number.isNaN(re);
50953
+ const K = [], X = (re) => re != null && !Number.isNaN(re);
50977
50954
  for (const re of W.rules)
50978
- K.push(_.pickBy(re, J));
50955
+ K.push(_.pickBy(re, X));
50979
50956
  const ee = {
50980
50957
  "x-uid": u["x-uid"]
50981
50958
  };
@@ -51032,7 +51009,7 @@ AssociationSelect.Designer = function e() {
51032
51009
  options: v,
51033
51010
  value: u["x-component"],
51034
51011
  onChange: (W) => {
51035
- var J, ee;
51012
+ var X, ee;
51036
51013
  const K = {
51037
51014
  name: S == null ? void 0 : S.name,
51038
51015
  type: "void",
@@ -51047,7 +51024,7 @@ AssociationSelect.Designer = function e() {
51047
51024
  "x-validator": u["x-validator"],
51048
51025
  "x-collection-field": u["x-collection-field"],
51049
51026
  "x-decorator-props": u["x-decorator-props"],
51050
- "x-component-props": x(x({}, (J = S == null ? void 0 : S.uiSchema) == null ? void 0 : J["x-component-props"]), u["x-component-props"])
51027
+ "x-component-props": x(x({}, (X = S == null ? void 0 : S.uiSchema) == null ? void 0 : X["x-component-props"]), u["x-component-props"])
51051
51028
  };
51052
51029
  (ee = F == null ? void 0 : F.schemaInitialize) == null || ee.call(F, K, {
51053
51030
  field: S,
@@ -51072,7 +51049,7 @@ AssociationSelect.Designer = function e() {
51072
51049
  SchemaSettingsSwitchItem,
51073
51050
  {
51074
51051
  title: d("Allow multiple"),
51075
- checked: ((L = u["x-component-props"]) == null ? void 0 : L.multiple) === void 0 ? !0 : u["x-component-props"].multiple,
51052
+ checked: ((E = u["x-component-props"]) == null ? void 0 : E.multiple) === void 0 ? !0 : u["x-component-props"].multiple,
51076
51053
  onChange: (W) => {
51077
51054
  const K = {
51078
51055
  "x-uid": u["x-uid"]
@@ -51175,7 +51152,7 @@ AssociationSelect.Designer = function e() {
51175
51152
  }
51176
51153
  },
51177
51154
  onSubmit: ({ sort: W }) => {
51178
- const K = W.map((J) => J.direction === "desc" ? `-${J.field}` : J.field);
51155
+ const K = W.map((X) => X.direction === "desc" ? `-${X.field}` : X.field);
51179
51156
  _.set(c.componentProps, "service.params.sort", K), u["x-component-props"] = c.componentProps, m.emit("patch", {
51180
51157
  schema: {
51181
51158
  "x-uid": u["x-uid"],
@@ -51225,15 +51202,15 @@ AssociationSelect.Designer = function e() {
51225
51202
  {
51226
51203
  title: d("Title field"),
51227
51204
  options: O,
51228
- value: (X = (H = c == null ? void 0 : c.componentProps) == null ? void 0 : H.fieldNames) == null ? void 0 : X.label,
51205
+ value: (J = (H = c == null ? void 0 : c.componentProps) == null ? void 0 : H.fieldNames) == null ? void 0 : J.label,
51229
51206
  onChange: (W) => {
51230
51207
  var ee, Z;
51231
51208
  const K = {
51232
51209
  "x-uid": u["x-uid"]
51233
- }, J = P(x(x({}, (Z = (ee = S == null ? void 0 : S.uiSchema) == null ? void 0 : ee["x-component-props"]) == null ? void 0 : Z.fieldNames), c.componentProps.fieldNames), {
51210
+ }, X = P(x(x({}, (Z = (ee = S == null ? void 0 : S.uiSchema) == null ? void 0 : ee["x-component-props"]) == null ? void 0 : Z.fieldNames), c.componentProps.fieldNames), {
51234
51211
  label: W
51235
51212
  });
51236
- c.componentProps.fieldNames = J, u["x-component-props"] = u["x-component-props"] || {}, u["x-component-props"].fieldNames = J, K["x-component-props"] = u["x-component-props"], m.emit("patch", {
51213
+ c.componentProps.fieldNames = X, u["x-component-props"] = u["x-component-props"] || {}, u["x-component-props"].fieldNames = X, K["x-component-props"] = u["x-component-props"], m.emit("patch", {
51237
51214
  schema: K
51238
51215
  }), m.refresh();
51239
51216
  }
@@ -51364,7 +51341,7 @@ AssociationSelect.FilterDesigner = function e() {
51364
51341
  }
51365
51342
  },
51366
51343
  onSubmit: ($) => {
51367
- var L;
51344
+ var E;
51368
51345
  const T = [];
51369
51346
  for (const q of $.rules)
51370
51347
  T.push(_.pickBy(q, _.identity));
@@ -51374,8 +51351,8 @@ AssociationSelect.FilterDesigner = function e() {
51374
51351
  if (["percent"].includes(m == null ? void 0 : m.interface))
51375
51352
  for (const q of T)
51376
51353
  (q.maxValue || q.minValue) && (q.percentMode = !0), q.percentFormat && (q.percentFormats = !0);
51377
- const E = _.concat([], ((L = m == null ? void 0 : m.uiSchema) == null ? void 0 : L["x-validator"]) || [], T);
51378
- a.validator = E, l["x-validator"] = T, z["x-validator"] = T, u.emit("patch", {
51354
+ const L = _.concat([], ((E = m == null ? void 0 : m.uiSchema) == null ? void 0 : E["x-validator"]) || [], T);
51355
+ a.validator = L, l["x-validator"] = T, z["x-validator"] = T, u.emit("patch", {
51379
51356
  schema: z
51380
51357
  }), d();
51381
51358
  }
@@ -51516,10 +51493,10 @@ AssociationSelect.FilterDesigner = function e() {
51516
51493
  options: y,
51517
51494
  value: (M = (R = a == null ? void 0 : a.componentProps) == null ? void 0 : R.fieldNames) == null ? void 0 : M.label,
51518
51495
  onChange: ($) => {
51519
- var E, L;
51496
+ var L, E;
51520
51497
  const T = {
51521
51498
  "x-uid": l["x-uid"]
51522
- }, z = P(x(x({}, (L = (E = m == null ? void 0 : m.uiSchema) == null ? void 0 : E["x-component-props"]) == null ? void 0 : L.fieldNames), a.componentProps.fieldNames), {
51499
+ }, z = P(x(x({}, (E = (L = m == null ? void 0 : m.uiSchema) == null ? void 0 : L["x-component-props"]) == null ? void 0 : E.fieldNames), a.componentProps.fieldNames), {
51523
51500
  label: $
51524
51501
  });
51525
51502
  a.componentProps.fieldNames = z, l["x-component-props"] = l["x-component-props"] || {}, l["x-component-props"].fieldNames = z, T["x-component-props"] = l["x-component-props"], u.emit("patch", {
@@ -54102,7 +54079,7 @@ const useStyles = genStyleHook("nb-rich-text", (e) => {
54102
54079
  formats: i,
54103
54080
  value: d,
54104
54081
  onChange: (p) => {
54105
- c(p === "<p><br></p>" ? void 0 : p);
54082
+ c(p === "<p><br></p>" ? "" : p);
54106
54083
  },
54107
54084
  readOnly: u
54108
54085
  }
@@ -54825,17 +54802,17 @@ const TableActionColumnDesigner = (e) => {
54825
54802
  );
54826
54803
  }, TableBlockDesigner = () => {
54827
54804
  var k, D, N, j, O, B, R, M, $, T, z;
54828
- const { name: e, title: t } = useCollection_deprecated(), { getCollectionField: n, getCollection: o } = useCollectionManager_deprecated(), r = useField(), i = useFieldSchema(), { form: a } = useFormBlockContext(), l = useSortFields(e), { service: c } = useTableBlockContext(), { t: u } = useTranslation(), { dn: d } = useDesignable(), { componentNamePrefix: p } = useBlockTemplateContext(), m = ((D = (k = i == null ? void 0 : i["x-decorator-props"]) == null ? void 0 : k.params) == null ? void 0 : D.sort) || [], h = ((N = i == null ? void 0 : i["x-decorator-props"]) == null ? void 0 : N.resource) || ((j = i == null ? void 0 : i["x-decorator-props"]) == null ? void 0 : j.association), g = !((O = i == null ? void 0 : i["x-decorator-props"]) != null && O.disableTemplate), f = m == null ? void 0 : m.map((E) => E != null && E.startsWith("-") ? {
54829
- field: E.substring(1),
54805
+ const { name: e, title: t } = useCollection_deprecated(), { getCollectionField: n, getCollection: o } = useCollectionManager_deprecated(), r = useField(), i = useFieldSchema(), { form: a } = useFormBlockContext(), l = useSortFields(e), { service: c } = useTableBlockContext(), { t: u } = useTranslation(), { dn: d } = useDesignable(), { componentNamePrefix: p } = useBlockTemplateContext(), m = ((D = (k = i == null ? void 0 : i["x-decorator-props"]) == null ? void 0 : k.params) == null ? void 0 : D.sort) || [], h = ((N = i == null ? void 0 : i["x-decorator-props"]) == null ? void 0 : N.resource) || ((j = i == null ? void 0 : i["x-decorator-props"]) == null ? void 0 : j.association), g = !((O = i == null ? void 0 : i["x-decorator-props"]) != null && O.disableTemplate), f = m == null ? void 0 : m.map((L) => L != null && L.startsWith("-") ? {
54806
+ field: L.substring(1),
54830
54807
  direction: "desc"
54831
54808
  } : {
54832
- field: E,
54809
+ field: L,
54833
54810
  direction: "asc"
54834
54811
  }), C = useSchemaTemplate(), b = useCollection_deprecated(), { dragSort: S, resource: v } = r.decoratorProps, y = v && n(v), F = v != null && v.includes(".") ? (B = o(y == null ? void 0 : y.target)) == null ? void 0 : B.tree : !!(b != null && b.tree), I = useCallback(
54835
- ({ filter: E }) => {
54836
- E = removeNullCondition(E);
54837
- const L = r.decoratorProps.params || {};
54838
- L.filter = E, r.decoratorProps.params = L, i["x-decorator-props"].params = L, d.emit("patch", {
54812
+ ({ filter: L }) => {
54813
+ L = removeNullCondition(L);
54814
+ const E = r.decoratorProps.params || {};
54815
+ E.filter = L, r.decoratorProps.params = E, i["x-decorator-props"].params = E, d.emit("patch", {
54839
54816
  schema: {
54840
54817
  "x-uid": i["x-uid"],
54841
54818
  "x-decorator-props": i["x-decorator-props"]
@@ -54853,15 +54830,15 @@ const TableActionColumnDesigner = (e) => {
54853
54830
  title: u("Tree table"),
54854
54831
  defaultChecked: !0,
54855
54832
  checked: F ? r.decoratorProps.treeTable : !1,
54856
- onChange: (E) => {
54833
+ onChange: (L) => {
54857
54834
  var q;
54858
- r.decoratorProps.treeTable = E, i["x-decorator-props"].treeTable = E;
54859
- const L = P(x({}, (q = c.params) == null ? void 0 : q[0]), {
54860
- tree: E ? !0 : null
54835
+ r.decoratorProps.treeTable = L, i["x-decorator-props"].treeTable = L;
54836
+ const E = P(x({}, (q = c.params) == null ? void 0 : q[0]), {
54837
+ tree: L ? !0 : null
54861
54838
  });
54862
54839
  d.emit("patch", {
54863
54840
  schema: i
54864
- }), d.refresh(), c.run(L);
54841
+ }), d.refresh(), c.run(E);
54865
54842
  }
54866
54843
  }
54867
54844
  ),
@@ -54870,13 +54847,13 @@ const TableActionColumnDesigner = (e) => {
54870
54847
  {
54871
54848
  title: u("Enable drag and drop sorting"),
54872
54849
  checked: r.decoratorProps.dragSort,
54873
- onChange: (E) => V(void 0, null, function* () {
54874
- E && y && (yield w.resource("collections.fields", y.collectionName).update({
54850
+ onChange: (L) => V(void 0, null, function* () {
54851
+ L && y && (yield w.resource("collections.fields", y.collectionName).update({
54875
54852
  filterByTk: y.name,
54876
54853
  values: {
54877
54854
  sortable: !0
54878
54855
  }
54879
- })), r.decoratorProps.dragSort = E, i["x-decorator-props"].dragSort = E, d.emit("patch", {
54856
+ })), r.decoratorProps.dragSort = L, i["x-decorator-props"].dragSort = L, d.emit("patch", {
54880
54857
  schema: {
54881
54858
  "x-uid": i["x-uid"],
54882
54859
  "x-decorator-props": i["x-decorator-props"]
@@ -54970,15 +54947,15 @@ const TableActionColumnDesigner = (e) => {
54970
54947
  }
54971
54948
  }
54972
54949
  },
54973
- onSubmit: ({ sort: E }) => {
54950
+ onSubmit: ({ sort: L }) => {
54974
54951
  var G;
54975
- const L = E.map((U) => U.direction === "desc" ? `-${U.field}` : U.field), q = r.decoratorProps.params || {};
54976
- q.sort = L, r.decoratorProps.params = q, i["x-decorator-props"].params = q, d.emit("patch", {
54952
+ const E = L.map((U) => U.direction === "desc" ? `-${U.field}` : U.field), q = r.decoratorProps.params || {};
54953
+ q.sort = E, r.decoratorProps.params = q, i["x-decorator-props"].params = q, d.emit("patch", {
54977
54954
  schema: {
54978
54955
  "x-uid": i["x-uid"],
54979
54956
  "x-decorator-props": i["x-decorator-props"]
54980
54957
  }
54981
- }), c.run(P(x({}, (G = c.params) == null ? void 0 : G[0]), { sort: L }));
54958
+ }), c.run(P(x({}, (G = c.params) == null ? void 0 : G[0]), { sort: E }));
54982
54959
  }
54983
54960
  }
54984
54961
  ),
@@ -54996,10 +54973,10 @@ const TableActionColumnDesigner = (e) => {
54996
54973
  { label: "100", value: 100 },
54997
54974
  { label: "200", value: 200 }
54998
54975
  ],
54999
- onChange: (E) => {
54976
+ onChange: (L) => {
55000
54977
  var q;
55001
- const L = r.decoratorProps.params || {};
55002
- L.pageSize = E, r.decoratorProps.params = L, i["x-decorator-props"].params = L, c.run(P(x({}, (q = c.params) == null ? void 0 : q[0]), { pageSize: E, page: 1 })), d.emit("patch", {
54978
+ const E = r.decoratorProps.params || {};
54979
+ E.pageSize = L, r.decoratorProps.params = E, i["x-decorator-props"].params = E, c.run(P(x({}, (q = c.params) == null ? void 0 : q[0]), { pageSize: L, page: 1 })), d.emit("patch", {
55003
54980
  schema: {
55004
54981
  "x-uid": i["x-uid"],
55005
54982
  "x-decorator-props": i["x-decorator-props"]
@@ -55018,15 +54995,15 @@ const TableActionColumnDesigner = (e) => {
55018
54995
  { label: u("Middle"), value: "middle" },
55019
54996
  { label: u("Small"), value: "small" }
55020
54997
  ],
55021
- onChange: (E) => {
55022
- const L = i.reduceProperties((q, G) => {
54998
+ onChange: (L) => {
54999
+ const E = i.reduceProperties((q, G) => {
55023
55000
  if (G["x-component"] === "TableV2")
55024
55001
  return G;
55025
55002
  }, null);
55026
- L["x-component-props"] = L["x-component-props"] || {}, L["x-component-props"].size = E, d.emit("patch", {
55003
+ E["x-component-props"] = E["x-component-props"] || {}, E["x-component-props"].size = L, d.emit("patch", {
55027
55004
  schema: {
55028
- "x-uid": L["x-uid"],
55029
- "x-decorator-props": L["x-component-props"]
55005
+ "x-uid": E["x-uid"],
55006
+ "x-decorator-props": E["x-component-props"]
55030
55007
  }
55031
55008
  });
55032
55009
  }
@@ -56909,21 +56886,21 @@ const useRecordIsOwn = () => {
56909
56886
  })), []), k = useCallback(() => {
56910
56887
  const { availableFieldInterfaces: R } = u(o.template) || {}, { exclude: M, include: $ } = R || {}, T = [];
56911
56888
  return F.forEach((z) => {
56912
- var E;
56889
+ var L;
56913
56890
  if (z.key === "systemInfo")
56914
56891
  T.push(P(x({}, z), {
56915
- children: z.children.filter((L) => L.hidden ? !1 : L.value === "tableoid" ? $ != null && $.length ? $.includes(L.value) : (l == null ? void 0 : l.dialect) === "postgres" : typeof o[L.value] == "boolean" ? o[L.value] : !0)
56892
+ children: z.children.filter((E) => E.hidden ? !1 : E.value === "tableoid" ? $ != null && $.length ? $.includes(E.value) : (l == null ? void 0 : l.dialect) === "postgres" : typeof o[E.value] == "boolean" ? o[E.value] : !0)
56916
56893
  }));
56917
56894
  else {
56918
- let L = [];
56895
+ let E = [];
56919
56896
  $ != null && $.length ? $.forEach((q) => {
56920
56897
  var U;
56921
56898
  const G = (U = z == null ? void 0 : z.children) == null ? void 0 : U.find((H) => [q, q.interface].includes(H.name));
56922
- G && L.push(P(x({}, G), {
56899
+ G && E.push(P(x({}, G), {
56923
56900
  targetScope: q == null ? void 0 : q.targetScope
56924
56901
  }));
56925
- }) : M != null && M.length ? L = (E = z == null ? void 0 : z.children) == null ? void 0 : E.filter((q) => !M.includes(q.name)) : L = z == null ? void 0 : z.children, L != null && L.length && T.push(P(x({}, z), {
56926
- children: L
56902
+ }) : M != null && M.length ? E = (L = z == null ? void 0 : z.children) == null ? void 0 : L.filter((q) => !M.includes(q.name)) : E = z == null ? void 0 : z.children, E != null && E.length && T.push(P(x({}, z), {
56903
+ children: E
56927
56904
  }));
56928
56905
  }
56929
56906
  }), T;
@@ -57214,7 +57191,7 @@ const useRecordIsOwn = () => {
57214
57191
  run() {
57215
57192
  return V(this, null, function* () {
57216
57193
  yield B.submit();
57217
- const E = cloneDeep(B.values), L = omit(E, [
57194
+ const L = cloneDeep(B.values), E = omit(L, [
57218
57195
  "key",
57219
57196
  "uiSchemaUid",
57220
57197
  "collectionName",
@@ -57227,7 +57204,7 @@ const useRecordIsOwn = () => {
57227
57204
  // 'reverseField.uiSchemaUid',
57228
57205
  ]);
57229
57206
  yield T.create({
57230
- values: L
57207
+ values: E
57231
57208
  }), yield B.reset(), yield M(), yield R(), $.setVisible(!1);
57232
57209
  });
57233
57210
  }
@@ -57721,7 +57698,7 @@ const getSchema$4 = (e, t, n) => {
57721
57698
  useEffect(() => {
57722
57699
  const R = [];
57723
57700
  g.forEach((M) => {
57724
- var L;
57701
+ var E;
57725
57702
  const $ = y(M), z = w(M).map((q) => {
57726
57703
  const G = k(q, M);
57727
57704
  return {
@@ -57736,14 +57713,14 @@ const getSchema$4 = (e, t, n) => {
57736
57713
  };
57737
57714
  })
57738
57715
  };
57739
- }), E = (L = $.fields.filter((q) => !["obo", "oho", "m2m", "o2m"].includes(q == null ? void 0 : q.interface))) == null ? void 0 : L.map((q) => {
57716
+ }), L = (E = $.fields.filter((q) => !["obo", "oho", "m2m", "o2m"].includes(q == null ? void 0 : q.interface))) == null ? void 0 : E.map((q) => {
57740
57717
  var G;
57741
57718
  return { value: q.name, key: q.name, label: l(((G = q.uiSchema) == null ? void 0 : G.title) || q.name) };
57742
57719
  }).concat(z);
57743
57720
  R.push({
57744
57721
  value: M,
57745
57722
  label: l($.title || $.name),
57746
- children: E
57723
+ children: L
57747
57724
  });
57748
57725
  }), h(R);
57749
57726
  }, [g, t]), useEffect(() => {
@@ -57752,30 +57729,30 @@ const getSchema$4 = (e, t, n) => {
57752
57729
  if (R) {
57753
57730
  u(!1), p([]);
57754
57731
  const T = ($ = Object.values((M = R == null ? void 0 : R.data) == null ? void 0 : M.fields)) == null ? void 0 : $.map((z) => {
57755
- var E, L;
57732
+ var L, E;
57756
57733
  if (z.source) {
57757
57734
  const q = (i == null ? void 0 : i.data.find((G) => G.name === z.name)) || z;
57758
57735
  return P(x({}, z), {
57759
- uiSchema: P(x({}, omit(q.uiSchema, "rawTitle")), { title: ((E = q.uiSchema) == null ? void 0 : E.title) || q.name })
57736
+ uiSchema: P(x({}, omit(q.uiSchema, "rawTitle")), { title: ((L = q.uiSchema) == null ? void 0 : L.title) || q.name })
57760
57737
  });
57761
57738
  } else {
57762
57739
  const q = (i == null ? void 0 : i.data.find((G) => G.name === z.name)) || z;
57763
57740
  return P(x({}, q), {
57764
- uiSchema: P(x({}, omit(q.uiSchema, "rawTitle")), { title: ((L = q.uiSchema) == null ? void 0 : L.title) || q.name })
57741
+ uiSchema: P(x({}, omit(q.uiSchema, "rawTitle")), { title: ((E = q.uiSchema) == null ? void 0 : E.title) || q.name })
57765
57742
  });
57766
57743
  }
57767
57744
  });
57768
57745
  S.value = T, setTimeout(() => {
57769
- var z, E, L;
57770
- p(T), v.setValuesIn("sources", (z = R.data) == null ? void 0 : z.sources), f((E = R.data) == null ? void 0 : E.sources), b((L = R == null ? void 0 : R.data) == null ? void 0 : L.unsupportedFields);
57746
+ var z, L, E;
57747
+ p(T), v.setValuesIn("sources", (z = R.data) == null ? void 0 : z.sources), f((L = R.data) == null ? void 0 : L.sources), b((E = R == null ? void 0 : R.data) == null ? void 0 : E.unsupportedFields);
57771
57748
  });
57772
57749
  }
57773
57750
  }).catch);
57774
57751
  }, [t]);
57775
57752
  const O = (R, M) => {
57776
57753
  d.splice(M, 1, R), p(d), S.value = d.map(($) => {
57777
- var z, E, L;
57778
- const T = typeof $.source == "string" ? $.source : (L = (E = (z = $.source) == null ? void 0 : z.filter) == null ? void 0 : E.call(z, Boolean)) == null ? void 0 : L.join(".");
57754
+ var z, L, E;
57755
+ const T = typeof $.source == "string" ? $.source : (E = (L = (z = $.source) == null ? void 0 : z.filter) == null ? void 0 : L.call(z, Boolean)) == null ? void 0 : E.join(".");
57779
57756
  return P(x({}, $), {
57780
57757
  source: T
57781
57758
  });
@@ -57800,9 +57777,9 @@ const getSchema$4 = (e, t, n) => {
57800
57777
  style: { width: "100%" },
57801
57778
  options: D(m),
57802
57779
  onChange: (T, z) => {
57803
- var L;
57804
- const E = (L = I(T == null ? void 0 : T[0])) == null ? void 0 : L.find((q) => q.name === last(T));
57805
- O(P(x({}, M), { source: T, uiSchema: E == null ? void 0 : E.uiSchema }), $);
57780
+ var E;
57781
+ const L = (E = I(T == null ? void 0 : T[0])) == null ? void 0 : E.find((q) => q.name === last(T));
57782
+ O(P(x({}, M), { source: T, uiSchema: L == null ? void 0 : L.uiSchema }), $);
57806
57783
  },
57807
57784
  placeholder: l("Select field source")
57808
57785
  }
@@ -57840,12 +57817,12 @@ const getSchema$4 = (e, t, n) => {
57840
57817
  defaultValue: R,
57841
57818
  style: { width: "100%" },
57842
57819
  popupMatchSelectWidth: !1,
57843
- onChange: (E) => {
57820
+ onChange: (L) => {
57844
57821
  var q;
57845
- const L = F(E);
57846
- O(P(x({}, T), { interface: E, uiSchema: (q = L == null ? void 0 : L.default) == null ? void 0 : q.uiSchema }), $);
57822
+ const E = F(L);
57823
+ O(P(x({}, T), { interface: L, uiSchema: (q = E == null ? void 0 : E.default) == null ? void 0 : q.uiSchema }), $);
57847
57824
  },
57848
- children: z.map((E) => /* @__PURE__ */ jsx(Select$1.OptGroup, { label: D(E.label), children: E.children.map((L) => /* @__PURE__ */ jsx(Select$1.Option, { value: L.name, children: D(L.label) }, L.value)) }, E.key))
57825
+ children: z.map((L) => /* @__PURE__ */ jsx(Select$1.OptGroup, { label: D(L.label), children: L.children.map((E) => /* @__PURE__ */ jsx(Select$1.Option, { value: E.name, children: D(E.label) }, E.value)) }, L.key))
57849
57826
  }
57850
57827
  );
57851
57828
  }
@@ -57862,8 +57839,8 @@ const getSchema$4 = (e, t, n) => {
57862
57839
  Input$3,
57863
57840
  {
57864
57841
  defaultValue: ((z = T == null ? void 0 : T.uiSchema) == null ? void 0 : z.title) || R,
57865
- onChange: (E) => O(
57866
- P(x({}, T), { uiSchema: P(x({}, omit(T == null ? void 0 : T.uiSchema, "rawTitle")), { title: E.target.value }) }),
57842
+ onChange: (L) => O(
57843
+ P(x({}, T), { uiSchema: P(x({}, omit(T == null ? void 0 : T.uiSchema, "rawTitle")), { title: L.target.value }) }),
57867
57844
  $
57868
57845
  )
57869
57846
  }
@@ -57925,7 +57902,7 @@ const mapFields = ["lineString", "point", "circle", "polygon"], PreviewTable$1 =
57925
57902
  key: F.name,
57926
57903
  width: 200,
57927
57904
  render: ($, T, z) => {
57928
- const E = T[F.name], L = {
57905
+ const L = T[F.name], E = {
57929
57906
  type: "object",
57930
57907
  properties: {
57931
57908
  [F.name]: {
@@ -57933,11 +57910,11 @@ const mapFields = ["lineString", "point", "circle", "polygon"], PreviewTable$1 =
57933
57910
  "x-component": D && I ? "CollectionField" : "Input",
57934
57911
  "x-read-pretty": !0,
57935
57912
  "x-collection-field": I == null ? void 0 : I.join("."),
57936
- default: F.interface === "json" ? JSON.stringify(E) : E
57913
+ default: F.interface === "json" ? JSON.stringify(L) : L
57937
57914
  }
57938
57915
  }
57939
57916
  };
57940
- return /* @__PURE__ */ jsx(EllipsisWithTooltip, { ellipsis: !0, children: /* @__PURE__ */ jsx(RecursionField, { schema: L, name: z, onlyRenderProperties: !0 }) });
57917
+ return /* @__PURE__ */ jsx(EllipsisWithTooltip, { ellipsis: !0, children: /* @__PURE__ */ jsx(RecursionField, { schema: E, name: z, onlyRenderProperties: !0 }) });
57941
57918
  }
57942
57919
  };
57943
57920
  });
@@ -58266,7 +58243,7 @@ const AsyncDataProvider = (e) => {
58266
58243
  style: { width: "100%" },
58267
58244
  popupMatchSelectWidth: !1,
58268
58245
  onChange: (B) => {
58269
- var M, $, T, z, E;
58246
+ var M, $, T, z, L;
58270
58247
  const R = p(B);
58271
58248
  S(
58272
58249
  P(x({}, j), {
@@ -58274,7 +58251,7 @@ const AsyncDataProvider = (e) => {
58274
58251
  uiSchema: P(x({}, (M = R == null ? void 0 : R.default) == null ? void 0 : M.uiSchema), {
58275
58252
  title: ((T = ($ = R == null ? void 0 : R.default) == null ? void 0 : $.uiSchema) == null ? void 0 : T.title) || ((z = j.uiSchema) == null ? void 0 : z.title)
58276
58253
  }),
58277
- type: (E = R == null ? void 0 : R.default) == null ? void 0 : E.type
58254
+ type: (L = R == null ? void 0 : R.default) == null ? void 0 : L.type
58278
58255
  }),
58279
58256
  N
58280
58257
  );
@@ -65187,7 +65164,6 @@ export {
65187
65164
  defaultTheme,
65188
65165
  ds,
65189
65166
  editFormBlockSettings,
65190
- encodeFileURL,
65191
65167
  fetchTemplateData,
65192
65168
  fieldComponentSettingsItem,
65193
65169
  fieldSettingsFormItem,