@vectoriox/iox-ui 5.135.0 → 5.136.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/design-core/index.d.ts +153 -9
- package/fesm2022/vectoriox-iox-ui-assist-core.mjs +6 -36
- package/fesm2022/vectoriox-iox-ui-assist-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs +28 -1
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs +241 -48
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +1257 -126
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs +7 -3
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
- package/generation-core/index.d.ts +444 -59
- package/harness-core/index.d.ts +4 -2
- package/package.json +1 -1
- package/src/assist-core/page-sections.ts +4 -31
- package/src/composite-core/slider.ts +35 -0
- package/src/design-core/design-settings.ts +16 -3
- package/src/design-core/design-token.model.ts +3 -0
- package/src/design-core/flavor-spec.generated.ts +98 -25
- package/src/design-core/motion-language.ts +12 -9
- package/src/design-core/preloader.ts +129 -0
- package/src/design-core/public-api.ts +1 -0
- package/src/design-core/style-presets.ts +3 -1
- package/src/generation-core/carry.ts +37 -0
- package/src/generation-core/compose-site.ts +222 -9
- package/src/generation-core/node-baselines.generated.ts +2 -1
- package/src/generation-core/opening-edit.ts +240 -0
- package/src/generation-core/opening-mix.ts +639 -0
- package/src/generation-core/patterns.ts +3 -0
- package/src/generation-core/plan-wire.ts +26 -4
- package/src/generation-core/public-api.ts +2 -0
- package/src/generation-core/site-build-run.ts +23 -1
- package/src/generation-core/site-plan.model.ts +3 -1
- package/src/generation-core/site-spec.generated.ts +137 -56
- package/src/generation-core/validate-site-plan.ts +5 -3
- package/src/harness-core/starting-design.ts +8 -4
- package/styles/iox-design.css +32 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { NEW_NODE_STYLE_DEFAULTS, defaultElementStyleFor, elementStyleById, ownedTraitsOf, applyElementStyle, stylePresetOfChoices, resolveDesignChoices, presetModes, STYLE_PRESETS, presetChoices, textWidthEm, elementStyleFace, SPEC_AXES, QUIET_MOVE, QUIET_LEVELS, EntranceParam, staggerDelay, toHexColor, relativeLuminance, resolveTokenValues, designTokenRows, parseCssColour, parseHexColor, rgbToOklab, LinkType, MenuTrait, menuDialogProps, MenuButtonKind, menuButtonOf, menuButtonProps, HeaderTrait, menuFormOf, MenuForm, MenuPhoneForm, menuHoverOf, menuRevealOf, flavorPackById, ARRIVE_IDS, MOVE_IDS, setColorScheme, ColorScheme, COLOR_SCHEMES, motionLanguageForPlan,
|
|
2
|
-
import { SLIDER_TYPE, badgeToneOf, isAnyCompositeRoot, MarqueeRole, NO_ELEMENT_STYLE, ShopRole, AccountRole, pickTabsAutoBinds, pickAccordionAutoBinds, CardPart, SLIDER_PLACEMENT_TRAIT, SliderPlacement, syncSliderParts, SliderRole, CardLayout, buildCardRecipe, findByRole, CardRole, SHOP_RECIPES, ShopRecipe, bindShopPart, ShopBindTarget, buildMarqueeRecipe, SceneRole, segmentedOptions, ITEM_OPEN_STATE, CARD_LAYOUTS, CARD_PARTS, BADGE_TONES, buildSegmentedRecipe, AccordionRole, buildAccordionRecipe, ACCORDION_WORDS, accordionItems, accordionQuestionOf, accordionAnswerOf, ACCORDION_BIND_PROP, ACCORDION_CONTENT_LIMIT, buildTabsRecipe, TABS_WORDS, 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, buildCarouselRecipe, SLIDE_TYPE, buildLightboxRecipe, LIGHTBOX_LABEL, SLIDE_TO_ROW, setHeaderBehaviour, buildConsentRecipe, ConsentActionType } from '@vectoriox/iox-ui/composite-core';
|
|
1
|
+
import { NEW_NODE_STYLE_DEFAULTS, defaultElementStyleFor, elementStyleById, ownedTraitsOf, applyElementStyle, stylePresetOfChoices, resolveDesignChoices, presetModes, STYLE_PRESETS, presetChoices, textWidthEm, elementStyleFace, SPEC_AXES, QUIET_MOVE, QUIET_LEVELS, EntranceParam, staggerDelay, toHexColor, relativeLuminance, resolveTokenValues, designTokenRows, parseCssColour, parseHexColor, rgbToOklab, LinkType, MenuTrait, menuDialogProps, MenuButtonKind, menuButtonOf, menuButtonProps, HeaderTrait, menuFormOf, MenuForm, MenuPhoneForm, menuHoverOf, menuRevealOf, flavorPackById, ARRIVE_IDS, MOVE_IDS, PRELOADER_IDS, setColorScheme, ColorScheme, COLOR_SCHEMES, motionLanguageForPlan, DEFAULT_MENU_LOOK, COLOR_SCHEME_TRAIT, colorSchemeClass, ANIMATE_IDS, auditDesignContrast, compositeOver, wcagContrastRatio, HeaderBehaviour, headerBehaviourOf, headerEdgeOf } from '@vectoriox/iox-ui/design-core';
|
|
2
|
+
import { SLIDER_TYPE, badgeToneOf, isAnyCompositeRoot, MarqueeRole, NO_ELEMENT_STYLE, ShopRole, AccountRole, pickTabsAutoBinds, pickAccordionAutoBinds, CardPart, SLIDER_PLACEMENT_TRAIT, SliderPlacement, syncSliderParts, SliderRole, CardLayout, buildCardRecipe, findByRole, CardRole, SHOP_RECIPES, ShopRecipe, bindShopPart, ShopBindTarget, buildMarqueeRecipe, SceneRole, segmentedOptions, ITEM_OPEN_STATE, CARD_LAYOUTS, CARD_PARTS, BADGE_TONES, buildSegmentedRecipe, AccordionRole, buildAccordionRecipe, ACCORDION_WORDS, accordionItems, accordionQuestionOf, accordionAnswerOf, ACCORDION_BIND_PROP, ACCORDION_CONTENT_LIMIT, buildTabsRecipe, TABS_WORDS, 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, buildCarouselRecipe, SLIDE_TYPE, buildSlideshowRecipe, buildLightboxRecipe, LIGHTBOX_LABEL, SLIDE_TO_ROW, setHeaderBehaviour, buildConsentRecipe, ConsentActionType } from '@vectoriox/iox-ui/composite-core';
|
|
3
3
|
import { formPresetById, ControlType, FIELD_NODE_TYPE, FORM_NODE_TYPE, FormPresetId, FormAfterSend, FORM_AFTER_SEND_TRAIT, FORM_ACTIONS_ROLE, channelOpensNewTab, FORM_CHANNEL_ROLE, presetFormActions, planFormPresetIds, collectFormSpec, isChannelFilled } from '@vectoriox/iox-ui/forms-core';
|
|
4
4
|
import { normalizeFrameSequence, filmScreensFor, FILM_PREPARED_PICTURES, FrameExtension } from '@vectoriox/iox-ui/media-core';
|
|
5
5
|
import { SEO_DESCRIPTION_MAX, SEO_TITLE_MAX } from '@vectoriox/iox-ui/seo-core';
|
|
@@ -27,11 +27,12 @@ const SPEC_SITE_PLAN_SHAPE = {
|
|
|
27
27
|
"film?": "film — the owner's film as pictures (SC6b), set by the build and placed by placeFilm; never a model's",
|
|
28
28
|
"artDirection?": "artDirection — what every picture made for the site shares (M7): set by the generation from the business type and the look (generation-core artDirectionFor); never a model's",
|
|
29
29
|
"direction?": "direction — what the site is built around (M8 gate 2): written with the pages, shown on the Plan step; every composed page serves it",
|
|
30
|
-
"mixes?": "mixes — the header
|
|
30
|
+
"mixes?": "mixes — the header, the footer and the home page's opening as mixes of ingredients (ingredients.md); a header or footer mix wins over its globals pattern"
|
|
31
31
|
},
|
|
32
32
|
"mixes": {
|
|
33
33
|
"header?": "string[] — the header as <ingredient>:<word> words (site.layout.header; header ingredients HI1)",
|
|
34
|
-
"footer?": "string[] — the footer as <ingredient>:<word> words (site.layout.footer; list ingredients LI5)"
|
|
34
|
+
"footer?": "string[] — the footer as <ingredient>:<word> words (site.layout.footer; list ingredients LI5)",
|
|
35
|
+
"opening?": "string[] — the home page's opening (its first screen) as <ingredient>:<word> words (site.layout.opening; award ingredients AW8): it takes the place of the home page's first section when that is a hero, the hero's words and pictures carried in; absent or empty = the home page opens with its sections as written"
|
|
35
36
|
},
|
|
36
37
|
"direction": {
|
|
37
38
|
"idea": "string — one sentence: what this site is about and how it should feel",
|
|
@@ -84,7 +85,8 @@ const SPEC_SITE_PLAN_SHAPE = {
|
|
|
84
85
|
"animate?": "string — axes.animations: how much the sections move in as they scroll into view",
|
|
85
86
|
"between?": "string — axes.betweens: what plays between pages",
|
|
86
87
|
"feel?": "string — motionLanguage.arrive: the curve things arrive on, the leave follows it (AW3, MB-D5; absent = motionLanguage.defaults.arrive)",
|
|
87
|
-
"headings?": "string — motionLanguage.move: how headings arrive (AW3; absent = each How animated level's own heading)"
|
|
88
|
+
"headings?": "string — motionLanguage.move: how headings arrive (AW3; absent = each How animated level's own heading)",
|
|
89
|
+
"preloader?": "string — motionLanguage.preloader: what opens a visitor's first page (AW5; absent = none; the exit is the style's, never stored)"
|
|
88
90
|
},
|
|
89
91
|
"contentType": {
|
|
90
92
|
"name": "string — unique",
|
|
@@ -8691,67 +8693,40 @@ const SPEC_SITE_LAYOUT = {
|
|
|
8691
8693
|
"motion.copy-out": "the first screen's words fade as the page leaves it, following the scroll",
|
|
8692
8694
|
"motion.pinned-covered": "the first screen holds while the next section slides over it"
|
|
8693
8695
|
},
|
|
8696
|
+
"meaningsHe": {
|
|
8697
|
+
"frame.full": "מקצה לקצה",
|
|
8698
|
+
"frame.inset": "כרטיס מעוגל בתוך החלון, רקע הדף סביבו",
|
|
8699
|
+
"frame.shrinks": "מסך מלא בהתחלה, ומתיישב פעם אחת לכרטיס כשהדף נטען",
|
|
8700
|
+
"frame.grows": "חלון באמצע שגדל עד לקצוות כשהמסך הראשון מגיע",
|
|
8701
|
+
"media.photo": "תמונה",
|
|
8702
|
+
"media.film": "סרטון בלולאה, ותמונת השער שלו כשמבקשים פחות תנועה",
|
|
8703
|
+
"media.slideshow": "תמונות שמתחלפות לבד, עם כפתור עצירה",
|
|
8704
|
+
"media.object": "חפץ אחד במרכז (סרטון או תמונה שלו)",
|
|
8705
|
+
"media.diptych": "שתי תמונות בגובה מלא זו לצד זו; בטלפון נשארת הראשונה",
|
|
8706
|
+
"media.material": "רקע מהמראה של האתר (זוהר מאחורי פסים, רשת נקודות, אור איטי)",
|
|
8707
|
+
"media.live": "טופס אמיתי של האתר במסך הראשון (פנייה, הזמנה)",
|
|
8708
|
+
"words.headline": "כותרת, שורה ופעולה אחת",
|
|
8709
|
+
"words.on-edge": "שורה אחת בגודל המסך שיושבת על הקצה התחתון, חתוכה בו",
|
|
8710
|
+
"words.apart": "שתיים או שלוש מילים ענקיות, מפוזרות על המסך",
|
|
8711
|
+
"words.wordmark": "שם העסק לכל הרוחב, בחזית המסך הראשון",
|
|
8712
|
+
"words.behind": "השם מאחורי הנושא — תמונה גזורה לפני האותיות",
|
|
8713
|
+
"words.none": "הסרטון הוא המסר; שורה קטנה אחת",
|
|
8714
|
+
"extras.card": "כרטיס קטן שמרחף במסך הראשון (פריט, סרטון, הרשמה)",
|
|
8715
|
+
"extras.badge": "תג קטן (פרס, הצעה) — רק של בעל העסק",
|
|
8716
|
+
"extras.cue": "סימן גלילה שקט",
|
|
8717
|
+
"motion.slow-zoom": "התמונה מתקרבת לאט (15 שניות ויותר), ונשארת דוממת כשמבקשים פחות תנועה",
|
|
8718
|
+
"motion.copy-out": "המילים של המסך הראשון נמוגות כשהדף עוזב אותו, עם הגלילה",
|
|
8719
|
+
"motion.pinned-covered": "המסך הראשון נשאר במקומו והחלק הבא מחליק מעליו"
|
|
8720
|
+
},
|
|
8694
8721
|
"waits": {
|
|
8695
|
-
"frame.inset": {
|
|
8696
|
-
"phase": "AW8",
|
|
8697
|
-
"drawnAs": "full"
|
|
8698
|
-
},
|
|
8699
|
-
"frame.shrinks": {
|
|
8700
|
-
"phase": "AW8",
|
|
8701
|
-
"drawnAs": "full"
|
|
8702
|
-
},
|
|
8703
8722
|
"frame.grows": {
|
|
8704
8723
|
"phase": "AW5",
|
|
8705
8724
|
"drawnAs": "full"
|
|
8706
8725
|
},
|
|
8707
|
-
"media.diptych": {
|
|
8708
|
-
"phase": "AW8",
|
|
8709
|
-
"drawnAs": "photo"
|
|
8710
|
-
},
|
|
8711
8726
|
"media.material": {
|
|
8712
8727
|
"phase": "AW7",
|
|
8713
8728
|
"drawnAs": "photo"
|
|
8714
8729
|
},
|
|
8715
|
-
"media.live": {
|
|
8716
|
-
"phase": "AW8",
|
|
8717
|
-
"drawnAs": "photo"
|
|
8718
|
-
},
|
|
8719
|
-
"words.on-edge": {
|
|
8720
|
-
"phase": "AW8",
|
|
8721
|
-
"drawnAs": "headline"
|
|
8722
|
-
},
|
|
8723
|
-
"words.apart": {
|
|
8724
|
-
"phase": "AW8",
|
|
8725
|
-
"drawnAs": "headline"
|
|
8726
|
-
},
|
|
8727
|
-
"words.wordmark": {
|
|
8728
|
-
"phase": "AW8",
|
|
8729
|
-
"drawnAs": "headline"
|
|
8730
|
-
},
|
|
8731
|
-
"words.none": {
|
|
8732
|
-
"phase": "AW8",
|
|
8733
|
-
"drawnAs": "headline"
|
|
8734
|
-
},
|
|
8735
|
-
"words.behind": {
|
|
8736
|
-
"phase": "AW8",
|
|
8737
|
-
"drawnAs": "headline"
|
|
8738
|
-
},
|
|
8739
|
-
"extras.card": {
|
|
8740
|
-
"phase": "AW8",
|
|
8741
|
-
"drawnAs": null
|
|
8742
|
-
},
|
|
8743
|
-
"extras.badge": {
|
|
8744
|
-
"phase": "AW8",
|
|
8745
|
-
"drawnAs": null
|
|
8746
|
-
},
|
|
8747
|
-
"extras.cue": {
|
|
8748
|
-
"phase": "AW8",
|
|
8749
|
-
"drawnAs": null
|
|
8750
|
-
},
|
|
8751
|
-
"motion.slow-zoom": {
|
|
8752
|
-
"phase": "AW8",
|
|
8753
|
-
"drawnAs": null
|
|
8754
|
-
},
|
|
8755
8730
|
"motion.copy-out": {
|
|
8756
8731
|
"phase": "AW10",
|
|
8757
8732
|
"drawnAs": null
|
|
@@ -8777,6 +8752,111 @@ const SPEC_SITE_LAYOUT = {
|
|
|
8777
8752
|
"media": "object"
|
|
8778
8753
|
}
|
|
8779
8754
|
},
|
|
8755
|
+
"gallery": [
|
|
8756
|
+
{
|
|
8757
|
+
"id": "picture-words",
|
|
8758
|
+
"name": "Picture and words",
|
|
8759
|
+
"nameHe": "תמונה ומילים",
|
|
8760
|
+
"words": "Edge to edge · a heading, a line, one button",
|
|
8761
|
+
"wordsHe": "מקצה לקצה · כותרת, שורה, כפתור אחד",
|
|
8762
|
+
"mix": {}
|
|
8763
|
+
},
|
|
8764
|
+
{
|
|
8765
|
+
"id": "in-a-card",
|
|
8766
|
+
"name": "In a card",
|
|
8767
|
+
"nameHe": "בתוך כרטיס",
|
|
8768
|
+
"words": "Inset from the window · a small card inside",
|
|
8769
|
+
"wordsHe": "בתוך החלון · כרטיס קטן בפנים",
|
|
8770
|
+
"mix": {
|
|
8771
|
+
"frame": "inset",
|
|
8772
|
+
"extras": [
|
|
8773
|
+
"card"
|
|
8774
|
+
]
|
|
8775
|
+
}
|
|
8776
|
+
},
|
|
8777
|
+
{
|
|
8778
|
+
"id": "name-on-edge",
|
|
8779
|
+
"name": "Name on the edge",
|
|
8780
|
+
"nameHe": "השם על הקצה",
|
|
8781
|
+
"words": "A slideshow · the name on the bottom edge",
|
|
8782
|
+
"wordsHe": "תמונות מתחלפות · השם על הקצה התחתון",
|
|
8783
|
+
"mix": {
|
|
8784
|
+
"media": "slideshow",
|
|
8785
|
+
"words": "on-edge"
|
|
8786
|
+
}
|
|
8787
|
+
},
|
|
8788
|
+
{
|
|
8789
|
+
"id": "two-pictures",
|
|
8790
|
+
"name": "Two pictures",
|
|
8791
|
+
"nameHe": "שתי תמונות",
|
|
8792
|
+
"words": "Side by side · a phone keeps the first",
|
|
8793
|
+
"wordsHe": "זו לצד זו · בטלפון נשארת הראשונה",
|
|
8794
|
+
"mix": {
|
|
8795
|
+
"media": "diptych",
|
|
8796
|
+
"words": "on-edge"
|
|
8797
|
+
}
|
|
8798
|
+
},
|
|
8799
|
+
{
|
|
8800
|
+
"id": "name-large",
|
|
8801
|
+
"name": "The name, large",
|
|
8802
|
+
"nameHe": "השם בגדול",
|
|
8803
|
+
"words": "The name full width · a scroll cue",
|
|
8804
|
+
"wordsHe": "השם לכל הרוחב · סימן גלילה",
|
|
8805
|
+
"mix": {
|
|
8806
|
+
"words": "wordmark",
|
|
8807
|
+
"extras": [
|
|
8808
|
+
"cue"
|
|
8809
|
+
]
|
|
8810
|
+
}
|
|
8811
|
+
},
|
|
8812
|
+
{
|
|
8813
|
+
"id": "words-apart",
|
|
8814
|
+
"name": "Words apart",
|
|
8815
|
+
"nameHe": "מילים מפוזרות",
|
|
8816
|
+
"words": "A film · two or three words across it",
|
|
8817
|
+
"wordsHe": "סרטון · שתיים או שלוש מילים עליו",
|
|
8818
|
+
"mix": {
|
|
8819
|
+
"media": "film",
|
|
8820
|
+
"words": "apart"
|
|
8821
|
+
}
|
|
8822
|
+
},
|
|
8823
|
+
{
|
|
8824
|
+
"id": "film-alone",
|
|
8825
|
+
"name": "The film alone",
|
|
8826
|
+
"nameHe": "הסרטון לבדו",
|
|
8827
|
+
"words": "A looping film · one small line",
|
|
8828
|
+
"wordsHe": "סרטון בלולאה · שורה קטנה אחת",
|
|
8829
|
+
"mix": {
|
|
8830
|
+
"media": "film",
|
|
8831
|
+
"words": "none"
|
|
8832
|
+
}
|
|
8833
|
+
},
|
|
8834
|
+
{
|
|
8835
|
+
"id": "form-first",
|
|
8836
|
+
"name": "A form first",
|
|
8837
|
+
"nameHe": "טופס קודם",
|
|
8838
|
+
"words": "The lead form beside the words",
|
|
8839
|
+
"wordsHe": "טופס הפנייה ליד המילים",
|
|
8840
|
+
"mix": {
|
|
8841
|
+
"media": "live"
|
|
8842
|
+
}
|
|
8843
|
+
},
|
|
8844
|
+
{
|
|
8845
|
+
"id": "slow-zoom",
|
|
8846
|
+
"name": "Slow zoom",
|
|
8847
|
+
"nameHe": "זום איטי",
|
|
8848
|
+
"words": "A picture that slowly comes closer · a card",
|
|
8849
|
+
"wordsHe": "תמונה שמתקרבת לאט · כרטיס",
|
|
8850
|
+
"mix": {
|
|
8851
|
+
"extras": [
|
|
8852
|
+
"card"
|
|
8853
|
+
],
|
|
8854
|
+
"motion": [
|
|
8855
|
+
"slow-zoom"
|
|
8856
|
+
]
|
|
8857
|
+
}
|
|
8858
|
+
}
|
|
8859
|
+
],
|
|
8780
8860
|
"fingerprint": [
|
|
8781
8861
|
"frame",
|
|
8782
8862
|
"media",
|
|
@@ -10260,7 +10340,8 @@ const SPEC_SITE_LAYOUT = {
|
|
|
10260
10340
|
"planFallback": {
|
|
10261
10341
|
"arrive": "enter",
|
|
10262
10342
|
"move": "fade",
|
|
10263
|
-
"cover": "fade"
|
|
10343
|
+
"cover": "fade",
|
|
10344
|
+
"preloader": "none"
|
|
10264
10345
|
},
|
|
10265
10346
|
"coverMaxMs": {
|
|
10266
10347
|
"cover": 400,
|
|
@@ -12908,7 +12989,8 @@ const NODE_BASELINES = {
|
|
|
12908
12989
|
"transitionTimingFunction": "ease"
|
|
12909
12990
|
},
|
|
12910
12991
|
"traits": [
|
|
12911
|
-
"colorScheme"
|
|
12992
|
+
"colorScheme",
|
|
12993
|
+
"openingMix"
|
|
12912
12994
|
],
|
|
12913
12995
|
"styleTraits": [
|
|
12914
12996
|
"position",
|
|
@@ -16743,6 +16825,9 @@ var PatternRecipe;
|
|
|
16743
16825
|
PatternRecipe["Segmented"] = "segmented";
|
|
16744
16826
|
/** CC3: the accessible carousel — a named Slider whose controls are parts, one quote per slide (placeholders). */
|
|
16745
16827
|
PatternRecipe["Carousel"] = "carousel";
|
|
16828
|
+
/** AW8 (`media.slideshow`): pictures cross-fading on their own — the carousel's Slider with a fade, autoplay, its
|
|
16829
|
+
* Pause control (WCAG 2.2.2, always there while it rotates) and dots; three empty pictures (placeholders). */
|
|
16830
|
+
PatternRecipe["Slideshow"] = "slideshow";
|
|
16746
16831
|
/** CC3: the Lightbox — a Dialog holding a Slider over the node's `src` (the gallery's own source). */
|
|
16747
16832
|
PatternRecipe["Lightbox"] = "lightbox";
|
|
16748
16833
|
/** Commerce G1 (E1c `SHOP_RECIPES`): the product's price — its own on a product page (`$variant`), the row's in a
|
|
@@ -17450,6 +17535,46 @@ function describeCarryForPrompt(carry) {
|
|
|
17450
17535
|
];
|
|
17451
17536
|
return lines.join('\n');
|
|
17452
17537
|
}
|
|
17538
|
+
/** A button's link (where it leads, how it opens) carried onto another button. */
|
|
17539
|
+
function carryButtonLink(from, to) {
|
|
17540
|
+
const link = Object.fromEntries(BUTTON_LINK_PROPS.filter(k => k in (from.props ?? {})).map(k => [k, from.props[k]]));
|
|
17541
|
+
to.props = { ...to.props, ...link };
|
|
17542
|
+
}
|
|
17543
|
+
/**
|
|
17544
|
+
* The owner's words and pictures, placed from one section into another part for part (kind by kind, in reading order,
|
|
17545
|
+
* a button with its link) — Ask's swap rule (AI2d), shared. Returns the parts that held content and found no place.
|
|
17546
|
+
*/
|
|
17547
|
+
function carryInto(from, to) {
|
|
17548
|
+
const old = swapParts(from);
|
|
17549
|
+
const fresh = swapParts(to);
|
|
17550
|
+
const lost = [];
|
|
17551
|
+
for (const kind of SWAP_CARRY_KINDS) {
|
|
17552
|
+
old[kind].forEach((source, i) => {
|
|
17553
|
+
const target = fresh[kind][i];
|
|
17554
|
+
if (!target) {
|
|
17555
|
+
if (kind !== CarryKind.Image || source.props['src'])
|
|
17556
|
+
lost.push(source);
|
|
17557
|
+
return;
|
|
17558
|
+
}
|
|
17559
|
+
if (kind === CarryKind.Image) {
|
|
17560
|
+
if (!source.props['src'])
|
|
17561
|
+
return;
|
|
17562
|
+
target.props = { ...target.props, src: source.props['src'], alt: source.props['alt'] ?? target.props['alt'] };
|
|
17563
|
+
}
|
|
17564
|
+
else if (kind === CarryKind.Button) {
|
|
17565
|
+
const words = (source.children ?? []).find(c => c.type === 'Text');
|
|
17566
|
+
const into = (target.children ?? []).find(c => c.type === 'Text');
|
|
17567
|
+
if (words && into)
|
|
17568
|
+
into.props = { ...into.props, content: words.props['content'] };
|
|
17569
|
+
carryButtonLink(source, target);
|
|
17570
|
+
}
|
|
17571
|
+
else {
|
|
17572
|
+
target.props = { ...target.props, content: source.props['content'] };
|
|
17573
|
+
}
|
|
17574
|
+
});
|
|
17575
|
+
}
|
|
17576
|
+
return lost;
|
|
17577
|
+
}
|
|
17453
17578
|
|
|
17454
17579
|
/**
|
|
17455
17580
|
* The LAYOUT LANGUAGE (premium components M8 — the prototype's CL2 / CL2.1, premium-sites plan "Breaking limits"): a page
|
|
@@ -18512,7 +18637,7 @@ function writtenTexts(plan) {
|
|
|
18512
18637
|
});
|
|
18513
18638
|
return out;
|
|
18514
18639
|
}
|
|
18515
|
-
const HEBREW$
|
|
18640
|
+
const HEBREW$4 = /[-]/;
|
|
18516
18641
|
/** Hebrew joins up to two one-letter words (and, the, in, to, from, that, as) to the next: "והטוב" holds "טוב". The
|
|
18517
18642
|
* ONE rule — the intake's keyword match (harness-core) uses it too. */
|
|
18518
18643
|
const HEBREW_PREFIXES = '[והבלמשכ]{0,2}';
|
|
@@ -18521,7 +18646,7 @@ const normalise = (s) => s.normalize('NFKC').toLowerCase();
|
|
|
18521
18646
|
/** A word (or phrase) as a whole-word pattern; Hebrew allows its one-letter prefixes. */
|
|
18522
18647
|
function wordPattern(word) {
|
|
18523
18648
|
const w = escape(normalise(word.trim())).replace(/\s+/g, '\\s+');
|
|
18524
|
-
const prefix = HEBREW$
|
|
18649
|
+
const prefix = HEBREW$4.test(word) ? HEBREW_PREFIXES : '';
|
|
18525
18650
|
return new RegExp(`(?<![\\p{L}\\p{N}])${prefix}${w}(?![\\p{L}\\p{N}])`, 'u');
|
|
18526
18651
|
}
|
|
18527
18652
|
const PRICE_SHAPE = { kind: 'price', pattern: /(?:[$€£₪]\s?\d[\d,.]*|\d[\d,.]*\s?(?:[$€£₪]|ש"ח|NIS|USD|EUR|GBP))/gu, key: (m) => m.replace(/[^\d]/g, '') };
|
|
@@ -19242,7 +19367,7 @@ function describeInventoryForPrompt(id, inv, label) {
|
|
|
19242
19367
|
const LIST_TABLE = SPEC_SITE_LAYOUT.list;
|
|
19243
19368
|
/** The ingredients, in the table's order. */
|
|
19244
19369
|
const LIST_INGREDIENTS = Object.keys(LIST_TABLE.ingredients);
|
|
19245
|
-
const WAITS$
|
|
19370
|
+
const WAITS$3 = LIST_TABLE.waits;
|
|
19246
19371
|
const MEANINGS$2 = LIST_TABLE.meanings;
|
|
19247
19372
|
/** Every word of an ingredient. */
|
|
19248
19373
|
function listIngredientWords(k) {
|
|
@@ -19250,7 +19375,7 @@ function listIngredientWords(k) {
|
|
|
19250
19375
|
}
|
|
19251
19376
|
/** The wait of a word, or null when the product draws it. */
|
|
19252
19377
|
function listWait(k, word) {
|
|
19253
|
-
return WAITS$
|
|
19378
|
+
return WAITS$3[`${k}.${word}`] ?? null;
|
|
19254
19379
|
}
|
|
19255
19380
|
/** The words of an ingredient the product draws — the only ones the wire offers (ingredients.md §3.3). */
|
|
19256
19381
|
function listBuiltWords(k) {
|
|
@@ -19483,7 +19608,7 @@ const GRID$1 = 12;
|
|
|
19483
19608
|
const COLUMN_PX$1 = LAYOUT_CHECK_VIEWPORT.width / GRID$1;
|
|
19484
19609
|
/** A line of words stands its size × this tall. */
|
|
19485
19610
|
const LAYOUT_LINE_HEIGHT = 1.2;
|
|
19486
|
-
const HEBREW$
|
|
19611
|
+
const HEBREW$3 = /[-]/;
|
|
19487
19612
|
/** A button's ink, as tall as its padding and one line. */
|
|
19488
19613
|
const BUTTON_PX = 56;
|
|
19489
19614
|
/** How far the screens mend lowers a section at a time, and how often it tries. */
|
|
@@ -19496,13 +19621,13 @@ const LAYOUT_KINETIC_KINDS = new Set([LayoutLayerKind.Word, LayoutLayerKind.Head
|
|
|
19496
19621
|
const span$1 = (r) => (r ? r[1] - r[0] : 0);
|
|
19497
19622
|
const isText$1 = (l) => LAYOUT_TEXT_KINDS.has(l.kind);
|
|
19498
19623
|
const isPictured$1 = (l) => l.kind === LayoutLayerKind.Photo || l.kind === LayoutLayerKind.Gallery;
|
|
19499
|
-
const wordsOf$
|
|
19624
|
+
const wordsOf$4 = (t) => String(t ?? '').trim().split(/\s+/).filter(Boolean).length;
|
|
19500
19625
|
const meets = (a, b) => {
|
|
19501
19626
|
const ov = (p, q) => p[0] < q[1] && q[0] < p[1];
|
|
19502
19627
|
return ov(a.col ?? [0, 0], b.col ?? [0, 0]) && ov(a.row ?? [0, 0], b.row ?? [0, 0]);
|
|
19503
19628
|
};
|
|
19504
19629
|
const textOf$3 = (l) => String(l.text ?? (l.items ?? []).join(' '));
|
|
19505
|
-
const advanceOf = (text) => (HEBREW$
|
|
19630
|
+
const advanceOf = (text) => (HEBREW$3.test(text) ? LIM$1.advance.hebrew : LIM$1.advance.latin);
|
|
19506
19631
|
/** A grid box's size in px on the laptop. */
|
|
19507
19632
|
function layoutBoxPx(col, row, s) {
|
|
19508
19633
|
const height = (s.pin ? 1 : s.screens) * LAYOUT_CHECK_VIEWPORT.height;
|
|
@@ -19572,7 +19697,7 @@ function layoutStillLine(s) {
|
|
|
19572
19697
|
const sizes = Object.keys(L$2.sizePx);
|
|
19573
19698
|
const found = (s.layers ?? [])
|
|
19574
19699
|
.map((l, li) => ({ l, li }))
|
|
19575
|
-
.filter(({ l }) => LAYOUT_KINETIC_KINDS.has(l.kind) && wordsOf$
|
|
19700
|
+
.filter(({ l }) => LAYOUT_KINETIC_KINDS.has(l.kind) && wordsOf$4(l.text) >= 2 && wordsOf$4(l.text) <= LIM$1.kineticWords)
|
|
19576
19701
|
.filter(({ l }) => !(s.layers ?? []).some(o => o !== l && isPictured$1(o) && meets(o, l)))
|
|
19577
19702
|
.sort((a, b) => Number(b.l.role === LayoutRole.Lead) - Number(a.l.role === LayoutRole.Lead) || sizes.indexOf(b.l.size ?? 'm') - sizes.indexOf(a.l.size ?? 'm') || a.li - b.li);
|
|
19578
19703
|
return found[0]?.li ?? -1;
|
|
@@ -19790,7 +19915,7 @@ const ACCENT_GROUND_USES = 2;
|
|
|
19790
19915
|
/** The entrance type that only fades (`entrances` levels): it does not count as a section entering. */
|
|
19791
19916
|
const FADE_ENTRANCE = 'fadeIn';
|
|
19792
19917
|
const inList = (list, v) => typeof v === 'string' && list.includes(v);
|
|
19793
|
-
const wordsOf$
|
|
19918
|
+
const wordsOf$3 = (t) => String(t ?? '').trim().split(/\s+/).filter(Boolean).length;
|
|
19794
19919
|
const span = (r) => (r ? r[1] - r[0] : 0);
|
|
19795
19920
|
const overlaps = (a, b) => {
|
|
19796
19921
|
const ov = (p, q) => p[0] < q[1] && q[0] < p[1];
|
|
@@ -20142,7 +20267,7 @@ function examineLayout(page, ctx, carried, given) {
|
|
|
20142
20267
|
}
|
|
20143
20268
|
if (l.enter === LayoutEnter.ClipReveal && l.from && !inList(V$1.sides, l.from))
|
|
20144
20269
|
add(LayoutIssueCode.Value, `${lp}.from`, V$1.sides.join(' | '));
|
|
20145
|
-
if (l.enter === LayoutEnter.Pop && isText(l) && wordsOf$
|
|
20270
|
+
if (l.enter === LayoutEnter.Pop && isText(l) && wordsOf$3(l.text) > POP_WORDS)
|
|
20146
20271
|
add(LayoutIssueCode.Look, `${lp}.enter`, `pop only on ${POP_WORDS} words or fewer`);
|
|
20147
20272
|
if (l.beat !== undefined && !(Number.isInteger(l.beat) && l.beat >= 0 && l.beat <= BEAT_MAX))
|
|
20148
20273
|
add(LayoutIssueCode.Value, `${lp}.beat`, `0..${BEAT_MAX}`);
|
|
@@ -20205,8 +20330,8 @@ function examineLayout(page, ctx, carried, given) {
|
|
|
20205
20330
|
if (l.kinetic) {
|
|
20206
20331
|
if (!LAYOUT_KINETIC_KINDS.has(l.kind))
|
|
20207
20332
|
add(LayoutIssueCode.Value, `${lp}.kinetic`, 'only a word, a heading or a line of text');
|
|
20208
|
-
if (wordsOf$
|
|
20209
|
-
add(LayoutIssueCode.Look, `${lp}.kinetic`, `${wordsOf$
|
|
20333
|
+
if (wordsOf$3(l.text) > LIM.kineticWords)
|
|
20334
|
+
add(LayoutIssueCode.Look, `${lp}.kinetic`, `${wordsOf$3(l.text)} words — kinetic words hold at most ${LIM.kineticWords}`);
|
|
20210
20335
|
if (!s.pin)
|
|
20211
20336
|
add(LayoutIssueCode.Motion, `${lp}.kinetic`, 'kinetic words light by the scroll of a HELD section');
|
|
20212
20337
|
}
|
|
@@ -21035,19 +21160,19 @@ var FooterGround;
|
|
|
21035
21160
|
})(FooterGround || (FooterGround = {}));
|
|
21036
21161
|
class FooterMixError extends Error {
|
|
21037
21162
|
}
|
|
21038
|
-
const INGREDIENTS$
|
|
21163
|
+
const INGREDIENTS$2 = F.ingredients;
|
|
21039
21164
|
const MEANINGS$1 = F.meanings;
|
|
21040
|
-
const MANY = F.many;
|
|
21041
|
-
const WAITS$
|
|
21165
|
+
const MANY$1 = F.many;
|
|
21166
|
+
const WAITS$2 = F.waits;
|
|
21042
21167
|
/** The footer pattern a plan names when it names none the table knows (the Studio footer). */
|
|
21043
21168
|
const DEFAULT_FOOTER_PATTERN = 'footer.three-column';
|
|
21044
21169
|
/** Every word of an ingredient in the table, waiting ones too. */
|
|
21045
21170
|
function footerTableWords(ingredient) {
|
|
21046
|
-
return INGREDIENTS$
|
|
21171
|
+
return INGREDIENTS$2[ingredient] ?? [];
|
|
21047
21172
|
}
|
|
21048
21173
|
/** The wait of a word, or null when the product draws it. */
|
|
21049
21174
|
function footerWait(ingredient, word) {
|
|
21050
|
-
return WAITS$
|
|
21175
|
+
return WAITS$2[`${ingredient}.${word}`] ?? null;
|
|
21051
21176
|
}
|
|
21052
21177
|
/** The words an ingredient may take — the DRAWN ones, the only ones the wire, the brief and the mender offer
|
|
21053
21178
|
* (ingredients.md §3.3: offering a waiting word would put its stand-in on every site that asked for it). */
|
|
@@ -21066,15 +21191,15 @@ function footerMix(partial = {}) {
|
|
|
21066
21191
|
for (const [k, v] of Object.entries(partial)) {
|
|
21067
21192
|
if (v === undefined)
|
|
21068
21193
|
continue;
|
|
21069
|
-
if (!INGREDIENTS$
|
|
21194
|
+
if (!INGREDIENTS$2[k])
|
|
21070
21195
|
throw new FooterMixError(`no footer ingredient "${k}"`);
|
|
21071
21196
|
const words = typeof v === 'string' ? [v] : v;
|
|
21072
|
-
if (MANY.includes(k) !== (typeof v !== 'string'))
|
|
21073
|
-
throw new FooterMixError(`a footer's ${k} is ${MANY.includes(k) ? 'a list of words' : 'one word'}`);
|
|
21197
|
+
if (MANY$1.includes(k) !== (typeof v !== 'string'))
|
|
21198
|
+
throw new FooterMixError(`a footer's ${k} is ${MANY$1.includes(k) ? 'a list of words' : 'one word'}`);
|
|
21074
21199
|
for (const w of words)
|
|
21075
|
-
if (!INGREDIENTS$
|
|
21200
|
+
if (!INGREDIENTS$2[k].includes(w))
|
|
21076
21201
|
throw new FooterMixError(`a footer's ${k} cannot be "${w}" (${footerWords(k).join(' · ')})`);
|
|
21077
|
-
mix[k] = MANY.includes(k) ? inOrder(k, words) : words[0];
|
|
21202
|
+
mix[k] = MANY$1.includes(k) ? inOrder(k, words) : words[0];
|
|
21078
21203
|
}
|
|
21079
21204
|
return mix;
|
|
21080
21205
|
}
|
|
@@ -21093,7 +21218,7 @@ function footerPatternIdOf(mix) {
|
|
|
21093
21218
|
}
|
|
21094
21219
|
/** A mix on the wire: ONE list of `<ingredient>:<word>` words (the list wire's encoding), `holds` once per block. */
|
|
21095
21220
|
function footerMixWords(mix) {
|
|
21096
|
-
return Object.values(FooterIngredient).flatMap(k => (MANY.includes(k) ? mix[k] : [mix[k]]).map(w => `${k}:${w}`));
|
|
21221
|
+
return Object.values(FooterIngredient).flatMap(k => (MANY$1.includes(k) ? mix[k] : [mix[k]]).map(w => `${k}:${w}`));
|
|
21097
21222
|
}
|
|
21098
21223
|
/** Every `<ingredient>:<word>` the wire may carry: the drawn words only. */
|
|
21099
21224
|
function footerWireWords() {
|
|
@@ -21123,9 +21248,9 @@ function footerMixFromWords(words) {
|
|
|
21123
21248
|
const partial = {};
|
|
21124
21249
|
for (const pair of words) {
|
|
21125
21250
|
const [k, w] = String(pair).split(':');
|
|
21126
|
-
if (!INGREDIENTS$
|
|
21251
|
+
if (!INGREDIENTS$2[k] || !w)
|
|
21127
21252
|
throw new FooterMixError(`"${pair}" is no footer word (<ingredient>:<word>)`);
|
|
21128
|
-
if (MANY.includes(k))
|
|
21253
|
+
if (MANY$1.includes(k))
|
|
21129
21254
|
(partial[k] ??= []).push(w);
|
|
21130
21255
|
else if (partial[k] !== undefined && partial[k] !== w)
|
|
21131
21256
|
throw new FooterMixError(`a footer has one ${k} ("${partial[k]}" and "${w}")`);
|
|
@@ -21242,7 +21367,7 @@ function holdPart(hold, mix) {
|
|
|
21242
21367
|
return { ...node, c: (node.c ?? []).filter(n => n.ph !== 'city') };
|
|
21243
21368
|
}
|
|
21244
21369
|
/** The body: the blocks it holds, arranged. */
|
|
21245
|
-
function bodyOf$
|
|
21370
|
+
function bodyOf$2(mix, ctx) {
|
|
21246
21371
|
const holds = mix.holds.map(h => holdPart(h, mix));
|
|
21247
21372
|
switch (mix.arrange) {
|
|
21248
21373
|
case FooterArrange.Line: {
|
|
@@ -21270,7 +21395,7 @@ function footerPattern(given, ctx) {
|
|
|
21270
21395
|
const plain = mix.ground === FooterGround.Plain;
|
|
21271
21396
|
const call = mix.closing === FooterClosing.Call ? [mix.arrange === FooterArrange.Columns ? part$2('call') : centred(part$2('call'))] : [];
|
|
21272
21397
|
const name = mix.closing === FooterClosing.Name ? [closingName(ctx)] : [];
|
|
21273
|
-
const c = [...(plain ? [part$2('rule')] : []), ...call, ...bodyOf$
|
|
21398
|
+
const c = [...(plain ? [part$2('rule')] : []), ...call, ...bodyOf$2(mix, ctx), ...name];
|
|
21274
21399
|
// The contract's shell; a Section with one child does not stack it (the patterns' rule, build-spec "more than one child").
|
|
21275
21400
|
const { lay, ...shell } = part$2('section');
|
|
21276
21401
|
const node = { ...shell, ...(c.length > 1 && lay ? { lay } : {}), ...(plain ? {} : { scheme: mix.ground }), c };
|
|
@@ -22157,28 +22282,28 @@ class HeaderMixError extends Error {
|
|
|
22157
22282
|
}
|
|
22158
22283
|
/** The header pattern a plan names when it names none the table knows (the Studio header). */
|
|
22159
22284
|
const DEFAULT_HEADER_PATTERN = 'nav.inline-cta';
|
|
22160
|
-
const INGREDIENTS = H.ingredients;
|
|
22161
|
-
const WAITS = H.waits;
|
|
22285
|
+
const INGREDIENTS$1 = H.ingredients;
|
|
22286
|
+
const WAITS$1 = H.waits;
|
|
22162
22287
|
const MEANINGS = H.meanings;
|
|
22163
22288
|
const MEANINGS_HE = (H.meaningsHe ?? {});
|
|
22164
|
-
const HEBREW$
|
|
22289
|
+
const HEBREW$2 = 'he';
|
|
22165
22290
|
/** The words an ingredient may take. */
|
|
22166
22291
|
function headerWords(ingredient) {
|
|
22167
|
-
return INGREDIENTS[ingredient] ?? [];
|
|
22292
|
+
return INGREDIENTS$1[ingredient] ?? [];
|
|
22168
22293
|
}
|
|
22169
22294
|
/** What a word means, as the brief and the builder say it — in Hebrew when the builder speaks it (HI1b, board 4d). */
|
|
22170
22295
|
function headerMeaning(ingredient, word, locale) {
|
|
22171
22296
|
const key = `${ingredient}.${word}`;
|
|
22172
|
-
return (locale === HEBREW$
|
|
22297
|
+
return (locale === HEBREW$2 ? MEANINGS_HE[key] : undefined) ?? MEANINGS[key] ?? word;
|
|
22173
22298
|
}
|
|
22174
22299
|
/** Whether the product draws a word today (a waiting word is never offered — HB-D9). */
|
|
22175
22300
|
function headerWordDrawn(ingredient, word) {
|
|
22176
|
-
return headerWords(ingredient).includes(word) && !WAITS[`${ingredient}.${word}`];
|
|
22301
|
+
return headerWords(ingredient).includes(word) && !WAITS$1[`${ingredient}.${word}`];
|
|
22177
22302
|
}
|
|
22178
22303
|
const GALLERY = (H.gallery ?? []);
|
|
22179
22304
|
/** The gallery, in the contract's order (Studio — the defaults — first), named in `locale` (English unless Hebrew). */
|
|
22180
22305
|
function headerGallery(locale) {
|
|
22181
|
-
const he = locale === HEBREW$
|
|
22306
|
+
const he = locale === HEBREW$2;
|
|
22182
22307
|
return GALLERY.map(g => ({ id: g.id, name: he ? g.nameHe : g.name, words: he ? g.wordsHe : g.words, mix: headerMix(g.mix) }));
|
|
22183
22308
|
}
|
|
22184
22309
|
/** The gallery mix a mix is exactly, or null. */
|
|
@@ -22213,10 +22338,10 @@ function headerMix(partial = {}) {
|
|
|
22213
22338
|
for (const [k, w] of Object.entries(partial)) {
|
|
22214
22339
|
if (w === undefined)
|
|
22215
22340
|
continue;
|
|
22216
|
-
if (!INGREDIENTS[k])
|
|
22341
|
+
if (!INGREDIENTS$1[k])
|
|
22217
22342
|
throw new HeaderMixError(`no header ingredient "${k}"`);
|
|
22218
|
-
if (!INGREDIENTS[k].includes(w))
|
|
22219
|
-
throw new HeaderMixError(`a header's ${k} cannot be "${w}" (${INGREDIENTS[k].join(' · ')})`);
|
|
22343
|
+
if (!INGREDIENTS$1[k].includes(w))
|
|
22344
|
+
throw new HeaderMixError(`a header's ${k} cannot be "${w}" (${INGREDIENTS$1[k].join(' · ')})`);
|
|
22220
22345
|
mix[k] = w;
|
|
22221
22346
|
}
|
|
22222
22347
|
return mix;
|
|
@@ -22238,7 +22363,7 @@ function drawnHeaderMix(mix) {
|
|
|
22238
22363
|
const drawn = { ...mix };
|
|
22239
22364
|
const gaps = [];
|
|
22240
22365
|
for (const k of Object.values(HeaderIngredient)) {
|
|
22241
|
-
const wait = WAITS[`${k}.${mix[k]}`];
|
|
22366
|
+
const wait = WAITS$1[`${k}.${mix[k]}`];
|
|
22242
22367
|
if (!wait)
|
|
22243
22368
|
continue;
|
|
22244
22369
|
gaps.push({ ingredient: k, word: mix[k], phase: wait.phase, drawnAs: wait.drawnAs });
|
|
@@ -22275,7 +22400,7 @@ function headerMixWords(mix) {
|
|
|
22275
22400
|
/** Every `<ingredient>:<word>` the wire may carry: only the words the product DRAWS (ingredients.md §3) — a waiting word
|
|
22276
22401
|
* is never offered, so the model never chooses what the site would show as something else. */
|
|
22277
22402
|
function headerWireWords() {
|
|
22278
|
-
return Object.values(HeaderIngredient).flatMap(k => headerWords(k).filter(w => !WAITS[`${k}.${w}`]).map(w => `${k}:${w}`));
|
|
22403
|
+
return Object.values(HeaderIngredient).flatMap(k => headerWords(k).filter(w => !WAITS$1[`${k}.${w}`]).map(w => `${k}:${w}`));
|
|
22279
22404
|
}
|
|
22280
22405
|
/** The words back into a mix: an ingredient not named is the default. Refuses an unknown word and two words for one
|
|
22281
22406
|
* ingredient. */
|
|
@@ -22283,7 +22408,7 @@ function headerMixFromWords(words) {
|
|
|
22283
22408
|
const partial = {};
|
|
22284
22409
|
for (const pair of words) {
|
|
22285
22410
|
const [k, w] = String(pair).split(':');
|
|
22286
|
-
if (!INGREDIENTS[k] || !w)
|
|
22411
|
+
if (!INGREDIENTS$1[k] || !w)
|
|
22287
22412
|
throw new HeaderMixError(`"${pair}" is no header word (<ingredient>:<word>)`);
|
|
22288
22413
|
if (partial[k] !== undefined && partial[k] !== w)
|
|
22289
22414
|
throw new HeaderMixError(`a header has one ${k} ("${partial[k]}" and "${w}")`);
|
|
@@ -22412,7 +22537,7 @@ function keptInBar(mix, ctx) {
|
|
|
22412
22537
|
return { pinned, actions };
|
|
22413
22538
|
}
|
|
22414
22539
|
/** The root's children for the mix (the menu button is the phone shape's — `planNavShape` places it). */
|
|
22415
|
-
function bodyOf(mix, ctx) {
|
|
22540
|
+
function bodyOf$1(mix, ctx) {
|
|
22416
22541
|
const brand = part('brand');
|
|
22417
22542
|
const links = (more, lay = {}) => ({ ...laid(part('links'), lay), c: [part('link'), ...more] });
|
|
22418
22543
|
const flex = { display: 'flex', flexWrap: 'nowrap', justifyContent: 'space-between', alignItems: 'center', gap: GAP };
|
|
@@ -22467,7 +22592,7 @@ function headerRecipe(mix, ctx) {
|
|
|
22467
22592
|
const everyWidth = behindMenu(mix);
|
|
22468
22593
|
const menuSide = mix.menuSide === MenuSide.Start ? MenuSide.Start : MenuSide.End;
|
|
22469
22594
|
const stored = SITE_PATTERNS[headerPatternIdOf(mix) ?? ''];
|
|
22470
|
-
const { lay, resp, c } = bodyOf(mix, ctx);
|
|
22595
|
+
const { lay, resp, c } = bodyOf$1(mix, ctx);
|
|
22471
22596
|
const node = { ...part('root'), lay, ...(resp ? { resp } : {}), c };
|
|
22472
22597
|
const pattern = {
|
|
22473
22598
|
family: 'nav',
|
|
@@ -22491,7 +22616,7 @@ const MEND_ORDER = [
|
|
|
22491
22616
|
HeaderIngredient.Reveal, HeaderIngredient.Button,
|
|
22492
22617
|
];
|
|
22493
22618
|
/** The words of an ingredient the product draws. */
|
|
22494
|
-
const drawnWords = (k) => headerWords(k).filter(w => !WAITS[`${k}.${w}`]);
|
|
22619
|
+
const drawnWords = (k) => headerWords(k).filter(w => !WAITS$1[`${k}.${w}`]);
|
|
22495
22620
|
/**
|
|
22496
22621
|
* A header no other site wears: the mix when its token is free, else the nearest mix whose token is — one changed
|
|
22497
22622
|
* ingredient before two, in `MEND_ORDER` — that the site can carry as it is (`checkHeader` mends nothing), and said. When
|
|
@@ -22555,6 +22680,577 @@ function withDistinctHeader(plan, taken) {
|
|
|
22555
22680
|
return { plan: { ...plan, mixes: { ...(plan.mixes ?? {}), header: headerMixWords(done.mix) } }, repairs: done.repairs };
|
|
22556
22681
|
}
|
|
22557
22682
|
|
|
22683
|
+
/**
|
|
22684
|
+
* THE OPENING (award-ingredients-plan §3.3, AW8; board award-opening, OB-1…OB-7): a page's first screen is a MIX — its
|
|
22685
|
+
* frame, what fills it, how its words sit, small extras and its own motion — never one hero pattern. Every word, its
|
|
22686
|
+
* meaning in both languages, whether the product draws it, its tier, the named mixes stored plans use, the gallery and the
|
|
22687
|
+
* references live in ONE table, the contract's `site.layout.opening` (layout.mjs `OPENING`). This module reads it, judges
|
|
22688
|
+
* a mix against the site (`checkOpening`) and arranges it (`openingRecipe` — ONE recipe for the palette, the Opening
|
|
22689
|
+
* studio and the generator, R-H9). Pure.
|
|
22690
|
+
*
|
|
22691
|
+
* Every opening is the same skeleton, so a re-mix keeps the owner's parts (OB-4) and a phone recomposes by rule:
|
|
22692
|
+
*
|
|
22693
|
+
* Section `opening` (the page's ground; the inset's margin)
|
|
22694
|
+
* └ Container `opening.frame` (the coloured first screen: its scheme, its clip — inset or settling — its height)
|
|
22695
|
+
* ├ the media layer `opening.media` · `opening.media-zooms` · `opening.film` · `opening.slides` · `opening.object`
|
|
22696
|
+
* │ · `opening.pair` › (`opening.media`, `opening.second`)
|
|
22697
|
+
* ├ `opening.scrim` when display words sit straight on the media
|
|
22698
|
+
* ├ the words `opening.words` › `opening.title` (h1) · `opening.lead` · `opening.action` (or `opening.apart`)
|
|
22699
|
+
* ├ `opening.aside` the line and the action when the title is display-size (on the edge, apart, large, behind)
|
|
22700
|
+
* ├ `opening.cutout` the picture in front of the name (behind)
|
|
22701
|
+
* ├ `opening.form` the lead form (a working form first)
|
|
22702
|
+
* └ extras `opening.card` · `opening.badge` · `opening.cue`
|
|
22703
|
+
*/
|
|
22704
|
+
const O = SPEC_SITE_LAYOUT.opening;
|
|
22705
|
+
/** The ingredients, by the contract's keys (held equal to it by opening-mix.spec). */
|
|
22706
|
+
var OpeningIngredient;
|
|
22707
|
+
(function (OpeningIngredient) {
|
|
22708
|
+
OpeningIngredient["Frame"] = "frame";
|
|
22709
|
+
OpeningIngredient["Media"] = "media";
|
|
22710
|
+
OpeningIngredient["Words"] = "words";
|
|
22711
|
+
OpeningIngredient["Extras"] = "extras";
|
|
22712
|
+
OpeningIngredient["Motion"] = "motion";
|
|
22713
|
+
})(OpeningIngredient || (OpeningIngredient = {}));
|
|
22714
|
+
var OpeningFrame;
|
|
22715
|
+
(function (OpeningFrame) {
|
|
22716
|
+
OpeningFrame["Full"] = "full";
|
|
22717
|
+
OpeningFrame["Inset"] = "inset";
|
|
22718
|
+
OpeningFrame["Shrinks"] = "shrinks";
|
|
22719
|
+
OpeningFrame["Grows"] = "grows";
|
|
22720
|
+
})(OpeningFrame || (OpeningFrame = {}));
|
|
22721
|
+
var OpeningMedia;
|
|
22722
|
+
(function (OpeningMedia) {
|
|
22723
|
+
OpeningMedia["Photo"] = "photo";
|
|
22724
|
+
OpeningMedia["Film"] = "film";
|
|
22725
|
+
OpeningMedia["Slideshow"] = "slideshow";
|
|
22726
|
+
OpeningMedia["Object"] = "object";
|
|
22727
|
+
OpeningMedia["Diptych"] = "diptych";
|
|
22728
|
+
OpeningMedia["Material"] = "material";
|
|
22729
|
+
OpeningMedia["Live"] = "live";
|
|
22730
|
+
})(OpeningMedia || (OpeningMedia = {}));
|
|
22731
|
+
var OpeningWords;
|
|
22732
|
+
(function (OpeningWords) {
|
|
22733
|
+
OpeningWords["Headline"] = "headline";
|
|
22734
|
+
OpeningWords["OnEdge"] = "on-edge";
|
|
22735
|
+
OpeningWords["Apart"] = "apart";
|
|
22736
|
+
OpeningWords["Wordmark"] = "wordmark";
|
|
22737
|
+
OpeningWords["Behind"] = "behind";
|
|
22738
|
+
OpeningWords["None"] = "none";
|
|
22739
|
+
})(OpeningWords || (OpeningWords = {}));
|
|
22740
|
+
var OpeningExtra;
|
|
22741
|
+
(function (OpeningExtra) {
|
|
22742
|
+
OpeningExtra["Card"] = "card";
|
|
22743
|
+
OpeningExtra["Badge"] = "badge";
|
|
22744
|
+
OpeningExtra["Cue"] = "cue";
|
|
22745
|
+
})(OpeningExtra || (OpeningExtra = {}));
|
|
22746
|
+
var OpeningMotion;
|
|
22747
|
+
(function (OpeningMotion) {
|
|
22748
|
+
OpeningMotion["SlowZoom"] = "slow-zoom";
|
|
22749
|
+
OpeningMotion["CopyOut"] = "copy-out";
|
|
22750
|
+
OpeningMotion["PinnedCovered"] = "pinned-covered";
|
|
22751
|
+
})(OpeningMotion || (OpeningMotion = {}));
|
|
22752
|
+
class OpeningMixError extends Error {
|
|
22753
|
+
}
|
|
22754
|
+
/** The opening's parts — each a role, so a re-mix finds the owner's part wherever the new mix puts it. */
|
|
22755
|
+
var OpeningRole;
|
|
22756
|
+
(function (OpeningRole) {
|
|
22757
|
+
OpeningRole["Root"] = "opening";
|
|
22758
|
+
OpeningRole["Frame"] = "opening.frame";
|
|
22759
|
+
/** The frame that settles from the full screen into the inset card, once, as the page loads. */
|
|
22760
|
+
OpeningRole["FrameSettles"] = "opening.frame-settles";
|
|
22761
|
+
OpeningRole["Media"] = "opening.media";
|
|
22762
|
+
/** A picture that slowly comes closer (slow zoom). */
|
|
22763
|
+
OpeningRole["MediaZooms"] = "opening.media-zooms";
|
|
22764
|
+
OpeningRole["Second"] = "opening.second";
|
|
22765
|
+
OpeningRole["Pair"] = "opening.pair";
|
|
22766
|
+
OpeningRole["Film"] = "opening.film";
|
|
22767
|
+
OpeningRole["Slides"] = "opening.slides";
|
|
22768
|
+
OpeningRole["Object"] = "opening.object";
|
|
22769
|
+
OpeningRole["Scrim"] = "opening.scrim";
|
|
22770
|
+
OpeningRole["Words"] = "opening.words";
|
|
22771
|
+
OpeningRole["Title"] = "opening.title";
|
|
22772
|
+
OpeningRole["Lead"] = "opening.lead";
|
|
22773
|
+
OpeningRole["Action"] = "opening.action";
|
|
22774
|
+
OpeningRole["Apart"] = "opening.apart";
|
|
22775
|
+
/** The second and third of the words placed apart. */
|
|
22776
|
+
OpeningRole["ApartWord"] = "opening.apart-word";
|
|
22777
|
+
OpeningRole["Aside"] = "opening.aside";
|
|
22778
|
+
OpeningRole["Cutout"] = "opening.cutout";
|
|
22779
|
+
OpeningRole["Form"] = "opening.form";
|
|
22780
|
+
OpeningRole["Card"] = "opening.card";
|
|
22781
|
+
OpeningRole["Badge"] = "opening.badge";
|
|
22782
|
+
OpeningRole["Cue"] = "opening.cue";
|
|
22783
|
+
})(OpeningRole || (OpeningRole = {}));
|
|
22784
|
+
/** The props key an opening root stores its mix under (OB-5, as `HeaderTrait.Mix`). */
|
|
22785
|
+
const OPENING_MIX_PROP = 'openingMix';
|
|
22786
|
+
const HEBREW$1 = 'he';
|
|
22787
|
+
const INGREDIENTS = O.ingredients;
|
|
22788
|
+
const MANY = new Set(O.many);
|
|
22789
|
+
const WAITS = O.waits;
|
|
22790
|
+
const ORDER = Object.values(OpeningIngredient);
|
|
22791
|
+
const isMany = (k) => MANY.has(k);
|
|
22792
|
+
/** The words an ingredient may take, in the table's order. */
|
|
22793
|
+
function openingWords$1(ingredient) {
|
|
22794
|
+
return INGREDIENTS[ingredient] ?? [];
|
|
22795
|
+
}
|
|
22796
|
+
/** What a word means — in Hebrew when the builder speaks it. */
|
|
22797
|
+
function openingMeaning(ingredient, word, locale) {
|
|
22798
|
+
const key = `${ingredient}.${word}`;
|
|
22799
|
+
return (locale === HEBREW$1 ? O.meaningsHe?.[key] : undefined) ?? O.meanings[key] ?? word;
|
|
22800
|
+
}
|
|
22801
|
+
/** Whether the product draws a word today (OB-7: a waiting word is listed with its phase, drawn as its stand-in). */
|
|
22802
|
+
function openingWordDrawn(ingredient, word) {
|
|
22803
|
+
return openingWords$1(ingredient).includes(word) && !WAITS[`${ingredient}.${word}`];
|
|
22804
|
+
}
|
|
22805
|
+
/** The phase a waiting word waits for, or null. */
|
|
22806
|
+
function openingWordWaits(ingredient, word) {
|
|
22807
|
+
return WAITS[`${ingredient}.${word}`]?.phase ?? null;
|
|
22808
|
+
}
|
|
22809
|
+
/** AW-D23: a word every plan wears (`all`) or one the award tier alone is offered (`pro`). */
|
|
22810
|
+
function openingWordTier(ingredient, word) {
|
|
22811
|
+
return O.tiers[`${ingredient}.${word}`] === 'pro' ? 'pro' : 'all';
|
|
22812
|
+
}
|
|
22813
|
+
/** May a build at `tier` wear this word? */
|
|
22814
|
+
function openingWordOffered(ingredient, word, tier) {
|
|
22815
|
+
return openingWordTier(ingredient, word) === 'all' || tier === GenerationTier.Award;
|
|
22816
|
+
}
|
|
22817
|
+
const listOf$1 = (v) => (v === undefined ? [] : Array.isArray(v) ? [...v] : [v]);
|
|
22818
|
+
/** A many-ingredient's words once each, in the table's order. */
|
|
22819
|
+
const ordered = (k, words) => openingWords$1(k).filter(w => words.includes(w));
|
|
22820
|
+
/** A whole mix from part of one: what is not named is the default (a picture, edge to edge, a heading). Refuses a word
|
|
22821
|
+
* the table lacks. */
|
|
22822
|
+
function openingMix(partial = {}) {
|
|
22823
|
+
const mix = {
|
|
22824
|
+
frame: O.defaults['frame'], media: O.defaults['media'], words: O.defaults['words'],
|
|
22825
|
+
extras: listOf$1(O.defaults['extras']), motion: listOf$1(O.defaults['motion']),
|
|
22826
|
+
};
|
|
22827
|
+
for (const [k, v] of Object.entries(partial)) {
|
|
22828
|
+
if (v === undefined)
|
|
22829
|
+
continue;
|
|
22830
|
+
if (!INGREDIENTS[k])
|
|
22831
|
+
throw new OpeningMixError(`no opening ingredient "${k}"`);
|
|
22832
|
+
const words = listOf$1(v);
|
|
22833
|
+
for (const w of words)
|
|
22834
|
+
if (!INGREDIENTS[k].includes(w))
|
|
22835
|
+
throw new OpeningMixError(`an opening's ${k} cannot be "${w}" (${INGREDIENTS[k].join(' · ')})`);
|
|
22836
|
+
if (isMany(k))
|
|
22837
|
+
mix[k] = ordered(k, words);
|
|
22838
|
+
else if (words.length !== 1)
|
|
22839
|
+
throw new OpeningMixError(`an opening has one ${k}`);
|
|
22840
|
+
else
|
|
22841
|
+
mix[k] = words[0];
|
|
22842
|
+
}
|
|
22843
|
+
return mix;
|
|
22844
|
+
}
|
|
22845
|
+
/** The mix with one word changed — a many-ingredient's word toggled on or off. */
|
|
22846
|
+
function withOpeningWord(mix, ingredient, word, on = true) {
|
|
22847
|
+
if (!isMany(ingredient))
|
|
22848
|
+
return openingMix({ ...mix, [ingredient]: word });
|
|
22849
|
+
const words = mix[ingredient].filter(w => w !== word);
|
|
22850
|
+
return openingMix({ ...mix, [ingredient]: on ? [...words, word] : words });
|
|
22851
|
+
}
|
|
22852
|
+
/** A mix on the wire, and as an opening root stores it: one `<ingredient>:<word>` per word, in the table's order. */
|
|
22853
|
+
function openingMixWords(mix) {
|
|
22854
|
+
return ORDER.flatMap(k => listOf$1(mix[k]).map(w => `${k}:${w}`));
|
|
22855
|
+
}
|
|
22856
|
+
/** The words back into a mix. Refuses an unknown word and two words for a one-word ingredient. */
|
|
22857
|
+
function openingMixFromWords(words) {
|
|
22858
|
+
const partial = {};
|
|
22859
|
+
for (const pair of words) {
|
|
22860
|
+
const [k, w] = String(pair).split(':');
|
|
22861
|
+
if (!INGREDIENTS[k] || !w)
|
|
22862
|
+
throw new OpeningMixError(`"${pair}" is no opening word (<ingredient>:<word>)`);
|
|
22863
|
+
const got = (partial[k] ??= []);
|
|
22864
|
+
if (!isMany(k) && got.length && got[0] !== w)
|
|
22865
|
+
throw new OpeningMixError(`an opening has one ${k} ("${got[0]}" and "${w}")`);
|
|
22866
|
+
if (!got.includes(w))
|
|
22867
|
+
got.push(w);
|
|
22868
|
+
}
|
|
22869
|
+
return openingMix(Object.fromEntries(Object.entries(partial).map(([k, v]) => [k, isMany(k) ? v : v[0]])));
|
|
22870
|
+
}
|
|
22871
|
+
/** A site plan's opening (AW8): its `mixes.opening` as a mix, or null — absent or empty, the home page opens with its
|
|
22872
|
+
* sections as written. Refuses a word the table lacks (the validator says it first). */
|
|
22873
|
+
function openingMixOfPlan(plan) {
|
|
22874
|
+
const words = plan.mixes?.opening;
|
|
22875
|
+
return words?.length ? openingMixFromWords(words) : null;
|
|
22876
|
+
}
|
|
22877
|
+
/** The mix as stored on a root: its words, space-separated. */
|
|
22878
|
+
function openingMixValue(mix) {
|
|
22879
|
+
return openingMixWords(mix).join(' ');
|
|
22880
|
+
}
|
|
22881
|
+
/** Writes the mix on an opening root (its props). */
|
|
22882
|
+
function stampOpeningMix(root, mix) {
|
|
22883
|
+
root.props = { ...root.props, [OPENING_MIX_PROP]: openingMixValue(mix) };
|
|
22884
|
+
}
|
|
22885
|
+
/** The mix an opening root stores, or null — none stored, or words the table no longer knows. */
|
|
22886
|
+
function storedOpeningMix(root) {
|
|
22887
|
+
const value = root?.props?.[OPENING_MIX_PROP];
|
|
22888
|
+
if (typeof value !== 'string' || !value.trim())
|
|
22889
|
+
return null;
|
|
22890
|
+
try {
|
|
22891
|
+
return openingMixFromWords(value.trim().split(/\s+/));
|
|
22892
|
+
}
|
|
22893
|
+
catch {
|
|
22894
|
+
return null;
|
|
22895
|
+
}
|
|
22896
|
+
}
|
|
22897
|
+
/** The mix a stored hero pattern id stands for (`hero.split`, `hero.full-bleed-media`, `hero.scene-object`), or null. */
|
|
22898
|
+
function namedOpeningMix(patternId) {
|
|
22899
|
+
const named = O.named[patternId];
|
|
22900
|
+
return named ? openingMix(named) : null;
|
|
22901
|
+
}
|
|
22902
|
+
/** The stored hero pattern a mix is exactly, else null. */
|
|
22903
|
+
function openingPatternIdOf(mix) {
|
|
22904
|
+
const key = openingMixValue(mix);
|
|
22905
|
+
return Object.keys(O.named).find(id => openingMixValue(namedOpeningMix(id)) === key) ?? null;
|
|
22906
|
+
}
|
|
22907
|
+
/** The gallery, in the contract's order (the defaults first), named in `locale` (English unless Hebrew). */
|
|
22908
|
+
function openingGallery(locale) {
|
|
22909
|
+
const he = locale === HEBREW$1;
|
|
22910
|
+
return (O.gallery ?? []).map(g => ({ id: g.id, name: he ? g.nameHe : g.name, words: he ? g.wordsHe : g.words, mix: openingMix(g.mix) }));
|
|
22911
|
+
}
|
|
22912
|
+
/** The gallery mix a mix is exactly, or null. */
|
|
22913
|
+
function openingGalleryIdOf(mix) {
|
|
22914
|
+
const key = openingMixValue(mix);
|
|
22915
|
+
return (O.gallery ?? []).find(g => openingMixValue(openingMix(g.mix)) === key)?.id ?? null;
|
|
22916
|
+
}
|
|
22917
|
+
/** The award readings' openings (§3.3), each a whole mix — Start from lists them after the gallery. */
|
|
22918
|
+
function openingReferences() {
|
|
22919
|
+
return O.references.map(r => ({ id: r.id, after: r.after, mix: openingMix(r.mix) }));
|
|
22920
|
+
}
|
|
22921
|
+
/** The mix the product DRAWS today: a waiting word becomes its stand-in (a many-ingredient's is left out), each said. */
|
|
22922
|
+
function drawnOpeningMix(mix) {
|
|
22923
|
+
const drawn = { ...mix, extras: [...mix.extras], motion: [...mix.motion] };
|
|
22924
|
+
const gaps = [];
|
|
22925
|
+
for (const k of ORDER) {
|
|
22926
|
+
if (isMany(k)) {
|
|
22927
|
+
drawn[k] = mix[k].filter(w => {
|
|
22928
|
+
const wait = WAITS[`${k}.${w}`];
|
|
22929
|
+
if (wait)
|
|
22930
|
+
gaps.push({ ingredient: k, word: w, phase: wait.phase, drawnAs: wait.drawnAs });
|
|
22931
|
+
return !wait;
|
|
22932
|
+
});
|
|
22933
|
+
continue;
|
|
22934
|
+
}
|
|
22935
|
+
const word = mix[k];
|
|
22936
|
+
const wait = WAITS[`${k}.${word}`];
|
|
22937
|
+
if (!wait)
|
|
22938
|
+
continue;
|
|
22939
|
+
gaps.push({ ingredient: k, word, phase: wait.phase, drawnAs: wait.drawnAs });
|
|
22940
|
+
drawn[k] = wait.drawnAs ?? O.defaults[k];
|
|
22941
|
+
}
|
|
22942
|
+
return { drawn, gaps };
|
|
22943
|
+
}
|
|
22944
|
+
/** The fingerprint's prefix for an opening. */
|
|
22945
|
+
const OPENING_TOKEN = 'opening';
|
|
22946
|
+
/** An opening as the fingerprint sees it: `opening:<frame>/<media>/<words>` — what a visitor takes in at once. */
|
|
22947
|
+
function openingTokenOf(mix) {
|
|
22948
|
+
return `${OPENING_TOKEN}:${O.fingerprint.map(k => mix[k]).join('/')}`;
|
|
22949
|
+
}
|
|
22950
|
+
/** Every `<ingredient>:<word>` the generator's wire may carry at `tier`: drawn words only (a waiting word is never
|
|
22951
|
+
* offered), and the award tier's only at the award tier. */
|
|
22952
|
+
function openingWireWords(tier = GenerationTier.Basic) {
|
|
22953
|
+
return ORDER.flatMap(k => openingWords$1(k).filter(w => openingWordDrawn(k, w) && openingWordOffered(k, w, tier)).map(w => `${k}:${w}`));
|
|
22954
|
+
}
|
|
22955
|
+
// ── The check: a mix judged against the site, mended where the site cannot carry it, each mend said ──────────────────
|
|
22956
|
+
var OpeningRepairCode;
|
|
22957
|
+
(function (OpeningRepairCode) {
|
|
22958
|
+
/** A word the award tier alone wears, on a site built below it. */
|
|
22959
|
+
OpeningRepairCode["ProOnly"] = "pro-only";
|
|
22960
|
+
/** The name behind the subject needs a cut-out picture: the name, large. */
|
|
22961
|
+
OpeningRepairCode["NeedsCutOut"] = "needs-cut-out";
|
|
22962
|
+
/** "The film is the message" needs a film or pictures that move: a heading. */
|
|
22963
|
+
OpeningRepairCode["NoneNeedsFilm"] = "none-needs-film";
|
|
22964
|
+
/** Words placed apart need two or three of them. */
|
|
22965
|
+
OpeningRepairCode["ApartWords"] = "apart-words";
|
|
22966
|
+
/** A display-size name would be cut by a phone, or too small on a laptop (R-H6): a heading. */
|
|
22967
|
+
OpeningRepairCode["NameTooLong"] = "name-too-long";
|
|
22968
|
+
/** A badge is the owner's own (never invented): left out until they give one. */
|
|
22969
|
+
OpeningRepairCode["BadgeOwnersOnly"] = "badge-owners-only";
|
|
22970
|
+
/** A form is already the card in the first screen. */
|
|
22971
|
+
OpeningRepairCode["OneCard"] = "one-card";
|
|
22972
|
+
/** A slow zoom moves a still picture. */
|
|
22973
|
+
OpeningRepairCode["ZoomOnAPicture"] = "zoom-on-a-picture";
|
|
22974
|
+
})(OpeningRepairCode || (OpeningRepairCode = {}));
|
|
22975
|
+
/** A display word must stand this large on a 1440 laptop, and the longest word fit a 375 phone at this size (px). */
|
|
22976
|
+
const LAPTOP_PX = 1440;
|
|
22977
|
+
const PHONE_PX = 375;
|
|
22978
|
+
const MIN_LAPTOP_DISPLAY_PX = 88;
|
|
22979
|
+
const MIN_PHONE_DISPLAY_PX = 36;
|
|
22980
|
+
/** What the frame keeps beside a display line (its inset and a little air), per side. */
|
|
22981
|
+
const LAPTOP_SIDE_PX = 32;
|
|
22982
|
+
const PHONE_SIDE_PX = 24;
|
|
22983
|
+
const faceOf = (ctx) => elementStyleFace(ctx.design ?? resolveDesignChoices({}), 'display');
|
|
22984
|
+
const nameWords = (name) => name.trim().split(/\s+/).filter(Boolean);
|
|
22985
|
+
/** How wide the name stands, in em of the display face: the whole line, and its longest word. */
|
|
22986
|
+
function nameEm(ctx) {
|
|
22987
|
+
const face = faceOf(ctx);
|
|
22988
|
+
const words = nameWords(ctx.name);
|
|
22989
|
+
return {
|
|
22990
|
+
line: textWidthEm(words.join(' '), face),
|
|
22991
|
+
longest: Math.max(0, ...words.map(w => textWidthEm(w, face))),
|
|
22992
|
+
};
|
|
22993
|
+
}
|
|
22994
|
+
/** A display-size name fits: one line across a laptop at a size that reads, and every word across a phone (R-H6). */
|
|
22995
|
+
function nameFits(ctx, oneLine) {
|
|
22996
|
+
const { line, longest } = nameEm(ctx);
|
|
22997
|
+
if (!longest)
|
|
22998
|
+
return false;
|
|
22999
|
+
const laptopOk = !oneLine || (LAPTOP_PX - 2 * LAPTOP_SIDE_PX) / line >= MIN_LAPTOP_DISPLAY_PX;
|
|
23000
|
+
return laptopOk && (PHONE_PX - 2 * PHONE_SIDE_PX) / longest >= MIN_PHONE_DISPLAY_PX;
|
|
23001
|
+
}
|
|
23002
|
+
/** The stand-in for a word a tier may not wear: the one-word ingredients' defaults; a many-ingredient's word left out. */
|
|
23003
|
+
function tierStandIn(k) {
|
|
23004
|
+
return O.defaults[k];
|
|
23005
|
+
}
|
|
23006
|
+
/**
|
|
23007
|
+
* The ONE judge of an opening mix against the site: what the site cannot carry is mended to the nearest mix it can, and
|
|
23008
|
+
* each mend is said. Judges the mix as DRAWN (`drawnOpeningMix` first). Never throws on a well-formed mix. Pure.
|
|
23009
|
+
*/
|
|
23010
|
+
function checkOpening(mix, ctx) {
|
|
23011
|
+
const m = { ...mix, extras: [...mix.extras], motion: [...mix.motion] };
|
|
23012
|
+
const repairs = [];
|
|
23013
|
+
const say = (code, said) => repairs.push({ code, said });
|
|
23014
|
+
if (ctx.tier && ctx.tier !== GenerationTier.Award) {
|
|
23015
|
+
for (const k of ORDER) {
|
|
23016
|
+
if (isMany(k)) {
|
|
23017
|
+
const kept = m[k].filter(w => openingWordTier(k, w) === 'all');
|
|
23018
|
+
for (const w of m[k].filter(x => !kept.includes(x)))
|
|
23019
|
+
say(OpeningRepairCode.ProOnly, `"${openingMeaning(k, w)}" comes with the award plan: left out`);
|
|
23020
|
+
m[k] = kept;
|
|
23021
|
+
continue;
|
|
23022
|
+
}
|
|
23023
|
+
const word = m[k];
|
|
23024
|
+
if (openingWordTier(k, word) === 'all')
|
|
23025
|
+
continue;
|
|
23026
|
+
m[k] = tierStandIn(k);
|
|
23027
|
+
say(OpeningRepairCode.ProOnly, `"${openingMeaning(k, word)}" comes with the award plan: ${openingMeaning(k, tierStandIn(k))} instead`);
|
|
23028
|
+
}
|
|
23029
|
+
}
|
|
23030
|
+
if (m.words === OpeningWords.Behind && !ctx.cutOut) {
|
|
23031
|
+
m.words = OpeningWords.Wordmark;
|
|
23032
|
+
say(OpeningRepairCode.NeedsCutOut, 'the name behind the subject needs a cut-out picture: the name, large, until there is one');
|
|
23033
|
+
}
|
|
23034
|
+
if (m.words === OpeningWords.None && m.media !== OpeningMedia.Film && m.media !== OpeningMedia.Slideshow) {
|
|
23035
|
+
m.words = OpeningWords.Headline;
|
|
23036
|
+
say(OpeningRepairCode.NoneNeedsFilm, 'one small line leaves the message to a film or moving pictures: a heading, a line and one action');
|
|
23037
|
+
}
|
|
23038
|
+
if (m.words === OpeningWords.Apart) {
|
|
23039
|
+
const count = nameWords(ctx.name).length;
|
|
23040
|
+
if (count < 2 || count > 3) {
|
|
23041
|
+
m.words = nameFits(ctx, true) ? OpeningWords.Wordmark : OpeningWords.Headline;
|
|
23042
|
+
say(OpeningRepairCode.ApartWords, `words placed apart need two or three of them ("${ctx.name}" has ${count}): ${openingMeaning(OpeningIngredient.Words, m.words)}`);
|
|
23043
|
+
}
|
|
23044
|
+
else if (!nameFits(ctx, false)) {
|
|
23045
|
+
m.words = OpeningWords.Headline;
|
|
23046
|
+
say(OpeningRepairCode.NameTooLong, `a word of "${ctx.name}" would be cut on a phone: a heading, a line and one action`);
|
|
23047
|
+
}
|
|
23048
|
+
}
|
|
23049
|
+
const oneLine = m.words === OpeningWords.OnEdge || m.words === OpeningWords.Wordmark || m.words === OpeningWords.Behind;
|
|
23050
|
+
if (oneLine && !nameFits(ctx, true)) {
|
|
23051
|
+
const was = m.words;
|
|
23052
|
+
m.words = OpeningWords.Headline;
|
|
23053
|
+
say(OpeningRepairCode.NameTooLong, `"${ctx.name}" is too long to stand ${was === OpeningWords.OnEdge ? 'on the edge' : 'full width'} without being cut or too small: a heading, a line and one action`);
|
|
23054
|
+
}
|
|
23055
|
+
if (m.extras.includes(OpeningExtra.Badge) && ctx.badge === null) {
|
|
23056
|
+
m.extras = m.extras.filter(w => w !== OpeningExtra.Badge);
|
|
23057
|
+
say(OpeningRepairCode.BadgeOwnersOnly, 'a badge says the owner\'s own award or offer — left out until they give one');
|
|
23058
|
+
}
|
|
23059
|
+
if (m.media === OpeningMedia.Live && m.extras.includes(OpeningExtra.Card)) {
|
|
23060
|
+
m.extras = m.extras.filter(w => w !== OpeningExtra.Card);
|
|
23061
|
+
say(OpeningRepairCode.OneCard, 'the form is the first screen\'s card: the small card is left out');
|
|
23062
|
+
}
|
|
23063
|
+
const still = m.media === OpeningMedia.Photo || m.media === OpeningMedia.Diptych || m.media === OpeningMedia.Live;
|
|
23064
|
+
if (m.motion.includes(OpeningMotion.SlowZoom) && !still) {
|
|
23065
|
+
m.motion = m.motion.filter(w => w !== OpeningMotion.SlowZoom);
|
|
23066
|
+
say(OpeningRepairCode.ZoomOnAPicture, 'a slow zoom moves a still picture: left out on moving pictures');
|
|
23067
|
+
}
|
|
23068
|
+
return { mix: m, repairs };
|
|
23069
|
+
}
|
|
23070
|
+
// ── The recipe: the mix arranged as ordinary builder nodes (ONE recipe for the palette, the studio and the generator) ──
|
|
23071
|
+
//
|
|
23072
|
+
// Only what is the same in both directions is written on the nodes; which INLINE side a part sits on (the badge, the card,
|
|
23073
|
+
// the cue at the end) and the two motions are the shared stylesheet's (`styles/iox-design.css`, AW8), in logical insets,
|
|
23074
|
+
// so a Hebrew site mirrors them.
|
|
23075
|
+
/** How tall the first screen stands: a little less than the window, so the next section's edge says "there is more". */
|
|
23076
|
+
const OPENING_HEIGHT = '88svh';
|
|
23077
|
+
const INSET_LAPTOP = '24px';
|
|
23078
|
+
const ABS_FILL = { position: 'absolute', top: '0px', left: '0px', width: '100%', height: '100%', zIndex: '0' };
|
|
23079
|
+
const MEDIA_FILL = { ...ABS_FILL, aspectRatio: 'auto', borderRadius: '0px', objectFit: 'cover' };
|
|
23080
|
+
const OVER = (z) => ({ position: 'relative', zIndex: String(z) });
|
|
23081
|
+
const FRAME_PAD = 'clamp(20px, 4vw, 56px)';
|
|
23082
|
+
/** A display line is sized a little under its measured width, so a rounding never wraps it. */
|
|
23083
|
+
const FIT = 0.95;
|
|
23084
|
+
/** The phone's inset: within the contract's 8–16 px at every phone width. */
|
|
23085
|
+
function openingPhoneInset() {
|
|
23086
|
+
const [lo, hi] = O.rules.phoneInsetPx;
|
|
23087
|
+
return `clamp(${lo}px, 3vw, ${hi}px)`;
|
|
23088
|
+
}
|
|
23089
|
+
const insetClip = (inset) => `inset(${inset} round var(--iox-card-radius))`;
|
|
23090
|
+
/** A display size that keeps `em` of text within the width (`side` px kept per side), never above `cap`. */
|
|
23091
|
+
const sizedPx = (em, side, cap) => `min(calc((100vw - ${2 * side}px) * ${FIT} / ${Math.max(em, 1).toFixed(3)}), ${cap})`;
|
|
23092
|
+
function frameNode(mix, children) {
|
|
23093
|
+
const inset = mix.frame === OpeningFrame.Inset || mix.frame === OpeningFrame.Shrinks;
|
|
23094
|
+
return {
|
|
23095
|
+
t: 'Container', es: 'box', scheme: 'inverse',
|
|
23096
|
+
role: mix.frame === OpeningFrame.Shrinks ? OpeningRole.FrameSettles : OpeningRole.Frame,
|
|
23097
|
+
lay: {
|
|
23098
|
+
position: 'relative', overflow: 'hidden', display: 'flex', flexDirection: 'column', justifyContent: 'flex-end', gap: 'var(--iox-space-gap)',
|
|
23099
|
+
minHeight: OPENING_HEIGHT, padding: inset ? `calc(${INSET_LAPTOP} + ${FRAME_PAD})` : FRAME_PAD, borderRadius: '0px',
|
|
23100
|
+
...(inset ? { clipPath: insetClip(INSET_LAPTOP) } : {}),
|
|
23101
|
+
},
|
|
23102
|
+
...(inset ? { resp: { mobile: { clipPath: insetClip(openingPhoneInset()), padding: `calc(${openingPhoneInset()} + 20px)` } } } : {}),
|
|
23103
|
+
c: children,
|
|
23104
|
+
};
|
|
23105
|
+
}
|
|
23106
|
+
const picture = (role, lay = MEDIA_FILL) => ({ t: 'Image', es: 'media', ph: PatternPlaceholder.Image, role, lay });
|
|
23107
|
+
const CELL_PICTURE = { width: '100%', height: '100%', aspectRatio: 'auto', objectFit: 'cover', borderRadius: '0px' };
|
|
23108
|
+
function mediaNodes(mix) {
|
|
23109
|
+
const zooms = mix.motion.includes(OpeningMotion.SlowZoom);
|
|
23110
|
+
switch (mix.media) {
|
|
23111
|
+
case OpeningMedia.Film:
|
|
23112
|
+
return [{ t: 'Video', es: 'media', video: 'background', ph: PatternPlaceholder.Video, role: OpeningRole.Film, lay: { ...ABS_FILL, aspectRatio: 'auto', borderRadius: '0px' } }];
|
|
23113
|
+
case OpeningMedia.Slideshow:
|
|
23114
|
+
return [{ t: 'SliderContainer', recipe: PatternRecipe.Slideshow, role: OpeningRole.Slides, lay: ABS_FILL }];
|
|
23115
|
+
case OpeningMedia.Object:
|
|
23116
|
+
return [picture(OpeningRole.Object, { position: 'absolute', top: '8%', left: '20%', width: '60%', height: '76%', zIndex: '0', aspectRatio: 'auto', objectFit: 'contain', borderRadius: '0px' })];
|
|
23117
|
+
case OpeningMedia.Diptych:
|
|
23118
|
+
return [{
|
|
23119
|
+
t: 'Container', es: 'box', role: OpeningRole.Pair,
|
|
23120
|
+
lay: { ...ABS_FILL, display: 'grid', gridTemplateColumns: 'minmax(0, 1fr) minmax(0, 1fr)', gap: '0px', padding: '0px' },
|
|
23121
|
+
resp: { mobile: { gridTemplateColumns: 'minmax(0, 1fr)' } },
|
|
23122
|
+
c: [
|
|
23123
|
+
picture(zooms ? OpeningRole.MediaZooms : OpeningRole.Media, CELL_PICTURE),
|
|
23124
|
+
{ ...picture(OpeningRole.Second, CELL_PICTURE), resp: { mobile: { display: 'none' } } },
|
|
23125
|
+
],
|
|
23126
|
+
}];
|
|
23127
|
+
default:
|
|
23128
|
+
return [picture(zooms ? OpeningRole.MediaZooms : OpeningRole.Media)];
|
|
23129
|
+
}
|
|
23130
|
+
}
|
|
23131
|
+
const title = (lay, extra = {}) => ({
|
|
23132
|
+
t: 'Heading', es: 'display', level: 'h1', slot: 'title', max: 56, fromBusiness: 'name', ph: PatternPlaceholder.Copy, text: 'Your name', textHe: 'השם שלכם',
|
|
23133
|
+
role: OpeningRole.Title, lay, ...extra,
|
|
23134
|
+
});
|
|
23135
|
+
const lead = (lay = {}) => ({
|
|
23136
|
+
t: 'Text', es: 'lead', slot: 'lead', max: 140, fromBusiness: 'tagline', ph: PatternPlaceholder.Copy, text: 'One line on what you do, and for whom.',
|
|
23137
|
+
textHe: 'שורה אחת על מה שאתם עושים, ובשביל מי.', role: OpeningRole.Lead, lay,
|
|
23138
|
+
});
|
|
23139
|
+
const action = () => ({ t: 'ButtonBlock', es: 'button-primary', href: '/contact', slot: 'cta', max: 24, text: 'Get in touch', textHe: 'צרו קשר', role: OpeningRole.Action });
|
|
23140
|
+
const scrim = () => ({ t: 'Container', es: 'media-scrim', role: OpeningRole.Scrim, lay: { ...ABS_FILL, padding: '0px', borderRadius: '0px' } });
|
|
23141
|
+
/** The line and the action beside a display-size title: at the frame's top, at the reading start. */
|
|
23142
|
+
const aside = (at = 'top') => ({
|
|
23143
|
+
t: 'Container', es: 'box', role: OpeningRole.Aside,
|
|
23144
|
+
lay: { ...OVER(1), display: 'flex', flexDirection: 'column', alignItems: 'flex-start', gap: '14px', maxWidth: '420px', margin: at === 'top' ? '0px 0px auto 0px' : 'auto 0px 0px 0px' },
|
|
23145
|
+
c: [lead(), action()],
|
|
23146
|
+
});
|
|
23147
|
+
/** The words, as the mix places them. Display sizes are measured on the look's own face (never a guess — R-H6): a laptop
|
|
23148
|
+
* line by the whole name, a phone by its longest word, so a word is never cut by the screen. */
|
|
23149
|
+
function wordsNodes(mix, ctx) {
|
|
23150
|
+
const { line, longest } = nameEm(ctx);
|
|
23151
|
+
const phoneSize = sizedPx(longest, PHONE_SIDE_PX, '22vw');
|
|
23152
|
+
switch (mix.words) {
|
|
23153
|
+
case OpeningWords.OnEdge:
|
|
23154
|
+
return [scrim(), aside('top'), {
|
|
23155
|
+
t: 'Container', es: 'box', role: OpeningRole.Words,
|
|
23156
|
+
lay: { position: 'absolute', left: '0px', bottom: '0px', width: '100%', zIndex: '1', padding: `0px ${LAPTOP_SIDE_PX}px`, overflow: 'visible' },
|
|
23157
|
+
resp: { mobile: { padding: `0px ${PHONE_SIDE_PX}px` } },
|
|
23158
|
+
c: [title({ fontSize: sizedPx(line, LAPTOP_SIDE_PX, '50svh'), lineHeight: '0.82', margin: '0px', translateY: '0.16em' }, { resp: { mobile: { fontSize: phoneSize } } })],
|
|
23159
|
+
}];
|
|
23160
|
+
case OpeningWords.Wordmark:
|
|
23161
|
+
case OpeningWords.Behind:
|
|
23162
|
+
return [scrim(), {
|
|
23163
|
+
t: 'Container', es: 'box', role: OpeningRole.Words,
|
|
23164
|
+
lay: { ...OVER(1), display: 'flex', flexDirection: 'column', alignItems: 'center', gap: '18px', textAlign: 'center', margin: 'auto 0px auto 0px', width: '100%' },
|
|
23165
|
+
c: [
|
|
23166
|
+
title({ fontSize: sizedPx(line, LAPTOP_SIDE_PX + 24, '40svh'), lineHeight: '0.9', margin: '0px', textAlign: 'center' }, { resp: { mobile: { fontSize: phoneSize } } }),
|
|
23167
|
+
lead({ textAlign: 'center' }), action(),
|
|
23168
|
+
],
|
|
23169
|
+
}];
|
|
23170
|
+
case OpeningWords.Apart: {
|
|
23171
|
+
const words = nameWords(ctx.name);
|
|
23172
|
+
const size = sizedPx(longest / 0.6, 0, '18vw');
|
|
23173
|
+
const place = [
|
|
23174
|
+
{ gridRow: '1', justifySelf: 'start', alignSelf: 'start' },
|
|
23175
|
+
{ gridRow: '2', justifySelf: 'end', alignSelf: 'center' },
|
|
23176
|
+
{ gridRow: '3', justifySelf: 'center', alignSelf: 'end' },
|
|
23177
|
+
];
|
|
23178
|
+
// The words are read in order — the first is the page's h1; a heading cannot be split, so the rest are headings
|
|
23179
|
+
// too (Text has no display size). Their order IS the name's.
|
|
23180
|
+
const word = (w, i) => (i === 0
|
|
23181
|
+
? title({ fontSize: size, lineHeight: '0.9', margin: '0px', ...place[0] }, { text: w, fromBusiness: undefined, textHe: undefined })
|
|
23182
|
+
: { t: 'Heading', es: 'display', level: 'h2', text: w, role: OpeningRole.ApartWord, lay: { fontSize: size, lineHeight: '0.9', margin: '0px', ...place[i] } });
|
|
23183
|
+
return [scrim(), {
|
|
23184
|
+
t: 'Container', es: 'box', role: OpeningRole.Apart,
|
|
23185
|
+
lay: { ...ABS_FILL, zIndex: '1', display: 'grid', gridTemplateRows: 'repeat(3, minmax(0, 1fr))', padding: FRAME_PAD },
|
|
23186
|
+
c: words.map(word),
|
|
23187
|
+
}, aside('bottom')];
|
|
23188
|
+
}
|
|
23189
|
+
case OpeningWords.None:
|
|
23190
|
+
return [{
|
|
23191
|
+
t: 'Container', es: 'box', role: OpeningRole.Words, lay: { ...OVER(1), maxWidth: '520px' },
|
|
23192
|
+
c: [title({ margin: '0px' }, { es: 'eyebrow' })],
|
|
23193
|
+
}];
|
|
23194
|
+
default:
|
|
23195
|
+
return [{
|
|
23196
|
+
t: 'Container', es: 'media-scrim', role: OpeningRole.Words,
|
|
23197
|
+
lay: { ...OVER(1), display: 'flex', flexDirection: 'column', gap: '14px', maxWidth: '760px' },
|
|
23198
|
+
enter: 'heroText',
|
|
23199
|
+
c: [title({}), lead(), action()],
|
|
23200
|
+
}];
|
|
23201
|
+
}
|
|
23202
|
+
}
|
|
23203
|
+
/** The extras. Their inline side (the end) is the shared stylesheet's; a phone keeps the card in the flow under the words. */
|
|
23204
|
+
function extrasNodes(mix) {
|
|
23205
|
+
const out = [];
|
|
23206
|
+
if (mix.extras.includes(OpeningExtra.Badge)) {
|
|
23207
|
+
out.push({
|
|
23208
|
+
t: 'Container', es: 'badge-accent', role: OpeningRole.Badge,
|
|
23209
|
+
lay: { position: 'absolute', top: '6%', zIndex: '2', width: '132px', aspectRatio: '1 / 1', borderRadius: '999px', display: 'flex', alignItems: 'center', justifyContent: 'center', padding: '16px', textAlign: 'center' },
|
|
23210
|
+
resp: { mobile: { width: '96px', padding: '10px' } },
|
|
23211
|
+
c: [{ t: 'Text', es: 'badge-label', ph: PatternPlaceholder.Stat, text: 'Your award or offer', textHe: 'הפרס או ההצעה שלכם', lay: { textAlign: 'center' } }],
|
|
23212
|
+
});
|
|
23213
|
+
}
|
|
23214
|
+
if (mix.extras.includes(OpeningExtra.Card)) {
|
|
23215
|
+
out.push({
|
|
23216
|
+
t: 'Container', es: 'box', role: OpeningRole.Card,
|
|
23217
|
+
lay: { position: 'absolute', bottom: '6%', zIndex: '2', width: 'min(300px, 36%)' },
|
|
23218
|
+
resp: { mobile: { position: 'relative', width: '100%' } },
|
|
23219
|
+
c: [{ t: 'Container', recipe: PatternRecipe.Card, layout: 'top', ph: PatternPlaceholder.Copy, parts: { badge: false, eyebrow: false, text: false, actions: false }, words: { title: 'What is new — in a few words' } }],
|
|
23220
|
+
});
|
|
23221
|
+
}
|
|
23222
|
+
if (mix.extras.includes(OpeningExtra.Cue)) {
|
|
23223
|
+
out.push({ t: 'Text', es: 'eyebrow', role: OpeningRole.Cue, text: 'Scroll', textHe: 'גללו', lay: { position: 'absolute', bottom: '20px', zIndex: '2', margin: '0px' } });
|
|
23224
|
+
}
|
|
23225
|
+
return out;
|
|
23226
|
+
}
|
|
23227
|
+
/** The words and what sits beside them: a working form first stands beside the words (the words above it on a phone). */
|
|
23228
|
+
function bodyOf(mix, ctx) {
|
|
23229
|
+
const words = wordsNodes(mix, ctx);
|
|
23230
|
+
const cutout = mix.words === OpeningWords.Behind
|
|
23231
|
+
? [picture(OpeningRole.Cutout, { position: 'absolute', bottom: '0px', left: '20%', width: '60%', height: '86%', zIndex: '2', aspectRatio: 'auto', objectFit: 'contain', borderRadius: '0px' })]
|
|
23232
|
+
: [];
|
|
23233
|
+
if (mix.media !== OpeningMedia.Live)
|
|
23234
|
+
return [...words, ...cutout];
|
|
23235
|
+
return [{
|
|
23236
|
+
t: 'Container', es: 'box', role: OpeningRole.Aside,
|
|
23237
|
+
lay: { ...OVER(1), display: 'grid', gridTemplateColumns: 'minmax(0, 1fr) minmax(0, 420px)', gap: '32px', alignItems: 'end', width: '100%' },
|
|
23238
|
+
resp: { mobile: { gridTemplateColumns: 'minmax(0, 1fr)' } },
|
|
23239
|
+
c: [...words, { t: 'Container', es: 'card', role: OpeningRole.Form, c: [{ t: 'Form', preset: 'lead' }] }],
|
|
23240
|
+
}, ...cutout];
|
|
23241
|
+
}
|
|
23242
|
+
/** The opening mix as a pattern — the page's first section. Check it first (`checkOpening` on the drawn mix). Pure. */
|
|
23243
|
+
function openingRecipe(mix, ctx) {
|
|
23244
|
+
const { drawn } = drawnOpeningMix(mix);
|
|
23245
|
+
const frame = frameNode(drawn, [...mediaNodes(drawn), ...bodyOf(drawn, ctx), ...extrasNodes(drawn)]);
|
|
23246
|
+
const node = { t: 'Section', es: 'section', role: OpeningRole.Root, lay: { position: 'relative', padding: '0px', overflow: 'hidden' }, c: [frame] };
|
|
23247
|
+
const words = [openingMeaning(OpeningIngredient.Frame, drawn.frame), openingMeaning(OpeningIngredient.Media, drawn.media), openingMeaning(OpeningIngredient.Words, drawn.words)];
|
|
23248
|
+
return {
|
|
23249
|
+
mix: drawn,
|
|
23250
|
+
pattern: { family: 'hero', label: `Opening — ${words.join(' · ')}`, intent: `${words.join('; ')}.`, node },
|
|
23251
|
+
};
|
|
23252
|
+
}
|
|
23253
|
+
|
|
22558
23254
|
const LIST_RECIPES = {
|
|
22559
23255
|
[PatternRecipe.Accordion]: { picks: f => ({ ...pickAccordionAutoBinds(f) }), required: ['question', 'answer'], needs: 'short-text field for the question and long-text field for the answer' },
|
|
22560
23256
|
[PatternRecipe.Tabs]: { picks: f => ({ ...pickTabsAutoBinds(f) }), required: ['label', 'text'], needs: 'short-text field for the tab and long-text field for its panel' },
|
|
@@ -22608,7 +23304,7 @@ var SitePlanIssueCode;
|
|
|
22608
23304
|
SitePlanIssueCode["RouteSource"] = "route-source";
|
|
22609
23305
|
SitePlanIssueCode["UnknownPattern"] = "unknown-pattern";
|
|
22610
23306
|
SitePlanIssueCode["GlobalPattern"] = "global-pattern";
|
|
22611
|
-
/** A header
|
|
23307
|
+
/** A header, footer or opening mix (`mixes`) with a word its part's table lacks, or two words for a one-word ingredient. */
|
|
22612
23308
|
SitePlanIssueCode["Mix"] = "mix";
|
|
22613
23309
|
SitePlanIssueCode["UnknownSlot"] = "unknown-slot";
|
|
22614
23310
|
SitePlanIssueCode["UnknownOptionalPart"] = "unknown-optional-part";
|
|
@@ -22799,6 +23495,7 @@ function validateDesign(c, design) {
|
|
|
22799
23495
|
};
|
|
22800
23496
|
word('feel', ARRIVE_IDS);
|
|
22801
23497
|
word('headings', MOVE_IDS);
|
|
23498
|
+
word('preloader', PRELOADER_IDS);
|
|
22802
23499
|
if (design['mode'] !== undefined && !SPEC_AXES.modes.includes(design['mode']))
|
|
22803
23500
|
bad('mode', `must be one of ${SPEC_AXES.modes.join(', ')}`);
|
|
22804
23501
|
if (design['pillButtons'] !== undefined && typeof design['pillButtons'] !== 'boolean')
|
|
@@ -23399,7 +24096,7 @@ function validateGlobals(c, globals) {
|
|
|
23399
24096
|
}
|
|
23400
24097
|
}
|
|
23401
24098
|
/** The parts a plan may carry as a mix, and how each reads its words (only the footer until header ingredients HI1). */
|
|
23402
|
-
const MIX_READERS = { header: headerMixFromWords, footer: footerMixFromWords };
|
|
24099
|
+
const MIX_READERS = { header: headerMixFromWords, footer: footerMixFromWords, opening: openingMixFromWords };
|
|
23403
24100
|
/** `mixes`: each part's words parse in its table (list ingredients LI5); absent is fine. */
|
|
23404
24101
|
function validateMixes(c, mixes) {
|
|
23405
24102
|
if (mixes === undefined)
|
|
@@ -25237,6 +25934,9 @@ var ComposeIssueCode;
|
|
|
25237
25934
|
/** HI1: the header's mix asked for what the site cannot carry (`checkHeader`), or for a word the product does not draw
|
|
25238
25935
|
* yet (drawn as its stand-in): the detail says how. */
|
|
25239
25936
|
ComposeIssueCode["HeaderMended"] = "header-mended";
|
|
25937
|
+
/** AW8: the opening's mix asked for what the site cannot carry (`checkOpening`), or for a word the product does not
|
|
25938
|
+
* draw yet (drawn as its stand-in): the detail says how. */
|
|
25939
|
+
ComposeIssueCode["OpeningMended"] = "opening-mended";
|
|
25240
25940
|
})(ComposeIssueCode || (ComposeIssueCode = {}));
|
|
25241
25941
|
/** The issues that are a dangling link (a route the plan has no page for) and what was done about it. */
|
|
25242
25942
|
const DANGLING_LINK_CODES = new Set([
|
|
@@ -25951,6 +26651,8 @@ function composeRecipe(pn, id, repeater, ctx) {
|
|
|
25951
26651
|
return composeTabs(pn, id, ctx);
|
|
25952
26652
|
if (pn.recipe === PatternRecipe.Carousel)
|
|
25953
26653
|
return composeCarousel(pn, id, ctx);
|
|
26654
|
+
if (pn.recipe === PatternRecipe.Slideshow)
|
|
26655
|
+
return composeSlideshow(pn, id, ctx);
|
|
25954
26656
|
if (pn.recipe === PatternRecipe.Lightbox)
|
|
25955
26657
|
return composeLightbox(pn, id, repeater, ctx);
|
|
25956
26658
|
if (pn.recipe === PatternRecipe.Segmented)
|
|
@@ -26364,6 +27066,24 @@ function composeCarousel(pn, id, ctx) {
|
|
|
26364
27066
|
}
|
|
26365
27067
|
return slider;
|
|
26366
27068
|
}
|
|
27069
|
+
/**
|
|
27070
|
+
* AW8 (`media.slideshow`): composite-core's slideshow (a fading Slider, its pause control and dots), stamped with this
|
|
27071
|
+
* composer's factory; every picture is an empty-image placeholder (the studio's own go in). The pattern node's layout
|
|
27072
|
+
* places the slider.
|
|
27073
|
+
*/
|
|
27074
|
+
function composeSlideshow(pn, id, ctx) {
|
|
27075
|
+
const slider = buildSlideshowRecipe(recipeFactory(id, 'slideshow'));
|
|
27076
|
+
if (pn.lay)
|
|
27077
|
+
setStyleProps(slider, pn.lay);
|
|
27078
|
+
if (pn.role)
|
|
27079
|
+
slider.role = pn.role;
|
|
27080
|
+
for (const slide of (slider.children ?? []).filter(c => c.type === SLIDE_TYPE)) {
|
|
27081
|
+
for (const picture of slide.children ?? [])
|
|
27082
|
+
if (picture.type === IMAGE)
|
|
27083
|
+
ctx.placeholders.push({ nodeId: picture.id, owner: ctx.owner, kind: PlaceholderKind.Image, text: '' });
|
|
27084
|
+
}
|
|
27085
|
+
return slider;
|
|
27086
|
+
}
|
|
26367
27087
|
/**
|
|
26368
27088
|
* CC3: the Lightbox — a Dialog holding a Slider bound to the node's `src` (the gallery's own source): one template
|
|
26369
27089
|
* slide whose image reads the row (a bare URL row: decorative alt), its arrows hidden on a phone.
|
|
@@ -26645,19 +27365,23 @@ function composeSite(plan, context) {
|
|
|
26645
27365
|
if (page.layout) {
|
|
26646
27366
|
// vectoriox/iox-ui#99: a composed page that is where the site lists the shop lists it (a stored layout too).
|
|
26647
27367
|
const layout = withShownList(page.layout, layoutListsContext(page, plan)) ?? page.layout;
|
|
26648
|
-
const
|
|
27368
|
+
const stamped = stampLayoutSections(page, layout, composeLayoutPage(page, layout, plan, context, design, placeholders, (section, id) => composePattern(patternById(section.pattern), id, { ...base, owner: page.key, page, section, nextAlias }, { level: section.enter ?? design.animate ?? null, rtl, move: design.headings ?? null })));
|
|
27369
|
+
// AW8: the plan's opening is the home page's first screen; a pinned or kept first place is never replaced.
|
|
27370
|
+
const first = layout.sections[0];
|
|
27371
|
+
const worn = wearPlanOpening(page, stamped, plan, context, design, placeholders, issues, !!(first?.pin || first?.carry));
|
|
27372
|
+
const opening = worn === stamped ? layoutBandScheme(first?.ground) : schemeOfFirst(worn);
|
|
26649
27373
|
return {
|
|
26650
27374
|
key: page.key, name: page.name, route: { path: page.route }, isHome: page.isHome === true, status: STATUS_DRAFT, locale,
|
|
26651
27375
|
pageSettings: { designSystem: true, layoutSource: { pageKey: page.key }, ...(opening ? { opening } : {}) }, seo: composePageSeo(page, plan),
|
|
26652
|
-
layout:
|
|
27376
|
+
layout: worn,
|
|
26653
27377
|
};
|
|
26654
27378
|
}
|
|
26655
|
-
const layout = page.sections.map((section, i) => {
|
|
27379
|
+
const layout = wearPlanOpening(page, page.sections.map((section, i) => {
|
|
26656
27380
|
const pattern = patternById(section.pattern);
|
|
26657
27381
|
const motion = { level: section.enter ?? design.animate ?? null, rtl, move: design.headings ?? null };
|
|
26658
27382
|
return stampSection(composePattern(pattern, `${page.key}-${i}`, { ...base, owner: page.key, page, section, nextAlias }, motion), { pattern: section.pattern });
|
|
26659
|
-
});
|
|
26660
|
-
const opening =
|
|
27383
|
+
}), plan, context, design, placeholders, issues, false);
|
|
27384
|
+
const opening = schemeOfFirst(layout);
|
|
26661
27385
|
return {
|
|
26662
27386
|
key: page.key,
|
|
26663
27387
|
name: page.name,
|
|
@@ -27018,6 +27742,171 @@ function composeSection(patternId, input, options) {
|
|
|
27018
27742
|
const section = composePattern(pattern, options.id, ctx);
|
|
27019
27743
|
return { section, placeholders, issues };
|
|
27020
27744
|
}
|
|
27745
|
+
// ── The opening (AW8, board award-opening) ──────────────────────────────────────────────────────────────────────
|
|
27746
|
+
/** The colour scheme a page's first section wears — what the header over it follows (`pageSettings.opening`), or null. */
|
|
27747
|
+
function schemeOfFirst(layout) {
|
|
27748
|
+
const scheme = layout[0]?.props?.[COLOR_SCHEME_TRAIT];
|
|
27749
|
+
return colorSchemeClass(scheme) ? scheme : null;
|
|
27750
|
+
}
|
|
27751
|
+
/** What a first section holds that an opening has no part for: a form, a list bound to content, a Scene. */
|
|
27752
|
+
const OPENING_KEEPS_TYPES = new Set(['Form', 'Repeater', 'List']);
|
|
27753
|
+
const SCENE_ROLE = 'scene';
|
|
27754
|
+
/** May the opening take the place of this first section? It must hold a heading (the opening's title is its words) and
|
|
27755
|
+
* nothing the opening has no part for — a form, bound content, a Scene stay and the opening comes before them. */
|
|
27756
|
+
function openingMayReplace(root) {
|
|
27757
|
+
let heading = false;
|
|
27758
|
+
let keeps = false;
|
|
27759
|
+
walkSerialized([root], n => {
|
|
27760
|
+
if (n.type === 'Heading')
|
|
27761
|
+
heading = true;
|
|
27762
|
+
if (OPENING_KEEPS_TYPES.has(n.type) || n.role === SCENE_ROLE || (n.bindings?.length ?? 0) > 0)
|
|
27763
|
+
keeps = true;
|
|
27764
|
+
});
|
|
27765
|
+
return heading && !keeps;
|
|
27766
|
+
}
|
|
27767
|
+
/** The words a node shows, markup aside (the first that has any, in reading order). */
|
|
27768
|
+
function shownWords(root) {
|
|
27769
|
+
let words = '';
|
|
27770
|
+
if (root)
|
|
27771
|
+
walkSerialized([root], n => {
|
|
27772
|
+
const own = n.props?.['content'];
|
|
27773
|
+
if (!words && typeof own === 'string' && own.trim())
|
|
27774
|
+
words = own.replace(/<[^>]+>/g, '').trim();
|
|
27775
|
+
});
|
|
27776
|
+
return words;
|
|
27777
|
+
}
|
|
27778
|
+
/**
|
|
27779
|
+
* AW8: the plan's opening (`mixes.opening`) worn as the HOME page's first screen — THE composer of the builder's
|
|
27780
|
+
* Components ▸ Opening (`composeOpening`), judged against the site (`checkOpening`: the build's tier — absent, Basic —,
|
|
27781
|
+
* the hero's own title as the display words, no badge of the owner's, no cut-out picture). It takes the place of the
|
|
27782
|
+
* page's first section when that section may give way (`openingMayReplace`, and not `keep`), carrying its words,
|
|
27783
|
+
* pictures and buttons in by the ONE carry rule (`carryInto`), its placeholders following what was carried; else it comes
|
|
27784
|
+
* first. Every mend, and every part that found no place, is said (`opening-mended`). Any other page, or a plan with no
|
|
27785
|
+
* opening mix, is returned as it was. Mutates `placeholders` / `issues` like the composer; pure otherwise.
|
|
27786
|
+
*/
|
|
27787
|
+
function wearPlanOpening(page, layout, plan, context, design, placeholders, issues, keep) {
|
|
27788
|
+
const mix = openingMixOfPlan(plan);
|
|
27789
|
+
if (!mix || !(page.isHome === true || page.route === HOME_PATH))
|
|
27790
|
+
return layout;
|
|
27791
|
+
const first = layout[0];
|
|
27792
|
+
const replace = !!first && !keep && openingMayReplace(first);
|
|
27793
|
+
const id = replace ? first.id : `${page.key}-opening`;
|
|
27794
|
+
const heading = replace ? swapParts(first)['heading'][0] : undefined;
|
|
27795
|
+
const title = shownWords(heading);
|
|
27796
|
+
const composed = composeOpening({
|
|
27797
|
+
business: { ...plan.business, name: title || plan.business.name },
|
|
27798
|
+
pages: plan.pages.map(p => ({ name: p.name, route: p.route, isHome: p.isHome === true })),
|
|
27799
|
+
mix, locale: plan.locale, design, badge: null, cutOut: false, tier: context.tier ?? GenerationTier.Basic,
|
|
27800
|
+
}, { id });
|
|
27801
|
+
const section = composed.section;
|
|
27802
|
+
const said = composed.issues.map(i => i.detail);
|
|
27803
|
+
let own = composed.placeholders.map(p => ({ ...p, owner: page.key }));
|
|
27804
|
+
if (replace) {
|
|
27805
|
+
const gone = new Set();
|
|
27806
|
+
walkSerialized([first], n => { gone.add(n.id); });
|
|
27807
|
+
const carried = placeholders.filter(p => gone.has(p.nodeId));
|
|
27808
|
+
for (let i = placeholders.length - 1; i >= 0; i--)
|
|
27809
|
+
if (gone.has(placeholders[i].nodeId))
|
|
27810
|
+
placeholders.splice(i, 1);
|
|
27811
|
+
// The hero's title is already the opening's display words (composed above — split apart, set as a wordmark); the
|
|
27812
|
+
// carry places everything else, never over those words.
|
|
27813
|
+
const fromRest = withoutNodes(first, n => n === heading);
|
|
27814
|
+
const intoRest = withoutNodes(section, n => OPENING_TITLE_ROLES.has(n.role ?? ''));
|
|
27815
|
+
for (const lost of carryInto(fromRest, intoRest))
|
|
27816
|
+
said.push(`the opening found no place for ${lost.type === IMAGE ? 'a picture' : `"${shownWords(lost) || lost.type}"`}`);
|
|
27817
|
+
// What the composer left as a placeholder holds only while the carry left it as it was; what was carried brings
|
|
27818
|
+
// its own placeholder with it (the hero's empty picture, its copy).
|
|
27819
|
+
const at = new Map();
|
|
27820
|
+
walkSerialized([section], n => { at.set(n.id, n); });
|
|
27821
|
+
own = own.filter(p => {
|
|
27822
|
+
const n = at.get(p.nodeId);
|
|
27823
|
+
return !!n && (p.kind === PlaceholderKind.Image ? !n.props['src'] : shownWords(n) === p.text);
|
|
27824
|
+
});
|
|
27825
|
+
for (const n of at.values()) {
|
|
27826
|
+
if (own.some(p => p.nodeId === n.id))
|
|
27827
|
+
continue;
|
|
27828
|
+
const words = n.type === IMAGE ? null : (typeof n.props?.['content'] === 'string' ? shownWords(n) : null);
|
|
27829
|
+
const from = n.type === IMAGE
|
|
27830
|
+
? (!n.props['src'] ? carried.find(p => p.kind === PlaceholderKind.Image) : undefined)
|
|
27831
|
+
: (words ? carried.find(p => p.kind !== PlaceholderKind.Image && p.text && p.text === words) : undefined);
|
|
27832
|
+
if (from)
|
|
27833
|
+
own.push({ ...from, nodeId: n.id });
|
|
27834
|
+
}
|
|
27835
|
+
}
|
|
27836
|
+
placeholders.push(...own);
|
|
27837
|
+
for (const detail of said)
|
|
27838
|
+
issues.push({ code: ComposeIssueCode.OpeningMended, nodeId: id, owner: page.key, detail });
|
|
27839
|
+
const was = replace ? first.composed : undefined;
|
|
27840
|
+
stampSection(section, was?.pattern ? { pattern: was.pattern } : { layout: was?.layout ?? OPENING_ORIGIN });
|
|
27841
|
+
return replace ? [section, ...layout.slice(1)] : [section, ...layout];
|
|
27842
|
+
}
|
|
27843
|
+
/** The opening's parts that hold the display words — composed from the hero's title, so nothing is carried onto them. */
|
|
27844
|
+
const OPENING_TITLE_ROLES = new Set([OpeningRole.Title, OpeningRole.Apart, OpeningRole.ApartWord]);
|
|
27845
|
+
/** A view of `root` without the nodes `drop` names (and what they hold): only the containers above a dropped node are
|
|
27846
|
+
* copies, every other node is the SAME object — so a carry into the view writes the real tree. */
|
|
27847
|
+
function withoutNodes(root, drop) {
|
|
27848
|
+
const view = (n) => {
|
|
27849
|
+
const kids = n.children ?? [];
|
|
27850
|
+
const kept = kids.filter(c => !drop(c)).map(view);
|
|
27851
|
+
return kept.length === kids.length && kept.every((c, i) => c === kids[i]) ? n : { ...n, children: kept };
|
|
27852
|
+
};
|
|
27853
|
+
return view(root);
|
|
27854
|
+
}
|
|
27855
|
+
/** The origin an opening placed before a page's sections is stamped with (it replaced no section of the plan's). */
|
|
27856
|
+
const OPENING_ORIGIN = 'opening';
|
|
27857
|
+
/** The context an opening is judged and measured in — the same for the check, the recipe and the studio's advice. */
|
|
27858
|
+
function openingContextOf(input) {
|
|
27859
|
+
return {
|
|
27860
|
+
name: input.business?.name ?? '',
|
|
27861
|
+
design: resolveDesignChoices(JSON.parse(JSON.stringify(input.design ?? {}))),
|
|
27862
|
+
...(input.tier ? { tier: input.tier } : {}),
|
|
27863
|
+
...(input.cutOut !== undefined ? { cutOut: input.cutOut } : {}),
|
|
27864
|
+
...(input.badge !== undefined ? { badge: input.badge } : {}),
|
|
27865
|
+
};
|
|
27866
|
+
}
|
|
27867
|
+
/**
|
|
27868
|
+
* A page's opening — the builder's Components ▸ Opening and the Opening studio, and the generator's first section: THE
|
|
27869
|
+
* SAME recipe (`openingRecipe`) and composer as every pattern. The mix is drawn as the product draws it (a waiting word
|
|
27870
|
+
* becomes its stand-in) and judged against the site (`checkOpening`) unless asked as is; every mend is said as an issue.
|
|
27871
|
+
* Its words come from the business (the name, the tagline) or are its own placeholders; a badge is the owner's, never
|
|
27872
|
+
* written for them. The root stores the mix (OB-5). Pure.
|
|
27873
|
+
*/
|
|
27874
|
+
function composeOpening(input, options) {
|
|
27875
|
+
if (!nonEmpty$2(options?.id))
|
|
27876
|
+
throw new ComposeError('composeOpening needs the section id');
|
|
27877
|
+
const business = input.business ?? { name: '' };
|
|
27878
|
+
const context = openingContextOf(input);
|
|
27879
|
+
const { drawn, gaps } = drawnOpeningMix(input.mix ?? openingMix());
|
|
27880
|
+
const checked = input.asAsked ? { mix: drawn, repairs: [] } : checkOpening(drawn, context);
|
|
27881
|
+
const pages = navPagePlans(input.pages ?? []);
|
|
27882
|
+
const plan = { business, pages, dataSources: [], contentTypes: [], locale: input.locale };
|
|
27883
|
+
const email = nonEmpty$2(business.facts?.email) ? business.facts.email.trim() : null;
|
|
27884
|
+
const placeholders = [];
|
|
27885
|
+
const issues = [];
|
|
27886
|
+
for (const said of [...gaps.map(g => `the opening's ${g.ingredient} "${g.word}" is drawn as ${g.drawnAs ? `"${g.drawnAs}"` : 'nothing'} until ${g.phase}`), ...checked.repairs.map(r => r.said)]) {
|
|
27887
|
+
issues.push({ code: ComposeIssueCode.OpeningMended, nodeId: options.id, owner: options.id, detail: said });
|
|
27888
|
+
}
|
|
27889
|
+
const ctx = {
|
|
27890
|
+
owner: options.id, page: null, section: null, plan, year: 0, email, navPage: null, nextAlias: null,
|
|
27891
|
+
placeholders, issues, routes: new Set(pages.map(p => p.route)), keepButtons: true,
|
|
27892
|
+
};
|
|
27893
|
+
const recipe = openingRecipe(checked.mix, context);
|
|
27894
|
+
const section = composePattern(recipe.pattern, options.id, ctx);
|
|
27895
|
+
stampOpeningMix(section, recipe.mix);
|
|
27896
|
+
const badge = typeof input.badge === 'string' && input.badge.trim() ? input.badge.trim() : null;
|
|
27897
|
+
if (badge) {
|
|
27898
|
+
walkSerialized([section], n => {
|
|
27899
|
+
const holder = n.role === OpeningRole.Badge ? n : null;
|
|
27900
|
+
for (const words of holder?.children ?? []) {
|
|
27901
|
+
words.props = { ...words.props, content: badge };
|
|
27902
|
+
const at = placeholders.findIndex(p => p.nodeId === words.id);
|
|
27903
|
+
if (at >= 0)
|
|
27904
|
+
placeholders.splice(at, 1);
|
|
27905
|
+
}
|
|
27906
|
+
});
|
|
27907
|
+
}
|
|
27908
|
+
return { section, placeholders, issues, mix: recipe.mix };
|
|
27909
|
+
}
|
|
27021
27910
|
|
|
27022
27911
|
/**
|
|
27023
27912
|
* What each page of a plan shows and where its data comes from (AI plan rev 3 §3d, `describePlanData`) — the
|
|
@@ -27380,6 +28269,12 @@ var BuildNoticeCode;
|
|
|
27380
28269
|
BuildNoticeCode["KeptPageSkipped"] = "kept-page-skipped";
|
|
27381
28270
|
/** RD3-D3 (a) Replace: that page moved aside as a draft (`/<route>-previous`) — Undo puts it back. */
|
|
27382
28271
|
BuildNoticeCode["KeptPageMoved"] = "kept-page-moved";
|
|
28272
|
+
/** HI1a: the header the plan asked for could not be worn as asked (a long name between two menus, a part the site
|
|
28273
|
+
* cannot carry) — the composer mended it, and the run says so; the owner changes it in the builder. */
|
|
28274
|
+
BuildNoticeCode["HeaderMended"] = "header-mended";
|
|
28275
|
+
/** AW8: the opening the plan asked for was mended (an award word on a basic build, a part the site cannot carry) —
|
|
28276
|
+
* said, so the owner knows the home page opens a little differently and where to change it. */
|
|
28277
|
+
BuildNoticeCode["OpeningMended"] = "opening-mended";
|
|
27383
28278
|
})(BuildNoticeCode || (BuildNoticeCode = {}));
|
|
27384
28279
|
/** RD3-D3 (a): what a build does with a page an earlier Undo kept at an address its plan builds — the header and footer's
|
|
27385
28280
|
* pair (`replaceGlobals`), for pages. */
|
|
@@ -27403,6 +28298,20 @@ function previousRoute(route, taken) {
|
|
|
27403
28298
|
candidate = `${base}-${n}`;
|
|
27404
28299
|
return candidate;
|
|
27405
28300
|
}
|
|
28301
|
+
/** The compose issues the run SAYS, each kind once (the wizard tracks a notice by its code): the words of every mend of
|
|
28302
|
+
* that kind joined, for the log and the API; the screen shows the code's own sentence. An opening that only found no
|
|
28303
|
+
* place for a word it carried is not a mend of the mix, so it is not said. */
|
|
28304
|
+
const MEND_NOTICES = [
|
|
28305
|
+
[ComposeIssueCode.HeaderMended, BuildNoticeCode.HeaderMended],
|
|
28306
|
+
[ComposeIssueCode.OpeningMended, BuildNoticeCode.OpeningMended],
|
|
28307
|
+
];
|
|
28308
|
+
const CARRY_ONLY = /^the opening found no place for /;
|
|
28309
|
+
function mendNotices(issues) {
|
|
28310
|
+
return MEND_NOTICES.flatMap(([issue, notice]) => {
|
|
28311
|
+
const said = [...new Set(issues.filter(i => i.code === issue && !CARRY_ONLY.test(i.detail)).map(i => i.detail))];
|
|
28312
|
+
return said.length ? [{ code: notice, detail: said.join('; ') }] : [];
|
|
28313
|
+
});
|
|
28314
|
+
}
|
|
27406
28315
|
var PreflightRefusalCode;
|
|
27407
28316
|
(function (PreflightRefusalCode) {
|
|
27408
28317
|
/** The Site Plan itself is invalid (`validateSitePlan`); `issue` is the validator's code. */
|
|
@@ -27717,6 +28626,16 @@ const roleWords = ROLE_KEYS.map(role => `${role}: ${describeShapeKey(PLAN_SHAPE[
|
|
|
27717
28626
|
const FOOTER_WIRE_TEXT = 'string[] — the footer as ONE list of <ingredient>:<word> words: one word per ingredient but "holds", which lists '
|
|
27718
28627
|
+ `each block it holds (holds:pages, holds:contact); an ingredient left out is the default (${footerMixWords(footerMix()).join(', ')}). `
|
|
27719
28628
|
+ Object.values(FooterIngredient).map(k => `${k}: ${footerWords(k).map(w => `${w} (${footerMeaning(k, w)})`).join(' | ')}`).join('; ');
|
|
28629
|
+
/** The wire's `globals` key the home page's opening travels in (AW8) — a mix beside the header's and the footer's. */
|
|
28630
|
+
const OPENING_WIRE_KEY = 'opening';
|
|
28631
|
+
/** The opening's words as the model reads them (AW8): each ingredient, the words the product draws, their meanings and
|
|
28632
|
+
* which the award plan alone wears, from the contract's opening table. */
|
|
28633
|
+
const OPENING_WIRE_TEXT = "string[] — the home page's opening (its first screen) as ONE list of <ingredient>:<word> words: one word per "
|
|
28634
|
+
+ `ingredient but extras and motion, which list each they take; an ingredient left out is the default; [] = the home page opens with its first `
|
|
28635
|
+
+ "section as written. The opening takes the place of the home page's first section when that is a hero (its words and pictures carried in); "
|
|
28636
|
+
+ 'a word marked (award) is worn by an award build only — elsewhere it is mended. '
|
|
28637
|
+
+ Object.values(OpeningIngredient).map(k => `${k}: ${openingWireWords(GenerationTier.Award).filter(w => w.startsWith(`${k}:`)).map(w => w.slice(k.length + 1))
|
|
28638
|
+
.map(w => `${w} (${openingMeaning(k, w)}${openingWordTier(k, w) === 'pro' ? ', award' : ''})`).join(' | ')}`).join('; ');
|
|
27720
28639
|
/** The header's words as the model reads them (HI1): each ingredient, the words the product draws and their meanings,
|
|
27721
28640
|
* from the contract's header table. */
|
|
27722
28641
|
const HEADER_WIRE_TEXT = 'string[] — the header as ONE list of <ingredient>:<word> words, one word per ingredient; an ingredient left out is the '
|
|
@@ -27826,6 +28745,8 @@ const WIRE_KEYS = {
|
|
|
27826
28745
|
// LI5: the footer travels as its MIX — ONE list of `<ingredient>:<word>` words (footer-mix.ts), every word with its
|
|
27827
28746
|
// meaning from the contract's footer table; the plan keeps the pattern it reads as (`globals.footer`) and the mix.
|
|
27828
28747
|
footer: { refs: ['globals.footer', 'plan.mixes', 'mixes.footer'], text: FOOTER_WIRE_TEXT },
|
|
28748
|
+
// AW8: the home page's opening travels as its MIX, ONE list of `<ingredient>:<word>` words (opening-mix.ts); [] = none.
|
|
28749
|
+
opening: { refs: ['plan.mixes', 'mixes.opening'], text: OPENING_WIRE_TEXT },
|
|
27829
28750
|
},
|
|
27830
28751
|
shopProduct: {
|
|
27831
28752
|
name: key('shopProduct.name'),
|
|
@@ -27980,6 +28901,7 @@ const PLAN_TOP_SCHEMAS = {
|
|
|
27980
28901
|
globals: () => shaped(PlanWireEntry.Globals, {
|
|
27981
28902
|
[GlobalSlot.Header]: jsonListOf(jsonOneOf(headerWireWords())),
|
|
27982
28903
|
[GlobalSlot.Footer]: jsonListOf(jsonOneOf(footerWireWords())),
|
|
28904
|
+
[OPENING_WIRE_KEY]: jsonListOf(jsonOneOf(openingWireWords(GenerationTier.Award))),
|
|
27983
28905
|
}),
|
|
27984
28906
|
direction: () => shaped(PlanWireEntry.Direction, { idea: jsonText(), cliche: jsonText(), flip: jsonText(), rules: jsonListOf(jsonText()) }),
|
|
27985
28907
|
shop: () => jsonListOf(wireShopProductJsonSchema()),
|
|
@@ -28156,8 +29078,12 @@ function expandWireGlobals(globals) {
|
|
|
28156
29078
|
return {};
|
|
28157
29079
|
if (!isPlainObject(globals))
|
|
28158
29080
|
return { globals };
|
|
28159
|
-
const
|
|
29081
|
+
const { [OPENING_WIRE_KEY]: opening, ...rest } = globals;
|
|
29082
|
+
const out = { ...rest };
|
|
28160
29083
|
const mixes = {};
|
|
29084
|
+
// AW8: the opening is a mix only (no stored pattern stands for it on the wire); [] = none. Not a list: the validator says so.
|
|
29085
|
+
if (opening !== undefined && (!Array.isArray(opening) || opening.length))
|
|
29086
|
+
mixes[OPENING_WIRE_KEY] = Array.isArray(opening) ? [...opening] : opening;
|
|
28161
29087
|
for (const [slot, readId, fallback] of [
|
|
28162
29088
|
[GlobalSlot.Header, (w) => headerPatternIdOf(headerMixFromWords(w)), DEFAULT_HEADER_PATTERN],
|
|
28163
29089
|
[GlobalSlot.Footer, (w) => footerPatternIdOf(footerMixFromWords(w)), DEFAULT_FOOTER_PATTERN],
|
|
@@ -28225,7 +29151,10 @@ const PLAN_TO_WIRE = {
|
|
|
28225
29151
|
contentTypes: plan => plan.contentTypes.map(type => contentTypeToWire(type)),
|
|
28226
29152
|
dataSources: plan => plan.dataSources.map(dataSourceToWire),
|
|
28227
29153
|
pages: plan => plan.pages.map(page => pageToWire(page)),
|
|
28228
|
-
globals: plan => ({
|
|
29154
|
+
globals: plan => ({
|
|
29155
|
+
...plan.globals, [GlobalSlot.Header]: headerMixWords(headerMixOfPlan(plan)), [GlobalSlot.Footer]: footerMixWords(footerMixOfPlan(plan)),
|
|
29156
|
+
[OPENING_WIRE_KEY]: [...(plan.mixes?.opening ?? [])],
|
|
29157
|
+
}),
|
|
28229
29158
|
direction: plan => ({ idea: plan.direction?.idea ?? NONE$1, cliche: plan.direction?.cliche ?? NONE$1, flip: plan.direction?.flip ?? NONE$1, rules: [...(plan.direction?.rules ?? [])] }),
|
|
28230
29159
|
shop: plan => (plan.shop?.products ?? []).map(p => ({ name: p.name, category: p.category, description: p.description, options: p.options.map(o => ({ name: o.name, values: [...o.values] })) })),
|
|
28231
29160
|
};
|
|
@@ -31729,9 +32658,9 @@ function sectionsNamed(issue) {
|
|
|
31729
32658
|
}
|
|
31730
32659
|
const WORD = /[\p{L}\p{N}]{3,}/gu;
|
|
31731
32660
|
/** The words that can make a fit: three letters or more, never a function word (iox-ui#68: "the" made one). */
|
|
31732
|
-
const wordsOf$
|
|
32661
|
+
const wordsOf$2 = (text) => (String(text ?? '').toLowerCase().match(WORD) ?? []).filter(w => !FUNCTION_WORDS.has(w));
|
|
31733
32662
|
const layerTexts = (l) => [l.text ?? '', ...(l.items ?? []), ...(l.gallery?.slides ?? []).map(s => s.caption ?? ''), l.form?.title ?? '', l.form?.intro ?? ''];
|
|
31734
|
-
const layerWords = (l) => layerTexts(l).flatMap(wordsOf$
|
|
32663
|
+
const layerWords = (l) => layerTexts(l).flatMap(wordsOf$2);
|
|
31735
32664
|
/** Every word of a text, in order, as a phrase that can be found inside another (` a small room kept slow `). */
|
|
31736
32665
|
const PHRASE_WORD = /[\p{L}\p{N}]+/gu;
|
|
31737
32666
|
const phraseOf = (text) => {
|
|
@@ -31748,7 +32677,7 @@ const REPEAT_SHARED = 0.8;
|
|
|
31748
32677
|
function sameSaying(a, b) {
|
|
31749
32678
|
if (a.phrase.includes(b.phrase) || b.phrase.includes(a.phrase))
|
|
31750
32679
|
return true;
|
|
31751
|
-
const [short, long] = [new Set(wordsOf$
|
|
32680
|
+
const [short, long] = [new Set(wordsOf$2(a.text)), new Set(wordsOf$2(b.text))].sort((x, y) => x.size - y.size);
|
|
31752
32681
|
if (short.size < REPEAT_MIN_WORDS)
|
|
31753
32682
|
return false;
|
|
31754
32683
|
return [...short].filter(w => long.has(w)).length / short.size >= REPEAT_SHARED;
|
|
@@ -31773,7 +32702,7 @@ function fitScore(section, plan) {
|
|
|
31773
32702
|
if ((plan.form || /^(contact|cta)\./.test(plan.pattern)) && layers.some(l => l.kind === 'form'))
|
|
31774
32703
|
score += 5;
|
|
31775
32704
|
const said = new Set(layers.flatMap(layerWords));
|
|
31776
|
-
score += new Set(Object.values(plan.slots ?? {}).flatMap(wordsOf$
|
|
32705
|
+
score += new Set(Object.values(plan.slots ?? {}).flatMap(wordsOf$2).filter(w => said.has(w))).size;
|
|
31777
32706
|
return score;
|
|
31778
32707
|
}
|
|
31779
32708
|
/** The least a middle section's fit scores to be given a ready-made section (two shared words, a form or a list). */
|
|
@@ -32100,7 +33029,7 @@ function pagesOfHeader(current, companions) {
|
|
|
32100
33029
|
const walk = (n) => {
|
|
32101
33030
|
const route = n.role && PAGE_LINK_ROLES.has(n.role) ? String(n.props?.['pageRoute'] ?? '') : '';
|
|
32102
33031
|
if (route && !out.some(p => p.route === route))
|
|
32103
|
-
out.push({ name: wordsOf(n) || route, route });
|
|
33032
|
+
out.push({ name: wordsOf$1(n) || route, route });
|
|
32104
33033
|
(n.children ?? []).forEach(walk);
|
|
32105
33034
|
};
|
|
32106
33035
|
[current, ...companions].forEach(walk);
|
|
@@ -32108,7 +33037,7 @@ function pagesOfHeader(current, companions) {
|
|
|
32108
33037
|
}
|
|
32109
33038
|
/** The site a header is recomposed for: a header that holds the bag or the account entry is a selling site's (unless the
|
|
32110
33039
|
* site says), and a studio whose pages are not known keeps the pages the header links to. */
|
|
32111
|
-
function siteFor(site, current, companions = []) {
|
|
33040
|
+
function siteFor$1(site, current, companions = []) {
|
|
32112
33041
|
let at = site;
|
|
32113
33042
|
if (!site.pages?.length) {
|
|
32114
33043
|
const own = pagesOfHeader(current, companions);
|
|
@@ -32220,7 +33149,7 @@ function nearestHeaderMix(root, companions = []) {
|
|
|
32220
33149
|
});
|
|
32221
33150
|
}
|
|
32222
33151
|
/** Composes a mix exactly as asked (the owner decides; `headerAdvice` says what the site would rather carry). */
|
|
32223
|
-
function compose(mix, site, id, options) {
|
|
33152
|
+
function compose$1(mix, site, id, options) {
|
|
32224
33153
|
const { header, companions, issues } = composeNavHeader({ ...site, mix, asAsked: true }, { id, ...(options.newId ? { newId: options.newId } : {}) });
|
|
32225
33154
|
return { header, companions, issues };
|
|
32226
33155
|
}
|
|
@@ -32228,7 +33157,7 @@ function compose(mix, site, id, options) {
|
|
|
32228
33157
|
function readHeader(root, site, options = {}) {
|
|
32229
33158
|
const stored = storedHeaderMix(root);
|
|
32230
33159
|
const mix = stored ?? nearestHeaderMix(root, options.companions ?? []);
|
|
32231
|
-
const custom = headerShape(root) !== headerShape(compose(mix, siteFor(site, root, options.companions), root.id, options).header);
|
|
33160
|
+
const custom = headerShape(root) !== headerShape(compose$1(mix, siteFor$1(site, root, options.companions), root.id, options).header);
|
|
32232
33161
|
return { mix, stored: !!stored, custom, galleryId: headerGalleryIdOf(mix) };
|
|
32233
33162
|
}
|
|
32234
33163
|
var HeaderReplacedKind;
|
|
@@ -32239,14 +33168,14 @@ var HeaderReplacedKind;
|
|
|
32239
33168
|
HeaderReplacedKind["Added"] = "added";
|
|
32240
33169
|
})(HeaderReplacedKind || (HeaderReplacedKind = {}));
|
|
32241
33170
|
/** The words a part shows: its own, else its first descendant's. */
|
|
32242
|
-
function wordsOf(n) {
|
|
33171
|
+
function wordsOf$1(n) {
|
|
32243
33172
|
for (const p of ['label', 'content', 'text', 'ariaLabel']) {
|
|
32244
33173
|
const v = n.props?.[p];
|
|
32245
33174
|
if (typeof v === 'string' && v.trim())
|
|
32246
33175
|
return v.replace(/<[^>]+>/g, '').trim();
|
|
32247
33176
|
}
|
|
32248
33177
|
for (const c of n.children ?? []) {
|
|
32249
|
-
const w = wordsOf(c);
|
|
33178
|
+
const w = wordsOf$1(c);
|
|
32250
33179
|
if (w)
|
|
32251
33180
|
return w;
|
|
32252
33181
|
}
|
|
@@ -32261,9 +33190,9 @@ function wordsOf(n) {
|
|
|
32261
33190
|
function applyHeaderMix(current, next, site, options = {}) {
|
|
32262
33191
|
const curCompanions = options.companions ?? [];
|
|
32263
33192
|
const baseMix = storedHeaderMix(current) ?? nearestHeaderMix(current, curCompanions);
|
|
32264
|
-
const at = siteFor(site, current, curCompanions);
|
|
32265
|
-
const baseComposed = compose(baseMix, at, current.id, options);
|
|
32266
|
-
const composed = compose(next, at, current.id, options);
|
|
33193
|
+
const at = siteFor$1(site, current, curCompanions);
|
|
33194
|
+
const baseComposed = compose$1(baseMix, at, current.id, options);
|
|
33195
|
+
const composed = compose$1(next, at, current.id, options);
|
|
32267
33196
|
const freshGroup = clone(grouped(composed.header, composed.companions));
|
|
32268
33197
|
const [fresh, ...freshCompanions] = freshGroup.children;
|
|
32269
33198
|
const curBy = keyed(grouped(current, curCompanions));
|
|
@@ -32272,7 +33201,7 @@ function applyHeaderMix(current, next, site, options = {}) {
|
|
|
32272
33201
|
const replaced = new Map();
|
|
32273
33202
|
const replace = (kind, n) => {
|
|
32274
33203
|
if (!replaced.has(n.id))
|
|
32275
|
-
replaced.set(n.id, { kind, nodeId: n.id, ...(n.role ? { role: n.role } : {}), words: wordsOf(n) });
|
|
33204
|
+
replaced.set(n.id, { kind, nodeId: n.id, ...(n.role ? { role: n.role } : {}), words: wordsOf$1(n) });
|
|
32276
33205
|
};
|
|
32277
33206
|
for (const [key, f] of freshBy) {
|
|
32278
33207
|
const cur = curBy.get(key);
|
|
@@ -32330,6 +33259,208 @@ function withHeaderWord(mix, ingredient, word) {
|
|
|
32330
33259
|
return headerMix({ ...mix, [ingredient]: word });
|
|
32331
33260
|
}
|
|
32332
33261
|
|
|
33262
|
+
/** The page's opening: its first root section composed as one (role `opening`), else null. */
|
|
33263
|
+
function findOpening(layout) {
|
|
33264
|
+
const first = layout.find(n => !n.isGlobal);
|
|
33265
|
+
return first?.role === OpeningRole.Root ? first : null;
|
|
33266
|
+
}
|
|
33267
|
+
/** The roles each Bindings row (and studio tab) reads: a row is Custom when one of its parts changed by hand. */
|
|
33268
|
+
const ROW_ROLES = {
|
|
33269
|
+
[OpeningIngredient.Frame]: [OpeningRole.Frame, OpeningRole.FrameSettles],
|
|
33270
|
+
[OpeningIngredient.Media]: [OpeningRole.Media, OpeningRole.MediaZooms, OpeningRole.Second, OpeningRole.Pair, OpeningRole.Film, OpeningRole.Slides, OpeningRole.Object, OpeningRole.Form],
|
|
33271
|
+
[OpeningIngredient.Words]: [OpeningRole.Words, OpeningRole.Title, OpeningRole.Lead, OpeningRole.Action, OpeningRole.Apart, OpeningRole.ApartWord, OpeningRole.Aside, OpeningRole.Cutout, OpeningRole.Scrim],
|
|
33272
|
+
[OpeningIngredient.Extras]: [OpeningRole.Card, OpeningRole.Badge, OpeningRole.Cue],
|
|
33273
|
+
[OpeningIngredient.Motion]: [],
|
|
33274
|
+
};
|
|
33275
|
+
/** The props that are the owner's CONTENT (words, pictures, a film, a form's identity) — never a sign of a hand edit. */
|
|
33276
|
+
const CONTENT_PROPS = [OPENING_MIX_PROP, 'src', 'poster', 'frames', 'formId', 'name'];
|
|
33277
|
+
/** A part's shape without its content: what it is made of and what it wears. */
|
|
33278
|
+
function partShape(node) {
|
|
33279
|
+
const strip = (n) => ({
|
|
33280
|
+
...n, props: Object.fromEntries(Object.entries(n.props ?? {}).filter(([k]) => !CONTENT_PROPS.includes(k))), children: (n.children ?? []).map(strip),
|
|
33281
|
+
});
|
|
33282
|
+
return headerShape(strip(node));
|
|
33283
|
+
}
|
|
33284
|
+
/** Every part with a role in `roles`, by role, in reading order (the frame is read as its own props, not its children). */
|
|
33285
|
+
function partsOf(root, roles) {
|
|
33286
|
+
const out = [];
|
|
33287
|
+
walkSerialized([root], n => {
|
|
33288
|
+
if (!n.role || !roles.includes(n.role))
|
|
33289
|
+
return;
|
|
33290
|
+
const own = n.role === OpeningRole.Frame || n.role === OpeningRole.FrameSettles ? { ...n, children: [] } : n;
|
|
33291
|
+
out.push(`${n.role}:${partShape(own)}`);
|
|
33292
|
+
});
|
|
33293
|
+
return out.join('|');
|
|
33294
|
+
}
|
|
33295
|
+
/** The opening composed as `mix` for the studio, with the same id — what `readOpening` compares and Apply starts from. */
|
|
33296
|
+
function compose(mix, site, id) {
|
|
33297
|
+
return composeOpening({ ...site, mix, asAsked: true }, { id });
|
|
33298
|
+
}
|
|
33299
|
+
/** What an opening is (OB-5): its stored mix, and which rows are no longer what that mix composes. Null: the section
|
|
33300
|
+
* stores no mix (a hand-made section — OB-6's "Make this an opening", never an inferred mix). Pure. */
|
|
33301
|
+
function readOpening(root, site) {
|
|
33302
|
+
const mix = storedOpeningMix(root);
|
|
33303
|
+
if (!mix)
|
|
33304
|
+
return null;
|
|
33305
|
+
const base = compose(mix, siteFor(site, root), root.id).section;
|
|
33306
|
+
const custom = Object.keys(ROW_ROLES)
|
|
33307
|
+
.filter(k => ROW_ROLES[k].length && partsOf(root, ROW_ROLES[k]) !== partsOf(base, ROW_ROLES[k]));
|
|
33308
|
+
return { mix, custom, galleryId: openingGalleryIdOf(mix) };
|
|
33309
|
+
}
|
|
33310
|
+
// ── The carry (OB-4) ───────────────────────────────────────────────────────────────────────────────────────────────
|
|
33311
|
+
const PICTURE_ROLES = [OpeningRole.Media, OpeningRole.MediaZooms, OpeningRole.Second, OpeningRole.Object, OpeningRole.Cutout];
|
|
33312
|
+
/** The words a node shows (a button's are its label's). */
|
|
33313
|
+
function wordsOf(n) {
|
|
33314
|
+
if (!n)
|
|
33315
|
+
return '';
|
|
33316
|
+
const own = n.props?.['content'] ?? n.props?.['label'];
|
|
33317
|
+
if (typeof own === 'string' && own.trim())
|
|
33318
|
+
return own.replace(/<[^>]+>/g, '').trim();
|
|
33319
|
+
for (const c of n.children ?? []) {
|
|
33320
|
+
const w = wordsOf(c);
|
|
33321
|
+
if (w)
|
|
33322
|
+
return w;
|
|
33323
|
+
}
|
|
33324
|
+
return '';
|
|
33325
|
+
}
|
|
33326
|
+
const byRole = (root, role) => {
|
|
33327
|
+
const out = [];
|
|
33328
|
+
walkSerialized([root], n => { if (n.role === role)
|
|
33329
|
+
out.push(n); });
|
|
33330
|
+
return out;
|
|
33331
|
+
};
|
|
33332
|
+
const firstRole = (root, role) => byRole(root, role)[0];
|
|
33333
|
+
/** The pictures of an opening, in order: the media, the second, the slideshow's, the object, the cut-out. */
|
|
33334
|
+
function picturesOf(root) {
|
|
33335
|
+
const out = [];
|
|
33336
|
+
walkSerialized([root], (n, ancestors) => {
|
|
33337
|
+
if (n.type !== 'Image')
|
|
33338
|
+
return;
|
|
33339
|
+
if ((n.role && PICTURE_ROLES.includes(n.role)) || ancestors.some(a => a.role === OpeningRole.Slides))
|
|
33340
|
+
out.push(n);
|
|
33341
|
+
});
|
|
33342
|
+
return out;
|
|
33343
|
+
}
|
|
33344
|
+
/** The title's words as the owner wrote them: the heading, or the words placed apart read as one line. */
|
|
33345
|
+
function titleWordsOf(root) {
|
|
33346
|
+
const apart = firstRole(root, OpeningRole.Apart);
|
|
33347
|
+
if (apart)
|
|
33348
|
+
return (apart.children ?? []).map(c => wordsOf(c)).filter(Boolean).join(' ');
|
|
33349
|
+
return wordsOf(firstRole(root, OpeningRole.Title));
|
|
33350
|
+
}
|
|
33351
|
+
/** The site an opening is recomposed for: its display words are the owner's title (a re-mix never rewrites them). */
|
|
33352
|
+
function siteFor(site, current) {
|
|
33353
|
+
const title = titleWordsOf(current);
|
|
33354
|
+
return title ? { ...site, business: { ...(site.business ?? { name: '' }), name: title } } : site;
|
|
33355
|
+
}
|
|
33356
|
+
const setWords = (n, words) => {
|
|
33357
|
+
if (n.type === 'ButtonBlock') {
|
|
33358
|
+
const label = (n.children ?? []).find(c => c.type === 'Text');
|
|
33359
|
+
if (label)
|
|
33360
|
+
label.props = { ...label.props, content: words };
|
|
33361
|
+
return;
|
|
33362
|
+
}
|
|
33363
|
+
n.props = { ...n.props, content: words };
|
|
33364
|
+
};
|
|
33365
|
+
/**
|
|
33366
|
+
* The owner's content carried from one opening into another, part for part (OB-4): the title, the line, the action (its
|
|
33367
|
+
* words and where it leads), the cue's and the badge's words, the pictures in order, the film, the card's words and
|
|
33368
|
+
* picture, the form (verbatim — its id, its fields). Returns what found no place.
|
|
33369
|
+
*/
|
|
33370
|
+
function carryOpening(from, to) {
|
|
33371
|
+
const notPlaced = [];
|
|
33372
|
+
const miss = (n, words = wordsOf(n)) => notPlaced.push({ role: n.role ?? n.type, words, nodeId: n.id });
|
|
33373
|
+
for (const role of [OpeningRole.Lead, OpeningRole.Action, OpeningRole.Cue]) {
|
|
33374
|
+
const src = firstRole(from, role);
|
|
33375
|
+
if (!src)
|
|
33376
|
+
continue;
|
|
33377
|
+
const dst = firstRole(to, role);
|
|
33378
|
+
if (!dst) {
|
|
33379
|
+
if (role !== OpeningRole.Cue)
|
|
33380
|
+
miss(src);
|
|
33381
|
+
continue;
|
|
33382
|
+
}
|
|
33383
|
+
setWords(dst, wordsOf(src));
|
|
33384
|
+
if (role === OpeningRole.Action)
|
|
33385
|
+
carryButtonLink(src, dst);
|
|
33386
|
+
}
|
|
33387
|
+
const badge = firstRole(from, OpeningRole.Badge);
|
|
33388
|
+
if (badge) {
|
|
33389
|
+
const dst = firstRole(to, OpeningRole.Badge);
|
|
33390
|
+
const words = wordsOf(badge);
|
|
33391
|
+
if (dst)
|
|
33392
|
+
(dst.children ?? []).forEach(c => setWords(c, words));
|
|
33393
|
+
else
|
|
33394
|
+
miss(badge, words);
|
|
33395
|
+
}
|
|
33396
|
+
const pictures = picturesOf(from).filter(p => typeof p.props?.['src'] === 'string' && p.props['src']);
|
|
33397
|
+
const slots = picturesOf(to);
|
|
33398
|
+
pictures.forEach((p, i) => {
|
|
33399
|
+
const slot = slots[i];
|
|
33400
|
+
if (!slot) {
|
|
33401
|
+
miss(p, '');
|
|
33402
|
+
return;
|
|
33403
|
+
}
|
|
33404
|
+
slot.props = { ...slot.props, src: p.props['src'], alt: p.props['alt'] ?? slot.props['alt'] ?? '' };
|
|
33405
|
+
});
|
|
33406
|
+
const film = firstRole(from, OpeningRole.Film);
|
|
33407
|
+
if (film && film.props?.['src']) {
|
|
33408
|
+
const dst = firstRole(to, OpeningRole.Film);
|
|
33409
|
+
if (dst)
|
|
33410
|
+
dst.props = { ...dst.props, ...Object.fromEntries(['src', 'poster', 'frames'].filter(k => k in film.props).map(k => [k, film.props[k]])) };
|
|
33411
|
+
else
|
|
33412
|
+
miss(film, '');
|
|
33413
|
+
}
|
|
33414
|
+
const card = firstRole(from, OpeningRole.Card);
|
|
33415
|
+
if (card) {
|
|
33416
|
+
const dst = firstRole(to, OpeningRole.Card);
|
|
33417
|
+
if (!dst)
|
|
33418
|
+
miss(card);
|
|
33419
|
+
else
|
|
33420
|
+
carryInto(card, dst);
|
|
33421
|
+
}
|
|
33422
|
+
const form = firstRole(from, OpeningRole.Form);
|
|
33423
|
+
if (form) {
|
|
33424
|
+
const dst = firstRole(to, OpeningRole.Form);
|
|
33425
|
+
if (!dst)
|
|
33426
|
+
miss(form, wordsOf(form));
|
|
33427
|
+
else
|
|
33428
|
+
dst.children = JSON.parse(JSON.stringify(form.children ?? []));
|
|
33429
|
+
}
|
|
33430
|
+
return notPlaced;
|
|
33431
|
+
}
|
|
33432
|
+
/** The opening for `next` (OB-4): the recipe's opening for the new mix, with the owner's content carried in, and what
|
|
33433
|
+
* found no place said. The same id, still the page's first section. Pure. */
|
|
33434
|
+
function applyOpeningMix(current, next, site) {
|
|
33435
|
+
const fresh = compose(next, siteFor(site, current), current.id);
|
|
33436
|
+
const section = fresh.section;
|
|
33437
|
+
const notPlaced = carryOpening(current, section);
|
|
33438
|
+
return { section, mix: fresh.mix, notPlaced };
|
|
33439
|
+
}
|
|
33440
|
+
/** "Make this an opening" (OB-6): a hand-made first section as the default opening — its words, first picture and first
|
|
33441
|
+
* button carried by the swap rule; what found no place said. The same id. Pure. */
|
|
33442
|
+
function openingFromSection(section, site, mix = openingMix()) {
|
|
33443
|
+
const headings = [];
|
|
33444
|
+
walkSerialized([section], n => { if (n.type === 'Heading')
|
|
33445
|
+
headings.push(n); });
|
|
33446
|
+
const named = wordsOf(headings[0]);
|
|
33447
|
+
const at = named ? { ...site, business: { ...(site.business ?? { name: '' }), name: named } } : site;
|
|
33448
|
+
const fresh = compose(mix, at, section.id);
|
|
33449
|
+
const lost = carryInto(section, fresh.section);
|
|
33450
|
+
return { section: fresh.section, mix: fresh.mix, notPlaced: lost.map(n => ({ role: n.role ?? n.type, words: n.type === 'Image' ? '' : wordsOf(n), nodeId: n.id })) };
|
|
33451
|
+
}
|
|
33452
|
+
/** What `checkOpening` would mend in a mix on this site — said in the studio, never applied by itself. */
|
|
33453
|
+
function openingAdvice(mix, site) {
|
|
33454
|
+
return checkOpening(drawnOpeningMix(mix).drawn, openingContextOf(site)).repairs;
|
|
33455
|
+
}
|
|
33456
|
+
/** The mix the advice's one action applies (the check's own mend), or null. */
|
|
33457
|
+
function openingAdviceMix(mix, site) {
|
|
33458
|
+
const checked = checkOpening(drawnOpeningMix(mix).drawn, openingContextOf(site));
|
|
33459
|
+
return checked.repairs.length ? checked.mix : null;
|
|
33460
|
+
}
|
|
33461
|
+
/** Media that move on their own — the slideshow's pause control is part of them (board 5). */
|
|
33462
|
+
const MOVING_OPENING_MEDIA = new Set([OpeningMedia.Film, OpeningMedia.Slideshow]);
|
|
33463
|
+
|
|
32333
33464
|
/**
|
|
32334
33465
|
* THE LAYOUT REPAIR (premium components M8 gate 2, §4.1; the prototype's `applyEdits`, `code/cl2.mjs`): a refused page
|
|
32335
33466
|
* comes back as a few path edits instead of the whole page — the paths `checkLayout` names (`sections[2].layers[1].col`).
|
|
@@ -32859,5 +33990,5 @@ function siteGlobalsOf(globals) {
|
|
|
32859
33990
|
* Generated bundle index. Do not edit.
|
|
32860
33991
|
*/
|
|
32861
33992
|
|
|
32862
|
-
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_OWN, ADJUST_STEPS, ADJUST_STEP_IDS, AI_COMPOSED_PAGES_BY_TIER, AI_COMPOSED_PAGES_ESTIMATED, 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_TYPICAL_TOKENS, ART_DIRECTION_PARTS, AWARD_COMPOSED_PAGES_ESTIMATED, AdditionHeldBack, AdditionIssueCode, AdditionOrigin, AdditionsPart, AdditionsSkipped, AdjustAxis, AdjustKind, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BUILD_STEPS, BUTTON_LINK_PROPS, BaselineRole, BindScope, BuildNoticeCode, BuildStep, CARRIED_BUTTON_STYLES, CARRY_LAYER_KINDS, CARRY_PHOTO_KINDS, CARRY_PROMPT_QUOTE, CARRY_WHOLE_LAYER_KINDS, CONTENT_ROLE_MEANINGS, 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, 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_LEGAL_ROLE, FOOTER_TOKEN, FORM_LEGAL_ROLE, FilmUnplaced, FooterArrange, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterRepairCode, GRAMMAR_TOO_LARGE_MESSAGE, GenerationTier, GlobalSlot, HAND_PAGE_KEY_PREFIX, HEADER_TOKEN, HEBREW_PREFIXES, HeaderAction, HeaderArrange, HeaderIngredient, HeaderMixError, HeaderPages, HeaderRepairCode, HeaderReplacedKind, IMPRINT_COUNTRIES, ISRAEL, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptPagesChoice, KeptReason, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_GUTTER, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_LIST_TOKEN, LAYOUT_MIX_OFFERED, LAYOUT_MIX_WORDS, 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_TEXT_KINDS, LAYOUT_TOOLTIP_TRAIT, LAYOUT_VIEWPORTS, LAYOUT_WIRE_AUTOPLAY_MS, LEGAL_KINDS, LEGAL_PAGE_SETTING, LIST_CARD_PART, LIST_INGREDIENTS, LIST_LONG_WORDS, LIST_ROLE_WORDS, LIST_TABLE, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutListArrange, LayoutListArrive, LayoutListHover, LayoutListHow, LayoutListItem, LayoutListMove, LayoutListPhone, LayoutListRole, LayoutListWho, LayoutMendKind, LayoutMixIngredient, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, LegalBlocks, LegalFact, LegalKind, MAX_SITE_PICTURES, MOTION_TRIGGERS, MenuSide, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, 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_WORLDS, PICTURE_WORLD_IDS, PLAN_EDITS_ANSWER_SHAPES, PLAN_EDITS_PART_SCHEMA_NAMES, PLAN_EDIT_OP_PART, PLAN_EDIT_SHAPE, PLAN_EDIT_WIRE_KEYS, PLAN_PARTS, PLAN_PART_KEYS, PLAN_WIRE_DERIVED, PLAN_WIRE_PART_SCHEMA_NAMES, PLAN_WIRE_SHAPE, PREVIOUS_ROUTE_SUFFIX, PRICING_PATTERN, PROOF_FINGERPRINTS, PUBLISH_BLOCKING_PLACEHOLDERS, PageDataKind, PathIssueCollector, PatternDirective, PatternGlobalPosition, PatternOpens, PatternPlaceholder, PatternRecipe, PhoneMenuBreakpoint, PhotoTone, PictureRefusal, PictureWorld, PlaceholderKind, PlanChangeAction, PlanChangeKind, PlanDataSourceMode, PlanDataSourceType, PlanEditIssueCode, PlanEditOp, PlanEditsOutcome, PlanPart, PlanWireEntry, PlanWireShapeError, PlanWordIssueCode, PreflightRefusalCode, PriceBindTarget, 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, 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_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, 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, STOCK_FAMILIES, STOCK_FAMILY_INTENTS, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MIN_KEPT, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STORE_CONTACT_CODES, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, SWAP_CARRY_KINDS, ScrimLevel, SectionFallbackLastResort, SectionMaker, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePageMaker, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StagedPageReason, StagedPageWay, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, additionKey, additionSourcesOf, additionsNeedContent, adjustStepLabel, adjustStepOf, adjustStyleProps, aiRefusalNext, aiStepParts, applyHeaderMix, applyLayoutEdits, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, blocksPublish, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calmParts, calmUnder, canonicalNodeJson, canonicalValue, carryBlockOf, carryHandles, carryKindOf, carryNotPlaced, checkAdditions, checkCarry, checkFooter, checkHeader, checkLayout, checkList, chooseScrim, composablePage, composeContextOf, composeLayout, composeNavHeader, composePresetForm, composeSection, composeSite, composedPagesMax, composedPagesShare, composerLeftovers, composingShare, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, costUsd, countryLegalFacts, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeCarryForPrompt, describeInventoryForPrompt, describeListShape, describePlanData, describeShapeKey, distinctFooter, distinctHeader, drawnFooterMix, drawnHeaderMix, driftAt, driftOverlap, duplicateNodeIds, editedPageIds, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandAdditions, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, factIssues, failedBuildStep, fallBackBySection, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, fingerprintOf, fingerprintOfPlanPage, footerMeaning, footerMix, footerMixFromWords, footerMixOfPlan, footerMixWords, footerPattern, footerPatternIdOf, footerReferences, footerTableWords, footerTokenOf, footerTokenWords, footerWait, footerWireWords, footerWords, formAsksPersonalData, formLegalFacts, frameWords, generationTierOf, handPageKey, handPlanPage, harvestPage, hash53, headerAdvice, headerCompanions, headerContextOfPlan, headerGallery, headerGalleryIdOf, headerMeaning, headerMix, headerMixFromWords, headerMixOfNavKind, headerMixOfPlan, headerMixValue, headerMixWords, headerPatternIdOf, headerRecipe, headerReferences, headerShape, headerTokenOf, headerTokenWords, headerWireWords, headerWordDrawn, headerWords, isActiveBuild, isAdditionKey, isHandPageKey, isLayoutRule, isLegalKind, isNonEmptyString, isPerItemPage, isPictureWorld, isPlainObject, isRedesignRun, isRtlLocale, isSectionCarryHandle, isSectionStamp, isShopResource, isTemplateRoute, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBinding, layoutListShapes, layoutListsContext, layoutLookChanges, layoutLookOf, layoutMixOffered, layoutMotionOf, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, legalFactsOf, legalFormLine, legalKindBlocks, legalKindOfPage, legalKindRow, legalKindsFor, legalLabel, legalPageOf, legalRoute, legalTitle, listBuiltWords, listIngredientWords, listMeaning, listNeverIsEmpty, listTokenOf, listTokensOf, listWait, listWords, luminanceOf, measureLayout, mendCarry, mendLayout, menuAtEveryWidth, menuLookOf, menuWords, modelCanDo, moveBarItem, moveEntrance, namedFooterMix, namedHeaderMix, navHeaderContext, navPages, navShapeBreakpoint, navShapeOf, nearestHeaderMix, nestSitePages, nextSourceOf, nodeBindPaths, offeredForTier, orientationOfRatio, ownPhotoFit, ownerContentInto, pageBuildSource, pageListIssues, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pictureAspect, pictureItemsOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, pinnedPagesOf, pixelsUnder, placeFilm, plainCarryText, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planHasShopSource, planHeader, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planSells, planStockPhotos, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWordIssues, previousRoute, pricesIn, publishRefusal, publishVerdict, quietMoveEntrance, readHeader, readyMadeColumn, recipeListBinds, recomposeAsks, redesignAdditionsJsonSchema, redesignBackOpen, redesignBackUntil, redesignDiscardable, refitBuiltPage, refitPage, refreshSectionStamps, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, rewordStoreGlobal, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, sectionBuildKey, sectionEntrances, sectionFingerprint, sectionOrigin, sectionPatternIds, sectionToWire, sectionTokenOf, sectionUnchanged, sectionsNamed, sequenceShare, sequenceTokenOf, setStyleProps, shapeKeys, shopCategoriesOf, shopContentType, shopListAliases, shopListsShownOn, shopPageOfPlan, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteBuiltWithLaw, siteGlobalsOf, siteNavPages, sitePagesOf, siteParentRoute, siteSells, siteTreeOf, siteTreeOfPlan, slotBudget, splitCssValue, splitSide, stampHeaderMix, stampSection, startComposingShare, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, storedHeaderMix, strictSchemaComplexity, strictSchemaRefusal, swapParts, tierOf, tierOffers, toneOf, typesOfAddition, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkSerialized, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withAdditions, withCarriedText, withComposedPages, withDerivedSources, withDistinctFooter, withDistinctHeader, withHeaderWord, withShownList, wordPattern, wordsOverPhotos, wordsOverPicture, wornHeaderOfPlan, writtenTexts };
|
|
33993
|
+
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_OWN, ADJUST_STEPS, ADJUST_STEP_IDS, AI_COMPOSED_PAGES_BY_TIER, AI_COMPOSED_PAGES_ESTIMATED, 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_TYPICAL_TOKENS, ART_DIRECTION_PARTS, AWARD_COMPOSED_PAGES_ESTIMATED, AdditionHeldBack, AdditionIssueCode, AdditionOrigin, AdditionsPart, AdditionsSkipped, AdjustAxis, AdjustKind, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BUILD_STEPS, BUTTON_LINK_PROPS, BaselineRole, BindScope, BuildNoticeCode, BuildStep, CARRIED_BUTTON_STYLES, CARRY_LAYER_KINDS, CARRY_PHOTO_KINDS, CARRY_PROMPT_QUOTE, CARRY_WHOLE_LAYER_KINDS, CONTENT_ROLE_MEANINGS, 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, 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_LEGAL_ROLE, FOOTER_TOKEN, FORM_LEGAL_ROLE, FilmUnplaced, FooterArrange, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterRepairCode, GRAMMAR_TOO_LARGE_MESSAGE, GenerationTier, GlobalSlot, HAND_PAGE_KEY_PREFIX, HEADER_TOKEN, HEBREW_PREFIXES, HeaderAction, HeaderArrange, HeaderIngredient, HeaderMixError, HeaderPages, HeaderRepairCode, HeaderReplacedKind, IMPRINT_COUNTRIES, ISRAEL, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptPagesChoice, KeptReason, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_GUTTER, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_LIST_TOKEN, LAYOUT_MIX_OFFERED, LAYOUT_MIX_WORDS, 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_TEXT_KINDS, LAYOUT_TOOLTIP_TRAIT, LAYOUT_VIEWPORTS, LAYOUT_WIRE_AUTOPLAY_MS, LEGAL_KINDS, LEGAL_PAGE_SETTING, LIST_CARD_PART, LIST_INGREDIENTS, LIST_LONG_WORDS, LIST_ROLE_WORDS, LIST_TABLE, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutListArrange, LayoutListArrive, LayoutListHover, LayoutListHow, LayoutListItem, LayoutListMove, LayoutListPhone, LayoutListRole, LayoutListWho, LayoutMendKind, LayoutMixIngredient, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, LegalBlocks, LegalFact, LegalKind, 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, OPENING_HEIGHT, OPENING_MIX_PROP, OPENING_TOKEN, OpeningExtra, OpeningFrame, 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_WORLDS, PICTURE_WORLD_IDS, PLAN_EDITS_ANSWER_SHAPES, PLAN_EDITS_PART_SCHEMA_NAMES, PLAN_EDIT_OP_PART, PLAN_EDIT_SHAPE, PLAN_EDIT_WIRE_KEYS, PLAN_PARTS, PLAN_PART_KEYS, PLAN_WIRE_DERIVED, PLAN_WIRE_PART_SCHEMA_NAMES, PLAN_WIRE_SHAPE, PREVIOUS_ROUTE_SUFFIX, PRICING_PATTERN, PROOF_FINGERPRINTS, PUBLISH_BLOCKING_PLACEHOLDERS, PageDataKind, PathIssueCollector, PatternDirective, PatternGlobalPosition, PatternOpens, PatternPlaceholder, PatternRecipe, PhoneMenuBreakpoint, PhotoTone, PictureRefusal, PictureWorld, PlaceholderKind, PlanChangeAction, PlanChangeKind, PlanDataSourceMode, PlanDataSourceType, PlanEditIssueCode, PlanEditOp, PlanEditsOutcome, PlanPart, PlanWireEntry, PlanWireShapeError, PlanWordIssueCode, PreflightRefusalCode, PriceBindTarget, 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, 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_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, 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, STOCK_FAMILIES, STOCK_FAMILY_INTENTS, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MIN_KEPT, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STORE_CONTACT_CODES, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, SWAP_CARRY_KINDS, ScrimLevel, SectionFallbackLastResort, SectionMaker, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePageMaker, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StagedPageReason, StagedPageWay, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, additionKey, additionSourcesOf, additionsNeedContent, adjustStepLabel, adjustStepOf, adjustStyleProps, aiRefusalNext, aiStepParts, applyHeaderMix, applyLayoutEdits, applyOpeningMix, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, blocksPublish, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calmParts, calmUnder, canonicalNodeJson, canonicalValue, carryBlockOf, carryButtonLink, carryHandles, carryInto, carryKindOf, carryNotPlaced, checkAdditions, checkCarry, checkFooter, checkHeader, checkLayout, checkList, checkOpening, chooseScrim, composablePage, composeContextOf, composeLayout, composeNavHeader, composeOpening, composePresetForm, composeSection, composeSite, composedPagesMax, composedPagesShare, composerLeftovers, composingShare, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, costUsd, countryLegalFacts, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeCarryForPrompt, describeInventoryForPrompt, describeListShape, describePlanData, describeShapeKey, distinctFooter, distinctHeader, drawnFooterMix, drawnHeaderMix, drawnOpeningMix, driftAt, driftOverlap, duplicateNodeIds, editedPageIds, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandAdditions, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, factIssues, failedBuildStep, fallBackBySection, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, findOpening, fingerprintOf, fingerprintOfPlanPage, footerMeaning, footerMix, footerMixFromWords, footerMixOfPlan, footerMixWords, footerPattern, footerPatternIdOf, footerReferences, footerTableWords, footerTokenOf, footerTokenWords, footerWait, footerWireWords, footerWords, formAsksPersonalData, formLegalFacts, frameWords, generationTierOf, handPageKey, handPlanPage, harvestPage, hash53, headerAdvice, headerCompanions, headerContextOfPlan, headerGallery, headerGalleryIdOf, headerMeaning, headerMix, headerMixFromWords, headerMixOfNavKind, headerMixOfPlan, headerMixValue, headerMixWords, headerPatternIdOf, headerRecipe, headerReferences, headerShape, headerTokenOf, headerTokenWords, headerWireWords, headerWordDrawn, headerWords, isActiveBuild, isAdditionKey, isHandPageKey, isLayoutRule, isLegalKind, isNonEmptyString, isPerItemPage, isPictureWorld, isPlainObject, isRedesignRun, isRtlLocale, isSectionCarryHandle, isSectionStamp, isShopResource, isTemplateRoute, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBinding, layoutListShapes, layoutListsContext, layoutLookChanges, layoutLookOf, layoutMixOffered, layoutMotionOf, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, legalFactsOf, legalFormLine, legalKindBlocks, legalKindOfPage, legalKindRow, legalKindsFor, legalLabel, legalPageOf, legalRoute, legalTitle, listBuiltWords, listIngredientWords, listMeaning, listNeverIsEmpty, listTokenOf, listTokensOf, listWait, listWords, luminanceOf, measureLayout, mendCarry, mendLayout, mendNotices, menuAtEveryWidth, menuLookOf, menuWords, modelCanDo, moveBarItem, moveEntrance, namedFooterMix, namedHeaderMix, namedOpeningMix, navHeaderContext, navPages, navShapeBreakpoint, navShapeOf, nearestHeaderMix, nestSitePages, nextSourceOf, nodeBindPaths, offeredForTier, openingAdvice, openingAdviceMix, openingContextOf, openingFromSection, openingGallery, openingGalleryIdOf, openingMeaning, openingMix, openingMixFromWords, openingMixOfPlan, openingMixValue, openingMixWords, openingPatternIdOf, openingPhoneInset, openingRecipe, openingReferences, openingTokenOf, openingWireWords, openingWordDrawn, openingWordOffered, openingWordTier, openingWordWaits, openingWords$1 as openingWords, orientationOfRatio, ownPhotoFit, ownerContentInto, pageBuildSource, pageListIssues, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pictureAspect, pictureItemsOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, pinnedPagesOf, pixelsUnder, placeFilm, plainCarryText, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planHasShopSource, planHeader, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planSells, planStockPhotos, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWordIssues, previousRoute, pricesIn, publishRefusal, publishVerdict, quietMoveEntrance, readHeader, readOpening, readyMadeColumn, recipeListBinds, recomposeAsks, redesignAdditionsJsonSchema, redesignBackOpen, redesignBackUntil, redesignDiscardable, refitBuiltPage, refitPage, refreshSectionStamps, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, rewordStoreGlobal, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, sectionBuildKey, sectionEntrances, sectionFingerprint, sectionOrigin, sectionPatternIds, sectionToWire, sectionTokenOf, sectionUnchanged, sectionsNamed, sequenceShare, sequenceTokenOf, setStyleProps, shapeKeys, shopCategoriesOf, shopContentType, shopListAliases, shopListsShownOn, shopPageOfPlan, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteBuiltWithLaw, siteGlobalsOf, siteNavPages, sitePagesOf, siteParentRoute, siteSells, siteTreeOf, siteTreeOfPlan, slotBudget, splitCssValue, splitSide, stampHeaderMix, stampOpeningMix, stampSection, startComposingShare, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, storedHeaderMix, storedOpeningMix, strictSchemaComplexity, strictSchemaRefusal, swapParts, tierOf, tierOffers, toneOf, typesOfAddition, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkSerialized, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withAdditions, withCarriedText, withComposedPages, withDerivedSources, withDistinctFooter, withDistinctHeader, withHeaderWord, withOpeningWord, withShownList, wordPattern, wordsOverPhotos, wordsOverPicture, wornHeaderOfPlan, writtenTexts };
|
|
32863
33994
|
//# sourceMappingURL=vectoriox-iox-ui-generation-core.mjs.map
|