efficient-web-builder 74.1.0 → 74.3.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 (173) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist/editor/components/PreviewFooterContext.d.ts +3 -1
  3. package/dist/editor/components/PreviewFooterContext.js +1 -1
  4. package/dist/editor/components/SectionTextPartBridge.d.ts +2 -8
  5. package/dist/editor/components/SectionTextPartBridge.js +1 -1
  6. package/dist/editor/components/StorefrontEditor.js +1 -1
  7. package/dist/editor/components/storefront-editor.css +7 -0
  8. package/dist/editor/lib/document/blocks/general/ContactLocations/fields.js +1 -1
  9. package/dist/editor/lib/document/blocks/general/Footprint/fields.d.ts +3 -0
  10. package/dist/editor/lib/document/blocks/general/Footprint/fields.js +1 -1
  11. package/dist/editor/lib/document/controls.d.ts +1 -0
  12. package/dist/editor/lib/document/controls.js +1 -1
  13. package/dist/editor/lib/document/own-pad-fields.d.ts +4 -3
  14. package/dist/editor/lib/document/own-pad-fields.js +1 -1
  15. package/dist/editor/lib/document/page-root-fields.d.ts +4 -0
  16. package/dist/editor/lib/document/page-root-fields.js +1 -1
  17. package/dist/editor/lib/document/page-root.d.ts +3 -2
  18. package/dist/editor/lib/document/page-root.js +2 -2
  19. package/dist/editor/lib/document/registry.js +1 -1
  20. package/dist/editor/lib/editor-document-adapter.d.ts +1 -0
  21. package/dist/editor/lib/editor-document-adapter.js +1 -1
  22. package/dist/editor/lib/pinned-chrome-doc.d.ts +1 -0
  23. package/dist/editor/lib/pinned-chrome-doc.js +1 -1
  24. package/dist/format/lib/build/module-specifiers.d.ts +8 -0
  25. package/dist/format/lib/build/module-specifiers.js +1 -1
  26. package/dist/format/lib/content/block-sources.d.ts +1 -0
  27. package/dist/format/lib/content/block-sources.js +1 -1
  28. package/dist/format/lib/content/page-width.d.ts +15 -0
  29. package/dist/format/lib/content/page-width.js +1 -1
  30. package/dist/format/lib/content/section-css.d.ts +1 -1
  31. package/dist/format/lib/content/section-css.js +1 -1
  32. package/dist/format/lib/content/site-css.d.ts +5 -0
  33. package/dist/format/lib/content/site-css.js +1 -0
  34. package/dist/format/lib/content/site-offices.d.ts +7 -0
  35. package/dist/format/lib/content/site-offices.js +1 -0
  36. package/dist/format/lib/document/passes/types.d.ts +3 -2
  37. package/dist/format/lib/editor-words-catalogue.d.ts +3 -0
  38. package/dist/format/lib/editor-words-catalogue.js +3 -3
  39. package/dist/format/lib/source-rules/panel-colour-tokens.js +7 -7
  40. package/dist/format/lib/source-rules/site-gutter-once.d.ts +12 -0
  41. package/dist/format/lib/source-rules/site-gutter-once.js +23 -0
  42. package/dist/render/components/Banner.d.ts +3 -1
  43. package/dist/render/components/Banner.js +1 -1
  44. package/dist/render/components/Breadcrumb.js +1 -1
  45. package/dist/render/components/Cards.d.ts +3 -1
  46. package/dist/render/components/Cards.js +1 -1
  47. package/dist/render/components/ChartSection.d.ts +3 -1
  48. package/dist/render/components/ChartSection.js +1 -1
  49. package/dist/render/components/ContactLocations.d.ts +3 -1
  50. package/dist/render/components/ContactLocations.js +2 -2
  51. package/dist/render/components/Countdown.d.ts +3 -1
  52. package/dist/render/components/Countdown.js +1 -1
  53. package/dist/render/components/DocBody.d.ts +3 -1
  54. package/dist/render/components/DocBody.js +4 -4
  55. package/dist/render/components/DocMasthead.d.ts +3 -1
  56. package/dist/render/components/DocMasthead.js +1 -1
  57. package/dist/render/components/DocMetaCards.d.ts +3 -1
  58. package/dist/render/components/DocMetaCards.js +1 -1
  59. package/dist/render/components/FAQ.d.ts +3 -1
  60. package/dist/render/components/FAQ.js +1 -1
  61. package/dist/render/components/FeaturedCover.d.ts +3 -1
  62. package/dist/render/components/FeaturedCover.js +1 -1
  63. package/dist/render/components/Flex.js +1 -1
  64. package/dist/render/components/Footprint.js +1 -1
  65. package/dist/render/components/Grid.d.ts +3 -1
  66. package/dist/render/components/Grid.js +1 -1
  67. package/dist/render/components/HeroGroup.js +1 -1
  68. package/dist/render/components/HeroSingle.js +1 -1
  69. package/dist/render/components/HeroSlide.js +1 -1
  70. package/dist/render/components/ImageBlock.js +1 -1
  71. package/dist/render/components/IntegrationsSection.d.ts +3 -1
  72. package/dist/render/components/IntegrationsSection.js +1 -1
  73. package/dist/render/components/KeyFeatures.d.ts +3 -1
  74. package/dist/render/components/KeyFeatures.js +1 -1
  75. package/dist/render/components/Logos.d.ts +3 -1
  76. package/dist/render/components/Logos.js +1 -1
  77. package/dist/render/components/LongRead.d.ts +3 -1
  78. package/dist/render/components/LongRead.js +1 -1
  79. package/dist/render/components/Manifesto.js +1 -1
  80. package/dist/render/components/Masthead.d.ts +3 -1
  81. package/dist/render/components/Masthead.js +1 -1
  82. package/dist/render/components/MockupSection.d.ts +3 -1
  83. package/dist/render/components/MockupSection.js +1 -1
  84. package/dist/render/components/OrderSummary.d.ts +3 -1
  85. package/dist/render/components/OrderSummary.js +1 -1
  86. package/dist/render/components/ParagraphsA.js +1 -1
  87. package/dist/render/components/PaymentBadges.d.ts +3 -1
  88. package/dist/render/components/PaymentBadges.js +1 -1
  89. package/dist/render/components/ProcessSteps.js +1 -1
  90. package/dist/render/components/Prose.d.ts +3 -1
  91. package/dist/render/components/Prose.js +1 -1
  92. package/dist/render/components/SectionHeader.d.ts +2 -1
  93. package/dist/render/components/SectionHeader.js +1 -1
  94. package/dist/render/components/Series.d.ts +3 -1
  95. package/dist/render/components/Series.js +1 -1
  96. package/dist/render/components/SideSpaceOnce.d.ts +6 -0
  97. package/dist/render/components/SideSpaceOnce.js +1 -0
  98. package/dist/render/components/SiteGutterFrame.js +1 -1
  99. package/dist/render/components/SiteOffices.d.ts +5 -0
  100. package/dist/render/components/SiteOffices.js +1 -0
  101. package/dist/render/components/SiteRootProps.d.ts +6 -0
  102. package/dist/render/components/SiteRootProps.js +1 -0
  103. package/dist/render/components/SpecStrip.js +1 -1
  104. package/dist/render/components/Split.js +1 -1
  105. package/dist/render/components/Stats.d.ts +3 -1
  106. package/dist/render/components/Stats.js +1 -1
  107. package/dist/render/components/StatsParagraph.js +1 -1
  108. package/dist/render/components/Testimonials.d.ts +3 -1
  109. package/dist/render/components/Testimonials.js +1 -1
  110. package/dist/render/components/TickerSection.d.ts +3 -1
  111. package/dist/render/components/TickerSection.js +1 -1
  112. package/dist/render/components/Timeline.js +1 -1
  113. package/dist/render/components/TimelineTrack.js +1 -1
  114. package/dist/render/components/TitleWithButtons.js +1 -1
  115. package/dist/render/lib/content/section-edge.d.ts +1 -1
  116. package/dist/render/lib/content/section-edge.js +1 -1
  117. package/dist/render/lib/content/section-own-pads.d.ts +35 -0
  118. package/dist/render/lib/content/section-own-pads.js +1 -0
  119. package/dist/render/lib/content/section-padding.d.ts +9 -3
  120. package/dist/render/lib/content/section-padding.js +1 -1
  121. package/dist/render/lib/document/blocks/general/Banner/render.js +1 -1
  122. package/dist/render/lib/document/blocks/general/Cards/render.js +1 -1
  123. package/dist/render/lib/document/blocks/general/Chart/render.js +1 -1
  124. package/dist/render/lib/document/blocks/general/ContactLocations/render.js +1 -1
  125. package/dist/render/lib/document/blocks/general/Countdown/render.js +1 -1
  126. package/dist/render/lib/document/blocks/general/DocBody/render.js +1 -1
  127. package/dist/render/lib/document/blocks/general/DocMasthead/render.js +1 -1
  128. package/dist/render/lib/document/blocks/general/DocMetaCards/render.js +1 -1
  129. package/dist/render/lib/document/blocks/general/FAQ/render.js +1 -1
  130. package/dist/render/lib/document/blocks/general/FeaturedCover/render.js +1 -1
  131. package/dist/render/lib/document/blocks/general/Footprint/render.js +1 -1
  132. package/dist/render/lib/document/blocks/general/Grid/render.js +1 -1
  133. package/dist/render/lib/document/blocks/general/Integrations/render.js +2 -2
  134. package/dist/render/lib/document/blocks/general/KeyFeatures/render.js +1 -1
  135. package/dist/render/lib/document/blocks/general/Logos/render.js +1 -1
  136. package/dist/render/lib/document/blocks/general/LongRead/render.js +1 -1
  137. package/dist/render/lib/document/blocks/general/Masthead/render.js +1 -1
  138. package/dist/render/lib/document/blocks/general/Mockup/render.js +2 -2
  139. package/dist/render/lib/document/blocks/general/OrderSummary/render.js +1 -1
  140. package/dist/render/lib/document/blocks/general/PaymentBadges/render.js +1 -1
  141. package/dist/render/lib/document/blocks/general/Prose/render.js +1 -1
  142. package/dist/render/lib/document/blocks/general/SectionHeader/render.js +1 -1
  143. package/dist/render/lib/document/blocks/general/Series/render.js +1 -1
  144. package/dist/render/lib/document/blocks/general/Stats/render.js +1 -1
  145. package/dist/render/lib/document/blocks/general/Testimonials/render.js +1 -1
  146. package/dist/render/lib/document/blocks/general/Ticker/render.js +1 -1
  147. package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.js +1 -1
  148. package/dist/render/lib/document/blocks/general/section-to-box-rows-docbody.js +2 -2
  149. package/dist/render/lib/document/blocks/general/section-to-box-rows-head.js +1 -1
  150. package/dist/render/lib/document/blocks/general/section-to-box-rows-integrations.js +1 -1
  151. package/dist/render/lib/document/blocks/general/section-to-box-rows-locations.js +1 -1
  152. package/dist/render/lib/document/blocks/general/section-to-box-rows-logos.js +1 -1
  153. package/dist/render/lib/document/blocks/general/section-to-box-rows-pageheader.js +1 -1
  154. package/dist/render/lib/document/blocks/general/section-to-box-rows-promo.js +1 -1
  155. package/dist/render/lib/document/blocks/general/section-to-box-rows-proof.js +1 -1
  156. package/dist/render/lib/document/blocks/general/section-to-box-rows-stats.js +1 -1
  157. package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
  158. package/dist/render/lib/document/custom-css.d.ts +2 -1
  159. package/dist/render/lib/document/editing-bridges.d.ts +5 -1
  160. package/dist/render/lib/document/editing-bridges.js +1 -1
  161. package/dist/render/lib/document/part-styles.d.ts +3 -1
  162. package/dist/render/lib/document/part-styles.js +2 -2
  163. package/dist/render/lib/document/passes/clickable-parts.js +1 -1
  164. package/dist/render/lib/document/passes/section-custom-css.d.ts +7 -0
  165. package/dist/render/lib/document/passes/section-custom-css.js +1 -1
  166. package/dist/render/lib/document/passes/section-padding.d.ts +3 -3
  167. package/dist/render/lib/document/passes/section-padding.js +1 -1
  168. package/dist/render/lib/document/passes/section-width.js +1 -1
  169. package/dist/render/lib/document/section-css-style.d.ts +3 -1
  170. package/dist/render/lib/document/section-css-style.js +1 -1
  171. package/dist/routine-index.json +1 -1
  172. package/dist/value-index.json +1 -1
  173. package/package.json +1 -1
@@ -1 +1 @@
1
- import{jsx as r}from"react/jsx-runtime";import{HideTaker as N}from"../../../../../components/ViewHideRoot.js";import{resolveWidth as R}from"../../../../../../format/lib/content/section-width.js";import{FRAME as T}from"../../../../../components/BlockFrame.js";import b from"../../../../../components/EditorialSectionHead.js";import{renderGold as g,renderHeadline as G}from"../../../../../components/goldPhrases.js";import s from"../../../../../components/SectionHeader.js";import{hidableText as f}from"efficient-easel/draw";import{parseNaturalDescriptionSize as _,parseNaturalRowGap as j,parseSectionHeadStyle as z}from"../../../../../../format/lib/sections/section-head-style.js";import{parseSectionEyebrowLook as p}from"../../../../../../format/lib/sections/section-eyebrow-look.js";import{phHide as t}from"../../scaffold.js";import{SectionHeaderMeta as A,SECTION_HEADER_PH as n}from"../../../../../../format/lib/document/blocks/general/SectionHeader/meta.js";const K={...A,render:({headStyle:H,num:i,numStyle:S,eyebrowLook:l,title:o,description:c,logoSrc:d,logoAlt:x,linkText:k,linkHref:w,rowGap:h,descriptionSize:v,widthMode:y,editor:e})=>{const u=t(k,n.linkText,e),E=R({widthMode:y},"full"),a=z(H);return r(N,{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:r("div",{className:E.mode==="page"?T:void 0,children:a==="editorial"?r(b,{num:t(i,n.num,e),title:(()=>{const m=t(o,n.title,e);return m?G(m,!0):void 0})(),desc:(()=>{const m=t(c,n.description,e);return m?g(m):void 0})(),spaceBelow:""}):a==="simple"?r(s,{look:"simple",num:t(i,n.num,e),title:t(o,n.title,e),eyebrowLook:p(l,"SectionHeader")}):a==="statement"?r(s,{look:"statement",num:t(i,n.num,e),title:t(o,n.title,e),eyebrowLook:p(l,"SectionHeader")}):a==="natural"?r(s,{look:"natural",num:t(i,n.num,e),title:t(o,n.title,e),description:t(c,n.description,e),eyebrowLook:p(l,"SectionHeader"),rowGap:j(h),descriptionSize:_(v)}):a==="essay"?r(s,{look:"essay",num:t(i,n.num,e),title:t(o,n.title,e),eyebrowLook:p(l,"SectionHeader")}):r(s,{num:t(i,n.num,e),title:t(o,n.title,e),description:t(c,n.description,e),logo:d?{src:d,alt:f(x)}:void 0,link:u?{text:u,href:f(w)||"#"}:void 0,numStyle:S,accent:!0})})})}};export{K as SectionHeaderRender};
1
+ import{jsx as i}from"react/jsx-runtime";import{HideTaker as R}from"../../../../../components/ViewHideRoot.js";import{SideOnceClass as N}from"../../../../../components/SideSpaceOnce.js";import{resolveWidth as T}from"../../../../../../format/lib/content/section-width.js";import{sectionRootPad as G,withRootPad as P}from"../../../../content/section-own-pads.js";import{FRAME as z}from"../../../../../components/BlockFrame.js";import A from"../../../../../components/EditorialSectionHead.js";import{renderGold as M,renderHeadline as _}from"../../../../../components/goldPhrases.js";import l from"../../../../../components/SectionHeader.js";import{hidableText as w}from"efficient-easel/draw";import{parseNaturalDescriptionSize as j,parseNaturalRowGap as B,parseSectionHeadStyle as C}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 D,SECTION_HEADER_PH as o}from"../../../../../../format/lib/document/blocks/general/SectionHeader/meta.js";const ee={...D,render:p=>{const{headStyle:k,num:r,numStyle:H,eyebrowLook:m,title:n,description:c,logoSrc:u,logoAlt:x,linkText:y,linkHref:h,rowGap:b,descriptionSize:g,widthMode:v,editor:e}=p,f=t(y,o.linkText,e),E=T({widthMode:v},"full"),d=C(k),S=G("SectionHeader",p);return i(N,{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:L=>i(R,{as:"section",...P(L,S),children:i("div",{className:E.mode==="page"?z:void 0,children:d==="editorial"?i(A,{num:t(r,o.num,e),title:(()=>{const a=t(n,o.title,e);return a?_(a,!0):void 0})(),desc:(()=>{const a=t(c,o.description,e);return a?M(a):void 0})(),spaceBelow:""}):d==="simple"?i(l,{look:"simple",num:t(r,o.num,e),title:t(n,o.title,e),eyebrowLook:s(m,"SectionHeader")}):d==="statement"?i(l,{look:"statement",num:t(r,o.num,e),title:t(n,o.title,e),eyebrowLook:s(m,"SectionHeader")}):d==="natural"?i(l,{look:"natural",num:t(r,o.num,e),title:t(n,o.title,e),description:t(c,o.description,e),eyebrowLook:s(m,"SectionHeader"),rowGap:B(b),descriptionSize:j(g)}):d==="essay"?i(l,{look:"essay",num:t(r,o.num,e),title:t(n,o.title,e),eyebrowLook:s(m,"SectionHeader")}):i(l,{num:t(r,o.num,e),title:t(n,o.title,e),description:t(c,o.description,e),logo:u?{src:u,alt:w(x)}:void 0,link:f?{text:f,href:w(h)||"#"}:void 0,numStyle:H,accent:!0,rootPadsBottom:S!==null})})})})}};export{ee as SectionHeaderRender};
@@ -1 +1 @@
1
- import{jsx as p}from"react/jsx-runtime";import f from"../../../../../components/Series.js";import{resolveSectionBackground as S}from"../../../../../../format/lib/content/section-background.js";import{parseSectionHeadPlacement as b}from"../../../../../../format/lib/sections/section-head-placement.js";import{phRows as g,phHide as i}from"../../scaffold.js";import{SECTION_BG_BUILT_IN as L}from"../../../../../../format/lib/document/blocks/general/section-bg-built-in.js";import{say as e}from"../../../../../../format/lib/editor-words.js";import{SeriesMeta as w,SERIES_PH as t}from"../../../../../../format/lib/document/blocks/general/Series/meta.js";const x=()=>[{num:"01",since:e("Year"),title:e("Column *title.*"),desc:e("A short description of this recurring column."),entries:"0",entriesLabel:e("entries")},{num:"02",since:e("Year"),title:e("Column *title.*"),desc:e("A short description of this recurring column."),entries:"0",entriesLabel:e("entries")},{num:"03",since:e("Year"),title:e("Column *title.*"),desc:e("A short description of this recurring column."),entries:"0",entriesLabel:e("entries")}],v={...w,render:({headNum:o,headTitle:m,headDesc:c,cards:a,viewLabel:d,background:l,headPlacement:u,editor:r})=>{const n=b(u)==="own-box",s=h=>n?void 0:h;return p(f,{headNum:s(i(o,t.headNum,r)),headTitle:s(i(m,t.headTitle,r)),headDesc:s(i(c,t.headDesc,r)),omitHead:n,cards:g(a,x(),r),viewLabel:i(d,t.viewLabel,r),background:S(l,L.Series),editing:r?.isEditing})}};export{v as SeriesRender};
1
+ import{jsx as p}from"react/jsx-runtime";import S from"../../../../../components/Series.js";import{resolveSectionBackground as b}from"../../../../../../format/lib/content/section-background.js";import{sectionRootPad as g}from"../../../../content/section-own-pads.js";import{parseSectionHeadPlacement as L}from"../../../../../../format/lib/sections/section-head-placement.js";import{phRows as w,phHide as i}from"../../scaffold.js";import{SECTION_BG_BUILT_IN as x}from"../../../../../../format/lib/document/blocks/general/section-bg-built-in.js";import{say as e}from"../../../../../../format/lib/editor-words.js";import{SeriesMeta as C,SERIES_PH as t}from"../../../../../../format/lib/document/blocks/general/Series/meta.js";const N=()=>[{num:"01",since:e("Year"),title:e("Column *title.*"),desc:e("A short description of this recurring column."),entries:"0",entriesLabel:e("entries")},{num:"02",since:e("Year"),title:e("Column *title.*"),desc:e("A short description of this recurring column."),entries:"0",entriesLabel:e("entries")},{num:"03",since:e("Year"),title:e("Column *title.*"),desc:e("A short description of this recurring column."),entries:"0",entriesLabel:e("entries")}],k={...C,render:s=>{const{headNum:a,headTitle:d,headDesc:c,cards:m,viewLabel:l,background:u,headPlacement:h,editor:r}=s,n=L(h)==="own-box",o=f=>n?void 0:f;return p(S,{headNum:o(i(a,t.headNum,r)),headTitle:o(i(d,t.headTitle,r)),headDesc:o(i(c,t.headDesc,r)),omitHead:n,cards:w(m,N(),r),viewLabel:i(l,t.viewLabel,r),background:b(u,x.Series),editing:r?.isEditing,pad:g("Series",s)})}};export{k as SeriesRender};
@@ -1 +1 @@
1
- import{jsx as i}from"react/jsx-runtime";import s from"../../../../../components/Stats.js";import{resolveSectionBackground as n}from"../../../../../../format/lib/content/section-background.js";import{PH as e}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phRows as b,phHide as p}from"../../scaffold.js";import{SECTION_BG_BUILT_IN as S}from"../../../../../../format/lib/document/blocks/general/section-bg-built-in.js";import{StatsMeta as u}from"../../../../../../format/lib/document/blocks/general/Stats/meta.js";const c=[{value:"00",label:e.label},{value:"00",label:e.label},{value:"00",label:e.label},{value:"00",label:e.label}],B={...u,render:({items:a,contained:l,heading:o,columns:r,background:m,editor:t})=>i(s,{items:b(a,c,t),contained:l,heading:p(o,"By the *numbers*",t),columns:r,background:n(m,S.Stats),editing:t?.isEditing})};export{B as StatsRender};
1
+ import{jsx as m}from"react/jsx-runtime";import s from"../../../../../components/Stats.js";import{resolveSectionBackground as d}from"../../../../../../format/lib/content/section-background.js";import{sectionRootPad as c}from"../../../../content/section-own-pads.js";import{PH as t}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phRows as b,phHide as u}from"../../scaffold.js";import{SECTION_BG_BUILT_IN as S}from"../../../../../../format/lib/document/blocks/general/section-bg-built-in.js";import{StatsMeta as p}from"../../../../../../format/lib/document/blocks/general/Stats/meta.js";const f=[{value:"00",label:t.label},{value:"00",label:t.label},{value:"00",label:t.label},{value:"00",label:t.label}],x={...p,render:o=>{const{items:a,contained:r,heading:i,columns:l,background:n,editor:e}=o;return m(s,{items:b(a,f,e),contained:r,heading:u(i,"By the *numbers*",e),columns:l,background:d(n,S.Stats),editing:e?.isEditing,pad:c("Stats",o)})}};export{x as StatsRender};
@@ -1 +1 @@
1
- import{jsx as a}from"react/jsx-runtime";import s from"../../../../../components/Testimonials.js";import{parseSectionHeadPlacement as l}from"../../../../../../format/lib/sections/section-head-placement.js";import{parseSectionEyebrowLook as c}from"../../../../../../format/lib/sections/section-eyebrow-look.js";import{phRows as d,phHide as r}from"../../scaffold.js";import{say as o}from"../../../../../../format/lib/editor-words.js";import{TestimonialsMeta as u,TESTIMONIALS_PH as m}from"../../../../../../format/lib/document/blocks/general/Testimonials/meta.js";const h=()=>[{quote:o("A short customer quote goes here — replace it with a real testimonial from your customers."),name:o("Customer name"),role:o("Role · Location")},{quote:o("A second customer quote — what they loved, in a sentence or two."),name:o("Customer name"),role:o("Role · Location")},{quote:o("A third short quote to round out the row."),name:o("Customer name"),role:o("Role · Location")}],x={...u,render:e=>{const t=l(e.headPlacement)==="own-box",i=n=>t?void 0:n;return a(s,{look:c(e.eyebrowLook,"Testimonials"),eyebrow:i(r(e.eyebrow,m.eyebrow,e.editor)),title:i(r(e.title,m.title,e.editor)),omitHead:t,items:d(e.items,h(),e.editor),columns:e.columns,editing:e.editor?.isEditing})}};export{x as TestimonialsRender};
1
+ import{jsx as a}from"react/jsx-runtime";import s from"../../../../../components/Testimonials.js";import{sectionRootPad as l}from"../../../../content/section-own-pads.js";import{parseSectionHeadPlacement as d}from"../../../../../../format/lib/sections/section-head-placement.js";import{parseSectionEyebrowLook as c}from"../../../../../../format/lib/sections/section-eyebrow-look.js";import{phRows as u,phHide as m}from"../../scaffold.js";import{say as o}from"../../../../../../format/lib/editor-words.js";import{TestimonialsMeta as f,TESTIMONIALS_PH as r}from"../../../../../../format/lib/document/blocks/general/Testimonials/meta.js";const h=()=>[{quote:o("A short customer quote goes here — replace it with a real testimonial from your customers."),name:o("Customer name"),role:o("Role · Location")},{quote:o("A second customer quote — what they loved, in a sentence or two."),name:o("Customer name"),role:o("Role · Location")},{quote:o("A third short quote to round out the row."),name:o("Customer name"),role:o("Role · Location")}],S={...f,render:e=>{const t=d(e.headPlacement)==="own-box",i=n=>t?void 0:n;return a(s,{look:c(e.eyebrowLook,"Testimonials"),eyebrow:i(m(e.eyebrow,r.eyebrow,e.editor)),title:i(m(e.title,r.title,e.editor)),omitHead:t,items:u(e.items,h(),e.editor),columns:e.columns,editing:e.editor?.isEditing,pad:l("Testimonials",e)})}};export{S as TestimonialsRender};
@@ -1 +1 @@
1
- import{jsx as d}from"react/jsx-runtime";import f from"../../../../../components/TickerSection.js";import{loopDelayOf as l,loopSecondsOf as T,parseLoopDirection as S}from"../../../../../../format/lib/animation/index.js";import{phRows as j}from"../../scaffold.js";import{TickerMeta as k,TICKER_SCAFFOLD_ITEMS as x}from"../../../../../../format/lib/document/blocks/general/Ticker/meta.js";const g={...k,render:({items:r,tone:e,borders:i,size:s,separator:t,scrollDirection:p,speed:m,loopDuration:n,loopDelay:c,join:a,editor:o})=>d(f,{items:j(r,x,o),tone:e,borders:i,size:s,separator:t,scroll:S(p),seconds:T({loopDuration:n,speed:m}),delay:l({loopDelay:c}),join:a,editing:o?.isEditing})};export{g as TickerRender};
1
+ import{jsx as l}from"react/jsx-runtime";import f from"../../../../../components/TickerSection.js";import{loopDelayOf as D,loopSecondsOf as T,parseLoopDirection as j}from"../../../../../../format/lib/animation/index.js";import{sectionRootPad as k}from"../../../../content/section-own-pads.js";import{phRows as R}from"../../scaffold.js";import{TickerMeta as S,TICKER_SCAFFOLD_ITEMS as x}from"../../../../../../format/lib/document/blocks/general/Ticker/meta.js";const u={...S,render:o=>{const{items:e,tone:i,borders:t,size:s,separator:n,scrollDirection:p,speed:c,loopDuration:m,loopDelay:a,join:d,editor:r}=o;return l(f,{items:R(e,x,r),tone:i,borders:t,size:s,separator:n,scroll:j(p),seconds:T({loopDuration:m,speed:c}),delay:D({loopDelay:a}),join:d,editing:r?.isEditing,pad:k("Ticker",o)})}};export{u as TickerRender};
@@ -1 +1 @@
1
- import{phoneKey as E,readHidable as k}from"efficient-easel/draw";import{isNodeList as le,newId as de}from"efficient-easel/data";import{say as u}from"../../../../../format/lib/editor-words.js";import{cardColumns as ce}from"../../../../../format/lib/content/card-columns.js";import{resolveSectionBackground as pe,THEME_SECTION_BG as me}from"../../../../../format/lib/content/section-background.js";import{CardsMeta as he}from"../../../../../format/lib/document/blocks/general/Cards/meta.js";import{KeyFeaturesMeta as be}from"../../../../../format/lib/document/blocks/general/KeyFeatures/meta.js";import{finiteNumber as I}from"../../../../../format/lib/finite-number.js";import{nonEmptyString as x}from"../../../../../format/lib/non-empty-string.js";import{parseSectionEyebrowLook as ue}from"../../../../../format/lib/sections/section-eyebrow-look.js";import{hasWords as ye,headInOwnBox as ge}from"../../../sections/section-to-box.js";import{BOX_TYPE as a,CONTAINER_BLOCKS_SLOT as l}from"../../../../../format/lib/document/container-blocks.js";import{labelTextSeed as fe}from"../../../../../format/lib/document/text-seeds.js";import{LABEL_ONLY_CARD_FIELDS as B,rowFieldTextSeed as d}from"../../../../../format/lib/document/blocks/general/Cards/card-seed.js";import{CARDS_CELL as Ce,cardListCardSeed as Se,cardsGridLook as N,labelOnlyListCardSeed as F}from"../../../../../format/lib/document/blocks/general/Cards/card-list-seed.js";import{BOX_HIDE_WHEN_ROW_EMPTY as Pe,CARD_LIST_TYPE as we,CARD_TEMPLATE_SLOT as _e,cardKeyOf as H,cardListProps as Le,cardRow as W}from"../../../../../format/lib/content/card-template.js";import{bandAccent as Oe,bandProps as Ee,onBandPreset as ke,bandWrites as xe,DIM as T,DROP_COMMON as y,DROP_SIDE_PADDING as g,INNER_BOX as r,SAME_KEYS as f,SECTION_BOX as C,fillFrom as m,filledChip as Te,fillNoBoxHolds as Re,ownFill as Ae,TEXT as c,smallText as De,wrapperPad as S,wrapperPadKeys as P}from"./section-to-box-row-parts.js";import{EDITORIAL_LINE as Ie,headTree as M,SIMPLE_HEADING_LOOK as Be,token as p}from"./section-head-looks.js";import{boxPadding as Ne,labelStyle as Fe}from"../../../../../format/lib/document/seed-parts.js";import{SECTION_BG_BUILT_IN as He}from"../../../../../format/lib/document/blocks/general/section-bg-built-in.js";const h=(e,t,o,n)=>({sectionBorder:{top:e,right:t,bottom:o,left:n}}),v=e=>t=>ce(I(t.columns)??I(e.columns)),We="inline is the head the row draws; an own-box node is skipped (`skip`)",Me={kind:"text",key:"title",role:"heading",props:c,style:{textStyle:"heading-3",...Be}},K={top:120,bottom:120,topPhone:80,bottomPhone:80,topTablet:80,bottomTablet:80},w=e=>{const t=pe(typeof e.background=="string"?e.background:void 0,He.Series);return t&&t!=="transparent"?t:void 0},_=e=>w(e)===me,ve={...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},G={...r,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[E("share")]:"content"},Ke=e=>{const t=w(e)?1:2;return{...r,direction:"row",columns:4,columnsTablet:2,gap:t,gapPhone:t}},R={...Fe(12),letterSpacing:.22,lineHeight:1.5},j=e=>ye(e.viewLabel)&&!k(e.viewLabel).hidden,s=e=>k(e).text?.trim?.()??"",L=e=>Object.fromEntries(Object.entries(e).filter(([,t])=>x(t)!==void 0)),A=e=>e.map(([t,o,n])=>({key:t,label:o,...n?{multiline:!0}:{}})),Ge=A([["num","Number"],["since","Corner note"],["title","Card title"],["body","Card body",!0],["count","Count"],["countLabel","Count word"]]),je=A([["label","Label"],["value","Value"],["body","Card body",!0]]),b=(e,t,o,n,i,{reads:se=["cards"],keep:ae=[]}={})=>({kind:"group",name:e,props:t,parts:[{kind:"core",as:we,headless:!0,keep:ae,derive:{reads:se,props:O=>Le(n(O),o)},slots:(O,ie)=>({[_e]:[i(O,ie)]})}]}),X=e=>Array.isArray(e.cards)?e.cards:[],Y={top:76,bottom:76,topPhone:76,bottomPhone:76},V=e=>(Array.isArray(e.items)?e.items:[]).map(t=>L({title:s(t?.label),href:typeof t?.href=="string"?t.href.trim():""})).filter(t=>t.title!==void 0).map((t,o)=>({key:H(W(t),o),...t})),Xe=e=>V(e).some(t=>x(t.href)!==void 0),U=[{key:B.label,label:"Feature label"},{key:B.href,label:"Link",kind:"link"}],q=e=>ue(e.eyebrowLook,"KeyFeatures")==="filled",Ye={name:"Key Features",boxProps:(e,t)=>({...C,direction:"column",gap:44,gapPhone:32,...m("surface")(e,t),...h(1,0,1,0),...S(e,Y)}),box:[...f,...P(Y)],parts:[{kind:"group",name:"Heading",props:{...r,direction:"row",align:"end",gap:20,wrap:!0,share:"content",phoneRow:2,[E("share")]:"content"},parts:[{...Te("eyebrow"),when:q},{...De("eyebrow"),when:e=>!q(e)},Me]},b("Cards",e=>({...r,...N(v(be.defaultProps)(e))}),U,V,e=>F(Xe(e)),{reads:["items"]})],drop:{...y,...g,columns:'Box "Cards": its Columns and tablet Columns',eyebrowLook:"the Filled look is a Box in the main colour round the eyebrow Text; the plain look is the eyebrow Text"}},z={top:72,bottom:72,topPhone:72,bottomPhone:72},J=(e,t)=>({...Ce,...m("background")(e,t)}),Q=e=>{const t=v(he.defaultProps)(e);return{...r,...N(t)}},Ve=A([["title","Card title"],["body","Card body",!0]]),Z=e=>(Array.isArray(e.items)?e.items:[]).map((t,o)=>({key:typeof t?.key=="string"&&t.key?t.key:H(W(t),o),title:s(t?.title),body:s(t?.body)})),$=e=>{const t={},o={};for(const[n,i]of Object.entries(e.props??{}))n!=="id"&&(le(i)?o[n]=i.map($):t[n]=i);return{type:String(e.type),props:t,...Object.keys(o).length?{slots:o}:{}}},ee=(e,t)=>{const o=D(e)?F(Ue(e)):Se(),n=Array.isArray(e.template)?e.template.map($):[o],[i]=n;return n.length===1&&i.type===a?{...i,props:{...J(e,t),...i.props}}:{type:a,props:{...r,...J(e,t),name:"Card"},slots:{[l]:n}}},D=e=>e.cardStyle==="label-only",te=e=>Z(e).map((t,o)=>{const n=e.items[o]?.href;return L({key:t.key,title:t.title,href:typeof n=="string"?n.trim():""})}),Ue=e=>te(e).some(t=>x(t.href)!==void 0),oe=e=>Array.isArray(e.template)&&e.template.length===0,ne=["dataSource","dataSourceOptions","highlightedCard","highlightBadge"];function Ct(){const e=o=>({key:de("card"),title:u(o),body:u("A short line about this card.")}),t=[e("Card title one"),e("Card title two"),e("Card title three")];return{eyebrow:u("Label"),title:u("Section *heading.*"),items:t}}const qe={name:"Cards",ownBoxConverts:!0,boxProps:(e,t)=>({...C,direction:"column",gap:36,gapPhone:28,...m("surface")(e,t),...S(e,z)}),box:[...f,...P(z)],parts:[{...M("Cards"),when:e=>!ge(e)},{...b("Cards",Q,Ve,Z,ee,{reads:["items"],keep:ne}),when:e=>!oe(e)&&!D(e)},{...b("Cards",Q,U,te,ee,{reads:["items"],keep:ne}),when:e=>!oe(e)&&D(e)}],drop:{...y,...g,columns:'Box "Cards": its Columns and tablet Columns',cardStyle:"the Card list's template: the Cards card, or under Label only the Label only card (a cell Box, a Mark Box, the label Text)",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)"}},ze={name:"Recurring Columns",boxProps:(e,t)=>({...C,direction:"column",gap:60,gapPhone:60,...h(0,0,1,0),...Ie,..._(e)?Ee(e,t):{},...Ae(w(e),e,t),...S(e,K)}),box:[...f.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,t,o)=>_(t)?Oe(e,t,o):e],...P(K)],skip:e=>Re(w(e)),site:(e,t)=>_(e.props)?xe(e,t):[],parts:[M("Series"),b("Cards",Ke,Ge,e=>X(e).map(t=>L({num:s(t.num),since:s(t.since),title:s(t.title),body:s(t.desc),count:s(t.entries),countLabel:s(t.entriesLabel)})),(e,t)=>({type:a,props:{...ve,...m("background",(o,n)=>_(o)&&ke(o,n))(e,t),name:"Card"},slots:{[l]:[{type:a,props:{...r,name:"Words",gap:16,gapPhone:16},slots:{[l]:[{type:a,props:{...G,name:"Top"},slots:{[l]:[d("num",c,p("label",13),!0),d("since",c,p("label",13),!0)]}},d("title",{...c,tag:"h3"},{textStyle:"heading-3",...p("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}),d("body",T,{textStyle:"body-5",fontRole:"heading",...p("body",14),lineHeight:1.6})]}},{type:a,props:{...G,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...h(1,0,0,0),...j(e)?{}:{[Pe]:["count","countLabel"]}},slots:{[l]:[{type:a,props:{...r,name:"Count",direction:"row",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2,[E("share")]:"content"},slots:{[l]:[d("count",c,R),d("countLabel",T,R)]}},...j(e)?[{type:a,props:{...r,name:"View",maxWidthPhone:266},slots:{[l]:[{type:"Text",props:{...c,text:k(e.viewLabel).text,_partStyles:{text:{...fe()._partStyles.text,...R}}}}]}}]:[]]}}]}}))],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:{...y,...g,headPlacement:We}},re={top:60,bottom:60,topPhone:40,bottomPhone:40},Je={...r,direction:"row",columns:3,gap:40,gapPhone:16},Qe={...r,gap:8,gapPhone:8,...Ne(24),...h(1,1,1,1)},Ze={name:"Document Detail Cards",boxProps:e=>({...C,direction:"column",gap:40,gapPhone:16,...h(0,0,1,0),...S(e,re)}),box:[...f,...P(re)],parts:[b("Cards",Je,je,e=>X(e).map(t=>L({label:s(t.label),value:s(t.value),body:s(t.desc)})),(e,t)=>({type:a,props:{...Qe,...m("surface")(e,t),name:"Card"},slots:{[l]:[d("label",c,{...p("label",12),lineHeight:1.5},!0),{type:a,props:{...r,name:"Words",gap:14,gapPhone:14},slots:{[l]:[d("value",c,{textStyle:"heading-3",...p("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}),d("body",T,{textStyle:"body-5",fontRole:"accent",...p("body",14),italic:!0,lineHeight:1.5})]}}]}}))],drop:{...y,...g}},St={Cards:qe,KeyFeatures:Ye,Series:ze,DocMetaCards:Ze};export{St as CARDS_SECTION_TO_BOX,Ct as cardsPressStarter};
1
+ import{phoneKey as O,readHidable as k}from"efficient-easel/draw";import{isNodeList as le,newId as de}from"efficient-easel/data";import{say as y}from"../../../../../format/lib/editor-words.js";import{cardColumns as ce}from"../../../../../format/lib/content/card-columns.js";import{resolveSectionBackground as pe,THEME_SECTION_BG as me}from"../../../../../format/lib/content/section-background.js";import{CardsMeta as he}from"../../../../../format/lib/document/blocks/general/Cards/meta.js";import{KeyFeaturesMeta as ue}from"../../../../../format/lib/document/blocks/general/KeyFeatures/meta.js";import{finiteNumber as I}from"../../../../../format/lib/finite-number.js";import{nonEmptyString as x}from"../../../../../format/lib/non-empty-string.js";import{parseSectionEyebrowLook as ye}from"../../../../../format/lib/sections/section-eyebrow-look.js";import{hasWords as be,headInOwnBox as ge}from"../../../sections/section-to-box.js";import{BOX_TYPE as a,CONTAINER_BLOCKS_SLOT as l}from"../../../../../format/lib/document/container-blocks.js";import{labelTextSeed as fe}from"../../../../../format/lib/document/text-seeds.js";import{LABEL_ONLY_CARD_FIELDS as B,rowFieldTextSeed as d}from"../../../../../format/lib/document/blocks/general/Cards/card-seed.js";import{CARDS_CELL as Ce,cardListCardSeed as Se,cardsGridLook as N,labelOnlyListCardSeed as F}from"../../../../../format/lib/document/blocks/general/Cards/card-list-seed.js";import{BOX_HIDE_WHEN_ROW_EMPTY as _e,CARD_LIST_TYPE as we,CARD_TEMPLATE_SLOT as Pe,cardKeyOf as H,cardListProps as Ee,cardRow as W}from"../../../../../format/lib/content/card-template.js";import{bandAccent as Le,bandProps as Oe,onBandPreset as ke,bandWrites as xe,DIM as R,DROP_COMMON as b,DROP_SIDE_PADDING as g,INNER_BOX as n,SAME_KEYS as f,SECTION_BOX as C,fillFrom as m,filledChip as Re,fillNoBoxHolds as Te,ownFill as Ae,TEXT as c,smallText as De,wrapperPad as S,wrapperPadKeys as _}from"./section-to-box-row-parts.js";import{EDITORIAL_LINE as Ie,headTree as M,SIMPLE_HEADING_LOOK as Be,token as p}from"./section-head-looks.js";import{boxPadding as Ne,labelStyle as Fe}from"../../../../../format/lib/document/seed-parts.js";import{SECTION_BG_BUILT_IN as He}from"../../../../../format/lib/document/blocks/general/section-bg-built-in.js";import{CARDS_OWN as v,DOC_META_CARDS_OWN as K,KEY_FEATURES_OWN as G,SERIES_OWN as Y}from"../../../content/section-own-pads.js";const h=(e,t,o,r)=>({sectionBorder:{top:e,right:t,bottom:o,left:r}}),j=e=>t=>ce(I(t.columns)??I(e.columns)),We="inline is the head the row draws; an own-box node is skipped (`skip`)",Me={kind:"text",key:"title",role:"heading",props:c,style:{textStyle:"heading-3",...Be}},w=e=>{const t=pe(typeof e.background=="string"?e.background:void 0,He.Series);return t&&t!=="transparent"?t:void 0},P=e=>w(e)===me,ve={...n,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},X={...n,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[O("share")]:"content"},Ke=e=>{const t=w(e)?1:2;return{...n,direction:"row",columns:4,columnsTablet:2,gap:t,gapPhone:t}},T={...Fe(12),letterSpacing:.22,lineHeight:1.5},V=e=>be(e.viewLabel)&&!k(e.viewLabel).hidden,s=e=>k(e).text?.trim?.()??"",E=e=>Object.fromEntries(Object.entries(e).filter(([,t])=>x(t)!==void 0)),A=e=>e.map(([t,o,r])=>({key:t,label:o,...r?{multiline:!0}:{}})),Ge=A([["num","Number"],["since","Corner note"],["title","Card title"],["body","Card body",!0],["count","Count"],["countLabel","Count word"]]),Ye=A([["label","Label"],["value","Value"],["body","Card body",!0]]),u=(e,t,o,r,i,{reads:se=["cards"],keep:ae=[]}={})=>({kind:"group",name:e,props:t,parts:[{kind:"core",as:we,headless:!0,keep:ae,derive:{reads:se,props:L=>Ee(r(L),o)},slots:(L,ie)=>({[Pe]:[i(L,ie)]})}]}),U=e=>Array.isArray(e.cards)?e.cards:[],q=e=>(Array.isArray(e.items)?e.items:[]).map(t=>E({title:s(t?.label),href:typeof t?.href=="string"?t.href.trim():""})).filter(t=>t.title!==void 0).map((t,o)=>({key:H(W(t),o),...t})),je=e=>q(e).some(t=>x(t.href)!==void 0),z=[{key:B.label,label:"Feature label"},{key:B.href,label:"Link",kind:"link"}],J=e=>ye(e.eyebrowLook,"KeyFeatures")==="filled",Xe={name:"Key Features",boxProps:(e,t)=>({...C,direction:"column",gap:44,gapPhone:32,...m("surface")(e,t),...h(1,0,1,0),...S(e,G)}),box:[...f,..._(G)],parts:[{kind:"group",name:"Heading",props:{...n,direction:"row",align:"end",gap:20,wrap:!0,share:"content",phoneRow:2,[O("share")]:"content"},parts:[{...Re("eyebrow"),when:J},{...De("eyebrow"),when:e=>!J(e)},Me]},u("Cards",e=>({...n,...N(j(ue.defaultProps)(e))}),z,q,e=>F(je(e)),{reads:["items"]})],drop:{...b,...g,columns:'Box "Cards": its Columns and tablet Columns',eyebrowLook:"the Filled look is a Box in the main colour round the eyebrow Text; the plain look is the eyebrow Text"}},Q=(e,t)=>({...Ce,...m("background")(e,t)}),Z=e=>{const t=j(he.defaultProps)(e);return{...n,...N(t)}},Ve=A([["title","Card title"],["body","Card body",!0]]),$=e=>(Array.isArray(e.items)?e.items:[]).map((t,o)=>({key:typeof t?.key=="string"&&t.key?t.key:H(W(t),o),title:s(t?.title),body:s(t?.body)})),ee=e=>{const t={},o={};for(const[r,i]of Object.entries(e.props??{}))r!=="id"&&(le(i)?o[r]=i.map(ee):t[r]=i);return{type:String(e.type),props:t,...Object.keys(o).length?{slots:o}:{}}},te=(e,t)=>{const o=D(e)?F(Ue(e)):Se(),r=Array.isArray(e.template)?e.template.map(ee):[o],[i]=r;return r.length===1&&i.type===a?{...i,props:{...Q(e,t),...i.props}}:{type:a,props:{...n,...Q(e,t),name:"Card"},slots:{[l]:r}}},D=e=>e.cardStyle==="label-only",oe=e=>$(e).map((t,o)=>{const r=e.items[o]?.href;return E({key:t.key,title:t.title,href:typeof r=="string"?r.trim():""})}),Ue=e=>oe(e).some(t=>x(t.href)!==void 0),re=e=>Array.isArray(e.template)&&e.template.length===0,ne=["dataSource","dataSourceOptions","highlightedCard","highlightBadge"];function St(){const e=o=>({key:de("card"),title:y(o),body:y("A short line about this card.")}),t=[e("Card title one"),e("Card title two"),e("Card title three")];return{eyebrow:y("Label"),title:y("Section *heading.*"),items:t}}const qe={name:"Cards",ownBoxConverts:!0,boxProps:(e,t)=>({...C,direction:"column",gap:36,gapPhone:28,...m("surface")(e,t),...S(e,v)}),box:[...f,..._(v)],parts:[{...M("Cards"),when:e=>!ge(e)},{...u("Cards",Z,Ve,$,te,{reads:["items"],keep:ne}),when:e=>!re(e)&&!D(e)},{...u("Cards",Z,z,oe,te,{reads:["items"],keep:ne}),when:e=>!re(e)&&D(e)}],drop:{...b,...g,columns:'Box "Cards": its Columns and tablet Columns',cardStyle:"the Card list's template: the Cards card, or under Label only the Label only card (a cell Box, a Mark Box, the label Text)",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)"}},ze={name:"Recurring Columns",boxProps:(e,t)=>({...C,direction:"column",gap:60,gapPhone:60,...h(0,0,1,0),...Ie,...P(e)?Oe(e,t):{},...Ae(w(e),e,t),...S(e,Y)}),box:[...f.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,t,o)=>P(t)?Le(e,t,o):e],..._(Y)],skip:e=>Te(w(e)),site:(e,t)=>P(e.props)?xe(e,t):[],parts:[M("Series"),u("Cards",Ke,Ge,e=>U(e).map(t=>E({num:s(t.num),since:s(t.since),title:s(t.title),body:s(t.desc),count:s(t.entries),countLabel:s(t.entriesLabel)})),(e,t)=>({type:a,props:{...ve,...m("background",(o,r)=>P(o)&&ke(o,r))(e,t),name:"Card"},slots:{[l]:[{type:a,props:{...n,name:"Words",gap:16,gapPhone:16},slots:{[l]:[{type:a,props:{...X,name:"Top"},slots:{[l]:[d("num",c,p("label",13),!0),d("since",c,p("label",13),!0)]}},d("title",{...c,tag:"h3"},{textStyle:"heading-3",...p("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}),d("body",R,{textStyle:"body-5",fontRole:"heading",...p("body",14),lineHeight:1.6})]}},{type:a,props:{...X,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...h(1,0,0,0),...V(e)?{}:{[_e]:["count","countLabel"]}},slots:{[l]:[{type:a,props:{...n,name:"Count",direction:"row",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2,[O("share")]:"content"},slots:{[l]:[d("count",c,T),d("countLabel",R,T)]}},...V(e)?[{type:a,props:{...n,name:"View",maxWidthPhone:266},slots:{[l]:[{type:"Text",props:{...c,text:k(e.viewLabel).text,_partStyles:{text:{...fe()._partStyles.text,...T}}}}]}}]:[]]}}]}}))],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:{...b,...g,headPlacement:We}},Je={...n,direction:"row",columns:3,gap:40,gapPhone:16},Qe={...n,gap:8,gapPhone:8,...Ne(24),...h(1,1,1,1)},Ze={name:"Document Detail Cards",boxProps:e=>({...C,direction:"column",gap:40,gapPhone:16,...h(0,0,1,0),...S(e,K)}),box:[...f,..._(K)],parts:[u("Cards",Je,Ye,e=>U(e).map(t=>E({label:s(t.label),value:s(t.value),body:s(t.desc)})),(e,t)=>({type:a,props:{...Qe,...m("surface")(e,t),name:"Card"},slots:{[l]:[d("label",c,{...p("label",12),lineHeight:1.5},!0),{type:a,props:{...n,name:"Words",gap:14,gapPhone:14},slots:{[l]:[d("value",c,{textStyle:"heading-3",...p("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}),d("body",R,{textStyle:"body-5",fontRole:"accent",...p("body",14),italic:!0,lineHeight:1.5})]}}]}}))],drop:{...b,...g}},_t={Cards:qe,KeyFeatures:Xe,Series:ze,DocMetaCards:Ze};export{_t as CARDS_SECTION_TO_BOX,St as cardsPressStarter};
@@ -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{CELL_SPAN_KEYS as b}from"../../../../../format/lib/content/grid-span.js";import{STACK_BELOW_PROP as S}from"../../../content/box-stack-line.js";import{DIM as p,DROP_COMMON as f,INNER_BOX as e,SECTION_BOX as x,TEXT as r,smallText as a,wrapperPad as B,wrapperPadKeys as O}from"./section-to-box-row-parts.js";import{fluidToken as E,token as T}from"./section-head-looks.js";import{labelStyle as D}from"../../../../../format/lib/document/seed-parts.js";import{VIEW_HIDE_KEYS as I}from"../../../../../format/lib/content/view-hide-class.js";const c={top:80,bottom:80,topPhone:60,bottomPhone:60},d=18,l=18,m=8,u=10,i=t=>typeof t=="string"&&t.trim()!=="",h=t=>_(t.sections),w=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={...D(12),letterSpacing:.3,color:"accent",lineHeight:1.5},g={textStyle:"body-1",fontRole:"accent",...T("body",17)},C=[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",...E("headingMedium",28,3.5,44),case:"upper",weight:500,lineHeight:1.04,letterSpacing:-.025}}]}]},{kind:"list",key:"body",name:"Body",flat:!0,of:w,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:u},when:(t,o)=>o?.kind==="ul"}]}],A=900,N={name:"Document Text",boxProps:t=>({...x,direction:"row",gap:80,gapPhone:40,[S]:A,sectionBorder:{bottom:1},...B(t,c)}),box:["anchor","sectionAccent",...b,...I,...Object.values(P),...O(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:C}]}],reads:{tocTitle:"the Contents block's Heading"},drop:{...f,stickyTop:"the Contents block draws DocBody's default (120px); 0 live nodes store it"}},X={DocBody:N};export{X as DOCBODY_SECTION_TO_BOX};
1
+ import{parseBlocks as k,sectionAnchorIds as y,shownSections as _}from"../../../../components/DocBody.js";import{SECTION_WIDTH_KEYS as O}from"../../../../../format/lib/content/section-width.js";import{CELL_SPAN_KEYS as P}from"../../../../../format/lib/content/grid-span.js";import{STACK_BELOW_PROP as f}from"../../../content/box-stack-line.js";import{DIM as p,DROP_COMMON as B,INNER_BOX as o,SECTION_BOX as S,TEXT as r,smallText as a,wrapperPad as x,wrapperPadKeys as b}from"./section-to-box-row-parts.js";import{fluidToken as E,token as T}from"./section-head-looks.js";import{labelStyle as D}from"../../../../../format/lib/document/seed-parts.js";import{VIEW_HIDE_KEYS as C}from"../../../../../format/lib/content/view-hide-class.js";import{DOC_BODY_OWN as c}from"../../../content/section-own-pads.js";const d=18,l=18,m=8,I=10,i=t=>typeof t=="string"&&t.trim()!=="",g=t=>_(t.sections),u=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={...D(12),letterSpacing:.3,color:"accent",lineHeight:1.5},h={textStyle:"body-1",fontRole:"accent",...T("body",17)},w=[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",...E("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:{...h,lineHeight:1.7},when:(t,e)=>e?.kind==="p"},{kind:"text",key:"text",props:p,style:{...h,lineHeight:1.65,paragraphSpacing:I},when:(t,e)=>e?.kind==="ul"}]}],A=900,N={name:"Document Text",boxProps:t=>({...S,direction:"row",gap:80,gapPhone:40,[f]:A,sectionBorder:{bottom:1},...x(t,c)}),box:["anchor","sectionAccent",...P,...C,...Object.values(O),...b(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=>g(t),props:{...o,gap:d,gapPhone:d},item:(t,e,n)=>({props:{anchor:y(g(n))[e]??`section-${e+1}`}}),parts:w}]}],reads:{tocTitle:"the Contents block's Heading"},drop:{...B,stickyTop:"the Contents block draws DocBody's default (120px); 0 live nodes store it"}},F={DocBody:N};export{F as DOCBODY_SECTION_TO_BOX};
@@ -1 +1 @@
1
- import{SPLITTABLE_SECTIONS as B}from"../../../../../format/lib/sections/section-head-placement.js";import{SECTION_LABELS as N}from"../../../../../format/lib/document/section-catalog.js";import{SAME_KEYS as R,SECTION_BOX as I}from"./section-to-box-row-parts.js";import{SITE_SIDE as S,sideLengthAt as C}from"efficient-easel/screen/lib/content/length-units";import{EDITORIAL_LINE as L,HEAD_BELOW as f,headLookOf as u,headReads as w,headTree as D}from"./section-head-looks.js";import{finiteNumber as T}from"../../../../../format/lib/finite-number.js";import{CARD_TEMPLATE_SLOT as b}from"../../../../../format/lib/content/card-template.js";import{footprintCardSeed as k}from"../../../../../format/lib/document/blocks/general/Footprint/card-seed.js";import{faqCardSeed as H,faqRunStyleKeys as F}from"../../../../../format/lib/document/blocks/general/FAQ/card-seed.js";import{PROCESS_COLUMNS_SLOT as x,processColumnSeeds as y}from"../../../../../format/lib/document/blocks/general/ProcessSteps/column-seed.js";import{BOX_SIDE_SPACE_PROP as Y,BOX_SIDE_SPACE_SITE as K}from"../../../../../format/lib/content/box-side-space.js";import{INNER_BOX as j}from"../../../../../format/lib/document/seed-parts.js";import{SECTION_ACCENT_INHERIT as X}from"../../../../../format/lib/content/section-surface.js";import{ownEntry as _}from"../../../../../format/lib/own-entry.js";import{BAND_PAD_KEYS as E,BAND_PAD_UNIT_KEY as v,bandTopBottom as M}from"../../../content/section-padding.js";import{SECTION_PAD_INNER as Q,innerPaddingFallback as G}from"../../passes/section-padding.js";import{viewKeyAt as P}from"efficient-easel/draw";const U=["FAQ","Footprint","LongRead","ProcessSteps","RelatedProducts"],So=["Collections","Events","FitmentTable","GalleryB","ProductGrid","SpecTable"],p=(e,o)=>()=>({top:e,topPhone:o}),h=e=>o=>{const t=G(e),s={...o,[E.top]:M(o,t).top},r=d=>{const n=C(s,E,v,d,"top");return n?.unit==="px"?n.value:void 0},m=d=>T(o[P(E.top,d)])===void 0?void 0:r(d),a=m("tablet"),l=m("mobile");return{top:r("desktop")??t.top??0,...a!==void 0?{topTablet:a}:{},...l!==void 0?{topPhone:l}:{}}},W={Collections:p(120,70),Events:p(120,70),FAQ:p(120,70),GalleryB:p(120,70),FitmentTable:p(120,80),SpecTable:p(120,80),LongRead:p(120,80),RelatedProducts:p(0,0),Footprint:h("Footprint"),ProcessSteps:h("ProcessSteps"),ProductGrid:e=>({top:T(e.padTop)??120,topPhone:0})};function $(e,o={}){const t=_(B,e),s=_(W,e);if(!t||!s)throw new Error(`section-to-box-rows-head: "${e}" has no head row or no head room`);const r=t.padKey,m=D(e),a=w(e),l=t.headRows.filter(n=>![t.num,t.title,t.description,"linkText","linkHref"].includes(n)),d={...Object.fromEntries(l.filter(n=>!(n in a)).map(n=>[n,"a head setting no Header Box part reads (lib/document/blocks/general/section-head-looks `headReads`)"])),...o.drop};return{name:_(N,e)??e,boxProps:(n,c)=>{const i=s(n),O=o.roomBelow?{sectionPaddingBottom:o.roomBelow.bottom,sectionPaddingBottomPhone:o.roomBelow.bottomPhone}:{},A=typeof o.boxProps=="function"?o.boxProps(n,c):o.boxProps??{},g=u(e)==="editorial"?L:{};return{...I,direction:"column",gap:f[u(e)],sectionPaddingTop:i.top,...i.topTablet!==void 0?{sectionPaddingTopTablet:i.topTablet}:{},...i.topPhone!==void 0?{sectionPaddingTopPhone:i.topPhone}:{},...g,...O,...A}},box:[...R,...r?[[r,"sectionPaddingTop",(n,c)=>s(c).top]]:[]],parts:[m,...(()=>{const n=r&&Q.has(e)?{[P(r,"tablet")]:0,[P(r,"mobile")]:0}:{},c={...r?{[r]:0}:{},...n,...o.coreProps},i={kind:"core",keep:"rest",...Object.keys(c).length?{props:c}:{},...o.slots?{slots:o.slots}:{}};return[o.coreBox?{kind:"group",name:o.coreBox.name,props:o.coreBox.props,parts:[i]}:i]})(),...o.partsAfter??[]],...Object.keys(a).length?{reads:a}:{},...Object.keys(d).length?{drop:d}:{},...o.pressHeading?{pressKeepsEmpty:[t.title]}:{},...o.skip?{skip:o.skip}:{}}}const q={...j,direction:"accordion",rowStyle:"numbered"},z={sectionPaddingLeft:S,sectionPaddingRight:S},J={Footprint:{slots:{[b]:[k()]},pressHeading:!0},ProcessSteps:{slots:(e,o)=>o.press?{[x]:y().map(t=>({...t,props:{...t.props,...z}}))}:{},boxProps:{gapPhone:f.editorial}},FAQ:{slots:{[b]:[H()]},pressHeading:!0,coreBox:{name:"Questions",props:q},coreProps:{sectionAccent:X},roomBelow:{bottom:120,bottomPhone:70},boxProps:(e,o)=>o.press?{}:{[Y]:K},skip:e=>{const o=e._partStyles??{},t=F().filter(s=>o[s]!==void 0);return t.length?`held: its rows carry their own run style (_partStyles ${t.map(s=>`"${s}"`).join(", ")}), which the Box path does not draw the same`:void 0}}},fo=Object.fromEntries(U.map(e=>[e,$(e,_(J,e))]));export{q as FAQ_ROWS_BOX,J as HEAD_ONLY_CARD_SEEDS,fo as HEAD_ONLY_SECTION_TO_BOX,U as HEAD_ONLY_TYPES,So as HOST_ROW_HEAD_TYPES,$ as headOnlyRow};
1
+ import{SPLITTABLE_SECTIONS as R}from"../../../../../format/lib/sections/section-head-placement.js";import{SECTION_LABELS as I}from"../../../../../format/lib/document/section-catalog.js";import{SAME_KEYS as L,SECTION_BOX as C}from"./section-to-box-row-parts.js";import{SITE_SIDE as S,sideLengthAt as D}from"efficient-easel/screen/lib/content/length-units";import{EDITORIAL_LINE as w,HEAD_BELOW as f,headLookOf as h,headReads as k,headTree as H}from"./section-head-looks.js";import{finiteNumber as u}from"../../../../../format/lib/finite-number.js";import{CARD_TEMPLATE_SLOT as O}from"../../../../../format/lib/content/card-template.js";import{footprintCardSeed as F}from"../../../../../format/lib/document/blocks/general/Footprint/card-seed.js";import{faqCardSeed as x,faqRunStyleKeys as y}from"../../../../../format/lib/document/blocks/general/FAQ/card-seed.js";import{PROCESS_COLUMNS_SLOT as Y,processColumnSeeds as K}from"../../../../../format/lib/document/blocks/general/ProcessSteps/column-seed.js";import{BOX_SIDE_SPACE_PROP as j,BOX_SIDE_SPACE_SITE as Q}from"../../../../../format/lib/content/box-side-space.js";import{INNER_BOX as X}from"../../../../../format/lib/document/seed-parts.js";import{SECTION_ACCENT_INHERIT as v}from"../../../../../format/lib/content/section-surface.js";import{ownEntry as _}from"../../../../../format/lib/own-entry.js";import{BAND_PAD_KEYS as E,BAND_PAD_UNIT_KEY as G,bandTopBottom as M}from"../../../content/section-padding.js";import{SECTION_PAD_INNER as W,innerPaddingFallback as U}from"../../passes/section-padding.js";import{viewKeyAt as P}from"efficient-easel/draw";import{FAQ_OWN as T,LONG_READ_OWN as b}from"../../../content/section-own-pads.js";const $=["FAQ","Footprint","LongRead","ProcessSteps","RelatedProducts"],uo=["Collections","Events","FitmentTable","GalleryB","ProductGrid","SpecTable"],p=(t,o)=>()=>({top:t,topPhone:o}),A=t=>o=>{const e=U(t),s={...o,[E.top]:M(o,e).top},r=d=>{const n=D(s,E,G,d,"top");return n?.unit==="px"?n.value:void 0},m=d=>u(o[P(E.top,d)])===void 0?void 0:r(d),a=m("tablet"),l=m("mobile");return{top:r("desktop")??e.top??0,...a!==void 0?{topTablet:a}:{},...l!==void 0?{topPhone:l}:{}}},q={Collections:p(120,70),Events:p(120,70),FAQ:p(T.top,T.topPhone),GalleryB:p(120,70),FitmentTable:p(120,80),SpecTable:p(120,80),LongRead:p(b.top,b.topPhone),RelatedProducts:p(0,0),Footprint:A("Footprint"),ProcessSteps:A("ProcessSteps"),ProductGrid:t=>({top:u(t.padTop)??120,topPhone:0})};function z(t,o={}){const e=_(R,t),s=_(q,t);if(!e||!s)throw new Error(`section-to-box-rows-head: "${t}" has no head row or no head room`);const r=e.padKey,m=H(t),a=k(t),l=e.headRows.filter(n=>![e.num,e.title,e.description,"linkText","linkHref"].includes(n)),d={...Object.fromEntries(l.filter(n=>!(n in a)).map(n=>[n,"a head setting no Header Box part reads (lib/document/blocks/general/section-head-looks `headReads`)"])),...o.drop};return{name:_(I,t)??t,boxProps:(n,c)=>{const i=s(n),g=o.roomBelow?{sectionPaddingBottom:o.roomBelow.bottom,sectionPaddingBottomPhone:o.roomBelow.bottomPhone}:{},B=typeof o.boxProps=="function"?o.boxProps(n,c):o.boxProps??{},N=h(t)==="editorial"?w:{};return{...C,direction:"column",gap:f[h(t)],sectionPaddingTop:i.top,...i.topTablet!==void 0?{sectionPaddingTopTablet:i.topTablet}:{},...i.topPhone!==void 0?{sectionPaddingTopPhone:i.topPhone}:{},...N,...g,...B}},box:[...L,...r?[[r,"sectionPaddingTop",(n,c)=>s(c).top]]:[]],parts:[m,...(()=>{const n=r&&W.has(t)?{[P(r,"tablet")]:0,[P(r,"mobile")]:0}:{},c={...r?{[r]:0}:{},...n,...o.coreProps},i={kind:"core",keep:"rest",...Object.keys(c).length?{props:c}:{},...o.slots?{slots:o.slots}:{}};return[o.coreBox?{kind:"group",name:o.coreBox.name,props:o.coreBox.props,parts:[i]}:i]})(),...o.partsAfter??[]],...Object.keys(a).length?{reads:a}:{},...Object.keys(d).length?{drop:d}:{},...o.pressHeading?{pressKeepsEmpty:[e.title]}:{},...o.skip?{skip:o.skip}:{}}}const J={...X,direction:"accordion",rowStyle:"numbered"},V={sectionPaddingLeft:S,sectionPaddingRight:S},Z={Footprint:{slots:{[O]:[F()]},pressHeading:!0},ProcessSteps:{slots:(t,o)=>o.press?{[Y]:K().map(e=>({...e,props:{...e.props,...V}}))}:{},boxProps:{gapPhone:f.editorial}},FAQ:{slots:{[O]:[x()]},pressHeading:!0,coreBox:{name:"Questions",props:J},coreProps:{sectionAccent:v},roomBelow:{bottom:120,bottomPhone:70},boxProps:(t,o)=>o.press?{}:{[j]:Q},skip:t=>{const o=t._partStyles??{},e=y().filter(s=>o[s]!==void 0);return e.length?`held: its rows carry their own run style (_partStyles ${e.map(s=>`"${s}"`).join(", ")}), which the Box path does not draw the same`:void 0}}},Oo=Object.fromEntries($.map(t=>[t,z(t,_(Z,t))]));export{J as FAQ_ROWS_BOX,Z as HEAD_ONLY_CARD_SEEDS,Oo as HEAD_ONLY_SECTION_TO_BOX,$ as HEAD_ONLY_TYPES,uo as HOST_ROW_HEAD_TYPES,z as headOnlyRow};
@@ -1,2 +1,2 @@
1
- import{phoneKey as c}from"efficient-easel/draw";import{DIM as g,DROP_COMMON as d,DROP_SIDE_PADDING as h,INNER_BOX as o,SAME_KEYS as y,SECTION_BOX as m,TEXT as n,filledChip as k,surfaceAccent as i,wrapperPad as u,wrapperPadKeys as S}from"./section-to-box-row-parts.js";import{relaxedBodyLook as w,token as r}from"../../../../../format/lib/document/seed-parts.js";import{say as s}from"../../../../../format/lib/editor-words.js";import{loopSecondsOf as f}from"../../../../../format/lib/animation/loop.js";import{INTEGRATION_ROWS as b,dealRows as x,rowTurnSeconds as P}from"../../../../../format/lib/sections/integrations-rows.js";const l={top:76,bottom:76,topPhone:76,bottomPhone:76},A=e=>(Array.isArray(e.apps)?e.apps:[]).map(t=>t&&typeof t=="object"&&typeof t.text=="string"?t.text.trim():"").filter(Boolean),a=e=>x(A(e)),O=e=>f({loopDuration:P(e)}),N={kind:"group",name:"Header",props:{...o,align:"center",gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...o,direction:"row",justify:"center",phoneRow:2,[c("share")]:"content"},parts:[k("eyebrow")]},{kind:"text",key:"title",role:"heading",props:{...n,align:"center"},style:{textStyle:"heading-2",...r("headingMedium",40,30),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}},{kind:"text",key:"body",props:{...g,align:"center",maxWidth:568},style:w(16)}]},_=e=>({kind:"group",name:`Row ${e+1}`,when:t=>a(t)[e].length>0,props:t=>({...o,direction:"row",gap:12,gapPhone:12,loop:"scroll",...e%2===1?{scrollDirection:"right"}:{},loopDuration:O(a(t)[e].length)}),parts:[{kind:"block",type:"Logos",props:{contained:!1,headPlacement:"own-box",look:"chips",grayscale:!1},slot:"logos",parts:[{kind:"list",key:"apps",name:"Logo",flat:!0,of:t=>a(t)[e].map(p=>({alt:p})),parts:[{kind:"block",type:"LogoBlock",box:["alt"]}]}]}]}),I={kind:"group",name:"Stat",props:{...o,align:"center",gap:16,gapPhone:16},parts:[{kind:"group",name:"Figure",props:{...o,align:"center",gap:8,gapPhone:8},parts:[{kind:"text",key:"statValue",props:{...n,align:"center"},style:{textStyle:"heading-1",...r("headingLarge",64,46),weight:500,case:"upper",lineHeight:1,color:"accent"}},{kind:"text",key:"statLabel",props:{...n,align:"center"},style:{textStyle:"heading-3",...r("headingSmall",18),weight:500,case:"upper",letterSpacing:.06}}]},{kind:"text",key:"note",props:{...n,align:"center",maxWidth:428},style:{textStyle:"body-1",...r("label",14),lineHeight:1.625,color:"muted"}}]},D=[...y.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,t,p)=>i(e,p)],...S(l)],E={name:"Integrations",boxProps:(e,t)=>({...m,sectionAccent:i(e.sectionAccent??0,t),direction:"column",gap:48,gapPhone:48,sectionBorder:{top:1,bottom:1},...u(e,l)}),box:D,parts:[N,{kind:"group",name:"Rows",props:{...o,gap:12,gapPhone:12},parts:Array.from({length:b},(e,t)=>_(t))},I],pressKeepsEmpty:["body","statValue","statLabel","note"],reads:{apps:"a Logo block per app, dealt into the three Rows"},drop:{...d,...h}},H={Integrations:E},K=()=>({eyebrow:s("Integrations"),title:s(`Plays well with
1
+ import{phoneKey as c}from"efficient-easel/draw";import{DIM as g,DROP_COMMON as d,DROP_SIDE_PADDING as h,INNER_BOX as o,SAME_KEYS as y,SECTION_BOX as m,TEXT as r,filledChip as k,surfaceAccent as i,wrapperPad as u,wrapperPadKeys as S}from"./section-to-box-row-parts.js";import{relaxedBodyLook as f,token as n}from"../../../../../format/lib/document/seed-parts.js";import{say as s}from"../../../../../format/lib/editor-words.js";import{loopSecondsOf as w}from"../../../../../format/lib/animation/loop.js";import{INTEGRATION_ROWS as x,dealRows as b,rowTurnSeconds as A}from"../../../../../format/lib/sections/integrations-rows.js";import{INTEGRATIONS_OWN as l}from"../../../content/section-own-pads.js";const P=e=>(Array.isArray(e.apps)?e.apps:[]).map(t=>t&&typeof t=="object"&&typeof t.text=="string"?t.text.trim():"").filter(Boolean),p=e=>b(P(e)),O=e=>w({loopDuration:A(e)}),I={kind:"group",name:"Header",props:{...o,align:"center",gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...o,direction:"row",justify:"center",phoneRow:2,[c("share")]:"content"},parts:[k("eyebrow")]},{kind:"text",key:"title",role:"heading",props:{...r,align:"center"},style:{textStyle:"heading-2",...n("headingMedium",40,30),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}},{kind:"text",key:"body",props:{...g,align:"center",maxWidth:568},style:f(16)}]},N=e=>({kind:"group",name:`Row ${e+1}`,when:t=>p(t)[e].length>0,props:t=>({...o,direction:"row",gap:12,gapPhone:12,loop:"scroll",...e%2===1?{scrollDirection:"right"}:{},loopDuration:O(p(t)[e].length)}),parts:[{kind:"block",type:"Logos",props:{contained:!1,headPlacement:"own-box",look:"chips",grayscale:!1},slot:"logos",parts:[{kind:"list",key:"apps",name:"Logo",flat:!0,of:t=>p(t)[e].map(a=>({alt:a})),parts:[{kind:"block",type:"LogoBlock",box:["alt"]}]}]}]}),_={kind:"group",name:"Stat",props:{...o,align:"center",gap:16,gapPhone:16},parts:[{kind:"group",name:"Figure",props:{...o,align:"center",gap:8,gapPhone:8},parts:[{kind:"text",key:"statValue",props:{...r,align:"center"},style:{textStyle:"heading-1",...n("headingLarge",64,46),weight:500,case:"upper",lineHeight:1,color:"accent"}},{kind:"text",key:"statLabel",props:{...r,align:"center"},style:{textStyle:"heading-3",...n("headingSmall",18),weight:500,case:"upper",letterSpacing:.06}}]},{kind:"text",key:"note",props:{...r,align:"center",maxWidth:428},style:{textStyle:"body-1",...n("label",14),lineHeight:1.625,color:"muted"}}]},E=[...y.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,t,a)=>i(e,a)],...S(l)],R={name:"Integrations",boxProps:(e,t)=>({...m,sectionAccent:i(e.sectionAccent??0,t),direction:"column",gap:48,gapPhone:48,sectionBorder:{top:1,bottom:1},...u(e,l)}),box:E,parts:[I,{kind:"group",name:"Rows",props:{...o,gap:12,gapPhone:12},parts:Array.from({length:x},(e,t)=>N(t))},_],pressKeepsEmpty:["body","statValue","statLabel","note"],reads:{apps:"a Logo block per app, dealt into the three Rows"},drop:{...d,...h}},H={Integrations:R},K=()=>({eyebrow:s("Integrations"),title:s(`Plays well with
2
2
  *your favourite apps.*`),apps:["Shopify","Xero","Stripe","Mailchimp","Zapier","HubSpot","QuickBooks","PayPal","Google Analytics"].map(e=>({text:e}))});export{H as INTEGRATIONS_SECTION_TO_BOX,K as integrationsPressStarter};
@@ -1 +1 @@
1
- import{tabletKey as D}from"efficient-easel/draw";import{SECTION_WIDTH_KEYS as W}from"../../../../../format/lib/content/section-width.js";import{CELL_SPAN_KEYS as j}from"../../../../../format/lib/content/grid-span.js";import{SECTION_BOX_SLOT as G,SECTION_BOX_TYPE as K}from"../../../sections/section-to-box.js";import{BUTTON as k,DIM as i,DROP_COMMON as v,DROP_SIDE_PADDING as Y,INNER_BOX as o,SAME_KEYS as X,SECTION_BOX as f,SH_LINK as S,TEXT as p,bandAccent as $,bandIndex as z,bandPage as U,bandProps as P,bandWrites as F,smallText as c,wrapperPad as l}from"./section-to-box-row-parts.js";import{EDITORIAL_LINE as x,editorialHeadTree as V,token as d}from"./section-head-looks.js";import{boxPadding as m,labelStyle as q}from"../../../../../format/lib/document/seed-parts.js";import{readAnchorName as J}from"../../../../../format/lib/content/anchor-name.js";import{declaredBlockSource as T}from"../../../../../format/lib/content/block-sources.js";import{parseLocationTileShape as Q,splitLegacyRegion as _}from"../../../../../format/lib/content/contact.js";import{groupColumns as g}from"../../../../../format/lib/locations-grid.js";import{phoneHref as Z}from"../../../../../format/lib/links/phone-href.js";import{hasMapCoords as ee}from"../../../../../format/lib/map-styles.js";import{VIEW_HIDE_KEYS as te}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()||_(r(e.region)).state,O=e=>r(e.country).trim()||_(r(e.region)).country,E=e=>[B(e),O(e)].filter(Boolean).join(" · "),oe=e=>h(e).some(t=>r(t.photo).trim()!==""),ne=e=>h(e).some(t=>ee(Number(t.lat),Number(t.lng))),re=(e,t)=>h(e).filter(n=>s(n)===s(t)).length,ae=(e,t)=>re(e,t)===1?"wide":Q(e.imageShape),y={top:100,bottom:100,topPhone:60,bottomPhone:60},N=48,a=(e,t={})=>({...q(e),...t}),u={top:1,right:1,bottom:1,left:1},b={...o,direction:"row",share:"equal",gap:0},ie=e=>t=>t>g(t)?{...o,gap:0}:{...b,...t>1?{phoneRow:e}:{}},se=!0,pe={kind:"group",name:"Gallery",props:{...o,gap:20,...se?{_hidden:!0}:{}},when:oe,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:ae(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:ie(2),perRow:g,rowName:"Row",rowProps:{...b,phoneRow:2}}}]}]},ce={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)=>E(n)]),when:(e,t)=>E(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=>Z(r(e))??"#"]],when:(e,t)=>r(t?.phone).trim()!==""},{kind:"text",key:"hours",props:i,style:a(12,{letterSpacing:.18,lineHeight:1.7})}]},le={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)])]},de={kind:"group",name:"Map",props:{...o,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[le]},me={kind:"list",key:"locations",name:"City",props:(e,t)=>({...o,gap:0,justify:"between",sectionBorder:u,jumpHighlight:!0,sectionAccent:z(e,t)>=0?U(e.sectionAccent,t):-1}),item:(e,t)=>({props:{anchor:w(t)}}),parts:[ce,de],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),[D("columns")]:1})}},C=a(10,{letterSpacing:.25}),ge={kind:"block",type:K,props:{...o,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:ne,slot:G,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"}}}}]},I=(e,t)=>Object.fromEntries(t.filter(n=>e[n]!==void 0).map(n=>[n,e[n]])),H=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],M=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],L=e=>e.map(t=>[t,t,(n,R)=>l(R,y)[t]]),A=["sectionAccent","sectionAccent",$],he=[...j,...te,...Object.values(W)],ye={name:"City pictures",skip:e=>T(e)?`fed by the data source "${T(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",...x,...I(l(e,y),H),sectionPaddingBottom:N,sectionPaddingBottomPhone:N,...P(e,t)}),box:[...X.filter(e=>e!=="sectionAccent"&&e!=="anchor"),A,["anchor","anchor",e=>J(e).trim()?e:"studios"],...L(H)],parts:[V("sectionNumber","heading","tagline"),pe],also:[{name:"City maps",boxProps:(e,t)=>({...f,direction:"column",gap:40,sectionBorder:{bottom:1},...x,sectionPaddingTop:0,sectionPaddingTopPhone:0,...I(l(e,y),M),...P(e,t)}),box:[...he,A,...L(M)],parts:[me,ge]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:F,drop:{...v,...Y,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)"}},Ce={ContactLocations:ye};export{se as CITY_PHOTO_WALL_HIDDEN,Ce as LOCATIONS_SECTION_TO_BOX};
1
+ import{tabletKey as D}from"efficient-easel/draw";import{SECTION_WIDTH_KEYS as W}from"../../../../../format/lib/content/section-width.js";import{CELL_SPAN_KEYS as j}from"../../../../../format/lib/content/grid-span.js";import{SECTION_BOX_SLOT as G,SECTION_BOX_TYPE as K}from"../../../sections/section-to-box.js";import{BUTTON as k,DIM as i,DROP_COMMON as v,DROP_SIDE_PADDING as Y,INNER_BOX as o,SAME_KEYS as X,SECTION_BOX as f,SH_LINK as S,TEXT as p,bandAccent as $,bandIndex as z,bandPage as U,bandProps as P,bandWrites as F,smallText as c,wrapperPad as l}from"./section-to-box-row-parts.js";import{EDITORIAL_LINE as T,editorialHeadTree as V,token as d}from"./section-head-looks.js";import{boxPadding as m,labelStyle as q}from"../../../../../format/lib/document/seed-parts.js";import{readAnchorName as J}from"../../../../../format/lib/content/anchor-name.js";import{declaredBlockSource as _}from"../../../../../format/lib/content/block-sources.js";import{parseLocationTileShape as Q,splitLegacyRegion as x}from"../../../../../format/lib/content/contact.js";import{groupColumns as g}from"../../../../../format/lib/locations-grid.js";import{phoneHref as Z}from"../../../../../format/lib/links/phone-href.js";import{hasMapCoords as ee}from"../../../../../format/lib/map-styles.js";import{VIEW_HIDE_KEYS as te}from"../../../../../format/lib/content/view-hide-class.js";import{CONTACT_LOCATIONS_OWN as h}from"../../../content/section-own-pads.js";const r=e=>typeof e=="string"?e:e==null?"":String(e),y=e=>Array.isArray(e.locations)?e.locations.map(t=>t??{}):[],s=e=>r(e.group),O=e=>`loc-${e}`,w=e=>r(e.state).trim()||x(r(e.region)).state,B=e=>r(e.country).trim()||x(r(e.region)).country,E=e=>[w(e),B(e)].filter(Boolean).join(" · "),oe=e=>y(e).some(t=>r(t.photo).trim()!==""),ne=e=>y(e).some(t=>ee(Number(t.lat),Number(t.lng))),re=(e,t)=>y(e).filter(n=>s(n)===s(t)).length,ae=(e,t)=>re(e,t)===1?"wide":Q(e.imageShape),N=48,a=(e,t={})=>({...q(e),...t}),u={top:1,right:1,bottom:1,left:1},b={...o,direction:"row",share:"equal",gap:0},ie=e=>t=>t>g(t)?{...o,gap:0}:{...b,...t>1?{phoneRow:e}:{}},se=!0,pe={kind:"group",name:"Gallery",props:{...o,gap:20,...se?{_hidden:!0}:{}},when:oe,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:`#${O(t)}`,boxShape:ae(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:ie(2),perRow:g,rowName:"Row",rowProps:{...b,phoneRow:2}}}]}]},ce={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)=>E(n)]),when:(e,t)=>E(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=>Z(r(e))??"#"]],when:(e,t)=>r(t?.phone).trim()!==""},{kind:"text",key:"hours",props:i,style:a(12,{letterSpacing:.18,lineHeight:1.7})}]},le={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)=>w(n)]),...["region","country"].map(e=>[e,"country",(t,n)=>B(n)])]},de={kind:"group",name:"Map",props:{...o,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[le]},me={kind:"list",key:"locations",name:"City",props:(e,t)=>({...o,gap:0,justify:"between",sectionBorder:u,jumpHighlight:!0,sectionAccent:z(e,t)>=0?U(e.sectionAccent,t):-1}),item:(e,t)=>({props:{anchor:O(t)}}),parts:[ce,de],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),[D("columns")]:1})}},C=a(10,{letterSpacing:.25}),ge={kind:"block",type:K,props:{...o,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:ne,slot:G,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"}}}}]},I=(e,t)=>Object.fromEntries(t.filter(n=>e[n]!==void 0).map(n=>[n,e[n]])),A=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],H=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],L=e=>e.map(t=>[t,t,(n,R)=>l(R,h)[t]]),M=["sectionAccent","sectionAccent",$],he=[...j,...te,...Object.values(W)],ye={name:"City pictures",skip:e=>_(e)?`fed by the data source "${_(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",...T,...I(l(e,h),A),sectionPaddingBottom:N,sectionPaddingBottomPhone:N,...P(e,t)}),box:[...X.filter(e=>e!=="sectionAccent"&&e!=="anchor"),M,["anchor","anchor",e=>J(e).trim()?e:"studios"],...L(A)],parts:[V("sectionNumber","heading","tagline"),pe],also:[{name:"City maps",boxProps:(e,t)=>({...f,direction:"column",gap:40,sectionBorder:{bottom:1},...T,sectionPaddingTop:0,sectionPaddingTopPhone:0,...I(l(e,h),H),...P(e,t)}),box:[...he,M,...L(H)],parts:[me,ge]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:F,drop:{...v,...Y,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)"}},Ie={ContactLocations:ye};export{se as CITY_PHOTO_WALL_HIDDEN,Ie as LOCATIONS_SECTION_TO_BOX};
@@ -1 +1 @@
1
- import{hasWords as n}from"../../../sections/section-to-box.js";import{DIM as L,DROP_COMMON as g,DROP_SIDE_PADDING as h,INNER_BOX as r,SAME_KEYS as P,SECTION_BOX as f,TEXT as a,smallText as O,wrapperPad as i,wrapperPadKeys as _}from"./section-to-box-row-parts.js";import{finiteNumber as x}from"../../../../../format/lib/finite-number.js";import{markBoxProps as w,token as A}from"../../../../../format/lib/document/seed-parts.js";import{LOGOS_PH as R,logosScaffoldItems as B}from"../../../../../format/lib/document/blocks/general/Logos/meta.js";import{logosCardSeed as b}from"../../../../../format/lib/document/blocks/general/Logos/card-seed.js";import{PAYMENT_PH as N,paymentScaffoldAssurances as C,paymentScaffoldBadges as I}from"../../../../../format/lib/document/blocks/general/PaymentBadges/meta.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 k}from"../../../../../format/lib/content/card-template.js";import{BLOCK_ALIGN_BOX_WORD as M,legacyBlockAlignOf as D}from"../../../../../format/lib/content/block-align.js";import{FOOTER_PAYMENT_SEED as H}from"../../../../../format/lib/content/footer.js";import{CELL_SPAN_KEYS as K}from"../../../../../format/lib/content/grid-span.js";import{SECTION_ACCENT_INHERIT as X}from"../../../../../format/lib/content/section-surface.js";import{FOOTER_MARK_SIZES as v,FOOTER_TEXT_PX as z}from"../../../../../format/lib/document/box-footer.js";import{phoneKey as d,readHidable as F}from"efficient-easel/draw";import{parseOption as G}from"efficient-shell/format";const l={contained:!1},p=(o,e)=>({logos:[{kind:"list",key:o,name:"Logo",flat:!0,parts:[{kind:"block",type:"LogoBlock",box:["src",[e,"alt"]],when:(Z,m)=>n(m?.src)||n(m?.[e])}]}]}),c=o=>{const e=x(o.bandPadding)??40;return{top:e,bottom:e,topPhone:e,bottomPhone:e}},Y={...O("heading",{color:"labels",letterSpacing:.2}),props:{...a,align:"center"}},j={name:"Logos",boxProps:o=>({...f,direction:"column",gap:32,...i(o,c(o))}),box:[...P,..._(c),["bandPadding","sectionPaddingTop",(o,e)=>i(e,c(e)).sectionPaddingTop]],parts:[Y,{kind:"core",keep:["columns","logoHeight","grayscale"],rename:{logosPerRow:"columns"},props:l,slots:p("items","alt")}],drop:{...g,...h,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"}},W={kind:"group",name:"Mark",keepEmpty:!0,parts:[],props:w(4,"main",{sectionCorners:2})},E={top:24,bottom:24,topPhone:24,bottomPhone:24},U={name:"Payment Methods",boxProps:o=>({...f,direction:"column",...i(o,E)}),box:[...P,..._(E)],parts:[{kind:"group",name:"Methods",props:{...r,align:"center",gap:20,gapPhone:20,sectionBorder:{top:1,bottom:1},sectionPaddingTop:32,sectionPaddingBottom:32},parts:[{...O("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:{...l,look:"cards",grayscale:!1},slots:o=>({...p("badges","label"),...n(o[t])?{[k]:[b()]}:{}})},{kind:"group",name:"Reassurance",props:{...r,direction:"row",wrap:!0,justify:"center",gap:24,gapPhone:24,phoneRow:2,[d("share")]:"content"},parts:[{kind:"list",key:"assurances",name:"Line",of:o=>(Array.isArray(o.assurances)?o.assurances:[]).filter(e=>n(e?.text)),props:{...r,direction:"row",align:"center",gap:8,gapPhone:8,phoneRow:2,[d("share")]:"content"},item:o=>F(o.text).hidden?{props:{_hidden:!0}}:{},parts:[W,{kind:"text",key:"text",props:{...a,align:"center"},style:{...A("label",13),color:"labels",lineHeight:1.5}}]}]}]}],drop:{...g,...h,contained:"the Box draws the site frame now; the Logos block inside it fills the Box's column (`contained: false`)"}},S=o=>D(o.align)??"left",T=o=>G(["sm","md"],"sm",o.size),y=12,u={name:"Payment logos",boxProps:o=>({...r,direction:"row",wrap:!0,align:"center",justify:M[S(o)],gap:y,gapPhone:y,phoneRow:2,[d("share")]:"content"}),box:[...K],parts:[{kind:"text",key:"lead",props:L,styleFrom:o=>({size:z[T(o)],lineHeight:1.5})},{kind:"core",keep:[],as:"Logos",derive:{reads:[t,s],props:o=>({logoHeight:v[T(o)].mark,align:S(o),...n(o[t])?{[t]:o[t],...o[s]!==void 0?{[s]:o[s]}:{}}:{}})},props:{...l,look:"marks",grayscale:!1,sectionAccent:X},slots:o=>({...p("methods","label"),...n(o[t])?{[k]:[b()]}:{}})}],drop:{size:"read as the wall's Logo height (S 16, M 20) and the lead's size (the footer size table, 12 / 13)",align:"read as the Box's justify and the wall's own Alignment (start is left, end is right)",editing:"the editor's preview flag, never a stored setting: the editor tells every block it is editing"}},mo={Logos:j,PaymentBadges:U,FooterPayment:u,PaymentLogosBlock:u},go=()=>({heading:R.heading,items:B()}),ho=()=>({heading:N.heading,badges:I(),assurances:C()}),Po=()=>({...H,methods:[]});export{mo as LOGOS_SECTION_TO_BOX,Po as footerPaymentPressStarter,go as logosPressStarter,ho as paymentPressStarter};
1
+ import{hasWords as r}from"../../../sections/section-to-box.js";import{DIM as L,DROP_COMMON as m,DROP_SIDE_PADDING as h,INNER_BOX as n,SAME_KEYS as f,SECTION_BOX as P,TEXT as a,smallText as O,wrapperPad as i,wrapperPadKeys as _}from"./section-to-box-row-parts.js";import{PAYMENT_BADGES_OWN as k,logosBandOwn as l}from"../../../content/section-own-pads.js";import{markBoxProps as x,token as A}from"../../../../../format/lib/document/seed-parts.js";import{LOGOS_PH as B,logosScaffoldItems as w}from"../../../../../format/lib/document/blocks/general/Logos/meta.js";import{logosCardSeed as E}from"../../../../../format/lib/document/blocks/general/Logos/card-seed.js";import{PAYMENT_PH as R,paymentScaffoldAssurances as N,paymentScaffoldBadges as C}from"../../../../../format/lib/document/blocks/general/PaymentBadges/meta.js";import{BLOCK_SOURCE_OPTIONS_PROP as t,BLOCK_SOURCE_PROP as e}from"../../../../../format/lib/content/block-sources.js";import{CARD_TEMPLATE_SLOT as S}from"../../../../../format/lib/content/card-template.js";import{BLOCK_ALIGN_BOX_WORD as I,legacyBlockAlignOf as M}from"../../../../../format/lib/content/block-align.js";import{FOOTER_PAYMENT_SEED as D}from"../../../../../format/lib/content/footer.js";import{CELL_SPAN_KEYS as H}from"../../../../../format/lib/content/grid-span.js";import{SECTION_ACCENT_INHERIT as K}from"../../../../../format/lib/content/section-surface.js";import{FOOTER_MARK_SIZES as X,FOOTER_TEXT_PX as v}from"../../../../../format/lib/document/box-footer.js";import{phoneKey as d,readHidable as G}from"efficient-easel/draw";import{parseOption as z}from"efficient-shell/format";const p={contained:!1},c=(o,s)=>({logos:[{kind:"list",key:o,name:"Logo",flat:!0,parts:[{kind:"block",type:"LogoBlock",box:["src",[s,"alt"]],when:(U,g)=>r(g?.src)||r(g?.[s])}]}]}),F={...O("heading",{color:"labels",letterSpacing:.2}),props:{...a,align:"center"}},Y={name:"Logos",boxProps:o=>({...P,direction:"column",gap:32,...i(o,l(o))}),box:[...f,..._(l),["bandPadding","sectionPaddingTop",(o,s)=>i(s,l(s)).sectionPaddingTop]],parts:[F,{kind:"core",keep:["columns","logoHeight","grayscale"],rename:{logosPerRow:"columns"},props:p,slots:c("items","alt")}],drop:{...m,...h,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"}},j={kind:"group",name:"Mark",keepEmpty:!0,parts:[],props:x(4,"main",{sectionCorners:2})},W={name:"Payment Methods",boxProps:o=>({...P,direction:"column",...i(o,k)}),box:[...f,..._(k)],parts:[{kind:"group",name:"Methods",props:{...n,align:"center",gap:20,gapPhone:20,sectionBorder:{top:1,bottom:1},sectionPaddingTop:32,sectionPaddingBottom:32},parts:[{...O("heading",{color:"labels"}),props:{...a,align:"center"}},{kind:"core",keep:[],as:"Logos",derive:{reads:[e,t],props:o=>r(o[e])?{[e]:o[e],...o[t]!==void 0?{[t]:o[t]}:{}}:{}},props:{...p,look:"cards",grayscale:!1},slots:o=>({...c("badges","label"),...r(o[e])?{[S]:[E()]}:{}})},{kind:"group",name:"Reassurance",props:{...n,direction:"row",wrap:!0,justify:"center",gap:24,gapPhone:24,phoneRow:2,[d("share")]:"content"},parts:[{kind:"list",key:"assurances",name:"Line",of:o=>(Array.isArray(o.assurances)?o.assurances:[]).filter(s=>r(s?.text)),props:{...n,direction:"row",align:"center",gap:8,gapPhone:8,phoneRow:2,[d("share")]:"content"},item:o=>G(o.text).hidden?{props:{_hidden:!0}}:{},parts:[j,{kind:"text",key:"text",props:{...a,align:"center"},style:{...A("label",13),color:"labels",lineHeight:1.5}}]}]}]}],drop:{...m,...h,contained:"the Box draws the site frame now; the Logos block inside it fills the Box's column (`contained: false`)"}},T=o=>M(o.align)??"left",y=o=>z(["sm","md"],"sm",o.size),b=12,u={name:"Payment logos",boxProps:o=>({...n,direction:"row",wrap:!0,align:"center",justify:I[T(o)],gap:b,gapPhone:b,phoneRow:2,[d("share")]:"content"}),box:[...H],parts:[{kind:"text",key:"lead",props:L,styleFrom:o=>({size:v[y(o)],lineHeight:1.5})},{kind:"core",keep:[],as:"Logos",derive:{reads:[e,t],props:o=>({logoHeight:X[y(o)].mark,align:T(o),...r(o[e])?{[e]:o[e],...o[t]!==void 0?{[t]:o[t]}:{}}:{}})},props:{...p,look:"marks",grayscale:!1,sectionAccent:K},slots:o=>({...c("methods","label"),...r(o[e])?{[S]:[E()]}:{}})}],drop:{size:"read as the wall's Logo height (S 16, M 20) and the lead's size (the footer size table, 12 / 13)",align:"read as the Box's justify and the wall's own Alignment (start is left, end is right)",editing:"the editor's preview flag, never a stored setting: the editor tells every block it is editing"}},co={Logos:Y,PaymentBadges:W,FooterPayment:u,PaymentLogosBlock:u},go=()=>({heading:B.heading,items:w()}),mo=()=>({heading:R.heading,badges:C(),assurances:N()}),ho=()=>({...D,methods:[]});export{co as LOGOS_SECTION_TO_BOX,ho as footerPaymentPressStarter,go as logosPressStarter,mo as paymentPressStarter};
@@ -1 +1 @@
1
- import{hasWords as p}from"../../../sections/section-to-box.js";import{BLOCK_WIDTH_LIMIT as N}from"efficient-easel/draw";import{fluidToken as R,token as o}from"./section-head-looks.js";import{CRUMB_PAD as _,STRIP_BOX as C}from"../../../../../format/lib/sections/strip-shape.js";import{PH as i,phAccentAsMarks as W}from"../../../../../format/lib/document/blocks/placeholders.js";import{DOC_MASTHEAD_PH as d}from"../../../../../format/lib/document/blocks/general/DocMasthead/meta.js";import{PAGE_TITLE_LEVEL_PROP as U,pageTitleDemoted as f}from"../../../../../format/lib/document/one-h1.js";import{AUTO_COLUMN as s,BUTTON as v,DIM as G,DROP_COMMON as g,DROP_PAD_TOTALS as X,DROP_SIDE_PADDING as c,INNER_BOX as a,leadLine as S,RIGHT_WORDS as T,SAME_KEYS as h,SECTION_BOX as m,SH_LINK as K,smallText as r,TEXT as n,wrapperPad as b,wrapperPadKeys as u}from"./section-to-box-row-parts.js";const E={minWidth:N.min},w=(e,t,l)=>({...r(e,{...t,...T}),props:{...n,align:"right",...s,...l}}),I={top:1,bottom:0},k=(e,t,l,M)=>({kind:"group",name:e,props:{...a,sectionPaddingBottom:t,sectionPaddingBottomPhone:l},parts:[M]}),O={widthFit:"fill",...E},x={top:100,bottom:60,topPhone:60,bottomPhone:40},j={...o("label",13),letterSpacing:.22,lineHeight:1.8},B={textStyle:"heading-1",...R("headingLarge",56,8,128),case:"upper",weight:500,lineHeight:.88,letterSpacing:-.04},V=()=>({name:"Page Header",boxProps:e=>({...m,direction:"column",gap:0,sectionBorder:{bottom:1},...b(e,x)}),box:[...h,...u(x)],parts:[{kind:"group",name:"Header",props:{...a,direction:"row",align:"end",justify:"between",gap:40,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[k("Eyebrow",12,0,{...r("eyebrow",o("label",13)),props:{...n,...s}}),{kind:"text",key:"title",role:"heading",props:{...n,tag:"h1",...O},style:B,mark:"accentItalic",when:e=>!f(e)},{kind:"text",key:"title",role:"heading",props:{...n,tag:"h2",...O},style:B,mark:"accentItalic",when:f},{kind:"group",name:"Details",props:{...a,align:"stretch",gap:0,gapPhone:0,sectionPaddingBottom:12,sectionPaddingBottomPhone:0},parts:[{kind:"list",key:"meta",name:"Detail",flat:!0,parts:[S("label","value",j,s)]}]}]},{kind:"group",name:"Deck",props:{...a,maxWidth:760,sectionBorder:I,sectionPaddingTop:28},parts:[{kind:"text",key:"deck",props:G,style:{textStyle:"body-1",fontRole:"accent",...o("body",22,19),italic:!0,lineHeight:1.5}}]}],drop:{...g,...c,[U]:"read by the title part's `when`: 2 (set by lib/document/one-h1 on a later opener) makes the Text an h2, anything else an h1"}}),ne=()=>({eyebrow:d.eyebrow,title:W(d.title),deck:d.deck,meta:[{label:i.label,value:i.value},{label:i.label,value:i.value}]}),D={top:80,bottom:40,topPhone:60,bottomPhone:32},Y={...o("label",13),letterSpacing:.18,lineHeight:1.8},H={...o("label",13),letterSpacing:.22,lineHeight:1.9},F=()=>({name:"Issue Header",boxProps:e=>({...m,direction:"column",gap:0,sectionBorder:{bottom:1},...b(e,D)}),box:[...h,...u(D)],parts:[{kind:"group",name:"Top",props:{...a,direction:"row",align:"end",justify:"between",gap:60,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[k("Eyebrow",14,14,r("eyebrow",o("label",14))),{kind:"group",name:"Issue",props:{...a,align:"end",gap:0,gapPhone:0,sectionPaddingBottom:14},parts:[{kind:"list",key:"issueMeta",name:"Issue line",flat:!0,parts:[S("lead","rest",Y)]}]}]},{kind:"group",name:"Bottom",props:{...a,direction:"row",align:"start",justify:"between",gap:60,gapPhone:16,share:"content",sectionBorder:I,sectionPaddingTop:32},parts:[{kind:"text",key:"lead",props:{...n,maxWidth:720,...E},style:{textStyle:"body-1",fontRole:"heading3",...o("headingSmall",20),lineHeight:1.5,letterSpacing:-.005,paragraphSpacing:16}},{kind:"group",name:"In this issue",props:{...a,align:"stretch",gap:0},parts:[k("Heading",6,6,{kind:"text",key:"issueHeading",props:{...n,align:"right",...s},style:{textStyle:"body-1",fontRole:"heading",...o("body",18),weight:400,letterSpacing:-.01,lineHeight:1.9,...T}}),{kind:"group",name:"Lines",props:{...a,align:"stretch",gap:0},parts:[{kind:"list",key:"issueList",name:"Line",flat:!0,parts:[w("text",{color:"labels",...H})]}]},w("issueTotal",H)]}]}],drop:{...g,...c}}),P={color:"labels",...o("label",13),letterSpacing:.2},L=e=>(Array.isArray(e.items)?e.items:[]).filter(t=>t&&typeof t.label=="string"&&t.label.trim()!==""),y=(e,t)=>t!==void 0&&L(e).at(-1)===t,A=(e,t)=>t!==void 0&&L(e).includes(t),q=(e,t)=>A(e,t)&&!y(e,t)&&p(t?.href),z=()=>({name:"Breadcrumb",skip:e=>p(e.meta)?'a trailing note after "·" needs a second mark; none live':void 0,boxProps:e=>({...m,...C,wrap:"wrap",gap:16,gapPhone:16,separator:"slash",sectionBorder:{bottom:1},...b(e,_)}),box:[...h,...u(_)],parts:[{kind:"list",key:"items",name:"Crumb",flat:!0,parts:[{kind:"button",key:"label",href:"href",variant:"ghost",when:q,props:{...v,...K,icon:"none"},style:P},{...r("label",P),when:(e,t)=>A(e,t)&&!y(e,t)&&!p(t?.href)},{...r("label",{...P,color:"text"}),when:y}]}],drop:{...g,...c,meta:"a node that stores a note is skipped (`skip`); an empty one draws nothing",...X}}),re={DocMasthead:V(),Masthead:F(),Breadcrumb:z()};export{re as PAGE_HEADER_SECTION_TO_BOX,ne as pageHeaderPressStarter};
1
+ import{hasWords as p}from"../../../sections/section-to-box.js";import{BLOCK_WIDTH_LIMIT as N}from"efficient-easel/draw";import{fluidToken as R,token as a}from"./section-head-looks.js";import{CRUMB_PAD as _,STRIP_BOX as C}from"../../../../../format/lib/sections/strip-shape.js";import{PH as i,phAccentAsMarks as W}from"../../../../../format/lib/document/blocks/placeholders.js";import{DOC_MASTHEAD_PH as d}from"../../../../../format/lib/document/blocks/general/DocMasthead/meta.js";import{PAGE_TITLE_LEVEL_PROP as v,pageTitleDemoted as T}from"../../../../../format/lib/document/one-h1.js";import{AUTO_COLUMN as s,BUTTON as U,DIM as G,DROP_COMMON as g,DROP_PAD_TOTALS as X,DROP_SIDE_PADDING as c,INNER_BOX as o,leadLine as f,RIGHT_WORDS as S,SAME_KEYS as m,SECTION_BOX as h,SH_LINK as K,smallText as r,TEXT as n,wrapperPad as b,wrapperPadKeys as u}from"./section-to-box-row-parts.js";import{DOC_MASTHEAD_OWN as E,MASTHEAD_OWN as w}from"../../../content/section-own-pads.js";const O={minWidth:N.min},I=(e,t,l)=>({...r(e,{...t,...S}),props:{...n,align:"right",...s,...l}}),D={top:1,bottom:0},k=(e,t,l,M)=>({kind:"group",name:e,props:{...o,sectionPaddingBottom:t,sectionPaddingBottomPhone:l},parts:[M]}),x={widthFit:"fill",...O},j={...a("label",13),letterSpacing:.22,lineHeight:1.8},A={textStyle:"heading-1",...R("headingLarge",56,8,128),case:"upper",weight:500,lineHeight:.88,letterSpacing:-.04},V=()=>({name:"Page Header",boxProps:e=>({...h,direction:"column",gap:0,sectionBorder:{bottom:1},...b(e,E)}),box:[...m,...u(E)],parts:[{kind:"group",name:"Header",props:{...o,direction:"row",align:"end",justify:"between",gap:40,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[k("Eyebrow",12,0,{...r("eyebrow",a("label",13)),props:{...n,...s}}),{kind:"text",key:"title",role:"heading",props:{...n,tag:"h1",...x},style:A,mark:"accentItalic",when:e=>!T(e)},{kind:"text",key:"title",role:"heading",props:{...n,tag:"h2",...x},style:A,mark:"accentItalic",when:T},{kind:"group",name:"Details",props:{...o,align:"stretch",gap:0,gapPhone:0,sectionPaddingBottom:12,sectionPaddingBottomPhone:0},parts:[{kind:"list",key:"meta",name:"Detail",flat:!0,parts:[f("label","value",j,s)]}]}]},{kind:"group",name:"Deck",props:{...o,maxWidth:760,sectionBorder:D,sectionPaddingTop:28},parts:[{kind:"text",key:"deck",props:G,style:{textStyle:"body-1",fontRole:"accent",...a("body",22,19),italic:!0,lineHeight:1.5}}]}],drop:{...g,...c,[v]:"read by the title part's `when`: 2 (set by lib/document/one-h1 on a later opener) makes the Text an h2, anything else an h1"}}),re=()=>({eyebrow:d.eyebrow,title:W(d.title),deck:d.deck,meta:[{label:i.label,value:i.value},{label:i.label,value:i.value}]}),Y={...a("label",13),letterSpacing:.18,lineHeight:1.8},B={...a("label",13),letterSpacing:.22,lineHeight:1.9},F=()=>({name:"Issue Header",boxProps:e=>({...h,direction:"column",gap:0,sectionBorder:{bottom:1},...b(e,w)}),box:[...m,...u(w)],parts:[{kind:"group",name:"Top",props:{...o,direction:"row",align:"end",justify:"between",gap:60,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[k("Eyebrow",14,14,r("eyebrow",a("label",14))),{kind:"group",name:"Issue",props:{...o,align:"end",gap:0,gapPhone:0,sectionPaddingBottom:14},parts:[{kind:"list",key:"issueMeta",name:"Issue line",flat:!0,parts:[f("lead","rest",Y)]}]}]},{kind:"group",name:"Bottom",props:{...o,direction:"row",align:"start",justify:"between",gap:60,gapPhone:16,share:"content",sectionBorder:D,sectionPaddingTop:32},parts:[{kind:"text",key:"lead",props:{...n,maxWidth:720,...O},style:{textStyle:"body-1",fontRole:"heading3",...a("headingSmall",20),lineHeight:1.5,letterSpacing:-.005,paragraphSpacing:16}},{kind:"group",name:"In this issue",props:{...o,align:"stretch",gap:0},parts:[k("Heading",6,6,{kind:"text",key:"issueHeading",props:{...n,align:"right",...s},style:{textStyle:"body-1",fontRole:"heading",...a("body",18),weight:400,letterSpacing:-.01,lineHeight:1.9,...S}}),{kind:"group",name:"Lines",props:{...o,align:"stretch",gap:0},parts:[{kind:"list",key:"issueList",name:"Line",flat:!0,parts:[I("text",{color:"labels",...B})]}]},I("issueTotal",B)]}]}],drop:{...g,...c}}),y={color:"labels",...a("label",13),letterSpacing:.2},H=e=>(Array.isArray(e.items)?e.items:[]).filter(t=>t&&typeof t.label=="string"&&t.label.trim()!==""),P=(e,t)=>t!==void 0&&H(e).at(-1)===t,L=(e,t)=>t!==void 0&&H(e).includes(t),q=(e,t)=>L(e,t)&&!P(e,t)&&p(t?.href),z=()=>({name:"Breadcrumb",skip:e=>p(e.meta)?'a trailing note after "·" needs a second mark; none live':void 0,boxProps:e=>({...h,...C,wrap:"wrap",gap:16,gapPhone:16,separator:"slash",sectionBorder:{bottom:1},...b(e,_)}),box:[...m,...u(_)],parts:[{kind:"list",key:"items",name:"Crumb",flat:!0,parts:[{kind:"button",key:"label",href:"href",variant:"ghost",when:q,props:{...U,...K,icon:"none"},style:y},{...r("label",y),when:(e,t)=>L(e,t)&&!P(e,t)&&!p(t?.href)},{...r("label",{...y,color:"text"}),when:P}]}],drop:{...g,...c,meta:"a node that stores a note is skipped (`skip`); an empty one draws nothing",...X}}),ie={DocMasthead:V(),Masthead:F(),Breadcrumb:z()};export{ie as PAGE_HEADER_SECTION_TO_BOX,re as pageHeaderPressStarter};
@@ -1 +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};
1
+ import{DROP_COMMON as e,DROP_SIDE_PADDING as r,FOLLOW_THE_BOX as t,SAME_KEYS as n,SECTION_BOX as p,TEXT as c,smallText as m,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";import{COUNTDOWN_OWN as s,FEATURED_COVER_OWN as d}from"../../../content/section-own-pads.js";const E={...m("title",{..._(12),color:"muted"}),props:{...c,align:"center"}},N=()=>({name:"Countdown",boxProps:o=>({...p,direction:"column",align:"center",gap:16,gapPhone:16,...O(o,s)}),box:[...n,...a(s)],parts:[E,{kind:"core",keep:"rest",props:t}],pressKeepsEmpty:[...i],drop:{...e,...r}}),l=()=>({name:"Feature Banner",boxProps:o=>({...p,direction:"column",sectionBorder:{bottom:1},...O(o,d)}),box:[...n,...a(d)],parts:[{kind:"core",keep:"rest",props:t}],drop:{...e,...r}}),P={Countdown:N(),FeaturedCover:l()};export{P as PROMO_SECTION_TO_BOX};
@@ -1 +1 @@
1
- import{DIM as k,DROP_COMMON as r,DROP_SIDE_PADDING as n,FOLLOW_THE_BOX as s,INNER_BOX as o,SAME_KEYS as _,SECTION_BOX as g,TEXT as u,filledChip as y,smallText as P,surfaceAccent as a,wrapperPad as C,wrapperPadKeys as E}from"./section-to-box-row-parts.js";import{relaxedBodyLook as x,token as c}from"../../../../../format/lib/document/seed-parts.js";import{phoneKey as b}from"efficient-easel/draw";import{CHART_OWN_BOX_WORDS as S}from"../../../../../format/lib/document/blocks/general/Chart/meta.js";import{MOCKUP_OWN_BOX_WORDS as f}from"../../../../../format/lib/document/blocks/general/Mockup/meta.js";const i={top:76,bottom:76,topPhone:76,bottomPhone:76},d=()=>({kind:"group",name:"Words",props:{...o,gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...o,direction:"row",phoneRow:2,[b("share")]:"content"},parts:[y("eyebrow")]},{kind:"text",key:"title",role:"heading",props:u,style:{textStyle:"heading-2",...c("headingMedium",44,32),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}},{kind:"text",key:"body",props:{...k,maxWidth:435},style:x(16)}]}),m=e=>(t,p)=>({...g,sectionAccent:a(t.sectionAccent??0,p),direction:"row",align:"center",gap:56,gapPhone:56,share:e,sectionBorder:{top:1,bottom:1},...C(t,i)}),O=[..._.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,t,p)=>a(e,p)],...E(i)],w=()=>({name:"Chart",boxProps:m([42]),box:O,parts:[d(),{kind:"group",name:"Chart",props:{...o,gap:16,gapPhone:16},keepEmpty:!0,parts:[{kind:"core",keep:"rest",props:s},P("caption",{color:"muted",...c("label",10),letterSpacing:.14})]}],pressKeepsEmpty:[...S],drop:{...r,...n}}),h=e=>e.align==="left",l={kind:"group",name:"Card",keepEmpty:!0,props:o,parts:[{kind:"core",keep:"rest",props:s}]},A=()=>({name:"Mockup Card",boxProps:m("equal"),box:O,parts:[{...l,when:h},d(),{...l,when:e=>!h(e)}],pressKeepsEmpty:[...f],drop:{...r,...n}}),T={Chart:w(),Mockup:A()};export{T as PROOF_SECTION_TO_BOX};
1
+ import{DIM as k,DROP_COMMON as r,DROP_SIDE_PADDING as n,FOLLOW_THE_BOX as a,INNER_BOX as o,SAME_KEYS as _,SECTION_BOX as g,TEXT as u,filledChip as y,smallText as C,surfaceAccent as s,wrapperPad as E,wrapperPadKeys as P}from"./section-to-box-row-parts.js";import{relaxedBodyLook as x,token as c}from"../../../../../format/lib/document/seed-parts.js";import{phoneKey as f}from"efficient-easel/draw";import{CHART_OWN_BOX_WORDS as S}from"../../../../../format/lib/document/blocks/general/Chart/meta.js";import{MOCKUP_OWN_BOX_WORDS as w}from"../../../../../format/lib/document/blocks/general/Mockup/meta.js";import{PROOF_OWN as i}from"../../../content/section-own-pads.js";const d=()=>({kind:"group",name:"Words",props:{...o,gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...o,direction:"row",phoneRow:2,[f("share")]:"content"},parts:[y("eyebrow")]},{kind:"text",key:"title",role:"heading",props:u,style:{textStyle:"heading-2",...c("headingMedium",44,32),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}},{kind:"text",key:"body",props:{...k,maxWidth:435},style:x(16)}]}),m=e=>(t,p)=>({...g,sectionAccent:s(t.sectionAccent??0,p),direction:"row",align:"center",gap:56,gapPhone:56,share:e,sectionBorder:{top:1,bottom:1},...E(t,i)}),O=[..._.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,t,p)=>s(e,p)],...P(i)],A=()=>({name:"Chart",boxProps:m([42]),box:O,parts:[d(),{kind:"group",name:"Chart",props:{...o,gap:16,gapPhone:16},keepEmpty:!0,parts:[{kind:"core",keep:"rest",props:a},C("caption",{color:"muted",...c("label",10),letterSpacing:.14})]}],pressKeepsEmpty:[...S],drop:{...r,...n}}),l=e=>e.align==="left",h={kind:"group",name:"Card",keepEmpty:!0,props:o,parts:[{kind:"core",keep:"rest",props:a}]},B=()=>({name:"Mockup Card",boxProps:m("equal"),box:O,parts:[{...h,when:l},d(),{...h,when:e=>!l(e)}],pressKeepsEmpty:[...w],drop:{...r,...n}}),W={Chart:A(),Mockup:B()};export{W as PROOF_SECTION_TO_BOX};
@@ -1 +1 @@
1
- import{phoneKey as v}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 T,DROP_SIDE_PADDING as x,INNER_BOX as a,NUMBER_TEXT as m,SAME_KEYS as O,SECTION_BOX as P,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{EDITORIAL_LINE as V,fluidToken as J,headTree as Q,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 Z,CARD_TEMPLATE_SLOT as ee,cardListProps as te}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",...J("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),L={textStyle:"body-1",fontRole:"heading",...n("body",16),lineHeight:1.5,letterSpacing:-.01},C={color:"labels",...n("label",12),lineHeight:1.5,letterSpacing:.24},I={...a,direction:"row",align:"start",gap:32,gapPhone:32,share:"content",phoneRow:2,[v("share")]:"content"},N={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}),oe=(e,t)=>p(e)?G("background",(o,h)=>X(u(o),h))(e,t):{},re={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)=>({...P,direction:"column",gap:60,gapPhone:60,sectionBorder:{bottom:1},...V,...$(e,"StatsParagraph"),...p(e)?U(u(e),t):{}}),box:[...O.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:[Q("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,...oe(e,t)}),parts:[{...w,when:(e,t)=>!R(t)&&w.when(e,t)},{kind:"group",name:"Figure",props:I,when:(e,t)=>R(t),parts:[w,{kind:"text",key:"supSuffix",props:i,style:N}]},{kind:"group",name:"Words",props:{...a,gap:4,gapPhone:4},parts:[{kind:"text",key:"label",props:i,style:L},S("sub",C)]}]}]}],drop:{...T,...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"}},ae=new Set(["value","label",_]),F={top:48,bottom:48,topPhone:48,bottomPhone:48},se=e=>{const t=k(typeof e.background=="string"?e.background:void 0,E.Stats);return!!t&&t!=="transparent"},ne={name:"Stats",skip:e=>se(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=>!ae.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=>({...P,direction:"column",gap:24,gapPhone:24,...j(e,F)}),box:[...O,...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:{...T,...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"}},Te={StatsParagraph:re,Stats:ne};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 ie=[{key:"figure",label:"Figure"},{key:"superscript",label:"Superscript"},{key:"label",label:"Label"},{key:"body",label:"Text",multiline:!0}];function Oe(){const e=(t,o,h,D="")=>({key:K("stat"),figure:t,superscript:D,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 pe(e){return{type:d,props:{...a,name:"Card",...structuredClone(s[e].listCard)},slots:{[l]:[{type:d,props:{...I,name:"Figure"},slots:{[l]:[c("figure",m,B),c("superscript",i,N)]}},{type:d,props:{...a,name:"Words",gap:4,gapPhone:4},slots:{[l]:[c("label",{...i,widthFit:"fill"},L),c("body",{...i,widthFit:"fill"},C,!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:Z,props:te(e,ie),slots:{[ee]:[pe(t)]}}]}}}export{Te as STATS_SECTION_TO_BOX,A as figureWords,Pe as statsBoxSeed,xe as statsPressSeed,Oe 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 T,DROP_SIDE_PADDING as x,INNER_BOX as a,NUMBER_TEXT as m,SAME_KEYS as O,SECTION_BOX as P,TEXT as i,bandAccent as Y,bandProps as W,bandWrites as U,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{EDITORIAL_LINE as V,fluidToken as J,headTree as Q,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 Z,CARD_TEMPLATE_SLOT as ee,cardListProps as te}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";import{STATS_OWN as A}from"../../../content/section-own-pads.js";const w=e=>typeof e=="string"?e.trim():"";function B(e){const t=`${w(e.prefix)}${w(e.value)}`,o=w(e.suffix);return e.emphasizeAll===!0?t?`==_${t}_==`:"":`${t}${o?`==_${o}_==`:""}`}const R={textStyle:"heading-2",...J("headingMedium",56,7,96),weight:500,case:"none",lineHeight:.9,letterSpacing:-.04},b={kind:"block",type:"Text",props:{...m,_partStyles:{text:R}},box:[["value","text",(e,t)=>B(t)]],when:(e,t)=>t!==void 0&&typeof t.value=="string"&&B(t)!==""},L=e=>g(e?.supSuffix),N={textStyle:"body-1",fontRole:"heading",...n("body",16),lineHeight:1.5,letterSpacing:-.01},C={color:"labels",...n("label",12),lineHeight:1.5,letterSpacing:.24},I={...a,direction:"row",align:"start",gap:32,gapPhone:32,share:"content",phoneRow:2,[D("share")]:"content"},F={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}),oe=(e,t)=>p(e)?G("background",(o,h)=>X(u(o),h))(e,t):{},re={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)=>({...P,direction:"column",gap:60,gapPhone:60,sectionBorder:{bottom:1},...V,...$(e,"StatsParagraph"),...p(e)?W(u(e),t):{}}),box:[...O.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)?U({props:u(e.props)},t):[],parts:[Q("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,...oe(e,t)}),parts:[{...b,when:(e,t)=>!L(t)&&b.when(e,t)},{kind:"group",name:"Figure",props:I,when:(e,t)=>L(t),parts:[b,{kind:"text",key:"supSuffix",props:i,style:F}]},{kind:"group",name:"Words",props:{...a,gap:4,gapPhone:4},parts:[{kind:"text",key:"label",props:i,style:N},S("sub",C)]}]}]}],drop:{...T,...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"}},ae=new Set(["value","label",_]),se=e=>{const t=k(typeof e.background=="string"?e.background:void 0,E.Stats);return!!t&&t!=="transparent"},ne={name:"Stats",skip:e=>se(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=>!ae.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=>({...P,direction:"column",gap:24,gapPhone:24,...j(e,A)}),box:[...O,...z(A)],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:{...T,...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"}},xe={StatsParagraph:re,Stats:ne};function Oe(){return{eyebrow:r("By the numbers"),title:r("What we count."),desc:r("A few numbers that matter to us."),stats:[],background:"transparent"}}const ie=[{key:"figure",label:"Figure"},{key:"superscript",label:"Superscript"},{key:"label",label:"Label"},{key:"body",label:"Text",multiline:!0}];function Pe(){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 pe(e){return{type:d,props:{...a,name:"Card",...structuredClone(s[e].listCard)},slots:{[l]:[{type:d,props:{...I,name:"Figure"},slots:{[l]:[c("figure",m,R),c("superscript",i,F)]}},{type:d,props:{...a,name:"Words",gap:4,gapPhone:4},slots:{[l]:[c("label",{...i,widthFit:"fill"},N),c("body",{...i,widthFit:"fill"},C,!0)]}}]}}}function Ee(e,t,o=4){return{type:d,props:{...a,name:"Stats",direction:"row",columns:o,...structuredClone(s[t].items),[f]:t},slots:{[l]:[{type:Z,props:te(e,ie),slots:{[ee]:[pe(t)]}}]}}}export{xe as STATS_SECTION_TO_BOX,B as figureWords,Ee as statsBoxSeed,Oe as statsPressSeed,Pe as statsSeedRows};
@@ -1 +1 @@
1
- import{hasWords as D,registerSectionToBox as t}from"../../../sections/section-to-box.js";import{BUTTON as O,DIM as S,DROP_COMMON as s,DROP_SIDE_PADDING as P,INNER_BOX as o,leadLine as W,SAME_KEYS as d,SECTION_BOX as p,TEXT as l,innerPad as w,siteGutterOf as B,innerPadKeys as k,smallText as _,wrapperPad as b,wrapperPadKeys as u}from"./section-to-box-row-parts.js";import{CARDS_SECTION_TO_BOX as M}from"./section-to-box-rows-cards.js";import{storedUnit as E}from"../../../../../format/lib/content/css-length.js";import{finiteNumber as G}from"../../../../../format/lib/finite-number.js";import{STATS_SECTION_TO_BOX as U}from"./section-to-box-rows-stats.js";import{LOGOS_SECTION_TO_BOX as F}from"./section-to-box-rows-logos.js";import{STRIP_SECTION_TO_BOX as K}from"./section-to-box-rows-strip.js";import{TIMELINE_SECTION_TO_BOX as Y}from"./section-to-box-rows-timeline.js";import{LOCATIONS_SECTION_TO_BOX as j}from"./section-to-box-rows-locations.js";import{HEAD_ONLY_SECTION_TO_BOX as z}from"./section-to-box-rows-head.js";import{PAGE_HEADER_SECTION_TO_BOX as q}from"./section-to-box-rows-pageheader.js";import{TAB_BAR_SECTION_TO_BOX as J}from"./section-to-box-rows-tabbar.js";import{DOCBODY_SECTION_TO_BOX as Q}from"./section-to-box-rows-docbody.js";import{EDITORIAL_SECTION_TO_BOX as V}from"./section-to-box-rows-editorial.js";import{FORMS_SECTION_TO_BOX as Z}from"./section-to-box-rows-forms.js";import{CHECKOUT_SECTION_TO_BOX as $}from"./section-to-box-rows-checkout.js";import{PROOF_SECTION_TO_BOX as ee}from"./section-to-box-rows-proof.js";import{INTEGRATIONS_SECTION_TO_BOX as te}from"./section-to-box-rows-integrations.js";import{PROMO_SECTION_TO_BOX as oe}from"./section-to-box-rows-promo.js";import{FITMENT_SECTION_TO_BOX as ne}from"./section-to-box-rows-fitment.js";import{fluidToken as ie,headTree as x,token as i}from"./section-head-looks.js";import{CTA_PH as h,PH as re,phAccentAsMarks as m}from"../../../../../format/lib/document/blocks/placeholders.js";import{PROSE_PH as f}from"../../../../../format/lib/document/blocks/general/Prose/meta.js";import{PARAGRAPHS_A_PH as c}from"../../../../../format/lib/document/blocks/general/ParagraphsA/meta.js";import{BANNER_PH as ae}from"../../../../../format/lib/document/blocks/general/Banner/meta.js";import{TITLE_WITH_BUTTONS_PH as se,TITLE_WITH_BUTTONS_SCAFFOLD_BUTTONS as de}from"../../../../../format/lib/document/blocks/general/TitleWithButtons/meta.js";import{SECTION_HEADER_PH as a}from"../../../../../format/lib/document/blocks/general/SectionHeader/meta.js";import{INTRO_PH as y}from"../../../../../format/lib/document/blocks/general/IntroBleed/meta.js";import{boxPadding as pe,fillSlot as le}from"../../../../../format/lib/document/seed-parts.js";const N={top:72,bottom:72,topPhone:72,bottomPhone:72},he={name:"Editorial Text",boxProps:e=>({...p,direction:"column",gap:28,gapPhone:28,sectionBorder:{top:1},...b(e,N)}),box:[["topBorder","sectionBorder",e=>e===!1?void 0:{top:1}],...d,...u(N)],parts:[x("Prose"),{kind:"text",key:"body",props:S,style:{textStyle:"body-1",...i("body",16),lineHeight:1.7,paragraphSpacing:18}}],drop:{...s,...P,headPlacement:"needs a row per head placement: an own-box Prose draws no head (its words sit in a Section Header above it), the row always draws the head. 0 of 123 live nodes store it (the live export, 2026-10-24)"}},I={buttonPaddingTop:20,buttonPaddingBottom:20,buttonPaddingLeft:28,buttonPaddingRight:28},H=(e,n)=>n?.variant==="primary",A=(e,n)=>({kind:"list",key:"buttons",name:"Button",flat:!0,when:e,parts:[{kind:"button",key:"label",href:"href",when:H,variant:"primary",style:{letterSpacing:.3},props:{...O,...I,...n}},{kind:"button",key:"label",href:"href",when:(r,g)=>!H(r,g),variant:"ghost",style:{letterSpacing:.3},props:{...O,...I,...n}}]}),T=e=>D(e.title),me={name:"Call-to-Action Heading",boxProps:e=>({...p,direction:"row",align:"center",justify:T(e)?"between":"end",gap:60,gapPhone:60,share:"content",sectionBorder:{bottom:1},...w(e,"TitleWithButtons")}),box:[...d,...k("TitleWithButtons")],parts:[{kind:"group",name:"Title",props:{...o,maxWidth:1e3,widthFitPhone:"fill"},parts:[{kind:"text",key:"title",role:"heading",props:l,style:{textStyle:"heading-1",...ie("headingLarge",48,7,108),case:"upper",lineHeight:.94,letterSpacing:-.035},mark:"accentItalic"}]},{kind:"group",name:"Buttons",props:e=>({...o,gap:14,gapPhone:14,widthFitPhone:"fill",...T(e)?{minWidth:280,minWidthPhone:0}:{}}),parts:[A(T,{widthFit:"fill",iconPosition:"end"}),A(e=>!T(e),{})]}],drop:{...s,buttonsAlign:"moves the buttons only when there is no heading (4 of 128 live nodes), where the Box puts them at the end. 0 of 128 live nodes store it (the live export, 2026-10-24)",buttonsAlignPhone:"the phone's own side of `buttonsAlign`, read only with no heading; no old node stores it (it is new with the Phone view's Block alignment row), so nothing moves",buttonsAlignTablet:"the tablet's own side of `buttonsAlign`, read only with no heading; no old node stores it (it is new with the Tablet view's Block alignment row, 0 stored on the US sites 2026-11-05), so nothing moves"}};function ge(e,n){const r=B(n,{to:E(e.sectionPaddingUnit)}),g=B(n,{view:"phone",to:E(e.sectionPaddingUnitPhone),maxPx:20});return{sectionPaddingLeft:r,sectionPaddingRight:r,sectionPaddingLeftPhone:g,sectionPaddingRightPhone:g}}const R={top:40,bottom:64,topPhone:24,bottomPhone:36},ce={name:"Section Header",boxProps:(e,n)=>({...p,direction:"column",gap:0,...b(e,R),...ge(e,n)}),box:[...d,...u(R)],parts:[x("SectionHeader")],drop:{...s,...P,headStyle:"needs a row per head look: the row draws the standard look; the editorial, simple, statement, natural and essay looks are other layouts. 0 of 69 live nodes store it (the live export, 2026-10-24)",eyebrowLook:"read only by the simple, statement, natural and essay looks, which this row does not draw. 0 of 69 live nodes store it",rowGap:"read only by the natural look, which this row does not draw. 0 of 69 live nodes store it",descriptionSize:"read only by the natural look, which this row does not draw. 0 of 69 live nodes store it",numStyle:"Solid (the default; 4 of 69 live nodes store it) IS the eyebrow Text the row draws; Outlined (0 live) needs an outlined-number text look"}},C={...o,direction:"row",share:[67],gap:32},v={...o,sectionPaddingLeft:24,sectionPaddingLeftPhone:0},X=(e,n,r)=>({kind:"group",name:e,props:n,parts:[r]}),Te={name:"Lead Text",boxProps:e=>({...p,direction:"column",gap:40,gapPhone:40,sectionBorder:{bottom:1},...w(e,"ParagraphsA")}),box:[...d,...k("ParagraphsA")],parts:[{kind:"group",name:"Numbers",props:{...C,gapPhone:24,sectionBorder:{bottom:1},sectionPaddingBottom:40,sectionPaddingBottomPhone:40},parts:[{kind:"group",name:"Eyebrow",props:{...o,sectionPaddingTop:5,sectionPaddingBottom:1,sectionPaddingTopPhone:5,sectionPaddingBottomPhone:1},parts:[_("eyebrow",{color:"labels",...i("label",12),letterSpacing:.24})]},X("Stats column",o,{kind:"group",name:"Stats",props:{...v,gap:0,gapPhone:0},parts:[{kind:"list",key:"stats",name:"Stat",flat:!0,parts:[W("value","label",{...i("label",13),letterSpacing:.18,lineHeight:1.8})]}]})]},{kind:"group",name:"Words",props:{...C,gapPhone:28},parts:[{kind:"group",name:"Lead",props:o,parts:[{kind:"group",name:"Measure",props:{...o,maxWidth:780},parts:[{kind:"text",key:"lead",props:l,style:{textStyle:"heading-3",...i("headingSmall",22,20),weight:400,case:"none",lineHeight:1.45,letterSpacing:-.005}}]}]},X("Note column",{...o,justify:"end"},{kind:"group",name:"Founders",props:{...v,gap:8,gapPhone:8},parts:[{kind:"group",name:"Note",props:{...o,gap:6,gapPhone:6},parts:[{kind:"text",key:"foundersHeading",props:l,style:{textStyle:"body-1",fontRole:"heading",...i("body",18,16),weight:500,letterSpacing:-.01,lineHeight:1.7}},{kind:"text",key:"foundersBody",props:S,style:{textStyle:"body-5",fontRole:"heading",...i("body",14,12),lineHeight:1.7}}]},_("attribution",{...i("label",12,10),letterSpacing:.24,lineHeight:1.7})]})]}],drop:{...s}},L={top:24,bottom:24,topPhone:24,bottomPhone:24},Oe={name:"Banner",boxProps:e=>({...p,direction:"column",gap:0,...b(e,L)}),box:[...d,"contained",...u(L)],parts:[{kind:"group",name:"Card",keepEmpty:!0,props:{...o,gap:28,gapPhone:28,placement:"top-left",darken:60,darkenStyle:"even",sectionBorder:{width:1},...le("surface"),...pe(64,40,40,24)},box:[["imageSrc","bgImage"],["overlay","darken",e=>Math.min(Math.max(G(e)??60,0),100)]],parts:[{kind:"group",name:"Words",props:{...o,gap:20,gapPhone:20},parts:[_("eyebrow"),{kind:"text",key:"title",role:"heading",props:{...l,maxWidth:680},style:{weight:500,lineHeight:1.05,letterSpacing:-.03,case:"none",...i("headingMedium",44,32)}},{kind:"text",key:"body",props:{...l,maxWidth:680},style:{textStyle:"body-1",lineHeight:1.6,...i("body",16)}}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:O}]}],drop:{...s,...P}},Pe={Prose:he,TitleWithButtons:me,SectionHeader:ce,ParagraphsA:Te,Banner:Oe},qe={Prose:()=>({eyebrow:f.eyebrow,title:m(f.title),body:f.body}),TitleWithButtons:()=>({title:m(se.title),buttons:de.map(e=>({...e}))}),SectionHeader:()=>({num:a.num,title:m(a.title),description:a.description,linkText:a.linkText,linkHref:h.href}),ParagraphsA:()=>({eyebrow:c.eyebrow,lead:re.body,foundersHeading:c.foundersHeading,foundersBody:c.foundersBody,attribution:c.attribution}),Banner:()=>({...ae,ctaText:h.text,ctaHref:h.href}),ProcessSteps:()=>({num:a.num,title:m(a.title)}),IntroBleed:()=>({eyebrow:y.eyebrow,title:m(y.title),body:y.body,ctaText:h.text,ctaHref:h.href})};function Je(){t(Pe),t(U),t(F),t(M),t(K),t(Y),t(j),t(z),t(q),t(J),t(Q),t(V),t(Z),t($),t(ne),t(ee),t(te),t(oe)}export{Pe as GENERAL_SECTION_TO_BOX,qe as TEXT_PRESS_STARTERS,Je as registerGeneralSectionRows};
1
+ import{hasWords as W,registerSectionToBox as t}from"../../../sections/section-to-box.js";import{BUTTON as O,DIM as y,DROP_COMMON as s,DROP_SIDE_PADDING as _,INNER_BOX as o,leadLine as M,SAME_KEYS as d,SECTION_BOX as p,TEXT as l,innerPad as w,siteGutterOf as B,innerPadKeys as k,smallText as P,wrapperPad as f,wrapperPadKeys as u}from"./section-to-box-row-parts.js";import{CARDS_SECTION_TO_BOX as U}from"./section-to-box-rows-cards.js";import{SITE_SIDE as E}from"efficient-easel/screen/lib/content/length-units";import{storedUnit as x}from"../../../../../format/lib/content/css-length.js";import{finiteNumber as G}from"../../../../../format/lib/finite-number.js";import{STATS_SECTION_TO_BOX as F}from"./section-to-box-rows-stats.js";import{LOGOS_SECTION_TO_BOX as K}from"./section-to-box-rows-logos.js";import{STRIP_SECTION_TO_BOX as Y}from"./section-to-box-rows-strip.js";import{TIMELINE_SECTION_TO_BOX as j}from"./section-to-box-rows-timeline.js";import{LOCATIONS_SECTION_TO_BOX as z}from"./section-to-box-rows-locations.js";import{HEAD_ONLY_SECTION_TO_BOX as q}from"./section-to-box-rows-head.js";import{PAGE_HEADER_SECTION_TO_BOX as J}from"./section-to-box-rows-pageheader.js";import{TAB_BAR_SECTION_TO_BOX as Q}from"./section-to-box-rows-tabbar.js";import{DOCBODY_SECTION_TO_BOX as V}from"./section-to-box-rows-docbody.js";import{EDITORIAL_SECTION_TO_BOX as Z}from"./section-to-box-rows-editorial.js";import{FORMS_SECTION_TO_BOX as $}from"./section-to-box-rows-forms.js";import{CHECKOUT_SECTION_TO_BOX as ee}from"./section-to-box-rows-checkout.js";import{PROOF_SECTION_TO_BOX as te}from"./section-to-box-rows-proof.js";import{INTEGRATIONS_SECTION_TO_BOX as oe}from"./section-to-box-rows-integrations.js";import{PROMO_SECTION_TO_BOX as ne}from"./section-to-box-rows-promo.js";import{FITMENT_SECTION_TO_BOX as ie}from"./section-to-box-rows-fitment.js";import{fluidToken as re,headTree as N,token as i}from"./section-head-looks.js";import{CTA_PH as h,PH as ae,phAccentAsMarks as m}from"../../../../../format/lib/document/blocks/placeholders.js";import{PROSE_PH as b}from"../../../../../format/lib/document/blocks/general/Prose/meta.js";import{PARAGRAPHS_A_PH as T}from"../../../../../format/lib/document/blocks/general/ParagraphsA/meta.js";import{BANNER_PH as se}from"../../../../../format/lib/document/blocks/general/Banner/meta.js";import{TITLE_WITH_BUTTONS_PH as de,TITLE_WITH_BUTTONS_SCAFFOLD_BUTTONS as pe}from"../../../../../format/lib/document/blocks/general/TitleWithButtons/meta.js";import{SECTION_HEADER_PH as a}from"../../../../../format/lib/document/blocks/general/SectionHeader/meta.js";import{INTRO_PH as S}from"../../../../../format/lib/document/blocks/general/IntroBleed/meta.js";import{boxPadding as le,fillSlot as he}from"../../../../../format/lib/document/seed-parts.js";import{BANNER_OWN as I,PROSE_OWN as H,SECTION_HEADER_OWN as A}from"../../../content/section-own-pads.js";const me={name:"Editorial Text",boxProps:e=>({...p,direction:"column",gap:28,gapPhone:28,sectionBorder:{top:1},...f(e,H)}),box:[["topBorder","sectionBorder",e=>e===!1?void 0:{top:1}],...d,...u(H)],parts:[N("Prose"),{kind:"text",key:"body",props:y,style:{textStyle:"body-1",...i("body",16),lineHeight:1.7,paragraphSpacing:18}}],drop:{...s,..._,headPlacement:"needs a row per head placement: an own-box Prose draws no head (its words sit in a Section Header above it), the row always draws the head. 0 of 123 live nodes store it (the live export, 2026-10-24)"}},R={buttonPaddingTop:20,buttonPaddingBottom:20,buttonPaddingLeft:28,buttonPaddingRight:28},C=(e,n)=>n?.variant==="primary",v=(e,n)=>({kind:"list",key:"buttons",name:"Button",flat:!0,when:e,parts:[{kind:"button",key:"label",href:"href",when:C,variant:"primary",style:{letterSpacing:.3},props:{...O,...R,...n}},{kind:"button",key:"label",href:"href",when:(r,g)=>!C(r,g),variant:"ghost",style:{letterSpacing:.3},props:{...O,...R,...n}}]}),c=e=>W(e.title),ge={name:"Call-to-Action Heading",boxProps:e=>({...p,direction:"row",align:"center",justify:c(e)?"between":"end",gap:60,gapPhone:60,share:"content",sectionBorder:{bottom:1},...w(e,"TitleWithButtons")}),box:[...d,...k("TitleWithButtons")],parts:[{kind:"group",name:"Title",props:{...o,maxWidth:1e3,widthFitPhone:"fill"},parts:[{kind:"text",key:"title",role:"heading",props:l,style:{textStyle:"heading-1",...re("headingLarge",48,7,108),case:"upper",lineHeight:.94,letterSpacing:-.035},mark:"accentItalic"}]},{kind:"group",name:"Buttons",props:e=>({...o,gap:14,gapPhone:14,widthFitPhone:"fill",...c(e)?{minWidth:280,minWidthPhone:0}:{}}),parts:[v(c,{widthFit:"fill",iconPosition:"end"}),v(e=>!c(e),{})]}],drop:{...s,buttonsAlign:"moves the buttons only when there is no heading (4 of 128 live nodes), where the Box puts them at the end. 0 of 128 live nodes store it (the live export, 2026-10-24)",buttonsAlignPhone:"the phone's own side of `buttonsAlign`, read only with no heading; no old node stores it (it is new with the Phone view's Block alignment row), so nothing moves",buttonsAlignTablet:"the tablet's own side of `buttonsAlign`, read only with no heading; no old node stores it (it is new with the Tablet view's Block alignment row, 0 stored on the US sites 2026-11-05), so nothing moves"}};function Te(e,n){const r=B(n,{to:x(e.sectionPaddingUnitTablet??e.sectionPaddingUnit)}),g=B(n,{view:"phone",to:x(e.sectionPaddingUnitPhone),maxPx:20});return{sectionPaddingLeft:E,sectionPaddingRight:E,sectionPaddingLeftTablet:r,sectionPaddingRightTablet:r,sectionPaddingLeftPhone:g,sectionPaddingRightPhone:g}}const ce={name:"Section Header",boxProps:(e,n)=>({...p,direction:"column",gap:0,...f(e,A),...Te(e,n)}),box:[...d,...u(A)],parts:[N("SectionHeader")],drop:{...s,..._,headStyle:"needs a row per head look: the row draws the standard look; the editorial, simple, statement, natural and essay looks are other layouts. 0 of 69 live nodes store it (the live export, 2026-10-24)",eyebrowLook:"read only by the simple, statement, natural and essay looks, which this row does not draw. 0 of 69 live nodes store it",rowGap:"read only by the natural look, which this row does not draw. 0 of 69 live nodes store it",descriptionSize:"read only by the natural look, which this row does not draw. 0 of 69 live nodes store it",numStyle:"Solid (the default; 4 of 69 live nodes store it) IS the eyebrow Text the row draws; Outlined (0 live) needs an outlined-number text look"}},L={...o,direction:"row",share:[67],gap:32},X={...o,sectionPaddingLeft:24,sectionPaddingLeftPhone:0},D=(e,n,r)=>({kind:"group",name:e,props:n,parts:[r]}),Oe={name:"Lead Text",boxProps:e=>({...p,direction:"column",gap:40,gapPhone:40,sectionBorder:{bottom:1},...w(e,"ParagraphsA")}),box:[...d,...k("ParagraphsA")],parts:[{kind:"group",name:"Numbers",props:{...L,gapPhone:24,sectionBorder:{bottom:1},sectionPaddingBottom:40,sectionPaddingBottomPhone:40},parts:[{kind:"group",name:"Eyebrow",props:{...o,sectionPaddingTop:5,sectionPaddingBottom:1,sectionPaddingTopPhone:5,sectionPaddingBottomPhone:1},parts:[P("eyebrow",{color:"labels",...i("label",12),letterSpacing:.24})]},D("Stats column",o,{kind:"group",name:"Stats",props:{...X,gap:0,gapPhone:0},parts:[{kind:"list",key:"stats",name:"Stat",flat:!0,parts:[M("value","label",{...i("label",13),letterSpacing:.18,lineHeight:1.8})]}]})]},{kind:"group",name:"Words",props:{...L,gapPhone:28},parts:[{kind:"group",name:"Lead",props:o,parts:[{kind:"group",name:"Measure",props:{...o,maxWidth:780},parts:[{kind:"text",key:"lead",props:l,style:{textStyle:"heading-3",...i("headingSmall",22,20),weight:400,case:"none",lineHeight:1.45,letterSpacing:-.005}}]}]},D("Note column",{...o,justify:"end"},{kind:"group",name:"Founders",props:{...X,gap:8,gapPhone:8},parts:[{kind:"group",name:"Note",props:{...o,gap:6,gapPhone:6},parts:[{kind:"text",key:"foundersHeading",props:l,style:{textStyle:"body-1",fontRole:"heading",...i("body",18,16),weight:500,letterSpacing:-.01,lineHeight:1.7}},{kind:"text",key:"foundersBody",props:y,style:{textStyle:"body-5",fontRole:"heading",...i("body",14,12),lineHeight:1.7}}]},P("attribution",{...i("label",12,10),letterSpacing:.24,lineHeight:1.7})]})]}],drop:{...s}},_e={name:"Banner",boxProps:e=>({...p,direction:"column",gap:0,...f(e,I)}),box:[...d,"contained",...u(I)],parts:[{kind:"group",name:"Card",keepEmpty:!0,props:{...o,gap:28,gapPhone:28,placement:"top-left",darken:60,darkenStyle:"even",sectionBorder:{width:1},...he("surface"),...le(64,40,40,24)},box:[["imageSrc","bgImage"],["overlay","darken",e=>Math.min(Math.max(G(e)??60,0),100)]],parts:[{kind:"group",name:"Words",props:{...o,gap:20,gapPhone:20},parts:[P("eyebrow"),{kind:"text",key:"title",role:"heading",props:{...l,maxWidth:680},style:{weight:500,lineHeight:1.05,letterSpacing:-.03,case:"none",...i("headingMedium",44,32)}},{kind:"text",key:"body",props:{...l,maxWidth:680},style:{textStyle:"body-1",lineHeight:1.6,...i("body",16)}}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:O}]}],drop:{...s,..._}},Pe={Prose:me,TitleWithButtons:ge,SectionHeader:ce,ParagraphsA:Oe,Banner:_e},Ve={Prose:()=>({eyebrow:b.eyebrow,title:m(b.title),body:b.body}),TitleWithButtons:()=>({title:m(de.title),buttons:pe.map(e=>({...e}))}),SectionHeader:()=>({num:a.num,title:m(a.title),description:a.description,linkText:a.linkText,linkHref:h.href}),ParagraphsA:()=>({eyebrow:T.eyebrow,lead:ae.body,foundersHeading:T.foundersHeading,foundersBody:T.foundersBody,attribution:T.attribution}),Banner:()=>({...se,ctaText:h.text,ctaHref:h.href}),ProcessSteps:()=>({num:a.num,title:m(a.title)}),IntroBleed:()=>({eyebrow:S.eyebrow,title:m(S.title),body:S.body,ctaText:h.text,ctaHref:h.href})};function Ze(){t(Pe),t(F),t(K),t(U),t(Y),t(j),t(z),t(q),t(J),t(Q),t(V),t(Z),t($),t(ee),t(ie),t(te),t(oe),t(ne)}export{Pe as GENERAL_SECTION_TO_BOX,Ve as TEXT_PRESS_STARTERS,Ze as registerGeneralSectionRows};
@@ -1,6 +1,7 @@
1
1
  import { SECTION_CSS_SCOPE_ATTR } from "../../../format/lib/content/section-css.js";
2
+ import { SITE_CSS_SCOPE_ATTR } from "../../../format/lib/content/site-css.js";
2
3
  export declare const CUSTOM_HTML_SCOPE_ATTR = "data-sf-custom-html";
3
- export type CssScopeAttr = typeof CUSTOM_HTML_SCOPE_ATTR | typeof SECTION_CSS_SCOPE_ATTR;
4
+ export type CssScopeAttr = typeof CUSTOM_HTML_SCOPE_ATTR | typeof SECTION_CSS_SCOPE_ATTR | typeof SITE_CSS_SCOPE_ATTR;
4
5
  export declare function customHtmlIdPrefix(id: string): string;
5
6
  export declare function customHtmlScope(id: string, attr?: CssScopeAttr): string;
6
7
  export declare function scopeCustomCss(css: string, id: string, attr?: CssScopeAttr, ownIds?: ReadonlySet<string>): string;
@@ -6,8 +6,12 @@ export type SectionTextPartsProps = {
6
6
  partStyles?: PartStyles;
7
7
  children: ReactNode;
8
8
  };
9
+ export type SectionTextBridgeProps = SectionTextPartsProps & {
10
+ sizeCaps?: Readonly<Record<string, true>>;
11
+ };
9
12
  export type EditingBridges = {
10
- SectionTextParts?: ComponentType<SectionTextPartsProps>;
13
+ SectionTextParts?: ComponentType<SectionTextBridgeProps>;
11
14
  };
12
15
  export declare const EditingBridgesProvider: import("react").Provider<EditingBridges>;
16
+ export declare const BlockSizeCapsProvider: import("react").Provider<Readonly<Record<string, true>> | undefined>;
13
17
  export declare function SectionTextParts(props: SectionTextPartsProps): import("react").JSX.Element;
@@ -1 +1 @@
1
- "use client";import{jsx as r,Fragment as i}from"react/jsx-runtime";import{createContext as o,useContext as s}from"react";const n=o({}),x=n.Provider;function a(t){const{SectionTextParts:e}=s(n);return e?r(e,{...t}):r(i,{children:t.children})}export{x as EditingBridgesProvider,a as SectionTextParts};
1
+ "use client";import{jsx as r,Fragment as d}from"react/jsx-runtime";import{createContext as o,useContext as i}from"react";const n=o({}),C=n.Provider,s=o(void 0),g=s.Provider;function p(e){const{SectionTextParts:t}=i(n),c=i(s);return t?r(t,{...e,sizeCaps:c}):r(d,{children:e.children})}export{g as BlockSizeCapsProvider,C as EditingBridgesProvider,p as SectionTextParts};
@@ -174,7 +174,9 @@ export declare function partStyleSource<E extends {
174
174
  export declare function storedPartStyle(styles: PartStyles, styleKey: string): PartStyle;
175
175
  export declare function applyPartStyles(stamps: readonly StyledPartStamp[], styles: PartStyles, baseOf?: (element: StyledPartEl) => PartStyleBase, styleKeyOf?: (partKey: string) => string, isInline?: (element: StyledPartEl) => boolean, screen?: PartScreen, drawsStyle?: (partKey: string) => boolean, capsSize?: (partKey: string) => boolean): number;
176
176
  export declare function regionSheetStyle(style: PartStyle | undefined | null): PartStyle | null;
177
- export declare function regionCanvasDeclarations(style: PartStyle | undefined | null, screen: PartScreen): {
177
+ export declare function regionCanvasDeclarations(style: PartStyle | undefined | null, screen: PartScreen, options?: {
178
+ sizeCap?: boolean;
179
+ }): {
178
180
  fontFamily?: string;
179
181
  fontSize?: string;
180
182
  };