@vectoriox/iox-ui 5.149.0 → 5.151.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.
@@ -4,7 +4,7 @@ import { SLIDER_TYPE, badgeToneOf, isAnyCompositeRoot, MarqueeRole, NO_ELEMENT_S
4
4
  import { formPresetById, ControlType, FIELD_NODE_TYPE, FORM_NODE_TYPE, FormPresetId, FormAfterSend, FORM_AFTER_SEND_TRAIT, FORM_ACTIONS_ROLE, channelOpensNewTab, FORM_CHANNEL_ROLE, presetFormActions, planFormPresetIds, collectFormSpec, isChannelFilled } from '@vectoriox/iox-ui/forms-core';
5
5
  import { normalizeFrameSequence, filmScreensFor, FILM_PREPARED_PICTURES, FrameExtension } from '@vectoriox/iox-ui/media-core';
6
6
  import { SEO_DESCRIPTION_MAX, SEO_TITLE_MAX } from '@vectoriox/iox-ui/seo-core';
7
- import { VARIANT_NAME_SEPARATOR, CheckoutGateCode, labelIn } from '@vectoriox/iox-ui/commerce-core';
7
+ import { VARIANT_NAME_SEPARATOR, commerceLanguage, CommerceLanguage, CHECKOUT_GATE_RULES, labelIn, CheckoutGateCode } from '@vectoriox/iox-ui/commerce-core';
8
8
  import { ParallaxDepth, parallaxShift, rangeDistance, ScrollRange, normalizeParallaxPhone, parallaxRest, rangeProgress, parallaxOffset, TextRevealBy } from '@vectoriox/iox-ui/scene-core';
9
9
  import { SCROLL_PROGRESS_TRIGGER, ELEMENT_ACTION_DESCRIPTORS, actionOfferedUnder, resolveActionAvailability } from '@vectoriox/iox-ui/actions-core';
10
10
  import { ConsentCategory } from '@vectoriox/iox-ui/consent-core';
@@ -7608,6 +7608,53 @@ const SPEC_SITE_LAYOUT = {
7608
7608
  "hover.tilt": "the card's ground turns, its content settles smaller",
7609
7609
  "arrive.clip-up": "each card opens from its bottom edge, its content rising inside"
7610
7610
  },
7611
+ "meaningsHe": {
7612
+ "item.photo": "תמונות בלבד",
7613
+ "item.card": "כרטיס שבנוי מהשדות של הרשימה (החלקים שלה)",
7614
+ "arrange.row": "זה לצד זה בשורה אחת שעוברים לאורכה",
7615
+ "arrange.grid": "רשת שעומדת במקום",
7616
+ "arrange.masonry": "קיר שעומד במקום ושומר על הצורה של כל תמונה",
7617
+ "arrange.strips": "רצועות גבוהות, אחת תמיד פתוחה לרוחב עם כל הסיפור שלה",
7618
+ "arrange.deck": "ערימה: כרטיס אחד למעלה, והשאר מחכים מאחוריו",
7619
+ "who.none": "אף אחד לא בולט",
7620
+ "who.middle": "זה שבאמצע השורה",
7621
+ "who.first": "הראשון",
7622
+ "who.pointed": "זה שהמבקר מצביע עליו או נוגע בו",
7623
+ "how.bigger": "גדול מהשאר",
7624
+ "how.wider": "פתוח לרוחב (רצועות בלבד)",
7625
+ "how.raised": "מורם מעל השאר",
7626
+ "how.brighter": "השאר מעומעמים",
7627
+ "move.arrows": "כפתורי חצים",
7628
+ "move.drag": "גרירה בעכבר או באצבע",
7629
+ "move.auto": "מתחלף מעצמו (עוצר מתחת לעכבר)",
7630
+ "move.page": "הגלילה של הדף מזיזה אותו הצידה (לבד)",
7631
+ "hover.rise": "פריט עולה מתחת לעכבר",
7632
+ "hover.open": "רצועה נפתחת מתחת לעכבר (רצועות בלבד)",
7633
+ "hover.zoom": "התמונה גדלה בתוך המסגרת שלה",
7634
+ "hover.dim": "האחרים מתעמעמים",
7635
+ "arrive.together": "כולם יחד",
7636
+ "arrive.one-by-one": "אחד אחרי השני",
7637
+ "arrive.slide-in": "מחליקים פנימה מהצד",
7638
+ "phone.swipe": "שורה שמחליקים",
7639
+ "phone.stack": "אחד מתחת לשני",
7640
+ "phone.two-up": "שניים בשורה",
7641
+ "item.title-on-photo": "שם הפריט על התמונה שלו",
7642
+ "item.packshot": "כל פריט על אריח באותו צבע",
7643
+ "item.colour-block": "כל פריט על רקע בצבע משלו (מהתוכן, עם בדיקת ניגודיות לכל פריט)",
7644
+ "item.numbered": "מספר גדול מאחורי כל פריט או מעליו",
7645
+ "arrange.hang": "קיר: פריטים בשניים או שלושה גדלים ובגבהים שונים, חלקם מעבר לקצה המקטע",
7646
+ "arrange.bento": "אריח אחד בגובה שתי שורות לצד אריחים קטנים",
7647
+ "arrange.rows": "שורות ממוספרות עם קו דק ביניהן; הפעולה של שורה מופיעה מתחת לעכבר",
7648
+ "arrange.stage": "רשימה בצד אחד מניעה תמונה גדולה אחת בצד השני",
7649
+ "arrange.fan": "כרטיסים פרושים בקשת סביב נקודה אחת",
7650
+ "arrange.tilted": "כל פריט מוטה בכמה מעלות, כמו תמונות מפוזרות",
7651
+ "move.rows": "כמה שורות תמונות שנסחפות הצידה במהירויות שונות",
7652
+ "hover.swap": "התמונה מתחלפת לתמונה השנייה של הפריט",
7653
+ "hover.unveil": "תמונה שנייה נפתחת מאחד הקצוות",
7654
+ "hover.fill": "מסגרת ריקה בכרטיס מתמלאת בתמונה",
7655
+ "hover.tilt": "הרקע של הכרטיס מסתובב, והתוכן מתכווץ מעט",
7656
+ "arrive.clip-up": "כל כרטיס נפתח מהקצה התחתון שלו, והתוכן עולה בתוכו"
7657
+ },
7611
7658
  "waits": {},
7612
7659
  "belowPro": {
7613
7660
  "item.title-on-photo": "photo",
@@ -19554,6 +19601,8 @@ const LIST_TABLE = SPEC_SITE_LAYOUT.list;
19554
19601
  const LIST_INGREDIENTS = Object.keys(LIST_TABLE.ingredients);
19555
19602
  const WAITS$4 = LIST_TABLE.waits;
19556
19603
  const MEANINGS$2 = LIST_TABLE.meanings;
19604
+ /** vectoriox/iox-ui#123 (BL-D7): the meanings in Hebrew, key for key (the contract's build fails on a missing one). */
19605
+ const MEANINGS_HE$1 = (LIST_TABLE.meaningsHe ?? {});
19557
19606
  /** Every word of an ingredient. */
19558
19607
  function listIngredientWords(k) {
19559
19608
  return LIST_TABLE.ingredients[k];
@@ -19566,9 +19615,11 @@ function listWait(k, word) {
19566
19615
  function listBuiltWords(k) {
19567
19616
  return listIngredientWords(k).filter(w => !listWait(k, w));
19568
19617
  }
19569
- /** What a word means, in the words the model and the owner read (the word itself when the table has none). */
19570
- function listMeaning(k, word) {
19571
- return MEANINGS$2[`${k}.${word}`] ?? word;
19618
+ /** What a word means, in the words the model and the owner read (the word itself when the table has none). The model
19619
+ * reads English; an owner reads it in the admin's language (`he`, `he-IL`, `iw` — commerce-core's ONE language rule). */
19620
+ function listMeaning(k, word, locale) {
19621
+ const key = `${k}.${word}`;
19622
+ return (commerceLanguage(locale) === CommerceLanguage.He ? MEANINGS_HE$1[key] : undefined) ?? MEANINGS$2[key] ?? word;
19572
19623
  }
19573
19624
  // ── AW11 (award-ingredients-plan.md §7.1f, board award-lists): the award tier, the rhythms, what each word needs ─────
19574
19625
  /** AW-D23: a word every plan wears (`all`) or the award tier's alone (`pro`). */
@@ -20562,6 +20613,311 @@ function describeInventoryForPrompt(id, inv, label) {
20562
20613
  ].join(' · ');
20563
20614
  }
20564
20615
 
20616
+ /**
20617
+ * What THE LIST JUDGE says, in the owner's language (vectoriox/iox-ui#123, board bindings-list BL-D6). Every mend and
20618
+ * refusal `checkList` makes has ONE entry here: a code, the values it names (`params`), and its sentence in English and
20619
+ * Hebrew — the audit's approach (`audit-words.ts`), with commerce-core's ONE language rule (`commerceLanguage`: `he`,
20620
+ * `he-IL`, `iw` read Hebrew, anything else English). The English sentence is the issue's `message`, word for word what
20621
+ * the model and the log read; a screen says `listSentence(issue, lang)`.
20622
+ *
20623
+ * A word of the list table travels as `{ k, w }` (`LayoutWordRef`), never as its English: the English sentence quotes the
20624
+ * word or its meaning as it always did, the Hebrew one says the word's Hebrew meaning (the contract's `LIST.meaningsHe`).
20625
+ */
20626
+ var ListSayCode;
20627
+ (function (ListSayCode) {
20628
+ /** A word the product draws in a later phase, drawn as its stand-in meanwhile (or left out). */
20629
+ ListSayCode["Waits"] = "list-waits";
20630
+ /** A round-two word on a site below the award plan: its stand-in instead (or left out). */
20631
+ ListSayCode["AwardOnly"] = "list-award-only";
20632
+ /** The mix shows roles the list does not hold. */
20633
+ ListSayCode["NoSuchParts"] = "list-no-such-parts";
20634
+ ListSayCode["PhotoNoPictures"] = "list-photo-no-pictures";
20635
+ ListSayCode["PhotoPictureOnly"] = "list-photo-picture-only";
20636
+ /** A round-two item that needs a picture, on a list with none. */
20637
+ ListSayCode["ItemNeedsPictures"] = "list-item-needs-pictures";
20638
+ ListSayCode["TitleTooLong"] = "list-title-too-long";
20639
+ ListSayCode["PackshotNotPlain"] = "list-packshot-not-plain";
20640
+ ListSayCode["TitleOnPhotoParts"] = "list-title-on-photo-parts";
20641
+ ListSayCode["StripsNeedPictures"] = "list-strips-need-pictures";
20642
+ ListSayCode["StripsAtMost"] = "list-strips-at-most";
20643
+ /** The business type's lists never take this arrangement (L-D12). */
20644
+ ListSayCode["NeverArrange"] = "list-never-arrange";
20645
+ ListSayCode["TooFewFor"] = "list-too-few-for";
20646
+ ListSayCode["ShowsFirst"] = "list-shows-first";
20647
+ ListSayCode["BentoTooFew"] = "list-bento-too-few";
20648
+ ListSayCode["BentoTrim"] = "list-bento-trim";
20649
+ ListSayCode["TiltedLong"] = "list-tilted-long";
20650
+ ListSayCode["GridLong"] = "list-grid-long";
20651
+ ListSayCode["StripOpenFirst"] = "list-strip-open-first";
20652
+ ListSayCode["StripWider"] = "list-strip-wider";
20653
+ ListSayCode["NoneStandsOut"] = "list-none-stands-out";
20654
+ ListSayCode["RowsOnlyWho"] = "list-rows-only-who";
20655
+ ListSayCode["StripsOnlyHow"] = "list-strips-only-how";
20656
+ ListSayCode["RowsStandout"] = "list-rows-standout";
20657
+ /** The business type's lists never move this way (L-D12). */
20658
+ ListSayCode["NeverMove"] = "list-never-move";
20659
+ ListSayCode["FanDragOnly"] = "list-fan-drag-only";
20660
+ ListSayCode["FanTooFew"] = "list-fan-too-few";
20661
+ ListSayCode["DriftNeedsPictures"] = "list-drift-needs-pictures";
20662
+ ListSayCode["StillNoMove"] = "list-still-no-move";
20663
+ ListSayCode["RowOnlyMove"] = "list-row-only-move";
20664
+ ListSayCode["PageAlone"] = "list-page-alone";
20665
+ ListSayCode["DriftAlone"] = "list-drift-alone";
20666
+ ListSayCode["DriftPicturesOnly"] = "list-drift-pictures-only";
20667
+ ListSayCode["DragDefault"] = "list-drag-default";
20668
+ ListSayCode["StripsOnlyHover"] = "list-strips-only-hover";
20669
+ ListSayCode["HoverSecondPicture"] = "list-hover-second-picture";
20670
+ ListSayCode["HoverPicture"] = "list-hover-picture";
20671
+ ListSayCode["TiltMoving"] = "list-tilt-moving";
20672
+ ListSayCode["TiltCardOnly"] = "list-tilt-card-only";
20673
+ ListSayCode["FirstScreen"] = "list-first-screen";
20674
+ ListSayCode["NoSwipe"] = "list-no-swipe";
20675
+ ListSayCode["StageSwipes"] = "list-stage-swipes";
20676
+ ListSayCode["FanSwipes"] = "list-fan-swipes";
20677
+ // Refusals — the model's (or the owner's) next turn.
20678
+ ListSayCode["TooFewItems"] = "list-too-few-items";
20679
+ ListSayCode["ArrangeNeedsPictures"] = "list-arrange-needs-pictures";
20680
+ })(ListSayCode || (ListSayCode = {}));
20681
+ /** A word of the list table, as a value a sentence names. */
20682
+ const listWordRef = (k, w) => ({ k, w });
20683
+ const listWordRefs = (k, ws) => ws.map(w => listWordRef(k, w));
20684
+ /** The roles in Hebrew (the English sentence names the role itself, as it always did). */
20685
+ const ROLE_HE = {
20686
+ title: 'שם', summary: 'תקציר', image: 'תמונה', meta: 'פרט', date: 'תאריך', gallery: 'גלריה', logo: 'לוגו', icon: 'אייקון',
20687
+ quote: 'ציטוט', person: 'אדם', link: 'קישור', colour: 'צבע', price: 'מחיר', compareAt: 'מחיר קודם',
20688
+ };
20689
+ /** Why a type's lists were mended, when its rule carries no sentence of its own. */
20690
+ const NEVER_WHY = { en: 'this business never shows a list that way', he: 'העסק הזה אף פעם לא מציג רשימה כך' };
20691
+ /** Every code's sentence. Typed by the codes' values, so a new code without words does not compile. */
20692
+ const LIST_SAY_WORDS = {
20693
+ 'list-waits': {
20694
+ en: r => `${r.v('k')} ${r.word('word')} is drawn in ${r.v('phase')}: ${r.v('as') ? `${r.word('as')} meanwhile` : 'left out meanwhile'}`,
20695
+ he: r => `"${r.m('word')}" יצויר ב־${r.v('phase')}: ${r.v('as') ? `בינתיים "${r.m('as')}"` : 'בינתיים בלעדיו'}`,
20696
+ },
20697
+ 'list-award-only': {
20698
+ en: r => `${r.v('k')} ${r.word('word')} comes with the award plan: ${r.v('as') ? `${r.word('as')} instead` : 'left out'}`,
20699
+ he: r => `"${r.m('word')}" מגיע עם תוכנית Pro: ${r.v('as') ? `במקומו "${r.m('as')}"` : 'הוא לא יוצג'}`,
20700
+ },
20701
+ 'list-no-such-parts': {
20702
+ en: r => `"${r.v('alias')}" holds no ${r.v('parts')} — left out`,
20703
+ he: r => `ב־"${r.v('alias')}" אין ${r.roles('parts')} — לא יוצג בכרטיס`,
20704
+ },
20705
+ 'list-photo-no-pictures': {
20706
+ en: r => `"${r.v('alias')}" has no pictures — its items are cards`,
20707
+ he: r => `ב־"${r.v('alias')}" אין תמונות — הפריטים יהיו כרטיסים`,
20708
+ },
20709
+ 'list-photo-picture-only': {
20710
+ en: () => 'a photo item shows its picture only',
20711
+ he: () => 'פריט תמונה מציג רק את התמונה שלו',
20712
+ },
20713
+ 'list-item-needs-pictures': {
20714
+ en: r => `"${r.v('alias')}" has no pictures — ${r.m('item')} needs one: its items are cards`,
20715
+ he: r => `ב־"${r.v('alias')}" אין תמונות, ו"${r.m('item')}" צריך תמונה — הפריטים יהיו כרטיסים`,
20716
+ },
20717
+ 'list-title-too-long': {
20718
+ en: r => `"${r.v('alias')}" has names of ${r.v('words')} words — more than ${r.v('max')} would cover the picture: its items are cards`,
20719
+ he: r => `ב־"${r.v('alias')}" השמות באורך ${r.v('words')} מילים — יותר מ־${r.v('max')} יכסו את התמונה, אז הפריטים יהיו כרטיסים`,
20720
+ },
20721
+ 'list-packshot-not-plain': {
20722
+ en: r => `"${r.v('alias')}"'s pictures do not stand on a plain ground — a packshot needs one: its items are cards`,
20723
+ he: r => `התמונות של "${r.v('alias')}" לא עומדות על רקע אחיד, וצילום מוצר צריך רקע כזה — הפריטים יהיו כרטיסים`,
20724
+ },
20725
+ 'list-title-on-photo-parts': {
20726
+ en: () => 'a name on its picture shows the picture, the name and a short detail only',
20727
+ he: () => 'שם על התמונה מציג רק את התמונה, את השם ופרט קצר',
20728
+ },
20729
+ 'list-strips-need-pictures': {
20730
+ en: () => 'strips need a picture in every item — a still grid instead',
20731
+ he: () => 'רצועות צריכות תמונה בכל פריט — במקומן רשת שעומדת במקום',
20732
+ },
20733
+ 'list-strips-at-most': {
20734
+ en: r => `${r.v('max')} strips fit at most — "${r.v('alias')}" has ${r.v('items')}: ${r.m('instead')}`,
20735
+ he: r => `נכנסות לכל היותר ${r.v('max')} רצועות — ב־"${r.v('alias')}" יש ${r.v('items')}: ${r.m('instead')}`,
20736
+ },
20737
+ 'list-never-arrange': {
20738
+ en: r => `${r.why()} — ${r.m('instead')}`,
20739
+ he: r => `${r.why()} — ${r.m('instead')}`,
20740
+ },
20741
+ 'list-too-few-for': {
20742
+ en: r => `${r.m('arrange')} needs ${r.v('fewest')} items — "${r.v('alias')}" has ${r.v('items')}: ${r.m('instead')}`,
20743
+ he: r => `"${r.m('arrange')}" צריך ${r.v('fewest')} פריטים — ב־"${r.v('alias')}" יש ${r.v('items')}: ${r.m('instead')}`,
20744
+ },
20745
+ 'list-shows-first': {
20746
+ en: r => `${r.m('arrange')} shows the first ${r.v('most')} of "${r.v('alias')}"'s ${r.v('items')}, then the link to all of them`,
20747
+ he: r => `"${r.m('arrange')}" מציג את ${r.v('most')} הראשונים מתוך ${r.v('items')} של "${r.v('alias')}", ואחריהם הקישור לכולם`,
20748
+ },
20749
+ 'list-bento-too-few': {
20750
+ en: r => `a bento needs ${r.v('fewest')} items — ${r.m('instead')}`,
20751
+ he: r => `בנטו צריך ${r.v('fewest')} פריטים — ${r.m('instead')}`,
20752
+ },
20753
+ 'list-bento-trim': {
20754
+ en: r => `a bento fits ${r.v('fills')} — "${r.v('alias')}" has ${r.v('items')}, so it shows ${r.v('shows')} and the link to all of them`,
20755
+ he: r => `בנטו מתאים ל־${r.v('fillsOr')} פריטים — ב־"${r.v('alias')}" יש ${r.v('items')}, אז יוצגו ${r.v('shows')} והקישור לכולם`,
20756
+ },
20757
+ 'list-tilted-long': {
20758
+ en: r => `its ${r.roles('roles', true)} run long — a turned card shows their first lines`,
20759
+ he: r => `${r.roles('roles', true)} ארוכים — כרטיס מוטה מציג רק את השורות הראשונות`,
20760
+ },
20761
+ 'list-grid-long': {
20762
+ en: r => `its ${r.roles('roles', true)} run long — a grid would cut them: ${r.m('instead')}`,
20763
+ he: r => `${r.roles('roles', true)} ארוכים — רשת הייתה חותכת אותם: ${r.m('instead')}`,
20764
+ },
20765
+ 'list-strip-open-first': {
20766
+ en: () => 'one strip is always open — the first',
20767
+ he: () => 'רצועה אחת תמיד פתוחה — הראשונה',
20768
+ },
20769
+ 'list-strip-wider': {
20770
+ en: () => 'the open strip is the wider one',
20771
+ he: () => 'הרצועה הפתוחה היא הרחבה',
20772
+ },
20773
+ 'list-none-stands-out': {
20774
+ en: () => 'nothing stands out — no way to stand out',
20775
+ he: () => 'אף אחד לא בולט — ולכן אין גם דרך לבלוט',
20776
+ },
20777
+ 'list-rows-only-who': {
20778
+ en: r => `${r.word('who')} is a row's — the first stands out`,
20779
+ he: r => `"${r.m('who')}" שייך לשורה — הראשון בולט במקומו`,
20780
+ },
20781
+ 'list-strips-only-how': {
20782
+ en: r => `${r.word('how')} is a strip's — bigger instead`,
20783
+ he: r => `"${r.m('how')}" שייך לרצועות — במקום זה גדול יותר`,
20784
+ },
20785
+ 'list-rows-standout': {
20786
+ en: () => 'numbered rows stand out one way: the one pointed at, the rest dimmed',
20787
+ he: () => 'שורות ממוספרות בולטות בדרך אחת: זו שמצביעים עליה, והשאר מעומעמות',
20788
+ },
20789
+ 'list-never-move': {
20790
+ en: r => `${r.why()} — no ${r.v('moves')}`,
20791
+ he: r => `${r.why()} — בלי ${r.m('moves')}`,
20792
+ },
20793
+ 'list-fan-drag-only': {
20794
+ en: r => `a fan is only dragged — no ${r.v('moves')}`,
20795
+ he: r => `מניפה רק נגררת — בלי ${r.m('moves')}`,
20796
+ },
20797
+ 'list-fan-too-few': {
20798
+ en: r => `a fan of fewer than ${r.v('fewest')} cards stays still`,
20799
+ he: r => `מניפה של פחות מ־${r.v('fewest')} כרטיסים עומדת במקום`,
20800
+ },
20801
+ 'list-drift-needs-pictures': {
20802
+ en: r => `"${r.v('alias')}" has no pictures — no drifting rows`,
20803
+ he: r => `ב־"${r.v('alias')}" אין תמונות — בלי שורות נסחפות`,
20804
+ },
20805
+ 'list-still-no-move': {
20806
+ en: r => `${r.m('arrange')} does not move — no ${r.v('moves')}`,
20807
+ he: r => `"${r.m('arrange')}" לא זז — בלי ${r.m('moves')}`,
20808
+ },
20809
+ 'list-row-only-move': {
20810
+ en: r => `"${r.v('moves')}" carries a row only`,
20811
+ he: r => `"${r.m('moves')}" מזיז רק שורה`,
20812
+ },
20813
+ 'list-page-alone': {
20814
+ en: () => 'the page\'s scroll carries the row alone',
20815
+ he: () => 'הגלילה של הדף מזיזה את השורה לבדה',
20816
+ },
20817
+ 'list-drift-alone': {
20818
+ en: () => 'drifting rows move by themselves alone',
20819
+ he: () => 'שורות נסחפות זזות מעצמן, בלי שום תנועה נוספת',
20820
+ },
20821
+ 'list-drift-pictures-only': {
20822
+ en: () => 'drifting rows hold pictures only',
20823
+ he: () => 'שורות נסחפות מחזיקות רק תמונות',
20824
+ },
20825
+ 'list-drag-default': {
20826
+ en: r => `${r.m('arrange')} — the visitor drags it`,
20827
+ he: r => `"${r.m('arrange')}" — המבקר גורר אותו`,
20828
+ },
20829
+ 'list-strips-only-hover': {
20830
+ en: r => `"${r.v('hovers')}" is a strip's`,
20831
+ he: r => `"${r.m('hovers')}" שייך לרצועות`,
20832
+ },
20833
+ 'list-hover-second-picture': {
20834
+ en: r => `${r.word('hover')} needs a second picture — "${r.v('alias')}" has one per item`,
20835
+ he: r => `"${r.m('hover')}" צריך תמונה שנייה — ב־"${r.v('alias')}" יש אחת לכל פריט`,
20836
+ },
20837
+ 'list-hover-picture': {
20838
+ en: r => `${r.word('hover')} needs a picture — "${r.v('alias')}" has none`,
20839
+ he: r => `"${r.m('hover')}" צריך תמונה — ב־"${r.v('alias')}" אין תמונות`,
20840
+ },
20841
+ 'list-tilt-moving': {
20842
+ en: r => `${r.m('arrange')} moves — its card rises instead of turning`,
20843
+ he: r => `"${r.m('arrange')}" זז — הכרטיס שלו עולה במקום להסתובב`,
20844
+ },
20845
+ 'list-tilt-card-only': {
20846
+ en: () => 'only a card turns its ground — it rises instead',
20847
+ he: () => 'רק כרטיס מסובב את הרקע שלו — הפריט עולה במקום',
20848
+ },
20849
+ 'list-first-screen': {
20850
+ en: r => `the first screen shows its items at once — ${r.word('arrive')} plays further down the page`,
20851
+ he: r => `המסך הראשון מציג את הפריטים מיד — "${r.m('arrive')}" מתנגן בהמשך הדף`,
20852
+ },
20853
+ 'list-no-swipe': {
20854
+ en: r => `${r.m('arrange')} does not swipe on a phone — it stacks`,
20855
+ he: r => `"${r.m('arrange')}" לא מחליק בטלפון — הפריטים נערמים זה מתחת לזה`,
20856
+ },
20857
+ 'list-stage-swipes': {
20858
+ en: () => 'a stage is a row of cards you swipe on a phone',
20859
+ he: () => 'בטלפון במה היא שורת כרטיסים שמחליקים',
20860
+ },
20861
+ 'list-fan-swipes': {
20862
+ en: () => 'a fan is a row you swipe on a phone',
20863
+ he: () => 'בטלפון מניפה היא שורה שמחליקים',
20864
+ },
20865
+ 'list-too-few-items': {
20866
+ en: r => `a list section shows at least ${r.v('min')} items — "${r.v('alias')}" has ${r.v('items')}; show it another way`,
20867
+ he: r => `מקטע רשימה מציג לפחות ${r.v('min')} פריטים — ב־"${r.v('alias')}" יש ${r.v('items')}; הציגו אותו בדרך אחרת`,
20868
+ },
20869
+ 'list-arrange-needs-pictures': {
20870
+ en: r => `${r.m('arrange')} needs a picture in every item — "${r.v('alias')}" has none; arrange it another way`,
20871
+ he: r => `"${r.m('arrange')}" צריך תמונה בכל פריט — ב־"${r.v('alias')}" אין תמונות; סדרו אותה בדרך אחרת`,
20872
+ },
20873
+ };
20874
+ const isRef = (v) => !!v && typeof v === 'object' && !Array.isArray(v) && 'k' in v && 'w' in v;
20875
+ const refs = (v) => (Array.isArray(v) ? v.filter(isRef) : isRef(v) ? [v] : []);
20876
+ const join = (list, last) => (list.length < 2 ? list.join('') : `${list.slice(0, -1).join(', ')}${last}${list[list.length - 1]}`);
20877
+ function readerFor(said, lang) {
20878
+ const p = said.params ?? {};
20879
+ const he = lang === CommerceLanguage.He;
20880
+ const meaning = (r) => listMeaning(r.k, r.w, he ? CommerceLanguage.He : CommerceLanguage.En);
20881
+ return {
20882
+ v: key => {
20883
+ const value = p[key];
20884
+ if (value === undefined || value === null)
20885
+ return '';
20886
+ if (isRef(value))
20887
+ return value.w;
20888
+ if (Array.isArray(value))
20889
+ return value.map(x => (isRef(x) ? x.w : String(x))).join(', ');
20890
+ return String(value);
20891
+ },
20892
+ word: key => refs(p[key]).map(r => `"${r.w}"`).join(', '),
20893
+ m: key => refs(p[key]).map(meaning).join(', '),
20894
+ roles: (key, and) => {
20895
+ const list = (Array.isArray(p[key]) ? p[key] : [p[key]]).filter(x => x !== undefined).map(String);
20896
+ const said = he ? list.map(r => ROLE_HE[r] ?? r) : list;
20897
+ return and ? join(said, he ? ' ו' : ' and ') : said.join(', ');
20898
+ },
20899
+ why: () => {
20900
+ const own = String(p[he ? 'whyHe' : 'why'] ?? '').trim();
20901
+ return own || (he ? NEVER_WHY.he : NEVER_WHY.en);
20902
+ },
20903
+ };
20904
+ }
20905
+ /** What the judge said, in a language — English (the issue's `message`) unless the language reads Hebrew. */
20906
+ function listSaidSentence(said, lang) {
20907
+ const entry = LIST_SAY_WORDS[said.code];
20908
+ const language = commerceLanguage(lang);
20909
+ return entry ? entry[language](readerFor(said, language)) : said.code;
20910
+ }
20911
+ /** An issue of the list judge in the admin's language; an issue it did not word (or an older one) keeps its message. */
20912
+ function listSentence(issue, lang) {
20913
+ const words = issue.words;
20914
+ return words && words.code in LIST_SAY_WORDS ? listSaidSentence(words, lang) : issue.message;
20915
+ }
20916
+ /** The values a bento-trim sentence names, Hebrew's "or" included (`3, 5 או 7`). */
20917
+ function bentoFillsParams(fills) {
20918
+ return { fills: fills.map(String), fillsOr: join(fills.map(String), ' או ') };
20919
+ }
20920
+
20565
20921
  /**
20566
20922
  * THE LIST JUDGE (list-ingredients-plan.md §6, LI2; the demo's `checkMix`): one function for any mix of the seven
20567
20923
  * ingredients. What it can settle with no word or place changed it repairs and says — every repair of one list carries
@@ -20579,7 +20935,11 @@ const enumValues = (e) => Object.values(e);
20579
20935
  const allowed = (k) => listBuiltWords(k).join(' | ');
20580
20936
  const has$1 = (list, v) => list.includes(v);
20581
20937
  /** The words a repaired mix is said in (the brief and the owner read them). */
20582
- const say = (arrange) => listMeaning('arrange', arrange);
20938
+ const say$1 = (arrange) => listMeaning('arrange', arrange);
20939
+ /** An arrangement, as a value a sentence names (list-words.ts says it in the owner's language). */
20940
+ const arr = (arrange) => listWordRef('arrange', arrange);
20941
+ /** One issue of the judge: its English sentence is the message, its code and values are what a screen says (#123). */
20942
+ const wordedIssue = (code, path, said) => ({ code, path, message: listSaidSentence(said, null), words: said });
20583
20943
  /** True when the type's art direction forbids nothing. */
20584
20944
  const listNeverIsEmpty = (never) => !never || (!never.arranges.length && !never.moves.length);
20585
20945
  /**
@@ -20616,18 +20976,18 @@ function checkList(mix, shape, layer, never, options = {}) {
20616
20976
  if (refused.length || !shape)
20617
20977
  return refused;
20618
20978
  if (shape.items !== null && shape.items < R.minItems) {
20619
- return [{ code: LayoutIssueCode.Content, path: at, message: `a list section shows at least ${R.minItems} items — "${shape.alias}" has ${shape.items}; show it another way` }];
20979
+ return [wordedIssue(LayoutIssueCode.Content, at, { code: ListSayCode.TooFewItems, params: { min: R.minItems, alias: shape.alias, items: shape.items } })];
20620
20980
  }
20621
20981
  const next = structuredClone(mix);
20622
20982
  const said = [];
20623
- const repair = (message) => said.push(message);
20983
+ const repair = (code, params = {}) => said.push({ code, params });
20624
20984
  // A word the product draws in a later phase (the contract's list table, award AW0): drawn as its stand-in meanwhile,
20625
20985
  // and said — first, so every rule below judges the mix the product will draw. The wire never offers one.
20626
20986
  const waiting = (k, w) => {
20627
20987
  const wait = listWait(k, w);
20628
20988
  if (!wait)
20629
20989
  return undefined;
20630
- repair(`${k} "${w}" is drawn in ${wait.phase}: ${wait.drawnAs ? `"${wait.drawnAs}" meanwhile` : 'left out meanwhile'}`);
20990
+ repair(ListSayCode.Waits, { k, word: listWordRef(k, w), phase: wait.phase, ...(wait.drawnAs ? { as: listWordRef(k, wait.drawnAs) } : {}) });
20631
20991
  return wait.drawnAs;
20632
20992
  };
20633
20993
  for (const k of ['item', 'arrange', 'arrive']) {
@@ -20645,7 +21005,7 @@ function checkList(mix, shape, layer, never, options = {}) {
20645
21005
  const stand = listBelowPro(k, next[k]);
20646
21006
  if (stand === undefined)
20647
21007
  return;
20648
- repair(`${k} "${next[k]}" comes with the award plan: "${stand ?? fallback}" instead`);
21008
+ repair(ListSayCode.AwardOnly, { k, word: listWordRef(k, next[k]), as: listWordRef(k, stand ?? fallback) });
20649
21009
  next[k] = stand ?? fallback;
20650
21010
  };
20651
21011
  below('item', LayoutListItem.Card);
@@ -20656,7 +21016,7 @@ function checkList(mix, shape, layer, never, options = {}) {
20656
21016
  const stand = listBelowPro(k, w);
20657
21017
  if (stand === undefined)
20658
21018
  return [w];
20659
- repair(`${k} "${w}" comes with the award plan: ${stand ? `"${stand}" instead` : 'left out'}`);
21019
+ repair(ListSayCode.AwardOnly, { k, word: listWordRef(k, w), ...(stand ? { as: listWordRef(k, stand) } : {}) });
20660
21020
  return stand ? [stand] : [];
20661
21021
  });
20662
21022
  next[k] = [...new Set(kept)];
@@ -20669,37 +21029,37 @@ function checkList(mix, shape, layer, never, options = {}) {
20669
21029
  const foreign = unique.filter(p => !roles.includes(p));
20670
21030
  if (foreign.length || unique.length !== next.parts.length) {
20671
21031
  if (foreign.length)
20672
- repair(`"${shape.alias}" holds no ${foreign.join(', ')} — left out`);
21032
+ repair(ListSayCode.NoSuchParts, { alias: shape.alias, parts: foreign });
20673
21033
  next.parts = unique.filter(p => roles.includes(p));
20674
21034
  }
20675
21035
  if (next.item === LayoutListItem.Photo) {
20676
21036
  if (!pictured) {
20677
- repair(`"${shape.alias}" has no pictures — its items are cards`);
21037
+ repair(ListSayCode.PhotoNoPictures, { alias: shape.alias });
20678
21038
  next.item = LayoutListItem.Card;
20679
21039
  }
20680
21040
  else if (next.parts.length !== 1 || next.parts[0] !== IMAGE$1) {
20681
- repair('a photo item shows its picture only');
21041
+ repair(ListSayCode.PhotoPictureOnly);
20682
21042
  next.parts = [IMAGE$1];
20683
21043
  }
20684
21044
  }
20685
21045
  // AW11: round-two items — each needs what it shows (one table: listWordRefusal).
20686
21046
  const itemRefusal = listWordRefusal('item', next.item, shape);
20687
21047
  if (itemRefusal === ListWordRefusal.NoPictures) {
20688
- repair(`"${shape.alias}" has no pictures — ${listMeaning('item', next.item)} needs one: its items are cards`);
21048
+ repair(ListSayCode.ItemNeedsPictures, { alias: shape.alias, item: listWordRef('item', next.item) });
20689
21049
  next.item = LayoutListItem.Card;
20690
21050
  }
20691
21051
  if (next.item === LayoutListItem.TitleOnPhoto && (shape.titleWords ?? 0) > LIST_RULES.titleOnPhotoWords) {
20692
- repair(`"${shape.alias}" has names of ${shape.titleWords} words — more than ${LIST_RULES.titleOnPhotoWords} would cover the picture: its items are cards`);
21052
+ repair(ListSayCode.TitleTooLong, { alias: shape.alias, words: shape.titleWords ?? 0, max: LIST_RULES.titleOnPhotoWords });
20693
21053
  next.item = LayoutListItem.Card;
20694
21054
  }
20695
21055
  if (next.item === LayoutListItem.Packshot && shape.plainPictures === false) {
20696
- repair(`"${shape.alias}"'s pictures do not stand on a plain ground — a packshot needs one: its items are cards`);
21056
+ repair(ListSayCode.PackshotNotPlain, { alias: shape.alias });
20697
21057
  next.item = LayoutListItem.Card;
20698
21058
  }
20699
21059
  if (next.item === LayoutListItem.TitleOnPhoto) {
20700
21060
  const words = next.parts.filter(p => p === IMAGE$1 || TITLE_ON_PHOTO_PARTS$1.has(p));
20701
21061
  if (words.length !== next.parts.length) {
20702
- repair('a name on its picture shows the picture, the name and a short detail only');
21062
+ repair(ListSayCode.TitleOnPhotoParts);
20703
21063
  next.parts = words;
20704
21064
  }
20705
21065
  if (!next.parts.includes(IMAGE$1))
@@ -20707,52 +21067,52 @@ function checkList(mix, shape, layer, never, options = {}) {
20707
21067
  }
20708
21068
  // The arrangement first: what follows is judged against the one the list ends with.
20709
21069
  if (next.arrange === LayoutListArrange.Strips && !pictured) {
20710
- repair('strips need a picture in every item — a still grid instead');
21070
+ repair(ListSayCode.StripsNeedPictures);
20711
21071
  next.arrange = LayoutListArrange.Grid;
20712
21072
  }
20713
21073
  if (next.arrange === LayoutListArrange.Strips && shape.items !== null && shape.items > R.strips[1]) {
20714
- repair(`${R.strips[1]} strips fit at most — "${shape.alias}" has ${shape.items}: ${say(LayoutListArrange.Row)}`);
21074
+ repair(ListSayCode.StripsAtMost, { max: R.strips[1], alias: shape.alias, items: shape.items, instead: arr(LayoutListArrange.Row) });
20715
21075
  next.arrange = LayoutListArrange.Row;
20716
21076
  }
20717
21077
  // L-D12: the business's art direction — an arrangement its lists never take becomes a row.
20718
- const why = never?.say.join(' ') || 'this business never shows a list that way';
21078
+ const why = { why: never?.say.join(' ') ?? '', whyHe: never?.sayHe?.join(' ') ?? '' };
20719
21079
  if (never && has$1(never.arranges, next.arrange)) {
20720
- repair(`${why} — ${say(LayoutListArrange.Row)}`);
21080
+ repair(ListSayCode.NeverArrange, { ...why, instead: arr(LayoutListArrange.Row) });
20721
21081
  next.arrange = LayoutListArrange.Row;
20722
21082
  }
20723
21083
  // AW11: round-two arrangements — pictures where they need them, the counts they are drawn at.
20724
21084
  const arrangeRefusal = listWordRefusal('arrange', next.arrange, shape);
20725
21085
  if (arrangeRefusal === ListWordRefusal.NoPictures) {
20726
- return [{ code: LayoutIssueCode.Content, path: `${at}.arrange`, message: `${say(next.arrange)} needs a picture in every item — "${shape.alias}" has none; arrange it another way` }];
21086
+ return [wordedIssue(LayoutIssueCode.Content, `${at}.arrange`, { code: ListSayCode.ArrangeNeedsPictures, params: { arrange: arr(next.arrange), alias: shape.alias } })];
20727
21087
  }
20728
21088
  const count = LIST_RULES.counts[next.arrange];
20729
21089
  if (count && shape.items !== null) {
20730
21090
  const [fewest, most] = count;
20731
21091
  if (shape.items < fewest) {
20732
21092
  const instead = next.arrange === LayoutListArrange.Hang ? LayoutListArrange.Masonry : LayoutListArrange.Grid;
20733
- repair(`${say(next.arrange)} needs ${fewest} items — "${shape.alias}" has ${shape.items}: ${say(instead)}`);
21093
+ repair(ListSayCode.TooFewFor, { arrange: arr(next.arrange), fewest, alias: shape.alias, items: shape.items, instead: arr(instead) });
20734
21094
  next.arrange = instead;
20735
21095
  }
20736
21096
  else if (shape.items > most) {
20737
- repair(`${say(next.arrange)} shows the first ${most} of "${shape.alias}"'s ${shape.items}, then the link to all of them`);
21097
+ repair(ListSayCode.ShowsFirst, { arrange: arr(next.arrange), most, alias: shape.alias, items: shape.items });
20738
21098
  }
20739
21099
  }
20740
21100
  if (next.arrange === LayoutListArrange.Bento && shape.items !== null) {
20741
21101
  const fill = bentoFill(shape.items);
20742
21102
  if (fill === null) {
20743
- repair(`a bento needs ${LIST_RULES.bento[0]} items — ${say(LayoutListArrange.Grid)}`);
21103
+ repair(ListSayCode.BentoTooFew, { fewest: LIST_RULES.bento[0], instead: arr(LayoutListArrange.Grid) });
20744
21104
  next.arrange = LayoutListArrange.Grid;
20745
21105
  }
20746
21106
  else if (fill < shape.items) {
20747
- repair(`a bento fits ${LIST_RULES.bento.join(', ')} — "${shape.alias}" has ${shape.items}, so it shows ${fill} and the link to all of them`);
21107
+ repair(ListSayCode.BentoTrim, { ...bentoFillsParams(LIST_RULES.bento), alias: shape.alias, items: shape.items, shows: fill });
20748
21108
  }
20749
21109
  }
20750
21110
  const tiltedText = next.arrange === LayoutListArrange.Tilted && next.item !== LayoutListItem.Photo ? shape.long.filter(role => next.parts.includes(role)) : [];
20751
21111
  if (tiltedText.length)
20752
- repair(`its ${tiltedText.join(' and ')} run long — a turned card shows their first lines`);
21112
+ repair(ListSayCode.TiltedLong, { roles: tiltedText });
20753
21113
  const longShown = shape.long.filter(role => next.parts.includes(role));
20754
21114
  if (longShown.length && next.arrange === LayoutListArrange.Grid) {
20755
- repair(`its ${longShown.join(' and ')} run long — a grid would cut them: ${say(LayoutListArrange.Masonry)}`);
21115
+ repair(ListSayCode.GridLong, { roles: longShown, instead: arr(LayoutListArrange.Masonry) });
20756
21116
  next.arrange = LayoutListArrange.Masonry;
20757
21117
  }
20758
21118
  const arrange = next.arrange;
@@ -20762,121 +21122,129 @@ function checkList(mix, shape, layer, never, options = {}) {
20762
21122
  if (strips) {
20763
21123
  const who = next.standout?.who;
20764
21124
  if (who !== LayoutListWho.First && who !== LayoutListWho.Pointed) {
20765
- repair('one strip is always open — the first');
21125
+ repair(ListSayCode.StripOpenFirst);
20766
21126
  next.standout = { who: LayoutListWho.First, how: LayoutListHow.Wider };
20767
21127
  }
20768
21128
  else if (next.standout.how !== LayoutListHow.Wider) {
20769
- repair('the open strip is the wider one');
21129
+ repair(ListSayCode.StripWider);
20770
21130
  next.standout = { who, how: LayoutListHow.Wider };
20771
21131
  }
20772
21132
  }
20773
21133
  else if (next.standout) {
20774
21134
  if (next.standout.who === LayoutListWho.None) {
20775
21135
  if (next.standout.how)
20776
- repair('nothing stands out — no way to stand out');
21136
+ repair(ListSayCode.NoneStandsOut);
20777
21137
  delete next.standout;
20778
21138
  }
20779
21139
  else {
20780
21140
  if (has$1(R.onlyRow.who, next.standout.who) && !row && !has$1(LIST_RULES.middle ?? [], arrange)) {
20781
- repair(`"${next.standout.who}" is a row's — the first stands out`);
21141
+ repair(ListSayCode.RowsOnlyWho, { who: listWordRef('who', next.standout.who) });
20782
21142
  next.standout.who = LayoutListWho.First;
20783
21143
  }
20784
21144
  if (next.standout.how && has$1(R.onlyStrips.how, next.standout.how)) {
20785
- repair(`"${next.standout.how}" is a strip's — bigger instead`);
21145
+ repair(ListSayCode.StripsOnlyHow, { how: listWordRef('how', next.standout.how) });
20786
21146
  next.standout.how = LayoutListHow.Bigger;
20787
21147
  }
20788
21148
  }
20789
21149
  }
20790
21150
  if (arrange === LayoutListArrange.Rows && next.standout && (next.standout.who !== LIST_RULES.rowsStandout.who || next.standout.how !== LIST_RULES.rowsStandout.how)) {
20791
- repair('numbered rows stand out one way: the one pointed at, the rest dimmed');
21151
+ repair(ListSayCode.RowsStandout);
20792
21152
  next.standout = { who: LIST_RULES.rowsStandout.who, how: LIST_RULES.rowsStandout.how };
20793
21153
  }
20794
21154
  // How the visitor moves through them — never a way the business's lists never move (L-D12).
20795
21155
  const banned = never ? next.move.filter(m => has$1(never.moves, m)) : [];
20796
21156
  if (banned.length) {
20797
- repair(`${why} — no ${banned.join(', ')}`);
21157
+ repair(ListSayCode.NeverMove, { ...why, moves: listWordRefs('move', banned) });
20798
21158
  next.move = next.move.filter(m => !banned.includes(m));
20799
21159
  }
20800
21160
  // AW11: a fan moves only by being dragged, and only with enough cards to drag.
20801
21161
  if (arrange === LayoutListArrange.Fan && next.move.length) {
20802
21162
  const dragged = next.move.includes(LayoutListMove.Drag) && (shape.items === null || shape.items >= LIST_RULES.fanDragFrom);
20803
21163
  const dropped = next.move.filter(m => m !== LayoutListMove.Drag || !dragged);
20804
- if (dropped.length)
20805
- repair(dragged || !next.move.includes(LayoutListMove.Drag) ? `a fan is only dragged — no ${dropped.join(', ')}` : `a fan of fewer than ${LIST_RULES.fanDragFrom} cards stays still`);
21164
+ if (dropped.length) {
21165
+ if (dragged || !next.move.includes(LayoutListMove.Drag))
21166
+ repair(ListSayCode.FanDragOnly, { moves: listWordRefs('move', dropped) });
21167
+ else
21168
+ repair(ListSayCode.FanTooFew, { fewest: LIST_RULES.fanDragFrom });
21169
+ }
20806
21170
  next.move = dragged ? [LayoutListMove.Drag] : [];
20807
21171
  }
20808
21172
  if (next.move.includes(LayoutListMove.Rows) && !pictured) {
20809
- repair(`"${shape.alias}" has no pictures — no drifting rows`);
21173
+ repair(ListSayCode.DriftNeedsPictures, { alias: shape.alias });
20810
21174
  next.move = next.move.filter(m => m !== LayoutListMove.Rows);
20811
21175
  }
20812
21176
  const moving = has$1(R.moving, arrange) || (arrange === LayoutListArrange.Fan && next.move.length > 0);
20813
21177
  if (!moving && next.move.length) {
20814
- repair(`${say(arrange)} does not move — no ${next.move.join(', ')}`);
21178
+ repair(ListSayCode.StillNoMove, { arrange: arr(arrange), moves: listWordRefs('move', next.move) });
20815
21179
  next.move = [];
20816
21180
  }
20817
21181
  if (moving) {
20818
21182
  const onlyRow = next.move.filter(m => has$1(R.onlyRow.move, m));
20819
21183
  if (onlyRow.length && !row) {
20820
- repair(`"${onlyRow.join(', ')}" carries a row only`);
21184
+ repair(ListSayCode.RowOnlyMove, { moves: listWordRefs('move', onlyRow) });
20821
21185
  next.move = next.move.filter(m => !has$1(R.onlyRow.move, m));
20822
21186
  }
20823
21187
  if (next.move.includes(LayoutListMove.Page) && next.move.length > 1) {
20824
- repair('the page\'s scroll carries the row alone');
21188
+ repair(ListSayCode.PageAlone);
20825
21189
  next.move = [LayoutListMove.Page];
20826
21190
  }
20827
21191
  if (next.move.includes(LayoutListMove.Rows) && next.move.length > 1) {
20828
- repair('drifting rows move by themselves alone');
21192
+ repair(ListSayCode.DriftAlone);
20829
21193
  next.move = [LayoutListMove.Rows];
20830
21194
  }
20831
21195
  if (next.move.includes(LayoutListMove.Rows) && next.item !== LayoutListItem.Photo) {
20832
- repair('drifting rows hold pictures only');
21196
+ repair(ListSayCode.DriftPicturesOnly);
20833
21197
  next.item = LayoutListItem.Photo;
20834
21198
  next.parts = [IMAGE$1];
20835
21199
  }
20836
21200
  if (!next.move.length) {
20837
- repair(`${say(arrange)} — the visitor drags it`);
21201
+ repair(ListSayCode.DragDefault, { arrange: arr(arrange) });
20838
21202
  next.move = [LayoutListMove.Drag];
20839
21203
  }
20840
21204
  }
20841
21205
  const stripHovers = next.hover.filter(h => has$1(R.onlyStrips.hover, h));
20842
21206
  if (stripHovers.length && !strips) {
20843
- repair(`"${stripHovers.join(', ')}" is a strip's`);
21207
+ repair(ListSayCode.StripsOnlyHover, { hovers: listWordRefs('hover', stripHovers) });
20844
21208
  next.hover = next.hover.filter(h => !has$1(R.onlyStrips.hover, h));
20845
21209
  }
20846
21210
  // AW11: hover words that need what the list may not have (one table), and the hover tilt — a still card's.
20847
21211
  const unread = next.hover.filter(h => listWordRefusal('hover', h, shape) !== null && listWordRefusal('hover', h, shape) !== ListWordRefusal.ProOnly);
20848
21212
  if (unread.length) {
20849
- repair(unread.map(h => listWordRefusal('hover', h, shape) === ListWordRefusal.NoSecondPicture
20850
- ? `"${h}" needs a second picture — "${shape.alias}" has one per item`
20851
- : `"${h}" needs a picture — "${shape.alias}" has none`).join('; '));
21213
+ // One sentence each (#123: they were one joined line — a screen says each in the owner's words).
21214
+ for (const h of unread) {
21215
+ repair(listWordRefusal('hover', h, shape) === ListWordRefusal.NoSecondPicture ? ListSayCode.HoverSecondPicture : ListSayCode.HoverPicture, { hover: listWordRef('hover', h), alias: shape.alias });
21216
+ }
20852
21217
  next.hover = next.hover.filter(h => !unread.includes(h));
20853
21218
  }
20854
21219
  if (next.hover.includes(LayoutListHover.Tilt) && (moving || next.item !== LayoutListItem.Card && next.item !== LayoutListItem.Packshot && next.item !== LayoutListItem.ColourBlock && next.item !== LayoutListItem.Numbered)) {
20855
- repair(moving ? `${say(arrange)} moves — its card rises instead of turning` : 'only a card turns its ground — it rises instead');
21220
+ if (moving)
21221
+ repair(ListSayCode.TiltMoving, { arrange: arr(arrange) });
21222
+ else
21223
+ repair(ListSayCode.TiltCardOnly);
20856
21224
  next.hover = [...new Set(next.hover.map(h => (h === LayoutListHover.Tilt ? LayoutListHover.Rise : h)))];
20857
21225
  }
20858
21226
  if (new Set(next.hover).size !== next.hover.length)
20859
21227
  next.hover = [...new Set(next.hover)];
20860
21228
  // AW11-D15: what is seen at once is there at once — no clip-up in the first screen.
20861
21229
  if (options.firstScreen && has$1(LIST_RULES.notFirstScreen.arrive ?? [], next.arrive)) {
20862
- repair(`the first screen shows its items at once — "${next.arrive}" plays further down the page`);
21230
+ repair(ListSayCode.FirstScreen, { arrive: listWordRef('arrive', next.arrive) });
20863
21231
  next.arrive = LayoutListArrive.Together;
20864
21232
  }
20865
21233
  // A phone.
20866
21234
  if (has$1(R.neverSwipe, arrange) && next.phone === LayoutListPhone.Swipe) {
20867
- repair(`${say(arrange)} does not swipe on a phone — it stacks`);
21235
+ repair(ListSayCode.NoSwipe, { arrange: arr(arrange) });
20868
21236
  next.phone = LayoutListPhone.Stack;
20869
21237
  }
20870
21238
  // AW11-D6: a stage is a row of cards you swipe on a phone; a fan swipes or stacks.
20871
21239
  if (arrange === LayoutListArrange.Stage && next.phone !== LayoutListPhone.Swipe) {
20872
- repair('a stage is a row of cards you swipe on a phone');
21240
+ repair(ListSayCode.StageSwipes);
20873
21241
  next.phone = LayoutListPhone.Swipe;
20874
21242
  }
20875
21243
  if (arrange === LayoutListArrange.Fan && next.phone === LayoutListPhone.TwoUp) {
20876
- repair('a fan is a row you swipe on a phone');
21244
+ repair(ListSayCode.FanSwipes);
20877
21245
  next.phone = LayoutListPhone.Swipe;
20878
21246
  }
20879
- return said.map(message => ({ code: LayoutIssueCode.Structure, path: at, message, mend: { kind: LayoutMendKind.List, layer, mix: next } }));
21247
+ return said.map(words => ({ ...wordedIssue(LayoutIssueCode.Structure, at, words), mend: { kind: LayoutMendKind.List, layer, mix: next } }));
20880
21248
  }
20881
21249
  /** Two list sections of one page never share an arrangement (list-ingredients §7), and never two lean (AW11-D7): the
20882
21250
  * later ones are the model's. */
@@ -20891,7 +21259,7 @@ function pageListIssues(page) {
20891
21259
  const path = `sections[${si}].layers[${li}].gallery.list.arrange`;
20892
21260
  const first = seen.get(mix.arrange);
20893
21261
  if (first)
20894
- issues.push({ code: LayoutIssueCode.Sameness, path, message: `${first} is already ${say(mix.arrange)} — arrange this list another way` });
21262
+ issues.push({ code: LayoutIssueCode.Sameness, path, message: `${first} is already ${say$1(mix.arrange)} — arrange this list another way` });
20895
21263
  else if (leaning && has$1(LIST_RULES.leaning, mix.arrange))
20896
21264
  issues.push({ code: LayoutIssueCode.Sameness, path, message: `${leaning} already leans — one leaning list a page; arrange this one straight` });
20897
21265
  else
@@ -23511,14 +23879,12 @@ const NAV_SHAPE_COPY = {
23511
23879
  more: 'More',
23512
23880
  home: 'Home',
23513
23881
  };
23514
- /** The words a `word` menu button SHOWS, in the site's language (HI2a — visible words; the other parts' copy is still
23515
- * English and editable, as it always was). */
23516
23882
  const MENU_WORDS = {
23517
- en: { menu: NAV_SHAPE_COPY.menu, close: NAV_SHAPE_COPY.close },
23518
- he: { menu: 'תפריט', close: 'סגירה' },
23883
+ en: { ...NAV_SHAPE_COPY },
23884
+ he: { menu: 'תפריט', close: 'סגירה', closeMenu: 'סגירת התפריט', more: 'עוד', home: 'בית' },
23519
23885
  };
23520
23886
  function menuWords(locale) {
23521
- return MENU_WORDS[locale ?? ''] ?? MENU_WORDS['en'];
23887
+ return MENU_WORDS[commerceLanguage(locale)] ?? MENU_WORDS['en'];
23522
23888
  }
23523
23889
  /** The layer names of the parts (R2: the tree, the breadcrumb and the toolbar read them). */
23524
23890
  const NAV_PART_LABELS = {
@@ -23753,8 +24119,8 @@ function labelText(kit, suffix, words) {
23753
24119
  // The menu button and the drawer's Close keep their row's TOP line and their 48px: a business name that wraps to two
23754
24120
  // lines makes the row taller, and two centred buttons in rows of different heights part (iox-ui#60).
23755
24121
  const MENU_BUTTON_LAY = { width: '48px', height: '48px', alignItems: 'center', justifyContent: 'center', alignSelf: 'flex-start', flexShrink: '0' };
23756
- function menuButton(kit, drawerId, at) {
23757
- const btn = part$2(kit, 'menu', BUTTON, { tag: 'button', ariaLabel: NAV_SHAPE_COPY.menu }, 'button-ghost', NavRole.MenuButton, { ...MENU_BUTTON_LAY });
24122
+ function menuButton(kit, drawerId, at, words) {
24123
+ const btn = part$2(kit, 'menu', BUTTON, { tag: 'button', ariaLabel: words.menu }, 'button-ghost', NavRole.MenuButton, { ...MENU_BUTTON_LAY });
23758
24124
  btn.children = [iconNode(kit, 'menu-icon', MENU_ICON)];
23759
24125
  btn.interactions = [clickTo(kit, 'menu', NavDialogAction.Toggle, drawerId)];
23760
24126
  phoneOnly(btn, at, MENU_DISPLAY);
@@ -23763,13 +24129,13 @@ function menuButton(kit, drawerId, at) {
23763
24129
  function pageLink$1(kit, suffix, page, role, lay = {}) {
23764
24130
  return part$2(kit, suffix, LINK$1, { label: page.label, linkType: LinkType.Page, pageRoute: page.route }, 'link', role, lay);
23765
24131
  }
23766
- function drawer(kit, root, pages, at) {
24132
+ function drawer(kit, root, pages, at, words) {
23767
24133
  const dr = part$2(kit, 'drawer', DIALOG$1, {
23768
- placement: 'end', closeOnBackdrop: true, showCloseButton: false, ariaLabel: NAV_SHAPE_COPY.menu, closeAbove: at,
24134
+ placement: 'end', closeOnBackdrop: true, showCloseButton: false, ariaLabel: words.menu, closeAbove: at,
23769
24135
  }, 'dialog', NavRole.Drawer, { width: '86vw', maxWidth: '360px', display: 'flex', flexDirection: 'column', gap: '20px' });
23770
24136
  const brandWords = textOf$2(find([root], NavRole.Brand) ?? root) || NAV_PART_LABELS[NavRole.Root];
23771
24137
  const head = part$2(kit, 'drawer-head', CONTAINER$1, {}, 'box', NavRole.DrawerHead, { display: 'flex', justifyContent: 'space-between', alignItems: 'center', gap: '12px' });
23772
- const close = part$2(kit, 'drawer-close', BUTTON, { tag: 'button', ariaLabel: NAV_SHAPE_COPY.closeMenu }, 'button-ghost', NavRole.DrawerClose, { ...MENU_BUTTON_LAY });
24138
+ const close = part$2(kit, 'drawer-close', BUTTON, { tag: 'button', ariaLabel: words.closeMenu }, 'button-ghost', NavRole.DrawerClose, { ...MENU_BUTTON_LAY });
23773
24139
  close.children = [iconNode(kit, 'drawer-close-icon', CLOSE_ICON)];
23774
24140
  close.interactions = [clickTo(kit, 'drawer-close', NavDialogAction.Close, dr.id)];
23775
24141
  head.children = [part$2(kit, 'drawer-brand', HEADING$1, { content: brandWords, level: 'h3' }, 'h3'), close];
@@ -23778,7 +24144,7 @@ function drawer(kit, root, pages, at) {
23778
24144
  // beat one inherited from the list). The links rest at the body weight and the CURRENT page reads by its ink and
23779
24145
  // weight (no line since 2026-11-22) — the shared CSS keys that on the list's role (iox-design.css), so no Link holds
23780
24146
  // a literal over its element style.
23781
- list.children = withHome(root, pages).map((p, i) => pageLink$1(kit, `drawer-link-${i}`, p, NavRole.DrawerLink, { display: 'flex', alignItems: 'center', minHeight: '48px', fontSize: 'var(--iox-size-lead)' }));
24147
+ list.children = withHome(root, pages, words).map((p, i) => pageLink$1(kit, `drawer-link-${i}`, p, NavRole.DrawerLink, { display: 'flex', alignItems: 'center', minHeight: '48px', fontSize: 'var(--iox-size-lead)' }));
23782
24148
  dr.children = [head, list];
23783
24149
  const cta = find([root], NavRole.Cta);
23784
24150
  if (cta) {
@@ -23861,32 +24227,32 @@ const BAR_ITEM_LAY = {
23861
24227
  display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center', gap: '3px',
23862
24228
  flexGrow: '1', flexShrink: '1', flexBasis: '0px', minWidth: '0px', minHeight: '52px', padding: '4px 2px', textDecoration: 'none',
23863
24229
  };
23864
- function moreItem(kit, drawerId) {
24230
+ function moreItem(kit, drawerId, words) {
23865
24231
  const more = part$2(kit, 'bar-more', BUTTON, { tag: 'button' }, 'bottom-bar-item', NavRole.More, BAR_ITEM_LAY);
23866
- more.children = [iconNode(kit, 'bar-more-icon', MORE_ICON), labelText(kit, 'bar-more-label', NAV_SHAPE_COPY.more)];
24232
+ more.children = [iconNode(kit, 'bar-more-icon', MORE_ICON), labelText(kit, 'bar-more-label', words.more)];
23867
24233
  more.interactions = [clickTo(kit, 'bar-more', NavDialogAction.Toggle, drawerId)];
23868
24234
  return more;
23869
24235
  }
23870
24236
  /** Home first, then the header's pages: the header reaches Home through its brand, a phone menu names it. */
23871
- function withHome(root, pages) {
24237
+ function withHome(root, pages, words) {
23872
24238
  const brand = find([root], NavRole.Brand);
23873
24239
  const home = brand && isPageLink(brand) && prop(brand, 'pageRoute') === HOME_ROUTE && !pages.some(p => p.route === HOME_ROUTE)
23874
- ? [{ label: NAV_SHAPE_COPY.home, route: HOME_ROUTE }] : [];
24240
+ ? [{ label: words.home, route: HOME_ROUTE }] : [];
23875
24241
  return [...home, ...pages];
23876
24242
  }
23877
24243
  /** The bar's pages: Home first (a bottom bar's customary first stop), capped. */
23878
- function barPages(root, pages, count) {
23879
- return withHome(root, pages).slice(0, count);
24244
+ function barPages(root, pages, count, words) {
24245
+ return withHome(root, pages, words).slice(0, count);
23880
24246
  }
23881
- function bar(kit, root, pages, shape, count, drawerId, at) {
24247
+ function bar(kit, root, pages, shape, count, drawerId, at, words) {
23882
24248
  // The node IS fixed (not only its element style): the builder canvas forces a node's own `position`
23883
24249
  // with !important, so a stored `static` default would pin the bar into the flow there.
23884
24250
  const b = part$2(kit, 'bar', CONTAINER$1, { htmlTag: 'nav' }, 'bottom-bar', NavRole.Bar, { position: 'fixed', justifyContent: 'space-around', alignItems: 'stretch', gap: '4px', padding: '6px 8px', width: 'auto' });
23885
24251
  phoneOnly(b, at, 'flex');
23886
24252
  const itemCount = shape === NavShape.Both ? count - 1 : count;
23887
- b.children = barPages(root, pages, itemCount).map((p, i) => barItem(kit, i, p));
24253
+ b.children = barPages(root, pages, itemCount, words).map((p, i) => barItem(kit, i, p));
23888
24254
  if (shape === NavShape.Both && drawerId)
23889
- b.children.push(moreItem(kit, drawerId));
24255
+ b.children.push(moreItem(kit, drawerId, words));
23890
24256
  b.isGlobal = true;
23891
24257
  b.globalPosition = PatternGlobalPosition.After;
23892
24258
  return b;
@@ -24007,6 +24373,7 @@ function planNavShape(globals, shape, options = {}, navId) {
24007
24373
  if (options.everyWidth && shape !== NavShape.Drawer)
24008
24374
  throw new NavShapeError('only a drawer menu shows at every width');
24009
24375
  const kit = makeKit(out, root.id, options.newId);
24376
+ const words = menuWords(options.locale);
24010
24377
  adoptRoles(root);
24011
24378
  const { pages } = phoneMenuPages(root, options.pages);
24012
24379
  const wantDrawer = shape !== NavShape.Bar;
@@ -24022,7 +24389,7 @@ function planNavShape(globals, shape, options = {}, navId) {
24022
24389
  delete dr.globalPosition;
24023
24390
  }
24024
24391
  if (wantDrawer && !dr)
24025
- dr = drawer(kit, root, pages, at);
24392
+ dr = drawer(kit, root, pages, at, words);
24026
24393
  if (!wantDrawer)
24027
24394
  dr = null;
24028
24395
  // A drawer reached at every width never closes itself above a breakpoint.
@@ -24033,7 +24400,7 @@ function planNavShape(globals, shape, options = {}, navId) {
24033
24400
  throw new NavShapeError(`a menu button cannot sit at "${options.menuSide}"`);
24034
24401
  const was = menuPlace(root);
24035
24402
  const existingMenu = removeRole(root, NavRole.MenuButton);
24036
- const menu = wantMenuButton ? (existingMenu ? asToggle(existingMenu) : menuButton(kit, dr.id, at)) : null;
24403
+ const menu = wantMenuButton ? (existingMenu ? asToggle(existingMenu) : menuButton(kit, dr.id, at, words)) : null;
24037
24404
  for (const p of phoneHiddenParts(root)) {
24038
24405
  if (everyWidth && !KEPT_AT_EVERY_WIDTH.has(roleOf(p))) {
24039
24406
  displayEverywhere(p, NONE$1);
@@ -24081,7 +24448,7 @@ function planNavShape(globals, shape, options = {}, navId) {
24081
24448
  if (wantBar) {
24082
24449
  const count = clampBarCount(options.barItems, shape);
24083
24450
  if (!b)
24084
- b = bar(kit, root, pages, shape, count, dr?.id ?? null, at);
24451
+ b = bar(kit, root, pages, shape, count, dr?.id ?? null, at, words);
24085
24452
  else {
24086
24453
  moveDisplayOverride(b, at);
24087
24454
  more = (b.children ?? []).find(c => c.role === NavRole.More) ?? null;
@@ -24089,14 +24456,14 @@ function planNavShape(globals, shape, options = {}, navId) {
24089
24456
  if (options.barItems !== undefined) {
24090
24457
  const items = b.children;
24091
24458
  const want = shape === NavShape.Both ? count - 1 : count;
24092
- const extra = barPages(root, pages, BAR_ITEMS_MAX).filter(p => !items.some(c => prop(c, 'pageRoute') === p.route));
24459
+ const extra = barPages(root, pages, BAR_ITEMS_MAX, words).filter(p => !items.some(c => prop(c, 'pageRoute') === p.route));
24093
24460
  while (items.length > want)
24094
24461
  items.pop();
24095
24462
  while (items.length < want && extra.length)
24096
24463
  items.push(barItem(kit, items.length, extra.shift()));
24097
24464
  }
24098
24465
  if (shape === NavShape.Both && dr)
24099
- b.children.push(retarget(more ?? moreItem(kit, dr.id), dr.id));
24466
+ b.children.push(retarget(more ?? moreItem(kit, dr.id, words), dr.id));
24100
24467
  }
24101
24468
  out.push(b);
24102
24469
  }
@@ -24155,8 +24522,9 @@ function addBarItem(globals, options = {}) {
24155
24522
  if (kids.length >= BAR_ITEMS_MAX)
24156
24523
  return { globals: out, added: false };
24157
24524
  const linked = new Set(kids.filter(c => c.role === NavRole.BarItem).map(c => prop(c, 'pageRoute')));
24158
- const page = barPages(root, phoneMenuPages(root, options.pages).pages, BAR_ITEMS_MAX + 1).find(p => !linked.has(p.route))
24159
- ?? { label: NAV_SHAPE_COPY.home, route: HOME_ROUTE };
24525
+ const words = menuWords(options.locale);
24526
+ const page = barPages(root, phoneMenuPages(root, options.pages).pages, BAR_ITEMS_MAX + 1, words).find(p => !linked.has(p.route))
24527
+ ?? { label: words.home, route: HOME_ROUTE };
24160
24528
  const item = barItem(makeKit(out, root.id, options.newId), kids.length, page);
24161
24529
  const more = kids.findIndex(c => c.role === NavRole.More);
24162
24530
  if (more >= 0)
@@ -26485,6 +26853,159 @@ function legalFormLine(lang, withTerms) {
26485
26853
  return parts;
26486
26854
  }
26487
26855
 
26856
+ /**
26857
+ * THE OWNER'S EDITS INSIDE A LIST CARD (vectoriox/iox-ui#122, board bindings-list BL-D8). Recomposing a list (Bindings ▸
26858
+ * List, Ask) draws its card again from the new mix; before #122 the card template was replaced and whatever the owner had
26859
+ * changed inside it was lost silently. `keepListParts` keeps it, part by part — the carry's rule (site-redesign RD1:
26860
+ * the owner's is placed, never retyped, and what finds no place is SAID, never dropped silently):
26861
+ *
26862
+ * - What is the owner's is told by the composer itself: the frame as the composer would draw it with the mix it wears
26863
+ * now (`baseline`) against the frame on the page (`previous`). A value that differs is the owner's; one that does not
26864
+ * is the composer's and follows the new mix.
26865
+ * - A part is found by its ROLE (`card.title`, `card.eyebrow`…), else by its place in the frame (the composer's ids are
26866
+ * the frame id + a fixed suffix: `-item-image`). An edited part whose role survives in the new card takes the edits
26867
+ * there (kept); one whose role is gone is redrawn — and listed.
26868
+ * - A node the owner added goes into the same parent part in the new card (at the same place among its children);
26869
+ * a part the owner deleted stays deleted. Either is listed as redrawn when its parent part is gone.
26870
+ *
26871
+ * Pure: `composed` is not changed; the result's `children` are the new card with the owner's edits.
26872
+ */
26873
+ /** What became of one part the owner changed. */
26874
+ var ListPartOutcome;
26875
+ (function (ListPartOutcome) {
26876
+ /** The part's role is in the new card: the owner's edits are on it there. */
26877
+ ListPartOutcome["Kept"] = "kept";
26878
+ /** The new card has no such part: the edits are lost — said before Apply (the kept notice, BL-D8). */
26879
+ ListPartOutcome["Redrawn"] = "redrawn";
26880
+ })(ListPartOutcome || (ListPartOutcome = {}));
26881
+ /** How the owner changed a part. */
26882
+ var ListPartChange;
26883
+ (function (ListPartChange) {
26884
+ /** Values on a composed part (a style, its words, an element style, a binding…). */
26885
+ ListPartChange["Edited"] = "edited";
26886
+ /** A node the owner put in the card. */
26887
+ ListPartChange["Added"] = "added";
26888
+ /** A composed part the owner deleted. */
26889
+ ListPartChange["Removed"] = "removed";
26890
+ })(ListPartChange || (ListPartChange = {}));
26891
+ /** Node fields whose values are maps — compared and carried value by value (`styleProps.color`, `props.content`…). */
26892
+ const MAP_FIELDS = ['props', 'styleProps', 'stateStyles', 'responsive', 'stateTriggers'];
26893
+ /** Fields that are the node's identity or its subtree, never an edit. */
26894
+ const SKIP_FIELDS = new Set(['id', 'children']);
26895
+ const same$1 = (a, b) => JSON.stringify(a) === JSON.stringify(b);
26896
+ /** Every node under the frame by its part key (the first of a key wins; a repeat is keyed by its place). */
26897
+ function partsOf$1(frame) {
26898
+ const out = new Map();
26899
+ const prefix = `${frame.id}-`;
26900
+ const keyOf = (n) => n.role ?? (n.id.startsWith(prefix) ? n.id.slice(prefix.length) : `node:${n.id}`);
26901
+ const visit = (n, parent, index) => {
26902
+ let key = keyOf(n);
26903
+ if (out.has(key))
26904
+ key = n.id.startsWith(prefix) ? n.id.slice(prefix.length) : `node:${n.id}`;
26905
+ if (!out.has(key))
26906
+ out.set(key, { node: n, parent, index });
26907
+ (n.children ?? []).forEach((c, i) => visit(c, key, i));
26908
+ };
26909
+ (frame.children ?? []).forEach((c, i) => visit(c, null, i));
26910
+ return out;
26911
+ }
26912
+ /** What differs on a part between the composer's drawing and the page. */
26913
+ function editsOn(baseline, page) {
26914
+ const edits = [];
26915
+ const fields = new Set([...Object.keys(baseline), ...Object.keys(page)].filter(f => !SKIP_FIELDS.has(f)));
26916
+ for (const field of fields) {
26917
+ const was = baseline[field];
26918
+ const now = page[field];
26919
+ if (same$1(was, now))
26920
+ continue;
26921
+ if (MAP_FIELDS.includes(field) && (was === undefined || isMap(was)) && (now === undefined || isMap(now))) {
26922
+ const a = (was ?? {});
26923
+ const b = (now ?? {});
26924
+ for (const key of new Set([...Object.keys(a), ...Object.keys(b)]))
26925
+ if (!same$1(a[key], b[key]))
26926
+ edits.push({ field, key, value: b[key] });
26927
+ }
26928
+ else {
26929
+ edits.push({ field, value: now });
26930
+ }
26931
+ }
26932
+ return edits;
26933
+ }
26934
+ const isMap = (v) => !!v && typeof v === 'object' && !Array.isArray(v);
26935
+ function applyEdits(node, edits) {
26936
+ const target = node;
26937
+ for (const e of edits) {
26938
+ if (e.key === undefined) {
26939
+ if (e.value === undefined)
26940
+ delete target[e.field];
26941
+ else
26942
+ target[e.field] = structuredClone(e.value);
26943
+ continue;
26944
+ }
26945
+ const map = { ...(target[e.field] ?? {}) };
26946
+ if (e.value === undefined)
26947
+ delete map[e.key];
26948
+ else
26949
+ map[e.key] = structuredClone(e.value);
26950
+ target[e.field] = map;
26951
+ }
26952
+ }
26953
+ /**
26954
+ * The new card (`composed`'s children) with the owner's edits from the frame on the page (`previous`), told from what the
26955
+ * composer would draw for the mix the frame wears now (`baseline`). With no baseline nothing is known to be the owner's:
26956
+ * the new card as composed, nothing listed.
26957
+ */
26958
+ function keepListParts(previous, baseline, composed) {
26959
+ const out = structuredClone(composed);
26960
+ out.id = previous.id;
26961
+ if (!baseline)
26962
+ return { children: out.children ?? [], edits: [] };
26963
+ // The composer draws every frame from its id: a baseline drawn under another id is read under the page's.
26964
+ const was = partsOf$1({ ...baseline, id: previous.id });
26965
+ const page = partsOf$1(previous);
26966
+ const now = partsOf$1(out);
26967
+ const edits = [];
26968
+ const say = (part, n, change, count, kept) => edits.push({ part, ...(n.role ? { role: n.role } : {}), type: n.type, change, edits: count, outcome: kept ? ListPartOutcome.Kept : ListPartOutcome.Redrawn });
26969
+ for (const [key, placed] of page) {
26970
+ const drawn = was.get(key);
26971
+ if (!drawn) {
26972
+ // The owner added it — unless its parent is itself the owner's (it travels inside it).
26973
+ if (placed.parent !== null && !was.has(placed.parent))
26974
+ continue;
26975
+ const into = placed.parent === null ? out : now.get(placed.parent)?.node;
26976
+ if (into) {
26977
+ const children = [...(into.children ?? [])];
26978
+ children.splice(Math.min(placed.index, children.length), 0, structuredClone(placed.node));
26979
+ into.children = children;
26980
+ }
26981
+ say(key, placed.node, ListPartChange.Added, 1, !!into);
26982
+ continue;
26983
+ }
26984
+ const changes = editsOn(drawn.node, placed.node);
26985
+ if (!changes.length)
26986
+ continue;
26987
+ const target = now.get(key)?.node;
26988
+ if (target)
26989
+ applyEdits(target, changes);
26990
+ say(key, placed.node, ListPartChange.Edited, changes.length, !!target);
26991
+ }
26992
+ for (const [key, drawn] of was) {
26993
+ if (page.has(key))
26994
+ continue;
26995
+ // The owner deleted it — once, at the topmost part deleted (its own parts went with it).
26996
+ if (drawn.parent !== null && !page.has(drawn.parent))
26997
+ continue;
26998
+ const gone = now.get(key);
26999
+ if (gone) {
27000
+ const parent = gone.parent === null ? out : now.get(gone.parent)?.node;
27001
+ if (parent)
27002
+ parent.children = (parent.children ?? []).filter(c => c !== gone.node);
27003
+ }
27004
+ say(key, drawn.node, ListPartChange.Removed, 1, !!gone);
27005
+ }
27006
+ return { children: out.children ?? [], edits };
27007
+ }
27008
+
26488
27009
  /**
26489
27010
  * THE layout composer (premium components M8, gate 1): a page written in the layout language (`layout-language.ts`) in,
26490
27011
  * ordinary builder nodes out — the same `createSerializedNode` every composed page is made of, so the builder reloads it
@@ -26548,6 +27069,9 @@ var LayoutListRole;
26548
27069
  LayoutListRole["Dim"] = "list.dim";
26549
27070
  LayoutListRole["Masonry"] = "list.masonry";
26550
27071
  LayoutListRole["MasonryTwo"] = "list.masonry-two";
27072
+ /** CW2: a grid that keeps two across on a phone (its columns are the node's own) — named so the shared CSS can hold a
27073
+ * half-width tile's title at the lead size. */
27074
+ LayoutListRole["GridTwo"] = "list.grid-two";
26551
27075
  /** LI3: strips (the Repeater) — stacked on a phone, two across, or a row to swipe; each row a strip item. */
26552
27076
  LayoutListRole["Strips"] = "list.strips";
26553
27077
  LayoutListRole["StripsTwo"] = "list.strips-two";
@@ -27425,6 +27949,8 @@ function composeList(id, l, mix, source, list, lc, ctx) {
27425
27949
  else {
27426
27950
  setStyleProps(items, { display: 'grid', gridTemplateColumns: `repeat(${columns}, minmax(0, 1fr))`, gap: LIST_GAP, alignItems: 'stretch', width: FULL });
27427
27951
  phone(items, { gridTemplateColumns: mix.phone === LayoutListPhone.TwoUp ? 'repeat(2, minmax(0, 1fr))' : 'minmax(0, 1fr)' });
27952
+ if (mix.phone === LayoutListPhone.TwoUp)
27953
+ items.role = LayoutListRole.GridTwo;
27428
27954
  if (mix.phone === LayoutListPhone.Swipe)
27429
27955
  gap(ctx, LayoutGapCode.ListLater, `${lc.path}.gallery.list.phone`, 'a grid stacks on a phone; only a row swipes');
27430
27956
  }
@@ -27445,7 +27971,17 @@ const LIST_FRAME_PROPS = [LIST_MIX_PROP, 'colorScheme'];
27445
27971
  * arrangement, role, room and classes. Pure.
27446
27972
  */
27447
27973
  function composeListFrame(input, previous) {
27448
- const id = previous?.id ?? 'list';
27974
+ const composed = composeListOnly(input, previous?.id ?? 'list');
27975
+ if (!previous)
27976
+ return { frame: composed.frame, gaps: composed.gaps, edits: [] };
27977
+ // What the composer draws for the mix the frame wears now: anything else on the page is the owner's (#122).
27978
+ const was = input.was ?? listMixOfFrame(previous, input.list);
27979
+ const baseline = was ? composeListOnly({ ...input, mix: was }, previous.id).frame : null;
27980
+ const kept = keepListParts(previous, baseline, composed.frame);
27981
+ return { frame: keepPlace(previous, { ...composed.frame, children: kept.children }), gaps: composed.gaps, edits: kept.edits };
27982
+ }
27983
+ /** `composeList` for one frame under an id. */
27984
+ function composeListOnly(input, id) {
27449
27985
  const pace = LAYOUT_PACE[(input.motion?.pace ?? LayoutPace.Normal)] ?? LAYOUT_PACE[LayoutPace.Normal];
27450
27986
  const site = { locale: input.locale, sections: [], motion: input.motion };
27451
27987
  const ctx = {
@@ -27459,8 +27995,26 @@ function composeListFrame(input, previous) {
27459
27995
  const layer = { kind: LayoutLayerKind.Gallery, col: [col[0], col[1]], row: [1, 2], text: input.label, gallery: { slides: [], source: input.source, list: input.mix } };
27460
27996
  const path = input.path ?? 'list';
27461
27997
  const lc = { section: { ground: input.ground }, si: 0, li: 0, path, held: !!input.held, track: 1, order: 0, phoneGap: 0, phoneAlign: 'start' };
27462
- const composed = composeList(id, layer, input.mix, input.source, input.list, lc, ctx);
27463
- return { frame: previous ? keepPlace(previous, composed) : composed, gaps: ctx.gaps };
27998
+ return { frame: composeList(id, layer, input.mix, input.source, input.list, lc, ctx), gaps: ctx.gaps };
27999
+ }
28000
+ /** The props a part's field is bound to when the card SHOWS it (an image's alt and an item's page link only follow). */
28001
+ const LIST_PART_PROPS = new Set(['content', 'src']);
28002
+ /**
28003
+ * The mix a composed list frame wears: its words (`LIST_MIX_PROP`) and the parts its card shows — the list's roles whose
28004
+ * field a part of the card is bound to. Null when the frame carries no mix (not a composed list).
28005
+ */
28006
+ function listMixOfFrame(frame, list) {
28007
+ const words = String(frame.props?.[LIST_MIX_PROP] ?? '').split(' ').filter(Boolean);
28008
+ if (!words.length)
28009
+ return null;
28010
+ const fields = new Set();
28011
+ walkSerialized(frame.children ?? [], node => {
28012
+ for (const b of node.bindings ?? [])
28013
+ if (LIST_PART_PROPS.has(b.prop) && typeof b.path === 'string')
28014
+ fields.add(b.path);
28015
+ });
28016
+ const parts = Object.entries(list.roles).filter(([, field]) => typeof field === 'string' && fields.has(field)).map(([role]) => role);
28017
+ return listMixFromWords(words, parts);
27464
28018
  }
27465
28019
  /** The recomposed frame on the previous one's place: what the composer owns is the new composition's (a key it no longer
27466
28020
  * writes is dropped), everything else — its place, its entrance, the author's own — the previous frame's. */
@@ -29990,13 +30544,16 @@ function planHeader(plan) {
29990
30544
  /** The phone-menu options a header recipe asks for: its menu at every width and on its side (none for the defaults, so a
29991
30545
  * stored header's edit is the one it always was). */
29992
30546
  function headerShapeOptions(recipe, locale) {
30547
+ // vectoriox/iox-ui#100: the menu's words (and the names its parts are heard by) are the site's language — English
30548
+ // words are the table's English, so an English header composes as it always did (R-H4).
30549
+ const words = locale ? { locale } : {};
29993
30550
  if (!recipe)
29994
- return {};
30551
+ return words;
29995
30552
  // HI2a: the menu's look, only what differs from today's menu (a stored header composes as it always did — R-H4).
29996
30553
  const look = Object.fromEntries(Object.entries(recipe.menu).filter(([k, v]) => DEFAULT_MENU_LOOK[k] !== v));
29997
30554
  return {
29998
30555
  ...(recipe.everyWidth ? { everyWidth: true } : {}), ...(recipe.menuSide === MenuSide.Start ? { menuSide: MenuSide.Start } : {}),
29999
- ...(Object.keys(look).length ? { look, ...(locale ? { locale } : {}) } : {}),
30556
+ ...(Object.keys(look).length ? { look } : {}), ...words,
30000
30557
  };
30001
30558
  }
30002
30559
  // ── The site header on its own (CC1.1) ──────────────────────────────────────────────────────────
@@ -33034,6 +33591,251 @@ function planEditsFromWire(answer) {
33034
33591
  return { ...answer, edits: answer['edits'].map(expandWireEdit) };
33035
33592
  }
33036
33593
 
33594
+ /** How a code's repeats become one row on a screen. */
33595
+ var FindingGrouping;
33596
+ (function (FindingGrouping) {
33597
+ /** One row per page (or global): "12 boxes wait for a picture" on Home, another for About. */
33598
+ FindingGrouping["Page"] = "page";
33599
+ /** One row for the site: "15 sample items", "6 pages have no description for search results". */
33600
+ FindingGrouping["Site"] = "site";
33601
+ /** Never grouped: each finding names something different (a fact, a product with its own page, a connector). */
33602
+ FindingGrouping["Never"] = "never";
33603
+ })(FindingGrouping || (FindingGrouping = {}));
33604
+ const S = (en, he) => ({ en, he });
33605
+ /** Every code's words. Typed by the codes' values, so a new code without words does not compile. */
33606
+ const SITE_FINDING_WORDS = {
33607
+ 'no-header': {
33608
+ one: S('The site has no header, so visitors have no menu to move around with.', 'לאתר אין כותרת עליונה, ולכן אין למבקרים תפריט לנווט בו.'),
33609
+ group: FindingGrouping.Never,
33610
+ },
33611
+ 'no-phone-menu': {
33612
+ one: S('The header has no phone menu — on a phone its links are hard to reach.', 'לכותרת העליונה אין תפריט לטלפון — בטלפון קשה להגיע לקישורים שלה.'),
33613
+ group: FindingGrouping.Never,
33614
+ },
33615
+ 'form-without-id': {
33616
+ one: S('A form has no id, so what visitors send is never stored.', 'לטופס אין מזהה, ולכן מה שמבקרים שולחים לא נשמר.'),
33617
+ many: S('{n} forms have no id, so what visitors send is never stored.', '{n} טפסים בלי מזהה, ולכן מה שמבקרים שולחים בהם לא נשמר.'),
33618
+ group: FindingGrouping.Page,
33619
+ },
33620
+ 'empty-channel': {
33621
+ one: S('A form\'s second way to reach you has no number or address yet — visitors do not see it until you fill it in.', 'לדרך הנוספת ליצור איתכם קשר בטופס עדיין אין מספר או כתובת — המבקרים לא יראו אותה עד שתמלאו אותה.'),
33622
+ many: S('{n} forms\' second way to reach you has no number or address yet — visitors do not see it until you fill it in.', 'ב-{n} טפסים לדרך הנוספת ליצור איתכם קשר עדיין אין מספר או כתובת — המבקרים לא יראו אותה עד שתמלאו אותה.'),
33623
+ group: FindingGrouping.Page,
33624
+ },
33625
+ 'email-needs-mailer': {
33626
+ one: S('A form emails what visitors send, but Email is not connected — it is stored and never sent.', 'טופס שולח במייל את מה שמבקרים שולחים, אבל המייל לא מחובר — ההודעות נשמרות ולא נשלחות.'),
33627
+ many: S('{n} forms email what visitors send, but Email is not connected — it is stored and never sent.', '{n} טפסים שולחים במייל את מה שמבקרים שולחים, אבל המייל לא מחובר — ההודעות נשמרות ולא נשלחות.'),
33628
+ group: FindingGrouping.Site,
33629
+ },
33630
+ 'tracker-without-banner': {
33631
+ one: S('{trackers} is connected, but the site has no cookie banner — it stays off for every visitor.', '{trackers} מחובר, אבל באתר אין באנר עוגיות — הוא כבוי לכל המבקרים.'),
33632
+ group: FindingGrouping.Never,
33633
+ },
33634
+ 'no-title': {
33635
+ one: S('"{name}" has no title for search results.', 'לעמוד "{name}" אין כותרת לתוצאות החיפוש.'),
33636
+ many: S('{n} pages have no title for search results.', '{n} עמודים בלי כותרת לתוצאות החיפוש.'),
33637
+ group: FindingGrouping.Site,
33638
+ },
33639
+ 'no-description': {
33640
+ one: S('"{name}" has no description for search results.', 'לעמוד "{name}" אין תיאור לתוצאות החיפוש.'),
33641
+ many: S('{n} pages have no description for search results.', '{n} עמודים בלי תיאור לתוצאות החיפוש.'),
33642
+ group: FindingGrouping.Site,
33643
+ },
33644
+ 'unfilled-fact': {
33645
+ one: S('"{text}" is still blank — fill it in before the site goes live.', '"{text}" עדיין ריק — מלאו אותו לפני שהאתר עולה לאוויר.'),
33646
+ group: FindingGrouping.Never,
33647
+ },
33648
+ 'contact-missing': {
33649
+ one: S('"{text}" is not on the site yet — visitors do not see that line until you fill it in.', '"{text}" עוד לא באתר — המבקרים לא יראו את השורה הזו עד שתמלאו אותה.'),
33650
+ group: FindingGrouping.Never,
33651
+ },
33652
+ 'copy-placeholder': {
33653
+ one: S('Some words are still the template\'s.', 'חלק מהמילים עדיין של התבנית.'),
33654
+ many: S('{n} places still hold the template\'s words.', 'ב-{n} מקומות עדיין מופיעות המילים של התבנית.'),
33655
+ group: FindingGrouping.Page,
33656
+ },
33657
+ 'sample-items': {
33658
+ one: S('"{name}" is a sample — replace or remove it.', '"{name}" הוא פריט לדוגמה — החליפו או הסירו אותו.'),
33659
+ many: S('{n} sample items — replace them with yours or remove them.', '{n} פריטים לדוגמה — החליפו אותם בשלכם או הסירו אותם.'),
33660
+ group: FindingGrouping.Site,
33661
+ },
33662
+ // Each sample product is fixed on its own page (the screen links to it), so they are never one row.
33663
+ 'sample-price': {
33664
+ one: S('"{name}" has no price yet — set yours, or remove the sample.', 'ל-"{name}" עדיין אין מחיר — קבעו מחיר או הסירו את הדוגמה.'),
33665
+ group: FindingGrouping.Never,
33666
+ },
33667
+ 'sample-stock': {
33668
+ one: S('"{name}" has no stock yet — say how many you have, or remove the sample.', 'ל-"{name}" עדיין אין מלאי — כתבו כמה יש לכם, או הסירו את הדוגמה.'),
33669
+ group: FindingGrouping.Never,
33670
+ },
33671
+ // A store fact's words are the checkout gate's rule label (commerce-core) — `findingSentence` reads them by `fact`.
33672
+ 'store-fact': { one: S('A fact the checkout needs is missing.', 'חסר פרט שהקופה צריכה.'), group: FindingGrouping.Never },
33673
+ 'store-contact': { one: S('A contact detail the checkout needs is missing.', 'חסר פרט קשר שהקופה צריכה.'), group: FindingGrouping.Never },
33674
+ 'stock-photo': {
33675
+ one: S('A stock photo stands in for one of yours.', 'תמונה מהמאגר עומדת במקום תמונה שלכם.'),
33676
+ many: S('{n} stock photos stand in for yours.', '{n} תמונות מהמאגר עומדות במקום התמונות שלכם.'),
33677
+ group: FindingGrouping.Page,
33678
+ },
33679
+ 'made-picture': {
33680
+ one: S('A picture made with AI stands in for one of yours.', 'תמונה שנוצרה ב-AI עומדת במקום תמונה שלכם.'),
33681
+ many: S('{n} pictures made with AI stand in for yours.', '{n} תמונות שנוצרו ב-AI עומדות במקום התמונות שלכם.'),
33682
+ group: FindingGrouping.Page,
33683
+ },
33684
+ 'picture-missing': {
33685
+ one: {
33686
+ made: S('A picture could not be made for this spot — add one of yours.', 'לא הצלחנו ליצור תמונה למקום הזה — הוסיפו תמונה שלכם.'),
33687
+ box: S('A box on this page waits for a picture — add one of yours.', 'תיבה בעמוד הזה מחכה לתמונה — הוסיפו תמונה שלכם.'),
33688
+ },
33689
+ many: S('{n} boxes wait for a picture — add yours.', '{n} תיבות מחכות לתמונה — הוסיפו תמונות שלכם.'),
33690
+ group: FindingGrouping.Page,
33691
+ },
33692
+ 'no-privacy-page': {
33693
+ one: S('A form asks for personal details, and the site has no privacy page saying what you do with them.', 'טופס מבקש פרטים אישיים, ואין באתר עמוד פרטיות שמסביר מה אתם עושים איתם.'),
33694
+ group: FindingGrouping.Never,
33695
+ },
33696
+ 'legal-page-placeholder': {
33697
+ one: S('"{name}" still says what belongs there — only you can write it.', 'בעמוד "{name}" עדיין כתוב רק מה צריך להופיע בו — רק אתם יכולים לכתוב אותו.'),
33698
+ group: FindingGrouping.Never,
33699
+ },
33700
+ 'no-accessibility-statement': {
33701
+ one: {
33702
+ israel: S('The site has no accessibility statement — Israel requires one. Add a page for it and write what is accessible and who to contact.', 'אין באתר הצהרת נגישות — החוק בישראל מחייב אותה. הוסיפו לה עמוד וכתבו מה נגיש ולמי לפנות.'),
33703
+ hebrew: S('The site has no accessibility statement — a Hebrew site is expected to carry one. Add a page for it and write what is accessible and who to contact.', 'אין באתר הצהרת נגישות — מאתר בעברית מצופה שתהיה בו. הוסיפו לה עמוד וכתבו מה נגיש ולמי לפנות.'),
33704
+ },
33705
+ group: FindingGrouping.Never,
33706
+ },
33707
+ 'accessibility-statement-advised': {
33708
+ one: {
33709
+ israel: S('The site has no accessibility statement — Israel requires one. Add a page for it.', 'אין באתר הצהרת נגישות — החוק בישראל מחייב אותה. הוסיפו לה עמוד.'),
33710
+ hebrew: S('The site has no accessibility statement — a Hebrew site is expected to carry one. Add a page for it.', 'אין באתר הצהרת נגישות — מאתר בעברית מצופה שתהיה בו. הוסיפו לה עמוד.'),
33711
+ },
33712
+ group: FindingGrouping.Never,
33713
+ },
33714
+ 'consent-reject-weaker': {
33715
+ one: {
33716
+ missing: S('The cookie banner has no Reject beside Accept — refusing must be as easy as accepting.', 'בבאנר העוגיות אין "דחייה" לצד "אישור" — לסרב צריך להיות קל כמו להסכים.'),
33717
+ weaker: S('The cookie banner\'s Reject is weaker than its Accept — make it the same kind of button, on the same row.', '"דחייה" בבאנר העוגיות חלשה מ"אישור" — הפכו אותה לאותו סוג כפתור, באותה שורה.'),
33718
+ },
33719
+ group: FindingGrouping.Never,
33720
+ },
33721
+ 'no-cookie-settings': {
33722
+ one: S('Nothing on the site reopens the cookie choice — add Cookie settings to the footer so visitors can change their mind.', 'שום דבר באתר לא פותח מחדש את בחירת העוגיות — הוסיפו "הגדרות עוגיות" לכותרת התחתונה כדי שמבקרים יוכלו לשנות את דעתם.'),
33723
+ group: FindingGrouping.Never,
33724
+ },
33725
+ 'low-contrast': {
33726
+ one: {
33727
+ light: S('{count} text and background pair(s) are hard to read in light mode.', '{count} צירופים של טקסט ורקע קשים לקריאה במצב בהיר.'),
33728
+ dark: S('{count} text and background pair(s) are hard to read in dark mode.', '{count} צירופים של טקסט ורקע קשים לקריאה במצב כהה.'),
33729
+ },
33730
+ group: FindingGrouping.Never,
33731
+ },
33732
+ 'heading-order': {
33733
+ one: {
33734
+ skip: S('A heading on "{name}" skips a level (h{from} → h{to}).', 'כותרת בעמוד "{name}" מדלגת על רמה (מ-h{from} ל-h{to}).'),
33735
+ h1: S('"{name}" has {count} main headings (h1); one is clearer.', 'בעמוד "{name}" יש {count} כותרות ראשיות (h1); אחת ברורה יותר.'),
33736
+ },
33737
+ many: S('{n} headings on this page are out of order.', '{n} כותרות בעמוד הזה לא בסדר הנכון.'),
33738
+ group: FindingGrouping.Page,
33739
+ },
33740
+ 'image-without-alt': {
33741
+ one: S('A picture has no description for people who cannot see it.', 'לתמונה אין תיאור לאנשים שלא יכולים לראות אותה.'),
33742
+ many: S('{n} pictures have no description for people who cannot see them.', '{n} תמונות בלי תיאור לאנשים שלא יכולים לראות אותן.'),
33743
+ group: FindingGrouping.Page,
33744
+ },
33745
+ 'literal-colour': {
33746
+ one: S('An element paints a fixed colour, so a new look will not reach it.', 'רכיב צבוע בצבע קבוע, ולכן מראה חדש לא יגיע אליו.'),
33747
+ many: S('{n} elements paint a fixed colour, so a new look will not reach them.', '{n} רכיבים צבועים בצבע קבוע, ולכן מראה חדש לא יגיע אליהם.'),
33748
+ group: FindingGrouping.Page,
33749
+ },
33750
+ 'dead-link': {
33751
+ one: {
33752
+ route: S('"{label}" links to {route}, which is not a page of the site.', '"{label}" מקשר אל {route}, שאינו עמוד באתר.'),
33753
+ unlinked: S('"{label}" links to no page.', '"{label}" לא מקשר לשום עמוד.'),
33754
+ action: S('"{label}" goes to a page the site does not have.', '"{label}" מוביל לעמוד שאין באתר.'),
33755
+ },
33756
+ many: S('{n} links on this page go to pages the site does not have.', '{n} קישורים בעמוד הזה מובילים לעמודים שאין באתר.'),
33757
+ group: FindingGrouping.Page,
33758
+ },
33759
+ 'dead-dialog-target': {
33760
+ one: S('"{label}" opens something that is no longer on the site.', '"{label}" פותח משהו שכבר לא נמצא באתר.'),
33761
+ many: S('{n} buttons on this page open something that is no longer on the site.', '{n} כפתורים בעמוד הזה פותחים משהו שכבר לא נמצא באתר.'),
33762
+ group: FindingGrouping.Page,
33763
+ },
33764
+ 'action-needs-connector': {
33765
+ one: S('"{label}" needs {connector} connected.', '"{label}" צריך ש-{connector} יהיה מחובר.'),
33766
+ group: FindingGrouping.Never,
33767
+ },
33768
+ };
33769
+ const PLACEHOLDER = /\{(\w+)\}/g;
33770
+ function sentenceOf(words, variant) {
33771
+ const one = words.one;
33772
+ if (typeof one['en'] === 'string')
33773
+ return words.one;
33774
+ return (variant !== undefined ? one[String(variant)] : undefined) ?? null;
33775
+ }
33776
+ /** A sentence with its values — or null when one it names is missing (an older finding, written without `params`). */
33777
+ function fill(text, params) {
33778
+ let missing = false;
33779
+ const out = text.replace(PLACEHOLDER, (_, key) => {
33780
+ const v = params[key];
33781
+ if (v === undefined || v === null) {
33782
+ missing = true;
33783
+ return '';
33784
+ }
33785
+ return String(v);
33786
+ });
33787
+ return missing ? null : out;
33788
+ }
33789
+ /** The English sentence `auditSite` stores as a finding's `message` (one source with the screens' words). */
33790
+ function findingMessageOf(code, params = {}) {
33791
+ const sentence = sentenceOf(SITE_FINDING_WORDS[code], params['variant']);
33792
+ return (sentence && fill(sentence.en, params)) ?? code;
33793
+ }
33794
+ /**
33795
+ * One finding in the admin's language: a store fact is the checkout gate's rule label (commerce-core), every other code
33796
+ * its sentence here with the finding's values. A finding that carries no values (written by an older server) keeps the
33797
+ * server's own words.
33798
+ */
33799
+ function findingSentence(f, lang) {
33800
+ if (f.fact) {
33801
+ // A fact this table does not know (a newer server) keeps the server's own words — never the generic sentence.
33802
+ const rule = CHECKOUT_GATE_RULES.find(r => r.code === f.fact);
33803
+ return rule ? labelIn(rule.label, lang) : f.message;
33804
+ }
33805
+ const words = SITE_FINDING_WORDS[f.code];
33806
+ const sentence = words ? sentenceOf(words, f.params?.['variant']) : null;
33807
+ return (sentence && fill(labelIn(sentence, lang), f.params ?? {})) ?? f.message;
33808
+ }
33809
+ function groupKey(f, i) {
33810
+ const grouping = SITE_FINDING_WORDS[f.code]?.group ?? FindingGrouping.Never;
33811
+ switch (grouping) {
33812
+ case FindingGrouping.Site: return `${f.code}`;
33813
+ case FindingGrouping.Page: return `${f.code}:${f.pageId ?? `global:${f.owner ?? ''}`}`;
33814
+ default: return `${f.code}:${f.fact ?? f.legal ?? f.nodeId ?? f.pageId ?? i}`;
33815
+ }
33816
+ }
33817
+ /** Repeated findings of one kind as one row each (per page, per site, or never — `SITE_FINDING_WORDS[code].group`),
33818
+ * in the order the first of each appears. */
33819
+ function groupSiteFindings(findings) {
33820
+ const groups = new Map();
33821
+ findings.forEach((f, i) => {
33822
+ const key = groupKey(f, i);
33823
+ const g = groups.get(key);
33824
+ if (g)
33825
+ g.push(f);
33826
+ else
33827
+ groups.set(key, [f]);
33828
+ });
33829
+ return [...groups.entries()].map(([key, list]) => ({ key, code: list[0].code, findings: list, first: list[0], count: list.length }));
33830
+ }
33831
+ /** A group in the admin's language: its one finding's sentence, or the code's sentence for `{n}` of them. */
33832
+ function groupSentence(g, lang) {
33833
+ const many = SITE_FINDING_WORDS[g.first.code]?.many;
33834
+ if (g.count < 2 || !many)
33835
+ return findingSentence(g.first, lang);
33836
+ return fill(labelIn(many, lang), { n: g.count }) ?? findingSentence(g.first, lang);
33837
+ }
33838
+
33037
33839
  /**
33038
33840
  * THE Publishable gate (AI plan §3e, M1-7): ONE pure function over a snapshot of a site — its pages, globals, the
33039
33841
  * connectors' health, the look's token rows, what a build left to fill — run by the Publish dialog, the builder's
@@ -33266,8 +34068,17 @@ function hasContent(layout, type) {
33266
34068
  });
33267
34069
  return found;
33268
34070
  }
33269
- function add(ctx, code, message, where = {}) {
33270
- ctx.out.push({ check: CHECK_OF[code], severity: FINDING_SEVERITY[code], code, message, ...where });
34071
+ /** A finding: its English message from the ONE words table (audit-words), with the values it names. */
34072
+ function add(ctx, code, params, where = {}) {
34073
+ say(ctx, code, findingMessageOf(code, params ?? {}), params, where);
34074
+ }
34075
+ /** A page link to a page the site lacks names that route; a link set to no page says so. */
34076
+ function deadLinkParams(label, route) {
34077
+ return route ? { variant: 'route', label, route } : { variant: 'unlinked', label };
34078
+ }
34079
+ /** A finding whose words are another table's (a store fact: the checkout gate's rule label). */
34080
+ function say(ctx, code, message, params, where) {
34081
+ ctx.out.push({ check: CHECK_OF[code], severity: FINDING_SEVERITY[code], code, message, ...(params && Object.keys(params).length ? { params } : {}), ...where });
33271
34082
  }
33272
34083
  /** Every node of a page or a global, with where it lives. */
33273
34084
  function eachNode(snapshot, pages, visit) {
@@ -33281,9 +34092,9 @@ function eachNode(snapshot, pages, visit) {
33281
34092
  function checkNavigation(ctx, snapshot) {
33282
34093
  const header = snapshot.globals.find(g => g.globalPosition === PatternGlobalPosition.Before);
33283
34094
  if (!header)
33284
- return add(ctx, SiteFindingCode.NoHeader, 'The site has no header, so visitors have no menu to move around with.');
34095
+ return add(ctx, SiteFindingCode.NoHeader, null);
33285
34096
  if (!navShapeOf(snapshot.globals))
33286
- add(ctx, SiteFindingCode.NoPhoneMenu, 'The header has no phone menu — on a phone its links are hard to reach.', { owner: 'header', nodeId: header.id });
34097
+ add(ctx, SiteFindingCode.NoPhoneMenu, null, { owner: 'header', nodeId: header.id });
33287
34098
  }
33288
34099
  function checkForms(ctx, snapshot, pages) {
33289
34100
  let personal = false;
@@ -33292,15 +34103,15 @@ function checkForms(ctx, snapshot, pages) {
33292
34103
  return;
33293
34104
  const spec = collectFormSpec(n);
33294
34105
  if (!spec || !nonEmpty(spec.formId))
33295
- add(ctx, SiteFindingCode.FormWithoutId, 'A form has no id, so what visitors send is never stored.', { ...where, nodeId: n.id });
34106
+ add(ctx, SiteFindingCode.FormWithoutId, null, { ...where, nodeId: n.id });
33296
34107
  if (spec?.actions.some(a => a.type === EMAIL_DELIVERY) && snapshot.connectors[MAILER] !== true) {
33297
- add(ctx, SiteFindingCode.EmailNeedsMailer, 'A form emails what visitors send, but Email is not connected — it is stored and never sent.', { ...where, nodeId: n.id });
34108
+ add(ctx, SiteFindingCode.EmailNeedsMailer, null, { ...where, nodeId: n.id });
33298
34109
  }
33299
34110
  if (formAsksPersonalData(n))
33300
34111
  personal = true;
33301
34112
  walkSerialized(n.children ?? [], f => {
33302
34113
  if (f.role === FORM_CHANNEL_ROLE && !isChannelFilled(f.props['href'])) {
33303
- add(ctx, SiteFindingCode.EmptyChannel, 'A form\'s second way to reach you has no number or address yet — visitors do not see it until you fill it in.', { ...where, nodeId: f.id });
34114
+ add(ctx, SiteFindingCode.EmptyChannel, null, { ...where, nodeId: f.id });
33304
34115
  }
33305
34116
  });
33306
34117
  });
@@ -33327,7 +34138,7 @@ function checkConsent(ctx, snapshot) {
33327
34138
  walkSerialized([g], n => { if (n.type === DIALOG_TYPE && n.props['consentRole'] === true)
33328
34139
  banners.push(n); });
33329
34140
  if (snapshot.trackers?.length && !banners.length) {
33330
- add(ctx, SiteFindingCode.TrackerWithoutBanner, `${snapshot.trackers.join(', ')} is connected, but the site has no cookie banner — it stays off for every visitor.`);
34141
+ add(ctx, SiteFindingCode.TrackerWithoutBanner, { trackers: snapshot.trackers.join(', ') });
33331
34142
  }
33332
34143
  for (const banner of banners) {
33333
34144
  const accept = [];
@@ -33342,9 +34153,7 @@ function checkConsent(ctx, snapshot) {
33342
34153
  const weaker = !reject.length || reject.every(r => LINK_LIKE.has(r.node.type)
33343
34154
  || !accept.some(a => a.node.type === r.node.type && a.row === r.row));
33344
34155
  if (weaker) {
33345
- add(ctx, SiteFindingCode.ConsentRejectWeaker, !reject.length
33346
- ? 'The cookie banner has no Reject beside Accept — refusing must be as easy as accepting.'
33347
- : 'The cookie banner\'s Reject is weaker than its Accept — make it the same kind of button, on the same row.', { owner: 'footer', nodeId: banner.id });
34156
+ add(ctx, SiteFindingCode.ConsentRejectWeaker, { variant: !reject.length ? 'missing' : 'weaker' }, { owner: 'footer', nodeId: banner.id });
33348
34157
  }
33349
34158
  }
33350
34159
  if (!banners.length)
@@ -33367,15 +34176,15 @@ function checkConsent(ctx, snapshot) {
33367
34176
  eachNode(snapshot, snapshot.pages, n => { if (!inBanner.has(n.id) && runs(n, ConsentActionType.OpenPreferences))
33368
34177
  reopens = true; });
33369
34178
  if (!reopens)
33370
- add(ctx, SiteFindingCode.NoCookieSettings, 'Nothing on the site reopens the cookie choice — add Cookie settings to the footer so visitors can change their mind.');
34179
+ add(ctx, SiteFindingCode.NoCookieSettings, null);
33371
34180
  }
33372
34181
  function checkSeo(ctx, pages) {
33373
34182
  for (const page of pages) {
33374
34183
  const seo = (page.seo ?? {});
33375
34184
  if (!seoField(seo['title'], hasContent(page.layout, 'Heading')))
33376
- add(ctx, SiteFindingCode.NoTitle, `"${page.name}" has no title for search results.`, { pageId: page.id });
34185
+ add(ctx, SiteFindingCode.NoTitle, { name: page.name }, { pageId: page.id });
33377
34186
  if (!seoField(seo['description'], hasContent(page.layout, 'Text')))
33378
- add(ctx, SiteFindingCode.NoDescription, `"${page.name}" has no description for search results.`, { pageId: page.id });
34187
+ add(ctx, SiteFindingCode.NoDescription, { name: page.name }, { pageId: page.id });
33379
34188
  }
33380
34189
  }
33381
34190
  function checkFacts(ctx, snapshot, pages, personal) {
@@ -33383,35 +34192,35 @@ function checkFacts(ctx, snapshot, pages, personal) {
33383
34192
  for (const p of (snapshot.placeholders ?? []).filter(p => !p.filled && inScope(p))) {
33384
34193
  const where = { pageId: p.pageId, nodeId: p.nodeId, ...(p.pageId ? {} : { owner: p.owner }) };
33385
34194
  if (p.kind === PlaceholderKind.Fact)
33386
- add(ctx, SiteFindingCode.ContactMissing, `"${p.text || p.fact}" is not on the site yet — visitors do not see that line until you fill it in.`, where);
34195
+ add(ctx, SiteFindingCode.ContactMissing, { text: String(p.text || p.fact) }, where);
33387
34196
  else if (blocksPublish(p.kind))
33388
- add(ctx, SiteFindingCode.UnfilledFact, `"${p.text || p.kind}" is still blank — fill it in before the site goes live.`, where);
34197
+ add(ctx, SiteFindingCode.UnfilledFact, { text: String(p.text || p.kind) }, where);
33389
34198
  else if (p.kind === PlaceholderKind.Copy)
33390
- add(ctx, SiteFindingCode.CopyPlaceholder, 'Some words are still the template\'s.', where);
34199
+ add(ctx, SiteFindingCode.CopyPlaceholder, null, where);
33391
34200
  }
33392
34201
  for (const s of snapshot.samples ?? [])
33393
- add(ctx, SiteFindingCode.SampleItems, `"${s.label ?? s.id}" is a sample — replace or remove it.`, { nodeId: s.id });
34202
+ add(ctx, SiteFindingCode.SampleItems, { name: s.label ?? s.id }, { nodeId: s.id });
33394
34203
  // iox-cms#98: what the shop lacks holds only the pages that show the shop — never the Home of a site that also sells.
33395
34204
  const shopShown = pages.some(pageShowsShop);
33396
34205
  for (const s of shopShown ? snapshot.unpricedSamples ?? [] : [])
33397
- add(ctx, SiteFindingCode.SamplePrice, `"${s.label ?? s.id}" has no price yet — set yours, or remove the sample.`, { nodeId: s.id });
34206
+ add(ctx, SiteFindingCode.SamplePrice, { name: s.label ?? s.id }, { nodeId: s.id });
33398
34207
  for (const s of shopShown ? snapshot.unstockedSamples ?? [] : [])
33399
- add(ctx, SiteFindingCode.SampleStock, `"${s.label ?? s.id}" has no stock yet — say how many you have, or remove the sample.`, { nodeId: s.id });
34208
+ add(ctx, SiteFindingCode.SampleStock, { name: s.label ?? s.id }, { nodeId: s.id });
33400
34209
  if (snapshot.store?.refusals.length && shopShown && siteSells(snapshot)) {
33401
34210
  for (const r of snapshot.store.refusals) {
33402
34211
  const code = STORE_CONTACT_CODES.has(r.code) ? SiteFindingCode.StoreContact : SiteFindingCode.StoreFact;
33403
- add(ctx, code, labelIn(r.label, snapshot.store.lang), { fact: r.code });
34212
+ say(ctx, code, labelIn(r.label, snapshot.store.lang), null, { fact: r.code });
33404
34213
  }
33405
34214
  }
33406
34215
  for (const s of (snapshot.stock ?? []).filter(inScope))
33407
- add(ctx, SiteFindingCode.StockPhoto, 'A stock photo stands in for one of yours.', { pageId: s.pageId, nodeId: s.nodeId, owner: s.owner });
34216
+ add(ctx, SiteFindingCode.StockPhoto, null, { pageId: s.pageId, nodeId: s.nodeId, owner: s.owner });
33408
34217
  for (const s of (snapshot.made ?? []).filter(inScope))
33409
- add(ctx, SiteFindingCode.MadePicture, 'A picture made with AI stands in for one of yours.', { pageId: s.pageId, nodeId: s.nodeId, owner: s.owner });
34218
+ add(ctx, SiteFindingCode.MadePicture, null, { pageId: s.pageId, nodeId: s.nodeId, owner: s.owner });
33410
34219
  for (const s of (snapshot.missing ?? []).filter(inScope))
33411
- add(ctx, SiteFindingCode.PictureMissing, 'A picture could not be made for this spot — add one of yours.', { pageId: s.pageId, nodeId: s.nodeId, owner: s.owner });
34220
+ add(ctx, SiteFindingCode.PictureMissing, { variant: 'made' }, { pageId: s.pageId, nodeId: s.nodeId, owner: s.owner });
33412
34221
  checkLegalPages(ctx, snapshot, pages, personal);
33413
34222
  if (personal && !legalPageOf(snapshot.pages, LegalKind.Privacy)) {
33414
- add(ctx, SiteFindingCode.NoPrivacyPage, 'A form asks for personal details, and the site has no privacy page saying what you do with them.');
34223
+ add(ctx, SiteFindingCode.NoPrivacyPage, null);
33415
34224
  }
33416
34225
  }
33417
34226
  const isIsraeli = (snapshot) => String(snapshot.country ?? '').trim().toUpperCase() === ISRAEL;
@@ -33460,23 +34269,20 @@ function checkLegalPages(ctx, snapshot, pages, personal) {
33460
34269
  // Warn old: a site from before the law is never held by its accessibility statement.
33461
34270
  if (kind === LegalKind.Accessibility && !built)
33462
34271
  continue;
33463
- add(ctx, SiteFindingCode.LegalPagePlaceholder, `"${page.name || legalTitle(kind, snapshot.locale)}" still says what belongs there — only you can write it.`, { pageId: page.id, legal: kind });
34272
+ add(ctx, SiteFindingCode.LegalPagePlaceholder, { name: page.name || legalTitle(kind, snapshot.locale) }, { pageId: page.id, legal: kind });
33464
34273
  }
33465
34274
  }
33466
34275
  function checkAccessibility(ctx, snapshot, pages) {
33467
34276
  // AW1 (AW-D14): Israel requires an accessibility statement; a Hebrew site elsewhere is expected to carry one. Block
33468
34277
  // new, warn old: only a site built with the law is held (`siteBuiltWithLaw`).
33469
34278
  if (wantsAccessibilityStatement(snapshot) && !legalPageOf(snapshot.pages, LegalKind.Accessibility)) {
33470
- const why = isIsraeli(snapshot) ? 'Israel requires one' : 'a Hebrew site is expected to carry one';
33471
- if (siteBuiltWithLaw(snapshot))
33472
- add(ctx, SiteFindingCode.NoAccessibilityStatement, `The site has no accessibility statement — ${why}. Add a page for it and write what is accessible and who to contact.`);
33473
- else
33474
- add(ctx, SiteFindingCode.AccessibilityStatementAdvised, `The site has no accessibility statement — ${why}. Add a page for it.`);
34279
+ const why = { variant: isIsraeli(snapshot) ? 'israel' : 'hebrew' };
34280
+ add(ctx, siteBuiltWithLaw(snapshot) ? SiteFindingCode.NoAccessibilityStatement : SiteFindingCode.AccessibilityStatementAdvised, why);
33475
34281
  }
33476
34282
  for (const mode of snapshot.design?.modes ?? []) {
33477
34283
  const failing = auditDesignContrast(snapshot.design.rows, mode).filter(f => !f.pass);
33478
34284
  if (failing.length)
33479
- add(ctx, SiteFindingCode.LowContrast, `${failing.length} text and background pair(s) are hard to read in ${mode} mode.`);
34285
+ add(ctx, SiteFindingCode.LowContrast, { variant: mode, count: failing.length });
33480
34286
  }
33481
34287
  for (const page of pages) {
33482
34288
  let last = 0;
@@ -33489,11 +34295,11 @@ function checkAccessibility(ctx, snapshot, pages) {
33489
34295
  if (l === 1)
33490
34296
  h1++;
33491
34297
  if (last && l > last + 1)
33492
- add(ctx, SiteFindingCode.HeadingOrder, `A heading on "${page.name}" skips a level (h${last} → h${l}).`, { pageId: page.id, nodeId: n.id });
34298
+ add(ctx, SiteFindingCode.HeadingOrder, { variant: 'skip', name: page.name, from: last, to: l }, { pageId: page.id, nodeId: n.id });
33493
34299
  last = l;
33494
34300
  });
33495
34301
  if (h1 > 1)
33496
- add(ctx, SiteFindingCode.HeadingOrder, `"${page.name}" has ${h1} main headings (h1); one is clearer.`, { pageId: page.id });
34302
+ add(ctx, SiteFindingCode.HeadingOrder, { variant: 'h1', name: page.name, count: h1 }, { pageId: page.id });
33497
34303
  }
33498
34304
  const said = new Set((snapshot.missing ?? []).map(s => s.nodeId));
33499
34305
  eachNode(snapshot, pages, (n, where) => {
@@ -33501,13 +34307,13 @@ function checkAccessibility(ctx, snapshot, pages) {
33501
34307
  return;
33502
34308
  if (!nonEmpty(n.props['src']) && !n.bindings.some(b => b.prop === 'src')) {
33503
34309
  if (!said.has(n.id))
33504
- add(ctx, SiteFindingCode.PictureMissing, 'A box on this page waits for a picture — add one of yours.', { ...where, nodeId: n.id });
34310
+ add(ctx, SiteFindingCode.PictureMissing, { variant: 'box' }, { ...where, nodeId: n.id });
33505
34311
  return;
33506
34312
  }
33507
34313
  const decorative = n.props['alt'] === '' && n.props['decorative'] === true;
33508
34314
  const bound = n.bindings.some(b => b.prop === 'alt');
33509
34315
  if (!decorative && !bound && !nonEmpty(n.props['alt']))
33510
- add(ctx, SiteFindingCode.ImageWithoutAlt, 'A picture has no description for people who cannot see it.', { ...where, nodeId: n.id });
34316
+ add(ctx, SiteFindingCode.ImageWithoutAlt, null, { ...where, nodeId: n.id });
33511
34317
  });
33512
34318
  }
33513
34319
  function checkTokens(ctx, snapshot, pages) {
@@ -33517,14 +34323,14 @@ function checkTokens(ctx, snapshot, pages) {
33517
34323
  const maps = [n.styleProps, ...Object.values(n.stateStyles ?? {}), ...Object.values(n.responsive ?? {}).map(l => l?.styleProps)];
33518
34324
  const literal = maps.some(map => Object.entries(map ?? {}).some(([k, v]) => COLOUR_TRAITS.test(k) && LITERAL_COLOUR.test(String(v)) && !(k === 'borderColor' && n.styleProps['borderWidth'] === '0px')));
33519
34325
  if (literal)
33520
- add(ctx, SiteFindingCode.LiteralColour, 'An element paints a fixed colour, so a new look will not reach it.', { ...where, nodeId: n.id });
34326
+ add(ctx, SiteFindingCode.LiteralColour, null, { ...where, nodeId: n.id });
33521
34327
  });
33522
34328
  }
33523
34329
  function checkActions(ctx, snapshot, pages) {
33524
34330
  const routeExists = (route) => typeof route === 'string' && ctx.routes.some(r => routeMatches(r, route));
33525
34331
  eachNode(snapshot, pages, (n, where) => {
33526
34332
  if (LINKING_TYPES.has(n.type) && n.props['linkType'] === PAGE_LINK && !routeExists(n.props['pageRoute'])) {
33527
- add(ctx, SiteFindingCode.DeadLink, `"${String(n.props['label'] ?? n.props['content'] ?? n.label ?? n.type)}" links to ${String(n.props['pageRoute'] || 'no page')}, which is not a page of the site.`, { ...where, nodeId: n.id });
34333
+ add(ctx, SiteFindingCode.DeadLink, deadLinkParams(String(n.props['label'] ?? n.props['content'] ?? n.label ?? n.type), String(n.props['pageRoute'] ?? '')), { ...where, nodeId: n.id });
33528
34334
  }
33529
34335
  for (const ix of (n.interactions ?? [])) {
33530
34336
  for (const action of ix?.actions ?? []) {
@@ -33537,17 +34343,17 @@ function checkActions(ctx, snapshot, pages) {
33537
34343
  if (descriptor.target?.required && action.target !== SELF) {
33538
34344
  const targetType = action.target ? ctx.nodeIds.get(action.target) : undefined;
33539
34345
  if (!targetType || (types && !types.includes(targetType))) {
33540
- add(ctx, SiteFindingCode.DeadDialogTarget, `"${n.label ?? n.type}" opens something that is no longer on the site.`, { ...where, nodeId: n.id });
34346
+ add(ctx, SiteFindingCode.DeadDialogTarget, { label: String(n.label ?? n.type) }, { ...where, nodeId: n.id });
33541
34347
  }
33542
34348
  }
33543
34349
  if (action.type === 'navigate' && action.params?.['navigateTo'] === PAGE_LINK && !routeExists(action.params?.['page'])) {
33544
- add(ctx, SiteFindingCode.DeadLink, `"${n.label ?? n.type}" goes to a page the site does not have.`, { ...where, nodeId: n.id });
34350
+ add(ctx, SiteFindingCode.DeadLink, { variant: 'action', label: String(n.label ?? n.type) }, { ...where, nodeId: n.id });
33545
34351
  }
33546
34352
  // A connector the snapshot does not say is usable is not: unknown is never "fine".
33547
34353
  const connectors = descriptor.connector ? { [descriptor.connector]: snapshot.connectors[descriptor.connector] === true } : {};
33548
34354
  const availability = resolveActionAvailability(descriptor, { connectors });
33549
34355
  if (availability.state === 'connector-missing') {
33550
- add(ctx, SiteFindingCode.ActionNeedsConnector, `"${n.label ?? n.type}" needs ${availability.connector} connected.`, { ...where, nodeId: n.id });
34356
+ add(ctx, SiteFindingCode.ActionNeedsConnector, { label: String(n.label ?? n.type), connector: String(availability.connector) }, { ...where, nodeId: n.id });
33551
34357
  }
33552
34358
  }
33553
34359
  }
@@ -34980,7 +35786,7 @@ function listPanelRows(mix, ctx) {
34980
35786
  value: listMixValue(mix, k),
34981
35787
  words: listBuiltWords(k).map(word => ({
34982
35788
  word,
34983
- meaning: listMeaning(k, word),
35789
+ meaning: listMeaning(k, word, ctx.locale),
34984
35790
  pro: listWordTier(k, word) === 'pro',
34985
35791
  mouse: k === HOVER,
34986
35792
  refusal: listWordRefusal(k, word, ctx.shape, ctx.tier, ctx.never),
@@ -35016,15 +35822,20 @@ function pickListWord(mix, k, word, ctx) {
35016
35822
  const refusal = listWordRefusal(k, word, ctx.shape, ctx.tier, ctx.never);
35017
35823
  const adding = !(k === 'move' || k === 'hover') || !mix[k].includes(word);
35018
35824
  if (refusal && adding) {
35019
- return { mix, said: [], refused: [{ code: LayoutIssueCode.Value, path: `list.${k}`, message: `${k} "${word}": ${refusal}` }] };
35825
+ return { mix, said: [], words: [], refused: [{ code: LayoutIssueCode.Value, path: `list.${k}`, message: `${k} "${word}": ${refusal}` }] };
35020
35826
  }
35021
35827
  const next = withListWord(mix, k, word);
35022
35828
  const issues = checkList(next, ctx.shape, 'list', ctx.never, { tier: ctx.tier });
35023
35829
  const refused = issues.filter(i => !i.mend);
35024
35830
  if (refused.length)
35025
- return { mix, said: [], refused };
35831
+ return { mix, said: [], words: [], refused };
35026
35832
  const mend = issues.map(i => i.mend).find(m => m?.kind === LayoutMendKind.List);
35027
- return { mix: mend?.kind === LayoutMendKind.List ? mend.mix : next, said: issues.map(i => i.message), refused: [] };
35833
+ return {
35834
+ mix: mend?.kind === LayoutMendKind.List ? mend.mix : next,
35835
+ said: issues.map(i => i.message),
35836
+ words: issues.flatMap(i => (i.words ? [i.words] : [])),
35837
+ refused: [],
35838
+ };
35028
35839
  }
35029
35840
 
35030
35841
  /**
@@ -36248,5 +37059,5 @@ function siteGlobalsOf(globals) {
36248
37059
  * Generated bundle index. Do not edit.
36249
37060
  */
36250
37061
 
36251
- 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_COMPOSED_PAGE_LEAN_TOKENS, 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, BASELINE_WORDS_HE, BODY_TOKEN, BUILD_STEPS, BUTTON_LINK_PROPS, BaselineRole, BindScope, BodyIngredient, BodyMixError, BodyRepairCode, BodyRhythm, BodySeam, BodySectionWord, BodyTexture, BuildNoticeCode, BuildStep, CARRIED_BUTTON_STYLES, CARRY_LAYER_KINDS, CARRY_PHOTO_KINDS, CARRY_PROMPT_QUOTE, CARRY_WHOLE_LAYER_KINDS, CONTENT_ROLE_MEANINGS, COPY_OUT, CREDITS_PER_USD, CardBindTarget, CarryBlockKind, CarryKeptReason, CarryKind, CarryReferenceVia, CheckSeverity, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, DANGLING_LINK_CODES, DEFAULT_FOOTER_PATTERN, DEFAULT_GENERATION_TIER, DEFAULT_HEADER_PATTERN, DEFAULT_PHONE_MENU_BREAKPOINT, DEFAULT_SITE_LOCALE, 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, FooterRole, GRAMMAR_TOO_LARGE_MESSAGE, GenerationTier, GlobalSlot, GroundTone, HAND_PAGE_KEY_PREFIX, HEADER_TOKEN, HEBREW_PREFIXES, HeaderAction, HeaderArrange, HeaderIngredient, HeaderMixError, HeaderPages, HeaderRepairCode, HeaderReplacedKind, IMPRINT_COUNTRIES, ISRAEL, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptPagesChoice, KeptReason, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_COLUMN_MENDED, LAYOUT_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_LIST_TOKEN, LAYOUT_MIX_OFFERED, LAYOUT_MIX_OFFERED_AWARD, LAYOUT_MIX_WORDS, LAYOUT_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_DECK_MAX_PX, LIST_DECK_SHARE, LIST_FRAME_STYLE_KEYS, LIST_INGREDIENTS, LIST_ITEM_MIN_PX, LIST_LONG_WORDS, LIST_RHYTHMS, LIST_ROLE_WORDS, LIST_RULES, LIST_TABLE, LIST_WORDS_BESIDE_RULE, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutListArrange, LayoutListArrive, LayoutListHover, LayoutListHow, LayoutListItem, LayoutListMove, LayoutListPhone, LayoutListRole, LayoutListSide, LayoutListWho, LayoutMendKind, LayoutMixIngredient, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutScrubRefusal, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, LegalBlocks, LegalFact, LegalKind, ListWordRefusal, MAX_SITE_PICTURES, MOTION_TRIGGERS, MOVING_OPENING_MEDIA, MenuSide, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, ONCE_ENTRANCE_MS, OPENING_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, SCRUBBED_ENTRANCE, SCRUB_UNTIL, SHOP_CART_BUTTON_ID, SHOP_CART_DRAWER_ID, SHOP_FIELDS, SHOP_LATEST_LIMIT, SHOP_LIST_LIMIT, SHOP_NEED, SHOP_ONLY_CONTENT_ROLES, SHOP_PRODUCTS_MAX, SHOP_ROLES, SHOP_SLUG_FIELD, SHOWCASE_FILM, SHOWCASE_SHOP, SIGN_IN_DIALOG_ID, SITE_CHECKS, SITE_FACT_LABELS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PAGE_MOVED_ASIDE, SITE_PATTERNS, SITE_PLAN_VERSION, SITE_TEMPLATES, SPEC_SITE_ARCHETYPES, SPEC_SITE_COPY_LENGTHS, SPEC_SITE_DENSITY_COPY, SPEC_SITE_FACTS, SPEC_SITE_FOOTER_PARTS, SPEC_SITE_HEADER_PARTS, SPEC_SITE_LAYOUT, SPEC_SITE_LIBRARY, SPEC_SITE_LOCALES, SPEC_SITE_NEED_IDS, SPEC_SITE_PATTERNS, SPEC_SITE_PICTURE_NEVER, SPEC_SITE_PICTURE_WORLDS, SPEC_SITE_PLAN_SHAPE, SPEC_SITE_REQUIRED_ROLES, SPEC_SITE_ROLES, SPEC_SITE_TEMPLATES, STAMPED_PAGE_ARCHETYPES, START_QUOTE_STEPS, START_QUOTE_TOKENS, STOCK_FAMILIES, STOCK_FAMILY_INTENTS, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MIN_KEPT, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STORE_CONTACT_CODES, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, SWAP_CARRY_KINDS, ScrimLevel, ScrubUntil, SectionFallbackLastResort, SectionMaker, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePageMaker, SitePageStatus, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StagedPageReason, StagedPageWay, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, 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, bentoFill, blocksPublish, bodyMeaning, bodyMix, bodyMixFromWords, bodyMixOfPlan, bodyMixWords, bodySeamClass, bodySeamShape, bodyTokenOf, bodyWireWords, bodyWordDrawn, bodyWordOffered, bodyWordTier, bodyWordWaits, bodyWords, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calmParts, calmUnder, canonicalNodeJson, canonicalValue, carryBlockOf, carryButtonLink, carryHandles, carryInto, carryKindOf, carryNotPlaced, checkAdditions, checkBody, checkCarry, checkFooter, checkHeader, checkLayout, checkList, checkOpening, chooseScrim, columnIssues, composablePage, composeContextOf, composeLayout, composeListFrame, composeNavHeader, composeOpening, composePresetForm, composeSection, composeSite, composedPagesMax, composedPagesShare, composerLeftovers, composingShare, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, copyOutInteraction, costUsd, countryLegalFacts, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeCarryForPrompt, describeInventoryForPrompt, describeListShape, describePlanData, describeShapeKey, distinctFooter, distinctHeader, drawnBodyMix, 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, groundToneOf, handPageKey, handPlanPage, harvestPage, hash53, headerAdvice, headerCompanions, headerContextOfPlan, headerGallery, headerGalleryIdOf, headerMeaning, headerMix, headerMixFromWords, headerMixOfNavKind, headerMixOfPlan, headerMixValue, headerMixWords, headerPatternIdOf, headerRecipe, headerReferences, headerShape, headerSiteFor, headerTokenOf, headerTokenWords, headerWireWords, headerWordDrawn, headerWords, isActiveBuild, isAdditionKey, isHandPageKey, isLayoutRule, isLegalKind, isNonEmptyString, isPerItemPage, isPictureWorld, isPlainObject, isRedesignRun, isRtlLocale, isScrubbedEntrance, isSectionCarryHandle, isSectionStamp, isShopResource, isTemplateRoute, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsOffered, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutEntersOffered, layoutFlagsOffered, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBare, layoutListBinding, layoutListDrawnCols, layoutListPair, layoutListShapes, layoutListsContext, layoutLookChanges, layoutLookOf, layoutMixOffered, layoutMotionOf, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutScrubTakes, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, legalFactsOf, legalFormLine, legalKindBlocks, legalKindOfPage, legalKindRow, legalKindsFor, legalLabel, legalPageOf, legalRoute, legalTitle, listBelowPro, listBindingOfType, listBuiltWords, listColumns, listDetailOf, listIngredientWords, listMeaning, listMixFromWords, listMixValue, listMixWords, listNeverIsEmpty, listOverhang, listPanelRows, listShapeOfType, listTokenOf, listTokensOf, listWait, listWordOffered, listWordRefusal, listWordTier, listWords, luminanceOf, measureLayout, mendCarry, mendLayout, mendNotices, menuAtEveryWidth, menuLookOf, menuWords, modelCanDo, moveBarItem, moveEntrance, namedFooterMix, namedHeaderMix, namedOpeningMix, navHeaderContext, navPages, navShapeBreakpoint, navShapeOf, nearestHeaderMix, nestSitePages, nextSourceOf, nodeBindPaths, offeredForTier, onceEntrance, 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, outwardCredits, ownPhotoFit, ownerContentInto, paddingKeepingClear, pageBuildSource, pageListIssues, pageShowsShop, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pickListWord, pictureAspect, pictureItemsOf, 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, planWireShape, planWordIssues, previousRoute, pricesIn, publishRefusal, publishVerdict, quietMoveEntrance, readHeader, readOpening, readyMadeColumn, recipeListBinds, recomposeAsks, redesignAdditionsJsonSchema, redesignBackOpen, redesignBackUntil, redesignDiscardable, redesignPreviousChoices, refitBuiltPage, refitPage, refreshSectionStamps, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, rewordStoreGlobal, rhythmIssues, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, scrubEntranceStamps, scrubTokenOf, scrubUntilChoice, scrubbedEntrance, scrubsEntrance, 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, siteFactLabel, siteGlobalsOf, siteNavPages, sitePages, sitePagesOf, siteParentRoute, siteSells, siteTreeOf, siteTreeOfPlan, slotBudget, splitCssValue, splitSide, stampHeaderMix, stampOpeningMix, stampOpeningMotion, stampSection, startComposingShare, startQuote, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, storedHeaderMix, storedOpeningMix, strictSchemaComplexity, strictSchemaRefusal, swapParts, tierOf, tierOffers, toneOf, typesOfAddition, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkSerialized, wearBodyMix, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withAdditions, withCarriedText, withComposedPages, withDerivedSources, withDistinctFooter, withDistinctHeader, withHeaderWord, withListWord, withOpeningWord, withShownList, wordPattern, wordsOverPhotos, wordsOverPicture, wornHeaderOfPlan, writtenTexts };
37062
+ 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_COMPOSED_PAGE_LEAN_TOKENS, 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, BASELINE_WORDS_HE, BODY_TOKEN, BUILD_STEPS, BUTTON_LINK_PROPS, BaselineRole, BindScope, BodyIngredient, BodyMixError, BodyRepairCode, BodyRhythm, BodySeam, BodySectionWord, BodyTexture, BuildNoticeCode, BuildStep, CARRIED_BUTTON_STYLES, CARRY_LAYER_KINDS, CARRY_PHOTO_KINDS, CARRY_PROMPT_QUOTE, CARRY_WHOLE_LAYER_KINDS, CONTENT_ROLE_MEANINGS, COPY_OUT, CREDITS_PER_USD, CardBindTarget, CarryBlockKind, CarryKeptReason, CarryKind, CarryReferenceVia, CheckSeverity, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, DANGLING_LINK_CODES, DEFAULT_FOOTER_PATTERN, DEFAULT_GENERATION_TIER, DEFAULT_HEADER_PATTERN, DEFAULT_PHONE_MENU_BREAKPOINT, DEFAULT_SITE_LOCALE, 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, FindingGrouping, FooterArrange, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterRepairCode, FooterRole, GRAMMAR_TOO_LARGE_MESSAGE, GenerationTier, GlobalSlot, GroundTone, HAND_PAGE_KEY_PREFIX, HEADER_TOKEN, HEBREW_PREFIXES, HeaderAction, HeaderArrange, HeaderIngredient, HeaderMixError, HeaderPages, HeaderRepairCode, HeaderReplacedKind, IMPRINT_COUNTRIES, ISRAEL, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptPagesChoice, KeptReason, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_COLUMN_MENDED, LAYOUT_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_LIST_TOKEN, LAYOUT_MIX_OFFERED, LAYOUT_MIX_OFFERED_AWARD, LAYOUT_MIX_WORDS, LAYOUT_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_DECK_MAX_PX, LIST_DECK_SHARE, LIST_FRAME_STYLE_KEYS, LIST_INGREDIENTS, LIST_ITEM_MIN_PX, LIST_LONG_WORDS, LIST_RHYTHMS, LIST_ROLE_WORDS, LIST_RULES, LIST_SAY_WORDS, LIST_TABLE, LIST_WORDS_BESIDE_RULE, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutListArrange, LayoutListArrive, LayoutListHover, LayoutListHow, LayoutListItem, LayoutListMove, LayoutListPhone, LayoutListRole, LayoutListSide, LayoutListWho, LayoutMendKind, LayoutMixIngredient, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutScrubRefusal, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, LegalBlocks, LegalFact, LegalKind, ListPartChange, ListPartOutcome, ListSayCode, ListWordRefusal, MAX_SITE_PICTURES, MOTION_TRIGGERS, MOVING_OPENING_MEDIA, MenuSide, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, ONCE_ENTRANCE_MS, OPENING_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, SCRUBBED_ENTRANCE, SCRUB_UNTIL, SHOP_CART_BUTTON_ID, SHOP_CART_DRAWER_ID, SHOP_FIELDS, SHOP_LATEST_LIMIT, SHOP_LIST_LIMIT, SHOP_NEED, SHOP_ONLY_CONTENT_ROLES, SHOP_PRODUCTS_MAX, SHOP_ROLES, SHOP_SLUG_FIELD, SHOWCASE_FILM, SHOWCASE_SHOP, SIGN_IN_DIALOG_ID, SITE_CHECKS, SITE_FACT_LABELS, SITE_FINDING_WORDS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PAGE_MOVED_ASIDE, SITE_PATTERNS, SITE_PLAN_VERSION, SITE_TEMPLATES, SPEC_SITE_ARCHETYPES, SPEC_SITE_COPY_LENGTHS, SPEC_SITE_DENSITY_COPY, SPEC_SITE_FACTS, SPEC_SITE_FOOTER_PARTS, SPEC_SITE_HEADER_PARTS, SPEC_SITE_LAYOUT, SPEC_SITE_LIBRARY, SPEC_SITE_LOCALES, SPEC_SITE_NEED_IDS, SPEC_SITE_PATTERNS, SPEC_SITE_PICTURE_NEVER, SPEC_SITE_PICTURE_WORLDS, SPEC_SITE_PLAN_SHAPE, SPEC_SITE_REQUIRED_ROLES, SPEC_SITE_ROLES, SPEC_SITE_TEMPLATES, STAMPED_PAGE_ARCHETYPES, START_QUOTE_STEPS, START_QUOTE_TOKENS, STOCK_FAMILIES, STOCK_FAMILY_INTENTS, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MIN_KEPT, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STORE_CONTACT_CODES, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, SWAP_CARRY_KINDS, ScrimLevel, ScrubUntil, SectionFallbackLastResort, SectionMaker, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePageMaker, SitePageStatus, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StagedPageReason, StagedPageWay, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, 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, bentoFill, bentoFillsParams, blocksPublish, bodyMeaning, bodyMix, bodyMixFromWords, bodyMixOfPlan, bodyMixWords, bodySeamClass, bodySeamShape, bodyTokenOf, bodyWireWords, bodyWordDrawn, bodyWordOffered, bodyWordTier, bodyWordWaits, bodyWords, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calmParts, calmUnder, canonicalNodeJson, canonicalValue, carryBlockOf, carryButtonLink, carryHandles, carryInto, carryKindOf, carryNotPlaced, checkAdditions, checkBody, checkCarry, checkFooter, checkHeader, checkLayout, checkList, checkOpening, chooseScrim, columnIssues, composablePage, composeContextOf, composeLayout, composeListFrame, composeNavHeader, composeOpening, composePresetForm, composeSection, composeSite, composedPagesMax, composedPagesShare, composerLeftovers, composingShare, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, copyOutInteraction, costUsd, countryLegalFacts, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeCarryForPrompt, describeInventoryForPrompt, describeListShape, describePlanData, describeShapeKey, distinctFooter, distinctHeader, drawnBodyMix, 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, findingMessageOf, findingSentence, fingerprintOf, fingerprintOfPlanPage, footerMeaning, footerMix, footerMixFromWords, footerMixOfPlan, footerMixWords, footerPattern, footerPatternIdOf, footerReferences, footerTableWords, footerTokenOf, footerTokenWords, footerWait, footerWireWords, footerWords, formAsksPersonalData, formLegalFacts, frameWords, generationTierOf, groundToneOf, groupSentence, groupSiteFindings, handPageKey, handPlanPage, harvestPage, hash53, headerAdvice, headerCompanions, headerContextOfPlan, headerGallery, headerGalleryIdOf, headerMeaning, headerMix, headerMixFromWords, headerMixOfNavKind, headerMixOfPlan, headerMixValue, headerMixWords, headerPatternIdOf, headerRecipe, headerReferences, headerShape, headerSiteFor, headerTokenOf, headerTokenWords, headerWireWords, headerWordDrawn, headerWords, isActiveBuild, isAdditionKey, isHandPageKey, isLayoutRule, isLegalKind, isNonEmptyString, isPerItemPage, isPictureWorld, isPlainObject, isRedesignRun, isRtlLocale, isScrubbedEntrance, isSectionCarryHandle, isSectionStamp, isShopResource, isTemplateRoute, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, keepListParts, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsOffered, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutEntersOffered, layoutFlagsOffered, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBare, layoutListBinding, layoutListDrawnCols, layoutListPair, layoutListShapes, layoutListsContext, layoutLookChanges, layoutLookOf, layoutMixOffered, layoutMotionOf, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutScrubTakes, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, legalFactsOf, legalFormLine, legalKindBlocks, legalKindOfPage, legalKindRow, legalKindsFor, legalLabel, legalPageOf, legalRoute, legalTitle, listBelowPro, listBindingOfType, listBuiltWords, listColumns, listDetailOf, listIngredientWords, listMeaning, listMixFromWords, listMixOfFrame, listMixValue, listMixWords, listNeverIsEmpty, listOverhang, listPanelRows, listSaidSentence, listSentence, listShapeOfType, listTokenOf, listTokensOf, listWait, listWordOffered, listWordRef, listWordRefs, listWordRefusal, listWordTier, listWords, luminanceOf, measureLayout, mendCarry, mendLayout, mendNotices, menuAtEveryWidth, menuLookOf, menuWords, modelCanDo, moveBarItem, moveEntrance, namedFooterMix, namedHeaderMix, namedOpeningMix, navHeaderContext, navPages, navShapeBreakpoint, navShapeOf, nearestHeaderMix, nestSitePages, nextSourceOf, nodeBindPaths, offeredForTier, onceEntrance, 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, outwardCredits, ownPhotoFit, ownerContentInto, paddingKeepingClear, pageBuildSource, pageListIssues, pageShowsShop, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pickListWord, pictureAspect, pictureItemsOf, 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, planWireShape, planWordIssues, previousRoute, pricesIn, publishRefusal, publishVerdict, quietMoveEntrance, readHeader, readOpening, readyMadeColumn, recipeListBinds, recomposeAsks, redesignAdditionsJsonSchema, redesignBackOpen, redesignBackUntil, redesignDiscardable, redesignPreviousChoices, refitBuiltPage, refitPage, refreshSectionStamps, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, rewordStoreGlobal, rhythmIssues, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, scrubEntranceStamps, scrubTokenOf, scrubUntilChoice, scrubbedEntrance, scrubsEntrance, 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, siteFactLabel, siteGlobalsOf, siteNavPages, sitePages, sitePagesOf, siteParentRoute, siteSells, siteTreeOf, siteTreeOfPlan, slotBudget, splitCssValue, splitSide, stampHeaderMix, stampOpeningMix, stampOpeningMotion, stampSection, startComposingShare, startQuote, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, storedHeaderMix, storedOpeningMix, strictSchemaComplexity, strictSchemaRefusal, swapParts, tierOf, tierOffers, toneOf, typesOfAddition, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkSerialized, wearBodyMix, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withAdditions, withCarriedText, withComposedPages, withDerivedSources, withDistinctFooter, withDistinctHeader, withHeaderWord, withListWord, withOpeningWord, withShownList, wordPattern, wordsOverPhotos, wordsOverPicture, wornHeaderOfPlan, writtenTexts };
36252
37063
  //# sourceMappingURL=vectoriox-iox-ui-generation-core.mjs.map