efficient-web-builder 47.1.0 → 48.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 (194) hide show
  1. package/CHANGELOG.md +67 -1
  2. package/dist/editor/components/BlockGapField.d.ts +15 -1
  3. package/dist/editor/components/BlockGapField.js +1 -1
  4. package/dist/editor/components/DuplicateToPageMenu.d.ts +2 -0
  5. package/dist/editor/components/DuplicateToPageMenu.js +1 -1
  6. package/dist/editor/components/HeroPartPanel.js +1 -1
  7. package/dist/editor/components/HoverEffectField.d.ts +1 -0
  8. package/dist/editor/components/HoverEffectField.js +1 -1
  9. package/dist/editor/components/MediaUploadField.d.ts +9 -0
  10. package/dist/editor/components/MediaUploadField.js +1 -1
  11. package/dist/editor/components/PartSettingsPanel.d.ts +2 -1
  12. package/dist/editor/components/PartSettingsPanel.js +1 -1
  13. package/dist/editor/components/PreviewPartAnchors.d.ts +3 -1
  14. package/dist/editor/components/PreviewPartAnchors.js +1 -1
  15. package/dist/editor/components/SameInEveryViewNote.d.ts +1 -0
  16. package/dist/editor/components/SameInEveryViewNote.js +1 -0
  17. package/dist/editor/components/SaveAsTemplateButton.d.ts +5 -0
  18. package/dist/editor/components/SaveAsTemplateButton.js +1 -0
  19. package/dist/editor/components/SideSpaceField.d.ts +31 -1
  20. package/dist/editor/components/SideSpaceField.js +1 -1
  21. package/dist/editor/components/SiteFields.d.ts +4 -1
  22. package/dist/editor/components/SiteFields.js +1 -1
  23. package/dist/editor/components/SiteRestoreNotice.js +1 -1
  24. package/dist/editor/components/SiteTextStylesField.js +1 -1
  25. package/dist/editor/components/StandaloneSectionEditor.js +1 -1
  26. package/dist/editor/components/StorefrontEditor.js +1 -1
  27. package/dist/editor/components/TickerSettingsPanel.js +1 -1
  28. package/dist/editor/components/VersionHistoryDrawer.js +1 -1
  29. package/dist/editor/components/WebsitePreviewButton.d.ts +2 -1
  30. package/dist/editor/components/WebsitePreviewButton.js +1 -1
  31. package/dist/editor/components/WebsiteScreenParts.js +1 -1
  32. package/dist/editor/components/WebsiteSettingsPanel.d.ts +10 -0
  33. package/dist/editor/components/WebsiteSettingsPanel.js +1 -1
  34. package/dist/editor/components/usePartMotion.d.ts +10 -0
  35. package/dist/editor/components/usePartMotion.js +1 -0
  36. package/dist/editor/components/useSocialSettings.d.ts +2 -2
  37. package/dist/editor/lib/animation/AnimationDurationRow.d.ts +4 -0
  38. package/dist/editor/lib/animation/AnimationDurationRow.js +1 -1
  39. package/dist/editor/lib/animation/entrance-fields.js +1 -1
  40. package/dist/editor/lib/animation/fields.d.ts +1 -1
  41. package/dist/editor/lib/animation/fields.js +1 -1
  42. package/dist/editor/lib/animation/hover-fields.d.ts +1 -0
  43. package/dist/editor/lib/animation/hover-fields.js +1 -0
  44. package/dist/editor/lib/animation/loop-fields.js +1 -1
  45. package/dist/editor/lib/document/add-target.d.ts +2 -1
  46. package/dist/editor/lib/document/add-target.js +1 -1
  47. package/dist/editor/lib/document/blocks/general/ButtonBlock/fields.js +1 -1
  48. package/dist/editor/lib/document/blocks/general/Divider/fields.js +1 -1
  49. package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
  50. package/dist/editor/lib/document/blocks/general/HeroGroup/fields.js +1 -1
  51. package/dist/editor/lib/document/blocks/general/Text/fields.js +1 -1
  52. package/dist/editor/lib/document/blocks/general/index.d.ts +2 -2
  53. package/dist/editor/lib/document/build-config.js +1 -1
  54. package/dist/editor/lib/document/canvas-typing.js +1 -1
  55. package/dist/editor/lib/document/card-display-chips.d.ts +33 -0
  56. package/dist/editor/lib/document/card-display-chips.js +1 -0
  57. package/dist/editor/lib/document/controls.d.ts +19 -2
  58. package/dist/editor/lib/document/controls.js +1 -1
  59. package/dist/editor/lib/document/field-groups.js +1 -1
  60. package/dist/editor/lib/document/geocode-resolve.d.ts +1 -0
  61. package/dist/editor/lib/document/geocode-resolve.js +1 -1
  62. package/dist/editor/lib/document/live-number-field.d.ts +12 -0
  63. package/dist/editor/lib/document/live-number-field.js +1 -0
  64. package/dist/editor/lib/document/page-root.js +2 -2
  65. package/dist/editor/lib/document/part-motion-canvas.d.ts +10 -0
  66. package/dist/editor/lib/document/part-motion-canvas.js +2 -0
  67. package/dist/editor/lib/editor-document-adapter.d.ts +5 -1
  68. package/dist/editor/lib/editor-document-adapter.js +1 -1
  69. package/dist/editor/lib/sections/section-dry-run.d.ts +34 -0
  70. package/dist/editor/lib/sections/section-dry-run.js +2 -2
  71. package/dist/format/lib/animation/hover.d.ts +5 -0
  72. package/dist/format/lib/animation/hover.js +1 -0
  73. package/dist/format/lib/animation/index.d.ts +1 -0
  74. package/dist/format/lib/animation/index.js +1 -1
  75. package/dist/format/lib/content/block-sources.d.ts +9 -0
  76. package/dist/format/lib/content/block-sources.js +1 -1
  77. package/dist/format/lib/content/box-layout.d.ts +20 -1
  78. package/dist/format/lib/content/box-layout.js +1 -1
  79. package/dist/format/lib/content/box-separator.js +1 -1
  80. package/dist/format/lib/content/card-template.d.ts +9 -0
  81. package/dist/format/lib/content/card-template.js +1 -1
  82. package/dist/format/lib/content/container-gap.d.ts +11 -2
  83. package/dist/format/lib/content/container-gap.js +1 -1
  84. package/dist/format/lib/content/count-numbers.d.ts +7 -0
  85. package/dist/format/lib/content/count-numbers.js +1 -0
  86. package/dist/format/lib/content/page-width.d.ts +11 -0
  87. package/dist/format/lib/content/page-width.js +1 -1
  88. package/dist/format/lib/content/section-sticky.d.ts +1 -0
  89. package/dist/format/lib/content/section-sticky.js +1 -1
  90. package/dist/format/lib/content/site-gutter.d.ts +6 -0
  91. package/dist/format/lib/content/site-gutter.js +1 -1
  92. package/dist/format/lib/document/easel-row-words.d.ts +2 -0
  93. package/dist/format/lib/document/easel-row-words.js +1 -1
  94. package/dist/format/lib/document/panel-bands.d.ts +1 -0
  95. package/dist/format/lib/document/panel-bands.js +1 -1
  96. package/dist/format/lib/document/panel-tabs.d.ts +8 -0
  97. package/dist/format/lib/document/panel-tabs.js +1 -0
  98. package/dist/format/lib/document/part-records.d.ts +6 -0
  99. package/dist/format/lib/document/part-records.js +1 -0
  100. package/dist/format/lib/document/passes/registry-context.d.ts +1 -1
  101. package/dist/format/lib/document/passes/registry-context.js +1 -1
  102. package/dist/format/lib/document/passes/settings-groups.js +1 -1
  103. package/dist/format/lib/document/passes/types.d.ts +2 -0
  104. package/dist/format/lib/document/section-groups.d.ts +1 -1
  105. package/dist/format/lib/document/site-gap-fields.d.ts +1 -1
  106. package/dist/format/lib/document/site-gap-fields.js +1 -1
  107. package/dist/format/lib/editor-words-catalogue.d.ts +11 -0
  108. package/dist/format/lib/editor-words-catalogue.js +4 -4
  109. package/dist/format/lib/fit-words.js +4 -3
  110. package/dist/format/lib/hero-ticker.d.ts +1 -0
  111. package/dist/format/lib/hero-ticker.js +1 -1
  112. package/dist/format/lib/sections/strip-shape.d.ts +1 -0
  113. package/dist/format/lib/sections/strip-shape.js +1 -1
  114. package/dist/format/lib/site-theme-row.d.ts +2 -0
  115. package/dist/format/lib/site-twin-row.d.ts +5 -0
  116. package/dist/format/lib/site-twin-row.js +1 -0
  117. package/dist/format/lib/source-rules/flat-theme-palette.js +1 -1
  118. package/dist/format/lib/source-rules/one-loop-module.js +3 -3
  119. package/dist/render/components/BlockFrame.d.ts +2 -1
  120. package/dist/render/components/BlockFrame.js +1 -1
  121. package/dist/render/components/Btn.js +1 -1
  122. package/dist/render/components/CardRowContext.d.ts +3 -1
  123. package/dist/render/components/CardRowContext.js +1 -1
  124. package/dist/render/components/CountRowsContext.d.ts +8 -0
  125. package/dist/render/components/CountRowsContext.js +1 -0
  126. package/dist/render/components/Flex.d.ts +5 -1
  127. package/dist/render/components/Flex.js +1 -1
  128. package/dist/render/components/Grid.d.ts +2 -1
  129. package/dist/render/components/Grid.js +1 -1
  130. package/dist/render/components/HeroGroup.d.ts +2 -1
  131. package/dist/render/components/HeroGroup.js +1 -1
  132. package/dist/render/components/HeroSection.d.ts +2 -1
  133. package/dist/render/components/HeroSection.js +1 -1
  134. package/dist/render/components/HeroSingle.d.ts +2 -1
  135. package/dist/render/components/HeroSingle.js +1 -1
  136. package/dist/render/components/ImageBlock.d.ts +4 -1
  137. package/dist/render/components/ImageBlock.js +1 -1
  138. package/dist/render/components/InBoxContext.d.ts +1 -0
  139. package/dist/render/components/InBoxContext.js +1 -1
  140. package/dist/render/components/IntroBleed.js +1 -1
  141. package/dist/render/components/LocationMap.js +1 -1
  142. package/dist/render/components/PartStyledKind.js +1 -1
  143. package/dist/render/components/PartStyledText.js +1 -1
  144. package/dist/render/components/PreviewHeaderContext.d.ts +9 -1
  145. package/dist/render/components/PreviewHeaderContext.js +1 -1
  146. package/dist/render/components/PublishedPartStylesContext.d.ts +4 -1
  147. package/dist/render/components/PublishedPartStylesContext.js +1 -1
  148. package/dist/render/components/SectionAnimation.d.ts +8 -2
  149. package/dist/render/components/SectionAnimation.js +1 -1
  150. package/dist/render/components/SiteGutterFrame.d.ts +7 -1
  151. package/dist/render/components/SiteGutterFrame.js +1 -1
  152. package/dist/render/lib/animation/LoopTrack.d.ts +2 -2
  153. package/dist/render/lib/animation/LoopTrack.js +1 -1
  154. package/dist/render/lib/animation/part-motion.d.ts +21 -0
  155. package/dist/render/lib/animation/part-motion.js +1 -0
  156. package/dist/render/lib/content/block-size.js +1 -1
  157. package/dist/render/lib/content/button-look.js +1 -1
  158. package/dist/render/lib/content/section-edge.d.ts +10 -0
  159. package/dist/render/lib/content/section-edge.js +1 -0
  160. package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
  161. package/dist/render/lib/document/blocks/general/Grid/render.js +1 -1
  162. package/dist/render/lib/document/blocks/general/Hero/render.js +1 -1
  163. package/dist/render/lib/document/blocks/general/HeroGroup/render.js +1 -1
  164. package/dist/render/lib/document/blocks/general/HeroSingle/render.js +1 -1
  165. package/dist/render/lib/document/blocks/general/ImageBlock/render.js +1 -1
  166. package/dist/render/lib/document/blocks/general/Text/render.js +1 -1
  167. package/dist/render/lib/document/blocks/general/section-head-looks.d.ts +1 -0
  168. package/dist/render/lib/document/blocks/general/section-head-looks.js +2 -2
  169. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.d.ts +8 -0
  170. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
  171. package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.d.ts +1 -1
  172. package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.js +1 -1
  173. package/dist/render/lib/document/blocks/general/section-to-box-rows-locations.js +1 -1
  174. package/dist/render/lib/document/blocks/general/section-to-box-rows-pageheader.d.ts +2 -0
  175. package/dist/render/lib/document/blocks/general/section-to-box-rows-pageheader.js +1 -0
  176. package/dist/render/lib/document/blocks/general/section-to-box-rows-stats.js +1 -1
  177. package/dist/render/lib/document/blocks/general/section-to-box-rows-strip.js +1 -1
  178. package/dist/render/lib/document/blocks/general/section-to-box-rows-timeline.js +2 -2
  179. package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
  180. package/dist/render/lib/document/hero-media-parts.d.ts +2 -2
  181. package/dist/render/lib/document/part-styles.d.ts +10 -1
  182. package/dist/render/lib/document/part-styles.js +2 -2
  183. package/dist/render/lib/document/passes/block-size.js +1 -1
  184. package/dist/render/lib/document/passes/clickable-parts.js +1 -1
  185. package/dist/render/lib/document/passes/section-anchor.js +1 -1
  186. package/dist/render/lib/document/passes/section-padding.js +1 -1
  187. package/dist/render/lib/document/passes/slots-start-afresh.js +1 -1
  188. package/dist/render/lib/sections/section-to-box.d.ts +5 -1
  189. package/dist/render/lib/sections/section-to-box.js +1 -1
  190. package/dist/render/lib/text-styles/site-text-styles.d.ts +16 -4
  191. package/dist/render/lib/text-styles/site-text-styles.js +2 -2
  192. package/package.json +3 -3
  193. package/dist/editor/lib/document/selected-host.d.ts +0 -2
  194. package/dist/editor/lib/document/selected-host.js +0 -1
@@ -1 +1 @@
1
- "use client";import{jsx as U}from"react/jsx-runtime";import{createContext as Bt,useCallback as e,useContext as Mt,useMemo as Nt,useState as Yt}from"react";import{EditorSiteLogoContext as jt}from"./SiteLogoContext.js";import{IDENTITY_CARD_GAP as R,DEFAULT_HEADING_COMPRESSION as O,DEFAULT_HEADING_TYPOGRAPHY as g,DEFAULT_SIZES as B,DEFAULT_SWITCH_SHOWN as M,DEFAULT_THEME_MODE as N,DEFAULT_THEME_VALUE as Y}from"../../format/lib/theme.js";import{DEFAULT_FONTS as j}from"../../format/lib/fonts.js";const z=Bt({settings:null,setSettings:()=>{},primeSettings:()=>{},websiteName:null,templateChrome:!1,templateName:null,chromePlaceholder:!1,themeMode:N,setThemeMode:()=>{},themeSwitchShown:M,setThemeSwitchShown:()=>{},theme:Y,themeRow:"none",setTheme:()=>{},fonts:j,setFonts:()=>{},sizes:B,setSizes:()=>{},cornerRadiusPx:null,setCornerRadiusPx:()=>{},cardShadow:null,setCardShadow:()=>{},shadowColor:null,setShadowColor:()=>{},cardGap:R,setCardGap:()=>{},hoverEffect:null,setHoverEffect:()=>{},headingCompression:O,setHeadingCompression:()=>{},siteWidth:null,setSiteWidth:()=>{},siteGutter:null,blockGap:null,setSiteGutter:()=>{},setBlockGap:()=>{},headingTypography:g,setHeadingTypography:()=>{},textStyles:null,setTextStyles:()=>{},wordStyles:null,heroBackgroundFollowsWidth:null,setHeroBackgroundFollowsWidth:()=>{},sectionBackgroundWidth:null,setSectionBackgroundWidth:()=>{},sectionContentWidth:null,setSectionContentWidth:()=>{},photographyGrayscale:null,setPhotographyGrayscale:()=>{},shareButtonOnPosts:null,setShareButtonOnPosts:()=>{},themeFromDocument:!1});function Kt({children:o,websiteName:s=null,templateChrome:l=!1,templateName:r=null,chromePlaceholder:u=!1,themeMode:b=N,onThemeModeChange:i,themeSwitchShown:V=M,onThemeSwitchShownChange:c,theme:Z=Y,themeRow:q="none",onThemeChange:d,fonts:J=j,onFontsChange:S,sizes:K=B,onSizesChange:a,cornerRadiusPx:Q=null,onCornerRadiusPxChange:p,cardShadow:X=null,onCardShadowChange:m,shadowColor:$=null,onShadowColorChange:f,cardGap:C=R,onCardGapChange:E,hoverEffect:tt=null,onHoverEffectChange:h,headingCompression:et=O,onHeadingCompressionChange:T,siteWidth:st=null,onSiteWidthChange:x,siteGutter:ot=null,blockGap:lt=null,onSiteGutterChange:w,onBlockGapChange:D,headingTypography:nt=g,onHeadingTypographyChange:F,textStyles:rt=null,onTextStylesChange:_,wordStyles:ut=null,heroBackgroundFollowsWidth:it=null,onHeroBackgroundFollowsWidthChange:H,sectionBackgroundWidth:ct=null,onSectionBackgroundWidthChange:P,sectionContentWidth:dt=null,onSectionContentWidthChange:A,photographyGrayscale:St=null,onPhotographyGrayscaleChange:k,shareButtonOnPosts:at=null,onShareButtonOnPostsChange:v,themeFromDocument:pt=!1}){const[n,G]=Yt(null),mt=e(t=>G(gt=>gt??t),[]),ft=e(t=>i?.(t),[i]),Et=e(t=>c?.(t),[c]),ht=e(t=>d?.(t),[d]),Tt=e(t=>S?.(t),[S]),xt=e(t=>a?.(t),[a]),wt=e(t=>x?.(t),[x]),Dt=e(t=>w?.(t),[w]),Ft=e(t=>D?.(t),[D]),_t=e(t=>H?.(t),[H]),Ht=e(t=>P?.(t),[P]),Pt=e(t=>A?.(t),[A]),At=e(t=>k?.(t),[k]),kt=e(t=>v?.(t),[v]),vt=e(t=>p?.(t),[p]),Gt=e(t=>m?.(t),[m]),Wt=e(t=>f?.(t),[f]),yt=e(t=>E?.(t),[E]),It=e(t=>h?.(t),[h]),Lt=e(t=>T?.(t),[T]),Ut=e(t=>F?.(t),[F]),Rt=e(t=>_?.(t),[_]),W=n?.logoUrl,y=n?.logoReversed,I=n?.logoInkIsDark,L=n!==null,Ot=Nt(()=>({logo:L?{logoUrl:W,logoReversed:y,logoInkIsDark:I}:null,placeholder:l||u,wordmark:l?r:s}),[L,W,y,I,l,u,r,s]);return U(jt.Provider,{value:Ot,children:U(z.Provider,{value:{settings:n,setSettings:G,primeSettings:mt,websiteName:s,templateChrome:l,templateName:r,chromePlaceholder:u,themeMode:b,setThemeMode:ft,themeSwitchShown:V,setThemeSwitchShown:Et,theme:Z,themeRow:q,setTheme:ht,fonts:J,setFonts:Tt,sizes:K,setSizes:xt,cornerRadiusPx:Q,setCornerRadiusPx:vt,cardShadow:X,setCardShadow:Gt,shadowColor:$,setShadowColor:Wt,cardGap:C,setCardGap:yt,hoverEffect:tt,setHoverEffect:It,headingCompression:et,setHeadingCompression:Lt,siteWidth:st,setSiteWidth:wt,siteGutter:ot,blockGap:lt,setSiteGutter:Dt,setBlockGap:Ft,headingTypography:nt,setHeadingTypography:Ut,textStyles:rt,setTextStyles:Rt,wordStyles:ut,heroBackgroundFollowsWidth:it,setHeroBackgroundFollowsWidth:_t,sectionBackgroundWidth:ct,setSectionBackgroundWidth:Ht,sectionContentWidth:dt,setSectionContentWidth:Pt,photographyGrayscale:St,setPhotographyGrayscale:At,shareButtonOnPosts:at,setShareButtonOnPosts:kt,themeFromDocument:pt},children:o})})}const zt=()=>Mt(z);function Qt(o,s,l){return o?s===l?"read":"loading":"none"}function Xt(o,s){return{value:o,readFor:s}}function $t(o,s,l){return{value:s,readFor:o.readFor===l?l:null}}function Ct(){const{sectionContentWidth:o,themeFromDocument:s}=zt();return s?null:o}export{z as PreviewHeaderContext,Kt as PreviewHeaderProvider,Qt as siteThemeRow,$t as themeEdited,Xt as themeSeeded,zt as usePreviewHeader,Ct as useSiteContentWidth};
1
+ "use client";import{jsx as B}from"react/jsx-runtime";import{createContext as zt,useCallback as e,useContext as Vt,useMemo as Zt,useState as qt}from"react";import{EditorSiteLogoContext as Jt}from"./SiteLogoContext.js";import{IDENTITY_CARD_GAP as O,DEFAULT_HEADING_COMPRESSION as M,DEFAULT_HEADING_TYPOGRAPHY as g,DEFAULT_SIZES as N,DEFAULT_SWITCH_SHOWN as Y,DEFAULT_THEME_MODE as b,DEFAULT_THEME_VALUE as j}from"../../format/lib/theme.js";import{DEFAULT_FONTS as z}from"../../format/lib/fonts.js";const V=zt({settings:null,setSettings:()=>{},primeSettings:()=>{},websiteName:null,templateChrome:!1,templateName:null,chromePlaceholder:!1,themeMode:b,setThemeMode:()=>{},themeSwitchShown:Y,setThemeSwitchShown:()=>{},theme:j,themeRow:"none",setTheme:()=>{},fonts:z,setFonts:()=>{},sizes:N,setSizes:()=>{},cornerRadiusPx:null,setCornerRadiusPx:()=>{},cardShadow:null,setCardShadow:()=>{},shadowColor:null,setShadowColor:()=>{},cardGap:O,setCardGap:()=>{},hoverEffect:null,setHoverEffect:()=>{},headingCompression:M,setHeadingCompression:()=>{},siteWidth:null,setSiteWidth:()=>{},siteGutter:null,siteGutterPhone:null,blockGap:null,blockGapPhone:null,setSiteGutter:()=>{},setSiteGutterPhone:()=>{},setBlockGap:()=>{},setBlockGapPhone:()=>{},headingTypography:g,setHeadingTypography:()=>{},textStyles:null,setTextStyles:()=>{},wordStyles:null,heroBackgroundFollowsWidth:null,setHeroBackgroundFollowsWidth:()=>{},sectionBackgroundWidth:null,setSectionBackgroundWidth:()=>{},sectionContentWidth:null,setSectionContentWidth:()=>{},photographyGrayscale:null,setPhotographyGrayscale:()=>{},shareButtonOnPosts:null,setShareButtonOnPosts:()=>{},themeFromDocument:!1});function ee({children:o,websiteName:s=null,templateChrome:l=!1,templateName:r=null,chromePlaceholder:u=!1,themeMode:Z=b,onThemeModeChange:i,themeSwitchShown:q=Y,onThemeSwitchShownChange:c,theme:J=j,themeRow:K="none",onThemeChange:d,fonts:Q=z,onFontsChange:S,sizes:X=N,onSizesChange:a,cornerRadiusPx:$=null,onCornerRadiusPxChange:p,cardShadow:C=null,onCardShadowChange:m,shadowColor:tt=null,onShadowColorChange:h,cardGap:et=O,onCardGapChange:f,hoverEffect:st=null,onHoverEffectChange:E,headingCompression:ot=M,onHeadingCompressionChange:T,siteWidth:lt=null,onSiteWidthChange:P,siteGutter:nt=null,siteGutterPhone:rt=null,blockGap:ut=null,blockGapPhone:it=null,onSiteGutterChange:x,onSiteGutterPhoneChange:w,onBlockGapChange:D,onBlockGapPhoneChange:F,headingTypography:ct=g,onHeadingTypographyChange:G,textStyles:dt=null,onTextStylesChange:_,wordStyles:St=null,heroBackgroundFollowsWidth:at=null,onHeroBackgroundFollowsWidthChange:k,sectionBackgroundWidth:pt=null,onSectionBackgroundWidthChange:H,sectionContentWidth:mt=null,onSectionContentWidthChange:A,photographyGrayscale:ht=null,onPhotographyGrayscaleChange:v,shareButtonOnPosts:ft=null,onShareButtonOnPostsChange:W,themeFromDocument:Et=!1}){const[n,y]=qt(null),Tt=e(t=>y(jt=>jt??t),[]),Pt=e(t=>i?.(t),[i]),xt=e(t=>c?.(t),[c]),wt=e(t=>d?.(t),[d]),Dt=e(t=>S?.(t),[S]),Ft=e(t=>a?.(t),[a]),Gt=e(t=>P?.(t),[P]),_t=e(t=>x?.(t),[x]),kt=e(t=>w?.(t),[w]),Ht=e(t=>D?.(t),[D]),At=e(t=>F?.(t),[F]),vt=e(t=>k?.(t),[k]),Wt=e(t=>H?.(t),[H]),yt=e(t=>A?.(t),[A]),It=e(t=>v?.(t),[v]),Lt=e(t=>W?.(t),[W]),Ut=e(t=>p?.(t),[p]),Rt=e(t=>m?.(t),[m]),Bt=e(t=>h?.(t),[h]),Ot=e(t=>f?.(t),[f]),Mt=e(t=>E?.(t),[E]),gt=e(t=>T?.(t),[T]),Nt=e(t=>G?.(t),[G]),Yt=e(t=>_?.(t),[_]),I=n?.logoUrl,L=n?.logoReversed,U=n?.logoInkIsDark,R=n!==null,bt=Zt(()=>({logo:R?{logoUrl:I,logoReversed:L,logoInkIsDark:U}:null,placeholder:l||u,wordmark:l?r:s}),[R,I,L,U,l,u,r,s]);return B(Jt.Provider,{value:bt,children:B(V.Provider,{value:{settings:n,setSettings:y,primeSettings:Tt,websiteName:s,templateChrome:l,templateName:r,chromePlaceholder:u,themeMode:Z,setThemeMode:Pt,themeSwitchShown:q,setThemeSwitchShown:xt,theme:J,themeRow:K,setTheme:wt,fonts:Q,setFonts:Dt,sizes:X,setSizes:Ft,cornerRadiusPx:$,setCornerRadiusPx:Ut,cardShadow:C,setCardShadow:Rt,shadowColor:tt,setShadowColor:Bt,cardGap:et,setCardGap:Ot,hoverEffect:st,setHoverEffect:Mt,headingCompression:ot,setHeadingCompression:gt,siteWidth:lt,setSiteWidth:Gt,siteGutter:nt,siteGutterPhone:rt,blockGap:ut,blockGapPhone:it,setSiteGutter:_t,setSiteGutterPhone:kt,setBlockGap:Ht,setBlockGapPhone:At,headingTypography:ct,setHeadingTypography:Nt,textStyles:dt,setTextStyles:Yt,wordStyles:St,heroBackgroundFollowsWidth:at,setHeroBackgroundFollowsWidth:vt,sectionBackgroundWidth:pt,setSectionBackgroundWidth:Wt,sectionContentWidth:mt,setSectionContentWidth:yt,photographyGrayscale:ht,setPhotographyGrayscale:It,shareButtonOnPosts:ft,setShareButtonOnPosts:Lt,themeFromDocument:Et},children:o})})}const Kt=()=>Vt(V);function se(o,s,l){return o?s===l?"read":"loading":"none"}function oe(o,s){return{value:o,readFor:s}}function le(o,s,l){return{value:s,readFor:o.readFor===l?l:null}}function ne(){const{sectionContentWidth:o,themeFromDocument:s}=Kt();return s?null:o}export{V as PreviewHeaderContext,ee as PreviewHeaderProvider,se as siteThemeRow,le as themeEdited,oe as themeSeeded,Kt as usePreviewHeader,ne as useSiteContentWidth};
@@ -1,12 +1,15 @@
1
1
  import { type ReactNode } from "react";
2
2
  import { type PartStyles, type PublishedPartRule } from "../lib/document/part-styles.js";
3
+ import { type PartMotion } from "../lib/animation/part-motion.js";
3
4
  import type { PartNeedle } from "../lib/document/text-parts.js";
4
- export declare function PublishedPartStyles({ needles, styles, type, children, }: {
5
+ export declare function PublishedPartStyles({ needles, styles, motions, type, children, }: {
5
6
  needles: PartNeedle[];
6
7
  styles: PartStyles;
8
+ motions?: Readonly<Record<string, PartMotion>>;
7
9
  type?: string;
8
10
  children: ReactNode;
9
11
  }): import("react").JSX.Element;
12
+ export declare function usePartEntrance(rule: PublishedPartRule | null): import("react").RefObject<HTMLSpanElement | null>;
10
13
  export declare const PART_STYLES_PRECEDENCE = "sf-part-styles";
11
14
  export declare function usePublishedPartRule(value: string): PublishedPartRule | null;
12
15
  export declare function usePublishedPartKindRule(kind: string): PublishedPartRule | null;
@@ -1 +1 @@
1
- "use client";import{Fragment as d,jsx as o,jsxs as f}from"react/jsx-runtime";import{createContext as c,useContext as s,useId as C,useMemo as R}from"react";import{blockDrawsTextStyle as _,partRuleForKind as h,partRuleForText as y,partStyleCss as p,publishedPartStyles as b}from"../lib/document/part-styles.js";import{styleKeyForPart as g}from"../../format/lib/sections/section-text-kinds.js";const u=c(null),x=c(null),m=c(null);function $({needles:e,styles:t,type:r,children:n}){const i=C(),S=JSON.stringify([i,e,t,r]),l=R(()=>b(e,t,i,a=>g(r,a),a=>_(r,a)),[S]);return l?f(d,{children:[o("style",{href:`${E}${i}-${T(p(l))}`,precedence:P,dangerouslySetInnerHTML:{__html:p(l).replace(/</g,"\\3c ")}}),o(u.Provider,{value:l,children:n})]}):o(d,{children:n})}const P="sf-part-styles",E=`${P}-`;function T(e){let t=2166136261;for(let r=0;r<e.length;r+=1)t^=e.charCodeAt(r),t=Math.imul(t,16777619);return(t>>>0).toString(36)}function A(e){const t=s(u),r=s(x),n=y(t,e);return n&&n.stamp!==r?n:null}function H(e){return h(s(u),e)}function L({stamp:e,children:t}){return o(x.Provider,{value:e,children:t})}function M({children:e}){const t=s(u);return o(m.Provider,{value:t,children:e})}function k(e){return h(s(m),e)}export{L as ClaimedStamp,P as PART_STYLES_PRECEDENCE,$ as PublishedPartStyles,M as SharedPartKinds,H as usePublishedPartKindRule,A as usePublishedPartRule,k as usePublishedSharedKindRule};
1
+ "use client";import{Fragment as x,jsx as l,jsxs as _}from"react/jsx-runtime";import{createContext as h,useContext as a,useEffect as b,useId as v,useMemo as O,useRef as T}from"react";import{armEntrance as M}from"efficient-shell/format";import{blockDrawsTextStyle as k,partRuleForKind as P,partRuleForText as w,partStyleCss as S,publishedPartStyles as F}from"../lib/document/part-styles.js";import{usePhoneWidth as j}from"./SectionAnimation.js";import{styleKeyForPart as K}from"../../format/lib/sections/section-text-kinds.js";import{NO_MOTIONS as N,drawPartEntrance as H,firstOnPage as $,partMotionDrawn as A,partMoves as D}from"../lib/animation/part-motion.js";const p=h(null),g=h(null),E=h(null);function Q({needles:t,styles:e,motions:n=N,type:o,children:d}){const c=v(),u=JSON.stringify([c,t,e,n,o]),i=O(()=>{const s=Object.keys(n).filter(r=>D(n[r]));return F(t,e,c,r=>K(o,r),r=>k(o,r),r=>s.includes(r)?A(n[r]):null,s)},[u]);return i?_(x,{children:[l("style",{href:`${I}${c}-${L(S(i))}`,precedence:C,dangerouslySetInnerHTML:{__html:S(i).replace(/</g,"\\3c ")}}),l(p.Provider,{value:i,children:d})]}):l(x,{children:d})}const m=new WeakMap;function y(t){const e=$(t);for(const n of t)n===e||!n.undo||(n.undo(),n.undo=void 0);e&&!e.undo&&(e.undo=e.arm())}function U(t){const e=T(null),n=j(e),o=t?.motion?.entrance??null,d=JSON.stringify(o);return b(()=>{const c=e.current,u=c?.parentElement;if(!o||!c||!u)return;const i=()=>{const f=H(u,n?o.phone:o.desktop),R=M(u);return()=>{R?.(),f()}},s=m.get(u)??[];m.set(u,s);const r={element:c,arm:i};return s.push(r),y(s),()=>{const f=s.indexOf(r);f<0||(s.splice(f,1),r.undo?.(),r.undo=void 0,s.length?y(s):m.delete(u))}},[d,n]),e}const C="sf-part-styles",I=`${C}-`;function L(t){let e=2166136261;for(let n=0;n<t.length;n+=1)e^=t.charCodeAt(n),e=Math.imul(e,16777619);return(e>>>0).toString(36)}function V(t){const e=a(p),n=a(g),o=w(e,t);return o&&o.stamp!==n?o:null}function X(t){return P(a(p),t)}function Z({stamp:t,children:e}){return l(g.Provider,{value:t,children:e})}function ee({children:t}){const e=a(p);return l(E.Provider,{value:e,children:t})}function te(t){return P(a(E),t)}export{Z as ClaimedStamp,C as PART_STYLES_PRECEDENCE,Q as PublishedPartStyles,ee as SharedPartKinds,U as usePartEntrance,X as usePublishedPartKindRule,V as usePublishedPartRule,te as usePublishedSharedKindRule};
@@ -1,10 +1,13 @@
1
- import { type ReactNode } from "react";
1
+ import { type CSSProperties, type ReactNode } from "react";
2
2
  import { type EntranceValue } from "efficient-shell/format";
3
3
  export declare const ENTRANCE_WRAPPER_CLASS = "sf-entrance";
4
- export declare function SectionAnimation({ desktop, phone, editing, children, }: {
4
+ export declare function SectionAnimation({ desktop, phone, editing, boxClass, boxAttrs, boxStyle, children, }: {
5
5
  desktop: EntranceValue;
6
6
  phone: EntranceValue;
7
7
  editing: boolean;
8
+ boxClass?: string;
9
+ boxAttrs?: Readonly<Record<string, string>>;
10
+ boxStyle?: CSSProperties;
8
11
  children: ReactNode;
9
12
  }): import("react").JSX.Element;
10
13
  export type SeenEntrance = {
@@ -18,3 +21,6 @@ export declare const entranceReplay: {
18
21
  seen: SeenEntrance;
19
22
  };
20
23
  };
24
+ export declare function usePhoneWidth(ref: {
25
+ current: HTMLElement | null;
26
+ }): boolean;
@@ -1 +1 @@
1
- "use client";import{jsx as N}from"react/jsx-runtime";import{useEffect as m,useRef as p,useState as S}from"react";import{armEntrance as x,entranceAttrs as g,playEntrance as A}from"efficient-shell/format";import{PHONE_MEDIA as O}from"../lib/content/view-values.js";import{useCellLayer as P}from"./InBoxContext.js";const v="sf-entrance";function C({desktop:e,phone:n,editing:s,children:o}){const t=p(null),r=P(),c=R(t),y=c?n:e,{attrs:h,style:u}=g(y),f=p(i.seed(e,n)),d=JSON.stringify(e),E=JSON.stringify(n);return m(()=>{const a=t.current;if(a){if(s){const l=i.next(f.current,e,n,c);f.current=l.seen,l.play&&A(a);return}return x(a)}},[d,E,c,s]),N("div",{ref:t,className:`${v}${r.fill}`,...h,...Object.keys(u).length?{style:u}:{},children:r.inner(o)})}const i={seed(e,n){return{desktop:JSON.stringify(e),phone:JSON.stringify(n)}},next(e,n,s,o){const t=i.seed(n,s);return{play:o?t.phone!==e.phone:t.desktop!==e.desktop,seen:t}}};function R(e){const[n,s]=S(!1);return m(()=>{const o=e.current?.ownerDocument?.defaultView;if(!o?.matchMedia)return;const t=o.matchMedia(O),r=()=>s(t.matches);return r(),t.addEventListener("change",r),()=>t.removeEventListener("change",r)},[e]),n}export{v as ENTRANCE_WRAPPER_CLASS,C as SectionAnimation,i as entranceReplay};
1
+ "use client";import{jsx as g}from"react/jsx-runtime";import{useEffect as y,useRef as d,useState as x}from"react";import{armEntrance as A,entranceAttrs as O,playEntrance as P}from"efficient-shell/format";import{PHONE_MEDIA as v}from"../lib/content/view-values.js";import{useCellLayer as R}from"./InBoxContext.js";const J="sf-entrance";function C({desktop:e,phone:n,editing:o,boxClass:r,boxAttrs:t,boxStyle:s,children:h}){const c=d(null),f=R(),i=L(c),E=i?n:e,{attrs:w,style:l}=O(E),p=d(u.seed(e,n)),N=JSON.stringify(e),S=JSON.stringify(n);return y(()=>{const a=c.current;if(a){if(o){const m=u.next(p.current,e,n,i);p.current=m.seen,m.play&&P(a);return}return A(a)}},[N,S,i,o]),g("div",{ref:c,className:`${J}${f.fill}${r?` ${r}`:""}`,...t,...w,...Object.keys(l).length||s?{style:{...s,...l}}:{},children:f.inner(h)})}const u={seed(e,n){return{desktop:JSON.stringify(e),phone:JSON.stringify(n)}},next(e,n,o,r){const t=u.seed(n,o);return{play:r?t.phone!==e.phone:t.desktop!==e.desktop,seen:t}}};function L(e){const[n,o]=x(!1);return y(()=>{const r=e.current?.ownerDocument?.defaultView??(typeof window>"u"?null:window);if(!r?.matchMedia)return;const t=r.matchMedia(v),s=()=>o(t.matches);return s(),t.addEventListener("change",s),()=>t.removeEventListener("change",s)},[e]),n}export{J as ENTRANCE_WRAPPER_CLASS,C as SectionAnimation,u as entranceReplay,L as usePhoneWidth};
@@ -1,5 +1,6 @@
1
1
  import { type CSSProperties, type ReactNode } from "react";
2
2
  import { type PadValues } from "../lib/content/section-padding.js";
3
+ import type { SectionEdge } from "../lib/content/section-edge.js";
3
4
  export declare function InsideSiteColumn({ children }: {
4
5
  children?: ReactNode;
5
6
  }): import("react").JSX.Element;
@@ -10,7 +11,11 @@ export declare function NestedBoxChoice({ atTop, nested }: {
10
11
  atTop: ReactNode;
11
12
  nested: ReactNode;
12
13
  }): import("react").JSX.Element;
13
- export default function SiteGutterFrame({ contained, framedClass, fillClass, columnClass, style, tabLabel, pad, border, outerAttrs, box, outerStyle, children, }: {
14
+ export declare function NotASectionEdge({ children }: {
15
+ children?: ReactNode;
16
+ }): import("react").JSX.Element;
17
+ export declare function useSectionEdge(): SectionEdge | null;
18
+ export default function SiteGutterFrame({ contained, framedClass, fillClass, columnClass, style, tabLabel, pad, border, outerAttrs, box, edge, outerStyle, children, }: {
14
19
  contained: boolean;
15
20
  framedClass: string;
16
21
  fillClass: string;
@@ -24,6 +29,7 @@ export default function SiteGutterFrame({ contained, framedClass, fillClass, col
24
29
  border?: CSSProperties;
25
30
  outerAttrs?: Record<string, string>;
26
31
  box?: boolean;
32
+ edge?: boolean;
27
33
  outerStyle?: CSSProperties;
28
34
  children?: ReactNode;
29
35
  }): import("react").JSX.Element;
@@ -1 +1 @@
1
- "use client";import{jsx as e,Fragment as w}from"react/jsx-runtime";import{createContext as f,useContext as v}from"react";import{rootPadAttrs as A,wrapperPadAttrs as G}from"../lib/content/section-padding.js";import{SECTION_BORDER_CLASS as L,SECTION_BORDER_SELF_CLASS as D}from"../../format/lib/content/borders.js";import{drawsSiteGutter as T}from"../../format/lib/content/site-gutter.js";const h=f(!1);function K({children:t}){return e(h.Provider,{value:!0,children:t})}const p=f(!1);function M({children:t}){return e(p.Provider,{value:!0,children:t})}const I=f(!1);function Q({atTop:t,nested:i}){return e(w,{children:v(I)?i:t})}function k({contained:t,framedClass:i,fillClass:R,columnClass:y,style:x,tabLabel:E,pad:s,border:l,outerAttrs:a,box:g=!1,outerStyle:r,children:C}){const j=v(h),S=v(p),c=T(t,j),o=c&&!S,u=s&&!o?A(s.values,s.frame):null,d=l&&!o?l:null,F=[o?i:R,u?.className,d?D:null].filter(Boolean).join(" "),N=u||d?{...x,...u?.style,...d}:x,B=g?e(I.Provider,{value:!0,children:C}):C,m=c?e(h.Provider,{value:!0,children:B}):B,n=s&&o?G(s.values):null,O=a&&Object.keys(a).length>0?a:null,P=e("div",{...n?null:O,className:F,style:n||!r?N:{...N,...r},"data-tab-label":E,children:S?e(p.Provider,{value:!1,children:c?e("div",{className:y,children:m}):m}):m}),_=n?e("div",{...O,className:n.className,style:r?{...n.style,...r}:n.style,children:P}):P;return l&&o?e("div",{className:L,style:{display:"contents",...l},children:_}):_}export{K as InsideSiteColumn,Q as NestedBoxChoice,M as SplitBandAndColumn,k as default};
1
+ "use client";import{jsx as e,Fragment as D}from"react/jsx-runtime";import{createContext as a,useContext as s}from"react";import{rootPadAttrs as T,wrapperPadAttrs as k}from"../lib/content/section-padding.js";import{SECTION_BORDER_CLASS as b,SECTION_BORDER_SELF_CLASS as q}from"../../format/lib/content/borders.js";import{drawsSiteGutter as z}from"../../format/lib/content/site-gutter.js";const p=a(!1);function V({children:n}){return e(p.Provider,{value:!0,children:n})}const x=a(!1);function W({children:n}){return e(x.Provider,{value:!0,children:n})}const I=a(!1);function X({atTop:n,nested:d}){return e(D,{children:s(I)?d:n})}const u=a(void 0);function Y({children:n}){return e(u.Provider,{value:null,children:n})}function Z(){return s(u)??null}function H({contained:n,framedClass:d,fillClass:R,columnClass:y,style:S,tabLabel:j,pad:t,border:r,outerAttrs:m,box:C=!1,edge:A=!1,outerStyle:i,children:N}){const F=s(p),P=s(x),c=z(n,F),l=c&&!P,f=t&&!l?T(t.values,t.frame):null,v=r&&!l?r:null,w=[l?d:R,f?.className,v?q:null].filter(Boolean).join(" "),B=f||v?{...S,...f?.style,...v}:S,G=s(u),L=C&&A&&G===void 0?{gutter:c,...t?{pad:t.values}:{}}:null,E=C?e(I.Provider,{value:!0,children:e(u.Provider,{value:L,children:N})}):N,h=c?e(p.Provider,{value:!0,children:E}):E,o=t&&l?k(t.values):null,g=m&&Object.keys(m).length>0?m:null,O=e("div",{...o?null:g,className:w,style:o||!i?B:{...B,...i},"data-tab-label":j,children:P?e(x.Provider,{value:!1,children:c?e("div",{className:y,children:h}):h}):h}),_=o?e("div",{...g,className:o.className,style:i?{...o.style,...i}:o.style,children:O}):O;return r&&l?e("div",{className:b,style:{display:"contents",...r},children:_}):_}export{V as InsideSiteColumn,X as NestedBoxChoice,Y as NotASectionEdge,W as SplitBandAndColumn,H as default,Z as useSectionEdge};
@@ -1,8 +1,8 @@
1
1
  import type { ReactNode } from "react";
2
2
  import { type LoopDirection } from "../../../format/lib/animation/loop.js";
3
3
  export declare const LOOP_COPY_CLASS: {
4
- readonly across: "pr-[var(--sf-gap-len,0px)] max-[800px]:pr-[calc(var(--sf-gap-len,0px)/2)]";
5
- readonly down: "pb-[var(--sf-gap-len,0px)] max-[800px]:pb-[calc(var(--sf-gap-len,0px)/2)]";
4
+ readonly across: "pr-[var(--sf-gap-len,0px)] max-[800px]:pr-[var(--sf-gap-len-phone,calc(var(--sf-gap-len,0px)/2))]";
5
+ readonly down: "pb-[var(--sf-gap-len,0px)] max-[800px]:pb-[var(--sf-gap-len-phone,calc(var(--sf-gap-len,0px)/2))]";
6
6
  };
7
7
  export declare function loopCopyClass(direction: LoopDirection): string;
8
8
  export declare function LoopTrack({ direction, seconds, delay, editing, copy, }: {
@@ -1 +1 @@
1
- import{Fragment as c,jsx as s,jsxs as i}from"react/jsx-runtime";import{isVerticalLoop as e,loopAnimation as m}from"../../../format/lib/animation/loop.js";const n={across:"pr-[var(--sf-gap-len,0px)] max-[800px]:pr-[calc(var(--sf-gap-len,0px)/2)]",down:"pb-[var(--sf-gap-len,0px)] max-[800px]:pb-[calc(var(--sf-gap-len,0px)/2)]"};function o(a){return e(a)?n.down:n.across}function v({direction:a,seconds:l,delay:p,editing:t,copy:r}){if(t)return s(c,{children:r("")});const x=e(a);return s("div",{className:"overflow-hidden",children:i("div",{className:x?"flex flex-col":"flex w-max",style:{animation:m(a,l,p)},children:[r(o(a)),s("div",{className:"contents","aria-hidden":!0,inert:!0,children:r(o(a))})]})})}export{n as LOOP_COPY_CLASS,v as LoopTrack,o as loopCopyClass};
1
+ import{Fragment as c,jsx as e,jsxs as i}from"react/jsx-runtime";import{isVerticalLoop as n,loopAnimation as f}from"../../../format/lib/animation/loop.js";const s={across:"pr-[var(--sf-gap-len,0px)] max-[800px]:pr-[var(--sf-gap-len-phone,calc(var(--sf-gap-len,0px)/2))]",down:"pb-[var(--sf-gap-len,0px)] max-[800px]:pb-[var(--sf-gap-len-phone,calc(var(--sf-gap-len,0px)/2))]"};function o(a){return n(a)?s.down:s.across}function v({direction:a,seconds:p,delay:l,editing:t,copy:r}){if(t)return e(c,{children:r("")});const x=n(a);return e("div",{className:"overflow-hidden",children:i("div",{className:x?"flex flex-col":"flex w-max",style:{animation:f(a,p,l)},children:[r(o(a)),e("div",{className:"contents","aria-hidden":!0,inert:!0,children:r(o(a))})]})})}export{s as LOOP_COPY_CLASS,v as LoopTrack,o as loopCopyClass};
@@ -0,0 +1,21 @@
1
+ import { type EntranceValue } from "efficient-shell/format";
2
+ import { entranceDrawn } from "./entrance.js";
3
+ import { type PartHover } from "../../../format/lib/animation/hover.js";
4
+ export declare const NO_MOTIONS: Readonly<Record<string, PartMotion>>;
5
+ export declare const PART_MOTION_PROP = "_partMotion";
6
+ type Props = Readonly<Record<string, unknown>>;
7
+ export type PartMotion = Readonly<Record<string, unknown>>;
8
+ export declare const PART_MOTION_KEYS: readonly string[];
9
+ export declare function readPartMotions(props: Props | undefined): Readonly<Record<string, PartMotion>>;
10
+ export declare function readPartMotion(props: Props | undefined, part: string): PartMotion;
11
+ export declare function propsWithPartMotion(props: Props, part: string, key: string, value: unknown): Record<string, unknown>;
12
+ export declare function partMotionDrawn(record: PartMotion): {
13
+ entrance: ReturnType<typeof entranceDrawn>;
14
+ hover: PartHover;
15
+ };
16
+ export declare function partMoves(record: PartMotion): boolean;
17
+ export declare function drawPartEntrance(box: HTMLElement, value: EntranceValue): () => void;
18
+ export declare function firstOnPage<T extends {
19
+ element: Element;
20
+ }>(parts: readonly T[]): T | undefined;
21
+ export {};
@@ -0,0 +1 @@
1
+ import{phoneKey as m}from"efficient-easel/draw";import{ENTRANCE_STATE_ATTR as u,entranceAttrs as O}from"efficient-shell/format";import{ENTRANCE_KEYS as f,entranceDrawn as d}from"./entrance.js";import{HOVER_KEY as p,hoverOf as l}from"../../../format/lib/animation/hover.js";import{propsWithPartRecord as P,readPartRecord as _,readPartRecords as E}from"../../../format/lib/document/part-records.js";const j={},s="_partMotion",v=[...Object.values(f).flatMap(t=>[t,m(t)]),p];function w(t){return E(t,s)}function T(t,r){return _(t,s,r)}const N=new Set([f.kind,p]);function b(t,r,n,o){const{[n]:c,...e}=T(t,r),a=o==null||o===""||o==="none"&&N.has(n)?e:{...e,[n]:o};return P(t,s,r,Object.keys(a).length?a:null)}function A(t){return{entrance:d(t),hover:l(t)}}function g(t){const r=A(t);return r.entrance!==null||r.hover!=="none"}function I(t,r){const{attrs:n,style:o}=O(r),c=Object.keys(n).filter(e=>n[e]!==void 0);for(const e of c)t.setAttribute(e,String(n[e]));for(const[e,i]of Object.entries(o))t.style.setProperty(e,String(i));return()=>{for(const e of c)t.removeAttribute(e);for(const e of Object.keys(o))t.style.removeProperty(e);t.removeAttribute(u)}}const M=4;function K(t){let r;for(const n of t)(!r||n.element.compareDocumentPosition(r.element)&M)&&(r=n);return r}export{j as NO_MOTIONS,v as PART_MOTION_KEYS,s as PART_MOTION_PROP,I as drawPartEntrance,K as firstOnPage,A as partMotionDrawn,g as partMoves,b as propsWithPartMotion,T as readPartMotion,w as readPartMotions};
@@ -1 +1 @@
1
- import{BLOCK_FIXED_WIDTH as I,BLOCK_SIZE_KEYS as T,parseBlockWidthFit as x,phoneKey as _,parseTextFit as w}from"efficient-easel/draw";const g="sf-block-size",d={fit:"data-fit",fitPhone:"data-fit-phone",min:"data-fit-min",minPhone:"data-fit-min-phone"},s=n=>typeof n=="number"&&Number.isFinite(n)&&n>=0?n:void 0,y={desktop:{fill:"min-[800px]:w-full min-[800px]:[.flex-row>&]:grow",fixed:"min-[800px]:w-[min(var(--sf-bw),100%)] min-[800px]:basis-auto! min-[800px]:grow-0! min-[800px]:shrink-0"},phone:{fill:"max-[800px]:w-full",fixed:"max-[800px]:w-[min(var(--sf-bw-p),100%)] max-[800px]:basis-auto! max-[800px]:grow-0! max-[800px]:shrink-0"}},L={desktop:"--sf-bw",phone:"--sf-bw-p"},O={minWidth:{desktop:["--sf-bmin","min-[800px]:min-w-[var(--sf-bmin)]"],phone:["--sf-bmin-p","max-[800px]:min-w-[var(--sf-bmin-p)]"]},maxWidth:{desktop:["--sf-bmax","min-[800px]:max-w-[var(--sf-bmax)]"],phone:["--sf-bmax-p","max-[800px]:max-w-[var(--sf-bmax-p)]"]}};function C(n){const t=[],i={},o={},f=x(n.widthFit?.desktop),u=x(n.widthFit?.phone)??f,h=s(n.width?.desktop),l=s(n.width?.phone)??h;for(const[p,e,m]of[["desktop",f,h],["phone",u,l]])!e||e==="fit"||(t.push(y[p][e]),e==="fixed"&&(i[L[p]]=`${m??I.fallback}px`));for(const p of["minWidth","maxWidth"]){const e=s(n[p]?.desktop),m=s(n[p]?.phone)??e;for(const[F,b]of[["desktop",e],["phone",m]]){if(b===void 0)continue;const[S,W]=O[p][F];i[S]=`${b}px`,t.push(W)}}const c=w(n.textFit?.desktop),r=w(n.textFit?.phone),a=s(n.minFont?.desktop),k=s(n.minFont?.phone);return c&&(o[d.fit]=c),r&&(o[d.fitPhone]=r),a!==void 0&&(o[d.min]=String(a)),k!==void 0&&(o[d.minPhone]=String(k)),t.length===0&&Object.keys(o).length===0?null:{className:[g,...t].join(" "),style:i,attrs:o}}function E(n){if(s(n.maxWidth?.desktop)!==void 0)return!0;const t=x(n.widthFit?.desktop);return t==="fill"||t==="fixed"}function K(n){const t={};for(const i of T){const o=n[i],f=n[_(i)];(o!==void 0||f!==void 0)&&(t[i]={desktop:o,phone:f})}return t}export{g as BLOCK_SIZE_CLASS,d as TEXT_FIT_ATTR,E as blockSetsItsWidth,C as blockSizeOf,K as blockSizeValuesOf};
1
+ import{BLOCK_FIXED_WIDTH as I,BLOCK_SIZE_KEYS as T,parseBlockWidthFit as c,phoneKey as L,parseTextFit as b}from"efficient-easel/draw";const g="sf-block-size",m={fit:"data-fit",fitPhone:"data-fit-phone",min:"data-fit-min",minPhone:"data-fit-min-phone"},p=n=>typeof n=="number"&&Number.isFinite(n)&&n>=0?n:void 0,E={desktop:{fill:"min-[800px]:w-full min-[800px]:[.flex-row>&]:grow",fixed:"min-[800px]:w-[min(var(--sf-bw),100%)] min-[800px]:basis-auto! min-[800px]:grow-0! min-[800px]:shrink-0"},phone:{fill:"max-[800px]:w-full",fixed:"max-[800px]:w-[min(var(--sf-bw-p),100%)] max-[800px]:basis-auto! max-[800px]:grow-0! max-[800px]:shrink-0"}},O={desktop:"--sf-bw",phone:"--sf-bw-p"},y={minWidth:{desktop:["--sf-bmin","min-[800px]:min-w-[var(--sf-bmin)]!"],phone:["--sf-bmin-p","max-[800px]:min-w-[var(--sf-bmin-p)]!"]},maxWidth:{desktop:["--sf-bmax","min-[800px]:max-w-[var(--sf-bmax)]"],phone:["--sf-bmax-p","max-[800px]:max-w-[var(--sf-bmax-p)]"]}},u={desktop:"min-[800px]:whitespace-nowrap min-[800px]:[&_*]:whitespace-nowrap!",phone:"max-[800px]:whitespace-nowrap max-[800px]:[&_*]:whitespace-nowrap!"};function P(n){const t=[],o={},i={},f=c(n.widthFit?.desktop),l=c(n.widthFit?.phone)??f,r=p(n.width?.desktop),S=p(n.width?.phone)??r;for(const[s,e,x]of[["desktop",f,r],["phone",l,S]])!e||e==="fit"||(t.push(E[s][e]),e==="fixed"&&(o[O[s]]=`${x??I.fallback}px`));for(const s of["minWidth","maxWidth"]){const e=p(n[s]?.desktop),x=p(n[s]?.phone)??e;for(const[_,w]of[["desktop",e],["phone",x]]){if(w===void 0)continue;const[F,W]=y[s][_];o[F]=`${w}px`,t.push(W)}}const d=b(n.textFit?.desktop),h=b(n.textFit?.phone),a=p(n.minFont?.desktop),k=p(n.minFont?.phone);return d==="line"&&t.push(u.desktop),(h??d)==="line"&&t.push(u.phone),d&&(i[m.fit]=d),h&&(i[m.fitPhone]=h),a!==void 0&&(i[m.min]=String(a)),k!==void 0&&(i[m.minPhone]=String(k)),t.length===0&&Object.keys(i).length===0?null:{className:[g,...t].join(" "),style:o,attrs:i}}function A(n){if(p(n.maxWidth?.desktop)!==void 0)return!0;const t=c(n.widthFit?.desktop);return t==="fill"||t==="fixed"}function K(n){const t={};for(const o of T){const i=n[o],f=n[L(o)];(i!==void 0||f!==void 0)&&(t[o]={desktop:i,phone:f})}return t}export{g as BLOCK_SIZE_CLASS,m as TEXT_FIT_ATTR,A as blockSetsItsWidth,P as blockSizeOf,K as blockSizeValuesOf};
@@ -1 +1 @@
1
- import{BUTTON_PAD_KEYS as i,buttonBorderOf as S,buttonFillOpacityOf as T,buttonPadSidesOf as h}from"efficient-easel/draw";import{finiteNumber as y}from"../../../format/lib/finite-number.js";import{nonEmptyString as c}from"../../../format/lib/non-empty-string.js";import{padSideAttrs as _}from"./section-padding.js";import{cornerSidesShorthand as x,normalizeCornerSides as O}from"../../../format/lib/content/section-corners.js";const N="px-6 py-4",$=4,s=o=>{const t=new RegExp(`\\bp${o}-(?:\\[(\\d+)px\\]|(\\d+))`).exec(N);if(!t)throw new Error(`BUTTON_PAD_CLASSES has no p${o}`);return t[1]!==void 0?Number(t[1]):Number(t[2])*$},U={top:s("y"),right:s("x"),bottom:s("y"),left:s("x")},a="var(--btn)";function g(o){const t=o.variant==="ghost",n=T(o.buttonFillOpacity),r=S(o.buttonBorder),e=c(o.buttonColor);return{fillOpacity:n??(t?0:100),border:{width:r?.width??1,color:r?.color??e??(t?"currentColor":a)},changed:n!==void 0||r!==void 0}}function L(o){const t=g(o);if(!t.changed)return null;const n=c(o.buttonColor)??a;return{background:t.fillOpacity===0?"transparent":t.fillOpacity===100?n:`color-mix(in srgb, ${n} ${t.fillOpacity}%, transparent)`,borderWidth:t.border.width,borderStyle:"solid",borderColor:t.border.color}}const C="var(--sf-button-radius, 0)";function D(o){const t=y(o.buttonCorners),n=O(o.buttonCornerSides);if(t===void 0&&n===null)return null;const r=t===void 0?C:`${Math.max(0,t)}px`;return{borderRadius:n===null?r:x(r,n)}}function k(o){const t=e=>h({top:o[`${i.top}${e}`],right:o[`${i.right}${e}`],bottom:o[`${i.bottom}${e}`],left:o[`${i.left}${e}`]})??{},{classes:n,style:r}=_(t(""),t("Phone"));return Object.keys(r).length?{className:n.join(" "),style:r}:null}const b="upper";function w(o,t,n){const r=o&&typeof o=="object"?o:{},e=c(r.textStyle),u=e?c(t?.find(f=>f?.id===e)?.name):void 0,d=e?/^(heading|body)-(\d+)$/.exec(e):null,p=e?u||(d?n.styleName({kind:d[1],n:Number(d[2])}):e):n.noStyle,{cases:l}=n,m=c(r.case)??b;return`${p} · ${l[m]??l[b]}`}export{U as BUTTON_PAD_BUILT_IN,N as BUTTON_PAD_CLASSES,i as BUTTON_PAD_KEYS,b as BUTTON_WORDS_BUILT_IN_CASE,a as SITE_BUTTON_FILL,D as buttonCornersStyle,g as buttonLook,k as buttonPadAttrs,L as buttonPaint,w as buttonWordsSummary};
1
+ import{BUTTON_PAD_KEYS as i,buttonBorderOf as S,buttonFillOpacityOf as T,buttonPadSidesOf as h}from"efficient-easel/draw";import{finiteNumber as y}from"../../../format/lib/finite-number.js";import{nonEmptyString as c}from"../../../format/lib/non-empty-string.js";import{padSideAttrs as _}from"./section-padding.js";import{cornerSidesShorthand as x,normalizeCornerSides as O}from"../../../format/lib/content/section-corners.js";const N="px-6 py-4",$=4,s=o=>{const t=new RegExp(`\\bp${o}-(?:\\[(\\d+)px\\]|(\\d+))`).exec(N);if(!t)throw new Error(`BUTTON_PAD_CLASSES has no p${o}`);return t[1]!==void 0?Number(t[1]):Number(t[2])*$},U={top:s("y"),right:s("x"),bottom:s("y"),left:s("x")},a="var(--btn)";function g(o){const t=o.variant==="ghost",n=T(o.buttonFillOpacity),r=S(o.buttonBorder),e=c(o.buttonColor);return{fillOpacity:n??(t?0:100),border:{width:r?.width??1,color:r?.color??e??(t?"currentColor":a)},changed:n!==void 0||r!==void 0}}function L(o){const t=g(o);if(!t.changed)return null;const n=c(o.buttonColor)??a;return{background:t.fillOpacity===0?"transparent":t.fillOpacity===100?n:`color-mix(in srgb, ${n} ${t.fillOpacity}%, transparent)`,borderWidth:t.border.width,borderStyle:"solid",borderColor:t.border.color}}const C="var(--sf-button-radius, 0)";function D(o){const t=y(o.buttonCorners),n=O(o.buttonCornerSides);if(t===void 0&&n===null)return null;const r=t===void 0?C:`${Math.max(0,t)}px`;return{borderRadius:n===null?r:x(r,n)}}function k(o){const t=e=>h({top:o[`${i.top}${e}`],right:o[`${i.right}${e}`],bottom:o[`${i.bottom}${e}`],left:o[`${i.left}${e}`]})??{},{classes:n,style:r}=_(t(""),t("Phone"),t("Tablet"));return Object.keys(r).length?{className:n.join(" "),style:r}:null}const b="upper";function w(o,t,n){const r=o&&typeof o=="object"?o:{},e=c(r.textStyle),l=e?c(t?.find(f=>f?.id===e)?.name):void 0,d=e?/^(heading|body)-(\d+)$/.exec(e):null,p=e?l||(d?n.styleName({kind:d[1],n:Number(d[2])}):e):n.noStyle,{cases:u}=n,m=c(r.case)??b;return`${p} · ${u[m]??u[b]}`}export{U as BUTTON_PAD_BUILT_IN,N as BUTTON_PAD_CLASSES,i as BUTTON_PAD_KEYS,b as BUTTON_WORDS_BUILT_IN_CASE,a as SITE_BUTTON_FILL,D as buttonCornersStyle,g as buttonLook,k as buttonPadAttrs,L as buttonPaint,w as buttonWordsSummary};
@@ -0,0 +1,10 @@
1
+ import type { CSSProperties } from "react";
2
+ import type { PadValues } from "./section-padding.js";
3
+ export type SectionEdge = {
4
+ gutter: boolean;
5
+ pad?: PadValues;
6
+ };
7
+ export declare function sectionEdgeAttrs(edge: SectionEdge): {
8
+ className: string;
9
+ style?: CSSProperties;
10
+ };
@@ -0,0 +1 @@
1
+ import{viewOverrides as p}from"./view-values.js";import{finiteNumber as d}from"../../../format/lib/finite-number.js";const _="[--sf-edge-g:var(--sf-site-gutter,40px)] max-[960px]:[--sf-edge-g:min(24px,var(--sf-site-gutter,40px))] [--sf-edge-t:max(0px,calc(var(--sf-site-width,1600px)_-_100%_-_2_*_var(--sf-edge-g)))] [--sf-edge-al:min(var(--sf-edge-l),max(calc(var(--sf-edge-t)_/_2),calc(var(--sf-edge-t)_-_var(--sf-edge-r))))] [--sf-edge-ar:min(var(--sf-edge-r),max(calc(var(--sf-edge-t)_/_2),calc(var(--sf-edge-t)_-_var(--sf-edge-l))))]",c="[--sf-edge-g:0px] [--sf-edge-al:var(--sf-edge-l)] [--sf-edge-ar:var(--sf-edge-r)]",x="[--sf-edge-l:var(--sf-edge-ld,0px)] [--sf-edge-r:var(--sf-edge-rd,0px)] max-[1100px]:[--sf-edge-l:var(--sf-edge-lt,var(--sf-edge-ld,0px))] max-[1100px]:[--sf-edge-r:var(--sf-edge-rt,var(--sf-edge-rd,0px))] max-[720px]:[--sf-edge-l:var(--sf-edge-lp,var(--sf-edge-lt,var(--sf-edge-ld,0px)))] max-[720px]:[--sf-edge-r:var(--sf-edge-rp,var(--sf-edge-rt,var(--sf-edge-rd,0px)))]",n="ml-[calc(-1_*_(var(--sf-edge-g)_+_var(--sf-edge-al)))] mr-[calc(-1_*_(var(--sf-edge-g)_+_var(--sf-edge-ar)))] w-[calc(100%_+_2_*_var(--sf-edge-g)_+_var(--sf-edge-al)_+_var(--sf-edge-ar))] max-w-[100vw]";function m(g){const s={},e=g.pad??{};for(const[a,t,l,v]of[["l",e.left,e.leftTablet,e.leftPhone],["r",e.right,e.rightTablet,e.rightPhone]]){const f=d(t);f!==void 0&&(s[`--sf-edge-${a}d`]=`${f}px`);const r=p("spacing",f,d(l),d(v));typeof r.tablet=="number"&&(s[`--sf-edge-${a}t`]=`${r.tablet}px`),typeof r.phone=="number"&&(s[`--sf-edge-${a}p`]=`${r.phone}px`)}return{className:`${g.gutter?_:c} ${x} ${n}`,...Object.keys(s).length?{style:s}:{}}}export{m as sectionEdgeAttrs};
@@ -1 +1 @@
1
- import{jsx as o}from"react/jsx-runtime";import{phoneKey as a}from"efficient-easel/draw";import n from"../../../../../components/Flex.js";import{loopDelayOf as i,loopSecondsOf as l,parseLoop as t,parseLoopDirection as h}from"../../../../../../format/lib/animation/index.js";import{padValuesOf as c}from"../../../../content/section-padding.js";import{sectionFillsHeight as g}from"../../../../../../format/lib/content/section-min-height.js";import{FlexMeta as d}from"../../../../../../format/lib/document/blocks/general/Flex/meta.js";const y={...d,render:e=>o(n,{direction:e.direction,label:e.label,tabShape:e.tabShape,gap:e.gap,gapPhone:e[a("gap")],justify:e.justify,align:e.align,wrap:e.wrap,share:e.share,sharePhone:e[a("share")],phoneRow:e.phoneRow,separator:e.separator,blockSpacing:e.blockSpacing,bgImage:e.bgImage,bgImagePhone:e.bgImagePhone,darken:e.darken,darkenStyle:e.darkenStyle,placement:e.placement,padV2:e.padV2===!0,border:e.sectionBorder,borderPhone:e.sectionBorderPhone,pad:c(e),contained:e.contained,fillHeight:g(e),shadow:e.shadow,loop:t(e.loop),scrollDirection:h(e.scrollDirection),loopSeconds:l({loopDuration:e.loopDuration}),loopDelay:i({loopDelay:e.loopDelay}),editing:!!e.editor?.isEditing,fillColor:e.fillColor,line:e.line,upcoming:e.upcoming,link:e.link,boxShape:e.boxShape,boxShapePhone:e[a("boxShape")],jumpHighlight:e.jumpHighlight,anchor:e.anchor,content:e.content})};export{y as FlexRender};
1
+ import{jsx as n}from"react/jsx-runtime";import{phoneKey as o,tabletKey as l}from"efficient-easel/draw";import{CountRowsContext as c,NO_COUNTS as h}from"../../../../../components/CountRowsContext.js";import m from"../../../../../components/Flex.js";import{loopDelayOf as d,loopSecondsOf as g,parseLoop as r,parseLoopDirection as u}from"../../../../../../format/lib/animation/index.js";import{COUNTS_SOURCE as b,declaredBlockSource as f,servedRows as S}from"../../../../../../format/lib/content/block-sources.js";import{padValuesOf as x}from"../../../../content/section-padding.js";import{sectionFillsHeight as w}from"../../../../../../format/lib/content/section-min-height.js";import{FlexMeta as y}from"../../../../../../format/lib/document/blocks/general/Flex/meta.js";const H={...y,render:e=>{const t=n(m,{direction:e.direction,label:e.label,tabShape:e.tabShape,gap:e.gap,gapPhone:e[o("gap")],gapTablet:e[l("gap")],justify:e.justify,align:e.align,wrap:e.wrap,share:e.share,sharePhone:e[o("share")],wrapPhone:e[o("wrap")],phoneRow:e.phoneRow,columns:e.columns,columnsTablet:e[l("columns")],separator:e.separator,blockSpacing:e.blockSpacing,bgImage:e.bgImage,bgImagePhone:e.bgImagePhone,darken:e.darken,darkenStyle:e.darkenStyle,placement:e.placement,padV2:e.padV2===!0,border:e.sectionBorder,borderPhone:e.sectionBorderPhone,pad:x(e),contained:e.contained,fillHeight:w(e),shadow:e.shadow,loop:r(e.loop),scrollDirection:u(e.scrollDirection),loopSeconds:g({loopDuration:e.loopDuration}),loopDelay:d({loopDelay:e.loopDelay}),editing:!!e.editor?.isEditing,fillColor:e.fillColor,line:e.line,upcoming:e.upcoming,link:e.link,boxShape:e.boxShape,boxShapePhone:e[o("boxShape")],jumpHighlight:e.jumpHighlight,anchor:e.anchor,content:e.content}),a=f(e),i=a?a===b?S(e):h:null;return n(c.Provider,{value:i,children:t})}};export{H as FlexRender};
@@ -1 +1 @@
1
- import{jsx as e}from"react/jsx-runtime";import{phoneKey as n}from"efficient-easel/draw";import{sectionFillsHeight as i}from"../../../../../../format/lib/content/section-min-height.js";import t from"../../../../../components/Grid.js";import{GridMeta as m}from"../../../../../../format/lib/document/blocks/general/Grid/meta.js";const f={...m,render:o=>e(t,{columns:o.columns,mobileColumns:o.mobileColumns,gap:o.gap,gapPhone:o[n("gap")],contained:o.contained,fillHeight:i(o),content:o.content})};export{f as GridRender};
1
+ import{jsx as t}from"react/jsx-runtime";import{phoneKey as n,tabletKey as o}from"efficient-easel/draw";import{sectionFillsHeight as i}from"../../../../../../format/lib/content/section-min-height.js";import m from"../../../../../components/Grid.js";import{GridMeta as a}from"../../../../../../format/lib/document/blocks/general/Grid/meta.js";const f={...a,render:e=>t(m,{columns:e.columns,mobileColumns:e.mobileColumns,gap:e.gap,gapPhone:e[n("gap")],gapTablet:e[o("gap")],contained:e.contained,fillHeight:i(e),content:e.content})};export{f as GridRender};
@@ -1 +1 @@
1
- import{jsx as S}from"react/jsx-runtime";import f from"../../../../../components/HeroSection.js";import{HeroMeta as H}from"../../../../../../format/lib/document/blocks/general/Hero/meta.js";const I={...H,render:({slides:e,alignment:r,textureOpacity:o,showTexture:t,textureColor:i,phoneUpDown:s,phoneSideways:a,autoplay:p,autoplayInterval:n,showTicker:h,tickerItems:c,heightDesktop:m,heightMobile:l,showPicker:w,pickerShape:d,pickerPlacement:k,showArrows:x,arrowsShape:g,arrowsPlacement:u,editor:y})=>S(f,{slides:e,alignment:r,textureOpacity:o,showTexture:t,textureColor:i,phoneUpDown:s,phoneSideways:a,autoplay:p,autoplayInterval:n,showTicker:h,tickerItems:c,heightDesktop:m,heightMobile:l,showPicker:w,pickerShape:d,pickerPlacement:k,showArrows:x,arrowsShape:g,arrowsPlacement:u,editing:y?.isEditing})};export{I as HeroRender};
1
+ import{jsx as f}from"react/jsx-runtime";import H from"../../../../../components/HeroSection.js";import{HeroMeta as M}from"../../../../../../format/lib/document/blocks/general/Hero/meta.js";const I={...M,render:({slides:e,alignment:o,textureOpacity:r,showTexture:t,textureColor:i,phoneUpDown:a,phoneSideways:s,autoplay:p,autoplayInterval:n,showTicker:h,tickerItems:c,heightDesktop:m,heightMobile:l,showPicker:w,pickerShape:d,pickerPlacement:k,showArrows:x,arrowsShape:g,arrowsPlacement:u,_partMotion:y,editor:S})=>f(H,{slides:e,alignment:o,textureOpacity:r,showTexture:t,textureColor:i,phoneUpDown:a,phoneSideways:s,autoplay:p,autoplayInterval:n,showTicker:h,tickerItems:c,heightDesktop:m,heightMobile:l,showPicker:w,pickerShape:d,pickerPlacement:k,showArrows:x,arrowsShape:g,arrowsPlacement:u,editing:S?.isEditing,partMotion:y})};export{I as HeroRender};
@@ -1 +1 @@
1
- import{jsx as f}from"react/jsx-runtime";import{phoneKey as c}from"efficient-easel/draw";import s from"../../../../../components/HeroGroup.js";import{padValuesOf as l}from"../../../../content/section-padding.js";import{HeroGroupMeta as h}from"../../../../../../format/lib/document/blocks/general/HeroGroup/meta.js";const H={...h,render:e=>{const{placement:r,nudgeX:o,nudgeY:t,width:n,gap:a,direction:i,justify:p,align:d,wrap:g,content:m,editor:u}=e;return f(s,{placement:r,nudgeX:o,nudgeY:t,width:n,gap:a,gapPhone:e[c("gap")],direction:i,justify:p,align:d,wrap:g,pad:l(e),content:m,dragRef:u?.dragRef})}};export{H as HeroGroupRender};
1
+ import{jsx as f}from"react/jsx-runtime";import{phoneKey as c,tabletKey as l}from"efficient-easel/draw";import s from"../../../../../components/HeroGroup.js";import{padValuesOf as h}from"../../../../content/section-padding.js";import{HeroGroupMeta as j}from"../../../../../../format/lib/document/blocks/general/HeroGroup/meta.js";const R={...j,render:e=>{const{placement:t,nudgeX:r,nudgeY:o,width:n,gap:a,direction:i,justify:p,align:d,wrap:g,content:m,editor:u}=e;return f(s,{placement:t,nudgeX:r,nudgeY:o,width:n,gap:a,gapPhone:e[c("gap")],gapTablet:e[l("gap")],direction:i,justify:p,align:d,wrap:g,pad:h(e),content:m,dragRef:u?.dragRef})}};export{R as HeroGroupRender};
@@ -1 +1 @@
1
- import{jsx as H}from"react/jsx-runtime";import k from"../../../../../components/HeroSingle.js";import{HeroSingleMeta as L}from"../../../../../../format/lib/document/blocks/general/HeroSingle/meta.js";const E={...L,render:({mediaType:e,mediaImage:t,mediaVideo:n,poster:r,imageFocal:d,tintColor:s,tintOpacity:a,overlay:f,overlayColor:u,overlayPosition:g,heightDesktop:l,heightMobile:m,boxes:b,videoSource:c,youtubeUrl:y,videoPlayback:p,mediaLayout:P,mediaLayoutPhone:j,mediaImage2:h,imageFocal2:v,imageFocalPhone:i,imageFocal2Phone:o,tintColor2:S,tintOpacity2:x,editor:C})=>H(k,{mediaType:e,videoSource:c,youtubeUrl:y,videoPlayback:p,mediaLayout:P,mediaLayoutPhone:j,mediaImage2:h||void 0,objectPosition2:v||void 0,objectPosition2Phone:typeof o=="string"?o:void 0,tintColor2:S,tintOpacity2:x,mediaSrc:(e==="image"?t:n)||void 0,poster:r||void 0,objectPosition:e==="image"&&d||void 0,objectPositionPhone:e==="image"&&typeof i=="string"?i:void 0,tintColor:s,tintOpacity:e==="image"?a:0,overlay:f,overlayColor:u,overlayPosition:g,heightDesktop:l,heightMobile:m,boxes:b,editing:C?.isEditing})};export{E as HeroSingleRender};
1
+ import{jsx as M}from"react/jsx-runtime";import k from"../../../../../components/HeroSingle.js";import{HeroSingleMeta as L}from"../../../../../../format/lib/document/blocks/general/HeroSingle/meta.js";const I={...L,render:({mediaType:e,mediaImage:t,mediaVideo:n,poster:r,imageFocal:d,tintColor:s,tintOpacity:a,overlay:f,overlayColor:u,overlayPosition:g,heightDesktop:l,heightMobile:m,boxes:b,videoSource:c,youtubeUrl:p,videoPlayback:y,mediaLayout:P,mediaLayoutPhone:j,mediaImage2:h,imageFocal2:v,imageFocalPhone:o,imageFocal2Phone:i,tintColor2:S,tintOpacity2:x,_partMotion:C,editor:H})=>M(k,{mediaType:e,videoSource:c,youtubeUrl:p,videoPlayback:y,mediaLayout:P,mediaLayoutPhone:j,mediaImage2:h||void 0,objectPosition2:v||void 0,objectPosition2Phone:typeof i=="string"?i:void 0,tintColor2:S,tintOpacity2:x,mediaSrc:(e==="image"?t:n)||void 0,poster:r||void 0,objectPosition:e==="image"&&d||void 0,objectPositionPhone:e==="image"&&typeof o=="string"?o:void 0,tintColor:s,tintOpacity:e==="image"?a:0,overlay:f,overlayColor:u,overlayPosition:g,heightDesktop:l,heightMobile:m,boxes:b,editing:H?.isEditing,partMotion:C})};export{I as HeroSingleRender};
@@ -1 +1 @@
1
- import{jsx as a}from"react/jsx-runtime";import{CardRowDrawn as u}from"../../../../../components/CardRowContext.js";import w from"../../../../../components/ImageBlock.js";import{cardTemplateField as y,namedRowField as k,rowFieldText as x}from"../../../../../../format/lib/content/card-template.js";import{ImageBlockMeta as B}from"../../../../../../format/lib/document/blocks/general/ImageBlock/meta.js";const j={...B,render:e=>{const t=k(e);return t?a(u,{type:"ImageBlock",props:e,children:(o,r)=>{const n=r?y(r.ownerType,t)?.alt:void 0;return c(e,o.src,(n&&x(r?.row,n))??e.alt)}}):c(e,e.src,e.alt)}};function c({aspect:e,contained:t,grayscale:o,href:r,fit:n,focal:d,focalPhone:i,corners:l,cornerSides:m,editor:f},s,g){return a(w,{src:s,alt:g,aspect:e,contained:t,grayscale:o,href:r,fit:n,focal:d,focalPhone:typeof i=="string"?i:void 0,corners:l,cornerSides:m,editing:f?.isEditing===!0})}export{j as ImageBlockRender};
1
+ import{jsx as a}from"react/jsx-runtime";import{CardRowDrawn as w}from"../../../../../components/CardRowContext.js";import k from"../../../../../components/ImageBlock.js";import{cardTemplateField as y,namedRowField as h,rowFieldText as S}from"../../../../../../format/lib/content/card-template.js";import{blockSizeOf as x,blockSizeValuesOf as B}from"../../../../content/block-size.js";import{padValuesOf as I}from"../../../../content/section-padding.js";import{ImageBlockMeta as z}from"../../../../../../format/lib/document/blocks/general/ImageBlock/meta.js";const P={...z,render:e=>{const o=h(e);return o?a(w,{type:"ImageBlock",props:e,children:(n,r)=>{const t=r?y(r.ownerType,o)?.alt:void 0;return c(e,n.src,(t&&S(r?.row,t))??e.alt)}}):c(e,e.src,e.alt)}};function c(e,o,n){const{aspect:r,contained:t,grayscale:l,href:d,fit:f,focal:m,focalPhone:i,corners:s,cornerSides:u,editor:g}=e;return a(k,{src:o,alt:n,aspect:r,contained:t,grayscale:l,href:d,fit:f,focal:m,focalPhone:typeof i=="string"?i:void 0,corners:s,cornerSides:u,pad:I(e),ownSize:x(B(e))!==null,editing:g?.isEditing===!0})}export{P as ImageBlockRender};
@@ -1 +1 @@
1
- import{Fragment as g,jsx as r}from"react/jsx-runtime";import{CardRowDrawn as p}from"../../../../../components/CardRowContext.js";import{namedRowField as y}from"../../../../../../format/lib/content/card-template.js";import{blockSetsItsWidth as S,blockSizeValuesOf as b}from"../../../../content/block-size.js";import{padValuesOf as u}from"../../../../content/section-padding.js";import w from"../../../../../components/Text.js";import{hidableText as a,readHidable as P}from"efficient-easel/draw";import{PH as d}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phPrev as T}from"../../scaffold.js";import{readPartStyle as F}from"../../../part-styles.js";import{TextMeta as R}from"../../../../../../format/lib/document/blocks/general/Text/meta.js";const M={...R,render:t=>{const{text:o,align:m,alignPhone:l,tone:f,tag:x,contained:c,editor:h}=t;if(P(o).hidden)return r(g,{});const i=F(t,"text").textStyle,s=i?.startsWith("heading-")?d.heading:d.body,n=e=>r(w,{text:T(e,s,h)??"",align:m,alignPhone:l,tone:f,tag:x,textStyle:i,ownWidth:S(b(t)),contained:c,pad:u(t)});return y(t)?r(p,{type:"Text",props:t,children:e=>n(a(e.text))}):n(a(o))}};export{M as TextRender};
1
+ import{Fragment as p,jsx as r}from"react/jsx-runtime";import{CardRowDrawn as y}from"../../../../../components/CardRowContext.js";import{CountDrawn as w}from"../../../../../components/CountRowsContext.js";import{namedRowField as S}from"../../../../../../format/lib/content/card-template.js";import{blockSetsItsWidth as b,blockSizeValuesOf as P}from"../../../../content/block-size.js";import{linkedCount as T}from"../../../../../../format/lib/content/count-numbers.js";import{padValuesOf as k}from"../../../../content/section-padding.js";import C from"../../../../../components/Text.js";import{hidableText as i,readHidable as F}from"efficient-easel/draw";import{PH as d}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phPrev as R}from"../../scaffold.js";import{readPartStyle as W}from"../../../part-styles.js";import{TextMeta as j}from"../../../../../../format/lib/document/blocks/general/Text/meta.js";const E={...j,render:t=>{const{text:o,align:l,alignPhone:f,tone:c,tag:x,contained:h,editor:s}=t;if(F(o).hidden)return r(p,{});const a=W(t,"text").textStyle,g=a?.startsWith("heading-")?d.heading:d.body,n=e=>r(C,{text:R(e,g,s)??"",align:l,alignPhone:f,tone:c,tag:x,textStyle:a,ownWidth:b(P(t)),contained:h,pad:k(t)}),u=S(t),m=T(t);return m?r(w,{countKey:m,children:e=>n(e??i(o))}):u?r(y,{type:"Text",props:t,children:e=>n(i(e.text))}):n(i(o))}};export{E as TextRender};
@@ -5,5 +5,6 @@ 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
7
  export declare const token: (step: string, px: number, pxPhone?: number, stepPhone?: string) => Props;
8
+ export declare const fluidToken: (step: string, minPx: number, vw: number, px: number) => Props;
8
9
  export declare function headTree(type: string): PartRow;
9
10
  export {};
@@ -1,2 +1,2 @@
1
- import{SPLITTABLE_SECTIONS as f}from"../../../../../format/lib/sections/section-head-placement.js";import{BUTTON as x,DIM as B,INNER_BOX as o,SH_LINK as E,TEXT as S,smallText as N}from"./section-to-box-row-parts.js";import{labelTextSeed as P}from"../../../../../format/lib/document/text-seeds.js";function L(e){if(e==="ProductGrid")return"shelf";const t=f[e]?.headStyle;return t==="editorial"||t==="simple"||t==="essay"?t:"standard"}const W={standard:64,editorial:60,simple:36,essay:28,shelf:20},_={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function I(e){if(e==="SectionHeader")return{num:"num",title:"title",description:"description",link:!0};const t=f[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 j(e,t,n){const i=`editorial:${e}|${t}|${n}`,r=d.get(i);if(r)return r;const s=w({num:e,title:t,description:n,link:!1});return d.set(i,s),s}const g={top:0,right:0,bottom:1,left:0},a=(e,t,n,i)=>({sizeToken:{step:e,px:t,...i?{stepPhone:i}:{},...n?{pxPhone:n}:{}}}),T=(e,t,n,i)=>({sizeToken:{step:e,px:i,fluid:{minPx:t,vw:n}}}),l=(e,t,n={})=>N(e,{...a("label",t),...n}),c=(e,t)=>({kind:"text",key:e,role:"heading",props:S,style:{textStyle:"heading-2",...t}}),u=(e,t,n,i)=>({kind:"text",key:e,props:{...B,align:"right",maxWidth:n},style:{textStyle:"body-5",fontRole:"heading",...a("body",t),...i}}),k={...x,align:"right",...E,icon:"arrow-right",iconPosition:"after"},h=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:k,style:{textStyle:"body-5",color:"labels",...a("label",e),letterSpacing:.2,case:"upper"}}),b=(e,t,n)=>{const i=n.role==="heading"?{tag:"h2"}:{};return{kind:"block",type:"Text",when:r=>r[e]===void 0,props:{...S,...i,...n.props,text:t,_partStyles:{text:{...n.role==="eyebrow"?M(P()):{},...n.style}}}}},M=e=>e._partStyles.text??{};function O(e,t){const n=_[e],i=n==="accent",r=l(t.num,14,{color:i?"accent":"labels"}),s=n==="accentNum"&&r.kind==="text"?{...r,mark:"accentLead"}:r,m=c(t.title,i?{...T("headingMedium",36,5,64),case:"upper",lineHeight:.95,letterSpacing:-.025}:{...a("headingMedium",56,36),case:"none",lineHeight:1,letterSpacing:-.03}),p=e==="Collections";return{kind:"group",name:"Header",props:{...o,direction:"row",align:"end",justify:"between",gap:40,share:"content",sectionBorder:g,sectionPaddingBottom:24,sectionPaddingBottomPhone:20},parts:[{kind:"group",name:"Title",props:{...o,direction:"row",align:"end",gap:40,share:"content"},parts:[{kind:"group",name:"Number",props:{...o,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},s,...p?[b(t.num,"==01== / Collections",s)]:[]]},m,...p?[b(t.title,`Three ranges,
2
- one standard.`,m)]:[]]},{kind:"group",name:"Words",props:{...o,align:"end",gap:12},parts:[...t.description?[u(t.description,14,340,{lineHeight:1.5})]:[],...t.link?[h(14)]:[],...p?[{kind:"block",type:"ButtonBlock",props:{...k,variant:"ghost",label:"View all",href:"/wheels",_partStyles:{label:h(14).style}}}]:[]]}]}}function w(e){return{kind:"group",name:"Header",props:{...o,direction:"row",align:"end",justify:"between",gap:40,share:"content",sectionBorder:g,sectionPaddingBottom:32},parts:[{kind:"group",name:"Title",props:{...o,direction:"row",align:"end",gap:40,share:"content"},parts:[{kind:"group",name:"Number",props:{...o,sectionPaddingBottom:8},parts:[l(e.num,13)]},c(e.title,{...T("headingMedium",40,5.5,80),case:"upper",weight:500,lineHeight:1,letterSpacing:-.03})]},{kind:"group",name:"Words",props:{...o,align:"end",sectionPaddingBottom:4},parts:e.description?[u(e.description,14,360,{lineHeight:1.5})]:[]}]}}function H(e,t){return{kind:"group",name:"Header",props:{...o,gap:16},parts:[l(e.num,13),c(e.title,t)]}}const y=[["para",{textStyle:"body-5",...a("label",13),case:"upper",weight:400,lineHeight:1,letterSpacing:.22}],["sm",{...a("headingMedium",40,28),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["md",{...a("headingMedium",48,32),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["lg",{...a("headingMedium",56,36),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["xl",{...a("headingMedium",64,40),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}]],A=e=>y.some(([t])=>t===e.titleSize)?e.titleSize:"lg";function R(e){return{kind:"group",name:"Header",props:{...o,direction:"row",align:"center",justify:"between",gap:16,share:"content",stickTop:!0,sectionBorder:g,sectionPaddingTop:12,sectionPaddingBottom:12},parts:[{kind:"group",name:"Title",props:{...o,direction:"row",align:"end",gap:24,share:"content"},parts:[l(e.num,13,{color:"labels",letterSpacing:.22,lineHeight:1}),...y.map(([t,n])=>({...c(e.title,n),when:i=>A(i)===t}))]},{kind:"group",name:"Words",props:{...o,direction:"row",align:"center",justify:"end",gap:20,share:"content"},parts:[...e.description?[u(e.description,13,340,{lineHeight:1.4})]:[],...e.link?[h(13)]:[]]}]}}const d=new Map;function D(e){const t=d.get(e);if(t)return t;const n=I(e),i=L(e),r=i==="editorial"?w(n):i==="simple"?H(n,{...a("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}):i==="essay"?H(n,{...a("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):i==="shelf"?R(n):O(e,n);return d.set(e,r),r}export{W as HEAD_BELOW,j as editorialHeadTree,L as headLookOf,D as headTree,a as token};
1
+ import{readHidable as N}from"efficient-easel/draw";import{SPLITTABLE_SECTIONS as T}from"../../../../../format/lib/sections/section-head-placement.js";import{BUTTON as B,DIM as E,INNER_BOX as o,SH_LINK as L,TEXT as k,smallText as _}from"./section-to-box-row-parts.js";import{labelTextSeed as O}from"../../../../../format/lib/document/text-seeds.js";function M(e){if(e==="ProductGrid")return"shelf";const t=T[e]?.headStyle;return t==="editorial"||t==="simple"||t==="essay"?t:"standard"}const K={standard:64,editorial:60,simple:36,essay:28,shelf:20},I={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function W(e){if(e==="SectionHeader")return{num:"num",title:"title",description:"description",link:!0};const t=T[e];if(!t)throw new Error(`section-head-looks: "${e}" has no head row in SPLITTABLE_SECTIONS`);return{num:t.num,title:t.title,description:t.description,link:t.headRows.includes("linkText")&&t.headRows.includes("linkHref")}}function U(e,t,n){const i=`editorial:${e}|${t}|${n}`,r=p.get(i);if(r)return r;const s=H({num:e,title:t,description:n,link:!1});return p.set(i,s),s}const h={top:0,right:0,bottom:1,left:0},a=(e,t,n,i)=>({sizeToken:{step:e,px:t,...i?{stepPhone:i}:{},...n?{pxPhone:n}:{}}}),P=(e,t,n,i)=>({sizeToken:{step:e,px:i,fluid:{minPx:t,vw:n}}}),l=(e,t,n={})=>_(e,{...a("label",t),...n}),A=(e,t)=>{const n=N(e).text.trim();return/\s/.test(n)?{minWidth:Math.ceil(n.length*t*.9),minWidthPhone:0,widthFitPhone:"fill"}:{}},c=(e,t)=>({kind:"text",key:e,role:"heading",props:k,style:{textStyle:"heading-2",...t}}),u=800,m=(e,t,n,i)=>({kind:"text",key:e,props:{...E,align:"right",alignPhone:"left",...n?{maxWidth:n,maxWidthPhone:u}:{}},style:{textStyle:"body-5",fontRole:"heading",alignPhone:"left",...a("body",t),...i}}),b={...B,align:"right",alignPhone:"left",...L,icon:"arrow-right",iconPosition:"after"},f=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:b,style:{textStyle:"body-5",color:"labels",...a("label",e),letterSpacing:.2,case:"upper"}}),w=(e,t,n)=>{const i=n.role==="heading"?{tag:"h2"}:{};return{kind:"block",type:"Text",when:r=>r[e]===void 0,props:{...k,...i,...n.props,text:t,_partStyles:{text:{...n.role==="eyebrow"?C(O()):{},...n.style}}}}},C=e=>e._partStyles.text??{},d={widthFitPhone:"fill"};function F(e,t){const n=I[e],i=n==="accent",r=l(t.num,14,{color:i?"accent":"labels"}),s=n==="accentNum"&&r.kind==="text"?{...r,mark:"accentLead"}:r,S=c(t.title,i?{...P("headingMedium",36,5,64),case:"upper",lineHeight:.95,letterSpacing:-.025}:{...a("headingMedium",56,36),case:"none",lineHeight:1,letterSpacing:-.03}),g=e==="Collections";return{kind:"group",name:"Header",props:{...o,direction:"row",align:"end",justify:"between",gap:40,gapPhone:12,share:"content",sectionBorder:h,sectionPaddingBottom:24,sectionPaddingBottomPhone:20},parts:[{kind:"group",name:"Title",props:{...o,...d,direction:"row",align:"end",gap:40,gapPhone:12,share:"content"},parts:[{kind:"group",name:"Number",props:{...o,...d,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},s,...g?[w(t.num,"==01== / Collections",s)]:[]]},{kind:"group",name:"Heading",props:{...o,...d},parts:[S,...g?[w(t.title,`Three ranges,
2
+ one standard.`,S)]:[]]}]},{kind:"group",name:"Words",props:{...o,...d,gap:12,maxWidth:340,maxWidthPhone:u},parts:[...t.description?[m(t.description,14,void 0,{lineHeight:1.5})]:[],...t.link?[f(14)]:[],...g?[{kind:"block",type:"ButtonBlock",props:{...b,variant:"ghost",label:"View all",href:"/wheels",_partStyles:{label:f(14).style}}}]:[]]}]}}function H(e){return{kind:"group",name:"Header",props:{...o,direction:"row",align:"end",justify:"between",gap:40,gapPhone:14,share:"content",sectionBorder:h,sectionPaddingBottom:32},parts:[{kind:"group",name:"Title",props:{...o,direction:"row",align:"end",gap:40,gapPhone:14,share:"content"},parts:[{kind:"group",name:"Number",props:t=>({...o,sectionPaddingBottom:8,...A(t[e.num],13)}),parts:[l(e.num,13)]},c(e.title,{...P("headingMedium",40,5.5,80),case:"upper",weight:500,lineHeight:1,letterSpacing:-.03})]},{kind:"group",name:"Words",props:{...o,sectionPaddingBottom:4,maxWidth:360,maxWidthPhone:u},parts:e.description?[m(e.description,14,void 0,{lineHeight:1.5})]:[]}]}}function x(e,t){return{kind:"group",name:"Header",props:{...o,gap:16,gapPhone:16},parts:[l(e.num,13),c(e.title,t)]}}const y=[["para",{textStyle:"body-5",...a("label",13),case:"upper",weight:400,lineHeight:1,letterSpacing:.22}],["sm",{...a("headingMedium",40,28),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["md",{...a("headingMedium",48,32),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["lg",{...a("headingMedium",56,36),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["xl",{...a("headingMedium",64,40),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}]],R=e=>y.some(([t])=>t===e.titleSize)?e.titleSize:"lg";function z(e){return{kind:"group",name:"Header",props:{...o,direction:"row",align:"center",justify:"between",gap:16,share:"content",stickTop:!0,sectionBorder:h,sectionPaddingTop:12,sectionPaddingBottom:12},parts:[{kind:"group",name:"Title",props:{...o,direction:"row",align:"end",gap:24,share:"content"},parts:[l(e.num,13,{color:"labels",letterSpacing:.22,lineHeight:1}),...y.map(([t,n])=>({...c(e.title,n),when:i=>R(i)===t}))]},{kind:"group",name:"Words",props:{...o,direction:"row",align:"center",justify:"end",gap:20,share:"content"},parts:[...e.description?[m(e.description,13,340,{lineHeight:1.4})]:[],...e.link?[f(13)]:[]]}]}}const p=new Map;function X(e){const t=p.get(e);if(t)return t;const n=W(e),i=M(e),r=i==="editorial"?H(n):i==="simple"?x(n,{...a("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}):i==="essay"?x(n,{...a("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):i==="shelf"?z(n):F(e,n);return p.set(e,r),r}export{K as HEAD_BELOW,U as editorialHeadTree,P as fluidToken,M as headLookOf,X as headTree,a as token};
@@ -2,6 +2,7 @@ import { SECTION_PAD_INNER_DEFAULTS } from "../../passes/section-padding.js";
2
2
  import { type BoxEntry, type ConvertContext, type PartRow, type SiteWrite } from "../../../sections/section-to-box.js";
3
3
  type Props = Record<string, unknown>;
4
4
  export declare const TEXT: Props;
5
+ export declare const NUMBER_TEXT: Props;
5
6
  export declare const DIM: Props;
6
7
  export declare const BUTTON: Props;
7
8
  export declare const SH_LINK: Props;
@@ -26,7 +27,14 @@ export declare const headingCaseOf: (key: string) => (node: {
26
27
  props: Props;
27
28
  }) => readonly SiteWrite[];
28
29
  export declare const smallText: (key: string, style?: Props) => PartRow;
30
+ export declare const numberAndUnit: (number: unknown, unit: unknown) => string;
31
+ export declare const RIGHT_WORDS: Props;
32
+ export declare const leadText: (lead: string, rest: string, props: Props) => PartRow;
33
+ export declare const leadLine: (lead: string, rest: string, run: Props, own?: Props) => PartRow;
29
34
  export declare const bandPage: (stored: unknown, ctx: ConvertContext) => number;
35
+ export declare const sectionPage: (p: Props, ctx: ConvertContext) => import("../../../../../format/lib/theme.js").ThemeColors | undefined;
36
+ export declare const fillFrom: (colour: "surface" | "background") => (p: Props, ctx: ConvertContext) => Props;
37
+ export declare const lineBorder: (p: Props, ctx: ConvertContext) => Props;
30
38
  export declare const bandIndex: (p: Props, ctx: ConvertContext) => number;
31
39
  export declare const bandAccent: (stored: unknown, p: Props, ctx: ConvertContext) => unknown;
32
40
  export declare const bandProps: (p: Props, ctx: ConvertContext) => Props;
@@ -1 +1 @@
1
- import{phoneKey as P}from"efficient-easel/draw";import{ENTRANCE_KEYS as m}from"../../../animation/entrance.js";import{NESTED_BOX_PADDING as u}from"../../../../../format/lib/content/box-layout.js";import{resolveSectionPadding as f}from"../../../content/section-padding.js";import{ButtonBlockMeta as x}from"../../../../../format/lib/document/blocks/general/ButtonBlock/meta.js";import{TextMeta as b}from"../../../../../format/lib/document/blocks/general/Text/meta.js";import{SECTION_PAD_INNER_DEFAULTS as l}from"../../passes/section-padding.js";import{finiteNumber as d}from"../../../../../format/lib/finite-number.js";import{convertTheme as r,hasWords as T}from"../../../sections/section-to-box.js";import{bandPresetIndex as B}from"../../../../../format/lib/theme.js";const{text:C,tag:H,..._}=b.defaultProps,a=_,R={...a,tone:"dim"},{label:L,href:K,...E}=x.defaultProps,U=E,X={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},p={justify:"start",align:"stretch",wrap:!1,blockSpacing:"gap",padV2:!0},F={...p,direction:"column",...u},j={...p,sectionAccent:0},G=["gridSpan","sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderPhone","sectionAccent","stickTop","stickTopDistance","stickTopPhone","stickTopDistancePhone","anchor","sectionAnimation","_hidden",...Object.values(m).flatMap(t=>[t,P(t)]),"widthFit","widthFitPhone","width","widthPhone","minWidth","minWidthPhone","maxWidth","maxWidthPhone"],i="a section width key, ignored since efficient-web-builder 45 (every section, and a section's root Box, follows Site styles only; Lewis 2026-10-29), so dropping it changes nothing",V={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:i,fullWidth:i,pageWidth:i,backgroundWidth:i,contentWidth:i,contentMax:i},J=Object.fromEntries(["sectionPaddingLeft","sectionPaddingRight","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 S(t,o){const e=d(t.sectionPaddingTop)??0,n=d(t.sectionPaddingBottom)??0;return{sectionPaddingTop:e+o.top,sectionPaddingBottom:n+o.bottom,sectionPaddingTopPhone:(d(t.sectionPaddingTopPhone)??e)+o.topPhone,sectionPaddingBottomPhone:(d(t.sectionPaddingBottomPhone)??n)+o.bottomPhone}}const Y=t=>["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(e,n)=>S(n,typeof t=="function"?t(n):t)[o]]);function s(t,o){const e=f(t,l[o]);return{sectionPaddingTop:e.top,sectionPaddingBottom:e.bottom}}const q=t=>[["padTop","sectionPaddingTop",(o,e)=>s(e,t).sectionPaddingTop],["padBottom","sectionPaddingBottom",(o,e)=>s(e,t).sectionPaddingBottom],["sectionPaddingTop","sectionPaddingTop",(o,e)=>s(e,t).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,e)=>s(e,t).sectionPaddingBottom]],N={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},z=t=>o=>T(o.props[t])?[N]:[],Q=(t,o)=>({kind:"text",key:t,role:"eyebrow",props:a,...o?{style:o}:{}}),g=t=>t.background!=="transparent",h=(t,o)=>typeof t=="number"&&Number.isInteger(t)&&t>=0?t:r(o)?.selected??0,c=(t,o)=>{const e=r(o)?.themes;return e&&g(t)?B(e,h(t.sectionAccent,o)):-1},Z=(t,o,e)=>{const n=c(o,e);return n>=0?n:t},$=(t,o)=>{const e=c(t,o);return e>=0?{sectionAccent:e}:{}},tt=(t,o)=>g(t.props)&&c(t.props,o)<0?[{kind:"band-preset",page:h(t.props.sectionAccent,o)}]:[];export{p as BOX,U as BUTTON,R as DIM,V as DROP_COMMON,J as DROP_SIDE_PADDING,N as HEADING_CASE_UPPER,F as INNER_BOX,G as SAME_KEYS,j as SECTION_BOX,X as SH_LINK,a as TEXT,Z as bandAccent,c as bandIndex,h as bandPage,$ as bandProps,tt as bandWrites,z as headingCaseOf,s as innerPad,q as innerPadKeys,Q as smallText,S as wrapperPad,Y as wrapperPadKeys};
1
+ import{phoneKey as T}from"efficient-easel/draw";import{ENTRANCE_KEYS as u}from"../../../animation/entrance.js";import{COUNT_KEY_PROP as x}from"../../../../../format/lib/content/block-sources.js";import{NESTED_BOX_PADDING as f}from"../../../../../format/lib/content/box-layout.js";import{resolveSectionPadding as _}from"../../../content/section-padding.js";import{ButtonBlockMeta as B}from"../../../../../format/lib/document/blocks/general/ButtonBlock/meta.js";import{TextMeta as E}from"../../../../../format/lib/document/blocks/general/Text/meta.js";import{SECTION_PAD_INNER_DEFAULTS as S}from"../../passes/section-padding.js";import{finiteNumber as s}from"../../../../../format/lib/finite-number.js";import{convertTheme as a,hasWords as N}from"../../../sections/section-to-box.js";import{bandPresetIndex as O}from"../../../../../format/lib/theme.js";const{text:j,tag:V,...A}=E.defaultProps,p=A,D={...p,[x]:""},Y={...p,tone:"dim"},{label:$,href:J,...I}=B.defaultProps,q=I,z={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},h={justify:"start",align:"stretch",wrap:!1,blockSpacing:"gap",padV2:!0},Q={...h,direction:"column",...f},Z={...h,sectionAccent:0},tt=["gridSpan","sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderPhone","sectionAccent","stickTop","stickTopDistance","stickTopPhone","stickTopDistancePhone","anchor","sectionAnimation","_hidden",...Object.values(u).flatMap(t=>[t,T(t)]),"widthFit","widthFitPhone","width","widthPhone","minWidth","minWidthPhone","maxWidth","maxWidthPhone"],r="a section width key, ignored since efficient-web-builder 45 (every section, and a section's root Box, follows Site styles only; Lewis 2026-10-29), so dropping it changes nothing",ot={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:r,fullWidth:r,pageWidth:r,backgroundWidth:r,contentWidth:r,contentMax:r},et=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 y(t,o){const e=s(t.sectionPaddingTop)??0,n=s(t.sectionPaddingBottom)??0,i=s(t.sectionPaddingTopTablet),d=s(t.sectionPaddingBottomTablet);return{sectionPaddingTop:e+o.top,sectionPaddingBottom:n+o.bottom,...i===void 0?{}:{sectionPaddingTopTablet:i+o.top},...d===void 0?{}:{sectionPaddingBottomTablet:d+o.bottom},sectionPaddingTopPhone:(s(t.sectionPaddingTopPhone)??i??e)+o.topPhone,sectionPaddingBottomPhone:(s(t.sectionPaddingBottomPhone)??d??n)+o.bottomPhone}}const nt=t=>["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopTablet","sectionPaddingBottomTablet","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(e,n)=>y(n,typeof t=="function"?t(n):t)[o]]);function c(t,o){const e=_(t,S[o]);return{sectionPaddingTop:e.top,sectionPaddingBottom:e.bottom}}const it=t=>[["padTop","sectionPaddingTop",(o,e)=>c(e,t).sectionPaddingTop],["padBottom","sectionPaddingBottom",(o,e)=>c(e,t).sectionPaddingBottom],["sectionPaddingTop","sectionPaddingTop",(o,e)=>c(e,t).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,e)=>c(e,t).sectionPaddingBottom]],R={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},dt=t=>o=>N(o.props[t])?[R]:[],st=(t,o)=>({kind:"text",key:t,role:"eyebrow",props:p,...o?{style:o}:{}}),l=t=>t.background!=="transparent",k=(t,o)=>{const[e,n]=[t,o].map(i=>typeof i=="string"?i.trim():"");return e?n?`[${e} ]{color=text}${n}`:`[${e}]{color=text}`:n},m={align:"right",alignPhone:"left"},v=(t,o,e)=>{const n=i=>k(i[t],i[o]);return{kind:"block",type:"Text",when:(i,d)=>d!==void 0&&n(d)!=="",box:[[t,"text",(i,d)=>n(d)],[o,"text",(i,d)=>n(d)]],props:e}},rt=(t,o,e,n={})=>v(t,o,{...D,...m,...n,_partStyles:{text:{textStyle:"body-5",color:"labels",...e,case:"upper",...m}}}),g=(t,o)=>typeof t=="number"&&Number.isInteger(t)&&t>=0?t:a(o)?.selected??0,b=(t,o)=>a(o)?.themes[g(t.sectionAccent??0,o)],ct=t=>(o,e)=>{const n=b(o,e)?.[t];return n?{fillColor:n}:{}},at=(t,o)=>{const e=b(t,o)?.line;return e?{buttonBorder:{width:1,color:e}}:{}},P=(t,o)=>{const e=a(o)?.themes;return e&&l(t)?O(e,g(t.sectionAccent,o)):-1},pt=(t,o,e)=>{const n=P(o,e);return n>=0?n:t},gt=(t,o)=>{const e=P(t,o);return e>=0?{sectionAccent:e}:{}},Pt=(t,o)=>l(t.props)&&P(t.props,o)<0?[{kind:"band-preset",page:g(t.props.sectionAccent,o)}]:[];export{h as BOX,q as BUTTON,Y as DIM,ot as DROP_COMMON,et as DROP_SIDE_PADDING,R as HEADING_CASE_UPPER,Q as INNER_BOX,D as NUMBER_TEXT,m as RIGHT_WORDS,tt as SAME_KEYS,Z as SECTION_BOX,z as SH_LINK,p as TEXT,pt as bandAccent,P as bandIndex,g as bandPage,gt as bandProps,Pt as bandWrites,ct as fillFrom,dt as headingCaseOf,c as innerPad,it as innerPadKeys,rt as leadLine,v as leadText,at as lineBorder,k as numberAndUnit,b as sectionPage,st as smallText,y as wrapperPad,nt as wrapperPadKeys};
@@ -1,2 +1,2 @@
1
- import type { SectionToBoxRow } from "../../../sections/section-to-box.js";
1
+ import { type SectionToBoxRow } from "../../../sections/section-to-box.js";
2
2
  export declare const CARDS_SECTION_TO_BOX: Readonly<Record<string, SectionToBoxRow>>;
@@ -1 +1 @@
1
- import{cardColumns as D}from"../../../../components/Cards.js";import{CardsMeta as L}from"../../../../../format/lib/document/blocks/general/Cards/meta.js";import{KeyFeaturesMeta as v}from"../../../../../format/lib/document/blocks/general/KeyFeatures/meta.js";import{finiteNumber as g}from"../../../../../format/lib/finite-number.js";import{parseSectionHeadPlacement as F}from"../../../../../format/lib/sections/section-head-placement.js";import{BUTTON as K,DIM as h,DROP_COMMON as a,DROP_SIDE_PADDING as i,INNER_BOX as s,SAME_KEYS as d,SECTION_BOX as p,SH_LINK as I,TEXT as r,headingCaseOf as m,smallText as n,wrapperPad as l,wrapperPadKeys as c}from"./section-to-box-row-parts.js";import{headTree as b}from"./section-head-looks.js";const t=(e,o,B,T)=>({sectionBorder:{top:e,right:o,bottom:B,left:T}}),u=(e,o=e)=>({sectionPaddingTop:e,sectionPaddingRight:e,sectionPaddingBottom:e,sectionPaddingLeft:e,sectionPaddingTopPhone:o,sectionPaddingRightPhone:o,sectionPaddingBottomPhone:o,sectionPaddingLeftPhone:o}),k=e=>o=>D(g(o.columns)??g(e.columns)),y=e=>({kind:"group",name:"Grid",props:{...s,gap:0,...t(1,0,0,1)},parts:[e]}),w={...s,direction:"row",gap:0,share:"equal"},P="its head sits in a Box of its own above it (own-box): the row draws the head inline",x=e=>F(e.headPlacement)==="own-box",f="inline is the head the row draws; an own-box node is skipped (`skip`)",A=e=>({kind:"group",name:"Heading",props:e,parts:[n("eyebrow"),{kind:"text",key:"title",role:"heading",props:r,style:{textStyle:"heading-3"},was:{size:44}}]}),S={top:72,bottom:72,topPhone:72,bottomPhone:72},z={...s,gap:12,...u(32,28),...t(0,1,1,0)},M={name:"Cards",boxProps:e=>({...p,direction:"column",gap:36,...l(e,S)}),box:[...d,...c(S)],skip:e=>x(e)?P:typeof e.dataSource=="string"&&e.dataSource?"its cards come from a source: a data list, which waits for the card template on Cards":e.cardStyle==="label-only"?"Label only is Key Features' look: no live node holds it, so it has no row of its own yet":void 0,parts:[b("Cards"),y({kind:"list",key:"items",name:"Card",perRow:k(L.defaultProps),rowName:"Row",rowProps:w,props:z,parts:[{kind:"text",key:"title",props:r,style:{textStyle:"heading-3"},was:{size:20}},{kind:"text",key:"body",props:h,style:{textStyle:"body-1"},was:{size:15}}]})],site:m("title"),drop:{...a,...i,columns:"the rows of N: one Row Box per `columns` cards, which the Box draws as N equal blocks",cardStyle:"the standard card is what the row draws; a Label only node is skipped (0 live nodes)",dataSource:"an empty source is typed cards, what the row draws; a sourced node is skipped (0 live nodes)",dataSourceOptions:"read only with a source; a sourced node is skipped (0 live nodes)",headPlacement:f,eyebrowLook:"needs the eyebrow's Filled look on a Text block: Plain is the eyebrow start look the row draws; 2 of 62 live nodes store it (JJ's export, 2026-10-24)"}},O={top:76,bottom:76,topPhone:76,bottomPhone:76},W={...s,direction:"row",align:"center",gap:16,sectionPaddingTop:32,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,...t(0,1,1,0)},R={textStyle:"body-1",color:"text"},N=(e,o)=>typeof o?.href=="string"&&o.href.trim()!=="",J={name:"Key Features",boxProps:e=>({...p,direction:"column",gap:44,...t(1,0,1,0),...l(e,O)}),box:[...d,...c(O)],parts:[A({...s,direction:"row",align:"end",gap:20,wrap:!0,share:"content"}),y({kind:"list",key:"items",name:"Feature",perRow:k(v.defaultProps),rowName:"Row",rowProps:w,props:W,parts:[{kind:"button",key:"label",href:"href",when:N,variant:"ghost",props:{...K,...I,icon:"none"},style:R},{kind:"text",key:"label",when:(e,o)=>!N(e,o),props:r,style:R,was:{size:17}}]})],site:m("title"),drop:{...a,...i,columns:"the rows of N: one Row Box per `columns` cells, which the Box draws as N equal blocks",eyebrowLook:"needs the eyebrow's Filled look on a Text block: Filled is Key Features' own default (lib/sections/section-eyebrow-look), so 20 of 21 published nodes draw it with nothing stored; the row draws the Plain start look (JJ's export, 2026-10-24)"}},_={top:120,bottom:120,topPhone:80,bottomPhone:80},H={...s,gap:16,sectionPaddingTop:36,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,...t(0,1,1,0)},C={...s,direction:"row",justify:"between",gap:12,share:"content"},X={name:"Recurring Columns",boxProps:e=>({...p,direction:"column",gap:60,...t(0,0,1,0),...l(e,_)}),box:[...d,...c(_)],skip:e=>x(e)?P:void 0,parts:[b("Series"),y({kind:"list",key:"cards",name:"Column",perRow:()=>4,rowName:"Row",rowProps:w,props:H,parts:[{kind:"group",name:"Top",props:C,parts:[n("num"),n("since")]},{kind:"text",key:"title",props:{...r,tag:"h3"},style:{textStyle:"heading-3"},was:{size:28}},{kind:"text",key:"desc",props:h,style:{textStyle:"body-5"},was:{size:14}},{kind:"group",name:"Footer",props:{...C,justify:"start",align:"center",gap:8,sectionPaddingTop:16,...t(1,0,0,0)},parts:[n("entries",{color:"text"}),n("entriesLabel",{color:"labels"})]}]})],site:m("headTitle"),drop:{...a,...i,headPlacement:f,viewLabel:"the ONE label every card's footer repeated: a block per card would be N copies of one words. Empty on every live node (3 of 3 store it hidden or empty, JJ's export, 2026-10-24)",background:"needs a Box background ink (the section stores a theme token, `var(--section-bg)` on 3 of 3 live nodes): the Box's theme draws its background"}},E={top:60,bottom:60,topPhone:40,bottomPhone:40},q={...s,gap:8,...u(24),...t(1,1,1,1)},j={name:"Document Detail Cards",boxProps:e=>({...p,direction:"column",gap:40,...t(0,0,1,0),...l(e,E)}),box:[...d,...c(E)],parts:[{kind:"list",key:"cards",name:"Card",perRow:()=>3,rowName:"Row",rowProps:{...w,gap:40},props:q,parts:[n("label"),{kind:"text",key:"value",props:r,style:{textStyle:"heading-3"},was:{size:20}},{kind:"text",key:"desc",props:h,style:{textStyle:"body-5",italic:!0},was:{size:14}}]}],drop:{...a,...i}},ee={Cards:M,KeyFeatures:J,Series:X,DocMetaCards:j};export{ee as CARDS_SECTION_TO_BOX};
1
+ import{phoneKey as W,readHidable as k}from"efficient-easel/draw";import{parseHexColor as M}from"efficient-shell/format";import{cardColumns as G}from"../../../../components/Cards.js";import{resolveSectionBackground as X,THEME_SECTION_BG as x}from"../../../../../format/lib/content/section-background.js";import{CardsMeta as J}from"../../../../../format/lib/document/blocks/general/Cards/meta.js";import{KeyFeaturesMeta as q}from"../../../../../format/lib/document/blocks/general/KeyFeatures/meta.js";import{finiteNumber as S}from"../../../../../format/lib/finite-number.js";import{parseSectionHeadPlacement as U}from"../../../../../format/lib/sections/section-head-placement.js";import{hasWords as d}from"../../../sections/section-to-box.js";import{labelTextSeed as V}from"../../../../../format/lib/document/text-seeds.js";import{bandAccent as j,bandProps as z,bandWrites as Y,BUTTON as Q,DIM as p,DROP_COMMON as l,DROP_SIDE_PADDING as c,INNER_BOX as t,leadText as Z,SAME_KEYS as h,SECTION_BOX as g,fillFrom as i,SH_LINK as $,TEXT as a,smallText as m,wrapperPad as w,wrapperPadKeys as u}from"./section-to-box-row-parts.js";import{headTree as _,token as s}from"./section-head-looks.js";import{SECTION_BG_BUILT_IN as ee}from"../../../../../format/lib/document/blocks/general/section-bg-built-in.js";const r=(e,o,n,y)=>({sectionBorder:{top:e,right:o,bottom:n,left:y}}),R=(e,o=e)=>({sectionPaddingTop:e,sectionPaddingRight:e,sectionPaddingBottom:e,sectionPaddingLeft:e,sectionPaddingTopPhone:o,sectionPaddingRightPhone:o,sectionPaddingBottomPhone:o,sectionPaddingLeftPhone:o}),O=e=>o=>G(S(o.columns)??S(e.columns)),T=e=>({kind:"group",name:"Grid",props:{...t,gap:0,...r(1,0,0,1)},parts:[e]}),b={...t,direction:"row",gap:0,share:"equal"},C="its head sits in a Box of its own above it (own-box): the row draws the head inline",N=e=>U(e.headPlacement)==="own-box",L="inline is the head the row draws; an own-box node is skipped (`skip`)",oe=e=>({kind:"group",name:"Heading",props:e,parts:[m("eyebrow"),{kind:"text",key:"title",role:"heading",props:a,style:{textStyle:"heading-3",case:"upper"},was:{size:44}}]}),B={top:72,bottom:72,topPhone:72,bottomPhone:72},te={...t,gap:12,gapPhone:12,...R(32,28),...r(0,1,1,0)},ne={name:"Cards",boxProps:(e,o)=>({...g,direction:"column",gap:36,gapPhone:28,...i("surface")(e,o),...w(e,B)}),box:[...h,...u(B)],skip:e=>N(e)?C:typeof e.dataSource=="string"&&e.dataSource?"its cards come from a source: a data list, which waits for the card template on Cards":e.cardStyle==="label-only"?"Label only is Key Features' look: no live node holds it, so it has no row of its own yet":void 0,parts:[_("Cards"),T({kind:"list",key:"items",name:"Card",perRow:O(J.defaultProps),rowName:"Row",rowProps:b,props:(e,o)=>({...te,...i("background")(e,o)}),parts:[{kind:"text",key:"title",props:a,style:{textStyle:"heading-3",...s("headingSmall",20),weight:500,case:"upper",lineHeight:1.5,letterSpacing:.02}},{kind:"text",key:"body",props:p,style:{textStyle:"body-1",...s("body",15),lineHeight:1.6}}]})],drop:{...l,...c,columns:"the rows of N: one Row Box per `columns` cards, which the Box draws as N equal blocks",cardStyle:"the standard card is what the row draws; a Label only node is skipped (0 live nodes)",dataSource:"an empty source is typed cards, what the row draws; a sourced node is skipped (0 live nodes)",dataSourceOptions:"read only with a source; a sourced node is skipped (0 live nodes)",headPlacement:L,eyebrowLook:"needs the eyebrow's Filled look on a Text block: Plain is the eyebrow start look the row draws; 2 of 62 live nodes store it (JJ's export, 2026-10-24)"}},E={top:76,bottom:76,topPhone:76,bottomPhone:76},se={...t,direction:"row",align:"center",gap:16,sectionPaddingTop:32,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,...r(0,1,1,0)},F={textStyle:"body-1",color:"text"},H=(e,o)=>typeof o?.href=="string"&&o.href.trim()!=="",re={name:"Key Features",boxProps:e=>({...g,direction:"column",gap:44,...r(1,0,1,0),...w(e,E)}),box:[...h,...u(E)],parts:[oe({...t,direction:"row",align:"end",gap:20,wrap:!0,share:"content"}),T({kind:"list",key:"items",name:"Feature",perRow:O(q.defaultProps),rowName:"Row",rowProps:b,props:se,parts:[{kind:"button",key:"label",href:"href",when:H,variant:"ghost",props:{...Q,...$,icon:"none"},style:F},{kind:"text",key:"label",when:(e,o)=>!H(e,o),props:a,style:F,was:{size:17}}]})],drop:{...l,...c,columns:"the rows of N: one Row Box per `columns` cells, which the Box draws as N equal blocks",eyebrowLook:"needs the eyebrow's Filled look on a Text block: Filled is Key Features' own default (lib/sections/section-eyebrow-look), so 20 of 21 published nodes draw it with nothing stored; the row draws the Plain start look (JJ's export, 2026-10-24)"}},D={top:120,bottom:120,topPhone:80,bottomPhone:80},P=e=>{const o=X(typeof e.background=="string"?e.background:void 0,ee.Series);return o&&o!=="transparent"?o:void 0},f=e=>P(e)===x,ie=(e,o)=>{const n=P(e);return!n||n===x?{}:n==="var(--site-surface)"?i("surface")(e,o):M(n.trim())?{fillColor:n.trim()}:{}},v=e=>{const o=P(e)?1:2;return{gap:o,gapPhone:o}},ae={...t,justify:"between",gap:16,gapPhone:16,sectionHeightMode:"fixed",sectionHeightValue:340,sectionHeightUnit:"px",sectionPaddingTop:36,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,sectionPaddingTopPhone:36,sectionPaddingRightPhone:28,sectionPaddingBottomPhone:32,sectionPaddingLeftPhone:28},I={...t,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[W("share")]:"content"},A={textStyle:"body-5",...s("label",12),letterSpacing:.22,case:"upper",lineHeight:1.5},de=e=>d(e.viewLabel)&&!k(e.viewLabel).hidden,pe={name:"Recurring Columns",boxProps:(e,o)=>({...g,direction:"column",gap:60,gapPhone:60,...r(0,0,1,0),...f(e)?z(e,o):{},...ie(e,o),...w(e,D)}),box:[...h.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,n)=>f(o)?j(e,o,n):e],...u(D)],skip:e=>N(e)?C:void 0,site:(e,o)=>f(e.props)?Y(e,o):[],parts:[_("Series"),{kind:"group",name:"Grid",props:(e,o)=>({...t,...v(e),...P(e)?{}:i("background")(e,o)}),parts:[{kind:"list",key:"cards",name:"Column",perRow:()=>4,rowName:"Row",rowProps:e=>({...b,...v(e)}),rowFiller:t,props:(e,o)=>({...ae,...i("background")(e,o)}),parts:[{kind:"group",name:"Words",props:{...t,gap:16,gapPhone:16},parts:[{kind:"group",name:"Top",props:I,parts:[m("num",s("label",13)),m("since",s("label",13))]},{kind:"text",key:"title",props:{...a,tag:"h3"},style:{textStyle:"heading-3",...s("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}},{kind:"text",key:"desc",props:p,style:{textStyle:"body-5",fontRole:"heading",...s("body",14),lineHeight:1.6}}]},{kind:"group",name:"Footer",when:(e,o)=>d(o?.entries)||d(o?.entriesLabel)||de(e),props:{...I,align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...r(1,0,0,0)},parts:[Z("entries","entriesLabel",{...p,_partStyles:{text:A}}),{kind:"group",name:"View",props:{...t,maxWidthPhone:266},parts:[{kind:"block",type:"Text",when:e=>d(e.viewLabel),props:e=>{const o=k(e.viewLabel),n=V()._partStyles,y=e._partStyles?.viewLabel;return{...a,text:o.text,_partStyles:{text:{...n.text,...A,...y}},...o.hidden?{_hidden:!0}:{}}}}]}]}]}]}],reads:{viewLabel:"a Text at the far end of every card's footer",background:"the Box's theme (the band preset) or its Fill; the grid's gap"},drop:{...l,...c,headPlacement:L}},K={top:60,bottom:60,topPhone:40,bottomPhone:40},le={...t,gap:8,gapPhone:8,...R(24),...r(1,1,1,1)},ce={name:"Document Detail Cards",boxProps:e=>({...g,direction:"column",gap:40,gapPhone:16,...r(0,0,1,0),...w(e,K)}),box:[...h,...u(K)],parts:[{kind:"list",key:"cards",name:"Card",perRow:()=>3,rowName:"Row",rowProps:{...b,gap:40,gapPhone:16},props:(e,o)=>({...le,...i("surface")(e,o)}),parts:[m("label",{...s("label",12),lineHeight:1.5}),{kind:"group",name:"Words",props:{...t,gap:14,gapPhone:14},parts:[{kind:"text",key:"value",props:a,style:{textStyle:"heading-3",...s("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}},{kind:"text",key:"desc",props:p,style:{textStyle:"body-5",fontRole:"accent",...s("body",14),italic:!0,lineHeight:1.5}}]}]}],drop:{...l,...c}},Re={Cards:ne,KeyFeatures:re,Series:pe,DocMetaCards:ce};export{Re as CARDS_SECTION_TO_BOX};
@@ -1 +1 @@
1
- import{SECTION_BOX_SLOT as W,SECTION_BOX_TYPE as G}from"../../../sections/section-to-box.js";import{BUTTON as b,DIM as i,DROP_COMMON as j,DROP_SIDE_PADDING as X,INNER_BOX as n,SAME_KEYS as v,SECTION_BOX as S,SH_LINK as f,TEXT as p,bandAccent as $,bandIndex as K,bandPage as z,bandProps as P,bandWrites as U,smallText as d,wrapperPad as l}from"./section-to-box-row-parts.js";import{editorialHeadTree as Y,token as c}from"./section-head-looks.js";import{declaredBlockSource as w}from"../../../../../format/lib/content/block-sources.js";import{parseLocationTileShape as q,splitLegacyRegion as x}from"../../../../../format/lib/content/contact.js";import{groupColumns as g}from"../../../../../format/lib/locations-grid.js";import{phoneHref as F}from"../../../../../format/lib/links/phone-href.js";import{hasMapCoords as V}from"../../../../../format/lib/map-styles.js";const r=e=>typeof e=="string"?e:e==null?"":String(e),m=e=>Array.isArray(e.locations)?e.locations.map(t=>t??{}):[],s=e=>r(e.group),B=e=>`loc-${e}`,T=e=>r(e.state).trim()||x(r(e.region)).state,O=e=>r(e.country).trim()||x(r(e.region)).country,_=e=>[T(e),O(e)].filter(Boolean).join(" · "),J=e=>m(e).some(t=>r(t.photo).trim()!==""),Q=e=>m(e).some(t=>V(Number(t.lat),Number(t.lng))),Z=(e,t)=>m(e).filter(o=>s(o)===s(t)).length,ee=(e,t)=>Z(e,t)===1?"wide":q(e.imageShape),h={top:100,bottom:100,topPhone:60,bottomPhone:60},N=48,a=(e,t={})=>({textStyle:"body-5",...c("label",e),case:"upper",...t}),y={top:1,right:1,bottom:1,left:1},u=(e,t)=>({sectionPaddingTop:e,sectionPaddingBottom:e,sectionPaddingLeft:t,sectionPaddingRight:t,sectionPaddingTopPhone:e,sectionPaddingBottomPhone:e,sectionPaddingLeftPhone:t,sectionPaddingRightPhone:t}),k={...n,direction:"row",share:"equal",gap:0},C=(e,t={})=>o=>o>g(o)?{...n,gap:0}:{...k,...t,...e&&o>1?{phoneRow:e}:{}},te=250,E={wrap:!0},oe={kind:"group",name:"Gallery",props:{...n,gap:20},when:J,parts:[{kind:"group",name:"Gallery head",props:{...n,direction:"row",justify:"between",align:"end",gap:24,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},parts:[d("galleryKicker",a(12,{color:"accent",letterSpacing:.3})),{kind:"text",key:"galleryHint",props:{...i,align:"right"},style:a(11,{letterSpacing:.22})}]},{kind:"group",name:"Groups",props:{...n,gap:24},parts:[{kind:"list",key:"locations",name:"City picture",props:{...n,darken:85,darkenStyle:"bottom",placement:"bottom-left",sectionBorder:y,...u(12,12)},item:(e,t,o)=>({props:{...r(e.photo).trim()?{bgImage:r(e.photo)}:{},link:`#${B(t)}`,boxShape:ee(o,e)}}),parts:[{kind:"text",key:"name",props:p,style:a(11,{letterSpacing:.22,color:"text"})}],groups:{of:s,name:"Group",props:{...n,gap:10},head:e=>({label:s(e[0]??{})}),parts:[d("label",a(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:C(2),perRow:g,rowName:"Row",rowProps:{...k,phoneRow:2}}}]}]},ne={kind:"group",name:"Words",props:{...n,gap:12,...u(28,28),sectionBorder:{bottom:1},sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",sectionHeightModePhone:"auto"},parts:[{kind:"group",name:"Name row",props:{...n,direction:"row",justify:"between",align:"start",gap:14,share:"content",wrap:!0},parts:[{kind:"group",name:"Name",props:{...n,gap:6},parts:[{kind:"text",key:"name",role:"heading",props:p,style:{textStyle:"heading-3",...c("headingSmall",30),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}},{kind:"block",type:"Text",props:{...p,_partStyles:{text:a(12,{color:"accent",letterSpacing:.24})}},box:["region","state","country"].map(e=>[e,"text",(t,o)=>_(o)]),when:(e,t)=>_(t??{})!==""}]},{kind:"group",name:"Time zone",props:{...n,sectionBorder:y,...u(6,10)},parts:[{kind:"text",key:"timezone",props:i,style:a(12,{letterSpacing:.22})}]}]},{kind:"text",key:"address",props:i,style:{textStyle:"body-5",fontRole:"heading",...c("body",14),lineHeight:1.5}},{kind:"block",type:"ButtonBlock",props:{...b,...f,variant:"ghost",arrow:!1,_partStyles:{label:a(13,{letterSpacing:.18,color:"text"})}},box:[["phone","label"],["phone","href",e=>F(r(e))??"#"]],when:(e,t)=>r(t?.phone).trim()!==""},{kind:"text",key:"hours",props:i,style:a(12,{letterSpacing:.18,lineHeight:1.7})}]},re={kind:"block",type:"LocationMap",props:e=>({mapTheme:typeof e.mapTheme=="string"?e.mapTheme:"auto"}),box:["name","lat","lng","mapsUrl","geocode",...["region","state"].map(e=>[e,"state",(t,o)=>T(o)]),...["region","country"].map(e=>[e,"country",(t,o)=>O(o)])]},ae={kind:"list",key:"locations",name:"City",props:(e,t)=>({...n,gap:0,sectionBorder:y,jumpHighlight:!0,minWidth:te,sectionAccent:K(e,t)>=0?z(e.sectionAccent,t):-1}),item:(e,t)=>({props:{anchor:B(t)}}),parts:[ne,re],groups:{of:s,name:"Group",props:{...n,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:{...n,direction:"row",justify:"between",align:"end",gap:16,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},when:(e,t)=>r(t?.key).trim()!=="",parts:[d("key",a(13,{color:"accent",letterSpacing:.3})),{kind:"text",key:"groupName",role:"heading",props:p,style:{textStyle:"heading-3",...c("headingSmall",24),case:"upper",weight:500,letterSpacing:-.01}},{kind:"text",key:"count",props:i,style:a(12,{letterSpacing:.22})}]}],itemsName:"Cities",itemsProps:C(void 0,E),perRow:g,rowName:"Row",rowProps:{...k,...E}}},M=a(10,{letterSpacing:.25}),ie={kind:"block",type:G,props:{...n,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:Q,slot:W,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...i,text:"Location coordinates ©",_partStyles:{text:M}}},{kind:"block",type:"ButtonBlock",props:{...b,...f,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...M,color:"labels"}}}}]},R=(e,t)=>Object.fromEntries(t.filter(o=>e[o]!==void 0).map(o=>[o,e[o]])),A=["sectionPaddingTop","sectionPaddingTopPhone"],L=["sectionPaddingBottom","sectionPaddingBottomPhone"],I=e=>e.map(t=>[t,t,(o,D)=>l(D,h)[t]]),H=["sectionAccent","sectionAccent",$],se=["gridSpan","_hidden"],pe={name:"City pictures",skip:e=>w(e)?`fed by the data source "${w(e)}": its cities are read as the page is served, not stored on the node`:void 0,boxProps:(e,t)=>({...S,direction:"column",gap:40,anchor:"studios",...R(l(e,h),A),sectionPaddingBottom:N,sectionPaddingBottomPhone:N,...P(e,t)}),box:[...v.filter(e=>e!=="sectionAccent"&&e!=="anchor"),H,["anchor","anchor",e=>r(e).trim()?e:"studios"],...I(A)],parts:[Y("sectionNumber","heading","tagline"),oe],also:[{name:"City maps",boxProps:(e,t)=>({...S,direction:"column",gap:40,sectionBorder:{bottom:1},sectionPaddingTop:0,sectionPaddingTopPhone:0,...R(l(e,h),L),...P(e,t)}),box:[...se,H,...I(L)],parts:[ae,ie]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:U,drop:{...j,...X,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)"}},ke={ContactLocations:pe};export{ke as LOCATIONS_SECTION_TO_BOX};
1
+ import{tabletKey as I}from"efficient-easel/draw";import{SECTION_BOX_SLOT as G,SECTION_BOX_TYPE as W}from"../../../sections/section-to-box.js";import{BUTTON as k,DIM as r,DROP_COMMON as j,DROP_SIDE_PADDING as D,INNER_BOX as o,SAME_KEYS as X,SECTION_BOX as P,SH_LINK as f,TEXT as p,bandAccent as v,bandIndex as K,bandPage as $,bandProps as S,bandWrites as z,smallText as d,wrapperPad as l}from"./section-to-box-row-parts.js";import{editorialHeadTree as U,token as c}from"./section-head-looks.js";import{declaredBlockSource as B}from"../../../../../format/lib/content/block-sources.js";import{parseLocationTileShape as Y,splitLegacyRegion as T}from"../../../../../format/lib/content/contact.js";import{groupColumns as g}from"../../../../../format/lib/locations-grid.js";import{phoneHref as F}from"../../../../../format/lib/links/phone-href.js";import{hasMapCoords as q}from"../../../../../format/lib/map-styles.js";const a=e=>typeof e=="string"?e:e==null?"":String(e),m=e=>Array.isArray(e.locations)?e.locations.map(t=>t??{}):[],s=e=>a(e.group),w=e=>`loc-${e}`,x=e=>a(e.state).trim()||T(a(e.region)).state,O=e=>a(e.country).trim()||T(a(e.region)).country,_=e=>[x(e),O(e)].filter(Boolean).join(" · "),V=e=>m(e).some(t=>a(t.photo).trim()!==""),J=e=>m(e).some(t=>q(Number(t.lat),Number(t.lng))),Q=(e,t)=>m(e).filter(n=>s(n)===s(t)).length,Z=(e,t)=>Q(e,t)===1?"wide":Y(e.imageShape),h={top:100,bottom:100,topPhone:60,bottomPhone:60},N=48,i=(e,t={})=>({textStyle:"body-5",...c("label",e),case:"upper",...t}),y={top:1,right:1,bottom:1,left:1},u=(e,t)=>({sectionPaddingTop:e,sectionPaddingBottom:e,sectionPaddingLeft:t,sectionPaddingRight:t,sectionPaddingTopPhone:e,sectionPaddingBottomPhone:e,sectionPaddingLeftPhone:t,sectionPaddingRightPhone:t}),b={...o,direction:"row",share:"equal",gap:0},ee=e=>t=>t>g(t)?{...o,gap:0}:{...b,...t>1?{phoneRow:e}:{}},te={kind:"group",name:"Gallery",props:{...o,gap:20,_hidden:!0},when:V,parts:[{kind:"group",name:"Gallery head",props:{...o,direction:"row",justify:"between",align:"end",gap:24,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},parts:[d("galleryKicker",i(12,{color:"accent",letterSpacing:.3})),{kind:"text",key:"galleryHint",props:{...r,align:"right",alignPhone:"left"},style:i(11,{letterSpacing:.22,alignPhone:"left"})}]},{kind:"group",name:"Groups",props:{...o,gap:24},parts:[{kind:"list",key:"locations",name:"City picture",props:{...o,darken:85,darkenStyle:"bottom",placement:"bottom-left",sectionBorder:y,...u(12,12)},item:(e,t,n)=>({props:{...a(e.photo).trim()?{bgImage:a(e.photo)}:{},link:`#${w(t)}`,boxShape:Z(n,e)}}),parts:[{kind:"text",key:"name",props:p,style:i(11,{letterSpacing:.22,color:"text"})}],groups:{of:s,name:"Group",props:{...o,gap:10},head:e=>({label:s(e[0]??{})}),parts:[d("label",i(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:ee(2),perRow:g,rowName:"Row",rowProps:{...b,phoneRow:2}}}]}]},oe={kind:"group",name:"Words",props:{...o,gap:12,gapPhone:12,...u(28,28),sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",sectionHeightModePhone:"auto"},parts:[{kind:"group",name:"Name row",props:{...o,direction:"row",justify:"between",align:"start",gap:14,share:"content",phoneRow:2,sharePhone:"content",wrapPhone:"nowrap",sectionPaddingBottom:6,sectionPaddingBottomPhone:6},parts:[{kind:"group",name:"Name",props:{...o,gap:6,gapPhone:6,minWidth:0},parts:[{kind:"text",key:"name",role:"heading",props:p,style:{textStyle:"heading-3",...c("headingSmall",30),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}},{kind:"block",type:"Text",props:{...p,_partStyles:{text:i(12,{color:"accent",letterSpacing:.24,lineHeight:1.5})}},box:["region","state","country"].map(e=>[e,"text",(t,n)=>_(n)]),when:(e,t)=>_(t??{})!==""}]},{kind:"group",name:"Time zone",props:{...o,sectionBorder:y,...u(6,10)},parts:[{kind:"text",key:"timezone",props:{...r,textFit:"line"},style:i(12,{letterSpacing:.22,lineHeight:1.5})}]}]},{kind:"text",key:"address",props:r,style:{textStyle:"body-5",fontRole:"heading",...c("body",14),lineHeight:1.5}},{kind:"block",type:"ButtonBlock",props:{...k,...f,variant:"ghost",arrow:!1,_partStyles:{label:i(13,{letterSpacing:.18,color:"text",lineHeight:24/13})}},box:[["phone","label"],["phone","href",e=>F(a(e))??"#"]],when:(e,t)=>a(t?.phone).trim()!==""},{kind:"text",key:"hours",props:r,style:i(12,{letterSpacing:.18,lineHeight:1.7})}]},ne={kind:"block",type:"LocationMap",props:e=>({mapTheme:typeof e.mapTheme=="string"?e.mapTheme:"auto"}),box:["name","lat","lng","mapsUrl","geocode",...["region","state"].map(e=>[e,"state",(t,n)=>x(n)]),...["region","country"].map(e=>[e,"country",(t,n)=>O(n)])]},ae={kind:"group",name:"Map",props:{...o,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[ne]},ie={kind:"list",key:"locations",name:"City",props:(e,t)=>({...o,gap:0,justify:"between",sectionBorder:y,jumpHighlight:!0,sectionAccent:K(e,t)>=0?$(e.sectionAccent,t):-1}),item:(e,t)=>({props:{anchor:w(t)}}),parts:[oe,ae],groups:{of:s,name:"Group",props:{...o,gap:20},head:e=>{const t=e[0]??{};return{key:s(t),groupName:a(t.groupName),count:`${e.length} location${e.length===1?"":"s"}`}},parts:[{kind:"group",name:"Group head",props:{...o,direction:"row",justify:"between",align:"end",gap:16,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},when:(e,t)=>a(t?.key).trim()!=="",parts:[d("key",i(13,{color:"accent",letterSpacing:.3})),{kind:"text",key:"groupName",role:"heading",props:p,style:{textStyle:"heading-3",...c("headingSmall",24),case:"upper",weight:500,letterSpacing:-.01}},{kind:"text",key:"count",props:r,style:i(12,{letterSpacing:.22})}]}],itemsName:"Cities",itemsProps:e=>({...b,columns:g(e),[I("columns")]:1})}},C=i(10,{letterSpacing:.25}),re={kind:"block",type:W,props:{...o,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:J,slot:G,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...r,text:"Location coordinates ©",_partStyles:{text:C}}},{kind:"block",type:"ButtonBlock",props:{...k,...f,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...C,color:"labels"}}}}]},M=(e,t)=>Object.fromEntries(t.filter(n=>e[n]!==void 0).map(n=>[n,e[n]])),E=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],H=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],L=e=>e.map(t=>[t,t,(n,R)=>l(R,h)[t]]),A=["sectionAccent","sectionAccent",v],se=["gridSpan","_hidden"],pe={name:"City pictures",skip:e=>B(e)?`fed by the data source "${B(e)}": its cities are read as the page is served, not stored on the node`:void 0,boxProps:(e,t)=>({...P,direction:"column",gap:40,anchor:"studios",...M(l(e,h),E),sectionPaddingBottom:N,sectionPaddingBottomPhone:N,...S(e,t)}),box:[...X.filter(e=>e!=="sectionAccent"&&e!=="anchor"),A,["anchor","anchor",e=>a(e).trim()?e:"studios"],...L(E)],parts:[U("sectionNumber","heading","tagline"),te],also:[{name:"City maps",boxProps:(e,t)=>({...P,direction:"column",gap:40,sectionBorder:{bottom:1},sectionPaddingTop:0,sectionPaddingTopPhone:0,...M(l(e,h),H),...S(e,t)}),box:[...se,A,...L(H)],parts:[ie,re]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:z,drop:{...j,...D,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)"}},ke={ContactLocations:pe};export{ke as LOCATIONS_SECTION_TO_BOX};
@@ -0,0 +1,2 @@
1
+ import { type SectionToBoxRow } from "../../../sections/section-to-box.js";
2
+ export declare const PAGE_HEADER_SECTION_TO_BOX: Readonly<Record<string, SectionToBoxRow>>;