efficient-web-builder 64.0.0 → 66.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 (216) hide show
  1. package/CHANGELOG.md +94 -0
  2. package/dist/editor/components/AnchorField.js +1 -1
  3. package/dist/editor/components/CardShadowField.js +1 -1
  4. package/dist/editor/components/PagesPanel.js +1 -1
  5. package/dist/editor/components/SectionEditor.js +1 -1
  6. package/dist/editor/components/WebsitePreviewButton.js +1 -1
  7. package/dist/editor/components/storefront-editor.css +16 -24
  8. package/dist/editor/components/usePreviewHref.js +1 -1
  9. package/dist/editor/lib/animation/entrance-fields.js +1 -1
  10. package/dist/editor/lib/animation/scroll-fields.js +1 -1
  11. package/dist/editor/lib/animation/view-rows.d.ts +20 -0
  12. package/dist/editor/lib/animation/view-rows.js +1 -0
  13. package/dist/editor/lib/document/blocks/general/Banner/fields.js +1 -1
  14. package/dist/editor/lib/document/blocks/general/ButtonBlock/fields.js +1 -1
  15. package/dist/editor/lib/document/blocks/general/Divider/fields.js +1 -1
  16. package/dist/editor/lib/document/blocks/general/FAQ/fields.js +1 -1
  17. package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
  18. package/dist/editor/lib/document/blocks/general/Footprint/fields.d.ts +0 -1
  19. package/dist/editor/lib/document/blocks/general/Footprint/fields.js +1 -1
  20. package/dist/editor/lib/document/blocks/general/HeroGroup/fields.js +1 -1
  21. package/dist/editor/lib/document/blocks/general/ImageBlock/fields.js +1 -1
  22. package/dist/editor/lib/document/blocks/general/LogoBlock/fields.js +1 -1
  23. package/dist/editor/lib/document/blocks/general/ProcessSteps/fields.js +1 -1
  24. package/dist/editor/lib/document/blocks/general/SectionHeader/fields.js +1 -1
  25. package/dist/editor/lib/document/blocks/general/Text/fields.js +1 -1
  26. package/dist/editor/lib/document/blocks/general/index.d.ts +2 -2
  27. package/dist/editor/lib/document/box-fields.d.ts +2 -1
  28. package/dist/editor/lib/document/box-fields.js +1 -1
  29. package/dist/editor/lib/document/card-row-fields.d.ts +3 -0
  30. package/dist/editor/lib/document/card-row-fields.js +1 -1
  31. package/dist/editor/lib/document/controls.d.ts +12 -10
  32. package/dist/editor/lib/document/controls.js +1 -1
  33. package/dist/editor/lib/document/field-groups.d.ts +0 -3
  34. package/dist/editor/lib/document/field-groups.js +1 -1
  35. package/dist/editor/lib/document/part-motion-canvas.d.ts +2 -2
  36. package/dist/editor/lib/document/part-motion-canvas.js +1 -1
  37. package/dist/editor/lib/document/passes/inspector.js +1 -1
  38. package/dist/editor/lib/sections/section-dry-run.d.ts +1 -20
  39. package/dist/editor/lib/sections/section-dry-run.js +2 -2
  40. package/dist/editor/lib/sections/text-layouts.js +1 -1
  41. package/dist/format/lib/animation/entrance-keys.d.ts +8 -0
  42. package/dist/format/lib/animation/entrance-keys.js +1 -0
  43. package/dist/format/lib/animation/scroll.d.ts +5 -6
  44. package/dist/format/lib/animation/scroll.js +1 -1
  45. package/dist/format/lib/animation/views.d.ts +6 -0
  46. package/dist/format/lib/animation/views.js +1 -0
  47. package/dist/format/lib/content/block-sources.d.ts +3 -0
  48. package/dist/format/lib/content/block-sources.js +1 -1
  49. package/dist/format/lib/content/box-background.d.ts +1 -0
  50. package/dist/format/lib/content/box-background.js +1 -1
  51. package/dist/format/lib/content/box-link.d.ts +11 -0
  52. package/dist/format/lib/content/box-link.js +8 -8
  53. package/dist/format/lib/content/box-phone-place.d.ts +0 -2
  54. package/dist/format/lib/content/box-phone-place.js +1 -1
  55. package/dist/format/lib/content/box-side-space.js +1 -1
  56. package/dist/format/lib/content/card-image-shape.d.ts +5 -1
  57. package/dist/format/lib/content/card-image-shape.js +1 -1
  58. package/dist/format/lib/content/card-template.d.ts +1 -0
  59. package/dist/format/lib/content/card-template.js +1 -1
  60. package/dist/format/lib/content/contact.d.ts +0 -1
  61. package/dist/format/lib/content/contact.js +2 -2
  62. package/dist/format/lib/content/css-length.d.ts +1 -0
  63. package/dist/format/lib/content/css-length.js +1 -0
  64. package/dist/format/lib/content/page-width.d.ts +17 -1
  65. package/dist/format/lib/content/page-width.js +1 -1
  66. package/dist/format/lib/content/section-sticky.d.ts +28 -0
  67. package/dist/format/lib/content/section-sticky.js +1 -1
  68. package/dist/format/lib/document/blocks/general/Banner/meta.d.ts +5 -0
  69. package/dist/format/lib/document/blocks/general/Banner/meta.js +1 -1
  70. package/dist/format/lib/document/blocks/general/Footprint/card-seed.d.ts +2 -0
  71. package/dist/format/lib/document/blocks/general/Footprint/card-seed.js +1 -1
  72. package/dist/format/lib/document/blocks/general/Footprint/meta.js +2 -2
  73. package/dist/format/lib/document/blocks/general/ProcessSteps/column-seed.d.ts +5 -0
  74. package/dist/format/lib/document/blocks/general/ProcessSteps/column-seed.js +1 -0
  75. package/dist/format/lib/document/blocks/general/ProcessSteps/meta.js +1 -1
  76. package/dist/format/lib/document/blocks/general/SectionHeader/meta.d.ts +6 -0
  77. package/dist/format/lib/document/blocks/general/SectionHeader/meta.js +1 -1
  78. package/dist/format/lib/document/blocks/general/TitleWithButtons/meta.d.ts +2 -0
  79. package/dist/format/lib/document/blocks/general/TitleWithButtons/meta.js +2 -2
  80. package/dist/format/lib/document/media-drop.js +1 -1
  81. package/dist/format/lib/document/one-h1.d.ts +2 -0
  82. package/dist/format/lib/document/one-h1.js +1 -1
  83. package/dist/format/lib/document/passes/types.d.ts +2 -0
  84. package/dist/format/lib/document/renamed-props.d.ts +1 -0
  85. package/dist/format/lib/document/renamed-props.js +1 -1
  86. package/dist/format/lib/document/section-catalog.js +10 -2
  87. package/dist/format/lib/document/section-descriptions.js +1 -1
  88. package/dist/format/lib/editor-words-catalogue.d.ts +16 -0
  89. package/dist/format/lib/editor-words-catalogue.js +4 -4
  90. package/dist/format/lib/editor-words-kept.js +1 -1
  91. package/dist/format/lib/fit-words.js +4 -1
  92. package/dist/format/lib/links/page-link-rules.d.ts +0 -1
  93. package/dist/format/lib/links/page-link-rules.js +1 -1
  94. package/dist/format/lib/markup.d.ts +1 -0
  95. package/dist/format/lib/markup.js +2 -2
  96. package/dist/format/lib/sections/hero-single-to-hero.js +1 -1
  97. package/dist/format/lib/sections/section-presets.js +1 -1
  98. package/dist/format/lib/sections/timeline-year-shape.js +1 -1
  99. package/dist/format/lib/source-rules/editor-words.js +1 -1
  100. package/dist/format/lib/source-rules/motion-vars-from-the-shell.d.ts +6 -0
  101. package/dist/format/lib/source-rules/motion-vars-from-the-shell.js +4 -0
  102. package/dist/format/lib/source-rules/one-length-control.d.ts +18 -0
  103. package/dist/format/lib/source-rules/one-length-control.js +16 -0
  104. package/dist/format/lib/source-rules/support/label-extraction.js +3 -3
  105. package/dist/format/lib/theme.d.ts +0 -1
  106. package/dist/format/lib/theme.js +3 -3
  107. package/dist/format/lib/web-runtime.d.ts +2 -0
  108. package/dist/format/lib/web-runtime.js +1 -1
  109. package/dist/render/components/BlockFrame.d.ts +3 -3
  110. package/dist/render/components/BlockFrame.js +1 -1
  111. package/dist/render/components/Breadcrumb.js +1 -1
  112. package/dist/render/components/Btn.js +1 -1
  113. package/dist/render/components/CardRowContext.d.ts +7 -1
  114. package/dist/render/components/CardRowContext.js +1 -1
  115. package/dist/render/components/CategoryBar.js +1 -1
  116. package/dist/render/components/ContactLocations.js +2 -2
  117. package/dist/render/components/DealerFinder.d.ts +4 -1
  118. package/dist/render/components/DealerFinder.js +1 -1
  119. package/dist/render/components/Divider.js +1 -1
  120. package/dist/render/components/DocMasthead.js +1 -1
  121. package/dist/render/components/DocTabs.js +1 -1
  122. package/dist/render/components/FeaturedCover.js +1 -1
  123. package/dist/render/components/Flex.js +1 -1
  124. package/dist/render/components/Footprint.d.ts +5 -3
  125. package/dist/render/components/Footprint.js +1 -1
  126. package/dist/render/components/Heading.d.ts +0 -1
  127. package/dist/render/components/Heading.js +1 -1
  128. package/dist/render/components/HeroPictures.d.ts +2 -5
  129. package/dist/render/components/HeroPictures.js +1 -1
  130. package/dist/render/components/ImageBlock.js +1 -1
  131. package/dist/render/components/KeyFeatures.js +1 -1
  132. package/dist/render/components/LocationMap.js +1 -1
  133. package/dist/render/components/LogoBlock.js +1 -1
  134. package/dist/render/components/Logos.d.ts +1 -2
  135. package/dist/render/components/Logos.js +1 -1
  136. package/dist/render/components/LongRead.js +1 -1
  137. package/dist/render/components/PictureZoom.js +1 -1
  138. package/dist/render/components/PostCard.js +1 -1
  139. package/dist/render/components/ProcessSteps.d.ts +2 -1
  140. package/dist/render/components/ProcessSteps.js +1 -1
  141. package/dist/render/components/PublishedPartStylesContext.js +1 -1
  142. package/dist/render/components/SectionAnimation.d.ts +8 -16
  143. package/dist/render/components/SectionAnimation.js +1 -1
  144. package/dist/render/components/SectionHeader.js +1 -1
  145. package/dist/render/components/SideListLayout.d.ts +4 -1
  146. package/dist/render/components/SideListLayout.js +1 -1
  147. package/dist/render/components/Split.js +1 -1
  148. package/dist/render/components/Text.d.ts +2 -1
  149. package/dist/render/components/Text.js +1 -1
  150. package/dist/render/components/Timeline.js +1 -1
  151. package/dist/render/components/TimelineRail.d.ts +11 -3
  152. package/dist/render/components/TimelineRail.js +1 -1
  153. package/dist/render/components/TimelineTrack.js +1 -1
  154. package/dist/render/components/TitleWithButtons.js +1 -1
  155. package/dist/render/components/goldPhrases.js +3 -3
  156. package/dist/render/lib/animation/entrance.d.ts +6 -14
  157. package/dist/render/lib/animation/entrance.js +1 -1
  158. package/dist/render/lib/animation/part-motion.js +2 -2
  159. package/dist/render/lib/content/block-size.d.ts +5 -1
  160. package/dist/render/lib/content/block-size.js +1 -1
  161. package/dist/render/lib/content/box-stack-line.d.ts +1 -1
  162. package/dist/render/lib/content/box-stack-line.js +1 -1
  163. package/dist/render/lib/content/button-look.d.ts +2 -0
  164. package/dist/render/lib/content/button-look.js +1 -1
  165. package/dist/render/lib/content/section-edge.js +1 -1
  166. package/dist/render/lib/content/section-padding.d.ts +5 -2
  167. package/dist/render/lib/content/section-padding.js +1 -1
  168. package/dist/render/lib/dealer-source.d.ts +6 -2
  169. package/dist/render/lib/dealer-source.js +1 -1
  170. package/dist/render/lib/document/blocks/general/Banner/render.js +1 -1
  171. package/dist/render/lib/document/blocks/general/CardList/render.js +1 -1
  172. package/dist/render/lib/document/blocks/general/Footprint/render.js +1 -1
  173. package/dist/render/lib/document/blocks/general/ImageBlock/render.js +1 -1
  174. package/dist/render/lib/document/blocks/general/SectionHeader/render.js +1 -1
  175. package/dist/render/lib/document/blocks/general/Text/render.js +1 -1
  176. package/dist/render/lib/document/blocks/general/TitleWithButtons/render.js +1 -1
  177. package/dist/render/lib/document/blocks/general/section-head-looks.d.ts +2 -0
  178. package/dist/render/lib/document/blocks/general/section-head-looks.js +2 -2
  179. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
  180. package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.js +1 -1
  181. package/dist/render/lib/document/blocks/general/section-to-box-rows-editorial.js +1 -1
  182. package/dist/render/lib/document/blocks/general/section-to-box-rows-head.d.ts +2 -2
  183. package/dist/render/lib/document/blocks/general/section-to-box-rows-head.js +1 -1
  184. package/dist/render/lib/document/blocks/general/section-to-box-rows-locations.js +1 -1
  185. package/dist/render/lib/document/blocks/general/section-to-box-rows-pageheader.js +1 -1
  186. package/dist/render/lib/document/blocks/general/section-to-box-rows-stats.js +1 -1
  187. package/dist/render/lib/document/blocks/general/section-to-box-rows-tabbar.d.ts +3 -0
  188. package/dist/render/lib/document/blocks/general/section-to-box-rows-tabbar.js +1 -0
  189. package/dist/render/lib/document/blocks/general/section-to-box-rows-timeline.js +2 -2
  190. package/dist/render/lib/document/blocks/general/section-to-box-rows.d.ts +3 -0
  191. package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
  192. package/dist/render/lib/document/card-press-titles.d.ts +10 -0
  193. package/dist/render/lib/document/card-press-titles.js +1 -0
  194. package/dist/render/lib/document/part-styles.d.ts +1 -0
  195. package/dist/render/lib/document/passes/section-animation.js +1 -1
  196. package/dist/render/lib/document/passes/section-height.js +1 -1
  197. package/dist/render/lib/document/passes/section-padding.js +1 -1
  198. package/dist/render/lib/document/passes/section-sticky.js +1 -1
  199. package/dist/render/lib/document/published-passes.js +1 -1
  200. package/dist/render/lib/document/slot-specs.js +1 -1
  201. package/dist/render/lib/sections/section-to-box.d.ts +0 -15
  202. package/dist/render/lib/sections/section-to-box.js +1 -1
  203. package/dist/render/lib/site-runtime.d.ts +4 -1
  204. package/dist/render/lib/site-runtime.js +1 -1
  205. package/dist/render/lib/text-styles/site-text-styles.js +2 -2
  206. package/package.json +5 -5
  207. package/dist/editor/components/TemplateFieldRow.d.ts +0 -11
  208. package/dist/editor/components/TemplateFieldRow.js +0 -1
  209. package/dist/editor/lib/document/panel-heading-scope.d.ts +0 -8
  210. package/dist/editor/lib/document/panel-heading-scope.js +0 -1
  211. package/dist/editor/lib/document/template-field.d.ts +0 -13
  212. package/dist/editor/lib/document/template-field.js +0 -1
  213. package/dist/format/lib/canvas-accent.d.ts +0 -1
  214. package/dist/format/lib/canvas-accent.js +0 -1
  215. package/dist/format/lib/source-rules/padding-units-declared.d.ts +0 -2
  216. package/dist/format/lib/source-rules/padding-units-declared.js +0 -6
@@ -1,4 +1,5 @@
1
1
  import type { CSSProperties } from "react";
2
+ import { type SiteSide } from "efficient-easel/screen/lib/content/length-units";
2
3
  export declare const SECTION_PADDING: {
3
4
  readonly min: 10;
4
5
  readonly max: 200;
@@ -25,6 +26,7 @@ export declare function sectionPadAttrs(v: PadValues): {
25
26
  className: string;
26
27
  style: CSSProperties;
27
28
  } | null;
29
+ export declare const padSideValue: (v: unknown) => number | SiteSide | undefined;
28
30
  export type PadSides = {
29
31
  top?: unknown;
30
32
  right?: unknown;
@@ -37,11 +39,11 @@ export type PadUnits = {
37
39
  tablet?: unknown;
38
40
  phone?: unknown;
39
41
  };
40
- export declare function sideViewLengths(desktop: number | undefined, tablet: number | undefined, phone: number | undefined, units?: PadUnits, frame?: number): {
42
+ export declare function sideViewLengths(desktop: number | SiteSide | undefined, tablet: number | SiteSide | undefined, phone: number | SiteSide | undefined, units?: PadUnits, frame?: number): {
41
43
  tablet?: string;
42
44
  phone?: string;
43
45
  };
44
- export declare function padSideAttrs(inline: PadSides, phone: PadSides, tablet?: PadSides, desktop?: PadSides, units?: PadUnits, frame?: number): {
46
+ export declare function padSideAttrs(inline: PadSides, phone: PadSides, tablet?: PadSides, desktop?: PadSides, units?: PadUnits, frame?: number, sideSpace?: "box" | "site"): {
45
47
  classes: string[];
46
48
  style: CSSProperties;
47
49
  };
@@ -76,6 +78,7 @@ export type PadValues = {
76
78
  unitTablet?: unknown;
77
79
  unitPhone?: unknown;
78
80
  frame?: number;
81
+ sideSpace?: "box" | "site";
79
82
  };
80
83
  export declare const SECTION_PAD_KEYS: {
81
84
  readonly top: "sectionPaddingTop";
@@ -1 +1 @@
1
- import{phoneKey as h,resolveViewValue as B,tabletKey as m}from"efficient-easel/draw";import{SECTION_PAD_UNIT_KEY as N,convertLength as R,isLengthUnit as E,sideLengthAt as C,withLength as g}from"efficient-easel/screen/lib/content/length-units";import{viewRules as V}from"../../../format/lib/content/view-overrides.js";import{finiteNumber as a}from"../../../format/lib/finite-number.js";const H={min:10,max:200,step:10};function I(t,e,n,o=0){const s=a(t),i=a(e);if(s===void 0&&i===void 0)return;const c=A(n),p=d=>d===void 0?void 0:c==="px"?d:g(d,c,o);return{paddingTop:p(s),paddingBottom:p(i)}}const A=t=>E(t)?t:"px",w="sf-pad-top-phone",F="sf-pad-bottom-phone",G="--sf-pad-t-phone",M="--sf-pad-b-phone",$="sf-pad-left-phone",y="sf-pad-right-phone",j="--sf-pad-l-phone",U="--sf-pad-r-phone",Y="sf-pad-top-tablet",k="sf-pad-bottom-tablet",q="sf-pad-left-tablet",z="sf-pad-right-tablet",J="--sf-pad-t-tablet",Q="--sf-pad-b-tablet",W="--sf-pad-l-tablet",X="--sf-pad-r-tablet";function O(t){const e={desktop:t.unit,tablet:t.unitTablet,phone:t.unitPhone},n=I(t.top,t.bottom,t.unit,t.frame),o=v({left:t.left,right:t.right},{top:t.topPhone,bottom:t.bottomPhone,left:t.leftPhone,right:t.rightPhone},{top:t.topTablet,bottom:t.bottomTablet,left:t.leftTablet,right:t.rightTablet},{top:t.top,bottom:t.bottom,left:t.left,right:t.right},e,t.frame);return n===void 0&&!o.classes.length&&!Object.keys(o.style).length?null:{className:["sf-section-pad",...o.classes].join(" "),style:{...n,...o.style}}}const Z=[["top","paddingTop",[Y,J],[w,G]],["bottom","paddingBottom",[k,Q],[F,M]],["left","paddingLeft",[q,W],[$,j]],["right","paddingRight",[z,X],[y,U]]];function st(t,e,n){return!E(e)||e==="px"?t:R(t,"px",e,n,{min:0,max:H.max,step:1})}function K(t,e,n,o={},s=0){const i=(l,f)=>{if(f==="px")return`${l}px`;const b=g(l,f,s);return typeof b=="number"?`${b}px`:b},c={n:t,[m("n")]:e,[h("n")]:n,u:o.desktop,[m("u")]:o.tablet,[h("u")]:o.phone},p=B("spacing",t,e,n,V()),d=(l,f,b)=>{const P=C(c,{side:"n"},"u",l,"side");if(!P)return;const x=f!==null&&!b&&P.unit==="px"&&typeof p[f]=="number";return i(x?p[f]:P.value,P.unit)},r=d("desktop",null,!0),_={},T=d("tablet","tablet",e!==void 0);T!==void 0&&(e!==void 0||T!==r)&&(_.tablet=T);const u=d("mobile","phone",n!==void 0);return u!==void 0&&(n!==void 0||u!==r)&&(_.phone=u),_}function v(t,e,n={},o=t,s={},i=0){const c={},p={},d=[];for(const[r,_,...T]of Z){const u=a(t[r]),l=r==="top"||r==="bottom"?i:0;u!==void 0&&(c[_]=A(s.desktop)==="px"?u:g(u,A(s.desktop),l));const f=K(a(o[r]),a(n[r]),a(e[r]),s,l);for(const[b,[P,x]]of[["tablet",T[0]],["phone",T[1]]]){const L=f[b];L!==void 0&&(d.push(P),p[x]=L)}}return{classes:d,style:{...c,...p}}}function S(t,e,n){const o=a(t)??n,s=a(e);return o===void 0?s:s===void 0?o:o+s}function it(t,e={}){return{top:S(t.padTop,t.sectionPaddingTop,e.top),bottom:S(t.padBottom,t.sectionPaddingBottom,e.bottom)}}const D={top:"sectionPaddingTop",bottom:"sectionPaddingBottom",left:"sectionPaddingLeft",right:"sectionPaddingRight"};function dt(t,e=D,n=!0,o=e===D?N:void 0){const s={};o&&(t[o]!==void 0&&(s.unit=t[o]),t[m(o)]!==void 0&&(s.unitTablet=t[m(o)]),t[h(o)]!==void 0&&(s.unitPhone=t[h(o)]));for(const i of n?["top","bottom","left","right"]:["top","bottom"])s[i]=t[e[i]],s[`${i}Tablet`]=t[m(e[i])],s[`${i}Phone`]=t[h(e[i])];return s}function rt(t){return O(t)}function pt(t,e){const n=(o,s)=>typeof o!="number"?void 0:A(s)==="px"?o+e:o;return O({...t,frame:e,top:n(t.top,t.unit),bottom:n(t.bottom,t.unit),topTablet:n(t.topTablet,t.unitTablet),bottomTablet:n(t.bottomTablet,t.unitTablet),topPhone:n(t.topPhone,t.unitPhone),bottomPhone:n(t.bottomPhone,t.unitPhone)})}export{F as PAD_BOTTOM_PHONE_CLASS,M as PAD_BOTTOM_PHONE_VAR,k as PAD_BOTTOM_TABLET_CLASS,Q as PAD_BOTTOM_TABLET_VAR,$ as PAD_LEFT_PHONE_CLASS,j as PAD_LEFT_PHONE_VAR,q as PAD_LEFT_TABLET_CLASS,W as PAD_LEFT_TABLET_VAR,y as PAD_RIGHT_PHONE_CLASS,U as PAD_RIGHT_PHONE_VAR,z as PAD_RIGHT_TABLET_CLASS,X as PAD_RIGHT_TABLET_VAR,w as PAD_TOP_PHONE_CLASS,G as PAD_TOP_PHONE_VAR,Y as PAD_TOP_TABLET_CLASS,J as PAD_TOP_TABLET_VAR,H as SECTION_PADDING,D as SECTION_PAD_KEYS,st as padDefaultIn,v as padSideAttrs,dt as padValuesOf,it as resolveSectionPadding,pt as rootPadAttrs,O as sectionPadAttrs,I as sectionPadStyle,K as sideViewLengths,rt as wrapperPadAttrs};
1
+ import{phoneKey as m,resolveViewValue as H,tabletKey as h}from"efficient-easel/draw";import{SECTION_PAD_UNIT_KEY as w,SITE_SIDE as F,convertLength as G,isLengthUnit as E,isSiteSide as L,sideLengthAt as M,sideValueAt as $,withLength as S}from"efficient-easel/screen/lib/content/length-units";import{siteSideRoom as O}from"../../../format/lib/content/page-width.js";import{viewRules as y}from"../../../format/lib/content/view-overrides.js";import{finiteNumber as c}from"../../../format/lib/finite-number.js";const j={min:10,max:200,step:10};function U(t,o,n,e=0){const s=c(t),i=c(o);if(s===void 0&&i===void 0)return;const b=x(n),a=r=>r===void 0?void 0:b==="px"?r:S(r,b,e);return{paddingTop:a(s),paddingBottom:a(i)}}const x=t=>E(t)?t:"px",Y="sf-pad-top-phone",k="sf-pad-bottom-phone",q="--sf-pad-t-phone",z="--sf-pad-b-phone",J="sf-pad-left-phone",Q="sf-pad-right-phone",W="--sf-pad-l-phone",X="--sf-pad-r-phone",Z="sf-pad-top-tablet",K="sf-pad-bottom-tablet",v="sf-pad-left-tablet",tt="sf-pad-right-tablet",et="--sf-pad-t-tablet",ot="--sf-pad-b-tablet",nt="--sf-pad-l-tablet",st="--sf-pad-r-tablet";function D(t){const o={desktop:t.unit,tablet:t.unitTablet,phone:t.unitPhone},n=U(t.top,t.bottom,t.unit,t.frame),e=pt({left:t.left,right:t.right},{top:t.topPhone,bottom:t.bottomPhone,left:t.leftPhone,right:t.rightPhone},{top:t.topTablet,bottom:t.bottomTablet,left:t.leftTablet,right:t.rightTablet},{top:t.top,bottom:t.bottom,left:t.left,right:t.right},o,t.frame,t.sideSpace);return n===void 0&&!e.classes.length&&!Object.keys(e.style).length?null:{className:["sf-section-pad",...e.classes].join(" "),style:{...n,...e.style}}}const it=t=>L(t)?t:c(t),dt=[["top","paddingTop",[Z,et],[Y,q]],["bottom","paddingBottom",[K,ot],[k,z]],["left","paddingLeft",[v,nt],[J,W]],["right","paddingRight",[tt,st],[Q,X]]];function bt(t,o,n){return!E(o)||o==="px"?t:G(t,"px",o,n,{min:0,max:j.max,step:1})}function rt(t,o,n,e={},s=0){const i=(l,f)=>{if(f==="px")return`${l}px`;const p=S(l,f,s);return typeof p=="number"?`${p}px`:p},b={n:t,[h("n")]:o,[m("n")]:n,u:e.desktop,[h("u")]:e.tablet,[m("u")]:e.phone},a=H("spacing",c(t),c(o),c(n),y()),r=(l,f,p)=>{if($(b,{side:"n"},l,"side",["side"])?.value===F)return O().value;const u=M(b,{side:"n"},"u",l,"side");if(!u)return;const A=f!==null&&!p&&u.unit==="px"&&typeof a[f]=="number";return i(A?a[f]:u.value,u.unit)},_=r("desktop",null,!0),T={},P=r("tablet","tablet",o!==void 0);P!==void 0&&(o!==void 0||P!==_)&&(T.tablet=P);const d=r("mobile","phone",n!==void 0);return d!==void 0&&(n!==void 0||d!==_)&&(T.phone=d),T}function pt(t,o,n={},e=t,s={},i=0,b="box"){const a={},r={},_=[],T=O(b);let P=!1;for(const[d,l,...f]of dt){const p=d==="left"||d==="right"?it:c,u=p(t[d]),A=d==="top"||d==="bottom"?i:0;L(u)?(a[l]=T.value,P=!0):u!==void 0&&(a[l]=x(s.desktop)==="px"?u:S(u,x(s.desktop),A));const R=rt(p(e[d]),p(n[d]),p(o[d]),s,A);for(const[V,[C,I]]of[["tablet",f[0]],["phone",f[1]]]){const g=R[V];g!==void 0&&(_.push(C),r[I]=g,g===T.value&&(P=!0))}}return P&&_.push(...T.className.split(" ")),{classes:_,style:{...a,...r}}}function B(t,o,n){const e=c(t)??n,s=c(o);return e===void 0?s:s===void 0?e:e+s}function Tt(t,o={}){return{top:B(t.padTop,t.sectionPaddingTop,o.top),bottom:B(t.padBottom,t.sectionPaddingBottom,o.bottom)}}const N={top:"sectionPaddingTop",bottom:"sectionPaddingBottom",left:"sectionPaddingLeft",right:"sectionPaddingRight"};function Pt(t,o=N,n=!0,e=o===N?w:void 0){const s={};e&&(t[e]!==void 0&&(s.unit=t[e]),t[h(e)]!==void 0&&(s.unitTablet=t[h(e)]),t[m(e)]!==void 0&&(s.unitPhone=t[m(e)]));for(const i of n?["top","bottom","left","right"]:["top","bottom"])s[i]=t[o[i]],s[`${i}Tablet`]=t[h(o[i])],s[`${i}Phone`]=t[m(o[i])];return s}function _t(t){return D(t)}function mt(t,o){const n=(e,s)=>typeof e!="number"?void 0:x(s)==="px"?e+o:e;return D({...t,frame:o,top:n(t.top,t.unit),bottom:n(t.bottom,t.unit),topTablet:n(t.topTablet,t.unitTablet),bottomTablet:n(t.bottomTablet,t.unitTablet),topPhone:n(t.topPhone,t.unitPhone),bottomPhone:n(t.bottomPhone,t.unitPhone)})}export{k as PAD_BOTTOM_PHONE_CLASS,z as PAD_BOTTOM_PHONE_VAR,K as PAD_BOTTOM_TABLET_CLASS,ot as PAD_BOTTOM_TABLET_VAR,J as PAD_LEFT_PHONE_CLASS,W as PAD_LEFT_PHONE_VAR,v as PAD_LEFT_TABLET_CLASS,nt as PAD_LEFT_TABLET_VAR,Q as PAD_RIGHT_PHONE_CLASS,X as PAD_RIGHT_PHONE_VAR,tt as PAD_RIGHT_TABLET_CLASS,st as PAD_RIGHT_TABLET_VAR,Y as PAD_TOP_PHONE_CLASS,q as PAD_TOP_PHONE_VAR,Z as PAD_TOP_TABLET_CLASS,et as PAD_TOP_TABLET_VAR,j as SECTION_PADDING,N as SECTION_PAD_KEYS,bt as padDefaultIn,pt as padSideAttrs,it as padSideValue,Pt as padValuesOf,Tt as resolveSectionPadding,mt as rootPadAttrs,D as sectionPadAttrs,U as sectionPadStyle,rt as sideViewLengths,_t as wrapperPadAttrs};
@@ -1,6 +1,7 @@
1
1
  import type { MapPin } from "efficient-shell/map";
2
2
  import { type ListPosition } from "../../format/lib/content/list-position.js";
3
- export type FootprintSource = "typed" | "dealers";
3
+ import { type BlockSourceSpec } from "../../format/lib/content/block-sources.js";
4
+ import type { CardRowFieldSpec } from "../../format/lib/content/card-template.js";
4
5
  export type DealerListPosition = ListPosition;
5
6
  export type DealerPlacement = "located" | "approximate" | "pending" | "not_found" | "failed" | "no_address";
6
7
  export interface SiteDealer {
@@ -29,7 +30,10 @@ export type DealerSource = (query: {
29
30
  }) => Promise<DealerList>;
30
31
  export declare const DealerSourceProvider: import("react").Provider<DealerSource | null>;
31
32
  export declare const useDealerSource: () => DealerSource | null;
32
- export declare function parseFootprintSource(value: unknown): FootprintSource;
33
33
  export declare const parseDealerListPosition: (value: unknown) => DealerListPosition;
34
34
  export declare function dealerPins(dealers: SiteDealer[]): MapPin[];
35
35
  export declare function dealerDistanceLabel(km: number | null): string;
36
+ export declare function dealerCardRow(dealer: SiteDealer, showDistance: boolean): Record<string, string>;
37
+ export declare const DEALER_FIELDS: readonly CardRowFieldSpec[];
38
+ export declare const DEALERS_BLOCK_SOURCE: BlockSourceSpec;
39
+ export declare function dealerPressLabel(dealer: SiteDealer): string;
@@ -1 +1 @@
1
- "use client";import{createContext as r,useContext as i}from"react";import{parseListPosition as l}from"../../format/lib/content/list-position.js";const n=r(null),c=n.Provider,u=()=>i(n),a=["typed","dealers"];function d(e){return a.includes(e)?e:"typed"}const x=l;function m(e){const o=[];for(const t of e)t.placement!=="located"&&t.placement!=="approximate"||t.lat===null||t.lng===null||o.push({key:t.id,label:t.name,lat:t.lat,lng:t.lng,glyph:"",tone:"",approximate:t.placement==="approximate"});return o}function f(e){return e===null||!Number.isFinite(e)?"":e<10?`${e.toFixed(1)} km`:`${Math.round(e)} km`}export{c as DealerSourceProvider,f as dealerDistanceLabel,m as dealerPins,x as parseDealerListPosition,d as parseFootprintSource,u as useDealerSource};
1
+ "use client";import{createContext as i,useContext as l}from"react";import{parseListPosition as r}from"../../format/lib/content/list-position.js";import{DEALERS_SOURCE as s}from"../../format/lib/content/block-sources.js";const o=i(null),f=o.Provider,m=()=>l(o),d=r;function x(e){const n=[];for(const t of e)t.placement!=="located"&&t.placement!=="approximate"||t.lat===null||t.lng===null||n.push({key:t.id,label:t.name,lat:t.lat,lng:t.lng,glyph:"",tone:"",approximate:t.placement==="approximate"});return n}function a(e){return e===null||!Number.isFinite(e)?"":e<10?`${e.toFixed(1)} km`:`${Math.round(e)} km`}function k(e,n){const t=[e.city,[e.state,e.postcode].filter(Boolean).join(" ")].filter(Boolean).join(" ");return{name:e.name,address:e.address,place:t,distance:n?a(e.distanceKm):"",phone:e.phone,phoneHref:e.phone?`tel:${e.phone.replace(/[^\d+]/g,"")}`:"",website:e.website.replace(/^https?:\/\//,"").replace(/\/$/,""),websiteHref:e.website&&!/^[a-z][a-z\d+.-]*:/i.test(e.website)?`https://${e.website}`:e.website}}const p=[{key:"name",label:"Dealer name",plain:!0},{key:"address",label:"Address"},{key:"place",label:"City · state · postcode",plain:!0},{key:"distance",label:"Distance",plain:!0},{key:"phone",label:"Phone"},{key:"phoneHref",label:"Phone link",kind:"link"},{key:"website",label:"Website",plain:!0},{key:"websiteHref",label:"Website link",kind:"link"}],h={key:s,label:"Dealers",blocks:["Footprint"],fields:p};function y(e){return[e.name,e.city].filter(Boolean).join(", ")}export{h as DEALERS_BLOCK_SOURCE,p as DEALER_FIELDS,f as DealerSourceProvider,k as dealerCardRow,a as dealerDistanceLabel,x as dealerPins,y as dealerPressLabel,d as parseDealerListPosition,m as useDealerSource};
@@ -1 +1 @@
1
- import{jsx as s}from"react/jsx-runtime";import d from"../../../../../components/Banner.js";import{phHide as r,ctaHide as x}from"../../scaffold.js";import{BannerMeta as l}from"../../../../../../format/lib/document/blocks/general/Banner/meta.js";const u={...l,render:({eyebrow:o,title:a,body:i,imageSrc:m,ctaText:p,ctaHref:c,contained:f,overlay:n,editor:e})=>{const t=x(p,c,e);return s(d,{eyebrow:r(o,"Limited release",e),title:r(a,"Banner headline",e),body:r(i,"A line or two of supporting copy.",e),imageSrc:m,overlay:typeof n=="number"?n:60,ctaText:t.text,ctaHref:t.href,contained:f})}};export{u as BannerRender};
1
+ import{jsx as s}from"react/jsx-runtime";import x from"../../../../../components/Banner.js";import{phHide as r,ctaHide as y}from"../../scaffold.js";import{BannerMeta as d,BANNER_PH as t}from"../../../../../../format/lib/document/blocks/general/Banner/meta.js";const l={...d,render:({eyebrow:a,title:m,body:c,imageSrc:f,ctaText:i,ctaHref:p,contained:b,overlay:n,editor:e})=>{const o=y(i,p,e);return s(x,{eyebrow:r(a,t.eyebrow,e),title:r(m,t.title,e),body:r(c,t.body,e),imageSrc:f,overlay:typeof n=="number"?n:60,ctaText:o.text,ctaHref:o.href,contained:b})}};export{l as BannerRender};
@@ -1 +1 @@
1
- import{jsx as p}from"react/jsx-runtime";import{HideTaker as T}from"../../../../../components/ViewHideRoot.js";import{CardTemplateRows as S,useCardRow as k}from"../../../../../components/CardRowContext.js";import{BOX_ITEMS_ATTR as A}from"../../../../../../format/lib/content/box-layout.js";import{cardItemAction as C,highlightOf as g,keyedRows as L,markedRows as _,rowHoldsContent as j}from"../../../../../../format/lib/content/card-state.js";import{CARD_LIST_ROWS as I,CARD_LIST_TYPE as R,cardListFieldsOf as b,cardListShows as E,cardRow as w,rowFieldSpec as O}from"../../../../../../format/lib/content/card-template.js";import{declaredBlockSource as B,sourceChoices as M,sourcedRows as x}from"../../../../../../format/lib/content/block-sources.js";import{CardListMeta as D}from"../../../../../../format/lib/document/blocks/general/CardList/meta.js";function h(t){const s=t&&typeof t=="object"?t.state:void 0;return s&&typeof s=="object"?s:void 0}const y=[{}];function v(t,s){const l=B(t);let n,f=[];if(l){const e=x(t,s);n=[...e.rows],e.sample&&(f=M(l))}else{const e=t[I];n=Array.isArray(e)?e:[]}const a=L(n.map(w),f),o=n.map((e,i)=>({item:e,row:a[i]})).filter(({item:e})=>s||j(e)),d=_(o.map(e=>e.row),g(t));return{items:o.map(e=>e.item),rows:d.rows,states:o.map(({item:e},i)=>{const c={...h(e),...d.states[i]};return Object.keys(c).length?c:void 0})}}function F({id:t,own:s,Template:l,editing:n,dragRef:f}){const a=k();let o,d,e,i;if(a){const r=E(s,a.ownerType,a.slot);i=O(a,r)?.fields;const m=r&&a.item&&typeof a.item=="object"?a.item[r]:void 0,u=Array.isArray(m)?m:[];o=u.length?u:n?y:u,d=o.map(w),e=o.map(h)}else{const r=v(s,n);i=b(null,{type:R,props:s});const m=!r.items.length&&n;o=m?y:r.items,d=m?y.map(w):r.rows,e=m?[]:r.states}if(!o.length)return null;const c=n?[]:o.map(C);return p(S,{ownerId:t,ownerType:R,Template:l,rows:d,items:o,fields:i?.length?i:void 0,states:e.some(Boolean)?e:void 0,actions:c.some(Boolean)?c:void 0,fallback:null,children:r=>p(T,{ref:f,className:"contents",[A]:"",children:r})})}const G={...D,render:t=>p(F,{id:String(t.id??""),own:t,Template:t.template,editing:t.editor?.isEditing===!0,dragRef:t.editor?.dragRef??void 0})};export{G as CardListRender};
1
+ import{jsx as u}from"react/jsx-runtime";import{HideTaker as h}from"../../../../../components/ViewHideRoot.js";import{CardTemplateRows as S,useCardRow as A}from"../../../../../components/CardRowContext.js";import{BOX_ITEMS_ATTR as k}from"../../../../../../format/lib/content/box-layout.js";import{cardItemAction as C,highlightOf as L,keyedRows as _,markedRows as g,rowHoldsContent as E}from"../../../../../../format/lib/content/card-state.js";import{CARD_LIST_ROWS as O,CARD_LIST_TYPE as y,CARD_TEMPLATE_SLOT as j,cardListFieldsOf as I,cardListShows as b,cardRow as w,rowFieldSpec as M}from"../../../../../../format/lib/content/card-template.js";import{declaredBlockSource as B,sourceChoices as D,sourcedRows as P}from"../../../../../../format/lib/content/block-sources.js";import{cardPressTitlesOf as x}from"../../../card-press-titles.js";import{CardListMeta as v}from"../../../../../../format/lib/document/blocks/general/CardList/meta.js";function R(t){const s=t&&typeof t=="object"?t.state:void 0;return s&&typeof s=="object"?s:void 0}const T=[{}];function F(t,s){const c=B(t);let n,f=[];if(c){const e=P(t,s);n=[...e.rows],e.sample&&(f=D(c))}else{const e=t[O];n=Array.isArray(e)?e:[]}const a=_(n.map(w),f),o=n.map((e,i)=>({item:e,row:a[i]})).filter(({item:e})=>s||E(e)),d=g(o.map(e=>e.row),L(t));return{items:o.map(e=>e.item),rows:d.rows,states:o.map(({item:e},i)=>{const l={...R(e),...d.states[i]};return Object.keys(l).length?l:void 0})}}function H({id:t,own:s,Template:c,editing:n,dragRef:f}){const a=A();let o,d,e,i;if(a){const r=b(s,a.ownerType,a.slot);i=M(a,r)?.fields;const m=r&&a.item&&typeof a.item=="object"?a.item[r]:void 0,p=Array.isArray(m)?m:[];o=p.length?p:n?T:p,d=o.map(w),e=o.map(R)}else{const r=F(s,n);i=I(null,{type:y,props:s});const m=!r.items.length&&n;o=m?T:r.items,d=m?T.map(w):r.rows,e=m?[]:r.states}if(!o.length)return null;const l=n?[]:o.map(C);return u(S,{ownerId:t,ownerType:y,Template:c,rows:d,items:o,fields:i?.length?i:void 0,states:e.some(Boolean)?e:void 0,actions:l.some(Boolean)?l:void 0,pressTitles:x(s,j),fallback:null,children:r=>u(h,{ref:f,className:"contents",[k]:"",children:r})})}const Q={...v,render:t=>u(H,{id:String(t.id??""),own:t,Template:t.template,editing:t.editor?.isEditing===!0,dragRef:t.editor?.dragRef??void 0})};export{Q as CardListRender};
@@ -1 +1 @@
1
- import{jsx as f}from"react/jsx-runtime";import u from"../../../../../components/Footprint.js";import{FOOTPRINT_DEFAULTS as l,footprintOfficeOfRow as h}from"../../../../../../format/lib/content/footprint.js";import{declaredBlockSource as d,sourcedRows as y}from"../../../../../../format/lib/content/block-sources.js";import{parseDealerListPosition as g,parseFootprintSource as T}from"../../../../dealer-source.js";import{hidableText as c}from"efficient-easel/draw";import{parseSectionHeadPlacement as S}from"../../../../../../format/lib/sections/section-head-placement.js";import{phRows as w,phHide as n}from"../../scaffold.js";import{say as t}from"../../../../../../format/lib/editor-words.js";import{FootprintMeta as O,FOOTPRINT_PH as a}from"../../../../../../format/lib/document/blocks/general/Footprint/meta.js";const x=()=>[{role:t("Headquarters"),city:t("City"),country:t("Country"),address:t("Street address"),lat:0,lng:0,hq:!0},{role:t("Office"),city:t("City"),country:t("Country"),address:t("Street address"),lat:0,lng:0,hq:!1}],C=()=>[{role:t("Headquarters"),city:t("City"),country:t("Country"),address:t("Street address"),hq:"true"},{role:t("Office"),city:t("City"),country:t("Country"),address:t("Street address")}];function H(e){const o=()=>w(e.offices,x(),e.editor);if(!d(e))return o();const i=e.editor?.isEditing===!0,r=y(e,i,C());return!r.sample&&!r.rows.length?o():r.rows.map(h)}const M={...O,render:e=>{const o=S(e.headPlacement)==="own-box",i=m=>o?void 0:m,r=H(e),s=d(e)?"typed":T(e.source);return f(u,{sectionNumber:i(n(e.sectionNumber,a.sectionNumber,e.editor)),heading:i(n(e.heading,a.heading,e.editor)),tagline:i(n(e.tagline,a.tagline,e.editor)),omitHead:o,offices:r,mapTheme:e.mapTheme??l.mapTheme,padTop:o?0:typeof e.padTop=="number"?e.padTop:120,padBottom:typeof e.padBottom=="number"?e.padBottom:120,editing:e.editor?.isEditing,source:s,search:e.search===!0,searchHint:c(e.searchHint),noMatchText:c(e.noMatchText),listPosition:g(e.listPosition),showDistance:e.showDistance!==!1,template:e.template,ownerId:String(e.id??"")})}};export{M as FootprintRender};
1
+ import{jsx as f}from"react/jsx-runtime";import l from"../../../../../components/Footprint.js";import{FOOTPRINT_DEFAULTS as u,footprintOfficeOfRow as h}from"../../../../../../format/lib/content/footprint.js";import{DEALERS_SOURCE as c,declaredBlockSource as s,sourcedRows as y}from"../../../../../../format/lib/content/block-sources.js";import{parseDealerListPosition as T}from"../../../../dealer-source.js";import{hidableText as m}from"efficient-easel/draw";import{parseSectionHeadPlacement as g}from"../../../../../../format/lib/sections/section-head-placement.js";import{phRows as S,phHide as a}from"../../scaffold.js";import{say as t}from"../../../../../../format/lib/editor-words.js";import{CARD_TEMPLATE_SLOT as O}from"../../../../../../format/lib/content/card-template.js";import{cardPressTitlesOf as w}from"../../../card-press-titles.js";import{FootprintMeta as C,FOOTPRINT_PH as d}from"../../../../../../format/lib/document/blocks/general/Footprint/meta.js";const P=()=>[{role:t("Headquarters"),city:t("City"),country:t("Country"),address:t("Street address"),lat:0,lng:0,hq:!0},{role:t("Office"),city:t("City"),country:t("Country"),address:t("Street address"),lat:0,lng:0,hq:!1}],R=()=>[{role:t("Headquarters"),city:t("City"),country:t("Country"),address:t("Street address"),hq:"true"},{role:t("Office"),city:t("City"),country:t("Country"),address:t("Street address")}];function x(e){const o=()=>S(e.offices,P(),e.editor),i=s(e);if(!i||i===c)return o();const n=e.editor?.isEditing===!0,r=y(e,n,R());return!r.sample&&!r.rows.length?o():r.rows.map(h)}const I={...C,render:e=>{const o=g(e.headPlacement)==="own-box",i=r=>o?void 0:r,n=x(e);return f(l,{sectionNumber:i(a(e.sectionNumber,d.sectionNumber,e.editor)),heading:i(a(e.heading,d.heading,e.editor)),tagline:i(a(e.tagline,d.tagline,e.editor)),omitHead:o,offices:n,mapTheme:e.mapTheme??u.mapTheme,padTop:o?0:typeof e.padTop=="number"?e.padTop:120,padBottom:typeof e.padBottom=="number"?e.padBottom:120,editing:e.editor?.isEditing,dealers:s(e)===c,search:e.search===!0,searchHint:m(e.searchHint),noMatchText:m(e.noMatchText),listPosition:T(e.listPosition),showDistance:e.showDistance!==!1,template:e.template,ownerId:String(e.id??""),pressTitles:w(e,O)})}};export{I as FootprintRender};
@@ -1 +1 @@
1
- import{jsx as u}from"react/jsx-runtime";import{phoneKey as y}from"efficient-easel/draw";import{CardRowDrawn as p}from"../../../../../components/CardRowContext.js";import v from"../../../../../components/ImageBlock.js";import{recordPictureAlt as I}from"../../../../../../format/lib/content/record-row.js";import{namedRowField as x,rowFieldSpec as B,rowFieldText as k}from"../../../../../../format/lib/content/card-template.js";import{cardRowHoverMedia as b}from"../../../../../../format/lib/content/hover-media.js";import{blockSizeOf as F,blockSizeValuesOf as O}from"../../../../content/block-size.js";import{padValuesOf as R}from"../../../../content/section-padding.js";import{pictureHoverOf as z}from"../../../../../../format/lib/animation/hover.js";import{viewFocusValues as H}from"../../../../../../format/lib/content/picture-focus-rows.js";import{ImageBlockMeta as P}from"../../../../../../format/lib/document/blocks/general/ImageBlock/meta.js";const J={...P,render:e=>{const r=z(e,"ImageBlock"),o=x(e);return!o&&r.kind!=="nextImage"?g(e,e.src,e.alt,r):u(p,{type:"ImageBlock",props:e,children:(l,t,n)=>{const m=o?B(t,o):null,a=o?t?m?.alt:I(o):null,d=o?l.src:e.src,c=(a&&k(n,a))??e.alt,i=r.media?b(t,r.media):null,f=k(n,"name")??(typeof c=="string"?c:"");return g(e,d,c,r,i&&r.media?{media:i,name:f,cover:r.media.cover}:null)}})}};function g(e,r,o,l,t=null){const{aspect:n,contained:m,grayscale:a,darken:d,darkenStyle:c,href:i,fit:f,corners:w,cornerSides:S,editor:h}=e,s=H(e,"focal");return u(v,{src:r,alt:o,aspect:n,aspectPhone:e[y("aspect")],contained:m,grayscale:a,darken:d,darkenStyle:c,pictureHover:l,...t?{hoverLayer:t}:{},href:i,fit:f,focal:s.desktop,focalPhone:s.phone,focalTablet:s.tablet,corners:w,cornerSides:S,pad:R(e),ownSize:F(O(e))!==null,editing:h?.isEditing===!0})}export{J as ImageBlockRender};
1
+ import{jsx as g}from"react/jsx-runtime";import{phoneKey as I}from"efficient-easel/draw";import{CardRowDrawn as R}from"../../../../../components/CardRowContext.js";import v from"../../../../../components/ImageBlock.js";import{recordPictureAlt as O}from"../../../../../../format/lib/content/record-row.js";import{CARD_ROW_LINK_PROP as x,namedRowField as h,rowFieldSpec as B,rowFieldText as S}from"../../../../../../format/lib/content/card-template.js";import{cardRowHoverMedia as P}from"../../../../../../format/lib/content/hover-media.js";import{blockSizeOf as b,blockSizeValuesOf as F}from"../../../../content/block-size.js";import{padValuesOf as _}from"../../../../content/section-padding.js";import{pictureHoverOf as z}from"../../../../../../format/lib/animation/hover.js";import{viewFocusValues as H}from"../../../../../../format/lib/content/picture-focus-rows.js";import{ImageBlockMeta as K}from"../../../../../../format/lib/document/blocks/general/ImageBlock/meta.js";const G={...K,render:e=>{const r=z(e,"ImageBlock"),o=h(e),a=h(e,x);return!o&&!a&&r.kind!=="nextImage"?w(e,e.src,e.alt,r):g(R,{type:"ImageBlock",props:e,children:(t,c,i)=>{const d=o?B(c,o):null,l=o?c?d?.alt:O(o):null,f=o?t.src:e.src,n=(l&&S(i,l))??e.alt,m=r.media?P(c,r.media):null,s=S(i,"name")??(typeof n=="string"?n:""),u=a?t.href:e.href;return w({...e,href:u},f,n,r,m&&r.media?{media:m,name:s,cover:r.media.cover}:null)}})}};function w(e,r,o,a,t=null){const{aspect:c,contained:i,grayscale:d,darken:l,darkenStyle:f,href:n,fit:m,corners:s,cornerSides:u,editor:y}=e,k=H(e,"focal");return g(v,{src:r,alt:o,aspect:c,aspectPhone:e[I("aspect")],contained:i,grayscale:d,darken:l,darkenStyle:f,pictureHover:a,...t?{hoverLayer:t}:{},href:n,fit:m,focal:k.desktop,focalPhone:k.phone,focalTablet:k.tablet,corners:s,cornerSides:u,pad:_(e),ownSize:b(F(e))!==null,editing:y?.isEditing===!0})}export{G as ImageBlockRender};
@@ -1 +1 @@
1
- import{jsx as o}from"react/jsx-runtime";import{HideTaker as y}from"../../../../../components/ViewHideRoot.js";import{resolveWidth as N}from"../../../../../../format/lib/content/section-width.js";import{FRAME as b}from"../../../../../components/BlockFrame.js";import E from"../../../../../components/EditorialSectionHead.js";import{renderGold as G,renderHeadline as R}from"../../../../../components/goldPhrases.js";import l from"../../../../../components/SectionHeader.js";import{hidableText as d}from"efficient-easel/draw";import{parseNaturalDescriptionSize as j,parseNaturalRowGap as z,parseSectionHeadStyle as L}from"../../../../../../format/lib/sections/section-head-style.js";import{parseSectionEyebrowLook as c}from"../../../../../../format/lib/sections/section-eyebrow-look.js";import{phHide as t}from"../../scaffold.js";import{SectionHeaderMeta as M}from"../../../../../../format/lib/document/blocks/general/SectionHeader/meta.js";const K={...M,render:({headStyle:u,num:i,numStyle:f,eyebrowLook:s,title:n,description:p,logoSrc:m,logoAlt:x,linkText:H,linkHref:w,rowGap:h,descriptionSize:k,widthMode:g,editor:e})=>{const S=t(H,"View all",e),v=N({widthMode:g},"full"),r=L(u);return o(y,{as:"section",className:"px-[var(--sf-site-gutter,40px)] pt-10 max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))] max-view-wide:pt-6",children:o("div",{className:v.mode==="page"?b:void 0,children:r==="editorial"?o(E,{num:t(i,"01 / Section",e),title:(()=>{const a=t(n,"Section *title*",e);return a?R(a,!0):void 0})(),desc:(()=>{const a=t(p,"Short supporting line",e);return a?G(a):void 0})(),spaceBelow:""}):r==="simple"?o(l,{look:"simple",num:t(i,"01 / Section",e),title:t(n,"Section *title*",e),eyebrowLook:c(s,"SectionHeader")}):r==="statement"?o(l,{look:"statement",num:t(i,"01 / Section",e),title:t(n,"Section *title*",e),eyebrowLook:c(s,"SectionHeader")}):r==="natural"?o(l,{look:"natural",num:t(i,"01 / Section",e),title:t(n,"Section *title*",e),description:t(p,"Short supporting line",e),eyebrowLook:c(s,"SectionHeader"),rowGap:z(h),descriptionSize:j(k)}):r==="essay"?o(l,{look:"essay",num:t(i,"01 / Section",e),title:t(n,"Section *title*",e),eyebrowLook:c(s,"SectionHeader")}):o(l,{num:t(i,"01 / Section",e),title:t(n,"Section *title*",e),description:t(p,"Short supporting line",e),logo:m?{src:m,alt:d(x)}:void 0,link:S?{text:S,href:d(w)||"#"}:void 0,numStyle:f,accent:!0})})})}};export{K as SectionHeaderRender};
1
+ import{jsx as r}from"react/jsx-runtime";import{HideTaker as N}from"../../../../../components/ViewHideRoot.js";import{resolveWidth as R}from"../../../../../../format/lib/content/section-width.js";import{FRAME as T}from"../../../../../components/BlockFrame.js";import b from"../../../../../components/EditorialSectionHead.js";import{renderGold as g,renderHeadline as G}from"../../../../../components/goldPhrases.js";import s from"../../../../../components/SectionHeader.js";import{hidableText as f}from"efficient-easel/draw";import{parseNaturalDescriptionSize as _,parseNaturalRowGap as j,parseSectionHeadStyle as z}from"../../../../../../format/lib/sections/section-head-style.js";import{parseSectionEyebrowLook as p}from"../../../../../../format/lib/sections/section-eyebrow-look.js";import{phHide as t}from"../../scaffold.js";import{SectionHeaderMeta as A,SECTION_HEADER_PH as n}from"../../../../../../format/lib/document/blocks/general/SectionHeader/meta.js";const K={...A,render:({headStyle:H,num:i,numStyle:S,eyebrowLook:l,title:o,description:c,logoSrc:d,logoAlt:x,linkText:k,linkHref:w,rowGap:h,descriptionSize:v,widthMode:y,editor:e})=>{const u=t(k,n.linkText,e),E=R({widthMode:y},"full"),a=z(H);return r(N,{as:"section",className:"px-[var(--sf-site-gutter,40px)] pt-10 max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))] max-view-wide:pt-6",children:r("div",{className:E.mode==="page"?T:void 0,children:a==="editorial"?r(b,{num:t(i,n.num,e),title:(()=>{const m=t(o,n.title,e);return m?G(m,!0):void 0})(),desc:(()=>{const m=t(c,n.description,e);return m?g(m):void 0})(),spaceBelow:""}):a==="simple"?r(s,{look:"simple",num:t(i,n.num,e),title:t(o,n.title,e),eyebrowLook:p(l,"SectionHeader")}):a==="statement"?r(s,{look:"statement",num:t(i,n.num,e),title:t(o,n.title,e),eyebrowLook:p(l,"SectionHeader")}):a==="natural"?r(s,{look:"natural",num:t(i,n.num,e),title:t(o,n.title,e),description:t(c,n.description,e),eyebrowLook:p(l,"SectionHeader"),rowGap:j(h),descriptionSize:_(v)}):a==="essay"?r(s,{look:"essay",num:t(i,n.num,e),title:t(o,n.title,e),eyebrowLook:p(l,"SectionHeader")}):r(s,{num:t(i,n.num,e),title:t(o,n.title,e),description:t(c,n.description,e),logo:d?{src:d,alt:f(x)}:void 0,link:u?{text:u,href:f(w)||"#"}:void 0,numStyle:S,accent:!0})})})}};export{K as SectionHeaderRender};
@@ -1 +1 @@
1
- import{Fragment as c,jsx as r}from"react/jsx-runtime";import{CardRowDrawn as P}from"../../../../../components/CardRowContext.js";import{CountDrawn as p}from"../../../../../components/CountRowsContext.js";import{KickerNumberDrawn as k}from"../../../../../components/PageContentsContext.js";import{KICKER_NUMBER_PROP as D}from"../../../../content/page-contents.js";import{WALL_LABEL_ID_PROP as W}from"../../../wall-labels.js";import{namedRowField as B,rowFieldWordsArePlain as j,rowPartByKey as v}from"../../../../../../format/lib/content/card-template.js";import{TOP_LINE_ATTRIBUTE as H,TOP_LINE_CLASS as M,cardPlaceOf as U,framesItsCards as V}from"../../../../../../format/lib/content/card-place.js";import{blockSetsItsWidth as z,blockSizeValuesOf as q}from"../../../../content/block-size.js";import{linkedCount as w}from"../../../../../../format/lib/content/count-numbers.js";import{padValuesOf as G}from"../../../../content/section-padding.js";import J from"../../../../../components/Text.js";import{hidableText as l,readHidable as Q}from"efficient-easel/draw";import{PH as _}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phPrev as X}from"../../scaffold.js";import{readPartStyle as Y}from"../../../part-styles.js";import{TextMeta as Z}from"../../../../../../format/lib/document/blocks/general/Text/meta.js";const yt={...Z,render:t=>{const{text:a,align:I,alignTablet:K,alignPhone:L,tone:E,tag:R,contained:A,editor:f}=t;if(Q(a).hidden)return r(c,{});const{textStyle:s,align:C}=Y(t,"text"),O=s?.startsWith("heading-")?_.heading:_.body,S=v("Text",t,"text")?{partKey:"text",partDeclare:!!f?.isEditing}:{},u=t[W],F=typeof u=="string"?u:void 0,d=(e,n,o,i)=>r(J,{...S,plain:i,labelId:F,text:X(e,O,f)??"",number:n,align:I,alignTablet:K,alignPhone:L,tone:E,tag:R,textStyle:s,partAlign:C,ownWidth:z(q(t)),contained:A,pad:G(t),onLine:o}),g=e=>!e?.trim()&&!f?.isEditing,m=B(t),h=(e,n)=>!!m&&!!n&&j(e,m),x=w(t);if(x)return r(p,{countKey:x,children:e=>d(e??l(a))});const y=()=>{if(!m){const e=t[D];return typeof e=="string"?d(l(a),e):r(k,{id:t.id,children:n=>d(l(a),n)})}return r(P,{type:"Text",props:t,children:(e,n,o)=>{const i=l(e.text),T=w(t,o),b=h(n,o);return T?r(p,{countKey:T,children:N=>d(N??i,void 0,void 0,b)}):o&&g(i)?r(c,{}):d(i,void 0,void 0,b)}})};return U(t)!=="top-line"?y():r(P,{type:"Text",props:t,children:(e,n,o)=>{if(!n||!V(n.ownerType))return y();const i=l(m?e.text:a);return g(i)?r(c,{}):r("div",{className:M,[H]:"",children:d(i,void 0,!0,h(n,o))})}})}};export{yt as TextRender};
1
+ import{Fragment as h,jsx as o}from"react/jsx-runtime";import{CardPressTitled as H,CardRowDrawn as y}from"../../../../../components/CardRowContext.js";import{CountDrawn as I}from"../../../../../components/CountRowsContext.js";import{KickerNumberDrawn as M}from"../../../../../components/PageContentsContext.js";import{KICKER_NUMBER_PROP as U}from"../../../../content/page-contents.js";import{WALL_LABEL_ID_PROP as V}from"../../../wall-labels.js";import{CARD_PRESS_TITLE_PROP as z}from"../../../card-press-titles.js";import{CARD_ROW_LINK_PROP as q,namedRowField as g,rowFieldWordsArePlain as G,rowPartByKey as J}from"../../../../../../format/lib/content/card-template.js";import{TOP_LINE_ATTRIBUTE as Q,TOP_LINE_CLASS as X,cardPlaceOf as Y,framesItsCards as Z}from"../../../../../../format/lib/content/card-place.js";import{blockSetsItsWidth as $,blockSizeValuesOf as ee}from"../../../../content/block-size.js";import{linkedCount as O}from"../../../../../../format/lib/content/count-numbers.js";import{nonEmptyString as te}from"../../../../../../format/lib/non-empty-string.js";import{padValuesOf as ne}from"../../../../content/section-padding.js";import re from"../../../../../components/Text.js";import{hidableText as c,readHidable as ie}from"efficient-easel/draw";import{PH as C}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phPrev as oe}from"../../scaffold.js";import{readPartStyle as de}from"../../../part-styles.js";import{TextMeta as ae}from"../../../../../../format/lib/document/blocks/general/Text/meta.js";const Ce={...ae,render:t=>{const{text:f,align:K,alignTablet:L,alignPhone:S,tone:A,tag:D,contained:N,editor:s}=t;if(ie(f).hidden)return o(h,{});const{textStyle:x,align:k}=de(t,"text"),F=x?.startsWith("heading-")?C.heading:C.body,W=J("Text",t,"text")?{partKey:"text",partDeclare:!!s?.isEditing}:{},T=t[V],B=typeof T=="string"?T:void 0,P=t[z]===!0?g(t):"",a=(e,n,r,i,d)=>P?o(H,{field:P,children:l=>_(e,l,n,r,i,d)}):_(e,B,n,r,i,d),_=(e,n,r,i,d,l)=>o(re,{...W,plain:d,href:l,labelId:n,text:oe(e,F,s)??"",number:r,align:K,alignTablet:L,alignPhone:S,tone:A,tag:D,textStyle:x,partAlign:k,ownWidth:$(ee(t)),contained:N,pad:ne(t),onLine:i}),R=e=>!e?.trim()&&!s?.isEditing,m=g(t),j=g(t,q),u=e=>te(e.href),b=(e,n)=>!!m&&!!n&&G(e,m),p=O(t);if(p)return o(I,{countKey:p,children:e=>a(e??c(f))});const w=()=>{if(!m){const e=t[U],n=r=>typeof e=="string"?a(c(f),e,void 0,void 0,r):o(M,{id:t.id,children:i=>a(c(f),i,void 0,void 0,r)});return j?o(y,{type:"Text",props:t,children:r=>n(u(r))}):n()}return o(y,{type:"Text",props:t,children:(e,n,r)=>{const i=c(e.text),d=O(t,r),l=b(n,r),E=u(e);return d?o(I,{countKey:d,children:v=>a(v??i,void 0,void 0,l,E)}):r&&R(i)?o(h,{}):a(i,void 0,void 0,l,E)}})};return Y(t)!=="top-line"?w():o(y,{type:"Text",props:t,children:(e,n,r)=>{if(!n||!Z(n.ownerType))return w();const i=c(m?e.text:f);return R(i)?o(h,{}):o("div",{className:X,[Q]:"",children:a(i,void 0,!0,b(n,r),u(e))})}})}};export{Ce as TextRender};
@@ -1 +1 @@
1
- import{jsx as p}from"react/jsx-runtime";import u from"../../../../../components/TitleWithButtons.js";import{readHidable as d}from"efficient-easel/draw";import{CTA_PH as t}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phRows as b,phHide as _}from"../../scaffold.js";import{TitleWithButtonsMeta as c,TITLE_WITH_BUTTONS_PH as g}from"../../../../../../format/lib/document/blocks/general/TitleWithButtons/meta.js";const x=[{label:t.text,href:t.href,variant:"primary"},{label:t.text,href:t.href,variant:"outline"}],S={...c,render:({title:o,buttons:l,padTop:r,padBottom:i,buttonsAlign:T,buttonsAlignTablet:m,buttonsAlignPhone:f,editor:e})=>{const n=T,a=n==="center"||n==="left",s=d(o),h=s.hidden?"":s.text.trim();return p(u,{title:a&&!h?void 0:_(o,g.title,e),buttons:b(l,x,e),padTop:typeof r=="number"?r:140,padBottom:typeof i=="number"?i:140,buttonsAlign:n,buttonsAlignTablet:m,buttonsAlignPhone:f,editing:e?.isEditing})}};export{S as TitleWithButtonsRender};
1
+ import{jsx as p}from"react/jsx-runtime";import f from"../../../../../components/TitleWithButtons.js";import{readHidable as b}from"efficient-easel/draw";import{phRows as h,phHide as _}from"../../scaffold.js";import{TitleWithButtonsMeta as a,TITLE_WITH_BUTTONS_PH as c,TITLE_WITH_BUTTONS_SCAFFOLD_BUTTONS as g}from"../../../../../../format/lib/document/blocks/general/TitleWithButtons/meta.js";const I={...a,render:({title:n,buttons:s,padTop:o,padBottom:i,buttonsAlign:T,buttonsAlignTablet:m,buttonsAlignPhone:l,editor:t})=>{const e=T,d=e==="center"||e==="left",r=b(n),u=r.hidden?"":r.text.trim();return p(f,{title:d&&!u?void 0:_(n,c.title,t),buttons:h(s,[...g],t),padTop:typeof o=="number"?o:140,padBottom:typeof i=="number"?i:140,buttonsAlign:e,buttonsAlignTablet:m,buttonsAlignPhone:l,editing:t?.isEditing})}};export{I as TitleWithButtonsRender};
@@ -4,9 +4,11 @@ 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 EDITORIAL_LINE: Readonly<Props>;
7
8
  export { token } from "../../../../../format/lib/document/seed-parts.js";
8
9
  export declare const fluidToken: (step: string, minPx: number, vw: number, px: number) => Props;
9
10
  export declare function headWordsOnPhoneLine(part: PartRow): PartRow;
11
+ export declare function withAccentItalic(part: PartRow, keys: readonly string[]): PartRow;
10
12
  export declare function headReads(type: string): Readonly<Record<string, string>>;
11
13
  export declare const SIMPLE_HEADING_LOOK: Readonly<Record<string, unknown>>;
12
14
  export declare function headTree(type: string): PartRow;
@@ -1,2 +1,2 @@
1
- import{SPLITTABLE_SECTIONS as k}from"../../../../../format/lib/sections/section-head-placement.js";import{AUTO_COLUMN as O,BUTTON as B,DIM as L,INNER_BOX as o,SH_LINK as _,TEXT as h,smallText as I}from"./section-to-box-row-parts.js";import{labelTextSeed as M}from"../../../../../format/lib/document/text-seeds.js";import{labelStyle as P,token as a}from"../../../../../format/lib/document/seed-parts.js";function w(e){if(e==="ProductGrid")return"shelf";const t=k[e]?.headStyle;return t==="editorial"||t==="simple"||t==="essay"?t:"standard"}const G={standard:64,editorial:60,simple:36,essay:28,shelf:20},A={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=k[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 l=y({num:e,title:t,description:n,link:!1});return p.set(i,l),l}const u={top:0,right:0,bottom:1,left:0};import{token as Y}from"../../../../../format/lib/document/seed-parts.js";const H=(e,t,n,i)=>({sizeToken:{step:e,px:i,fluid:{minPx:t,vw:n}}}),c=(e,t,n={})=>I(e,{...a("label",t),...n}),d=(e,t)=>({kind:"text",key:e,role:"heading",props:h,style:{textStyle:"heading-2",...t}}),m=800,f=(e,t,n,i)=>({kind:"text",key:e,props:{...L,align:"right",alignPhone:"left",...n?{maxWidth:n,maxWidthPhone:m}:{}},style:{textStyle:"body-5",fontRole:"heading",alignPhone:"left",...a("body",t),...i}}),x={...B,align:"right",alignPhone:"left",..._,icon:"arrow-right",iconPosition:"after"},T=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:x,style:{...P(e),color:"labels"}}),b=(e,t,n)=>{const i=n.role==="heading"?{tag:"h2"}:{};return{kind:"block",type:"Text",when:r=>r[e]===void 0,props:{...h,...i,...n.props,text:t,_partStyles:{text:{...n.role==="eyebrow"?C(M()):{},...n.style}}}}},C=e=>e._partStyles.text??{},s={widthFitPhone:"fill"};function R(e){if(e.kind!=="group")return e;if(e.name==="Words"){const t=e.props;return{...e,props:typeof t=="function"?(n,i)=>({...t(n,i),...s}):{...t,...s}}}return{...e,parts:e.parts.map(R)}}function F(e,t){const n=A[e],i=n==="accent",r=c(t.num,14,{color:i?"accent":"labels"}),l=n==="accentNum"&&r.kind==="text"?{...r,mark:"accentLead"}:r,S=d(t.title,i?{...H("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:u,sectionPaddingBottom:24,sectionPaddingBottomPhone:20},parts:[{kind:"group",name:"Title",props:{...o,...s,direction:"row",align:"end",gap:40,gapPhone:12,share:"content"},parts:[{kind:"group",name:"Number",props:{...o,...s,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},l,...g?[b(t.num,"==01== / Collections",l)]:[]]},{kind:"group",name:"Heading",props:{...o,...s},parts:[S,...g?[b(t.title,`Three ranges,
2
- one standard.`,S)]:[]]}]},{kind:"group",name:"Words",props:{...o,...s,gap:12,maxWidth:340,maxWidthPhone:m},parts:[...t.description?[f(t.description,14,void 0,{lineHeight:1.5})]:[],...t.link?[T(14)]:[],...g?[{kind:"block",type:"ButtonBlock",props:{...x,variant:"ghost",label:"View all",href:"/wheels",_partStyles:{label:T(14).style}}}]:[]]}]}}function y(e){return{kind:"group",name:"Header",props:{...o,direction:"row",align:"end",justify:"between",gap:40,gapPhone:14,share:"content",sectionBorder:u,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:{...o,sectionPaddingBottom:8},parts:[{...c(e.num,13),props:{...h,...O}}]},d(e.title,{...H("headingMedium",40,5.5,80),case:"upper",weight:500,lineHeight:1,letterSpacing:-.03})]},{kind:"group",name:"Words",props:{...o,sectionPaddingBottom:4,maxWidth:360,maxWidthPhone:m},parts:e.description?[f(e.description,14,void 0,{lineHeight:1.5})]:[]}]}}function N(e,t){return{kind:"group",name:"Header",props:{...o,gap:16,gapPhone:16},parts:[c(e.num,13),d(e.title,t)]}}const E=[["para",{...P(13),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}]],z=e=>E.some(([t])=>t===e.titleSize)?e.titleSize:"lg";function D(e){return{kind:"group",name:"Header",props:{...o,direction:"row",align:"center",justify:"between",gap:16,share:"content",stickTop:!0,sectionBorder:u,sectionPaddingTop:12,sectionPaddingBottom:12},parts:[{kind:"group",name:"Title",props:{...o,direction:"row",align:"end",gap:24,share:"content"},parts:[c(e.num,13,{color:"labels",letterSpacing:.22,lineHeight:1}),...E.map(([t,n])=>({...d(e.title,n),when:i=>z(i)===t}))]},{kind:"group",name:"Words",props:{...o,direction:"row",align:"center",justify:"end",gap:20,share:"content"},parts:[...e.description?[f(e.description,13,340,{lineHeight:1.4})]:[],...e.link?[T(13)]:[]]}]}}function Q(e){return w(e)==="shelf"?{titleSize:"the Header Box's title Text part: its size, as the old shelf title drew it (lib/document/blocks/general/section-head-looks)"}:{}}const p=new Map,U={...a("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02};function V(e){const t=p.get(e);if(t)return t;const n=W(e),i=w(e),r=i==="editorial"?y(n):i==="simple"?N(n,U):i==="essay"?N(n,{...a("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):i==="shelf"?D(n):F(e,n);return p.set(e,r),r}export{G as HEAD_BELOW,U as SIMPLE_HEADING_LOOK,X as editorialHeadTree,H as fluidToken,w as headLookOf,Q as headReads,V as headTree,R as headWordsOnPhoneLine,Y as token};
1
+ import{SPLITTABLE_SECTIONS as k}from"../../../../../format/lib/sections/section-head-placement.js";import{AUTO_COLUMN as I,BUTTON as A,DIM as M,INNER_BOX as r,SH_LINK as W,TEXT as h,smallText as C}from"./section-to-box-row-parts.js";import{labelTextSeed as R}from"../../../../../format/lib/document/text-seeds.js";import{labelStyle as P,token as a}from"../../../../../format/lib/document/seed-parts.js";import{tabletKey as x}from"efficient-easel/draw";import{BOX_DESKTOP_LINE as H,STACK_BELOW_PROP as D}from"../../../content/box-stack-line.js";function w(e){if(e==="ProductGrid")return"shelf";const t=k[e]?.headStyle;return t==="editorial"||t==="simple"||t==="essay"?t:"standard"}const ee={standard:64,editorial:60,simple:36,essay:28,shelf:20},F={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function K(e){if(e==="SectionHeader")return{num:"num",title:"title",description:"description",link:!0};const t=k[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 te(e,t,n){const i=`editorial:${e}|${t}|${n}`,o=p.get(i);if(o)return o;const l=L({num:e,title:t,description:n,link:!1});return p.set(i,l),l}const b={[D]:H},u={top:0,right:0,bottom:1,left:0};import{token as ae}from"../../../../../format/lib/document/seed-parts.js";const _=(e,t,n,i)=>({sizeToken:{step:e,px:i,fluid:{minPx:t,vw:n}}}),c=(e,t,n={})=>C(e,{...a("label",t),...n}),d=(e,t)=>({kind:"text",key:e,role:"heading",props:h,style:{textStyle:"heading-2",...t}}),m=800,z=H,f=(e,t,n,i,o={})=>({kind:"text",key:e,props:{...M,align:"right",alignPhone:"left",...n?{maxWidth:n,maxWidthPhone:m}:{},...o},style:{textStyle:"body-5",fontRole:"heading",alignPhone:"left",...a("body",t),...i,...o}}),E={...A,align:"right",alignPhone:"left",...W},T=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:E,style:{...P(e),color:"labels"}}),N=(e,t,n)=>{const i=n.role==="heading"?{tag:"h2"}:{};return{kind:"block",type:"Text",when:o=>o[e]===void 0,props:{...h,...i,...n.props,text:t,_partStyles:{text:{...n.role==="eyebrow"?U(R()):{},...n.style}}}}},U=e=>e._partStyles.text??{},s={widthFitPhone:"fill"};function j(e){if(e.kind!=="group")return e;if(e.name==="Words"){const t=e.props;return{...e,props:typeof t=="function"?(n,i)=>({...t(n,i),...s}):{...t,...s}}}return{...e,parts:e.parts.map(j)}}function $(e,t){const n=F[e],i=n==="accent",o=c(t.num,14,{color:i?"accent":"labels"}),l=n==="accentNum"&&o.kind==="text"?{...o,mark:"accentLead"}:o,S=d(t.title,i?{..._("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:{...r,direction:"row",align:"end",justify:"between",gap:40,gapPhone:12,share:"content",sectionBorder:u,sectionPaddingBottom:24,sectionPaddingBottomPhone:20},parts:[{kind:"group",name:"Title",props:{...r,...s,direction:"row",align:"end",gap:40,gapPhone:12,share:"content"},parts:[{kind:"group",name:"Number",props:{...r,...s,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},l,...g?[N(t.num,"==01== / Collections",l)]:[]]},{kind:"group",name:"Heading",props:{...r,...s},parts:[S,...g?[N(t.title,`Three ranges,
2
+ one standard.`,S)]:[]]}]},{kind:"group",name:"Words",props:{...r,...s,gap:12,maxWidth:340,maxWidthPhone:m},parts:[...t.description?[f(t.description,14,void 0,{lineHeight:1.5})]:[],...t.link?[T(14)]:[],...g?[{kind:"block",type:"ButtonBlock",props:{...E,variant:"ghost",label:"View all",href:"/wheels",_partStyles:{label:T(14).style}}}]:[]]}]}}function O(e,t){return e.kind==="text"?t.includes(e.key)?{...e,mark:"accentItalic"}:e:e.kind==="group"?{...e,parts:e.parts.map(n=>O(n,t))}:e}function L(e){const t=d(e.title,{..._("headingMedium",40,5.5,80),case:"upper",weight:500,lineHeight:1,letterSpacing:-.03});return{kind:"group",name:"Header",props:{...r,direction:"row",align:"end",justify:"between",gap:40,gapPhone:14,share:"content",sectionBorder:u,sectionPaddingBottom:32,...b},parts:[{kind:"group",name:"Title",props:{...r,direction:"row",align:"end",gap:40,gapPhone:14,share:"content",...b},parts:[{kind:"group",name:"Number",props:{...r,sectionPaddingBottom:8},parts:[{...c(e.num,13),props:{...h,...I}}]},O(t,[e.title])]},{kind:"group",name:"Words",props:{...r,sectionPaddingBottom:4,maxWidth:360,[x("maxWidth")]:z,maxWidthPhone:m},parts:e.description?[f(e.description,14,void 0,{lineHeight:1.5},{[x("align")]:"left"})]:[]}]}}function y(e,t){return{kind:"group",name:"Header",props:{...r,gap:16,gapPhone:16},parts:[c(e.num,13),d(e.title,t)]}}const B=[["para",{...P(13),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}]],v=e=>B.some(([t])=>t===e.titleSize)?e.titleSize:"lg";function X(e){return{kind:"group",name:"Header",props:{...r,direction:"row",align:"center",justify:"between",gap:16,share:"content",stickTop:!0,sectionBorder:u,sectionPaddingTop:12,sectionPaddingBottom:12},parts:[{kind:"group",name:"Title",props:{...r,direction:"row",align:"end",gap:24,share:"content"},parts:[c(e.num,13,{color:"labels",letterSpacing:.22,lineHeight:1}),...B.map(([t,n])=>({...d(e.title,n),when:i=>v(i)===t}))]},{kind:"group",name:"Words",props:{...r,direction:"row",align:"center",justify:"end",gap:20,share:"content"},parts:[...e.description?[f(e.description,13,340,{lineHeight:1.4})]:[],...e.link?[T(13)]:[]]}]}}function ne(e){return w(e)==="shelf"?{titleSize:"the Header Box's title Text part: its size, as the old shelf title drew it (lib/document/blocks/general/section-head-looks)"}:{}}const p=new Map,G={...a("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02};function ie(e){const t=p.get(e);if(t)return t;const n=K(e),i=w(e),o=i==="editorial"?L(n):i==="simple"?y(n,G):i==="essay"?y(n,{...a("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):i==="shelf"?X(n):$(e,n);return p.set(e,o),o}export{b as EDITORIAL_LINE,ee as HEAD_BELOW,G as SIMPLE_HEADING_LOOK,te as editorialHeadTree,_ as fluidToken,w as headLookOf,ne as headReads,ie as headTree,j as headWordsOnPhoneLine,ae as token,O as withAccentItalic};
@@ -1 +1 @@
1
- import{SECTION_WIDTH_KEYS as W}from"../../../../../format/lib/content/section-width.js";import{phoneKey as v}from"efficient-easel/draw";import{BOX as w,INNER_BOX as N,LABEL_FACE as C,TEXT as U,boxPadding as M,fillSlot as _,token as y}from"../../../../../format/lib/document/seed-parts.js";import{ENTRANCE_KEYS as F}from"../../../animation/entrance.js";import{SCROLL_STORE_KEYS as K}from"../../../../../format/lib/animation/scroll.js";import{SECTION_PIN_SCREENS_KEYS as X}from"../../../../../format/lib/content/section-sticky.js";import{CARD_HOVER_KEYS as E}from"../../../../../format/lib/animation/hover.js";import{COUNT_KEY_PROP as Y}from"../../../../../format/lib/content/block-sources.js";import{normalizeSiteGutter as G}from"../../../../../format/lib/content/page-width.js";import{resolveSectionPadding as V}from"../../../content/section-padding.js";import{ButtonBlockMeta as j}from"../../../../../format/lib/document/blocks/general/ButtonBlock/meta.js";import{SECTION_PAD_INNER_DEFAULTS as $}from"../../passes/section-padding.js";import{finiteNumber as p}from"../../../../../format/lib/finite-number.js";import{convertTheme as P,hasWords as J}from"../../../sections/section-to-box.js";import{THEME_SECTION_BG as z}from"../../../../../format/lib/content/section-background.js";import{fillSlotOfInk as k}from"../../../../../format/lib/document/part-inks.js";import{parseHexColor as q}from"efficient-shell/format";import{convertLength as Q,isLengthUnit as Z}from"efficient-easel/screen/lib/content/length-units";import{bandPresetIndex as tt,surfacePresetIndex as ot,surfaceTwoTone as et}from"../../../../../format/lib/theme.js";import{VIEW_HIDE_KEYS as nt}from"../../../../../format/lib/content/view-hide-class.js";const B=t=>Z(t)?t:"px",r=(t,o,e,n)=>o===e?t:Q(t,o,e,n,{min:0,max:200,step:4});import{BOX as ro,DIM as co,INNER_BOX as ao,TEXT as po}from"../../../../../format/lib/document/seed-parts.js";const Ht={textFit:"line",textFitPhone:"wrap"},it={...U,[Y]:""},{label:Dt,href:Lt,...st}=j.defaultProps,Wt=st,vt={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},wt={...w,sectionAccent:0},Mt={sectionAccent:-1},yt=["gridSpan","sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent","stickTop","stickTopDistance","stickTopTablet","stickTopDistanceTablet","stickTopPhone","stickTopDistancePhone",...X,"anchor","sectionAnimation",...nt,...Object.values(F).flatMap(t=>[t,v(t)]),...K,"widthFit","widthFitTablet","widthFitPhone","width","widthTablet","widthPhone","minWidth","minWidthTablet","minWidthPhone","maxWidth","maxWidthTablet","maxWidthPhone",...Object.values(W)],c="a section width key, ignored since efficient-web-builder 45 (an old key; a section's own width has new keys, lib/content/section-width), so dropping it changes nothing",Ft={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:c,fullWidth:c,pageWidth:c,backgroundWidth:c,contentWidth:c,contentMax:c},Kt=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 rt(t,o){const e=p(t.sectionPaddingTop)??0,n=p(t.sectionPaddingBottom)??0,i=p(t.sectionPaddingTopTablet),s=p(t.sectionPaddingBottomTablet),l=B(t.sectionPaddingUnit),g=B(t.sectionPaddingUnitTablet),T=B(t.sectionPaddingUnitPhone),O=(h,a,x,m)=>{const d=p(h);if(d!==void 0)return d+r(m,"px",T,"mobile");const I=a===void 0?{n:x,unit:l}:{n:a,unit:g};return r(I.n,I.unit,T,"mobile")+r(m,"px",T,"mobile")},S=(h,a,x,m,d)=>a!==void 0?{[h]:a+r(d??m,"px",g,"tablet")}:d===void 0?{}:{[h]:r(x,l,g,"tablet")+r(d,"px",g,"tablet")};return{sectionPaddingTop:e+r(o.top,"px",l,"desktop"),sectionPaddingBottom:n+r(o.bottom,"px",l,"desktop"),...S("sectionPaddingTopTablet",i,e,o.top,o.topTablet),...S("sectionPaddingBottomTablet",s,n,o.bottom,o.bottomTablet),sectionPaddingTopPhone:O(t.sectionPaddingTopPhone,i,e,o.topPhone),sectionPaddingBottomPhone:O(t.sectionPaddingBottomPhone,s,n,o.bottomPhone)}}const Xt=t=>[...["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopTablet","sectionPaddingBottomTablet","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(e,n)=>rt(n,typeof t=="function"?t(n):t)[o]]),["sectionPaddingUnit","sectionPaddingUnit"],["sectionPaddingUnitTablet","sectionPaddingUnitTablet"],["sectionPaddingUnitPhone","sectionPaddingUnitPhone"]];function f(t,o){const e=V(t,$[o]);return{sectionPaddingTop:e.top,sectionPaddingBottom:e.bottom}}const Yt=t=>[["padTop","sectionPaddingTop",(o,e)=>f(e,t).sectionPaddingTop],["padBottom","sectionPaddingBottom",(o,e)=>f(e,t).sectionPaddingBottom],["sectionPaddingTop","sectionPaddingTop",(o,e)=>f(e,t).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,e)=>f(e,t).sectionPaddingBottom]],dt={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},Gt=t=>o=>J(o.props[t])?[dt]:[],ct=(t,o)=>({kind:"text",key:t,role:"eyebrow",props:U,...o?{style:o}:{}}),Vt=t=>({kind:"group",name:"Chip",props:{...N,..._("main"),...M(6,14)},parts:[ct(t,{color:"background",...y("label",12),weight:600,letterSpacing:.16})]}),A=t=>t.background!=="transparent",at=(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},R={align:"right",alignPhone:"left"},pt=(t,o,e)=>{const n=i=>at(i[t],i[o]);return{kind:"block",type:"Text",when:(i,s)=>s!==void 0&&n(s)!=="",box:[[t,"text",(i,s)=>n(s)],[o,"text",(i,s)=>n(s)]],props:e}},jt=(t,o,e,n={})=>pt(t,o,{...it,...R,...n,_partStyles:{text:{...C,color:"labels",...e,case:C.case,...R}}}),u=(t,o)=>typeof t=="number"&&Number.isInteger(t)&&t>=0?t:P(o)?.selected??0,H="var(--site-surface-2)",D=(t,o)=>P(o)?.themes[u(t.sectionAccent??0,o)],lt=(t,o)=>(e,n)=>{if(!o?.(e,n))return _(t);const i=D(e,n)?.[t];return i?{fillColor:i}:{}},$t=(t,o)=>b(t,o)>=0,L=t=>t.startsWith("#")&&q(t)!==null,Jt=(t,o,e)=>{const n=t?.trim();if(n&&L(n))return{fillColor:n};const i=k(n);if(i)return _(i);const s=n===H?D(o,e):void 0;return s?{fillColor:et(s)}:{}},zt=t=>{const o=t?.trim();return!o||o==="transparent"||o===z||k(o)||o===H||L(o)?void 0:"it paints a colour that no Box Fill can hold"},b=(t,o)=>{const e=P(o)?.themes;return e&&A(t)?tt(e,u(t.sectionAccent,o)):-1},qt=(t,o,e)=>{const n=b(o,e);return n>=0?n:t},Qt=(t,o)=>{const e=P(o)?.themes,n=e?ot(e,u(t,o)):-1;return n>=0?n:t},Zt=(t,o)=>{const e=b(t,o);return e>=0?{sectionAccent:e}:{}},to=(t,o)=>A(t.props)&&b(t.props,o)<0?[{kind:"band-preset",page:u(t.props.sectionAccent,o)}]:[],oo=t=>G(t.site?.siteGutter),gt=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(t=>[`sectionPadding${t}`,0])),eo=t=>({top:0,right:0,bottom:0,left:0,...t}),no=(t,o,e,n=[])=>({kind:"group",name:t,keepEmpty:!0,props:(i,s)=>({...N,...gt,...lt("surface")(i,s),...typeof e=="function"?e(i,s):e}),box:[[o,"bgImage"],E.kind,E.duration,E.delay],parts:n});export{Ht as AUTO_COLUMN,ro as BOX,Wt as BUTTON,co as DIM,Ft as DROP_COMMON,Kt as DROP_SIDE_PADDING,Mt as FOLLOW_THE_BOX,dt as HEADING_CASE_UPPER,ao as INNER_BOX,gt as NO_PAD,it as NUMBER_TEXT,R as RIGHT_WORDS,yt as SAME_KEYS,wt as SECTION_BOX,vt as SH_LINK,po as TEXT,qt as bandAccent,b as bandIndex,u as bandPage,Zt as bandProps,to as bandWrites,lt as fillFrom,zt as fillNoBoxHolds,Vt as filledChip,Gt as headingCaseOf,f as innerPad,Yt as innerPadKeys,jt as leadLine,pt as leadText,eo as lineSides,at as numberAndUnit,$t as onBandPreset,Jt as ownFill,no as pictureCell,D as sectionPage,oo as siteGutterOf,ct as smallText,Qt as surfaceAccent,rt as wrapperPad,Xt as wrapperPadKeys};
1
+ import{SECTION_WIDTH_KEYS as y}from"../../../../../format/lib/content/section-width.js";import{BLOCK_LENGTH_KEYS as C,blockLengthUnitKey as v}from"../../../content/block-size.js";import{viewStoreKeys as M}from"../../../../../format/lib/animation/views.js";import{BOX as W,INNER_BOX as I,LABEL_FACE as U,TEXT as A,boxPadding as F,fillSlot as _,token as Y}from"../../../../../format/lib/document/seed-parts.js";import{ENTRANCE_STORE_KEYS as w,LEGACY_ENTRANCE_KEY as G}from"../../../animation/entrance.js";import{SCROLL_STORE_KEYS as X}from"../../../../../format/lib/animation/scroll.js";import{SECTION_PIN_KEYS as V}from"../../../../../format/lib/content/section-sticky.js";import{CARD_HOVER_KEYS as E}from"../../../../../format/lib/animation/hover.js";import{COUNT_KEY_PROP as $}from"../../../../../format/lib/content/block-sources.js";import{normalizeSiteGutter as j}from"../../../../../format/lib/content/page-width.js";import{resolveSectionPadding as J}from"../../../content/section-padding.js";import{ButtonBlockMeta as z}from"../../../../../format/lib/document/blocks/general/ButtonBlock/meta.js";import{SECTION_PAD_INNER_DEFAULTS as q}from"../../passes/section-padding.js";import{finiteNumber as p}from"../../../../../format/lib/finite-number.js";import{convertTheme as h,hasWords as Q}from"../../../sections/section-to-box.js";import{THEME_SECTION_BG as Z}from"../../../../../format/lib/content/section-background.js";import{fillSlotOfInk as R}from"../../../../../format/lib/document/part-inks.js";import{parseHexColor as tt}from"efficient-shell/format";import{convertLength as ot,isLengthUnit as et}from"efficient-easel/screen/lib/content/length-units";import{bandPresetIndex as nt,surfacePresetIndex as it,surfaceTwoTone as rt}from"../../../../../format/lib/theme.js";import{VIEW_HIDE_KEYS as st}from"../../../../../format/lib/content/view-hide-class.js";const B=t=>et(t)?t:"px",s=(t,o,e,n)=>o===e?t:ot(t,o,e,n,{min:0,max:200,step:4});import{BOX as lo,DIM as go,INNER_BOX as mo,TEXT as Po}from"../../../../../format/lib/document/seed-parts.js";const yt={textFit:"line",textFitPhone:"wrap"},dt={...A,[$]:""},{label:vt,href:Mt,...ct}=z.defaultProps,Wt=ct,Ft={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},Yt={...W,sectionAccent:0},wt={sectionAccent:-1},Gt=["gridSpan","sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent",...V,"anchor",G,...st,...w,...X,...M(["widthFit",...C,...C.map(v)]),...Object.values(y)],c="a section width key, ignored since efficient-web-builder 45 (an old key; a section's own width has new keys, lib/content/section-width), so dropping it changes nothing",Xt={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:c,fullWidth:c,pageWidth:c,backgroundWidth:c,contentWidth:c,contentMax:c},Vt=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 at(t,o){const e=p(t.sectionPaddingTop)??0,n=p(t.sectionPaddingBottom)??0,i=p(t.sectionPaddingTopTablet),r=p(t.sectionPaddingBottomTablet),l=B(t.sectionPaddingUnit),g=B(t.sectionPaddingUnitTablet),T=B(t.sectionPaddingUnitPhone),O=(m,a,x,P)=>{const d=p(m);if(d!==void 0)return d+s(P,"px",T,"mobile");const N=a===void 0?{n:x,unit:l}:{n:a,unit:g};return s(N.n,N.unit,T,"mobile")+s(P,"px",T,"mobile")},S=(m,a,x,P,d)=>a!==void 0?{[m]:a+s(d??P,"px",g,"tablet")}:d===void 0?{}:{[m]:s(x,l,g,"tablet")+s(d,"px",g,"tablet")};return{sectionPaddingTop:e+s(o.top,"px",l,"desktop"),sectionPaddingBottom:n+s(o.bottom,"px",l,"desktop"),...S("sectionPaddingTopTablet",i,e,o.top,o.topTablet),...S("sectionPaddingBottomTablet",r,n,o.bottom,o.bottomTablet),sectionPaddingTopPhone:O(t.sectionPaddingTopPhone,i,e,o.topPhone),sectionPaddingBottomPhone:O(t.sectionPaddingBottomPhone,r,n,o.bottomPhone)}}const $t=t=>[...["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopTablet","sectionPaddingBottomTablet","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(e,n)=>at(n,typeof t=="function"?t(n):t)[o]]),["sectionPaddingUnit","sectionPaddingUnit"],["sectionPaddingUnitTablet","sectionPaddingUnitTablet"],["sectionPaddingUnitPhone","sectionPaddingUnitPhone"]];function f(t,o){const e=J(t,q[o]);return{sectionPaddingTop:e.top,sectionPaddingBottom:e.bottom}}const jt=t=>[["padTop","sectionPaddingTop",(o,e)=>f(e,t).sectionPaddingTop],["padBottom","sectionPaddingBottom",(o,e)=>f(e,t).sectionPaddingBottom],["sectionPaddingTop","sectionPaddingTop",(o,e)=>f(e,t).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,e)=>f(e,t).sectionPaddingBottom]],pt={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},Jt=t=>o=>Q(o.props[t])?[pt]:[],lt=(t,o)=>({kind:"text",key:t,role:"eyebrow",props:A,...o?{style:o}:{}}),zt=t=>({kind:"group",name:"Chip",props:{...I,..._("main"),...F(6,14)},parts:[lt(t,{color:"background",...Y("label",12),weight:600,letterSpacing:.16})]}),L=t=>t.background!=="transparent",gt=(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},H={align:"right",alignPhone:"left"},mt=(t,o,e)=>{const n=i=>gt(i[t],i[o]);return{kind:"block",type:"Text",when:(i,r)=>r!==void 0&&n(r)!=="",box:[[t,"text",(i,r)=>n(r)],[o,"text",(i,r)=>n(r)]],props:e}},qt=(t,o,e,n={})=>mt(t,o,{...dt,...H,...n,_partStyles:{text:{...U,color:"labels",...e,case:U.case,...H}}}),u=(t,o)=>typeof t=="number"&&Number.isInteger(t)&&t>=0?t:h(o)?.selected??0,k="var(--site-surface-2)",D=(t,o)=>h(o)?.themes[u(t.sectionAccent??0,o)],Pt=(t,o)=>(e,n)=>{if(!o?.(e,n))return _(t);const i=D(e,n)?.[t];return i?{fillColor:i}:{}},Qt=(t,o)=>b(t,o)>=0,K=t=>t.startsWith("#")&&tt(t)!==null,Zt=(t,o,e)=>{const n=t?.trim();if(n&&K(n))return{fillColor:n};const i=R(n);if(i)return _(i);const r=n===k?D(o,e):void 0;return r?{fillColor:rt(r)}:{}},to=t=>{const o=t?.trim();return!o||o==="transparent"||o===Z||R(o)||o===k||K(o)?void 0:"it paints a colour that no Box Fill can hold"},b=(t,o)=>{const e=h(o)?.themes;return e&&L(t)?nt(e,u(t.sectionAccent,o)):-1},oo=(t,o,e)=>{const n=b(o,e);return n>=0?n:t},eo=(t,o)=>{const e=h(o)?.themes,n=e?it(e,u(t,o)):-1;return n>=0?n:t},no=(t,o)=>{const e=b(t,o);return e>=0?{sectionAccent:e}:{}},io=(t,o)=>L(t.props)&&b(t.props,o)<0?[{kind:"band-preset",page:u(t.props.sectionAccent,o)}]:[],ro=t=>j(t.site?.siteGutter),ht=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(t=>[`sectionPadding${t}`,0])),so=t=>({top:0,right:0,bottom:0,left:0,...t}),co=(t,o,e,n=[])=>({kind:"group",name:t,keepEmpty:!0,props:(i,r)=>({...I,...ht,...Pt("surface")(i,r),...typeof e=="function"?e(i,r):e}),box:[[o,"bgImage"],E.kind,E.duration,E.delay],parts:n});export{yt as AUTO_COLUMN,lo as BOX,Wt as BUTTON,go as DIM,Xt as DROP_COMMON,Vt as DROP_SIDE_PADDING,wt as FOLLOW_THE_BOX,pt as HEADING_CASE_UPPER,mo as INNER_BOX,ht as NO_PAD,dt as NUMBER_TEXT,H as RIGHT_WORDS,Gt as SAME_KEYS,Yt as SECTION_BOX,Ft as SH_LINK,Po as TEXT,oo as bandAccent,b as bandIndex,u as bandPage,no as bandProps,io as bandWrites,Pt as fillFrom,to as fillNoBoxHolds,zt as filledChip,Jt as headingCaseOf,f as innerPad,jt as innerPadKeys,qt as leadLine,mt as leadText,so as lineSides,gt as numberAndUnit,Qt as onBandPreset,Zt as ownFill,co as pictureCell,D as sectionPage,ro as siteGutterOf,lt as smallText,eo as surfaceAccent,at as wrapperPad,$t as wrapperPadKeys};
@@ -1 +1 @@
1
- import{phoneKey as k,readHidable as E}from"efficient-easel/draw";import{isNodeList as le,newId as de}from"efficient-easel/data";import{say as u}from"../../../../../format/lib/editor-words.js";import{cardColumns as ce}from"../../../../../format/lib/content/card-columns.js";import{resolveSectionBackground as pe,THEME_SECTION_BG as me}from"../../../../../format/lib/content/section-background.js";import{CardsMeta as he}from"../../../../../format/lib/document/blocks/general/Cards/meta.js";import{KeyFeaturesMeta as be}from"../../../../../format/lib/document/blocks/general/KeyFeatures/meta.js";import{finiteNumber as I}from"../../../../../format/lib/finite-number.js";import{nonEmptyString as x}from"../../../../../format/lib/non-empty-string.js";import{parseSectionEyebrowLook as ue}from"../../../../../format/lib/sections/section-eyebrow-look.js";import{hasWords as ye,headInOwnBox as ge}from"../../../sections/section-to-box.js";import{BOX_TYPE as a,CONTAINER_BLOCKS_SLOT as l}from"../../../../../format/lib/document/container-blocks.js";import{labelTextSeed as fe}from"../../../../../format/lib/document/text-seeds.js";import{LABEL_ONLY_CARD_FIELDS as B,rowFieldTextSeed as d}from"../../../../../format/lib/document/blocks/general/Cards/card-seed.js";import{CARDS_CELL as Ce,cardListCardSeed as Se,cardsGridLook as N,labelOnlyListCardSeed as F}from"../../../../../format/lib/document/blocks/general/Cards/card-list-seed.js";import{BOX_HIDE_WHEN_ROW_EMPTY as Pe,CARD_LIST_TYPE as we,CARD_TEMPLATE_SLOT as _e,cardKeyOf as H,cardListProps as Oe,cardRow as W}from"../../../../../format/lib/content/card-template.js";import{bandAccent as Le,bandProps as ke,onBandPreset as Ee,bandWrites as xe,DIM as T,DROP_COMMON as y,DROP_SIDE_PADDING as g,INNER_BOX as r,SAME_KEYS as f,SECTION_BOX as C,fillFrom as m,filledChip as Te,fillNoBoxHolds as Re,ownFill as Ae,TEXT as c,smallText as De,wrapperPad as S,wrapperPadKeys as P}from"./section-to-box-row-parts.js";import{headTree as M,SIMPLE_HEADING_LOOK as Ie,token as p}from"./section-head-looks.js";import{boxPadding as Be,labelStyle as Ne}from"../../../../../format/lib/document/seed-parts.js";import{SECTION_BG_BUILT_IN as Fe}from"../../../../../format/lib/document/blocks/general/section-bg-built-in.js";const h=(e,t,o,n)=>({sectionBorder:{top:e,right:t,bottom:o,left:n}}),v=e=>t=>ce(I(t.columns)??I(e.columns)),He="inline is the head the row draws; an own-box node is skipped (`skip`)",We={kind:"text",key:"title",role:"heading",props:c,style:{textStyle:"heading-3",...Ie}},K={top:120,bottom:120,topPhone:80,bottomPhone:80,topTablet:80,bottomTablet:80},w=e=>{const t=pe(typeof e.background=="string"?e.background:void 0,Fe.Series);return t&&t!=="transparent"?t:void 0},_=e=>w(e)===me,Me={...r,justify:"between",gap:16,gapPhone:16,sectionHeightMode:"fixed",sectionHeightValue:340,sectionHeightUnit:"px",sectionPaddingTop:36,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,sectionPaddingTopPhone:36,sectionPaddingRightPhone:28,sectionPaddingBottomPhone:32,sectionPaddingLeftPhone:28},G={...r,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[k("share")]:"content"},ve=e=>{const t=w(e)?1:2;return{...r,direction:"row",columns:4,columnsTablet:2,gap:t,gapPhone:t}},R={...Ne(12),letterSpacing:.22,lineHeight:1.5},j=e=>ye(e.viewLabel)&&!E(e.viewLabel).hidden,s=e=>E(e).text?.trim?.()??"",O=e=>Object.fromEntries(Object.entries(e).filter(([,t])=>x(t)!==void 0)),A=e=>e.map(([t,o,n])=>({key:t,label:o,...n?{multiline:!0}:{}})),Ke=A([["num","Number"],["since","Corner note"],["title","Card title"],["body","Card body",!0],["count","Count"],["countLabel","Count word"]]),Ge=A([["label","Label"],["value","Value"],["body","Card body",!0]]),b=(e,t,o,n,i,{reads:se=["cards"],keep:ae=[]}={})=>({kind:"group",name:e,props:t,parts:[{kind:"core",as:we,headless:!0,keep:ae,derive:{reads:se,props:L=>Oe(n(L),o)},slots:(L,ie)=>({[_e]:[i(L,ie)]})}]}),X=e=>Array.isArray(e.cards)?e.cards:[],Y={top:76,bottom:76,topPhone:76,bottomPhone:76},V=e=>(Array.isArray(e.items)?e.items:[]).map(t=>O({title:s(t?.label),href:typeof t?.href=="string"?t.href.trim():""})).filter(t=>t.title!==void 0).map((t,o)=>({key:H(W(t),o),...t})),je=e=>V(e).some(t=>x(t.href)!==void 0),U=[{key:B.label,label:"Feature label"},{key:B.href,label:"Link",kind:"link"}],q=e=>ue(e.eyebrowLook,"KeyFeatures")==="filled",Xe={name:"Key Features",boxProps:(e,t)=>({...C,direction:"column",gap:44,gapPhone:32,...m("surface")(e,t),...h(1,0,1,0),...S(e,Y)}),box:[...f,...P(Y)],parts:[{kind:"group",name:"Heading",props:{...r,direction:"row",align:"end",gap:20,wrap:!0,share:"content",phoneRow:2,[k("share")]:"content"},parts:[{...Te("eyebrow"),when:q},{...De("eyebrow"),when:e=>!q(e)},We]},b("Cards",e=>({...r,...N(v(be.defaultProps)(e))}),U,V,e=>F(je(e)),{reads:["items"]})],drop:{...y,...g,columns:'Box "Cards": its Columns and tablet Columns',eyebrowLook:"the Filled look is a Box in the main colour round the eyebrow Text; the plain look is the eyebrow Text"}},z={top:72,bottom:72,topPhone:72,bottomPhone:72},J=(e,t)=>({...Ce,...m("background")(e,t)}),Q=e=>{const t=v(he.defaultProps)(e);return{...r,...N(t)}},Ye=A([["title","Card title"],["body","Card body",!0]]),Z=e=>(Array.isArray(e.items)?e.items:[]).map((t,o)=>({key:typeof t?.key=="string"&&t.key?t.key:H(W(t),o),title:s(t?.title),body:s(t?.body)})),$=e=>{const t={},o={};for(const[n,i]of Object.entries(e.props??{}))n!=="id"&&(le(i)?o[n]=i.map($):t[n]=i);return{type:String(e.type),props:t,...Object.keys(o).length?{slots:o}:{}}},ee=(e,t)=>{const o=D(e)?F(Ve(e)):Se(),n=Array.isArray(e.template)?e.template.map($):[o],[i]=n;return n.length===1&&i.type===a?{...i,props:{...J(e,t),...i.props}}:{type:a,props:{...r,...J(e,t),name:"Card"},slots:{[l]:n}}},D=e=>e.cardStyle==="label-only",te=e=>Z(e).map((t,o)=>{const n=e.items[o]?.href;return O({key:t.key,title:t.title,href:typeof n=="string"?n.trim():""})}),Ve=e=>te(e).some(t=>x(t.href)!==void 0),oe=e=>Array.isArray(e.template)&&e.template.length===0,ne=["dataSource","dataSourceOptions","highlightedCard","highlightBadge"];function ft(){const e=o=>({key:de("card"),title:u(o),body:u("A short line about this card.")}),t=[e("Card title one"),e("Card title two"),e("Card title three")];return{eyebrow:u("Label"),title:u("Section *heading.*"),items:t}}const Ue={name:"Cards",ownBoxConverts:!0,boxProps:(e,t)=>({...C,direction:"column",gap:36,gapPhone:28,...m("surface")(e,t),...S(e,z)}),box:[...f,...P(z)],parts:[{...M("Cards"),when:e=>!ge(e)},{...b("Cards",Q,Ye,Z,ee,{reads:["items"],keep:ne}),when:e=>!oe(e)&&!D(e)},{...b("Cards",Q,U,te,ee,{reads:["items"],keep:ne}),when:e=>!oe(e)&&D(e)}],drop:{...y,...g,columns:'Box "Cards": its Columns and tablet Columns',cardStyle:"the Card list's template: the Cards card, or under Label only the Label only card (a cell Box, a Mark Box, the label Text)",template:"the Card list's template (the card Box takes the old cell's ground and lines)",headPlacement:"an own-box node lands without its head; inline is the head the row draws",eyebrowLook:"needs the eyebrow's Filled look on a Text block: Plain is the eyebrow start look the row draws; 2 of 62 live nodes store it (the stored-node export, 2026-10-24)"}},qe={name:"Recurring Columns",boxProps:(e,t)=>({...C,direction:"column",gap:60,gapPhone:60,...h(0,0,1,0),..._(e)?ke(e,t):{},...Ae(w(e),e,t),...S(e,K)}),box:[...f.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,t,o)=>_(t)?Le(e,t,o):e],...P(K)],skip:e=>Re(w(e)),site:(e,t)=>_(e.props)?xe(e,t):[],parts:[M("Series"),b("Cards",ve,Ke,e=>X(e).map(t=>O({num:s(t.num),since:s(t.since),title:s(t.title),body:s(t.desc),count:s(t.entries),countLabel:s(t.entriesLabel)})),(e,t)=>({type:a,props:{...Me,...m("background",(o,n)=>_(o)&&Ee(o,n))(e,t),name:"Card"},slots:{[l]:[{type:a,props:{...r,name:"Words",gap:16,gapPhone:16},slots:{[l]:[{type:a,props:{...G,name:"Top"},slots:{[l]:[d("num",c,p("label",13),!0),d("since",c,p("label",13),!0)]}},d("title",{...c,tag:"h3"},{textStyle:"heading-3",...p("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}),d("body",T,{textStyle:"body-5",fontRole:"heading",...p("body",14),lineHeight:1.6})]}},{type:a,props:{...G,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...h(1,0,0,0),...j(e)?{}:{[Pe]:["count","countLabel"]}},slots:{[l]:[{type:a,props:{...r,name:"Count",direction:"row",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2,[k("share")]:"content"},slots:{[l]:[d("count",c,R),d("countLabel",T,R)]}},...j(e)?[{type:a,props:{...r,name:"View",maxWidthPhone:266},slots:{[l]:[{type:"Text",props:{...c,text:E(e.viewLabel).text,_partStyles:{text:{...fe()._partStyles.text,...R}}}}]}}]:[]]}}]}}))],reads:{viewLabel:"a Text typed once in the card template: the far end of every card's footer",background:"the Box's theme (the band preset) or its Fill"},drop:{...y,...g,headPlacement:He}},re={top:60,bottom:60,topPhone:40,bottomPhone:40},ze={...r,direction:"row",columns:3,gap:40,gapPhone:16},Je={...r,gap:8,gapPhone:8,...Be(24),...h(1,1,1,1)},Qe={name:"Document Detail Cards",boxProps:e=>({...C,direction:"column",gap:40,gapPhone:16,...h(0,0,1,0),...S(e,re)}),box:[...f,...P(re)],parts:[b("Cards",ze,Ge,e=>X(e).map(t=>O({label:s(t.label),value:s(t.value),body:s(t.desc)})),(e,t)=>({type:a,props:{...Je,...m("surface")(e,t),name:"Card"},slots:{[l]:[d("label",c,{...p("label",12),lineHeight:1.5},!0),{type:a,props:{...r,name:"Words",gap:14,gapPhone:14},slots:{[l]:[d("value",c,{textStyle:"heading-3",...p("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}),d("body",T,{textStyle:"body-5",fontRole:"accent",...p("body",14),italic:!0,lineHeight:1.5})]}}]}}))],drop:{...y,...g}},Ct={Cards:Ue,KeyFeatures:Xe,Series:qe,DocMetaCards:Qe};export{Ct as CARDS_SECTION_TO_BOX,ft as cardsPressStarter};
1
+ import{phoneKey as E,readHidable as k}from"efficient-easel/draw";import{isNodeList as le,newId as de}from"efficient-easel/data";import{say as u}from"../../../../../format/lib/editor-words.js";import{cardColumns as ce}from"../../../../../format/lib/content/card-columns.js";import{resolveSectionBackground as pe,THEME_SECTION_BG as me}from"../../../../../format/lib/content/section-background.js";import{CardsMeta as he}from"../../../../../format/lib/document/blocks/general/Cards/meta.js";import{KeyFeaturesMeta as be}from"../../../../../format/lib/document/blocks/general/KeyFeatures/meta.js";import{finiteNumber as I}from"../../../../../format/lib/finite-number.js";import{nonEmptyString as x}from"../../../../../format/lib/non-empty-string.js";import{parseSectionEyebrowLook as ue}from"../../../../../format/lib/sections/section-eyebrow-look.js";import{hasWords as ye,headInOwnBox as ge}from"../../../sections/section-to-box.js";import{BOX_TYPE as a,CONTAINER_BLOCKS_SLOT as l}from"../../../../../format/lib/document/container-blocks.js";import{labelTextSeed as fe}from"../../../../../format/lib/document/text-seeds.js";import{LABEL_ONLY_CARD_FIELDS as B,rowFieldTextSeed as d}from"../../../../../format/lib/document/blocks/general/Cards/card-seed.js";import{CARDS_CELL as Ce,cardListCardSeed as Se,cardsGridLook as N,labelOnlyListCardSeed as F}from"../../../../../format/lib/document/blocks/general/Cards/card-list-seed.js";import{BOX_HIDE_WHEN_ROW_EMPTY as Pe,CARD_LIST_TYPE as we,CARD_TEMPLATE_SLOT as _e,cardKeyOf as H,cardListProps as Le,cardRow as W}from"../../../../../format/lib/content/card-template.js";import{bandAccent as Oe,bandProps as Ee,onBandPreset as ke,bandWrites as xe,DIM as T,DROP_COMMON as y,DROP_SIDE_PADDING as g,INNER_BOX as r,SAME_KEYS as f,SECTION_BOX as C,fillFrom as m,filledChip as Te,fillNoBoxHolds as Re,ownFill as Ae,TEXT as c,smallText as De,wrapperPad as S,wrapperPadKeys as P}from"./section-to-box-row-parts.js";import{EDITORIAL_LINE as Ie,headTree as M,SIMPLE_HEADING_LOOK as Be,token as p}from"./section-head-looks.js";import{boxPadding as Ne,labelStyle as Fe}from"../../../../../format/lib/document/seed-parts.js";import{SECTION_BG_BUILT_IN as He}from"../../../../../format/lib/document/blocks/general/section-bg-built-in.js";const h=(e,t,o,n)=>({sectionBorder:{top:e,right:t,bottom:o,left:n}}),v=e=>t=>ce(I(t.columns)??I(e.columns)),We="inline is the head the row draws; an own-box node is skipped (`skip`)",Me={kind:"text",key:"title",role:"heading",props:c,style:{textStyle:"heading-3",...Be}},K={top:120,bottom:120,topPhone:80,bottomPhone:80,topTablet:80,bottomTablet:80},w=e=>{const t=pe(typeof e.background=="string"?e.background:void 0,He.Series);return t&&t!=="transparent"?t:void 0},_=e=>w(e)===me,ve={...r,justify:"between",gap:16,gapPhone:16,sectionHeightMode:"fixed",sectionHeightValue:340,sectionHeightUnit:"px",sectionPaddingTop:36,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,sectionPaddingTopPhone:36,sectionPaddingRightPhone:28,sectionPaddingBottomPhone:32,sectionPaddingLeftPhone:28},G={...r,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[E("share")]:"content"},Ke=e=>{const t=w(e)?1:2;return{...r,direction:"row",columns:4,columnsTablet:2,gap:t,gapPhone:t}},R={...Fe(12),letterSpacing:.22,lineHeight:1.5},j=e=>ye(e.viewLabel)&&!k(e.viewLabel).hidden,s=e=>k(e).text?.trim?.()??"",L=e=>Object.fromEntries(Object.entries(e).filter(([,t])=>x(t)!==void 0)),A=e=>e.map(([t,o,n])=>({key:t,label:o,...n?{multiline:!0}:{}})),Ge=A([["num","Number"],["since","Corner note"],["title","Card title"],["body","Card body",!0],["count","Count"],["countLabel","Count word"]]),je=A([["label","Label"],["value","Value"],["body","Card body",!0]]),b=(e,t,o,n,i,{reads:se=["cards"],keep:ae=[]}={})=>({kind:"group",name:e,props:t,parts:[{kind:"core",as:we,headless:!0,keep:ae,derive:{reads:se,props:O=>Le(n(O),o)},slots:(O,ie)=>({[_e]:[i(O,ie)]})}]}),X=e=>Array.isArray(e.cards)?e.cards:[],Y={top:76,bottom:76,topPhone:76,bottomPhone:76},V=e=>(Array.isArray(e.items)?e.items:[]).map(t=>L({title:s(t?.label),href:typeof t?.href=="string"?t.href.trim():""})).filter(t=>t.title!==void 0).map((t,o)=>({key:H(W(t),o),...t})),Xe=e=>V(e).some(t=>x(t.href)!==void 0),U=[{key:B.label,label:"Feature label"},{key:B.href,label:"Link",kind:"link"}],q=e=>ue(e.eyebrowLook,"KeyFeatures")==="filled",Ye={name:"Key Features",boxProps:(e,t)=>({...C,direction:"column",gap:44,gapPhone:32,...m("surface")(e,t),...h(1,0,1,0),...S(e,Y)}),box:[...f,...P(Y)],parts:[{kind:"group",name:"Heading",props:{...r,direction:"row",align:"end",gap:20,wrap:!0,share:"content",phoneRow:2,[E("share")]:"content"},parts:[{...Te("eyebrow"),when:q},{...De("eyebrow"),when:e=>!q(e)},Me]},b("Cards",e=>({...r,...N(v(be.defaultProps)(e))}),U,V,e=>F(Xe(e)),{reads:["items"]})],drop:{...y,...g,columns:'Box "Cards": its Columns and tablet Columns',eyebrowLook:"the Filled look is a Box in the main colour round the eyebrow Text; the plain look is the eyebrow Text"}},z={top:72,bottom:72,topPhone:72,bottomPhone:72},J=(e,t)=>({...Ce,...m("background")(e,t)}),Q=e=>{const t=v(he.defaultProps)(e);return{...r,...N(t)}},Ve=A([["title","Card title"],["body","Card body",!0]]),Z=e=>(Array.isArray(e.items)?e.items:[]).map((t,o)=>({key:typeof t?.key=="string"&&t.key?t.key:H(W(t),o),title:s(t?.title),body:s(t?.body)})),$=e=>{const t={},o={};for(const[n,i]of Object.entries(e.props??{}))n!=="id"&&(le(i)?o[n]=i.map($):t[n]=i);return{type:String(e.type),props:t,...Object.keys(o).length?{slots:o}:{}}},ee=(e,t)=>{const o=D(e)?F(Ue(e)):Se(),n=Array.isArray(e.template)?e.template.map($):[o],[i]=n;return n.length===1&&i.type===a?{...i,props:{...J(e,t),...i.props}}:{type:a,props:{...r,...J(e,t),name:"Card"},slots:{[l]:n}}},D=e=>e.cardStyle==="label-only",te=e=>Z(e).map((t,o)=>{const n=e.items[o]?.href;return L({key:t.key,title:t.title,href:typeof n=="string"?n.trim():""})}),Ue=e=>te(e).some(t=>x(t.href)!==void 0),oe=e=>Array.isArray(e.template)&&e.template.length===0,ne=["dataSource","dataSourceOptions","highlightedCard","highlightBadge"];function Ct(){const e=o=>({key:de("card"),title:u(o),body:u("A short line about this card.")}),t=[e("Card title one"),e("Card title two"),e("Card title three")];return{eyebrow:u("Label"),title:u("Section *heading.*"),items:t}}const qe={name:"Cards",ownBoxConverts:!0,boxProps:(e,t)=>({...C,direction:"column",gap:36,gapPhone:28,...m("surface")(e,t),...S(e,z)}),box:[...f,...P(z)],parts:[{...M("Cards"),when:e=>!ge(e)},{...b("Cards",Q,Ve,Z,ee,{reads:["items"],keep:ne}),when:e=>!oe(e)&&!D(e)},{...b("Cards",Q,U,te,ee,{reads:["items"],keep:ne}),when:e=>!oe(e)&&D(e)}],drop:{...y,...g,columns:'Box "Cards": its Columns and tablet Columns',cardStyle:"the Card list's template: the Cards card, or under Label only the Label only card (a cell Box, a Mark Box, the label Text)",template:"the Card list's template (the card Box takes the old cell's ground and lines)",headPlacement:"an own-box node lands without its head; inline is the head the row draws",eyebrowLook:"needs the eyebrow's Filled look on a Text block: Plain is the eyebrow start look the row draws; 2 of 62 live nodes store it (the stored-node export, 2026-10-24)"}},ze={name:"Recurring Columns",boxProps:(e,t)=>({...C,direction:"column",gap:60,gapPhone:60,...h(0,0,1,0),...Ie,..._(e)?Ee(e,t):{},...Ae(w(e),e,t),...S(e,K)}),box:[...f.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,t,o)=>_(t)?Oe(e,t,o):e],...P(K)],skip:e=>Re(w(e)),site:(e,t)=>_(e.props)?xe(e,t):[],parts:[M("Series"),b("Cards",Ke,Ge,e=>X(e).map(t=>L({num:s(t.num),since:s(t.since),title:s(t.title),body:s(t.desc),count:s(t.entries),countLabel:s(t.entriesLabel)})),(e,t)=>({type:a,props:{...ve,...m("background",(o,n)=>_(o)&&ke(o,n))(e,t),name:"Card"},slots:{[l]:[{type:a,props:{...r,name:"Words",gap:16,gapPhone:16},slots:{[l]:[{type:a,props:{...G,name:"Top"},slots:{[l]:[d("num",c,p("label",13),!0),d("since",c,p("label",13),!0)]}},d("title",{...c,tag:"h3"},{textStyle:"heading-3",...p("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}),d("body",T,{textStyle:"body-5",fontRole:"heading",...p("body",14),lineHeight:1.6})]}},{type:a,props:{...G,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...h(1,0,0,0),...j(e)?{}:{[Pe]:["count","countLabel"]}},slots:{[l]:[{type:a,props:{...r,name:"Count",direction:"row",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2,[E("share")]:"content"},slots:{[l]:[d("count",c,R),d("countLabel",T,R)]}},...j(e)?[{type:a,props:{...r,name:"View",maxWidthPhone:266},slots:{[l]:[{type:"Text",props:{...c,text:k(e.viewLabel).text,_partStyles:{text:{...fe()._partStyles.text,...R}}}}]}}]:[]]}}]}}))],reads:{viewLabel:"a Text typed once in the card template: the far end of every card's footer",background:"the Box's theme (the band preset) or its Fill"},drop:{...y,...g,headPlacement:We}},re={top:60,bottom:60,topPhone:40,bottomPhone:40},Je={...r,direction:"row",columns:3,gap:40,gapPhone:16},Qe={...r,gap:8,gapPhone:8,...Ne(24),...h(1,1,1,1)},Ze={name:"Document Detail Cards",boxProps:e=>({...C,direction:"column",gap:40,gapPhone:16,...h(0,0,1,0),...S(e,re)}),box:[...f,...P(re)],parts:[b("Cards",Je,je,e=>X(e).map(t=>L({label:s(t.label),value:s(t.value),body:s(t.desc)})),(e,t)=>({type:a,props:{...Qe,...m("surface")(e,t),name:"Card"},slots:{[l]:[d("label",c,{...p("label",12),lineHeight:1.5},!0),{type:a,props:{...r,name:"Words",gap:14,gapPhone:14},slots:{[l]:[d("value",c,{textStyle:"heading-3",...p("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}),d("body",T,{textStyle:"body-5",fontRole:"accent",...p("body",14),italic:!0,lineHeight:1.5})]}}]}}))],drop:{...y,...g}},St={Cards:qe,KeyFeatures:Ye,Series:ze,DocMetaCards:Ze};export{St as CARDS_SECTION_TO_BOX,Ct as cardsPressStarter};
@@ -1 +1 @@
1
- import{finiteNumber as a}from"../../../../../format/lib/finite-number.js";import{parseIntroBleedLayout as R}from"../../../../../format/lib/sections/intro-bleed-layout.js";import{fluidToken as U,token as n}from"./section-head-looks.js";import{labelStyle as F}from"../../../../../format/lib/document/seed-parts.js";import{BUTTON as g,DIM as f,DROP_COMMON as c,DROP_SIDE_PADDING as S,INNER_BOX as i,NO_PAD as p,NUMBER_TEXT as L,SAME_KEYS as u,SECTION_BOX as y,TEXT as P,fillFrom as x,lineSides as s,pictureCell as w,siteGutterOf as m,smallText as r,wrapperPad as T,wrapperPadKeys as B}from"./section-to-box-row-parts.js";const H=(e,t)=>{const o=a(e),k=a(t);return{...o===void 0?{}:{size:o},...k===void 0?{}:{sizePhone:k}}},C=e=>R(e.layout)==="stacked",M=e=>Math.min(Math.max(a(e.overlay)??60,0),100),d=e=>a(e)??100,W={textStyle:"heading-1",sizeToken:{...U("headingLarge",48,7,96).sizeToken,pxPhone:36},weight:500,lineHeight:.95,letterSpacing:-.03},V=[r("eyebrow",n("label",14)),...[!0,!1].map(e=>({kind:"text",key:"title",role:"heading",props:P,style:{...W,case:e?"upper":"none"},styleFrom:t=>H(t.titleSizeDesktop,t.titleSizeMobile),when:t=>t.uppercase===!0===e})),{kind:"text",key:"body",props:{...f,maxWidth:560},style:{textStyle:"body-1",...n("body",17,16),lineHeight:1.6,paragraphSpacing:24},styleFrom:e=>H(e.bodySizeDesktop,e.bodySizeMobile)},{kind:"group",name:"Button",props:{...i,align:"start",sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:g}]}],A=e=>`${e}: a Button block has no colour of its own (it follows the site Button colour, as the old fallback did); 0 of 3 live US nodes store one (CLI read, 2026-11-03)`,X=()=>({name:"Scroll-Over Text",skip:e=>C(e)?"the stacked layout: its words row's height floor (`copyShare*`) and the header subtraction have no Box setting; 0 live US nodes":void 0,boxProps:e=>({...y,direction:"column",justify:"center",align:"start",gap:24,gapPhone:24,share:"content",...p,placement:"left",darken:M(e),darkenStyle:"even",sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:d(e.heightDesktop),sectionHeightModePhone:"fixed",sectionHeightUnitPhone:"%",sectionHeightValuePhone:d(e.heightMobile)}),box:[...u.filter(e=>!String(typeof e=="string"?e:e[0]).startsWith("sectionHeight")),["imageSrc","bgImage"],["imageSrcMobile","bgImagePhone"],["overlay","darken",(e,t)=>M(t)],["heightDesktop","sectionHeightValue",e=>d(e)],["heightMobile","sectionHeightValuePhone",e=>d(e)]],parts:V,drop:{uppercase:"not a value of its own: it picks the heading part — Case Upper when on, None (as typed) when off",layout:"not a value of its own: the overlay layout is this tree; a stacked node is skipped (`skip`)",copyShareDesktop:"the stacked layout's words-row floor, read only there; a stacked node is skipped",copyShareMobile:"the stacked layout's words-row floor, read only there; a stacked node is skipped",sticky:"the old pin key, read as `stickTop` by the section pin's one reader (lib/content/section-sticky); the Box keeps a stored `stickTop` (SAME_KEYS), and this row is switched off until the stored pages hold `stickTop`",titleSizeDesktop:"read by the heading part's `styleFrom`: a number is its Size, `inherit` and unset follow the token",titleSizeMobile:"read by the heading part's `styleFrom`: a number is its phone Size, `inherit` and unset follow the token",bodySizeDesktop:"read by the words part's `styleFrom`: a number is its Size, `inherit` and unset follow the token",bodySizeMobile:"read by the words part's `styleFrom`: a number is its phone Size, `inherit` and unset follow the token",buttonColor:A("Button color"),buttonTextColor:A("Button text color"),...c}}),v={textStyle:"heading-2",...n("headingMedium",56,36),weight:400,lineHeight:1.05,letterSpacing:-.03},j={textStyle:"body-1",...n("body",16),lineHeight:1.7},O=e=>({kind:"text",key:"body",props:{...f,maxWidth:520},style:{...j,paragraphSpacing:e}}),l={top:0,bottom:0,topPhone:0,bottomPhone:0},b=(e,t)=>typeof e.sectionHeightMode=="string"&&e.sectionHeightMode!=="auto"?{}:{sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:t,sectionHeightModePhone:"auto"},G=(e,t)=>{const o=b(e,t);return Object.keys(o).length?o:{sectionHeightMode:e.sectionHeightMode,...e.sectionHeightValue===void 0?{}:{sectionHeightValue:e.sectionHeightValue},...e.sectionHeightUnit===void 0?{}:{sectionHeightUnit:e.sectionHeightUnit},sectionHeightModePhone:"auto"}},I={boxShapePhone:"landscape"},_="needs a black-and-white setting on a Box picture (the old photograph followed it, else the site's Photography); 0 live US nodes store it (CLI read, 2026-11-03)",Y=(e,t)=>({[e]:t,[`${e}Phone`]:t}),q={textStyle:"heading-2",...n("headingMedium",40),weight:500,case:"none",lineHeight:1,letterSpacing:-.02},E=e=>(Array.isArray(e.stats)?e.stats:[]).filter(t=>t&&(String(t.value??"").trim()!==""||String(t.label??"").trim()!=="")),K=()=>({name:"Brand Text",boxProps:(e,t)=>({...y,...x("background")(e,t),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...T(e,l),...b(e,100)}),box:[...u,...B(l)],parts:[{kind:"group",name:"Words",props:(e,t)=>({...i,justify:"center",gap:28,gapPhone:28,sectionBorder:s({right:1}),sectionBorderPhone:s({}),...p,sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60,sectionPaddingRight:m(t)}),parts:[r("eyebrow",n("label",14)),{kind:"text",key:"heading",role:"heading",props:P,style:{...v,case:"none"},mark:"accentItalic"},O(28),{kind:"group",name:"Stats",props:{...i,sectionPaddingTop:16,sectionPaddingTopPhone:16},parts:[{kind:"group",name:"Figures",props:e=>({...i,direction:"row",share:"equal",gap:24,gapPhone:24,maxWidth:520,phoneRow:Math.min(Math.max(E(e).length,1),3),...Y("sectionBorder",s({top:1})),sectionPaddingTop:28,sectionPaddingTopPhone:28}),parts:[{kind:"list",key:"stats",name:"Stat",of:E,props:{...i,gap:4,gapPhone:4},parts:[{kind:"text",key:"value",props:L,style:q},r("label",{...n("label",13),color:"labels",letterSpacing:.2})]}]}]}]},w("Picture","imageSrc",I)],drop:{...c,grayscale:_,...S}}),h=e=>{const t=e.textAlign==="center"||e.textAlign==="right"?{align:e.textAlign}:{},o=e.textAlignPhone==="left"||e.textAlignPhone==="center"||e.textAlignPhone==="right"?{alignPhone:e.textAlignPhone}:{};return{...t,...o}},$=e=>e.textAlign==="center"?"center":e.textAlign==="right"?"end":"stretch",Z=e=>Math.min(Math.max(a(e.overlay)??60,0),100),D=e=>typeof e=="string"&&e.trim()!=="",J={...g,align:"center",alignPhone:"center",buttonFillOpacity:0,buttonBorder:{width:1},buttonPaddingTop:16,buttonPaddingRight:28,buttonPaddingBottom:16,buttonPaddingLeft:28,buttonPaddingTopPhone:12,buttonPaddingRightPhone:20,buttonPaddingBottomPhone:12,buttonPaddingLeftPhone:20},N=e=>({...w("Picture","imageSrc",(t,o)=>({...D(t.imageSrc)?{darken:40,darkenStyle:"even"}:{},placement:"center",...I,sectionBorder:s(e?{left:1}:{right:1}),...z(e?"left":"right",m(o))}),[{kind:"button",key:"imageBtnText",href:"imageBtnHref",variant:"ghost",props:J,style:{...F(13,12),letterSpacing:.18}}]),when:t=>t.reverse===!0===e}),z=(e,t)=>{const o=Math.max(60-t,0);return{sectionPaddingLeft:e==="left"?60:o,sectionPaddingRight:e==="right"?60:o}},Q={kind:"group",name:"Words",props:(e,t)=>{const o=e.reverse===!0;return{...i,justify:"center",align:$(e),placement:e.textAlign==="center"?"center":e.textAlign==="right"?"right":"left",...G(e,72),gap:24,gapPhone:24,...D(e.textBgSrc)?{darken:Z(e),darkenStyle:"even"}:{},...p,sectionPaddingTop:100,sectionPaddingBottom:100,...z(o?"right":"left",m(t)),sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60}},box:[["textBgSrc","bgImage"]],parts:[{...r("eyebrow",n("label",14)),styleFrom:h},{kind:"text",key:"title",role:"heading",props:P,style:v,styleFrom:e=>({case:e.uppercase===!0?"upper":"none",...h(e)})},{...O(24),styleFrom:h},{kind:"group",name:"Button",props:{...i,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>{const t=h(e);return{...g,...t.align?{align:t.align}:{},...t.alignPhone?{alignPhone:t.alignPhone}:{}}}}]}]},ee=()=>({name:"Image & Text Split",boxProps:(e,t)=>({...y,...x("background")(e,t),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...T(e,l),...b(e,72)}),box:[...u,...B(l)],parts:[N(!1),Q,N(!0)],drop:{reverse:"not a value of its own: it picks the order — the Picture Box first, or after the Words",uppercase:"not a value of its own: the heading part's Case — Upper when on, None (as typed) when off",textAlign:"read by each words part (its Align) and the Words Box (its Align); left writes nothing, as the old emitted no class",textAlignPhone:"read by each words part as its phone Align",textAlignTablet:"not carried to the words part's own tablet Align (`alignTablet`) yet: no old node stores it (new with the Tablet view's Text alignment row, 0 stored on the US sites 2026-11-06), so nothing moves",overlay:"read by the Words Box: its Darken over the words picture (60 when unset); no picture, no wash",grayscale:_,...c,...S}}),se={IntroBleed:X(),Manifesto:K(),Split:ee()};export{se as EDITORIAL_SECTION_TO_BOX};
1
+ import{phoneKey as R}from"efficient-easel/draw";import{SITE_SIDE as U}from"efficient-easel/screen/lib/content/length-units";import{finiteNumber as a}from"../../../../../format/lib/finite-number.js";import{parseIntroBleedLayout as F}from"../../../../../format/lib/sections/intro-bleed-layout.js";import{fluidToken as L,token as n}from"./section-head-looks.js";import{labelStyle as C}from"../../../../../format/lib/document/seed-parts.js";import{BUTTON as g,DIM as k,DROP_COMMON as c,DROP_SIDE_PADDING as f,INNER_BOX as i,NO_PAD as p,NUMBER_TEXT as W,SAME_KEYS as u,SECTION_BOX as y,TEXT as m,fillFrom as S,lineSides as r,pictureCell as x,siteGutterOf as w,smallText as s,wrapperPad as T,wrapperPadKeys as B}from"./section-to-box-row-parts.js";const H=(e,t)=>{const o=a(e),b=a(t);return{...o===void 0?{}:{size:o},...b===void 0?{}:{sizePhone:b}}},V=e=>F(e.layout)==="stacked",M=e=>Math.min(Math.max(a(e.overlay)??60,0),100),d=e=>a(e)??100,X={textStyle:"heading-1",sizeToken:{...L("headingLarge",48,7,96).sizeToken,pxPhone:36},weight:500,lineHeight:.95,letterSpacing:-.03},j=[s("eyebrow",n("label",14)),...[!0,!1].map(e=>({kind:"text",key:"title",role:"heading",props:m,style:{...X,case:e?"upper":"none"},styleFrom:t=>H(t.titleSizeDesktop,t.titleSizeMobile),when:t=>t.uppercase===!0===e})),{kind:"text",key:"body",props:{...k,maxWidth:560},style:{textStyle:"body-1",...n("body",17,16),lineHeight:1.6,paragraphSpacing:24},styleFrom:e=>H(e.bodySizeDesktop,e.bodySizeMobile)},{kind:"group",name:"Button",props:{...i,align:"start",sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:g}]}],A=e=>`${e}: a Button block has no colour of its own (it follows the site Button colour, as the old fallback did); 0 of 3 live US nodes store one (CLI read, 2026-11-03)`,G=()=>({name:"Scroll-Over Text",skip:e=>V(e)?"the stacked layout: its words row's height floor (`copyShare*`) and the header subtraction have no Box setting; 0 live US nodes":void 0,boxProps:e=>({...y,direction:"column",justify:"center",align:"start",gap:24,gapPhone:24,share:"content",...p,placement:"left",darken:M(e),darkenStyle:"even",sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:d(e.heightDesktop),sectionHeightModePhone:"fixed",sectionHeightUnitPhone:"%",sectionHeightValuePhone:d(e.heightMobile)}),box:[...u.filter(e=>!String(typeof e=="string"?e:e[0]).startsWith("sectionHeight")),["imageSrc","bgImage"],["imageSrcMobile","bgImagePhone"],["overlay","darken",(e,t)=>M(t)],["heightDesktop","sectionHeightValue",e=>d(e)],["heightMobile","sectionHeightValuePhone",e=>d(e)]],parts:j,drop:{uppercase:"not a value of its own: it picks the heading part — Case Upper when on, None (as typed) when off",layout:"not a value of its own: the overlay layout is this tree; a stacked node is skipped (`skip`)",copyShareDesktop:"the stacked layout's words-row floor, read only there; a stacked node is skipped",copyShareMobile:"the stacked layout's words-row floor, read only there; a stacked node is skipped",sticky:"the old pin key, read as `stickTop` by the section pin's one reader (lib/content/section-sticky); the Box keeps a stored `stickTop` (SAME_KEYS), and this row is switched off until the stored pages hold `stickTop`",titleSizeDesktop:"read by the heading part's `styleFrom`: a number is its Size, `inherit` and unset follow the token",titleSizeMobile:"read by the heading part's `styleFrom`: a number is its phone Size, `inherit` and unset follow the token",bodySizeDesktop:"read by the words part's `styleFrom`: a number is its Size, `inherit` and unset follow the token",bodySizeMobile:"read by the words part's `styleFrom`: a number is its phone Size, `inherit` and unset follow the token",buttonColor:A("Button color"),buttonTextColor:A("Button text color"),...c}}),v={textStyle:"heading-2",...n("headingMedium",56,36),weight:400,lineHeight:1.05,letterSpacing:-.03},K={textStyle:"body-1",...n("body",16),lineHeight:1.7},O=e=>({kind:"text",key:"body",props:{...k,maxWidth:520},style:{...K,paragraphSpacing:e}}),l={top:0,bottom:0,topPhone:0,bottomPhone:0},P=(e,t)=>typeof e.sectionHeightMode=="string"&&e.sectionHeightMode!=="auto"?{}:{sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:t,sectionHeightModePhone:"auto"},Y=(e,t)=>{const o=P(e,t);return Object.keys(o).length?o:{sectionHeightMode:e.sectionHeightMode,...e.sectionHeightValue===void 0?{}:{sectionHeightValue:e.sectionHeightValue},...e.sectionHeightUnit===void 0?{}:{sectionHeightUnit:e.sectionHeightUnit},sectionHeightModePhone:"auto"}},I={boxShapePhone:"landscape"},_="needs a black-and-white setting on a Box picture (the old photograph followed it, else the site's Photography); 0 live US nodes store it (CLI read, 2026-11-03)",q=(e,t)=>({[e]:t,[R(e)]:t}),Z={textStyle:"heading-2",...n("headingMedium",40),weight:500,case:"none",lineHeight:1,letterSpacing:-.02},E=e=>(Array.isArray(e.stats)?e.stats:[]).filter(t=>t&&(String(t.value??"").trim()!==""||String(t.label??"").trim()!=="")),$=()=>({name:"Brand Text",boxProps:(e,t)=>({...y,...S("background")(e,t),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...T(e,l),...P(e,100)}),box:[...u,...B(l)],parts:[{kind:"group",name:"Words",props:()=>({...i,justify:"center",gap:28,gapPhone:28,sectionBorder:r({right:1}),sectionBorderPhone:r({}),...p,sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60,sectionPaddingRight:U}),parts:[s("eyebrow",n("label",14)),{kind:"text",key:"heading",role:"heading",props:m,style:{...v,case:"none"},mark:"accentItalic"},O(28),{kind:"group",name:"Stats",props:{...i,sectionPaddingTop:16,sectionPaddingTopPhone:16},parts:[{kind:"group",name:"Figures",props:e=>({...i,direction:"row",share:"equal",gap:24,gapPhone:24,maxWidth:520,phoneRow:Math.min(Math.max(E(e).length,1),3),...q("sectionBorder",r({top:1})),sectionPaddingTop:28,sectionPaddingTopPhone:28}),parts:[{kind:"list",key:"stats",name:"Stat",of:E,props:{...i,gap:4,gapPhone:4},parts:[{kind:"text",key:"value",props:W,style:Z},s("label",{...n("label",13),color:"labels",letterSpacing:.2})]}]}]}]},x("Picture","imageSrc",I)],drop:{...c,grayscale:_,...f}}),h=e=>{const t=e.textAlign==="center"||e.textAlign==="right"?{align:e.textAlign}:{},o=e.textAlignPhone==="left"||e.textAlignPhone==="center"||e.textAlignPhone==="right"?{alignPhone:e.textAlignPhone}:{};return{...t,...o}},J=e=>e.textAlign==="center"?"center":e.textAlign==="right"?"end":"stretch",Q=e=>Math.min(Math.max(a(e.overlay)??60,0),100),D=e=>typeof e=="string"&&e.trim()!=="",ee={...g,align:"center",alignPhone:"center",buttonFillOpacity:0,buttonBorder:{width:1},buttonPaddingTop:16,buttonPaddingRight:28,buttonPaddingBottom:16,buttonPaddingLeft:28,buttonPaddingTopPhone:12,buttonPaddingRightPhone:20,buttonPaddingBottomPhone:12,buttonPaddingLeftPhone:20},N=e=>({...x("Picture","imageSrc",(t,o)=>({...D(t.imageSrc)?{darken:40,darkenStyle:"even"}:{},placement:"center",...I,sectionBorder:r(e?{left:1}:{right:1}),...z(e?"left":"right",w(o))}),[{kind:"button",key:"imageBtnText",href:"imageBtnHref",variant:"ghost",props:ee,style:{...C(13,12),letterSpacing:.18}}]),when:t=>t.reverse===!0===e}),z=(e,t)=>{const o=Math.max(60-t,0);return{sectionPaddingLeft:e==="left"?60:o,sectionPaddingRight:e==="right"?60:o}},te={kind:"group",name:"Words",props:(e,t)=>{const o=e.reverse===!0;return{...i,justify:"center",align:J(e),placement:e.textAlign==="center"?"center":e.textAlign==="right"?"right":"left",...Y(e,72),gap:24,gapPhone:24,...D(e.textBgSrc)?{darken:Q(e),darkenStyle:"even"}:{},...p,sectionPaddingTop:100,sectionPaddingBottom:100,...z(o?"right":"left",w(t)),sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60}},box:[["textBgSrc","bgImage"]],parts:[{...s("eyebrow",n("label",14)),styleFrom:h},{kind:"text",key:"title",role:"heading",props:m,style:v,styleFrom:e=>({case:e.uppercase===!0?"upper":"none",...h(e)})},{...O(24),styleFrom:h},{kind:"group",name:"Button",props:{...i,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>{const t=h(e);return{...g,...t.align?{align:t.align}:{},...t.alignPhone?{alignPhone:t.alignPhone}:{}}}}]}]},oe=()=>({name:"Image & Text Split",boxProps:(e,t)=>({...y,...S("background")(e,t),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...T(e,l),...P(e,72)}),box:[...u,...B(l)],parts:[N(!1),te,N(!0)],drop:{reverse:"not a value of its own: it picks the order — the Picture Box first, or after the Words",uppercase:"not a value of its own: the heading part's Case — Upper when on, None (as typed) when off",textAlign:"read by each words part (its Align) and the Words Box (its Align); left writes nothing, as the old emitted no class",textAlignPhone:"read by each words part as its phone Align",textAlignTablet:"not carried to the words part's own tablet Align (`alignTablet`) yet: no old node stores it (new with the Tablet view's Text alignment row, 0 stored on the US sites 2026-11-06), so nothing moves",overlay:"read by the Words Box: its Darken over the words picture (60 when unset); no picture, no wash",grayscale:_,...c,...f}}),he={IntroBleed:G(),Manifesto:$(),Split:oe()};export{he as EDITORIAL_SECTION_TO_BOX};
@@ -1,9 +1,9 @@
1
- import type { OwnProps, PartRow, SectionToBoxRow, SlotFill } from "../../../sections/section-to-box.js";
1
+ import type { ConvertContext, OwnProps, PartRow, SectionToBoxRow, SlotFill } from "../../../sections/section-to-box.js";
2
2
  type Props = Record<string, unknown>;
3
3
  export declare const HEAD_ONLY_TYPES: readonly string[];
4
4
  export declare const HOST_ROW_HEAD_TYPES: readonly string[];
5
5
  export type HeadOnlyRowExtension = {
6
- slots?: Readonly<Record<string, readonly SlotFill[]>>;
6
+ slots?: Readonly<Record<string, readonly SlotFill[]>> | ((node: Props, ctx: ConvertContext) => Readonly<Record<string, readonly SlotFill[]>>);
7
7
  partsAfter?: readonly PartRow[];
8
8
  drop?: Readonly<Record<string, string>>;
9
9
  pressHeading?: boolean;
@@ -1 +1 @@
1
- import{SPLITTABLE_SECTIONS as h}from"../../../../../format/lib/sections/section-head-placement.js";import{SECTION_LABELS as f}from"../../../../../format/lib/document/section-catalog.js";import{SAME_KEYS as O,SECTION_BOX as T,innerPad as u}from"./section-to-box-row-parts.js";import{HEAD_BELOW as b,headLookOf as B,headReads as A,headTree as g}from"./section-head-looks.js";import{finiteNumber as w}from"../../../../../format/lib/finite-number.js";import{CARD_TEMPLATE_SLOT as m}from"../../../../../format/lib/content/card-template.js";import{footprintCardSeed as R}from"../../../../../format/lib/document/blocks/general/Footprint/card-seed.js";import{faqCardSeed as k,faqRunStyleKeys as C}from"../../../../../format/lib/document/blocks/general/FAQ/card-seed.js";import{BOX_SIDE_SPACE_PROP as H,BOX_SIDE_SPACE_SITE as L}from"../../../../../format/lib/content/box-side-space.js";import{INNER_BOX as N}from"../../../../../format/lib/document/seed-parts.js";import{SECTION_ACCENT_INHERIT as I}from"../../../../../format/lib/content/section-surface.js";const D=["Collections","FAQ","Footprint","GalleryB","LongRead","ProcessSteps","RelatedProducts"],J=["Events","FitmentTable","ProductGrid","SpecTable"],n=(e,o)=>()=>({top:e,topPhone:o}),l=e=>o=>{const t=u(o,e).sectionPaddingTop;return{top:t,topPhone:t}},F={Collections:n(120,70),Events:n(120,70),FAQ:n(120,70),GalleryB:n(120,70),FitmentTable:n(120,80),SpecTable:n(120,80),LongRead:n(120,80),RelatedProducts:n(0,0),Footprint:l("Footprint"),ProcessSteps:l("ProcessSteps"),ProductGrid:e=>({top:w(e.padTop)??120,topPhone:0})};function y(e,o={}){const t=h[e],s=F[e];if(!t||!s)throw new Error(`section-to-box-rows-head: "${e}" has no head row or no head room`);const p=t.padKey,E=g(e),c=A(e),P=t.headRows.filter(r=>![t.num,t.title,t.description,"linkText","linkHref"].includes(r)),d={...Object.fromEntries(P.filter(r=>!(r in c)).map(r=>[r,"a head setting no Header Box part reads (lib/document/blocks/general/section-head-looks `headReads`)"])),...o.drop};return{name:f[e]??e,boxProps:(r,i)=>{const a=s(r),_=o.roomBelow?{sectionPaddingBottom:o.roomBelow.bottom,sectionPaddingBottomPhone:o.roomBelow.bottomPhone}:{},S=typeof o.boxProps=="function"?o.boxProps(r,i):o.boxProps??{};return{...T,direction:"column",gap:b[B(e)],sectionPaddingTop:a.top,sectionPaddingTopPhone:a.topPhone,..._,...S}},box:[...O,...p?[[p,"sectionPaddingTop",(r,i)=>s(i).top]]:[]],parts:[E,...(()=>{const r={...p?{[p]:0}:{},...o.coreProps},i={kind:"core",keep:"rest",...Object.keys(r).length?{props:r}:{},...o.slots?{slots:o.slots}:{}};return[o.coreBox?{kind:"group",name:o.coreBox.name,props:o.coreBox.props,parts:[i]}:i]})(),...o.partsAfter??[]],...Object.keys(c).length?{reads:c}:{},...Object.keys(d).length?{drop:d}:{},...o.pressHeading?{pressKeepsEmpty:[t.title]}:{},...o.skip?{skip:o.skip}:{}}}const j={...N,direction:"accordion",rowStyle:"numbered"},X={Footprint:{slots:{[m]:[R()]},pressHeading:!0},FAQ:{slots:{[m]:[k()]},pressHeading:!0,coreBox:{name:"Questions",props:j},coreProps:{sectionAccent:I},roomBelow:{bottom:120,bottomPhone:70},boxProps:(e,o)=>o.press?{}:{[H]:L},skip:e=>{const o=e._partStyles??{},t=C().filter(s=>o[s]!==void 0);return t.length?`held: its rows carry their own run style (_partStyles ${t.map(s=>`"${s}"`).join(", ")}), which the Box path does not draw the same`:void 0}}},U=Object.fromEntries(D.map(e=>[e,y(e,X[e])]));export{j as FAQ_ROWS_BOX,X as HEAD_ONLY_CARD_SEEDS,U as HEAD_ONLY_SECTION_TO_BOX,D as HEAD_ONLY_TYPES,J as HOST_ROW_HEAD_TYPES,y as headOnlyRow};
1
+ import{SPLITTABLE_SECTIONS as u}from"../../../../../format/lib/sections/section-head-placement.js";import{SECTION_LABELS as b}from"../../../../../format/lib/document/section-catalog.js";import{SAME_KEYS as g,SECTION_BOX as B,innerPad as A}from"./section-to-box-row-parts.js";import{SITE_SIDE as m}from"efficient-easel/screen/lib/content/length-units";import{EDITORIAL_LINE as R,HEAD_BELOW as l,headLookOf as S,headReads as C,headTree as L}from"./section-head-looks.js";import{finiteNumber as I}from"../../../../../format/lib/finite-number.js";import{CARD_TEMPLATE_SLOT as E}from"../../../../../format/lib/content/card-template.js";import{footprintCardSeed as w}from"../../../../../format/lib/document/blocks/general/Footprint/card-seed.js";import{faqCardSeed as N,faqRunStyleKeys as k}from"../../../../../format/lib/document/blocks/general/FAQ/card-seed.js";import{PROCESS_COLUMNS_SLOT as D,processColumnSeeds as H}from"../../../../../format/lib/document/blocks/general/ProcessSteps/column-seed.js";import{BOX_SIDE_SPACE_PROP as F,BOX_SIDE_SPACE_SITE as y}from"../../../../../format/lib/content/box-side-space.js";import{INNER_BOX as j}from"../../../../../format/lib/document/seed-parts.js";import{SECTION_ACCENT_INHERIT as x}from"../../../../../format/lib/content/section-surface.js";const X=["Collections","FAQ","Footprint","GalleryB","LongRead","ProcessSteps","RelatedProducts"],so=["Events","FitmentTable","ProductGrid","SpecTable"],s=(e,o)=>()=>({top:e,topPhone:o}),P=e=>o=>{const r=A(o,e).sectionPaddingTop;return{top:r,topPhone:r}},Y={Collections:s(120,70),Events:s(120,70),FAQ:s(120,70),GalleryB:s(120,70),FitmentTable:s(120,80),SpecTable:s(120,80),LongRead:s(120,80),RelatedProducts:s(0,0),Footprint:P("Footprint"),ProcessSteps:P("ProcessSteps"),ProductGrid:e=>({top:I(e.padTop)??120,topPhone:0})};function M(e,o={}){const r=u[e],n=Y[e];if(!r||!n)throw new Error(`section-to-box-rows-head: "${e}" has no head row or no head room`);const p=r.padKey,_=L(e),c=C(e),O=r.headRows.filter(t=>![r.num,r.title,r.description,"linkText","linkHref"].includes(t)),d={...Object.fromEntries(O.filter(t=>!(t in c)).map(t=>[t,"a head setting no Header Box part reads (lib/document/blocks/general/section-head-looks `headReads`)"])),...o.drop};return{name:b[e]??e,boxProps:(t,i)=>{const a=n(t),h=o.roomBelow?{sectionPaddingBottom:o.roomBelow.bottom,sectionPaddingBottomPhone:o.roomBelow.bottomPhone}:{},f=typeof o.boxProps=="function"?o.boxProps(t,i):o.boxProps??{},T=S(e)==="editorial"?R:{};return{...B,direction:"column",gap:l[S(e)],sectionPaddingTop:a.top,sectionPaddingTopPhone:a.topPhone,...T,...h,...f}},box:[...g,...p?[[p,"sectionPaddingTop",(t,i)=>n(i).top]]:[]],parts:[_,...(()=>{const t={...p?{[p]:0}:{},...o.coreProps},i={kind:"core",keep:"rest",...Object.keys(t).length?{props:t}:{},...o.slots?{slots:o.slots}:{}};return[o.coreBox?{kind:"group",name:o.coreBox.name,props:o.coreBox.props,parts:[i]}:i]})(),...o.partsAfter??[]],...Object.keys(c).length?{reads:c}:{},...Object.keys(d).length?{drop:d}:{},...o.pressHeading?{pressKeepsEmpty:[r.title]}:{},...o.skip?{skip:o.skip}:{}}}const Q={...j,direction:"accordion",rowStyle:"numbered"},G={sectionPaddingLeft:m,sectionPaddingRight:m},K={Footprint:{slots:{[E]:[w()]},pressHeading:!0},ProcessSteps:{slots:(e,o)=>o.press?{[D]:H().map(r=>({...r,props:{...r.props,...G}}))}:{},boxProps:{gapPhone:l.editorial}},FAQ:{slots:{[E]:[N()]},pressHeading:!0,coreBox:{name:"Questions",props:Q},coreProps:{sectionAccent:x},roomBelow:{bottom:120,bottomPhone:70},boxProps:(e,o)=>o.press?{}:{[F]:y},skip:e=>{const o=e._partStyles??{},r=k().filter(n=>o[n]!==void 0);return r.length?`held: its rows carry their own run style (_partStyles ${r.map(n=>`"${n}"`).join(", ")}), which the Box path does not draw the same`:void 0}}},no=Object.fromEntries(X.map(e=>[e,M(e,K[e])]));export{Q as FAQ_ROWS_BOX,K as HEAD_ONLY_CARD_SEEDS,no as HEAD_ONLY_SECTION_TO_BOX,X as HEAD_ONLY_TYPES,so as HOST_ROW_HEAD_TYPES,M as headOnlyRow};
@@ -1 +1 @@
1
- import{tabletKey as R}from"efficient-easel/draw";import{SECTION_WIDTH_KEYS as D}from"../../../../../format/lib/content/section-width.js";import{SECTION_BOX_SLOT as W,SECTION_BOX_TYPE as j}from"../../../sections/section-to-box.js";import{BUTTON as k,DIM as i,DROP_COMMON as G,DROP_SIDE_PADDING as v,INNER_BOX as o,SAME_KEYS as K,SECTION_BOX as f,SH_LINK as S,TEXT as p,bandAccent as X,bandIndex as Y,bandPage as $,bandProps as P,bandWrites as z,smallText as c,wrapperPad as l}from"./section-to-box-row-parts.js";import{editorialHeadTree as U,token as d}from"./section-head-looks.js";import{boxPadding as m,labelStyle as F}from"../../../../../format/lib/document/seed-parts.js";import{readAnchorName as V}from"../../../../../format/lib/content/anchor-name.js";import{declaredBlockSource as x}from"../../../../../format/lib/content/block-sources.js";import{parseLocationTileShape as q,splitLegacyRegion as T}from"../../../../../format/lib/content/contact.js";import{groupColumns as g}from"../../../../../format/lib/locations-grid.js";import{phoneHref as J}from"../../../../../format/lib/links/phone-href.js";import{hasMapCoords as Q}from"../../../../../format/lib/map-styles.js";import{VIEW_HIDE_KEYS as Z}from"../../../../../format/lib/content/view-hide-class.js";const r=e=>typeof e=="string"?e:e==null?"":String(e),h=e=>Array.isArray(e.locations)?e.locations.map(t=>t??{}):[],s=e=>r(e.group),w=e=>`loc-${e}`,B=e=>r(e.state).trim()||T(r(e.region)).state,_=e=>r(e.country).trim()||T(r(e.region)).country,O=e=>[B(e),_(e)].filter(Boolean).join(" · "),ee=e=>h(e).some(t=>r(t.photo).trim()!==""),te=e=>h(e).some(t=>Q(Number(t.lat),Number(t.lng))),oe=(e,t)=>h(e).filter(n=>s(n)===s(t)).length,ne=(e,t)=>oe(e,t)===1?"wide":q(e.imageShape),y={top:100,bottom:100,topPhone:60,bottomPhone:60},E=48,a=(e,t={})=>({...F(e),...t}),u={top:1,right:1,bottom:1,left:1},b={...o,direction:"row",share:"equal",gap:0},re=e=>t=>t>g(t)?{...o,gap:0}:{...b,...t>1?{phoneRow:e}:{}},ae={kind:"group",name:"Gallery",props:{...o,gap:20,_hidden:!0},when:ee,parts:[{kind:"group",name:"Gallery head",props:{...o,direction:"row",justify:"between",align:"end",gap:24,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},parts:[c("galleryKicker",a(12,{color:"accent",letterSpacing:.3})),{kind:"text",key:"galleryHint",props:{...i,align:"right",alignPhone:"left"},style:a(11,{letterSpacing:.22,alignPhone:"left"})}]},{kind:"group",name:"Groups",props:{...o,gap:24},parts:[{kind:"list",key:"locations",name:"City picture",props:{...o,darken:85,darkenStyle:"bottom",placement:"bottom-left",sectionBorder:u,...m(12,12)},item:(e,t,n)=>({props:{...r(e.photo).trim()?{bgImage:r(e.photo),hover:"mono"}:{},link:`#${w(t)}`,boxShape:ne(n,e)}}),parts:[{kind:"text",key:"name",props:p,style:a(11,{letterSpacing:.22,color:"text"})}],groups:{of:s,name:"Group",props:{...o,gap:10},head:e=>({label:s(e[0]??{})}),parts:[c("label",a(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:re(2),perRow:g,rowName:"Row",rowProps:{...b,phoneRow:2}}}]}]},ie={kind:"group",name:"Words",props:{...o,gap:12,gapPhone:12,...m(28,28),sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",sectionHeightModePhone:"auto"},parts:[{kind:"group",name:"Name row",props:{...o,direction:"row",justify:"between",align:"start",gap:14,share:"content",phoneRow:2,sharePhone:"content",wrapPhone:"wrap",sectionPaddingBottom:6,sectionPaddingBottomPhone:6},parts:[{kind:"group",name:"Name",props:{...o,gap:6,gapPhone:6},parts:[{kind:"text",key:"name",role:"heading",props:p,style:{textStyle:"heading-3",...d("headingSmall",30),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}},{kind:"block",type:"Text",props:{...p,_partStyles:{text:a(12,{color:"accent",letterSpacing:.24,lineHeight:1.5})}},box:["region","state","country"].map(e=>[e,"text",(t,n)=>O(n)]),when:(e,t)=>O(t??{})!==""}]},{kind:"group",name:"Time zone",props:{...o,sectionBorder:u,...m(6,10)},parts:[{kind:"text",key:"timezone",props:{...i,textFit:"line"},style:a(12,{letterSpacing:.22,lineHeight:1.5})}]}]},{kind:"text",key:"address",props:i,style:{textStyle:"body-5",fontRole:"heading",...d("body",14),lineHeight:1.5}},{kind:"block",type:"ButtonBlock",props:{...k,...S,variant:"ghost",arrow:!1,_partStyles:{label:a(13,{letterSpacing:.18,color:"text",lineHeight:24/13})}},box:[["phone","label"],["phone","href",e=>J(r(e))??"#"]],when:(e,t)=>r(t?.phone).trim()!==""},{kind:"text",key:"hours",props:i,style:a(12,{letterSpacing:.18,lineHeight:1.7})}]},se={kind:"block",type:"LocationMap",props:e=>({mapTheme:typeof e.mapTheme=="string"?e.mapTheme:"auto"}),box:["name","lat","lng","mapsUrl","geocode",...["region","state"].map(e=>[e,"state",(t,n)=>B(n)]),...["region","country"].map(e=>[e,"country",(t,n)=>_(n)])]},pe={kind:"group",name:"Map",props:{...o,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[se]},ce={kind:"list",key:"locations",name:"City",props:(e,t)=>({...o,gap:0,justify:"between",sectionBorder:u,jumpHighlight:!0,sectionAccent:Y(e,t)>=0?$(e.sectionAccent,t):-1}),item:(e,t)=>({props:{anchor:w(t)}}),parts:[ie,pe],groups:{of:s,name:"Group",props:{...o,gap:20},head:e=>{const t=e[0]??{};return{key:s(t),groupName:r(t.groupName),count:`${e.length} location${e.length===1?"":"s"}`}},parts:[{kind:"group",name:"Group head",props:{...o,direction:"row",justify:"between",align:"end",gap:16,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},when:(e,t)=>r(t?.key).trim()!=="",parts:[c("key",a(13,{color:"accent",letterSpacing:.3})),{kind:"text",key:"groupName",role:"heading",props:p,style:{textStyle:"heading-3",...d("headingSmall",24),case:"upper",weight:500,letterSpacing:-.01}},{kind:"text",key:"count",props:i,style:a(12,{letterSpacing:.22})}]}],itemsName:"Cities",itemsProps:e=>({...b,columns:g(e),[R("columns")]:1})}},N=a(10,{letterSpacing:.25}),le={kind:"block",type:j,props:{...o,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:te,slot:W,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...i,text:"Location coordinates ©",_partStyles:{text:N}}},{kind:"block",type:"ButtonBlock",props:{...k,...S,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...N,color:"labels"}}}}]},C=(e,t)=>Object.fromEntries(t.filter(n=>e[n]!==void 0).map(n=>[n,e[n]])),M=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],H=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],I=e=>e.map(t=>[t,t,(n,L)=>l(L,y)[t]]),A=["sectionAccent","sectionAccent",X],de=["gridSpan",...Z,...Object.values(D)],me={name:"City pictures",skip:e=>x(e)?`fed by the data source "${x(e)}": its cities are read as the page is served, not stored on the node`:void 0,boxProps:(e,t)=>({...f,direction:"column",gap:40,anchor:"studios",...C(l(e,y),M),sectionPaddingBottom:E,sectionPaddingBottomPhone:E,...P(e,t)}),box:[...K.filter(e=>e!=="sectionAccent"&&e!=="anchor"),A,["anchor","anchor",e=>V(e).trim()?e:"studios"],...I(M)],parts:[U("sectionNumber","heading","tagline"),ae],also:[{name:"City maps",boxProps:(e,t)=>({...f,direction:"column",gap:40,sectionBorder:{bottom:1},sectionPaddingTop:0,sectionPaddingTopPhone:0,...C(l(e,y),H),...P(e,t)}),box:[...de,A,...I(H)],parts:[ce,le]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:z,drop:{...G,...v,apiKey:"a stored Google Maps key from before the map needed none: the website's one map (components/SiteMap) takes no key, and a key is a credential, never page content",mapId:"a Google Maps style id from the same retired map: nothing in src/ reads it",gallery:"the retired separate tile list: the wall is derived from the cities (`components/ContactLocations`), nothing in src/ reads it",dataSource:"always empty here: a node fed by a source is skipped (see skip)"}},_e={ContactLocations:me};export{_e as LOCATIONS_SECTION_TO_BOX};
1
+ import{tabletKey as D}from"efficient-easel/draw";import{SECTION_WIDTH_KEYS as W}from"../../../../../format/lib/content/section-width.js";import{SECTION_BOX_SLOT as j,SECTION_BOX_TYPE as G}from"../../../sections/section-to-box.js";import{BUTTON as k,DIM as i,DROP_COMMON as v,DROP_SIDE_PADDING as K,INNER_BOX as o,SAME_KEYS as X,SECTION_BOX as f,SH_LINK as S,TEXT as p,bandAccent as Y,bandIndex as $,bandPage as z,bandProps as P,bandWrites as U,smallText as c,wrapperPad as l}from"./section-to-box-row-parts.js";import{EDITORIAL_LINE as x,editorialHeadTree as F,token as d}from"./section-head-looks.js";import{boxPadding as m,labelStyle as V}from"../../../../../format/lib/document/seed-parts.js";import{readAnchorName as q}from"../../../../../format/lib/content/anchor-name.js";import{declaredBlockSource as T}from"../../../../../format/lib/content/block-sources.js";import{parseLocationTileShape as J,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 Z}from"../../../../../format/lib/map-styles.js";import{VIEW_HIDE_KEYS as ee}from"../../../../../format/lib/content/view-hide-class.js";const r=e=>typeof e=="string"?e:e==null?"":String(e),h=e=>Array.isArray(e.locations)?e.locations.map(t=>t??{}):[],s=e=>r(e.group),B=e=>`loc-${e}`,_=e=>r(e.state).trim()||w(r(e.region)).state,O=e=>r(e.country).trim()||w(r(e.region)).country,E=e=>[_(e),O(e)].filter(Boolean).join(" · "),te=e=>h(e).some(t=>r(t.photo).trim()!==""),oe=e=>h(e).some(t=>Z(Number(t.lat),Number(t.lng))),ne=(e,t)=>h(e).filter(n=>s(n)===s(t)).length,re=(e,t)=>ne(e,t)===1?"wide":J(e.imageShape),y={top:100,bottom:100,topPhone:60,bottomPhone:60},N=48,a=(e,t={})=>({...V(e),...t}),u={top:1,right:1,bottom:1,left:1},b={...o,direction:"row",share:"equal",gap:0},ae=e=>t=>t>g(t)?{...o,gap:0}:{...b,...t>1?{phoneRow:e}:{}},ie={kind:"group",name:"Gallery",props:{...o,gap:20,_hidden:!0},when:te,parts:[{kind:"group",name:"Gallery head",props:{...o,direction:"row",justify:"between",align:"end",gap:24,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},parts:[c("galleryKicker",a(12,{color:"accent",letterSpacing:.3})),{kind:"text",key:"galleryHint",props:{...i,align:"right",alignPhone:"left"},style:a(11,{letterSpacing:.22,alignPhone:"left"})}]},{kind:"group",name:"Groups",props:{...o,gap:24},parts:[{kind:"list",key:"locations",name:"City picture",props:{...o,darken:85,darkenStyle:"bottom",placement:"bottom-left",sectionBorder:u,...m(12,12)},item:(e,t,n)=>({props:{...r(e.photo).trim()?{bgImage:r(e.photo),hover:"mono"}:{},link:`#${B(t)}`,boxShape:re(n,e)}}),parts:[{kind:"text",key:"name",props:p,style:a(11,{letterSpacing:.22,color:"text"})}],groups:{of:s,name:"Group",props:{...o,gap:10},head:e=>({label:s(e[0]??{})}),parts:[c("label",a(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:ae(2),perRow:g,rowName:"Row",rowProps:{...b,phoneRow:2}}}]}]},se={kind:"group",name:"Words",props:{...o,gap:12,gapPhone:12,...m(28,28),sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",sectionHeightModePhone:"auto"},parts:[{kind:"group",name:"Name row",props:{...o,direction:"row",justify:"between",align:"start",gap:14,share:"content",phoneRow:2,sharePhone:"content",wrapPhone:"wrap",sectionPaddingBottom:6,sectionPaddingBottomPhone:6},parts:[{kind:"group",name:"Name",props:{...o,gap:6,gapPhone:6},parts:[{kind:"text",key:"name",role:"heading",props:p,style:{textStyle:"heading-3",...d("headingSmall",30),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}},{kind:"block",type:"Text",props:{...p,_partStyles:{text:a(12,{color:"accent",letterSpacing:.24,lineHeight:1.5})}},box:["region","state","country"].map(e=>[e,"text",(t,n)=>E(n)]),when:(e,t)=>E(t??{})!==""}]},{kind:"group",name:"Time zone",props:{...o,sectionBorder:u,...m(6,10)},parts:[{kind:"text",key:"timezone",props:{...i,textFit:"line"},style:a(12,{letterSpacing:.22,lineHeight:1.5})}]}]},{kind:"text",key:"address",props:i,style:{textStyle:"body-5",fontRole:"heading",...d("body",14),lineHeight:1.5}},{kind:"block",type:"ButtonBlock",props:{...k,...S,variant:"ghost",arrow:!1,_partStyles:{label:a(13,{letterSpacing:.18,color:"text",lineHeight:24/13})}},box:[["phone","label"],["phone","href",e=>Q(r(e))??"#"]],when:(e,t)=>r(t?.phone).trim()!==""},{kind:"text",key:"hours",props:i,style:a(12,{letterSpacing:.18,lineHeight:1.7})}]},pe={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)=>_(n)]),...["region","country"].map(e=>[e,"country",(t,n)=>O(n)])]},ce={kind:"group",name:"Map",props:{...o,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[pe]},le={kind:"list",key:"locations",name:"City",props:(e,t)=>({...o,gap:0,justify:"between",sectionBorder:u,jumpHighlight:!0,sectionAccent:$(e,t)>=0?z(e.sectionAccent,t):-1}),item:(e,t)=>({props:{anchor:B(t)}}),parts:[se,ce],groups:{of:s,name:"Group",props:{...o,gap:20},head:e=>{const t=e[0]??{};return{key:s(t),groupName:r(t.groupName),count:`${e.length} location${e.length===1?"":"s"}`}},parts:[{kind:"group",name:"Group head",props:{...o,direction:"row",justify:"between",align:"end",gap:16,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},when:(e,t)=>r(t?.key).trim()!=="",parts:[c("key",a(13,{color:"accent",letterSpacing:.3})),{kind:"text",key:"groupName",role:"heading",props:p,style:{textStyle:"heading-3",...d("headingSmall",24),case:"upper",weight:500,letterSpacing:-.01}},{kind:"text",key:"count",props:i,style:a(12,{letterSpacing:.22})}]}],itemsName:"Cities",itemsProps:e=>({...b,columns:g(e),[D("columns")]:1})}},C=a(10,{letterSpacing:.25}),de={kind:"block",type:G,props:{...o,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:oe,slot:j,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...i,text:"Location coordinates ©",_partStyles:{text:C}}},{kind:"block",type:"ButtonBlock",props:{...k,...S,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...C,color:"labels"}}}}]},I=(e,t)=>Object.fromEntries(t.filter(n=>e[n]!==void 0).map(n=>[n,e[n]])),M=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],H=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],A=e=>e.map(t=>[t,t,(n,R)=>l(R,y)[t]]),L=["sectionAccent","sectionAccent",Y],me=["gridSpan",...ee,...Object.values(W)],ge={name:"City pictures",skip:e=>T(e)?`fed by the data source "${T(e)}": its cities are read as the page is served, not stored on the node`:void 0,boxProps:(e,t)=>({...f,direction:"column",gap:40,anchor:"studios",...x,...I(l(e,y),M),sectionPaddingBottom:N,sectionPaddingBottomPhone:N,...P(e,t)}),box:[...X.filter(e=>e!=="sectionAccent"&&e!=="anchor"),L,["anchor","anchor",e=>q(e).trim()?e:"studios"],...A(M)],parts:[F("sectionNumber","heading","tagline"),ie],also:[{name:"City maps",boxProps:(e,t)=>({...f,direction:"column",gap:40,sectionBorder:{bottom:1},...x,sectionPaddingTop:0,sectionPaddingTopPhone:0,...I(l(e,y),H),...P(e,t)}),box:[...me,L,...A(H)],parts:[le,de]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:U,drop:{...v,...K,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)"}},Oe={ContactLocations:ge};export{Oe as LOCATIONS_SECTION_TO_BOX};