efficient-web-builder 67.4.0 → 67.5.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 (48) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/editor/lib/document/block-offer.d.ts +6 -0
  3. package/dist/editor/lib/document/block-offer.js +1 -1
  4. package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
  5. package/dist/editor/lib/document/blocks/general/Footprint/fields.js +1 -1
  6. package/dist/editor/lib/document/blocks/general/ParagraphsA/fields.js +1 -1
  7. package/dist/editor/lib/document/blocks/general/ProcessSteps/fields.js +1 -1
  8. package/dist/editor/lib/document/blocks/general/StatsParagraph/fields.js +1 -1
  9. package/dist/editor/lib/document/blocks/general/Timeline/fields.js +1 -1
  10. package/dist/editor/lib/document/blocks/general/TimelineTrack/fields.js +1 -1
  11. package/dist/editor/lib/document/blocks/general/TitleWithButtons/fields.js +1 -1
  12. package/dist/editor/lib/document/field-groups.js +1 -1
  13. package/dist/format/lib/content/accordion-row-style.d.ts +4 -1
  14. package/dist/format/lib/content/accordion-row-style.js +1 -1
  15. package/dist/format/lib/document/passes/types.d.ts +2 -0
  16. package/dist/render/components/BoxAccordionRow.d.ts +2 -1
  17. package/dist/render/components/BoxAccordionRow.js +1 -1
  18. package/dist/render/components/Flex.js +1 -1
  19. package/dist/render/components/Footprint.d.ts +3 -1
  20. package/dist/render/components/Footprint.js +1 -1
  21. package/dist/render/components/ParagraphsA.d.ts +3 -1
  22. package/dist/render/components/ParagraphsA.js +1 -1
  23. package/dist/render/components/ProcessSteps.d.ts +3 -1
  24. package/dist/render/components/ProcessSteps.js +1 -1
  25. package/dist/render/components/StatsParagraph.d.ts +3 -1
  26. package/dist/render/components/StatsParagraph.js +1 -1
  27. package/dist/render/components/Timeline.d.ts +3 -1
  28. package/dist/render/components/Timeline.js +1 -1
  29. package/dist/render/components/TimelineTrack.d.ts +3 -1
  30. package/dist/render/components/TimelineTrack.js +1 -1
  31. package/dist/render/components/TitleWithButtons.d.ts +3 -1
  32. package/dist/render/components/TitleWithButtons.js +1 -1
  33. package/dist/render/lib/content/section-padding.d.ts +20 -0
  34. package/dist/render/lib/content/section-padding.js +1 -1
  35. package/dist/render/lib/document/blocks/general/Footprint/render.js +1 -1
  36. package/dist/render/lib/document/blocks/general/ParagraphsA/render.js +1 -1
  37. package/dist/render/lib/document/blocks/general/ProcessSteps/render.js +1 -1
  38. package/dist/render/lib/document/blocks/general/StatsParagraph/render.js +1 -1
  39. package/dist/render/lib/document/blocks/general/Timeline/render.js +1 -1
  40. package/dist/render/lib/document/blocks/general/TimelineTrack/render.js +1 -1
  41. package/dist/render/lib/document/blocks/general/TitleWithButtons/render.js +1 -1
  42. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
  43. package/dist/render/lib/document/blocks/general/section-to-box-rows-head.js +1 -1
  44. package/dist/render/lib/document/passes/section-padding.d.ts +4 -0
  45. package/dist/render/lib/document/passes/section-padding.js +1 -1
  46. package/dist/render/lib/sections/section-to-box.d.ts +1 -0
  47. package/dist/render/lib/sections/section-to-box.js +1 -1
  48. package/package.json +1 -1
@@ -1 +1 @@
1
- "use client";import{jsx as t,jsxs as p}from"react/jsx-runtime";import{HideTaker as W}from"./ViewHideRoot.js";import{isWebAddress as q}from"../../format/lib/content/box-link.js";import{SiteLink as Q}from"../lib/site-runtime.js";import{useEffect as I,useMemo as X,useState as E}from"react";import{CardTemplateRows as j}from"./CardRowContext.js";import{footprintCardRow as F,footprintPins as Y,footprintSearchText as Z}from"../../format/lib/content/footprint.js";import{LIST_KEY_ATTR as J,LIST_ROW_ATTR as U,LIST_TEXT_ATTR as V}from"../../format/lib/content/list-query.js";import{parseListPosition as ee}from"../../format/lib/content/list-position.js";import{bucketByGroup as te,groupColsClass as le}from"../../format/lib/locations-grid.js";import re from"./EditorialSectionHead.js";import{LocationGroupHeader as ne}from"./LocationGroupHeader.js";import{renderGold as ae,renderHeadline as ie}from"./goldPhrases.js";import oe from"./PartStyledText.js";import{say as R}from"../../format/lib/editor-words.js";import se from"./DealerFinder.js";import me from"./ListSearchBox.js";import ce,{SIDE_MAP_CLASS as pe}from"./SideListLayout.js";import de from"./SiteMap.js";import{InsideSiteColumn as G}from"./SiteGutterFrame.js";const n={bodySmall:"text-[length:var(--size-body,10px)]",bodyLarge:"text-[length:var(--size-body,18px)]",labelSmall:"text-[length:var(--size-label,11px)]",labelLarge:"text-[length:var(--size-label,12px)]"},H=`absolute bottom-5 left-6 font-mono ${n.labelSmall} uppercase tracking-[0.24em] text-accent hover:underline`;function fe({sectionNumber:d="",heading:c="",tagline:x="",offices:r=[],mapTheme:b="auto",padTop:v,padBottom:S,editing:o,omitHead:L=!1,dealers:$=!1,search:s=!1,searchHint:f="",noMatchText:a="",listPosition:w="below",showDistance:u=!0,template:_,ownerId:g="",pressTitles:O}){const k=$===!0,N=ee(w),z=typeof v=="number"?v:120,B=typeof S=="number"?S:120,[y,h]=E(null),P=r.length===0&&!k&&!d&&!c&&!x;if(I(()=>{h(e=>e!==null&&e>=r.length?null:e)},[r]),P&&!o)return null;const C=te(r,e=>String(e.group??""),()=>""),D=(e,l)=>{const m=y===l,i=e.href&&e.linkLabel?{href:e.href,label:e.linkLabel}:null,T=p("button",{type:"button",onClick:()=>h(l),"aria-pressed":m,className:["flex flex-col gap-1.5 bg-bg px-6 py-5 text-left transition-colors outline outline-1 -outline-offset-1",m?"outline-accent":"outline-transparent hover:outline-line",i?"w-full pb-11":""].filter(Boolean).join(" "),children:[p("span",{className:`flex items-center gap-2.5 font-mono ${n.labelSmall} uppercase tracking-[0.28em]`,children:[e.hq&&t("span",{className:`border border-accent bg-accent px-1.5 py-0.5 ${n.bodySmall} text-bg`,children:"HQ"}),e.role&&t("span",{className:"text-accent",children:e.role})]}),e.city&&t("span",{className:`font-display ${n.bodyLarge} font-medium leading-[1.2] tracking-[-0.01em] text-fg`,children:t(oe,{value:e.city,children:e.city})}),e.country&&t("span",{className:`font-mono ${n.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:e.country}),e.address&&t("span",{className:`font-mono ${n.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:ae(e.address)})]},i?void 0:l);return i?p("div",{className:"relative flex",children:[T,q(i.href)?t(Q,{newTab:"auto",href:i.href,className:H,children:`→ ${i.label}`}):t("a",{href:i.href,className:H,children:`→ ${i.label}`})]},l):T},A=C.flatMap(e=>e.items),M=e=>t("div",{className:"mt-12 flex flex-col gap-8",children:C.map((l,m)=>p("div",{children:[l.key&&t(ne,{groupKey:l.key,count:l.items.length}),t("div",{className:["grid gap-[2px] bg-bg",le(l.items.length),l.items.length>2?"max-view-desktop:grid-cols-2 max-[700px]:grid-cols-1":l.items.length===2?"max-[700px]:grid-cols-1":""].join(" "),children:e(l)})]},l.key?`g:${l.key}`:`ungrouped:${m}`))});return t(W,{as:"section",className:"relative z-[2] bg-bg",children:p("div",{className:"mx-auto max-w-[var(--sf-site-width,1600px)] border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]",style:{paddingTop:z,paddingBottom:B},children:[!L&&(d||c||x)&&t(re,{num:d,title:c?ie(c):void 0,desc:x||void 0,spaceBelow:"mb-12"}),k?t(se,{mapLabel:c.replace(/[=*]/g,"").replace(/\s+/g," ").trim(),mapTheme:b,search:s,searchHint:f,noMatchText:a,listPosition:w,showDistance:u,editing:o,template:_,ownerId:g}):N!=="below"?t(ce,{position:N,attrs:{"data-footprint-list":N},head:s?t("div",{className:"mb-4",children:t(me,{hint:f,noMatchText:a,listKey:`${g}:offices`,editing:o})}):null,listAttrs:s?{[J]:`${g}:offices`}:void 0,list:t(G,{children:t(j,{ownerId:g,ownerType:"Footprint",Template:_,rows:r.map(F),states:r.map((e,l)=>y===l?{selected:!0}:void 0),actions:r.map((e,l)=>({press:()=>h(l)})),pressTitles:O,copyAttrs:e=>({[U]:"",[V]:Z(r[e.index])}),fallback:null,children:e=>e})}),map:t(K,{offices:r,mapLabel:c.replace(/[=*]/g,"").replace(/\s+/g," ").trim(),mapTheme:b,activeIndex:y,onSelect:h,editing:o,frame:`sf-card relative w-full overflow-hidden border border-line ${pe}`})}):t(K,{offices:r,mapLabel:c.replace(/[=*]/g,"").replace(/\s+/g," ").trim(),mapTheme:b,activeIndex:y,onSelect:h,editing:o}),!k&&N==="below"&&r.length>0&&t(j,{ownerId:g,ownerType:"Footprint",Template:_,rows:A.map(({item:e})=>F(e)),states:A.map(({index:e})=>y===e?{selected:!0}:void 0),actions:A.map(({index:e})=>({press:()=>h(e)})),fallback:M(e=>e.items.map(({item:l,index:m})=>D(l,m))),children:e=>{const l=e;let m=0;return t(G,{children:M(i=>{const T=l.slice(m,m+i.items.length);return m+=i.items.length,T})})}}),!k&&r.length===0&&o&&t("p",{className:`mt-8 font-mono ${n.labelLarge} uppercase tracking-[0.24em] text-fg-dim`,children:R("Add an office in the inspector")})]})})}function K({offices:d,mapLabel:c,mapTheme:x,activeIndex:r,onSelect:b,editing:v,frame:S}){const o=X(()=>Y(d),[d]),[L,$]=E(null),s=r===null?null:String(r),f=s!==null&&o.some(u=>u.key===s);if(I(()=>{s!==null&&f&&$(u=>({key:s,n:(u?.n??0)+1}))},[s,f]),o.length===0)return v?t("div",{className:"relative flex aspect-[16/9] w-full items-center justify-center overflow-hidden border border-line bg-bg px-6 text-center max-view-tablet:aspect-[4/5]",children:t("span",{className:`font-mono ${n.labelLarge} uppercase tracking-[0.24em] text-fg-dim`,children:R("Add office coordinates to plot the map")})}):null;const a=f&&r!==null?d[r]:null,w=a?p("div",{className:"flex items-start gap-3 border border-line bg-bg px-3.5 py-2.5 text-fg shadow-[0_8px_24px_rgba(0,0,0,.4)]",children:[p("div",{className:"min-w-0 flex-1",children:[p("div",{className:`flex items-center gap-2 font-mono ${n.labelSmall} uppercase tracking-[0.28em]`,children:[a.hq&&t("span",{className:`bg-accent px-1.5 py-px ${n.bodySmall} text-bg`,children:"HQ"}),a.role&&t("span",{className:"text-accent",children:a.role})]}),a.city&&t("div",{className:`mt-1.5 font-display ${n.bodyLarge} font-medium leading-[1.2] text-fg`,children:a.city}),a.country&&t("div",{className:`mt-1 font-mono ${n.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:a.country})]}),t("button",{type:"button",onClick:()=>b(null),"aria-label":"Close",className:"-mr-1 grid h-6 w-6 shrink-0 place-items-center text-fg-dim hover:text-fg",children:t("svg",{"aria-hidden":!0,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:t("path",{d:"M2 2l8 8M10 2l-8 8"})})})]}):null;return t(de,{pins:o,mapTheme:x,ariaLabel:c||"Offices",className:S??"sf-card relative aspect-[16/9] w-full overflow-hidden border border-line max-view-tablet:aspect-[4/5]",selectedKey:f?s:null,focus:L,onSelect:u=>b(Number(u)),card:w})}export{fe as default};
1
+ "use client";import{jsx as t,jsxs as f}from"react/jsx-runtime";import{bandPadAttrs as W}from"../lib/content/section-padding.js";import{innerPaddingFallback as q}from"../lib/document/passes/section-padding.js";import{HideTaker as Q}from"./ViewHideRoot.js";import{isWebAddress as X}from"../../format/lib/content/box-link.js";import{SiteLink as Y}from"../lib/site-runtime.js";import{useEffect as I,useMemo as Z,useState as j}from"react";import{CardTemplateRows as E}from"./CardRowContext.js";import{footprintCardRow as P,footprintPins as J,footprintSearchText as U}from"../../format/lib/content/footprint.js";import{LIST_KEY_ATTR as V,LIST_ROW_ATTR as ee,LIST_TEXT_ATTR as te}from"../../format/lib/content/list-query.js";import{parseListPosition as le}from"../../format/lib/content/list-position.js";import{bucketByGroup as re,groupColsClass as ae}from"../../format/lib/locations-grid.js";import ne from"./EditorialSectionHead.js";import{LocationGroupHeader as ie}from"./LocationGroupHeader.js";import{renderGold as oe,renderHeadline as se}from"./goldPhrases.js";import me from"./PartStyledText.js";import{say as R}from"../../format/lib/editor-words.js";import ce from"./DealerFinder.js";import de from"./ListSearchBox.js";import pe,{SIDE_MAP_CLASS as fe}from"./SideListLayout.js";import ue from"./SiteMap.js";import{InsideSiteColumn as B}from"./SiteGutterFrame.js";const a={bodySmall:"text-[length:var(--size-body,10px)]",bodyLarge:"text-[length:var(--size-body,18px)]",labelSmall:"text-[length:var(--size-label,11px)]",labelLarge:"text-[length:var(--size-label,12px)]"},G=`absolute bottom-5 left-6 font-mono ${a.labelSmall} uppercase tracking-[0.24em] text-accent hover:underline`;function be({sectionNumber:u="",heading:s="",tagline:x="",offices:r=[],mapTheme:b="auto",padTop:T,padBottom:L,bandPad:g,editing:m,omitHead:$=!1,dealers:c=!1,search:d=!1,searchHint:n="",noMatchText:S="",listPosition:p="below",showDistance:K=!0,template:_,ownerId:y="",pressTitles:O}){const k=c===!0,w=le(p),C=g??W({padTop:T,padBottom:L},q("Footprint")),[v,h]=j(null),z=r.length===0&&!k&&!u&&!s&&!x;if(I(()=>{h(e=>e!==null&&e>=r.length?null:e)},[r]),z&&!m)return null;const M=re(r,e=>String(e.group??""),()=>""),D=(e,l)=>{const o=v===l,i=e.href&&e.linkLabel?{href:e.href,label:e.linkLabel}:null,N=f("button",{type:"button",onClick:()=>h(l),"aria-pressed":o,className:["flex flex-col gap-1.5 bg-bg px-6 py-5 text-left transition-colors outline outline-1 -outline-offset-1",o?"outline-accent":"outline-transparent hover:outline-line",i?"w-full pb-11":""].filter(Boolean).join(" "),children:[f("span",{className:`flex items-center gap-2.5 font-mono ${a.labelSmall} uppercase tracking-[0.28em]`,children:[e.hq&&t("span",{className:`border border-accent bg-accent px-1.5 py-0.5 ${a.bodySmall} text-bg`,children:"HQ"}),e.role&&t("span",{className:"text-accent",children:e.role})]}),e.city&&t("span",{className:`font-display ${a.bodyLarge} font-medium leading-[1.2] tracking-[-0.01em] text-fg`,children:t(me,{value:e.city,children:e.city})}),e.country&&t("span",{className:`font-mono ${a.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:e.country}),e.address&&t("span",{className:`font-mono ${a.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:oe(e.address)})]},i?void 0:l);return i?f("div",{className:"relative flex",children:[N,X(i.href)?t(Y,{newTab:"auto",href:i.href,className:G,children:`→ ${i.label}`}):t("a",{href:i.href,className:G,children:`→ ${i.label}`})]},l):N},A=M.flatMap(e=>e.items),F=e=>t("div",{className:"mt-12 flex flex-col gap-8",children:M.map((l,o)=>f("div",{children:[l.key&&t(ie,{groupKey:l.key,count:l.items.length}),t("div",{className:["grid gap-[2px] bg-bg",ae(l.items.length),l.items.length>2?"max-view-desktop:grid-cols-2 max-[700px]:grid-cols-1":l.items.length===2?"max-[700px]:grid-cols-1":""].join(" "),children:e(l)})]},l.key?`g:${l.key}`:`ungrouped:${o}`))});return t(Q,{as:"section",className:"relative z-[2] bg-bg",children:f("div",{className:["mx-auto max-w-[var(--sf-site-width,1600px)] border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]",C.className].filter(Boolean).join(" "),style:C.style,children:[!$&&(u||s||x)&&t(ne,{num:u,title:s?se(s):void 0,desc:x||void 0,spaceBelow:"mb-12"}),k?t(ce,{mapLabel:s.replace(/[=*]/g,"").replace(/\s+/g," ").trim(),mapTheme:b,search:d,searchHint:n,noMatchText:S,listPosition:p,showDistance:K,editing:m,template:_,ownerId:y}):w!=="below"?t(pe,{position:w,attrs:{"data-footprint-list":w},head:d?t("div",{className:"mb-4",children:t(de,{hint:n,noMatchText:S,listKey:`${y}:offices`,editing:m})}):null,listAttrs:d?{[V]:`${y}:offices`}:void 0,list:t(B,{children:t(E,{ownerId:y,ownerType:"Footprint",Template:_,rows:r.map(P),states:r.map((e,l)=>v===l?{selected:!0}:void 0),actions:r.map((e,l)=>({press:()=>h(l)})),pressTitles:O,copyAttrs:e=>({[ee]:"",[te]:U(r[e.index])}),fallback:null,children:e=>e})}),map:t(H,{offices:r,mapLabel:s.replace(/[=*]/g,"").replace(/\s+/g," ").trim(),mapTheme:b,activeIndex:v,onSelect:h,editing:m,frame:`sf-card relative w-full overflow-hidden border border-line ${fe}`})}):t(H,{offices:r,mapLabel:s.replace(/[=*]/g,"").replace(/\s+/g," ").trim(),mapTheme:b,activeIndex:v,onSelect:h,editing:m}),!k&&w==="below"&&r.length>0&&t(E,{ownerId:y,ownerType:"Footprint",Template:_,rows:A.map(({item:e})=>P(e)),states:A.map(({index:e})=>v===e?{selected:!0}:void 0),actions:A.map(({index:e})=>({press:()=>h(e)})),fallback:F(e=>e.items.map(({item:l,index:o})=>D(l,o))),children:e=>{const l=e;let o=0;return t(B,{children:F(i=>{const N=l.slice(o,o+i.items.length);return o+=i.items.length,N})})}}),!k&&r.length===0&&m&&t("p",{className:`mt-8 font-mono ${a.labelLarge} uppercase tracking-[0.24em] text-fg-dim`,children:R("Add an office in the inspector")})]})})}function H({offices:u,mapLabel:s,mapTheme:x,activeIndex:r,onSelect:b,editing:T,frame:L}){const g=Z(()=>J(u),[u]),[m,$]=j(null),c=r===null?null:String(r),d=c!==null&&g.some(p=>p.key===c);if(I(()=>{c!==null&&d&&$(p=>({key:c,n:(p?.n??0)+1}))},[c,d]),g.length===0)return T?t("div",{className:"relative flex aspect-[16/9] w-full items-center justify-center overflow-hidden border border-line bg-bg px-6 text-center max-view-tablet:aspect-[4/5]",children:t("span",{className:`font-mono ${a.labelLarge} uppercase tracking-[0.24em] text-fg-dim`,children:R("Add office coordinates to plot the map")})}):null;const n=d&&r!==null?u[r]:null,S=n?f("div",{className:"flex items-start gap-3 border border-line bg-bg px-3.5 py-2.5 text-fg shadow-[0_8px_24px_rgba(0,0,0,.4)]",children:[f("div",{className:"min-w-0 flex-1",children:[f("div",{className:`flex items-center gap-2 font-mono ${a.labelSmall} uppercase tracking-[0.28em]`,children:[n.hq&&t("span",{className:`bg-accent px-1.5 py-px ${a.bodySmall} text-bg`,children:"HQ"}),n.role&&t("span",{className:"text-accent",children:n.role})]}),n.city&&t("div",{className:`mt-1.5 font-display ${a.bodyLarge} font-medium leading-[1.2] text-fg`,children:n.city}),n.country&&t("div",{className:`mt-1 font-mono ${a.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:n.country})]}),t("button",{type:"button",onClick:()=>b(null),"aria-label":"Close",className:"-mr-1 grid h-6 w-6 shrink-0 place-items-center text-fg-dim hover:text-fg",children:t("svg",{"aria-hidden":!0,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:t("path",{d:"M2 2l8 8M10 2l-8 8"})})})]}):null;return t(ue,{pins:g,mapTheme:x,ariaLabel:s||"Offices",className:L??"sf-card relative aspect-[16/9] w-full overflow-hidden border border-line max-view-tablet:aspect-[4/5]",selectedKey:d?c:null,focus:m,onSelect:p=>b(Number(p)),card:S})}export{be as default};
@@ -1,3 +1,4 @@
1
+ import { type BandPad } from "../lib/content/section-padding.js";
1
2
  export interface ParagraphsAStat {
2
3
  value?: string;
3
4
  label?: string;
@@ -11,6 +12,7 @@ export interface ParagraphsAProps {
11
12
  attribution?: string;
12
13
  padTop?: number;
13
14
  padBottom?: number;
15
+ bandPad?: BandPad;
14
16
  takesViewHide?: boolean;
15
17
  }
16
- export default function ParagraphsA({ eyebrow, stats, lead, foundersHeading, foundersBody, attribution, padTop, padBottom, takesViewHide, }?: ParagraphsAProps): import("react").JSX.Element;
18
+ export default function ParagraphsA({ eyebrow, stats, lead, foundersHeading, foundersBody, attribution, padTop, padBottom, bandPad, takesViewHide, }?: ParagraphsAProps): import("react").JSX.Element;
@@ -1 +1 @@
1
- import{jsx as l,jsxs as i}from"react/jsx-runtime";import{HideTaker as S}from"./ViewHideRoot.js";import{renderGold as t,renderHeadline as w,splitParagraphs as u}from"./goldPhrases.js";const e={bodyUpTo720Small:"max-view-tablet:text-[length:var(--size-body,12px)]",bodyUpTo720Large:"max-view-tablet:text-[length:var(--size-body,16px)]",headingSmallUpTo720:"max-view-tablet:text-[length:var(--size-headingSmall,20px)]",labelUpTo720:"max-view-tablet:text-[length:var(--size-label,10px)]",bodySmall:"text-[length:var(--size-body,14px)]",bodyLarge:"text-[length:var(--size-body,18px)]",headingSmall:"text-[length:var(--size-headingSmall,22px)]",labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"};function N({eyebrow:s,stats:b,lead:n,foundersHeading:r,foundersBody:m,attribution:o,padTop:x,padBottom:g,takesViewHide:h=!1}={}){const v=typeof x=="number"?x:60,f=typeof g=="number"?g:80,d=(b??[]).filter(a=>(a.value??"").trim()!==""||(a.label??"").trim()!==""),k=!!s||d.length>0,c=!!(r||m||o);return l(S,{as:"section",takes:h,className:"relative z-[2] bg-bg",children:i("div",{className:"mx-auto max-w-[var(--sf-site-width,1600px)] overflow-hidden border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]",style:{paddingTop:v,paddingBottom:f},children:[k&&i("div",{className:"mb-[40px] grid grid-cols-3 gap-[60px] border-b border-line pb-[40px] max-view-desktop:grid-cols-1 max-view-desktop:gap-6",children:[l("div",{className:"col-span-2 max-view-desktop:col-span-1",children:s&&l("span",{className:`font-mono ${e.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:t(s)})}),d.length>0&&l("div",{className:`text-right font-mono ${e.labelLarge} uppercase leading-[1.8] tracking-[0.18em] text-fg-dim max-view-desktop:text-left`,children:d.map((a,p)=>i("div",{children:[a.value?l("strong",{className:"font-normal text-fg",children:t(a.value)}):null," ",a.label?t(a.label):null]},p))})]}),(n||c)&&i("div",{className:"grid grid-cols-3 gap-[60px] max-view-desktop:grid-cols-1 max-view-desktop:gap-7",children:[n&&l("div",{className:"col-span-2 max-view-desktop:col-span-1",children:u(n).map((a,p)=>l("p",{className:`max-w-[780px] font-heading3 ${e.headingSmall} leading-[1.45] tracking-[-0.005em] text-fg ${e.headingSmallUpTo720}`,children:t(a)},p))}),c&&i("div",{className:`self-end font-display ${e.bodySmall} leading-[1.7] text-fg-dim ${e.bodyUpTo720Small}`,children:[r&&l("strong",{className:`mb-1.5 block ${e.bodyLarge} font-medium tracking-[-0.01em] text-fg ${e.bodyUpTo720Large}`,children:w(r,!1)}),m?t(m):null,o&&l("span",{className:`mt-2 block font-mono ${e.labelSmall} uppercase not-italic tracking-[0.24em] text-accent ${e.labelUpTo720}`,children:t(o)})]})]})]})})}export{N as default};
1
+ import{jsx as l,jsxs as i}from"react/jsx-runtime";import{HideTaker as S}from"./ViewHideRoot.js";import{bandPadAttrs as w}from"../lib/content/section-padding.js";import{innerPaddingFallback as N}from"../lib/document/passes/section-padding.js";import{renderGold as t,renderHeadline as u,splitParagraphs as y}from"./goldPhrases.js";const e={bodyUpTo720Small:"max-view-tablet:text-[length:var(--size-body,12px)]",bodyUpTo720Large:"max-view-tablet:text-[length:var(--size-body,16px)]",headingSmallUpTo720:"max-view-tablet:text-[length:var(--size-headingSmall,20px)]",labelUpTo720:"max-view-tablet:text-[length:var(--size-label,10px)]",bodySmall:"text-[length:var(--size-body,14px)]",bodyLarge:"text-[length:var(--size-body,18px)]",headingSmall:"text-[length:var(--size-headingSmall,22px)]",labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"};function T({eyebrow:s,stats:g,lead:r,foundersHeading:n,foundersBody:o,attribution:m,padTop:b,padBottom:h,bandPad:v,takesViewHide:f=!1}={}){const x=v??w({padTop:b,padBottom:h},N("ParagraphsA")),d=(g??[]).filter(a=>(a.value??"").trim()!==""||(a.label??"").trim()!==""),k=!!s||d.length>0,c=!!(n||o||m);return l(S,{as:"section",takes:f,className:"relative z-[2] bg-bg",children:i("div",{className:["mx-auto max-w-[var(--sf-site-width,1600px)] overflow-hidden border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]",x.className].filter(Boolean).join(" "),style:x.style,children:[k&&i("div",{className:"mb-[40px] grid grid-cols-3 gap-[60px] border-b border-line pb-[40px] max-view-desktop:grid-cols-1 max-view-desktop:gap-6",children:[l("div",{className:"col-span-2 max-view-desktop:col-span-1",children:s&&l("span",{className:`font-mono ${e.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:t(s)})}),d.length>0&&l("div",{className:`text-right font-mono ${e.labelLarge} uppercase leading-[1.8] tracking-[0.18em] text-fg-dim max-view-desktop:text-left`,children:d.map((a,p)=>i("div",{children:[a.value?l("strong",{className:"font-normal text-fg",children:t(a.value)}):null," ",a.label?t(a.label):null]},p))})]}),(r||c)&&i("div",{className:"grid grid-cols-3 gap-[60px] max-view-desktop:grid-cols-1 max-view-desktop:gap-7",children:[r&&l("div",{className:"col-span-2 max-view-desktop:col-span-1",children:y(r).map((a,p)=>l("p",{className:`max-w-[780px] font-heading3 ${e.headingSmall} leading-[1.45] tracking-[-0.005em] text-fg ${e.headingSmallUpTo720}`,children:t(a)},p))}),c&&i("div",{className:`self-end font-display ${e.bodySmall} leading-[1.7] text-fg-dim ${e.bodyUpTo720Small}`,children:[n&&l("strong",{className:`mb-1.5 block ${e.bodyLarge} font-medium tracking-[-0.01em] text-fg ${e.bodyUpTo720Large}`,children:u(n,!1)}),o?t(o):null,m&&l("span",{className:`mt-2 block font-mono ${e.labelSmall} uppercase not-italic tracking-[0.24em] text-accent ${e.labelUpTo720}`,children:t(m)})]})]})]})})}export{T as default};
@@ -1,3 +1,4 @@
1
+ import { type BandPad } from "../lib/content/section-padding.js";
1
2
  import type { SlotComponent } from "efficient-easel/blocks";
2
3
  import type { ReactNode } from "react";
3
4
  import type { RowHand } from "../../format/lib/content/mirror-cards.js";
@@ -26,6 +27,7 @@ export interface ProcessStepsProps {
26
27
  };
27
28
  padTop?: number;
28
29
  padBottom?: number;
30
+ bandPad?: BandPad;
29
31
  editing?: boolean;
30
32
  cardImage?: number | null;
31
33
  cardImageUnit?: string;
@@ -35,4 +37,4 @@ export interface ProcessStepsProps {
35
37
  omitHead?: boolean;
36
38
  }
37
39
  export declare function storedStepsShown(steps: readonly ProcessStep[] | undefined): ProcessStep[];
38
- export default function ProcessSteps({ num, title, description, boxes: Boxes, steps, columns, cta, padTop, padBottom, editing, omitHead, cardImage, cardImageUnit, cardText, rows: askedRows, copies, }: ProcessStepsProps): import("react").JSX.Element;
40
+ export default function ProcessSteps({ num, title, description, boxes: Boxes, steps, columns, cta, padTop, padBottom, bandPad, editing, omitHead, cardImage, cardImageUnit, cardText, rows: askedRows, copies, }: ProcessStepsProps): import("react").JSX.Element;
@@ -1 +1 @@
1
- import{jsx as e,Fragment as O,jsxs as i}from"react/jsx-runtime";import{HideTaker as R}from"./ViewHideRoot.js";import{RowHandContext as T}from"./MirrorContext.js";import{EDITORIAL_COLUMN as F}from"../../format/lib/content/page-width.js";import{cardImageShapeTokens as Y}from"../../format/lib/content/card-image-shape.js";import{SiteLink as X}from"../lib/site-runtime.js";import Z from"./EditorialSectionHead.js";import q from"./Placeholder.js";import{withRMark as o}from"./RMark.js";import{renderGold as s}from"./goldPhrases.js";import{say as J}from"../../format/lib/editor-words.js";import{scrim as f}from"../../format/lib/content/scrim.js";import{EMPTY_ELSE_CLASS as K,EMPTY_HIDES_CLASS as _,EmptyHidesStyle as Q}from"../lib/content/empty-hides.js";const t={headingSmallUpTo700Small:"max-[700px]:text-[length:var(--size-headingSmall,26px)]",headingSmallUpTo700Large:"max-[700px]:text-[length:var(--size-headingSmall,28px)]",bodySmall:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,18px)]",headingSmall1:"text-[length:var(--size-headingSmall,28px)]",headingSmall2:"text-[length:var(--size-headingSmall,34px)]",labelSmall:"text-[length:var(--size-label,11px)]",label:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"},C={2:"grid-cols-2 max-[900px]:grid-cols-1",3:"grid-cols-3 max-view-desktop:grid-cols-1",4:"grid-cols-4 max-view-desktop:grid-cols-2 max-[700px]:grid-cols-1"},y="sf-itc-boxes",V="sf-itc-steps";function W(b){return(b??[]).filter(r=>(r?.tag??"").trim()||(r?.meta??"").trim()||(r?.title??"").trim()||(r?.copy??"").trim()||(r?.image??"").trim()||(r?.specs??[]).some(c=>(c?.label??"").trim()||(c?.value??"").trim()))}function B({num:b,title:r,description:c,boxes:n,steps:I,columns:H=3,cta:h,padTop:S,padBottom:$,editing:j=!1,omitHead:A=!1,cardImage:P,cardImageUnit:U,cardText:D,rows:N,copies:g}){const p=g!==void 0,m=N&&(p||(n?.blockCount??0)>0)?N:null,G=typeof S=="number"?S:120,M=typeof $=="number"?$:120,k=p?[]:W(I),L=k.length>0?k:j&&!n&&!p?[1,2,3].map(a=>({tag:J("Column {n}",{n:a})})):[],z=C[H]??C[3],u=m?"grid-cols-1":z,w=m?"":" [&>*]:min-h-[560px]",d=D==="on-image";return e(R,{as:"section",className:"relative z-[2] border-b border-line bg-bg",style:{paddingTop:G,paddingBottom:M,...Y(P,U)},children:i("div",{className:F,children:[A?null:e(Z,{num:b,title:r?.trim()?s(r,!0):void 0,desc:c?.trim()?s(c,!1):void 0}),n&&!p?i(O,{children:[e(Q,{}),m?e(T.Provider,{value:{hand:m,ids:n.blockIds??[],boxes:[]},children:e(n,{className:`${y} ${_} sf-card grid ${u} gap-[2px] border border-line bg-line${w} [&>*]:bg-bg`,minEmptyHeight:260})}):e(n,{className:`${y} ${_} sf-card grid ${u} gap-[2px] border border-line bg-line [&>*]:min-h-[560px] [&>*]:bg-bg`,minEmptyHeight:260})]}):null,p&&g?e("div",{className:`${y} sf-card grid ${u} gap-[2px] border border-line bg-line${w} [&>*]:bg-bg`,children:m?e(T.Provider,{value:{hand:m,copies:!0},children:g}):g}):null,L.length>0&&e("div",{className:`${V} ${K} sf-card grid ${z} gap-[2px] border border-line bg-line`,children:L.map((a,E)=>{const x=(a.specs??[]).filter(l=>(l?.label??"").trim()||(l?.value??"").trim());return i("article",{className:d?"flex flex-col bg-bg":"flex min-h-[560px] flex-col bg-bg",children:[i("div",{className:d?"sf-card-image relative aspect-[5/3] overflow-hidden bg-surface max-[700px]:aspect-[4/3]":"sf-card-image relative aspect-[5/3] overflow-hidden border-b border-line bg-surface",children:[e(q,{label:a.tag?.trim()||a.title?.trim()||`column-${E+1}`,src:a.image||void 0,sizes:"(max-width: 1100px) 100vw, 33vw",...n?{deferFetch:!0}:{}}),e("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 z-[1]",style:{background:`linear-gradient(180deg, ${f(.55)} 0%, transparent 30%, transparent 70%, ${f(.65)} 100%)`}}),d&&e("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 bottom-0 z-[1] h-[78%]",style:{background:`linear-gradient(180deg, transparent 0%, ${f(.73)} 55%, ${f(.92)} 100%)`}}),a.tag?.trim()&&e("span",{className:`absolute left-5 top-[18px] z-[2] font-mono ${t.label} uppercase tracking-[0.3em] text-accent`,children:o(a.tag)}),a.meta?.trim()&&e("span",{className:d?`absolute right-5 top-[18px] z-[2] font-mono ${t.label} uppercase tracking-[0.24em] text-overlay-fg/80`:`absolute right-5 bottom-[18px] z-[2] font-mono ${t.label} uppercase tracking-[0.24em] text-overlay-fg/80`,children:o(a.meta)}),d&&(a.title?.trim()||a.copy?.trim())&&i("div",{className:"absolute inset-x-0 bottom-0 z-[2] flex flex-col gap-2.5 px-8 pb-7 pt-14 max-[700px]:px-6 max-[700px]:pb-6",children:[a.title?.trim()&&e("h3",{className:`flex min-h-[2em] flex-col justify-end font-heading3 ${t.headingSmall1} font-medium uppercase leading-none tracking-[-0.02em] text-overlay-fg ${t.headingSmallUpTo700Small}`,children:s(a.title,!0)}),a.copy?.trim()&&e("p",{className:`min-h-[3em] font-display ${t.bodySmall} leading-[1.5] text-overlay-fg/85`,children:s(a.copy,!1)})]})]}),d?x.length>0&&e("div",{className:"grid grid-cols-2 gap-2 border-t border-line px-8 py-7 max-[700px]:px-6 max-[700px]:py-6",children:x.map((l,v)=>i("div",{className:"flex flex-col gap-1",children:[l.label?.trim()&&e("span",{className:`font-mono ${t.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:o(l.label)}),l.value?.trim()&&e("span",{className:`font-display ${t.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:o(l.value)})]},v))}):i("div",{className:"flex flex-1 flex-col gap-4 px-8 py-9 max-[700px]:px-6 max-[700px]:py-7",children:[a.title?.trim()&&e("h3",{className:`font-heading3 ${t.headingSmall2} font-medium uppercase leading-none tracking-[-0.02em] ${t.headingSmallUpTo700Large}`,children:s(a.title,!0)}),a.copy?.trim()&&e("p",{className:`font-display ${t.bodySmall} leading-[1.55] text-fg-dim`,children:s(a.copy,!1)}),x.length>0&&e("div",{className:"mt-auto grid grid-cols-2 gap-2 border-t border-line pt-4",children:x.map((l,v)=>i("div",{className:"flex flex-col gap-1",children:[l.label?.trim()&&e("span",{className:`font-mono ${t.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:o(l.label)}),l.value?.trim()&&e("span",{className:`font-display ${t.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:o(l.value)})]},v))})]})]},E)})}),h?.text&&e("div",{className:"mt-12 flex justify-end border-t border-line pt-8",children:i(X,{newTab:"auto",href:h.href,className:`group inline-flex items-center gap-3.5 border border-line px-6 py-4 font-mono ${t.labelLarge} uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent`,children:[o(h.text),e("span",{"aria-hidden":!0,className:"text-accent transition-transform group-hover:translate-x-[3px]",children:"→"})]})})]})})}export{B as default,W as storedStepsShown};
1
+ import{jsx as e,Fragment as M,jsxs as i}from"react/jsx-runtime";import{HideTaker as O}from"./ViewHideRoot.js";import{bandPadAttrs as R}from"../lib/content/section-padding.js";import{innerPaddingFallback as Y}from"../lib/document/passes/section-padding.js";import{RowHandContext as E}from"./MirrorContext.js";import{EDITORIAL_COLUMN as X}from"../../format/lib/content/page-width.js";import{cardImageShapeTokens as Z}from"../../format/lib/content/card-image-shape.js";import{SiteLink as q}from"../lib/site-runtime.js";import J from"./EditorialSectionHead.js";import K from"./Placeholder.js";import{withRMark as o}from"./RMark.js";import{renderGold as s}from"./goldPhrases.js";import{say as Q}from"../../format/lib/editor-words.js";import{scrim as f}from"../../format/lib/content/scrim.js";import{EMPTY_ELSE_CLASS as V,EMPTY_HIDES_CLASS as T,EmptyHidesStyle as W}from"../lib/content/empty-hides.js";const l={headingSmallUpTo700Small:"max-[700px]:text-[length:var(--size-headingSmall,26px)]",headingSmallUpTo700Large:"max-[700px]:text-[length:var(--size-headingSmall,28px)]",bodySmall:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,18px)]",headingSmall1:"text-[length:var(--size-headingSmall,28px)]",headingSmall2:"text-[length:var(--size-headingSmall,34px)]",labelSmall:"text-[length:var(--size-label,11px)]",label:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"},_={2:"grid-cols-2 max-[900px]:grid-cols-1",3:"grid-cols-3 max-view-desktop:grid-cols-1",4:"grid-cols-4 max-view-desktop:grid-cols-2 max-[700px]:grid-cols-1"},S="sf-itc-boxes",B="sf-itc-steps";function ee(b){return(b??[]).filter(r=>(r?.tag??"").trim()||(r?.meta??"").trim()||(r?.title??"").trim()||(r?.copy??"").trim()||(r?.image??"").trim()||(r?.specs??[]).some(c=>(c?.label??"").trim()||(c?.value??"").trim()))}function ae({num:b,title:r,description:c,boxes:n,steps:C,columns:I=3,cta:h,padTop:P,padBottom:j,bandPad:A,editing:H=!1,omitHead:U=!1,cardImage:D,cardImageUnit:F,cardText:G,rows:y,copies:g}){const p=g!==void 0,m=y&&(p||(n?.blockCount??0)>0)?y:null,$=A??R({padTop:P,padBottom:j},Y("ProcessSteps")),N=p?[]:ee(C),k=N.length>0?N:H&&!n&&!p?[1,2,3].map(a=>({tag:Q("Column {n}",{n:a})})):[],L=_[I]??_[3],u=m?"grid-cols-1":L,z=m?"":" [&>*]:min-h-[560px]",d=G==="on-image";return e(O,{as:"section",className:["relative z-[2] border-b border-line bg-bg",$.className].filter(Boolean).join(" "),style:{...$.style,...Z(D,F)},children:i("div",{className:X,children:[U?null:e(J,{num:b,title:r?.trim()?s(r,!0):void 0,desc:c?.trim()?s(c,!1):void 0}),n&&!p?i(M,{children:[e(W,{}),m?e(E.Provider,{value:{hand:m,ids:n.blockIds??[],boxes:[]},children:e(n,{className:`${S} ${T} sf-card grid ${u} gap-[2px] border border-line bg-line${z} [&>*]:bg-bg`,minEmptyHeight:260})}):e(n,{className:`${S} ${T} sf-card grid ${u} gap-[2px] border border-line bg-line [&>*]:min-h-[560px] [&>*]:bg-bg`,minEmptyHeight:260})]}):null,p&&g?e("div",{className:`${S} sf-card grid ${u} gap-[2px] border border-line bg-line${z} [&>*]:bg-bg`,children:m?e(E.Provider,{value:{hand:m,copies:!0},children:g}):g}):null,k.length>0&&e("div",{className:`${B} ${V} sf-card grid ${L} gap-[2px] border border-line bg-line`,children:k.map((a,w)=>{const x=(a.specs??[]).filter(t=>(t?.label??"").trim()||(t?.value??"").trim());return i("article",{className:d?"flex flex-col bg-bg":"flex min-h-[560px] flex-col bg-bg",children:[i("div",{className:d?"sf-card-image relative aspect-[5/3] overflow-hidden bg-surface max-[700px]:aspect-[4/3]":"sf-card-image relative aspect-[5/3] overflow-hidden border-b border-line bg-surface",children:[e(K,{label:a.tag?.trim()||a.title?.trim()||`column-${w+1}`,src:a.image||void 0,sizes:"(max-width: 1100px) 100vw, 33vw",...n?{deferFetch:!0}:{}}),e("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 z-[1]",style:{background:`linear-gradient(180deg, ${f(.55)} 0%, transparent 30%, transparent 70%, ${f(.65)} 100%)`}}),d&&e("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 bottom-0 z-[1] h-[78%]",style:{background:`linear-gradient(180deg, transparent 0%, ${f(.73)} 55%, ${f(.92)} 100%)`}}),a.tag?.trim()&&e("span",{className:`absolute left-5 top-[18px] z-[2] font-mono ${l.label} uppercase tracking-[0.3em] text-accent`,children:o(a.tag)}),a.meta?.trim()&&e("span",{className:d?`absolute right-5 top-[18px] z-[2] font-mono ${l.label} uppercase tracking-[0.24em] text-overlay-fg/80`:`absolute right-5 bottom-[18px] z-[2] font-mono ${l.label} uppercase tracking-[0.24em] text-overlay-fg/80`,children:o(a.meta)}),d&&(a.title?.trim()||a.copy?.trim())&&i("div",{className:"absolute inset-x-0 bottom-0 z-[2] flex flex-col gap-2.5 px-8 pb-7 pt-14 max-[700px]:px-6 max-[700px]:pb-6",children:[a.title?.trim()&&e("h3",{className:`flex min-h-[2em] flex-col justify-end font-heading3 ${l.headingSmall1} font-medium uppercase leading-none tracking-[-0.02em] text-overlay-fg ${l.headingSmallUpTo700Small}`,children:s(a.title,!0)}),a.copy?.trim()&&e("p",{className:`min-h-[3em] font-display ${l.bodySmall} leading-[1.5] text-overlay-fg/85`,children:s(a.copy,!1)})]})]}),d?x.length>0&&e("div",{className:"grid grid-cols-2 gap-2 border-t border-line px-8 py-7 max-[700px]:px-6 max-[700px]:py-6",children:x.map((t,v)=>i("div",{className:"flex flex-col gap-1",children:[t.label?.trim()&&e("span",{className:`font-mono ${l.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:o(t.label)}),t.value?.trim()&&e("span",{className:`font-display ${l.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:o(t.value)})]},v))}):i("div",{className:"flex flex-1 flex-col gap-4 px-8 py-9 max-[700px]:px-6 max-[700px]:py-7",children:[a.title?.trim()&&e("h3",{className:`font-heading3 ${l.headingSmall2} font-medium uppercase leading-none tracking-[-0.02em] ${l.headingSmallUpTo700Large}`,children:s(a.title,!0)}),a.copy?.trim()&&e("p",{className:`font-display ${l.bodySmall} leading-[1.55] text-fg-dim`,children:s(a.copy,!1)}),x.length>0&&e("div",{className:"mt-auto grid grid-cols-2 gap-2 border-t border-line pt-4",children:x.map((t,v)=>i("div",{className:"flex flex-col gap-1",children:[t.label?.trim()&&e("span",{className:`font-mono ${l.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:o(t.label)}),t.value?.trim()&&e("span",{className:`font-display ${l.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:o(t.value)})]},v))})]})]},w)})}),h?.text&&e("div",{className:"mt-12 flex justify-end border-t border-line pt-8",children:i(q,{newTab:"auto",href:h.href,className:`group inline-flex items-center gap-3.5 border border-line px-6 py-4 font-mono ${l.labelLarge} uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent`,children:[o(h.text),e("span",{"aria-hidden":!0,className:"text-accent transition-transform group-hover:translate-x-[3px]",children:"→"})]})})]})})}export{ae as default,ee as storedStepsShown};
@@ -1,3 +1,4 @@
1
+ import { type BandPad } from "../lib/content/section-padding.js";
1
2
  export interface StatCardData {
2
3
  value?: string;
3
4
  prefix?: string;
@@ -15,7 +16,8 @@ export interface StatsParagraphProps {
15
16
  background?: string;
16
17
  padTop?: number;
17
18
  padBottom?: number;
19
+ bandPad?: BandPad;
18
20
  editing?: boolean;
19
21
  omitHead?: boolean;
20
22
  }
21
- export default function StatsParagraph({ eyebrow, title, desc, stats, background, padTop, padBottom, editing, omitHead, }?: StatsParagraphProps): import("react").JSX.Element;
23
+ export default function StatsParagraph({ eyebrow, title, desc, stats, background, padTop, padBottom, bandPad, editing, omitHead, }?: StatsParagraphProps): import("react").JSX.Element;
@@ -1 +1 @@
1
- "use client";import{jsxs as r,jsx as n,Fragment as y}from"react/jsx-runtime";import{HideTaker as S}from"./ViewHideRoot.js";import{EDITORIAL_COLUMN as k}from"../../format/lib/content/page-width.js";import C from"./EditorialSectionHead.js";import{renderGold as h,renderHeadline as E}from"./goldPhrases.js";import{useCountUp as _}from"./useCountUp.js";import{say as b}from"../../format/lib/editor-words.js";const x={body:"text-[length:var(--size-body,16px)]",labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"},v="font-normal italic text-accent";function w({value:g,prefix:c,suffix:l,supSuffix:d,emphasizeAll:i,label:t,sub:a}){const o=(g??"").trim(),p=/^\d+$/.test(o),{ref:f,value:u}=_(p?parseInt(o,10):0),s=p?String(u):o,m=c??"";return r("div",{className:"flex min-h-[240px] flex-col gap-3 bg-bg px-8 py-12",children:[r("div",{ref:f,className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(56px,7vw,96px)),var(--sf-heading-max,9999px))] font-medium leading-[0.9] tracking-[-0.04em] tabular-nums",children:[i?r("em",{className:v,children:[m,s]}):r(y,{children:[m,s,l?n("em",{className:v,children:l}):null]}),d?n("sup",{className:`ml-8 inline-block pt-[18px] align-top font-mono ${x.labelLarge} leading-none tracking-[0.18em] text-accent`,children:d}):null]}),(t||a)&&r("div",{className:`mt-auto font-mono ${x.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:[t?n("strong",{className:`mb-1 block font-display ${x.body} font-normal normal-case tracking-[-0.01em] text-fg`,children:t}):null,a?h(a):null]})]})}function T({eyebrow:g,title:c,desc:l,stats:d,background:i,padTop:t,padBottom:a,editing:o=!1,omitHead:p=!1}={}){const f=typeof t=="number"?t:120,u=typeof a=="number"?a:120,s=(d??[]).filter(e=>(e.value??"").trim()!==""||(e.label??"").trim()!==""||(e.sub??"").trim()!==""||(e.suffix??"").trim()!==""||(e.supSuffix??"").trim()!==""),m=s.length>0?s:o?[{value:"0",label:b("Stat"),sub:b("Add your numbers.")}]:[];return n(S,{as:"section",className:"border-b border-line",style:{paddingTop:f,paddingBottom:u,...!!(i&&i!=="transparent")?{backgroundColor:i}:{}},children:r("div",{className:k,children:[p?null:n(C,{num:g,title:c?E(c):void 0,desc:l?h(l):void 0}),m.length>0&&n("div",{className:"sf-card grid grid-cols-4 gap-[2px] border border-line bg-line max-view-desktop:grid-cols-2 max-[700px]:grid-cols-1",children:m.map((e,N)=>n(w,{...e},N))})]})})}export{T as default};
1
+ "use client";import{jsxs as t,jsx as a,Fragment as S}from"react/jsx-runtime";import{bandPadAttrs as k}from"../lib/content/section-padding.js";import{innerPaddingFallback as C}from"../lib/document/passes/section-padding.js";import{HideTaker as E}from"./ViewHideRoot.js";import{EDITORIAL_COLUMN as _}from"../../format/lib/content/page-width.js";import j from"./EditorialSectionHead.js";import{renderGold as h,renderHeadline as w}from"./goldPhrases.js";import{useCountUp as T}from"./useCountUp.js";import{say as b}from"../../format/lib/editor-words.js";const x={body:"text-[length:var(--size-body,16px)]",labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"},v="font-normal italic text-accent";function z({value:f,prefix:d,suffix:n,supSuffix:c,emphasizeAll:r,label:l,sub:i}){const o=(f??"").trim(),p=/^\d+$/.test(o),{ref:u,value:g}=T(p?parseInt(o,10):0),s=p?String(g):o,m=d??"";return t("div",{className:"flex min-h-[240px] flex-col gap-3 bg-bg px-8 py-12",children:[t("div",{ref:u,className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(56px,7vw,96px)),var(--sf-heading-max,9999px))] font-medium leading-[0.9] tracking-[-0.04em] tabular-nums",children:[r?t("em",{className:v,children:[m,s]}):t(S,{children:[m,s,n?a("em",{className:v,children:n}):null]}),c?a("sup",{className:`ml-8 inline-block pt-[18px] align-top font-mono ${x.labelLarge} leading-none tracking-[0.18em] text-accent`,children:c}):null]}),(l||i)&&t("div",{className:`mt-auto font-mono ${x.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:[l?a("strong",{className:`mb-1 block font-display ${x.body} font-normal normal-case tracking-[-0.01em] text-fg`,children:l}):null,i?h(i):null]})]})}function A({eyebrow:f,title:d,desc:n,stats:c,background:r,padTop:l,padBottom:i,bandPad:o,editing:p=!1,omitHead:u=!1}={}){const g=o??k({padTop:l,padBottom:i},C("StatsParagraph")),s=(c??[]).filter(e=>(e.value??"").trim()!==""||(e.label??"").trim()!==""||(e.sub??"").trim()!==""||(e.suffix??"").trim()!==""||(e.supSuffix??"").trim()!==""),m=s.length>0?s:p?[{value:"0",label:b("Stat"),sub:b("Add your numbers.")}]:[],N=!!(r&&r!=="transparent");return a(E,{as:"section",className:["border-b border-line",g.className].filter(Boolean).join(" "),style:{...g.style,...N?{backgroundColor:r}:{}},children:t("div",{className:_,children:[u?null:a(j,{num:f,title:d?w(d):void 0,desc:n?h(n):void 0}),m.length>0&&a("div",{className:"sf-card grid grid-cols-4 gap-[2px] border border-line bg-line max-view-desktop:grid-cols-2 max-[700px]:grid-cols-1",children:m.map((e,y)=>a(z,{...e},y))})]})})}export{A as default};
@@ -1,3 +1,4 @@
1
+ import { type BandPad } from "../lib/content/section-padding.js";
1
2
  export type TimelineLayout = "split" | "spine" | "alternating";
2
3
  export interface TimelineEntry {
3
4
  date?: string;
@@ -19,6 +20,7 @@ export interface TimelineProps {
19
20
  entries?: TimelineEntry[];
20
21
  padTop?: number;
21
22
  padBottom?: number;
23
+ bandPad?: BandPad;
22
24
  editing?: boolean;
23
25
  }
24
- export default function Timeline({ layout, eyebrow, title, intro, imageSrc, imageCaption, imageMeta, cta, entries, padTop, padBottom, editing, }?: TimelineProps): import("react").JSX.Element;
26
+ export default function Timeline({ layout, eyebrow, title, intro, imageSrc, imageCaption, imageMeta, cta, entries, padTop, padBottom, bandPad, editing, }?: TimelineProps): import("react").JSX.Element;
@@ -1 +1 @@
1
- import{jsx as e,Fragment as w,jsxs as r}from"react/jsx-runtime";import{HideTaker as T}from"./ViewHideRoot.js";import{SiteLink as _}from"../lib/site-runtime.js";import{stripMarkup as j}from"../../format/lib/markup.js";import{STICKY_ASIDE_CLASS as C}from"../../format/lib/content/sticky-aside.js";import E from"./Placeholder.js";import I from"./SectionEyebrow.js";import{renderGold as m,renderHeadline as N,splitParagraphs as U}from"./goldPhrases.js";import{CentreRailDot as A,CentreRailLine as D,railSideIsLeft as F,SPINE_LINE_CLASS as H,SpineDot as P}from"./TimelineRail.js";import{scrim as R}from"../../format/lib/content/scrim.js";const n={bodyUpTo800:"max-view-wide:text-[length:var(--size-body,16px)]",headingSmallUpTo800:"max-view-wide:text-[length:var(--size-headingSmall,20px)]",bodySmall:"text-[length:var(--size-body,14px)]",bodyLarge:"text-[length:var(--size-body,17px)]",headingSmall:"text-[length:var(--size-headingSmall,24px)]",labelSmall:"text-[length:var(--size-label,11px)]",labelLarge:"text-[length:var(--size-label,13px)]"};function S({eyebrow:a,title:t,intro:l,center:s=!1}){return r(w,{children:[a&&e(I,{text:a,size:12}),t&&e("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(40px,5vw,76px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[0.94] tracking-[-0.03em] text-fg",children:N(t)}),l&&e("p",{className:[`font-display ${n.bodySmall} leading-[1.6] text-fg-dim`,s?"max-w-[520px]":"max-w-[360px]"].join(" "),children:m(l,!0)})]})}function y({cta:a,className:t=""}){return a?.text?r(_,{newTab:"auto",href:a.href,className:["group inline-flex items-center gap-3.5 border border-line px-5 py-4",`font-mono ${n.labelLarge} uppercase tracking-[0.3em] text-fg`,"transition-colors hover:border-accent hover:text-accent",t].join(" "),children:[m(a.text),e("span",{"aria-hidden":!0,className:"text-accent transition-transform group-hover:translate-x-[3px]",children:"→"})]}):null}function k({src:a,caption:t,meta:l,aspectClass:s,editing:d,sizes:p="100vw",className:c=""}){return!a&&!d?null:r("figure",{className:["relative overflow-hidden border border-line bg-surface",s,c].join(" "),children:[e(E,{label:t||"Image",src:a,alt:j(t??""),sizes:p}),e("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",style:{background:`linear-gradient(180deg, transparent 55%, ${R(.75)} 100%)`}}),(t||l)&&r("figcaption",{className:`absolute inset-x-0 bottom-0 z-[1] flex items-center justify-between gap-3 px-4 py-3 font-mono ${n.labelSmall} uppercase tracking-[0.24em] text-overlay-fg/85`,children:[e("span",{children:t?m(t):""}),l&&e("span",{className:"text-accent",children:m(l)})]})]})}function g({entry:a}){const t=U(a.body??"");return r(w,{children:[a.title&&e("h3",{className:`mb-3.5 font-heading3 ${n.headingSmall} font-medium uppercase tracking-[-0.02em] text-fg ${n.headingSmallUpTo800}`,children:N(a.title)}),t.length>0&&e("div",{className:`space-y-3.5 font-display ${n.bodyLarge} leading-[1.6] ${n.bodyUpTo800}`,children:t.map((l,s)=>e("p",{className:s===0?"text-fg":"text-fg-dim",children:m(l,!0)},s))})]})}function B({layout:a="split",eyebrow:t,title:l,intro:s,imageSrc:d,imageCaption:p,imageMeta:c,cta:f,entries:z,padTop:h,padBottom:u,editing:b}={}){const L=typeof h=="number"?h:120,$=typeof u=="number"?u:120,x=(z??[]).filter(i=>(i.date??"").trim()||(i.title??"").trim()||(i.body??"").trim());return e(T,{as:"section",className:"relative z-[2] bg-bg",children:e("div",{className:"mx-auto max-w-[var(--sf-site-width,1600px)] border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]",style:{paddingTop:L,paddingBottom:$},children:a==="split"?r("div",{className:"grid grid-cols-[1fr_1.4fr] gap-20 max-view-desktop:grid-cols-1 max-view-desktop:gap-12",children:[r("aside",{className:`${C} flex flex-col gap-6 self-start max-view-desktop:static`,children:[e(S,{eyebrow:t,title:l,intro:s}),e(k,{src:d,caption:p,meta:c,aspectClass:"mt-1 aspect-[4/5]",sizes:"(max-width: 1100px) 100vw, 420px",editing:b}),e(y,{cta:f,className:"mt-2 self-start"})]}),e("ol",{className:"flex flex-col gap-12",children:x.map((i,o)=>r("li",{className:"grid grid-cols-[80px_1fr] items-start gap-6 max-[700px]:grid-cols-1 max-[700px]:gap-2",children:[e("span",{className:`pt-1.5 font-mono ${n.labelLarge} tracking-[0.24em] text-accent`,children:i.date?m(i.date):""}),e("div",{className:"max-w-[640px]",children:e(g,{entry:i})})]},o))})]}):r("div",{children:[r("header",{className:"mx-auto flex max-w-[760px] flex-col items-center gap-6 text-center",children:[e(S,{eyebrow:t,title:l,intro:s,center:!0}),e(y,{cta:f})]}),e(k,{src:d,caption:p,meta:c,aspectClass:"mx-auto mt-12 aspect-[16/9] w-full max-w-[900px]",sizes:"(max-width: 900px) 100vw, 900px",editing:b}),a==="spine"?e("ol",{className:"relative mx-auto mt-16 max-w-[760px]",children:x.map((i,o)=>r("li",{className:`relative ${H} pb-12 pl-10 last:pb-0 max-[700px]:pl-8`,children:[e(P,{}),e("div",{className:`mb-2 font-mono ${n.labelLarge} tracking-[0.24em] text-accent`,children:i.date?m(i.date):""}),e("div",{className:"max-w-[640px]",children:e(g,{entry:i})})]},o))}):r("ol",{className:"relative mx-auto mt-16 max-w-[1000px]",children:[e(D,{}),x.map((i,o)=>{const v=F(o);return r("li",{className:"relative mb-14 pl-8 last:mb-0 min-[801px]:grid min-[801px]:grid-cols-2 min-[801px]:gap-16 min-[801px]:pl-0",children:[e(A,{}),r("div",{className:v?"min-[801px]:col-start-1 min-[801px]:pr-8 min-[801px]:text-right":"min-[801px]:col-start-2 min-[801px]:pl-8",children:[e("div",{className:`mb-2 font-mono ${n.labelLarge} tracking-[0.24em] text-accent`,children:i.date?m(i.date):""}),e("div",{className:["max-w-[520px] max-view-wide:max-w-none",v?"min-[801px]:ml-auto":""].join(" "),children:e(g,{entry:i})})]})]},o)})]})]})})})}export{B as default};
1
+ import{jsx as e,Fragment as v,jsxs as l}from"react/jsx-runtime";import{HideTaker as $}from"./ViewHideRoot.js";import{bandPadAttrs as j}from"../lib/content/section-padding.js";import{innerPaddingFallback as _}from"../lib/document/passes/section-padding.js";import{SiteLink as C}from"../lib/site-runtime.js";import{stripMarkup as E}from"../../format/lib/markup.js";import{STICKY_ASIDE_CLASS as I}from"../../format/lib/content/sticky-aside.js";import P from"./Placeholder.js";import A from"./SectionEyebrow.js";import{renderGold as m,renderHeadline as w,splitParagraphs as F}from"./goldPhrases.js";import{CentreRailDot as U,CentreRailLine as D,railSideIsLeft as H,SPINE_LINE_CLASS as B,SpineDot as R}from"./TimelineRail.js";import{scrim as G}from"../../format/lib/content/scrim.js";const n={bodyUpTo800:"max-view-wide:text-[length:var(--size-body,16px)]",headingSmallUpTo800:"max-view-wide:text-[length:var(--size-headingSmall,20px)]",bodySmall:"text-[length:var(--size-body,14px)]",bodyLarge:"text-[length:var(--size-body,17px)]",headingSmall:"text-[length:var(--size-headingSmall,24px)]",labelSmall:"text-[length:var(--size-label,11px)]",labelLarge:"text-[length:var(--size-label,13px)]"};function N({eyebrow:a,title:t,intro:r,center:s=!1}){return l(v,{children:[a&&e(A,{text:a,size:12}),t&&e("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(40px,5vw,76px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[0.94] tracking-[-0.03em] text-fg",children:w(t)}),r&&e("p",{className:[`font-display ${n.bodySmall} leading-[1.6] text-fg-dim`,s?"max-w-[520px]":"max-w-[360px]"].join(" "),children:m(r,!0)})]})}function S({cta:a,className:t=""}){return a?.text?l(C,{newTab:"auto",href:a.href,className:["group inline-flex items-center gap-3.5 border border-line px-5 py-4",`font-mono ${n.labelLarge} uppercase tracking-[0.3em] text-fg`,"transition-colors hover:border-accent hover:text-accent",t].join(" "),children:[m(a.text),e("span",{"aria-hidden":!0,className:"text-accent transition-transform group-hover:translate-x-[3px]",children:"→"})]}):null}function k({src:a,caption:t,meta:r,aspectClass:s,editing:d,sizes:p="100vw",className:c=""}){return!a&&!d?null:l("figure",{className:["relative overflow-hidden border border-line bg-surface",s,c].join(" "),children:[e(P,{label:t||"Image",src:a,alt:E(t??""),sizes:p}),e("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",style:{background:`linear-gradient(180deg, transparent 55%, ${G(.75)} 100%)`}}),(t||r)&&l("figcaption",{className:`absolute inset-x-0 bottom-0 z-[1] flex items-center justify-between gap-3 px-4 py-3 font-mono ${n.labelSmall} uppercase tracking-[0.24em] text-overlay-fg/85`,children:[e("span",{children:t?m(t):""}),r&&e("span",{className:"text-accent",children:m(r)})]})]})}function g({entry:a}){const t=F(a.body??"");return l(v,{children:[a.title&&e("h3",{className:`mb-3.5 font-heading3 ${n.headingSmall} font-medium uppercase tracking-[-0.02em] text-fg ${n.headingSmallUpTo800}`,children:w(a.title)}),t.length>0&&e("div",{className:`space-y-3.5 font-display ${n.bodyLarge} leading-[1.6] ${n.bodyUpTo800}`,children:t.map((r,s)=>e("p",{className:s===0?"text-fg":"text-fg-dim",children:m(r,!0)},s))})]})}function K({layout:a="split",eyebrow:t,title:r,intro:s,imageSrc:d,imageCaption:p,imageMeta:c,cta:f,entries:y,padTop:z,padBottom:L,bandPad:T,editing:h}={}){const u=T??j({padTop:z,padBottom:L},_("Timeline")),x=(y??[]).filter(i=>(i.date??"").trim()||(i.title??"").trim()||(i.body??"").trim());return e($,{as:"section",className:"relative z-[2] bg-bg",children:e("div",{className:["mx-auto max-w-[var(--sf-site-width,1600px)] border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]",u.className].filter(Boolean).join(" "),style:u.style,children:a==="split"?l("div",{className:"grid grid-cols-[1fr_1.4fr] gap-20 max-view-desktop:grid-cols-1 max-view-desktop:gap-12",children:[l("aside",{className:`${I} flex flex-col gap-6 self-start max-view-desktop:static`,children:[e(N,{eyebrow:t,title:r,intro:s}),e(k,{src:d,caption:p,meta:c,aspectClass:"mt-1 aspect-[4/5]",sizes:"(max-width: 1100px) 100vw, 420px",editing:h}),e(S,{cta:f,className:"mt-2 self-start"})]}),e("ol",{className:"flex flex-col gap-12",children:x.map((i,o)=>l("li",{className:"grid grid-cols-[80px_1fr] items-start gap-6 max-[700px]:grid-cols-1 max-[700px]:gap-2",children:[e("span",{className:`pt-1.5 font-mono ${n.labelLarge} tracking-[0.24em] text-accent`,children:i.date?m(i.date):""}),e("div",{className:"max-w-[640px]",children:e(g,{entry:i})})]},o))})]}):l("div",{children:[l("header",{className:"mx-auto flex max-w-[760px] flex-col items-center gap-6 text-center",children:[e(N,{eyebrow:t,title:r,intro:s,center:!0}),e(S,{cta:f})]}),e(k,{src:d,caption:p,meta:c,aspectClass:"mx-auto mt-12 aspect-[16/9] w-full max-w-[900px]",sizes:"(max-width: 900px) 100vw, 900px",editing:h}),a==="spine"?e("ol",{className:"relative mx-auto mt-16 max-w-[760px]",children:x.map((i,o)=>l("li",{className:`relative ${B} pb-12 pl-10 last:pb-0 max-[700px]:pl-8`,children:[e(R,{}),e("div",{className:`mb-2 font-mono ${n.labelLarge} tracking-[0.24em] text-accent`,children:i.date?m(i.date):""}),e("div",{className:"max-w-[640px]",children:e(g,{entry:i})})]},o))}):l("ol",{className:"relative mx-auto mt-16 max-w-[1000px]",children:[e(D,{}),x.map((i,o)=>{const b=H(o);return l("li",{className:"relative mb-14 pl-8 last:mb-0 min-[801px]:grid min-[801px]:grid-cols-2 min-[801px]:gap-16 min-[801px]:pl-0",children:[e(U,{}),l("div",{className:b?"min-[801px]:col-start-1 min-[801px]:pr-8 min-[801px]:text-right":"min-[801px]:col-start-2 min-[801px]:pl-8",children:[e("div",{className:`mb-2 font-mono ${n.labelLarge} tracking-[0.24em] text-accent`,children:i.date?m(i.date):""}),e("div",{className:["max-w-[520px] max-view-wide:max-w-none",b?"min-[801px]:ml-auto":""].join(" "),children:e(g,{entry:i})})]})]},o)})]})]})})})}export{K as default};
@@ -1,3 +1,4 @@
1
+ import { type BandPad } from "../lib/content/section-padding.js";
1
2
  export interface TimelineTrackEntry {
2
3
  date?: string;
3
4
  title?: string;
@@ -15,8 +16,9 @@ export interface TimelineTrackProps {
15
16
  };
16
17
  padTop?: number;
17
18
  padBottom?: number;
19
+ bandPad?: BandPad;
18
20
  background?: string;
19
21
  editing?: boolean;
20
22
  omitHead?: boolean;
21
23
  }
22
- export default function TimelineTrack({ eyebrow, title, intro, entries, cta, padTop, padBottom, background, editing, omitHead, }?: TimelineTrackProps): import("react").JSX.Element | null;
24
+ export default function TimelineTrack({ eyebrow, title, intro, entries, cta, padTop, padBottom, bandPad, background, editing, omitHead, }?: TimelineTrackProps): import("react").JSX.Element | null;
@@ -1 +1 @@
1
- import{jsx as t,jsxs as a}from"react/jsx-runtime";import{HideTaker as S}from"./ViewHideRoot.js";import{SiteLink as T}from"../lib/site-runtime.js";import j from"./EditorialSectionHead.js";import f from"./PartStyledText.js";import{withRMark as n}from"./RMark.js";import{renderGold as u,renderHeadline as B}from"./goldPhrases.js";import{railPastShare as z,railYearInkClass as R,TrackRailDot as $,TrackRailLine as C,trackStopRailClass as E}from"./TimelineRail.js";const i={body:"text-[length:var(--size-body,13px)]",headingSmall:"text-[length:var(--size-headingSmall,20px)]",label:"text-[length:var(--size-label,13px)]"};function L({eyebrow:v,title:s,intro:d,entries:g,cta:l,padTop:m,padBottom:p,background:h,editing:b,omitHead:c=!1}={}){const k=typeof m=="number"?m:120,w=typeof p=="number"?p:120,x=h??"var(--section-bg)",y=x!=="transparent",r=(g??[]).filter(e=>(e.date??"").trim()||(e.title??"").trim()||(e.blurb??"").trim());if(r.length===0&&!b)return null;const N=z(r);return t(S,{as:"section",className:"relative z-[2]",children:t("div",{className:"border-b border-line",style:{paddingTop:k,paddingBottom:w,...y?{backgroundColor:x}:{}},children:a("div",{className:"mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]",children:[c?null:t(j,{num:v,title:s?B(s):void 0,desc:d?u(d,!0):void 0,spaceBelow:"",className:"text-fg"}),a("div",{className:c?"relative mt-0 grid grid-cols-[repeat(var(--cols),minmax(0,1fr))] gap-0 border-t border-line pt-[60px] max-view-desktop:mt-0 max-view-desktop:grid-cols-1 max-view-desktop:gap-0 max-view-desktop:border-t-0 max-view-desktop:pt-0":"relative mt-[60px] grid grid-cols-[repeat(var(--cols),minmax(0,1fr))] gap-0 border-t border-line pt-[60px] max-view-desktop:mt-9 max-view-desktop:grid-cols-1 max-view-desktop:gap-0 max-view-desktop:border-t-0 max-view-desktop:pt-0",style:{"--cols":r.length},children:[t(C,{pct:N}),r.map((e,o)=>a("div",{className:["relative flex min-h-[280px] flex-col gap-3.5 px-3.5",E(!!e.future,o===0),"max-view-desktop:min-h-0 max-view-desktop:border-t-0 max-view-desktop:py-6 max-view-desktop:pl-7 max-view-desktop:ml-1.5"].join(" "),children:[t($,{future:!!e.future,first:o===0}),t("span",{className:[`font-mono ${i.label} tracking-[0.22em]`,R(!!e.future)].join(" "),children:e.date?t(f,{value:e.date,children:n(e.date)}):""}),e.title&&t("h3",{className:`whitespace-pre-line font-heading3 ${i.headingSmall} font-medium uppercase leading-[1.1] tracking-[-0.02em] text-fg`,children:t(f,{value:e.title,children:n(e.title)})}),e.blurb&&t("p",{className:`mt-auto font-display ${i.body} leading-[1.55] text-fg-dim`,children:u(e.blurb,!0)})]},o))]}),l?.text&&t("div",{className:"mt-12 flex justify-end border-t border-line pt-8",children:a(T,{newTab:"auto",href:l.href,className:`group inline-flex items-center gap-3.5 border border-line px-6 py-4 font-mono ${i.label} uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent`,children:[n(l.text),t("span",{"aria-hidden":!0,className:"text-accent transition-transform group-hover:translate-x-[3px]",children:"→"})]})})]})})})}export{L as default};
1
+ import{jsx as t,jsxs as a}from"react/jsx-runtime";import{HideTaker as T}from"./ViewHideRoot.js";import{bandPadAttrs as S}from"../lib/content/section-padding.js";import{innerPaddingFallback as j}from"../lib/document/passes/section-padding.js";import{SiteLink as B}from"../lib/site-runtime.js";import P from"./EditorialSectionHead.js";import x from"./PartStyledText.js";import{withRMark as n}from"./RMark.js";import{renderGold as f,renderHeadline as z}from"./goldPhrases.js";import{railPastShare as R,railYearInkClass as $,TrackRailDot as C,TrackRailLine as E,trackStopRailClass as L}from"./TimelineRail.js";const i={body:"text-[length:var(--size-body,13px)]",headingSmall:"text-[length:var(--size-headingSmall,20px)]",label:"text-[length:var(--size-label,13px)]"};function _({eyebrow:v,title:s,intro:d,entries:g,cta:l,padTop:u,padBottom:h,bandPad:b,background:k,editing:w,omitHead:m=!1}={}){const p=b??S({padTop:u,padBottom:h},j("TimelineTrack")),c=k??"var(--section-bg)",N=c!=="transparent",r=(g??[]).filter(e=>(e.date??"").trim()||(e.title??"").trim()||(e.blurb??"").trim());if(r.length===0&&!w)return null;const y=R(r);return t(T,{as:"section",className:"relative z-[2]",children:t("div",{className:["border-b border-line",p.className].filter(Boolean).join(" "),style:{...p.style,...N?{backgroundColor:c}:{}},children:a("div",{className:"mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]",children:[m?null:t(P,{num:v,title:s?z(s):void 0,desc:d?f(d,!0):void 0,spaceBelow:"",className:"text-fg"}),a("div",{className:m?"relative mt-0 grid grid-cols-[repeat(var(--cols),minmax(0,1fr))] gap-0 border-t border-line pt-[60px] max-view-desktop:mt-0 max-view-desktop:grid-cols-1 max-view-desktop:gap-0 max-view-desktop:border-t-0 max-view-desktop:pt-0":"relative mt-[60px] grid grid-cols-[repeat(var(--cols),minmax(0,1fr))] gap-0 border-t border-line pt-[60px] max-view-desktop:mt-9 max-view-desktop:grid-cols-1 max-view-desktop:gap-0 max-view-desktop:border-t-0 max-view-desktop:pt-0",style:{"--cols":r.length},children:[t(E,{pct:y}),r.map((e,o)=>a("div",{className:["relative flex min-h-[280px] flex-col gap-3.5 px-3.5",L(!!e.future,o===0),"max-view-desktop:min-h-0 max-view-desktop:border-t-0 max-view-desktop:py-6 max-view-desktop:pl-7 max-view-desktop:ml-1.5"].join(" "),children:[t(C,{future:!!e.future,first:o===0}),t("span",{className:[`font-mono ${i.label} tracking-[0.22em]`,$(!!e.future)].join(" "),children:e.date?t(x,{value:e.date,children:n(e.date)}):""}),e.title&&t("h3",{className:`whitespace-pre-line font-heading3 ${i.headingSmall} font-medium uppercase leading-[1.1] tracking-[-0.02em] text-fg`,children:t(x,{value:e.title,children:n(e.title)})}),e.blurb&&t("p",{className:`mt-auto font-display ${i.body} leading-[1.55] text-fg-dim`,children:f(e.blurb,!0)})]},o))]}),l?.text&&t("div",{className:"mt-12 flex justify-end border-t border-line pt-8",children:a(B,{newTab:"auto",href:l.href,className:`group inline-flex items-center gap-3.5 border border-line px-6 py-4 font-mono ${i.label} uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent`,children:[n(l.text),t("span",{"aria-hidden":!0,className:"text-accent transition-transform group-hover:translate-x-[3px]",children:"→"})]})})]})})})}export{_ as default};
@@ -1,3 +1,4 @@
1
+ import { type BandPad } from "../lib/content/section-padding.js";
1
2
  export interface TitleButton {
2
3
  label?: string;
3
4
  href?: string;
@@ -8,9 +9,10 @@ export interface TitleWithButtonsProps {
8
9
  buttons?: TitleButton[];
9
10
  padTop?: number;
10
11
  padBottom?: number;
12
+ bandPad?: BandPad;
11
13
  buttonsAlign?: "left" | "center" | "right";
12
14
  buttonsAlignTablet?: unknown;
13
15
  buttonsAlignPhone?: unknown;
14
16
  editing?: boolean;
15
17
  }
16
- export default function TitleWithButtons({ title, buttons, padTop, padBottom, buttonsAlign, buttonsAlignTablet, buttonsAlignPhone, editing, }?: TitleWithButtonsProps): import("react").JSX.Element | null;
18
+ export default function TitleWithButtons({ title, buttons, padTop, padBottom, bandPad, buttonsAlign, buttonsAlignTablet, buttonsAlignPhone, editing, }?: TitleWithButtonsProps): import("react").JSX.Element | null;
@@ -1 +1 @@
1
- import{jsx as r,jsxs as m}from"react/jsx-runtime";import{HideTaker as k}from"./ViewHideRoot.js";import{alignViewClasses as y}from"../../format/lib/content/block-align.js";import{SiteLink as j}from"../lib/site-runtime.js";import{renderHeadline as N}from"./goldPhrases.js";import{say as L}from"../../format/lib/editor-words.js";function T({title:n,buttons:x,padTop:o,padBottom:l,buttonsAlign:s,buttonsAlignTablet:d,buttonsAlignPhone:f,editing:p=!1}={}){const c=typeof o=="number"?o:140,g=typeof l=="number"?l:140,i=(x??[]).filter(t=>p||(t.label??"").trim()),e=!!(n??"").trim(),a=!e&&(s==="center"||s==="left")?s:null,h=e?"":y("items",a??"right",d,f,{atSectionLine:!0});return!p&&!e&&i.length===0?null:r(k,{as:"section",className:"relative z-[2] bg-bg",children:m("div",{className:[a==="center"?"mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-1 items-center justify-items-center gap-[60px] border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]":a==="left"?"mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-1 items-center justify-items-start gap-[60px] border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]":"mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-[1fr_auto] items-center gap-[60px] border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:grid-cols-1 max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]",h].filter(Boolean).join(" "),style:{paddingTop:c,paddingBottom:g},children:[a===null&&!e&&i.length>0&&r("div",{"aria-hidden":!0,className:"max-view-desktop:hidden"}),e&&r("h2",{className:"max-w-[1000px] font-display text-[length:min(var(--size-headingLarge,clamp(48px,7vw,108px)),var(--sf-heading-max,9999px))] [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-[0.94] tracking-[-0.035em] text-fg",children:N(n??"")}),i.length>0&&r("div",{className:"flex min-w-[280px] flex-col gap-3.5 max-view-desktop:min-w-0",children:i.map((t,v)=>{const u=(t.label??"").trim()||L("Button label"),b=t.href||"#",w=t.variant==="primary";return m(j,{newTab:"auto",href:b,className:["flex items-center justify-between gap-6 px-7 py-5","font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.3em] transition-colors",w?"border border-btn bg-btn text-btn-ink hover:border-fg hover:bg-fg":"border border-line text-fg hover:border-accent hover:text-accent"].join(" "),children:[u," ",r("span",{"aria-hidden":!0,children:"→"})]},v)})})]})})}export{T as default};
1
+ import{jsx as r,jsxs as m}from"react/jsx-runtime";import{HideTaker as k}from"./ViewHideRoot.js";import{bandPadAttrs as y}from"../lib/content/section-padding.js";import{innerPaddingFallback as j}from"../lib/document/passes/section-padding.js";import{alignViewClasses as N}from"../../format/lib/content/block-align.js";import{SiteLink as T}from"../lib/site-runtime.js";import{renderHeadline as B}from"./goldPhrases.js";import{say as L}from"../../format/lib/editor-words.js";function _({title:n,buttons:p,padTop:d,padBottom:x,bandPad:c,buttonsAlign:s,buttonsAlignTablet:f,buttonsAlignPhone:g,editing:o=!1}={}){const l=c??y({padTop:d,padBottom:x},j("TitleWithButtons")),i=(p??[]).filter(t=>o||(t.label??"").trim()),e=!!(n??"").trim(),a=!e&&(s==="center"||s==="left")?s:null,h=e?"":N("items",a??"right",f,g,{atSectionLine:!0});return!o&&!e&&i.length===0?null:r(k,{as:"section",className:"relative z-[2] bg-bg",children:m("div",{className:[a==="center"?"mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-1 items-center justify-items-center gap-[60px] border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]":a==="left"?"mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-1 items-center justify-items-start gap-[60px] border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]":"mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-[1fr_auto] items-center gap-[60px] border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:grid-cols-1 max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]",h,l.className].filter(Boolean).join(" "),style:l.style,children:[a===null&&!e&&i.length>0&&r("div",{"aria-hidden":!0,className:"max-view-desktop:hidden"}),e&&r("h2",{className:"max-w-[1000px] font-display text-[length:min(var(--size-headingLarge,clamp(48px,7vw,108px)),var(--sf-heading-max,9999px))] [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-[0.94] tracking-[-0.035em] text-fg",children:B(n??"")}),i.length>0&&r("div",{className:"flex min-w-[280px] flex-col gap-3.5 max-view-desktop:min-w-0",children:i.map((t,v)=>{const u=(t.label??"").trim()||L("Button label"),b=t.href||"#",w=t.variant==="primary";return m(T,{newTab:"auto",href:b,className:["flex items-center justify-between gap-6 px-7 py-5","font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.3em] transition-colors",w?"border border-btn bg-btn text-btn-ink hover:border-fg hover:bg-fg":"border border-line text-fg hover:border-accent hover:text-accent"].join(" "),children:[u," ",r("span",{"aria-hidden":!0,children:"→"})]},v)})})]})})}export{_ as default};
@@ -22,6 +22,7 @@ export declare const PAD_TOP_TABLET_VAR = "--sf-pad-t-tablet";
22
22
  export declare const PAD_BOTTOM_TABLET_VAR = "--sf-pad-b-tablet";
23
23
  export declare const PAD_LEFT_TABLET_VAR = "--sf-pad-l-tablet";
24
24
  export declare const PAD_RIGHT_TABLET_VAR = "--sf-pad-r-tablet";
25
+ export declare const SECTION_PAD_CLASS = "sf-section-pad";
25
26
  export declare function sectionPadAttrs(v: PadValues): {
26
27
  className: string;
27
28
  style: CSSProperties;
@@ -61,6 +62,24 @@ export declare function resolveSectionPadding(props: SectionPaddingProps, fallba
61
62
  top?: number;
62
63
  bottom?: number;
63
64
  };
65
+ export declare const BAND_PAD_KEYS: {
66
+ readonly top: "padTop";
67
+ readonly bottom: "padBottom";
68
+ readonly left: "padLeft";
69
+ readonly right: "padRight";
70
+ };
71
+ export declare const BAND_PAD_UNIT_KEY = "padUnit";
72
+ export type BandPad = {
73
+ className?: string;
74
+ style: CSSProperties;
75
+ };
76
+ export declare function bandTopBottom(props: Record<string, unknown>, fallback: SectionPaddingDefault): {
77
+ top?: number;
78
+ bottom?: number;
79
+ };
80
+ export declare function bandPadAttrs(props: Record<string, unknown>, fallback: SectionPaddingDefault, opts?: {
81
+ noTop?: boolean;
82
+ }): BandPad;
64
83
  export type PadValues = {
65
84
  top?: unknown;
66
85
  bottom?: unknown;
@@ -86,6 +105,7 @@ export declare const SECTION_PAD_KEYS: {
86
105
  readonly left: "sectionPaddingLeft";
87
106
  readonly right: "sectionPaddingRight";
88
107
  };
108
+ export declare const BAND_TO_SECTION_PAD: ReadonlyArray<readonly [string, string]>;
89
109
  export declare function padValuesOf(props: Record<string, unknown>, keys?: Record<"top" | "bottom" | "left" | "right", string>, sides?: boolean, unitKey?: string | undefined): PadValues;
90
110
  export declare function wrapperPadAttrs(v: PadValues): {
91
111
  className: string;
@@ -1 +1 @@
1
- import{storedUnit as w}from"../../../format/lib/content/css-length.js";import{phoneKey as S,resolveViewValue as H,tabletKey as E,viewKeyAt as P}from"efficient-easel/draw";import{SECTION_PAD_UNIT_KEY as y,SITE_SIDE as F,convertLength as G,isLengthUnit as M,isSiteSide as L,sideLengthAt as U,sideValueAt as j,withLength as g}from"efficient-easel/screen/lib/content/length-units";import{siteSideRoom as O}from"../../../format/lib/content/page-width.js";import{viewRules as k}from"../../../format/lib/content/view-overrides.js";import{finiteNumber as l}from"../../../format/lib/finite-number.js";const Y={min:10,max:200,step:10};function $(t,e,n,o=0){const s=l(t),i=l(e);if(s===void 0&&i===void 0)return;const r=h(n),a=p=>p===void 0?void 0:r==="px"?p:g(p,r,o);return{paddingTop:a(s),paddingBottom:a(i)}}const h=t=>w(t),K="sf-pad-top-phone",q="sf-pad-bottom-phone",z="--sf-pad-t-phone",J="--sf-pad-b-phone",Q="sf-pad-left-phone",W="sf-pad-right-phone",X="--sf-pad-l-phone",Z="--sf-pad-r-phone",v="sf-pad-top-tablet",tt="sf-pad-bottom-tablet",et="sf-pad-left-tablet",ot="sf-pad-right-tablet",nt="--sf-pad-t-tablet",st="--sf-pad-b-tablet",it="--sf-pad-l-tablet",dt="--sf-pad-r-tablet";function D(t){const e={desktop:t.unit,tablet:t.unitTablet,phone:t.unitPhone},n=$(t.top,t.bottom,t.unit,t.frame),o=at({left:t.left,right:t.right},{top:t.topPhone,bottom:t.bottomPhone,left:t.leftPhone,right:t.rightPhone},{top:t.topTablet,bottom:t.bottomTablet,left:t.leftTablet,right:t.rightTablet},{top:t.top,bottom:t.bottom,left:t.left,right:t.right},e,t.frame,t.sideSpace);return n===void 0&&!o.classes.length&&!Object.keys(o.style).length?null:{className:["sf-section-pad",...o.classes].join(" "),style:{...n,...o.style}}}const rt=t=>L(t)?t:l(t),pt=[["top","paddingTop",[v,nt],[K,z]],["bottom","paddingBottom",[tt,st],[q,J]],["left","paddingLeft",[et,it],[Q,X]],["right","paddingRight",[ot,dt],[W,Z]]];function _t(t,e,n){return!M(e)||e==="px"?t:G(t,"px",e,n,{min:0,max:Y.max,step:1})}function ft(t,e,n,o={},s=0){const i=(b,u)=>{if(u==="px")return`${b}px`;const f=g(b,u,s);return typeof f=="number"?`${f}px`:f},r={n:t,[E("n")]:e,[S("n")]:n,u:o.desktop,[E("u")]:o.tablet,[S("u")]:o.phone},a=H("spacing",l(t),l(e),l(n),k()),p=(b,u,f)=>{if(j(r,{side:"n"},b,"side",["side"])?.value===F)return O().value;const c=U(r,{side:"n"},"u",b,"side");if(!c)return;const A=u!==null&&!f&&c.unit==="px"&&typeof a[u]=="number";return i(A?a[u]:c.value,c.unit)},_=p("desktop",null,!0),m={},T=p("tablet","tablet",e!==void 0);T!==void 0&&(e!==void 0||T!==_)&&(m.tablet=T);const d=p("mobile","phone",n!==void 0);return d!==void 0&&(n!==void 0||d!==_)&&(m.phone=d),m}function at(t,e,n={},o=t,s={},i=0,r="box"){const a={},p={},_=[],m=O(r);let T=!1;for(const[d,b,...u]of pt){const f=d==="left"||d==="right"?rt:l,c=f(t[d]),A=d==="top"||d==="bottom"?i:0;L(c)?(a[b]=m.value,T=!0):c!==void 0&&(a[b]=h(s.desktop)==="px"?c:g(c,h(s.desktop),A));const R=ft(f(o[d]),f(n[d]),f(e[d]),s,A);for(const[V,[C,I]]of[["tablet",u[0]],["phone",u[1]]]){const x=R[V];x!==void 0&&(_.push(C),p[I]=x,x===m.value&&(T=!0))}}return T&&_.push(...m.className.split(" ")),{classes:_,style:{...a,...p}}}function B(t,e,n){const o=l(t)??n,s=l(e);return o===void 0?s:s===void 0?o:o+s}function Pt(t,e={}){return{top:B(t.padTop,t.sectionPaddingTop,e.top),bottom:B(t.padBottom,t.sectionPaddingBottom,e.bottom)}}const N={top:"sectionPaddingTop",bottom:"sectionPaddingBottom",left:"sectionPaddingLeft",right:"sectionPaddingRight"};function At(t,e=N,n=!0,o=e===N?y:void 0){const s={};if(o){t[o]!==void 0&&(s.unit=t[o]);for(const i of["tablet","mobile"])t[P(o,i)]!==void 0&&(s[P("unit",i)]=t[P(o,i)])}for(const i of n?["top","bottom","left","right"]:["top","bottom"]){s[i]=t[e[i]];for(const r of["tablet","mobile"])s[P(i,r)]=t[P(e[i],r)]}return s}function ht(t){return D(t)}function xt(t,e){const n=(o,s)=>typeof o!="number"?void 0:h(s)==="px"?o+e:o;return D({...t,frame:e,top:n(t.top,t.unit),bottom:n(t.bottom,t.unit),topTablet:n(t.topTablet,t.unitTablet),bottomTablet:n(t.bottomTablet,t.unitTablet),topPhone:n(t.topPhone,t.unitPhone),bottomPhone:n(t.bottomPhone,t.unitPhone)})}export{q as PAD_BOTTOM_PHONE_CLASS,J as PAD_BOTTOM_PHONE_VAR,tt as PAD_BOTTOM_TABLET_CLASS,st as PAD_BOTTOM_TABLET_VAR,Q as PAD_LEFT_PHONE_CLASS,X as PAD_LEFT_PHONE_VAR,et as PAD_LEFT_TABLET_CLASS,it as PAD_LEFT_TABLET_VAR,W as PAD_RIGHT_PHONE_CLASS,Z as PAD_RIGHT_PHONE_VAR,ot as PAD_RIGHT_TABLET_CLASS,dt as PAD_RIGHT_TABLET_VAR,K as PAD_TOP_PHONE_CLASS,z as PAD_TOP_PHONE_VAR,v as PAD_TOP_TABLET_CLASS,nt as PAD_TOP_TABLET_VAR,Y as SECTION_PADDING,N as SECTION_PAD_KEYS,_t as padDefaultIn,at as padSideAttrs,rt as padSideValue,At as padValuesOf,Pt as resolveSectionPadding,xt as rootPadAttrs,D as sectionPadAttrs,$ as sectionPadStyle,ft as sideViewLengths,ht as wrapperPadAttrs};
1
+ import{storedUnit as M}from"../../../format/lib/content/css-length.js";import{phoneKey as O,resolveViewValue as U,tabletKey as L,viewKeyAt as _}from"efficient-easel/draw";import{SECTION_PAD_UNIT_KEY as N,SITE_SIDE as j,convertLength as Y,isLengthUnit as k,isSiteSide as B,sideLengthAt as K,sideValueAt as $,withLength as g}from"efficient-easel/screen/lib/content/length-units";import{siteSideRoom as R}from"../../../format/lib/content/page-width.js";import{viewRules as q}from"../../../format/lib/content/view-overrides.js";import{finiteNumber as f}from"../../../format/lib/finite-number.js";const z={min:10,max:200,step:10};function J(t,o,e,n=0){const s=f(t),i=f(o);if(s===void 0&&i===void 0)return;const d=h(e),r=p=>p===void 0?void 0:d==="px"?p:g(p,d,n);return{paddingTop:r(s),paddingBottom:r(i)}}const h=t=>M(t),Q="sf-pad-top-phone",W="sf-pad-bottom-phone",X="--sf-pad-t-phone",Z="--sf-pad-b-phone",v="sf-pad-left-phone",tt="sf-pad-right-phone",ot="--sf-pad-l-phone",et="--sf-pad-r-phone",nt="sf-pad-top-tablet",st="sf-pad-bottom-tablet",it="sf-pad-left-tablet",dt="sf-pad-right-tablet",rt="--sf-pad-t-tablet",pt="--sf-pad-b-tablet",at="--sf-pad-l-tablet",ft="--sf-pad-r-tablet",C="sf-section-pad";function S(t){const o={desktop:t.unit,tablet:t.unitTablet,phone:t.unitPhone},e=J(t.top,t.bottom,t.unit,t.frame),n=mt({left:t.left,right:t.right},{top:t.topPhone,bottom:t.bottomPhone,left:t.leftPhone,right:t.rightPhone},{top:t.topTablet,bottom:t.bottomTablet,left:t.leftTablet,right:t.rightTablet},{top:t.top,bottom:t.bottom,left:t.left,right:t.right},o,t.frame,t.sideSpace);return e===void 0&&!n.classes.length&&!Object.keys(n.style).length?null:{className:[C,...n.classes].join(" "),style:{...e,...n.style}}}const ct=t=>B(t)?t:f(t),ut=[["top","paddingTop",[nt,rt],[Q,X]],["bottom","paddingBottom",[st,pt],[W,Z]],["left","paddingLeft",[it,at],[v,ot]],["right","paddingRight",[dt,ft],[tt,et]]];function I(t,o,e){return!k(o)||o==="px"?t:Y(t,"px",o,e,{min:0,max:z.max,step:1})}function lt(t,o,e,n={},s=0){const i=(m,u)=>{if(u==="px")return`${m}px`;const c=g(m,u,s);return typeof c=="number"?`${c}px`:c},d={n:t,[L("n")]:o,[O("n")]:e,u:n.desktop,[L("u")]:n.tablet,[O("u")]:n.phone},r=U("spacing",f(t),f(o),f(e),q()),p=(m,u,c)=>{if($(d,{side:"n"},m,"side",["side"])?.value===j)return R().value;const l=K(d,{side:"n"},"u",m,"side");if(!l)return;const A=u!==null&&!c&&l.unit==="px"&&typeof r[u]=="number";return i(A?r[u]:l.value,l.unit)},P=p("desktop",null,!0),b={},T=p("tablet","tablet",o!==void 0);T!==void 0&&(o!==void 0||T!==P)&&(b.tablet=T);const a=p("mobile","phone",e!==void 0);return a!==void 0&&(e!==void 0||a!==P)&&(b.phone=a),b}function mt(t,o,e={},n=t,s={},i=0,d="box"){const r={},p={},P=[],b=R(d);let T=!1;for(const[a,m,...u]of ut){const c=a==="left"||a==="right"?ct:f,l=c(t[a]),A=a==="top"||a==="bottom"?i:0;B(l)?(r[m]=b.value,T=!0):l!==void 0&&(r[m]=h(s.desktop)==="px"?l:g(l,h(s.desktop),A));const w=lt(c(n[a]),c(e[a]),c(o[a]),s,A);for(const[y,[F,G]]of[["tablet",u[0]],["phone",u[1]]]){const x=w[y];x!==void 0&&(P.push(F),p[G]=x,x===b.value&&(T=!0))}}return T&&P.push(...b.className.split(" ")),{classes:P,style:{...r,...p}}}function V(t,o,e){const n=f(t)??e,s=f(o);return n===void 0?s:s===void 0?n:n+s}function St(t,o={}){return{top:V(t.padTop,t.sectionPaddingTop,o.top),bottom:V(t.padBottom,t.sectionPaddingBottom,o.bottom)}}const H={top:"padTop",bottom:"padBottom",left:"padLeft",right:"padRight"},E="padUnit";function bt(t,o){const e=t[E],n=(s,i,d)=>{const r=f(s)??(d===void 0?void 0:I(d,e,"desktop")),p=f(i);return p===void 0?r:(r??0)+I(p,e,"desktop")};return{top:n(t.padTop,t.sectionPaddingTop,o.top),bottom:n(t.padBottom,t.sectionPaddingBottom,o.bottom)}}function Et(t,o,e={}){const n=bt(t,o),s={...Tt(t,H,!0,E),top:n.top,bottom:n.bottom};e.noTop&&Object.assign(s,{top:0,topTablet:void 0,topPhone:void 0});const i=S(s),d=i?i.className.split(" ").filter(r=>r!==C):[];return{...d.length?{className:d.join(" ")}:{},style:i?.style??{}}}const D={top:"sectionPaddingTop",bottom:"sectionPaddingBottom",left:"sectionPaddingLeft",right:"sectionPaddingRight"},Dt=[...["top","bottom","left","right"].map(t=>[H[t],D[t]]),[E,N]].flatMap(([t,o])=>[[t,o],...["tablet","mobile"].map(e=>[_(t,e),_(o,e)])]);function Tt(t,o=D,e=!0,n=o===D?N:void 0){const s={};if(n){t[n]!==void 0&&(s.unit=t[n]);for(const i of["tablet","mobile"])t[_(n,i)]!==void 0&&(s[_("unit",i)]=t[_(n,i)])}for(const i of e?["top","bottom","left","right"]:["top","bottom"]){s[i]=t[o[i]];for(const d of["tablet","mobile"])s[_(i,d)]=t[_(o[i],d)]}return s}function Ot(t){return S(t)}function Lt(t,o){const e=(n,s)=>typeof n!="number"?void 0:h(s)==="px"?n+o:n;return S({...t,frame:o,top:e(t.top,t.unit),bottom:e(t.bottom,t.unit),topTablet:e(t.topTablet,t.unitTablet),bottomTablet:e(t.bottomTablet,t.unitTablet),topPhone:e(t.topPhone,t.unitPhone),bottomPhone:e(t.bottomPhone,t.unitPhone)})}export{H as BAND_PAD_KEYS,E as BAND_PAD_UNIT_KEY,Dt as BAND_TO_SECTION_PAD,W as PAD_BOTTOM_PHONE_CLASS,Z as PAD_BOTTOM_PHONE_VAR,st as PAD_BOTTOM_TABLET_CLASS,pt as PAD_BOTTOM_TABLET_VAR,v as PAD_LEFT_PHONE_CLASS,ot as PAD_LEFT_PHONE_VAR,it as PAD_LEFT_TABLET_CLASS,at as PAD_LEFT_TABLET_VAR,tt as PAD_RIGHT_PHONE_CLASS,et as PAD_RIGHT_PHONE_VAR,dt as PAD_RIGHT_TABLET_CLASS,ft as PAD_RIGHT_TABLET_VAR,Q as PAD_TOP_PHONE_CLASS,X as PAD_TOP_PHONE_VAR,nt as PAD_TOP_TABLET_CLASS,rt as PAD_TOP_TABLET_VAR,z as SECTION_PADDING,C as SECTION_PAD_CLASS,D as SECTION_PAD_KEYS,Et as bandPadAttrs,bt as bandTopBottom,I as padDefaultIn,mt as padSideAttrs,ct as padSideValue,Tt as padValuesOf,St as resolveSectionPadding,Lt as rootPadAttrs,S as sectionPadAttrs,J as sectionPadStyle,lt as sideViewLengths,Ot as wrapperPadAttrs};
@@ -1 +1 @@
1
- import{jsx as f}from"react/jsx-runtime";import l from"../../../../../components/Footprint.js";import{FOOTPRINT_DEFAULTS as u,footprintOfficeOfRow as h}from"../../../../../../format/lib/content/footprint.js";import{DEALERS_SOURCE as c,declaredBlockSource as s,sourcedRows as y}from"../../../../../../format/lib/content/block-sources.js";import{parseDealerListPosition as T}from"../../../../dealer-source.js";import{hidableText as m}from"efficient-easel/draw";import{parseSectionHeadPlacement as g}from"../../../../../../format/lib/sections/section-head-placement.js";import{phRows as S,phHide as a}from"../../scaffold.js";import{say as t}from"../../../../../../format/lib/editor-words.js";import{CARD_TEMPLATE_SLOT as O}from"../../../../../../format/lib/content/card-template.js";import{cardPressTitlesOf as w}from"../../../card-press-titles.js";import{FootprintMeta as C,FOOTPRINT_PH as d}from"../../../../../../format/lib/document/blocks/general/Footprint/meta.js";const P=()=>[{role:t("Headquarters"),city:t("City"),country:t("Country"),address:t("Street address"),lat:0,lng:0,hq:!0},{role:t("Office"),city:t("City"),country:t("Country"),address:t("Street address"),lat:0,lng:0,hq:!1}],R=()=>[{role:t("Headquarters"),city:t("City"),country:t("Country"),address:t("Street address"),hq:"true"},{role:t("Office"),city:t("City"),country:t("Country"),address:t("Street address")}];function x(e){const o=()=>S(e.offices,P(),e.editor),i=s(e);if(!i||i===c)return o();const n=e.editor?.isEditing===!0,r=y(e,n,R());return!r.sample&&!r.rows.length?o():r.rows.map(h)}const I={...C,render:e=>{const o=g(e.headPlacement)==="own-box",i=r=>o?void 0:r,n=x(e);return f(l,{sectionNumber:i(a(e.sectionNumber,d.sectionNumber,e.editor)),heading:i(a(e.heading,d.heading,e.editor)),tagline:i(a(e.tagline,d.tagline,e.editor)),omitHead:o,offices:n,mapTheme:e.mapTheme??u.mapTheme,padTop:o?0:typeof e.padTop=="number"?e.padTop:120,padBottom:typeof e.padBottom=="number"?e.padBottom:120,editing:e.editor?.isEditing,dealers:s(e)===c,search:e.search===!0,searchHint:m(e.searchHint),noMatchText:m(e.noMatchText),listPosition:T(e.listPosition),showDistance:e.showDistance!==!1,template:e.template,ownerId:String(e.id??""),pressTitles:w(e,O)})}};export{I as FootprintRender};
1
+ import{jsx as f}from"react/jsx-runtime";import{bandPadAttrs as l}from"../../../../content/section-padding.js";import{innerPaddingFallback as u}from"../../../passes/section-padding.js";import h from"../../../../../components/Footprint.js";import{FOOTPRINT_DEFAULTS as y,footprintOfficeOfRow as T}from"../../../../../../format/lib/content/footprint.js";import{DEALERS_SOURCE as s,declaredBlockSource as c,sourcedRows as g}from"../../../../../../format/lib/content/block-sources.js";import{parseDealerListPosition as S}from"../../../../dealer-source.js";import{hidableText as m}from"efficient-easel/draw";import{parseSectionHeadPlacement as O}from"../../../../../../format/lib/sections/section-head-placement.js";import{phRows as P,phHide as a}from"../../scaffold.js";import{say as e}from"../../../../../../format/lib/editor-words.js";import{CARD_TEMPLATE_SLOT as w}from"../../../../../../format/lib/content/card-template.js";import{cardPressTitlesOf as C}from"../../../card-press-titles.js";import{FootprintMeta as R,FOOTPRINT_PH as d}from"../../../../../../format/lib/document/blocks/general/Footprint/meta.js";const b=()=>[{role:e("Headquarters"),city:e("City"),country:e("Country"),address:e("Street address"),lat:0,lng:0,hq:!0},{role:e("Office"),city:e("City"),country:e("Country"),address:e("Street address"),lat:0,lng:0,hq:!1}],x=()=>[{role:e("Headquarters"),city:e("City"),country:e("Country"),address:e("Street address"),hq:"true"},{role:e("Office"),city:e("City"),country:e("Country"),address:e("Street address")}];function E(t){const i=()=>P(t.offices,b(),t.editor),r=c(t);if(!r||r===s)return i();const n=t.editor?.isEditing===!0,o=g(t,n,x());return!o.sample&&!o.rows.length?i():o.rows.map(T)}const v={...R,render:t=>{const i=O(t.headPlacement)==="own-box",r=o=>i?void 0:o,n=E(t);return f(h,{sectionNumber:r(a(t.sectionNumber,d.sectionNumber,t.editor)),heading:r(a(t.heading,d.heading,t.editor)),tagline:r(a(t.tagline,d.tagline,t.editor)),omitHead:i,offices:n,mapTheme:t.mapTheme??y.mapTheme,bandPad:l(t,u("Footprint"),{noTop:i}),editing:t.editor?.isEditing,dealers:c(t)===s,search:t.search===!0,searchHint:m(t.searchHint),noMatchText:m(t.noMatchText),listPosition:S(t.listPosition),showDistance:t.showDistance!==!1,template:t.template,ownerId:String(t.id??""),pressTitles:C(t,w)})}};export{v as FootprintRender};
@@ -1 +1 @@
1
- import{jsx as f}from"react/jsx-runtime";import u from"../../../../../components/ParagraphsA.js";import{PH as A}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phHide as o}from"../../scaffold.js";import{ParagraphsAMeta as H,PARAGRAPHS_A_PH as a}from"../../../../../../format/lib/document/blocks/general/ParagraphsA/meta.js";const w={...H,render:({eyebrow:e,lead:t,stats:s,foundersHeading:p,foundersBody:d,attribution:m,padTop:n,padBottom:i,editor:r})=>f(u,{takesViewHide:!0,eyebrow:o(e,a.eyebrow,r),lead:o(t,A.body,r),stats:s,foundersHeading:o(p,a.foundersHeading,r),foundersBody:o(d,a.foundersBody,r),attribution:o(m,a.attribution,r),padTop:n,padBottom:i})};export{w as ParagraphsARender};
1
+ import{jsx as f}from"react/jsx-runtime";import{bandPadAttrs as p}from"../../../../content/section-padding.js";import{innerPaddingFallback as u}from"../../../passes/section-padding.js";import P from"../../../../../components/ParagraphsA.js";import{PH as b}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phHide as o}from"../../scaffold.js";import{ParagraphsAMeta as A,PARAGRAPHS_A_PH as a}from"../../../../../../format/lib/document/blocks/general/ParagraphsA/meta.js";const x={...A,render:e=>{const{eyebrow:t,lead:d,stats:i,foundersHeading:n,foundersBody:s,attribution:m,editor:r}=e;return f(P,{takesViewHide:!0,eyebrow:o(t,a.eyebrow,r),lead:o(d,b.body,r),stats:i,foundersHeading:o(n,a.foundersHeading,r),foundersBody:o(s,a.foundersBody,r),attribution:o(m,a.attribution,r),bandPad:p(e,u("ParagraphsA"))})}};export{x as ParagraphsARender};
@@ -1 +1 @@
1
- import{jsx as r,Fragment as g}from"react/jsx-runtime";import h from"../../../../../components/ProcessSteps.js";import{CardTemplateRows as x}from"../../../../../components/CardRowContext.js";import{ClientRowsReader as R,clientRowsKey as T}from"../../../../../components/ClientRows.js";import{blockSourceSpec as y,declaredBlockSource as b,sourcedRows as P}from"../../../../../../format/lib/content/block-sources.js";import{imageTextRowsHand as H}from"../../../../../../format/lib/content/image-text-rows.js";import{parseSectionHeadPlacement as B}from"../../../../../../format/lib/sections/section-head-placement.js";import{PH as t}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phRows as C,phHide as s,ctaHide as k}from"../../scaffold.js";import{say as l}from"../../../../../../format/lib/editor-words.js";import{ProcessStepsMeta as p,PROCESS_PH as v}from"../../../../../../format/lib/document/blocks/general/ProcessSteps/meta.js";const D=()=>[{image:"",tag:l("{letter} · Step",{letter:"A"}),meta:l("Short detail line"),title:l("Step *one*"),copy:l("Describe this step in a sentence or two."),specs:[{label:t.label,value:t.value},{label:t.label,value:t.value},{label:t.label,value:t.value},{label:t.label,value:t.value}]},{image:"",tag:l("{letter} · Step",{letter:"B"}),meta:l("Short detail line"),title:l("Step *two*"),copy:l("Describe this step in a sentence or two."),specs:[{label:t.label,value:t.value},{label:t.label,value:t.value},{label:t.label,value:t.value},{label:t.label,value:t.value}]},{image:"",tag:l("{letter} · Step",{letter:"C"}),meta:l("Short detail line"),title:l("Step *three*"),copy:l("Describe this step in a sentence or two."),specs:[{label:t.label,value:t.value},{label:t.label,value:t.value},{label:t.label,value:t.value},{label:t.label,value:t.value}]}];function E(e,o){const i=b(e);return!o&&y(i)?.useRows?{client:i,rows:[]}:{client:null,rows:[...P(e,o).rows]}}const J={...p,render:e=>{const o=B(e.headPlacement)==="own-box",i=a=>o?void 0:a,u=e.editor?.isEditing===!0,w=H(e),n=a=>r(h,{rows:w,...a!==void 0?{copies:a}:{},num:i(s(e.num,v.num,e.editor)),title:i(s(e.title,v.title,e.editor)),description:i(s(e.description,t.body,e.editor)),omitHead:o,boxes:e.boxes,steps:C(e.steps,D(),e.editor),columns:typeof e.columns=="number"?e.columns:3,cta:k(e.ctaText,e.ctaHref),padTop:o?0:typeof e.padTop=="number"?e.padTop:120,padBottom:typeof e.padBottom=="number"?e.padBottom:120,cardImage:e.cardImage,cardText:e.cardText,editing:e.editor?.isEditing});if(!b(e))return n();const m=(a,d)=>a.length?r(x,{ownerId:String(e.id??""),ownerType:"ProcessSteps",Template:e.template,rows:a,...d?{items:d}:{},fallback:n(null),children:S=>n(S)}):u?n(null):r(g,{}),{client:c,rows:f}=E(e,u);return c?r(R,{source:c,props:e,children:a=>m(a?.rows??[],a?.items)},T(c)):m(f)}};export{J as ProcessStepsRender,E as imageTextSourceRows};
1
+ import{jsx as n,Fragment as g}from"react/jsx-runtime";import{bandPadAttrs as h}from"../../../../content/section-padding.js";import{innerPaddingFallback as x}from"../../../passes/section-padding.js";import P from"../../../../../components/ProcessSteps.js";import{CardTemplateRows as R}from"../../../../../components/CardRowContext.js";import{ClientRowsReader as T,clientRowsKey as y}from"../../../../../components/ClientRows.js";import{blockSourceSpec as H,declaredBlockSource as b,sourcedRows as k}from"../../../../../../format/lib/content/block-sources.js";import{imageTextRowsHand as C}from"../../../../../../format/lib/content/image-text-rows.js";import{parseSectionHeadPlacement as B}from"../../../../../../format/lib/sections/section-head-placement.js";import{PH as t}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phRows as D,phHide as s,ctaHide as E}from"../../scaffold.js";import{say as l}from"../../../../../../format/lib/editor-words.js";import{ProcessStepsMeta as F,PROCESS_PH as v}from"../../../../../../format/lib/document/blocks/general/ProcessSteps/meta.js";const I=()=>[{image:"",tag:l("{letter} · Step",{letter:"A"}),meta:l("Short detail line"),title:l("Step *one*"),copy:l("Describe this step in a sentence or two."),specs:[{label:t.label,value:t.value},{label:t.label,value:t.value},{label:t.label,value:t.value},{label:t.label,value:t.value}]},{image:"",tag:l("{letter} · Step",{letter:"B"}),meta:l("Short detail line"),title:l("Step *two*"),copy:l("Describe this step in a sentence or two."),specs:[{label:t.label,value:t.value},{label:t.label,value:t.value},{label:t.label,value:t.value},{label:t.label,value:t.value}]},{image:"",tag:l("{letter} · Step",{letter:"C"}),meta:l("Short detail line"),title:l("Step *three*"),copy:l("Describe this step in a sentence or two."),specs:[{label:t.label,value:t.value},{label:t.label,value:t.value},{label:t.label,value:t.value},{label:t.label,value:t.value}]}];function _(e,o){const r=b(e);return!o&&H(r)?.useRows?{client:r,rows:[]}:{client:null,rows:[...k(e,o).rows]}}const V={...F,render:e=>{const o=B(e.headPlacement)==="own-box",r=a=>o?void 0:a,u=e.editor?.isEditing===!0,w=C(e),i=a=>n(P,{rows:w,...a!==void 0?{copies:a}:{},num:r(s(e.num,v.num,e.editor)),title:r(s(e.title,v.title,e.editor)),description:r(s(e.description,t.body,e.editor)),omitHead:o,boxes:e.boxes,steps:D(e.steps,I(),e.editor),columns:typeof e.columns=="number"?e.columns:3,cta:E(e.ctaText,e.ctaHref),bandPad:h(e,x("ProcessSteps"),{noTop:o}),cardImage:e.cardImage,cardText:e.cardText,editing:e.editor?.isEditing});if(!b(e))return i();const m=(a,d)=>a.length?n(R,{ownerId:String(e.id??""),ownerType:"ProcessSteps",Template:e.template,rows:a,...d?{items:d}:{},fallback:i(null),children:f=>i(f)}):u?i(null):n(g,{}),{client:c,rows:S}=_(e,u);return c?n(T,{source:c,props:e,children:a=>m(a?.rows??[],a?.items)},y(c)):m(S)}};export{V as ProcessStepsRender,_ as imageTextSourceRows};
@@ -1 +1 @@
1
- import{jsx as d}from"react/jsx-runtime";import S from"../../../../../components/StatsParagraph.js";import{resolveSectionBackground as g}from"../../../../../../format/lib/content/section-background.js";import{parseSectionHeadPlacement as P}from"../../../../../../format/lib/sections/section-head-placement.js";import{PH as t}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phRows as H,phHide as s}from"../../scaffold.js";import{SECTION_BG_BUILT_IN as _}from"../../../../../../format/lib/document/blocks/general/section-bg-built-in.js";import{say as e}from"../../../../../../format/lib/editor-words.js";import{StatsParagraphMeta as v,STATS_PARAGRAPH_PH as i}from"../../../../../../format/lib/document/blocks/general/StatsParagraph/meta.js";const w=()=>[{value:"00",label:t.label,sub:e("Short description of this figure.")},{value:"00",label:t.label,sub:e("Short description of this figure.")},{value:"00",label:t.label,sub:e("Short description of this figure.")},{value:"00",label:t.label,sub:e("Short description of this figure.")}],E={...v,render:({eyebrow:p,title:f,desc:m,stats:b,background:u,padTop:l,padBottom:n,headPlacement:c,editor:r})=>{const o=P(c)==="own-box",a=h=>o?void 0:h;return d(S,{eyebrow:a(s(p,i.eyebrow,r)),title:a(s(f,i.title,r)),desc:a(s(m,i.desc,r)),omitHead:o,stats:H(b,w(),r),background:g(u,_.StatsParagraph),padTop:o?0:typeof l=="number"?l:120,padBottom:typeof n=="number"?n:120,editing:r?.isEditing})}};export{E as StatsParagraphRender};
1
+ import{jsx as h}from"react/jsx-runtime";import{bandPadAttrs as u}from"../../../../content/section-padding.js";import{innerPaddingFallback as g}from"../../../passes/section-padding.js";import S from"../../../../../components/StatsParagraph.js";import{resolveSectionBackground as P}from"../../../../../../format/lib/content/section-background.js";import{parseSectionHeadPlacement as w}from"../../../../../../format/lib/sections/section-head-placement.js";import{PH as r}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phRows as H,phHide as i}from"../../scaffold.js";import{SECTION_BG_BUILT_IN as _}from"../../../../../../format/lib/document/blocks/general/section-bg-built-in.js";import{say as a}from"../../../../../../format/lib/editor-words.js";import{StatsParagraphMeta as v,STATS_PARAGRAPH_PH as s}from"../../../../../../format/lib/document/blocks/general/StatsParagraph/meta.js";const x=()=>[{value:"00",label:r.label,sub:a("Short description of this figure.")},{value:"00",label:r.label,sub:a("Short description of this figure.")},{value:"00",label:r.label,sub:a("Short description of this figure.")},{value:"00",label:r.label,sub:a("Short description of this figure.")}],C={...v,render:n=>{const{eyebrow:d,title:l,desc:m,stats:p,background:f,headPlacement:b,editor:t}=n,e=w(b)==="own-box",o=c=>e?void 0:c;return h(S,{eyebrow:o(i(d,s.eyebrow,t)),title:o(i(l,s.title,t)),desc:o(i(m,s.desc,t)),omitHead:e,stats:H(p,x(),t),background:P(f,_.StatsParagraph),bandPad:u(n,g("StatsParagraph"),{noTop:e}),editing:t?.isEditing})}};export{C as StatsParagraphRender};
@@ -1 +1 @@
1
- import{jsx as d}from"react/jsx-runtime";import n from"../../../../../components/Timeline.js";import r from"../../../../../components/TimelineTrack.js";import{resolveSectionBackground as f}from"../../../../../../format/lib/content/section-background.js";import{SECTION_BG_BUILT_IN as l}from"../../../../../../format/lib/document/blocks/general/section-bg-built-in.js";import{TIMELINE_TRACK_PH as a,timelineTrackScaffoldEntries as c}from"../../../../../../format/lib/document/blocks/general/TimelineTrack/meta.js";import{phRows as m,phHide as e,ctaHide as o}from"../../scaffold.js";import{TimelineMeta as T,TIMELINE_PH as i,timelineScaffoldEntries as u}from"../../../../../../format/lib/document/blocks/general/Timeline/meta.js";function b(t){return{date:t.date,title:t.title,blurb:t.body,future:t.future}}const H={...T,render:t=>t.layout==="track"?d(r,{eyebrow:e(t.eyebrow,a.eyebrow,t.editor),title:e(t.title,a.title,t.editor),intro:e(t.intro,a.intro,t.editor),entries:m(Array.isArray(t.entries)?t.entries.map(b):[],c(),t.editor),cta:o(t.ctaText,t.ctaHref,t.editor),background:f(t.background,l.TimelineTrack),padTop:typeof t.padTop=="number"?t.padTop:120,padBottom:typeof t.padBottom=="number"?t.padBottom:120,editing:t.editor?.isEditing}):d(n,{layout:t.layout||"split",eyebrow:e(t.eyebrow,i.eyebrow,t.editor),title:e(t.title,i.title,t.editor),intro:e(t.intro,i.intro,t.editor),imageSrc:t.imageSrc||void 0,imageCaption:e(t.imageCaption,i.imageCaption,t.editor),imageMeta:e(t.imageMeta,i.imageMeta,t.editor),cta:o(t.ctaText,t.ctaHref,t.editor),entries:m(t.entries,u(),t.editor),padTop:typeof t.padTop=="number"?t.padTop:120,padBottom:typeof t.padBottom=="number"?t.padBottom:120,editing:t.editor?.isEditing})};export{H as TimelineRender};
1
+ import{jsx as n}from"react/jsx-runtime";import{bandPadAttrs as r}from"../../../../content/section-padding.js";import{innerPaddingFallback as d}from"../../../passes/section-padding.js";import l from"../../../../../components/Timeline.js";import c from"../../../../../components/TimelineTrack.js";import{resolveSectionBackground as f}from"../../../../../../format/lib/content/section-background.js";import{SECTION_BG_BUILT_IN as T}from"../../../../../../format/lib/document/blocks/general/section-bg-built-in.js";import{TIMELINE_TRACK_PH as a,timelineTrackScaffoldEntries as g}from"../../../../../../format/lib/document/blocks/general/TimelineTrack/meta.js";import{phRows as m,phHide as i,ctaHide as o}from"../../scaffold.js";import{TimelineMeta as b,TIMELINE_PH as t,timelineScaffoldEntries as u}from"../../../../../../format/lib/document/blocks/general/Timeline/meta.js";function y(e){return{date:e.date,title:e.title,blurb:e.body,future:e.future}}const C={...b,render:e=>e.layout==="track"?n(c,{eyebrow:i(e.eyebrow,a.eyebrow,e.editor),title:i(e.title,a.title,e.editor),intro:i(e.intro,a.intro,e.editor),entries:m(Array.isArray(e.entries)?e.entries.map(y):[],g(),e.editor),cta:o(e.ctaText,e.ctaHref,e.editor),background:f(e.background,T.TimelineTrack),bandPad:r(e,d("Timeline")),editing:e.editor?.isEditing}):n(l,{layout:e.layout||"split",eyebrow:i(e.eyebrow,t.eyebrow,e.editor),title:i(e.title,t.title,e.editor),intro:i(e.intro,t.intro,e.editor),imageSrc:e.imageSrc||void 0,imageCaption:i(e.imageCaption,t.imageCaption,e.editor),imageMeta:i(e.imageMeta,t.imageMeta,e.editor),cta:o(e.ctaText,e.ctaHref,e.editor),entries:m(e.entries,u(),e.editor),bandPad:r(e,d("Timeline")),editing:e.editor?.isEditing})};export{C as TimelineRender};
@@ -1 +1 @@
1
- import{jsx as a}from"react/jsx-runtime";import d from"../../../../../components/TimelineTrack.js";import{resolveSectionBackground as m}from"../../../../../../format/lib/content/section-background.js";import{parseSectionHeadPlacement as c}from"../../../../../../format/lib/sections/section-head-placement.js";import{phRows as T,phHide as o,ctaHide as f}from"../../scaffold.js";import{SECTION_BG_BUILT_IN as l}from"../../../../../../format/lib/document/blocks/general/section-bg-built-in.js";import{TimelineTrackMeta as b,TIMELINE_TRACK_PH as n,timelineTrackScaffoldEntries as k}from"../../../../../../format/lib/document/blocks/general/TimelineTrack/meta.js";const y={...b,render:e=>{const t=c(e.headPlacement)==="own-box",i=r=>t?void 0:r;return a(d,{eyebrow:i(o(e.eyebrow,n.eyebrow,e.editor)),title:i(o(e.title,n.title,e.editor)),intro:i(o(e.intro,n.intro,e.editor)),omitHead:t,entries:T(e.entries,k(),e.editor),cta:f(e.ctaText,e.ctaHref,e.editor),background:m(e.background,l.TimelineTrack),padTop:t?0:typeof e.padTop=="number"?e.padTop:120,padBottom:typeof e.padBottom=="number"?e.padBottom:120,editing:e.editor?.isEditing})}};export{y as TimelineTrackRender};
1
+ import{jsx as a}from"react/jsx-runtime";import{bandPadAttrs as d}from"../../../../content/section-padding.js";import{innerPaddingFallback as m}from"../../../passes/section-padding.js";import c from"../../../../../components/TimelineTrack.js";import{resolveSectionBackground as T}from"../../../../../../format/lib/content/section-background.js";import{parseSectionHeadPlacement as l}from"../../../../../../format/lib/sections/section-head-placement.js";import{phRows as f,phHide as r,ctaHide as k}from"../../scaffold.js";import{SECTION_BG_BUILT_IN as b}from"../../../../../../format/lib/document/blocks/general/section-bg-built-in.js";import{TimelineTrackMeta as g,TIMELINE_TRACK_PH as n,timelineTrackScaffoldEntries as w}from"../../../../../../format/lib/document/blocks/general/TimelineTrack/meta.js";const S={...g,render:e=>{const i=l(e.headPlacement)==="own-box",t=o=>i?void 0:o;return a(c,{eyebrow:t(r(e.eyebrow,n.eyebrow,e.editor)),title:t(r(e.title,n.title,e.editor)),intro:t(r(e.intro,n.intro,e.editor)),omitHead:i,entries:f(e.entries,w(),e.editor),cta:k(e.ctaText,e.ctaHref,e.editor),background:T(e.background,b.TimelineTrack),bandPad:d(e,m("TimelineTrack"),{noTop:i}),editing:e.editor?.isEditing})}};export{S as TimelineTrackRender};
@@ -1 +1 @@
1
- import{jsx as p}from"react/jsx-runtime";import f from"../../../../../components/TitleWithButtons.js";import{readHidable as b}from"efficient-easel/draw";import{phRows as h,phHide as _}from"../../scaffold.js";import{TitleWithButtonsMeta as a,TITLE_WITH_BUTTONS_PH as c,TITLE_WITH_BUTTONS_SCAFFOLD_BUTTONS as g}from"../../../../../../format/lib/document/blocks/general/TitleWithButtons/meta.js";const I={...a,render:({title:n,buttons:s,padTop:o,padBottom:i,buttonsAlign:T,buttonsAlignTablet:m,buttonsAlignPhone:l,editor:t})=>{const e=T,d=e==="center"||e==="left",r=b(n),u=r.hidden?"":r.text.trim();return p(f,{title:d&&!u?void 0:_(n,c.title,t),buttons:h(s,[...g],t),padTop:typeof o=="number"?o:140,padBottom:typeof i=="number"?i:140,buttonsAlign:e,buttonsAlignTablet:m,buttonsAlignPhone:l,editing:t?.isEditing})}};export{I as TitleWithButtonsRender};
1
+ import{jsx as a}from"react/jsx-runtime";import{bandPadAttrs as b}from"../../../../content/section-padding.js";import{innerPaddingFallback as u}from"../../../passes/section-padding.js";import g from"../../../../../components/TitleWithButtons.js";import{readHidable as h}from"efficient-easel/draw";import{phRows as f,phHide as c}from"../../scaffold.js";import{TitleWithButtonsMeta as p,TITLE_WITH_BUTTONS_PH as A,TITLE_WITH_BUTTONS_SCAFFOLD_BUTTONS as _}from"../../../../../../format/lib/document/blocks/general/TitleWithButtons/meta.js";const S={...p,render:o=>{const{title:i,buttons:r,buttonsAlign:s,buttonsAlignTablet:l,buttonsAlignPhone:d,editor:t}=o,n=s,T=n==="center"||n==="left",e=h(i),m=e.hidden?"":e.text.trim();return a(g,{title:T&&!m?void 0:c(i,A.title,t),buttons:f(r,[..._],t),bandPad:b(o,u("TitleWithButtons")),buttonsAlign:n,buttonsAlignTablet:l,buttonsAlignPhone:d,editing:t?.isEditing})}};export{S as TitleWithButtonsRender};
@@ -1 +1 @@
1
- import{siteLengthHeld as D,storedUnit as x}from"../../../../../format/lib/content/css-length.js";import{SECTION_WIDTH_KEYS as G}from"../../../../../format/lib/content/section-width.js";import{BLOCK_LENGTH_KEYS as I,blockLengthUnitKey as M}from"../../../content/block-size.js";import{viewStoreKeys as v}from"../../../../../format/lib/animation/views.js";import{BOX as W,INNER_BOX as C,LABEL_FACE as U,TEXT as R,boxPadding as w,fillSlot as B,token as F}from"../../../../../format/lib/document/seed-parts.js";import{ENTRANCE_STORE_KEYS as Y,LEGACY_ENTRANCE_KEY as X}from"../../../animation/entrance.js";import{SCROLL_STORE_KEYS as V}from"../../../../../format/lib/animation/scroll.js";import{SECTION_PIN_KEYS as $}from"../../../../../format/lib/content/section-sticky.js";import{SECTION_CORNERS_ROW as j}from"../../../../../format/lib/content/section-corners.js";import{SECTION_BORDER_UNIT_KEYS as z}from"../../../../../format/lib/content/borders.js";import{CARD_HOVER_KEYS as N}from"../../../../../format/lib/animation/hover.js";import{COUNT_KEY_PROP as J}from"../../../../../format/lib/content/block-sources.js";import{SITE_GUTTER as q,SITE_GUTTER_PHONE as Q,normalizeSiteGutter as Z,normalizeSiteGutterPhone as tt,siteGutterPhoneFollows as ot}from"../../../../../format/lib/content/page-width.js";import{resolveSectionPadding as et}from"../../../content/section-padding.js";import{ButtonBlockMeta as nt}from"../../../../../format/lib/document/blocks/general/ButtonBlock/meta.js";import{SECTION_PAD_INNER_DEFAULTS as it}from"../../passes/section-padding.js";import{finiteNumber as b}from"../../../../../format/lib/finite-number.js";import{convertTheme as _,hasWords as rt}from"../../../sections/section-to-box.js";import{THEME_SECTION_BG as st}from"../../../../../format/lib/content/section-background.js";import{fillSlotOfInk as A}from"../../../../../format/lib/document/part-inks.js";import{parseHexColor as dt}from"efficient-shell/format";import{convertLength as ct}from"efficient-easel/screen/lib/content/length-units";import{bandPresetIndex as at,surfacePresetIndex as pt,surfaceTwoTone as lt}from"../../../../../format/lib/theme.js";import{VIEW_HIDE_KEYS as mt}from"../../../../../format/lib/content/view-hide-class.js";import{tierOfView as gt}from"../../../../../format/lib/content/view-tier.js";import{ownEntry as Pt}from"../../../../../format/lib/own-entry.js";const s=(t,o,e,n)=>o===e?t:ct(t,o,e,n,{min:0,max:200,step:4});import{BOX as So,DIM as Bo,INNER_BOX as No,TEXT as Io}from"../../../../../format/lib/document/seed-parts.js";const Jt={textFit:"line",textFitPhone:"wrap"},ht={...R,[J]:""},{label:qt,href:Qt,...ft}=nt.defaultProps,Zt=ft,to={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},oo={...W,sectionAccent:0},eo={sectionAccent:-1},no=["gridSpan","sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent",j.unitKey,...z,...$,"anchor",X,...mt,...Y,...V,...v(["widthFit",...I,...I.map(M)]),...Object.values(G)],P="a section width key, ignored since efficient-web-builder 45 (an old key; a section's own width has new keys, lib/content/section-width), so dropping it changes nothing",io={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:P,fullWidth:P,pageWidth:P,backgroundWidth:P,contentWidth:P,contentMax:P},ro=Object.fromEntries(["sectionPaddingLeft","sectionPaddingRight","sectionPaddingLeftTablet","sectionPaddingRightTablet","sectionPaddingLeftPhone","sectionPaddingRightPhone"].map(t=>[t,"needs Box side padding outside its gutter: the old section added it outside its frame, a Box's side padding replaces the gutter. 0 live nodes store it (JJ's read-only export, 2026-10-24)"]));function ut(t,o){const e=b(t.sectionPaddingTop)??0,n=b(t.sectionPaddingBottom)??0,i=b(t.sectionPaddingTopTablet),r=b(t.sectionPaddingBottomTablet),c=x(t.sectionPaddingUnit),p=x(t.sectionPaddingUnitTablet),l=x(t.sectionPaddingUnitPhone),h=(m,a,u,g)=>{const d=b(m);if(d!==void 0)return d+s(g,"px",l,"mobile");const T=a===void 0?{n:u,unit:c}:{n:a,unit:p};return s(T.n,T.unit,l,"mobile")+s(g,"px",l,"mobile")},f=(m,a,u,g,d)=>a!==void 0?{[m]:a+s(d??g,"px",p,"tablet")}:d===void 0?{}:{[m]:s(u,c,p,"tablet")+s(d,"px",p,"tablet")};return{sectionPaddingTop:e+s(o.top,"px",c,"desktop"),sectionPaddingBottom:n+s(o.bottom,"px",c,"desktop"),...f("sectionPaddingTopTablet",i,e,o.top,o.topTablet),...f("sectionPaddingBottomTablet",r,n,o.bottom,o.bottomTablet),sectionPaddingTopPhone:h(t.sectionPaddingTopPhone,i,e,o.topPhone),sectionPaddingBottomPhone:h(t.sectionPaddingBottomPhone,r,n,o.bottomPhone)}}const so=t=>[...["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopTablet","sectionPaddingBottomTablet","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(e,n)=>ut(n,typeof t=="function"?t(n):t)[o]]),["sectionPaddingUnit","sectionPaddingUnit"],["sectionPaddingUnitTablet","sectionPaddingUnitTablet"],["sectionPaddingUnitPhone","sectionPaddingUnitPhone"]];function E(t,o){const e=et(t,Pt(it,o));return{sectionPaddingTop:e.top,sectionPaddingBottom:e.bottom}}const co=t=>[["padTop","sectionPaddingTop",(o,e)=>E(e,t).sectionPaddingTop],["padBottom","sectionPaddingBottom",(o,e)=>E(e,t).sectionPaddingBottom],["sectionPaddingTop","sectionPaddingTop",(o,e)=>E(e,t).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,e)=>E(e,t).sectionPaddingBottom]],Tt={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},ao=t=>o=>rt(o.props[t])?[Tt]:[],bt=(t,o)=>({kind:"text",key:t,role:"eyebrow",props:R,...o?{style:o}:{}}),po=t=>({kind:"group",name:"Chip",props:{...C,...B("main"),...w(6,14)},parts:[bt(t,{color:"background",...F("label",12),weight:600,letterSpacing:.16})]}),H=t=>t.background!=="transparent",xt=(t,o)=>{const[e,n]=[t,o].map(i=>typeof i=="string"?i.trim():"");return e?n?`[${e} ]{color=text}${n}`:`[${e}]{color=text}`:n},k={align:"right",alignPhone:"left"},_t=(t,o,e)=>{const n=i=>xt(i[t],i[o]);return{kind:"block",type:"Text",when:(i,r)=>r!==void 0&&n(r)!=="",box:[[t,"text",(i,r)=>n(r)],[o,"text",(i,r)=>n(r)]],props:e}},lo=(t,o,e,n={})=>_t(t,o,{...ht,...k,...n,_partStyles:{text:{...U,color:"labels",...e,case:U.case,...k}}}),O=(t,o)=>typeof t=="number"&&Number.isInteger(t)&&t>=0?t:_(o)?.selected??0,L="var(--site-surface-2)",y=(t,o)=>_(o)?.themes[O(t.sectionAccent??0,o)],Et=(t,o)=>(e,n)=>{if(!o?.(e,n))return B(t);const i=y(e,n)?.[t];return i?{fillColor:i}:{}},mo=(t,o)=>S(t,o)>=0,K=t=>t.startsWith("#")&&dt(t)!==null,go=(t,o,e)=>{const n=t?.trim();if(n&&K(n))return{fillColor:n};const i=A(n);if(i)return B(i);const r=n===L?y(o,e):void 0;return r?{fillColor:lt(r)}:{}},Po=t=>{const o=t?.trim();return!o||o==="transparent"||o===st||A(o)||o===L||K(o)?void 0:"it paints a colour that no Box Fill can hold"},S=(t,o)=>{const e=_(o)?.themes;return e&&H(t)?at(e,O(t.sectionAccent,o)):-1},ho=(t,o,e)=>{const n=S(o,e);return n>=0?n:t},fo=(t,o)=>{const e=_(o)?.themes,n=e?pt(e,O(t,o)):-1;return n>=0?n:t},uo=(t,o)=>{const e=S(t,o);return e>=0?{sectionAccent:e}:{}},To=(t,o)=>H(t.props)&&S(t.props,o)<0?[{kind:"band-preset",page:O(t.props.sectionAccent,o)}]:[],bo=(t,{view:o="desktop",to:e="px",maxPx:n=1/0}={})=>{const{siteGutter:i,siteGutterUnit:r,siteGutterPhone:c,siteGutterPhoneUnit:p}=t.site??{},l=gt(o),h=(a,u,g)=>{const d=x(u),T=D(a,d,"spacing",g);return T===null?null:s(T,d,"px",l)},f=h(i,r,q)??Z(i),m=o==="desktop"?f:h(c,p,Q)??tt(c)??ot(f);return s(Math.min(n,m),"px",e,l)},Ot=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(t=>[`sectionPadding${t}`,0])),xo=t=>({top:0,right:0,bottom:0,left:0,...t}),_o=(t,o,e,n=[])=>({kind:"group",name:t,keepEmpty:!0,props:(i,r)=>({...C,...Ot,...Et("surface")(i,r),...typeof e=="function"?e(i,r):e}),box:[[o,"bgImage"],N.kind,N.duration,N.delay],parts:n});export{Jt as AUTO_COLUMN,So as BOX,Zt as BUTTON,Bo as DIM,io as DROP_COMMON,ro as DROP_SIDE_PADDING,eo as FOLLOW_THE_BOX,Tt as HEADING_CASE_UPPER,No as INNER_BOX,Ot as NO_PAD,ht as NUMBER_TEXT,k as RIGHT_WORDS,no as SAME_KEYS,oo as SECTION_BOX,to as SH_LINK,Io as TEXT,ho as bandAccent,S as bandIndex,O as bandPage,uo as bandProps,To as bandWrites,Et as fillFrom,Po as fillNoBoxHolds,po as filledChip,ao as headingCaseOf,E as innerPad,co as innerPadKeys,lo as leadLine,_t as leadText,xo as lineSides,xt as numberAndUnit,mo as onBandPreset,go as ownFill,_o as pictureCell,y as sectionPage,bo as siteGutterOf,bt as smallText,fo as surfaceAccent,ut as wrapperPad,so as wrapperPadKeys};
1
+ import{siteLengthHeld as G,storedUnit as x}from"../../../../../format/lib/content/css-length.js";import{SECTION_WIDTH_KEYS as M}from"../../../../../format/lib/content/section-width.js";import{BLOCK_LENGTH_KEYS as C,blockLengthUnitKey as W}from"../../../content/block-size.js";import{viewStoreKeys as F}from"../../../../../format/lib/animation/views.js";import{BOX as Y,INNER_BOX as I,LABEL_FACE as U,TEXT as R,boxPadding as v,fillSlot as B,token as w}from"../../../../../format/lib/document/seed-parts.js";import{ENTRANCE_STORE_KEYS as X,LEGACY_ENTRANCE_KEY as V}from"../../../animation/entrance.js";import{SCROLL_STORE_KEYS as $}from"../../../../../format/lib/animation/scroll.js";import{SECTION_PIN_KEYS as j}from"../../../../../format/lib/content/section-sticky.js";import{SECTION_CORNERS_ROW as z}from"../../../../../format/lib/content/section-corners.js";import{SECTION_BORDER_UNIT_KEYS as J}from"../../../../../format/lib/content/borders.js";import{CARD_HOVER_KEYS as S}from"../../../../../format/lib/animation/hover.js";import{COUNT_KEY_PROP as q}from"../../../../../format/lib/content/block-sources.js";import{SITE_GUTTER as Q,SITE_GUTTER_PHONE as Z,normalizeSiteGutter as tt,normalizeSiteGutterPhone as ot,siteGutterPhoneFollows as et}from"../../../../../format/lib/content/page-width.js";import{BAND_TO_SECTION_PAD as A,bandTopBottom as nt}from"../../../content/section-padding.js";import{ButtonBlockMeta as it}from"../../../../../format/lib/document/blocks/general/ButtonBlock/meta.js";import{innerPaddingFallback as rt}from"../../passes/section-padding.js";import{finiteNumber as b}from"../../../../../format/lib/finite-number.js";import{convertTheme as _,hasWords as st}from"../../../sections/section-to-box.js";import{THEME_SECTION_BG as dt}from"../../../../../format/lib/content/section-background.js";import{fillSlotOfInk as k}from"../../../../../format/lib/document/part-inks.js";import{parseHexColor as ct}from"efficient-shell/format";import{convertLength as at}from"efficient-easel/screen/lib/content/length-units";import{bandPresetIndex as pt,surfacePresetIndex as lt,surfaceTwoTone as mt}from"../../../../../format/lib/theme.js";import{VIEW_HIDE_KEYS as gt}from"../../../../../format/lib/content/view-hide-class.js";import{tierOfView as Pt}from"../../../../../format/lib/content/view-tier.js";const s=(t,o,e,n)=>o===e?t:at(t,o,e,n,{min:0,max:200,step:4});import{BOX as Oo,DIM as Bo,INNER_BOX as So,TEXT as No}from"../../../../../format/lib/document/seed-parts.js";const zt={textFit:"line",textFitPhone:"wrap"},ht={...R,[q]:""},{label:Jt,href:qt,...ft}=it.defaultProps,Qt=ft,Zt={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},to={...Y,sectionAccent:0},oo={sectionAccent:-1},eo=["gridSpan","sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent",z.unitKey,...J,...j,"anchor",V,...gt,...X,...$,...F(["widthFit",...C,...C.map(W)]),...Object.values(M)],P="a section width key, ignored since efficient-web-builder 45 (an old key; a section's own width has new keys, lib/content/section-width), so dropping it changes nothing",no={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:P,fullWidth:P,pageWidth:P,backgroundWidth:P,contentWidth:P,contentMax:P},io=Object.fromEntries(["sectionPaddingLeft","sectionPaddingRight","sectionPaddingLeftTablet","sectionPaddingRightTablet","sectionPaddingLeftPhone","sectionPaddingRightPhone"].map(t=>[t,"needs Box side padding outside its gutter: the old section added it outside its frame, a Box's side padding replaces the gutter. 0 live nodes store it (JJ's read-only export, 2026-10-24)"]));function ut(t,o){const e=b(t.sectionPaddingTop)??0,n=b(t.sectionPaddingBottom)??0,i=b(t.sectionPaddingTopTablet),r=b(t.sectionPaddingBottomTablet),c=x(t.sectionPaddingUnit),p=x(t.sectionPaddingUnitTablet),l=x(t.sectionPaddingUnitPhone),h=(m,a,u,g)=>{const d=b(m);if(d!==void 0)return d+s(g,"px",l,"mobile");const T=a===void 0?{n:u,unit:c}:{n:a,unit:p};return s(T.n,T.unit,l,"mobile")+s(g,"px",l,"mobile")},f=(m,a,u,g,d)=>a!==void 0?{[m]:a+s(d??g,"px",p,"tablet")}:d===void 0?{}:{[m]:s(u,c,p,"tablet")+s(d,"px",p,"tablet")};return{sectionPaddingTop:e+s(o.top,"px",c,"desktop"),sectionPaddingBottom:n+s(o.bottom,"px",c,"desktop"),...f("sectionPaddingTopTablet",i,e,o.top,o.topTablet),...f("sectionPaddingBottomTablet",r,n,o.bottom,o.bottomTablet),sectionPaddingTopPhone:h(t.sectionPaddingTopPhone,i,e,o.topPhone),sectionPaddingBottomPhone:h(t.sectionPaddingBottomPhone,r,n,o.bottomPhone)}}const ro=t=>[...["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopTablet","sectionPaddingBottomTablet","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(e,n)=>ut(n,typeof t=="function"?t(n):t)[o]]),["sectionPaddingUnit","sectionPaddingUnit"],["sectionPaddingUnitTablet","sectionPaddingUnitTablet"],["sectionPaddingUnitPhone","sectionPaddingUnitPhone"]];function N(t,o){const e={};for(const[i,r]of A)t[i]!==void 0&&(e[r]=t[i]);const n=nt(t,rt(o));return{...e,sectionPaddingTop:n.top,sectionPaddingBottom:n.bottom}}const so=t=>[...A.map(([o,e])=>[o,e,(n,i)=>N(i,t)[e]]),["sectionPaddingTop","sectionPaddingTop",(o,e)=>N(e,t).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,e)=>N(e,t).sectionPaddingBottom]],Tt={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},co=t=>o=>st(o.props[t])?[Tt]:[],bt=(t,o)=>({kind:"text",key:t,role:"eyebrow",props:R,...o?{style:o}:{}}),ao=t=>({kind:"group",name:"Chip",props:{...I,...B("main"),...v(6,14)},parts:[bt(t,{color:"background",...w("label",12),weight:600,letterSpacing:.16})]}),H=t=>t.background!=="transparent",xt=(t,o)=>{const[e,n]=[t,o].map(i=>typeof i=="string"?i.trim():"");return e?n?`[${e} ]{color=text}${n}`:`[${e}]{color=text}`:n},L={align:"right",alignPhone:"left"},_t=(t,o,e)=>{const n=i=>xt(i[t],i[o]);return{kind:"block",type:"Text",when:(i,r)=>r!==void 0&&n(r)!=="",box:[[t,"text",(i,r)=>n(r)],[o,"text",(i,r)=>n(r)]],props:e}},po=(t,o,e,n={})=>_t(t,o,{...ht,...L,...n,_partStyles:{text:{...U,color:"labels",...e,case:U.case,...L}}}),E=(t,o)=>typeof t=="number"&&Number.isInteger(t)&&t>=0?t:_(o)?.selected??0,y="var(--site-surface-2)",K=(t,o)=>_(o)?.themes[E(t.sectionAccent??0,o)],Et=(t,o)=>(e,n)=>{if(!o?.(e,n))return B(t);const i=K(e,n)?.[t];return i?{fillColor:i}:{}},lo=(t,o)=>O(t,o)>=0,D=t=>t.startsWith("#")&&ct(t)!==null,mo=(t,o,e)=>{const n=t?.trim();if(n&&D(n))return{fillColor:n};const i=k(n);if(i)return B(i);const r=n===y?K(o,e):void 0;return r?{fillColor:mt(r)}:{}},go=t=>{const o=t?.trim();return!o||o==="transparent"||o===dt||k(o)||o===y||D(o)?void 0:"it paints a colour that no Box Fill can hold"},O=(t,o)=>{const e=_(o)?.themes;return e&&H(t)?pt(e,E(t.sectionAccent,o)):-1},Po=(t,o,e)=>{const n=O(o,e);return n>=0?n:t},ho=(t,o)=>{const e=_(o)?.themes,n=e?lt(e,E(t,o)):-1;return n>=0?n:t},fo=(t,o)=>{const e=O(t,o);return e>=0?{sectionAccent:e}:{}},uo=(t,o)=>H(t.props)&&O(t.props,o)<0?[{kind:"band-preset",page:E(t.props.sectionAccent,o)}]:[],To=(t,{view:o="desktop",to:e="px",maxPx:n=1/0}={})=>{const{siteGutter:i,siteGutterUnit:r,siteGutterPhone:c,siteGutterPhoneUnit:p}=t.site??{},l=Pt(o),h=(a,u,g)=>{const d=x(u),T=G(a,d,"spacing",g);return T===null?null:s(T,d,"px",l)},f=h(i,r,Q)??tt(i),m=o==="desktop"?f:h(c,p,Z)??ot(c)??et(f);return s(Math.min(n,m),"px",e,l)},Ot=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(t=>[`sectionPadding${t}`,0])),bo=t=>({top:0,right:0,bottom:0,left:0,...t}),xo=(t,o,e,n=[])=>({kind:"group",name:t,keepEmpty:!0,props:(i,r)=>({...I,...Ot,...Et("surface")(i,r),...typeof e=="function"?e(i,r):e}),box:[[o,"bgImage"],S.kind,S.duration,S.delay],parts:n});export{zt as AUTO_COLUMN,Oo as BOX,Qt as BUTTON,Bo as DIM,no as DROP_COMMON,io as DROP_SIDE_PADDING,oo as FOLLOW_THE_BOX,Tt as HEADING_CASE_UPPER,So as INNER_BOX,Ot as NO_PAD,ht as NUMBER_TEXT,L as RIGHT_WORDS,eo as SAME_KEYS,to as SECTION_BOX,Zt as SH_LINK,No as TEXT,Po as bandAccent,O as bandIndex,E as bandPage,fo as bandProps,uo as bandWrites,Et as fillFrom,go as fillNoBoxHolds,ao as filledChip,co as headingCaseOf,N as innerPad,so as innerPadKeys,po as leadLine,_t as leadText,bo as lineSides,xt as numberAndUnit,lo as onBandPreset,mo as ownFill,xo as pictureCell,K as sectionPage,To as siteGutterOf,bt as smallText,ho as surfaceAccent,ut as wrapperPad,ro as wrapperPadKeys};