efficient-web-builder 57.1.0 → 59.0.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 (244) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/dist/editor/components/SectionIcon.js +1 -1
  3. package/dist/editor/components/WebsiteScreenParts.js +1 -1
  4. package/dist/editor/components/storefront-editor.css +30 -0
  5. package/dist/editor/lib/animation/hover-fields.js +1 -1
  6. package/dist/editor/lib/document/ColourControl.js +1 -1
  7. package/dist/editor/lib/document/blocks/general/CardList/fields.js +1 -1
  8. package/dist/editor/lib/document/blocks/general/Cards/fields.js +1 -1
  9. package/dist/editor/lib/document/blocks/general/Chart/fields.js +1 -1
  10. package/dist/editor/lib/document/blocks/general/Contents/fields.js +1 -1
  11. package/dist/editor/lib/document/blocks/general/Countdown/fields.js +1 -1
  12. package/dist/editor/lib/document/blocks/general/Divider/fields.js +1 -1
  13. package/dist/editor/lib/document/blocks/general/FAQ/fields.js +1 -1
  14. package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
  15. package/dist/editor/lib/document/blocks/general/ListSearch/fields.d.ts +2 -0
  16. package/dist/editor/lib/document/blocks/general/ListSearch/fields.js +1 -0
  17. package/dist/editor/lib/document/blocks/general/Mockup/fields.js +2 -2
  18. package/dist/editor/lib/document/blocks/general/index.d.ts +2 -2
  19. package/dist/editor/lib/document/blocks/general/index.js +1 -1
  20. package/dist/editor/lib/document/box-fields.d.ts +1 -0
  21. package/dist/editor/lib/document/box-fields.js +1 -1
  22. package/dist/editor/lib/document/card-display-chips.d.ts +7 -5
  23. package/dist/editor/lib/document/card-display-chips.js +1 -1
  24. package/dist/editor/lib/document/card-row-fields.d.ts +2 -1
  25. package/dist/editor/lib/document/card-row-fields.js +1 -1
  26. package/dist/editor/lib/document/controls.d.ts +13 -1
  27. package/dist/editor/lib/document/controls.js +1 -1
  28. package/dist/editor/lib/sections/text-layouts.js +1 -1
  29. package/dist/format/lib/animation/hover.js +1 -1
  30. package/dist/format/lib/content/accordion-row-style.d.ts +10 -0
  31. package/dist/format/lib/content/accordion-row-style.js +1 -0
  32. package/dist/format/lib/content/box-angle.d.ts +9 -0
  33. package/dist/format/lib/content/box-angle.js +1 -0
  34. package/dist/format/lib/content/box-background.d.ts +3 -0
  35. package/dist/format/lib/content/box-background.js +1 -1
  36. package/dist/format/lib/content/box-layout.d.ts +3 -0
  37. package/dist/format/lib/content/box-layout.js +1 -1
  38. package/dist/format/lib/content/card-columns.d.ts +1 -0
  39. package/dist/format/lib/content/card-columns.js +1 -0
  40. package/dist/format/lib/content/card-place.d.ts +4 -0
  41. package/dist/format/lib/content/card-place.js +1 -1
  42. package/dist/format/lib/content/card-state.d.ts +17 -0
  43. package/dist/format/lib/content/card-state.js +1 -1
  44. package/dist/format/lib/content/card-template.d.ts +3 -0
  45. package/dist/format/lib/content/card-template.js +1 -1
  46. package/dist/format/lib/content/copies-in-box.d.ts +2 -0
  47. package/dist/format/lib/content/copies-in-box.js +1 -0
  48. package/dist/format/lib/content/gallery-layout.d.ts +13 -1
  49. package/dist/format/lib/content/gallery-layout.js +1 -1
  50. package/dist/format/lib/content/list-query.d.ts +7 -0
  51. package/dist/format/lib/content/list-query.js +1 -0
  52. package/dist/format/lib/content/page-background.js +1 -1
  53. package/dist/format/lib/content/part-display.js +1 -1
  54. package/dist/format/lib/content/section-background.js +1 -1
  55. package/dist/format/lib/content/view-hide-class.d.ts +11 -0
  56. package/dist/format/lib/content/view-hide-class.js +1 -0
  57. package/dist/format/lib/document/blocks/general/Chart/meta.d.ts +1 -0
  58. package/dist/format/lib/document/blocks/general/Chart/meta.js +1 -1
  59. package/dist/format/lib/document/blocks/general/Countdown/meta.d.ts +1 -0
  60. package/dist/format/lib/document/blocks/general/Countdown/meta.js +1 -1
  61. package/dist/format/lib/document/blocks/general/FAQ/card-seed.d.ts +7 -0
  62. package/dist/format/lib/document/blocks/general/FAQ/card-seed.js +1 -0
  63. package/dist/format/lib/document/blocks/general/FAQ/meta.d.ts +6 -0
  64. package/dist/format/lib/document/blocks/general/FAQ/meta.js +1 -1
  65. package/dist/format/lib/document/blocks/general/ListSearch/meta.d.ts +6 -0
  66. package/dist/format/lib/document/blocks/general/ListSearch/meta.js +1 -0
  67. package/dist/format/lib/document/blocks/general/Mockup/meta.d.ts +1 -0
  68. package/dist/format/lib/document/blocks/general/Mockup/meta.js +1 -1
  69. package/dist/format/lib/document/blocks/general/PaymentBadges/meta.d.ts +6 -0
  70. package/dist/format/lib/document/blocks/general/PaymentBadges/meta.js +1 -1
  71. package/dist/format/lib/document/blocks/general/metas.d.ts +1 -0
  72. package/dist/format/lib/document/blocks/general/metas.js +1 -1
  73. package/dist/format/lib/document/blocks/general/text-part-shapes.json +28 -0
  74. package/dist/format/lib/document/box-footer.js +1 -1
  75. package/dist/format/lib/document/card-row-keys.d.ts +14 -0
  76. package/dist/format/lib/document/card-row-keys.js +1 -0
  77. package/dist/format/lib/document/cards-template-on-read.d.ts +1 -1
  78. package/dist/format/lib/document/cards-template-on-read.js +1 -1
  79. package/dist/format/lib/document/container-blocks.js +1 -1
  80. package/dist/format/lib/document/general-order.d.ts +1 -1
  81. package/dist/format/lib/document/general-order.js +1 -1
  82. package/dist/format/lib/document/list-search-scopes.d.ts +4 -0
  83. package/dist/format/lib/document/list-search-scopes.js +1 -0
  84. package/dist/format/lib/document/neutralization-contracts.js +1 -1
  85. package/dist/format/lib/document/part-inks.d.ts +6 -2
  86. package/dist/format/lib/document/part-inks.js +1 -1
  87. package/dist/format/lib/document/section-catalog.js +2 -2
  88. package/dist/format/lib/document/theme-slots.d.ts +20 -0
  89. package/dist/format/lib/document/theme-slots.js +1 -0
  90. package/dist/format/lib/editor-words-catalogue.d.ts +10 -0
  91. package/dist/format/lib/editor-words-catalogue.js +4 -4
  92. package/dist/format/lib/editor-words-kept.js +1 -1
  93. package/dist/format/lib/sections/hero-single-to-hero.js +1 -1
  94. package/dist/format/lib/theme.d.ts +1 -0
  95. package/dist/format/lib/theme.js +4 -4
  96. package/dist/render/components/BoxAccordionRow.d.ts +3 -1
  97. package/dist/render/components/BoxAccordionRow.js +1 -1
  98. package/dist/render/components/BoxTabPaneContext.d.ts +5 -0
  99. package/dist/render/components/BoxTabPaneContext.js +1 -1
  100. package/dist/render/components/CardRowContext.d.ts +3 -1
  101. package/dist/render/components/CardRowContext.js +1 -1
  102. package/dist/render/components/Cards.d.ts +2 -1
  103. package/dist/render/components/Cards.js +1 -1
  104. package/dist/render/components/CategoryBar.d.ts +1 -1
  105. package/dist/render/components/CategoryBar.js +1 -1
  106. package/dist/render/components/ChartSection.d.ts +2 -1
  107. package/dist/render/components/ChartSection.js +1 -1
  108. package/dist/render/components/ContactLocations.js +2 -2
  109. package/dist/render/components/ContentsList.d.ts +3 -3
  110. package/dist/render/components/ContentsList.js +1 -1
  111. package/dist/render/components/Countdown.d.ts +2 -1
  112. package/dist/render/components/Countdown.js +1 -1
  113. package/dist/render/components/Divider.d.ts +1 -2
  114. package/dist/render/components/Divider.js +1 -1
  115. package/dist/render/components/DocBody.js +5 -5
  116. package/dist/render/components/DocMasthead.js +1 -1
  117. package/dist/render/components/DocMetaCards.js +1 -1
  118. package/dist/render/components/DocTabs.js +1 -1
  119. package/dist/render/components/Eyebrow.d.ts +2 -1
  120. package/dist/render/components/Eyebrow.js +1 -1
  121. package/dist/render/components/FAQ.d.ts +6 -1
  122. package/dist/render/components/FAQ.js +1 -1
  123. package/dist/render/components/FeaturedCover.d.ts +2 -1
  124. package/dist/render/components/FeaturedCover.js +1 -1
  125. package/dist/render/components/Flex.d.ts +3 -1
  126. package/dist/render/components/Flex.js +1 -1
  127. package/dist/render/components/Footprint.js +1 -1
  128. package/dist/render/components/HeroGroup.d.ts +1 -1
  129. package/dist/render/components/HeroGroup.js +1 -1
  130. package/dist/render/components/HeroPictures.js +1 -1
  131. package/dist/render/components/HeroSection.js +1 -1
  132. package/dist/render/components/HeroSingle.js +1 -1
  133. package/dist/render/components/HeroSlide.d.ts +1 -1
  134. package/dist/render/components/HeroSlide.js +1 -1
  135. package/dist/render/components/InBoxContext.d.ts +1 -1
  136. package/dist/render/components/InBoxContext.js +1 -1
  137. package/dist/render/components/IntegrationsSection.js +1 -1
  138. package/dist/render/components/IntroBleed.js +1 -1
  139. package/dist/render/components/JoinBox.js +1 -1
  140. package/dist/render/components/KeyFeatures.js +1 -1
  141. package/dist/render/components/ListSearchBox.d.ts +7 -0
  142. package/dist/render/components/ListSearchBox.js +1 -0
  143. package/dist/render/components/LocationMap.d.ts +2 -1
  144. package/dist/render/components/LocationMap.js +1 -1
  145. package/dist/render/components/Logo.d.ts +3 -1
  146. package/dist/render/components/Logo.js +1 -1
  147. package/dist/render/components/LogoBlock.js +1 -1
  148. package/dist/render/components/LongRead.js +1 -1
  149. package/dist/render/components/Manifesto.js +1 -1
  150. package/dist/render/components/Masthead.js +1 -1
  151. package/dist/render/components/MockupSection.d.ts +2 -1
  152. package/dist/render/components/MockupSection.js +1 -1
  153. package/dist/render/components/ParagraphsA.d.ts +2 -1
  154. package/dist/render/components/ParagraphsA.js +1 -1
  155. package/dist/render/components/PostCard.d.ts +2 -1
  156. package/dist/render/components/PostCard.js +1 -1
  157. package/dist/render/components/ProcessSteps.js +1 -1
  158. package/dist/render/components/Prose.js +1 -1
  159. package/dist/render/components/SectionAnimation.d.ts +3 -2
  160. package/dist/render/components/SectionAnimation.js +1 -1
  161. package/dist/render/components/SectionEyebrow.d.ts +2 -1
  162. package/dist/render/components/SectionEyebrow.js +1 -1
  163. package/dist/render/components/Series.js +1 -1
  164. package/dist/render/components/SiteGutterFrame.d.ts +2 -2
  165. package/dist/render/components/SiteGutterFrame.js +1 -1
  166. package/dist/render/components/Spacer.js +1 -1
  167. package/dist/render/components/SpecStrip.js +1 -1
  168. package/dist/render/components/StatsParagraph.js +1 -1
  169. package/dist/render/components/Testimonials.js +1 -1
  170. package/dist/render/components/TickerSection.js +1 -1
  171. package/dist/render/components/Timeline.js +1 -1
  172. package/dist/render/components/TimelineTrack.js +1 -1
  173. package/dist/render/components/TitleWithButtons.js +1 -1
  174. package/dist/render/components/ViewHideRoot.d.ts +23 -0
  175. package/dist/render/components/ViewHideRoot.js +1 -0
  176. package/dist/render/lib/content/block-size.d.ts +0 -2
  177. package/dist/render/lib/content/block-size.js +1 -1
  178. package/dist/render/lib/content/page-contents.js +1 -1
  179. package/dist/render/lib/document/blocks/general/CardList/render.js +1 -1
  180. package/dist/render/lib/document/blocks/general/Cards/render.js +1 -1
  181. package/dist/render/lib/document/blocks/general/Chart/render.js +1 -1
  182. package/dist/render/lib/document/blocks/general/Contents/render.js +1 -1
  183. package/dist/render/lib/document/blocks/general/Countdown/render.js +1 -1
  184. package/dist/render/lib/document/blocks/general/CustomHTML/render.js +1 -1
  185. package/dist/render/lib/document/blocks/general/Divider/render.js +1 -1
  186. package/dist/render/lib/document/blocks/general/Eyebrow/render.js +1 -1
  187. package/dist/render/lib/document/blocks/general/FAQ/render.js +1 -1
  188. package/dist/render/lib/document/blocks/general/FeaturedCover/render.js +1 -1
  189. package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
  190. package/dist/render/lib/document/blocks/general/ListSearch/render.d.ts +2 -0
  191. package/dist/render/lib/document/blocks/general/ListSearch/render.js +1 -0
  192. package/dist/render/lib/document/blocks/general/LocationMap/render.js +1 -1
  193. package/dist/render/lib/document/blocks/general/Mockup/render.js +2 -2
  194. package/dist/render/lib/document/blocks/general/OrderSummary/card-seed.d.ts +2 -0
  195. package/dist/render/lib/document/blocks/general/OrderSummary/card-seed.js +1 -0
  196. package/dist/render/lib/document/blocks/general/ParagraphsA/render.js +1 -1
  197. package/dist/render/lib/document/blocks/general/PaymentBadges/render.js +1 -1
  198. package/dist/render/lib/document/blocks/general/PostCard/render.js +1 -1
  199. package/dist/render/lib/document/blocks/general/SectionHeader/render.js +1 -1
  200. package/dist/render/lib/document/blocks/general/renders.d.ts +1 -0
  201. package/dist/render/lib/document/blocks/general/renders.js +1 -1
  202. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.d.ts +3 -1
  203. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
  204. package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.d.ts +3 -0
  205. package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.js +1 -1
  206. package/dist/render/lib/document/blocks/general/section-to-box-rows-checkout.d.ts +2 -0
  207. package/dist/render/lib/document/blocks/general/section-to-box-rows-checkout.js +1 -0
  208. package/dist/render/lib/document/blocks/general/section-to-box-rows-docbody.js +2 -2
  209. package/dist/render/lib/document/blocks/general/section-to-box-rows-head.d.ts +12 -0
  210. package/dist/render/lib/document/blocks/general/section-to-box-rows-head.js +1 -1
  211. package/dist/render/lib/document/blocks/general/section-to-box-rows-locations.js +1 -1
  212. package/dist/render/lib/document/blocks/general/section-to-box-rows-logos.d.ts +1 -0
  213. package/dist/render/lib/document/blocks/general/section-to-box-rows-logos.js +1 -1
  214. package/dist/render/lib/document/blocks/general/section-to-box-rows-promo.d.ts +2 -0
  215. package/dist/render/lib/document/blocks/general/section-to-box-rows-promo.js +1 -0
  216. package/dist/render/lib/document/blocks/general/section-to-box-rows-proof.d.ts +2 -0
  217. package/dist/render/lib/document/blocks/general/section-to-box-rows-proof.js +1 -0
  218. package/dist/render/lib/document/blocks/general/section-to-box-rows-stats.js +1 -1
  219. package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
  220. package/dist/render/lib/document/head-core-boxes.js +1 -1
  221. package/dist/render/lib/document/page-render.js +1 -1
  222. package/dist/render/lib/document/passes/block-size.js +1 -1
  223. package/dist/render/lib/document/passes/borders.js +1 -1
  224. package/dist/render/lib/document/passes/box-join.js +1 -1
  225. package/dist/render/lib/document/passes/cell-width.js +1 -1
  226. package/dist/render/lib/document/passes/corners.js +1 -1
  227. package/dist/render/lib/document/passes/head-core.js +1 -1
  228. package/dist/render/lib/document/passes/hidden-nodes.d.ts +2 -0
  229. package/dist/render/lib/document/passes/hidden-nodes.js +1 -0
  230. package/dist/render/lib/document/passes/index.js +1 -1
  231. package/dist/render/lib/document/passes/section-anchor.js +1 -1
  232. package/dist/render/lib/document/passes/section-animation.js +1 -1
  233. package/dist/render/lib/document/passes/section-height.js +1 -1
  234. package/dist/render/lib/document/passes/section-padding.js +1 -1
  235. package/dist/render/lib/document/passes/section-sticky.js +1 -1
  236. package/dist/render/lib/document/passes/section-theme.js +1 -1
  237. package/dist/render/lib/document/passes/section-width.js +1 -1
  238. package/dist/render/lib/document/slot-counts.js +1 -1
  239. package/dist/render/lib/sections/section-to-box.js +1 -1
  240. package/package.json +3 -3
  241. package/dist/editor/lib/document/theme-swatches.d.ts +0 -3
  242. package/dist/editor/lib/document/theme-swatches.js +0 -1
  243. package/dist/format/lib/document/passes/hidden-nodes.d.ts +0 -2
  244. package/dist/format/lib/document/passes/hidden-nodes.js +0 -1
@@ -1 +1 @@
1
- import{jsx as a}from"react/jsx-runtime";import u from"../../../../../components/FAQ.js";import{readPartStyles as m}from"../../../part-styles.js";import{hidableText as f}from"efficient-easel/draw";import{parseSectionHeadPlacement as h}from"../../../../../../format/lib/sections/section-head-placement.js";import{phRows as l,phHide as i}from"../../scaffold.js";import{say as t}from"../../../../../../format/lib/editor-words.js";import{FAQMeta as c,FAQ_PH as o}from"../../../../../../format/lib/document/blocks/general/FAQ/meta.js";const w=()=>[{question:t("Your first question goes here?"),answer:t("Add your answer here — a sentence or two is plenty.")},{question:t("Your second question goes here?"),answer:t("Add your answer here. Keep it clear and concise so it stays easy to scan.")},{question:t("Your third question goes here?"),answer:t("Add your answer here.")},{question:t("Your fourth question goes here?"),answer:t("Add your answer here.")},{question:t("Your fifth question goes here?"),answer:t("Add your answer here.")}],F={...c,render:e=>{const r=h(e.headPlacement)==="own-box",n=s=>r?void 0:s,d=i(e.linkText,o.link,e.editor);return a(u,{num:n(i(e.num,o.num,e.editor)),title:n(i(e.title,o.title,e.editor)),link:n(d?{text:d,href:f(e.linkHref)||"/faq"}:void 0),omitHead:r,nodeId:typeof e.id=="string"?e.id:void 0,partStyles:m(e),items:l(e.items,w(),e.editor),defaultOpen:e.defaultOpen,editing:e.editor?.isEditing})}};export{F as FAQRender};
1
+ import{jsx as i,jsxs as g}from"react/jsx-runtime";import{HideTaker as A}from"../../../../../components/ViewHideRoot.js";import T,{faqPageJsonLd as _,faqRows as R}from"../../../../../components/FAQ.js";import{CardTemplateRows as q}from"../../../../../components/CardRowContext.js";import{BoxTabPaneContext as x,FirstCopyOpensContext as S}from"../../../../../components/BoxTabPaneContext.js";import{BOX_ITEMS_ATTR as P}from"../../../../../../format/lib/content/box-layout.js";import{cardRow as O}from"../../../../../../format/lib/content/card-template.js";import{LIST_KEY_ATTR as k,LIST_ROW_ATTR as I}from"../../../../../../format/lib/content/list-query.js";import{readPartStyles as Y}from"../../../part-styles.js";import{hidableText as C}from"efficient-easel/draw";import{parseSectionHeadPlacement as F}from"../../../../../../format/lib/sections/section-head-placement.js";import{phRows as H,phHide as u}from"../../scaffold.js";import{say as t}from"../../../../../../format/lib/editor-words.js";import{LIST_KEY_PROP as y}from"../../../../../../format/lib/document/list-search-scopes.js";import{FAQMeta as L,FAQ_PH as c}from"../../../../../../format/lib/document/blocks/general/FAQ/meta.js";const b=()=>[{question:t("Your first question goes here?"),answer:t("Add your answer here — a sentence or two is plenty.")},{question:t("Your second question goes here?"),answer:t("Add your answer here. Keep it clear and concise so it stays easy to scan.")},{question:t("Your third question goes here?"),answer:t("Add your answer here.")},{question:t("Your fourth question goes here?"),answer:t("Add your answer here.")},{question:t("Your fifth question goes here?"),answer:t("Add your answer here.")}],j=[{}],E={[I]:""};function K({id:e,items:d,defaultOpen:a,listKey:s,Template:n,editing:r,dragRef:f,fallback:l}){const o=R(Array.isArray(d)?d:[]),m=o.length?o:r?j:o,h=r?null:_(o);return!m.length&&n&&(n.blockCount??0)>0?null:i(q,{ownerId:e,ownerType:"FAQ",Template:n,rows:m.map(O),items:m,copyAttrs:E,fallback:l,children:w=>g(x.Provider,{value:"accordion",children:[i(S.Provider,{value:a,children:i(A,{ref:f,className:"contents",[P]:"",...s?{[k]:s}:{},children:w})}),h&&i("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:h}})]})})}const p={...L,render:e=>{const d=typeof e[y]=="string"?e[y]:void 0,a=e.editor?.dragRef??void 0,s=e.editor?.isEditing===!0,n=F(e.headPlacement)==="own-box",r=o=>n?void 0:o,f=u(e.linkText,c.link,e.editor),l=i(T,{num:r(u(e.num,c.num,e.editor)),title:r(u(e.title,c.title,e.editor)),link:r(f?{text:f,href:C(e.linkHref)||"/faq"}:void 0),omitHead:n,nodeId:typeof e.id=="string"?e.id:void 0,partStyles:Y(e),items:H(e.items,b(),e.editor),defaultOpen:e.defaultOpen,listKey:d,editing:e.editor?.isEditing,rootRef:a});return i(K,{id:String(e.id??""),items:e.items,defaultOpen:e.defaultOpen!==!1,listKey:d,Template:e.template,editing:s,dragRef:a,fallback:l})}};export{p as FAQRender};
@@ -1 +1 @@
1
- import{jsx as b}from"react/jsx-runtime";import u from"../../../../../components/FeaturedCover.js";import{hidableText as k}from"efficient-easel/draw";import{phHide as a}from"../../scaffold.js";import{FeaturedCoverMeta as C,FEATUREDCOVER_PH as t}from"../../../../../../format/lib/document/blocks/general/FeaturedCover/meta.js";const E={...C,render:({source:d,image:o,badge:g,imageDate:c,category:i,readLabel:l,date:s,title:f,dek:n,ctaText:p,ctaHref:x,editor:e})=>{const r=d,m=!!r?.slug;return b(u,{image:m?r.image:o,badge:a(g,t.badge,e),imageDate:m?r.date:a(c,t.imageDate,e),category:a(i,t.category,e),readLabel:a(l,t.readLabel,e),date:m?r.date:a(s,t.date,e),title:m?r.title:a(f,t.title,e),dek:m?r.dek:a(n,t.dek,e),ctaText:a(p,t.ctaText,e),ctaHref:m?r.href:k(x)})}};export{E as FeaturedCoverRender};
1
+ import{jsx as u}from"react/jsx-runtime";import H from"../../../../../components/FeaturedCover.js";import{hidableText as k}from"efficient-easel/draw";import{phHide as a}from"../../scaffold.js";import{parseSectionHeadPlacement as C}from"../../../../../../format/lib/sections/section-head-placement.js";import{FeaturedCoverMeta as F,FEATUREDCOVER_PH as t}from"../../../../../../format/lib/document/blocks/general/FeaturedCover/meta.js";const j={...F,render:({source:o,image:d,badge:i,imageDate:c,category:n,readLabel:g,date:l,title:p,dek:s,ctaText:f,ctaHref:x,headPlacement:b,editor:e})=>{const r=o,m=!!r?.slug;return u(H,{image:m?r.image:d,badge:a(i,t.badge,e),imageDate:m?r.date:a(c,t.imageDate,e),category:a(n,t.category,e),readLabel:a(g,t.readLabel,e),date:m?r.date:a(l,t.date,e),title:m?r.title:a(p,t.title,e),dek:m?r.dek:a(s,t.dek,e),ctaText:a(f,t.ctaText,e),ctaHref:m?r.href:k(x),omitHead:C(b)==="own-box"})}};export{j as FeaturedCoverRender};
@@ -1 +1 @@
1
- import{jsx as t}from"react/jsx-runtime";import{phoneKey as a,tabletKey as n}from"efficient-easel/draw";import{BOX_SWATCH_PROP as c}from"../../../../../../format/lib/content/box-background.js";import{sharedColumnsDrawn as h,sharedRowsDrawn as m}from"../../../../content/box-shared-columns.js";import{CountRowsContext as b,NO_COUNTS as g}from"../../../../../components/CountRowsContext.js";import{RowEmptyGate as f}from"../../../../../components/CardRowContext.js";import{BOX_HIDE_WHEN_ROW_EMPTY as u}from"../../../../../../format/lib/content/card-template.js";import S from"../../../../../components/Flex.js";import{loopDelayOf as w,loopSecondsOf as k,parseLoop as y,parseLoopDirection as P}from"../../../../../../format/lib/animation/index.js";import{COUNTS_SOURCE as T,declaredBlockSource as C,servedRows as x}from"../../../../../../format/lib/content/block-sources.js";import{padValuesOf as O}from"../../../../content/section-padding.js";import{sectionFillsHeight as D}from"../../../../../../format/lib/content/section-min-height.js";import{pictureHoverOf as R}from"../../../../../../format/lib/animation/hover.js";import{slotCountOf as j}from"../../../slot-counts.js";import{FlexMeta as B}from"../../../../../../format/lib/document/blocks/general/Flex/meta.js";const G={...B,render:e=>{const l=!!e.editor?.isEditing,d=t(S,{direction:e.direction,label:e.label,tabShape:e.tabShape,gap:e.gap,gapPhone:e[a("gap")],gapTablet:e[n("gap")],justify:e.justify,justifyTablet:e[n("justify")],justifyPhone:e[a("justify")],align:e.align,alignTablet:e[n("align")],alignPhone:e[a("align")],wrap:e.wrap,wrapTablet:e[n("wrap")],share:e.share,sharePhone:e[a("share")],shareTablet:e[n("share")],wrapPhone:e[a("wrap")],orderPhone:e[a("order")],phoneRow:e.phoneRow,columns:e.columns,columnsTablet:e[n("columns")],separator:e.separator,stackBelow:e.stackBelow,blockSpacing:e.blockSpacing,blockSpacingTablet:e[n("blockSpacing")],blockSpacingPhone:e[a("blockSpacing")],bgImage:e.bgImage,bgImagePhone:e.bgImagePhone,pictureHover:R(e),darken:e.darken,darkenStyle:e.darkenStyle,darkenTablet:e[n("darken")],darkenPhone:e[a("darken")],darkenStyleTablet:e[n("darkenStyle")],darkenStylePhone:e[a("darkenStyle")],placement:e.placement,padV2:e.padV2===!0,border:e.sectionBorder,borderTablet:e.sectionBorderTablet,borderPhone:e.sectionBorderPhone,pad:O(e),contained:e.contained,fillHeight:D(e),shadow:e.shadow,shadowTablet:e[n("shadow")],shadowPhone:e[a("shadow")],loop:y(e.loop),scrollDirection:P(e.scrollDirection),loopSeconds:k({loopDuration:e.loopDuration}),loopDelay:w({loopDelay:e.loopDelay}),editing:l,fillColor:e.fillColor,fillColorTablet:e[n("fillColor")],fillColorPhone:e[a("fillColor")],swatch:e[c],line:e.line,upcoming:e.upcoming,link:e.link,boxShape:e.boxShape,boxShapePhone:e[a("boxShape")],boxShapeTablet:e[n("boxShape")],jumpHighlight:e.jumpHighlight,anchor:e.anchor,sharedSides:h(e),sharedRows:m(e),boxId:typeof e.id=="string"?e.id:void 0,slotCount:j(e),mirrorCards:e.mirrorCards,content:e.content,rowTitle:e.rowTitle,startsOpen:e.startsOpen}),o=C(e),r=o?o===T?x(e):g:null,i=t(b.Provider,{value:r,children:d});return e[u]===void 0?i:t(f,{props:e,editing:l,children:i})}};export{G as FlexRender};
1
+ import{jsx as t}from"react/jsx-runtime";import{BOX_ANGLE_PROP as c}from"../../../../../../format/lib/content/box-angle.js";import{phoneKey as a,tabletKey as n}from"efficient-easel/draw";import{BOX_SWATCH_PROP as h}from"../../../../../../format/lib/content/box-background.js";import{sharedColumnsDrawn as m,sharedRowsDrawn as b}from"../../../../content/box-shared-columns.js";import{CountRowsContext as g,NO_COUNTS as f}from"../../../../../components/CountRowsContext.js";import{RowEmptyGate as u}from"../../../../../components/CardRowContext.js";import{BOX_HIDE_WHEN_ROW_EMPTY as S}from"../../../../../../format/lib/content/card-template.js";import w from"../../../../../components/Flex.js";import{loopDelayOf as k,loopSecondsOf as y,parseLoop as P,parseLoopDirection as T}from"../../../../../../format/lib/animation/index.js";import{COUNTS_SOURCE as C,declaredBlockSource as O,servedRows as x}from"../../../../../../format/lib/content/block-sources.js";import{padValuesOf as D}from"../../../../content/section-padding.js";import{sectionFillsHeight as R}from"../../../../../../format/lib/content/section-min-height.js";import{pictureHoverOf as _}from"../../../../../../format/lib/animation/hover.js";import{slotCountOf as j}from"../../../slot-counts.js";import{FlexMeta as B}from"../../../../../../format/lib/document/blocks/general/Flex/meta.js";const q={...B,render:e=>{const l=!!e.editor?.isEditing,d=t(w,{direction:e.direction,label:e.label,tabShape:e.tabShape,gap:e.gap,gapPhone:e[a("gap")],gapTablet:e[n("gap")],justify:e.justify,justifyTablet:e[n("justify")],justifyPhone:e[a("justify")],align:e.align,alignTablet:e[n("align")],alignPhone:e[a("align")],wrap:e.wrap,wrapTablet:e[n("wrap")],share:e.share,sharePhone:e[a("share")],shareTablet:e[n("share")],wrapPhone:e[a("wrap")],orderPhone:e[a("order")],phoneRow:e.phoneRow,columns:e.columns,columnsTablet:e[n("columns")],separator:e.separator,stackBelow:e.stackBelow,blockSpacing:e.blockSpacing,blockSpacingTablet:e[n("blockSpacing")],blockSpacingPhone:e[a("blockSpacing")],bgImage:e.bgImage,bgImagePhone:e.bgImagePhone,pictureHover:_(e),darken:e.darken,darkenStyle:e.darkenStyle,darkenTablet:e[n("darken")],darkenPhone:e[a("darken")],darkenStyleTablet:e[n("darkenStyle")],darkenStylePhone:e[a("darkenStyle")],placement:e.placement,padV2:e.padV2===!0,border:e.sectionBorder,borderTablet:e.sectionBorderTablet,borderPhone:e.sectionBorderPhone,pad:D(e),contained:e.contained,fillHeight:R(e),shadow:e.shadow,shadowTablet:e[n("shadow")],shadowPhone:e[a("shadow")],loop:P(e.loop),scrollDirection:T(e.scrollDirection),loopSeconds:y({loopDuration:e.loopDuration}),loopDelay:k({loopDelay:e.loopDelay}),editing:l,fillColor:e.fillColor,fillColorTablet:e[n("fillColor")],fillColorPhone:e[a("fillColor")],swatch:e[h],line:e.line,upcoming:e.upcoming,link:e.link,boxShape:e.boxShape,boxShapePhone:e[a("boxShape")],boxShapeTablet:e[n("boxShape")],angle:e[c],jumpHighlight:e.jumpHighlight,anchor:e.anchor,sharedSides:m(e),sharedRows:b(e),boxId:typeof e.id=="string"?e.id:void 0,slotCount:j(e),mirrorCards:e.mirrorCards,content:e.content,rowTitle:e.rowTitle,startsOpen:e.startsOpen,rowStyle:e.rowStyle}),o=O(e),r=o?o===C?x(e):f:null,i=t(g.Provider,{value:r,children:d});return e[S]===void 0?i:t(u,{props:e,editing:l,children:i})}};export{q as FlexRender};
@@ -0,0 +1,2 @@
1
+ import type { BlockRender } from "../../../../../../format/lib/document/blocks/block-types.js";
2
+ export declare const ListSearchRender: BlockRender;
@@ -0,0 +1 @@
1
+ import{jsx as r}from"react/jsx-runtime";import d from"../../../../../components/ListSearchBox.js";import{readHidable as n}from"efficient-easel/draw";import{LIST_KEY_PROP as o}from"../../../../../../format/lib/document/list-search-scopes.js";import{ListSearchMeta as a}from"../../../../../../format/lib/document/blocks/general/ListSearch/meta.js";const x={...a,render:t=>{const e=n(t.hint),i=n(t.noMatchText);return r(d,{hint:e.hidden?void 0:e.text,noMatchText:i.hidden?void 0:i.text,listKey:typeof t[o]=="string"?t[o]:void 0,editing:!!t.editor?.isEditing})}};export{x as ListSearchRender};
@@ -1 +1 @@
1
- import{jsx as a,Fragment as r}from"react/jsx-runtime";import{readHidable as s}from"efficient-easel/draw";import{useBoxCell as d}from"../../../../../components/InBoxContext.js";import l from"../../../../../components/LocationMap.js";import{hasMapCoords as u}from"../../../../../../format/lib/map-styles.js";import{LocationMapMeta as c}from"../../../../../../format/lib/document/blocks/general/LocationMap/meta.js";const h="relative overflow-hidden h-full min-h-[560px] max-view-desktop:h-auto max-view-desktop:min-h-0 max-view-desktop:aspect-square",x="relative overflow-hidden grow shrink-0 max-view-wide:shrink basis-0 min-h-[560px] max-view-desktop:basis-auto max-view-desktop:h-auto max-view-desktop:min-h-0 max-view-desktop:aspect-square",w=new Set(["auto","dark","light"]),t=e=>s(e).text.trim();function p(e){return a(l,{...e,boxClass:d()?.fillingColumn?x:h})}const C={...c,render:e=>{const o=Number(e.lat),i=Number(e.lng),n=e.editor?.isEditing===!0;if(!n&&!u(o,i))return a(r,{});const m=e.mapTheme;return a(p,{name:t(e.name),state:t(e.state),country:t(e.country),lat:o,lng:i,mapsUrl:t(e.mapsUrl),mapTheme:w.has(m)?m:"auto",editing:n})}};export{C as LocationMapRender};
1
+ import{jsx as a,Fragment as m}from"react/jsx-runtime";import{readHidable as s}from"efficient-easel/draw";import{useBoxCell as d}from"../../../../../components/InBoxContext.js";import l from"../../../../../components/LocationMap.js";import{hasMapCoords as u}from"../../../../../../format/lib/map-styles.js";import{LocationMapMeta as c}from"../../../../../../format/lib/document/blocks/general/LocationMap/meta.js";const h="relative overflow-hidden h-full min-h-[560px] max-view-desktop:h-auto max-view-desktop:min-h-0 max-view-desktop:aspect-square",x="relative overflow-hidden grow shrink-0 max-view-wide:shrink basis-0 min-h-[560px] max-view-desktop:basis-auto max-view-desktop:h-auto max-view-desktop:min-h-0 max-view-desktop:aspect-square",w=new Set(["auto","dark","light"]),t=e=>s(e).text.trim();function p(e){return a(l,{...e,takesViewHide:!0,boxClass:d()?.fillingColumn?x:h})}const C={...c,render:e=>{const o=Number(e.lat),i=Number(e.lng),n=e.editor?.isEditing===!0;if(!n&&!u(o,i))return a(m,{});const r=e.mapTheme;return a(p,{name:t(e.name),state:t(e.state),country:t(e.country),lat:o,lng:i,mapsUrl:t(e.mapsUrl),mapTheme:w.has(r)?r:"auto",editing:n})}};export{C as LocationMapRender};
@@ -1,2 +1,2 @@
1
- import{jsx as I}from"react/jsx-runtime";import L from"../../../../../components/MockupSection.js";import{phHide as t,hidableRow as o}from"../../scaffold.js";import{MockupMeta as _}from"../../../../../../format/lib/document/blocks/general/Mockup/meta.js";const F={..._,render:({eyebrow:r,title:i,body:l,variant:c,cardHeader:a,badge:d,cardTitle:n,cardSubtitle:s,pills:p,tiles:m,rows:u,button:b,footnote:T,col1Title:f,col1Cards:h,col2Title:g,col2Cards:x,col3Title:C,col3Cards:M,col4Title:k,col4Cards:w,barsHeading:H,bars:S,termLines:j,urlText:y,heroTitle:R,heroButton:v,products:B,align:E,editor:e})=>I(L,{eyebrow:t(r,"In the product",e),title:t(i,`Seen from
2
- *the counter.*`,e),body:o(l),variant:c,cardHeader:o(a),badge:o(d),cardTitle:o(n),cardSubtitle:o(s),pills:p,tiles:m,rows:u,button:o(b),footnote:o(T),col1Title:o(f),col1Cards:h,col2Title:o(g),col2Cards:x,col3Title:o(C),col3Cards:M,col4Title:o(k),col4Cards:w,barsHeading:o(H),bars:S,termLines:j,urlText:o(y),heroTitle:o(R),heroButton:o(v),products:B,align:E,editing:e?.isEditing})};export{F as MockupRender};
1
+ import{jsx as q}from"react/jsx-runtime";import z from"../../../../../components/MockupSection.js";import{phHide as i,hidableRow as o}from"../../scaffold.js";import{parseSectionHeadPlacement as A}from"../../../../../../format/lib/sections/section-head-placement.js";import{MockupMeta as D}from"../../../../../../format/lib/document/blocks/general/Mockup/meta.js";const O={...D,render:({eyebrow:n,title:c,body:l,variant:a,cardHeader:d,badge:s,cardTitle:m,cardSubtitle:p,pills:u,tiles:b,rows:f,button:T,footnote:h,col1Title:w,col1Cards:x,col2Title:g,col2Cards:H,col3Title:C,col3Cards:M,col4Title:S,col4Cards:k,barsHeading:j,bars:y,termLines:B,urlText:R,heroTitle:v,heroButton:E,products:I,align:L,headPlacement:P,editor:e})=>{const r=A(P)==="own-box",t=_=>r?void 0:_;return q(z,{eyebrow:t(i(n,"In the product",e)),title:t(i(c,`Seen from
2
+ *the counter.*`,e)),body:t(o(l)),variant:a,cardHeader:o(d),badge:o(s),cardTitle:o(m),cardSubtitle:o(p),pills:u,tiles:b,rows:f,button:o(T),footnote:o(h),col1Title:o(w),col1Cards:x,col2Title:o(g),col2Cards:H,col3Title:o(C),col3Cards:M,col4Title:o(S),col4Cards:k,barsHeading:o(j),bars:y,termLines:B,urlText:o(R),heroTitle:o(v),heroButton:o(E),products:I,align:L,editing:e?.isEditing,omitHead:r})}};export{O as MockupRender};
@@ -0,0 +1,2 @@
1
+ import { type BlockSeed } from "../../../../../../format/lib/document/seed-parts.js";
2
+ export declare const orderSummaryCardSeed: () => BlockSeed;
@@ -0,0 +1 @@
1
+ import{BOX_TYPE as t,CONTAINER_BLOCKS_SLOT as o}from"../../../../../../format/lib/document/container-blocks.js";import{DIM as s,INNER_BOX as r,LABEL_FACE as d,TEXT as n,boxPadding as g,token as p}from"../../../../../../format/lib/document/seed-parts.js";import{rowFieldTextSeed as e}from"../../../../../../format/lib/document/blocks/general/Cards/card-seed.js";import{phoneKey as a}from"efficient-easel/draw";const i=1.5,m={textStyle:"body-1",...p("body",15),lineHeight:i},l={...d,...p("label",12),letterSpacing:.12,lineHeight:i},_=()=>({type:t,props:{...r,direction:"row",justify:"between",align:"start",gap:16,gapPhone:16,share:"content",phoneRow:2,[a("share")]:"content",[a("wrap")]:"nowrap",...g(12,0),sectionBorder:{top:1},name:"Item"},slots:{[o]:[{type:t,props:{...r,gap:0,gapPhone:0,name:"Item words"},slots:{[o]:[e("label",{...n,tag:"p"},m),e("meta",{...s,tag:"p"},l)]}},e("amount",{...n,tag:"p"},m)]}});export{_ as orderSummaryCardSeed};
@@ -1 +1 @@
1
- import{jsx as i}from"react/jsx-runtime";import A from"../../../../../components/ParagraphsA.js";import{PH as P}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phHide as o}from"../../scaffold.js";import{ParagraphsAMeta as u,PARAGRAPHS_A_PH as a}from"../../../../../../format/lib/document/blocks/general/ParagraphsA/meta.js";const x={...u,render:({eyebrow:e,lead:t,stats:p,foundersHeading:s,foundersBody:d,attribution:m,padTop:n,padBottom:f,editor:r})=>i(A,{eyebrow:o(e,a.eyebrow,r),lead:o(t,P.body,r),stats:p,foundersHeading:o(s,a.foundersHeading,r),foundersBody:o(d,a.foundersBody,r),attribution:o(m,a.attribution,r),padTop:n,padBottom:f})};export{x as ParagraphsARender};
1
+ import{jsx as f}from"react/jsx-runtime";import u from"../../../../../components/ParagraphsA.js";import{PH as A}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phHide as o}from"../../scaffold.js";import{ParagraphsAMeta as H,PARAGRAPHS_A_PH as a}from"../../../../../../format/lib/document/blocks/general/ParagraphsA/meta.js";const w={...H,render:({eyebrow:e,lead:t,stats:s,foundersHeading:p,foundersBody:d,attribution:m,padTop:n,padBottom:i,editor:r})=>f(u,{takesViewHide:!0,eyebrow:o(e,a.eyebrow,r),lead:o(t,A.body,r),stats:s,foundersHeading:o(p,a.foundersHeading,r),foundersBody:o(d,a.foundersBody,r),attribution:o(m,a.attribution,r),padTop:n,padBottom:i})};export{w as ParagraphsARender};
@@ -1 +1 @@
1
- import{Fragment as b,jsx as t}from"react/jsx-runtime";import c from"../../../../../components/PaymentBadges.js";import{declaredBlockSource as h,sourcedRows as f}from"../../../../../../format/lib/content/block-sources.js";import{phRows as l,phHide as m}from"../../scaffold.js";import{say as a}from"../../../../../../format/lib/editor-words.js";import{PaymentBadgesMeta as y,PAYMENT_PH as u}from"../../../../../../format/lib/document/blocks/general/PaymentBadges/meta.js";const p=[{label:"Visa"},{label:"Mastercard"},{label:"Amex"},{label:"PayPal"}],k=()=>[{text:a("Secure encrypted checkout")},{text:a("30-day returns")}],A=()=>[{label:a("Cash"),kind:"cash"},{label:a("Card"),kind:"card"},{label:a("Bank transfer"),kind:"wire"}],M={...y,render:n=>{const{heading:d,badges:g,assurances:s,contained:o,editor:e}=n;if(h(n)!==""){const i=f(n,!!e?.isEditing,A()).rows.filter(r=>r.label).map(r=>({label:r.label,kind:r.kind}));return i.length?t(c,{heading:m(d,u.heading,e),badges:i,assurances:Array.isArray(s)?s:[],contained:o,sourced:!0}):t(b,{})}return t(c,{heading:m(d,u.heading,e),badges:l(g,p,e),assurances:l(s,k(),e),contained:o})}};export{M as PaymentBadgesRender};
1
+ import{Fragment as u,jsx as s}from"react/jsx-runtime";import m from"../../../../../components/PaymentBadges.js";import{declaredBlockSource as h,sourcedRows as p}from"../../../../../../format/lib/content/block-sources.js";import{phRows as c,phHide as l}from"../../scaffold.js";import{say as d}from"../../../../../../format/lib/editor-words.js";import{PaymentBadgesMeta as b,PAYMENT_PH as g,paymentScaffoldAssurances as y,paymentScaffoldBadges as k}from"../../../../../../format/lib/document/blocks/general/PaymentBadges/meta.js";const B=()=>[{label:d("Cash"),kind:"cash"},{label:d("Card"),kind:"card"},{label:d("Bank transfer"),kind:"wire"}],j={...b,render:r=>{const{heading:t,badges:f,assurances:n,contained:o,editor:e}=r;if(h(r)!==""){const i=p(r,!!e?.isEditing,B()).rows.filter(a=>a.label).map(a=>({label:a.label,kind:a.kind}));return i.length?s(m,{heading:l(t,g.heading,e),badges:i,assurances:Array.isArray(n)?n:[],contained:o,sourced:!0}):s(u,{})}return s(m,{heading:l(t,g.heading,e),badges:c(f,k(),e),assurances:c(n,y(),e),contained:o})}};export{j as PaymentBadgesRender};
@@ -1 +1 @@
1
- import{jsx as r}from"react/jsx-runtime";import n from"../../../../../components/PostCard.js";import{hidableText as l}from"efficient-easel/draw";import{phHide as a}from"../../scaffold.js";import{PostCardMeta as o,POSTCARD_PH as i}from"../../../../../../format/lib/document/blocks/general/PostCard/meta.js";const h={...o,render:e=>{const t=e.source,d=!!t?.slug;return r(n,{post:{slug:d?t.slug:"post-card",title:(d?t.title:a(e.title,i.title,e.editor))||"",excerpt:(d?t.dek:a(e.excerpt,i.excerpt,e.editor))||"",cover:(d?t.image:e.image)||"",meta:a(e.category,i.category,e.editor)||void 0,dateLabel:(d?t.date:a(e.date,i.date,e.editor))||void 0,read:a(e.readLabel,i.readLabel,e.editor)||void 0},href:(d?t.href:l(e.href))||void 0,layout:e.layout,showCover:e.showCover,placement:e.placement,darken:e.darken,darkenStyle:e.darkenStyle,minHeight:e.minHeight,scaffold:!!e.editor?.isEditing&&!d})}};export{h as PostCardRender};
1
+ import{jsx as r}from"react/jsx-runtime";import n from"../../../../../components/PostCard.js";import{hidableText as l}from"efficient-easel/draw";import{phHide as i}from"../../scaffold.js";import{PostCardMeta as o,POSTCARD_PH as a}from"../../../../../../format/lib/document/blocks/general/PostCard/meta.js";const h={...o,render:e=>{const t=e.source,d=!!t?.slug;return r(n,{takesViewHide:!0,post:{slug:d?t.slug:"post-card",title:(d?t.title:i(e.title,a.title,e.editor))||"",excerpt:(d?t.dek:i(e.excerpt,a.excerpt,e.editor))||"",cover:(d?t.image:e.image)||"",meta:i(e.category,a.category,e.editor)||void 0,dateLabel:(d?t.date:i(e.date,a.date,e.editor))||void 0,read:i(e.readLabel,a.readLabel,e.editor)||void 0},href:(d?t.href:l(e.href))||void 0,layout:e.layout,showCover:e.showCover,placement:e.placement,darken:e.darken,darkenStyle:e.darkenStyle,minHeight:e.minHeight,scaffold:!!e.editor?.isEditing&&!d})}};export{h as PostCardRender};
@@ -1 +1 @@
1
- import{jsx as n}from"react/jsx-runtime";import{resolveWidth as y}from"../../../../../../format/lib/content/section-width.js";import{FRAME as N}from"../../../../../components/BlockFrame.js";import b from"../../../../../components/EditorialSectionHead.js";import{renderGold as E,renderHeadline as G}from"../../../../../components/goldPhrases.js";import l from"../../../../../components/SectionHeader.js";import{hidableText as d}from"efficient-easel/draw";import{parseNaturalDescriptionSize as R,parseNaturalRowGap as j,parseSectionHeadStyle as z}from"../../../../../../format/lib/sections/section-head-style.js";import{parseSectionEyebrowLook as s}from"../../../../../../format/lib/sections/section-eyebrow-look.js";import{phHide as t}from"../../scaffold.js";import{SectionHeaderMeta as L}from"../../../../../../format/lib/document/blocks/general/SectionHeader/meta.js";const I={...L,render:({headStyle:u,num:o,numStyle:f,eyebrowLook:c,title:i,description:p,logoSrc:m,logoAlt:x,linkText:w,linkHref:H,rowGap:h,descriptionSize:k,widthMode:g,editor:e})=>{const S=t(w,"View all",e),v=y({widthMode:g},"full"),r=z(u);return n("section",{className:"px-[var(--sf-site-gutter,40px)] pt-10 max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))] max-view-wide:pt-6",children:n("div",{className:v.mode==="page"?N:void 0,children:r==="editorial"?n(b,{num:t(o,"01 / Section",e),title:(()=>{const a=t(i,"Section *title*",e);return a?G(a,!0):void 0})(),desc:(()=>{const a=t(p,"Short supporting line",e);return a?E(a):void 0})(),spaceBelow:""}):r==="simple"?n(l,{look:"simple",num:t(o,"01 / Section",e),title:t(i,"Section *title*",e),eyebrowLook:s(c,"SectionHeader")}):r==="statement"?n(l,{look:"statement",num:t(o,"01 / Section",e),title:t(i,"Section *title*",e),eyebrowLook:s(c,"SectionHeader")}):r==="natural"?n(l,{look:"natural",num:t(o,"01 / Section",e),title:t(i,"Section *title*",e),description:t(p,"Short supporting line",e),eyebrowLook:s(c,"SectionHeader"),rowGap:j(h),descriptionSize:R(k)}):r==="essay"?n(l,{look:"essay",num:t(o,"01 / Section",e),title:t(i,"Section *title*",e),eyebrowLook:s(c,"SectionHeader")}):n(l,{num:t(o,"01 / Section",e),title:t(i,"Section *title*",e),description:t(p,"Short supporting line",e),logo:m?{src:m,alt:d(x)}:void 0,link:S?{text:S,href:d(H)||"#"}:void 0,numStyle:f,accent:!0})})})}};export{I as SectionHeaderRender};
1
+ import{jsx as o}from"react/jsx-runtime";import{HideTaker as y}from"../../../../../components/ViewHideRoot.js";import{resolveWidth as N}from"../../../../../../format/lib/content/section-width.js";import{FRAME as b}from"../../../../../components/BlockFrame.js";import E from"../../../../../components/EditorialSectionHead.js";import{renderGold as G,renderHeadline as R}from"../../../../../components/goldPhrases.js";import l from"../../../../../components/SectionHeader.js";import{hidableText as d}from"efficient-easel/draw";import{parseNaturalDescriptionSize as j,parseNaturalRowGap as z,parseSectionHeadStyle as L}from"../../../../../../format/lib/sections/section-head-style.js";import{parseSectionEyebrowLook as c}from"../../../../../../format/lib/sections/section-eyebrow-look.js";import{phHide as t}from"../../scaffold.js";import{SectionHeaderMeta as M}from"../../../../../../format/lib/document/blocks/general/SectionHeader/meta.js";const K={...M,render:({headStyle:u,num:i,numStyle:f,eyebrowLook:s,title:n,description:p,logoSrc:m,logoAlt:x,linkText:H,linkHref:w,rowGap:h,descriptionSize:k,widthMode:g,editor:e})=>{const S=t(H,"View all",e),v=N({widthMode:g},"full"),r=L(u);return o(y,{as:"section",className:"px-[var(--sf-site-gutter,40px)] pt-10 max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))] max-view-wide:pt-6",children:o("div",{className:v.mode==="page"?b:void 0,children:r==="editorial"?o(E,{num:t(i,"01 / Section",e),title:(()=>{const a=t(n,"Section *title*",e);return a?R(a,!0):void 0})(),desc:(()=>{const a=t(p,"Short supporting line",e);return a?G(a):void 0})(),spaceBelow:""}):r==="simple"?o(l,{look:"simple",num:t(i,"01 / Section",e),title:t(n,"Section *title*",e),eyebrowLook:c(s,"SectionHeader")}):r==="statement"?o(l,{look:"statement",num:t(i,"01 / Section",e),title:t(n,"Section *title*",e),eyebrowLook:c(s,"SectionHeader")}):r==="natural"?o(l,{look:"natural",num:t(i,"01 / Section",e),title:t(n,"Section *title*",e),description:t(p,"Short supporting line",e),eyebrowLook:c(s,"SectionHeader"),rowGap:z(h),descriptionSize:j(k)}):r==="essay"?o(l,{look:"essay",num:t(i,"01 / Section",e),title:t(n,"Section *title*",e),eyebrowLook:c(s,"SectionHeader")}):o(l,{num:t(i,"01 / Section",e),title:t(n,"Section *title*",e),description:t(p,"Short supporting line",e),logo:m?{src:m,alt:d(x)}:void 0,link:S?{text:S,href:d(w)||"#"}:void 0,numStyle:f,accent:!0})})})}};export{K as SectionHeaderRender};
@@ -10,6 +10,7 @@ export declare const GENERAL_RENDERS: {
10
10
  CustomHTML: BlockRender;
11
11
  Divider: BlockRender;
12
12
  Contents: BlockRender;
13
+ ListSearch: BlockRender;
13
14
  DocBody: BlockRender;
14
15
  DocMasthead: BlockRender;
15
16
  DocMetaCards: BlockRender;
@@ -1 +1 @@
1
- import{BannerRender as r}from"./Banner/render.js";import{BreadcrumbRender as e}from"./Breadcrumb/render.js";import{ButtonBlockRender as o}from"./ButtonBlock/render.js";import{CardsRender as t}from"./Cards/render.js";import{CategoryBarRender as m}from"./CategoryBar/render.js";import{ChartRender as i}from"./Chart/render.js";import{ContactLocationsRender as n}from"./ContactLocations/render.js";import{CustomHTMLRender as d}from"./CustomHTML/render.js";import{DividerRender as a}from"./Divider/render.js";import{ContentsRender as p}from"./Contents/render.js";import{DocBodyRender as R}from"./DocBody/render.js";import{DocMastheadRender as f}from"./DocMasthead/render.js";import{DocMetaCardsRender as s}from"./DocMetaCards/render.js";import{DocTabsRender as c}from"./DocTabs/render.js";import{EyebrowRender as S}from"./Eyebrow/render.js";import{FAQRender as l}from"./FAQ/render.js";import{FeaturedCoverRender as g}from"./FeaturedCover/render.js";import{FlexRender as B}from"./Flex/render.js";import{FootprintRender as C}from"./Footprint/render.js";import{GridRender as u}from"./Grid/render.js";import{HeadingRender as T}from"./Heading/render.js";import{HeroRender as L}from"./Hero/render.js";import{HeroGroupRender as H}from"./HeroGroup/render.js";import{HeroSingleRender as M}from"./HeroSingle/render.js";import{HeroSlideRender as h}from"./HeroSlide/render.js";import{ImageBlockRender as k}from"./ImageBlock/render.js";import{IntegrationsRender as y}from"./Integrations/render.js";import{IntroBleedRender as P}from"./IntroBleed/render.js";import{CountdownRender as D}from"./Countdown/render.js";import{KeyFeaturesRender as F}from"./KeyFeatures/render.js";import{LocationMapRender as b}from"./LocationMap/render.js";import{LogoBlockRender as E}from"./LogoBlock/render.js";import{LogosRender as I}from"./Logos/render.js";import{LongReadRender as x}from"./LongRead/render.js";import{ManifestoRender as A}from"./Manifesto/render.js";import{MastheadRender as G}from"./Masthead/render.js";import{MockupRender as v}from"./Mockup/render.js";import{OrderSummaryRender as w}from"./OrderSummary/render.js";import{CardListRender as K}from"./CardList/render.js";import{ParagraphsARender as N}from"./ParagraphsA/render.js";import{PaymentBadgesRender as O}from"./PaymentBadges/render.js";import{PostCardRender as Q}from"./PostCard/render.js";import{ProcessStepsRender as W}from"./ProcessSteps/render.js";import{ProseRender as _}from"./Prose/render.js";import{SectionHeaderRender as j}from"./SectionHeader/render.js";import{SeriesRender as q}from"./Series/render.js";import{SpacerRender as z}from"./Spacer/render.js";import{SpecStripRender as J}from"./SpecStrip/render.js";import{SplitRender as U}from"./Split/render.js";import{StatsRender as V}from"./Stats/render.js";import{StatsParagraphRender as X}from"./StatsParagraph/render.js";import{TestimonialsRender as Y}from"./Testimonials/render.js";import{TextRender as Z}from"./Text/render.js";import{TickerRender as $}from"./Ticker/render.js";import{TimelineRender as rr}from"./Timeline/render.js";import{TimelineTrackRender as er}from"./TimelineTrack/render.js";import{TitleWithButtonsRender as or}from"./TitleWithButtons/render.js";const ne={Banner:r,Breadcrumb:e,ButtonBlock:o,Cards:t,CategoryBar:m,Chart:i,ContactLocations:n,CustomHTML:d,Divider:a,Contents:p,DocBody:R,DocMasthead:f,DocMetaCards:s,DocTabs:c,Eyebrow:S,FAQ:l,FeaturedCover:g,Flex:B,Footprint:C,Grid:u,Heading:T,Hero:L,HeroGroup:H,HeroSingle:M,HeroSlide:h,ImageBlock:k,Integrations:y,IntroBleed:P,Countdown:D,KeyFeatures:F,LocationMap:b,LogoBlock:E,Logos:I,LongRead:x,Manifesto:A,Masthead:G,Mockup:v,OrderSummary:w,CardList:K,ParagraphsA:N,PaymentBadges:O,PostCard:Q,ProcessSteps:W,Prose:_,SectionHeader:j,Series:q,Spacer:z,SpecStrip:J,Split:U,Stats:V,StatsParagraph:X,Testimonials:Y,Text:Z,Ticker:$,Timeline:rr,TimelineTrack:er,TitleWithButtons:or};export{ne as GENERAL_RENDERS};
1
+ import{BannerRender as r}from"./Banner/render.js";import{BreadcrumbRender as e}from"./Breadcrumb/render.js";import{ButtonBlockRender as o}from"./ButtonBlock/render.js";import{CardsRender as t}from"./Cards/render.js";import{CategoryBarRender as m}from"./CategoryBar/render.js";import{ChartRender as i}from"./Chart/render.js";import{ContactLocationsRender as n}from"./ContactLocations/render.js";import{CustomHTMLRender as d}from"./CustomHTML/render.js";import{DividerRender as a}from"./Divider/render.js";import{ContentsRender as p}from"./Contents/render.js";import{ListSearchRender as R}from"./ListSearch/render.js";import{DocBodyRender as f}from"./DocBody/render.js";import{DocMastheadRender as s}from"./DocMasthead/render.js";import{DocMetaCardsRender as c}from"./DocMetaCards/render.js";import{DocTabsRender as S}from"./DocTabs/render.js";import{EyebrowRender as l}from"./Eyebrow/render.js";import{FAQRender as g}from"./FAQ/render.js";import{FeaturedCoverRender as B}from"./FeaturedCover/render.js";import{FlexRender as C}from"./Flex/render.js";import{FootprintRender as u}from"./Footprint/render.js";import{GridRender as T}from"./Grid/render.js";import{HeadingRender as L}from"./Heading/render.js";import{HeroRender as h}from"./Hero/render.js";import{HeroGroupRender as H}from"./HeroGroup/render.js";import{HeroSingleRender as M}from"./HeroSingle/render.js";import{HeroSlideRender as k}from"./HeroSlide/render.js";import{ImageBlockRender as y}from"./ImageBlock/render.js";import{IntegrationsRender as P}from"./Integrations/render.js";import{IntroBleedRender as D}from"./IntroBleed/render.js";import{CountdownRender as F}from"./Countdown/render.js";import{KeyFeaturesRender as b}from"./KeyFeatures/render.js";import{LocationMapRender as E}from"./LocationMap/render.js";import{LogoBlockRender as I}from"./LogoBlock/render.js";import{LogosRender as x}from"./Logos/render.js";import{LongReadRender as A}from"./LongRead/render.js";import{ManifestoRender as G}from"./Manifesto/render.js";import{MastheadRender as v}from"./Masthead/render.js";import{MockupRender as w}from"./Mockup/render.js";import{OrderSummaryRender as K}from"./OrderSummary/render.js";import{CardListRender as N}from"./CardList/render.js";import{ParagraphsARender as O}from"./ParagraphsA/render.js";import{PaymentBadgesRender as Q}from"./PaymentBadges/render.js";import{PostCardRender as W}from"./PostCard/render.js";import{ProcessStepsRender as _}from"./ProcessSteps/render.js";import{ProseRender as j}from"./Prose/render.js";import{SectionHeaderRender as q}from"./SectionHeader/render.js";import{SeriesRender as z}from"./Series/render.js";import{SpacerRender as J}from"./Spacer/render.js";import{SpecStripRender as U}from"./SpecStrip/render.js";import{SplitRender as V}from"./Split/render.js";import{StatsRender as X}from"./Stats/render.js";import{StatsParagraphRender as Y}from"./StatsParagraph/render.js";import{TestimonialsRender as Z}from"./Testimonials/render.js";import{TextRender as $}from"./Text/render.js";import{TickerRender as rr}from"./Ticker/render.js";import{TimelineRender as er}from"./Timeline/render.js";import{TimelineTrackRender as or}from"./TimelineTrack/render.js";import{TitleWithButtonsRender as tr}from"./TitleWithButtons/render.js";const ae={Banner:r,Breadcrumb:e,ButtonBlock:o,Cards:t,CategoryBar:m,Chart:i,ContactLocations:n,CustomHTML:d,Divider:a,Contents:p,ListSearch:R,DocBody:f,DocMasthead:s,DocMetaCards:c,DocTabs:S,Eyebrow:l,FAQ:g,FeaturedCover:B,Flex:C,Footprint:u,Grid:T,Heading:L,Hero:h,HeroGroup:H,HeroSingle:M,HeroSlide:k,ImageBlock:y,Integrations:P,IntroBleed:D,Countdown:F,KeyFeatures:b,LocationMap:E,LogoBlock:I,Logos:x,LongRead:A,Manifesto:G,Masthead:v,Mockup:w,OrderSummary:K,CardList:N,ParagraphsA:O,PaymentBadges:Q,PostCard:W,ProcessSteps:_,Prose:j,SectionHeader:q,Series:z,Spacer:J,SpecStrip:U,Split:V,Stats:X,StatsParagraph:Y,Testimonials:Z,Text:$,Ticker:rr,Timeline:er,TimelineTrack:or,TitleWithButtons:tr};export{ae as GENERAL_RENDERS};
@@ -7,6 +7,7 @@ export declare const NUMBER_TEXT: Props;
7
7
  export declare const BUTTON: Props;
8
8
  export declare const SH_LINK: Props;
9
9
  export declare const SECTION_BOX: Props;
10
+ export declare const FOLLOW_THE_BOX: Props;
10
11
  export declare const SAME_KEYS: readonly BoxEntry[];
11
12
  export declare const DROP_COMMON: Readonly<Record<string, string>>;
12
13
  export declare const DROP_SIDE_PADDING: Readonly<Record<string, string>>;
@@ -33,7 +34,8 @@ export declare const leadText: (lead: string, rest: string, props: Props) => Par
33
34
  export declare const leadLine: (lead: string, rest: string, run: Props, own?: Props) => PartRow;
34
35
  export declare const bandPage: (stored: unknown, ctx: ConvertContext) => number;
35
36
  export declare const sectionPage: (p: Props, ctx: ConvertContext) => import("../../../../../format/lib/theme.js").ThemeColors | undefined;
36
- export declare const fillFrom: (colour: "surface" | "background") => (p: Props, ctx: ConvertContext) => Props;
37
+ export declare const fillFrom: (colour: "surface" | "background", overBand?: (p: Props, ctx: ConvertContext) => boolean) => (p: Props, ctx: ConvertContext) => Props;
38
+ export declare const onBandPreset: (p: Props, ctx: ConvertContext) => boolean;
37
39
  export declare const ownFill: (painted: string | undefined, p: Props, ctx: ConvertContext) => Props;
38
40
  export declare const fillNoBoxHolds: (painted: string | undefined) => string | undefined;
39
41
  export declare const bandIndex: (p: Props, ctx: ConvertContext) => number;
@@ -1 +1 @@
1
- import{SECTION_WIDTH_KEYS as W}from"../../../../../format/lib/content/section-width.js";import{phoneKey as v}from"efficient-easel/draw";import{BOX as L,INNER_BOX as M,LABEL_FACE as U,TEXT as N}from"../../../../../format/lib/document/seed-parts.js";import{ENTRANCE_KEYS as w}from"../../../animation/entrance.js";import{CARD_HOVER_KEYS as b}from"../../../../../format/lib/animation/hover.js";import{COUNT_KEY_PROP as y}from"../../../../../format/lib/content/block-sources.js";import{normalizeSiteGutter as F}from"../../../../../format/lib/content/page-width.js";import{resolveSectionPadding as K}from"../../../content/section-padding.js";import{ButtonBlockMeta as X}from"../../../../../format/lib/document/blocks/general/ButtonBlock/meta.js";import{SECTION_PAD_INNER_DEFAULTS as G}from"../../passes/section-padding.js";import{finiteNumber as p}from"../../../../../format/lib/finite-number.js";import{convertTheme as f,hasWords as Y}from"../../../sections/section-to-box.js";import{THEME_SECTION_BG as j}from"../../../../../format/lib/content/section-background.js";import{parseHexColor as V}from"efficient-shell/format";import{convertLength as $,isLengthUnit as J}from"efficient-easel/screen/lib/content/length-units";import{bandPresetIndex as z,surfaceTwoTone as q}from"../../../../../format/lib/theme.js";const x=t=>J(t)?t:"px",d=(t,o,e,n)=>o===e?t:$(t,o,e,n,{min:0,max:200,step:4});import{BOX as Yt,DIM as jt,INNER_BOX as Vt,TEXT as $t}from"../../../../../format/lib/document/seed-parts.js";const _t={textFit:"line",textFitPhone:"wrap"},Q={...N,[y]:""},{label:Bt,href:Et,...Z}=X.defaultProps,Ot=Z,St={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},Ut={...L,sectionAccent:0},Nt=["gridSpan","sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent","stickTop","stickTopDistance","stickTopTablet","stickTopDistanceTablet","stickTopPhone","stickTopDistancePhone","anchor","sectionAnimation","_hidden",...Object.values(w).flatMap(t=>[t,v(t)]),"widthFit","widthFitTablet","widthFitPhone","width","widthTablet","widthPhone","minWidth","minWidthTablet","minWidthPhone","maxWidth","maxWidthTablet","maxWidthPhone",...Object.values(W)],a="a section width key, ignored since efficient-web-builder 45 (an old key; a section's own width has new keys, lib/content/section-width), so dropping it changes nothing",At={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:a,fullWidth:a,pageWidth:a,backgroundWidth:a,contentWidth:a,contentMax:a},Ct=Object.fromEntries(["sectionPaddingLeft","sectionPaddingRight","sectionPaddingLeftTablet","sectionPaddingRightTablet","sectionPaddingLeftPhone","sectionPaddingRightPhone"].map(t=>[t,"needs Box side padding outside its gutter: the old section added it outside its frame, a Box's side padding replaces the gutter. 0 live nodes store it (JJ's read-only export, 2026-10-24)"]));function tt(t,o){const e=p(t.sectionPaddingTop)??0,n=p(t.sectionPaddingBottom)??0,i=p(t.sectionPaddingTopTablet),s=p(t.sectionPaddingBottomTablet),l=x(t.sectionPaddingUnit),g=x(t.sectionPaddingUnitTablet),u=x(t.sectionPaddingUnitPhone),E=(h,c,T,P)=>{const r=p(h);if(r!==void 0)return r+d(P,"px",u,"mobile");const S=c===void 0?{n:T,unit:l}:{n:c,unit:g};return d(S.n,S.unit,u,"mobile")+d(P,"px",u,"mobile")},O=(h,c,T,P,r)=>c!==void 0?{[h]:c+d(r??P,"px",g,"tablet")}:r===void 0?{}:{[h]:d(T,l,g,"tablet")+d(r,"px",g,"tablet")};return{sectionPaddingTop:e+d(o.top,"px",l,"desktop"),sectionPaddingBottom:n+d(o.bottom,"px",l,"desktop"),...O("sectionPaddingTopTablet",i,e,o.top,o.topTablet),...O("sectionPaddingBottomTablet",s,n,o.bottom,o.bottomTablet),sectionPaddingTopPhone:E(t.sectionPaddingTopPhone,i,e,o.topPhone),sectionPaddingBottomPhone:E(t.sectionPaddingBottomPhone,s,n,o.bottomPhone)}}const It=t=>[...["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopTablet","sectionPaddingBottomTablet","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(e,n)=>tt(n,typeof t=="function"?t(n):t)[o]]),["sectionPaddingUnit","sectionPaddingUnit"],["sectionPaddingUnitTablet","sectionPaddingUnitTablet"],["sectionPaddingUnitPhone","sectionPaddingUnitPhone"]];function m(t,o){const e=K(t,G[o]);return{sectionPaddingTop:e.top,sectionPaddingBottom:e.bottom}}const Rt=t=>[["padTop","sectionPaddingTop",(o,e)=>m(e,t).sectionPaddingTop],["padBottom","sectionPaddingBottom",(o,e)=>m(e,t).sectionPaddingBottom],["sectionPaddingTop","sectionPaddingTop",(o,e)=>m(e,t).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,e)=>m(e,t).sectionPaddingBottom]],ot={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},kt=t=>o=>Y(o.props[t])?[ot]:[],Ht=(t,o)=>({kind:"text",key:t,role:"eyebrow",props:N,...o?{style:o}:{}}),A=t=>t.background!=="transparent",et=(t,o)=>{const[e,n]=[t,o].map(i=>typeof i=="string"?i.trim():"");return e?n?`[${e} ]{color=text}${n}`:`[${e}]{color=text}`:n},C={align:"right",alignPhone:"left"},nt=(t,o,e)=>{const n=i=>et(i[t],i[o]);return{kind:"block",type:"Text",when:(i,s)=>s!==void 0&&n(s)!=="",box:[[t,"text",(i,s)=>n(s)],[o,"text",(i,s)=>n(s)]],props:e}},Dt=(t,o,e,n={})=>nt(t,o,{...Q,...C,...n,_partStyles:{text:{...U,color:"labels",...e,case:U.case,...C}}}),_=(t,o)=>typeof t=="number"&&Number.isInteger(t)&&t>=0?t:f(o)?.selected??0,I="var(--site-surface)",R="var(--site-surface-2)",k=(t,o)=>f(o)?.themes[_(t.sectionAccent??0,o)],H=t=>(o,e)=>{const n=k(o,e)?.[t];return n?{fillColor:n}:{}},D=t=>t.startsWith("#")&&V(t)!==null,Wt=(t,o,e)=>{const n=t?.trim();if(n&&D(n))return{fillColor:n};if(n===I)return H("surface")(o,e);const i=n===R?k(o,e):void 0;return i?{fillColor:q(i)}:{}},vt=t=>{const o=t?.trim();return!o||o==="transparent"||o===j||o===I||o===R||D(o)?void 0:"it paints a colour that no Box Fill can hold"},B=(t,o)=>{const e=f(o)?.themes;return e&&A(t)?z(e,_(t.sectionAccent,o)):-1},Lt=(t,o,e)=>{const n=B(o,e);return n>=0?n:t},Mt=(t,o)=>{const e=B(t,o);return e>=0?{sectionAccent:e}:{}},wt=(t,o)=>A(t.props)&&B(t.props,o)<0?[{kind:"band-preset",page:_(t.props.sectionAccent,o)}]:[],yt=t=>F(t.site?.siteGutter),it=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(t=>[`sectionPadding${t}`,0])),Ft=t=>({top:0,right:0,bottom:0,left:0,...t}),Kt=(t,o,e,n=[])=>({kind:"group",name:t,keepEmpty:!0,props:(i,s)=>({...M,...it,...H("surface")(i,s),...typeof e=="function"?e(i,s):e}),box:[[o,"bgImage"],b.kind,b.duration,b.delay],parts:n});export{_t as AUTO_COLUMN,Yt as BOX,Ot as BUTTON,jt as DIM,At as DROP_COMMON,Ct as DROP_SIDE_PADDING,ot as HEADING_CASE_UPPER,Vt as INNER_BOX,it as NO_PAD,Q as NUMBER_TEXT,C as RIGHT_WORDS,Nt as SAME_KEYS,Ut as SECTION_BOX,St as SH_LINK,$t as TEXT,Lt as bandAccent,B as bandIndex,_ as bandPage,Mt as bandProps,wt as bandWrites,H as fillFrom,vt as fillNoBoxHolds,kt as headingCaseOf,m as innerPad,Rt as innerPadKeys,Dt as leadLine,nt as leadText,Ft as lineSides,et as numberAndUnit,Wt as ownFill,Kt as pictureCell,k as sectionPage,yt as siteGutterOf,Ht as smallText,tt as wrapperPad,It as wrapperPadKeys};
1
+ import{SECTION_WIDTH_KEYS as D}from"../../../../../format/lib/content/section-width.js";import{phoneKey as W}from"efficient-easel/draw";import{BOX as L,INNER_BOX as v,LABEL_FACE as U,TEXT as I}from"../../../../../format/lib/document/seed-parts.js";import{ENTRANCE_KEYS as M}from"../../../animation/entrance.js";import{CARD_HOVER_KEYS as u}from"../../../../../format/lib/animation/hover.js";import{COUNT_KEY_PROP as w}from"../../../../../format/lib/content/block-sources.js";import{normalizeSiteGutter as y}from"../../../../../format/lib/content/page-width.js";import{resolveSectionPadding as F}from"../../../content/section-padding.js";import{ButtonBlockMeta as K}from"../../../../../format/lib/document/blocks/general/ButtonBlock/meta.js";import{SECTION_PAD_INNER_DEFAULTS as X}from"../../passes/section-padding.js";import{finiteNumber as p}from"../../../../../format/lib/finite-number.js";import{convertTheme as x,hasWords as G}from"../../../sections/section-to-box.js";import{THEME_SECTION_BG as Y}from"../../../../../format/lib/content/section-background.js";import{fillSlotOfInk as N}from"../../../../../format/lib/document/part-inks.js";import{parseHexColor as V}from"efficient-shell/format";import{convertLength as j,isLengthUnit as $}from"efficient-easel/screen/lib/content/length-units";import{bandPresetIndex as J,surfaceTwoTone as z}from"../../../../../format/lib/theme.js";import{VIEW_HIDE_KEYS as q}from"../../../../../format/lib/content/view-hide-class.js";const _=t=>$(t)?t:"px",d=(t,o,e,n)=>o===e?t:j(t,o,e,n,{min:0,max:200,step:4});import{BOX as zt,DIM as qt,INNER_BOX as Qt,TEXT as Zt}from"../../../../../format/lib/document/seed-parts.js";const Ot={textFit:"line",textFitPhone:"wrap"},Q={...I,[w]:""},{label:St,href:Ut,...Z}=K.defaultProps,It=Z,Nt={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},Ct={...L,sectionAccent:0},At={sectionAccent:-1},kt=["gridSpan","sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent","stickTop","stickTopDistance","stickTopTablet","stickTopDistanceTablet","stickTopPhone","stickTopDistancePhone","anchor","sectionAnimation",...q,...Object.values(M).flatMap(t=>[t,W(t)]),"widthFit","widthFitTablet","widthFitPhone","width","widthTablet","widthPhone","minWidth","minWidthTablet","minWidthPhone","maxWidth","maxWidthTablet","maxWidthPhone",...Object.values(D)],c="a section width key, ignored since efficient-web-builder 45 (an old key; a section's own width has new keys, lib/content/section-width), so dropping it changes nothing",Ht={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:c,fullWidth:c,pageWidth:c,backgroundWidth:c,contentWidth:c,contentMax:c},Rt=Object.fromEntries(["sectionPaddingLeft","sectionPaddingRight","sectionPaddingLeftTablet","sectionPaddingRightTablet","sectionPaddingLeftPhone","sectionPaddingRightPhone"].map(t=>[t,"needs Box side padding outside its gutter: the old section added it outside its frame, a Box's side padding replaces the gutter. 0 live nodes store it (JJ's read-only export, 2026-10-24)"]));function tt(t,o){const e=p(t.sectionPaddingTop)??0,n=p(t.sectionPaddingBottom)??0,i=p(t.sectionPaddingTopTablet),s=p(t.sectionPaddingBottomTablet),l=_(t.sectionPaddingUnit),g=_(t.sectionPaddingUnitTablet),T=_(t.sectionPaddingUnitPhone),E=(h,a,b,m)=>{const r=p(h);if(r!==void 0)return r+d(m,"px",T,"mobile");const S=a===void 0?{n:b,unit:l}:{n:a,unit:g};return d(S.n,S.unit,T,"mobile")+d(m,"px",T,"mobile")},O=(h,a,b,m,r)=>a!==void 0?{[h]:a+d(r??m,"px",g,"tablet")}:r===void 0?{}:{[h]:d(b,l,g,"tablet")+d(r,"px",g,"tablet")};return{sectionPaddingTop:e+d(o.top,"px",l,"desktop"),sectionPaddingBottom:n+d(o.bottom,"px",l,"desktop"),...O("sectionPaddingTopTablet",i,e,o.top,o.topTablet),...O("sectionPaddingBottomTablet",s,n,o.bottom,o.bottomTablet),sectionPaddingTopPhone:E(t.sectionPaddingTopPhone,i,e,o.topPhone),sectionPaddingBottomPhone:E(t.sectionPaddingBottomPhone,s,n,o.bottomPhone)}}const Dt=t=>[...["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopTablet","sectionPaddingBottomTablet","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(e,n)=>tt(n,typeof t=="function"?t(n):t)[o]]),["sectionPaddingUnit","sectionPaddingUnit"],["sectionPaddingUnitTablet","sectionPaddingUnitTablet"],["sectionPaddingUnitPhone","sectionPaddingUnitPhone"]];function P(t,o){const e=F(t,X[o]);return{sectionPaddingTop:e.top,sectionPaddingBottom:e.bottom}}const Wt=t=>[["padTop","sectionPaddingTop",(o,e)=>P(e,t).sectionPaddingTop],["padBottom","sectionPaddingBottom",(o,e)=>P(e,t).sectionPaddingBottom],["sectionPaddingTop","sectionPaddingTop",(o,e)=>P(e,t).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,e)=>P(e,t).sectionPaddingBottom]],ot={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},Lt=t=>o=>G(o.props[t])?[ot]:[],vt=(t,o)=>({kind:"text",key:t,role:"eyebrow",props:I,...o?{style:o}:{}}),C=t=>t.background!=="transparent",et=(t,o)=>{const[e,n]=[t,o].map(i=>typeof i=="string"?i.trim():"");return e?n?`[${e} ]{color=text}${n}`:`[${e}]{color=text}`:n},A={align:"right",alignPhone:"left"},nt=(t,o,e)=>{const n=i=>et(i[t],i[o]);return{kind:"block",type:"Text",when:(i,s)=>s!==void 0&&n(s)!=="",box:[[t,"text",(i,s)=>n(s)],[o,"text",(i,s)=>n(s)]],props:e}},Mt=(t,o,e,n={})=>nt(t,o,{...Q,...A,...n,_partStyles:{text:{...U,color:"labels",...e,case:U.case,...A}}}),B=(t,o)=>typeof t=="number"&&Number.isInteger(t)&&t>=0?t:x(o)?.selected??0,k="var(--site-surface-2)",H=(t,o)=>x(o)?.themes[B(t.sectionAccent??0,o)],it=(t,o)=>(e,n)=>{if(!o?.(e,n))return{fillColor:t};const i=H(e,n)?.[t];return i?{fillColor:i}:{}},wt=(t,o)=>f(t,o)>=0,R=t=>t.startsWith("#")&&V(t)!==null,yt=(t,o,e)=>{const n=t?.trim();if(n&&R(n))return{fillColor:n};const i=N(n);if(i)return{fillColor:i};const s=n===k?H(o,e):void 0;return s?{fillColor:z(s)}:{}},Ft=t=>{const o=t?.trim();return!o||o==="transparent"||o===Y||N(o)||o===k||R(o)?void 0:"it paints a colour that no Box Fill can hold"},f=(t,o)=>{const e=x(o)?.themes;return e&&C(t)?J(e,B(t.sectionAccent,o)):-1},Kt=(t,o,e)=>{const n=f(o,e);return n>=0?n:t},Xt=(t,o)=>{const e=f(t,o);return e>=0?{sectionAccent:e}:{}},Gt=(t,o)=>C(t.props)&&f(t.props,o)<0?[{kind:"band-preset",page:B(t.props.sectionAccent,o)}]:[],Yt=t=>y(t.site?.siteGutter),st=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(t=>[`sectionPadding${t}`,0])),Vt=t=>({top:0,right:0,bottom:0,left:0,...t}),jt=(t,o,e,n=[])=>({kind:"group",name:t,keepEmpty:!0,props:(i,s)=>({...v,...st,...it("surface")(i,s),...typeof e=="function"?e(i,s):e}),box:[[o,"bgImage"],u.kind,u.duration,u.delay],parts:n});export{Ot as AUTO_COLUMN,zt as BOX,It as BUTTON,qt as DIM,Ht as DROP_COMMON,Rt as DROP_SIDE_PADDING,At as FOLLOW_THE_BOX,ot as HEADING_CASE_UPPER,Qt as INNER_BOX,st as NO_PAD,Q as NUMBER_TEXT,A as RIGHT_WORDS,kt as SAME_KEYS,Ct as SECTION_BOX,Nt as SH_LINK,Zt as TEXT,Kt as bandAccent,f as bandIndex,B as bandPage,Xt as bandProps,Gt as bandWrites,it as fillFrom,Ft as fillNoBoxHolds,Lt as headingCaseOf,P as innerPad,Wt as innerPadKeys,Mt as leadLine,nt as leadText,Vt as lineSides,et as numberAndUnit,wt as onBandPreset,yt as ownFill,jt as pictureCell,H as sectionPage,Yt as siteGutterOf,vt as smallText,tt as wrapperPad,Dt as wrapperPadKeys};
@@ -1,2 +1,5 @@
1
1
  import { type SectionToBoxRow } from "../../../sections/section-to-box.js";
2
+ type Props = Record<string, unknown>;
3
+ export declare function cardsPressStarter(): Props;
2
4
  export declare const CARDS_SECTION_TO_BOX: Readonly<Record<string, SectionToBoxRow>>;
5
+ export {};
@@ -1 +1 @@
1
- import{phoneKey as k,readHidable as _}from"efficient-easel/draw";import{cardColumns as U}from"../../../../components/Cards.js";import{resolveSectionBackground as z,THEME_SECTION_BG as J}from"../../../../../format/lib/content/section-background.js";import{CardsMeta as Q}from"../../../../../format/lib/document/blocks/general/Cards/meta.js";import{KeyFeaturesMeta as Z}from"../../../../../format/lib/document/blocks/general/KeyFeatures/meta.js";import{finiteNumber as C}from"../../../../../format/lib/finite-number.js";import{nonEmptyString as $}from"../../../../../format/lib/non-empty-string.js";import{parseSectionHeadPlacement as ee}from"../../../../../format/lib/sections/section-head-placement.js";import{hasWords as oe}from"../../../sections/section-to-box.js";import{BOX_TYPE as s,CONTAINER_BLOCKS_SLOT as i}from"../../../../../format/lib/document/container-blocks.js";import{labelTextSeed as te}from"../../../../../format/lib/document/text-seeds.js";import{CARDS_BODY_LOOK as ne,CARDS_CARD as re,CARDS_TITLE_LOOK as ae,rowFieldTextSeed as r}from"../../../../../format/lib/document/blocks/general/Cards/card-seed.js";import{BOX_HIDE_WHEN_ROW_EMPTY as se,CARD_LIST_TYPE as ie,CARD_TEMPLATE_SLOT as de,cardListProps as le}from"../../../../../format/lib/content/card-template.js";import{bandAccent as pe,bandProps as ce,bandWrites as he,BUTTON as me,DIM as h,DROP_COMMON as m,DROP_SIDE_PADDING as u,INNER_BOX as t,SAME_KEYS as g,SECTION_BOX as b,fillFrom as w,fillNoBoxHolds as ue,ownFill as ge,SH_LINK as be,TEXT as n,smallText as we,wrapperPad as y,wrapperPadKeys as f}from"./section-to-box-row-parts.js";import{headTree as T,token as p}from"./section-head-looks.js";import{boxPadding as ye,labelStyle as fe}from"../../../../../format/lib/document/seed-parts.js";import{SECTION_BG_BUILT_IN as Pe}from"../../../../../format/lib/document/blocks/general/section-bg-built-in.js";const d=(e,o,l,c)=>({sectionBorder:{top:e,right:o,bottom:l,left:c}}),E=e=>o=>U(C(o.columns)??C(e.columns)),R=e=>({kind:"group",name:"Grid",props:{...t,gap:0,...d(1,0,0,1)},parts:[e]}),L={...t,direction:"row",gap:0,share:"equal"},D="its head sits in a Box of its own above it (own-box): the row draws the head inline",N=e=>ee(e.headPlacement)==="own-box",B="inline is the head the row draws; an own-box node is skipped (`skip`)",Se=e=>({kind:"group",name:"Heading",props:e,parts:[we("eyebrow"),{kind:"text",key:"title",role:"heading",props:n,style:{textStyle:"heading-3",case:"upper"},was:{size:44}}]}),I={top:72,bottom:72,topPhone:72,bottomPhone:72},_e={...re,...d(0,1,1,0)},Oe={name:"Cards",boxProps:(e,o)=>({...b,direction:"column",gap:36,gapPhone:28,...w("surface")(e,o),...y(e,I)}),box:[...g,...f(I)],skip:e=>N(e)?D:typeof e.dataSource=="string"&&e.dataSource?"its cards come from a source: they are drawn from the card template on Cards":e.template!==void 0?"its cards are drawn from its own card template (an emptied one draws none): the shape the other rows land on":e.cardStyle==="label-only"?"Label only is Key Features' look: no live node holds it, so it has no row of its own yet":void 0,parts:[T("Cards"),R({kind:"list",key:"items",name:"Card",perRow:E(Q.defaultProps),rowName:"Row",rowProps:L,props:(e,o)=>({..._e,...w("background")(e,o)}),parts:[{kind:"text",key:"title",props:n,style:ae},{kind:"text",key:"body",props:h,style:ne}]})],drop:{...m,...u,columns:"the rows of N: one Row Box per `columns` cards, which the Box draws as N equal blocks",cardStyle:"the standard card is what the row draws; a Label only node is skipped (0 live nodes)",dataSource:"an empty source is typed cards, what the row draws; a sourced node is skipped (0 live nodes)",dataSourceOptions:"read only with a source; a sourced node is skipped (0 live nodes)",template:"an empty card template is typed cards, what the row draws; a node with a template is skipped",highlightedCard:"read only with a card template; a node with a template is skipped",highlightBadge:"read only with a card template; a node with a template is skipped",headPlacement:B,eyebrowLook:"needs the eyebrow's Filled look on a Text block: Plain is the eyebrow start look the row draws; 2 of 62 live nodes store it (the stored-node export, 2026-10-24)"}},A={top:76,bottom:76,topPhone:76,bottomPhone:76},xe={...t,direction:"row",align:"center",gap:16,sectionPaddingTop:32,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,...d(0,1,1,0)},F={textStyle:"body-1",color:"text"},H=(e,o)=>typeof o?.href=="string"&&o.href.trim()!=="",ke={name:"Key Features",boxProps:e=>({...b,direction:"column",gap:44,...d(1,0,1,0),...y(e,A)}),box:[...g,...f(A)],parts:[Se({...t,direction:"row",align:"end",gap:20,wrap:!0,share:"content"}),R({kind:"list",key:"items",name:"Feature",perRow:E(Z.defaultProps),rowName:"Row",rowProps:L,props:xe,parts:[{kind:"button",key:"label",href:"href",when:H,variant:"ghost",props:{...me,...be,icon:"none"},style:F},{kind:"text",key:"label",when:(e,o)=>!H(e,o),props:n,style:F,was:{size:17}}]})],drop:{...m,...u,columns:"the rows of N: one Row Box per `columns` cells, which the Box draws as N equal blocks",eyebrowLook:"needs the eyebrow's Filled look on a Text block: Filled is Key Features' own default (lib/sections/section-eyebrow-look), so 20 of 21 published nodes draw it with nothing stored; the row draws the Plain start look (the stored-node export, 2026-10-24)"}},v={top:120,bottom:120,topPhone:80,bottomPhone:80,topTablet:80,bottomTablet:80},P=e=>{const o=z(typeof e.background=="string"?e.background:void 0,Pe.Series);return o&&o!=="transparent"?o:void 0},O=e=>P(e)===J,Ce={...t,justify:"between",gap:16,gapPhone:16,sectionHeightMode:"fixed",sectionHeightValue:340,sectionHeightUnit:"px",sectionPaddingTop:36,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,sectionPaddingTopPhone:36,sectionPaddingRightPhone:28,sectionPaddingBottomPhone:32,sectionPaddingLeftPhone:28},K={...t,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[k("share")]:"content"},Te=e=>{const o=P(e)?1:2;return{...t,direction:"row",columns:4,columnsTablet:2,gap:o,gapPhone:o}},x={...fe(12),letterSpacing:.22,lineHeight:1.5},W=e=>oe(e.viewLabel)&&!_(e.viewLabel).hidden,a=e=>_(e).text?.trim?.()??"",M=e=>Object.fromEntries(Object.entries(e).filter(([,o])=>$(o)!==void 0)),X=e=>e.map(([o,l,c])=>({key:o,label:l,...c?{multiline:!0}:{}})),Ee=X([["num","Number"],["since","Corner note"],["title","Card title"],["body","Card body",!0],["count","Count"],["countLabel","Count word"]]),Re=X([["label","Label"],["value","Value"],["body","Card body",!0]]),G=(e,o,l,c,V)=>({kind:"group",name:e,props:o,parts:[{kind:"core",as:ie,headless:!0,keep:[],derive:{reads:["cards"],props:S=>le(c(S),l)},slots:(S,q)=>({[de]:[V(S,q)]})}]}),Y=e=>Array.isArray(e.cards)?e.cards:[],Le={name:"Recurring Columns",boxProps:(e,o)=>({...b,direction:"column",gap:60,gapPhone:60,...d(0,0,1,0),...O(e)?ce(e,o):{},...ge(P(e),e,o),...y(e,v)}),box:[...g.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,l)=>O(o)?pe(e,o,l):e],...f(v)],skip:e=>ue(P(e))??(N(e)?D:void 0),site:(e,o)=>O(e.props)?he(e,o):[],parts:[T("Series"),G("Cards",Te,Ee,e=>Y(e).map(o=>M({num:a(o.num),since:a(o.since),title:a(o.title),body:a(o.desc),count:a(o.entries),countLabel:a(o.entriesLabel)})),(e,o)=>({type:s,props:{...Ce,...w("background")(e,o),name:"Card"},slots:{[i]:[{type:s,props:{...t,name:"Words",gap:16,gapPhone:16},slots:{[i]:[{type:s,props:{...K,name:"Top"},slots:{[i]:[r("num",n,p("label",13),!0),r("since",n,p("label",13),!0)]}},r("title",{...n,tag:"h3"},{textStyle:"heading-3",...p("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}),r("body",h,{textStyle:"body-5",fontRole:"heading",...p("body",14),lineHeight:1.6})]}},{type:s,props:{...K,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...d(1,0,0,0),...W(e)?{}:{[se]:["count","countLabel"]}},slots:{[i]:[{type:s,props:{...t,name:"Count",direction:"row",align:"center",gap:12,gapPhone:12,share:"content",[k("share")]:"content"},slots:{[i]:[r("count",n,x),r("countLabel",h,x)]}},...W(e)?[{type:s,props:{...t,name:"View",maxWidthPhone:266},slots:{[i]:[{type:"Text",props:{...n,text:_(e.viewLabel).text,_partStyles:{text:{...te()._partStyles.text,...x}}}}]}}]:[]]}}]}}))],reads:{viewLabel:"a Text typed once in the card template: the far end of every card's footer",background:"the Box's theme (the band preset) or its Fill"},drop:{...m,...u,headPlacement:B}},j={top:60,bottom:60,topPhone:40,bottomPhone:40},De={...t,direction:"row",columns:3,gap:40,gapPhone:16},Ne={...t,gap:8,gapPhone:8,...ye(24),...d(1,1,1,1)},Be={name:"Document Detail Cards",boxProps:e=>({...b,direction:"column",gap:40,gapPhone:16,...d(0,0,1,0),...y(e,j)}),box:[...g,...f(j)],parts:[G("Cards",De,Re,e=>Y(e).map(o=>M({label:a(o.label),value:a(o.value),body:a(o.desc)})),(e,o)=>({type:s,props:{...Ne,...w("surface")(e,o),name:"Card"},slots:{[i]:[r("label",n,{...p("label",12),lineHeight:1.5},!0),{type:s,props:{...t,name:"Words",gap:14,gapPhone:14},slots:{[i]:[r("value",n,{textStyle:"heading-3",...p("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}),r("body",h,{textStyle:"body-5",fontRole:"accent",...p("body",14),italic:!0,lineHeight:1.5})]}}]}}))],drop:{...m,...u}},Qe={Cards:Oe,KeyFeatures:ke,Series:Le,DocMetaCards:Be};export{Qe as CARDS_SECTION_TO_BOX};
1
+ import{phoneKey as L,readHidable as O}from"efficient-easel/draw";import{isNodeList as z,newId as J}from"efficient-easel/data";import{say as m}from"../../../../../format/lib/editor-words.js";import{cardColumns as Q}from"../../../../../format/lib/content/card-columns.js";import{resolveSectionBackground as Z,THEME_SECTION_BG as $}from"../../../../../format/lib/content/section-background.js";import{CardsMeta as ee}from"../../../../../format/lib/document/blocks/general/Cards/meta.js";import{KeyFeaturesMeta as te}from"../../../../../format/lib/document/blocks/general/KeyFeatures/meta.js";import{finiteNumber as R}from"../../../../../format/lib/finite-number.js";import{nonEmptyString as oe}from"../../../../../format/lib/non-empty-string.js";import{parseSectionHeadPlacement as ne}from"../../../../../format/lib/sections/section-head-placement.js";import{hasWords as re}from"../../../sections/section-to-box.js";import{BOX_TYPE as i,CONTAINER_BLOCKS_SLOT as s}from"../../../../../format/lib/document/container-blocks.js";import{labelTextSeed as se}from"../../../../../format/lib/document/text-seeds.js";import{cardsCardSeed as ae,rowFieldTextSeed as d}from"../../../../../format/lib/document/blocks/general/Cards/card-seed.js";import{CARD_PLACE_PROP as ie}from"../../../../../format/lib/content/card-place.js";import{CARD_BADGE_FIELD as de}from"../../../../../format/lib/content/card-state.js";import{BOX_HIDE_WHEN_ROW_EMPTY as le,CARD_LIST_TYPE as ce,CARD_TEMPLATE_SLOT as pe,cardKeyOf as he,cardListProps as me,cardRow as ge}from"../../../../../format/lib/content/card-template.js";import{bandAccent as ue,bandProps as be,onBandPreset as ye,bandWrites as we,BUTTON as fe,DIM as x,DROP_COMMON as g,DROP_SIDE_PADDING as u,INNER_BOX as r,SAME_KEYS as b,SECTION_BOX as y,fillFrom as w,fillNoBoxHolds as Pe,ownFill as Se,SH_LINK as Ce,TEXT as l,smallText as _e,wrapperPad as f,wrapperPadKeys as P}from"./section-to-box-row-parts.js";import{headTree as A,token as p}from"./section-head-looks.js";import{boxPadding as Oe,labelStyle as xe}from"../../../../../format/lib/document/seed-parts.js";import{SECTION_BG_BUILT_IN as Ee}from"../../../../../format/lib/document/blocks/general/section-bg-built-in.js";const c=(e,t,o,n)=>({sectionBorder:{top:e,right:t,bottom:o,left:n}}),D=e=>t=>Q(R(t.columns)??R(e.columns)),ke=e=>({kind:"group",name:"Grid",props:{...r,gap:0,...c(1,0,0,1)},parts:[e]}),Te={...r,direction:"row",gap:0,share:"equal"},Le="its head sits in a Box of its own above it (own-box): the row draws the head inline",B=e=>ne(e.headPlacement)==="own-box",Re="inline is the head the row draws; an own-box node is skipped (`skip`)",Ae=e=>({kind:"group",name:"Heading",props:e,parts:[_e("eyebrow"),{kind:"text",key:"title",role:"heading",props:l,style:{textStyle:"heading-3",case:"upper"},was:{size:44}}]}),I={top:76,bottom:76,topPhone:76,bottomPhone:76},De={...r,direction:"row",align:"center",gap:16,sectionPaddingTop:32,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,...c(0,1,1,0)},N={textStyle:"body-1",color:"text"},F=(e,t)=>typeof t?.href=="string"&&t.href.trim()!=="",Be={name:"Key Features",boxProps:e=>({...y,direction:"column",gap:44,...c(1,0,1,0),...f(e,I)}),box:[...b,...P(I)],parts:[Ae({...r,direction:"row",align:"end",gap:20,wrap:!0,share:"content"}),ke({kind:"list",key:"items",name:"Feature",perRow:D(te.defaultProps),rowName:"Row",rowProps:Te,props:De,parts:[{kind:"button",key:"label",href:"href",when:F,variant:"ghost",props:{...fe,...Ce,icon:"none"},style:N},{kind:"text",key:"label",when:(e,t)=>!F(e,t),props:l,style:N,was:{size:17}}]})],drop:{...g,...u,columns:"the rows of N: one Row Box per `columns` cells, which the Box draws as N equal blocks",eyebrowLook:"needs the eyebrow's Filled look on a Text block: Filled is Key Features' own default (lib/sections/section-eyebrow-look), so 20 of 21 published nodes draw it with nothing stored; the row draws the Plain start look (the stored-node export, 2026-10-24)"}},H={top:120,bottom:120,topPhone:80,bottomPhone:80,topTablet:80,bottomTablet:80},S=e=>{const t=Z(typeof e.background=="string"?e.background:void 0,Ee.Series);return t&&t!=="transparent"?t:void 0},C=e=>S(e)===$,Ie={...r,justify:"between",gap:16,gapPhone:16,sectionHeightMode:"fixed",sectionHeightValue:340,sectionHeightUnit:"px",sectionPaddingTop:36,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,sectionPaddingTopPhone:36,sectionPaddingRightPhone:28,sectionPaddingBottomPhone:32,sectionPaddingLeftPhone:28},K={...r,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[L("share")]:"content"},Ne=e=>{const t=S(e)?1:2;return{...r,direction:"row",columns:4,columnsTablet:2,gap:t,gapPhone:t}},E={...xe(12),letterSpacing:.22,lineHeight:1.5},W=e=>re(e.viewLabel)&&!O(e.viewLabel).hidden,a=e=>O(e).text?.trim?.()??"",v=e=>Object.fromEntries(Object.entries(e).filter(([,t])=>oe(t)!==void 0)),k=e=>e.map(([t,o,n])=>({key:t,label:o,...n?{multiline:!0}:{}})),Fe=k([["num","Number"],["since","Corner note"],["title","Card title"],["body","Card body",!0],["count","Count"],["countLabel","Count word"]]),He=k([["label","Label"],["value","Value"],["body","Card body",!0]]),T=(e,t,o,n,h,{reads:Y=["cards"],keep:U=[]}={})=>({kind:"group",name:e,props:t,parts:[{kind:"core",as:ce,headless:!0,keep:U,derive:{reads:Y,props:_=>me(n(_),o)},slots:(_,q)=>({[pe]:[h(_,q)]})}]}),M=e=>Array.isArray(e.cards)?e.cards:[],G={top:72,bottom:72,topPhone:72,bottomPhone:72},X=(e,t)=>({...c(0,1,1,0),...w("background")(e,t)}),Ke=e=>{const t=D(ee.defaultProps)(e);return{...r,direction:"row",columns:t,columnsTablet:t,gap:0,gapPhone:0,...c(1,0,0,1),shadow:!0}},We=k([["title","Card title"],["body","Card body",!0]]),ve=e=>(Array.isArray(e.items)?e.items:[]).map((t,o)=>({key:typeof t?.key=="string"&&t.key?t.key:he(ge(t),o),title:a(t?.title),body:a(t?.body)})),j=e=>{const t={},o={};for(const[n,h]of Object.entries(e.props??{}))n!=="id"&&(z(h)?o[n]=h.map(j):t[n]=h);return{type:String(e.type),props:t,...Object.keys(o).length?{slots:o}:{}}},Me=e=>({...e,slots:{...e.slots,[s]:[...e.slots?.[s]??[],d(de,{...l,tag:"p",[ie]:"top-line"},{},!0)]}}),Ge=(e,t)=>{const o=Array.isArray(e.template)?e.template.map(j):[Me(ae())],[n]=o;return o.length===1&&n.type===i?{...n,props:{...X(e,t),...n.props}}:{type:i,props:{...r,...X(e,t),name:"Card"},slots:{[s]:o}}},Xe=e=>Array.isArray(e.template)&&e.template.length===0,je=["dataSource","dataSourceOptions","highlightedCard","highlightBadge"];function yt(){const e=o=>({key:J("card"),title:m(o),body:m("A short line about this card.")}),t=[e("Card title one"),e("Card title two"),e("Card title three")];return{eyebrow:m("Label"),title:m("Section *heading.*"),items:t}}const Ve={name:"Cards",boxProps:(e,t)=>({...y,direction:"column",gap:36,gapPhone:28,...w("surface")(e,t),...f(e,G)}),box:[...b,...P(G)],skip:e=>e.cardStyle==="label-only"?"Label only is Key Features' look: no live node holds it, so it has no row of its own yet":void 0,parts:[{...A("Cards"),when:e=>!B(e)},{...T("Cards",Ke,We,ve,Ge,{reads:["items"],keep:je}),when:e=>!Xe(e)}],drop:{...g,...u,columns:'Box "Cards": its Columns and tablet Columns',cardStyle:"the standard card is what the row draws; a Label only node is skipped (0 live nodes)",template:"the Card list's template (the card Box takes the old cell's ground and lines)",headPlacement:"an own-box node lands without its head; inline is the head the row draws",eyebrowLook:"needs the eyebrow's Filled look on a Text block: Plain is the eyebrow start look the row draws; 2 of 62 live nodes store it (the stored-node export, 2026-10-24)"}},Ye={name:"Recurring Columns",boxProps:(e,t)=>({...y,direction:"column",gap:60,gapPhone:60,...c(0,0,1,0),...C(e)?be(e,t):{},...Se(S(e),e,t),...f(e,H)}),box:[...b.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,t,o)=>C(t)?ue(e,t,o):e],...P(H)],skip:e=>Pe(S(e))??(B(e)?Le:void 0),site:(e,t)=>C(e.props)?we(e,t):[],parts:[A("Series"),T("Cards",Ne,Fe,e=>M(e).map(t=>v({num:a(t.num),since:a(t.since),title:a(t.title),body:a(t.desc),count:a(t.entries),countLabel:a(t.entriesLabel)})),(e,t)=>({type:i,props:{...Ie,...w("background",(o,n)=>C(o)&&ye(o,n))(e,t),name:"Card"},slots:{[s]:[{type:i,props:{...r,name:"Words",gap:16,gapPhone:16},slots:{[s]:[{type:i,props:{...K,name:"Top"},slots:{[s]:[d("num",l,p("label",13),!0),d("since",l,p("label",13),!0)]}},d("title",{...l,tag:"h3"},{textStyle:"heading-3",...p("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}),d("body",x,{textStyle:"body-5",fontRole:"heading",...p("body",14),lineHeight:1.6})]}},{type:i,props:{...K,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...c(1,0,0,0),...W(e)?{}:{[le]:["count","countLabel"]}},slots:{[s]:[{type:i,props:{...r,name:"Count",direction:"row",align:"center",gap:12,gapPhone:12,share:"content",[L("share")]:"content"},slots:{[s]:[d("count",l,E),d("countLabel",x,E)]}},...W(e)?[{type:i,props:{...r,name:"View",maxWidthPhone:266},slots:{[s]:[{type:"Text",props:{...l,text:O(e.viewLabel).text,_partStyles:{text:{...se()._partStyles.text,...E}}}}]}}]:[]]}}]}}))],reads:{viewLabel:"a Text typed once in the card template: the far end of every card's footer",background:"the Box's theme (the band preset) or its Fill"},drop:{...g,...u,headPlacement:Re}},V={top:60,bottom:60,topPhone:40,bottomPhone:40},Ue={...r,direction:"row",columns:3,gap:40,gapPhone:16},qe={...r,gap:8,gapPhone:8,...Oe(24),...c(1,1,1,1)},ze={name:"Document Detail Cards",boxProps:e=>({...y,direction:"column",gap:40,gapPhone:16,...c(0,0,1,0),...f(e,V)}),box:[...b,...P(V)],parts:[T("Cards",Ue,He,e=>M(e).map(t=>v({label:a(t.label),value:a(t.value),body:a(t.desc)})),(e,t)=>({type:i,props:{...qe,...w("surface")(e,t),name:"Card"},slots:{[s]:[d("label",l,{...p("label",12),lineHeight:1.5},!0),{type:i,props:{...r,name:"Words",gap:14,gapPhone:14},slots:{[s]:[d("value",l,{textStyle:"heading-3",...p("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}),d("body",x,{textStyle:"body-5",fontRole:"accent",...p("body",14),italic:!0,lineHeight:1.5})]}}]}}))],drop:{...g,...u}},wt={Cards:Ve,KeyFeatures:Be,Series:Ye,DocMetaCards:ze};export{wt as CARDS_SECTION_TO_BOX,yt as cardsPressStarter};
@@ -0,0 +1,2 @@
1
+ import { type SectionToBoxRow } from "../../../sections/section-to-box.js";
2
+ export declare const CHECKOUT_SECTION_TO_BOX: Readonly<Record<string, SectionToBoxRow>>;
@@ -0,0 +1 @@
1
+ import{CARD_TEMPLATE_SLOT as r}from"../../../../../format/lib/content/card-template.js";import{DROP_COMMON as o,SAME_KEYS as e,SECTION_BOX as m}from"./section-to-box-row-parts.js";import{orderSummaryCardSeed as O}from"./OrderSummary/card-seed.js";const t=()=>({name:"Order Table",boxProps:()=>({...m,direction:"column"}),box:[...e],parts:[{kind:"core",keep:"rest",headless:!0,slots:{[r]:[O()]}}],drop:{...o}}),a={OrderSummary:t()};export{a as CHECKOUT_SECTION_TO_BOX};
@@ -1,2 +1,2 @@
1
- import{parseBlocks as k,sectionAnchorIds as y,shownSections as _}from"../../../../components/DocBody.js";import{SECTION_WIDTH_KEYS as P}from"../../../../../format/lib/content/section-width.js";import{STACK_BELOW_PROP as b}from"../../../content/box-stack-line.js";import{DIM as p,DROP_COMMON as x,INNER_BOX as o,SECTION_BOX as B,TEXT as r,smallText as a,wrapperPad as O,wrapperPadKeys as T}from"./section-to-box-row-parts.js";import{fluidToken as f,token as S}from"./section-head-looks.js";import{labelStyle as u}from"../../../../../format/lib/document/seed-parts.js";const c={top:80,bottom:80,topPhone:60,bottomPhone:60},d=18,l=18,m=8,w=10,i=t=>typeof t=="string"&&t.trim()!=="",h=t=>_(t.sections),D=t=>k(typeof t.body=="string"?t.body:"").map(e=>e.type==="ul"?{kind:"ul",text:e.items.map(n=>`- ${n}`).join(`
2
- `)}:{kind:"p",text:e.text}),s={...u(12),letterSpacing:.3,color:"accent",lineHeight:1.5},g={textStyle:"body-1",fontRole:"accent",...S("body",17)},C=[a("label",s),{...a("title",s),when:(t,e)=>!i(e?.label)},{kind:"block",type:"Text",when:(t,e)=>!i(e?.label)&&!i(e?.title),props:{...r,text:"Section",_partStyles:{text:s}}},{kind:"group",name:"Heading",props:{...o,sectionPaddingBottom:m,sectionPaddingBottomPhone:m},parts:[{kind:"group",name:"Heading line",props:{...o,sectionBorder:{bottom:1},sectionPaddingBottom:l,sectionPaddingBottomPhone:l},parts:[{kind:"text",key:"heading",role:"heading",props:r,style:{textStyle:"heading-2",...f("headingMedium",28,3.5,44),case:"upper",weight:500,lineHeight:1.04,letterSpacing:-.025}}]}]},{kind:"list",key:"body",name:"Body",flat:!0,of:D,parts:[{kind:"text",key:"text",props:p,style:{...g,lineHeight:1.7},when:(t,e)=>e?.kind==="p"},{kind:"text",key:"text",props:p,style:{...g,lineHeight:1.65,paragraphSpacing:w},when:(t,e)=>e?.kind==="ul"}]}],E=900,I={name:"Document Text",boxProps:t=>({...B,direction:"row",gap:80,gapPhone:40,[b]:E,sectionBorder:{bottom:1},...O(t,c)}),box:["anchor","sectionAccent","_hidden",...Object.values(P),...T(c)],parts:[{kind:"block",type:"Contents",props:t=>({title:t.tocTitle??"",sticky:!0,widthFit:"fixed",width:240,widthFitPhone:"fill"})},{kind:"group",name:"Sections",props:{...o,gap:64,gapPhone:64,widthFit:"fill"},parts:[{kind:"list",key:"sections",name:"Section",of:t=>h(t),props:{...o,gap:d,gapPhone:d},item:(t,e,n)=>({props:{anchor:y(h(n))[e]??`section-${e+1}`}}),parts:C}]}],reads:{tocTitle:"the Contents block's Heading"},drop:{...x,stickyTop:"the Contents block draws DocBody's default (120px); 0 live nodes store it"}},L={DocBody:I};export{L as DOCBODY_SECTION_TO_BOX};
1
+ import{parseBlocks as k,sectionAnchorIds as y,shownSections as _}from"../../../../components/DocBody.js";import{SECTION_WIDTH_KEYS as P}from"../../../../../format/lib/content/section-width.js";import{STACK_BELOW_PROP as b}from"../../../content/box-stack-line.js";import{DIM as p,DROP_COMMON as x,INNER_BOX as e,SECTION_BOX as B,TEXT as r,smallText as a,wrapperPad as O,wrapperPadKeys as f}from"./section-to-box-row-parts.js";import{fluidToken as S,token as T}from"./section-head-looks.js";import{labelStyle as E}from"../../../../../format/lib/document/seed-parts.js";import{VIEW_HIDE_KEYS as D}from"../../../../../format/lib/content/view-hide-class.js";const c={top:80,bottom:80,topPhone:60,bottomPhone:60},d=18,l=18,m=8,I=10,i=t=>typeof t=="string"&&t.trim()!=="",h=t=>_(t.sections),u=t=>k(typeof t.body=="string"?t.body:"").map(o=>o.type==="ul"?{kind:"ul",text:o.items.map(n=>`- ${n}`).join(`
2
+ `)}:{kind:"p",text:o.text}),s={...E(12),letterSpacing:.3,color:"accent",lineHeight:1.5},g={textStyle:"body-1",fontRole:"accent",...T("body",17)},w=[a("label",s),{...a("title",s),when:(t,o)=>!i(o?.label)},{kind:"block",type:"Text",when:(t,o)=>!i(o?.label)&&!i(o?.title),props:{...r,text:"Section",_partStyles:{text:s}}},{kind:"group",name:"Heading",props:{...e,sectionPaddingBottom:m,sectionPaddingBottomPhone:m},parts:[{kind:"group",name:"Heading line",props:{...e,sectionBorder:{bottom:1},sectionPaddingBottom:l,sectionPaddingBottomPhone:l},parts:[{kind:"text",key:"heading",role:"heading",props:r,style:{textStyle:"heading-2",...S("headingMedium",28,3.5,44),case:"upper",weight:500,lineHeight:1.04,letterSpacing:-.025}}]}]},{kind:"list",key:"body",name:"Body",flat:!0,of:u,parts:[{kind:"text",key:"text",props:p,style:{...g,lineHeight:1.7},when:(t,o)=>o?.kind==="p"},{kind:"text",key:"text",props:p,style:{...g,lineHeight:1.65,paragraphSpacing:I},when:(t,o)=>o?.kind==="ul"}]}],C=900,A={name:"Document Text",boxProps:t=>({...B,direction:"row",gap:80,gapPhone:40,[b]:C,sectionBorder:{bottom:1},...O(t,c)}),box:["anchor","sectionAccent",...D,...Object.values(P),...f(c)],parts:[{kind:"block",type:"Contents",props:t=>({title:t.tocTitle??"",sticky:!0,widthFit:"fixed",width:240,widthFitPhone:"fill"})},{kind:"group",name:"Sections",props:{...e,gap:64,gapPhone:64,widthFit:"fill"},parts:[{kind:"list",key:"sections",name:"Section",of:t=>h(t),props:{...e,gap:d,gapPhone:d},item:(t,o,n)=>({props:{anchor:y(h(n))[o]??`section-${o+1}`}}),parts:w}]}],reads:{tocTitle:"the Contents block's Heading"},drop:{...x,stickyTop:"the Contents block draws DocBody's default (120px); 0 live nodes store it"}},Y={DocBody:A};export{Y as DOCBODY_SECTION_TO_BOX};
@@ -1,4 +1,5 @@
1
1
  import type { PartRow, SectionToBoxRow, SlotFill } from "../../../sections/section-to-box.js";
2
+ type Props = Record<string, unknown>;
2
3
  export declare const HEAD_ONLY_TYPES: readonly string[];
3
4
  export declare const HOST_ROW_HEAD_TYPES: readonly string[];
4
5
  export type HeadOnlyRowExtension = {
@@ -6,7 +7,18 @@ export type HeadOnlyRowExtension = {
6
7
  partsAfter?: readonly PartRow[];
7
8
  drop?: Readonly<Record<string, string>>;
8
9
  pressHeading?: boolean;
10
+ coreBox?: {
11
+ name: string;
12
+ props: Props;
13
+ };
14
+ coreProps?: Props;
15
+ roomBelow?: {
16
+ bottom: number;
17
+ bottomPhone: number;
18
+ };
9
19
  };
10
20
  export declare function headOnlyRow(type: string, ext?: HeadOnlyRowExtension): SectionToBoxRow;
21
+ export declare const FAQ_ROWS_BOX: Props;
11
22
  export declare const HEAD_ONLY_CARD_SEEDS: Readonly<Record<string, HeadOnlyRowExtension>>;
12
23
  export declare const HEAD_ONLY_SECTION_TO_BOX: Readonly<Record<string, SectionToBoxRow>>;
24
+ export {};
@@ -1 +1 @@
1
- import{SPLITTABLE_SECTIONS as E}from"../../../../../format/lib/sections/section-head-placement.js";import{SECTION_LABELS as T}from"../../../../../format/lib/document/section-catalog.js";import{SAME_KEYS as O,SECTION_BOX as P,innerPad as S}from"./section-to-box-row-parts.js";import{HEAD_BELOW as _,headLookOf as h,headReads as f,headTree as u}from"./section-head-looks.js";import{finiteNumber as A}from"../../../../../format/lib/finite-number.js";import{CARD_TEMPLATE_SLOT as b}from"../../../../../format/lib/content/card-template.js";import{footprintCardSeed as g}from"../../../../../format/lib/document/blocks/general/Footprint/card-seed.js";const L=["Collections","Events","FAQ","Footprint","GalleryB","LongRead","ProcessSteps","ProductGrid","RelatedProducts"],Y=["FitmentTable","SpecTable"],n=(o,t)=>()=>({top:o,topPhone:t}),c=o=>t=>{const e=S(t,o).sectionPaddingTop;return{top:e,topPhone:e}},R={Collections:n(120,70),Events:n(120,70),FAQ:n(120,70),GalleryB:n(120,70),FitmentTable:n(120,80),SpecTable:n(120,80),LongRead:n(120,80),RelatedProducts:n(0,0),Footprint:c("Footprint"),ProcessSteps:c("ProcessSteps"),ProductGrid:o=>({top:A(o.padTop)??120,topPhone:0})};function H(o,t={}){const e=E[o],d=R[o];if(!e||!d)throw new Error(`section-to-box-rows-head: "${o}" has no head row or no head room`);const s=e.padKey,l=u(o),a=f(o),m=e.headRows.filter(r=>![e.num,e.title,e.description,"linkText","linkHref"].includes(r)),p={...Object.fromEntries(m.filter(r=>!(r in a)).map(r=>[r,"a head setting no Header Box part reads (lib/document/blocks/general/section-head-looks `headReads`)"])),...t.drop};return{name:T[o]??o,boxProps:r=>{const i=d(r);return{...P,direction:"column",gap:_[h(o)],sectionPaddingTop:i.top,sectionPaddingTopPhone:i.topPhone}},box:[...O,...s?[[s,"sectionPaddingTop",(r,i)=>d(i).top]]:[]],parts:[l,{kind:"core",keep:"rest",...s?{props:{[s]:0}}:{},...t.slots?{slots:t.slots}:{}},...t.partsAfter??[]],...Object.keys(a).length?{reads:a}:{},...Object.keys(p).length?{drop:p}:{},...t.pressHeading?{pressKeepsEmpty:[e.title]}:{}}}const k={Footprint:{slots:{[b]:[g()]},pressHeading:!0}},I=Object.fromEntries(L.map(o=>[o,H(o,k[o])]));export{k as HEAD_ONLY_CARD_SEEDS,I as HEAD_ONLY_SECTION_TO_BOX,L as HEAD_ONLY_TYPES,Y as HOST_ROW_HEAD_TYPES,H as headOnlyRow};
1
+ import{SPLITTABLE_SECTIONS as O}from"../../../../../format/lib/sections/section-head-placement.js";import{SECTION_LABELS as T}from"../../../../../format/lib/document/section-catalog.js";import{SAME_KEYS as _,SECTION_BOX as S,innerPad as h}from"./section-to-box-row-parts.js";import{HEAD_BELOW as f,headLookOf as b,headReads as u,headTree as B}from"./section-head-looks.js";import{finiteNumber as g}from"../../../../../format/lib/finite-number.js";import{CARD_TEMPLATE_SLOT as a}from"../../../../../format/lib/content/card-template.js";import{footprintCardSeed as A}from"../../../../../format/lib/document/blocks/general/Footprint/card-seed.js";import{faqCardSeed as R}from"../../../../../format/lib/document/blocks/general/FAQ/card-seed.js";import{INNER_BOX as w}from"../../../../../format/lib/document/seed-parts.js";import{SECTION_ACCENT_INHERIT as C}from"../../../../../format/lib/content/section-surface.js";const H=["Collections","Events","FAQ","Footprint","GalleryB","LongRead","ProcessSteps","RelatedProducts"],M=["FitmentTable","ProductGrid","SpecTable"],n=(o,e)=>()=>({top:o,topPhone:e}),m=o=>e=>{const r=h(e,o).sectionPaddingTop;return{top:r,topPhone:r}},L={Collections:n(120,70),Events:n(120,70),FAQ:n(120,70),GalleryB:n(120,70),FitmentTable:n(120,80),SpecTable:n(120,80),LongRead:n(120,80),RelatedProducts:n(0,0),Footprint:m("Footprint"),ProcessSteps:m("ProcessSteps"),ProductGrid:o=>({top:g(o.padTop)??120,topPhone:0})};function N(o,e={}){const r=O[o],c=L[o];if(!r||!c)throw new Error(`section-to-box-rows-head: "${o}" has no head row or no head room`);const i=r.padKey,l=B(o),d=u(o),E=r.headRows.filter(t=>![r.num,r.title,r.description,"linkText","linkHref"].includes(t)),p={...Object.fromEntries(E.filter(t=>!(t in d)).map(t=>[t,"a head setting no Header Box part reads (lib/document/blocks/general/section-head-looks `headReads`)"])),...e.drop};return{name:T[o]??o,boxProps:t=>{const s=c(t),P=e.roomBelow?{sectionPaddingBottom:e.roomBelow.bottom,sectionPaddingBottomPhone:e.roomBelow.bottomPhone}:{};return{...S,direction:"column",gap:f[b(o)],sectionPaddingTop:s.top,sectionPaddingTopPhone:s.topPhone,...P}},box:[..._,...i?[[i,"sectionPaddingTop",(t,s)=>c(s).top]]:[]],parts:[l,...(()=>{const t={...i?{[i]:0}:{},...e.coreProps},s={kind:"core",keep:"rest",...Object.keys(t).length?{props:t}:{},...e.slots?{slots:e.slots}:{}};return[e.coreBox?{kind:"group",name:e.coreBox.name,props:e.coreBox.props,parts:[s]}:s]})(),...e.partsAfter??[]],...Object.keys(d).length?{reads:d}:{},...Object.keys(p).length?{drop:p}:{},...e.pressHeading?{pressKeepsEmpty:[r.title]}:{}}}const k={...w,direction:"accordion",rowStyle:"numbered"},F={Footprint:{slots:{[a]:[A()]},pressHeading:!0},FAQ:{slots:{[a]:[R()]},pressHeading:!0,coreBox:{name:"Questions",props:k},coreProps:{sectionAccent:C},roomBelow:{bottom:120,bottomPhone:70}}},W=Object.fromEntries(H.map(o=>[o,N(o,F[o])]));export{k as FAQ_ROWS_BOX,F as HEAD_ONLY_CARD_SEEDS,W as HEAD_ONLY_SECTION_TO_BOX,H as HEAD_ONLY_TYPES,M as HOST_ROW_HEAD_TYPES,N as headOnlyRow};
@@ -1 +1 @@
1
- import{tabletKey as R}from"efficient-easel/draw";import{SECTION_WIDTH_KEYS as j}from"../../../../../format/lib/content/section-width.js";import{SECTION_BOX_SLOT as D,SECTION_BOX_TYPE as G}from"../../../sections/section-to-box.js";import{BUTTON as k,DIM as i,DROP_COMMON as W,DROP_SIDE_PADDING as v,INNER_BOX as o,SAME_KEYS as K,SECTION_BOX as f,SH_LINK as S,TEXT as p,bandAccent as X,bandIndex as $,bandPage as Y,bandProps as P,bandWrites as z,smallText as c,wrapperPad as l}from"./section-to-box-row-parts.js";import{editorialHeadTree as U,token as d}from"./section-head-looks.js";import{boxPadding as m,labelStyle as F}from"../../../../../format/lib/document/seed-parts.js";import{readAnchorName as q}from"../../../../../format/lib/content/anchor-name.js";import{declaredBlockSource as x}from"../../../../../format/lib/content/block-sources.js";import{parseLocationTileShape as V,splitLegacyRegion as T}from"../../../../../format/lib/content/contact.js";import{groupColumns as g}from"../../../../../format/lib/locations-grid.js";import{phoneHref as J}from"../../../../../format/lib/links/phone-href.js";import{hasMapCoords as Q}from"../../../../../format/lib/map-styles.js";const r=e=>typeof e=="string"?e:e==null?"":String(e),h=e=>Array.isArray(e.locations)?e.locations.map(t=>t??{}):[],s=e=>r(e.group),w=e=>`loc-${e}`,B=e=>r(e.state).trim()||T(r(e.region)).state,O=e=>r(e.country).trim()||T(r(e.region)).country,_=e=>[B(e),O(e)].filter(Boolean).join(" · "),Z=e=>h(e).some(t=>r(t.photo).trim()!==""),ee=e=>h(e).some(t=>Q(Number(t.lat),Number(t.lng))),te=(e,t)=>h(e).filter(n=>s(n)===s(t)).length,oe=(e,t)=>te(e,t)===1?"wide":V(e.imageShape),y={top:100,bottom:100,topPhone:60,bottomPhone:60},N=48,a=(e,t={})=>({...F(e),...t}),u={top:1,right:1,bottom:1,left:1},b={...o,direction:"row",share:"equal",gap:0},ne=e=>t=>t>g(t)?{...o,gap:0}:{...b,...t>1?{phoneRow:e}:{}},re={kind:"group",name:"Gallery",props:{...o,gap:20,_hidden:!0},when:Z,parts:[{kind:"group",name:"Gallery head",props:{...o,direction:"row",justify:"between",align:"end",gap:24,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},parts:[c("galleryKicker",a(12,{color:"accent",letterSpacing:.3})),{kind:"text",key:"galleryHint",props:{...i,align:"right",alignPhone:"left"},style:a(11,{letterSpacing:.22,alignPhone:"left"})}]},{kind:"group",name:"Groups",props:{...o,gap:24},parts:[{kind:"list",key:"locations",name:"City picture",props:{...o,darken:85,darkenStyle:"bottom",placement:"bottom-left",sectionBorder:u,...m(12,12)},item:(e,t,n)=>({props:{...r(e.photo).trim()?{bgImage:r(e.photo),hover:"mono"}:{},link:`#${w(t)}`,boxShape:oe(n,e)}}),parts:[{kind:"text",key:"name",props:p,style:a(11,{letterSpacing:.22,color:"text"})}],groups:{of:s,name:"Group",props:{...o,gap:10},head:e=>({label:s(e[0]??{})}),parts:[c("label",a(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:ne(2),perRow:g,rowName:"Row",rowProps:{...b,phoneRow:2}}}]}]},ae={kind:"group",name:"Words",props:{...o,gap:12,gapPhone:12,...m(28,28),sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",sectionHeightModePhone:"auto"},parts:[{kind:"group",name:"Name row",props:{...o,direction:"row",justify:"between",align:"start",gap:14,share:"content",phoneRow:2,sharePhone:"content",wrapPhone:"wrap",sectionPaddingBottom:6,sectionPaddingBottomPhone:6},parts:[{kind:"group",name:"Name",props:{...o,gap:6,gapPhone:6},parts:[{kind:"text",key:"name",role:"heading",props:p,style:{textStyle:"heading-3",...d("headingSmall",30),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}},{kind:"block",type:"Text",props:{...p,_partStyles:{text:a(12,{color:"accent",letterSpacing:.24,lineHeight:1.5})}},box:["region","state","country"].map(e=>[e,"text",(t,n)=>_(n)]),when:(e,t)=>_(t??{})!==""}]},{kind:"group",name:"Time zone",props:{...o,sectionBorder:u,...m(6,10)},parts:[{kind:"text",key:"timezone",props:{...i,textFit:"line"},style:a(12,{letterSpacing:.22,lineHeight:1.5})}]}]},{kind:"text",key:"address",props:i,style:{textStyle:"body-5",fontRole:"heading",...d("body",14),lineHeight:1.5}},{kind:"block",type:"ButtonBlock",props:{...k,...S,variant:"ghost",arrow:!1,_partStyles:{label:a(13,{letterSpacing:.18,color:"text",lineHeight:24/13})}},box:[["phone","label"],["phone","href",e=>J(r(e))??"#"]],when:(e,t)=>r(t?.phone).trim()!==""},{kind:"text",key:"hours",props:i,style:a(12,{letterSpacing:.18,lineHeight:1.7})}]},ie={kind:"block",type:"LocationMap",props:e=>({mapTheme:typeof e.mapTheme=="string"?e.mapTheme:"auto"}),box:["name","lat","lng","mapsUrl","geocode",...["region","state"].map(e=>[e,"state",(t,n)=>B(n)]),...["region","country"].map(e=>[e,"country",(t,n)=>O(n)])]},se={kind:"group",name:"Map",props:{...o,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[ie]},pe={kind:"list",key:"locations",name:"City",props:(e,t)=>({...o,gap:0,justify:"between",sectionBorder:u,jumpHighlight:!0,sectionAccent:$(e,t)>=0?Y(e.sectionAccent,t):-1}),item:(e,t)=>({props:{anchor:w(t)}}),parts:[ae,se],groups:{of:s,name:"Group",props:{...o,gap:20},head:e=>{const t=e[0]??{};return{key:s(t),groupName:r(t.groupName),count:`${e.length} location${e.length===1?"":"s"}`}},parts:[{kind:"group",name:"Group head",props:{...o,direction:"row",justify:"between",align:"end",gap:16,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},when:(e,t)=>r(t?.key).trim()!=="",parts:[c("key",a(13,{color:"accent",letterSpacing:.3})),{kind:"text",key:"groupName",role:"heading",props:p,style:{textStyle:"heading-3",...d("headingSmall",24),case:"upper",weight:500,letterSpacing:-.01}},{kind:"text",key:"count",props:i,style:a(12,{letterSpacing:.22})}]}],itemsName:"Cities",itemsProps:e=>({...b,columns:g(e),[R("columns")]:1})}},C=a(10,{letterSpacing:.25}),ce={kind:"block",type:G,props:{...o,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:ee,slot:D,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...i,text:"Location coordinates ©",_partStyles:{text:C}}},{kind:"block",type:"ButtonBlock",props:{...k,...S,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...C,color:"labels"}}}}]},E=(e,t)=>Object.fromEntries(t.filter(n=>e[n]!==void 0).map(n=>[n,e[n]])),M=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],H=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],A=e=>e.map(t=>[t,t,(n,L)=>l(L,y)[t]]),I=["sectionAccent","sectionAccent",X],le=["gridSpan","_hidden",...Object.values(j)],de={name:"City pictures",skip:e=>x(e)?`fed by the data source "${x(e)}": its cities are read as the page is served, not stored on the node`:void 0,boxProps:(e,t)=>({...f,direction:"column",gap:40,anchor:"studios",...E(l(e,y),M),sectionPaddingBottom:N,sectionPaddingBottomPhone:N,...P(e,t)}),box:[...K.filter(e=>e!=="sectionAccent"&&e!=="anchor"),I,["anchor","anchor",e=>q(e).trim()?e:"studios"],...A(M)],parts:[U("sectionNumber","heading","tagline"),re],also:[{name:"City maps",boxProps:(e,t)=>({...f,direction:"column",gap:40,sectionBorder:{bottom:1},sectionPaddingTop:0,sectionPaddingTopPhone:0,...E(l(e,y),H),...P(e,t)}),box:[...le,I,...A(H)],parts:[pe,ce]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:z,drop:{...W,...v,apiKey:"a stored Google Maps key from before the map needed none: the website's one map (components/SiteMap) takes no key, and a key is a credential, never page content",mapId:"a Google Maps style id from the same retired map: nothing in src/ reads it",gallery:"the retired separate tile list: the wall is derived from the cities (`components/ContactLocations`), nothing in src/ reads it",dataSource:"always empty here: a node fed by a source is skipped (see skip)"}},we={ContactLocations:de};export{we as LOCATIONS_SECTION_TO_BOX};
1
+ import{tabletKey as R}from"efficient-easel/draw";import{SECTION_WIDTH_KEYS as D}from"../../../../../format/lib/content/section-width.js";import{SECTION_BOX_SLOT as W,SECTION_BOX_TYPE as j}from"../../../sections/section-to-box.js";import{BUTTON as k,DIM as i,DROP_COMMON as G,DROP_SIDE_PADDING as v,INNER_BOX as o,SAME_KEYS as K,SECTION_BOX as f,SH_LINK as S,TEXT as p,bandAccent as X,bandIndex as Y,bandPage as $,bandProps as P,bandWrites as z,smallText as c,wrapperPad as l}from"./section-to-box-row-parts.js";import{editorialHeadTree as U,token as d}from"./section-head-looks.js";import{boxPadding as m,labelStyle as F}from"../../../../../format/lib/document/seed-parts.js";import{readAnchorName as V}from"../../../../../format/lib/content/anchor-name.js";import{declaredBlockSource as x}from"../../../../../format/lib/content/block-sources.js";import{parseLocationTileShape as q,splitLegacyRegion as T}from"../../../../../format/lib/content/contact.js";import{groupColumns as g}from"../../../../../format/lib/locations-grid.js";import{phoneHref as J}from"../../../../../format/lib/links/phone-href.js";import{hasMapCoords as Q}from"../../../../../format/lib/map-styles.js";import{VIEW_HIDE_KEYS as Z}from"../../../../../format/lib/content/view-hide-class.js";const r=e=>typeof e=="string"?e:e==null?"":String(e),h=e=>Array.isArray(e.locations)?e.locations.map(t=>t??{}):[],s=e=>r(e.group),w=e=>`loc-${e}`,B=e=>r(e.state).trim()||T(r(e.region)).state,_=e=>r(e.country).trim()||T(r(e.region)).country,O=e=>[B(e),_(e)].filter(Boolean).join(" · "),ee=e=>h(e).some(t=>r(t.photo).trim()!==""),te=e=>h(e).some(t=>Q(Number(t.lat),Number(t.lng))),oe=(e,t)=>h(e).filter(n=>s(n)===s(t)).length,ne=(e,t)=>oe(e,t)===1?"wide":q(e.imageShape),y={top:100,bottom:100,topPhone:60,bottomPhone:60},E=48,a=(e,t={})=>({...F(e),...t}),u={top:1,right:1,bottom:1,left:1},b={...o,direction:"row",share:"equal",gap:0},re=e=>t=>t>g(t)?{...o,gap:0}:{...b,...t>1?{phoneRow:e}:{}},ae={kind:"group",name:"Gallery",props:{...o,gap:20,_hidden:!0},when:ee,parts:[{kind:"group",name:"Gallery head",props:{...o,direction:"row",justify:"between",align:"end",gap:24,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},parts:[c("galleryKicker",a(12,{color:"accent",letterSpacing:.3})),{kind:"text",key:"galleryHint",props:{...i,align:"right",alignPhone:"left"},style:a(11,{letterSpacing:.22,alignPhone:"left"})}]},{kind:"group",name:"Groups",props:{...o,gap:24},parts:[{kind:"list",key:"locations",name:"City picture",props:{...o,darken:85,darkenStyle:"bottom",placement:"bottom-left",sectionBorder:u,...m(12,12)},item:(e,t,n)=>({props:{...r(e.photo).trim()?{bgImage:r(e.photo),hover:"mono"}:{},link:`#${w(t)}`,boxShape:ne(n,e)}}),parts:[{kind:"text",key:"name",props:p,style:a(11,{letterSpacing:.22,color:"text"})}],groups:{of:s,name:"Group",props:{...o,gap:10},head:e=>({label:s(e[0]??{})}),parts:[c("label",a(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:re(2),perRow:g,rowName:"Row",rowProps:{...b,phoneRow:2}}}]}]},ie={kind:"group",name:"Words",props:{...o,gap:12,gapPhone:12,...m(28,28),sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",sectionHeightModePhone:"auto"},parts:[{kind:"group",name:"Name row",props:{...o,direction:"row",justify:"between",align:"start",gap:14,share:"content",phoneRow:2,sharePhone:"content",wrapPhone:"wrap",sectionPaddingBottom:6,sectionPaddingBottomPhone:6},parts:[{kind:"group",name:"Name",props:{...o,gap:6,gapPhone:6},parts:[{kind:"text",key:"name",role:"heading",props:p,style:{textStyle:"heading-3",...d("headingSmall",30),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}},{kind:"block",type:"Text",props:{...p,_partStyles:{text:a(12,{color:"accent",letterSpacing:.24,lineHeight:1.5})}},box:["region","state","country"].map(e=>[e,"text",(t,n)=>O(n)]),when:(e,t)=>O(t??{})!==""}]},{kind:"group",name:"Time zone",props:{...o,sectionBorder:u,...m(6,10)},parts:[{kind:"text",key:"timezone",props:{...i,textFit:"line"},style:a(12,{letterSpacing:.22,lineHeight:1.5})}]}]},{kind:"text",key:"address",props:i,style:{textStyle:"body-5",fontRole:"heading",...d("body",14),lineHeight:1.5}},{kind:"block",type:"ButtonBlock",props:{...k,...S,variant:"ghost",arrow:!1,_partStyles:{label:a(13,{letterSpacing:.18,color:"text",lineHeight:24/13})}},box:[["phone","label"],["phone","href",e=>J(r(e))??"#"]],when:(e,t)=>r(t?.phone).trim()!==""},{kind:"text",key:"hours",props:i,style:a(12,{letterSpacing:.18,lineHeight:1.7})}]},se={kind:"block",type:"LocationMap",props:e=>({mapTheme:typeof e.mapTheme=="string"?e.mapTheme:"auto"}),box:["name","lat","lng","mapsUrl","geocode",...["region","state"].map(e=>[e,"state",(t,n)=>B(n)]),...["region","country"].map(e=>[e,"country",(t,n)=>_(n)])]},pe={kind:"group",name:"Map",props:{...o,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[se]},ce={kind:"list",key:"locations",name:"City",props:(e,t)=>({...o,gap:0,justify:"between",sectionBorder:u,jumpHighlight:!0,sectionAccent:Y(e,t)>=0?$(e.sectionAccent,t):-1}),item:(e,t)=>({props:{anchor:w(t)}}),parts:[ie,pe],groups:{of:s,name:"Group",props:{...o,gap:20},head:e=>{const t=e[0]??{};return{key:s(t),groupName:r(t.groupName),count:`${e.length} location${e.length===1?"":"s"}`}},parts:[{kind:"group",name:"Group head",props:{...o,direction:"row",justify:"between",align:"end",gap:16,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},when:(e,t)=>r(t?.key).trim()!=="",parts:[c("key",a(13,{color:"accent",letterSpacing:.3})),{kind:"text",key:"groupName",role:"heading",props:p,style:{textStyle:"heading-3",...d("headingSmall",24),case:"upper",weight:500,letterSpacing:-.01}},{kind:"text",key:"count",props:i,style:a(12,{letterSpacing:.22})}]}],itemsName:"Cities",itemsProps:e=>({...b,columns:g(e),[R("columns")]:1})}},N=a(10,{letterSpacing:.25}),le={kind:"block",type:j,props:{...o,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:te,slot:W,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...i,text:"Location coordinates ©",_partStyles:{text:N}}},{kind:"block",type:"ButtonBlock",props:{...k,...S,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...N,color:"labels"}}}}]},C=(e,t)=>Object.fromEntries(t.filter(n=>e[n]!==void 0).map(n=>[n,e[n]])),M=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],H=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],I=e=>e.map(t=>[t,t,(n,L)=>l(L,y)[t]]),A=["sectionAccent","sectionAccent",X],de=["gridSpan",...Z,...Object.values(D)],me={name:"City pictures",skip:e=>x(e)?`fed by the data source "${x(e)}": its cities are read as the page is served, not stored on the node`:void 0,boxProps:(e,t)=>({...f,direction:"column",gap:40,anchor:"studios",...C(l(e,y),M),sectionPaddingBottom:E,sectionPaddingBottomPhone:E,...P(e,t)}),box:[...K.filter(e=>e!=="sectionAccent"&&e!=="anchor"),A,["anchor","anchor",e=>V(e).trim()?e:"studios"],...I(M)],parts:[U("sectionNumber","heading","tagline"),ae],also:[{name:"City maps",boxProps:(e,t)=>({...f,direction:"column",gap:40,sectionBorder:{bottom:1},sectionPaddingTop:0,sectionPaddingTopPhone:0,...C(l(e,y),H),...P(e,t)}),box:[...de,A,...I(H)],parts:[ce,le]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:z,drop:{...G,...v,apiKey:"a stored Google Maps key from before the map needed none: the website's one map (components/SiteMap) takes no key, and a key is a credential, never page content",mapId:"a Google Maps style id from the same retired map: nothing in src/ reads it",gallery:"the retired separate tile list: the wall is derived from the cities (`components/ContactLocations`), nothing in src/ reads it",dataSource:"always empty here: a node fed by a source is skipped (see skip)"}},_e={ContactLocations:me};export{_e as LOCATIONS_SECTION_TO_BOX};
@@ -1,3 +1,4 @@
1
1
  import { type SectionToBoxRow } from "../../../sections/section-to-box.js";
2
2
  export declare const LOGOS_SECTION_TO_BOX: Readonly<Record<string, SectionToBoxRow>>;
3
3
  export declare const logosPressStarter: () => Readonly<Record<string, unknown>>;
4
+ export declare const paymentPressStarter: () => Readonly<Record<string, unknown>>;
@@ -1 +1 @@
1
- import{hasWords as n}from"../../../sections/section-to-box.js";import{DROP_COMMON as l,DROP_SIDE_PADDING as p,INNER_BOX as c,SAME_KEYS as g,SECTION_BOX as m,TEXT as a,smallText as P,wrapperPad as r,wrapperPadKeys as h}from"./section-to-box-row-parts.js";import{finiteNumber as _}from"../../../../../format/lib/finite-number.js";import{LOGOS_PH as S,logosScaffoldItems as k}from"../../../../../format/lib/document/blocks/general/Logos/meta.js";import{logosCardSeed as L}from"../../../../../format/lib/document/blocks/general/Logos/card-seed.js";import{BLOCK_SOURCE_OPTIONS_PROP as s,BLOCK_SOURCE_PROP as t}from"../../../../../format/lib/content/block-sources.js";import{CARD_TEMPLATE_SLOT as u}from"../../../../../format/lib/content/card-template.js";import{phoneKey as T}from"efficient-easel/draw";const O={contained:!1},b=(o,e)=>({logos:[{kind:"list",key:o,name:"Logo",flat:!0,parts:[{kind:"block",type:"LogoBlock",box:["src",[e,"alt"]],when:(w,d)=>n(d?.src)||n(d?.[e])}]}]}),i=o=>{const e=_(o.bandPadding)??40;return{top:e,bottom:e,topPhone:e,bottomPhone:e}},x={...P("heading",{color:"labels",letterSpacing:.2}),props:{...a,align:"center"}},E={name:"Logos",boxProps:o=>({...m,direction:"column",gap:32,...r(o,i(o))}),box:[...g,...h(i),["bandPadding","sectionPaddingTop",(o,e)=>r(e,i(e)).sectionPaddingTop]],parts:[x,{kind:"core",keep:["columns","logoHeight","grayscale"],rename:{logosPerRow:"columns"},props:O,slots:b("items","alt")}],drop:{...l,...p,contained:"the Box draws the site frame now; the Logos block inside it fills the Box's column (`contained: false`)",headPlacement:"a Logos band has no split head (not in SPLITTABLE_SECTIONS): no stored node can hold one, and the converted block stores own-box"}},f={top:24,bottom:24,topPhone:24,bottomPhone:24},B={name:"Payment Methods",boxProps:o=>({...m,direction:"column",...r(o,f)}),box:[...g,...h(f)],parts:[{kind:"group",name:"Methods",props:{...c,align:"center",gap:20,gapPhone:20,sectionBorder:{top:1,bottom:1},sectionPaddingTop:32,sectionPaddingBottom:32},parts:[{...P("heading",{color:"labels"}),props:{...a,align:"center"}},{kind:"core",keep:[],as:"Logos",derive:{reads:[t,s],props:o=>n(o[t])?{[t]:o[t],...o[s]!==void 0?{[s]:o[s]}:{}}:{}},props:{...O,look:"cards",grayscale:!1},slots:o=>({...b("badges","label"),...n(o[t])?{[u]:[L()]}:{}})},{kind:"group",name:"Reassurance",props:{...c,direction:"row",wrap:!0,justify:"center",gap:24,gapPhone:24,phoneRow:2,[T("share")]:"content"},parts:[{kind:"list",key:"assurances",name:"Line",flat:!0,parts:[{kind:"text",key:"text",props:{...a,align:"center"},style:{size:13,color:"labels",lineHeight:1.5}}]}]}]}],drop:{...l,...p,contained:"the Box draws the site frame now; the Logos block inside it fills the Box's column (`contained: false`)"}},K={Logos:E,PaymentBadges:B},G=()=>({heading:S.heading,items:k()});export{K as LOGOS_SECTION_TO_BOX,G as logosPressStarter};
1
+ import{hasWords as t}from"../../../sections/section-to-box.js";import{DROP_COMMON as l,DROP_SIDE_PADDING as c,INNER_BOX as s,SAME_KEYS as g,SECTION_BOX as m,TEXT as r,smallText as h,wrapperPad as i,wrapperPadKeys as P}from"./section-to-box-row-parts.js";import{finiteNumber as u}from"../../../../../format/lib/finite-number.js";import{token as S}from"../../../../../format/lib/document/seed-parts.js";import{LOGOS_PH as k,logosScaffoldItems as x}from"../../../../../format/lib/document/blocks/general/Logos/meta.js";import{logosCardSeed as T}from"../../../../../format/lib/document/blocks/general/Logos/card-seed.js";import{PAYMENT_PH as E,paymentScaffoldAssurances as L,paymentScaffoldBadges as w}from"../../../../../format/lib/document/blocks/general/PaymentBadges/meta.js";import{BLOCK_SOURCE_OPTIONS_PROP as a,BLOCK_SOURCE_PROP as n}from"../../../../../format/lib/content/block-sources.js";import{CARD_TEMPLATE_SLOT as y}from"../../../../../format/lib/content/card-template.js";import{phoneKey as f,readHidable as B}from"efficient-easel/draw";const b={contained:!1},O=(o,e)=>({logos:[{kind:"list",key:o,name:"Logo",flat:!0,parts:[{kind:"block",type:"LogoBlock",box:["src",[e,"alt"]],when:(M,p)=>t(p?.src)||t(p?.[e])}]}]}),d=o=>{const e=u(o.bandPadding)??40;return{top:e,bottom:e,topPhone:e,bottomPhone:e}},R={...h("heading",{color:"labels",letterSpacing:.2}),props:{...r,align:"center"}},C={name:"Logos",boxProps:o=>({...m,direction:"column",gap:32,...i(o,d(o))}),box:[...g,...P(d),["bandPadding","sectionPaddingTop",(o,e)=>i(e,d(e)).sectionPaddingTop]],parts:[R,{kind:"core",keep:["columns","logoHeight","grayscale"],rename:{logosPerRow:"columns"},props:b,slots:O("items","alt")}],drop:{...l,...c,contained:"the Box draws the site frame now; the Logos block inside it fills the Box's column (`contained: false`)",headPlacement:"a Logos band has no split head (not in SPLITTABLE_SECTIONS): no stored node can hold one, and the converted block stores own-box"}},N={kind:"group",name:"Mark",keepEmpty:!0,parts:[],props:{...s,widthFit:"fixed",width:4,minWidth:4,sectionHeightMode:"fixed",sectionHeightValue:4,sectionHeightUnit:"px",sectionCorners:2,fillColor:"main"}},_={top:24,bottom:24,topPhone:24,bottomPhone:24},A={name:"Payment Methods",boxProps:o=>({...m,direction:"column",...i(o,_)}),box:[...g,...P(_)],parts:[{kind:"group",name:"Methods",props:{...s,align:"center",gap:20,gapPhone:20,sectionBorder:{top:1,bottom:1},sectionPaddingTop:32,sectionPaddingBottom:32},parts:[{...h("heading",{color:"labels"}),props:{...r,align:"center"}},{kind:"core",keep:[],as:"Logos",derive:{reads:[n,a],props:o=>t(o[n])?{[n]:o[n],...o[a]!==void 0?{[a]:o[a]}:{}}:{}},props:{...b,look:"cards",grayscale:!1},slots:o=>({...O("badges","label"),...t(o[n])?{[y]:[T()]}:{}})},{kind:"group",name:"Reassurance",props:{...s,direction:"row",wrap:!0,justify:"center",gap:24,gapPhone:24,phoneRow:2,[f("share")]:"content"},parts:[{kind:"list",key:"assurances",name:"Line",of:o=>(Array.isArray(o.assurances)?o.assurances:[]).filter(e=>t(e?.text)),props:{...s,direction:"row",align:"center",gap:8,gapPhone:8,phoneRow:2,[f("share")]:"content"},item:o=>B(o.text).hidden?{props:{_hidden:!0}}:{},parts:[N,{kind:"text",key:"text",props:{...r,align:"center"},style:{...S("label",13),color:"labels",lineHeight:1.5}}]}]}]}],drop:{...l,...c,contained:"the Box draws the site frame now; the Logos block inside it fills the Box's column (`contained: false`)"}},j={Logos:C,PaymentBadges:A},F=()=>({heading:k.heading,items:x()}),V=()=>({heading:E.heading,badges:w(),assurances:L()});export{j as LOGOS_SECTION_TO_BOX,F as logosPressStarter,V as paymentPressStarter};
@@ -0,0 +1,2 @@
1
+ import type { SectionToBoxRow } from "../../../sections/section-to-box.js";
2
+ export declare const PROMO_SECTION_TO_BOX: Readonly<Record<string, SectionToBoxRow>>;
@@ -0,0 +1 @@
1
+ import{DROP_COMMON as t,DROP_SIDE_PADDING as e,FOLLOW_THE_BOX as r,SAME_KEYS as n,SECTION_BOX as p,TEXT as c,smallText as d,wrapperPad as O,wrapperPadKeys as a}from"./section-to-box-row-parts.js";import{labelLook as _}from"../../../../../format/lib/document/seed-parts.js";import{COUNTDOWN_OWN_BOX_WORDS as i}from"../../../../../format/lib/document/blocks/general/Countdown/meta.js";const s={top:48,bottom:48,topPhone:48,bottomPhone:48},b={...d("title",{..._(12),color:"muted"}),props:{...c,align:"center"}},P=()=>({name:"Countdown",boxProps:o=>({...p,direction:"column",align:"center",gap:16,gapPhone:16,...O(o,s)}),box:[...n,...a(s)],parts:[b,{kind:"core",keep:"rest",props:r}],pressKeepsEmpty:[...i],drop:{...t,...e}}),m={top:80,bottom:80,topTablet:60,bottomTablet:60,topPhone:60,bottomPhone:60},l=()=>({name:"Feature Banner",boxProps:o=>({...p,direction:"column",sectionBorder:{bottom:1},...O(o,m)}),box:[...n,...a(m)],parts:[{kind:"core",keep:"rest",props:r}],drop:{...t,...e}}),C={Countdown:P(),FeaturedCover:l()};export{C as PROMO_SECTION_TO_BOX};
@@ -0,0 +1,2 @@
1
+ import { type SectionToBoxRow } from "../../../sections/section-to-box.js";
2
+ export declare const PROOF_SECTION_TO_BOX: Readonly<Record<string, SectionToBoxRow>>;
@@ -0,0 +1 @@
1
+ import{DIM as u,DROP_COMMON as a,DROP_SIDE_PADDING as s,FOLLOW_THE_BOX as c,INNER_BOX as r,SAME_KEYS as _,SECTION_BOX as P,TEXT as b,bandPage as y,smallText as i,wrapperPad as C,wrapperPadKeys as f}from"./section-to-box-row-parts.js";import{boxPadding as x,token as p}from"../../../../../format/lib/document/seed-parts.js";import{phoneKey as E}from"efficient-easel/draw";import{convertTheme as S}from"../../../sections/section-to-box.js";import{surfacePresetIndex as w}from"../../../../../format/lib/theme.js";import{CHART_OWN_BOX_WORDS as A}from"../../../../../format/lib/document/blocks/general/Chart/meta.js";import{MOCKUP_OWN_BOX_WORDS as N}from"../../../../../format/lib/document/blocks/general/Mockup/meta.js";const m={top:76,bottom:76,topPhone:76,bottomPhone:76},d=()=>({kind:"group",name:"Words",props:{...r,gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...r,direction:"row",phoneRow:2,[E("share")]:"content"},parts:[{kind:"group",name:"Chip",props:{...r,fillColor:"main",...x(6,14)},parts:[i("eyebrow",{color:"background",...p("label",12),weight:600,letterSpacing:.16})]}]},{kind:"text",key:"title",role:"heading",props:b,style:{textStyle:"heading-2",...p("headingMedium",44,32),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}},{kind:"text",key:"body",props:{...u,maxWidth:435},style:{textStyle:"body-1",...p("body",15),lineHeight:1.625}}]}),l=(e,o)=>{const t=S(o)?.themes,n=t?w(t,y(e,o)):-1;return n>=0?n:e},g=e=>(o,t)=>({...P,sectionAccent:l(o.sectionAccent??0,t),direction:"row",align:"center",gap:56,gapPhone:56,share:e,sectionBorder:{top:1,bottom:1},...C(o,m)}),h=[..._.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>l(e,t)],...f(m)],B=()=>({name:"Chart",boxProps:g([42]),box:h,parts:[d(),{kind:"group",name:"Chart",props:{...r,gap:16,gapPhone:16},keepEmpty:!0,parts:[{kind:"core",keep:"rest",props:c},i("caption",{color:"muted",...p("label",10),letterSpacing:.14})]}],pressKeepsEmpty:[...A],drop:{...a,...s}}),O=e=>e.align==="left",k={kind:"group",name:"Card",keepEmpty:!0,props:r,parts:[{kind:"core",keep:"rest",props:c}]},D=()=>({name:"Mockup Card",boxProps:g("equal"),box:h,parts:[{...k,when:O},d(),{...k,when:e=>!O(e)}],pressKeepsEmpty:[...N],drop:{...a,...s}}),H={Chart:B(),Mockup:D()};export{H as PROOF_SECTION_TO_BOX};
@@ -1 +1 @@
1
- import{phoneKey as D}from"efficient-easel/draw";import{newId as K}from"efficient-easel/data";import{COUNT_KEY_PROP as y}from"../../../../../format/lib/content/block-sources.js";import{resolveSectionBackground as _,THEME_SECTION_BG as M}from"../../../../../format/lib/content/section-background.js";import{finiteNumber as H}from"../../../../../format/lib/finite-number.js";import{hasWords as u}from"../../../sections/section-to-box.js";import{DROP_COMMON as k,DROP_SIDE_PADDING as x,INNER_BOX as r,NUMBER_TEXT as h,SAME_KEYS as T,SECTION_BOX as O,TEXT as i,bandAccent as Y,bandProps as U,bandWrites as W,fillFrom as G,innerPad as X,innerPadKeys as $,smallText as g,wrapperPad as q,wrapperPadKeys as j}from"./section-to-box-row-parts.js";import{fluidToken as z,headTree as V,token as n}from"./section-head-looks.js";import{SECTION_BG_BUILT_IN as P}from"../../../../../format/lib/document/blocks/general/section-bg-built-in.js";import{CARD_STYLES as s,CARD_STYLE_KEY as m}from"../../../sections/card-list-style.js";import{CARD_LIST_TYPE as J,CARD_TEMPLATE_SLOT as Q,cardListProps as Z}from"../../../../../format/lib/content/card-template.js";import{BOX_TYPE as d,CONTAINER_BLOCKS_SLOT as l}from"../../../../../format/lib/document/container-blocks.js";import{rowFieldTextSeed as c}from"../../../../../format/lib/document/blocks/general/Cards/card-seed.js";import{say as o}from"../../../../../format/lib/editor-words.js";const S=e=>typeof e=="string"?e.trim():"";function E(e){const t=`${S(e.prefix)}${S(e.value)}`,a=S(e.suffix);return e.emphasizeAll===!0?t?`==_${t}_==`:"":`${t}${a?`==_${a}_==`:""}`}const A={textStyle:"heading-2",...z("headingMedium",56,7,96),weight:500,case:"none",lineHeight:.9,letterSpacing:-.04},f={kind:"block",type:"Text",props:{...h,_partStyles:{text:A}},box:[["value","text",(e,t)=>E(t)]],when:(e,t)=>t!==void 0&&typeof t.value=="string"&&E(t)!==""},B=e=>u(e?.supSuffix),R={textStyle:"body-1",fontRole:"heading",...n("body",16),lineHeight:1.5,letterSpacing:-.01},C={color:"labels",...n("label",12),lineHeight:1.5,letterSpacing:.24},L={...r,direction:"row",align:"start",gap:32,gapPhone:32,share:"content",phoneRow:2,[D("share")]:"content"},N={textStyle:"body-5",...n("label",13),weight:500,color:"accent",letterSpacing:.18,lineHeight:1,padding:12},b=e=>_(e.background,P.StatsParagraph),p=e=>b(e)===M,w=e=>({...e,sectionAccent:e.sectionAccent??0}),ee=(e,t)=>p(e)?G("background")(e,t):{},te={name:"Stats with Text",skip:e=>b(e)&&b(e)!=="transparent"&&!p(e)?"it paints a colour of its own, not the section band":void 0,boxProps:(e,t)=>({...O,direction:"column",gap:60,gapPhone:60,sectionBorder:{bottom:1},...X(e,"StatsParagraph"),...p(e)?U(w(e),t):{}}),box:[...T.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,t,a)=>p(t)?Y(e,w(t),a):e],...$("StatsParagraph")],site:(e,t)=>p(e.props)?W({props:w(e.props)},t):[],parts:[V("StatsParagraph"),{kind:"group",name:"Stats",props:{...r,...s.table.grid,[m]:"table"},parts:[{kind:"list",key:"stats",name:"Stat",perRow:()=>4,rowName:"Stats row",rowProps:{...r,direction:"row",share:"equal",phoneRow:2,...s.table.row},props:(e,t)=>({...r,...s.table.card,...ee(e,t)}),parts:[{...f,when:(e,t)=>!B(t)&&f.when(e,t)},{kind:"group",name:"Figure",props:L,when:(e,t)=>B(t),parts:[f,{kind:"text",key:"supSuffix",props:i,style:N}]},{kind:"group",name:"Words",props:{...r,gap:4,gapPhone:4},parts:[{kind:"text",key:"label",props:i,style:R},g("sub",C)]}]}]}],drop:{...k,...x,background:"the band is the Box's theme: the site's band preset (`sectionAccent`), or a declared band-preset write; none paints nothing, and any other colour is skipped",headPlacement:"needs a row per head placement: an own-box Stats with Text draws no head (its words sit in a Section Header above it), the row always draws the head"}},oe=new Set(["value","label",y]),I={top:48,bottom:48,topPhone:48,bottomPhone:48},re=e=>{const t=_(typeof e.background=="string"?e.background:void 0,P.Stats);return!!t&&t!=="transparent"},ae={name:"Stats",skip:e=>re(e)?"it paints a colour inside its padding, and a Box paints its Fill over the padding too":u(e.dataSource)?"its figures come from a source":Array.isArray(e.items)&&e.items.some(t=>u(t?.[y]))?"a figure names a count, and each figure Text here is typed by hand until it is linked":Array.isArray(e.items)&&e.items.some(t=>Object.keys(t??{}).some(a=>!oe.has(a)))?"a figure has a key no part here reads":Object.keys(e._partStyles??{}).some(t=>t!=="heading")?"a figure or a name has a style of its own, kept by kind, which no part here reads":void 0,boxProps:e=>({...O,direction:"column",gap:24,gapPhone:24,...q(e,I)}),box:[...T,...j(I)],parts:[g("heading",{color:"labels",...n("label",12),letterSpacing:.2}),{kind:"group",name:"Stats",props:{...r,...s.list.grid,[m]:"list"},parts:[{kind:"list",key:"items",name:"Stat",perRow:e=>H(e.columns)??4,rowName:"Stats row",rowProps:{...r,direction:"row",share:"equal",phoneRow:2,...s.list.row},props:{...r,...s.list.card},parts:[{kind:"text",key:"value",props:h,style:{textStyle:"heading-2",...n("headingMedium",48,36),weight:500,case:"none",lineHeight:1,letterSpacing:-.03}},g("label",{color:"labels",...n("label",12),letterSpacing:.2})]}]}],drop:{...k,...x,columns:"the rows of N: one row Box per `columns` figures, which the Box draws",dataSource:"an empty source is typed figures, what the row draws; a sourced node is skipped (0 Hartes nodes)",dataSourceOptions:"read only with a source; a sourced node is skipped (0 Hartes nodes)",contained:"the Box draws the site frame now; each figure fills the Box's column",background:"only no fill reaches here: a node that paints a colour is skipped"}},_e={StatsParagraph:te,Stats:ae};function ke(){return{eyebrow:o("By the numbers"),title:o("What we count."),desc:o("A few numbers that matter to us."),stats:[],background:"transparent"}}const se=[{key:"figure",label:"Figure"},{key:"superscript",label:"Superscript"},{key:"label",label:"Label"},{key:"body",label:"Text",multiline:!0}];function xe(){const e=(t,a,F,v="")=>({key:K("stat"),figure:t,superscript:v,label:a,body:F});return[e("28==_yr_==",o("Years in business"),o("Privately held since day one. Same two founders.")),e("==_8_==",o("Operating footprint"),o("Los Angeles · Fort Lauderdale · Bewdley · Drachten · Mumbai · Selangor · Ho Chi Minh · Sydney. Three continents covered from one California design studio."),o("cities")),e("−21==_%_==",o("Avg. weight saving"),o("Versus OEM equivalents, across our forged catalog.")),e("14==_×_==",o("Finish steps"),o("Specified in California to a 14-step protocol. No two sets are identical."))]}function ne(e){return{type:d,props:{...r,name:"Card",...structuredClone(s[e].listCard)},slots:{[l]:[{type:d,props:{...L,name:"Figure"},slots:{[l]:[c("figure",h,A),c("superscript",i,N)]}},{type:d,props:{...r,name:"Words",gap:4,gapPhone:4},slots:{[l]:[c("label",{...i,widthFit:"fill"},R),c("body",{...i,widthFit:"fill"},C,!0)]}}]}}}function Te(e,t,a=4){return{type:d,props:{...r,name:"Stats",direction:"row",columns:a,...structuredClone(s[t].items),[m]:t},slots:{[l]:[{type:J,props:Z(e,se),slots:{[Q]:[ne(t)]}}]}}}export{_e as STATS_SECTION_TO_BOX,E as figureWords,Te as statsBoxSeed,ke as statsPressSeed,xe as statsSeedRows};
1
+ import{phoneKey as D}from"efficient-easel/draw";import{newId as K}from"efficient-easel/data";import{COUNT_KEY_PROP as _}from"../../../../../format/lib/content/block-sources.js";import{resolveSectionBackground as k,THEME_SECTION_BG as M}from"../../../../../format/lib/content/section-background.js";import{finiteNumber as H}from"../../../../../format/lib/finite-number.js";import{hasWords as g}from"../../../sections/section-to-box.js";import{DROP_COMMON as x,DROP_SIDE_PADDING as T,INNER_BOX as a,NUMBER_TEXT as m,SAME_KEYS as P,SECTION_BOX as O,TEXT as i,bandAccent as Y,bandProps as U,bandWrites as W,fillFrom as G,onBandPreset as X,innerPad as $,innerPadKeys as q,smallText as S,wrapperPad as j,wrapperPadKeys as z}from"./section-to-box-row-parts.js";import{fluidToken as V,headTree as J,token as n}from"./section-head-looks.js";import{SECTION_BG_BUILT_IN as E}from"../../../../../format/lib/document/blocks/general/section-bg-built-in.js";import{CARD_STYLES as s,CARD_STYLE_KEY as f}from"../../../sections/card-list-style.js";import{CARD_LIST_TYPE as Q,CARD_TEMPLATE_SLOT as Z,cardListProps as ee}from"../../../../../format/lib/content/card-template.js";import{BOX_TYPE as d,CONTAINER_BLOCKS_SLOT as l}from"../../../../../format/lib/document/container-blocks.js";import{rowFieldTextSeed as c}from"../../../../../format/lib/document/blocks/general/Cards/card-seed.js";import{say as r}from"../../../../../format/lib/editor-words.js";const b=e=>typeof e=="string"?e.trim():"";function A(e){const t=`${b(e.prefix)}${b(e.value)}`,o=b(e.suffix);return e.emphasizeAll===!0?t?`==_${t}_==`:"":`${t}${o?`==_${o}_==`:""}`}const B={textStyle:"heading-2",...V("headingMedium",56,7,96),weight:500,case:"none",lineHeight:.9,letterSpacing:-.04},w={kind:"block",type:"Text",props:{...m,_partStyles:{text:B}},box:[["value","text",(e,t)=>A(t)]],when:(e,t)=>t!==void 0&&typeof t.value=="string"&&A(t)!==""},R=e=>g(e?.supSuffix),C={textStyle:"body-1",fontRole:"heading",...n("body",16),lineHeight:1.5,letterSpacing:-.01},L={color:"labels",...n("label",12),lineHeight:1.5,letterSpacing:.24},N={...a,direction:"row",align:"start",gap:32,gapPhone:32,share:"content",phoneRow:2,[D("share")]:"content"},I={textStyle:"body-5",...n("label",13),weight:500,color:"accent",letterSpacing:.18,lineHeight:1,padding:12},y=e=>k(e.background,E.StatsParagraph),p=e=>y(e)===M,u=e=>({...e,sectionAccent:e.sectionAccent??0}),te=(e,t)=>p(e)?G("background",(o,h)=>X(u(o),h))(e,t):{},oe={name:"Stats with Text",skip:e=>y(e)&&y(e)!=="transparent"&&!p(e)?"it paints a colour of its own, not the section band":void 0,boxProps:(e,t)=>({...O,direction:"column",gap:60,gapPhone:60,sectionBorder:{bottom:1},...$(e,"StatsParagraph"),...p(e)?U(u(e),t):{}}),box:[...P.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,t,o)=>p(t)?Y(e,u(t),o):e],...q("StatsParagraph")],site:(e,t)=>p(e.props)?W({props:u(e.props)},t):[],parts:[J("StatsParagraph"),{kind:"group",name:"Stats",props:{...a,...s.table.grid,[f]:"table"},parts:[{kind:"list",key:"stats",name:"Stat",perRow:()=>4,rowName:"Stats row",rowProps:{...a,direction:"row",share:"equal",phoneRow:2,...s.table.row},props:(e,t)=>({...a,...s.table.card,...te(e,t)}),parts:[{...w,when:(e,t)=>!R(t)&&w.when(e,t)},{kind:"group",name:"Figure",props:N,when:(e,t)=>R(t),parts:[w,{kind:"text",key:"supSuffix",props:i,style:I}]},{kind:"group",name:"Words",props:{...a,gap:4,gapPhone:4},parts:[{kind:"text",key:"label",props:i,style:C},S("sub",L)]}]}]}],drop:{...x,...T,background:"the band is the Box's theme: the site's band preset (`sectionAccent`), or a declared band-preset write; none paints nothing, and any other colour is skipped",headPlacement:"needs a row per head placement: an own-box Stats with Text draws no head (its words sit in a Section Header above it), the row always draws the head"}},re=new Set(["value","label",_]),F={top:48,bottom:48,topPhone:48,bottomPhone:48},ae=e=>{const t=k(typeof e.background=="string"?e.background:void 0,E.Stats);return!!t&&t!=="transparent"},se={name:"Stats",skip:e=>ae(e)?"it paints a colour inside its padding, and a Box paints its Fill over the padding too":g(e.dataSource)?"its figures come from a source":Array.isArray(e.items)&&e.items.some(t=>g(t?.[_]))?"a figure names a count, and each figure Text here is typed by hand until it is linked":Array.isArray(e.items)&&e.items.some(t=>Object.keys(t??{}).some(o=>!re.has(o)))?"a figure has a key no part here reads":Object.keys(e._partStyles??{}).some(t=>t!=="heading")?"a figure or a name has a style of its own, kept by kind, which no part here reads":void 0,boxProps:e=>({...O,direction:"column",gap:24,gapPhone:24,...j(e,F)}),box:[...P,...z(F)],parts:[S("heading",{color:"labels",...n("label",12),letterSpacing:.2}),{kind:"group",name:"Stats",props:{...a,...s.list.grid,[f]:"list"},parts:[{kind:"list",key:"items",name:"Stat",perRow:e=>H(e.columns)??4,rowName:"Stats row",rowProps:{...a,direction:"row",share:"equal",phoneRow:2,...s.list.row},props:{...a,...s.list.card},parts:[{kind:"text",key:"value",props:m,style:{textStyle:"heading-2",...n("headingMedium",48,36),weight:500,case:"none",lineHeight:1,letterSpacing:-.03}},S("label",{color:"labels",...n("label",12),letterSpacing:.2})]}]}],drop:{...x,...T,columns:"the rows of N: one row Box per `columns` figures, which the Box draws",dataSource:"an empty source is typed figures, what the row draws; a sourced node is skipped (0 Hartes nodes)",dataSourceOptions:"read only with a source; a sourced node is skipped (0 Hartes nodes)",contained:"the Box draws the site frame now; each figure fills the Box's column",background:"only no fill reaches here: a node that paints a colour is skipped"}},ke={StatsParagraph:oe,Stats:se};function xe(){return{eyebrow:r("By the numbers"),title:r("What we count."),desc:r("A few numbers that matter to us."),stats:[],background:"transparent"}}const ne=[{key:"figure",label:"Figure"},{key:"superscript",label:"Superscript"},{key:"label",label:"Label"},{key:"body",label:"Text",multiline:!0}];function Te(){const e=(t,o,h,v="")=>({key:K("stat"),figure:t,superscript:v,label:o,body:h});return[e("28==_yr_==",r("Years in business"),r("Privately held since day one. Same two founders.")),e("==_8_==",r("Operating footprint"),r("Los Angeles · Fort Lauderdale · Bewdley · Drachten · Mumbai · Selangor · Ho Chi Minh · Sydney. Three continents covered from one California design studio."),r("cities")),e("−21==_%_==",r("Avg. weight saving"),r("Versus OEM equivalents, across our forged catalog.")),e("14==_×_==",r("Finish steps"),r("Specified in California to a 14-step protocol. No two sets are identical."))]}function ie(e){return{type:d,props:{...a,name:"Card",...structuredClone(s[e].listCard)},slots:{[l]:[{type:d,props:{...N,name:"Figure"},slots:{[l]:[c("figure",m,B),c("superscript",i,I)]}},{type:d,props:{...a,name:"Words",gap:4,gapPhone:4},slots:{[l]:[c("label",{...i,widthFit:"fill"},C),c("body",{...i,widthFit:"fill"},L,!0)]}}]}}}function Pe(e,t,o=4){return{type:d,props:{...a,name:"Stats",direction:"row",columns:o,...structuredClone(s[t].items),[f]:t},slots:{[l]:[{type:Q,props:ee(e,ne),slots:{[Z]:[ie(t)]}}]}}}export{ke as STATS_SECTION_TO_BOX,A as figureWords,Pe as statsBoxSeed,xe as statsPressSeed,Te as statsSeedRows};