@nocobase/client 1.4.11 → 1.4.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/es/index.mjs +460 -467
  2. package/lib/index.js +56 -56
  3. package/package.json +5 -5
package/es/index.mjs CHANGED
@@ -21,7 +21,7 @@ var K = (e, t) => {
21
21
  return o;
22
22
  };
23
23
  var P = (e, t, o) => (be(e, typeof t != "symbol" ? t + "" : t, o), o);
24
- var V = (e, t, o) => new Promise((n, r) => {
24
+ var E = (e, t, o) => new Promise((n, r) => {
25
25
  var i = (c) => {
26
26
  try {
27
27
  l(o.next(c));
@@ -3927,7 +3927,7 @@ class APIClient extends APIClient$1 {
3927
3927
  }
3928
3928
  return o;
3929
3929
  },
3930
- (o) => V(this, null, function* () {
3930
+ (o) => E(this, null, function* () {
3931
3931
  var r, i, a, l, c, u, d, p, m;
3932
3932
  if (this.silence) {
3933
3933
  console.error(o);
@@ -4002,13 +4002,13 @@ function assign(e, t, o = {}) {
4002
4002
  function useRequest(e, t = {}) {
4003
4003
  const [o, n] = useSetState({}), r = useAPIClient();
4004
4004
  let i;
4005
- typeof e == "function" ? i = e : e ? i = (...u) => V(this, [...u], function* (c = {}) {
4005
+ typeof e == "function" ? i = e : e ? i = (...u) => E(this, [...u], function* (c = {}) {
4006
4006
  const { resource: d, url: p } = e;
4007
4007
  let m = cloneDeep(e);
4008
4008
  d || p ? (m.params = m.params || {}, assign(m.params, c)) : m = merge(m, c);
4009
4009
  const h = yield r.request(m);
4010
4010
  return h == null ? void 0 : h.data;
4011
- }) : i = () => V(this, null, function* () {
4011
+ }) : i = () => E(this, null, function* () {
4012
4012
  });
4013
4013
  const a = F(x({}, t), {
4014
4014
  onSuccess(...c) {
@@ -4246,15 +4246,15 @@ class Plugin {
4246
4246
  return this.app.dataSourceManager;
4247
4247
  }
4248
4248
  afterAdd() {
4249
- return V(this, null, function* () {
4249
+ return E(this, null, function* () {
4250
4250
  });
4251
4251
  }
4252
4252
  beforeLoad() {
4253
- return V(this, null, function* () {
4253
+ return E(this, null, function* () {
4254
4254
  });
4255
4255
  }
4256
4256
  load() {
4257
- return V(this, null, function* () {
4257
+ return E(this, null, function* () {
4258
4258
  });
4259
4259
  }
4260
4260
  t(t, o = {}) {
@@ -4295,7 +4295,7 @@ function addAppVersion(e, t) {
4295
4295
  addAppVersion((n = e.properties) == null ? void 0 : n[o], t);
4296
4296
  }), e;
4297
4297
  }
4298
- const name = "@nocobase/client", version$1 = "1.4.11", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
4298
+ const name = "@nocobase/client", version$1 = "1.4.13", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
4299
4299
  "@ahooksjs/use-url-state": "3.5.1",
4300
4300
  "@ant-design/cssinjs": "^1.11.1",
4301
4301
  "@ant-design/icons": "^5.1.4",
@@ -4317,9 +4317,9 @@ const name = "@nocobase/client", version$1 = "1.4.11", license = "AGPL-3.0", mai
4317
4317
  "@formily/reactive-react": "^2.2.27",
4318
4318
  "@formily/shared": "^2.2.27",
4319
4319
  "@formily/validator": "^2.2.27",
4320
- "@nocobase/evaluators": "1.4.11",
4321
- "@nocobase/sdk": "1.4.11",
4322
- "@nocobase/utils": "1.4.11",
4320
+ "@nocobase/evaluators": "1.4.13",
4321
+ "@nocobase/sdk": "1.4.13",
4322
+ "@nocobase/utils": "1.4.13",
4323
4323
  ahooks: "^3.7.2",
4324
4324
  antd: "5.12.8",
4325
4325
  "antd-style": "3.7.1",
@@ -4442,7 +4442,7 @@ class Designable {
4442
4442
  });
4443
4443
  }), r["x-uid"] && a.length ? a : [];
4444
4444
  };
4445
- this.on("insertAdjacent", (p) => V(this, [p], function* ({ onSuccess: r, current: i, position: a, schema: l, wrap: c, wrapped: u, removed: d }) {
4445
+ this.on("insertAdjacent", (p) => E(this, [p], function* ({ onSuccess: r, current: i, position: a, schema: l, wrap: c, wrapped: u, removed: d }) {
4446
4446
  var g;
4447
4447
  let m = [];
4448
4448
  if ((u == null ? void 0 : u["x-component"]) === "Grid.Col" && (m = m.concat(n(u.parent))), (d == null ? void 0 : d["x-component"]) === "Grid.Col" && (m = m.concat(n(d.parent))), this.refresh(), !i["x-uid"])
@@ -4463,25 +4463,25 @@ class Designable {
4463
4463
  url: `/uiSchemas:remove/${d["x-uid"]}`,
4464
4464
  method: "post"
4465
4465
  })), r == null || r((g = h == null ? void 0 : h.data) == null ? void 0 : g.data), message.success(o("Saved successfully"), 0.2);
4466
- })), this.on("patch", (i) => V(this, [i], function* ({ schema: r }) {
4466
+ })), this.on("patch", (i) => E(this, [i], function* ({ schema: r }) {
4467
4467
  this.refresh(), r != null && r["x-uid"] && (yield t.request({
4468
4468
  url: "/uiSchemas:patch",
4469
4469
  method: "post",
4470
4470
  data: x({}, r)
4471
4471
  }), message.success(o("Saved successfully"), 0.2));
4472
- })), this.on("initializeActionContext", (i) => V(this, [i], function* ({ schema: r }) {
4472
+ })), this.on("initializeActionContext", (i) => E(this, [i], function* ({ schema: r }) {
4473
4473
  this.refresh(), r != null && r["x-uid"] && (yield t.request({
4474
4474
  url: "/uiSchemas:initializeActionContext",
4475
4475
  method: "post",
4476
4476
  data: x({}, r)
4477
4477
  }));
4478
- })), this.on("batchPatch", (i) => V(this, [i], function* ({ schemas: r }) {
4478
+ })), this.on("batchPatch", (i) => E(this, [i], function* ({ schemas: r }) {
4479
4479
  this.refresh(), yield t.request({
4480
4480
  url: "/uiSchemas:batchPatch",
4481
4481
  method: "post",
4482
4482
  data: r
4483
4483
  }), message.success(o("Saved successfully"), 0.2);
4484
- })), this.on("remove", (i) => V(this, [i], function* ({ removed: r }) {
4484
+ })), this.on("remove", (i) => E(this, [i], function* ({ removed: r }) {
4485
4485
  let a = [];
4486
4486
  (r == null ? void 0 : r["x-component"]) === "Grid.Col" && (a = n(r.parent)), this.refresh(), r != null && r["x-uid"] && (yield t.request({
4487
4487
  url: `/uiSchemas:remove/${r["x-uid"]}`,
@@ -4500,7 +4500,7 @@ class Designable {
4500
4500
  this.events[t] || (this.events[t] = []), this.events[t].push(o);
4501
4501
  }
4502
4502
  emit(t, ...o) {
4503
- return V(this, null, function* () {
4503
+ return E(this, null, function* () {
4504
4504
  if (!this.events[t])
4505
4505
  return;
4506
4506
  const [n, ...r] = o;
@@ -5451,7 +5451,7 @@ class DataSource {
5451
5451
  this.reloadCallbacks = this.reloadCallbacks.filter((o) => o !== t);
5452
5452
  }
5453
5453
  reload() {
5454
- return V(this, null, function* () {
5454
+ return E(this, null, function* () {
5455
5455
  const t = yield this.getDataSource();
5456
5456
  return this.setOptions(t), this.collectionManager.setCollections(t.collections || []), this.reloadCallbacks.forEach((o) => o(t.collections)), this.options;
5457
5457
  });
@@ -6556,7 +6556,7 @@ class DataSourceManager {
6556
6556
  return this.dataSourceInstancesMap[n.key] = n, n;
6557
6557
  }
6558
6558
  addDataSources(t, o) {
6559
- return V(this, null, function* () {
6559
+ return E(this, null, function* () {
6560
6560
  this.multiDataSources.some(([n, r]) => n === t && r === o) || this.multiDataSources.push([t, o]);
6561
6561
  });
6562
6562
  }
@@ -6579,9 +6579,9 @@ class DataSourceManager {
6579
6579
  this.collectionFieldInterfaceManager.addFieldInterfaces(t);
6580
6580
  }
6581
6581
  reload() {
6582
- return V(this, null, function* () {
6582
+ return E(this, null, function* () {
6583
6583
  return yield Promise.all(
6584
- this.multiDataSources.map((n) => V(this, [n], function* ([t, o]) {
6584
+ this.multiDataSources.map((n) => E(this, [n], function* ([t, o]) {
6585
6585
  (yield t()).map((i) => this.addDataSource(o, i));
6586
6586
  }))
6587
6587
  ), Promise.all(this.getDataSources().map((t) => t.reload()));
@@ -6687,7 +6687,7 @@ function useCurrentRequest(e) {
6687
6687
  }));
6688
6688
  }
6689
6689
  function requestParentRecordData(a) {
6690
- return V(this, arguments, function* ({
6690
+ return E(this, arguments, function* ({
6691
6691
  sourceId: e,
6692
6692
  association: t,
6693
6693
  parentRecord: o,
@@ -7543,14 +7543,14 @@ function getAllKeys(e) {
7543
7543
  }
7544
7544
  return o(e), t;
7545
7545
  }
7546
- const conditionAnalyses = (r) => V(void 0, [r], function* ({
7546
+ const conditionAnalyses = (r) => E(void 0, [r], function* ({
7547
7547
  ruleGroup: e,
7548
7548
  variables: t,
7549
7549
  localVariables: o,
7550
7550
  variableNameOfLeftCondition: n
7551
7551
  }) {
7552
7552
  const i = Object.keys(e)[0] || "$and";
7553
- let l = e[i].map((c) => V(void 0, null, function* () {
7553
+ let l = e[i].map((c) => E(void 0, null, function* () {
7554
7554
  if ("$and" in c || "$or" in c)
7555
7555
  return yield conditionAnalyses({ ruleGroup: c, variables: t, localVariables: o });
7556
7556
  const u = getInnermostKeyAndValue(c), d = u == null ? void 0 : u.key;
@@ -7586,7 +7586,7 @@ const getVariablesData = (e) => {
7586
7586
  }), t;
7587
7587
  };
7588
7588
  function getRenderContent(e, t, o, n, r) {
7589
- return V(this, null, function* () {
7589
+ return E(this, null, function* () {
7590
7590
  var i, a;
7591
7591
  if (t && e === "handlebars")
7592
7592
  try {
@@ -7701,7 +7701,7 @@ function getSubscriber({
7701
7701
  variables: n,
7702
7702
  localVariables: r,
7703
7703
  variableNameOfLeftCondition: i
7704
- }), setTimeout(() => V(this, null, function* () {
7704
+ }), setTimeout(() => E(this, null, function* () {
7705
7705
  var u;
7706
7706
  const a = getFieldNameByOperator(e.operator);
7707
7707
  if (!((u = t.stateOfLinkageRules) != null && u[a]))
@@ -7774,7 +7774,7 @@ const collectFieldStateOfLinkageRules = ({
7774
7774
  break;
7775
7775
  case ActionType.Value:
7776
7776
  {
7777
- const I = () => V(void 0, null, function* () {
7777
+ const I = () => E(void 0, null, function* () {
7778
7778
  var w;
7779
7779
  if ((t == null ? void 0 : t.mode) === "express") {
7780
7780
  if ((t.value || t.result) == null)
@@ -7801,7 +7801,7 @@ const collectFieldStateOfLinkageRules = ({
7801
7801
  }
7802
7802
  };
7803
7803
  function getTempFieldState(e, t) {
7804
- return V(this, null, function* () {
7804
+ return E(this, null, function* () {
7805
7805
  return [e, t] = yield Promise.all([e, t]), {
7806
7806
  condition: e,
7807
7807
  value: t
@@ -7813,7 +7813,7 @@ function isConditionEmpty(e) {
7813
7813
  return _.isEmpty(o);
7814
7814
  }
7815
7815
  function replaceVariables(n, r) {
7816
- return V(this, arguments, function* (e, {
7816
+ return E(this, arguments, function* (e, {
7817
7817
  variables: t,
7818
7818
  localVariables: o
7819
7819
  }) {
@@ -7821,7 +7821,7 @@ function replaceVariables(n, r) {
7821
7821
  const i = {}, a = {};
7822
7822
  if (e == null)
7823
7823
  return;
7824
- const l = (c = e.match(REGEX_OF_VARIABLE_IN_EXPRESSION)) == null ? void 0 : c.map((u) => V(this, null, function* () {
7824
+ const l = (c = e.match(REGEX_OF_VARIABLE_IN_EXPRESSION)) == null ? void 0 : c.map((u) => E(this, null, function* () {
7825
7825
  const { value: d } = yield t.parseVariable(u, o), p = `_${uid$1()}`;
7826
7826
  return a[p] = d, i[u] = p, d;
7827
7827
  }));
@@ -7835,7 +7835,7 @@ const useCloseAction$3 = () => {
7835
7835
  const { setVisible: e } = useActionContext(), t = useForm();
7836
7836
  return {
7837
7837
  run() {
7838
- return V(this, null, function* () {
7838
+ return E(this, null, function* () {
7839
7839
  e(!1), t.submit((n) => {
7840
7840
  console.log(n);
7841
7841
  });
@@ -7846,7 +7846,7 @@ const useCloseAction$3 = () => {
7846
7846
  const e = useNavigate(), { setVisible: t } = useActionContext(), o = useForm(), n = useAPIClient();
7847
7847
  return {
7848
7848
  run() {
7849
- return V(this, null, function* () {
7849
+ return E(this, null, function* () {
7850
7850
  yield o.submit(), yield n.resource("auth").changePassword({
7851
7851
  values: o.values
7852
7852
  }), yield o.reset(), t(!1), e("/signin");
@@ -7993,7 +7993,7 @@ const useCurrentUserSettingsMenu = () => {
7993
7993
  const { setVisible: e } = useActionContext(), t = useForm();
7994
7994
  return {
7995
7995
  run() {
7996
- return V(this, null, function* () {
7996
+ return E(this, null, function* () {
7997
7997
  e(!1), t.submit((n) => {
7998
7998
  console.log(n);
7999
7999
  });
@@ -8007,7 +8007,7 @@ const useCurrentUserSettingsMenu = () => {
8007
8007
  const e = useCurrentUserContext(), { setVisible: t } = useActionContext(), o = useForm(), n = useAPIClient();
8008
8008
  return {
8009
8009
  run() {
8010
- return V(this, null, function* () {
8010
+ return E(this, null, function* () {
8011
8011
  var a;
8012
8012
  const i = yield o.submit();
8013
8013
  t(!1), yield n.resource("users").updateProfile({
@@ -8038,9 +8038,7 @@ const useCurrentUserSettingsMenu = () => {
8038
8038
  title: "{{t('Nickname')}}",
8039
8039
  "x-decorator": "FormItem",
8040
8040
  "x-component": "Input",
8041
- "x-reactions": (e) => {
8042
- e.initialValue && (e.disabled = !0);
8043
- }
8041
+ "x-disabled": "{{ enableEditProfile === false }}"
8044
8042
  },
8045
8043
  username: {
8046
8044
  type: "string",
@@ -8049,9 +8047,7 @@ const useCurrentUserSettingsMenu = () => {
8049
8047
  "x-component": "Input",
8050
8048
  "x-validator": { username: !0 },
8051
8049
  required: !0,
8052
- "x-reactions": (e) => {
8053
- e.initialValue && (e.disabled = !0);
8054
- }
8050
+ "x-disabled": "{{ enableEditProfile === false }}"
8055
8051
  },
8056
8052
  email: {
8057
8053
  type: "string",
@@ -8059,18 +8055,14 @@ const useCurrentUserSettingsMenu = () => {
8059
8055
  "x-decorator": "FormItem",
8060
8056
  "x-component": "Input",
8061
8057
  "x-validator": "email",
8062
- "x-reactions": (e) => {
8063
- e.initialValue && (e.disabled = !0);
8064
- }
8058
+ "x-disabled": "{{ enableEditProfile === false }}"
8065
8059
  },
8066
8060
  phone: {
8067
8061
  type: "string",
8068
8062
  title: '{{t("Phone")}}',
8069
8063
  "x-decorator": "FormItem",
8070
8064
  "x-component": "Input",
8071
- "x-reactions": (e) => {
8072
- e.initialValue && (e.disabled = !0);
8073
- }
8065
+ "x-disabled": "{{ enableEditProfile === false }}"
8074
8066
  },
8075
8067
  footer: {
8076
8068
  "x-component": "Action.Drawer.Footer",
@@ -8086,6 +8078,7 @@ const useCurrentUserSettingsMenu = () => {
8086
8078
  submit: {
8087
8079
  title: "Submit",
8088
8080
  "x-component": "Action",
8081
+ "x-disabled": "{{ enableEditProfile === false }}",
8089
8082
  "x-component-props": {
8090
8083
  type: "primary",
8091
8084
  useAction: "{{ useSaveCurrentUserValues }}"
@@ -8108,7 +8101,7 @@ const useCurrentUserSettingsMenu = () => {
8108
8101
  /* @__PURE__ */ jsx(ActionContextProvider, { value: { visible: t, setVisible: o }, children: /* @__PURE__ */ jsx("div", { onClick: (l) => l.stopPropagation(), children: /* @__PURE__ */ jsx(
8109
8102
  SchemaComponent,
8110
8103
  {
8111
- scope: { useCurrentUserValues, useCloseAction: useCloseAction$2, useSaveCurrentUserValues },
8104
+ scope: { useCurrentUserValues, useCloseAction: useCloseAction$2, useSaveCurrentUserValues, enableEditProfile: i },
8112
8105
  schema: schema$3
8113
8106
  }
8114
8107
  ) }) })
@@ -8268,8 +8261,8 @@ const useCurrentUserSettingsMenu = () => {
8268
8261
  value: l
8269
8262
  })),
8270
8263
  defaultValue: t.language,
8271
- onChange: (l) => V(void 0, null, function* () {
8272
- yield o.resource("users").updateProfile({
8264
+ onChange: (l) => E(void 0, null, function* () {
8265
+ yield o.resource("users").updateLang({
8273
8266
  values: {
8274
8267
  appLang: l
8275
8268
  }
@@ -8590,7 +8583,7 @@ function getRemotePlugins(e, t = []) {
8590
8583
  });
8591
8584
  }
8592
8585
  function getPlugins(e) {
8593
- return V(this, null, function* () {
8586
+ return E(this, null, function* () {
8594
8587
  const { requirejs: t, pluginData: o, devDynamicImport: n } = e;
8595
8588
  if (o.length === 0)
8596
8589
  return [];
@@ -8635,12 +8628,12 @@ let PluginManager$1 = class {
8635
8628
  * @internal
8636
8629
  */
8637
8630
  init(t) {
8638
- return V(this, null, function* () {
8631
+ return E(this, null, function* () {
8639
8632
  yield this.initStaticPlugins(t), this.loadRemotePlugins && (yield this.initRemotePlugins());
8640
8633
  });
8641
8634
  }
8642
8635
  initStaticPlugins() {
8643
- return V(this, arguments, function* (t = []) {
8636
+ return E(this, arguments, function* (t = []) {
8644
8637
  try {
8645
8638
  for (var o = Ce(t), n, r, i; n = !(r = yield o.next()).done; n = !1) {
8646
8639
  const a = r.value;
@@ -8660,7 +8653,7 @@ let PluginManager$1 = class {
8660
8653
  });
8661
8654
  }
8662
8655
  initRemotePlugins() {
8663
- return V(this, null, function* () {
8656
+ return E(this, null, function* () {
8664
8657
  var r;
8665
8658
  const t = yield this.app.apiClient.request({ url: "pm:listEnabled" }), o = ((r = t == null ? void 0 : t.data) == null ? void 0 : r.data) || [], n = yield getPlugins({
8666
8659
  requirejs: this.app.requirejs,
@@ -8686,7 +8679,7 @@ let PluginManager$1 = class {
8686
8679
  });
8687
8680
  }
8688
8681
  add(n) {
8689
- return V(this, arguments, function* (t, o = {}) {
8682
+ return E(this, arguments, function* (t, o = {}) {
8690
8683
  const r = this.getInstance(t, o);
8691
8684
  this.pluginInstances.set(t, r), o.name && (this.pluginsAliases[o.name] = r), o.packageName && (this.pluginsAliases[o.packageName] = r), yield r.afterAdd();
8692
8685
  });
@@ -8701,7 +8694,7 @@ let PluginManager$1 = class {
8701
8694
  * @internal
8702
8695
  */
8703
8696
  load() {
8704
- return V(this, null, function* () {
8697
+ return E(this, null, function* () {
8705
8698
  yield this.initPlugins;
8706
8699
  for (const t of this.pluginInstances.values())
8707
8700
  yield t.beforeLoad();
@@ -9016,9 +9009,9 @@ class WebSocketClient {
9016
9009
  for (const { type: n, listener: r, options: i } of this.events)
9017
9010
  this._ws.addEventListener(n, r, i);
9018
9011
  o = setInterval(() => this.send("ping"), this.pingInterval), this.connected = !0;
9019
- }, t.onerror = () => V(this, null, function* () {
9012
+ }, t.onerror = () => E(this, null, function* () {
9020
9013
  console.log("onerror", this.readyState, this._reconnectTimes);
9021
- }), t.onclose = (n) => V(this, null, function* () {
9014
+ }), t.onclose = (n) => E(this, null, function* () {
9022
9015
  setTimeout(() => this.connect(), this.reconnectInterval), console.log("onclose", this.readyState, this._reconnectTimes, this.serverDown), this.connected = !1, clearInterval(o);
9023
9016
  });
9024
9017
  }
@@ -9071,7 +9064,7 @@ const useNiceDropdownMaxHeight = (e = []) => {
9071
9064
  }, FlagContext = React.createContext(null), FlagProvider = (e) => /* @__PURE__ */ jsx(FlagContext.Provider, { value: e, children: e.children }), useFlag = () => useContext(FlagContext) || {}, { ConfigContext } = ConfigProvider, useConfig = () => useContext(ConfigContext), usePrefixCls = (e, t) => {
9072
9065
  const { getPrefixCls: o } = useContext(ConfigProvider.ConfigContext) || {};
9073
9066
  return "ConfigContext" in ConfigProvider ? (o == null ? void 0 : o(e, t == null ? void 0 : t.prefixCls)) || "" : `ant-${e != null ? e : ""}`;
9074
- }, useToken = () => theme.useToken(), loading = (e = "Loading...", t) => V(void 0, null, function* () {
9067
+ }, useToken = () => theme.useToken(), loading = (e = "Loading...", t) => E(void 0, null, function* () {
9075
9068
  let o = null;
9076
9069
  const n = setTimeout(() => {
9077
9070
  o = message.loading(e);
@@ -9111,7 +9104,7 @@ function legacyUnmount(e) {
9111
9104
  return unmountComponentAtNode(e);
9112
9105
  }
9113
9106
  function concurrentUnmount(e) {
9114
- return V(this, null, function* () {
9107
+ return E(this, null, function* () {
9115
9108
  return Promise.resolve().then(() => {
9116
9109
  var t;
9117
9110
  (t = e[MARK]) == null || t.unmount(), delete e[MARK];
@@ -9638,7 +9631,7 @@ const SearchFields = ({ value: e, onChange: t, name: o }) => {
9638
9631
  const S = useForm(), b = useActionContext();
9639
9632
  return {
9640
9633
  run() {
9641
- return V(this, null, function* () {
9634
+ return E(this, null, function* () {
9642
9635
  yield u == null ? void 0 : u(), b.setVisible(!1), S.reset();
9643
9636
  });
9644
9637
  }
@@ -9647,7 +9640,7 @@ const SearchFields = ({ value: e, onChange: t, name: o }) => {
9647
9640
  const S = useForm(), b = useActionContext();
9648
9641
  return {
9649
9642
  run() {
9650
- return V(this, null, function* () {
9643
+ return E(this, null, function* () {
9651
9644
  yield S.validate();
9652
9645
  try {
9653
9646
  yield d == null ? void 0 : d(S.values), b.setVisible(!1), S.reset();
@@ -9863,7 +9856,7 @@ const { Paragraph: Paragraph$1, Text: Text$2 } = Typography, ErrorFallbackModal
9863
9856
  const o = useLocationNoUpdate(), [n, r] = React.useState(!1), i = useAPIClient();
9864
9857
  return {
9865
9858
  loading: n,
9866
- download: () => V(void 0, null, function* () {
9859
+ download: () => E(void 0, null, function* () {
9867
9860
  r(!0);
9868
9861
  try {
9869
9862
  const a = yield i.request({
@@ -10040,7 +10033,7 @@ const SchemaComponentProvider = (e) => {
10040
10033
  SchemaComponentProvider.displayName = "SchemaComponentProvider";
10041
10034
  class SchemaComponentPlugin extends Plugin {
10042
10035
  load() {
10043
- return V(this, null, function* () {
10036
+ return E(this, null, function* () {
10044
10037
  this.addComponents();
10045
10038
  });
10046
10039
  }
@@ -10344,7 +10337,7 @@ const useAPITokenVariable = ({
10344
10337
  key: t,
10345
10338
  isLeaf: !1,
10346
10339
  disabled: a,
10347
- loadChildren: (c, u) => V(void 0, null, function* () {
10340
+ loadChildren: (c, u) => E(void 0, null, function* () {
10348
10341
  const d = u ? {
10349
10342
  [u]: void 0
10350
10343
  } : {};
@@ -10451,7 +10444,7 @@ const variablesStore = {}, getFieldPath = (e, t) => {
10451
10444
  const o = useRef({}), n = useAPIClient(), { getCollectionJoinField: r, getCollection: i } = useCollectionManager_deprecated(), a = useCompile(), { builtinVariables: l } = useBuiltInVariables(), c = useCallback((C) => {
10452
10445
  _.isFunction(C) ? o.current = C(o.current) : o.current = C;
10453
10446
  }, []), u = useCallback(
10454
- (C, S, b) => V(void 0, null, function* () {
10447
+ (C, S, b) => E(void 0, null, function* () {
10455
10448
  var R, $;
10456
10449
  const y = C.split("."), v = y[0], I = mergeVariableToCollectionNameWithLocalVariables(variablesStore, S);
10457
10450
  let w = mergeCtxWithLocalVariables(o.current, S);
@@ -10469,7 +10462,7 @@ const variablesStore = {}, getFieldPath = (e, t) => {
10469
10462
  };
10470
10463
  const T = y[M], { fieldPath: N } = getFieldPath(y.slice(0, M + 1).join("."), I), L = r(N, A), q = ($ = i(B, A)) == null ? void 0 : $.getPrimaryKey();
10471
10464
  if (Array.isArray(w)) {
10472
- const E = w.map((U) => {
10465
+ const V = w.map((U) => {
10473
10466
  if (!(b != null && b.doNotRequest) && shouldToRequest(U == null ? void 0 : U[T]) && (U == null ? void 0 : U[q]) != null && L != null && L.target) {
10474
10467
  const G = `/${B}/${U[L.sourceKey || q]}/${T}:${getAction(L.type)}`;
10475
10468
  if (hasRequested(G))
@@ -10485,21 +10478,21 @@ const variablesStore = {}, getFieldPath = (e, t) => {
10485
10478
  }
10486
10479
  return U == null ? void 0 : U[T];
10487
10480
  });
10488
- w = removeThroughCollectionFields(_.flatten(yield Promise.all(E)), L);
10481
+ w = removeThroughCollectionFields(_.flatten(yield Promise.all(V)), L);
10489
10482
  } else if (!(b != null && b.doNotRequest) && shouldToRequest(w[T]) && w[q] != null && (L != null && L.target)) {
10490
- const E = `/${B}/${w[L.sourceKey || q]}/${T}:${getAction(L.type)}`;
10483
+ const V = `/${B}/${w[L.sourceKey || q]}/${T}:${getAction(L.type)}`;
10491
10484
  let U = null;
10492
- if (hasRequested(E))
10493
- U = yield getRequested(E);
10485
+ if (hasRequested(V))
10486
+ U = yield getRequested(V);
10494
10487
  else {
10495
10488
  const G = n.request({
10496
10489
  headers: getDataSourceHeaders(A),
10497
- url: E,
10490
+ url: V,
10498
10491
  params: {
10499
10492
  appends: b == null ? void 0 : b.appends
10500
10493
  }
10501
10494
  });
10502
- stashRequested(E, G), U = yield G, clearRequested(E);
10495
+ stashRequested(V, G), U = yield G, clearRequested(V);
10503
10496
  }
10504
10497
  raw(w)[T] || (raw(w)[T] = U.data.data), w = removeThroughCollectionFields(getValuesByPath(w, T), L);
10505
10498
  } else
@@ -10542,7 +10535,7 @@ const variablesStore = {}, getFieldPath = (e, t) => {
10542
10535
  * @param localVariables 局部变量,解析完成后会被清除
10543
10536
  * @returns
10544
10537
  */
10545
- (C, S, b) => V(void 0, null, function* () {
10538
+ (C, S, b) => E(void 0, null, function* () {
10546
10539
  if (!isVariable(C))
10547
10540
  return C;
10548
10541
  S && (S = _.isArray(S) ? S : [S]);
@@ -10553,7 +10546,7 @@ const variablesStore = {}, getFieldPath = (e, t) => {
10553
10546
  }),
10554
10547
  [u]
10555
10548
  ), g = useCallback(
10556
- (C, S) => V(void 0, null, function* () {
10549
+ (C, S) => E(void 0, null, function* () {
10557
10550
  var k;
10558
10551
  if (!isVariable(C))
10559
10552
  throw new Error(`VariablesProvider: ${C} is not a variable string`);
@@ -11625,7 +11618,7 @@ function useParsedFilter({ filterOption: e }) {
11625
11618
  return useEffect(() => {
11626
11619
  if (!e)
11627
11620
  return;
11628
- const l = () => V(this, null, function* () {
11621
+ const l = () => E(this, null, function* () {
11629
11622
  a(!0);
11630
11623
  const u = yield t(e);
11631
11624
  a(!1), r(u);
@@ -12077,7 +12070,7 @@ const PopupVisibleProvider = ({ children: e, visible: t, setVisible: o }) => {
12077
12070
  }, PagePopups = (e) => {
12078
12071
  const t = useFieldSchema(), o = useLocation(), n = e.paramsList || getPopupParamsFromPath(getPopupPath(o)), { requestSchema: r } = useRequestSchema(), [i, a] = useState(null), l = useRef([]), { savePopupSchemaToSchema: c, getPopupSchemaFromSchema: u } = usePopupUtils();
12079
12072
  useEffect(() => {
12080
- V(void 0, null, function* () {
12073
+ E(void 0, null, function* () {
12081
12074
  const m = n.map((C) => {
12082
12075
  var S;
12083
12076
  return ((S = getStoredPopupContext(C.popupuid)) == null ? void 0 : S.schema) || findSchemaByUid(C.popupuid, t == null ? void 0 : t.root) || r(C.popupuid);
@@ -12131,7 +12124,7 @@ const PopupVisibleProvider = ({ children: e, visible: t, setVisible: o }) => {
12131
12124
  ) }) : null;
12132
12125
  }, useRequestSchema = () => {
12133
12126
  const e = useAPIClient();
12134
- return { requestSchema: useCallback((o) => V(void 0, null, function* () {
12127
+ return { requestSchema: useCallback((o) => E(void 0, null, function* () {
12135
12128
  var n;
12136
12129
  try {
12137
12130
  return (n = (yield e.request({
@@ -12314,7 +12307,7 @@ const useStyles$j = genStyleHook("nb-action-drawer", (e) => {
12314
12307
  title: t("Unsaved changes"),
12315
12308
  content: t("Are you sure you don't want to save?"),
12316
12309
  onOk() {
12317
- return V(this, null, function* () {
12310
+ return E(this, null, function* () {
12318
12311
  var u, d;
12319
12312
  e.setFormValueChanged(!1), (u = e.setVisible) == null || u.call(e, !1), (d = n == null ? void 0 : n.reset) == null || d.call(n);
12320
12313
  });
@@ -12328,7 +12321,7 @@ const useStyles$j = genStyleHook("nb-action-drawer", (e) => {
12328
12321
  const { setVisible: e } = useContext(ActionContext), t = useForm();
12329
12322
  return {
12330
12323
  run() {
12331
- return V(this, null, function* () {
12324
+ return E(this, null, function* () {
12332
12325
  e(!1), t.submit((n) => {
12333
12326
  console.log(n);
12334
12327
  });
@@ -12801,17 +12794,17 @@ const getActionValue = (e, t) => {
12801
12794
  default:
12802
12795
  return null;
12803
12796
  }
12804
- }, getSatisfiedActions = (n) => V(void 0, [n], function* ({ rules: e, variables: t, localVariables: o }) {
12797
+ }, getSatisfiedActions = (n) => E(void 0, [n], function* ({ rules: e, variables: t, localVariables: o }) {
12805
12798
  return (yield Promise.all(
12806
- e.filter((i) => !i.disabled).map((i) => V(void 0, null, function* () {
12799
+ e.filter((i) => !i.disabled).map((i) => E(void 0, null, function* () {
12807
12800
  return (yield conditionAnalyses({ ruleGroup: i.condition, variables: t, localVariables: o })) ? i : null;
12808
12801
  }))
12809
12802
  )).filter(Boolean).map((i) => i.actions).flat();
12810
- }), getSatisfiedValues = (n) => V(void 0, [n], function* ({ rules: e, variables: t, localVariables: o }) {
12803
+ }), getSatisfiedValues = (n) => E(void 0, [n], function* ({ rules: e, variables: t, localVariables: o }) {
12811
12804
  return (yield getSatisfiedActions({ rules: e, variables: t, localVariables: o })).map((r) => F(x({}, r), {
12812
12805
  value: getActionValue(r.operator, r.value)
12813
12806
  }));
12814
- }), getSatisfiedValueMap = (n) => V(void 0, [n], function* ({ rules: e, variables: t, localVariables: o }) {
12807
+ }), getSatisfiedValueMap = (n) => E(void 0, [n], function* ({ rules: e, variables: t, localVariables: o }) {
12815
12808
  return (yield getSatisfiedValues({ rules: e, variables: t, localVariables: o })).reduce((a, l) => F(x({}, a), { [l.operator]: l.value }), {});
12816
12809
  });
12817
12810
  function useSatisfiedActionValues({
@@ -13271,7 +13264,7 @@ const TableColumnSchemaToolbar = (e) => /* @__PURE__ */ jsx(GridRowContext.Provi
13271
13264
  o.field.data = ((f = o == null ? void 0 : o.field) == null ? void 0 : f.data) || {}, o.field.data.selectedRowKeys = h, o.field.data.selectedRowData = g, (S = (C = o == null ? void 0 : o.field) == null ? void 0 : C.onRowSelect) == null || S.call(C, h);
13272
13265
  }, []),
13273
13266
  onRowDragEnd: useCallback(
13274
- (f) => V(void 0, [f], function* ({ from: h, to: g }) {
13267
+ (f) => E(void 0, [f], function* ({ from: h, to: g }) {
13275
13268
  yield o.resource.move({
13276
13269
  sourceId: h[o.rowKey || "id"],
13277
13270
  targetId: g[o.rowKey || "id"],
@@ -13452,7 +13445,7 @@ class TableFieldResource {
13452
13445
  this.field = t.field, this.api = t.api, this.sourceId = t.sourceId, this.resource = this.api.resource(t.resource, this.sourceId);
13453
13446
  }
13454
13447
  list(t) {
13455
- return V(this, null, function* () {
13448
+ return E(this, null, function* () {
13456
13449
  if (this.field.data = this.field.data || {}, this.field.data.changed)
13457
13450
  return console.log("list.dataSource", this.field.data.dataSource), {
13458
13451
  data: {
@@ -13474,7 +13467,7 @@ class TableFieldResource {
13474
13467
  });
13475
13468
  }
13476
13469
  get(t) {
13477
- return V(this, null, function* () {
13470
+ return E(this, null, function* () {
13478
13471
  console.log("get", t);
13479
13472
  const { filterByTk: o } = t;
13480
13473
  return {
@@ -13485,21 +13478,21 @@ class TableFieldResource {
13485
13478
  });
13486
13479
  }
13487
13480
  create(t) {
13488
- return V(this, null, function* () {
13481
+ return E(this, null, function* () {
13489
13482
  console.log("create", t);
13490
13483
  const { values: o } = t;
13491
13484
  this.field.data.dataSource.push(o), this.field.data.changed = !0;
13492
13485
  });
13493
13486
  }
13494
13487
  update(t) {
13495
- return V(this, null, function* () {
13488
+ return E(this, null, function* () {
13496
13489
  console.log("update", t);
13497
13490
  const { filterByTk: o, values: n } = t;
13498
13491
  this.field.data.dataSource[o] = n, this.field.data.changed = !0;
13499
13492
  });
13500
13493
  }
13501
13494
  destroy(t) {
13502
- return V(this, null, function* () {
13495
+ return E(this, null, function* () {
13503
13496
  console.log("destroy", t);
13504
13497
  let { filterByTk: o } = t;
13505
13498
  Array.isArray(o) || (o = [o]), this.field.data.dataSource = this.field.data.dataSource.filter((n, r) => !o.includes(r)), this.field.data.changed = !0;
@@ -13656,7 +13649,7 @@ const useTableSelectorParams = () => useContext(TableSelectorParamsContext), Tab
13656
13649
  return useEffect(() => {
13657
13650
  var k, A, D, B, z, O, j, R, $, M, T, N, L;
13658
13651
  if (!((k = t == null ? void 0 : t.service) != null && k.loading)) {
13659
- const q = (D = (A = t == null ? void 0 : t.service) == null ? void 0 : A.data) == null ? void 0 : D.data.map((E) => E);
13652
+ const q = (D = (A = t == null ? void 0 : t.service) == null ? void 0 : A.data) == null ? void 0 : D.data.map((V) => V);
13660
13653
  e.value = q, (B = e == null ? void 0 : e.setInitialValue) == null || B.call(e, q), e.data = e.data || {}, e.data.selectedRowKeys = [], e.componentProps.pagination = e.componentProps.pagination || {}, e.componentProps.pagination.pageSize = (j = (O = (z = t == null ? void 0 : t.service) == null ? void 0 : z.data) == null ? void 0 : O.meta) == null ? void 0 : j.pageSize, e.componentProps.pagination.total = (M = ($ = (R = t == null ? void 0 : t.service) == null ? void 0 : R.data) == null ? void 0 : $.meta) == null ? void 0 : M.count, e.componentProps.pagination.current = (L = (N = (T = t == null ? void 0 : t.service) == null ? void 0 : T.data) == null ? void 0 : N.meta) == null ? void 0 : L.page;
13661
13654
  }
13662
13655
  }, [
@@ -13679,7 +13672,7 @@ const useTableSelectorParams = () => useContext(TableSelectorParamsContext), Tab
13679
13672
  t.field.data = ((D = t == null ? void 0 : t.field) == null ? void 0 : D.data) || {}, t.field.data.selectedRowKeys = k, t.field.data.selectedRowData = A;
13680
13673
  },
13681
13674
  onRowDragEnd(D) {
13682
- return V(this, arguments, function* ({ from: k, to: A }) {
13675
+ return E(this, arguments, function* ({ from: k, to: A }) {
13683
13676
  yield t.resource.move({
13684
13677
  sourceId: k[t.rowKey || "id"],
13685
13678
  targetId: A[t.rowKey || "id"]
@@ -13738,7 +13731,7 @@ const useTableSelectorParams = () => useContext(TableSelectorParamsContext), Tab
13738
13731
  );
13739
13732
  class BlockSchemaComponentPlugin extends Plugin {
13740
13733
  load() {
13741
- return V(this, null, function* () {
13734
+ return E(this, null, function* () {
13742
13735
  this.addComponents(), this.addScopes();
13743
13736
  });
13744
13737
  }
@@ -13818,7 +13811,7 @@ const SchemaTemplateManagerProvider = (e) => {
13818
13811
  templates: o,
13819
13812
  refresh: t,
13820
13813
  getTemplateSchemaByMode(i) {
13821
- return V(this, null, function* () {
13814
+ return E(this, null, function* () {
13822
13815
  const { mode: a, template: l } = i;
13823
13816
  if (a === "copy") {
13824
13817
  const { data: c } = yield n.request({
@@ -13836,7 +13829,7 @@ const SchemaTemplateManagerProvider = (e) => {
13836
13829
  });
13837
13830
  },
13838
13831
  copyTemplateSchema(i) {
13839
- return V(this, null, function* () {
13832
+ return E(this, null, function* () {
13840
13833
  const { data: a } = yield n.request({
13841
13834
  url: `/uiSchemas:getJsonSchema/${i.uid}?includeAsyncNode=true`
13842
13835
  }), l = (a == null ? void 0 : a.data) || {};
@@ -13844,7 +13837,7 @@ const SchemaTemplateManagerProvider = (e) => {
13844
13837
  });
13845
13838
  },
13846
13839
  saveAsTemplate(i) {
13847
- return V(this, null, function* () {
13840
+ return E(this, null, function* () {
13848
13841
  const { uid: a } = i, l = uid();
13849
13842
  return yield n.resource("uiSchemas").saveAsTemplate({
13850
13843
  filterByTk: a,
@@ -13896,7 +13889,7 @@ const SchemaTemplateManagerProvider = (e) => {
13896
13889
  return r.loading ? o() : /* @__PURE__ */ jsx(
13897
13890
  SchemaTemplateManagerProvider,
13898
13891
  {
13899
- refresh: () => V(void 0, null, function* () {
13892
+ refresh: () => E(void 0, null, function* () {
13900
13893
  const { data: a } = yield t.request(n);
13901
13894
  r.mutate(a);
13902
13895
  }),
@@ -13907,7 +13900,7 @@ const SchemaTemplateManagerProvider = (e) => {
13907
13900
  };
13908
13901
  class RemoteSchemaTemplateManagerPlugin extends Plugin {
13909
13902
  load() {
13910
- return V(this, null, function* () {
13903
+ return E(this, null, function* () {
13911
13904
  this.addRoutes(), this.addComponents();
13912
13905
  });
13913
13906
  }
@@ -13927,7 +13920,7 @@ const useUpdateSchemaTemplateActionProps = () => {
13927
13920
  const e = useUpdateActionProps(), { __parent: t } = useBlockRequestContext();
13928
13921
  return {
13929
13922
  onClick() {
13930
- return V(this, null, function* () {
13923
+ return E(this, null, function* () {
13931
13924
  var n, r;
13932
13925
  yield e.onClick(), (r = (n = t == null ? void 0 : t.service) == null ? void 0 : n.refresh) == null || r.call(n);
13933
13926
  });
@@ -13937,7 +13930,7 @@ const useUpdateSchemaTemplateActionProps = () => {
13937
13930
  const e = useBulkDestroyActionProps(), t = useSchemaTemplateManager(), { service: o } = useBlockRequestContext();
13938
13931
  return {
13939
13932
  onClick() {
13940
- return V(this, null, function* () {
13933
+ return E(this, null, function* () {
13941
13934
  var r;
13942
13935
  yield e.onClick(), yield t.refresh(), (r = o == null ? void 0 : o.refresh) == null || r.call(o);
13943
13936
  });
@@ -13947,7 +13940,7 @@ const useUpdateSchemaTemplateActionProps = () => {
13947
13940
  const e = useDestroyActionProps(), { service: t } = useBlockRequestContext(), o = useSchemaTemplateManager();
13948
13941
  return {
13949
13942
  onClick() {
13950
- return V(this, null, function* () {
13943
+ return E(this, null, function* () {
13951
13944
  var r;
13952
13945
  yield e.onClick(), yield o.refresh(), (r = t == null ? void 0 : t.refresh) == null || r.call(t);
13953
13946
  });
@@ -15682,9 +15675,9 @@ const useGetAriaLabelOfDesigner = () => {
15682
15675
  return {
15683
15676
  insertPosition: "afterEnd",
15684
15677
  wrap: ((q = O == null ? void 0 : O.cols) == null ? void 0 : q.length) === 1 ? gridRowColWrap : void 0,
15685
- Component: (E) => /* @__PURE__ */ jsx(
15678
+ Component: (V) => /* @__PURE__ */ jsx(
15686
15679
  PlusOutlined,
15687
- F(x({}, E), {
15680
+ F(x({}, V), {
15688
15681
  role: "button",
15689
15682
  "aria-label": b("schema-initializer"),
15690
15683
  style: { cursor: "pointer", fontSize: 14 }
@@ -15702,10 +15695,10 @@ const useGetAriaLabelOfDesigner = () => {
15702
15695
  }, [j, n, R, z, B]), T = useMemo(() => r !== !1 && D ? A() : null, [D, A, r]), N = useRef(null);
15703
15696
  return useEffect(() => {
15704
15697
  const q = N.current;
15705
- let E = q == null ? void 0 : q.parentElement;
15706
- for (; E && window.getComputedStyle(E).height === "0px"; )
15707
- E = E.parentElement;
15708
- if (!E)
15698
+ let V = q == null ? void 0 : q.parentElement;
15699
+ for (; V && window.getComputedStyle(V).height === "0px"; )
15700
+ V = V.parentElement;
15701
+ if (!V)
15709
15702
  return;
15710
15703
  function U() {
15711
15704
  q && (q.style.display = "block");
@@ -15713,8 +15706,8 @@ const useGetAriaLabelOfDesigner = () => {
15713
15706
  function G() {
15714
15707
  q && (q.style.display = "none");
15715
15708
  }
15716
- return window.getComputedStyle(E).position === "static" && (E.style.position = "relative"), E.addEventListener("mouseenter", U), E.addEventListener("mouseleave", G), () => {
15717
- E.removeEventListener("mouseenter", U), E.removeEventListener("mouseleave", G);
15709
+ return window.getComputedStyle(V).position === "static" && (V.style.position = "relative"), V.addEventListener("mouseenter", U), V.addEventListener("mouseleave", G), () => {
15710
+ V.removeEventListener("mouseenter", U), V.removeEventListener("mouseleave", G);
15718
15711
  };
15719
15712
  }, []), g ? /* @__PURE__ */ jsxs(
15720
15713
  "div",
@@ -16266,7 +16259,7 @@ const validateJSON$1 = {
16266
16259
  "x-validator": validateJSON$1
16267
16260
  }
16268
16261
  }
16269
- }, linkageAction = (i) => V(void 0, [i], function* ({
16262
+ }, linkageAction = (i) => E(void 0, [i], function* ({
16270
16263
  operator: e,
16271
16264
  field: t,
16272
16265
  condition: o,
@@ -17117,7 +17110,7 @@ const ActionLink = withDynamicSchemaProps(
17117
17110
  };
17118
17111
  }, useA = () => ({
17119
17112
  run() {
17120
- return V(this, null, function* () {
17113
+ return E(this, null, function* () {
17121
17114
  });
17122
17115
  }
17123
17116
  }), handleError = (e) => console.log(e), Action = withDynamicSchemaProps(
@@ -17162,7 +17155,7 @@ const ActionLink = withDynamicSchemaProps(
17162
17155
  "onMouseEnter",
17163
17156
  "refreshDataBlockRequest",
17164
17157
  "confirmTitle"
17165
- ]), { t: v } = useTranslation(), I = useDesigner(), w = useField(), k = useFieldSchema(), A = useCompile(), D = useCollectionRecordData(), B = A((H = k["x-component-props"]) == null ? void 0 : H.confirm) || g, z = useMemo(() => (k == null ? void 0 : k["x-linkage-rules"]) || [], [k == null ? void 0 : k["x-linkage-rules"]]), { designable: O } = useDesignable(), j = useComponent(n) || n, R = useVariables(), $ = useLocalVariables({ currentForm: { values: D, readPretty: !1 } }), { visibleWithURL: M, setVisibleWithURL: T } = usePopupUtils(), { setSubmitted: N } = useActionContext(), { getAriaLabel: L } = useGetAriaLabelOfAction(l), q = useCollectionParentRecordData(), E = useMemo(() => {
17158
+ ]), { t: v } = useTranslation(), I = useDesigner(), w = useField(), k = useFieldSchema(), A = useCompile(), D = useCollectionRecordData(), B = A((H = k["x-component-props"]) == null ? void 0 : H.confirm) || g, z = useMemo(() => (k == null ? void 0 : k["x-linkage-rules"]) || [], [k == null ? void 0 : k["x-linkage-rules"]]), { designable: O } = useDesignable(), j = useComponent(n) || n, R = useVariables(), $ = useLocalVariables({ currentForm: { values: D, readPretty: !1 } }), { visibleWithURL: M, setVisibleWithURL: T } = usePopupUtils(), { setSubmitted: N } = useActionContext(), { getAriaLabel: L } = useGetAriaLabelOfAction(l), q = useCollectionParentRecordData(), V = useMemo(() => {
17166
17159
  const W = l || A(k.title);
17167
17160
  return _.isString(W) ? v(W) : W;
17168
17161
  }, [l, k.title, v]);
@@ -17193,7 +17186,7 @@ const ActionLink = withDynamicSchemaProps(
17193
17186
  fieldSchema: k,
17194
17187
  designable: O,
17195
17188
  field: w,
17196
- actionTitle: E,
17189
+ actionTitle: V,
17197
17190
  icon: a,
17198
17191
  loading: d,
17199
17192
  handleMouseEnter: U,
@@ -17281,7 +17274,7 @@ const ActionLink = withDynamicSchemaProps(
17281
17274
  "setSubmitted",
17282
17275
  "getAriaLabel",
17283
17276
  "parentRecordData"
17284
- ]), [$, M] = useState(!1), { wrapSSR: T, componentCls: N, hashId: L } = useStyles$g(), [q, E] = useState(!1), U = n["x-toolbar-props"] || n["x-designer-props"], G = (ue = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : ue.openMode, H = (xe = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : xe.openSize, W = (de = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : de.refreshDataBlockRequest, { modal: X } = App.useApp(), J = useForm(), Y = useACLActionParamsContext(), { run: Q, element: Z, disabled: te } = (k == null ? void 0 : k(A)) || {}, ee = J.disabled || i.disabled || ((pe = i.data) == null ? void 0 : pe.disabled) || w || te, se = useMemo(() => {
17277
+ ]), [$, M] = useState(!1), { wrapSSR: T, componentCls: N, hashId: L } = useStyles$g(), [q, V] = useState(!1), U = n["x-toolbar-props"] || n["x-designer-props"], G = (ue = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : ue.openMode, H = (xe = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : xe.openSize, W = (de = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : de.refreshDataBlockRequest, { modal: X } = App.useApp(), J = useForm(), Y = useACLActionParamsContext(), { run: Q, element: Z, disabled: te } = (k == null ? void 0 : k(A)) || {}, ee = J.disabled || i.disabled || ((pe = i.data) == null ? void 0 : pe.disabled) || w || te, se = useMemo(() => {
17285
17278
  var ce;
17286
17279
  return F(x({}, I), {
17287
17280
  opacity: r && (((ce = i == null ? void 0 : i.data) == null ? void 0 : ce.hidden) || !Y) && 0.1,
@@ -17326,7 +17319,7 @@ const ActionLink = withDynamicSchemaProps(
17326
17319
  M == null || M(ce), B == null || B(ce);
17327
17320
  },
17328
17321
  formValueChanged: q,
17329
- setFormValueChanged: E,
17322
+ setFormValueChanged: V,
17330
17323
  openMode: G,
17331
17324
  openSize: H,
17332
17325
  containerRefKey: o,
@@ -17420,7 +17413,7 @@ function RenderButton({
17420
17413
  const N = useCallback(
17421
17414
  (L, q = !0) => {
17422
17415
  if (!(q && isPortalInBody(L.target)) && (L.preventDefault(), L.stopPropagation(), !a && o)) {
17423
- const E = () => {
17416
+ const V = () => {
17424
17417
  y ? y(L, () => {
17425
17418
  var U, G;
17426
17419
  v !== !1 && (B == null || B(!0), (G = (U = M.current) == null ? void 0 : U.refresh) == null || G.call(U));
@@ -17429,8 +17422,8 @@ function RenderButton({
17429
17422
  (A == null ? void 0 : A.enable) !== !1 && (A != null && A.content) ? D.confirm({
17430
17423
  title: j(A.title, { title: z || n }),
17431
17424
  content: j(A.content, { title: z || n }),
17432
- onOk: E
17433
- }) : E();
17425
+ onOk: V
17426
+ }) : V();
17434
17427
  }
17435
17428
  },
17436
17429
  [
@@ -18060,15 +18053,15 @@ https://requirejs.org/docs/errors.html#` + e);
18060
18053
  }
18061
18054
  }
18062
18055
  function S(T, N, L) {
18063
- var q, E, U, G, H, W, X, J, Y, Q, Z, te, ee = N && N.split("/"), se = a.map, ie = se && se["*"];
18056
+ var q, V, U, G, H, W, X, J, Y, Q, Z, te, ee = N && N.split("/"), se = a.map, ie = se && se["*"];
18064
18057
  if (T && (T = T.split("/"), X = T.length - 1, a.nodeIdCompat && jsSuffixRegExp.test(T[X]) && (T[X] = T[X].replace(jsSuffixRegExp, "")), T[0].charAt(0) === "." && ee && (te = ee.slice(0, ee.length - 1), T = te.concat(T)), C(T), T = T.join("/")), L && se && (ee || ie)) {
18065
18058
  U = T.split("/");
18066
18059
  e:
18067
18060
  for (G = U.length; G > 0; G -= 1) {
18068
18061
  if (W = U.slice(0, G).join("/"), ee) {
18069
18062
  for (H = ee.length; H > 0; H -= 1)
18070
- if (E = getOwn(se, ee.slice(0, H).join("/")), E && (E = getOwn(E, W), E)) {
18071
- J = E, Y = G;
18063
+ if (V = getOwn(se, ee.slice(0, H).join("/")), V && (V = getOwn(V, W), V)) {
18064
+ J = V, Y = G;
18072
18065
  break e;
18073
18066
  }
18074
18067
  }
@@ -18096,15 +18089,15 @@ https://requirejs.org/docs/errors.html#` + e);
18096
18089
  return L > -1 && (N = T.substring(0, L), T = T.substring(L + 1, T.length)), [N, T];
18097
18090
  }
18098
18091
  function I(T, N, L, q) {
18099
- var E, U, G, H, W = null, X = N ? N.name : null, J = T, Y = !0, Q = "";
18092
+ var V, U, G, H, W = null, X = N ? N.name : null, J = T, Y = !0, Q = "";
18100
18093
  return T || (Y = !1, T = "_@r" + (g += 1)), H = v(T), W = H[0], T = H[1], W && (W = S(W, X, q), U = getOwn(p, W)), T && (W ? L ? Q = T : U && U.normalize ? Q = U.normalize(T, function(Z) {
18101
18094
  return S(Z, X, q);
18102
- }) : Q = T.indexOf("!") === -1 ? S(T, X, q) : T : (Q = S(T, X, q), H = v(Q), W = H[0], Q = H[1], L = !0, E = n.nameToUrl(Q))), G = W && !U && !L ? "_unnormalized" + (f += 1) : "", {
18095
+ }) : Q = T.indexOf("!") === -1 ? S(T, X, q) : T : (Q = S(T, X, q), H = v(Q), W = H[0], Q = H[1], L = !0, V = n.nameToUrl(Q))), G = W && !U && !L ? "_unnormalized" + (f += 1) : "", {
18103
18096
  prefix: W,
18104
18097
  name: Q,
18105
18098
  parentMap: N,
18106
18099
  unnormalized: !!G,
18107
- url: E,
18100
+ url: V,
18108
18101
  originalName: J,
18109
18102
  isDefine: Y,
18110
18103
  id: (W ? W + "!" + Q : Q) + G
@@ -18115,13 +18108,13 @@ https://requirejs.org/docs/errors.html#` + e);
18115
18108
  return L || (L = l[N] = new n.Module(T)), L;
18116
18109
  }
18117
18110
  function k(T, N, L) {
18118
- var q = T.id, E = getOwn(l, q);
18119
- hasProp(p, q) && (!E || E.defineEmitComplete) ? N === "defined" && L(p[q]) : (E = w(T), E.error && N === "error" ? L(E.error) : E.on(N, L));
18111
+ var q = T.id, V = getOwn(l, q);
18112
+ hasProp(p, q) && (!V || V.defineEmitComplete) ? N === "defined" && L(p[q]) : (V = w(T), V.error && N === "error" ? L(V.error) : V.on(N, L));
18120
18113
  }
18121
18114
  function A(T, N) {
18122
18115
  var L = T.requireModules, q = !1;
18123
- N ? N(T) : (each(L, function(E) {
18124
- var U = getOwn(l, E);
18116
+ N ? N(T) : (each(L, function(V) {
18117
+ var U = getOwn(l, V);
18125
18118
  U && (U.error = T, U.events.error && (q = !0, U.emit("error", T)));
18126
18119
  }), q || req.onError(T));
18127
18120
  }
@@ -18155,24 +18148,24 @@ https://requirejs.org/docs/errors.html#` + e);
18155
18148
  }
18156
18149
  function z(T, N, L) {
18157
18150
  var q = T.map.id;
18158
- T.error ? T.emit("error", T.error) : (N[q] = !0, each(T.depMaps, function(E, U) {
18159
- var G = E.id, H = getOwn(l, G);
18151
+ T.error ? T.emit("error", T.error) : (N[q] = !0, each(T.depMaps, function(V, U) {
18152
+ var G = V.id, H = getOwn(l, G);
18160
18153
  H && !T.depMatched[U] && !L[G] && (getOwn(N, G) ? (T.defineDep(U, p[G]), T.check()) : z(H, N, L));
18161
18154
  }), L[q] = !0);
18162
18155
  }
18163
18156
  function O() {
18164
- var T, N, L = a.waitSeconds * 1e3, q = L && n.startTime + L < (/* @__PURE__ */ new Date()).getTime(), E = [], U = [], G = !1, H = !0;
18157
+ var T, N, L = a.waitSeconds * 1e3, q = L && n.startTime + L < (/* @__PURE__ */ new Date()).getTime(), V = [], U = [], G = !1, H = !0;
18165
18158
  if (!t) {
18166
18159
  if (t = !0, eachProp(c, function(W) {
18167
18160
  var X = W.map, J = X.id;
18168
18161
  if (W.enabled && (X.isDefine || U.push(W), !W.error)) {
18169
18162
  if (!W.inited && q)
18170
- y(J) ? (N = !0, G = !0) : (E.push(J), b(J));
18163
+ y(J) ? (N = !0, G = !0) : (V.push(J), b(J));
18171
18164
  else if (!W.inited && W.fetched && X.isDefine && (G = !0, !X.prefix))
18172
18165
  return H = !1;
18173
18166
  }
18174
- }), q && E.length)
18175
- return T = makeError("timeout", "Load timeout for modules: " + E, null, E), T.contextName = n.contextName, A(T);
18167
+ }), q && V.length)
18168
+ return T = makeError("timeout", "Load timeout for modules: " + V, null, V), T.contextName = n.contextName, A(T);
18176
18169
  H && each(U, function(W) {
18177
18170
  z(W, {}, {});
18178
18171
  }), (!q || N) && G && (isBrowser || isWebWorker) && !i && (i = setTimeout(function() {
@@ -18184,8 +18177,8 @@ https://requirejs.org/docs/errors.html#` + e);
18184
18177
  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;
18185
18178
  }, o.prototype = {
18186
18179
  init: function(T, N, L, q) {
18187
- q = q || {}, !this.inited && (this.factory = N, L ? this.on("error", L) : this.events.error && (L = bind(this, function(E) {
18188
- this.emit("error", E);
18180
+ q = q || {}, !this.inited && (this.factory = N, L ? this.on("error", L) : this.events.error && (L = bind(this, function(V) {
18181
+ this.emit("error", V);
18189
18182
  })), this.depMaps = T && T.slice(0), this.errback = L, this.inited = !0, this.ignore = q.ignore, q.enabled || this.enabled ? this.enable() : this.check());
18190
18183
  },
18191
18184
  defineDep: function(T, N) {
@@ -18215,7 +18208,7 @@ https://requirejs.org/docs/errors.html#` + e);
18215
18208
  */
18216
18209
  check: function() {
18217
18210
  if (!(!this.enabled || this.enabling)) {
18218
- var T, N, L = this.map.id, q = this.depExports, E = this.exports, U = this.factory;
18211
+ var T, N, L = this.map.id, q = this.depExports, V = this.exports, U = this.factory;
18219
18212
  if (!this.inited)
18220
18213
  hasProp(n.defQueueMap, L) || this.fetch();
18221
18214
  else if (this.error)
@@ -18225,17 +18218,17 @@ https://requirejs.org/docs/errors.html#` + e);
18225
18218
  if (isFunction(U)) {
18226
18219
  if (this.events.error && this.map.isDefine || req.onError !== defaultOnError)
18227
18220
  try {
18228
- E = n.execCb(L, U, q, E);
18221
+ V = n.execCb(L, U, q, V);
18229
18222
  } catch (H) {
18230
18223
  T = H;
18231
18224
  }
18232
18225
  else
18233
- E = n.execCb(L, U, q, E);
18234
- if (this.map.isDefine && E === void 0 && (N = this.module, N ? E = N.exports : this.usingExports && (E = this.exports)), T)
18226
+ V = n.execCb(L, U, q, V);
18227
+ if (this.map.isDefine && V === void 0 && (N = this.module, N ? V = N.exports : this.usingExports && (V = this.exports)), T)
18235
18228
  return T.requireMap = this.map, T.requireModules = this.map.isDefine ? [this.map.id] : null, T.requireType = this.map.isDefine ? "define" : "require", A(this.error = T);
18236
18229
  } else
18237
- E = U;
18238
- if (this.exports = E, this.map.isDefine && !this.ignore && (p[L] = E, req.onResourceLoad)) {
18230
+ V = U;
18231
+ if (this.exports = V, this.map.isDefine && !this.ignore && (p[L] = V, req.onResourceLoad)) {
18239
18232
  var G = [];
18240
18233
  each(this.depMaps, function(H) {
18241
18234
  G.push(H.normalizedMap || H);
@@ -18250,7 +18243,7 @@ https://requirejs.org/docs/errors.html#` + e);
18250
18243
  callPlugin: function() {
18251
18244
  var T = this.map, N = T.id, L = I(T.prefix);
18252
18245
  this.depMaps.push(L), k(L, "defined", bind(this, function(q) {
18253
- var E, U, G, H = getOwn(h, this.map.id), W = this.map.name, X = this.map.parentMap ? this.map.parentMap.name : null, J = n.makeRequire(T.parentMap, {
18246
+ var V, U, G, H = getOwn(h, this.map.id), W = this.map.name, X = this.map.parentMap ? this.map.parentMap.name : null, J = n.makeRequire(T.parentMap, {
18254
18247
  enableBuildCallback: !0
18255
18248
  });
18256
18249
  if (this.map.unnormalized) {
@@ -18280,17 +18273,17 @@ https://requirejs.org/docs/errors.html#` + e);
18280
18273
  this.map.url = n.nameToUrl(H), this.load();
18281
18274
  return;
18282
18275
  }
18283
- E = bind(this, function(Y) {
18276
+ V = bind(this, function(Y) {
18284
18277
  this.init([], function() {
18285
18278
  return Y;
18286
18279
  }, null, {
18287
18280
  enabled: !0
18288
18281
  });
18289
- }), E.error = bind(this, function(Y) {
18282
+ }), V.error = bind(this, function(Y) {
18290
18283
  this.inited = !0, this.error = Y, Y.requireModules = [N], eachProp(l, function(Q) {
18291
18284
  Q.map.id.indexOf(N + "_unnormalized") === 0 && B(Q.map.id);
18292
18285
  }), A(Y);
18293
- }), E.fromText = bind(this, function(Y, Q) {
18286
+ }), V.fromText = bind(this, function(Y, Q) {
18294
18287
  var Z = T.name, te = I(Z), ee = useInteractive;
18295
18288
  Q && (Y = Q), ee && (useInteractive = !1), w(te), hasProp(a.config, N) && (a.config[Z] = a.config[N]);
18296
18289
  try {
@@ -18303,21 +18296,21 @@ https://requirejs.org/docs/errors.html#` + e);
18303
18296
  [N]
18304
18297
  ));
18305
18298
  }
18306
- ee && (useInteractive = !0), this.depMaps.push(te), n.completeLoad(Z), J([Z], E);
18307
- }), q.load(T.name, J, E, a);
18299
+ ee && (useInteractive = !0), this.depMaps.push(te), n.completeLoad(Z), J([Z], V);
18300
+ }), q.load(T.name, J, V, a);
18308
18301
  })), n.enable(L, this), this.pluginMaps[L.id] = L;
18309
18302
  },
18310
18303
  enable: function() {
18311
18304
  c[this.map.id] = this, this.enabled = !0, this.enabling = !0, each(this.depMaps, bind(this, function(T, N) {
18312
- var L, q, E;
18305
+ var L, q, V;
18313
18306
  if (typeof T == "string") {
18314
18307
  if (T = I(
18315
18308
  T,
18316
18309
  this.map.isDefine ? this.map : this.map.parentMap,
18317
18310
  !1,
18318
18311
  !this.skipMap
18319
- ), this.depMaps[N] = T, E = getOwn(r, T.id), E) {
18320
- this.depExports[N] = E(this);
18312
+ ), this.depMaps[N] = T, V = getOwn(r, T.id), V) {
18313
+ this.depExports[N] = V(this);
18321
18314
  return;
18322
18315
  }
18323
18316
  this.depCount += 1, k(T, "defined", bind(this, function(U) {
@@ -18383,7 +18376,7 @@ https://requirejs.org/docs/errors.html#` + e);
18383
18376
  configure: function(T) {
18384
18377
  if (T.baseUrl && T.baseUrl.charAt(T.baseUrl.length - 1) !== "/" && (T.baseUrl += "/"), typeof T.urlArgs == "string") {
18385
18378
  var N = T.urlArgs;
18386
- T.urlArgs = function(E, U) {
18379
+ T.urlArgs = function(V, U) {
18387
18380
  return (U.indexOf("?") === -1 ? "?" : "&") + N;
18388
18381
  };
18389
18382
  }
@@ -18393,21 +18386,21 @@ https://requirejs.org/docs/errors.html#` + e);
18393
18386
  config: !0,
18394
18387
  map: !0
18395
18388
  };
18396
- eachProp(T, function(E, U) {
18397
- q[U] ? (a[U] || (a[U] = {}), mixin(a[U], E, !0, !0)) : a[U] = E;
18398
- }), T.bundles && eachProp(T.bundles, function(E, U) {
18399
- each(E, function(G) {
18389
+ eachProp(T, function(V, U) {
18390
+ q[U] ? (a[U] || (a[U] = {}), mixin(a[U], V, !0, !0)) : a[U] = V;
18391
+ }), T.bundles && eachProp(T.bundles, function(V, U) {
18392
+ each(V, function(G) {
18400
18393
  G !== U && (h[G] = U);
18401
18394
  });
18402
- }), T.shim && (eachProp(T.shim, function(E, U) {
18403
- isArray(E) && (E = {
18404
- deps: E
18405
- }), (E.exports || E.init) && !E.exportsFn && (E.exportsFn = n.makeShimExports(E)), L[U] = E;
18406
- }), a.shim = L), T.packages && each(T.packages, function(E) {
18395
+ }), T.shim && (eachProp(T.shim, function(V, U) {
18396
+ isArray(V) && (V = {
18397
+ deps: V
18398
+ }), (V.exports || V.init) && !V.exportsFn && (V.exportsFn = n.makeShimExports(V)), L[U] = V;
18399
+ }), a.shim = L), T.packages && each(T.packages, function(V) {
18407
18400
  var U, G;
18408
- E = typeof E == "string" ? { name: E } : E, G = E.name, U = E.location, U && (a.paths[G] = E.location), a.pkgs[G] = E.name + "/" + (E.main || "main").replace(currDirRegExp, "").replace(jsSuffixRegExp, "");
18409
- }), eachProp(l, function(E, U) {
18410
- !E.inited && !E.map.unnormalized && (E.map = I(U, null, !0));
18401
+ V = typeof V == "string" ? { name: V } : V, G = V.name, U = V.location, U && (a.paths[G] = V.location), a.pkgs[G] = V.name + "/" + (V.main || "main").replace(currDirRegExp, "").replace(jsSuffixRegExp, "");
18402
+ }), eachProp(l, function(V, U) {
18403
+ !V.inited && !V.map.unnormalized && (V.map = I(U, null, !0));
18411
18404
  }), (T.deps || T.callback) && n.require(T.deps || [], T.callback);
18412
18405
  },
18413
18406
  makeShimExports: function(T) {
@@ -18419,10 +18412,10 @@ https://requirejs.org/docs/errors.html#` + e);
18419
18412
  },
18420
18413
  makeRequire: function(T, N) {
18421
18414
  N = N || {};
18422
- function L(q, E, U) {
18415
+ function L(q, V, U) {
18423
18416
  var G, H, W;
18424
- return N.enableBuildCallback && E && isFunction(E) && (E.__requireJsBuild = !0), typeof q == "string" ? isFunction(E) ? A(makeError("requireargs", "Invalid require call"), U) : T && hasProp(r, q) ? r[q](l[T.id]) : req.get ? req.get(n, q, T, L) : (H = I(q, T, !1, !0), G = H.id, hasProp(p, G) ? p[G] : A(makeError("notloaded", 'Module name "' + G + '" has not been loaded yet for context: ' + e + (T ? "" : ". Use require([])")))) : (M(), n.nextTick(function() {
18425
- M(), W = w(I(null, T)), W.skipMap = N.skipMap, W.init(q, E, U, {
18417
+ return N.enableBuildCallback && V && isFunction(V) && (V.__requireJsBuild = !0), typeof q == "string" ? isFunction(V) ? A(makeError("requireargs", "Invalid require call"), U) : T && hasProp(r, q) ? r[q](l[T.id]) : req.get ? req.get(n, q, T, L) : (H = I(q, T, !1, !0), G = H.id, hasProp(p, G) ? p[G] : A(makeError("notloaded", 'Module name "' + G + '" has not been loaded yet for context: ' + e + (T ? "" : ". Use require([])")))) : (M(), n.nextTick(function() {
18418
+ M(), W = w(I(null, T)), W.skipMap = N.skipMap, W.init(q, V, U, {
18426
18419
  enabled: !0
18427
18420
  }), O();
18428
18421
  }), L);
@@ -18435,12 +18428,12 @@ https://requirejs.org/docs/errors.html#` + e);
18435
18428
  * plain URLs like nameToUrl.
18436
18429
  */
18437
18430
  toUrl: function(q) {
18438
- var E, U = q.lastIndexOf("."), G = q.split("/")[0], H = G === "." || G === "..";
18439
- return U !== -1 && (!H || U > 1) && (E = q.substring(U, q.length), q = q.substring(0, U)), n.nameToUrl(S(
18431
+ var V, U = q.lastIndexOf("."), G = q.split("/")[0], H = G === "." || G === "..";
18432
+ return U !== -1 && (!H || U > 1) && (V = q.substring(U, q.length), q = q.substring(0, U)), n.nameToUrl(S(
18440
18433
  q,
18441
18434
  T && T.id,
18442
18435
  !0
18443
- ), E, !0);
18436
+ ), V, !0);
18444
18437
  },
18445
18438
  defined: function(q) {
18446
18439
  return hasProp(p, I(q, T, !1, !0).id);
@@ -18450,8 +18443,8 @@ https://requirejs.org/docs/errors.html#` + e);
18450
18443
  }
18451
18444
  }), T || (L.undef = function(q) {
18452
18445
  D();
18453
- var E = I(q, T, !0), U = getOwn(l, q);
18454
- U.undefed = !0, b(q), delete p[q], delete m[E.url], delete u[q], eachReverse(d, function(G, H) {
18446
+ var V = I(q, T, !0), U = getOwn(l, q);
18447
+ U.undefed = !0, b(q), delete p[q], delete m[V.url], delete u[q], eachReverse(d, function(G, H) {
18455
18448
  G[0] === q && d.splice(H, 1);
18456
18449
  }), delete n.defQueueMap[q], U && (U.events.defined && (u[q] = U.events), B(q));
18457
18450
  }), L;
@@ -18473,7 +18466,7 @@ https://requirejs.org/docs/errors.html#` + e);
18473
18466
  * @param {String} moduleName the name of the module to potentially complete.
18474
18467
  */
18475
18468
  completeLoad: function(T) {
18476
- var N, L, q, E = getOwn(a.shim, T) || {}, U = E.exports;
18469
+ var N, L, q, V = getOwn(a.shim, T) || {}, U = V.exports;
18477
18470
  for (D(); d.length; ) {
18478
18471
  if (L = d.shift(), L[0] === null) {
18479
18472
  if (L[0] = T, N)
@@ -18491,7 +18484,7 @@ https://requirejs.org/docs/errors.html#` + e);
18491
18484
  null,
18492
18485
  [T]
18493
18486
  ));
18494
- j([T, E.deps || [], E.exportsFn]);
18487
+ j([T, V.deps || [], V.exportsFn]);
18495
18488
  }
18496
18489
  O();
18497
18490
  },
@@ -18503,18 +18496,18 @@ https://requirejs.org/docs/errors.html#` + e);
18503
18496
  * internal API, not a public one. Use toUrl for the public API.
18504
18497
  */
18505
18498
  nameToUrl: function(T, N, L) {
18506
- var q, E, U, G, H, W, X, J = getOwn(a.pkgs, T);
18499
+ var q, V, U, G, H, W, X, J = getOwn(a.pkgs, T);
18507
18500
  if (J && (T = J), X = getOwn(h, T), X)
18508
18501
  return n.nameToUrl(X, N, L);
18509
18502
  if (req.jsExtRegExp.test(T))
18510
18503
  H = T + (N || "");
18511
18504
  else {
18512
- for (q = a.paths, E = T.split("/"), U = E.length; U > 0; U -= 1)
18513
- if (G = E.slice(0, U).join("/"), W = getOwn(q, G), W) {
18514
- isArray(W) && (W = W[0]), E.splice(0, U, W);
18505
+ for (q = a.paths, V = T.split("/"), U = V.length; U > 0; U -= 1)
18506
+ if (G = V.slice(0, U).join("/"), W = getOwn(q, G), W) {
18507
+ isArray(W) && (W = W[0]), V.splice(0, U, W);
18515
18508
  break;
18516
18509
  }
18517
- H = E.join("/"), H += N || (/^data\:|^blob\:|\?/.test(H) || L ? "" : ".js"), H = (H.charAt(0) === "/" || H.match(/^[\w\+\.\-]+:/) ? "" : a.baseUrl) + H;
18510
+ H = V.join("/"), H += N || (/^data\:|^blob\:|\?/.test(H) || L ? "" : ".js"), H = (H.charAt(0) === "/" || H.match(/^[\w\+\.\-]+:/) ? "" : a.baseUrl) + H;
18518
18511
  }
18519
18512
  return a.urlArgs && !/^blob\:/.test(H) ? H + a.urlArgs(T, H) : H;
18520
18513
  },
@@ -18553,10 +18546,10 @@ https://requirejs.org/docs/errors.html#` + e);
18553
18546
  var N = $(T);
18554
18547
  if (!y(N.id)) {
18555
18548
  var L = [];
18556
- return eachProp(l, function(q, E) {
18557
- E.indexOf("_@r") !== 0 && each(q.depMaps, function(U) {
18549
+ return eachProp(l, function(q, V) {
18550
+ V.indexOf("_@r") !== 0 && each(q.depMaps, function(U) {
18558
18551
  if (U.id === N.id)
18559
- return L.push(E), !0;
18552
+ return L.push(V), !0;
18560
18553
  });
18561
18554
  }), A(makeError("scripterror", 'Script error for "' + N.id + (L.length ? '", needed by: ' + L.join(", ") : '"'), T, [N.id]));
18562
18555
  }
@@ -18800,7 +18793,7 @@ class Application {
18800
18793
  });
18801
18794
  }
18802
18795
  load() {
18803
- return V(this, null, function* () {
18796
+ return E(this, null, function* () {
18804
18797
  let t = !1;
18805
18798
  this.ws.on("message", (o) => {
18806
18799
  var i, a, l;
@@ -19121,7 +19114,7 @@ const useCollectionManager_deprecated = (e) => {
19121
19114
  cached: N = {},
19122
19115
  collectionNames: L = [R],
19123
19116
  maxDepth: q = 1,
19124
- allowAllTypes: E = !1,
19117
+ allowAllTypes: V = !1,
19125
19118
  exceptInterfaces: U = [],
19126
19119
  prefixFieldValue: G = "",
19127
19120
  usePrefix: H = !1,
@@ -19133,7 +19126,7 @@ const useCollectionManager_deprecated = (e) => {
19133
19126
  return _.cloneDeep(N[R]);
19134
19127
  typeof $ == "string" && ($ = [$]);
19135
19128
  const X = S(R, W), J = (Y = X == null ? void 0 : X.filter(
19136
- (Q) => Q.interface && !U.includes(Q.interface) && (E || $.includes(Q.type) || (T && Q.target && Q.target !== R && Array.isArray(T) ? T.includes(Q.interface) : !1))
19129
+ (Q) => Q.interface && !U.includes(Q.interface) && (V || $.includes(Q.type) || (T && Q.target && Q.target !== R && Array.isArray(T) ? T.includes(Q.interface) : !1))
19137
19130
  )) == null ? void 0 : Y.map((Q) => {
19138
19131
  var te, ee;
19139
19132
  const Z = x({
@@ -19277,7 +19270,7 @@ function FormDialog(e, t, o, n) {
19277
19270
  var S;
19278
19271
  ((S = l == null ? void 0 : l.onCancel) == null ? void 0 : S.call(l, C)) !== !1 && (h == null || h());
19279
19272
  },
19280
- onOk: (C) => V(this, null, function* () {
19273
+ onOk: (C) => E(this, null, function* () {
19281
19274
  var S;
19282
19275
  ((S = l == null ? void 0 : l.onOk) == null ? void 0 : S.call(l, C)) !== !1 && (m == null || m());
19283
19276
  }),
@@ -19291,8 +19284,8 @@ function FormDialog(e, t, o, n) {
19291
19284
  forOpen: (p) => (isFn(p) && r.openMiddlewares.push(p), d),
19292
19285
  forConfirm: (p) => (isFn(p) && r.confirmMiddlewares.push(p), d),
19293
19286
  forCancel: (p) => (isFn(p) && r.cancelMiddlewares.push(p), d),
19294
- open: (p) => V(this, null, function* () {
19295
- return r.promise || (r.promise = new Promise((m, h) => V(this, null, function* () {
19287
+ open: (p) => E(this, null, function* () {
19288
+ return r.promise || (r.promise = new Promise((m, h) => E(this, null, function* () {
19296
19289
  try {
19297
19290
  p = yield loading(l.loadingText, () => applyMiddleware(p, r.openMiddlewares)), r.form = r.form || createForm(p);
19298
19291
  } catch (g) {
@@ -19303,7 +19296,7 @@ function FormDialog(e, t, o, n) {
19303
19296
  !0,
19304
19297
  () => {
19305
19298
  var g;
19306
- (g = r.form) == null || g.submit(() => V(this, null, function* () {
19299
+ (g = r.form) == null || g.submit(() => E(this, null, function* () {
19307
19300
  yield applyMiddleware(r.form, r.confirmMiddlewares), untracked(() => {
19308
19301
  var f;
19309
19302
  m(x({}, (f = r.form) == null ? void 0 : f.values));
@@ -19311,7 +19304,7 @@ function FormDialog(e, t, o, n) {
19311
19304
  })).catch(() => {
19312
19305
  });
19313
19306
  },
19314
- () => V(this, null, function* () {
19307
+ () => E(this, null, function* () {
19315
19308
  yield loading(l.loadingText, () => applyMiddleware(r.form, r.cancelMiddlewares)), d.close();
19316
19309
  })
19317
19310
  )
@@ -19655,7 +19648,7 @@ const findOption$1 = (e = [], t) => {
19655
19648
  (A, D) => {
19656
19649
  if (!u)
19657
19650
  return o(A);
19658
- setTimeout(() => V(void 0, null, function* () {
19651
+ setTimeout(() => E(void 0, null, function* () {
19659
19652
  (yield u(A, D)) && o(A);
19660
19653
  }));
19661
19654
  },
@@ -19685,7 +19678,7 @@ const findOption$1 = (e = [], t) => {
19685
19678
  getAllCollectionsInheritChain: n
19686
19679
  }) => {
19687
19680
  const r = e ? n(e.target) : [];
19688
- return (i, a) => V(void 0, null, function* () {
19681
+ return (i, a) => E(void 0, null, function* () {
19689
19682
  if (_.isString(i) && i.includes("$nRole") || !isVariable(i) || !t || !e || e.interface === "json")
19690
19683
  return !0;
19691
19684
  const l = a[a.length - 1];
@@ -20349,7 +20342,7 @@ const EnableChildCollections = withDynamicSchemaProps(
20349
20342
  d.dataSource = m, d.loading = !1, d.initialValue && (d.disabled = !0);
20350
20343
  })
20351
20344
  );
20352
- }, c = (u) => V(void 0, null, function* () {
20345
+ }, c = (u) => E(void 0, null, function* () {
20353
20346
  var p, m;
20354
20347
  const { childrenCollections: d } = ((p = n.values) == null ? void 0 : p.enableChildren) || {};
20355
20348
  return (m = a.filter((h) => !d.find((g) => g.collection === h.name) || u.initialValue || h.name === u.value)) == null ? void 0 : m.map((h) => ({
@@ -21269,7 +21262,7 @@ const SchemaSettingsProvider = (e) => {
21269
21262
  SchemaSettingsItem,
21270
21263
  {
21271
21264
  title: "Convert reference to duplicate",
21272
- onClick: () => V(this, null, function* () {
21265
+ onClick: () => E(this, null, function* () {
21273
21266
  const S = yield f(p), b = findBlockTemplateSchema(m), y = createDesignable({
21274
21267
  t: a,
21275
21268
  api: h,
@@ -21278,7 +21271,7 @@ const SchemaSettingsProvider = (e) => {
21278
21271
  });
21279
21272
  y.loadAPIClientEvents(), y.removeWithoutEmit(b), y.insertAdjacent(o, S, {
21280
21273
  onSuccess() {
21281
- return V(this, null, function* () {
21274
+ return E(this, null, function* () {
21282
21275
  yield h.request({
21283
21276
  url: `/uiSchemas:remove/${b["x-uid"]}`
21284
21277
  });
@@ -21299,7 +21292,7 @@ const SchemaSettingsProvider = (e) => {
21299
21292
  SchemaSettingsItem,
21300
21293
  {
21301
21294
  title: "Save as block template",
21302
- onClick: () => V(this, null, function* () {
21295
+ onClick: () => E(this, null, function* () {
21303
21296
  d(!1);
21304
21297
  const S = r && c(r), b = findGridSchema(m), y = yield FormDialog(
21305
21298
  a("Save as template"),
@@ -21414,7 +21407,7 @@ const SchemaSettingsProvider = (e) => {
21414
21407
  content: c("Are you sure you want to delete it?")
21415
21408
  }, o), {
21416
21409
  onOk() {
21417
- return V(this, null, function* () {
21410
+ return E(this, null, function* () {
21418
21411
  var y;
21419
21412
  const b = {
21420
21413
  removeParentsIfNoChildren: r,
@@ -21523,7 +21516,7 @@ const SchemaSettingsProvider = (e) => {
21523
21516
  }, [JSON.stringify(r || {})]);
21524
21517
  const B = useCallback(() => {
21525
21518
  h(!1), D.reset();
21526
- }, [D]), z = useCallback(() => V(void 0, null, function* () {
21519
+ }, [D]), z = useCallback(() => E(void 0, null, function* () {
21527
21520
  yield D.submit();
21528
21521
  try {
21529
21522
  const $ = D.values, M = Object.keys($).reduce((T, N) => (D.query(N).take() && (T[N] = $[N]), T), {});
@@ -21531,7 +21524,7 @@ const SchemaSettingsProvider = (e) => {
21531
21524
  } catch ($) {
21532
21525
  console.error($);
21533
21526
  }
21534
- }), [D, o]), O = useCallback(() => V(void 0, null, function* () {
21527
+ }), [D, o]), O = useCallback(() => E(void 0, null, function* () {
21535
21528
  !g && (a != null && a["x-uid"]) && (S["x-action-settings"].schemaUid = a["x-uid"], y.emit("patch", { schema: S }), yield I.resource("uiSchemas").insert({ values: a }), f(a["x-uid"])), typeof i == "function" && (i == null || i()), b.setVisible(!1), h(!0);
21536
21529
  }), [I, b, y, S, a, g]), j = useCallback(($) => $.stopPropagation(), []);
21537
21530
  return /* @__PURE__ */ jsxs(zIndexContext.Provider, { value: A, children: [
@@ -21604,10 +21597,10 @@ const SchemaSettingsModalItem = (e) => {
21604
21597
  F(x({
21605
21598
  title: o
21606
21599
  }, m), {
21607
- onClick: () => V(void 0, null, function* () {
21608
- const q = l ? yield l() : c, E = _.isFunction(e.schema) ? e.schema() : e.schema;
21600
+ onClick: () => E(void 0, null, function* () {
21601
+ const q = l ? yield l() : c, V = _.isFunction(e.schema) ? e.schema() : e.schema;
21609
21602
  FormDialog(
21610
- { title: E.title || o, width: u },
21603
+ { title: V.title || o, width: u },
21611
21604
  () => /* @__PURE__ */ jsx(p, { children: /* @__PURE__ */ jsx(CollectOperators, { defaultOperators: z(), children: /* @__PURE__ */ jsx(VariablesContext.Provider, { value: j, children: /* @__PURE__ */ jsx(BlockContext.Provider, { value: B, children: /* @__PURE__ */ jsx(
21612
21605
  VariablePopupRecordProvider,
21613
21606
  {
@@ -21648,7 +21641,7 @@ const SchemaSettingsModalItem = (e) => {
21648
21641
  {
21649
21642
  components: n,
21650
21643
  scope: r,
21651
- schema: E
21644
+ schema: V
21652
21645
  }
21653
21646
  ) }) }) })
21654
21647
  }
@@ -21677,7 +21670,7 @@ const SchemaSettingsModalItem = (e) => {
21677
21670
  } : {
21678
21671
  field: h,
21679
21672
  direction: "asc"
21680
- }), p = useSortFields(t.name || c), m = (g) => V(this, [g], function* ({ sort: h }) {
21673
+ }), p = useSortFields(t.name || c), m = (g) => E(this, [g], function* ({ sort: h }) {
21681
21674
  var C;
21682
21675
  if (t != null && t.onSubmit)
21683
21676
  return t.onSubmit({ sort: h });
@@ -22519,8 +22512,8 @@ const getActionContext = (e) => {
22519
22512
  ));
22520
22513
  const D = (k == null ? void 0 : k.interface) === "m2o" && findParentFieldSchema(n), B = D && p(D == null ? void 0 : D["x-collection-field"]), z = useTableBlockContext(), O = (k == null ? void 0 : k.interface) === "m2m" || (B == null ? void 0 : B.type) === "hasMany" && (k == null ? void 0 : k.interface) === "m2o", j = useCallback(
22521
22514
  (q) => {
22522
- const E = q.find((G) => G.value === "$nForm"), U = m(w);
22523
- return !(U != null && U.length) && E && (E.children = formatVariableScop(y())), q;
22515
+ const V = q.find((G) => G.value === "$nForm"), U = m(w);
22516
+ return !(U != null && U.length) && V && (V.children = formatVariableScop(y())), q;
22524
22517
  },
22525
22518
  [y, w]
22526
22519
  ), R = useMemo(() => ({
@@ -22555,7 +22548,7 @@ const getActionContext = (e) => {
22555
22548
  localVariables: f,
22556
22549
  getAllCollectionsInheritChain: h
22557
22550
  }),
22558
- renderSchemaComponent: function(E) {
22551
+ renderSchemaComponent: function(V) {
22559
22552
  const U = useMemo(() => _.cloneDeep(A) || {}, []);
22560
22553
  U["x-read-pretty"] = !1, U["x-disabled"] = !1, _.set(U, "x-decorator-props.showTitle", !1);
22561
22554
  const G = getFieldDefaultValue(U, k);
@@ -22577,7 +22570,7 @@ const getActionContext = (e) => {
22577
22570
  }),
22578
22571
  [U, G]
22579
22572
  );
22580
- return _.set(H, "x-component-props.onChange", E.onChange), /* @__PURE__ */ jsx(FormProvider, { children: /* @__PURE__ */ jsx(SchemaComponent, { schema: H }) });
22573
+ return _.set(H, "x-component-props.onChange", V.onChange), /* @__PURE__ */ jsx(FormProvider, { children: /* @__PURE__ */ jsx(SchemaComponent, { schema: H }) });
22581
22574
  }
22582
22575
  }),
22583
22576
  title: a("Default value"),
@@ -22601,11 +22594,11 @@ const getActionContext = (e) => {
22601
22594
  ]), M = useCallback(
22602
22595
  (q) => {
22603
22596
  var U, G, H;
22604
- const E = {
22597
+ const V = {
22605
22598
  "x-uid": n["x-uid"]
22606
22599
  };
22607
- n.default = (U = q.default) != null ? U : null, isVariable(q.default) || (G = r.setInitialValue) == null || G.call(r, q.default), E.default = (H = q.default) != null ? H : null, i.emit("patch", {
22608
- schema: E,
22600
+ n.default = (U = q.default) != null ? U : null, isVariable(q.default) || (G = r.setInitialValue) == null || G.call(r, q.default), V.default = (H = q.default) != null ? H : null, i.emit("patch", {
22601
+ schema: V,
22609
22602
  currentSchema: o
22610
22603
  });
22611
22604
  },
@@ -22894,7 +22887,7 @@ const FilterAction = withDynamicSchemaProps(
22894
22887
  /* @__PURE__ */ jsx(
22895
22888
  Button,
22896
22889
  {
22897
- onClick: () => V(void 0, null, function* () {
22890
+ onClick: () => E(void 0, null, function* () {
22898
22891
  yield u.reset(), m == null || m(u.values), o.title = c(l.title) || t("Filter"), r(!1);
22899
22892
  }),
22900
22893
  children: t("Reset")
@@ -23363,7 +23356,7 @@ const useGetFilterOptions = () => {
23363
23356
  };
23364
23357
  });
23365
23358
  }, TableColumnDesigner$1 = (e) => {
23366
- var z, O, j, R, $, M, T, N, L, q, E, U;
23359
+ var z, O, j, R, $, M, T, N, L, q, V, U;
23367
23360
  const { uiSchema: t, fieldSchema: o, collectionField: n } = e, { form: r } = useFormBlockContext(), { getInterface: i, getCollection: a } = useCollectionManager_deprecated(), l = useField(), { t: c } = useTranslation(), u = useFieldSchema(), { dn: d } = useDesignable(), p = ((z = o == null ? void 0 : o["x-component-props"]) == null ? void 0 : z.fieldNames) || ((O = t == null ? void 0 : t["x-component-props"]) == null ? void 0 : O.fieldNames), m = useLabelFields$1((j = n == null ? void 0 : n.target) != null ? j : n == null ? void 0 : n.targetCollection), h = useColorFields((R = n == null ? void 0 : n.target) != null ? R : n == null ? void 0 : n.targetCollection), g = i(n == null ? void 0 : n.interface), f = a(n == null ? void 0 : n.target), C = isFileCollection$2(f), S = ["QuickEdit", "FormItem"].includes(o["x-decorator"]), { currentMode: b } = useAssociationFieldContext(), { isAllowToSetDefaultValue: y } = useIsAllowToSetDefaultValue({ collectionField: n, fieldSchema: o }), v = ["datetime", "createdAt", "updatedAt"].includes(n == null ? void 0 : n.interface), I = ["obo", "oho", "o2o", "o2m", "m2m", "m2o", "snapshot"].includes(
23368
23361
  n == null ? void 0 : n.interface
23369
23362
  ), w = useFieldModeOptions({ fieldSchema: o }), k = (($ = o == null ? void 0 : o["x-component-props"]) == null ? void 0 : $.mode) || "Select";
@@ -23475,7 +23468,7 @@ const useGetFilterOptions = () => {
23475
23468
  SchemaSettingsSwitchItem,
23476
23469
  {
23477
23470
  title: c("Enable link"),
23478
- checked: ((E = o["x-component-props"]) == null ? void 0 : E.enableLink) !== !1,
23471
+ checked: ((V = o["x-component-props"]) == null ? void 0 : V.enableLink) !== !1,
23479
23472
  onChange: (G) => {
23480
23473
  o["x-component-props"] = F(x({}, o == null ? void 0 : o["x-component-props"]), {
23481
23474
  enableLink: G
@@ -24391,7 +24384,7 @@ const useCurrentUserContext = () => useContext(CurrentUserContext), useCurrentRo
24391
24384
  },
24392
24385
  options: t,
24393
24386
  defaultValue: e.auth.role,
24394
- onChange: (r) => V(void 0, null, function* () {
24387
+ onChange: (r) => E(void 0, null, function* () {
24395
24388
  e.auth.setRole(r), yield e.resource("users").setDefaultRole({ values: { roleName: r } }), location.reload(), window.location.reload();
24396
24389
  })
24397
24390
  }
@@ -24410,7 +24403,7 @@ const useCurrentUserContext = () => useContext(CurrentUserContext), useCurrentRo
24410
24403
  };
24411
24404
  }, [(o = e == null ? void 0 : e.data) == null ? void 0 : o.email, (n = e == null ? void 0 : e.data) == null ? void 0 : n.nickname, (r = e == null ? void 0 : e.data) == null ? void 0 : r.username, e == null ? void 0 : e.data.version, t.colorTextDescription]);
24412
24405
  }, SettingsMenu$1 = (e) => {
24413
- const { addMenuItem: t, getMenuItems: o } = useCurrentUserSettingsMenu(), { redirectUrl: n = "" } = e, { allowAll: r, snippets: i } = useACLRoleContext(), a = r || (i == null ? void 0 : i.includes("app")), l = useNavigateNoUpdate(), c = useAPIClient(), { t: u } = useTranslation(), d = useAPIClient(), p = useCallback(() => V(void 0, null, function* () {
24406
+ const { addMenuItem: t, getMenuItems: o } = useCurrentUserSettingsMenu(), { redirectUrl: n = "" } = e, { allowAll: r, snippets: i } = useACLRoleContext(), a = r || (i == null ? void 0 : i.includes("app")), l = useNavigateNoUpdate(), c = useAPIClient(), { t: u } = useTranslation(), d = useAPIClient(), p = useCallback(() => E(void 0, null, function* () {
24414
24407
  return yield new Promise((y) => {
24415
24408
  const v = setInterval(() => {
24416
24409
  d.silent().resource("app").getInfo().then((I) => ((I == null ? void 0 : I.status) === 200 && (y("ok"), clearInterval(v)), I)).catch((I) => {
@@ -24422,14 +24415,14 @@ const useCurrentUserContext = () => useContext(CurrentUserContext), useCurrentRo
24422
24415
  {
24423
24416
  key: "cache",
24424
24417
  label: u("Clear cache"),
24425
- onClick: () => V(void 0, null, function* () {
24418
+ onClick: () => E(void 0, null, function* () {
24426
24419
  yield c.resource("app").clearCache(), window.location.reload();
24427
24420
  })
24428
24421
  },
24429
24422
  {
24430
24423
  key: "reboot",
24431
24424
  label: u("Restart application"),
24432
- onClick: () => V(void 0, null, function* () {
24425
+ onClick: () => E(void 0, null, function* () {
24433
24426
  S.confirm({
24434
24427
  title: u("Restart application"),
24435
24428
  // content: t('The will interrupt service, it may take a few seconds to restart. Are you sure to continue?'),
@@ -24437,7 +24430,7 @@ const useCurrentUserContext = () => useContext(CurrentUserContext), useCurrentRo
24437
24430
  okButtonProps: {
24438
24431
  danger: !0
24439
24432
  },
24440
- onOk: () => V(void 0, null, function* () {
24433
+ onOk: () => E(void 0, null, function* () {
24441
24434
  yield c.resource("app").restart();
24442
24435
  })
24443
24436
  });
@@ -24470,7 +24463,7 @@ const useCurrentUserContext = () => useContext(CurrentUserContext), useCurrentRo
24470
24463
  {
24471
24464
  key: "signout",
24472
24465
  label: u("Sign out"),
24473
- onClick: () => V(void 0, null, function* () {
24466
+ onClick: () => E(void 0, null, function* () {
24474
24467
  var I;
24475
24468
  const { data: v } = yield c.auth.signOut();
24476
24469
  (I = v == null ? void 0 : v.data) != null && I.redirect ? window.location.href = v.data.redirect : l(`/signin?redirect=${encodeURIComponent(n)}`);
@@ -24587,7 +24580,7 @@ function getFormValues({
24587
24580
  }
24588
24581
  function useCollectValuesToSubmit() {
24589
24582
  const e = useForm(), t = useFilterByTk(), { field: o, resource: n } = useBlockRequestContext(), { fields: r, getField: i, getTreeParentField: a, name: l } = useCollection_deprecated(), c = r.map((f) => f.name), { fieldSchema: u } = useActionContext(), { getActiveFieldsName: d } = useFormActiveFields() || {}, p = useVariables(), m = useLocalVariables({ currentForm: e }), h = useFieldSchema(), g = useTreeParentRecord();
24590
- return useCallback(() => V(this, null, function* () {
24583
+ return useCallback(() => E(this, null, function* () {
24591
24584
  var I, w, k, A;
24592
24585
  const { assignedValues: f = {}, overwriteValues: C } = (I = h == null ? void 0 : h["x-action-settings"]) != null ? I : {}, S = getFormValues({
24593
24586
  filterByTk: t,
@@ -24597,7 +24590,7 @@ function useCollectValuesToSubmit() {
24597
24590
  getField: i,
24598
24591
  resource: n,
24599
24592
  actionFields: (d == null ? void 0 : d("form")) || []
24600
- }), b = {}, y = Object.keys(f).map((D) => V(this, null, function* () {
24593
+ }), b = {}, y = Object.keys(f).map((D) => E(this, null, function* () {
24601
24594
  const B = f[D], z = i(D);
24602
24595
  if (isVariable(B)) {
24603
24596
  const { value: O } = (yield p == null ? void 0 : p.parseVariable(B, m)) || {};
@@ -24632,7 +24625,7 @@ const useCreateActionProps = () => {
24632
24625
  const e = useFilterByTk(), t = useCollectionRecord(), o = useForm(), { field: n, resource: r } = useBlockRequestContext(), { setVisible: i, setSubmitted: a, setFormValueChanged: l } = useActionContext(), c = useNavigateNoUpdate(), u = useFieldSchema(), d = useField(), p = useCompile(), { modal: m } = App.useApp(), { t: h } = useTranslation(), { updateAssociationValues: g } = useFormBlockContext(), f = useCollectValuesToSubmit(), C = t.isNew ? d.componentProps.saveMode || "create" : "update", S = ((b = d.componentProps.filterKeys) == null ? void 0 : b.checked) || [];
24633
24626
  return {
24634
24627
  onClick() {
24635
- return V(this, null, function* () {
24628
+ return E(this, null, function* () {
24636
24629
  var j;
24637
24630
  const { onSuccess: v, skipValidator: I, triggerWorkflows: w } = (j = u == null ? void 0 : u["x-action-settings"]) != null ? j : {}, { manualClose: k, redirecting: A, redirectTo: D, successMessage: B, actionAfterSuccess: z } = v || {};
24638
24631
  I || (yield o.submit());
@@ -24653,7 +24646,7 @@ const useCreateActionProps = () => {
24653
24646
  }
24654
24647
  k ? m.success({
24655
24648
  title: p(B),
24656
- onOk: () => V(this, null, function* () {
24649
+ onOk: () => E(this, null, function* () {
24657
24650
  yield resetFormCorrectly(o), (A && !z || z === "redirect") && D && (isURL(D) ? window.location.href = D : c(D));
24658
24651
  })
24659
24652
  }) : (message.success(p(B)), yield resetFormCorrectly(o), (A && !z || z === "redirect") && D && (isURL(D) ? window.location.href = D : c(D)));
@@ -24668,15 +24661,15 @@ const useCreateActionProps = () => {
24668
24661
  const e = useForm(), { field: t, resource: o, __parent: n } = useBlockRequestContext(), { setVisible: r, fieldSchema: i, setSubmitted: a } = useActionContext(), l = useFieldSchema(), c = useField(), { fields: u, getField: d, getTreeParentField: p, name: m } = useCollection_deprecated(), h = useCompile(), g = useFilterByTk(), f = useRecord(), C = useVariables(), S = useLocalVariables({ currentForm: e }), { getActiveFieldsName: b } = useFormActiveFields() || {}, y = c.componentProps.saveMode || "create", v = ((I = c.componentProps.filterKeys) == null ? void 0 : I.checked) || [];
24669
24662
  return {
24670
24663
  onClick() {
24671
- return V(this, null, function* () {
24672
- var N, L, q, E, U, G;
24664
+ return E(this, null, function* () {
24665
+ var N, L, q, V, U, G;
24673
24666
  const k = u.map((H) => H.name), {
24674
24667
  assignedValues: A = {},
24675
24668
  onSuccess: D,
24676
24669
  overwriteValues: B,
24677
24670
  skipValidator: z,
24678
24671
  triggerWorkflows: O
24679
- } = (N = l == null ? void 0 : l["x-action-settings"]) != null ? N : {}, j = (L = i == null ? void 0 : i["x-component-props"]) == null ? void 0 : L.addChild, { successMessage: R } = D || {}, $ = {}, M = Object.keys(A).map((H) => V(this, null, function* () {
24672
+ } = (N = l == null ? void 0 : l["x-action-settings"]) != null ? N : {}, j = (L = i == null ? void 0 : i["x-component-props"]) == null ? void 0 : L.addChild, { successMessage: R } = D || {}, $ = {}, M = Object.keys(A).map((H) => E(this, null, function* () {
24680
24673
  const W = A[H], X = d(H);
24681
24674
  if (isVariable(W)) {
24682
24675
  const { value: J } = (yield C == null ? void 0 : C.parseVariable(W, S)) || {};
@@ -24696,7 +24689,7 @@ const useCreateActionProps = () => {
24696
24689
  });
24697
24690
  if (j) {
24698
24691
  const H = p();
24699
- T[(q = H == null ? void 0 : H.name) != null ? q : "parent"] = f, T[(E = H == null ? void 0 : H.foreignKey) != null ? E : "parentId"] = f.id;
24692
+ T[(q = H == null ? void 0 : H.name) != null ? q : "parent"] = f, T[(V = H == null ? void 0 : H.foreignKey) != null ? V : "parentId"] = f.id;
24700
24693
  }
24701
24694
  c.data = t.data || {}, c.data.loading = !0;
24702
24695
  try {
@@ -24735,10 +24728,10 @@ const useCreateActionProps = () => {
24735
24728
  }
24736
24729
  }, useDoFilter = () => {
24737
24730
  const e = useForm(), { getDataBlocks: t } = useFilterBlock(), { getCollectionJoinField: o } = useCollectionManager_deprecated(), { getOperators: n } = useOperators(), r = useFieldSchema(), { name: i } = useCollection(), { targets: a = [], uid: l } = useMemo(() => findFilterTargets(r), [r]), c = useCallback(() => removeNullCondition(transformToFilter(e.values, n(), o, i)), [e.values, o, n, i]), u = useCallback(
24738
- (...p) => V(void 0, [...p], function* ({ doNothingWhenFilterIsEmpty: d = !1 } = {}) {
24731
+ (...p) => E(void 0, [...p], function* ({ doNothingWhenFilterIsEmpty: d = !1 } = {}) {
24739
24732
  try {
24740
24733
  yield Promise.all(
24741
- t().map((m) => V(void 0, null, function* () {
24734
+ t().map((m) => E(void 0, null, function* () {
24742
24735
  var S, b, y;
24743
24736
  if (!a.find((v) => v.uid === m.uid))
24744
24737
  return;
@@ -24780,7 +24773,7 @@ const useCreateActionProps = () => {
24780
24773
  const { doFilter: e } = useDoFilter(), t = useField();
24781
24774
  return t.data = t.data || {}, {
24782
24775
  onClick() {
24783
- return V(this, null, function* () {
24776
+ return E(this, null, function* () {
24784
24777
  t.data.loading = !0, yield e(), t.data.loading = !1;
24785
24778
  });
24786
24779
  }
@@ -24788,7 +24781,7 @@ const useCreateActionProps = () => {
24788
24781
  }, useDoReset = () => {
24789
24782
  const e = useForm(), t = useFieldSchema(), { getDataBlocks: o } = useFilterBlock(), { targets: n, uid: r } = findFilterTargets(t), { doFilter: i, getFilterFromCurrentForm: a } = useDoFilter();
24790
24783
  return {
24791
- doReset: () => V(void 0, null, function* () {
24784
+ doReset: () => E(void 0, null, function* () {
24792
24785
  var l;
24793
24786
  if (yield e.reset(void 0, {
24794
24787
  forceClear: !!((l = t == null ? void 0 : t["x-component-props"]) != null && l.clearDefaultValue)
@@ -24801,7 +24794,7 @@ const useCreateActionProps = () => {
24801
24794
  const e = useField(), { doReset: t } = useDoReset();
24802
24795
  return e.data = e.data || {}, {
24803
24796
  onClick() {
24804
- return V(this, null, function* () {
24797
+ return E(this, null, function* () {
24805
24798
  e.data.loading = !0, yield t(), e.data.loading = !1;
24806
24799
  });
24807
24800
  }
@@ -24810,14 +24803,14 @@ const useCreateActionProps = () => {
24810
24803
  const { resource: e, __parent: t, service: o } = useBlockRequestContext(), n = useFilterByTk(), r = useFieldSchema(), i = useNavigateNoUpdate(), a = useCompile(), l = useForm(), { modal: c } = App.useApp(), u = useVariables(), d = useLocalVariables({ currentForm: l }), { name: p, getField: m } = useCollection_deprecated(), { setVisible: h } = useActionContext();
24811
24804
  return {
24812
24805
  onClick(f, C) {
24813
- return V(this, null, function* () {
24806
+ return E(this, null, function* () {
24814
24807
  var O, j, R;
24815
24808
  const {
24816
24809
  assignedValues: S = {},
24817
24810
  onSuccess: b,
24818
24811
  skipValidator: y,
24819
24812
  triggerWorkflows: v
24820
- } = (O = r == null ? void 0 : r["x-action-settings"]) != null ? O : {}, { manualClose: I, redirecting: w, redirectTo: k, successMessage: A, actionAfterSuccess: D } = b || {}, B = {}, z = Object.keys(S).map(($) => V(this, null, function* () {
24813
+ } = (O = r == null ? void 0 : r["x-action-settings"]) != null ? O : {}, { manualClose: I, redirecting: w, redirectTo: k, successMessage: A, actionAfterSuccess: D } = b || {}, B = {}, z = Object.keys(S).map(($) => E(this, null, function* () {
24821
24814
  const M = S[$], T = m($);
24822
24815
  if (isVariable(M)) {
24823
24816
  const { value: N } = (yield u == null ? void 0 : u.parseVariable(M, d)) || {};
@@ -24832,7 +24825,7 @@ const useCreateActionProps = () => {
24832
24825
  triggerWorkflows: v != null && v.length ? v.map(($) => [$.workflowKey, $.context].filter(Boolean).join("!")).join(",") : void 0
24833
24826
  }), (D === "previous" || !D && w !== !0) && (h == null || h(!1)), C && (C == null || C()), e instanceof TableFieldResource || (R = (j = t == null ? void 0 : t.service) == null ? void 0 : j.refresh) == null || R.call(j), A && (I ? c.success({
24834
24827
  title: a(A),
24835
- onOk: () => V(this, null, function* () {
24828
+ onOk: () => E(this, null, function* () {
24836
24829
  (w && !D || D === "redirect") && k && (isURL(k) ? window.location.href = k : i(k));
24837
24830
  })
24838
24831
  }) : (message.success(a(A)), (w && !D || D === "redirect") && k && (isURL(k) ? window.location.href = k : i(k))));
@@ -24846,7 +24839,7 @@ const useCreateActionProps = () => {
24846
24839
  const { name: f, getField: C } = useCollection_deprecated(), S = useLocalVariables(), { setVisible: b } = useActionContext();
24847
24840
  return {
24848
24841
  onClick() {
24849
- return V(this, null, function* () {
24842
+ return E(this, null, function* () {
24850
24843
  var N;
24851
24844
  const {
24852
24845
  assignedValues: A = {},
@@ -24854,21 +24847,21 @@ const useCreateActionProps = () => {
24854
24847
  updateMode: B
24855
24848
  } = (N = i == null ? void 0 : i["x-action-settings"]) != null ? N : {}, { manualClose: z, redirecting: O, redirectTo: j, successMessage: R, actionAfterSuccess: $ } = D || {};
24856
24849
  m.data = e.data || {}, m.data.loading = !0;
24857
- const M = {}, T = Object.keys(A).map((q) => V(this, null, function* () {
24858
- const E = A[q], U = C(q);
24859
- if (isVariable(E)) {
24860
- const { value: G } = (yield g == null ? void 0 : g.parseVariable(E, S)) || {};
24850
+ const M = {}, T = Object.keys(A).map((q) => E(this, null, function* () {
24851
+ const V = A[q], U = C(q);
24852
+ if (isVariable(V)) {
24853
+ const { value: G } = (yield g == null ? void 0 : g.parseVariable(V, S)) || {};
24861
24854
  G && (M[q] = transformVariableValue(G, { targetCollectionField: U }));
24862
24855
  } else
24863
- E != null && E !== "" && (M[q] = E);
24856
+ V != null && V !== "" && (M[q] = V);
24864
24857
  }));
24865
24858
  yield Promise.all(T), ($ === "previous" || !$ && O !== !0) && (b == null || b(!1)), h.confirm({
24866
24859
  title: p("Bulk update"),
24867
24860
  content: p(B === "selected" ? "Update selected data?" : "Update all data?"),
24868
24861
  onOk() {
24869
- return V(this, null, function* () {
24862
+ return E(this, null, function* () {
24870
24863
  var U, G, H, W;
24871
- const { filter: q } = (G = (U = n.params) == null ? void 0 : U[0]) != null ? G : {}, E = {
24864
+ const { filter: q } = (G = (U = n.params) == null ? void 0 : U[0]) != null ? G : {}, V = {
24872
24865
  values: x({}, M),
24873
24866
  filter: q,
24874
24867
  forceUpdate: !1
@@ -24878,25 +24871,25 @@ const useCreateActionProps = () => {
24878
24871
  message.error(p("Please select the records to be updated")), m.data.loading = !1;
24879
24872
  return;
24880
24873
  }
24881
- E.filter = { $and: [{ [l || "id"]: { $in: c } }] };
24874
+ V.filter = { $and: [{ [l || "id"]: { $in: c } }] };
24882
24875
  }
24883
- E.filter || (E.forceUpdate = !0);
24876
+ V.filter || (V.forceUpdate = !0);
24884
24877
  try {
24885
- yield t.update(E);
24878
+ yield t.update(V);
24886
24879
  } catch (X) {
24887
24880
  } finally {
24888
24881
  m.data.loading = !1;
24889
24882
  }
24890
24883
  t instanceof TableFieldResource || (W = (H = o == null ? void 0 : o.service) == null ? void 0 : H.refresh) == null || W.call(H), R && (z ? h.success({
24891
24884
  title: d(R),
24892
- onOk: () => V(this, null, function* () {
24885
+ onOk: () => E(this, null, function* () {
24893
24886
  (O && !$ || $ === "redirect") && j && (isURL(j) ? window.location.href = j : u(j));
24894
24887
  })
24895
24888
  }) : (message.success(d(R)), (O && !$ || $ === "redirect") && j && (isURL(j) ? window.location.href = j : u(j))));
24896
24889
  });
24897
24890
  },
24898
24891
  onCancel() {
24899
- return V(this, null, function* () {
24892
+ return E(this, null, function* () {
24900
24893
  m.data.loading = !1;
24901
24894
  });
24902
24895
  }
@@ -24909,8 +24902,8 @@ const useCreateActionProps = () => {
24909
24902
  const e = useAPIClient(), t = useNavigateNoUpdate(), o = useFilterByTk(), n = useFieldSchema(), r = useCompile(), i = useForm(), { fields: a, getField: l } = useCollection_deprecated(), { field: c, resource: u, __parent: d, service: p } = useBlockRequestContext(), m = useRecord(), h = useCurrentUserContext(), g = (v = h == null ? void 0 : h.data) == null ? void 0 : v.data, f = useField(), { t: C } = useTranslation(), { setVisible: S } = useActionContext(), { modal: b } = App.useApp(), { getActiveFieldsName: y } = useFormActiveFields() || {};
24910
24903
  return {
24911
24904
  onClick() {
24912
- return V(this, null, function* () {
24913
- var q, E, U, G;
24905
+ return E(this, null, function* () {
24906
+ var q, V, U, G;
24914
24907
  const { skipValidator: w, onSuccess: k, requestSettings: A } = (q = n == null ? void 0 : n["x-action-settings"]) != null ? q : {}, { manualClose: D, redirecting: B, redirectTo: z, successMessage: O, actionAfterSuccess: j } = k || {}, R = n == null ? void 0 : n["x-action"];
24915
24908
  if (!A.url)
24916
24909
  return;
@@ -24937,9 +24930,9 @@ const useCreateActionProps = () => {
24937
24930
  };
24938
24931
  f.data = c.data || {}, f.data.loading = !0;
24939
24932
  try {
24940
- yield e.request(x({}, L)), f.data.loading = !1, u instanceof TableFieldResource || (U = (E = d == null ? void 0 : d.service) == null ? void 0 : E.refresh) == null || U.call(E), (G = p == null ? void 0 : p.refresh) == null || G.call(p), R === "customize:form:request" && (j === "previous" || !j && B !== !0) && (S == null || S(!1)), O || (message.success(C("Saved successfully")), yield resetFormCorrectly(i), (B && !j || j === "redirect") && z && (isURL(z) ? window.location.href = z : t(z))), D ? b.success({
24933
+ yield e.request(x({}, L)), f.data.loading = !1, u instanceof TableFieldResource || (U = (V = d == null ? void 0 : d.service) == null ? void 0 : V.refresh) == null || U.call(V), (G = p == null ? void 0 : p.refresh) == null || G.call(p), R === "customize:form:request" && (j === "previous" || !j && B !== !0) && (S == null || S(!1)), O || (message.success(C("Saved successfully")), yield resetFormCorrectly(i), (B && !j || j === "redirect") && z && (isURL(z) ? window.location.href = z : t(z))), D ? b.success({
24941
24934
  title: r(O),
24942
- onOk: () => V(this, null, function* () {
24935
+ onOk: () => E(this, null, function* () {
24943
24936
  (B && !j || j === "redirect") && z && (isURL(z) ? window.location.href = z : t(z));
24944
24937
  })
24945
24938
  }) : message.success(r(O));
@@ -24953,15 +24946,15 @@ const useCreateActionProps = () => {
24953
24946
  const e = useForm(), t = useFilterByTk(), { field: o, resource: n, __parent: r } = useBlockRequestContext(), { setVisible: i, setFormValueChanged: a } = useActionContext(), l = useFieldSchema(), c = useNavigateNoUpdate(), { fields: u, getField: d, name: p } = useCollection_deprecated(), m = useCompile(), h = useField(), { updateAssociationValues: g } = useFormBlockContext(), { modal: f } = App.useApp(), C = useParamsFromRecord(), S = useVariables(), b = useLocalVariables({ currentForm: e }), { getActiveFieldsName: y } = useFormActiveFields() || {};
24954
24947
  return {
24955
24948
  onClick(I, w) {
24956
- return V(this, null, function* () {
24957
- var E;
24949
+ return E(this, null, function* () {
24950
+ var V;
24958
24951
  const {
24959
24952
  assignedValues: k = {},
24960
24953
  onSuccess: A,
24961
24954
  overwriteValues: D,
24962
24955
  skipValidator: B,
24963
24956
  triggerWorkflows: z
24964
- } = (E = l == null ? void 0 : l["x-action-settings"]) != null ? E : {}, { manualClose: O, redirecting: j, redirectTo: R, successMessage: $, actionAfterSuccess: M } = A || {}, T = {}, N = Object.keys(k).map((U) => V(this, null, function* () {
24957
+ } = (V = l == null ? void 0 : l["x-action-settings"]) != null ? V : {}, { manualClose: O, redirecting: j, redirectTo: R, successMessage: $, actionAfterSuccess: M } = A || {}, T = {}, N = Object.keys(k).map((U) => E(this, null, function* () {
24965
24958
  const G = k[U], H = d(U);
24966
24959
  if (isVariable(G)) {
24967
24960
  const { value: W } = (yield S == null ? void 0 : S.parseVariable(G, b)) || {};
@@ -24992,7 +24985,7 @@ const useCreateActionProps = () => {
24992
24985
  return;
24993
24986
  O ? f.success({
24994
24987
  title: m($),
24995
- onOk: () => V(this, null, function* () {
24988
+ onOk: () => E(this, null, function* () {
24996
24989
  yield e.reset(), (j && !M || M === "redirect") && R && (isURL(R) ? window.location.href = R : c(R));
24997
24990
  })
24998
24991
  }) : (message.success(m($)), (j && !M || M === "redirect" || M === "redirect") && R && (isURL(R) ? window.location.href = R : c(R)));
@@ -25006,7 +24999,7 @@ const useCreateActionProps = () => {
25006
24999
  const e = useFilterByTk(), { resource: t, service: o, block: n, __parent: r } = useBlockRequestContext(), { setVisible: i, setSubmitted: a } = useActionContext(), l = useParamsFromRecord(), c = useFieldSchema();
25007
25000
  return {
25008
25001
  onClick(d, p) {
25009
- return V(this, null, function* () {
25002
+ return E(this, null, function* () {
25010
25003
  var C, S, b, y, v;
25011
25004
  const { triggerWorkflows: m } = (C = c == null ? void 0 : c["x-action-settings"]) != null ? C : {};
25012
25005
  yield t.destroy(x({
@@ -25025,7 +25018,7 @@ const useCreateActionProps = () => {
25025
25018
  const t = useFilterByTk(), n = useAPIClient().resource(e, t);
25026
25019
  return {
25027
25020
  onClick(i) {
25028
- return V(this, null, function* () {
25021
+ return E(this, null, function* () {
25029
25022
  yield n.remove({
25030
25023
  values: [i.id]
25031
25024
  });
@@ -25036,7 +25029,7 @@ const useCreateActionProps = () => {
25036
25029
  const e = useFilterByTk(), { resource: t, service: o, block: n, __parent: r } = useBlockRequestContext(), { setVisible: i, setSubmitted: a, setFormValueChanged: l } = useActionContext();
25037
25030
  return {
25038
25031
  onClick(u, d) {
25039
- return V(this, null, function* () {
25032
+ return E(this, null, function* () {
25040
25033
  var g, f, C, S;
25041
25034
  yield t.remove({
25042
25035
  values: [e]
@@ -25062,7 +25055,7 @@ const useCreateActionProps = () => {
25062
25055
  });
25063
25056
  return {
25064
25057
  onClick() {
25065
- return V(this, null, function* () {
25058
+ return E(this, null, function* () {
25066
25059
  t();
25067
25060
  });
25068
25061
  }
@@ -25071,7 +25064,7 @@ const useCreateActionProps = () => {
25071
25064
  const { field: e } = useBlockRequestContext(), { resource: t, service: o } = useBlockRequestContext(), { setSubmitted: n } = useActionContext(), r = useCollection_deprecated(), { filterTargetKey: i } = r;
25072
25065
  return {
25073
25066
  onClick(l, c) {
25074
- return V(this, null, function* () {
25067
+ return E(this, null, function* () {
25075
25068
  var m, h, g, f, C, S, b;
25076
25069
  let u = (m = e.data) == null ? void 0 : m.selectedRowKeys;
25077
25070
  if (Array.isArray(i) && (u = e.data.selectedRowData.map((y) => {
@@ -25093,7 +25086,7 @@ const useCreateActionProps = () => {
25093
25086
  const { service: e } = useBlockRequestContext();
25094
25087
  return {
25095
25088
  onClick() {
25096
- return V(this, null, function* () {
25089
+ return E(this, null, function* () {
25097
25090
  var o;
25098
25091
  (o = e == null ? void 0 : e.refresh) == null || o.call(e);
25099
25092
  });
@@ -25110,7 +25103,7 @@ const useCreateActionProps = () => {
25110
25103
  pageSize: 1,
25111
25104
  showSizeChanger: !1,
25112
25105
  onChange(v) {
25113
- return V(this, null, function* () {
25106
+ return E(this, null, function* () {
25114
25107
  var w, k;
25115
25108
  const I = (k = (w = e.service) == null ? void 0 : w.params) == null ? void 0 : k[0];
25116
25109
  e.service.run(F(x({}, I), { page: v }));
@@ -25138,7 +25131,7 @@ const useCreateActionProps = () => {
25138
25131
  pageSize: 1,
25139
25132
  showSizeChanger: !1,
25140
25133
  onChange(y) {
25141
- return V(this, null, function* () {
25134
+ return E(this, null, function* () {
25142
25135
  var I, w;
25143
25136
  const v = (w = (I = e.service) == null ? void 0 : I.params) == null ? void 0 : w[0];
25144
25137
  e.service.run(F(x({}, v), { page: y }));
@@ -25242,23 +25235,23 @@ const useCreateActionProps = () => {
25242
25235
  return;
25243
25236
  const L = `${M}${t.name}`, q = ((G = T.service.params) == null ? void 0 : G[0]) || {};
25244
25237
  (W = (H = T.service.params) == null ? void 0 : H[1]) != null && W.filters || _.set(T.service.params, "[1].filters", {});
25245
- const E = T.service.params[1].filters;
25238
+ const V = T.service.params[1].filters;
25246
25239
  if (R.length)
25247
- E[L] = {
25240
+ V[L] = {
25248
25241
  [b]: R
25249
25242
  };
25250
25243
  else {
25251
25244
  if (T.dataLoadingMode === "manual")
25252
25245
  return T.clearData();
25253
- delete E[L];
25246
+ delete V[L];
25254
25247
  }
25255
- const U = mergeFilter([...Object.values(E), T.defaultFilter]);
25248
+ const U = mergeFilter([...Object.values(V), T.defaultFilter]);
25256
25249
  return T.doFilter(
25257
25250
  F(x({}, q), {
25258
25251
  page: 1,
25259
25252
  filter: U
25260
25253
  }),
25261
- { filters: E }
25254
+ { filters: V }
25262
25255
  );
25263
25256
  });
25264
25257
  },
@@ -25302,14 +25295,14 @@ const useCreateActionProps = () => {
25302
25295
  };
25303
25296
  };
25304
25297
  function doReset(n) {
25305
- return V(this, arguments, function* ({
25298
+ return E(this, arguments, function* ({
25306
25299
  getDataBlocks: e,
25307
25300
  targets: t,
25308
25301
  uid: o
25309
25302
  }) {
25310
25303
  try {
25311
25304
  yield Promise.all(
25312
- e().map((r) => V(this, null, function* () {
25305
+ e().map((r) => E(this, null, function* () {
25313
25306
  var u, d, p;
25314
25307
  if (!t.find((m) => m.uid === r.uid))
25315
25308
  return;
@@ -25441,7 +25434,7 @@ function getTargetField(e) {
25441
25434
  return o.slice(0, n);
25442
25435
  }
25443
25436
  function resetFormCorrectly(e) {
25444
- return V(this, null, function* () {
25437
+ return E(this, null, function* () {
25445
25438
  untracked(() => {
25446
25439
  Object.keys(e.fields).forEach((t) => {
25447
25440
  isSubMode(e.fields[t]) && (e.fields[t].initialValue = null);
@@ -25455,7 +25448,7 @@ function appendQueryStringToUrl(e, t) {
25455
25448
  const useParseURLAndParams = () => {
25456
25449
  const e = useVariables(), t = useLocalVariables();
25457
25450
  return { parseURLAndParams: useCallback(
25458
- (n, r) => V(void 0, null, function* () {
25451
+ (n, r) => E(void 0, null, function* () {
25459
25452
  const i = yield parseVariablesAndChangeParamsToQueryString({
25460
25453
  searchParams: r,
25461
25454
  variables: e,
@@ -25473,7 +25466,7 @@ function useLinkActionProps(e) {
25473
25466
  return {
25474
25467
  type: l,
25475
25468
  onClick() {
25476
- return V(this, null, function* () {
25469
+ return E(this, null, function* () {
25477
25470
  if (!i) {
25478
25471
  message.warning(r("Please configure the URL"));
25479
25472
  return;
@@ -25485,7 +25478,7 @@ function useLinkActionProps(e) {
25485
25478
  };
25486
25479
  }
25487
25480
  function replaceVariableValue(e, t, o) {
25488
- return V(this, null, function* () {
25481
+ return E(this, null, function* () {
25489
25482
  if (!e)
25490
25483
  return;
25491
25484
  const { evaluate: n } = evaluators.get("string"), { exp: r, scope: i } = yield replaceVariables(e, {
@@ -25500,14 +25493,14 @@ function replaceVariableValue(e, t, o) {
25500
25493
  });
25501
25494
  }
25502
25495
  function parseVariablesAndChangeParamsToQueryString(r) {
25503
- return V(this, arguments, function* ({
25496
+ return E(this, arguments, function* ({
25504
25497
  searchParams: e,
25505
25498
  variables: t,
25506
25499
  localVariables: o,
25507
25500
  replaceVariableValue: n
25508
25501
  }) {
25509
25502
  const i = yield Promise.all(
25510
- e.map((u) => V(this, [u], function* ({ name: l, value: c }) {
25503
+ e.map((u) => E(this, [u], function* ({ name: l, value: c }) {
25511
25504
  if (typeof c == "string") {
25512
25505
  if (isVariable(c)) {
25513
25506
  const { value: p } = (yield t.parseVariable(c, o)) || {};
@@ -25635,7 +25628,7 @@ const useSyncFromForm = (e, t, o) => {
25635
25628
  }, []);
25636
25629
  return {
25637
25630
  run() {
25638
- return V(this, null, function* () {
25631
+ return E(this, null, function* () {
25639
25632
  var y;
25640
25633
  const f = /* @__PURE__ */ new Set([]), C = /* @__PURE__ */ new Set([]), S = (v, I) => {
25641
25634
  var w;
@@ -26486,7 +26479,7 @@ const useParseDefaultValue = () => {
26486
26479
  var I, w;
26487
26480
  if (g === "update" && t.default && e.form === f && ((w = e.setValue) == null || w.call(e, (I = r == null ? void 0 : r.data) == null ? void 0 : I[t.name])), t.default == null || a || l || isSubMode(t) || !(r != null && r.isNew) && !i)
26488
26481
  return;
26489
- const y = (...A) => V(void 0, [...A], function* ({ forceUpdate: k = !1 } = {}) {
26482
+ const y = (...A) => E(void 0, [...A], function* ({ forceUpdate: k = !1 } = {}) {
26490
26483
  if (o && e && (isVariable(t.default) && e.value == null || e.value === t.default || k)) {
26491
26484
  isVariable(e.value) && (yield e.reset({ forceClear: !0 })), e.loading = !0;
26492
26485
  const D = !t.name.toString().includes(".") && (d == null ? void 0 : d.getField(t.name)), {
@@ -26872,11 +26865,11 @@ function SchemaSettingsTemplate(e) {
26872
26865
  SchemaSettingsItem,
26873
26866
  {
26874
26867
  title: "Convert reference to duplicate",
26875
- onClick: () => V(this, null, function* () {
26868
+ onClick: () => E(this, null, function* () {
26876
26869
  const b = yield C(d), y = g.removeWithoutEmit();
26877
26870
  g.insertAfterEnd(b, {
26878
26871
  onSuccess() {
26879
- return V(this, null, function* () {
26872
+ return E(this, null, function* () {
26880
26873
  yield h.request({
26881
26874
  url: `/uiSchemas:remove/${y["x-uid"]}`
26882
26875
  });
@@ -26890,7 +26883,7 @@ function SchemaSettingsTemplate(e) {
26890
26883
  SchemaSettingsItem,
26891
26884
  {
26892
26885
  title: "Save as template",
26893
- onClick: () => V(this, null, function* () {
26886
+ onClick: () => E(this, null, function* () {
26894
26887
  u(!1);
26895
26888
  const b = o && l(o), y = yield FormDialog(
26896
26889
  a("Save as template"),
@@ -27272,7 +27265,7 @@ const Layout = {
27272
27265
  [t, o]
27273
27266
  );
27274
27267
  return { parseFilter: useCallback(
27275
- (i) => V(void 0, null, function* () {
27268
+ (i) => E(void 0, null, function* () {
27276
27269
  const a = flatten(i, {
27277
27270
  breakOn({ key: c }) {
27278
27271
  return c.startsWith("$") && c !== "$and" && c !== "$or";
@@ -27282,7 +27275,7 @@ const Layout = {
27282
27275
  }
27283
27276
  });
27284
27277
  return yield Promise.all(
27285
- Object.keys(a).map((c) => V(void 0, null, function* () {
27278
+ Object.keys(a).map((c) => E(void 0, null, function* () {
27286
27279
  return a[c] = yield a[c], a[c] === void 0 && delete a[c], a[c];
27287
27280
  }))
27288
27281
  ), unflatten$1(a);
@@ -27953,7 +27946,7 @@ function Input$1(e) {
27953
27946
  ].filter((te) => !te.deprecated || (R == null ? void 0 : R[0]) === te[$.value]);
27954
27947
  w(Q);
27955
27948
  }, [h, R, M, a]);
27956
- const q = (J) => V(this, null, function* () {
27949
+ const q = (J) => E(this, null, function* () {
27957
27950
  var Q;
27958
27951
  const Y = J[J.length - 1];
27959
27952
  if (!((Q = Y.children) != null && Q.length) && !Y.isLeaf && Y.loadChildren) {
@@ -27967,7 +27960,7 @@ function Input$1(e) {
27967
27960
  }
27968
27961
  yield Y.loadChildren(Y, Z, R), w((te) => [...te]);
27969
27962
  }
27970
- }), E = useCallback(
27963
+ }), V = useCallback(
27971
27964
  (J, Y) => {
27972
27965
  var Q, Z, te;
27973
27966
  if (J[0] === "$") {
@@ -27995,7 +27988,7 @@ function Input$1(e) {
27995
27988
  o(null);
27996
27989
  }, [M]);
27997
27990
  useEffect(() => {
27998
- V(this, null, function* () {
27991
+ E(this, null, function* () {
27999
27992
  var Z;
28000
27993
  if (!R || I.length <= 1)
28001
27994
  return;
@@ -28089,7 +28082,7 @@ function Input$1(e) {
28089
28082
  {
28090
28083
  options: I,
28091
28084
  value: R != null ? R : L,
28092
- onChange: E,
28085
+ onChange: V,
28093
28086
  loadData: q,
28094
28087
  changeOnSelect: u,
28095
28088
  fieldNames: d,
@@ -28146,7 +28139,7 @@ function VariableSelect({
28146
28139
  }) {
28147
28140
  const { t: a } = useTranslation(), [l, c] = useState([]), { wrapSSR: u, componentCls: d, hashId: p } = useStyles$b(), { token: m } = useToken();
28148
28141
  function h(g) {
28149
- return V(this, null, function* () {
28142
+ return E(this, null, function* () {
28150
28143
  var C;
28151
28144
  const f = g[g.length - 1];
28152
28145
  !((C = f.children) != null && C.length) && !f.isLeaf && f.loadChildren && (yield f.loadChildren(f), t((S) => [...S]));
@@ -28382,18 +28375,18 @@ function TextArea(e) {
28382
28375
  if (y) {
28383
28376
  if (k.join() === "-1,0,-1,0")
28384
28377
  return;
28385
- const E = (q = window.getSelection) == null ? void 0 : q.call(window);
28386
- if (E)
28378
+ const V = (q = window.getSelection) == null ? void 0 : q.call(window);
28379
+ if (V)
28387
28380
  try {
28388
28381
  const U = Array.from(N.childNodes);
28389
- U.length && (k[0] === -1 ? k[1] && L.setStartAfter(U[k[1] - 1]) : L.setStart(U[k[0]], k[1]), k[2] === -1 ? k[3] && L.setEndAfter(U[k[3] - 1]) : L.setEnd(U[k[2]], k[3])), L.collapse(!0), E.removeAllRanges(), E.addRange(L);
28382
+ U.length && (k[0] === -1 ? k[1] && L.setStartAfter(U[k[1] - 1]) : L.setStart(U[k[0]], k[1]), k[2] === -1 ? k[3] && L.setEndAfter(U[k[3] - 1]) : L.setEnd(U[k[2]], k[3])), L.collapse(!0), V.removeAllRanges(), V.addRange(L);
28390
28383
  } catch (U) {
28391
28384
  }
28392
28385
  } else {
28393
- const { lastChild: E } = N;
28394
- if (E) {
28395
- L.setStartAfter(E), L.setEndAfter(E);
28396
- const U = Array.from(N.childNodes), G = L.startContainer === N ? -1 : U.indexOf(E), H = L.startContainer === N ? -1 : U.indexOf(E);
28386
+ const { lastChild: V } = N;
28387
+ if (V) {
28388
+ L.setStartAfter(V), L.setEndAfter(V);
28389
+ const U = Array.from(N.childNodes), G = L.startContainer === N ? -1 : U.indexOf(V), H = L.startContainer === N ? -1 : U.indexOf(V);
28397
28390
  A([G, L.startOffset, H, L.endOffset]);
28398
28391
  }
28399
28392
  }
@@ -28404,8 +28397,8 @@ function TextArea(e) {
28404
28397
  if (!q || !L)
28405
28398
  return;
28406
28399
  q.focus();
28407
- const E = createVariableTagHTML(L.join("."), C);
28408
- pasteHTML(q, E, {
28400
+ const V = createVariableTagHTML(L.join("."), C);
28401
+ pasteHTML(q, V, {
28409
28402
  range: k
28410
28403
  }), v(!0), A(getCurrentRange(q)), i(getValue(q, u));
28411
28404
  },
@@ -28438,9 +28431,9 @@ function TextArea(e) {
28438
28431
  span: ["ant-tag", "ant-tag-*"]
28439
28432
  },
28440
28433
  transformTags: {
28441
- span(E, U) {
28434
+ span(V, U) {
28442
28435
  return U["data-variable"] ? {
28443
- tagName: E,
28436
+ tagName: V,
28444
28437
  attribs: U
28445
28438
  } : {};
28446
28439
  }
@@ -28534,7 +28527,7 @@ function TextArea(e) {
28534
28527
  );
28535
28528
  }
28536
28529
  function preloadOptions(e, t) {
28537
- return V(this, null, function* () {
28530
+ return E(this, null, function* () {
28538
28531
  var r;
28539
28532
  let o = [...e != null ? e : []];
28540
28533
  const n = t.map((i) => i.split("."));
@@ -30843,7 +30836,7 @@ const tableBlockSettings = new SchemaSettings({
30843
30836
  return {
30844
30837
  title: r("Enable drag and drop sorting"),
30845
30838
  checked: t.decoratorProps.dragSort,
30846
- onChange: (u) => V(void 0, null, function* () {
30839
+ onChange: (u) => E(void 0, null, function* () {
30847
30840
  var d, p, m;
30848
30841
  if (u && l) {
30849
30842
  const { data: h } = yield c.resource("collections.fields", l.collectionName).update({
@@ -31954,7 +31947,7 @@ const tableBlockSettings = new SchemaSettings({
31954
31947
  title: i("Ellipsis overflow content"),
31955
31948
  checked: !!((c = a["x-component-props"]) != null && c.ellipsis),
31956
31949
  hidden: l,
31957
- onChange: (u) => V(this, null, function* () {
31950
+ onChange: (u) => E(this, null, function* () {
31958
31951
  var d, p;
31959
31952
  if (yield r.emit("patch", {
31960
31953
  schema: {
@@ -33398,7 +33391,7 @@ const dividerSettings = new SchemaSettings({
33398
33391
  });
33399
33392
  class SchemaSettingsPlugin extends Plugin {
33400
33393
  load() {
33401
- return V(this, null, function* () {
33394
+ return E(this, null, function* () {
33402
33395
  this.schemaSettingsManager.add(tableBlockSettings), this.schemaSettingsManager.add(createFormBlockSettings), this.schemaSettingsManager.add(editFormBlockSettings), this.schemaSettingsManager.add(filterFormBlockSettings), this.schemaSettingsManager.add(filterFormItemFieldSettings), this.schemaSettingsManager.add(multiDataDetailsBlockSettings), this.schemaSettingsManager.add(detailsWithPaginationSettings), this.schemaSettingsManager.add(singleDataDetailsBlockSettings), this.schemaSettingsManager.add(detailsBlockSettings), this.schemaSettingsManager.add(tableSelectorBlockSettings), this.schemaSettingsManager.add(listBlockSettings), this.schemaSettingsManager.add(gridCardBlockSettings), this.schemaSettingsManager.add(filterCollapseBlockSettings), this.schemaSettingsManager.add(markdownBlockSettings), this.schemaSettingsManager.add(addNewActionSettings), this.schemaSettingsManager.add(filterActionSettings), this.schemaSettingsManager.add(refreshActionSettings), this.schemaSettingsManager.add(viewActionSettings), this.schemaSettingsManager.add(editActionSettings), this.schemaSettingsManager.add(deleteActionSettings), this.schemaSettingsManager.add(disassociateActionSettings), this.schemaSettingsManager.add(bulkDeleteActionSettings), this.schemaSettingsManager.add(customizeAddRecordActionSettings), this.schemaSettingsManager.add(customizePopupActionSettings), this.schemaSettingsManager.add(customizeLinkActionSettings), this.schemaSettingsManager.add(customizeUpdateRecordActionSettings), this.schemaSettingsManager.add(createSubmitActionSettings), this.schemaSettingsManager.add(updateSubmitActionSettings), this.schemaSettingsManager.add(submitActionSettings), this.schemaSettingsManager.add(customizeSaveRecordActionSettings), this.schemaSettingsManager.add(addChildActionSettings), this.schemaSettingsManager.add(expendableActionSettings), this.schemaSettingsManager.add(fieldSettingsFormItem), this.schemaSettingsManager.add(tableColumnSettings), this.schemaSettingsManager.add(filterCollapseItemFieldSettings), this.schemaSettingsManager.add(selectComponentFieldSettings), this.schemaSettingsManager.add(filterSelectComponentFieldSettings), this.schemaSettingsManager.add(recordPickerComponentFieldSettings), this.schemaSettingsManager.add(subformComponentFieldSettings), this.schemaSettingsManager.add(subformPopoverComponentFieldSettings), this.schemaSettingsManager.add(subTablePopoverComponentFieldSettings), this.schemaSettingsManager.add(datePickerComponentFieldSettings), this.schemaSettingsManager.add(rangePickerPickerComponentFieldSettings), this.schemaSettingsManager.add(unixTimestampComponentFieldSettings), this.schemaSettingsManager.add(inputNumberComponentFieldSettings), this.schemaSettingsManager.add(inputComponentSettings), this.schemaSettingsManager.add(inputURLSettings), this.schemaSettingsManager.add(inputTextAreaSettings), this.schemaSettingsManager.add(inputJSONSettings), this.schemaSettingsManager.add(markdownSettings), this.schemaSettingsManager.add(markdownVditorSettings), this.schemaSettingsManager.add(richTextSettings), this.schemaSettingsManager.add(fileManagerComponentFieldSettings), this.schemaSettingsManager.add(tagComponentFieldSettings), this.schemaSettingsManager.add(cascadeSelectComponentFieldSettings), this.schemaSettingsManager.add(inputPreviewComponentFieldSettings), this.schemaSettingsManager.add(uploadAttachmentComponentFieldSettings), this.schemaSettingsManager.add(previewComponentFieldSettings), this.schemaSettingsManager.add(dividerSettings);
33403
33396
  });
33404
33397
  }
@@ -33748,7 +33741,7 @@ const SortableProvider = (e) => {
33748
33741
  SortableProvider,
33749
33742
  getRenderContent
33750
33743
  }, Symbol.toStringTag, { value: "Module" })), requestChartData = (e) => function() {
33751
- return V(this, null, function* () {
33744
+ return E(this, null, function* () {
33752
33745
  var t;
33753
33746
  try {
33754
33747
  const o = yield this.api.request(e);
@@ -33778,7 +33771,7 @@ const Form$1 = observer$1(
33778
33771
  {
33779
33772
  uid: a["x-uid"],
33780
33773
  onSuccess(h) {
33781
- return V(this, null, function* () {
33774
+ return E(this, null, function* () {
33782
33775
  yield c.reset(), c.setValues(h == null ? void 0 : h.data), c.setInitialValues(h == null ? void 0 : h.data);
33783
33776
  });
33784
33777
  }
@@ -34058,7 +34051,7 @@ Select.ReadPretty = ReadPretty$b;
34058
34051
  const getValues = (e, t) => castArray(e).filter((o) => o != null).map((o) => typeof o == "object" ? o[t.value] : o), ReadPretty$a = observer$1(
34059
34052
  (e) => {
34060
34053
  const t = x(x({}, defaultFieldNames$1), e.fieldNames), o = useField(), n = useFieldSchema(), r = useRecord(), { snapshot: i } = useActionContext(), { data: a } = useRequest(
34061
- i ? () => V(void 0, null, function* () {
34054
+ i ? () => E(void 0, null, function* () {
34062
34055
  return {
34063
34056
  data: r[n.name]
34064
34057
  };
@@ -34172,7 +34165,7 @@ const getValues = (e, t) => castArray(e).filter((o) => o != null).map((o) => typ
34172
34165
  fieldNames: t
34173
34166
  }),
34174
34167
  [o, t]
34175
- ), E = useCallback(() => A.current && d ? /* @__PURE__ */ jsx(
34168
+ ), V = useCallback(() => A.current && d ? /* @__PURE__ */ jsx(
34176
34169
  d,
34177
34170
  {
34178
34171
  search: A.current,
@@ -34184,7 +34177,7 @@ const getValues = (e, t) => castArray(e).filter((o) => o != null).map((o) => typ
34184
34177
  useEffect(() => {
34185
34178
  v.current && N();
34186
34179
  }, [q]);
34187
- const U = (Y) => V(void 0, null, function* () {
34180
+ const U = (Y) => E(void 0, null, function* () {
34188
34181
  var Q;
34189
34182
  N({
34190
34183
  filter: mergeFilter([
@@ -34229,7 +34222,7 @@ const getValues = (e, t) => castArray(e).filter((o) => o != null).map((o) => typ
34229
34222
  return /* @__PURE__ */ jsx(Fragment, { children: w ? /* @__PURE__ */ jsxs(Fragment, { children: [
34230
34223
  !((T == null ? void 0 : T.data.length) === 0 && (A != null && A.current)) && Y,
34231
34224
  (T == null ? void 0 : T.data.length) > 0 && (A == null ? void 0 : A.current) && !Q && /* @__PURE__ */ jsx(Divider$1, { style: { margin: 0 } }),
34232
- !Q && /* @__PURE__ */ jsx(E, {})
34225
+ !Q && /* @__PURE__ */ jsx(V, {})
34233
34226
  ] }) : Y });
34234
34227
  }
34235
34228
  })
@@ -34296,9 +34289,9 @@ const useFormDataTemplates = () => {
34296
34289
  alignItems: "center",
34297
34290
  backgroundColor: o.colorFillAlter,
34298
34291
  padding: o.padding
34299
- }, e), [e, o.colorFillAlter]), b = useMemo(() => ({ fontSize: o.fontSize, fontWeight: "bold", whiteSpace: "nowrap", marginRight: o.marginXS }), [o.fontSize, o.marginXS]), y = useCallback((w) => V(void 0, null, function* () {
34292
+ }, e), [e, o.colorFillAlter]), b = useMemo(() => ({ fontSize: o.fontSize, fontWeight: "bold", whiteSpace: "nowrap", marginRight: o.marginXS }), [o.fontSize, o.marginXS]), y = useCallback((w) => E(void 0, null, function* () {
34300
34293
  d(w), m(null), t == null || t.reset();
34301
- }), []), v = useCallback((w, k, A) => V(void 0, null, function* () {
34294
+ }), []), v = useCallback((w, k, A) => E(void 0, null, function* () {
34302
34295
  const D = F(x({}, k), { dataId: w });
34303
34296
  m(k), fetchTemplateData(h, D, A).then((B) => (t && B && (t.reset(), t.__template = !0, forEach(B, (z, O) => {
34304
34297
  var j;
@@ -34352,7 +34345,7 @@ function findDataTemplates(e) {
34352
34345
  return t ? _.cloneDeep(t["x-data-templates"]) || {} : {};
34353
34346
  }
34354
34347
  function fetchTemplateData(e, t, o) {
34355
- return V(this, null, function* () {
34348
+ return E(this, null, function* () {
34356
34349
  if (!(t.fields.length === 0 || !t.dataId))
34357
34350
  return e.resource(t.collection, void 0, o).get({
34358
34351
  filterByTk: t.dataId,
@@ -34848,7 +34841,7 @@ const FixedBlockContext = React.createContext({
34848
34841
  {
34849
34842
  title: t("Fix block"),
34850
34843
  checked: (l = o["x-decorator-props"]) == null ? void 0 : l.fixedBlock,
34851
- onChange: (c) => V(void 0, null, function* () {
34844
+ onChange: (c) => E(void 0, null, function* () {
34852
34845
  var d;
34853
34846
  const u = F(x({}, o["x-decorator-props"]), {
34854
34847
  fixedBlock: c
@@ -34884,7 +34877,7 @@ const useSystemSettings = () => useContext(SystemSettingsContext), SystemSetting
34884
34877
  const { setVisible: e } = useActionContext();
34885
34878
  return {
34886
34879
  run() {
34887
- return V(this, null, function* () {
34880
+ return E(this, null, function* () {
34888
34881
  e(!1);
34889
34882
  });
34890
34883
  }
@@ -34898,7 +34891,7 @@ const useSystemSettings = () => useContext(SystemSettingsContext), SystemSetting
34898
34891
  const { setVisible: e } = useActionContext(), t = useForm(), { mutate: o, data: n } = useSystemSettings(), r = useAPIClient(), { t: i } = useTranslation();
34899
34892
  return {
34900
34893
  run() {
34901
- return V(this, null, function* () {
34894
+ return E(this, null, function* () {
34902
34895
  var u;
34903
34896
  yield t.submit();
34904
34897
  const l = cloneDeep(t.values);
@@ -35016,7 +35009,7 @@ const useSystemSettings = () => useContext(SystemSettingsContext), SystemSetting
35016
35009
  ) });
35017
35010
  class SystemSettingsPlugin extends Plugin {
35018
35011
  load() {
35019
- return V(this, null, function* () {
35012
+ return E(this, null, function* () {
35020
35013
  this.app.use(SystemSettingsProvider, this.options);
35021
35014
  });
35022
35015
  }
@@ -35054,7 +35047,7 @@ const DocumentTitleProvider = (e) => {
35054
35047
  };
35055
35048
  class RemoteDocumentTitlePlugin extends Plugin {
35056
35049
  load() {
35057
- return V(this, null, function* () {
35050
+ return E(this, null, function* () {
35058
35051
  this.app.use(RemoteDocumentTitleProvider, this.options);
35059
35052
  });
35060
35053
  }
@@ -35186,7 +35179,7 @@ const useStyles$9 = genStyleHook("nb-page", (e) => {
35186
35179
  r()
35187
35180
  ] }) }) }) }) : null;
35188
35181
  }, Page = (e) => {
35189
- var q, E, U;
35182
+ var q, V, U;
35190
35183
  const L = e, { children: t } = L, o = K(L, ["children"]), { t: n } = useTranslation(), r = useCompile(), { title: i, setTitle: a } = useDocumentTitle(), l = useFieldSchema(), c = useDesignable(), { theme: u } = useGlobalTheme(), { getAriaLabel: d } = useGetAriaLabelOfSchemaInitializer(), { tabUid: p, name: m } = useParams(), h = useRouterBasename(), [g, f] = useState(!1);
35191
35184
  useEffect(() => {
35192
35185
  setTimeout(() => {
@@ -35195,7 +35188,7 @@ const useStyles$9 = genStyleHook("nb-page", (e) => {
35195
35188
  }, []), useEffect(() => {
35196
35189
  i || a(n(l.title));
35197
35190
  }, [l.title, i]);
35198
- const C = (q = l["x-component-props"]) == null ? void 0 : q.disablePageHeader, S = (E = l["x-component-props"]) == null ? void 0 : E.enablePageTabs, b = (U = l["x-component-props"]) == null ? void 0 : U.hidePageTitle, y = useContext(SchemaOptionsContext), v = useNavigateNoUpdate(), [I] = useSearchParams(), [w, k] = useState(!1), A = useMemo(
35191
+ const C = (q = l["x-component-props"]) == null ? void 0 : q.disablePageHeader, S = (V = l["x-component-props"]) == null ? void 0 : V.enablePageTabs, b = (U = l["x-component-props"]) == null ? void 0 : U.hidePageTitle, y = useContext(SchemaOptionsContext), v = useNavigateNoUpdate(), [I] = useSearchParams(), [w, k] = useState(!1), A = useMemo(
35199
35192
  // 处理 searchParams 是为了兼容旧版的 tab 参数
35200
35193
  () => p || I.get("tab") || Object.keys(l.properties || {}).shift(),
35201
35194
  [l.properties, I, p]
@@ -35237,7 +35230,7 @@ const useStyles$9 = genStyleHook("nb-page", (e) => {
35237
35230
  icon: /* @__PURE__ */ jsx(PlusOutlined, {}),
35238
35231
  className: "addTabBtn",
35239
35232
  type: "dashed",
35240
- onClick: () => V(void 0, null, function* () {
35233
+ onClick: () => E(void 0, null, function* () {
35241
35234
  const G = yield FormDialog(
35242
35235
  n("Add tab"),
35243
35236
  () => /* @__PURE__ */ jsx(SchemaComponentOptions, { scope: y.scope, components: x({}, y.components), children: /* @__PURE__ */ jsx(FormLayout, { layout: "vertical", children: /* @__PURE__ */ jsx(
@@ -35589,7 +35582,7 @@ const pageSettings = new SchemaSettings({
35589
35582
  };
35590
35583
  class AntdSchemaComponentPlugin extends Plugin {
35591
35584
  load() {
35592
- return V(this, null, function* () {
35585
+ return E(this, null, function* () {
35593
35586
  this.addComponents(), this.addScopes(), this.addSchemaSettings();
35594
35587
  });
35595
35588
  }
@@ -35660,7 +35653,7 @@ const AppendsTreeSelect = (e) => {
35660
35653
  const R = b.getCollection(O);
35661
35654
  return R ? R.getAllFields(j) : [];
35662
35655
  }, v = Object.values(m), I = useMemo(() => e.multiple ? (o || []).map((O) => m[O]).filter(Boolean) : o, [o, e.multiple, m]), w = useCallback(
35663
- (O) => V(void 0, null, function* () {
35656
+ (O) => E(void 0, null, function* () {
35664
35657
  if (c != null)
35665
35658
  return c(O);
35666
35659
  if (!O.isLeaf && O.loadChildren) {
@@ -35784,7 +35777,7 @@ const AppendsTreeSelect = (e) => {
35784
35777
  f.removeEffects(k);
35785
35778
  };
35786
35779
  }, []);
35787
- const y = (k) => V(void 0, null, function* () {
35780
+ const y = (k) => E(void 0, null, function* () {
35788
35781
  var z, O;
35789
35782
  const { search: A, callBack: D } = k, {
35790
35783
  data: { data: B }
@@ -36828,8 +36821,8 @@ const InternalFileManager = (e) => {
36828
36821
  if (Array.isArray($))
36829
36822
  $ = $.map((L, q) => {
36830
36823
  var U, G;
36831
- const E = (G = (U = v.uiSchema.enum).find) == null ? void 0 : G.call(U, (H) => H.value === L);
36832
- return E ? /* @__PURE__ */ jsx(Tag, { color: E.color, style: { marginRight: 3 }, children: (E == null ? void 0 : E.label) || L }, q) : /* @__PURE__ */ jsx(Tag, { children: L }, L);
36824
+ const V = (G = (U = v.uiSchema.enum).find) == null ? void 0 : G.call(U, (H) => H.value === L);
36825
+ return V ? /* @__PURE__ */ jsx(Tag, { color: V.color, style: { marginRight: 3 }, children: (V == null ? void 0 : V.label) || L }, q) : /* @__PURE__ */ jsx(Tag, { children: L }, L);
36833
36826
  }).reverse();
36834
36827
  else {
36835
36828
  const L = (N = (T = v.uiSchema.enum).find) == null ? void 0 : N.call(T, (q) => q.value === $);
@@ -36848,7 +36841,7 @@ const InternalFileManager = (e) => {
36848
36841
  }
36849
36842
  },
36850
36843
  [v == null ? void 0 : v.uiSchema, y]
36851
- ), A = (j) => V(void 0, null, function* () {
36844
+ ), A = (j) => E(void 0, null, function* () {
36852
36845
  var $;
36853
36846
  const R = yield C.list({
36854
36847
  pageSize: 200,
@@ -36857,7 +36850,7 @@ const InternalFileManager = (e) => {
36857
36850
  tree: j.parentId ? void 0 : !0
36858
36851
  });
36859
36852
  return ($ = R == null ? void 0 : R.data) == null ? void 0 : $.data;
36860
- }), D = (j, R, $) => V(void 0, null, function* () {
36853
+ }), D = (j, R, $) => E(void 0, null, function* () {
36861
36854
  const M = yield A({ parentId: R == null ? void 0 : R.id }), T = [...i];
36862
36855
  if (T.splice($ + 1), T[$] = F(x({}, T[$]), { value: R }), R != null && R.id && (T[$ + 1] = { key: R == null ? void 0 : R.id, children: (M == null ? void 0 : M.length) > 0 ? M : null }), a(T), ["o2m", "m2m"].includes(g.interface)) {
36863
36856
  const N = Array.isArray(f.fieldValue) ? f.fieldValue : [];
@@ -36865,17 +36858,17 @@ const InternalFileManager = (e) => {
36865
36858
  } else
36866
36859
  f.value = R;
36867
36860
  n == null || n(T);
36868
- }), B = (j, R, $) => V(void 0, null, function* () {
36861
+ }), B = (j, R, $) => E(void 0, null, function* () {
36869
36862
  var M, T, N;
36870
36863
  if (j) {
36871
36864
  d(!0);
36872
36865
  const L = yield A({ parentId: R == null ? void 0 : R.key });
36873
36866
  if (d(!1), c(L), $ === (i == null ? void 0 : i.length) - 1 && ((M = R == null ? void 0 : R.value) != null && M.id)) {
36874
- const q = yield A({ parentId: (T = R == null ? void 0 : R.value) == null ? void 0 : T.id }), E = [...i];
36875
- E.splice($ + 1), E[$] = F(x({}, E[$]), { value: R == null ? void 0 : R.value }), E[$ + 1] = { key: (N = R == null ? void 0 : R.value) == null ? void 0 : N.id, children: (q == null ? void 0 : q.length) > 0 ? q : null }, a(E), n == null || n(E);
36867
+ const q = yield A({ parentId: (T = R == null ? void 0 : R.value) == null ? void 0 : T.id }), V = [...i];
36868
+ V.splice($ + 1), V[$] = F(x({}, V[$]), { value: R == null ? void 0 : R.value }), V[$ + 1] = { key: (N = R == null ? void 0 : R.value) == null ? void 0 : N.id, children: (q == null ? void 0 : q.length) > 0 ? q : null }, a(V), n == null || n(V);
36876
36869
  }
36877
36870
  }
36878
- }), z = (j, R) => V(void 0, null, function* () {
36871
+ }), z = (j, R) => E(void 0, null, function* () {
36879
36872
  const $ = j ? {
36880
36873
  [y.label]: {
36881
36874
  [I]: j
@@ -37862,7 +37855,7 @@ const CreateRecordAction$1 = forwardRef(InternalCreateRecordAction), initializer
37862
37855
  const { onClick: u } = useAssociationCreateActionProps(), d = useField(), { getPrimaryKey: p } = useCollection_deprecated(), m = p();
37863
37856
  return {
37864
37857
  onClick() {
37865
- return V(this, null, function* () {
37858
+ return E(this, null, function* () {
37866
37859
  var f, C;
37867
37860
  yield u();
37868
37861
  const { data: g } = ((C = (f = d.data) == null ? void 0 : f.data) == null ? void 0 : C.data) || {};
@@ -38410,14 +38403,14 @@ const Table$1 = withDynamicSchemaProps(
38410
38403
  "loading",
38411
38404
  "onClickRow"
38412
38405
  ]), b = useArrayField(S), y = useFieldSchema(), { size: v = "small" } = (y == null ? void 0 : y["x-component-props"]) || {}, I = useCollection(), k = ((ce = y == null ? void 0 : y.parent) == null ? void 0 : ce["x-decorator"]) === "TableSelectorProvider" ? useTableSelectorContext() : useTableBlockContext(), { expandFlag: A, allIncludesChildren: D } = k, B = useMemoizedFn(S.onRowDragEnd || (() => {
38413
- })), z = usePaginationProps$2(o, i), O = useTableColumns$1(S, z), [j, R] = useState(() => A ? D : []), [$, M] = useState(((ye = b == null ? void 0 : b.data) == null ? void 0 : ye.selectedRowKeys) || []), [T, N] = useState([]), L = (p == null ? void 0 : p.type) !== "none", q = useRef(/* @__PURE__ */ new Map()), E = useMemo(() => css`
38406
+ })), z = usePaginationProps$2(o, i), O = useTableColumns$1(S, z), [j, R] = useState(() => A ? D : []), [$, M] = useState(((ye = b == null ? void 0 : b.data) == null ? void 0 : ye.selectedRowKeys) || []), [T, N] = useState([]), L = (p == null ? void 0 : p.type) !== "none", q = useRef(/* @__PURE__ */ new Map()), V = useMemo(() => css`
38414
38407
  & > td {
38415
38408
  background-color: ${t.controlItemBgActive} !important;
38416
38409
  }
38417
38410
  &:hover > td {
38418
38411
  background-color: ${t.controlItemBgActiveHover} !important;
38419
38412
  }
38420
- `, [t.controlItemBgActive, t.controlItemBgActiveHover]), U = useMemo(() => C ? E : "", [E, C]), G = useMemo(() => C ? (oe, ne) => ({
38413
+ `, [t.controlItemBgActive, t.controlItemBgActiveHover]), U = useMemo(() => C ? V : "", [V, C]), G = useMemo(() => C ? (oe, ne) => ({
38421
38414
  onClick: (re) => {
38422
38415
  isPortalInBody(re.target) || C(oe, N, T);
38423
38416
  },
@@ -38858,7 +38851,7 @@ const ReadPretty$7 = observer$1(
38858
38851
  InternalAssociationSelect.displayName = "InternalAssociationSelect";
38859
38852
  const AssociationSelect = InternalAssociationSelect;
38860
38853
  AssociationSelect.Designer = function e() {
38861
- var $, M, T, N, L, q, E, U, G, H, W;
38854
+ var $, M, T, N, L, q, V, U, G, H, W;
38862
38855
  const { getCollectionFields: t, getInterface: o, getCollectionJoinField: n, getCollection: r, isTitleField: i } = useCollectionManager_deprecated(), { getField: a } = useCollection_deprecated(), { form: l } = useFormBlockContext(), c = useField(), u = useFieldSchema(), { t: d } = useTranslation(), p = useFilterByTk(), { dn: m, refresh: h, insertAdjacent: g } = useDesignable(), f = useCompile(), C = useIsShowMultipleSwitch(), { isAllowToSetDefaultValue: S } = useIsAllowToSetDefaultValue(), b = a(u.name) || n(u["x-collection-field"]), y = useFieldComponentOptions(), v = c.address.segments.includes("__form_grid"), I = o(b == null ? void 0 : b.interface), w = ($ = I == null ? void 0 : I.validateSchema) == null ? void 0 : $.call(I, u), k = (M = b == null ? void 0 : b.uiSchema) == null ? void 0 : M.title, A = b != null && b.target ? t(b == null ? void 0 : b.target) : [];
38863
38856
  c.title === k || c.title;
38864
38857
  const D = useSortFields(b == null ? void 0 : b.target), B = ((L = (N = (T = c.componentProps) == null ? void 0 : T.service) == null ? void 0 : N.params) == null ? void 0 : L.sort) || [];
@@ -39088,7 +39081,7 @@ AssociationSelect.Designer = function e() {
39088
39081
  SchemaSettingsDataScope,
39089
39082
  {
39090
39083
  collectionName: b == null ? void 0 : b.target,
39091
- defaultFilter: ((G = (U = (E = c.componentProps) == null ? void 0 : E.service) == null ? void 0 : U.params) == null ? void 0 : G.filter) || {},
39084
+ defaultFilter: ((G = (U = (V = c.componentProps) == null ? void 0 : V.service) == null ? void 0 : U.params) == null ? void 0 : G.filter) || {},
39092
39085
  form: l,
39093
39086
  onSubmit: ({ filter: X }) => {
39094
39087
  X = removeNullCondition(X), _.set(c.componentProps, "service.params.filter", X), u["x-component-props"] = c.componentProps, m.emit("patch", {
@@ -39366,14 +39359,14 @@ AssociationSelect.FilterDesigner = function e() {
39366
39359
  onSubmit: (M) => {
39367
39360
  var q;
39368
39361
  const T = [];
39369
- for (const E of M.rules)
39370
- T.push(_.pickBy(E, _.identity));
39362
+ for (const V of M.rules)
39363
+ T.push(_.pickBy(V, _.identity));
39371
39364
  const N = {
39372
39365
  "x-uid": l["x-uid"]
39373
39366
  };
39374
39367
  if (["percent"].includes(m == null ? void 0 : m.interface))
39375
- for (const E of T)
39376
- (E.maxValue || E.minValue) && (E.percentMode = !0), E.percentFormat && (E.percentFormats = !0);
39368
+ for (const V of T)
39369
+ (V.maxValue || V.minValue) && (V.percentMode = !0), V.percentFormat && (V.percentFormats = !0);
39377
39370
  const L = _.concat([], ((q = m == null ? void 0 : m.uiSchema) == null ? void 0 : q["x-validator"]) || [], T);
39378
39371
  a.validator = L, l["x-validator"] = T, N["x-validator"] = T, u.emit("patch", {
39379
39372
  schema: N
@@ -40245,7 +40238,7 @@ const validateJSON = {
40245
40238
  }
40246
40239
  }
40247
40240
  },
40248
- onSubmit: (m) => V(void 0, [m], function* ({ plot: u, title: d, config: p }) {
40241
+ onSubmit: (m) => E(void 0, [m], function* ({ plot: u, title: d, config: p }) {
40249
40242
  n.title = r(d), n.componentProps.plot = u;
40250
40243
  const h = r(JSON.parse(p)), g = h == null ? void 0 : h.data;
40251
40244
  if (typeof g == "function") {
@@ -41375,7 +41368,7 @@ const useStyles$4 = genStyleHook("nb-markdown", (e, { isDarkTheme: t }) => {
41375
41368
  ".field-interface-datetime": { minWidth: "100px" }
41376
41369
  }, t ? i : r)
41377
41370
  };
41378
- }), parseMarkdown = _.memoize((e) => V(void 0, null, function* () {
41371
+ }), parseMarkdown = _.memoize((e) => E(void 0, null, function* () {
41379
41372
  return e && (yield import("./md-oH2RssNY.mjs")).default.render(e);
41380
41373
  }));
41381
41374
  function useParseMarkdown(e) {
@@ -41476,8 +41469,8 @@ const MarkdownEditor = (e) => {
41476
41469
  observer$1((e) => {
41477
41470
  const { isDarkTheme: t } = useGlobalTheme(), { componentCls: o, hashId: n } = useStyles$4({ isDarkTheme: t }), { content: r, className: i } = e, a = useField(), l = useFieldSchema(), { dn: c } = useDesignable(), { onSave: u, onCancel: d, form: p } = e, m = useCollectionRecord(), [h, g] = useState(""), f = useVariables(), C = useLocalVariables(), { engine: S } = (l == null ? void 0 : l["x-decorator-props"]) || {}, [b, y] = useState(!1);
41478
41471
  useCompile(), useEffect(() => {
41479
- y(!0), V(void 0, null, function* () {
41480
- setTimeout(() => V(void 0, null, function* () {
41472
+ y(!0), E(void 0, null, function* () {
41473
+ setTimeout(() => E(void 0, null, function* () {
41481
41474
  const k = yield getRenderContent(S, r, f, C, parseMarkdown);
41482
41475
  g(k);
41483
41476
  })), y(!1);
@@ -41502,7 +41495,7 @@ const MarkdownEditor = (e) => {
41502
41495
  onCancel: () => {
41503
41496
  a.editable = !1, d == null || d();
41504
41497
  },
41505
- onSubmit: (w) => V(void 0, null, function* () {
41498
+ onSubmit: (w) => E(void 0, null, function* () {
41506
41499
  var k;
41507
41500
  a.editable = !1, (k = l["x-component-props"]) != null || (l["x-component-props"] = {}), l["x-component-props"].content = w, a.componentProps.content = w, u == null || u(l), c.emit("patch", {
41508
41501
  schema: {
@@ -42313,7 +42306,7 @@ Menu.Item = observer$1(
42313
42306
  const MenuURLButton = ({ href: e, params: t, icon: o }) => {
42314
42307
  const n = useField(), { t: r } = useMenuTranslation(), i = useContext(MenuItemDesignerContext), { parseURLAndParams: a } = useParseURLAndParams(), l = useRef(e);
42315
42308
  return useEffect(() => {
42316
- V(void 0, null, function* () {
42309
+ E(void 0, null, function* () {
42317
42310
  try {
42318
42311
  l.current = yield a(e, t || []);
42319
42312
  } catch (u) {
@@ -43583,7 +43576,7 @@ const useStyles$2 = genStyleHook("nb-rich-text", (e) => {
43583
43576
  return /* @__PURE__ */ jsx("div", F(x({ className: cls("nb-table-index"), style: { padding: "0 8px 0 16px" } }, o), { children: t + 1 }));
43584
43577
  }, useDefAction = () => ({
43585
43578
  move() {
43586
- return V(this, null, function* () {
43579
+ return E(this, null, function* () {
43587
43580
  });
43588
43581
  }
43589
43582
  }), TableArray = observer$1(
@@ -43710,7 +43703,7 @@ const useStyles$2 = genStyleHook("nb-rich-text", (e) => {
43710
43703
  ReactDragListView,
43711
43704
  {
43712
43705
  handleSelector: ".drag-handle",
43713
- onDragEnd: (y, v) => V(void 0, null, function* () {
43706
+ onDragEnd: (y, v) => E(void 0, null, function* () {
43714
43707
  const I = o.value[y], w = o.value[v];
43715
43708
  o.move(y, v), yield h(I, w);
43716
43709
  }),
@@ -43799,7 +43792,7 @@ const useStyles$2 = genStyleHook("nb-rich-text", (e) => {
43799
43792
  const m = useActionContext();
43800
43793
  return {
43801
43794
  run() {
43802
- return V(this, null, function* () {
43795
+ return E(this, null, function* () {
43803
43796
  m.setVisible(!1);
43804
43797
  });
43805
43798
  }
@@ -43817,7 +43810,7 @@ const useStyles$2 = genStyleHook("nb-rich-text", (e) => {
43817
43810
  const m = useForm(), h = useActionContext();
43818
43811
  return {
43819
43812
  run() {
43820
- return V(this, null, function* () {
43813
+ return E(this, null, function* () {
43821
43814
  const { title: f } = m.values;
43822
43815
  f && (r.title = f, i.title = f, a.emit("patch", {
43823
43816
  schema: {
@@ -44236,9 +44229,9 @@ const TableActionColumnDesigner = (e) => {
44236
44229
  defaultChecked: !0,
44237
44230
  checked: I ? r.decoratorProps.treeTable : !1,
44238
44231
  onChange: (L) => {
44239
- var E;
44232
+ var V;
44240
44233
  r.decoratorProps.treeTable = L, i["x-decorator-props"].treeTable = L;
44241
- const q = F(x({}, (E = c.params) == null ? void 0 : E[0]), {
44234
+ const q = F(x({}, (V = c.params) == null ? void 0 : V[0]), {
44242
44235
  tree: L ? !0 : null
44243
44236
  });
44244
44237
  d.emit("patch", {
@@ -44252,7 +44245,7 @@ const TableActionColumnDesigner = (e) => {
44252
44245
  {
44253
44246
  title: u("Enable drag and drop sorting"),
44254
44247
  checked: r.decoratorProps.dragSort,
44255
- onChange: (L) => V(void 0, null, function* () {
44248
+ onChange: (L) => E(void 0, null, function* () {
44256
44249
  L && v && (yield k.resource("collections.fields", v.collectionName).update({
44257
44250
  filterByTk: v.name,
44258
44251
  values: {
@@ -44354,8 +44347,8 @@ const TableActionColumnDesigner = (e) => {
44354
44347
  },
44355
44348
  onSubmit: ({ sort: L }) => {
44356
44349
  var U;
44357
- const q = L.map((G) => G.direction === "desc" ? `-${G.field}` : G.field), E = r.decoratorProps.params || {};
44358
- E.sort = q, r.decoratorProps.params = E, i["x-decorator-props"].params = E, d.emit("patch", {
44350
+ const q = L.map((G) => G.direction === "desc" ? `-${G.field}` : G.field), V = r.decoratorProps.params || {};
44351
+ V.sort = q, r.decoratorProps.params = V, i["x-decorator-props"].params = V, d.emit("patch", {
44359
44352
  schema: {
44360
44353
  "x-uid": i["x-uid"],
44361
44354
  "x-decorator-props": i["x-decorator-props"]
@@ -44379,9 +44372,9 @@ const TableActionColumnDesigner = (e) => {
44379
44372
  { label: "200", value: 200 }
44380
44373
  ],
44381
44374
  onChange: (L) => {
44382
- var E;
44375
+ var V;
44383
44376
  const q = r.decoratorProps.params || {};
44384
- q.pageSize = L, r.decoratorProps.params = q, i["x-decorator-props"].params = q, c.run(F(x({}, (E = c.params) == null ? void 0 : E[0]), { pageSize: L, page: 1 })), d.emit("patch", {
44377
+ q.pageSize = L, r.decoratorProps.params = q, i["x-decorator-props"].params = q, c.run(F(x({}, (V = c.params) == null ? void 0 : V[0]), { pageSize: L, page: 1 })), d.emit("patch", {
44385
44378
  schema: {
44386
44379
  "x-uid": i["x-uid"],
44387
44380
  "x-decorator-props": i["x-decorator-props"]
@@ -44401,7 +44394,7 @@ const TableActionColumnDesigner = (e) => {
44401
44394
  { label: u("Small"), value: "small" }
44402
44395
  ],
44403
44396
  onChange: (L) => {
44404
- const q = i.reduceProperties((E, U) => {
44397
+ const q = i.reduceProperties((V, U) => {
44405
44398
  if (U["x-component"] === "TableV2")
44406
44399
  return U;
44407
44400
  }, null);
@@ -45519,7 +45512,7 @@ const CollectionResourceActionProvider = (e) => {
45519
45512
  const e = useForm(), t = useActionContext();
45520
45513
  return {
45521
45514
  run() {
45522
- return V(this, null, function* () {
45515
+ return E(this, null, function* () {
45523
45516
  t.setVisible(!1), e.reset();
45524
45517
  });
45525
45518
  }
@@ -45538,7 +45531,7 @@ const CollectionResourceActionProvider = (e) => {
45538
45531
  const { run: e } = useResourceActionContext(), t = useForm(), o = useActionContext();
45539
45532
  return {
45540
45533
  run() {
45541
- return V(this, null, function* () {
45534
+ return E(this, null, function* () {
45542
45535
  t.reset(), e(), o.setVisible(!1);
45543
45536
  });
45544
45537
  }
@@ -45547,7 +45540,7 @@ const CollectionResourceActionProvider = (e) => {
45547
45540
  const { resource: e } = useCollection_deprecated();
45548
45541
  return {
45549
45542
  onCardDragEnd(c, u, d) {
45550
- return V(this, arguments, function* ({ columns: o, groupField: n }, { fromColumnId: r, fromPosition: i }, { toColumnId: a, toPosition: l }) {
45543
+ return E(this, arguments, function* ({ columns: o, groupField: n }, { fromColumnId: r, fromPosition: i }, { toColumnId: a, toPosition: l }) {
45551
45544
  var C, S;
45552
45545
  const p = o.find((b) => b.id === r), m = o.find((b) => b.id === a), h = (C = p == null ? void 0 : p.cards) == null ? void 0 : C[i], g = (S = m == null ? void 0 : m.cards) == null ? void 0 : S[l], f = {
45553
45546
  sourceId: h.id,
@@ -45738,7 +45731,7 @@ const CollectionResourceActionProvider = (e) => {
45738
45731
  const { run: e, params: t, defaultRequest: o } = useResourceActionContext(), n = useForm(), r = useActionContext(), [i, ...a] = t;
45739
45732
  return {
45740
45733
  run() {
45741
- return V(this, null, function* () {
45734
+ return E(this, null, function* () {
45742
45735
  var d;
45743
45736
  const c = (d = o == null ? void 0 : o.params) == null ? void 0 : d.filter, u = c ? { $and: [c, n.values.filter] } : n.values.filter;
45744
45737
  e(F(x({}, i), { filter: u }), ...a), r.setVisible(!1);
@@ -45749,7 +45742,7 @@ const CollectionResourceActionProvider = (e) => {
45749
45742
  const t = useForm(), o = useField(), n = useActionContext(), { refresh: r } = useResourceActionContext(), { resource: i } = useResourceContext();
45750
45743
  return {
45751
45744
  run() {
45752
- return V(this, null, function* () {
45745
+ return E(this, null, function* () {
45753
45746
  var l;
45754
45747
  try {
45755
45748
  yield t.submit(), o.data = o.data || {}, o.data.loading = !0;
@@ -45765,7 +45758,7 @@ const CollectionResourceActionProvider = (e) => {
45765
45758
  const t = useForm(), { resource: o } = useResourceContext();
45766
45759
  return {
45767
45760
  run() {
45768
- return V(this, null, function* () {
45761
+ return E(this, null, function* () {
45769
45762
  var i;
45770
45763
  yield t.submit();
45771
45764
  const r = yield o.create({ values: t.values });
@@ -45779,7 +45772,7 @@ const CollectionResourceActionProvider = (e) => {
45779
45772
  const { resource: o, targetKey: n } = useResourceContext(), { [n]: r } = useRecord();
45780
45773
  return {
45781
45774
  run() {
45782
- return V(this, null, function* () {
45775
+ return E(this, null, function* () {
45783
45776
  var l;
45784
45777
  yield t.submit();
45785
45778
  const a = yield o.update({ filterByTk: r, values: t.values });
@@ -45791,7 +45784,7 @@ const CollectionResourceActionProvider = (e) => {
45791
45784
  const { resource: e } = useResourceContext(), { refresh: t } = useResourceActionContext();
45792
45785
  return {
45793
45786
  move(n, r) {
45794
- return V(this, null, function* () {
45787
+ return E(this, null, function* () {
45795
45788
  yield e.move({
45796
45789
  sourceId: n.id,
45797
45790
  targetId: r.id
@@ -45803,7 +45796,7 @@ const CollectionResourceActionProvider = (e) => {
45803
45796
  const t = useField(), o = useForm(), n = useActionContext(), { refresh: r } = useResourceActionContext(), { resource: i, targetKey: a } = useResourceContext(), { [a]: l } = useRecord();
45804
45797
  return {
45805
45798
  run() {
45806
- return V(this, null, function* () {
45799
+ return E(this, null, function* () {
45807
45800
  var u;
45808
45801
  yield o.submit(), t.data = t.data || {}, t.data.loading = !0;
45809
45802
  try {
@@ -45821,7 +45814,7 @@ const CollectionResourceActionProvider = (e) => {
45821
45814
  const { refresh: t } = useResourceActionContext(), { resource: o, targetKey: n } = useResourceContext(), { [n]: r } = useRecord();
45822
45815
  return {
45823
45816
  run() {
45824
- return V(this, null, function* () {
45817
+ return E(this, null, function* () {
45825
45818
  yield o.destroy({ filterByTk: r }), e == null || e(r), t();
45826
45819
  });
45827
45820
  }
@@ -45830,7 +45823,7 @@ const CollectionResourceActionProvider = (e) => {
45830
45823
  const { state: t, setState: o, refresh: n } = useResourceActionContext(), { resource: r } = useResourceContext(), { t: i } = useTranslation();
45831
45824
  return {
45832
45825
  run() {
45833
- return V(this, null, function* () {
45826
+ return E(this, null, function* () {
45834
45827
  var l;
45835
45828
  if (!((l = t == null ? void 0 : t.selectedRowKeys) != null && l.length))
45836
45829
  return message.error(i("Please select the records you want to delete"));
@@ -45849,7 +45842,7 @@ const CollectionResourceActionProvider = (e) => {
45849
45842
  const { run: e } = useCreateAction$1(), { refreshCM: t } = useCollectionManager_deprecated();
45850
45843
  return {
45851
45844
  run() {
45852
- return V(this, null, function* () {
45845
+ return E(this, null, function* () {
45853
45846
  yield e(), yield t();
45854
45847
  });
45855
45848
  }
@@ -45858,7 +45851,7 @@ const CollectionResourceActionProvider = (e) => {
45858
45851
  const { run: e } = useUpdateAction$1(), { refreshCM: t } = useCollectionManager_deprecated();
45859
45852
  return {
45860
45853
  run() {
45861
- return V(this, null, function* () {
45854
+ return E(this, null, function* () {
45862
45855
  yield e(), yield t();
45863
45856
  });
45864
45857
  }
@@ -45867,7 +45860,7 @@ const CollectionResourceActionProvider = (e) => {
45867
45860
  const { run: e } = useDestroyAction$2(), { refreshCM: t } = useCollectionManager_deprecated();
45868
45861
  return {
45869
45862
  run() {
45870
- return V(this, null, function* () {
45863
+ return E(this, null, function* () {
45871
45864
  yield e(), yield t();
45872
45865
  });
45873
45866
  }
@@ -45882,7 +45875,7 @@ const CollectionResourceActionProvider = (e) => {
45882
45875
  const { run: e } = useBulkDestroyAction$2(), { refreshCM: t } = useCollectionManager_deprecated();
45883
45876
  return {
45884
45877
  run() {
45885
- return V(this, null, function* () {
45878
+ return E(this, null, function* () {
45886
45879
  yield e(), yield t();
45887
45880
  });
45888
45881
  }
@@ -45948,7 +45941,7 @@ const options = {
45948
45941
  const t = useAPIClient(), n = useLocation().pathname.startsWith("/admin"), r = t.auth.getToken() || "", { render: i } = useAppSpin(), a = useRequest(options, {
45949
45942
  refreshDeps: [n, r],
45950
45943
  ready: !!(n && r)
45951
- }), l = useCallback(() => V(void 0, null, function* () {
45944
+ }), l = useCallback(() => E(void 0, null, function* () {
45952
45945
  const { data: d } = yield t.request(options);
45953
45946
  return a.mutate(d), (d == null ? void 0 : d.data) || [];
45954
45947
  }), [a]), c = useMemo(() => {
@@ -46035,7 +46028,7 @@ const useSelectedRowKeys = () => {
46035
46028
  const e = useContext(DataSourceContext_deprecated), t = useForm(), { setVisible: o } = useActionContext();
46036
46029
  return {
46037
46030
  run() {
46038
- return V(this, null, function* () {
46031
+ return E(this, null, function* () {
46039
46032
  console.log("form.values", t.values);
46040
46033
  const r = e.dataSource || [];
46041
46034
  r.push(cloneDeep$1(t.values)), e.setDataSource([...r]), o(!1), yield t.reset();
@@ -46046,7 +46039,7 @@ const useSelectedRowKeys = () => {
46046
46039
  const e = useContext(DataSourceContext_deprecated), { selectedRowKeys: t, setSelectedRowKeys: o } = e;
46047
46040
  return {
46048
46041
  run() {
46049
- return V(this, null, function* () {
46042
+ return E(this, null, function* () {
46050
46043
  const r = e.dataSource || [];
46051
46044
  e.setDataSource(
46052
46045
  r.filter((i, a) => !t.includes(a))
@@ -46058,7 +46051,7 @@ const useSelectedRowKeys = () => {
46058
46051
  const e = useRecordIndex(), t = useForm(), { setVisible: o } = useActionContext(), n = useContext(DataSourceContext_deprecated);
46059
46052
  return {
46060
46053
  run() {
46061
- return V(this, null, function* () {
46054
+ return E(this, null, function* () {
46062
46055
  const a = ((n == null ? void 0 : n.dataSource) || []).map((l, c) => c === e ? x({}, t.values) : l);
46063
46056
  n.setDataSource([...a]), o(!1);
46064
46057
  });
@@ -46068,7 +46061,7 @@ const useSelectedRowKeys = () => {
46068
46061
  const e = useRecordIndex(), t = useContext(DataSourceContext_deprecated);
46069
46062
  return {
46070
46063
  run() {
46071
- return V(this, null, function* () {
46064
+ return E(this, null, function* () {
46072
46065
  const n = t.dataSource || [];
46073
46066
  t.setDataSource(
46074
46067
  n.filter((r, i) => e !== i)
@@ -46325,7 +46318,7 @@ const useCurrentAppInfo = () => useContext(CurrentAppInfoContext), CurrentAppInf
46325
46318
  {
46326
46319
  showSearch: !0,
46327
46320
  options: l,
46328
- onDropdownVisibleChange: (g) => V(void 0, null, function* () {
46321
+ onDropdownVisibleChange: (g) => E(void 0, null, function* () {
46329
46322
  var S;
46330
46323
  const { target: f, type: C } = p.values;
46331
46324
  f && g && c(
@@ -46374,7 +46367,7 @@ const useCurrentAppInfo = () => useContext(CurrentAppInfoContext), CurrentAppInf
46374
46367
  value: C,
46375
46368
  options: o,
46376
46369
  showSearch: !0,
46377
- onDropdownVisibleChange: (y) => V(void 0, null, function* () {
46370
+ onDropdownVisibleChange: (y) => E(void 0, null, function* () {
46378
46371
  var A;
46379
46372
  const { target: v, type: I, through: w } = f.values, k = ["belongsTo"].includes(I) ? l || p : ["belongsToMany"].includes(I) ? w : v;
46380
46373
  if (k && y) {
@@ -46550,7 +46543,7 @@ const useCurrentAppInfo = () => useContext(CurrentAppInfoContext), CurrentAppInf
46550
46543
  const e = useForm(), { refreshCM: t } = useCollectionManager_deprecated(), o = useActionContext(), { refresh: n } = useResourceActionContext(), { resource: r } = useResourceContext(), i = useField();
46551
46544
  return {
46552
46545
  run() {
46553
- return V(this, null, function* () {
46546
+ return E(this, null, function* () {
46554
46547
  yield e.submit(), i.data = i.data || {}, i.data.loading = !0;
46555
46548
  const l = cloneDeep$1(e.values);
46556
46549
  l.autoCreateReverseField || delete l.reverseField, delete l.autoCreateReverseField;
@@ -46580,13 +46573,13 @@ const useCurrentAppInfo = () => useContext(CurrentAppInfoContext), CurrentAppInf
46580
46573
  }));
46581
46574
  else {
46582
46575
  let q = [];
46583
- M != null && M.length ? M.forEach((E) => {
46576
+ M != null && M.length ? M.forEach((V) => {
46584
46577
  var G;
46585
- const U = (G = N == null ? void 0 : N.children) == null ? void 0 : G.find((H) => [E, E.interface].includes(H.name));
46578
+ const U = (G = N == null ? void 0 : N.children) == null ? void 0 : G.find((H) => [V, V.interface].includes(H.name));
46586
46579
  U && q.push(F(x({}, U), {
46587
- targetScope: E == null ? void 0 : E.targetScope
46580
+ targetScope: V == null ? void 0 : V.targetScope
46588
46581
  }));
46589
- }) : $ != null && $.length ? q = (L = N == null ? void 0 : N.children) == null ? void 0 : L.filter((E) => !$.includes(E.name)) : q = N == null ? void 0 : N.children, q != null && q.length && T.push(F(x({}, N), {
46582
+ }) : $ != null && $.length ? q = (L = N == null ? void 0 : N.children) == null ? void 0 : L.filter((V) => !$.includes(V.name)) : q = N == null ? void 0 : N.children, q != null && q.length && T.push(F(x({}, N), {
46590
46583
  children: q
46591
46584
  }));
46592
46585
  }
@@ -46736,7 +46729,7 @@ const useCurrentAppInfo = () => useContext(CurrentAppInfoContext), CurrentAppInf
46736
46729
  const e = useForm(), { refreshCM: t } = useCollectionManager_deprecated(), o = useActionContext(), { refresh: n } = useResourceActionContext(), { resource: r, targetKey: i } = useResourceContext(), { [i]: a } = useRecord();
46737
46730
  return {
46738
46731
  run() {
46739
- return V(this, null, function* () {
46732
+ return E(this, null, function* () {
46740
46733
  yield e.submit();
46741
46734
  const c = cloneDeep(e.values);
46742
46735
  c.autoCreateReverseField || delete c.reverseField, delete c.autoCreateReverseField, yield r.update({ filterByTk: a, values: c }), o.setVisible(!1), yield e.reset(), n(), yield t();
@@ -46764,7 +46757,7 @@ const useCurrentAppInfo = () => useContext(CurrentAppInfoContext), CurrentAppInf
46764
46757
  /* @__PURE__ */ jsx(
46765
46758
  "a",
46766
46759
  F(x({}, a), {
46767
- onClick: () => V(void 0, null, function* () {
46760
+ onClick: () => E(void 0, null, function* () {
46768
46761
  var z, O;
46769
46762
  const { data: k } = yield g.resource("collections.fields", n.collectionName).get({
46770
46763
  filterByTk: n.name,
@@ -46876,7 +46869,7 @@ const useCurrentAppInfo = () => useContext(CurrentAppInfoContext), CurrentAppInf
46876
46869
  const j = useForm(), { refresh: R } = useResourceActionContext(), { refreshCM: $ } = useCollectionManager_deprecated(), M = useActionContext(), { resource: T } = useResourceContext();
46877
46870
  return {
46878
46871
  run() {
46879
- return V(this, null, function* () {
46872
+ return E(this, null, function* () {
46880
46873
  yield j.submit();
46881
46874
  const L = cloneDeep(j.values), q = omit$1(L, [
46882
46875
  "key",
@@ -46911,7 +46904,7 @@ const useCurrentAppInfo = () => useContext(CurrentAppInfoContext), CurrentAppInf
46911
46904
  "a",
46912
46905
  {
46913
46906
  disabled: D,
46914
- onClick: () => V(void 0, null, function* () {
46907
+ onClick: () => E(void 0, null, function* () {
46915
46908
  var j;
46916
46909
  if (!D) {
46917
46910
  const { data: R } = yield b.resource("collections.fields", n.collectionName).get({
@@ -47011,7 +47004,7 @@ const useCurrentAppInfo = () => useContext(CurrentAppInfoContext), CurrentAppInf
47011
47004
  /* @__PURE__ */ jsx(
47012
47005
  "a",
47013
47006
  {
47014
- onClick: () => V(void 0, null, function* () {
47007
+ onClick: () => E(void 0, null, function* () {
47015
47008
  var w;
47016
47009
  const { data: b } = yield m.resource("collections.fields", n.collectionName).get({
47017
47010
  filterByTk: n.name,
@@ -47158,7 +47151,7 @@ const getSchema$4 = (e, t, o) => {
47158
47151
  const t = useForm(), { refreshCM: o } = useCollectionManager_deprecated(), n = useActionContext(), { refresh: r } = useResourceActionContext(), { resource: i } = useResourceContext(), a = useField();
47159
47152
  return {
47160
47153
  run() {
47161
- return V(this, null, function* () {
47154
+ return E(this, null, function* () {
47162
47155
  var c;
47163
47156
  a.data = a.data || {}, a.data.loading = !0;
47164
47157
  try {
@@ -47306,7 +47299,7 @@ const getSchema$4 = (e, t, o) => {
47306
47299
  const { refreshCM: t } = useCollectionManager_deprecated(), o = useForm(), n = useActionContext(), { refresh: r } = useResourceActionContext(), { resource: i, targetKey: a } = useResourceContext(), { [a]: l, template: c } = useRecord(), u = useAPIClient(), d = c === "sql" ? u.resource("sqlCollection") : i;
47307
47300
  return {
47308
47301
  run() {
47309
- return V(this, null, function* () {
47302
+ return E(this, null, function* () {
47310
47303
  yield o.submit(), yield d.update({
47311
47304
  filterByTk: l,
47312
47305
  values: c === "sql" ? o.values : omit(o.values, ["fields"])
@@ -47323,7 +47316,7 @@ const getSchema$4 = (e, t, o) => {
47323
47316
  /* @__PURE__ */ jsx(
47324
47317
  "a",
47325
47318
  F(x({}, i), {
47326
- onClick: () => V(void 0, null, function* () {
47319
+ onClick: () => E(void 0, null, function* () {
47327
47320
  const g = a(n.template), f = getSchema$3(
47328
47321
  x({}, g),
47329
47322
  n,
@@ -47386,12 +47379,12 @@ const getSchema$4 = (e, t, o) => {
47386
47379
  const R = [];
47387
47380
  g.forEach(($) => {
47388
47381
  var q;
47389
- const M = v($), N = k($).map((E) => {
47390
- const U = A(E, $);
47382
+ const M = v($), N = k($).map((V) => {
47383
+ const U = A(V, $);
47391
47384
  return {
47392
47385
  type: "group",
47393
- key: E,
47394
- label: l("Parent collection fields") + l(`(${v(E).title})`),
47386
+ key: V,
47387
+ label: l("Parent collection fields") + l(`(${v(V).title})`),
47395
47388
  children: U.filter((G) => !["hasOne", "hasMany", "belongsToMany"].includes(G == null ? void 0 : G.type)).map((G) => {
47396
47389
  var H;
47397
47390
  return {
@@ -47400,9 +47393,9 @@ const getSchema$4 = (e, t, o) => {
47400
47393
  };
47401
47394
  })
47402
47395
  };
47403
- }), L = (q = M.fields.filter((E) => !["obo", "oho", "m2m", "o2m"].includes(E == null ? void 0 : E.interface))) == null ? void 0 : q.map((E) => {
47396
+ }), L = (q = M.fields.filter((V) => !["obo", "oho", "m2m", "o2m"].includes(V == null ? void 0 : V.interface))) == null ? void 0 : q.map((V) => {
47404
47397
  var U;
47405
- return { value: E.name, key: E.name, label: l(((U = E.uiSchema) == null ? void 0 : U.title) || E.name) };
47398
+ return { value: V.name, key: V.name, label: l(((U = V.uiSchema) == null ? void 0 : U.title) || V.name) };
47406
47399
  }).concat(N);
47407
47400
  R.push({
47408
47401
  value: $,
@@ -47418,14 +47411,14 @@ const getSchema$4 = (e, t, o) => {
47418
47411
  const T = (M = Object.values(($ = R == null ? void 0 : R.data) == null ? void 0 : $.fields)) == null ? void 0 : M.map((N) => {
47419
47412
  var L, q;
47420
47413
  if (N.source) {
47421
- const E = (i == null ? void 0 : i.data.find((U) => U.name === N.name)) || N;
47414
+ const V = (i == null ? void 0 : i.data.find((U) => U.name === N.name)) || N;
47422
47415
  return F(x({}, N), {
47423
- uiSchema: F(x({}, omit$1(E.uiSchema, "rawTitle")), { title: ((L = E.uiSchema) == null ? void 0 : L.title) || E.name })
47416
+ uiSchema: F(x({}, omit$1(V.uiSchema, "rawTitle")), { title: ((L = V.uiSchema) == null ? void 0 : L.title) || V.name })
47424
47417
  });
47425
47418
  } else {
47426
- const E = (i == null ? void 0 : i.data.find((U) => U.name === N.name)) || N;
47427
- return F(x({}, E), {
47428
- uiSchema: F(x({}, omit$1(E.uiSchema, "rawTitle")), { title: ((q = E.uiSchema) == null ? void 0 : q.title) || E.name })
47419
+ const V = (i == null ? void 0 : i.data.find((U) => U.name === N.name)) || N;
47420
+ return F(x({}, V), {
47421
+ uiSchema: F(x({}, omit$1(V.uiSchema, "rawTitle")), { title: ((q = V.uiSchema) == null ? void 0 : q.title) || V.name })
47429
47422
  });
47430
47423
  }
47431
47424
  });
@@ -47465,7 +47458,7 @@ const getSchema$4 = (e, t, o) => {
47465
47458
  options: D(m),
47466
47459
  onChange: (T, N) => {
47467
47460
  var q;
47468
- const L = (q = w(T == null ? void 0 : T[0])) == null ? void 0 : q.find((E) => E.name === last(T));
47461
+ const L = (q = w(T == null ? void 0 : T[0])) == null ? void 0 : q.find((V) => V.name === last(T));
47469
47462
  O(F(x({}, $), { source: T, uiSchema: L == null ? void 0 : L.uiSchema }), M);
47470
47463
  },
47471
47464
  placeholder: l("Select field source")
@@ -47505,9 +47498,9 @@ const getSchema$4 = (e, t, o) => {
47505
47498
  style: { width: "100%" },
47506
47499
  popupMatchSelectWidth: !1,
47507
47500
  onChange: (L) => {
47508
- var E;
47501
+ var V;
47509
47502
  const q = I(L);
47510
- O(F(x({}, T), { interface: L, uiSchema: (E = q == null ? void 0 : q.default) == null ? void 0 : E.uiSchema }), M);
47503
+ O(F(x({}, T), { interface: L, uiSchema: (V = q == null ? void 0 : q.default) == null ? void 0 : V.uiSchema }), M);
47511
47504
  },
47512
47505
  children: N.map((L) => /* @__PURE__ */ jsx(Select$1.OptGroup, { label: D(L.label), children: L.children.map((q) => /* @__PURE__ */ jsx(Select$1.Option, { value: q.name, children: D(q.label) }, q.value)) }, L.key))
47513
47506
  }
@@ -47732,7 +47725,7 @@ const mapFields = ["lineString", "point", "circle", "polygon"], PreviewTable$1 =
47732
47725
  const e = useForm(), { refreshCM: t } = useCollectionManager_deprecated(), o = useActionContext(), { refresh: n } = useResourceActionContext(), { targetKey: r } = useResourceContext(), { [r]: i } = useRecord(), a = useAPIClient(), l = useField();
47733
47726
  return {
47734
47727
  run() {
47735
- return V(this, null, function* () {
47728
+ return E(this, null, function* () {
47736
47729
  yield e.submit(), l.data = l.data || {}, l.data.loading = !0;
47737
47730
  try {
47738
47731
  yield a.resource("collections").setFields({
@@ -48160,7 +48153,7 @@ const AsyncDataProvider = (e) => {
48160
48153
  const t = useForm(), o = useActionContext(), { refreshCM: n } = useCollectionManager_deprecated(), { refresh: r } = useResourceActionContext(), { targetKey: i } = useResourceContext(), { [i]: a } = useRecord(), l = useAPIClient(), c = useField();
48161
48154
  return {
48162
48155
  run() {
48163
- return V(this, null, function* () {
48156
+ return E(this, null, function* () {
48164
48157
  yield t.submit(), c.data = c.data || {}, c.data.loading = !0;
48165
48158
  try {
48166
48159
  yield l.resource("sqlCollection").setFields({
@@ -48204,7 +48197,7 @@ const AsyncDataProvider = (e) => {
48204
48197
  const { run: e } = useDestroyAction(), { refreshCM: t } = useCollectionManager_deprecated();
48205
48198
  return {
48206
48199
  run() {
48207
- return V(this, null, function* () {
48200
+ return E(this, null, function* () {
48208
48201
  yield e(), yield t();
48209
48202
  });
48210
48203
  }
@@ -48213,7 +48206,7 @@ const AsyncDataProvider = (e) => {
48213
48206
  const { run: t } = useBulkDestroyAction(), { refreshCM: o } = useCollectionManager_deprecated();
48214
48207
  return {
48215
48208
  run() {
48216
- return V(this, null, function* () {
48209
+ return E(this, null, function* () {
48217
48210
  yield t(e), yield o();
48218
48211
  });
48219
48212
  }
@@ -48222,7 +48215,7 @@ const AsyncDataProvider = (e) => {
48222
48215
  const { refresh: e } = useResourceActionContext(), { resource: t, targetKey: o } = useResourceContext(), { [o]: n } = useRecord(), r = useForm(), { cascade: i } = (r == null ? void 0 : r.values) || {};
48223
48216
  return {
48224
48217
  run() {
48225
- return V(this, null, function* () {
48218
+ return E(this, null, function* () {
48226
48219
  yield t.destroy({ filterByTk: n, cascade: i }), e();
48227
48220
  });
48228
48221
  }
@@ -48231,7 +48224,7 @@ const AsyncDataProvider = (e) => {
48231
48224
  const { state: e, setState: t, refresh: o } = useResourceActionContext(), { resource: n } = useResourceContext(), r = useActionContext(), { t: i } = useTranslation(), a = useForm(), { cascade: l } = (a == null ? void 0 : a.values) || {};
48232
48225
  return {
48233
48226
  run(u) {
48234
- return V(this, null, function* () {
48227
+ return E(this, null, function* () {
48235
48228
  var d, p;
48236
48229
  if (!((d = e == null ? void 0 : e.selectedRowKeys) != null && d.length))
48237
48230
  return message.error(i("Please select the records you want to delete"));
@@ -48381,7 +48374,7 @@ const getSchema$1 = (e) => {
48381
48374
  };
48382
48375
  }, useCreateSubField = () => (useActionContext(), {
48383
48376
  run() {
48384
- return V(this, null, function* () {
48377
+ return E(this, null, function* () {
48385
48378
  });
48386
48379
  }
48387
48380
  }), AddSubFieldAction = () => {
@@ -48466,7 +48459,7 @@ const getSchema$1 = (e) => {
48466
48459
  const e = useForm(), { run: t } = useUpdateAction$1(), { refreshCM: o } = useCollectionManager_deprecated();
48467
48460
  return {
48468
48461
  run() {
48469
- return V(this, null, function* () {
48462
+ return E(this, null, function* () {
48470
48463
  var i, a, l;
48471
48464
  yield e.submit();
48472
48465
  const r = ((l = (a = (i = e == null ? void 0 : e.values) == null ? void 0 : i.uiSchema) == null ? void 0 : a.enum) == null ? void 0 : l.slice()) || [];
@@ -48487,7 +48480,7 @@ const getSchema$1 = (e) => {
48487
48480
  /* @__PURE__ */ jsx(
48488
48481
  "a",
48489
48482
  {
48490
- onClick: () => V(void 0, null, function* () {
48483
+ onClick: () => E(void 0, null, function* () {
48491
48484
  const c = getSchema(F(x({}, o(t.interface)), {
48492
48485
  default: t
48493
48486
  }));
@@ -52585,7 +52578,7 @@ class SqlCollectionTemplate extends CollectionTemplate {
52585
52578
  }
52586
52579
  class MainDataSource extends DataSource {
52587
52580
  getDataSource() {
52588
- return V(this, null, function* () {
52581
+ return E(this, null, function* () {
52589
52582
  var n;
52590
52583
  const t = yield this.app.apiClient.request({
52591
52584
  resource: "collections",
@@ -52599,7 +52592,7 @@ class MainDataSource extends DataSource {
52599
52592
  }
52600
52593
  class CollectionPlugin extends Plugin {
52601
52594
  load() {
52602
- return V(this, null, function* () {
52595
+ return E(this, null, function* () {
52603
52596
  this.dataSourceManager.addCollectionMixins([InheritanceCollectionMixin]), this.addFieldInterfaces(), this.addCollectionTemplates(), this.addFieldInterfaces(), this.addFieldInterfaceGroups(), this.addMainDataSource();
52604
52597
  });
52605
52598
  }
@@ -53093,7 +53086,7 @@ const toItems = (e = {}) => {
53093
53086
  l(((f = g == null ? void 0 : g.data) == null ? void 0 : f.map((C) => C["x-uid"])) || []);
53094
53087
  }
53095
53088
  }
53096
- ), d = o.resource("roles.menuUiSchemas", t.name), p = i.length === a.length, m = (g, f) => V(void 0, null, function* () {
53089
+ ), d = o.resource("roles.menuUiSchemas", t.name), p = i.length === a.length, m = (g, f) => E(void 0, null, function* () {
53097
53090
  const C = getParentUids(n, (b) => b.uid === f.uid), S = getChildrenUids(f == null ? void 0 : f.children, []);
53098
53091
  if (g) {
53099
53092
  const b = S.concat(f.uid), y = a.filter((v) => !b.includes(v));
@@ -53138,7 +53131,7 @@ const toItems = (e = {}) => {
53138
53131
  Checkbox$1,
53139
53132
  {
53140
53133
  checked: p,
53141
- onChange: (g) => V(void 0, null, function* () {
53134
+ onChange: (g) => E(void 0, null, function* () {
53142
53135
  p ? yield d.set({
53143
53136
  values: []
53144
53137
  }) : yield d.set({
@@ -53176,7 +53169,7 @@ const PermissionProvider = (e) => {
53176
53169
  {
53177
53170
  value: {
53178
53171
  currentRecord: i,
53179
- update: (l, c) => V(void 0, null, function* () {
53172
+ update: (l, c) => E(void 0, null, function* () {
53180
53173
  const { path: u, value: d } = l.getState();
53181
53174
  if (["ui.*", "pm", "pm.*"].includes(u)) {
53182
53175
  const p = t.resource("roles.snippets", o.name);
@@ -53247,7 +53240,7 @@ const PermissionProvider = (e) => {
53247
53240
  );
53248
53241
  },
53249
53242
  effects() {
53250
- onFieldChange("*", (n, r) => V(this, null, function* () {
53243
+ onFieldChange("*", (n, r) => E(this, null, function* () {
53251
53244
  r.modified && (yield e(n, r));
53252
53245
  }));
53253
53246
  }
@@ -54499,7 +54492,7 @@ const PluginDetail = ({ plugin: e, onCancel: t }) => {
54499
54492
  const u = useForm();
54500
54493
  return {
54501
54494
  run() {
54502
- return V(this, null, function* () {
54495
+ return E(this, null, function* () {
54503
54496
  yield u.submit(), c.request({
54504
54497
  url: t ? "pm:update" : "pm:add",
54505
54498
  method: "post",
@@ -54605,7 +54598,7 @@ const PluginUploadForm = ({ onClose: e, pluginData: t, isUpgrade: o }) => {
54605
54598
  const l = useAPIClient(), { t: c } = useTranslation(), u = useForm();
54606
54599
  return {
54607
54600
  run() {
54608
- return V(this, null, function* () {
54601
+ return E(this, null, function* () {
54609
54602
  var h, g;
54610
54603
  yield u.submit();
54611
54604
  const p = new FormData();
@@ -54706,7 +54699,7 @@ const PluginUploadForm = ({ onClose: e, pluginData: t, isUpgrade: o }) => {
54706
54699
  const c = useForm();
54707
54700
  return {
54708
54701
  run() {
54709
- return V(this, null, function* () {
54702
+ return E(this, null, function* () {
54710
54703
  const d = c.values.compressedFileUrl;
54711
54704
  if (!d)
54712
54705
  return;
@@ -54906,7 +54899,7 @@ function PluginInfo(e) {
54906
54899
  {
54907
54900
  disabled: u,
54908
54901
  title: b("Are you sure to delete this plugin?"),
54909
- onConfirm: (A) => V(this, null, function* () {
54902
+ onConfirm: (A) => E(this, null, function* () {
54910
54903
  A.stopPropagation(), yield y.request({
54911
54904
  url: "pm:remove",
54912
54905
  params: {
@@ -54963,14 +54956,14 @@ function PluginInfo(e) {
54963
54956
  "aria-label": "enable",
54964
54957
  size: "small",
54965
54958
  disabled: u || h,
54966
- onChange: (A, D) => V(this, null, function* () {
54959
+ onChange: (A, D) => E(this, null, function* () {
54967
54960
  if (D.stopPropagation(), !a && A) {
54968
54961
  v.confirm({
54969
54962
  title: b("Plugin dependency version mismatch"),
54970
54963
  content: b(
54971
54964
  "The current dependency version of the plugin does not match the version of the application and may not work properly. Are you sure you want to continue enabling the plugin?"
54972
54965
  ),
54973
- onOk: () => V(this, null, function* () {
54966
+ onOk: () => E(this, null, function* () {
54974
54967
  yield y.request({
54975
54968
  url: "pm:enable",
54976
54969
  params: {
@@ -54988,7 +54981,7 @@ function PluginInfo(e) {
54988
54981
  }
54989
54982
  }) : v.confirm({
54990
54983
  title: b("Are you sure to disable this plugin?"),
54991
- onOk: () => V(this, null, function* () {
54984
+ onOk: () => E(this, null, function* () {
54992
54985
  yield y.request({
54993
54986
  url: "pm:disable",
54994
54987
  params: {
@@ -55061,7 +55054,7 @@ function BulkEnableButton({ plugins: e = [] }) {
55061
55054
  width: 1e3,
55062
55055
  title: t("Bulk enable"),
55063
55056
  open: i,
55064
- onOk: () => V(this, null, function* () {
55057
+ onOk: () => E(this, null, function* () {
55065
55058
  yield o.request({
55066
55059
  url: "pm:enable",
55067
55060
  params: {
@@ -55470,7 +55463,7 @@ const AdminSettingsLayout = () => {
55470
55463
  };
55471
55464
  class PMPlugin extends Plugin {
55472
55465
  load() {
55473
- return V(this, null, function* () {
55466
+ return E(this, null, function* () {
55474
55467
  this.addComponents(), this.addRoutes(), this.addSettings();
55475
55468
  });
55476
55469
  }
@@ -55536,7 +55529,7 @@ const SettingCenterProvider = (e) => {
55536
55529
  c((f == null ? void 0 : f.data) || []);
55537
55530
  }
55538
55531
  }
55539
- ), h = n.resource("roles.snippets", o.name), g = (f, C) => V(void 0, null, function* () {
55532
+ ), h = n.resource("roles.snippets", o.name), g = (f, C) => E(void 0, null, function* () {
55540
55533
  const b = getChildrenKeys(C == null ? void 0 : C.children, []).concat(C.aclSnippet);
55541
55534
  f ? (yield h.add({
55542
55535
  values: b.map((y) => "!" + y)
@@ -55567,7 +55560,7 @@ const SettingCenterProvider = (e) => {
55567
55560
  Checkbox$1,
55568
55561
  {
55569
55562
  checked: u,
55570
- onChange: () => V(void 0, null, function* () {
55563
+ onChange: () => E(void 0, null, function* () {
55571
55564
  const f = a.map((C) => "!" + C);
55572
55565
  u ? yield h.add({
55573
55566
  values: f
@@ -55614,7 +55607,7 @@ const SettingCenterProvider = (e) => {
55614
55607
  }, ACLPane = () => /* @__PURE__ */ jsx(Card, { "data-testid": "acl-pane-card", bordered: !1, children: /* @__PURE__ */ jsx(SchemaComponent, { components, schema: schema2 }) });
55615
55608
  class ACLPlugin extends Plugin {
55616
55609
  load() {
55617
- return V(this, null, function* () {
55610
+ return E(this, null, function* () {
55618
55611
  this.app.addComponents({
55619
55612
  ACLCollectionFieldProvider,
55620
55613
  ACLActionProvider,
@@ -55822,7 +55815,7 @@ function AntdConfigProvider(e) {
55822
55815
  }
55823
55816
  class AntdConfigPlugin extends Plugin {
55824
55817
  load() {
55825
- return V(this, null, function* () {
55818
+ return E(this, null, function* () {
55826
55819
  var t;
55827
55820
  this.app.use(AntdConfigProvider, ((t = this.options) == null ? void 0 : t.config) || {});
55828
55821
  });
@@ -55865,7 +55858,7 @@ const PinnedPluginListProvider = (e) => {
55865
55858
  };
55866
55859
  class PinnedListPlugin extends Plugin {
55867
55860
  load() {
55868
- return V(this, null, function* () {
55861
+ return E(this, null, function* () {
55869
55862
  this.app.use(PinnedPluginListProvider, this.options.config);
55870
55863
  });
55871
55864
  }
@@ -56308,12 +56301,12 @@ const AdminSideBar = ({ sideMenuRef: e }) => {
56308
56301
  }, AdminProvider = (e) => /* @__PURE__ */ jsx(CurrentAppInfoProvider, { children: /* @__PURE__ */ jsx(NavigateIfNotSignIn, { children: /* @__PURE__ */ jsx(RemoteSchemaTemplateManagerProvider, { children: /* @__PURE__ */ jsx(RemoteCollectionManagerProvider, { children: /* @__PURE__ */ jsx(VariablesProvider, { children: /* @__PURE__ */ jsx(ACLRolesCheckProvider, { children: e.children }) }) }) }) }) }), AdminLayout = (e) => /* @__PURE__ */ jsx(AdminProvider, { children: /* @__PURE__ */ jsx(InternalAdminLayout, x({}, e)) });
56309
56302
  class AdminLayoutPlugin extends Plugin {
56310
56303
  afterAdd() {
56311
- return V(this, null, function* () {
56304
+ return E(this, null, function* () {
56312
56305
  yield this.app.pm.add(RemoteSchemaTemplateManagerPlugin);
56313
56306
  });
56314
56307
  }
56315
56308
  load() {
56316
- return V(this, null, function* () {
56309
+ return E(this, null, function* () {
56317
56310
  this.app.addComponents({ AdminLayout, AdminDynamicPage });
56318
56311
  });
56319
56312
  }
@@ -56987,7 +56980,7 @@ const ActionInitializerItem = (e) => {
56987
56980
  };
56988
56981
  }), { Panel } = Collapse, AssociationFilterItem = withDynamicSchemaProps(
56989
56982
  (e) => {
56990
- var E, U, G, H;
56983
+ var V, U, G, H;
56991
56984
  const { wrapSSR: t, componentCls: o, hashId: n } = useStyles(), { token: r } = useToken(), i = AssociationFilter.useAssociationField(), a = useFieldSchema(), l = useDesigner(), c = useCompile(), {
56992
56985
  list: u,
56993
56986
  onSelected: d,
@@ -57002,7 +56995,7 @@ const ActionInitializerItem = (e) => {
57002
56995
  } = useProps(e), [b, y] = useState(!1), v = useMemo(
57003
56996
  () => S && (i != null && i.name) ? [i.name] : [],
57004
56997
  [i == null ? void 0 : i.name, S]
57005
- ), I = f || (i == null ? void 0 : i.targetKey) || "id", w = C || ((U = (E = a["x-component-props"]) == null ? void 0 : E.fieldNames) == null ? void 0 : U.label) || I, k = {
56998
+ ), I = f || (i == null ? void 0 : i.targetKey) || "id", w = C || ((U = (V = a["x-component-props"]) == null ? void 0 : V.fieldNames) == null ? void 0 : U.label) || I, k = {
57006
56999
  title: w || I,
57007
57000
  key: I
57008
57001
  }, [A, D] = useState([]), [B, z] = useState(a.default || []), [O, j] = useState(!0), R = useLabelUiSchema(i, (k == null ? void 0 : k.title) || "label");
@@ -57264,7 +57257,7 @@ AssociationFilter.useAssociationField = () => {
57264
57257
  };
57265
57258
  class AssociationFilterPlugin extends Plugin {
57266
57259
  load() {
57267
- return V(this, null, function* () {
57260
+ return E(this, null, function* () {
57268
57261
  this.app.schemaInitializerManager.add(associationFilterFilterBlockInitializer), this.app.schemaInitializerManager.add(filterCollapseItemInitializer_deprecated), this.app.schemaInitializerManager.add(filterCollapseItemInitializer), this.app.schemaInitializerManager.add(associationFilterInitializer);
57269
57262
  });
57270
57263
  }
@@ -57477,7 +57470,7 @@ const DataBlockInitializer = (e) => {
57477
57470
  currentText: S,
57478
57471
  otherText: b
57479
57472
  } = e, { insert: y, setVisible: v } = useSchemaInitializer(), I = useCompile(), { getTemplateSchemaByMode: w } = useSchemaTemplateManager(), k = useCallback(
57480
- (M) => V(void 0, null, function* () {
57473
+ (M) => E(void 0, null, function* () {
57481
57474
  const { item: T, fromOthersInPopup: N } = M;
57482
57475
  if (f)
57483
57476
  return f(M);
@@ -57619,7 +57612,7 @@ const DataBlockInitializer = (e) => {
57619
57612
  F(x({
57620
57613
  icon: /* @__PURE__ */ jsx(TableOutlined, {})
57621
57614
  }, r), {
57622
- onClick: (h) => V(void 0, [h], function* ({ item: m }) {
57615
+ onClick: (h) => E(void 0, [h], function* ({ item: m }) {
57623
57616
  if (m.template) {
57624
57617
  const g = yield a(m);
57625
57618
  i(g);
@@ -57715,7 +57708,7 @@ const RecordAssociationDetailsBlockInitializer = () => {
57715
57708
  F(x({
57716
57709
  icon: /* @__PURE__ */ jsx(FormOutlined, {})
57717
57710
  }, r), {
57718
- onClick: (h) => V(void 0, [h], function* ({ item: m }) {
57711
+ onClick: (h) => E(void 0, [h], function* ({ item: m }) {
57719
57712
  if (m.template) {
57720
57713
  const g = yield a(m);
57721
57714
  i(g);
@@ -57801,7 +57794,7 @@ const RecordAssociationFormBlockInitializer = () => {
57801
57794
  F(x({
57802
57795
  icon: /* @__PURE__ */ jsx(FormOutlined, {})
57803
57796
  }, r), {
57804
- onClick: (h) => V(void 0, [h], function* ({ item: m }) {
57797
+ onClick: (h) => E(void 0, [h], function* ({ item: m }) {
57805
57798
  if (m.template) {
57806
57799
  const g = yield l(m);
57807
57800
  if (m.template.componentName === "FormItem") {
@@ -57933,7 +57926,7 @@ const createGridCardBlockUISchema = (e) => {
57933
57926
  F(x({
57934
57927
  icon: /* @__PURE__ */ jsx(TableOutlined, {})
57935
57928
  }, r), {
57936
- onClick: (h) => V(void 0, [h], function* ({ item: m }) {
57929
+ onClick: (h) => E(void 0, [h], function* ({ item: m }) {
57937
57930
  if (m.template) {
57938
57931
  const g = yield a(m);
57939
57932
  i(g);
@@ -58038,7 +58031,7 @@ const createListBlockUISchema = (e) => {
58038
58031
  F(x({
58039
58032
  icon: /* @__PURE__ */ jsx(TableOutlined, {})
58040
58033
  }, r), {
58041
- onClick: (h) => V(void 0, [h], function* ({ item: m }) {
58034
+ onClick: (h) => E(void 0, [h], function* ({ item: m }) {
58042
58035
  if (m.template) {
58043
58036
  const g = yield a(m);
58044
58037
  i(g);
@@ -58127,7 +58120,7 @@ const RecordReadPrettyAssociationFormBlockInitializer = () => {
58127
58120
  F(x({
58128
58121
  icon: /* @__PURE__ */ jsx(FormOutlined, {})
58129
58122
  }, r), {
58130
- onClick: (g) => V(void 0, [g], function* ({ item: h }) {
58123
+ onClick: (g) => E(void 0, [g], function* ({ item: h }) {
58131
58124
  if (h.template) {
58132
58125
  const f = yield l(h);
58133
58126
  if (h.template.componentName === "ReadPrettyFormItem") {
@@ -58588,7 +58581,7 @@ const SelectActionInitializer = (e) => {
58588
58581
  F(x({}, c), {
58589
58582
  icon: /* @__PURE__ */ jsx(ProfileOutlined, {}),
58590
58583
  componentType: n,
58591
- onCreateBlockSchema: (d) => V(void 0, null, function* () {
58584
+ onCreateBlockSchema: (d) => E(void 0, null, function* () {
58592
58585
  if (r)
58593
58586
  return r(d);
58594
58587
  u(d);
@@ -58821,7 +58814,7 @@ function useCreateSingleDetailsSchema() {
58821
58814
  [o, n, r]
58822
58815
  );
58823
58816
  return { createSingleDetailsSchema: useCallback(
58824
- (c) => V(this, [c], function* ({ item: l }) {
58817
+ (c) => E(this, [c], function* ({ item: l }) {
58825
58818
  if (l.template) {
58826
58819
  const u = yield t(l);
58827
58820
  e(i(u, { item: l }));
@@ -58991,7 +58984,7 @@ const RecordFormBlockInitializer = () => {
58991
58984
  F(x({
58992
58985
  icon: /* @__PURE__ */ jsx(FormOutlined, {})
58993
58986
  }, o), {
58994
- onClick: (p) => V(void 0, [p], function* ({ item: d }) {
58987
+ onClick: (p) => E(void 0, [p], function* ({ item: d }) {
58995
58988
  if (d.template) {
58996
58989
  const m = yield r(d);
58997
58990
  n(c(m, { item: d }));
@@ -59311,7 +59304,7 @@ const commonOptions$h = {
59311
59304
  F(x({}, l), {
59312
59305
  icon: /* @__PURE__ */ jsx(AppstoreOutlined, {}),
59313
59306
  componentType: "GridCard",
59314
- onCreateBlockSchema: (u) => V(void 0, null, function* () {
59307
+ onCreateBlockSchema: (u) => E(void 0, null, function* () {
59315
59308
  if (n)
59316
59309
  return n(u);
59317
59310
  c(u);
@@ -59508,7 +59501,7 @@ const commonOptions$h = {
59508
59501
  F(x({}, l), {
59509
59502
  icon: /* @__PURE__ */ jsx(OrderedListOutlined, {}),
59510
59503
  componentType: "List",
59511
- onCreateBlockSchema: (u) => V(void 0, null, function* () {
59504
+ onCreateBlockSchema: (u) => E(void 0, null, function* () {
59512
59505
  if (n)
59513
59506
  return n(u);
59514
59507
  c(u);
@@ -59663,7 +59656,7 @@ const commonOptions$h = {
59663
59656
  F(x({
59664
59657
  icon: /* @__PURE__ */ jsx(FormOutlined, {})
59665
59658
  }, r), {
59666
- onClick: () => V(void 0, null, function* () {
59659
+ onClick: () => E(void 0, null, function* () {
59667
59660
  i(
59668
59661
  createTableSelectorUISchema({
59669
59662
  rowKey: a.filterTargetKey,
@@ -60001,7 +59994,7 @@ const commonOptions$h = {
60001
59994
  F(x({}, a), {
60002
59995
  icon: /* @__PURE__ */ jsx(TableOutlined, {}),
60003
59996
  componentType: "Table",
60004
- onCreateBlockSchema: (c) => V(void 0, null, function* () {
59997
+ onCreateBlockSchema: (c) => E(void 0, null, function* () {
60005
59998
  if (n)
60006
59999
  return n(c);
60007
60000
  l(c);
@@ -60142,7 +60135,7 @@ const commonOptions$h = {
60142
60135
  onlyCurrentDataSource: t,
60143
60136
  icon: /* @__PURE__ */ jsx(RightSquareOutlined, {}),
60144
60137
  componentType: "FilterCollapse",
60145
- onCreateBlockSchema: (a) => V(void 0, [a], function* ({ item: i }) {
60138
+ onCreateBlockSchema: (a) => E(void 0, [a], function* ({ item: i }) {
60146
60139
  const l = createCollapseBlockSchema({
60147
60140
  dataSource: i.dataSource,
60148
60141
  collectionName: i.collectionName || i.name,
@@ -60421,7 +60414,7 @@ const commonOptions$h = {
60421
60414
  const e = {}, t = useSchemaInitializerItem();
60422
60415
  return /* @__PURE__ */ jsx(InitializerWithSwitch, F(x({}, t), { schema: e, item: t, type: "x-collection-field" }));
60423
60416
  }, LinkMenuItem = () => {
60424
- const { insert: e } = useSchemaInitializer(), { t } = useTranslation(), o = useContext(SchemaOptionsContext), { theme: n } = useGlobalTheme(), { styles: r } = useStyles$3(), { urlSchema: i, paramsSchema: a } = useURLAndHTMLSchema(), l = useCallback(() => V(void 0, null, function* () {
60417
+ const { insert: e } = useSchemaInitializer(), { t } = useTranslation(), o = useContext(SchemaOptionsContext), { theme: n } = useGlobalTheme(), { styles: r } = useStyles$3(), { urlSchema: i, paramsSchema: a } = useURLAndHTMLSchema(), l = useCallback(() => E(void 0, null, function* () {
60425
60418
  const c = yield FormDialog(
60426
60419
  t("Add link"),
60427
60420
  () => /* @__PURE__ */ jsx(Router, { location, navigator: null, children: /* @__PURE__ */ jsx(SchemaComponentOptions, { scope: o.scope, components: x({}, o.components), children: /* @__PURE__ */ jsx(FormLayout, { layout: "vertical", children: /* @__PURE__ */ jsx(
@@ -60474,7 +60467,7 @@ const commonOptions$h = {
60474
60467
  }), [e, o.components, o.scope, t, n]);
60475
60468
  return /* @__PURE__ */ jsx(SchemaInitializerItem, { title: t("Link"), onClick: l, className: r.menuItem });
60476
60469
  }, PageMenuItem = () => {
60477
- const { insert: e } = useSchemaInitializer(), { t } = useTranslation(), o = useContext(SchemaOptionsContext), { theme: n } = useGlobalTheme(), { styles: r } = useStyles$3(), i = useCallback(() => V(void 0, null, function* () {
60470
+ const { insert: e } = useSchemaInitializer(), { t } = useTranslation(), o = useContext(SchemaOptionsContext), { theme: n } = useGlobalTheme(), { styles: r } = useStyles$3(), i = useCallback(() => E(void 0, null, function* () {
60478
60471
  const a = yield FormDialog(
60479
60472
  t("Add page"),
60480
60473
  () => /* @__PURE__ */ jsx(SchemaComponentOptions, { scope: o.scope, components: x({}, o.components), children: /* @__PURE__ */ jsx(FormLayout, { layout: "vertical", children: /* @__PURE__ */ jsx(
@@ -60538,7 +60531,7 @@ const commonOptions$h = {
60538
60531
  }), [e, o.components, o.scope, t, n]);
60539
60532
  return /* @__PURE__ */ jsx(SchemaInitializerItem, { title: t("Page"), onClick: i, className: r.menuItem });
60540
60533
  }, GroupItem = () => {
60541
- const { insert: e } = useSchemaInitializer(), { t } = useTranslation(), o = useContext(SchemaOptionsContext), { theme: n } = useGlobalTheme(), { styles: r } = useStyles$3(), i = useCallback(() => V(void 0, null, function* () {
60534
+ const { insert: e } = useSchemaInitializer(), { t } = useTranslation(), o = useContext(SchemaOptionsContext), { theme: n } = useGlobalTheme(), { styles: r } = useStyles$3(), i = useCallback(() => E(void 0, null, function* () {
60542
60535
  const a = yield FormDialog(
60543
60536
  t("Add group"),
60544
60537
  () => /* @__PURE__ */ jsx(SchemaComponentOptions, { scope: o.scope, components: x({}, o.components), children: /* @__PURE__ */ jsx(FormLayout, { layout: "vertical", children: /* @__PURE__ */ jsx(
@@ -61022,7 +61015,7 @@ const commonOptions$2 = {
61022
61015
  let f = a;
61023
61016
  return d || (f = "page:addBlock", c && (f = "mobile:addBlock")), f || (f = "popup:common:addBlock", n || !u ? f = "popup:addNew:addBlock" : r && (f = "popup:bulkEdit:addBlock")), {
61024
61017
  run() {
61025
- return V(this, null, function* () {
61018
+ return E(this, null, function* () {
61026
61019
  yield h.submit();
61027
61020
  const { title: S, icon: b } = h.values;
61028
61021
  o({
@@ -61095,7 +61088,7 @@ const commonOptions$2 = {
61095
61088
  const h = useActionContext();
61096
61089
  return {
61097
61090
  run() {
61098
- return V(this, null, function* () {
61091
+ return E(this, null, function* () {
61099
61092
  h.setVisible(!1);
61100
61093
  });
61101
61094
  }
@@ -61138,7 +61131,7 @@ const commonOptions$2 = {
61138
61131
  });
61139
61132
  class SchemaInitializerPlugin extends Plugin {
61140
61133
  load() {
61141
- return V(this, null, function* () {
61134
+ return E(this, null, function* () {
61142
61135
  this.app.addComponents(F(x(x({}, initializerComponents), items), {
61143
61136
  DestroyActionInitializer,
61144
61137
  FormBlockInitializer,
@@ -61180,7 +61173,7 @@ class LocalePlugin extends Plugin {
61180
61173
  P(this, "locales", {});
61181
61174
  }
61182
61175
  afterAdd() {
61183
- return V(this, null, function* () {
61176
+ return E(this, null, function* () {
61184
61177
  var r, i, a, l, c, u, d;
61185
61178
  const o = this.app.apiClient, n = o.auth.locale;
61186
61179
  try {
@@ -61385,7 +61378,7 @@ const AppSpin = () => /* @__PURE__ */ jsx(Spin, { style: { position: "fixed", to
61385
61378
  };
61386
61379
  class NocoBaseBuildInPlugin extends Plugin {
61387
61380
  afterAdd() {
61388
- return V(this, null, function* () {
61381
+ return E(this, null, function* () {
61389
61382
  this.app.addComponents({
61390
61383
  AppSpin,
61391
61384
  AppError,
@@ -61396,7 +61389,7 @@ class NocoBaseBuildInPlugin extends Plugin {
61396
61389
  });
61397
61390
  }
61398
61391
  load() {
61399
- return V(this, null, function* () {
61392
+ return E(this, null, function* () {
61400
61393
  this.addComponents(), this.addRoutes(), this.app.use(CurrentUserProvider), this.app.use(CurrentUserSettingsMenuProvider);
61401
61394
  });
61402
61395
  }
@@ -61433,7 +61426,7 @@ class NocoBaseBuildInPlugin extends Plugin {
61433
61426
  });
61434
61427
  }
61435
61428
  addPlugins() {
61436
- return V(this, null, function* () {
61429
+ return E(this, null, function* () {
61437
61430
  yield this.app.pm.add(AssociationFilterPlugin), yield this.app.pm.add(LocalePlugin, { name: "builtin-locale" }), yield this.app.pm.add(AdminLayoutPlugin, { name: "admin-layout" }), yield this.app.pm.add(SystemSettingsPlugin, { name: "system-setting" }), yield this.app.pm.add(PinnedListPlugin, {
61438
61431
  name: "pinned-list",
61439
61432
  config: {