wevu 6.16.29 → 6.16.31

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.
@@ -1,4 +1,4 @@
1
- import { $ as setWevuDefaults, A as defineComponent, B as useLayoutHosts, C as useNavigationBarMetrics, Ct as isShallowRef, D as useDisposables, E as useElementIntersectionObserver, F as resolveLayoutBridge, G as teardownRuntimeInstance, H as registerApp, I as resolveLayoutHost, J as setPageLayout, K as runSetupFunction, L as unregisterPageLayoutBridge, M as registerComponent, N as registerPageLayoutBridge, O as createWevuComponent, P as registerRuntimeLayoutHosts, Q as resetWevuDefaults, R as unregisterRuntimeLayoutHosts, S as getNavigationBarMetrics, St as toRefs, T as useIntersectionObserver, Tt as triggerRef, U as mountRuntimeInstance, V as waitForLayoutHost, W as setRuntimeSetDataVisibility, X as syncRuntimePageLayoutStateFromRuntime, Y as syncRuntimePageLayoutState, Z as usePageLayout, _ as useSelectorFields, _t as onServerPrefetch, a as useModel, at as watchPostEffect, b as usePageScrollThrottle, bt as traverse, c as useSlots, ct as setDeepWatchStrategy, d as useUpdatePerformanceListener, dt as onBeforeMount, et as isNoSetData, f as normalizeClass, ft as onBeforeUnmount, g as useScrollOffset, gt as onMounted, h as useBoundingClientRect, ht as onErrorCaptured, i as useChangeModel, it as watchEffect, j as createApp, k as createWevuScopedSlotComponent, l as defineAppSetup, lt as callUpdateHooks, m as resolvePropValue, mt as onDeactivated, n as mergeModels, nt as version, o as useAttrs, ot as watchSyncEffect, p as normalizeStyle, pt as onBeforeUpdate, q as resolveRuntimePageLayoutName, r as useBindModel, rt as watch, s as useNativeInstance, st as getDeepWatchStrategy, t as useTemplateRef, tt as markNoSetData, u as use, ut as onActivated, v as useSelectorQuery, vt as onUnmounted, w as usePageStack, wt as shallowRef, x as getCurrentPageStackSnapshot, xt as toRef, y as useAsyncPullDownRefresh, yt as onUpdated, z as useLayoutBridge } from "./src-C3pTdTFG.mjs";
1
+ import { $ as setWevuDefaults, A as defineComponent, B as useLayoutHosts, C as useNavigationBarMetrics, Ct as isShallowRef, D as useDisposables, E as useElementIntersectionObserver, F as resolveLayoutBridge, G as teardownRuntimeInstance, H as registerApp, I as resolveLayoutHost, J as setPageLayout, K as runSetupFunction, L as unregisterPageLayoutBridge, M as registerComponent, N as registerPageLayoutBridge, O as createWevuComponent, P as registerRuntimeLayoutHosts, Q as resetWevuDefaults, R as unregisterRuntimeLayoutHosts, S as getNavigationBarMetrics, St as toRefs, T as useIntersectionObserver, Tt as triggerRef, U as mountRuntimeInstance, V as waitForLayoutHost, W as setRuntimeSetDataVisibility, X as syncRuntimePageLayoutStateFromRuntime, Y as syncRuntimePageLayoutState, Z as usePageLayout, _ as useSelectorFields, _t as onServerPrefetch, a as useModel, at as watchPostEffect, b as usePageScrollThrottle, bt as traverse, c as useSlots, ct as setDeepWatchStrategy, d as useUpdatePerformanceListener, dt as onBeforeMount, et as isNoSetData, f as normalizeClass, ft as onBeforeUnmount, g as useScrollOffset, gt as onMounted, h as useBoundingClientRect, ht as onErrorCaptured, i as useChangeModel, it as watchEffect, j as createApp, k as createWevuScopedSlotComponent, l as defineAppSetup, lt as callUpdateHooks, m as resolvePropValue, mt as onDeactivated, n as mergeModels, nt as version, o as useAttrs, ot as watchSyncEffect, p as normalizeStyle, pt as onBeforeUpdate, q as resolveRuntimePageLayoutName, r as useBindModel, rt as watch, s as useNativeInstance, st as getDeepWatchStrategy, t as useTemplateRef, tt as markNoSetData, u as use, ut as onActivated, v as useSelectorQuery, vt as onUnmounted, w as usePageStack, wt as shallowRef, x as getCurrentPageStackSnapshot, xt as toRef, y as useAsyncPullDownRefresh, yt as onUpdated, z as useLayoutBridge } from "./src-QNC0LVvV.mjs";
2
2
  import { C as effect, D as onScopeDispose, E as getCurrentScope, N as nextTick, O as startBatch, S as batch, T as endBatch, a as toValue, b as addMutationRecorder, c as isRaw, d as reactive, f as isShallowReactive, g as touchReactive, h as prelinkReactiveTree, i as ref, k as stop, l as isReactive, n as isRef, o as unref, p as shallowReactive, s as getReactiveVersion, t as customRef, u as markRaw, w as effectScope, x as removeMutationRecorder, y as toRaw } from "./ref-BoBfMdVt.mjs";
3
3
  import { i as computed, n as defineStore, r as createStore, t as storeToRefs } from "./store-eNxaNZbj.mjs";
4
4
  import { $ as onUnhandledRejection, A as setGlobalProvidedValue, B as onPageNotFound, F as onHide, G as onResize, H as onPullDownRefresh, I as onLaunch, J as onShareAppMessage, K as onRouteDone, L as onLoad, M as onAttached, N as onDetached, P as onError, Q as onThemeChange, R as onMemoryWarning, U as onReachBottom, V as onPageScroll, W as onReady, X as onShow, Y as onShareTimeline, Z as onTabItemTap, _ as provide, _t as readonly, at as getCurrentSetupContext, ct as setCurrentSetupContext, et as onUnload, g as injectGlobal, gt as isReadonly, h as inject, ht as isProxy, it as getCurrentInstance, j as onAddToFavorites, m as hasInjectionContext, n as useNativeRouter, nt as callHookList, q as onSaveExitState, rt as callHookReturn, st as setCurrentInstance, t as useNativePageRouter, v as provideGlobal, vt as shallowReadonly, z as onMoved } from "./router-ByTtgUmi.mjs";
@@ -478,7 +478,7 @@ function watchSyncEffect(effectFn, options = {}) {
478
478
 
479
479
  //#endregion
480
480
  //#region package.json
481
- var version$1 = "6.16.29";
481
+ var version$1 = "6.16.31";
482
482
 
483
483
  //#endregion
484
484
  //#region src/version.ts
@@ -525,15 +525,16 @@ function setWithSegments(target, segments, value) {
525
525
  }
526
526
  current[segments[segments.length - 1]] = value;
527
527
  }
528
- function setByPath(state, computedRefs, computedSetters, segments, value) {
528
+ function setByPath(state, setupState, computedRefs, computedSetters, segments, value) {
529
529
  if (!segments.length) return;
530
530
  const [head, ...rest] = segments;
531
531
  if (!rest.length) {
532
532
  if (computedRefs[head]) setComputedValue(computedSetters, head, value);
533
533
  else {
534
- const current = state[head];
534
+ const target = setupState && Object.prototype.hasOwnProperty.call(setupState, head) ? setupState : state;
535
+ const current = target[head];
535
536
  if (isRef(current)) current.value = value;
536
- else state[head] = value;
537
+ else target[head] = value;
537
538
  }
538
539
  return;
539
540
  }
@@ -541,8 +542,9 @@ function setByPath(state, computedRefs, computedSetters, segments, value) {
541
542
  setComputedValue(computedSetters, head, value);
542
543
  return;
543
544
  }
544
- if (state[head] == null || typeof state[head] !== "object") state[head] = {};
545
- setWithSegments(state[head], rest, value);
545
+ const target = setupState && Object.prototype.hasOwnProperty.call(setupState, head) ? setupState : state;
546
+ if (target[head] == null || typeof target[head] !== "object") target[head] = {};
547
+ setWithSegments(target[head], rest, value);
546
548
  }
547
549
  function getFromPath(target, segments) {
548
550
  return segments.reduce((acc, segment) => {
@@ -553,13 +555,13 @@ function getFromPath(target, segments) {
553
555
  function defaultParser(event) {
554
556
  return parseModelEventValue(event);
555
557
  }
556
- function createBindModel(publicInstance, state, computedRefs, computedSetters) {
558
+ function createBindModel(publicInstance, state, computedRefs, computedSetters, setupState) {
557
559
  const bindModel = (path, bindingOptions) => {
558
560
  const segments = toPathSegments(path);
559
561
  if (!segments.length) throw new Error("bindModel 需要非空路径");
560
562
  const resolveValue = () => getFromPath(publicInstance, segments);
561
563
  const assignValue = (value) => {
562
- setByPath(state, computedRefs, computedSetters, segments, value);
564
+ setByPath(state, setupState, computedRefs, computedSetters, segments, value);
563
565
  };
564
566
  const defaultOptions = {
565
567
  event: "input",
@@ -965,7 +967,7 @@ function isPlainObject$1(value) {
965
967
  const proto = Object.getPrototypeOf(value);
966
968
  return proto === null || proto === Object.prototype;
967
969
  }
968
- function toPlainInternal(value, seen, visiting, cache, depth, budget, includeFunctions, functionPathSet, currentPath) {
970
+ function toPlainInternal(value, seen, visiting, cache, cacheEligibility, depth, budget, includeFunctions, functionPathSet, currentPath) {
969
971
  const unwrapped = unref(value);
970
972
  if (typeof unwrapped === "bigint") {
971
973
  const asNumber = Number(unwrapped);
@@ -975,8 +977,15 @@ function toPlainInternal(value, seen, visiting, cache, depth, budget, includeFun
975
977
  if (typeof unwrapped === "function") return includeFunctions || (functionPathSet === null || functionPathSet === void 0 ? void 0 : functionPathSet.has(currentPath)) ? unwrapped : void 0;
976
978
  if (typeof unwrapped !== "object" || unwrapped === null) return unwrapped;
977
979
  if (isNoSetData(unwrapped)) return;
978
- const raw = isReactive(unwrapped) ? toRaw(unwrapped) : unwrapped;
979
- const cacheRef = Boolean(cache) && (isReactive(unwrapped) || !hasTrackableSetupBinding(raw)) ? cache : void 0;
980
+ const reactiveValue = isReactive(unwrapped);
981
+ const raw = reactiveValue ? toRaw(unwrapped) : unwrapped;
982
+ let canUseCache = Boolean(cache) && reactiveValue;
983
+ if (cache && !canUseCache) {
984
+ const cachedEligibility = cacheEligibility === null || cacheEligibility === void 0 ? void 0 : cacheEligibility.get(raw);
985
+ canUseCache = cachedEligibility !== null && cachedEligibility !== void 0 ? cachedEligibility : !hasTrackableSetupBinding(raw);
986
+ cacheEligibility === null || cacheEligibility === void 0 || cacheEligibility.set(raw, canUseCache);
987
+ }
988
+ const cacheRef = canUseCache ? cache : void 0;
980
989
  if (depth <= 0 || budget.keys <= 0) return raw;
981
990
  if (cacheRef) {
982
991
  const version = getReactiveVersion(raw);
@@ -992,7 +1001,7 @@ function toPlainInternal(value, seen, visiting, cache, depth, budget, includeFun
992
1001
  seen.set(raw, entries);
993
1002
  visiting.add(raw);
994
1003
  raw.forEach((mapValue, mapKey) => {
995
- entries.push([toPlainInternal(mapKey, seen, visiting, void 0, Number.POSITIVE_INFINITY, { keys: Number.POSITIVE_INFINITY }, includeFunctions, void 0, ""), toPlainInternal(mapValue, seen, visiting, void 0, Number.POSITIVE_INFINITY, { keys: Number.POSITIVE_INFINITY }, includeFunctions, void 0, "")]);
1004
+ entries.push([toPlainInternal(mapKey, seen, visiting, void 0, void 0, Number.POSITIVE_INFINITY, { keys: Number.POSITIVE_INFINITY }, includeFunctions, void 0, ""), toPlainInternal(mapValue, seen, visiting, void 0, void 0, Number.POSITIVE_INFINITY, { keys: Number.POSITIVE_INFINITY }, includeFunctions, void 0, "")]);
996
1005
  });
997
1006
  visiting.delete(raw);
998
1007
  return entries;
@@ -1002,7 +1011,7 @@ function toPlainInternal(value, seen, visiting, cache, depth, budget, includeFun
1002
1011
  seen.set(raw, values);
1003
1012
  visiting.add(raw);
1004
1013
  raw.forEach((setValue) => {
1005
- values.push(toPlainInternal(setValue, seen, visiting, void 0, Number.POSITIVE_INFINITY, { keys: Number.POSITIVE_INFINITY }, includeFunctions, void 0, ""));
1014
+ values.push(toPlainInternal(setValue, seen, visiting, void 0, void 0, Number.POSITIVE_INFINITY, { keys: Number.POSITIVE_INFINITY }, includeFunctions, void 0, ""));
1006
1015
  });
1007
1016
  visiting.delete(raw);
1008
1017
  return values;
@@ -1014,7 +1023,7 @@ function toPlainInternal(value, seen, visiting, cache, depth, budget, includeFun
1014
1023
  if (typeof view[Symbol.iterator] === "function") {
1015
1024
  const values = [...view];
1016
1025
  seen.set(raw, values);
1017
- return values.map((item) => toPlainInternal(item, seen, visiting, void 0, Number.POSITIVE_INFINITY, { keys: Number.POSITIVE_INFINITY }, includeFunctions, void 0, ""));
1026
+ return values.map((item) => toPlainInternal(item, seen, visiting, void 0, void 0, Number.POSITIVE_INFINITY, { keys: Number.POSITIVE_INFINITY }, includeFunctions, void 0, ""));
1018
1027
  }
1019
1028
  const bytes = [...new Uint8Array(view.buffer, view.byteOffset, view.byteLength)];
1020
1029
  seen.set(raw, bytes);
@@ -1032,7 +1041,7 @@ function toPlainInternal(value, seen, visiting, cache, depth, budget, includeFun
1032
1041
  const nextDepth = depth - 1;
1033
1042
  for (let index = 0; index < raw.length; index += 1) {
1034
1043
  const childPath = currentPath ? `${currentPath}.${index}` : String(index);
1035
- const next = toPlainInternal(raw[index], seen, visiting, cache, nextDepth, budget, includeFunctions, functionPathSet, childPath);
1044
+ const next = toPlainInternal(raw[index], seen, visiting, cache, cacheEligibility, nextDepth, budget, includeFunctions, functionPathSet, childPath);
1036
1045
  arr[index] = next === void 0 ? null : next;
1037
1046
  }
1038
1047
  visiting.delete(raw);
@@ -1050,7 +1059,7 @@ function toPlainInternal(value, seen, visiting, cache, depth, budget, includeFun
1050
1059
  budget.keys -= 1;
1051
1060
  if (budget.keys <= 0) break;
1052
1061
  const childPath = currentPath ? `${currentPath}.${key}` : key;
1053
- const next = toPlainInternal(raw[key], seen, visiting, cache, nextDepth, budget, includeFunctions, functionPathSet, childPath);
1062
+ const next = toPlainInternal(raw[key], seen, visiting, cache, cacheEligibility, nextDepth, budget, includeFunctions, functionPathSet, childPath);
1054
1063
  if (next !== void 0) output[key] = next;
1055
1064
  }
1056
1065
  visiting.delete(raw);
@@ -1065,7 +1074,7 @@ function toPlain(value, seen = /* @__PURE__ */ new WeakMap(), options) {
1065
1074
  const depth = (_options$_depth = options === null || options === void 0 ? void 0 : options._depth) !== null && _options$_depth !== void 0 ? _options$_depth : typeof (options === null || options === void 0 ? void 0 : options.maxDepth) === "number" ? Math.max(0, Math.floor(options.maxDepth)) : Number.POSITIVE_INFINITY;
1066
1075
  const budget = (_options$_budget = options === null || options === void 0 ? void 0 : options._budget) !== null && _options$_budget !== void 0 ? _options$_budget : typeof (options === null || options === void 0 ? void 0 : options.maxKeys) === "number" ? { keys: Math.max(0, Math.floor(options.maxKeys)) } : { keys: Number.POSITIVE_INFINITY };
1067
1076
  const functionPathSet = Array.isArray(options === null || options === void 0 ? void 0 : options.functionPaths) && options.functionPaths.length ? new Set(options.functionPaths) : void 0;
1068
- return toPlainInternal(value, seen, /* @__PURE__ */ new WeakSet(), options === null || options === void 0 ? void 0 : options.cache, depth, budget, Boolean(options === null || options === void 0 ? void 0 : options.includeFunctions), functionPathSet, (_options$_path = options === null || options === void 0 ? void 0 : options._path) !== null && _options$_path !== void 0 ? _options$_path : "");
1077
+ return toPlainInternal(value, seen, /* @__PURE__ */ new WeakSet(), options === null || options === void 0 ? void 0 : options.cache, options === null || options === void 0 ? void 0 : options.cacheEligibility, depth, budget, Boolean(options === null || options === void 0 ? void 0 : options.includeFunctions), functionPathSet, (_options$_path = options === null || options === void 0 ? void 0 : options._path) !== null && _options$_path !== void 0 ? _options$_path : "");
1069
1078
  }
1070
1079
  function isArrayEqual(a, b, compare) {
1071
1080
  if (a.length !== b.length) return false;
@@ -1355,7 +1364,7 @@ function applySnapshotUpdate(snapshot, path, value, op, options) {
1355
1364
  else current[leaf] = cloneValue ? cloneSnapshotValue(value) : value;
1356
1365
  }
1357
1366
  function collectSnapshot(options) {
1358
- const { state, setupState, computedRefs, includeComputed, shouldIncludeKey, plainCache, toPlainMaxDepth, toPlainMaxKeys, includeFunctions = false, functionPaths = [] } = options;
1367
+ const { state, setupState, computedRefs, includeComputed, shouldIncludeKey, plainCache, plainCacheEligibility, toPlainMaxDepth, toPlainMaxKeys, includeFunctions = false, functionPaths = [] } = options;
1359
1368
  const seen = /* @__PURE__ */ new WeakMap();
1360
1369
  const out = {};
1361
1370
  const budget = Number.isFinite(toPlainMaxKeys) ? { keys: toPlainMaxKeys } : void 0;
@@ -1368,6 +1377,7 @@ function collectSnapshot(options) {
1368
1377
  if (!shouldIncludeKey(key)) continue;
1369
1378
  out[key] = toPlain(rawState[key], seen, {
1370
1379
  cache: plainCache,
1380
+ cacheEligibility: plainCacheEligibility,
1371
1381
  maxDepth: toPlainMaxDepth,
1372
1382
  includeFunctions,
1373
1383
  functionPaths,
@@ -1379,6 +1389,7 @@ function collectSnapshot(options) {
1379
1389
  if (!shouldIncludeKey(key)) continue;
1380
1390
  out[key] = toPlain(rawSetupState[key], seen, {
1381
1391
  cache: plainCache,
1392
+ cacheEligibility: plainCacheEligibility,
1382
1393
  maxDepth: toPlainMaxDepth,
1383
1394
  includeFunctions,
1384
1395
  functionPaths,
@@ -1390,6 +1401,7 @@ function collectSnapshot(options) {
1390
1401
  if (!shouldIncludeKey(key)) continue;
1391
1402
  out[key] = toPlain(computedRefs[key].value, seen, {
1392
1403
  cache: plainCache,
1404
+ cacheEligibility: plainCacheEligibility,
1393
1405
  maxDepth: toPlainMaxDepth,
1394
1406
  includeFunctions,
1395
1407
  functionPaths,
@@ -1403,7 +1415,7 @@ function collectSnapshot(options) {
1403
1415
  //#endregion
1404
1416
  //#region src/runtime/app/setData/patchScheduler.ts
1405
1417
  function runPatchUpdate(options) {
1406
- const { state, computedRefs, dirtyComputedKeys, includeComputed, computedCompare, computedCompareMaxDepth, computedCompareMaxKeys, currentAdapter, shouldIncludeKey, maxPatchKeys, maxPayloadBytes, mergeSiblingThreshold, mergeSiblingMaxInflationRatio, mergeSiblingMaxParentBytes, mergeSiblingSkipArray, elevateTopKeyThreshold, toPlainMaxDepth, toPlainMaxKeys, includeFunctions = false, functionPaths, plainCache, pendingPatches, fallbackTopKeys, latestSnapshot, latestComputedSnapshot, needsFullSnapshot, emitDebug, runDiffUpdate } = options;
1418
+ const { state, computedRefs, dirtyComputedKeys, includeComputed, computedCompare, computedCompareMaxDepth, computedCompareMaxKeys, currentAdapter, shouldIncludeKey, maxPatchKeys, maxPayloadBytes, mergeSiblingThreshold, mergeSiblingMaxInflationRatio, mergeSiblingMaxParentBytes, mergeSiblingSkipArray, elevateTopKeyThreshold, toPlainMaxDepth, toPlainMaxKeys, includeFunctions = false, functionPaths, plainCache, plainCacheEligibility, pendingPatches, fallbackTopKeys, latestSnapshot, latestComputedSnapshot, needsFullSnapshot, emitDebug, runDiffUpdate } = options;
1407
1419
  if (pendingPatches.size > maxPatchKeys) {
1408
1420
  needsFullSnapshot.value = true;
1409
1421
  const pendingCount = pendingPatches.size;
@@ -1450,6 +1462,7 @@ function runPatchUpdate(options) {
1450
1462
  if (plainByPath.has(path)) return plainByPath.get(path);
1451
1463
  const value = normalizeSetDataValue(toPlain(getStateValueByPath(path), seen, {
1452
1464
  cache: plainCache,
1465
+ cacheEligibility: plainCacheEligibility,
1453
1466
  maxDepth: toPlainMaxDepth,
1454
1467
  maxKeys: toPlainMaxKeys,
1455
1468
  includeFunctions,
@@ -1487,6 +1500,7 @@ function runPatchUpdate(options) {
1487
1500
  if (!shouldIncludeKey(key)) continue;
1488
1501
  const nextValue = toPlain(computedRefs[key].value, seen, {
1489
1502
  cache: plainCache,
1503
+ cacheEligibility: plainCacheEligibility,
1490
1504
  maxDepth: toPlainMaxDepth,
1491
1505
  maxKeys: toPlainMaxKeys,
1492
1506
  includeFunctions,
@@ -1557,6 +1571,7 @@ function runPatchUpdate(options) {
1557
1571
  function createSetDataScheduler(options) {
1558
1572
  const { state, setupState, snapshotOmitKeys, computedRefs, dirtyComputedKeys, includeComputed, setDataStrategy, computedCompare, computedCompareMaxDepth, computedCompareMaxKeys, currentAdapter, shouldIncludeKey, maxPatchKeys, maxPayloadBytes, mergeSiblingThreshold, mergeSiblingMaxInflationRatio, mergeSiblingMaxParentBytes, mergeSiblingSkipArray, elevateTopKeyThreshold, toPlainMaxDepth, toPlainMaxKeys, includeFunctions = false, functionPaths, debug, debugWhen, debugSampleRate, runTracker, isMounted, initialSnapshot } = options;
1559
1573
  const plainCache = /* @__PURE__ */ new WeakMap();
1574
+ const plainCacheEligibility = /* @__PURE__ */ new WeakMap();
1560
1575
  let latestSnapshot = {};
1561
1576
  let latestComputedSnapshot = Object.create(null);
1562
1577
  const latestStateTokens = Object.create(null);
@@ -1587,6 +1602,7 @@ function createSetDataScheduler(options) {
1587
1602
  const candidate = isRef(value) ? value.value : value;
1588
1603
  if (candidate == null || typeof candidate !== "object") return candidate;
1589
1604
  if (!isReactive(candidate) && hasTrackableSetupBinding(candidate)) return { snapshot: toPlain(candidate, /* @__PURE__ */ new WeakMap(), {
1605
+ cacheEligibility: plainCacheEligibility,
1590
1606
  maxDepth: toPlainMaxDepth,
1591
1607
  maxKeys: toPlainMaxKeys,
1592
1608
  includeFunctions,
@@ -1654,6 +1670,7 @@ function createSetDataScheduler(options) {
1654
1670
  includeComputed,
1655
1671
  shouldIncludeKey: shouldIncludeSnapshotKey,
1656
1672
  plainCache,
1673
+ plainCacheEligibility,
1657
1674
  toPlainMaxDepth,
1658
1675
  toPlainMaxKeys,
1659
1676
  includeFunctions,
@@ -1677,6 +1694,7 @@ function createSetDataScheduler(options) {
1677
1694
  if (previousToken && token && typeof previousToken === "object" && typeof token === "object" && hasOwn(previousToken, "raw") && hasOwn(token, "raw") && Array.isArray(previousToken.raw) && Array.isArray(token.raw) && previousToken.raw !== token.raw) replacedTopLevelKeys.add(key);
1678
1695
  if (!isSameToken(previousToken, token) || !hasOwn(latestSnapshot, key)) nextSnapshot[key] = toPlain(source[key], seen, {
1679
1696
  cache: plainCache,
1697
+ cacheEligibility: plainCacheEligibility,
1680
1698
  maxDepth: toPlainMaxDepth,
1681
1699
  maxKeys: toPlainMaxKeys,
1682
1700
  includeFunctions,
@@ -1703,6 +1721,7 @@ function createSetDataScheduler(options) {
1703
1721
  const token = createValueToken(value);
1704
1722
  if (!isSameToken(latestComputedTokens[key], token) || !hasOwn(latestSnapshot, key)) nextSnapshot[key] = toPlain(value, seen, {
1705
1723
  cache: plainCache,
1724
+ cacheEligibility: plainCacheEligibility,
1706
1725
  maxDepth: toPlainMaxDepth,
1707
1726
  maxKeys: toPlainMaxKeys,
1708
1727
  includeFunctions,
@@ -1804,6 +1823,7 @@ function createSetDataScheduler(options) {
1804
1823
  includeFunctions,
1805
1824
  functionPaths,
1806
1825
  plainCache,
1826
+ plainCacheEligibility,
1807
1827
  pendingPatches,
1808
1828
  fallbackTopKeys,
1809
1829
  latestSnapshot,
@@ -2032,7 +2052,7 @@ function createRuntimeMount(options) {
2032
2052
  if (index >= 0) stopHandles.splice(index, 1);
2033
2053
  }, stopHandle);
2034
2054
  }
2035
- const bindModel = createBindModel(publicInstance, state, computedRefs, computedSetters);
2055
+ const bindModel = createBindModel(publicInstance, state, computedRefs, computedSetters, setupState);
2036
2056
  const unmount = () => {
2037
2057
  if (!mounted) return;
2038
2058
  mounted = false;
@@ -5194,6 +5214,9 @@ function resolveComputedGetter(definition) {
5194
5214
  const getter = definition === null || definition === void 0 ? void 0 : definition.get;
5195
5215
  return typeof getter === "function" ? getter : void 0;
5196
5216
  }
5217
+ function isCompilerGeneratedTemplateComputedKey(key) {
5218
+ return key.startsWith("__wv_bind_") || key.startsWith("__wv_cls_") || key.startsWith("__wv_style_");
5219
+ }
5197
5220
  function resolveInitialComputedData(options) {
5198
5221
  const { data, computed, setData } = options;
5199
5222
  const computedKeys = computed ? Object.keys(computed) : [];
@@ -5254,7 +5277,10 @@ function resolveInitialComputedData(options) {
5254
5277
  return Reflect.has(target, key) || typeof key === "string" && Boolean(computed && hasOwn(computed, key));
5255
5278
  }
5256
5279
  });
5257
- for (const key of computedKeys) resolveComputedValue(key);
5280
+ for (const key of computedKeys) {
5281
+ if (isCompilerGeneratedTemplateComputedKey(key)) continue;
5282
+ resolveComputedValue(key);
5283
+ }
5258
5284
  return Object.keys(resolved).length ? resolved : void 0;
5259
5285
  }
5260
5286
  function resolveNativeInitialData(data, computed, setData) {
@@ -6600,4 +6626,4 @@ function useTemplateRef(name) {
6600
6626
 
6601
6627
  //#endregion
6602
6628
  export { setWevuDefaults as $, defineComponent as A, useLayoutHosts as B, useNavigationBarMetrics as C, isShallowRef as Ct, useDisposables as D, __reExport as Dt, useElementIntersectionObserver as E, __exportAll as Et, resolveLayoutBridge as F, teardownRuntimeInstance as G, registerApp as H, resolveLayoutHost as I, setPageLayout as J, runSetupFunction as K, unregisterPageLayoutBridge as L, registerComponent as M, registerPageLayoutBridge as N, createWevuComponent as O, registerRuntimeLayoutHosts as P, resetWevuDefaults as Q, unregisterRuntimeLayoutHosts as R, getNavigationBarMetrics as S, toRefs as St, useIntersectionObserver as T, triggerRef as Tt, mountRuntimeInstance as U, waitForLayoutHost as V, setRuntimeSetDataVisibility as W, syncRuntimePageLayoutStateFromRuntime as X, syncRuntimePageLayoutState as Y, usePageLayout as Z, useSelectorFields as _, onServerPrefetch as _t, useModel as a, watchPostEffect as at, usePageScrollThrottle as b, traverse as bt, useSlots as c, setDeepWatchStrategy as ct, useUpdatePerformanceListener as d, onBeforeMount as dt, isNoSetData as et, normalizeClass as f, onBeforeUnmount as ft, useScrollOffset as g, onMounted as gt, useBoundingClientRect as h, onErrorCaptured as ht, useChangeModel as i, watchEffect as it, createApp as j, createWevuScopedSlotComponent as k, defineAppSetup as l, callUpdateHooks as lt, resolvePropValue as m, onDeactivated as mt, mergeModels as n, version as nt, useAttrs as o, watchSyncEffect as ot, normalizeStyle as p, onBeforeUpdate as pt, resolveRuntimePageLayoutName as q, useBindModel as r, watch as rt, useNativeInstance as s, getDeepWatchStrategy as st, useTemplateRef as t, markNoSetData as tt, use as u, onActivated as ut, useSelectorQuery as v, onUnmounted as vt, usePageStack as w, shallowRef as wt, getCurrentPageStackSnapshot as x, toRef as xt, useAsyncPullDownRefresh as y, onUpdated as yt, useLayoutBridge as z };
6603
- //# sourceMappingURL=src-C3pTdTFG.mjs.map
6629
+ //# sourceMappingURL=src-QNC0LVvV.mjs.map