@vectoriox/iox-ui 5.195.0 → 5.197.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/composite-core/index.d.ts +15 -2
- package/data-core/index.d.ts +101 -2
- package/design-core/index.d.ts +374 -8
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs +41 -12
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-data-core.mjs +192 -2
- package/fesm2022/vectoriox-iox-ui-data-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs +749 -264
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +1084 -630
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs +224 -3
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-identity-core.mjs +11 -5
- package/fesm2022/vectoriox-iox-ui-identity-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +100 -17
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/generation-core/index.d.ts +351 -109
- package/harness-core/index.d.ts +166 -4
- package/identity-core/index.d.ts +8 -1
- package/index.d.ts +23 -2
- package/package.json +1 -1
- package/src/composite-core/account-runtime.ts +2 -2
- package/src/composite-core/header.ts +23 -1
- package/src/composite-core/slider-runtime.ts +16 -8
- package/src/data-core/placeholder-rows.ts +220 -0
- package/src/data-core/public-api.ts +2 -1
- package/src/design-core/contrast-audit.ts +38 -0
- package/src/design-core/flavor-spec.generated.ts +275 -1
- package/src/design-core/header-behaviour.ts +180 -3
- package/src/design-core/node-classes.ts +9 -2
- package/src/design-core/node-links.ts +34 -0
- package/src/generation-core/audit-site.ts +10 -1
- package/src/generation-core/audit-words.ts +5 -0
- package/src/generation-core/check-free.ts +21 -3
- package/src/generation-core/compose-site.ts +57 -17
- package/src/generation-core/free-opening.ts +57 -0
- package/src/generation-core/header-mix.ts +245 -12
- package/src/generation-core/item-fill.ts +42 -0
- package/src/generation-core/nav-shape.ts +45 -16
- package/src/generation-core/node-baselines.generated.ts +1 -0
- package/src/generation-core/opening-mix.ts +10 -0
- package/src/generation-core/public-api.ts +2 -0
- package/src/generation-core/site-build-run.ts +4 -0
- package/src/generation-core/site-spec.generated.ts +41 -9
- package/src/generation-core/stock-search.ts +106 -18
- package/src/generation-core/type-led.ts +19 -4
- package/src/harness-core/business-types.ts +11 -0
- package/src/harness-core/harness-spec.generated.ts +213 -0
- package/src/harness-core/run-compose-context.ts +12 -4
- package/src/identity-core/site-auth-transport.ts +11 -4
- package/styles/iox-design.css +149 -6
|
@@ -1,6 +1,6 @@
|
|
|
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,
|
|
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, HeaderGround, headerGroundIsOver, headerGroundIsGlass, wcagContrastRatio, resolveSchemeTokenValues, menuFormOf, MenuForm, MenuPhoneForm, menuHoverOf, menuRevealOf, decomposeCssFunctions, FILTER_FUNCTIONS, flavorPackById, ARRIVE_IDS, MOVE_IDS, PRELOADER_IDS, SCRUB_IDS, setColorScheme, LIST_MIX_PROP, ColorScheme, COLOR_SCHEMES, motionLanguageForPlan, headerInkOf, headerGroundOf, 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, PopupKind, PopupTrait, POPUP_KIND_MIX, 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, CAROUSEL_QUOTE_LABELS, pickCarouselAutoBinds, buildSlideshowRecipe, buildLightboxRecipe, LIGHTBOX_LABEL, SLIDE_TO_ROW, setHeaderBehaviour, setHeaderInk, buildConsentRecipe, ConsentActionType, PopupArrive, popupFormOf } from '@vectoriox/iox-ui/composite-core';
|
|
3
|
+
import { SLIDER_TYPE, badgeToneOf, isAnyCompositeRoot, MarqueeRole, NO_ELEMENT_STYLE, ShopRole, AccountRole, PopupKind, PopupTrait, POPUP_KIND_MIX, 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, CAROUSEL_QUOTE_LABELS, pickCarouselAutoBinds, buildSlideshowRecipe, buildLightboxRecipe, LIGHTBOX_LABEL, SLIDE_TO_ROW, setHeaderBehaviour, setHeaderInk, setHeaderGround, buildConsentRecipe, ConsentActionType, 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, busyWord, 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, SEO_ROBOTS_OPTIONS, fitSeoText, SEO_ROBOTS_NOINDEX, redirectPath } from '@vectoriox/iox-ui/seo-core';
|
|
@@ -8,6 +8,7 @@ import { VARIANT_NAME_SEPARATOR, commerceLanguage, CommerceLanguage, CHECKOUT_GA
|
|
|
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
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
|
+
import { isNumberedPlaceholderTitle } from '@vectoriox/iox-ui/data-core';
|
|
11
12
|
|
|
12
13
|
// GENERATED from iox-ai-guidance flavor-spec.v1.json — do not edit; re-run scripts/gen-flavor-spec.mjs
|
|
13
14
|
// (npm run gen:flavor-spec). The JSON is itself generated by iox-ai-guidance
|
|
@@ -8351,6 +8352,7 @@ const SPEC_SITE_LAYOUT = {
|
|
|
8351
8352
|
"solid",
|
|
8352
8353
|
"over",
|
|
8353
8354
|
"glass",
|
|
8355
|
+
"over-glass",
|
|
8354
8356
|
"blend"
|
|
8355
8357
|
],
|
|
8356
8358
|
"shape": [
|
|
@@ -8439,6 +8441,7 @@ const SPEC_SITE_LAYOUT = {
|
|
|
8439
8441
|
"ground.solid": "its own ground",
|
|
8440
8442
|
"ground.over": "over the opening, transparent until the page moves",
|
|
8441
8443
|
"ground.glass": "frosted glass (a look with a blur)",
|
|
8444
|
+
"ground.over-glass": "over the opening and clear at first; frosted glass once the page moves",
|
|
8442
8445
|
"ground.blend": "blends with what is under it, readable over any picture",
|
|
8443
8446
|
"shape.bar": "a full-width bar",
|
|
8444
8447
|
"shape.pill": "one floating rounded bar",
|
|
@@ -8504,6 +8507,7 @@ const SPEC_SITE_LAYOUT = {
|
|
|
8504
8507
|
"ground.solid": "רקע משלו",
|
|
8505
8508
|
"ground.over": "מעל הפתיחה, שקוף עד שהדף זז",
|
|
8506
8509
|
"ground.glass": "זכוכית חלבית (מראה עם טשטוש)",
|
|
8510
|
+
"ground.over-glass": "מעל הפתיחה ושקופה בהתחלה; זכוכית חלבית ברגע שהדף זז",
|
|
8507
8511
|
"ground.blend": "נבלע במה שמתחתיו, קריא מעל כל תמונה",
|
|
8508
8512
|
"shape.bar": "פס ברוחב מלא",
|
|
8509
8513
|
"shape.pill": "פס מעוגל אחד שמרחף",
|
|
@@ -8559,14 +8563,6 @@ const SPEC_SITE_LAYOUT = {
|
|
|
8559
8563
|
"phase": "HI6",
|
|
8560
8564
|
"drawnAs": "links"
|
|
8561
8565
|
},
|
|
8562
|
-
"ground.over": {
|
|
8563
|
-
"phase": "HI3",
|
|
8564
|
-
"drawnAs": "solid"
|
|
8565
|
-
},
|
|
8566
|
-
"ground.glass": {
|
|
8567
|
-
"phase": "HI3",
|
|
8568
|
-
"drawnAs": "solid"
|
|
8569
|
-
},
|
|
8570
8566
|
"ground.blend": {
|
|
8571
8567
|
"phase": "HI3",
|
|
8572
8568
|
"drawnAs": "solid"
|
|
@@ -8639,6 +8635,17 @@ const SPEC_SITE_LAYOUT = {
|
|
|
8639
8635
|
"wordsHe": "שם ודפים · כפתור אחד · מגירה בטלפון",
|
|
8640
8636
|
"mix": {}
|
|
8641
8637
|
},
|
|
8638
|
+
{
|
|
8639
|
+
"id": "over-picture",
|
|
8640
|
+
"name": "Over the picture",
|
|
8641
|
+
"nameHe": "מעל התמונה",
|
|
8642
|
+
"words": "Over the opening, then glass · one button",
|
|
8643
|
+
"wordsHe": "מעל הפתיחה, ואז זכוכית · כפתור אחד",
|
|
8644
|
+
"mix": {
|
|
8645
|
+
"ground": "over-glass",
|
|
8646
|
+
"edge": "none"
|
|
8647
|
+
}
|
|
8648
|
+
},
|
|
8642
8649
|
{
|
|
8643
8650
|
"id": "card",
|
|
8644
8651
|
"name": "Card from the button",
|
|
@@ -8737,7 +8744,33 @@ const SPEC_SITE_LAYOUT = {
|
|
|
8737
8744
|
"pinnedMax": 1,
|
|
8738
8745
|
"inlineRoomPx": 1100,
|
|
8739
8746
|
"betweenNameEm": 7,
|
|
8740
|
-
"betweenMinPages": 2
|
|
8747
|
+
"betweenMinPages": 2,
|
|
8748
|
+
"overFrames": [
|
|
8749
|
+
"full",
|
|
8750
|
+
"shrinks",
|
|
8751
|
+
"grows"
|
|
8752
|
+
],
|
|
8753
|
+
"overMedia": [
|
|
8754
|
+
"photo",
|
|
8755
|
+
"film",
|
|
8756
|
+
"slideshow",
|
|
8757
|
+
"object",
|
|
8758
|
+
"material"
|
|
8759
|
+
],
|
|
8760
|
+
"glassFlavors": [
|
|
8761
|
+
"crisp",
|
|
8762
|
+
"linen",
|
|
8763
|
+
"midnight",
|
|
8764
|
+
"glass",
|
|
8765
|
+
"bloom"
|
|
8766
|
+
],
|
|
8767
|
+
"glassIsOwnBar": [
|
|
8768
|
+
"glass"
|
|
8769
|
+
],
|
|
8770
|
+
"noEdgeGrounds": [
|
|
8771
|
+
"glass",
|
|
8772
|
+
"over-glass"
|
|
8773
|
+
]
|
|
8741
8774
|
},
|
|
8742
8775
|
"references": [
|
|
8743
8776
|
{
|
|
@@ -12798,6 +12831,7 @@ const NODE_BASELINES = {
|
|
|
12798
12831
|
"headerEdge",
|
|
12799
12832
|
"headerMix",
|
|
12800
12833
|
"headerInk",
|
|
12834
|
+
"headerGround",
|
|
12801
12835
|
"marqueeSpeed",
|
|
12802
12836
|
"marqueeDirection",
|
|
12803
12837
|
"marqueeFade",
|
|
@@ -19119,7 +19153,7 @@ function phoneGapBefore(prev, next) {
|
|
|
19119
19153
|
* columns (`LAYOUT_COLUMN_GAP`), and 12 columns. */
|
|
19120
19154
|
const GRID_VW = 92;
|
|
19121
19155
|
const COLUMN_GAP_VW = 1.2;
|
|
19122
|
-
const GRID_COLUMNS$
|
|
19156
|
+
const GRID_COLUMNS$2 = 12;
|
|
19123
19157
|
/** A `screen` word's smallest and largest size (px), and the share of its room it fills (the renderer's margin). */
|
|
19124
19158
|
const LAYOUT_SCREEN_PX = [36, 560];
|
|
19125
19159
|
const SCREEN_FILL = 0.98;
|
|
@@ -19127,7 +19161,7 @@ const round2 = (n) => Math.round(n * 100) / 100;
|
|
|
19127
19161
|
const round4 = (n) => Math.round(n * 10000) / 10000;
|
|
19128
19162
|
/** How wide `cols` columns of the laptop grid stand, in vw (12 columns: 92vw). */
|
|
19129
19163
|
function layoutColumnsVw(cols) {
|
|
19130
|
-
const column = (GRID_VW - (GRID_COLUMNS$
|
|
19164
|
+
const column = (GRID_VW - (GRID_COLUMNS$2 - 1) * COLUMN_GAP_VW) / GRID_COLUMNS$2;
|
|
19131
19165
|
return cols * column + Math.max(0, cols - 1) * COLUMN_GAP_VW;
|
|
19132
19166
|
}
|
|
19133
19167
|
const LEGACY_GUTTER_PX = 16;
|
|
@@ -19145,7 +19179,7 @@ function layoutRoomPx(cols, width, phone, page = {}) {
|
|
|
19145
19179
|
return vw;
|
|
19146
19180
|
const gap = (COLUMN_GAP_VW / 100) * width;
|
|
19147
19181
|
const grid = Math.min(width - 2 * Math.max(0.04 * width, gutter), page.columnPx);
|
|
19148
|
-
return Math.min(vw, (cols * (grid - (GRID_COLUMNS$
|
|
19182
|
+
return Math.min(vw, (cols * (grid - (GRID_COLUMNS$2 - 1) * gap)) / GRID_COLUMNS$2 + Math.max(0, cols - 1) * gap);
|
|
19149
19183
|
}
|
|
19150
19184
|
/** A `screen` word's width term at a column `columnPx` wide: the px its `cols` columns stand where the column binds
|
|
19151
19185
|
* (12 columns of the column, 11 gaps of 1.2vw), at `fill / em` — `A px − B vw`. */
|
|
@@ -19153,8 +19187,8 @@ function layoutRoomPx(cols, width, phone, page = {}) {
|
|
|
19153
19187
|
* read — re-declared by the page's word, iox-ui#117), the stamped column (`fallback`) where a studio's rows lack it. */
|
|
19154
19188
|
function columnCapCss(cols, widthEm, fallback) {
|
|
19155
19189
|
const k = SCREEN_FILL / Math.max(widthEm, 0.01);
|
|
19156
|
-
const share = round4((cols / GRID_COLUMNS$
|
|
19157
|
-
const vw = round2(COLUMN_GAP_VW * (1 - cols / GRID_COLUMNS$
|
|
19190
|
+
const share = round4((cols / GRID_COLUMNS$2) * k);
|
|
19191
|
+
const vw = round2(COLUMN_GAP_VW * (1 - cols / GRID_COLUMNS$2) * k);
|
|
19158
19192
|
const cap = `var(--iox-content-cap, ${fallback})`;
|
|
19159
19193
|
return vw > 0 ? `calc(${cap} * ${share} - ${vw}vw)` : `calc(${cap} * ${share})`;
|
|
19160
19194
|
}
|
|
@@ -19175,7 +19209,7 @@ function screenFontSize(widthEm, cols, rows, sectionRows, screens, columnPx = nu
|
|
|
19175
19209
|
// in wide, so a page set narrower than the site never sees it run past its column.
|
|
19176
19210
|
// CW2: a word across all twelve columns also keeps inside the one gutter (`space-gutter` is a px token, so font-size
|
|
19177
19211
|
// may read it): on a phone and wherever the gutter is wider than 4% of the window, 92vw is more than the room.
|
|
19178
|
-
const room = cols >= GRID_COLUMNS$
|
|
19212
|
+
const room = cols >= GRID_COLUMNS$2 ? [`calc((100vw - 2 * var(--iox-space-gutter, ${LEGACY_GUTTER_PX}px)) * ${round4(SCREEN_FILL / Math.max(widthEm, 0.01))})`] : [];
|
|
19179
19213
|
const capFallback = columnPx ? `${columnPx}px` : capAlways ? WIDE_CAP : null;
|
|
19180
19214
|
const width = [`${widthVw}vw`, ...(capFallback ? [columnCapCss(cols, widthEm, capFallback)] : []), ...room];
|
|
19181
19215
|
if (!rows || !sectionRows)
|
|
@@ -25260,8 +25294,38 @@ const MENU_WORDS = {
|
|
|
25260
25294
|
en: { ...NAV_SHAPE_COPY },
|
|
25261
25295
|
he: { menu: 'תפריט', close: 'סגירה', closeMenu: 'סגירת התפריט', more: 'עוד', home: 'בית' },
|
|
25262
25296
|
};
|
|
25263
|
-
|
|
25264
|
-
|
|
25297
|
+
/** vectoriox/iox-ui#177: the words a menu button may be named, in order — the next is taken while a page of the site is
|
|
25298
|
+
* called like the one before (a café's "Menu" page beside a "Menu" button: a visitor cannot tell which gives the food).
|
|
25299
|
+
* Its Close is named with it. */
|
|
25300
|
+
const MENU_BUTTON_LADDER = {
|
|
25301
|
+
en: [{ menu: 'Menu', closeMenu: 'Close menu' }, { menu: 'Pages', closeMenu: 'Close pages' }, { menu: 'Navigation', closeMenu: 'Close navigation' }],
|
|
25302
|
+
he: [{ menu: 'תפריט', closeMenu: 'סגירת התפריט' }, { menu: 'עמודים', closeMenu: 'סגירת העמודים' }, { menu: 'ניווט', closeMenu: 'סגירת הניווט' }],
|
|
25303
|
+
};
|
|
25304
|
+
/** The same for the bottom bar's More (a page called "More"). */
|
|
25305
|
+
const MORE_LADDER = {
|
|
25306
|
+
en: ['More', 'Other pages'],
|
|
25307
|
+
he: ['עוד', 'עמודים נוספים'],
|
|
25308
|
+
};
|
|
25309
|
+
/** An article a page name may start with that does not make it another word ("The menu", "התפריט"). */
|
|
25310
|
+
const LEADING_ARTICLE = { en: /^(?:the|our)\s+/u, he: /^ה(?=\p{L}{2})/u };
|
|
25311
|
+
/** One word of the navigation said the same way: case, stops and a leading article aside. */
|
|
25312
|
+
function navWordKey(words, lang) {
|
|
25313
|
+
const plain = words.normalize('NFC').toLocaleLowerCase().replace(/[^\p{L}\p{N}\s]/gu, '').replace(/\s+/g, ' ').trim();
|
|
25314
|
+
return plain.replace(LEADING_ARTICLE[lang] ?? /^$/u, '');
|
|
25315
|
+
}
|
|
25316
|
+
/** The words of the menu's parts in the site's language. Given the labels of the pages it links to (iox-ui#177), the
|
|
25317
|
+
* menu button (and its drawer and Close) and the bar's More never say a word a page is called: each takes the next word
|
|
25318
|
+
* of its ladder. */
|
|
25319
|
+
function menuWords(locale, labels = []) {
|
|
25320
|
+
const lang = MENU_WORDS[commerceLanguage(locale)] ? commerceLanguage(locale) : 'en';
|
|
25321
|
+
const base = MENU_WORDS[lang];
|
|
25322
|
+
if (!labels.length)
|
|
25323
|
+
return base;
|
|
25324
|
+
const taken = new Set(labels.map(l => navWordKey(l, lang)));
|
|
25325
|
+
const free = (w) => !taken.has(navWordKey(w, lang));
|
|
25326
|
+
const buttons = MENU_BUTTON_LADDER[lang];
|
|
25327
|
+
const mores = MORE_LADDER[lang];
|
|
25328
|
+
return { ...base, ...(buttons.find(b => free(b.menu)) ?? buttons[buttons.length - 1]), more: mores.find(free) ?? mores[mores.length - 1] };
|
|
25265
25329
|
}
|
|
25266
25330
|
/** The layer names of the parts (R2: the tree, the breadcrumb and the toolbar read them). */
|
|
25267
25331
|
const NAV_PART_LABELS = {
|
|
@@ -25556,25 +25620,22 @@ function dressDrawer(dr, look) {
|
|
|
25556
25620
|
const WORD_BUTTON_LAY = { width: 'auto', minWidth: '48px' };
|
|
25557
25621
|
/** What a menu button shows for its kind — closed (the menu button) or open (the drawer's Close, which lands where the
|
|
25558
25622
|
* menu button is): the list icon and an X, the nine dots and an X (the shared CSS draws both as dots), or the word. */
|
|
25559
|
-
function buttonFace(kit, suffix, kind, open,
|
|
25623
|
+
function buttonFace(kit, suffix, kind, open, words) {
|
|
25560
25624
|
switch (kind) {
|
|
25561
|
-
case MenuButtonKind.Word: {
|
|
25562
|
-
const words = menuWords(locale);
|
|
25563
|
-
return [labelText(kit, `${suffix}-word`, open ? words.close : words.menu)];
|
|
25564
|
-
}
|
|
25625
|
+
case MenuButtonKind.Word: return [labelText(kit, `${suffix}-word`, open ? words.close : words.menu)];
|
|
25565
25626
|
case MenuButtonKind.Dots: return [iconNode(kit, `${suffix}-dots`, open ? CLOSE_ICON : DOTS_ICON)];
|
|
25566
25627
|
default: return [iconNode(kit, `${suffix}-icon`, open ? CLOSE_ICON : MENU_ICON)];
|
|
25567
25628
|
}
|
|
25568
25629
|
}
|
|
25569
25630
|
/** Give a menu button (or the drawer's Close) a kind. The same kind keeps the author's children; another kind gets that
|
|
25570
25631
|
* kind's face and size. */
|
|
25571
|
-
function dressButton(kit, btn, suffix, kind, open,
|
|
25632
|
+
function dressButton(kit, btn, suffix, kind, open, words) {
|
|
25572
25633
|
const was = menuButtonOf(btn.props?.[MenuTrait.Button]);
|
|
25573
25634
|
const { [MenuTrait.Button]: _drop, ...props } = btn.props ?? {};
|
|
25574
25635
|
btn.props = { ...props, ...menuButtonProps(kind) };
|
|
25575
25636
|
if (was === kind)
|
|
25576
25637
|
return;
|
|
25577
|
-
btn.children = buttonFace(kit, suffix, kind, open,
|
|
25638
|
+
btn.children = buttonFace(kit, suffix, kind, open, words);
|
|
25578
25639
|
if (kind === MenuButtonKind.Word)
|
|
25579
25640
|
Object.assign(btn.styleProps, WORD_BUTTON_LAY);
|
|
25580
25641
|
else if (was === MenuButtonKind.Word)
|
|
@@ -25583,16 +25644,16 @@ function dressButton(kit, btn, suffix, kind, open, locale) {
|
|
|
25583
25644
|
/** An icon menu button's own min-width (its type's, as `part` stamps it) — what a `word` button gives back. */
|
|
25584
25645
|
const ICON_BUTTON_MIN_WIDTH = String(createSerializedNode('min-width', BUTTON, { tag: 'button' }, 'button-ghost', COMPOSED$3).styleProps['minWidth'] ?? '0px');
|
|
25585
25646
|
/** Put a look on a header's menu: the drawer's traits, and the menu button's and the Close's kind. */
|
|
25586
|
-
function dressMenu(kit, dr, menu, look,
|
|
25647
|
+
function dressMenu(kit, dr, menu, look, words) {
|
|
25587
25648
|
if (dr)
|
|
25588
25649
|
dressDrawer(dr, look);
|
|
25589
25650
|
if (!look.button)
|
|
25590
25651
|
return;
|
|
25591
25652
|
if (menu)
|
|
25592
|
-
dressButton(kit, menu, 'menu', look.button, false,
|
|
25653
|
+
dressButton(kit, menu, 'menu', look.button, false, words);
|
|
25593
25654
|
const close = dr ? find([dr], NavRole.DrawerClose) : null;
|
|
25594
25655
|
if (close)
|
|
25595
|
-
dressButton(kit, close, 'drawer-close', look.button, true,
|
|
25656
|
+
dressButton(kit, close, 'drawer-close', look.button, true, words);
|
|
25596
25657
|
}
|
|
25597
25658
|
function barItem(kit, i, page) {
|
|
25598
25659
|
const item = part$2(kit, `bar-item-${i}`, LINKED, { linkType: LinkType.Page, pageRoute: page.route, target: '_self' }, 'bottom-bar-item', NavRole.BarItem, BAR_ITEM_LAY);
|
|
@@ -25750,9 +25811,9 @@ function planNavShape(globals, shape, options = {}, navId) {
|
|
|
25750
25811
|
if (options.everyWidth && shape !== NavShape.Drawer)
|
|
25751
25812
|
throw new NavShapeError('only a drawer menu shows at every width');
|
|
25752
25813
|
const kit = makeKit(out, root.id, options.newId);
|
|
25753
|
-
const words = menuWords(options.locale);
|
|
25754
25814
|
adoptRoles(root);
|
|
25755
25815
|
const { pages } = phoneMenuPages(root, options.pages);
|
|
25816
|
+
const words = menuWords(options.locale, pages.map(p => p.label));
|
|
25756
25817
|
const wantDrawer = shape !== NavShape.Bar;
|
|
25757
25818
|
const wantBar = shape !== NavShape.Drawer;
|
|
25758
25819
|
const wantMenuButton = shape === NavShape.Drawer;
|
|
@@ -25810,7 +25871,7 @@ function planNavShape(globals, shape, options = {}, navId) {
|
|
|
25810
25871
|
}
|
|
25811
25872
|
// HI2a: the menu's look, when one is asked (the composer's header recipe; the Header studio later).
|
|
25812
25873
|
if (options.look)
|
|
25813
|
-
dressMenu(kit, dr, menu, options.look,
|
|
25874
|
+
dressMenu(kit, dr, menu, options.look, words);
|
|
25814
25875
|
if (dr && shape === NavShape.Drawer)
|
|
25815
25876
|
kids.push(dr);
|
|
25816
25877
|
if (dr && shape === NavShape.Both) {
|
|
@@ -25899,8 +25960,9 @@ function addBarItem(globals, options = {}) {
|
|
|
25899
25960
|
if (kids.length >= BAR_ITEMS_MAX)
|
|
25900
25961
|
return { globals: out, added: false };
|
|
25901
25962
|
const linked = new Set(kids.filter(c => c.role === NavRole.BarItem).map(c => prop(c, 'pageRoute')));
|
|
25902
|
-
const
|
|
25903
|
-
const
|
|
25963
|
+
const sitePages = phoneMenuPages(root, options.pages).pages;
|
|
25964
|
+
const words = menuWords(options.locale, sitePages.map(p => p.label));
|
|
25965
|
+
const page = barPages(root, sitePages, BAR_ITEMS_MAX + 1, words).find(p => !linked.has(p.route))
|
|
25904
25966
|
?? { label: words.home, route: HOME_ROUTE$1 };
|
|
25905
25967
|
const item = barItem(makeKit(out, root.id, options.newId), kids.length, page);
|
|
25906
25968
|
const more = kids.findIndex(c => c.role === NavRole.More);
|
|
@@ -25937,465 +25999,6 @@ function moveBarItem(globals, from, to) {
|
|
|
25937
25999
|
return { globals: out, changed: true };
|
|
25938
26000
|
}
|
|
25939
26001
|
|
|
25940
|
-
/**
|
|
25941
|
-
* HEADER INGREDIENTS (header-ingredients-plan.md, HI0): a site's header is a MIX — one word per ingredient — never a
|
|
25942
|
-
* header pattern. Every word, its meaning, whether the product draws it yet, the named mixes stored plans use, what a CL2
|
|
25943
|
-
* `nav.kind` asks for, the fingerprint and Doron's references live in ONE table, the contract's `site.layout.header`
|
|
25944
|
-
* (layout.mjs `HEADER`). This module only reads it: adding an option is a row there, not a change here
|
|
25945
|
-
* (architecture/ai/ingredients.md). Pure.
|
|
25946
|
-
*/
|
|
25947
|
-
const H = SPEC_SITE_LAYOUT.header;
|
|
25948
|
-
const PARTS = SPEC_SITE_HEADER_PARTS;
|
|
25949
|
-
/** The ingredients, by the contract's keys (held equal to it by header-mix.spec). */
|
|
25950
|
-
var HeaderIngredient;
|
|
25951
|
-
(function (HeaderIngredient) {
|
|
25952
|
-
HeaderIngredient["Arrange"] = "arrange";
|
|
25953
|
-
HeaderIngredient["MenuSide"] = "menuSide";
|
|
25954
|
-
HeaderIngredient["Pages"] = "pages";
|
|
25955
|
-
HeaderIngredient["Menu"] = "menu";
|
|
25956
|
-
HeaderIngredient["MenuShows"] = "menuShows";
|
|
25957
|
-
HeaderIngredient["Action"] = "action";
|
|
25958
|
-
HeaderIngredient["Ground"] = "ground";
|
|
25959
|
-
HeaderIngredient["Shape"] = "shape";
|
|
25960
|
-
HeaderIngredient["Brand"] = "brand";
|
|
25961
|
-
HeaderIngredient["Scroll"] = "scroll";
|
|
25962
|
-
HeaderIngredient["Edge"] = "edge";
|
|
25963
|
-
HeaderIngredient["Phone"] = "phone";
|
|
25964
|
-
/** HB-D1 (HI2a): how the menu opens. */
|
|
25965
|
-
HeaderIngredient["Reveal"] = "reveal";
|
|
25966
|
-
/** HB-D1 (HI2a): the button that opens it. */
|
|
25967
|
-
HeaderIngredient["Button"] = "button";
|
|
25968
|
-
/** HB-D1 (HI2a): what the mouse does in it. */
|
|
25969
|
-
HeaderIngredient["MenuHover"] = "menuHover";
|
|
25970
|
-
/** HB-D1 (HI3): what sits above the bar. */
|
|
25971
|
-
HeaderIngredient["Above"] = "above";
|
|
25972
|
-
/** HB-D1 (HI3 / HI6): what more sits in the bar. */
|
|
25973
|
-
HeaderIngredient["InBar"] = "inBar";
|
|
25974
|
-
/** AW6: whose ground the header's ink follows — the opening's, or every section's as it passes under the bar. */
|
|
25975
|
-
HeaderIngredient["Ink"] = "ink";
|
|
25976
|
-
})(HeaderIngredient || (HeaderIngredient = {}));
|
|
25977
|
-
var HeaderArrange;
|
|
25978
|
-
(function (HeaderArrange) {
|
|
25979
|
-
HeaderArrange["Split"] = "split";
|
|
25980
|
-
HeaderArrange["Centred"] = "centred";
|
|
25981
|
-
HeaderArrange["Between"] = "between";
|
|
25982
|
-
HeaderArrange["NameOnly"] = "name-only";
|
|
25983
|
-
})(HeaderArrange || (HeaderArrange = {}));
|
|
25984
|
-
var HeaderPages;
|
|
25985
|
-
(function (HeaderPages) {
|
|
25986
|
-
HeaderPages["Inline"] = "inline";
|
|
25987
|
-
HeaderPages["Menu"] = "menu";
|
|
25988
|
-
HeaderPages["MenuPinned"] = "menu-pinned";
|
|
25989
|
-
})(HeaderPages || (HeaderPages = {}));
|
|
25990
|
-
var HeaderAction;
|
|
25991
|
-
(function (HeaderAction) {
|
|
25992
|
-
HeaderAction["None"] = "none";
|
|
25993
|
-
HeaderAction["Button"] = "button";
|
|
25994
|
-
HeaderAction["Link"] = "link";
|
|
25995
|
-
HeaderAction["Two"] = "two";
|
|
25996
|
-
})(HeaderAction || (HeaderAction = {}));
|
|
25997
|
-
class HeaderMixError extends Error {
|
|
25998
|
-
}
|
|
25999
|
-
/** The header pattern a plan names when it names none the table knows (the Studio header). */
|
|
26000
|
-
const DEFAULT_HEADER_PATTERN = 'nav.inline-cta';
|
|
26001
|
-
const INGREDIENTS$1 = H.ingredients;
|
|
26002
|
-
const WAITS$1 = H.waits;
|
|
26003
|
-
const MEANINGS = H.meanings;
|
|
26004
|
-
const MEANINGS_HE = (H.meaningsHe ?? {});
|
|
26005
|
-
const HEBREW$2 = 'he';
|
|
26006
|
-
/** The words an ingredient may take. */
|
|
26007
|
-
function headerWords(ingredient) {
|
|
26008
|
-
return INGREDIENTS$1[ingredient] ?? [];
|
|
26009
|
-
}
|
|
26010
|
-
/** What a word means, as the brief and the builder say it — in Hebrew when the builder speaks it (HI1b, board 4d). */
|
|
26011
|
-
function headerMeaning(ingredient, word, locale) {
|
|
26012
|
-
const key = `${ingredient}.${word}`;
|
|
26013
|
-
return (locale === HEBREW$2 ? MEANINGS_HE[key] : undefined) ?? MEANINGS[key] ?? word;
|
|
26014
|
-
}
|
|
26015
|
-
/** Whether the product draws a word today (a waiting word is never offered — HB-D9). */
|
|
26016
|
-
function headerWordDrawn(ingredient, word) {
|
|
26017
|
-
return headerWords(ingredient).includes(word) && !WAITS$1[`${ingredient}.${word}`];
|
|
26018
|
-
}
|
|
26019
|
-
const GALLERY = (H.gallery ?? []);
|
|
26020
|
-
/** The gallery, in the contract's order (Studio — the defaults — first), named in `locale` (English unless Hebrew). */
|
|
26021
|
-
function headerGallery(locale) {
|
|
26022
|
-
const he = locale === HEBREW$2;
|
|
26023
|
-
return GALLERY.map(g => ({ id: g.id, name: he ? g.nameHe : g.name, words: he ? g.wordsHe : g.words, mix: headerMix(g.mix) }));
|
|
26024
|
-
}
|
|
26025
|
-
/** The gallery mix a mix is exactly, or null. */
|
|
26026
|
-
function headerGalleryIdOf(mix) {
|
|
26027
|
-
const key = JSON.stringify(headerMixWords(mix));
|
|
26028
|
-
return GALLERY.find(g => JSON.stringify(headerMixWords(headerMix(g.mix))) === key)?.id ?? null;
|
|
26029
|
-
}
|
|
26030
|
-
// ── The mix a header stores (HI1b, HS-5) ───────────────────────────────────────────────────────────────────────────
|
|
26031
|
-
/** A mix as the header root stores it: its `<ingredient>:<word>` words, space-separated, in the table's order. */
|
|
26032
|
-
function headerMixValue(mix) {
|
|
26033
|
-
return headerMixWords(mix).join(' ');
|
|
26034
|
-
}
|
|
26035
|
-
/** Writes the mix on a header root (its props). */
|
|
26036
|
-
function stampHeaderMix(root, mix) {
|
|
26037
|
-
root.props = { ...root.props, [HeaderTrait.Mix]: headerMixValue(mix) };
|
|
26038
|
-
}
|
|
26039
|
-
/** The mix a header root stores, or null — none stored, or words the table no longer knows (read as unstamped). */
|
|
26040
|
-
function storedHeaderMix(root) {
|
|
26041
|
-
const value = root?.props?.[HeaderTrait.Mix];
|
|
26042
|
-
if (typeof value !== 'string' || !value.trim())
|
|
26043
|
-
return null;
|
|
26044
|
-
try {
|
|
26045
|
-
return headerMixFromWords(value.trim().split(/\s+/));
|
|
26046
|
-
}
|
|
26047
|
-
catch {
|
|
26048
|
-
return null;
|
|
26049
|
-
}
|
|
26050
|
-
}
|
|
26051
|
-
/** A whole mix from part of one: what is not named is the default (the Studio header). Refuses a word the table lacks. */
|
|
26052
|
-
function headerMix(partial = {}) {
|
|
26053
|
-
const mix = { ...H.defaults };
|
|
26054
|
-
for (const [k, w] of Object.entries(partial)) {
|
|
26055
|
-
if (w === undefined)
|
|
26056
|
-
continue;
|
|
26057
|
-
if (!INGREDIENTS$1[k])
|
|
26058
|
-
throw new HeaderMixError(`no header ingredient "${k}"`);
|
|
26059
|
-
if (!INGREDIENTS$1[k].includes(w))
|
|
26060
|
-
throw new HeaderMixError(`a header's ${k} cannot be "${w}" (${INGREDIENTS$1[k].join(' · ')})`);
|
|
26061
|
-
mix[k] = w;
|
|
26062
|
-
}
|
|
26063
|
-
return mix;
|
|
26064
|
-
}
|
|
26065
|
-
/** The mix a stored header pattern id stands for (`nav.inline-cta`, `nav.centered-logo`), or null for an unknown id. */
|
|
26066
|
-
function namedHeaderMix(patternId) {
|
|
26067
|
-
const named = H.named[patternId];
|
|
26068
|
-
return named ? headerMix(named) : null;
|
|
26069
|
-
}
|
|
26070
|
-
/** The mix a CL2 layout's `nav.kind` asks for (`bar` when it names none). */
|
|
26071
|
-
function headerMixOfNavKind(kind) {
|
|
26072
|
-
const asked = H.navKinds[kind ?? 'bar'];
|
|
26073
|
-
if (!asked)
|
|
26074
|
-
throw new HeaderMixError(`no nav kind "${kind}"`);
|
|
26075
|
-
return headerMix(asked);
|
|
26076
|
-
}
|
|
26077
|
-
/** The mix the product DRAWS today: every waiting word becomes its built stand-in, and each one is said as a gap. */
|
|
26078
|
-
function drawnHeaderMix(mix) {
|
|
26079
|
-
const drawn = { ...mix };
|
|
26080
|
-
const gaps = [];
|
|
26081
|
-
for (const k of Object.values(HeaderIngredient)) {
|
|
26082
|
-
const wait = WAITS$1[`${k}.${mix[k]}`];
|
|
26083
|
-
if (!wait)
|
|
26084
|
-
continue;
|
|
26085
|
-
gaps.push({ ingredient: k, word: mix[k], phase: wait.phase, drawnAs: wait.drawnAs });
|
|
26086
|
-
drawn[k] = wait.drawnAs;
|
|
26087
|
-
}
|
|
26088
|
-
return { drawn, gaps };
|
|
26089
|
-
}
|
|
26090
|
-
/** The fingerprint's prefix for a header. */
|
|
26091
|
-
const HEADER_TOKEN = 'header';
|
|
26092
|
-
/** A header as the fingerprint sees it (§7): `header:<arrange>/<pages>/<menu>/<ground>/<shape>` — what a visitor takes in
|
|
26093
|
-
* at once, in the contract's order. Two sites with the same token wear the same header. */
|
|
26094
|
-
function headerTokenOf(mix) {
|
|
26095
|
-
return `${HEADER_TOKEN}:${H.fingerprint.map(k => mix[k]).join('/')}`;
|
|
26096
|
-
}
|
|
26097
|
-
/** A header token in words: `header:name-only/menu/drawer/solid/bar` → "name-only · menu · drawer · solid · bar". */
|
|
26098
|
-
const headerTokenWords = (token) => token.replace(`${HEADER_TOKEN}:`, '').split('/').join(' · ');
|
|
26099
|
-
/** Doron's reference headers (§2b), each as a whole mix. */
|
|
26100
|
-
function headerReferences() {
|
|
26101
|
-
return H.references
|
|
26102
|
-
.map(r => ({ id: r.id, after: r.after, added: r.added, mix: headerMix(r.mix) }));
|
|
26103
|
-
}
|
|
26104
|
-
/** The site plan's header as a mix: its `mixes.header` when it has one (HI1), else its `globals.header` pattern read as a
|
|
26105
|
-
* named mix (HI-D4), else the Studio header. */
|
|
26106
|
-
function headerMixOfPlan(plan) {
|
|
26107
|
-
if (plan.mixes?.header?.length)
|
|
26108
|
-
return headerMixFromWords(plan.mixes.header);
|
|
26109
|
-
return namedHeaderMix(plan.globals?.['header'] ?? '') ?? headerMix();
|
|
26110
|
-
}
|
|
26111
|
-
// ── The wire: ONE list of <ingredient>:<word> words (the list and footer wires' encoding) ─────────────────────────
|
|
26112
|
-
/** A mix on the wire: one `<ingredient>:<word>` per ingredient, in the table's order. */
|
|
26113
|
-
function headerMixWords(mix) {
|
|
26114
|
-
return Object.values(HeaderIngredient).map(k => `${k}:${mix[k]}`);
|
|
26115
|
-
}
|
|
26116
|
-
/** Every `<ingredient>:<word>` the wire may carry: only the words the product DRAWS (ingredients.md §3) — a waiting word
|
|
26117
|
-
* is never offered, so the model never chooses what the site would show as something else. */
|
|
26118
|
-
function headerWireWords() {
|
|
26119
|
-
return Object.values(HeaderIngredient).flatMap(k => headerWords(k).filter(w => !WAITS$1[`${k}.${w}`]).map(w => `${k}:${w}`));
|
|
26120
|
-
}
|
|
26121
|
-
/** The words back into a mix: an ingredient not named is the default. Refuses an unknown word and two words for one
|
|
26122
|
-
* ingredient. */
|
|
26123
|
-
function headerMixFromWords(words) {
|
|
26124
|
-
const partial = {};
|
|
26125
|
-
for (const pair of words) {
|
|
26126
|
-
const [k, w] = String(pair).split(':');
|
|
26127
|
-
if (!INGREDIENTS$1[k] || !w)
|
|
26128
|
-
throw new HeaderMixError(`"${pair}" is no header word (<ingredient>:<word>)`);
|
|
26129
|
-
if (partial[k] !== undefined && partial[k] !== w)
|
|
26130
|
-
throw new HeaderMixError(`a header has one ${k} ("${partial[k]}" and "${w}")`);
|
|
26131
|
-
partial[k] = w;
|
|
26132
|
-
}
|
|
26133
|
-
return headerMix(partial);
|
|
26134
|
-
}
|
|
26135
|
-
/** The stored header pattern a mix is exactly (`nav.inline-cta`, `nav.centered-logo`), else null. */
|
|
26136
|
-
function headerPatternIdOf(mix) {
|
|
26137
|
-
const key = JSON.stringify(headerMixWords(mix));
|
|
26138
|
-
return Object.keys(H.named).find(id => JSON.stringify(headerMixWords(namedHeaderMix(id))) === key) ?? null;
|
|
26139
|
-
}
|
|
26140
|
-
// ── The check: any mix, judged against the site and mended (§3, §6 — the rules for the words HI1 draws) ──────────
|
|
26141
|
-
var HeaderRepairCode;
|
|
26142
|
-
(function (HeaderRepairCode) {
|
|
26143
|
-
/** A name-and-menu header has its pages behind the menu. */
|
|
26144
|
-
HeaderRepairCode["NameOnlyInline"] = "name-only-inline";
|
|
26145
|
-
/** The name at the start with the pages behind a menu IS the name-and-menu header. */
|
|
26146
|
-
HeaderRepairCode["SplitMenu"] = "split-menu";
|
|
26147
|
-
/** Pages either side of the name are pages in the bar: behind a menu the name is centred. */
|
|
26148
|
-
HeaderRepairCode["BetweenMenu"] = "between-menu";
|
|
26149
|
-
/** A menu for so few pages is a detour: they go in the bar. */
|
|
26150
|
-
HeaderRepairCode["FewPages"] = "few-pages";
|
|
26151
|
-
/** The pages do not fit beside the name on a laptop: they go behind a menu. */
|
|
26152
|
-
HeaderRepairCode["TooManyPages"] = "too-many-pages";
|
|
26153
|
-
/** The name is too long, or the pages too few, to sit between two halves: the name is centred above them. */
|
|
26154
|
-
HeaderRepairCode["BetweenUnbalanced"] = "between-unbalanced";
|
|
26155
|
-
/** Two actions need two destinations (the contact page and the shop): one button. */
|
|
26156
|
-
HeaderRepairCode["OneDestination"] = "one-destination";
|
|
26157
|
-
/** Another site already wears this header: the nearest free one (`distinctHeader`). */
|
|
26158
|
-
HeaderRepairCode["Worn"] = "worn";
|
|
26159
|
-
})(HeaderRepairCode || (HeaderRepairCode = {}));
|
|
26160
|
-
const RULES = H.rules;
|
|
26161
|
-
/** How a laptop's bar is measured (an estimate on the look's own faces — never a guess at a page's words): the name at
|
|
26162
|
-
* the brand's size, each page at the link's, the gap between them, and a button's padding around its words. */
|
|
26163
|
-
const BRAND_PX = 24;
|
|
26164
|
-
const LINK_PX = 16;
|
|
26165
|
-
const GAP_PX = 24;
|
|
26166
|
-
const BUTTON_PAD_PX = 48;
|
|
26167
|
-
const ACTION_WORDS = 'Get in touch';
|
|
26168
|
-
/** How wide the bar's words stand on a laptop: the pages and the action, and — beside them — the name. */
|
|
26169
|
-
function barWidthPx(mix, ctx) {
|
|
26170
|
-
const link = elementStyleFace(ctx.design, 'link');
|
|
26171
|
-
const pages = ctx.pages.reduce((w, p) => w + textWidthEm(p.name, link) * LINK_PX + GAP_PX, 0);
|
|
26172
|
-
const action = mix.action === HeaderAction.None ? 0 : textWidthEm(ACTION_WORDS, link) * LINK_PX + BUTTON_PAD_PX + GAP_PX;
|
|
26173
|
-
const name = mix.arrange === HeaderArrange.Centred ? 0 : textWidthEm(ctx.name, elementStyleFace(ctx.design, 'h3')) * BRAND_PX + GAP_PX;
|
|
26174
|
-
return pages + action * (mix.action === HeaderAction.Two ? 2 : 1) + name;
|
|
26175
|
-
}
|
|
26176
|
-
const behindMenu = (mix) => mix.pages !== HeaderPages.Inline;
|
|
26177
|
-
/**
|
|
26178
|
-
* The ONE judge of a header mix against the site (§3): what the site cannot carry is mended to the nearest mix that it
|
|
26179
|
-
* can, and each mend is said. Judges the mix as DRAWN (`drawnHeaderMix` first). Never throws on a well-formed mix. Pure.
|
|
26180
|
-
*/
|
|
26181
|
-
function checkHeader(mix, ctx) {
|
|
26182
|
-
const m = { ...mix };
|
|
26183
|
-
const repairs = [];
|
|
26184
|
-
const say = (code, said) => repairs.push({ code, said });
|
|
26185
|
-
const count = ctx.pages.length;
|
|
26186
|
-
if (m.arrange === HeaderArrange.NameOnly && !behindMenu(m)) {
|
|
26187
|
-
m.pages = HeaderPages.Menu;
|
|
26188
|
-
say(HeaderRepairCode.NameOnlyInline, 'a name-and-menu header keeps its pages behind the menu');
|
|
26189
|
-
}
|
|
26190
|
-
if (behindMenu(m) && count < RULES.menuMinLinks) {
|
|
26191
|
-
m.pages = HeaderPages.Inline;
|
|
26192
|
-
if (m.arrange === HeaderArrange.NameOnly)
|
|
26193
|
-
m.arrange = HeaderArrange.Split;
|
|
26194
|
-
say(HeaderRepairCode.FewPages, `a menu for ${count} page${count === 1 ? '' : 's'} is a detour: they stand in the bar`);
|
|
26195
|
-
}
|
|
26196
|
-
if (!behindMenu(m) && barWidthPx(m, ctx) > RULES.inlineRoomPx) {
|
|
26197
|
-
m.pages = HeaderPages.Menu;
|
|
26198
|
-
say(HeaderRepairCode.TooManyPages, `${count} pages do not fit in the bar on a laptop: they go behind the menu`);
|
|
26199
|
-
}
|
|
26200
|
-
if (m.arrange === HeaderArrange.Split && behindMenu(m)) {
|
|
26201
|
-
m.arrange = HeaderArrange.NameOnly;
|
|
26202
|
-
say(HeaderRepairCode.SplitMenu, 'the name at the start with the pages behind a menu is the name-and-menu header');
|
|
26203
|
-
}
|
|
26204
|
-
if (m.arrange === HeaderArrange.Between && behindMenu(m)) {
|
|
26205
|
-
m.arrange = HeaderArrange.Centred;
|
|
26206
|
-
say(HeaderRepairCode.BetweenMenu, 'with the pages behind a menu the name is centred');
|
|
26207
|
-
}
|
|
26208
|
-
if (m.arrange === HeaderArrange.Between) {
|
|
26209
|
-
const long = textWidthEm(ctx.name, elementStyleFace(ctx.design, 'h3')) > RULES.betweenNameEm;
|
|
26210
|
-
if (long || count < RULES.betweenMinPages) {
|
|
26211
|
-
m.arrange = HeaderArrange.Centred;
|
|
26212
|
-
say(HeaderRepairCode.BetweenUnbalanced, long ? `"${ctx.name}" is too long to sit between the pages: it is centred above them`
|
|
26213
|
-
: 'too few pages to share either side of the name: it is centred above them');
|
|
26214
|
-
}
|
|
26215
|
-
}
|
|
26216
|
-
if (m.action === HeaderAction.Two && !ctx.shop) {
|
|
26217
|
-
m.action = HeaderAction.Button;
|
|
26218
|
-
say(HeaderRepairCode.OneDestination, 'two actions need two places to go (the contact page and the shop): one button');
|
|
26219
|
-
}
|
|
26220
|
-
return { mix: m, repairs };
|
|
26221
|
-
}
|
|
26222
|
-
// ── The recipe: the mix arranged from the contract's parts (§4 — ONE recipe for the palette and the generator) ────
|
|
26223
|
-
const clone$3 = (v) => JSON.parse(JSON.stringify(v));
|
|
26224
|
-
const part$1 = (id) => clone$3(PARTS[id]);
|
|
26225
|
-
const laid = (node, lay) => ({ ...node, lay: { ...(node.lay ?? {}), ...lay } });
|
|
26226
|
-
const GAP = 'var(--iox-space-gap)';
|
|
26227
|
-
/** A side of a centred name: half the room each, so the name sits in the true middle (never nudged by what is beside it). */
|
|
26228
|
-
const cell = (side, c) => ({
|
|
26229
|
-
t: 'Container', es: 'box', role: NavRole.Cell, lay: { display: 'flex', flexWrap: 'nowrap', alignItems: 'center', gap: GAP, flexGrow: '1', flexShrink: '1', flexBasis: '0px', minWidth: '0px', justifyContent: side === 'start' ? 'flex-start' : 'flex-end' }, c,
|
|
26230
|
-
});
|
|
26231
|
-
/** A page as a plain link (a pinned page; a half of the pages either side of the name). */
|
|
26232
|
-
const pageLink = (p, role) => ({ t: 'Link', es: 'link', text: p.name, href: p.route, ...(role ? { role } : {}) });
|
|
26233
|
-
/** What a header asks for, in the order it shows them. */
|
|
26234
|
-
function actionsOf$1(mix, ctx) {
|
|
26235
|
-
switch (mix.action) {
|
|
26236
|
-
case HeaderAction.Button: return [part$1('button')];
|
|
26237
|
-
case HeaderAction.Link: return [part$1('quiet')];
|
|
26238
|
-
case HeaderAction.Two: return ctx.shop ? [part$1('button'), { ...part$1('outlined'), href: ctx.shop }] : [part$1('button')];
|
|
26239
|
-
default: return [];
|
|
26240
|
-
}
|
|
26241
|
-
}
|
|
26242
|
-
/** The page(s) a menu header keeps in the bar (HI-D16): a selling site's shop, else its first page. */
|
|
26243
|
-
function pinnedPagesOf(ctx) {
|
|
26244
|
-
const shop = ctx.shop ? ctx.pages.find(p => p.route === ctx.shop) : undefined;
|
|
26245
|
-
return (shop ? [shop, ...ctx.pages.filter(p => p !== shop)] : [...ctx.pages]).slice(0, RULES.pinnedMax);
|
|
26246
|
-
}
|
|
26247
|
-
/** A header's pieces once the menu takes its pages: the pinned pages and the actions, each kept in the bar. */
|
|
26248
|
-
function keptInBar(mix, ctx) {
|
|
26249
|
-
const pins = mix.pages === HeaderPages.MenuPinned ? pinnedPagesOf(ctx) : [];
|
|
26250
|
-
const acts = actionsOf$1(mix, ctx);
|
|
26251
|
-
const pinned = pins.length ? { ...part$1('pinned'), c: pins.map(p => pageLink(p)) } : null;
|
|
26252
|
-
const actions = acts.length ? { ...part$1('links'), role: NavRole.Actions, c: acts } : null;
|
|
26253
|
-
return { pinned, actions };
|
|
26254
|
-
}
|
|
26255
|
-
/** The root's children for the mix (the menu button is the phone shape's — `planNavShape` places it). */
|
|
26256
|
-
function bodyOf$1(mix, ctx) {
|
|
26257
|
-
const brand = part$1('brand');
|
|
26258
|
-
const links = (more, lay = {}) => ({ ...laid(part$1('links'), lay), c: [part$1('link'), ...more] });
|
|
26259
|
-
const flex = { display: 'flex', flexWrap: 'nowrap', justifyContent: 'space-between', alignItems: 'center', gap: GAP };
|
|
26260
|
-
if (!behindMenu(mix)) {
|
|
26261
|
-
switch (mix.arrange) {
|
|
26262
|
-
case HeaderArrange.Centred:
|
|
26263
|
-
return { lay: { display: 'flex', flexDirection: 'column', alignItems: 'center', gap: '14px' }, resp: { mobile: { flexDirection: 'row', justifyContent: 'space-between' } },
|
|
26264
|
-
c: [brand, links(actionsOf$1(mix, ctx), { justifyContent: 'center' })] };
|
|
26265
|
-
case HeaderArrange.Between: {
|
|
26266
|
-
const half = Math.ceil(ctx.pages.length / 2);
|
|
26267
|
-
const row = (pages, more) => ({ ...part$1('links'), c: [...pages.map(p => pageLink(p, NavRole.Link)), ...more] });
|
|
26268
|
-
return { lay: flex, c: [cell('start', [row(ctx.pages.slice(0, half), [])]), brand, cell('end', [row(ctx.pages.slice(half), actionsOf$1(mix, ctx))])] };
|
|
26269
|
-
}
|
|
26270
|
-
default:
|
|
26271
|
-
return { lay: { display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', alignItems: 'center', gap: GAP }, c: [brand, links(actionsOf$1(mix, ctx))] };
|
|
26272
|
-
}
|
|
26273
|
-
}
|
|
26274
|
-
// Behind a menu: the links row stays (hidden at every width — the drawer lists its pages, and an author who brings the
|
|
26275
|
-
// pages back gets the row back); the pinned pages and the actions stay in the bar.
|
|
26276
|
-
const { pinned, actions } = keptInBar(mix, ctx);
|
|
26277
|
-
const kept = [pinned, actions].filter((n) => !!n);
|
|
26278
|
-
const start = mix.menuSide === MenuSide.Start;
|
|
26279
|
-
if (mix.arrange === HeaderArrange.Centred) {
|
|
26280
|
-
// The name in the middle; the menu button's side holds the pinned pages, the other side the actions.
|
|
26281
|
-
const menuSide = pinned ? [pinned] : [];
|
|
26282
|
-
const other = actions ? [actions] : [];
|
|
26283
|
-
return { lay: flex, c: [cell('start', start ? menuSide : other), brand, links([]), cell('end', start ? other : menuSide)] };
|
|
26284
|
-
}
|
|
26285
|
-
// The name and the menu. At the end: the name at the start, what the bar keeps by the button. At the start (Vonder):
|
|
26286
|
-
// the button and the pinned page at the start, the name in the middle, the actions at the end — two equal side cells.
|
|
26287
|
-
return { lay: flex, c: start ? [cell('start', pinned ? [pinned] : []), brand, links([]), cell('end', actions ? [actions] : [])] : [brand, links([]), cell('end', kept)] };
|
|
26288
|
-
}
|
|
26289
|
-
/** The menu's look for a mix (HI2a): with its pages behind the menu, the `menu` form at every width and the `phone`
|
|
26290
|
-
* ingredient's form on a phone; with its pages in the bar, the menu exists on a phone only, so its form IS the phone's
|
|
26291
|
-
* (the drawer, or the full screen). How it opens, its button and its hover come from their own ingredients. */
|
|
26292
|
-
function menuLookOf(mix) {
|
|
26293
|
-
const phoneFull = mix.phone === 'full';
|
|
26294
|
-
const form = behindMenu(mix) ? menuFormOf(mix.menu) : phoneFull ? MenuForm.Full : MenuForm.Drawer;
|
|
26295
|
-
return {
|
|
26296
|
-
form,
|
|
26297
|
-
reveal: menuRevealOf(mix.reveal),
|
|
26298
|
-
button: menuButtonOf(mix.button),
|
|
26299
|
-
hover: menuHoverOf(mix.menuHover),
|
|
26300
|
-
phone: phoneFull && form !== MenuForm.Full ? MenuPhoneForm.Full : MenuPhoneForm.Drawer,
|
|
26301
|
-
};
|
|
26302
|
-
}
|
|
26303
|
-
/** The phone ingredient as the phone menu's shape (`full` is the drawer's Dialog, dressed as the full screen — HI2a). */
|
|
26304
|
-
const PHONE_SHAPE = { drawer: NavShape.Drawer, bar: NavShape.Bar, both: NavShape.Both, full: NavShape.Drawer };
|
|
26305
|
-
/** A header mix as a pattern: what the composer stamps as the site's header (global, before the page). A mix that IS a
|
|
26306
|
-
* stored header (`nav.inline-cta`, `nav.centered-logo`) composes byte-identical to it (R-H4). Pure. */
|
|
26307
|
-
function headerRecipe(mix, ctx) {
|
|
26308
|
-
const everyWidth = behindMenu(mix);
|
|
26309
|
-
const menuSide = mix.menuSide === MenuSide.Start ? MenuSide.Start : MenuSide.End;
|
|
26310
|
-
const stored = SITE_PATTERNS[headerPatternIdOf(mix) ?? ''];
|
|
26311
|
-
const { lay, resp, c } = bodyOf$1(mix, ctx);
|
|
26312
|
-
const node = { ...part$1('root'), lay, ...(resp ? { resp } : {}), c };
|
|
26313
|
-
const pattern = {
|
|
26314
|
-
family: 'nav',
|
|
26315
|
-
label: stored?.label ?? `Header — ${headerTokenWords(headerTokenOf(mix))}`,
|
|
26316
|
-
intent: stored?.intent ?? [headerMeaning(HeaderIngredient.Arrange, mix.arrange), headerMeaning(HeaderIngredient.Pages, mix.pages), headerMeaning(HeaderIngredient.Action, mix.action)].join('; '),
|
|
26317
|
-
global: PatternGlobalPosition.Before,
|
|
26318
|
-
// A menu at every width is the drawer's (only a drawer shows at every width — planNavShape).
|
|
26319
|
-
phoneMenu: everyWidth ? NavShape.Drawer : PHONE_SHAPE[mix.phone] ?? NavShape.Drawer,
|
|
26320
|
-
header: { behaviour: mix.scroll, edge: mix.edge },
|
|
26321
|
-
node,
|
|
26322
|
-
};
|
|
26323
|
-
return { mix, pattern, everyWidth, menuSide, menu: menuLookOf(mix) };
|
|
26324
|
-
}
|
|
26325
|
-
// ── No sameness: another site's header is never worn again (§7, R-H2) ──────────────────────────────────────────────
|
|
26326
|
-
/** The ingredients `distinctHeader` may change, in the order it tries them: how the pages are reached before where the
|
|
26327
|
-
* name sits (the model chose the arrangement; the fingerprint sees both). */
|
|
26328
|
-
const MEND_ORDER = [
|
|
26329
|
-
HeaderIngredient.Pages, HeaderIngredient.Arrange,
|
|
26330
|
-
// HB-D6: how the menu opens and its button are in the fingerprint — the least visible change of all, tried after the
|
|
26331
|
-
// two the model chose with the site in mind.
|
|
26332
|
-
HeaderIngredient.Reveal, HeaderIngredient.Button,
|
|
26333
|
-
];
|
|
26334
|
-
/** The words of an ingredient the product draws. */
|
|
26335
|
-
const drawnWords = (k) => headerWords(k).filter(w => !WAITS$1[`${k}.${w}`]);
|
|
26336
|
-
/**
|
|
26337
|
-
* A header no other site wears: the mix when its token is free, else the nearest mix whose token is — one changed
|
|
26338
|
-
* ingredient before two, in `MEND_ORDER` — that the site can carry as it is (`checkHeader` mends nothing), and said. When
|
|
26339
|
-
* every header is worn, the mix as it is. Pure, deterministic.
|
|
26340
|
-
*/
|
|
26341
|
-
function distinctHeader(mix, taken, ctx) {
|
|
26342
|
-
const used = new Set(taken);
|
|
26343
|
-
if (!used.has(headerTokenOf(mix)))
|
|
26344
|
-
return { mix, repairs: [] };
|
|
26345
|
-
const tries = [];
|
|
26346
|
-
for (const k of MEND_ORDER)
|
|
26347
|
-
for (const w of drawnWords(k))
|
|
26348
|
-
tries.push({ ...mix, [k]: w });
|
|
26349
|
-
for (const w of drawnWords(HeaderIngredient.Pages))
|
|
26350
|
-
for (const a of drawnWords(HeaderIngredient.Arrange))
|
|
26351
|
-
tries.push({ ...mix, pages: w, arrange: a });
|
|
26352
|
-
for (const t of tries) {
|
|
26353
|
-
const checked = checkHeader(t, ctx);
|
|
26354
|
-
if (checked.repairs.length || used.has(headerTokenOf(checked.mix)))
|
|
26355
|
-
continue;
|
|
26356
|
-
return { mix: checked.mix, repairs: [{ code: HeaderRepairCode.Worn, said: `another site wears ${headerTokenWords(headerTokenOf(mix))}: this one is ${headerTokenWords(headerTokenOf(checked.mix))}` }] };
|
|
26357
|
-
}
|
|
26358
|
-
return { mix, repairs: [] };
|
|
26359
|
-
}
|
|
26360
|
-
/** The shop's page of a selling plan: the page in the navigation that lists the store's products (else null). */
|
|
26361
|
-
function shopPageOfPlan(plan) {
|
|
26362
|
-
if (!planSells(plan))
|
|
26363
|
-
return null;
|
|
26364
|
-
const list = shopSourceAliases(plan)[ShopSourceRole.List];
|
|
26365
|
-
return plan.pages.find(p => p.inNav && list && (p.sections ?? []).some(s => s.binding === list))?.route ?? null;
|
|
26366
|
-
}
|
|
26367
|
-
/** The header context of a plan: its name, its look, its pages in the navigation and its shop page (found in the plan
|
|
26368
|
-
* when not given). */
|
|
26369
|
-
function headerContextOfPlan(plan, shop) {
|
|
26370
|
-
return {
|
|
26371
|
-
name: plan.business.name,
|
|
26372
|
-
design: resolveDesignChoices(JSON.parse(JSON.stringify(plan.design ?? {}))),
|
|
26373
|
-
pages: plan.pages.filter(p => p.inNav && !p.isHome && p.route !== '/').map(p => ({ name: p.name, route: p.route })),
|
|
26374
|
-
shop: shop === undefined ? shopPageOfPlan(plan) : shop,
|
|
26375
|
-
};
|
|
26376
|
-
}
|
|
26377
|
-
/**
|
|
26378
|
-
* The header a plan's site WEARS (ONE rule for the composer, the fingerprint and the distinct check): its mix as the
|
|
26379
|
-
* product draws it, judged against the site when the mix was chosen (`mixes.header`) — a stored header pattern (no mix)
|
|
26380
|
-
* is worn as it always was (R-H4). With what was drawn as something else or mended, in words. Pure.
|
|
26381
|
-
*/
|
|
26382
|
-
function wornHeaderOfPlan(plan) {
|
|
26383
|
-
const context = headerContextOfPlan(plan);
|
|
26384
|
-
const { drawn, gaps } = drawnHeaderMix(headerMixOfPlan(plan));
|
|
26385
|
-
const checked = plan.mixes?.header?.length ? checkHeader(drawn, context) : { mix: drawn, repairs: [] };
|
|
26386
|
-
const said = [...gaps.map(g => `the header's ${g.ingredient} "${g.word}" is drawn as "${g.drawnAs}" until ${g.phase}`), ...checked.repairs.map(r => r.said)];
|
|
26387
|
-
return { mix: checked.mix, context, said };
|
|
26388
|
-
}
|
|
26389
|
-
/** A plan's header made distinct (R-H2): `distinctHeader` over the plan's own mix as drawn and checked; the plan unchanged
|
|
26390
|
-
* when nothing was mended, else with the new mix in `mixes.header`. Pure. */
|
|
26391
|
-
function withDistinctHeader(plan, taken) {
|
|
26392
|
-
const worn = wornHeaderOfPlan(plan);
|
|
26393
|
-
const done = distinctHeader(worn.mix, taken, worn.context);
|
|
26394
|
-
if (!done.repairs.length)
|
|
26395
|
-
return { plan, repairs: [] };
|
|
26396
|
-
return { plan: { ...plan, mixes: { ...(plan.mixes ?? {}), header: headerMixWords(done.mix) } }, repairs: done.repairs };
|
|
26397
|
-
}
|
|
26398
|
-
|
|
26399
26002
|
/**
|
|
26400
26003
|
* THE OPENING (award-ingredients-plan §3.3, AW8; board award-opening, OB-1…OB-7): a page's first screen is a MIX — its
|
|
26401
26004
|
* frame, what fills it, how its words sit, small extras and its own motion — never one hero pattern. Every word, its
|
|
@@ -26516,28 +26119,28 @@ var OpeningRole;
|
|
|
26516
26119
|
})(OpeningRole || (OpeningRole = {}));
|
|
26517
26120
|
/** The props key an opening root stores its mix under (OB-5, as `HeaderTrait.Mix`). */
|
|
26518
26121
|
const OPENING_MIX_PROP = 'openingMix';
|
|
26519
|
-
const HEBREW$
|
|
26520
|
-
const INGREDIENTS = O.ingredients;
|
|
26122
|
+
const HEBREW$2 = 'he';
|
|
26123
|
+
const INGREDIENTS$1 = O.ingredients;
|
|
26521
26124
|
const MANY$1 = new Set(O.many);
|
|
26522
|
-
const WAITS = O.waits;
|
|
26125
|
+
const WAITS$1 = O.waits;
|
|
26523
26126
|
const ORDER = Object.values(OpeningIngredient);
|
|
26524
26127
|
const isMany = (k) => MANY$1.has(k);
|
|
26525
26128
|
/** The words an ingredient may take, in the table's order. */
|
|
26526
26129
|
function openingWords$1(ingredient) {
|
|
26527
|
-
return INGREDIENTS[ingredient] ?? [];
|
|
26130
|
+
return INGREDIENTS$1[ingredient] ?? [];
|
|
26528
26131
|
}
|
|
26529
26132
|
/** What a word means — in Hebrew when the builder speaks it. */
|
|
26530
26133
|
function openingMeaning(ingredient, word, locale) {
|
|
26531
26134
|
const key = `${ingredient}.${word}`;
|
|
26532
|
-
return (locale === HEBREW$
|
|
26135
|
+
return (locale === HEBREW$2 ? O.meaningsHe?.[key] : undefined) ?? O.meanings[key] ?? word;
|
|
26533
26136
|
}
|
|
26534
26137
|
/** Whether the product draws a word today (OB-7: a waiting word is listed with its phase, drawn as its stand-in). */
|
|
26535
26138
|
function openingWordDrawn(ingredient, word) {
|
|
26536
|
-
return openingWords$1(ingredient).includes(word) && !WAITS[`${ingredient}.${word}`];
|
|
26139
|
+
return openingWords$1(ingredient).includes(word) && !WAITS$1[`${ingredient}.${word}`];
|
|
26537
26140
|
}
|
|
26538
26141
|
/** The phase a waiting word waits for, or null. */
|
|
26539
26142
|
function openingWordWaits(ingredient, word) {
|
|
26540
|
-
return WAITS[`${ingredient}.${word}`]?.phase ?? null;
|
|
26143
|
+
return WAITS$1[`${ingredient}.${word}`]?.phase ?? null;
|
|
26541
26144
|
}
|
|
26542
26145
|
/** AW-D23: a word every plan wears (`all`) or one the award tier alone is offered (`pro`). */
|
|
26543
26146
|
function openingWordTier(ingredient, word) {
|
|
@@ -26560,12 +26163,12 @@ function openingMix(partial = {}) {
|
|
|
26560
26163
|
for (const [k, v] of Object.entries(partial)) {
|
|
26561
26164
|
if (v === undefined)
|
|
26562
26165
|
continue;
|
|
26563
|
-
if (!INGREDIENTS[k])
|
|
26166
|
+
if (!INGREDIENTS$1[k])
|
|
26564
26167
|
throw new OpeningMixError(`no opening ingredient "${k}"`);
|
|
26565
26168
|
const words = listOf(v);
|
|
26566
26169
|
for (const w of words)
|
|
26567
|
-
if (!INGREDIENTS[k].includes(w))
|
|
26568
|
-
throw new OpeningMixError(`an opening's ${k} cannot be "${w}" (${INGREDIENTS[k].join(' · ')})`);
|
|
26170
|
+
if (!INGREDIENTS$1[k].includes(w))
|
|
26171
|
+
throw new OpeningMixError(`an opening's ${k} cannot be "${w}" (${INGREDIENTS$1[k].join(' · ')})`);
|
|
26569
26172
|
if (k === OpeningIngredient.Ground && words.length > 1)
|
|
26570
26173
|
throw new OpeningMixError(`an opening stands on one ground ("${words.join('" and "')}")`);
|
|
26571
26174
|
if (isMany(k))
|
|
@@ -26593,7 +26196,7 @@ function openingMixFromWords(words) {
|
|
|
26593
26196
|
const partial = {};
|
|
26594
26197
|
for (const pair of words) {
|
|
26595
26198
|
const [k, w] = String(pair).split(':');
|
|
26596
|
-
if (!INGREDIENTS[k] || !w)
|
|
26199
|
+
if (!INGREDIENTS$1[k] || !w)
|
|
26597
26200
|
throw new OpeningMixError(`"${pair}" is no opening word (<ingredient>:<word>)`);
|
|
26598
26201
|
const got = (partial[k] ??= []);
|
|
26599
26202
|
if (!isMany(k) && got.length && got[0] !== w)
|
|
@@ -26727,7 +26330,7 @@ function openingPatternIdOf(mix) {
|
|
|
26727
26330
|
}
|
|
26728
26331
|
/** The gallery, in the contract's order (the defaults first), named in `locale` (English unless Hebrew). */
|
|
26729
26332
|
function openingGallery(locale) {
|
|
26730
|
-
const he = locale === HEBREW$
|
|
26333
|
+
const he = locale === HEBREW$2;
|
|
26731
26334
|
return (O.gallery ?? []).map(g => ({ id: g.id, name: he ? g.nameHe : g.name, words: he ? g.wordsHe : g.words, mix: openingMix(g.mix) }));
|
|
26732
26335
|
}
|
|
26733
26336
|
/** The gallery mix a mix is exactly, or null. */
|
|
@@ -26746,7 +26349,7 @@ function drawnOpeningMix(mix) {
|
|
|
26746
26349
|
for (const k of ORDER) {
|
|
26747
26350
|
if (isMany(k)) {
|
|
26748
26351
|
drawn[k] = mix[k].filter(w => {
|
|
26749
|
-
const wait = WAITS[`${k}.${w}`];
|
|
26352
|
+
const wait = WAITS$1[`${k}.${w}`];
|
|
26750
26353
|
if (wait)
|
|
26751
26354
|
gaps.push({ ingredient: k, word: w, phase: wait.phase, drawnAs: wait.drawnAs });
|
|
26752
26355
|
return !wait;
|
|
@@ -26754,7 +26357,7 @@ function drawnOpeningMix(mix) {
|
|
|
26754
26357
|
continue;
|
|
26755
26358
|
}
|
|
26756
26359
|
const word = mix[k];
|
|
26757
|
-
const wait = WAITS[`${k}.${word}`];
|
|
26360
|
+
const wait = WAITS$1[`${k}.${word}`];
|
|
26758
26361
|
if (!wait)
|
|
26759
26362
|
continue;
|
|
26760
26363
|
gaps.push({ ingredient: k, word, phase: wait.phase, drawnAs: wait.drawnAs });
|
|
@@ -26810,6 +26413,9 @@ var OpeningRepairCode;
|
|
|
26810
26413
|
OpeningRepairCode["ProOnly"] = "pro-only";
|
|
26811
26414
|
/** The name behind the subject needs a cut-out picture: the name, large. */
|
|
26812
26415
|
OpeningRepairCode["NeedsCutOut"] = "needs-cut-out";
|
|
26416
|
+
/** J10 lever (b): a looping film is the owner's own clip — a build with none draws a picture there, which the owner's
|
|
26417
|
+
* photo, a made picture or stock can fill (an empty Video was never offered to any of them). */
|
|
26418
|
+
OpeningRepairCode["FilmIsTheOwners"] = "film-is-the-owners";
|
|
26813
26419
|
/** "The film is the message" needs a film or pictures that move: a heading. */
|
|
26814
26420
|
OpeningRepairCode["NoneNeedsFilm"] = "none-needs-film";
|
|
26815
26421
|
/** Words placed apart need two or three of them. */
|
|
@@ -26885,6 +26491,10 @@ function checkOpening(mix, ctx) {
|
|
|
26885
26491
|
say(OpeningRepairCode.ProOnly, `"${openingMeaning(k, word)}" comes with the award plan: ${openingMeaning(k, tierStandIn(k))} instead`);
|
|
26886
26492
|
}
|
|
26887
26493
|
}
|
|
26494
|
+
if (m.media === OpeningMedia.Film && ctx.film === false) {
|
|
26495
|
+
m.media = OpeningMedia.Photo;
|
|
26496
|
+
say(OpeningRepairCode.FilmIsTheOwners, 'a looping film is the owner\'s own clip, and there is none yet: a picture stands in, filled by their photo or one that fits the business');
|
|
26497
|
+
}
|
|
26888
26498
|
if (m.words === OpeningWords.Behind && !ctx.cutOut) {
|
|
26889
26499
|
m.words = OpeningWords.Wordmark;
|
|
26890
26500
|
say(OpeningRepairCode.NeedsCutOut, 'the name behind the subject needs a cut-out picture: the name, large, until there is one');
|
|
@@ -27232,7 +26842,7 @@ function extrasNodes(mix) {
|
|
|
27232
26842
|
return out;
|
|
27233
26843
|
}
|
|
27234
26844
|
/** The words and what sits beside them: a working form first stands beside the words (the words above it on a phone). */
|
|
27235
|
-
function bodyOf(mix, ctx) {
|
|
26845
|
+
function bodyOf$1(mix, ctx) {
|
|
27236
26846
|
const words = wordsNodes(mix, ctx);
|
|
27237
26847
|
const cutout = mix.words === OpeningWords.Behind
|
|
27238
26848
|
? [picture(OpeningRole.Cutout, { position: 'absolute', bottom: '0px', left: '20%', width: '60%', height: '86%', zIndex: '2', aspectRatio: 'auto', objectFit: 'contain', borderRadius: '0px' })]
|
|
@@ -27249,7 +26859,7 @@ function bodyOf(mix, ctx) {
|
|
|
27249
26859
|
/** The opening mix as a pattern — the page's first section. Check it first (`checkOpening` on the drawn mix). Pure. */
|
|
27250
26860
|
function openingRecipe(mix, ctx) {
|
|
27251
26861
|
const { drawn } = drawnOpeningMix(mix);
|
|
27252
|
-
const frame = frameNode(drawn, [...mediaNodes(drawn), ...bodyOf(drawn, ctx), ...extrasNodes(drawn)]);
|
|
26862
|
+
const frame = frameNode(drawn, [...mediaNodes(drawn), ...bodyOf$1(drawn, ctx), ...extrasNodes(drawn)]);
|
|
27253
26863
|
const node = { t: 'Section', es: 'section', role: OpeningRole.Root, lay: { position: 'relative', padding: '0px', overflow: 'hidden' }, c: [frame] };
|
|
27254
26864
|
const words = [openingMeaning(OpeningIngredient.Frame, drawn.frame), openingMeaning(OpeningIngredient.Media, drawn.media), openingMeaning(OpeningIngredient.Words, drawn.words)];
|
|
27255
26865
|
return {
|
|
@@ -27258,6 +26868,632 @@ function openingRecipe(mix, ctx) {
|
|
|
27258
26868
|
};
|
|
27259
26869
|
}
|
|
27260
26870
|
|
|
26871
|
+
/**
|
|
26872
|
+
* HEADER INGREDIENTS (header-ingredients-plan.md, HI0): a site's header is a MIX — one word per ingredient — never a
|
|
26873
|
+
* header pattern. Every word, its meaning, whether the product draws it yet, the named mixes stored plans use, what a CL2
|
|
26874
|
+
* `nav.kind` asks for, the fingerprint and Doron's references live in ONE table, the contract's `site.layout.header`
|
|
26875
|
+
* (layout.mjs `HEADER`). This module only reads it: adding an option is a row there, not a change here
|
|
26876
|
+
* (architecture/ai/ingredients.md). Pure.
|
|
26877
|
+
*/
|
|
26878
|
+
const H = SPEC_SITE_LAYOUT.header;
|
|
26879
|
+
const PARTS = SPEC_SITE_HEADER_PARTS;
|
|
26880
|
+
/** The ingredients, by the contract's keys (held equal to it by header-mix.spec). */
|
|
26881
|
+
var HeaderIngredient;
|
|
26882
|
+
(function (HeaderIngredient) {
|
|
26883
|
+
HeaderIngredient["Arrange"] = "arrange";
|
|
26884
|
+
HeaderIngredient["MenuSide"] = "menuSide";
|
|
26885
|
+
HeaderIngredient["Pages"] = "pages";
|
|
26886
|
+
HeaderIngredient["Menu"] = "menu";
|
|
26887
|
+
HeaderIngredient["MenuShows"] = "menuShows";
|
|
26888
|
+
HeaderIngredient["Action"] = "action";
|
|
26889
|
+
HeaderIngredient["Ground"] = "ground";
|
|
26890
|
+
HeaderIngredient["Shape"] = "shape";
|
|
26891
|
+
HeaderIngredient["Brand"] = "brand";
|
|
26892
|
+
HeaderIngredient["Scroll"] = "scroll";
|
|
26893
|
+
HeaderIngredient["Edge"] = "edge";
|
|
26894
|
+
HeaderIngredient["Phone"] = "phone";
|
|
26895
|
+
/** HB-D1 (HI2a): how the menu opens. */
|
|
26896
|
+
HeaderIngredient["Reveal"] = "reveal";
|
|
26897
|
+
/** HB-D1 (HI2a): the button that opens it. */
|
|
26898
|
+
HeaderIngredient["Button"] = "button";
|
|
26899
|
+
/** HB-D1 (HI2a): what the mouse does in it. */
|
|
26900
|
+
HeaderIngredient["MenuHover"] = "menuHover";
|
|
26901
|
+
/** HB-D1 (HI3): what sits above the bar. */
|
|
26902
|
+
HeaderIngredient["Above"] = "above";
|
|
26903
|
+
/** HB-D1 (HI3 / HI6): what more sits in the bar. */
|
|
26904
|
+
HeaderIngredient["InBar"] = "inBar";
|
|
26905
|
+
/** AW6: whose ground the header's ink follows — the opening's, or every section's as it passes under the bar. */
|
|
26906
|
+
HeaderIngredient["Ink"] = "ink";
|
|
26907
|
+
})(HeaderIngredient || (HeaderIngredient = {}));
|
|
26908
|
+
var HeaderArrange;
|
|
26909
|
+
(function (HeaderArrange) {
|
|
26910
|
+
HeaderArrange["Split"] = "split";
|
|
26911
|
+
HeaderArrange["Centred"] = "centred";
|
|
26912
|
+
HeaderArrange["Between"] = "between";
|
|
26913
|
+
HeaderArrange["NameOnly"] = "name-only";
|
|
26914
|
+
})(HeaderArrange || (HeaderArrange = {}));
|
|
26915
|
+
var HeaderPages;
|
|
26916
|
+
(function (HeaderPages) {
|
|
26917
|
+
HeaderPages["Inline"] = "inline";
|
|
26918
|
+
HeaderPages["Menu"] = "menu";
|
|
26919
|
+
HeaderPages["MenuPinned"] = "menu-pinned";
|
|
26920
|
+
})(HeaderPages || (HeaderPages = {}));
|
|
26921
|
+
var HeaderAction;
|
|
26922
|
+
(function (HeaderAction) {
|
|
26923
|
+
HeaderAction["None"] = "none";
|
|
26924
|
+
HeaderAction["Button"] = "button";
|
|
26925
|
+
HeaderAction["Link"] = "link";
|
|
26926
|
+
HeaderAction["Two"] = "two";
|
|
26927
|
+
})(HeaderAction || (HeaderAction = {}));
|
|
26928
|
+
class HeaderMixError extends Error {
|
|
26929
|
+
}
|
|
26930
|
+
/** The header pattern a plan names when it names none the table knows (the Studio header). */
|
|
26931
|
+
const DEFAULT_HEADER_PATTERN = 'nav.inline-cta';
|
|
26932
|
+
const INGREDIENTS = H.ingredients;
|
|
26933
|
+
const WAITS = H.waits;
|
|
26934
|
+
const MEANINGS = H.meanings;
|
|
26935
|
+
const MEANINGS_HE = (H.meaningsHe ?? {});
|
|
26936
|
+
const HEBREW$1 = 'he';
|
|
26937
|
+
/** The words an ingredient may take. */
|
|
26938
|
+
function headerWords(ingredient) {
|
|
26939
|
+
return INGREDIENTS[ingredient] ?? [];
|
|
26940
|
+
}
|
|
26941
|
+
/** What a word means, as the brief and the builder say it — in Hebrew when the builder speaks it (HI1b, board 4d). */
|
|
26942
|
+
function headerMeaning(ingredient, word, locale) {
|
|
26943
|
+
const key = `${ingredient}.${word}`;
|
|
26944
|
+
return (locale === HEBREW$1 ? MEANINGS_HE[key] : undefined) ?? MEANINGS[key] ?? word;
|
|
26945
|
+
}
|
|
26946
|
+
/** Whether the product draws a word today (a waiting word is never offered — HB-D9). */
|
|
26947
|
+
function headerWordDrawn(ingredient, word) {
|
|
26948
|
+
return headerWords(ingredient).includes(word) && !WAITS[`${ingredient}.${word}`];
|
|
26949
|
+
}
|
|
26950
|
+
const GALLERY = (H.gallery ?? []);
|
|
26951
|
+
/** The gallery, in the contract's order (Studio — the defaults — first), named in `locale` (English unless Hebrew). */
|
|
26952
|
+
function headerGallery(locale) {
|
|
26953
|
+
const he = locale === HEBREW$1;
|
|
26954
|
+
return GALLERY.map(g => ({ id: g.id, name: he ? g.nameHe : g.name, words: he ? g.wordsHe : g.words, mix: headerMix(g.mix) }));
|
|
26955
|
+
}
|
|
26956
|
+
/** The gallery mix a mix is exactly, or null. */
|
|
26957
|
+
function headerGalleryIdOf(mix) {
|
|
26958
|
+
const key = JSON.stringify(headerMixWords(mix));
|
|
26959
|
+
return GALLERY.find(g => JSON.stringify(headerMixWords(headerMix(g.mix))) === key)?.id ?? null;
|
|
26960
|
+
}
|
|
26961
|
+
// ── The mix a header stores (HI1b, HS-5) ───────────────────────────────────────────────────────────────────────────
|
|
26962
|
+
/** A mix as the header root stores it: its `<ingredient>:<word>` words, space-separated, in the table's order. */
|
|
26963
|
+
function headerMixValue(mix) {
|
|
26964
|
+
return headerMixWords(mix).join(' ');
|
|
26965
|
+
}
|
|
26966
|
+
/** Writes the mix on a header root (its props). */
|
|
26967
|
+
function stampHeaderMix(root, mix) {
|
|
26968
|
+
root.props = { ...root.props, [HeaderTrait.Mix]: headerMixValue(mix) };
|
|
26969
|
+
}
|
|
26970
|
+
/** The mix a header root stores, or null — none stored, or words the table no longer knows (read as unstamped). */
|
|
26971
|
+
function storedHeaderMix(root) {
|
|
26972
|
+
const value = root?.props?.[HeaderTrait.Mix];
|
|
26973
|
+
if (typeof value !== 'string' || !value.trim())
|
|
26974
|
+
return null;
|
|
26975
|
+
try {
|
|
26976
|
+
return headerMixFromWords(value.trim().split(/\s+/));
|
|
26977
|
+
}
|
|
26978
|
+
catch {
|
|
26979
|
+
return null;
|
|
26980
|
+
}
|
|
26981
|
+
}
|
|
26982
|
+
/** A whole mix from part of one: what is not named is the default (the Studio header). Refuses a word the table lacks. */
|
|
26983
|
+
function headerMix(partial = {}) {
|
|
26984
|
+
const mix = { ...H.defaults };
|
|
26985
|
+
for (const [k, w] of Object.entries(partial)) {
|
|
26986
|
+
if (w === undefined)
|
|
26987
|
+
continue;
|
|
26988
|
+
if (!INGREDIENTS[k])
|
|
26989
|
+
throw new HeaderMixError(`no header ingredient "${k}"`);
|
|
26990
|
+
if (!INGREDIENTS[k].includes(w))
|
|
26991
|
+
throw new HeaderMixError(`a header's ${k} cannot be "${w}" (${INGREDIENTS[k].join(' · ')})`);
|
|
26992
|
+
mix[k] = w;
|
|
26993
|
+
}
|
|
26994
|
+
return mix;
|
|
26995
|
+
}
|
|
26996
|
+
/** The mix a stored header pattern id stands for (`nav.inline-cta`, `nav.centered-logo`), or null for an unknown id. */
|
|
26997
|
+
function namedHeaderMix(patternId) {
|
|
26998
|
+
const named = H.named[patternId];
|
|
26999
|
+
return named ? headerMix(named) : null;
|
|
27000
|
+
}
|
|
27001
|
+
/** The mix a CL2 layout's `nav.kind` asks for (`bar` when it names none). */
|
|
27002
|
+
function headerMixOfNavKind(kind) {
|
|
27003
|
+
const asked = H.navKinds[kind ?? 'bar'];
|
|
27004
|
+
if (!asked)
|
|
27005
|
+
throw new HeaderMixError(`no nav kind "${kind}"`);
|
|
27006
|
+
return headerMix(asked);
|
|
27007
|
+
}
|
|
27008
|
+
/** The mix the product DRAWS today: every waiting word becomes its built stand-in, and each one is said as a gap. */
|
|
27009
|
+
function drawnHeaderMix(mix) {
|
|
27010
|
+
const drawn = { ...mix };
|
|
27011
|
+
const gaps = [];
|
|
27012
|
+
for (const k of Object.values(HeaderIngredient)) {
|
|
27013
|
+
const wait = WAITS[`${k}.${mix[k]}`];
|
|
27014
|
+
if (!wait)
|
|
27015
|
+
continue;
|
|
27016
|
+
gaps.push({ ingredient: k, word: mix[k], phase: wait.phase, drawnAs: wait.drawnAs });
|
|
27017
|
+
drawn[k] = wait.drawnAs;
|
|
27018
|
+
}
|
|
27019
|
+
return { drawn, gaps };
|
|
27020
|
+
}
|
|
27021
|
+
/** The fingerprint's prefix for a header. */
|
|
27022
|
+
const HEADER_TOKEN = 'header';
|
|
27023
|
+
/** A header as the fingerprint sees it (§7): `header:<arrange>/<pages>/<menu>/<ground>/<shape>` — what a visitor takes in
|
|
27024
|
+
* at once, in the contract's order. Two sites with the same token wear the same header. */
|
|
27025
|
+
function headerTokenOf(mix) {
|
|
27026
|
+
return `${HEADER_TOKEN}:${H.fingerprint.map(k => mix[k]).join('/')}`;
|
|
27027
|
+
}
|
|
27028
|
+
/** A header token in words: `header:name-only/menu/drawer/solid/bar` → "name-only · menu · drawer · solid · bar". */
|
|
27029
|
+
const headerTokenWords = (token) => token.replace(`${HEADER_TOKEN}:`, '').split('/').join(' · ');
|
|
27030
|
+
/** Doron's reference headers (§2b), each as a whole mix. */
|
|
27031
|
+
function headerReferences() {
|
|
27032
|
+
return H.references
|
|
27033
|
+
.map(r => ({ id: r.id, after: r.after, added: r.added, mix: headerMix(r.mix) }));
|
|
27034
|
+
}
|
|
27035
|
+
/** The site plan's header as a mix: its `mixes.header` when it has one (HI1), else its `globals.header` pattern read as a
|
|
27036
|
+
* named mix (HI-D4), else the Studio header. */
|
|
27037
|
+
function headerMixOfPlan(plan) {
|
|
27038
|
+
if (plan.mixes?.header?.length)
|
|
27039
|
+
return headerMixFromWords(plan.mixes.header);
|
|
27040
|
+
return namedHeaderMix(plan.globals?.['header'] ?? '') ?? headerMix();
|
|
27041
|
+
}
|
|
27042
|
+
// ── The wire: ONE list of <ingredient>:<word> words (the list and footer wires' encoding) ─────────────────────────
|
|
27043
|
+
/** A mix on the wire: one `<ingredient>:<word>` per ingredient, in the table's order. */
|
|
27044
|
+
function headerMixWords(mix) {
|
|
27045
|
+
return Object.values(HeaderIngredient).map(k => `${k}:${mix[k]}`);
|
|
27046
|
+
}
|
|
27047
|
+
/** Every `<ingredient>:<word>` the wire may carry: only the words the product DRAWS (ingredients.md §3) — a waiting word
|
|
27048
|
+
* is never offered, so the model never chooses what the site would show as something else. */
|
|
27049
|
+
function headerWireWords() {
|
|
27050
|
+
return Object.values(HeaderIngredient).flatMap(k => headerWords(k).filter(w => !WAITS[`${k}.${w}`]).map(w => `${k}:${w}`));
|
|
27051
|
+
}
|
|
27052
|
+
/** The words back into a mix: an ingredient not named is the default. Refuses an unknown word and two words for one
|
|
27053
|
+
* ingredient. */
|
|
27054
|
+
function headerMixFromWords(words) {
|
|
27055
|
+
const partial = {};
|
|
27056
|
+
for (const pair of words) {
|
|
27057
|
+
const [k, w] = String(pair).split(':');
|
|
27058
|
+
if (!INGREDIENTS[k] || !w)
|
|
27059
|
+
throw new HeaderMixError(`"${pair}" is no header word (<ingredient>:<word>)`);
|
|
27060
|
+
if (partial[k] !== undefined && partial[k] !== w)
|
|
27061
|
+
throw new HeaderMixError(`a header has one ${k} ("${partial[k]}" and "${w}")`);
|
|
27062
|
+
partial[k] = w;
|
|
27063
|
+
}
|
|
27064
|
+
return headerMix(partial);
|
|
27065
|
+
}
|
|
27066
|
+
/** The stored header pattern a mix is exactly (`nav.inline-cta`, `nav.centered-logo`), else null. */
|
|
27067
|
+
function headerPatternIdOf(mix) {
|
|
27068
|
+
const key = JSON.stringify(headerMixWords(mix));
|
|
27069
|
+
return Object.keys(H.named).find(id => JSON.stringify(headerMixWords(namedHeaderMix(id))) === key) ?? null;
|
|
27070
|
+
}
|
|
27071
|
+
// ── The check: any mix, judged against the site and mended (§3, §6 — the rules for the words HI1 draws) ──────────
|
|
27072
|
+
var HeaderRepairCode;
|
|
27073
|
+
(function (HeaderRepairCode) {
|
|
27074
|
+
/** A name-and-menu header has its pages behind the menu. */
|
|
27075
|
+
HeaderRepairCode["NameOnlyInline"] = "name-only-inline";
|
|
27076
|
+
/** The name at the start with the pages behind a menu IS the name-and-menu header. */
|
|
27077
|
+
HeaderRepairCode["SplitMenu"] = "split-menu";
|
|
27078
|
+
/** Pages either side of the name are pages in the bar: behind a menu the name is centred. */
|
|
27079
|
+
HeaderRepairCode["BetweenMenu"] = "between-menu";
|
|
27080
|
+
/** A menu for so few pages is a detour: they go in the bar. */
|
|
27081
|
+
HeaderRepairCode["FewPages"] = "few-pages";
|
|
27082
|
+
/** The pages do not fit beside the name on a laptop: they go behind a menu. */
|
|
27083
|
+
HeaderRepairCode["TooManyPages"] = "too-many-pages";
|
|
27084
|
+
/** The name is too long, or the pages too few, to sit between two halves: the name is centred above them. */
|
|
27085
|
+
HeaderRepairCode["BetweenUnbalanced"] = "between-unbalanced";
|
|
27086
|
+
/** Two actions need two destinations (the contact page and the shop): one button. */
|
|
27087
|
+
HeaderRepairCode["OneDestination"] = "one-destination";
|
|
27088
|
+
/** Another site already wears this header: the nearest free one (`distinctHeader`). */
|
|
27089
|
+
HeaderRepairCode["Worn"] = "worn";
|
|
27090
|
+
/** HI3-D12: this kind of business never stands its header over the opening (harness HEADER_NEVER): its own ground. */
|
|
27091
|
+
HeaderRepairCode["TypeNever"] = "type-never";
|
|
27092
|
+
/** HI3-D10 / D12: the home page does not open on a picture the header can stand over: its own ground. */
|
|
27093
|
+
HeaderRepairCode["OverPlain"] = "over-plain";
|
|
27094
|
+
/** HI3-D5: the header's words do not read over the opening's picture at rest: glass from the top (its own ground in a
|
|
27095
|
+
* look with no glass). */
|
|
27096
|
+
HeaderRepairCode["OverUnreadable"] = "over-unreadable";
|
|
27097
|
+
/** HI3-D2: the look has no glass (Pop): glass is its own solid bar, over-then-glass is over. */
|
|
27098
|
+
HeaderRepairCode["NoGlass"] = "no-glass";
|
|
27099
|
+
/** HI3-D12: in a look whose own bar is glass (Glass), over is over-then-glass. */
|
|
27100
|
+
HeaderRepairCode["GlassOwnBar"] = "glass-own-bar";
|
|
27101
|
+
/** HI3-D9: glass carries its own hairline and shadow: no scroll edge. */
|
|
27102
|
+
HeaderRepairCode["GlassEdge"] = "glass-edge";
|
|
27103
|
+
})(HeaderRepairCode || (HeaderRepairCode = {}));
|
|
27104
|
+
const RULES = H.rules;
|
|
27105
|
+
/** How a laptop's bar is measured (an estimate on the look's own faces — never a guess at a page's words): the name at
|
|
27106
|
+
* the brand's size, each page at the link's, the gap between them, and a button's padding around its words. */
|
|
27107
|
+
const BRAND_PX = 24;
|
|
27108
|
+
const LINK_PX = 16;
|
|
27109
|
+
const GAP_PX = 24;
|
|
27110
|
+
const BUTTON_PAD_PX = 48;
|
|
27111
|
+
const ACTION_WORDS = 'Get in touch';
|
|
27112
|
+
/** How wide the bar's words stand on a laptop: the pages and the action, and — beside them — the name. */
|
|
27113
|
+
function barWidthPx(mix, ctx) {
|
|
27114
|
+
const link = elementStyleFace(ctx.design, 'link');
|
|
27115
|
+
const pages = ctx.pages.reduce((w, p) => w + textWidthEm(p.name, link) * LINK_PX + GAP_PX, 0);
|
|
27116
|
+
const action = mix.action === HeaderAction.None ? 0 : textWidthEm(ACTION_WORDS, link) * LINK_PX + BUTTON_PAD_PX + GAP_PX;
|
|
27117
|
+
const name = mix.arrange === HeaderArrange.Centred ? 0 : textWidthEm(ctx.name, elementStyleFace(ctx.design, 'h3')) * BRAND_PX + GAP_PX;
|
|
27118
|
+
return pages + action * (mix.action === HeaderAction.Two ? 2 : 1) + name;
|
|
27119
|
+
}
|
|
27120
|
+
const behindMenu = (mix) => mix.pages !== HeaderPages.Inline;
|
|
27121
|
+
/**
|
|
27122
|
+
* The ONE judge of a header mix against the site (§3): what the site cannot carry is mended to the nearest mix that it
|
|
27123
|
+
* can, and each mend is said. Judges the mix as DRAWN (`drawnHeaderMix` first). Never throws on a well-formed mix. Pure.
|
|
27124
|
+
*/
|
|
27125
|
+
function checkHeader(mix, ctx) {
|
|
27126
|
+
const m = { ...mix };
|
|
27127
|
+
const repairs = [];
|
|
27128
|
+
const say = (code, said) => repairs.push({ code, said });
|
|
27129
|
+
const count = ctx.pages.length;
|
|
27130
|
+
if (m.arrange === HeaderArrange.NameOnly && !behindMenu(m)) {
|
|
27131
|
+
m.pages = HeaderPages.Menu;
|
|
27132
|
+
say(HeaderRepairCode.NameOnlyInline, 'a name-and-menu header keeps its pages behind the menu');
|
|
27133
|
+
}
|
|
27134
|
+
if (behindMenu(m) && count < RULES.menuMinLinks) {
|
|
27135
|
+
m.pages = HeaderPages.Inline;
|
|
27136
|
+
if (m.arrange === HeaderArrange.NameOnly)
|
|
27137
|
+
m.arrange = HeaderArrange.Split;
|
|
27138
|
+
say(HeaderRepairCode.FewPages, `a menu for ${count} page${count === 1 ? '' : 's'} is a detour: they stand in the bar`);
|
|
27139
|
+
}
|
|
27140
|
+
if (!behindMenu(m) && barWidthPx(m, ctx) > RULES.inlineRoomPx) {
|
|
27141
|
+
m.pages = HeaderPages.Menu;
|
|
27142
|
+
say(HeaderRepairCode.TooManyPages, `${count} pages do not fit in the bar on a laptop: they go behind the menu`);
|
|
27143
|
+
}
|
|
27144
|
+
if (m.arrange === HeaderArrange.Split && behindMenu(m)) {
|
|
27145
|
+
m.arrange = HeaderArrange.NameOnly;
|
|
27146
|
+
say(HeaderRepairCode.SplitMenu, 'the name at the start with the pages behind a menu is the name-and-menu header');
|
|
27147
|
+
}
|
|
27148
|
+
if (m.arrange === HeaderArrange.Between && behindMenu(m)) {
|
|
27149
|
+
m.arrange = HeaderArrange.Centred;
|
|
27150
|
+
say(HeaderRepairCode.BetweenMenu, 'with the pages behind a menu the name is centred');
|
|
27151
|
+
}
|
|
27152
|
+
if (m.arrange === HeaderArrange.Between) {
|
|
27153
|
+
const long = textWidthEm(ctx.name, elementStyleFace(ctx.design, 'h3')) > RULES.betweenNameEm;
|
|
27154
|
+
if (long || count < RULES.betweenMinPages) {
|
|
27155
|
+
m.arrange = HeaderArrange.Centred;
|
|
27156
|
+
say(HeaderRepairCode.BetweenUnbalanced, long ? `"${ctx.name}" is too long to sit between the pages: it is centred above them`
|
|
27157
|
+
: 'too few pages to share either side of the name: it is centred above them');
|
|
27158
|
+
}
|
|
27159
|
+
}
|
|
27160
|
+
if (m.action === HeaderAction.Two && !ctx.shop) {
|
|
27161
|
+
m.action = HeaderAction.Button;
|
|
27162
|
+
say(HeaderRepairCode.OneDestination, 'two actions need two places to go (the contact page and the shop): one button');
|
|
27163
|
+
}
|
|
27164
|
+
mendGround(m, ctx, say);
|
|
27165
|
+
return { mix: m, repairs };
|
|
27166
|
+
}
|
|
27167
|
+
/** HI3-D12: does the home page open on a picture the header can stand over — the contract's frames and media. */
|
|
27168
|
+
function opensOnPicture(opening) {
|
|
27169
|
+
return !!opening && RULES.overFrames.includes(opening.frame) && RULES.overMedia.includes(opening.media);
|
|
27170
|
+
}
|
|
27171
|
+
/** HI3-D5: what an over header stands on when its words do not read over the opening — the look's glass from the top,
|
|
27172
|
+
* or its own solid bar in a look with no glass (Pop). The ONE answer `checkHeader` and a build's late mend share. */
|
|
27173
|
+
function headerGroundWhenUnreadable(design) {
|
|
27174
|
+
return lookHasGlass(design) ? HeaderGround.Glass : HeaderGround.Solid;
|
|
27175
|
+
}
|
|
27176
|
+
/** HI3-D2: does the look carry a header glass set (Pop draws its own solid bar). */
|
|
27177
|
+
function lookHasGlass(design) {
|
|
27178
|
+
return RULES.glassFlavors.includes(design.flavorId);
|
|
27179
|
+
}
|
|
27180
|
+
/** The ground rules (HI3-D2, D5, D9, D12), in order: the kind of business, the opening, the words at rest, the look's
|
|
27181
|
+
* glass, then the edge glass does not draw. */
|
|
27182
|
+
function mendGround(m, ctx, say) {
|
|
27183
|
+
const glass = lookHasGlass(ctx.design);
|
|
27184
|
+
if (headerGroundIsOver(m.ground) && ctx.never?.grounds.includes(m.ground)) {
|
|
27185
|
+
const why = ctx.never.say?.length ? ` — ${ctx.never.say.join(' ')}` : '';
|
|
27186
|
+
m.ground = HeaderGround.Solid;
|
|
27187
|
+
say(HeaderRepairCode.TypeNever, `this kind of business keeps its header on its own ground, never over the opening's picture${why}`);
|
|
27188
|
+
}
|
|
27189
|
+
if (headerGroundIsOver(m.ground) && ctx.opening !== undefined && !opensOnPicture(ctx.opening)) {
|
|
27190
|
+
m.ground = HeaderGround.Solid;
|
|
27191
|
+
say(HeaderRepairCode.OverPlain, 'the home page does not open on a full picture the header can stand over: it keeps its own ground');
|
|
27192
|
+
}
|
|
27193
|
+
if (headerGroundIsOver(m.ground) && ctx.readableAtRest === false) {
|
|
27194
|
+
m.ground = headerGroundWhenUnreadable(ctx.design);
|
|
27195
|
+
say(HeaderRepairCode.OverUnreadable, glass ? "the header's words do not read over the opening's picture: it stands on its glass from the top"
|
|
27196
|
+
: "the header's words do not read over the opening's picture: it keeps its own ground");
|
|
27197
|
+
}
|
|
27198
|
+
if (headerGroundIsGlass(m.ground) && !glass) {
|
|
27199
|
+
m.ground = m.ground === HeaderGround.OverGlass ? HeaderGround.Over : HeaderGround.Solid;
|
|
27200
|
+
say(HeaderRepairCode.NoGlass, m.ground === HeaderGround.Over ? 'this look has no glass: over the opening, then its own solid bar'
|
|
27201
|
+
: 'this look has no glass: the header keeps its own solid bar');
|
|
27202
|
+
}
|
|
27203
|
+
if (m.ground === HeaderGround.Over && RULES.glassIsOwnBar.includes(ctx.design.flavorId)) {
|
|
27204
|
+
m.ground = HeaderGround.OverGlass;
|
|
27205
|
+
say(HeaderRepairCode.GlassOwnBar, "in this look the header's own bar is glass: over the opening, then glass");
|
|
27206
|
+
}
|
|
27207
|
+
if (RULES.noEdgeGrounds.includes(m.ground) && m.edge !== 'none') {
|
|
27208
|
+
m.edge = 'none';
|
|
27209
|
+
say(HeaderRepairCode.GlassEdge, 'glass carries its own hairline and shadow: no scroll edge');
|
|
27210
|
+
}
|
|
27211
|
+
}
|
|
27212
|
+
// ── The words at rest over the opening (HI3-D5) ─────────────────────────────────────────────────────────────────────
|
|
27213
|
+
/** The bar's height on a laptop, and the veil (`nav-over-veil`): the opening's ground at 32 % at the bar's top, clear 24px
|
|
27214
|
+
* under it — read at the words' line, the bar's middle (the board's measure, hi3-glass.build.mjs). */
|
|
27215
|
+
const HEADER_BAR_PX = 80;
|
|
27216
|
+
const HEADER_VEIL = Object.freeze({ top: 0.32, extendPx: 24 });
|
|
27217
|
+
/** WCAG AA for the bar's words (small text). */
|
|
27218
|
+
const AA_TEXT = 4.5;
|
|
27219
|
+
const GRID_COLUMNS$1 = 12;
|
|
27220
|
+
/** The veil's alpha at the words' line of a `barPx` bar. */
|
|
27221
|
+
function headerVeilAt(barPx = HEADER_BAR_PX) {
|
|
27222
|
+
return HEADER_VEIL.top * (1 - (barPx / 2) / (barPx + HEADER_VEIL.extendPx));
|
|
27223
|
+
}
|
|
27224
|
+
const toGamma = (linear) => (linear <= 0.0031308 ? 12.92 * linear : 1.055 * Math.pow(linear, 1 / 2.4) - 0.055);
|
|
27225
|
+
/**
|
|
27226
|
+
* HI3-D5: whether the header's words read at rest over the top of the opening's picture — the band the bar covers, as the
|
|
27227
|
+
* frame crops the picture (`calmUnder`), column by column across the bar, each read as its mean light with the veil laid
|
|
27228
|
+
* over it — in EVERY mode the look offers (`inks`, one per mode; a film is judged on its poster). The weakest column
|
|
27229
|
+
* decides. Pure.
|
|
27230
|
+
*/
|
|
27231
|
+
function headerReadsAtRest(inv, frame, inks, barPx = HEADER_BAR_PX) {
|
|
27232
|
+
const veil = headerVeilAt(barPx);
|
|
27233
|
+
const band = Math.min(1, Math.max(0, barPx / Math.max(1, frame.h)));
|
|
27234
|
+
for (const { ink, veilGround } of inks) {
|
|
27235
|
+
const v = parseHexColor(veilGround);
|
|
27236
|
+
if (!v || !parseHexColor(ink))
|
|
27237
|
+
return false;
|
|
27238
|
+
for (let i = 0; i < GRID_COLUMNS$1; i++) {
|
|
27239
|
+
const grey = toGamma(calmUnder(inv, frame, { x0: i / GRID_COLUMNS$1, x1: (i + 1) / GRID_COLUMNS$1, y0: 0, y1: band }).luminance);
|
|
27240
|
+
const under = { r: veil * v.r + (1 - veil) * grey, g: veil * v.g + (1 - veil) * grey, b: veil * v.b + (1 - veil) * grey };
|
|
27241
|
+
if (wcagContrastRatio(ink, under) < AA_TEXT)
|
|
27242
|
+
return false;
|
|
27243
|
+
}
|
|
27244
|
+
}
|
|
27245
|
+
return true;
|
|
27246
|
+
}
|
|
27247
|
+
/** The frames the words at rest are judged in (HI3-D5): a laptop's first screen under its 80px bar, a phone's under 64px
|
|
27248
|
+
* (the shared CSS's bar fallbacks, iox-design.css). */
|
|
27249
|
+
const HEADER_REST_FRAMES = [
|
|
27250
|
+
{ w: 1440, h: 900, barPx: HEADER_BAR_PX },
|
|
27251
|
+
{ w: 390, h: 760, barPx: 64 },
|
|
27252
|
+
];
|
|
27253
|
+
const DEFAULT_SCHEME = 'default';
|
|
27254
|
+
const MODES_OF = { light: ['light'], dark: ['dark'], auto: ['light', 'dark'] };
|
|
27255
|
+
/**
|
|
27256
|
+
* HI3-D5: the header's words at rest, one per mode the look offers — the opening scheme's `text` (what an over header
|
|
27257
|
+
* wears at rest, HI3-D8) over a veil of its `bg` — resolved from the look's own token rows. A scheme the rows lack reads
|
|
27258
|
+
* as the page's. Pure.
|
|
27259
|
+
*/
|
|
27260
|
+
function headerRestInks(design, scheme) {
|
|
27261
|
+
const rows = designTokenRows(design);
|
|
27262
|
+
return (MODES_OF[design.mode] ?? MODES_OF['light']).map(mode => {
|
|
27263
|
+
const values = scheme && scheme !== DEFAULT_SCHEME ? resolveSchemeTokenValues(rows, mode, scheme) : resolveTokenValues(rows, mode);
|
|
27264
|
+
return { ink: values['text'] ?? '', veilGround: values['bg'] ?? '' };
|
|
27265
|
+
});
|
|
27266
|
+
}
|
|
27267
|
+
const PICTURE_ROLES$1 = new Set([OpeningRole.Media, OpeningRole.MediaZooms, OpeningRole.Slides, OpeningRole.Film]);
|
|
27268
|
+
/** The address of the picture the home opening shows first: its picture, the first slide, a film's poster — or null. */
|
|
27269
|
+
function openingPictureSrc(opening) {
|
|
27270
|
+
let found = null;
|
|
27271
|
+
const walk = (n, inside) => {
|
|
27272
|
+
if (found)
|
|
27273
|
+
return;
|
|
27274
|
+
const here = inside || PICTURE_ROLES$1.has(n.role ?? '');
|
|
27275
|
+
if (here) {
|
|
27276
|
+
const src = n.type === 'Video' ? n.props?.['poster'] : n.type === 'Image' ? n.props?.['src'] : null;
|
|
27277
|
+
if (typeof src === 'string' && src.trim()) {
|
|
27278
|
+
found = src;
|
|
27279
|
+
return;
|
|
27280
|
+
}
|
|
27281
|
+
}
|
|
27282
|
+
for (const c of n.children ?? [])
|
|
27283
|
+
walk(c, here);
|
|
27284
|
+
};
|
|
27285
|
+
if (opening?.role === OpeningRole.Root)
|
|
27286
|
+
walk(opening, false);
|
|
27287
|
+
return found;
|
|
27288
|
+
}
|
|
27289
|
+
/**
|
|
27290
|
+
* HI3-D5 on a COMPOSED site: whether its header's words read at rest over the home opening's picture — the picture's pixels
|
|
27291
|
+
* (`inventoryOf` its address: the caller holds them, the reading), the opening's scheme, in every mode the look offers
|
|
27292
|
+
* and in both frames (`HEADER_REST_FRAMES`). Null — not judged — when the home page opens on no composed picture or its
|
|
27293
|
+
* pixels are unknown (a placeholder, a stock picture not read yet). The ONE judgement the build (iox-cms, which then
|
|
27294
|
+
* composes with `headerReadable`) and the Header studio's advice share. Pure.
|
|
27295
|
+
*/
|
|
27296
|
+
function headerReadableOfSite(site, inventoryOf) {
|
|
27297
|
+
const home = site.pages.find(p => p.isHome === true) ?? site.pages.find(p => (typeof p.route === 'string' ? p.route : p.route?.path) === '/');
|
|
27298
|
+
const src = openingPictureSrc(home?.layout?.[0]);
|
|
27299
|
+
const inv = src ? inventoryOf(src) : null;
|
|
27300
|
+
if (!inv)
|
|
27301
|
+
return null;
|
|
27302
|
+
const inks = headerRestInks(site.design, home?.pageSettings?.opening ?? null);
|
|
27303
|
+
return HEADER_REST_FRAMES.every(f => headerReadsAtRest(inv, f, inks, f.barPx));
|
|
27304
|
+
}
|
|
27305
|
+
// ── The recipe: the mix arranged from the contract's parts (§4 — ONE recipe for the palette and the generator) ────
|
|
27306
|
+
const clone$3 = (v) => JSON.parse(JSON.stringify(v));
|
|
27307
|
+
const part$1 = (id) => clone$3(PARTS[id]);
|
|
27308
|
+
const laid = (node, lay) => ({ ...node, lay: { ...(node.lay ?? {}), ...lay } });
|
|
27309
|
+
const GAP = 'var(--iox-space-gap)';
|
|
27310
|
+
/** A side of a centred name: half the room each, so the name sits in the true middle (never nudged by what is beside it). */
|
|
27311
|
+
const cell = (side, c) => ({
|
|
27312
|
+
t: 'Container', es: 'box', role: NavRole.Cell, lay: { display: 'flex', flexWrap: 'nowrap', alignItems: 'center', gap: GAP, flexGrow: '1', flexShrink: '1', flexBasis: '0px', minWidth: '0px', justifyContent: side === 'start' ? 'flex-start' : 'flex-end' }, c,
|
|
27313
|
+
});
|
|
27314
|
+
/** A page as a plain link (a pinned page; a half of the pages either side of the name). */
|
|
27315
|
+
const pageLink = (p, role) => ({ t: 'Link', es: 'link', text: p.name, href: p.route, ...(role ? { role } : {}) });
|
|
27316
|
+
/** What a header asks for, in the order it shows them. */
|
|
27317
|
+
function actionsOf$1(mix, ctx) {
|
|
27318
|
+
switch (mix.action) {
|
|
27319
|
+
case HeaderAction.Button: return [part$1('button')];
|
|
27320
|
+
case HeaderAction.Link: return [part$1('quiet')];
|
|
27321
|
+
case HeaderAction.Two: return ctx.shop ? [part$1('button'), { ...part$1('outlined'), href: ctx.shop }] : [part$1('button')];
|
|
27322
|
+
default: return [];
|
|
27323
|
+
}
|
|
27324
|
+
}
|
|
27325
|
+
/** The page(s) a menu header keeps in the bar (HI-D16): a selling site's shop, else its first page. */
|
|
27326
|
+
function pinnedPagesOf(ctx) {
|
|
27327
|
+
const shop = ctx.shop ? ctx.pages.find(p => p.route === ctx.shop) : undefined;
|
|
27328
|
+
return (shop ? [shop, ...ctx.pages.filter(p => p !== shop)] : [...ctx.pages]).slice(0, RULES.pinnedMax);
|
|
27329
|
+
}
|
|
27330
|
+
/** A header's pieces once the menu takes its pages: the pinned pages and the actions, each kept in the bar. */
|
|
27331
|
+
function keptInBar(mix, ctx) {
|
|
27332
|
+
const pins = mix.pages === HeaderPages.MenuPinned ? pinnedPagesOf(ctx) : [];
|
|
27333
|
+
const acts = actionsOf$1(mix, ctx);
|
|
27334
|
+
const pinned = pins.length ? { ...part$1('pinned'), c: pins.map(p => pageLink(p)) } : null;
|
|
27335
|
+
const actions = acts.length ? { ...part$1('links'), role: NavRole.Actions, c: acts } : null;
|
|
27336
|
+
return { pinned, actions };
|
|
27337
|
+
}
|
|
27338
|
+
/** The root's children for the mix (the menu button is the phone shape's — `planNavShape` places it). */
|
|
27339
|
+
function bodyOf(mix, ctx) {
|
|
27340
|
+
const brand = part$1('brand');
|
|
27341
|
+
const links = (more, lay = {}) => ({ ...laid(part$1('links'), lay), c: [part$1('link'), ...more] });
|
|
27342
|
+
const flex = { display: 'flex', flexWrap: 'nowrap', justifyContent: 'space-between', alignItems: 'center', gap: GAP };
|
|
27343
|
+
if (!behindMenu(mix)) {
|
|
27344
|
+
switch (mix.arrange) {
|
|
27345
|
+
case HeaderArrange.Centred:
|
|
27346
|
+
return { lay: { display: 'flex', flexDirection: 'column', alignItems: 'center', gap: '14px' }, resp: { mobile: { flexDirection: 'row', justifyContent: 'space-between' } },
|
|
27347
|
+
c: [brand, links(actionsOf$1(mix, ctx), { justifyContent: 'center' })] };
|
|
27348
|
+
case HeaderArrange.Between: {
|
|
27349
|
+
const half = Math.ceil(ctx.pages.length / 2);
|
|
27350
|
+
const row = (pages, more) => ({ ...part$1('links'), c: [...pages.map(p => pageLink(p, NavRole.Link)), ...more] });
|
|
27351
|
+
return { lay: flex, c: [cell('start', [row(ctx.pages.slice(0, half), [])]), brand, cell('end', [row(ctx.pages.slice(half), actionsOf$1(mix, ctx))])] };
|
|
27352
|
+
}
|
|
27353
|
+
default:
|
|
27354
|
+
return { lay: { display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', alignItems: 'center', gap: GAP }, c: [brand, links(actionsOf$1(mix, ctx))] };
|
|
27355
|
+
}
|
|
27356
|
+
}
|
|
27357
|
+
// Behind a menu: the links row stays (hidden at every width — the drawer lists its pages, and an author who brings the
|
|
27358
|
+
// pages back gets the row back); the pinned pages and the actions stay in the bar.
|
|
27359
|
+
const { pinned, actions } = keptInBar(mix, ctx);
|
|
27360
|
+
const kept = [pinned, actions].filter((n) => !!n);
|
|
27361
|
+
const start = mix.menuSide === MenuSide.Start;
|
|
27362
|
+
if (mix.arrange === HeaderArrange.Centred) {
|
|
27363
|
+
// The name in the middle; the menu button's side holds the pinned pages, the other side the actions.
|
|
27364
|
+
const menuSide = pinned ? [pinned] : [];
|
|
27365
|
+
const other = actions ? [actions] : [];
|
|
27366
|
+
return { lay: flex, c: [cell('start', start ? menuSide : other), brand, links([]), cell('end', start ? other : menuSide)] };
|
|
27367
|
+
}
|
|
27368
|
+
// The name and the menu. At the end: the name at the start, what the bar keeps by the button. At the start (Vonder):
|
|
27369
|
+
// the button and the pinned page at the start, the name in the middle, the actions at the end — two equal side cells.
|
|
27370
|
+
return { lay: flex, c: start ? [cell('start', pinned ? [pinned] : []), brand, links([]), cell('end', actions ? [actions] : [])] : [brand, links([]), cell('end', kept)] };
|
|
27371
|
+
}
|
|
27372
|
+
/** The menu's look for a mix (HI2a): with its pages behind the menu, the `menu` form at every width and the `phone`
|
|
27373
|
+
* ingredient's form on a phone; with its pages in the bar, the menu exists on a phone only, so its form IS the phone's
|
|
27374
|
+
* (the drawer, or the full screen). How it opens, its button and its hover come from their own ingredients. */
|
|
27375
|
+
function menuLookOf(mix) {
|
|
27376
|
+
const phoneFull = mix.phone === 'full';
|
|
27377
|
+
const form = behindMenu(mix) ? menuFormOf(mix.menu) : phoneFull ? MenuForm.Full : MenuForm.Drawer;
|
|
27378
|
+
return {
|
|
27379
|
+
form,
|
|
27380
|
+
reveal: menuRevealOf(mix.reveal),
|
|
27381
|
+
button: menuButtonOf(mix.button),
|
|
27382
|
+
hover: menuHoverOf(mix.menuHover),
|
|
27383
|
+
phone: phoneFull && form !== MenuForm.Full ? MenuPhoneForm.Full : MenuPhoneForm.Drawer,
|
|
27384
|
+
};
|
|
27385
|
+
}
|
|
27386
|
+
/** The phone ingredient as the phone menu's shape (`full` is the drawer's Dialog, dressed as the full screen — HI2a). */
|
|
27387
|
+
const PHONE_SHAPE = { drawer: NavShape.Drawer, bar: NavShape.Bar, both: NavShape.Both, full: NavShape.Drawer };
|
|
27388
|
+
/** A header mix as a pattern: what the composer stamps as the site's header (global, before the page). A mix that IS a
|
|
27389
|
+
* stored header (`nav.inline-cta`, `nav.centered-logo`) composes byte-identical to it (R-H4). Pure. */
|
|
27390
|
+
function headerRecipe(mix, ctx) {
|
|
27391
|
+
const everyWidth = behindMenu(mix);
|
|
27392
|
+
const menuSide = mix.menuSide === MenuSide.Start ? MenuSide.Start : MenuSide.End;
|
|
27393
|
+
const stored = SITE_PATTERNS[headerPatternIdOf(mix) ?? ''];
|
|
27394
|
+
const { lay, resp, c } = bodyOf(mix, ctx);
|
|
27395
|
+
const node = { ...part$1('root'), lay, ...(resp ? { resp } : {}), c };
|
|
27396
|
+
const pattern = {
|
|
27397
|
+
family: 'nav',
|
|
27398
|
+
label: stored?.label ?? `Header — ${headerTokenWords(headerTokenOf(mix))}`,
|
|
27399
|
+
intent: stored?.intent ?? [headerMeaning(HeaderIngredient.Arrange, mix.arrange), headerMeaning(HeaderIngredient.Pages, mix.pages), headerMeaning(HeaderIngredient.Action, mix.action)].join('; '),
|
|
27400
|
+
global: PatternGlobalPosition.Before,
|
|
27401
|
+
// A menu at every width is the drawer's (only a drawer shows at every width — planNavShape).
|
|
27402
|
+
phoneMenu: everyWidth ? NavShape.Drawer : PHONE_SHAPE[mix.phone] ?? NavShape.Drawer,
|
|
27403
|
+
header: { behaviour: mix.scroll, edge: mix.edge },
|
|
27404
|
+
node,
|
|
27405
|
+
};
|
|
27406
|
+
return { mix, pattern, everyWidth, menuSide, menu: menuLookOf(mix) };
|
|
27407
|
+
}
|
|
27408
|
+
// ── No sameness: another site's header is never worn again (§7, R-H2) ──────────────────────────────────────────────
|
|
27409
|
+
/** The ingredients `distinctHeader` may change, in the order it tries them: how the pages are reached before where the
|
|
27410
|
+
* name sits (the model chose the arrangement; the fingerprint sees both). */
|
|
27411
|
+
const MEND_ORDER = [
|
|
27412
|
+
HeaderIngredient.Pages, HeaderIngredient.Arrange,
|
|
27413
|
+
// HB-D6: how the menu opens and its button are in the fingerprint — the least visible change of all, tried after the
|
|
27414
|
+
// two the model chose with the site in mind.
|
|
27415
|
+
HeaderIngredient.Reveal, HeaderIngredient.Button,
|
|
27416
|
+
];
|
|
27417
|
+
/** The words of an ingredient the product draws. */
|
|
27418
|
+
const drawnWords = (k) => headerWords(k).filter(w => !WAITS[`${k}.${w}`]);
|
|
27419
|
+
/**
|
|
27420
|
+
* A header no other site wears: the mix when its token is free, else the nearest mix whose token is — one changed
|
|
27421
|
+
* ingredient before two, in `MEND_ORDER` — that the site can carry as it is (`checkHeader` mends nothing), and said. When
|
|
27422
|
+
* every header is worn, the mix as it is. Pure, deterministic.
|
|
27423
|
+
*/
|
|
27424
|
+
function distinctHeader(mix, taken, ctx) {
|
|
27425
|
+
const used = new Set(taken);
|
|
27426
|
+
if (!used.has(headerTokenOf(mix)))
|
|
27427
|
+
return { mix, repairs: [] };
|
|
27428
|
+
const tries = [];
|
|
27429
|
+
for (const k of MEND_ORDER)
|
|
27430
|
+
for (const w of drawnWords(k))
|
|
27431
|
+
tries.push({ ...mix, [k]: w });
|
|
27432
|
+
for (const w of drawnWords(HeaderIngredient.Pages))
|
|
27433
|
+
for (const a of drawnWords(HeaderIngredient.Arrange))
|
|
27434
|
+
tries.push({ ...mix, pages: w, arrange: a });
|
|
27435
|
+
for (const t of tries) {
|
|
27436
|
+
const checked = checkHeader(t, ctx);
|
|
27437
|
+
if (checked.repairs.length || used.has(headerTokenOf(checked.mix)))
|
|
27438
|
+
continue;
|
|
27439
|
+
return { mix: checked.mix, repairs: [{ code: HeaderRepairCode.Worn, said: `another site wears ${headerTokenWords(headerTokenOf(mix))}: this one is ${headerTokenWords(headerTokenOf(checked.mix))}` }] };
|
|
27440
|
+
}
|
|
27441
|
+
return { mix, repairs: [] };
|
|
27442
|
+
}
|
|
27443
|
+
/** The shop's page of a selling plan: the page in the navigation that lists the store's products (else null). */
|
|
27444
|
+
function shopPageOfPlan(plan) {
|
|
27445
|
+
if (!planSells(plan))
|
|
27446
|
+
return null;
|
|
27447
|
+
const list = shopSourceAliases(plan)[ShopSourceRole.List];
|
|
27448
|
+
return plan.pages.find(p => p.inNav && list && (p.sections ?? []).some(s => s.binding === list))?.route ?? null;
|
|
27449
|
+
}
|
|
27450
|
+
/** HI3-D12: the plan's home opening as the header reads it — null when the plan names none (or one the table lacks). */
|
|
27451
|
+
function headerOpeningOfPlan(plan) {
|
|
27452
|
+
try {
|
|
27453
|
+
const mix = openingMixOfPlan(plan);
|
|
27454
|
+
return mix ? { frame: mix.frame, media: mix.media } : null;
|
|
27455
|
+
}
|
|
27456
|
+
catch (e) {
|
|
27457
|
+
if (e instanceof OpeningMixError)
|
|
27458
|
+
return null;
|
|
27459
|
+
throw e;
|
|
27460
|
+
}
|
|
27461
|
+
}
|
|
27462
|
+
/** The header context of a plan: its name, its look, its pages in the navigation, its shop page (found in the plan when
|
|
27463
|
+
* not given), its home opening, and the site's facts. */
|
|
27464
|
+
function headerContextOfPlan(plan, shop, facts = {}) {
|
|
27465
|
+
return {
|
|
27466
|
+
name: plan.business.name,
|
|
27467
|
+
design: resolveDesignChoices(JSON.parse(JSON.stringify(plan.design ?? {}))),
|
|
27468
|
+
pages: plan.pages.filter(p => p.inNav && !p.isHome && p.route !== '/').map(p => ({ name: p.name, route: p.route })),
|
|
27469
|
+
shop: shop === undefined ? shopPageOfPlan(plan) : shop,
|
|
27470
|
+
opening: headerOpeningOfPlan(plan),
|
|
27471
|
+
...(facts.never ? { never: facts.never } : {}),
|
|
27472
|
+
...(facts.readableAtRest !== undefined && facts.readableAtRest !== null ? { readableAtRest: facts.readableAtRest } : {}),
|
|
27473
|
+
};
|
|
27474
|
+
}
|
|
27475
|
+
/**
|
|
27476
|
+
* The header a plan's site WEARS (ONE rule for the composer, the fingerprint and the distinct check): its mix as the
|
|
27477
|
+
* product draws it, judged against the site when the mix was chosen (`mixes.header`) — a stored header pattern (no mix)
|
|
27478
|
+
* is worn as it always was (R-H4). With what was drawn as something else or mended, in words. Pure.
|
|
27479
|
+
*/
|
|
27480
|
+
function wornHeaderOfPlan(plan, facts = {}) {
|
|
27481
|
+
const context = headerContextOfPlan(plan, undefined, facts);
|
|
27482
|
+
const { drawn, gaps } = drawnHeaderMix(headerMixOfPlan(plan));
|
|
27483
|
+
const checked = plan.mixes?.header?.length ? checkHeader(drawn, context) : { mix: drawn, repairs: [] };
|
|
27484
|
+
const said = [...gaps.map(g => `the header's ${g.ingredient} "${g.word}" is drawn as "${g.drawnAs}" until ${g.phase}`), ...checked.repairs.map(r => r.said)];
|
|
27485
|
+
return { mix: checked.mix, context, said };
|
|
27486
|
+
}
|
|
27487
|
+
/** A plan's header made distinct (R-H2): `distinctHeader` over the plan's own mix as drawn and checked; the plan unchanged
|
|
27488
|
+
* when nothing was mended, else with the new mix in `mixes.header`. Pure. */
|
|
27489
|
+
function withDistinctHeader(plan, taken, facts = {}) {
|
|
27490
|
+
const worn = wornHeaderOfPlan(plan, facts);
|
|
27491
|
+
const done = distinctHeader(worn.mix, taken, worn.context);
|
|
27492
|
+
if (!done.repairs.length)
|
|
27493
|
+
return { plan, repairs: [] };
|
|
27494
|
+
return { plan: { ...plan, mixes: { ...(plan.mixes ?? {}), header: headerMixWords(done.mix) } }, repairs: done.repairs };
|
|
27495
|
+
}
|
|
27496
|
+
|
|
27261
27497
|
const P = SPEC_SITE_LAYOUT.popup;
|
|
27262
27498
|
/** The wire's link word (`link:<page key>`) — a page of the plan, never an ingredient of the table. */
|
|
27263
27499
|
const POPUP_LINK_WORD = P.wire.link;
|
|
@@ -27954,6 +28190,123 @@ function freeStyleWithoutSlot(type, style) {
|
|
|
27954
28190
|
return out;
|
|
27955
28191
|
}
|
|
27956
28192
|
|
|
28193
|
+
/**
|
|
28194
|
+
* WHAT THE OWNER'S PROMPT RULED OUT, AS A READY-MADE SECTION CAN BREAK IT (award plan FS-D47, R-H20). The reading keeps
|
|
28195
|
+
* the owner's refused and asked words as they wrote them (§11.4a); a ready-made section can only break the few of them
|
|
28196
|
+
* that a pattern decides by its parts — pictures, a video, motion. Those are read here, in English and Hebrew, from the
|
|
28197
|
+
* reading's own lists (never guessed from taste words), and judged against a plan section's pattern as it would be
|
|
28198
|
+
* stamped (its `without` parts left out). The fall back picks only among sections that honour them; when it cannot, the
|
|
28199
|
+
* followed line SAYS which of the owner's words the page no longer follows. Pure.
|
|
28200
|
+
*/
|
|
28201
|
+
var PromptLimit;
|
|
28202
|
+
(function (PromptLimit) {
|
|
28203
|
+
/** "no pictures", "only the names", "mostly words". */
|
|
28204
|
+
PromptLimit["NoPictures"] = "no-pictures";
|
|
28205
|
+
PromptLimit["NoVideo"] = "no-video";
|
|
28206
|
+
/** "nothing moving", "no animation". */
|
|
28207
|
+
PromptLimit["NoMotion"] = "no-motion";
|
|
28208
|
+
})(PromptLimit || (PromptLimit = {}));
|
|
28209
|
+
/** A refused entry that IS one of these words rules the thing out ("pictures"; never "stock photos", which refuses stock). */
|
|
28210
|
+
const REFUSED_WORDS = {
|
|
28211
|
+
[PromptLimit.NoPictures]: ['pictures', 'photos', 'photographs', 'images', 'תמונות', 'צילומים'],
|
|
28212
|
+
[PromptLimit.NoVideo]: ['video', 'videos', 'film', 'films', 'וידאו', 'סרטון', 'סרטונים'],
|
|
28213
|
+
[PromptLimit.NoMotion]: ['motion', 'animation', 'animations', 'movement', 'תנועה', 'אנימציה', 'אנימציות'],
|
|
28214
|
+
};
|
|
28215
|
+
/** A phrase that rules the thing out wherever the reading kept it (asked, said or refused). */
|
|
28216
|
+
const RULING_PHRASES = {
|
|
28217
|
+
[PromptLimit.NoPictures]: ['no pictures', 'no photos', 'no images', 'without pictures', 'without photos', 'mostly words', 'only words', 'just words', 'בלי תמונות', 'ללא תמונות', 'רק מילים', 'בלי צילומים'],
|
|
28218
|
+
[PromptLimit.NoVideo]: ['no video', 'no videos', 'without video', 'בלי וידאו', 'בלי סרטונים', 'ללא וידאו', 'ללא סרטונים'],
|
|
28219
|
+
[PromptLimit.NoMotion]: ['no motion', 'no animation', 'no animations', 'nothing moving', 'without motion', 'בלי תנועה', 'בלי אנימציה', 'בלי אנימציות', 'ללא תנועה'],
|
|
28220
|
+
};
|
|
28221
|
+
const plain$1 = (s) => String(s ?? '').normalize('NFKC').toLowerCase().replace(/^(any|no|בלי|ללא)\s+/, '').trim();
|
|
28222
|
+
/** What the owner's words rule out that a ready-made section could break. */
|
|
28223
|
+
function promptLimitsOf(reading) {
|
|
28224
|
+
const refused = (reading?.refused ?? []).map(plain$1);
|
|
28225
|
+
const all = [...(reading?.refused ?? []), ...(reading?.asked ?? []), ...(reading?.said ?? [])].map(s => String(s ?? ''));
|
|
28226
|
+
return Object.values(PromptLimit).filter(limit => refused.some(r => REFUSED_WORDS[limit].includes(r))
|
|
28227
|
+
|| RULING_PHRASES[limit].some(phrase => all.some(text => wordPattern(phrase).test(text.normalize('NFKC').toLowerCase()))));
|
|
28228
|
+
}
|
|
28229
|
+
const PICTURE_TYPES = ['Image', 'Gallery'];
|
|
28230
|
+
const CARD_RECIPE = 'card';
|
|
28231
|
+
const CARD_MEDIA = 'media';
|
|
28232
|
+
const IMAGE_BIND = 'image';
|
|
28233
|
+
function shows(node, without, out) {
|
|
28234
|
+
if (node.optional && without.has(node.optional))
|
|
28235
|
+
return;
|
|
28236
|
+
// a picture node, or a recipe that draws one: a card keeps its media part unless switched off, a bound image
|
|
28237
|
+
if (PICTURE_TYPES.includes(node.t) || (node.recipe === CARD_RECIPE && node.parts?.[CARD_MEDIA] !== false) || node.binds?.[IMAGE_BIND])
|
|
28238
|
+
out.add(PromptLimit.NoPictures);
|
|
28239
|
+
if (node.t === 'Video')
|
|
28240
|
+
out.add(PromptLimit.NoVideo);
|
|
28241
|
+
if (node.tracks?.length)
|
|
28242
|
+
out.add(PromptLimit.NoMotion);
|
|
28243
|
+
for (const child of node.c ?? [])
|
|
28244
|
+
shows(child, without, out);
|
|
28245
|
+
}
|
|
28246
|
+
/** The owner's limits a plan section would break, stamped as planned (an unknown pattern breaks none it can be judged on). */
|
|
28247
|
+
function sectionBreaks(section, limits) {
|
|
28248
|
+
const pattern = patternById(section.pattern);
|
|
28249
|
+
if (!pattern || !limits.length)
|
|
28250
|
+
return [];
|
|
28251
|
+
const found = new Set();
|
|
28252
|
+
if (pattern.scene || pattern.film)
|
|
28253
|
+
found.add(PromptLimit.NoMotion);
|
|
28254
|
+
shows(pattern.node, new Set(section.without ?? []), found);
|
|
28255
|
+
return limits.filter(l => found.has(l));
|
|
28256
|
+
}
|
|
28257
|
+
/** One sentence per limit broken, in the site's language: n sections are ready-made and do what the owner ruled out. */
|
|
28258
|
+
const UNFOLLOWED = {
|
|
28259
|
+
en: {
|
|
28260
|
+
[PromptLimit.NoPictures]: n => `${n === 1 ? 'One section is' : `${n} sections are`} ready-made and ${n === 1 ? 'shows' : 'show'} pictures, which you asked to leave out.`,
|
|
28261
|
+
[PromptLimit.NoVideo]: n => `${n === 1 ? 'One section is' : `${n} sections are`} ready-made and ${n === 1 ? 'plays a video' : 'play videos'}, which you asked to leave out.`,
|
|
28262
|
+
[PromptLimit.NoMotion]: n => `${n === 1 ? 'One section is' : `${n} sections are`} ready-made and ${n === 1 ? 'moves' : 'move'} as the page scrolls, which you asked to leave out.`,
|
|
28263
|
+
},
|
|
28264
|
+
he: {
|
|
28265
|
+
[PromptLimit.NoPictures]: n => `${n === 1 ? 'חלק אחד מוכן מראש ומציג' : `${n} חלקים מוכנים מראש ומציגים`} תמונות, אף שביקשת בלי תמונות.`,
|
|
28266
|
+
[PromptLimit.NoVideo]: n => `${n === 1 ? 'חלק אחד מוכן מראש ומציג סרטון' : `${n} חלקים מוכנים מראש ומציגים סרטונים`}, אף שביקשת בלי סרטונים.`,
|
|
28267
|
+
[PromptLimit.NoMotion]: n => `${n === 1 ? 'חלק אחד מוכן מראש וזז' : `${n} חלקים מוכנים מראש וזזים`} עם הגלילה, אף שביקשת בלי תנועה.`,
|
|
28268
|
+
},
|
|
28269
|
+
};
|
|
28270
|
+
/** The followed line after a fall back: the model's line, then what the page no longer follows (never a claim kept). */
|
|
28271
|
+
function followedAfter(line, broken, language) {
|
|
28272
|
+
const words = UNFOLLOWED[language === 'he' ? 'he' : 'en'];
|
|
28273
|
+
const said = Object.values(PromptLimit).filter(l => (broken.get(l) ?? 0) > 0).map(l => words[l](broken.get(l)));
|
|
28274
|
+
return [String(line ?? '').trim(), ...said].filter(Boolean).join(' ');
|
|
28275
|
+
}
|
|
28276
|
+
|
|
28277
|
+
/**
|
|
28278
|
+
* A FREE HOME OPENS ON A PICTURE WHEN ONE CAN COME (iox-ui#180, J10 lever b for FS3). The ONE offer a free page's brief
|
|
28279
|
+
* and its judge share: the owner's photos come first (they are the material already); with none, a business stock may
|
|
28280
|
+
* show is offered the picture boxes (`box:<shape>`, the laid brief's own ids, `parseLayoutPhotoId`) — an empty picture the
|
|
28281
|
+
* build fills with stock, or, when nothing fits, the type-led round opens the Home on its words like every Home. Never a
|
|
28282
|
+
* picture claim: no box where stock may not stand in for the work (`BusinessType.stock: false`), none off the Home, and
|
|
28283
|
+
* nothing against the owner's words: "no pictures" (`PromptLimit.NoPictures`) offers nothing, "no stock photos" no box. Pure.
|
|
28284
|
+
*/
|
|
28285
|
+
/** The shapes a free opening's box may take, as material ids (`box:wide` · `box:tall` · `box:square`). */
|
|
28286
|
+
const FREE_OPENING_BOXES = [LayoutPhotoShape.Wide, LayoutPhotoShape.Tall, LayoutPhotoShape.Square]
|
|
28287
|
+
.map(shape => `${LayoutPhotoSource.Box}:${shape}`);
|
|
28288
|
+
/** Words that refuse stock photos ("no stock photos", "בלי תמונות סטוק") wherever the reading kept them. */
|
|
28289
|
+
const STOCK_REFUSALS = ['stock', 'stock photos', 'stock images', 'סטוק', 'תמונות סטוק'];
|
|
28290
|
+
const STOCK_RULINGS = ['no stock', 'without stock', 'not stock', 'never stock', 'בלי סטוק', 'ללא סטוק', 'בלי תמונות סטוק', 'ללא תמונות סטוק'];
|
|
28291
|
+
/** Did the owner refuse stock photos? Read from the reading's own lists, never guessed. Pure. */
|
|
28292
|
+
function refusesStock(reading) {
|
|
28293
|
+
const plain = (t) => String(t ?? '').normalize('NFKC').toLowerCase().replace(/^(any|no|בלי|ללא)\s+/, '').trim();
|
|
28294
|
+
const all = [...(reading?.refused ?? []), ...(reading?.asked ?? []), ...(reading?.said ?? [])].map(t => String(t ?? '').normalize('NFKC').toLowerCase());
|
|
28295
|
+
return (reading?.refused ?? []).some(r => STOCK_REFUSALS.includes(plain(r))) || STOCK_RULINGS.some(phrase => all.some(text => wordPattern(phrase).test(text)));
|
|
28296
|
+
}
|
|
28297
|
+
/** What a free page's opening is offered, and whether it must open on a picture. */
|
|
28298
|
+
function freeOpeningOffer(site) {
|
|
28299
|
+
if (!site.home || promptLimitsOf(site.reading).includes(PromptLimit.NoPictures))
|
|
28300
|
+
return { boxes: [], opensOnPicture: false };
|
|
28301
|
+
if (site.ownPhotos > 0)
|
|
28302
|
+
return { boxes: [], opensOnPicture: true };
|
|
28303
|
+
return site.stockAllowed && !refusesStock(site.reading) ? { boxes: [...FREE_OPENING_BOXES], opensOnPicture: true } : { boxes: [], opensOnPicture: false };
|
|
28304
|
+
}
|
|
28305
|
+
/** Is a material id a picture box (`box:<shape>`)? */
|
|
28306
|
+
function isFreeBox(id) {
|
|
28307
|
+
return parseLayoutPhotoId(String(id ?? ''))?.source === LayoutPhotoSource.Box;
|
|
28308
|
+
}
|
|
28309
|
+
|
|
27957
28310
|
/**
|
|
27958
28311
|
* THE FREE PAGE'S JUDGE (award plan §11.4 gates 1 + 2, FS3): every reason a free page may not be stamped, path first,
|
|
27959
28312
|
* in words the model can act on in its one repair. It judges SAFETY, LAW and TRUTH — never taste (R-H18): what is the
|
|
@@ -28158,7 +28511,8 @@ function judgeFree(page, ctx, signature) {
|
|
|
28158
28511
|
const seen = new Set();
|
|
28159
28512
|
const texts = [];
|
|
28160
28513
|
let h1 = 0;
|
|
28161
|
-
|
|
28514
|
+
let boxes = 0;
|
|
28515
|
+
for (const { node, path, up, section } of walked) {
|
|
28162
28516
|
if (!Object.values(FreeNodeType).includes(node.type)) {
|
|
28163
28517
|
say(FreeIssueCode.Structure, path, `"${node.type}" is not a node type — ${Object.values(FreeNodeType).join(', ')}`);
|
|
28164
28518
|
continue;
|
|
@@ -28195,11 +28549,22 @@ function judgeFree(page, ctx, signature) {
|
|
|
28195
28549
|
if (node.role && (node.role !== FREE_LEAD_ROLE || node.type !== FreeNodeType.Heading))
|
|
28196
28550
|
say(FreeIssueCode.Structure, `${path}.role`, 'role "lead" is for the heading a visitor reads first');
|
|
28197
28551
|
if (node.type === FreeNodeType.Image || node.type === FreeNodeType.Video) {
|
|
28198
|
-
const
|
|
28552
|
+
const src = node.src ?? '';
|
|
28553
|
+
const offeredBox = isFreeBox(src) && !!ctx.boxes?.includes(src);
|
|
28554
|
+
const m = ctx.material[src] ?? (offeredBox ? { kind: 'image' } : undefined);
|
|
28199
28555
|
if (!m)
|
|
28200
|
-
say(FreeIssueCode.Content, `${path}.src`, `"${
|
|
28556
|
+
say(FreeIssueCode.Content, `${path}.src`, `"${src}" is not in the material — use an id from the list`);
|
|
28201
28557
|
else if ((node.type === FreeNodeType.Video) !== (m.kind === 'video'))
|
|
28202
28558
|
say(FreeIssueCode.Content, `${path}.src`, `"${node.src}" is a${m.kind === 'image' ? 'n image' : ' video'} — ${node.type === FreeNodeType.Video ? 'a Video plays a video' : 'an Image shows a picture'}`);
|
|
28559
|
+
else if (offeredBox) {
|
|
28560
|
+
// iox-ui#180: a box is the opening's ONE picture place, filled after the page is written — never a ground.
|
|
28561
|
+
if (section !== 0)
|
|
28562
|
+
say(FreeIssueCode.Content, `${path}.src`, 'a box is the opening\'s picture — only the first section may hold one');
|
|
28563
|
+
else if (boxes++ > 0)
|
|
28564
|
+
say(FreeIssueCode.Content, `${path}.src`, 'one box: the opening has one picture place');
|
|
28565
|
+
if (node.styleProps?.['position'] === 'absolute')
|
|
28566
|
+
say(FreeIssueCode.Content, `${path}.styleProps.position`, 'a box is never a ground: words never stand on a picture nobody has seen yet — set it beside, above or below the words');
|
|
28567
|
+
}
|
|
28203
28568
|
}
|
|
28204
28569
|
if (node.type === FreeNodeType.Slot) {
|
|
28205
28570
|
const offer = ctx.slots?.[node.slot ?? ''];
|
|
@@ -28278,6 +28643,10 @@ function judgeFree(page, ctx, signature) {
|
|
|
28278
28643
|
const hasVideos = Object.values(ctx.material).some(m => m.kind === 'video');
|
|
28279
28644
|
if (ctx.home && hasVideos && !sections.some(s => s.readyMade) && !walked.some(w => w.node.type === FreeNodeType.Video))
|
|
28280
28645
|
say(FreeIssueCode.Content, 'sections', 'this business has videos — the home page plays at least one (a Video node)');
|
|
28646
|
+
// iox-ui#180: a picture can come for this Home's opening (the owner's photo, or a box stock fills) — it opens on it.
|
|
28647
|
+
if (ctx.home && ctx.opensOnPicture && sections[0] && !ready(0) && !walkFree([sections[0]]).some(w => w.node.type === FreeNodeType.Image)) {
|
|
28648
|
+
say(FreeIssueCode.Content, 'sections[0]', `a picture can open this home page — place ${ctx.boxes?.length ? `one of the owner's photos or a box (${ctx.boxes.join(', ')})` : 'one of the owner\'s photos'} as an Image in the first section, beside, above or below its words`);
|
|
28649
|
+
}
|
|
28281
28650
|
if (!Object.values(FreePictures).includes(page?.pictures))
|
|
28282
28651
|
say(FreeIssueCode.Structure, 'pictures', `one word: ${Object.values(FreePictures).join(', ')}`);
|
|
28283
28652
|
issues.push(...followedIssues(page, ctx));
|
|
@@ -30367,13 +30736,18 @@ const isHome = (page) => page.isHome === true || page.route === '/';
|
|
|
30367
30736
|
/**
|
|
30368
30737
|
* The type-led first screen for a home page: the plan's own frame and words first, then the contract's ways
|
|
30369
30738
|
* (`typeLedOpeningWays`), the first the site carries unmended (its tier, the business name's fit) that no OTHER site of
|
|
30370
|
-
* the studio opens on — else the first it carries, said as worn.
|
|
30739
|
+
* the studio opens on — else the first it carries, said as worn. J10 lever (b): the plan's own way is tried first only
|
|
30740
|
+
* when it is a COMPOSED way — never the bare band (the contract's last way: a heading, a line and one action on a full
|
|
30741
|
+
* plain ground), which stays every site's last resort. Pure.
|
|
30371
30742
|
*/
|
|
30372
30743
|
function chooseTypeLedOpening(plan, context = {}) {
|
|
30373
30744
|
const own = openingMixOfPlan(plan);
|
|
30745
|
+
const contract = typeLedOpeningWays();
|
|
30746
|
+
const bare = contract[contract.length - 1];
|
|
30747
|
+
const isBare = (m) => m.frame === bare.frame && m.words === bare.words;
|
|
30374
30748
|
// The plan's own frame and words, on no picture (a slow zoom has nothing to move: it goes with the picture).
|
|
30375
|
-
const mine = own ? [{ ...own, media: OpeningMedia.None, extras: [...own.extras], motion: own.motion.filter(m => m !== OpeningMotion.SlowZoom) }] : [];
|
|
30376
|
-
const ways = [...mine, ...
|
|
30749
|
+
const mine = own && !isBare(own) ? [{ ...own, media: OpeningMedia.None, extras: [...own.extras], motion: own.motion.filter(m => m !== OpeningMotion.SlowZoom) }] : [];
|
|
30750
|
+
const ways = [...mine, ...contract];
|
|
30377
30751
|
const site = openingContextOf({ business: plan.business, design: plan.design, tier: context.tier ?? BASIC, badge: null, cutOut: false });
|
|
30378
30752
|
const carried = ways.map(m => drawnOpeningMix(m).drawn).filter(m => !checkOpening(m, site).repairs.length);
|
|
30379
30753
|
const worn = [...wornOpenings(context.studio ?? [])].map(openingTokenParts);
|
|
@@ -30498,6 +30872,13 @@ function typeLedRound(plan, composed, filled, context = {}) {
|
|
|
30498
30872
|
if (plated)
|
|
30499
30873
|
next = { ...next, layout: { ...page.layout, sections: laidSections } };
|
|
30500
30874
|
}
|
|
30875
|
+
// iox-ui#180: a free Home whose opening holds a picture nothing fills gives its opening back to the plan's (the
|
|
30876
|
+
// ready-made place a fall back would give) — then it opens type-led below, like every Home; the rest stays free.
|
|
30877
|
+
const opening = next.free?.sections[0];
|
|
30878
|
+
if (first && opening && !opening.readyMade && next.sections[0]) {
|
|
30879
|
+
const given = { id: opening.id, type: FreeNodeType.Section, styleProps: {}, readyMade: { at: 0, pattern: next.sections[0].pattern } };
|
|
30880
|
+
next = { ...next, free: { ...next.free, sections: [given, ...next.free.sections.slice(1)] } };
|
|
30881
|
+
}
|
|
30501
30882
|
if (first) {
|
|
30502
30883
|
firstScreen = next;
|
|
30503
30884
|
homeAt = p;
|
|
@@ -30519,7 +30900,9 @@ function typeLedRound(plan, composed, filled, context = {}) {
|
|
|
30519
30900
|
const hero = at >= 0 ? sections[at] : undefined;
|
|
30520
30901
|
const takes = !!hero && !!typeLedOpeningSection(chosen.mix, hero);
|
|
30521
30902
|
const nextPages = [...pages];
|
|
30522
|
-
|
|
30903
|
+
// A free Home's ready-made places name their plan section by its pattern — the swapped one when it was swapped.
|
|
30904
|
+
const free = home.free ? { ...home.free, sections: home.free.sections.map(s => (s.readyMade && sections[s.readyMade.at] ? { ...s, readyMade: { ...s.readyMade, pattern: sections[s.readyMade.at].pattern } } : s)) } : undefined;
|
|
30905
|
+
nextPages[homeAt] = { ...home, sections, ...(free ? { free } : {}) };
|
|
30523
30906
|
next = { ...next, pages: nextPages };
|
|
30524
30907
|
if (takes) {
|
|
30525
30908
|
const words = openingMixWords(chosen.mix);
|
|
@@ -34691,7 +35074,8 @@ function freeOptionsOf(page, plan, context, pictureless, readyMade) {
|
|
|
34691
35074
|
const locale = plan.locale ?? DEFAULT_SITE_LOCALE;
|
|
34692
35075
|
return {
|
|
34693
35076
|
owner: page.key, locale, rtl: isRtlLocale(locale), motion: layoutMotionOf(layoutPresetOf(plan.design).id),
|
|
34694
|
-
|
|
35077
|
+
// iox-ui#180: a picture box is an empty picture (the build fills it), never an address.
|
|
35078
|
+
photoSrc: id => (isFreeBox(id) ? '' : context.photoSrc?.(id) ?? ''), photoAlt: id => (isFreeBox(id) ? '' : context.photoAlt?.(id) ?? ''),
|
|
34695
35079
|
listOf: alias => pageListOf(alias, plan, pictureless),
|
|
34696
35080
|
...(readyMade ? {
|
|
34697
35081
|
readyMade: (at, id) => {
|
|
@@ -34804,8 +35188,12 @@ function composeSiteOnce(plan, context, pictureless) {
|
|
|
34804
35188
|
const pages = plan.pages.map(page => {
|
|
34805
35189
|
const nextAlias = page.routeSource ? nextSourceOf(relatives, page.routeSource) : null;
|
|
34806
35190
|
if (page.free) {
|
|
34807
|
-
// FS3: the model's own page. Its opening is its own (the plan's opening is never worn over it)
|
|
34808
|
-
|
|
35191
|
+
// FS3: the model's own page. Its opening is its own (the plan's opening is never worn over it) — but a ready-made
|
|
35192
|
+
// opening (the fall back's, or the type-led round's when nothing fills its picture, iox-ui#180) is the plan's
|
|
35193
|
+
// section, worn as every Home's is.
|
|
35194
|
+
const stamped = composeFreePlanPage(page, page.free, plan, context, placeholders, pictureless, (section, id, at) => composePattern(patternById(section.pattern), id, { ...base, owner: page.key, page, section, nextAlias }, { level: section.enter ?? design.animate ?? null, rtl, move: design.headings ?? null, scrub: design.scrub ?? null, opening: at === 0 }));
|
|
35195
|
+
const readyOpening = page.free.sections[0]?.readyMade;
|
|
35196
|
+
const nodes = readyOpening ? wearPlanOpening(page, stamped, plan, context, design, placeholders, issues, false, page.sections[readyOpening.at]) : stamped;
|
|
34809
35197
|
const opening = schemeOfFirst(nodes);
|
|
34810
35198
|
return {
|
|
34811
35199
|
key: page.key, name: page.name, route: { path: page.route }, isHome: page.isHome === true, status: STATUS_DRAFT, locale,
|
|
@@ -34868,7 +35256,10 @@ function composeSiteOnce(plan, context, pictureless) {
|
|
|
34868
35256
|
issues.push({ code: ComposeIssueCode.FooterMended, nodeId: GlobalSlot.Footer, owner: GlobalSlot.Footer, detail: r.said });
|
|
34869
35257
|
// HI1: the header is the plan's header MIX (a stored pattern id is read as one), drawn as the product draws it, checked
|
|
34870
35258
|
// against the site and arranged from the contract's header parts; each mend is said.
|
|
34871
|
-
const header = planHeader(plan
|
|
35259
|
+
const header = planHeader(plan, {
|
|
35260
|
+
...(context?.headerNever ? { never: context.headerNever } : {}),
|
|
35261
|
+
...(context?.headerReadable !== undefined ? { readableAtRest: context.headerReadable } : {}),
|
|
35262
|
+
});
|
|
34872
35263
|
for (const said of header.said)
|
|
34873
35264
|
issues.push({ code: ComposeIssueCode.HeaderMended, nodeId: GlobalSlot.Header, owner: GlobalSlot.Header, detail: said });
|
|
34874
35265
|
const patternOf = (slot) => slot === GlobalSlot.Footer
|
|
@@ -34902,6 +35293,9 @@ function composeSiteOnce(plan, context, pictureless) {
|
|
|
34902
35293
|
// AW6 (AW6-D10): a header whose ink follows the sections says so (the renderers' header ink runtime reads it).
|
|
34903
35294
|
if (headerRoot)
|
|
34904
35295
|
setHeaderInk(headerRoot, headerInkOf(header.recipe.mix[HeaderIngredient.Ink]));
|
|
35296
|
+
// HI3 (HI3-D1): what the header stands on — over the opening, glass, or its own ground — the same edit the Header section makes.
|
|
35297
|
+
if (headerRoot)
|
|
35298
|
+
setHeaderGround(headerRoot, headerGroundOf(header.recipe.mix[HeaderIngredient.Ground]));
|
|
34905
35299
|
// AW12: the footer root says the mix it was composed as (the classes iox-design.css draws from); an inset one is a card.
|
|
34906
35300
|
const footerRoot = globals.find(g => g.id === GlobalSlot.Footer);
|
|
34907
35301
|
if (footerRoot)
|
|
@@ -35137,8 +35531,8 @@ function composeLegal(plan, context, pages, globals, footerArrange, placeholders
|
|
|
35137
35531
|
}
|
|
35138
35532
|
/** A plan's header (HI1): its mix as the product draws it, checked against the site, and the recipe to stamp — with what
|
|
35139
35533
|
* was mended or drawn as something else, in words. */
|
|
35140
|
-
function planHeader(plan) {
|
|
35141
|
-
const { mix, context, said } = wornHeaderOfPlan(plan);
|
|
35534
|
+
function planHeader(plan, facts = {}) {
|
|
35535
|
+
const { mix, context, said } = wornHeaderOfPlan(plan, facts);
|
|
35142
35536
|
return { recipe: headerRecipe(mix, context), context, said };
|
|
35143
35537
|
}
|
|
35144
35538
|
/** The phone-menu options a header recipe asks for: its menu at every width and on its side (none for the defaults, so a
|
|
@@ -35228,7 +35622,8 @@ function navHeaderPlan(input) {
|
|
|
35228
35622
|
}
|
|
35229
35623
|
/** What a studio's header is judged against (`checkHeader`) — the same context `composeNavHeader` checks with. */
|
|
35230
35624
|
function navHeaderContext(input) {
|
|
35231
|
-
|
|
35625
|
+
const { opening: _plan, ...context } = headerContextOfPlan(navHeaderPlan(input), input.shop ?? null);
|
|
35626
|
+
return input.opening === undefined ? context : { ...context, opening: input.opening };
|
|
35232
35627
|
}
|
|
35233
35628
|
function composeNavHeader(input, options) {
|
|
35234
35629
|
if (!nonEmpty$1(options?.id))
|
|
@@ -35238,7 +35633,7 @@ function composeNavHeader(input, options) {
|
|
|
35238
35633
|
const email = nonEmpty$1(input.business.facts?.email) ? input.business.facts.email.trim() : null;
|
|
35239
35634
|
const issues = [];
|
|
35240
35635
|
// HI1: ONE recipe with composeSite — the mix drawn as the product draws it, checked against this studio, arranged.
|
|
35241
|
-
const context =
|
|
35636
|
+
const context = navHeaderContext(input);
|
|
35242
35637
|
const { drawn, gaps } = drawnHeaderMix(input.mix ?? headerMix());
|
|
35243
35638
|
// R-H4: the Studio header (no mix asked) composes as it always did; a chosen mix is judged against the studio.
|
|
35244
35639
|
const checked = input.mix && !input.asAsked ? checkHeader(drawn, context) : { mix: drawn, repairs: [] };
|
|
@@ -35260,6 +35655,7 @@ function composeNavHeader(input, options) {
|
|
|
35260
35655
|
setHeaderBehaviour(header, pattern.header.behaviour, pattern.header.edge ?? null);
|
|
35261
35656
|
stampHeaderMix(header, recipe.mix);
|
|
35262
35657
|
setHeaderInk(header, headerInkOf(recipe.mix[HeaderIngredient.Ink]));
|
|
35658
|
+
setHeaderGround(header, headerGroundOf(recipe.mix[HeaderIngredient.Ground]));
|
|
35263
35659
|
if (input.storeSlots)
|
|
35264
35660
|
withStoreSlots(header, input.locale ?? DEFAULT_SITE_LOCALE);
|
|
35265
35661
|
return { header, issues, mix: checked.mix, companions };
|
|
@@ -35324,6 +35720,14 @@ const OPENING_KEEPS_TYPES = new Set(['Form', 'Repeater', 'List']);
|
|
|
35324
35720
|
const SCENE_ROLE = 'scene';
|
|
35325
35721
|
/** May the opening take the place of this first section? It must hold a heading (the opening's title is its words) and
|
|
35326
35722
|
* nothing the opening has no part for — a form, bound content, a Scene stay and the opening comes before them. */
|
|
35723
|
+
/** The named opening a first section's pattern stands for (`namedOpeningMix`), when the ONE judge would mend it for this
|
|
35724
|
+
* build — else null: the pattern stays as it is composed. */
|
|
35725
|
+
function openingTheJudgeMends(root, source, ctx) {
|
|
35726
|
+
if (!source || root.composed?.pattern !== source.pattern)
|
|
35727
|
+
return null;
|
|
35728
|
+
const named = namedOpeningMix(source.pattern);
|
|
35729
|
+
return named && checkOpening(named, ctx).repairs.length ? named : null;
|
|
35730
|
+
}
|
|
35327
35731
|
function openingMayReplace(root) {
|
|
35328
35732
|
let heading = false;
|
|
35329
35733
|
let keeps = false;
|
|
@@ -35356,14 +35760,20 @@ function shownWords(root) {
|
|
|
35356
35760
|
* opening mix, is returned as it was. Mutates `placeholders` / `issues` like the composer; pure otherwise.
|
|
35357
35761
|
*/
|
|
35358
35762
|
function wearPlanOpening(page, layout, plan, context, design, placeholders, issues, keep, source) {
|
|
35359
|
-
|
|
35360
|
-
if (!mix || !(page.isHome === true || page.route === HOME_PATH))
|
|
35763
|
+
if (!(page.isHome === true || page.route === HOME_PATH))
|
|
35361
35764
|
return layout;
|
|
35362
35765
|
const first = layout[0];
|
|
35363
35766
|
const replace = !!first && !keep && openingMayReplace(first);
|
|
35364
|
-
const id = replace ? first.id : `${page.key}-opening`;
|
|
35365
35767
|
const tier = context.tier ?? GenerationTier.Basic;
|
|
35366
|
-
|
|
35768
|
+
// J10 lever (b): a build never holds the owner's clip for the opening (their film plays in a Scene, SC6b) — a film
|
|
35769
|
+
// opening is drawn as a picture the owner's photo, a made picture or stock can fill (`checkOpening`, said).
|
|
35770
|
+
const site = { pages: plan.pages.map(p => ({ name: p.name, route: p.route, isHome: p.isHome === true })), locale: plan.locale, design, badge: null, cutOut: false, film: false, tier };
|
|
35771
|
+
// iox-ui#180: with no opening chosen, a first section that IS a named opening (`hero.full-bleed-media` = a film) is
|
|
35772
|
+
// judged as that opening — when the judge mends it (no clip: a picture) it is worn mended; else it stays as it is.
|
|
35773
|
+
const mix = openingMixOfPlan(plan) ?? (replace ? openingTheJudgeMends(first, source, openingContextOf({ ...site, business: plan.business })) : null);
|
|
35774
|
+
if (!mix)
|
|
35775
|
+
return layout;
|
|
35776
|
+
const id = replace ? first.id : `${page.key}-opening`;
|
|
35367
35777
|
// #129: a type-led first screen takes the type-led hero's words slot by slot (nothing it said is lost); the name is
|
|
35368
35778
|
// the business's, as every display-size opening's is.
|
|
35369
35779
|
const checked = replace && source ? checkOpening(drawnOpeningMix(mix).drawn, openingContextOf({ ...site, business: plan.business })).mix : null;
|
|
@@ -35442,6 +35852,7 @@ function openingContextOf(input) {
|
|
|
35442
35852
|
design: resolveDesignChoices(JSON.parse(JSON.stringify(input.design ?? {}))),
|
|
35443
35853
|
...(input.tier ? { tier: input.tier } : {}),
|
|
35444
35854
|
...(input.cutOut !== undefined ? { cutOut: input.cutOut } : {}),
|
|
35855
|
+
...(input.film !== undefined ? { film: input.film } : {}),
|
|
35445
35856
|
...(input.badge !== undefined ? { badge: input.badge } : {}),
|
|
35446
35857
|
};
|
|
35447
35858
|
}
|
|
@@ -35533,6 +35944,47 @@ function fillContactFacts(nodes, placeholders, facts, locale) {
|
|
|
35533
35944
|
return (Array.isArray(nodes) ? nodes : []).map(fill);
|
|
35534
35945
|
}
|
|
35535
35946
|
|
|
35947
|
+
/**
|
|
35948
|
+
* WHICH SAMPLE ITEMS ARE THE PLAN'S OWN, AND WHICH ARE NUMBERED PLACEHOLDERS (vectoriox/iox-ui#178). A generated site
|
|
35949
|
+
* showed "Piece 2", "Product 2", "Room 2": the sample items of a content type whose plan gave no words for each item
|
|
35950
|
+
* (the business's own products, rooms, team — neutral by `SAMPLE_CONTENT_RULE`, Doron 2026-11-01), every title its seed
|
|
35951
|
+
* template (`"Product {n}"`) with the number filled in. Doron, 2026-11-28 — GHOST CARDS: those items stay in the data and
|
|
35952
|
+
* every page and section stays; the builder draws such a row as an owner prompt ("Add your first room"), the live site
|
|
35953
|
+
* never shows a list made only of them, and the Publishable gate ASKS about one still titled like a placeholder.
|
|
35954
|
+
*
|
|
35955
|
+
* This file is the reading both halves share: which items the PLAN fills (the composer, the proof) and how a stored item
|
|
35956
|
+
* is recognised as a numbered placeholder (the gate, the renderers). Pure.
|
|
35957
|
+
*/
|
|
35958
|
+
/** The rule is about a plan the model wrote — a template's samples are its structure, an import's items are real. */
|
|
35959
|
+
function itemFillApplies(plan) {
|
|
35960
|
+
return plan.source?.kind === SitePlanSourceKind.Ai;
|
|
35961
|
+
}
|
|
35962
|
+
const TEMPLATE_NUMBER = /\{n\}/;
|
|
35963
|
+
/** Whether the plan gives item `n` (1-based) of `type` its own title: a real item, or a sample with its own words. */
|
|
35964
|
+
function isFilledItem(type, n) {
|
|
35965
|
+
const seed = type.seed;
|
|
35966
|
+
if (!seed || n < 1 || n > seed.count)
|
|
35967
|
+
return false;
|
|
35968
|
+
if (!seed.sample)
|
|
35969
|
+
return true;
|
|
35970
|
+
const own = seed.perItem?.[type.roles.title]?.[n - 1];
|
|
35971
|
+
return typeof own === 'string' && own.trim() !== '' && !TEMPLATE_NUMBER.test(own);
|
|
35972
|
+
}
|
|
35973
|
+
/** The numbers (1-based) of the items of `type` the plan fills. */
|
|
35974
|
+
function filledItemNumbers(type) {
|
|
35975
|
+
const out = [];
|
|
35976
|
+
for (let n = 1; n <= (type.seed?.count ?? 0); n++)
|
|
35977
|
+
if (isFilledItem(type, n))
|
|
35978
|
+
out.push(n);
|
|
35979
|
+
return out;
|
|
35980
|
+
}
|
|
35981
|
+
/** The content types of an AI plan whose samples are all numbered placeholders — the lists that start as ghost cards. */
|
|
35982
|
+
function placeholderContentTypes(plan) {
|
|
35983
|
+
if (!itemFillApplies(plan))
|
|
35984
|
+
return new Set();
|
|
35985
|
+
return new Set(plan.contentTypes.filter(t => t.seed?.sample && t.seed.count > 0 && !filledItemNumbers(t).length).map(t => t.name));
|
|
35986
|
+
}
|
|
35987
|
+
|
|
35536
35988
|
/**
|
|
35537
35989
|
* What each page of a plan shows and where its data comes from (AI plan rev 3 §3d, `describePlanData`) — the
|
|
35538
35990
|
* Plan step's data lines, in the vocabulary the builder already uses. Pure and STRUCTURED: the screen words
|
|
@@ -38947,6 +39399,11 @@ const SITE_FINDING_WORDS = {
|
|
|
38947
39399
|
many: S('{n} sample items — replace them with yours or remove them.', '{n} פריטים לדוגמה — החליפו אותם בשלכם או הסירו אותם.'),
|
|
38948
39400
|
group: FindingGrouping.Site,
|
|
38949
39401
|
},
|
|
39402
|
+
'placeholder-title': {
|
|
39403
|
+
one: S('"{name}" is still a numbered placeholder — give it its own name, or remove it.', '"{name}" עדיין שם זמני ממוספר — תנו לו שם משלכם, או הסירו אותו.'),
|
|
39404
|
+
many: S('{n} items are still numbered placeholders — give each its own name, or remove them.', '{n} פריטים עדיין בשמות זמניים ממוספרים — תנו לכל אחד שם משלכם, או הסירו אותם.'),
|
|
39405
|
+
group: FindingGrouping.Site,
|
|
39406
|
+
},
|
|
38950
39407
|
// Each sample product is fixed on its own page (the screen links to it), so they are never one row.
|
|
38951
39408
|
'sample-price': {
|
|
38952
39409
|
one: S('"{name}" has no price yet — set yours, or remove the sample.', 'ל-"{name}" עדיין אין מחיר — קבעו מחיר או הסירו את הדוגמה.'),
|
|
@@ -39197,6 +39654,10 @@ var SiteFindingCode;
|
|
|
39197
39654
|
SiteFindingCode["ContactMissing"] = "contact-missing";
|
|
39198
39655
|
SiteFindingCode["CopyPlaceholder"] = "copy-placeholder";
|
|
39199
39656
|
SiteFindingCode["SampleItems"] = "sample-items";
|
|
39657
|
+
/** iox-ui#178: a sample item still titled like a numbered placeholder ("Product 2", "Room 2") — the builder draws it as
|
|
39658
|
+
* a ghost card and the live site never lists it alone, but it is the owner's to name or remove. Asks ("Publish
|
|
39659
|
+
* anyway", Doron 2026-11-28) — said instead of SampleItems (`isNumberedPlaceholderTitle`). */
|
|
39660
|
+
SiteFindingCode["PlaceholderTitle"] = "placeholder-title";
|
|
39200
39661
|
/** Commerce G1 (shop-aware §3i): a sample product the build added still has no price — a price is a fact a buyer is
|
|
39201
39662
|
* held to, so the owner sets it (or removes the sample) before the store goes live. */
|
|
39202
39663
|
SiteFindingCode["SamplePrice"] = "sample-price";
|
|
@@ -39264,6 +39725,7 @@ const FINDING_SEVERITY = {
|
|
|
39264
39725
|
[SiteFindingCode.ContactMissing]: CheckSeverity.Warn,
|
|
39265
39726
|
[SiteFindingCode.CopyPlaceholder]: CheckSeverity.Ask,
|
|
39266
39727
|
[SiteFindingCode.SampleItems]: CheckSeverity.Ask,
|
|
39728
|
+
[SiteFindingCode.PlaceholderTitle]: CheckSeverity.Ask,
|
|
39267
39729
|
[SiteFindingCode.SamplePrice]: CheckSeverity.Block,
|
|
39268
39730
|
[SiteFindingCode.SampleStock]: CheckSeverity.Block,
|
|
39269
39731
|
[SiteFindingCode.StoreFact]: CheckSeverity.Block,
|
|
@@ -39303,6 +39765,7 @@ const CHECK_OF = {
|
|
|
39303
39765
|
[SiteFindingCode.ContactMissing]: SiteCheckId.Facts,
|
|
39304
39766
|
[SiteFindingCode.CopyPlaceholder]: SiteCheckId.Facts,
|
|
39305
39767
|
[SiteFindingCode.SampleItems]: SiteCheckId.Facts,
|
|
39768
|
+
[SiteFindingCode.PlaceholderTitle]: SiteCheckId.Facts,
|
|
39306
39769
|
[SiteFindingCode.SamplePrice]: SiteCheckId.Facts,
|
|
39307
39770
|
[SiteFindingCode.SampleStock]: SiteCheckId.Facts,
|
|
39308
39771
|
[SiteFindingCode.StoreFact]: SiteCheckId.Facts,
|
|
@@ -39533,8 +39996,9 @@ function checkFacts(ctx, snapshot, pages, personal) {
|
|
|
39533
39996
|
else if (p.kind === PlaceholderKind.Copy)
|
|
39534
39997
|
add(ctx, SiteFindingCode.CopyPlaceholder, null, where);
|
|
39535
39998
|
}
|
|
39536
|
-
for (const s of snapshot.samples ?? [])
|
|
39537
|
-
add(ctx, SiteFindingCode.SampleItems, { name: s.label ?? s.id }, { nodeId: s.id });
|
|
39999
|
+
for (const s of snapshot.samples ?? []) {
|
|
40000
|
+
add(ctx, isNumberedPlaceholderTitle(s.label) ? SiteFindingCode.PlaceholderTitle : SiteFindingCode.SampleItems, { name: s.label ?? s.id }, { nodeId: s.id });
|
|
40001
|
+
}
|
|
39538
40002
|
// iox-cms#98: what the shop lacks holds only the pages that show the shop — never the Home of a site that also sells.
|
|
39539
40003
|
const shopShown = pages.some(pageShowsShop);
|
|
39540
40004
|
for (const s of shopShown ? snapshot.unpricedSamples ?? [] : [])
|
|
@@ -40060,16 +40524,19 @@ const STOCK_NEVER_WORDS = new Set([
|
|
|
40060
40524
|
'cocaine', 'abandoned', 'derelict', 'ruin', 'decay', 'decayed', 'dilapidated', 'demolition', 'rotten', 'trash',
|
|
40061
40525
|
'garbage', 'rubbish', 'dirty', 'homeless', 'riot', 'caricature', 'cartoon', 'figurine', 'clipart', 'illustration', 'vector',
|
|
40062
40526
|
'meme', 'joke', 'funny', 'humor', 'humour', 'halloween', 'horror', 'creepy', 'zombie',
|
|
40527
|
+
// iox-ui#175: a state's emblem says the business speaks for a state (the Pro law firm's "imperial eagle").
|
|
40528
|
+
'emblem', 'imperial',
|
|
40063
40529
|
].map(stockWord));
|
|
40064
40530
|
/** Phrases that say the same where no one word does ("lost places" — the photography of abandoned buildings). */
|
|
40065
|
-
const STOCK_NEVER_PHRASES = ['lost place', 'lost places', 'tax evasion', 'urban exploration', 'urbex'];
|
|
40531
|
+
const STOCK_NEVER_PHRASES = ['lost place', 'lost places', 'tax evasion', 'urban exploration', 'urbex', 'coat of arms'];
|
|
40066
40532
|
/**
|
|
40067
40533
|
* Per business type (harness-core id), what a trade people trust with their rights, money or health never shows on its
|
|
40068
40534
|
* site: a law firm no debt or bankruptcy, a clinic no sickness, a needle or a hospital. Never a word the trade itself
|
|
40069
40535
|
* sells by (an accountant's tax, a lawyer's court) — the universal list already keeps the joke about it out.
|
|
40070
40536
|
*/
|
|
40071
40537
|
const STOCK_TRADE_NEVER_WORDS = {
|
|
40072
|
-
|
|
40538
|
+
// iox-ui#175: another country's law ("The basic law, germany") is not the law this firm practises.
|
|
40539
|
+
'law-accounting': ['debt', 'bankruptcy', 'bankrupt', 'guilty', 'crisis', 'stress', 'eviction', 'divorce', 'germany', 'german', 'constitution'],
|
|
40073
40540
|
consultant: ['debt', 'bankruptcy', 'bankrupt', 'crisis', 'stress'],
|
|
40074
40541
|
coach: ['crisis', 'stress', 'depression', 'sad', 'lonely'],
|
|
40075
40542
|
therapist: ['depression', 'sad', 'lonely', 'suicide', 'crying', 'tear', 'anxiety', 'stress'],
|
|
@@ -40077,8 +40544,58 @@ const STOCK_TRADE_NEVER_WORDS = {
|
|
|
40077
40544
|
dental: ['pain', 'toothache', 'decay', 'cavity', 'syringe', 'needle', 'injection', 'surgery', 'drill', 'blood'],
|
|
40078
40545
|
vet: ['sick', 'injured', 'pain', 'syringe', 'needle', 'injection', 'surgery', 'stray', 'cage'],
|
|
40079
40546
|
};
|
|
40547
|
+
/**
|
|
40548
|
+
* iox-ui#175 — per business type (harness-core id), the words a stock photo of that trade is tagged with when it does not
|
|
40549
|
+
* say the trade's own name: a hairdresser, a manicure, a barbershop are a salon's; a gavel, a contract, a notary a law
|
|
40550
|
+
* firm's. With the type's label, keywords and imagery they are its VOCABULARY (`stockFitFor`) — what a photo must name to
|
|
40551
|
+
* show the business. Every type that may show stock has a row (spec). English only (the provider's tags), compared as
|
|
40552
|
+
* `stockWord`s, and a word of four letters or more counts in its longer forms (`hair` → `hairdressing`).
|
|
40553
|
+
*/
|
|
40554
|
+
const STOCK_TRADE_WORDS = {
|
|
40555
|
+
spa: ['sauna', 'towel', 'aromatherapy', 'relaxation', 'relax', 'treatment', 'jacuzzi', 'hammam', 'pool', 'stones'],
|
|
40556
|
+
salon: ['hairdresser', 'barber', 'barbershop', 'manicure', 'manicurist', 'pedicure', 'fingernail', 'beautician', 'cosmetic', 'cosmetics', 'makeup', 'lash', 'eyelash', 'shampoo', 'scissors', 'comb', 'polish'],
|
|
40557
|
+
yoga: ['mat', 'asana', 'lotus', 'pose', 'stretching', 'zen', 'mindfulness'],
|
|
40558
|
+
fitness: ['workout', 'exercise', 'dumbbell', 'barbell', 'kettlebell', 'treadmill', 'weights', 'sport', 'athlete'],
|
|
40559
|
+
therapist: ['couch', 'armchair', 'counseling', 'counselling', 'psychotherapy', 'mindfulness'],
|
|
40560
|
+
clinic: ['health', 'healthcare', 'medicine', 'stethoscope', 'rehabilitation', 'wellbeing'],
|
|
40561
|
+
dental: ['tooth', 'teeth', 'dentistry', 'toothbrush', 'orthodontic', 'braces', 'smile'],
|
|
40562
|
+
vet: ['cat', 'puppy', 'kitten', 'veterinarian', 'paw', 'animal'],
|
|
40563
|
+
restaurant: ['dining', 'dinner', 'dish', 'meal', 'plate', 'cuisine', 'cooking', 'gourmet', 'table'],
|
|
40564
|
+
'cafe-bakery': ['espresso', 'cappuccino', 'latte', 'barista', 'croissant', 'pastry', 'cake', 'bread', 'muffin', 'dessert', 'breakfast', 'brunch', 'cookie'],
|
|
40565
|
+
'bar-winery': ['beer', 'whiskey', 'whisky', 'vineyard', 'grape', 'barrel', 'pub', 'bartender', 'glass'],
|
|
40566
|
+
boutique: ['dress', 'apparel', 'garment', 'outfit', 'shoe', 'handbag', 'textile', 'wardrobe'],
|
|
40567
|
+
florist: ['rose', 'tulip', 'blossom', 'floral', 'peony', 'orchid', 'succulent', 'greenery', 'vase'],
|
|
40568
|
+
'home-goods': ['sofa', 'chair', 'table', 'lamp', 'interior', 'cushion', 'armchair', 'shelf', 'vase'],
|
|
40569
|
+
consultant: ['meeting', 'business', 'planning', 'presentation', 'chart', 'office', 'desk', 'teamwork'],
|
|
40570
|
+
coach: ['meeting', 'conversation', 'notebook', 'goal', 'growth', 'motivation'],
|
|
40571
|
+
'law-accounting': ['justice', 'court', 'judge', 'gavel', 'contract', 'notary', 'tax', 'finance', 'paperwork', 'document', 'signature', 'desk', 'agreement'],
|
|
40572
|
+
nonprofit: ['donation', 'solidarity', 'fundraising', 'charity'],
|
|
40573
|
+
'venue-events': ['banquet', 'ballroom', 'celebration', 'reception', 'ceremony', 'catering', 'party'],
|
|
40574
|
+
'hotel-bnb': ['bedroom', 'bed', 'suite', 'resort', 'hospitality', 'lobby', 'pillow', 'accommodation', 'villa', 'inn', 'hostel'],
|
|
40575
|
+
classes: ['classroom', 'education', 'learning', 'student', 'study', 'piano', 'guitar', 'blackboard'],
|
|
40576
|
+
};
|
|
40577
|
+
/**
|
|
40578
|
+
* iox-ui#175 — words that name a KIND of business by its place (compared as `stockWord`s). For a type whose vocabulary
|
|
40579
|
+
* does not hold one, it is another trade: never the query's subject word (Pixabay answers "law boutique" with a clothes
|
|
40580
|
+
* shop) and never a word that vouches for a photo.
|
|
40581
|
+
*/
|
|
40582
|
+
const STOCK_TRADE_PLACE_WORDS = new Set([
|
|
40583
|
+
'salon', 'shop', 'store', 'boutique', 'restaurant', 'cafe', 'bar', 'pub', 'bistro', 'bakery', 'cellar', 'winery', 'brewery',
|
|
40584
|
+
'gym', 'clinic', 'spa', 'sauna', 'hotel', 'studio', 'workshop', 'market', 'vineyard', 'barbershop', 'office',
|
|
40585
|
+
].map(stockWord));
|
|
40586
|
+
/** Words of an imagery line that say how a picture is TAKEN or who gives it, never what it shows ("Real people (with
|
|
40587
|
+
* permission)", "never stock", "on plain grounds") — left out of the vocabulary (iox-ui#175). */
|
|
40588
|
+
const IMAGERY_NOISE = new Set([
|
|
40589
|
+
'real', 'people', 'permission', 'needed', 'stock', 'plain', 'ground', 'close', 'treat', 'help', 'working', 'before', 'after',
|
|
40590
|
+
'face', 'own', 'never', 'large', 'uncropped', 'clean', 'healed', 'true', 'flat', 'natural', 'light', 'daylight', 'calm',
|
|
40591
|
+
'portrait', 'good', 'piece', 'wearing', 'need',
|
|
40592
|
+
].map(stockWord));
|
|
40080
40593
|
/** An opening's unreviewed photo names the business this many times (distinct words of the type's vocabulary). */
|
|
40081
40594
|
const STOCK_OPENING_TYPE_WORDS = 2;
|
|
40595
|
+
/** iox-ui#175: every other place's unreviewed photo names it at least this many times. */
|
|
40596
|
+
const STOCK_PLACE_TYPE_WORDS = 1;
|
|
40597
|
+
/** A vocabulary word this long counts in its longer forms (`hair` → `hairdresser`); a shorter one only whole (`law`). */
|
|
40598
|
+
const STEM_MIN = 4;
|
|
40082
40599
|
/** The intents an opening stands as — wide places the visitor reads as "this is the business". */
|
|
40083
40600
|
const OPENING_INTENTS = new Set([StockIntent.Atmosphere]);
|
|
40084
40601
|
/** The roles that make a content type a list of people: someone's words, or who said or made it. */
|
|
@@ -40100,7 +40617,7 @@ const CAMEL = /([a-z0-9])([A-Z])/g;
|
|
|
40100
40617
|
const LATIN_KEYWORD = /^[a-z]+( [a-z]+)?$/;
|
|
40101
40618
|
const DIACRITICS = /\p{M}+/gu;
|
|
40102
40619
|
/** A word as a query carries it: lower case, accents gone (`café` → `cafe`). */
|
|
40103
|
-
const plain
|
|
40620
|
+
const plain = (text) => text.normalize('NFD').replace(DIACRITICS, '').toLowerCase().trim();
|
|
40104
40621
|
/** A code name's words: `teamMember` → `team member`, `gallery-photo` → `gallery photo`. */
|
|
40105
40622
|
const nameWords = (name) => (typeof name === 'string' ? name.replace(CAMEL, '$1 $2').replace(/[-_]+/g, ' ') : '');
|
|
40106
40623
|
/**
|
|
@@ -40130,8 +40647,8 @@ function stockMayFill(target) {
|
|
|
40130
40647
|
* `gym` for "Trainer, gym or dance", `consultant` (never the stem `consult`) — else its first Latin keyword, else none.
|
|
40131
40648
|
*/
|
|
40132
40649
|
function stockSearchTerm(type) {
|
|
40133
|
-
const latin = (type.match ?? []).map(plain
|
|
40134
|
-
const label = ` ${plain
|
|
40650
|
+
const latin = (type.match ?? []).map(plain).filter(k => LATIN_KEYWORD.test(k));
|
|
40651
|
+
const label = ` ${plain(type.label).replace(/[^a-z]+/g, ' ')} `;
|
|
40135
40652
|
return latin.find(k => label.includes(` ${k} `)) ?? latin[0] ?? null;
|
|
40136
40653
|
}
|
|
40137
40654
|
/** Per subject, its vocabulary as compared (`stockWord`) → as asked (the vocabulary's own spelling). */
|
|
@@ -40142,7 +40659,9 @@ const SUBJECT_VOCABULARY = new Map(Object.values(StockSubject).map(subject => [s
|
|
|
40142
40659
|
* its best subject first. None: the base query.
|
|
40143
40660
|
*/
|
|
40144
40661
|
function stockSearchFocus(slot, type, term) {
|
|
40145
|
-
|
|
40662
|
+
// iox-ui#175: another trade's place word is never the subject ("Boutique law firm" → never "law boutique").
|
|
40663
|
+
const vocabulary = 'label' in type ? stockFitFor(type).vocabulary : new Set();
|
|
40664
|
+
const words = [...(slot.kind === 'item' ? slot.subject ?? [] : []), ...slot.words, ...stockWords(type.imagery)].filter(w => !foreignTrade(w, vocabulary));
|
|
40146
40665
|
const asked = new Set(term.split(' ').map(stockWord));
|
|
40147
40666
|
for (const subject of STOCK_INTENT_SUBJECTS[slot.intent] ?? []) {
|
|
40148
40667
|
const vocabulary = SUBJECT_VOCABULARY.get(subject);
|
|
@@ -40166,22 +40685,36 @@ const STOCK_FIT_ANY = { never: STOCK_NEVER_WORDS, vocabulary: new Set() };
|
|
|
40166
40685
|
function stockFitFor(type) {
|
|
40167
40686
|
if (!type)
|
|
40168
40687
|
return STOCK_FIT_ANY;
|
|
40169
|
-
const
|
|
40170
|
-
const
|
|
40688
|
+
const fears = (type.id ? STOCK_TRADE_NEVER_WORDS[type.id] : undefined) ?? [];
|
|
40689
|
+
const tagged = (type.id ? STOCK_TRADE_WORDS[type.id] : undefined) ?? [];
|
|
40690
|
+
const latin = (type.match ?? []).map(plain).filter(k => LATIN_KEYWORD.test(k));
|
|
40171
40691
|
return {
|
|
40172
|
-
never: new Set([...STOCK_NEVER_WORDS, ...
|
|
40173
|
-
vocabulary: new Set(stockWords(type.label, ...latin, type.imagery)),
|
|
40692
|
+
never: new Set([...STOCK_NEVER_WORDS, ...fears.map(stockWord)]),
|
|
40693
|
+
vocabulary: new Set([...stockWords(type.label, ...latin, ...tagged), ...stockWords(type.imagery).filter(w => !IMAGERY_NOISE.has(w))]),
|
|
40174
40694
|
};
|
|
40175
40695
|
}
|
|
40696
|
+
/** Does `word` name one of `words` — whole, or in a longer form of a word of `STEM_MIN` letters or more? */
|
|
40697
|
+
function namesOneOf(word, words) {
|
|
40698
|
+
if (words.has(word))
|
|
40699
|
+
return true;
|
|
40700
|
+
for (const w of words)
|
|
40701
|
+
if (w.length >= STEM_MIN && word.length > w.length && word.startsWith(w))
|
|
40702
|
+
return true;
|
|
40703
|
+
return false;
|
|
40704
|
+
}
|
|
40705
|
+
/** A word that names another trade's place, for a type whose vocabulary is `vocabulary`. */
|
|
40706
|
+
const foreignTrade = (word, vocabulary) => STOCK_TRADE_PLACE_WORDS.has(word) && !namesOneOf(word, vocabulary);
|
|
40176
40707
|
/** A photo's tags (else its alt, split at commas) and the reviewer's notes, each as plain words between spaces. */
|
|
40177
40708
|
function photoPhrases(photo) {
|
|
40178
40709
|
const tags = photo.tags?.length ? photo.tags : String(photo.alt ?? '').split(',');
|
|
40179
|
-
return [...tags, photo.review?.notes ?? ''].map(t => ` ${plain
|
|
40710
|
+
return [...tags, photo.review?.notes ?? ''].map(t => ` ${plain(String(t ?? '')).replace(/[^\p{L}\p{N}]+/gu, ' ').trim()} `);
|
|
40180
40711
|
}
|
|
40181
40712
|
/**
|
|
40182
|
-
* Whether a photo may stand in a place on a site held to `fit`: none of its words is a never-word or phrase, and
|
|
40183
|
-
*
|
|
40184
|
-
*
|
|
40713
|
+
* Whether a photo may stand in a place on a site held to `fit`: none of its words is a never-word or phrase, and a photo no
|
|
40714
|
+
* operator approved SHOWS THE BUSINESS — it names the type's vocabulary `STOCK_OPENING_TYPE_WORDS` times in an opening and
|
|
40715
|
+
* `STOCK_PLACE_TYPE_WORDS` times anywhere else (iox-ui#175); an item's own name counts as the business's there (a
|
|
40716
|
+
* "Bridal makeup" service, a makeup photo). Another trade's place word never counts. An approved library photo was seen for
|
|
40717
|
+
* its type and needs no word. No type known (`STOCK_FIT_ANY`): the never-words only.
|
|
40185
40718
|
*/
|
|
40186
40719
|
function stockPhotoFits(photo, slot, fit = STOCK_FIT_ANY) {
|
|
40187
40720
|
const words = stockPhotoWords(photo);
|
|
@@ -40190,9 +40723,14 @@ function stockPhotoFits(photo, slot, fit = STOCK_FIT_ANY) {
|
|
|
40190
40723
|
const phrases = photoPhrases(photo);
|
|
40191
40724
|
if (STOCK_NEVER_PHRASES.some(phrase => phrases.some(p => p.includes(` ${phrase} `))))
|
|
40192
40725
|
return false;
|
|
40193
|
-
if (
|
|
40726
|
+
if (photo.review?.verdict === StockReviewVerdict.Approved || !fit.vocabulary.size)
|
|
40194
40727
|
return true;
|
|
40195
|
-
return words
|
|
40728
|
+
return businessWordsOf(words, slot, fit) >= (OPENING_INTENTS.has(slot.intent) ? STOCK_OPENING_TYPE_WORDS : STOCK_PLACE_TYPE_WORDS);
|
|
40729
|
+
}
|
|
40730
|
+
/** How many distinct words of a photo name the business (the opening: its vocabulary; elsewhere an item's name too). */
|
|
40731
|
+
function businessWordsOf(words, slot, fit) {
|
|
40732
|
+
const own = OPENING_INTENTS.has(slot.intent) ? null : new Set((slot.subject ?? []).filter(w => !foreignTrade(w, fit.vocabulary)));
|
|
40733
|
+
return words.filter(w => !foreignTrade(w, fit.vocabulary) && (namesOneOf(w, fit.vocabulary) || (!!own && own.has(w)))).length;
|
|
40196
40734
|
}
|
|
40197
40735
|
const intentRank$2 = (intent) => STOCK_INTENT_ORDER.indexOf(intent);
|
|
40198
40736
|
/**
|
|
@@ -41181,90 +41719,6 @@ function fallBackBySection(page, plan, issues, judge, options = {}) {
|
|
|
41181
41719
|
return last(reason, judged.issues, judged.page);
|
|
41182
41720
|
}
|
|
41183
41721
|
|
|
41184
|
-
/**
|
|
41185
|
-
* WHAT THE OWNER'S PROMPT RULED OUT, AS A READY-MADE SECTION CAN BREAK IT (award plan FS-D47, R-H20). The reading keeps
|
|
41186
|
-
* the owner's refused and asked words as they wrote them (§11.4a); a ready-made section can only break the few of them
|
|
41187
|
-
* that a pattern decides by its parts — pictures, a video, motion. Those are read here, in English and Hebrew, from the
|
|
41188
|
-
* reading's own lists (never guessed from taste words), and judged against a plan section's pattern as it would be
|
|
41189
|
-
* stamped (its `without` parts left out). The fall back picks only among sections that honour them; when it cannot, the
|
|
41190
|
-
* followed line SAYS which of the owner's words the page no longer follows. Pure.
|
|
41191
|
-
*/
|
|
41192
|
-
var PromptLimit;
|
|
41193
|
-
(function (PromptLimit) {
|
|
41194
|
-
/** "no pictures", "only the names", "mostly words". */
|
|
41195
|
-
PromptLimit["NoPictures"] = "no-pictures";
|
|
41196
|
-
PromptLimit["NoVideo"] = "no-video";
|
|
41197
|
-
/** "nothing moving", "no animation". */
|
|
41198
|
-
PromptLimit["NoMotion"] = "no-motion";
|
|
41199
|
-
})(PromptLimit || (PromptLimit = {}));
|
|
41200
|
-
/** A refused entry that IS one of these words rules the thing out ("pictures"; never "stock photos", which refuses stock). */
|
|
41201
|
-
const REFUSED_WORDS = {
|
|
41202
|
-
[PromptLimit.NoPictures]: ['pictures', 'photos', 'photographs', 'images', 'תמונות', 'צילומים'],
|
|
41203
|
-
[PromptLimit.NoVideo]: ['video', 'videos', 'film', 'films', 'וידאו', 'סרטון', 'סרטונים'],
|
|
41204
|
-
[PromptLimit.NoMotion]: ['motion', 'animation', 'animations', 'movement', 'תנועה', 'אנימציה', 'אנימציות'],
|
|
41205
|
-
};
|
|
41206
|
-
/** A phrase that rules the thing out wherever the reading kept it (asked, said or refused). */
|
|
41207
|
-
const RULING_PHRASES = {
|
|
41208
|
-
[PromptLimit.NoPictures]: ['no pictures', 'no photos', 'no images', 'without pictures', 'without photos', 'mostly words', 'only words', 'just words', 'בלי תמונות', 'ללא תמונות', 'רק מילים', 'בלי צילומים'],
|
|
41209
|
-
[PromptLimit.NoVideo]: ['no video', 'no videos', 'without video', 'בלי וידאו', 'בלי סרטונים', 'ללא וידאו', 'ללא סרטונים'],
|
|
41210
|
-
[PromptLimit.NoMotion]: ['no motion', 'no animation', 'no animations', 'nothing moving', 'without motion', 'בלי תנועה', 'בלי אנימציה', 'בלי אנימציות', 'ללא תנועה'],
|
|
41211
|
-
};
|
|
41212
|
-
const plain = (s) => String(s ?? '').normalize('NFKC').toLowerCase().replace(/^(any|no|בלי|ללא)\s+/, '').trim();
|
|
41213
|
-
/** What the owner's words rule out that a ready-made section could break. */
|
|
41214
|
-
function promptLimitsOf(reading) {
|
|
41215
|
-
const refused = (reading?.refused ?? []).map(plain);
|
|
41216
|
-
const all = [...(reading?.refused ?? []), ...(reading?.asked ?? []), ...(reading?.said ?? [])].map(s => String(s ?? ''));
|
|
41217
|
-
return Object.values(PromptLimit).filter(limit => refused.some(r => REFUSED_WORDS[limit].includes(r))
|
|
41218
|
-
|| RULING_PHRASES[limit].some(phrase => all.some(text => wordPattern(phrase).test(text.normalize('NFKC').toLowerCase()))));
|
|
41219
|
-
}
|
|
41220
|
-
const PICTURE_TYPES = ['Image', 'Gallery'];
|
|
41221
|
-
const CARD_RECIPE = 'card';
|
|
41222
|
-
const CARD_MEDIA = 'media';
|
|
41223
|
-
const IMAGE_BIND = 'image';
|
|
41224
|
-
function shows(node, without, out) {
|
|
41225
|
-
if (node.optional && without.has(node.optional))
|
|
41226
|
-
return;
|
|
41227
|
-
// a picture node, or a recipe that draws one: a card keeps its media part unless switched off, a bound image
|
|
41228
|
-
if (PICTURE_TYPES.includes(node.t) || (node.recipe === CARD_RECIPE && node.parts?.[CARD_MEDIA] !== false) || node.binds?.[IMAGE_BIND])
|
|
41229
|
-
out.add(PromptLimit.NoPictures);
|
|
41230
|
-
if (node.t === 'Video')
|
|
41231
|
-
out.add(PromptLimit.NoVideo);
|
|
41232
|
-
if (node.tracks?.length)
|
|
41233
|
-
out.add(PromptLimit.NoMotion);
|
|
41234
|
-
for (const child of node.c ?? [])
|
|
41235
|
-
shows(child, without, out);
|
|
41236
|
-
}
|
|
41237
|
-
/** The owner's limits a plan section would break, stamped as planned (an unknown pattern breaks none it can be judged on). */
|
|
41238
|
-
function sectionBreaks(section, limits) {
|
|
41239
|
-
const pattern = patternById(section.pattern);
|
|
41240
|
-
if (!pattern || !limits.length)
|
|
41241
|
-
return [];
|
|
41242
|
-
const found = new Set();
|
|
41243
|
-
if (pattern.scene || pattern.film)
|
|
41244
|
-
found.add(PromptLimit.NoMotion);
|
|
41245
|
-
shows(pattern.node, new Set(section.without ?? []), found);
|
|
41246
|
-
return limits.filter(l => found.has(l));
|
|
41247
|
-
}
|
|
41248
|
-
/** One sentence per limit broken, in the site's language: n sections are ready-made and do what the owner ruled out. */
|
|
41249
|
-
const UNFOLLOWED = {
|
|
41250
|
-
en: {
|
|
41251
|
-
[PromptLimit.NoPictures]: n => `${n === 1 ? 'One section is' : `${n} sections are`} ready-made and ${n === 1 ? 'shows' : 'show'} pictures, which you asked to leave out.`,
|
|
41252
|
-
[PromptLimit.NoVideo]: n => `${n === 1 ? 'One section is' : `${n} sections are`} ready-made and ${n === 1 ? 'plays a video' : 'play videos'}, which you asked to leave out.`,
|
|
41253
|
-
[PromptLimit.NoMotion]: n => `${n === 1 ? 'One section is' : `${n} sections are`} ready-made and ${n === 1 ? 'moves' : 'move'} as the page scrolls, which you asked to leave out.`,
|
|
41254
|
-
},
|
|
41255
|
-
he: {
|
|
41256
|
-
[PromptLimit.NoPictures]: n => `${n === 1 ? 'חלק אחד מוכן מראש ומציג' : `${n} חלקים מוכנים מראש ומציגים`} תמונות, אף שביקשת בלי תמונות.`,
|
|
41257
|
-
[PromptLimit.NoVideo]: n => `${n === 1 ? 'חלק אחד מוכן מראש ומציג סרטון' : `${n} חלקים מוכנים מראש ומציגים סרטונים`}, אף שביקשת בלי סרטונים.`,
|
|
41258
|
-
[PromptLimit.NoMotion]: n => `${n === 1 ? 'חלק אחד מוכן מראש וזז' : `${n} חלקים מוכנים מראש וזזים`} עם הגלילה, אף שביקשת בלי תנועה.`,
|
|
41259
|
-
},
|
|
41260
|
-
};
|
|
41261
|
-
/** The followed line after a fall back: the model's line, then what the page no longer follows (never a claim kept). */
|
|
41262
|
-
function followedAfter(line, broken, language) {
|
|
41263
|
-
const words = UNFOLLOWED[language === 'he' ? 'he' : 'en'];
|
|
41264
|
-
const said = Object.values(PromptLimit).filter(l => (broken.get(l) ?? 0) > 0).map(l => words[l](broken.get(l)));
|
|
41265
|
-
return [String(line ?? '').trim(), ...said].filter(Boolean).join(' ');
|
|
41266
|
-
}
|
|
41267
|
-
|
|
41268
41722
|
/**
|
|
41269
41723
|
* THE FREE PAGE'S SILENT FALL BACK (award plan §11.4 gate 6, R-H7): a free section that still breaks a rule after the
|
|
41270
41724
|
* one repair is given to the plan's ready-made section for its place — through the ONE `fallBackBySection` (never a copy
|
|
@@ -42597,5 +43051,5 @@ function siteGlobalsOf(globals) {
|
|
|
42597
43051
|
* Generated bundle index. Do not edit.
|
|
42598
43052
|
*/
|
|
42599
43053
|
|
|
42600
|
-
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, LAID_CONTACT_FAMILY, LAID_FIRST_FAMILY, LAID_PLAIN_FAMILY, 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, SCRIM_WORDS_PAD, 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_FIT_ANY, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MAX_SEARCHES, STOCK_MIN_KEPT, STOCK_NEVER_PHRASES, STOCK_NEVER_WORDS, STOCK_OPENING_TYPE_WORDS, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STOCK_TRADE_NEVER_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, YIELD_MIN_COLUMNS, YIELD_MIN_ROW_SHARE, 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, footerAtTier, footerCallLine, footerCallWord, footerFaceOf, footerMeaning, footerMix, footerMixFromWords, footerMixOfPlan, footerMixWords, footerNameFits, footerPattern, footerPatternIdOf, footerReferences, footerTableWords, footerTokenOf, footerTokenWords, footerWait, footerWireWords, footerWordOffered, footerWordTier, 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, importRedirects, importSlug, importedPicturesOf, isActiveBuild, isAdditionKey, isDrawers, isHandPageKey, isImportPlan, isLayoutRule, isLegalKind, isNonEmptyString, isPeopleContentType, isPerItemPage, isPictureWorld, isPlainObject, isPopupNode, 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, patternPartSlots, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pickListWord, pictureAspect, pictureItemsOf, pictureMakerOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureSlotPage, 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, planStockSearch, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWireShape, planWordIssues, plateYields, popupKeptNotices, popupMeaning, popupMixFromWords, popupMixOfPlan, popupTokenOf, popupWireWords, previousRoute, pricesIn, promptLimitsOf, publishRefusal, publishVerdict, quietMoveEntrance, quoteItemOf, 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, sectionPictureFamily, 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, stockFitFor, stockFits, stockGroupOf, stockItemSlots, stockKept, stockMayFill, stockPhotoFits, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSearchFocus, stockSearchQuery, stockSearchTerm, stockSlotFamily, stockSlots, stockWord, stockWords, storedHeaderMix, storedOpeningMix, strictSchemaComplexity, strictSchemaRefusal, swapParts, tierOf, tierOffers, toneOf, typeLedGroundFor, typeLedGrounds, typeLedNotices, typeLedOpeningSection, typeLedOpeningWays, typeLedPlateColour, typeLedPlates, typeLedRound, typeLedSection, typeLedYield, 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 };
|
|
43054
|
+
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_OPENING_BOXES, 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_BAR_PX, HEADER_REST_FRAMES, HEADER_TOKEN, HEADER_VEIL, 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, LAID_CONTACT_FAMILY, LAID_FIRST_FAMILY, LAID_PLAIN_FAMILY, 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, SCRIM_WORDS_PAD, 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_FIT_ANY, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MAX_SEARCHES, STOCK_MIN_KEPT, STOCK_NEVER_PHRASES, STOCK_NEVER_WORDS, STOCK_OPENING_TYPE_WORDS, STOCK_PLACE_TYPE_WORDS, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STOCK_TRADE_NEVER_WORDS, STOCK_TRADE_PLACE_WORDS, STOCK_TRADE_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, YIELD_MIN_COLUMNS, YIELD_MIN_ROW_SHARE, 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, filledItemNumbers, filmOfPlan, filmPlacement, findNavRoot, findOpening, findingMessageOf, findingSentence, fingerprintOf, fingerprintOfPlanPage, followedAfter, followedIssues, footerAtTier, footerCallLine, footerCallWord, footerFaceOf, footerMeaning, footerMix, footerMixFromWords, footerMixOfPlan, footerMixWords, footerNameFits, footerPattern, footerPatternIdOf, footerReferences, footerTableWords, footerTokenOf, footerTokenWords, footerWait, footerWireWords, footerWordOffered, footerWordTier, footerWords, formAsksPersonalData, formLegalFacts, frameWords, freeContrastIssues, freeControlsOf, freeMoveOf, freeMoveWord, freeMoveWords, freeNodeId, freeOpeningOffer, freeSectionAsLayout, freeSectionOwner, freeSignaturePage, freeSlotIssues, freeStampedId, freeStyleIssues, freeStyleToSlots, freeStyleWithoutSlot, freeToWire, freeWireJsonSchema, freeWirePath, generationTierOf, groundToneOf, groupSentence, groupSiteFindings, handPageKey, handPlanPage, harvestPage, hash53, headerAdvice, headerCompanions, headerContextOfPlan, headerGallery, headerGalleryIdOf, headerGroundWhenUnreadable, headerMeaning, headerMix, headerMixFromWords, headerMixOfNavKind, headerMixOfPlan, headerMixValue, headerMixWords, headerPatternIdOf, headerReadableOfSite, headerReadsAtRest, headerRecipe, headerReferences, headerRestInks, headerShape, headerSiteFor, headerTokenOf, headerTokenWords, headerVeilAt, headerWireWords, headerWordDrawn, headerWords, importRedirects, importSlug, importedPicturesOf, isActiveBuild, isAdditionKey, isDrawers, isFilledItem, isFreeBox, isHandPageKey, isImportPlan, isLayoutRule, isLegalKind, isNonEmptyString, isPeopleContentType, isPerItemPage, isPictureWorld, isPlainObject, isPopupNode, isRedesignRun, isRtlLocale, isScrubbedEntrance, isSectionCarryHandle, isSectionStamp, isShopResource, isTemplateRoute, itemFillApplies, 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, lookHasGlass, 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, openingPictureSrc, openingRecipe, openingReferences, openingTokenOf, openingTokenParts, openingWireWords, openingWordDrawn, openingWordOffered, openingWordTier, openingWordWaits, openingWords$1 as openingWords, opensOnPicture, orientationOfRatio, outwardCredits, ownPhotoFit, ownerContentInto, paddingKeepingClear, pageBuildSource, pageListIssues, pageShowsShop, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternPartSlots, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pickListWord, pictureAspect, pictureItemsOf, pictureMakerOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureSlotPage, pictureTargets, pictureTokensFor, pictureTryFits, picturelessTypes, pinnedPagesOf, pixelsUnder, placeFilm, placeholderContentTypes, plainCarryText, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planHasShopSource, planHeader, planImport, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planSells, planStockPhotos, planStockSearch, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWireShape, planWordIssues, plateYields, popupKeptNotices, popupMeaning, popupMixFromWords, popupMixOfPlan, popupTokenOf, popupWireWords, previousRoute, pricesIn, promptLimitsOf, publishRefusal, publishVerdict, quietMoveEntrance, quoteItemOf, quoteListOf, quotesIn, readHeader, readOpening, readyMadeColumn, readyMadeToken, recipeListBinds, recomposeAsks, redesignAdditionsJsonSchema, redesignBackOpen, redesignBackUntil, redesignDiscardable, redesignPreviousChoices, refitBuiltPage, refitPage, refreshSectionStamps, refusesStock, 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, sectionPictureFamily, 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, stockFitFor, stockFits, stockGroupOf, stockItemSlots, stockKept, stockMayFill, stockPhotoFits, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSearchFocus, stockSearchQuery, stockSearchTerm, stockSlotFamily, stockSlots, stockWord, stockWords, storedHeaderMix, storedOpeningMix, strictSchemaComplexity, strictSchemaRefusal, swapParts, tierOf, tierOffers, toneOf, typeLedGroundFor, typeLedGrounds, typeLedNotices, typeLedOpeningSection, typeLedOpeningWays, typeLedPlateColour, typeLedPlates, typeLedRound, typeLedSection, typeLedYield, 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 };
|
|
42601
43055
|
//# sourceMappingURL=vectoriox-iox-ui-generation-core.mjs.map
|