efficient-web-builder 64.0.0 → 66.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (216) hide show
  1. package/CHANGELOG.md +94 -0
  2. package/dist/editor/components/AnchorField.js +1 -1
  3. package/dist/editor/components/CardShadowField.js +1 -1
  4. package/dist/editor/components/PagesPanel.js +1 -1
  5. package/dist/editor/components/SectionEditor.js +1 -1
  6. package/dist/editor/components/WebsitePreviewButton.js +1 -1
  7. package/dist/editor/components/storefront-editor.css +16 -24
  8. package/dist/editor/components/usePreviewHref.js +1 -1
  9. package/dist/editor/lib/animation/entrance-fields.js +1 -1
  10. package/dist/editor/lib/animation/scroll-fields.js +1 -1
  11. package/dist/editor/lib/animation/view-rows.d.ts +20 -0
  12. package/dist/editor/lib/animation/view-rows.js +1 -0
  13. package/dist/editor/lib/document/blocks/general/Banner/fields.js +1 -1
  14. package/dist/editor/lib/document/blocks/general/ButtonBlock/fields.js +1 -1
  15. package/dist/editor/lib/document/blocks/general/Divider/fields.js +1 -1
  16. package/dist/editor/lib/document/blocks/general/FAQ/fields.js +1 -1
  17. package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
  18. package/dist/editor/lib/document/blocks/general/Footprint/fields.d.ts +0 -1
  19. package/dist/editor/lib/document/blocks/general/Footprint/fields.js +1 -1
  20. package/dist/editor/lib/document/blocks/general/HeroGroup/fields.js +1 -1
  21. package/dist/editor/lib/document/blocks/general/ImageBlock/fields.js +1 -1
  22. package/dist/editor/lib/document/blocks/general/LogoBlock/fields.js +1 -1
  23. package/dist/editor/lib/document/blocks/general/ProcessSteps/fields.js +1 -1
  24. package/dist/editor/lib/document/blocks/general/SectionHeader/fields.js +1 -1
  25. package/dist/editor/lib/document/blocks/general/Text/fields.js +1 -1
  26. package/dist/editor/lib/document/blocks/general/index.d.ts +2 -2
  27. package/dist/editor/lib/document/box-fields.d.ts +2 -1
  28. package/dist/editor/lib/document/box-fields.js +1 -1
  29. package/dist/editor/lib/document/card-row-fields.d.ts +3 -0
  30. package/dist/editor/lib/document/card-row-fields.js +1 -1
  31. package/dist/editor/lib/document/controls.d.ts +12 -10
  32. package/dist/editor/lib/document/controls.js +1 -1
  33. package/dist/editor/lib/document/field-groups.d.ts +0 -3
  34. package/dist/editor/lib/document/field-groups.js +1 -1
  35. package/dist/editor/lib/document/part-motion-canvas.d.ts +2 -2
  36. package/dist/editor/lib/document/part-motion-canvas.js +1 -1
  37. package/dist/editor/lib/document/passes/inspector.js +1 -1
  38. package/dist/editor/lib/sections/section-dry-run.d.ts +1 -20
  39. package/dist/editor/lib/sections/section-dry-run.js +2 -2
  40. package/dist/editor/lib/sections/text-layouts.js +1 -1
  41. package/dist/format/lib/animation/entrance-keys.d.ts +8 -0
  42. package/dist/format/lib/animation/entrance-keys.js +1 -0
  43. package/dist/format/lib/animation/scroll.d.ts +5 -6
  44. package/dist/format/lib/animation/scroll.js +1 -1
  45. package/dist/format/lib/animation/views.d.ts +6 -0
  46. package/dist/format/lib/animation/views.js +1 -0
  47. package/dist/format/lib/content/block-sources.d.ts +3 -0
  48. package/dist/format/lib/content/block-sources.js +1 -1
  49. package/dist/format/lib/content/box-background.d.ts +1 -0
  50. package/dist/format/lib/content/box-background.js +1 -1
  51. package/dist/format/lib/content/box-link.d.ts +11 -0
  52. package/dist/format/lib/content/box-link.js +8 -8
  53. package/dist/format/lib/content/box-phone-place.d.ts +0 -2
  54. package/dist/format/lib/content/box-phone-place.js +1 -1
  55. package/dist/format/lib/content/box-side-space.js +1 -1
  56. package/dist/format/lib/content/card-image-shape.d.ts +5 -1
  57. package/dist/format/lib/content/card-image-shape.js +1 -1
  58. package/dist/format/lib/content/card-template.d.ts +1 -0
  59. package/dist/format/lib/content/card-template.js +1 -1
  60. package/dist/format/lib/content/contact.d.ts +0 -1
  61. package/dist/format/lib/content/contact.js +2 -2
  62. package/dist/format/lib/content/css-length.d.ts +1 -0
  63. package/dist/format/lib/content/css-length.js +1 -0
  64. package/dist/format/lib/content/page-width.d.ts +17 -1
  65. package/dist/format/lib/content/page-width.js +1 -1
  66. package/dist/format/lib/content/section-sticky.d.ts +28 -0
  67. package/dist/format/lib/content/section-sticky.js +1 -1
  68. package/dist/format/lib/document/blocks/general/Banner/meta.d.ts +5 -0
  69. package/dist/format/lib/document/blocks/general/Banner/meta.js +1 -1
  70. package/dist/format/lib/document/blocks/general/Footprint/card-seed.d.ts +2 -0
  71. package/dist/format/lib/document/blocks/general/Footprint/card-seed.js +1 -1
  72. package/dist/format/lib/document/blocks/general/Footprint/meta.js +2 -2
  73. package/dist/format/lib/document/blocks/general/ProcessSteps/column-seed.d.ts +5 -0
  74. package/dist/format/lib/document/blocks/general/ProcessSteps/column-seed.js +1 -0
  75. package/dist/format/lib/document/blocks/general/ProcessSteps/meta.js +1 -1
  76. package/dist/format/lib/document/blocks/general/SectionHeader/meta.d.ts +6 -0
  77. package/dist/format/lib/document/blocks/general/SectionHeader/meta.js +1 -1
  78. package/dist/format/lib/document/blocks/general/TitleWithButtons/meta.d.ts +2 -0
  79. package/dist/format/lib/document/blocks/general/TitleWithButtons/meta.js +2 -2
  80. package/dist/format/lib/document/media-drop.js +1 -1
  81. package/dist/format/lib/document/one-h1.d.ts +2 -0
  82. package/dist/format/lib/document/one-h1.js +1 -1
  83. package/dist/format/lib/document/passes/types.d.ts +2 -0
  84. package/dist/format/lib/document/renamed-props.d.ts +1 -0
  85. package/dist/format/lib/document/renamed-props.js +1 -1
  86. package/dist/format/lib/document/section-catalog.js +10 -2
  87. package/dist/format/lib/document/section-descriptions.js +1 -1
  88. package/dist/format/lib/editor-words-catalogue.d.ts +16 -0
  89. package/dist/format/lib/editor-words-catalogue.js +4 -4
  90. package/dist/format/lib/editor-words-kept.js +1 -1
  91. package/dist/format/lib/fit-words.js +4 -1
  92. package/dist/format/lib/links/page-link-rules.d.ts +0 -1
  93. package/dist/format/lib/links/page-link-rules.js +1 -1
  94. package/dist/format/lib/markup.d.ts +1 -0
  95. package/dist/format/lib/markup.js +2 -2
  96. package/dist/format/lib/sections/hero-single-to-hero.js +1 -1
  97. package/dist/format/lib/sections/section-presets.js +1 -1
  98. package/dist/format/lib/sections/timeline-year-shape.js +1 -1
  99. package/dist/format/lib/source-rules/editor-words.js +1 -1
  100. package/dist/format/lib/source-rules/motion-vars-from-the-shell.d.ts +6 -0
  101. package/dist/format/lib/source-rules/motion-vars-from-the-shell.js +4 -0
  102. package/dist/format/lib/source-rules/one-length-control.d.ts +18 -0
  103. package/dist/format/lib/source-rules/one-length-control.js +16 -0
  104. package/dist/format/lib/source-rules/support/label-extraction.js +3 -3
  105. package/dist/format/lib/theme.d.ts +0 -1
  106. package/dist/format/lib/theme.js +3 -3
  107. package/dist/format/lib/web-runtime.d.ts +2 -0
  108. package/dist/format/lib/web-runtime.js +1 -1
  109. package/dist/render/components/BlockFrame.d.ts +3 -3
  110. package/dist/render/components/BlockFrame.js +1 -1
  111. package/dist/render/components/Breadcrumb.js +1 -1
  112. package/dist/render/components/Btn.js +1 -1
  113. package/dist/render/components/CardRowContext.d.ts +7 -1
  114. package/dist/render/components/CardRowContext.js +1 -1
  115. package/dist/render/components/CategoryBar.js +1 -1
  116. package/dist/render/components/ContactLocations.js +2 -2
  117. package/dist/render/components/DealerFinder.d.ts +4 -1
  118. package/dist/render/components/DealerFinder.js +1 -1
  119. package/dist/render/components/Divider.js +1 -1
  120. package/dist/render/components/DocMasthead.js +1 -1
  121. package/dist/render/components/DocTabs.js +1 -1
  122. package/dist/render/components/FeaturedCover.js +1 -1
  123. package/dist/render/components/Flex.js +1 -1
  124. package/dist/render/components/Footprint.d.ts +5 -3
  125. package/dist/render/components/Footprint.js +1 -1
  126. package/dist/render/components/Heading.d.ts +0 -1
  127. package/dist/render/components/Heading.js +1 -1
  128. package/dist/render/components/HeroPictures.d.ts +2 -5
  129. package/dist/render/components/HeroPictures.js +1 -1
  130. package/dist/render/components/ImageBlock.js +1 -1
  131. package/dist/render/components/KeyFeatures.js +1 -1
  132. package/dist/render/components/LocationMap.js +1 -1
  133. package/dist/render/components/LogoBlock.js +1 -1
  134. package/dist/render/components/Logos.d.ts +1 -2
  135. package/dist/render/components/Logos.js +1 -1
  136. package/dist/render/components/LongRead.js +1 -1
  137. package/dist/render/components/PictureZoom.js +1 -1
  138. package/dist/render/components/PostCard.js +1 -1
  139. package/dist/render/components/ProcessSteps.d.ts +2 -1
  140. package/dist/render/components/ProcessSteps.js +1 -1
  141. package/dist/render/components/PublishedPartStylesContext.js +1 -1
  142. package/dist/render/components/SectionAnimation.d.ts +8 -16
  143. package/dist/render/components/SectionAnimation.js +1 -1
  144. package/dist/render/components/SectionHeader.js +1 -1
  145. package/dist/render/components/SideListLayout.d.ts +4 -1
  146. package/dist/render/components/SideListLayout.js +1 -1
  147. package/dist/render/components/Split.js +1 -1
  148. package/dist/render/components/Text.d.ts +2 -1
  149. package/dist/render/components/Text.js +1 -1
  150. package/dist/render/components/Timeline.js +1 -1
  151. package/dist/render/components/TimelineRail.d.ts +11 -3
  152. package/dist/render/components/TimelineRail.js +1 -1
  153. package/dist/render/components/TimelineTrack.js +1 -1
  154. package/dist/render/components/TitleWithButtons.js +1 -1
  155. package/dist/render/components/goldPhrases.js +3 -3
  156. package/dist/render/lib/animation/entrance.d.ts +6 -14
  157. package/dist/render/lib/animation/entrance.js +1 -1
  158. package/dist/render/lib/animation/part-motion.js +2 -2
  159. package/dist/render/lib/content/block-size.d.ts +5 -1
  160. package/dist/render/lib/content/block-size.js +1 -1
  161. package/dist/render/lib/content/box-stack-line.d.ts +1 -1
  162. package/dist/render/lib/content/box-stack-line.js +1 -1
  163. package/dist/render/lib/content/button-look.d.ts +2 -0
  164. package/dist/render/lib/content/button-look.js +1 -1
  165. package/dist/render/lib/content/section-edge.js +1 -1
  166. package/dist/render/lib/content/section-padding.d.ts +5 -2
  167. package/dist/render/lib/content/section-padding.js +1 -1
  168. package/dist/render/lib/dealer-source.d.ts +6 -2
  169. package/dist/render/lib/dealer-source.js +1 -1
  170. package/dist/render/lib/document/blocks/general/Banner/render.js +1 -1
  171. package/dist/render/lib/document/blocks/general/CardList/render.js +1 -1
  172. package/dist/render/lib/document/blocks/general/Footprint/render.js +1 -1
  173. package/dist/render/lib/document/blocks/general/ImageBlock/render.js +1 -1
  174. package/dist/render/lib/document/blocks/general/SectionHeader/render.js +1 -1
  175. package/dist/render/lib/document/blocks/general/Text/render.js +1 -1
  176. package/dist/render/lib/document/blocks/general/TitleWithButtons/render.js +1 -1
  177. package/dist/render/lib/document/blocks/general/section-head-looks.d.ts +2 -0
  178. package/dist/render/lib/document/blocks/general/section-head-looks.js +2 -2
  179. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
  180. package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.js +1 -1
  181. package/dist/render/lib/document/blocks/general/section-to-box-rows-editorial.js +1 -1
  182. package/dist/render/lib/document/blocks/general/section-to-box-rows-head.d.ts +2 -2
  183. package/dist/render/lib/document/blocks/general/section-to-box-rows-head.js +1 -1
  184. package/dist/render/lib/document/blocks/general/section-to-box-rows-locations.js +1 -1
  185. package/dist/render/lib/document/blocks/general/section-to-box-rows-pageheader.js +1 -1
  186. package/dist/render/lib/document/blocks/general/section-to-box-rows-stats.js +1 -1
  187. package/dist/render/lib/document/blocks/general/section-to-box-rows-tabbar.d.ts +3 -0
  188. package/dist/render/lib/document/blocks/general/section-to-box-rows-tabbar.js +1 -0
  189. package/dist/render/lib/document/blocks/general/section-to-box-rows-timeline.js +2 -2
  190. package/dist/render/lib/document/blocks/general/section-to-box-rows.d.ts +3 -0
  191. package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
  192. package/dist/render/lib/document/card-press-titles.d.ts +10 -0
  193. package/dist/render/lib/document/card-press-titles.js +1 -0
  194. package/dist/render/lib/document/part-styles.d.ts +1 -0
  195. package/dist/render/lib/document/passes/section-animation.js +1 -1
  196. package/dist/render/lib/document/passes/section-height.js +1 -1
  197. package/dist/render/lib/document/passes/section-padding.js +1 -1
  198. package/dist/render/lib/document/passes/section-sticky.js +1 -1
  199. package/dist/render/lib/document/published-passes.js +1 -1
  200. package/dist/render/lib/document/slot-specs.js +1 -1
  201. package/dist/render/lib/sections/section-to-box.d.ts +0 -15
  202. package/dist/render/lib/sections/section-to-box.js +1 -1
  203. package/dist/render/lib/site-runtime.d.ts +4 -1
  204. package/dist/render/lib/site-runtime.js +1 -1
  205. package/dist/render/lib/text-styles/site-text-styles.js +2 -2
  206. package/package.json +5 -5
  207. package/dist/editor/components/TemplateFieldRow.d.ts +0 -11
  208. package/dist/editor/components/TemplateFieldRow.js +0 -1
  209. package/dist/editor/lib/document/panel-heading-scope.d.ts +0 -8
  210. package/dist/editor/lib/document/panel-heading-scope.js +0 -1
  211. package/dist/editor/lib/document/template-field.d.ts +0 -13
  212. package/dist/editor/lib/document/template-field.js +0 -1
  213. package/dist/format/lib/canvas-accent.d.ts +0 -1
  214. package/dist/format/lib/canvas-accent.js +0 -1
  215. package/dist/format/lib/source-rules/padding-units-declared.d.ts +0 -2
  216. package/dist/format/lib/source-rules/padding-units-declared.js +0 -6
@@ -1,4 +1,5 @@
1
1
  import { type ScrollValue } from "efficient-shell/format";
2
+ import { type MotionView } from "./views.js";
2
3
  export declare const SCROLL_KEYS: {
3
4
  readonly effect: "scroll";
4
5
  readonly zoom: "scrollZoom";
@@ -7,14 +8,12 @@ export declare const SCROLL_KEYS: {
7
8
  };
8
9
  export declare const SCROLL_GROUP_KEY = "_gScroll";
9
10
  export declare const SCROLL_CUSTOMIZE_KEY = "_cScroll";
10
- export type ScrollView = "desktop" | "tablet" | "phone";
11
- export declare const scrollViewKey: (key: string, view: ScrollView) => string;
12
11
  export declare const SCROLL_STORE_KEYS: readonly string[];
13
12
  type Props = Readonly<Record<string, unknown>>;
14
- export declare function scrollOf(props: Props, view: ScrollView): ScrollValue;
15
- export type ScrollViews = Readonly<Record<ScrollView, ScrollValue>>;
13
+ export declare function scrollOf(props: Props, view: MotionView): ScrollValue;
14
+ export type ScrollViews = Readonly<Record<MotionView, ScrollValue>>;
16
15
  export declare function scrollDrawn(props: Props): ScrollViews | null;
17
- export type ScrollOrigins = Readonly<Partial<Record<ScrollView, string>>>;
18
- export declare function scrollOrigins(points: Readonly<Partial<Record<ScrollView, string>>>): ScrollOrigins;
16
+ export type ScrollOrigins = Readonly<Partial<Record<MotionView, string>>>;
17
+ export declare function scrollOrigins(points: Readonly<Partial<Record<MotionView, string>>>): ScrollOrigins;
19
18
  export declare function scrollOriginsOf(props: Props, focusKey: string): ScrollOrigins;
20
19
  export {};
@@ -1 +1 @@
1
- import{FOLLOW_RULES as O,phoneKey as S,resolveViewValue as m,tabletKey as L}from"efficient-easel/screen/lib/content/view-tiers";import{parseFocal as b,formatFocal as h,readScroll as x}from"efficient-shell/format";import{viewFocusValues as _}from"../content/picture-focus-rows.js";const n={effect:"scroll",zoom:"scrollZoom",start:"scrollStart",end:"scrollEnd"},C="_gScroll",V="_cScroll",f=["desktop","tablet","phone"],l=(t,o)=>o==="phone"?S(t):o==="tablet"?L(t):t,F=Object.values(n).flatMap(t=>f.map(o=>l(t,o))),c=t=>t===null||t===""?void 0:t,u=(t,o,e)=>m("same",c(t),c(o),c(e),O);function r(t,o,e){return u(t[l(o,"desktop")],t[l(o,"tablet")],t[l(o,"phone")])[e]}function s(t,o){return x(r(t,n.effect,o),r(t,n.zoom,o),r(t,n.start,o),r(t,n.end,o))}function Y(t){const o={desktop:s(t,"desktop"),tablet:s(t,"tablet"),phone:s(t,"phone")};return f.every(e=>o[e].effect==="none")?null:o}function E(t){const o=u(t.desktop,t.tablet,t.phone),e=i=>{const a=o[i];if(typeof a!="string")return;const{x:d,y:p}=b(a);return h(d,p)};return{desktop:e("desktop"),tablet:e("tablet"),phone:e("phone")}}function k(t,o){return E(_(t,o))}export{V as SCROLL_CUSTOMIZE_KEY,C as SCROLL_GROUP_KEY,n as SCROLL_KEYS,F as SCROLL_STORE_KEYS,Y as scrollDrawn,s as scrollOf,E as scrollOrigins,k as scrollOriginsOf,l as scrollViewKey};
1
+ import{parseFocal as u,formatFocal as i,readScroll as O}from"efficient-shell/format";import{viewFocusValues as S}from"../content/picture-focus-rows.js";import{MOTION_VIEWS as d,followViews as p,followedIn as l,viewStoreKeys as m}from"./views.js";const r={effect:"scroll",zoom:"scrollZoom",start:"scrollStart",end:"scrollEnd"},b="_gScroll",R="_cScroll",g=m(Object.values(r));function n(o,t){return O(l(o,r.effect,t),l(o,r.zoom,t),l(o,r.start,t),l(o,r.end,t))}function h(o){const t={desktop:n(o,"desktop"),tablet:n(o,"tablet"),phone:n(o,"phone")};return d.every(e=>t[e].effect==="none")?null:t}function _(o){const t=p(o.desktop,o.tablet,o.phone),e=s=>{const c=t[s];if(typeof c!="string")return;const{x:f,y:a}=u(c);return i(f,a)};return{desktop:e("desktop"),tablet:e("tablet"),phone:e("phone")}}function k(o,t){return _(S(o,t))}export{R as SCROLL_CUSTOMIZE_KEY,b as SCROLL_GROUP_KEY,r as SCROLL_KEYS,g as SCROLL_STORE_KEYS,h as scrollDrawn,n as scrollOf,_ as scrollOrigins,k as scrollOriginsOf};
@@ -0,0 +1,6 @@
1
+ export type MotionView = "desktop" | "tablet" | "phone";
2
+ export declare const MOTION_VIEWS: readonly MotionView[];
3
+ export declare const viewKey: (key: string, view: MotionView) => string;
4
+ export declare const viewStoreKeys: (keys: readonly string[]) => readonly string[];
5
+ export declare const followViews: (desktop: unknown, tablet: unknown, phone: unknown) => Readonly<Record<MotionView, unknown>>;
6
+ export declare function followedIn(props: Readonly<Record<string, unknown>>, key: string, view: MotionView, desktop?: unknown): unknown;
@@ -0,0 +1 @@
1
+ import{FOLLOW_RULES as r,phoneKey as c,resolveViewValue as s,tabletKey as a}from"efficient-easel/screen/lib/content/view-tiers";const i=["desktop","tablet","phone"],n=(e,t)=>t==="phone"?c(e):t==="tablet"?a(e):e,w=e=>e.flatMap(t=>i.map(o=>n(t,o))),l=e=>e===null||e===""?void 0:e,f=(e,t,o)=>s("same",l(e),l(t),l(o),r);function x(e,t,o,p=e[t]){return f(p,e[n(t,"tablet")],e[n(t,"phone")])[o]}export{i as MOTION_VIEWS,f as followViews,x as followedIn,n as viewKey,w as viewStoreKeys};
@@ -7,6 +7,8 @@ export declare const COUNTS_SOURCE = "counts";
7
7
  export declare const LOCATION_PAYMENT_METHODS_SOURCE = "location-payment-methods";
8
8
  export declare const SHOP_PAYMENT_METHODS_SOURCE = "shop-payment-methods";
9
9
  export declare const DELIVERY_OPTIONS_SOURCE = "delivery-options";
10
+ export declare const BLOG_CATEGORIES_SOURCE = "blog-categories";
11
+ export declare const DEALERS_SOURCE = "dealers";
10
12
  export type SourceRow = Readonly<Record<string, string>>;
11
13
  export interface SourceChoice {
12
14
  key: string;
@@ -44,6 +46,7 @@ export interface SourceEditAction {
44
46
  open: () => void;
45
47
  }
46
48
  export declare function isSourceEditAction(link: SourceEditLink | SourceEditAction): link is SourceEditAction;
49
+ export declare function isBlockSourceKey(value: unknown): value is string;
47
50
  export declare function registerBlockSources(sources: readonly BlockSourceSpec[]): void;
48
51
  export declare function blockSources(block?: string): readonly BlockSourceSpec[];
49
52
  export declare function blockSourceSpec(key: string): BlockSourceSpec | null;
@@ -1 +1 @@
1
- import{globalRegistry as c}from"../global-registry.js";import{nonEmptyString as a}from"../non-empty-string.js";import{slotFieldBlocks as f}from"./slot-field-blocks.js";const p="dataSource",g="dataSourceOptions",u="dataRows",w="countKey",A="counts",C="location-payment-methods",P="shop-payment-methods",v="delivery-options";function y(e){return typeof e.open=="function"}const m=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/;function n(){return c("efficient.block-sources",()=>({sources:new Map,revision:0}))}const d=e=>[e?.key,e?.label,e?.value].every(t=>typeof t=="string"&&t.trim()!==""),b=e=>[e?.key,e?.label].every(t=>typeof t=="string"&&t.trim()!==""),l=e=>typeof e=="string"&&e.trim()!=="";function h(e){if(!e||!l(e.label))return null;if(y(e))return{label:e.label.trim(),open:e.open};const t=e.href;return l(t)?{label:e.label.trim(),href:t.trim()}:null}function k(e){if(typeof e.key!="string"||!m.test(e.key))throw new Error(`A block source key is lower-case words joined by hyphens, not ${JSON.stringify(e.key)}.`);if(typeof e.label!="string"||!e.label.trim())throw new Error(`The block source ${e.key} has no label.`);if(!Array.isArray(e.blocks)||!e.blocks.length||e.blocks.some(r=>typeof r!="string"||!r))throw new Error(`The block source ${e.key} names no block it can fill.`);const t=e.blocks.find(r=>f().has(r));if(t)throw new Error(`The block source ${e.key} names ${t}, whose card template declares slot fields: slot fields take the place of a source's fields, so a block with slot fields reads no source.`);const o=h(e.edit);return{key:e.key,label:e.label.trim(),blocks:[...e.blocks],...e.sample?{sample:e.sample.map(r=>i(r)).filter(r=>r!==null)}:{},...Array.isArray(e.choices)?{choices:e.choices.filter(d)}:{},...Array.isArray(e.fields)?{fields:e.fields.filter(b).map(r=>({...r}))}:{},...o?{edit:o}:{},...typeof e.useRows=="function"?{useRows:e.useRows}:{},...Array.isArray(e.records)?{records:e.records.filter(r=>typeof r=="string"&&r.trim()!=="").map(r=>r.trim())}:{}}}function T(e){const t=e.map(k),o=n();for(const r of t)o.sources.set(r.key,r);t.length&&(o.revision+=1)}function U(e){const t=[...n().sources.values()];return e===void 0?t:t.filter(o=>o.blocks.includes(e))}function O(e){return n().sources.get(e)??null}function N(e){return n().sources.get(e)?.choices??[]}function B(){return n().revision}function S(e){const t=e?.[p];return typeof t=="string"?t.trim():""}function i(e){if(!e||typeof e!="object"||Array.isArray(e))return null;const t={};for(const[o,r]of Object.entries(e)){const s=a(r);s&&(t[o]=s)}return Object.keys(t).length?t:null}function E(e){const t=e?.[u];return Array.isArray(t)?t.map(i).filter(o=>o!==null):null}function K(e,t,o=[]){const r=E(e);if(r!==null&&(r.length||!t))return{rows:r,sample:!1};if(!t)return{rows:[],sample:!1};const s=O(S(e))?.sample;return{rows:s?.length?s:o,sample:!0}}export{g as BLOCK_SOURCE_OPTIONS_PROP,p as BLOCK_SOURCE_PROP,u as BLOCK_SOURCE_ROWS_PROP,A as COUNTS_SOURCE,w as COUNT_KEY_PROP,v as DELIVERY_OPTIONS_SOURCE,C as LOCATION_PAYMENT_METHODS_SOURCE,P as SHOP_PAYMENT_METHODS_SOURCE,O as blockSourceSpec,U as blockSources,B as blockSourcesRevision,S as declaredBlockSource,y as isSourceEditAction,T as registerBlockSources,E as servedRows,N as sourceChoices,K as sourcedRows};
1
+ import{globalRegistry as f}from"../global-registry.js";import{nonEmptyString as p}from"../non-empty-string.js";import{slotFieldBlocks as u}from"./slot-field-blocks.js";const y="dataSource",w="dataSourceOptions",d="dataRows",A="countKey",U="counts",P="location-payment-methods",T="shop-payment-methods",v="delivery-options",B="blog-categories",m="dealers";function b(e){return typeof e.open=="function"}const l=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/;function L(e){return typeof e=="string"&&l.test(e)}const i=new Set([m]);function n(){return f("efficient.block-sources",()=>({sources:new Map,revision:0}))}const O=e=>[e?.key,e?.label,e?.value].every(t=>typeof t=="string"&&t.trim()!==""),k=e=>[e?.key,e?.label].every(t=>typeof t=="string"&&t.trim()!==""),c=e=>typeof e=="string"&&e.trim()!=="";function h(e){if(!e||!c(e.label))return null;if(b(e))return{label:e.label.trim(),open:e.open};const t=e.href;return c(t)?{label:e.label.trim(),href:t.trim()}:null}function S(e){if(typeof e.key!="string"||!l.test(e.key))throw new Error(`A block source key is lower-case words joined by hyphens, not ${JSON.stringify(e.key)}.`);if(typeof e.label!="string"||!e.label.trim())throw new Error(`The block source ${e.key} has no label.`);if(!Array.isArray(e.blocks)||!e.blocks.length||e.blocks.some(o=>typeof o!="string"||!o))throw new Error(`The block source ${e.key} names no block it can fill.`);const t=e.blocks.find(o=>u().has(o));if(t)throw new Error(`The block source ${e.key} names ${t}, whose card template declares slot fields: slot fields take the place of a source's fields, so a block with slot fields reads no source.`);const r=h(e.edit);return{key:e.key,label:e.label.trim(),blocks:[...e.blocks],...e.sample?{sample:e.sample.map(o=>a(o)).filter(o=>o!==null)}:{},...Array.isArray(e.choices)?{choices:e.choices.filter(O)}:{},...Array.isArray(e.fields)?{fields:e.fields.filter(k).map(o=>({...o}))}:{},...r?{edit:r}:{},...typeof e.useRows=="function"?{useRows:e.useRows}:{},...Array.isArray(e.records)?{records:e.records.filter(o=>typeof o=="string"&&o.trim()!=="").map(o=>o.trim())}:{}}}function N(e){const t=e.map(S),r=n();for(const o of t)r.sources.set(o.key,o);t.length&&(r.revision+=1)}function K(e){const t=[...n().sources.values()],r=[...t.filter(o=>!i.has(o.key)),...t.filter(o=>i.has(o.key))];return e===void 0?r:r.filter(o=>o.blocks.includes(e))}function E(e){return n().sources.get(e)??null}function I(e){return n().sources.get(e)?.choices??[]}function $(){return n().revision}function R(e){const t=e?.[y];return typeof t=="string"?t.trim():""}function a(e){if(!e||typeof e!="object"||Array.isArray(e))return null;const t={};for(const[r,o]of Object.entries(e)){const s=p(o);s&&(t[r]=s)}return Object.keys(t).length?t:null}function _(e){const t=e?.[d];return Array.isArray(t)?t.map(a).filter(r=>r!==null):null}function D(e,t,r=[]){const o=_(e);if(o!==null&&(o.length||!t))return{rows:o,sample:!1};if(!t)return{rows:[],sample:!1};const s=E(R(e))?.sample;return{rows:s?.length?s:r,sample:!0}}export{w as BLOCK_SOURCE_OPTIONS_PROP,y as BLOCK_SOURCE_PROP,d as BLOCK_SOURCE_ROWS_PROP,B as BLOG_CATEGORIES_SOURCE,U as COUNTS_SOURCE,A as COUNT_KEY_PROP,m as DEALERS_SOURCE,v as DELIVERY_OPTIONS_SOURCE,P as LOCATION_PAYMENT_METHODS_SOURCE,T as SHOP_PAYMENT_METHODS_SOURCE,E as blockSourceSpec,K as blockSources,$ as blockSourcesRevision,R as declaredBlockSource,L as isBlockSourceKey,b as isSourceEditAction,N as registerBlockSources,_ as servedRows,I as sourceChoices,D as sourcedRows};
@@ -35,6 +35,7 @@ export declare function boxIsCard(props: {
35
35
  bgImage?: unknown;
36
36
  [BOX_ROW_IMAGE_PROP]?: unknown;
37
37
  } | null | undefined): boolean;
38
+ export declare function boxNamesRowPicture(props: object | null | undefined): boolean;
38
39
  export declare function boxCardProps<P extends object>(props: P, inCopy: boolean): P;
39
40
  export declare function boxRowPicture(props: Record<string, unknown> | null | undefined, row: SourceRow | null | undefined): string | null;
40
41
  export declare function boxDarkenStyle(darken: unknown, style?: unknown): CSSProperties | null;
@@ -1 +1 @@
1
- import{parseHexColor as O}from"efficient-shell/format";import{fillColorRole as y}from"efficient-shell/markup";import{BOX_ROW_IMAGE_PROP as u}from"./box-card-rule.js";import{namedRowField as f,rowFieldText as S}from"./card-template.js";import{fillInkCss as C,fillSlotNamed as P,inkTokenOf as A,partColourName as F}from"../document/part-inks.js";import{scrim as p}from"./scrim.js";import{viewVarSplit as h}from"./view-var-split.js";const w="sf-card",g={min:0,max:100,step:5,fallback:0,unit:"%"},T=[{label:"Even",value:"even"},{label:"From the bottom",value:"bottom"}],B="68%",H={desktop:20,phone:20,side:40,sidePhone:24},j="sf-box-sides",K={min:0,max:200,step:10};function D(t){return typeof t=="string"&&t.trim()!==""}function Y(t){return D(typeof t?.bgImage=="string"?t.bgImage:null)||f(t,u)!==""}function z(t,e){return e||f(t,u)===""?t:{...t,[u]:""}}function G(t,e){const o=S(e,f(t,u))?.trim();return o||null}function _(t,e){const n=typeof t=="number"?t:Number.parseFloat(String(t??""));if(!Number.isFinite(n)||n<=0)return null;const s=(Math.min(g.max,Math.max(g.min,n))/100).toFixed(2);return e!=="bottom"?{background:p(Number(s))}:{background:`linear-gradient(0deg, ${p(Number(s))} 0%, ${p(0)} ${B})`}}const k=t=>typeof t=="string"?O(t.trim()):null,d=t=>{const e=k(t);if(e!==null||typeof t!="string")return e;const n=t.trim();return n&&!n.startsWith("#")&&C(n)||null},J=t=>{if(typeof t!="string")return null;const e=y(F(t.trim()));return e?.kind==="slot"?e.slot:null},E="swatch";function U(t,e){if(!e)return null;const n=S(e,f(t,E)),o=P(n);return k(n)??(o&&A(o)||null)}const I={tabletClass:"sf-fill-tablet",tabletVar:"--sf-fill-tablet",phoneClass:"sf-fill-phone",phoneVar:"--sf-fill-phone"};function q(t,e,n){return h(I,d(t),d(e),d(n))}const N={tabletClass:"sf-wash-tablet",tabletVar:"--sf-wash-tablet",phoneClass:"sf-wash-phone",phoneVar:"--sf-wash-phone"};function Q(t){const e=_(t.darken,t.darkenStyle);if(!e)return{className:"",style:{}};const n=(r,m)=>String(_(r,m)?.background??"none"),o=r=>(typeof r=="number"||typeof r=="string"&&r.trim()!=="")&&Number.isFinite(Number(r))?r:void 0,s=r=>T.some(m=>m.value===r)?r:void 0,[l,i,a,c]=[o(t.darkenTablet),s(t.darkenStyleTablet),o(t.darkenPhone),s(t.darkenStylePhone)],b=l??t.darken,x=i??t.darkenStyle;return h(N,String(e.background),l!==void 0||i!==void 0?n(b,x):null,a!==void 0||c!==void 0?n(a??b,c??x):null)}function Z(t,e){const n={"top-left":["start","start"],"top-center":["center","start"],"top-right":["end","start"],left:["start","center"],center:["center","center"],right:["end","center"],"bottom-left":["start","end"],"bottom-center":["center","end"],"bottom-right":["end","end"]},[o,s]=n[t]??n.center,[l,i]=e==="column"?[s,o]:[o,s],a={start:"justify-start",center:"justify-center",end:"justify-end"},c={start:"items-start",center:"items-center",end:"items-end"};return`${a[l]} ${c[i]}`}export{H as BOX_CARD_PAD,K as BOX_CARD_SIDE,g as BOX_DARKEN,T as BOX_DARKEN_STYLES,I as BOX_FILL_VIEWS,j as BOX_OWNS_SIDES_CLASS,E as BOX_SWATCH_PROP,N as BOX_WASH_VIEWS,w as CARD_SHADOW_CLASS,z as boxCardProps,_ as boxDarkenStyle,k as boxFillOf,J as boxFillSlot,q as boxFillViews,Y as boxIsCard,d as boxPaintOf,Z as boxPlacementClasses,G as boxRowPicture,U as boxSwatchFill,Q as boxWashViews,D as isBackgroundBox};
1
+ import{parseHexColor as y}from"efficient-shell/format";import{fillColorRole as C}from"efficient-shell/markup";import{BOX_ROW_IMAGE_PROP as f}from"./box-card-rule.js";import{namedRowField as m,rowFieldText as S}from"./card-template.js";import{fillInkCss as P,fillSlotNamed as A,inkTokenOf as F,partColourName as N}from"../document/part-inks.js";import{scrim as p}from"./scrim.js";import{viewVarSplit as h}from"./view-var-split.js";const H="sf-card",g={min:0,max:100,step:5,fallback:0,unit:"%"},T=[{label:"Even",value:"even"},{label:"From the bottom",value:"bottom"}],B="68%",j={desktop:20,phone:20,side:40,sidePhone:24},K="sf-box-sides",Y={min:0,max:200,step:10};function D(t){return typeof t=="string"&&t.trim()!==""}function z(t){return D(typeof t?.bgImage=="string"?t.bgImage:null)||_(t)}function _(t){return m(t,f)!==""}function G(t,e){return e||!_(t)?t:{...t,[f]:""}}function J(t,e){const o=S(e,m(t,f))?.trim();return o||null}function k(t,e){const n=typeof t=="number"?t:Number.parseFloat(String(t??""));if(!Number.isFinite(n)||n<=0)return null;const s=(Math.min(g.max,Math.max(g.min,n))/100).toFixed(2);return e!=="bottom"?{background:p(Number(s))}:{background:`linear-gradient(0deg, ${p(Number(s))} 0%, ${p(0)} ${B})`}}const O=t=>typeof t=="string"?y(t.trim()):null,d=t=>{const e=O(t);if(e!==null||typeof t!="string")return e;const n=t.trim();return n&&!n.startsWith("#")&&P(n)||null},U=t=>{if(typeof t!="string")return null;const e=C(N(t.trim()));return e?.kind==="slot"?e.slot:null},E="swatch";function q(t,e){if(!e)return null;const n=S(e,m(t,E)),o=A(n);return O(n)??(o&&F(o)||null)}const I={tabletClass:"sf-fill-tablet",tabletVar:"--sf-fill-tablet",phoneClass:"sf-fill-phone",phoneVar:"--sf-fill-phone"};function Q(t,e,n){return h(I,d(t),d(e),d(n))}const R={tabletClass:"sf-wash-tablet",tabletVar:"--sf-wash-tablet",phoneClass:"sf-wash-phone",phoneVar:"--sf-wash-phone"};function Z(t){const e=k(t.darken,t.darkenStyle);if(!e)return{className:"",style:{}};const n=(r,u)=>String(k(r,u)?.background??"none"),o=r=>(typeof r=="number"||typeof r=="string"&&r.trim()!=="")&&Number.isFinite(Number(r))?r:void 0,s=r=>T.some(u=>u.value===r)?r:void 0,[l,i,a,c]=[o(t.darkenTablet),s(t.darkenStyleTablet),o(t.darkenPhone),s(t.darkenStylePhone)],b=l??t.darken,x=i??t.darkenStyle;return h(R,String(e.background),l!==void 0||i!==void 0?n(b,x):null,a!==void 0||c!==void 0?n(a??b,c??x):null)}function v(t,e){const n={"top-left":["start","start"],"top-center":["center","start"],"top-right":["end","start"],left:["start","center"],center:["center","center"],right:["end","center"],"bottom-left":["start","end"],"bottom-center":["center","end"],"bottom-right":["end","end"]},[o,s]=n[t]??n.center,[l,i]=e==="column"?[s,o]:[o,s],a={start:"justify-start",center:"justify-center",end:"justify-end"},c={start:"items-start",center:"items-center",end:"items-end"};return`${a[l]} ${c[i]}`}export{j as BOX_CARD_PAD,Y as BOX_CARD_SIDE,g as BOX_DARKEN,T as BOX_DARKEN_STYLES,I as BOX_FILL_VIEWS,K as BOX_OWNS_SIDES_CLASS,E as BOX_SWATCH_PROP,R as BOX_WASH_VIEWS,H as CARD_SHADOW_CLASS,G as boxCardProps,k as boxDarkenStyle,O as boxFillOf,U as boxFillSlot,Q as boxFillViews,z as boxIsCard,_ as boxNamesRowPicture,d as boxPaintOf,v as boxPlacementClasses,J as boxRowPicture,q as boxSwatchFill,Z as boxWashViews,D as isBackgroundBox};
@@ -1,3 +1,14 @@
1
+ export declare function linkOpensElsewhere(href: string, ownHost?: string | null): boolean;
2
+ export declare function siteLinkDraws(href: string): boolean;
3
+ export declare function isWebAddress(href: string): boolean;
4
+ export declare const NEW_TAB_ATTRS: {
5
+ readonly target: "_blank";
6
+ readonly rel: "noopener noreferrer";
7
+ };
8
+ export declare function linkTargetAttrs(href: string, ownHost?: string | null): {
9
+ target?: "_blank";
10
+ rel?: string;
11
+ };
1
12
  export declare function boxLinkOf(value: unknown): string;
2
13
  export declare const BOX_LINK_ATTR = "data-sf-box-link";
3
14
  export declare const BOX_LINK_CLASS = "absolute inset-0 -z-[1] outline-none focus-visible:z-[2] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent";
@@ -1,13 +1,13 @@
1
- import{anchorSlug as a}from"./anchor-name.js";function f(t){return typeof t=="string"?t.trim():""}const b="data-sf-box-link",v="absolute inset-0 -z-[1] outline-none focus-visible:z-[2] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent",x="relative isolate pointer-events-none [&_a]:pointer-events-auto [&_button]:pointer-events-auto [&_input]:pointer-events-auto [&_select]:pointer-events-auto [&_textarea]:pointer-events-auto [&_label]:pointer-events-auto [&_summary]:pointer-events-auto [&_iframe]:pointer-events-auto [&_video]:pointer-events-auto [&_audio]:pointer-events-auto [&_[role=button]]:pointer-events-auto [&_[tabindex]:not([tabindex='-1'])]:pointer-events-auto",u="data-sf-box-jump";function c(t){return`sf-box-jump-${t}`}function $(t,o){return t===!0?a(o):""}function p({box:t,lit:o,first:n}){const e=r=>r.join(`,
2
- `),i=n(t),s=o.flatMap(n);return`
1
+ import{anchorSlug as u}from"./anchor-name.js";function c(t,e){const n=t.trim();if(!a(n))return!1;if(!e)return!0;let o;try{o=new URL(n,"https://x.invalid").host}catch{return!1}const r=i=>i.toLowerCase().replace(/^www\./,"");return r(o)!==r(e)}function _(t){return t.startsWith("/")||a(t)}function a(t){return/^(?:https?:)?\/\//i.test(t.trim())}const p=Object.freeze({target:"_blank",rel:"noopener noreferrer"});function v(t,e){return c(t,e)?{...p}:{}}function $(t){return typeof t=="string"?t.trim():""}const m="data-sf-box-link",d="absolute inset-0 -z-[1] outline-none focus-visible:z-[2] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent",h="relative isolate pointer-events-none [&_a]:pointer-events-auto [&_button]:pointer-events-auto [&_input]:pointer-events-auto [&_select]:pointer-events-auto [&_textarea]:pointer-events-auto [&_label]:pointer-events-auto [&_summary]:pointer-events-auto [&_iframe]:pointer-events-auto [&_video]:pointer-events-auto [&_audio]:pointer-events-auto [&_[role=button]]:pointer-events-auto [&_[tabindex]:not([tabindex='-1'])]:pointer-events-auto",l="data-sf-box-jump";function f(t){return`sf-box-jump-${t}`}function g(t,e){return t===!0?u(e):""}function x({box:t,lit:e,first:n}){const o=s=>s.join(`,
2
+ `),r=n(t),i=e.flatMap(n);return`
3
3
  ${t} {
4
4
  outline: 2px solid transparent;
5
5
  outline-offset: -2px;
6
6
  transition: outline-color 600ms ease-out;
7
7
  }
8
- ${e(i)} { transition: background-color 600ms ease-out; }
9
- ${e(i.map(r=>`${r} *`))} { transition: color 600ms ease-out; }
10
- ${e(o)} { outline-color: var(--accent); }
11
- ${e(s)} { background-color: var(--accent); }
12
- ${e([...s,...s.map(r=>`${r} *`)])} { color: var(--bg) !important; }
13
- `}function _(t){const o=`[${u}="${t}"]`,n=`.${c(t)}`,e=`[id="${t}"]:target`;return p({box:o,lit:[`${e}~${o}`,`${e}~* ${o}`],first:i=>[`${i} ${n}>:first-child:not(.sf-section-anchor)`,`${i} ${n}>.sf-section-anchor:first-child+*`]})}export{u as BOX_JUMP_ATTR,x as BOX_LINKED_CLASS,b as BOX_LINK_ATTR,v as BOX_LINK_CLASS,c as boxJumpBlocksClass,_ as boxJumpCss,$ as boxJumpSlug,f as boxLinkOf,p as jumpHighlightCss};
8
+ ${o(r)} { transition: background-color 600ms ease-out; }
9
+ ${o(r.map(s=>`${s} *`))} { transition: color 600ms ease-out; }
10
+ ${o(e)} { outline-color: var(--accent); }
11
+ ${o(i)} { background-color: var(--accent); }
12
+ ${o([...i,...i.map(s=>`${s} *`)])} { color: var(--bg) !important; }
13
+ `}function k(t){const e=`[${l}="${t}"]`,n=`.${f(t)}`,o=`[id="${t}"]:target`;return x({box:e,lit:[`${o}~${e}`,`${o}~* ${e}`],first:r=>[`${r} ${n}>:first-child:not(.sf-section-anchor)`,`${r} ${n}>.sf-section-anchor:first-child+*`]})}export{l as BOX_JUMP_ATTR,h as BOX_LINKED_CLASS,m as BOX_LINK_ATTR,d as BOX_LINK_CLASS,p as NEW_TAB_ATTRS,f as boxJumpBlocksClass,k as boxJumpCss,g as boxJumpSlug,$ as boxLinkOf,a as isWebAddress,x as jumpHighlightCss,c as linkOpensElsewhere,v as linkTargetAttrs,_ as siteLinkDraws};
@@ -2,10 +2,8 @@ import type { SlotCell } from "efficient-easel/render";
2
2
  export declare const BOX_PHONE_PLACE_CLASS = "max-view-wide:[&>*]:order-[var(--sf-phone-place)] max-view-wide:[&>[data-sf-box-items]>*]:order-[var(--sf-phone-place)]";
3
3
  export declare const BOX_PHONE_PLACE_TABLET_CLASS = "max-view-wide:[&>*]:order-[var(--sf-phone-place)] max-view-wide:[&>[data-sf-box-items]>*]:order-[var(--sf-phone-place)]";
4
4
  export declare const BOX_PHONE_PLACE_CANVAS_CLASS = "max-view-wide:order-[var(--sf-phone-place)]";
5
- export declare const BOX_PHONE_PLACE_CANVAS_TABLET_CLASS = "max-view-wide:order-[var(--sf-phone-place)]";
6
5
  export declare const BOX_CELL_CLASS = "contents [&>*]:grow-[inherit] [&>[data-sf-box-items]>*]:grow-[inherit] [&>*]:shrink-[inherit] [&>[data-sf-box-items]>*]:shrink-[inherit] [&>*]:basis-[inherit] [&>[data-sf-box-items]>*]:basis-[inherit] [&>*]:min-w-[inherit] [&>[data-sf-box-items]>*]:min-w-[inherit]";
7
6
  export declare function boxPhoneOrder(value: unknown, ids: readonly string[]): string[] | undefined;
8
7
  export declare function boxPhoneCell(order: readonly string[] | undefined, { editing }: {
9
- tabletKeepsRow?: boolean;
10
8
  editing: boolean;
11
9
  }): ((id: string) => SlotCell) | undefined;
@@ -1 +1 @@
1
- import{readPhoneOrderIds as a}from"efficient-easel/data";const o="max-view-wide:[&>*]:order-[var(--sf-phone-place)] max-view-wide:[&>[data-sf-box-items]>*]:order-[var(--sf-phone-place)]",x=o,s="max-view-wide:order-[var(--sf-phone-place)]",A=s,h="contents [&>*]:grow-[inherit] [&>[data-sf-box-items]>*]:grow-[inherit] [&>*]:shrink-[inherit] [&>[data-sf-box-items]>*]:shrink-[inherit] [&>*]:basis-[inherit] [&>[data-sf-box-items]>*]:basis-[inherit] [&>*]:min-w-[inherit] [&>[data-sf-box-items]>*]:min-w-[inherit]",_="unnamed:";function c(e,r){const n=Array.isArray(e)?e.filter(t=>!(typeof t=="string"&&t.startsWith(_))):e;return a(n,r)}function f(e,{editing:r}){if(!e)return;const n=r?s:`${h} ${o}`;return t=>{const i=e.indexOf(t);return{className:n,style:{"--sf-phone-place":i<0?e.length:i}}}}export{h as BOX_CELL_CLASS,s as BOX_PHONE_PLACE_CANVAS_CLASS,A as BOX_PHONE_PLACE_CANVAS_TABLET_CLASS,o as BOX_PHONE_PLACE_CLASS,x as BOX_PHONE_PLACE_TABLET_CLASS,f as boxPhoneCell,c as boxPhoneOrder};
1
+ import{readPhoneOrderIds as s}from"efficient-easel/data";const o="max-view-wide:[&>*]:order-[var(--sf-phone-place)] max-view-wide:[&>[data-sf-box-items]>*]:order-[var(--sf-phone-place)]",x=o,a="max-view-wide:order-[var(--sf-phone-place)]",h="contents [&>*]:grow-[inherit] [&>[data-sf-box-items]>*]:grow-[inherit] [&>*]:shrink-[inherit] [&>[data-sf-box-items]>*]:shrink-[inherit] [&>*]:basis-[inherit] [&>[data-sf-box-items]>*]:basis-[inherit] [&>*]:min-w-[inherit] [&>[data-sf-box-items]>*]:min-w-[inherit]",d="unnamed:";function c(e,r){const n=Array.isArray(e)?e.filter(t=>!(typeof t=="string"&&t.startsWith(d))):e;return s(n,r)}function p(e,{editing:r}){if(!e)return;const n=r?a:`${h} ${o}`;return t=>{const i=e.indexOf(t);return{className:n,style:{"--sf-phone-place":i<0?e.length:i}}}}export{h as BOX_CELL_CLASS,a as BOX_PHONE_PLACE_CANVAS_CLASS,o as BOX_PHONE_PLACE_CLASS,x as BOX_PHONE_PLACE_TABLET_CLASS,p as boxPhoneCell,c as boxPhoneOrder};
@@ -1 +1 @@
1
- const o="sideSpace",e="site",s=[{value:"box",label:"Box"},{value:e,label:"Site"}],n="box",S="Box: on small screens the Box keeps its own side space, up to 24 px. Site: it uses the site's Side space, as the site's own sections do. It has no effect when Content is Full width.";function i(t){return t===e?e:"box"}function x(t){return t===e?e:void 0}export{n as BOX_SIDE_SPACE_DEFAULT,S as BOX_SIDE_SPACE_HINT,s as BOX_SIDE_SPACE_OPTIONS,o as BOX_SIDE_SPACE_PROP,e as BOX_SIDE_SPACE_SITE,i as boxSideSpaceOf,x as boxSideSpaceWrite};
1
+ import{SITE_SIDE as o}from"efficient-easel/screen/lib/content/length-units";const n="sideSpace",e=o,S=[{value:"box",label:"Box"},{value:e,label:"Site"}],i="box",p="Box: on small screens the Box keeps its own side space, up to 24 px. Site: it uses the site's Side space, as the site's own sections do. It has no effect when Content is Full width.";function x(t){return t===e?e:"box"}function _(t){return t===e?e:void 0}export{i as BOX_SIDE_SPACE_DEFAULT,p as BOX_SIDE_SPACE_HINT,S as BOX_SIDE_SPACE_OPTIONS,n as BOX_SIDE_SPACE_PROP,e as BOX_SIDE_SPACE_SITE,x as boxSideSpaceOf,_ as boxSideSpaceWrite};
@@ -1,5 +1,9 @@
1
+ import { type LengthRow } from "efficient-easel/screen/lib/content/length-units";
1
2
  import { CORNER_RADIUS_MAX, CORNER_RADIUS_MIN } from "../theme.js";
2
3
  export { CORNER_RADIUS_MAX, CORNER_RADIUS_MIN };
3
4
  export declare const CARD_IMAGE_RADIUS_STEP = 1;
5
+ export declare const CARD_IMAGE_UNIT_KEY = "cardImageUnit";
6
+ export declare const CARD_IMAGE_RADIUS_ROW: LengthRow;
7
+ export declare const CARD_IMAGE_PX_ROW: LengthRow;
4
8
  export declare function normalizeCardImageRadius(v?: number | string | null): number | null;
5
- export declare function cardImageShapeTokens(v?: number | string | null): Record<string, string>;
9
+ export declare function cardImageShapeTokens(v?: number | string | null, unit?: unknown): Record<string, string>;
@@ -1 +1 @@
1
- import{CORNER_RADIUS_MAX as o,CORNER_RADIUS_MIN as n,normalizeCornerRadius as a}from"../theme.js";const i=1;function t(r){return a(r)}function p(r){const e=t(r);return e===null?{}:{"--sf-card-image-radius":`${e}px`}}export{i as CARD_IMAGE_RADIUS_STEP,o as CORNER_RADIUS_MAX,n as CORNER_RADIUS_MIN,p as cardImageShapeTokens,t as normalizeCardImageRadius};
1
+ import{isLengthUnit as t}from"efficient-easel/screen/lib/content/length-units";import{finiteNumber as i}from"../finite-number.js";import{cssLengthOf as a}from"./css-length.js";import{CORNER_RADIUS_MAX as s,CORNER_RADIUS_MIN as m,normalizeCornerRadius as R}from"../theme.js";const I=1,_="cardImageUnit",f={kind:"radius",unitKey:_},x={kind:"radius"};function d(r){return R(r)}function C(r,e){if(t(e)&&e!=="px"){const n=i(r);return n!==void 0&&n>=0?{"--sf-card-image-radius":a(n,e)}:{}}const o=d(r);return o===null?{}:{"--sf-card-image-radius":`${o}px`}}export{x as CARD_IMAGE_PX_ROW,f as CARD_IMAGE_RADIUS_ROW,I as CARD_IMAGE_RADIUS_STEP,_ as CARD_IMAGE_UNIT_KEY,s as CORNER_RADIUS_MAX,m as CORNER_RADIUS_MIN,C as cardImageShapeTokens,d as normalizeCardImageRadius};
@@ -92,6 +92,7 @@ export declare function rowPartByKey(type: string, props: Record<string, unknown
92
92
  export declare function rowBound(type: string, props: Record<string, unknown> | null | undefined, key: string): boolean;
93
93
  export declare function rowFieldOf(type: string, props: Record<string, unknown> | null | undefined, key: string): string;
94
94
  export declare function rowFieldText(row: SourceRow | null | undefined, key: string): string | null;
95
+ export declare function rowLinkText(row: SourceRow | null | undefined, key: string): string | undefined;
95
96
  export declare function rowFilledProps(type: string, props: Record<string, unknown>, row: SourceRow | null | undefined, ownerType?: string, fields?: readonly CardRowFieldSpec[], slot?: string): Record<string, unknown>;
96
97
  type DocNode = {
97
98
  type?: unknown;
@@ -1 +1 @@
1
- import{blockSources as E,blockSourceSpec as w,declaredBlockSource as T}from"./block-sources.js";import{slotFieldBlocks as h}from"./slot-field-blocks.js";import{isNodeList as I}from"efficient-easel/data";import{BOX_TYPE as F}from"../document/container-blocks.js";import{globalRegistry as P}from"../global-registry.js";import{nonEmptyString as B}from"../non-empty-string.js";import{accentItalicRuns as D}from"../markup.js";import{withCardsTemplate as v}from"../document/cards-template-on-read.js";import{withCardListTemplate as W}from"../document/blocks/general/CardList/item-seed.js";import{ARTICLE_BODY_BLOCK as M,withArticleBodyTemplate as N}from"../document/article-body-seed.js";import{withLogosTemplate as K}from"../document/blocks/general/Logos/card-seed.js";import{withFaqTemplate as j}from"../document/blocks/general/FAQ/card-seed.js";import{withFootprintSideTemplate as H}from"../document/blocks/general/Footprint/card-seed.js";const L="template",Y="Card template",m="CardList",S=["Text","ImageBlock","ButtonBlock","Flex"],p="rowField",$="rowLinkField";function he(){return{type:"slot",allow:[...S]}}const U=S.filter(e=>e!=="ButtonBlock"),O="items",R="itemFields";function Be(){return{type:"slot",allow:[...U]}}const Q=[{block:"OrderSummary",typedRows:"rows",linesBetween:!0,fields:[{key:"label",label:"Item"},{key:"meta",label:"Meta line"},{key:"amount",label:"Amount"}]},{block:"FAQ",typedRows:"items",fields:[{key:"question",label:"Question"},{key:"answer",label:"Answer",multiline:!0}],seedOnInsert:e=>j(e)},{block:"Footprint",typedRows:"offices",fields:[{key:"badge",label:"HQ",plain:!0},{key:"role",label:"Role"},{key:"city",label:"City"},{key:"country",label:"Region · country"},{key:"address",label:"Address"},{key:"phone",label:"Phone"},{key:"linkLabel",label:"Button"},{key:"href",label:"Link",kind:"link"}],seed:e=>H(e)},{block:"Cards",typedRows:"items",fields:[{key:"num",label:"Number"},{key:"since",label:"Corner note"},{key:"label",label:"Label"},{key:"title",label:"Card title"},{key:"value",label:"Value"},{key:"body",label:"Card body",multiline:!0},{key:"href",label:"Link",kind:"link"},{key:"count",label:"Count"},{key:"badge",label:"Highlight badge",everySource:!0,plain:!0}],seed:e=>v("Cards",e)},{block:"ProcessSteps",fields:[{key:"eyebrow",label:"Eyebrow"},{key:"title",label:"Title",mark:"accentItalic"},{key:"copy",label:"Body",multiline:!0},{key:"image",label:"Image",kind:"image",alt:"title"},{key:"tag",label:"Image tag"},{key:"specs",label:"Specs",kind:"list",fields:[{key:"label",label:"Label"},{key:"value",label:"Value"}]}],blocks:[{type:m,label:"Card list"}]},{block:"Logos",fields:[{key:"label",label:"Name"},{key:"kind",label:"Kind"}],seed:e=>K(e)},{block:m,fields:[{key:"badge",label:"Highlight badge",everySource:!0,plain:!0}],typedRows:O,seed:e=>W(e)},{block:M,fields:[{key:"heading",label:"Subhead"},{key:"paragraph",label:"Paragraph",multiline:!0}],seed:e=>N(e)}];function f(){return P("efficient.card-templates",()=>new Map(Q.map(e=>[e.block,e])))}function Le(e){for(const t of e){if(typeof t.block!="string"||!t.block)throw new Error("A card template names no block.");const o=[];for(const r of t.blocks??[]){if(typeof r?.type!="string"||!r.type)throw new Error(`The card template of ${t.block} names an empty block.`);o.some(l=>l.type===r.type)||o.push({type:r.type,label:r.label||r.type})}const n=[];for(const r of t.slots??[]){if(typeof r?.slot!="string"||!r.slot)throw new Error(`The card template of ${t.block} names an empty slot.`);const l=B(r.label),c=Array.isArray(r.fields)?{fields:r.fields.map(a=>({...a}))}:null;n.some(a=>a.slot===r.slot)||n.push({slot:r.slot,...l?{label:l}:null,...c})}const s=n.some(r=>r.fields);if(s&&(t.fields.some(r=>r.everySource)||E(t.block).length))throw new Error(`The card template of ${t.block} declares slot fields, but the block reads a source: slot fields take the place of a source's fields, so a block with slot fields reads no source.`);s?h().add(t.block):h().delete(t.block);const i=B(t.typedRows);f().set(t.block,{block:t.block,...n.length?{slots:n}:{},fields:t.fields.map(r=>({...r})),blocks:o,typedRows:i,...t.seed?{seed:t.seed}:{},...t.seedOnInsert?{seedOnInsert:t.seedOnInsert}:{},...t.linesBetween===!0?{linesBetween:!0}:{}})}}function q(e,t){const o=e?f().get(e)?.seed:void 0;return o?o(t):t}function Se(e,t){const o=X(e),n=(o.length?o:[L]).filter(l=>t[l]===void 0||Array.isArray(t[l])&&t[l].length===0);if(!n.length)return t;const s={...t};for(const l of n)delete s[l];const i=e?f().get(e)?.seedOnInsert:void 0,r=i?i(s):q(e,s);return r===s?t:r}function Oe(){for(const e of f().values())if(e.blocks?.length)return!0;return!1}function Re(e){return f().get(e)?.blocks??[]}function Ae(e){for(const t of f().values())if(t.blocks?.some(o=>o.type===e))return!0;return!1}function Ce(e){return typeof e=="string"&&f().get(e)?.typedRows||""}function _e(e){return typeof e=="string"&&f().get(e)?.linesBetween===!0}function Ee(e){return typeof e=="string"&&f().has(e)}const V=[{slot:L}];function y(e){if(typeof e!="string")return[];const t=f().get(e);return t?t.slots??V:[]}function X(e){return y(e).map(t=>t.slot)}function z(e,t){return y(e).some(o=>o.slot===t)}function Ie(e,t){const o=y(e).find(n=>n.slot===t);return o?o.label??Y:null}function b(e,t){return t?y(e).find(o=>o.slot===t)?.fields:void 0}function G(e,t){const o=f().get(e)?.fields??[];return t?o.filter(n=>(n.kind??"text")===t):o}function J(e,t){if(typeof e!="string")return"";const o=b(e,t);return(o?o.filter(n=>n.kind==="list"):G(e,"list"))[0]?.key??""}function Z(e,t,o){return x(e)||J(t,o)}function A(e,t,o){const n=typeof e?.type=="string"?e.type:"";if(!n)return[];const s=b(n,o);if(s)return t?s.filter(c=>(c.kind??"text")===t):s;const i=f().get(n)?.fields??[],r=w(T(e?.props))?.fields,l=r?.length?[...r.map(c=>({...c})),...i.filter(c=>c.everySource&&!r.some(a=>a.key===c.key))]:i;return t?l.filter(c=>(c.kind??"text")===t):l}function ee(e,t,o,n){if(!e)return null;const s=b(e,n);return s?s.find(i=>i.key===t)??null:o?A(o).find(i=>i.key===t)??null:f().get(e)?.fields.find(i=>i.key===t)??null}function C(e,t){return!e||!t?null:e.fields?.find(o=>o.key===t)??ee(e.ownerType,t,e.owner,e.slot)}function Fe(e,t){return C(e,t)?.plain===!0}function x(e,t=p){const o=e?.[t];return typeof o=="string"?o.trim():""}function Pe(e,t){return e.key||String(t+1)}function De(e){const t={};if(e&&typeof e=="object"&&!Array.isArray(e))for(const[o,n]of Object.entries(e))typeof n=="string"&&(t[o]=n);return t}const te="hideWhenRowEmpty";function ve(e,t){const o=e[te];return!t||!Array.isArray(o)||!o.length?!1:o.every(n=>typeof n!="string"||!t[n]?.trim())}const g={Text:{text:p},ImageBlock:{src:p},ButtonBlock:{label:p,href:$},LogoBlock:{alt:p},Breadcrumb:{currentCrumb:p}},We=g,oe=new Set(["ButtonBlock.label","LogoBlock.alt"]);function Me(e,t,o){return re(e,t,o)&&!oe.has(`${e}.${o}`)}function re(e,t,o){return ne(e,t,o)!==""}function ne(e,t,o){const n=g[e]?.[o];return n?x(t,n):""}function le(e,t){return!t||!e?null:e[t]??""}function Ne(e,t,o,n,s,i){if(!o)return t;let r=null;for(const[l,c]of Object.entries(g[e]??{})){const a=x(t,c),u=le(o,a);u!==null&&(r??={...t},r[l]=C({ownerType:n,fields:s,slot:i},a)?.mark==="accentItalic"?D(u):u)}return r??t}function k(e,t){const o=e?.data?.content;if(!Array.isArray(o)||typeof t!="string")return;const n=(i,r)=>{for(const l of i){if(l?.props?.id===t)return r;for(const[c,a]of Object.entries(l?.props??{})){if(!I(a))continue;const u=z(l.type,c)?{owner:l,slot:c,direct:!0,nested:r!==null,underBox:!1}:r&&{owner:r.owner,slot:r.slot,direct:!1,nested:r.nested,underBox:r.underBox||l.type===F},d=n(a,u);if(d!==void 0)return d}}},s=n(o,null);return s===void 0?null:s}function se(e,t){const o=k(e,t);return o&&o.owner}function ie(e,t){const o=k(e,t);return o&&o.slot}function Ke(e,t){const o=k(e,t);return o&&(o.direct?o.owner:null)}function je(e,t){const o=k(e,t);if(o!==void 0)return o===null?{inCopy:!1,nestedCopy:!1,underBox:!1}:{inCopy:!0,nestedCopy:o.nested,underBox:o.underBox}}function He(e,t,o){if(t?.type!==m)return[];const n=se(e,t.props?.id);if(!n){const l=w(T(t.props))?.fields,c=l?.length?l.map(d=>({...d})):ce(t.props),a=(f().get(m)?.fields??[]).filter(d=>d.everySource&&!c.some(_=>_.key===d.key)),u=[...c,...a];return o?u.filter(d=>(d.kind??"text")===o):u}const s=ie(e,t.props?.id)??void 0,i=Z(t.props,n.type,s),r=i&&A(n,"list",s).find(l=>l.key===i)?.fields||[];return o?r.filter(l=>(l.kind??"text")===o):r}function Ye(e,t){return{[p]:"",[O]:e.map(o=>({...o})),[R]:t.map(o=>({...o}))}}function ce(e,t){const o=e?.[R];if(!Array.isArray(o))return[];const n=o.flatMap(s=>{if(!s||typeof s!="object")return[];const{key:i,label:r,kind:l,multiline:c,alt:a,next:u}=s;if(typeof i!="string"||!i||typeof r!="string")return[];const d=l==="image"||l==="link"||l==="colour"?l:void 0;return[{key:i,label:r,...d?{kind:d}:{},...c===!0?{multiline:!0}:{},...typeof a=="string"&&a?{alt:a}:{},...typeof u=="string"&&u?{next:u}:{}}]});return t?n.filter(s=>(s.kind??"text")===t):n}export{te as BOX_HIDE_WHEN_ROW_EMPTY,R as CARD_LIST_FIELDS,U as CARD_LIST_ITEM_BLOCKS,O as CARD_LIST_ROWS,m as CARD_LIST_TYPE,p as CARD_ROW_FIELD_PROP,$ as CARD_ROW_LINK_PROP,S as CARD_TEMPLATE_BLOCKS,Y as CARD_TEMPLATE_LABEL,L as CARD_TEMPLATE_SLOT,We as ROW_BOUND_PROPS,oe as ROW_PART_BY_WORDS,je as cardCopyPlace,Pe as cardKeyOf,He as cardListFieldsOf,Be as cardListItemSlot,Ye as cardListProps,Z as cardListShows,De as cardRow,Re as cardTemplateBlocks,Ke as cardTemplateCardOwner,ee as cardTemplateField,G as cardTemplateFields,A as cardTemplateFieldsOf,_e as cardTemplateLinesBetween,se as cardTemplateOwner,he as cardTemplateSlot,Ie as cardTemplateSlotLabel,X as cardTemplateSlotNames,ie as cardTemplateSlotOf,Ce as cardTemplateTypedRows,Oe as cardTemplatesNameBlocks,J as defaultListField,Ee as hasCardTemplate,Ae as isCardTemplateBlock,z as isCardTemplateSlot,x as namedRowField,Le as registerCardTemplates,re as rowBound,ne as rowFieldOf,C as rowFieldSpec,le as rowFieldText,Fe as rowFieldWordsArePlain,Ne as rowFilledProps,Me as rowPartByKey,ve as templateBoxIsEmpty,Se as templateOnInsert,q as templateOnRead};
1
+ import{blockSources as F,blockSourceSpec as T,declaredBlockSource as h}from"./block-sources.js";import{slotFieldBlocks as B}from"./slot-field-blocks.js";import{isNodeList as P}from"efficient-easel/data";import{BOX_TYPE as D}from"../document/container-blocks.js";import{globalRegistry as v}from"../global-registry.js";import{nonEmptyString as L}from"../non-empty-string.js";import{accentItalicRuns as W}from"../markup.js";import{withCardsTemplate as M}from"../document/cards-template-on-read.js";import{withCardListTemplate as N}from"../document/blocks/general/CardList/item-seed.js";import{ARTICLE_BODY_BLOCK as K,withArticleBodyTemplate as j}from"../document/article-body-seed.js";import{withLogosTemplate as H}from"../document/blocks/general/Logos/card-seed.js";import{withFaqTemplate as Y}from"../document/blocks/general/FAQ/card-seed.js";import{withFootprintListTemplate as $}from"../document/blocks/general/Footprint/card-seed.js";const O="template",U="Card template",y="CardList",S=["Text","ImageBlock","ButtonBlock","Flex"],p="rowField",m="rowLinkField";function Be(){return{type:"slot",allow:[...S]}}const Q=S.filter(e=>e!=="ButtonBlock"),R="items",A="itemFields";function Le(){return{type:"slot",allow:[...Q]}}const q=[{block:"OrderSummary",typedRows:"rows",linesBetween:!0,fields:[{key:"label",label:"Item"},{key:"meta",label:"Meta line"},{key:"amount",label:"Amount"}]},{block:"FAQ",typedRows:"items",fields:[{key:"question",label:"Question"},{key:"answer",label:"Answer",multiline:!0}],seedOnInsert:e=>Y(e)},{block:"Footprint",typedRows:"offices",fields:[{key:"badge",label:"HQ",plain:!0},{key:"role",label:"Role"},{key:"city",label:"City"},{key:"country",label:"Region · country"},{key:"address",label:"Address"},{key:"phone",label:"Phone"},{key:"linkLabel",label:"Button"},{key:"href",label:"Link",kind:"link"}],seed:e=>$(e)},{block:"Cards",typedRows:"items",fields:[{key:"num",label:"Number"},{key:"since",label:"Corner note"},{key:"label",label:"Label"},{key:"title",label:"Card title"},{key:"value",label:"Value"},{key:"body",label:"Card body",multiline:!0},{key:"href",label:"Link",kind:"link"},{key:"count",label:"Count"},{key:"badge",label:"Highlight badge",everySource:!0,plain:!0}],seed:e=>M("Cards",e)},{block:"ProcessSteps",fields:[{key:"eyebrow",label:"Eyebrow"},{key:"title",label:"Title",mark:"accentItalic"},{key:"copy",label:"Body",multiline:!0},{key:"image",label:"Image",kind:"image",alt:"title"},{key:"tag",label:"Image tag"},{key:"specs",label:"Specs",kind:"list",fields:[{key:"label",label:"Label"},{key:"value",label:"Value"}]}],blocks:[{type:y,label:"Card list"}]},{block:"Logos",fields:[{key:"label",label:"Name"},{key:"kind",label:"Kind"}],seed:e=>H(e)},{block:y,fields:[{key:"badge",label:"Highlight badge",everySource:!0,plain:!0}],typedRows:R,seed:e=>N(e)},{block:K,fields:[{key:"heading",label:"Subhead"},{key:"paragraph",label:"Paragraph",multiline:!0}],seed:e=>j(e)}];function f(){return v("efficient.card-templates",()=>new Map(q.map(e=>[e.block,e])))}function Oe(e){for(const t of e){if(typeof t.block!="string"||!t.block)throw new Error("A card template names no block.");const r=[];for(const o of t.blocks??[]){if(typeof o?.type!="string"||!o.type)throw new Error(`The card template of ${t.block} names an empty block.`);r.some(l=>l.type===o.type)||r.push({type:o.type,label:o.label||o.type})}const n=[];for(const o of t.slots??[]){if(typeof o?.slot!="string"||!o.slot)throw new Error(`The card template of ${t.block} names an empty slot.`);const l=L(o.label),c=Array.isArray(o.fields)?{fields:o.fields.map(a=>({...a}))}:null;n.some(a=>a.slot===o.slot)||n.push({slot:o.slot,...l?{label:l}:null,...c})}const s=n.some(o=>o.fields);if(s&&(t.fields.some(o=>o.everySource)||F(t.block).length))throw new Error(`The card template of ${t.block} declares slot fields, but the block reads a source: slot fields take the place of a source's fields, so a block with slot fields reads no source.`);s?B().add(t.block):B().delete(t.block);const i=L(t.typedRows);f().set(t.block,{block:t.block,...n.length?{slots:n}:{},fields:t.fields.map(o=>({...o})),blocks:r,typedRows:i,...t.seed?{seed:t.seed}:{},...t.seedOnInsert?{seedOnInsert:t.seedOnInsert}:{},...t.linesBetween===!0?{linesBetween:!0}:{}})}}function V(e,t){const r=e?f().get(e)?.seed:void 0;return r?r(t):t}function Se(e,t){const r=z(e),n=(r.length?r:[O]).filter(l=>t[l]===void 0||Array.isArray(t[l])&&t[l].length===0);if(!n.length)return t;const s={...t};for(const l of n)delete s[l];const i=e?f().get(e)?.seedOnInsert:void 0,o=i?i(s):V(e,s);return o===s?t:o}function Re(){for(const e of f().values())if(e.blocks?.length)return!0;return!1}function Ae(e){return f().get(e)?.blocks??[]}function Ce(e){for(const t of f().values())if(t.blocks?.some(r=>r.type===e))return!0;return!1}function _e(e){return typeof e=="string"&&f().get(e)?.typedRows||""}function Ee(e){return typeof e=="string"&&f().get(e)?.linesBetween===!0}function Ie(e){return typeof e=="string"&&f().has(e)}const X=[{slot:O}];function k(e){if(typeof e!="string")return[];const t=f().get(e);return t?t.slots??X:[]}function z(e){return k(e).map(t=>t.slot)}function G(e,t){return k(e).some(r=>r.slot===t)}function Fe(e,t){const r=k(e).find(n=>n.slot===t);return r?r.label??U:null}function x(e,t){return t?k(e).find(r=>r.slot===t)?.fields:void 0}function J(e,t){const r=f().get(e)?.fields??[];return t?r.filter(n=>(n.kind??"text")===t):r}function Z(e,t){if(typeof e!="string")return"";const r=x(e,t);return(r?r.filter(n=>n.kind==="list"):J(e,"list"))[0]?.key??""}function ee(e,t,r){return g(e)||Z(t,r)}function C(e,t,r){const n=typeof e?.type=="string"?e.type:"";if(!n)return[];const s=x(n,r);if(s)return t?s.filter(c=>(c.kind??"text")===t):s;const i=f().get(n)?.fields??[],o=T(h(e?.props))?.fields,l=o?.length?[...o.map(c=>({...c})),...i.filter(c=>c.everySource&&!o.some(a=>a.key===c.key))]:i;return t?l.filter(c=>(c.kind??"text")===t):l}function te(e,t,r,n){if(!e)return null;const s=x(e,n);return s?s.find(i=>i.key===t)??null:r?C(r).find(i=>i.key===t)??null:f().get(e)?.fields.find(i=>i.key===t)??null}function _(e,t){return!e||!t?null:e.fields?.find(r=>r.key===t)??te(e.ownerType,t,e.owner,e.slot)}function Pe(e,t){return _(e,t)?.plain===!0}function g(e,t=p){const r=e?.[t];return typeof r=="string"?r.trim():""}function De(e,t){return e.key||String(t+1)}function ve(e){const t={};if(e&&typeof e=="object"&&!Array.isArray(e))for(const[r,n]of Object.entries(e))typeof n=="string"&&(t[r]=n);return t}const re="hideWhenRowEmpty";function We(e,t){const r=e[re];return!t||!Array.isArray(r)||!r.length?!1:r.every(n=>typeof n!="string"||!t[n]?.trim())}const w={Text:{text:p,href:m},ImageBlock:{src:p,href:m},ButtonBlock:{label:p,href:m},LogoBlock:{alt:p,href:m},Breadcrumb:{currentCrumb:p}},Me=w,oe=new Set(["ButtonBlock.label","LogoBlock.alt"]);function Ne(e,t,r){return ne(e,t,r)&&!oe.has(`${e}.${r}`)}function ne(e,t,r){return le(e,t,r)!==""}function le(e,t,r){const n=w[e]?.[r];return n?g(t,n):""}function E(e,t){return!t||!e?null:e[t]??""}function se(e,t){return E(e,t)?.trim()||void 0}function Ke(e,t,r,n,s,i){if(!r)return t;let o=null;for(const[l,c]of Object.entries(w[e]??{})){const a=g(t,c),u=E(r,a);if(u!==null){if(o??={...t},c===m){o[l]=se(r,a);continue}o[l]=_({ownerType:n,fields:s,slot:i},a)?.mark==="accentItalic"?W(u):u}}return o??t}function b(e,t){const r=e?.data?.content;if(!Array.isArray(r)||typeof t!="string")return;const n=(i,o)=>{for(const l of i){if(l?.props?.id===t)return o;for(const[c,a]of Object.entries(l?.props??{})){if(!P(a))continue;const u=G(l.type,c)?{owner:l,slot:c,direct:!0,nested:o!==null,underBox:!1}:o&&{owner:o.owner,slot:o.slot,direct:!1,nested:o.nested,underBox:o.underBox||l.type===D},d=n(a,u);if(d!==void 0)return d}}},s=n(r,null);return s===void 0?null:s}function ie(e,t){const r=b(e,t);return r&&r.owner}function ce(e,t){const r=b(e,t);return r&&r.slot}function je(e,t){const r=b(e,t);return r&&(r.direct?r.owner:null)}function He(e,t){const r=b(e,t);if(r!==void 0)return r===null?{inCopy:!1,nestedCopy:!1,underBox:!1}:{inCopy:!0,nestedCopy:r.nested,underBox:r.underBox}}function Ye(e,t,r){if(t?.type!==y)return[];const n=ie(e,t.props?.id);if(!n){const l=T(h(t.props))?.fields,c=l?.length?l.map(d=>({...d})):ae(t.props),a=(f().get(y)?.fields??[]).filter(d=>d.everySource&&!c.some(I=>I.key===d.key)),u=[...c,...a];return r?u.filter(d=>(d.kind??"text")===r):u}const s=ce(e,t.props?.id)??void 0,i=ee(t.props,n.type,s),o=i&&C(n,"list",s).find(l=>l.key===i)?.fields||[];return r?o.filter(l=>(l.kind??"text")===r):o}function $e(e,t){return{[p]:"",[R]:e.map(r=>({...r})),[A]:t.map(r=>({...r}))}}function ae(e,t){const r=e?.[A];if(!Array.isArray(r))return[];const n=r.flatMap(s=>{if(!s||typeof s!="object")return[];const{key:i,label:o,kind:l,multiline:c,alt:a,next:u}=s;if(typeof i!="string"||!i||typeof o!="string")return[];const d=l==="image"||l==="link"||l==="colour"?l:void 0;return[{key:i,label:o,...d?{kind:d}:{},...c===!0?{multiline:!0}:{},...typeof a=="string"&&a?{alt:a}:{},...typeof u=="string"&&u?{next:u}:{}}]});return t?n.filter(s=>(s.kind??"text")===t):n}export{re as BOX_HIDE_WHEN_ROW_EMPTY,A as CARD_LIST_FIELDS,Q as CARD_LIST_ITEM_BLOCKS,R as CARD_LIST_ROWS,y as CARD_LIST_TYPE,p as CARD_ROW_FIELD_PROP,m as CARD_ROW_LINK_PROP,S as CARD_TEMPLATE_BLOCKS,U as CARD_TEMPLATE_LABEL,O as CARD_TEMPLATE_SLOT,Me as ROW_BOUND_PROPS,oe as ROW_PART_BY_WORDS,He as cardCopyPlace,De as cardKeyOf,Ye as cardListFieldsOf,Le as cardListItemSlot,$e as cardListProps,ee as cardListShows,ve as cardRow,Ae as cardTemplateBlocks,je as cardTemplateCardOwner,te as cardTemplateField,J as cardTemplateFields,C as cardTemplateFieldsOf,Ee as cardTemplateLinesBetween,ie as cardTemplateOwner,Be as cardTemplateSlot,Fe as cardTemplateSlotLabel,z as cardTemplateSlotNames,ce as cardTemplateSlotOf,_e as cardTemplateTypedRows,Re as cardTemplatesNameBlocks,Z as defaultListField,Ie as hasCardTemplate,Ce as isCardTemplateBlock,G as isCardTemplateSlot,g as namedRowField,Oe as registerCardTemplates,ne as rowBound,le as rowFieldOf,_ as rowFieldSpec,E as rowFieldText,Pe as rowFieldWordsArePlain,Ke as rowFilledProps,se as rowLinkText,Ne as rowPartByKey,We as templateBoxIsEmpty,Se as templateOnInsert,V as templateOnRead};
@@ -75,4 +75,3 @@ export interface ContactRoutingContent {
75
75
  }
76
76
  export declare const OTHER_REASON_ID = "other";
77
77
  export declare const CONTACT_ROUTING_DEFAULTS: ContactRoutingContent;
78
- export declare function slugifyGroupId(s: string | undefined): string;
@@ -1,3 +1,3 @@
1
- import{slugify as r}from"efficient-shell/format";import{mapCoordOfText as o}from"../map-styles.js";const a=["tall","square","wide"],n="tall";function u(e){return a.includes(String(e??""))?String(e):n}const p={sectionNumber:"· Locations",heading:"Our *locations.*",tagline:"Visit us in person — find your nearest studio below.",galleryKicker:"Gallery",galleryHint:"Hover to see in colour · click to jump",mapTheme:"auto"},m=[{photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT · UTC +0",address:`Address line one
1
+ import{mapCoordOfText as o}from"../map-styles.js";const r=["tall","square","wide"],a="tall";function s(e){return r.includes(String(e??""))?String(e):a}const l={sectionNumber:"· Locations",heading:"Our *locations.*",tagline:"Visit us in person — find your nearest studio below.",galleryKicker:"Gallery",galleryHint:"Hover to see in colour · click to jump",mapTheme:"auto"},u=[{photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT · UTC +0",address:`Address line one
2
2
  Address line two`,phone:"+00 000 0000",hours:"Mon–Fri 9:00–18:00",lat:0,lng:0,mapsUrl:""},{photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT · UTC +0",address:`Address line one
3
- Address line two`,phone:"+00 000 0000",hours:"Mon–Fri 9:00–18:00",lat:0,lng:0,mapsUrl:""}],i=/^https?:\/\//i;function c(e){const t=(e.mapsUrl??"").trim();return{photo:"",group:"",groupName:"",name:e.name??"",state:e.state??"",country:e.country??"",timezone:"",address:e.address??"",phone:e.phone??"",hours:e.hours??"",lat:o(e.lat),lng:o(e.lng),mapsUrl:i.test(t)?t:""}}function h(e){const t=String(e??"").split(" · ");return{state:(t[0]??"").trim(),country:(t[1]??"").trim()}}const d="other",g={routingNumber:"02 · Routing",routingTagline:"What can we help you with?",groups:[{id:"fitment",eyebrow:"A · Label",title:"Group one",copy:"Short description of this routing group.",response:"< 48h"},{id:"trade",eyebrow:"B · Label",title:"Group two",copy:"Short description of this routing group.",response:"< 24h"},{id:"press",eyebrow:"C · Label",title:"Group three",copy:"Short description of this routing group.",response:"< 48h"},{id:"order",eyebrow:"D · Label",title:"Group four",copy:"Short description of this routing group.",response:"< 24h"}],formNumber:"03 · Message",formHeading:"Send *a note.*",metaLines:["Encrypted in transit","Stored 12 months"],showOther:!0,otherLabel:"Other",otherNoteTitle:"No matching team",otherNoteBody:"Tell us what you need in the message field below — we'll route it to whoever can help.",buttonText:"Send Message →",consent:"By submitting, you agree to our privacy policy. We never share contact details with third parties.",channels:[{label:"Team one",value:"team-one@email.com",href:"mailto:team-one@email.com",sub:"Detail · Detail",groupId:"fitment"},{label:"Team two",value:"team-two@email.com",href:"mailto:team-two@email.com",sub:"Detail · Detail",groupId:"trade"},{label:"Team three",value:"team-three@email.com",href:"mailto:team-three@email.com",sub:"Detail · Detail",groupId:"press"},{label:"Team four",value:"team-four@email.com",href:"mailto:team-four@email.com",sub:"Detail · Detail",groupId:"order"},{label:"Phone",value:"+1 (000) 000-0000",href:"tel:+10000000000",sub:"Mon–Fri · 9:00–18:00"}]};function y(e){return r(e)}export{m as CONTACT_LOCATIONS_CARDS_PLACEHOLDER,p as CONTACT_LOCATIONS_DEFAULTS,g as CONTACT_ROUTING_DEFAULTS,a as LOCATION_TILE_SHAPES,n as LOCATION_TILE_SHAPE_DEFAULT,d as OTHER_REASON_ID,c as contactLocationCardOfRow,u as parseLocationTileShape,y as slugifyGroupId,h as splitLegacyRegion};
3
+ Address line two`,phone:"+00 000 0000",hours:"Mon–Fri 9:00–18:00",lat:0,lng:0,mapsUrl:""}],n=/^https?:\/\//i;function m(e){const t=(e.mapsUrl??"").trim();return{photo:"",group:"",groupName:"",name:e.name??"",state:e.state??"",country:e.country??"",timezone:"",address:e.address??"",phone:e.phone??"",hours:e.hours??"",lat:o(e.lat),lng:o(e.lng),mapsUrl:n.test(t)?t:""}}function p(e){const t=String(e??"").split(" · ");return{state:(t[0]??"").trim(),country:(t[1]??"").trim()}}const h="other",c={routingNumber:"02 · Routing",routingTagline:"What can we help you with?",groups:[{id:"fitment",eyebrow:"A · Label",title:"Group one",copy:"Short description of this routing group.",response:"< 48h"},{id:"trade",eyebrow:"B · Label",title:"Group two",copy:"Short description of this routing group.",response:"< 24h"},{id:"press",eyebrow:"C · Label",title:"Group three",copy:"Short description of this routing group.",response:"< 48h"},{id:"order",eyebrow:"D · Label",title:"Group four",copy:"Short description of this routing group.",response:"< 24h"}],formNumber:"03 · Message",formHeading:"Send *a note.*",metaLines:["Encrypted in transit","Stored 12 months"],showOther:!0,otherLabel:"Other",otherNoteTitle:"No matching team",otherNoteBody:"Tell us what you need in the message field below — we'll route it to whoever can help.",buttonText:"Send Message →",consent:"By submitting, you agree to our privacy policy. We never share contact details with third parties.",channels:[{label:"Team one",value:"team-one@email.com",href:"mailto:team-one@email.com",sub:"Detail · Detail",groupId:"fitment"},{label:"Team two",value:"team-two@email.com",href:"mailto:team-two@email.com",sub:"Detail · Detail",groupId:"trade"},{label:"Team three",value:"team-three@email.com",href:"mailto:team-three@email.com",sub:"Detail · Detail",groupId:"press"},{label:"Team four",value:"team-four@email.com",href:"mailto:team-four@email.com",sub:"Detail · Detail",groupId:"order"},{label:"Phone",value:"+1 (000) 000-0000",href:"tel:+10000000000",sub:"Mon–Fri · 9:00–18:00"}]};export{u as CONTACT_LOCATIONS_CARDS_PLACEHOLDER,l as CONTACT_LOCATIONS_DEFAULTS,c as CONTACT_ROUTING_DEFAULTS,r as LOCATION_TILE_SHAPES,a as LOCATION_TILE_SHAPE_DEFAULT,h as OTHER_REASON_ID,m as contactLocationCardOfRow,s as parseLocationTileShape,p as splitLegacyRegion};
@@ -0,0 +1 @@
1
+ export declare function cssLengthOf(value: number, unit: unknown): string;
@@ -0,0 +1 @@
1
+ import{isLengthUnit as o,lengthOf as r}from"efficient-easel/screen/lib/content/length-units";function p(e,n){const t=r(e,o(n)?n:"px");return typeof t=="number"?`${t}px`:t}export{p as cssLengthOf};
@@ -40,7 +40,22 @@ export declare const SITE_GUTTER_NARROW: {
40
40
  export declare const SITE_GUTTER_SUBSTITUTIONS: ReadonlyArray<readonly [string, string]>;
41
41
  export declare function asMainGutters(html: string): string;
42
42
  export declare const SITE_COLUMN_NARROW = "max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]";
43
- export declare const SITE_COLUMN_EDGE_NARROW = "max-view-wide:[--sf-edge-g:min(20px,var(--sf-box-g,var(--sf-site-gutter,40px)))]";
43
+ export declare function siteSideRoom<S extends SideSpace = "box">(sideSpace?: S): (typeof SIDE_ROOMS)[S];
44
+ type SideSpace = "box" | "site";
45
+ declare const SIDE_ROOMS: {
46
+ readonly box: {
47
+ readonly className: "[--sf-pad-site:var(--sf-box-g,var(--sf-site-gutter,40px))] max-[960px]:[--sf-pad-site:min(24px,var(--sf-box-g,var(--sf-site-gutter,40px)))]";
48
+ readonly value: "var(--sf-pad-site,var(--sf-box-g,var(--sf-site-gutter,40px)))";
49
+ readonly edge: "[--sf-edge-g:var(--sf-pad-site)]";
50
+ readonly frame: "max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]";
51
+ };
52
+ readonly site: {
53
+ readonly className: "[--sf-pad-site:var(--sf-box-g,var(--sf-site-gutter,40px))] max-view-wide:[--sf-pad-site:min(20px,var(--sf-box-g,var(--sf-site-gutter,40px)))]";
54
+ readonly value: "var(--sf-pad-site,var(--sf-box-g,var(--sf-site-gutter,40px)))";
55
+ readonly edge: "[--sf-edge-g:var(--sf-pad-site)]";
56
+ readonly frame: "max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]";
57
+ };
58
+ };
44
59
  export declare const SITE_COLUMN = "mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]";
45
60
  export declare const BOX_HOLDS_NO_GUTTER_CLASS = "[--sf-box-g:var(--sf-site-gutter,40px)] [&>*]:[--sf-site-gutter:0px]";
46
61
  export declare function withoutBoxHoldsNoGutter(html: string): string;
@@ -76,3 +91,4 @@ export declare const PAGE_WIDTH_ATTR = "data-page-width";
76
91
  export declare function pageWidthMarker(answer?: unknown): "full" | null;
77
92
  export declare function chromeWidthStyle(own?: WidthAnswer | null): CSSProperties | null;
78
93
  export declare function resolveChromeWidth(stored?: unknown): WidthAnswer | undefined;
94
+ export {};
@@ -1 +1 @@
1
- const r={min:1e3,max:2e3,step:50,default:1600};function a(t){return{maxWidth:t,marginInline:"auto",width:"100%"}}function N(t,e){if(t!==!1)return null;const i=typeof e=="number"?e:r.default;return a(i)}const m="--sf-site-width",p=`var(${m},${r.default}px)`,b="100vw",w=`max-w-[${p}]`,L=`max-w-[${r.default}px]`;function _(t){return typeof t!="number"||!Number.isFinite(t)?r.default:Math.round(Math.min(Math.max(t,r.min),r.max))}function U(t){const e=_(t);return e===r.default?{}:{[m]:`${e}px`}}const x={min:0,max:80,step:4,default:40},c="--sf-site-gutter",s={min:0,max:24,step:4},C="--sf-site-gutter-phone",A="max-view-tablet:[--sf-site-gutter:var(--sf-site-gutter-phone)]!",n=`var(${c},${x.default}px)`,$=`px-[${n}]`,D=["px-10","px-[60px]"],o={md:`min(24px,${n})`,sm:`min(20px,${n})`,frame:`min(24px,${n})`,tabs:`min(16px,${n})`},h=[[`max-view-desktop:px-[${o.md}]`,"max-view-desktop:px-6"],[`max-view-desktop:px-[${o.tabs}]`,"max-view-desktop:px-4"],[`max-[960px]:px-[${o.frame}]`,"max-[960px]:px-6"],[`max-[900px]:px-[${o.md}]`,"max-[900px]:px-6"],[`max-view-wide:px-[${o.md}]`,"max-view-wide:px-6"],[`max-view-tablet:px-[${o.sm}]`,"max-view-tablet:px-5"],[`max-view-wide:px-[${o.sm}]`,"max-view-wide:px-5"],[`max-[640px]:px-[${o.sm}]`,"max-[640px]:px-5"],[`view-wide:px-[${n}]`,"view-wide:px-10"],[`max-view-tablet:px-[min(24px,${n})]`,"max-view-tablet:px-6"],[`max-view-wide:-mx-[min(20px,${n})]`,"max-view-wide:-mx-5"],[`max-view-tablet:-mx-[min(20px,${n})]`,"max-view-tablet:-mx-5"],[`-mx-[${n}]`,"-mx-10"],[$,"px-10"]];function W(t){return h.reduce((e,[i,S])=>e.split(i).join(S),t)}const I="max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]",k="max-view-wide:[--sf-edge-g:min(20px,var(--sf-box-g,var(--sf-site-gutter,40px)))]",B=`mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] ${I}`,f="[--sf-box-g:var(--sf-site-gutter,40px)] [&>*]:[--sf-site-gutter:0px]";function V(t){const e=f.replace(/&/g,"&amp;").replace(/>/g,"&gt;");return t.split(` ${e}`).join("").split(` ${f}`).join("")}const y="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]";function l(t){return typeof t!="number"||!Number.isFinite(t)?x.default:Math.round(Math.min(Math.max(t,x.min),x.max))}function F(t){const e=l(t);return e===x.default?{}:{[c]:`${e}px`}}function E(t){return typeof t!="number"||!Number.isFinite(t)?null:Math.round(Math.min(Math.max(t,s.min),s.max))}function z(t){return typeof t=="number"&&Number.isFinite(t)?_(t):null}function j(t){const e=E(t);return e===null?{}:{[C]:`${e}px`}}function K(t){return E(t)===null?"":A}function X(t){return Math.min(s.max,l(t))}function O(t=0){return`calc(${p}/2 - ${n}*2 - ${t}px)`}function q(t=0){return`max-w-[${O(t).replace(/ /g,"_")}]`}const T=p,J=`max-w-[${T}]`,Q=`max-w-[min(var(--sf-page-cap,${r.default}px),${r.default}px)]`,d="--sf-hero-cap",H=`var(${d},none)`,Y=`max-w-[${H}]`,v="--sf-hero-bleed-m",P="--sf-hero-bleed-w",g="--sf-hero-chrome-x",G="--sf-hero-chrome-cap";function Z(t){return t===!0?{[d]:T,[v]:"auto",[P]:"100%",[g]:"24px",[G]:"none"}:{}}const u=`calc(${p} - ${n}*2)`,tt=`max-w-[${u.replace(/ /g,"_")}]`,et=w;function nt(t){return t!==!1?null:a(R)}const M="--sf-chrome-cap",R=`var(${M},${u})`,rt="data-page-width";function ot(t){return t==="full"?"full":null}function xt(t){return t==="full"?null:a(t==="content"?u:R)}function pt(t){if(t==="full")return"full";if(t==="content")return"content"}export{f as BOX_HOLDS_NO_GUTTER_CLASS,R as CHROME_CAP_READ,M as CHROME_CAP_VAR,u as CHROME_WIDTH_CAP,tt as CHROME_WIDTH_CAP_CLASS,y as EDITORIAL_COLUMN,b as FULL_SECTION_WIDTH,H as HERO_BACKGROUND_CAP,Y as HERO_BACKGROUND_CAP_CLASS,d as HERO_BACKGROUND_VAR,v as HERO_BLEED_MARGIN_VAR,P as HERO_BLEED_WIDTH_VAR,T as HERO_CAP,J as HERO_CAP_CLASS,G as HERO_CHROME_CAP_VAR,g as HERO_CHROME_INSET_VAR,r as PAGE_WIDTH,rt as PAGE_WIDTH_ATTR,et as PRE_CHROME_WIDTH_CAP_CLASS,Q as PRE_HERO_CAP_CLASS,D as PRE_SITE_GUTTER_CLASSES,L as PRE_SITE_WIDTH_CAP_CLASS,B as SITE_COLUMN,k as SITE_COLUMN_EDGE_NARROW,I as SITE_COLUMN_NARROW,x as SITE_GUTTER,n as SITE_GUTTER_CAP,$ as SITE_GUTTER_CLASS,o as SITE_GUTTER_NARROW,s as SITE_GUTTER_PHONE,A as SITE_GUTTER_PHONE_CLASS,C as SITE_GUTTER_PHONE_VAR,h as SITE_GUTTER_SUBSTITUTIONS,c as SITE_GUTTER_VAR,p as SITE_WIDTH_CAP,w as SITE_WIDTH_CAP_CLASS,m as SITE_WIDTH_VAR,W as asMainGutters,a as centredCap,xt as chromeWidthStyle,Z as heroBackgroundTokens,z as normalizeSectionContentMax,l as normalizeSiteGutter,E as normalizeSiteGutterPhone,_ as normalizeSiteWidth,ot as pageWidthMarker,N as pageWidthStyle,pt as resolveChromeWidth,K as siteGutterPhoneClass,X as siteGutterPhoneFollows,j as siteGutterPhoneTokens,F as siteGutterTokens,O as siteHalfColumnCap,q as siteHalfColumnCapClass,nt as siteWidthCapStyle,U as siteWidthTokens,V as withoutBoxHoldsNoGutter};
1
+ const n={min:1e3,max:2e3,step:50,default:1600};function a(t){return{maxWidth:t,marginInline:"auto",width:"100%"}}function L(t,e){if(t!==!1)return null;const i=typeof e=="number"?e:n.default;return a(i)}const m="--sf-site-width",p=`var(${m},${n.default}px)`,U="100vw",v=`max-w-[${p}]`,W=`max-w-[${n.default}px]`;function f(t){return typeof t!="number"||!Number.isFinite(t)?n.default:Math.round(Math.min(Math.max(t,n.min),n.max))}function k(t){const e=f(t);return e===n.default?{}:{[m]:`${e}px`}}const o={min:0,max:80,step:4,default:40},c="--sf-site-gutter",s={min:0,max:24,step:4},$="--sf-site-gutter-phone",h="max-view-tablet:[--sf-site-gutter:var(--sf-site-gutter-phone)]!",r=`var(${c},${o.default}px)`,O=`px-[${r}]`,V=["px-10","px-[60px]"],x={md:`min(24px,${r})`,sm:`min(20px,${r})`,frame:`min(24px,${r})`,tabs:`min(16px,${r})`},g=[[`max-view-desktop:px-[${x.md}]`,"max-view-desktop:px-6"],[`max-view-desktop:px-[${x.tabs}]`,"max-view-desktop:px-4"],[`max-[960px]:px-[${x.frame}]`,"max-[960px]:px-6"],[`max-[900px]:px-[${x.md}]`,"max-[900px]:px-6"],[`max-view-wide:px-[${x.md}]`,"max-view-wide:px-6"],[`max-view-tablet:px-[${x.sm}]`,"max-view-tablet:px-5"],[`max-view-wide:px-[${x.sm}]`,"max-view-wide:px-5"],[`max-[640px]:px-[${x.sm}]`,"max-[640px]:px-5"],[`view-wide:px-[${r}]`,"view-wide:px-10"],[`max-view-tablet:px-[min(24px,${r})]`,"max-view-tablet:px-6"],[`max-view-wide:-mx-[min(20px,${r})]`,"max-view-wide:-mx-5"],[`max-view-tablet:-mx-[min(20px,${r})]`,"max-view-tablet:-mx-5"],[`-mx-[${r}]`,"-mx-10"],[O,"px-10"]];function B(t){return g.reduce((e,[i,A])=>e.split(i).join(A),t)}const _="max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]";function y(t){return I[t??"box"]}const l="var(--sf-pad-site,var(--sf-box-g,var(--sf-site-gutter,40px)))",E="[--sf-edge-g:var(--sf-pad-site)]",I={box:{className:"[--sf-pad-site:var(--sf-box-g,var(--sf-site-gutter,40px))] max-[960px]:[--sf-pad-site:min(24px,var(--sf-box-g,var(--sf-site-gutter,40px)))]",value:l,edge:E,frame:"max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]"},site:{className:"[--sf-pad-site:var(--sf-box-g,var(--sf-site-gutter,40px))] max-view-wide:[--sf-pad-site:min(20px,var(--sf-box-g,var(--sf-site-gutter,40px)))]",value:l,edge:E,frame:_}},F=`mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] ${_}`,d="[--sf-box-g:var(--sf-site-gutter,40px)] [&>*]:[--sf-site-gutter:0px]";function z(t){const e=d.replace(/&/g,"&amp;").replace(/>/g,"&gt;");return t.split(` ${e}`).join("").split(` ${d}`).join("")}const j="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]";function T(t){return typeof t!="number"||!Number.isFinite(t)?o.default:Math.round(Math.min(Math.max(t,o.min),o.max))}function K(t){const e=T(t);return e===o.default?{}:{[c]:`${e}px`}}function S(t){return typeof t!="number"||!Number.isFinite(t)?null:Math.round(Math.min(Math.max(t,s.min),s.max))}function X(t){return typeof t=="number"&&Number.isFinite(t)?f(t):null}function q(t){const e=S(t);return e===null?{}:{[$]:`${e}px`}}function J(t){return S(t)===null?"":h}function Q(t){return Math.min(s.max,T(t))}function H(t=0){return`calc(${p}/2 - ${r}*2 - ${t}px)`}function Y(t=0){return`max-w-[${H(t).replace(/ /g,"_")}]`}const R=p,Z=`max-w-[${R}]`,tt=`max-w-[min(var(--sf-page-cap,${n.default}px),${n.default}px)]`,w="--sf-hero-cap",b=`var(${w},none)`,et=`max-w-[${b}]`,P="--sf-hero-bleed-m",M="--sf-hero-bleed-w",G="--sf-hero-chrome-x",D="--sf-hero-chrome-cap";function rt(t){return t===!0?{[w]:R,[P]:"auto",[M]:"100%",[G]:"24px",[D]:"none"}:{}}const u=`calc(${p} - ${r}*2)`,nt=`max-w-[${u.replace(/ /g,"_")}]`,xt=v;function ot(t){return t!==!1?null:a(C)}const N="--sf-chrome-cap",C=`var(${N},${u})`,pt="data-page-width";function it(t){return t==="full"?"full":null}function at(t){return t==="full"?null:a(t==="content"?u:C)}function st(t){if(t==="full")return"full";if(t==="content")return"content"}export{d as BOX_HOLDS_NO_GUTTER_CLASS,C as CHROME_CAP_READ,N as CHROME_CAP_VAR,u as CHROME_WIDTH_CAP,nt as CHROME_WIDTH_CAP_CLASS,j as EDITORIAL_COLUMN,U as FULL_SECTION_WIDTH,b as HERO_BACKGROUND_CAP,et as HERO_BACKGROUND_CAP_CLASS,w as HERO_BACKGROUND_VAR,P as HERO_BLEED_MARGIN_VAR,M as HERO_BLEED_WIDTH_VAR,R as HERO_CAP,Z as HERO_CAP_CLASS,D as HERO_CHROME_CAP_VAR,G as HERO_CHROME_INSET_VAR,n as PAGE_WIDTH,pt as PAGE_WIDTH_ATTR,xt as PRE_CHROME_WIDTH_CAP_CLASS,tt as PRE_HERO_CAP_CLASS,V as PRE_SITE_GUTTER_CLASSES,W as PRE_SITE_WIDTH_CAP_CLASS,F as SITE_COLUMN,_ as SITE_COLUMN_NARROW,o as SITE_GUTTER,r as SITE_GUTTER_CAP,O as SITE_GUTTER_CLASS,x as SITE_GUTTER_NARROW,s as SITE_GUTTER_PHONE,h as SITE_GUTTER_PHONE_CLASS,$ as SITE_GUTTER_PHONE_VAR,g as SITE_GUTTER_SUBSTITUTIONS,c as SITE_GUTTER_VAR,p as SITE_WIDTH_CAP,v as SITE_WIDTH_CAP_CLASS,m as SITE_WIDTH_VAR,B as asMainGutters,a as centredCap,at as chromeWidthStyle,rt as heroBackgroundTokens,X as normalizeSectionContentMax,T as normalizeSiteGutter,S as normalizeSiteGutterPhone,f as normalizeSiteWidth,it as pageWidthMarker,L as pageWidthStyle,st as resolveChromeWidth,J as siteGutterPhoneClass,Q as siteGutterPhoneFollows,q as siteGutterPhoneTokens,K as siteGutterTokens,H as siteHalfColumnCap,Y as siteHalfColumnCapClass,y as siteSideRoom,ot as siteWidthCapStyle,k as siteWidthTokens,z as withoutBoxHoldsNoGutter};
@@ -14,11 +14,35 @@ export declare const SECTION_PIN_VARS: {
14
14
  readonly position: "--sf-pin-position";
15
15
  readonly on: "--sf-pin-on";
16
16
  readonly length: "--sf-pin-length";
17
+ readonly stick: "--sf-pin-stick";
18
+ readonly trackPosition: "--sf-pin-track-position";
17
19
  readonly header: "--sf-pin-header";
18
20
  };
19
21
  export declare const SECTION_PIN_SCREENS_KEY = "stickTopScreens";
20
22
  export declare const SECTION_PIN_SCREENS_KEYS: readonly string[];
21
23
  export declare const SECTION_PIN_SCREENS_LABEL = "Screens";
24
+ export declare const SECTION_PIN_STOP_KEY = "stickTopStop";
25
+ export declare const SECTION_PIN_STOP_SCREEN = "screen";
26
+ export declare const SECTION_PIN_STOP_LABEL = "Pin stops at";
27
+ export declare const SECTION_PIN_STOP_OPTIONS: readonly [{
28
+ readonly value: "header";
29
+ readonly label: "Under the header";
30
+ }, {
31
+ readonly value: "screen";
32
+ readonly label: "Screen top";
33
+ }];
34
+ export type SectionPinStop = (typeof SECTION_PIN_STOP_OPTIONS)[number]["value"];
35
+ export declare const SECTION_PIN_STOP_DEFAULT: SectionPinStop;
36
+ export declare const SECTION_PIN_STOP_HINT = "Under the header: the section stops below the site header. Screen top: it stops at the top edge of the screen, under a see-through header.";
37
+ export declare function sectionPinStopOf(value: unknown): SectionPinStop;
38
+ export declare function sectionPinStopWrite(next: unknown): typeof SECTION_PIN_STOP_SCREEN | undefined;
39
+ export declare const SECTION_PIN_ABOVE_KEY = "stickAbove";
40
+ export declare const SECTION_PIN_ABOVE_LABEL = "Stays above";
41
+ export declare const SECTION_PIN_ABOVE_HINT = "On: the pinned box stays on top, and the sections after it scroll under it.";
42
+ export declare function sectionPinAbove(props: {
43
+ stickAbove?: unknown;
44
+ }): boolean;
45
+ export declare const SECTION_PIN_KEYS: readonly string[];
22
46
  export declare const PIN_AT_SCREEN_TOP: ReadonlySet<string>;
23
47
  export declare const SECTION_STICK_EXCLUDED: ReadonlySet<string>;
24
48
  export type SectionStickProps = {
@@ -31,8 +55,11 @@ export type SectionStickProps = {
31
55
  stickTopScreens?: unknown;
32
56
  stickTopScreensTablet?: unknown;
33
57
  stickTopScreensPhone?: unknown;
58
+ stickTopStop?: unknown;
59
+ stickAbove?: unknown;
34
60
  sticky?: unknown;
35
61
  };
62
+ export declare const SOME_VIEW_PINS: ShowWhenRule;
36
63
  export declare const INTRO_OLD_STICKY_PINS: ShowWhenRule;
37
64
  export declare function hasTabletStick(props: SectionStickProps): boolean;
38
65
  export declare function hasPhoneStick(props: SectionStickProps): boolean;
@@ -54,6 +81,7 @@ export declare function resolveSectionStick(props: SectionStickProps, opts?: {
54
81
  export declare function sectionPinAttrs(props: SectionStickProps, opts?: {
55
82
  atScreenTop?: boolean;
56
83
  track?: boolean;
84
+ above?: boolean;
57
85
  }): {
58
86
  attrs: Record<string, string>;
59
87
  style: CSSProperties;
@@ -1 +1 @@
1
- import{pinAttrs as _,readPin as h}from"efficient-shell/format";import{finiteNumber as E}from"../finite-number.js";import{viewVarSplit as I}from"./view-var-split.js";const g="Stick to top",f={min:0,max:200,step:4,fallback:0},A="Pin while scrolling",L="Scroll",o={distance:"--sf-pin-distance",position:"--sf-pin-position",on:"--sf-pin-on",length:"--sf-pin-length",header:"--sf-pin-header"},N="stickTopScreens",w=[N,"stickTopScreensTablet","stickTopScreensPhone"],K="Screens",R=new Set(["IntroBleed"]),$=new Set(["CategoryBar","DocTabs","Contents"]);function x(e){return typeof e.stickTop=="boolean"?e.stickTop:e.sticky!==!1}const d=e=>h(!0,e).length,B={all:[{not:{field:"stickTop",in:[!0,!1]}},{not:{field:"sticky",is:!1}}]};function b(e){const s=E(e)??f.fallback;return Math.min(f.max,Math.max(f.min,Math.round(s)))}function C(e){return typeof e.stickTopTablet=="boolean"}function P(e){return typeof e.stickTopPhone=="boolean"}function y(e,s={}){const t=s.intro?x(e):e.stickTop===!0,T=b(e.stickTopDistance),k=d(e.stickTopScreens),i=C(e),c=i?e.stickTopTablet===!0:t,p=i?b(e.stickTopDistanceTablet):T,r=i?d(e.stickTopScreensTablet):k,a=P(e),n=a?e.stickTopPhone===!0:c,l=a?b(e.stickTopDistancePhone):p,S=a?d(e.stickTopScreensPhone):r;return{desktop:t,desktopDistance:T,desktopScreens:k,tablet:c,tabletDistance:p,tabletScreens:r,ownTablet:i,phone:n,phoneDistance:l,phoneScreens:S,ownPhone:a}}function V(e,s={}){const t=y(e,{intro:s.atScreenTop});if(!t.desktop&&!t.tablet&&!t.phone)return null;const T=s.atScreenTop===!0&&typeof e.stickTop!="boolean",k=t.desktop&&t.desktopScreens>0||t.tablet&&t.tabletScreens>0||t.phone&&t.phoneScreens>0,i=s.track===!0&&!T&&k,c=(n,l,S,u)=>I({tabletClass:"",tabletVar:`${n}-tablet`,phoneClass:"",phoneVar:`${n}-phone`},l,S,u).style,p={...s.atScreenTop?{[o.header]:"0px"}:{},[o.distance]:`${t.desktopDistance}px`,...c(o.distance,`${t.desktopDistance}px`,`${t.tabletDistance}px`,`${t.phoneDistance}px`)};if(i){const n=S=>S?"1":"0",l={...p,...t.desktop?{}:{[o.on]:"0"},...c(o.on,n(t.desktop),n(t.tablet),n(t.phone)),[o.length]:String(t.desktopScreens),...c(o.length,String(t.desktopScreens),String(t.tabletScreens),String(t.phoneScreens))};return{attrs:_(h(!0),"track").attrs,style:l}}const r=n=>n?"sticky":"static",a={...p,...t.desktop?{}:{[o.position]:"static"},...c(o.position,r(t.desktop),r(t.tablet),r(t.phone))};return{attrs:_(h(!0),"stick").attrs,style:a}}export{B as INTRO_OLD_STICKY_PINS,R as PIN_AT_SCREEN_TOP,L as SECTION_PIN_GROUP,A as SECTION_PIN_LABEL,N as SECTION_PIN_SCREENS_KEY,w as SECTION_PIN_SCREENS_KEYS,K as SECTION_PIN_SCREENS_LABEL,o as SECTION_PIN_VARS,f as SECTION_STICK_DISTANCE,$ as SECTION_STICK_EXCLUDED,g as SECTION_STICK_LABEL,P as hasPhoneStick,C as hasTabletStick,y as resolveSectionStick,V as sectionPinAttrs};
1
+ import{PIN_STICK_VAR as u,PIN_TRACK_POSITION_VAR as O,pinAttrs as d,pinStickVars as f,readPin as h}from"efficient-shell/format";import{finiteNumber as x}from"../finite-number.js";import{viewVarSplit as C}from"./view-var-split.js";const M="Stick to top",N={min:0,max:200,step:4,fallback:0},U="Pin while scrolling",j="Scroll",c={distance:"--sf-pin-distance",position:"--sf-pin-position",on:"--sf-pin-on",length:"--sf-pin-length",stick:"--sf-pin-stick",trackPosition:"--sf-pin-track-position",header:"--sf-pin-header"},A="stickTopScreens",D=[A,"stickTopScreensTablet","stickTopScreensPhone"],H="Screens",y="stickTopStop",k="screen",W="Pin stops at",F=[{value:"header",label:"Under the header"},{value:k,label:"Screen top"}],G="header",X="Under the header: the section stops below the site header. Screen top: it stops at the top edge of the screen, under a see-through header.";function m(t){return t===k?k:"header"}function q(t){return t===k?k:void 0}const g="stickAbove",z="Stays above",J="On: the pinned box stays on top, and the sections after it scroll under it.";function L(t){return t.stickAbove===!0}const Q=["stickTop","stickTopDistance","stickTopTablet","stickTopDistanceTablet","stickTopPhone","stickTopDistancePhone",...D,y,g],Z=new Set(["IntroBleed"]),tt=new Set(["CategoryBar","DocTabs","Contents"]);function K(t){return typeof t.stickTop=="boolean"?t.stickTop:t.sticky!==!1}const P=t=>h(!0,t).length,et={any:["stickTop","stickTopTablet","stickTopPhone"].map(t=>({field:t,is:!0}))},nt={all:[{not:{field:"stickTop",in:[!0,!1]}},{not:{field:"sticky",is:!1}}]};function E(t){const o=x(t)??N.fallback;return Math.min(N.max,Math.max(N.min,Math.round(o)))}function v(t){return typeof t.stickTopTablet=="boolean"}function R(t){return typeof t.stickTopPhone=="boolean"}function V(t,o={}){const e=o.intro?K(t):t.stickTop===!0,p=E(t.stickTopDistance),S=P(t.stickTopScreens),s=v(t),T=s?t.stickTopTablet===!0:e,i=s?E(t.stickTopDistanceTablet):p,a=s?P(t.stickTopScreensTablet):S,n=R(t),_=n?t.stickTopPhone===!0:T,r=n?E(t.stickTopDistancePhone):i,l=n?P(t.stickTopScreensPhone):a;return{desktop:e,desktopDistance:p,desktopScreens:S,tablet:T,tabletDistance:i,tabletScreens:a,ownTablet:s,phone:_,phoneDistance:r,phoneScreens:l,ownPhone:n}}function ot(t,o={}){const e=V(t,{intro:o.atScreenTop});if(!e.desktop&&!e.tablet&&!e.phone)return null;const p=o.atScreenTop===!0&&typeof t.stickTop!="boolean",S=e.desktop&&e.desktopScreens>0||e.tablet&&e.tabletScreens>0||e.phone&&e.phoneScreens>0,s=o.above===!0&&L(t),T=o.track===!0&&!p&&S&&!s,i=(r,l,I,b)=>C({tabletClass:"",tabletVar:`${r}-tablet`,phoneClass:"",phoneVar:`${r}-phone`},l,I,b).style,a={...o.atScreenTop||m(t.stickTopStop)===k?{[c.header]:"0px"}:{},[c.distance]:`${e.desktopDistance}px`,...i(c.distance,`${e.desktopDistance}px`,`${e.tabletDistance}px`,`${e.phoneDistance}px`)};if(T){const r=I=>I?"1":"0",l={...a,...e.desktop?{}:{[c.on]:"0"},...i(c.on,r(e.desktop),r(e.tablet),r(e.phone)),[c.length]:String(e.desktopScreens),...i(c.length,String(e.desktopScreens),String(e.tabletScreens),String(e.phoneScreens)),...B(e.desktop&&e.desktopScreens===0,e.tablet&&e.tabletScreens===0,e.phone&&e.phoneScreens===0,i)};return{attrs:d(h(!0),"track").attrs,style:l}}const n=r=>r?"sticky":"static",_={...a,...e.desktop?{}:{[c.position]:"static"},...i(c.position,n(e.desktop),n(e.tablet),n(e.phone))};return{attrs:d(h(!0),"stick",s?{above:s}:{}).attrs,style:_}}function B(t,o,e,p){const S=[[c.stick,u],[c.trackPosition,O]],[s,T,i]=[t,o,e].map(f);return Object.fromEntries(S.flatMap(([a,n])=>[...t?[[a,s[n]]]:[],...Object.entries(p(a,s[n],T[n],i[n]))]))}export{nt as INTRO_OLD_STICKY_PINS,Z as PIN_AT_SCREEN_TOP,J as SECTION_PIN_ABOVE_HINT,g as SECTION_PIN_ABOVE_KEY,z as SECTION_PIN_ABOVE_LABEL,j as SECTION_PIN_GROUP,Q as SECTION_PIN_KEYS,U as SECTION_PIN_LABEL,A as SECTION_PIN_SCREENS_KEY,D as SECTION_PIN_SCREENS_KEYS,H as SECTION_PIN_SCREENS_LABEL,G as SECTION_PIN_STOP_DEFAULT,X as SECTION_PIN_STOP_HINT,y as SECTION_PIN_STOP_KEY,W as SECTION_PIN_STOP_LABEL,F as SECTION_PIN_STOP_OPTIONS,k as SECTION_PIN_STOP_SCREEN,c as SECTION_PIN_VARS,N as SECTION_STICK_DISTANCE,tt as SECTION_STICK_EXCLUDED,M as SECTION_STICK_LABEL,et as SOME_VIEW_PINS,R as hasPhoneStick,v as hasTabletStick,V as resolveSectionStick,L as sectionPinAbove,ot as sectionPinAttrs,m as sectionPinStopOf,q as sectionPinStopWrite};
@@ -1,2 +1,7 @@
1
1
  import type { BlockMeta } from "../../block-types.js";
2
+ export declare const BANNER_PH: {
3
+ eyebrow: string;
4
+ title: string;
5
+ body: string;
6
+ };
2
7
  export declare const BannerMeta: BlockMeta;
@@ -1 +1 @@
1
- const e={label:"Banner",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",ctaText:"",ctaHref:"",contained:!0,overlay:60}};export{e as BannerMeta};
1
+ const e={eyebrow:"Limited release",title:"Banner headline",body:"A line or two of supporting copy."},t={label:"Banner",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",ctaText:"",ctaHref:"",contained:!0,overlay:60}};export{e as BANNER_PH,t as BannerMeta};
@@ -3,3 +3,5 @@ export declare const footprintCardSeed: () => BlockSeed;
3
3
  export declare const footprintSideCardSeed: () => BlockSeed;
4
4
  export declare function isUntouchedFootprintSideRow(props: Record<string, unknown>): boolean;
5
5
  export declare function withFootprintSideTemplate(props: Record<string, unknown>): Record<string, unknown>;
6
+ export declare const footprintDealerCardSeed: (tile: boolean) => BlockSeed;
7
+ export declare function withFootprintListTemplate(props: Record<string, unknown>): Record<string, unknown>;
@@ -1 +1 @@
1
- import{BOX_TYPE as r,CONTAINER_BLOCKS_SLOT as d}from"../../../container-blocks.js";import{DIM as i,INNER_BOX as f,TEXT as o,boxPadding as p,labelLook as y,seedNodes as O,token as l}from"../../../seed-parts.js";import{listBesideMap as _}from"../../../../content/list-position.js";import{nonEmptyString as u}from"../../../../non-empty-string.js";import{shapeKeyOf as m}from"../../../seed-shape.js";import{rowFieldTextSeed as e}from"../Cards/card-seed.js";import{CARD_ROW_FIELD_PROP as w,CARD_ROW_LINK_PROP as S}from"../../../../content/card-template.js";const n=y(11),F={textStyle:"body-1",...l("body",18),weight:500,lineHeight:1.2},K=()=>({type:r,props:{...f,gap:8,gapPhone:8,...p(20,24,20,20),name:"Office"},slots:{[d]:[e("badge",{...o,tag:"p",widthFit:"fill"},n,!0),e("role",{...o,tag:"p",widthFit:"fill"},n,!0),e("city",{...o,tag:"p",widthFit:"fill"},F),e("country",{...i,tag:"p",widthFit:"fill"},n),e("address",{...i,tag:"p",widthFit:"fill"},n),{type:"ButtonBlock",props:{variant:"link",label:"",href:"",[w]:"linkLabel",[S]:"href"}}]}}),L={textStyle:"body-1",fontRole:"heading",...l("body",16),weight:500,lineHeight:1.25},h={textStyle:"body-1",...l("body",14),lineHeight:1.5},b=()=>({type:r,props:{...f,gap:4,gapPhone:4,...p(16,4),sectionBorder:{bottom:1},name:"Office"},slots:{[d]:[e("city",{...o,tag:"p",widthFit:"fill"},L),e("address",{...i,tag:"p",widthFit:"fill"},h),e("phone",{...i,tag:"p",widthFit:"fill"},h)]}});function g(t){const a=u(t.id)??"Footprint";let c=0;return O([b()],s=>s===r?`${a}~office`:`${a}~office.${c++}`)}function R(t){return Array.isArray(t.template)&&t.template.length>0&&m(t.template)===m(g(t))}const E=t=>t===void 0||Array.isArray(t)&&t.length===0;function N(t){return _(t.listPosition)?!E(t.template)||t.source==="dealers"?t:{...t,template:g(t)}:R(t)?{...t,template:[]}:t}export{K as footprintCardSeed,b as footprintSideCardSeed,R as isUntouchedFootprintSideRow,N as withFootprintSideTemplate};
1
+ import{BOX_TYPE as r,CONTAINER_BLOCKS_SLOT as a}from"../../../container-blocks.js";import{DIM as c,INNER_BOX as l,TEXT as d,boxPadding as f,labelLook as I,seedNodes as _,token as g}from"../../../seed-parts.js";import{listBesideMap as E}from"../../../../content/list-position.js";import{nonEmptyString as L}from"../../../../non-empty-string.js";import{shapeKeyOf as s}from"../../../seed-shape.js";import{rowFieldTextSeed as i}from"../Cards/card-seed.js";import{BOX_HIDE_WHEN_ROW_EMPTY as B,CARD_ROW_FIELD_PROP as N,CARD_ROW_LINK_PROP as D}from"../../../../content/card-template.js";import{DEALERS_SOURCE as T,declaredBlockSource as C}from"../../../../content/block-sources.js";const F=e=>C(e)===T,h=I(11),K={textStyle:"body-1",...g("body",18),weight:500,lineHeight:1.2},Q=()=>({type:r,props:{...l,gap:8,gapPhone:8,...f(20,24,20,20),name:"Office"},slots:{[a]:[i("badge",{...d,tag:"p",widthFit:"fill"},h,!0),i("role",{...d,tag:"p",widthFit:"fill"},h,!0),i("city",{...d,tag:"p",widthFit:"fill"},K),i("country",{...c,tag:"p",widthFit:"fill"},h),i("address",{...c,tag:"p",widthFit:"fill"},h),{type:"ButtonBlock",props:{variant:"link",label:"",href:"",[N]:"linkLabel",[D]:"href"}}]}}),R={textStyle:"body-1",fontRole:"heading",...g("body",16),weight:500,lineHeight:1.25},w={textStyle:"body-1",...g("body",14),lineHeight:1.5},k=()=>({type:r,props:{...l,gap:4,gapPhone:4,...f(16,4),sectionBorder:{bottom:1},name:"Office"},slots:{[a]:[i("city",{...d,tag:"p",widthFit:"fill"},R),i("address",{...c,tag:"p",widthFit:"fill"},w),i("phone",{...c,tag:"p",widthFit:"fill"},w)]}});function b(e){const t=L(e.id)??"Footprint";let o=0;return _([k()],n=>n===r?`${t}~office`:`${t}~office.${o++}`)}function P(e){return Array.isArray(e.template)&&e.template.length>0&&s(e.template)===s(b(e))}const S=e=>e===void 0||Array.isArray(e)&&e.length===0;function x(e){return E(e.listPosition)?!S(e.template)||F(e)?e:{...e,template:b(e)}:P(e)?{...e,template:[]}:e}const H=R,$=w,M={textFit:"line"},u=(e,t,o="",n={},m={})=>{const p=i(e,{...t?c:d,tag:"p",...n},{...$,...m});return o?{...p,props:{...p.props,[D]:o}}:p},y=(e,t,o,n)=>({type:r,props:{...l,gap:0,gapPhone:0,[B]:[e],name:n},slots:{[a]:[u(e,t,o,M,{align:"right"})]}}),W=e=>({type:r,props:{...l,direction:"row",justify:"between",share:"content",phoneRow:2,sharePhone:"content",wrapPhone:"nowrap",gap:12,gapPhone:12,...e?f(20,24):{...f(16,4),sectionBorder:{bottom:1}},name:"Dealer"},slots:{[a]:[{type:r,props:{...l,justify:"center",gap:0,gapPhone:0,widthFit:"fill",name:"Dealer words"},slots:{[a]:[{type:r,props:{...l,gap:4,gapPhone:4,widthFit:"fill",name:"Dealer name"},slots:{[a]:[i("name",{...d,tag:"p",widthFit:"fill"},H),u("address",!0)]}},u("place",!0,"",{widthFit:"fill"})]}},{type:r,props:{...l,align:"end",gap:4,gapPhone:4,name:"Dealer contact"},slots:{[a]:[y("distance",!0,"","Dealer distance"),y("phone",!1,"phoneHref","Dealer phone"),y("website",!1,"websiteHref","Dealer website")]}}]}}),X=e=>{const t=W(e),o={type:r,props:{...l,...f(0,12),name:"Dealer"},slots:{[a]:[{...t,props:{...t.props,name:"Dealer row"}}]}};return e?t:o};function O(e,t){const o=L(e.id)??"Footprint";let n=0;return _([X(t)],(m,p)=>p==="0"?`${o}~dealer`:`${o}~dealer.${n++}`)}function A(e){if(!Array.isArray(e.template)||e.template.length===0)return!1;const t=s(e.template);return t===s(O(e,!0))||t===s(O(e,!1))}function V(e){if(F(e)){const n=O(e,!E(e.listPosition));return!(S(e.template)||P(e)||A(e))||s(e.template??[])===s(n)?e:{...e,template:n}}if(!A(e))return x(e);const t={...e,template:[]};return x(t)}export{Q as footprintCardSeed,X as footprintDealerCardSeed,k as footprintSideCardSeed,P as isUntouchedFootprintSideRow,V as withFootprintListTemplate,x as withFootprintSideTemplate};
@@ -1,2 +1,2 @@
1
- import{FOOTPRINT_DEFAULTS as t}from"../../../../content/footprint.js";import{PH as e}from"../../placeholders.js";import{cardTemplateSlot as o}from"../../../../content/card-template.js";const s={sectionNumber:e.sectionNumber,heading:`${e.heading}
2
- *${e.accent}*`,tagline:e.body},a={template:o()},p={label:"Locations Map",fields:a,defaultProps:{sectionNumber:"",heading:"",tagline:"",offices:[],mapTheme:t.mapTheme,padTop:120,padBottom:120,source:"typed",search:!1,searchHint:"",noMatchText:"",listPosition:"below",showDistance:!0}};export{s as FOOTPRINT_PH,p as FootprintMeta,a as FootprintSlots};
1
+ import{FOOTPRINT_DEFAULTS as e}from"../../../../content/footprint.js";import{PH as t}from"../../placeholders.js";import{cardTemplateSlot as o}from"../../../../content/card-template.js";const s={sectionNumber:t.sectionNumber,heading:`${t.heading}
2
+ *${t.accent}*`,tagline:t.body},a={template:o()},p={label:"Locations Map",fields:a,defaultProps:{sectionNumber:"",heading:"",tagline:"",offices:[],mapTheme:e.mapTheme,padTop:120,padBottom:120,search:!1,searchHint:"",noMatchText:"",listPosition:"below",showDistance:!0}};export{s as FOOTPRINT_PH,p as FootprintMeta,a as FootprintSlots};
@@ -0,0 +1,5 @@
1
+ import type { BlockSeed } from "../../../seed-parts.js";
2
+ export declare const PROCESS_COLUMNS_SLOT = "boxes";
3
+ export declare const PROCESS_STEPS_SEED_COUNT = 3;
4
+ export declare const processColumnSeed: () => BlockSeed;
5
+ export declare const processColumnSeeds: () => BlockSeed[];
@@ -0,0 +1 @@
1
+ import{BOX_TYPE as o,CONTAINER_BLOCKS_SLOT as e}from"../../../container-blocks.js";import{headingTextSeed as t}from"../../../text-seeds.js";const n="boxes",p=3,r=()=>({type:o,props:{direction:"column"},slots:{[e]:[{type:"ImageBlock"},{type:o,props:{direction:"column"},slots:{[e]:[{type:"Text",props:t()},{type:"Text"}]}}]}}),c=()=>Array.from({length:p},r);export{n as PROCESS_COLUMNS_SLOT,p as PROCESS_STEPS_SEED_COUNT,r as processColumnSeed,c as processColumnSeeds};
@@ -1 +1 @@
1
- import{PH as t}from"../../placeholders.js";import{cardTemplateSlot as e}from"../../../../content/card-template.js";const p={num:t.sectionNumber,title:t.headingAccent,description:t.body,cta:t.viewAll},o={boxes:{type:"slot"},template:e()},l={label:"Image & Text Columns",drawsPictures:!0,fields:o,defaultProps:{num:"",title:"",description:"",columns:3,padTop:120,padBottom:120}};export{p as PROCESS_PH,l as ProcessStepsMeta,o as ProcessStepsSlots};
1
+ import{PH as t}from"../../placeholders.js";import{cardTemplateSlot as e}from"../../../../content/card-template.js";import{PROCESS_COLUMNS_SLOT as o}from"./column-seed.js";const m={num:t.sectionNumber,title:t.headingAccent,description:t.body,cta:t.viewAll},s={[o]:{type:"slot"},template:e()},c={label:"Image & Text Columns",drawsPictures:!0,fields:s,defaultProps:{num:"",title:"",description:"",columns:3,padTop:120,padBottom:120}};export{m as PROCESS_PH,c as ProcessStepsMeta,s as ProcessStepsSlots};
@@ -1,2 +1,8 @@
1
1
  import type { BlockMeta } from "../../block-types.js";
2
+ export declare const SECTION_HEADER_PH: {
3
+ num: string;
4
+ title: string;
5
+ description: string;
6
+ linkText: string;
7
+ };
2
8
  export declare const SectionHeaderMeta: BlockMeta;
@@ -1 +1 @@
1
- import{DEFAULT_SECTION_NUMBER_STYLE as e}from"../../../../sections/section-number-style.js";import{DEFAULT_SECTION_HEAD_STYLE as t}from"../../../../sections/section-head-style.js";const i={label:"Section Header",drawsPictures:!0,defaultProps:{headStyle:t,num:"01 / Section",numStyle:e,title:"Section *title*",description:"",logoSrc:"",logoAlt:"",linkText:"",linkHref:""}};export{i as SectionHeaderMeta};
1
+ import{DEFAULT_SECTION_NUMBER_STYLE as e}from"../../../../sections/section-number-style.js";import{DEFAULT_SECTION_HEAD_STYLE as o}from"../../../../sections/section-head-style.js";import{PH as i}from"../../placeholders.js";const t={num:"01 / Section",title:"Section *title*",description:"Short supporting line",linkText:i.viewAll},S={label:"Section Header",drawsPictures:!0,defaultProps:{headStyle:o,num:t.num,numStyle:e,title:t.title,description:"",logoSrc:"",logoAlt:"",linkText:"",linkHref:""}};export{t as SECTION_HEADER_PH,S as SectionHeaderMeta};
@@ -1,5 +1,7 @@
1
1
  import type { BlockMeta } from "../../block-types.js";
2
+ import type { TitleButton } from "../../../../../../render/components/TitleWithButtons.js";
2
3
  export declare const TITLE_WITH_BUTTONS_PH: {
3
4
  title: string;
4
5
  };
6
+ export declare const TITLE_WITH_BUTTONS_SCAFFOLD_BUTTONS: readonly TitleButton[];
5
7
  export declare const TitleWithButtonsMeta: BlockMeta;