@wix/himalaya-cli 0.1703.0 → 0.1705.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.mjs CHANGED
@@ -14033,14 +14033,25 @@ var init_validator = __esm({
14033
14033
  then: { required: ["payload"], not: { required: ["url"] } }
14034
14034
  },
14035
14035
  {
14036
- // WebView tiers must carry a url, not a payload
14036
+ // WebView tiers must carry a url
14037
14037
  if: {
14038
14038
  properties: {
14039
14039
  renderer: { enum: ["webview_native_bridge", "webview_ds"] }
14040
14040
  },
14041
14041
  required: ["renderer"]
14042
14042
  },
14043
- then: { required: ["url"], not: { required: ["payload"] } }
14043
+ then: { required: ["url"] }
14044
+ },
14045
+ {
14046
+ // A Tier-4 screen carries no payload. A Tier-3 one may: RFC 0079 phase 3B's dual-form site screen
14047
+ // carries its node form there (every shipped binary's Tier-3 branch ignores it; a dual-form binary
14048
+ // draws it). That payload's own rules — one root primary page, the same url and config as the
14049
+ // Tier-3 fields, no logicBundle — are `webViewEmbeddedFindings` (`dual_form_*`).
14050
+ if: {
14051
+ properties: { renderer: { const: "webview_ds" } },
14052
+ required: ["renderer"]
14053
+ },
14054
+ then: { not: { required: ["payload"] } }
14044
14055
  },
14045
14056
  {
14046
14057
  // webview_ds requires SRI pinning + manifest version
@@ -16229,11 +16240,55 @@ function webViewOriginAllowed(url, origins) {
16229
16240
  }
16230
16241
  var init_webview_origin = __esm({
16231
16242
  "../../core/ts/src/webview-origin.ts"() {
16232
- "use strict";
16233
16243
  init_define_HHP_CATALOG();
16234
16244
  }
16235
16245
  });
16236
16246
 
16247
+ // ../../core/ts/src/site-screen-form.ts
16248
+ function coreType(v2) {
16249
+ if (!isRec(v2) || !isRec(v2.body)) return null;
16250
+ return v2.body.package === "himalaya" && typeof v2.body.type === "string" ? v2.body.type : null;
16251
+ }
16252
+ function propsOf2(v2) {
16253
+ const p2 = v2.body.props;
16254
+ return isRec(p2) ? p2 : {};
16255
+ }
16256
+ function rootPrimaryWebView(root) {
16257
+ if (isPrimaryWebViewNode(root)) return root;
16258
+ const type2 = coreType(root);
16259
+ if (type2 === null || !PRIMARY_ROOT_STACKS.has(type2)) return null;
16260
+ const children2 = propsOf2(root).children;
16261
+ return Array.isArray(children2) ? children2.find(isPrimaryWebViewNode) ?? null : null;
16262
+ }
16263
+ function sameCapabilityScope(a3, b3) {
16264
+ if (a3 == null || b3 == null) return a3 == null && b3 == null;
16265
+ if (!Array.isArray(a3) || !Array.isArray(b3)) return false;
16266
+ const sa2 = new Set(a3);
16267
+ const sb = new Set(b3);
16268
+ return sa2.size === sb.size && [...sa2].every((v2) => sb.has(v2));
16269
+ }
16270
+ function prefersPayloadNodeForm(descriptor) {
16271
+ if (!isRec(descriptor) || descriptor.renderer !== DUAL_FORM_T3_RENDERER || descriptor.logicBundle != null) return false;
16272
+ const primary = rootPrimaryWebView(descriptor.payload);
16273
+ return primary !== null && sameCapabilityScope(propsOf2(primary).capabilitiesRequired, descriptor.capabilitiesRequired);
16274
+ }
16275
+ function payloadNodeForm(descriptor) {
16276
+ if (!prefersPayloadNodeForm(descriptor)) return descriptor;
16277
+ const { url: _url, webViewConfig: _config, ...screen } = descriptor;
16278
+ return { ...screen, renderer: DUAL_FORM_NODE_RENDERER };
16279
+ }
16280
+ var isRec, DUAL_FORM_T3_RENDERER, DUAL_FORM_NODE_RENDERER, PRIMARY_ROOT_STACKS, isPrimaryWebViewNode;
16281
+ var init_site_screen_form = __esm({
16282
+ "../../core/ts/src/site-screen-form.ts"() {
16283
+ init_define_HHP_CATALOG();
16284
+ isRec = (v2) => typeof v2 === "object" && v2 !== null && !Array.isArray(v2);
16285
+ DUAL_FORM_T3_RENDERER = "webview_native_bridge";
16286
+ DUAL_FORM_NODE_RENDERER = "sdui_layout";
16287
+ PRIMARY_ROOT_STACKS = /* @__PURE__ */ new Set(["VStack", "HStack", "ZStack"]);
16288
+ isPrimaryWebViewNode = (v2) => coreType(v2) === "WebView" && propsOf2(v2).role === "primary";
16289
+ }
16290
+ });
16291
+
16237
16292
  // ../../core/ts/src/webview-embedded.ts
16238
16293
  function canonicalJson(value2) {
16239
16294
  return canonicalJsonAt(value2, /* @__PURE__ */ new Set());
@@ -16277,12 +16332,69 @@ function effectiveWebViewInstanceId(screenId, args, componentId, explicitInstanc
16277
16332
  if (typeof explicitInstanceId === "string" && explicitInstanceId !== "") return explicitInstanceId;
16278
16333
  return `${screenId}?${canonicalScreenArgs(args)}/${componentId}`;
16279
16334
  }
16335
+ function sameJson(a3, b3) {
16336
+ try {
16337
+ return canonicalJson(a3 ?? {}) === canonicalJson(b3 ?? {});
16338
+ } catch {
16339
+ return false;
16340
+ }
16341
+ }
16342
+ function dualFormRules(descriptor, out2) {
16343
+ if (descriptor.renderer !== DUAL_FORM_T3_RENDERER || descriptor.payload == null) return;
16344
+ if (descriptor.logicBundle != null) {
16345
+ out2.push({
16346
+ severity: "error",
16347
+ rule: "dual_form_logic_bundle",
16348
+ path: "logicBundle",
16349
+ message: `this Tier-3 screen carries a node form in payload and a logicBundle \u2014 every shipped binary routes a Tier-3 screen with a logicBundle to the worker-backed WebView screen, and a worker-backed screen has no node form yet (RFC 0079 \xA78, \xA714 Q1). Drop the payload, or the logicBundle`
16350
+ });
16351
+ }
16352
+ const primary = rootPrimaryWebView(descriptor.payload);
16353
+ if (primary === null) {
16354
+ out2.push({
16355
+ severity: "error",
16356
+ rule: "dual_form_without_primary",
16357
+ path: "payload",
16358
+ message: `this Tier-3 screen carries a payload with no role: "primary" WebView at its root (the root itself, or a direct child of a root VStack, HStack or ZStack) \u2014 a Tier-3 screen's payload is its node form, the same page as a primary WebView with native UI around it (RFC 0079 \xA78). Put the page there with sitePage(), or drop the payload`
16359
+ });
16360
+ return;
16361
+ }
16362
+ const props2 = propsOf3(primary);
16363
+ const at2 = (prop2) => {
16364
+ const path2 = descriptor.payload === primary ? "payload" : `payload.body.props.children[${propsOf3(descriptor.payload).children.indexOf(primary)}]`;
16365
+ return `${path2}.body.props.${prop2}`;
16366
+ };
16367
+ if (props2.url !== descriptor.url) {
16368
+ out2.push({
16369
+ severity: "error",
16370
+ rule: "dual_form_mismatch",
16371
+ path: at2("url"),
16372
+ message: `the primary WebView in payload loads ${JSON.stringify(props2.url)} but the Tier-3 screen loads ${JSON.stringify(descriptor.url)} \u2014 the two forms are one page, so an old binary and a new one would show different pages. Build both from one page (dualFormSiteScreen / siteScreens) (RFC 0079 \xA78)`
16373
+ });
16374
+ }
16375
+ if (!sameCapabilityScope(props2.capabilitiesRequired, descriptor.capabilitiesRequired)) {
16376
+ out2.push({
16377
+ severity: "error",
16378
+ rule: "dual_form_mismatch",
16379
+ path: at2("capabilitiesRequired"),
16380
+ message: `the primary WebView in payload is scoped to ${JSON.stringify(props2.capabilitiesRequired ?? null)} native capabilities but the Tier-3 screen to ${JSON.stringify(descriptor.capabilitiesRequired ?? null)} \u2014 a node with no scope gets the app's whole declared list from the native bridge, so the site page could call capabilities its Tier-3 page could not. Give the node the screen's capabilitiesRequired (an empty array stays empty); a dual-form binary keeps the Tier-3 page until they match (RFC 0079 \xA78)`
16381
+ });
16382
+ }
16383
+ if (!sameJson(props2.config, descriptor.webViewConfig)) {
16384
+ out2.push({
16385
+ severity: "error",
16386
+ rule: "dual_form_mismatch",
16387
+ path: at2("config"),
16388
+ message: `the primary WebView's config in payload differs from the Tier-3 screen's webViewConfig \u2014 the two forms are one page, so an old binary and a new one would behave differently (keep-alive, chrome hiders, allowed origins). Build both from one page (dualFormSiteScreen / siteScreens) (RFC 0079 \xA78)`
16389
+ });
16390
+ }
16391
+ }
16280
16392
  function childComponents(value2, path2, inTemplate, out2) {
16281
16393
  if (Array.isArray(value2)) {
16282
16394
  value2.forEach((v2, i2) => childComponents(v2, `${path2}[${i2}]`, inTemplate, out2));
16283
16395
  return;
16284
16396
  }
16285
- if (!isRec(value2)) return;
16397
+ if (!isRec2(value2)) return;
16286
16398
  if (isComponent(value2)) {
16287
16399
  out2.push({ c: value2, path: path2, inTemplate });
16288
16400
  return;
@@ -16290,7 +16402,7 @@ function childComponents(value2, path2, inTemplate, out2) {
16290
16402
  for (const [k3, v2] of Object.entries(value2)) childComponents(v2, `${path2}.${k3}`, inTemplate || /Template$/.test(k3), out2);
16291
16403
  }
16292
16404
  function childrenOf(c2, path2, inTemplate) {
16293
- const props2 = propsOf2(c2);
16405
+ const props2 = propsOf3(c2);
16294
16406
  const type2 = typeOf(c2);
16295
16407
  const boundList = (type2 === "LazyList" || type2 === "Grid" || type2 === "Carousel") && hasItemsPath(props2);
16296
16408
  const boundPages = type2 === "Pager" && hasPagesPath(props2);
@@ -16317,13 +16429,13 @@ function collectWebViews(descriptor) {
16317
16429
  sites.push({
16318
16430
  path: path2,
16319
16431
  id: typeof c2.id === "string" ? c2.id : "",
16320
- props: propsOf2(c2),
16321
- modifiers: isRec(c2.modifiers) ? c2.modifiers : {},
16432
+ props: propsOf3(c2),
16433
+ modifiers: isRec2(c2.modifiers) ? c2.modifiers : {},
16322
16434
  inTemplate,
16323
16435
  ...at2
16324
16436
  });
16325
16437
  }
16326
- const props2 = propsOf2(c2);
16438
+ const props2 = propsOf3(c2);
16327
16439
  const below = {
16328
16440
  parentType: type2,
16329
16441
  scrollAncestor: type2 !== null && PRIMARY_FORBIDDEN_ANCESTORS.has(type2) ? type2 === "LazyList" ? props2.horizontal === true ? "a horizontal LazyList" : "a vertical LazyList" : `a ${type2}` : at2.scrollAncestor,
@@ -16336,7 +16448,7 @@ function collectWebViews(descriptor) {
16336
16448
  }
16337
16449
  function mountable(c2, inTemplate = false) {
16338
16450
  const type2 = typeOf(c2);
16339
- const props2 = propsOf2(c2);
16451
+ const props2 = propsOf3(c2);
16340
16452
  const repeated = (n2) => inTemplate && n2 > 0 ? Infinity : n2;
16341
16453
  if (type2 === "WebView") return repeated(isBridged(props2) ? 1 : 0);
16342
16454
  if (type2 === "LazyList") {
@@ -16417,9 +16529,9 @@ function primaryRules(s5, config, out2) {
16417
16529
  }
16418
16530
  }
16419
16531
  function webViewEmbeddedFindings(descriptor) {
16420
- if (!isRec(descriptor)) return [];
16532
+ if (!isRec2(descriptor)) return [];
16421
16533
  const out2 = [];
16422
- const screenConfig = isRec(descriptor.webViewConfig) ? descriptor.webViewConfig : {};
16534
+ const screenConfig = isRec2(descriptor.webViewConfig) ? descriptor.webViewConfig : {};
16423
16535
  if (screenConfig.storageSeed !== void 0 && screenConfig.originIsolation !== "per_instance") {
16424
16536
  out2.push({
16425
16537
  severity: "error",
@@ -16428,17 +16540,18 @@ function webViewEmbeddedFindings(descriptor) {
16428
16540
  message: `the screen's webViewConfig sets storageSeed without originIsolation: "per_instance" \u2014 a seed migrates into a per-instance origin only (RFC 0073 \xA74.2)`
16429
16541
  });
16430
16542
  }
16543
+ dualFormRules(descriptor, out2);
16431
16544
  const sites = collectWebViews(descriptor);
16432
16545
  if (sites.length === 0) return out2;
16433
16546
  const screenId = typeof descriptor.screenId === "string" ? descriptor.screenId : "";
16434
- const lb = isRec(descriptor.logicBundle) ? descriptor.logicBundle : null;
16547
+ const lb = isRec2(descriptor.logicBundle) ? descriptor.logicBundle : null;
16435
16548
  const caps = lb && Array.isArray(lb.declaredCapabilities) ? lb.declaredCapabilities : [];
16436
16549
  const seen = /* @__PURE__ */ new Map();
16437
16550
  for (const s5 of sites) {
16438
16551
  const { props: props2, path: path2 } = s5;
16439
16552
  const config = configOf(props2);
16440
16553
  const bridged = isBridged(props2);
16441
- const security = isRec(config.bridgeSecurity) ? config.bridgeSecurity : {};
16554
+ const security = isRec2(config.bridgeSecurity) ? config.bridgeSecurity : {};
16442
16555
  for (const [field, value2, prop2] of [
16443
16556
  ["bridge", props2.bridge, "bridge"],
16444
16557
  ["originIsolation", config.originIsolation, "config.originIsolation"],
@@ -16562,7 +16675,7 @@ function webViewEmbeddedFindings(descriptor) {
16562
16675
  function webViewEmbeddedAppFindings(screens) {
16563
16676
  const byId2 = /* @__PURE__ */ new Map();
16564
16677
  for (const { screenId, descriptor } of screens) {
16565
- if (!isRec(descriptor)) continue;
16678
+ if (!isRec2(descriptor)) continue;
16566
16679
  for (const s5 of collectWebViews(descriptor)) {
16567
16680
  if (!isPerInstance(s5.props) || !isLiteral(s5.props.instanceId)) continue;
16568
16681
  const content = [s5.props.inlineHtml, s5.props.url].find(isLiteral);
@@ -16587,11 +16700,13 @@ function webViewEmbeddedAppFindings(screens) {
16587
16700
  }
16588
16701
  return out2;
16589
16702
  }
16590
- var MAX_SIMULTANEOUS_BRIDGED_WEBVIEWS, WEBVIEW_EMBEDDED_ENUMS, isRec, byCodeUnit, PRIMARY_FORBIDDEN_ANCESTORS, verticallyScrolls, isComponent, typeOf, propsOf2, hasItemsPath, hasPagesPath, isBridged, isPrimary, configOf, hasWeight, SITE_CONFIG_FIELDS, siteConfigFields, isPerInstance, isLiteral, isItemDerived;
16703
+ var MAX_SIMULTANEOUS_BRIDGED_WEBVIEWS, WEBVIEW_EMBEDDED_ENUMS, isRec2, byCodeUnit, PRIMARY_FORBIDDEN_ANCESTORS, verticallyScrolls, isComponent, typeOf, propsOf3, hasItemsPath, hasPagesPath, isBridged, isPrimary, configOf, hasWeight, SITE_CONFIG_FIELDS, siteConfigFields, isPerInstance, isLiteral, isItemDerived;
16591
16704
  var init_webview_embedded = __esm({
16592
16705
  "../../core/ts/src/webview-embedded.ts"() {
16593
16706
  init_define_HHP_CATALOG();
16594
16707
  init_webview_origin();
16708
+ init_site_screen_form();
16709
+ init_site_screen_form();
16595
16710
  MAX_SIMULTANEOUS_BRIDGED_WEBVIEWS = 4;
16596
16711
  WEBVIEW_EMBEDDED_ENUMS = {
16597
16712
  bridge: ["", "worker"],
@@ -16600,24 +16715,24 @@ var init_webview_embedded = __esm({
16600
16715
  profile: ["", "app_content"],
16601
16716
  role: ["", "primary"]
16602
16717
  };
16603
- isRec = (v2) => typeof v2 === "object" && v2 !== null && !Array.isArray(v2);
16718
+ isRec2 = (v2) => typeof v2 === "object" && v2 !== null && !Array.isArray(v2);
16604
16719
  byCodeUnit = (a3, b3) => a3 < b3 ? -1 : a3 > b3 ? 1 : 0;
16605
16720
  PRIMARY_FORBIDDEN_ANCESTORS = /* @__PURE__ */ new Set(["LazyList", "Pager", "Carousel", "CollapsingHeader"]);
16606
16721
  verticallyScrolls = (type2, props2) => type2 === "LazyList" && props2.horizontal !== true || type2 === "CollapsingHeader";
16607
- isComponent = (v2) => isRec(v2) && isRec(v2.body) && typeof v2.body.package === "string" && typeof v2.body.type === "string";
16722
+ isComponent = (v2) => isRec2(v2) && isRec2(v2.body) && typeof v2.body.package === "string" && typeof v2.body.type === "string";
16608
16723
  typeOf = (c2) => {
16609
16724
  const body = c2.body;
16610
16725
  return body.package === "himalaya" ? body.type : null;
16611
16726
  };
16612
- propsOf2 = (c2) => {
16727
+ propsOf3 = (c2) => {
16613
16728
  const p2 = c2.body.props;
16614
- return isRec(p2) ? p2 : {};
16729
+ return isRec2(p2) ? p2 : {};
16615
16730
  };
16616
16731
  hasItemsPath = (props2) => typeof props2.itemsPath === "string" && props2.itemsPath !== "";
16617
16732
  hasPagesPath = (props2) => typeof props2.pagesPath === "string" && /^\$(service|app):/.test(props2.pagesPath);
16618
16733
  isBridged = (props2) => props2.bridge === "worker";
16619
16734
  isPrimary = (props2) => props2.role === "primary";
16620
- configOf = (props2) => isRec(props2.config) ? props2.config : {};
16735
+ configOf = (props2) => isRec2(props2.config) ? props2.config : {};
16621
16736
  hasWeight = (modifiers) => typeof modifiers.weight === "number" && Number.isFinite(modifiers.weight) && modifiers.weight > 0;
16622
16737
  SITE_CONFIG_FIELDS = ["hostedSiteAdapter", "sessionBridge", "hideHostedSiteHeader", "hideHostedSiteFooter", "hideHostedSiteMenu", "hideWixAds"];
16623
16738
  siteConfigFields = (config) => SITE_CONFIG_FIELDS.filter((k3) => config[k3] === true || typeof config[k3] === "string" && config[k3] !== "");
@@ -29391,9 +29506,29 @@ function translateWith(node3, map2) {
29391
29506
  }
29392
29507
  }
29393
29508
  visit(node3, true);
29509
+ translateAccessibilityWith(node3, map2);
29394
29510
  return node3;
29395
29511
  }
29396
- var ROOT3, catalogCache;
29512
+ function translateAccessibilityWith(node3, map2, atRoot = true, inLogicBundle = false) {
29513
+ if (map2.size === 0) return;
29514
+ if (Array.isArray(node3)) {
29515
+ for (const child3 of node3) translateAccessibilityWith(child3, map2, false, inLogicBundle);
29516
+ return;
29517
+ }
29518
+ if (typeof node3 !== "object" || node3 === null) return;
29519
+ const record3 = node3;
29520
+ for (const [key4, value2] of Object.entries(record3)) {
29521
+ if (atRoot && key4 === "input") continue;
29522
+ if (inLogicBundle && key4 === "bootState") continue;
29523
+ if (ACCESSIBILITY_COPY.has(key4) && typeof value2 === "string") {
29524
+ const translated2 = map2.get(value2);
29525
+ if (translated2) record3[key4] = translated2;
29526
+ } else {
29527
+ translateAccessibilityWith(value2, map2, false, atRoot && key4 === "logicBundle");
29528
+ }
29529
+ }
29530
+ }
29531
+ var ROOT3, catalogCache, ACCESSIBILITY_COPY;
29397
29532
  var init_l10n = __esm({
29398
29533
  "../../core/dev-server/src/l10n.ts"() {
29399
29534
  init_define_HHP_CATALOG();
@@ -29401,6 +29536,7 @@ var init_l10n = __esm({
29401
29536
  init_l10n_catalog();
29402
29537
  ROOT3 = resolve27(fileURLToPath18(new URL("../../..", import.meta.url)));
29403
29538
  catalogCache = /* @__PURE__ */ new Map();
29539
+ ACCESSIBILITY_COPY = /* @__PURE__ */ new Set(["accessibilityLabel", "accessibilityHint", "accessibilityValue"]);
29404
29540
  }
29405
29541
  });
29406
29542
 
@@ -32867,7 +33003,6 @@ function resolveIdiom(tokens2, ctx = {}) {
32867
33003
  var IDIOM_CONTEXTS, UNSAFE_KEYS;
32868
33004
  var init_idiom = __esm({
32869
33005
  "../../core/ts/src/idiom.ts"() {
32870
- "use strict";
32871
33006
  init_define_HHP_CATALOG();
32872
33007
  IDIOM_CONTEXTS = {
32873
33008
  ios: { native: ["ios"] },
@@ -34690,7 +34825,6 @@ function shouldRevealError(args) {
34690
34825
  var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE, AUTHORED_PATTERN_LIMIT, authoredPatterns;
34691
34826
  var init_validation = __esm({
34692
34827
  "../../core/ts/src/validation.ts"() {
34693
- "use strict";
34694
34828
  init_define_HHP_CATALOG();
34695
34829
  EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
34696
34830
  URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
@@ -37623,13 +37757,20 @@ function defineSitePageScreen(site) {
37623
37757
  webViewConfig: { ...preset, keepAlive: false }
37624
37758
  };
37625
37759
  }
37626
- function primarySiteWebView(url, config, id, label4) {
37760
+ function primarySiteWebView(url, config, id, label4, capabilitiesRequired) {
37627
37761
  return {
37628
37762
  id,
37629
37763
  body: {
37630
37764
  package: "himalaya",
37631
37765
  type: "WebView",
37632
- props: { url, role: "primary", fill: true, scrollEnabled: true, ...config ? { config } : {} }
37766
+ props: {
37767
+ url,
37768
+ role: "primary",
37769
+ fill: true,
37770
+ scrollEnabled: true,
37771
+ ...capabilitiesRequired ? { capabilitiesRequired: [...capabilitiesRequired] } : {},
37772
+ ...config ? { config } : {}
37773
+ }
37633
37774
  },
37634
37775
  modifiers: { weight: 1, accessibilityLabel: label4?.trim() || hostOf(url) }
37635
37776
  };
@@ -37646,20 +37787,41 @@ function isDesugarableSiteScreen(descriptor) {
37646
37787
  }
37647
37788
  function desugarSiteScreen(descriptor) {
37648
37789
  if (!isDesugarableSiteScreen(descriptor)) return descriptor;
37649
- const { url, webViewConfig, ...screen } = descriptor;
37790
+ if (prefersPayloadNodeForm(descriptor)) return payloadNodeForm(descriptor);
37791
+ const { url, webViewConfig, payload: _payload, ...screen } = descriptor;
37650
37792
  return {
37651
37793
  ...screen,
37652
37794
  renderer: SITE_NODE_SCREEN_RENDERER,
37653
- payload: primarySiteWebView(url, webViewConfig ? { ...webViewConfig } : void 0, SITE_PAGE_NODE_ID, descriptor.title)
37795
+ // The Tier-3 page's native capability scope rides on the node (an empty allowlist stays empty).
37796
+ payload: primarySiteWebView(
37797
+ url,
37798
+ webViewConfig ? { ...webViewConfig } : void 0,
37799
+ SITE_PAGE_NODE_ID,
37800
+ descriptor.title,
37801
+ descriptor.capabilitiesRequired
37802
+ )
37654
37803
  };
37655
37804
  }
37805
+ function dualFormSiteScreen(descriptor, payload) {
37806
+ if (!isDesugarableSiteScreen(descriptor)) {
37807
+ if (payload === void 0) return descriptor;
37808
+ throw new Error(`site screen ${JSON.stringify(descriptor?.screenId)} cannot carry a node form: only a Tier-3 screen with a url, no logicBundle and no internalLinksAsScreens can (RFC 0079 \xA78)`);
37809
+ }
37810
+ const { payload: _old, ...t3 } = descriptor;
37811
+ const out2 = { ...t3, payload: payload ?? desugarSiteScreen(t3).payload };
37812
+ const drift = webViewEmbeddedFindings(out2).filter((f2) => f2.rule.startsWith("dual_form_"));
37813
+ if (drift.length > 0) {
37814
+ throw new Error(`site screen ${JSON.stringify(descriptor.screenId)}: ${drift.map((f2) => f2.message).join("; ")}`);
37815
+ }
37816
+ return out2;
37817
+ }
37656
37818
  function siteScreens(site, opts) {
37657
37819
  assertSiteShellConfig(site, opts);
37658
- const form = opts?.form ?? "t3";
37820
+ const form = opts?.form ?? "both";
37659
37821
  if (!SITE_SCREEN_FORMS.includes(form)) {
37660
37822
  throw new Error(`site screen form ${JSON.stringify(form)} must be one of ${SITE_SCREEN_FORMS.join(", ")}`);
37661
37823
  }
37662
- const shape = (d2) => form === "node" ? desugarSiteScreen(d2) : d2;
37824
+ const shape = (d2) => form === "node" ? desugarSiteScreen(d2) : form === "both" ? dualFormSiteScreen(d2) : d2;
37663
37825
  return {
37664
37826
  ...Object.fromEntries(site.pages.map((page) => [siteScreenId(page), shape(defineSiteTab(site, page))])),
37665
37827
  [SITE_PAGE_SCREEN_ID]: shape(defineSitePageScreen(site))
@@ -37728,13 +37890,15 @@ var SITE_LAYOUTS, SITE_SHELL_MAX_TABS, SITE_SCREEN_PREFIX, SITE_PAGE_SCREEN_ID,
37728
37890
  var init_site_shell = __esm({
37729
37891
  "../../core/ts/src/site-shell.ts"() {
37730
37892
  init_define_HHP_CATALOG();
37893
+ init_site_screen_form();
37894
+ init_webview_embedded();
37731
37895
  SITE_LAYOUTS = ["auto", "tabs", "drawer", "sidebar", "single"];
37732
37896
  SITE_SHELL_MAX_TABS = 4;
37733
37897
  SITE_SCREEN_PREFIX = "site_";
37734
37898
  SITE_PAGE_SCREEN_ID = "site_page";
37735
37899
  PAGE_ID = /^[a-z0-9_]+$/;
37736
37900
  SITE_PAGE_NODE_ID = "site_page_view";
37737
- SITE_SCREEN_FORMS = ["t3", "node"];
37901
+ SITE_SCREEN_FORMS = ["t3", "node", "both"];
37738
37902
  SITE_NODE_SCREEN_RENDERER = "sdui_layout";
37739
37903
  }
37740
37904
  });
@@ -43382,19 +43546,19 @@ function templateReadsService(template) {
43382
43546
  }
43383
43547
  return reads3;
43384
43548
  }
43385
- function sameJson(a3, b3) {
43549
+ function sameJson2(a3, b3) {
43386
43550
  if (a3 === b3) return true;
43387
43551
  if (a3 === null || b3 === null || typeof a3 !== "object" || typeof b3 !== "object") return false;
43388
43552
  if (Array.isArray(a3)) {
43389
43553
  if (!Array.isArray(b3) || a3.length !== b3.length) return false;
43390
- for (let i2 = 0; i2 < a3.length; i2++) if (!sameJson(a3[i2], b3[i2])) return false;
43554
+ for (let i2 = 0; i2 < a3.length; i2++) if (!sameJson2(a3[i2], b3[i2])) return false;
43391
43555
  return true;
43392
43556
  }
43393
43557
  if (Array.isArray(b3)) return false;
43394
43558
  const ka2 = Object.keys(a3);
43395
43559
  if (ka2.length !== Object.keys(b3).length) return false;
43396
43560
  for (const k3 of ka2) {
43397
- if (!Object.prototype.hasOwnProperty.call(b3, k3) || !sameJson(a3[k3], b3[k3])) return false;
43561
+ if (!Object.prototype.hasOwnProperty.call(b3, k3) || !sameJson2(a3[k3], b3[k3])) return false;
43398
43562
  }
43399
43563
  return true;
43400
43564
  }
@@ -43542,7 +43706,7 @@ var init_bindings2 = __esm({
43542
43706
  const scope3 = item2 && typeof item2 === "object" ? { ...item2, __index: index } : { value: item2, __index: index };
43543
43707
  return /* @__PURE__ */ jsx4(Fragment, { children: renderRow(template, { ...ctx, itemScope: scope3, ...previewKey2 !== void 0 ? { imagePreviewRows: [...ctx.imagePreviewRows ?? [], previewKey2] } : {} }) });
43544
43708
  },
43545
- (prev, next) => prev.ctx === next.ctx && prev.template === next.template && prev.renderRow === next.renderRow && prev.index === next.index && prev.previewKey === next.previewKey && !templateReadsService(next.template) && sameJson(prev.item, next.item)
43709
+ (prev, next) => prev.ctx === next.ctx && prev.template === next.template && prev.renderRow === next.renderRow && prev.index === next.index && prev.previewKey === next.previewKey && !templateReadsService(next.template) && sameJson2(prev.item, next.item)
43546
43710
  );
43547
43711
  }
43548
43712
  });
@@ -45230,12 +45394,13 @@ function injectIntoInlineHtml(html, config, scrollEnabled = true) {
45230
45394
  if (tail) out2 += tail;
45231
45395
  return out2;
45232
45396
  }
45233
- var NETWORK_SCHEMES, asRecord, nonEmpty3, scriptBody;
45397
+ var NETWORK_SCHEMES, SITE_PAGE_FRAME_GRANTS, asRecord, nonEmpty3, scriptBody;
45234
45398
  var init_webviewFrame = __esm({
45235
45399
  "../../core/web-renderer/src/webviewFrame.ts"() {
45236
45400
  init_define_HHP_CATALOG();
45237
45401
  init_webview_origin();
45238
45402
  NETWORK_SCHEMES = /* @__PURE__ */ new Set(["http:", "https:"]);
45403
+ SITE_PAGE_FRAME_GRANTS = ["allow-popups", "allow-forms"];
45239
45404
  asRecord = (v2) => v2 && typeof v2 === "object" ? v2 : {};
45240
45405
  nonEmpty3 = (v2) => typeof v2 === "string" && v2.length > 0 ? v2 : void 0;
45241
45406
  scriptBody = (js2) => js2.replace(/<\/(script)/gi, "<\\/$1");
@@ -135499,7 +135664,7 @@ var init_renderNode = __esm({
135499
135664
  const scrollEnabled = typeof props2.scrollEnabled === "boolean" ? props2.scrollEnabled : primary;
135500
135665
  const htmlStr = rawHtml != null ? injectIntoInlineHtml(rawHtml, config, scrollEnabled) : void 0;
135501
135666
  const urlAllowed = urlStr != null && (config.allowedOrigins.length === 0 || webViewOriginAllowed(urlStr, config.allowedOrigins));
135502
- const urlFrame = urlStr && urlAllowed ? webviewFrameSandbox(urlStr) : null;
135667
+ const urlFrame = urlStr && urlAllowed ? webviewFrameSandbox(urlStr, primary ? SITE_PAGE_FRAME_GRANTS : []) : null;
135503
135668
  const boundHeight = useResolvedScalar(props2.heightPath != null && isBinding(props2.heightPath) ? props2.heightPath : void 0, ctx);
135504
135669
  const fill2 = props2.fill === true || primary;
135505
135670
  const h2 = typeof boundHeight === "number" && boundHeight > 0 ? boundHeight : typeof props2.height === "number" && props2.height > 0 ? props2.height : void 0;
@@ -140478,6 +140643,7 @@ __export(src_exports2, {
140478
140643
  FakeServiceProvider: () => FakeServiceProvider,
140479
140644
  IDIOM_CONTROLS: () => IDIOM_CONTROLS,
140480
140645
  ImageCacheContext: () => ImageCacheContext,
140646
+ SITE_PAGE_FRAME_GRANTS: () => SITE_PAGE_FRAME_GRANTS,
140481
140647
  SKELETON_SHIMMER_PERIOD_MS: () => SKELETON_SHIMMER_PERIOD_MS,
140482
140648
  UNSUPPORTED_PRIVATE_CACHE: () => UNSUPPORTED_PRIVATE_CACHE,
140483
140649
  WebAppRegistry: () => WebAppRegistry,
@@ -142564,7 +142730,7 @@ function steadyPart(state, probe2, at2, omitted) {
142564
142730
  const steady = {};
142565
142731
  for (const [key4, value2] of Object.entries(state)) {
142566
142732
  const other = probe2[key4];
142567
- if (sameJson2(value2, other)) steady[key4] = value2;
142733
+ if (sameJson3(value2, other)) steady[key4] = value2;
142568
142734
  else if (isRecord4(value2) && isRecord4(other)) {
142569
142735
  const part4 = steadyPart(value2, other, `${at2}.${key4}`, omitted);
142570
142736
  if (Object.keys(part4).length > 0) steady[key4] = part4;
@@ -142607,7 +142773,7 @@ function valueAt3(root, path2) {
142607
142773
  function isRecord4(v2) {
142608
142774
  return v2 !== null && typeof v2 === "object" && !Array.isArray(v2);
142609
142775
  }
142610
- function sameJson2(a3, b3) {
142776
+ function sameJson3(a3, b3) {
142611
142777
  try {
142612
142778
  return JSON.stringify(a3) === JSON.stringify(b3);
142613
142779
  } catch {
@@ -146571,7 +146737,6 @@ function pinnedLanguageSwap(locale, appDir3) {
146571
146737
  const map2 = existsSync39(path2) ? sourceMap(parseCatalog(readFileSync43(path2, "utf8"))) : /* @__PURE__ */ new Map();
146572
146738
  return (descriptor, workerSource) => {
146573
146739
  translateWith(descriptor, map2);
146574
- translateAccessibility(descriptor, map2);
146575
146740
  const onAppear = descriptor?.payload?.modifiers?.onAppear;
146576
146741
  if (typeof onAppear?.actionId !== "string" || !onAppear.actionId.startsWith("tier5.")) return;
146577
146742
  const params = onAppear.params ??= {};
@@ -146580,24 +146745,6 @@ function pinnedLanguageSwap(locale, appDir3) {
146580
146745
  if (textCopy) params.textCopy = textCopy;
146581
146746
  };
146582
146747
  }
146583
- function translateAccessibility(node3, map2, atRoot = true, inLogicBundle = false) {
146584
- if (Array.isArray(node3)) {
146585
- for (const child3 of node3) translateAccessibility(child3, map2, false, inLogicBundle);
146586
- return;
146587
- }
146588
- if (typeof node3 !== "object" || node3 === null) return;
146589
- const record3 = node3;
146590
- for (const [key4, value2] of Object.entries(record3)) {
146591
- if (atRoot && key4 === "input") continue;
146592
- if (inLogicBundle && key4 === "bootState") continue;
146593
- if (ACCESSIBILITY_COPY.has(key4) && typeof value2 === "string") {
146594
- const translated2 = map2.get(value2);
146595
- if (translated2) record3[key4] = translated2;
146596
- } else {
146597
- translateAccessibility(value2, map2, false, atRoot && key4 === "logicBundle");
146598
- }
146599
- }
146600
- }
146601
146748
  function textCopyFor(workerSource, map2) {
146602
146749
  const found = {};
146603
146750
  for (const [source2, translation] of [...map2].sort(([a3], [b3]) => a3 < b3 ? -1 : a3 > b3 ? 1 : 0)) {
@@ -146611,14 +146758,12 @@ function appearsAsLiteral(text25, value2) {
146611
146758
  const escaped = literal3.replace(/[\u0080-\uffff]/g, (c2) => `\\u${c2.charCodeAt(0).toString(16).padStart(4, "0")}`);
146612
146759
  return escaped !== literal3 && text25.includes(escaped);
146613
146760
  }
146614
- var ACCESSIBILITY_COPY;
146615
146761
  var init_pinned_language = __esm({
146616
146762
  "../release-build/pinned-language.ts"() {
146617
146763
  init_define_HHP_CATALOG();
146618
146764
  init_locale();
146619
146765
  init_l10n();
146620
146766
  init_l10n_catalog();
146621
- ACCESSIBILITY_COPY = /* @__PURE__ */ new Set(["accessibilityLabel", "accessibilityHint", "accessibilityValue"]);
146622
146767
  }
146623
146768
  });
146624
146769
 
@@ -234815,51 +234960,51 @@ var init_preview_assets_generated = __esm({
234815
234960
  init_define_HHP_CATALOG();
234816
234961
  init_preview_assets_format();
234817
234962
  PREVIEW_ASSET_MANIFEST = [
234818
- { key: "assets/DashboardHost-Cf50hYjQ.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2985, sha256: "d5171551a158746fe9647bf83c179e779fb7ddde1bfcce3a7d21915cfe48677a" },
234819
- { key: "assets/DevDrawer-D9NQFjAF.js", contentType: "application/javascript; charset=utf-8", offset: 2993, length: 16783, sha256: "48f65d571a81a2e0cda99b6d01a8bc35a4f497872e62ce0491740014e252b03d" },
234820
- { key: "assets/IdiomCompare-DhKc7RNI.js", contentType: "application/javascript; charset=utf-8", offset: 19776, length: 1926, sha256: "efe85e18e6d1509671281f42c40ff5ce8ee0f6c87cb6a526662626339450e26e" },
234821
- { key: "assets/LightboxViewer-rbcdwGtb.js", contentType: "application/javascript; charset=utf-8", offset: 21702, length: 17382, sha256: "5f9393db712f5f7f59c12b51fbbbfbcc47d970a2302fcdb7e14c8b1742bfdf0f" },
234822
- { key: "assets/OfflineReadingBar-D2YSOiDF.js", contentType: "application/javascript; charset=utf-8", offset: 39084, length: 1646, sha256: "37c307661bd633c803ca918b84f0f20af1682d0900e595e814c3d7be2409773d" },
234823
- { key: "assets/PhonePreviewControl-C2Z1UFf-.js", contentType: "application/javascript; charset=utf-8", offset: 40730, length: 37851, sha256: "e150ce294959cb9b1e06b685d499a5dc4f557b00858b9495ded9e29aad70308f" },
234824
- { key: "assets/SchemeCompare-CK4Q5W3r.js", contentType: "application/javascript; charset=utf-8", offset: 78581, length: 1858, sha256: "95b7a0f407c7c4a5bea40a1e24be05d94041a3d22c5b8c092d952c409dc2ee80" },
234825
- { key: "assets/WixFrogTelemetrySink-CkQd9B3D.js", contentType: "application/javascript; charset=utf-8", offset: 80439, length: 3515, sha256: "4baa59220d80340e29b4a775920efe5d9bce191459fc085815f608839123c7a5" },
234963
+ { key: "assets/DashboardHost-Jc0hH0I6.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2985, sha256: "b0a71e270689a0f6ed6956541941cf7222f03b4a4652f871d5fbbce0a0072c5b" },
234964
+ { key: "assets/DevDrawer-BKZP67vB.js", contentType: "application/javascript; charset=utf-8", offset: 2993, length: 16783, sha256: "a7952615d045d8f5911b421f9338f2c69643e61c6359ea51785f14182740729f" },
234965
+ { key: "assets/IdiomCompare-BhFuwV0R.js", contentType: "application/javascript; charset=utf-8", offset: 19776, length: 1926, sha256: "81a51ef27603b7f8c987a7e90ef167c90285f7c1b15e6aef3f9a49e83790c895" },
234966
+ { key: "assets/LightboxViewer-C_6W4E6R.js", contentType: "application/javascript; charset=utf-8", offset: 21702, length: 17382, sha256: "081c5f088ace14e6f733945be7b10e865416b8bbf74e4dbdc414d15309a12dd5" },
234967
+ { key: "assets/OfflineReadingBar-11XZDCQt.js", contentType: "application/javascript; charset=utf-8", offset: 39084, length: 1646, sha256: "8ecaa34f622fcb817b2139c52be902ca10a9c06d65a8c148560a7b150a4b67a1" },
234968
+ { key: "assets/PhonePreviewControl-B0ekcyx_.js", contentType: "application/javascript; charset=utf-8", offset: 40730, length: 37851, sha256: "52b24e1ebccaba6be861f2b11e54e4054e49a9d00ba786966f20c13e6b1cbba6" },
234969
+ { key: "assets/SchemeCompare-BVOZ2b1a.js", contentType: "application/javascript; charset=utf-8", offset: 78581, length: 1858, sha256: "ef658383ccec8cc46e33e7b590e7d37bbf7d49fbe49158a9a3c5e0c7d56d6f62" },
234970
+ { key: "assets/WixFrogTelemetrySink-F_ev9OSl.js", contentType: "application/javascript; charset=utf-8", offset: 80439, length: 3515, sha256: "b8a333cf223d3b3e73fba864c3f653a37cbc040643a44bac6b4b5560b42b693f" },
234826
234971
  { key: "assets/calendar-ics-BvfIYWjG.js", contentType: "application/javascript; charset=utf-8", offset: 83954, length: 2192, sha256: "1636167041e9829ceccd3544297b86b8475c38bd2f759c4dbc17c813dc6e9254" },
234827
234972
  { key: "assets/catalog-CAoUWITw.js", contentType: "application/javascript; charset=utf-8", offset: 86146, length: 26046, sha256: "4c270ca3051f77d761aef1297125e02339d48493dd2b84a0cacf0faf41aa8cb3" },
234828
- { key: "assets/catalogFontFaces-B_h3GPaQ.js", contentType: "application/javascript; charset=utf-8", offset: 112192, length: 1111, sha256: "89f82aa26c081d49200f49842b112c14df0b6083e793d1495f6e5073866eec97" },
234973
+ { key: "assets/catalogFontFaces-BLMT6fpu.js", contentType: "application/javascript; charset=utf-8", offset: 112192, length: 1111, sha256: "f225c0ef2df9e018e9e242992dc52d33578dafbc88994cb4f80206707cf5e089" },
234829
234974
  { key: "assets/contacts-vcard-BcohPQ0m.js", contentType: "application/javascript; charset=utf-8", offset: 113303, length: 2567, sha256: "c4ff75e96cd909bbb9182c5dc78794fcebc65139fbddef2537711d774fb33ad0" },
234830
- { key: "assets/files-transfer-7CXRgZNF.js", contentType: "application/javascript; charset=utf-8", offset: 115870, length: 6446, sha256: "69fb08d3fc5e49c0a994fcbd7c47eae39ad4db0a2a02b5e1e5f6ca5c144700c1" },
234975
+ { key: "assets/files-transfer-BG2B8oLG.js", contentType: "application/javascript; charset=utf-8", offset: 115870, length: 6446, sha256: "91dc99584463d3f81a93732332edb90b050753db955619b722002e859b204d09" },
234831
234976
  { key: "assets/frogActionMap-CTMe3Bz1.js", contentType: "application/javascript; charset=utf-8", offset: 122316, length: 1172, sha256: "9f1ce4c70a680dfb902949e1f482c7e47500b69c3350cd091b1b51d674032d53" },
234832
- { key: "assets/frogApiRules-Cz8mJI-m.js", contentType: "application/javascript; charset=utf-8", offset: 123488, length: 2207, sha256: "b5a16aa9b05f993a96796b9463bd5ef1a8c39bc8ae917a9288d703f05fdbebdd" },
234977
+ { key: "assets/frogApiRules-C7F98aqM.js", contentType: "application/javascript; charset=utf-8", offset: 123488, length: 2207, sha256: "3a407322982886f093456d7f758d75729ca2d6694cb6fb0b6a5e57b379695515" },
234833
234978
  { key: "assets/frogScreenMap-S_IRnz20.js", contentType: "application/javascript; charset=utf-8", offset: 125695, length: 1067, sha256: "22b2f71e1b06df8f1e79b890d47fe42e983d37865c2cc9be753e4121764c91e1" },
234834
234979
  { key: "assets/glassPreviewBrowser-DONaOehd.js", contentType: "application/javascript; charset=utf-8", offset: 126762, length: 6578, sha256: "4402c4cddd2a564e7466cdf1e12a0e0277c0400b288e1e5eda1d23e797599d31" },
234835
234980
  { key: "assets/image-preparation-Cj4gldm6.js", contentType: "application/javascript; charset=utf-8", offset: 133340, length: 2704, sha256: "32944ea587c2f3b84389b66b50a850437560238f1c8d33b6275973ee04eee865" },
234836
- { key: "assets/index-DY7yJrkj.js", contentType: "application/javascript; charset=utf-8", offset: 136044, length: 1579523, sha256: "13180ae1fb607d58adfe9d0eb86e4f0bfda07ac72325ec3038c7d7437475bd4a" },
234837
- { key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1715567, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
234838
- { key: "assets/pdf-C_t7UQ95.js", contentType: "application/javascript; charset=utf-8", offset: 1723318, length: 488215, sha256: "df0422934aaa38861fe3fc040a30a521cc958ddcc9fee01e9202b3c6c5dbf4d6" },
234839
- { key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2211533, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
234840
- { key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2211623, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
234841
- { key: "assets/pdfDocument-C6Q3g-0Z.js", contentType: "application/javascript; charset=utf-8", offset: 3528657, length: 3470, sha256: "d188603671fb1f2b487799aba19a253321b6aef1ee769ee25eced891a3c90e87" },
234842
- { key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3532127, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
234843
- { key: "assets/scrollLinkedRuntime-CHbxkS_b.js", contentType: "application/javascript; charset=utf-8", offset: 3534393, length: 2278, sha256: "ecc87aaf4ad067e56dce7163773e8e1f20aa77d65558f8d8f257a348532f15ef" },
234844
- { key: "assets/webviewBridgeHost-BrP0Oho5.js", contentType: "application/javascript; charset=utf-8", offset: 3536671, length: 9889, sha256: "0fbe5ec1161d24e64fdd1e0d8a7614367791e93cc77e352f7f00f30f7e4087c4" },
234845
- { key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3546560, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
234846
- { key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3551170, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
234847
- { key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4039754, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
234848
- { key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4130678, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
234849
- { key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4221662, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
234850
- { key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4312642, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
234851
- { key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4403514, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
234852
- { key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4494494, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
234853
- { key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4603130, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
234854
- { key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4712214, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
234855
- { key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4821262, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
234856
- { key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 4928962, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
234857
- { key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5017070, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
234858
- { key: "index.html", contentType: "text/html; charset=utf-8", offset: 5023888, length: 4924, sha256: "07c4f58626dd1af672c54ff36295ed208646a7e8ebb4cc378d732c71e4dfa83b" },
234859
- { key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5028812, length: 11457, sha256: "6cb2b75264fa5fa2b4d28851878a5eab0712900e8b3a6c2370cc661d6d820805" },
234860
- { key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5040269, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
234861
- { key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5041440, length: 23047, sha256: "20d1459e3f896f344e478e613d0c979a0de02e81a929a45d3a0ef6a53af36441" },
234862
- { key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5064487, length: 23064, sha256: "8655cfe9c74212ec5dafecb49d2fdeb48b19f1bd8a710091e3e55631f9b4ab06" }
234981
+ { key: "assets/index-DgQpSZjn.js", contentType: "application/javascript; charset=utf-8", offset: 136044, length: 1581082, sha256: "b14cd0ceef59fd168135b6bc1c81ee284d4b8923a6a400e151f3ff3e03fdbbc9" },
234982
+ { key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1717126, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
234983
+ { key: "assets/pdf-Cz5R3omz.js", contentType: "application/javascript; charset=utf-8", offset: 1724877, length: 488215, sha256: "82ac5473f6edad4c4d0e5c0cfd460722e7e145b9f097cf708cdc97621f386d6a" },
234984
+ { key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2213092, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
234985
+ { key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2213182, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
234986
+ { key: "assets/pdfDocument-oUdIalqf.js", contentType: "application/javascript; charset=utf-8", offset: 3530216, length: 3470, sha256: "9227043afff982fb39d663665b1775afed52fb5e2be4bb8df12a1aff2a59f52c" },
234987
+ { key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3533686, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
234988
+ { key: "assets/scrollLinkedRuntime-DhkcBx66.js", contentType: "application/javascript; charset=utf-8", offset: 3535952, length: 2278, sha256: "31132c8c4cac1bdb5f9366173d92955d745420dca185348e8c81ee5875472ee5" },
234989
+ { key: "assets/webviewBridgeHost-BsBeTwKc.js", contentType: "application/javascript; charset=utf-8", offset: 3538230, length: 9889, sha256: "d685defae4c1188b967dbb2bfc9abca49eb7e0a2c55cb27fe705bb6d169b2694" },
234990
+ { key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3548119, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
234991
+ { key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3552729, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
234992
+ { key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4041313, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
234993
+ { key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4132237, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
234994
+ { key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4223221, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
234995
+ { key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4314201, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
234996
+ { key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4405073, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
234997
+ { key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4496053, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
234998
+ { key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4604689, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
234999
+ { key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4713773, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
235000
+ { key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4822821, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
235001
+ { key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 4930521, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
235002
+ { key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5018629, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
235003
+ { key: "index.html", contentType: "text/html; charset=utf-8", offset: 5025447, length: 4924, sha256: "75a894537f231385bf2e90999acc651185ec31348cd5c09e39aeb2f70e2d5932" },
235004
+ { key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5030371, length: 11457, sha256: "6cb2b75264fa5fa2b4d28851878a5eab0712900e8b3a6c2370cc661d6d820805" },
235005
+ { key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5041828, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
235006
+ { key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5042999, length: 23047, sha256: "20d1459e3f896f344e478e613d0c979a0de02e81a929a45d3a0ef6a53af36441" },
235007
+ { key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5066046, length: 23064, sha256: "8655cfe9c74212ec5dafecb49d2fdeb48b19f1bd8a710091e3e55631f9b4ab06" }
234863
235008
  ];
234864
235009
  }
234865
235010
  });
@@ -246588,7 +246733,7 @@ function toBase44Schema(spec, app2) {
246588
246733
  ...spec.rls !== void 0 ? { rls: spec.rls } : {}
246589
246734
  };
246590
246735
  }
246591
- function propsOf3(schema2) {
246736
+ function propsOf4(schema2) {
246592
246737
  const p2 = schema2?.properties;
246593
246738
  return p2 && typeof p2 === "object" && !Array.isArray(p2) ? p2 : {};
246594
246739
  }
@@ -246614,8 +246759,8 @@ function keepRemotePermissions(desired, remote, spec) {
246614
246759
  if (remote.rls === void 0) delete desired.rls;
246615
246760
  else desired.rls = remote.rls;
246616
246761
  }
246617
- const remoteProps = propsOf3(remote);
246618
- const desiredProps = propsOf3(desired);
246762
+ const remoteProps = propsOf4(remote);
246763
+ const desiredProps = propsOf4(desired);
246619
246764
  for (const f2 of spec.fields ?? []) {
246620
246765
  const live4 = remoteProps[f2.key];
246621
246766
  if (!live4 || f2.rls === void 0) continue;
@@ -246628,8 +246773,8 @@ function keepRemotePermissions(desired, remote, spec) {
246628
246773
  }
246629
246774
  function inheritUndeclaredPermissions(desired, remote, spec) {
246630
246775
  if (spec.rls === void 0 && remote.rls !== void 0) desired.rls = remote.rls;
246631
- const remoteProps = propsOf3(remote);
246632
- const desiredProps = propsOf3(desired);
246776
+ const remoteProps = propsOf4(remote);
246777
+ const desiredProps = propsOf4(desired);
246633
246778
  for (const f2 of spec.fields ?? []) {
246634
246779
  if (f2.rls === void 0 && remoteProps[f2.key]?.rls !== void 0) desiredProps[f2.key].rls = remoteProps[f2.key].rls;
246635
246780
  }
@@ -246674,8 +246819,8 @@ function planEntitySync(declared, snapshot4, opts) {
246674
246819
  }
246675
246820
  const desired = toBase44Schema(spec, app2);
246676
246821
  const drift = [];
246677
- const remoteProps = propsOf3(e2.schema);
246678
- const desiredProps = propsOf3(desired);
246822
+ const remoteProps = propsOf4(e2.schema);
246823
+ const desiredProps = propsOf4(desired);
246679
246824
  for (const [key4, p2] of Object.entries(desiredProps)) {
246680
246825
  const r3 = remoteProps[key4];
246681
246826
  if (!r3) drift.push({ kind: "add-field", detail: `field "${key4}" (${String(p2.type)}) is added` });