efficient-web-builder 74.1.0 → 74.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist/editor/components/PreviewFooterContext.d.ts +3 -1
  3. package/dist/editor/components/PreviewFooterContext.js +1 -1
  4. package/dist/editor/components/SectionTextPartBridge.d.ts +2 -8
  5. package/dist/editor/components/SectionTextPartBridge.js +1 -1
  6. package/dist/editor/components/StorefrontEditor.js +1 -1
  7. package/dist/editor/components/storefront-editor.css +7 -0
  8. package/dist/editor/lib/document/blocks/general/ContactLocations/fields.js +1 -1
  9. package/dist/editor/lib/document/blocks/general/Footprint/fields.d.ts +3 -0
  10. package/dist/editor/lib/document/blocks/general/Footprint/fields.js +1 -1
  11. package/dist/editor/lib/document/controls.d.ts +1 -0
  12. package/dist/editor/lib/document/controls.js +1 -1
  13. package/dist/editor/lib/document/own-pad-fields.d.ts +4 -3
  14. package/dist/editor/lib/document/own-pad-fields.js +1 -1
  15. package/dist/editor/lib/document/page-root-fields.d.ts +4 -0
  16. package/dist/editor/lib/document/page-root-fields.js +1 -1
  17. package/dist/editor/lib/document/page-root.d.ts +3 -2
  18. package/dist/editor/lib/document/page-root.js +2 -2
  19. package/dist/editor/lib/document/registry.js +1 -1
  20. package/dist/editor/lib/editor-document-adapter.d.ts +1 -0
  21. package/dist/editor/lib/editor-document-adapter.js +1 -1
  22. package/dist/editor/lib/pinned-chrome-doc.d.ts +1 -0
  23. package/dist/editor/lib/pinned-chrome-doc.js +1 -1
  24. package/dist/format/lib/build/module-specifiers.d.ts +8 -0
  25. package/dist/format/lib/build/module-specifiers.js +1 -1
  26. package/dist/format/lib/content/block-sources.d.ts +1 -0
  27. package/dist/format/lib/content/block-sources.js +1 -1
  28. package/dist/format/lib/content/page-width.d.ts +15 -0
  29. package/dist/format/lib/content/page-width.js +1 -1
  30. package/dist/format/lib/content/section-css.d.ts +1 -1
  31. package/dist/format/lib/content/section-css.js +1 -1
  32. package/dist/format/lib/content/site-css.d.ts +5 -0
  33. package/dist/format/lib/content/site-css.js +1 -0
  34. package/dist/format/lib/content/site-offices.d.ts +7 -0
  35. package/dist/format/lib/content/site-offices.js +1 -0
  36. package/dist/format/lib/document/passes/types.d.ts +3 -2
  37. package/dist/format/lib/editor-words-catalogue.d.ts +3 -0
  38. package/dist/format/lib/editor-words-catalogue.js +3 -3
  39. package/dist/format/lib/source-rules/panel-colour-tokens.js +7 -7
  40. package/dist/format/lib/source-rules/site-gutter-once.d.ts +12 -0
  41. package/dist/format/lib/source-rules/site-gutter-once.js +23 -0
  42. package/dist/render/components/Banner.d.ts +3 -1
  43. package/dist/render/components/Banner.js +1 -1
  44. package/dist/render/components/Breadcrumb.js +1 -1
  45. package/dist/render/components/Cards.d.ts +3 -1
  46. package/dist/render/components/Cards.js +1 -1
  47. package/dist/render/components/ChartSection.d.ts +3 -1
  48. package/dist/render/components/ChartSection.js +1 -1
  49. package/dist/render/components/ContactLocations.d.ts +3 -1
  50. package/dist/render/components/ContactLocations.js +2 -2
  51. package/dist/render/components/Countdown.d.ts +3 -1
  52. package/dist/render/components/Countdown.js +1 -1
  53. package/dist/render/components/DocBody.d.ts +3 -1
  54. package/dist/render/components/DocBody.js +4 -4
  55. package/dist/render/components/DocMasthead.d.ts +3 -1
  56. package/dist/render/components/DocMasthead.js +1 -1
  57. package/dist/render/components/DocMetaCards.d.ts +3 -1
  58. package/dist/render/components/DocMetaCards.js +1 -1
  59. package/dist/render/components/FAQ.d.ts +3 -1
  60. package/dist/render/components/FAQ.js +1 -1
  61. package/dist/render/components/FeaturedCover.d.ts +3 -1
  62. package/dist/render/components/FeaturedCover.js +1 -1
  63. package/dist/render/components/Flex.js +1 -1
  64. package/dist/render/components/Footprint.js +1 -1
  65. package/dist/render/components/Grid.d.ts +3 -1
  66. package/dist/render/components/Grid.js +1 -1
  67. package/dist/render/components/HeroGroup.js +1 -1
  68. package/dist/render/components/HeroSingle.js +1 -1
  69. package/dist/render/components/HeroSlide.js +1 -1
  70. package/dist/render/components/ImageBlock.js +1 -1
  71. package/dist/render/components/IntegrationsSection.d.ts +3 -1
  72. package/dist/render/components/IntegrationsSection.js +1 -1
  73. package/dist/render/components/KeyFeatures.d.ts +3 -1
  74. package/dist/render/components/KeyFeatures.js +1 -1
  75. package/dist/render/components/Logos.d.ts +3 -1
  76. package/dist/render/components/Logos.js +1 -1
  77. package/dist/render/components/LongRead.d.ts +3 -1
  78. package/dist/render/components/LongRead.js +1 -1
  79. package/dist/render/components/Manifesto.js +1 -1
  80. package/dist/render/components/Masthead.d.ts +3 -1
  81. package/dist/render/components/Masthead.js +1 -1
  82. package/dist/render/components/MockupSection.d.ts +3 -1
  83. package/dist/render/components/MockupSection.js +1 -1
  84. package/dist/render/components/OrderSummary.d.ts +3 -1
  85. package/dist/render/components/OrderSummary.js +1 -1
  86. package/dist/render/components/ParagraphsA.js +1 -1
  87. package/dist/render/components/PaymentBadges.d.ts +3 -1
  88. package/dist/render/components/PaymentBadges.js +1 -1
  89. package/dist/render/components/ProcessSteps.js +1 -1
  90. package/dist/render/components/Prose.d.ts +3 -1
  91. package/dist/render/components/Prose.js +1 -1
  92. package/dist/render/components/SectionHeader.d.ts +2 -1
  93. package/dist/render/components/SectionHeader.js +1 -1
  94. package/dist/render/components/Series.d.ts +3 -1
  95. package/dist/render/components/Series.js +1 -1
  96. package/dist/render/components/SideSpaceOnce.d.ts +6 -0
  97. package/dist/render/components/SideSpaceOnce.js +1 -0
  98. package/dist/render/components/SiteGutterFrame.js +1 -1
  99. package/dist/render/components/SiteOffices.d.ts +5 -0
  100. package/dist/render/components/SiteOffices.js +1 -0
  101. package/dist/render/components/SiteRootProps.d.ts +6 -0
  102. package/dist/render/components/SiteRootProps.js +1 -0
  103. package/dist/render/components/SpecStrip.js +1 -1
  104. package/dist/render/components/Split.js +1 -1
  105. package/dist/render/components/Stats.d.ts +3 -1
  106. package/dist/render/components/Stats.js +1 -1
  107. package/dist/render/components/StatsParagraph.js +1 -1
  108. package/dist/render/components/Testimonials.d.ts +3 -1
  109. package/dist/render/components/Testimonials.js +1 -1
  110. package/dist/render/components/TickerSection.d.ts +3 -1
  111. package/dist/render/components/TickerSection.js +1 -1
  112. package/dist/render/components/Timeline.js +1 -1
  113. package/dist/render/components/TimelineTrack.js +1 -1
  114. package/dist/render/components/TitleWithButtons.js +1 -1
  115. package/dist/render/lib/content/section-edge.d.ts +1 -1
  116. package/dist/render/lib/content/section-edge.js +1 -1
  117. package/dist/render/lib/content/section-own-pads.d.ts +35 -0
  118. package/dist/render/lib/content/section-own-pads.js +1 -0
  119. package/dist/render/lib/content/section-padding.d.ts +9 -3
  120. package/dist/render/lib/content/section-padding.js +1 -1
  121. package/dist/render/lib/document/blocks/general/Banner/render.js +1 -1
  122. package/dist/render/lib/document/blocks/general/Cards/render.js +1 -1
  123. package/dist/render/lib/document/blocks/general/Chart/render.js +1 -1
  124. package/dist/render/lib/document/blocks/general/ContactLocations/render.js +1 -1
  125. package/dist/render/lib/document/blocks/general/Countdown/render.js +1 -1
  126. package/dist/render/lib/document/blocks/general/DocBody/render.js +1 -1
  127. package/dist/render/lib/document/blocks/general/DocMasthead/render.js +1 -1
  128. package/dist/render/lib/document/blocks/general/DocMetaCards/render.js +1 -1
  129. package/dist/render/lib/document/blocks/general/FAQ/render.js +1 -1
  130. package/dist/render/lib/document/blocks/general/FeaturedCover/render.js +1 -1
  131. package/dist/render/lib/document/blocks/general/Footprint/render.js +1 -1
  132. package/dist/render/lib/document/blocks/general/Grid/render.js +1 -1
  133. package/dist/render/lib/document/blocks/general/Integrations/render.js +2 -2
  134. package/dist/render/lib/document/blocks/general/KeyFeatures/render.js +1 -1
  135. package/dist/render/lib/document/blocks/general/Logos/render.js +1 -1
  136. package/dist/render/lib/document/blocks/general/LongRead/render.js +1 -1
  137. package/dist/render/lib/document/blocks/general/Masthead/render.js +1 -1
  138. package/dist/render/lib/document/blocks/general/Mockup/render.js +2 -2
  139. package/dist/render/lib/document/blocks/general/OrderSummary/render.js +1 -1
  140. package/dist/render/lib/document/blocks/general/PaymentBadges/render.js +1 -1
  141. package/dist/render/lib/document/blocks/general/Prose/render.js +1 -1
  142. package/dist/render/lib/document/blocks/general/SectionHeader/render.js +1 -1
  143. package/dist/render/lib/document/blocks/general/Series/render.js +1 -1
  144. package/dist/render/lib/document/blocks/general/Stats/render.js +1 -1
  145. package/dist/render/lib/document/blocks/general/Testimonials/render.js +1 -1
  146. package/dist/render/lib/document/blocks/general/Ticker/render.js +1 -1
  147. package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.js +1 -1
  148. package/dist/render/lib/document/blocks/general/section-to-box-rows-docbody.js +2 -2
  149. package/dist/render/lib/document/blocks/general/section-to-box-rows-head.js +1 -1
  150. package/dist/render/lib/document/blocks/general/section-to-box-rows-integrations.js +1 -1
  151. package/dist/render/lib/document/blocks/general/section-to-box-rows-locations.js +1 -1
  152. package/dist/render/lib/document/blocks/general/section-to-box-rows-logos.js +1 -1
  153. package/dist/render/lib/document/blocks/general/section-to-box-rows-pageheader.js +1 -1
  154. package/dist/render/lib/document/blocks/general/section-to-box-rows-promo.js +1 -1
  155. package/dist/render/lib/document/blocks/general/section-to-box-rows-proof.js +1 -1
  156. package/dist/render/lib/document/blocks/general/section-to-box-rows-stats.js +1 -1
  157. package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
  158. package/dist/render/lib/document/custom-css.d.ts +2 -1
  159. package/dist/render/lib/document/editing-bridges.d.ts +5 -1
  160. package/dist/render/lib/document/editing-bridges.js +1 -1
  161. package/dist/render/lib/document/part-styles.d.ts +3 -1
  162. package/dist/render/lib/document/part-styles.js +2 -2
  163. package/dist/render/lib/document/passes/clickable-parts.js +1 -1
  164. package/dist/render/lib/document/passes/section-custom-css.d.ts +7 -0
  165. package/dist/render/lib/document/passes/section-custom-css.js +1 -1
  166. package/dist/render/lib/document/passes/section-padding.d.ts +3 -3
  167. package/dist/render/lib/document/passes/section-padding.js +1 -1
  168. package/dist/render/lib/document/passes/section-width.js +1 -1
  169. package/dist/render/lib/document/section-css-style.d.ts +3 -1
  170. package/dist/render/lib/document/section-css-style.js +1 -1
  171. package/dist/routine-index.json +1 -1
  172. package/dist/value-index.json +1 -1
  173. package/package.json +1 -1
@@ -0,0 +1,23 @@
1
+ import{importBindingsOf as G,sourcePathOf as H}from"../build/module-specifiers.js";import{ruleChecks as z}from"./rule.js";const K=/(?:^|[\s"'`:])-?(?:px|pl|pr|ps|pe|mx|ml|mr|left|right|inset-x)-(?:\[[^\]\s]*--sf-site-gutter|\(--sf-site-gutter)/,R=/^(?:padding|margin)(?:Left|Right|Inline|InlineStart|InlineEnd)?$|^(?:left|right|inset|insetInline|insetInlineStart|insetInlineEnd)$/,E=/^(?:SIDE_ONCE_[A-Z_]+|withSideOnce|SideOnceClass)$/,B=/^[A-Z][a-z]/;function X(t,l){return t.createSourceFile(l.path,l.text,t.ScriptTarget.Latest,!0,l.path.endsWith(".tsx")?t.ScriptKind.TSX:t.ScriptKind.TS)}function j(t,l,r){const a=new Map;for(const o of G(t,l.path,l.text)){const s=H(r,o.spec,l.path);s&&a.set(o.local,[s,o.imported])}return a}function J(t,l){const r=new Set,a=o=>{if(t.isIdentifier(o)){const s=o.parent,p=(t.isVariableDeclaration(s)||t.isFunctionDeclaration(s)||t.isParameter(s)||t.isPropertyAssignment(s)||t.isPropertySignature(s))&&s.name===o,x=t.isPropertyAccessExpression(s)&&s.name===o;!p&&!x&&!t.isImportSpecifier(s)&&r.add(o.text)}(t.isJsxOpeningElement(o)||t.isJsxSelfClosingElement(o))&&t.isIdentifier(o.tagName)&&r.add(o.tagName.text),t.forEachChild(o,a)};return a(l),r}function M(t,l){const r=new Set(l.map(e=>e.path)),a=[],o=new Map;for(const e of l){const i=X(t,e);o.set(e.path,j(t,e,r));for(const c of i.statements){const d=!!(t.canHaveModifiers(c)&&t.getModifiers(c)?.some(h=>h.kind===t.SyntaxKind.ExportKeyword)),m=[];let u=t.isFunctionDeclaration(c);if(t.isVariableStatement(c))for(const h of c.declarationList.declarations)t.isIdentifier(h.name)&&m.push(h.name.text),h.initializer&&(t.isArrowFunction(h.initializer)||t.isFunctionExpression(h.initializer))&&(u=!0);if(t.isFunctionDeclaration(c)&&c.name&&m.push(c.name.text),m.length===0)continue;const g=f(t,{path:e.path,text:c.getText(i)}).writes.length>0,O=J(t,c);let n=!1;const w=h=>{t.isJsxElement(h)||t.isJsxSelfClosingElement(h)||t.isJsxFragment(h)?n=!0:t.forEachChild(h,w)};w(c);for(const h of m)a.push({file:e.path,name:h,exported:d,own:g,reads:O,draws:n,fn:u})}}const s=e=>e.draws||e.fn&&[...e.reads].some(i=>E.test(i)),p=new Set(a.filter(e=>e.own&&!s(e)).map(e=>`${e.file}#${e.name}`));for(let e=!0;e;){e=!1;for(const i of a){const c=`${i.file}#${i.name}`;if(p.has(c)||s(i))continue;const d=o.get(i.file);[...i.reads].some(u=>{if(u===i.name)return!1;const g=d.get(u);return g?p.has(`${g[0]}#${g[1]}`)&&!E.test(g[1]):p.has(`${i.file}#${u}`)&&!E.test(u)})&&(p.add(c),e=!0)}}const x=new Map;for(const e of a)!e.exported||!p.has(`${e.file}#${e.name}`)||B.test(e.name)||E.test(e.name)||(x.has(e.file)||x.set(e.file,new Set),x.get(e.file).add(e.name));return x}function f(t,l,r,a){const o=X(t,l),s=[];let p=!1;if(r&&a){const e=j(t,l,a),i=new Set;for(const c of o.statements)if(!t.isImportDeclaration(c))for(const d of J(t,c))i.add(d);for(const[c,[d,m]]of e)i.has(c)&&r.get(d)?.has(m)&&s.push(`token ${m} (${d})`)}const x=e=>{if(t.isStringLiteral(e)||t.isNoSubstitutionTemplateLiteral(e)||t.isTemplateHead(e)||t.isTemplateMiddle(e)||t.isTemplateTail(e)){const i=K.exec(e.text);i&&s.push(i[0].trim())}if(t.isPropertyAssignment(e)&&(t.isIdentifier(e.name)||t.isStringLiteral(e.name))&&R.test(e.name.text)){const i=e.initializer;(t.isStringLiteral(i)||t.isNoSubstitutionTemplateLiteral(i))&&i.text.includes("--sf-site-gutter")&&s.push(`${e.name.text}: ${i.text}`),t.isTemplateExpression(i)&&i.getText(o).includes("--sf-site-gutter")&&s.push(`${e.name.text}: ${i.getText(o)}`)}t.isCallExpression(e)&&t.isIdentifier(e.expression)&&e.expression.text==="withSideOnce"&&(p=!0),(t.isJsxOpeningElement(e)||t.isJsxSelfClosingElement(e))&&t.isIdentifier(e.tagName)&&e.tagName.text==="SideOnceClass"&&(p=!0),t.isIdentifier(e)&&/^SIDE_ONCE_[A-Z_]+$/.test(e.text)&&!t.isImportSpecifier(e.parent)&&(p=!0),t.forEachChild(e,x)};return x(o),{writes:s,switched:p}}function Y(t,l,r){const{check:a,report:o}=z("site gutter once");{const n="var(--sf-site-gutter,40px)",w=f(t,{path:"a.tsx",text:`const C = "mx-auto px-[${n}]";
2
+ // px-[${n}] in a comment
3
+ export const X = () => <div className={C} />;`}),h=f(t,{path:"b.tsx",text:`const c = (s: string) => \`\${s} max-view-wide:-mx-[min(20px,${n})]\`;`}),y=f(t,{path:"c.tsx",text:`const C = "px-[${n}]";
4
+ export const X = (on: boolean) => <div className={withSideOnce(C, on)} />;`}),$=f(t,{path:"d.tsx",text:`export const X = () => <SideOnceClass className="px-[${n}]"><p /></SideOnceClass>;`}),_=f(t,{path:"f.tsx",text:`import { SIDE_ONCE_HOLDS_CLASS } from "x";
5
+ export const X = (on: boolean) => <div className={[\`px-[${n}]\`, on ? SIDE_ONCE_HOLDS_CLASS : ""].join(" ")} />;`}),T=f(t,{path:"g.tsx",text:`import { SIDE_ONCE_HOLDS_CLASS } from "x";
6
+ export const X = () => <div className="px-[${n}]" />;`}),D=f(t,{path:"e.tsx",text:`/* px-[${n}] */
7
+ const C = "py-[${n}] max-w-[calc(100%_-_${n}*2)] [--sf-pad-site:${n}]";`});a("the reader finds a gutter class in a string and a template, and none in a comment or a non-padding class",w.writes.length===1&&!w.switched&&h.writes.length===1&&D.writes.length===0,JSON.stringify({bare:w,template:h,other:D}));const L=[`left-[${n}]`,`right-[${n}]`,`inset-x-[${n}]`,"px-(--sf-site-gutter)",`-ml-[${n}]`].map((N,W)=>f(t,{path:`h${W}.tsx`,text:`const C = "absolute ${N}";`})),k=f(t,{path:"i.tsx",text:`export const X = () => <div style={{ paddingLeft: "${n}", right: \`calc(\${1}px + ${n})\` }} />;`}),v=f(t,{path:"j.tsx",text:`const S = { "--sf-site-gutter": "0px", top: "${n}", maxWidth: "${n}" };
8
+ const C = "left-[var(--x,0px)] inset-y-[${n}]";`});a("the reader finds a side-position class (left-, right-, inset-x-), the (--sf-site-gutter) shorthand and an inline style that reads the gutter; not a style that sets it, a top or a width",L.every(N=>N.writes.length===1)&&k.writes.length===2&&v.writes.length===0,JSON.stringify({sides:L,style:k,sets:v}));const P={path:"lib/t.tsx",text:`export const COL = "mx-auto px-[${n}]";
9
+ export const WIDE = \`\${COL} max-w-9\`;
10
+ export function roomOf() { return { frame: WIDE }; }
11
+ export const NONE = "py-4";
12
+ export function colBox() { return <div className={COL} />; }
13
+ export const SIDE_ONCE_X = "[[data-sf-side=once]_&]:px-[${n}]";
14
+ const TABLE = { frame: COL, once: SIDE_ONCE_X };
15
+ export function tableOf() { return TABLE; }
16
+ export function switchedOf(on: boolean) { return on ? \`\${COL} \${SIDE_ONCE_X}\` : COL; }
17
+ export function Col() { return <div className={COL} />; }`},S=M(t,[P,{path:"lib/u.ts",text:`import { roomOf } from "./t";
18
+ export const EDGE = roomOf().frame;`}]),A=[...S.get("lib/t.tsx")??[]].sort().join(",")+"|"+[...S.get("lib/u.ts")??[]].join(","),C=new Set(["lib/t.tsx","lib/u.ts","c/a.tsx","c/b.tsx","c/c.tsx","c/d.tsx"]),b=f(t,{path:"c/a.tsx",text:`import { EDGE } from "@/lib/u";
19
+ export const X = () => <div className={EDGE} />;`},S,C),I=f(t,{path:"c/b.tsx",text:`import { WIDE } from "../lib/t";
20
+ export const X = (on: boolean) => <div className={withSideOnce(WIDE, on)} />;`},S,C),F=f(t,{path:"c/c.tsx",text:`import { COL, NONE, Col } from "@/lib/t";
21
+ export const X = () => <Col />;`},S,C);a("the reader finds the tokens by what they do (a class, one built from it, a function returning it, a table that holds it beside the switch's class, one in another file) and a file that draws one; not a token imported and unused, a component or a function that draws JSX, a function that applies the switch, the switch's own class, or a value with no gutter",A==="COL,WIDE,roomOf,tableOf|EDGE"&&b.writes.length===1&&!b.switched&&I.writes.length===1&&I.switched&&F.writes.length===0,JSON.stringify({tokenSet:A,drawsToken:b,switchedToken:I,importOnlyToken:F})),a("the reader sees the switch: a withSideOnce call, a <SideOnceClass>, a SIDE_ONCE_ class used (an import alone is not)",y.switched&&$.switched&&$.writes.length===1&&_.switched&&!T.switched,JSON.stringify({switched:y,wrapped:$,holds:_,importOnly:T}))}const s=l.filter(n=>/\.tsx?$/.test(n.path));a(`read the source (${s.length} TS/TSX files, at least ${r.minFiles})`,s.length>=r.minFiles,"fewer means the walk broke, and the checks below are vacuous");const p=M(t,s),x=new Set(s.map(n=>n.path)),e=s.map(n=>({path:n.path,...f(t,n,p,x)})).filter(n=>n.writes.length>0);a(`found >= ${r.writerFloor} files that write the gutter (found ${e.length})`,e.length>=r.writerFloor,"fewer means the reader broke, or the gutters moved to tokens: lower the floor in that change");const i=r.drawnThroughTheSwitch??{},c=r.ownRoomOnly??{},d=n=>n in r.homes||n in r.notInsideASiteSide||n in i||n in c,m=e.filter(n=>!n.switched&&!d(n.path));a("every file that writes the gutter as side room or column padding, or draws a token that carries it, passes it through the switch (withSideOnce, <SideOnceClass>, a SIDE_ONCE_ class) or is named",m.length===0,`${m.length} file(s) draw the gutter twice inside a "site" side on a switched site:
22
+ ${m.map(n=>`${n.path}: ${n.writes[0]}`).join(`
23
+ `)}`);const u=new Set(e.map(n=>n.path)),g=[...Object.keys(r.homes),...Object.keys(r.notInsideASiteSide),...Object.keys(i),...Object.keys(c)].filter(n=>!u.has(n));a("every file the repository names still writes the gutter",g.length===0,`named, writes none: ${g.join(", ")}`);const O=Object.entries({...r.homes,...r.notInsideASiteSide,...i,...c}).filter(([,n])=>n.trim().length<20).map(([n])=>n);return a("every named file says why",O.length===0,`no reason: ${O.join(", ")}`),o()}export{Y as siteGutterOnce};
@@ -1,3 +1,4 @@
1
+ import type { RootPadAttrs } from "../lib/content/section-padding.js";
1
2
  interface BannerProps {
2
3
  eyebrow?: string;
3
4
  title?: string;
@@ -7,6 +8,7 @@ interface BannerProps {
7
8
  imageSrc: string;
8
9
  overlay?: number;
9
10
  contained: boolean;
11
+ pad?: RootPadAttrs | null;
10
12
  }
11
- export default function Banner({ eyebrow, title, body, ctaText, ctaHref, imageSrc, contained, overlay }: BannerProps): import("react").JSX.Element;
13
+ export default function Banner({ eyebrow, title, body, ctaText, ctaHref, imageSrc, contained, overlay, pad }: BannerProps): import("react").JSX.Element;
12
14
  export {};
@@ -1 +1 @@
1
- import{jsx as e,jsxs as s}from"react/jsx-runtime";import{PagePicture as x}from"../lib/first-screen.js";import{PictureZoom as u}from"./PictureZoom.js";import g from"./BlockFrame.js";import v from"./Btn.js";import{media as N}from"../lib/media.js";import{CONTENT_SIZES as w,sizedImage as b}from"../../format/lib/sized-image.js";import y from"./SectionEyebrow.js";import{renderGold as d,renderHeadline as M,splitParagraphs as z}from"./goldPhrases.js";import{ON_MEDIA_INK_STYLE as E}from"../../format/lib/content/ink.js";import{scrim as _}from"../../format/lib/content/scrim.js";const n={headingMediumUpTo800:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMedium:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]",body:"text-[length:var(--size-body,16px)]"};function I({eyebrow:r,title:i,body:m,ctaText:t,ctaHref:o,imageSrc:a,contained:l,overlay:c=60}){const p=Math.min(Math.max(c,0),100)/100;return e(g,{contained:l,className:"py-6",children:s("div",{className:"sf-card relative overflow-hidden border border-line bg-surface px-10 py-16 max-view-wide:px-6 max-view-wide:py-10",children:[a&&s("div",{className:"absolute inset-0","aria-hidden":!0,children:[e(u,{children:e(S,{src:N(a)})}),e("div",{className:"absolute inset-0",style:{background:_(p)}})]}),s("div",{className:"relative z-[1] flex max-w-[680px] flex-col gap-5",style:a?E:void 0,children:[r&&e(y,{text:r}),i&&e("h2",{className:`font-heading2 ${n.headingMedium} font-medium leading-[1.05] tracking-[-0.03em] ${n.headingMediumUpTo800}`,children:M(i,!1)}),m&&z(m).map((h,f)=>e("p",{className:`${n.body} leading-[1.6] opacity-85`,children:d(h)},f)),t&&e("div",{className:"mt-2 self-start",children:e(v,{href:o||"#",variant:"primary",children:d(t)})})]})]})})}function S({src:r}){const i=b(r);return e(x,{src:i.src,...i.srcSet?{srcSet:i.srcSet,sizes:w}:{},alt:"",className:"h-full w-full object-cover"})}export{I as default};
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import{PagePicture as u}from"../lib/first-screen.js";import{PictureZoom as g}from"./PictureZoom.js";import{withRootPad as v}from"../lib/content/section-own-pads.js";import N from"./BlockFrame.js";import w from"./Btn.js";import{media as b}from"../lib/media.js";import{CONTENT_SIZES as y,sizedImage as M}from"../../format/lib/sized-image.js";import z from"./SectionEyebrow.js";import{renderGold as s,renderHeadline as E,splitParagraphs as _}from"./goldPhrases.js";import{ON_MEDIA_INK_STYLE as I}from"../../format/lib/content/ink.js";import{scrim as S}from"../../format/lib/content/scrim.js";const m={headingMediumUpTo800:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMedium:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]",body:"text-[length:var(--size-body,16px)]"};function T({eyebrow:r,title:i,body:n,ctaText:d,ctaHref:o,imageSrc:a,contained:l,overlay:c=60,pad:p}){const h=Math.min(Math.max(c,0),100)/100;return e(N,{contained:l,...v("py-6",p),children:t("div",{className:"sf-card relative overflow-hidden border border-line bg-surface px-10 py-16 max-view-wide:px-6 max-view-wide:py-10",children:[a&&t("div",{className:"absolute inset-0","aria-hidden":!0,children:[e(g,{children:e(j,{src:b(a)})}),e("div",{className:"absolute inset-0",style:{background:S(h)}})]}),t("div",{className:"relative z-[1] flex max-w-[680px] flex-col gap-5",style:a?I:void 0,children:[r&&e(z,{text:r}),i&&e("h2",{className:`font-heading2 ${m.headingMedium} font-medium leading-[1.05] tracking-[-0.03em] ${m.headingMediumUpTo800}`,children:E(i,!1)}),n&&_(n).map((f,x)=>e("p",{className:`${m.body} leading-[1.6] opacity-85`,children:s(f)},x)),d&&e("div",{className:"mt-2 self-start",children:e(w,{href:o||"#",variant:"primary",children:s(d)})})]})]})})}function j({src:r}){const i=M(r);return e(u,{src:i.src,...i.srcSet?{srcSet:i.srcSet,sizes:y}:{},alt:"",className:"h-full w-full object-cover"})}export{T as default};
@@ -1 +1 @@
1
- import{jsx as t,jsxs as o,Fragment as h}from"react/jsx-runtime";import{Fragment as x}from"react";import{SiteLink as b}from"../lib/site-runtime.js";import{renderChrome as u,renderGold as g}from"./goldPhrases.js";import{say as v}from"../../format/lib/editor-words.js";import{PY_CLASS as N,SECTION_PAD_KEYS as _,framePadAttrs as y,padValuesOf as P,tierFramesOf as j}from"../lib/content/section-padding.js";import{CRUMB_PAD as m}from"../../format/lib/sections/strip-shape.js";const w={16:"max-view-tablet:py-4"},E=a=>y({values:P(a,_,!0),frame:j(m),drawsFrame:!0},!0).root;function B({items:a,current:i,meta:s,editing:d=!1,pad:e}){const c=(a??[]).filter(r=>r?.label?.trim()),f=i?.trim()?[...c,{label:i}]:c,n=f.length>0?f:d?[{label:v("Breadcrumb")}]:[];return n.length===0&&!s?null:t("nav",{className:["border-b border-line px-[var(--sf-site-gutter,40px)]",e?null:N.all[m.top],"font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.2em] text-fg-dim max-view-tablet:px-[min(20px,var(--sf-site-gutter,40px))]",e?e.className:w[m.topPhone]].filter(Boolean).join(" "),style:e&&Object.keys(e.style).length?e.style:void 0,...e?.attrs,children:o("div",{className:"mx-auto flex max-w-[var(--sf-content-cap,none)] items-center gap-4",children:[n.map((r,l)=>{const p=l===n.length-1;return o(x,{children:[l>0&&t("span",{className:"opacity-40",children:"/"}),r.href&&!p?t(b,{newTab:"auto",href:r.href,className:"hover:text-fg",children:u(r.label)}):t("span",{className:p?"text-fg":void 0,children:u(r.label)})]},l)}),s&&o(h,{children:[t("span",{className:"opacity-40",children:"·"}),t("span",{children:g(s)})]})]})})}export{E as crumbPad,B as default};
1
+ import{jsx as t,jsxs as o,Fragment as x}from"react/jsx-runtime";import{Fragment as b}from"react";import{SiteLink as g}from"../lib/site-runtime.js";import{renderChrome as d,renderGold as v}from"./goldPhrases.js";import{say as N}from"../../format/lib/editor-words.js";import{PY_CLASS as _,SECTION_PAD_KEYS as y,framePadAttrs as O,padValuesOf as P,tierFramesOf as S}from"../lib/content/section-padding.js";import{CRUMB_PAD as i}from"../../format/lib/sections/strip-shape.js";import{withSideOnce as w}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as j}from"./SideSpaceOnce.js";const B={16:"max-view-tablet:py-4"},T=a=>O({values:P(a,y,!0),frame:S(i),drawsFrame:!0},!0).root;function C({items:a,current:m,meta:s,editing:u=!1,pad:e}){const h=j(),c=(a??[]).filter(r=>r?.label?.trim()),f=m?.trim()?[...c,{label:m}]:c,n=f.length>0?f:u?[{label:N("Breadcrumb")}]:[];return n.length===0&&!s?null:t("nav",{className:w(["border-b border-line px-[var(--sf-site-gutter,40px)]",e?null:_.all[i.top],"font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.2em] text-fg-dim max-view-tablet:px-[min(20px,var(--sf-site-gutter,40px))]",e?e.className:B[i.topPhone]].filter(Boolean).join(" "),h),style:e&&Object.keys(e.style).length?e.style:void 0,...e?.attrs,children:o("div",{className:"mx-auto flex max-w-[var(--sf-content-cap,none)] items-center gap-4",children:[n.map((r,l)=>{const p=l===n.length-1;return o(b,{children:[l>0&&t("span",{className:"opacity-40",children:"/"}),r.href&&!p?t(g,{newTab:"auto",href:r.href,className:"hover:text-fg",children:d(r.label)}):t("span",{className:p?"text-fg":void 0,children:d(r.label)})]},l)}),s&&o(x,{children:[t("span",{className:"opacity-40",children:"·"}),t("span",{children:v(s)})]})]})})}export{T as crumbPad,C as default};
@@ -1,6 +1,7 @@
1
1
  import type { ReactNode } from "react";
2
2
  import type { SectionEyebrowLook } from "../../format/lib/sections/section-eyebrow-look.js";
3
3
  import { cardColumns } from "../../format/lib/content/card-columns.js";
4
+ import type { RootPadAttrs } from "../lib/content/section-padding.js";
4
5
  export interface CardItem {
5
6
  title?: string;
6
7
  body?: string;
@@ -13,7 +14,8 @@ export interface CardsProps {
13
14
  omitHead?: boolean;
14
15
  editing?: boolean;
15
16
  cards?: ReactNode;
17
+ pad?: RootPadAttrs | null;
16
18
  }
17
19
  export declare function cardGridCornerClasses(index: number, count: number, columns: number | undefined): string;
18
20
  export { cardColumns };
19
- export default function Cards({ look, eyebrow, title, columns, omitHead, editing, cards, }?: CardsProps): import("react").JSX.Element | null;
21
+ export default function Cards({ look, eyebrow, title, columns, omitHead, editing, cards, pad, }?: CardsProps): import("react").JSX.Element | null;
@@ -1 +1 @@
1
- import{jsx as n,Fragment as u,jsxs as d}from"react/jsx-runtime";import{HideTaker as b}from"./ViewHideRoot.js";import f from"./SectionEyebrow.js";import{InsideSiteColumn as c}from"./SiteGutterFrame.js";import{renderHeadline as g}from"./goldPhrases.js";import{cardColumns as m}from"../../format/lib/content/card-columns.js";const p={headingMediumUpTo800:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMedium:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]"},v="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] py-[72px] max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",w="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-0 pb-[72px] max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",M="sf-card grid grid-cols-1 gap-px border border-line bg-line view-tablet:[grid-template-columns:repeat(var(--cd-cols),minmax(0,1fr))]",t={phone:{tl:"max-view-tablet:[border-top-left-radius:inherit]",tr:"max-view-tablet:[border-top-right-radius:inherit]",bl:"max-view-tablet:[border-bottom-left-radius:inherit]",br:"max-view-tablet:[border-bottom-right-radius:inherit]"},wide:{tl:"view-tablet:[border-top-left-radius:inherit]",tr:"view-tablet:[border-top-right-radius:inherit]",bl:"view-tablet:[border-bottom-left-radius:inherit]",br:"view-tablet:[border-bottom-right-radius:inherit]"}};function I(r,i,o){const a=m(o),s=i-1,l=Math.floor(s/a)*a,e=[];return r===0&&e.push(t.phone.tl,t.phone.tr,t.wide.tl),r===s&&e.push(t.phone.bl,t.phone.br),r===a-1&&i>=a&&e.push(t.wide.tr),r===l&&e.push(t.wide.bl),r===s&&i%a===0&&e.push(t.wide.br),e.join(" ")}function E({look:r,eyebrow:i,title:o,columns:a,omitHead:s=!1,editing:l=!1,cards:e}={}){const h=m(a),x=!!(i??"").trim()||!!(o??"").trim();return!l&&!x&&!e?null:n(b,{as:"section",className:"relative z-[2] bg-surface",children:d("div",{className:s?w:v,children:[s?null:d(u,{children:[(i??"").trim()&&n(f,{text:i??"",look:r,className:"mb-4 block"}),(o??"").trim()&&n("h2",{className:`mb-9 font-heading2 ${p.headingMedium} font-medium uppercase leading-none tracking-[-0.02em] text-fg max-view-wide:mb-7 ${p.headingMediumUpTo800}`,children:g(o??"",!1)})]}),e?n("div",{className:M,style:{"--cd-cols":String(h),overflowY:"visible"},children:n(c,{children:e})}):null]})})}export{m as cardColumns,I as cardGridCornerClasses,E as default};
1
+ import{jsx as n,Fragment as u,jsxs as l}from"react/jsx-runtime";import{HideTaker as b}from"./ViewHideRoot.js";import g from"./SectionEyebrow.js";import{InsideSiteColumn as v}from"./SiteGutterFrame.js";import{renderHeadline as w}from"./goldPhrases.js";import{cardColumns as d}from"../../format/lib/content/card-columns.js";import{withSideOnce as M}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as E}from"./SideSpaceOnce.js";import{withRootPad as N}from"../lib/content/section-own-pads.js";const p={headingMediumUpTo800:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMedium:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]"},_="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] py-[72px] max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",R="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-0 pb-[72px] max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",S="sf-card grid grid-cols-1 gap-px border border-line bg-line view-tablet:[grid-template-columns:repeat(var(--cd-cols),minmax(0,1fr))]",t={phone:{tl:"max-view-tablet:[border-top-left-radius:inherit]",tr:"max-view-tablet:[border-top-right-radius:inherit]",bl:"max-view-tablet:[border-bottom-left-radius:inherit]",br:"max-view-tablet:[border-bottom-right-radius:inherit]"},wide:{tl:"view-tablet:[border-top-left-radius:inherit]",tr:"view-tablet:[border-top-right-radius:inherit]",bl:"view-tablet:[border-bottom-left-radius:inherit]",br:"view-tablet:[border-bottom-right-radius:inherit]"}};function H(i,r,s){const a=d(s),o=r-1,m=Math.floor(o/a)*a,e=[];return i===0&&e.push(t.phone.tl,t.phone.tr,t.wide.tl),i===o&&e.push(t.phone.bl,t.phone.br),i===a-1&&r>=a&&e.push(t.wide.tr),i===m&&e.push(t.wide.bl),i===o&&r%a===0&&e.push(t.wide.br),e.join(" ")}function T({look:i,eyebrow:r,title:s,columns:a,omitHead:o=!1,editing:m=!1,cards:e,pad:h}={}){const x=E(),c=d(a),f=!!(r??"").trim()||!!(s??"").trim();return!m&&!f&&!e?null:n(b,{as:"section",className:"relative z-[2] bg-surface",children:l("div",{...N(M(o?R:_,x),h),children:[o?null:l(u,{children:[(r??"").trim()&&n(g,{text:r??"",look:i,className:"mb-4 block"}),(s??"").trim()&&n("h2",{className:`mb-9 font-heading2 ${p.headingMedium} font-medium uppercase leading-none tracking-[-0.02em] text-fg max-view-wide:mb-7 ${p.headingMediumUpTo800}`,children:w(s??"",!1)})]}),e?n("div",{className:S,style:{"--cd-cols":String(c),overflowY:"visible"},children:n(v,{children:e})}):null]})})}export{d as cardColumns,H as cardGridCornerClasses,T as default};
@@ -1,3 +1,4 @@
1
+ import type { RootPadAttrs } from "../lib/content/section-padding.js";
1
2
  export interface ChartItem {
2
3
  label?: string;
3
4
  value?: string;
@@ -13,5 +14,6 @@ export interface ChartSectionProps {
13
14
  caption?: string;
14
15
  editing?: boolean;
15
16
  omitHead?: boolean;
17
+ pad?: RootPadAttrs | null;
16
18
  }
17
- export default function ChartSection({ eyebrow, title, body, chartStyle, items, valueSuffix, caption, editing, omitHead, }?: ChartSectionProps): import("react").JSX.Element | null;
19
+ export default function ChartSection({ eyebrow, title, body, chartStyle, items, valueSuffix, caption, editing, omitHead, pad, }?: ChartSectionProps): import("react").JSX.Element | null;
@@ -1 +1 @@
1
- import{jsx as e,jsxs as x}from"react/jsx-runtime";import{HideTaker as $}from"./ViewHideRoot.js";import{renderGold as v,renderHeadline as k}from"./goldPhrases.js";const f={headingMediumUpTo800:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMedium:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]",bodySmall:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,16px)]",labelSmall:"text-[length:var(--size-label,10px)]",label:"text-[length:var(--size-label,11px)]",labelLarge:"text-[length:var(--size-label,12px)]"};function b(a){return Number.isInteger(a)?String(a):String(Math.round(a*10)/10)}const y=[100,70,46,30,19,12];function N(a){return`color-mix(in srgb, var(--accent) ${y[a%y.length]}%, var(--bg))`}function w({data:a,suffix:d}){const u=Math.max(...a.map(c=>c.value),0)||1;return e("div",{className:"flex w-full flex-col gap-6",children:a.map((c,t)=>x("div",{children:[x("div",{className:"mb-2 flex items-baseline justify-between gap-4",children:[e("span",{className:`font-mono ${f.label} uppercase tracking-[0.14em] text-fg/60`,children:v(c.label)}),x("span",{className:`font-display ${f.bodyLarge} font-medium text-fg`,children:[b(c.value),d]})]}),e("div",{className:"h-[10px] border border-line bg-bg",children:e("div",{className:"h-full bg-accent",style:{width:`${Math.max(c.value/u*100,c.value===0?0:2)}%`}})})]},t))})}function M({data:a,suffix:d}){const t={l:42,r:42,t:36,b:38},p=640-t.l-t.r,r=300-t.t-t.b,n=Math.max(...a.map(l=>l.value),0)||1,i=a.length>1?p/(a.length-1):0,s=a.map((l,o)=>({x:t.l+(a.length>1?o*i:p/2),y:t.t+r-l.value/n*r})),m=s.map((l,o)=>`${o===0?"M":"L"}${l.x},${l.y}`).join(" "),g=`${m} L${s[s.length-1].x},${t.t+r} L${s[0].x},${t.t+r} Z`;return x("svg",{viewBox:"0 0 640 300",className:"w-full",role:"img","aria-hidden":!0,children:[[.25,.5,.75,1].map(l=>e("line",{x1:t.l,x2:640-t.r,y1:t.t+r*(1-l),y2:t.t+r*(1-l),stroke:"var(--site-line)",strokeWidth:"1"},l)),e("line",{x1:t.l,x2:640-t.r,y1:t.t+r,y2:t.t+r,stroke:"var(--site-line)",strokeWidth:"1.5"}),e("path",{d:g,fill:"var(--accent)",opacity:"0.13"}),e("path",{d:m,fill:"none",stroke:"var(--accent)",strokeWidth:"2.5"}),s.map((l,o)=>x("g",{children:[e("circle",{cx:l.x,cy:l.y,r:"4",fill:"var(--accent)"}),x("text",{x:l.x,y:l.y-12,textAnchor:"middle",className:"font-display",fontSize:"14",fill:"var(--fg)",children:[b(a[o].value),d]}),e("text",{x:l.x,y:288,textAnchor:"middle",className:"font-mono",fontSize:"10",letterSpacing:"0.1em",fill:"var(--fg)",opacity:"0.55",children:a[o].label.toUpperCase()})]},o))]})}function S({data:a,suffix:d}){const u=a.reduce((n,i)=>n+i.value,0)||1,c=80,t=2*Math.PI*c;let p=0;const r=a.map((n,i)=>{const s=n.value/u,m={frac:s,dash:Math.max(s*t-3,0),off:p,ink:N(i)};return p+=s*t,m});return x("div",{className:"flex w-full flex-wrap items-center justify-center gap-10",children:[e("svg",{viewBox:"0 0 200 200",className:"w-[220px] max-w-full -rotate-90",role:"img","aria-hidden":!0,children:r.map((n,i)=>e("circle",{cx:"100",cy:"100",r:c,fill:"none",stroke:n.ink,strokeWidth:"34",strokeDasharray:`${n.dash} ${t-n.dash}`,strokeDashoffset:-n.off},i))}),e("ul",{className:"flex min-w-[200px] flex-1 flex-col gap-3",children:a.map((n,i)=>x("li",{className:"flex items-baseline gap-3",children:[e("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] flex-shrink-0 rotate-45",style:{background:N(i)}}),e("span",{className:`flex-1 font-mono ${f.label} uppercase tracking-[0.12em] text-fg/60`,children:v(n.label)}),e("span",{className:`font-display ${f.bodySmall} font-medium text-fg`,children:d?`${b(n.value)}${d}`:`${Math.round(n.value/u*100)}%`})]},i))})]})}function z({eyebrow:a,title:d,body:u,chartStyle:c,items:t,valueSuffix:p,caption:r,editing:n=!1,omitHead:i=!1}={}){const s=(p??"").trim()===""?"":p??"",m=(t??[]).map(h=>({label:(h.label??"").trim(),value:parseFloat(h.value??"")})).filter(h=>n?!0:h.label&&Number.isFinite(h.value)).map(h=>({label:h.label||"—",value:Number.isFinite(h.value)?h.value:0})),g=!i&&(!!(a??"").trim()||!!(d??"").trim());if(!n&&!g&&m.length===0)return null;const l=c??"bars",o=m.length===0?null:l==="line"&&m.length>1?e(M,{data:m,suffix:s}):l==="donut"?e(S,{data:m,suffix:s}):e(w,{data:m,suffix:s});return i?o?e("div",{className:"w-full",children:o}):null:e($,{as:"section",className:"relative z-[2] border-y border-line bg-surface",children:x("div",{className:"mx-auto grid max-w-[var(--sf-site-width,1600px)] items-center gap-14 px-[var(--sf-site-gutter,40px)] py-[76px] min-[960px]:[grid-template-columns:minmax(0,5fr)_minmax(0,7fr)] max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",children:[x("div",{children:[(a??"").trim()&&e("span",{className:`inline-block bg-accent px-3.5 py-1.5 font-mono ${f.labelLarge} font-semibold uppercase tracking-[0.16em] text-bg`,children:v(a??"")}),(d??"").trim()&&e("h2",{className:`mt-5 font-heading2 ${f.headingMedium} font-medium uppercase leading-[1.04] tracking-[-0.02em] text-fg ${f.headingMediumUpTo800}`,children:k(d??"",!1)}),(u??"").trim()&&e("p",{className:`mt-5 max-w-[46ch] ${f.bodySmall} leading-relaxed text-fg/65`,children:u})]}),x("div",{children:[o,(r??"").trim()&&e("p",{className:`mt-4 font-mono ${f.labelSmall} uppercase tracking-[0.14em] text-fg/40`,children:r})]})]})})}export{z as default};
1
+ import{jsx as e,jsxs as o}from"react/jsx-runtime";import{HideTaker as w}from"./ViewHideRoot.js";import{renderGold as b,renderHeadline as M}from"./goldPhrases.js";import{withSideOnce as S}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as z}from"./SideSpaceOnce.js";import{withRootPad as W}from"../lib/content/section-own-pads.js";const f={headingMediumUpTo800:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMedium:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]",bodySmall:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,16px)]",labelSmall:"text-[length:var(--size-label,10px)]",label:"text-[length:var(--size-label,11px)]",labelLarge:"text-[length:var(--size-label,12px)]"};function y(a){return Number.isInteger(a)?String(a):String(Math.round(a*10)/10)}const $=[100,70,46,30,19,12];function k(a){return`color-mix(in srgb, var(--accent) ${$[a%$.length]}%, var(--bg))`}function L({data:a,suffix:m}){const h=Math.max(...a.map(s=>s.value),0)||1;return e("div",{className:"flex w-full flex-col gap-6",children:a.map((s,t)=>o("div",{children:[o("div",{className:"mb-2 flex items-baseline justify-between gap-4",children:[e("span",{className:`font-mono ${f.label} uppercase tracking-[0.14em] text-fg/60`,children:b(s.label)}),o("span",{className:`font-display ${f.bodyLarge} font-medium text-fg`,children:[y(s.value),m]})]}),e("div",{className:"h-[10px] border border-line bg-bg",children:e("div",{className:"h-full bg-accent",style:{width:`${Math.max(s.value/h*100,s.value===0?0:2)}%`}})})]},t))})}function j({data:a,suffix:m}){const t={l:42,r:42,t:36,b:38},p=640-t.l-t.r,r=300-t.t-t.b,n=Math.max(...a.map(l=>l.value),0)||1,i=a.length>1?p/(a.length-1):0,c=a.map((l,d)=>({x:t.l+(a.length>1?d*i:p/2),y:t.t+r-l.value/n*r})),u=c.map((l,d)=>`${d===0?"M":"L"}${l.x},${l.y}`).join(" "),g=`${u} L${c[c.length-1].x},${t.t+r} L${c[0].x},${t.t+r} Z`;return o("svg",{viewBox:"0 0 640 300",className:"w-full",role:"img","aria-hidden":!0,children:[[.25,.5,.75,1].map(l=>e("line",{x1:t.l,x2:640-t.r,y1:t.t+r*(1-l),y2:t.t+r*(1-l),stroke:"var(--site-line)",strokeWidth:"1"},l)),e("line",{x1:t.l,x2:640-t.r,y1:t.t+r,y2:t.t+r,stroke:"var(--site-line)",strokeWidth:"1.5"}),e("path",{d:g,fill:"var(--accent)",opacity:"0.13"}),e("path",{d:u,fill:"none",stroke:"var(--accent)",strokeWidth:"2.5"}),c.map((l,d)=>o("g",{children:[e("circle",{cx:l.x,cy:l.y,r:"4",fill:"var(--accent)"}),o("text",{x:l.x,y:l.y-12,textAnchor:"middle",className:"font-display",fontSize:"14",fill:"var(--fg)",children:[y(a[d].value),m]}),e("text",{x:l.x,y:288,textAnchor:"middle",className:"font-mono",fontSize:"10",letterSpacing:"0.1em",fill:"var(--fg)",opacity:"0.55",children:a[d].label.toUpperCase()})]},d))]})}function H({data:a,suffix:m}){const h=a.reduce((n,i)=>n+i.value,0)||1,s=80,t=2*Math.PI*s;let p=0;const r=a.map((n,i)=>{const c=n.value/h,u={frac:c,dash:Math.max(c*t-3,0),off:p,ink:k(i)};return p+=c*t,u});return o("div",{className:"flex w-full flex-wrap items-center justify-center gap-10",children:[e("svg",{viewBox:"0 0 200 200",className:"w-[220px] max-w-full -rotate-90",role:"img","aria-hidden":!0,children:r.map((n,i)=>e("circle",{cx:"100",cy:"100",r:s,fill:"none",stroke:n.ink,strokeWidth:"34",strokeDasharray:`${n.dash} ${t-n.dash}`,strokeDashoffset:-n.off},i))}),e("ul",{className:"flex min-w-[200px] flex-1 flex-col gap-3",children:a.map((n,i)=>o("li",{className:"flex items-baseline gap-3",children:[e("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] flex-shrink-0 rotate-45",style:{background:k(i)}}),e("span",{className:`flex-1 font-mono ${f.label} uppercase tracking-[0.12em] text-fg/60`,children:b(n.label)}),e("span",{className:`font-display ${f.bodySmall} font-medium text-fg`,children:m?`${y(n.value)}${m}`:`${Math.round(n.value/h*100)}%`})]},i))})]})}function T({eyebrow:a,title:m,body:h,chartStyle:s,items:t,valueSuffix:p,caption:r,editing:n=!1,omitHead:i=!1,pad:c}={}){const u=z(),g=(p??"").trim()===""?"":p??"",l=(t??[]).map(x=>({label:(x.label??"").trim(),value:parseFloat(x.value??"")})).filter(x=>n?!0:x.label&&Number.isFinite(x.value)).map(x=>({label:x.label||"—",value:Number.isFinite(x.value)?x.value:0})),d=!i&&(!!(a??"").trim()||!!(m??"").trim());if(!n&&!d&&l.length===0)return null;const N=s??"bars",v=l.length===0?null:N==="line"&&l.length>1?e(j,{data:l,suffix:g}):N==="donut"?e(H,{data:l,suffix:g}):e(L,{data:l,suffix:g});return i?v?e("div",{className:"w-full",children:v}):null:e(w,{as:"section",className:"relative z-[2] border-y border-line bg-surface",children:o("div",{...W(S("mx-auto grid max-w-[var(--sf-site-width,1600px)] items-center gap-14 px-[var(--sf-site-gutter,40px)] py-[76px] min-[960px]:[grid-template-columns:minmax(0,5fr)_minmax(0,7fr)] max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",u),c),children:[o("div",{children:[(a??"").trim()&&e("span",{className:`inline-block bg-accent px-3.5 py-1.5 font-mono ${f.labelLarge} font-semibold uppercase tracking-[0.16em] text-bg`,children:b(a??"")}),(m??"").trim()&&e("h2",{className:`mt-5 font-heading2 ${f.headingMedium} font-medium uppercase leading-[1.04] tracking-[-0.02em] text-fg ${f.headingMediumUpTo800}`,children:M(m??"",!1)}),(h??"").trim()&&e("p",{className:`mt-5 max-w-[46ch] ${f.bodySmall} leading-relaxed text-fg/65`,children:h})]}),o("div",{children:[v,(r??"").trim()&&e("p",{className:`mt-4 font-mono ${f.labelSmall} uppercase tracking-[0.14em] text-fg/40`,children:r})]})]})})}export{T as default};
@@ -1,3 +1,4 @@
1
+ import type { RootPadAttrs } from "../lib/content/section-padding.js";
1
2
  import { type ContactLocationCard } from "../../format/lib/content/contact.js";
2
3
  import { type MapThemeMode } from "../../format/lib/map-styles.js";
3
4
  import { type PictureHoverDrawn } from "../../format/lib/animation/hover.js";
@@ -13,5 +14,6 @@ export interface ContactLocationsProps {
13
14
  pictureHover?: PictureHoverDrawn;
14
15
  editing?: boolean;
15
16
  nodeId?: string;
17
+ pad?: RootPadAttrs | null;
16
18
  }
17
- export default function ContactLocations({ sectionNumber, heading, tagline, galleryKicker, galleryHint, locations, mapTheme, imageShape, pictureHover, editing, nodeId, }: ContactLocationsProps): import("react").JSX.Element;
19
+ export default function ContactLocations({ sectionNumber, heading, tagline, galleryKicker, galleryHint, locations, mapTheme, imageShape, pictureHover, editing, nodeId, pad, }: ContactLocationsProps): import("react").JSX.Element;
@@ -1,2 +1,2 @@
1
- "use client";import{jsx as t,jsxs as i,Fragment as O}from"react/jsx-runtime";import{HideTaker as F}from"./ViewHideRoot.js";import{PictureZoom as G}from"./PictureZoom.js";import{FILLS_ITS_FRAME as V}from"../../format/lib/content/image-aspect.js";import{EDITORIAL_COLUMN as W}from"../../format/lib/content/page-width.js";import{SiteImage as q}from"../lib/site-runtime.js";import{useEffect as J,useState as Z}from"react";import{stripMarkup as K}from"../../format/lib/markup.js";import Q from"./EditorialSectionHead.js";import X from"./SectionEyebrow.js";import{scrollBehavior as j}from"./useReducedMotion.js";import{renderGold as H,renderHeadline as Y}from"./goldPhrases.js";import{CONTACT_LOCATIONS_CARDS_PLACEHOLDER as ee,CONTACT_LOCATIONS_DEFAULTS as f,parseLocationTileShape as te,splitLegacyRegion as ne}from"../../format/lib/content/contact.js";import{galleryCardRatioClass as ie}from"../../format/lib/content/gallery-card-layout.js";import{jumpHighlightCss as oe,NEW_TAB_ATTRS as re}from"../../format/lib/content/box-link.js";import{hasMapCoords as z}from"../../format/lib/map-styles.js";import{useRootIsDark as ae}from"efficient-shell/theme";import{bucketByGroup as se,groupColsClass as $}from"../../format/lib/locations-grid.js";import{LocationGroupHeader as le}from"./LocationGroupHeader.js";import ce,{DirectionsLink as me,directionsHref as pe}from"./LocationMap.js";import{phoneHref as de}from"../../format/lib/links/phone-href.js";import{scrim as ue}from"../../format/lib/content/scrim.js";import{PHOTO_HOST_ATTR as he,resolveImageTreatment as fe}from"../../format/lib/content/image-treatment.js";import{pictureHoverOf as ge}from"../../format/lib/animation/hover.js";import xe from"./PhotoHoverSheet.js";import{nonEmptyString as be}from"../../format/lib/non-empty-string.js";const ve=oe({box:".contact-loc",lit:['.contact-loc[data-active="true"]'],first:o=>[`${o} > div:first-child`]}),E=o=>be(o?.photo)?.trim()||void 0;function M({value:o}){if(typeof o=="string"){const n=o.split(`
2
- `);return t(O,{children:n.map((c,a)=>i("span",{children:[c,a<n.length-1?t("br",{}):null]},a))})}return t(O,{children:o})}function ye(){return t("div",{className:"absolute inset-0 flex items-center justify-center",style:{background:"repeating-linear-gradient(45deg, rgba(201,164,97,.05) 0 1px, transparent 1px 14px), linear-gradient(135deg, var(--site-surface-2), var(--site-surface))"},children:i("svg",{width:"34",height:"34",viewBox:"0 0 24 24",fill:"none",stroke:"var(--fg-dim)",strokeWidth:1.4,"aria-hidden":"true",style:{opacity:.4},children:[t("rect",{x:"3",y:"4",width:"18",height:"16",rx:"1.5"}),t("circle",{cx:"8.5",cy:"9.5",r:"1.6"}),t("path",{d:"M21 16l-5-5-4 4-2-2-7 7"})]})})}function Ne({sectionNumber:o=f.sectionNumber,heading:n=f.heading,tagline:c=f.tagline,galleryKicker:a=f.galleryKicker,galleryHint:u=f.galleryHint,locations:m=ee,mapTheme:g="auto",imageShape:y,pictureHover:x=ge({},"ContactLocations"),editing:s,nodeId:h}){const r=fe(void 0,void 0,x),L=r.className?{[he]:""}:{},p=!ae({whenUnset:!0}),[b,C]=Z(null),N=e=>`loc-${e}`,B=e=>{C(e),typeof document<"u"&&document.getElementById(e)?.scrollIntoView({behavior:j(),block:"start"}),!s&&typeof window<"u"&&window.history?.replaceState&&window.history.replaceState(null,"",`#${e}`)};J(()=>{if(typeof window>"u")return;const e=window.location.hash.replace(/^#/,"");!e||!document.getElementById(e)||(C(e),requestAnimationFrame(()=>{document.getElementById(e)?.scrollIntoView({behavior:j(),block:"start"})}))},[]);const P=ie(te(y)),k=(e,d)=>s&&h?`${e}:${d}`:void 0,I=m.some(e=>E(e)!==void 0),R=m.length>0&&(s||I),D=m.some(e=>z(Number(e?.lat),Number(e?.lng))),_=se(m,e=>String(e.group??""),e=>String(e.groupName??""));return t(F,{as:"section",id:"studios",className:"scroll-mt-24 border-b border-line py-[100px] max-view-desktop:py-[60px]",style:p?void 0:{background:"var(--section-bg)"},children:i("div",{className:W,children:[t("style",{dangerouslySetInnerHTML:{__html:ve}}),t(xe,{sheet:I?r.sheet:void 0}),(o||n||c)&&t(Q,{num:o,title:n?Y(n,!0):void 0,desc:c?H(c):void 0,spaceBelow:"mb-10"}),R&&i("div",{className:"mb-12",children:[(a||u)&&i("div",{className:"mb-5 flex items-baseline justify-between gap-6 border-b border-line pb-4",children:[a&&t(X,{text:a,size:12}),u&&t("span",{className:"font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.22em] text-fg-dim",children:H(u)})]}),t("div",{className:"flex flex-col gap-6",children:_.map((e,d)=>{const v=e.items.length===1;return i("div",{children:[e.key&&t("div",{className:"mb-2.5 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.3em] text-accent",children:e.key}),t("div",{className:["grid gap-[2px] border border-line bg-line",$(e.items.length),e.items.length>1?"max-[700px]:grid-cols-2":""].join(" "),children:e.items.map(({item:l,index:w})=>{const S=String(l?.name??""),T=E(l),A=N(w);return i("a",{href:`#${A}`,"aria-label":`Jump to ${S||"location"} map`,onClick:U=>{U.preventDefault(),B(A)},"data-loc-pick":k(w,"image"),...L,className:["group relative block",P,"overflow-hidden bg-bg outline-none focus-visible:ring-2 focus-visible:ring-accent",v?"max-h-[440px]":""].join(" "),children:[t(G,{fill:T?V:null,children:T?t(q,{src:T,alt:K(S||"Location"),fill:!0,sizes:v?"100vw":"(max-width: 700px) 50vw, 33vw",className:`object-cover${r.className?` ${r.className}`:""}`,...r.style?{style:r.style}:{}}):t(ye,{})}),t("div",{className:"pointer-events-none absolute inset-0",style:{background:`linear-gradient(180deg, transparent 50%, ${ue(.85)} 100%)`}}),t("figcaption",{className:"absolute inset-x-0 bottom-0 z-[1] flex items-center justify-start gap-2 px-3 py-3 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.22em] text-overlay-fg/85",children:t("span",{children:S})})]},w)})})]},e.key?`g:${e.key}`:`ungrouped:${d}`)})})]}),_.map((e,d)=>i("div",{className:d===0?"":"mt-10",children:[e.key&&t(le,{groupKey:e.key,name:e.name,count:e.items.length}),t("div",{className:["grid gap-[2px] border border-line bg-line",$(e.items.length),e.items.length>1?"max-view-desktop:grid-cols-1":""].join(" "),children:e.items.map(({item:v,index:l})=>t(ke,{id:N(l),card:v,active:b===N(l),mapTheme:g,mapPick:k(l,"map"),cityPick:k(l,"city"),editing:s},l))})]},e.key?`g:${e.key}`:`ungrouped:${d}`)),D&&i("p",{className:"mt-8 text-right font-mono text-[10px] uppercase tracking-[0.25em] text-fg-dim/50",children:["Location coordinates ©"," ",t("a",{href:"https://www.openstreetmap.org/copyright",...re,className:"hover:text-accent",children:"OpenStreetMap contributors"})]})]})})}function ke({id:o,card:n,active:c,mapTheme:a,mapPick:u,cityPick:m,editing:g}){const y=de(n.phone),x=ne(n.region),s=String(n.state??"").trim()||x.state,h=String(n.country??"").trim()||x.country,r=[s,h].filter(Boolean).join(" · "),p=z(Number(n.lat),Number(n.lng))||!!g,b=pe(String(n.mapsUrl??""),String(n.name??""),s,h);return i("article",{id:o,"data-active":c?"true":void 0,"data-loc-pick":m,className:p?"contact-loc grid min-h-[840px] scroll-mt-[120px] grid-rows-[auto_1fr] bg-bg max-view-desktop:min-h-0":"contact-loc grid scroll-mt-[120px] bg-bg",children:[i("div",{className:p?"flex min-h-[280px] flex-col gap-3 border-b border-line px-7 py-7":"flex flex-col gap-3 px-7 py-7",children:[i("div",{className:"flex items-start justify-between gap-3.5",children:[i("div",{children:[n.name&&t("div",{className:"font-heading3 text-[length:var(--size-headingSmall,30px)] font-medium uppercase leading-none tracking-[-0.02em]",children:n.name}),r&&t("div",{className:"mt-1.5 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.24em] text-accent",children:r})]}),n.timezone&&t("span",{className:"whitespace-nowrap border border-line px-2.5 py-1.5 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.22em] text-fg-dim",children:n.timezone})]}),n.address!=null&&n.address!==""&&t("div",{className:"mt-1.5 font-display text-[length:var(--size-body,14px)] leading-[1.5] text-fg-dim",children:t(M,{value:n.address})}),n.phone&&t("div",{children:t("a",{href:y,className:"font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.18em] text-fg hover:text-accent",children:n.phone})}),n.hours!=null&&n.hours!==""&&t("div",{className:"font-mono text-[length:var(--size-label,12px)] uppercase leading-[1.7] tracking-[0.18em] text-fg-dim",children:t(M,{value:n.hours})}),!p&&b&&t("div",{children:t(me,{href:b})})]}),p&&t(ce,{name:String(n.name??""),state:s,country:h,lat:Number(n.lat),lng:Number(n.lng),mapsUrl:String(n.mapsUrl??""),mapTheme:a,pick:u,editing:g})]})}export{Ne as default};
1
+ "use client";import{jsx as t,jsxs as i,Fragment as A}from"react/jsx-runtime";import{HideTaker as V}from"./ViewHideRoot.js";import{PictureZoom as W}from"./PictureZoom.js";import{FILLS_ITS_FRAME as q}from"../../format/lib/content/image-aspect.js";import{EDITORIAL_COLUMN as J,withSideOnce as Z}from"../../format/lib/content/page-width.js";import{withRootPad as K}from"../lib/content/section-own-pads.js";import{SiteImage as Q}from"../lib/site-runtime.js";import{useEffect as X,useState as Y}from"react";import{stripMarkup as ee}from"../../format/lib/markup.js";import te from"./EditorialSectionHead.js";import ne from"./SectionEyebrow.js";import{scrollBehavior as j}from"./useReducedMotion.js";import{renderGold as H,renderHeadline as ie}from"./goldPhrases.js";import{CONTACT_LOCATIONS_CARDS_PLACEHOLDER as oe,CONTACT_LOCATIONS_DEFAULTS as h,parseLocationTileShape as re,splitLegacyRegion as ae}from"../../format/lib/content/contact.js";import{galleryCardRatioClass as se}from"../../format/lib/content/gallery-card-layout.js";import{jumpHighlightCss as le,NEW_TAB_ATTRS as ce}from"../../format/lib/content/box-link.js";import{hasMapCoords as z}from"../../format/lib/map-styles.js";import{useRootIsDark as me}from"efficient-shell/theme";import{bucketByGroup as pe,groupColsClass as $}from"../../format/lib/locations-grid.js";import{LocationGroupHeader as de}from"./LocationGroupHeader.js";import ue,{DirectionsLink as he,directionsHref as fe}from"./LocationMap.js";import{phoneHref as ge}from"../../format/lib/links/phone-href.js";import{scrim as xe}from"../../format/lib/content/scrim.js";import{PHOTO_HOST_ATTR as be,resolveImageTreatment as ve}from"../../format/lib/content/image-treatment.js";import{pictureHoverOf as ye}from"../../format/lib/animation/hover.js";import Ne from"./PhotoHoverSheet.js";import{nonEmptyString as ke}from"../../format/lib/non-empty-string.js";import{useSideSpaceOnce as we}from"./SideSpaceOnce.js";const Se=le({box:".contact-loc",lit:['.contact-loc[data-active="true"]'],first:o=>[`${o} > div:first-child`]}),E=o=>ke(o?.photo)?.trim()||void 0;function M({value:o}){if(typeof o=="string"){const n=o.split(`
2
+ `);return t(A,{children:n.map((c,a)=>i("span",{children:[c,a<n.length-1?t("br",{}):null]},a))})}return t(A,{children:o})}function Te(){return t("div",{className:"absolute inset-0 flex items-center justify-center",style:{background:"repeating-linear-gradient(45deg, rgba(201,164,97,.05) 0 1px, transparent 1px 14px), linear-gradient(135deg, var(--site-surface-2), var(--site-surface))"},children:i("svg",{width:"34",height:"34",viewBox:"0 0 24 24",fill:"none",stroke:"var(--fg-dim)",strokeWidth:1.4,"aria-hidden":"true",style:{opacity:.4},children:[t("rect",{x:"3",y:"4",width:"18",height:"16",rx:"1.5"}),t("circle",{cx:"8.5",cy:"9.5",r:"1.6"}),t("path",{d:"M21 16l-5-5-4 4-2-2-7 7"})]})})}function Le({sectionNumber:o=h.sectionNumber,heading:n=h.heading,tagline:c=h.tagline,galleryKicker:a=h.galleryKicker,galleryHint:d=h.galleryHint,locations:m=oe,mapTheme:f="auto",imageShape:y,pictureHover:g=ye({},"ContactLocations"),editing:s,nodeId:u,pad:x}){const L=we(),r=ve(void 0,void 0,g),b=r.className?{[be]:""}:{},B=!me({whenUnset:!0}),[P,C]=Y(null),N=e=>`loc-${e}`,R=e=>{C(e),typeof document<"u"&&document.getElementById(e)?.scrollIntoView({behavior:j(),block:"start"}),!s&&typeof window<"u"&&window.history?.replaceState&&window.history.replaceState(null,"",`#${e}`)};X(()=>{if(typeof window>"u")return;const e=window.location.hash.replace(/^#/,"");!e||!document.getElementById(e)||(C(e),requestAnimationFrame(()=>{document.getElementById(e)?.scrollIntoView({behavior:j(),block:"start"})}))},[]);const D=se(re(y)),k=(e,p)=>s&&u?`${e}:${p}`:void 0,I=m.some(e=>E(e)!==void 0),U=m.length>0&&(s||I),F=m.some(e=>z(Number(e?.lat),Number(e?.lng))),O=pe(m,e=>String(e.group??""),e=>String(e.groupName??""));return t(V,{as:"section",id:"studios",...K("scroll-mt-24 border-b border-line py-[100px] max-view-desktop:py-[60px]",x,B?void 0:{background:"var(--section-bg)"}),children:i("div",{className:Z(J,L),children:[t("style",{dangerouslySetInnerHTML:{__html:Se}}),t(Ne,{sheet:I?r.sheet:void 0}),(o||n||c)&&t(te,{num:o,title:n?ie(n,!0):void 0,desc:c?H(c):void 0,spaceBelow:"mb-10"}),U&&i("div",{className:"mb-12",children:[(a||d)&&i("div",{className:"mb-5 flex items-baseline justify-between gap-6 border-b border-line pb-4",children:[a&&t(ne,{text:a,size:12}),d&&t("span",{className:"font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.22em] text-fg-dim",children:H(d)})]}),t("div",{className:"flex flex-col gap-6",children:O.map((e,p)=>{const v=e.items.length===1;return i("div",{children:[e.key&&t("div",{className:"mb-2.5 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.3em] text-accent",children:e.key}),t("div",{className:["grid gap-[2px] border border-line bg-line",$(e.items.length),e.items.length>1?"max-[700px]:grid-cols-2":""].join(" "),children:e.items.map(({item:l,index:w})=>{const S=String(l?.name??""),T=E(l),_=N(w);return i("a",{href:`#${_}`,"aria-label":`Jump to ${S||"location"} map`,onClick:G=>{G.preventDefault(),R(_)},"data-loc-pick":k(w,"image"),...b,className:["group relative block",D,"overflow-hidden bg-bg outline-none focus-visible:ring-2 focus-visible:ring-accent",v?"max-h-[440px]":""].join(" "),children:[t(W,{fill:T?q:null,children:T?t(Q,{src:T,alt:ee(S||"Location"),fill:!0,sizes:v?"100vw":"(max-width: 700px) 50vw, 33vw",className:`object-cover${r.className?` ${r.className}`:""}`,...r.style?{style:r.style}:{}}):t(Te,{})}),t("div",{className:"pointer-events-none absolute inset-0",style:{background:`linear-gradient(180deg, transparent 50%, ${xe(.85)} 100%)`}}),t("figcaption",{className:"absolute inset-x-0 bottom-0 z-[1] flex items-center justify-start gap-2 px-3 py-3 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.22em] text-overlay-fg/85",children:t("span",{children:S})})]},w)})})]},e.key?`g:${e.key}`:`ungrouped:${p}`)})})]}),O.map((e,p)=>i("div",{className:p===0?"":"mt-10",children:[e.key&&t(de,{groupKey:e.key,name:e.name,count:e.items.length}),t("div",{className:["grid gap-[2px] border border-line bg-line",$(e.items.length),e.items.length>1?"max-view-desktop:grid-cols-1":""].join(" "),children:e.items.map(({item:v,index:l})=>t(Ce,{id:N(l),card:v,active:P===N(l),mapTheme:f,mapPick:k(l,"map"),cityPick:k(l,"city"),editing:s},l))})]},e.key?`g:${e.key}`:`ungrouped:${p}`)),F&&i("p",{className:"mt-8 text-right font-mono text-[10px] uppercase tracking-[0.25em] text-fg-dim/50",children:["Location coordinates ©"," ",t("a",{href:"https://www.openstreetmap.org/copyright",...ce,className:"hover:text-accent",children:"OpenStreetMap contributors"})]})]})})}function Ce({id:o,card:n,active:c,mapTheme:a,mapPick:d,cityPick:m,editing:f}){const y=ge(n.phone),g=ae(n.region),s=String(n.state??"").trim()||g.state,u=String(n.country??"").trim()||g.country,x=[s,u].filter(Boolean).join(" · "),r=z(Number(n.lat),Number(n.lng))||!!f,b=fe(String(n.mapsUrl??""),String(n.name??""),s,u);return i("article",{id:o,"data-active":c?"true":void 0,"data-loc-pick":m,className:r?"contact-loc grid min-h-[840px] scroll-mt-[120px] grid-rows-[auto_1fr] bg-bg max-view-desktop:min-h-0":"contact-loc grid scroll-mt-[120px] bg-bg",children:[i("div",{className:r?"flex min-h-[280px] flex-col gap-3 border-b border-line px-7 py-7":"flex flex-col gap-3 px-7 py-7",children:[i("div",{className:"flex items-start justify-between gap-3.5",children:[i("div",{children:[n.name&&t("div",{className:"font-heading3 text-[length:var(--size-headingSmall,30px)] font-medium uppercase leading-none tracking-[-0.02em]",children:n.name}),x&&t("div",{className:"mt-1.5 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.24em] text-accent",children:x})]}),n.timezone&&t("span",{className:"whitespace-nowrap border border-line px-2.5 py-1.5 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.22em] text-fg-dim",children:n.timezone})]}),n.address!=null&&n.address!==""&&t("div",{className:"mt-1.5 font-display text-[length:var(--size-body,14px)] leading-[1.5] text-fg-dim",children:t(M,{value:n.address})}),n.phone&&t("div",{children:t("a",{href:y,className:"font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.18em] text-fg hover:text-accent",children:n.phone})}),n.hours!=null&&n.hours!==""&&t("div",{className:"font-mono text-[length:var(--size-label,12px)] uppercase leading-[1.7] tracking-[0.18em] text-fg-dim",children:t(M,{value:n.hours})}),!r&&b&&t("div",{children:t(he,{href:b})})]}),r&&t(ue,{name:String(n.name??""),state:s,country:u,lat:Number(n.lat),lng:Number(n.lng),mapsUrl:String(n.mapsUrl??""),mapTheme:a,pick:d,editing:f})]})}export{Le as default};
@@ -1,3 +1,4 @@
1
+ import type { RootPadAttrs } from "../lib/content/section-padding.js";
1
2
  export interface CountdownProps {
2
3
  title?: string;
3
4
  zeroText?: string;
@@ -5,6 +6,7 @@ export interface CountdownProps {
5
6
  showUnits?: boolean;
6
7
  editing?: boolean;
7
8
  omitHead?: boolean;
9
+ pad?: RootPadAttrs | null;
8
10
  }
9
11
  export declare function secondsLeft(endMs: number, nowMs: number): number;
10
- export default function Countdown({ title, zeroText, endsAt, showUnits, editing, omitHead, }?: CountdownProps): import("react").JSX.Element | null;
12
+ export default function Countdown({ title, zeroText, endsAt, showUnits, editing, omitHead, pad: rootPad, }?: CountdownProps): import("react").JSX.Element | null;
@@ -1 +1 @@
1
- "use client";import{jsx as e,jsxs as i,Fragment as y}from"react/jsx-runtime";import{HideTaker as M}from"./ViewHideRoot.js";import{useEffect as D,useState as u}from"react";import h from"./PartStyledKind.js";import{renderGold as I,renderHeadline as L}from"./goldPhrases.js";import{PART_KIND_ATTR as g}from"../lib/document/text-parts.js";import{TEXT_KIND_NAME as v,TEXT_KIND_VALUE as N}from"../../format/lib/sections/section-text-kinds.js";const m={headingSmall:"text-[length:min(var(--size-headingSmall,32px),var(--sf-heading-max,9999px))]",labelSmall:"text-[length:var(--size-label,11px)]",labelLarge:"text-[length:var(--size-label,12px)]"},$=24*3600*1e3,z=[{key:"hours",label:"Hours"},{key:"minutes",label:"Minutes"},{key:"seconds",label:"Seconds"}];function A(t,n){return Math.max(0,Math.ceil((t-n)/1e3))}function j(t){const n=Date.parse((t??"").trim());return Number.isFinite(n)?n:null}const H=t=>String(t).padStart(2,"0");function K({title:t,zeroText:n,endsAt:w,showUnits:b=!0,editing:o=!1,omitHead:S=!1}={}){const k=j(w),[T]=u(()=>Date.now()+$),r=k??(o?T:null),[_,d]=u(()=>Date.now());if(D(()=>{if(r===null)return;d(Date.now());const l=window.setInterval(()=>d(Date.now()),1e3);return()=>window.clearInterval(l)},[r]),r===null)return null;const a=A(r,_),s=[Math.floor(a/3600),Math.floor(a%3600/60),a%60],p=(t??"").trim(),c=(n??"").trim(),E=`${s[0]} hours, ${s[1]} minutes and ${s[2]} seconds left`,f=a===0?c&&e("p",{className:`font-heading3 ${m.headingSmall} font-medium leading-tight text-fg`,children:L(c,!1)}):i(y,{children:[e("span",{className:"sr-only",children:E}),e("div",{"aria-hidden":!0,className:"flex items-start gap-[clamp(8px,2vw,24px)]",children:z.map((l,x)=>i("div",{className:"contents",children:[x>0&&e("span",{className:"font-mono text-[length:clamp(32px,7vw,80px)] leading-none text-accent",children:":"}),i("div",{className:"flex min-w-0 flex-col items-center gap-2",children:[e(h,{kind:N,children:e("span",{"data-countdown-unit":l.key,...o?{[g]:N}:{},suppressHydrationWarning:!0,className:"font-mono text-[length:clamp(40px,8vw,96px)] font-medium leading-none tabular-nums text-fg",children:H(s[x])})}),b&&e(h,{kind:v,children:e("span",{...o?{[g]:v}:{},className:`font-mono ${m.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:l.label})})]})]},l.key))})]});return S?a===0&&!c?null:e("div",{className:"flex flex-col items-center text-center",role:"timer","aria-live":"off",children:f}):e(M,{as:"section",className:"relative z-[2] bg-bg",role:"timer","aria-live":"off",children:i("div",{className:"mx-auto flex max-w-[var(--sf-site-width,1600px)] flex-col items-center gap-4 px-[var(--sf-site-gutter,40px)] py-12 text-center max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",children:[p&&e("p",{className:`font-mono ${m.labelLarge} uppercase tracking-[0.2em] text-fg-dim`,children:I(p)}),f]})})}export{K as default,A as secondsLeft};
1
+ "use client";import{jsx as e,jsxs as i,Fragment as D}from"react/jsx-runtime";import{HideTaker as I}from"./ViewHideRoot.js";import{useEffect as L,useState as u}from"react";import h from"./PartStyledKind.js";import{renderGold as $,renderHeadline as z}from"./goldPhrases.js";import{PART_KIND_ATTR as g}from"../lib/document/text-parts.js";import{TEXT_KIND_NAME as v,TEXT_KIND_VALUE as w}from"../../format/lib/sections/section-text-kinds.js";import{withSideOnce as A}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as j}from"./SideSpaceOnce.js";import{withRootPad as H}from"../lib/content/section-own-pads.js";const m={headingSmall:"text-[length:min(var(--size-headingSmall,32px),var(--sf-heading-max,9999px))]",labelSmall:"text-[length:var(--size-label,11px)]",labelLarge:"text-[length:var(--size-label,12px)]"},K=24*3600*1e3,P=[{key:"hours",label:"Hours"},{key:"minutes",label:"Minutes"},{key:"seconds",label:"Seconds"}];function F(t,n){return Math.max(0,Math.ceil((t-n)/1e3))}function O(t){const n=Date.parse((t??"").trim());return Number.isFinite(n)?n:null}const R=t=>String(t).padStart(2,"0");function X({title:t,zeroText:n,endsAt:N,showUnits:S=!0,editing:o=!1,omitHead:b=!1,pad:k}={}){const T=j(),_=O(N),[E]=u(()=>Date.now()+K),l=_??(o?E:null),[y,d]=u(()=>Date.now());if(L(()=>{if(l===null)return;d(Date.now());const r=window.setInterval(()=>d(Date.now()),1e3);return()=>window.clearInterval(r)},[l]),l===null)return null;const a=F(l,y),s=[Math.floor(a/3600),Math.floor(a%3600/60),a%60],p=(t??"").trim(),c=(n??"").trim(),M=`${s[0]} hours, ${s[1]} minutes and ${s[2]} seconds left`,f=a===0?c&&e("p",{className:`font-heading3 ${m.headingSmall} font-medium leading-tight text-fg`,children:z(c,!1)}):i(D,{children:[e("span",{className:"sr-only",children:M}),e("div",{"aria-hidden":!0,className:"flex items-start gap-[clamp(8px,2vw,24px)]",children:P.map((r,x)=>i("div",{className:"contents",children:[x>0&&e("span",{className:"font-mono text-[length:clamp(32px,7vw,80px)] leading-none text-accent",children:":"}),i("div",{className:"flex min-w-0 flex-col items-center gap-2",children:[e(h,{kind:w,children:e("span",{"data-countdown-unit":r.key,...o?{[g]:w}:{},suppressHydrationWarning:!0,className:"font-mono text-[length:clamp(40px,8vw,96px)] font-medium leading-none tabular-nums text-fg",children:R(s[x])})}),S&&e(h,{kind:v,children:e("span",{...o?{[g]:v}:{},className:`font-mono ${m.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:r.label})})]})]},r.key))})]});return b?a===0&&!c?null:e("div",{className:"flex flex-col items-center text-center",role:"timer","aria-live":"off",children:f}):e(I,{as:"section",className:"relative z-[2] bg-bg",role:"timer","aria-live":"off",children:i("div",{...H(A("mx-auto flex max-w-[var(--sf-site-width,1600px)] flex-col items-center gap-4 px-[var(--sf-site-gutter,40px)] py-12 text-center max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",T),k),children:[p&&e("p",{className:`font-mono ${m.labelLarge} uppercase tracking-[0.2em] text-fg-dim`,children:$(p)}),f]})})}export{X as default,F as secondsLeft};
@@ -1,3 +1,4 @@
1
+ import type { RootPadAttrs } from "../lib/content/section-padding.js";
1
2
  export interface DocBodySection {
2
3
  label: string;
3
4
  heading: string;
@@ -17,6 +18,7 @@ export interface DocBodyProps {
17
18
  tocTitle?: string;
18
19
  sections?: DocBodySection[];
19
20
  editing?: boolean;
21
+ pad?: RootPadAttrs | null;
20
22
  stickyTop?: number;
21
23
  }
22
24
  type DocBlock = {
@@ -27,5 +29,5 @@ type DocBlock = {
27
29
  items: string[];
28
30
  };
29
31
  export declare function parseBlocks(body: string): DocBlock[];
30
- export default function DocBody({ tocTitle, sections, editing, stickyTop, }: DocBodyProps): import("react").JSX.Element | null;
32
+ export default function DocBody({ tocTitle, sections, editing, stickyTop, pad, }: DocBodyProps): import("react").JSX.Element | null;
31
33
  export {};
@@ -1,7 +1,7 @@
1
- import{jsx as l,jsxs as f}from"react/jsx-runtime";import{slugify as b}from"efficient-shell/format";import{HideTaker as y}from"./ViewHideRoot.js";import{listNumber as v}from"../../format/lib/content/list-number.js";import{renderGold as m}from"./goldPhrases.js";import{storefrontLines as w}from"../../format/lib/markup.js";import{say as c}from"../../format/lib/editor-words.js";import N,{CONTENTS_STICKY_TOP as S}from"./ContentsList.js";function T(r,e){return b(r)||`section-${e+1}`}const x=r=>typeof r=="string"&&r.trim()!=="";function k(r){return(r??[]).filter(e=>x(e.heading)||x(e.label)||x(e.body))}function _(r){const e=new Set;return r.map((i,d)=>{const t=T(i.label||i.heading||"",d);let a=t,o=2;for(;e.has(a);)a=`${t}-${o++}`;return e.add(a),a})}function z(r){const e=[];for(const i of r.replace(/\r\n?/g,`
1
+ import{jsx as l,jsxs as h}from"react/jsx-runtime";import{slugify as w}from"efficient-shell/format";import{HideTaker as v}from"./ViewHideRoot.js";import{listNumber as S}from"../../format/lib/content/list-number.js";import{renderGold as f}from"./goldPhrases.js";import{storefrontLines as N}from"../../format/lib/markup.js";import{say as c}from"../../format/lib/editor-words.js";import T,{CONTENTS_STICKY_TOP as k}from"./ContentsList.js";import{withSideOnce as _}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as z}from"./SideSpaceOnce.js";import{withRootPad as O}from"../lib/content/section-own-pads.js";function $(n,e){return w(n)||`section-${e+1}`}const u=n=>typeof n=="string"&&n.trim()!=="";function A(n){return(n??[]).filter(e=>u(e.heading)||u(e.label)||u(e.body))}function B(n){const e=new Set;return n.map((i,m)=>{const t=$(i.label||i.heading||"",m);let a=t,s=2;for(;e.has(a);)a=`${t}-${s++}`;return e.add(a),a})}function C(n){const e=[];for(const i of n.replace(/\r\n?/g,`
2
2
  `).split(/\n[ \t]*\n/))i.split(`
3
- `).map(t=>t.replace(/\s+$/,"")).filter(t=>t.trim()!=="").forEach((t,a)=>{const o=w(t)[0].bullet,n=e.at(-1),s=a===0||!n||n.type==="ul"!==o;if(o){const p=t.slice(2);!s&&n?.type==="ul"?n.items.push(p):e.push({type:"ul",items:[p]})}else!s&&n?.type==="p"?n.text+=`
4
- ${t}`:e.push({type:"p",text:t})});return e}const $=()=>[{label:c("First section"),heading:c("Your *first* section."),body:c(`Write the opening paragraph here.
3
+ `).map(t=>t.replace(/\s+$/,"")).filter(t=>t.trim()!=="").forEach((t,a)=>{const s=N(t)[0].bullet,o=e.at(-1),p=a===0||!o||o.type==="ul"!==s;if(s){const r=t.slice(2);!p&&o?.type==="ul"?o.items.push(r):e.push({type:"ul",items:[r]})}else!p&&o?.type==="p"?o.text+=`
4
+ ${t}`:e.push({type:"p",text:t})});return e}const I=()=>[{label:c("First section"),heading:c("Your *first* section."),body:c(`Write the opening paragraph here.
5
5
 
6
6
  - Start a line with a dash for a bullet.
7
- - Add as many as you like.`)},{label:c("Second section"),heading:c("Your *second* section."),body:c("Leave a blank line between paragraphs to start a new one.")}],A=S;function B({tocTitle:r,sections:e,editing:i=!1,stickyTop:d=A}){const t=k(e);if(t.length===0&&!i)return null;const a=t.length===0&&i?$():t,o=_(a);return l(y,{as:"section",className:"relative z-[2] bg-bg",children:f("div",{className:"mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-[240px_1fr] items-start gap-20 border-b border-line px-[var(--sf-site-gutter,40px)] py-20 max-[900px]:grid-cols-1 max-[900px]:gap-10 max-[900px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[900px]:py-[60px]",children:[l(N,{title:r,entries:a.map((n,s)=>({label:n.label||"Section",anchor:o[s]})),stickyTop:d}),l("div",{className:"flex flex-col gap-16",children:a.map((n,s)=>f("article",{id:o[s],className:"flex flex-col gap-[18px]",style:{scrollMarginTop:d},children:[f("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:[v(s)," · ",m(n.label||"Section")]}),n.heading&&l("h2",{className:"mb-2 border-b border-line pb-[18px] font-heading2 text-[length:min(var(--size-headingMedium,clamp(28px,3.5vw,44px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[1.04] tracking-[-0.025em]",children:m(n.heading)}),z(n.body??"").map((p,h)=>p.type==="ul"?l("ul",{className:"flex max-w-[680px] list-none flex-col gap-2.5 pl-0",children:p.items.map((g,u)=>l("li",{className:"relative pl-6 font-serif text-[length:var(--size-body,17px)] leading-[1.65] text-fg-dim before:absolute before:-top-0.5 before:left-1.5 before:text-[length:var(--size-body,24px)] before:leading-none before:text-accent before:content-['·']",children:m(g)},u))},h):l("p",{className:"max-w-[680px] font-serif text-[length:var(--size-body,17px)] leading-[1.7] text-fg-dim",children:m(p.text)},h))]},o[s]))})]})})}export{B as default,z as parseBlocks,T as sectionAnchorId,_ as sectionAnchorIds,k as shownSections};
7
+ - Add as many as you like.`)},{label:c("Second section"),heading:c("Your *second* section."),body:c("Leave a blank line between paragraphs to start a new one.")}],L=k;function Y({tocTitle:n,sections:e,editing:i=!1,stickyTop:m=L,pad:t}){const a=z(),s=A(e);if(s.length===0&&!i)return null;const o=s.length===0&&i?I():s,p=B(o);return l(v,{as:"section",className:"relative z-[2] bg-bg",children:h("div",{...O(_("mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-[240px_1fr] items-start gap-20 border-b border-line px-[var(--sf-site-gutter,40px)] py-20 max-[900px]:grid-cols-1 max-[900px]:gap-10 max-[900px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[900px]:py-[60px]",a),t),children:[l(T,{title:n,entries:o.map((r,d)=>({label:r.label||"Section",anchor:p[d]})),stickyTop:m}),l("div",{className:"flex flex-col gap-16",children:o.map((r,d)=>h("article",{id:p[d],className:"flex flex-col gap-[18px]",style:{scrollMarginTop:m},children:[h("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:[S(d)," · ",f(r.label||"Section")]}),r.heading&&l("h2",{className:"mb-2 border-b border-line pb-[18px] font-heading2 text-[length:min(var(--size-headingMedium,clamp(28px,3.5vw,44px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[1.04] tracking-[-0.025em]",children:f(r.heading)}),C(r.body??"").map((x,g)=>x.type==="ul"?l("ul",{className:"flex max-w-[680px] list-none flex-col gap-2.5 pl-0",children:x.items.map((b,y)=>l("li",{className:"relative pl-6 font-serif text-[length:var(--size-body,17px)] leading-[1.65] text-fg-dim before:absolute before:-top-0.5 before:left-1.5 before:text-[length:var(--size-body,24px)] before:leading-none before:text-accent before:content-['·']",children:f(b)},y))},g):l("p",{className:"max-w-[680px] font-serif text-[length:var(--size-body,17px)] leading-[1.7] text-fg-dim",children:f(x.text)},g))]},p[d]))})]})})}export{Y as default,C as parseBlocks,$ as sectionAnchorId,B as sectionAnchorIds,A as shownSections};
@@ -1,3 +1,4 @@
1
+ import type { RootPadAttrs } from "../lib/content/section-padding.js";
1
2
  export interface DocMastheadMeta {
2
3
  label: string;
3
4
  value: string;
@@ -9,5 +10,6 @@ export interface DocMastheadProps {
9
10
  deck?: string;
10
11
  meta?: DocMastheadMeta[];
11
12
  editing?: boolean;
13
+ pad?: RootPadAttrs | null;
12
14
  }
13
- export default function DocMasthead({ eyebrow, title, deck, meta, editing, titleLevel, }: DocMastheadProps): import("react").JSX.Element | null;
15
+ export default function DocMasthead({ eyebrow, title, deck, meta, editing, titleLevel, pad, }: DocMastheadProps): import("react").JSX.Element | null;
@@ -1 +1 @@
1
- import{jsx as a,jsxs as s}from"react/jsx-runtime";import c from"./SectionEyebrow.js";import{HideTaker as g}from"./ViewHideRoot.js";import{renderGold as p,renderHeadline as f}from"./goldPhrases.js";import{pageTitleTag as b}from"../../format/lib/document/one-h1.js";const x={bodyUpTo900:"max-[900px]:text-[length:var(--size-body,19px)]",body:"text-[length:var(--size-body,22px)]",label:"text-[length:var(--size-label,13px)]"};function u({level:t,className:l,children:r}){const i=b(t);return a(i,{className:l,children:r})}function h({eyebrow:t,title:l,deck:r,meta:i,editing:o=!1,titleLevel:d}){const n=(i??[]).filter(e=>(e.label??"").trim()!==""||(e.value??"").trim()!=="");return!!!(t||l||r||n.length>0)&&!o?null:a(g,{as:"section",className:"relative z-[2] bg-bg",children:s("div",{className:"mx-auto max-w-[var(--sf-site-width,1600px)] border-b border-line px-[var(--sf-site-gutter,40px)] pt-[100px] pb-[60px] max-[900px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[900px]:pt-[60px] max-[900px]:pb-10",children:[s("div",{className:"grid grid-cols-[auto_1fr_auto] items-end gap-10 pb-8 max-[900px]:grid-cols-1 max-[900px]:gap-4",children:[t&&a(c,{text:t,className:"pb-3",classNameAfter:"max-[900px]:pb-0"}),l&&a(u,{level:d,className:"font-display text-[length:min(var(--size-headingLarge,clamp(56px,8vw,128px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[0.88] tracking-[-0.04em]",children:f(l,!0)}),n.length>0&&a("div",{className:`pb-3 text-right font-mono ${x.label} uppercase leading-[1.8] tracking-[0.22em] text-fg-dim max-[900px]:pb-0 max-[900px]:text-left`,children:n.map((e,m)=>s("div",{children:[e.label&&a("strong",{className:"font-normal text-fg",children:p(e.label)}),e.label&&e.value?" ":null,e.value?p(e.value):null]},m))})]}),r&&a("p",{className:`max-w-[760px] border-t border-line pt-8 font-serif ${x.body} italic leading-[1.5] text-fg-dim ${x.bodyUpTo900}`,children:p(r,!0)})]})})}export{h as default};
1
+ import{jsx as t,jsxs as s}from"react/jsx-runtime";import f from"./SectionEyebrow.js";import{HideTaker as b}from"./ViewHideRoot.js";import{renderGold as o,renderHeadline as h}from"./goldPhrases.js";import{pageTitleTag as u}from"../../format/lib/document/one-h1.js";import{withSideOnce as v}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as N}from"./SideSpaceOnce.js";import{withRootPad as T}from"../lib/content/section-own-pads.js";const p={bodyUpTo900:"max-[900px]:text-[length:var(--size-body,19px)]",body:"text-[length:var(--size-body,22px)]",label:"text-[length:var(--size-label,13px)]"};function w({level:a,className:r,children:i}){const l=u(a);return t(l,{className:r,children:i})}function y({eyebrow:a,title:r,deck:i,meta:l,editing:x=!1,titleLevel:m,pad:d}){const c=N(),n=(l??[]).filter(e=>(e.label??"").trim()!==""||(e.value??"").trim()!=="");return!!!(a||r||i||n.length>0)&&!x?null:t(b,{as:"section",className:"relative z-[2] bg-bg",children:s("div",{...T(v("mx-auto max-w-[var(--sf-site-width,1600px)] border-b border-line px-[var(--sf-site-gutter,40px)] pt-[100px] pb-[60px] max-[900px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[900px]:pt-[60px] max-[900px]:pb-10",c),d),children:[s("div",{className:"grid grid-cols-[auto_1fr_auto] items-end gap-10 pb-8 max-[900px]:grid-cols-1 max-[900px]:gap-4",children:[a&&t(f,{text:a,className:"pb-3",classNameAfter:"max-[900px]:pb-0"}),r&&t(w,{level:m,className:"font-display text-[length:min(var(--size-headingLarge,clamp(56px,8vw,128px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[0.88] tracking-[-0.04em]",children:h(r,!0)}),n.length>0&&t("div",{className:`pb-3 text-right font-mono ${p.label} uppercase leading-[1.8] tracking-[0.22em] text-fg-dim max-[900px]:pb-0 max-[900px]:text-left`,children:n.map((e,g)=>s("div",{children:[e.label&&t("strong",{className:"font-normal text-fg",children:o(e.label)}),e.label&&e.value?" ":null,e.value?o(e.value):null]},g))})]}),i&&t("p",{className:`max-w-[760px] border-t border-line pt-8 font-serif ${p.body} italic leading-[1.5] text-fg-dim ${p.bodyUpTo900}`,children:o(i,!0)})]})})}export{y as default};
@@ -1,3 +1,4 @@
1
+ import type { RootPadAttrs } from "../lib/content/section-padding.js";
1
2
  export interface DocMetaCard {
2
3
  label: string;
3
4
  value: string;
@@ -6,5 +7,6 @@ export interface DocMetaCard {
6
7
  export interface DocMetaCardsProps {
7
8
  cards?: DocMetaCard[];
8
9
  editing?: boolean;
10
+ pad?: RootPadAttrs | null;
9
11
  }
10
- export default function DocMetaCards({ cards, editing }: DocMetaCardsProps): import("react").JSX.Element | null;
12
+ export default function DocMetaCards({ cards, editing, pad }: DocMetaCardsProps): import("react").JSX.Element | null;
@@ -1 +1 @@
1
- import{jsx as a,jsxs as m}from"react/jsx-runtime";import n from"./SectionEyebrow.js";import{HideTaker as o}from"./ViewHideRoot.js";import{renderGold as t}from"./goldPhrases.js";const i={body:"text-[length:var(--size-body,14px)]",headingSmall:"text-[length:var(--size-headingSmall,20px)]"};function x({cards:l,editing:s=!1}){const r=(l??[]).filter(e=>(e.label??"").trim()!==""||(e.value??"").trim()!==""||(e.desc??"").trim()!=="");return r.length===0&&!s?null:a(o,{as:"section",className:"relative z-[2] bg-bg",children:a("div",{className:"mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-3 gap-10 border-b border-line px-[var(--sf-site-gutter,40px)] py-[60px] max-[900px]:grid-cols-1 max-[900px]:gap-4 max-[900px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[900px]:py-10",children:r.map((e,d)=>m("div",{className:"flex flex-col gap-2 border border-line bg-surface p-6",children:[e.label&&a(n,{text:e.label,size:12}),e.value&&a("span",{className:`font-heading3 ${i.headingSmall} font-medium tracking-[-0.015em] text-fg`,children:t(e.value)}),e.desc&&a("span",{className:`mt-1.5 font-serif ${i.body} italic leading-[1.5] text-fg-dim`,children:t(e.desc)})]},d))})})}export{x as default};
1
+ import{jsx as r,jsxs as n}from"react/jsx-runtime";import p from"./SectionEyebrow.js";import{HideTaker as x}from"./ViewHideRoot.js";import{renderGold as a}from"./goldPhrases.js";import{withSideOnce as f}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as c}from"./SideSpaceOnce.js";import{withRootPad as g}from"../lib/content/section-own-pads.js";const i={body:"text-[length:var(--size-body,14px)]",headingSmall:"text-[length:var(--size-headingSmall,20px)]"};function b({cards:s,editing:l=!1,pad:o}){const d=c(),t=(s??[]).filter(e=>(e.label??"").trim()!==""||(e.value??"").trim()!==""||(e.desc??"").trim()!=="");return t.length===0&&!l?null:r(x,{as:"section",className:"relative z-[2] bg-bg",children:r("div",{...g(f("mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-3 gap-10 border-b border-line px-[var(--sf-site-gutter,40px)] py-[60px] max-[900px]:grid-cols-1 max-[900px]:gap-4 max-[900px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[900px]:py-10",d),o),children:t.map((e,m)=>n("div",{className:"flex flex-col gap-2 border border-line bg-surface p-6",children:[e.label&&r(p,{text:e.label,size:12}),e.value&&r("span",{className:`font-heading3 ${i.headingSmall} font-medium tracking-[-0.015em] text-fg`,children:a(e.value)}),e.desc&&r("span",{className:`mt-1.5 font-serif ${i.body} italic leading-[1.5] text-fg-dim`,children:a(e.desc)})]},m))})})}export{b as default};
@@ -1,5 +1,6 @@
1
1
  import type { Ref } from "react";
2
2
  import type { PartStyles } from "../lib/document/part-styles.js";
3
+ import type { RootPadAttrs } from "../lib/content/section-padding.js";
3
4
  export interface FAQItem {
4
5
  question?: string;
5
6
  answer?: string;
@@ -19,7 +20,8 @@ export interface FAQProps {
19
20
  omitHead?: boolean;
20
21
  listKey?: string;
21
22
  rootRef?: Ref<HTMLElement>;
23
+ pad?: RootPadAttrs | null;
22
24
  }
23
25
  export declare function faqRows(items: readonly FAQItem[] | undefined): FAQItem[];
24
26
  export declare function faqPageJsonLd(rows: readonly FAQItem[]): string | null;
25
- export default function FAQ({ num, title, link, items, defaultOpen, editing, omitHead, nodeId, partStyles, listKey, rootRef, }: FAQProps): import("react").JSX.Element | null;
27
+ export default function FAQ({ num, title, link, items, defaultOpen, editing, omitHead, nodeId, partStyles, listKey, rootRef, pad, }: FAQProps): import("react").JSX.Element | null;
@@ -1 +1 @@
1
- import{Fragment as T,jsx as n,jsxs as a}from"react/jsx-runtime";import{HideTaker as q}from"./ViewHideRoot.js";import O,{ACCORDION_MARK_SHEET as v}from"./AccordionMark.js";import{stripMarkup as F}from"../../format/lib/markup.js";import{renderGold as l,renderHeadline as I}from"./goldPhrases.js";import L from"./SectionHeader.js";import{SectionTextParts as M}from"../lib/document/editing-bridges.js";import u from"./TextRegionRun.js";import{TEXT_REGION_ATTR as Q,regionStyle as W,textRegionPartKey as j}from"../../format/lib/sections/text-regions.js";import{FAQ_REGIONS as C}from"../../format/lib/sections/faq-text-regions.js";import{SIZE_STEP_OF_ROLE as z}from"../../format/lib/fonts.js";import{say as m}from"../../format/lib/editor-words.js";import{SITE_COLUMN as H}from"../../format/lib/content/page-width.js";import{listNumber as P}from"../../format/lib/content/list-number.js";import{LIST_KEY_ATTR as G}from"../../format/lib/content/list-query.js";import{QA_ROW_ANSWER_CLASS as U,QA_ROW_NUMBER_CLASS as B,QA_ROW_SUMMARY_CLASS as J}from"../../format/lib/content/accordion-row-style.js";function K(e){return(e??[]).filter(r=>(r.question??"").trim()!=="")}function X(e){const r=e.filter(t=>(t.answer??"").trim()!=="").map(t=>({"@type":"Question",name:y(t.question??""),acceptedAnswer:{"@type":"Answer",text:y(t.answer??"")}}));return r.length>0?JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:r}).replace(/</g,"\\u003c"):null}function y(e){return F(e).trim()}function f(e,r){return e?{[Q]:r}:{}}function h(e,r){const t=e?.[j(r)]?.role;return W(t,C[r],z)}function Y({editing:e,nodeId:r,partStyles:t,children:s}){return!e||!r?n(T,{children:s}):n(M,{nodeId:r,sectionType:"FAQ",partStyles:t,children:s})}const k="relative z-[2] bg-bg py-[120px] max-view-wide:py-[70px]",D="relative z-[2] bg-bg pt-0 pb-[120px] max-view-wide:pt-0 max-view-wide:pb-[70px]";function Z({num:e,title:r,link:t,items:s,defaultOpen:N=!0,editing:o=!1,omitHead:R=!1,nodeId:S,partStyles:i,listKey:x,rootRef:E}){const c=K(s),b=o&&c.length===0;if(c.length===0&&!o)return null;const _=b?[{question:m("Add your first question"),answer:m("Write the answer here.")},{question:m("Add another question"),answer:m("Write the answer here.")}]:c,g=o?null:X(_),w=r?I(r,!0):void 0,A=R||!e&&!w&&!t;return a(q,{as:"section",ref:E,className:A?D:k,...x?{[G]:x}:{},children:[n("style",{children:v}),g&&n("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:g}}),a("div",{className:H,children:[A?null:n(L,{num:e!==void 0?l(e):void 0,title:w,link:t?{text:l(t.text),href:t.href}:void 0,accent:!0}),n(Y,{editing:o,nodeId:S,partStyles:i,children:n("div",{children:_.map((d,p)=>a("details",{open:p===0&&N,className:"border-b border-line",children:[a("summary",{className:J,children:[n("span",{className:B,...f(o,"number"),style:h(i,"number"),children:n(u,{region:"number",partStyles:i,children:P(p)})}),n("span",{className:"flex-1 font-display text-[length:var(--size-body,18px)] font-medium uppercase tracking-[0.02em] text-fg max-view-wide:text-[length:var(--size-body,15px)]",...f(o,"question"),style:h(i,"question"),children:n(u,{region:"question",partStyles:i,children:l(d.question??"")})}),n(O,{})]}),d.answer&&n("div",{className:U,children:n("p",{className:"max-w-[760px] text-[length:var(--size-body,15px)] leading-[1.7] text-fg-dim",...f(o,"answer"),style:h(i,"answer"),children:n(u,{region:"answer",partStyles:i,children:l(d.answer)})})})]},p))})})]})]})}export{Z as default,X as faqPageJsonLd,K as faqRows};
1
+ import{Fragment as q,jsx as t,jsxs as a}from"react/jsx-runtime";import{HideTaker as v}from"./ViewHideRoot.js";import F,{ACCORDION_MARK_SHEET as I}from"./AccordionMark.js";import{stripMarkup as L}from"../../format/lib/markup.js";import{renderGold as m,renderHeadline as M}from"./goldPhrases.js";import Q from"./SectionHeader.js";import{SectionTextParts as W}from"../lib/document/editing-bridges.js";import u from"./TextRegionRun.js";import{TEXT_REGION_ATTR as j,regionStyle as C,textRegionPartKey as P}from"../../format/lib/sections/text-regions.js";import{FAQ_REGIONS as z}from"../../format/lib/sections/faq-text-regions.js";import{SIZE_STEP_OF_ROLE as H}from"../../format/lib/fonts.js";import{say as l}from"../../format/lib/editor-words.js";import{SITE_COLUMN as G,withSideOnce as U}from"../../format/lib/content/page-width.js";import{listNumber as B}from"../../format/lib/content/list-number.js";import{LIST_KEY_ATTR as J}from"../../format/lib/content/list-query.js";import{QA_ROW_ANSWER_CLASS as K,QA_ROW_NUMBER_CLASS as X,QA_ROW_SUMMARY_CLASS as Y}from"../../format/lib/content/accordion-row-style.js";import{useSideSpaceOnce as k}from"./SideSpaceOnce.js";import{withRootPad as D}from"../lib/content/section-own-pads.js";function Z(e){return(e??[]).filter(r=>(r.question??"").trim()!=="")}function V(e){const r=e.filter(n=>(n.answer??"").trim()!=="").map(n=>({"@type":"Question",name:S(n.question??""),acceptedAnswer:{"@type":"Answer",text:S(n.answer??"")}}));return r.length>0?JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:r}).replace(/</g,"\\u003c"):null}function S(e){return L(e).trim()}function f(e,r){return e?{[j]:r}:{}}function h(e,r){const n=e?.[P(r)]?.role;return C(n,z[r],H)}function $({editing:e,nodeId:r,partStyles:n,children:s}){return!e||!r?t(q,{children:s}):t(W,{nodeId:r,sectionType:"FAQ",partStyles:n,children:s})}const ee="relative z-[2] bg-bg py-[120px] max-view-wide:py-[70px]",re="relative z-[2] bg-bg pt-0 pb-[120px] max-view-wide:pt-0 max-view-wide:pb-[70px]";function te({num:e,title:r,link:n,items:s,defaultOpen:y=!0,editing:o=!1,omitHead:R=!1,nodeId:N,partStyles:i,listKey:x,rootRef:E,pad:b}){const O=k(),c=Z(s),T=o&&c.length===0;if(c.length===0&&!o)return null;const _=T?[{question:l("Add your first question"),answer:l("Write the answer here.")},{question:l("Add another question"),answer:l("Write the answer here.")}]:c,w=o?null:V(_),g=r?M(r,!0):void 0,A=R||!e&&!g&&!n;return a(v,{as:"section",ref:E,...D(A?re:ee,b),...x?{[J]:x}:{},children:[t("style",{children:I}),w&&t("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:w}}),a("div",{className:U(G,O),children:[A?null:t(Q,{num:e!==void 0?m(e):void 0,title:g,link:n?{text:m(n.text),href:n.href}:void 0,accent:!0}),t($,{editing:o,nodeId:N,partStyles:i,children:t("div",{children:_.map((d,p)=>a("details",{open:p===0&&y,className:"border-b border-line",children:[a("summary",{className:Y,children:[t("span",{className:X,...f(o,"number"),style:h(i,"number"),children:t(u,{region:"number",partStyles:i,children:B(p)})}),t("span",{className:"flex-1 font-display text-[length:var(--size-body,18px)] font-medium uppercase tracking-[0.02em] text-fg max-view-wide:text-[length:var(--size-body,15px)]",...f(o,"question"),style:h(i,"question"),children:t(u,{region:"question",partStyles:i,children:m(d.question??"")})}),t(F,{})]}),d.answer&&t("div",{className:K,children:t("p",{className:"max-w-[760px] text-[length:var(--size-body,15px)] leading-[1.7] text-fg-dim",...f(o,"answer"),style:h(i,"answer"),children:t(u,{region:"answer",partStyles:i,children:m(d.answer)})})})]},p))})})]})]})}export{te as default,V as faqPageJsonLd,Z as faqRows};
@@ -1,3 +1,4 @@
1
+ import type { RootPadAttrs } from "../lib/content/section-padding.js";
1
2
  export interface FeaturedCoverProps {
2
3
  image?: string;
3
4
  badge?: string;
@@ -11,5 +12,6 @@ export interface FeaturedCoverProps {
11
12
  ctaText?: string;
12
13
  ctaHref?: string;
13
14
  omitHead?: boolean;
15
+ pad?: RootPadAttrs | null;
14
16
  }
15
- export default function FeaturedCover({ image, badge, imageDate, category, readLabel, date, dateAt, title, dek, ctaText, ctaHref, omitHead, }: FeaturedCoverProps): import("react").JSX.Element;
17
+ export default function FeaturedCover({ image, badge, imageDate, category, readLabel, date, dateAt, title, dek, ctaText, ctaHref, omitHead, pad, }: FeaturedCoverProps): import("react").JSX.Element;
@@ -1 +1 @@
1
- import{jsx as e,jsxs as l}from"react/jsx-runtime";import{EDITORIAL_COLUMN as w}from"../../format/lib/content/page-width.js";import{HideTaker as y}from"./ViewHideRoot.js";import{Fragment as z}from"react";import{SiteLink as $}from"../lib/site-runtime.js";import b from"./PostDate.js";import{stripMarkup as S}from"../../format/lib/markup.js";import j from"./Placeholder.js";import{renderGold as r,renderHeadline as L,splitParagraphs as _}from"./goldPhrases.js";import{scrim as u}from"../../format/lib/content/scrim.js";const n={body:"text-[length:var(--size-body,20px)]",labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"};function P({image:v,badge:o,imageDate:p,category:c,readLabel:m,date:d,dateAt:a,title:s,dek:f,ctaText:x,ctaHref:N,omitHead:k=!1}){const g=[c?e("span",{className:"text-accent",children:r(c)}):null,m?e("span",{children:r(m)}):null,a?e("span",{children:e(b,{at:a})}):d?e("span",{children:r(d)}):null].filter(Boolean),h=l("article",{className:"sf-card relative grid grid-cols-[1.3fr_1fr] border border-line bg-[var(--card-bg)] max-view-desktop:grid-cols-1",children:[l("div",{className:"relative aspect-[5/4] overflow-hidden border-r border-line bg-surface-2 max-view-desktop:border-r-0 max-view-desktop:border-b",children:[e(j,{label:"featured-cover",src:v||void 0,alt:S(s||"Cover"),sizes:"(max-width: 1100px) 100vw, 56vw"}),e("div",{className:"pointer-events-none absolute inset-0 z-[1]",style:{background:`linear-gradient(180deg, ${u(.45)} 0%, transparent 30%, transparent 70%, ${u(.55)} 100%)`}}),o&&e("span",{className:`absolute left-6 top-6 z-[2] bg-accent px-3 py-2 font-mono ${n.labelSmall} uppercase tracking-[0.3em] text-bg`,children:r(o)}),(a||p)&&e("span",{className:`absolute right-6 bottom-6 z-[2] font-mono ${n.labelSmall} uppercase tracking-[0.24em] text-overlay-fg`,children:a?e(b,{at:a}):r(p)})]}),l("div",{className:"flex flex-col justify-between gap-6 px-12 py-14 max-view-desktop:px-7 max-view-desktop:py-9",children:[g.length>0&&e("div",{className:`flex items-center gap-4 font-mono ${n.labelSmall} uppercase tracking-[0.28em] text-fg-dim`,children:g.map((i,t)=>l(z,{children:[t>0&&e("span",{className:"opacity-40",children:"·"}),i]},t))}),s&&e("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(34px,3.5vw,58px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em]",children:L(s,!0)}),f&&_(f).map((i,t)=>e("p",{className:`max-w-[520px] font-serif ${n.body} italic leading-[1.5] text-fg-dim`,children:r(i,!0)},t)),x&&e("div",{children:l($,{newTab:"auto",href:N||"#",className:`group inline-flex items-center gap-3.5 py-3.5 font-mono ${n.labelLarge} uppercase tracking-[0.3em] text-accent`,children:[r(x)," ",e("span",{className:"transition-transform group-hover:translate-x-[6px]",children:"→"})]})})]})]});return k?h:e(y,{as:"section",className:"border-b border-line py-20 max-view-desktop:py-[60px]",children:e("div",{className:w,children:h})})}export{P as default};
1
+ import{jsx as e,jsxs as n}from"react/jsx-runtime";import{EDITORIAL_COLUMN as S,withSideOnce as z}from"../../format/lib/content/page-width.js";import{HideTaker as $}from"./ViewHideRoot.js";import{Fragment as j}from"react";import{SiteLink as L}from"../lib/site-runtime.js";import b from"./PostDate.js";import{stripMarkup as O}from"../../format/lib/markup.js";import P from"./Placeholder.js";import{renderGold as r,renderHeadline as _,splitParagraphs as T}from"./goldPhrases.js";import{scrim as u}from"../../format/lib/content/scrim.js";import{useSideSpaceOnce as C}from"./SideSpaceOnce.js";import{withRootPad as E}from"../lib/content/section-own-pads.js";const t={body:"text-[length:var(--size-body,20px)]",labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"};function I({image:v,badge:o,imageDate:c,category:p,readLabel:m,date:d,dateAt:a,title:l,dek:f,ctaText:x,ctaHref:w,omitHead:k=!1,pad:N}){const y=C(),h=[p?e("span",{className:"text-accent",children:r(p)}):null,m?e("span",{children:r(m)}):null,a?e("span",{children:e(b,{at:a})}):d?e("span",{children:r(d)}):null].filter(Boolean),g=n("article",{className:"sf-card relative grid grid-cols-[1.3fr_1fr] border border-line bg-[var(--card-bg)] max-view-desktop:grid-cols-1",children:[n("div",{className:"relative aspect-[5/4] overflow-hidden border-r border-line bg-surface-2 max-view-desktop:border-r-0 max-view-desktop:border-b",children:[e(P,{label:"featured-cover",src:v||void 0,alt:O(l||"Cover"),sizes:"(max-width: 1100px) 100vw, 56vw"}),e("div",{className:"pointer-events-none absolute inset-0 z-[1]",style:{background:`linear-gradient(180deg, ${u(.45)} 0%, transparent 30%, transparent 70%, ${u(.55)} 100%)`}}),o&&e("span",{className:`absolute left-6 top-6 z-[2] bg-accent px-3 py-2 font-mono ${t.labelSmall} uppercase tracking-[0.3em] text-bg`,children:r(o)}),(a||c)&&e("span",{className:`absolute right-6 bottom-6 z-[2] font-mono ${t.labelSmall} uppercase tracking-[0.24em] text-overlay-fg`,children:a?e(b,{at:a}):r(c)})]}),n("div",{className:"flex flex-col justify-between gap-6 px-12 py-14 max-view-desktop:px-7 max-view-desktop:py-9",children:[h.length>0&&e("div",{className:`flex items-center gap-4 font-mono ${t.labelSmall} uppercase tracking-[0.28em] text-fg-dim`,children:h.map((s,i)=>n(j,{children:[i>0&&e("span",{className:"opacity-40",children:"·"}),s]},i))}),l&&e("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(34px,3.5vw,58px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em]",children:_(l,!0)}),f&&T(f).map((s,i)=>e("p",{className:`max-w-[520px] font-serif ${t.body} italic leading-[1.5] text-fg-dim`,children:r(s,!0)},i)),x&&e("div",{children:n(L,{newTab:"auto",href:w||"#",className:`group inline-flex items-center gap-3.5 py-3.5 font-mono ${t.labelLarge} uppercase tracking-[0.3em] text-accent`,children:[r(x)," ",e("span",{className:"transition-transform group-hover:translate-x-[6px]",children:"→"})]})})]})]});return k?g:e($,{as:"section",...E("border-b border-line py-20 max-view-desktop:py-[60px]",N),children:e("div",{className:z(S,y),children:g})})}export{I as default};