efficient-web-builder 55.1.0 → 55.2.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.
Files changed (69) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/editor/lib/document/block-source-fields.js +1 -1
  3. package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
  4. package/dist/editor/lib/document/blocks/general/Footprint/fields.js +1 -1
  5. package/dist/editor/lib/document/blocks/general/Logos/fields.js +1 -1
  6. package/dist/editor/lib/document/blocks/general/index.d.ts +2 -2
  7. package/dist/editor/lib/document/field-groups.js +1 -1
  8. package/dist/editor/lib/document/part-anchors.js +1 -1
  9. package/dist/editor/lib/host-document-bridge.d.ts +4 -1
  10. package/dist/editor/lib/host-document-bridge.js +1 -1
  11. package/dist/editor/lib/sections/text-layouts.d.ts +2 -1
  12. package/dist/editor/lib/sections/text-layouts.js +1 -1
  13. package/dist/format/lib/content/block-sources.d.ts +6 -1
  14. package/dist/format/lib/content/block-sources.js +1 -1
  15. package/dist/format/lib/content/box-shape.d.ts +1 -1
  16. package/dist/format/lib/content/card-state.d.ts +6 -0
  17. package/dist/format/lib/content/card-state.js +1 -1
  18. package/dist/format/lib/content/card-template.d.ts +8 -0
  19. package/dist/format/lib/content/card-template.js +1 -1
  20. package/dist/format/lib/content/footprint.d.ts +1 -0
  21. package/dist/format/lib/content/footprint.js +1 -1
  22. package/dist/format/lib/content/view-lines.d.ts +1 -1
  23. package/dist/format/lib/document/blocks/general/CardList/meta.js +1 -1
  24. package/dist/format/lib/document/blocks/general/Footprint/card-seed.d.ts +2 -0
  25. package/dist/format/lib/document/blocks/general/Footprint/card-seed.js +1 -0
  26. package/dist/format/lib/document/blocks/general/Footprint/meta.d.ts +6 -0
  27. package/dist/format/lib/document/blocks/general/Footprint/meta.js +2 -2
  28. package/dist/format/lib/document/blocks/general/Logos/meta.d.ts +7 -0
  29. package/dist/format/lib/document/blocks/general/Logos/meta.js +1 -1
  30. package/dist/format/lib/document/section-catalog.js +6 -2
  31. package/dist/format/lib/editor-words-kept.d.ts +1 -0
  32. package/dist/format/lib/editor-words-kept.js +1 -0
  33. package/dist/format/lib/fonts.js +1 -1
  34. package/dist/render/components/CardRowContext.d.ts +3 -2
  35. package/dist/render/components/CardRowContext.js +1 -1
  36. package/dist/render/components/Flex.d.ts +2 -1
  37. package/dist/render/components/Flex.js +1 -1
  38. package/dist/render/components/Footprint.d.ts +4 -1
  39. package/dist/render/components/Footprint.js +1 -1
  40. package/dist/render/components/HeroPictures.d.ts +2 -2
  41. package/dist/render/components/PartStyledKind.d.ts +2 -1
  42. package/dist/render/components/PartStyledKind.js +1 -1
  43. package/dist/render/components/Text.d.ts +3 -1
  44. package/dist/render/components/Text.js +1 -1
  45. package/dist/render/lib/content/box-shared-columns.d.ts +6 -0
  46. package/dist/render/lib/content/box-shared-columns.js +1 -1
  47. package/dist/render/lib/document/blocks/general/ButtonBlock/render.js +1 -1
  48. package/dist/render/lib/document/blocks/general/CardList/render.js +1 -1
  49. package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
  50. package/dist/render/lib/document/blocks/general/Footprint/render.js +1 -1
  51. package/dist/render/lib/document/blocks/general/Logos/render.js +1 -1
  52. package/dist/render/lib/document/blocks/general/Text/render.js +1 -1
  53. package/dist/render/lib/document/blocks/general/section-to-box-rows-fitment.d.ts +2 -0
  54. package/dist/render/lib/document/blocks/general/section-to-box-rows-fitment.js +1 -0
  55. package/dist/render/lib/document/blocks/general/section-to-box-rows-forms.d.ts +2 -0
  56. package/dist/render/lib/document/blocks/general/section-to-box-rows-forms.js +1 -0
  57. package/dist/render/lib/document/blocks/general/section-to-box-rows-head.d.ts +2 -0
  58. package/dist/render/lib/document/blocks/general/section-to-box-rows-head.js +1 -1
  59. package/dist/render/lib/document/blocks/general/section-to-box-rows-logos.d.ts +1 -0
  60. package/dist/render/lib/document/blocks/general/section-to-box-rows-logos.js +1 -1
  61. package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
  62. package/dist/render/lib/document/hero-media-parts.d.ts +2 -2
  63. package/dist/render/lib/document/part-styles.js +2 -2
  64. package/dist/render/lib/document/passes/clickable-parts.js +1 -1
  65. package/dist/render/lib/document/text-parts.d.ts +2 -1
  66. package/dist/render/lib/document/text-parts.js +1 -1
  67. package/dist/render/lib/sections/section-to-box.d.ts +2 -0
  68. package/dist/render/lib/sections/section-to-box.js +1 -1
  69. package/package.json +1 -1
@@ -4,4 +4,10 @@ export declare const FOOTPRINT_PH: {
4
4
  heading: string;
5
5
  tagline: string;
6
6
  };
7
+ export declare const FootprintSlots: {
8
+ template: {
9
+ type: "slot";
10
+ allow: string[];
11
+ };
12
+ };
7
13
  export declare const FootprintMeta: BlockMeta;
@@ -1,2 +1,2 @@
1
- import{FOOTPRINT_DEFAULTS as o}from"../../../../content/footprint.js";import{PH as e}from"../../placeholders.js";const i={sectionNumber:e.sectionNumber,heading:`${e.heading}
2
- *${e.accent}*`,tagline:e.body},n={label:"Locations Map",defaultProps:{sectionNumber:"",heading:"",tagline:"",offices:[],mapTheme:o.mapTheme,padTop:120,padBottom:120,source:"typed",search:!1,searchHint:"",noMatchText:"",listPosition:"below",showDistance:!0}};export{i as FOOTPRINT_PH,n as FootprintMeta};
1
+ import{FOOTPRINT_DEFAULTS as t}from"../../../../content/footprint.js";import{PH as e}from"../../placeholders.js";import{cardTemplateSlot as o}from"../../../../content/card-template.js";const s={sectionNumber:e.sectionNumber,heading:`${e.heading}
2
+ *${e.accent}*`,tagline:e.body},a={template:o()},p={label:"Locations Map",fields:a,defaultProps:{sectionNumber:"",heading:"",tagline:"",offices:[],mapTheme:t.mapTheme,padTop:120,padBottom:120,source:"typed",search:!1,searchHint:"",noMatchText:"",listPosition:"below",showDistance:!0}};export{s as FOOTPRINT_PH,p as FootprintMeta,a as FootprintSlots};
@@ -1,4 +1,11 @@
1
1
  import type { BlockMeta } from "../../block-types.js";
2
+ export declare const LOGOS_PH: {
3
+ heading: string;
4
+ };
5
+ export declare const logosScaffoldItems: () => {
6
+ src: string;
7
+ alt: string;
8
+ }[];
2
9
  export declare const LogosSlots: {
3
10
  logos: {
4
11
  type: "slot";
@@ -1 +1 @@
1
- const o={logos:{type:"slot",allow:["LogoBlock"]}},t={label:"Logos",fields:o,defaultProps:{items:[],contained:!0}};export{t as LogosMeta,o as LogosSlots};
1
+ import{say as o}from"../../../../editor-words.js";const e={heading:"Trusted by *teams worldwide*"},l=()=>[{src:"",alt:o("Logo one")},{src:"",alt:o("Logo two")},{src:"",alt:o("Logo three")},{src:"",alt:o("Logo four")},{src:"",alt:o("Logo five")}],t={logos:{type:"slot",allow:["LogoBlock"]}},r={label:"Logos",fields:t,defaultProps:{items:[],contained:!0}};export{e as LOGOS_PH,r as LogosMeta,t as LogosSlots,l as logosScaffoldItems};
@@ -1,4 +1,4 @@
1
- const h=["general","commerce","service"],o=[{key:"openers",title:"Hero & intros",defaultExpanded:!0,templateable:!0,sections:[{type:"Hero",label:"Hero",set:"general"},{type:"HeroSingle",label:"Hero Single",set:"general"},{type:"IntroBleed",label:"Scroll-Over Text",set:"general"}]},{key:"shop",title:"Shop & galleries",templateable:!0,sections:[{type:"Collections",label:"Collections",set:"commerce"},{type:"AlloyWheelsListing",label:"List",set:"commerce"},{type:"CatalogFilterBar",label:"Catalog Filter Bar",set:"commerce"},{type:"ProductGrid",label:"Product Grid",set:"commerce"},{type:"FitmentFinder",label:"Fitment Form",set:"commerce"},{type:"Gallery",label:"Tabbed Gallery",set:"commerce"},{type:"GalleryB",label:"Customer Photo Grid",set:"commerce"}]},{key:"product",title:"Product page",templateable:!0,sections:[{type:"ProductHero",label:"Product Hero",set:"commerce"},{type:"SpecTable",label:"Spec Table",set:"commerce"},{type:"ProcessSteps",label:"Image & Text Columns",set:"general"},{type:"DetailRows",label:"Feature Rows",set:"commerce"},{type:"FitmentTable",label:"Fitment Table",set:"commerce"},{type:"TyreSizes",label:"Tyre Sizes",set:"commerce"},{type:"TyreFitment",label:"Tyre Fitment Form",set:"commerce"},{type:"EuTyreLabel",label:"EU Tyre Label",set:"commerce"},{type:"RelatedProducts",label:"Related Products",set:"commerce"},{type:"BundleOffer",label:"Bundle Products",set:"commerce"}]},{key:"checkout",title:"Checkout & ordering",templateable:!0,sections:[{type:"OrderSummary",label:"Order Table",set:"general"},{type:"PaymentBadges",label:"Payment Methods",set:"general"},{type:"CheckoutCTA",label:"Ready-to-Order Banner",set:"commerce"}]},{key:"about",title:"About & brand story",templateable:!0,sections:[{type:"Footprint",label:"Locations Map",set:"general"}]},{key:"content",title:"Text & content",templateable:!0,sections:[{type:"Prose",label:"Editorial Text",set:"general"},{type:"ParagraphsA",label:"Lead Text",set:"general"},{type:"Cards",label:"Cards",set:"general"}]},{key:"proof",title:"Stats & social proof",templateable:!0,sections:[{type:"Stats",label:"Stats",set:"general"},{type:"StatsParagraph",label:"Stats with Text",set:"general"},{type:"Chart",label:"Chart",set:"general"},{type:"Mockup",label:"Mockup Card",set:"general"},{type:"Testimonials",label:"Testimonials",set:"general"},{type:"Reviews",label:"Reviews",set:"service"},{type:"Logos",label:"Logos",set:"general"}]},{key:"promo",title:"Promotions & sign-ups",templateable:!0,sections:[{type:"Banner",label:"Banner",set:"general"},{type:"TitleWithButtons",label:"Call-to-Action Heading",set:"general"},{type:"Countdown",label:"Countdown",set:"general"}]},{key:"blog",title:"Blog & journal",templateable:!0,sections:[{type:"Masthead",label:"Issue Header",set:"general"},{type:"FeaturedCover",label:"Feature Banner",set:"general"},{type:"LongRead",label:"Article Text",set:"general"},{type:"Events",label:"Latest Posts",set:"service"}]},{key:"navigation",title:"Navigation & wayfinding",templateable:!0,sections:[{type:"Breadcrumb",label:"Breadcrumb",set:"general"},{type:"CategoryBar",label:"Category Bar",set:"general"},{type:"DocTabs",label:"Document Tabs",set:"general"}]},{key:"legal",title:"Legal & documents",templateable:!0,sections:[{type:"DocMasthead",label:"Document Header",set:"general"},{type:"DocBody",label:"Document Text",set:"general"}]},{key:"contact",title:"Contact, FAQ & forms",templateable:!0,sections:[{type:"FAQ",label:"Q&A",set:"general"},{type:"ContactRouting",label:"Contact Form",set:"service"},{type:"ContactLocations",label:"Contact / Locations",set:"general"},{type:"SubmitBuild",label:"Photo Submission Form",set:"service"},{type:"ReviewForm",label:"Review Form",set:"service"},{type:"Form",label:"Form",set:"service"},{type:"AppointmentBooking",label:"Booking Form",set:"service"}]},{key:"structure",title:"Layout, structure & embeds",templateable:!1,sections:[{type:"SectionHeader",label:"Section Header",set:"general"},{type:"Flex",label:"Box",set:"general"},{type:"Divider",label:"Divider",set:"general"},{type:"CustomHTML",label:"Custom HTML",set:"general"}]},{key:"layouts",title:"Layouts",templateable:!0,sections:[{type:"Manifesto",label:"Brand Text",set:"general"},{type:"Split",label:"Image & Text Split",set:"general"},{type:"Subscribe",label:"Signup Form",set:"service"},{type:"Ticker",label:"Scrolling Bar",set:"general"},{type:"SpecStrip",label:"Spec Strip",set:"general"},{type:"TimelineTrack",label:"Milestone Timeline",set:"general"},{type:"Timeline",label:"Story Timeline",set:"general"}]}];function p(){return Object.fromEntries(o.map(e=>[e.key,{title:e.title,components:e.sections.map(t=>t.type),...e.defaultExpanded?{defaultExpanded:!0}:{}}]))}const i={Grid:'Lewis, 2026-09-14: Box and Grid duplicate each other and it feels confusing. 2026-09-15 he chose the order: give Box uneven widths FIRST, then merge Grid into Box. Shown three ways to pick the widths (mockup "Uneven Box Widths"), he chose A — shape pictures on the Box\'s `Block widths` row, the same "a row is a shape, pick a picture of it" rule he set for the photo wall on 2026-09-07.\n\nWHAT REPLACES IT: a Box set to One row, with `Block widths` at Equal or Custom, and its own `Columns` in the Phone view. Measured on PRODUCTION 2026-09-16 ~09:28 AEST (database `efficient-system`, all 10 tenant schemas, 128 storefront pages, both `layout` and `published_layout` — 256 documents): 2 Grid nodes, and they are ONE Grid counted twice — the 9DIEM homepage on 9diem.com (`xtreme_mudder` schema), once as draft and once as published. It is top-level, holds three `ImageBlock`s at `columns` 3 — equal thirds — and NO block sets `Positions`. A Box draws that with `Block widths` at Equal.\n\n⚠️ THE COUNT MOVES; THE RULE MUST NOT DEPEND ON IT. This entry has already carried three different readings. A local-clone snapshot said no Grid used `Positions`. A PRODUCTION reading on 2026-09-15 ~13:15 AEST found 6 nodes on two sites, 4 of them spanned — hartesmetal.com.au homepage and about, 4 columns, spans 1 + 3. That one was TRUE when it was taken and stopped being true the same day: those two pages were rebuilt on Box (`Block widths: Bigger right`), and on 2026-09-16 they hold zero Grid nodes and are built from `Flex`. ⛔ So the rule is NOT "there are still N spanned Grids". NEVER delete the Grid component or its `gridSpan` handling, whatever a census says — Grid still renders, still edits, still drags, and a merchant may rebuild a page either way on any day. Re-run the census on production before anyone PROPOSES deleting either, and read any number written here as the reading of its own day, not as the state of the world.\n\nWHAT A MERCHANT LOSES: a new Grid, and with it a fixed "N per row" that wraps by itself past three across, and the per-block `Positions` number. Box wraps with `Wrap`, but by content width, not by a fixed count.\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT. Every page holding a Grid still renders through it and can still be edited, dragged and added to; no document is rewritten and NO MIGRATION RUNS — the owner redoes live sections himself.\n\n⚠️ AND IT STAYS DROPPABLE WHERE IT LIVES. The drop rule in lib/document/config.tsx read the nestable containers off the catalogue\'s `structure` row, so leaving the catalogue would have made every open slot — a Box included — refuse a Grid already stored inside one. `scripts/test-retired-grid-stays-editable.tsx` §3 pins it.',CompatibleTyres:'Lewis, 2026-09-09: "Do not bother counting. Delete Compatible Tyres and use the new one. The new one needs complete settings — it must have every setting our cards have." Shown three ways to finish it, he chose C: retire from the menu now, and take styling the card text as its own card.\n\nWHAT REPLACES IT: `RelatedProducts` with its `Show` dropdown set to "Tyres that fit this product". That block is the GENERIC relationship section from card 1128 — it knows nothing about wheels or tyres, it asks the registry for a relationship by name. The two have rendered through the SAME renderer (`DynamicRelatedProducts`) since that card; this one is the pre-registry one-off that was never removed.\n\n⚠️ THE SWAP WAS NOT SAFE UNTIL #1305, AND SAYING SO IS THE POINT. The first old-versus-new table put in front of the owner was WRONG. `DynamicRelatedProducts` returns EARLY on a tyre answer and draws this component, so the seven card settings, the head split and the Width control all stopped at that call — nine settings, measured NO EFFECT, on precisely the relationship that replaces this block. #1283 gave the new block the card settings, #1299 the head split and its own Width, #1305 carried all of it onto the tyre branch. Only then was the claim true.\n\nWHAT WAS MEASURED BEFORE RETIRING, four ways, because the premise decides the card:\n • settable text kinds (SECTION_TEXT_KINDS): both blocks ABSENT — the map holds only TimelineTrack and Footprint, both AUTHORED lists\n • read-only text regions: neither `components/CompatibleTyres` nor `components/TyreCard` stamps one\n • panel rows through resolveFields: this block 31, `RelatedProducts` 42. This block\'s only style-ish key is `_sStyle`, the bucket HEADER, not a control\n • head text (num/title/description) is authored on both, so `_partStyles` reaches it identically\nSo on the CARD runs the two are zero against zero — neither can style them — and everywhere else the new block is ahead. Styling those runs needs a section-level prop family and a paint path for DERIVED text, which no section has yet: a part is anchored by matching an AUTHORED prop\'s string against the DOM, and `lib/document/source-bound-parts` keeps hydrated copy unreachable on purpose so a merchant cannot type into a copy of a product name and lose it at the next sync. That is its own card, and `lib/sections/text-regions` is the read-only half that already ships.\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT, the same contract Subscribe, Split and SubscribeBlogs have. Every page holding a `CompatibleTyres` still renders through it, no published document is rewritten, and NO MIGRATION RUNS — the owner\'s standing ruling of 2026-09-05: he redoes live sections himself and deletes the old ones when he does. He also said explicitly not to count them first.\n\n⚠️ AND THIS COMPONENT IS LOAD-BEARING FOR ITS OWN REPLACEMENT: `DynamicRelatedProducts` draws it for EVERY tyre answer. Deleting it would blank the block that replaces it, not just the pages still holding this one.',Spacer:`Lewis, 2026-10-10 (section-merges.md group 19, approved): one Divider holds space and lines. Style = None (was Spacer) / Line / Stripes; the space above and below as number boxes. Retired by card [MERGE] Spacer Into Divider (2026-10-26).
1
+ const h=["general","commerce","service"],o=[{key:"openers",title:"Hero & intros",defaultExpanded:!0,templateable:!0,sections:[{type:"Hero",label:"Hero",set:"general"},{type:"HeroSingle",label:"Hero Single",set:"general"},{type:"IntroBleed",label:"Scroll-Over Text",set:"general"}]},{key:"shop",title:"Shop & galleries",templateable:!0,sections:[{type:"Collections",label:"Collections",set:"commerce"},{type:"AlloyWheelsListing",label:"List",set:"commerce"},{type:"CatalogFilterBar",label:"Catalog Filter Bar",set:"commerce"},{type:"ProductGrid",label:"Product Grid",set:"commerce"},{type:"FitmentFinder",label:"Fitment Form",set:"commerce"},{type:"Gallery",label:"Tabbed Gallery",set:"commerce"},{type:"GalleryB",label:"Customer Photo Grid",set:"commerce"}]},{key:"product",title:"Product page",templateable:!0,sections:[{type:"ProductHero",label:"Product Hero",set:"commerce"},{type:"SpecTable",label:"Spec Table",set:"commerce"},{type:"ProcessSteps",label:"Image & Text Columns",set:"general"},{type:"DetailRows",label:"Feature Rows",set:"commerce"},{type:"FitmentTable",label:"Fitment Table",set:"commerce"},{type:"TyreSizes",label:"Tyre Sizes",set:"commerce"},{type:"TyreFitment",label:"Tyre Fitment Form",set:"commerce"},{type:"EuTyreLabel",label:"EU Tyre Label",set:"commerce"},{type:"BundleOffer",label:"Bundle Products",set:"commerce"}]},{key:"checkout",title:"Checkout & ordering",templateable:!0,sections:[{type:"OrderSummary",label:"Order Table",set:"general"},{type:"PaymentBadges",label:"Payment Methods",set:"general"},{type:"CheckoutCTA",label:"Ready-to-Order Banner",set:"commerce"}]},{key:"about",title:"About & brand story",templateable:!0,sections:[{type:"Footprint",label:"Locations Map",set:"general"}]},{key:"content",title:"Text & content",templateable:!0,sections:[{type:"Prose",label:"Editorial Text",set:"general"},{type:"ParagraphsA",label:"Lead Text",set:"general"},{type:"Cards",label:"Cards",set:"general"}]},{key:"proof",title:"Stats & social proof",templateable:!0,sections:[{type:"Stats",label:"Stats",set:"general"},{type:"StatsParagraph",label:"Stats with Text",set:"general"},{type:"Chart",label:"Chart",set:"general"},{type:"Mockup",label:"Mockup Card",set:"general"},{type:"Reviews",label:"Reviews",set:"service"}]},{key:"promo",title:"Promotions & sign-ups",templateable:!0,sections:[{type:"Banner",label:"Banner",set:"general"},{type:"TitleWithButtons",label:"Call-to-Action Heading",set:"general"},{type:"Countdown",label:"Countdown",set:"general"}]},{key:"blog",title:"Blog & journal",templateable:!0,sections:[{type:"Masthead",label:"Issue Header",set:"general"},{type:"FeaturedCover",label:"Feature Banner",set:"general"},{type:"LongRead",label:"Article Text",set:"general"},{type:"Events",label:"Latest Posts",set:"service"}]},{key:"navigation",title:"Navigation & wayfinding",templateable:!0,sections:[{type:"Breadcrumb",label:"Breadcrumb",set:"general"},{type:"CategoryBar",label:"Category Bar",set:"general"},{type:"DocTabs",label:"Document Tabs",set:"general"}]},{key:"legal",title:"Legal & documents",templateable:!0,sections:[{type:"DocMasthead",label:"Document Header",set:"general"},{type:"DocBody",label:"Document Text",set:"general"}]},{key:"contact",title:"Contact, FAQ & forms",templateable:!0,sections:[{type:"FAQ",label:"Q&A",set:"general"},{type:"ContactRouting",label:"Contact Form",set:"service"},{type:"ContactLocations",label:"Contact / Locations",set:"general"},{type:"SubmitBuild",label:"Photo Submission Form",set:"service"},{type:"ReviewForm",label:"Review Form",set:"service"},{type:"Form",label:"Form",set:"service"},{type:"AppointmentBooking",label:"Booking Form",set:"service"}]},{key:"structure",title:"Layout, structure & embeds",templateable:!1,sections:[{type:"SectionHeader",label:"Section Header",set:"general"},{type:"Flex",label:"Box",set:"general"},{type:"Divider",label:"Divider",set:"general"},{type:"CustomHTML",label:"Custom HTML",set:"general"}]},{key:"layouts",title:"Layouts",templateable:!0,sections:[{type:"Manifesto",label:"Brand Text",set:"general"},{type:"Split",label:"Image & Text Split",set:"general"},{type:"Subscribe",label:"Signup Form",set:"service"},{type:"Ticker",label:"Scrolling Bar",set:"general"},{type:"SpecStrip",label:"Spec Strip",set:"general"},{type:"TimelineTrack",label:"Milestone Timeline",set:"general"},{type:"Timeline",label:"Story Timeline",set:"general"},{type:"Logos",label:"Logos",set:"general"}]}];function p(){return Object.fromEntries(o.map(e=>[e.key,{title:e.title,components:e.sections.map(t=>t.type),...e.defaultExpanded?{defaultExpanded:!0}:{}}]))}const i={Grid:'Lewis, 2026-09-14: Box and Grid duplicate each other and it feels confusing. 2026-09-15 he chose the order: give Box uneven widths FIRST, then merge Grid into Box. Shown three ways to pick the widths (mockup "Uneven Box Widths"), he chose A — shape pictures on the Box\'s `Block widths` row, the same "a row is a shape, pick a picture of it" rule he set for the photo wall on 2026-09-07.\n\nWHAT REPLACES IT: a Box set to One row, with `Block widths` at Equal or Custom, and its own `Columns` in the Phone view. Measured on PRODUCTION 2026-09-16 ~09:28 AEST (database `efficient-system`, all 10 tenant schemas, 128 storefront pages, both `layout` and `published_layout` — 256 documents): 2 Grid nodes, and they are ONE Grid counted twice — the 9DIEM homepage on 9diem.com (`xtreme_mudder` schema), once as draft and once as published. It is top-level, holds three `ImageBlock`s at `columns` 3 — equal thirds — and NO block sets `Positions`. A Box draws that with `Block widths` at Equal.\n\n⚠️ THE COUNT MOVES; THE RULE MUST NOT DEPEND ON IT. This entry has already carried three different readings. A local-clone snapshot said no Grid used `Positions`. A PRODUCTION reading on 2026-09-15 ~13:15 AEST found 6 nodes on two sites, 4 of them spanned — hartesmetal.com.au homepage and about, 4 columns, spans 1 + 3. That one was TRUE when it was taken and stopped being true the same day: those two pages were rebuilt on Box (`Block widths: Bigger right`), and on 2026-09-16 they hold zero Grid nodes and are built from `Flex`. ⛔ So the rule is NOT "there are still N spanned Grids". NEVER delete the Grid component or its `gridSpan` handling, whatever a census says — Grid still renders, still edits, still drags, and a merchant may rebuild a page either way on any day. Re-run the census on production before anyone PROPOSES deleting either, and read any number written here as the reading of its own day, not as the state of the world.\n\nWHAT A MERCHANT LOSES: a new Grid, and with it a fixed "N per row" that wraps by itself past three across, and the per-block `Positions` number. Box wraps with `Wrap`, but by content width, not by a fixed count.\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT. Every page holding a Grid still renders through it and can still be edited, dragged and added to; no document is rewritten and NO MIGRATION RUNS — the owner redoes live sections himself.\n\n⚠️ AND IT STAYS DROPPABLE WHERE IT LIVES. The drop rule in lib/document/config.tsx read the nestable containers off the catalogue\'s `structure` row, so leaving the catalogue would have made every open slot — a Box included — refuse a Grid already stored inside one. `scripts/test-retired-grid-stays-editable.tsx` §3 pins it.',CompatibleTyres:'Lewis, 2026-09-09: "Do not bother counting. Delete Compatible Tyres and use the new one. The new one needs complete settings — it must have every setting our cards have." Shown three ways to finish it, he chose C: retire from the menu now, and take styling the card text as its own card.\n\nWHAT REPLACES IT: `RelatedProducts` with its `Show` dropdown set to "Tyres that fit this product". That block is the GENERIC relationship section from card 1128 — it knows nothing about wheels or tyres, it asks the registry for a relationship by name. The two have rendered through the SAME renderer (`DynamicRelatedProducts`) since that card; this one is the pre-registry one-off that was never removed.\n\n⚠️ THE SWAP WAS NOT SAFE UNTIL #1305, AND SAYING SO IS THE POINT. The first old-versus-new table put in front of the owner was WRONG. `DynamicRelatedProducts` returns EARLY on a tyre answer and draws this component, so the seven card settings, the head split and the Width control all stopped at that call — nine settings, measured NO EFFECT, on precisely the relationship that replaces this block. #1283 gave the new block the card settings, #1299 the head split and its own Width, #1305 carried all of it onto the tyre branch. Only then was the claim true.\n\nWHAT WAS MEASURED BEFORE RETIRING, four ways, because the premise decides the card:\n • settable text kinds (SECTION_TEXT_KINDS): both blocks ABSENT — the map holds only TimelineTrack and Footprint, both AUTHORED lists\n • read-only text regions: neither `components/CompatibleTyres` nor `components/TyreCard` stamps one\n • panel rows through resolveFields: this block 31, `RelatedProducts` 42. This block\'s only style-ish key is `_sStyle`, the bucket HEADER, not a control\n • head text (num/title/description) is authored on both, so `_partStyles` reaches it identically\nSo on the CARD runs the two are zero against zero — neither can style them — and everywhere else the new block is ahead. Styling those runs needs a section-level prop family and a paint path for DERIVED text, which no section has yet: a part is anchored by matching an AUTHORED prop\'s string against the DOM, and `lib/document/source-bound-parts` keeps hydrated copy unreachable on purpose so a merchant cannot type into a copy of a product name and lose it at the next sync. That is its own card, and `lib/sections/text-regions` is the read-only half that already ships.\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT, the same contract Subscribe, Split and SubscribeBlogs have. Every page holding a `CompatibleTyres` still renders through it, no published document is rewritten, and NO MIGRATION RUNS — the owner\'s standing ruling of 2026-09-05: he redoes live sections himself and deletes the old ones when he does. He also said explicitly not to count them first.\n\n⚠️ AND THIS COMPONENT IS LOAD-BEARING FOR ITS OWN REPLACEMENT: `DynamicRelatedProducts` draws it for EVERY tyre answer. Deleting it would blank the block that replaces it, not just the pages still holding this one.',Spacer:`Lewis, 2026-10-10 (section-merges.md group 19, approved): one Divider holds space and lines. Style = None (was Spacer) / Line / Stripes; the space above and below as number boxes. Retired by card [MERGE] Spacer Into Divider (2026-10-26).
2
2
 
3
3
  WHAT REPLACES IT: a Divider with Style set to None. It draws no line, only its space, and that space is the Divider's Padding row (top and bottom, each with its phone value): the Spacer's 24 / 48 / 96 / 160 px are None with Padding 12 + 12, 24 + 24, 48 + 48, 80 + 80. \`scripts/test-divider-holds-the-spacer.tsx\` §5 holds it.
4
4
 
@@ -32,4 +32,8 @@ WHAT REPLACES IT: Cards drawn from its card template, each card a Label, a Value
32
32
 
33
33
  WHAT A MERCHANT LOSES (the LOOK GAPS in that file): the grid takes the Cards block's own gaps and breakpoints, not the old 40 (16 on a phone).
34
34
 
35
- THE TYPE KEY STAYS AND SO DOES THE COMPONENT. Every page holding a Document Detail Cards still renders through it and can still be edited; no document is rewritten.`,SubscribeBlogs:"card 66396 — folded into `Subscribe`, which now chooses its rail's content with a `Type` control (the newsletter's own issues, or live blog posts). The two shared 21 of their fields and rendered THE SAME BYTES from equivalent rows, so offering both asked a merchant to choose between two names for one section. The type key stays because it is stored on published pages, and the component stays because those pages still render through it."},u=["Grid","Spacer"],m=Array.from(new Set([...o.flatMap(e=>e.sections.map(t=>t.type)),...Object.keys(i)])),y=Object.fromEntries(o.flatMap(e=>e.sections.map(t=>[t.type,t.label]))),l={Heading:"general",Text:"general",Eyebrow:"general",ImageBlock:"general",LogoBlock:"general",LocationMap:"general",Contents:"general",ButtonBlock:"general",CardList:"general",PostCard:"general",HeroSlide:"general",HeroGroup:"general",Integrations:"general",Grid:"general",KeyFeatures:"general",Spacer:"general",Series:"general",DocMetaCards:"general",CollectionCard:"commerce",GalleryItem:"commerce",ProductRef:"commerce",CompatibleTyres:"commerce",DeliveryOptions:"commerce",Header:"commerce",SearchBlock:"commerce",CartBlock:"commerce",CountrySwitchBlock:"commerce",AccountBlock:"commerce",ThemeSwitchBlock:"commerce",ProductGallery:"commerce",EuTyreLabelBlock:"commerce",SubmitBox:"service",BookingBox:"service",SubscribeBlogs:"service",RatingBlock:"service",Footer:"service",FooterLogo:"service",FooterMenu:"service",FooterDivider:"service",FooterGroup:"service",FooterText:"service",FooterEmailSignup:"service",FooterSocial:"service",FooterPayment:"service",MenuBlock:"service",MenuLinkBlock:"service",ArticleBody:"service",ProductPrice:"commerce",ProductSize:"commerce",ProductColour:"commerce",EmailFormBlock:"service",SocialLogosBlock:"service",PaymentLogosBlock:"service",LegalLineBlock:"service",SiteHeader:"service",SiteFooter:"service"},r={...l,...Object.fromEntries(o.flatMap(e=>e.sections.map(t=>[t.type,t.set])))};function g(e){return Object.prototype.hasOwnProperty.call(r,e)?r[e]:void 0}function a(e){return Object.keys(r).filter(t=>r[t]===e).sort()}const b=a("general"),T=a("commerce"),E=a("service"),c="Flex",s="Box",S=`${s}es`;function d(e){return e==="section"?"Blank section":s}function w(e,t,n){return e===c?d(t):n}export{m as ALL_SECTION_TYPES,h as BLOCK_SETS,s as BOX_LABEL,S as BOX_LABEL_PLURAL,T as COMMERCE_BLOCKS,b as GENERAL_BLOCKS,c as LEVEL_NAMED_TYPE,u as RETIRED_NESTABLE_SECTIONS,i as RETIRED_SECTIONS,o as SECTION_CATALOG,y as SECTION_LABELS,E as SERVICE_BLOCKS,l as UNLISTED_BLOCK_SETS,g as blockSetOf,a as blocksInSet,p as buildBlockCategories,w as labelAtLevel,d as labelForFlex};
35
+ THE TYPE KEY STAYS AND SO DOES THE COMPONENT. Every page holding a Document Detail Cards still renders through it and can still be edited; no document is rewritten.`,Testimonials:"Lewis, 2026-10-10 (section-merges.md group 6, approved): Testimonials goes into Reviews, whose Review content is Manual (typed quotes) or Reviews (the store's approved reviews), with a product choice in place of the old Design code. Retired by card [MERGE] Remaining Section Merges (2026-11-06), after Reviews took typed quotes and a card template (efficient-storefront-blocks #242) and the product choice (#359).\n\nWHAT REPLACES IT: Reviews with Review content set to Manual. Every Testimonials key has the same key there: `eyebrow`, `eyebrowLook`, `title`, `items[]` (`quote`, `name`, `role`), `columns` 1-3 and `headPlacement` (both split their head). A typed review also has a `title` and a `rating`, empty for a quote that has none.\n\nWHAT A MERCHANT LOSES on a NEW quote list: nothing this section had. Reviews is in the service set where this section was general; no host narrows the sets (2026-11-06).\n\nNO CONVERTER ROW HERE: its Box row is efficient-storefront-blocks' (`section-to-box-rows-reviews`, OFF). 0 Testimonials nodes on the US sites, draft or published (read only, 2026-11-06). Old sites stay as they are (owner, 2026-11-06).\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT. A Testimonials anywhere still renders through it and can still be edited; no document is rewritten.",SubscribeBlogs:"card 66396 — folded into `Subscribe`, which now chooses its rail's content with a `Type` control (the newsletter's own issues, or live blog posts). The two shared 21 of their fields and rendered THE SAME BYTES from equivalent rows, so offering both asked a merchant to choose between two names for one section. The type key stays because it is stored on published pages, and the component stays because those pages still render through it.",RelatedProducts:`Owner, 2026-11-06 (plan productgrid-card-template-2026-11-06, inovit row 19): a Product Grid with "Show the current product's related" on IS the related grid, so offering both asked a merchant to choose between two names for one section.
36
+
37
+ WHAT REPLACES IT: Product Grid, bound to the current product. Both draw every card through the grid's ONE card template (efficient-storefront-blocks, lib/content/product-card-seed).
38
+
39
+ THE TYPE KEY STAYS AND SO DOES THE COMPONENT. A stored Related Products node is read as that grid by the host (\`relatedToGrid\`) and draws the same cards; no document is rewritten. Its footnote is the one value the grid has no home for.`},u=["Grid","Spacer"],m=Array.from(new Set([...o.flatMap(e=>e.sections.map(t=>t.type)),...Object.keys(i)])),y=Object.fromEntries(o.flatMap(e=>e.sections.map(t=>[t.type,t.label]))),l={Heading:"general",Text:"general",Eyebrow:"general",ImageBlock:"general",LogoBlock:"general",LocationMap:"general",Contents:"general",ButtonBlock:"general",CardList:"general",PostCard:"general",HeroSlide:"general",HeroGroup:"general",Integrations:"general",Grid:"general",KeyFeatures:"general",Spacer:"general",Series:"general",DocMetaCards:"general",Testimonials:"general",CollectionCard:"commerce",GalleryItem:"commerce",ProductRef:"commerce",CompatibleTyres:"commerce",DeliveryOptions:"commerce",Header:"commerce",SearchBlock:"commerce",CartBlock:"commerce",CountrySwitchBlock:"commerce",AccountBlock:"commerce",ThemeSwitchBlock:"commerce",ProductGallery:"commerce",EuTyreLabelBlock:"commerce",SubmitBox:"service",BookingBox:"service",SubscribeBlogs:"service",RatingBlock:"service",Footer:"service",FooterLogo:"service",FooterMenu:"service",FooterDivider:"service",FooterGroup:"service",FooterText:"service",FooterEmailSignup:"service",FooterSocial:"service",FooterPayment:"service",MenuBlock:"service",MenuLinkBlock:"service",ArticleBody:"service",ProductPrice:"commerce",ProductSize:"commerce",ProductColour:"commerce",ProductPicture:"commerce",ProductEyebrow:"commerce",ProductName:"commerce",ProductSpecs:"commerce",ProductBuy:"commerce",RelatedProducts:"commerce",EmailFormBlock:"service",SocialLogosBlock:"service",PaymentLogosBlock:"service",LegalLineBlock:"service",SiteHeader:"service",SiteFooter:"service"},r={...l,...Object.fromEntries(o.flatMap(e=>e.sections.map(t=>[t.type,t.set])))};function g(e){return Object.prototype.hasOwnProperty.call(r,e)?r[e]:void 0}function a(e){return Object.keys(r).filter(t=>r[t]===e).sort()}const b=a("general"),E=a("commerce"),T=a("service"),c="Flex",s="Box",w=`${s}es`;function d(e){return e==="section"?"Blank section":s}function S(e,t,n){return e===c?d(t):n}export{m as ALL_SECTION_TYPES,h as BLOCK_SETS,s as BOX_LABEL,w as BOX_LABEL_PLURAL,E as COMMERCE_BLOCKS,b as GENERAL_BLOCKS,c as LEVEL_NAMED_TYPE,u as RETIRED_NESTABLE_SECTIONS,i as RETIRED_SECTIONS,o as SECTION_CATALOG,y as SECTION_LABELS,T as SERVICE_BLOCKS,l as UNLISTED_BLOCK_SETS,g as blockSetOf,a as blocksInSet,p as buildBlockCategories,S as labelAtLevel,d as labelForFlex};
@@ -0,0 +1 @@
1
+ export declare const KEPT_EDITOR_PHRASES: Readonly<Record<string, string>>;
@@ -0,0 +1 @@
1
+ const t={relatedProducts:"Related Products"};export{t as KEPT_EDITOR_PHRASES};
@@ -1 +1 @@
1
- const c=[{key:"space-grotesk",label:"Space Grotesk",cssVar:"--font-display",category:"sans",italic:!1,italicLoaded:!1},{key:"inter",label:"Inter",cssVar:"--font-body",category:"sans",italic:!0,italicLoaded:!0},{key:"poppins",label:"Poppins",cssVar:"--font-poppins",category:"sans",italic:!0,italicLoaded:!0},{key:"dm-sans",label:"DM Sans",cssVar:"--font-dm-sans",category:"sans",italic:!0,italicLoaded:!0},{key:"sora",label:"Sora",cssVar:"--font-sora",category:"sans",italic:!1,italicLoaded:!1},{key:"oswald",label:"Oswald",cssVar:"--font-oswald",category:"sans",italic:!1,italicLoaded:!1},{key:"archivo",label:"Archivo",cssVar:"--font-archivo",category:"sans",italic:!0,italicLoaded:!0},{key:"outfit",label:"Outfit",cssVar:"--font-outfit",category:"sans",italic:!1,italicLoaded:!1},{key:"manrope",label:"Manrope",cssVar:"--font-manrope",category:"sans",italic:!1,italicLoaded:!1},{key:"big-shoulders",label:"Big Shoulders",cssVar:"--font-big-shoulders",category:"sans",italic:!1,italicLoaded:!1},{key:"michroma",label:"Michroma",cssVar:"--font-michroma",category:"sans",italic:!1,italicLoaded:!1},{key:"assistant",label:"Assistant",cssVar:"--font-assistant",category:"sans",italic:!1,italicLoaded:!1},{key:"fraunces",label:"Fraunces",cssVar:"--font-serif",category:"serif",italic:!0,italicLoaded:!0},{key:"playfair-display",label:"Playfair Display",cssVar:"--font-playfair",category:"serif",italic:!0,italicLoaded:!0},{key:"cormorant",label:"Cormorant",cssVar:"--font-cormorant",category:"serif",italic:!0,italicLoaded:!0},{key:"jetbrains-mono",label:"JetBrains Mono",cssVar:"--font-mono-loaded",category:"mono",italic:!0,italicLoaded:!0}],n=new Map(c.map(e=>[e.key,e])),g={sans:"Sans",serif:"Serif",mono:"Mono"};function m(){return Object.keys(g).map(e=>[e,c.filter(t=>t.category===e)]).filter(([,e])=>e.length>0)}function O(e){return n.get(e)?.italic??!1}function S(e){return n.get(e)?.italicLoaded??!1}function _(e){return n.get(e)}const s=["heading","heading2","heading3","body","accent","label"];function x(e){return typeof e=="string"&&s.includes(e)?e:null}const k={heading:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",body:"Body",accent:"Emphasis",label:"Labels"},u=[["font-heading2","heading2"],["font-heading3","heading3"],["font-display","heading"],["font-serif","accent"],["font-mono","label"],["font-body","body"]],y=/var\(--size-(headingLarge|headingMedium|headingSmall|accent|body|label)\s*,/,V={heading:"headingLarge",heading2:"headingMedium",heading3:"headingSmall",accent:"accent",body:"body",label:"label"},p={headingLarge:"heading",headingMedium:"heading2",headingSmall:"heading3",accent:"accent",body:"body",label:"label"};function E(e){const t=e?y.exec(e):null;return t?p[t[1]]??null:h(e)}function h(e){if(!e)return null;const t=e.split(/\s+/).filter(a=>!a.slice(0,a.lastIndexOf(":")+1).includes("&")).map(a=>a.slice(a.lastIndexOf(":")+1));for(const[a,i]of u)if(t.includes(a))return i;return null}const I=["heading","heading2","heading3"],b=["font-display","font-heading2","font-heading3"];function T(e){if(!e)return!1;const t=e.split(/\s+/).filter(a=>!a.slice(0,a.lastIndexOf(":")+1).includes("&")).map(a=>a.slice(a.lastIndexOf(":")+1));return b.some(a=>t.includes(a))}const r={heading:"space-grotesk",heading2:"space-grotesk",heading3:"space-grotesk",body:"inter",accent:"fraunces",label:"jetbrains-mono"};function d(e){const t=a=>{const i=e?.[a];if(i&&n.has(i))return i;if(a==="heading2"||a==="heading3"){const l=e?.heading;return l&&n.has(l)?l:r.heading}return r[a]};return Object.fromEntries(s.map(a=>[a,t(a)]))}function f(e,t){return n.get(e[t])??n.get(r[t])}function o(e,t){return`var(${f(e,t).cssVar})`}function F(e){const t=d(e);return[...new Set([...L,...s.map(a=>f(t,a).cssVar)])]}const L=[...new Set(s.map(e=>n.get(r[e]).cssVar))],A=[...new Set(c.map(e=>e.cssVar))];function R(e){const t=d(e);return{"--font-role-heading":o(t,"heading"),"--font-role-heading2":o(t,"heading2"),"--font-role-heading3":o(t,"heading3"),"--font-role-body":o(t,"body"),"--font-role-accent":o(t,"accent"),"--font-role-label":o(t,"label"),fontFamily:"var(--font-role-body)"}}export{A as ALL_FONT_CSS_VARS,r as DEFAULT_FONTS,g as FONT_CATEGORY_LABELS,c as FONT_OPTIONS,s as FONT_ROLES,k as FONT_ROLE_LABELS,b as HEADING_FACE_UTILITIES,I as HEADING_FONT_ROLES,L as ROOT_FALLBACK_CSS_VARS,V as SIZE_STEP_OF_ROLE,T as drawsHeadingFace,O as fontHasItalic,S as fontItalicIsUsable,_ as fontOption,x as fontRoleOf,h as fontRoleOfClassName,R as fontRoleStyle,m as fontsByCategory,d as normalizeFonts,F as siteFontCssVars,E as styleRoleOfClassName};
1
+ const c=[{key:"space-grotesk",label:"Space Grotesk",cssVar:"--font-display",category:"sans",italic:!1,italicLoaded:!1},{key:"inter",label:"Inter",cssVar:"--font-body",category:"sans",italic:!0,italicLoaded:!0},{key:"poppins",label:"Poppins",cssVar:"--font-poppins",category:"sans",italic:!0,italicLoaded:!0},{key:"dm-sans",label:"DM Sans",cssVar:"--font-dm-sans",category:"sans",italic:!0,italicLoaded:!0},{key:"sora",label:"Sora",cssVar:"--font-sora",category:"sans",italic:!1,italicLoaded:!1},{key:"oswald",label:"Oswald",cssVar:"--font-oswald",category:"sans",italic:!1,italicLoaded:!1},{key:"archivo",label:"Archivo",cssVar:"--font-archivo",category:"sans",italic:!0,italicLoaded:!0},{key:"outfit",label:"Outfit",cssVar:"--font-outfit",category:"sans",italic:!1,italicLoaded:!1},{key:"manrope",label:"Manrope",cssVar:"--font-manrope",category:"sans",italic:!1,italicLoaded:!1},{key:"big-shoulders",label:"Big Shoulders",cssVar:"--font-big-shoulders",category:"sans",italic:!1,italicLoaded:!1},{key:"michroma",label:"Michroma",cssVar:"--font-michroma",category:"sans",italic:!1,italicLoaded:!1},{key:"assistant",label:"Assistant",cssVar:"--font-assistant",category:"sans",italic:!1,italicLoaded:!1},{key:"jost",label:"Jost",cssVar:"--font-jost",category:"sans",italic:!0,italicLoaded:!0},{key:"fraunces",label:"Fraunces",cssVar:"--font-serif",category:"serif",italic:!0,italicLoaded:!0},{key:"playfair-display",label:"Playfair Display",cssVar:"--font-playfair",category:"serif",italic:!0,italicLoaded:!0},{key:"cormorant",label:"Cormorant",cssVar:"--font-cormorant",category:"serif",italic:!0,italicLoaded:!0},{key:"jetbrains-mono",label:"JetBrains Mono",cssVar:"--font-mono-loaded",category:"mono",italic:!0,italicLoaded:!0}],n=new Map(c.map(e=>[e.key,e])),g={sans:"Sans",serif:"Serif",mono:"Mono"};function m(){return Object.keys(g).map(e=>[e,c.filter(t=>t.category===e)]).filter(([,e])=>e.length>0)}function O(e){return n.get(e)?.italic??!1}function S(e){return n.get(e)?.italicLoaded??!1}function _(e){return n.get(e)}const s=["heading","heading2","heading3","body","accent","label"];function k(e){return typeof e=="string"&&s.includes(e)?e:null}const x={heading:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",body:"Body",accent:"Emphasis",label:"Labels"},u=[["font-heading2","heading2"],["font-heading3","heading3"],["font-display","heading"],["font-serif","accent"],["font-mono","label"],["font-body","body"]],y=/var\(--size-(headingLarge|headingMedium|headingSmall|accent|body|label)\s*,/,V={heading:"headingLarge",heading2:"headingMedium",heading3:"headingSmall",accent:"accent",body:"body",label:"label"},p={headingLarge:"heading",headingMedium:"heading2",headingSmall:"heading3",accent:"accent",body:"body",label:"label"};function E(e){const t=e?y.exec(e):null;return t?p[t[1]]??null:h(e)}function h(e){if(!e)return null;const t=e.split(/\s+/).filter(a=>!a.slice(0,a.lastIndexOf(":")+1).includes("&")).map(a=>a.slice(a.lastIndexOf(":")+1));for(const[a,i]of u)if(t.includes(a))return i;return null}const I=["heading","heading2","heading3"],b=["font-display","font-heading2","font-heading3"];function T(e){if(!e)return!1;const t=e.split(/\s+/).filter(a=>!a.slice(0,a.lastIndexOf(":")+1).includes("&")).map(a=>a.slice(a.lastIndexOf(":")+1));return b.some(a=>t.includes(a))}const r={heading:"space-grotesk",heading2:"space-grotesk",heading3:"space-grotesk",body:"inter",accent:"fraunces",label:"jetbrains-mono"};function d(e){const t=a=>{const i=e?.[a];if(i&&n.has(i))return i;if(a==="heading2"||a==="heading3"){const l=e?.heading;return l&&n.has(l)?l:r.heading}return r[a]};return Object.fromEntries(s.map(a=>[a,t(a)]))}function f(e,t){return n.get(e[t])??n.get(r[t])}function o(e,t){return`var(${f(e,t).cssVar})`}function F(e){const t=d(e);return[...new Set([...L,...s.map(a=>f(t,a).cssVar)])]}const L=[...new Set(s.map(e=>n.get(r[e]).cssVar))],A=[...new Set(c.map(e=>e.cssVar))];function R(e){const t=d(e);return{"--font-role-heading":o(t,"heading"),"--font-role-heading2":o(t,"heading2"),"--font-role-heading3":o(t,"heading3"),"--font-role-body":o(t,"body"),"--font-role-accent":o(t,"accent"),"--font-role-label":o(t,"label"),fontFamily:"var(--font-role-body)"}}export{A as ALL_FONT_CSS_VARS,r as DEFAULT_FONTS,g as FONT_CATEGORY_LABELS,c as FONT_OPTIONS,s as FONT_ROLES,x as FONT_ROLE_LABELS,b as HEADING_FACE_UTILITIES,I as HEADING_FONT_ROLES,L as ROOT_FALLBACK_CSS_VARS,V as SIZE_STEP_OF_ROLE,T as drawsHeadingFace,O as fontHasItalic,S as fontItalicIsUsable,_ as fontOption,k as fontRoleOf,h as fontRoleOfClassName,R as fontRoleStyle,m as fontsByCategory,d as normalizeFonts,F as siteFontCssVars,E as styleRoleOfClassName};
@@ -1,6 +1,6 @@
1
1
  import { type ReactNode } from "react";
2
2
  import type { SlotComponent } from "efficient-easel/blocks";
3
- import { type CardRowState, type CardStateLine } from "../../format/lib/content/card-state.js";
3
+ import { type CardItemAction, type CardRowState, type CardStateLine } from "../../format/lib/content/card-state.js";
4
4
  import type { SourceRow } from "../../format/lib/content/block-sources.js";
5
5
  export type { CardRowState } from "../../format/lib/content/card-state.js";
6
6
  export type CardRow = {
@@ -26,8 +26,9 @@ type CardTemplateRowsProps = {
26
26
  items?: readonly unknown[];
27
27
  states?: readonly (CardRowState | undefined)[];
28
28
  stateLine?: CardStateLine;
29
+ actions?: readonly (CardItemAction | undefined)[];
29
30
  fallback: ReactNode;
30
31
  wrapCopy?: (copy: ReactNode, row: CardRow) => ReactNode;
31
32
  children: (cards: ReactNode) => ReactNode;
32
33
  };
33
- export declare function CardTemplateRows({ ownerId, ownerType, Template, rows, items, states, stateLine, fallback, wrapCopy, children }: CardTemplateRowsProps): import("react").JSX.Element;
34
+ export declare function CardTemplateRows({ ownerId, ownerType, Template, rows, items, states, stateLine, actions, fallback, wrapCopy, children }: CardTemplateRowsProps): import("react").JSX.Element;
@@ -1 +1 @@
1
- "use client";import{Fragment as c,jsx as r,jsxs as S}from"react/jsx-runtime";import{createContext as h,useContext as l}from"react";import{REPEAT_ATTRIBUTE as x,REPEAT_INDEX_ATTRIBUTE as D}from"efficient-easel/draw";import{CARD_TEMPLATE_SLOT as L,rowFilledProps as P}from"../../format/lib/content/card-template.js";import{CARD_STATE_LINE_CLASS as I,CARD_STATE_UNDER_LINE_CLASS as N,cardStateAttrs as g,cardStateValue as j}from"../../format/lib/content/card-state.js";import{usePageRecordRow as v}from"./CurrentRecord.js";const a=h(null);function y(){return l(a)}function M({type:u,props:i,children:t}){const o=l(a),d=v(),n=o?.row??d;return r(c,{children:t(P(u,i,n,o?.ownerType),o,n)})}function O({ownerId:u,ownerType:i,Template:t,rows:o,items:d,states:n,stateLine:E,fallback:T,wrapCopy:m,children:A}){const p=l(a);if(!t||(t.blockCount??0)<=0)return r(c,{children:T});const C=p!==null,f=o.map((w,e)=>{const s=n?.[e],R={row:w,index:e,ownerType:i,item:d?.[e],nested:C,...s?{state:s}:null},_=r("div",{[x]:`${u}:${L}`,[D]:e,...g(s),children:j(s)?S(c,{children:[r(t,{}),r("span",{"aria-hidden":"true",className:E==="under"?N:I})]}):r(t,{})});return r(a.Provider,{value:R,children:m?m(_,R):_},e)});return r(c,{children:A(f)})}export{a as CardRowContext,M as CardRowDrawn,O as CardTemplateRows,y as useCardRow};
1
+ "use client";import{Fragment as d,jsx as t,jsxs as E}from"react/jsx-runtime";import{createContext as x,useContext as u,useId as P}from"react";import{REPEAT_ATTRIBUTE as b,REPEAT_INDEX_ATTRIBUTE as g}from"efficient-easel/draw";import{BOX_LINKED_CLASS as j}from"../../format/lib/content/box-link.js";import{CARD_TEMPLATE_SLOT as v,rowFilledProps as y}from"../../format/lib/content/card-template.js";import{CARD_ACTION_ATTR as O,CARD_ACTION_CLASS as k,CARD_STATE_LINE_CLASS as B,CARD_STATE_UNDER_LINE_CLASS as F,cardStateAttrs as U,cardStateValue as X}from"../../format/lib/content/card-state.js";import{usePageRecordRow as $}from"./CurrentRecord.js";const l=x(null);function Q(){return u(l)}function W({type:s,props:c,children:r}){const e=u(l),o=$(),i=e?.row??o;return t(d,{children:r(y(s,c,i,e?.ownerType),e,i)})}function K({attrs:s,selected:c,press:r,children:e}){const o=P();return E("div",{...s,id:o,className:j,children:[t("button",{type:"button",[O]:"",className:k,"aria-pressed":c,"aria-labelledby":o,onClick:r}),e]})}function Y({ownerId:s,ownerType:c,Template:r,rows:e,items:o,states:i,stateLine:S,actions:f,fallback:N,wrapCopy:A,children:h}){const w=u(l);if(!r||(r.blockCount??0)<=0)return t(d,{children:N});const D=w!==null,I=e.map((L,n)=>{const a=i?.[n],_={row:L,index:n,ownerType:c,item:o?.[n],nested:D,...a?{state:a}:null},m=X(a)?E(d,{children:[t(r,{}),t("span",{"aria-hidden":"true",className:S==="under"?F:B})]}):t(r,{}),C={[b]:`${s}:${v}`,[g]:n},p=f?.[n],R=U(a),T=p?t(K,{attrs:{...C,...R},selected:a?.selected===!0,press:p.press,children:m}):t("div",{...C,...R,children:m});return t(l.Provider,{value:_,children:A?A(T,_):T},n)});return t(d,{children:h(I)})}export{l as CardRowContext,W as CardRowDrawn,Y as CardTemplateRows,Q as useCardRow};
@@ -74,11 +74,12 @@ interface FlexProps {
74
74
  desktop: boolean;
75
75
  phone: boolean;
76
76
  };
77
+ sharedRows?: boolean;
77
78
  boxId?: string;
78
79
  mirrorCards?: unknown;
79
80
  content: SlotComponent;
80
81
  rowTitle?: SlotComponent;
81
82
  startsOpen?: unknown;
82
83
  }
83
- export default function Flex({ direction, label, tabShape, gap, gapPhone, gapTablet, justify, align, wrap, share, sharePhone, shareTablet, wrapPhone, orderPhone, phoneRow, columns, columnsTablet, separator, stackBelow, blockSpacing, bgImage, bgImagePhone, pictureHover, darken, darkenStyle, darkenTablet, darkenPhone, darkenStyleTablet, darkenStylePhone, placement, padV2, border, borderTablet, borderPhone, pad, contained, fillHeight, shadow, shadowTablet, shadowPhone, justifyTablet, justifyPhone, alignTablet, alignPhone, wrapTablet, blockSpacingTablet, blockSpacingPhone, loop, scrollDirection, loopSeconds, loopDelay, editing, fillColor, fillColorTablet, fillColorPhone, line, upcoming, link, boxShape, boxShapePhone, boxShapeTablet, jumpHighlight, anchor, sharedSides, boxId, mirrorCards, content: Content, rowTitle: RowTitle, startsOpen, }: FlexProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
84
+ export default function Flex({ direction, label, tabShape, gap, gapPhone, gapTablet, justify, align, wrap, share, sharePhone, shareTablet, wrapPhone, orderPhone, phoneRow, columns, columnsTablet, separator, stackBelow, blockSpacing, bgImage, bgImagePhone, pictureHover, darken, darkenStyle, darkenTablet, darkenPhone, darkenStyleTablet, darkenStylePhone, placement, padV2, border, borderTablet, borderPhone, pad, contained, fillHeight, shadow, shadowTablet, shadowPhone, justifyTablet, justifyPhone, alignTablet, alignPhone, wrapTablet, blockSpacingTablet, blockSpacingPhone, loop, scrollDirection, loopSeconds, loopDelay, editing, fillColor, fillColorTablet, fillColorPhone, line, upcoming, link, boxShape, boxShapePhone, boxShapeTablet, jumpHighlight, anchor, sharedSides, sharedRows, boxId, mirrorCards, content: Content, rowTitle: RowTitle, startsOpen, }: FlexProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
84
85
  export {};
@@ -1 +1 @@
1
- import{Fragment as Y,jsx as e,jsxs as xo}from"react/jsx-runtime";import{useId as Fs}from"react";import Ts from"./BoxTabs.js";import{BoxTabPaneContext as So,useBoxPaneKind as gs,useIsTabPane as Ds}from"./BoxTabPaneContext.js";import Is from"./BoxAccordionRow.js";import{boxPhoneCell as Vs,boxPhoneOrder as Ws}from"../../format/lib/content/box-phone-place.js";import{CellFillContext as we,InBoxContext as Pe,useCellOfStretchedRow as Ms,useFillsCell as Gs}from"./InBoxContext.js";import Xs,{InsideSiteColumn as _e,useInsideSiteGutter as js,useSectionRoot as Hs}from"./SiteGutterFrame.js";import{BoxSurfaceProvider as Us}from"./BoxSurfaceContext.js";import Ks from"./PictureWash.js";import{BoxCellWidthContext as Js}from"./BoxCellWidthContext.js";import{useInSiteHeader as zs}from"./PhoneMenuTools.js";import{useCardRow as Ys}from"./CardRowContext.js";import{framesItsCards as qs}from"../../format/lib/content/card-place.js";import{MirrorContext as Qs,useMirroredCopy as Zs,useUnderCardBox as ot}from"./MirrorContext.js";import{isMirroredCopy as et,mirrorCardsActs as Le,mirrorCardsOf as st,mirroredBoxClass as tt,MIRROR_ROW_CLASS as nt,ownsCard as rt}from"../../format/lib/content/mirror-cards.js";import{FRAME_BASE as $o,FRAME_GUTTER as ho}from"./BlockFrame.js";import{containerGapProps as lt}from"../../format/lib/content/container-gap.js";import{boxLayoutClasses as at,boxAlignViewClasses as ct,boxBlockSpacingClass as it,boxBlockSpacingViewClasses as mt,boxJustifyViewClasses as ut,boxWrapTabletClass as dt,boxFitContentClass as ft,boxRowColumnsClass as Ct,boxRowTabletColumnsClass as bt,boxRowTabletShareClass as pt,boxPhoneCellsShareLine as xt,boxPhoneRowClasses as X,boxPhoneRowFits as St,boxShareClasses as E,boxShareVars as $t,boxWrapClass as ht,BOX_GAP_ONLY_CLASS as wt}from"../../format/lib/content/box-layout.js";import{boxSeparatorClasses as Pt,boxSeparatorSeamClass as _t,boxSeparatorStyle as Lt,isStripBox as Rt}from"../../format/lib/content/box-separator.js";import{DEFAULT_LOOP_DELAY as yt,DEFAULT_LOOP_DIRECTION as At,DEFAULT_LOOP_SECONDS as kt,isVerticalLoop as Nt}from"../../format/lib/animation/index.js";import{LoopTrack as Ot}from"../lib/animation/LoopTrack.js";import{BOX_CARD_PAD as p,BOX_OWNS_SIDES_CLASS as vt,boxDarkenStyle as Bt,boxFillOf as Et,boxFillViews as Ft,boxPlacementClasses as Tt,boxWashViews as gt,CARD_SHADOW_CLASS as Dt,isBackgroundBox as Re}from"../../format/lib/content/box-background.js";import{boxShadowAttrs as It,boxShadowOnAnyView as Vt,boxShadowViewAttrs as Wt}from"../../format/lib/content/box-shadow.js";import{boxRunsEdgeToEdge as Mt,drawsSiteGutter as Gt}from"../../format/lib/content/site-gutter.js";import{boxShapeClass as Xt,boxShapeClasses as jt}from"../../format/lib/content/box-shape.js";import{BOX_JUMP_ATTR as Ht,BOX_LINK_ATTR as ye,BOX_LINK_CLASS as Ae,BOX_LINKED_CLASS as Ut,boxJumpBlocksClass as Kt,boxJumpCss as Jt,boxJumpSlug as zt,boxLinkOf as Yt}from"../../format/lib/content/box-link.js";import{SiteLink as qt}from"../lib/site-runtime.js";import{sectionBorderStyle as ke}from"../../format/lib/content/borders.js";import{finiteNumber as x}from"../../format/lib/finite-number.js";import{padDefaultIn as S,sectionPadAttrs as Qt}from"../lib/content/section-padding.js";import{SECTION_FILL_CLASS as q}from"../../format/lib/content/section-min-height.js";import{ON_MEDIA_INK_STYLE as Zt}from"../../format/lib/content/ink.js";import{sizedBackground as wo}from"../../format/lib/sized-image.js";import{PHOTO_HOST_ATTR as on,resolveImageTreatment as en}from"../../format/lib/content/image-treatment.js";import{BoxRail as sn,BoxRailStop as tn,RAIL_STOPS_CLASS as nn,useTimelineRail as rn}from"./TimelineRail.js";import{SHARED_PLAIN_ATTR as ln,sharedColumnsClasses as an,sharedColumnsCss as cn}from"../lib/content/box-shared-columns.js";import mn from"./PhotoHoverSheet.js";import{stackGutterClass as un,stackLineCss as dn,stackOuterClass as fn,stackRowClass as Cn,storedStackLine as bn}from"../lib/content/box-stack-line.js";const Po={"--sf-site-gutter":"0px"},pn={overflowX:"clip",overflowY:"visible"},xn={stretchedRow:!1,fillingColumn:!1,columnsRow:!1},Sn={desktop:!1,phone:!1},Ne="bg-cover bg-center bg-[image:var(--sf-box-bg)] max-view-tablet:bg-[image:var(--sf-box-bg-p)]",_o=o=>o==null||o==="",Lo=o=>!_o(o)&&Number(o)===0;function $n({children:o}){return e(Y,{children:o(Fs())})}function hn({direction:o,label:Oe,tabShape:ve,gap:Ro,gapPhone:Be,gapTablet:Q,justify:F,align:$,wrap:j,share:a,sharePhone:H,shareTablet:T,wrapPhone:Ee,orderPhone:Fe,phoneRow:g,columns:R,columnsTablet:y,separator:m,stackBelow:Te,blockSpacing:yo,bgImage:A,bgImagePhone:Ao,pictureHover:ge,darken:ko,darkenStyle:No,darkenTablet:De,darkenPhone:Ie,darkenStyleTablet:Ve,darkenStylePhone:We,placement:Me,padV2:Oo=!1,border:vo,borderTablet:Bo,borderPhone:Eo,pad:t={},contained:Z=!0,fillHeight:h=!1,shadow:oo,shadowTablet:Fo,shadowPhone:To,justifyTablet:Ge,justifyPhone:Xe,alignTablet:je,alignPhone:He,wrapTablet:Ue,blockSpacingTablet:Ke,blockSpacingPhone:Je,loop:w,scrollDirection:eo=At,loopSeconds:ze=kt,loopDelay:Ye=yt,editing:k=!1,fillColor:go,fillColorTablet:qe,fillColorPhone:Qe,line:P,upcoming:Ze,link:os,boxShape:Do,boxShapePhone:es,boxShapeTablet:ss,jumpHighlight:ts,anchor:ns,sharedSides:c=Sn,boxId:Io,mirrorCards:Vo,content:u,rowTitle:so,startsOpen:rs}){const N=k?"":Yt(os),d=h?"":jt(Do,es,ss),ls=!h&&Xt(Do)!=="",_=zt(ts,ns),U=Et(go),O=Ft(go,qe,Qe),Wo=U||O.className?{...U?{backgroundColor:U}:{},...O.style}:void 0,Mo=rn(),K=P===!0&&o!=="tabs"&&o!=="accordion",n=Re(A),J=zs(),as=Hs(),cs=Ds(),Go=gs(),l=o==="accordion",to=Gs(),is=Ms(),v=Rt(o,m),r=w==="scroll"&&o!=="tabs"&&!l,f=Ys(),ms=Zs(),us=ot(),D=rt({inCopy:f!==null,nestedCopy:f?.nested===!0,underBox:us}),no=D&&qs(f?.ownerType),Xo=Le({direction:o,separator:m,loop:w,line:P,bgImage:A,columns:R,columnsTablet:y,share:a,wrap:j},D,c.desktop)&&et(Vo,f?.index),jo=n||D?"":tt(ms,o,r?void 0:F,$),ds=Le({direction:o,separator:m,loop:w,line:P,bgImage:A,columns:R,columnsTablet:y,share:a,wrap:j},D,c.desktop)&&st(Vo)!==null,B=Ct({direction:o,separator:m,loop:w,line:P,columns:R}),C=bt({direction:o,separator:m,loop:w,line:P,columnsTablet:y}),I=pt({direction:o,separator:m,loop:w,line:P,columns:R,columnsTablet:y,share:a,shareTablet:T}),i=o==="row"&&!n&&!v&&!r&&!K&&C===""&&I===""?bn(Te):void 0,fs=js(),z=an(c,u.blockCount??0,i),Cs=z&&(!f||f.index===0)?cn(c,u.blockCount??0,i):"",Ho=C!==""?Number(y)>=2:I===""||E(T)!=="",ro=C!==""||I!=="",bs=ro&&!(C!==""&&Number(y)<2),Uo=o==="row"&&!v&&!r&&P!==!0,lo=Uo&&!c.phone&&!c.desktop?Vs(Ws(Fe,u.blockIds??[]),{tabletKeepsRow:bs,editing:k}):void 0,Ko=lo!==void 0&&!k,ps=B!==""?Number(R)>=2:E(a)!=="",Jo=!n&&!l&&!ds&&!c.desktop&&!c.phone,zo=Jo&&!r?ut(F,Ge,Xe):"",xs=Jo&&o==="row"?ct($,je,He):"",Ss=!r&&!l&&B===""&&C===""&&!c.desktop?dt(j,Ue):"",Yo=[l?"":E(a),o==="row"?ft(a):"",B,C,I,it(l?"gap":yo),Pt(o,m),l?"border-t border-line":"",zo,xs,Ss,l?"":mt(yo,Ke,Je)].filter(Boolean).join(" "),$s=Yo?` ${Yo}`:"",qo=["flex",o==="row"?v||r?"flex-row":`flex-row ${X(g,H,Ee)}`:"flex-col",ht(r||l?!1:j),n?Tt(Me??"center",o):at(r||l?void 0:F,l?void 0:$)+(jo?` ${jo}`:"")].join(" ")+$s,V=h||n||d||to?` ${q}`:"",ao=ls?` ${d}`:d?`${V} ${d}`:V,Qo=is&&o==="column"&&!n&&!r&&E(a)===""&&(typeof F=="string"&&F!=="start"||zo!==""),Zo=V||(Qo?` ${q}`:""),co=N?` ${Ut}`:"",io=n||J||Oo?"":" py-6",hs=i===void 0?"":` ${Cn(i)}`,oe=i===void 0?"":` ${un(i)}`,mo=i===void 0?"":` ${fn(i)}`,ws=`${$o}${io} ${ho}${ao}${co}${oe}${mo}`,Ps=J?`${ao}${co}${mo}`.trim():`w-full${io}${ao}${co}${mo}`,W=lt("Flex",Ro,o==="row"?"inline":"block",Be,v||r?void 0:Q),ee=$t(a,T,o==="row"?u.blockCount??0:0),se=v?{...W.style,...Lt(o,m)}:W.style,_s=ee?{...se,...ee}:se,te=(s="")=>e(u,{className:`${qo}${Xo?` ${nt}`:""}${W.className}${Zo}${hs}${s?` ${s}`:""}${K?` ${nn}`:""}${_?` ${Kt(_)}`:""}${z}`,style:_s,minEmptyHeight:120,...lo?{cell:lo}:null}),ne=Nt(eo)?"":_t(o,m),re=r?e(Ot,{direction:eo,seconds:ze,delay:Ye,editing:k,copy:s=>te(s&&ne?`${s} ${ne}`:s)}):te(),uo=o==="tabs"?e(Ts,{className:`${qo}${W.className}${to&&!h&&!n&&!d?"":V}`,style:W.style,shape:ve,children:re}):re,le=l?e(So.Provider,{value:"accordion",children:uo}):Go?e(So.Provider,{value:!1,children:uo}):uo,ae=o==="row"&&!n&&($===void 0||$==="stretch"),Ls={stretchedRow:ae,fillingColumn:o==="column"&&(to||Qo),columnsRow:B!==""||C!==""||z!==""||o==="row"&&(Array.isArray(a)||Array.isArray(T))||Ko,...Ko?{phoneCells:!0}:null,...ae&&Uo&&(u.blockCount??0)>=2&&ps?{picturesFillRow:!0}:null,...ro?{fillFrom:Ho?"tablet":"desktop"}:null,...xt(g,H)&&(!ro||Ho)?{phoneRowFills:!0}:null,...Io?{id:Io}:null},ce=e(Pe.Provider,{value:Ls,children:e(we.Provider,{value:!1,children:D?e(Qs.Provider,{value:Xo,children:le}):le})}),Rs=so?.blockCount??0,ie=Go==="accordion"&&!!so&&(k||Rs>0)?e(Is,{startsOpen:rs===!0,editing:k,title:e(Pe.Provider,{value:xn,children:e(we.Provider,{value:!1,children:e(So.Provider,{value:!1,children:e(so,{className:`min-w-0 flex-1 ${wt}`,minEmptyHeight:24})})})}),children:ce}):ce,fo=K?e(sn,{row:o==="row",stops:u.blockCount??0,children:ie}):ie,ys=Oe?.trim()||(cs?"":void 0),As={values:t,frame:io?24:0},ks=s=>Mo?e(tn,{on:Mo,future:Ze===!0,children:s}):s,Ns=s=>N.startsWith("/")?e(qt,{href:N,className:Ae,"aria-labelledby":s,[ye]:""}):e("a",{href:N,className:Ae,"aria-labelledby":s,[ye]:""}),me=(_?Jt(_):"")+Cs+(i===void 0||f&&f.index!==0?"":dn(i)),ue=me?e("style",{dangerouslySetInnerHTML:{__html:me}}):null,M=Mt({loop:w,direction:o,scrollDirection:eo,bgImage:A}),Os=c.desktop&&z!==""&&!U&&!O.className&&!ke(vo,Eo,Bo)&&!Vt(oo,Fo,To)&&!N&&!d&&!h&&!_&&!Gt(Z&&!M,fs)&&Lo(Ro)&&(_o(Q)||Lo(Q))&&Oo&&Object.values(t).every(s=>_o(s)||Lo(s)),vs=s=>({...Os?{[ln]:""}:null,...n?null:{...It(oo),...Wt(oo,Fo,To)},..._?{[Ht]:_}:null,...s?{id:s}:null}),de=B!==""?Number(R):0,Bs=X(g,H)===X(void 0),Es=(o==="column"||o==="row"&&!v&&!r&&(de===1&&Bs||de===0&&u.blockCount===1))&&!n&&!K&&!J,fe=n&&as&&!J,Ce=(s,b)=>ks(e(Xs,{contained:Z&&!M,style:M?Po:void 0,framedClass:ws,fillClass:Ps,columnClass:`${$o} ${ho}${Zo}${oe}`,tabLabel:ys,pad:n?void 0:As,border:ke(vo,Eo,Bo),outerAttrs:vs(b),box:!0,edge:Es,outerStyle:n?void 0:Wo,outerClass:n?void 0:O.className||void 0,bleed:fe,children:ue||b?xo(Y,{children:[ue,b?Ns(b):null,M?e(_e,{children:s}):s]}):M?e(_e,{children:s}):s})),be=s=>N?e($n,{children:b=>Ce(s,b)}):Ce(s);if(!n){const s=$===void 0||$==="stretch",b=(E(a)!==""||B!==""||C!=="")&&!St(g,H)&&!(I!==""&&E(T)==="")&&(s||X(g)!==X(void 0));return be((o==="row"?b:o==="column"&&s)?e(Js.Provider,{value:!0,children:fo}):fo)}const G=Bt(ko,No),Co=gt({darken:ko,darkenStyle:No,darkenTablet:De,darkenStyleTablet:Ve,darkenPhone:Ie,darkenStylePhone:We}),pe=[no?"rounded-[inherit]":"",Co.className].filter(Boolean).join(" "),bo=Re(Ao),xe=bo?{"--sf-box-bg":wo(A??""),"--sf-box-bg-p":wo(Ao??"")}:{backgroundImage:wo(A??""),backgroundSize:"cover",backgroundPosition:"center"},Se=en(void 0,void 0,ge),L=Se.className?Se:null,po=Qt({...t,top:x(t.top)??S(p.desktop,t.unit,"desktop"),bottom:x(t.bottom)??S(p.desktop,t.unit,"desktop"),topPhone:x(t.topPhone)??S(p.phone,t.unitPhone,"mobile"),bottomPhone:x(t.bottomPhone)??S(p.phone,t.unitPhone,"mobile"),left:x(t.left)??S(p.side,t.unit,"desktop"),right:x(t.right)??S(p.side,t.unit,"desktop"),leftPhone:x(t.leftPhone)??S(p.sidePhone,t.unitPhone,"mobile"),rightPhone:x(t.rightPhone)??S(p.sidePhone,t.unitPhone,"mobile")}),$e=e("div",{className:`relative z-[1] ${vt} ${po?.className??""}${h||d?` ${q}`:""}`.trimEnd(),style:G?{...po?.style,...Po,...Zt}:{...po?.style,...Po},children:fo}),he=fe&&Z?e("div",{className:`${$o} ${ho}${h||d?` ${q}`:""}`,children:$e}):$e;return be(e(Y,{children:xo("div",{className:`relative isolate overflow-hidden ${Dt}${V}${bo&&!L?` ${Ne}`:""}${O.className?` ${O.className}`:""}`,style:{...no?pn:{},...Wo,...L?{}:xe},...L?{[on]:""}:{},children:[L&&xo(Y,{children:[e(mn,{sheet:L.sheet}),e("div",{"aria-hidden":!0,className:`absolute inset-0${no?" rounded-[inherit]":""}${bo?` ${Ne}`:""} ${L.className}`,style:{...xe,...L.style??{}}})]}),e(Ks,{wash:G&&Co.className?{...G,...Co.style}:G,...pe?{className:pe}:{}}),G?e(Us,{children:he}):he]})}))}export{hn as default};
1
+ import{Fragment as Y,jsx as s,jsxs as So}from"react/jsx-runtime";import{useId as ge}from"react";import De from"./BoxTabs.js";import{BoxTabPaneContext as $o,useBoxPaneKind as Ie,useIsTabPane as Ve}from"./BoxTabPaneContext.js";import We from"./BoxAccordionRow.js";import{boxPhoneCell as Me,boxPhoneOrder as Ge}from"../../format/lib/content/box-phone-place.js";import{CellFillContext as _s,InBoxContext as Rs,useCellOfStretchedRow as Xe,useFillsCell as je}from"./InBoxContext.js";import He,{InsideSiteColumn as Ls,useInsideSiteGutter as Ue,useSectionRoot as Ke}from"./SiteGutterFrame.js";import{BoxSurfaceProvider as Je}from"./BoxSurfaceContext.js";import ze from"./PictureWash.js";import{BoxCellWidthContext as Ye}from"./BoxCellWidthContext.js";import{useInSiteHeader as qe}from"./PhoneMenuTools.js";import{useCardRow as Qe}from"./CardRowContext.js";import{framesItsCards as Ze}from"../../format/lib/content/card-place.js";import{MirrorContext as ot,useMirroredCopy as st,useUnderCardBox as et}from"./MirrorContext.js";import{isMirroredCopy as tt,mirrorCardsActs as ys,mirrorCardsOf as nt,mirroredBoxClass as rt,MIRROR_ROW_CLASS as lt,ownsCard as at}from"../../format/lib/content/mirror-cards.js";import{FRAME_BASE as ho,FRAME_GUTTER as wo}from"./BlockFrame.js";import{containerGapProps as ct}from"../../format/lib/content/container-gap.js";import{boxLayoutClasses as it,boxAlignViewClasses as mt,boxBlockSpacingClass as ut,boxBlockSpacingViewClasses as dt,boxJustifyViewClasses as ft,boxWrapTabletClass as Ct,boxFitContentClass as bt,boxRowColumnsClass as pt,boxRowTabletColumnsClass as xt,boxRowTabletShareClass as St,boxPhoneCellsShareLine as $t,boxPhoneRowClasses as X,boxPhoneRowFits as ht,boxShareClasses as E,boxShareVars as wt,boxWrapClass as Pt,BOX_GAP_ONLY_CLASS as _t}from"../../format/lib/content/box-layout.js";import{boxSeparatorClasses as Rt,boxSeparatorSeamClass as Lt,boxSeparatorStyle as yt,isStripBox as At}from"../../format/lib/content/box-separator.js";import{DEFAULT_LOOP_DELAY as kt,DEFAULT_LOOP_DIRECTION as Nt,DEFAULT_LOOP_SECONDS as Ot,isVerticalLoop as vt}from"../../format/lib/animation/index.js";import{LoopTrack as Bt}from"../lib/animation/LoopTrack.js";import{BOX_CARD_PAD as p,BOX_OWNS_SIDES_CLASS as Et,boxDarkenStyle as Ft,boxFillOf as Tt,boxFillViews as gt,boxPlacementClasses as Dt,boxWashViews as It,CARD_SHADOW_CLASS as Vt,isBackgroundBox as As}from"../../format/lib/content/box-background.js";import{boxShadowAttrs as Wt,boxShadowOnAnyView as Mt,boxShadowViewAttrs as Gt}from"../../format/lib/content/box-shadow.js";import{boxRunsEdgeToEdge as Xt,drawsSiteGutter as jt}from"../../format/lib/content/site-gutter.js";import{boxShapeClass as Ht,boxShapeClasses as Ut}from"../../format/lib/content/box-shape.js";import{BOX_JUMP_ATTR as Kt,BOX_LINK_ATTR as ks,BOX_LINK_CLASS as Ns,BOX_LINKED_CLASS as Jt,boxJumpBlocksClass as zt,boxJumpCss as Yt,boxJumpSlug as qt,boxLinkOf as Qt}from"../../format/lib/content/box-link.js";import{SiteLink as Zt}from"../lib/site-runtime.js";import{sectionBorderStyle as Os}from"../../format/lib/content/borders.js";import{finiteNumber as x}from"../../format/lib/finite-number.js";import{padDefaultIn as S,sectionPadAttrs as on}from"../lib/content/section-padding.js";import{SECTION_FILL_CLASS as q}from"../../format/lib/content/section-min-height.js";import{ON_MEDIA_INK_STYLE as sn}from"../../format/lib/content/ink.js";import{sizedBackground as Po}from"../../format/lib/sized-image.js";import{PHOTO_HOST_ATTR as en,resolveImageTreatment as tn}from"../../format/lib/content/image-treatment.js";import{BoxRail as nn,BoxRailStop as rn,RAIL_STOPS_CLASS as ln,useTimelineRail as an}from"./TimelineRail.js";import{SHARED_PLAIN_ATTR as cn,sharedColumnsClasses as mn,sharedColumnsCss as un,sharedRowsClasses as dn,sharedRowsCss as fn}from"../lib/content/box-shared-columns.js";import Cn from"./PhotoHoverSheet.js";import{stackGutterClass as bn,stackLineCss as pn,stackOuterClass as xn,stackRowClass as Sn,storedStackLine as $n}from"../lib/content/box-stack-line.js";const _o={"--sf-site-gutter":"0px"},hn={overflowX:"clip",overflowY:"visible"},wn={stretchedRow:!1,fillingColumn:!1,columnsRow:!1},Pn={desktop:!1,phone:!1},vs="bg-cover bg-center bg-[image:var(--sf-box-bg)] max-view-tablet:bg-[image:var(--sf-box-bg-p)]",Ro=o=>o==null||o==="",Lo=o=>!Ro(o)&&Number(o)===0;function _n({children:o}){return s(Y,{children:o(ge())})}function Rn({direction:o,label:Bs,tabShape:Es,gap:yo,gapPhone:Fs,gapTablet:Q,justify:F,align:$,wrap:j,share:a,sharePhone:H,shareTablet:T,wrapPhone:Ts,orderPhone:gs,phoneRow:g,columns:L,columnsTablet:y,separator:d,stackBelow:Ds,blockSpacing:Ao,bgImage:A,bgImagePhone:ko,pictureHover:Is,darken:No,darkenStyle:Oo,darkenTablet:Vs,darkenPhone:Ws,darkenStyleTablet:Ms,darkenStylePhone:Gs,placement:Xs,padV2:vo=!1,border:Bo,borderTablet:Eo,borderPhone:Fo,pad:t={},contained:Z=!0,fillHeight:h=!1,shadow:oo,shadowTablet:To,shadowPhone:go,justifyTablet:js,justifyPhone:Hs,alignTablet:Us,alignPhone:Ks,wrapTablet:Js,blockSpacingTablet:zs,blockSpacingPhone:Ys,loop:w,scrollDirection:so=Nt,loopSeconds:qs=Ot,loopDelay:Qs=kt,editing:k=!1,fillColor:Do,fillColorTablet:Zs,fillColorPhone:oe,line:P,upcoming:se,link:ee,boxShape:Io,boxShapePhone:te,boxShapeTablet:ne,jumpHighlight:re,anchor:le,sharedSides:c=Pn,sharedRows:eo=!1,boxId:Vo,mirrorCards:Wo,content:i,rowTitle:to,startsOpen:ae}){const N=k?"":Qt(ee),f=h?"":Ut(Io,te,ne),ce=!h&&Ht(Io)!=="",_=qt(re,le),U=Tt(Do),O=gt(Do,Zs,oe),Mo=U||O.className?{...U?{backgroundColor:U}:{},...O.style}:void 0,Go=an(),K=P===!0&&o!=="tabs"&&o!=="accordion",n=As(A),J=qe(),ie=Ke(),me=Ve(),Xo=Ie(),l=o==="accordion",no=je(),ue=Xe(),v=At(o,d),r=w==="scroll"&&o!=="tabs"&&!l,m=Qe(),de=st(),fe=et(),D=at({inCopy:m!==null,nestedCopy:m?.nested===!0,underBox:fe}),ro=D&&Ze(m?.ownerType),jo=ys({direction:o,separator:d,loop:w,line:P,bgImage:A,columns:L,columnsTablet:y,share:a,wrap:j},D,c.desktop)&&tt(Wo,m?.index),Ho=n||D?"":rt(de,o,r?void 0:F,$),Ce=ys({direction:o,separator:d,loop:w,line:P,bgImage:A,columns:L,columnsTablet:y,share:a,wrap:j},D,c.desktop)&&nt(Wo)!==null,B=pt({direction:o,separator:d,loop:w,line:P,columns:L}),C=xt({direction:o,separator:d,loop:w,line:P,columnsTablet:y}),I=St({direction:o,separator:d,loop:w,line:P,columns:L,columnsTablet:y,share:a,shareTablet:T}),u=o==="row"&&!n&&!v&&!r&&!K&&C===""&&I===""?$n(Ds):void 0,be=Ue(),z=mn(c,i.blockCount??0,u),pe=(z&&(!m||m.index===0)?un(c,i.blockCount??0,u):"")+(eo&&(!m||m.index===0)?fn(eo,i.blockCount??0):""),Uo=dn(eo,i.blockCount??0),Ko=C!==""?Number(y)>=2:I===""||E(T)!=="",lo=C!==""||I!=="",xe=lo&&!(C!==""&&Number(y)<2),Jo=o==="row"&&!v&&!r&&P!==!0,ao=Jo&&!c.phone&&!c.desktop?Me(Ge(gs,i.blockIds??[]),{tabletKeepsRow:xe,editing:k}):void 0,zo=ao!==void 0&&!k,Se=B!==""?Number(L)>=2:E(a)!=="",Yo=!n&&!l&&!Ce&&!c.desktop&&!c.phone,qo=Yo&&!r?ft(F,js,Hs):"",$e=Yo&&o==="row"?mt($,Us,Ks):"",he=!r&&!l&&B===""&&C===""&&!c.desktop?Ct(j,Js):"",Qo=[l?"":E(a),o==="row"?bt(a):"",B,C,I,ut(l?"gap":Ao),Rt(o,d),l?"border-t border-line":"",qo,$e,he,l?"":dt(Ao,zs,Ys)].filter(Boolean).join(" "),we=Qo?` ${Qo}`:"",Zo=["flex",o==="row"?v||r?"flex-row":`flex-row ${X(g,H,Ts)}`:"flex-col",Pt(r||l?!1:j),n?Dt(Xs??"center",o):it(r||l?void 0:F,l?void 0:$)+(Ho?` ${Ho}`:"")].join(" ")+we,V=h||n||f||no?` ${q}`:"",co=ce?` ${f}`:f?`${V} ${f}`:V,os=ue&&o==="column"&&!n&&!r&&E(a)===""&&(typeof F=="string"&&F!=="start"||qo!==""),ss=V||(os?` ${q}`:""),io=N?` ${Jt}`:"",mo=n||J||vo?"":" py-6",Pe=u===void 0?"":` ${Sn(u)}`,es=u===void 0?"":` ${bn(u)}`,uo=u===void 0?"":` ${xn(u)}`,_e=`${ho}${mo} ${wo}${co}${io}${es}${uo}`,Re=J?`${co}${io}${uo}`.trim():`w-full${mo}${co}${io}${uo}`,W=ct("Flex",yo,o==="row"?"inline":"block",Fs,v||r?void 0:Q),ts=wt(a,T,o==="row"?i.blockCount??0:0),ns=v?{...W.style,...yt(o,d)}:W.style,Le=ts?{...ns,...ts}:ns,rs=(e="")=>s(i,{className:`${Zo}${jo?` ${lt}`:""}${W.className}${ss}${Pe}${e?` ${e}`:""}${K?` ${ln}`:""}${_?` ${zt(_)}`:""}${z}${Uo}`,style:Le,minEmptyHeight:120,...ao?{cell:ao}:null}),ls=vt(so)?"":Lt(o,d),as=r?s(Bt,{direction:so,seconds:qs,delay:Qs,editing:k,copy:e=>rs(e&&ls?`${e} ${ls}`:e)}):rs(),fo=o==="tabs"?s(De,{className:`${Zo}${W.className}${no&&!h&&!n&&!f?"":V}`,style:W.style,shape:Es,children:as}):as,cs=l?s($o.Provider,{value:"accordion",children:fo}):Xo?s($o.Provider,{value:!1,children:fo}):fo,is=o==="row"&&!n&&($===void 0||$==="stretch"),ye={stretchedRow:is,fillingColumn:o==="column"&&(no||os),columnsRow:B!==""||C!==""||z!==""||Uo!==""||o==="row"&&(Array.isArray(a)||Array.isArray(T))||zo,...zo?{phoneCells:!0}:null,...is&&Jo&&(i.blockCount??0)>=2&&Se?{picturesFillRow:!0}:null,...lo?{fillFrom:Ko?"tablet":"desktop"}:null,...$t(g,H)&&(!lo||Ko)?{phoneRowFills:!0}:null,...Vo?{id:Vo}:null},ms=s(Rs.Provider,{value:ye,children:s(_s.Provider,{value:!1,children:D?s(ot.Provider,{value:jo,children:cs}):cs})}),Ae=to?.blockCount??0,us=Xo==="accordion"&&!!to&&(k||Ae>0)?s(We,{startsOpen:ae===!0,editing:k,title:s(Rs.Provider,{value:wn,children:s(_s.Provider,{value:!1,children:s($o.Provider,{value:!1,children:s(to,{className:`min-w-0 flex-1 ${_t}`,minEmptyHeight:24})})})}),children:ms}):ms,Co=K?s(nn,{row:o==="row",stops:i.blockCount??0,children:us}):us,ke=Bs?.trim()||(me?"":void 0),Ne={values:t,frame:mo?24:0},Oe=e=>Go?s(rn,{on:Go,future:se===!0,children:e}):e,ve=e=>N.startsWith("/")?s(Zt,{href:N,className:Ns,"aria-labelledby":e,[ks]:""}):s("a",{href:N,className:Ns,"aria-labelledby":e,[ks]:""}),ds=(_?Yt(_):"")+pe+(u===void 0||m&&m.index!==0?"":pn(u)),fs=ds?s("style",{dangerouslySetInnerHTML:{__html:ds}}):null,M=Xt({loop:w,direction:o,scrollDirection:so,bgImage:A}),Be=c.desktop&&z!==""&&!U&&!O.className&&!Os(Bo,Fo,Eo)&&!Mt(oo,To,go)&&!N&&!f&&!h&&!_&&!jt(Z&&!M,be)&&Lo(yo)&&(Ro(Q)||Lo(Q))&&vo&&Object.values(t).every(e=>Ro(e)||Lo(e)),Ee=e=>({...Be?{[cn]:""}:null,...n?null:{...Wt(oo),...Gt(oo,To,go)},..._?{[Kt]:_}:null,...e?{id:e}:null}),Cs=B!==""?Number(L):0,Fe=X(g,H)===X(void 0),Te=(o==="column"||o==="row"&&!v&&!r&&(Cs===1&&Fe||Cs===0&&i.blockCount===1))&&!n&&!K&&!J,bs=n&&ie&&!J,ps=(e,b)=>Oe(s(He,{contained:Z&&!M,style:M?_o:void 0,framedClass:_e,fillClass:Re,columnClass:`${ho} ${wo}${ss}${es}`,tabLabel:ke,pad:n?void 0:Ne,border:Os(Bo,Fo,Eo),outerAttrs:Ee(b),box:!0,edge:Te,outerStyle:n?void 0:Mo,outerClass:n?void 0:O.className||void 0,bleed:bs,children:fs||b?So(Y,{children:[fs,b?ve(b):null,M?s(Ls,{children:e}):e]}):M?s(Ls,{children:e}):e})),xs=e=>N?s(_n,{children:b=>ps(e,b)}):ps(e);if(!n){const e=$===void 0||$==="stretch",b=(E(a)!==""||B!==""||C!=="")&&!ht(g,H)&&!(I!==""&&E(T)==="")&&(e||X(g)!==X(void 0));return xs((o==="row"?b:o==="column"&&e)?s(Ye.Provider,{value:!0,children:Co}):Co)}const G=Ft(No,Oo),bo=It({darken:No,darkenStyle:Oo,darkenTablet:Vs,darkenStyleTablet:Ms,darkenPhone:Ws,darkenStylePhone:Gs}),Ss=[ro?"rounded-[inherit]":"",bo.className].filter(Boolean).join(" "),po=As(ko),$s=po?{"--sf-box-bg":Po(A??""),"--sf-box-bg-p":Po(ko??"")}:{backgroundImage:Po(A??""),backgroundSize:"cover",backgroundPosition:"center"},hs=tn(void 0,void 0,Is),R=hs.className?hs:null,xo=on({...t,top:x(t.top)??S(p.desktop,t.unit,"desktop"),bottom:x(t.bottom)??S(p.desktop,t.unit,"desktop"),topPhone:x(t.topPhone)??S(p.phone,t.unitPhone,"mobile"),bottomPhone:x(t.bottomPhone)??S(p.phone,t.unitPhone,"mobile"),left:x(t.left)??S(p.side,t.unit,"desktop"),right:x(t.right)??S(p.side,t.unit,"desktop"),leftPhone:x(t.leftPhone)??S(p.sidePhone,t.unitPhone,"mobile"),rightPhone:x(t.rightPhone)??S(p.sidePhone,t.unitPhone,"mobile")}),ws=s("div",{className:`relative z-[1] ${Et} ${xo?.className??""}${h||f?` ${q}`:""}`.trimEnd(),style:G?{...xo?.style,..._o,...sn}:{...xo?.style,..._o},children:Co}),Ps=bs&&Z?s("div",{className:`${ho} ${wo}${h||f?` ${q}`:""}`,children:ws}):ws;return xs(s(Y,{children:So("div",{className:`relative isolate overflow-hidden ${Vt}${V}${po&&!R?` ${vs}`:""}${O.className?` ${O.className}`:""}`,style:{...ro?hn:{},...Mo,...R?{}:$s},...R?{[en]:""}:{},children:[R&&So(Y,{children:[s(Cn,{sheet:R.sheet}),s("div",{"aria-hidden":!0,className:`absolute inset-0${ro?" rounded-[inherit]":""}${po?` ${vs}`:""} ${R.className}`,style:{...$s,...R.style??{}}})]}),s(ze,{wash:G&&bo.className?{...G,...bo.style}:G,...Ss?{className:Ss}:{}}),G?s(Je,{children:Ps}):Ps]})}))}export{Rn as default};
@@ -1,3 +1,4 @@
1
+ import type { SlotComponent } from "efficient-easel/blocks";
1
2
  import type { MapThemeMode } from "../../format/lib/map-styles.js";
2
3
  import { type FootprintOffice } from "../../format/lib/content/footprint.js";
3
4
  import { type DealerListPosition, type FootprintSource } from "../lib/dealer-source.js";
@@ -17,5 +18,7 @@ export interface FootprintProps {
17
18
  noMatchText?: string;
18
19
  listPosition?: DealerListPosition;
19
20
  showDistance?: boolean;
21
+ template?: SlotComponent;
22
+ ownerId?: string;
20
23
  }
21
- export default function Footprint({ sectionNumber, heading, tagline, offices, mapTheme, padTop, padBottom, editing, omitHead, source, search, searchHint, noMatchText, listPosition, showDistance, }: FootprintProps): import("react").JSX.Element | null;
24
+ export default function Footprint({ sectionNumber, heading, tagline, offices, mapTheme, padTop, padBottom, editing, omitHead, source, search, searchHint, noMatchText, listPosition, showDistance, template, ownerId, }: FootprintProps): import("react").JSX.Element | null;
@@ -1 +1 @@
1
- "use client";import{jsx as e,jsxs as o}from"react/jsx-runtime";import{useEffect as L,useMemo as F,useState as M}from"react";import{footprintPins as A}from"../../format/lib/content/footprint.js";import{bucketByGroup as B,groupColsClass as G}from"../../format/lib/locations-grid.js";import K from"./EditorialSectionHead.js";import{LocationGroupHeader as P}from"./LocationGroupHeader.js";import{renderGold as q,renderHeadline as D}from"./goldPhrases.js";import Q from"./PartStyledText.js";import{say as j}from"../../format/lib/editor-words.js";import{parseFootprintSource as I}from"../lib/dealer-source.js";import O from"./DealerFinder.js";import W from"./SiteMap.js";const n={bodySmall:"text-[length:var(--size-body,10px)]",bodyLarge:"text-[length:var(--size-body,18px)]",labelSmall:"text-[length:var(--size-label,11px)]",labelLarge:"text-[length:var(--size-label,12px)]"};function X({sectionNumber:c="",heading:i="",tagline:f="",offices:a=[],mapTheme:x="auto",padTop:g,padBottom:d,editing:p,omitHead:v=!1,source:s,search:u=!1,searchHint:r="",noMatchText:k="",listPosition:m="below",showDistance:C=!0}){const h=I(s)==="dealers",H=typeof g=="number"?g:120,T=typeof d=="number"?d:120,[w,N]=M(null),_=a.length===0&&!h&&!c&&!i&&!f;if(L(()=>{N(t=>t!==null&&t>=a.length?null:t)},[a]),_&&!p)return null;const z=B(a,t=>String(t.group??""),()=>"");return e("section",{className:"relative z-[2] bg-bg",children:o("div",{className:"mx-auto max-w-[var(--sf-site-width,1600px)] border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]",style:{paddingTop:H,paddingBottom:T},children:[!v&&(c||i||f)&&e(K,{num:c,title:i?D(i):void 0,desc:f||void 0,spaceBelow:"mb-12"}),h?e(O,{mapLabel:i.replace(/[=*]/g,"").replace(/\s+/g," ").trim(),mapTheme:x,search:u,searchHint:r,noMatchText:k,listPosition:m,showDistance:C,editing:p}):e(Z,{offices:a,mapLabel:i.replace(/[=*]/g,"").replace(/\s+/g," ").trim(),mapTheme:x,activeIndex:w,onSelect:N,editing:p}),!h&&a.length>0&&e("div",{className:"mt-12 flex flex-col gap-8",children:z.map((t,E)=>o("div",{children:[t.key&&e(P,{groupKey:t.key,count:t.items.length}),e("div",{className:["grid gap-[2px] bg-bg",G(t.items.length),t.items.length>2?"max-view-desktop:grid-cols-2 max-[700px]:grid-cols-1":t.items.length===2?"max-[700px]:grid-cols-1":""].join(" "),children:t.items.map(({item:l,index:y})=>{const S=w===y,b=l.href&&l.linkLabel?{href:l.href,label:l.linkLabel}:null,$=o("button",{type:"button",onClick:()=>N(y),"aria-pressed":S,className:["flex flex-col gap-1.5 bg-bg px-6 py-5 text-left transition-colors outline outline-1 -outline-offset-1",S?"outline-accent":"outline-transparent hover:outline-line",b?"w-full pb-11":""].filter(Boolean).join(" "),children:[o("span",{className:`flex items-center gap-2.5 font-mono ${n.labelSmall} uppercase tracking-[0.28em]`,children:[l.hq&&e("span",{className:`border border-accent bg-accent px-1.5 py-0.5 ${n.bodySmall} text-bg`,children:"HQ"}),l.role&&e("span",{className:"text-accent",children:l.role})]}),l.city&&e("span",{className:`font-display ${n.bodyLarge} font-medium leading-[1.2] tracking-[-0.01em] text-fg`,children:e(Q,{value:l.city,children:l.city})}),l.country&&e("span",{className:`font-mono ${n.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:l.country}),l.address&&e("span",{className:`font-mono ${n.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:q(l.address)})]},b?void 0:y);return b?o("div",{className:"relative flex",children:[$,e("a",{href:b.href,className:`absolute bottom-5 left-6 font-mono ${n.labelSmall} uppercase tracking-[0.24em] text-accent hover:underline`,children:`→ ${b.label}`})]},y):$})})]},t.key?`g:${t.key}`:`ungrouped:${E}`))}),!h&&a.length===0&&p&&e("p",{className:`mt-8 font-mono ${n.labelLarge} uppercase tracking-[0.24em] text-fg-dim`,children:j("Add an office in the inspector")})]})})}function Z({offices:c,mapLabel:i,mapTheme:f,activeIndex:a,onSelect:x,editing:g}){const d=F(()=>A(c),[c]),[p,v]=M(null),s=a===null?null:String(a),u=s!==null&&d.some(m=>m.key===s);if(L(()=>{s!==null&&u&&v(m=>({key:s,n:(m?.n??0)+1}))},[s,u]),d.length===0)return g?e("div",{className:"relative flex aspect-[16/9] w-full items-center justify-center overflow-hidden border border-line bg-bg px-6 text-center max-view-tablet:aspect-[4/5]",children:e("span",{className:`font-mono ${n.labelLarge} uppercase tracking-[0.24em] text-fg-dim`,children:j("Add office coordinates to plot the map")})}):null;const r=u&&a!==null?c[a]:null,k=r?o("div",{className:"flex items-start gap-3 border border-line bg-bg px-3.5 py-2.5 text-fg shadow-[0_8px_24px_rgba(0,0,0,.4)]",children:[o("div",{className:"min-w-0 flex-1",children:[o("div",{className:`flex items-center gap-2 font-mono ${n.labelSmall} uppercase tracking-[0.28em]`,children:[r.hq&&e("span",{className:`bg-accent px-1.5 py-px ${n.bodySmall} text-bg`,children:"HQ"}),r.role&&e("span",{className:"text-accent",children:r.role})]}),r.city&&e("div",{className:`mt-1.5 font-display ${n.bodyLarge} font-medium leading-[1.2] text-fg`,children:r.city}),r.country&&e("div",{className:`mt-1 font-mono ${n.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:r.country})]}),e("button",{type:"button",onClick:()=>x(null),"aria-label":"Close",className:"-mr-1 grid h-6 w-6 shrink-0 place-items-center text-fg-dim hover:text-fg",children:e("svg",{"aria-hidden":!0,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:e("path",{d:"M2 2l8 8M10 2l-8 8"})})})]}):null;return e(W,{pins:d,mapTheme:f,ariaLabel:i||"Offices",className:"sf-card relative aspect-[16/9] w-full overflow-hidden border border-line max-view-tablet:aspect-[4/5]",selectedKey:u?s:null,focus:p,onSelect:m=>x(Number(m)),card:k})}export{X as default};
1
+ "use client";import{jsx as t,jsxs as m}from"react/jsx-runtime";import{useEffect as T,useMemo as B,useState as C}from"react";import{CardTemplateRows as I}from"./CardRowContext.js";import{footprintCardRow as K,footprintPins as O}from"../../format/lib/content/footprint.js";import{bucketByGroup as P,groupColsClass as q}from"../../format/lib/locations-grid.js";import D from"./EditorialSectionHead.js";import{LocationGroupHeader as Q}from"./LocationGroupHeader.js";import{renderGold as R,renderHeadline as W}from"./goldPhrases.js";import X from"./PartStyledText.js";import{say as j}from"../../format/lib/editor-words.js";import{parseFootprintSource as Z}from"../lib/dealer-source.js";import J from"./DealerFinder.js";import U from"./SiteMap.js";const a={bodySmall:"text-[length:var(--size-body,10px)]",bodyLarge:"text-[length:var(--size-body,18px)]",labelSmall:"text-[length:var(--size-label,11px)]",labelLarge:"text-[length:var(--size-label,12px)]"};function V({sectionNumber:d="",heading:i="",tagline:g="",offices:n=[],mapTheme:b="auto",padTop:h,padBottom:u,editing:f,omitHead:w=!1,source:o,search:x=!1,searchHint:r="",noMatchText:N="",listPosition:p="below",showDistance:F=!0,template:G,ownerId:H=""}){const y=Z(o)==="dealers",_=typeof h=="number"?h:120,z=typeof u=="number"?u:120,[S,v]=C(null),E=n.length===0&&!y&&!d&&!i&&!g;if(T(()=>{v(e=>e!==null&&e>=n.length?null:e)},[n]),E&&!f)return null;const L=P(n,e=>String(e.group??""),()=>""),A=(e,l)=>{const s=S===l,c=e.href&&e.linkLabel?{href:e.href,label:e.linkLabel}:null,k=m("button",{type:"button",onClick:()=>v(l),"aria-pressed":s,className:["flex flex-col gap-1.5 bg-bg px-6 py-5 text-left transition-colors outline outline-1 -outline-offset-1",s?"outline-accent":"outline-transparent hover:outline-line",c?"w-full pb-11":""].filter(Boolean).join(" "),children:[m("span",{className:`flex items-center gap-2.5 font-mono ${a.labelSmall} uppercase tracking-[0.28em]`,children:[e.hq&&t("span",{className:`border border-accent bg-accent px-1.5 py-0.5 ${a.bodySmall} text-bg`,children:"HQ"}),e.role&&t("span",{className:"text-accent",children:e.role})]}),e.city&&t("span",{className:`font-display ${a.bodyLarge} font-medium leading-[1.2] tracking-[-0.01em] text-fg`,children:t(X,{value:e.city,children:e.city})}),e.country&&t("span",{className:`font-mono ${a.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:e.country}),e.address&&t("span",{className:`font-mono ${a.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:R(e.address)})]},c?void 0:l);return c?m("div",{className:"relative flex",children:[k,t("a",{href:c.href,className:`absolute bottom-5 left-6 font-mono ${a.labelSmall} uppercase tracking-[0.24em] text-accent hover:underline`,children:`→ ${c.label}`})]},l):k},$=L.flatMap(e=>e.items),M=e=>t("div",{className:"mt-12 flex flex-col gap-8",children:L.map((l,s)=>m("div",{children:[l.key&&t(Q,{groupKey:l.key,count:l.items.length}),t("div",{className:["grid gap-[2px] bg-bg",q(l.items.length),l.items.length>2?"max-view-desktop:grid-cols-2 max-[700px]:grid-cols-1":l.items.length===2?"max-[700px]:grid-cols-1":""].join(" "),children:e(l)})]},l.key?`g:${l.key}`:`ungrouped:${s}`))});return t("section",{className:"relative z-[2] bg-bg",children:m("div",{className:"mx-auto max-w-[var(--sf-site-width,1600px)] border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]",style:{paddingTop:_,paddingBottom:z},children:[!w&&(d||i||g)&&t(D,{num:d,title:i?W(i):void 0,desc:g||void 0,spaceBelow:"mb-12"}),y?t(J,{mapLabel:i.replace(/[=*]/g,"").replace(/\s+/g," ").trim(),mapTheme:b,search:x,searchHint:r,noMatchText:N,listPosition:p,showDistance:F,editing:f}):t(Y,{offices:n,mapLabel:i.replace(/[=*]/g,"").replace(/\s+/g," ").trim(),mapTheme:b,activeIndex:S,onSelect:v,editing:f}),!y&&n.length>0&&t(I,{ownerId:H,ownerType:"Footprint",Template:G,rows:$.map(({item:e})=>K(e)),states:$.map(({index:e})=>S===e?{selected:!0}:void 0),actions:$.map(({index:e})=>({press:()=>v(e)})),fallback:M(e=>e.items.map(({item:l,index:s})=>A(l,s))),children:e=>{const l=e;let s=0;return M(c=>{const k=l.slice(s,s+c.items.length);return s+=c.items.length,k})}}),!y&&n.length===0&&f&&t("p",{className:`mt-8 font-mono ${a.labelLarge} uppercase tracking-[0.24em] text-fg-dim`,children:j("Add an office in the inspector")})]})})}function Y({offices:d,mapLabel:i,mapTheme:g,activeIndex:n,onSelect:b,editing:h}){const u=B(()=>O(d),[d]),[f,w]=C(null),o=n===null?null:String(n),x=o!==null&&u.some(p=>p.key===o);if(T(()=>{o!==null&&x&&w(p=>({key:o,n:(p?.n??0)+1}))},[o,x]),u.length===0)return h?t("div",{className:"relative flex aspect-[16/9] w-full items-center justify-center overflow-hidden border border-line bg-bg px-6 text-center max-view-tablet:aspect-[4/5]",children:t("span",{className:`font-mono ${a.labelLarge} uppercase tracking-[0.24em] text-fg-dim`,children:j("Add office coordinates to plot the map")})}):null;const r=x&&n!==null?d[n]:null,N=r?m("div",{className:"flex items-start gap-3 border border-line bg-bg px-3.5 py-2.5 text-fg shadow-[0_8px_24px_rgba(0,0,0,.4)]",children:[m("div",{className:"min-w-0 flex-1",children:[m("div",{className:`flex items-center gap-2 font-mono ${a.labelSmall} uppercase tracking-[0.28em]`,children:[r.hq&&t("span",{className:`bg-accent px-1.5 py-px ${a.bodySmall} text-bg`,children:"HQ"}),r.role&&t("span",{className:"text-accent",children:r.role})]}),r.city&&t("div",{className:`mt-1.5 font-display ${a.bodyLarge} font-medium leading-[1.2] text-fg`,children:r.city}),r.country&&t("div",{className:`mt-1 font-mono ${a.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:r.country})]}),t("button",{type:"button",onClick:()=>b(null),"aria-label":"Close",className:"-mr-1 grid h-6 w-6 shrink-0 place-items-center text-fg-dim hover:text-fg",children:t("svg",{"aria-hidden":!0,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:t("path",{d:"M2 2l8 8M10 2l-8 8"})})})]}):null;return t(U,{pins:u,mapTheme:g,ariaLabel:i||"Offices",className:"sf-card relative aspect-[16/9] w-full overflow-hidden border border-line max-view-tablet:aspect-[4/5]",selectedKey:x?o:null,focus:f,onSelect:p=>b(Number(p)),card:N})}export{V as default};
@@ -15,8 +15,8 @@ export declare function heroMediaReading(p: {
15
15
  onClick: boolean;
16
16
  youTubeId: string | null;
17
17
  backgroundFile: boolean;
18
- desktopLayout: "side" | "one" | "stacked";
19
- phoneLayout: "side" | "one" | "stacked";
18
+ desktopLayout: "one" | "side" | "stacked";
19
+ phoneLayout: "one" | "side" | "stacked";
20
20
  twoPictures: boolean;
21
21
  };
22
22
  export declare function heroPartEntrance(partMotion: Record<string, unknown> | undefined, part: HeroMediaPart): {
@@ -1,6 +1,7 @@
1
1
  import type { ReactNode } from "react";
2
- export default function PartStyledKind({ kind, shared, children, }: {
2
+ export default function PartStyledKind({ kind, shared, declare, children, }: {
3
3
  kind: string;
4
4
  shared?: boolean;
5
+ declare?: boolean;
5
6
  children: ReactNode;
6
7
  }): import("react").JSX.Element;
@@ -1 +1 @@
1
- "use client";import{Fragment as i,jsx as n}from"react/jsx-runtime";import{usePartEntrance as l,usePublishedPartKindRule as m,usePublishedSharedKindRule as f}from"./PublishedPartStylesContext.js";import{PART_STYLED_ATTR as T,TEXT_STYLE_ATTR as c}from"../lib/document/part-styles.js";function d({kind:e,shared:s=!1,children:r}){const o=m(e),a=f(e),t=s?a:o,u=l(t);return t?n("span",{ref:u,[T]:t.stamp,...t.textStyle?{[c]:t.textStyle}:{},children:r}):n(i,{children:r})}export{d as default};
1
+ "use client";import{jsx as n,Fragment as l}from"react/jsx-runtime";import{usePartEntrance as f,usePublishedPartKindRule as m,usePublishedSharedKindRule as T}from"./PublishedPartStylesContext.js";import{PART_STYLED_ATTR as p,TEXT_STYLE_ATTR as c}from"../lib/document/part-styles.js";import{PART_KIND_ATTR as R}from"../lib/document/text-parts.js";function _({kind:e,shared:s=!1,declare:o=!1,children:r}){const a=m(e),u=T(e),t=s?u:a,i=f(t);return o&&!t?n("span",{[R]:e,children:r}):t?n("span",{ref:i,[p]:t.stamp,...t.textStyle?{[c]:t.textStyle}:{},children:r}):n(l,{children:r})}export{_ as default};
@@ -17,7 +17,9 @@ interface TextProps {
17
17
  hero?: boolean;
18
18
  partAlign?: unknown;
19
19
  onLine?: boolean;
20
+ partKey?: string;
21
+ partDeclare?: boolean;
20
22
  }
21
23
  export declare function headingLevelOfStyle(id: string): HeadingLevel;
22
- export default function Text({ text, number, align, alignTablet, alignPhone, tone, contained, hero, pad, tag, textStyle, ownWidth, partAlign, onLine }: TextProps): import("react").JSX.Element;
24
+ export default function Text({ text, number, align, alignTablet, alignPhone, tone, contained, hero, pad, tag, textStyle, ownWidth, partAlign, onLine, partKey, partDeclare }: TextProps): import("react").JSX.Element;
23
25
  export {};
@@ -1 +1 @@
1
- import{jsx as r,jsxs as _}from"react/jsx-runtime";import T from"./BlockFrame.js";import{renderGold as x,renderHeadline as k,splitParagraphs as O}from"./goldPhrases.js";import{headingLook as j}from"./Heading.js";import{alignViewClasses as z}from"../../format/lib/content/block-align.js";import{textTagOf as I}from"../../format/lib/content/text-tag.js";import{KICKER_NUMBER_ATTR as L,kickerLead as R}from"../lib/content/page-contents.js";import{isTextStyleId as A}from"../lib/document/part-styles.js";import{faceClassOf as N}from"../../format/lib/text-style-face.js";import{useMirroredCopy as M}from"./MirrorContext.js";import{mirroredTextClasses as v}from"../../format/lib/content/mirror-cards.js";const d={bodyUpTo800:"max-view-wide:text-[length:var(--size-body,14px)]",bodySmall:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,17px)]",label:"text-[length:var(--size-label,13px)]"},m=e=>e?` ${e}`:"";function U(e,l,t){const o=z("place",e,l,t);return o?` ${o}`:""}const B={left:"text-left",center:"text-left mx-auto",right:"text-left ml-auto"},G=`max-w-[380px] ${d.bodySmall} leading-[1.5] opacity-80 ${d.bodyUpTo800}`,H={default:"text-fg",dim:"text-fg-dim"};function K(e){return String(Math.min(Number(e.slice(8)),6))}function F({text:e,number:l,align:t,alignTablet:o,alignPhone:w,tone:h,contained:u,hero:C=!1,pad:i,tag:S,textStyle:g,ownWidth:E=!1,partAlign:y,onLine:n=!1}){const $=M();if(C)return r("p",{className:G,children:x(e)});const c=l?r("span",{[L]:"",children:R(l)}):void 0,a=A(g)?g:void 0,b=`${a?`${N({id:a})} `:""}${E?"":"max-w-[680px] "}whitespace-pre-line ${a==="body-5"?d.label:d.bodyLarge} leading-[1.7]${m(t?B[t]:"")}${U(t,o,w)}${m(h?H[h]:"")}${m(v($,t,y))}`,f=I(S);if(a?.startsWith("heading-")){const p=K(a),s=j(p,N({id:a}));return r(T,{contained:u,className:n?"":"py-6",pad:i?{values:i,frame:n?0:24}:void 0,children:_(f,{className:`${s.className}${m(v($,void 0,y))}`,style:s.style,children:[c,k(e.trim(),!1)]})})}return r(T,{contained:u,className:n?"":"py-4",pad:i?{values:i,frame:n?0:16}:void 0,children:f==="p"?O(e).map((p,s)=>r("p",{className:b,children:x(p,!1,s===0?c:void 0)},s)):r(f,{className:b,children:x(e.trim(),!1,c)})})}export{F as default,K as headingLevelOfStyle};
1
+ import{jsx as t,jsxs as j}from"react/jsx-runtime";import v from"./BlockFrame.js";import{renderGold as h,renderHeadline as z,splitParagraphs as I}from"./goldPhrases.js";import{headingLook as L}from"./Heading.js";import{alignViewClasses as R}from"../../format/lib/content/block-align.js";import{textTagOf as A}from"../../format/lib/content/text-tag.js";import{KICKER_NUMBER_ATTR as M,kickerLead as U}from"../lib/content/page-contents.js";import{isTextStyleId as B}from"../lib/document/part-styles.js";import{faceClassOf as S}from"../../format/lib/text-style-face.js";import{useMirroredCopy as G}from"./MirrorContext.js";import{mirroredTextClasses as C}from"../../format/lib/content/mirror-cards.js";import H from"./PartStyledKind.js";const c={bodyUpTo800:"max-view-wide:text-[length:var(--size-body,14px)]",bodySmall:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,17px)]",label:"text-[length:var(--size-label,13px)]"},m=e=>e?` ${e}`:"";function K(e,o,a){const i=R("place",e,o,a);return i?` ${i}`:""}const P={left:"text-left",center:"text-left mx-auto",right:"text-left ml-auto"},F=`max-w-[380px] ${c.bodySmall} leading-[1.5] opacity-80 ${c.bodyUpTo800}`,V={default:"text-fg",dim:"text-fg-dim"};function W(e){return String(Math.min(Number(e.slice(8)),6))}function X({text:e,number:o,align:a,alignTablet:i,alignPhone:k,tone:u,contained:g,hero:w=!1,pad:n,tag:E,textStyle:y,ownWidth:_=!1,partAlign:$,onLine:d=!1,partKey:b,partDeclare:O=!1}){const f=s=>b?t(H,{kind:b,declare:O,children:s}):s,T=G();if(w)return t("p",{className:F,children:h(e)});const p=o?t("span",{[M]:"",children:U(o)}):void 0,r=B(y)?y:void 0,N=`${r?`${S({id:r})} `:""}${_?"":"max-w-[680px] "}whitespace-pre-line ${r==="body-5"?c.label:c.bodyLarge} leading-[1.7]${m(a?P[a]:"")}${K(a,i,k)}${m(u?V[u]:"")}${m(C(T,a,$))}`,x=A(E);if(r?.startsWith("heading-")){const s=W(r),l=L(s,S({id:r}));return t(v,{contained:g,className:d?"":"py-6",pad:n?{values:n,frame:d?0:24}:void 0,children:j(x,{className:`${l.className}${m(C(T,void 0,$))}`,style:l.style,children:[p,f(z(e.trim(),!1))]})})}return t(v,{contained:g,className:d?"":"py-4",pad:n?{values:n,frame:d?0:16}:void 0,children:x==="p"?I(e).map((s,l)=>t("p",{className:N,children:f(h(s,!1,l===0?p:void 0))},l)):t(x,{className:N,children:f(h(e.trim(),!1,p))})})}export{X as default,W as headingLevelOfStyle};
@@ -29,3 +29,9 @@ export declare function sharedColumnsCss(sides: {
29
29
  desktop: boolean;
30
30
  phone: boolean;
31
31
  }, n: number, from?: number): string;
32
+ export declare const SHARED_ROWS_KEY = "sharedRows";
33
+ export declare const SHARED_ROWS_LIST_CLASS = "sf-shared-rows-list";
34
+ export declare function sharedRowsFits(props: Record<string, unknown>): boolean;
35
+ export declare function sharedRowsDrawn(props: Record<string, unknown>): boolean;
36
+ export declare function sharedRowsClasses(drawn: boolean, n: number): string;
37
+ export declare function sharedRowsCss(drawn: boolean, n: number): string;
@@ -1 +1 @@
1
- import{REPEAT_ATTRIBUTE as i,phoneKey as b,tabletKey as C}from"efficient-easel/draw";import{parseLoop as S}from"../../../format/lib/animation/loop.js";import{finiteNumber as _}from"../../../format/lib/finite-number.js";import{isBackgroundBox as g}from"../../../format/lib/content/box-background.js";import{isStripBox as x}from"../../../format/lib/content/box-separator.js";import{CARD_STATE_ATTR as A}from"../../../format/lib/content/card-state.js";import{BOX_ALIGN_CLASS as r,boxRowColumnsClass as E,boxRowTabletColumnsClass as O}from"../../../format/lib/content/box-layout.js";const $="sharedColumns",c="shared",u="own",d="scroll",K="Row columns",F=[{value:u,label:"Each row"},{value:c,label:"Shared"}],w=[{value:u,label:"Each row"},{value:d,label:"Shared, scroll"}],R="(width >= 800px)",N="(width < 800px)";function y(t){const o={direction:t.direction,separator:t.separator,loop:S(t.loop),line:t.line};return o.direction==="row"&&!x(o.direction,o.separator)&&o.loop!=="scroll"&&o.line!==!0&&!g(typeof t.bgImage=="string"?t.bgImage:void 0)&&E({...o,columns:t.columns})===""&&O({...o,columnsTablet:t[C("columns")]})===""}function T(t){return Array.isArray(t)?t.filter(o=>typeof o?.type=="string").length:_(t?.blockCount)??0}function G(t){return y(t)&&a(T(t.content))>0?L(t[$],t[b($)]):{desktop:!1,phone:!1}}const a=t=>Number.isInteger(t)&&t>0?t:0,m=(t,o)=>`sf-shared-cols-${t}${o===void 0?"":`-from-${o}`}`,p=t=>`sf-shared-cols-phone-${t}`;function L(t,o){return{desktop:t===c,phone:o===d}}function X(t,o,n){const e=a(o);return e?`${t.desktop?` ${m(e,n)}`:""}${t.phone?` ${p(e)}`:""}`:""}function h(t){const o=`[${i}]`;return`:has(> ${o} ${t}):not(:has(> ${o} ${o} ${t}))`}function f(t,o,n=""){const e=h(t);return`${e}{display:grid;grid-template-columns:${o};column-gap:0${n}}${e}>:not(:has(${t})):not(${t}){grid-column:1/-1}${e} :has(${t}),${e} ${t}{display:grid;grid-template-columns:subgrid;grid-column:1/-1;min-width:0}`}const D="data-sf-shared-plain";function H(t){const o=`[${i}]`,n=`[${D}]`,e=h(t)+`:not(:has(> :not(${o}) > :not(${n}) ${t})):not(:has(> ${o} > * > :not(${n}) ${t})):not(:has(:not(${n}) > :not(${n}) > ${t})):not(:has(> ${o}[${A}]))`,s=`${e}>:not(style):not(:has(${t})):not(${t})`;return`${e}{display:table;width:100%;border-collapse:collapse}${e}>:has(${t}),${e}>${o}>:has(${t}),${e} ${n}:has(${t}),${e} ${n}>:has(${t}){display:contents}${e} ${t}{display:table-row}${e} ${t}>*{display:table-cell;width:auto;vertical-align:top}${e} ${t}.${r.center}>*{vertical-align:middle}${e} ${t}.${r.end}>*{vertical-align:bottom}${s}{display:table-caption;caption-side:bottom}${s}:has(~ ${o}){caption-side:top}`}function Y(t,o,n){const e=a(o);if(!e)return"";let s="";if(t.desktop){const l=`.${m(e,n)}`;s+=`@media ${n===void 0?R:`(width >= ${n}px)`}{${f(l,`repeat(${e},auto)`)}${H(l)}}`}return t.phone&&(s+=`@media ${N}{${f(`.${p(e)}`,`repeat(${e},minmax(max-content,auto))`,";overflow-x:auto")}}`),s}export{$ as SHARED_COLUMNS_KEY,K as SHARED_COLUMNS_LABEL,u as SHARED_COLUMNS_OFF,w as SHARED_COLUMNS_PHONE_POINTS,F as SHARED_COLUMNS_POINTS,D as SHARED_PLAIN_ATTR,X as sharedColumnsClasses,Y as sharedColumnsCss,G as sharedColumnsDrawn,y as sharedColumnsFits};
1
+ import{REPEAT_ATTRIBUTE as l,phoneKey as x,tabletKey as A}from"efficient-easel/draw";import{parseLoop as c}from"../../../format/lib/animation/loop.js";import{finiteNumber as E}from"../../../format/lib/finite-number.js";import{isBackgroundBox as $}from"../../../format/lib/content/box-background.js";import{isStripBox as O}from"../../../format/lib/content/box-separator.js";import{CARD_STATE_ATTR as y}from"../../../format/lib/content/card-state.js";import{BOX_ALIGN_CLASS as u,boxRowColumnsClass as N,boxRowTabletColumnsClass as T}from"../../../format/lib/content/box-layout.js";const d="sharedColumns",m="shared",h="own",f="scroll",X="Row columns",q=[{value:h,label:"Each row"},{value:m,label:"Shared"}],z=[{value:h,label:"Each row"},{value:f,label:"Shared, scroll"}],w="(width >= 800px)",D="(width < 800px)";function L(t){const n={direction:t.direction,separator:t.separator,loop:c(t.loop),line:t.line};return n.direction==="row"&&!O(n.direction,n.separator)&&n.loop!=="scroll"&&n.line!==!0&&!$(typeof t.bgImage=="string"?t.bgImage:void 0)&&N({...n,columns:t.columns})===""&&T({...n,columnsTablet:t[A("columns")]})===""}function p(t){return Array.isArray(t)?t.filter(n=>typeof n?.type=="string").length:E(t?.blockCount)??0}function J(t){return L(t)&&a(p(t.content))>0?H(t[d],t[x(d)]):{desktop:!1,phone:!1}}const a=t=>Number.isInteger(t)&&t>0?t:0,S=(t,n)=>`sf-shared-cols-${t}${n===void 0?"":`-from-${n}`}`,g=t=>`sf-shared-cols-phone-${t}`;function H(t,n){return{desktop:t===m,phone:n===f}}function Q(t,n,e){const o=a(n);return o?`${t.desktop?` ${S(o,e)}`:""}${t.phone?` ${g(o)}`:""}`:""}function R(t){const n=`[${l}]`;return`:has(> ${n} ${t}):not(:has(> ${n} ${n} ${t}))`}function _(t,n,e=""){const o=R(t);return`${o}{display:grid;grid-template-columns:${n};column-gap:0${e}}${o}>:not(:has(${t})):not(${t}){grid-column:1/-1}${o} :has(${t}),${o} ${t}{display:grid;grid-template-columns:subgrid;grid-column:1/-1;min-width:0}`}const I="data-sf-shared-plain";function P(t){const n=`[${l}]`,e=`[${I}]`,o=R(t)+`:not(:has(> :not(${n}) > :not(${e}) ${t})):not(:has(> ${n} > * > :not(${e}) ${t})):not(:has(:not(${e}) > :not(${e}) > ${t})):not(:has(> ${n}[${y}]))`,s=`${o}>:not(style):not(:has(${t})):not(${t})`;return`${o}{display:table;width:100%;border-collapse:collapse}${o}>:has(${t}),${o}>${n}>:has(${t}),${o} ${e}:has(${t}),${o} ${e}>:has(${t}){display:contents}${o} ${t}{display:table-row}${o} ${t}>*{display:table-cell;width:auto;vertical-align:top}${o} ${t}.${u.center}>*{vertical-align:middle}${o} ${t}.${u.end}>*{vertical-align:bottom}${s}{display:table-caption;caption-side:bottom}${s}:has(~ ${n}){caption-side:top}`}function V(t,n,e){const o=a(n);if(!o)return"";let s="";if(t.desktop){const r=`.${S(o,e)}`;s+=`@media ${e===void 0?w:`(width >= ${e}px)`}{${_(r,`repeat(${o},auto)`)}${P(r)}}`}return t.phone&&(s+=`@media ${D}{${_(`.${g(o)}`,`repeat(${o},minmax(max-content,auto))`,";overflow-x:auto")}}`),s}const k="sharedRows",v="shared",U="sf-shared-rows-list";function M(t){const n=t.direction;return(n===void 0||n==="column")&&c(t.loop)!=="scroll"&&t.line!==!0&&!$(typeof t.bgImage=="string"?t.bgImage:void 0)}function Z(t){return t[k]===v&&M(t)&&a(p(t.content))>0}const b=t=>`sf-shared-rows-${t}`;function tt(t,n){const e=a(n);return t&&e?` ${b(e)}`:""}function nt(t,n){const e=a(n);if(!t||!e)return"";const o=`.${b(e)}`,s=`.${U}`,r=`display:grid;grid-template-rows:subgrid;grid-row:span ${e};min-height:0;grid-template-columns:minmax(0,1fr)`,C=["start","center","end"].map(i=>`${s} ${o}.items-${i}{justify-items:${i}}`).join("");return`${s} :has(${o}){${r};row-gap:0}${s} ${o}{${r};justify-content:normal;align-items:stretch}${C}`}export{d as SHARED_COLUMNS_KEY,X as SHARED_COLUMNS_LABEL,h as SHARED_COLUMNS_OFF,z as SHARED_COLUMNS_PHONE_POINTS,q as SHARED_COLUMNS_POINTS,I as SHARED_PLAIN_ATTR,k as SHARED_ROWS_KEY,U as SHARED_ROWS_LIST_CLASS,Q as sharedColumnsClasses,V as sharedColumnsCss,J as sharedColumnsDrawn,L as sharedColumnsFits,tt as sharedRowsClasses,nt as sharedRowsCss,Z as sharedRowsDrawn,M as sharedRowsFits};
@@ -1 +1 @@
1
- import{jsx as i}from"react/jsx-runtime";import{CardRowDrawn as O}from"../../../../../components/CardRowContext.js";import _ from"../../../../../components/ButtonBlock.js";import{CARD_ROW_LINK_PROP as j,namedRowField as e}from"../../../../../../format/lib/content/card-template.js";import{namedLinkHrefRewrite as p}from"../../../../../../format/lib/links/link-href-rewrites.js";import{CTA_PH as k}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phPrev as v}from"../../scaffold.js";import{phoneKey as y}from"efficient-easel/draw";import{ButtonBlockMeta as T}from"../../../../../../format/lib/document/blocks/general/ButtonBlock/meta.js";const N={...T,render:o=>{const{label:l,href:a,variant:c,align:m,alignPhone:d,contained:f,arrow:h,icon:s,iconPosition:u,widthFit:b,buttonColor:w,buttonTextColor:P,editor:B}=o,C=Object.fromEntries(Object.entries(o).filter(([t])=>t==="buttonFillOpacity"||t==="buttonBorder"||t==="buttonCorners"||t==="buttonCornerSides"||t.startsWith("buttonPadding"))),r=p(o),R=r?{hrefRewrite:r}:{},n=(t,g)=>i(_,{label:v(t,k.text,B)??"",href:g,variant:c,align:m,alignPhone:d,contained:f,arrow:h,icon:s,iconPosition:u,widthFit:b,widthFitPhone:o[y("widthFit")],buttonColor:w,buttonTextColor:P,...C,...R}),x=e(o),F=e(o,j);return!x&&!F?n(l,a):i(O,{type:"ButtonBlock",props:o,children:t=>n(t.label,t.href)})}};export{N as ButtonBlockRender};
1
+ import{jsx as r,Fragment as p}from"react/jsx-runtime";import{CardRowDrawn as O}from"../../../../../components/CardRowContext.js";import j from"../../../../../components/ButtonBlock.js";import{CARD_ROW_LINK_PROP as y,namedRowField as a}from"../../../../../../format/lib/content/card-template.js";import{namedLinkHrefRewrite as k}from"../../../../../../format/lib/links/link-href-rewrites.js";import{CTA_PH as v}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phPrev as T}from"../../scaffold.js";import{phoneKey as A}from"efficient-easel/draw";import{ButtonBlockMeta as D}from"../../../../../../format/lib/document/blocks/general/ButtonBlock/meta.js";const q={...D,render:o=>{const{label:m,href:c,variant:d,align:f,alignPhone:s,contained:b,arrow:h,icon:u,iconPosition:w,widthFit:P,buttonColor:g,buttonTextColor:B,editor:n}=o,C=Object.fromEntries(Object.entries(o).filter(([t])=>t==="buttonFillOpacity"||t==="buttonBorder"||t==="buttonCorners"||t==="buttonCornerSides"||t.startsWith("buttonPadding"))),i=k(o),F=i?{hrefRewrite:i}:{},e=(t,l)=>r(j,{label:T(t,v.text,n)??"",href:l,variant:d,align:f,alignPhone:s,contained:b,arrow:h,icon:u,iconPosition:w,widthFit:P,widthFitPhone:o[A("widthFit")],buttonColor:g,buttonTextColor:B,...C,...F}),R=a(o),_=a(o,y);return!R&&!_?e(m,c):r(O,{type:"ButtonBlock",props:o,children:(t,l,x)=>x&&!n?.isEditing&&!(typeof t.label=="string"&&t.label.trim())?r(p,{}):e(t.label,t.href)})}};export{q as ButtonBlockRender};
@@ -1 +1 @@
1
- import{jsx as i}from"react/jsx-runtime";import{CardTemplateRows as w,useCardRow as T}from"../../../../../components/CardRowContext.js";import{BOX_ITEMS_ATTR as p}from"../../../../../../format/lib/content/box-layout.js";import{CARD_LIST_TYPE as R,cardListShows as g,cardRow as y}from"../../../../../../format/lib/content/card-template.js";import{CardListMeta as S}from"../../../../../../format/lib/document/blocks/general/CardList/meta.js";function h(e){const t=e&&typeof e=="object"?e.state:void 0;return t&&typeof t=="object"?t:void 0}const C=[{}];function L({id:e,own:t,Template:c,editing:m,dragRef:f}){const n=T(),s=g(t,n?.ownerType),a=s&&n?.item&&typeof n.item=="object"?n.item[s]:void 0,r=Array.isArray(a)?a:[],o=r.length?r:m?C:r;if(!o.length)return null;const l=o.map(y),d=o.map(h);return i(w,{ownerId:e,ownerType:R,Template:c,rows:l,items:o,states:d.some(Boolean)?d:void 0,fallback:null,children:u=>i("div",{ref:f,className:"contents",[p]:"",children:u})})}const I={...S,render:e=>i(L,{id:String(e.id??""),own:e,Template:e.template,editing:e.editor?.isEditing===!0,dragRef:e.editor?.dragRef??void 0})};export{I as CardListRender};
1
+ import{jsx as i}from"react/jsx-runtime";import{CardTemplateRows as p,useCardRow as T}from"../../../../../components/CardRowContext.js";import{BOX_ITEMS_ATTR as R}from"../../../../../../format/lib/content/box-layout.js";import{cardItemAction as y}from"../../../../../../format/lib/content/card-state.js";import{CARD_LIST_TYPE as S,cardListShows as g,cardRow as h}from"../../../../../../format/lib/content/card-template.js";import{CardListMeta as A}from"../../../../../../format/lib/document/blocks/general/CardList/meta.js";function C(e){const t=e&&typeof e=="object"?e.state:void 0;return t&&typeof t=="object"?t:void 0}const L=[{}];function _({id:e,own:t,Template:f,editing:s,dragRef:l}){const o=T(),a=g(t,o?.ownerType),d=a&&o?.item&&typeof o.item=="object"?o.item[a]:void 0,r=Array.isArray(d)?d:[],n=r.length?r:s?L:r;if(!n.length)return null;const u=n.map(h),c=n.map(C),m=s?[]:n.map(y);return i(p,{ownerId:e,ownerType:S,Template:f,rows:u,items:n,states:c.some(Boolean)?c:void 0,actions:m.some(Boolean)?m:void 0,fallback:null,children:w=>i("div",{ref:l,className:"contents",[R]:"",children:w})})}const B={...A,render:e=>i(_,{id:String(e.id??""),own:e,Template:e.template,editing:e.editor?.isEditing===!0,dragRef:e.editor?.dragRef??void 0})};export{B as CardListRender};
@@ -1 +1 @@
1
- import{jsx as t}from"react/jsx-runtime";import{phoneKey as a,tabletKey as l}from"efficient-easel/draw";import{sharedColumnsDrawn as d}from"../../../../content/box-shared-columns.js";import{CountRowsContext as c,NO_COUNTS as h}from"../../../../../components/CountRowsContext.js";import r from"../../../../../components/Flex.js";import{loopDelayOf as b,loopSecondsOf as m,parseLoop as g,parseLoopDirection as f}from"../../../../../../format/lib/animation/index.js";import{COUNTS_SOURCE as u,declaredBlockSource as S,servedRows as k}from"../../../../../../format/lib/content/block-sources.js";import{padValuesOf as w}from"../../../../content/section-padding.js";import{sectionFillsHeight as y}from"../../../../../../format/lib/content/section-min-height.js";import{pictureHoverOf as T}from"../../../../../../format/lib/animation/hover.js";import{FlexMeta as P}from"../../../../../../format/lib/document/blocks/general/Flex/meta.js";const N={...P,render:e=>{const o=t(r,{direction:e.direction,label:e.label,tabShape:e.tabShape,gap:e.gap,gapPhone:e[a("gap")],gapTablet:e[l("gap")],justify:e.justify,justifyTablet:e[l("justify")],justifyPhone:e[a("justify")],align:e.align,alignTablet:e[l("align")],alignPhone:e[a("align")],wrap:e.wrap,wrapTablet:e[l("wrap")],share:e.share,sharePhone:e[a("share")],shareTablet:e[l("share")],wrapPhone:e[a("wrap")],orderPhone:e[a("order")],phoneRow:e.phoneRow,columns:e.columns,columnsTablet:e[l("columns")],separator:e.separator,stackBelow:e.stackBelow,blockSpacing:e.blockSpacing,blockSpacingTablet:e[l("blockSpacing")],blockSpacingPhone:e[a("blockSpacing")],bgImage:e.bgImage,bgImagePhone:e.bgImagePhone,pictureHover:T(e),darken:e.darken,darkenStyle:e.darkenStyle,darkenTablet:e[l("darken")],darkenPhone:e[a("darken")],darkenStyleTablet:e[l("darkenStyle")],darkenStylePhone:e[a("darkenStyle")],placement:e.placement,padV2:e.padV2===!0,border:e.sectionBorder,borderTablet:e.sectionBorderTablet,borderPhone:e.sectionBorderPhone,pad:w(e),contained:e.contained,fillHeight:y(e),shadow:e.shadow,shadowTablet:e[l("shadow")],shadowPhone:e[a("shadow")],loop:g(e.loop),scrollDirection:f(e.scrollDirection),loopSeconds:m({loopDuration:e.loopDuration}),loopDelay:b({loopDelay:e.loopDelay}),editing:!!e.editor?.isEditing,fillColor:e.fillColor,fillColorTablet:e[l("fillColor")],fillColorPhone:e[a("fillColor")],line:e.line,upcoming:e.upcoming,link:e.link,boxShape:e.boxShape,boxShapePhone:e[a("boxShape")],boxShapeTablet:e[l("boxShape")],jumpHighlight:e.jumpHighlight,anchor:e.anchor,sharedSides:d(e),boxId:typeof e.id=="string"?e.id:void 0,mirrorCards:e.mirrorCards,content:e.content,rowTitle:e.rowTitle,startsOpen:e.startsOpen}),n=S(e),i=n?n===u?k(e):h:null;return t(c.Provider,{value:i,children:o})}};export{N as FlexRender};
1
+ import{jsx as o}from"react/jsx-runtime";import{phoneKey as a,tabletKey as l}from"efficient-easel/draw";import{sharedColumnsDrawn as d,sharedRowsDrawn as c}from"../../../../content/box-shared-columns.js";import{CountRowsContext as h,NO_COUNTS as r}from"../../../../../components/CountRowsContext.js";import b from"../../../../../components/Flex.js";import{loopDelayOf as m,loopSecondsOf as g,parseLoop as f,parseLoopDirection as u}from"../../../../../../format/lib/animation/index.js";import{COUNTS_SOURCE as S,declaredBlockSource as w,servedRows as k}from"../../../../../../format/lib/content/block-sources.js";import{padValuesOf as y}from"../../../../content/section-padding.js";import{sectionFillsHeight as T}from"../../../../../../format/lib/content/section-min-height.js";import{pictureHoverOf as P}from"../../../../../../format/lib/animation/hover.js";import{FlexMeta as x}from"../../../../../../format/lib/document/blocks/general/Flex/meta.js";const U={...x,render:e=>{const t=o(b,{direction:e.direction,label:e.label,tabShape:e.tabShape,gap:e.gap,gapPhone:e[a("gap")],gapTablet:e[l("gap")],justify:e.justify,justifyTablet:e[l("justify")],justifyPhone:e[a("justify")],align:e.align,alignTablet:e[l("align")],alignPhone:e[a("align")],wrap:e.wrap,wrapTablet:e[l("wrap")],share:e.share,sharePhone:e[a("share")],shareTablet:e[l("share")],wrapPhone:e[a("wrap")],orderPhone:e[a("order")],phoneRow:e.phoneRow,columns:e.columns,columnsTablet:e[l("columns")],separator:e.separator,stackBelow:e.stackBelow,blockSpacing:e.blockSpacing,blockSpacingTablet:e[l("blockSpacing")],blockSpacingPhone:e[a("blockSpacing")],bgImage:e.bgImage,bgImagePhone:e.bgImagePhone,pictureHover:P(e),darken:e.darken,darkenStyle:e.darkenStyle,darkenTablet:e[l("darken")],darkenPhone:e[a("darken")],darkenStyleTablet:e[l("darkenStyle")],darkenStylePhone:e[a("darkenStyle")],placement:e.placement,padV2:e.padV2===!0,border:e.sectionBorder,borderTablet:e.sectionBorderTablet,borderPhone:e.sectionBorderPhone,pad:y(e),contained:e.contained,fillHeight:T(e),shadow:e.shadow,shadowTablet:e[l("shadow")],shadowPhone:e[a("shadow")],loop:f(e.loop),scrollDirection:u(e.scrollDirection),loopSeconds:g({loopDuration:e.loopDuration}),loopDelay:m({loopDelay:e.loopDelay}),editing:!!e.editor?.isEditing,fillColor:e.fillColor,fillColorTablet:e[l("fillColor")],fillColorPhone:e[a("fillColor")],line:e.line,upcoming:e.upcoming,link:e.link,boxShape:e.boxShape,boxShapePhone:e[a("boxShape")],boxShapeTablet:e[l("boxShape")],jumpHighlight:e.jumpHighlight,anchor:e.anchor,sharedSides:d(e),sharedRows:c(e),boxId:typeof e.id=="string"?e.id:void 0,mirrorCards:e.mirrorCards,content:e.content,rowTitle:e.rowTitle,startsOpen:e.startsOpen}),n=w(e),i=n?n===S?k(e):r:null;return o(h.Provider,{value:i,children:t})}};export{U as FlexRender};
@@ -1 +1 @@
1
- import{jsx as s}from"react/jsx-runtime";import m from"../../../../../components/Footprint.js";import{FOOTPRINT_DEFAULTS as f,footprintOfficeOfRow as u}from"../../../../../../format/lib/content/footprint.js";import{declaredBlockSource as d,sourcedRows as l}from"../../../../../../format/lib/content/block-sources.js";import{parseDealerListPosition as h,parseFootprintSource as y}from"../../../../dealer-source.js";import{hidableText as c}from"efficient-easel/draw";import{parseSectionHeadPlacement as T}from"../../../../../../format/lib/sections/section-head-placement.js";import{phRows as g,phHide as n}from"../../scaffold.js";import{say as t}from"../../../../../../format/lib/editor-words.js";import{FootprintMeta as S,FOOTPRINT_PH as a}from"../../../../../../format/lib/document/blocks/general/Footprint/meta.js";const O=()=>[{role:t("Headquarters"),city:t("City"),country:t("Country"),address:t("Street address"),lat:0,lng:0,hq:!0},{role:t("Office"),city:t("City"),country:t("Country"),address:t("Street address"),lat:0,lng:0,hq:!1}],w=()=>[{role:t("Headquarters"),city:t("City"),country:t("Country"),address:t("Street address"),hq:"true"},{role:t("Office"),city:t("City"),country:t("Country"),address:t("Street address")}];function x(e){const o=()=>g(e.offices,O(),e.editor);if(!d(e))return o();const i=e.editor?.isEditing===!0,r=l(e,i,w());return!r.sample&&!r.rows.length?o():r.rows.map(u)}const E={...S,render:e=>{const o=T(e.headPlacement)==="own-box",i=r=>o?void 0:r;return s(m,{sectionNumber:i(n(e.sectionNumber,a.sectionNumber,e.editor)),heading:i(n(e.heading,a.heading,e.editor)),tagline:i(n(e.tagline,a.tagline,e.editor)),omitHead:o,offices:x(e),mapTheme:e.mapTheme??f.mapTheme,padTop:o?0:typeof e.padTop=="number"?e.padTop:120,padBottom:typeof e.padBottom=="number"?e.padBottom:120,editing:e.editor?.isEditing,source:d(e)?"typed":y(e.source),search:e.search===!0,searchHint:c(e.searchHint),noMatchText:c(e.noMatchText),listPosition:h(e.listPosition),showDistance:e.showDistance!==!1})}};export{E as FootprintRender};
1
+ import{jsx as f}from"react/jsx-runtime";import u from"../../../../../components/Footprint.js";import{FOOTPRINT_DEFAULTS as l,footprintOfficeOfRow as h}from"../../../../../../format/lib/content/footprint.js";import{declaredBlockSource as d,sourcedRows as y}from"../../../../../../format/lib/content/block-sources.js";import{parseDealerListPosition as g,parseFootprintSource as T}from"../../../../dealer-source.js";import{hidableText as c}from"efficient-easel/draw";import{parseSectionHeadPlacement as S}from"../../../../../../format/lib/sections/section-head-placement.js";import{phRows as w,phHide as n}from"../../scaffold.js";import{say as t}from"../../../../../../format/lib/editor-words.js";import{FootprintMeta as O,FOOTPRINT_PH as a}from"../../../../../../format/lib/document/blocks/general/Footprint/meta.js";const x=()=>[{role:t("Headquarters"),city:t("City"),country:t("Country"),address:t("Street address"),lat:0,lng:0,hq:!0},{role:t("Office"),city:t("City"),country:t("Country"),address:t("Street address"),lat:0,lng:0,hq:!1}],C=()=>[{role:t("Headquarters"),city:t("City"),country:t("Country"),address:t("Street address"),hq:"true"},{role:t("Office"),city:t("City"),country:t("Country"),address:t("Street address")}];function H(e){const o=()=>w(e.offices,x(),e.editor);if(!d(e))return o();const i=e.editor?.isEditing===!0,r=y(e,i,C());return!r.sample&&!r.rows.length?o():r.rows.map(h)}const M={...O,render:e=>{const o=S(e.headPlacement)==="own-box",i=m=>o?void 0:m,r=H(e),s=d(e)?"typed":T(e.source);return f(u,{sectionNumber:i(n(e.sectionNumber,a.sectionNumber,e.editor)),heading:i(n(e.heading,a.heading,e.editor)),tagline:i(n(e.tagline,a.tagline,e.editor)),omitHead:o,offices:r,mapTheme:e.mapTheme??l.mapTheme,padTop:o?0:typeof e.padTop=="number"?e.padTop:120,padBottom:typeof e.padBottom=="number"?e.padBottom:120,editing:e.editor?.isEditing,source:s,search:e.search===!0,searchHint:c(e.searchHint),noMatchText:c(e.noMatchText),listPosition:g(e.listPosition),showDistance:e.showDistance!==!1,template:e.template,ownerId:String(e.id??"")})}};export{M as FootprintRender};
@@ -1 +1 @@
1
- import{jsx as f}from"react/jsx-runtime";import p from"../../../../../components/Logos.js";import{phRows as L,phHide as u}from"../../scaffold.js";import{say as o}from"../../../../../../format/lib/editor-words.js";import{parseLogoLook as w}from"../../../../../../format/lib/sections/logo-look.js";import{parseSectionHeadPlacement as h}from"../../../../../../format/lib/sections/section-head-placement.js";import{LogosMeta as x}from"../../../../../../format/lib/document/blocks/general/Logos/meta.js";const y=()=>[{src:"",alt:o("Logo one")},{src:"",alt:o("Logo two")},{src:"",alt:o("Logo three")},{src:"",alt:o("Logo four")},{src:"",alt:o("Logo five")}],S={...x,render:({items:e,contained:s,heading:a,columns:n,logoHeight:m,bandPadding:d,grayscale:i,logos:g,look:c,headPlacement:l,editor:t})=>{const r=h(l)==="own-box";return f(p,{items:r?Array.isArray(e)?e:[]:L(e,y(),t),contained:s,heading:r?void 0:u(a,"Trusted by *teams worldwide*",t),columns:n,logoHeight:m,bandPadding:d,grayscale:i,logos:r?g:void 0,look:w(c),omitHead:r})}};export{S as LogosRender};
1
+ import{jsx as f}from"react/jsx-runtime";import c from"../../../../../components/Logos.js";import{phRows as l,phHide as L}from"../../scaffold.js";import{parseLogoLook as h}from"../../../../../../format/lib/sections/logo-look.js";import{parseSectionHeadPlacement as x}from"../../../../../../format/lib/sections/section-head-placement.js";import{LOGOS_PH as H,LogosMeta as u,logosScaffoldItems as w}from"../../../../../../format/lib/document/blocks/general/Logos/meta.js";const A={...u,render:({items:r,contained:n,heading:a,columns:s,logoHeight:d,bandPadding:i,grayscale:m,logos:t,look:g,headPlacement:p,editor:e})=>{const o=x(p)==="own-box";return f(c,{items:o?Array.isArray(r)?r:[]:l(r,w(),e),contained:n,heading:o?void 0:L(a,H.heading,e),columns:s,logoHeight:d,bandPadding:i,grayscale:m,logos:o?t:void 0,look:h(g),omitHead:o})}};export{A as LogosRender};
@@ -1 +1 @@
1
- import{Fragment as m,jsx as e}from"react/jsx-runtime";import{CardRowDrawn as x}from"../../../../../components/CardRowContext.js";import{CountDrawn as S}from"../../../../../components/CountRowsContext.js";import{KickerNumberDrawn as C}from"../../../../../components/PageContentsContext.js";import{KICKER_NUMBER_PROP as E}from"../../../../content/page-contents.js";import{namedRowField as I}from"../../../../../../format/lib/content/card-template.js";import{TOP_LINE_ATTRIBUTE as N,TOP_LINE_CLASS as O,cardPlaceOf as k,framesItsCards as A}from"../../../../../../format/lib/content/card-place.js";import{blockSetsItsWidth as F,blockSizeValuesOf as K}from"../../../../content/block-size.js";import{linkedCount as L}from"../../../../../../format/lib/content/count-numbers.js";import{padValuesOf as D}from"../../../../content/section-padding.js";import W from"../../../../../components/Text.js";import{hidableText as d,readHidable as j}from"efficient-easel/draw";import{PH as p}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phPrev as v}from"../../scaffold.js";import{readPartStyle as B}from"../../../part-styles.js";import{TextMeta as H}from"../../../../../../format/lib/document/blocks/general/Text/meta.js";const it={...H,render:r=>{const{text:o,align:w,alignPhone:T,tone:P,tag:y,contained:_,editor:f}=r;if(j(o).hidden)return e(m,{});const{textStyle:l,align:b}=B(r,"text"),R=l?.startsWith("heading-")?p.heading:p.body,a=(t,n,i)=>e(W,{text:v(t,R,f)??"",number:n,align:w,alignPhone:T,tone:P,tag:y,textStyle:l,partAlign:b,ownWidth:F(K(r)),contained:_,pad:D(r),onLine:i}),c=t=>!t?.trim()&&!f?.isEditing,s=I(r),u=L(r);if(u)return e(S,{countKey:u,children:t=>a(t??d(o))});const h=()=>{if(!s){const t=r[E];return typeof t=="string"?a(d(o),t):e(C,{id:r.id,children:n=>a(d(o),n)})}return e(x,{type:"Text",props:r,children:(t,n,i)=>{const g=d(t.text);return i&&c(g)?e(m,{}):a(g)}})};return k(r)!=="top-line"?h():e(x,{type:"Text",props:r,children:(t,n)=>{if(!n||!A(n.ownerType))return h();const i=d(s?t.text:o);return c(i)?e(m,{}):e("div",{className:O,[N]:"",children:a(i,void 0,!0)})}})}};export{it as TextRender};
1
+ import{Fragment as c,jsx as r}from"react/jsx-runtime";import{CardRowDrawn as g}from"../../../../../components/CardRowContext.js";import{CountDrawn as R}from"../../../../../components/CountRowsContext.js";import{KickerNumberDrawn as S}from"../../../../../components/PageContentsContext.js";import{KICKER_NUMBER_PROP as C}from"../../../../content/page-contents.js";import{namedRowField as I,rowPartByKey as N}from"../../../../../../format/lib/content/card-template.js";import{TOP_LINE_ATTRIBUTE as O,TOP_LINE_CLASS as k,cardPlaceOf as A,framesItsCards as D}from"../../../../../../format/lib/content/card-place.js";import{blockSetsItsWidth as F,blockSizeValuesOf as L}from"../../../../content/block-size.js";import{linkedCount as B}from"../../../../../../format/lib/content/count-numbers.js";import{padValuesOf as W}from"../../../../content/section-padding.js";import j from"../../../../../components/Text.js";import{hidableText as d,readHidable as v}from"efficient-easel/draw";import{PH as y}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phPrev as H}from"../../scaffold.js";import{readPartStyle as M}from"../../../part-styles.js";import{TextMeta as U}from"../../../../../../format/lib/document/blocks/general/Text/meta.js";const dt={...U,render:t=>{const{text:o,align:w,alignPhone:T,tone:p,tag:P,contained:b,editor:m}=t;if(v(o).hidden)return r(c,{});const{textStyle:f,align:_}=M(t,"text"),K=f?.startsWith("heading-")?y.heading:y.body,E=N("Text",t,"text")?{partKey:"text",partDeclare:!!m?.isEditing}:{},a=(e,n,i)=>r(j,{...E,text:H(e,K,m)??"",number:n,align:w,alignPhone:T,tone:p,tag:P,textStyle:f,partAlign:_,ownWidth:F(L(t)),contained:b,pad:W(t),onLine:i}),l=e=>!e?.trim()&&!m?.isEditing,s=I(t),u=B(t);if(u)return r(R,{countKey:u,children:e=>a(e??d(o))});const x=()=>{if(!s){const e=t[C];return typeof e=="string"?a(d(o),e):r(S,{id:t.id,children:n=>a(d(o),n)})}return r(g,{type:"Text",props:t,children:(e,n,i)=>{const h=d(e.text);return i&&l(h)?r(c,{}):a(h)}})};return A(t)!=="top-line"?x():r(g,{type:"Text",props:t,children:(e,n)=>{if(!n||!D(n.ownerType))return x();const i=d(s?e.text:o);return l(i)?r(c,{}):r("div",{className:k,[O]:"",children:a(i,void 0,!0)})}})}};export{dt as TextRender};
@@ -0,0 +1,2 @@
1
+ import { type SectionToBoxRow } from "../../../sections/section-to-box.js";
2
+ export declare const FITMENT_SECTION_TO_BOX: Readonly<Record<string, SectionToBoxRow>>;
@@ -0,0 +1 @@
1
+ import{DROP_COMMON as n,DROP_SIDE_PADDING as r,SAME_KEYS as i,SECTION_BOX as a,wrapperPad as s,wrapperPadKeys as d}from"./section-to-box-row-parts.js";import{HEAD_BELOW as p,headLookOf as h,headReads as c,headTree as m}from"./section-head-looks.js";const o={top:80,bottom:80,topPhone:60,bottomPhone:60},k=()=>{const t=c("FitmentFinder");return{name:"Fitment Form",boxProps:e=>({...a,direction:"column",gap:p[h("FitmentFinder")],...s(e,o)}),box:[...i,...d(o)],parts:[m("FitmentFinder"),{kind:"block",type:"FitmentPicker"},{kind:"block",type:"StockFitment"},{kind:"button",key:"ctaText",href:"ctaHref"}],skip:e=>e.layout==="bar"?"the one-row shape goes to the shop on the fourth pick and draws no head; the Fitment picker block never leaves the page":void 0,...Object.keys(t).length?{reads:t}:{},drop:{...n,...r,layout:'the section shape; "bar" is skipped (above), so here it is the stacked shape this Box draws'}}},b={FitmentFinder:k()};export{b as FITMENT_SECTION_TO_BOX};