efficient-web-builder 49.1.0 → 51.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/README.md +1 -1
  3. package/dist/editor/components/BlogPostSource.js +1 -1
  4. package/dist/editor/components/EditorPagePathProvider.d.ts +4 -0
  5. package/dist/editor/components/EditorPagePathProvider.js +1 -0
  6. package/dist/editor/components/HeroPartPanel.js +1 -1
  7. package/dist/editor/components/MediaUploadField.js +1 -1
  8. package/dist/editor/components/PagesPanel.js +1 -1
  9. package/dist/editor/components/SectionEditor.js +1 -1
  10. package/dist/editor/components/SourceStatus.d.ts +3 -3
  11. package/dist/editor/components/SourceStatus.js +1 -1
  12. package/dist/editor/components/StorefrontEditor.js +1 -1
  13. package/dist/editor/components/ThemeCard.js +1 -1
  14. package/dist/editor/components/WebsiteScreenParts.js +1 -1
  15. package/dist/editor/components/storefront-editor.css +1 -1
  16. package/dist/editor/components/usePartMotion.d.ts +1 -1
  17. package/dist/editor/components/usePartTypingDeps.d.ts +2 -0
  18. package/dist/editor/components/usePartTypingDeps.js +1 -0
  19. package/dist/editor/lib/animation/entrance-fields.js +1 -1
  20. package/dist/editor/lib/animation/fields.d.ts +1 -1
  21. package/dist/editor/lib/animation/fields.js +1 -1
  22. package/dist/editor/lib/animation/hover-fields.d.ts +7 -1
  23. package/dist/editor/lib/animation/hover-fields.js +1 -1
  24. package/dist/editor/lib/document/add-target.js +1 -1
  25. package/dist/editor/lib/document/block-source-fields.d.ts +6 -0
  26. package/dist/editor/lib/document/block-source-fields.js +1 -1
  27. package/dist/editor/lib/document/blocks/general/Cards/fields.js +1 -1
  28. package/dist/editor/lib/document/blocks/general/ContactLocations/fields.js +1 -1
  29. package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
  30. package/dist/editor/lib/document/blocks/general/Hero/fields.js +1 -1
  31. package/dist/editor/lib/document/blocks/general/HeroSlide/fields.js +1 -1
  32. package/dist/editor/lib/document/blocks/general/ImageBlock/fields.js +1 -1
  33. package/dist/editor/lib/document/blocks/general/PaymentBadges/fields.js +1 -1
  34. package/dist/editor/lib/document/blocks/general/PostCard/fields.js +1 -1
  35. package/dist/editor/lib/document/blocks/general/Text/fields.js +1 -1
  36. package/dist/editor/lib/document/blocks/general/index.d.ts +2 -2
  37. package/dist/editor/lib/document/blocks/hero-shared-fields.d.ts +2 -0
  38. package/dist/editor/lib/document/blocks/hero-shared-fields.js +1 -1
  39. package/dist/editor/lib/document/canvas-typing.d.ts +1 -0
  40. package/dist/editor/lib/document/canvas-typing.js +1 -1
  41. package/dist/editor/lib/document/card-copy-rows.d.ts +12 -0
  42. package/dist/editor/lib/document/card-copy-rows.js +1 -0
  43. package/dist/editor/lib/document/card-display-chips.d.ts +7 -2
  44. package/dist/editor/lib/document/card-display-chips.js +1 -1
  45. package/dist/editor/lib/document/card-row-fields.js +1 -1
  46. package/dist/editor/lib/document/controls.d.ts +1 -0
  47. package/dist/editor/lib/document/controls.js +1 -1
  48. package/dist/editor/lib/document/darken-fields.d.ts +4 -0
  49. package/dist/editor/lib/document/darken-fields.js +1 -0
  50. package/dist/editor/lib/document/field-groups.js +1 -1
  51. package/dist/editor/lib/document/overrides.js +1 -1
  52. package/dist/editor/lib/document/slot-new-children.d.ts +2 -0
  53. package/dist/editor/lib/document/slot-new-children.js +1 -0
  54. package/dist/editor/lib/sections/hero-ticker-to-strip.js +1 -1
  55. package/dist/editor/lib/sections/new-section-node.js +1 -1
  56. package/dist/format/components/stored-pick-row.d.ts +8 -0
  57. package/dist/format/components/stored-pick-row.js +1 -0
  58. package/dist/format/lib/animation/hover.d.ts +32 -1
  59. package/dist/format/lib/animation/hover.js +1 -1
  60. package/dist/format/lib/content/block-sources.d.ts +11 -0
  61. package/dist/format/lib/content/block-sources.js +1 -1
  62. package/dist/format/lib/content/box-layout.d.ts +11 -0
  63. package/dist/format/lib/content/box-layout.js +1 -1
  64. package/dist/format/lib/content/box-shape.d.ts +2 -1
  65. package/dist/format/lib/content/box-shape.js +1 -1
  66. package/dist/format/lib/content/card-place.d.ts +8 -0
  67. package/dist/format/lib/content/card-place.js +1 -0
  68. package/dist/format/lib/content/card-template.d.ts +20 -2
  69. package/dist/format/lib/content/card-template.js +1 -1
  70. package/dist/format/lib/content/image-treatment.d.ts +23 -4
  71. package/dist/format/lib/content/image-treatment.js +1 -1
  72. package/dist/format/lib/document/blocks/general/Cards/card-seed.d.ts +15 -0
  73. package/dist/format/lib/document/blocks/general/Cards/card-seed.js +1 -0
  74. package/dist/format/lib/document/blocks/general/Cards/meta.d.ts +6 -0
  75. package/dist/format/lib/document/blocks/general/Cards/meta.js +1 -1
  76. package/dist/format/lib/document/blocks/general/Hero/meta.js +1 -1
  77. package/dist/format/lib/document/blocks/general/HeroSingle/meta.js +1 -1
  78. package/dist/format/lib/document/blocks/general/text-part-shapes.json +8 -0
  79. package/dist/format/lib/document/box-footer.js +1 -1
  80. package/dist/format/lib/document/cards-template-on-read.d.ts +4 -0
  81. package/dist/format/lib/document/cards-template-on-read.js +1 -0
  82. package/dist/format/lib/document/easel-row-words.d.ts +1 -0
  83. package/dist/format/lib/document/easel-row-words.js +1 -1
  84. package/dist/format/lib/document/editor-page-context.js +1 -1
  85. package/dist/format/lib/document/passes/card-template-on-insert.d.ts +2 -0
  86. package/dist/format/lib/document/passes/card-template-on-insert.js +1 -0
  87. package/dist/format/lib/document/passes/types.d.ts +6 -0
  88. package/dist/format/lib/document/renamed-props.js +1 -1
  89. package/dist/format/lib/document/section-catalog.js +22 -2
  90. package/dist/format/lib/document/seed-parts.d.ts +18 -0
  91. package/dist/format/lib/document/seed-parts.js +1 -0
  92. package/dist/format/lib/editor-page-rows.d.ts +2 -0
  93. package/dist/format/lib/editor-page-rows.js +1 -1
  94. package/dist/format/lib/editor-words-catalogue.d.ts +21 -6
  95. package/dist/format/lib/editor-words-catalogue.js +4 -4
  96. package/dist/format/lib/hero-ticker.d.ts +4 -0
  97. package/dist/format/lib/hero-ticker.js +1 -1
  98. package/dist/format/lib/page-at-own-slug.d.ts +9 -0
  99. package/dist/format/lib/page-at-own-slug.js +1 -0
  100. package/dist/format/lib/popup/new-popup.js +1 -1
  101. package/dist/format/lib/sections/hero-overlay.js +1 -1
  102. package/dist/render/components/ButtonBlock.d.ts +1 -1
  103. package/dist/render/components/ButtonBlock.js +1 -1
  104. package/dist/render/components/Cards.d.ts +4 -2
  105. package/dist/render/components/Cards.js +1 -1
  106. package/dist/render/components/ContactLocations.d.ts +3 -1
  107. package/dist/render/components/ContactLocations.js +2 -2
  108. package/dist/render/components/Flex.d.ts +5 -1
  109. package/dist/render/components/Flex.js +1 -1
  110. package/dist/render/components/HeroPictures.d.ts +10 -0
  111. package/dist/render/components/HeroPictures.js +1 -1
  112. package/dist/render/components/HeroSingle.js +1 -1
  113. package/dist/render/components/HeroSlide.js +1 -1
  114. package/dist/render/components/ImageBlock.d.ts +6 -1
  115. package/dist/render/components/ImageBlock.js +1 -1
  116. package/dist/render/components/Manifesto.d.ts +3 -1
  117. package/dist/render/components/Manifesto.js +1 -1
  118. package/dist/render/components/PhotoHoverSheet.d.ts +4 -0
  119. package/dist/render/components/PhotoHoverSheet.js +1 -0
  120. package/dist/render/components/PictureWash.d.ts +6 -0
  121. package/dist/render/components/PictureWash.js +1 -0
  122. package/dist/render/components/Placeholder.js +1 -1
  123. package/dist/render/components/PostCard.js +1 -1
  124. package/dist/render/components/Split.d.ts +3 -1
  125. package/dist/render/components/Split.js +1 -1
  126. package/dist/render/components/Text.d.ts +4 -3
  127. package/dist/render/components/Text.js +1 -1
  128. package/dist/render/lib/animation/part-motion.js +2 -2
  129. package/dist/render/lib/document/blocks/general/Cards/render.js +1 -1
  130. package/dist/render/lib/document/blocks/general/ContactLocations/render.js +1 -1
  131. package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
  132. package/dist/render/lib/document/blocks/general/ImageBlock/render.js +1 -1
  133. package/dist/render/lib/document/blocks/general/Manifesto/render.js +1 -1
  134. package/dist/render/lib/document/blocks/general/Split/render.js +1 -1
  135. package/dist/render/lib/document/blocks/general/Text/render.js +1 -1
  136. package/dist/render/lib/document/blocks/general/section-head-looks.d.ts +1 -2
  137. package/dist/render/lib/document/blocks/general/section-head-looks.js +2 -2
  138. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.d.ts +1 -5
  139. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
  140. package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.js +1 -1
  141. package/dist/render/lib/document/blocks/general/section-to-box-rows-locations.js +1 -1
  142. package/dist/render/lib/document/blocks/general/section-to-box-rows-timeline.js +2 -2
  143. package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
  144. package/dist/render/lib/document/passes/index.js +1 -1
  145. package/dist/render/lib/document/passes/section-animation.js +1 -1
  146. package/dist/render/lib/sections/section-to-box.d.ts +7 -7
  147. package/dist/render/lib/sections/section-to-box.js +1 -1
  148. package/dist/render/lib/site-runtime.d.ts +2 -0
  149. package/dist/render/lib/site-runtime.js +1 -1
  150. package/package.json +4 -4
@@ -7,15 +7,16 @@ interface TextProps {
7
7
  ownWidth?: boolean;
8
8
  text: string;
9
9
  number?: string;
10
- align: Align;
10
+ align?: Align;
11
11
  alignPhone?: unknown;
12
- tone: Tone;
12
+ tone?: Tone;
13
13
  tag?: string;
14
14
  textStyle?: string;
15
15
  contained: boolean;
16
16
  hero?: boolean;
17
17
  partAlign?: unknown;
18
+ onLine?: boolean;
18
19
  }
19
20
  export declare function headingLevelOfStyle(id: string): HeadingLevel;
20
- export default function Text({ text, number, align, alignPhone, tone, contained, hero, pad, tag, textStyle, ownWidth, partAlign }: TextProps): import("react").JSX.Element;
21
+ export default function Text({ text, number, align, alignPhone, tone, contained, hero, pad, tag, textStyle, ownWidth, partAlign, onLine }: TextProps): import("react").JSX.Element;
21
22
  export {};
@@ -1 +1 @@
1
- import{jsx as r,jsxs as S}from"react/jsx-runtime";import g from"./BlockFrame.js";import{renderGold as c,renderHeadline as E,splitParagraphs as _}from"./goldPhrases.js";import{headingLook as k}from"./Heading.js";import{alignPhoneClass as w}from"../../format/lib/content/block-align.js";import{textTagOf as O}from"../../format/lib/content/text-tag.js";import{KICKER_NUMBER_ATTR as j,kickerLead as z}from"../lib/content/page-contents.js";import{isTextStyleId as I}from"../lib/document/part-styles.js";import{faceClassOf as y}from"../../format/lib/text-style-face.js";import{useMirroredCopy as R}from"./MirrorContext.js";import{mirroredTextClasses as $}from"../../format/lib/content/mirror-cards.js";const l={bodyUpTo800:"max-view-wide:text-[length:var(--size-body,14px)]",bodySmall:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,17px)]",label:"text-[length:var(--size-label,13px)]"},b=e=>e?` ${e}`:"";function A(e,s){const t=w("place",e,s);return t?` ${t}`:""}const M={left:"text-left",center:"text-left mx-auto",right:"text-left ml-auto"},U=`max-w-[380px] ${l.bodySmall} leading-[1.5] opacity-80 ${l.bodyUpTo800}`,B={default:"text-fg",dim:"text-fg-dim"};function G(e){return String(Math.min(Number(e.slice(8)),6))}function H({text:e,number:s,align:t,alignPhone:T,tone:N,contained:f,hero:v=!1,pad:n,tag:C,textStyle:p,ownWidth:L=!1,partAlign:x}){const h=R();if(v)return r("p",{className:U,children:c(e)});const i=s?r("span",{[j]:"",children:z(s)}):void 0,a=I(p)?p:void 0,u=`${a?`${y({id:a})} `:""}${L?"":"max-w-[680px] "}whitespace-pre-line ${a==="body-5"?l.label:l.bodyLarge} leading-[1.7] ${M[t]}${A(t,T)} ${B[N]}${b($(h,t,x))}`,d=O(C);if(a?.startsWith("heading-")){const m=G(a),o=k(m,y({id:a}));return r(g,{contained:f,className:"py-6",pad:n?{values:n,frame:24}:void 0,children:S(d,{className:`${o.className}${b($(h,void 0,x))}`,style:o.style,children:[i,E(e.trim(),!1)]})})}return r(g,{contained:f,className:"py-4",pad:n?{values:n,frame:16}:void 0,children:d==="p"?_(e).map((m,o)=>r("p",{className:u,children:c(m,!1,o===0?i:void 0)},o)):r(d,{className:u,children:c(e.trim(),!1,i)})})}export{H as default,G as headingLevelOfStyle};
1
+ import{jsx as r,jsxs as _}from"react/jsx-runtime";import b from"./BlockFrame.js";import{renderGold as p,renderHeadline as k,splitParagraphs as w}from"./goldPhrases.js";import{headingLook as O}from"./Heading.js";import{alignPhoneClass as j}from"../../format/lib/content/block-align.js";import{textTagOf as z}from"../../format/lib/content/text-tag.js";import{KICKER_NUMBER_ATTR as I,kickerLead as L}from"../lib/content/page-contents.js";import{isTextStyleId as R}from"../lib/document/part-styles.js";import{faceClassOf as T}from"../../format/lib/text-style-face.js";import{useMirroredCopy as A}from"./MirrorContext.js";import{mirroredTextClasses as N}from"../../format/lib/content/mirror-cards.js";const i={bodyUpTo800:"max-view-wide:text-[length:var(--size-body,14px)]",bodySmall:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,17px)]",label:"text-[length:var(--size-label,13px)]"},d=e=>e?` ${e}`:"";function M(e,o){const t=j("place",e,o);return t?` ${t}`:""}const U={left:"text-left",center:"text-left mx-auto",right:"text-left ml-auto"},B=`max-w-[380px] ${i.bodySmall} leading-[1.5] opacity-80 ${i.bodyUpTo800}`,G={default:"text-fg",dim:"text-fg-dim"};function H(e){return String(Math.min(Number(e.slice(8)),6))}function K({text:e,number:o,align:t,alignPhone:v,tone:x,contained:h,hero:C=!1,pad:l,tag:S,textStyle:u,ownWidth:E=!1,partAlign:g,onLine:n=!1}){const y=A();if(C)return r("p",{className:B,children:p(e)});const m=o?r("span",{[I]:"",children:L(o)}):void 0,a=R(u)?u:void 0,$=`${a?`${T({id:a})} `:""}${E?"":"max-w-[680px] "}whitespace-pre-line ${a==="body-5"?i.label:i.bodyLarge} leading-[1.7]${d(t?U[t]:"")}${M(t,v)}${d(x?G[x]:"")}${d(N(y,t,g))}`,c=z(S);if(a?.startsWith("heading-")){const f=H(a),s=O(f,T({id:a}));return r(b,{contained:h,className:n?"":"py-6",pad:l?{values:l,frame:n?0:24}:void 0,children:_(c,{className:`${s.className}${d(N(y,void 0,g))}`,style:s.style,children:[m,k(e.trim(),!1)]})})}return r(b,{contained:h,className:n?"":"py-4",pad:l?{values:l,frame:n?0:16}:void 0,children:c==="p"?w(e).map((f,s)=>r("p",{className:$,children:p(f,!1,s===0?m:void 0)},s)):r(c,{className:$,children:p(e.trim(),!1,m)})})}export{K as default,H as headingLevelOfStyle};
@@ -1,2 +1,2 @@
1
- import{phoneKey as u}from"efficient-easel/draw";import{ENTRANCE_STATE_ATTR as m,entranceAttrs as d}from"efficient-shell/format";import{ENTRANCE_KEYS as f,ENTRANCE_WRAPPER_CLASS as T,entranceDrawn as O}from"./entrance.js";import{HOVER_KEY as p,hoverOf as _}from"../../../format/lib/animation/hover.js";import{propsWithPartRecord as E,readPartRecord as P,readPartRecords as A}from"../../../format/lib/document/part-records.js";import{partLiftRules as R}from"../document/part-styles.js";const v={},i="_partMotion",b=[...Object.values(f).flatMap(t=>[t,u(t)]),p];function D(t){return A(t,i)}function S(t,e){return P(t,i,e)}const h=new Set([f.kind,p]);function K(t,e,n,o){const{[n]:s,...r}=S(t,e),c=o==null||o===""||o==="none"&&h.has(n)?r:{...r,[n]:o};return E(t,i,e,Object.keys(c).length?c:null)}function N(t){return{entrance:O(t),hover:_(t)}}function W(t){const e=N(t);return e.entrance!==null||e.hover!=="none"}function F(t,e){const{attrs:n,style:o}=d(e),s=Object.keys(n).filter(r=>n[r]!==void 0);for(const r of s)t.setAttribute(r,String(n[r]));for(const[r,a]of Object.entries(o))t.style.setProperty(r,String(a));return()=>{for(const r of s)t.removeAttribute(r);for(const r of Object.keys(o))t.style.removeProperty(r);t.removeAttribute(m)}}const x=4;function H(t){let e;for(const n of t)(!e||n.element.compareDocumentPosition(e.element)&x)&&(e=n);return e}const y="data-sf-part-host";function Y(t){const e=t?.ownerDocument.defaultView;let n=t;for(;n&&!n.hasAttribute(y)&&!n.classList.contains(T);){const o=e?.getComputedStyle(n).display??"";if(o==="contents")return null;if(o!=="inline")return n;n=n.parentElement}return null}const M="data-sf-part-lift",l="sf-part-lift";function B(t){if(t.getElementById(l))return;const e=t.createElement("style");e.id=l,e.textContent=R(`[${M}]`).join(`
2
- `),t.head.appendChild(e)}export{v as NO_MOTIONS,y as PART_HOST_ATTR,M as PART_LIFT_ATTR,b as PART_MOTION_KEYS,i as PART_MOTION_PROP,F as drawPartEntrance,B as ensurePartLiftSheet,H as firstOnPage,Y as partBoxOf,N as partMotionDrawn,W as partMoves,K as propsWithPartMotion,S as readPartMotion,D as readPartMotions};
1
+ import{phoneKey as m}from"efficient-easel/draw";import{ENTRANCE_STATE_ATTR as d,entranceAttrs as T}from"efficient-shell/format";import{ENTRANCE_KEYS as f,ENTRANCE_WRAPPER_CLASS as _,entranceDrawn as E}from"./entrance.js";import{CARD_HOVER_KEYS as p,HOVER_KEY as l,hoverOf as O}from"../../../format/lib/animation/hover.js";import{propsWithPartRecord as P,readPartRecord as R,readPartRecords as A}from"../../../format/lib/document/part-records.js";import{partLiftRules as S}from"../document/part-styles.js";const D={},i="_partMotion",b=[...Object.values(f).flatMap(t=>[t,m(t)]),l,p.duration,p.delay];function K(t){return A(t,i)}function h(t,e){return R(t,i,e)}const N=new Set([f.kind,l]);function H(t,e,n,o){const{[n]:s,...r}=h(t,e),c=o==null||o===""||o==="none"&&N.has(n)?r:{...r,[n]:o};return P(t,i,e,Object.keys(c).length?c:null)}function x(t){return{entrance:E(t),hover:O(t)}}function W(t){const e=x(t);return e.entrance!==null||e.hover!=="none"}function Y(t,e){const{attrs:n,style:o}=T(e),s=Object.keys(n).filter(r=>n[r]!==void 0);for(const r of s)t.setAttribute(r,String(n[r]));for(const[r,a]of Object.entries(o))t.style.setProperty(r,String(a));return()=>{for(const r of s)t.removeAttribute(r);for(const r of Object.keys(o))t.style.removeProperty(r);t.removeAttribute(d)}}const y=4;function F(t){let e;for(const n of t)(!e||n.element.compareDocumentPosition(e.element)&y)&&(e=n);return e}const M="data-sf-part-host";function V(t){const e=t?.ownerDocument.defaultView;let n=t;for(;n&&!n.hasAttribute(M)&&!n.classList.contains(_);){const o=e?.getComputedStyle(n).display??"";if(o==="contents")return null;if(o!=="inline")return n;n=n.parentElement}return null}const w="data-sf-part-lift",u="sf-part-lift";function B(t){if(t.getElementById(u))return;const e=t.createElement("style");e.id=u,e.textContent=S(`[${w}]`).join(`
2
+ `),t.head.appendChild(e)}export{D as NO_MOTIONS,M as PART_HOST_ATTR,w as PART_LIFT_ATTR,b as PART_MOTION_KEYS,i as PART_MOTION_PROP,Y as drawPartEntrance,B as ensurePartLiftSheet,F as firstOnPage,V as partBoxOf,x as partMotionDrawn,W as partMoves,H as propsWithPartMotion,h as readPartMotion,K as readPartMotions};
@@ -1 +1 @@
1
- import{Fragment as y,jsx as l}from"react/jsx-runtime";import b from"../../../../../components/Cards.js";import h from"../../../../../components/KeyFeatures.js";import{hidableText as w}from"efficient-easel/draw";import{declaredBlockSource as S,sourcedRows as g}from"../../../../../../format/lib/content/block-sources.js";import{KEY_FEATURES_PH as m,keyFeaturesScaffoldItems as C}from"../../../../../../format/lib/document/blocks/general/KeyFeatures/meta.js";import{parseSectionHeadPlacement as k}from"../../../../../../format/lib/sections/section-head-placement.js";import{parseSectionEyebrowLook as c}from"../../../../../../format/lib/sections/section-eyebrow-look.js";import{phRows as s,phHide as a}from"../../scaffold.js";import{say as i}from"../../../../../../format/lib/editor-words.js";import{CardsMeta as A,CARDS_PH as f}from"../../../../../../format/lib/document/blocks/general/Cards/meta.js";const u=()=>[{title:i("Card title one"),body:i("A short line about this card.")},{title:i("Card title two"),body:i("A short line about this card.")},{title:i("Card title three"),body:i("A short line about this card.")}],E=()=>u().map(e=>({name:e.title??"",note:e.body??""}));function x(e){return S(e)?g(e,e.editor?.isEditing===!0,E()).rows.filter(t=>t.name||t.note).map(t=>({title:t.name??"",body:t.note??""})):null}const D={...A,render:e=>{const t=k(e.headPlacement)==="own-box",d=n=>t?void 0:n,o=x(e);if(o&&!o.length)return l(y,{});if(e.cardStyle==="label-only"){const n=o?o.map(r=>({label:r.title??"",href:void 0})):Array.isArray(e.items)?e.items.map(r=>({label:w(r.title)??"",href:typeof r.href=="string"?r.href:void 0})):[];return l(h,{look:c(e.eyebrowLook,"KeyFeatures"),eyebrow:d(a(e.eyebrow,m.eyebrow,e.editor)),title:d(a(e.title,m.title,e.editor)),items:o?n:s(n,C(),e.editor),columns:e.columns,editing:e.editor?.isEditing})}return l(b,{look:c(e.eyebrowLook,"Cards"),eyebrow:d(a(e.eyebrow,f.eyebrow,e.editor)),title:d(a(e.title,f.title,e.editor)),omitHead:t,items:o??s(e.items,u(),e.editor),columns:e.columns,editing:e.editor?.isEditing})}};export{D as CardsRender};
1
+ import{jsx as s,jsxs as j,Fragment as u}from"react/jsx-runtime";import v,{cardGridCornerClasses as H}from"../../../../../components/Cards.js";import{CardTemplateRows as I}from"../../../../../components/CardRowContext.js";import{cardKeyOf as K,cardRow as T}from"../../../../../../format/lib/content/card-template.js";import B from"../../../../../components/KeyFeatures.js";import{hidableText as D}from"efficient-easel/draw";import{declaredBlockSource as w,sourceChoices as L,sourcedRows as C}from"../../../../../../format/lib/content/block-sources.js";import{KEY_FEATURES_PH as k,keyFeaturesScaffoldItems as N}from"../../../../../../format/lib/document/blocks/general/KeyFeatures/meta.js";import{parseSectionHeadPlacement as P}from"../../../../../../format/lib/sections/section-head-placement.js";import{parseSectionEyebrowLook as S}from"../../../../../../format/lib/sections/section-eyebrow-look.js";import{phRows as E,phHide as y}from"../../scaffold.js";import{say as m}from"../../../../../../format/lib/editor-words.js";import{SERVED_CARD_FIELDS as h}from"../../../../../../format/lib/document/blocks/general/Cards/card-seed.js";import{CardsMeta as O,CARDS_PH as R}from"../../../../../../format/lib/document/blocks/general/Cards/meta.js";const x=()=>[{title:m("Card title one"),body:m("A short line about this card.")},{title:m("Card title two"),body:m("A short line about this card.")},{title:m("Card title three"),body:m("A short line about this card.")}],A=()=>x().map(e=>({[h.title]:e.title??"",[h.body]:e.body??""}));function W(e){return w(e)?C(e,e.editor?.isEditing===!0,A()).rows.filter(i=>i[h.title]||i[h.body]).map(i=>({title:i[h.title]??"",body:i[h.body]??""})):null}const G=e=>typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",_=e=>Object.entries(e).some(([i,r])=>i!=="key"&&i!=="badge"&&typeof r=="string"&&r.trim()!==""),F=new WeakSet;function M(e){const i=e.editor?.isEditing===!0,r=w(e),d=G(e),n=typeof e.highlightBadge=="string"?e.highlightBadge:"",c=(t,g=[])=>t.map((l,f)=>({...l,key:l.key||g[f]?.key||K(l,f)})),a=t=>{const g=d?t.findIndex(l=>l.key===d):-1;return t.map((l,f)=>{const b={...l,badge:f===g?n:""};return f===g&&F.add(b),b})};if(r){const t=C(e,i,A());return a(c(t.rows,t.sample?L(r):[]).filter(_))}const o=E(e.items,x(),e.editor).map(T);return a(c(o).filter(t=>i||_(t)))}function U(e,i,r){const d=r?`relative bg-bg ${r}`:"relative bg-bg";return F.has(i)?j("div",{className:d,"data-sf-card-highlighted":"",children:[e,s("span",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 border border-accent"})]}):s("div",{className:d,children:e})}const oe={...O,render:e=>{const i=P(e.headPlacement)==="own-box",r=o=>i?void 0:o,d=(e.template?.blockCount??0)>0,n=W(e);if((!d||e.cardStyle==="label-only")&&n&&!n.length)return s(u,{});if(e.cardStyle==="label-only"){const o=n?n.map(t=>({label:t.title??"",href:void 0})):Array.isArray(e.items)?e.items.map(t=>({label:D(t.title)??"",href:typeof t.href=="string"?t.href:void 0})):[];return s(B,{look:S(e.eyebrowLook,"KeyFeatures"),eyebrow:r(y(e.eyebrow,k.eyebrow,e.editor)),title:r(y(e.title,k.title,e.editor)),items:n?o:E(o,N(),e.editor),columns:e.columns,editing:e.editor?.isEditing})}const c=o=>s(v,{look:S(e.eyebrowLook,"Cards"),eyebrow:r(y(e.eyebrow,R.eyebrow,e.editor)),title:r(y(e.title,R.title,e.editor)),omitHead:i,editing:e.editor?.isEditing,cards:o}),a=d?M(e):[];return d&&n&&!a.length?s(u,{}):s(I,{ownerId:String(e.id??""),ownerType:"Cards",Template:e.template,rows:a,fallback:c(),wrapCopy:(o,t)=>U(o,t.row,H(t.index,a.length,e.columns)),children:o=>a.length?c(o):c()})}};export{oe as CardsRender};
@@ -1 +1 @@
1
- import{Fragment as c,jsx as a}from"react/jsx-runtime";import m from"../../../../../components/ContactLocations.js";import{CONTACT_LOCATIONS_CARDS_PLACEHOLDER as l,CONTACT_LOCATIONS_DEFAULTS as n,contactLocationCardOfRow as u}from"../../../../../../format/lib/content/contact.js";import{declaredBlockSource as g,sourcedRows as s}from"../../../../../../format/lib/content/block-sources.js";import{phHideDefault as f}from"../../scaffold.js";import{say as i}from"../../../../../../format/lib/editor-words.js";import{ContactLocationsMeta as C}from"../../../../../../format/lib/document/blocks/general/ContactLocations/meta.js";const h=()=>[{name:i("Location name"),address:i("Street address"),state:i("State"),country:i("Country"),phone:"+00 000 0000",hours:i("Opening hours")}];function L(e){if(!g(e))return e.locations??l;const t=s(e,e.editor?.isEditing===!0,h());return t.rows.length?t.rows.map(u):null}function o(e,t,d){const r=f(e,t,d);return r!==void 0?r:e==null?void 0:""}const E={...C,render:e=>{const t=L(e);return t?a(m,{sectionNumber:o(e.sectionNumber,n.sectionNumber,e.editor),heading:o(e.heading,n.heading,e.editor),tagline:o(e.tagline,n.tagline,e.editor),galleryKicker:o(e.galleryKicker,n.galleryKicker,e.editor),galleryHint:o(e.galleryHint,n.galleryHint,e.editor),locations:t,mapTheme:e.mapTheme??n.mapTheme,imageShape:e.imageShape,editing:e.editor?.isEditing,nodeId:e.editor?.isEditing?e.id:void 0}):a(c,{})}};export{E as ContactLocationsRender};
1
+ import{Fragment as d,jsx as a}from"react/jsx-runtime";import m from"../../../../../components/ContactLocations.js";import{CONTACT_LOCATIONS_CARDS_PLACEHOLDER as u,CONTACT_LOCATIONS_DEFAULTS as n,contactLocationCardOfRow as l}from"../../../../../../format/lib/content/contact.js";import{declaredBlockSource as g,sourcedRows as f}from"../../../../../../format/lib/content/block-sources.js";import{phHideDefault as s}from"../../scaffold.js";import{say as i}from"../../../../../../format/lib/editor-words.js";import{pictureHoverOf as C}from"../../../../../../format/lib/animation/hover.js";import{ContactLocationsMeta as h}from"../../../../../../format/lib/document/blocks/general/ContactLocations/meta.js";const L=()=>[{name:i("Location name"),address:i("Street address"),state:i("State"),country:i("Country"),phone:"+00 000 0000",hours:i("Opening hours")}];function S(e){if(!g(e))return e.locations??u;const t=f(e,e.editor?.isEditing===!0,L());return t.rows.length?t.rows.map(l):null}function o(e,t,c){const r=s(e,t,c);return r!==void 0?r:e==null?void 0:""}const w={...h,render:e=>{const t=S(e);return t?a(m,{sectionNumber:o(e.sectionNumber,n.sectionNumber,e.editor),heading:o(e.heading,n.heading,e.editor),tagline:o(e.tagline,n.tagline,e.editor),galleryKicker:o(e.galleryKicker,n.galleryKicker,e.editor),galleryHint:o(e.galleryHint,n.galleryHint,e.editor),locations:t,mapTheme:e.mapTheme??n.mapTheme,imageShape:e.imageShape,pictureHover:C(e,"ContactLocations"),editing:e.editor?.isEditing,nodeId:e.editor?.isEditing?e.id:void 0}):a(d,{})}};export{w as ContactLocationsRender};
@@ -1 +1 @@
1
- import{jsx as n}from"react/jsx-runtime";import{phoneKey as o,tabletKey as l}from"efficient-easel/draw";import{sharedColumnsDrawn as c}from"../../../../content/box-shared-columns.js";import{CountRowsContext as d,NO_COUNTS as r}from"../../../../../components/CountRowsContext.js";import m from"../../../../../components/Flex.js";import{loopDelayOf as h,loopSecondsOf as g,parseLoop as u,parseLoopDirection as b}from"../../../../../../format/lib/animation/index.js";import{COUNTS_SOURCE as f,declaredBlockSource as S,servedRows as x}from"../../../../../../format/lib/content/block-sources.js";import{padValuesOf as w}from"../../../../content/section-padding.js";import{sectionFillsHeight as y}from"../../../../../../format/lib/content/section-min-height.js";import{FlexMeta as C}from"../../../../../../format/lib/document/blocks/general/Flex/meta.js";const T={...C,render:e=>{const i=n(m,{direction:e.direction,label:e.label,tabShape:e.tabShape,gap:e.gap,gapPhone:e[o("gap")],gapTablet:e[l("gap")],justify:e.justify,align:e.align,wrap:e.wrap,share:e.share,sharePhone:e[o("share")],wrapPhone:e[o("wrap")],phoneRow:e.phoneRow,columns:e.columns,columnsTablet:e[l("columns")],separator:e.separator,blockSpacing:e.blockSpacing,bgImage:e.bgImage,bgImagePhone:e.bgImagePhone,darken:e.darken,darkenStyle:e.darkenStyle,placement:e.placement,padV2:e.padV2===!0,border:e.sectionBorder,borderPhone:e.sectionBorderPhone,pad:w(e),contained:e.contained,fillHeight:y(e),shadow:e.shadow,loop:u(e.loop),scrollDirection:b(e.scrollDirection),loopSeconds:g({loopDuration:e.loopDuration}),loopDelay:h({loopDelay:e.loopDelay}),editing:!!e.editor?.isEditing,fillColor:e.fillColor,line:e.line,upcoming:e.upcoming,link:e.link,boxShape:e.boxShape,boxShapePhone:e[o("boxShape")],jumpHighlight:e.jumpHighlight,anchor:e.anchor,sharedSides:c(e),boxId:typeof e.id=="string"?e.id:void 0,mirrorCards:e.mirrorCards,content:e.content}),a=S(e),t=a?a===f?x(e):r:null;return n(d.Provider,{value:t,children:i})}};export{T as FlexRender};
1
+ import{jsx as i}from"react/jsx-runtime";import{phoneKey as a,tabletKey as o}from"efficient-easel/draw";import{sharedColumnsDrawn as r}from"../../../../content/box-shared-columns.js";import{CountRowsContext as c,NO_COUNTS as d}from"../../../../../components/CountRowsContext.js";import m from"../../../../../components/Flex.js";import{loopDelayOf as h,loopSecondsOf as g,parseLoop as b,parseLoopDirection as u}from"../../../../../../format/lib/animation/index.js";import{COUNTS_SOURCE as f,declaredBlockSource as S,servedRows as x}from"../../../../../../format/lib/content/block-sources.js";import{padValuesOf as w}from"../../../../content/section-padding.js";import{sectionFillsHeight as y}from"../../../../../../format/lib/content/section-min-height.js";import{pictureHoverOf as C}from"../../../../../../format/lib/animation/hover.js";import{FlexMeta as D}from"../../../../../../format/lib/document/blocks/general/Flex/meta.js";const N={...D,render:e=>{const l=i(m,{direction:e.direction,label:e.label,tabShape:e.tabShape,gap:e.gap,gapPhone:e[a("gap")],gapTablet:e[o("gap")],justify:e.justify,align:e.align,wrap:e.wrap,share:e.share,sharePhone:e[a("share")],shareTablet:e[o("share")],wrapPhone:e[a("wrap")],phoneRow:e.phoneRow,columns:e.columns,columnsTablet:e[o("columns")],separator:e.separator,blockSpacing:e.blockSpacing,bgImage:e.bgImage,bgImagePhone:e.bgImagePhone,pictureHover:C(e),darken:e.darken,darkenStyle:e.darkenStyle,placement:e.placement,padV2:e.padV2===!0,border:e.sectionBorder,borderPhone:e.sectionBorderPhone,pad:w(e),contained:e.contained,fillHeight:y(e),shadow:e.shadow,loop:b(e.loop),scrollDirection:u(e.scrollDirection),loopSeconds:g({loopDuration:e.loopDuration}),loopDelay:h({loopDelay:e.loopDelay}),editing:!!e.editor?.isEditing,fillColor:e.fillColor,line:e.line,upcoming:e.upcoming,link:e.link,boxShape:e.boxShape,boxShapePhone:e[a("boxShape")],boxShapeTablet:e[o("boxShape")],jumpHighlight:e.jumpHighlight,anchor:e.anchor,sharedSides:r(e),boxId:typeof e.id=="string"?e.id:void 0,mirrorCards:e.mirrorCards,content:e.content}),n=S(e),t=n?n===f?x(e):d:null;return i(c.Provider,{value:t,children:l})}};export{N as FlexRender};
@@ -1 +1 @@
1
- import{jsx as a}from"react/jsx-runtime";import{CardRowDrawn as w}from"../../../../../components/CardRowContext.js";import k from"../../../../../components/ImageBlock.js";import{cardTemplateField as y,namedRowField as h,rowFieldText as S}from"../../../../../../format/lib/content/card-template.js";import{blockSizeOf as x,blockSizeValuesOf as B}from"../../../../content/block-size.js";import{padValuesOf as I}from"../../../../content/section-padding.js";import{ImageBlockMeta as z}from"../../../../../../format/lib/document/blocks/general/ImageBlock/meta.js";const P={...z,render:e=>{const o=h(e);return o?a(w,{type:"ImageBlock",props:e,children:(n,r)=>{const t=r?y(r.ownerType,o)?.alt:void 0;return c(e,n.src,(t&&S(r?.row,t))??e.alt)}}):c(e,e.src,e.alt)}};function c(e,o,n){const{aspect:r,contained:t,grayscale:l,href:d,fit:f,focal:m,focalPhone:i,corners:s,cornerSides:u,editor:g}=e;return a(k,{src:o,alt:n,aspect:r,contained:t,grayscale:l,href:d,fit:f,focal:m,focalPhone:typeof i=="string"?i:void 0,corners:s,cornerSides:u,pad:I(e),ownSize:x(B(e))!==null,editing:g?.isEditing===!0})}export{P as ImageBlockRender};
1
+ import{jsx as a}from"react/jsx-runtime";import{CardRowDrawn as S}from"../../../../../components/CardRowContext.js";import h from"../../../../../components/ImageBlock.js";import{cardTemplateField as p,namedRowField as x,rowFieldText as B,rowNextPicture as I}from"../../../../../../format/lib/content/card-template.js";import{blockSizeOf as O,blockSizeValuesOf as z}from"../../../../content/block-size.js";import{padValuesOf as F}from"../../../../content/section-padding.js";import{pictureHoverOf as P}from"../../../../../../format/lib/animation/hover.js";import{ImageBlockMeta as R}from"../../../../../../format/lib/document/blocks/general/ImageBlock/meta.js";const E={...R,render:e=>{const t=x(e);return t?a(S,{type:"ImageBlock",props:e,children:(o,r)=>{const n=r?p(r.ownerType,t):null,c=n?.alt;return l(e,o.src,(c&&B(r?.row,c))??e.alt,I(r?.item,n?.next,typeof o.src=="string"?o.src:""))}}):l(e,e.src,e.alt)}};function l(e,t,o,r=""){const{aspect:n,contained:c,grayscale:f,darken:d,darkenStyle:m,href:s,fit:u,focal:g,focalPhone:i,corners:k,cornerSides:y,editor:w}=e;return a(h,{src:t,alt:o,aspect:n,contained:c,grayscale:f,darken:d,darkenStyle:m,pictureHover:P(e,"ImageBlock"),...r?{nextSrc:r}:{},href:s,fit:u,focal:g,focalPhone:typeof i=="string"?i:void 0,corners:k,cornerSides:y,pad:F(e),ownSize:O(z(e))!==null,editing:w?.isEditing===!0})}export{E as ImageBlockRender};
@@ -1 +1 @@
1
- import{jsx as b}from"react/jsx-runtime";import f from"../../../../../components/Manifesto.js";import{sectionFillsHeight as g}from"../../../../../../format/lib/content/section-min-height.js";import{PH as e}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phRows as h,phHideDefault as a}from"../../scaffold.js";import{ManifestoMeta as c}from"../../../../../../format/lib/document/blocks/general/Manifesto/meta.js";const y=[{value:"00",label:e.label},{value:"00",label:e.label},{value:"00",label:e.label}],H={...c,render:t=>{const{eyebrow:r,heading:i,body:l,stats:s,imageSrc:d,grayscale:n,widthMode:m,editor:o}=t;return b(f,{eyebrow:a(r,e.eyebrow,o),heading:a(i,e.heading,o),body:a(l,e.body,o),stats:h(s,y,o),imageSrc:d||void 0,grayscale:n,widthMode:m,fillHeight:g(t)})}};export{H as ManifestoRender};
1
+ import{jsx as f}from"react/jsx-runtime";import{pictureHoverOf as b}from"../../../../../../format/lib/animation/hover.js";import c from"../../../../../components/Manifesto.js";import{sectionFillsHeight as g}from"../../../../../../format/lib/content/section-min-height.js";import{PH as e}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phRows as h,phHideDefault as t}from"../../scaffold.js";import{ManifestoMeta as p}from"../../../../../../format/lib/document/blocks/general/Manifesto/meta.js";const u=[{value:"00",label:e.label},{value:"00",label:e.label},{value:"00",label:e.label}],x={...p,render:r=>{const{eyebrow:i,heading:a,body:l,stats:s,imageSrc:d,grayscale:m,widthMode:n,editor:o}=r;return f(c,{eyebrow:t(i,e.eyebrow,o),heading:t(a,e.heading,o),body:t(l,e.body,o),stats:h(s,u,o),imageSrc:d||void 0,grayscale:m,pictureHover:b(r,"Manifesto"),widthMode:n,fillHeight:g(r)})}};export{x as ManifestoRender};
@@ -1 +1 @@
1
- import{jsx as r}from"react/jsx-runtime";import d from"../../../../../components/Split.js";import{sectionFillsHeight as m}from"../../../../../../format/lib/content/section-min-height.js";import{hidableText as g}from"efficient-easel/draw";import{phHide as t,ctaHide as f}from"../../scaffold.js";import{SplitMeta as c,SPLIT_PH as i,IMGBTN_PH as x}from"../../../../../../format/lib/document/blocks/general/Split/meta.js";function o(e,a,l){const n=t(e,x.text,l);if(n!==void 0)return{text:n,href:a||"#"}}const h={...c,render:e=>r(d,{eyebrow:t(e.eyebrow,i.eyebrow,e.editor),title:t(e.title,i.title,e.editor),body:t(e.body,i.body,e.editor),imageLabel:g(e.title)||i.title,imageSrc:e.imageSrc||void 0,reverse:e.reverse,uppercase:e.uppercase,textAlign:e.textAlign,textAlignPhone:e.textAlignPhone,cta:f(e.ctaText,e.ctaHref,e.editor),imageButton:o(e.imageBtnText,e.imageBtnHref,e.editor),textBgSrc:e.textBgSrc||void 0,textBgTint:(typeof e.overlay=="number"?e.overlay:60)/100,grayscale:e.grayscale,fillHeight:m(e)})};export{h as SplitRender};
1
+ import{jsx as a}from"react/jsx-runtime";import{pictureHoverOf as d}from"../../../../../../format/lib/animation/hover.js";import m from"../../../../../components/Split.js";import{sectionFillsHeight as f}from"../../../../../../format/lib/content/section-min-height.js";import{hidableText as c}from"efficient-easel/draw";import{phHide as t,ctaHide as g}from"../../scaffold.js";import{SplitMeta as o,SPLIT_PH as i,IMGBTN_PH as x}from"../../../../../../format/lib/document/blocks/general/Split/meta.js";function u(e,r,l){const n=t(e,x.text,l);if(n!==void 0)return{text:n,href:r||"#"}}const T={...o,render:e=>a(m,{eyebrow:t(e.eyebrow,i.eyebrow,e.editor),title:t(e.title,i.title,e.editor),body:t(e.body,i.body,e.editor),imageLabel:c(e.title)||i.title,imageSrc:e.imageSrc||void 0,reverse:e.reverse,uppercase:e.uppercase,textAlign:e.textAlign,textAlignPhone:e.textAlignPhone,cta:g(e.ctaText,e.ctaHref,e.editor),imageButton:u(e.imageBtnText,e.imageBtnHref,e.editor),textBgSrc:e.textBgSrc||void 0,textBgTint:(typeof e.overlay=="number"?e.overlay:60)/100,grayscale:e.grayscale,pictureHover:d(e,"Split"),fillHeight:f(e)})};export{T as SplitRender};
@@ -1 +1 @@
1
- import{Fragment as w,jsx as r}from"react/jsx-runtime";import{CardRowDrawn as y}from"../../../../../components/CardRowContext.js";import{CountDrawn as P}from"../../../../../components/CountRowsContext.js";import{KickerNumberDrawn as R}from"../../../../../components/PageContentsContext.js";import{KICKER_NUMBER_PROP as S}from"../../../../content/page-contents.js";import{namedRowField as T}from"../../../../../../format/lib/content/card-template.js";import{blockSetsItsWidth as k,blockSizeValuesOf as C}from"../../../../content/block-size.js";import{linkedCount as K}from"../../../../../../format/lib/content/count-numbers.js";import{padValuesOf as _}from"../../../../content/section-padding.js";import D from"../../../../../components/Text.js";import{hidableText as i,readHidable as F}from"efficient-easel/draw";import{PH as l}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phPrev as O}from"../../scaffold.js";import{readPartStyle as W}from"../../../part-styles.js";import{TextMeta as j}from"../../../../../../format/lib/document/blocks/general/Text/meta.js";const Q={...j,render:t=>{const{text:n,align:f,alignPhone:c,tone:h,tag:g,contained:x,editor:u}=t;if(F(n).hidden)return r(w,{});const{textStyle:m,align:s}=W(t,"text"),p=m?.startsWith("heading-")?l.heading:l.body,o=(e,a)=>r(D,{text:O(e,p,u)??"",number:a,align:f,alignPhone:c,tone:h,tag:g,textStyle:m,partAlign:s,ownWidth:k(C(t)),contained:x,pad:_(t)}),b=T(t),d=K(t);if(d)return r(P,{countKey:d,children:e=>o(e??i(n))});if(!b){const e=t[S];return typeof e=="string"?o(i(n),e):r(R,{id:t.id,children:a=>o(i(n),a)})}return r(y,{type:"Text",props:t,children:e=>o(i(e.text))})}};export{Q as TextRender};
1
+ import{Fragment as u,jsx as r}from"react/jsx-runtime";import{CardRowDrawn as h}from"../../../../../components/CardRowContext.js";import{CountDrawn as b}from"../../../../../components/CountRowsContext.js";import{KickerNumberDrawn as R}from"../../../../../components/PageContentsContext.js";import{KICKER_NUMBER_PROP as S}from"../../../../content/page-contents.js";import{namedRowField as C}from"../../../../../../format/lib/content/card-template.js";import{TOP_LINE_ATTRIBUTE as E,TOP_LINE_CLASS as I,cardPlaceOf as O,framesItsCards as N}from"../../../../../../format/lib/content/card-place.js";import{blockSetsItsWidth as k,blockSizeValuesOf as A}from"../../../../content/block-size.js";import{linkedCount as F}from"../../../../../../format/lib/content/count-numbers.js";import{padValuesOf as K}from"../../../../content/section-padding.js";import L from"../../../../../components/Text.js";import{hidableText as a,readHidable as D}from"efficient-easel/draw";import{PH as x}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phPrev as W}from"../../scaffold.js";import{readPartStyle as j}from"../../../part-styles.js";import{TextMeta as v}from"../../../../../../format/lib/document/blocks/general/Text/meta.js";const rt={...v,render:t=>{const{text:i,align:g,alignPhone:p,tone:T,tag:w,contained:P,editor:m}=t;if(D(i).hidden)return r(u,{});const{textStyle:f,align:y}=j(t,"text"),_=f?.startsWith("heading-")?x.heading:x.body,o=(e,n,d)=>r(L,{text:W(e,_,m)??"",number:n,align:g,alignPhone:p,tone:T,tag:w,textStyle:f,partAlign:y,ownWidth:k(A(t)),contained:P,pad:K(t),onLine:d}),l=C(t),c=F(t);if(c)return r(b,{countKey:c,children:e=>o(e??a(i))});const s=()=>{if(!l){const e=t[S];return typeof e=="string"?o(a(i),e):r(R,{id:t.id,children:n=>o(a(i),n)})}return r(h,{type:"Text",props:t,children:e=>o(a(e.text))})};return O(t)!=="top-line"?s():r(h,{type:"Text",props:t,children:(e,n)=>{if(!n||!N(n.ownerType))return s();const d=a(l?e.text:i);return!d?.trim()&&!m?.isEditing?r(u,{}):r("div",{className:I,[E]:"",children:o(d,void 0,!0)})}})}};export{rt as TextRender};
@@ -4,7 +4,6 @@ export type HeadLook = "standard" | "editorial" | "simple" | "essay" | "shelf";
4
4
  export declare function headLookOf(type: string): HeadLook;
5
5
  export declare const HEAD_BELOW: Readonly<Record<HeadLook, number>>;
6
6
  export declare function editorialHeadTree(num: string, title: string, description: string): PartRow;
7
- export declare const token: (step: string, px: number, pxPhone?: number, stepPhone?: string) => Props;
7
+ export { token } from "../../../../../format/lib/document/seed-parts.js";
8
8
  export declare const fluidToken: (step: string, minPx: number, vw: number, px: number) => Props;
9
9
  export declare function headTree(type: string): PartRow;
10
- export {};
@@ -1,2 +1,2 @@
1
- import{readHidable as N}from"efficient-easel/draw";import{SPLITTABLE_SECTIONS as T}from"../../../../../format/lib/sections/section-head-placement.js";import{BUTTON as B,DIM as E,INNER_BOX as o,SH_LINK as L,TEXT as k,smallText as _}from"./section-to-box-row-parts.js";import{labelTextSeed as O}from"../../../../../format/lib/document/text-seeds.js";function M(e){if(e==="ProductGrid")return"shelf";const t=T[e]?.headStyle;return t==="editorial"||t==="simple"||t==="essay"?t:"standard"}const K={standard:64,editorial:60,simple:36,essay:28,shelf:20},I={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function W(e){if(e==="SectionHeader")return{num:"num",title:"title",description:"description",link:!0};const t=T[e];if(!t)throw new Error(`section-head-looks: "${e}" has no head row in SPLITTABLE_SECTIONS`);return{num:t.num,title:t.title,description:t.description,link:t.headRows.includes("linkText")&&t.headRows.includes("linkHref")}}function U(e,t,n){const i=`editorial:${e}|${t}|${n}`,r=p.get(i);if(r)return r;const s=H({num:e,title:t,description:n,link:!1});return p.set(i,s),s}const h={top:0,right:0,bottom:1,left:0},a=(e,t,n,i)=>({sizeToken:{step:e,px:t,...i?{stepPhone:i}:{},...n?{pxPhone:n}:{}}}),P=(e,t,n,i)=>({sizeToken:{step:e,px:i,fluid:{minPx:t,vw:n}}}),l=(e,t,n={})=>_(e,{...a("label",t),...n}),A=(e,t)=>{const n=N(e).text.trim();return/\s/.test(n)?{minWidth:Math.ceil(n.length*t*.9),minWidthPhone:0,widthFitPhone:"fill"}:{}},c=(e,t)=>({kind:"text",key:e,role:"heading",props:k,style:{textStyle:"heading-2",...t}}),u=800,m=(e,t,n,i)=>({kind:"text",key:e,props:{...E,align:"right",alignPhone:"left",...n?{maxWidth:n,maxWidthPhone:u}:{}},style:{textStyle:"body-5",fontRole:"heading",alignPhone:"left",...a("body",t),...i}}),b={...B,align:"right",alignPhone:"left",...L,icon:"arrow-right",iconPosition:"after"},f=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:b,style:{textStyle:"body-5",color:"labels",...a("label",e),letterSpacing:.2,case:"upper"}}),w=(e,t,n)=>{const i=n.role==="heading"?{tag:"h2"}:{};return{kind:"block",type:"Text",when:r=>r[e]===void 0,props:{...k,...i,...n.props,text:t,_partStyles:{text:{...n.role==="eyebrow"?C(O()):{},...n.style}}}}},C=e=>e._partStyles.text??{},d={widthFitPhone:"fill"};function F(e,t){const n=I[e],i=n==="accent",r=l(t.num,14,{color:i?"accent":"labels"}),s=n==="accentNum"&&r.kind==="text"?{...r,mark:"accentLead"}:r,S=c(t.title,i?{...P("headingMedium",36,5,64),case:"upper",lineHeight:.95,letterSpacing:-.025}:{...a("headingMedium",56,36),case:"none",lineHeight:1,letterSpacing:-.03}),g=e==="Collections";return{kind:"group",name:"Header",props:{...o,direction:"row",align:"end",justify:"between",gap:40,gapPhone:12,share:"content",sectionBorder:h,sectionPaddingBottom:24,sectionPaddingBottomPhone:20},parts:[{kind:"group",name:"Title",props:{...o,...d,direction:"row",align:"end",gap:40,gapPhone:12,share:"content"},parts:[{kind:"group",name:"Number",props:{...o,...d,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},s,...g?[w(t.num,"==01== / Collections",s)]:[]]},{kind:"group",name:"Heading",props:{...o,...d},parts:[S,...g?[w(t.title,`Three ranges,
2
- one standard.`,S)]:[]]}]},{kind:"group",name:"Words",props:{...o,...d,gap:12,maxWidth:340,maxWidthPhone:u},parts:[...t.description?[m(t.description,14,void 0,{lineHeight:1.5})]:[],...t.link?[f(14)]:[],...g?[{kind:"block",type:"ButtonBlock",props:{...b,variant:"ghost",label:"View all",href:"/wheels",_partStyles:{label:f(14).style}}}]:[]]}]}}function H(e){return{kind:"group",name:"Header",props:{...o,direction:"row",align:"end",justify:"between",gap:40,gapPhone:14,share:"content",sectionBorder:h,sectionPaddingBottom:32},parts:[{kind:"group",name:"Title",props:{...o,direction:"row",align:"end",gap:40,gapPhone:14,share:"content"},parts:[{kind:"group",name:"Number",props:t=>({...o,sectionPaddingBottom:8,...A(t[e.num],13)}),parts:[l(e.num,13)]},c(e.title,{...P("headingMedium",40,5.5,80),case:"upper",weight:500,lineHeight:1,letterSpacing:-.03})]},{kind:"group",name:"Words",props:{...o,sectionPaddingBottom:4,maxWidth:360,maxWidthPhone:u},parts:e.description?[m(e.description,14,void 0,{lineHeight:1.5})]:[]}]}}function x(e,t){return{kind:"group",name:"Header",props:{...o,gap:16,gapPhone:16},parts:[l(e.num,13),c(e.title,t)]}}const y=[["para",{textStyle:"body-5",...a("label",13),case:"upper",weight:400,lineHeight:1,letterSpacing:.22}],["sm",{...a("headingMedium",40,28),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["md",{...a("headingMedium",48,32),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["lg",{...a("headingMedium",56,36),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["xl",{...a("headingMedium",64,40),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}]],R=e=>y.some(([t])=>t===e.titleSize)?e.titleSize:"lg";function z(e){return{kind:"group",name:"Header",props:{...o,direction:"row",align:"center",justify:"between",gap:16,share:"content",stickTop:!0,sectionBorder:h,sectionPaddingTop:12,sectionPaddingBottom:12},parts:[{kind:"group",name:"Title",props:{...o,direction:"row",align:"end",gap:24,share:"content"},parts:[l(e.num,13,{color:"labels",letterSpacing:.22,lineHeight:1}),...y.map(([t,n])=>({...c(e.title,n),when:i=>R(i)===t}))]},{kind:"group",name:"Words",props:{...o,direction:"row",align:"center",justify:"end",gap:20,share:"content"},parts:[...e.description?[m(e.description,13,340,{lineHeight:1.4})]:[],...e.link?[f(13)]:[]]}]}}const p=new Map;function X(e){const t=p.get(e);if(t)return t;const n=W(e),i=M(e),r=i==="editorial"?H(n):i==="simple"?x(n,{...a("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}):i==="essay"?x(n,{...a("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):i==="shelf"?z(n):F(e,n);return p.set(e,r),r}export{K as HEAD_BELOW,U as editorialHeadTree,P as fluidToken,M as headLookOf,X as headTree,a as token};
1
+ import{readHidable as N}from"efficient-easel/draw";import{SPLITTABLE_SECTIONS as T}from"../../../../../format/lib/sections/section-head-placement.js";import{BUTTON as B,DIM as E,INNER_BOX as o,SH_LINK as L,TEXT as P,smallText as _}from"./section-to-box-row-parts.js";import{labelTextSeed as O}from"../../../../../format/lib/document/text-seeds.js";import{token as a}from"../../../../../format/lib/document/seed-parts.js";function M(e){if(e==="ProductGrid")return"shelf";const t=T[e]?.headStyle;return t==="editorial"||t==="simple"||t==="essay"?t:"standard"}const U={standard:64,editorial:60,simple:36,essay:28,shelf:20},I={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function W(e){if(e==="SectionHeader")return{num:"num",title:"title",description:"description",link:!0};const t=T[e];if(!t)throw new Error(`section-head-looks: "${e}" has no head row in SPLITTABLE_SECTIONS`);return{num:t.num,title:t.title,description:t.description,link:t.headRows.includes("linkText")&&t.headRows.includes("linkHref")}}function X(e,t,n){const i=`editorial:${e}|${t}|${n}`,r=p.get(i);if(r)return r;const s=H({num:e,title:t,description:n,link:!1});return p.set(i,s),s}const h={top:0,right:0,bottom:1,left:0};import{token as q}from"../../../../../format/lib/document/seed-parts.js";const k=(e,t,n,i)=>({sizeToken:{step:e,px:i,fluid:{minPx:t,vw:n}}}),l=(e,t,n={})=>_(e,{...a("label",t),...n}),A=(e,t)=>{const n=N(e).text.trim();return/\s/.test(n)?{minWidth:Math.ceil(n.length*t*.9),minWidthPhone:0,widthFitPhone:"fill"}:{}},c=(e,t)=>({kind:"text",key:e,role:"heading",props:P,style:{textStyle:"heading-2",...t}}),u=800,m=(e,t,n,i)=>({kind:"text",key:e,props:{...E,align:"right",alignPhone:"left",...n?{maxWidth:n,maxWidthPhone:u}:{}},style:{textStyle:"body-5",fontRole:"heading",alignPhone:"left",...a("body",t),...i}}),b={...B,align:"right",alignPhone:"left",...L,icon:"arrow-right",iconPosition:"after"},f=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:b,style:{textStyle:"body-5",color:"labels",...a("label",e),letterSpacing:.2,case:"upper"}}),w=(e,t,n)=>{const i=n.role==="heading"?{tag:"h2"}:{};return{kind:"block",type:"Text",when:r=>r[e]===void 0,props:{...P,...i,...n.props,text:t,_partStyles:{text:{...n.role==="eyebrow"?C(O()):{},...n.style}}}}},C=e=>e._partStyles.text??{},d={widthFitPhone:"fill"};function F(e,t){const n=I[e],i=n==="accent",r=l(t.num,14,{color:i?"accent":"labels"}),s=n==="accentNum"&&r.kind==="text"?{...r,mark:"accentLead"}:r,S=c(t.title,i?{...k("headingMedium",36,5,64),case:"upper",lineHeight:.95,letterSpacing:-.025}:{...a("headingMedium",56,36),case:"none",lineHeight:1,letterSpacing:-.03}),g=e==="Collections";return{kind:"group",name:"Header",props:{...o,direction:"row",align:"end",justify:"between",gap:40,gapPhone:12,share:"content",sectionBorder:h,sectionPaddingBottom:24,sectionPaddingBottomPhone:20},parts:[{kind:"group",name:"Title",props:{...o,...d,direction:"row",align:"end",gap:40,gapPhone:12,share:"content"},parts:[{kind:"group",name:"Number",props:{...o,...d,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},s,...g?[w(t.num,"==01== / Collections",s)]:[]]},{kind:"group",name:"Heading",props:{...o,...d},parts:[S,...g?[w(t.title,`Three ranges,
2
+ one standard.`,S)]:[]]}]},{kind:"group",name:"Words",props:{...o,...d,gap:12,maxWidth:340,maxWidthPhone:u},parts:[...t.description?[m(t.description,14,void 0,{lineHeight:1.5})]:[],...t.link?[f(14)]:[],...g?[{kind:"block",type:"ButtonBlock",props:{...b,variant:"ghost",label:"View all",href:"/wheels",_partStyles:{label:f(14).style}}}]:[]]}]}}function H(e){return{kind:"group",name:"Header",props:{...o,direction:"row",align:"end",justify:"between",gap:40,gapPhone:14,share:"content",sectionBorder:h,sectionPaddingBottom:32},parts:[{kind:"group",name:"Title",props:{...o,direction:"row",align:"end",gap:40,gapPhone:14,share:"content"},parts:[{kind:"group",name:"Number",props:t=>({...o,sectionPaddingBottom:8,...A(t[e.num],13)}),parts:[l(e.num,13)]},c(e.title,{...k("headingMedium",40,5.5,80),case:"upper",weight:500,lineHeight:1,letterSpacing:-.03})]},{kind:"group",name:"Words",props:{...o,sectionPaddingBottom:4,maxWidth:360,maxWidthPhone:u},parts:e.description?[m(e.description,14,void 0,{lineHeight:1.5})]:[]}]}}function x(e,t){return{kind:"group",name:"Header",props:{...o,gap:16,gapPhone:16},parts:[l(e.num,13),c(e.title,t)]}}const y=[["para",{textStyle:"body-5",...a("label",13),case:"upper",weight:400,lineHeight:1,letterSpacing:.22}],["sm",{...a("headingMedium",40,28),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["md",{...a("headingMedium",48,32),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["lg",{...a("headingMedium",56,36),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["xl",{...a("headingMedium",64,40),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}]],R=e=>y.some(([t])=>t===e.titleSize)?e.titleSize:"lg";function j(e){return{kind:"group",name:"Header",props:{...o,direction:"row",align:"center",justify:"between",gap:16,share:"content",stickTop:!0,sectionBorder:h,sectionPaddingTop:12,sectionPaddingBottom:12},parts:[{kind:"group",name:"Title",props:{...o,direction:"row",align:"end",gap:24,share:"content"},parts:[l(e.num,13,{color:"labels",letterSpacing:.22,lineHeight:1}),...y.map(([t,n])=>({...c(e.title,n),when:i=>R(i)===t}))]},{kind:"group",name:"Words",props:{...o,direction:"row",align:"center",justify:"end",gap:20,share:"content"},parts:[...e.description?[m(e.description,13,340,{lineHeight:1.4})]:[],...e.link?[f(13)]:[]]}]}}const p=new Map;function G(e){const t=p.get(e);if(t)return t;const n=W(e),i=M(e),r=i==="editorial"?H(n):i==="simple"?x(n,{...a("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}):i==="essay"?x(n,{...a("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):i==="shelf"?j(n):F(e,n);return p.set(e,r),r}export{U as HEAD_BELOW,X as editorialHeadTree,k as fluidToken,M as headLookOf,G as headTree,q as token};
@@ -1,13 +1,10 @@
1
1
  import { SECTION_PAD_INNER_DEFAULTS } from "../../passes/section-padding.js";
2
2
  import { type BoxEntry, type ConvertContext, type OwnProps, type PartRow, type SiteWrite } from "../../../sections/section-to-box.js";
3
3
  type Props = Record<string, unknown>;
4
- export declare const TEXT: Props;
4
+ export { BOX, DIM, INNER_BOX, TEXT } from "../../../../../format/lib/document/seed-parts.js";
5
5
  export declare const NUMBER_TEXT: Props;
6
- export declare const DIM: Props;
7
6
  export declare const BUTTON: Props;
8
7
  export declare const SH_LINK: Props;
9
- export declare const BOX: Props;
10
- export declare const INNER_BOX: Props;
11
8
  export declare const SECTION_BOX: Props;
12
9
  export declare const SAME_KEYS: readonly BoxEntry[];
13
10
  export declare const DROP_COMMON: Readonly<Record<string, string>>;
@@ -50,4 +47,3 @@ export declare const lineSides: (sides: {
50
47
  left?: number;
51
48
  }) => Props;
52
49
  export declare const pictureCell: (name: string, key: string, props: OwnProps, parts?: readonly PartRow[]) => PartRow;
53
- export {};
@@ -1 +1 @@
1
- import{phoneKey as b}from"efficient-easel/draw";import{ENTRANCE_KEYS as f}from"../../../animation/entrance.js";import{COUNT_KEY_PROP as x}from"../../../../../format/lib/content/block-sources.js";import{NESTED_BOX_PADDING as T}from"../../../../../format/lib/content/box-layout.js";import{normalizeSiteGutter as B}from"../../../../../format/lib/content/page-width.js";import{resolveSectionPadding as _}from"../../../content/section-padding.js";import{ButtonBlockMeta as E}from"../../../../../format/lib/document/blocks/general/ButtonBlock/meta.js";import{TextMeta as S}from"../../../../../format/lib/document/blocks/general/Text/meta.js";import{SECTION_PAD_INNER_DEFAULTS as O}from"../../passes/section-padding.js";import{finiteNumber as s}from"../../../../../format/lib/finite-number.js";import{convertTheme as a,hasWords as N}from"../../../sections/section-to-box.js";import{bandPresetIndex as A}from"../../../../../format/lib/theme.js";const{text:z,tag:q,...D}=S.defaultProps,p=D,y={...p,[x]:""},Q={...p,tone:"dim"},{label:Z,href:tt,...I}=E.defaultProps,ot=I,et={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},h={justify:"start",align:"stretch",wrap:!1,blockSpacing:"gap",padV2:!0},R={...h,direction:"column",...T},nt={...h,sectionAccent:0},it=["gridSpan","sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderPhone","sectionAccent","stickTop","stickTopDistance","stickTopPhone","stickTopDistancePhone","anchor","sectionAnimation","_hidden",...Object.values(f).flatMap(t=>[t,b(t)]),"widthFit","widthFitPhone","width","widthPhone","minWidth","minWidthPhone","maxWidth","maxWidthPhone"],r="a section width key, ignored since efficient-web-builder 45 (every section, and a section's root Box, follows Site styles only; Lewis 2026-10-29), so dropping it changes nothing",dt={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:r,fullWidth:r,pageWidth:r,backgroundWidth:r,contentWidth:r,contentMax:r},st=Object.fromEntries(["sectionPaddingLeft","sectionPaddingRight","sectionPaddingLeftTablet","sectionPaddingRightTablet","sectionPaddingLeftPhone","sectionPaddingRightPhone"].map(t=>[t,"needs Box side padding outside its gutter: the old section added it outside its frame, a Box's side padding replaces the gutter. 0 live nodes store it (JJ's read-only export, 2026-10-24)"]));function k(t,o){const e=s(t.sectionPaddingTop)??0,n=s(t.sectionPaddingBottom)??0,i=s(t.sectionPaddingTopTablet),d=s(t.sectionPaddingBottomTablet);return{sectionPaddingTop:e+o.top,sectionPaddingBottom:n+o.bottom,...i===void 0?{}:{sectionPaddingTopTablet:i+o.top},...d===void 0?{}:{sectionPaddingBottomTablet:d+o.bottom},sectionPaddingTopPhone:(s(t.sectionPaddingTopPhone)??i??e)+o.topPhone,sectionPaddingBottomPhone:(s(t.sectionPaddingBottomPhone)??d??n)+o.bottomPhone}}const rt=t=>["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopTablet","sectionPaddingBottomTablet","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(e,n)=>k(n,typeof t=="function"?t(n):t)[o]]);function c(t,o){const e=_(t,O[o]);return{sectionPaddingTop:e.top,sectionPaddingBottom:e.bottom}}const ct=t=>[["padTop","sectionPaddingTop",(o,e)=>c(e,t).sectionPaddingTop],["padBottom","sectionPaddingBottom",(o,e)=>c(e,t).sectionPaddingBottom],["sectionPaddingTop","sectionPaddingTop",(o,e)=>c(e,t).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,e)=>c(e,t).sectionPaddingBottom]],v={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},at=t=>o=>N(o.props[t])?[v]:[],pt=(t,o)=>({kind:"text",key:t,role:"eyebrow",props:p,...o?{style:o}:{}}),m=t=>t.background!=="transparent",w=(t,o)=>{const[e,n]=[t,o].map(i=>typeof i=="string"?i.trim():"");return e?n?`[${e} ]{color=text}${n}`:`[${e}]{color=text}`:n},l={align:"right",alignPhone:"left"},C=(t,o,e)=>{const n=i=>w(i[t],i[o]);return{kind:"block",type:"Text",when:(i,d)=>d!==void 0&&n(d)!=="",box:[[t,"text",(i,d)=>n(d)],[o,"text",(i,d)=>n(d)]],props:e}},gt=(t,o,e,n={})=>C(t,o,{...y,...l,...n,_partStyles:{text:{textStyle:"body-5",color:"labels",...e,case:"upper",...l}}}),g=(t,o)=>typeof t=="number"&&Number.isInteger(t)&&t>=0?t:a(o)?.selected??0,u=(t,o)=>a(o)?.themes[g(t.sectionAccent??0,o)],M=t=>(o,e)=>{const n=u(o,e)?.[t];return n?{fillColor:n}:{}},Pt=(t,o)=>{const e=u(t,o)?.line;return e?{buttonBorder:{width:1,color:e}}:{}},P=(t,o)=>{const e=a(o)?.themes;return e&&m(t)?A(e,g(t.sectionAccent,o)):-1},ht=(t,o,e)=>{const n=P(o,e);return n>=0?n:t},mt=(t,o)=>{const e=P(t,o);return e>=0?{sectionAccent:e}:{}},lt=(t,o)=>m(t.props)&&P(t.props,o)<0?[{kind:"band-preset",page:g(t.props.sectionAccent,o)}]:[],ut=t=>B(t.site?.siteGutter),W=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(t=>[`sectionPadding${t}`,0])),bt=t=>({top:0,right:0,bottom:0,left:0,...t}),ft=(t,o,e,n=[])=>({kind:"group",name:t,keepEmpty:!0,props:(i,d)=>({...R,...W,...M("surface")(i,d),...typeof e=="function"?e(i,d):e}),box:[[o,"bgImage"]],parts:n});export{h as BOX,ot as BUTTON,Q as DIM,dt as DROP_COMMON,st as DROP_SIDE_PADDING,v as HEADING_CASE_UPPER,R as INNER_BOX,W as NO_PAD,y as NUMBER_TEXT,l as RIGHT_WORDS,it as SAME_KEYS,nt as SECTION_BOX,et as SH_LINK,p as TEXT,ht as bandAccent,P as bandIndex,g as bandPage,mt as bandProps,lt as bandWrites,M as fillFrom,at as headingCaseOf,c as innerPad,ct as innerPadKeys,gt as leadLine,C as leadText,Pt as lineBorder,bt as lineSides,w as numberAndUnit,ft as pictureCell,u as sectionPage,ut as siteGutterOf,pt as smallText,k as wrapperPad,rt as wrapperPadKeys};
1
+ import{phoneKey as u}from"efficient-easel/draw";import{BOX as T,INNER_BOX as f,TEXT as h}from"../../../../../format/lib/document/seed-parts.js";import{ENTRANCE_KEYS as x}from"../../../animation/entrance.js";import{CARD_HOVER_KEYS as a}from"../../../../../format/lib/animation/hover.js";import{COUNT_KEY_PROP as B}from"../../../../../format/lib/content/block-sources.js";import{normalizeSiteGutter as _}from"../../../../../format/lib/content/page-width.js";import{resolveSectionPadding as E}from"../../../content/section-padding.js";import{ButtonBlockMeta as O}from"../../../../../format/lib/document/blocks/general/ButtonBlock/meta.js";import{SECTION_PAD_INNER_DEFAULTS as S}from"../../passes/section-padding.js";import{finiteNumber as s}from"../../../../../format/lib/finite-number.js";import{convertTheme as p,hasWords as N}from"../../../sections/section-to-box.js";import{bandPresetIndex as R}from"../../../../../format/lib/theme.js";import{BOX as bt,DIM as ut,INNER_BOX as Tt,TEXT as ft}from"../../../../../format/lib/document/seed-parts.js";const A={...h,[B]:""},{label:V,href:J,...y}=O.defaultProps,z=y,q={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},Q={...T,sectionAccent:0},Z=["gridSpan","sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderPhone","sectionAccent","stickTop","stickTopDistance","stickTopPhone","stickTopDistancePhone","anchor","sectionAnimation","_hidden",...Object.values(x).flatMap(t=>[t,u(t)]),"widthFit","widthFitPhone","width","widthPhone","minWidth","minWidthPhone","maxWidth","maxWidthPhone"],r="a section width key, ignored since efficient-web-builder 45 (every section, and a section's root Box, follows Site styles only; Lewis 2026-10-29), so dropping it changes nothing",tt={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:r,fullWidth:r,pageWidth:r,backgroundWidth:r,contentWidth:r,contentMax:r},ot=Object.fromEntries(["sectionPaddingLeft","sectionPaddingRight","sectionPaddingLeftTablet","sectionPaddingRightTablet","sectionPaddingLeftPhone","sectionPaddingRightPhone"].map(t=>[t,"needs Box side padding outside its gutter: the old section added it outside its frame, a Box's side padding replaces the gutter. 0 live nodes store it (JJ's read-only export, 2026-10-24)"]));function I(t,o){const e=s(t.sectionPaddingTop)??0,n=s(t.sectionPaddingBottom)??0,i=s(t.sectionPaddingTopTablet),d=s(t.sectionPaddingBottomTablet);return{sectionPaddingTop:e+o.top,sectionPaddingBottom:n+o.bottom,...i===void 0?{}:{sectionPaddingTopTablet:i+o.top},...d===void 0?{}:{sectionPaddingBottomTablet:d+o.bottom},sectionPaddingTopPhone:(s(t.sectionPaddingTopPhone)??i??e)+o.topPhone,sectionPaddingBottomPhone:(s(t.sectionPaddingBottomPhone)??d??n)+o.bottomPhone}}const et=t=>["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopTablet","sectionPaddingBottomTablet","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(e,n)=>I(n,typeof t=="function"?t(n):t)[o]]);function c(t,o){const e=E(t,S[o]);return{sectionPaddingTop:e.top,sectionPaddingBottom:e.bottom}}const nt=t=>[["padTop","sectionPaddingTop",(o,e)=>c(e,t).sectionPaddingTop],["padBottom","sectionPaddingBottom",(o,e)=>c(e,t).sectionPaddingBottom],["sectionPaddingTop","sectionPaddingTop",(o,e)=>c(e,t).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,e)=>c(e,t).sectionPaddingBottom]],D={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},it=t=>o=>N(o.props[t])?[D]:[],dt=(t,o)=>({kind:"text",key:t,role:"eyebrow",props:h,...o?{style:o}:{}}),m=t=>t.background!=="transparent",k=(t,o)=>{const[e,n]=[t,o].map(i=>typeof i=="string"?i.trim():"");return e?n?`[${e} ]{color=text}${n}`:`[${e}]{color=text}`:n},l={align:"right",alignPhone:"left"},C=(t,o,e)=>{const n=i=>k(i[t],i[o]);return{kind:"block",type:"Text",when:(i,d)=>d!==void 0&&n(d)!=="",box:[[t,"text",(i,d)=>n(d)],[o,"text",(i,d)=>n(d)]],props:e}},st=(t,o,e,n={})=>C(t,o,{...A,...l,...n,_partStyles:{text:{textStyle:"body-5",color:"labels",...e,case:"upper",...l}}}),g=(t,o)=>typeof t=="number"&&Number.isInteger(t)&&t>=0?t:p(o)?.selected??0,b=(t,o)=>p(o)?.themes[g(t.sectionAccent??0,o)],v=t=>(o,e)=>{const n=b(o,e)?.[t];return n?{fillColor:n}:{}},rt=(t,o)=>{const e=b(t,o)?.line;return e?{buttonBorder:{width:1,color:e}}:{}},P=(t,o)=>{const e=p(o)?.themes;return e&&m(t)?R(e,g(t.sectionAccent,o)):-1},ct=(t,o,e)=>{const n=P(o,e);return n>=0?n:t},at=(t,o)=>{const e=P(t,o);return e>=0?{sectionAccent:e}:{}},pt=(t,o)=>m(t.props)&&P(t.props,o)<0?[{kind:"band-preset",page:g(t.props.sectionAccent,o)}]:[],gt=t=>_(t.site?.siteGutter),W=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(t=>[`sectionPadding${t}`,0])),Pt=t=>({top:0,right:0,bottom:0,left:0,...t}),ht=(t,o,e,n=[])=>({kind:"group",name:t,keepEmpty:!0,props:(i,d)=>({...f,...W,...v("surface")(i,d),...typeof e=="function"?e(i,d):e}),box:[[o,"bgImage"],a.kind,a.duration,a.delay],parts:n});export{bt as BOX,z as BUTTON,ut as DIM,tt as DROP_COMMON,ot as DROP_SIDE_PADDING,D as HEADING_CASE_UPPER,Tt as INNER_BOX,W as NO_PAD,A as NUMBER_TEXT,l as RIGHT_WORDS,Z as SAME_KEYS,Q as SECTION_BOX,q as SH_LINK,ft as TEXT,ct as bandAccent,P as bandIndex,g as bandPage,at as bandProps,pt as bandWrites,v as fillFrom,it as headingCaseOf,c as innerPad,nt as innerPadKeys,st as leadLine,C as leadText,rt as lineBorder,Pt as lineSides,k as numberAndUnit,ht as pictureCell,b as sectionPage,gt as siteGutterOf,dt as smallText,I as wrapperPad,et as wrapperPadKeys};
@@ -1 +1 @@
1
- import{phoneKey as W,readHidable as k}from"efficient-easel/draw";import{parseHexColor as M}from"efficient-shell/format";import{cardColumns as G}from"../../../../components/Cards.js";import{resolveSectionBackground as X,THEME_SECTION_BG as x}from"../../../../../format/lib/content/section-background.js";import{CardsMeta as J}from"../../../../../format/lib/document/blocks/general/Cards/meta.js";import{KeyFeaturesMeta as q}from"../../../../../format/lib/document/blocks/general/KeyFeatures/meta.js";import{finiteNumber as S}from"../../../../../format/lib/finite-number.js";import{parseSectionHeadPlacement as U}from"../../../../../format/lib/sections/section-head-placement.js";import{hasWords as d}from"../../../sections/section-to-box.js";import{labelTextSeed as V}from"../../../../../format/lib/document/text-seeds.js";import{bandAccent as j,bandProps as z,bandWrites as Y,BUTTON as Q,DIM as p,DROP_COMMON as l,DROP_SIDE_PADDING as c,INNER_BOX as t,leadText as Z,SAME_KEYS as h,SECTION_BOX as g,fillFrom as i,SH_LINK as $,TEXT as a,smallText as m,wrapperPad as w,wrapperPadKeys as u}from"./section-to-box-row-parts.js";import{headTree as _,token as s}from"./section-head-looks.js";import{SECTION_BG_BUILT_IN as ee}from"../../../../../format/lib/document/blocks/general/section-bg-built-in.js";const r=(e,o,n,y)=>({sectionBorder:{top:e,right:o,bottom:n,left:y}}),R=(e,o=e)=>({sectionPaddingTop:e,sectionPaddingRight:e,sectionPaddingBottom:e,sectionPaddingLeft:e,sectionPaddingTopPhone:o,sectionPaddingRightPhone:o,sectionPaddingBottomPhone:o,sectionPaddingLeftPhone:o}),O=e=>o=>G(S(o.columns)??S(e.columns)),T=e=>({kind:"group",name:"Grid",props:{...t,gap:0,...r(1,0,0,1)},parts:[e]}),b={...t,direction:"row",gap:0,share:"equal"},C="its head sits in a Box of its own above it (own-box): the row draws the head inline",N=e=>U(e.headPlacement)==="own-box",L="inline is the head the row draws; an own-box node is skipped (`skip`)",oe=e=>({kind:"group",name:"Heading",props:e,parts:[m("eyebrow"),{kind:"text",key:"title",role:"heading",props:a,style:{textStyle:"heading-3",case:"upper"},was:{size:44}}]}),B={top:72,bottom:72,topPhone:72,bottomPhone:72},te={...t,gap:12,gapPhone:12,...R(32,28),...r(0,1,1,0)},ne={name:"Cards",boxProps:(e,o)=>({...g,direction:"column",gap:36,gapPhone:28,...i("surface")(e,o),...w(e,B)}),box:[...h,...u(B)],skip:e=>N(e)?C:typeof e.dataSource=="string"&&e.dataSource?"its cards come from a source: a data list, which waits for the card template on Cards":e.cardStyle==="label-only"?"Label only is Key Features' look: no live node holds it, so it has no row of its own yet":void 0,parts:[_("Cards"),T({kind:"list",key:"items",name:"Card",perRow:O(J.defaultProps),rowName:"Row",rowProps:b,props:(e,o)=>({...te,...i("background")(e,o)}),parts:[{kind:"text",key:"title",props:a,style:{textStyle:"heading-3",...s("headingSmall",20),weight:500,case:"upper",lineHeight:1.5,letterSpacing:.02}},{kind:"text",key:"body",props:p,style:{textStyle:"body-1",...s("body",15),lineHeight:1.6}}]})],drop:{...l,...c,columns:"the rows of N: one Row Box per `columns` cards, which the Box draws as N equal blocks",cardStyle:"the standard card is what the row draws; a Label only node is skipped (0 live nodes)",dataSource:"an empty source is typed cards, what the row draws; a sourced node is skipped (0 live nodes)",dataSourceOptions:"read only with a source; a sourced node is skipped (0 live nodes)",headPlacement:L,eyebrowLook:"needs the eyebrow's Filled look on a Text block: Plain is the eyebrow start look the row draws; 2 of 62 live nodes store it (JJ's export, 2026-10-24)"}},E={top:76,bottom:76,topPhone:76,bottomPhone:76},se={...t,direction:"row",align:"center",gap:16,sectionPaddingTop:32,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,...r(0,1,1,0)},F={textStyle:"body-1",color:"text"},H=(e,o)=>typeof o?.href=="string"&&o.href.trim()!=="",re={name:"Key Features",boxProps:e=>({...g,direction:"column",gap:44,...r(1,0,1,0),...w(e,E)}),box:[...h,...u(E)],parts:[oe({...t,direction:"row",align:"end",gap:20,wrap:!0,share:"content"}),T({kind:"list",key:"items",name:"Feature",perRow:O(q.defaultProps),rowName:"Row",rowProps:b,props:se,parts:[{kind:"button",key:"label",href:"href",when:H,variant:"ghost",props:{...Q,...$,icon:"none"},style:F},{kind:"text",key:"label",when:(e,o)=>!H(e,o),props:a,style:F,was:{size:17}}]})],drop:{...l,...c,columns:"the rows of N: one Row Box per `columns` cells, which the Box draws as N equal blocks",eyebrowLook:"needs the eyebrow's Filled look on a Text block: Filled is Key Features' own default (lib/sections/section-eyebrow-look), so 20 of 21 published nodes draw it with nothing stored; the row draws the Plain start look (JJ's export, 2026-10-24)"}},D={top:120,bottom:120,topPhone:80,bottomPhone:80},P=e=>{const o=X(typeof e.background=="string"?e.background:void 0,ee.Series);return o&&o!=="transparent"?o:void 0},f=e=>P(e)===x,ie=(e,o)=>{const n=P(e);return!n||n===x?{}:n==="var(--site-surface)"?i("surface")(e,o):M(n.trim())?{fillColor:n.trim()}:{}},v=e=>{const o=P(e)?1:2;return{gap:o,gapPhone:o}},ae={...t,justify:"between",gap:16,gapPhone:16,sectionHeightMode:"fixed",sectionHeightValue:340,sectionHeightUnit:"px",sectionPaddingTop:36,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,sectionPaddingTopPhone:36,sectionPaddingRightPhone:28,sectionPaddingBottomPhone:32,sectionPaddingLeftPhone:28},I={...t,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[W("share")]:"content"},A={textStyle:"body-5",...s("label",12),letterSpacing:.22,case:"upper",lineHeight:1.5},de=e=>d(e.viewLabel)&&!k(e.viewLabel).hidden,pe={name:"Recurring Columns",boxProps:(e,o)=>({...g,direction:"column",gap:60,gapPhone:60,...r(0,0,1,0),...f(e)?z(e,o):{},...ie(e,o),...w(e,D)}),box:[...h.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,n)=>f(o)?j(e,o,n):e],...u(D)],skip:e=>N(e)?C:void 0,site:(e,o)=>f(e.props)?Y(e,o):[],parts:[_("Series"),{kind:"group",name:"Grid",props:(e,o)=>({...t,...v(e),...P(e)?{}:i("background")(e,o)}),parts:[{kind:"list",key:"cards",name:"Column",perRow:()=>4,rowName:"Row",rowProps:e=>({...b,...v(e)}),rowFiller:t,props:(e,o)=>({...ae,...i("background")(e,o)}),parts:[{kind:"group",name:"Words",props:{...t,gap:16,gapPhone:16},parts:[{kind:"group",name:"Top",props:I,parts:[m("num",s("label",13)),m("since",s("label",13))]},{kind:"text",key:"title",props:{...a,tag:"h3"},style:{textStyle:"heading-3",...s("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}},{kind:"text",key:"desc",props:p,style:{textStyle:"body-5",fontRole:"heading",...s("body",14),lineHeight:1.6}}]},{kind:"group",name:"Footer",when:(e,o)=>d(o?.entries)||d(o?.entriesLabel)||de(e),props:{...I,align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...r(1,0,0,0)},parts:[Z("entries","entriesLabel",{...p,_partStyles:{text:A}}),{kind:"group",name:"View",props:{...t,maxWidthPhone:266},parts:[{kind:"block",type:"Text",when:e=>d(e.viewLabel),props:e=>{const o=k(e.viewLabel),n=V()._partStyles,y=e._partStyles?.viewLabel;return{...a,text:o.text,_partStyles:{text:{...n.text,...A,...y}},...o.hidden?{_hidden:!0}:{}}}}]}]}]}]}],reads:{viewLabel:"a Text at the far end of every card's footer",background:"the Box's theme (the band preset) or its Fill; the grid's gap"},drop:{...l,...c,headPlacement:L}},K={top:60,bottom:60,topPhone:40,bottomPhone:40},le={...t,gap:8,gapPhone:8,...R(24),...r(1,1,1,1)},ce={name:"Document Detail Cards",boxProps:e=>({...g,direction:"column",gap:40,gapPhone:16,...r(0,0,1,0),...w(e,K)}),box:[...h,...u(K)],parts:[{kind:"list",key:"cards",name:"Card",perRow:()=>3,rowName:"Row",rowProps:{...b,gap:40,gapPhone:16},props:(e,o)=>({...le,...i("surface")(e,o)}),parts:[m("label",{...s("label",12),lineHeight:1.5}),{kind:"group",name:"Words",props:{...t,gap:14,gapPhone:14},parts:[{kind:"text",key:"value",props:a,style:{textStyle:"heading-3",...s("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}},{kind:"text",key:"desc",props:p,style:{textStyle:"body-5",fontRole:"accent",...s("body",14),italic:!0,lineHeight:1.5}}]}]}],drop:{...l,...c}},Re={Cards:ne,KeyFeatures:re,Series:pe,DocMetaCards:ce};export{Re as CARDS_SECTION_TO_BOX};
1
+ import{phoneKey as M,readHidable as f}from"efficient-easel/draw";import{parseHexColor as X}from"efficient-shell/format";import{cardColumns as j}from"../../../../components/Cards.js";import{resolveSectionBackground as G,THEME_SECTION_BG as S}from"../../../../../format/lib/content/section-background.js";import{CardsMeta as J}from"../../../../../format/lib/document/blocks/general/Cards/meta.js";import{KeyFeaturesMeta as q}from"../../../../../format/lib/document/blocks/general/KeyFeatures/meta.js";import{finiteNumber as x}from"../../../../../format/lib/finite-number.js";import{nonEmptyString as U}from"../../../../../format/lib/non-empty-string.js";import{parseSectionHeadPlacement as V}from"../../../../../format/lib/sections/section-head-placement.js";import{hasWords as Y}from"../../../sections/section-to-box.js";import{BOX_TYPE as l,CONTAINER_BLOCKS_SLOT as p}from"../../../../../format/lib/document/container-blocks.js";import{labelTextSeed as z}from"../../../../../format/lib/document/text-seeds.js";import{CARDS_BODY_LOOK as Q,CARDS_CARD as Z,CARDS_TITLE_LOOK as $,rowFieldTextSeed as a}from"../../../../../format/lib/document/blocks/general/Cards/card-seed.js";import{bandAccent as ee,bandProps as oe,bandWrites as te,BUTTON as re,DIM as h,DROP_COMMON as m,DROP_SIDE_PADDING as g,INNER_BOX as t,SAME_KEYS as w,SECTION_BOX as u,fillFrom as c,SH_LINK as ne,TEXT as n,smallText as se,wrapperPad as y,wrapperPadKeys as b}from"./section-to-box-row-parts.js";import{headTree as k,token as i}from"./section-head-looks.js";import{boxPadding as ae}from"../../../../../format/lib/document/seed-parts.js";import{SECTION_BG_BUILT_IN as ie}from"../../../../../format/lib/document/blocks/general/section-bg-built-in.js";const d=(e,o,r,W)=>({sectionBorder:{top:e,right:o,bottom:r,left:W}}),O=e=>o=>j(x(o.columns)??x(e.columns)),_=e=>({kind:"group",name:"Grid",props:{...t,gap:0,...d(1,0,0,1)},parts:[e]}),C={...t,direction:"row",gap:0,share:"equal"},R="its head sits in a Box of its own above it (own-box): the row draws the head inline",T=e=>V(e.headPlacement)==="own-box",E="inline is the head the row draws; an own-box node is skipped (`skip`)",de=e=>({kind:"group",name:"Heading",props:e,parts:[se("eyebrow"),{kind:"text",key:"title",role:"heading",props:n,style:{textStyle:"heading-3",case:"upper"},was:{size:44}}]}),B={top:72,bottom:72,topPhone:72,bottomPhone:72},le={...Z,...d(0,1,1,0)},pe={name:"Cards",boxProps:(e,o)=>({...u,direction:"column",gap:36,gapPhone:28,...c("surface")(e,o),...y(e,B)}),box:[...w,...b(B)],skip:e=>T(e)?R:typeof e.dataSource=="string"&&e.dataSource?"its cards come from a source: they are drawn from the card template on Cards":e.template!==void 0?"its cards are drawn from its own card template (an emptied one draws none): the shape the other rows land on":e.cardStyle==="label-only"?"Label only is Key Features' look: no live node holds it, so it has no row of its own yet":void 0,parts:[k("Cards"),_({kind:"list",key:"items",name:"Card",perRow:O(J.defaultProps),rowName:"Row",rowProps:C,props:(e,o)=>({...le,...c("background")(e,o)}),parts:[{kind:"text",key:"title",props:n,style:$},{kind:"text",key:"body",props:h,style:Q}]})],drop:{...m,...g,columns:"the rows of N: one Row Box per `columns` cards, which the Box draws as N equal blocks",cardStyle:"the standard card is what the row draws; a Label only node is skipped (0 live nodes)",dataSource:"an empty source is typed cards, what the row draws; a sourced node is skipped (0 live nodes)",dataSourceOptions:"read only with a source; a sourced node is skipped (0 live nodes)",template:"an empty card template is typed cards, what the row draws; a node with a template is skipped",highlightedCard:"read only with a card template; a node with a template is skipped",highlightBadge:"read only with a card template; a node with a template is skipped",headPlacement:E,eyebrowLook:"needs the eyebrow's Filled look on a Text block: Plain is the eyebrow start look the row draws; 2 of 62 live nodes store it (JJ's export, 2026-10-24)"}},N={top:76,bottom:76,topPhone:76,bottomPhone:76},ce={...t,direction:"row",align:"center",gap:16,sectionPaddingTop:32,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,...d(0,1,1,0)},L={textStyle:"body-1",color:"text"},A=(e,o)=>typeof o?.href=="string"&&o.href.trim()!=="",he={name:"Key Features",boxProps:e=>({...u,direction:"column",gap:44,...d(1,0,1,0),...y(e,N)}),box:[...w,...b(N)],parts:[de({...t,direction:"row",align:"end",gap:20,wrap:!0,share:"content"}),_({kind:"list",key:"items",name:"Feature",perRow:O(q.defaultProps),rowName:"Row",rowProps:C,props:ce,parts:[{kind:"button",key:"label",href:"href",when:A,variant:"ghost",props:{...re,...ne,icon:"none"},style:L},{kind:"text",key:"label",when:(e,o)=>!A(e,o),props:n,style:L,was:{size:17}}]})],drop:{...m,...g,columns:"the rows of N: one Row Box per `columns` cells, which the Box draws as N equal blocks",eyebrowLook:"needs the eyebrow's Filled look on a Text block: Filled is Key Features' own default (lib/sections/section-eyebrow-look), so 20 of 21 published nodes draw it with nothing stored; the row draws the Plain start look (JJ's export, 2026-10-24)"}},D={top:120,bottom:120,topPhone:80,bottomPhone:80},F=e=>{const o=G(typeof e.background=="string"?e.background:void 0,ie.Series);return o&&o!=="transparent"?o:void 0},P=e=>F(e)===S,me=(e,o)=>{const r=F(e);return!r||r===S?{}:r==="var(--site-surface)"?c("surface")(e,o):X(r.trim())?{fillColor:r.trim()}:{}},ge={...t,justify:"between",gap:16,gapPhone:16,sectionHeightMode:"fixed",sectionHeightValue:340,sectionHeightUnit:"px",sectionPaddingTop:36,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,sectionPaddingTopPhone:36,sectionPaddingRightPhone:28,sectionPaddingBottomPhone:32,sectionPaddingLeftPhone:28},I={...t,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[M("share")]:"content"},v={textStyle:"body-5",...i("label",12),letterSpacing:.22,case:"upper",lineHeight:1.5},we=e=>Y(e.viewLabel)&&!f(e.viewLabel).hidden,s=e=>f(e).text?.trim?.()??"",H=e=>Object.fromEntries(Object.entries(e).filter(([,o])=>U(o)!==void 0)),ue={name:"Recurring Columns",boxProps:(e,o)=>({...u,direction:"column",gap:60,gapPhone:60,...d(0,0,1,0),...P(e)?oe(e,o):{},...me(e,o),...y(e,D)}),box:[...w.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,r)=>P(o)?ee(e,o,r):e],...b(D)],skip:e=>T(e)?R:void 0,site:(e,o)=>P(e.props)?te(e,o):[],parts:[k("Series"),{kind:"core",as:"Cards",keep:[],props:{columns:4},derive:{reads:["cards"],props:e=>({items:(Array.isArray(e.cards)?e.cards:[]).map(o=>H({num:s(o.num),since:s(o.since),title:s(o.title),body:s(o.desc),count:[s(o.entries),s(o.entriesLabel)].filter(Boolean).join(" ")}))})},slots:(e,o)=>({template:[{type:l,props:{...ge,...c("background")(e,o),name:"Card"},slots:{[p]:[{type:l,props:{...t,name:"Words",gap:16,gapPhone:16},slots:{[p]:[{type:l,props:{...I,name:"Top"},slots:{[p]:[a("num",n,i("label",13),!0),a("since",n,i("label",13),!0)]}},a("title",{...n,tag:"h3"},{textStyle:"heading-3",...i("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}),a("body",h,{textStyle:"body-5",fontRole:"heading",...i("body",14),lineHeight:1.6})]}},{type:l,props:{...I,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...d(1,0,0,0)},slots:{[p]:[a("count",h,v),...we(e)?[{type:l,props:{...t,name:"View",maxWidthPhone:266},slots:{[p]:[{type:"Text",props:{...n,text:f(e.viewLabel).text,_partStyles:{text:{...z()._partStyles.text,...v}}}}]}}]:[]]}}]}}]})}],reads:{viewLabel:"a Text typed once in the card template: the far end of every card's footer",background:"the Box's theme (the band preset) or its Fill"},drop:{...m,...g,headPlacement:E}},K={top:60,bottom:60,topPhone:40,bottomPhone:40},ye={...t,gap:8,gapPhone:8,...ae(24),...d(1,1,1,1)},be={name:"Document Detail Cards",boxProps:e=>({...u,direction:"column",gap:40,gapPhone:16,...d(0,0,1,0),...y(e,K)}),box:[...w,...b(K)],parts:[{kind:"core",as:"Cards",keep:[],props:{columns:3},derive:{reads:["cards"],props:e=>({items:(Array.isArray(e.cards)?e.cards:[]).map(o=>H({label:s(o.label),value:s(o.value),body:s(o.desc)}))})},slots:(e,o)=>({template:[{type:l,props:{...ye,...c("surface")(e,o),name:"Card"},slots:{[p]:[a("label",n,{...i("label",12),lineHeight:1.5},!0),{type:l,props:{...t,name:"Words",gap:14,gapPhone:14},slots:{[p]:[a("value",n,{textStyle:"heading-3",...i("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}),a("body",h,{textStyle:"body-5",fontRole:"accent",...i("body",14),italic:!0,lineHeight:1.5})]}}]}}]})}],drop:{...m,...g}},Ie={Cards:pe,KeyFeatures:he,Series:ue,DocMetaCards:be};export{Ie as CARDS_SECTION_TO_BOX};
@@ -1 +1 @@
1
- import{tabletKey as I}from"efficient-easel/draw";import{SECTION_BOX_SLOT as G,SECTION_BOX_TYPE as j}from"../../../sections/section-to-box.js";import{BUTTON as k,DIM as i,DROP_COMMON as D,DROP_SIDE_PADDING as W,INNER_BOX as o,SAME_KEYS as X,SECTION_BOX as P,SH_LINK as f,TEXT as p,bandAccent as v,bandIndex as K,bandPage as $,bandProps as S,bandWrites as z,smallText as d,wrapperPad as l}from"./section-to-box-row-parts.js";import{editorialHeadTree as U,token as c}from"./section-head-looks.js";import{readAnchorName as Y}from"../../../../../format/lib/content/anchor-name.js";import{declaredBlockSource as B}from"../../../../../format/lib/content/block-sources.js";import{parseLocationTileShape as F,splitLegacyRegion as T}from"../../../../../format/lib/content/contact.js";import{groupColumns as g}from"../../../../../format/lib/locations-grid.js";import{phoneHref as q}from"../../../../../format/lib/links/phone-href.js";import{hasMapCoords as V}from"../../../../../format/lib/map-styles.js";const a=e=>typeof e=="string"?e:e==null?"":String(e),m=e=>Array.isArray(e.locations)?e.locations.map(t=>t??{}):[],s=e=>a(e.group),w=e=>`loc-${e}`,x=e=>a(e.state).trim()||T(a(e.region)).state,O=e=>a(e.country).trim()||T(a(e.region)).country,_=e=>[x(e),O(e)].filter(Boolean).join(" · "),J=e=>m(e).some(t=>a(t.photo).trim()!==""),Q=e=>m(e).some(t=>V(Number(t.lat),Number(t.lng))),Z=(e,t)=>m(e).filter(n=>s(n)===s(t)).length,ee=(e,t)=>Z(e,t)===1?"wide":F(e.imageShape),h={top:100,bottom:100,topPhone:60,bottomPhone:60},N=48,r=(e,t={})=>({textStyle:"body-5",...c("label",e),case:"upper",...t}),y={top:1,right:1,bottom:1,left:1},u=(e,t)=>({sectionPaddingTop:e,sectionPaddingBottom:e,sectionPaddingLeft:t,sectionPaddingRight:t,sectionPaddingTopPhone:e,sectionPaddingBottomPhone:e,sectionPaddingLeftPhone:t,sectionPaddingRightPhone:t}),b={...o,direction:"row",share:"equal",gap:0},te=e=>t=>t>g(t)?{...o,gap:0}:{...b,...t>1?{phoneRow:e}:{}},oe={kind:"group",name:"Gallery",props:{...o,gap:20,_hidden:!0},when:J,parts:[{kind:"group",name:"Gallery head",props:{...o,direction:"row",justify:"between",align:"end",gap:24,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},parts:[d("galleryKicker",r(12,{color:"accent",letterSpacing:.3})),{kind:"text",key:"galleryHint",props:{...i,align:"right",alignPhone:"left"},style:r(11,{letterSpacing:.22,alignPhone:"left"})}]},{kind:"group",name:"Groups",props:{...o,gap:24},parts:[{kind:"list",key:"locations",name:"City picture",props:{...o,darken:85,darkenStyle:"bottom",placement:"bottom-left",sectionBorder:y,...u(12,12)},item:(e,t,n)=>({props:{...a(e.photo).trim()?{bgImage:a(e.photo)}:{},link:`#${w(t)}`,boxShape:ee(n,e)}}),parts:[{kind:"text",key:"name",props:p,style:r(11,{letterSpacing:.22,color:"text"})}],groups:{of:s,name:"Group",props:{...o,gap:10},head:e=>({label:s(e[0]??{})}),parts:[d("label",r(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:te(2),perRow:g,rowName:"Row",rowProps:{...b,phoneRow:2}}}]}]},ne={kind:"group",name:"Words",props:{...o,gap:12,gapPhone:12,...u(28,28),sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",sectionHeightModePhone:"auto"},parts:[{kind:"group",name:"Name row",props:{...o,direction:"row",justify:"between",align:"start",gap:14,share:"content",phoneRow:2,sharePhone:"content",wrapPhone:"wrap",sectionPaddingBottom:6,sectionPaddingBottomPhone:6},parts:[{kind:"group",name:"Name",props:{...o,gap:6,gapPhone:6},parts:[{kind:"text",key:"name",role:"heading",props:p,style:{textStyle:"heading-3",...c("headingSmall",30),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}},{kind:"block",type:"Text",props:{...p,_partStyles:{text:r(12,{color:"accent",letterSpacing:.24,lineHeight:1.5})}},box:["region","state","country"].map(e=>[e,"text",(t,n)=>_(n)]),when:(e,t)=>_(t??{})!==""}]},{kind:"group",name:"Time zone",props:{...o,sectionBorder:y,...u(6,10)},parts:[{kind:"text",key:"timezone",props:{...i,textFit:"line"},style:r(12,{letterSpacing:.22,lineHeight:1.5})}]}]},{kind:"text",key:"address",props:i,style:{textStyle:"body-5",fontRole:"heading",...c("body",14),lineHeight:1.5}},{kind:"block",type:"ButtonBlock",props:{...k,...f,variant:"ghost",arrow:!1,_partStyles:{label:r(13,{letterSpacing:.18,color:"text",lineHeight:24/13})}},box:[["phone","label"],["phone","href",e=>q(a(e))??"#"]],when:(e,t)=>a(t?.phone).trim()!==""},{kind:"text",key:"hours",props:i,style:r(12,{letterSpacing:.18,lineHeight:1.7})}]},ae={kind:"block",type:"LocationMap",props:e=>({mapTheme:typeof e.mapTheme=="string"?e.mapTheme:"auto"}),box:["name","lat","lng","mapsUrl","geocode",...["region","state"].map(e=>[e,"state",(t,n)=>x(n)]),...["region","country"].map(e=>[e,"country",(t,n)=>O(n)])]},re={kind:"group",name:"Map",props:{...o,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[ae]},ie={kind:"list",key:"locations",name:"City",props:(e,t)=>({...o,gap:0,justify:"between",sectionBorder:y,jumpHighlight:!0,sectionAccent:K(e,t)>=0?$(e.sectionAccent,t):-1}),item:(e,t)=>({props:{anchor:w(t)}}),parts:[ne,re],groups:{of:s,name:"Group",props:{...o,gap:20},head:e=>{const t=e[0]??{};return{key:s(t),groupName:a(t.groupName),count:`${e.length} location${e.length===1?"":"s"}`}},parts:[{kind:"group",name:"Group head",props:{...o,direction:"row",justify:"between",align:"end",gap:16,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},when:(e,t)=>a(t?.key).trim()!=="",parts:[d("key",r(13,{color:"accent",letterSpacing:.3})),{kind:"text",key:"groupName",role:"heading",props:p,style:{textStyle:"heading-3",...c("headingSmall",24),case:"upper",weight:500,letterSpacing:-.01}},{kind:"text",key:"count",props:i,style:r(12,{letterSpacing:.22})}]}],itemsName:"Cities",itemsProps:e=>({...b,columns:g(e),[I("columns")]:1})}},C=r(10,{letterSpacing:.25}),se={kind:"block",type:j,props:{...o,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:Q,slot:G,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...i,text:"Location coordinates ©",_partStyles:{text:C}}},{kind:"block",type:"ButtonBlock",props:{...k,...f,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...C,color:"labels"}}}}]},M=(e,t)=>Object.fromEntries(t.filter(n=>e[n]!==void 0).map(n=>[n,e[n]])),E=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],H=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],A=e=>e.map(t=>[t,t,(n,R)=>l(R,h)[t]]),L=["sectionAccent","sectionAccent",v],pe=["gridSpan","_hidden"],ce={name:"City pictures",skip:e=>B(e)?`fed by the data source "${B(e)}": its cities are read as the page is served, not stored on the node`:void 0,boxProps:(e,t)=>({...P,direction:"column",gap:40,anchor:"studios",...M(l(e,h),E),sectionPaddingBottom:N,sectionPaddingBottomPhone:N,...S(e,t)}),box:[...X.filter(e=>e!=="sectionAccent"&&e!=="anchor"),L,["anchor","anchor",e=>Y(e).trim()?e:"studios"],...A(E)],parts:[U("sectionNumber","heading","tagline"),oe],also:[{name:"City maps",boxProps:(e,t)=>({...P,direction:"column",gap:40,sectionBorder:{bottom:1},sectionPaddingTop:0,sectionPaddingTopPhone:0,...M(l(e,h),H),...S(e,t)}),box:[...pe,L,...A(H)],parts:[ie,se]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:z,drop:{...D,...W,apiKey:"a stored Google Maps key from before the map needed none: the website's one map (components/SiteMap) takes no key, and a key is a credential, never page content",mapId:"a Google Maps style id from the same retired map: nothing in src/ reads it",gallery:"the retired separate tile list: the wall is derived from the cities (`components/ContactLocations`), nothing in src/ reads it",dataSource:"always empty here: a node fed by a source is skipped (see skip)"}},fe={ContactLocations:ce};export{fe as LOCATIONS_SECTION_TO_BOX};
1
+ import{tabletKey as R}from"efficient-easel/draw";import{SECTION_BOX_SLOT as G,SECTION_BOX_TYPE as j}from"../../../sections/section-to-box.js";import{BUTTON as k,DIM as i,DROP_COMMON as D,DROP_SIDE_PADDING as W,INNER_BOX as o,SAME_KEYS as v,SECTION_BOX as f,SH_LINK as S,TEXT as p,bandAccent as X,bandIndex as K,bandPage as $,bandProps as P,bandWrites as z,smallText as l,wrapperPad as d}from"./section-to-box-row-parts.js";import{editorialHeadTree as U,token as c}from"./section-head-looks.js";import{boxPadding as m}from"../../../../../format/lib/document/seed-parts.js";import{readAnchorName as Y}from"../../../../../format/lib/content/anchor-name.js";import{declaredBlockSource as x}from"../../../../../format/lib/content/block-sources.js";import{parseLocationTileShape as F,splitLegacyRegion as w}from"../../../../../format/lib/content/contact.js";import{groupColumns as g}from"../../../../../format/lib/locations-grid.js";import{phoneHref as q}from"../../../../../format/lib/links/phone-href.js";import{hasMapCoords as V}from"../../../../../format/lib/map-styles.js";const r=e=>typeof e=="string"?e:e==null?"":String(e),h=e=>Array.isArray(e.locations)?e.locations.map(t=>t??{}):[],s=e=>r(e.group),B=e=>`loc-${e}`,T=e=>r(e.state).trim()||w(r(e.region)).state,O=e=>r(e.country).trim()||w(r(e.region)).country,_=e=>[T(e),O(e)].filter(Boolean).join(" · "),J=e=>h(e).some(t=>r(t.photo).trim()!==""),Q=e=>h(e).some(t=>V(Number(t.lat),Number(t.lng))),Z=(e,t)=>h(e).filter(n=>s(n)===s(t)).length,ee=(e,t)=>Z(e,t)===1?"wide":F(e.imageShape),y={top:100,bottom:100,topPhone:60,bottomPhone:60},N=48,a=(e,t={})=>({textStyle:"body-5",...c("label",e),case:"upper",...t}),u={top:1,right:1,bottom:1,left:1},b={...o,direction:"row",share:"equal",gap:0},te=e=>t=>t>g(t)?{...o,gap:0}:{...b,...t>1?{phoneRow:e}:{}},oe={kind:"group",name:"Gallery",props:{...o,gap:20,_hidden:!0},when:J,parts:[{kind:"group",name:"Gallery head",props:{...o,direction:"row",justify:"between",align:"end",gap:24,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},parts:[l("galleryKicker",a(12,{color:"accent",letterSpacing:.3})),{kind:"text",key:"galleryHint",props:{...i,align:"right",alignPhone:"left"},style:a(11,{letterSpacing:.22,alignPhone:"left"})}]},{kind:"group",name:"Groups",props:{...o,gap:24},parts:[{kind:"list",key:"locations",name:"City picture",props:{...o,darken:85,darkenStyle:"bottom",placement:"bottom-left",sectionBorder:u,...m(12,12)},item:(e,t,n)=>({props:{...r(e.photo).trim()?{bgImage:r(e.photo),hover:"mono"}:{},link:`#${B(t)}`,boxShape:ee(n,e)}}),parts:[{kind:"text",key:"name",props:p,style:a(11,{letterSpacing:.22,color:"text"})}],groups:{of:s,name:"Group",props:{...o,gap:10},head:e=>({label:s(e[0]??{})}),parts:[l("label",a(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:te(2),perRow:g,rowName:"Row",rowProps:{...b,phoneRow:2}}}]}]},ne={kind:"group",name:"Words",props:{...o,gap:12,gapPhone:12,...m(28,28),sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",sectionHeightModePhone:"auto"},parts:[{kind:"group",name:"Name row",props:{...o,direction:"row",justify:"between",align:"start",gap:14,share:"content",phoneRow:2,sharePhone:"content",wrapPhone:"wrap",sectionPaddingBottom:6,sectionPaddingBottomPhone:6},parts:[{kind:"group",name:"Name",props:{...o,gap:6,gapPhone:6},parts:[{kind:"text",key:"name",role:"heading",props:p,style:{textStyle:"heading-3",...c("headingSmall",30),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}},{kind:"block",type:"Text",props:{...p,_partStyles:{text:a(12,{color:"accent",letterSpacing:.24,lineHeight:1.5})}},box:["region","state","country"].map(e=>[e,"text",(t,n)=>_(n)]),when:(e,t)=>_(t??{})!==""}]},{kind:"group",name:"Time zone",props:{...o,sectionBorder:u,...m(6,10)},parts:[{kind:"text",key:"timezone",props:{...i,textFit:"line"},style:a(12,{letterSpacing:.22,lineHeight:1.5})}]}]},{kind:"text",key:"address",props:i,style:{textStyle:"body-5",fontRole:"heading",...c("body",14),lineHeight:1.5}},{kind:"block",type:"ButtonBlock",props:{...k,...S,variant:"ghost",arrow:!1,_partStyles:{label:a(13,{letterSpacing:.18,color:"text",lineHeight:24/13})}},box:[["phone","label"],["phone","href",e=>q(r(e))??"#"]],when:(e,t)=>r(t?.phone).trim()!==""},{kind:"text",key:"hours",props:i,style:a(12,{letterSpacing:.18,lineHeight:1.7})}]},re={kind:"block",type:"LocationMap",props:e=>({mapTheme:typeof e.mapTheme=="string"?e.mapTheme:"auto"}),box:["name","lat","lng","mapsUrl","geocode",...["region","state"].map(e=>[e,"state",(t,n)=>T(n)]),...["region","country"].map(e=>[e,"country",(t,n)=>O(n)])]},ae={kind:"group",name:"Map",props:{...o,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[re]},ie={kind:"list",key:"locations",name:"City",props:(e,t)=>({...o,gap:0,justify:"between",sectionBorder:u,jumpHighlight:!0,sectionAccent:K(e,t)>=0?$(e.sectionAccent,t):-1}),item:(e,t)=>({props:{anchor:B(t)}}),parts:[ne,ae],groups:{of:s,name:"Group",props:{...o,gap:20},head:e=>{const t=e[0]??{};return{key:s(t),groupName:r(t.groupName),count:`${e.length} location${e.length===1?"":"s"}`}},parts:[{kind:"group",name:"Group head",props:{...o,direction:"row",justify:"between",align:"end",gap:16,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},when:(e,t)=>r(t?.key).trim()!=="",parts:[l("key",a(13,{color:"accent",letterSpacing:.3})),{kind:"text",key:"groupName",role:"heading",props:p,style:{textStyle:"heading-3",...c("headingSmall",24),case:"upper",weight:500,letterSpacing:-.01}},{kind:"text",key:"count",props:i,style:a(12,{letterSpacing:.22})}]}],itemsName:"Cities",itemsProps:e=>({...b,columns:g(e),[R("columns")]:1})}},C=a(10,{letterSpacing:.25}),se={kind:"block",type:j,props:{...o,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:Q,slot:G,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...i,text:"Location coordinates ©",_partStyles:{text:C}}},{kind:"block",type:"ButtonBlock",props:{...k,...S,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...C,color:"labels"}}}}]},M=(e,t)=>Object.fromEntries(t.filter(n=>e[n]!==void 0).map(n=>[n,e[n]])),E=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],H=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],A=e=>e.map(t=>[t,t,(n,L)=>d(L,y)[t]]),I=["sectionAccent","sectionAccent",X],pe=["gridSpan","_hidden"],ce={name:"City pictures",skip:e=>x(e)?`fed by the data source "${x(e)}": its cities are read as the page is served, not stored on the node`:void 0,boxProps:(e,t)=>({...f,direction:"column",gap:40,anchor:"studios",...M(d(e,y),E),sectionPaddingBottom:N,sectionPaddingBottomPhone:N,...P(e,t)}),box:[...v.filter(e=>e!=="sectionAccent"&&e!=="anchor"),I,["anchor","anchor",e=>Y(e).trim()?e:"studios"],...A(E)],parts:[U("sectionNumber","heading","tagline"),oe],also:[{name:"City maps",boxProps:(e,t)=>({...f,direction:"column",gap:40,sectionBorder:{bottom:1},sectionPaddingTop:0,sectionPaddingTopPhone:0,...M(d(e,y),H),...P(e,t)}),box:[...pe,I,...A(H)],parts:[ie,se]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:z,drop:{...D,...W,apiKey:"a stored Google Maps key from before the map needed none: the website's one map (components/SiteMap) takes no key, and a key is a credential, never page content",mapId:"a Google Maps style id from the same retired map: nothing in src/ reads it",gallery:"the retired separate tile list: the wall is derived from the cities (`components/ContactLocations`), nothing in src/ reads it",dataSource:"always empty here: a node fed by a source is skipped (see skip)"}},Pe={ContactLocations:ce};export{Pe as LOCATIONS_SECTION_TO_BOX};
@@ -1,3 +1,3 @@
1
- import{BUTTON as g,DIM as s,bandAccent as f,bandIndex as S,bandWrites as _,DROP_COMMON as h,DROP_SIDE_PADDING as m,INNER_BOX as o,SAME_KEYS as b,SECTION_BOX as y,lineBorder as u,TEXT as l,innerPad as x,innerPadKeys as k}from"./section-to-box-row-parts.js";import{splitParagraphs as E}from"../../../../components/goldPhrases.js";import{TIMELINE_YEAR_BOX as I,TIMELINE_YEAR_HEAD as w}from"../../../../../format/lib/sections/timeline-year-shape.js";const B="jetbrains-mono",T="space-grotesk",i=(e,t,r={})=>({textStyle:"body-5",font:B,size:e,sizePhone:e,letterSpacing:t,lineHeight:1.5,weight:400,...r}),p=(e,t,r,c)=>({font:T,size:e,sizePhone:t,case:"upper",weight:500,letterSpacing:r,lineHeight:c}),a=(e,t,r,c={})=>({textStyle:"body-1",font:T,size:e,sizePhone:t,weight:400,case:"none",lineHeight:r,...c}),n=(e,t,r={})=>({kind:"text",key:e,props:l,style:t,...r}),P=(e,t)=>t?.future===!0,d=e=>E(typeof e?.body=="string"?e.body:""),O={name:"Milestone Timeline",boxProps:(e,t)=>{const r=S(e,t);return{...y,direction:"column",gap:60,sectionBorder:{bottom:1},...x(e,"TimelineTrack"),...r>=0?{sectionAccent:r}:{}}},box:[...b.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",f],...k("TimelineTrack")],parts:[{kind:"group",name:"Heading",props:{...o,direction:"row",align:"end",justify:"between",gap:40,share:"content",sectionPaddingBottom:32,sectionBorder:{bottom:1}},parts:[{kind:"group",name:"Title",props:{...o,direction:"row",align:"end",gap:40,share:"content"},parts:[n("eyebrow",i(13,.3,{case:"upper",color:"accent",padding:8}),{role:"eyebrow"}),n("title",{textStyle:"heading-2",...p(79,40,-.03,1)},{role:"heading"})]},n("intro",a(14,14,1.5),{props:{...s,align:"right",maxWidth:360}})]},{kind:"group",name:"Years",props:{...o,direction:"row",share:"equal",gap:0,line:!0},parts:[{kind:"list",key:"entries",name:"Year",props:{...o,...I},item:e=>({props:e.future===!0?{upcoming:!0}:{}}),parts:[{kind:"group",name:w.name,props:{...o,...w},parts:[n("date",i(13,.22,{color:"accent"}),{when:(e,t)=>!P(e,t)}),n("date",i(13,.22,{color:"labels"}),{when:P}),n("title",{textStyle:"heading-3",...p(20,20,-.02,1.1)},{role:"heading"})]},n("blurb",a(13,13,1.55),{props:s})]}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:(e,t)=>({...g,align:"right",...u(e,t)}),style:i(13,.3,{case:"upper"})}],site:_,drop:{...h,...m,background:"the band is the Box's theme: the site's band preset (`sectionAccent`), or a declared band-preset write (`lib/theme` `bandPresetIndex`)",headPlacement:"needs a row per head placement: an own-box Milestone Timeline draws no head (its words sit in a Section Header above it), the row always draws the head"}},A={name:"Story Timeline",skip:e=>{const t=typeof e.layout=="string"?e.layout:"split";return t==="split"?void 0:`display "${t}": not converted (0 live pages; Spine and Alternating are not offered, a Track story is not stored anywhere)`},boxProps:e=>({...y,direction:"row",share:"twoThree",gap:80,align:"start",...x(e,"Timeline")}),box:[...b,...k("Timeline")],parts:[{kind:"group",name:"Heading",props:{...o,gap:24},parts:[n("eyebrow",i(12,.3,{case:"upper",color:"accent"}),{role:"eyebrow"}),n("title",{textStyle:"heading-2",...p(72,40,-.03,.94)},{role:"heading"}),n("intro",a(14,14,1.6),{props:{...s,maxWidth:360}}),{kind:"group",name:"Picture",keepEmpty:!0,box:[["imageSrc","bgImage"]],props:{...o,sectionBorder:{top:1,right:1,bottom:1,left:1},darken:75,darkenStyle:"bottom",placement:"bottom-center",sectionHeightMode:"fixed",sectionHeightValue:667,sectionHeightUnit:"px",sectionHeightModePhone:"fixed",sectionHeightValuePhone:419,sectionHeightUnitPhone:"px",sectionPaddingTop:12,sectionPaddingBottom:12,sectionPaddingLeft:16,sectionPaddingRight:16,sectionPaddingTopPhone:12,sectionPaddingBottomPhone:12,sectionPaddingLeftPhone:16,sectionPaddingRightPhone:16},when:e=>typeof e.imageSrc=="string"&&e.imageSrc.trim()!=="",parts:[{kind:"group",name:"Caption",props:{...o,direction:"row",justify:"between",align:"center",gap:12,share:"content",phoneRow:2},parts:[n("imageCaption",i(11,.24,{case:"upper",color:"text"})),n("imageMeta",i(11,.24,{case:"upper",color:"accent"}),{props:{...l,align:"right"}})]}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:(e,t)=>({...g,...u(e,t)}),style:i(13,.3,{case:"upper"})}]},{kind:"group",name:"Chapters",props:{...o,gap:48,line:!1},parts:[{kind:"list",key:"entries",name:"Chapter",props:{...o,direction:"row",gap:24,share:"biggerRight",align:"start"},parts:[n("date",i(13,.24,{color:"accent"})),{kind:"group",name:"Words",props:{...o,gap:14},parts:[n("title",{textStyle:"heading-3",...p(24,20,-.02,1.5)},{role:"heading"}),{kind:"block",type:"Text",props:{...l,_partStyles:{text:a(17,16,1.6)}},box:[["body","text",(e,t)=>d(t)[0]??""]],when:(e,t)=>d(t).length>0},{kind:"block",type:"Text",props:{...s,_partStyles:{text:a(17,16,1.6,{paragraphSpacing:14})}},box:[["body","text",(e,t)=>d(t).slice(1).join(`
1
+ import{BUTTON as g,DIM as s,bandAccent as S,bandIndex as _,bandWrites as P,DROP_COMMON as h,DROP_SIDE_PADDING as m,INNER_BOX as o,SAME_KEYS as b,SECTION_BOX as y,lineBorder as u,TEXT as l,innerPad as x,innerPadKeys as k}from"./section-to-box-row-parts.js";import{splitParagraphs as E}from"../../../../components/goldPhrases.js";import{TIMELINE_YEAR_BOX as I,TIMELINE_YEAR_HEAD as w}from"../../../../../format/lib/sections/timeline-year-shape.js";import{boxPadding as O}from"../../../../../format/lib/document/seed-parts.js";const A="jetbrains-mono",T="space-grotesk",i=(e,t,r={})=>({textStyle:"body-5",font:A,size:e,sizePhone:e,letterSpacing:t,lineHeight:1.5,weight:400,...r}),p=(e,t,r,d)=>({font:T,size:e,sizePhone:t,case:"upper",weight:500,letterSpacing:r,lineHeight:d}),a=(e,t,r,d={})=>({textStyle:"body-1",font:T,size:e,sizePhone:t,weight:400,case:"none",lineHeight:r,...d}),n=(e,t,r={})=>({kind:"text",key:e,props:l,style:t,...r}),f=(e,t)=>t?.future===!0,c=e=>E(typeof e?.body=="string"?e.body:""),H={name:"Milestone Timeline",boxProps:(e,t)=>{const r=_(e,t);return{...y,direction:"column",gap:60,sectionBorder:{bottom:1},...x(e,"TimelineTrack"),...r>=0?{sectionAccent:r}:{}}},box:[...b.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",S],...k("TimelineTrack")],parts:[{kind:"group",name:"Heading",props:{...o,direction:"row",align:"end",justify:"between",gap:40,share:"content",sectionPaddingBottom:32,sectionBorder:{bottom:1}},parts:[{kind:"group",name:"Title",props:{...o,direction:"row",align:"end",gap:40,share:"content"},parts:[n("eyebrow",i(13,.3,{case:"upper",color:"accent",padding:8}),{role:"eyebrow"}),n("title",{textStyle:"heading-2",...p(79,40,-.03,1)},{role:"heading"})]},n("intro",a(14,14,1.5),{props:{...s,align:"right",maxWidth:360}})]},{kind:"group",name:"Years",props:{...o,direction:"row",share:"equal",gap:0,line:!0},parts:[{kind:"list",key:"entries",name:"Year",props:{...o,...I},item:e=>({props:e.future===!0?{upcoming:!0}:{}}),parts:[{kind:"group",name:w.name,props:{...o,...w},parts:[n("date",i(13,.22,{color:"accent"}),{when:(e,t)=>!f(e,t)}),n("date",i(13,.22,{color:"labels"}),{when:f}),n("title",{textStyle:"heading-3",...p(20,20,-.02,1.1)},{role:"heading"})]},n("blurb",a(13,13,1.55),{props:s})]}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:(e,t)=>({...g,align:"right",...u(e,t)}),style:i(13,.3,{case:"upper"})}],site:P,drop:{...h,...m,background:"the band is the Box's theme: the site's band preset (`sectionAccent`), or a declared band-preset write (`lib/theme` `bandPresetIndex`)",headPlacement:"needs a row per head placement: an own-box Milestone Timeline draws no head (its words sit in a Section Header above it), the row always draws the head"}},M={name:"Story Timeline",skip:e=>{const t=typeof e.layout=="string"?e.layout:"split";return t==="split"?void 0:`display "${t}": not converted (0 live pages; Spine and Alternating are not offered, a Track story is not stored anywhere)`},boxProps:e=>({...y,direction:"row",share:"twoThree",gap:80,align:"start",...x(e,"Timeline")}),box:[...b,...k("Timeline")],parts:[{kind:"group",name:"Heading",props:{...o,gap:24},parts:[n("eyebrow",i(12,.3,{case:"upper",color:"accent"}),{role:"eyebrow"}),n("title",{textStyle:"heading-2",...p(72,40,-.03,.94)},{role:"heading"}),n("intro",a(14,14,1.6),{props:{...s,maxWidth:360}}),{kind:"group",name:"Picture",keepEmpty:!0,box:[["imageSrc","bgImage"]],props:{...o,sectionBorder:{top:1,right:1,bottom:1,left:1},darken:75,darkenStyle:"bottom",placement:"bottom-center",sectionHeightMode:"fixed",sectionHeightValue:667,sectionHeightUnit:"px",sectionHeightModePhone:"fixed",sectionHeightValuePhone:419,sectionHeightUnitPhone:"px",...O(12,16)},when:e=>typeof e.imageSrc=="string"&&e.imageSrc.trim()!=="",parts:[{kind:"group",name:"Caption",props:{...o,direction:"row",justify:"between",align:"center",gap:12,share:"content",phoneRow:2},parts:[n("imageCaption",i(11,.24,{case:"upper",color:"text"})),n("imageMeta",i(11,.24,{case:"upper",color:"accent"}),{props:{...l,align:"right"}})]}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:(e,t)=>({...g,...u(e,t)}),style:i(13,.3,{case:"upper"})}]},{kind:"group",name:"Chapters",props:{...o,gap:48,line:!1},parts:[{kind:"list",key:"entries",name:"Chapter",props:{...o,direction:"row",gap:24,share:"biggerRight",align:"start"},parts:[n("date",i(13,.24,{color:"accent"})),{kind:"group",name:"Words",props:{...o,gap:14},parts:[n("title",{textStyle:"heading-3",...p(24,20,-.02,1.5)},{role:"heading"}),{kind:"block",type:"Text",props:{...l,_partStyles:{text:a(17,16,1.6)}},box:[["body","text",(e,t)=>c(t)[0]??""]],when:(e,t)=>c(t).length>0},{kind:"block",type:"Text",props:{...s,_partStyles:{text:a(17,16,1.6,{paragraphSpacing:14})}},box:[["body","text",(e,t)=>c(t).slice(1).join(`
2
2
 
3
- `)]],when:(e,t)=>d(t).length>1}]}]}]}],drop:{...h,...m,layout:"Split is the only display converted (see skip); the Box's own arrangement replaces it"}},R={TimelineTrack:O,Timeline:A};export{R as TIMELINE_SECTION_TO_BOX};
3
+ `)]],when:(e,t)=>c(t).length>1}]}]}]}],drop:{...h,...m,layout:"Split is the only display converted (see skip); the Box's own arrangement replaces it"}},D={TimelineTrack:H,Timeline:M};export{D as TIMELINE_SECTION_TO_BOX};
@@ -1 +1 @@
1
- import{hasWords as v,registerSectionToBox as o}from"../../../sections/section-to-box.js";import{BUTTON as g,DIM as m,DROP_COMMON as s,DROP_SIDE_PADDING as c,INNER_BOX as t,leadLine as A,SAME_KEYS as d,SECTION_BOX as p,lineBorder as H,TEXT as l,innerPad as f,siteGutterOf as R,innerPadKeys as S,smallText as P,wrapperPad as u,wrapperPadKeys as b}from"./section-to-box-row-parts.js";import{CARDS_SECTION_TO_BOX as L}from"./section-to-box-rows-cards.js";import{normalizeSiteGutterPhone as C,siteGutterPhoneFollows as D}from"../../../../../format/lib/content/page-width.js";import{finiteNumber as W}from"../../../../../format/lib/finite-number.js";import{STATS_SECTION_TO_BOX as X}from"./section-to-box-rows-stats.js";import{LOGOS_SECTION_TO_BOX as G}from"./section-to-box-rows-logos.js";import{STRIP_SECTION_TO_BOX as M}from"./section-to-box-rows-strip.js";import{TIMELINE_SECTION_TO_BOX as F}from"./section-to-box-rows-timeline.js";import{LOCATIONS_SECTION_TO_BOX as z}from"./section-to-box-rows-locations.js";import{HEAD_ONLY_SECTION_TO_BOX as K}from"./section-to-box-rows-head.js";import{PAGE_HEADER_SECTION_TO_BOX as Y}from"./section-to-box-rows-pageheader.js";import{DOCBODY_SECTION_TO_BOX as j}from"./section-to-box-rows-docbody.js";import{EDITORIAL_SECTION_TO_BOX as U}from"./section-to-box-rows-editorial.js";import{fluidToken as q,headTree as O,token as r}from"./section-head-looks.js";const T={top:72,bottom:72,topPhone:72,bottomPhone:72},J={name:"Editorial Text",boxProps:e=>({...p,direction:"column",gap:28,gapPhone:28,sectionBorder:{top:1},...u(e,T)}),box:[["topBorder","sectionBorder",e=>e===!1?void 0:{top:1}],...d,...b(T)],parts:[O("Prose"),{kind:"text",key:"body",props:m,style:{textStyle:"body-1",...r("body",16),lineHeight:1.7,paragraphSpacing:18}}],drop:{...s,...c,headPlacement:"needs a row per head placement: an own-box Prose draws no head (its words sit in a Section Header above it), the row always draws the head. 0 of 123 live nodes store it (the live export, 2026-10-24)"}},w={buttonPaddingTop:20,buttonPaddingBottom:20,buttonPaddingLeft:28,buttonPaddingRight:28},k=(e,n)=>n?.variant==="primary",_=(e,n)=>({kind:"list",key:"buttons",name:"Button",flat:!0,when:e,parts:[{kind:"button",key:"label",href:"href",when:k,variant:"primary",style:{letterSpacing:.3},props:{...g,...w,...n}},{kind:"button",key:"label",href:"href",when:(i,a)=>!k(i,a),variant:"ghost",style:{letterSpacing:.3},props:(i,a)=>({...g,...w,...n,...H(i,a)})}]}),h=e=>v(e.title),Q={name:"Call-to-Action Heading",boxProps:e=>({...p,direction:"row",align:"center",justify:h(e)?"between":"end",gap:60,gapPhone:60,share:"content",sectionBorder:{bottom:1},...f(e,"TitleWithButtons")}),box:[...d,...S("TitleWithButtons")],parts:[{kind:"group",name:"Title",props:{...t,maxWidth:1e3,widthFitPhone:"fill"},parts:[{kind:"text",key:"title",role:"heading",props:l,style:{textStyle:"heading-1",...q("headingLarge",48,7,108),case:"upper",lineHeight:.94,letterSpacing:-.035}}]},{kind:"group",name:"Buttons",props:e=>({...t,gap:14,gapPhone:14,widthFitPhone:"fill",...h(e)?{minWidth:280,minWidthPhone:0}:{}}),parts:[_(h,{widthFit:"fill",iconPosition:"end"}),_(e=>!h(e),{})]}],drop:{...s,buttonsAlign:"moves the buttons only when there is no heading (4 of 128 live nodes), where the Box puts them at the end. 0 of 128 live nodes store it (the live export, 2026-10-24)",buttonsAlignPhone:"the phone's own side of `buttonsAlign`, read only with no heading; no old node stores it (it is new with the Phone view's Block alignment row), so nothing moves"}};function V(e){const{siteGutter:n,siteGutterPhone:i}=e.site??{},a=R(e),y=Math.min(20,C(i)??D(n));return{sectionPaddingLeft:a,sectionPaddingRight:a,sectionPaddingLeftPhone:y,sectionPaddingRightPhone:y}}const B={top:40,bottom:64,topPhone:24,bottomPhone:36},Z={name:"Section Header",boxProps:(e,n)=>({...p,direction:"column",gap:0,...u(e,B),...V(n)}),box:[...d,...b(B)],parts:[O("SectionHeader")],drop:{...s,...c,headStyle:"needs a row per head look: the row draws the standard look; the editorial, simple, statement, natural and essay looks are other layouts. 0 of 69 live nodes store it (the live export, 2026-10-24)",eyebrowLook:"read only by the simple, statement, natural and essay looks, which this row does not draw. 0 of 69 live nodes store it",rowGap:"read only by the natural look, which this row does not draw. 0 of 69 live nodes store it",descriptionSize:"read only by the natural look, which this row does not draw. 0 of 69 live nodes store it",numStyle:"Solid (the default; 4 of 69 live nodes store it) IS the eyebrow Text the row draws; Outlined (0 live) needs an outlined-number text look"}},x={...t,direction:"row",share:"bigLeft",gap:30},E={...t,sectionPaddingLeft:30,sectionPaddingLeftPhone:0},N=(e,n,i)=>({kind:"group",name:e,props:n,parts:[i]}),$={name:"Lead Text",boxProps:e=>({...p,direction:"column",gap:40,gapPhone:40,sectionBorder:{bottom:1},...f(e,"ParagraphsA")}),box:[...d,...S("ParagraphsA")],parts:[{kind:"group",name:"Numbers",props:{...x,gapPhone:24,sectionBorder:{bottom:1},sectionPaddingBottom:40,sectionPaddingBottomPhone:40},parts:[{kind:"group",name:"Eyebrow",props:{...t,sectionPaddingTop:5,sectionPaddingBottom:1,sectionPaddingTopPhone:5,sectionPaddingBottomPhone:1},parts:[P("eyebrow",{color:"labels",...r("label",12),letterSpacing:.24})]},N("Stats column",t,{kind:"group",name:"Stats",props:{...E,gap:0,gapPhone:0},parts:[{kind:"list",key:"stats",name:"Stat",flat:!0,parts:[A("value","label",{...r("label",13),letterSpacing:.18,lineHeight:1.8})]}]})]},{kind:"group",name:"Words",props:{...x,gapPhone:28},parts:[{kind:"group",name:"Lead",props:t,parts:[{kind:"group",name:"Measure",props:{...t,maxWidth:780},parts:[{kind:"text",key:"lead",props:l,style:{textStyle:"heading-3",...r("headingSmall",22,20),weight:400,case:"none",lineHeight:1.45,letterSpacing:-.005}}]}]},N("Note column",{...t,justify:"end",widthFit:"fill"},{kind:"group",name:"Founders",props:{...E,gap:8,gapPhone:8},parts:[{kind:"group",name:"Note",props:{...t,gap:6,gapPhone:6},parts:[{kind:"text",key:"foundersHeading",props:l,style:{textStyle:"body-1",fontRole:"heading",...r("body",18,16),weight:500,letterSpacing:-.01,lineHeight:1.7}},{kind:"text",key:"foundersBody",props:m,style:{textStyle:"body-5",fontRole:"heading",...r("body",14,12),lineHeight:1.7}}]},P("attribution",{...r("label",12,10),letterSpacing:.24,lineHeight:1.7})]})]}],drop:{...s}},I={top:24,bottom:24,topPhone:24,bottomPhone:24},ee={name:"Banner",boxProps:e=>({...p,direction:"column",gap:0,...u(e,I)}),box:[...d,"contained",...b(I)],parts:[{kind:"group",name:"Card",keepEmpty:!0,props:{...t,gap:28,placement:"top-left",darken:60,darkenStyle:"even",sectionBorder:{width:1},sectionPaddingTop:64,sectionPaddingBottom:64,sectionPaddingTopPhone:40,sectionPaddingBottomPhone:40,sectionPaddingLeft:40,sectionPaddingRight:40,sectionPaddingLeftPhone:24,sectionPaddingRightPhone:24},box:[["imageSrc","bgImage"],["overlay","darken",e=>Math.min(Math.max(W(e)??60,0),100)]],parts:[{kind:"group",name:"Words",props:{...t,gap:20},parts:[P("eyebrow"),{kind:"text",key:"title",role:"heading",props:{...l,maxWidth:680},style:{weight:500,lineHeight:1.05,letterSpacing:-.03,case:"none"}},{kind:"text",key:"body",props:{...m,maxWidth:680},style:{textStyle:"body-1",lineHeight:1.6},was:{size:16}}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:g}]}],drop:{...s,...c}},te={Prose:J,TitleWithButtons:Q,SectionHeader:Z,ParagraphsA:$,Banner:ee};function be(){o(te),o(X),o(G),o(L),o(M),o(F),o(z),o(K),o(Y),o(j),o(U)}export{te as GENERAL_SECTION_TO_BOX,be as registerGeneralSectionRows};
1
+ import{hasWords as v,registerSectionToBox as o}from"../../../sections/section-to-box.js";import{BUTTON as g,DIM as m,DROP_COMMON as s,DROP_SIDE_PADDING as c,INNER_BOX as t,leadLine as A,SAME_KEYS as d,SECTION_BOX as p,lineBorder as H,TEXT as l,innerPad as f,siteGutterOf as C,innerPadKeys as S,smallText as u,wrapperPad as P,wrapperPadKeys as b}from"./section-to-box-row-parts.js";import{CARDS_SECTION_TO_BOX as R}from"./section-to-box-rows-cards.js";import{normalizeSiteGutterPhone as L,siteGutterPhoneFollows as D}from"../../../../../format/lib/content/page-width.js";import{finiteNumber as W}from"../../../../../format/lib/finite-number.js";import{STATS_SECTION_TO_BOX as X}from"./section-to-box-rows-stats.js";import{LOGOS_SECTION_TO_BOX as G}from"./section-to-box-rows-logos.js";import{STRIP_SECTION_TO_BOX as M}from"./section-to-box-rows-strip.js";import{TIMELINE_SECTION_TO_BOX as F}from"./section-to-box-rows-timeline.js";import{LOCATIONS_SECTION_TO_BOX as z}from"./section-to-box-rows-locations.js";import{HEAD_ONLY_SECTION_TO_BOX as K}from"./section-to-box-rows-head.js";import{PAGE_HEADER_SECTION_TO_BOX as Y}from"./section-to-box-rows-pageheader.js";import{DOCBODY_SECTION_TO_BOX as j}from"./section-to-box-rows-docbody.js";import{EDITORIAL_SECTION_TO_BOX as U}from"./section-to-box-rows-editorial.js";import{fluidToken as q,headTree as O,token as r}from"./section-head-looks.js";import{boxPadding as J}from"../../../../../format/lib/document/seed-parts.js";const w={top:72,bottom:72,topPhone:72,bottomPhone:72},Q={name:"Editorial Text",boxProps:e=>({...p,direction:"column",gap:28,gapPhone:28,sectionBorder:{top:1},...P(e,w)}),box:[["topBorder","sectionBorder",e=>e===!1?void 0:{top:1}],...d,...b(w)],parts:[O("Prose"),{kind:"text",key:"body",props:m,style:{textStyle:"body-1",...r("body",16),lineHeight:1.7,paragraphSpacing:18}}],drop:{...s,...c,headPlacement:"needs a row per head placement: an own-box Prose draws no head (its words sit in a Section Header above it), the row always draws the head. 0 of 123 live nodes store it (the live export, 2026-10-24)"}},T={buttonPaddingTop:20,buttonPaddingBottom:20,buttonPaddingLeft:28,buttonPaddingRight:28},k=(e,n)=>n?.variant==="primary",_=(e,n)=>({kind:"list",key:"buttons",name:"Button",flat:!0,when:e,parts:[{kind:"button",key:"label",href:"href",when:k,variant:"primary",style:{letterSpacing:.3},props:{...g,...T,...n}},{kind:"button",key:"label",href:"href",when:(i,a)=>!k(i,a),variant:"ghost",style:{letterSpacing:.3},props:(i,a)=>({...g,...T,...n,...H(i,a)})}]}),h=e=>v(e.title),V={name:"Call-to-Action Heading",boxProps:e=>({...p,direction:"row",align:"center",justify:h(e)?"between":"end",gap:60,gapPhone:60,share:"content",sectionBorder:{bottom:1},...f(e,"TitleWithButtons")}),box:[...d,...S("TitleWithButtons")],parts:[{kind:"group",name:"Title",props:{...t,maxWidth:1e3,widthFitPhone:"fill"},parts:[{kind:"text",key:"title",role:"heading",props:l,style:{textStyle:"heading-1",...q("headingLarge",48,7,108),case:"upper",lineHeight:.94,letterSpacing:-.035}}]},{kind:"group",name:"Buttons",props:e=>({...t,gap:14,gapPhone:14,widthFitPhone:"fill",...h(e)?{minWidth:280,minWidthPhone:0}:{}}),parts:[_(h,{widthFit:"fill",iconPosition:"end"}),_(e=>!h(e),{})]}],drop:{...s,buttonsAlign:"moves the buttons only when there is no heading (4 of 128 live nodes), where the Box puts them at the end. 0 of 128 live nodes store it (the live export, 2026-10-24)",buttonsAlignPhone:"the phone's own side of `buttonsAlign`, read only with no heading; no old node stores it (it is new with the Phone view's Block alignment row), so nothing moves"}};function Z(e){const{siteGutter:n,siteGutterPhone:i}=e.site??{},a=C(e),y=Math.min(20,L(i)??D(n));return{sectionPaddingLeft:a,sectionPaddingRight:a,sectionPaddingLeftPhone:y,sectionPaddingRightPhone:y}}const x={top:40,bottom:64,topPhone:24,bottomPhone:36},$={name:"Section Header",boxProps:(e,n)=>({...p,direction:"column",gap:0,...P(e,x),...Z(n)}),box:[...d,...b(x)],parts:[O("SectionHeader")],drop:{...s,...c,headStyle:"needs a row per head look: the row draws the standard look; the editorial, simple, statement, natural and essay looks are other layouts. 0 of 69 live nodes store it (the live export, 2026-10-24)",eyebrowLook:"read only by the simple, statement, natural and essay looks, which this row does not draw. 0 of 69 live nodes store it",rowGap:"read only by the natural look, which this row does not draw. 0 of 69 live nodes store it",descriptionSize:"read only by the natural look, which this row does not draw. 0 of 69 live nodes store it",numStyle:"Solid (the default; 4 of 69 live nodes store it) IS the eyebrow Text the row draws; Outlined (0 live) needs an outlined-number text look"}},B={...t,direction:"row",share:"bigLeft",gap:30},E={...t,sectionPaddingLeft:30,sectionPaddingLeftPhone:0},N=(e,n,i)=>({kind:"group",name:e,props:n,parts:[i]}),ee={name:"Lead Text",boxProps:e=>({...p,direction:"column",gap:40,gapPhone:40,sectionBorder:{bottom:1},...f(e,"ParagraphsA")}),box:[...d,...S("ParagraphsA")],parts:[{kind:"group",name:"Numbers",props:{...B,gapPhone:24,sectionBorder:{bottom:1},sectionPaddingBottom:40,sectionPaddingBottomPhone:40},parts:[{kind:"group",name:"Eyebrow",props:{...t,sectionPaddingTop:5,sectionPaddingBottom:1,sectionPaddingTopPhone:5,sectionPaddingBottomPhone:1},parts:[u("eyebrow",{color:"labels",...r("label",12),letterSpacing:.24})]},N("Stats column",t,{kind:"group",name:"Stats",props:{...E,gap:0,gapPhone:0},parts:[{kind:"list",key:"stats",name:"Stat",flat:!0,parts:[A("value","label",{...r("label",13),letterSpacing:.18,lineHeight:1.8})]}]})]},{kind:"group",name:"Words",props:{...B,gapPhone:28},parts:[{kind:"group",name:"Lead",props:t,parts:[{kind:"group",name:"Measure",props:{...t,maxWidth:780},parts:[{kind:"text",key:"lead",props:l,style:{textStyle:"heading-3",...r("headingSmall",22,20),weight:400,case:"none",lineHeight:1.45,letterSpacing:-.005}}]}]},N("Note column",{...t,justify:"end",widthFit:"fill"},{kind:"group",name:"Founders",props:{...E,gap:8,gapPhone:8},parts:[{kind:"group",name:"Note",props:{...t,gap:6,gapPhone:6},parts:[{kind:"text",key:"foundersHeading",props:l,style:{textStyle:"body-1",fontRole:"heading",...r("body",18,16),weight:500,letterSpacing:-.01,lineHeight:1.7}},{kind:"text",key:"foundersBody",props:m,style:{textStyle:"body-5",fontRole:"heading",...r("body",14,12),lineHeight:1.7}}]},u("attribution",{...r("label",12,10),letterSpacing:.24,lineHeight:1.7})]})]}],drop:{...s}},I={top:24,bottom:24,topPhone:24,bottomPhone:24},te={name:"Banner",boxProps:e=>({...p,direction:"column",gap:0,...P(e,I)}),box:[...d,"contained",...b(I)],parts:[{kind:"group",name:"Card",keepEmpty:!0,props:{...t,gap:28,placement:"top-left",darken:60,darkenStyle:"even",sectionBorder:{width:1},...J(64,40,40,24)},box:[["imageSrc","bgImage"],["overlay","darken",e=>Math.min(Math.max(W(e)??60,0),100)]],parts:[{kind:"group",name:"Words",props:{...t,gap:20},parts:[u("eyebrow"),{kind:"text",key:"title",role:"heading",props:{...l,maxWidth:680},style:{weight:500,lineHeight:1.05,letterSpacing:-.03,case:"none"}},{kind:"text",key:"body",props:{...m,maxWidth:680},style:{textStyle:"body-1",lineHeight:1.6},was:{size:16}}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:g}]}],drop:{...s,...c}},oe={Prose:Q,TitleWithButtons:V,SectionHeader:$,ParagraphsA:ee,Banner:te};function fe(){o(oe),o(X),o(G),o(R),o(M),o(F),o(z),o(K),o(Y),o(j),o(U)}export{oe as GENERAL_SECTION_TO_BOX,fe as registerGeneralSectionRows};
@@ -1 +1 @@
1
- import{catalogueLabel as e}from"../../../../format/lib/document/passes/catalogue-labels.js";import{blockSize as n}from"./block-size.js";import{cellWidth as s}from"./cell-width.js";import{clickableParts as p}from"./clickable-parts.js";import{cardCorners as c,sectionCorners as f}from"./corners.js";import{emptyHeadings as a}from"../../../../format/lib/document/passes/empty-headings.js";import{showWhenRows as l}from"../../../../format/lib/document/passes/show-when-rows.js";import{hiddenNodes as d}from"../../../../format/lib/document/passes/hidden-nodes.js";import{mediaValues as h}from"../../../../format/lib/document/passes/media-values.js";import{sectionAnchor as u}from"./section-anchor.js";import{blockEntrance as S,sectionAnimation as g}from"./section-animation.js";import{sectionHeight as b}from"./section-height.js";import{cardSticky as w,sectionSticky as A}from"./section-sticky.js";import{sectionBorder as P}from"./borders.js";import{blockPadding as k,sectionPadding as C}from"./section-padding.js";import{sectionTheme as W,slideTheme as y}from"./section-theme.js";import{buttonAlignInRow as B,containedWidth as G,sectionWidth as E}from"./section-width.js";import{blockGroups as H,sectionGroups as L}from"../../../../format/lib/document/passes/settings-groups.js";import{slotsStartAfresh as R}from"./slots-start-afresh.js";import{openSlotDisallow as T,sectionGroupAllow as z}from"../../../../format/lib/document/passes/slot-rules.js";import{registryPassContext as mo}from"../../../../format/lib/document/passes/registry-context.js";const D=[R,h,z,T,C,f,P,c,k,S,s,E,G,B,b,u,W,g,A,w,y,n,L,H,l,a,p,d,e];function ro(r,m,o){const t=m;for(const i of D)i.applies(r,o,t)&&(o.inspector&&i.panel?.(t,r,o.inspector,o),i.draw?.(t,r,o));return m}export{D as BLOCK_PASSES,ro as applyBlockPasses,mo as registryPassContext};
1
+ import{catalogueLabel as e}from"../../../../format/lib/document/passes/catalogue-labels.js";import{blockSize as n}from"./block-size.js";import{cardTemplateOnInsert as s}from"../../../../format/lib/document/passes/card-template-on-insert.js";import{cellWidth as p}from"./cell-width.js";import{clickableParts as c}from"./clickable-parts.js";import{cardCorners as f,sectionCorners as a}from"./corners.js";import{emptyHeadings as l}from"../../../../format/lib/document/passes/empty-headings.js";import{showWhenRows as d}from"../../../../format/lib/document/passes/show-when-rows.js";import{hiddenNodes as h}from"../../../../format/lib/document/passes/hidden-nodes.js";import{mediaValues as u}from"../../../../format/lib/document/passes/media-values.js";import{sectionAnchor as S}from"./section-anchor.js";import{blockEntrance as g,sectionAnimation as b}from"./section-animation.js";import{sectionHeight as w}from"./section-height.js";import{cardSticky as A,sectionSticky as P}from"./section-sticky.js";import{sectionBorder as k}from"./borders.js";import{blockPadding as C,sectionPadding as W}from"./section-padding.js";import{sectionTheme as y,slideTheme as B}from"./section-theme.js";import{buttonAlignInRow as G,containedWidth as T,sectionWidth as E}from"./section-width.js";import{blockGroups as H,sectionGroups as I}from"../../../../format/lib/document/passes/settings-groups.js";import{slotsStartAfresh as L}from"./slots-start-afresh.js";import{openSlotDisallow as O,sectionGroupAllow as R}from"../../../../format/lib/document/passes/slot-rules.js";import{registryPassContext as no}from"../../../../format/lib/document/passes/registry-context.js";const z=[L,u,R,O,W,a,k,f,C,g,p,E,T,G,w,S,y,b,P,A,B,n,I,H,d,l,c,h,e,s];function io(r,m,o){const t=m;for(const i of z)i.applies(r,o,t)&&(o.inspector&&i.panel?.(t,r,o.inspector,o),i.draw?.(t,r,o));return m}export{z as BLOCK_PASSES,io as applyBlockPasses,no as registryPassContext};
@@ -1 +1 @@
1
- import{jsx as s}from"react/jsx-runtime";import{SectionAnimation as d}from"../../../components/SectionAnimation.js";import{ENTRANCE_EXCLUDED as m,entranceDrawn as l}from"../../animation/entrance.js";import{CARD_HOVER_SECTIONS as f}from"../../../../format/lib/animation/hover.js";import{BOX_TYPE as p}from"../../../../format/lib/document/container-blocks.js";const E={[p]:"box",Ticker:"marquee",...Object.fromEntries(f.map(n=>[n,"cards"]))},r=(n,e)=>!m.has(n)&&!!e&&typeof e.render=="function";function a(n,e,o,t){n.fields={...n.fields,...o.animationTabFields(e,t)}}function c(n){const e=n,o=e.render;e.render=t=>{const i=l(t);return i?s(d,{desktop:i.desktop,phone:i.phone,editing:!!t.editor?.isEditing,children:o(t)}):o(t)}}const N={name:"sectionAnimation",applies:(n,e,o)=>e.isSection(n)&&r(n,o),panel:(n,e,o)=>a(n,E[e]??"section",o,e),draw:n=>c(n)},T={name:"blockEntrance",applies:(n,e,o)=>!e.isSection(n)&&r(n,o),panel:(n,e,o)=>a(n,"block",o),draw:n=>c(n)};export{T as blockEntrance,N as sectionAnimation};
1
+ import{jsx as d}from"react/jsx-runtime";import{SectionAnimation as m}from"../../../components/SectionAnimation.js";import{ENTRANCE_EXCLUDED as E,entranceDrawn as f}from"../../animation/entrance.js";import{CARD_HOVER_SECTIONS as l,PICTURE_HOVER_BLOCKS as p}from"../../../../format/lib/animation/hover.js";import{BOX_TYPE as _}from"../../../../format/lib/document/container-blocks.js";const r=Object.fromEntries(p.map(n=>[n,"picture"])),b={[_]:"box",Ticker:"marquee",...Object.fromEntries(l.map(n=>[n,"cards"])),...r},a=(n,e)=>!E.has(n)&&!!e&&typeof e.render=="function";function c(n,e,o,t){n.fields={...n.fields,...o.animationTabFields(e,t)}}function s(n){const e=n,o=e.render;e.render=t=>{const i=f(t);return i?d(m,{desktop:i.desktop,phone:i.phone,editing:!!t.editor?.isEditing,children:o(t)}):o(t)}}const C={name:"sectionAnimation",applies:(n,e,o)=>e.isSection(n)&&a(n,o),panel:(n,e,o)=>c(n,b[e]??"section",o,e),draw:n=>s(n)},I={name:"blockEntrance",applies:(n,e,o)=>!e.isSection(n)&&a(n,o),panel:(n,e,o)=>c(n,r[e]??"block",o,e),draw:n=>s(n)};export{I as blockEntrance,C as sectionAnimation};
@@ -1,3 +1,4 @@
1
+ import { type BlockSeed } from "../../../format/lib/document/seed-parts.js";
1
2
  import type { StoredTextStyle } from "../text-styles/site-text-styles.js";
2
3
  import { type ThemeColors, type ThemeValue } from "../../../format/lib/theme.js";
3
4
  type Props = Record<string, unknown>;
@@ -102,11 +103,7 @@ export type ListGroups = {
102
103
  rowName?: string;
103
104
  rowProps?: Props;
104
105
  };
105
- export type BlockSeed = {
106
- type: string;
107
- props?: Props;
108
- slots?: Readonly<Record<string, readonly BlockSeed[]>>;
109
- };
106
+ export type { BlockSeed } from "../../../format/lib/document/seed-parts.js";
110
107
  export type SlotFill = BlockSeed | ListPart;
111
108
  type PartRowKind = {
112
109
  kind: "text";
@@ -153,7 +150,11 @@ type PartRowKind = {
153
150
  as?: string;
154
151
  rename?: Readonly<Record<string, string>>;
155
152
  props?: Props;
156
- slots?: Readonly<Record<string, readonly SlotFill[]>>;
153
+ slots?: Readonly<Record<string, readonly SlotFill[]>> | ((node: Props, ctx: ConvertContext) => Readonly<Record<string, readonly SlotFill[]>>);
154
+ derive?: {
155
+ reads: readonly string[];
156
+ props: (node: Props, ctx: ConvertContext) => Props;
157
+ };
157
158
  };
158
159
  export interface SectionToBoxRow {
159
160
  name: string;
@@ -194,4 +195,3 @@ export type SectionToBoxEdit = {
194
195
  nodes: SectionNode[];
195
196
  };
196
197
  export declare function sectionToBoxEdits(content: unknown, on?: readonly string[], ctx?: ConvertContext): SectionToBoxEdit[];
197
- export {};