openxiangda 1.0.89 → 1.0.91

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.
@@ -3505,9 +3505,388 @@ import {
3505
3505
  useContext as useContext2,
3506
3506
  useEffect as useEffect4,
3507
3507
  useMemo as useMemo5,
3508
+ useRef as useRef2,
3508
3509
  useState as useState4
3509
3510
  } from "react";
3510
3511
 
3512
+ // packages/sdk/src/runtime/host/browserHost.ts
3513
+ var NAMESPACE_ROOT_CLASS2 = "sy-app-workspace";
3514
+ var defaultModuleLoader = (url2) => import(
3515
+ /* @vite-ignore */
3516
+ url2
3517
+ );
3518
+ var trimTrailingSlash = (value) => value.replace(/\/+$/, "");
3519
+ var getDefaultServicePrefix = () => typeof window !== "undefined" ? trimTrailingSlash(window.__OPENXIANGDA_SERVICE_PREFIX__ || "/service") : "/service";
3520
+ var joinServicePath = (servicePrefix, path) => {
3521
+ if (/^https?:\/\//i.test(path)) return path;
3522
+ const normalizedPrefix = trimTrailingSlash(servicePrefix || "/service");
3523
+ if (path.startsWith(normalizedPrefix)) return path;
3524
+ return `${normalizedPrefix}${path.startsWith("/") ? path : `/${path}`}`;
3525
+ };
3526
+ var appendQuery = (url2, query) => {
3527
+ if (!query) return url2;
3528
+ return `${url2}${url2.includes("?") ? "&" : "?"}${query}`;
3529
+ };
3530
+ var normalizeMethod2 = (method4) => {
3531
+ const value = String(method4 || "get").toUpperCase();
3532
+ return ["GET", "POST", "PUT", "DELETE", "PATCH"].includes(value) ? value : "GET";
3533
+ };
3534
+ var normalizeCssIsolation2 = (value) => {
3535
+ if (value === "namespace" || value === "shadow" || value === "none") {
3536
+ return value;
3537
+ }
3538
+ return "none";
3539
+ };
3540
+ var normalizeEnvelopeCode2 = (value, fallback) => {
3541
+ if (value === void 0 || value === null || value === "") return fallback;
3542
+ const normalized = Number(value);
3543
+ return Number.isFinite(normalized) ? normalized : String(value);
3544
+ };
3545
+ var isSuccessCode4 = (value) => {
3546
+ if (value === void 0 || value === null || value === "") return true;
3547
+ const normalized = Number(value);
3548
+ return Number.isFinite(normalized) ? normalized === 0 || normalized >= 200 && normalized < 300 : false;
3549
+ };
3550
+ var parseJsonResponse = async (response) => {
3551
+ const payload = await response.json().catch(() => null);
3552
+ if (!response.ok) {
3553
+ const message7 = payload && typeof payload === "object" ? payload.message || payload.error || response.statusText : response.statusText;
3554
+ throw new Error(message7 || "\u8BF7\u6C42\u5931\u8D25");
3555
+ }
3556
+ if (payload && typeof payload === "object" && "code" in payload) {
3557
+ const code = normalizeEnvelopeCode2(payload.code, response.status);
3558
+ return {
3559
+ code,
3560
+ success: payload.success !== false && isSuccessCode4(code),
3561
+ message: payload.message,
3562
+ result: payload.result ?? payload.data ?? null,
3563
+ data: payload.data,
3564
+ raw: payload
3565
+ };
3566
+ }
3567
+ return {
3568
+ code: response.status,
3569
+ success: response.ok,
3570
+ message: response.statusText,
3571
+ result: payload,
3572
+ data: payload,
3573
+ raw: payload
3574
+ };
3575
+ };
3576
+ var createBrowserPageBridge = (options = {}) => {
3577
+ const servicePrefix = options.servicePrefix || getDefaultServicePrefix();
3578
+ const fetchImpl = createBoundFetch(options.fetchImpl);
3579
+ const request = async (payload) => {
3580
+ if (!payload?.path) {
3581
+ throw new Error("transport.request \u9700\u8981 path");
3582
+ }
3583
+ const url2 = appendQuery(joinServicePath(servicePrefix, payload.path), payload.query);
3584
+ const headers = new Headers(payload.headers);
3585
+ let body;
3586
+ if (payload.body !== void 0) {
3587
+ if (payload.body instanceof FormData) {
3588
+ body = payload.body;
3589
+ } else {
3590
+ headers.set("Content-Type", headers.get("Content-Type") || "application/json");
3591
+ body = JSON.stringify(payload.body);
3592
+ }
3593
+ }
3594
+ const response = await fetchImpl(url2, {
3595
+ method: normalizeMethod2(payload.method),
3596
+ headers,
3597
+ body,
3598
+ credentials: "include"
3599
+ });
3600
+ return parseJsonResponse(response);
3601
+ };
3602
+ const download = async (payload) => {
3603
+ if (!payload?.path) {
3604
+ throw new Error("transport.download \u9700\u8981 path");
3605
+ }
3606
+ const url2 = appendQuery(joinServicePath(servicePrefix, payload.path), payload.query);
3607
+ const headers = new Headers(payload.headers);
3608
+ let body;
3609
+ if (payload.body !== void 0) {
3610
+ if (payload.body instanceof FormData) {
3611
+ body = payload.body;
3612
+ } else {
3613
+ headers.set("Content-Type", headers.get("Content-Type") || "application/json");
3614
+ body = JSON.stringify(payload.body);
3615
+ }
3616
+ }
3617
+ const response = await fetchImpl(url2, {
3618
+ method: normalizeMethod2(payload.method),
3619
+ headers,
3620
+ body,
3621
+ credentials: "include"
3622
+ });
3623
+ if (!response.ok) {
3624
+ throw new Error(response.statusText || "\u4E0B\u8F7D\u5931\u8D25");
3625
+ }
3626
+ return {
3627
+ blob: await response.blob(),
3628
+ contentType: response.headers.get("content-type") || void 0,
3629
+ fileName: response.headers.get("content-disposition") || void 0,
3630
+ headers: Object.fromEntries(response.headers.entries())
3631
+ };
3632
+ };
3633
+ return {
3634
+ invoke: async (method4, payload) => {
3635
+ if (method4 === "transport.request") return await request(payload);
3636
+ if (method4 === "transport.download") return await download(payload);
3637
+ throw new Error(`\u4E0D\u652F\u6301\u7684 bridge \u65B9\u6CD5: ${method4}`);
3638
+ }
3639
+ };
3640
+ };
3641
+ var createBrowserPageContext = (bootstrap, options = {}) => {
3642
+ const route = {
3643
+ pathname: options.route?.pathname || (typeof window !== "undefined" ? window.location.pathname : ""),
3644
+ fullPath: options.route?.fullPath || (typeof window !== "undefined" ? `${window.location.pathname}${window.location.search}${window.location.hash}` : ""),
3645
+ params: options.route?.params || {},
3646
+ query: options.route?.query || {},
3647
+ hash: options.route?.hash || (typeof window !== "undefined" ? window.location.hash : "")
3648
+ };
3649
+ return {
3650
+ protocolVersion: bootstrap.asset?.protocolVersion || "1.0",
3651
+ app: bootstrap.app,
3652
+ page: {
3653
+ ...bootstrap.page,
3654
+ version: bootstrap.asset?.version || bootstrap.page.version,
3655
+ buildId: bootstrap.asset?.buildId || bootstrap.page.buildId
3656
+ },
3657
+ user: bootstrap.user,
3658
+ route,
3659
+ env: bootstrap.env || {},
3660
+ permissions: {
3661
+ canView: bootstrap.permissions?.canView !== false,
3662
+ hasFullAccess: bootstrap.permissions?.hasFullAccess === true,
3663
+ ...bootstrap.permissions || {}
3664
+ },
3665
+ capabilities: Array.from(
3666
+ /* @__PURE__ */ new Set([
3667
+ "navigation",
3668
+ "ui.message",
3669
+ "ui.modal",
3670
+ "transport.request",
3671
+ "transport.download",
3672
+ ...bootstrap.sdk?.supportedBridgeMethods || []
3673
+ ])
3674
+ ),
3675
+ ui: {
3676
+ message: {
3677
+ success: (text) => options.message?.success?.(text),
3678
+ error: (text) => options.message?.error?.(text),
3679
+ warning: (text) => options.message?.warning?.(text),
3680
+ info: (text) => options.message?.info?.(text),
3681
+ loading: (text) => options.message?.loading?.(text) || (() => void 0)
3682
+ },
3683
+ modal: {
3684
+ confirm: (input) => options.modal?.confirm?.(input) || Promise.resolve(false)
3685
+ }
3686
+ },
3687
+ navigation: {
3688
+ pushPage: (pageKey, query) => options.navigation?.pushPage?.(pageKey, query),
3689
+ replacePage: (pageKey, query) => options.navigation?.replacePage?.(pageKey, query),
3690
+ pushRoute: (routeValue, query) => options.navigation?.pushRoute?.(routeValue, query),
3691
+ replaceRoute: (routeValue, query) => options.navigation?.replaceRoute?.(routeValue, query),
3692
+ updateQuery: (query) => options.navigation?.updateQuery?.(query),
3693
+ setHash: (hash) => options.navigation?.setHash?.(hash),
3694
+ back: () => options.navigation?.back?.()
3695
+ },
3696
+ bridge: createBrowserPageBridge(options),
3697
+ sdk: {
3698
+ ...bootstrap.sdk,
3699
+ supportedBridgeMethods: ["transport.request", "transport.download"]
3700
+ }
3701
+ };
3702
+ };
3703
+ var resolveRuntimeAssets = async (bootstrap, fetchImpl = fetch) => {
3704
+ const boundFetch = createBoundFetch(fetchImpl);
3705
+ const fallback = {
3706
+ entryUrl: bootstrap.runtimeAssets?.entryUrl || bootstrap.asset?.entryUrl || "",
3707
+ cssUrls: bootstrap.runtimeAssets?.cssUrls || bootstrap.asset?.cssAssets || [],
3708
+ jsUrls: bootstrap.runtimeAssets?.jsUrls || bootstrap.asset?.jsAssets || [],
3709
+ cssIsolation: normalizeCssIsolation2(
3710
+ bootstrap.runtimeAssets?.cssIsolation || bootstrap.page.capabilities?.cssIsolation
3711
+ )
3712
+ };
3713
+ if (bootstrap.runtimeAssets?.entryUrl || !bootstrap.asset?.manifestUrl) {
3714
+ return fallback;
3715
+ }
3716
+ try {
3717
+ const response = await boundFetch(bootstrap.asset.manifestUrl, {
3718
+ credentials: "omit"
3719
+ });
3720
+ if (!response.ok) return fallback;
3721
+ const manifest = await response.json();
3722
+ const base = bootstrap.asset.manifestUrl;
3723
+ const resolveUrl = (value) => new URL(value, base).toString();
3724
+ return {
3725
+ entryUrl: manifest?.entry?.url ? resolveUrl(manifest.entry.url) : fallback.entryUrl,
3726
+ cssUrls: Array.isArray(manifest?.assets?.css) ? manifest.assets.css.map(resolveUrl) : fallback.cssUrls,
3727
+ jsUrls: Array.isArray(manifest?.assets?.js) ? manifest.assets.js.map(resolveUrl) : fallback.jsUrls,
3728
+ cssIsolation: normalizeCssIsolation2(
3729
+ manifest?.style?.isolation || fallback.cssIsolation
3730
+ )
3731
+ };
3732
+ } catch {
3733
+ return fallback;
3734
+ }
3735
+ };
3736
+ var fetchBrowserRuntimeBootstrap = async ({
3737
+ appType,
3738
+ bootstrapPath,
3739
+ fetchImpl = fetch,
3740
+ pageKey,
3741
+ servicePrefix
3742
+ }) => {
3743
+ if (!appType) {
3744
+ throw new Error("appType \u7F3A\u5931");
3745
+ }
3746
+ if (!pageKey) {
3747
+ throw new Error("pageKey \u7F3A\u5931");
3748
+ }
3749
+ const path = bootstrapPath || `/openxiangda-api/v1/apps/${encodeURIComponent(
3750
+ appType
3751
+ )}/pages/${encodeURIComponent(pageKey)}/bootstrap`;
3752
+ const boundFetch = createBoundFetch(fetchImpl);
3753
+ const response = await boundFetch(
3754
+ joinServicePath(servicePrefix || getDefaultServicePrefix(), path),
3755
+ {
3756
+ method: "GET",
3757
+ credentials: "include"
3758
+ }
3759
+ );
3760
+ const payload = await response.json().catch(() => null);
3761
+ if (!response.ok) {
3762
+ throw new Error(payload?.message || response.statusText || "\u83B7\u53D6\u9875\u9762\u8FD0\u884C\u65F6\u5931\u8D25");
3763
+ }
3764
+ if (payload && typeof payload === "object" && ("code" in payload || "success" in payload)) {
3765
+ if (payload.success === false || payload.code && Number(payload.code) !== 200) {
3766
+ throw new Error(payload.message || "\u83B7\u53D6\u9875\u9762\u8FD0\u884C\u65F6\u5931\u8D25");
3767
+ }
3768
+ return payload.data || {};
3769
+ }
3770
+ return payload || {};
3771
+ };
3772
+ var resolveBrowserRuntimeRoute = async ({
3773
+ appType,
3774
+ fetchImpl = fetch,
3775
+ path,
3776
+ resolvePath,
3777
+ search,
3778
+ servicePrefix
3779
+ }) => {
3780
+ if (!appType) {
3781
+ throw new Error("appType \u7F3A\u5931");
3782
+ }
3783
+ const currentPath = path || (typeof window !== "undefined" ? window.location.pathname : "/");
3784
+ const currentSearch = search !== void 0 ? search : typeof window !== "undefined" ? window.location.search : "";
3785
+ const endpoint = resolvePath || `/openxiangda-api/v1/apps/${encodeURIComponent(
3786
+ appType
3787
+ )}/runtime/routes/resolve`;
3788
+ const boundFetch = createBoundFetch(fetchImpl);
3789
+ const response = await boundFetch(
3790
+ joinServicePath(servicePrefix || getDefaultServicePrefix(), endpoint),
3791
+ {
3792
+ method: "POST",
3793
+ credentials: "include",
3794
+ headers: {
3795
+ "Content-Type": "application/json"
3796
+ },
3797
+ body: JSON.stringify({
3798
+ path: currentPath,
3799
+ search: currentSearch
3800
+ })
3801
+ }
3802
+ );
3803
+ const parsed = await parseJsonResponse(response);
3804
+ if (!parsed.success || !parsed.result) {
3805
+ throw new Error(parsed.message || "\u89E3\u6790\u8FD0\u884C\u65F6\u8DEF\u7531\u5931\u8D25");
3806
+ }
3807
+ return parsed.result;
3808
+ };
3809
+ var loadRuntimeScriptModules = async (jsUrls = [], moduleLoader = defaultModuleLoader) => {
3810
+ const urls = Array.from(
3811
+ new Set(jsUrls.map((url2) => String(url2 || "").trim()).filter(Boolean))
3812
+ );
3813
+ for (const url2 of urls) {
3814
+ await moduleLoader(url2);
3815
+ }
3816
+ };
3817
+ var loadCustomPageModule = async (entryUrl, moduleLoader = defaultModuleLoader, jsUrls = []) => {
3818
+ if (!entryUrl) {
3819
+ throw new Error("\u4EE3\u7801\u9875\u9762\u7F3A\u5C11 entryUrl");
3820
+ }
3821
+ await loadRuntimeScriptModules(
3822
+ jsUrls.filter((url2) => url2 && url2 !== entryUrl),
3823
+ moduleLoader
3824
+ );
3825
+ const loaded = await moduleLoader(entryUrl);
3826
+ return loaded?.default && (loaded.default.mount || loaded.default.unmount) ? { ...loaded.default, ...loaded } : loaded || {};
3827
+ };
3828
+ var mountCustomPageRuntime = async ({
3829
+ assets,
3830
+ container,
3831
+ context,
3832
+ module
3833
+ }) => {
3834
+ const cssIsolation = normalizeCssIsolation2(assets?.cssIsolation);
3835
+ const mountedLinks = [];
3836
+ container.innerHTML = "";
3837
+ container.classList.toggle(NAMESPACE_ROOT_CLASS2, cssIsolation === "namespace");
3838
+ (assets?.cssUrls || []).forEach((href) => {
3839
+ const link = document.createElement("link");
3840
+ link.rel = "stylesheet";
3841
+ link.href = href;
3842
+ link.setAttribute("data-openxiangda-runtime-style", href);
3843
+ document.head.appendChild(link);
3844
+ mountedLinks.push(link);
3845
+ });
3846
+ await module.mount?.(container, context);
3847
+ return async () => {
3848
+ await module.unmount?.(container, context);
3849
+ mountedLinks.forEach((link) => link.remove());
3850
+ container.classList.remove(NAMESPACE_ROOT_CLASS2);
3851
+ container.innerHTML = "";
3852
+ };
3853
+ };
3854
+ var mountBrowserPageRuntime = async (options) => {
3855
+ const bootstrap = await fetchBrowserRuntimeBootstrap({
3856
+ appType: options.appType,
3857
+ pageKey: options.pageKey,
3858
+ bootstrapPath: options.bootstrapPath,
3859
+ fetchImpl: options.fetchImpl,
3860
+ servicePrefix: options.servicePrefix
3861
+ });
3862
+ if (bootstrap.permissions?.canView === false) {
3863
+ throw new Error(String(bootstrap.permissions.message || "\u60A8\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u8BE5\u9875\u9762"));
3864
+ }
3865
+ const assets = await resolveRuntimeAssets(bootstrap, options.fetchImpl || fetch);
3866
+ if (!assets.entryUrl) {
3867
+ throw new Error("\u4EE3\u7801\u9875\u9762\u7F3A\u5C11 entryUrl");
3868
+ }
3869
+ const context = createBrowserPageContext(bootstrap, options);
3870
+ const module = await loadCustomPageModule(
3871
+ assets.entryUrl,
3872
+ options.moduleLoader,
3873
+ assets.jsUrls
3874
+ );
3875
+ const cleanup2 = await mountCustomPageRuntime({
3876
+ assets,
3877
+ container: options.container,
3878
+ context,
3879
+ module
3880
+ });
3881
+ return {
3882
+ bootstrap,
3883
+ assets,
3884
+ context,
3885
+ module,
3886
+ cleanup: cleanup2
3887
+ };
3888
+ };
3889
+
3511
3890
  // packages/sdk/src/runtime/react/auth.tsx
3512
3891
  import {
3513
3892
  useCallback as useCallback3,
@@ -4045,9 +4424,12 @@ var OpenXiangdaProvider = ({
4045
4424
  [appType]
4046
4425
  );
4047
4426
  const [accessToken, setAccessTokenState] = useState4(null);
4427
+ const accessTokenRef = useRef2(null);
4048
4428
  const setAccessToken = useCallback4(
4049
4429
  (nextAccessToken) => {
4050
- setAccessTokenState(nextAccessToken || null);
4430
+ const normalizedAccessToken = nextAccessToken || null;
4431
+ accessTokenRef.current = normalizedAccessToken;
4432
+ setAccessTokenState(normalizedAccessToken);
4051
4433
  },
4052
4434
  []
4053
4435
  );
@@ -4073,7 +4455,7 @@ var OpenXiangdaProvider = ({
4073
4455
  return;
4074
4456
  }
4075
4457
  setState((prev) => ({ ...prev, loading: true, error: null }));
4076
- const requestFetch = options.accessToken !== void 0 ? createAuthorizedFetch(resolvedFetch, options.accessToken || null) : authorizedFetch;
4458
+ const requestFetch = options.accessToken !== void 0 ? createAuthorizedFetch(resolvedFetch, options.accessToken || null) : createAuthorizedFetch(resolvedFetch, accessTokenRef.current);
4077
4459
  try {
4078
4460
  const response = await requestFetch(
4079
4461
  buildServiceUrl3(
@@ -4107,7 +4489,7 @@ var OpenXiangdaProvider = ({
4107
4489
  error: normalizeRuntimeError(error)
4108
4490
  });
4109
4491
  }
4110
- }, [authorizedFetch, resolvedAppType, resolvedFetch, servicePrefix]);
4492
+ }, [resolvedAppType, resolvedFetch, servicePrefix]);
4111
4493
  useEffect4(() => {
4112
4494
  void reload();
4113
4495
  }, [reload]);
@@ -4117,10 +4499,11 @@ var OpenXiangdaProvider = ({
4117
4499
  appType: resolvedAppType,
4118
4500
  servicePrefix,
4119
4501
  fetchImpl: authorizedFetch,
4502
+ baseFetchImpl: resolvedFetch,
4120
4503
  reload,
4121
4504
  setAccessToken
4122
4505
  }),
4123
- [authorizedFetch, reload, resolvedAppType, servicePrefix, state]
4506
+ [authorizedFetch, reload, resolvedAppType, resolvedFetch, servicePrefix, state]
4124
4507
  );
4125
4508
  return /* @__PURE__ */ jsx4(OpenXiangdaRuntimeContext.Provider, { value, children });
4126
4509
  };
@@ -4132,6 +4515,96 @@ var useOpenXiangda = () => {
4132
4515
  return context;
4133
4516
  };
4134
4517
  var useRuntimeBootstrap = () => useOpenXiangda();
4518
+ var OpenXiangdaPageProvider = ({
4519
+ children,
4520
+ page,
4521
+ route,
4522
+ env,
4523
+ message: message7,
4524
+ modal,
4525
+ navigation
4526
+ }) => {
4527
+ const runtime = useOpenXiangda();
4528
+ const context = useMemo5(() => {
4529
+ const bootstrap = runtime.data;
4530
+ const app = toRuntimeRecord(bootstrap?.app);
4531
+ const user = toRuntimeRecord(bootstrap?.user);
4532
+ const permissions = bootstrap?.permissions;
4533
+ const tenantId = toStringValue(getRecordValue3(app, "tenantId")) || toStringValue(getRecordValue3(user, "tenantId")) || toStringValue(getRecordValue3(app, "tenantCode")) || "";
4534
+ const appType = runtime.appType || bootstrap?.appType || toStringValue(getRecordValue3(app, "appType"));
4535
+ const routeInfo = buildBrowserRouteInfo(route);
4536
+ return createBrowserPageContext(
4537
+ {
4538
+ app: {
4539
+ ...app,
4540
+ appType,
4541
+ tenantId
4542
+ },
4543
+ page: {
4544
+ id: routeInfo.pathname || "react-spa",
4545
+ code: routeInfo.pathname || "react-spa",
4546
+ name: "OpenXiangda React SPA",
4547
+ type: "react-spa",
4548
+ rendererType: "react-spa",
4549
+ routeKey: routeInfo.pathname || "react-spa",
4550
+ status: "ACTIVE",
4551
+ props: {},
4552
+ route: {},
4553
+ dataSources: [],
4554
+ capabilities: {},
4555
+ buildId: toStringValue(
4556
+ getRecordValue3(bootstrap?.runtime, "activeBuildId")
4557
+ ),
4558
+ ...page
4559
+ },
4560
+ user: {
4561
+ ...user,
4562
+ id: toStringValue(getRecordValue3(user, "id")) || (user.isGuest ? "guest" : "current"),
4563
+ username: toStringValue(getRecordValue3(user, "username")) || toStringValue(getRecordValue3(user, "name")) || (user.isGuest ? "guest" : "current"),
4564
+ tenantId,
4565
+ isGuest: user.isGuest === true || user.userType === "guest" || Boolean(getRecordValue3(user, "publicAccess")),
4566
+ userType: user.userType === "guest" || user.isGuest === true ? "guest" : "normal"
4567
+ },
4568
+ env: {
4569
+ appType,
4570
+ servicePrefix: runtime.servicePrefix,
4571
+ runtimeMode: bootstrap?.runtime?.mode || "react-spa",
4572
+ ...env || {}
4573
+ },
4574
+ permissions: {
4575
+ canView: runtime.error?.type !== "forbidden",
4576
+ hasFullAccess: permissions?.hasFullAccess === true,
4577
+ ...permissions || {}
4578
+ },
4579
+ sdk: {
4580
+ packageName: "openxiangda",
4581
+ supportedBridgeMethods: ["transport.request", "transport.download"]
4582
+ }
4583
+ },
4584
+ {
4585
+ servicePrefix: runtime.servicePrefix,
4586
+ fetchImpl: runtime.fetchImpl,
4587
+ route: routeInfo,
4588
+ message: message7,
4589
+ modal,
4590
+ navigation
4591
+ }
4592
+ );
4593
+ }, [
4594
+ env,
4595
+ message7,
4596
+ modal,
4597
+ navigation,
4598
+ page,
4599
+ route,
4600
+ runtime.appType,
4601
+ runtime.data,
4602
+ runtime.error?.type,
4603
+ runtime.fetchImpl,
4604
+ runtime.servicePrefix
4605
+ ]);
4606
+ return /* @__PURE__ */ jsx4(PageProvider, { context, children });
4607
+ };
4135
4608
  var useAppMenus = () => {
4136
4609
  const runtime = useOpenXiangda();
4137
4610
  return {
@@ -4509,7 +4982,40 @@ var getRecordValue3 = (value, key) => {
4509
4982
  if (!value || typeof value !== "object") return void 0;
4510
4983
  return value[key];
4511
4984
  };
4512
- var isSuccessCode4 = (code) => {
4985
+ var toRuntimeRecord = (value) => {
4986
+ return value && typeof value === "object" ? { ...value } : {};
4987
+ };
4988
+ var toStringValue = (value) => {
4989
+ if (value === void 0 || value === null) return "";
4990
+ return String(value);
4991
+ };
4992
+ var parseBrowserQuery = () => {
4993
+ if (typeof window === "undefined") return {};
4994
+ const query = {};
4995
+ const params = new URLSearchParams(window.location.search);
4996
+ params.forEach((value, key) => {
4997
+ const currentValue = query[key];
4998
+ if (currentValue === void 0) {
4999
+ query[key] = value;
5000
+ return;
5001
+ }
5002
+ query[key] = Array.isArray(currentValue) ? [...currentValue, value] : [currentValue, value];
5003
+ });
5004
+ return query;
5005
+ };
5006
+ var buildBrowserRouteInfo = (route) => {
5007
+ const pathname = route?.pathname || (typeof window !== "undefined" ? window.location.pathname : "");
5008
+ const search = typeof window !== "undefined" ? window.location.search : "";
5009
+ const hash = route?.hash || (typeof window !== "undefined" ? window.location.hash : "");
5010
+ return {
5011
+ pathname,
5012
+ fullPath: route?.fullPath || (typeof window !== "undefined" ? `${pathname}${search}${hash}` : pathname),
5013
+ params: route?.params || {},
5014
+ query: route?.query || parseBrowserQuery(),
5015
+ hash
5016
+ };
5017
+ };
5018
+ var isSuccessCode5 = (code) => {
4513
5019
  if (code === void 0 || code === null || code === "") return true;
4514
5020
  const normalized = Number(code);
4515
5021
  return Number.isFinite(normalized) ? normalized === 0 || normalized >= 200 && normalized < 300 : false;
@@ -4517,7 +5023,7 @@ var isSuccessCode4 = (code) => {
4517
5023
  var isRuntimeEnvelopeFailure = (response, payload) => {
4518
5024
  const code = getRecordValue3(payload, "code");
4519
5025
  const success = getRecordValue3(payload, "success");
4520
- return !response.ok || success === false || !isSuccessCode4(code);
5026
+ return !response.ok || success === false || !isSuccessCode5(code);
4521
5027
  };
4522
5028
  var isServerErrorCode = (code) => {
4523
5029
  const normalized = Number(code);
@@ -4544,14 +5050,14 @@ var usePublicAccess = (options = {}) => {
4544
5050
  const {
4545
5051
  appType: runtimeAppType,
4546
5052
  servicePrefix: runtimeServicePrefix,
4547
- fetchImpl: runtimeFetchImpl,
5053
+ baseFetchImpl: runtimeBaseFetchImpl,
4548
5054
  reload: reloadRuntime,
4549
5055
  setAccessToken
4550
5056
  } = runtime;
4551
5057
  const {
4552
5058
  appType = runtimeAppType,
4553
5059
  servicePrefix = runtimeServicePrefix,
4554
- fetchImpl = runtimeFetchImpl,
5060
+ fetchImpl = runtimeBaseFetchImpl,
4555
5061
  autoStart = true,
4556
5062
  ...sessionInput
4557
5063
  } = options;
@@ -4627,384 +5133,6 @@ var readTicketFromLocation = () => {
4627
5133
  };
4628
5134
  var readPathFromLocation = () => typeof window === "undefined" ? void 0 : window.location.pathname;
4629
5135
 
4630
- // packages/sdk/src/runtime/host/browserHost.ts
4631
- var NAMESPACE_ROOT_CLASS2 = "sy-app-workspace";
4632
- var defaultModuleLoader = (url2) => import(
4633
- /* @vite-ignore */
4634
- url2
4635
- );
4636
- var trimTrailingSlash = (value) => value.replace(/\/+$/, "");
4637
- var getDefaultServicePrefix = () => typeof window !== "undefined" ? trimTrailingSlash(window.__OPENXIANGDA_SERVICE_PREFIX__ || "/service") : "/service";
4638
- var joinServicePath = (servicePrefix, path) => {
4639
- if (/^https?:\/\//i.test(path)) return path;
4640
- const normalizedPrefix = trimTrailingSlash(servicePrefix || "/service");
4641
- if (path.startsWith(normalizedPrefix)) return path;
4642
- return `${normalizedPrefix}${path.startsWith("/") ? path : `/${path}`}`;
4643
- };
4644
- var appendQuery = (url2, query) => {
4645
- if (!query) return url2;
4646
- return `${url2}${url2.includes("?") ? "&" : "?"}${query}`;
4647
- };
4648
- var normalizeMethod2 = (method4) => {
4649
- const value = String(method4 || "get").toUpperCase();
4650
- return ["GET", "POST", "PUT", "DELETE", "PATCH"].includes(value) ? value : "GET";
4651
- };
4652
- var normalizeCssIsolation2 = (value) => {
4653
- if (value === "namespace" || value === "shadow" || value === "none") {
4654
- return value;
4655
- }
4656
- return "none";
4657
- };
4658
- var normalizeEnvelopeCode2 = (value, fallback) => {
4659
- if (value === void 0 || value === null || value === "") return fallback;
4660
- const normalized = Number(value);
4661
- return Number.isFinite(normalized) ? normalized : String(value);
4662
- };
4663
- var isSuccessCode5 = (value) => {
4664
- if (value === void 0 || value === null || value === "") return true;
4665
- const normalized = Number(value);
4666
- return Number.isFinite(normalized) ? normalized === 0 || normalized >= 200 && normalized < 300 : false;
4667
- };
4668
- var parseJsonResponse = async (response) => {
4669
- const payload = await response.json().catch(() => null);
4670
- if (!response.ok) {
4671
- const message7 = payload && typeof payload === "object" ? payload.message || payload.error || response.statusText : response.statusText;
4672
- throw new Error(message7 || "\u8BF7\u6C42\u5931\u8D25");
4673
- }
4674
- if (payload && typeof payload === "object" && "code" in payload) {
4675
- const code = normalizeEnvelopeCode2(payload.code, response.status);
4676
- return {
4677
- code,
4678
- success: payload.success !== false && isSuccessCode5(code),
4679
- message: payload.message,
4680
- result: payload.result ?? payload.data ?? null,
4681
- data: payload.data,
4682
- raw: payload
4683
- };
4684
- }
4685
- return {
4686
- code: response.status,
4687
- success: response.ok,
4688
- message: response.statusText,
4689
- result: payload,
4690
- data: payload,
4691
- raw: payload
4692
- };
4693
- };
4694
- var createBrowserPageBridge = (options = {}) => {
4695
- const servicePrefix = options.servicePrefix || getDefaultServicePrefix();
4696
- const fetchImpl = createBoundFetch(options.fetchImpl);
4697
- const request = async (payload) => {
4698
- if (!payload?.path) {
4699
- throw new Error("transport.request \u9700\u8981 path");
4700
- }
4701
- const url2 = appendQuery(joinServicePath(servicePrefix, payload.path), payload.query);
4702
- const headers = new Headers(payload.headers);
4703
- let body;
4704
- if (payload.body !== void 0) {
4705
- if (payload.body instanceof FormData) {
4706
- body = payload.body;
4707
- } else {
4708
- headers.set("Content-Type", headers.get("Content-Type") || "application/json");
4709
- body = JSON.stringify(payload.body);
4710
- }
4711
- }
4712
- const response = await fetchImpl(url2, {
4713
- method: normalizeMethod2(payload.method),
4714
- headers,
4715
- body,
4716
- credentials: "include"
4717
- });
4718
- return parseJsonResponse(response);
4719
- };
4720
- const download = async (payload) => {
4721
- if (!payload?.path) {
4722
- throw new Error("transport.download \u9700\u8981 path");
4723
- }
4724
- const url2 = appendQuery(joinServicePath(servicePrefix, payload.path), payload.query);
4725
- const headers = new Headers(payload.headers);
4726
- let body;
4727
- if (payload.body !== void 0) {
4728
- if (payload.body instanceof FormData) {
4729
- body = payload.body;
4730
- } else {
4731
- headers.set("Content-Type", headers.get("Content-Type") || "application/json");
4732
- body = JSON.stringify(payload.body);
4733
- }
4734
- }
4735
- const response = await fetchImpl(url2, {
4736
- method: normalizeMethod2(payload.method),
4737
- headers,
4738
- body,
4739
- credentials: "include"
4740
- });
4741
- if (!response.ok) {
4742
- throw new Error(response.statusText || "\u4E0B\u8F7D\u5931\u8D25");
4743
- }
4744
- return {
4745
- blob: await response.blob(),
4746
- contentType: response.headers.get("content-type") || void 0,
4747
- fileName: response.headers.get("content-disposition") || void 0,
4748
- headers: Object.fromEntries(response.headers.entries())
4749
- };
4750
- };
4751
- return {
4752
- invoke: async (method4, payload) => {
4753
- if (method4 === "transport.request") return await request(payload);
4754
- if (method4 === "transport.download") return await download(payload);
4755
- throw new Error(`\u4E0D\u652F\u6301\u7684 bridge \u65B9\u6CD5: ${method4}`);
4756
- }
4757
- };
4758
- };
4759
- var createBrowserPageContext = (bootstrap, options = {}) => {
4760
- const route = {
4761
- pathname: options.route?.pathname || (typeof window !== "undefined" ? window.location.pathname : ""),
4762
- fullPath: options.route?.fullPath || (typeof window !== "undefined" ? `${window.location.pathname}${window.location.search}${window.location.hash}` : ""),
4763
- params: options.route?.params || {},
4764
- query: options.route?.query || {},
4765
- hash: options.route?.hash || (typeof window !== "undefined" ? window.location.hash : "")
4766
- };
4767
- return {
4768
- protocolVersion: bootstrap.asset?.protocolVersion || "1.0",
4769
- app: bootstrap.app,
4770
- page: {
4771
- ...bootstrap.page,
4772
- version: bootstrap.asset?.version || bootstrap.page.version,
4773
- buildId: bootstrap.asset?.buildId || bootstrap.page.buildId
4774
- },
4775
- user: bootstrap.user,
4776
- route,
4777
- env: bootstrap.env || {},
4778
- permissions: {
4779
- canView: bootstrap.permissions?.canView !== false,
4780
- hasFullAccess: bootstrap.permissions?.hasFullAccess === true,
4781
- ...bootstrap.permissions || {}
4782
- },
4783
- capabilities: Array.from(
4784
- /* @__PURE__ */ new Set([
4785
- "navigation",
4786
- "ui.message",
4787
- "ui.modal",
4788
- "transport.request",
4789
- "transport.download",
4790
- ...bootstrap.sdk?.supportedBridgeMethods || []
4791
- ])
4792
- ),
4793
- ui: {
4794
- message: {
4795
- success: (text) => options.message?.success?.(text),
4796
- error: (text) => options.message?.error?.(text),
4797
- warning: (text) => options.message?.warning?.(text),
4798
- info: (text) => options.message?.info?.(text),
4799
- loading: (text) => options.message?.loading?.(text) || (() => void 0)
4800
- },
4801
- modal: {
4802
- confirm: (input) => options.modal?.confirm?.(input) || Promise.resolve(false)
4803
- }
4804
- },
4805
- navigation: {
4806
- pushPage: (pageKey, query) => options.navigation?.pushPage?.(pageKey, query),
4807
- replacePage: (pageKey, query) => options.navigation?.replacePage?.(pageKey, query),
4808
- pushRoute: (routeValue, query) => options.navigation?.pushRoute?.(routeValue, query),
4809
- replaceRoute: (routeValue, query) => options.navigation?.replaceRoute?.(routeValue, query),
4810
- updateQuery: (query) => options.navigation?.updateQuery?.(query),
4811
- setHash: (hash) => options.navigation?.setHash?.(hash),
4812
- back: () => options.navigation?.back?.()
4813
- },
4814
- bridge: createBrowserPageBridge(options),
4815
- sdk: {
4816
- ...bootstrap.sdk,
4817
- supportedBridgeMethods: ["transport.request", "transport.download"]
4818
- }
4819
- };
4820
- };
4821
- var resolveRuntimeAssets = async (bootstrap, fetchImpl = fetch) => {
4822
- const boundFetch = createBoundFetch(fetchImpl);
4823
- const fallback = {
4824
- entryUrl: bootstrap.runtimeAssets?.entryUrl || bootstrap.asset?.entryUrl || "",
4825
- cssUrls: bootstrap.runtimeAssets?.cssUrls || bootstrap.asset?.cssAssets || [],
4826
- jsUrls: bootstrap.runtimeAssets?.jsUrls || bootstrap.asset?.jsAssets || [],
4827
- cssIsolation: normalizeCssIsolation2(
4828
- bootstrap.runtimeAssets?.cssIsolation || bootstrap.page.capabilities?.cssIsolation
4829
- )
4830
- };
4831
- if (bootstrap.runtimeAssets?.entryUrl || !bootstrap.asset?.manifestUrl) {
4832
- return fallback;
4833
- }
4834
- try {
4835
- const response = await boundFetch(bootstrap.asset.manifestUrl, {
4836
- credentials: "omit"
4837
- });
4838
- if (!response.ok) return fallback;
4839
- const manifest = await response.json();
4840
- const base = bootstrap.asset.manifestUrl;
4841
- const resolveUrl = (value) => new URL(value, base).toString();
4842
- return {
4843
- entryUrl: manifest?.entry?.url ? resolveUrl(manifest.entry.url) : fallback.entryUrl,
4844
- cssUrls: Array.isArray(manifest?.assets?.css) ? manifest.assets.css.map(resolveUrl) : fallback.cssUrls,
4845
- jsUrls: Array.isArray(manifest?.assets?.js) ? manifest.assets.js.map(resolveUrl) : fallback.jsUrls,
4846
- cssIsolation: normalizeCssIsolation2(
4847
- manifest?.style?.isolation || fallback.cssIsolation
4848
- )
4849
- };
4850
- } catch {
4851
- return fallback;
4852
- }
4853
- };
4854
- var fetchBrowserRuntimeBootstrap = async ({
4855
- appType,
4856
- bootstrapPath,
4857
- fetchImpl = fetch,
4858
- pageKey,
4859
- servicePrefix
4860
- }) => {
4861
- if (!appType) {
4862
- throw new Error("appType \u7F3A\u5931");
4863
- }
4864
- if (!pageKey) {
4865
- throw new Error("pageKey \u7F3A\u5931");
4866
- }
4867
- const path = bootstrapPath || `/openxiangda-api/v1/apps/${encodeURIComponent(
4868
- appType
4869
- )}/pages/${encodeURIComponent(pageKey)}/bootstrap`;
4870
- const boundFetch = createBoundFetch(fetchImpl);
4871
- const response = await boundFetch(
4872
- joinServicePath(servicePrefix || getDefaultServicePrefix(), path),
4873
- {
4874
- method: "GET",
4875
- credentials: "include"
4876
- }
4877
- );
4878
- const payload = await response.json().catch(() => null);
4879
- if (!response.ok) {
4880
- throw new Error(payload?.message || response.statusText || "\u83B7\u53D6\u9875\u9762\u8FD0\u884C\u65F6\u5931\u8D25");
4881
- }
4882
- if (payload && typeof payload === "object" && ("code" in payload || "success" in payload)) {
4883
- if (payload.success === false || payload.code && Number(payload.code) !== 200) {
4884
- throw new Error(payload.message || "\u83B7\u53D6\u9875\u9762\u8FD0\u884C\u65F6\u5931\u8D25");
4885
- }
4886
- return payload.data || {};
4887
- }
4888
- return payload || {};
4889
- };
4890
- var resolveBrowserRuntimeRoute = async ({
4891
- appType,
4892
- fetchImpl = fetch,
4893
- path,
4894
- resolvePath,
4895
- search,
4896
- servicePrefix
4897
- }) => {
4898
- if (!appType) {
4899
- throw new Error("appType \u7F3A\u5931");
4900
- }
4901
- const currentPath = path || (typeof window !== "undefined" ? window.location.pathname : "/");
4902
- const currentSearch = search !== void 0 ? search : typeof window !== "undefined" ? window.location.search : "";
4903
- const endpoint = resolvePath || `/openxiangda-api/v1/apps/${encodeURIComponent(
4904
- appType
4905
- )}/runtime/routes/resolve`;
4906
- const boundFetch = createBoundFetch(fetchImpl);
4907
- const response = await boundFetch(
4908
- joinServicePath(servicePrefix || getDefaultServicePrefix(), endpoint),
4909
- {
4910
- method: "POST",
4911
- credentials: "include",
4912
- headers: {
4913
- "Content-Type": "application/json"
4914
- },
4915
- body: JSON.stringify({
4916
- path: currentPath,
4917
- search: currentSearch
4918
- })
4919
- }
4920
- );
4921
- const parsed = await parseJsonResponse(response);
4922
- if (!parsed.success || !parsed.result) {
4923
- throw new Error(parsed.message || "\u89E3\u6790\u8FD0\u884C\u65F6\u8DEF\u7531\u5931\u8D25");
4924
- }
4925
- return parsed.result;
4926
- };
4927
- var loadRuntimeScriptModules = async (jsUrls = [], moduleLoader = defaultModuleLoader) => {
4928
- const urls = Array.from(
4929
- new Set(jsUrls.map((url2) => String(url2 || "").trim()).filter(Boolean))
4930
- );
4931
- for (const url2 of urls) {
4932
- await moduleLoader(url2);
4933
- }
4934
- };
4935
- var loadCustomPageModule = async (entryUrl, moduleLoader = defaultModuleLoader, jsUrls = []) => {
4936
- if (!entryUrl) {
4937
- throw new Error("\u4EE3\u7801\u9875\u9762\u7F3A\u5C11 entryUrl");
4938
- }
4939
- await loadRuntimeScriptModules(
4940
- jsUrls.filter((url2) => url2 && url2 !== entryUrl),
4941
- moduleLoader
4942
- );
4943
- const loaded = await moduleLoader(entryUrl);
4944
- return loaded?.default && (loaded.default.mount || loaded.default.unmount) ? { ...loaded.default, ...loaded } : loaded || {};
4945
- };
4946
- var mountCustomPageRuntime = async ({
4947
- assets,
4948
- container,
4949
- context,
4950
- module
4951
- }) => {
4952
- const cssIsolation = normalizeCssIsolation2(assets?.cssIsolation);
4953
- const mountedLinks = [];
4954
- container.innerHTML = "";
4955
- container.classList.toggle(NAMESPACE_ROOT_CLASS2, cssIsolation === "namespace");
4956
- (assets?.cssUrls || []).forEach((href) => {
4957
- const link = document.createElement("link");
4958
- link.rel = "stylesheet";
4959
- link.href = href;
4960
- link.setAttribute("data-openxiangda-runtime-style", href);
4961
- document.head.appendChild(link);
4962
- mountedLinks.push(link);
4963
- });
4964
- await module.mount?.(container, context);
4965
- return async () => {
4966
- await module.unmount?.(container, context);
4967
- mountedLinks.forEach((link) => link.remove());
4968
- container.classList.remove(NAMESPACE_ROOT_CLASS2);
4969
- container.innerHTML = "";
4970
- };
4971
- };
4972
- var mountBrowserPageRuntime = async (options) => {
4973
- const bootstrap = await fetchBrowserRuntimeBootstrap({
4974
- appType: options.appType,
4975
- pageKey: options.pageKey,
4976
- bootstrapPath: options.bootstrapPath,
4977
- fetchImpl: options.fetchImpl,
4978
- servicePrefix: options.servicePrefix
4979
- });
4980
- if (bootstrap.permissions?.canView === false) {
4981
- throw new Error(String(bootstrap.permissions.message || "\u60A8\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u8BE5\u9875\u9762"));
4982
- }
4983
- const assets = await resolveRuntimeAssets(bootstrap, options.fetchImpl || fetch);
4984
- if (!assets.entryUrl) {
4985
- throw new Error("\u4EE3\u7801\u9875\u9762\u7F3A\u5C11 entryUrl");
4986
- }
4987
- const context = createBrowserPageContext(bootstrap, options);
4988
- const module = await loadCustomPageModule(
4989
- assets.entryUrl,
4990
- options.moduleLoader,
4991
- assets.jsUrls
4992
- );
4993
- const cleanup2 = await mountCustomPageRuntime({
4994
- assets,
4995
- container: options.container,
4996
- context,
4997
- module
4998
- });
4999
- return {
5000
- bootstrap,
5001
- assets,
5002
- context,
5003
- module,
5004
- cleanup: cleanup2
5005
- };
5006
- };
5007
-
5008
5136
  // packages/sdk/src/runtime/host/builtinRouteRenderer.tsx
5009
5137
  import { useCallback as useCallback39, useEffect as useEffect101, useMemo as useMemo67, useState as useState93 } from "react";
5010
5138
  import { Alert as Alert4, Button as Button17, Card as Card3, Empty as Empty9, Spin as Spin6, Typography as Typography3 } from "antd";
@@ -5400,7 +5528,7 @@ function createFormRuntimeApi(config3) {
5400
5528
  }
5401
5529
 
5402
5530
  // packages/sdk/src/components/modules/DataManagementList.tsx
5403
- import { useCallback as useCallback38, useEffect as useEffect100, useMemo as useMemo66, useRef as useRef96, useState as useState92 } from "react";
5531
+ import { useCallback as useCallback38, useEffect as useEffect100, useMemo as useMemo66, useRef as useRef97, useState as useState92 } from "react";
5404
5532
  import {
5405
5533
  Alert as Alert3,
5406
5534
  Button as Button16,
@@ -5442,11 +5570,11 @@ import {
5442
5570
  import { useMemo as useMemo65 } from "react";
5443
5571
 
5444
5572
  // packages/sdk/src/components/templates/FormDetailTemplate.tsx
5445
- import { useCallback as useCallback29, useMemo as useMemo58, useRef as useRef89, useState as useState83 } from "react";
5573
+ import { useCallback as useCallback29, useMemo as useMemo58, useRef as useRef90, useState as useState83 } from "react";
5446
5574
  import dayjs19 from "dayjs";
5447
5575
 
5448
5576
  // packages/sdk/src/components/core/FormProvider.tsx
5449
- import React240, { useCallback as useCallback26, useEffect as useEffect89, useRef as useRef86, useState as useState75, useMemo as useMemo55 } from "react";
5577
+ import React240, { useCallback as useCallback26, useEffect as useEffect89, useRef as useRef87, useState as useState75, useMemo as useMemo55 } from "react";
5450
5578
 
5451
5579
  // packages/sdk/src/components/core/FormContext.ts
5452
5580
  import { createContext as createContext3, useContext as useContext3 } from "react";
@@ -6180,13 +6308,13 @@ var import_classnames4 = __toESM(require_classnames());
6180
6308
 
6181
6309
  // node_modules/antd-mobile/es/components/popup/popup.js
6182
6310
  var import_classnames2 = __toESM(require_classnames());
6183
- import React32, { useState as useState15, useRef as useRef16 } from "react";
6311
+ import React32, { useState as useState15, useRef as useRef17 } from "react";
6184
6312
 
6185
6313
  // node_modules/ahooks/es/createUpdateEffect/index.js
6186
- import { useRef as useRef2 } from "react";
6314
+ import { useRef as useRef3 } from "react";
6187
6315
  var createUpdateEffect = function(hook) {
6188
6316
  return function(effect, deps) {
6189
- var isMounted = useRef2(false);
6317
+ var isMounted = useRef3(false);
6190
6318
  hook(function() {
6191
6319
  return function() {
6192
6320
  isMounted.current = false;
@@ -6203,7 +6331,7 @@ var createUpdateEffect = function(hook) {
6203
6331
  };
6204
6332
 
6205
6333
  // node_modules/ahooks/es/useMemoizedFn/index.js
6206
- import { useMemo as useMemo7, useRef as useRef3 } from "react";
6334
+ import { useMemo as useMemo7, useRef as useRef4 } from "react";
6207
6335
 
6208
6336
  // node_modules/ahooks/es/utils/index.js
6209
6337
  var isFunction = function(value) {
@@ -6224,11 +6352,11 @@ var useMemoizedFn = function(fn) {
6224
6352
  console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof fn));
6225
6353
  }
6226
6354
  }
6227
- var fnRef = useRef3(fn);
6355
+ var fnRef = useRef4(fn);
6228
6356
  fnRef.current = useMemo7(function() {
6229
6357
  return fn;
6230
6358
  }, [fn]);
6231
- var memoizedFn = useRef3(void 0);
6359
+ var memoizedFn = useRef4(void 0);
6232
6360
  if (!memoizedFn.current) {
6233
6361
  memoizedFn.current = function() {
6234
6362
  var args = [];
@@ -6264,9 +6392,9 @@ var depsAreSame_default = depsAreSame;
6264
6392
  import { useEffect as useEffect7 } from "react";
6265
6393
 
6266
6394
  // node_modules/ahooks/es/useLatest/index.js
6267
- import { useRef as useRef4 } from "react";
6395
+ import { useRef as useRef5 } from "react";
6268
6396
  function useLatest(value) {
6269
- var ref = useRef4(value);
6397
+ var ref = useRef5(value);
6270
6398
  ref.current = value;
6271
6399
  return ref;
6272
6400
  }
@@ -6374,13 +6502,13 @@ var getDocumentOrShadow_default = getDocumentOrShadow;
6374
6502
  import { useEffect as useEffect9 } from "react";
6375
6503
 
6376
6504
  // node_modules/ahooks/es/utils/createEffectWithTarget.js
6377
- import { useRef as useRef5 } from "react";
6505
+ import { useRef as useRef6 } from "react";
6378
6506
  var createEffectWithTarget = function(useEffectType) {
6379
6507
  var useEffectWithTarget3 = function(effect, deps, target) {
6380
- var hasInitRef = useRef5(false);
6381
- var lastElementRef = useRef5([]);
6382
- var lastDepsRef = useRef5([]);
6383
- var unLoadRef = useRef5(void 0);
6508
+ var hasInitRef = useRef6(false);
6509
+ var lastElementRef = useRef6([]);
6510
+ var lastDepsRef = useRef6([]);
6511
+ var unLoadRef = useRef6(void 0);
6384
6512
  useEffectType(function() {
6385
6513
  var _a;
6386
6514
  var targets = Array.isArray(target) ? target : [target];
@@ -7100,10 +7228,10 @@ var useIsomorphicLayoutEffect = isBrowser_default ? useLayoutEffect : noop_defau
7100
7228
  var useIsomorphicLayoutEffect_default = useIsomorphicLayoutEffect;
7101
7229
 
7102
7230
  // node_modules/ahooks/es/useLockFn/index.js
7103
- import { useRef as useRef6, useCallback as useCallback7 } from "react";
7231
+ import { useRef as useRef7, useCallback as useCallback7 } from "react";
7104
7232
  function useLockFn(fn) {
7105
7233
  var _this = this;
7106
- var lockRef = useRef6(false);
7234
+ var lockRef = useRef7(false);
7107
7235
  return useCallback7(function() {
7108
7236
  var args = [];
7109
7237
  for (var _i = 0; _i < arguments.length; _i++) {
@@ -7150,9 +7278,9 @@ function useLockFn(fn) {
7150
7278
  var useLockFn_default = useLockFn;
7151
7279
 
7152
7280
  // node_modules/ahooks/es/useRafState/index.js
7153
- import { useCallback as useCallback8, useRef as useRef7, useState as useState10 } from "react";
7281
+ import { useCallback as useCallback8, useRef as useRef8, useState as useState10 } from "react";
7154
7282
  function useRafState(initialState) {
7155
- var ref = useRef7(0);
7283
+ var ref = useRef8(0);
7156
7284
  var _a = __read(useState10(initialState), 2), state = _a[0], setState = _a[1];
7157
7285
  var setRafState = useCallback8(function(value) {
7158
7286
  cancelAnimationFrame(ref.current);
@@ -7168,9 +7296,9 @@ function useRafState(initialState) {
7168
7296
  var useRafState_default = useRafState;
7169
7297
 
7170
7298
  // node_modules/ahooks/es/useUnmountedRef/index.js
7171
- import { useEffect as useEffect11, useRef as useRef8 } from "react";
7299
+ import { useEffect as useEffect11, useRef as useRef9 } from "react";
7172
7300
  var useUnmountedRef = function() {
7173
- var unmountedRef = useRef8(false);
7301
+ var unmountedRef = useRef9(false);
7174
7302
  useEffect11(function() {
7175
7303
  unmountedRef.current = false;
7176
7304
  return function() {
@@ -7744,10 +7872,10 @@ function useThrottleFn(fn, options) {
7744
7872
  var useThrottleFn_default = useThrottleFn;
7745
7873
 
7746
7874
  // node_modules/ahooks/es/useTimeout/index.js
7747
- import { useCallback as useCallback9, useEffect as useEffect12, useRef as useRef9 } from "react";
7875
+ import { useCallback as useCallback9, useEffect as useEffect12, useRef as useRef10 } from "react";
7748
7876
  var useTimeout = function(fn, delay) {
7749
7877
  var timerCallback = useMemoizedFn_default(fn);
7750
- var timerRef = useRef9(null);
7878
+ var timerRef = useRef10(null);
7751
7879
  var clear4 = useCallback9(function() {
7752
7880
  if (timerRef.current) {
7753
7881
  clearTimeout(timerRef.current);
@@ -7765,10 +7893,10 @@ var useTimeout = function(fn, delay) {
7765
7893
  var useTimeout_default = useTimeout;
7766
7894
 
7767
7895
  // node_modules/antd-mobile/es/components/mask/mask.js
7768
- import React12, { useMemo as useMemo11, useRef as useRef15, useState as useState13 } from "react";
7896
+ import React12, { useMemo as useMemo11, useRef as useRef16, useState as useState13 } from "react";
7769
7897
 
7770
7898
  // node_modules/antd-mobile/es/utils/use-touch.js
7771
- import { useRef as useRef10 } from "react";
7899
+ import { useRef as useRef11 } from "react";
7772
7900
  var MIN_DISTANCE = 10;
7773
7901
  function getDirection(x, y) {
7774
7902
  if (x > y && x > MIN_DISTANCE) {
@@ -7780,13 +7908,13 @@ function getDirection(x, y) {
7780
7908
  return "";
7781
7909
  }
7782
7910
  function useTouch() {
7783
- const startX = useRef10(0);
7784
- const startY = useRef10(0);
7785
- const deltaX = useRef10(0);
7786
- const deltaY = useRef10(0);
7787
- const offsetX = useRef10(0);
7788
- const offsetY = useRef10(0);
7789
- const direction = useRef10("");
7911
+ const startX = useRef11(0);
7912
+ const startY = useRef11(0);
7913
+ const deltaX = useRef11(0);
7914
+ const deltaY = useRef11(0);
7915
+ const offsetX = useRef11(0);
7916
+ const offsetY = useRef11(0);
7917
+ const direction = useRef11("");
7790
7918
  const isVertical = () => direction.current === "vertical";
7791
7919
  const isHorizontal = () => direction.current === "horizontal";
7792
7920
  const reset = () => {
@@ -8103,7 +8231,7 @@ function eachSafely(values, each2) {
8103
8231
  }
8104
8232
 
8105
8233
  // node_modules/@react-spring/shared/dist/react-spring-shared.esm.js
8106
- import { useRef as useRef11, useEffect as useEffect14, useLayoutEffect as useLayoutEffect3, useState as useState11 } from "react";
8234
+ import { useRef as useRef12, useEffect as useEffect14, useLayoutEffect as useLayoutEffect3, useState as useState11 } from "react";
8107
8235
  function noop2() {
8108
8236
  }
8109
8237
  var defineHidden = (obj, key, value) => Object.defineProperty(obj, key, {
@@ -8771,7 +8899,7 @@ function isAnimatedString(value) {
8771
8899
  }
8772
8900
  var useIsomorphicLayoutEffect2 = isSSR() ? useEffect14 : useLayoutEffect3;
8773
8901
  var useIsMounted = () => {
8774
- const isMounted = useRef11(false);
8902
+ const isMounted = useRef12(false);
8775
8903
  useIsomorphicLayoutEffect2(() => {
8776
8904
  isMounted.current = true;
8777
8905
  return () => {
@@ -8794,7 +8922,7 @@ function useMemoOne(getResult, inputs) {
8794
8922
  inputs,
8795
8923
  result: getResult()
8796
8924
  }));
8797
- const committed = useRef11();
8925
+ const committed = useRef12();
8798
8926
  const prevCache = committed.current;
8799
8927
  let cache = prevCache;
8800
8928
  if (cache) {
@@ -8830,7 +8958,7 @@ function areInputsEqual(next, prev) {
8830
8958
  var useOnce = (effect) => useEffect14(effect, emptyDeps);
8831
8959
  var emptyDeps = [];
8832
8960
  function usePrev(value) {
8833
- const prevRef = useRef11();
8961
+ const prevRef = useRef12();
8834
8962
  useEffect14(() => {
8835
8963
  prevRef.current = value;
8836
8964
  });
@@ -8839,11 +8967,11 @@ function usePrev(value) {
8839
8967
 
8840
8968
  // node_modules/@react-spring/core/dist/react-spring-core.esm.js
8841
8969
  import * as React10 from "react";
8842
- import { useContext as useContext6, useMemo as useMemo10, useRef as useRef13, useState as useState12 } from "react";
8970
+ import { useContext as useContext6, useMemo as useMemo10, useRef as useRef14, useState as useState12 } from "react";
8843
8971
 
8844
8972
  // node_modules/@react-spring/animated/dist/react-spring-animated.esm.js
8845
8973
  import * as React9 from "react";
8846
- import { forwardRef, useRef as useRef12, useCallback as useCallback10, useEffect as useEffect15 } from "react";
8974
+ import { forwardRef, useRef as useRef13, useCallback as useCallback10, useEffect as useEffect15 } from "react";
8847
8975
  var $node = /* @__PURE__ */ Symbol.for("Animated:node");
8848
8976
  var isAnimated = (value) => !!value && value[$node] === value;
8849
8977
  var getAnimated = (owner) => owner && owner[$node];
@@ -9043,7 +9171,7 @@ function _extends2() {
9043
9171
  var withAnimated = (Component5, host2) => {
9044
9172
  const hasInstance = !is.fun(Component5) || Component5.prototype && Component5.prototype.isReactComponent;
9045
9173
  return forwardRef((givenProps, givenRef) => {
9046
- const instanceRef = useRef12(null);
9174
+ const instanceRef = useRef13(null);
9047
9175
  const ref = hasInstance && useCallback10((value) => {
9048
9176
  instanceRef.current = updateRef(givenRef, value);
9049
9177
  }, [givenRef]);
@@ -9060,7 +9188,7 @@ var withAnimated = (Component5, host2) => {
9060
9188
  }
9061
9189
  };
9062
9190
  const observer = new PropsObserver(callback, deps);
9063
- const observerRef = useRef12();
9191
+ const observerRef = useRef13();
9064
9192
  useIsomorphicLayoutEffect2(() => {
9065
9193
  observerRef.current = observer;
9066
9194
  each(deps, (dep) => addFluidObserver(dep, observer));
@@ -10678,7 +10806,7 @@ function useSprings(length, props, deps) {
10678
10806
  const propsFn = is.fun(props) && props;
10679
10807
  if (propsFn && !deps) deps = [];
10680
10808
  const ref = useMemo10(() => propsFn || arguments.length == 3 ? SpringRef() : void 0, []);
10681
- const layoutId = useRef13(0);
10809
+ const layoutId = useRef14(0);
10682
10810
  const forceUpdate = useForceUpdate();
10683
10811
  const state = useMemo10(() => ({
10684
10812
  ctrls: [],
@@ -10695,7 +10823,7 @@ function useSprings(length, props, deps) {
10695
10823
  });
10696
10824
  }
10697
10825
  }), []);
10698
- const ctrls = useRef13([...state.ctrls]);
10826
+ const ctrls = useRef14([...state.ctrls]);
10699
10827
  const updates = [];
10700
10828
  const prevLength = usePrev(length) || 0;
10701
10829
  useMemo10(() => {
@@ -11093,9 +11221,9 @@ function renderToContainer(getContainer, node) {
11093
11221
  }
11094
11222
 
11095
11223
  // node_modules/antd-mobile/es/utils/use-initialized.js
11096
- import { useRef as useRef14 } from "react";
11224
+ import { useRef as useRef15 } from "react";
11097
11225
  function useInitialized(check) {
11098
- const initializedRef = useRef14(check);
11226
+ const initializedRef = useRef15(check);
11099
11227
  if (check) {
11100
11228
  initializedRef.current = true;
11101
11229
  }
@@ -11161,7 +11289,7 @@ var Mask = (p) => {
11161
11289
  const {
11162
11290
  locale: locale2
11163
11291
  } = useConfig();
11164
- const ref = useRef15(null);
11292
+ const ref = useRef16(null);
11165
11293
  useLockScroll(ref, props.visible && props.disableBodyScroll);
11166
11294
  const background = useMemo11(() => {
11167
11295
  var _a;
@@ -13670,7 +13798,7 @@ var Popup = (p) => {
13670
13798
  const props = mergeProps(defaultProps2, componentConfig, p);
13671
13799
  const bodyCls = (0, import_classnames2.default)(`${classPrefix2}-body`, props.bodyClassName, `${classPrefix2}-body-position-${props.position}`);
13672
13800
  const [active, setActive] = useState15(props.visible);
13673
- const ref = useRef16(null);
13801
+ const ref = useRef17(null);
13674
13802
  useLockScroll(ref, props.disableBodyScroll && active ? "strict" : false);
13675
13803
  useIsomorphicLayoutEffect_default(() => {
13676
13804
  if (props.visible) {
@@ -13788,7 +13916,7 @@ var SafeArea = (props) => {
13788
13916
  var safe_area_default = SafeArea;
13789
13917
 
13790
13918
  // node_modules/antd-mobile/es/utils/render-imperatively.js
13791
- import React35, { useEffect as useEffect16, useImperativeHandle, useRef as useRef17, useState as useState16 } from "react";
13919
+ import React35, { useEffect as useEffect16, useImperativeHandle, useRef as useRef18, useState as useState16 } from "react";
13792
13920
 
13793
13921
  // node_modules/rc-util/es/warning.js
13794
13922
  var warned = {};
@@ -14293,9 +14421,9 @@ function renderToBody(element) {
14293
14421
  function renderImperatively(element) {
14294
14422
  const Wrapper2 = React35.forwardRef((_, ref) => {
14295
14423
  const [visible, setVisible] = useState16(false);
14296
- const closedRef = useRef17(false);
14424
+ const closedRef = useRef18(false);
14297
14425
  const [elementToRender, setElementToRender] = useState16(element);
14298
- const keyRef = useRef17(0);
14426
+ const keyRef = useRef18(0);
14299
14427
  useEffect16(() => {
14300
14428
  if (!closedRef.current) {
14301
14429
  setVisible(true);
@@ -14455,7 +14583,7 @@ var auto_center_default = AutoCenter;
14455
14583
  import React43 from "react";
14456
14584
 
14457
14585
  // node_modules/antd-mobile/es/components/image/image.js
14458
- import React41, { useEffect as useEffect18, useRef as useRef19, useState as useState17 } from "react";
14586
+ import React41, { useEffect as useEffect18, useRef as useRef20, useState as useState17 } from "react";
14459
14587
 
14460
14588
  // packages/sdk/src/shims/staged-components.tsx
14461
14589
  import { jsx as jsx8 } from "react/jsx-runtime";
@@ -14505,9 +14633,9 @@ var ImageIcon = () => React39.createElement("svg", {
14505
14633
  }));
14506
14634
 
14507
14635
  // node_modules/antd-mobile/es/components/image/lazy-detector.js
14508
- import React40, { useEffect as useEffect17, useRef as useRef18 } from "react";
14636
+ import React40, { useEffect as useEffect17, useRef as useRef19 } from "react";
14509
14637
  var LazyDetector = (props) => {
14510
- const ref = useRef18(null);
14638
+ const ref = useRef19(null);
14511
14639
  const [inViewport] = useInViewport_default(ref);
14512
14640
  useEffect17(() => {
14513
14641
  if (inViewport) {
@@ -14536,8 +14664,8 @@ var Image2 = staged((p) => {
14536
14664
  const props = mergeProps(defaultProps4, p);
14537
14665
  const [loaded, setLoaded] = useState17(false);
14538
14666
  const [failed, setFailed] = useState17(false);
14539
- const ref = useRef19(null);
14540
- const imgRef = useRef19(null);
14667
+ const ref = useRef20(null);
14668
+ const imgRef = useRef20(null);
14541
14669
  let src = props.src;
14542
14670
  let srcSet = props.srcSet;
14543
14671
  const [initialized, setInitialized] = useState17(!props.lazy);
@@ -14719,7 +14847,7 @@ var badge_default = attachPropertiesToComponent(Badge, {
14719
14847
 
14720
14848
  // node_modules/antd-mobile/es/components/button/button.js
14721
14849
  var import_classnames7 = __toESM(require_classnames());
14722
- import React46, { forwardRef as forwardRef2, useImperativeHandle as useImperativeHandle2, useRef as useRef20, useState as useState18 } from "react";
14850
+ import React46, { forwardRef as forwardRef2, useImperativeHandle as useImperativeHandle2, useRef as useRef21, useState as useState18 } from "react";
14723
14851
 
14724
14852
  // node_modules/antd-mobile/es/components/dot-loading/dot-loading.js
14725
14853
  import React45, { memo as memo2 } from "react";
@@ -14806,7 +14934,7 @@ var defaultProps7 = {
14806
14934
  var Button2 = forwardRef2((p, ref) => {
14807
14935
  const props = mergeProps(defaultProps7, p);
14808
14936
  const [innerLoading, setInnerLoading] = useState18(false);
14809
- const nativeButtonRef = useRef20(null);
14937
+ const nativeButtonRef = useRef21(null);
14810
14938
  const loading = props.loading === "auto" ? innerLoading : props.loading;
14811
14939
  const disabled = props.disabled || loading;
14812
14940
  useImperativeHandle2(ref, () => ({
@@ -14933,7 +15061,7 @@ function replaceMessage(template, kv) {
14933
15061
  }
14934
15062
 
14935
15063
  // node_modules/antd-mobile/es/utils/use-props-value.js
14936
- import { useRef as useRef21 } from "react";
15064
+ import { useRef as useRef22 } from "react";
14937
15065
  function usePropsValue(options) {
14938
15066
  const {
14939
15067
  value,
@@ -14941,7 +15069,7 @@ function usePropsValue(options) {
14941
15069
  onChange
14942
15070
  } = options;
14943
15071
  const update3 = useUpdate_default();
14944
- const stateRef = useRef21(value !== void 0 ? value : defaultValue);
15072
+ const stateRef = useRef22(value !== void 0 ? value : defaultValue);
14945
15073
  if (value !== void 0) {
14946
15074
  stateRef.current = value;
14947
15075
  }
@@ -15247,7 +15375,7 @@ var calendar_default = Calendar;
15247
15375
 
15248
15376
  // node_modules/antd-mobile/es/components/calendar-picker/calendar-picker.js
15249
15377
  var import_classnames11 = __toESM(require_classnames());
15250
- import React56, { forwardRef as forwardRef5, useRef as useRef28 } from "react";
15378
+ import React56, { forwardRef as forwardRef5, useRef as useRef29 } from "react";
15251
15379
 
15252
15380
  // node_modules/antd-mobile/es/components/calendar-picker-view/calendar-picker-view.js
15253
15381
  var import_classnames9 = __toESM(require_classnames());
@@ -15261,7 +15389,7 @@ var isSameOrBefore_default = (function(o, c) {
15261
15389
  });
15262
15390
 
15263
15391
  // node_modules/antd-mobile/es/components/calendar-picker-view/calendar-picker-view.js
15264
- import React54, { forwardRef as forwardRef4, useContext as useContext7, useEffect as useEffect23, useImperativeHandle as useImperativeHandle4, useMemo as useMemo14, useRef as useRef27, useState as useState21 } from "react";
15392
+ import React54, { forwardRef as forwardRef4, useContext as useContext7, useEffect as useEffect23, useImperativeHandle as useImperativeHandle4, useMemo as useMemo14, useRef as useRef28, useState as useState21 } from "react";
15265
15393
 
15266
15394
  // node_modules/antd-mobile/es/components/calendar-picker-view/convert.js
15267
15395
  import dayjs6 from "dayjs";
@@ -15609,9 +15737,9 @@ function merge() {
15609
15737
  }
15610
15738
 
15611
15739
  // node_modules/antd-mobile/es/components/calendar-picker-view/useSyncScroll.js
15612
- import { useEffect as useEffect22, useRef as useRef26 } from "react";
15740
+ import { useEffect as useEffect22, useRef as useRef27 } from "react";
15613
15741
  function useSyncScroll(current, visible, bodyRef) {
15614
- const rafRef = useRef26();
15742
+ const rafRef = useRef27();
15615
15743
  const clean = () => {
15616
15744
  if (rafRef.current) {
15617
15745
  cancelAnimationFrame(rafRef.current);
@@ -15657,7 +15785,7 @@ var defaultProps9 = {
15657
15785
  };
15658
15786
  var CalendarPickerView = forwardRef4((p, ref) => {
15659
15787
  var _a;
15660
- const bodyRef = useRef27(null);
15788
+ const bodyRef = useRef28(null);
15661
15789
  const today = dayjs7();
15662
15790
  const props = mergeProps(defaultProps9, p);
15663
15791
  const {
@@ -15919,7 +16047,7 @@ var CalendarPicker = forwardRef5((p, ref) => {
15919
16047
  const {
15920
16048
  locale: locale2
15921
16049
  } = useConfig();
15922
- const calendarRef = ref !== null && ref !== void 0 ? ref : useRef28(null);
16050
+ const calendarRef = ref !== null && ref !== void 0 ? ref : useRef29(null);
15923
16051
  const {
15924
16052
  visible,
15925
16053
  confirmText,
@@ -15987,7 +16115,7 @@ var calendar_picker_default = CalendarPicker;
15987
16115
 
15988
16116
  // node_modules/antd-mobile/es/components/capsule-tabs/capsule-tabs.js
15989
16117
  var import_classnames13 = __toESM(require_classnames());
15990
- import React59, { isValidElement as isValidElement2, useRef as useRef30 } from "react";
16118
+ import React59, { isValidElement as isValidElement2, useRef as useRef31 } from "react";
15991
16119
 
15992
16120
  // node_modules/antd-mobile/es/utils/use-resize-effect.js
15993
16121
  function useResizeEffect(effect, targetRef) {
@@ -16103,10 +16231,10 @@ var useTabListScroll = (targetRef, activeIndex) => {
16103
16231
 
16104
16232
  // node_modules/antd-mobile/es/components/scroll-mask/scroll-mask.js
16105
16233
  var import_classnames12 = __toESM(require_classnames());
16106
- import React57, { useRef as useRef29, useEffect as useEffect25 } from "react";
16234
+ import React57, { useRef as useRef30, useEffect as useEffect25 } from "react";
16107
16235
  var classPrefix15 = `adm-scroll-mask`;
16108
16236
  var ScrollMask = (props) => {
16109
- const maskRef = useRef29(null);
16237
+ const maskRef = useRef30(null);
16110
16238
  const [{
16111
16239
  leftMaskOpacity,
16112
16240
  rightMaskOpacity
@@ -16186,8 +16314,8 @@ var classPrefix16 = `adm-capsule-tabs`;
16186
16314
  var CapsuleTab = () => null;
16187
16315
  var CapsuleTabs = (props) => {
16188
16316
  var _a;
16189
- const tabListContainerRef = useRef30(null);
16190
- const rootRef = useRef30(null);
16317
+ const tabListContainerRef = useRef31(null);
16318
+ const rootRef = useRef31(null);
16191
16319
  const keyToIndexRecord = {};
16192
16320
  let firstActiveKey = null;
16193
16321
  const panes = [];
@@ -16321,7 +16449,7 @@ import React64, { useState as useState23, useEffect as useEffect27, forwardRef a
16321
16449
  import React63, { memo as memo5, useCallback as useCallback12, useEffect as useEffect26, useState as useState22 } from "react";
16322
16450
 
16323
16451
  // node_modules/antd-mobile/es/components/picker-view/wheel.js
16324
- import React61, { memo as memo3, useRef as useRef31 } from "react";
16452
+ import React61, { memo as memo3, useRef as useRef32 } from "react";
16325
16453
 
16326
16454
  // node_modules/antd-mobile/es/utils/rubberband.js
16327
16455
  function rubberband2(distance, dimension, constant) {
@@ -16383,10 +16511,10 @@ var Wheel = memo3((props) => {
16383
16511
  mass: 0.8
16384
16512
  }
16385
16513
  }));
16386
- const draggingRef = useRef31(false);
16387
- const rootRef = useRef31(null);
16388
- const itemHeightMeasureRef = useRef31(null);
16389
- const itemHeight = useRef31(34);
16514
+ const draggingRef = useRef32(false);
16515
+ const rootRef = useRef32(null);
16516
+ const itemHeightMeasureRef = useRef32(null);
16517
+ const itemHeight = useRef32(34);
16390
16518
  useIsomorphicLayoutEffect_default(() => {
16391
16519
  const itemHeightMeasure = itemHeightMeasureRef.current;
16392
16520
  if (!itemHeightMeasure) return;
@@ -17086,7 +17214,7 @@ import React75, { useState as useState26, useEffect as useEffect31, useMemo as u
17086
17214
 
17087
17215
  // node_modules/antd-mobile/es/components/tabs/tabs.js
17088
17216
  var import_classnames17 = __toESM(require_classnames());
17089
- import React69, { isValidElement as isValidElement3, useEffect as useEffect30, useRef as useRef32 } from "react";
17217
+ import React69, { isValidElement as isValidElement3, useEffect as useEffect30, useRef as useRef33 } from "react";
17090
17218
  var classPrefix22 = `adm-tabs`;
17091
17219
  var Tab = () => {
17092
17220
  return null;
@@ -17099,9 +17227,9 @@ var defaultProps15 = {
17099
17227
  var Tabs2 = (p) => {
17100
17228
  var _a;
17101
17229
  const props = mergeProps(defaultProps15, p);
17102
- const tabListContainerRef = useRef32(null);
17103
- const activeLineRef = useRef32(null);
17104
- const tabRefs = useRef32({});
17230
+ const tabListContainerRef = useRef33(null);
17231
+ const activeLineRef = useRef33(null);
17232
+ const tabRefs = useRef33({});
17105
17233
  const keyToIndexRecord = {};
17106
17234
  let firstActiveKey = null;
17107
17235
  const panes = [];
@@ -17125,7 +17253,7 @@ var Tabs2 = (p) => {
17125
17253
  (_a2 = props.onChange) === null || _a2 === void 0 ? void 0 : _a2.call(props, v);
17126
17254
  }
17127
17255
  });
17128
- const manuallyActiveRef = useRef32(null);
17256
+ const manuallyActiveRef = useRef33(null);
17129
17257
  const [{
17130
17258
  x,
17131
17259
  width
@@ -17376,14 +17504,14 @@ import React72 from "react";
17376
17504
 
17377
17505
  // node_modules/antd-mobile/es/components/list/list.js
17378
17506
  var import_classnames18 = __toESM(require_classnames());
17379
- import React70, { forwardRef as forwardRef8, useImperativeHandle as useImperativeHandle6, useRef as useRef33 } from "react";
17507
+ import React70, { forwardRef as forwardRef8, useImperativeHandle as useImperativeHandle6, useRef as useRef34 } from "react";
17380
17508
  var classPrefix23 = `adm-list`;
17381
17509
  var defaultProps16 = {
17382
17510
  mode: "default"
17383
17511
  };
17384
17512
  var List = forwardRef8((p, ref) => {
17385
17513
  const props = mergeProps(defaultProps16, p);
17386
- const nativeElementRef = useRef33(null);
17514
+ const nativeElementRef = useRef34(null);
17387
17515
  useImperativeHandle6(ref, () => ({
17388
17516
  get nativeElement() {
17389
17517
  return nativeElementRef.current;
@@ -17997,7 +18125,7 @@ var cascader_default = attachPropertiesToComponent(Cascader, {
17997
18125
 
17998
18126
  // node_modules/antd-mobile/es/components/center-popup/center-popup.js
17999
18127
  var import_classnames23 = __toESM(require_classnames());
18000
- import React78, { useRef as useRef34, useState as useState29 } from "react";
18128
+ import React78, { useRef as useRef35, useState as useState29 } from "react";
18001
18129
  var classPrefix30 = "adm-center-popup";
18002
18130
  var defaultProps20 = Object.assign(Object.assign({}, defaultPopupBaseProps), {
18003
18131
  getContainer: null
@@ -18034,7 +18162,7 @@ var CenterPopup = (props) => {
18034
18162
  setActive(true);
18035
18163
  }
18036
18164
  }, [mergedProps.visible]);
18037
- const ref = useRef34(null);
18165
+ const ref = useRef35(null);
18038
18166
  useLockScroll(ref, mergedProps.disableBodyScroll && active);
18039
18167
  const maskVisible = useInnerVisible(active && mergedProps.visible);
18040
18168
  const body = React78.createElement("div", {
@@ -18149,9 +18277,9 @@ var IndeterminateIcon = memo8((props) => {
18149
18277
  });
18150
18278
 
18151
18279
  // node_modules/antd-mobile/es/components/checkbox/native-input.js
18152
- import React82, { useEffect as useEffect34, useRef as useRef35 } from "react";
18280
+ import React82, { useEffect as useEffect34, useRef as useRef36 } from "react";
18153
18281
  var NativeInput = (props) => {
18154
- const inputRef = useRef35(null);
18282
+ const inputRef = useRef36(null);
18155
18283
  const handleClick = useMemoizedFn_default((e2) => {
18156
18284
  e2.stopPropagation();
18157
18285
  e2.stopImmediatePropagation();
@@ -18265,7 +18393,7 @@ var checkbox_default = attachPropertiesToComponent(Checkbox, {
18265
18393
 
18266
18394
  // node_modules/antd-mobile/es/components/collapse/collapse.js
18267
18395
  var import_classnames25 = __toESM(require_classnames());
18268
- import React84, { isValidElement as isValidElement4, useRef as useRef36 } from "react";
18396
+ import React84, { isValidElement as isValidElement4, useRef as useRef37 } from "react";
18269
18397
  var classPrefix32 = `adm-collapse`;
18270
18398
  var CollapsePanel = () => {
18271
18399
  return null;
@@ -18274,7 +18402,7 @@ var CollapsePanelContent = (props) => {
18274
18402
  const {
18275
18403
  visible
18276
18404
  } = props;
18277
- const innerRef = useRef36(null);
18405
+ const innerRef = useRef37(null);
18278
18406
  const shouldRender = useShouldRender(visible, props.forceRender, props.destroyOnClose);
18279
18407
  const [{
18280
18408
  height
@@ -19246,7 +19374,7 @@ var dialog_default = attachPropertiesToComponent(Dialog, {
19246
19374
 
19247
19375
  // node_modules/antd-mobile/es/components/dropdown/dropdown.js
19248
19376
  var import_classnames29 = __toESM(require_classnames());
19249
- import React93, { cloneElement, forwardRef as forwardRef12, isValidElement as isValidElement5, useEffect as useEffect36, useImperativeHandle as useImperativeHandle9, useRef as useRef37, useState as useState31 } from "react";
19377
+ import React93, { cloneElement, forwardRef as forwardRef12, isValidElement as isValidElement5, useEffect as useEffect36, useImperativeHandle as useImperativeHandle9, useRef as useRef38, useState as useState31 } from "react";
19250
19378
 
19251
19379
  // node_modules/antd-mobile/es/components/dropdown/context.js
19252
19380
  import React91 from "react";
@@ -19320,14 +19448,14 @@ var Dropdown = forwardRef12((props, ref) => {
19320
19448
  defaultValue: mergedProps.defaultActiveKey,
19321
19449
  onChange: mergedProps.onChange
19322
19450
  });
19323
- const navRef = useRef37(null);
19324
- const contentRef = useRef37(null);
19451
+ const navRef = useRef38(null);
19452
+ const contentRef = useRef38(null);
19325
19453
  useClickAway(() => {
19326
19454
  if (!mergedProps.closeOnClickAway) return;
19327
19455
  setValue(null);
19328
19456
  }, [navRef, contentRef]);
19329
19457
  const [top, setTop] = useState31();
19330
- const containerRef = useRef37(null);
19458
+ const containerRef = useRef38(null);
19331
19459
  useEffect36(() => {
19332
19460
  const container = containerRef.current;
19333
19461
  if (!container) return;
@@ -20272,7 +20400,7 @@ var ErrorBlock = createErrorBlock(imageRecord);
20272
20400
  var error_block_default = ErrorBlock;
20273
20401
 
20274
20402
  // node_modules/antd-mobile/es/components/floating-bubble/floating-bubble.js
20275
- import React103, { useRef as useRef38, useEffect as useEffect37, useState as useState32 } from "react";
20403
+ import React103, { useRef as useRef39, useEffect as useEffect37, useState as useState32 } from "react";
20276
20404
  var classPrefix38 = `adm-floating-bubble`;
20277
20405
  var defaultProps30 = {
20278
20406
  axis: "y",
@@ -20283,8 +20411,8 @@ var defaultProps30 = {
20283
20411
  };
20284
20412
  var FloatingBubble = (p) => {
20285
20413
  const props = mergeProps(defaultProps30, p);
20286
- const boundaryRef = useRef38(null);
20287
- const buttonRef = useRef38(null);
20414
+ const boundaryRef = useRef39(null);
20415
+ const buttonRef = useRef39(null);
20288
20416
  const [innerValue, setInnerValue] = useState32(props.offset === void 0 ? props.defaultOffset : props.offset);
20289
20417
  useEffect37(() => {
20290
20418
  if (props.offset === void 0) return;
@@ -20379,7 +20507,7 @@ var floating_bubble_default = FloatingBubble;
20379
20507
 
20380
20508
  // node_modules/antd-mobile/es/components/floating-panel/floating-panel.js
20381
20509
  var import_classnames32 = __toESM(require_classnames());
20382
- import React104, { forwardRef as forwardRef13, useImperativeHandle as useImperativeHandle10, useRef as useRef39, useState as useState33 } from "react";
20510
+ import React104, { forwardRef as forwardRef13, useImperativeHandle as useImperativeHandle10, useRef as useRef40, useState as useState33 } from "react";
20383
20511
 
20384
20512
  // node_modules/antd-mobile/es/utils/nearest.js
20385
20513
  function nearest(arr, target) {
@@ -20403,11 +20531,11 @@ var FloatingPanel = forwardRef13((p, ref) => {
20403
20531
  const maxHeight = (_a = anchors[anchors.length - 1]) !== null && _a !== void 0 ? _a : window.innerHeight;
20404
20532
  const isBottomPlacement = placement !== "top";
20405
20533
  const possibles = isBottomPlacement ? anchors.map((x) => -x) : anchors;
20406
- const elementRef = useRef39(null);
20407
- const headerRef = useRef39(null);
20408
- const contentRef = useRef39(null);
20534
+ const elementRef = useRef40(null);
20535
+ const headerRef = useRef40(null);
20536
+ const contentRef = useRef40(null);
20409
20537
  const [pulling, setPulling] = useState33(false);
20410
- const pullingRef = useRef39(false);
20538
+ const pullingRef = useRef40(false);
20411
20539
  const bounds = {
20412
20540
  top: Math.min(...possibles),
20413
20541
  bottom: Math.max(...possibles)
@@ -23803,7 +23931,7 @@ var Form3 = function Form4(_ref, ref) {
23803
23931
  var Form_default = Form3;
23804
23932
 
23805
23933
  // node_modules/rc-field-form/es/useWatch.js
23806
- import { useContext as useContext14, useEffect as useEffect39, useMemo as useMemo24, useRef as useRef44, useState as useState35 } from "react";
23934
+ import { useContext as useContext14, useEffect as useEffect39, useMemo as useMemo24, useRef as useRef45, useState as useState35 } from "react";
23807
23935
  function stringify(value) {
23808
23936
  try {
23809
23937
  return JSON.stringify(value);
@@ -23813,7 +23941,7 @@ function stringify(value) {
23813
23941
  }
23814
23942
  var useWatchWarning = true ? function(namePath) {
23815
23943
  var fullyStr = namePath.join("__RC_FIELD_FORM_SPLIT__");
23816
- var nameStrRef = useRef44(fullyStr);
23944
+ var nameStrRef = useRef45(fullyStr);
23817
23945
  warning_default(nameStrRef.current === fullyStr, "`useWatch` is not support dynamic `namePath`. Please provide static instead.");
23818
23946
  } : function() {
23819
23947
  };
@@ -23830,7 +23958,7 @@ function useWatch() {
23830
23958
  var valueStr = useMemo24(function() {
23831
23959
  return stringify(value);
23832
23960
  }, [value]);
23833
- var valueStrRef = useRef44(valueStr);
23961
+ var valueStrRef = useRef45(valueStr);
23834
23962
  valueStrRef.current = valueStr;
23835
23963
  var fieldContext = useContext14(FieldContext_default);
23836
23964
  var formInstance = form || fieldContext;
@@ -23839,7 +23967,7 @@ function useWatch() {
23839
23967
  warning_default(args.length === 2 ? form ? isValidForm : true : isValidForm, "useWatch requires a form instance since it can not auto detect from context.");
23840
23968
  }
23841
23969
  var namePath = getNamePath(dependencies);
23842
- var namePathRef = useRef44(namePath);
23970
+ var namePathRef = useRef45(namePath);
23843
23971
  namePathRef.current = namePath;
23844
23972
  useWatchWarning(namePath);
23845
23973
  useEffect39(
@@ -24009,7 +24137,7 @@ var Form5 = forwardRef15((p, ref) => {
24009
24137
 
24010
24138
  // node_modules/antd-mobile/es/components/form/form-item.js
24011
24139
  var import_classnames36 = __toESM(require_classnames());
24012
- import React123, { useCallback as useCallback17, useContext as useContext15, useRef as useRef48, useState as useState37 } from "react";
24140
+ import React123, { useCallback as useCallback17, useContext as useContext15, useRef as useRef49, useState as useState37 } from "react";
24013
24141
 
24014
24142
  // node_modules/antd-mobile/es/utils/undefined-fallback.js
24015
24143
  function undefinedFallback(...items) {
@@ -24022,7 +24150,7 @@ function undefinedFallback(...items) {
24022
24150
 
24023
24151
  // node_modules/antd-mobile/es/components/popover/popover-menu.js
24024
24152
  var import_classnames35 = __toESM(require_classnames());
24025
- import React122, { forwardRef as forwardRef18, useCallback as useCallback16, useImperativeHandle as useImperativeHandle14, useMemo as useMemo26, useRef as useRef47 } from "react";
24153
+ import React122, { forwardRef as forwardRef18, useCallback as useCallback16, useImperativeHandle as useImperativeHandle14, useMemo as useMemo26, useRef as useRef48 } from "react";
24026
24154
 
24027
24155
  // node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
24028
24156
  var sides = ["top", "right", "bottom", "left"];
@@ -25564,7 +25692,7 @@ var computePosition2 = (reference, floating, options) => {
25564
25692
 
25565
25693
  // node_modules/antd-mobile/es/components/popover/popover.js
25566
25694
  var import_classnames34 = __toESM(require_classnames());
25567
- import React121, { forwardRef as forwardRef17, useEffect as useEffect40, useImperativeHandle as useImperativeHandle13, useRef as useRef46, useState as useState36 } from "react";
25695
+ import React121, { forwardRef as forwardRef17, useEffect as useEffect40, useImperativeHandle as useImperativeHandle13, useRef as useRef47, useState as useState36 } from "react";
25568
25696
 
25569
25697
  // node_modules/antd-mobile/es/utils/convert-px.js
25570
25698
  var tenPxTester = null;
@@ -25716,9 +25844,9 @@ var Popover = forwardRef17((p, ref) => {
25716
25844
  hide: () => setVisible(false),
25717
25845
  visible
25718
25846
  }), [visible]);
25719
- const targetRef = useRef46(null);
25720
- const floatingRef = useRef46(null);
25721
- const arrowRef = useRef46(null);
25847
+ const targetRef = useRef47(null);
25848
+ const floatingRef = useRef47(null);
25849
+ const arrowRef = useRef47(null);
25722
25850
  const floating = withStopPropagation(props.stopPropagation, withNativeProps(props, React121.createElement("div", {
25723
25851
  className: (0, import_classnames34.default)(classPrefix41, `${classPrefix41}-${props.mode}`, {
25724
25852
  [`${classPrefix41}-hidden`]: !visible
@@ -25827,7 +25955,7 @@ var Popover = forwardRef17((p, ref) => {
25827
25955
  // node_modules/antd-mobile/es/components/popover/popover-menu.js
25828
25956
  var classPrefix42 = `adm-popover-menu`;
25829
25957
  var PopoverMenu = forwardRef18((props, ref) => {
25830
- const innerRef = useRef47(null);
25958
+ const innerRef = useRef48(null);
25831
25959
  useImperativeHandle14(ref, () => innerRef.current, []);
25832
25960
  const onClick = useCallback16((e2) => {
25833
25961
  var _a;
@@ -26035,8 +26163,8 @@ var FormItem = (props) => {
26035
26163
  validateTrigger: contextValidateTrigger
26036
26164
  } = useContext15(FieldContext_default);
26037
26165
  const mergedValidateTrigger = undefinedFallback(validateTrigger, contextValidateTrigger, trigger);
26038
- const widgetRef = useRef48(null);
26039
- const updateRef2 = useRef48(0);
26166
+ const widgetRef = useRef49(null);
26167
+ const updateRef2 = useRef49(0);
26040
26168
  updateRef2.current += 1;
26041
26169
  const [subMetas, setSubMetas] = useState37({});
26042
26170
  const onSubMetaChange = useCallback17((subMeta, namePath) => {
@@ -26263,14 +26391,14 @@ var grid_default = attachPropertiesToComponent(Grid, {
26263
26391
  });
26264
26392
 
26265
26393
  // node_modules/antd-mobile/es/components/image-uploader/image-uploader.js
26266
- import React132, { forwardRef as forwardRef21, useImperativeHandle as useImperativeHandle17, useRef as useRef52, useState as useState39 } from "react";
26394
+ import React132, { forwardRef as forwardRef21, useImperativeHandle as useImperativeHandle17, useRef as useRef53, useState as useState39 } from "react";
26267
26395
 
26268
26396
  // node_modules/antd-mobile/es/components/image-viewer/image-viewer.js
26269
26397
  var import_classnames37 = __toESM(require_classnames());
26270
- import React128, { forwardRef as forwardRef20, useCallback as useCallback18, useImperativeHandle as useImperativeHandle16, useRef as useRef51, useState as useState38 } from "react";
26398
+ import React128, { forwardRef as forwardRef20, useCallback as useCallback18, useImperativeHandle as useImperativeHandle16, useRef as useRef52, useState as useState38 } from "react";
26271
26399
 
26272
26400
  // node_modules/antd-mobile/es/components/image-viewer/slide.js
26273
- import React126, { useRef as useRef49 } from "react";
26401
+ import React126, { useRef as useRef50 } from "react";
26274
26402
 
26275
26403
  // node_modules/antd-mobile/es/utils/matrix.js
26276
26404
  var create = () => {
@@ -26310,9 +26438,9 @@ var Slide = (props) => {
26310
26438
  imageRender,
26311
26439
  index: index2
26312
26440
  } = props;
26313
- const initialMartix = useRef49([]);
26314
- const controlRef = useRef49(null);
26315
- const imgRef = useRef49(null);
26441
+ const initialMartix = useRef50([]);
26442
+ const controlRef = useRef50(null);
26443
+ const imgRef = useRef50(null);
26316
26444
  const [{
26317
26445
  matrix
26318
26446
  }, api] = useSpring(() => ({
@@ -26323,7 +26451,7 @@ var Slide = (props) => {
26323
26451
  }));
26324
26452
  const controlSize = useSize_default(controlRef);
26325
26453
  const imgSize = useSize_default(imgRef);
26326
- const pinchLockRef = useRef49(false);
26454
+ const pinchLockRef = useRef50(false);
26327
26455
  const getMinAndMax = (nextMatrix) => {
26328
26456
  if (!controlSize || !imgSize) return {
26329
26457
  x: {
@@ -26531,7 +26659,7 @@ var Slide = (props) => {
26531
26659
  };
26532
26660
 
26533
26661
  // node_modules/antd-mobile/es/components/image-viewer/slides.js
26534
- import React127, { forwardRef as forwardRef19, useImperativeHandle as useImperativeHandle15, useRef as useRef50 } from "react";
26662
+ import React127, { forwardRef as forwardRef19, useImperativeHandle as useImperativeHandle15, useRef as useRef51 } from "react";
26535
26663
  var classPrefix46 = `adm-image-viewer`;
26536
26664
  var Slides = forwardRef19((props, ref) => {
26537
26665
  const slideWidth = window.innerWidth + convertPx(16);
@@ -26557,7 +26685,7 @@ var Slides = forwardRef19((props, ref) => {
26557
26685
  useImperativeHandle15(ref, () => ({
26558
26686
  swipeTo
26559
26687
  }));
26560
- const dragLockRef = useRef50(false);
26688
+ const dragLockRef = useRef51(false);
26561
26689
  const bind = useDrag((state) => {
26562
26690
  if (dragLockRef.current) return;
26563
26691
  const [offsetX] = state.offset;
@@ -26655,7 +26783,7 @@ var MultiImageViewer = forwardRef20((p, ref) => {
26655
26783
  var _a, _b, _c, _d;
26656
26784
  const props = mergeProps(multiDefaultProps, p);
26657
26785
  const [index2, setIndex] = useState38(props.defaultIndex);
26658
- const slidesRef = useRef51(null);
26786
+ const slidesRef = useRef52(null);
26659
26787
  useImperativeHandle16(ref, () => ({
26660
26788
  swipeTo: (index3, immediate) => {
26661
26789
  var _a2;
@@ -26856,11 +26984,11 @@ var ImageUploader = forwardRef21((p, ref) => {
26856
26984
  } = props;
26857
26985
  const [value, setValue] = usePropsValue(props);
26858
26986
  const [tasks, setTasks] = useState39([]);
26859
- const containerRef = useRef52(null);
26987
+ const containerRef = useRef53(null);
26860
26988
  const containerSize = useSize_default(containerRef);
26861
- const gapMeasureRef = useRef52(null);
26989
+ const gapMeasureRef = useRef53(null);
26862
26990
  const [cellSize, setCellSize] = useState39(80);
26863
- const inputRef = useRef52(null);
26991
+ const inputRef = useRef53(null);
26864
26992
  useIsomorphicLayoutEffect_default(() => {
26865
26993
  const gapMeasure = gapMeasureRef.current;
26866
26994
  if (columns && containerSize && gapMeasure) {
@@ -26885,7 +27013,7 @@ var ImageUploader = forwardRef21((p, ref) => {
26885
27013
  status: item.status
26886
27014
  })));
26887
27015
  }, [tasks]);
26888
- const idCountRef = useRef52(0);
27016
+ const idCountRef = useRef53(0);
26889
27017
  const {
26890
27018
  maxCount,
26891
27019
  onPreview,
@@ -26970,7 +27098,7 @@ var ImageUploader = forwardRef21((p, ref) => {
26970
27098
  setValue((prev) => prev.concat(newVal).filter(Boolean));
26971
27099
  });
26972
27100
  }
26973
- const imageViewerHandlerRef = useRef52(null);
27101
+ const imageViewerHandlerRef = useRef53(null);
26974
27102
  function previewImage(index2) {
26975
27103
  imageViewerHandlerRef.current = image_viewer_default.Multi.show({
26976
27104
  images: value.map((fileItem) => fileItem.url),
@@ -27076,7 +27204,7 @@ var Panel = () => null;
27076
27204
 
27077
27205
  // node_modules/antd-mobile/es/components/index-bar/index-bar.js
27078
27206
  var import_classnames41 = __toESM(require_classnames());
27079
- import React134, { forwardRef as forwardRef22, useRef as useRef53, useState as useState41, useImperativeHandle as useImperativeHandle18 } from "react";
27207
+ import React134, { forwardRef as forwardRef22, useRef as useRef54, useState as useState41, useImperativeHandle as useImperativeHandle18 } from "react";
27080
27208
 
27081
27209
  // node_modules/antd-mobile/es/components/index-bar/sidebar.js
27082
27210
  var import_classnames40 = __toESM(require_classnames());
@@ -27152,7 +27280,7 @@ var defaultProps37 = {
27152
27280
  var IndexBar = forwardRef22((p, ref) => {
27153
27281
  const props = mergeProps(defaultProps37, p);
27154
27282
  const titleHeight = convertPx(35);
27155
- const bodyRef = useRef53(null);
27283
+ const bodyRef = useRef54(null);
27156
27284
  const indexItems = [];
27157
27285
  const panels = [];
27158
27286
  traverseReactNode(props.children, (child) => {
@@ -27245,7 +27373,7 @@ var index_bar_default = attachPropertiesToComponent(IndexBar, {
27245
27373
  });
27246
27374
 
27247
27375
  // node_modules/antd-mobile/es/components/infinite-scroll/infinite-scroll.js
27248
- import React135, { useEffect as useEffect42, useRef as useRef54, useState as useState42 } from "react";
27376
+ import React135, { useEffect as useEffect42, useRef as useRef55, useState as useState42 } from "react";
27249
27377
  function isWindow(element) {
27250
27378
  return element === window;
27251
27379
  }
@@ -27269,9 +27397,9 @@ var InfiniteScroll = (p) => {
27269
27397
  throw e2;
27270
27398
  }
27271
27399
  }));
27272
- const elementRef = useRef54(null);
27400
+ const elementRef = useRef55(null);
27273
27401
  const [flag, setFlag] = useState42({});
27274
- const nextFlagRef = useRef54(flag);
27402
+ const nextFlagRef = useRef55(flag);
27275
27403
  const [scrollParent, setScrollParent] = useState42();
27276
27404
  const {
27277
27405
  run: check
@@ -27355,7 +27483,7 @@ var infinite_scroll_default = InfiniteScroll;
27355
27483
 
27356
27484
  // node_modules/antd-mobile/es/components/input/input.js
27357
27485
  var import_classnames42 = __toESM(require_classnames());
27358
- import React136, { forwardRef as forwardRef23, useImperativeHandle as useImperativeHandle19, useRef as useRef55, useState as useState43 } from "react";
27486
+ import React136, { forwardRef as forwardRef23, useImperativeHandle as useImperativeHandle19, useRef as useRef56, useState as useState43 } from "react";
27359
27487
 
27360
27488
  // node_modules/antd-mobile/es/components/input/useInputHandleKeyDown.js
27361
27489
  function useInputHandleKeyDown({
@@ -27386,8 +27514,8 @@ var Input3 = forwardRef23((props, ref) => {
27386
27514
  const mergedProps = mergeProps(defaultProps39, componentConfig, props);
27387
27515
  const [value, setValue] = usePropsValue(mergedProps);
27388
27516
  const [hasFocus, setHasFocus] = useState43(false);
27389
- const compositionStartRef = useRef55(false);
27390
- const nativeInputRef = useRef55(null);
27517
+ const compositionStartRef = useRef56(false);
27518
+ const nativeInputRef = useRef56(null);
27391
27519
  const handleKeydown = useInputHandleKeyDown({
27392
27520
  onEnterPress: mergedProps.onEnterPress,
27393
27521
  onKeyDown: mergedProps.onKeyDown
@@ -27508,15 +27636,15 @@ var input_default = Input3;
27508
27636
 
27509
27637
  // node_modules/antd-mobile/es/components/jumbo-tabs/jumbo-tabs.js
27510
27638
  var import_classnames43 = __toESM(require_classnames());
27511
- import React137, { isValidElement as isValidElement8, useRef as useRef56 } from "react";
27639
+ import React137, { isValidElement as isValidElement8, useRef as useRef57 } from "react";
27512
27640
  var classPrefix55 = `adm-jumbo-tabs`;
27513
27641
  var JumboTab = () => {
27514
27642
  return null;
27515
27643
  };
27516
27644
  var JumboTabs = (props) => {
27517
27645
  var _a;
27518
- const tabListContainerRef = useRef56(null);
27519
- const rootRef = useRef56(null);
27646
+ const tabListContainerRef = useRef57(null);
27647
+ const rootRef = useRef57(null);
27520
27648
  const keyToIndexRecord = {};
27521
27649
  let firstActiveKey = null;
27522
27650
  const panes = [];
@@ -27832,7 +27960,7 @@ var nav_bar_default = NavBar;
27832
27960
 
27833
27961
  // node_modules/antd-mobile/es/components/notice-bar/notice-bar.js
27834
27962
  var import_classnames47 = __toESM(require_classnames());
27835
- import React142, { memo as memo11, useRef as useRef57, useState as useState44 } from "react";
27963
+ import React142, { memo as memo11, useRef as useRef58, useState as useState44 } from "react";
27836
27964
  var classPrefix57 = `adm-notice-bar`;
27837
27965
  var defaultProps42 = {
27838
27966
  color: "default",
@@ -27851,12 +27979,12 @@ var NoticeBar = memo11((props) => {
27851
27979
  const closeIcon = mergeProp(React142.createElement(CloseOutline_default, {
27852
27980
  className: `${classPrefix57}-close-icon`
27853
27981
  }), componentConfig.closeIcon, props.closeIcon);
27854
- const containerRef = useRef57(null);
27855
- const textRef = useRef57(null);
27982
+ const containerRef = useRef58(null);
27983
+ const textRef = useRef58(null);
27856
27984
  const [visible, setVisible] = useState44(true);
27857
27985
  const speed = mergedProps.speed;
27858
- const delayLockRef = useRef57(true);
27859
- const animatingRef = useRef57(false);
27986
+ const delayLockRef = useRef58(true);
27987
+ const animatingRef = useRef58(false);
27860
27988
  function start2() {
27861
27989
  if (delayLockRef.current || mergedProps.wrap) return;
27862
27990
  const container = containerRef.current;
@@ -27932,7 +28060,7 @@ var notice_bar_default = NoticeBar;
27932
28060
 
27933
28061
  // node_modules/antd-mobile/es/components/number-keyboard/number-keyboard.js
27934
28062
  var import_classnames48 = __toESM(require_classnames());
27935
- import React143, { useMemo as useMemo28, useRef as useRef58 } from "react";
28063
+ import React143, { useMemo as useMemo28, useRef as useRef59 } from "react";
27936
28064
 
27937
28065
  // node_modules/antd-mobile/es/utils/shuffle.js
27938
28066
  function shuffle(array4) {
@@ -27971,7 +28099,7 @@ var NumberKeyboard = (p) => {
27971
28099
  const {
27972
28100
  locale: locale2
27973
28101
  } = useConfig();
27974
- const keyboardRef = useRef58(null);
28102
+ const keyboardRef = useRef59(null);
27975
28103
  const keys2 = useMemo28(() => {
27976
28104
  const defaultKeys = ["1", "2", "3", "4", "5", "6", "7", "8", "9"];
27977
28105
  const keyList = randomOrder ? shuffle(defaultKeys) : defaultKeys;
@@ -27988,8 +28116,8 @@ var NumberKeyboard = (p) => {
27988
28116
  }
27989
28117
  return keyList;
27990
28118
  }, [customKey, confirmText, randomOrder, randomOrder && visible]);
27991
- const timeoutRef = useRef58(-1);
27992
- const intervalRef = useRef58(-1);
28119
+ const timeoutRef = useRef59(-1);
28120
+ const intervalRef = useRef59(-1);
27993
28121
  const onDelete = useMemoizedFn_default(() => {
27994
28122
  var _a;
27995
28123
  (_a = props.onDelete) === null || _a === void 0 ? void 0 : _a.call(props);
@@ -28171,7 +28299,7 @@ var page_indicator_default = PageIndicator;
28171
28299
 
28172
28300
  // node_modules/antd-mobile/es/components/passcode-input/passcode-input.js
28173
28301
  var import_classnames50 = __toESM(require_classnames());
28174
- import React145, { forwardRef as forwardRef24, useEffect as useEffect43, useImperativeHandle as useImperativeHandle20, useRef as useRef59, useState as useState45 } from "react";
28302
+ import React145, { forwardRef as forwardRef24, useEffect as useEffect43, useImperativeHandle as useImperativeHandle20, useRef as useRef60, useState as useState45 } from "react";
28175
28303
  var classPrefix60 = "adm-passcode-input";
28176
28304
  var defaultProps45 = {
28177
28305
  defaultValue: "",
@@ -28190,8 +28318,8 @@ var PasscodeInput = forwardRef24((p, ref) => {
28190
28318
  } = useConfig();
28191
28319
  const [focused, setFocused] = useState45(false);
28192
28320
  const [value, setValue] = usePropsValue(props);
28193
- const rootRef = useRef59(null);
28194
- const nativeInputRef = useRef59(null);
28321
+ const rootRef = useRef60(null);
28322
+ const nativeInputRef = useRef60(null);
28195
28323
  useEffect43(() => {
28196
28324
  var _a;
28197
28325
  if (value.length >= cellLength) {
@@ -28369,7 +28497,7 @@ var ProgressCircle = (p) => {
28369
28497
  var progress_circle_default = ProgressCircle;
28370
28498
 
28371
28499
  // node_modules/antd-mobile/es/components/pull-to-refresh/pull-to-refresh.js
28372
- import React148, { useEffect as useEffect44, useRef as useRef60, useState as useState46 } from "react";
28500
+ import React148, { useEffect as useEffect44, useRef as useRef61, useState as useState46 } from "react";
28373
28501
 
28374
28502
  // node_modules/antd-mobile/es/utils/sleep.js
28375
28503
  var sleep = (time) => new Promise((resolve) => setTimeout(resolve, time));
@@ -28411,8 +28539,8 @@ var PullToRefresh = (p) => {
28411
28539
  clamp: true
28412
28540
  }
28413
28541
  }));
28414
- const elementRef = useRef60(null);
28415
- const pullingRef = useRef60(false);
28542
+ const elementRef = useRef61(null);
28543
+ const pullingRef = useRef61(false);
28416
28544
  useEffect44(() => {
28417
28545
  var _a2;
28418
28546
  (_a2 = elementRef.current) === null || _a2 === void 0 ? void 0 : _a2.addEventListener("touchmove", () => {
@@ -28655,7 +28783,7 @@ var radio_default = attachPropertiesToComponent(Radio, {
28655
28783
 
28656
28784
  // node_modules/antd-mobile/es/components/rate/rate.js
28657
28785
  var import_classnames53 = __toESM(require_classnames());
28658
- import React152, { useRef as useRef61 } from "react";
28786
+ import React152, { useRef as useRef62 } from "react";
28659
28787
 
28660
28788
  // node_modules/antd-mobile/es/components/rate/star.js
28661
28789
  import React151 from "react";
@@ -28687,7 +28815,7 @@ var defaultProps50 = {
28687
28815
  var Rate = (p) => {
28688
28816
  const props = mergeProps(defaultProps50, p);
28689
28817
  const [value, setValue] = usePropsValue(props);
28690
- const containerRef = useRef61(null);
28818
+ const containerRef = useRef62(null);
28691
28819
  const starList = Array(props.count).fill(null);
28692
28820
  function renderStar(v, half) {
28693
28821
  return React152.createElement("div", {
@@ -28895,7 +29023,7 @@ var result_page_default = attachPropertiesToComponent(ResultPage, {
28895
29023
 
28896
29024
  // node_modules/antd-mobile/es/components/search-bar/search-bar.js
28897
29025
  var import_classnames57 = __toESM(require_classnames());
28898
- import React157, { forwardRef as forwardRef25, useImperativeHandle as useImperativeHandle21, useRef as useRef62, useState as useState48 } from "react";
29026
+ import React157, { forwardRef as forwardRef25, useImperativeHandle as useImperativeHandle21, useRef as useRef63, useState as useState48 } from "react";
28899
29027
  var classPrefix69 = `adm-search-bar`;
28900
29028
  var defaultProps53 = {
28901
29029
  clearable: true,
@@ -28915,8 +29043,8 @@ var SearchBar = forwardRef25((props, ref) => {
28915
29043
  const searchIcon = mergeProp(React157.createElement(SearchOutline_default, null), componentConfig.searchIcon, props.icon, props.searchIcon);
28916
29044
  const [value, setValue] = usePropsValue(mergedProps);
28917
29045
  const [hasFocus, setHasFocus] = useState48(false);
28918
- const inputRef = useRef62(null);
28919
- const composingRef = useRef62(false);
29046
+ const inputRef = useRef63(null);
29047
+ const composingRef = useRef63(false);
28920
29048
  useImperativeHandle21(ref, () => ({
28921
29049
  clear: () => {
28922
29050
  var _a;
@@ -29043,7 +29171,7 @@ var import_classnames59 = __toESM(require_classnames());
29043
29171
  // node_modules/rc-motion/es/CSSMotion.js
29044
29172
  var import_classnames58 = __toESM(require_classnames());
29045
29173
  import * as React165 from "react";
29046
- import { useRef as useRef69 } from "react";
29174
+ import { useRef as useRef70 } from "react";
29047
29175
 
29048
29176
  // node_modules/rc-motion/es/context.js
29049
29177
  import * as React158 from "react";
@@ -29087,7 +29215,7 @@ function useSyncState(defaultValue) {
29087
29215
 
29088
29216
  // node_modules/rc-motion/es/hooks/useStatus.js
29089
29217
  import * as React164 from "react";
29090
- import { useEffect as useEffect49, useRef as useRef67 } from "react";
29218
+ import { useEffect as useEffect49, useRef as useRef68 } from "react";
29091
29219
 
29092
29220
  // node_modules/rc-motion/es/interface.js
29093
29221
  var STATUS_NONE = "none";
@@ -29103,7 +29231,7 @@ var STEP_PREPARED = "prepared";
29103
29231
 
29104
29232
  // node_modules/rc-motion/es/hooks/useDomMotionEvents.js
29105
29233
  import * as React161 from "react";
29106
- import { useRef as useRef64 } from "react";
29234
+ import { useRef as useRef65 } from "react";
29107
29235
 
29108
29236
  // node_modules/rc-motion/es/util/motion.js
29109
29237
  function makePrefixMap(styleProp, eventName) {
@@ -29174,7 +29302,7 @@ function getTransitionName(transitionName, transitionType) {
29174
29302
 
29175
29303
  // node_modules/rc-motion/es/hooks/useDomMotionEvents.js
29176
29304
  var useDomMotionEvents_default = (function(onInternalMotionEnd) {
29177
- var cacheElementRef = useRef64();
29305
+ var cacheElementRef = useRef65();
29178
29306
  function removeMotionEvents(element) {
29179
29307
  if (element) {
29180
29308
  element.removeEventListener(transitionEndName, onInternalMotionEnd);
@@ -29340,12 +29468,12 @@ function useStatus(supportMotion, visible, getElement, _ref) {
29340
29468
  var _useSyncState = useSyncState(STATUS_NONE), _useSyncState2 = _slicedToArray(_useSyncState, 2), getStatus = _useSyncState2[0], setStatus = _useSyncState2[1];
29341
29469
  var _useState3 = useSafeState(null), _useState4 = _slicedToArray(_useState3, 2), style2 = _useState4[0], setStyle = _useState4[1];
29342
29470
  var currentStatus = getStatus();
29343
- var mountedRef = useRef67(false);
29344
- var deadlineRef = useRef67(null);
29471
+ var mountedRef = useRef68(false);
29472
+ var deadlineRef = useRef68(null);
29345
29473
  function getDomElement() {
29346
29474
  return getElement();
29347
29475
  }
29348
- var activeRef = useRef67(false);
29476
+ var activeRef = useRef68(false);
29349
29477
  function updateMotionEndStatus() {
29350
29478
  setStatus(STATUS_NONE);
29351
29479
  setStyle(null, true);
@@ -29418,7 +29546,7 @@ function useStatus(supportMotion, visible, getElement, _ref) {
29418
29546
  }), _useStepQueue2 = _slicedToArray(_useStepQueue, 2), startStep = _useStepQueue2[0], step = _useStepQueue2[1];
29419
29547
  var active = isActive(step);
29420
29548
  activeRef.current = active;
29421
- var visibleRef = useRef67(null);
29549
+ var visibleRef = useRef68(null);
29422
29550
  useIsomorphicLayoutEffect_default2(function() {
29423
29551
  if (mountedRef.current && visibleRef.current === visible) {
29424
29552
  return;
@@ -29495,8 +29623,8 @@ function genCSSMotion(config3) {
29495
29623
  var _props$visible = props.visible, visible = _props$visible === void 0 ? true : _props$visible, _props$removeOnLeave = props.removeOnLeave, removeOnLeave = _props$removeOnLeave === void 0 ? true : _props$removeOnLeave, forceRender = props.forceRender, children = props.children, motionName = props.motionName, leavedClassName = props.leavedClassName, eventProps = props.eventProps;
29496
29624
  var _React$useContext = React165.useContext(Context3), contextMotion = _React$useContext.motion;
29497
29625
  var supportMotion = isSupportTransition(props, contextMotion);
29498
- var nodeRef = useRef69();
29499
- var wrapperNodeRef = useRef69();
29626
+ var nodeRef = useRef70();
29627
+ var wrapperNodeRef = useRef70();
29500
29628
  function getDomElement() {
29501
29629
  try {
29502
29630
  return nodeRef.current instanceof HTMLElement ? nodeRef.current : findDOMNode(wrapperNodeRef.current);
@@ -30220,7 +30348,7 @@ var side_bar_default = attachPropertiesToComponent(SideBar, {
30220
30348
  });
30221
30349
 
30222
30350
  // node_modules/antd-mobile/es/components/slider/slider.js
30223
- import React178, { useMemo as useMemo33, useRef as useRef73 } from "react";
30351
+ import React178, { useMemo as useMemo33, useRef as useRef74 } from "react";
30224
30352
  var import_classnames66 = __toESM(require_classnames());
30225
30353
 
30226
30354
  // node_modules/antd-mobile/es/components/slider/ticks.js
@@ -30714,7 +30842,7 @@ function toFixed(numStr, separatorStr, precision) {
30714
30842
  var es_default4 = getMiniDecimal;
30715
30843
 
30716
30844
  // node_modules/antd-mobile/es/components/slider/thumb.js
30717
- import React177, { useRef as useRef72, useState as useState51 } from "react";
30845
+ import React177, { useRef as useRef73, useState as useState51 } from "react";
30718
30846
 
30719
30847
  // node_modules/antd-mobile/es/components/slider/thumb-icon.js
30720
30848
  import React176 from "react";
@@ -30756,7 +30884,7 @@ var Thumb = (props) => {
30756
30884
  residentPopover,
30757
30885
  onDrag
30758
30886
  } = props;
30759
- const prevValue = useRef72(value);
30887
+ const prevValue = useRef73(value);
30760
30888
  const {
30761
30889
  locale: locale2
30762
30890
  } = useConfig();
@@ -30874,7 +31002,7 @@ var Slider = (p) => {
30874
31002
  if (next[0] === current[0] && next[1] === current[1]) return;
30875
31003
  setRawValue(reverseValue(next));
30876
31004
  }
30877
- const trackRef = useRef73(null);
31005
+ const trackRef = useRef74(null);
30878
31006
  const fillSize = `${100 * (sliderValue[1] - sliderValue[0]) / (max2 - min2)}%`;
30879
31007
  const fillStart = `${100 * (sliderValue[0] - min2) / (max2 - min2)}%`;
30880
31008
  const pointList = useMemo33(() => {
@@ -30901,7 +31029,7 @@ var Slider = (p) => {
30901
31029
  }
30902
31030
  return value;
30903
31031
  }
30904
- const dragLockRef = useRef73(0);
31032
+ const dragLockRef = useRef74(0);
30905
31033
  const onTrackClick = (event) => {
30906
31034
  if (dragLockRef.current > 0) return;
30907
31035
  event.stopPropagation();
@@ -30924,7 +31052,7 @@ var Slider = (p) => {
30924
31052
  setSliderValue(nextSliderValue);
30925
31053
  onAfterChange(nextSliderValue);
30926
31054
  };
30927
- const valueBeforeDragRef = useRef73();
31055
+ const valueBeforeDragRef = useRef74();
30928
31056
  const renderThumb = (index2) => {
30929
31057
  return React178.createElement(thumb_default, {
30930
31058
  key: index2,
@@ -31265,7 +31393,7 @@ var steps_default = attachPropertiesToComponent(Steps, {
31265
31393
  });
31266
31394
 
31267
31395
  // node_modules/antd-mobile/es/components/swipe-action/swipe-action.js
31268
- import React182, { forwardRef as forwardRef30, useEffect as useEffect51, useImperativeHandle as useImperativeHandle23, useRef as useRef74 } from "react";
31396
+ import React182, { forwardRef as forwardRef30, useEffect as useEffect51, useImperativeHandle as useImperativeHandle23, useRef as useRef75 } from "react";
31269
31397
  var classPrefix80 = `adm-swipe-action`;
31270
31398
  var defaultProps58 = {
31271
31399
  rightActions: [],
@@ -31276,9 +31404,9 @@ var defaultProps58 = {
31276
31404
  };
31277
31405
  var SwipeAction = forwardRef30((p, ref) => {
31278
31406
  const props = mergeProps(defaultProps58, p);
31279
- const rootRef = useRef74(null);
31280
- const leftRef = useRef74(null);
31281
- const rightRef = useRef74(null);
31407
+ const rootRef = useRef75(null);
31408
+ const leftRef = useRef75(null);
31409
+ const rightRef = useRef75(null);
31282
31410
  function getWidth(ref2) {
31283
31411
  const element = ref2.current;
31284
31412
  if (!element) return 0;
@@ -31299,8 +31427,8 @@ var SwipeAction = forwardRef30((p, ref) => {
31299
31427
  friction: 30
31300
31428
  }
31301
31429
  }), []);
31302
- const draggingRef = useRef74(false);
31303
- const dragCancelRef = useRef74(null);
31430
+ const draggingRef = useRef75(false);
31431
+ const dragCancelRef = useRef75(null);
31304
31432
  function forceCancelDrag() {
31305
31433
  var _a;
31306
31434
  (_a = dragCancelRef.current) === null || _a === void 0 ? void 0 : _a.call(dragCancelRef);
@@ -31468,13 +31596,13 @@ var swipe_action_default = SwipeAction;
31468
31596
 
31469
31597
  // node_modules/antd-mobile/es/components/swiper/swiper.js
31470
31598
  var import_classnames70 = __toESM(require_classnames());
31471
- import React184, { forwardRef as forwardRef31, useEffect as useEffect53, useImperativeHandle as useImperativeHandle24, useMemo as useMemo34, useRef as useRef76, useState as useState54 } from "react";
31599
+ import React184, { forwardRef as forwardRef31, useEffect as useEffect53, useImperativeHandle as useImperativeHandle24, useMemo as useMemo34, useRef as useRef77, useState as useState54 } from "react";
31472
31600
 
31473
31601
  // node_modules/antd-mobile/es/utils/use-ref-state.js
31474
- import { useEffect as useEffect52, useRef as useRef75, useState as useState53 } from "react";
31602
+ import { useEffect as useEffect52, useRef as useRef76, useState as useState53 } from "react";
31475
31603
  function useRefState(initialState) {
31476
31604
  const [state, setState] = useState53(initialState);
31477
- const ref = useRef75(state);
31605
+ const ref = useRef76(state);
31478
31606
  useEffect52(() => {
31479
31607
  ref.current = state;
31480
31608
  }, [state]);
@@ -31541,7 +31669,7 @@ var Swiper = forwardRef31(staged((p, ref) => {
31541
31669
  indicator
31542
31670
  } = props;
31543
31671
  const [uid] = useState54({});
31544
- const timeoutRef = useRef76(null);
31672
+ const timeoutRef = useRef77(null);
31545
31673
  const isVertical = direction === "vertical";
31546
31674
  const slideRatio = props.slideSize / 100;
31547
31675
  const offsetRatio = props.trackOffset / 100;
@@ -31583,7 +31711,7 @@ var Swiper = forwardRef31(staged((p, ref) => {
31583
31711
  if (slideRatio * (mergedTotal - 1) < 1) {
31584
31712
  loop2 = false;
31585
31713
  }
31586
- const trackRef = useRef76(null);
31714
+ const trackRef = useRef77(null);
31587
31715
  function getSlidePixels() {
31588
31716
  const track = trackRef.current;
31589
31717
  if (!track) return 0;
@@ -31622,7 +31750,7 @@ var Swiper = forwardRef31(staged((p, ref) => {
31622
31750
  });
31623
31751
  }
31624
31752
  }), [mergedTotal]);
31625
- const dragCancelRef = useRef76(null);
31753
+ const dragCancelRef = useRef77(null);
31626
31754
  function forceCancelDrag() {
31627
31755
  var _a;
31628
31756
  (_a = dragCancelRef.current) === null || _a === void 0 ? void 0 : _a.call(dragCancelRef);
@@ -32070,7 +32198,7 @@ var Tag = (p) => {
32070
32198
  var tag_default = Tag;
32071
32199
 
32072
32200
  // node_modules/antd-mobile/es/components/text-area/text-area.js
32073
- import React189, { forwardRef as forwardRef32, useImperativeHandle as useImperativeHandle25, useRef as useRef77 } from "react";
32201
+ import React189, { forwardRef as forwardRef32, useImperativeHandle as useImperativeHandle25, useRef as useRef78 } from "react";
32074
32202
  var classPrefix85 = "adm-text-area";
32075
32203
  var defaultProps63 = {
32076
32204
  rows: 2,
@@ -32091,9 +32219,9 @@ var TextArea = forwardRef32((p, ref) => {
32091
32219
  if (props.value === null) {
32092
32220
  devError("TextArea", "`value` prop on `TextArea` should not be `null`. Consider using an empty string to clear the component.");
32093
32221
  }
32094
- const nativeTextAreaRef = useRef77(null);
32095
- const heightRef = useRef77("auto");
32096
- const hiddenTextAreaRef = useRef77(null);
32222
+ const nativeTextAreaRef = useRef78(null);
32223
+ const heightRef = useRef78("auto");
32224
+ const hiddenTextAreaRef = useRef78(null);
32097
32225
  const handleKeydown = useInputHandleKeyDown({
32098
32226
  onEnterPress: props.onEnterPress,
32099
32227
  onKeyDown: props.onKeyDown
@@ -32135,7 +32263,7 @@ var TextArea = forwardRef32((p, ref) => {
32135
32263
  heightRef.current = `${height}px`;
32136
32264
  textArea.style.height = `${height}px`;
32137
32265
  }, [value, autoSize]);
32138
- const compositingRef = useRef77(false);
32266
+ const compositingRef = useRef78(false);
32139
32267
  let count;
32140
32268
  const valueLength = runes(value).length;
32141
32269
  if (typeof showCount === "function") {
@@ -32697,7 +32825,7 @@ var tree_select_default = attachPropertiesToComponent(TreeSelect, {
32697
32825
 
32698
32826
  // node_modules/antd-mobile/es/components/virtual-input/virtual-input.js
32699
32827
  var import_classnames77 = __toESM(require_classnames());
32700
- import React194, { forwardRef as forwardRef33, useEffect as useEffect56, useImperativeHandle as useImperativeHandle26, useRef as useRef78, useState as useState56 } from "react";
32828
+ import React194, { forwardRef as forwardRef33, useEffect as useEffect56, useImperativeHandle as useImperativeHandle26, useRef as useRef79, useState as useState56 } from "react";
32701
32829
 
32702
32830
  // node_modules/antd-mobile/es/components/virtual-input/use-click-outside.js
32703
32831
  import { useEffect as useEffect55 } from "react";
@@ -32732,17 +32860,17 @@ var VirtualInput = forwardRef33((props, ref) => {
32732
32860
  } = useConfig();
32733
32861
  const mergedProps = mergeProps(defaultProps67, componentConfig, props);
32734
32862
  const [value, setValue] = usePropsValue(mergedProps);
32735
- const rootRef = useRef78(null);
32736
- const contentRef = useRef78(null);
32863
+ const rootRef = useRef79(null);
32864
+ const contentRef = useRef79(null);
32737
32865
  const [hasFocus, setHasFocus] = useState56(false);
32738
32866
  const [caretPosition, setCaretPosition] = useState56(value.length);
32739
- const keyboardDataRef = useRef78({});
32740
- const touchDataRef = useRef78();
32741
- const charRef = useRef78(null);
32742
- const charWidthRef = useRef78(0);
32743
- const caretRef = useRef78(null);
32867
+ const keyboardDataRef = useRef79({});
32868
+ const touchDataRef = useRef79();
32869
+ const charRef = useRef79(null);
32870
+ const charWidthRef = useRef79(0);
32871
+ const caretRef = useRef79(null);
32744
32872
  const [isCaretDragging, setIsCaretDragging] = useState56(false);
32745
- const touchMoveTimeoutRef = useRef78();
32873
+ const touchMoveTimeoutRef = useRef79();
32746
32874
  const clearIcon = mergeProp(React194.createElement(CloseCircleFill_default, null), componentConfig.clearIcon, props.clearIcon);
32747
32875
  function scrollToEnd() {
32748
32876
  const content = contentRef.current;
@@ -33718,7 +33846,7 @@ function renderReadonlyOptions(options, coloredOptions, tagWhenPlain = false) {
33718
33846
  }
33719
33847
 
33720
33848
  // packages/sdk/src/components/fields/SelectField/useLinkedFormRemoteOptions.ts
33721
- import { useCallback as useCallback20, useEffect as useEffect61, useMemo as useMemo38, useRef as useRef79, useState as useState58 } from "react";
33849
+ import { useCallback as useCallback20, useEffect as useEffect61, useMemo as useMemo38, useRef as useRef80, useState as useState58 } from "react";
33722
33850
 
33723
33851
  // packages/sdk/src/components/core/optionSource.ts
33724
33852
  var DEFAULT_OPTION_PAGE_SIZE = 200;
@@ -33935,8 +34063,8 @@ function useLinkedFormRemoteOptions(optionSource, baseOptions, selectedOptions)
33935
34063
  const minChars = linkedForm?.remoteSearchMinChars ?? 0;
33936
34064
  const [remoteOptions, setRemoteOptions] = useState58(null);
33937
34065
  const [loading, setLoading] = useState58(false);
33938
- const timerRef = useRef79(null);
33939
- const requestRef = useRef79(0);
34066
+ const timerRef = useRef80(null);
34067
+ const requestRef = useRef80(0);
33940
34068
  const reset = useCallback20(() => {
33941
34069
  requestRef.current += 1;
33942
34070
  if (timerRef.current) {
@@ -37912,7 +38040,7 @@ import {
37912
38040
  import { SearchOutlined as SearchOutlined2, TeamOutlined, UserOutlined as UserOutlined2 } from "@ant-design/icons";
37913
38041
 
37914
38042
  // packages/sdk/src/components/fields/shared/useLazyDepartmentTree.ts
37915
- import { useCallback as useCallback21, useEffect as useEffect72, useMemo as useMemo43, useRef as useRef80, useState as useState63 } from "react";
38043
+ import { useCallback as useCallback21, useEffect as useEffect72, useMemo as useMemo43, useRef as useRef81, useState as useState63 } from "react";
37916
38044
  var toLazyNode = (node) => {
37917
38045
  const normalized = normalizeDepartmentNode(node);
37918
38046
  const id = getDepartmentId(normalized);
@@ -37966,10 +38094,10 @@ function useLazyDepartmentTree(api, configuredTreeData) {
37966
38094
  () => (configuredTreeData || []).map(toLazyNode)
37967
38095
  );
37968
38096
  const [treeLoading, setTreeLoading] = useState63(false);
37969
- const treeDataRef = useRef80(treeData);
37970
- const rootsLoadedRef = useRef80(Boolean(configuredTreeData?.length));
37971
- const rootPromiseRef = useRef80(null);
37972
- const childPromiseRef = useRef80({});
38097
+ const treeDataRef = useRef81(treeData);
38098
+ const rootsLoadedRef = useRef81(Boolean(configuredTreeData?.length));
38099
+ const rootPromiseRef = useRef81(null);
38100
+ const childPromiseRef = useRef81({});
37973
38101
  const setTreeData = useCallback21(
37974
38102
  (next) => {
37975
38103
  const resolved = typeof next === "function" ? next(treeDataRef.current) : next;
@@ -38816,7 +38944,7 @@ function UserSelectField(props) {
38816
38944
  import { useEffect as useEffect80 } from "react";
38817
38945
 
38818
38946
  // packages/sdk/src/components/fields/DepartmentSelectField/DepartmentSelectFieldPC.tsx
38819
- import { useEffect as useEffect78, useMemo as useMemo49, useRef as useRef81, useState as useState68 } from "react";
38947
+ import { useEffect as useEffect78, useMemo as useMemo49, useRef as useRef82, useState as useState68 } from "react";
38820
38948
  import { TreeSelect as TreeSelect2 } from "antd";
38821
38949
 
38822
38950
  // packages/sdk/src/components/fields/shared/DepartmentPicker.tsx
@@ -39111,7 +39239,7 @@ function DepartmentSelectFieldPC({
39111
39239
  const value = useMemo49(() => normalizeDepartmentArray(rawValue), [rawValue]);
39112
39240
  const disabled = behavior === "DISABLED";
39113
39241
  const configuredTreeData = treeData ?? EMPTY_TREE_DATA;
39114
- const remoteLoadedRef = useRef81(false);
39242
+ const remoteLoadedRef = useRef82(false);
39115
39243
  const [loadedTreeData, setLoadedTreeData] = useState68(configuredTreeData);
39116
39244
  const [pickerOpen, setPickerOpen] = useState68(false);
39117
39245
  useEffect78(() => {
@@ -39219,7 +39347,7 @@ function DepartmentSelectFieldPC({
39219
39347
  }
39220
39348
 
39221
39349
  // packages/sdk/src/components/fields/DepartmentSelectField/DepartmentSelectFieldMobile.tsx
39222
- import { useEffect as useEffect79, useMemo as useMemo50, useRef as useRef82, useState as useState69 } from "react";
39350
+ import { useEffect as useEffect79, useMemo as useMemo50, useRef as useRef83, useState as useState69 } from "react";
39223
39351
  import { jsx as jsx69, jsxs as jsxs27 } from "react/jsx-runtime";
39224
39352
  var EMPTY_TREE_DATA2 = [];
39225
39353
  function toDepartmentValue2(item) {
@@ -39253,7 +39381,7 @@ function DepartmentSelectFieldMobile({
39253
39381
  const disabled = behavior === "DISABLED";
39254
39382
  const [showPicker, setShowPicker] = useState69(false);
39255
39383
  const configuredTreeData = treeData ?? EMPTY_TREE_DATA2;
39256
- const remoteLoadedRef = useRef82(false);
39384
+ const remoteLoadedRef = useRef83(false);
39257
39385
  const [loadedTreeData, setLoadedTreeData] = useState69(configuredTreeData);
39258
39386
  useEffect79(() => {
39259
39387
  if (configuredTreeData.length) {
@@ -39763,7 +39891,7 @@ function AddressField(props) {
39763
39891
  }
39764
39892
 
39765
39893
  // packages/sdk/src/components/fields/AssociationFormField/index.tsx
39766
- import { useCallback as useCallback23, useEffect as useEffect83, useMemo as useMemo53, useRef as useRef83, useState as useState71 } from "react";
39894
+ import { useCallback as useCallback23, useEffect as useEffect83, useMemo as useMemo53, useRef as useRef84, useState as useState71 } from "react";
39767
39895
  import { Button as Button6, Drawer, Input as Input8, Modal as Modal4, Select as Select4, Space as Space6, Spin as Spin4, Table, Tag as Tag5 } from "antd";
39768
39896
  import { jsx as jsx74, jsxs as jsxs29 } from "react/jsx-runtime";
39769
39897
  var DEFAULT_PAGE_SIZE = 10;
@@ -39841,8 +39969,8 @@ function AssociationFormField(props) {
39841
39969
  });
39842
39970
  const [selectedRowKeys, setSelectedRowKeys] = useState71([]);
39843
39971
  const [selectedRecords, setSelectedRecords] = useState71([]);
39844
- const formDataRef = useRef83(formData);
39845
- const associationFormRef = useRef83(associationForm);
39972
+ const formDataRef = useRef84(formData);
39973
+ const associationFormRef = useRef84(associationForm);
39846
39974
  useEffect83(() => {
39847
39975
  registerField(fieldId);
39848
39976
  if (defaultValue !== void 0 && formData[fieldId] === void 0) {
@@ -40245,7 +40373,7 @@ function AssociationFormField(props) {
40245
40373
  }
40246
40374
 
40247
40375
  // packages/sdk/src/components/fields/EditorField/index.tsx
40248
- import { useCallback as useCallback24, useEffect as useEffect84, useMemo as useMemo54, useRef as useRef84, useState as useState72 } from "react";
40376
+ import { useCallback as useCallback24, useEffect as useEffect84, useMemo as useMemo54, useRef as useRef85, useState as useState72 } from "react";
40249
40377
  import { Extension } from "@tiptap/core";
40250
40378
  import { EditorContent, useEditor } from "@tiptap/react";
40251
40379
  import StarterKit from "@tiptap/starter-kit";
@@ -40899,7 +41027,7 @@ function RichTextEditorCore({
40899
41027
  fieldId = "richText",
40900
41028
  mobile = false
40901
41029
  }) {
40902
- const inputRef = useRef84(null);
41030
+ const inputRef = useRef85(null);
40903
41031
  const [uploading, setUploading] = useState72(false);
40904
41032
  const [uploadError, setUploadError] = useState72("");
40905
41033
  const [charCount, setCharCount] = useState72(0);
@@ -40914,7 +41042,7 @@ function RichTextEditorCore({
40914
41042
  const [tableOpen, setTableOpen] = useState72(false);
40915
41043
  const [tableRows, setTableRows] = useState72(3);
40916
41044
  const [tableCols, setTableCols] = useState72(3);
40917
- const onChangeRef = useRef84(onChange);
41045
+ const onChangeRef = useRef85(onChange);
40918
41046
  useEffect84(() => {
40919
41047
  onChangeRef.current = onChange;
40920
41048
  }, [onChange]);
@@ -41614,7 +41742,7 @@ function LocationField(props) {
41614
41742
  }
41615
41743
 
41616
41744
  // packages/sdk/src/components/fields/DigitalSignatureField/index.tsx
41617
- import { useCallback as useCallback25, useEffect as useEffect87, useRef as useRef85, useState as useState74 } from "react";
41745
+ import { useCallback as useCallback25, useEffect as useEffect87, useRef as useRef86, useState as useState74 } from "react";
41618
41746
  import { Button as Button9, Modal as Modal6, Space as Space9 } from "antd";
41619
41747
  import { jsx as jsx78, jsxs as jsxs32 } from "react/jsx-runtime";
41620
41748
  var CANVAS_HEIGHT = 260;
@@ -41652,9 +41780,9 @@ function DigitalSignatureField(props) {
41652
41780
  const [saving, setSaving] = useState74(false);
41653
41781
  const [drawn, setDrawn] = useState74(false);
41654
41782
  const [error, setError] = useState74("");
41655
- const canvasRef = useRef85(null);
41656
- const drawingRef = useRef85(false);
41657
- const pointsRef = useRef85([]);
41783
+ const canvasRef = useRef86(null);
41784
+ const drawingRef = useRef86(false);
41785
+ const pointsRef = useRef86([]);
41658
41786
  useEffect87(() => {
41659
41787
  registerField(fieldId);
41660
41788
  if (defaultValue !== void 0 && formData[fieldId] === void 0) {
@@ -42393,7 +42521,7 @@ function FormProvider3({
42393
42521
  }
42394
42522
  return { ...values, ...initialValues };
42395
42523
  }, [schema, initialValues, mergedRuntime]);
42396
- const initialValuesRef = useRef86(computedInitialValues);
42524
+ const initialValuesRef = useRef87(computedInitialValues);
42397
42525
  const [formData, setFormData] = useState75({ ...computedInitialValues });
42398
42526
  const [fieldErrors, setFieldErrors] = useState75({});
42399
42527
  const [registeredFields] = useState75(/* @__PURE__ */ new Set());
@@ -43505,7 +43633,7 @@ async function validateAndNotify(validateAllWithErrors) {
43505
43633
  }
43506
43634
 
43507
43635
  // packages/sdk/src/components/hooks/useFormDetail.ts
43508
- import { useState as useState79, useEffect as useEffect91, useCallback as useCallback27, useRef as useRef87 } from "react";
43636
+ import { useState as useState79, useEffect as useEffect91, useCallback as useCallback27, useRef as useRef88 } from "react";
43509
43637
 
43510
43638
  // packages/sdk/src/components/core/processApi.ts
43511
43639
  var hasOwn2 = (value, key) => Object.prototype.hasOwnProperty.call(value, key);
@@ -44067,8 +44195,8 @@ function useFormDetail(options) {
44067
44195
  const [formData, setFormData] = useState79(null);
44068
44196
  const [instanceInfo, setInstanceInfo] = useState79(null);
44069
44197
  const [permissions, setPermissions] = useState79(null);
44070
- const mountedRef = useRef87(true);
44071
- const onPermissionDeniedRef = useRef87(onPermissionDenied);
44198
+ const mountedRef = useRef88(true);
44199
+ const onPermissionDeniedRef = useRef88(onPermissionDenied);
44072
44200
  const fieldIdsKey = fieldIds?.join("") ?? "";
44073
44201
  useEffect91(() => {
44074
44202
  mountedRef.current = true;
@@ -44176,7 +44304,7 @@ function useFormDetail(options) {
44176
44304
  }
44177
44305
 
44178
44306
  // packages/sdk/src/components/hooks/useChangeRecords.ts
44179
- import { useState as useState80, useEffect as useEffect92, useCallback as useCallback28, useRef as useRef88 } from "react";
44307
+ import { useState as useState80, useEffect as useEffect92, useCallback as useCallback28, useRef as useRef89 } from "react";
44180
44308
  var normalizeChangeRecordList = (value) => {
44181
44309
  const body = value && typeof value === "object" && !Array.isArray(value) ? Array.isArray(value.data) || Array.isArray(value.records) || Array.isArray(value.list) || Array.isArray(value.items) ? value : value.data ?? value.result ?? value : value;
44182
44310
  const records = Array.isArray(body) ? body : body?.records ?? body?.data ?? body?.list ?? body?.items ?? [];
@@ -44195,7 +44323,7 @@ function useChangeRecords(options) {
44195
44323
  const [loading, setLoading] = useState80(false);
44196
44324
  const [total, setTotal] = useState80(0);
44197
44325
  const [page, setPage] = useState80(1);
44198
- const mountedRef = useRef88(true);
44326
+ const mountedRef = useRef89(true);
44199
44327
  useEffect92(() => {
44200
44328
  mountedRef.current = true;
44201
44329
  return () => {
@@ -44769,8 +44897,8 @@ var InnerDetailContent = ({
44769
44897
  onSave,
44770
44898
  inDrawer = false
44771
44899
  }) => {
44772
- const formDataRef = useRef89(void 0);
44773
- const validateRef = useRef89(void 0);
44900
+ const formDataRef = useRef90(void 0);
44901
+ const validateRef = useRef90(void 0);
44774
44902
  const [accessDenied, setAccessDenied] = useState83(false);
44775
44903
  const fieldIds = useMemo58(() => schema.fields.map((field) => field.fieldId), [schema.fields]);
44776
44904
  const {
@@ -44949,7 +45077,7 @@ var FormDetailTemplate = (props) => {
44949
45077
  };
44950
45078
 
44951
45079
  // packages/sdk/src/components/templates/FormSubmitTemplate.tsx
44952
- import { useEffect as useEffect97, useRef as useRef92, useState as useState87, useCallback as useCallback33 } from "react";
45080
+ import { useEffect as useEffect97, useRef as useRef93, useState as useState87, useCallback as useCallback33 } from "react";
44953
45081
  import { Button as Button15, message as message4, Modal as Modal9, Select as Select7 } from "antd";
44954
45082
  import { CheckCircleFilled } from "@ant-design/icons";
44955
45083
 
@@ -45034,7 +45162,7 @@ function useDraftStorage(options) {
45034
45162
  }
45035
45163
 
45036
45164
  // packages/sdk/src/components/hooks/useFormNavigation.ts
45037
- import { useState as useState85, useCallback as useCallback31, useRef as useRef90, useEffect as useEffect95 } from "react";
45165
+ import { useState as useState85, useCallback as useCallback31, useRef as useRef91, useEffect as useEffect95 } from "react";
45038
45166
  var normalizeBasePath = (basePath) => {
45039
45167
  const normalized = String(basePath || "").replace(/^\/+|\/+$/g, "");
45040
45168
  return normalized ? `/${normalized}` : "";
@@ -45068,9 +45196,9 @@ function useFormNavigation(options) {
45068
45196
  } = options;
45069
45197
  const [isRedirecting, setIsRedirecting] = useState85(false);
45070
45198
  const [countdown, setCountdown] = useState85(0);
45071
- const timerRef = useRef90(null);
45072
- const redirectTargetRef = useRef90(null);
45073
- const mountedRef = useRef90(true);
45199
+ const timerRef = useRef91(null);
45200
+ const redirectTargetRef = useRef91(null);
45201
+ const mountedRef = useRef91(true);
45074
45202
  useEffect95(() => {
45075
45203
  mountedRef.current = true;
45076
45204
  return () => {
@@ -45222,7 +45350,7 @@ var DraftManager = ({
45222
45350
  };
45223
45351
 
45224
45352
  // packages/sdk/src/components/modules/InitiatorApproverSelector.tsx
45225
- import { useCallback as useCallback32, useEffect as useEffect96, useMemo as useMemo59, useRef as useRef91, useState as useState86 } from "react";
45353
+ import { useCallback as useCallback32, useEffect as useEffect96, useMemo as useMemo59, useRef as useRef92, useState as useState86 } from "react";
45226
45354
  import { Button as Button13, Empty as Empty7, Modal as Modal7, Select as Select6, Space as Space10, Tag as Tag7, Typography as Typography2, message as message3 } from "antd";
45227
45355
  import { jsx as jsx93, jsxs as jsxs43 } from "react/jsx-runtime";
45228
45356
  var scopeText = {
@@ -45399,7 +45527,7 @@ var InitiatorApproverSelector = ({
45399
45527
  onCancel
45400
45528
  }) => {
45401
45529
  const [selected, setSelected] = useState86({});
45402
- const wasOpenRef = useRef91(false);
45530
+ const wasOpenRef = useRef92(false);
45403
45531
  useEffect96(() => {
45404
45532
  if (open && !wasOpenRef.current) {
45405
45533
  setSelected(value || EMPTY_SELECTED_MAP);
@@ -45614,15 +45742,15 @@ var InnerFormContent = ({
45614
45742
  const [submissionDepartmentModalOpen, setSubmissionDepartmentModalOpen] = useState87(false);
45615
45743
  const [submissionDepartmentOptions, setSubmissionDepartmentOptions] = useState87([]);
45616
45744
  const [selectedSubmissionDepartmentId, setSelectedSubmissionDepartmentId] = useState87();
45617
- const submissionDepartmentResolverRef = useRef92(null);
45745
+ const submissionDepartmentResolverRef = useRef93(null);
45618
45746
  const [previewOpen, setPreviewOpen] = useState87(false);
45619
45747
  const [previewLoading, setPreviewLoading] = useState87(false);
45620
45748
  const [previewRoutes, setPreviewRoutes] = useState87([]);
45621
45749
  const [pendingFormData, setPendingFormData] = useState87(null);
45622
45750
  const [pendingSubmissionDepartmentId, setPendingSubmissionDepartmentId] = useState87();
45623
45751
  const [pendingInitiatorSelectedApprovers, setPendingInitiatorSelectedApprovers] = useState87();
45624
- const pendingSubmissionDepartmentIdRef = useRef92(void 0);
45625
- const pendingInitiatorSelectedApproversRef = useRef92(
45752
+ const pendingSubmissionDepartmentIdRef = useRef93(void 0);
45753
+ const pendingInitiatorSelectedApproversRef = useRef93(
45626
45754
  void 0
45627
45755
  );
45628
45756
  const [initiatorApproverOpen, setInitiatorApproverOpen] = useState87(false);
@@ -46110,12 +46238,12 @@ var FormSubmitTemplate = ({
46110
46238
  };
46111
46239
 
46112
46240
  // packages/sdk/src/components/templates/ProcessDetailTemplate.tsx
46113
- import { useCallback as useCallback37, useMemo as useMemo64, useRef as useRef95, useState as useState91 } from "react";
46241
+ import { useCallback as useCallback37, useMemo as useMemo64, useRef as useRef96, useState as useState91 } from "react";
46114
46242
  import dayjs20 from "dayjs";
46115
46243
  import { Form as AntForm, Input as Input12, Modal as Modal11, message as message5 } from "antd";
46116
46244
 
46117
46245
  // packages/sdk/src/components/hooks/useProcessDetail.ts
46118
- import { useState as useState88, useEffect as useEffect98, useCallback as useCallback35, useRef as useRef93, useMemo as useMemo61 } from "react";
46246
+ import { useState as useState88, useEffect as useEffect98, useCallback as useCallback35, useRef as useRef94, useMemo as useMemo61 } from "react";
46119
46247
 
46120
46248
  // packages/sdk/src/components/hooks/useFieldPermission.ts
46121
46249
  import { useMemo as useMemo60, useCallback as useCallback34 } from "react";
@@ -46242,7 +46370,7 @@ function useProcessDetail(options) {
46242
46370
  const [permissions, setPermissions] = useState88(null);
46243
46371
  const [processDefinition, setProcessDefinition] = useState88(null);
46244
46372
  const [dataVersion, setDataVersion] = useState88(0);
46245
- const mountedRef = useRef93(true);
46373
+ const mountedRef = useRef94(true);
46246
46374
  const fieldIdsKey = fieldIds?.join("") ?? "";
46247
46375
  useEffect98(() => {
46248
46376
  mountedRef.current = true;
@@ -46437,7 +46565,7 @@ function useProcessDetail(options) {
46437
46565
  }
46438
46566
 
46439
46567
  // packages/sdk/src/components/hooks/useApprovalActions.ts
46440
- import { useState as useState89, useCallback as useCallback36, useRef as useRef94, useEffect as useEffect99 } from "react";
46568
+ import { useState as useState89, useCallback as useCallback36, useRef as useRef95, useEffect as useEffect99 } from "react";
46441
46569
  function useApprovalActions(options) {
46442
46570
  const { formInstanceId, formUuid, appType, currentTaskId, onActionComplete, getFormValues } = options;
46443
46571
  const { api } = useFormContext();
@@ -46446,7 +46574,7 @@ function useApprovalActions(options) {
46446
46574
  const [currentAction, setCurrentAction] = useState89(null);
46447
46575
  const [returnableNodes, setReturnableNodes] = useState89([]);
46448
46576
  const [returnPolicy, setReturnPolicy] = useState89(null);
46449
- const mountedRef = useRef94(true);
46577
+ const mountedRef = useRef95(true);
46450
46578
  useEffect99(() => {
46451
46579
  mountedRef.current = true;
46452
46580
  return () => {
@@ -47348,8 +47476,8 @@ var InnerProcessContent = ({
47348
47476
  onDelete,
47349
47477
  inDrawer = false
47350
47478
  }) => {
47351
- const formDataRef = useRef95(void 0);
47352
- const validateRef = useRef95(void 0);
47479
+ const formDataRef = useRef96(void 0);
47480
+ const validateRef = useRef96(void 0);
47353
47481
  const [withdrawForm] = AntForm.useForm();
47354
47482
  const [withdrawOpen, setWithdrawOpen] = useState91(false);
47355
47483
  const [withdrawLoading, setWithdrawLoading] = useState91(false);
@@ -49233,7 +49361,7 @@ function ResizableColumnTitle({
49233
49361
  onResize: onResize2,
49234
49362
  onResizeEnd
49235
49363
  }) {
49236
- const dragRef = useRef96({ startX: 0, startWidth: width, latestWidth: width });
49364
+ const dragRef = useRef97({ startX: 0, startWidth: width, latestWidth: width });
49237
49365
  const handleMouseDown = (event) => {
49238
49366
  event.preventDefault();
49239
49367
  event.stopPropagation();
@@ -49298,7 +49426,7 @@ var DataManagementList = ({
49298
49426
  rowActions = [],
49299
49427
  maxVisibleRowActions
49300
49428
  }) => {
49301
- const rootRef = useRef96(null);
49429
+ const rootRef = useRef97(null);
49302
49430
  const api = useMemo66(() => {
49303
49431
  if (typeof requestOverride === "function") {
49304
49432
  return createFormRuntimeApi({ request: requestOverride });
@@ -49312,7 +49440,7 @@ var DataManagementList = ({
49312
49440
  const [showFields, setShowFields] = useState92([]);
49313
49441
  const [lockFieldIds, setLockFieldIds] = useState92([]);
49314
49442
  const [widths, setWidths] = useState92({});
49315
- const widthsRef = useRef96({});
49443
+ const widthsRef = useRef97({});
49316
49444
  const [sort, setSort] = useState92([]);
49317
49445
  const [density, setDensity] = useState92("middle");
49318
49446
  const [detailOpenMode, setDetailOpenMode] = useState92("drawer");
@@ -49347,7 +49475,7 @@ var DataManagementList = ({
49347
49475
  const [activeRecord, setActiveRecord] = useState92(null);
49348
49476
  const [detailOpen, setDetailOpen] = useState92(false);
49349
49477
  const [submitOpen, setSubmitOpen] = useState92(false);
49350
- const fetchStateRef = useRef96({});
49478
+ const fetchStateRef = useRef97({});
49351
49479
  const isProcessForm = isProcessFormType(formType);
49352
49480
  const request = api.request;
49353
49481
  const getPopupContainer = useCallback38(
@@ -50864,6 +50992,7 @@ export {
50864
50992
  AuthClientError,
50865
50993
  BuiltinRouteRenderer,
50866
50994
  LoginPage,
50995
+ OpenXiangdaPageProvider,
50867
50996
  OpenXiangdaProvider,
50868
50997
  PageProvider,
50869
50998
  PermissionBoundary,