efficient-web-builder 50.0.0 → 52.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 (154) hide show
  1. package/CHANGELOG.md +63 -0
  2. package/README.md +1 -1
  3. package/dist/editor/components/BlogPostSource.js +1 -1
  4. package/dist/editor/components/HeroPartPanel.js +1 -1
  5. package/dist/editor/components/MediaUploadField.js +1 -1
  6. package/dist/editor/components/PartTextBox.js +1 -1
  7. package/dist/editor/components/PreviewPartStyleContext.d.ts +2 -2
  8. package/dist/editor/components/SectionEditor.js +1 -1
  9. package/dist/editor/components/SiteTextStylesField.d.ts +2 -1
  10. package/dist/editor/components/SiteTextStylesField.js +1 -1
  11. package/dist/editor/components/ThemeCard.js +1 -1
  12. package/dist/editor/components/WebsiteScreenParts.js +1 -1
  13. package/dist/editor/components/WebsiteSettingsPanel.js +1 -1
  14. package/dist/editor/components/storefront-editor.css +13 -45
  15. package/dist/editor/components/usePartMotion.d.ts +1 -1
  16. package/dist/editor/components/usePartTypingDeps.d.ts +2 -0
  17. package/dist/editor/components/usePartTypingDeps.js +1 -0
  18. package/dist/editor/lib/animation/entrance-fields.js +1 -1
  19. package/dist/editor/lib/animation/fields.d.ts +1 -1
  20. package/dist/editor/lib/animation/fields.js +1 -1
  21. package/dist/editor/lib/animation/hover-fields.d.ts +7 -1
  22. package/dist/editor/lib/animation/hover-fields.js +1 -1
  23. package/dist/editor/lib/document/ColourControl.d.ts +11 -8
  24. package/dist/editor/lib/document/ColourControl.js +1 -1
  25. package/dist/editor/lib/document/blocks/general/Cards/fields.js +1 -1
  26. package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
  27. package/dist/editor/lib/document/blocks/general/Hero/fields.js +1 -1
  28. package/dist/editor/lib/document/blocks/general/HeroSlide/fields.js +1 -1
  29. package/dist/editor/lib/document/blocks/general/ImageBlock/fields.js +1 -1
  30. package/dist/editor/lib/document/blocks/general/PostCard/fields.js +1 -1
  31. package/dist/editor/lib/document/blocks/general/Series/fields.js +1 -1
  32. package/dist/editor/lib/document/blocks/general/StatsParagraph/fields.js +1 -1
  33. package/dist/editor/lib/document/blocks/general/index.d.ts +2 -2
  34. package/dist/editor/lib/document/blocks/hero-shared-fields.d.ts +2 -0
  35. package/dist/editor/lib/document/blocks/hero-shared-fields.js +1 -1
  36. package/dist/editor/lib/document/canvas-typing.d.ts +1 -0
  37. package/dist/editor/lib/document/canvas-typing.js +1 -1
  38. package/dist/editor/lib/document/card-copy-rows.d.ts +12 -0
  39. package/dist/editor/lib/document/card-copy-rows.js +1 -0
  40. package/dist/editor/lib/document/controls.d.ts +15 -4
  41. package/dist/editor/lib/document/controls.js +1 -1
  42. package/dist/editor/lib/document/darken-fields.d.ts +4 -0
  43. package/dist/editor/lib/document/darken-fields.js +1 -0
  44. package/dist/editor/lib/document/overrides.js +1 -1
  45. package/dist/editor/lib/document/passes/inspector.js +1 -1
  46. package/dist/format/components/stored-pick-row.d.ts +8 -0
  47. package/dist/format/components/stored-pick-row.js +1 -0
  48. package/dist/format/lib/animation/hover.d.ts +32 -1
  49. package/dist/format/lib/animation/hover.js +1 -1
  50. package/dist/format/lib/content/borders.d.ts +4 -2
  51. package/dist/format/lib/content/borders.js +1 -1
  52. package/dist/format/lib/content/box-layout.d.ts +11 -0
  53. package/dist/format/lib/content/box-layout.js +1 -1
  54. package/dist/format/lib/content/box-shape.d.ts +2 -1
  55. package/dist/format/lib/content/box-shape.js +1 -1
  56. package/dist/format/lib/content/button-icon.d.ts +1 -1
  57. package/dist/format/lib/content/button-icon.js +1 -1
  58. package/dist/format/lib/content/card-state.d.ts +8 -0
  59. package/dist/format/lib/content/card-state.js +1 -0
  60. package/dist/format/lib/content/card-template.d.ts +6 -0
  61. package/dist/format/lib/content/card-template.js +1 -1
  62. package/dist/format/lib/content/image-treatment.d.ts +23 -4
  63. package/dist/format/lib/content/image-treatment.js +1 -1
  64. package/dist/format/lib/content/section-background.d.ts +10 -3
  65. package/dist/format/lib/content/section-background.js +1 -1
  66. package/dist/format/lib/content/section-min-height.d.ts +17 -1
  67. package/dist/format/lib/content/section-min-height.js +1 -1
  68. package/dist/format/lib/content/section-sticky.d.ts +9 -0
  69. package/dist/format/lib/content/section-sticky.js +1 -1
  70. package/dist/format/lib/document/blocks/general/Hero/meta.js +1 -1
  71. package/dist/format/lib/document/blocks/general/HeroSingle/meta.js +1 -1
  72. package/dist/format/lib/document/box-footer.js +1 -1
  73. package/dist/format/lib/document/card-template-layers.d.ts +1 -1
  74. package/dist/format/lib/document/card-template-layers.js +1 -1
  75. package/dist/format/lib/document/easel-row-words.d.ts +1 -0
  76. package/dist/format/lib/document/easel-row-words.js +1 -1
  77. package/dist/format/lib/document/part-inks.d.ts +5 -10
  78. package/dist/format/lib/document/part-inks.js +1 -1
  79. package/dist/format/lib/document/passes/card-template-on-insert.d.ts +2 -0
  80. package/dist/format/lib/document/passes/card-template-on-insert.js +1 -0
  81. package/dist/format/lib/document/passes/types.d.ts +7 -0
  82. package/dist/format/lib/document/section-catalog.js +2 -2
  83. package/dist/format/lib/document/show-when-attach.d.ts +2 -1
  84. package/dist/format/lib/document/show-when-attach.js +1 -1
  85. package/dist/format/lib/editor-words-catalogue.d.ts +9 -5
  86. package/dist/format/lib/editor-words-catalogue.js +4 -4
  87. package/dist/format/lib/sections/hero-overlay.js +1 -1
  88. package/dist/format/lib/sections/hero-single-to-hero.js +1 -1
  89. package/dist/format/lib/source-rules/panel-rows-use-the-shared-row.d.ts +4 -0
  90. package/dist/format/lib/source-rules/panel-rows-use-the-shared-row.js +37 -20
  91. package/dist/format/lib/source-rules/support/part-slider-call-sites.d.ts +0 -1
  92. package/dist/format/lib/source-rules/support/part-slider-call-sites.js +6 -6
  93. package/dist/format/lib/text-styles/site-text-colours.d.ts +11 -0
  94. package/dist/format/lib/text-styles/site-text-colours.js +1 -0
  95. package/dist/format/lib/theme.d.ts +1 -0
  96. package/dist/format/lib/theme.js +3 -3
  97. package/dist/format/lib/word-styles.d.ts +0 -1
  98. package/dist/format/lib/word-styles.js +1 -1
  99. package/dist/render/components/ButtonBlock.d.ts +2 -1
  100. package/dist/render/components/ButtonBlock.js +1 -1
  101. package/dist/render/components/CardRowContext.d.ts +5 -2
  102. package/dist/render/components/CardRowContext.js +1 -1
  103. package/dist/render/components/ContactLocations.d.ts +3 -1
  104. package/dist/render/components/ContactLocations.js +2 -2
  105. package/dist/render/components/Flex.d.ts +6 -1
  106. package/dist/render/components/Flex.js +1 -1
  107. package/dist/render/components/HeroPictures.d.ts +10 -0
  108. package/dist/render/components/HeroPictures.js +1 -1
  109. package/dist/render/components/HeroSingle.js +1 -1
  110. package/dist/render/components/HeroSlide.js +1 -1
  111. package/dist/render/components/ImageBlock.d.ts +6 -1
  112. package/dist/render/components/ImageBlock.js +1 -1
  113. package/dist/render/components/Manifesto.d.ts +3 -1
  114. package/dist/render/components/Manifesto.js +1 -1
  115. package/dist/render/components/PhotoHoverSheet.d.ts +4 -0
  116. package/dist/render/components/PhotoHoverSheet.js +1 -0
  117. package/dist/render/components/PictureWash.d.ts +6 -0
  118. package/dist/render/components/PictureWash.js +1 -0
  119. package/dist/render/components/Placeholder.js +1 -1
  120. package/dist/render/components/PostCard.js +1 -1
  121. package/dist/render/components/Split.d.ts +3 -1
  122. package/dist/render/components/Split.js +1 -1
  123. package/dist/render/components/Text.d.ts +2 -2
  124. package/dist/render/components/Text.js +1 -1
  125. package/dist/render/components/goldPhrases.js +2 -2
  126. package/dist/render/lib/animation/part-motion.js +2 -2
  127. package/dist/render/lib/content/block-size.d.ts +1 -0
  128. package/dist/render/lib/content/block-size.js +1 -1
  129. package/dist/render/lib/content/box-shared-columns.js +1 -1
  130. package/dist/render/lib/document/blocks/general/Cards/render.js +1 -1
  131. package/dist/render/lib/document/blocks/general/ContactLocations/render.js +1 -1
  132. package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
  133. package/dist/render/lib/document/blocks/general/ImageBlock/render.js +1 -1
  134. package/dist/render/lib/document/blocks/general/Manifesto/render.js +1 -1
  135. package/dist/render/lib/document/blocks/general/Split/render.js +1 -1
  136. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.d.ts +2 -0
  137. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
  138. package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.js +1 -1
  139. package/dist/render/lib/document/blocks/general/section-to-box-rows-locations.js +1 -1
  140. package/dist/render/lib/document/blocks/general/section-to-box-rows-stats.js +1 -1
  141. package/dist/render/lib/document/blocks/general/section-to-box-rows-timeline.js +2 -2
  142. package/dist/render/lib/document/part-styles.js +2 -2
  143. package/dist/render/lib/document/passes/block-size.js +1 -1
  144. package/dist/render/lib/document/passes/borders.js +1 -1
  145. package/dist/render/lib/document/passes/index.js +1 -1
  146. package/dist/render/lib/document/passes/section-animation.js +1 -1
  147. package/dist/render/lib/document/passes/section-height.js +1 -1
  148. package/dist/render/lib/document/passes/section-sticky.js +1 -1
  149. package/dist/render/lib/document/show-when.d.ts +1 -1
  150. package/dist/render/lib/document/show-when.js +1 -1
  151. package/dist/render/lib/text-styles/site-text-styles.js +2 -2
  152. package/package.json +4 -4
  153. package/dist/editor/components/PartInkControl.d.ts +0 -7
  154. package/dist/editor/components/PartInkControl.js +0 -1
@@ -1 +1 @@
1
- import{jsx as e}from"react/jsx-runtime";import{SiteLink as C}from"../lib/site-runtime.js";import E from"./BlockFrame.js";import{useSectionEdge as F}from"./SiteGutterFrame.js";import{useSitePhotography as z}from"./SitePhotographyContext.js";import{media as P}from"../lib/media.js";import{CONTENT_SIZES as T,sizedImage as A}from"../../format/lib/sized-image.js";import{imageCornerStyle as B}from"../../format/lib/content/image-corners.js";import{imageFitClass as L,imageIsCropped as O,parseImageFit as W}from"../../format/lib/content/image-fit.js";import{resolveImageTreatment as _}from"../../format/lib/content/image-treatment.js";import{phoneFocus as q}from"../../format/lib/content/phone-focus.js";import{say as Z}from"../../format/lib/editor-words.js";import{sectionEdgeAttrs as D}from"../lib/content/section-edge.js";const G={auto:"","21/9":"aspect-[21/9]","16/9":"aspect-[16/9]","4/3":"aspect-[4/3]","1/1":"aspect-square"};function H({src:t,alt:g,aspect:l,contained:y,grayscale:N,href:S,fit:b,focal:c,focalPhone:k,corners:v,cornerSides:x,pad:n,ownSize:I=!1,editing:$=!1}){const a=_(N,z()),f=W(b,"cover"),d=B(v,x),p=O(l,f),i=q(p?k:void 0),u={...a.style??{},...c&&p?{objectPosition:c}:{},...i.style},s=t?A(P(t)):null,m=t&&s?e("img",{src:s.src,...s.srcSet?{srcSet:s.srcSet,sizes:T}:{},alt:g,className:`h-full w-full ${l==="auto"?"":L(f)}${a.className?` ${a.className}`:""}${i.className?` ${i.className}`:""}`,...Object.keys(u).length?{style:u}:{}}):e("div",{className:"flex aspect-[16/9] items-center justify-center border border-dashed border-line font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.2em] text-fg-dim",children:Z("Image — set a path")}),r=(S??"").trim(),j=r&&t?r.startsWith("/")?e(C,{href:r,className:"block h-full w-full",children:m}):e("a",{href:r,className:"block h-full w-full",children:m}):m,h=F(),o=h&&!I?D(h):null,w=n?{values:n,frame:24}:void 0;return!t&&!$?null:e(E,{contained:o?!1:y,className:"py-6",pad:w,...o?{fillWidth:o.className,style:o.style}:{},children:e("figure",{children:e("div",{className:`relative w-full overflow-hidden bg-surface ${G[l]}`,...d?{style:d}:{},children:j})})})}export{H as default};
1
+ import{jsx as e,Fragment as S,jsxs as E}from"react/jsx-runtime";import{SiteLink as J}from"../lib/site-runtime.js";import K from"./BlockFrame.js";import{useSectionEdge as Q}from"./SiteGutterFrame.js";import{useSitePhotography as Y}from"./SitePhotographyContext.js";import{media as I}from"../lib/media.js";import{CONTENT_SIZES as P,sizedImage as w}from"../../format/lib/sized-image.js";import{imageCornerStyle as H}from"../../format/lib/content/image-corners.js";import{imageFitClass as T,imageIsCropped as ee,parseImageFit as se}from"../../format/lib/content/image-fit.js";import{NEXT_PICTURE_CLASS as te,PICTURE_FRAME_CLASS as le,PICTURE_WASH_CLASS as oe,PICTURE_ZOOM_CLASS as ae,PICTURE_ZOOM_VAR as re,resolveImageTreatment as ne,resolveNextPicture as ce}from"../../format/lib/content/image-treatment.js";import{boxDarkenStyle as j}from"../../format/lib/content/box-background.js";import{phoneFocus as me}from"../../format/lib/content/phone-focus.js";import{say as ie}from"../../format/lib/editor-words.js";import{sectionEdgeAttrs as fe}from"../lib/content/section-edge.js";import z from"./PhotoHoverSheet.js";import de from"./PictureWash.js";const he={auto:"","21/9":"aspect-[21/9]","16/9":"aspect-[16/9]","4/3":"aspect-[4/3]","1/1":"aspect-square"};function ue({src:t,alt:A,aspect:d,contained:F,grayscale:O,pictureHover:l,nextSrc:y,darken:L,darkenStyle:N,href:R,fit:U,focal:b,focalPhone:W,corners:B,cornerSides:M,pad:C,ownSize:Z=!1,editing:q=!1}){const r=ne(O,Y(),l),h=se(U,"cover"),_=H(B,M),$=ee(d,h),o=me($?W:void 0),n={...r.style??{},...b&&$?{objectPosition:b}:{},...o.style},c=t?w(I(t)):null,s=ce(l),a=s&&y?w(I(y)):null,m=s?l?.zoom??null:null,D=j(L,N),k=s&&l?.darken?j(l.darken,N):null,u=!!(s&&(a||m||k)),v=u?{...s?.style??{},...m?{[re]:m}:{}}:{},V=s&&a?e(S,{children:e("img",{src:a.src,...a.srcSet?{srcSet:a.srcSet,sizes:P}:{},alt:"","aria-hidden":"true",loading:"lazy",decoding:"async",className:`absolute inset-0 h-full w-full bg-surface ${T(h)}${o.className?` ${o.className}`:""} ${s.className}`,...Object.keys(n).length?{style:n}:{}})}):null,p=t&&c?E(S,{children:[e("img",{src:c.src,...c.srcSet?{srcSet:c.srcSet,sizes:P}:{},alt:A,className:`h-full w-full ${d==="auto"?"":T(h)}${r.className?` ${r.className}`:""}${o.className?` ${o.className}`:""}`,...Object.keys(n).length?{style:n}:{}}),V]}):null,g=p?E(S,{children:[e(z,{sheet:r.sheet}),u&&s?e(z,{sheet:s.sheet,name:te}):null,m?e("div",{className:`relative h-full w-full ${ae}`,children:p}):p,e(de,{wash:D,hover:k,className:`pointer-events-none ${oe}`})]}):e("div",{className:"flex aspect-[16/9] items-center justify-center border border-dashed border-line font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.2em] text-fg-dim",children:ie("Image — set a path")}),i=(R??"").trim(),X=i&&t?i.startsWith("/")?e(J,{href:i,className:"block h-full w-full",children:g}):e("a",{href:i,className:"block h-full w-full",children:g}):g,x=Q(),f=x&&!Z?fe(x):null,G=C?{values:C,frame:24}:void 0;return!t&&!q?null:e(K,{contained:f?!1:F,className:"py-6",pad:G,...f?{fillWidth:f.className,style:f.style}:{},children:e("figure",{children:e("div",{className:`relative w-full overflow-hidden bg-surface ${he[d]}${u?` ${le}`:""}`,..._||Object.keys(v).length?{style:{..._,...v}}:{},children:X})})})}export{ue as default};
@@ -1,3 +1,4 @@
1
+ import type { PictureHoverDrawn } from "../../format/lib/animation/hover.js";
1
2
  import { type WidthProps } from "../../format/lib/content/section-width.js";
2
3
  export interface ManifestoStat {
3
4
  value?: string;
@@ -10,6 +11,7 @@ export interface ManifestoProps extends WidthProps {
10
11
  stats?: ManifestoStat[];
11
12
  imageSrc?: string;
12
13
  grayscale?: boolean;
14
+ pictureHover?: PictureHoverDrawn;
13
15
  fillHeight?: boolean;
14
16
  }
15
- export default function Manifesto({ eyebrow, heading, body, stats, imageSrc, grayscale, fillHeight, ...widthProps }?: ManifestoProps): import("react").JSX.Element;
17
+ export default function Manifesto({ eyebrow, heading, body, stats, imageSrc, grayscale, pictureHover, fillHeight, ...widthProps }?: ManifestoProps): import("react").JSX.Element;
@@ -1 +1 @@
1
- import{jsx as e,jsxs as o}from"react/jsx-runtime";import v from"./AnimatedStat.js";import b from"./Placeholder.js";import{useSitePhotography as w}from"./SitePhotographyContext.js";import y from"./SectionEyebrow.js";import{renderGold as N,renderHeadline as _,splitParagraphs as j}from"./goldPhrases.js";import{resolveImageTreatment as S}from"../../format/lib/content/image-treatment.js";import{sectionRunsFullWidth as M}from"../../format/lib/content/section-width.js";import{SECTION_FILL_CLASS as T}from"../../format/lib/content/section-min-height.js";const i={headingMediumUpTo800:"max-view-wide:text-[length:min(var(--size-headingMedium,36px),var(--sf-heading-max,9999px))]",headingMedium:"text-[length:min(var(--size-headingMedium,56px),var(--sf-heading-max,9999px))]",body:"text-[length:var(--size-body,16px)]"};function z({eyebrow:s,heading:d,body:x,stats:p,imageSrc:c,grayscale:f,fillHeight:g=!1,...u}={}){const h=S(f,w()),l=s||null,n=d||null,m=x||null,r=(p??[]).filter(a=>(a.value??"").trim()!==""||(a.label??"").trim()!=="");return e("section",{className:"relative z-[2] bg-bg p-0",children:o("div",{className:`grid ${g?T:"h-screen"} min-h-[100vh] grid-cols-2 border-y border-line max-[960px]:h-auto max-[960px]:grid-cols-1`,children:[e("div",{className:"flex flex-col justify-center border-r border-line px-[var(--sf-site-gutter,40px)] py-[100px] max-[960px]:order-2 max-[960px]:border-r-0 max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[960px]:py-[60px]",children:o("div",{className:M(u)?"flex w-full flex-col gap-7":"ml-auto flex w-full flex-col gap-7 max-w-[calc(var(--sf-site-width,1600px)/2_-_var(--sf-site-gutter,40px)*2_-_1px)] max-[960px]:ml-0 max-[960px]:max-w-none",children:[l!==null&&e(y,{text:l,size:14}),n!==null&&e("h2",{className:`font-heading2 ${i.headingMedium} font-normal leading-[1.05] tracking-[-0.03em] ${i.headingMediumUpTo800} max-view-wide:leading-[1]`,children:_(n,!0)}),m!==null&&j(m).map((a,t)=>e("p",{className:`max-w-[520px] ${i.body} leading-[1.7] text-fg-dim`,children:N(a)},t)),r.length>0&&e("div",{className:"mt-4 grid max-w-[520px] gap-6 border-t border-line pt-7",style:{gridTemplateColumns:`repeat(${r.length}, minmax(0, 1fr))`},children:r.map((a,t)=>e(v,{target:a.value??"",label:a.label??""},t))})]})}),e("div",{className:"sf-card relative flex items-center justify-center bg-surface overflow-hidden max-[960px]:aspect-[4/3]",children:e(b,{label:"manifesto",src:c||void 0,objectFit:"cover",objectPosition:"center",treatment:h})})]})})}export{z as default};
1
+ import{jsx as e,jsxs as o}from"react/jsx-runtime";import b from"./AnimatedStat.js";import w from"./Placeholder.js";import{useSitePhotography as y}from"./SitePhotographyContext.js";import N from"./SectionEyebrow.js";import{renderGold as _,renderHeadline as j,splitParagraphs as S}from"./goldPhrases.js";import{resolveImageTreatment as M}from"../../format/lib/content/image-treatment.js";import{sectionRunsFullWidth as T}from"../../format/lib/content/section-width.js";import{SECTION_FILL_CLASS as z}from"../../format/lib/content/section-min-height.js";const i={headingMediumUpTo800:"max-view-wide:text-[length:min(var(--size-headingMedium,36px),var(--sf-heading-max,9999px))]",headingMedium:"text-[length:min(var(--size-headingMedium,56px),var(--sf-heading-max,9999px))]",body:"text-[length:var(--size-body,16px)]"};function $({eyebrow:s,heading:d,body:x,stats:p,imageSrc:c,grayscale:f,pictureHover:g,fillHeight:u=!1,...h}={}){const v=M(f,y(),g),l=s||null,n=d||null,m=x||null,r=(p??[]).filter(a=>(a.value??"").trim()!==""||(a.label??"").trim()!=="");return e("section",{className:"relative z-[2] bg-bg p-0",children:o("div",{className:`grid ${u?z:"h-screen"} min-h-[100vh] grid-cols-2 border-y border-line max-[960px]:h-auto max-[960px]:grid-cols-1`,children:[e("div",{className:"flex flex-col justify-center border-r border-line px-[var(--sf-site-gutter,40px)] py-[100px] max-[960px]:order-2 max-[960px]:border-r-0 max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[960px]:py-[60px]",children:o("div",{className:T(h)?"flex w-full flex-col gap-7":"ml-auto flex w-full flex-col gap-7 max-w-[calc(var(--sf-site-width,1600px)/2_-_var(--sf-site-gutter,40px)*2_-_1px)] max-[960px]:ml-0 max-[960px]:max-w-none",children:[l!==null&&e(N,{text:l,size:14}),n!==null&&e("h2",{className:`font-heading2 ${i.headingMedium} font-normal leading-[1.05] tracking-[-0.03em] ${i.headingMediumUpTo800} max-view-wide:leading-[1]`,children:j(n,!0)}),m!==null&&S(m).map((a,t)=>e("p",{className:`max-w-[520px] ${i.body} leading-[1.7] text-fg-dim`,children:_(a)},t)),r.length>0&&e("div",{className:"mt-4 grid max-w-[520px] gap-6 border-t border-line pt-7",style:{gridTemplateColumns:`repeat(${r.length}, minmax(0, 1fr))`},children:r.map((a,t)=>e(b,{target:a.value??"",label:a.label??""},t))})]})}),e("div",{className:"sf-card relative flex items-center justify-center bg-surface overflow-hidden max-[960px]:aspect-[4/3]",children:e(w,{label:"manifesto",src:c||void 0,objectFit:"cover",objectPosition:"center",treatment:v})})]})})}export{$ as default};
@@ -0,0 +1,4 @@
1
+ export default function PhotoHoverSheet({ sheet, name }: {
2
+ sheet?: string;
3
+ name?: string;
4
+ }): import("react").JSX.Element | null;
@@ -0,0 +1 @@
1
+ import{jsx as t}from"react/jsx-runtime";const r="sf-photo-hover";function n({sheet:e,name:o=r}){return e?t("style",{href:o,precedence:r,dangerouslySetInnerHTML:{__html:e}}):null}export{n as default};
@@ -0,0 +1,6 @@
1
+ import type { CSSProperties } from "react";
2
+ export default function PictureWash({ wash, hover, className, }: {
3
+ wash: CSSProperties | null;
4
+ hover?: CSSProperties | null;
5
+ className?: string;
6
+ }): import("react").JSX.Element | null;
@@ -0,0 +1 @@
1
+ import{jsx as r,Fragment as i,jsxs as n}from"react/jsx-runtime";import{PICTURE_WASH_HOVER_CLASS as d,PICTURE_WASH_REST_CLASS as l}from"../../format/lib/content/image-treatment.js";function u({wash:e,hover:s,className:a}){const t=`absolute inset-0 z-0${a?` ${a}`:""}`;return s?n(i,{children:[e&&r("div",{className:`${t} ${l}`,style:e,"aria-hidden":!0}),r("div",{className:`${t} ${d}`,style:s,"aria-hidden":!0})]}):e?r("div",{className:t,style:e,"aria-hidden":!0}):null}export{u as default};
@@ -1 +1 @@
1
- "use client";import{jsx as i,jsxs as x}from"react/jsx-runtime";import{useEffect as w,useState as u}from"react";import{SiteImage as I}from"../lib/site-runtime.js";import{isExternalMediaUrl as E}from"../lib/media.js";import{sizedImage as k}from"../../format/lib/sized-image.js";function z({fallback:m,className:y,src:g,alt:o="",objectPosition:l,objectFit:f="cover",sizes:n="100vw",priority:p=!1,deferFetch:N=!1,showBackground:S=!0,treatment:e}){const[r,c]=u(!1),[h,t]=u(!1),s=g||"";w(()=>{c(!1),t(!1)},[s]);const d=E(s),a=d&&!h?k(s):{src:s},v=!s||r;return x("div",{className:`relative h-full w-full overflow-hidden ${y??""}`,children:[i("div",{className:"absolute inset-0 flex items-center justify-center",style:S?{background:"var(--site-surface)"}:void 0,children:v?m:null}),s&&(d?i("img",{src:a.src,alt:o,...a.srcSet?{srcSet:a.srcSet,sizes:n}:{},decoding:"async",...N?{loading:"lazy"}:{},className:`absolute inset-0 h-full w-full${e?.className?` ${e.className}`:""}`,style:{display:r?"none":"block",objectFit:f,...l?{objectPosition:l}:{},...e?.style??{}},onError:()=>a.srcSet?t(!0):c(!0)}):i(I,{src:s,alt:o,fill:!0,sizes:n,priority:p,...e?.className?{className:e.className}:{},style:{display:r?"none":"block",objectFit:f,...l?{objectPosition:l}:{},...e?.style??{}},onError:()=>c(!0)}))]})}export{z as default};
1
+ "use client";import{jsx as r,jsxs as x}from"react/jsx-runtime";import{useEffect as w,useState as u}from"react";import{SiteImage as I}from"../lib/site-runtime.js";import{isExternalMediaUrl as E}from"../lib/media.js";import{sizedImage as k}from"../../format/lib/sized-image.js";import z from"./PhotoHoverSheet.js";function $({fallback:m,className:y,src:p,alt:i="",objectPosition:l,objectFit:t="cover",sizes:f="100vw",priority:g=!1,deferFetch:h=!1,showBackground:S=!0,treatment:e}){const[c,o]=u(!1),[v,n]=u(!1),s=p||"";w(()=>{o(!1),n(!1)},[s]);const d=E(s),a=d&&!v?k(s):{src:s},N=!s||c;return x("div",{className:`relative h-full w-full overflow-hidden ${y??""}`,children:[r("div",{className:"absolute inset-0 flex items-center justify-center",style:S?{background:"var(--site-surface)"}:void 0,children:N?m:null}),s&&(d?r("img",{src:a.src,alt:i,...a.srcSet?{srcSet:a.srcSet,sizes:f}:{},decoding:"async",...h?{loading:"lazy"}:{},className:`absolute inset-0 h-full w-full${e?.className?` ${e.className}`:""}`,style:{display:c?"none":"block",objectFit:t,...l?{objectPosition:l}:{},...e?.style??{}},onError:()=>a.srcSet?n(!0):o(!0)}):r(I,{src:s,alt:i,fill:!0,sizes:f,priority:g,...e?.className?{className:e.className}:{},style:{display:c?"none":"block",objectFit:t,...l?{objectPosition:l}:{},...e?.style??{}},onError:()=>o(!0)})),r(z,{sheet:e?.sheet})]})}export{$ as default};
@@ -1 +1 @@
1
- import{jsx as a,jsxs as n}from"react/jsx-runtime";import{SiteLink as c}from"../lib/site-runtime.js";import{boxDarkenStyle as N,boxPlacementClasses as $,CARD_SHADOW_CLASS as S}from"../../format/lib/content/box-background.js";import{POST_CARD_HEIGHT as k}from"../../format/lib/post-card-layout.js";import m from"./Placeholder.js";import{renderGold as l,renderHeadline as s}from"./goldPhrases.js";const r={body:"text-[length:var(--size-body,14px)]",headingSmall1:"text-[length:var(--size-headingSmall,22px)]",headingSmall2:"text-[length:var(--size-headingSmall,30px)]",label:"text-[length:var(--size-label,13px)]"};function w({post:e,scaffold:i=!1,layout:o,showCover:h=!0,placement:g,darken:x,darkenStyle:f,href:b,minHeight:v}){const d=b||(i?"#":`/journal/${e.slug}`),u=o==="cover",p=(e.meta||e.dateLabel||e.read)&&n("div",{className:`flex gap-3.5 font-mono ${r.label} uppercase tracking-[0.18em] text-fg-dim`,children:[e.meta&&a("span",{className:"text-accent",children:l(e.meta)}),e.dateLabel&&a("span",{children:l(e.dateLabel)}),e.read&&a("span",{children:l(e.read)})]});if(u){const t=N(x,f);return n(c,{href:d,className:`${S} group relative isolate flex overflow-hidden`,style:{minHeight:`${v??k.fallback}px`},"aria-disabled":i||void 0,tabIndex:i?-1:void 0,children:[a("div",{className:"absolute inset-0",children:a(m,{label:`post-${e.slug}`,src:e.cover||void 0,sizes:"(max-width: 800px) 100vw, 56vw"})}),t&&a("div",{className:"absolute inset-0 z-0",style:t,"aria-hidden":!0}),n("div",{className:`relative z-[1] flex w-full flex-col gap-2 p-8 text-overlay-fg max-view-wide:p-5 ${$(g??"bottom-left","column")}`,children:[e.meta&&a("div",{className:`font-mono ${r.label} uppercase tracking-[0.18em] text-accent`,children:l(e.meta)}),a("h3",{className:`font-heading3 ${r.headingSmall2} font-medium leading-[1.2] tracking-[-0.02em]`,children:s(e.title,!1)}),e.excerpt&&a("p",{className:`max-w-[46ch] ${r.body} leading-[1.55] opacity-80`,children:l(e.excerpt)}),(e.dateLabel||e.read)&&n("div",{className:`flex gap-3.5 font-mono ${r.label} uppercase tracking-[0.18em] opacity-75`,children:[e.dateLabel&&a("span",{children:l(e.dateLabel)}),e.read&&a("span",{children:l(e.read)})]})]})]})}return n(c,{href:d,style:{"--card-bg":"var(--site-surface)","--card-bg-hover":"var(--site-surface-2)"},className:"sf-card sf-card-fill group block bg-[var(--card-bg)] transition-colors duration-300 hover:bg-[var(--card-bg-hover)]","aria-disabled":i||void 0,tabIndex:i?-1:void 0,children:[h&&(e.cover||i)&&a("div",{className:"sf-card-image relative aspect-[16/10] overflow-hidden bg-bg",children:a(m,{label:`event-${e.slug}`,src:e.cover||void 0})}),n("div",{className:"flex flex-col gap-2.5 px-7 pb-8 pt-6",children:[p,a("h3",{className:`mt-1 font-heading3 ${r.headingSmall1} font-medium leading-[1.2] tracking-[-0.02em]`,children:s(e.title,!1)}),e.excerpt&&a("p",{className:`${r.body} leading-[1.55] text-fg-dim`,children:l(e.excerpt)}),n("span",{className:`mt-1.5 inline-flex items-center gap-2 font-mono ${r.label} uppercase tracking-[0.2em] transition-colors group-hover:text-accent`,children:["Read more",a("span",{"aria-hidden":!0,children:"→"})]})]})]})}export{w as default};
1
+ import{jsx as a,jsxs as n}from"react/jsx-runtime";import{SiteLink as t}from"../lib/site-runtime.js";import{boxDarkenStyle as N,boxPlacementClasses as $,CARD_SHADOW_CLASS as S}from"../../format/lib/content/box-background.js";import{POST_CARD_HEIGHT as w}from"../../format/lib/post-card-layout.js";import k from"./PictureWash.js";import c from"./Placeholder.js";import{renderGold as l,renderHeadline as m}from"./goldPhrases.js";const r={body:"text-[length:var(--size-body,14px)]",headingSmall1:"text-[length:var(--size-headingSmall,22px)]",headingSmall2:"text-[length:var(--size-headingSmall,30px)]",label:"text-[length:var(--size-label,13px)]"};function y({post:e,scaffold:i=!1,layout:s,showCover:o=!0,placement:h,darken:g,darkenStyle:f,href:x,minHeight:b}){const d=x||(i?"#":`/journal/${e.slug}`),v=s==="cover",u=(e.meta||e.dateLabel||e.read)&&n("div",{className:`flex gap-3.5 font-mono ${r.label} uppercase tracking-[0.18em] text-fg-dim`,children:[e.meta&&a("span",{className:"text-accent",children:l(e.meta)}),e.dateLabel&&a("span",{children:l(e.dateLabel)}),e.read&&a("span",{children:l(e.read)})]});if(v){const p=N(g,f);return n(t,{href:d,className:`${S} group relative isolate flex overflow-hidden`,style:{minHeight:`${b??w.fallback}px`},"aria-disabled":i||void 0,tabIndex:i?-1:void 0,children:[a("div",{className:"absolute inset-0",children:a(c,{label:`post-${e.slug}`,src:e.cover||void 0,sizes:"(max-width: 800px) 100vw, 56vw"})}),a(k,{wash:p}),n("div",{className:`relative z-[1] flex w-full flex-col gap-2 p-8 text-overlay-fg max-view-wide:p-5 ${$(h??"bottom-left","column")}`,children:[e.meta&&a("div",{className:`font-mono ${r.label} uppercase tracking-[0.18em] text-accent`,children:l(e.meta)}),a("h3",{className:`font-heading3 ${r.headingSmall2} font-medium leading-[1.2] tracking-[-0.02em]`,children:m(e.title,!1)}),e.excerpt&&a("p",{className:`max-w-[46ch] ${r.body} leading-[1.55] opacity-80`,children:l(e.excerpt)}),(e.dateLabel||e.read)&&n("div",{className:`flex gap-3.5 font-mono ${r.label} uppercase tracking-[0.18em] opacity-75`,children:[e.dateLabel&&a("span",{children:l(e.dateLabel)}),e.read&&a("span",{children:l(e.read)})]})]})]})}return n(t,{href:d,style:{"--card-bg":"var(--site-surface)","--card-bg-hover":"var(--site-surface-2)"},className:"sf-card sf-card-fill group block bg-[var(--card-bg)] transition-colors duration-300 hover:bg-[var(--card-bg-hover)]","aria-disabled":i||void 0,tabIndex:i?-1:void 0,children:[o&&(e.cover||i)&&a("div",{className:"sf-card-image relative aspect-[16/10] overflow-hidden bg-bg",children:a(c,{label:`event-${e.slug}`,src:e.cover||void 0})}),n("div",{className:"flex flex-col gap-2.5 px-7 pb-8 pt-6",children:[u,a("h3",{className:`mt-1 font-heading3 ${r.headingSmall1} font-medium leading-[1.2] tracking-[-0.02em]`,children:m(e.title,!1)}),e.excerpt&&a("p",{className:`${r.body} leading-[1.55] text-fg-dim`,children:l(e.excerpt)}),n("span",{className:`mt-1.5 inline-flex items-center gap-2 font-mono ${r.label} uppercase tracking-[0.2em] transition-colors group-hover:text-accent`,children:["Read more",a("span",{"aria-hidden":!0,children:"→"})]})]})]})}export{y as default};
@@ -1,3 +1,4 @@
1
+ import type { PictureHoverDrawn } from "../../format/lib/animation/hover.js";
1
2
  interface Props {
2
3
  imageLabel: string;
3
4
  imageSrc?: string;
@@ -29,7 +30,8 @@ interface Props {
29
30
  href: string;
30
31
  };
31
32
  grayscale?: boolean;
33
+ pictureHover?: PictureHoverDrawn;
32
34
  fillHeight?: boolean;
33
35
  }
34
- export default function Split({ imageLabel, imageSrc, imageTint, imageObjectPosition, eyebrow, title, body, cta, reverse, uppercase, textAlign, textAlignPhone, textBgSrc, textBgLabel, textBgTint, textBgObjectPosition, featureBar, imageButton, grayscale, fillHeight, }: Props): import("react").JSX.Element;
36
+ export default function Split({ imageLabel, imageSrc, imageTint, imageObjectPosition, eyebrow, title, body, cta, reverse, uppercase, textAlign, textAlignPhone, textBgSrc, textBgLabel, textBgTint, textBgObjectPosition, featureBar, imageButton, grayscale, pictureHover, fillHeight, }: Props): import("react").JSX.Element;
35
37
  export {};
@@ -1 +1 @@
1
- import{jsx as e,jsxs as t}from"react/jsx-runtime";import{alignPhoneClass as U,blockAlignOf as A}from"../../format/lib/content/block-align.js";import{SiteLink as N}from"../lib/site-runtime.js";import F from"./Btn.js";import{resolveImageTreatment as G}from"../../format/lib/content/image-treatment.js";import j from"./Placeholder.js";import{useSitePhotography as H}from"./SitePhotographyContext.js";import X from"./SectionEyebrow.js";import{renderGold as a,renderHeadline as D,splitParagraphs as K}from"./goldPhrases.js";import{ON_MEDIA_INK_STYLE as R}from"../../format/lib/content/ink.js";import{scrim as Y}from"../../format/lib/content/scrim.js";import{SECTION_FILL_CLASS as Z}from"../../format/lib/content/section-min-height.js";const r={headingMediumUpTo800:"max-view-wide:text-[length:var(--size-headingMedium,36px)]",labelUpTo800:"max-view-wide:text-[length:var(--size-label,12px)]",headingMedium:"text-[length:min(var(--size-headingMedium,56px),var(--sf-heading-max,9999px))]",body:"text-[length:var(--size-body,16px)]",label:"text-[length:var(--size-label,13px)]"},$={words:{left:"min-[961px]:pl-[max(60px,calc(100%_-_var(--sf-content-cap,200%)/2_+_60px))]",right:"min-[961px]:pr-[max(60px,calc(100%_-_var(--sf-content-cap,200%)/2_+_60px))]"},buttons:{left:"min-[961px]:pl-[max(var(--sf-site-gutter,40px),calc(100%_-_var(--sf-content-cap,200%)/2_+_var(--sf-site-gutter,40px)))]",right:"min-[961px]:pr-[max(var(--sf-site-gutter,40px),calc(100%_-_var(--sf-content-cap,200%)/2_+_var(--sf-site-gutter,40px)))]"}};function q({imageLabel:p,imageSrc:d,imageTint:x=.4,imageObjectPosition:k,eyebrow:f,title:h,body:v,cta:o,reverse:n=!1,uppercase:T=!1,textAlign:g="left",textAlignPhone:b,textBgSrc:c,textBgLabel:z,textBgTint:u=.6,textBgObjectPosition:E,featureBar:i,imageButton:s,grayscale:L,fillHeight:I=!1}){const w=G(L,H()),y={left:{items:"",text:"",cta:"self-start"},center:{items:"items-center",text:"text-center",cta:"self-center"},right:{items:"items-end",text:"text-right",cta:"self-end"}},m=y[g]??y.left,P={left:{items:"max-view-tablet:items-stretch",cta:"max-view-tablet:self-start"},center:{items:"max-view-tablet:items-center",cta:"max-view-tablet:self-center"},right:{items:"max-view-tablet:items-end",cta:"max-view-tablet:self-end"}},_=U("text",g,b),l=_?{...P[A(b)??"left"],text:_}:void 0,S=n?"right":"left",M=n?"left":"right";return e("section",{className:"relative z-[2] bg-bg p-0",children:t("div",{className:["grid min-h-[72vh] grid-cols-2 border-t border-b border-line","max-[960px]:grid-cols-1","max-[960px]:min-h-0",n?"min-[961px]:[direction:rtl]":"",...I?[Z]:[]].join(" "),children:[t("div",{className:"sf-card relative flex items-center justify-center overflow-hidden bg-surface [direction:ltr] max-[960px]:aspect-[4/3] max-[960px]:order-2",style:n?{borderLeft:"1px solid var(--site-line)"}:{borderRight:"1px solid var(--site-line)"},children:[e(j,{label:p,src:d,objectPosition:k,treatment:w}),d&&x>0&&e("div",{className:"absolute inset-0",style:{background:`rgba(0,0,0,${x})`}}),(i||s)&&t("div",{className:`pointer-events-none absolute inset-0 z-[3] flex flex-col items-center justify-center gap-4 px-[var(--sf-site-gutter,40px)] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))] ${$.buttons[S]}`,children:[i&&t(N,{href:i.href,className:`pointer-events-auto inline-flex items-center justify-center gap-3 border px-7 py-4 font-mono ${r.label} uppercase tracking-[0.18em] backdrop-blur-sm transition-colors max-view-wide:gap-2 max-view-wide:px-5 max-view-wide:py-3 ${r.labelUpTo800}`,style:{borderColor:"color-mix(in srgb, var(--overlay-fg) 30%, transparent)",color:"color-mix(in srgb, var(--overlay-fg) 85%, transparent)",background:Y(.45)},children:[e("span",{children:a(i.wheel)}),e("span",{"aria-hidden":!0,style:{opacity:.55},children:"·"}),e("span",{children:a(i.category)}),e("span",{"aria-hidden":!0,children:"→"}),e("span",{children:a(i.cta??"Shop now")})]}),s&&t(N,{href:s.href,className:`pointer-events-auto inline-flex items-center justify-center gap-2 border px-7 py-4 font-mono ${r.label} uppercase tracking-[0.18em] backdrop-blur-sm transition-colors hover:bg-[color-mix(in_srgb,var(--overlay-fg)_10%,transparent)] max-view-wide:gap-2 max-view-wide:px-5 max-view-wide:py-3 ${r.labelUpTo800}`,style:{borderColor:"color-mix(in srgb, var(--overlay-fg) 50%, transparent)",color:"color-mix(in srgb, var(--overlay-fg) 95%, transparent)",background:"transparent"},children:[e("span",{children:a(s.text??"Learn more")}),e("span",{"aria-hidden":!0,children:"→"})]})]})]}),t("div",{className:"relative overflow-hidden [direction:ltr] max-[960px]:order-1",children:[c&&t("div",{className:"absolute inset-0","aria-hidden":!0,children:[e(j,{label:z??p,src:c,objectPosition:E,treatment:w}),u>0&&e("div",{className:"absolute inset-0",style:{background:`rgba(0,0,0,${u})`}})]}),e("div",{className:`relative z-[2] flex h-full min-h-full flex-col px-[60px] py-[100px] max-[960px]:px-6 max-[960px]:py-[60px] ${$.words[M]}`,style:c?R:void 0,children:t("div",{className:["flex flex-1 flex-col justify-center gap-6",m.items,m.text,l?.items,l?.text].filter(Boolean).join(" "),children:[f&&e(X,{text:f,size:14}),h&&e("h2",{className:[`font-heading2 ${r.headingMedium} font-normal leading-[1.05] tracking-[-0.03em]`,`${r.headingMediumUpTo800} max-view-wide:leading-[1]`,T?"uppercase":""].join(" "),children:D(h,!1)}),v&&K(v).map((C,O)=>e("p",{className:[`max-w-[520px] ${r.body} leading-[1.7]`,"text-fg-dim"].join(" "),children:a(C)},O)),o.text&&e("div",{className:`mt-2 ${m.cta}${l?` ${l.cta}`:""}`,children:e(F,{href:o.href,variant:"primary",children:a(o.text)})})]})})]})]})})}export{q as default};
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import{alignPhoneClass as A,blockAlignOf as F}from"../../format/lib/content/block-align.js";import{SiteLink as N}from"../lib/site-runtime.js";import G from"./Btn.js";import{resolveImageTreatment as H}from"../../format/lib/content/image-treatment.js";import j from"./Placeholder.js";import{useSitePhotography as X}from"./SitePhotographyContext.js";import D from"./SectionEyebrow.js";import{renderGold as a,renderHeadline as K,splitParagraphs as R}from"./goldPhrases.js";import{ON_MEDIA_INK_STYLE as Y}from"../../format/lib/content/ink.js";import{scrim as Z}from"../../format/lib/content/scrim.js";import{SECTION_FILL_CLASS as q}from"../../format/lib/content/section-min-height.js";const r={headingMediumUpTo800:"max-view-wide:text-[length:var(--size-headingMedium,36px)]",labelUpTo800:"max-view-wide:text-[length:var(--size-label,12px)]",headingMedium:"text-[length:min(var(--size-headingMedium,56px),var(--sf-heading-max,9999px))]",body:"text-[length:var(--size-body,16px)]",label:"text-[length:var(--size-label,13px)]"},$={words:{left:"min-[961px]:pl-[max(60px,calc(100%_-_var(--sf-content-cap,200%)/2_+_60px))]",right:"min-[961px]:pr-[max(60px,calc(100%_-_var(--sf-content-cap,200%)/2_+_60px))]"},buttons:{left:"min-[961px]:pl-[max(var(--sf-site-gutter,40px),calc(100%_-_var(--sf-content-cap,200%)/2_+_var(--sf-site-gutter,40px)))]",right:"min-[961px]:pr-[max(var(--sf-site-gutter,40px),calc(100%_-_var(--sf-content-cap,200%)/2_+_var(--sf-site-gutter,40px)))]"}};function J({imageLabel:p,imageSrc:d,imageTint:x=.4,imageObjectPosition:k,eyebrow:f,title:h,body:v,cta:o,reverse:n=!1,uppercase:T=!1,textAlign:g="left",textAlignPhone:b,textBgSrc:c,textBgLabel:z,textBgTint:u=.6,textBgObjectPosition:E,featureBar:i,imageButton:s,grayscale:L,pictureHover:I,fillHeight:P=!1}){const w=H(L,X(),I),y={left:{items:"",text:"",cta:"self-start"},center:{items:"items-center",text:"text-center",cta:"self-center"},right:{items:"items-end",text:"text-right",cta:"self-end"}},m=y[g]??y.left,S={left:{items:"max-view-tablet:items-stretch",cta:"max-view-tablet:self-start"},center:{items:"max-view-tablet:items-center",cta:"max-view-tablet:self-center"},right:{items:"max-view-tablet:items-end",cta:"max-view-tablet:self-end"}},_=A("text",g,b),l=_?{...S[F(b)??"left"],text:_}:void 0,M=n?"right":"left",C=n?"left":"right";return e("section",{className:"relative z-[2] bg-bg p-0",children:t("div",{className:["grid min-h-[72vh] grid-cols-2 border-t border-b border-line","max-[960px]:grid-cols-1","max-[960px]:min-h-0",n?"min-[961px]:[direction:rtl]":"",...P?[q]:[]].join(" "),children:[t("div",{className:"sf-card relative flex items-center justify-center overflow-hidden bg-surface [direction:ltr] max-[960px]:aspect-[4/3] max-[960px]:order-2",style:n?{borderLeft:"1px solid var(--site-line)"}:{borderRight:"1px solid var(--site-line)"},children:[e(j,{label:p,src:d,objectPosition:k,treatment:w}),d&&x>0&&e("div",{className:"absolute inset-0",style:{background:`rgba(0,0,0,${x})`}}),(i||s)&&t("div",{className:`pointer-events-none absolute inset-0 z-[3] flex flex-col items-center justify-center gap-4 px-[var(--sf-site-gutter,40px)] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))] ${$.buttons[M]}`,children:[i&&t(N,{href:i.href,className:`pointer-events-auto inline-flex items-center justify-center gap-3 border px-7 py-4 font-mono ${r.label} uppercase tracking-[0.18em] backdrop-blur-sm transition-colors max-view-wide:gap-2 max-view-wide:px-5 max-view-wide:py-3 ${r.labelUpTo800}`,style:{borderColor:"color-mix(in srgb, var(--overlay-fg) 30%, transparent)",color:"color-mix(in srgb, var(--overlay-fg) 85%, transparent)",background:Z(.45)},children:[e("span",{children:a(i.wheel)}),e("span",{"aria-hidden":!0,style:{opacity:.55},children:"·"}),e("span",{children:a(i.category)}),e("span",{"aria-hidden":!0,children:"→"}),e("span",{children:a(i.cta??"Shop now")})]}),s&&t(N,{href:s.href,className:`pointer-events-auto inline-flex items-center justify-center gap-2 border px-7 py-4 font-mono ${r.label} uppercase tracking-[0.18em] backdrop-blur-sm transition-colors hover:bg-[color-mix(in_srgb,var(--overlay-fg)_10%,transparent)] max-view-wide:gap-2 max-view-wide:px-5 max-view-wide:py-3 ${r.labelUpTo800}`,style:{borderColor:"color-mix(in srgb, var(--overlay-fg) 50%, transparent)",color:"color-mix(in srgb, var(--overlay-fg) 95%, transparent)",background:"transparent"},children:[e("span",{children:a(s.text??"Learn more")}),e("span",{"aria-hidden":!0,children:"→"})]})]})]}),t("div",{className:"relative overflow-hidden [direction:ltr] max-[960px]:order-1",children:[c&&t("div",{className:"absolute inset-0","aria-hidden":!0,children:[e(j,{label:z??p,src:c,objectPosition:E,treatment:w}),u>0&&e("div",{className:"absolute inset-0",style:{background:`rgba(0,0,0,${u})`}})]}),e("div",{className:`relative z-[2] flex h-full min-h-full flex-col px-[60px] py-[100px] max-[960px]:px-6 max-[960px]:py-[60px] ${$.words[C]}`,style:c?Y:void 0,children:t("div",{className:["flex flex-1 flex-col justify-center gap-6",m.items,m.text,l?.items,l?.text].filter(Boolean).join(" "),children:[f&&e(D,{text:f,size:14}),h&&e("h2",{className:[`font-heading2 ${r.headingMedium} font-normal leading-[1.05] tracking-[-0.03em]`,`${r.headingMediumUpTo800} max-view-wide:leading-[1]`,T?"uppercase":""].join(" "),children:K(h,!1)}),v&&R(v).map((O,U)=>e("p",{className:[`max-w-[520px] ${r.body} leading-[1.7]`,"text-fg-dim"].join(" "),children:a(O)},U)),o.text&&e("div",{className:`mt-2 ${m.cta}${l?` ${l.cta}`:""}`,children:e(G,{href:o.href,variant:"primary",children:a(o.text)})})]})})]})]})})}export{J as default};
@@ -7,9 +7,9 @@ interface TextProps {
7
7
  ownWidth?: boolean;
8
8
  text: string;
9
9
  number?: string;
10
- align: Align;
10
+ align?: Align;
11
11
  alignPhone?: unknown;
12
- tone: Tone;
12
+ tone?: Tone;
13
13
  tag?: string;
14
14
  textStyle?: string;
15
15
  contained: boolean;
@@ -1 +1 @@
1
- import{jsx as r,jsxs as _}from"react/jsx-runtime";import y from"./BlockFrame.js";import{renderGold as f,renderHeadline as k,splitParagraphs as w}from"./goldPhrases.js";import{headingLook as O}from"./Heading.js";import{alignPhoneClass as j}from"../../format/lib/content/block-align.js";import{textTagOf as z}from"../../format/lib/content/text-tag.js";import{KICKER_NUMBER_ATTR as I,kickerLead as L}from"../lib/content/page-contents.js";import{isTextStyleId as R}from"../lib/document/part-styles.js";import{faceClassOf as $}from"../../format/lib/text-style-face.js";import{useMirroredCopy as A}from"./MirrorContext.js";import{mirroredTextClasses as b}from"../../format/lib/content/mirror-cards.js";const i={bodyUpTo800:"max-view-wide:text-[length:var(--size-body,14px)]",bodySmall:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,17px)]",label:"text-[length:var(--size-label,13px)]"},T=e=>e?` ${e}`:"";function M(e,o){const t=j("place",e,o);return t?` ${t}`:""}const U={left:"text-left",center:"text-left mx-auto",right:"text-left ml-auto"},B=`max-w-[380px] ${i.bodySmall} leading-[1.5] opacity-80 ${i.bodyUpTo800}`,G={default:"text-fg",dim:"text-fg-dim"};function H(e){return String(Math.min(Number(e.slice(8)),6))}function K({text:e,number:o,align:t,alignPhone:N,tone:v,contained:p,hero:C=!1,pad:l,tag:S,textStyle:x,ownWidth:E=!1,partAlign:h,onLine:n=!1}){const u=A();if(C)return r("p",{className:B,children:f(e)});const d=o?r("span",{[I]:"",children:L(o)}):void 0,a=R(x)?x:void 0,g=`${a?`${$({id:a})} `:""}${E?"":"max-w-[680px] "}whitespace-pre-line ${a==="body-5"?i.label:i.bodyLarge} leading-[1.7] ${U[t]}${M(t,N)} ${G[v]}${T(b(u,t,h))}`,m=z(S);if(a?.startsWith("heading-")){const c=H(a),s=O(c,$({id:a}));return r(y,{contained:p,className:n?"":"py-6",pad:l?{values:l,frame:n?0:24}:void 0,children:_(m,{className:`${s.className}${T(b(u,void 0,h))}`,style:s.style,children:[d,k(e.trim(),!1)]})})}return r(y,{contained:p,className:n?"":"py-4",pad:l?{values:l,frame:n?0:16}:void 0,children:m==="p"?w(e).map((c,s)=>r("p",{className:g,children:f(c,!1,s===0?d:void 0)},s)):r(m,{className:g,children:f(e.trim(),!1,d)})})}export{K as default,H as headingLevelOfStyle};
1
+ import{jsx as r,jsxs as _}from"react/jsx-runtime";import b from"./BlockFrame.js";import{renderGold as p,renderHeadline as k,splitParagraphs as w}from"./goldPhrases.js";import{headingLook as O}from"./Heading.js";import{alignPhoneClass as j}from"../../format/lib/content/block-align.js";import{textTagOf as z}from"../../format/lib/content/text-tag.js";import{KICKER_NUMBER_ATTR as I,kickerLead as L}from"../lib/content/page-contents.js";import{isTextStyleId as R}from"../lib/document/part-styles.js";import{faceClassOf as T}from"../../format/lib/text-style-face.js";import{useMirroredCopy as A}from"./MirrorContext.js";import{mirroredTextClasses as N}from"../../format/lib/content/mirror-cards.js";const i={bodyUpTo800:"max-view-wide:text-[length:var(--size-body,14px)]",bodySmall:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,17px)]",label:"text-[length:var(--size-label,13px)]"},d=e=>e?` ${e}`:"";function M(e,o){const t=j("place",e,o);return t?` ${t}`:""}const U={left:"text-left",center:"text-left mx-auto",right:"text-left ml-auto"},B=`max-w-[380px] ${i.bodySmall} leading-[1.5] opacity-80 ${i.bodyUpTo800}`,G={default:"text-fg",dim:"text-fg-dim"};function H(e){return String(Math.min(Number(e.slice(8)),6))}function K({text:e,number:o,align:t,alignPhone:v,tone:x,contained:h,hero:C=!1,pad:l,tag:S,textStyle:u,ownWidth:E=!1,partAlign:g,onLine:n=!1}){const y=A();if(C)return r("p",{className:B,children:p(e)});const m=o?r("span",{[I]:"",children:L(o)}):void 0,a=R(u)?u:void 0,$=`${a?`${T({id:a})} `:""}${E?"":"max-w-[680px] "}whitespace-pre-line ${a==="body-5"?i.label:i.bodyLarge} leading-[1.7]${d(t?U[t]:"")}${M(t,v)}${d(x?G[x]:"")}${d(N(y,t,g))}`,c=z(S);if(a?.startsWith("heading-")){const f=H(a),s=O(f,T({id:a}));return r(b,{contained:h,className:n?"":"py-6",pad:l?{values:l,frame:n?0:24}:void 0,children:_(c,{className:`${s.className}${d(N(y,void 0,g))}`,style:s.style,children:[m,k(e.trim(),!1)]})})}return r(b,{contained:h,className:n?"":"py-4",pad:l?{values:l,frame:n?0:16}:void 0,children:c==="p"?w(e).map((f,s)=>r("p",{className:$,children:p(f,!1,s===0?m:void 0)},s)):r(c,{className:$,children:p(e.trim(),!1,m)})})}export{K as default,H as headingLevelOfStyle};
@@ -1,2 +1,2 @@
1
- import{jsxs as a,jsx as t}from"react/jsx-runtime";import{Fragment as h}from"react";import{parseHexColor as N}from"efficient-shell/format";import{linePrefix as _,storefrontLines as S}from"../../format/lib/markup.js";import{COLOUR_TOKEN as p,WORD_STYLE_ATTR as g,WORD_STYLE_BY_KIND as E}from"../../format/lib/word-styles.js";import f from"./PartStyledText.js";import{withRMark as d}from"./RMark.js";function T(e,n=!1,s){const r=x(n),c=S(e);if(c.length===1){const[o]=c,l=_(o),L=l?A(l,o.children):o.children;return a(f,{value:e,children:[s,u(L,r)]})}const i=[];return c.forEach((o,l)=>{if(o.bullet){i.push(t("span",{"data-sf-bullet":"",className:C,children:u(o.children,r)},l));return}if(o.number!=null){i.push(a("span",{"data-sf-number":o.number,className:R,children:[a("span",{className:k,children:[o.number,"."]}),u(o.children,r)]},l));return}l>0&&!w(c[l-1])&&i.push(t("br",{},`br${l}`)),i.push(t(h,{children:u(o.children,r)},l))}),a(f,{value:e,children:[s,i]})}const C="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['·']",R="relative block pl-[2em]",k="absolute left-0 w-[1.6em] text-right tabular-nums";function w(e){return e.bullet||e.number!=null}const O="text-accent underline underline-offset-[0.18em]";function A(e,n){const[s,...r]=n;return s?.kind==="text"?[{kind:"text",text:`${e}${s.text}`},...r]:[{kind:"text",text:e},...n]}function B(e){if(e)return N(e)===e.toLowerCase()?e:Object.hasOwn(p,e)?p[e]:void 0}function u(e,n){const s=[];let r=!1;return e.forEach((c,i)=>{if(c.kind==="text"){s.push(t("span",{children:d(c.text)},i)),r=!0;return}r||s.push(t("span",{},`e${i}`)),s.push(b(c,i,n)),r=!1}),r||s.push(t("span",{},"end")),s}function m(e,n){return e.length===1&&e[0].kind==="text"?d(e[0].text):e.map((s,r)=>s.kind==="text"?t(h,{children:d(s.text)},r):b(s,r,n))}function D(e,n=!1){return u(e,x(n))}function x(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function P(e){return t(f,{value:e,children:t("span",{children:e})})}function b(e,n,s){if(e.kind==="link")return t("a",{href:e.href,className:O,children:m(e.children,s)},n);const r=m(e.children,s),c=E[e.kind];if(c)return t("span",{[g]:c,children:r},n);switch(e.kind){case"underline":return t("u",{children:r},n);case"sup":return t("sup",{children:r},n);case"sub":return t("sub",{children:r},n);case"color":{const i=B(e.color);return i?t("span",{style:{color:i},children:r},n):t("span",{children:r},n)}case"accent":case"highlight":return t("em",{className:s,children:r},n);case"bold":return t("strong",{className:"font-semibold",children:r},n);case"italic":return t("em",{className:"italic",children:r},n);case"strike":return t("s",{className:"line-through",children:r},n);default:return t("span",{children:r},n)}}function Y(e,n=!0){const s=e.split(`
2
- `);return t(f,{value:e,children:s.map((r,c)=>a("span",{children:[T(r,n),c<s.length-1?t("br",{}):null]},c))})}function H(e){return e.split(/\n\s*\n/).map(n=>n.trim()).filter(Boolean)}export{P as renderChrome,T as renderGold,Y as renderHeadline,D as renderMarkupNodes,H as splitParagraphs};
1
+ import{jsxs as a,jsx as t}from"react/jsx-runtime";import{Fragment as h}from"react";import{linePrefix as N,storefrontLines as L}from"../../format/lib/markup.js";import{WORD_STYLE_ATTR as _,WORD_STYLE_BY_KIND as S}from"../../format/lib/word-styles.js";import{partInkCss as g}from"../../format/lib/document/part-inks.js";import f from"./PartStyledText.js";import{withRMark as d}from"./RMark.js";function E(e,n=!1,s){const r=m(n),c=L(e);if(c.length===1){const[i]=c,o=N(i),b=o?C(o,i.children):i.children;return a(f,{value:e,children:[s,u(b,r)]})}const l=[];return c.forEach((i,o)=>{if(i.bullet){l.push(t("span",{"data-sf-bullet":"",className:k,children:u(i.children,r)},o));return}if(i.number!=null){l.push(a("span",{"data-sf-number":i.number,className:T,children:[a("span",{className:R,children:[i.number,"."]}),u(i.children,r)]},o));return}o>0&&!A(c[o-1])&&l.push(t("br",{},`br${o}`)),l.push(t(h,{children:u(i.children,r)},o))}),a(f,{value:e,children:[s,l]})}const k="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['·']",T="relative block pl-[2em]",R="absolute left-0 w-[1.6em] text-right tabular-nums";function A(e){return e.bullet||e.number!=null}const B="text-accent underline underline-offset-[0.18em]";function C(e,n){const[s,...r]=n;return s?.kind==="text"?[{kind:"text",text:`${e}${s.text}`},...r]:[{kind:"text",text:e},...n]}function I(e){return g(e)||void 0}function u(e,n){const s=[];let r=!1;return e.forEach((c,l)=>{if(c.kind==="text"){s.push(t("span",{children:d(c.text)},l)),r=!0;return}r||s.push(t("span",{},`e${l}`)),s.push(x(c,l,n)),r=!1}),r||s.push(t("span",{},"end")),s}function p(e,n){return e.length===1&&e[0].kind==="text"?d(e[0].text):e.map((s,r)=>s.kind==="text"?t(h,{children:d(s.text)},r):x(s,r,n))}function P(e,n=!1){return u(e,m(n))}function m(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function U(e){return t(f,{value:e,children:t("span",{children:e})})}function x(e,n,s){if(e.kind==="link")return t("a",{href:e.href,className:B,children:p(e.children,s)},n);const r=p(e.children,s),c=S[e.kind];if(c)return t("span",{[_]:c,children:r},n);switch(e.kind){case"underline":return t("u",{children:r},n);case"sup":return t("sup",{children:r},n);case"sub":return t("sub",{children:r},n);case"color":{const l=I(e.color);return l?t("span",{style:{color:l},children:r},n):t("span",{children:r},n)}case"accent":case"highlight":return t("em",{className:s,children:r},n);case"bold":return t("strong",{className:"font-semibold",children:r},n);case"italic":return t("em",{className:"italic",children:r},n);case"strike":return t("s",{className:"line-through",children:r},n);default:return t("span",{children:r},n)}}function Y(e,n=!0){const s=e.split(`
2
+ `);return t(f,{value:e,children:s.map((r,c)=>a("span",{children:[E(r,n),c<s.length-1?t("br",{}):null]},c))})}function v(e){return e.split(/\n\s*\n/).map(n=>n.trim()).filter(Boolean)}export{U as renderChrome,E as renderGold,Y as renderHeadline,P as renderMarkupNodes,v as splitParagraphs};
@@ -1,2 +1,2 @@
1
- import{phoneKey as u}from"efficient-easel/draw";import{ENTRANCE_STATE_ATTR as m,entranceAttrs as d}from"efficient-shell/format";import{ENTRANCE_KEYS as f,ENTRANCE_WRAPPER_CLASS as T,entranceDrawn as O}from"./entrance.js";import{HOVER_KEY as p,hoverOf as _}from"../../../format/lib/animation/hover.js";import{propsWithPartRecord as E,readPartRecord as P,readPartRecords as A}from"../../../format/lib/document/part-records.js";import{partLiftRules as R}from"../document/part-styles.js";const v={},i="_partMotion",b=[...Object.values(f).flatMap(t=>[t,u(t)]),p];function D(t){return A(t,i)}function S(t,e){return P(t,i,e)}const h=new Set([f.kind,p]);function K(t,e,n,o){const{[n]:s,...r}=S(t,e),c=o==null||o===""||o==="none"&&h.has(n)?r:{...r,[n]:o};return E(t,i,e,Object.keys(c).length?c:null)}function N(t){return{entrance:O(t),hover:_(t)}}function W(t){const e=N(t);return e.entrance!==null||e.hover!=="none"}function F(t,e){const{attrs:n,style:o}=d(e),s=Object.keys(n).filter(r=>n[r]!==void 0);for(const r of s)t.setAttribute(r,String(n[r]));for(const[r,a]of Object.entries(o))t.style.setProperty(r,String(a));return()=>{for(const r of s)t.removeAttribute(r);for(const r of Object.keys(o))t.style.removeProperty(r);t.removeAttribute(m)}}const x=4;function H(t){let e;for(const n of t)(!e||n.element.compareDocumentPosition(e.element)&x)&&(e=n);return e}const y="data-sf-part-host";function Y(t){const e=t?.ownerDocument.defaultView;let n=t;for(;n&&!n.hasAttribute(y)&&!n.classList.contains(T);){const o=e?.getComputedStyle(n).display??"";if(o==="contents")return null;if(o!=="inline")return n;n=n.parentElement}return null}const M="data-sf-part-lift",l="sf-part-lift";function B(t){if(t.getElementById(l))return;const e=t.createElement("style");e.id=l,e.textContent=R(`[${M}]`).join(`
2
- `),t.head.appendChild(e)}export{v as NO_MOTIONS,y as PART_HOST_ATTR,M as PART_LIFT_ATTR,b as PART_MOTION_KEYS,i as PART_MOTION_PROP,F as drawPartEntrance,B as ensurePartLiftSheet,H as firstOnPage,Y as partBoxOf,N as partMotionDrawn,W as partMoves,K as propsWithPartMotion,S as readPartMotion,D as readPartMotions};
1
+ import{phoneKey as m}from"efficient-easel/draw";import{ENTRANCE_STATE_ATTR as d,entranceAttrs as T}from"efficient-shell/format";import{ENTRANCE_KEYS as f,ENTRANCE_WRAPPER_CLASS as _,entranceDrawn as E}from"./entrance.js";import{CARD_HOVER_KEYS as p,HOVER_KEY as l,hoverOf as O}from"../../../format/lib/animation/hover.js";import{propsWithPartRecord as P,readPartRecord as R,readPartRecords as A}from"../../../format/lib/document/part-records.js";import{partLiftRules as S}from"../document/part-styles.js";const D={},i="_partMotion",b=[...Object.values(f).flatMap(t=>[t,m(t)]),l,p.duration,p.delay];function K(t){return A(t,i)}function h(t,e){return R(t,i,e)}const N=new Set([f.kind,l]);function H(t,e,n,o){const{[n]:s,...r}=h(t,e),c=o==null||o===""||o==="none"&&N.has(n)?r:{...r,[n]:o};return P(t,i,e,Object.keys(c).length?c:null)}function x(t){return{entrance:E(t),hover:O(t)}}function W(t){const e=x(t);return e.entrance!==null||e.hover!=="none"}function Y(t,e){const{attrs:n,style:o}=T(e),s=Object.keys(n).filter(r=>n[r]!==void 0);for(const r of s)t.setAttribute(r,String(n[r]));for(const[r,a]of Object.entries(o))t.style.setProperty(r,String(a));return()=>{for(const r of s)t.removeAttribute(r);for(const r of Object.keys(o))t.style.removeProperty(r);t.removeAttribute(d)}}const y=4;function F(t){let e;for(const n of t)(!e||n.element.compareDocumentPosition(e.element)&y)&&(e=n);return e}const M="data-sf-part-host";function V(t){const e=t?.ownerDocument.defaultView;let n=t;for(;n&&!n.hasAttribute(M)&&!n.classList.contains(_);){const o=e?.getComputedStyle(n).display??"";if(o==="contents")return null;if(o!=="inline")return n;n=n.parentElement}return null}const w="data-sf-part-lift",u="sf-part-lift";function B(t){if(t.getElementById(u))return;const e=t.createElement("style");e.id=u,e.textContent=S(`[${w}]`).join(`
2
+ `),t.head.appendChild(e)}export{D as NO_MOTIONS,M as PART_HOST_ATTR,w as PART_LIFT_ATTR,b as PART_MOTION_KEYS,i as PART_MOTION_PROP,Y as drawPartEntrance,B as ensurePartLiftSheet,F as firstOnPage,V as partBoxOf,x as partMotionDrawn,W as partMoves,H as propsWithPartMotion,h as readPartMotion,K as readPartMotions};
@@ -8,6 +8,7 @@ export declare const TEXT_FIT_ATTR: {
8
8
  };
9
9
  export type BlockSizeTwin = {
10
10
  desktop?: unknown;
11
+ tablet?: unknown;
11
12
  phone?: unknown;
12
13
  };
13
14
  export type BlockSizeValues = Partial<Record<BlockSizeKey, BlockSizeTwin>>;
@@ -1 +1 @@
1
- import{BLOCK_FIXED_WIDTH as W,BLOCK_SIZE_KEYS as I,parseBlockWidthFit as m,phoneKey as T,parseTextFit as b}from"efficient-easel/draw";const L="sf-block-size",p={fit:"data-fit",fitPhone:"data-fit-phone",min:"data-fit-min",minPhone:"data-fit-min-phone"},s=e=>typeof e=="number"&&Number.isFinite(e)&&e>=0?e:void 0,g={desktop:{fill:"view-wide:w-full view-wide:[.flex-row>&]:grow",fixed:"view-wide:w-[min(var(--sf-bw),100%)] view-wide:basis-auto! view-wide:grow-0! view-wide:shrink-0"},phone:{fill:"max-view-wide:w-full",fixed:"max-view-wide:w-[min(var(--sf-bw-p),100%)] max-view-wide:basis-auto! max-view-wide:grow-0! max-view-wide:shrink-0"}},E={desktop:"--sf-bw",phone:"--sf-bw-p"},O={minWidth:{desktop:["--sf-bmin","view-wide:min-w-[var(--sf-bmin)]!"],phone:["--sf-bmin-p","max-view-wide:min-w-[var(--sf-bmin-p)]!"]},maxWidth:{desktop:["--sf-bmax","view-wide:max-w-[var(--sf-bmax)]"],phone:["--sf-bmax-p","max-view-wide:max-w-[var(--sf-bmax-p)]"]}},u={desktop:"view-wide:whitespace-nowrap view-wide:[&_*]:whitespace-nowrap!",phone:"max-view-wide:whitespace-nowrap max-view-wide:[&_*]:whitespace-nowrap!"};function C(e){const i=[],n={},t={},f=m(e.widthFit?.desktop),l=m(e.widthFit?.phone)??f,r=s(e.width?.desktop),v=s(e.width?.phone)??r;for(const[d,o,c]of[["desktop",f,r],["phone",l,v]])!o||o==="fit"||(i.push(g[d][o]),o==="fixed"&&(n[E[d]]=`${c??W.fallback}px`));for(const d of["minWidth","maxWidth"]){const o=s(e[d]?.desktop),c=s(e[d]?.phone)??o;for(const[S,k]of[["desktop",o],["phone",c]]){if(k===void 0)continue;const[_,F]=O[d][S];n[_]=`${k}px`,i.push(F)}}const w=b(e.textFit?.desktop),h=b(e.textFit?.phone),a=s(e.minFont?.desktop),x=s(e.minFont?.phone);return w==="line"&&i.push(u.desktop),(h??w)==="line"&&i.push(u.phone),w&&(t[p.fit]=w),h&&(t[p.fitPhone]=h),a!==void 0&&(t[p.min]=String(a)),x!==void 0&&(t[p.minPhone]=String(x)),i.length===0&&Object.keys(t).length===0?null:{className:[L,...i].join(" "),style:n,attrs:t}}function P(e){if(s(e.maxWidth?.desktop)!==void 0)return!0;const i=m(e.widthFit?.desktop);return i==="fill"||i==="fixed"}function A(e){const i={};for(const n of I){const t=e[n],f=e[T(n)];(t!==void 0||f!==void 0)&&(i[n]={desktop:t,phone:f})}return i}export{L as BLOCK_SIZE_CLASS,p as TEXT_FIT_ATTR,P as blockSetsItsWidth,C as blockSizeOf,A as blockSizeValuesOf};
1
+ import{BLOCK_FIXED_WIDTH as I,BLOCK_SIZE_KEYS as T,parseBlockWidthFit as l,phoneKey as F,parseTextFit as v,tabletKey as g}from"efficient-easel/draw";const L="sf-block-size",b={fit:"data-fit",fitPhone:"data-fit-phone",min:"data-fit-min",minPhone:"data-fit-min-phone"},d=e=>typeof e=="number"&&Number.isFinite(e)&&e>=0?e:void 0,E={desktop:{fill:"view-wide:w-full view-wide:[.flex-row>&]:grow",fixed:"view-wide:w-[min(var(--sf-bw),100%)] view-wide:basis-auto! view-wide:grow-0! view-wide:shrink-0"},phone:{fill:"max-view-wide:w-full",fixed:"max-view-wide:w-[min(var(--sf-bw-p),100%)] max-view-wide:basis-auto! max-view-wide:grow-0! max-view-wide:shrink-0"}},A={desktop:{fill:"view-desktop:w-full view-desktop:[.flex-row>&]:grow",fixed:"view-desktop:w-[min(var(--sf-bw),100%)] view-desktop:basis-auto! view-desktop:grow-0! view-desktop:shrink-0"},tablet:{fill:"view-tablet:max-view-desktop:w-full view-wide:max-view-desktop:[.flex-row>&]:grow",fixed:"view-tablet:max-view-desktop:w-[min(var(--sf-bw-t),100%)] view-tablet:max-view-desktop:basis-auto! view-tablet:max-view-desktop:grow-0! view-tablet:max-view-desktop:shrink-0"},phone:{fill:"max-view-tablet:w-full",fixed:"max-view-tablet:w-[min(var(--sf-bw-p),100%)] max-view-tablet:basis-auto! max-view-tablet:grow-0! max-view-tablet:shrink-0"}},C={desktop:"--sf-bw",tablet:"--sf-bw-t",phone:"--sf-bw-p"},K={minWidth:{desktop:["--sf-bmin","view-wide:min-w-[var(--sf-bmin)]!"],phone:["--sf-bmin-p","max-view-wide:min-w-[var(--sf-bmin-p)]!"]},maxWidth:{desktop:["--sf-bmax","view-wide:max-w-[var(--sf-bmax)]"],phone:["--sf-bmax-p","max-view-wide:max-w-[var(--sf-bmax-p)]"]}},O={minWidth:{desktop:["--sf-bmin","view-desktop:min-w-[var(--sf-bmin)]!"],tablet:["--sf-bmin-t","view-tablet:max-view-desktop:min-w-[var(--sf-bmin-t)]!"],phone:["--sf-bmin-p","max-view-tablet:min-w-[var(--sf-bmin-p)]!"]},maxWidth:{desktop:["--sf-bmax","view-desktop:max-w-[var(--sf-bmax)]"],tablet:["--sf-bmax-t","view-tablet:max-view-desktop:max-w-[var(--sf-bmax-t)]"],phone:["--sf-bmax-p","max-view-tablet:max-w-[var(--sf-bmax-p)]"]}},y=["widthFit","width","minWidth","maxWidth"],k={desktop:"view-wide:whitespace-nowrap view-wide:[&_*]:whitespace-nowrap!",phone:"max-view-wide:whitespace-nowrap max-view-wide:[&_*]:whitespace-nowrap!"};function P(e){const n=[],s={},o={},w=y.some(t=>{const i=e[t]?.tablet;return t==="widthFit"?l(i)!==void 0:d(i)!==void 0}),f=w?["desktop","tablet","phone"]:["desktop","phone"],r=(t,i)=>{const a=t(i?.desktop),m=w?t(i?.tablet)??a:a;return{desktop:a,tablet:m,phone:t(i?.phone)??m}},u=r(l,e.widthFit),_=r(d,e.width);for(const t of f){const i=u[t];!i||i==="fit"||(n.push(w?A[t][i]:E[t][i]),i==="fixed"&&(s[C[t]]=`${_[t]??I.fallback}px`))}for(const t of["minWidth","maxWidth"]){const i=r(d,e[t]);for(const a of f){const m=i[a];if(m===void 0)continue;const[S,W]=w?O[t][a]:K[t][a];s[S]=`${m}px`,n.push(W)}}const p=v(e.textFit?.desktop),x=v(e.textFit?.phone),h=d(e.minFont?.desktop),c=d(e.minFont?.phone);return p==="line"&&n.push(k.desktop),(x??p)==="line"&&n.push(k.phone),p&&(o[b.fit]=p),x&&(o[b.fitPhone]=x),h!==void 0&&(o[b.min]=String(h)),c!==void 0&&(o[b.minPhone]=String(c)),n.length===0&&Object.keys(o).length===0?null:{className:[L,...n].join(" "),style:s,attrs:o}}function B(e){if(d(e.maxWidth?.desktop)!==void 0)return!0;const n=l(e.widthFit?.desktop);return n==="fill"||n==="fixed"}function H(e){const n={};for(const s of T){const o=e[s],w=e[g(s)],f=e[F(s)];(o!==void 0||w!==void 0||f!==void 0)&&(n[s]={desktop:o,tablet:w,phone:f})}return n}export{L as BLOCK_SIZE_CLASS,b as TEXT_FIT_ATTR,B as blockSetsItsWidth,P as blockSizeOf,H as blockSizeValuesOf};
@@ -1 +1 @@
1
- import{REPEAT_ATTRIBUTE as l,phoneKey as f,tabletKey as b}from"efficient-easel/draw";import{parseLoop as C}from"../../../format/lib/animation/loop.js";import{finiteNumber as S}from"../../../format/lib/finite-number.js";import{isBackgroundBox as _}from"../../../format/lib/content/box-background.js";import{isStripBox as g}from"../../../format/lib/content/box-separator.js";import{BOX_ALIGN_CLASS as r,boxRowColumnsClass as x,boxRowTabletColumnsClass as E}from"../../../format/lib/content/box-layout.js";const i="sharedColumns",c="shared",$="own",u="scroll",U="Row columns",M=[{value:$,label:"Each row"},{value:c,label:"Shared"}],B=[{value:$,label:"Each row"},{value:u,label:"Shared, scroll"}],O="(width >= 800px)",N="(width < 800px)";function A(t){const o={direction:t.direction,separator:t.separator,loop:C(t.loop),line:t.line};return o.direction==="row"&&!g(o.direction,o.separator)&&o.loop!=="scroll"&&o.line!==!0&&!_(typeof t.bgImage=="string"?t.bgImage:void 0)&&x({...o,columns:t.columns})===""&&E({...o,columnsTablet:t[b("columns")]})===""}function R(t){return Array.isArray(t)?t.filter(o=>typeof o?.type=="string").length:S(t?.blockCount)??0}function K(t){return A(t)&&a(R(t.content))>0?y(t[i],t[f(i)]):{desktop:!1,phone:!1}}const a=t=>Number.isInteger(t)&&t>0?t:0,d=t=>`sf-shared-cols-${t}`,m=t=>`sf-shared-cols-phone-${t}`;function y(t,o){return{desktop:t===c,phone:o===u}}function F(t,o){const n=a(o);return n?`${t.desktop?` ${d(n)}`:""}${t.phone?` ${m(n)}`:""}`:""}function p(t){const o=`[${l}]`;return`:has(> ${o} ${t}):not(:has(> ${o} ${o} ${t}))`}function h(t,o,n=""){const e=p(t);return`${e}{display:grid;grid-template-columns:${o};column-gap:0${n}}${e}>:not(:has(${t})):not(${t}){grid-column:1/-1}${e} :has(${t}),${e} ${t}{display:grid;grid-template-columns:subgrid;grid-column:1/-1;min-width:0}`}const L="data-sf-shared-plain";function H(t){const o=`[${l}]`,n=`[${L}]`,e=p(t)+`:not(:has(> :not(${o}) > :not(${n}) ${t})):not(:has(> ${o} > * > :not(${n}) ${t})):not(:has(:not(${n}) > :not(${n}) > ${t}))`,s=`${e}>:not(style):not(:has(${t})):not(${t})`;return`${e}{display:table;width:100%;border-collapse:collapse}${e}>:has(${t}),${e}>${o}>:has(${t}),${e} ${n}:has(${t}),${e} ${n}>:has(${t}){display:contents}${e} ${t}{display:table-row}${e} ${t}>*{display:table-cell;width:auto;vertical-align:top}${e} ${t}.${r.center}>*{vertical-align:middle}${e} ${t}.${r.end}>*{vertical-align:bottom}${s}{display:table-caption;caption-side:bottom}${s}:has(~ ${o}){caption-side:top}`}function w(t,o){const n=a(o);if(!n)return"";let e="";if(t.desktop){const s=`.${d(n)}`;e+=`@media ${O}{${h(s,`repeat(${n},auto)`)}${H(s)}}`}return t.phone&&(e+=`@media ${N}{${h(`.${m(n)}`,`repeat(${n},minmax(max-content,auto))`,";overflow-x:auto")}}`),e}export{i as SHARED_COLUMNS_KEY,U as SHARED_COLUMNS_LABEL,$ as SHARED_COLUMNS_OFF,B as SHARED_COLUMNS_PHONE_POINTS,M as SHARED_COLUMNS_POINTS,L as SHARED_PLAIN_ATTR,F as sharedColumnsClasses,w as sharedColumnsCss,K as sharedColumnsDrawn,A as sharedColumnsFits};
1
+ import{REPEAT_ATTRIBUTE as l,phoneKey as f,tabletKey as b}from"efficient-easel/draw";import{parseLoop as C}from"../../../format/lib/animation/loop.js";import{finiteNumber as S}from"../../../format/lib/finite-number.js";import{isBackgroundBox as _}from"../../../format/lib/content/box-background.js";import{isStripBox as g}from"../../../format/lib/content/box-separator.js";import{CARD_STATE_ATTR as A}from"../../../format/lib/content/card-state.js";import{BOX_ALIGN_CLASS as r,boxRowColumnsClass as E,boxRowTabletColumnsClass as x}from"../../../format/lib/content/box-layout.js";const i="sharedColumns",$="shared",c="own",u="scroll",B="Row columns",K=[{value:c,label:"Each row"},{value:$,label:"Shared"}],F=[{value:c,label:"Each row"},{value:u,label:"Shared, scroll"}],O="(width >= 800px)",R="(width < 800px)";function N(t){const o={direction:t.direction,separator:t.separator,loop:C(t.loop),line:t.line};return o.direction==="row"&&!g(o.direction,o.separator)&&o.loop!=="scroll"&&o.line!==!0&&!_(typeof t.bgImage=="string"?t.bgImage:void 0)&&E({...o,columns:t.columns})===""&&x({...o,columnsTablet:t[b("columns")]})===""}function y(t){return Array.isArray(t)?t.filter(o=>typeof o?.type=="string").length:S(t?.blockCount)??0}function w(t){return N(t)&&a(y(t.content))>0?T(t[i],t[f(i)]):{desktop:!1,phone:!1}}const a=t=>Number.isInteger(t)&&t>0?t:0,d=t=>`sf-shared-cols-${t}`,m=t=>`sf-shared-cols-phone-${t}`;function T(t,o){return{desktop:t===$,phone:o===u}}function G(t,o){const n=a(o);return n?`${t.desktop?` ${d(n)}`:""}${t.phone?` ${m(n)}`:""}`:""}function p(t){const o=`[${l}]`;return`:has(> ${o} ${t}):not(:has(> ${o} ${o} ${t}))`}function h(t,o,n=""){const e=p(t);return`${e}{display:grid;grid-template-columns:${o};column-gap:0${n}}${e}>:not(:has(${t})):not(${t}){grid-column:1/-1}${e} :has(${t}),${e} ${t}{display:grid;grid-template-columns:subgrid;grid-column:1/-1;min-width:0}`}const L="data-sf-shared-plain";function D(t){const o=`[${l}]`,n=`[${L}]`,e=p(t)+`:not(:has(> :not(${o}) > :not(${n}) ${t})):not(:has(> ${o} > * > :not(${n}) ${t})):not(:has(:not(${n}) > :not(${n}) > ${t})):not(:has(> ${o}[${A}]))`,s=`${e}>:not(style):not(:has(${t})):not(${t})`;return`${e}{display:table;width:100%;border-collapse:collapse}${e}>:has(${t}),${e}>${o}>:has(${t}),${e} ${n}:has(${t}),${e} ${n}>:has(${t}){display:contents}${e} ${t}{display:table-row}${e} ${t}>*{display:table-cell;width:auto;vertical-align:top}${e} ${t}.${r.center}>*{vertical-align:middle}${e} ${t}.${r.end}>*{vertical-align:bottom}${s}{display:table-caption;caption-side:bottom}${s}:has(~ ${o}){caption-side:top}`}function X(t,o){const n=a(o);if(!n)return"";let e="";if(t.desktop){const s=`.${d(n)}`;e+=`@media ${O}{${h(s,`repeat(${n},auto)`)}${D(s)}}`}return t.phone&&(e+=`@media ${R}{${h(`.${m(n)}`,`repeat(${n},minmax(max-content,auto))`,";overflow-x:auto")}}`),e}export{i as SHARED_COLUMNS_KEY,B as SHARED_COLUMNS_LABEL,c as SHARED_COLUMNS_OFF,F as SHARED_COLUMNS_PHONE_POINTS,K as SHARED_COLUMNS_POINTS,L as SHARED_PLAIN_ATTR,G as sharedColumnsClasses,X as sharedColumnsCss,w as sharedColumnsDrawn,N as sharedColumnsFits};
@@ -1 +1 @@
1
- import{jsx as s,jsxs as j,Fragment as u}from"react/jsx-runtime";import v,{cardGridCornerClasses as H}from"../../../../../components/Cards.js";import{CardTemplateRows as I}from"../../../../../components/CardRowContext.js";import{cardKeyOf as K,cardRow as T}from"../../../../../../format/lib/content/card-template.js";import B from"../../../../../components/KeyFeatures.js";import{hidableText as D}from"efficient-easel/draw";import{declaredBlockSource as w,sourceChoices as L,sourcedRows as C}from"../../../../../../format/lib/content/block-sources.js";import{KEY_FEATURES_PH as k,keyFeaturesScaffoldItems as N}from"../../../../../../format/lib/document/blocks/general/KeyFeatures/meta.js";import{parseSectionHeadPlacement as P}from"../../../../../../format/lib/sections/section-head-placement.js";import{parseSectionEyebrowLook as S}from"../../../../../../format/lib/sections/section-eyebrow-look.js";import{phRows as E,phHide as y}from"../../scaffold.js";import{say as m}from"../../../../../../format/lib/editor-words.js";import{SERVED_CARD_FIELDS as h}from"../../../../../../format/lib/document/blocks/general/Cards/card-seed.js";import{CardsMeta as O,CARDS_PH as R}from"../../../../../../format/lib/document/blocks/general/Cards/meta.js";const x=()=>[{title:m("Card title one"),body:m("A short line about this card.")},{title:m("Card title two"),body:m("A short line about this card.")},{title:m("Card title three"),body:m("A short line about this card.")}],A=()=>x().map(e=>({[h.title]:e.title??"",[h.body]:e.body??""}));function W(e){return w(e)?C(e,e.editor?.isEditing===!0,A()).rows.filter(i=>i[h.title]||i[h.body]).map(i=>({title:i[h.title]??"",body:i[h.body]??""})):null}const G=e=>typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",_=e=>Object.entries(e).some(([i,r])=>i!=="key"&&i!=="badge"&&typeof r=="string"&&r.trim()!==""),F=new WeakSet;function M(e){const i=e.editor?.isEditing===!0,r=w(e),d=G(e),n=typeof e.highlightBadge=="string"?e.highlightBadge:"",c=(t,g=[])=>t.map((l,f)=>({...l,key:l.key||g[f]?.key||K(l,f)})),a=t=>{const g=d?t.findIndex(l=>l.key===d):-1;return t.map((l,f)=>{const b={...l,badge:f===g?n:""};return f===g&&F.add(b),b})};if(r){const t=C(e,i,A());return a(c(t.rows,t.sample?L(r):[]).filter(_))}const o=E(e.items,x(),e.editor).map(T);return a(c(o).filter(t=>i||_(t)))}function U(e,i,r){const d=r?`relative bg-bg ${r}`:"relative bg-bg";return F.has(i)?j("div",{className:d,"data-sf-card-highlighted":"",children:[e,s("span",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 border border-accent"})]}):s("div",{className:d,children:e})}const oe={...O,render:e=>{const i=P(e.headPlacement)==="own-box",r=o=>i?void 0:o,d=(e.template?.blockCount??0)>0,n=W(e);if((!d||e.cardStyle==="label-only")&&n&&!n.length)return s(u,{});if(e.cardStyle==="label-only"){const o=n?n.map(t=>({label:t.title??"",href:void 0})):Array.isArray(e.items)?e.items.map(t=>({label:D(t.title)??"",href:typeof t.href=="string"?t.href:void 0})):[];return s(B,{look:S(e.eyebrowLook,"KeyFeatures"),eyebrow:r(y(e.eyebrow,k.eyebrow,e.editor)),title:r(y(e.title,k.title,e.editor)),items:n?o:E(o,N(),e.editor),columns:e.columns,editing:e.editor?.isEditing})}const c=o=>s(v,{look:S(e.eyebrowLook,"Cards"),eyebrow:r(y(e.eyebrow,R.eyebrow,e.editor)),title:r(y(e.title,R.title,e.editor)),omitHead:i,editing:e.editor?.isEditing,cards:o}),a=d?M(e):[];return d&&n&&!a.length?s(u,{}):s(I,{ownerId:String(e.id??""),ownerType:"Cards",Template:e.template,rows:a,fallback:c(),wrapCopy:(o,t)=>U(o,t.row,H(t.index,a.length,e.columns)),children:o=>a.length?c(o):c()})}};export{oe as CardsRender};
1
+ import{jsx as m,Fragment as b}from"react/jsx-runtime";import{SECTION_GRID_COLUMN_CLASS as I}from"../../../../../../format/lib/content/section-min-height.js";import T,{cardGridCornerClasses as x}from"../../../../../components/Cards.js";import{CardTemplateRows as H}from"../../../../../components/CardRowContext.js";import{cardKeyOf as F,cardRow as L}from"../../../../../../format/lib/content/card-template.js";import D from"../../../../../components/KeyFeatures.js";import{hidableText as K}from"efficient-easel/draw";import{declaredBlockSource as u,sourceChoices as O,sourcedRows as C}from"../../../../../../format/lib/content/block-sources.js";import{KEY_FEATURES_PH as w,keyFeaturesScaffoldItems as B}from"../../../../../../format/lib/document/blocks/general/KeyFeatures/meta.js";import{parseSectionHeadPlacement as G}from"../../../../../../format/lib/sections/section-head-placement.js";import{parseSectionEyebrowLook as S}from"../../../../../../format/lib/sections/section-eyebrow-look.js";import{phRows as k,phHide as g}from"../../scaffold.js";import{say as h}from"../../../../../../format/lib/editor-words.js";import{SERVED_CARD_FIELDS as f}from"../../../../../../format/lib/document/blocks/general/Cards/card-seed.js";import{CardsMeta as N,CARDS_PH as E}from"../../../../../../format/lib/document/blocks/general/Cards/meta.js";const _=()=>[{title:h("Card title one"),body:h("A short line about this card.")},{title:h("Card title two"),body:h("A short line about this card.")},{title:h("Card title three"),body:h("A short line about this card.")}],R=()=>_().map(e=>({[f.title]:e.title??"",[f.body]:e.body??""}));function P(e){return u(e)?C(e,e.editor?.isEditing===!0,R()).rows.filter(i=>i[f.title]||i[f.body]).map(i=>({title:i[f.title]??"",body:i[f.body]??""})):null}const j=e=>typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",A=e=>Object.entries(e).some(([i,o])=>i!=="key"&&i!=="badge"&&typeof o=="string"&&o.trim()!=="");function v(e){const i=e.editor?.isEditing===!0,o=u(e),d=j(e),n=typeof e.highlightBadge=="string"?e.highlightBadge:"",s=(t,r=[])=>t.map((a,c)=>({...a,key:a.key||r[c]?.key||F(a,c)})),l=t=>{const r=d?t.findIndex(a=>a.key===d):-1;return{rows:t.map((a,c)=>({...a,badge:c===r?n:""})),states:t.map((a,c)=>c===r?$:M)}};if(o){const t=C(e,i,R());return l(s(t.rows,t.sample?O(o):[]).filter(A))}const y=k(e.items,_(),e.editor).map(L);return l(s(y).filter(t=>i||A(t)))}const $={highlighted:!0},M={};function U(e,i,o){const d=o?`relative grid ${I} bg-bg`:"relative bg-bg";return m("div",{className:i?`${d} ${i}`:d,children:e})}const de={...N,render:e=>{const i=G(e.headPlacement)==="own-box",o=t=>i?void 0:t,d=(e.template?.blockCount??0)>0,n=P(e);if((!d||e.cardStyle==="label-only")&&n&&!n.length)return m(b,{});if(e.cardStyle==="label-only"){const t=n?n.map(r=>({label:r.title??"",href:void 0})):Array.isArray(e.items)?e.items.map(r=>({label:K(r.title)??"",href:typeof r.href=="string"?r.href:void 0})):[];return m(D,{look:S(e.eyebrowLook,"KeyFeatures"),eyebrow:o(g(e.eyebrow,w.eyebrow,e.editor)),title:o(g(e.title,w.title,e.editor)),items:n?t:k(t,B(),e.editor),columns:e.columns,editing:e.editor?.isEditing})}const s=t=>m(T,{look:S(e.eyebrowLook,"Cards"),eyebrow:o(g(e.eyebrow,E.eyebrow,e.editor)),title:o(g(e.title,E.title,e.editor)),omitHead:i,editing:e.editor?.isEditing,cards:t}),{rows:l,states:y}=d?v(e):{rows:[],states:[]};return d&&n&&!l.length?m(b,{}):m(H,{ownerId:String(e.id??""),ownerType:"Cards",Template:e.template,rows:l,states:y,fallback:s(),wrapCopy:(t,r)=>U(t,x(r.index,l.length,e.columns),r.state?.highlighted===!0),children:t=>l.length?s(t):s()})}};export{de as CardsRender};
@@ -1 +1 @@
1
- import{Fragment as c,jsx as a}from"react/jsx-runtime";import m from"../../../../../components/ContactLocations.js";import{CONTACT_LOCATIONS_CARDS_PLACEHOLDER as l,CONTACT_LOCATIONS_DEFAULTS as n,contactLocationCardOfRow as u}from"../../../../../../format/lib/content/contact.js";import{declaredBlockSource as g,sourcedRows as s}from"../../../../../../format/lib/content/block-sources.js";import{phHideDefault as f}from"../../scaffold.js";import{say as i}from"../../../../../../format/lib/editor-words.js";import{ContactLocationsMeta as C}from"../../../../../../format/lib/document/blocks/general/ContactLocations/meta.js";const h=()=>[{name:i("Location name"),address:i("Street address"),state:i("State"),country:i("Country"),phone:"+00 000 0000",hours:i("Opening hours")}];function L(e){if(!g(e))return e.locations??l;const t=s(e,e.editor?.isEditing===!0,h());return t.rows.length?t.rows.map(u):null}function o(e,t,d){const r=f(e,t,d);return r!==void 0?r:e==null?void 0:""}const E={...C,render:e=>{const t=L(e);return t?a(m,{sectionNumber:o(e.sectionNumber,n.sectionNumber,e.editor),heading:o(e.heading,n.heading,e.editor),tagline:o(e.tagline,n.tagline,e.editor),galleryKicker:o(e.galleryKicker,n.galleryKicker,e.editor),galleryHint:o(e.galleryHint,n.galleryHint,e.editor),locations:t,mapTheme:e.mapTheme??n.mapTheme,imageShape:e.imageShape,editing:e.editor?.isEditing,nodeId:e.editor?.isEditing?e.id:void 0}):a(c,{})}};export{E as ContactLocationsRender};
1
+ import{Fragment as d,jsx as a}from"react/jsx-runtime";import m from"../../../../../components/ContactLocations.js";import{CONTACT_LOCATIONS_CARDS_PLACEHOLDER as u,CONTACT_LOCATIONS_DEFAULTS as n,contactLocationCardOfRow as l}from"../../../../../../format/lib/content/contact.js";import{declaredBlockSource as g,sourcedRows as f}from"../../../../../../format/lib/content/block-sources.js";import{phHideDefault as s}from"../../scaffold.js";import{say as i}from"../../../../../../format/lib/editor-words.js";import{pictureHoverOf as C}from"../../../../../../format/lib/animation/hover.js";import{ContactLocationsMeta as h}from"../../../../../../format/lib/document/blocks/general/ContactLocations/meta.js";const L=()=>[{name:i("Location name"),address:i("Street address"),state:i("State"),country:i("Country"),phone:"+00 000 0000",hours:i("Opening hours")}];function S(e){if(!g(e))return e.locations??u;const t=f(e,e.editor?.isEditing===!0,L());return t.rows.length?t.rows.map(l):null}function o(e,t,c){const r=s(e,t,c);return r!==void 0?r:e==null?void 0:""}const w={...h,render:e=>{const t=S(e);return t?a(m,{sectionNumber:o(e.sectionNumber,n.sectionNumber,e.editor),heading:o(e.heading,n.heading,e.editor),tagline:o(e.tagline,n.tagline,e.editor),galleryKicker:o(e.galleryKicker,n.galleryKicker,e.editor),galleryHint:o(e.galleryHint,n.galleryHint,e.editor),locations:t,mapTheme:e.mapTheme??n.mapTheme,imageShape:e.imageShape,pictureHover:C(e,"ContactLocations"),editing:e.editor?.isEditing,nodeId:e.editor?.isEditing?e.id:void 0}):a(d,{})}};export{w as ContactLocationsRender};
@@ -1 +1 @@
1
- import{jsx as n}from"react/jsx-runtime";import{phoneKey as o,tabletKey as l}from"efficient-easel/draw";import{sharedColumnsDrawn as c}from"../../../../content/box-shared-columns.js";import{CountRowsContext as d,NO_COUNTS as r}from"../../../../../components/CountRowsContext.js";import m from"../../../../../components/Flex.js";import{loopDelayOf as h,loopSecondsOf as g,parseLoop as u,parseLoopDirection as b}from"../../../../../../format/lib/animation/index.js";import{COUNTS_SOURCE as f,declaredBlockSource as S,servedRows as x}from"../../../../../../format/lib/content/block-sources.js";import{padValuesOf as w}from"../../../../content/section-padding.js";import{sectionFillsHeight as y}from"../../../../../../format/lib/content/section-min-height.js";import{FlexMeta as C}from"../../../../../../format/lib/document/blocks/general/Flex/meta.js";const T={...C,render:e=>{const i=n(m,{direction:e.direction,label:e.label,tabShape:e.tabShape,gap:e.gap,gapPhone:e[o("gap")],gapTablet:e[l("gap")],justify:e.justify,align:e.align,wrap:e.wrap,share:e.share,sharePhone:e[o("share")],wrapPhone:e[o("wrap")],phoneRow:e.phoneRow,columns:e.columns,columnsTablet:e[l("columns")],separator:e.separator,blockSpacing:e.blockSpacing,bgImage:e.bgImage,bgImagePhone:e.bgImagePhone,darken:e.darken,darkenStyle:e.darkenStyle,placement:e.placement,padV2:e.padV2===!0,border:e.sectionBorder,borderPhone:e.sectionBorderPhone,pad:w(e),contained:e.contained,fillHeight:y(e),shadow:e.shadow,loop:u(e.loop),scrollDirection:b(e.scrollDirection),loopSeconds:g({loopDuration:e.loopDuration}),loopDelay:h({loopDelay:e.loopDelay}),editing:!!e.editor?.isEditing,fillColor:e.fillColor,line:e.line,upcoming:e.upcoming,link:e.link,boxShape:e.boxShape,boxShapePhone:e[o("boxShape")],jumpHighlight:e.jumpHighlight,anchor:e.anchor,sharedSides:c(e),boxId:typeof e.id=="string"?e.id:void 0,mirrorCards:e.mirrorCards,content:e.content}),a=S(e),t=a?a===f?x(e):r:null;return n(d.Provider,{value:t,children:i})}};export{T as FlexRender};
1
+ import{jsx as l}from"react/jsx-runtime";import{phoneKey as a,tabletKey as o}from"efficient-easel/draw";import{sharedColumnsDrawn as r}from"../../../../content/box-shared-columns.js";import{CountRowsContext as c,NO_COUNTS as d}from"../../../../../components/CountRowsContext.js";import m from"../../../../../components/Flex.js";import{loopDelayOf as h,loopSecondsOf as g,parseLoop as b,parseLoopDirection as u}from"../../../../../../format/lib/animation/index.js";import{COUNTS_SOURCE as f,declaredBlockSource as S,servedRows as x}from"../../../../../../format/lib/content/block-sources.js";import{padValuesOf as w}from"../../../../content/section-padding.js";import{sectionFillsHeight as y}from"../../../../../../format/lib/content/section-min-height.js";import{pictureHoverOf as C}from"../../../../../../format/lib/animation/hover.js";import{FlexMeta as D}from"../../../../../../format/lib/document/blocks/general/Flex/meta.js";const N={...D,render:e=>{const t=l(m,{direction:e.direction,label:e.label,tabShape:e.tabShape,gap:e.gap,gapPhone:e[a("gap")],gapTablet:e[o("gap")],justify:e.justify,align:e.align,wrap:e.wrap,share:e.share,sharePhone:e[a("share")],shareTablet:e[o("share")],wrapPhone:e[a("wrap")],phoneRow:e.phoneRow,columns:e.columns,columnsTablet:e[o("columns")],separator:e.separator,blockSpacing:e.blockSpacing,bgImage:e.bgImage,bgImagePhone:e.bgImagePhone,pictureHover:C(e),darken:e.darken,darkenStyle:e.darkenStyle,placement:e.placement,padV2:e.padV2===!0,border:e.sectionBorder,borderTablet:e.sectionBorderTablet,borderPhone:e.sectionBorderPhone,pad:w(e),contained:e.contained,fillHeight:y(e),shadow:e.shadow,loop:b(e.loop),scrollDirection:u(e.scrollDirection),loopSeconds:g({loopDuration:e.loopDuration}),loopDelay:h({loopDelay:e.loopDelay}),editing:!!e.editor?.isEditing,fillColor:e.fillColor,line:e.line,upcoming:e.upcoming,link:e.link,boxShape:e.boxShape,boxShapePhone:e[a("boxShape")],boxShapeTablet:e[o("boxShape")],jumpHighlight:e.jumpHighlight,anchor:e.anchor,sharedSides:r(e),boxId:typeof e.id=="string"?e.id:void 0,mirrorCards:e.mirrorCards,content:e.content}),n=S(e),i=n?n===f?x(e):d:null;return l(c.Provider,{value:i,children:t})}};export{N as FlexRender};
@@ -1 +1 @@
1
- import{jsx as a}from"react/jsx-runtime";import{CardRowDrawn as w}from"../../../../../components/CardRowContext.js";import k from"../../../../../components/ImageBlock.js";import{cardTemplateField as y,namedRowField as h,rowFieldText as S}from"../../../../../../format/lib/content/card-template.js";import{blockSizeOf as x,blockSizeValuesOf as B}from"../../../../content/block-size.js";import{padValuesOf as I}from"../../../../content/section-padding.js";import{ImageBlockMeta as z}from"../../../../../../format/lib/document/blocks/general/ImageBlock/meta.js";const P={...z,render:e=>{const o=h(e);return o?a(w,{type:"ImageBlock",props:e,children:(n,r)=>{const t=r?y(r.ownerType,o)?.alt:void 0;return c(e,n.src,(t&&S(r?.row,t))??e.alt)}}):c(e,e.src,e.alt)}};function c(e,o,n){const{aspect:r,contained:t,grayscale:l,href:d,fit:f,focal:m,focalPhone:i,corners:s,cornerSides:u,editor:g}=e;return a(k,{src:o,alt:n,aspect:r,contained:t,grayscale:l,href:d,fit:f,focal:m,focalPhone:typeof i=="string"?i:void 0,corners:s,cornerSides:u,pad:I(e),ownSize:x(B(e))!==null,editing:g?.isEditing===!0})}export{P as ImageBlockRender};
1
+ import{jsx as a}from"react/jsx-runtime";import{CardRowDrawn as S}from"../../../../../components/CardRowContext.js";import h from"../../../../../components/ImageBlock.js";import{cardTemplateField as p,namedRowField as x,rowFieldText as B,rowNextPicture as I}from"../../../../../../format/lib/content/card-template.js";import{blockSizeOf as O,blockSizeValuesOf as z}from"../../../../content/block-size.js";import{padValuesOf as F}from"../../../../content/section-padding.js";import{pictureHoverOf as P}from"../../../../../../format/lib/animation/hover.js";import{ImageBlockMeta as R}from"../../../../../../format/lib/document/blocks/general/ImageBlock/meta.js";const E={...R,render:e=>{const t=x(e);return t?a(S,{type:"ImageBlock",props:e,children:(o,r)=>{const n=r?p(r.ownerType,t):null,c=n?.alt;return l(e,o.src,(c&&B(r?.row,c))??e.alt,I(r?.item,n?.next,typeof o.src=="string"?o.src:""))}}):l(e,e.src,e.alt)}};function l(e,t,o,r=""){const{aspect:n,contained:c,grayscale:f,darken:d,darkenStyle:m,href:s,fit:u,focal:g,focalPhone:i,corners:k,cornerSides:y,editor:w}=e;return a(h,{src:t,alt:o,aspect:n,contained:c,grayscale:f,darken:d,darkenStyle:m,pictureHover:P(e,"ImageBlock"),...r?{nextSrc:r}:{},href:s,fit:u,focal:g,focalPhone:typeof i=="string"?i:void 0,corners:k,cornerSides:y,pad:F(e),ownSize:O(z(e))!==null,editing:w?.isEditing===!0})}export{E as ImageBlockRender};
@@ -1 +1 @@
1
- import{jsx as b}from"react/jsx-runtime";import f from"../../../../../components/Manifesto.js";import{sectionFillsHeight as g}from"../../../../../../format/lib/content/section-min-height.js";import{PH as e}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phRows as h,phHideDefault as a}from"../../scaffold.js";import{ManifestoMeta as c}from"../../../../../../format/lib/document/blocks/general/Manifesto/meta.js";const y=[{value:"00",label:e.label},{value:"00",label:e.label},{value:"00",label:e.label}],H={...c,render:t=>{const{eyebrow:r,heading:i,body:l,stats:s,imageSrc:d,grayscale:n,widthMode:m,editor:o}=t;return b(f,{eyebrow:a(r,e.eyebrow,o),heading:a(i,e.heading,o),body:a(l,e.body,o),stats:h(s,y,o),imageSrc:d||void 0,grayscale:n,widthMode:m,fillHeight:g(t)})}};export{H as ManifestoRender};
1
+ import{jsx as f}from"react/jsx-runtime";import{pictureHoverOf as b}from"../../../../../../format/lib/animation/hover.js";import c from"../../../../../components/Manifesto.js";import{sectionFillsHeight as g}from"../../../../../../format/lib/content/section-min-height.js";import{PH as e}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phRows as h,phHideDefault as t}from"../../scaffold.js";import{ManifestoMeta as p}from"../../../../../../format/lib/document/blocks/general/Manifesto/meta.js";const u=[{value:"00",label:e.label},{value:"00",label:e.label},{value:"00",label:e.label}],x={...p,render:r=>{const{eyebrow:i,heading:a,body:l,stats:s,imageSrc:d,grayscale:m,widthMode:n,editor:o}=r;return f(c,{eyebrow:t(i,e.eyebrow,o),heading:t(a,e.heading,o),body:t(l,e.body,o),stats:h(s,u,o),imageSrc:d||void 0,grayscale:m,pictureHover:b(r,"Manifesto"),widthMode:n,fillHeight:g(r)})}};export{x as ManifestoRender};
@@ -1 +1 @@
1
- import{jsx as r}from"react/jsx-runtime";import d from"../../../../../components/Split.js";import{sectionFillsHeight as m}from"../../../../../../format/lib/content/section-min-height.js";import{hidableText as g}from"efficient-easel/draw";import{phHide as t,ctaHide as f}from"../../scaffold.js";import{SplitMeta as c,SPLIT_PH as i,IMGBTN_PH as x}from"../../../../../../format/lib/document/blocks/general/Split/meta.js";function o(e,a,l){const n=t(e,x.text,l);if(n!==void 0)return{text:n,href:a||"#"}}const h={...c,render:e=>r(d,{eyebrow:t(e.eyebrow,i.eyebrow,e.editor),title:t(e.title,i.title,e.editor),body:t(e.body,i.body,e.editor),imageLabel:g(e.title)||i.title,imageSrc:e.imageSrc||void 0,reverse:e.reverse,uppercase:e.uppercase,textAlign:e.textAlign,textAlignPhone:e.textAlignPhone,cta:f(e.ctaText,e.ctaHref,e.editor),imageButton:o(e.imageBtnText,e.imageBtnHref,e.editor),textBgSrc:e.textBgSrc||void 0,textBgTint:(typeof e.overlay=="number"?e.overlay:60)/100,grayscale:e.grayscale,fillHeight:m(e)})};export{h as SplitRender};
1
+ import{jsx as a}from"react/jsx-runtime";import{pictureHoverOf as d}from"../../../../../../format/lib/animation/hover.js";import m from"../../../../../components/Split.js";import{sectionFillsHeight as f}from"../../../../../../format/lib/content/section-min-height.js";import{hidableText as c}from"efficient-easel/draw";import{phHide as t,ctaHide as g}from"../../scaffold.js";import{SplitMeta as o,SPLIT_PH as i,IMGBTN_PH as x}from"../../../../../../format/lib/document/blocks/general/Split/meta.js";function u(e,r,l){const n=t(e,x.text,l);if(n!==void 0)return{text:n,href:r||"#"}}const T={...o,render:e=>a(m,{eyebrow:t(e.eyebrow,i.eyebrow,e.editor),title:t(e.title,i.title,e.editor),body:t(e.body,i.body,e.editor),imageLabel:c(e.title)||i.title,imageSrc:e.imageSrc||void 0,reverse:e.reverse,uppercase:e.uppercase,textAlign:e.textAlign,textAlignPhone:e.textAlignPhone,cta:g(e.ctaText,e.ctaHref,e.editor),imageButton:u(e.imageBtnText,e.imageBtnHref,e.editor),textBgSrc:e.textBgSrc||void 0,textBgTint:(typeof e.overlay=="number"?e.overlay:60)/100,grayscale:e.grayscale,pictureHover:d(e,"Split"),fillHeight:f(e)})};export{T as SplitRender};
@@ -31,6 +31,8 @@ export declare const leadLine: (lead: string, rest: string, run: Props, own?: Pr
31
31
  export declare const bandPage: (stored: unknown, ctx: ConvertContext) => number;
32
32
  export declare const sectionPage: (p: Props, ctx: ConvertContext) => import("../../../../../format/lib/theme.js").ThemeColors | undefined;
33
33
  export declare const fillFrom: (colour: "surface" | "background") => (p: Props, ctx: ConvertContext) => Props;
34
+ export declare const ownFill: (painted: string | undefined, p: Props, ctx: ConvertContext) => Props;
35
+ export declare const fillNoBoxHolds: (painted: string | undefined) => string | undefined;
34
36
  export declare const lineBorder: (p: Props, ctx: ConvertContext) => Props;
35
37
  export declare const bandIndex: (p: Props, ctx: ConvertContext) => number;
36
38
  export declare const bandAccent: (stored: unknown, p: Props, ctx: ConvertContext) => unknown;
@@ -1 +1 @@
1
- import{phoneKey as b}from"efficient-easel/draw";import{BOX as u,INNER_BOX as T,TEXT as P}from"../../../../../format/lib/document/seed-parts.js";import{ENTRANCE_KEYS as f}from"../../../animation/entrance.js";import{COUNT_KEY_PROP as x}from"../../../../../format/lib/content/block-sources.js";import{normalizeSiteGutter as B}from"../../../../../format/lib/content/page-width.js";import{resolveSectionPadding as _}from"../../../content/section-padding.js";import{ButtonBlockMeta as E}from"../../../../../format/lib/document/blocks/general/ButtonBlock/meta.js";import{SECTION_PAD_INNER_DEFAULTS as O}from"../../passes/section-padding.js";import{finiteNumber as s}from"../../../../../format/lib/finite-number.js";import{convertTheme as a,hasWords as N}from"../../../sections/section-to-box.js";import{bandPresetIndex as S}from"../../../../../format/lib/theme.js";import{BOX as mt,DIM as lt,INNER_BOX as bt,TEXT as ut}from"../../../../../format/lib/document/seed-parts.js";const A={...P,[x]:""},{label:j,href:Y,...I}=E.defaultProps,J=I,V={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},z={...u,sectionAccent:0},q=["gridSpan","sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderPhone","sectionAccent","stickTop","stickTopDistance","stickTopPhone","stickTopDistancePhone","anchor","sectionAnimation","_hidden",...Object.values(f).flatMap(t=>[t,b(t)]),"widthFit","widthFitPhone","width","widthPhone","minWidth","minWidthPhone","maxWidth","maxWidthPhone"],r="a section width key, ignored since efficient-web-builder 45 (every section, and a section's root Box, follows Site styles only; Lewis 2026-10-29), so dropping it changes nothing",Q={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:r,fullWidth:r,pageWidth:r,backgroundWidth:r,contentWidth:r,contentMax:r},Z=Object.fromEntries(["sectionPaddingLeft","sectionPaddingRight","sectionPaddingLeftTablet","sectionPaddingRightTablet","sectionPaddingLeftPhone","sectionPaddingRightPhone"].map(t=>[t,"needs Box side padding outside its gutter: the old section added it outside its frame, a Box's side padding replaces the gutter. 0 live nodes store it (JJ's read-only export, 2026-10-24)"]));function R(t,o){const e=s(t.sectionPaddingTop)??0,n=s(t.sectionPaddingBottom)??0,i=s(t.sectionPaddingTopTablet),d=s(t.sectionPaddingBottomTablet);return{sectionPaddingTop:e+o.top,sectionPaddingBottom:n+o.bottom,...i===void 0?{}:{sectionPaddingTopTablet:i+o.top},...d===void 0?{}:{sectionPaddingBottomTablet:d+o.bottom},sectionPaddingTopPhone:(s(t.sectionPaddingTopPhone)??i??e)+o.topPhone,sectionPaddingBottomPhone:(s(t.sectionPaddingBottomPhone)??d??n)+o.bottomPhone}}const tt=t=>["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopTablet","sectionPaddingBottomTablet","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(e,n)=>R(n,typeof t=="function"?t(n):t)[o]]);function c(t,o){const e=_(t,O[o]);return{sectionPaddingTop:e.top,sectionPaddingBottom:e.bottom}}const ot=t=>[["padTop","sectionPaddingTop",(o,e)=>c(e,t).sectionPaddingTop],["padBottom","sectionPaddingBottom",(o,e)=>c(e,t).sectionPaddingBottom],["sectionPaddingTop","sectionPaddingTop",(o,e)=>c(e,t).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,e)=>c(e,t).sectionPaddingBottom]],y={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},et=t=>o=>N(o.props[t])?[y]:[],nt=(t,o)=>({kind:"text",key:t,role:"eyebrow",props:P,...o?{style:o}:{}}),h=t=>t.background!=="transparent",D=(t,o)=>{const[e,n]=[t,o].map(i=>typeof i=="string"?i.trim():"");return e?n?`[${e} ]{color=text}${n}`:`[${e}]{color=text}`:n},m={align:"right",alignPhone:"left"},k=(t,o,e)=>{const n=i=>D(i[t],i[o]);return{kind:"block",type:"Text",when:(i,d)=>d!==void 0&&n(d)!=="",box:[[t,"text",(i,d)=>n(d)],[o,"text",(i,d)=>n(d)]],props:e}},it=(t,o,e,n={})=>k(t,o,{...A,...m,...n,_partStyles:{text:{textStyle:"body-5",color:"labels",...e,case:"upper",...m}}}),p=(t,o)=>typeof t=="number"&&Number.isInteger(t)&&t>=0?t:a(o)?.selected??0,l=(t,o)=>a(o)?.themes[p(t.sectionAccent??0,o)],v=t=>(o,e)=>{const n=l(o,e)?.[t];return n?{fillColor:n}:{}},dt=(t,o)=>{const e=l(t,o)?.line;return e?{buttonBorder:{width:1,color:e}}:{}},g=(t,o)=>{const e=a(o)?.themes;return e&&h(t)?S(e,p(t.sectionAccent,o)):-1},st=(t,o,e)=>{const n=g(o,e);return n>=0?n:t},rt=(t,o)=>{const e=g(t,o);return e>=0?{sectionAccent:e}:{}},ct=(t,o)=>h(t.props)&&g(t.props,o)<0?[{kind:"band-preset",page:p(t.props.sectionAccent,o)}]:[],at=t=>B(t.site?.siteGutter),C=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(t=>[`sectionPadding${t}`,0])),pt=t=>({top:0,right:0,bottom:0,left:0,...t}),gt=(t,o,e,n=[])=>({kind:"group",name:t,keepEmpty:!0,props:(i,d)=>({...T,...C,...v("surface")(i,d),...typeof e=="function"?e(i,d):e}),box:[[o,"bgImage"]],parts:n});export{mt as BOX,J as BUTTON,lt as DIM,Q as DROP_COMMON,Z as DROP_SIDE_PADDING,y as HEADING_CASE_UPPER,bt as INNER_BOX,C as NO_PAD,A as NUMBER_TEXT,m as RIGHT_WORDS,q as SAME_KEYS,z as SECTION_BOX,V as SH_LINK,ut as TEXT,st as bandAccent,g as bandIndex,p as bandPage,rt as bandProps,ct as bandWrites,v as fillFrom,et as headingCaseOf,c as innerPad,ot as innerPadKeys,it as leadLine,k as leadText,dt as lineBorder,pt as lineSides,D as numberAndUnit,gt as pictureCell,l as sectionPage,at as siteGutterOf,nt as smallText,R as wrapperPad,tt as wrapperPadKeys};
1
+ import{phoneKey as B}from"efficient-easel/draw";import{BOX as _,INNER_BOX as E,TEXT as P}from"../../../../../format/lib/document/seed-parts.js";import{ENTRANCE_KEYS as S}from"../../../animation/entrance.js";import{CARD_HOVER_KEYS as a}from"../../../../../format/lib/animation/hover.js";import{COUNT_KEY_PROP as O}from"../../../../../format/lib/content/block-sources.js";import{normalizeSiteGutter as N}from"../../../../../format/lib/content/page-width.js";import{resolveSectionPadding as R}from"../../../content/section-padding.js";import{ButtonBlockMeta as A}from"../../../../../format/lib/document/blocks/general/ButtonBlock/meta.js";import{SECTION_PAD_INNER_DEFAULTS as C}from"../../passes/section-padding.js";import{finiteNumber as r}from"../../../../../format/lib/finite-number.js";import{convertTheme as p,hasWords as I}from"../../../sections/section-to-box.js";import{THEME_SECTION_BG as H}from"../../../../../format/lib/content/section-background.js";import{parseHexColor as y}from"efficient-shell/format";import{bandPresetIndex as D,surfaceTwoTone as k}from"../../../../../format/lib/theme.js";import{BOX as Nt,DIM as Rt,INNER_BOX as At,TEXT as Ct}from"../../../../../format/lib/document/seed-parts.js";const w={...P,[O]:""},{label:et,href:nt,...W}=A.defaultProps,it=W,st={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},rt={..._,sectionAccent:0},dt=["gridSpan","sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent","stickTop","stickTopDistance","stickTopTablet","stickTopDistanceTablet","stickTopPhone","stickTopDistancePhone","anchor","sectionAnimation","_hidden",...Object.values(S).flatMap(t=>[t,B(t)]),"widthFit","widthFitTablet","widthFitPhone","width","widthTablet","widthPhone","minWidth","minWidthTablet","minWidthPhone","maxWidth","maxWidthTablet","maxWidthPhone"],d="a section width key, ignored since efficient-web-builder 45 (every section, and a section's root Box, follows Site styles only; Lewis 2026-10-29), so dropping it changes nothing",ct={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:d,fullWidth:d,pageWidth:d,backgroundWidth:d,contentWidth:d,contentMax:d},at=Object.fromEntries(["sectionPaddingLeft","sectionPaddingRight","sectionPaddingLeftTablet","sectionPaddingRightTablet","sectionPaddingLeftPhone","sectionPaddingRightPhone"].map(t=>[t,"needs Box side padding outside its gutter: the old section added it outside its frame, a Box's side padding replaces the gutter. 0 live nodes store it (JJ's read-only export, 2026-10-24)"]));function v(t,o){const e=r(t.sectionPaddingTop)??0,n=r(t.sectionPaddingBottom)??0,i=r(t.sectionPaddingTopTablet),s=r(t.sectionPaddingBottomTablet);return{sectionPaddingTop:e+o.top,sectionPaddingBottom:n+o.bottom,...i===void 0?{}:{sectionPaddingTopTablet:i+o.top},...s===void 0?{}:{sectionPaddingBottomTablet:s+o.bottom},sectionPaddingTopPhone:(r(t.sectionPaddingTopPhone)??i??e)+o.topPhone,sectionPaddingBottomPhone:(r(t.sectionPaddingBottomPhone)??s??n)+o.bottomPhone}}const pt=t=>["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopTablet","sectionPaddingBottomTablet","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(e,n)=>v(n,typeof t=="function"?t(n):t)[o]]);function c(t,o){const e=R(t,C[o]);return{sectionPaddingTop:e.top,sectionPaddingBottom:e.bottom}}const lt=t=>[["padTop","sectionPaddingTop",(o,e)=>c(e,t).sectionPaddingTop],["padBottom","sectionPaddingBottom",(o,e)=>c(e,t).sectionPaddingBottom],["sectionPaddingTop","sectionPaddingTop",(o,e)=>c(e,t).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,e)=>c(e,t).sectionPaddingBottom]],M={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},gt=t=>o=>I(o.props[t])?[M]:[],ht=(t,o)=>({kind:"text",key:t,role:"eyebrow",props:P,...o?{style:o}:{}}),m=t=>t.background!=="transparent",L=(t,o)=>{const[e,n]=[t,o].map(i=>typeof i=="string"?i.trim():"");return e?n?`[${e} ]{color=text}${n}`:`[${e}]{color=text}`:n},T={align:"right",alignPhone:"left"},U=(t,o,e)=>{const n=i=>L(i[t],i[o]);return{kind:"block",type:"Text",when:(i,s)=>s!==void 0&&n(s)!=="",box:[[t,"text",(i,s)=>n(s)],[o,"text",(i,s)=>n(s)]],props:e}},Pt=(t,o,e,n={})=>U(t,o,{...w,...T,...n,_partStyles:{text:{textStyle:"body-5",color:"labels",...e,case:"upper",...T}}}),l=(t,o)=>typeof t=="number"&&Number.isInteger(t)&&t>=0?t:p(o)?.selected??0,u="var(--site-surface)",b="var(--site-surface-2)",g=(t,o)=>p(o)?.themes[l(t.sectionAccent??0,o)],f=t=>(o,e)=>{const n=g(o,e)?.[t];return n?{fillColor:n}:{}},x=t=>t.startsWith("#")&&y(t)!==null,mt=(t,o,e)=>{const n=t?.trim();if(n&&x(n))return{fillColor:n};if(n===u)return f("surface")(o,e);const i=n===b?g(o,e):void 0;return i?{fillColor:k(i)}:{}},Tt=t=>{const o=t?.trim();return!o||o==="transparent"||o===H||o===u||o===b||x(o)?void 0:"it paints a colour that no Box Fill can hold"},ut=(t,o)=>{const e=g(t,o)?.line;return e?{buttonBorder:{width:1,color:e}}:{}},h=(t,o)=>{const e=p(o)?.themes;return e&&m(t)?D(e,l(t.sectionAccent,o)):-1},bt=(t,o,e)=>{const n=h(o,e);return n>=0?n:t},ft=(t,o)=>{const e=h(t,o);return e>=0?{sectionAccent:e}:{}},xt=(t,o)=>m(t.props)&&h(t.props,o)<0?[{kind:"band-preset",page:l(t.props.sectionAccent,o)}]:[],Bt=t=>N(t.site?.siteGutter),F=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(t=>[`sectionPadding${t}`,0])),_t=t=>({top:0,right:0,bottom:0,left:0,...t}),Et=(t,o,e,n=[])=>({kind:"group",name:t,keepEmpty:!0,props:(i,s)=>({...E,...F,...f("surface")(i,s),...typeof e=="function"?e(i,s):e}),box:[[o,"bgImage"],a.kind,a.duration,a.delay],parts:n});export{Nt as BOX,it as BUTTON,Rt as DIM,ct as DROP_COMMON,at as DROP_SIDE_PADDING,M as HEADING_CASE_UPPER,At as INNER_BOX,F as NO_PAD,w as NUMBER_TEXT,T as RIGHT_WORDS,dt as SAME_KEYS,rt as SECTION_BOX,st as SH_LINK,Ct as TEXT,bt as bandAccent,h as bandIndex,l as bandPage,ft as bandProps,xt as bandWrites,f as fillFrom,Tt as fillNoBoxHolds,gt as headingCaseOf,c as innerPad,lt as innerPadKeys,Pt as leadLine,U as leadText,ut as lineBorder,_t as lineSides,L as numberAndUnit,mt as ownFill,Et as pictureCell,g as sectionPage,Bt as siteGutterOf,ht as smallText,v as wrapperPad,pt as wrapperPadKeys};
@@ -1 +1 @@
1
- import{phoneKey as M,readHidable as f}from"efficient-easel/draw";import{parseHexColor as X}from"efficient-shell/format";import{cardColumns as j}from"../../../../components/Cards.js";import{resolveSectionBackground as G,THEME_SECTION_BG as S}from"../../../../../format/lib/content/section-background.js";import{CardsMeta as J}from"../../../../../format/lib/document/blocks/general/Cards/meta.js";import{KeyFeaturesMeta as q}from"../../../../../format/lib/document/blocks/general/KeyFeatures/meta.js";import{finiteNumber as x}from"../../../../../format/lib/finite-number.js";import{nonEmptyString as U}from"../../../../../format/lib/non-empty-string.js";import{parseSectionHeadPlacement as V}from"../../../../../format/lib/sections/section-head-placement.js";import{hasWords as Y}from"../../../sections/section-to-box.js";import{BOX_TYPE as l,CONTAINER_BLOCKS_SLOT as p}from"../../../../../format/lib/document/container-blocks.js";import{labelTextSeed as z}from"../../../../../format/lib/document/text-seeds.js";import{CARDS_BODY_LOOK as Q,CARDS_CARD as Z,CARDS_TITLE_LOOK as $,rowFieldTextSeed as a}from"../../../../../format/lib/document/blocks/general/Cards/card-seed.js";import{bandAccent as ee,bandProps as oe,bandWrites as te,BUTTON as re,DIM as h,DROP_COMMON as m,DROP_SIDE_PADDING as g,INNER_BOX as t,SAME_KEYS as w,SECTION_BOX as u,fillFrom as c,SH_LINK as ne,TEXT as n,smallText as se,wrapperPad as y,wrapperPadKeys as b}from"./section-to-box-row-parts.js";import{headTree as k,token as i}from"./section-head-looks.js";import{boxPadding as ae}from"../../../../../format/lib/document/seed-parts.js";import{SECTION_BG_BUILT_IN as ie}from"../../../../../format/lib/document/blocks/general/section-bg-built-in.js";const d=(e,o,r,W)=>({sectionBorder:{top:e,right:o,bottom:r,left:W}}),O=e=>o=>j(x(o.columns)??x(e.columns)),_=e=>({kind:"group",name:"Grid",props:{...t,gap:0,...d(1,0,0,1)},parts:[e]}),C={...t,direction:"row",gap:0,share:"equal"},R="its head sits in a Box of its own above it (own-box): the row draws the head inline",T=e=>V(e.headPlacement)==="own-box",E="inline is the head the row draws; an own-box node is skipped (`skip`)",de=e=>({kind:"group",name:"Heading",props:e,parts:[se("eyebrow"),{kind:"text",key:"title",role:"heading",props:n,style:{textStyle:"heading-3",case:"upper"},was:{size:44}}]}),B={top:72,bottom:72,topPhone:72,bottomPhone:72},le={...Z,...d(0,1,1,0)},pe={name:"Cards",boxProps:(e,o)=>({...u,direction:"column",gap:36,gapPhone:28,...c("surface")(e,o),...y(e,B)}),box:[...w,...b(B)],skip:e=>T(e)?R:typeof e.dataSource=="string"&&e.dataSource?"its cards come from a source: they are drawn from the card template on Cards":e.template!==void 0?"its cards are drawn from its own card template (an emptied one draws none): the shape the other rows land on":e.cardStyle==="label-only"?"Label only is Key Features' look: no live node holds it, so it has no row of its own yet":void 0,parts:[k("Cards"),_({kind:"list",key:"items",name:"Card",perRow:O(J.defaultProps),rowName:"Row",rowProps:C,props:(e,o)=>({...le,...c("background")(e,o)}),parts:[{kind:"text",key:"title",props:n,style:$},{kind:"text",key:"body",props:h,style:Q}]})],drop:{...m,...g,columns:"the rows of N: one Row Box per `columns` cards, which the Box draws as N equal blocks",cardStyle:"the standard card is what the row draws; a Label only node is skipped (0 live nodes)",dataSource:"an empty source is typed cards, what the row draws; a sourced node is skipped (0 live nodes)",dataSourceOptions:"read only with a source; a sourced node is skipped (0 live nodes)",template:"an empty card template is typed cards, what the row draws; a node with a template is skipped",highlightedCard:"read only with a card template; a node with a template is skipped",highlightBadge:"read only with a card template; a node with a template is skipped",headPlacement:E,eyebrowLook:"needs the eyebrow's Filled look on a Text block: Plain is the eyebrow start look the row draws; 2 of 62 live nodes store it (JJ's export, 2026-10-24)"}},N={top:76,bottom:76,topPhone:76,bottomPhone:76},ce={...t,direction:"row",align:"center",gap:16,sectionPaddingTop:32,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,...d(0,1,1,0)},L={textStyle:"body-1",color:"text"},A=(e,o)=>typeof o?.href=="string"&&o.href.trim()!=="",he={name:"Key Features",boxProps:e=>({...u,direction:"column",gap:44,...d(1,0,1,0),...y(e,N)}),box:[...w,...b(N)],parts:[de({...t,direction:"row",align:"end",gap:20,wrap:!0,share:"content"}),_({kind:"list",key:"items",name:"Feature",perRow:O(q.defaultProps),rowName:"Row",rowProps:C,props:ce,parts:[{kind:"button",key:"label",href:"href",when:A,variant:"ghost",props:{...re,...ne,icon:"none"},style:L},{kind:"text",key:"label",when:(e,o)=>!A(e,o),props:n,style:L,was:{size:17}}]})],drop:{...m,...g,columns:"the rows of N: one Row Box per `columns` cells, which the Box draws as N equal blocks",eyebrowLook:"needs the eyebrow's Filled look on a Text block: Filled is Key Features' own default (lib/sections/section-eyebrow-look), so 20 of 21 published nodes draw it with nothing stored; the row draws the Plain start look (JJ's export, 2026-10-24)"}},D={top:120,bottom:120,topPhone:80,bottomPhone:80},F=e=>{const o=G(typeof e.background=="string"?e.background:void 0,ie.Series);return o&&o!=="transparent"?o:void 0},P=e=>F(e)===S,me=(e,o)=>{const r=F(e);return!r||r===S?{}:r==="var(--site-surface)"?c("surface")(e,o):X(r.trim())?{fillColor:r.trim()}:{}},ge={...t,justify:"between",gap:16,gapPhone:16,sectionHeightMode:"fixed",sectionHeightValue:340,sectionHeightUnit:"px",sectionPaddingTop:36,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,sectionPaddingTopPhone:36,sectionPaddingRightPhone:28,sectionPaddingBottomPhone:32,sectionPaddingLeftPhone:28},I={...t,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[M("share")]:"content"},v={textStyle:"body-5",...i("label",12),letterSpacing:.22,case:"upper",lineHeight:1.5},we=e=>Y(e.viewLabel)&&!f(e.viewLabel).hidden,s=e=>f(e).text?.trim?.()??"",H=e=>Object.fromEntries(Object.entries(e).filter(([,o])=>U(o)!==void 0)),ue={name:"Recurring Columns",boxProps:(e,o)=>({...u,direction:"column",gap:60,gapPhone:60,...d(0,0,1,0),...P(e)?oe(e,o):{},...me(e,o),...y(e,D)}),box:[...w.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,r)=>P(o)?ee(e,o,r):e],...b(D)],skip:e=>T(e)?R:void 0,site:(e,o)=>P(e.props)?te(e,o):[],parts:[k("Series"),{kind:"core",as:"Cards",keep:[],props:{columns:4},derive:{reads:["cards"],props:e=>({items:(Array.isArray(e.cards)?e.cards:[]).map(o=>H({num:s(o.num),since:s(o.since),title:s(o.title),body:s(o.desc),count:[s(o.entries),s(o.entriesLabel)].filter(Boolean).join(" ")}))})},slots:(e,o)=>({template:[{type:l,props:{...ge,...c("background")(e,o),name:"Card"},slots:{[p]:[{type:l,props:{...t,name:"Words",gap:16,gapPhone:16},slots:{[p]:[{type:l,props:{...I,name:"Top"},slots:{[p]:[a("num",n,i("label",13),!0),a("since",n,i("label",13),!0)]}},a("title",{...n,tag:"h3"},{textStyle:"heading-3",...i("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}),a("body",h,{textStyle:"body-5",fontRole:"heading",...i("body",14),lineHeight:1.6})]}},{type:l,props:{...I,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...d(1,0,0,0)},slots:{[p]:[a("count",h,v),...we(e)?[{type:l,props:{...t,name:"View",maxWidthPhone:266},slots:{[p]:[{type:"Text",props:{...n,text:f(e.viewLabel).text,_partStyles:{text:{...z()._partStyles.text,...v}}}}]}}]:[]]}}]}}]})}],reads:{viewLabel:"a Text typed once in the card template: the far end of every card's footer",background:"the Box's theme (the band preset) or its Fill"},drop:{...m,...g,headPlacement:E}},K={top:60,bottom:60,topPhone:40,bottomPhone:40},ye={...t,gap:8,gapPhone:8,...ae(24),...d(1,1,1,1)},be={name:"Document Detail Cards",boxProps:e=>({...u,direction:"column",gap:40,gapPhone:16,...d(0,0,1,0),...y(e,K)}),box:[...w,...b(K)],parts:[{kind:"core",as:"Cards",keep:[],props:{columns:3},derive:{reads:["cards"],props:e=>({items:(Array.isArray(e.cards)?e.cards:[]).map(o=>H({label:s(o.label),value:s(o.value),body:s(o.desc)}))})},slots:(e,o)=>({template:[{type:l,props:{...ye,...c("surface")(e,o),name:"Card"},slots:{[p]:[a("label",n,{...i("label",12),lineHeight:1.5},!0),{type:l,props:{...t,name:"Words",gap:14,gapPhone:14},slots:{[p]:[a("value",n,{textStyle:"heading-3",...i("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}),a("body",h,{textStyle:"body-5",fontRole:"accent",...i("body",14),italic:!0,lineHeight:1.5})]}}]}}]})}],drop:{...m,...g}},Ie={Cards:pe,KeyFeatures:he,Series:ue,DocMetaCards:be};export{Ie as CARDS_SECTION_TO_BOX};
1
+ import{phoneKey as W,readHidable as f}from"efficient-easel/draw";import{cardColumns as M}from"../../../../components/Cards.js";import{resolveSectionBackground as X,THEME_SECTION_BG as j}from"../../../../../format/lib/content/section-background.js";import{CardsMeta as G}from"../../../../../format/lib/document/blocks/general/Cards/meta.js";import{KeyFeaturesMeta as J}from"../../../../../format/lib/document/blocks/general/KeyFeatures/meta.js";import{finiteNumber as x}from"../../../../../format/lib/finite-number.js";import{nonEmptyString as q}from"../../../../../format/lib/non-empty-string.js";import{parseSectionHeadPlacement as U}from"../../../../../format/lib/sections/section-head-placement.js";import{hasWords as V}from"../../../sections/section-to-box.js";import{BOX_TYPE as d,CONTAINER_BLOCKS_SLOT as l}from"../../../../../format/lib/document/container-blocks.js";import{labelTextSeed as Y}from"../../../../../format/lib/document/text-seeds.js";import{CARDS_BODY_LOOK as z,CARDS_CARD as Q,CARDS_TITLE_LOOK as Z,rowFieldTextSeed as a}from"../../../../../format/lib/document/blocks/general/Cards/card-seed.js";import{bandAccent as $,bandProps as ee,bandWrites as oe,BUTTON as te,DIM as p,DROP_COMMON as c,DROP_SIDE_PADDING as h,INNER_BOX as t,SAME_KEYS as m,SECTION_BOX as g,fillFrom as w,fillNoBoxHolds as ne,ownFill as se,SH_LINK as ae,TEXT as n,smallText as re,wrapperPad as y,wrapperPadKeys as b}from"./section-to-box-row-parts.js";import{headTree as k,token as r}from"./section-head-looks.js";import{boxPadding as ie}from"../../../../../format/lib/document/seed-parts.js";import{SECTION_BG_BUILT_IN as de}from"../../../../../format/lib/document/blocks/general/section-bg-built-in.js";const i=(e,o,u,K)=>({sectionBorder:{top:e,right:o,bottom:u,left:K}}),O=e=>o=>M(x(o.columns)??x(e.columns)),_=e=>({kind:"group",name:"Grid",props:{...t,gap:0,...i(1,0,0,1)},parts:[e]}),C={...t,direction:"row",gap:0,share:"equal"},R="its head sits in a Box of its own above it (own-box): the row draws the head inline",T=e=>U(e.headPlacement)==="own-box",E="inline is the head the row draws; an own-box node is skipped (`skip`)",le=e=>({kind:"group",name:"Heading",props:e,parts:[re("eyebrow"),{kind:"text",key:"title",role:"heading",props:n,style:{textStyle:"heading-3",case:"upper"},was:{size:44}}]}),B={top:72,bottom:72,topPhone:72,bottomPhone:72},pe={...Q,...i(0,1,1,0)},ce={name:"Cards",boxProps:(e,o)=>({...g,direction:"column",gap:36,gapPhone:28,...w("surface")(e,o),...y(e,B)}),box:[...m,...b(B)],skip:e=>T(e)?R:typeof e.dataSource=="string"&&e.dataSource?"its cards come from a source: they are drawn from the card template on Cards":e.template!==void 0?"its cards are drawn from its own card template (an emptied one draws none): the shape the other rows land on":e.cardStyle==="label-only"?"Label only is Key Features' look: no live node holds it, so it has no row of its own yet":void 0,parts:[k("Cards"),_({kind:"list",key:"items",name:"Card",perRow:O(G.defaultProps),rowName:"Row",rowProps:C,props:(e,o)=>({...pe,...w("background")(e,o)}),parts:[{kind:"text",key:"title",props:n,style:Z},{kind:"text",key:"body",props:p,style:z}]})],drop:{...c,...h,columns:"the rows of N: one Row Box per `columns` cards, which the Box draws as N equal blocks",cardStyle:"the standard card is what the row draws; a Label only node is skipped (0 live nodes)",dataSource:"an empty source is typed cards, what the row draws; a sourced node is skipped (0 live nodes)",dataSourceOptions:"read only with a source; a sourced node is skipped (0 live nodes)",template:"an empty card template is typed cards, what the row draws; a node with a template is skipped",highlightedCard:"read only with a card template; a node with a template is skipped",highlightBadge:"read only with a card template; a node with a template is skipped",headPlacement:E,eyebrowLook:"needs the eyebrow's Filled look on a Text block: Plain is the eyebrow start look the row draws; 2 of 62 live nodes store it (JJ's export, 2026-10-24)"}},N={top:76,bottom:76,topPhone:76,bottomPhone:76},he={...t,direction:"row",align:"center",gap:16,sectionPaddingTop:32,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,...i(0,1,1,0)},L={textStyle:"body-1",color:"text"},A=(e,o)=>typeof o?.href=="string"&&o.href.trim()!=="",me={name:"Key Features",boxProps:e=>({...g,direction:"column",gap:44,...i(1,0,1,0),...y(e,N)}),box:[...m,...b(N)],parts:[le({...t,direction:"row",align:"end",gap:20,wrap:!0,share:"content"}),_({kind:"list",key:"items",name:"Feature",perRow:O(J.defaultProps),rowName:"Row",rowProps:C,props:he,parts:[{kind:"button",key:"label",href:"href",when:A,variant:"ghost",props:{...te,...ae,icon:"none"},style:L},{kind:"text",key:"label",when:(e,o)=>!A(e,o),props:n,style:L,was:{size:17}}]})],drop:{...c,...h,columns:"the rows of N: one Row Box per `columns` cells, which the Box draws as N equal blocks",eyebrowLook:"needs the eyebrow's Filled look on a Text block: Filled is Key Features' own default (lib/sections/section-eyebrow-look), so 20 of 21 published nodes draw it with nothing stored; the row draws the Plain start look (JJ's export, 2026-10-24)"}},D={top:120,bottom:120,topPhone:80,bottomPhone:80},P=e=>{const o=X(typeof e.background=="string"?e.background:void 0,de.Series);return o&&o!=="transparent"?o:void 0},S=e=>P(e)===j,ge={...t,justify:"between",gap:16,gapPhone:16,sectionHeightMode:"fixed",sectionHeightValue:340,sectionHeightUnit:"px",sectionPaddingTop:36,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,sectionPaddingTopPhone:36,sectionPaddingRightPhone:28,sectionPaddingBottomPhone:32,sectionPaddingLeftPhone:28},F={...t,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[W("share")]:"content"},I={textStyle:"body-5",...r("label",12),letterSpacing:.22,case:"upper",lineHeight:1.5},we=e=>V(e.viewLabel)&&!f(e.viewLabel).hidden,s=e=>f(e).text?.trim?.()??"",v=e=>Object.fromEntries(Object.entries(e).filter(([,o])=>q(o)!==void 0)),ye={name:"Recurring Columns",boxProps:(e,o)=>({...g,direction:"column",gap:60,gapPhone:60,...i(0,0,1,0),...S(e)?ee(e,o):{},...se(P(e),e,o),...y(e,D)}),box:[...m.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,u)=>S(o)?$(e,o,u):e],...b(D)],skip:e=>ne(P(e))??(T(e)?R:void 0),site:(e,o)=>S(e.props)?oe(e,o):[],parts:[k("Series"),{kind:"core",as:"Cards",keep:[],props:{columns:4},derive:{reads:["cards"],props:e=>({items:(Array.isArray(e.cards)?e.cards:[]).map(o=>v({num:s(o.num),since:s(o.since),title:s(o.title),body:s(o.desc),count:[s(o.entries),s(o.entriesLabel)].filter(Boolean).join(" ")}))})},slots:(e,o)=>({template:[{type:d,props:{...ge,...w("background")(e,o),name:"Card"},slots:{[l]:[{type:d,props:{...t,name:"Words",gap:16,gapPhone:16},slots:{[l]:[{type:d,props:{...F,name:"Top"},slots:{[l]:[a("num",n,r("label",13),!0),a("since",n,r("label",13),!0)]}},a("title",{...n,tag:"h3"},{textStyle:"heading-3",...r("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}),a("body",p,{textStyle:"body-5",fontRole:"heading",...r("body",14),lineHeight:1.6})]}},{type:d,props:{...F,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...i(1,0,0,0)},slots:{[l]:[a("count",p,I),...we(e)?[{type:d,props:{...t,name:"View",maxWidthPhone:266},slots:{[l]:[{type:"Text",props:{...n,text:f(e.viewLabel).text,_partStyles:{text:{...Y()._partStyles.text,...I}}}}]}}]:[]]}}]}}]})}],reads:{viewLabel:"a Text typed once in the card template: the far end of every card's footer",background:"the Box's theme (the band preset) or its Fill"},drop:{...c,...h,headPlacement:E}},H={top:60,bottom:60,topPhone:40,bottomPhone:40},be={...t,gap:8,gapPhone:8,...ie(24),...i(1,1,1,1)},ue={name:"Document Detail Cards",boxProps:e=>({...g,direction:"column",gap:40,gapPhone:16,...i(0,0,1,0),...y(e,H)}),box:[...m,...b(H)],parts:[{kind:"core",as:"Cards",keep:[],props:{columns:3},derive:{reads:["cards"],props:e=>({items:(Array.isArray(e.cards)?e.cards:[]).map(o=>v({label:s(o.label),value:s(o.value),body:s(o.desc)}))})},slots:(e,o)=>({template:[{type:d,props:{...be,...w("surface")(e,o),name:"Card"},slots:{[l]:[a("label",n,{...r("label",12),lineHeight:1.5},!0),{type:d,props:{...t,name:"Words",gap:14,gapPhone:14},slots:{[l]:[a("value",n,{textStyle:"heading-3",...r("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}),a("body",p,{textStyle:"body-5",fontRole:"accent",...r("body",14),italic:!0,lineHeight:1.5})]}}]}}]})}],drop:{...c,...h}},Fe={Cards:ce,KeyFeatures:me,Series:ye,DocMetaCards:ue};export{Fe as CARDS_SECTION_TO_BOX};
@@ -1 +1 @@
1
- import{tabletKey as R}from"efficient-easel/draw";import{SECTION_BOX_SLOT as G,SECTION_BOX_TYPE as j}from"../../../sections/section-to-box.js";import{BUTTON as k,DIM as i,DROP_COMMON as D,DROP_SIDE_PADDING as W,INNER_BOX as o,SAME_KEYS as X,SECTION_BOX as f,SH_LINK as S,TEXT as p,bandAccent as v,bandIndex as K,bandPage as $,bandProps as P,bandWrites as z,smallText as l,wrapperPad as d}from"./section-to-box-row-parts.js";import{editorialHeadTree as U,token as c}from"./section-head-looks.js";import{boxPadding as m}from"../../../../../format/lib/document/seed-parts.js";import{readAnchorName as Y}from"../../../../../format/lib/content/anchor-name.js";import{declaredBlockSource as x}from"../../../../../format/lib/content/block-sources.js";import{parseLocationTileShape as F,splitLegacyRegion as w}from"../../../../../format/lib/content/contact.js";import{groupColumns as g}from"../../../../../format/lib/locations-grid.js";import{phoneHref as q}from"../../../../../format/lib/links/phone-href.js";import{hasMapCoords as V}from"../../../../../format/lib/map-styles.js";const r=e=>typeof e=="string"?e:e==null?"":String(e),h=e=>Array.isArray(e.locations)?e.locations.map(t=>t??{}):[],s=e=>r(e.group),B=e=>`loc-${e}`,T=e=>r(e.state).trim()||w(r(e.region)).state,O=e=>r(e.country).trim()||w(r(e.region)).country,_=e=>[T(e),O(e)].filter(Boolean).join(" · "),J=e=>h(e).some(t=>r(t.photo).trim()!==""),Q=e=>h(e).some(t=>V(Number(t.lat),Number(t.lng))),Z=(e,t)=>h(e).filter(n=>s(n)===s(t)).length,ee=(e,t)=>Z(e,t)===1?"wide":F(e.imageShape),y={top:100,bottom:100,topPhone:60,bottomPhone:60},N=48,a=(e,t={})=>({textStyle:"body-5",...c("label",e),case:"upper",...t}),u={top:1,right:1,bottom:1,left:1},b={...o,direction:"row",share:"equal",gap:0},te=e=>t=>t>g(t)?{...o,gap:0}:{...b,...t>1?{phoneRow:e}:{}},oe={kind:"group",name:"Gallery",props:{...o,gap:20,_hidden:!0},when:J,parts:[{kind:"group",name:"Gallery head",props:{...o,direction:"row",justify:"between",align:"end",gap:24,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},parts:[l("galleryKicker",a(12,{color:"accent",letterSpacing:.3})),{kind:"text",key:"galleryHint",props:{...i,align:"right",alignPhone:"left"},style:a(11,{letterSpacing:.22,alignPhone:"left"})}]},{kind:"group",name:"Groups",props:{...o,gap:24},parts:[{kind:"list",key:"locations",name:"City picture",props:{...o,darken:85,darkenStyle:"bottom",placement:"bottom-left",sectionBorder:u,...m(12,12)},item:(e,t,n)=>({props:{...r(e.photo).trim()?{bgImage:r(e.photo)}:{},link:`#${B(t)}`,boxShape:ee(n,e)}}),parts:[{kind:"text",key:"name",props:p,style:a(11,{letterSpacing:.22,color:"text"})}],groups:{of:s,name:"Group",props:{...o,gap:10},head:e=>({label:s(e[0]??{})}),parts:[l("label",a(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:te(2),perRow:g,rowName:"Row",rowProps:{...b,phoneRow:2}}}]}]},ne={kind:"group",name:"Words",props:{...o,gap:12,gapPhone:12,...m(28,28),sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",sectionHeightModePhone:"auto"},parts:[{kind:"group",name:"Name row",props:{...o,direction:"row",justify:"between",align:"start",gap:14,share:"content",phoneRow:2,sharePhone:"content",wrapPhone:"wrap",sectionPaddingBottom:6,sectionPaddingBottomPhone:6},parts:[{kind:"group",name:"Name",props:{...o,gap:6,gapPhone:6},parts:[{kind:"text",key:"name",role:"heading",props:p,style:{textStyle:"heading-3",...c("headingSmall",30),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}},{kind:"block",type:"Text",props:{...p,_partStyles:{text:a(12,{color:"accent",letterSpacing:.24,lineHeight:1.5})}},box:["region","state","country"].map(e=>[e,"text",(t,n)=>_(n)]),when:(e,t)=>_(t??{})!==""}]},{kind:"group",name:"Time zone",props:{...o,sectionBorder:u,...m(6,10)},parts:[{kind:"text",key:"timezone",props:{...i,textFit:"line"},style:a(12,{letterSpacing:.22,lineHeight:1.5})}]}]},{kind:"text",key:"address",props:i,style:{textStyle:"body-5",fontRole:"heading",...c("body",14),lineHeight:1.5}},{kind:"block",type:"ButtonBlock",props:{...k,...S,variant:"ghost",arrow:!1,_partStyles:{label:a(13,{letterSpacing:.18,color:"text",lineHeight:24/13})}},box:[["phone","label"],["phone","href",e=>q(r(e))??"#"]],when:(e,t)=>r(t?.phone).trim()!==""},{kind:"text",key:"hours",props:i,style:a(12,{letterSpacing:.18,lineHeight:1.7})}]},re={kind:"block",type:"LocationMap",props:e=>({mapTheme:typeof e.mapTheme=="string"?e.mapTheme:"auto"}),box:["name","lat","lng","mapsUrl","geocode",...["region","state"].map(e=>[e,"state",(t,n)=>T(n)]),...["region","country"].map(e=>[e,"country",(t,n)=>O(n)])]},ae={kind:"group",name:"Map",props:{...o,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[re]},ie={kind:"list",key:"locations",name:"City",props:(e,t)=>({...o,gap:0,justify:"between",sectionBorder:u,jumpHighlight:!0,sectionAccent:K(e,t)>=0?$(e.sectionAccent,t):-1}),item:(e,t)=>({props:{anchor:B(t)}}),parts:[ne,ae],groups:{of:s,name:"Group",props:{...o,gap:20},head:e=>{const t=e[0]??{};return{key:s(t),groupName:r(t.groupName),count:`${e.length} location${e.length===1?"":"s"}`}},parts:[{kind:"group",name:"Group head",props:{...o,direction:"row",justify:"between",align:"end",gap:16,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},when:(e,t)=>r(t?.key).trim()!=="",parts:[l("key",a(13,{color:"accent",letterSpacing:.3})),{kind:"text",key:"groupName",role:"heading",props:p,style:{textStyle:"heading-3",...c("headingSmall",24),case:"upper",weight:500,letterSpacing:-.01}},{kind:"text",key:"count",props:i,style:a(12,{letterSpacing:.22})}]}],itemsName:"Cities",itemsProps:e=>({...b,columns:g(e),[R("columns")]:1})}},C=a(10,{letterSpacing:.25}),se={kind:"block",type:j,props:{...o,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:Q,slot:G,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...i,text:"Location coordinates ©",_partStyles:{text:C}}},{kind:"block",type:"ButtonBlock",props:{...k,...S,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...C,color:"labels"}}}}]},M=(e,t)=>Object.fromEntries(t.filter(n=>e[n]!==void 0).map(n=>[n,e[n]])),E=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],H=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],A=e=>e.map(t=>[t,t,(n,L)=>d(L,y)[t]]),I=["sectionAccent","sectionAccent",v],pe=["gridSpan","_hidden"],ce={name:"City pictures",skip:e=>x(e)?`fed by the data source "${x(e)}": its cities are read as the page is served, not stored on the node`:void 0,boxProps:(e,t)=>({...f,direction:"column",gap:40,anchor:"studios",...M(d(e,y),E),sectionPaddingBottom:N,sectionPaddingBottomPhone:N,...P(e,t)}),box:[...X.filter(e=>e!=="sectionAccent"&&e!=="anchor"),I,["anchor","anchor",e=>Y(e).trim()?e:"studios"],...A(E)],parts:[U("sectionNumber","heading","tagline"),oe],also:[{name:"City maps",boxProps:(e,t)=>({...f,direction:"column",gap:40,sectionBorder:{bottom:1},sectionPaddingTop:0,sectionPaddingTopPhone:0,...M(d(e,y),H),...P(e,t)}),box:[...pe,I,...A(H)],parts:[ie,se]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:z,drop:{...D,...W,apiKey:"a stored Google Maps key from before the map needed none: the website's one map (components/SiteMap) takes no key, and a key is a credential, never page content",mapId:"a Google Maps style id from the same retired map: nothing in src/ reads it",gallery:"the retired separate tile list: the wall is derived from the cities (`components/ContactLocations`), nothing in src/ reads it",dataSource:"always empty here: a node fed by a source is skipped (see skip)"}},Pe={ContactLocations:ce};export{Pe as LOCATIONS_SECTION_TO_BOX};
1
+ import{tabletKey as R}from"efficient-easel/draw";import{SECTION_BOX_SLOT as G,SECTION_BOX_TYPE as j}from"../../../sections/section-to-box.js";import{BUTTON as k,DIM as i,DROP_COMMON as D,DROP_SIDE_PADDING as W,INNER_BOX as o,SAME_KEYS as v,SECTION_BOX as f,SH_LINK as S,TEXT as p,bandAccent as X,bandIndex as K,bandPage as $,bandProps as P,bandWrites as z,smallText as l,wrapperPad as d}from"./section-to-box-row-parts.js";import{editorialHeadTree as U,token as c}from"./section-head-looks.js";import{boxPadding as m}from"../../../../../format/lib/document/seed-parts.js";import{readAnchorName as Y}from"../../../../../format/lib/content/anchor-name.js";import{declaredBlockSource as x}from"../../../../../format/lib/content/block-sources.js";import{parseLocationTileShape as F,splitLegacyRegion as w}from"../../../../../format/lib/content/contact.js";import{groupColumns as g}from"../../../../../format/lib/locations-grid.js";import{phoneHref as q}from"../../../../../format/lib/links/phone-href.js";import{hasMapCoords as V}from"../../../../../format/lib/map-styles.js";const r=e=>typeof e=="string"?e:e==null?"":String(e),h=e=>Array.isArray(e.locations)?e.locations.map(t=>t??{}):[],s=e=>r(e.group),B=e=>`loc-${e}`,T=e=>r(e.state).trim()||w(r(e.region)).state,O=e=>r(e.country).trim()||w(r(e.region)).country,_=e=>[T(e),O(e)].filter(Boolean).join(" · "),J=e=>h(e).some(t=>r(t.photo).trim()!==""),Q=e=>h(e).some(t=>V(Number(t.lat),Number(t.lng))),Z=(e,t)=>h(e).filter(n=>s(n)===s(t)).length,ee=(e,t)=>Z(e,t)===1?"wide":F(e.imageShape),y={top:100,bottom:100,topPhone:60,bottomPhone:60},N=48,a=(e,t={})=>({textStyle:"body-5",...c("label",e),case:"upper",...t}),u={top:1,right:1,bottom:1,left:1},b={...o,direction:"row",share:"equal",gap:0},te=e=>t=>t>g(t)?{...o,gap:0}:{...b,...t>1?{phoneRow:e}:{}},oe={kind:"group",name:"Gallery",props:{...o,gap:20,_hidden:!0},when:J,parts:[{kind:"group",name:"Gallery head",props:{...o,direction:"row",justify:"between",align:"end",gap:24,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},parts:[l("galleryKicker",a(12,{color:"accent",letterSpacing:.3})),{kind:"text",key:"galleryHint",props:{...i,align:"right",alignPhone:"left"},style:a(11,{letterSpacing:.22,alignPhone:"left"})}]},{kind:"group",name:"Groups",props:{...o,gap:24},parts:[{kind:"list",key:"locations",name:"City picture",props:{...o,darken:85,darkenStyle:"bottom",placement:"bottom-left",sectionBorder:u,...m(12,12)},item:(e,t,n)=>({props:{...r(e.photo).trim()?{bgImage:r(e.photo),hover:"mono"}:{},link:`#${B(t)}`,boxShape:ee(n,e)}}),parts:[{kind:"text",key:"name",props:p,style:a(11,{letterSpacing:.22,color:"text"})}],groups:{of:s,name:"Group",props:{...o,gap:10},head:e=>({label:s(e[0]??{})}),parts:[l("label",a(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:te(2),perRow:g,rowName:"Row",rowProps:{...b,phoneRow:2}}}]}]},ne={kind:"group",name:"Words",props:{...o,gap:12,gapPhone:12,...m(28,28),sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",sectionHeightModePhone:"auto"},parts:[{kind:"group",name:"Name row",props:{...o,direction:"row",justify:"between",align:"start",gap:14,share:"content",phoneRow:2,sharePhone:"content",wrapPhone:"wrap",sectionPaddingBottom:6,sectionPaddingBottomPhone:6},parts:[{kind:"group",name:"Name",props:{...o,gap:6,gapPhone:6},parts:[{kind:"text",key:"name",role:"heading",props:p,style:{textStyle:"heading-3",...c("headingSmall",30),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}},{kind:"block",type:"Text",props:{...p,_partStyles:{text:a(12,{color:"accent",letterSpacing:.24,lineHeight:1.5})}},box:["region","state","country"].map(e=>[e,"text",(t,n)=>_(n)]),when:(e,t)=>_(t??{})!==""}]},{kind:"group",name:"Time zone",props:{...o,sectionBorder:u,...m(6,10)},parts:[{kind:"text",key:"timezone",props:{...i,textFit:"line"},style:a(12,{letterSpacing:.22,lineHeight:1.5})}]}]},{kind:"text",key:"address",props:i,style:{textStyle:"body-5",fontRole:"heading",...c("body",14),lineHeight:1.5}},{kind:"block",type:"ButtonBlock",props:{...k,...S,variant:"ghost",arrow:!1,_partStyles:{label:a(13,{letterSpacing:.18,color:"text",lineHeight:24/13})}},box:[["phone","label"],["phone","href",e=>q(r(e))??"#"]],when:(e,t)=>r(t?.phone).trim()!==""},{kind:"text",key:"hours",props:i,style:a(12,{letterSpacing:.18,lineHeight:1.7})}]},re={kind:"block",type:"LocationMap",props:e=>({mapTheme:typeof e.mapTheme=="string"?e.mapTheme:"auto"}),box:["name","lat","lng","mapsUrl","geocode",...["region","state"].map(e=>[e,"state",(t,n)=>T(n)]),...["region","country"].map(e=>[e,"country",(t,n)=>O(n)])]},ae={kind:"group",name:"Map",props:{...o,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[re]},ie={kind:"list",key:"locations",name:"City",props:(e,t)=>({...o,gap:0,justify:"between",sectionBorder:u,jumpHighlight:!0,sectionAccent:K(e,t)>=0?$(e.sectionAccent,t):-1}),item:(e,t)=>({props:{anchor:B(t)}}),parts:[ne,ae],groups:{of:s,name:"Group",props:{...o,gap:20},head:e=>{const t=e[0]??{};return{key:s(t),groupName:r(t.groupName),count:`${e.length} location${e.length===1?"":"s"}`}},parts:[{kind:"group",name:"Group head",props:{...o,direction:"row",justify:"between",align:"end",gap:16,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},when:(e,t)=>r(t?.key).trim()!=="",parts:[l("key",a(13,{color:"accent",letterSpacing:.3})),{kind:"text",key:"groupName",role:"heading",props:p,style:{textStyle:"heading-3",...c("headingSmall",24),case:"upper",weight:500,letterSpacing:-.01}},{kind:"text",key:"count",props:i,style:a(12,{letterSpacing:.22})}]}],itemsName:"Cities",itemsProps:e=>({...b,columns:g(e),[R("columns")]:1})}},C=a(10,{letterSpacing:.25}),se={kind:"block",type:j,props:{...o,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:Q,slot:G,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...i,text:"Location coordinates ©",_partStyles:{text:C}}},{kind:"block",type:"ButtonBlock",props:{...k,...S,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...C,color:"labels"}}}}]},M=(e,t)=>Object.fromEntries(t.filter(n=>e[n]!==void 0).map(n=>[n,e[n]])),E=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],H=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],A=e=>e.map(t=>[t,t,(n,L)=>d(L,y)[t]]),I=["sectionAccent","sectionAccent",X],pe=["gridSpan","_hidden"],ce={name:"City pictures",skip:e=>x(e)?`fed by the data source "${x(e)}": its cities are read as the page is served, not stored on the node`:void 0,boxProps:(e,t)=>({...f,direction:"column",gap:40,anchor:"studios",...M(d(e,y),E),sectionPaddingBottom:N,sectionPaddingBottomPhone:N,...P(e,t)}),box:[...v.filter(e=>e!=="sectionAccent"&&e!=="anchor"),I,["anchor","anchor",e=>Y(e).trim()?e:"studios"],...A(E)],parts:[U("sectionNumber","heading","tagline"),oe],also:[{name:"City maps",boxProps:(e,t)=>({...f,direction:"column",gap:40,sectionBorder:{bottom:1},sectionPaddingTop:0,sectionPaddingTopPhone:0,...M(d(e,y),H),...P(e,t)}),box:[...pe,I,...A(H)],parts:[ie,se]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:z,drop:{...D,...W,apiKey:"a stored Google Maps key from before the map needed none: the website's one map (components/SiteMap) takes no key, and a key is a credential, never page content",mapId:"a Google Maps style id from the same retired map: nothing in src/ reads it",gallery:"the retired separate tile list: the wall is derived from the cities (`components/ContactLocations`), nothing in src/ reads it",dataSource:"always empty here: a node fed by a source is skipped (see skip)"}},Pe={ContactLocations:ce};export{Pe as LOCATIONS_SECTION_TO_BOX};