@vectoriox/iox-ui 5.172.0 → 5.174.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.
@@ -1,12 +1,12 @@
1
1
  import { localeDirection, LocaleDirection, NEW_NODE_STYLE_DEFAULTS, defaultElementStyleFor, elementStyleById, ownedTraitsOf, applyElementStyle, SPEC_AXES, QUIET_MOVE, QUIET_LEVELS, EntranceParam, staggerDelay, ScrubId, isScrubId, columnWordOf, contentWidthOf, stylePresetOfChoices, resolveDesignChoices, presetModes, STYLE_PRESETS, presetChoices, textWidthEm, elementStyleFace, toHexColor, relativeLuminance, sectionEdgeClass, SECTION_EDGE_TYPES, colorSchemeOf, planSectionShape, SectionShape, setSectionShape, sectionShapeOf, setSectionEdge, resolveTokenValues, designTokenRows, parseCssColour, scrubOfChoices, parseHexColor, rgbToOklab, OpticalSize, FOOTER_MIX_PROP, SECTION_SHAPE_TRAIT, LinkType, MenuTrait, menuDialogProps, MenuButtonKind, menuButtonOf, menuButtonProps, HeaderTrait, menuFormOf, MenuForm, MenuPhoneForm, menuHoverOf, menuRevealOf, decomposeCssFunctions, FILTER_FUNCTIONS, wcagContrastRatio, flavorPackById, ARRIVE_IDS, MOVE_IDS, PRELOADER_IDS, SCRUB_IDS, setColorScheme, LIST_MIX_PROP, ColorScheme, COLOR_SCHEMES, motionLanguageForPlan, headerInkOf, DEFAULT_MENU_LOOK, COLOR_SCHEME_TRAIT, colorSchemeClass, readDesignConfig, ANIMATE_IDS, auditDesignContrast, compositeOver, HeaderBehaviour, headerBehaviourOf, headerEdgeOf, COLUMN_IDS, COLUMN_SETTING } from '@vectoriox/iox-ui/design-core';
2
2
  export { HeaderInk } from '@vectoriox/iox-ui/design-core';
3
- import { SLIDER_TYPE, badgeToneOf, isAnyCompositeRoot, MarqueeRole, NO_ELEMENT_STYLE, ShopRole, AccountRole, pickTabsAutoBinds, pickAccordionAutoBinds, CardPart, SceneRole, SLIDER_PLACEMENT_TRAIT, SliderPlacement, syncSliderParts, SliderRole, CardLayout, buildCardRecipe, findByRole, CardRole, SHOP_RECIPES, ShopRecipe, bindShopPart, ShopBindTarget, MarqueeDirection, MarqueeSpeed, buildMarqueeRecipe, setMarqueeSettings, segmentedOptions, ITEM_OPEN_STATE, CARD_LAYOUTS, CARD_PARTS, BADGE_TONES, buildSegmentedRecipe, AccordionRole, buildAccordionRecipe, accordionWords, accordionItems, accordionQuestionOf, accordionAnswerOf, ACCORDION_BIND_PROP, ACCORDION_CONTENT_LIMIT, buildTabsRecipe, tabsWords, tabsTriggers, tabLabelNodeOf, TABS_LABEL_BIND_PROP, tabsPanels, tabPanelTextOf, TABS_TEXT_BIND_PROP, tabPanelImageOf, tabsListOf, tabsPanelsOf, TABS_CONTENT_LIMIT, TABS_IMAGE_BIND_PROP, ACCOUNT_RECIPES, AccountRecipe, carouselQuoteLabel, buildCarouselRecipe, SLIDE_TYPE, pickCarouselAutoBinds, buildSlideshowRecipe, buildLightboxRecipe, LIGHTBOX_LABEL, SLIDE_TO_ROW, setHeaderBehaviour, setHeaderInk, buildConsentRecipe, ConsentActionType } from '@vectoriox/iox-ui/composite-core';
3
+ import { SLIDER_TYPE, badgeToneOf, isAnyCompositeRoot, MarqueeRole, NO_ELEMENT_STYLE, ShopRole, AccountRole, POPUP_KIND_MIX, PopupKind, PopupForm, popupWords, PopupArt, POPUP_BODY_MAX_CHARS, POPUP_TITLE_MAX_WORDS, buildPopupRecipe, findByRole, PopupRole, removeFromComposite, pickTabsAutoBinds, pickAccordionAutoBinds, CardPart, SceneRole, SLIDER_PLACEMENT_TRAIT, SliderPlacement, syncSliderParts, SliderRole, CardLayout, buildCardRecipe, CardRole, SHOP_RECIPES, ShopRecipe, bindShopPart, ShopBindTarget, MarqueeDirection, MarqueeSpeed, buildMarqueeRecipe, setMarqueeSettings, segmentedOptions, ITEM_OPEN_STATE, CARD_LAYOUTS, CARD_PARTS, BADGE_TONES, buildSegmentedRecipe, AccordionRole, buildAccordionRecipe, accordionWords, accordionItems, accordionQuestionOf, accordionAnswerOf, ACCORDION_BIND_PROP, ACCORDION_CONTENT_LIMIT, buildTabsRecipe, tabsWords, tabsTriggers, tabLabelNodeOf, TABS_LABEL_BIND_PROP, tabsPanels, tabPanelTextOf, TABS_TEXT_BIND_PROP, tabPanelImageOf, tabsListOf, tabsPanelsOf, TABS_CONTENT_LIMIT, TABS_IMAGE_BIND_PROP, ACCOUNT_RECIPES, AccountRecipe, carouselQuoteLabel, buildCarouselRecipe, SLIDE_TYPE, pickCarouselAutoBinds, buildSlideshowRecipe, buildLightboxRecipe, LIGHTBOX_LABEL, SLIDE_TO_ROW, setHeaderBehaviour, setHeaderInk, buildConsentRecipe, ConsentActionType, PopupTrait, PopupArrive, popupFormOf } from '@vectoriox/iox-ui/composite-core';
4
4
  import { formPresetById, ControlType, FIELD_NODE_TYPE, FORM_NODE_TYPE, FormPresetId, FormAfterSend, FORM_AFTER_SEND_TRAIT, FORM_ACTIONS_ROLE, channelOpensNewTab, FORM_CHANNEL_ROLE, presetFormActions, planFormPresetIds, collectFormSpec, isChannelFilled } from '@vectoriox/iox-ui/forms-core';
5
5
  import { normalizeFrameSequence, filmScreensFor, VideoMode, VideoSource, FILM_PREPARED_PICTURES, FrameExtension } from '@vectoriox/iox-ui/media-core';
6
6
  import { SEO_DESCRIPTION_MAX, SEO_TITLE_MAX } from '@vectoriox/iox-ui/seo-core';
7
7
  import { VARIANT_NAME_SEPARATOR, commerceLanguage, CommerceLanguage, CHECKOUT_GATE_RULES, labelIn, CheckoutGateCode } from '@vectoriox/iox-ui/commerce-core';
8
8
  import { ParallaxDepth, parallaxShift, rangeDistance, ScrollRange, normalizeParallaxPhone, parallaxRest, rangeProgress, parallaxOffset, TextRevealBy, SCENE_LAND_TRIGGER, SceneRange, SceneProp, SceneRevealFrom, SceneEase, SCENE_TRACK_EASE } from '@vectoriox/iox-ui/scene-core';
9
- import { SCROLL_PROGRESS_TRIGGER, ELEMENT_ACTION_DESCRIPTORS, actionOfferedUnder, DISSOLVE_ACTION, resolveActionAvailability } from '@vectoriox/iox-ui/actions-core';
9
+ import { SCROLL_PROGRESS_TRIGGER, ELEMENT_ACTION_DESCRIPTORS, actionOfferedUnder, DISSOLVE_ACTION, resolveActionAvailability, POPUP_RULES, popupEnded } from '@vectoriox/iox-ui/actions-core';
10
10
  import { ConsentCategory } from '@vectoriox/iox-ui/consent-core';
11
11
 
12
12
  // GENERATED from iox-ai-guidance flavor-spec.v1.json — do not edit; re-run scripts/gen-flavor-spec.mjs
@@ -16,7 +16,7 @@ import { ConsentCategory } from '@vectoriox/iox-ui/consent-core';
16
16
  const SPEC_SITE_PLAN_SHAPE = {
17
17
  "plan": {
18
18
  "version": "'1'",
19
- "source": "sourceTemplate | sourceAi",
19
+ "source": "sourceTemplate | sourceAi | sourceImport",
20
20
  "business": "business",
21
21
  "locale?": "'en' | 'he' — the site's language (site.locales): every page's locale; 'he' reads right to left (absent = en)",
22
22
  "design": "design",
@@ -28,13 +28,23 @@ const SPEC_SITE_PLAN_SHAPE = {
28
28
  "film?": "film — the owner's film as pictures (SC6b), set by the build and placed by placeFilm; never a model's",
29
29
  "artDirection?": "artDirection — what every picture made for the site shares (M7): set by the generation from the business type and the look (generation-core artDirectionFor); never a model's",
30
30
  "direction?": "direction — what the site is built around (M8 gate 2): written with the pages, shown on the Plan step; every composed page serves it",
31
- "mixes?": "mixes — the header, the footer, the home page's opening and the body as mixes of ingredients (ingredients.md); a header or footer mix wins over its globals pattern"
31
+ "mixes?": "mixes — the header, the footer, the home page's opening and the body as mixes of ingredients (ingredients.md); a header or footer mix wins over its globals pattern",
32
+ "popup?": "popupLines — the owner's popup lines from the Plan step (popups PU-D12): their stated news (only while its line is ticked) and the newsletter tick. Set by the server from the reading and the ticks; never a model's"
33
+ },
34
+ "popupLines": {
35
+ "news?": "statedFact — the owner's news as the reading took it (harness.statedFacts.news): every number, date, price or percent in its value is in its quote",
36
+ "newsletter?": "boolean — the owner ticked \"Invite visitors to your newsletter in a popup\""
37
+ },
38
+ "statedFact": {
39
+ "value": "string — the fact, in the owner's words",
40
+ "quote": "string — the words of the prompt it came from"
32
41
  },
33
42
  "mixes": {
34
43
  "header?": "string[] — the header as <ingredient>:<word> words (site.layout.header; header ingredients HI1)",
35
44
  "footer?": "string[] — the footer as <ingredient>:<word> words (site.layout.footer; list ingredients LI5)",
36
45
  "opening?": "string[] — the home page's opening (its first screen) as <ingredient>:<word> words (site.layout.opening; award ingredients AW8): it takes the place of the home page's first section when that is a hero, the hero's words and pictures carried in; absent or empty = the home page opens with its sections as written",
37
- "body?": "string[] — the site's body as <ingredient>:<word> words (site.layout.body; award ingredients AW6): how sections meet (seam), how their grounds follow one another (rhythm), the texture and the extra kinds of section; absent or empty = straight seams, each section's ground its own"
46
+ "body?": "string[] — the site's body as <ingredient>:<word> words (site.layout.body; award ingredients AW6): how sections meet (seam), how their grounds follow one another (rhythm), the texture and the extra kinds of section; absent or empty = straight seams, each section's ground its own",
47
+ "popup?": "string[] — the site's popup as <ingredient>:<word> words (site.layout.popup.wire; popups PU3): its kind, where it sits, how it arrives and link:<page key>; absent or empty = no popup. Stamped only from the owner's popup lines (plan.popup)"
38
48
  },
39
49
  "direction": {
40
50
  "idea": "string — one sentence: what this site is about and how it should feel",
@@ -68,6 +78,10 @@ const SPEC_SITE_PLAN_SHAPE = {
68
78
  "kind": "'ai'",
69
79
  "runId": "string"
70
80
  },
81
+ "sourceImport": {
82
+ "kind": "'import'",
83
+ "scanId": "string — the site scan the plan was read from (generation-core planImport)"
84
+ },
71
85
  "business": {
72
86
  "name": "string — the brand: the header, the hero, the copyright line",
73
87
  "tagline?": "string — the hero lead and the footer line",
@@ -112,7 +126,8 @@ const SPEC_SITE_PLAN_SHAPE = {
112
126
  "quote?": "string — a field: someone's words",
113
127
  "person?": "string — a field: who said or made it",
114
128
  "link?": "string — a field: where the item leads (a route or an address)",
115
- "colour?": "string — a field: its own colour, a hex (a colour block's ground)"
129
+ "colour?": "string — a field: its own colour, a hex (a colour block's ground)",
130
+ "body?": "string — a field: its own text at length (an imported post's body) — the item page only, never a card"
116
131
  },
117
132
  "field": {
118
133
  "name": "string — unique in the type",
@@ -125,7 +140,8 @@ const SPEC_SITE_PLAN_SHAPE = {
125
140
  "count": "integer ≥ 0",
126
141
  "sample": "boolean — items are flagged isSample",
127
142
  "isPublished": "boolean",
128
- "perItem?": "per field, one string per sample: real content that wins over the template",
143
+ "perItem?": "per field, one string per sample (a list of strings for an array field): real content that wins over the template",
144
+ "importedFrom?": "string[] — one per item, the old address it was read from (Bring my site X4): the item keeps it as importedFrom; only on real items (sample false)",
129
145
  "[field]?": "the field's value — strings are templates: {n} = the item's 1-based number, {sampleImage:n} / {sampleImage:n+k} = a bundled sample image"
130
146
  },
131
147
  "cmsDataSource": {
@@ -251,6 +267,7 @@ const SPEC_SITE_ROLES = {
251
267
  "person": "who said or made it — a name (their role or place goes in meta)",
252
268
  "link": "where the item leads — its own page or an address; the card's arrow goes there",
253
269
  "colour": "its own colour (a hex) — the ground of its block; the words on it are chosen to read",
270
+ "body": "its own text at length — paragraphs, the item page's body (item.body); never on a card",
254
271
  "price": "its price — the shop's own field, shown through the money pipe in the studio currency",
255
272
  "compareAt": "its earlier price, struck through beside the price (the shop's own field)"
256
273
  };
@@ -1227,8 +1244,8 @@ const SPEC_SITE_PATTERNS = {
1227
1244
  "t": "Heading",
1228
1245
  "es": "h2",
1229
1246
  "level": "h2",
1230
- "ph": "copy",
1231
- "text": "A sentence a client actually said, in their own words.",
1247
+ "ph": "quote",
1248
+ "text": "A client’s own words go here",
1232
1249
  "tracks": [
1233
1250
  {
1234
1251
  "prop": "words",
@@ -1244,13 +1261,13 @@ const SPEC_SITE_PATTERNS = {
1244
1261
  ]
1245
1262
  }
1246
1263
  ],
1247
- "textHe": "משפט שלקוח באמת אמר, במילים שלו."
1264
+ "textHe": "כאן יופיעו המילים של לקוח"
1248
1265
  },
1249
1266
  {
1250
1267
  "t": "Text",
1251
1268
  "es": "small",
1252
- "ph": "copy",
1253
- "text": "[Client name] · [Project, city]",
1269
+ "ph": "quote",
1270
+ "text": "The client’s name",
1254
1271
  "tracks": [
1255
1272
  {
1256
1273
  "prop": "opacity",
@@ -1266,7 +1283,7 @@ const SPEC_SITE_PATTERNS = {
1266
1283
  ]
1267
1284
  }
1268
1285
  ],
1269
- "textHe": "[שם הלקוח] · [פרויקט, עיר]"
1286
+ "textHe": "שם הלקוח"
1270
1287
  }
1271
1288
  ]
1272
1289
  }
@@ -3338,7 +3355,8 @@ const SPEC_SITE_PATTERNS = {
3338
3355
  "level": "h4",
3339
3356
  "slot": "eyebrow",
3340
3357
  "max": 32,
3341
- "enter": "heading"
3358
+ "enter": "heading",
3359
+ "optional": "eyebrow"
3342
3360
  },
3343
3361
  {
3344
3362
  "t": "Heading",
@@ -3355,6 +3373,7 @@ const SPEC_SITE_PATTERNS = {
3355
3373
  "max": 180,
3356
3374
  "ph": "copy",
3357
3375
  "text": "One or two sentences that introduce this page.",
3376
+ "optional": "lead",
3358
3377
  "textHe": "משפט או שניים שמציגים את העמוד הזה."
3359
3378
  }
3360
3379
  ]
@@ -3504,6 +3523,37 @@ const SPEC_SITE_PATTERNS = {
3504
3523
  }
3505
3524
  }
3506
3525
  },
3526
+ "item.body": {
3527
+ "family": "detail",
3528
+ "imported": true,
3529
+ "label": "Item text (bound to the route item)",
3530
+ "intent": "The item's own words at length — a post's body or a project's story, in one readable column.",
3531
+ "node": {
3532
+ "t": "Section",
3533
+ "es": "section",
3534
+ "c": [
3535
+ {
3536
+ "t": "Container",
3537
+ "es": "box",
3538
+ "lay": {
3539
+ "display": "flex",
3540
+ "flexDirection": "column",
3541
+ "gap": "18px",
3542
+ "maxWidth": "720px",
3543
+ "width": "100%",
3544
+ "margin": "0px auto 0px auto"
3545
+ },
3546
+ "c": [
3547
+ {
3548
+ "t": "Text",
3549
+ "es": "body",
3550
+ "bind": "route.@body"
3551
+ }
3552
+ ]
3553
+ }
3554
+ ]
3555
+ }
3556
+ },
3507
3557
  "about.story": {
3508
3558
  "family": "story",
3509
3559
  "label": "Story beside an image",
@@ -3599,6 +3649,7 @@ const SPEC_SITE_PATTERNS = {
3599
3649
  "gap": "10px"
3600
3650
  },
3601
3651
  "enter": "content",
3652
+ "optional": "heading",
3602
3653
  "c": [
3603
3654
  {
3604
3655
  "t": "Text",
@@ -3630,6 +3681,7 @@ const SPEC_SITE_PATTERNS = {
3630
3681
  "max": 180,
3631
3682
  "ph": "copy",
3632
3683
  "text": "The one sentence a reader should remember.",
3684
+ "optional": "lead",
3633
3685
  "textHe": "המשפט האחד שקוראים צריכים לזכור."
3634
3686
  },
3635
3687
  {
@@ -3648,6 +3700,7 @@ const SPEC_SITE_PATTERNS = {
3648
3700
  "max": 900,
3649
3701
  "ph": "copy",
3650
3702
  "text": "Then what you learned, and what you do now because of it.",
3703
+ "optional": "more",
3651
3704
  "textHe": "ואז מה למדתם, ומה אתם עושים היום בזכות זה."
3652
3705
  }
3653
3706
  ]
@@ -5173,22 +5226,22 @@ const SPEC_SITE_PATTERNS = {
5173
5226
  {
5174
5227
  "t": "Text",
5175
5228
  "es": "lead",
5176
- "ph": "copy",
5177
- "text": "A sentence a client actually said, in their own words.",
5229
+ "ph": "quote",
5230
+ "text": "A client’s own words go here",
5178
5231
  "lay": {
5179
5232
  "textAlign": "center"
5180
5233
  },
5181
- "textHe": "משפט שלקוח באמת אמר, במילים שלו."
5234
+ "textHe": "כאן יופיעו המילים של לקוח"
5182
5235
  },
5183
5236
  {
5184
5237
  "t": "Text",
5185
5238
  "es": "small",
5186
- "ph": "copy",
5187
- "text": "[Client name] · [Project, city]",
5239
+ "ph": "quote",
5240
+ "text": "The client’s name",
5188
5241
  "lay": {
5189
5242
  "textAlign": "center"
5190
5243
  },
5191
- "textHe": "[שם הלקוח] · [פרויקט, עיר]"
5244
+ "textHe": "שם הלקוח"
5192
5245
  }
5193
5246
  ]
5194
5247
  }
@@ -10860,6 +10913,21 @@ const SPEC_SITE_LAYOUT = {
10860
10913
  "fingerprint": [
10861
10914
  "form"
10862
10915
  ],
10916
+ "wire": {
10917
+ "ingredients": [
10918
+ "kind",
10919
+ "form",
10920
+ "arrive"
10921
+ ],
10922
+ "never": [
10923
+ "form.centred",
10924
+ "arrive.button"
10925
+ ],
10926
+ "link": "link"
10927
+ },
10928
+ "linkFallback": [
10929
+ "contact"
10930
+ ],
10863
10931
  "refused": {
10864
10932
  "again.every-view": "every page view is the nag: the visitor closed it",
10865
10933
  "arrive.load": "at load it is an interstitial: the landing view is always the page (minimum 3 s or a real scroll)",
@@ -17589,6 +17657,8 @@ var SitePlanSourceKind;
17589
17657
  (function (SitePlanSourceKind) {
17590
17658
  SitePlanSourceKind["Template"] = "template";
17591
17659
  SitePlanSourceKind["Ai"] = "ai";
17660
+ /** Bring my site X4: read from the owner's own site (`planImport`) — its real items, its text pages. */
17661
+ SitePlanSourceKind["Import"] = "import";
17592
17662
  })(SitePlanSourceKind || (SitePlanSourceKind = {}));
17593
17663
  const FACT_KEYS = Object.keys(SPEC_SITE_FACTS);
17594
17664
  /** The label a missing fact shows, verbatim from the contract. */
@@ -17656,6 +17726,9 @@ var ContentRole;
17656
17726
  ContentRole["Link"] = "link";
17657
17727
  /** AW11-D10: its own colour (a hex) — a colour block's ground; the ink on it is chosen when the page is drawn. */
17658
17728
  ContentRole["Colour"] = "colour";
17729
+ /** Bring my site X4: its own text at length (an imported post's body, paragraphs kept) — the item's page only
17730
+ * (`item.body`), never a card or a list (`ITEM_PAGE_ONLY_ROLES`). */
17731
+ ContentRole["Body"] = "body";
17659
17732
  /** Commerce C-D21: the shop's own price — played only by the shop's fields (`SHOP_ROLES`), never a content type's. */
17660
17733
  ContentRole["Price"] = "price";
17661
17734
  /** Commerce C-D21: the shop's earlier price, struck through. */
@@ -17663,6 +17736,9 @@ var ContentRole;
17663
17736
  })(ContentRole || (ContentRole = {}));
17664
17737
  /** The roles only the shop plays (contract `site.roles` less `planShape.roles`): a content type never names them. */
17665
17738
  const SHOP_ONLY_CONTENT_ROLES = [ContentRole.Price, ContentRole.CompareAt];
17739
+ /** X4: the roles shown only on the item's own page — never a list's part (a card, a row): `listShapeOfType` and
17740
+ * `listBindingOfType` leave them out, and the model is never offered them (`plan-wire`). */
17741
+ const ITEM_PAGE_ONLY_ROLES = [ContentRole.Body];
17666
17742
  /** What each role means, verbatim from the contract — what the model reads. */
17667
17743
  const CONTENT_ROLE_MEANINGS = SPEC_SITE_ROLES;
17668
17744
  const REQUIRED_CONTENT_ROLES = SPEC_SITE_REQUIRED_ROLES;
@@ -17797,6 +17873,9 @@ var PatternPlaceholder;
17797
17873
  PatternPlaceholder["Price"] = "price";
17798
17874
  /** L2 (`proof.stat-row`): a number the studio stands behind — publish-blocking, its label shown, never a number. */
17799
17875
  PatternPlaceholder["Stat"] = "stat";
17876
+ /** iox-ui#145 (`proof.testimonial-single`, `proof.scene-words`): a client's own words or name — publish-blocking,
17877
+ * its label shown, never a slot (a plan can never fill a testimonial) and never a sample sentence. */
17878
+ PatternPlaceholder["Quote"] = "quote";
17800
17879
  })(PatternPlaceholder || (PatternPlaceholder = {}));
17801
17880
  /** CC3: what an `opens` node opens. */
17802
17881
  var PatternOpens;
@@ -17926,7 +18005,7 @@ const SITE_LIBRARY = SPEC_SITE_LIBRARY;
17926
18005
  function patternManifest(density, options = {}) {
17927
18006
  const scenes = !('animate' in options) || options.animate === SCENE_LEVEL;
17928
18007
  const store = options.sells !== false;
17929
- return Object.entries(SITE_PATTERNS).filter(([, p]) => !p.film && (scenes || !p.scene) && (store || !p.shop)).map(([id, p]) => ({
18008
+ return Object.entries(SITE_PATTERNS).filter(([, p]) => !p.film && !p.imported && (scenes || !p.scene) && (store || !p.shop)).map(([id, p]) => ({
17930
18009
  id, family: p.family, label: p.label, intent: p.intent, ...(p.global ? { global: p.global } : {}),
17931
18010
  slots: Object.fromEntries(Object.keys(patternSlotBudgets(p)).map(slot => [slot, slotBudget(p, slot, density)])),
17932
18011
  links: patternLinkSlots(p),
@@ -19615,9 +19694,15 @@ function writtenTexts(plan) {
19615
19694
  });
19616
19695
  plan.contentTypes?.forEach((type, t) => {
19617
19696
  add(`contentTypes[${t}].label`, type.label);
19618
- const { perItem, ...seed } = type.seed ?? {};
19697
+ // X4: an imported item's old address is no one's words; a list field's value is a list of strings.
19698
+ const { perItem, importedFrom: _from, ...seed } = type.seed ?? {};
19619
19699
  for (const [field, list] of Object.entries(perItem ?? {}))
19620
- list.forEach((v, k) => add(`contentTypes[${t}].seed.perItem.${field}[${k}]`, v));
19700
+ list.forEach((v, k) => {
19701
+ if (Array.isArray(v))
19702
+ v.forEach((w, j) => add(`contentTypes[${t}].seed.perItem.${field}[${k}][${j}]`, w));
19703
+ else
19704
+ add(`contentTypes[${t}].seed.perItem.${field}[${k}]`, v);
19705
+ });
19621
19706
  for (const [field, value] of Object.entries(seed)) {
19622
19707
  const values = Array.isArray(value) ? value : [value];
19623
19708
  values.forEach((v, k) => add(`contentTypes[${t}].seed.${field}${Array.isArray(value) ? `[${k}]` : ''}`, v));
@@ -20524,14 +20609,14 @@ function layoutWireJsonSchema(options = {}) {
20524
20609
  : {};
20525
20610
  return closed$1({ ...page, sections: listOf$2(section, '4..8 sections') }, 'one composed page in the layout language');
20526
20611
  }
20527
- const nonEmpty$2 = (v) => typeof v === 'string' && v.trim() !== '';
20612
+ const nonEmpty$3 = (v) => typeof v === 'string' && v.trim() !== '';
20528
20613
  const num = (v, fallback = 0) => (typeof v === 'number' && Number.isFinite(v) ? v : fallback);
20529
20614
  const strings$1 = (v) => (Array.isArray(v) ? v.filter((x) => typeof x === 'string') : []);
20530
20615
  function expandForm(l, preset) {
20531
20616
  const form = { preset: preset };
20532
20617
  const options = {};
20533
20618
  for (const s of Array.isArray(l['slots']) ? l['slots'] : []) {
20534
- if (!isPlainObject(s) || !nonEmpty$2(s['text']))
20619
+ if (!isPlainObject(s) || !nonEmpty$3(s['text']))
20535
20620
  continue;
20536
20621
  const slot = String(s['slot']);
20537
20622
  const words = String(s['text']).trim();
@@ -20549,7 +20634,7 @@ function expandForm(l, preset) {
20549
20634
  function expandGallery(l, flags, variant) {
20550
20635
  const captions = strings$1(l['items']);
20551
20636
  const gallery = {
20552
- slides: strings$1(l['photos']).map((id, i) => ({ photo: { id }, ...(nonEmpty$2(captions[i]) ? { caption: captions[i] } : {}) })),
20637
+ slides: strings$1(l['photos']).map((id, i) => ({ photo: { id }, ...(nonEmpty$3(captions[i]) ? { caption: captions[i] } : {}) })),
20553
20638
  };
20554
20639
  if (GALLERY_EFFECTS.includes(variant))
20555
20640
  gallery.effect = variant;
@@ -20561,7 +20646,7 @@ function expandGallery(l, flags, variant) {
20561
20646
  gallery[f] = true;
20562
20647
  if (flags.has('autoplay'))
20563
20648
  gallery.autoplay = LAYOUT_WIRE_AUTOPLAY_MS;
20564
- if (nonEmpty$2(l['source']))
20649
+ if (nonEmpty$3(l['source']))
20565
20650
  gallery.source = String(l['source']).trim();
20566
20651
  const list = expandListMix(l, gallery);
20567
20652
  if (list)
@@ -20642,7 +20727,7 @@ function expandLayer(l, beat) {
20642
20727
  col: [box[0] ?? 1, box[1] ?? 2],
20643
20728
  row: [box[2] ?? 1, box[3] ?? 2],
20644
20729
  };
20645
- if (nonEmpty$2(l['text']))
20730
+ if (nonEmpty$3(l['text']))
20646
20731
  out.text = String(l['text']);
20647
20732
  const items = strings$1(l['items']);
20648
20733
  if (items.length && kind !== 'gallery')
@@ -20655,19 +20740,19 @@ function expandLayer(l, beat) {
20655
20740
  out.form = expandForm(l, FORM_PRESETS.includes(variant) ? variant : 'contact');
20656
20741
  if (kind === 'button' && BUTTON_VARIANTS.includes(variant))
20657
20742
  out.variant = variant;
20658
- if (nonEmpty$2(l['size']) && l['size'] !== NONE$3)
20743
+ if (nonEmpty$3(l['size']) && l['size'] !== NONE$3)
20659
20744
  out.size = String(l['size']);
20660
- if (nonEmpty$2(l['color']))
20745
+ if (nonEmpty$3(l['color']))
20661
20746
  out.color = String(l['color']);
20662
- if (nonEmpty$2(l['align']))
20747
+ if (nonEmpty$3(l['align']))
20663
20748
  out.align = String(l['align']);
20664
20749
  if (num(l['z']))
20665
20750
  out.z = num(l['z']);
20666
- if (nonEmpty$2(l['bleed']) && l['bleed'] !== NONE$3)
20751
+ if (nonEmpty$3(l['bleed']) && l['bleed'] !== NONE$3)
20667
20752
  out.bleed = String(l['bleed']);
20668
20753
  if (num(l['rotate']))
20669
20754
  out.rotate = num(l['rotate']);
20670
- if (nonEmpty$2(l['to']))
20755
+ if (nonEmpty$3(l['to']))
20671
20756
  out.to = String(l['to']).trim();
20672
20757
  if (flags.has('scrim'))
20673
20758
  out.scrim = true;
@@ -20686,14 +20771,14 @@ function expandLayer(l, beat) {
20686
20771
  out.enter = enter;
20687
20772
  if (out.enter)
20688
20773
  out.beat = beat;
20689
- if (nonEmpty$2(l['depth']) && l['depth'] !== NONE$3)
20774
+ if (nonEmpty$3(l['depth']) && l['depth'] !== NONE$3)
20690
20775
  out.depth = String(l['depth']);
20691
20776
  if (num(l['inner']))
20692
20777
  out.inner = num(l['inner']);
20693
20778
  const motion = (Array.isArray(l['motion']) ? l['motion'] : []).filter(isPlainObject).map(expandTrack);
20694
20779
  if (motion.length)
20695
20780
  out.motion = motion;
20696
- if (nonEmpty$2(l['carry']) && l['carry'] !== NONE$3)
20781
+ if (nonEmpty$3(l['carry']) && l['carry'] !== NONE$3)
20697
20782
  out.carry = String(l['carry']).trim();
20698
20783
  return out;
20699
20784
  }
@@ -20713,7 +20798,7 @@ function expandSection(s) {
20713
20798
  const hold = Math.max(0, Math.round(num(s['hold'])));
20714
20799
  const wired = (Array.isArray(s['layers']) ? s['layers'] : []).filter(isPlainObject);
20715
20800
  // RD-D20: a section whose ONLY layer names a bound part, a block or a kept section IS that part — a section place.
20716
- const whole = wired.length === 1 && nonEmpty$2(wired[0]['carry']) && isSectionCarryHandle(String(wired[0]['carry']).trim())
20801
+ const whole = wired.length === 1 && nonEmpty$3(wired[0]['carry']) && isSectionCarryHandle(String(wired[0]['carry']).trim())
20717
20802
  ? String(wired[0]['carry']).trim() : null;
20718
20803
  if (whole)
20719
20804
  return { id: String(s['id'] ?? ''), screens: 1, rows: 1, layers: [], phone: [], carry: whole };
@@ -20781,7 +20866,7 @@ function layerToWire(l) {
20781
20866
  ].filter((x) => !!x);
20782
20867
  const slots = f
20783
20868
  ? [
20784
- ...['title', 'intro', 'submit', 'successTitle', 'successText'].filter(k => nonEmpty$2(f[k])).map(k => ({ slot: k, text: String(f[k]) })),
20869
+ ...['title', 'intro', 'submit', 'successTitle', 'successText'].filter(k => nonEmpty$3(f[k])).map(k => ({ slot: k, text: String(f[k]) })),
20785
20870
  ...(f.channel?.label ? [{ slot: 'channel', text: f.channel.label }] : []),
20786
20871
  ...Object.entries(f.options ?? {}).flatMap(([slot, words]) => (words ?? []).map(t => ({ slot, text: t }))),
20787
20872
  ]
@@ -21356,6 +21441,8 @@ var ListSayCode;
21356
21441
  ListSayCode["PackshotNotPlain"] = "list-packshot-not-plain";
21357
21442
  ListSayCode["TitleOnPhotoParts"] = "list-title-on-photo-parts";
21358
21443
  ListSayCode["StripsNeedPictures"] = "list-strips-need-pictures";
21444
+ /** vectoriox/iox-ui#128: a deck in a held Scene is turned by the scroll and rests mid-turn — a row instead. */
21445
+ ListSayCode["DeckHeld"] = "list-deck-held";
21359
21446
  ListSayCode["StripsAtMost"] = "list-strips-at-most";
21360
21447
  /** The business type's lists never take this arrangement (L-D12). */
21361
21448
  ListSayCode["NeverArrange"] = "list-never-arrange";
@@ -21447,6 +21534,10 @@ const LIST_SAY_WORDS = {
21447
21534
  en: () => 'strips need a picture in every item — a still grid instead',
21448
21535
  he: () => 'רצועות צריכות תמונה בכל פריט — במקומן רשת שעומדת במקום',
21449
21536
  },
21537
+ 'list-deck-held': {
21538
+ en: r => `a deck the scroll turns in a held section rests between two cards when the scroll stops — ${r.m('instead')}`,
21539
+ he: r => `חפיסה שהגלילה מסובבת בקטע מוחזק נעצרת בין שני קלפים כשהגלילה נעצרת — ${r.m('instead')}`,
21540
+ },
21450
21541
  'list-strips-at-most': {
21451
21542
  en: r => `${r.v('max')} strips fit at most — "${r.v('alias')}" has ${r.v('items')}: ${r.m('instead')}`,
21452
21543
  he: r => `נכנסות לכל היותר ${r.v('max')} רצועות — ב־"${r.v('alias')}" יש ${r.v('items')}: ${r.m('instead')}`,
@@ -21650,7 +21741,7 @@ const inList$1 = (values, v) => typeof v === 'string' && values.includes(v);
21650
21741
  const enumValues = (e) => Object.values(e);
21651
21742
  /** The words a refusal names: the DRAWN ones only — a refusal is the model's next turn, and a waiting word is never offered. */
21652
21743
  const allowed = (k) => listBuiltWords(k).join(' | ');
21653
- const has$1 = (list, v) => list.includes(v);
21744
+ const has$2 = (list, v) => list.includes(v);
21654
21745
  /** The words a repaired mix is said in (the brief and the owner read them). */
21655
21746
  const say$1 = (arrange) => listMeaning('arrange', arrange);
21656
21747
  /** An arrangement, as a value a sentence names (list-words.ts says it in the owner's language). */
@@ -21793,10 +21884,16 @@ function checkList(mix, shape, layer, never, options = {}) {
21793
21884
  }
21794
21885
  // L-D12: the business's art direction — an arrangement its lists never take becomes a row.
21795
21886
  const why = { why: never?.say.join(' ') ?? '', whyHe: never?.sayHe?.join(' ') ?? '' };
21796
- if (never && has$1(never.arranges, next.arrange)) {
21887
+ if (never && has$2(never.arranges, next.arrange)) {
21797
21888
  repair(ListSayCode.NeverArrange, { ...why, instead: arr(LayoutListArrange.Row) });
21798
21889
  next.arrange = LayoutListArrange.Row;
21799
21890
  }
21891
+ // vectoriox/iox-ui#128: a held section turns its list by the scroll, and a scroll can stop anywhere — a deck would rest
21892
+ // mid-turn, two cards crossing. A row turned by the scroll stays a strip of whole items side by side.
21893
+ if (options.held && next.arrange === LayoutListArrange.Deck) {
21894
+ repair(ListSayCode.DeckHeld, { instead: arr(LayoutListArrange.Row) });
21895
+ next.arrange = LayoutListArrange.Row;
21896
+ }
21800
21897
  // AW11: round-two arrangements — pictures where they need them, the counts they are drawn at.
21801
21898
  const arrangeRefusal = listWordRefusal('arrange', next.arrange, shape);
21802
21899
  if (arrangeRefusal === ListWordRefusal.NoPictures) {
@@ -21854,11 +21951,11 @@ function checkList(mix, shape, layer, never, options = {}) {
21854
21951
  delete next.standout;
21855
21952
  }
21856
21953
  else {
21857
- if (has$1(R.onlyRow.who, next.standout.who) && !row && !has$1(LIST_RULES.middle ?? [], arrange)) {
21954
+ if (has$2(R.onlyRow.who, next.standout.who) && !row && !has$2(LIST_RULES.middle ?? [], arrange)) {
21858
21955
  repair(ListSayCode.RowsOnlyWho, { who: listWordRef('who', next.standout.who) });
21859
21956
  next.standout.who = LayoutListWho.First;
21860
21957
  }
21861
- if (next.standout.how && has$1(R.onlyStrips.how, next.standout.how)) {
21958
+ if (next.standout.how && has$2(R.onlyStrips.how, next.standout.how)) {
21862
21959
  repair(ListSayCode.StripsOnlyHow, { how: listWordRef('how', next.standout.how) });
21863
21960
  next.standout.how = LayoutListHow.Bigger;
21864
21961
  }
@@ -21869,7 +21966,7 @@ function checkList(mix, shape, layer, never, options = {}) {
21869
21966
  next.standout = { who: LIST_RULES.rowsStandout.who, how: LIST_RULES.rowsStandout.how };
21870
21967
  }
21871
21968
  // How the visitor moves through them — never a way the business's lists never move (L-D12).
21872
- const banned = never ? next.move.filter(m => has$1(never.moves, m)) : [];
21969
+ const banned = never ? next.move.filter(m => has$2(never.moves, m)) : [];
21873
21970
  if (banned.length) {
21874
21971
  repair(ListSayCode.NeverMove, { ...why, moves: listWordRefs('move', banned) });
21875
21972
  next.move = next.move.filter(m => !banned.includes(m));
@@ -21890,16 +21987,16 @@ function checkList(mix, shape, layer, never, options = {}) {
21890
21987
  repair(ListSayCode.DriftNeedsPictures, { alias: shape.alias });
21891
21988
  next.move = next.move.filter(m => m !== LayoutListMove.Rows);
21892
21989
  }
21893
- const moving = has$1(R.moving, arrange) || (arrange === LayoutListArrange.Fan && next.move.length > 0);
21990
+ const moving = has$2(R.moving, arrange) || (arrange === LayoutListArrange.Fan && next.move.length > 0);
21894
21991
  if (!moving && next.move.length) {
21895
21992
  repair(ListSayCode.StillNoMove, { arrange: arr(arrange), moves: listWordRefs('move', next.move) });
21896
21993
  next.move = [];
21897
21994
  }
21898
21995
  if (moving) {
21899
- const onlyRow = next.move.filter(m => has$1(R.onlyRow.move, m));
21996
+ const onlyRow = next.move.filter(m => has$2(R.onlyRow.move, m));
21900
21997
  if (onlyRow.length && !row) {
21901
21998
  repair(ListSayCode.RowOnlyMove, { moves: listWordRefs('move', onlyRow) });
21902
- next.move = next.move.filter(m => !has$1(R.onlyRow.move, m));
21999
+ next.move = next.move.filter(m => !has$2(R.onlyRow.move, m));
21903
22000
  }
21904
22001
  if (next.move.includes(LayoutListMove.Page) && next.move.length > 1) {
21905
22002
  repair(ListSayCode.PageAlone);
@@ -21919,10 +22016,10 @@ function checkList(mix, shape, layer, never, options = {}) {
21919
22016
  next.move = [LayoutListMove.Drag];
21920
22017
  }
21921
22018
  }
21922
- const stripHovers = next.hover.filter(h => has$1(R.onlyStrips.hover, h));
22019
+ const stripHovers = next.hover.filter(h => has$2(R.onlyStrips.hover, h));
21923
22020
  if (stripHovers.length && !strips) {
21924
22021
  repair(ListSayCode.StripsOnlyHover, { hovers: listWordRefs('hover', stripHovers) });
21925
- next.hover = next.hover.filter(h => !has$1(R.onlyStrips.hover, h));
22022
+ next.hover = next.hover.filter(h => !has$2(R.onlyStrips.hover, h));
21926
22023
  }
21927
22024
  // AW11: hover words that need what the list may not have (one table), and the hover tilt — a still card's.
21928
22025
  const unread = next.hover.filter(h => listWordRefusal('hover', h, shape) !== null && listWordRefusal('hover', h, shape) !== ListWordRefusal.ProOnly);
@@ -21943,12 +22040,12 @@ function checkList(mix, shape, layer, never, options = {}) {
21943
22040
  if (new Set(next.hover).size !== next.hover.length)
21944
22041
  next.hover = [...new Set(next.hover)];
21945
22042
  // AW11-D15: what is seen at once is there at once — no clip-up in the first screen.
21946
- if (options.firstScreen && has$1(LIST_RULES.notFirstScreen.arrive ?? [], next.arrive)) {
22043
+ if (options.firstScreen && has$2(LIST_RULES.notFirstScreen.arrive ?? [], next.arrive)) {
21947
22044
  repair(ListSayCode.FirstScreen, { arrive: listWordRef('arrive', next.arrive) });
21948
22045
  next.arrive = LayoutListArrive.Together;
21949
22046
  }
21950
22047
  // A phone.
21951
- if (has$1(R.neverSwipe, arrange) && next.phone === LayoutListPhone.Swipe) {
22048
+ if (has$2(R.neverSwipe, arrange) && next.phone === LayoutListPhone.Swipe) {
21952
22049
  repair(ListSayCode.NoSwipe, { arrange: arr(arrange) });
21953
22050
  next.phone = LayoutListPhone.Stack;
21954
22051
  }
@@ -21977,11 +22074,11 @@ function pageListIssues(page) {
21977
22074
  const first = seen.get(mix.arrange);
21978
22075
  if (first)
21979
22076
  issues.push({ code: LayoutIssueCode.Sameness, path, message: `${first} is already ${say$1(mix.arrange)} — arrange this list another way` });
21980
- else if (leaning && has$1(LIST_RULES.leaning, mix.arrange))
22077
+ else if (leaning && has$2(LIST_RULES.leaning, mix.arrange))
21981
22078
  issues.push({ code: LayoutIssueCode.Sameness, path, message: `${leaning} already leans — one leaning list a page; arrange this one straight` });
21982
22079
  else
21983
22080
  seen.set(mix.arrange, `sections[${si}]`);
21984
- if (!leaning && has$1(LIST_RULES.leaning, mix.arrange))
22081
+ if (!leaning && has$2(LIST_RULES.leaning, mix.arrange))
21985
22082
  leaning = `sections[${si}]`;
21986
22083
  }));
21987
22084
  return issues;
@@ -23457,7 +23554,7 @@ function examineLayout(page, ctx, carried, given) {
23457
23554
  if (g.list) {
23458
23555
  if (g.source === undefined)
23459
23556
  add(LayoutIssueCode.Content, `${lp}.gallery.source`, 'a list section names the list it shows');
23460
- issues.push(...checkList(g.list, ctx.listShapes?.find(x => x.alias === g.source) ?? null, lp, ctx.listNever, { tier: ctx.tier, firstScreen: i === 0 }));
23557
+ issues.push(...checkList(g.list, ctx.listShapes?.find(x => x.alias === g.source) ?? null, lp, ctx.listNever, { tier: ctx.tier, firstScreen: i === 0, held: !!s.pin }));
23461
23558
  }
23462
23559
  if (!g.scroll)
23463
23560
  swappable++;
@@ -25010,7 +25107,7 @@ const NAV_STYLE = 'nav';
25010
25107
  const DISPLAY = 'display';
25011
25108
  const NONE$2 = 'none';
25012
25109
  const CLICK = 'click';
25013
- const HOME_ROUTE = '/';
25110
+ const HOME_ROUTE$1 = '/';
25014
25111
  const COMPOSED$3 = { releaseLayoutDefaults: true };
25015
25112
  /** The words the parts carry — site copy, editable like any other (the composer writes English copy). */
25016
25113
  const NAV_SHAPE_COPY = {
@@ -25378,8 +25475,8 @@ function moreItem(kit, drawerId, words) {
25378
25475
  /** Home first, then the header's pages: the header reaches Home through its brand, a phone menu names it. */
25379
25476
  function withHome(root, pages, words) {
25380
25477
  const brand = find([root], NavRole.Brand);
25381
- const home = brand && isPageLink(brand) && prop(brand, 'pageRoute') === HOME_ROUTE && !pages.some(p => p.route === HOME_ROUTE)
25382
- ? [{ label: words.home, route: HOME_ROUTE }] : [];
25478
+ const home = brand && isPageLink(brand) && prop(brand, 'pageRoute') === HOME_ROUTE$1 && !pages.some(p => p.route === HOME_ROUTE$1)
25479
+ ? [{ label: words.home, route: HOME_ROUTE$1 }] : [];
25383
25480
  return [...home, ...pages];
25384
25481
  }
25385
25482
  /** The bar's pages: Home first (a bottom bar's customary first stop), capped. */
@@ -25666,7 +25763,7 @@ function addBarItem(globals, options = {}) {
25666
25763
  const linked = new Set(kids.filter(c => c.role === NavRole.BarItem).map(c => prop(c, 'pageRoute')));
25667
25764
  const words = menuWords(options.locale);
25668
25765
  const page = barPages(root, phoneMenuPages(root, options.pages).pages, BAR_ITEMS_MAX + 1, words).find(p => !linked.has(p.route))
25669
- ?? { label: words.home, route: HOME_ROUTE };
25766
+ ?? { label: words.home, route: HOME_ROUTE$1 };
25670
25767
  const item = barItem(makeKit(out, root.id, options.newId), kids.length, page);
25671
25768
  const more = kids.findIndex(c => c.role === NavRole.More);
25672
25769
  if (more >= 0)
@@ -27009,6 +27106,163 @@ function openingRecipe(mix, ctx) {
27009
27106
  };
27010
27107
  }
27011
27108
 
27109
+ const P = SPEC_SITE_LAYOUT.popup;
27110
+ /** The wire's link word (`link:<page key>`) — a page of the plan, never an ingredient of the table. */
27111
+ const POPUP_LINK_WORD = P.wire.link;
27112
+ /** The global's id — one popup per site. */
27113
+ const POPUP_GLOBAL_ID = 'popup';
27114
+ class PopupMixError extends Error {
27115
+ }
27116
+ /** The words on the wire: `<ingredient>:<word>` for every word of the wire's ingredients but the `never` ones, then the
27117
+ * link (`link:<page key>`, any page of the plan — written by the model, so it is not a closed list). */
27118
+ function popupWireWords() {
27119
+ return P.wire.ingredients.flatMap(k => (P.ingredients[k] ?? []).map(w => `${k}:${w}`)).filter(w => !P.wire.never.includes(w.replace(':', '.')));
27120
+ }
27121
+ /** What a popup word means (the contract's meanings), in English or Hebrew. */
27122
+ function popupMeaning(ingredient, word, locale) {
27123
+ const at = `${ingredient}.${word}`;
27124
+ return (locale === 'he' ? P.meaningsHe?.[at] : undefined) ?? P.meanings[at] ?? word;
27125
+ }
27126
+ /** The ingredients the wire carries, in the contract's order. */
27127
+ const POPUP_WIRE_INGREDIENTS = P.wire.ingredients;
27128
+ /** The words back into a mix. Refuses an unknown word and two words for one ingredient. A word the wire never OFFERS
27129
+ * (centred, button) still reads — `checkPopup` mends it (a site is never refused for its popup). */
27130
+ function popupMixFromWords(words) {
27131
+ const out = {};
27132
+ for (const pair of words) {
27133
+ const text = String(pair);
27134
+ const at = text.indexOf(':');
27135
+ const [k, w] = at < 0 ? [text, ''] : [text.slice(0, at), text.slice(at + 1)];
27136
+ if (!w || (k !== POPUP_LINK_WORD && !(P.wire.ingredients.includes(k) && (P.ingredients[k] ?? []).includes(w)))) {
27137
+ throw new PopupMixError(`"${text}" is no popup word (${P.wire.ingredients.join(', ')} or ${POPUP_LINK_WORD}:<page key>)`);
27138
+ }
27139
+ if (out[k] !== undefined && out[k] !== w)
27140
+ throw new PopupMixError(`a popup has one ${k} ("${out[k]}" and "${w}")`);
27141
+ out[k] = w;
27142
+ }
27143
+ return out;
27144
+ }
27145
+ /** A plan's popup words (`mixes.popup`), or null when it has none. */
27146
+ function popupMixOfPlan(plan) {
27147
+ const words = plan.mixes?.popup;
27148
+ return words?.length ? popupMixFromWords(words) : null;
27149
+ }
27150
+ var PopupRefusal;
27151
+ (function (PopupRefusal) {
27152
+ /** A figure in the news the owner's words do not hold. */
27153
+ PopupRefusal["Figure"] = "popup-figure";
27154
+ /** The news is longer than a popup holds — the owner's words are never cut. */
27155
+ PopupRefusal["TooLong"] = "popup-too-long";
27156
+ })(PopupRefusal || (PopupRefusal = {}));
27157
+ const DIGITS = /\d+/g;
27158
+ /** The figures (runs of digits) in `text` that `owner` does not hold — a date, a price, a percent or a count the news
27159
+ * gained between the owner's words and the popup. Stricter than the plan's `factIssues` on purpose: there a figure is
27160
+ * judged by its shape and a bare number from three digits; a popup is a claim to a passer-by, so every figure counts. */
27161
+ function figuresNotIn(text, owner) {
27162
+ const own = new Set(owner.match(DIGITS) ?? []);
27163
+ return [...new Set((text.match(DIGITS) ?? []).filter(d => !own.has(d)))];
27164
+ }
27165
+ const nonEmpty$2 = (s) => typeof s === 'string' && s.trim().length > 0;
27166
+ const stated = (fact) => !!fact && nonEmpty$2(fact.value) && nonEmpty$2(fact.quote);
27167
+ const wordCount$1 = (s) => s.trim().split(/\s+/).filter(Boolean).length;
27168
+ const generated = (form) => P.generatedForms.includes(form) && !P.wire.never.includes(`form.${form}`);
27169
+ const named = (kind) => POPUP_KIND_MIX[kind];
27170
+ /** The page the action leads to: the page the words name, else the first page of the fallback archetypes; never the home
27171
+ * page and never a page per item (a route with a parameter). */
27172
+ function linkedPage(plan, key, said) {
27173
+ const reachable = (p) => !p.isHome && p.route !== '/' && !p.route.includes(':');
27174
+ if (key !== undefined) {
27175
+ const page = plan.pages.find(p => p.key === key);
27176
+ if (page && reachable(page))
27177
+ return { route: page.route, name: page.name };
27178
+ said.push(`the popup's link "${key}" is no page it can open — it leads to ${P.linkFallback.join(' or ')} if the site has one`);
27179
+ }
27180
+ const fallback = plan.pages.find(p => reachable(p) && !!p.archetype && P.linkFallback.includes(p.archetype));
27181
+ return fallback ? { route: fallback.route, name: fallback.name } : null;
27182
+ }
27183
+ /**
27184
+ * The popup a plan makes (R-H6): only from the owner's lines; the model's words mended to what a generated popup may be
27185
+ * (each mend said). No line, no popup — the words are dropped, said.
27186
+ */
27187
+ function checkPopup(plan) {
27188
+ const said = [];
27189
+ let words = {};
27190
+ try {
27191
+ words = popupMixOfPlan(plan) ?? {};
27192
+ }
27193
+ catch { /* the validator names the word */ }
27194
+ const news = stated(plan.popup?.news) ? plan.popup.news : null;
27195
+ const newsletter = plan.popup?.newsletter === true;
27196
+ const hasWords = !!plan.mixes?.popup?.length;
27197
+ if (!news && !newsletter) {
27198
+ if (hasWords)
27199
+ said.push("the plan's popup words are left out — the owner's lines ask for no popup");
27200
+ return { popup: null, said, refused: null };
27201
+ }
27202
+ // The kind follows the owner's line: news is an announcement or an offer, the tick alone a newsletter.
27203
+ const backed = (k) => (k === PopupKind.Newsletter ? newsletter : !!news);
27204
+ let kind = words.kind ?? (news ? P.defaults['kind'] : PopupKind.Newsletter);
27205
+ if (!backed(kind)) {
27206
+ const instead = news ? P.defaults['kind'] : PopupKind.Newsletter;
27207
+ said.push(`the popup is ${instead === PopupKind.Newsletter ? 'the newsletter invitation' : 'the owner\'s news'}, not ${kind} — that is the line the owner ticked`);
27208
+ kind = instead;
27209
+ }
27210
+ let form = words.form ?? named(kind).form;
27211
+ if (!generated(form)) {
27212
+ const instead = generated(named(kind).form) ? named(kind).form : PopupForm.Corner;
27213
+ said.push(`a generated popup is never ${form} — it sits as ${instead}`);
27214
+ form = instead;
27215
+ }
27216
+ let arrive = words.arrive ?? named(kind).arrive;
27217
+ if (P.wire.never.includes(`arrive.${arrive}`)) {
27218
+ said.push(`a generated popup arrives by itself (${named(kind).arrive}), never only by ${arrive}`);
27219
+ arrive = named(kind).arrive;
27220
+ }
27221
+ const lang = plan.locale ?? DEFAULT_SITE_LOCALE;
27222
+ const label = popupWords(lang).label;
27223
+ const base = { kind, form, arrive, again: named(kind).again, art: PopupArt.None };
27224
+ if (kind === PopupKind.Newsletter) {
27225
+ if (words.link !== undefined)
27226
+ said.push('a newsletter popup has its form as its action — the link is left out');
27227
+ return { popup: { ...base, title: label[kind], body: '', actionRoute: null, actionLabel: '' }, said, refused: null };
27228
+ }
27229
+ const value = news.value.trim();
27230
+ const figures = figuresNotIn(value, news.quote);
27231
+ if (figures.length) {
27232
+ return { popup: null, said, refused: { code: PopupRefusal.Figure, said: `no popup: "${figures.join('", "')}" in the news is not in the owner's words` } };
27233
+ }
27234
+ if (value.length > POPUP_BODY_MAX_CHARS) {
27235
+ return { popup: null, said, refused: { code: PopupRefusal.TooLong, said: `no popup: the news is longer than ${POPUP_BODY_MAX_CHARS} characters — the owner's words are never cut` } };
27236
+ }
27237
+ // A short news is the title itself; a longer one sits under the kind's name.
27238
+ const short = wordCount$1(value) <= POPUP_TITLE_MAX_WORDS;
27239
+ const page = linkedPage(plan, words.link, said);
27240
+ return {
27241
+ popup: { ...base, title: short ? value : label[kind], body: short ? '' : value, actionRoute: page?.route ?? null, actionLabel: page?.name ?? '' },
27242
+ said,
27243
+ refused: null,
27244
+ };
27245
+ }
27246
+ /** The popup's fingerprint token (`popup:<form>`, the contract's `POPUP.fingerprint`), or null — recorded, never a refusal. */
27247
+ function popupTokenOf(popup) {
27248
+ return popup ? `popup:${P.fingerprint.map(k => popup[k]).join('/')}` : null;
27249
+ }
27250
+ /**
27251
+ * The popup's global, stamped through the palette's recipe (R-H1) with the composer's factory: a global among the BEFORE
27252
+ * globals, its empty body left out. `newsletterForm` makes the newsletter preset form (the composer's own forms path).
27253
+ */
27254
+ function composePopup(planned, create, lang, newsletterForm) {
27255
+ const root = buildPopupRecipe(create, {
27256
+ kind: planned.kind, lang, title: planned.title, body: planned.body, form: planned.form, arrive: planned.arrive, again: planned.again,
27257
+ art: planned.art, actionRoute: planned.actionRoute, actionLabel: planned.actionLabel,
27258
+ newsletterForm: planned.kind === PopupKind.Newsletter ? newsletterForm() : null,
27259
+ });
27260
+ const body = findByRole(root, PopupRole.Body);
27261
+ if (body && !planned.body)
27262
+ removeFromComposite(root, body);
27263
+ return root;
27264
+ }
27265
+
27012
27266
  const LIST_RECIPES = {
27013
27267
  [PatternRecipe.Accordion]: { picks: f => ({ ...pickAccordionAutoBinds(f) }), required: ['question', 'answer'], needs: 'short-text field for the question and long-text field for the answer' },
27014
27268
  [PatternRecipe.Tabs]: { picks: f => ({ ...pickTabsAutoBinds(f) }), required: ['label', 'text'], needs: 'short-text field for the tab and long-text field for its panel' },
@@ -28054,6 +28308,7 @@ const SHAPE = SPEC_SITE_PLAN_SHAPE;
28054
28308
  const PLAN_KEYS = shapeKeys(SHAPE['plan']);
28055
28309
  const TEMPLATE_SOURCE_KEYS = shapeKeys(SHAPE['sourceTemplate']);
28056
28310
  const AI_SOURCE_KEYS = shapeKeys(SHAPE['sourceAi']);
28311
+ const IMPORT_SOURCE_KEYS = shapeKeys(SHAPE['sourceImport']);
28057
28312
  const BUSINESS_KEYS = shapeKeys(SHAPE['business']);
28058
28313
  const DESIGN_REQUIRED = requiredShapeKeys(SHAPE['design']);
28059
28314
  const DESIGN_KEYS = shapeKeys(SHAPE['design']);
@@ -28062,12 +28317,16 @@ const ROLE_KEYS$1 = shapeKeys(SHAPE['roles']);
28062
28317
  const PAGE_SEO_KEYS = shapeKeys(SHAPE['pageSeo']);
28063
28318
  const ARRAY_TYPE = 'array';
28064
28319
  const FIELD_KEYS = shapeKeys(SHAPE['field']);
28065
- const SLUG_FIELD = 'slug';
28320
+ const SLUG_FIELD$1 = 'slug';
28066
28321
  const SEED_FIXED_KEYS = shapeKeys(SHAPE['seed']);
28322
+ /** X4: the seed key naming each real item's old address (`ContentSeedPlan.importedFrom`). */
28323
+ const IMPORTED_FROM = 'importedFrom';
28067
28324
  const CMS_SOURCE_KEYS = shapeKeys(SHAPE['cmsDataSource']);
28068
28325
  const RELATIVE_SOURCE_KEYS = shapeKeys(SHAPE['relativeDataSource']);
28069
28326
  const SHOP_SOURCE_KEYS = shapeKeys(SHAPE['shopDataSource']);
28070
28327
  const SHOP_KEYS = shapeKeys(SHAPE['shop']);
28328
+ const POPUP_LINE_KEYS = shapeKeys(SHAPE['popupLines']);
28329
+ const STATED_FACT_KEYS = shapeKeys(SHAPE['statedFact']);
28071
28330
  const SHOP_PRODUCT_KEYS = shapeKeys(SHAPE['shopProduct']);
28072
28331
  const SHOP_OPTION_KEYS = shapeKeys(SHAPE['shopOption']);
28073
28332
  const PAGE_KEYS$1 = shapeKeys(SHAPE['page']);
@@ -28088,7 +28347,7 @@ const GLOBAL_POSITION = {
28088
28347
  };
28089
28348
  const ROUTE = /^\/(?:(?:[a-z0-9]+(?:-[a-z0-9]+)*|:[a-zA-Z_][a-zA-Z0-9_]*)(?:\/(?:[a-z0-9]+(?:-[a-z0-9]+)*|:[a-zA-Z_][a-zA-Z0-9_]*))*)?$/;
28090
28349
  const ROUTE_PARAM$1 = /:([a-zA-Z_][a-zA-Z0-9_]*)/g;
28091
- const has = (table, key) => Object.prototype.hasOwnProperty.call(table, key);
28350
+ const has$1 = (table, key) => Object.prototype.hasOwnProperty.call(table, key);
28092
28351
  /** The `:param` names of a route, in order. */
28093
28352
  function routeParams(route) {
28094
28353
  return [...route.matchAll(ROUTE_PARAM$1)].map(m => m[1]);
@@ -28120,8 +28379,12 @@ function validateSource(c, source) {
28120
28379
  c.keys(source, AI_SOURCE_KEYS, 'source');
28121
28380
  c.string(source, 'runId', 'source');
28122
28381
  }
28382
+ else if (source['kind'] === SitePlanSourceKind.Import) {
28383
+ c.keys(source, IMPORT_SOURCE_KEYS, 'source');
28384
+ c.string(source, 'scanId', 'source');
28385
+ }
28123
28386
  else {
28124
- c.add(SitePlanIssueCode.Shape, 'source.kind', `must be "${SitePlanSourceKind.Template}" or "${SitePlanSourceKind.Ai}"`);
28387
+ c.add(SitePlanIssueCode.Shape, 'source.kind', `must be one of ${Object.values(SitePlanSourceKind).map(k => `"${k}"`).join(', ')}`);
28125
28388
  }
28126
28389
  }
28127
28390
  function validateBusiness(c, business) {
@@ -28145,7 +28408,7 @@ function validateBusiness(c, business) {
28145
28408
  }
28146
28409
  }
28147
28410
  function validateLocale(c, locale) {
28148
- if (locale !== undefined && (typeof locale !== 'string' || !has(SITE_LOCALES, locale))) {
28411
+ if (locale !== undefined && (typeof locale !== 'string' || !has$1(SITE_LOCALES, locale))) {
28149
28412
  c.add(SitePlanIssueCode.InvalidLocale, 'locale', `must be one of ${Object.keys(SITE_LOCALES).join(', ')}`);
28150
28413
  }
28151
28414
  }
@@ -28166,7 +28429,7 @@ function validateDesign(c, design) {
28166
28429
  if (design['pairId'] !== undefined && pack && !pack.pairs.some(p => p.id === design['pairId']))
28167
28430
  bad('pairId', `is not a font pairing of ${pack.id}`);
28168
28431
  const axis = (key, table) => {
28169
- if (design[key] !== undefined && (typeof design[key] !== 'string' || !has(table, design[key])))
28432
+ if (design[key] !== undefined && (typeof design[key] !== 'string' || !has$1(table, design[key])))
28170
28433
  bad(key, `must be one of ${Object.keys(table).join(', ')}`);
28171
28434
  };
28172
28435
  axis('shape', SPEC_AXES.shapes);
@@ -28242,14 +28505,25 @@ function validateContentTypes(c, list) {
28242
28505
  else
28243
28506
  for (const [field, list] of Object.entries(perItem)) {
28244
28507
  const at = `${path}.seed.perItem.${field}`;
28508
+ // An array field's value is a list of strings (X4: an imported item's pictures); any other field's, a string.
28509
+ const listField = fieldTypes.get(field) === ARRAY_TYPE;
28510
+ const fits = (v) => listField ? Array.isArray(v) && v.every(w => typeof w === 'string') : typeof v === 'string';
28245
28511
  if (!fieldSet.has(field))
28246
28512
  c.add(SitePlanIssueCode.UnknownField, at, `"${field}" is not a field of ${name}`);
28247
- else if (!Array.isArray(list) || list.length !== seed['count'] || list.some(v => typeof v !== 'string'))
28248
- c.add(SitePlanIssueCode.Shape, at, `must be ${String(seed['count'])} strings, one per sample`);
28249
- else if (field === SLUG_FIELD && new Set(list).size !== list.length)
28513
+ else if (!Array.isArray(list) || list.length !== seed['count'] || !list.every(fits))
28514
+ c.add(SitePlanIssueCode.Shape, at, `must be ${String(seed['count'])} ${listField ? 'lists of strings' : 'strings'}, one per sample`);
28515
+ else if (field === SLUG_FIELD$1 && new Set(list).size !== list.length)
28250
28516
  c.add(SitePlanIssueCode.Shape, at, 'each sample needs its own slug');
28251
28517
  }
28252
28518
  }
28519
+ const from = seed[IMPORTED_FROM];
28520
+ if (from !== undefined) {
28521
+ const at = `${path}.seed.${IMPORTED_FROM}`;
28522
+ if (seed['sample'] !== false)
28523
+ c.add(SitePlanIssueCode.Shape, at, 'only real items were read from a site — a sample never was');
28524
+ else if (!Array.isArray(from) || from.length !== seed['count'] || !from.every(isNonEmptyString))
28525
+ c.add(SitePlanIssueCode.Shape, at, `must be ${String(seed['count'])} addresses, one per item`);
28526
+ }
28253
28527
  for (const key of Object.keys(seed)) {
28254
28528
  if (!SEED_FIXED_KEYS.includes(key) && !fieldSet.has(key))
28255
28529
  c.add(SitePlanIssueCode.UnknownField, `${path}.seed.${key}`, `"${key}" is not a field of ${name}`);
@@ -28292,7 +28566,7 @@ function validateRoles(c, roles, path, typeName, fields, fieldTypes, fieldContro
28292
28566
  out[role] = field;
28293
28567
  }
28294
28568
  for (const role of REQUIRED_CONTENT_ROLES)
28295
- if (!out[role] && !has(roles, role))
28569
+ if (!out[role] && !has$1(roles, role))
28296
28570
  c.add(SitePlanIssueCode.MissingRole, `${path}.${role}`, `every content type names its ${role} field`);
28297
28571
  return out;
28298
28572
  }
@@ -28513,7 +28787,9 @@ function validateProductReach(c, plan, pages) {
28513
28787
  c.add(SitePlanIssueCode.ProductPage, 'pages', `nothing on the site lists the products — a page shows "${lists[0]}" in a list, each product linking to its page`);
28514
28788
  }
28515
28789
  }
28516
- function validatePages(c, list, types, sources, density) {
28790
+ /** `moved` (X4): the plan was read from the owner's own site — its slots hold the owner's words moved, never written to a
28791
+ * budget, so a long page is never refused for its length. */
28792
+ function validatePages(c, list, types, sources, density, moved = false) {
28517
28793
  const homes = [];
28518
28794
  const routes = new Set(list.map(p => (isPlainObject(p) && typeof p['route'] === 'string' ? p['route'] : null)).filter((r) => !!r));
28519
28795
  list.forEach((raw, i) => {
@@ -28561,7 +28837,7 @@ function validatePages(c, list, types, sources, density) {
28561
28837
  }
28562
28838
  }
28563
28839
  const archetype = c.string(raw, 'archetype', path, false);
28564
- if (archetype && !has(PAGE_ARCHETYPES, archetype))
28840
+ if (archetype && !has$1(PAGE_ARCHETYPES, archetype))
28565
28841
  c.add(SitePlanIssueCode.Archetype, `${path}.archetype`, `"${archetype}" is not a page type (${Object.keys(PAGE_ARCHETYPES).join(', ')})`);
28566
28842
  validatePageSeo(c, raw['seo'], `${path}.seo`);
28567
28843
  const need = c.string(raw, 'need', path, false);
@@ -28592,7 +28868,7 @@ function validatePages(c, list, types, sources, density) {
28592
28868
  else if (typeof value !== 'string')
28593
28869
  c.add(SitePlanIssueCode.Shape, `${sp}.slots.${slot}`, 'must be a string');
28594
28870
  else {
28595
- const budget = slotBudget(pattern, slot, density);
28871
+ const budget = moved ? null : slotBudget(pattern, slot, density);
28596
28872
  if (budget !== null && value.length > budget)
28597
28873
  c.add(SitePlanIssueCode.SlotTooLong, `${sp}.slots.${slot}`, `${value.length} characters — the slot holds ${budget} at the ${density ?? 'regular'} density`);
28598
28874
  }
@@ -28619,7 +28895,7 @@ function validatePages(c, list, types, sources, density) {
28619
28895
  else if (form && !formPresetById(form))
28620
28896
  c.add(SitePlanIssueCode.InvalidForm, `${sp}.form`, `"${form}" is not a form preset`);
28621
28897
  const enter = c.string(s, 'enter', sp, false);
28622
- if (enter && !has(SPEC_AXES.animations, enter))
28898
+ if (enter && !has$1(SPEC_AXES.animations, enter))
28623
28899
  c.add(SitePlanIssueCode.InvalidEnter, `${sp}.enter`, `must be one of ${Object.keys(SPEC_AXES.animations).join(', ')}`);
28624
28900
  const without = s['without'];
28625
28901
  if (without !== undefined) {
@@ -28792,7 +29068,8 @@ function validateGlobals(c, globals) {
28792
29068
  }
28793
29069
  }
28794
29070
  /** The parts a plan may carry as a mix, and how each reads its words (only the footer until header ingredients HI1). */
28795
- const MIX_READERS = { header: headerMixFromWords, footer: footerMixFromWords, opening: openingMixFromWords, body: bodyMixFromWords };
29071
+ const MIX_READERS = { header: headerMixFromWords, footer: footerMixFromWords, opening: openingMixFromWords, body: bodyMixFromWords,
29072
+ popup: popupMixFromWords };
28796
29073
  /** `mixes`: each part's words parse in its table (list ingredients LI5); absent is fine. */
28797
29074
  function validateMixes(c, mixes) {
28798
29075
  if (mixes === undefined)
@@ -28816,6 +29093,26 @@ function validateMixes(c, mixes) {
28816
29093
  }
28817
29094
  }
28818
29095
  }
29096
+ /** Popups PU3: the owner's popup lines — a stated news (its value and the owner's words) and the newsletter tick; absent is fine. */
29097
+ function validatePopupLines(c, lines) {
29098
+ if (lines === undefined)
29099
+ return;
29100
+ if (!isPlainObject(lines))
29101
+ return c.add(SitePlanIssueCode.Shape, 'popup', 'must be an object');
29102
+ c.keys(lines, POPUP_LINE_KEYS, 'popup');
29103
+ const news = lines['news'];
29104
+ if (news !== undefined) {
29105
+ if (!isPlainObject(news))
29106
+ c.add(SitePlanIssueCode.Shape, 'popup.news', 'must be { value, quote }');
29107
+ else {
29108
+ c.keys(news, STATED_FACT_KEYS, 'popup.news');
29109
+ for (const key of STATED_FACT_KEYS)
29110
+ c.string(news, key, 'popup.news');
29111
+ }
29112
+ }
29113
+ if (lines['newsletter'] !== undefined)
29114
+ c.boolean(lines, 'newsletter', 'popup');
29115
+ }
28819
29116
  /** Check a Site Plan against the plan shape and the pattern library. Never throws, never repairs. */
28820
29117
  function validateSitePlan(plan, ctx = {}) {
28821
29118
  const c = new Collector$1();
@@ -28834,13 +29131,15 @@ function validateSitePlan(plan, ctx = {}) {
28834
29131
  const sources = validateDataSources(c, c.array(plan, 'dataSources', ''), types);
28835
29132
  const sells = validateShop(c, plan, ctx);
28836
29133
  const design = isPlainObject(plan['design']) ? plan['design'] : {};
28837
- validatePages(c, c.array(plan, 'pages', ''), withShopTypes(types, sources), sources, typeof design['density'] === 'string' ? design['density'] : null);
29134
+ const moved = isPlainObject(plan['source']) && plan['source']['kind'] === SitePlanSourceKind.Import;
29135
+ validatePages(c, c.array(plan, 'pages', ''), withShopTypes(types, sources), sources, typeof design['density'] === 'string' ? design['density'] : null, moved);
28838
29136
  if (sells) {
28839
29137
  validateProductPage(c, c.array(plan, 'pages', ''), sources);
28840
29138
  validateProductReach(c, plan, c.array(plan, 'pages', ''));
28841
29139
  }
28842
29140
  validateGlobals(c, plan['globals']);
28843
29141
  validateMixes(c, plan['mixes']);
29142
+ validatePopupLines(c, plan['popup']);
28844
29143
  validateScenes(c, c.array(plan, 'pages', ''), typeof design['animate'] === 'string' ? design['animate'] : null);
28845
29144
  validateFilm(c, plan['film'], c.array(plan, 'pages', ''));
28846
29145
  validateArtDirection(c, plan['artDirection']);
@@ -29447,7 +29746,7 @@ function scrubTokenOf(page) {
29447
29746
  }
29448
29747
  /** A page's fingerprint, worn in `preset` and `mode`, under the site's `header` and `footer` when they are known. A photo ground opens on
29449
29748
  * the page's own ground colour. */
29450
- function fingerprintOf(page, preset, mode, header, footer) {
29749
+ function fingerprintOf(page, preset, mode, header, footer, popup) {
29451
29750
  const sections = page.sections ?? [];
29452
29751
  const lists = listTokensOf(page);
29453
29752
  const scrub = scrubTokenOf(page);
@@ -29466,11 +29765,14 @@ function fingerprintOf(page, preset, mode, header, footer) {
29466
29765
  ...(header ? { header: headerTokenOf(header) } : {}),
29467
29766
  ...(footer ? { footer: footerTokenOf(footer) } : {}),
29468
29767
  ...(scrub ? { scrub } : {}),
29768
+ ...(popup ? { popup } : {}),
29469
29769
  };
29470
29770
  }
29471
29771
  /** A composed page's fingerprint under its site plan's header and footer — the ONE call every reader of a plan makes. */
29472
29772
  function fingerprintOfPlanPage(page, preset, mode, plan) {
29473
- return fingerprintOf(page, preset, mode, wornHeaderOfPlan(plan).mix, footerMixOfPlan(plan));
29773
+ // PU3: the popup the plan makes (`checkPopup` reads a whole plan; a part-plan a caller builds has no popup lines).
29774
+ const popup = 'pages' in plan && Array.isArray(plan.pages) ? popupTokenOf(checkPopup(plan).popup) : null;
29775
+ return fingerprintOf(page, preset, mode, wornHeaderOfPlan(plan).mix, footerMixOfPlan(plan), popup);
29474
29776
  }
29475
29777
  /** The longest common subsequence of two sequences. */
29476
29778
  function lcs(a, b) {
@@ -32823,6 +33125,11 @@ var ComposeIssueCode;
32823
33125
  /** AW6: the body's mix asked for what the build cannot carry (`checkBody`: an award edge on a basic build): the
32824
33126
  * detail says how. */
32825
33127
  ComposeIssueCode["BodyMended"] = "body-mended";
33128
+ /** Popups PU3: the plan's popup words asked for what a generated popup may not be (`checkPopup`: centred, by a button
33129
+ * only, a kind the owner did not tick, a link to no page): the detail says how it was mended. */
33130
+ ComposeIssueCode["PopupMended"] = "popup-mended";
33131
+ /** Popups PU3: the owner's popup line made no popup (a figure the owner's words do not hold, news too long): the detail says why. */
33132
+ ComposeIssueCode["PopupRefused"] = "popup-refused";
32826
33133
  })(ComposeIssueCode || (ComposeIssueCode = {}));
32827
33134
  /** The issues that are a dangling link (a route the plan has no page for) and what was done about it. */
32828
33135
  const DANGLING_LINK_CODES = new Set([
@@ -32962,6 +33269,8 @@ function chooseText(pn, ctx) {
32962
33269
  return { value: own, placeholder: { kind: PlaceholderKind.Price } };
32963
33270
  if (pn.ph === PatternPlaceholder.Stat)
32964
33271
  return { value: own, placeholder: { kind: PlaceholderKind.Stat } };
33272
+ if (pn.ph === PatternPlaceholder.Quote)
33273
+ return { value: own, placeholder: { kind: PlaceholderKind.Quote } };
32965
33274
  return { value: own };
32966
33275
  }
32967
33276
  /** The binding source of a scope, and the data source whose content type its item is (for its roles). */
@@ -33063,7 +33372,7 @@ function layoutGalleryLists(plan) {
33063
33372
  /** The words a list's roles are called in the brief — what a visitor would see, never the field name. */
33064
33373
  const LIST_ROLE_WORDS = {
33065
33374
  title: 'name', summary: 'summary', image: 'picture', meta: 'detail', date: 'date', gallery: 'pictures',
33066
- logo: 'mark', icon: 'icon', quote: 'quote', person: 'person', link: 'link', colour: 'colour', price: 'price', compareAt: 'earlier price',
33375
+ logo: 'mark', icon: 'icon', quote: 'quote', person: 'person', link: 'link', colour: 'colour', body: 'text', price: 'price', compareAt: 'earlier price',
33067
33376
  };
33068
33377
  /** A text role whose planned samples run past this many words (median) is called long: a small card would cut it. */
33069
33378
  const LIST_LONG_WORDS = 20;
@@ -33085,8 +33394,10 @@ function layoutListShapes(plan) {
33085
33394
  * the roles its items play, which text roles run long, the names' length, how many items. From the plan's planned
33086
33395
  * samples (`type.seed`) or, given `rows`, from the studio's real items. `layoutListShapes` is this, per plan source.
33087
33396
  */
33397
+ /** The roles a list (a card, a row) may show — every role but the item page's own (X4 `ITEM_PAGE_ONLY_ROLES`). */
33398
+ const LIST_ROLES = Object.values(ContentRole).filter(role => !ITEM_PAGE_ONLY_ROLES.includes(role));
33088
33399
  function listShapeOfType(alias, type, reading = {}) {
33089
- const played = Object.values(ContentRole).filter(role => !!roleField(type, role));
33400
+ const played = LIST_ROLES.filter(role => !!roleField(type, role));
33090
33401
  const perItem = type?.seed?.perItem ?? {};
33091
33402
  const samples = (field) => {
33092
33403
  if (!field)
@@ -33127,7 +33438,7 @@ function layoutListBinding(alias, plan) {
33127
33438
  * shows one item. The ONE reading `layoutListBinding` and Bindings ▸ List (`composeListFrame`) hand the composer. */
33128
33439
  function listBindingOfType(type, detail) {
33129
33440
  const roles = {};
33130
- for (const role of Object.values(ContentRole)) {
33441
+ for (const role of LIST_ROLES) {
33131
33442
  const field = roleField(type, role);
33132
33443
  if (field)
33133
33444
  roles[role] = field;
@@ -34181,6 +34492,9 @@ function composeDataSource(ds) {
34181
34492
  request: { relative: { kind: 'siblings', from: ds.within, subjectFrom: ds.of, pick } },
34182
34493
  };
34183
34494
  }
34495
+ function clonePlain(value) {
34496
+ return Array.isArray(value) ? [...value] : value;
34497
+ }
34184
34498
  function expandSeedValue(value, n) {
34185
34499
  if (Array.isArray(value))
34186
34500
  return value.map(v => expandSeedValue(v, n));
@@ -34213,11 +34527,15 @@ function composeItems(type, fillEmpty) {
34213
34527
  const given = seed[field.name];
34214
34528
  const empty = !(field.name in seed) || given === '' || (Array.isArray(given) && !given.length);
34215
34529
  const own = seed.perItem?.[field.name]?.[n - 1];
34216
- const value = own || (empty && fillEmpty ? defaultSeed(type, field) : given);
34217
- if (value !== undefined)
34218
- item[field.name] = expandSeedValue(value, n);
34530
+ const owned = Array.isArray(own) ? own.length > 0 : !!own;
34531
+ const value = owned ? own : (empty && fillEmpty ? defaultSeed(type, field) : given);
34532
+ if (value === undefined)
34533
+ continue;
34534
+ // A real item's own words are never templates (X4: an imported post may well say "{n}").
34535
+ item[field.name] = owned && !seed.sample ? clonePlain(value) : expandSeedValue(value, n);
34219
34536
  }
34220
- items.push({ ...item, isPublished: seed.isPublished, isSample: seed.sample });
34537
+ const from = seed.sample ? undefined : seed.importedFrom?.[n - 1];
34538
+ items.push({ ...item, isPublished: seed.isPublished, isSample: seed.sample, ...(from ? { importedFrom: from } : {}) });
34221
34539
  }
34222
34540
  return items;
34223
34541
  }
@@ -34512,6 +34830,8 @@ function composeSiteOnce(plan, context, pictureless) {
34512
34830
  footerRoot.styleProps = { ...(footerRoot.styleProps ?? {}), textDirection: 'rtl' };
34513
34831
  if (planSells(plan))
34514
34832
  globals = withStore(globals, plan.locale ?? DEFAULT_SITE_LOCALE);
34833
+ // PU3 (R-H6): the popup, only from the owner's lines — before the law, so a newsletter popup's form gets its legal line.
34834
+ globals = withPopup(plan, globals, issues);
34515
34835
  // AW1: the law, derived from facts and never asked — the legal pages, the banner when a tracker is connected, the
34516
34836
  // footer's legal row and the line beside every form that asks for personal details.
34517
34837
  const legal = composeLegal(plan, context.legal ?? {}, pages, globals, footer.mix.arrange, placeholders);
@@ -34535,6 +34855,28 @@ function composeSiteOnce(plan, context, pictureless) {
34535
34855
  shop: composeShop(plan),
34536
34856
  };
34537
34857
  }
34858
+ /**
34859
+ * Popups PU3: the site's ONE popup (`checkPopup` — the owner's lines, the model's words mended), stamped through the palette's
34860
+ * recipe (R-H1) as a global among the BEFORE globals — after the header and its companions, so the header stays the first.
34861
+ * Every mend and a refusal said. Pure: new globals.
34862
+ */
34863
+ function withPopup(plan, globals, issues) {
34864
+ const checked = checkPopup(plan);
34865
+ for (const detail of checked.said)
34866
+ issues.push({ code: ComposeIssueCode.PopupMended, nodeId: POPUP_GLOBAL_ID, owner: POPUP_GLOBAL_ID, detail });
34867
+ if (checked.refused)
34868
+ issues.push({ code: ComposeIssueCode.PopupRefused, nodeId: POPUP_GLOBAL_ID, owner: POPUP_GLOBAL_ID, detail: checked.refused.said });
34869
+ if (!checked.popup)
34870
+ return globals;
34871
+ const locale = plan.locale ?? DEFAULT_SITE_LOCALE;
34872
+ const root = composePopup(checked.popup, spec => create(spec.key, spec.type, { ...(spec.props ?? {}) }, spec.elementStyle ?? null), locale, () => composePresetForm('popup-form', FormPresetId.Newsletter, POPUP_GLOBAL_ID, locale));
34873
+ root.isGlobal = true;
34874
+ root.globalPosition = PatternGlobalPosition.Before;
34875
+ const out = [...globals];
34876
+ const lastBefore = out.map(g => g.globalPosition).lastIndexOf(PatternGlobalPosition.Before);
34877
+ out.splice(lastBefore + 1, 0, root);
34878
+ return out;
34879
+ }
34538
34880
  // ── AW1: the law (award-ingredients-plan §4) ──────────────────────────────────────────────────────────────────────
34539
34881
  const LINK = 'Link';
34540
34882
  const HEADING = 'Heading';
@@ -35257,6 +35599,19 @@ const SHOWCASE_FILM = {
35257
35599
  };
35258
35600
  const ITEM_ROUTE = '/work/:slug';
35259
35601
  const LIST_SOURCE = 'projects';
35602
+ /** X4: the item's own text — the Studio's projects play `body` on show, so `item.body` (an imported plan's) is composed too. */
35603
+ const BODY_FIELD = 'body';
35604
+ const SHOWCASE_BODY = 'The first paragraph of the project\'s own story.\n\nThe second paragraph, kept apart by a blank line.';
35605
+ /** The Studio's content types, its projects with their own text (`body`) — what every showcase plan holds. */
35606
+ function showcaseContentTypes() {
35607
+ const types = JSON.parse(JSON.stringify(STUDIO_TEMPLATE.contentTypes));
35608
+ return types.map((type, i) => i ? type : {
35609
+ ...type,
35610
+ roles: { ...type.roles, [ContentRole.Body]: BODY_FIELD },
35611
+ fields: [...type.fields, { name: BODY_FIELD, type: 'string', controller: ContentFieldControl.Textarea }],
35612
+ ...(type.seed ? { seed: { ...type.seed, [BODY_FIELD]: SHOWCASE_BODY } } : {}),
35613
+ });
35614
+ }
35260
35615
  const routeOf$1 = (family) => `/${family}`;
35261
35616
  /** A page key: the family — never a global slot's name (`header` would share the site header's ids). */
35262
35617
  const keyOf = (family) => (Object.values(GlobalSlot).includes(family) ? `${family}-page` : family);
@@ -35336,7 +35691,7 @@ function showcasePlans(input) {
35336
35691
  business: JSON.parse(JSON.stringify(input.business)),
35337
35692
  ...(input.locale ? { locale: input.locale } : {}),
35338
35693
  design: JSON.parse(JSON.stringify(design)),
35339
- contentTypes: JSON.parse(JSON.stringify(STUDIO_TEMPLATE.contentTypes)),
35694
+ contentTypes: showcaseContentTypes(),
35340
35695
  dataSources: JSON.parse(JSON.stringify(STUDIO_TEMPLATE.dataSources)),
35341
35696
  pages: JSON.parse(JSON.stringify(planPages)),
35342
35697
  globals: { [GlobalSlot.Header]: headers[i % headers.length], [GlobalSlot.Footer]: footers[i % footers.length] },
@@ -35362,6 +35717,9 @@ var SiteBuildKind;
35362
35717
  SiteBuildKind["Build"] = "build";
35363
35718
  /** A new design for a built site, everything it holds kept (site-redesign RD2) — `redesign-run.ts`. */
35364
35719
  SiteBuildKind["Redesign"] = "redesign";
35720
+ /** Bring my site X4 (W2-5's first kind): a plan read from the owner's own site (`planImport`) — its real items keep
35721
+ * their old addresses (`importedFrom`). */
35722
+ SiteBuildKind["Import"] = "import";
35365
35723
  })(SiteBuildKind || (SiteBuildKind = {}));
35366
35724
  var SiteBuildStatus;
35367
35725
  (function (SiteBuildStatus) {
@@ -35863,8 +36221,9 @@ var PlanWireEntry;
35863
36221
  const PLAN_SHAPE = SPEC_SITE_PLAN_SHAPE;
35864
36222
  const key = (ref, none) => ({ refs: [ref], ...(none !== undefined ? { none } : {}) });
35865
36223
  const inPart = (part, spec) => ({ ...spec, part });
35866
- /** The roles a content type's fields play (`roles` of the plan shape), in the plan shape's order. */
35867
- const ROLE_KEYS = shapeKeys(PLAN_SHAPE['roles']);
36224
+ /** The roles a content type's fields play (`roles` of the plan shape), in the plan shape's order — less the item page's
36225
+ * own (X4 `ITEM_PAGE_ONLY_ROLES`: an imported item's text is never the model's to write). */
36226
+ const ROLE_KEYS = shapeKeys(PLAN_SHAPE['roles']).filter(role => !ITEM_PAGE_ONLY_ROLES.includes(role));
35868
36227
  const roleWords = ROLE_KEYS.map(role => `${role}: ${describeShapeKey(PLAN_SHAPE['roles'], role).replace(/^string — /, '')}`).join('; ');
35869
36228
  /** The footer's words as the model reads them (LI5): each ingredient, its words and their meanings, from the contract. */
35870
36229
  const FOOTER_WIRE_TEXT = 'string[] — the footer as ONE list of <ingredient>:<word> words: one word per ingredient but "holds", which lists '
@@ -35897,6 +36256,16 @@ const BODY_WIRE_TEXT = "string[] — the site's body as ONE list of <ingredient>
35897
36256
  + Object.values(BodyIngredient).map(k => [k, bodyWireWords(GenerationTier.Award).filter(w => w.startsWith(`${k}:`)).map(w => w.slice(k.length + 1))])
35898
36257
  .filter(([, words]) => words.length)
35899
36258
  .map(([k, words]) => `${k}: ${words.map(w => `${w} (${bodyMeaning(k, w)})`).join(' | ')}`).join('; ');
36259
+ /** The wire's `globals` key the site's popup travels in (popups PU3) — a mix beside the others; [] = no popup. */
36260
+ const POPUP_WIRE_KEY = 'popup';
36261
+ /** The popup's words as the model reads them (PU3): each ingredient the wire carries, its words and their meanings, from the
36262
+ * contract's popup table; the link names a page of this plan. Text items: a page key is the plan's own word, never a list. */
36263
+ const POPUP_WIRE_TEXT = "string[] — the site's popup as ONE list of <ingredient>:<word> words, ONLY when the owner's popup lines ask for one "
36264
+ + "(the context says so): [] otherwise. Never a word of copy — the popup says the owner's news as stated. One word per ingredient; "
36265
+ + 'an ingredient left out is the kind\'s own. '
36266
+ + POPUP_WIRE_INGREDIENTS.map(k => `${k}: ${popupWireWords().filter(w => w.startsWith(`${k}:`)).map(w => w.slice(k.length + 1))
36267
+ .map(w => `${w} (${popupMeaning(k, w)})`).join(' | ')}`).join('; ')
36268
+ + `; ${POPUP_LINK_WORD}:<page key> — the page of this plan the popup's one action opens (the offer's page if there is one; never the home page).`;
35900
36269
  const WIRE_KEYS = {
35901
36270
  plan: {
35902
36271
  business: inPart(PlanPart.Structure, key('plan.business')),
@@ -36005,6 +36374,8 @@ const WIRE_KEYS = {
36005
36374
  // AW6: the site's body travels as its MIX, ONE list of `<ingredient>:<word>` words (body-mix.ts); [] = none. The award
36006
36375
  // tier's request alone carries it (AW-D23…D25): a Basic wire is without the key, so its grammar is the one it was.
36007
36376
  body: { refs: ['plan.mixes', 'mixes.body'], text: BODY_WIRE_TEXT, tier: GenerationTier.Award },
36377
+ // PU3: the popup travels as its words, ONE list (popup-plan.ts); [] = none. Stamped only from the owner's lines (plan.popup).
36378
+ popup: { refs: ['plan.mixes', 'mixes.popup'], text: POPUP_WIRE_TEXT },
36008
36379
  },
36009
36380
  shopProduct: {
36010
36381
  name: key('shopProduct.name'),
@@ -36029,6 +36400,9 @@ const PLAN_WIRE_DERIVED = {
36029
36400
  'page.required': "a template page's (the wizard's Pages step), never the AI's",
36030
36401
  sourceTemplate: 'the AI never writes a template plan',
36031
36402
  sourceAi: 'this run (the context)',
36403
+ sourceImport: 'the AI never writes an import plan (Bring my site X4 — planImport)',
36404
+ 'roles.body': "an imported item's own text (Bring my site X4) — never the model's",
36405
+ 'seed.importedFrom': 'the old addresses of real items read from a site (Bring my site X4) — never the model\'s',
36032
36406
  design: "the owner's pick (the context)",
36033
36407
  'plan.film': "the owner's film, set by the build (SC6b)",
36034
36408
  film: "the owner's film, set by the build (SC6b)",
@@ -36042,6 +36416,9 @@ const PLAN_WIRE_DERIVED = {
36042
36416
  freePage: 'the free step: a page the model writes free, on its own wire, set by the server (FS3)',
36043
36417
  freeRead: 'the free step (FS3)',
36044
36418
  freeNode: 'the free step (FS3)',
36419
+ 'plan.popup': "the owner's popup lines: the reading's stated news and the Plan step's ticks (the context, popups PU3)",
36420
+ popupLines: "the owner's popup lines (the context, popups PU3)",
36421
+ statedFact: "the reading's stated fact (the context, popups PU3)",
36045
36422
  };
36046
36423
  const wireText = (spec) => {
36047
36424
  const [entry, planKey] = spec.refs[0].split('.');
@@ -36098,7 +36475,7 @@ const closedOrText = (values) => (values.length ? jsonOneOf(values) : jsonText()
36098
36475
  const shaped = (entry, properties) => jsonShapedObject(PLAN_WIRE_SHAPE[entry], properties, `wire ${entry}`);
36099
36476
  /** The patterns a page section may use (every non-global one but a film's, which `placeFilm` places), in library order. */
36100
36477
  function sectionPatternIds() {
36101
- return Object.entries(SITE_PATTERNS).filter(([, p]) => !p.global && !p.film).map(([id]) => id);
36478
+ return Object.entries(SITE_PATTERNS).filter(([, p]) => !p.global && !p.film && !p.imported).map(([id]) => id);
36102
36479
  }
36103
36480
  const sectionPatterns = () => sectionPatternIds().map(id => SITE_PATTERNS[id]);
36104
36481
  function wireFieldJsonSchema() {
@@ -36176,6 +36553,7 @@ const PLAN_TOP_SCHEMAS = {
36176
36553
  [GlobalSlot.Footer]: jsonListOf(jsonOneOf(footerWireWords())),
36177
36554
  [OPENING_WIRE_KEY]: jsonListOf(jsonOneOf(openingWireWords(GenerationTier.Award))),
36178
36555
  ...(isAward(options) ? { [BODY_WIRE_KEY]: jsonListOf(jsonOneOf(bodyWireWords(GenerationTier.Award))) } : {}),
36556
+ [POPUP_WIRE_KEY]: jsonListOf(jsonText()),
36179
36557
  }, `wire ${PlanWireEntry.Globals}`),
36180
36558
  direction: () => shaped(PlanWireEntry.Direction, { idea: jsonText(), cliche: jsonText(), flip: jsonText(), rules: jsonListOf(jsonText()) }),
36181
36559
  shop: () => jsonListOf(wireShopProductJsonSchema()),
@@ -36340,6 +36718,7 @@ function expandPlanWire(parts, context) {
36340
36718
  source: { ...context.source },
36341
36719
  business: expandWireBusiness(business, context.facts),
36342
36720
  ...(context.locale ? { locale: context.locale } : {}),
36721
+ ...(context.popup ? { popup: JSON.parse(JSON.stringify(context.popup)) } : {}),
36343
36722
  design: { ...context.design },
36344
36723
  contentTypes: each(contentTypes, expandWireContentType),
36345
36724
  dataSources: each(dataSources, expandWireDataSource),
@@ -36353,12 +36732,13 @@ function expandWireGlobals(globals) {
36353
36732
  return {};
36354
36733
  if (!isPlainObject(globals))
36355
36734
  return { globals };
36356
- const { [OPENING_WIRE_KEY]: opening, [BODY_WIRE_KEY]: body, ...rest } = globals;
36735
+ const { [OPENING_WIRE_KEY]: opening, [BODY_WIRE_KEY]: body, [POPUP_WIRE_KEY]: popup, ...rest } = globals;
36357
36736
  const out = { ...rest };
36358
36737
  const mixes = {};
36359
36738
  // AW8: the opening is a mix only (no stored pattern stands for it on the wire); [] = none. Not a list: the validator says so.
36360
36739
  // AW6: so is the body (the award tier's wire alone writes it); [] = none.
36361
- for (const [name, words] of [[OPENING_WIRE_KEY, opening], [BODY_WIRE_KEY, body]]) {
36740
+ // PU3: so is the popup ([] = none).
36741
+ for (const [name, words] of [[OPENING_WIRE_KEY, opening], [BODY_WIRE_KEY, body], [POPUP_WIRE_KEY, popup]]) {
36362
36742
  if (words !== undefined && (!Array.isArray(words) || words.length))
36363
36743
  mixes[name] = Array.isArray(words) ? [...words] : words;
36364
36744
  }
@@ -36388,7 +36768,8 @@ function fieldToWire(field) {
36388
36768
  function contentTypeToWire(type, options = {}) {
36389
36769
  const played = type.roles;
36390
36770
  const roles = ROLE_KEYS.filter(role => played[role]).map(role => ({ role, field: played[role] }));
36391
- const { count = 0, sample = false, isPublished = false, perItem = {}, ...values } = type.seed ?? {};
36771
+ // X4: an imported item's old address is never on the wire (`importedFrom` stays with the plan).
36772
+ const { count = 0, sample = false, isPublished = false, perItem = {}, importedFrom: _from, ...values } = type.seed ?? {};
36392
36773
  return {
36393
36774
  name: type.name, label: type.label, roles, ...(options.children === false ? {} : { fields: type.fields.map(fieldToWire) }),
36394
36775
  seed: { count, sample, isPublished, values: mapToList(values, 'field', 'value').map(row => ({ ...row, each: perItem[String(row['field'])] ?? [] })) },
@@ -36434,6 +36815,7 @@ const PLAN_TO_WIRE = {
36434
36815
  [OPENING_WIRE_KEY]: [...(plan.mixes?.opening ?? [])],
36435
36816
  // AW6: the award tier's wire writes the body ([] = none); every other tier's has no such key (its plan wears none).
36436
36817
  ...(isAward(options) ? { [BODY_WIRE_KEY]: [...(plan.mixes?.body ?? [])] } : {}),
36818
+ [POPUP_WIRE_KEY]: [...(plan.mixes?.popup ?? [])],
36437
36819
  }),
36438
36820
  direction: plan => ({ idea: plan.direction?.idea ?? NONE, cliche: plan.direction?.cliche ?? NONE, flip: plan.direction?.flip ?? NONE, rules: [...(plan.direction?.rules ?? [])] }),
36439
36821
  shop: plan => (plan.shop?.products ?? []).map(p => ({ name: p.name, category: p.category, description: p.description, options: p.options.map(o => ({ name: o.name, values: [...o.values] })) })),
@@ -36672,6 +37054,328 @@ function withAdditions(plan, additions, only) {
36672
37054
  return { ...plan, pages: [...plan.pages, ...pages], contentTypes: [...plan.contentTypes, ...types], dataSources: [...plan.dataSources, ...sources] };
36673
37055
  }
36674
37056
 
37057
+ function isImportPlan(plan) {
37058
+ return plan.source.kind === SitePlanSourceKind.Import;
37059
+ }
37060
+ /** The patterns an import places (contract `site.patterns`). */
37061
+ var ImportPattern;
37062
+ (function (ImportPattern) {
37063
+ ImportPattern["PageHeader"] = "page-header.simple";
37064
+ ImportPattern["LongForm"] = "story.long-form";
37065
+ ImportPattern["CardGrid"] = "collection.card-grid";
37066
+ ImportPattern["ItemHero"] = "project.hero";
37067
+ ImportPattern["ItemBody"] = "item.body";
37068
+ ImportPattern["ItemGallery"] = "project.gallery";
37069
+ ImportPattern["ItemNext"] = "project.next";
37070
+ })(ImportPattern || (ImportPattern = {}));
37071
+ /** The optional parts an import leaves out (each pattern's `optional`). */
37072
+ const WITHOUT = {
37073
+ pageHeader: ['eyebrow', 'lead'],
37074
+ longForm: ['heading', 'lead', 'more'],
37075
+ cardGridHeader: ['header'],
37076
+ };
37077
+ /** How many pages the header lists — the rest stay reachable from their lists and links. */
37078
+ const IMPORT_NAV_MAX = 6;
37079
+ /** A list's "latest" source on the home page. */
37080
+ const LATEST_LIMIT = 3;
37081
+ const ITEM_PARAM = 'slug';
37082
+ const SLUG_FIELD = 'slug';
37083
+ const HOME_ROUTE = '/';
37084
+ const CONTACT_ARCHETYPE = 'contact';
37085
+ const ABOUT_ARCHETYPE = 'about';
37086
+ const COLLECTION_ARCHETYPE = 'collection';
37087
+ const DETAIL_ARCHETYPE = 'detail';
37088
+ /**
37089
+ * The words that say a list is the template's own type (the Studio's projects are a portfolio, the Practice's services,
37090
+ * the Place's menu) — its items take the template type's place, pages and all (`/work/:slug`). One table, by type name.
37091
+ */
37092
+ const TEMPLATE_TYPE_WORDS = {
37093
+ projects: /\b(projects?|portfolios?|works?|case[\s-]?stud(?:y|ies)|showcase)\b/i,
37094
+ services: /\b(services?|treatments?|offers?)\b/i,
37095
+ menu: /\b(menus?|dishes|drinks)\b/i,
37096
+ };
37097
+ /** The field each role of a list's own type is written to, in field order, and how it is edited. */
37098
+ const OWN_FIELDS = [
37099
+ { role: ContentRole.Title, name: 'title', control: ContentFieldControl.Text, required: true },
37100
+ { role: null, name: SLUG_FIELD, control: ContentFieldControl.Text, required: true },
37101
+ { role: ContentRole.Summary, name: 'summary', control: ContentFieldControl.Textarea },
37102
+ { role: ContentRole.Image, name: 'cover', control: ContentFieldControl.Media },
37103
+ { role: ContentRole.Gallery, name: 'gallery', control: ContentFieldControl.Gallery },
37104
+ { role: ContentRole.Date, name: 'date', control: ContentFieldControl.Text },
37105
+ { role: ContentRole.Meta, name: 'category', control: ContentFieldControl.Text },
37106
+ { role: ContentRole.Body, name: 'body', control: ContentFieldControl.Textarea },
37107
+ ];
37108
+ /** What an item gives each role (null: nothing). */
37109
+ function itemValue(item, role) {
37110
+ switch (role) {
37111
+ case ContentRole.Title: return item.title;
37112
+ case ContentRole.Summary: return item.summary || null;
37113
+ case ContentRole.Image: return item.picture || null;
37114
+ case ContentRole.Gallery: return item.pictures?.length ? item.pictures : null;
37115
+ case ContentRole.Date: return item.date || null;
37116
+ case ContentRole.Meta: return item.meta || null;
37117
+ case ContentRole.Body: return item.text?.trim() ? item.text.trim() : null;
37118
+ default: return null;
37119
+ }
37120
+ }
37121
+ const has = (items, role) => items.some(item => itemValue(item, role) !== null);
37122
+ /** Lowercase words joined by hyphens — a route segment or a slug. */
37123
+ function importSlug(text) {
37124
+ return text.normalize('NFKD').replace(/[̀-ͯ]/g, '').toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-+|-+$/g, '');
37125
+ }
37126
+ /** Makes names unique in order: the second `a` is `a-2`. */
37127
+ class Names {
37128
+ constructor(taken = []) {
37129
+ this.taken = new Set();
37130
+ for (const t of taken)
37131
+ this.taken.add(t);
37132
+ }
37133
+ has(name) { return this.taken.has(name); }
37134
+ claim(name, join = '-') {
37135
+ let out = name;
37136
+ for (let n = 2; this.taken.has(out); n++)
37137
+ out = `${name}${join}${n}`;
37138
+ this.taken.add(out);
37139
+ return out;
37140
+ }
37141
+ }
37142
+ const camel = (slug) => slug.replace(/-([a-z0-9])/g, (_m, c) => c.toUpperCase());
37143
+ /** A route the plan accepts from an old path: each segment as lowercase words; null when nothing is left. */
37144
+ function routeOfPath(path) {
37145
+ if (!path)
37146
+ return null;
37147
+ const segments = path.split(/[?#]/)[0].split('/').map(importSlug).filter(Boolean);
37148
+ return segments.length ? `/${segments.join('/')}` : null;
37149
+ }
37150
+ /** The template's pages and sources that show its content type (a list or an item of it). */
37151
+ function templateTypeParts(template, typeName) {
37152
+ const aliases = new Set(template.dataSources.filter(d => d.type === PlanDataSourceType.Relative ? false : 'contentType' in d && d.contentType === typeName).map(d => d.alias));
37153
+ for (const d of template.dataSources)
37154
+ if (d.type === PlanDataSourceType.Relative && (aliases.has(d.of) || aliases.has(d.within)))
37155
+ aliases.add(d.alias);
37156
+ const pages = new Set(template.pages.filter(p => p.template === typeName || (!p.isHome && p.sections.some(s => s.binding && aliases.has(s.binding)))).map(p => p.key));
37157
+ return { aliases, pages };
37158
+ }
37159
+ /** The list that takes the template type's place, if one reads as it. */
37160
+ function templateListOf(template, lists) {
37161
+ for (const type of template.contentTypes) {
37162
+ const words = TEMPLATE_TYPE_WORDS[type.name];
37163
+ const list = words ? lists.find(l => l.items.length && [l.key, l.label, l.path ?? ''].some(w => words.test(w.replace(/[-_/]+/g, ' ')))) : undefined;
37164
+ if (list)
37165
+ return { type, list };
37166
+ }
37167
+ return null;
37168
+ }
37169
+ /** The items' slugs: their own where the site gave one, else from the title; unique within the list. */
37170
+ function slugsOf(items) {
37171
+ const names = new Names();
37172
+ return items.map((item, i) => names.claim(importSlug(item.slug ?? '') || importSlug(item.title) || `item-${i + 1}`));
37173
+ }
37174
+ /** The real items as a seed: one value per item for each role the type plays, the slug, and each item's old address. */
37175
+ function seedOf(type, items) {
37176
+ const perItem = {};
37177
+ const slugField = type.fields.some(f => f.name === SLUG_FIELD) ? SLUG_FIELD : null;
37178
+ if (slugField)
37179
+ perItem[slugField] = slugsOf(items);
37180
+ for (const [role, field] of Object.entries(type.roles)) {
37181
+ const list = type.fields.find(f => f.name === field)?.controller === ContentFieldControl.Gallery;
37182
+ perItem[field] = items.map(item => {
37183
+ const value = itemValue(item, role);
37184
+ if (list)
37185
+ return Array.isArray(value) ? [...value] : [];
37186
+ return typeof value === 'string' ? value : '';
37187
+ });
37188
+ }
37189
+ return { count: items.length, sample: false, isPublished: true, perItem, importedFrom: items.map(i => i.from) };
37190
+ }
37191
+ const fieldOf = (name, control, required) => ({ name, type: FIELD_TYPE_OF_CONTROL[control], controller: control, ...(required ? { required: true } : {}) });
37192
+ /** A list's own type: the roles its items fill, each its field (`OWN_FIELDS`). */
37193
+ function ownType(name, list) {
37194
+ const fields = [];
37195
+ const roles = {};
37196
+ for (const f of OWN_FIELDS) {
37197
+ if (f.role && f.role !== ContentRole.Title && !has(list.items, f.role))
37198
+ continue;
37199
+ fields.push(fieldOf(f.name, f.control, f.required));
37200
+ if (f.role)
37201
+ roles[f.role] = f.name;
37202
+ }
37203
+ const type = { name, label: list.label, roles: roles, fields };
37204
+ return { ...type, seed: seedOf(type, list.items) };
37205
+ }
37206
+ /** The template's type with the list's items: its own fields, and its `body` (the items' own text) when they have one.
37207
+ * A role the template gives a field of its own meaning (the Studio's `meta` is a location) is not filled from the site. */
37208
+ const TEMPLATE_ROLES_FILLED = [ContentRole.Title, ContentRole.Summary, ContentRole.Image, ContentRole.Gallery, ContentRole.Date, ContentRole.Body];
37209
+ function templateType(type, list) {
37210
+ const withBody = has(list.items, ContentRole.Body) && !roleField(type, ContentRole.Body);
37211
+ const bodyName = new Names(type.fields.map(f => f.name)).claim('body');
37212
+ const fields = withBody ? [...type.fields, fieldOf(bodyName, ContentFieldControl.Textarea)] : [...type.fields];
37213
+ const roles = (withBody ? { ...type.roles, [ContentRole.Body]: bodyName } : { ...type.roles });
37214
+ const filled = Object.fromEntries(Object.entries(roles).filter(([role]) => TEMPLATE_ROLES_FILLED.includes(role)));
37215
+ const seed = seedOf({ roles: filled, fields }, list.items);
37216
+ // A field the site does not fill is written empty (never the template's sample words).
37217
+ const empty = Object.fromEntries(fields.filter(f => !(f.name in (seed.perItem ?? {}))).map(f => [f.name, f.controller === ContentFieldControl.Gallery ? [] : '']));
37218
+ return { name: type.name, label: list.label || type.label, roles, fields, seed: { ...seed, ...empty } };
37219
+ }
37220
+ /** The sources of a list's own type: all of it, the latest few, one by its slug, and the next one. */
37221
+ function ownSources(name) {
37222
+ const list = name, latest = `${name}Latest`, item = `${name}Item`, next = `${name}Next`;
37223
+ return {
37224
+ list, latest, item,
37225
+ sources: [
37226
+ { alias: list, type: PlanDataSourceType.Cms, mode: PlanDataSourceMode.Query, contentType: name },
37227
+ { alias: latest, type: PlanDataSourceType.Cms, mode: PlanDataSourceMode.Query, contentType: name, limit: LATEST_LIMIT },
37228
+ { alias: item, type: PlanDataSourceType.Cms, mode: PlanDataSourceMode.Single, contentType: name, filterByRouteParam: { field: SLUG_FIELD, routeParam: ITEM_PARAM } },
37229
+ { alias: next, type: PlanDataSourceType.Relative, of: item, op: RelativeOp.SiblingsNext, within: list },
37230
+ ],
37231
+ };
37232
+ }
37233
+ /** The page of one item: its hero, its own text, its pictures, the next one (each only when the items have it). */
37234
+ function itemSections(type, nextLabel) {
37235
+ const sections = [{ pattern: ImportPattern.ItemHero }];
37236
+ if (roleField(type, ContentRole.Body))
37237
+ sections.push({ pattern: ImportPattern.ItemBody });
37238
+ if (roleField(type, ContentRole.Gallery))
37239
+ sections.push({ pattern: ImportPattern.ItemGallery });
37240
+ sections.push(nextLabel ? { pattern: ImportPattern.ItemNext, slots: { label: nextLabel } } : { pattern: ImportPattern.ItemNext });
37241
+ return sections;
37242
+ }
37243
+ const pageHeader = (title, lead) => lead
37244
+ ? { pattern: ImportPattern.PageHeader, slots: { title, lead }, without: ['eyebrow'] }
37245
+ : { pattern: ImportPattern.PageHeader, slots: { title }, without: [...WITHOUT.pageHeader] };
37246
+ /**
37247
+ * The scan's reading → the plan. Every list with items becomes a content type (the one that reads as the template's own
37248
+ * takes its place, routes and all); every page with words becomes a page; nothing is invented — a page or a list the
37249
+ * site did not have is not added, and the template's own pages are kept only where they are the site's frame (the home
37250
+ * page, the contact page).
37251
+ */
37252
+ function planImport(reading, input) {
37253
+ const template = input.template ?? STUDIO_TEMPLATE;
37254
+ const lists = reading.lists.filter(l => l.items.length > 0);
37255
+ const matched = templateListOf(template, lists);
37256
+ const dropped = new Set(); // the template types no list fills
37257
+ const contentTypes = [];
37258
+ const dataSources = [];
37259
+ const templateParts = new Map();
37260
+ for (const type of template.contentTypes) {
37261
+ const parts = templateTypeParts(template, type.name);
37262
+ templateParts.set(type.name, parts);
37263
+ if (matched?.type.name === type.name) {
37264
+ contentTypes.push(templateType(type, matched.list));
37265
+ dataSources.push(...template.dataSources.filter(d => parts.aliases.has(d.alias)));
37266
+ }
37267
+ else
37268
+ dropped.add(type.name);
37269
+ }
37270
+ const droppedAliases = new Set([...dropped].flatMap(t => [...templateParts.get(t).aliases]));
37271
+ const droppedPages = new Set([...dropped].flatMap(t => [...templateParts.get(t).pages]));
37272
+ // Routes and names: the template's frame first, then the lists, then the pages.
37273
+ const kept = template.pages.filter(p => p.isHome || p.archetype === CONTACT_ARCHETYPE || (!droppedPages.has(p.key) && matched && templateParts.get(matched.type.name).pages.has(p.key)));
37274
+ const routes = new Names(kept.map(p => p.route));
37275
+ const keys = new Names(kept.map(p => p.key));
37276
+ const typeNames = new Names(template.contentTypes.map(t => t.name));
37277
+ const aliases = new Names(template.dataSources.map(d => d.alias));
37278
+ const listPages = [];
37279
+ const firstLatest = [];
37280
+ if (matched) {
37281
+ const listPage = template.pages.find(p => templateParts.get(matched.type.name).pages.has(p.key) && !p.template);
37282
+ const latest = template.dataSources.find(d => templateParts.get(matched.type.name).aliases.has(d.alias) && d.type === PlanDataSourceType.Cms && d.mode === PlanDataSourceMode.Query && d.limit);
37283
+ if (listPage && latest)
37284
+ firstLatest.push({ alias: latest.alias, route: listPage.route });
37285
+ }
37286
+ const typeOfMatched = matched ? contentTypes[0] : null;
37287
+ for (const list of lists) {
37288
+ if (list === matched?.list)
37289
+ continue;
37290
+ const name = typeNames.claim(camel(importSlug(list.key) || importSlug(list.label) || 'items'), '');
37291
+ const type = ownType(name, list);
37292
+ const own = ownSources(name);
37293
+ if ([own.list, own.latest, own.item, `${name}Next`].some(a => aliases.has(a)))
37294
+ continue; // never shadow a source
37295
+ own.sources.forEach(s => aliases.claim(s.alias));
37296
+ contentTypes.push(type);
37297
+ dataSources.push(...own.sources);
37298
+ const base = routeOfPath(list.path);
37299
+ const route = routes.claim(base && !routes.has(base) && base !== HOME_ROUTE ? base : `/${importSlug(list.label) || name.toLowerCase()}`);
37300
+ routes.claim(`${route}/:${ITEM_PARAM}`);
37301
+ const key = keys.claim(importSlug(list.label) || name.toLowerCase());
37302
+ listPages.push({
37303
+ key, name: list.label, route, inNav: true, archetype: COLLECTION_ARCHETYPE,
37304
+ sections: [pageHeader(list.label), { pattern: ImportPattern.CardGrid, binding: own.list, without: [...WITHOUT.cardGridHeader] }],
37305
+ });
37306
+ listPages.push({
37307
+ key: keys.claim(`${key}-item`), name: list.label, route: `${route}/:${ITEM_PARAM}`, inNav: false,
37308
+ template: name, routeSource: own.item, archetype: DETAIL_ARCHETYPE, sections: itemSections(type, list.label),
37309
+ });
37310
+ firstLatest.push({ alias: own.latest, route });
37311
+ }
37312
+ // The template's frame: a section that showed a dropped type shows the first list instead, or goes.
37313
+ const frame = [];
37314
+ for (const page of kept) {
37315
+ const sections = [];
37316
+ for (const section of page.sections) {
37317
+ if (!section.binding || !droppedAliases.has(section.binding)) {
37318
+ sections.push(section);
37319
+ continue;
37320
+ }
37321
+ const first = firstLatest[0];
37322
+ if (first)
37323
+ sections.push({ ...section, binding: first.alias, links: { ...(section.links ?? {}), more: first.route } });
37324
+ }
37325
+ // The template type's item page shows the items' own text after its hero.
37326
+ const body = page.template && typeOfMatched && page.template === typeOfMatched.name && roleField(typeOfMatched, ContentRole.Body)
37327
+ && !sections.some(s => s.pattern === ImportPattern.ItemBody);
37328
+ if (body)
37329
+ sections.splice(Math.max(1, sections.findIndex(s => s.pattern === ImportPattern.ItemHero) + 1), 0, { pattern: ImportPattern.ItemBody });
37330
+ frame.push({ ...page, sections });
37331
+ }
37332
+ // The owner's pages of words.
37333
+ const textPages = [];
37334
+ for (const page of reading.pages) {
37335
+ const text = page.text.trim();
37336
+ const title = page.title.trim();
37337
+ if (!text || !title)
37338
+ continue;
37339
+ const base = routeOfPath(page.path);
37340
+ if (!base || base === HOME_ROUTE)
37341
+ continue; // the home page is rebuilt from the template
37342
+ if (routes.has(base) && frame.some(p => p.route === base))
37343
+ continue; // the template's contact page stands for it
37344
+ const route = routes.claim(base);
37345
+ textPages.push({
37346
+ key: keys.claim(importSlug(base.slice(1)) || importSlug(title) || 'page'), name: title, route, inNav: route.split('/').length === 2,
37347
+ archetype: ABOUT_ARCHETYPE,
37348
+ sections: [pageHeader(title, page.description?.trim() || undefined), { pattern: ImportPattern.LongForm, slots: { body1: text }, without: [...WITHOUT.longForm] }],
37349
+ });
37350
+ }
37351
+ // The header lists the lists first, then the pages, the contact page last — at most IMPORT_NAV_MAX.
37352
+ const home = frame.filter(p => p.isHome);
37353
+ const contact = frame.filter(p => !p.isHome && p.archetype === CONTACT_ARCHETYPE);
37354
+ const rest = frame.filter(p => !p.isHome && p.archetype !== CONTACT_ARCHETYPE);
37355
+ let room = IMPORT_NAV_MAX - contact.filter(p => p.inNav).length;
37356
+ const nav = (page) => {
37357
+ if (!page.inNav)
37358
+ return page;
37359
+ if (room > 0) {
37360
+ room--;
37361
+ return page;
37362
+ }
37363
+ return { ...page, inNav: false };
37364
+ };
37365
+ const pages = [...home, ...rest.map(nav), ...listPages.map(nav), ...textPages.map(nav), ...contact];
37366
+ return {
37367
+ version: SITE_PLAN_VERSION,
37368
+ source: { kind: SitePlanSourceKind.Import, scanId: reading.scanId },
37369
+ business: JSON.parse(JSON.stringify(reading.business)),
37370
+ ...(reading.locale ? { locale: reading.locale } : {}),
37371
+ design: JSON.parse(JSON.stringify(input.design)),
37372
+ contentTypes,
37373
+ dataSources: JSON.parse(JSON.stringify(dataSources)),
37374
+ pages: JSON.parse(JSON.stringify(pages)),
37375
+ globals: JSON.parse(JSON.stringify(template.globals)),
37376
+ };
37377
+ }
37378
+
36675
37379
  /**
36676
37380
  * The AI pipeline's WIRE vocabulary (AI plan §3c, §3n, M0): what iox-cms's `ai` API answers and what every client
36677
37381
  * of it reads — the steps a model works on, who pays (IOX credits or the studio's own key), a model of the vetted
@@ -38092,6 +38796,25 @@ const SITE_FINDING_WORDS = {
38092
38796
  one: S('"{label}" needs {connector} connected.', '"{label}" צריך ש-{connector} יהיה מחובר.'),
38093
38797
  group: FindingGrouping.Never,
38094
38798
  },
38799
+ 'popup-empty': {
38800
+ one: {
38801
+ title: S('A popup has no title — write what it tells your visitors.', 'לחלון קופץ אין כותרת — כתבו מה הוא מספר למבקרים.'),
38802
+ action: S('A popup\'s link has no words — write where it leads.', 'לקישור בחלון קופץ אין מילים — כתבו לאן הוא מוביל.'),
38803
+ },
38804
+ group: FindingGrouping.Never,
38805
+ },
38806
+ 'popup-centred-early': {
38807
+ one: S('A popup in the middle of the screen arrives before {seconds} seconds — it hides the page before anyone has read it.', 'חלון קופץ במרכז המסך מופיע לפני {seconds} שניות — הוא מסתיר את העמוד לפני שמישהו קרא אותו.'),
38808
+ group: FindingGrouping.Never,
38809
+ },
38810
+ 'popup-ended': {
38811
+ one: S('A popup\'s last day ({until}) has passed — no one sees it now.', 'היום האחרון של חלון קופץ ({until}) עבר — אף אחד לא רואה אותו עכשיו.'),
38812
+ group: FindingGrouping.Never,
38813
+ },
38814
+ 'popup-two-auto': {
38815
+ one: S('{n} popups arrive by themselves on this page — visitors see one, then another.', '{n} חלונות קופצים מופיעים מעצמם בעמוד הזה — המבקרים רואים אחד ואז עוד אחד.'),
38816
+ group: FindingGrouping.Never,
38817
+ },
38095
38818
  };
38096
38819
  const PLACEHOLDER = /\{(\w+)\}/g;
38097
38820
  function sentenceOf(words, variant) {
@@ -38251,6 +38974,14 @@ var SiteFindingCode;
38251
38974
  SiteFindingCode["DeadLink"] = "dead-link";
38252
38975
  SiteFindingCode["DeadDialogTarget"] = "dead-dialog-target";
38253
38976
  SiteFindingCode["ActionNeedsConnector"] = "action-needs-connector";
38977
+ /** Popups PU3 (§11): a popup's title or its action's words are empty — never invented for it. `variant` title | action. */
38978
+ SiteFindingCode["PopupEmpty"] = "popup-empty";
38979
+ /** Popups PU3 (§11): a centred popup arrives by time sooner than the minimum seconds — an interstitial over the landing view. */
38980
+ SiteFindingCode["PopupCentredEarly"] = "popup-centred-early";
38981
+ /** Popups PU3 (§11): a popup's last day is past (only when the caller passes `today`) — it shows to no one. */
38982
+ SiteFindingCode["PopupEnded"] = "popup-ended";
38983
+ /** Popups PU3 (§11): more than one popup arrives by itself on a page (the site's and the page's counted together). */
38984
+ SiteFindingCode["PopupTwoAuto"] = "popup-two-auto";
38254
38985
  })(SiteFindingCode || (SiteFindingCode = {}));
38255
38986
  /** Each finding's severity — one table (D8), never decided at a call site. */
38256
38987
  const FINDING_SEVERITY = {
@@ -38286,6 +39017,10 @@ const FINDING_SEVERITY = {
38286
39017
  [SiteFindingCode.DeadLink]: CheckSeverity.Block,
38287
39018
  [SiteFindingCode.DeadDialogTarget]: CheckSeverity.Block,
38288
39019
  [SiteFindingCode.ActionNeedsConnector]: CheckSeverity.Block,
39020
+ [SiteFindingCode.PopupEmpty]: CheckSeverity.Block,
39021
+ [SiteFindingCode.PopupCentredEarly]: CheckSeverity.Block,
39022
+ [SiteFindingCode.PopupEnded]: CheckSeverity.Warn,
39023
+ [SiteFindingCode.PopupTwoAuto]: CheckSeverity.Warn,
38289
39024
  };
38290
39025
  const CHECK_OF = {
38291
39026
  [SiteFindingCode.NoHeader]: SiteCheckId.Navigation,
@@ -38320,6 +39055,10 @@ const CHECK_OF = {
38320
39055
  [SiteFindingCode.DeadLink]: SiteCheckId.Actions,
38321
39056
  [SiteFindingCode.DeadDialogTarget]: SiteCheckId.Actions,
38322
39057
  [SiteFindingCode.ActionNeedsConnector]: SiteCheckId.Actions,
39058
+ [SiteFindingCode.PopupEmpty]: SiteCheckId.Facts,
39059
+ [SiteFindingCode.PopupCentredEarly]: SiteCheckId.Accessibility,
39060
+ [SiteFindingCode.PopupEnded]: SiteCheckId.Facts,
39061
+ [SiteFindingCode.PopupTwoAuto]: SiteCheckId.Actions,
38323
39062
  };
38324
39063
  const LINKING_TYPES = new Set(['Link', 'Heading', 'Button', 'ButtonBlock', 'LinkedContainer', 'Image']);
38325
39064
  const PAGE_LINK = 'page';
@@ -38686,6 +39425,64 @@ function checkActions(ctx, snapshot, pages) {
38686
39425
  }
38687
39426
  });
38688
39427
  }
39428
+ const isPopup = (n) => n.type === DIALOG_TYPE && Object.values(PopupKind).includes(n.props[PopupTrait.Kind]);
39429
+ const popupPart = (root, role) => {
39430
+ let hit = null;
39431
+ walkSerialized(root.children ?? [], n => { if (!hit && n.role === role)
39432
+ hit = n; });
39433
+ return hit;
39434
+ };
39435
+ const bound = (n, prop) => n.bindings.some(b => b.prop === prop);
39436
+ /**
39437
+ * Popups PU3 (§11): each popup's own rows — an empty title or action words (block; an action to no page is the ONE
39438
+ * dead-link rule's), a centred popup by time under the minimum (block), an ended one (warn, with `today`), and more than
39439
+ * one popup arriving by itself on a page (warn). A figure the owner never stated is refused when the popup is BUILT
39440
+ * (generation-core `checkPopup`) — the gate holds no owner words to compare.
39441
+ */
39442
+ function checkPopups(ctx, snapshot, pages) {
39443
+ const auto = (n) => n.props[PopupTrait.Arrive] !== PopupArrive.Button;
39444
+ let siteAuto = 0;
39445
+ const judge = (root, where) => {
39446
+ const get = (name) => root.props[name];
39447
+ const title = popupPart(root, PopupRole.Title);
39448
+ if (title && !nonEmpty(title.props['content']) && !bound(title, 'content'))
39449
+ add(ctx, SiteFindingCode.PopupEmpty, { variant: 'title' }, { ...where, nodeId: title.id });
39450
+ const action = popupPart(root, PopupRole.Action);
39451
+ if (action && !nonEmpty(action.props['label']) && !bound(action, 'label'))
39452
+ add(ctx, SiteFindingCode.PopupEmpty, { variant: 'action' }, { ...where, nodeId: action.id });
39453
+ const arrive = get(PopupTrait.Arrive);
39454
+ const seconds = Number(get(PopupTrait.Seconds));
39455
+ if (popupFormOf(get(PopupTrait.Kind), get(PopupTrait.Form)) === PopupForm.Centred && (arrive === PopupArrive.Time || arrive === PopupArrive.ScrollOrTime)
39456
+ && get(PopupTrait.Seconds) !== undefined && get(PopupTrait.Seconds) !== '' && Number.isFinite(seconds) && seconds < POPUP_RULES.minSeconds) {
39457
+ add(ctx, SiteFindingCode.PopupCentredEarly, { seconds: POPUP_RULES.minSeconds }, { ...where, nodeId: root.id });
39458
+ }
39459
+ if (snapshot.today && /^\d{4}-\d{2}-\d{2}$/.test(snapshot.today) && popupEnded(get, new Date(`${snapshot.today}T12:00:00`))) {
39460
+ add(ctx, SiteFindingCode.PopupEnded, { until: String(get(PopupTrait.ShowUntil)) }, { ...where, nodeId: root.id });
39461
+ }
39462
+ };
39463
+ for (const global of snapshot.globals)
39464
+ walkSerialized([global], n => {
39465
+ if (!isPopup(n))
39466
+ return;
39467
+ judge(n, { owner: global.globalPosition === PatternGlobalPosition.Before ? 'header' : 'footer' });
39468
+ if (auto(n))
39469
+ siteAuto++;
39470
+ });
39471
+ for (const page of pages) {
39472
+ let pageAuto = 0;
39473
+ walkSerialized(page.layout, n => {
39474
+ if (!isPopup(n))
39475
+ return;
39476
+ judge(n, { pageId: page.id });
39477
+ if (auto(n))
39478
+ pageAuto++;
39479
+ });
39480
+ if (siteAuto + pageAuto > 1)
39481
+ add(ctx, SiteFindingCode.PopupTwoAuto, { n: siteAuto + pageAuto }, { pageId: page.id });
39482
+ }
39483
+ if (siteAuto > 1 && !pages.length)
39484
+ add(ctx, SiteFindingCode.PopupTwoAuto, { n: siteAuto }, {});
39485
+ }
38689
39486
  /** Run the eight checks. `pageId` narrows the page checks to the page being published; site-wide ones always run. */
38690
39487
  function auditSite(snapshot, options = {}) {
38691
39488
  const pages = options.pageId ? snapshot.pages.filter(p => p.id === options.pageId) : snapshot.pages;
@@ -38700,6 +39497,7 @@ function auditSite(snapshot, options = {}) {
38700
39497
  checkAccessibility(ctx, snapshot, pages);
38701
39498
  checkTokens(ctx, snapshot, pages);
38702
39499
  checkActions(ctx, snapshot, pages);
39500
+ checkPopups(ctx, snapshot, pages);
38703
39501
  const checks = SITE_CHECKS.map(id => {
38704
39502
  const findings = ctx.out.filter(f => f.check === id);
38705
39503
  return { id, passed: !findings.some(f => f.severity !== CheckSeverity.Warn), findings };
@@ -40007,7 +40805,7 @@ const filled = (value) => typeof value === 'string' && value.trim() !== '';
40007
40805
  /** May the pattern stand in for another at a fallen page's opening — a plain section of the same family. */
40008
40806
  function mayStandIn(id, family) {
40009
40807
  const p = patternById(id);
40010
- return !!p && p.family === family && !p.scene && !p.film && !p.shop && !p.global && !patternNeedsBinding(p);
40808
+ return !!p && p.family === family && !p.scene && !p.film && !p.imported && !p.shop && !p.global && !patternNeedsBinding(p);
40011
40809
  }
40012
40810
  /**
40013
40811
  * The plan section moved onto `to`, every word and link it holds carried to `to`'s slot of the same kind — or null when
@@ -41082,5 +41880,5 @@ function siteGlobalsOf(globals) {
41082
41880
  * Generated bundle index. Do not edit.
41083
41881
  */
41084
41882
 
41085
- export { ACCOUNT_ENTRY_ID, ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, ADDITION_CAPS, ADDITION_ITEMS_KEY, ADDITION_ITEM_SOURCE_SUFFIX, ADDITION_KEY_PREFIX, ADDITION_SLUG, ADJUSTMENTS, ADJUST_AXIS_LABELS, ADJUST_LOOK, ADJUST_OWN, ADJUST_STEPS, ADJUST_STEP_IDS, AI_COMPOSED_PAGES_BY_TIER, AI_COMPOSED_PAGES_ESTIMATED, AI_COMPOSED_PAGE_LEAN_TOKENS, AI_MODEL_STEPS, AI_PICTURE_MAKERS, AI_PLAN_REASKED_PART, AI_REFUSAL_NEXT, AI_REFUSAL_STATUS, AI_STEPS, AI_STEP_FEATURE, AI_STEP_LABELS, AI_STEP_NEEDS, AI_STEP_PART_TOKENS, AI_STEP_RUNS_AS, AI_STEP_TYPICAL_TOKENS, ART_DIRECTION_PARTS, AWARD_COMPOSED_PAGES_ESTIMATED, AdditionHeldBack, AdditionIssueCode, AdditionOrigin, AdditionsPart, AdditionsSkipped, AdjustAxis, AdjustKind, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiPictureMaker, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BASELINE_WORDS_HE, BODY_TOKEN, BUILD_STEPS, BUTTON_LINK_PROPS, BaselineRole, BindScope, BodyIngredient, BodyMixError, BodyRepairCode, BodyRhythm, BodySeam, BodySectionWord, BodyTexture, BuildNoticeCode, BuildStep, CARRIED_BUTTON_STYLES, CARRY_LAYER_KINDS, CARRY_PHOTO_KINDS, CARRY_PROMPT_QUOTE, CARRY_WHOLE_LAYER_KINDS, CONTENT_ROLE_MEANINGS, COPY_OUT, CREDITS_PER_USD, CardBindTarget, CarryBlockKind, CarryKeptReason, CarryKind, CarryReferenceVia, CheckSeverity, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, DANGLING_LINK_CODES, DEFAULT_FOOTER_PATTERN, DEFAULT_GENERATION_TIER, DEFAULT_HEADER_PATTERN, DEFAULT_PHONE_MENU_BREAKPOINT, DEFAULT_SITE_LOCALE, DRAWER_BEAT_MS, DRAWER_KINDS, DRAWER_LETTER_MS, DRAWER_LINE_MS, DRAWER_SPINE, DRAWER_STEPS, ENTRANCE_EASING, ENTRANCE_ORIGIN_LOOK, ENTRANCE_TRIGGER, EntrancePart, EntranceSide, FACT_KEYS, FIELD_TYPE_OF_CONTROL, FILL_ASPECT, FILM_PATTERN, FINAL_GENERATION_STAGES, FINDING_SEVERITY, FOOTER_INSET_STYLES, FOOTER_LEGAL_ROLE, FOOTER_TOKEN, FORM_LEGAL_ROLE, FREE_BUILDER_TYPE, FREE_CONTRAST, FREE_ELEMENT_STYLES, FREE_HOLDERS, FREE_HOVER_PROPS, FREE_LEAD_ROLE, FREE_MOVES, FREE_PHONE_LAYERS, FREE_PHONE_LIMITS, FREE_SECTIONS, FREE_STYLE_PROPS, FREE_TOKEN_PROPS, FREE_TO_LAYOUT_CODE, FREE_WIRE_NODE_KEYS, FREE_WORD_TYPES, FallbackOpeningKept, FilmUnplaced, FindingGrouping, FooterArrange, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterNameStyle, FooterRepairCode, FooterRole, FreeIssueCode, FreeLayer, FreeNodeType, FreePictures, FreePurpose, FreeTrigger, GRAMMAR_TOO_LARGE_MESSAGE, GenerationTier, GlobalSlot, GroundTone, HAND_PAGE_KEY_PREFIX, HEADER_TOKEN, HEBREW_PREFIXES, HeaderAction, HeaderArrange, HeaderIngredient, HeaderMixError, HeaderPages, HeaderRepairCode, HeaderReplacedKind, IMPRINT_COUNTRIES, ISRAEL, JOINED_HEADER_PADDING, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptPagesChoice, KeptReason, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_COLUMN_MENDED, LAYOUT_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_LIST_TOKEN, LAYOUT_MIX_OFFERED, LAYOUT_MIX_OFFERED_AWARD, LAYOUT_MIX_WORDS, LAYOUT_NEAR_MISS, LAYOUT_OPERATED, LAYOUT_OWNED_PROPS, LAYOUT_PACE, LAYOUT_PHONE_BREAKPOINT, LAYOUT_PHONE_PADDING, LAYOUT_PHOTO_ASPECT, LAYOUT_READY_MADE_TOKEN, LAYOUT_RISE, LAYOUT_SCREEN_PX, LAYOUT_SETTLE_PASSES, LAYOUT_TEXT_KINDS, LAYOUT_TOOLTIP_TRAIT, LAYOUT_VIEWPORTS, LAYOUT_WIRE_AUTOPLAY_MS, LEGAL_KINDS, LEGAL_PAGE_SETTING, LIST_CARD_PART, LIST_DECK_MAX_PX, LIST_DECK_SHARE, LIST_FRAME_STYLE_KEYS, LIST_INGREDIENTS, LIST_ITEM_MIN_PX, LIST_LONG_WORDS, LIST_RHYTHMS, LIST_ROLE_WORDS, LIST_RULES, LIST_SAY_WORDS, LIST_TABLE, LIST_WORDS_BESIDE_RULE, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutListArrange, LayoutListArrive, LayoutListHover, LayoutListHow, LayoutListItem, LayoutListMove, LayoutListPhone, LayoutListRole, LayoutListSide, LayoutListWho, LayoutMendKind, LayoutMixIngredient, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutScrubRefusal, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, LegalBlocks, LegalFact, LegalKind, ListPartChange, ListPartOutcome, ListSayCode, ListWordRefusal, MAX_SITE_PICTURES, MOTION_TRIGGERS, MOVING_OPENING_MEDIA, MenuSide, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, ONCE_ENTRANCE_MS, OPENING_DISSOLVE, OPENING_HEIGHT, OPENING_MIX_PROP, OPENING_TOKEN, OpeningExtra, OpeningFrame, OpeningGround, OpeningIngredient, OpeningMedia, OpeningMixError, OpeningMotion, OpeningRepairCode, OpeningRole, OpeningWords, PAGE_ARCHETYPES, PERSONAL_CONTROLS, PHOTO_ANALYSIS_WIDTH, PHOTO_CALM_DETAIL, PHOTO_GRID, PHOTO_LIGHT_LUMINANCE, PICTURE_ASPECTS, PICTURE_NEVER, PICTURE_REAL_PLACE_FAMILIES, PICTURE_REROLL_EVERY, PICTURE_REVIEW_FORMAT, PICTURE_REVIEW_SHAPE, PICTURE_TEXT_CONTRAST, PICTURE_TOKENS_UNKNOWN_MAKER, PICTURE_WORLDS, PICTURE_WORLD_IDS, PLAN_EDITS_ANSWER_SHAPES, PLAN_EDITS_PART_SCHEMA_NAMES, PLAN_EDIT_OP_PART, PLAN_EDIT_SHAPE, PLAN_EDIT_WIRE_KEYS, PLAN_PARTS, PLAN_PART_KEYS, PLAN_WIRE_DERIVED, PLAN_WIRE_PART_SCHEMA_NAMES, PLAN_WIRE_SHAPE, PREVIOUS_ROUTE_SUFFIX, PRICING_PATTERN, PROOF_FINGERPRINTS, PUBLISH_BLOCKING_PLACEHOLDERS, PageDataKind, PathIssueCollector, PatternDirective, PatternGlobalPosition, PatternOpens, PatternPlaceholder, PatternRecipe, PhoneMenuBreakpoint, PhotoTone, PictureRefusal, PictureWorld, PlaceholderKind, PlanChangeAction, PlanChangeKind, PlanDataSourceMode, PlanDataSourceType, PlanEditIssueCode, PlanEditOp, PlanEditsOutcome, PlanPart, PlanWireEntry, PlanWireShapeError, PlanWordIssueCode, PreflightRefusalCode, PriceBindTarget, PromptLimit, PublishRefusalCode, PublishScope, REDESIGN_ADDITIONS_SCHEMA_NAMES, REDESIGN_BACK_DAYS, REDESIGN_PARTS, REDESIGN_STEPS, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RedesignPageResult, RedesignPart, RedesignRefusalCode, RedesignStep, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SCRUBBED_ENTRANCE, SCRUB_UNTIL, SHOP_CART_BUTTON_ID, SHOP_CART_DRAWER_ID, SHOP_FIELDS, SHOP_LATEST_LIMIT, SHOP_LIST_LIMIT, SHOP_NEED, SHOP_ONLY_CONTENT_ROLES, SHOP_PRODUCTS_MAX, SHOP_ROLES, SHOP_SLUG_FIELD, SHOWCASE_FILM, SHOWCASE_SHOP, SIGN_IN_DIALOG_ID, SITE_CHECKS, SITE_FACT_LABELS, SITE_FINDING_WORDS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PAGE_MOVED_ASIDE, SITE_PATTERNS, SITE_PLAN_VERSION, SITE_TEMPLATES, SPEC_SITE_ARCHETYPES, SPEC_SITE_COPY_LENGTHS, SPEC_SITE_DENSITY_COPY, SPEC_SITE_FACTS, SPEC_SITE_FOOTER_PARTS, SPEC_SITE_HEADER_PARTS, SPEC_SITE_LAYOUT, SPEC_SITE_LIBRARY, SPEC_SITE_LOCALES, SPEC_SITE_NEED_IDS, SPEC_SITE_PATTERNS, SPEC_SITE_PICTURE_NEVER, SPEC_SITE_PICTURE_WORLDS, SPEC_SITE_PLAN_SHAPE, SPEC_SITE_REQUIRED_ROLES, SPEC_SITE_ROLES, SPEC_SITE_TEMPLATES, STAMPED_PAGE_ARCHETYPES, START_QUOTE_STEPS, START_QUOTE_TOKENS, STOCK_FAMILIES, STOCK_FAMILY_INTENTS, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MIN_KEPT, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STORE_CONTACT_CODES, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, SWAP_CARRY_KINDS, ScrimLevel, ScrubUntil, SectionFallbackLastResort, SectionMaker, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePageMaker, SitePageStatus, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StagedPageReason, StagedPageWay, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, TYPE_LED_KEPT, TYPE_LED_OPTIONAL_PARTS, TYPE_LED_SWAPS, TypeLedChangeKind, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, additionKey, additionSourcesOf, additionsNeedContent, adjustStepLabel, adjustStepOf, adjustStyleProps, aiModelStep, aiRefusalNext, aiStepParts, applyHeaderMix, applyLayoutEdits, applyOpeningMix, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, bentoFill, bentoFillsParams, blocksPublish, bodyMeaning, bodyMix, bodyMixFromWords, bodyMixOfPlan, bodyMixWords, bodySeamClass, bodySeamShape, bodyTokenOf, bodyWireWords, bodyWordDrawn, bodyWordOffered, bodyWordTier, bodyWordWaits, bodyWords, boxSides, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calmParts, calmUnder, canonicalNodeJson, canonicalValue, carryBlockOf, carryButtonLink, carryHandles, carryInto, carryKindOf, carryNotPlaced, carrySection, checkAdditions, checkBody, checkCarry, checkFooter, checkFree, checkFreeSection, checkHeader, checkLayout, checkList, checkOpening, chooseScrim, chooseTypeLedOpening, columnIssues, composablePage, composeContextOf, composeFreePage, composeFreeSection, composeLayout, composeListFrame, composeNavHeader, composeOpening, composePresetForm, composeSection, composeSite, composedPagesMax, composedPagesShare, composerLeftovers, composingShare, contactFactsOf, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, copyOutInteraction, costUsd, countryLegalFacts, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeCarryForPrompt, describeInventoryForPrompt, describeListShape, describePlanData, describeShapeKey, dissolveInteraction, distinctFallbackSections, distinctFooter, distinctHeader, drawerRamp, drawerRestX, drawerStepCount, drawerSteps, drawerWidth, drawersTiming, drawnBodyMix, drawnFooterMix, drawnHeaderMix, drawnOpeningMix, driftAt, driftOverlap, duplicateNodeIds, editedPageIds, emptyAreaPhrase, emptyPictures, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandAdditions, expandFreeWire, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, factIssues, failedBuildStep, fallBackBySection, fallBackFree, fallbackFingerprintOf, fallbackFingerprintOfPlanPage, fieldToWire, fillContactFacts, filmOfPlan, filmPlacement, findNavRoot, findOpening, findingMessageOf, findingSentence, fingerprintOf, fingerprintOfPlanPage, followedAfter, followedIssues, footerCallWord, footerMeaning, footerMix, footerMixFromWords, footerMixOfPlan, footerMixWords, footerNameFits, footerPattern, footerPatternIdOf, footerReferences, footerTableWords, footerTokenOf, footerTokenWords, footerWait, footerWireWords, footerWords, formAsksPersonalData, formLegalFacts, frameWords, freeContrastIssues, freeControlsOf, freeMoveOf, freeMoveWord, freeMoveWords, freeNodeId, freeSectionAsLayout, freeSectionOwner, freeSignaturePage, freeSlotIssues, freeStampedId, freeStyleIssues, freeStyleToSlots, freeStyleWithoutSlot, freeToWire, freeWireJsonSchema, freeWirePath, generationTierOf, groundToneOf, groupSentence, groupSiteFindings, handPageKey, handPlanPage, harvestPage, hash53, headerAdvice, headerCompanions, headerContextOfPlan, headerGallery, headerGalleryIdOf, headerMeaning, headerMix, headerMixFromWords, headerMixOfNavKind, headerMixOfPlan, headerMixValue, headerMixWords, headerPatternIdOf, headerRecipe, headerReferences, headerShape, headerSiteFor, headerTokenOf, headerTokenWords, headerWireWords, headerWordDrawn, headerWords, isActiveBuild, isAdditionKey, isDrawers, isHandPageKey, isLayoutRule, isLegalKind, isNonEmptyString, isPerItemPage, isPictureWorld, isPlainObject, isRedesignRun, isRtlLocale, isScrubbedEntrance, isSectionCarryHandle, isSectionStamp, isShopResource, isTemplateRoute, joinPageHeader, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, keepListParts, layerMetricsOf, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsOffered, layoutColumnsVw, layoutCounterDepth, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutEntersOffered, layoutFlagsOffered, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBare, layoutListBinding, layoutListDrawnCols, layoutListPair, layoutListShapes, layoutListsContext, layoutLookChanges, layoutLookOf, layoutMixOffered, layoutMotionOf, layoutNearMiss, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutScrubTakes, layoutSectionKindsOffered, layoutShapeHasPurpose, layoutSignatureOffered, layoutSignaturesOffered, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, legalFactsOf, legalFormLine, legalKindBlocks, legalKindOfPage, legalKindRow, legalKindsFor, legalLabel, legalPageOf, legalRoute, legalTitle, listBelowPro, listBindingOfType, listBuiltWords, listColumns, listDetailOf, listIngredientWords, listMeaning, listMixFromWords, listMixOfFrame, listMixValue, listMixWords, listNeverIsEmpty, listOverhang, listPanelRows, listSaidSentence, listSentence, listShapeOfType, listTokenOf, listTokensOf, listWait, listWordOffered, listWordRef, listWordRefs, listWordRefusal, listWordTier, listWords, luminanceOf, measureFree, measureLayout, mendCarry, mendLayout, mendNotices, menuAtEveryWidth, menuLookOf, menuWords, modelCanDo, moveBarItem, moveEntrance, nameStyleOf, namedFooterMix, namedHeaderMix, namedOpeningMix, navHeaderContext, navPages, navShapeBreakpoint, navShapeOf, nearestHeaderMix, nestSitePages, nextSourceOf, nodeBindPaths, offeredForTier, onceEntrance, openingAdvice, openingAdviceMix, openingContextOf, openingFromSection, openingGallery, openingGalleryIdOf, openingHarnessWord, openingIsTypeLed, openingMeaning, openingMix, openingMixFromWords, openingMixOfPlan, openingMixValue, openingMixWords, openingPatternIdOf, openingPhoneInset, openingRecipe, openingReferences, openingTokenOf, openingTokenParts, openingWireWords, openingWordDrawn, openingWordOffered, openingWordTier, openingWordWaits, openingWords$1 as openingWords, orientationOfRatio, outwardCredits, ownPhotoFit, ownerContentInto, paddingKeepingClear, pageBuildSource, pageListIssues, pageShowsShop, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pickListWord, pictureAspect, pictureItemsOf, pictureMakerOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTokensFor, pictureTryFits, picturelessTypes, pinnedPagesOf, pixelsUnder, placeFilm, plainCarryText, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planHasShopSource, planHeader, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planSells, planStockPhotos, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWireShape, planWordIssues, previousRoute, pricesIn, promptLimitsOf, publishRefusal, publishVerdict, quietMoveEntrance, quoteListOf, quotesIn, readHeader, readOpening, readyMadeColumn, readyMadeToken, recipeListBinds, recomposeAsks, redesignAdditionsJsonSchema, redesignBackOpen, redesignBackUntil, redesignDiscardable, redesignPreviousChoices, refitBuiltPage, refitPage, refreshSectionStamps, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, rewordStoreGlobal, rhythmIssues, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, scrubEntranceStamps, scrubTokenOf, scrubUntilChoice, scrubbedEntrance, scrubsEntrance, sectionBreaks, sectionBuildKey, sectionEntrances, sectionFingerprint, sectionOrigin, sectionPatternIds, sectionToWire, sectionTokenOf, sectionUnchanged, sectionsNamed, sequenceRepeats, sequenceShare, sequenceTokenOf, setStyleProps, settleLayoutPage, shapeKeys, shopCategoriesOf, shopContentType, shopListAliases, shopListsShownOn, shopPageOfPlan, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteBuiltWithLaw, siteFactLabel, siteGlobalsOf, siteNavPages, sitePages, sitePagesOf, siteParentRoute, siteSells, siteTreeOf, siteTreeOfPlan, slotBudget, splitCssValue, splitSide, stampFooterMix, stampHeaderMix, stampOpeningMix, stampOpeningMotion, stampSection, startComposingShare, startQuote, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, storedHeaderMix, storedOpeningMix, strictSchemaComplexity, strictSchemaRefusal, swapParts, tierOf, tierOffers, toneOf, typeLedGroundFor, typeLedGrounds, typeLedLayoutSection, typeLedNotices, typeLedOpeningSection, typeLedOpeningWays, typeLedRound, typeLedSection, typesOfAddition, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkFree, walkSerialized, wearBodyMix, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withAdditions, withCarriedText, withComposedPages, withDerivedSources, withDistinctFooter, withDistinctHeader, withHeaderWord, withListWord, withOpeningWord, withShownList, withoutFreeOrphans, wordPattern, wordsOverPhotos, wordsOverPicture, wornHeaderOfPlan, wornOpenings, writtenTexts };
41883
+ export { ACCOUNT_ENTRY_ID, ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, ADDITION_CAPS, ADDITION_ITEMS_KEY, ADDITION_ITEM_SOURCE_SUFFIX, ADDITION_KEY_PREFIX, ADDITION_SLUG, ADJUSTMENTS, ADJUST_AXIS_LABELS, ADJUST_LOOK, ADJUST_OWN, ADJUST_STEPS, ADJUST_STEP_IDS, AI_COMPOSED_PAGES_BY_TIER, AI_COMPOSED_PAGES_ESTIMATED, AI_COMPOSED_PAGE_LEAN_TOKENS, AI_MODEL_STEPS, AI_PICTURE_MAKERS, AI_PLAN_REASKED_PART, AI_REFUSAL_NEXT, AI_REFUSAL_STATUS, AI_STEPS, AI_STEP_FEATURE, AI_STEP_LABELS, AI_STEP_NEEDS, AI_STEP_PART_TOKENS, AI_STEP_RUNS_AS, AI_STEP_TYPICAL_TOKENS, ART_DIRECTION_PARTS, AWARD_COMPOSED_PAGES_ESTIMATED, AdditionHeldBack, AdditionIssueCode, AdditionOrigin, AdditionsPart, AdditionsSkipped, AdjustAxis, AdjustKind, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiPictureMaker, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BASELINE_WORDS_HE, BODY_TOKEN, BUILD_STEPS, BUTTON_LINK_PROPS, BaselineRole, BindScope, BodyIngredient, BodyMixError, BodyRepairCode, BodyRhythm, BodySeam, BodySectionWord, BodyTexture, BuildNoticeCode, BuildStep, CARRIED_BUTTON_STYLES, CARRY_LAYER_KINDS, CARRY_PHOTO_KINDS, CARRY_PROMPT_QUOTE, CARRY_WHOLE_LAYER_KINDS, CONTENT_ROLE_MEANINGS, COPY_OUT, CREDITS_PER_USD, CardBindTarget, CarryBlockKind, CarryKeptReason, CarryKind, CarryReferenceVia, CheckSeverity, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, DANGLING_LINK_CODES, DEFAULT_FOOTER_PATTERN, DEFAULT_GENERATION_TIER, DEFAULT_HEADER_PATTERN, DEFAULT_PHONE_MENU_BREAKPOINT, DEFAULT_SITE_LOCALE, DRAWER_BEAT_MS, DRAWER_KINDS, DRAWER_LETTER_MS, DRAWER_LINE_MS, DRAWER_SPINE, DRAWER_STEPS, ENTRANCE_EASING, ENTRANCE_ORIGIN_LOOK, ENTRANCE_TRIGGER, EntrancePart, EntranceSide, FACT_KEYS, FIELD_TYPE_OF_CONTROL, FILL_ASPECT, FILM_PATTERN, FINAL_GENERATION_STAGES, FINDING_SEVERITY, FOOTER_INSET_STYLES, FOOTER_LEGAL_ROLE, FOOTER_TOKEN, FORM_LEGAL_ROLE, FREE_BUILDER_TYPE, FREE_CONTRAST, FREE_ELEMENT_STYLES, FREE_HOLDERS, FREE_HOVER_PROPS, FREE_LEAD_ROLE, FREE_MOVES, FREE_PHONE_LAYERS, FREE_PHONE_LIMITS, FREE_SECTIONS, FREE_STYLE_PROPS, FREE_TOKEN_PROPS, FREE_TO_LAYOUT_CODE, FREE_WIRE_NODE_KEYS, FREE_WORD_TYPES, FallbackOpeningKept, FilmUnplaced, FindingGrouping, FooterArrange, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterNameStyle, FooterRepairCode, FooterRole, FreeIssueCode, FreeLayer, FreeNodeType, FreePictures, FreePurpose, FreeTrigger, GRAMMAR_TOO_LARGE_MESSAGE, GenerationTier, GlobalSlot, GroundTone, HAND_PAGE_KEY_PREFIX, HEADER_TOKEN, HEBREW_PREFIXES, HeaderAction, HeaderArrange, HeaderIngredient, HeaderMixError, HeaderPages, HeaderRepairCode, HeaderReplacedKind, IMPORT_NAV_MAX, IMPRINT_COUNTRIES, ISRAEL, ITEM_PAGE_ONLY_ROLES, ImportPattern, JOINED_HEADER_PADDING, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptPagesChoice, KeptReason, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_COLUMN_MENDED, LAYOUT_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_LIST_TOKEN, LAYOUT_MIX_OFFERED, LAYOUT_MIX_OFFERED_AWARD, LAYOUT_MIX_WORDS, LAYOUT_NEAR_MISS, LAYOUT_OPERATED, LAYOUT_OWNED_PROPS, LAYOUT_PACE, LAYOUT_PHONE_BREAKPOINT, LAYOUT_PHONE_PADDING, LAYOUT_PHOTO_ASPECT, LAYOUT_READY_MADE_TOKEN, LAYOUT_RISE, LAYOUT_SCREEN_PX, LAYOUT_SETTLE_PASSES, LAYOUT_TEXT_KINDS, LAYOUT_TOOLTIP_TRAIT, LAYOUT_VIEWPORTS, LAYOUT_WIRE_AUTOPLAY_MS, LEGAL_KINDS, LEGAL_PAGE_SETTING, LIST_CARD_PART, LIST_DECK_MAX_PX, LIST_DECK_SHARE, LIST_FRAME_STYLE_KEYS, LIST_INGREDIENTS, LIST_ITEM_MIN_PX, LIST_LONG_WORDS, LIST_RHYTHMS, LIST_ROLE_WORDS, LIST_RULES, LIST_SAY_WORDS, LIST_TABLE, LIST_WORDS_BESIDE_RULE, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutListArrange, LayoutListArrive, LayoutListHover, LayoutListHow, LayoutListItem, LayoutListMove, LayoutListPhone, LayoutListRole, LayoutListSide, LayoutListWho, LayoutMendKind, LayoutMixIngredient, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutScrubRefusal, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, LegalBlocks, LegalFact, LegalKind, ListPartChange, ListPartOutcome, ListSayCode, ListWordRefusal, MAX_SITE_PICTURES, MOTION_TRIGGERS, MOVING_OPENING_MEDIA, MenuSide, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, ONCE_ENTRANCE_MS, OPENING_DISSOLVE, OPENING_HEIGHT, OPENING_MIX_PROP, OPENING_TOKEN, OpeningExtra, OpeningFrame, OpeningGround, OpeningIngredient, OpeningMedia, OpeningMixError, OpeningMotion, OpeningRepairCode, OpeningRole, OpeningWords, PAGE_ARCHETYPES, PERSONAL_CONTROLS, PHOTO_ANALYSIS_WIDTH, PHOTO_CALM_DETAIL, PHOTO_GRID, PHOTO_LIGHT_LUMINANCE, PICTURE_ASPECTS, PICTURE_NEVER, PICTURE_REAL_PLACE_FAMILIES, PICTURE_REROLL_EVERY, PICTURE_REVIEW_FORMAT, PICTURE_REVIEW_SHAPE, PICTURE_TEXT_CONTRAST, PICTURE_TOKENS_UNKNOWN_MAKER, PICTURE_WORLDS, PICTURE_WORLD_IDS, PLAN_EDITS_ANSWER_SHAPES, PLAN_EDITS_PART_SCHEMA_NAMES, PLAN_EDIT_OP_PART, PLAN_EDIT_SHAPE, PLAN_EDIT_WIRE_KEYS, PLAN_PARTS, PLAN_PART_KEYS, PLAN_WIRE_DERIVED, PLAN_WIRE_PART_SCHEMA_NAMES, PLAN_WIRE_SHAPE, POPUP_GLOBAL_ID, POPUP_LINK_WORD, POPUP_WIRE_INGREDIENTS, PREVIOUS_ROUTE_SUFFIX, PRICING_PATTERN, PROOF_FINGERPRINTS, PUBLISH_BLOCKING_PLACEHOLDERS, PageDataKind, PathIssueCollector, PatternDirective, PatternGlobalPosition, PatternOpens, PatternPlaceholder, PatternRecipe, PhoneMenuBreakpoint, PhotoTone, PictureRefusal, PictureWorld, PlaceholderKind, PlanChangeAction, PlanChangeKind, PlanDataSourceMode, PlanDataSourceType, PlanEditIssueCode, PlanEditOp, PlanEditsOutcome, PlanPart, PlanWireEntry, PlanWireShapeError, PlanWordIssueCode, PopupMixError, PopupRefusal, PreflightRefusalCode, PriceBindTarget, PromptLimit, PublishRefusalCode, PublishScope, REDESIGN_ADDITIONS_SCHEMA_NAMES, REDESIGN_BACK_DAYS, REDESIGN_PARTS, REDESIGN_STEPS, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RedesignPageResult, RedesignPart, RedesignRefusalCode, RedesignStep, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SCRUBBED_ENTRANCE, SCRUB_UNTIL, SHOP_CART_BUTTON_ID, SHOP_CART_DRAWER_ID, SHOP_FIELDS, SHOP_LATEST_LIMIT, SHOP_LIST_LIMIT, SHOP_NEED, SHOP_ONLY_CONTENT_ROLES, SHOP_PRODUCTS_MAX, SHOP_ROLES, SHOP_SLUG_FIELD, SHOWCASE_FILM, SHOWCASE_SHOP, SIGN_IN_DIALOG_ID, SITE_CHECKS, SITE_FACT_LABELS, SITE_FINDING_WORDS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PAGE_MOVED_ASIDE, SITE_PATTERNS, SITE_PLAN_VERSION, SITE_TEMPLATES, SPEC_SITE_ARCHETYPES, SPEC_SITE_COPY_LENGTHS, SPEC_SITE_DENSITY_COPY, SPEC_SITE_FACTS, SPEC_SITE_FOOTER_PARTS, SPEC_SITE_HEADER_PARTS, SPEC_SITE_LAYOUT, SPEC_SITE_LIBRARY, SPEC_SITE_LOCALES, SPEC_SITE_NEED_IDS, SPEC_SITE_PATTERNS, SPEC_SITE_PICTURE_NEVER, SPEC_SITE_PICTURE_WORLDS, SPEC_SITE_PLAN_SHAPE, SPEC_SITE_REQUIRED_ROLES, SPEC_SITE_ROLES, SPEC_SITE_TEMPLATES, STAMPED_PAGE_ARCHETYPES, START_QUOTE_STEPS, START_QUOTE_TOKENS, STOCK_FAMILIES, STOCK_FAMILY_INTENTS, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MIN_KEPT, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STORE_CONTACT_CODES, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, SWAP_CARRY_KINDS, ScrimLevel, ScrubUntil, SectionFallbackLastResort, SectionMaker, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePageMaker, SitePageStatus, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StagedPageReason, StagedPageWay, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, TEMPLATE_TYPE_WORDS, TYPE_LED_KEPT, TYPE_LED_OPTIONAL_PARTS, TYPE_LED_SWAPS, TypeLedChangeKind, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, additionKey, additionSourcesOf, additionsNeedContent, adjustStepLabel, adjustStepOf, adjustStyleProps, aiModelStep, aiRefusalNext, aiStepParts, applyHeaderMix, applyLayoutEdits, applyOpeningMix, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, bentoFill, bentoFillsParams, blocksPublish, bodyMeaning, bodyMix, bodyMixFromWords, bodyMixOfPlan, bodyMixWords, bodySeamClass, bodySeamShape, bodyTokenOf, bodyWireWords, bodyWordDrawn, bodyWordOffered, bodyWordTier, bodyWordWaits, bodyWords, boxSides, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calmParts, calmUnder, canonicalNodeJson, canonicalValue, carryBlockOf, carryButtonLink, carryHandles, carryInto, carryKindOf, carryNotPlaced, carrySection, checkAdditions, checkBody, checkCarry, checkFooter, checkFree, checkFreeSection, checkHeader, checkLayout, checkList, checkOpening, checkPopup, chooseScrim, chooseTypeLedOpening, columnIssues, composablePage, composeContextOf, composeFreePage, composeFreeSection, composeLayout, composeListFrame, composeNavHeader, composeOpening, composePopup, composePresetForm, composeSection, composeSite, composedPagesMax, composedPagesShare, composerLeftovers, composingShare, contactFactsOf, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, copyOutInteraction, costUsd, countryLegalFacts, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeCarryForPrompt, describeInventoryForPrompt, describeListShape, describePlanData, describeShapeKey, dissolveInteraction, distinctFallbackSections, distinctFooter, distinctHeader, drawerRamp, drawerRestX, drawerStepCount, drawerSteps, drawerWidth, drawersTiming, drawnBodyMix, drawnFooterMix, drawnHeaderMix, drawnOpeningMix, driftAt, driftOverlap, duplicateNodeIds, editedPageIds, emptyAreaPhrase, emptyPictures, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandAdditions, expandFreeWire, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, factIssues, failedBuildStep, fallBackBySection, fallBackFree, fallbackFingerprintOf, fallbackFingerprintOfPlanPage, fieldToWire, figuresNotIn, fillContactFacts, filmOfPlan, filmPlacement, findNavRoot, findOpening, findingMessageOf, findingSentence, fingerprintOf, fingerprintOfPlanPage, followedAfter, followedIssues, footerCallWord, footerMeaning, footerMix, footerMixFromWords, footerMixOfPlan, footerMixWords, footerNameFits, footerPattern, footerPatternIdOf, footerReferences, footerTableWords, footerTokenOf, footerTokenWords, footerWait, footerWireWords, footerWords, formAsksPersonalData, formLegalFacts, frameWords, freeContrastIssues, freeControlsOf, freeMoveOf, freeMoveWord, freeMoveWords, freeNodeId, freeSectionAsLayout, freeSectionOwner, freeSignaturePage, freeSlotIssues, freeStampedId, freeStyleIssues, freeStyleToSlots, freeStyleWithoutSlot, freeToWire, freeWireJsonSchema, freeWirePath, generationTierOf, groundToneOf, groupSentence, groupSiteFindings, handPageKey, handPlanPage, harvestPage, hash53, headerAdvice, headerCompanions, headerContextOfPlan, headerGallery, headerGalleryIdOf, headerMeaning, headerMix, headerMixFromWords, headerMixOfNavKind, headerMixOfPlan, headerMixValue, headerMixWords, headerPatternIdOf, headerRecipe, headerReferences, headerShape, headerSiteFor, headerTokenOf, headerTokenWords, headerWireWords, headerWordDrawn, headerWords, importSlug, isActiveBuild, isAdditionKey, isDrawers, isHandPageKey, isImportPlan, isLayoutRule, isLegalKind, isNonEmptyString, isPerItemPage, isPictureWorld, isPlainObject, isRedesignRun, isRtlLocale, isScrubbedEntrance, isSectionCarryHandle, isSectionStamp, isShopResource, isTemplateRoute, joinPageHeader, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, keepListParts, layerMetricsOf, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsOffered, layoutColumnsVw, layoutCounterDepth, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutEntersOffered, layoutFlagsOffered, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBare, layoutListBinding, layoutListDrawnCols, layoutListPair, layoutListShapes, layoutListsContext, layoutLookChanges, layoutLookOf, layoutMixOffered, layoutMotionOf, layoutNearMiss, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutScrubTakes, layoutSectionKindsOffered, layoutShapeHasPurpose, layoutSignatureOffered, layoutSignaturesOffered, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, legalFactsOf, legalFormLine, legalKindBlocks, legalKindOfPage, legalKindRow, legalKindsFor, legalLabel, legalPageOf, legalRoute, legalTitle, listBelowPro, listBindingOfType, listBuiltWords, listColumns, listDetailOf, listIngredientWords, listMeaning, listMixFromWords, listMixOfFrame, listMixValue, listMixWords, listNeverIsEmpty, listOverhang, listPanelRows, listSaidSentence, listSentence, listShapeOfType, listTokenOf, listTokensOf, listWait, listWordOffered, listWordRef, listWordRefs, listWordRefusal, listWordTier, listWords, luminanceOf, measureFree, measureLayout, mendCarry, mendLayout, mendNotices, menuAtEveryWidth, menuLookOf, menuWords, modelCanDo, moveBarItem, moveEntrance, nameStyleOf, namedFooterMix, namedHeaderMix, namedOpeningMix, navHeaderContext, navPages, navShapeBreakpoint, navShapeOf, nearestHeaderMix, nestSitePages, nextSourceOf, nodeBindPaths, offeredForTier, onceEntrance, openingAdvice, openingAdviceMix, openingContextOf, openingFromSection, openingGallery, openingGalleryIdOf, openingHarnessWord, openingIsTypeLed, openingMeaning, openingMix, openingMixFromWords, openingMixOfPlan, openingMixValue, openingMixWords, openingPatternIdOf, openingPhoneInset, openingRecipe, openingReferences, openingTokenOf, openingTokenParts, openingWireWords, openingWordDrawn, openingWordOffered, openingWordTier, openingWordWaits, openingWords$1 as openingWords, orientationOfRatio, outwardCredits, ownPhotoFit, ownerContentInto, paddingKeepingClear, pageBuildSource, pageListIssues, pageShowsShop, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pickListWord, pictureAspect, pictureItemsOf, pictureMakerOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTokensFor, pictureTryFits, picturelessTypes, pinnedPagesOf, pixelsUnder, placeFilm, plainCarryText, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planHasShopSource, planHeader, planImport, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planSells, planStockPhotos, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWireShape, planWordIssues, popupMeaning, popupMixFromWords, popupMixOfPlan, popupTokenOf, popupWireWords, previousRoute, pricesIn, promptLimitsOf, publishRefusal, publishVerdict, quietMoveEntrance, quoteListOf, quotesIn, readHeader, readOpening, readyMadeColumn, readyMadeToken, recipeListBinds, recomposeAsks, redesignAdditionsJsonSchema, redesignBackOpen, redesignBackUntil, redesignDiscardable, redesignPreviousChoices, refitBuiltPage, refitPage, refreshSectionStamps, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, rewordStoreGlobal, rhythmIssues, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, scrubEntranceStamps, scrubTokenOf, scrubUntilChoice, scrubbedEntrance, scrubsEntrance, sectionBreaks, sectionBuildKey, sectionEntrances, sectionFingerprint, sectionOrigin, sectionPatternIds, sectionToWire, sectionTokenOf, sectionUnchanged, sectionsNamed, sequenceRepeats, sequenceShare, sequenceTokenOf, setStyleProps, settleLayoutPage, shapeKeys, shopCategoriesOf, shopContentType, shopListAliases, shopListsShownOn, shopPageOfPlan, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteBuiltWithLaw, siteFactLabel, siteGlobalsOf, siteNavPages, sitePages, sitePagesOf, siteParentRoute, siteSells, siteTreeOf, siteTreeOfPlan, slotBudget, splitCssValue, splitSide, stampFooterMix, stampHeaderMix, stampOpeningMix, stampOpeningMotion, stampSection, startComposingShare, startQuote, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, storedHeaderMix, storedOpeningMix, strictSchemaComplexity, strictSchemaRefusal, swapParts, tierOf, tierOffers, toneOf, typeLedGroundFor, typeLedGrounds, typeLedLayoutSection, typeLedNotices, typeLedOpeningSection, typeLedOpeningWays, typeLedRound, typeLedSection, typesOfAddition, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkFree, walkSerialized, wearBodyMix, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withAdditions, withCarriedText, withComposedPages, withDerivedSources, withDistinctFooter, withDistinctHeader, withHeaderWord, withListWord, withOpeningWord, withShownList, withoutFreeOrphans, wordPattern, wordsOverPhotos, wordsOverPicture, wornHeaderOfPlan, wornOpenings, writtenTexts };
41086
41884
  //# sourceMappingURL=vectoriox-iox-ui-generation-core.mjs.map