efficient-web-builder 53.0.0 → 55.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 (163) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist/editor/components/BlockGapField.js +1 -1
  3. package/dist/editor/components/CornersField.js +1 -1
  4. package/dist/editor/components/DuplicateToPageMenu.d.ts +2 -0
  5. package/dist/editor/components/DuplicateToPageMenu.js +1 -1
  6. package/dist/editor/components/SectionWidthRows.d.ts +2 -1
  7. package/dist/editor/components/SectionWidthRows.js +1 -1
  8. package/dist/editor/components/SideSpaceField.js +1 -1
  9. package/dist/editor/components/WebsiteSettingsPanel.js +1 -1
  10. package/dist/editor/lib/document/blocks/general/ButtonBlock/fields.js +1 -1
  11. package/dist/editor/lib/document/blocks/general/Eyebrow/fields.js +1 -1
  12. package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
  13. package/dist/editor/lib/document/blocks/general/Hero/fields.js +1 -1
  14. package/dist/editor/lib/document/blocks/general/HeroSingle/fields.js +1 -1
  15. package/dist/editor/lib/document/blocks/general/LogoBlock/fields.js +1 -1
  16. package/dist/editor/lib/document/blocks/general/Split/fields.js +1 -1
  17. package/dist/editor/lib/document/blocks/general/Text/fields.js +1 -1
  18. package/dist/editor/lib/document/blocks/general/TitleWithButtons/fields.js +1 -1
  19. package/dist/editor/lib/document/blocks/hero-shared-fields.d.ts +29 -2
  20. package/dist/editor/lib/document/blocks/hero-shared-fields.js +1 -1
  21. package/dist/editor/lib/document/blocks/shared-fields.d.ts +1 -5
  22. package/dist/editor/lib/document/blocks/shared-fields.js +1 -1
  23. package/dist/editor/lib/document/box-accordion-seed.d.ts +3 -0
  24. package/dist/editor/lib/document/box-accordion-seed.js +1 -0
  25. package/dist/editor/lib/document/box-fields.d.ts +11 -0
  26. package/dist/editor/lib/document/box-fields.js +1 -1
  27. package/dist/editor/lib/document/box-phone-order-field.d.ts +8 -0
  28. package/dist/editor/lib/document/box-phone-order-field.js +1 -0
  29. package/dist/editor/lib/document/controls.d.ts +3 -1
  30. package/dist/editor/lib/document/controls.js +1 -1
  31. package/dist/editor/lib/document/mirror-cards-field.d.ts +1 -0
  32. package/dist/editor/lib/document/mirror-cards-field.js +1 -1
  33. package/dist/editor/lib/document/passes/inspector.js +1 -1
  34. package/dist/editor/lib/document/section-own-width-fields.d.ts +4 -0
  35. package/dist/editor/lib/document/section-own-width-fields.js +1 -0
  36. package/dist/editor/lib/document/shape-picker.d.ts +8 -0
  37. package/dist/editor/lib/document/shape-picker.js +1 -1
  38. package/dist/format/lib/content/block-align.d.ts +4 -1
  39. package/dist/format/lib/content/block-align.js +1 -1
  40. package/dist/format/lib/content/box-layout.d.ts +5 -0
  41. package/dist/format/lib/content/box-layout.js +1 -1
  42. package/dist/format/lib/content/box-phone-place.d.ts +11 -0
  43. package/dist/format/lib/content/box-phone-place.js +1 -0
  44. package/dist/format/lib/content/box-shadow.d.ts +4 -0
  45. package/dist/format/lib/content/box-shadow.js +1 -1
  46. package/dist/format/lib/content/box-shape.d.ts +1 -1
  47. package/dist/format/lib/content/box-shape.js +1 -1
  48. package/dist/format/lib/content/card-template.d.ts +2 -1
  49. package/dist/format/lib/content/card-template.js +1 -1
  50. package/dist/format/lib/content/container-direction.d.ts +1 -1
  51. package/dist/format/lib/content/container-direction.js +1 -1
  52. package/dist/format/lib/content/gallery-card-layout.d.ts +16 -1
  53. package/dist/format/lib/content/gallery-card-layout.js +1 -1
  54. package/dist/format/lib/content/image-aspect.d.ts +2 -0
  55. package/dist/format/lib/content/image-aspect.js +1 -1
  56. package/dist/format/lib/content/page-width.d.ts +3 -0
  57. package/dist/format/lib/content/page-width.js +1 -1
  58. package/dist/format/lib/content/picture-focus-rows.js +1 -0
  59. package/dist/format/lib/content/section-height.d.ts +31 -2
  60. package/dist/format/lib/content/section-height.js +1 -1
  61. package/dist/format/lib/content/section-min-height.d.ts +2 -1
  62. package/dist/format/lib/content/section-min-height.js +1 -1
  63. package/dist/format/lib/content/section-width.d.ts +38 -1
  64. package/dist/format/lib/content/section-width.js +1 -1
  65. package/dist/format/lib/content/site-gutter.d.ts +2 -0
  66. package/dist/format/lib/content/site-gutter.js +1 -1
  67. package/dist/format/lib/content/view-overrides.d.ts +7 -0
  68. package/dist/format/lib/content/view-overrides.js +1 -0
  69. package/dist/format/lib/document/blocks/block-types.d.ts +1 -1
  70. package/dist/format/lib/document/blocks/general/Flex/meta.d.ts +4 -0
  71. package/dist/format/lib/document/blocks/general/Flex/meta.js +1 -1
  72. package/dist/format/lib/document/passes/types.d.ts +3 -0
  73. package/dist/format/lib/document/section-catalog.js +1 -1
  74. package/dist/format/lib/editor-words-catalogue.d.ts +12 -0
  75. package/dist/format/lib/editor-words-catalogue.js +5 -5
  76. package/dist/format/lib/markup.d.ts +1 -0
  77. package/dist/format/lib/markup.js +2 -2
  78. package/dist/format/lib/sections/hero-single-to-hero.js +1 -1
  79. package/dist/format/lib/sections/intro-bleed-layout.d.ts +1 -0
  80. package/dist/format/lib/sections/intro-bleed-layout.js +1 -1
  81. package/dist/format/lib/source-rules/padding-units-declared.d.ts +2 -0
  82. package/dist/format/lib/source-rules/padding-units-declared.js +6 -0
  83. package/dist/render/components/AccordionMark.d.ts +4 -0
  84. package/dist/render/components/AccordionMark.js +1 -0
  85. package/dist/render/components/BoxAccordionRow.d.ts +7 -0
  86. package/dist/render/components/BoxAccordionRow.js +1 -0
  87. package/dist/render/components/BoxTabPaneContext.d.ts +3 -1
  88. package/dist/render/components/BoxTabPaneContext.js +1 -1
  89. package/dist/render/components/BoxTabs.js +1 -1
  90. package/dist/render/components/ButtonBlock.d.ts +1 -0
  91. package/dist/render/components/ButtonBlock.js +1 -1
  92. package/dist/render/components/CardRowContext.js +1 -1
  93. package/dist/render/components/Divider.js +1 -1
  94. package/dist/render/components/Eyebrow.d.ts +2 -1
  95. package/dist/render/components/Eyebrow.js +1 -1
  96. package/dist/render/components/FAQ.js +1 -1
  97. package/dist/render/components/Flex.d.ts +15 -2
  98. package/dist/render/components/Flex.js +1 -1
  99. package/dist/render/components/HeroSection.d.ts +4 -1
  100. package/dist/render/components/HeroSection.js +1 -1
  101. package/dist/render/components/HeroSingle.d.ts +4 -1
  102. package/dist/render/components/HeroSingle.js +1 -1
  103. package/dist/render/components/HeroSlide.d.ts +1 -0
  104. package/dist/render/components/HeroSlide.js +1 -1
  105. package/dist/render/components/ImageBlock.js +1 -1
  106. package/dist/render/components/InBoxContext.d.ts +1 -0
  107. package/dist/render/components/IntroBleed.js +1 -1
  108. package/dist/render/components/LogoBlock.d.ts +1 -0
  109. package/dist/render/components/LogoBlock.js +1 -1
  110. package/dist/render/components/Logos.js +1 -1
  111. package/dist/render/components/ProcessSteps.d.ts +1 -0
  112. package/dist/render/components/ProcessSteps.js +1 -1
  113. package/dist/render/components/SiteGutterFrame.d.ts +16 -0
  114. package/dist/render/components/SiteGutterFrame.js +1 -1
  115. package/dist/render/components/Split.d.ts +2 -1
  116. package/dist/render/components/Split.js +1 -1
  117. package/dist/render/components/Text.d.ts +2 -1
  118. package/dist/render/components/Text.js +1 -1
  119. package/dist/render/components/TitleWithButtons.d.ts +2 -1
  120. package/dist/render/components/TitleWithButtons.js +1 -1
  121. package/dist/render/lib/content/block-size.d.ts +1 -0
  122. package/dist/render/lib/content/block-size.js +1 -1
  123. package/dist/render/lib/content/box-shared-columns.d.ts +2 -2
  124. package/dist/render/lib/content/box-shared-columns.js +1 -1
  125. package/dist/render/lib/content/box-stack-line.d.ts +15 -0
  126. package/dist/render/lib/content/box-stack-line.js +1 -0
  127. package/dist/render/lib/content/button-look.js +1 -1
  128. package/dist/render/lib/content/empty-hides.d.ts +8 -0
  129. package/dist/render/lib/content/empty-hides.js +1 -0
  130. package/dist/render/lib/content/section-edge.d.ts +1 -1
  131. package/dist/render/lib/content/section-edge.js +1 -1
  132. package/dist/render/lib/content/section-padding.d.ts +17 -3
  133. package/dist/render/lib/content/section-padding.js +1 -1
  134. package/dist/render/lib/content/view-values.d.ts +1 -7
  135. package/dist/render/lib/content/view-values.js +1 -1
  136. package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
  137. package/dist/render/lib/document/blocks/general/Hero/render.js +1 -1
  138. package/dist/render/lib/document/blocks/general/HeroSingle/render.js +1 -1
  139. package/dist/render/lib/document/blocks/general/HeroSlide/render.js +1 -1
  140. package/dist/render/lib/document/blocks/general/ImageBlock/render.js +1 -1
  141. package/dist/render/lib/document/blocks/general/Text/render.js +1 -1
  142. package/dist/render/lib/document/blocks/general/section-head-looks.d.ts +1 -0
  143. package/dist/render/lib/document/blocks/general/section-head-looks.js +2 -2
  144. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
  145. package/dist/render/lib/document/blocks/general/section-to-box-rows-docbody.js +2 -2
  146. package/dist/render/lib/document/blocks/general/section-to-box-rows-editorial.js +1 -1
  147. package/dist/render/lib/document/blocks/general/section-to-box-rows-head.js +1 -1
  148. package/dist/render/lib/document/blocks/general/section-to-box-rows-locations.js +1 -1
  149. package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
  150. package/dist/render/lib/document/head-core-boxes.d.ts +1 -0
  151. package/dist/render/lib/document/head-core-boxes.js +1 -0
  152. package/dist/render/lib/document/page-render.js +1 -1
  153. package/dist/render/lib/document/passes/block-size.js +1 -1
  154. package/dist/render/lib/document/passes/head-core.d.ts +3 -0
  155. package/dist/render/lib/document/passes/head-core.js +1 -0
  156. package/dist/render/lib/document/passes/index.js +1 -1
  157. package/dist/render/lib/document/passes/section-theme.js +1 -1
  158. package/dist/render/lib/document/passes/section-width.js +1 -1
  159. package/dist/render/lib/document/passes/slots-start-afresh.js +1 -1
  160. package/dist/render/lib/sections/section-to-box.js +1 -1
  161. package/package.json +5 -5
  162. package/dist/render/lib/content/picture-focus-rows.js +0 -1
  163. /package/dist/{render → format}/lib/content/picture-focus-rows.d.ts +0 -0
@@ -1 +1 @@
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};
1
+ import{jsx as e,jsxs as i}from"react/jsx-runtime";import{alignViewAnswers as X,alignViewClasses as A}from"../../format/lib/content/block-align.js";import{SiteLink as $}from"../lib/site-runtime.js";import G from"./Btn.js";import{resolveImageTreatment as H}from"../../format/lib/content/image-treatment.js";import E from"./Placeholder.js";import{useSitePhotography as D}from"./SitePhotographyContext.js";import K from"./SectionEyebrow.js";import{renderGold as s,renderHeadline as R,splitParagraphs as Y}from"./goldPhrases.js";import{ON_MEDIA_INK_STYLE as Z}from"../../format/lib/content/ink.js";import{scrim as q}from"../../format/lib/content/scrim.js";import{SECTION_FILL_CLASS as J}from"../../format/lib/content/section-min-height.js";const a={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)]"},L={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:x,imageSrc:f,imageTint:v=.4,imageObjectPosition:T,eyebrow:h,title:b,body:g,cta:c,reverse:n=!1,uppercase:z=!1,textAlign:m="left",textAlignTablet:w,textAlignPhone:u,textBgSrc:p,textBgLabel:I,textBgTint:y=.6,textBgObjectPosition:S,featureBar:r,imageButton:l,grayscale:M,pictureHover:C,fillHeight:P=!1}){const _=H(M,D(),C),N={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"}},d=N[m]??N.left,j={left:{items:"view-tablet:max-view-desktop:items-stretch",cta:"view-tablet:max-view-desktop:self-start"},center:{items:"view-tablet:max-view-desktop:items-center",cta:"view-tablet:max-view-desktop:self-center"},right:{items:"view-tablet:max-view-desktop:items-end",cta:"view-tablet:max-view-desktop:self-end"}},k={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"}},t=X(m,w,u),o={text:A("text",m,w,u),items:[t.tablet&&j[t.tablet].items,t.phone&&k[t.phone].items].filter(Boolean).join(" "),cta:[t.tablet&&j[t.tablet].cta,t.phone&&k[t.phone].cta].filter(Boolean).join(" ")},O=n?"right":"left",U=n?"left":"right";return e("section",{className:"relative z-[2] bg-bg p-0",children:i("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?[J]:[]].join(" "),children:[i("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(E,{label:x,src:f,objectPosition:T,treatment:_}),f&&v>0&&e("div",{className:"absolute inset-0",style:{background:`rgba(0,0,0,${v})`}}),(r||l)&&i("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))] ${L.buttons[O]}`,children:[r&&i($,{href:r.href,className:`pointer-events-auto inline-flex items-center justify-center gap-3 border px-7 py-4 font-mono ${a.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 ${a.labelUpTo800}`,style:{borderColor:"color-mix(in srgb, var(--overlay-fg) 30%, transparent)",color:"color-mix(in srgb, var(--overlay-fg) 85%, transparent)",background:q(.45)},children:[e("span",{children:s(r.wheel)}),e("span",{"aria-hidden":!0,style:{opacity:.55},children:"·"}),e("span",{children:s(r.category)}),e("span",{"aria-hidden":!0,children:"→"}),e("span",{children:s(r.cta??"Shop now")})]}),l&&i($,{href:l.href,className:`pointer-events-auto inline-flex items-center justify-center gap-2 border px-7 py-4 font-mono ${a.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 ${a.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:s(l.text??"Learn more")}),e("span",{"aria-hidden":!0,children:"→"})]})]})]}),i("div",{className:"relative overflow-hidden [direction:ltr] max-[960px]:order-1",children:[p&&i("div",{className:"absolute inset-0","aria-hidden":!0,children:[e(E,{label:I??x,src:p,objectPosition:S,treatment:_}),y>0&&e("div",{className:"absolute inset-0",style:{background:`rgba(0,0,0,${y})`}})]}),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] ${L.words[U]}`,style:p?Z:void 0,children:i("div",{className:["flex flex-1 flex-col justify-center gap-6",d.items,d.text,o.items,o.text].filter(Boolean).join(" "),children:[h&&e(K,{text:h,size:14}),b&&e("h2",{className:[`font-heading2 ${a.headingMedium} font-normal leading-[1.05] tracking-[-0.03em]`,`${a.headingMediumUpTo800} max-view-wide:leading-[1]`,z?"uppercase":""].join(" "),children:R(b,!1)}),g&&Y(g).map((F,V)=>e("p",{className:[`max-w-[520px] ${a.body} leading-[1.7]`,"text-fg-dim"].join(" "),children:s(F)},V)),c.text&&e("div",{className:`mt-2 ${d.cta}${o.cta?` ${o.cta}`:""}`,children:e(G,{href:c.href,variant:"primary",children:s(c.text)})})]})})]})]})})}export{Q as default};
@@ -8,6 +8,7 @@ interface TextProps {
8
8
  text: string;
9
9
  number?: string;
10
10
  align?: Align;
11
+ alignTablet?: unknown;
11
12
  alignPhone?: unknown;
12
13
  tone?: Tone;
13
14
  tag?: string;
@@ -18,5 +19,5 @@ interface TextProps {
18
19
  onLine?: boolean;
19
20
  }
20
21
  export declare function headingLevelOfStyle(id: string): HeadingLevel;
21
- export default function Text({ text, number, align, alignPhone, tone, contained, hero, pad, tag, textStyle, ownWidth, partAlign, onLine }: TextProps): import("react").JSX.Element;
22
+ export default function Text({ text, number, align, alignTablet, alignPhone, tone, contained, hero, pad, tag, textStyle, ownWidth, partAlign, onLine }: TextProps): import("react").JSX.Element;
22
23
  export {};
@@ -1 +1 @@
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
+ import{jsx as r,jsxs as _}from"react/jsx-runtime";import T from"./BlockFrame.js";import{renderGold as x,renderHeadline as k,splitParagraphs as O}from"./goldPhrases.js";import{headingLook as j}from"./Heading.js";import{alignViewClasses as z}from"../../format/lib/content/block-align.js";import{textTagOf as I}from"../../format/lib/content/text-tag.js";import{KICKER_NUMBER_ATTR as L,kickerLead as R}from"../lib/content/page-contents.js";import{isTextStyleId as A}from"../lib/document/part-styles.js";import{faceClassOf as N}from"../../format/lib/text-style-face.js";import{useMirroredCopy as M}from"./MirrorContext.js";import{mirroredTextClasses as v}from"../../format/lib/content/mirror-cards.js";const d={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)]"},m=e=>e?` ${e}`:"";function U(e,l,t){const o=z("place",e,l,t);return o?` ${o}`:""}const B={left:"text-left",center:"text-left mx-auto",right:"text-left ml-auto"},G=`max-w-[380px] ${d.bodySmall} leading-[1.5] opacity-80 ${d.bodyUpTo800}`,H={default:"text-fg",dim:"text-fg-dim"};function K(e){return String(Math.min(Number(e.slice(8)),6))}function F({text:e,number:l,align:t,alignTablet:o,alignPhone:w,tone:h,contained:u,hero:C=!1,pad:i,tag:S,textStyle:g,ownWidth:E=!1,partAlign:y,onLine:n=!1}){const $=M();if(C)return r("p",{className:G,children:x(e)});const c=l?r("span",{[L]:"",children:R(l)}):void 0,a=A(g)?g:void 0,b=`${a?`${N({id:a})} `:""}${E?"":"max-w-[680px] "}whitespace-pre-line ${a==="body-5"?d.label:d.bodyLarge} leading-[1.7]${m(t?B[t]:"")}${U(t,o,w)}${m(h?H[h]:"")}${m(v($,t,y))}`,f=I(S);if(a?.startsWith("heading-")){const p=K(a),s=j(p,N({id:a}));return r(T,{contained:u,className:n?"":"py-6",pad:i?{values:i,frame:n?0:24}:void 0,children:_(f,{className:`${s.className}${m(v($,void 0,y))}`,style:s.style,children:[c,k(e.trim(),!1)]})})}return r(T,{contained:u,className:n?"":"py-4",pad:i?{values:i,frame:n?0:16}:void 0,children:f==="p"?O(e).map((p,s)=>r("p",{className:b,children:x(p,!1,s===0?c:void 0)},s)):r(f,{className:b,children:x(e.trim(),!1,c)})})}export{F as default,K as headingLevelOfStyle};
@@ -9,7 +9,8 @@ export interface TitleWithButtonsProps {
9
9
  padTop?: number;
10
10
  padBottom?: number;
11
11
  buttonsAlign?: "left" | "center" | "right";
12
+ buttonsAlignTablet?: unknown;
12
13
  buttonsAlignPhone?: unknown;
13
14
  editing?: boolean;
14
15
  }
15
- export default function TitleWithButtons({ title, buttons, padTop, padBottom, buttonsAlign, buttonsAlignPhone, editing, }?: TitleWithButtonsProps): import("react").JSX.Element | null;
16
+ export default function TitleWithButtons({ title, buttons, padTop, padBottom, buttonsAlign, buttonsAlignTablet, buttonsAlignPhone, editing, }?: TitleWithButtonsProps): import("react").JSX.Element | null;
@@ -1 +1 @@
1
- import{jsx as r,jsxs as m}from"react/jsx-runtime";import{alignPhoneClass as w}from"../../format/lib/content/block-align.js";import{SiteLink as k}from"../lib/site-runtime.js";import{renderHeadline as y}from"./goldPhrases.js";import{say as j}from"../../format/lib/editor-words.js";function N({title:n,buttons:x,padTop:o,padBottom:l,buttonsAlign:s,buttonsAlignPhone:d,editing:p=!1}={}){const f=typeof o=="number"?o:140,c=typeof l=="number"?l:140,i=(x??[]).filter(t=>p||(t.label??"").trim()),e=!!(n??"").trim(),a=!e&&(s==="center"||s==="left")?s:null,g=e?"":w("items",a??"right",d);return!p&&!e&&i.length===0?null:r("section",{className:"relative z-[2] bg-bg",children:m("div",{className:[a==="center"?"mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-1 items-center justify-items-center gap-[60px] border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]":a==="left"?"mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-1 items-center justify-items-start gap-[60px] border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]":"mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-[1fr_auto] items-center gap-[60px] border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:grid-cols-1 max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]",g].filter(Boolean).join(" "),style:{paddingTop:f,paddingBottom:c},children:[a===null&&!e&&i.length>0&&r("div",{"aria-hidden":!0,className:"max-view-desktop:hidden"}),e&&r("h2",{className:"max-w-[1000px] font-display text-[length:min(var(--size-headingLarge,clamp(48px,7vw,108px)),var(--sf-heading-max,9999px))] [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-[0.94] tracking-[-0.035em] text-fg",children:y(n??"")}),i.length>0&&r("div",{className:"flex min-w-[280px] flex-col gap-3.5 max-view-desktop:min-w-0",children:i.map((t,h)=>{const v=(t.label??"").trim()||j("Button label"),u=t.href||"#",b=t.variant==="primary";return m(k,{href:u,className:["flex items-center justify-between gap-6 px-7 py-5","font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.3em] transition-colors",b?"border border-btn bg-btn text-btn-ink hover:border-fg hover:bg-fg":"border border-line text-fg hover:border-accent hover:text-accent"].join(" "),children:[v," ",r("span",{"aria-hidden":!0,children:"→"})]},h)})})]})})}export{N as default};
1
+ import{jsx as r,jsxs as m}from"react/jsx-runtime";import{alignViewClasses as k}from"../../format/lib/content/block-align.js";import{SiteLink as y}from"../lib/site-runtime.js";import{renderHeadline as j}from"./goldPhrases.js";import{say as N}from"../../format/lib/editor-words.js";function _({title:n,buttons:x,padTop:o,padBottom:l,buttonsAlign:a,buttonsAlignTablet:d,buttonsAlignPhone:f,editing:p=!1}={}){const c=typeof o=="number"?o:140,g=typeof l=="number"?l:140,i=(x??[]).filter(t=>p||(t.label??"").trim()),e=!!(n??"").trim(),s=!e&&(a==="center"||a==="left")?a:null,h=e?"":k("items",s??"right",d,f);return!p&&!e&&i.length===0?null:r("section",{className:"relative z-[2] bg-bg",children:m("div",{className:[s==="center"?"mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-1 items-center justify-items-center gap-[60px] border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]":s==="left"?"mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-1 items-center justify-items-start gap-[60px] border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]":"mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-[1fr_auto] items-center gap-[60px] border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:grid-cols-1 max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]",h].filter(Boolean).join(" "),style:{paddingTop:c,paddingBottom:g},children:[s===null&&!e&&i.length>0&&r("div",{"aria-hidden":!0,className:"max-view-desktop:hidden"}),e&&r("h2",{className:"max-w-[1000px] font-display text-[length:min(var(--size-headingLarge,clamp(48px,7vw,108px)),var(--sf-heading-max,9999px))] [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-[0.94] tracking-[-0.035em] text-fg",children:j(n??"")}),i.length>0&&r("div",{className:"flex min-w-[280px] flex-col gap-3.5 max-view-desktop:min-w-0",children:i.map((t,v)=>{const u=(t.label??"").trim()||N("Button label"),b=t.href||"#",w=t.variant==="primary";return m(y,{href:b,className:["flex items-center justify-between gap-6 px-7 py-5","font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.3em] transition-colors",w?"border border-btn bg-btn text-btn-ink hover:border-fg hover:bg-fg":"border border-line text-fg hover:border-accent hover:text-accent"].join(" "),children:[u," ",r("span",{"aria-hidden":!0,children:"→"})]},v)})})]})})}export{_ as default};
@@ -19,6 +19,7 @@ export type BlockSize = {
19
19
  style: Record<string, string>;
20
20
  attrs: Record<string, string>;
21
21
  };
22
+ export declare function blockFillInCellClass(values: BlockSizeValues): string;
22
23
  export declare function blockSizeOf(values: BlockSizeValues): BlockSize | null;
23
24
  export declare function blockSetsItsWidth(values: BlockSizeValues): boolean;
24
25
  export declare function blockSizeValuesOf(props: Readonly<Record<string, unknown>>): BlockSizeValues;
@@ -1 +1 @@
1
- import{BLOCK_FIXED_WIDTH as T,BLOCK_SIZE_KEYS as F,parseBlockWidthFit as x,phoneKey as v,parseTextFit as k,tabletKey as g}from"efficient-easel/draw";import{partDisplayClass as L}from"../../../format/lib/content/part-display.js";const C="sf-block-size",E="show",N=e=>L(void 0,{block:e[v(E)]!==!1},"block"),r={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,K={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"}},O={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"}},y={desktop:"--sf-bw",tablet:"--sf-bw-t",phone:"--sf-bw-p"},A={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)]"]}},D={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)]"]}},H=["widthFit","width","minWidth","maxWidth"],u={desktop:"view-wide:whitespace-nowrap view-wide:[&_*]:whitespace-nowrap!",phone:"max-view-wide:whitespace-nowrap max-view-wide:[&_*]:whitespace-nowrap!"};function z(e){const n=[],s={},o={},w=H.some(t=>{const i=e[t]?.tablet;return t==="widthFit"?x(i)!==void 0:d(i)!==void 0}),f=w?["desktop","tablet","phone"]:["desktop","phone"],b=(t,i)=>{const a=t(i?.desktop),m=w?t(i?.tablet)??a:a;return{desktop:a,tablet:m,phone:t(i?.phone)??m}},_=b(x,e.widthFit),S=b(d,e.width);for(const t of f){const i=_[t];!i||i==="fit"||(n.push(w?O[t][i]:K[t][i]),i==="fixed"&&(s[y[t]]=`${S[t]??T.fallback}px`))}for(const t of["minWidth","maxWidth"]){const i=b(d,e[t]);for(const a of f){const m=i[a];if(m===void 0)continue;const[W,I]=w?D[t][a]:A[t][a];s[W]=`${m}px`,n.push(I)}}const p=k(e.textFit?.desktop),l=k(e.textFit?.phone),c=d(e.minFont?.desktop),h=d(e.minFont?.phone);return p==="line"&&n.push(u.desktop),(l??p)==="line"&&n.push(u.phone),p&&(o[r.fit]=p),l&&(o[r.fitPhone]=l),c!==void 0&&(o[r.min]=String(c)),h!==void 0&&(o[r.minPhone]=String(h)),n.length===0&&Object.keys(o).length===0?null:{className:[C,...n].join(" "),style:s,attrs:o}}function Y(e){if(d(e.maxWidth?.desktop)!==void 0)return!0;const n=x(e.widthFit?.desktop);return n==="fill"||n==="fixed"}function j(e){const n={};for(const s of F){const o=e[s],w=e[g(s)],f=e[v(s)];(o!==void 0||w!==void 0||f!==void 0)&&(n[s]={desktop:o,tablet:w,phone:f})}return n}export{E as BLOCK_SHOW_KEY,C as BLOCK_SIZE_CLASS,r as TEXT_FIT_ATTR,N as blockPhoneHideClass,Y as blockSetsItsWidth,z as blockSizeOf,j as blockSizeValuesOf};
1
+ import{BLOCK_FIXED_WIDTH as g,BLOCK_SIZE_KEYS as F,parseBlockWidthFit as x,phoneKey as k,parseTextFit as u,tabletKey as T}from"efficient-easel/draw";import{partDisplayClass as C}from"../../../format/lib/content/part-display.js";const E="sf-block-size",K="show",j=e=>C(void 0,{block:e[k(K)]!==!1},"block"),r={fit:"data-fit",fitPhone:"data-fit-phone",min:"data-fit-min",minPhone:"data-fit-min-phone"},f=e=>typeof e=="number"&&Number.isFinite(e)&&e>=0?e:void 0,O={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"}},y={two:{desktop:"view-wide:[.flex-row>*>&]:grow"},three:{desktop:"view-desktop:[.flex-row>*>&]:grow",tablet:"view-wide:max-view-desktop:[.flex-row>*>&]:grow"}},B={desktop:"--sf-bw",tablet:"--sf-bw-t",phone:"--sf-bw-p"},D={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)]"]}},H={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)]"]}},P=["widthFit","width","minWidth","maxWidth"],S={desktop:"view-wide:whitespace-nowrap view-wide:[&_*]:whitespace-nowrap!",phone:"max-view-wide:whitespace-nowrap max-view-wide:[&_*]:whitespace-nowrap!"};function Y(e){const t=_(e);return t.sides.filter(i=>t.mode[i]==="fill").map(i=>y[t.three?"three":"two"][i]).filter(Boolean).join(" ")}function _(e){const t=P.some(n=>{const s=e[n]?.tablet;return n==="widthFit"?x(s)!==void 0:f(s)!==void 0}),i=t?["desktop","tablet","phone"]:["desktop","phone"],o=(n,s)=>{const a=n(s?.desktop),p=t?n(s?.tablet)??a:a;return{desktop:a,tablet:p,phone:n(s?.phone)??p}};return{three:t,sides:i,perSide:o,mode:o(x,e.widthFit)}}function M(e){const t=[],i={},o={},{three:n,sides:s,perSide:a,mode:p}=_(e),I=a(f,e.width);for(const w of s){const d=p[w];!d||d==="fit"||(t.push(n?A[w][d]:O[w][d]),d==="fixed"&&(i[B[w]]=`${I[w]??g.fallback}px`))}for(const w of["minWidth","maxWidth"]){const d=a(f,e[w]);for(const b of s){const v=d[b];if(v===void 0)continue;const[L,W]=n?H[w][b]:D[w][b];i[L]=`${v}px`,t.push(W)}}const m=u(e.textFit?.desktop),l=u(e.textFit?.phone),c=f(e.minFont?.desktop),h=f(e.minFont?.phone);return m==="line"&&t.push(S.desktop),(l??m)==="line"&&t.push(S.phone),m&&(o[r.fit]=m),l&&(o[r.fitPhone]=l),c!==void 0&&(o[r.min]=String(c)),h!==void 0&&(o[r.minPhone]=String(h)),t.length===0&&Object.keys(o).length===0?null:{className:[E,...t].join(" "),style:i,attrs:o}}function R(e){if(f(e.maxWidth?.desktop)!==void 0)return!0;const t=x(e.widthFit?.desktop);return t==="fill"||t==="fixed"}function V(e){const t={};for(const i of F){const o=e[i],n=e[T(i)],s=e[k(i)];(o!==void 0||n!==void 0||s!==void 0)&&(t[i]={desktop:o,tablet:n,phone:s})}return t}export{K as BLOCK_SHOW_KEY,E as BLOCK_SIZE_CLASS,r as TEXT_FIT_ATTR,Y as blockFillInCellClass,j as blockPhoneHideClass,R as blockSetsItsWidth,M as blockSizeOf,V as blockSizeValuesOf};
@@ -23,9 +23,9 @@ export declare function sharedColumnsDrawn(props: Record<string, unknown>): {
23
23
  export declare function sharedColumnsClasses(sides: {
24
24
  desktop: boolean;
25
25
  phone: boolean;
26
- }, n: number): string;
26
+ }, n: number, from?: number): string;
27
27
  export declare const SHARED_PLAIN_ATTR = "data-sf-shared-plain";
28
28
  export declare function sharedColumnsCss(sides: {
29
29
  desktop: boolean;
30
30
  phone: boolean;
31
- }, n: number): string;
31
+ }, n: number, from?: number): string;
@@ -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{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
+ import{REPEAT_ATTRIBUTE as i,phoneKey as b,tabletKey as C}from"efficient-easel/draw";import{parseLoop as S}from"../../../format/lib/animation/loop.js";import{finiteNumber as _}from"../../../format/lib/finite-number.js";import{isBackgroundBox as g}from"../../../format/lib/content/box-background.js";import{isStripBox as x}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 O}from"../../../format/lib/content/box-layout.js";const $="sharedColumns",c="shared",u="own",d="scroll",K="Row columns",F=[{value:u,label:"Each row"},{value:c,label:"Shared"}],w=[{value:u,label:"Each row"},{value:d,label:"Shared, scroll"}],R="(width >= 800px)",N="(width < 800px)";function y(t){const o={direction:t.direction,separator:t.separator,loop:S(t.loop),line:t.line};return o.direction==="row"&&!x(o.direction,o.separator)&&o.loop!=="scroll"&&o.line!==!0&&!g(typeof t.bgImage=="string"?t.bgImage:void 0)&&E({...o,columns:t.columns})===""&&O({...o,columnsTablet:t[C("columns")]})===""}function T(t){return Array.isArray(t)?t.filter(o=>typeof o?.type=="string").length:_(t?.blockCount)??0}function G(t){return y(t)&&a(T(t.content))>0?L(t[$],t[b($)]):{desktop:!1,phone:!1}}const a=t=>Number.isInteger(t)&&t>0?t:0,m=(t,o)=>`sf-shared-cols-${t}${o===void 0?"":`-from-${o}`}`,p=t=>`sf-shared-cols-phone-${t}`;function L(t,o){return{desktop:t===c,phone:o===d}}function X(t,o,n){const e=a(o);return e?`${t.desktop?` ${m(e,n)}`:""}${t.phone?` ${p(e)}`:""}`:""}function h(t){const o=`[${i}]`;return`:has(> ${o} ${t}):not(:has(> ${o} ${o} ${t}))`}function f(t,o,n=""){const e=h(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 D="data-sf-shared-plain";function H(t){const o=`[${i}]`,n=`[${D}]`,e=h(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 Y(t,o,n){const e=a(o);if(!e)return"";let s="";if(t.desktop){const l=`.${m(e,n)}`;s+=`@media ${n===void 0?R:`(width >= ${n}px)`}{${f(l,`repeat(${e},auto)`)}${H(l)}}`}return t.phone&&(s+=`@media ${N}{${f(`.${p(e)}`,`repeat(${e},minmax(max-content,auto))`,";overflow-x:auto")}}`),s}export{$ as SHARED_COLUMNS_KEY,K as SHARED_COLUMNS_LABEL,u as SHARED_COLUMNS_OFF,w as SHARED_COLUMNS_PHONE_POINTS,F as SHARED_COLUMNS_POINTS,D as SHARED_PLAIN_ATTR,X as sharedColumnsClasses,Y as sharedColumnsCss,G as sharedColumnsDrawn,y as sharedColumnsFits};
@@ -0,0 +1,15 @@
1
+ export declare const BOX_STACK_LINE: number;
2
+ export declare const BOX_GUTTER_LINE = 960;
3
+ export declare const BOX_PHONE_PAD_LINE: number;
4
+ export declare const BOX_STACK_RANGE: {
5
+ readonly min: number;
6
+ readonly max: 1600;
7
+ readonly step: 10;
8
+ };
9
+ export declare const STACK_BELOW_PROP = "stackBelow";
10
+ export declare function storedStackLine(value: unknown): number | undefined;
11
+ export declare function boxStackLine(value: unknown): number;
12
+ export declare const stackRowClass: (line: number) => string;
13
+ export declare const stackGutterClass: (line: number) => string;
14
+ export declare const stackOuterClass: (line: number) => string;
15
+ export declare function stackLineCss(line: number): string;
@@ -0,0 +1 @@
1
+ import{VIEW_DESKTOP_MIN as r,VIEW_TABLET_MIN as $}from"efficient-easel/draw";import{VIEW_LINE_PX as m}from"../../../format/lib/content/view-lines.js";const p=m["view-wide"],c=960,x=$,d={min:p,max:1600,step:10},l="stackBelow";function h(t){if(!(typeof t!="number"||!Number.isFinite(t))&&!(t<d.min||t>d.max))return Math.round(t)}function E(t){return h(t)??p}const u=t=>`sf-stack-${t}`,g=t=>`sf-stack-${t}-gutter`,w=t=>`sf-stack-${t}-outer`,n=t=>`${t-.02}px`;function b(t){const a=`.${u(t)}`,e=`.${g(t)}`,i=`.${w(t)}`,o=[];if(t>p){const s=`${a}>.sf-block-size,${a}>[data-easel-block]>[data-sf-part-host]>.sf-block-size`,f=Math.min(t,r);o.push(`@media (min-width:${p}px) and (max-width:${n(t)}){${a}${a}{flex-direction:column}.sf-gap-overlap${a}{--sf-gap-overlap-eff:calc(var(--sf-gap-overlap) / 2)}${s}{width:min(var(--sf-bw-p,100%),100%);flex-grow:0}}`,`@media (min-width:${p}px) and (max-width:${n(f)}){.sf-gap-zone${a}{gap:var(--sf-gap-len-tablet,var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2)))}}`),t>r&&o.push(`@media (min-width:${r}px) and (max-width:${n(t)}){.sf-gap-zone${a}{gap:var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2))}}`)}return o.push(`@media (max-width:${n(t)}){${e}${e}{padding-inline:min(24px,var(--sf-site-gutter,40px))}}`),t<c&&o.push(`@media (min-width:${t}px) and (max-width:${n(c)}){${e}${e}{padding-inline:var(--sf-site-gutter,40px)}}`),o.push(`@media (min-width:${x}px) and (max-width:${n(t)}){`+["top","bottom","left","right"].map(s=>`.sf-pad-${s}-phone:has(>${i}),.sf-pad-${s}-phone${i}{padding-${s}:var(--sf-pad-${s[0]}-phone)!important}`).join("")+"}"),o.join("")}export{c as BOX_GUTTER_LINE,x as BOX_PHONE_PAD_LINE,p as BOX_STACK_LINE,d as BOX_STACK_RANGE,l as STACK_BELOW_PROP,E as boxStackLine,g as stackGutterClass,b as stackLineCss,w as stackOuterClass,u as stackRowClass,h as storedStackLine};
@@ -1 +1 @@
1
- import{BUTTON_PAD_KEYS as i,buttonBorderOf as S,buttonFillOpacityOf as T,buttonPadSidesOf as h}from"efficient-easel/draw";import{finiteNumber as y}from"../../../format/lib/finite-number.js";import{nonEmptyString as c}from"../../../format/lib/non-empty-string.js";import{padSideAttrs as _}from"./section-padding.js";import{cornerSidesShorthand as x,normalizeCornerSides as O}from"../../../format/lib/content/section-corners.js";const N="px-6 py-4",$=4,s=o=>{const t=new RegExp(`\\bp${o}-(?:\\[(\\d+)px\\]|(\\d+))`).exec(N);if(!t)throw new Error(`BUTTON_PAD_CLASSES has no p${o}`);return t[1]!==void 0?Number(t[1]):Number(t[2])*$},U={top:s("y"),right:s("x"),bottom:s("y"),left:s("x")},a="var(--btn)";function g(o){const t=o.variant==="ghost",n=T(o.buttonFillOpacity),r=S(o.buttonBorder),e=c(o.buttonColor);return{fillOpacity:n??(t?0:100),border:{width:r?.width??1,color:r?.color??e??(t?"currentColor":a)},changed:n!==void 0||r!==void 0}}function L(o){const t=g(o);if(!t.changed)return null;const n=c(o.buttonColor)??a;return{background:t.fillOpacity===0?"transparent":t.fillOpacity===100?n:`color-mix(in srgb, ${n} ${t.fillOpacity}%, transparent)`,borderWidth:t.border.width,borderStyle:"solid",borderColor:t.border.color}}const C="var(--sf-button-radius, 0)";function D(o){const t=y(o.buttonCorners),n=O(o.buttonCornerSides);if(t===void 0&&n===null)return null;const r=t===void 0?C:`${Math.max(0,t)}px`;return{borderRadius:n===null?r:x(r,n)}}function k(o){const t=e=>h({top:o[`${i.top}${e}`],right:o[`${i.right}${e}`],bottom:o[`${i.bottom}${e}`],left:o[`${i.left}${e}`]})??{},{classes:n,style:r}=_(t(""),t("Phone"),t("Tablet"));return Object.keys(r).length?{className:n.join(" "),style:r}:null}const b="upper";function w(o,t,n){const r=o&&typeof o=="object"?o:{},e=c(r.textStyle),l=e?c(t?.find(f=>f?.id===e)?.name):void 0,d=e?/^(heading|body)-(\d+)$/.exec(e):null,p=e?l||(d?n.styleName({kind:d[1],n:Number(d[2])}):e):n.noStyle,{cases:u}=n,m=c(r.case)??b;return`${p} · ${u[m]??u[b]}`}export{U as BUTTON_PAD_BUILT_IN,N as BUTTON_PAD_CLASSES,i as BUTTON_PAD_KEYS,b as BUTTON_WORDS_BUILT_IN_CASE,a as SITE_BUTTON_FILL,D as buttonCornersStyle,g as buttonLook,k as buttonPadAttrs,L as buttonPaint,w as buttonWordsSummary};
1
+ import{BUTTON_PAD_KEYS as s,buttonBorderOf as T,buttonFillOpacityOf as _,buttonPadSidesOf as h}from"efficient-easel/draw";import{BUTTON_PAD_UNIT_KEY as u}from"efficient-easel/screen/lib/content/length-units";import{finiteNumber as y}from"../../../format/lib/finite-number.js";import{nonEmptyString as c}from"../../../format/lib/non-empty-string.js";import{padSideAttrs as O}from"./section-padding.js";import{cornerSidesShorthand as x,normalizeCornerSides as N}from"../../../format/lib/content/section-corners.js";const $="px-6 py-4",g=4,d=t=>{const o=new RegExp(`\\bp${t}-(?:\\[(\\d+)px\\]|(\\d+))`).exec($);if(!o)throw new Error(`BUTTON_PAD_CLASSES has no p${t}`);return o[1]!==void 0?Number(o[1]):Number(o[2])*g},L={top:d("y"),right:d("x"),bottom:d("y"),left:d("x")},b="var(--btn)";function I(t){const o=t.variant==="ghost",n=_(t.buttonFillOpacity),r=T(t.buttonBorder),e=c(t.buttonColor);return{fillOpacity:n??(o?0:100),border:{width:r?.width??1,color:r?.color??e??(o?"currentColor":b)},changed:n!==void 0||r!==void 0}}function k(t){const o=I(t);if(!o.changed)return null;const n=c(t.buttonColor)??b;return{background:o.fillOpacity===0?"transparent":o.fillOpacity===100?n:`color-mix(in srgb, ${n} ${o.fillOpacity}%, transparent)`,borderWidth:o.border.width,borderStyle:"solid",borderColor:o.border.color}}const P="var(--sf-button-radius, 0)";function w(t){const o=y(t.buttonCorners),n=N(t.buttonCornerSides);if(o===void 0&&n===null)return null;const r=o===void 0?P:`${Math.max(0,o)}px`;return{borderRadius:n===null?r:x(r,n)}}function R(t){const o=i=>h({top:t[`${s.top}${i}`],right:t[`${s.right}${i}`],bottom:t[`${s.bottom}${i}`],left:t[`${s.left}${i}`]})??{},n={desktop:t[u],tablet:t[`${u}Tablet`],phone:t[`${u}Phone`]},{classes:r,style:e}=O(o(""),o("Phone"),o("Tablet"),void 0,n);return Object.keys(e).length?{className:r.join(" "),style:e}:null}const p="upper";function W(t,o,n){const r=t&&typeof t=="object"?t:{},e=c(r.textStyle),i=e?c(o?.find(S=>S?.id===e)?.name):void 0,l=e?/^(heading|body)-(\d+)$/.exec(e):null,m=e?i||(l?n.styleName({kind:l[1],n:Number(l[2])}):e):n.noStyle,{cases:a}=n,f=c(r.case)??p;return`${m} · ${a[f]??a[p]}`}export{L as BUTTON_PAD_BUILT_IN,$ as BUTTON_PAD_CLASSES,s as BUTTON_PAD_KEYS,p as BUTTON_WORDS_BUILT_IN_CASE,b as SITE_BUTTON_FILL,w as buttonCornersStyle,I as buttonLook,R as buttonPadAttrs,k as buttonPaint,W as buttonWordsSummary};
@@ -0,0 +1,8 @@
1
+ export declare const EMPTY_HIDES_CLASS = "sf-empty-hides";
2
+ export declare const EMPTY_ELSE_CLASS = "sf-empty-else";
3
+ export declare const HEAD_CORE_CLASS = "sf-head-core";
4
+ export declare const HEAD_BOX_CLASS = "sf-head-box";
5
+ export declare const HOLDS_HEAD_CORE_PROP = "holdsHeadCore";
6
+ export declare const HEAD_CORE_PROP = "isHeadCore";
7
+ export declare const EMPTY_HIDES_CSS: string;
8
+ export declare function EmptyHidesStyle(): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ import{jsx as s}from"react/jsx-runtime";const e="sf-empty-hides",n="sf-empty-else",t="sf-head-core",o="sf-head-box",_="holdsHeadCore",E="isHeadCore",p=`.${e}:empty{display:none}.${e}:not(:empty)~.${n}{display:none}.${o},.${t}{display:contents}.${o}:not(:has(.${t}:not(:empty))){display:none}`;function S(){return s("style",{children:p})}export{n as EMPTY_ELSE_CLASS,e as EMPTY_HIDES_CLASS,p as EMPTY_HIDES_CSS,S as EmptyHidesStyle,o as HEAD_BOX_CLASS,t as HEAD_CORE_CLASS,E as HEAD_CORE_PROP,_ as HOLDS_HEAD_CORE_PROP};
@@ -1,5 +1,5 @@
1
1
  import type { CSSProperties } from "react";
2
- import type { PadValues } from "./section-padding.js";
2
+ import { type PadValues } from "./section-padding.js";
3
3
  export type SectionEdge = {
4
4
  gutter: boolean;
5
5
  pad?: PadValues;
@@ -1 +1 @@
1
- import{viewOverrides as p}from"./view-values.js";import{finiteNumber as t}from"../../../format/lib/finite-number.js";const _="[--sf-edge-g:var(--sf-site-gutter,40px)] max-[960px]:[--sf-edge-g:min(24px,var(--sf-site-gutter,40px))] [--sf-edge-t:max(0px,calc(var(--sf-site-width,1600px)_-_100%_-_2_*_var(--sf-edge-g)))] [--sf-edge-al:min(var(--sf-edge-l),max(calc(var(--sf-edge-t)_/_2),calc(var(--sf-edge-t)_-_var(--sf-edge-r))))] [--sf-edge-ar:min(var(--sf-edge-r),max(calc(var(--sf-edge-t)_/_2),calc(var(--sf-edge-t)_-_var(--sf-edge-l))))]",c="[--sf-edge-g:0px] [--sf-edge-al:var(--sf-edge-l)] [--sf-edge-ar:var(--sf-edge-r)]",i="[--sf-edge-l:var(--sf-edge-ld,0px)] [--sf-edge-r:var(--sf-edge-rd,0px)] max-view-desktop:[--sf-edge-l:var(--sf-edge-lt,var(--sf-edge-ld,0px))] max-view-desktop:[--sf-edge-r:var(--sf-edge-rt,var(--sf-edge-rd,0px))] max-view-tablet:[--sf-edge-l:var(--sf-edge-lp,var(--sf-edge-lt,var(--sf-edge-ld,0px)))] max-view-tablet:[--sf-edge-r:var(--sf-edge-rp,var(--sf-edge-rt,var(--sf-edge-rd,0px)))]",n="ml-[calc(-1_*_(var(--sf-edge-g)_+_var(--sf-edge-al)))] mr-[calc(-1_*_(var(--sf-edge-g)_+_var(--sf-edge-ar)))] w-[calc(100%_+_2_*_var(--sf-edge-g)_+_var(--sf-edge-al)_+_var(--sf-edge-ar))] max-w-[100vw]";function m(d){const s={},e=d.pad??{};for(const[a,g,v,l]of[["l",e.left,e.leftTablet,e.leftPhone],["r",e.right,e.rightTablet,e.rightPhone]]){const f=t(g);f!==void 0&&(s[`--sf-edge-${a}d`]=`${f}px`);const r=p("spacing",f,t(v),t(l));typeof r.tablet=="number"&&(s[`--sf-edge-${a}t`]=`${r.tablet}px`),typeof r.phone=="number"&&(s[`--sf-edge-${a}p`]=`${r.phone}px`)}return{className:`${d.gutter?_:c} ${i} ${n}`,...Object.keys(s).length?{style:s}:{}}}export{m as sectionEdgeAttrs};
1
+ import{isLengthUnit as i}from"efficient-easel/screen/lib/content/length-units";import{sideViewLengths as o}from"./section-padding.js";import{finiteNumber as d}from"../../../format/lib/finite-number.js";const p="[--sf-edge-g:var(--sf-box-g,var(--sf-site-gutter,40px))] max-[960px]:[--sf-edge-g:min(24px,var(--sf-box-g,var(--sf-site-gutter,40px)))] [--sf-edge-t:max(0px,calc(var(--sf-site-width,1600px)_-_100%_-_2_*_var(--sf-edge-g)))] [--sf-edge-al:min(var(--sf-edge-l),max(calc(var(--sf-edge-t)_/_2),calc(var(--sf-edge-t)_-_var(--sf-edge-r))))] [--sf-edge-ar:min(var(--sf-edge-r),max(calc(var(--sf-edge-t)_/_2),calc(var(--sf-edge-t)_-_var(--sf-edge-l))))]",_="[--sf-edge-g:0px] [--sf-edge-al:var(--sf-edge-l)] [--sf-edge-ar:var(--sf-edge-r)]",c="[--sf-edge-l:var(--sf-edge-ld,0px)] [--sf-edge-r:var(--sf-edge-rd,0px)] max-view-desktop:[--sf-edge-l:var(--sf-edge-lt,var(--sf-edge-ld,0px))] max-view-desktop:[--sf-edge-r:var(--sf-edge-rt,var(--sf-edge-rd,0px))] max-view-tablet:[--sf-edge-l:var(--sf-edge-lp,var(--sf-edge-lt,var(--sf-edge-ld,0px)))] max-view-tablet:[--sf-edge-r:var(--sf-edge-rp,var(--sf-edge-rt,var(--sf-edge-rd,0px)))]",x="ml-[calc(-1_*_(var(--sf-edge-g)_+_var(--sf-edge-al)))] mr-[calc(-1_*_(var(--sf-edge-g)_+_var(--sf-edge-ar)))] w-[calc(100%_+_2_*_var(--sf-edge-g)_+_var(--sf-edge-al)_+_var(--sf-edge-ar))] max-w-[100vw]";function b(f){const s={},e=f.pad??{};for(const[a,g,l,n]of[["l",e.left,e.leftTablet,e.leftPhone],["r",e.right,e.rightTablet,e.rightPhone]]){const r=d(g),v={desktop:e.unit,tablet:e.unitTablet,phone:e.unitPhone};r!==void 0&&(s[`--sf-edge-${a}d`]=`${r}${i(e.unit)?e.unit:"px"}`);const t=o(r,d(l),d(n),v);t.tablet!==void 0&&(s[`--sf-edge-${a}t`]=t.tablet),t.phone!==void 0&&(s[`--sf-edge-${a}p`]=t.phone)}return{className:`${f.gutter?p:_} ${c} ${x}`,...Object.keys(s).length?{style:s}:{}}}export{b as sectionEdgeAttrs};
@@ -4,7 +4,7 @@ export declare const SECTION_PADDING: {
4
4
  readonly max: 200;
5
5
  readonly step: 10;
6
6
  };
7
- export declare function sectionPadStyle(pt: unknown, pb: unknown): CSSProperties | undefined;
7
+ export declare function sectionPadStyle(pt: unknown, pb: unknown, unit?: unknown, frame?: number): CSSProperties | undefined;
8
8
  export declare const PAD_TOP_PHONE_CLASS = "sf-pad-top-phone";
9
9
  export declare const PAD_BOTTOM_PHONE_CLASS = "sf-pad-bottom-phone";
10
10
  export declare const PAD_TOP_PHONE_VAR = "--sf-pad-t-phone";
@@ -31,7 +31,17 @@ export type PadSides = {
31
31
  bottom?: unknown;
32
32
  left?: unknown;
33
33
  };
34
- export declare function padSideAttrs(inline: PadSides, phone: PadSides, tablet?: PadSides, desktop?: PadSides): {
34
+ export declare function padDefaultIn(px: number, unit: unknown, tier: "desktop" | "tablet" | "mobile"): number;
35
+ export type PadUnits = {
36
+ desktop?: unknown;
37
+ tablet?: unknown;
38
+ phone?: unknown;
39
+ };
40
+ export declare function sideViewLengths(desktop: number | undefined, tablet: number | undefined, phone: number | undefined, units?: PadUnits, frame?: number): {
41
+ tablet?: string;
42
+ phone?: string;
43
+ };
44
+ export declare function padSideAttrs(inline: PadSides, phone: PadSides, tablet?: PadSides, desktop?: PadSides, units?: PadUnits, frame?: number): {
35
45
  classes: string[];
36
46
  style: CSSProperties;
37
47
  };
@@ -62,6 +72,10 @@ export type PadValues = {
62
72
  bottomPhone?: unknown;
63
73
  leftPhone?: unknown;
64
74
  rightPhone?: unknown;
75
+ unit?: unknown;
76
+ unitTablet?: unknown;
77
+ unitPhone?: unknown;
78
+ frame?: number;
65
79
  };
66
80
  export declare const SECTION_PAD_KEYS: {
67
81
  readonly top: "sectionPaddingTop";
@@ -69,7 +83,7 @@ export declare const SECTION_PAD_KEYS: {
69
83
  readonly left: "sectionPaddingLeft";
70
84
  readonly right: "sectionPaddingRight";
71
85
  };
72
- export declare function padValuesOf(props: Record<string, unknown>, keys?: Record<"top" | "bottom" | "left" | "right", string>, sides?: boolean): PadValues;
86
+ export declare function padValuesOf(props: Record<string, unknown>, keys?: Record<"top" | "bottom" | "left" | "right", string>, sides?: boolean, unitKey?: string | undefined): PadValues;
73
87
  export declare function wrapperPadAttrs(v: PadValues): {
74
88
  className: string;
75
89
  style: CSSProperties;
@@ -1 +1 @@
1
- import{phoneKey as u,tabletKey as h}from"efficient-easel/draw";import{viewOverrides as g}from"./view-values.js";import{finiteNumber as p}from"../../../format/lib/finite-number.js";const z={min:10,max:200,step:10};function x(t,e){const o=p(t),n=p(e);if(!(o===void 0&&n===void 0))return{paddingTop:o,paddingBottom:n}}const O="sf-pad-top-phone",E="sf-pad-bottom-phone",S="--sf-pad-t-phone",L="--sf-pad-b-phone",D="sf-pad-left-phone",B="sf-pad-right-phone",N="--sf-pad-l-phone",R="--sf-pad-r-phone",H="sf-pad-top-tablet",C="sf-pad-bottom-tablet",V="sf-pad-left-tablet",y="sf-pad-right-tablet",I="--sf-pad-t-tablet",w="--sf-pad-b-tablet",G="--sf-pad-l-tablet",F="--sf-pad-r-tablet";function T(t){const e=x(t.top,t.bottom),o=K({left:t.left,right:t.right},{top:t.topPhone,bottom:t.bottomPhone,left:t.leftPhone,right:t.rightPhone},{top:t.topTablet,bottom:t.bottomTablet,left:t.leftTablet,right:t.rightTablet},{top:t.top,bottom:t.bottom,left:t.left,right:t.right});return e===void 0&&!o.classes.length&&!Object.keys(o.style).length?null:{className:["sf-section-pad",...o.classes].join(" "),style:{...e,...o.style}}}const M=[["top","paddingTop",[H,I],[O,S]],["bottom","paddingBottom",[C,w],[E,L]],["left","paddingLeft",[V,G],[D,N]],["right","paddingRight",[y,F],[B,R]]];function K(t,e,o={},n=t){const s={},d={},i=[];for(const[r,l,...a]of M){const f=p(t[r]);f!==void 0&&(s[l]=f);const P=g("spacing",p(n[r]),p(o[r]),p(e[r]));for(const[A,[b,m]]of[["tablet",a[0]],["phone",a[1]]]){const c=P[A];typeof c=="number"&&(i.push(b),d[m]=`${c}px`)}}return{classes:i,style:{...s,...d}}}function _(t,e,o){const n=p(t)??o,s=p(e);return n===void 0?s:s===void 0?n:n+s}function J(t,e={}){return{top:_(t.padTop,t.sectionPaddingTop,e.top),bottom:_(t.padBottom,t.sectionPaddingBottom,e.bottom)}}const $={top:"sectionPaddingTop",bottom:"sectionPaddingBottom",left:"sectionPaddingLeft",right:"sectionPaddingRight"};function Q(t,e=$,o=!0){const n={};for(const s of o?["top","bottom","left","right"]:["top","bottom"])n[s]=t[e[s]],n[`${s}Tablet`]=t[h(e[s])],n[`${s}Phone`]=t[u(e[s])];return n}function U(t){return T(t)}function W(t,e){const o=n=>typeof n=="number"?n+e:void 0;return T({...t,top:o(t.top),bottom:o(t.bottom),topTablet:o(t.topTablet),bottomTablet:o(t.bottomTablet),topPhone:o(t.topPhone),bottomPhone:o(t.bottomPhone)})}export{E as PAD_BOTTOM_PHONE_CLASS,L as PAD_BOTTOM_PHONE_VAR,C as PAD_BOTTOM_TABLET_CLASS,w as PAD_BOTTOM_TABLET_VAR,D as PAD_LEFT_PHONE_CLASS,N as PAD_LEFT_PHONE_VAR,V as PAD_LEFT_TABLET_CLASS,G as PAD_LEFT_TABLET_VAR,B as PAD_RIGHT_PHONE_CLASS,R as PAD_RIGHT_PHONE_VAR,y as PAD_RIGHT_TABLET_CLASS,F as PAD_RIGHT_TABLET_VAR,O as PAD_TOP_PHONE_CLASS,S as PAD_TOP_PHONE_VAR,H as PAD_TOP_TABLET_CLASS,I as PAD_TOP_TABLET_VAR,z as SECTION_PADDING,$ as SECTION_PAD_KEYS,K as padSideAttrs,Q as padValuesOf,J as resolveSectionPadding,W as rootPadAttrs,T as sectionPadAttrs,x as sectionPadStyle,U as wrapperPadAttrs};
1
+ import{phoneKey as h,resolveViewValue as B,tabletKey as m}from"efficient-easel/draw";import{SECTION_PAD_UNIT_KEY as N,convertLength as R,isLengthUnit as E,sideLengthAt as C,withLength as g}from"efficient-easel/screen/lib/content/length-units";import{viewRules as V}from"../../../format/lib/content/view-overrides.js";import{finiteNumber as a}from"../../../format/lib/finite-number.js";const H={min:10,max:200,step:10};function I(t,e,n,o=0){const s=a(t),i=a(e);if(s===void 0&&i===void 0)return;const c=A(n),p=d=>d===void 0?void 0:c==="px"?d:g(d,c,o);return{paddingTop:p(s),paddingBottom:p(i)}}const A=t=>E(t)?t:"px",w="sf-pad-top-phone",F="sf-pad-bottom-phone",G="--sf-pad-t-phone",M="--sf-pad-b-phone",$="sf-pad-left-phone",y="sf-pad-right-phone",j="--sf-pad-l-phone",U="--sf-pad-r-phone",Y="sf-pad-top-tablet",k="sf-pad-bottom-tablet",q="sf-pad-left-tablet",z="sf-pad-right-tablet",J="--sf-pad-t-tablet",Q="--sf-pad-b-tablet",W="--sf-pad-l-tablet",X="--sf-pad-r-tablet";function O(t){const e={desktop:t.unit,tablet:t.unitTablet,phone:t.unitPhone},n=I(t.top,t.bottom,t.unit,t.frame),o=v({left:t.left,right:t.right},{top:t.topPhone,bottom:t.bottomPhone,left:t.leftPhone,right:t.rightPhone},{top:t.topTablet,bottom:t.bottomTablet,left:t.leftTablet,right:t.rightTablet},{top:t.top,bottom:t.bottom,left:t.left,right:t.right},e,t.frame);return n===void 0&&!o.classes.length&&!Object.keys(o.style).length?null:{className:["sf-section-pad",...o.classes].join(" "),style:{...n,...o.style}}}const Z=[["top","paddingTop",[Y,J],[w,G]],["bottom","paddingBottom",[k,Q],[F,M]],["left","paddingLeft",[q,W],[$,j]],["right","paddingRight",[z,X],[y,U]]];function st(t,e,n){return!E(e)||e==="px"?t:R(t,"px",e,n,{min:0,max:H.max,step:1})}function K(t,e,n,o={},s=0){const i=(l,f)=>{if(f==="px")return`${l}px`;const b=g(l,f,s);return typeof b=="number"?`${b}px`:b},c={n:t,[m("n")]:e,[h("n")]:n,u:o.desktop,[m("u")]:o.tablet,[h("u")]:o.phone},p=B("spacing",t,e,n,V()),d=(l,f,b)=>{const P=C(c,{side:"n"},"u",l,"side");if(!P)return;const x=f!==null&&!b&&P.unit==="px"&&typeof p[f]=="number";return i(x?p[f]:P.value,P.unit)},r=d("desktop",null,!0),_={},T=d("tablet","tablet",e!==void 0);T!==void 0&&(e!==void 0||T!==r)&&(_.tablet=T);const u=d("mobile","phone",n!==void 0);return u!==void 0&&(n!==void 0||u!==r)&&(_.phone=u),_}function v(t,e,n={},o=t,s={},i=0){const c={},p={},d=[];for(const[r,_,...T]of Z){const u=a(t[r]),l=r==="top"||r==="bottom"?i:0;u!==void 0&&(c[_]=A(s.desktop)==="px"?u:g(u,A(s.desktop),l));const f=K(a(o[r]),a(n[r]),a(e[r]),s,l);for(const[b,[P,x]]of[["tablet",T[0]],["phone",T[1]]]){const L=f[b];L!==void 0&&(d.push(P),p[x]=L)}}return{classes:d,style:{...c,...p}}}function S(t,e,n){const o=a(t)??n,s=a(e);return o===void 0?s:s===void 0?o:o+s}function it(t,e={}){return{top:S(t.padTop,t.sectionPaddingTop,e.top),bottom:S(t.padBottom,t.sectionPaddingBottom,e.bottom)}}const D={top:"sectionPaddingTop",bottom:"sectionPaddingBottom",left:"sectionPaddingLeft",right:"sectionPaddingRight"};function dt(t,e=D,n=!0,o=e===D?N:void 0){const s={};o&&(t[o]!==void 0&&(s.unit=t[o]),t[m(o)]!==void 0&&(s.unitTablet=t[m(o)]),t[h(o)]!==void 0&&(s.unitPhone=t[h(o)]));for(const i of n?["top","bottom","left","right"]:["top","bottom"])s[i]=t[e[i]],s[`${i}Tablet`]=t[m(e[i])],s[`${i}Phone`]=t[h(e[i])];return s}function rt(t){return O(t)}function pt(t,e){const n=(o,s)=>typeof o!="number"?void 0:A(s)==="px"?o+e:o;return O({...t,frame:e,top:n(t.top,t.unit),bottom:n(t.bottom,t.unit),topTablet:n(t.topTablet,t.unitTablet),bottomTablet:n(t.bottomTablet,t.unitTablet),topPhone:n(t.topPhone,t.unitPhone),bottomPhone:n(t.bottomPhone,t.unitPhone)})}export{F as PAD_BOTTOM_PHONE_CLASS,M as PAD_BOTTOM_PHONE_VAR,k as PAD_BOTTOM_TABLET_CLASS,Q as PAD_BOTTOM_TABLET_VAR,$ as PAD_LEFT_PHONE_CLASS,j as PAD_LEFT_PHONE_VAR,q as PAD_LEFT_TABLET_CLASS,W as PAD_LEFT_TABLET_VAR,y as PAD_RIGHT_PHONE_CLASS,U as PAD_RIGHT_PHONE_VAR,z as PAD_RIGHT_TABLET_CLASS,X as PAD_RIGHT_TABLET_VAR,w as PAD_TOP_PHONE_CLASS,G as PAD_TOP_PHONE_VAR,Y as PAD_TOP_TABLET_CLASS,J as PAD_TOP_TABLET_VAR,H as SECTION_PADDING,D as SECTION_PAD_KEYS,st as padDefaultIn,v as padSideAttrs,dt as padValuesOf,it as resolveSectionPadding,pt as rootPadAttrs,O as sectionPadAttrs,I as sectionPadStyle,K as sideViewLengths,rt as wrapperPadAttrs};
@@ -1,11 +1,5 @@
1
- import { type AutoRule, type ViewValueKind } from "efficient-easel/draw";
2
1
  import { RESPONSIVE_RULES } from "../../../format/lib/content/view-lines.js";
3
2
  export { RESPONSIVE_RULES };
4
- export declare function viewRules(): Record<ViewValueKind, AutoRule>;
3
+ export { type ViewOverrides, viewOverrides, viewRules } from "../../../format/lib/content/view-overrides.js";
5
4
  export declare const TABLET_MEDIA = "(min-width: 720px) and (max-width: 1099.98px)";
6
5
  export declare const PHONE_MEDIA = "(max-width: 719.98px)";
7
- export interface ViewOverrides<T> {
8
- tablet?: T;
9
- phone?: T;
10
- }
11
- export declare function viewOverrides<T>(kind: ViewValueKind, desktop: T, tablet: T | null | undefined, phone: T | null | undefined, rules?: Record<ViewValueKind, AutoRule>): ViewOverrides<T>;
@@ -1 +1 @@
1
- import{AUTO_RULES as d,FOLLOW_RULES as f,VIEW_DESKTOP_MIN as m,VIEW_TABLET_MIN as p,isAuto as w,resolveViewValue as I}from"efficient-easel/draw";import{RESPONSIVE_RULES as s}from"../../../format/lib/content/view-lines.js";function L(){return s==="v2"?d:f}const x=.02,A=`(min-width: ${p}px) and (max-width: ${m-x}px)`,S=`(max-width: ${p-x}px)`;function T(_,n,r,i,c=L()){const t=I(_,n,r,i,c),o={},E=(u,e)=>!w(u)||e!=null&&e!==n;return E(r,t.tablet)&&(o.tablet=t.tablet),E(i,t.phone)&&(o.phone=t.phone),o}export{S as PHONE_MEDIA,s as RESPONSIVE_RULES,A as TABLET_MEDIA,T as viewOverrides,L as viewRules};
1
+ import{VIEW_DESKTOP_MIN as t,VIEW_TABLET_MIN as E}from"efficient-easel/draw";import{RESPONSIVE_RULES as r}from"../../../format/lib/content/view-lines.js";import{viewOverrides as _,viewRules as d}from"../../../format/lib/content/view-overrides.js";const o=.02,p=`(min-width: ${E}px) and (max-width: ${t-o}px)`,x=`(max-width: ${E-o}px)`;export{x as PHONE_MEDIA,r as RESPONSIVE_RULES,p as TABLET_MEDIA,_ as viewOverrides,d as viewRules};
@@ -1 +1 @@
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
+ import{jsx as l}from"react/jsx-runtime";import{phoneKey as a,tabletKey as n}from"efficient-easel/draw";import{sharedColumnsDrawn as c}from"../../../../content/box-shared-columns.js";import{CountRowsContext as d,NO_COUNTS as h}from"../../../../../components/CountRowsContext.js";import r from"../../../../../components/Flex.js";import{loopDelayOf as m,loopSecondsOf as b,parseLoop as g,parseLoopDirection as u}from"../../../../../../format/lib/animation/index.js";import{COUNTS_SOURCE as f,declaredBlockSource as S,servedRows as w}from"../../../../../../format/lib/content/block-sources.js";import{padValuesOf as k}from"../../../../content/section-padding.js";import{sectionFillsHeight as x}from"../../../../../../format/lib/content/section-min-height.js";import{pictureHoverOf as y}from"../../../../../../format/lib/animation/hover.js";import{FlexMeta as T}from"../../../../../../format/lib/document/blocks/general/Flex/meta.js";const N={...T,render:e=>{const t=l(r,{direction:e.direction,label:e.label,tabShape:e.tabShape,gap:e.gap,gapPhone:e[a("gap")],gapTablet:e[n("gap")],justify:e.justify,justifyTablet:e[n("justify")],justifyPhone:e[a("justify")],align:e.align,alignTablet:e[n("align")],alignPhone:e[a("align")],wrap:e.wrap,wrapTablet:e[n("wrap")],share:e.share,sharePhone:e[a("share")],shareTablet:e[n("share")],wrapPhone:e[a("wrap")],orderPhone:e[a("order")],phoneRow:e.phoneRow,columns:e.columns,columnsTablet:e[n("columns")],separator:e.separator,stackBelow:e.stackBelow,blockSpacing:e.blockSpacing,blockSpacingTablet:e[n("blockSpacing")],blockSpacingPhone:e[a("blockSpacing")],bgImage:e.bgImage,bgImagePhone:e.bgImagePhone,pictureHover:y(e),darken:e.darken,darkenStyle:e.darkenStyle,placement:e.placement,padV2:e.padV2===!0,border:e.sectionBorder,borderTablet:e.sectionBorderTablet,borderPhone:e.sectionBorderPhone,pad:k(e),contained:e.contained,fillHeight:x(e),shadow:e.shadow,shadowTablet:e[n("shadow")],shadowPhone:e[a("shadow")],loop:g(e.loop),scrollDirection:u(e.scrollDirection),loopSeconds:b({loopDuration:e.loopDuration}),loopDelay:m({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[n("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,rowTitle:e.rowTitle,startsOpen:e.startsOpen}),o=S(e),i=o?o===f?w(e):h:null;return l(d.Provider,{value:i,children:t})}};export{N as FlexRender};
@@ -1 +1 @@
1
- import{jsx as M}from"react/jsx-runtime";import P from"../../../../../components/HeroSection.js";import{HeroMeta as T}from"../../../../../../format/lib/document/blocks/general/Hero/meta.js";const I={...T,render:({slides:e,strip:r,alignment:t,textureOpacity:o,showTexture:i,textureColor:a,phoneUpDown:s,phoneSideways:p,autoplay:n,autoplayInterval:h,showTicker:c,tickerItems:l,heightDesktop:m,heightTablet:w,heightMobile:d,showPicker:g,pickerShape:k,pickerPlacement:x,showArrows:u,arrowsShape:y,arrowsPlacement:S,_partMotion:f,editor:H})=>M(P,{slides:e,strip:r,alignment:t,textureOpacity:o,showTexture:i,textureColor:a,phoneUpDown:s,phoneSideways:p,autoplay:n,autoplayInterval:h,showTicker:c,tickerItems:l,heightDesktop:m,heightTablet:w,heightMobile:d,showPicker:g,pickerShape:k,pickerPlacement:x,showArrows:u,arrowsShape:y,arrowsPlacement:S,editing:H?.isEditing,partMotion:f})};export{I as HeroRender};
1
+ import{jsx as H}from"react/jsx-runtime";import P from"../../../../../components/HeroSection.js";import{HeroMeta as j}from"../../../../../../format/lib/document/blocks/general/Hero/meta.js";const A={...j,render:({slides:e,strip:t,alignment:i,textureOpacity:o,showTexture:r,textureColor:h,phoneUpDown:a,phoneSideways:s,autoplay:p,autoplayInterval:n,showTicker:l,tickerItems:c,heightDesktop:m,heightTablet:d,heightMobile:g,heightFixed:w,heightFixedTablet:x,heightFixedMobile:k,showPicker:u,pickerShape:b,pickerPlacement:y,showArrows:M,arrowsShape:S,arrowsPlacement:T,_partMotion:f,editor:F})=>H(P,{slides:e,strip:t,alignment:i,textureOpacity:o,showTexture:r,textureColor:h,phoneUpDown:a,phoneSideways:s,autoplay:p,autoplayInterval:n,showTicker:l,tickerItems:c,heightDesktop:m,heightTablet:d,heightMobile:g,heightFixed:w,heightFixedTablet:x,heightFixedMobile:k,showPicker:u,pickerShape:b,pickerPlacement:y,showArrows:M,arrowsShape:S,arrowsPlacement:T,editing:F?.isEditing,partMotion:f})};export{A as HeroRender};
@@ -1 +1 @@
1
- import{jsx as M}from"react/jsx-runtime";import L from"../../../../../components/HeroSingle.js";import{HeroSingleMeta as O}from"../../../../../../format/lib/document/blocks/general/HeroSingle/meta.js";import{viewFocusValues as a}from"../../../../content/picture-focus-rows.js";const w={...O,render:o=>{const{mediaType:e,mediaImage:n,mediaVideo:r,poster:d,tintColor:m,tintOpacity:l,overlay:s,overlayColor:c,overlayPosition:y,heightDesktop:g,heightMobile:u,boxes:b,videoSource:p,youtubeUrl:h,videoPlayback:P,mediaLayout:v,mediaLayoutPhone:f,mediaImage2:j,tintColor2:k,tintOpacity2:C,_partMotion:S,editor:x}=o,i=a(o,"imageFocal"),t=a(o,"imageFocal2");return M(L,{mediaType:e,videoSource:p,youtubeUrl:h,videoPlayback:P,mediaLayout:v,mediaLayoutPhone:f,mediaImage2:j||void 0,objectPosition2:t.desktop,objectPosition2Phone:t.phone,objectPosition2Tablet:t.tablet,tintColor2:k,tintOpacity2:C,mediaSrc:(e==="image"?n:r)||void 0,poster:d||void 0,objectPosition:e==="image"?i.desktop:void 0,objectPositionPhone:e==="image"?i.phone:void 0,objectPositionTablet:e==="image"?i.tablet:void 0,tintColor:m,tintOpacity:e==="image"?l:0,overlay:s,overlayColor:c,overlayPosition:y,heightDesktop:g,heightMobile:u,boxes:b,editing:x?.isEditing,partMotion:S})}};export{w as HeroSingleRender};
1
+ import{jsx as L}from"react/jsx-runtime";import O from"../../../../../components/HeroSingle.js";import{HeroSingleMeta as H}from"../../../../../../format/lib/document/blocks/general/HeroSingle/meta.js";import{viewFocusValues as a}from"../../../../../../format/lib/content/picture-focus-rows.js";const V={...H,render:o=>{const{mediaType:e,mediaImage:n,mediaVideo:d,poster:r,tintColor:l,tintOpacity:m,overlay:h,overlayColor:g,overlayPosition:s,heightDesktop:b,heightMobile:c,heightFixed:y,heightFixedTablet:u,heightFixedMobile:p,boxes:P,videoSource:v,youtubeUrl:x,videoPlayback:f,mediaLayout:F,mediaLayoutPhone:j,mediaImage2:M,tintColor2:k,tintOpacity2:C,_partMotion:S,editor:T}=o,i=a(o,"imageFocal"),t=a(o,"imageFocal2");return L(O,{mediaType:e,videoSource:v,youtubeUrl:x,videoPlayback:f,mediaLayout:F,mediaLayoutPhone:j,mediaImage2:M||void 0,objectPosition2:t.desktop,objectPosition2Phone:t.phone,objectPosition2Tablet:t.tablet,tintColor2:k,tintOpacity2:C,mediaSrc:(e==="image"?n:d)||void 0,poster:r||void 0,objectPosition:e==="image"?i.desktop:void 0,objectPositionPhone:e==="image"?i.phone:void 0,objectPositionTablet:e==="image"?i.tablet:void 0,tintColor:l,tintOpacity:e==="image"?m:0,overlay:h,overlayColor:g,overlayPosition:s,heightDesktop:b,heightMobile:c,heightFixed:y,heightFixedTablet:u,heightFixedMobile:p,boxes:P,editing:T?.isEditing,partMotion:S})}};export{V as HeroSingleRender};
@@ -1 +1 @@
1
- import{jsx as A}from"react/jsx-runtime";import I from"../../../../../components/HeroSlide.js";import{nestedAccentValue as M,sectionThemeWrap as O}from"../../../../../../format/lib/content/section-surface.js";import{phHide as V}from"../../scaffold.js";import{HeroSlideMeta as N}from"../../../../../../format/lib/document/blocks/general/HeroSlide/meta.js";import{loadingStill as U}from"../../../../../../format/lib/hero-video.js";import{viewFocusValues as c}from"../../../../content/picture-focus-rows.js";const D={...N,render:o=>{const{name:l,process:p,mediaType:e,mediaVideo:u,mediaImage:y,poster:f,loadingShows:g,videoFrame:b,mediaSrc:P,videoSpeed:n,tintColor:v,overlay:h,groups:S,editor:a,overlayColor:d,overlayPosition:r,mediaLayout:j,mediaLayoutPhone:C,mediaImage2:L,tintColor2:T,tintOpacity2:k,videoSource:F,youtubeUrl:H,videoPlayback:w,_partMotion:x,...m}=o,i=c(o,"imageFocal"),t=c(o,"imageFocal2"),s=O({...m,sectionAccent:M(m.sectionAccent)});return A(I,{themeClassName:s?.className,themeStyle:s?.style,name:l||void 0,process:V(p,"Label",a),mediaType:e,mediaSrc:(e==="image"?y:u||P)||void 0,videoSpeed:typeof n=="number"?n:void 0,poster:U({loadingShows:g,poster:f,videoFrame:b}),objectPosition:e==="image"?i.desktop:void 0,objectPositionPhone:e==="image"?i.phone:void 0,objectPositionTablet:e==="image"?i.tablet:void 0,tintColor:v,tintOpacity:e==="image"?h:0,groups:S,editing:a?.isEditing,overlayColor:typeof d=="string"?d:void 0,overlayPosition:typeof r=="string"?r:void 0,mediaLayout:j,mediaLayoutPhone:C,mediaImage2:L||void 0,objectPosition2:t.desktop,objectPosition2Phone:t.phone,objectPosition2Tablet:t.tablet,tintColor2:T,tintOpacity2:k,videoSource:F,youtubeUrl:H,videoPlayback:w,partMotion:x})}};export{D as HeroSlideRender};
1
+ import{jsx as A}from"react/jsx-runtime";import I from"../../../../../components/HeroSlide.js";import{nestedAccentValue as M,sectionThemeWrap as O}from"../../../../../../format/lib/content/section-surface.js";import{phHide as V}from"../../scaffold.js";import{HeroSlideMeta as N}from"../../../../../../format/lib/document/blocks/general/HeroSlide/meta.js";import{loadingStill as U}from"../../../../../../format/lib/hero-video.js";import{viewFocusValues as c}from"../../../../../../format/lib/content/picture-focus-rows.js";const D={...N,render:o=>{const{name:l,process:p,mediaType:e,mediaVideo:u,mediaImage:y,poster:f,loadingShows:g,videoFrame:b,mediaSrc:P,videoSpeed:n,tintColor:v,overlay:h,groups:S,editor:a,overlayColor:d,overlayPosition:r,mediaLayout:j,mediaLayoutPhone:C,mediaImage2:L,tintColor2:T,tintOpacity2:k,videoSource:F,youtubeUrl:H,videoPlayback:w,_partMotion:x,...m}=o,i=c(o,"imageFocal"),t=c(o,"imageFocal2"),s=O({...m,sectionAccent:M(m.sectionAccent)});return A(I,{themeClassName:s?.className,themeStyle:s?.style,name:l||void 0,process:V(p,"Label",a),mediaType:e,mediaSrc:(e==="image"?y:u||P)||void 0,videoSpeed:typeof n=="number"?n:void 0,poster:U({loadingShows:g,poster:f,videoFrame:b}),objectPosition:e==="image"?i.desktop:void 0,objectPositionPhone:e==="image"?i.phone:void 0,objectPositionTablet:e==="image"?i.tablet:void 0,tintColor:v,tintOpacity:e==="image"?h:0,groups:S,editing:a?.isEditing,overlayColor:typeof d=="string"?d:void 0,overlayPosition:typeof r=="string"?r:void 0,mediaLayout:j,mediaLayoutPhone:C,mediaImage2:L||void 0,objectPosition2:t.desktop,objectPosition2Phone:t.phone,objectPosition2Tablet:t.tablet,tintColor2:T,tintOpacity2:k,videoSource:F,youtubeUrl:H,videoPlayback:w,partMotion:x})}};export{D as HeroSlideRender};
@@ -1 +1 @@
1
- import{jsx as l}from"react/jsx-runtime";import{phoneKey as p}from"efficient-easel/draw";import{CardRowDrawn as h}from"../../../../../components/CardRowContext.js";import w from"../../../../../components/ImageBlock.js";import{recordPictureAlt as S}from"../../../../../../format/lib/content/record-row.js";import{cardTemplateField as x,namedRowField as B,rowFieldText as I,rowNextPicture as b}from"../../../../../../format/lib/content/card-template.js";import{blockSizeOf as F,blockSizeValuesOf as O}from"../../../../content/block-size.js";import{padValuesOf as P}from"../../../../content/section-padding.js";import{pictureHoverOf as T}from"../../../../../../format/lib/animation/hover.js";import{viewFocusValues as v}from"../../../../content/picture-focus-rows.js";import{ImageBlockMeta as z}from"../../../../../../format/lib/document/blocks/general/ImageBlock/meta.js";const _={...z,render:e=>{const t=B(e);return t?l(h,{type:"ImageBlock",props:e,children:(o,r,a)=>{const c=r?x(r.ownerType,t):null,i=r?c?.alt:S(t);return m(e,o.src,(i&&I(a,i))??e.alt,b(r?.item,c?.next,typeof o.src=="string"?o.src:""))}}):m(e,e.src,e.alt)}};function m(e,t,o,r=""){const{aspect:a,contained:c,grayscale:i,darken:f,darkenStyle:d,href:s,fit:u,corners:k,cornerSides:g,editor:y}=e,n=v(e,"focal");return l(w,{src:t,alt:o,aspect:a,aspectPhone:e[p("aspect")],contained:c,grayscale:i,darken:f,darkenStyle:d,pictureHover:T(e,"ImageBlock"),...r?{nextSrc:r}:{},href:s,fit:u,focal:n.desktop,focalPhone:n.phone,focalTablet:n.tablet,corners:k,cornerSides:g,pad:P(e),ownSize:F(O(e))!==null,editing:y?.isEditing===!0})}export{_ as ImageBlockRender};
1
+ import{jsx as l}from"react/jsx-runtime";import{phoneKey as p}from"efficient-easel/draw";import{CardRowDrawn as h}from"../../../../../components/CardRowContext.js";import w from"../../../../../components/ImageBlock.js";import{recordPictureAlt as S}from"../../../../../../format/lib/content/record-row.js";import{cardTemplateField as x,namedRowField as B,rowFieldText as I,rowNextPicture as b}from"../../../../../../format/lib/content/card-template.js";import{blockSizeOf as F,blockSizeValuesOf as O}from"../../../../content/block-size.js";import{padValuesOf as P}from"../../../../content/section-padding.js";import{pictureHoverOf as T}from"../../../../../../format/lib/animation/hover.js";import{viewFocusValues as v}from"../../../../../../format/lib/content/picture-focus-rows.js";import{ImageBlockMeta as z}from"../../../../../../format/lib/document/blocks/general/ImageBlock/meta.js";const _={...z,render:e=>{const t=B(e);return t?l(h,{type:"ImageBlock",props:e,children:(o,r,a)=>{const c=r?x(r.ownerType,t):null,i=r?c?.alt:S(t);return m(e,o.src,(i&&I(a,i))??e.alt,b(r?.item,c?.next,typeof o.src=="string"?o.src:""))}}):m(e,e.src,e.alt)}};function m(e,t,o,r=""){const{aspect:a,contained:c,grayscale:i,darken:f,darkenStyle:d,href:s,fit:u,corners:k,cornerSides:g,editor:y}=e,n=v(e,"focal");return l(w,{src:t,alt:o,aspect:a,aspectPhone:e[p("aspect")],contained:c,grayscale:i,darken:f,darkenStyle:d,pictureHover:T(e,"ImageBlock"),...r?{nextSrc:r}:{},href:s,fit:u,focal:n.desktop,focalPhone:n.phone,focalTablet:n.tablet,corners:k,cornerSides:g,pad:P(e),ownSize:F(O(e))!==null,editing:y?.isEditing===!0})}export{_ as ImageBlockRender};
@@ -1 +1 @@
1
- import{Fragment as u,jsx as r}from"react/jsx-runtime";import{CardRowDrawn as h}from"../../../../../components/CardRowContext.js";import{CountDrawn as b}from"../../../../../components/CountRowsContext.js";import{KickerNumberDrawn as R}from"../../../../../components/PageContentsContext.js";import{KICKER_NUMBER_PROP as S}from"../../../../content/page-contents.js";import{namedRowField as C}from"../../../../../../format/lib/content/card-template.js";import{TOP_LINE_ATTRIBUTE as E,TOP_LINE_CLASS as I,cardPlaceOf as O,framesItsCards as N}from"../../../../../../format/lib/content/card-place.js";import{blockSetsItsWidth as k,blockSizeValuesOf as A}from"../../../../content/block-size.js";import{linkedCount as F}from"../../../../../../format/lib/content/count-numbers.js";import{padValuesOf as K}from"../../../../content/section-padding.js";import L from"../../../../../components/Text.js";import{hidableText as a,readHidable as D}from"efficient-easel/draw";import{PH as x}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phPrev as W}from"../../scaffold.js";import{readPartStyle as j}from"../../../part-styles.js";import{TextMeta as v}from"../../../../../../format/lib/document/blocks/general/Text/meta.js";const rt={...v,render:t=>{const{text:i,align:g,alignPhone:p,tone:T,tag:w,contained:P,editor:m}=t;if(D(i).hidden)return r(u,{});const{textStyle:f,align:y}=j(t,"text"),_=f?.startsWith("heading-")?x.heading:x.body,o=(e,n,d)=>r(L,{text:W(e,_,m)??"",number:n,align:g,alignPhone:p,tone:T,tag:w,textStyle:f,partAlign:y,ownWidth:k(A(t)),contained:P,pad:K(t),onLine:d}),l=C(t),c=F(t);if(c)return r(b,{countKey:c,children:e=>o(e??a(i))});const s=()=>{if(!l){const e=t[S];return typeof e=="string"?o(a(i),e):r(R,{id:t.id,children:n=>o(a(i),n)})}return r(h,{type:"Text",props:t,children:e=>o(a(e.text))})};return O(t)!=="top-line"?s():r(h,{type:"Text",props:t,children:(e,n)=>{if(!n||!N(n.ownerType))return s();const d=a(l?e.text:i);return!d?.trim()&&!m?.isEditing?r(u,{}):r("div",{className:I,[E]:"",children:o(d,void 0,!0)})}})}};export{rt as TextRender};
1
+ import{Fragment as m,jsx as e}from"react/jsx-runtime";import{CardRowDrawn as x}from"../../../../../components/CardRowContext.js";import{CountDrawn as S}from"../../../../../components/CountRowsContext.js";import{KickerNumberDrawn as C}from"../../../../../components/PageContentsContext.js";import{KICKER_NUMBER_PROP as E}from"../../../../content/page-contents.js";import{namedRowField as I}from"../../../../../../format/lib/content/card-template.js";import{TOP_LINE_ATTRIBUTE as N,TOP_LINE_CLASS as O,cardPlaceOf as k,framesItsCards as A}from"../../../../../../format/lib/content/card-place.js";import{blockSetsItsWidth as F,blockSizeValuesOf as K}from"../../../../content/block-size.js";import{linkedCount as L}from"../../../../../../format/lib/content/count-numbers.js";import{padValuesOf as D}from"../../../../content/section-padding.js";import W from"../../../../../components/Text.js";import{hidableText as d,readHidable as j}from"efficient-easel/draw";import{PH as p}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phPrev as v}from"../../scaffold.js";import{readPartStyle as B}from"../../../part-styles.js";import{TextMeta as H}from"../../../../../../format/lib/document/blocks/general/Text/meta.js";const it={...H,render:r=>{const{text:o,align:w,alignPhone:T,tone:P,tag:y,contained:_,editor:f}=r;if(j(o).hidden)return e(m,{});const{textStyle:l,align:b}=B(r,"text"),R=l?.startsWith("heading-")?p.heading:p.body,a=(t,n,i)=>e(W,{text:v(t,R,f)??"",number:n,align:w,alignPhone:T,tone:P,tag:y,textStyle:l,partAlign:b,ownWidth:F(K(r)),contained:_,pad:D(r),onLine:i}),c=t=>!t?.trim()&&!f?.isEditing,s=I(r),u=L(r);if(u)return e(S,{countKey:u,children:t=>a(t??d(o))});const h=()=>{if(!s){const t=r[E];return typeof t=="string"?a(d(o),t):e(C,{id:r.id,children:n=>a(d(o),n)})}return e(x,{type:"Text",props:r,children:(t,n,i)=>{const g=d(t.text);return i&&c(g)?e(m,{}):a(g)}})};return k(r)!=="top-line"?h():e(x,{type:"Text",props:r,children:(t,n)=>{if(!n||!A(n.ownerType))return h();const i=d(s?t.text:o);return c(i)?e(m,{}):e("div",{className:O,[N]:"",children:a(i,void 0,!0)})}})}};export{it as TextRender};
@@ -6,4 +6,5 @@ export declare const HEAD_BELOW: Readonly<Record<HeadLook, number>>;
6
6
  export declare function editorialHeadTree(num: string, title: string, description: string): PartRow;
7
7
  export { token } from "../../../../../format/lib/document/seed-parts.js";
8
8
  export declare const fluidToken: (step: string, minPx: number, vw: number, px: number) => Props;
9
+ export declare function headReads(type: string): Readonly<Record<string, string>>;
9
10
  export declare function headTree(type: string): PartRow;
@@ -1,2 +1,2 @@
1
- import{readHidable as N}from"efficient-easel/draw";import{SPLITTABLE_SECTIONS as T}from"../../../../../format/lib/sections/section-head-placement.js";import{BUTTON as B,DIM as E,INNER_BOX as o,SH_LINK as L,TEXT as P,smallText as _}from"./section-to-box-row-parts.js";import{labelTextSeed as O}from"../../../../../format/lib/document/text-seeds.js";import{token as a}from"../../../../../format/lib/document/seed-parts.js";function M(e){if(e==="ProductGrid")return"shelf";const t=T[e]?.headStyle;return t==="editorial"||t==="simple"||t==="essay"?t:"standard"}const U={standard:64,editorial:60,simple:36,essay:28,shelf:20},I={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function W(e){if(e==="SectionHeader")return{num:"num",title:"title",description:"description",link:!0};const t=T[e];if(!t)throw new Error(`section-head-looks: "${e}" has no head row in SPLITTABLE_SECTIONS`);return{num:t.num,title:t.title,description:t.description,link:t.headRows.includes("linkText")&&t.headRows.includes("linkHref")}}function X(e,t,n){const i=`editorial:${e}|${t}|${n}`,r=p.get(i);if(r)return r;const s=H({num:e,title:t,description:n,link:!1});return p.set(i,s),s}const h={top:0,right:0,bottom:1,left:0};import{token as q}from"../../../../../format/lib/document/seed-parts.js";const k=(e,t,n,i)=>({sizeToken:{step:e,px:i,fluid:{minPx:t,vw:n}}}),l=(e,t,n={})=>_(e,{...a("label",t),...n}),A=(e,t)=>{const n=N(e).text.trim();return/\s/.test(n)?{minWidth:Math.ceil(n.length*t*.9),minWidthPhone:0,widthFitPhone:"fill"}:{}},c=(e,t)=>({kind:"text",key:e,role:"heading",props:P,style:{textStyle:"heading-2",...t}}),u=800,m=(e,t,n,i)=>({kind:"text",key:e,props:{...E,align:"right",alignPhone:"left",...n?{maxWidth:n,maxWidthPhone:u}:{}},style:{textStyle:"body-5",fontRole:"heading",alignPhone:"left",...a("body",t),...i}}),b={...B,align:"right",alignPhone:"left",...L,icon:"arrow-right",iconPosition:"after"},f=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:b,style:{textStyle:"body-5",color:"labels",...a("label",e),letterSpacing:.2,case:"upper"}}),w=(e,t,n)=>{const i=n.role==="heading"?{tag:"h2"}:{};return{kind:"block",type:"Text",when:r=>r[e]===void 0,props:{...P,...i,...n.props,text:t,_partStyles:{text:{...n.role==="eyebrow"?C(O()):{},...n.style}}}}},C=e=>e._partStyles.text??{},d={widthFitPhone:"fill"};function F(e,t){const n=I[e],i=n==="accent",r=l(t.num,14,{color:i?"accent":"labels"}),s=n==="accentNum"&&r.kind==="text"?{...r,mark:"accentLead"}:r,S=c(t.title,i?{...k("headingMedium",36,5,64),case:"upper",lineHeight:.95,letterSpacing:-.025}:{...a("headingMedium",56,36),case:"none",lineHeight:1,letterSpacing:-.03}),g=e==="Collections";return{kind:"group",name:"Header",props:{...o,direction:"row",align:"end",justify:"between",gap:40,gapPhone:12,share:"content",sectionBorder:h,sectionPaddingBottom:24,sectionPaddingBottomPhone:20},parts:[{kind:"group",name:"Title",props:{...o,...d,direction:"row",align:"end",gap:40,gapPhone:12,share:"content"},parts:[{kind:"group",name:"Number",props:{...o,...d,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},s,...g?[w(t.num,"==01== / Collections",s)]:[]]},{kind:"group",name:"Heading",props:{...o,...d},parts:[S,...g?[w(t.title,`Three ranges,
2
- one standard.`,S)]:[]]}]},{kind:"group",name:"Words",props:{...o,...d,gap:12,maxWidth:340,maxWidthPhone:u},parts:[...t.description?[m(t.description,14,void 0,{lineHeight:1.5})]:[],...t.link?[f(14)]:[],...g?[{kind:"block",type:"ButtonBlock",props:{...b,variant:"ghost",label:"View all",href:"/wheels",_partStyles:{label:f(14).style}}}]:[]]}]}}function H(e){return{kind:"group",name:"Header",props:{...o,direction:"row",align:"end",justify:"between",gap:40,gapPhone:14,share:"content",sectionBorder:h,sectionPaddingBottom:32},parts:[{kind:"group",name:"Title",props:{...o,direction:"row",align:"end",gap:40,gapPhone:14,share:"content"},parts:[{kind:"group",name:"Number",props:t=>({...o,sectionPaddingBottom:8,...A(t[e.num],13)}),parts:[l(e.num,13)]},c(e.title,{...k("headingMedium",40,5.5,80),case:"upper",weight:500,lineHeight:1,letterSpacing:-.03})]},{kind:"group",name:"Words",props:{...o,sectionPaddingBottom:4,maxWidth:360,maxWidthPhone:u},parts:e.description?[m(e.description,14,void 0,{lineHeight:1.5})]:[]}]}}function x(e,t){return{kind:"group",name:"Header",props:{...o,gap:16,gapPhone:16},parts:[l(e.num,13),c(e.title,t)]}}const y=[["para",{textStyle:"body-5",...a("label",13),case:"upper",weight:400,lineHeight:1,letterSpacing:.22}],["sm",{...a("headingMedium",40,28),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["md",{...a("headingMedium",48,32),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["lg",{...a("headingMedium",56,36),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["xl",{...a("headingMedium",64,40),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}]],R=e=>y.some(([t])=>t===e.titleSize)?e.titleSize:"lg";function j(e){return{kind:"group",name:"Header",props:{...o,direction:"row",align:"center",justify:"between",gap:16,share:"content",stickTop:!0,sectionBorder:h,sectionPaddingTop:12,sectionPaddingBottom:12},parts:[{kind:"group",name:"Title",props:{...o,direction:"row",align:"end",gap:24,share:"content"},parts:[l(e.num,13,{color:"labels",letterSpacing:.22,lineHeight:1}),...y.map(([t,n])=>({...c(e.title,n),when:i=>R(i)===t}))]},{kind:"group",name:"Words",props:{...o,direction:"row",align:"center",justify:"end",gap:20,share:"content"},parts:[...e.description?[m(e.description,13,340,{lineHeight:1.4})]:[],...e.link?[f(13)]:[]]}]}}const p=new Map;function G(e){const t=p.get(e);if(t)return t;const n=W(e),i=M(e),r=i==="editorial"?H(n):i==="simple"?x(n,{...a("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}):i==="essay"?x(n,{...a("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):i==="shelf"?j(n):F(e,n);return p.set(e,r),r}export{U as HEAD_BELOW,X as editorialHeadTree,k as fluidToken,M as headLookOf,G as headTree,q as token};
1
+ import{readHidable as B}from"efficient-easel/draw";import{SPLITTABLE_SECTIONS as T}from"../../../../../format/lib/sections/section-head-placement.js";import{BUTTON as E,DIM as L,INNER_BOX as o,SH_LINK as _,TEXT as k,smallText as O}from"./section-to-box-row-parts.js";import{labelTextSeed as M}from"../../../../../format/lib/document/text-seeds.js";import{token as a}from"../../../../../format/lib/document/seed-parts.js";function P(e){if(e==="ProductGrid")return"shelf";const t=T[e]?.headStyle;return t==="editorial"||t==="simple"||t==="essay"?t:"standard"}const U={standard:64,editorial:60,simple:36,essay:28,shelf:20},I={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function W(e){if(e==="SectionHeader")return{num:"num",title:"title",description:"description",link:!0};const t=T[e];if(!t)throw new Error(`section-head-looks: "${e}" has no head row in SPLITTABLE_SECTIONS`);return{num:t.num,title:t.title,description:t.description,link:t.headRows.includes("linkText")&&t.headRows.includes("linkHref")}}function X(e,t,n){const i=`editorial:${e}|${t}|${n}`,r=p.get(i);if(r)return r;const s=H({num:e,title:t,description:n,link:!1});return p.set(i,s),s}const h={top:0,right:0,bottom:1,left:0};import{token as J}from"../../../../../format/lib/document/seed-parts.js";const b=(e,t,n,i)=>({sizeToken:{step:e,px:i,fluid:{minPx:t,vw:n}}}),l=(e,t,n={})=>O(e,{...a("label",t),...n}),A=(e,t)=>{const n=B(e).text.trim();return/\s/.test(n)?{minWidth:Math.ceil(n.length*t*.9),minWidthPhone:0,widthFitPhone:"fill"}:{}},d=(e,t)=>({kind:"text",key:e,role:"heading",props:k,style:{textStyle:"heading-2",...t}}),u=800,m=(e,t,n,i)=>({kind:"text",key:e,props:{...L,align:"right",alignPhone:"left",...n?{maxWidth:n,maxWidthPhone:u}:{}},style:{textStyle:"body-5",fontRole:"heading",alignPhone:"left",...a("body",t),...i}}),w={...E,align:"right",alignPhone:"left",..._,icon:"arrow-right",iconPosition:"after"},f=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:w,style:{textStyle:"body-5",color:"labels",...a("label",e),letterSpacing:.2,case:"upper"}}),x=(e,t,n)=>{const i=n.role==="heading"?{tag:"h2"}:{};return{kind:"block",type:"Text",when:r=>r[e]===void 0,props:{...k,...i,...n.props,text:t,_partStyles:{text:{...n.role==="eyebrow"?R(M()):{},...n.style}}}}},R=e=>e._partStyles.text??{},c={widthFitPhone:"fill"};function C(e,t){const n=I[e],i=n==="accent",r=l(t.num,14,{color:i?"accent":"labels"}),s=n==="accentNum"&&r.kind==="text"?{...r,mark:"accentLead"}:r,S=d(t.title,i?{...b("headingMedium",36,5,64),case:"upper",lineHeight:.95,letterSpacing:-.025}:{...a("headingMedium",56,36),case:"none",lineHeight:1,letterSpacing:-.03}),g=e==="Collections";return{kind:"group",name:"Header",props:{...o,direction:"row",align:"end",justify:"between",gap:40,gapPhone:12,share:"content",sectionBorder:h,sectionPaddingBottom:24,sectionPaddingBottomPhone:20},parts:[{kind:"group",name:"Title",props:{...o,...c,direction:"row",align:"end",gap:40,gapPhone:12,share:"content"},parts:[{kind:"group",name:"Number",props:{...o,...c,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},s,...g?[x(t.num,"==01== / Collections",s)]:[]]},{kind:"group",name:"Heading",props:{...o,...c},parts:[S,...g?[x(t.title,`Three ranges,
2
+ one standard.`,S)]:[]]}]},{kind:"group",name:"Words",props:{...o,...c,gap:12,maxWidth:340,maxWidthPhone:u},parts:[...t.description?[m(t.description,14,void 0,{lineHeight:1.5})]:[],...t.link?[f(14)]:[],...g?[{kind:"block",type:"ButtonBlock",props:{...w,variant:"ghost",label:"View all",href:"/wheels",_partStyles:{label:f(14).style}}}]:[]]}]}}function H(e){return{kind:"group",name:"Header",props:{...o,direction:"row",align:"end",justify:"between",gap:40,gapPhone:14,share:"content",sectionBorder:h,sectionPaddingBottom:32},parts:[{kind:"group",name:"Title",props:{...o,direction:"row",align:"end",gap:40,gapPhone:14,share:"content"},parts:[{kind:"group",name:"Number",props:t=>({...o,sectionPaddingBottom:8,...A(t[e.num],13)}),parts:[l(e.num,13)]},d(e.title,{...b("headingMedium",40,5.5,80),case:"upper",weight:500,lineHeight:1,letterSpacing:-.03})]},{kind:"group",name:"Words",props:{...o,sectionPaddingBottom:4,maxWidth:360,maxWidthPhone:u},parts:e.description?[m(e.description,14,void 0,{lineHeight:1.5})]:[]}]}}function y(e,t){return{kind:"group",name:"Header",props:{...o,gap:16,gapPhone:16},parts:[l(e.num,13),d(e.title,t)]}}const N=[["para",{textStyle:"body-5",...a("label",13),case:"upper",weight:400,lineHeight:1,letterSpacing:.22}],["sm",{...a("headingMedium",40,28),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["md",{...a("headingMedium",48,32),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["lg",{...a("headingMedium",56,36),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["xl",{...a("headingMedium",64,40),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}]],F=e=>N.some(([t])=>t===e.titleSize)?e.titleSize:"lg";function z(e){return{kind:"group",name:"Header",props:{...o,direction:"row",align:"center",justify:"between",gap:16,share:"content",stickTop:!0,sectionBorder:h,sectionPaddingTop:12,sectionPaddingBottom:12},parts:[{kind:"group",name:"Title",props:{...o,direction:"row",align:"end",gap:24,share:"content"},parts:[l(e.num,13,{color:"labels",letterSpacing:.22,lineHeight:1}),...N.map(([t,n])=>({...d(e.title,n),when:i=>F(i)===t}))]},{kind:"group",name:"Words",props:{...o,direction:"row",align:"center",justify:"end",gap:20,share:"content"},parts:[...e.description?[m(e.description,13,340,{lineHeight:1.4})]:[],...e.link?[f(13)]:[]]}]}}function G(e){return P(e)==="shelf"?{titleSize:"the Header Box's title Text part: its size, as the old shelf title drew it (lib/document/blocks/general/section-head-looks)"}:{}}const p=new Map;function Q(e){const t=p.get(e);if(t)return t;const n=W(e),i=P(e),r=i==="editorial"?H(n):i==="simple"?y(n,{...a("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}):i==="essay"?y(n,{...a("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):i==="shelf"?z(n):C(e,n);return p.set(e,r),r}export{U as HEAD_BELOW,X as editorialHeadTree,b as fluidToken,P as headLookOf,G as headReads,Q as headTree,J as token};
@@ -1 +1 @@
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
+ import{SECTION_WIDTH_KEYS as H}from"../../../../../format/lib/content/section-width.js";import{phoneKey as D}from"efficient-easel/draw";import{BOX as w,INNER_BOX as y,TEXT as O}from"../../../../../format/lib/document/seed-parts.js";import{ENTRANCE_KEYS as W}from"../../../animation/entrance.js";import{CARD_HOVER_KEYS as h}from"../../../../../format/lib/animation/hover.js";import{COUNT_KEY_PROP as v}from"../../../../../format/lib/content/block-sources.js";import{normalizeSiteGutter as M}from"../../../../../format/lib/content/page-width.js";import{resolveSectionPadding as L}from"../../../content/section-padding.js";import{ButtonBlockMeta as F}from"../../../../../format/lib/document/blocks/general/ButtonBlock/meta.js";import{SECTION_PAD_INNER_DEFAULTS as K}from"../../passes/section-padding.js";import{finiteNumber as c}from"../../../../../format/lib/finite-number.js";import{convertTheme as P,hasWords as X}from"../../../sections/section-to-box.js";import{THEME_SECTION_BG as G}from"../../../../../format/lib/content/section-background.js";import{parseHexColor as Y}from"efficient-shell/format";import{convertLength as j,isLengthUnit as V}from"efficient-easel/screen/lib/content/length-units";import{bandPresetIndex as $,surfaceTwoTone as J}from"../../../../../format/lib/theme.js";const m=t=>V(t)?t:"px",d=(t,o,e,n)=>o===e?t:j(t,o,e,n,{min:0,max:200,step:4});import{BOX as Xt,DIM as Gt,INNER_BOX as Yt,TEXT as jt}from"../../../../../format/lib/document/seed-parts.js";const z={...O,[v]:""},{label:ft,href:xt,...q}=F.defaultProps,_t=q,Bt={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},Et={...w,sectionAccent:0},Ot=["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(W).flatMap(t=>[t,D(t)]),"widthFit","widthFitTablet","widthFitPhone","width","widthTablet","widthPhone","minWidth","minWidthTablet","minWidthPhone","maxWidth","maxWidthTablet","maxWidthPhone",...Object.values(H)],r="a section width key, ignored since efficient-web-builder 45 (an old key; a section's own width has new keys, lib/content/section-width), so dropping it changes nothing",St={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},Ut=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 Q(t,o){const e=c(t.sectionPaddingTop)??0,n=c(t.sectionPaddingBottom)??0,i=c(t.sectionPaddingTopTablet),s=c(t.sectionPaddingBottomTablet),p=m(t.sectionPaddingUnit),l=m(t.sectionPaddingUnitTablet),g=m(t.sectionPaddingUnitPhone),f=(R,x,A,_)=>{const B=c(R);if(B!==void 0)return B+d(_,"px",g,"mobile");const E=x===void 0?{n:A,unit:p}:{n:x,unit:l};return d(E.n,E.unit,g,"mobile")+d(_,"px",g,"mobile")};return{sectionPaddingTop:e+d(o.top,"px",p,"desktop"),sectionPaddingBottom:n+d(o.bottom,"px",p,"desktop"),...i===void 0?{}:{sectionPaddingTopTablet:i+d(o.top,"px",l,"tablet")},...s===void 0?{}:{sectionPaddingBottomTablet:s+d(o.bottom,"px",l,"tablet")},sectionPaddingTopPhone:f(t.sectionPaddingTopPhone,i,e,o.topPhone),sectionPaddingBottomPhone:f(t.sectionPaddingBottomPhone,s,n,o.bottomPhone)}}const Nt=t=>[...["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopTablet","sectionPaddingBottomTablet","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(e,n)=>Q(n,typeof t=="function"?t(n):t)[o]]),["sectionPaddingUnit","sectionPaddingUnit"],["sectionPaddingUnitTablet","sectionPaddingUnitTablet"],["sectionPaddingUnitPhone","sectionPaddingUnitPhone"]];function a(t,o){const e=L(t,K[o]);return{sectionPaddingTop:e.top,sectionPaddingBottom:e.bottom}}const It=t=>[["padTop","sectionPaddingTop",(o,e)=>a(e,t).sectionPaddingTop],["padBottom","sectionPaddingBottom",(o,e)=>a(e,t).sectionPaddingBottom],["sectionPaddingTop","sectionPaddingTop",(o,e)=>a(e,t).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,e)=>a(e,t).sectionPaddingBottom]],Z={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},kt=t=>o=>X(o.props[t])?[Z]:[],Ct=(t,o)=>({kind:"text",key:t,role:"eyebrow",props:O,...o?{style:o}:{}}),S=t=>t.background!=="transparent",tt=(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},U={align:"right",alignPhone:"left"},ot=(t,o,e)=>{const n=i=>tt(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}},Rt=(t,o,e,n={})=>ot(t,o,{...z,...U,...n,_partStyles:{text:{textStyle:"body-5",color:"labels",...e,case:"upper",...U}}}),u=(t,o)=>typeof t=="number"&&Number.isInteger(t)&&t>=0?t:P(o)?.selected??0,N="var(--site-surface)",I="var(--site-surface-2)",T=(t,o)=>P(o)?.themes[u(t.sectionAccent??0,o)],k=t=>(o,e)=>{const n=T(o,e)?.[t];return n?{fillColor:n}:{}},C=t=>t.startsWith("#")&&Y(t)!==null,At=(t,o,e)=>{const n=t?.trim();if(n&&C(n))return{fillColor:n};if(n===N)return k("surface")(o,e);const i=n===I?T(o,e):void 0;return i?{fillColor:J(i)}:{}},Ht=t=>{const o=t?.trim();return!o||o==="transparent"||o===G||o===N||o===I||C(o)?void 0:"it paints a colour that no Box Fill can hold"},Dt=(t,o)=>{const e=T(t,o)?.line;return e?{buttonBorder:{width:1,color:e}}:{}},b=(t,o)=>{const e=P(o)?.themes;return e&&S(t)?$(e,u(t.sectionAccent,o)):-1},wt=(t,o,e)=>{const n=b(o,e);return n>=0?n:t},yt=(t,o)=>{const e=b(t,o);return e>=0?{sectionAccent:e}:{}},Wt=(t,o)=>S(t.props)&&b(t.props,o)<0?[{kind:"band-preset",page:u(t.props.sectionAccent,o)}]:[],vt=t=>M(t.site?.siteGutter),et=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(t=>[`sectionPadding${t}`,0])),Mt=t=>({top:0,right:0,bottom:0,left:0,...t}),Lt=(t,o,e,n=[])=>({kind:"group",name:t,keepEmpty:!0,props:(i,s)=>({...y,...et,...k("surface")(i,s),...typeof e=="function"?e(i,s):e}),box:[[o,"bgImage"],h.kind,h.duration,h.delay],parts:n});export{Xt as BOX,_t as BUTTON,Gt as DIM,St as DROP_COMMON,Ut as DROP_SIDE_PADDING,Z as HEADING_CASE_UPPER,Yt as INNER_BOX,et as NO_PAD,z as NUMBER_TEXT,U as RIGHT_WORDS,Ot as SAME_KEYS,Et as SECTION_BOX,Bt as SH_LINK,jt as TEXT,wt as bandAccent,b as bandIndex,u as bandPage,yt as bandProps,Wt as bandWrites,k as fillFrom,Ht as fillNoBoxHolds,kt as headingCaseOf,a as innerPad,It as innerPadKeys,Rt as leadLine,ot as leadText,Dt as lineBorder,Mt as lineSides,tt as numberAndUnit,At as ownFill,Lt as pictureCell,T as sectionPage,vt as siteGutterOf,Ct as smallText,Q as wrapperPad,Nt as wrapperPadKeys};