efficient-web-builder 58.0.0 → 59.1.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 (127) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/dist/editor/components/SwitchToBoxFooter.js +1 -1
  3. package/dist/editor/components/useCardContentSwitchPass.d.ts +1 -0
  4. package/dist/editor/components/useCardContentSwitchPass.js +1 -0
  5. package/dist/editor/components/usePinnedChromeSeed.js +1 -1
  6. package/dist/editor/lib/document/ColourControl.js +1 -1
  7. package/dist/editor/lib/document/blocks/general/CardList/fields.js +1 -1
  8. package/dist/editor/lib/document/blocks/general/Cards/fields.js +1 -1
  9. package/dist/editor/lib/document/blocks/general/Chart/fields.js +1 -1
  10. package/dist/editor/lib/document/blocks/general/Countdown/fields.js +1 -1
  11. package/dist/editor/lib/document/blocks/general/Logos/fields.js +1 -1
  12. package/dist/editor/lib/document/blocks/general/Mockup/fields.js +2 -2
  13. package/dist/editor/lib/document/box-footer-rows.d.ts +3 -0
  14. package/dist/editor/lib/document/box-footer-rows.js +1 -0
  15. package/dist/editor/lib/document/card-row-fields.d.ts +2 -1
  16. package/dist/editor/lib/document/card-row-fields.js +1 -1
  17. package/dist/editor/lib/document/choice-pictures.d.ts +2 -1
  18. package/dist/editor/lib/document/choice-pictures.js +1 -1
  19. package/dist/editor/lib/document/controls.d.ts +12 -6
  20. package/dist/editor/lib/document/controls.js +1 -1
  21. package/dist/editor/lib/document/page-root.js +2 -2
  22. package/dist/editor/lib/sections/text-layouts.js +1 -1
  23. package/dist/format/lib/content/block-align.d.ts +1 -0
  24. package/dist/format/lib/content/block-align.js +1 -1
  25. package/dist/format/lib/content/block-sources.d.ts +1 -0
  26. package/dist/format/lib/content/block-sources.js +1 -1
  27. package/dist/format/lib/content/box-background.d.ts +2 -2
  28. package/dist/format/lib/content/box-background.js +1 -1
  29. package/dist/format/lib/content/box-shape.d.ts +1 -1
  30. package/dist/format/lib/content/card-columns.d.ts +1 -0
  31. package/dist/format/lib/content/card-columns.js +1 -0
  32. package/dist/format/lib/content/card-place.js +1 -1
  33. package/dist/format/lib/content/card-state.d.ts +17 -0
  34. package/dist/format/lib/content/card-state.js +1 -1
  35. package/dist/format/lib/content/card-template.js +1 -1
  36. package/dist/format/lib/content/gallery-layout.d.ts +13 -1
  37. package/dist/format/lib/content/gallery-layout.js +1 -1
  38. package/dist/format/lib/content/page-background.js +1 -1
  39. package/dist/format/lib/content/page-width.d.ts +1 -0
  40. package/dist/format/lib/content/page-width.js +1 -1
  41. package/dist/format/lib/content/section-background.js +1 -1
  42. package/dist/format/lib/document/blocks/general/Cards/card-list-seed.d.ts +17 -0
  43. package/dist/format/lib/document/blocks/general/Cards/card-list-seed.js +1 -0
  44. package/dist/format/lib/document/blocks/general/Chart/meta.d.ts +1 -0
  45. package/dist/format/lib/document/blocks/general/Chart/meta.js +1 -1
  46. package/dist/format/lib/document/blocks/general/Countdown/meta.d.ts +1 -0
  47. package/dist/format/lib/document/blocks/general/Countdown/meta.js +1 -1
  48. package/dist/format/lib/document/blocks/general/Mockup/meta.d.ts +1 -0
  49. package/dist/format/lib/document/blocks/general/Mockup/meta.js +1 -1
  50. package/dist/format/lib/document/blocks/general/text-part-shapes.json +10 -0
  51. package/dist/format/lib/document/box-footer.d.ts +13 -2
  52. package/dist/format/lib/document/box-footer.js +1 -1
  53. package/dist/format/lib/document/card-content-switch.d.ts +21 -0
  54. package/dist/format/lib/document/card-content-switch.js +1 -0
  55. package/dist/format/lib/document/card-row-keys.d.ts +14 -0
  56. package/dist/format/lib/document/card-row-keys.js +1 -0
  57. package/dist/format/lib/document/cards-template-on-read.d.ts +1 -1
  58. package/dist/format/lib/document/cards-template-on-read.js +1 -1
  59. package/dist/format/lib/document/container-blocks.js +1 -1
  60. package/dist/format/lib/document/neutralization-contracts.js +1 -1
  61. package/dist/format/lib/document/part-inks.d.ts +5 -2
  62. package/dist/format/lib/document/part-inks.js +1 -1
  63. package/dist/format/lib/document/section-catalog.js +2 -10
  64. package/dist/format/lib/document/seed-parts.d.ts +2 -0
  65. package/dist/format/lib/document/seed-parts.js +1 -1
  66. package/dist/format/lib/document/theme-slots.d.ts +20 -0
  67. package/dist/format/lib/document/theme-slots.js +1 -0
  68. package/dist/format/lib/editor-words-catalogue.d.ts +4 -0
  69. package/dist/format/lib/editor-words-catalogue.js +2 -2
  70. package/dist/format/lib/sections/logo-look.d.ts +1 -1
  71. package/dist/format/lib/sections/logo-look.js +1 -1
  72. package/dist/format/lib/theme.d.ts +1 -0
  73. package/dist/format/lib/theme.js +4 -4
  74. package/dist/render/components/Cards.d.ts +2 -1
  75. package/dist/render/components/Cards.js +1 -1
  76. package/dist/render/components/ChartSection.d.ts +2 -1
  77. package/dist/render/components/ChartSection.js +1 -1
  78. package/dist/render/components/Countdown.d.ts +2 -1
  79. package/dist/render/components/Countdown.js +1 -1
  80. package/dist/render/components/FeaturedCover.d.ts +2 -1
  81. package/dist/render/components/FeaturedCover.js +1 -1
  82. package/dist/render/components/KeyFeatures.js +1 -1
  83. package/dist/render/components/Logos.d.ts +5 -1
  84. package/dist/render/components/Logos.js +1 -1
  85. package/dist/render/components/MockupSection.d.ts +2 -1
  86. package/dist/render/components/MockupSection.js +1 -1
  87. package/dist/render/components/SiteGutterFrame.d.ts +5 -1
  88. package/dist/render/components/SiteGutterFrame.js +1 -1
  89. package/dist/render/components/Text.d.ts +2 -1
  90. package/dist/render/components/Text.js +1 -1
  91. package/dist/render/lib/content/section-edge.d.ts +7 -0
  92. package/dist/render/lib/content/section-edge.js +1 -1
  93. package/dist/render/lib/document/blocks/general/CardList/render.js +1 -1
  94. package/dist/render/lib/document/blocks/general/Cards/render.js +1 -1
  95. package/dist/render/lib/document/blocks/general/Chart/render.js +1 -1
  96. package/dist/render/lib/document/blocks/general/Countdown/render.js +1 -1
  97. package/dist/render/lib/document/blocks/general/FeaturedCover/render.js +1 -1
  98. package/dist/render/lib/document/blocks/general/Logos/render.js +1 -1
  99. package/dist/render/lib/document/blocks/general/Logos/wall-rows.d.ts +2 -0
  100. package/dist/render/lib/document/blocks/general/Logos/wall-rows.js +1 -0
  101. package/dist/render/lib/document/blocks/general/Mockup/render.js +2 -2
  102. package/dist/render/lib/document/blocks/general/Text/render.js +1 -1
  103. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.d.ts +3 -1
  104. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
  105. package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.d.ts +3 -0
  106. package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.js +1 -1
  107. package/dist/render/lib/document/blocks/general/section-to-box-rows-head.js +1 -1
  108. package/dist/render/lib/document/blocks/general/section-to-box-rows-logos.d.ts +1 -0
  109. package/dist/render/lib/document/blocks/general/section-to-box-rows-logos.js +1 -1
  110. package/dist/render/lib/document/blocks/general/section-to-box-rows-promo.d.ts +2 -0
  111. package/dist/render/lib/document/blocks/general/section-to-box-rows-promo.js +1 -0
  112. package/dist/render/lib/document/blocks/general/section-to-box-rows-proof.d.ts +2 -0
  113. package/dist/render/lib/document/blocks/general/section-to-box-rows-proof.js +1 -0
  114. package/dist/render/lib/document/blocks/general/section-to-box-rows-stats.js +1 -1
  115. package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
  116. package/dist/render/lib/document/head-core-boxes.d.ts +1 -0
  117. package/dist/render/lib/document/head-core-boxes.js +1 -1
  118. package/dist/render/lib/document/hero-media-parts.d.ts +2 -2
  119. package/dist/render/lib/document/page-render.js +1 -1
  120. package/dist/render/lib/document/passes/section-width.js +1 -1
  121. package/dist/render/lib/document/wall-labels.d.ts +3 -0
  122. package/dist/render/lib/document/wall-labels.js +1 -0
  123. package/dist/render/lib/sections/section-to-box.d.ts +1 -0
  124. package/dist/render/lib/sections/section-to-box.js +1 -1
  125. package/package.json +3 -3
  126. package/dist/editor/lib/document/theme-swatches.d.ts +0 -3
  127. package/dist/editor/lib/document/theme-swatches.js +0 -1
@@ -15,10 +15,14 @@ interface LogosProps {
15
15
  bandPadding?: number;
16
16
  logos?: SlotComponent;
17
17
  look?: LogoLook;
18
+ align?: unknown;
19
+ alignTablet?: unknown;
20
+ alignPhone?: unknown;
21
+ labelledBy?: string;
18
22
  omitHead?: boolean;
19
23
  cards?: ReactNode;
20
24
  }
21
- export default function Logos({ items, contained, heading, columns, grayscale, logoHeight, bandPadding, logos: LogoBlocks, look, omitHead, cards, }: LogosProps): import("react").JSX.Element;
25
+ export default function Logos({ items, contained, heading, columns, grayscale, logoHeight, bandPadding, logos: LogoBlocks, look, omitHead, cards, align, alignTablet, alignPhone, labelledBy, }: LogosProps): import("react").JSX.Element;
22
26
  export declare const CARD_WORDS_CLASS = "font-mono text-[12px] uppercase tracking-[0.18em]";
23
27
  export declare function LogoWallMark({ src, alt, look, logoHeight, grayscale, kind, mark, }: {
24
28
  src?: string;
@@ -1 +1 @@
1
- import{jsx as l,jsxs as f}from"react/jsx-runtime";import{PagePicture as L}from"../lib/first-screen.js";import{PaymentMark as N,paymentMarkItems as M}from"efficient-shell/icons/payment";import j from"./BlockFrame.js";import{renderChrome as z,renderGold as R,renderHeadline as T}from"./goldPhrases.js";import{LogoWallProvider as E}from"./LogoWallContext.js";import{EMPTY_ELSE_CLASS as G,EMPTY_HIDES_CLASS as I,EmptyHidesStyle as k}from"../lib/content/empty-hides.js";import{media as O}from"../lib/media.js";import{sizedImage as v}from"../../format/lib/sized-image.js";import{stripMarkup as w}from"../../format/lib/markup.js";import{DEFAULT_LOGO_LOOK as B}from"../../format/lib/sections/logo-look.js";import{paymentRowMark as D}from"../lib/sections/payment-rows.js";const A={label:"text-[length:var(--size-label,13px)]"},c="sf-logo-wall",P="sf-logo-items",d="flex flex-wrap items-center justify-center",u="plain",x={plain:{x:3.5,y:2},cards:{x:.75,y:.75}},y=t=>({columnGap:`${x[t].x}rem`,rowGap:`${x[t].y}rem`}),S=(t,e)=>`calc((100% - ${(t-1)*x[e].x}rem) / ${t})`;function Y({items:t,contained:e,heading:n,columns:r,grayscale:s,logoHeight:i,bandPadding:a,logos:m,look:o=B,omitHead:$=!1,cards:p}){const b=r!=null?{flex:`0 0 ${S(r,u)}`}:void 0,_=!$;return f(j,{contained:e,className:_&&a==null?"py-10":"",style:!_||a==null?void 0:{paddingTop:`${a}px`,paddingBottom:`${a}px`},children:[!$&&n!=null&&n!==""?l("h2",{className:`mb-8 text-center font-mono ${A.label} uppercase tracking-[0.2em] text-fg-dim`,children:T(n,!1)}):null,p!==void 0?f(E,{value:{look:o,logoHeight:i,grayscale:s},children:[r!=null?l("style",{children:`.${c}-c${r}>*{flex:0 0 ${S(r,o)}}`}):null,l("div",{className:[c,r!=null?`${c}-c${r}`:"",d].filter(Boolean).join(" "),style:y(o),children:p})]}):m?f(E,{value:{look:o,logoHeight:i,grayscale:s},children:[l(k,{}),r!=null?l("style",{children:`.${c}-c${r}>*{flex:0 0 ${S(r,o)}}`}):null,l(m,{className:[c,I,r!=null?`${c}-c${r}`:"",d].filter(Boolean).join(" "),style:y(o),minEmptyHeight:80})]}):null,p!==void 0?null:l("div",{className:`${P} ${G} ${d}`,style:y(u),children:(t??[]).map((g,C)=>l("div",{className:"text-center",style:b,children:l(F,{src:g.src,alt:g.alt,look:u,logoHeight:i,grayscale:s})},C))})]})}const h="font-mono text-[12px] uppercase tracking-[0.18em]";function W(t){const e=M({name:w(t)});return!e.length||e.length===1&&e[0].kind==="words"&&!e[0].glyph?null:l("span",{className:"flex items-center gap-3",children:e.map((n,r)=>l(N,{item:n,size:20,className:h},r))})}function F({src:t,alt:e,look:n,logoHeight:r,grayscale:s,kind:i,mark:a}){if(n==="cards"){const m=!t&&i!==void 0?D({label:e,kind:i}):null;return l("div",{className:"sf-card flex h-10 items-center border border-line bg-surface px-4",children:a||(m?l(N,{item:m,size:20,className:h}):!t&&e&&W(e)?W(e):t?l(L,{...K(O(t)),alt:w(e||""),className:s===!1?"max-h-5 w-auto opacity-90":"max-h-5 w-auto opacity-90 grayscale"}):e&&l("span",{className:h,children:R(e)}))})}return t?l(L,{...U(O(t)),alt:e,className:["mx-auto w-auto opacity-60 transition-opacity hover:opacity-100",r==null?"h-7":"",s===!1?"":"grayscale"].filter(Boolean).join(" "),style:r==null?void 0:{height:`${r}px`}}):l("span",{className:`font-mono ${A.label} uppercase tracking-[0.2em] text-fg-dim`,children:z(e||"Logo")})}function K(t){const e=v(t,{fallbackWidth:320,maxWidth:640});return e.srcSet?{src:e.src,srcSet:e.srcSet,sizes:"120px"}:{src:t}}function U(t){const e=v(t,{fallbackWidth:640,maxWidth:960});return e.srcSet?{src:e.src,srcSet:e.srcSet,sizes:"240px"}:{src:t}}export{h as CARD_WORDS_CLASS,F as LogoWallMark,Y as default};
1
+ import{jsx as n,jsxs as d,Fragment as K}from"react/jsx-runtime";import{PagePicture as h}from"../lib/first-screen.js";import{PaymentMark as y,paymentMarkItems as P}from"efficient-shell/icons/payment";import D from"./BlockFrame.js";import{renderChrome as Y,renderGold as A,renderHeadline as Z}from"./goldPhrases.js";import{LogoWallProvider as M}from"./LogoWallContext.js";import{EMPTY_ELSE_CLASS as U,EMPTY_HIDES_CLASS as J,EmptyHidesStyle as V}from"../lib/content/empty-hides.js";import{media as S}from"../lib/media.js";import{sizedImage as v}from"../../format/lib/sized-image.js";import{stripMarkup as _}from"../../format/lib/markup.js";import{DEFAULT_LOGO_LOOK as X}from"../../format/lib/sections/logo-look.js";import{paymentRowMark as W}from"../lib/sections/payment-rows.js";import{alignViewClasses as q,BLOCK_ALIGN_JUSTIFY as H,blockAlignOf as Q}from"../../format/lib/content/block-align.js";import{FOOTER_MARK_SIZES as C}from"../../format/lib/document/box-footer.js";import{say as ee}from"../../format/lib/editor-words.js";const R={label:"text-[length:var(--size-label,13px)]"},f="sf-logo-wall",te="sf-logo-items",ne="flex flex-wrap items-center",re=(t,e,s)=>{const r=Q(t)??"center";return[ne,H[r],q("justify",r,e,s)].filter(Boolean).join(" ")},$="plain",g={plain:{x:3.5,y:2},cards:{x:.75,y:.75},marks:{x:.75,y:.5}},w=t=>({columnGap:`${g[t].x}rem`,rowGap:`${g[t].y}rem`}),E=(t,e)=>`calc((100% - ${(t-1)*g[e].x}rem) / ${t})`;function se({items:t,contained:e,heading:s,columns:r,grayscale:c,logoHeight:o,bandPadding:a,logos:i,look:l=X,omitHead:m=!1,cards:p,align:u,alignTablet:j,alignPhone:k,labelledBy:G}){const x=re(u,j,k),N=l==="marks",B=r!=null?{flex:`0 0 ${E(r,$)}`}:void 0,O=!m;return d(D,{contained:e,fillWidth:N&&m?"w-auto max-w-full":void 0,className:O&&a==null?"py-10":"",style:!O||a==null?void 0:{paddingTop:`${a}px`,paddingBottom:`${a}px`},children:[!m&&s!=null&&s!==""?n("h2",{className:`mb-8 text-center font-mono ${R.label} uppercase tracking-[0.2em] text-fg-dim`,children:Z(s,!1)}):null,d(le,{listed:N,labelledBy:G,children:[p!==void 0?d(M,{value:{look:l,logoHeight:o,grayscale:c},children:[r!=null?n("style",{children:`.${f}-c${r}>*{flex:0 0 ${E(r,l)}}`}):null,n("div",{className:[f,r!=null?`${f}-c${r}`:"",x].filter(Boolean).join(" "),style:w(l),children:p})]}):i?d(M,{value:{look:l,logoHeight:o,grayscale:c},children:[n(V,{}),r!=null?n("style",{children:`.${f}-c${r}>*{flex:0 0 ${E(r,l)}}`}):null,n(i,{className:[f,J,r!=null?`${f}-c${r}`:"",x].filter(Boolean).join(" "),style:w(l),minEmptyHeight:80})]}):null,p!==void 0?null:n("div",{className:`${te} ${U} ${x}`,style:w($),children:(t??[]).map((b,F)=>n("div",{className:"text-center",style:B,children:n(ce,{src:b.src,alt:b.alt,look:$,logoHeight:o,grayscale:c})},F))})]})]})}function le({listed:t,labelledBy:e,children:s}){return t?n("div",{className:"contents",role:"list",...e?{"aria-labelledby":e}:{"aria-label":ee("Ways to pay")},children:s}):n(K,{children:s})}const L="font-mono text-[12px] uppercase tracking-[0.18em]";function z(t){const e=P({name:_(t)});return!e.length||e.length===1&&e[0].kind==="words"&&!e[0].glyph?[]:e}function I(t){const e=z(t);return e.length?n("span",{className:"flex items-center gap-3",children:e.map((s,r)=>n(y,{item:s,size:20,className:L},r))}):null}const ae=C.sm.mark,ie=Object.values(C),oe=t=>ie.reduce((e,s)=>Math.abs(s.mark-t)<Math.abs(e.mark-t)?s:e).words;function ce({src:t,alt:e,look:s,logoHeight:r,grayscale:c,kind:o,mark:a}){if(s==="marks"){const i=r??ae,l=!t&&o!==void 0?W({label:e,kind:o}):null,m=l?[l]:!t&&e?z(e):[];return n("span",{role:"listitem",className:"flex items-center gap-3",style:{fontSize:`${oe(i)}px`},children:a||(m.length?m.map((p,u)=>n(y,{item:p,size:i},u)):t?n(h,{...T(S(t)),alt:_(e||""),className:"w-auto",style:{height:`${i}px`}}):e&&n("span",{children:A(e)}))})}if(s==="cards"){const i=!t&&o!==void 0?W({label:e,kind:o}):null;return n("div",{className:"sf-card flex h-10 items-center border border-line bg-surface px-4",children:a||(i?n(y,{item:i,size:20,className:L}):!t&&e&&I(e)?I(e):t?n(h,{...T(S(t)),alt:_(e||""),className:c===!1?"max-h-5 w-auto opacity-90":"max-h-5 w-auto opacity-90 grayscale"}):e&&n("span",{className:L,children:A(e)}))})}return t?n(h,{...me(S(t)),alt:e,className:["mx-auto w-auto opacity-60 transition-opacity hover:opacity-100",r==null?"h-7":"",c===!1?"":"grayscale"].filter(Boolean).join(" "),style:r==null?void 0:{height:`${r}px`}}):n("span",{className:`font-mono ${R.label} uppercase tracking-[0.2em] text-fg-dim`,children:Y(e||"Logo")})}function T(t){const e=v(t,{fallbackWidth:320,maxWidth:640});return e.srcSet?{src:e.src,srcSet:e.srcSet,sizes:"120px"}:{src:t}}function me(t){const e=v(t,{fallbackWidth:640,maxWidth:960});return e.srcSet?{src:e.src,srcSet:e.srcSet,sizes:"240px"}:{src:t}}export{L as CARD_WORDS_CLASS,ce as LogoWallMark,se as default};
@@ -55,5 +55,6 @@ export interface MockupSectionProps {
55
55
  products?: MockupProduct[];
56
56
  align?: "right" | "left";
57
57
  editing?: boolean;
58
+ omitHead?: boolean;
58
59
  }
59
- export default function MockupSection({ eyebrow, title, body, variant, cardHeader, badge, cardTitle, cardSubtitle, pills, tiles, rows, button, footnote, col1Title, col1Cards, col2Title, col2Cards, col3Title, col3Cards, col4Title, col4Cards, barsHeading, bars, termLines, urlText, heroTitle, heroButton, products, align, editing, }?: MockupSectionProps): import("react").JSX.Element | null;
60
+ export default function MockupSection({ eyebrow, title, body, variant, cardHeader, badge, cardTitle, cardSubtitle, pills, tiles, rows, button, footnote, col1Title, col1Cards, col2Title, col2Cards, col3Title, col3Cards, col4Title, col4Cards, barsHeading, bars, termLines, urlText, heroTitle, heroButton, products, align, editing, omitHead, }?: MockupSectionProps): import("react").JSX.Element | null;
@@ -1 +1 @@
1
- import{jsx as e,jsxs as r,Fragment as D}from"react/jsx-runtime";import{HideTaker as te}from"./ViewHideRoot.js";import{renderGold as re,renderHeadline as ne}from"./goldPhrases.js";const B={headingMediumUpTo800:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMedium:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]"},C="#ffffff",d="#16181d",o="#5b6470",u="#9aa3ae",p="#f4f6f8",m="#e3e7ec",g="#1f9d55";function se({rows:n}){return e("div",{className:"flex flex-col gap-3",children:n.map((a,c)=>{const t=a.state??"ok",s=t==="no";return r("div",{className:"flex items-center gap-3 rounded-lg border px-4 py-3",style:{background:s?"#fbfbfc":p,borderColor:m},children:[t==="no"?e("span",{"aria-hidden":!0,className:"text-[15px] font-bold",style:{color:u},children:"✕"}):e("span",{"aria-hidden":!0,className:"h-[11px] w-[11px] flex-shrink-0 rounded-full",style:{background:t==="warn"?"var(--accent)":g}}),e("span",{className:"text-[14px] font-semibold",style:{color:s?u:d},children:a.lead}),e("span",{className:"text-[13px]",style:{color:s?u:o},children:a.detail}),(a.status??"").trim()&&e("span",{className:"ml-auto whitespace-nowrap text-[12px] font-bold",style:{color:t==="ok"?g:t==="warn"?"var(--accent)":u},children:a.status})]},c)})})}const E=["#c7cdd5","var(--accent)","#c7cdd5",g];function ce({columns:n}){return e("div",{className:"grid gap-2 rounded-xl p-3",style:{background:p,gridTemplateColumns:`repeat(${n.length}, minmax(0, 1fr))`},children:n.map((a,c)=>r("div",{className:"flex flex-col gap-2",children:[r("div",{className:"flex items-baseline justify-between px-1",children:[e("span",{className:"font-mono text-[9px] font-semibold uppercase tracking-[0.14em]",style:{color:o},children:a.title}),e("span",{className:"font-mono text-[9px] font-bold",style:{color:"var(--accent)"},children:a.cards.length})]}),a.cards.map((t,s)=>r("div",{className:"rounded-md border px-2.5 py-2",style:{background:C,borderColor:c===n.length-1?"#bfe3ce":m},children:[e("span",{"aria-hidden":!0,className:"mb-1.5 block h-[8px] w-[8px] rounded-full",style:{background:E[c%E.length]}}),e("span",{className:"block text-[11px] font-semibold leading-snug",style:{color:d},children:t})]},s))]},c))})}function de({heading:n,bars:a}){const c=Math.max(...a.map(s=>s.value),0)||1,t=a.findIndex(s=>s.value===c);return r("div",{className:"border-t pt-4",style:{borderColor:m},children:[n.trim()&&e("div",{className:"mb-3 font-mono text-[10px] font-semibold uppercase tracking-[0.18em]",style:{color:o},children:n}),e("div",{className:"flex flex-col gap-2.5",children:a.map((s,i)=>r("div",{className:"flex items-center gap-3",children:[e("span",{className:"w-[84px] flex-shrink-0 text-[12px] font-bold",style:{color:d},children:s.label}),e("span",{className:"h-[12px] rounded-full",style:{width:`${Math.max(s.value/c*60,4)}%`,background:i===t?"var(--accent)":i%2?"#c7cdd5":"#9aa3ae"}}),r("span",{className:"text-[12px]",style:{color:o},children:[s.value,"%"]})]},i))})]})}function I({size:n}){const a=n/2;return r("svg",{width:n,height:n,viewBox:`0 0 ${n} ${n}`,"aria-hidden":!0,children:[e("circle",{cx:a,cy:a,r:a*.82,fill:"none",stroke:"#9aa3ae",strokeWidth:"2.5"}),e("circle",{cx:a,cy:a,r:a*.5,fill:"none",stroke:"var(--accent)",strokeWidth:"2"}),e("circle",{cx:a,cy:a,r:a*.14,fill:"var(--accent)"})]})}function ie({header:n,lines:a}){return r("div",{style:{background:"#0c0e11"},children:[r("div",{className:"relative flex items-center gap-2 px-4 py-3",style:{background:"#161a20"},children:[e("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] rounded-full",style:{background:"#e85d5d"}}),e("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] rounded-full",style:{background:"#efc65a"}}),e("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] rounded-full",style:{background:"#6fcf7e"}}),n.trim()&&e("span",{className:"absolute inset-x-0 text-center font-mono text-[11px]",style:{color:"rgba(244,246,242,0.45)"},children:n})]}),r("div",{className:"flex flex-col gap-1.5 px-5 py-5 font-mono text-[13px] leading-relaxed",children:[a.map((c,t)=>c.startsWith("$ ")?r("div",{children:[e("span",{style:{color:"var(--accent)"},children:"$ "}),e("span",{style:{color:"#f4f6f2"},children:c.slice(2)})]},t):c.startsWith("✓")?e("div",{style:{color:"#6fcf7e"},children:c},t):e("div",{style:{color:"rgba(244,246,242,0.55)"},children:c},t)),e("div",{"aria-hidden":!0,className:"mt-1 h-[15px] w-[8px]",style:{background:"var(--accent)"}})]})]})}function oe({urlText:n,heroTitle:a,heroButton:c,products:t}){return r("div",{children:[r("div",{className:"flex items-center gap-2 px-4 py-3",style:{background:p},children:[e("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] rounded-full",style:{background:"#e85d5d"}}),e("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] rounded-full",style:{background:"#efc65a"}}),e("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] rounded-full",style:{background:"#6fcf7e"}}),n.trim()&&e("span",{className:"mx-auto rounded border px-6 py-1 text-[11px]",style:{background:C,borderColor:m,color:o},children:n}),e("span",{className:"w-[54px]","aria-hidden":!0})]}),r("div",{className:"relative overflow-hidden px-5 py-6",style:{background:d},children:[e("div",{className:"absolute -right-4 top-1/2 -translate-y-1/2 opacity-90",children:e(I,{size:104})}),a.trim()&&e("div",{className:"max-w-[240px] text-[15px] font-bold uppercase leading-snug tracking-wide text-white",children:a}),c.trim()&&e("div",{className:"mt-3 inline-block rounded px-3.5 py-1.5 text-[11px] font-bold text-white",style:{background:"var(--accent)"},"aria-hidden":!0,children:c})]}),t.length>0&&e("div",{className:"grid grid-cols-3 gap-3 p-4",children:t.map((s,i)=>r("div",{className:"overflow-hidden rounded-lg border",style:{borderColor:m},children:[e("div",{className:"flex items-center justify-center py-3",style:{background:p},children:e(I,{size:56})}),r("div",{className:"flex flex-col gap-1 p-2.5",children:[e("span",{className:"text-[10.5px] font-bold leading-tight",style:{color:d},children:s.name}),e("span",{className:"text-[11px] font-bold",style:{color:"var(--accent)"},children:s.price}),e("span",{className:"mt-0.5 rounded px-2 py-1 text-center text-[9px] font-bold text-white",style:{background:d},"aria-hidden":!0,children:"Add to cart"})]})]},i))})]})}function me({eyebrow:n,title:a,body:c,variant:t="spec-card",cardHeader:s,badge:i,cardTitle:f,cardSubtitle:b,pills:F,tiles:W,rows:K,button:_,footnote:M,col1Title:G,col1Cards:L,col2Title:U,col2Cards:O,col3Title:P,col3Cards:z,col4Title:S,col4Cards:X,barsHeading:Z,bars:q,termLines:H,urlText:J,heroTitle:j,heroButton:Q,products:V,align:Y="right",editing:x=!1}={}){const y=(F??[]).filter(l=>x||(l.value??"").trim()),v=(W??[]).filter(l=>x||(l.label??"").trim()),N=(K??[]).filter(l=>x||(l.lead??"").trim()),k=[[G,L],[U,O],[P,z],[S,X]].map(([l,h])=>({title:(l??"").trim(),cards:(h??[]).map(le=>(le.text??"").trim()).filter(Boolean)})).filter(l=>l.title||l.cards.length>0),w=(q??[]).map(l=>({label:(l.label??"").trim(),value:parseFloat(l.value??"")})).filter(l=>l.label&&Number.isFinite(l.value)),A=(H??[]).map(l=>l.text??"").filter(l=>x||l.trim()),R=(V??[]).map(l=>({name:(l.name??"").trim(),price:(l.price??"").trim()})).filter(l=>l.name),ee=!!(n??"").trim()||!!(a??"").trim(),ae=!!(s??"").trim()||!!(f??"").trim()||y.length>0||v.length>0||N.length>0||k.length>0||w.length>0||R.length>0||A.length>0||!!(j??"").trim();if(!x&&!ee&&!ae)return null;const T=r("div",{className:`w-full overflow-hidden rounded-2xl shadow-[0_24px_60px_rgba(0,0,0,0.35)] ${t==="kanban"||t==="browser"||t==="terminal"?"max-w-[600px]":"max-w-[520px]"}`,style:{background:C},children:[t!=="terminal"&&(s??"").trim()&&r("div",{className:"flex items-center justify-between px-6 py-4",style:{background:d},children:[e("span",{className:"font-mono text-[12px] font-semibold uppercase tracking-[0.22em] text-white",children:s}),(i??"").trim()&&r("span",{className:"flex items-center gap-2 font-mono text-[11px] font-semibold uppercase tracking-[0.16em] text-white",children:[e("span",{"aria-hidden":!0,className:"h-[9px] w-[9px] rounded-full",style:{background:g}}),i]})]}),t==="terminal"?e(ie,{header:s??"",lines:A}):t==="browser"?e(oe,{urlText:J??"",heroTitle:j??"",heroButton:Q??"",products:R}):r("div",{className:"flex flex-col gap-5 p-6",children:[((f??"").trim()||(b??"").trim())&&r("div",{children:[(f??"").trim()&&e("div",{className:"text-[22px] font-bold leading-tight",style:{color:d},children:f}),(b??"").trim()&&e("div",{className:"mt-1 text-[14px]",style:{color:o},children:b})]}),t==="fitment"&&y.length>0&&e("div",{className:"flex flex-wrap gap-2.5",children:y.map((l,h)=>r("span",{className:"flex items-baseline gap-2 rounded border px-4 py-2",style:{background:p,borderColor:m},children:[e("span",{className:"text-[11px]",style:{color:o},children:l.label}),e("span",{className:"text-[13px] font-bold",style:{color:d},children:l.value})]},h))}),t!=="fitment"&&v.length>0&&e("div",{className:"grid grid-cols-2 gap-3",children:v.map((l,h)=>r("div",{className:"rounded-lg px-4 py-3",style:{background:p},children:[e("div",{className:"font-mono text-[10px] font-semibold uppercase tracking-[0.18em]",style:{color:o},children:l.label}),e("div",{className:"mt-1 text-[17px] font-bold",style:{color:d},children:l.value})]},h))}),N.length>0&&e(se,{rows:N}),(_??"").trim()&&e("div",{className:"self-start rounded-lg px-6 py-2.5 text-[14px] font-bold text-white",style:{background:"var(--accent)"},"aria-hidden":!0,children:_}),t==="kanban"&&k.length>0&&e(ce,{columns:k}),t==="claims"&&w.length>0&&e(de,{heading:Z??"",bars:w}),(M??"").trim()&&e("div",{className:"border-t pt-4",style:{borderColor:m},children:e("span",{className:"text-[15px] font-bold",style:{color:"var(--accent)"},children:M})})]})]}),$=r("div",{children:[(n??"").trim()&&e("span",{className:"inline-block bg-accent px-3.5 py-1.5 font-mono text-[12px] font-semibold uppercase tracking-[0.16em] text-bg",children:re(n??"")}),(a??"").trim()&&e("h2",{className:`mt-5 font-heading2 ${B.headingMedium} font-medium uppercase leading-[1.04] tracking-[-0.02em] text-fg ${B.headingMediumUpTo800}`,children:ne(a??"",!1)}),(c??"").trim()&&e("p",{className:"mt-5 max-w-[46ch] text-[15px] leading-relaxed text-fg/65",children:c})]});return e(te,{as:"section",className:"relative z-[2] border-y border-line bg-surface",children:e("div",{className:"mx-auto grid max-w-[var(--sf-site-width,1600px)] items-center gap-14 px-[var(--sf-site-gutter,40px)] py-[76px] min-[960px]:grid-cols-2 max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",children:Y==="left"?r(D,{children:[e("div",{className:"flex justify-center min-[960px]:justify-start",children:T}),$]}):r(D,{children:[$,e("div",{className:"flex justify-center min-[960px]:justify-end",children:T})]})})})}export{me as default};
1
+ import{jsx as e,jsxs as r,Fragment as I}from"react/jsx-runtime";import{HideTaker as re}from"./ViewHideRoot.js";import{renderGold as ne,renderHeadline as se}from"./goldPhrases.js";const F={headingMediumUpTo800:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMedium:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]"},_="#ffffff",d="#16181d",o="#5b6470",u="#9aa3ae",x="#f4f6f8",m="#e3e7ec",g="#1f9d55";function ce({rows:n}){return e("div",{className:"flex flex-col gap-3",children:n.map((l,c)=>{const a=l.state??"ok",s=a==="no";return r("div",{className:"flex items-center gap-3 rounded-lg border px-4 py-3",style:{background:s?"#fbfbfc":x,borderColor:m},children:[a==="no"?e("span",{"aria-hidden":!0,className:"text-[15px] font-bold",style:{color:u},children:"✕"}):e("span",{"aria-hidden":!0,className:"h-[11px] w-[11px] flex-shrink-0 rounded-full",style:{background:a==="warn"?"var(--accent)":g}}),e("span",{className:"text-[14px] font-semibold",style:{color:s?u:d},children:l.lead}),e("span",{className:"text-[13px]",style:{color:s?u:o},children:l.detail}),(l.status??"").trim()&&e("span",{className:"ml-auto whitespace-nowrap text-[12px] font-bold",style:{color:a==="ok"?g:a==="warn"?"var(--accent)":u},children:l.status})]},c)})})}const W=["#c7cdd5","var(--accent)","#c7cdd5",g];function de({columns:n}){return e("div",{className:"grid gap-2 rounded-xl p-3",style:{background:x,gridTemplateColumns:`repeat(${n.length}, minmax(0, 1fr))`},children:n.map((l,c)=>r("div",{className:"flex flex-col gap-2",children:[r("div",{className:"flex items-baseline justify-between px-1",children:[e("span",{className:"font-mono text-[9px] font-semibold uppercase tracking-[0.14em]",style:{color:o},children:l.title}),e("span",{className:"font-mono text-[9px] font-bold",style:{color:"var(--accent)"},children:l.cards.length})]}),l.cards.map((a,s)=>r("div",{className:"rounded-md border px-2.5 py-2",style:{background:_,borderColor:c===n.length-1?"#bfe3ce":m},children:[e("span",{"aria-hidden":!0,className:"mb-1.5 block h-[8px] w-[8px] rounded-full",style:{background:W[c%W.length]}}),e("span",{className:"block text-[11px] font-semibold leading-snug",style:{color:d},children:a})]},s))]},c))})}function ie({heading:n,bars:l}){const c=Math.max(...l.map(s=>s.value),0)||1,a=l.findIndex(s=>s.value===c);return r("div",{className:"border-t pt-4",style:{borderColor:m},children:[n.trim()&&e("div",{className:"mb-3 font-mono text-[10px] font-semibold uppercase tracking-[0.18em]",style:{color:o},children:n}),e("div",{className:"flex flex-col gap-2.5",children:l.map((s,i)=>r("div",{className:"flex items-center gap-3",children:[e("span",{className:"w-[84px] flex-shrink-0 text-[12px] font-bold",style:{color:d},children:s.label}),e("span",{className:"h-[12px] rounded-full",style:{width:`${Math.max(s.value/c*60,4)}%`,background:i===a?"var(--accent)":i%2?"#c7cdd5":"#9aa3ae"}}),r("span",{className:"text-[12px]",style:{color:o},children:[s.value,"%"]})]},i))})]})}function K({size:n}){const l=n/2;return r("svg",{width:n,height:n,viewBox:`0 0 ${n} ${n}`,"aria-hidden":!0,children:[e("circle",{cx:l,cy:l,r:l*.82,fill:"none",stroke:"#9aa3ae",strokeWidth:"2.5"}),e("circle",{cx:l,cy:l,r:l*.5,fill:"none",stroke:"var(--accent)",strokeWidth:"2"}),e("circle",{cx:l,cy:l,r:l*.14,fill:"var(--accent)"})]})}function oe({header:n,lines:l}){return r("div",{style:{background:"#0c0e11"},children:[r("div",{className:"relative flex items-center gap-2 px-4 py-3",style:{background:"#161a20"},children:[e("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] rounded-full",style:{background:"#e85d5d"}}),e("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] rounded-full",style:{background:"#efc65a"}}),e("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] rounded-full",style:{background:"#6fcf7e"}}),n.trim()&&e("span",{className:"absolute inset-x-0 text-center font-mono text-[11px]",style:{color:"rgba(244,246,242,0.45)"},children:n})]}),r("div",{className:"flex flex-col gap-1.5 px-5 py-5 font-mono text-[13px] leading-relaxed",children:[l.map((c,a)=>c.startsWith("$ ")?r("div",{children:[e("span",{style:{color:"var(--accent)"},children:"$ "}),e("span",{style:{color:"#f4f6f2"},children:c.slice(2)})]},a):c.startsWith("✓")?e("div",{style:{color:"#6fcf7e"},children:c},a):e("div",{style:{color:"rgba(244,246,242,0.55)"},children:c},a)),e("div",{"aria-hidden":!0,className:"mt-1 h-[15px] w-[8px]",style:{background:"var(--accent)"}})]})]})}function me({urlText:n,heroTitle:l,heroButton:c,products:a}){return r("div",{children:[r("div",{className:"flex items-center gap-2 px-4 py-3",style:{background:x},children:[e("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] rounded-full",style:{background:"#e85d5d"}}),e("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] rounded-full",style:{background:"#efc65a"}}),e("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] rounded-full",style:{background:"#6fcf7e"}}),n.trim()&&e("span",{className:"mx-auto rounded border px-6 py-1 text-[11px]",style:{background:_,borderColor:m,color:o},children:n}),e("span",{className:"w-[54px]","aria-hidden":!0})]}),r("div",{className:"relative overflow-hidden px-5 py-6",style:{background:d},children:[e("div",{className:"absolute -right-4 top-1/2 -translate-y-1/2 opacity-90",children:e(K,{size:104})}),l.trim()&&e("div",{className:"max-w-[240px] text-[15px] font-bold uppercase leading-snug tracking-wide text-white",children:l}),c.trim()&&e("div",{className:"mt-3 inline-block rounded px-3.5 py-1.5 text-[11px] font-bold text-white",style:{background:"var(--accent)"},"aria-hidden":!0,children:c})]}),a.length>0&&e("div",{className:"grid grid-cols-3 gap-3 p-4",children:a.map((s,i)=>r("div",{className:"overflow-hidden rounded-lg border",style:{borderColor:m},children:[e("div",{className:"flex items-center justify-center py-3",style:{background:x},children:e(K,{size:56})}),r("div",{className:"flex flex-col gap-1 p-2.5",children:[e("span",{className:"text-[10.5px] font-bold leading-tight",style:{color:d},children:s.name}),e("span",{className:"text-[11px] font-bold",style:{color:"var(--accent)"},children:s.price}),e("span",{className:"mt-0.5 rounded px-2 py-1 text-center text-[9px] font-bold text-white",style:{background:d},"aria-hidden":!0,children:"Add to cart"})]})]},i))})]})}function pe({eyebrow:n,title:l,body:c,variant:a="spec-card",cardHeader:s,badge:i,cardTitle:f,cardSubtitle:b,pills:G,tiles:L,rows:U,button:j,footnote:M,col1Title:O,col1Cards:P,col2Title:z,col2Cards:S,col3Title:X,col3Cards:Z,col4Title:q,col4Cards:J,barsHeading:Q,bars:V,termLines:Y,urlText:H,heroTitle:A,heroButton:ee,products:le,align:R="right",editing:p=!1,omitHead:$=!1}={}){const y=(G??[]).filter(t=>p||(t.value??"").trim()),v=(L??[]).filter(t=>p||(t.label??"").trim()),N=(U??[]).filter(t=>p||(t.lead??"").trim()),k=[[O,P],[z,S],[X,Z],[q,J]].map(([t,h])=>({title:(t??"").trim(),cards:(h??[]).map(ae=>(ae.text??"").trim()).filter(Boolean)})).filter(t=>t.title||t.cards.length>0),w=(V??[]).map(t=>({label:(t.label??"").trim(),value:parseFloat(t.value??"")})).filter(t=>t.label&&Number.isFinite(t.value)),T=(Y??[]).map(t=>t.text??"").filter(t=>p||t.trim()),D=(le??[]).map(t=>({name:(t.name??"").trim(),price:(t.price??"").trim()})).filter(t=>t.name),te=!$&&(!!(n??"").trim()||!!(l??"").trim()),B=!!(s??"").trim()||!!(f??"").trim()||y.length>0||v.length>0||N.length>0||k.length>0||w.length>0||D.length>0||T.length>0||!!(A??"").trim();if(!p&&!te&&!B)return null;const C=r("div",{className:`w-full overflow-hidden rounded-2xl shadow-[0_24px_60px_rgba(0,0,0,0.35)] ${a==="kanban"||a==="browser"||a==="terminal"?"max-w-[600px]":"max-w-[520px]"}`,style:{background:_},children:[a!=="terminal"&&(s??"").trim()&&r("div",{className:"flex items-center justify-between px-6 py-4",style:{background:d},children:[e("span",{className:"font-mono text-[12px] font-semibold uppercase tracking-[0.22em] text-white",children:s}),(i??"").trim()&&r("span",{className:"flex items-center gap-2 font-mono text-[11px] font-semibold uppercase tracking-[0.16em] text-white",children:[e("span",{"aria-hidden":!0,className:"h-[9px] w-[9px] rounded-full",style:{background:g}}),i]})]}),a==="terminal"?e(oe,{header:s??"",lines:T}):a==="browser"?e(me,{urlText:H??"",heroTitle:A??"",heroButton:ee??"",products:D}):r("div",{className:"flex flex-col gap-5 p-6",children:[((f??"").trim()||(b??"").trim())&&r("div",{children:[(f??"").trim()&&e("div",{className:"text-[22px] font-bold leading-tight",style:{color:d},children:f}),(b??"").trim()&&e("div",{className:"mt-1 text-[14px]",style:{color:o},children:b})]}),a==="fitment"&&y.length>0&&e("div",{className:"flex flex-wrap gap-2.5",children:y.map((t,h)=>r("span",{className:"flex items-baseline gap-2 rounded border px-4 py-2",style:{background:x,borderColor:m},children:[e("span",{className:"text-[11px]",style:{color:o},children:t.label}),e("span",{className:"text-[13px] font-bold",style:{color:d},children:t.value})]},h))}),a!=="fitment"&&v.length>0&&e("div",{className:"grid grid-cols-2 gap-3",children:v.map((t,h)=>r("div",{className:"rounded-lg px-4 py-3",style:{background:x},children:[e("div",{className:"font-mono text-[10px] font-semibold uppercase tracking-[0.18em]",style:{color:o},children:t.label}),e("div",{className:"mt-1 text-[17px] font-bold",style:{color:d},children:t.value})]},h))}),N.length>0&&e(ce,{rows:N}),(j??"").trim()&&e("div",{className:"self-start rounded-lg px-6 py-2.5 text-[14px] font-bold text-white",style:{background:"var(--accent)"},"aria-hidden":!0,children:j}),a==="kanban"&&k.length>0&&e(de,{columns:k}),a==="claims"&&w.length>0&&e(ie,{heading:Q??"",bars:w}),(M??"").trim()&&e("div",{className:"border-t pt-4",style:{borderColor:m},children:e("span",{className:"text-[15px] font-bold",style:{color:"var(--accent)"},children:M})})]})]});if($)return p||B?e("div",{className:`flex justify-center ${R==="left"?"view-wide:justify-start":"view-wide:justify-end"}`,children:C}):null;const E=r("div",{children:[(n??"").trim()&&e("span",{className:"inline-block bg-accent px-3.5 py-1.5 font-mono text-[12px] font-semibold uppercase tracking-[0.16em] text-bg",children:ne(n??"")}),(l??"").trim()&&e("h2",{className:`mt-5 font-heading2 ${F.headingMedium} font-medium uppercase leading-[1.04] tracking-[-0.02em] text-fg ${F.headingMediumUpTo800}`,children:se(l??"",!1)}),(c??"").trim()&&e("p",{className:"mt-5 max-w-[46ch] text-[15px] leading-relaxed text-fg/65",children:c})]});return e(re,{as:"section",className:"relative z-[2] border-y border-line bg-surface",children:e("div",{className:"mx-auto grid max-w-[var(--sf-site-width,1600px)] items-center gap-14 px-[var(--sf-site-gutter,40px)] py-[76px] min-[960px]:grid-cols-2 max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",children:R==="left"?r(I,{children:[e("div",{className:"flex justify-center min-[960px]:justify-start",children:C}),E]}):r(I,{children:[E,e("div",{className:"flex justify-center min-[960px]:justify-end",children:C})]})})})}export{pe as default};
@@ -1,7 +1,7 @@
1
1
  import type { WidthAnswer } from "../../format/lib/content/section-width.js";
2
2
  import { type CSSProperties, type ReactNode } from "react";
3
3
  import { type PadValues } from "../lib/content/section-padding.js";
4
- import type { SectionEdge } from "../lib/content/section-edge.js";
4
+ import { type SectionEdge } from "../lib/content/section-edge.js";
5
5
  export declare function useInsideSiteGutter(): boolean;
6
6
  export declare function InsideSiteColumn({ children }: {
7
7
  children?: ReactNode;
@@ -9,6 +9,10 @@ export declare function InsideSiteColumn({ children }: {
9
9
  export declare function SplitBandAndColumn({ children }: {
10
10
  children?: ReactNode;
11
11
  }): import("react").JSX.Element;
12
+ export declare function GroundStopsAt({ ground, children }: {
13
+ ground: string;
14
+ children?: ReactNode;
15
+ }): import("react").JSX.Element;
12
16
  export declare function useInsideBox(): boolean;
13
17
  export declare function NestedBoxChoice({ atTop, nested }: {
14
18
  atTop: ReactNode;
@@ -1 +1 @@
1
- "use client";import{jsx as t,Fragment as _}from"react/jsx-runtime";import{useTakeViewHide as z,withViewHide as D}from"./ViewHideRoot.js";import{createContext as a,useContext as o}from"react";import{rootPadAttrs as J,wrapperPadAttrs as K}from"../lib/content/section-padding.js";import{SECTION_BORDER_CLASS as M,SECTION_BORDER_SELF_CLASS as Q}from"../../format/lib/content/borders.js";import{BOX_HOLDS_NO_GUTTER_CLASS as Y}from"../../format/lib/content/page-width.js";import{drawsSiteGutter as Z}from"../../format/lib/content/site-gutter.js";const d=a(!1);function ae(){return o(d)}function de({children:e}){return t(d.Provider,{value:!0,children:e})}const g=a(!1);function fe({children:e}){return t(g.Provider,{value:!0,children:e})}const O=a(!1);function b(){return o(O)}function me({atTop:e,nested:n}){return t(_,{children:b()?n:e})}const f=a(void 0);function pe({children:e}){return t(f.Provider,{value:null,children:e})}function ee(){return o(f)===void 0&&!o(O)&&!o(d)}function he({own:e,followed:n}){return t(_,{children:ee()?e():n()})}const H=a(null);function ve({value:e,children:n}){return t(H.Provider,{value:e,children:n})}function Se({draw:e}){return t(_,{children:e(o(H))})}function xe(){return o(f)??null}function te({contained:e,framedClass:n,fillClass:k,columnClass:R,style:E,tabLabel:V,pad:i,border:c,outerAttrs:G,box:h=!1,edge:W=!1,outerStyle:m,outerClass:A,bleed:v=!1,children:w}){const U=o(d),I=o(g),p=Z(e,U),r=p&&!I,l=z(),L=!!(c&&r),u=L?A:D(A??"",l.className)||void 0,S=L||!l.className?G:{...G,...l.attrs},x=i&&!r?J(i.values,i.frame):null,C=c&&!r?c:null,N=h&&!v?Y:null,B=[r?n:k,r?N:null,x?.className,C?Q:null].filter(Boolean).join(" "),$=ne(v&&r,x||C?{...E,...x?.style,...C}:E),X=o(f),q=h&&W&&X===void 0?{gutter:p,...i?{pad:i.values}:{}}:null,T=h?t(O.Provider,{value:!0,children:t(f.Provider,{value:q,children:w})}):w,P=p?t(d.Provider,{value:!0,children:T}):T,s=i&&r?K(i.values):null,j=S&&Object.keys(S).length>0?S:null,y=t("div",{...s?null:j,className:!s&&u?B?`${B} ${u}`:u:B,style:s||!m?$:{...$,...m},"data-tab-label":V,children:I?t(g.Provider,{value:!1,children:p&&!v?t("div",{className:N?`${R} ${N}`:R,children:P}):P}):P}),F=s?t("div",{...j,className:u?`${s.className} ${u}`:s.className,style:m?{...s.style,...m}:s.style,children:y}):y;return l.scope(c&&r?t("div",{className:D(M,l.className),style:{display:"contents",...c},...l.attrs,children:F}):F)}function ne(e,n){return e?{...n,paddingLeft:0,paddingRight:0}:n}export{de as InsideSiteColumn,me as NestedBoxChoice,pe as NotASectionEdge,Se as SectionGroupChoice,ve as SectionGroupWidthsProvider,he as SectionRootChoice,fe as SplitBandAndColumn,te as default,b as useInsideBox,ae as useInsideSiteGutter,xe as useSectionEdge,ee as useSectionRoot};
1
+ "use client";import{jsx as t,Fragment as G}from"react/jsx-runtime";import{useTakeViewHide as K,withViewHide as D}from"./ViewHideRoot.js";import{createContext as u,useContext as o}from"react";import{rootPadAttrs as M,wrapperPadAttrs as Q}from"../lib/content/section-padding.js";import{SECTION_BORDER_CLASS as Y,SECTION_BORDER_SELF_CLASS as Z}from"../../format/lib/content/borders.js";import{BOX_HOLDS_NO_GUTTER_CLASS as b}from"../../format/lib/content/page-width.js";import{drawsSiteGutter as ee}from"../../format/lib/content/site-gutter.js";import{groundBeyond as te}from"../lib/content/section-edge.js";const f=u(!1);function pe(){return o(f)}function he({children:e}){return t(f.Provider,{value:!0,children:e})}const _=u(!1);function ve({children:e}){return t(_.Provider,{value:!0,children:e})}const H=u(null);function Se({ground:e,children:n}){return t(H.Provider,{value:e,children:n})}const O=u(!1);function ne(){return o(O)}function xe({atTop:e,nested:n}){return t(G,{children:ne()?n:e})}const m=u(void 0);function Ce({children:e}){return t(m.Provider,{value:null,children:e})}function oe(){return o(m)===void 0&&!o(O)&&!o(f)}function Ne({own:e,followed:n}){return t(G,{children:oe()?e():n()})}const k=u(null);function ge({value:e,children:n}){return t(k.Provider,{value:e,children:n})}function Be({draw:e}){return t(G,{children:e(o(k))})}function Pe(){return o(m)??null}function re({contained:e,framedClass:n,fillClass:V,columnClass:R,style:A,tabLabel:W,pad:s,border:c,outerAttrs:E,box:h=!1,edge:U=!1,outerStyle:p,outerClass:w,bleed:v=!1,children:y}){const X=o(f),S=o(_),a=ee(e,X),r=a&&!S,l=K(),I=!!(c&&r),d=I?w:D(w??"",l.className)||void 0,x=I||!l.className?E:{...E,...l.attrs},C=s&&!r?M(s.values,s.frame):null,N=c&&!r?c:null,g=h&&!v?b:null,B=[r?n:V,r?g:null,C?.className,N?Z:null].filter(Boolean).join(" "),L=ie(v&&r,C||N?{...A,...C?.style,...N}:A),q=o(m),z=o(H),J=h&&U&&q===void 0?{gutter:a,...s?{pad:s.values}:{},beyond:a&&S?te(z):"0px"}:null,$=h?t(O.Provider,{value:!0,children:t(m.Provider,{value:J,children:y})}):y,P=a?t(f.Provider,{value:!0,children:$}):$,i=s&&r?Q(s.values):null,T=x&&Object.keys(x).length>0?x:null,j=t("div",{...i?null:T,className:!i&&d?B?`${B} ${d}`:d:B,style:i||!p?L:{...L,...p},"data-tab-label":W,children:S?t(_.Provider,{value:!1,children:a&&!v?t("div",{className:g?`${R} ${g}`:R,children:P}):P}):P}),F=i?t("div",{...T,className:d?`${i.className} ${d}`:i.className,style:p?{...i.style,...p}:i.style,children:j}):j;return l.scope(c&&r?t("div",{className:D(Y,l.className),style:{display:"contents",...c},...l.attrs,children:F}):F)}function ie(e,n){return e?{...n,paddingLeft:0,paddingRight:0}:n}export{Se as GroundStopsAt,he as InsideSiteColumn,xe as NestedBoxChoice,Ce as NotASectionEdge,Be as SectionGroupChoice,ge as SectionGroupWidthsProvider,Ne as SectionRootChoice,ve as SplitBandAndColumn,re as default,ne as useInsideBox,pe as useInsideSiteGutter,Pe as useSectionEdge,oe as useSectionRoot};
@@ -6,6 +6,7 @@ interface TextProps {
6
6
  pad?: PadValues;
7
7
  ownWidth?: boolean;
8
8
  text: string;
9
+ labelId?: string;
9
10
  number?: string;
10
11
  align?: Align;
11
12
  alignTablet?: unknown;
@@ -21,5 +22,5 @@ interface TextProps {
21
22
  partDeclare?: boolean;
22
23
  }
23
24
  export declare function headingLevelOfStyle(id: string): HeadingLevel;
24
- export default function Text({ text, number, align, alignTablet, alignPhone, tone, contained, hero, pad, tag, textStyle, ownWidth, partAlign, onLine, partKey, partDeclare }: TextProps): import("react").JSX.Element;
25
+ export default function Text({ text, labelId, number, align, alignTablet, alignPhone, tone, contained, hero, pad, tag, textStyle, ownWidth, partAlign, onLine, partKey, partDeclare }: TextProps): import("react").JSX.Element;
25
26
  export {};
@@ -1 +1 @@
1
- import{jsx as t,jsxs as j}from"react/jsx-runtime";import v from"./BlockFrame.js";import{renderGold as h,renderHeadline as z,splitParagraphs as I}from"./goldPhrases.js";import{headingLook as L}from"./Heading.js";import{alignViewClasses as R}from"../../format/lib/content/block-align.js";import{textTagOf as A}from"../../format/lib/content/text-tag.js";import{KICKER_NUMBER_ATTR as M,kickerLead as U}from"../lib/content/page-contents.js";import{isTextStyleId as B}from"../lib/document/part-styles.js";import{faceClassOf as S}from"../../format/lib/text-style-face.js";import{useMirroredCopy as G}from"./MirrorContext.js";import{mirroredTextClasses as C}from"../../format/lib/content/mirror-cards.js";import H from"./PartStyledKind.js";const c={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 K(e,o,a){const i=R("place",e,o,a);return i?` ${i}`:""}const P={left:"text-left",center:"text-left mx-auto",right:"text-left ml-auto"},F=`max-w-[380px] ${c.bodySmall} leading-[1.5] opacity-80 ${c.bodyUpTo800}`,V={default:"text-fg",dim:"text-fg-dim"};function W(e){return String(Math.min(Number(e.slice(8)),6))}function X({text:e,number:o,align:a,alignTablet:i,alignPhone:k,tone:u,contained:g,hero:w=!1,pad:n,tag:E,textStyle:y,ownWidth:_=!1,partAlign:$,onLine:d=!1,partKey:b,partDeclare:O=!1}){const f=s=>b?t(H,{kind:b,declare:O,children:s}):s,T=G();if(w)return t("p",{className:F,children:h(e)});const p=o?t("span",{[M]:"",children:U(o)}):void 0,r=B(y)?y:void 0,N=`${r?`${S({id:r})} `:""}${_?"":"max-w-[680px] "}whitespace-pre-line ${r==="body-5"?c.label:c.bodyLarge} leading-[1.7]${m(a?P[a]:"")}${K(a,i,k)}${m(u?V[u]:"")}${m(C(T,a,$))}`,x=A(E);if(r?.startsWith("heading-")){const s=W(r),l=L(s,S({id:r}));return t(v,{contained:g,className:d?"":"py-6",pad:n?{values:n,frame:d?0:24}:void 0,children:j(x,{className:`${l.className}${m(C(T,void 0,$))}`,style:l.style,children:[p,f(z(e.trim(),!1))]})})}return t(v,{contained:g,className:d?"":"py-4",pad:n?{values:n,frame:d?0:16}:void 0,children:x==="p"?I(e).map((s,l)=>t("p",{className:N,children:f(h(s,!1,l===0?p:void 0))},l)):t(x,{className:N,children:f(h(e.trim(),!1,p))})})}export{X as default,W as headingLevelOfStyle};
1
+ import{jsx as r,jsxs as z}from"react/jsx-runtime";import v from"./BlockFrame.js";import{renderGold as h,renderHeadline as L,splitParagraphs as R}from"./goldPhrases.js";import{headingLook as A}from"./Heading.js";import{alignViewClasses as M}from"../../format/lib/content/block-align.js";import{textTagOf as U}from"../../format/lib/content/text-tag.js";import{KICKER_NUMBER_ATTR as B,kickerLead as G}from"../lib/content/page-contents.js";import{isTextStyleId as H}from"../lib/document/part-styles.js";import{faceClassOf as S}from"../../format/lib/text-style-face.js";import{useMirroredCopy as I}from"./MirrorContext.js";import{mirroredTextClasses as C}from"../../format/lib/content/mirror-cards.js";import K from"./PartStyledKind.js";const c={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 P(e,o,l){const t=M("place",e,o,l);return t?` ${t}`:""}const F={left:"text-left",center:"text-left mx-auto",right:"text-left ml-auto"},V=`max-w-[380px] ${c.bodySmall} leading-[1.5] opacity-80 ${c.bodyUpTo800}`,W={default:"text-fg",dim:"text-fg-dim"};function X(e){return String(Math.min(Number(e.slice(8)),6))}function Z({text:e,labelId:o,number:l,align:t,alignTablet:k,alignPhone:w,tone:u,contained:g,hero:E=!1,pad:n,tag:_,textStyle:y,ownWidth:O=!1,partAlign:$,onLine:d=!1,partKey:T,partDeclare:j=!1}){const f=s=>T?r(K,{kind:T,declare:j,children:s}):s,b=I();if(E)return r("p",{className:V,children:h(e)});const p=l?r("span",{[B]:"",children:G(l)}):void 0,a=H(y)?y:void 0,N=`${a?`${S({id:a})} `:""}${O?"":"max-w-[680px] "}whitespace-pre-line ${a==="body-5"?c.label:c.bodyLarge} leading-[1.7]${m(t?F[t]:"")}${P(t,k,w)}${m(u?W[u]:"")}${m(C(b,t,$))}`,x=U(_);if(a?.startsWith("heading-")){const s=X(a),i=A(s,S({id:a}));return r(v,{contained:g,className:d?"":"py-6",pad:n?{values:n,frame:d?0:24}:void 0,children:z(x,{id:o,className:`${i.className}${m(C(b,void 0,$))}`,style:i.style,children:[p,f(L(e.trim(),!1))]})})}return r(v,{contained:g,className:d?"":"py-4",pad:n?{values:n,frame:d?0:16}:void 0,children:x==="p"?R(e).map((s,i)=>r("p",{id:i===0?o:void 0,className:N,children:f(h(s,!1,i===0?p:void 0))},i)):r(x,{id:o,className:N,children:f(h(e.trim(),!1,p))})})}export{Z as default,X as headingLevelOfStyle};
@@ -3,8 +3,15 @@ import { type PadValues } from "./section-padding.js";
3
3
  export type SectionEdge = {
4
4
  gutter: boolean;
5
5
  pad?: PadValues;
6
+ beyond?: string;
6
7
  };
7
8
  export declare function sectionEdgeAttrs(edge: SectionEdge): {
8
9
  className: string;
9
10
  style?: CSSProperties;
10
11
  };
12
+ export declare const EDGE_BEYOND_VAR = "--sf-edge-beyond";
13
+ export declare function groundBeyond(ground: string | null): string;
14
+ export declare function sectionEdgeBeyondAttrs(edge: SectionEdge): {
15
+ className: string;
16
+ style: CSSProperties;
17
+ } | null;
@@ -1 +1 @@
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};
1
+ import{isLengthUnit as v}from"efficient-easel/screen/lib/content/length-units";import{FULL_SECTION_WIDTH as g,SITE_WIDTH_CAP as c}from"../../../format/lib/content/page-width.js";import{sideViewLengths as _}from"./section-padding.js";import{finiteNumber as f}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))))]",x="[--sf-edge-g:0px] [--sf-edge-al:var(--sf-edge-l)] [--sf-edge-ar:var(--sf-edge-r)]",m="[--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)))]",u="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 E(s){const t={},e=s.pad??{};for(const[d,n,o,l]of[["l",e.left,e.leftTablet,e.leftPhone],["r",e.right,e.rightTablet,e.rightPhone]]){const a=f(n),i={desktop:e.unit,tablet:e.unitTablet,phone:e.unitPhone};a!==void 0&&(t[`--sf-edge-${d}d`]=`${a}${v(e.unit)?e.unit:"px"}`);const r=_(a,f(o),f(l),i);r.tablet!==void 0&&(t[`--sf-edge-${d}t`]=r.tablet),r.phone!==void 0&&(t[`--sf-edge-${d}p`]=r.phone)}return{className:`${s.gutter?p:x} ${m} ${u}`,...Object.keys(t).length?{style:t}:{}}}const b="--sf-edge-beyond";function T(s){return`max(0px,calc((${s===null?g:`min(${g},${s})`} - ${c}) / 2))`}function N(s){const t=s.beyond;return t===void 0||t==="0px"?null:{className:"mx-[calc(-1_*_var(--sf-edge-beyond))] px-[var(--sf-edge-beyond)]",style:{[b]:t}}}export{b as EDGE_BEYOND_VAR,T as groundBeyond,E as sectionEdgeAttrs,N as sectionEdgeBeyondAttrs};
@@ -1 +1 @@
1
- import{jsx as i}from"react/jsx-runtime";import{HideTaker as y}from"../../../../../components/ViewHideRoot.js";import{CardTemplateRows as T,useCardRow as h}from"../../../../../components/CardRowContext.js";import{BOX_ITEMS_ATTR as p}from"../../../../../../format/lib/content/box-layout.js";import{cardItemAction as S}from"../../../../../../format/lib/content/card-state.js";import{CARD_LIST_ROWS as _,CARD_LIST_TYPE as L,cardListShows as R,cardRow as g}from"../../../../../../format/lib/content/card-template.js";import{CardListMeta as x}from"../../../../../../format/lib/document/blocks/general/CardList/meta.js";function A(e){const o=e&&typeof e=="object"?e.state:void 0;return o&&typeof o=="object"?o:void 0}const C="[&>*]:flex [&>*]:flex-col [&>*>:only-child]:grow [&>*>:only-child]:flex [&>*>:only-child]:flex-col [&>*>*>:only-child]:grow [&>*>*>:only-child]:flex [&>*>*>:only-child]:flex-col [&>*>*>*>:only-child]:grow",I=[{}];function E({id:e,own:o,Template:f,editing:d,dragRef:m}){const t=h(),l=t?R(o,t.ownerType):"",s=t?l&&t.item&&typeof t.item=="object"?t.item[l]:void 0:o[_],r=Array.isArray(s)?s:[],n=r.length?r:d?I:r;if(!n.length)return null;const u=n.map(g),c=n.map(A),a=d?[]:n.map(S);return i(T,{ownerId:e,ownerType:L,Template:f,rows:u,items:n,states:c.some(Boolean)?c:void 0,actions:a.some(Boolean)?a:void 0,fallback:null,children:w=>i(y,{ref:m,className:t?"contents":`contents ${C}`,[p]:"",children:w})})}const P={...x,render:e=>i(E,{id:String(e.id??""),own:e,Template:e.template,editing:e.editor?.isEditing===!0,dragRef:e.editor?.dragRef??void 0})};export{P as CardListRender};
1
+ import{jsx as u}from"react/jsx-runtime";import{HideTaker as h}from"../../../../../components/ViewHideRoot.js";import{CardTemplateRows as R,useCardRow as T}from"../../../../../components/CardRowContext.js";import{BOX_ITEMS_ATTR as S}from"../../../../../../format/lib/content/box-layout.js";import{cardItemAction as _,highlightOf as g,keyedRows as k,markedRows as A,rowHoldsContent as C}from"../../../../../../format/lib/content/card-state.js";import{CARD_LIST_ROWS as L,CARD_LIST_TYPE as x,cardListShows as I,cardRow as w}from"../../../../../../format/lib/content/card-template.js";import{declaredBlockSource as j,sourceChoices as E,sourcedRows as b}from"../../../../../../format/lib/content/block-sources.js";import{CardListMeta as B}from"../../../../../../format/lib/document/blocks/general/CardList/meta.js";function y(t){const s=t&&typeof t=="object"?t.state:void 0;return s&&typeof s=="object"?s:void 0}const M="[&>*]:flex [&>*]:flex-col [&>*>:only-child]:grow [&>*>:only-child]:flex [&>*>:only-child]:flex-col [&>*>*>:only-child]:grow [&>*>*>:only-child]:flex [&>*>*>:only-child]:flex-col [&>*>*>*>:only-child]:grow",p=[{}];function O(t,s){const d=j(t);let n,m=[];if(d){const e=b(t,s);n=[...e.rows],e.sample&&(m=E(d))}else{const e=t[L];n=Array.isArray(e)?e:[]}const l=k(n.map(w),m),r=n.map((e,i)=>({item:e,row:l[i]})).filter(({item:e})=>s||C(e)),a=A(r.map(e=>e.row),g(t));return{items:r.map(e=>e.item),rows:a.rows,states:r.map(({item:e},i)=>{const o={...y(e),...a.states[i]};return Object.keys(o).length?o:void 0})}}function D({id:t,own:s,Template:d,editing:n,dragRef:m}){const l=T();let r,a,e;if(l){const o=I(s,l.ownerType),c=o&&l.item&&typeof l.item=="object"?l.item[o]:void 0,f=Array.isArray(c)?c:[];r=f.length?f:n?p:f,a=r.map(w),e=r.map(y)}else{const o=O(s,n),c=!o.items.length&&n;r=c?p:o.items,a=c?p.map(w):o.rows,e=c?[]:o.states}if(!r.length)return null;const i=n?[]:r.map(_);return u(R,{ownerId:t,ownerType:x,Template:d,rows:a,items:r,states:e.some(Boolean)?e:void 0,actions:i.some(Boolean)?i:void 0,fallback:null,children:o=>u(h,{ref:m,className:l?"contents":`contents ${M}`,[S]:"",children:o})})}const $={...B,render:t=>u(D,{id:String(t.id??""),own:t,Template:t.template,editing:t.editor?.isEditing===!0,dragRef:t.editor?.dragRef??void 0})};export{$ as CardListRender};
@@ -1 +1 @@
1
- import{jsx as m,Fragment as b}from"react/jsx-runtime";import{SECTION_GRID_COLUMN_CLASS as I}from"../../../../../../format/lib/content/section-min-height.js";import T,{cardGridCornerClasses as x}from"../../../../../components/Cards.js";import{CardTemplateRows as H}from"../../../../../components/CardRowContext.js";import{cardKeyOf as F,cardRow as L}from"../../../../../../format/lib/content/card-template.js";import D from"../../../../../components/KeyFeatures.js";import{hidableText as K}from"efficient-easel/draw";import{declaredBlockSource as u,sourceChoices as O,sourcedRows as C}from"../../../../../../format/lib/content/block-sources.js";import{KEY_FEATURES_PH as w,keyFeaturesScaffoldItems as B}from"../../../../../../format/lib/document/blocks/general/KeyFeatures/meta.js";import{parseSectionHeadPlacement as G}from"../../../../../../format/lib/sections/section-head-placement.js";import{parseSectionEyebrowLook as S}from"../../../../../../format/lib/sections/section-eyebrow-look.js";import{phRows as k,phHide as g}from"../../scaffold.js";import{say as h}from"../../../../../../format/lib/editor-words.js";import{SERVED_CARD_FIELDS as f}from"../../../../../../format/lib/document/blocks/general/Cards/card-seed.js";import{CardsMeta as N,CARDS_PH as E}from"../../../../../../format/lib/document/blocks/general/Cards/meta.js";const _=()=>[{title:h("Card title one"),body:h("A short line about this card.")},{title:h("Card title two"),body:h("A short line about this card.")},{title:h("Card title three"),body:h("A short line about this card.")}],R=()=>_().map(e=>({[f.title]:e.title??"",[f.body]:e.body??""}));function P(e){return u(e)?C(e,e.editor?.isEditing===!0,R()).rows.filter(i=>i[f.title]||i[f.body]).map(i=>({title:i[f.title]??"",body:i[f.body]??""})):null}const j=e=>typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",A=e=>Object.entries(e).some(([i,o])=>i!=="key"&&i!=="badge"&&typeof o=="string"&&o.trim()!=="");function v(e){const i=e.editor?.isEditing===!0,o=u(e),d=j(e),n=typeof e.highlightBadge=="string"?e.highlightBadge:"",s=(t,r=[])=>t.map((a,c)=>({...a,key:a.key||r[c]?.key||F(a,c)})),l=t=>{const r=d?t.findIndex(a=>a.key===d):-1;return{rows:t.map((a,c)=>({...a,badge:c===r?n:""})),states:t.map((a,c)=>c===r?$:M)}};if(o){const t=C(e,i,R());return l(s(t.rows,t.sample?O(o):[]).filter(A))}const y=k(e.items,_(),e.editor).map(L);return l(s(y).filter(t=>i||A(t)))}const $={highlighted:!0},M={};function U(e,i,o){const d=o?`relative grid ${I} bg-bg`:"relative bg-bg";return m("div",{className:i?`${d} ${i}`:d,children:e})}const de={...N,render:e=>{const i=G(e.headPlacement)==="own-box",o=t=>i?void 0:t,d=(e.template?.blockCount??0)>0,n=P(e);if((!d||e.cardStyle==="label-only")&&n&&!n.length)return m(b,{});if(e.cardStyle==="label-only"){const t=n?n.map(r=>({label:r.title??"",href:void 0})):Array.isArray(e.items)?e.items.map(r=>({label:K(r.title)??"",href:typeof r.href=="string"?r.href:void 0})):[];return m(D,{look:S(e.eyebrowLook,"KeyFeatures"),eyebrow:o(g(e.eyebrow,w.eyebrow,e.editor)),title:o(g(e.title,w.title,e.editor)),items:n?t:k(t,B(),e.editor),columns:e.columns,editing:e.editor?.isEditing})}const s=t=>m(T,{look:S(e.eyebrowLook,"Cards"),eyebrow:o(g(e.eyebrow,E.eyebrow,e.editor)),title:o(g(e.title,E.title,e.editor)),omitHead:i,editing:e.editor?.isEditing,cards:t}),{rows:l,states:y}=d?v(e):{rows:[],states:[]};return d&&n&&!l.length?m(b,{}):m(H,{ownerId:String(e.id??""),ownerType:"Cards",Template:e.template,rows:l,states:y,fallback:s(),wrapCopy:(t,r)=>U(t,x(r.index,l.length,e.columns),r.state?.highlighted===!0),children:t=>l.length?s(t):s()})}};export{de as CardsRender};
1
+ import{jsx as a,Fragment as u}from"react/jsx-runtime";import{SECTION_GRID_COLUMN_CLASS as x}from"../../../../../../format/lib/content/section-min-height.js";import F,{cardGridCornerClasses as H}from"../../../../../components/Cards.js";import{CardTemplateRows as I}from"../../../../../components/CardRowContext.js";import{cardRow as L}from"../../../../../../format/lib/content/card-template.js";import{highlightOf as T,keyedRows as b,markedRows as h,rowHoldsContent as y}from"../../../../../../format/lib/content/card-state.js";import D from"../../../../../components/KeyFeatures.js";import{hidableText as v}from"efficient-easel/draw";import{declaredBlockSource as g,sourceChoices as P,sourcedRows as w}from"../../../../../../format/lib/content/block-sources.js";import{KEY_FEATURES_PH as C,keyFeaturesScaffoldItems as K}from"../../../../../../format/lib/document/blocks/general/KeyFeatures/meta.js";import{parseSectionHeadPlacement as N}from"../../../../../../format/lib/sections/section-head-placement.js";import{parseSectionEyebrowLook as S}from"../../../../../../format/lib/sections/section-eyebrow-look.js";import{phRows as R,phHide as f}from"../../scaffold.js";import{say as m}from"../../../../../../format/lib/editor-words.js";import{SERVED_CARD_FIELDS as s}from"../../../../../../format/lib/document/blocks/general/Cards/card-seed.js";import{CardsMeta as O,CARDS_PH as E}from"../../../../../../format/lib/document/blocks/general/Cards/meta.js";const k=()=>[{title:m("Card title one"),body:m("A short line about this card.")},{title:m("Card title two"),body:m("A short line about this card.")},{title:m("Card title three"),body:m("A short line about this card.")}],_=()=>k().map(e=>({[s.title]:e.title??"",[s.body]:e.body??""}));function $(e){return g(e)?w(e,e.editor?.isEditing===!0,_()).rows.filter(t=>t[s.title]||t[s.body]).map(t=>({title:t[s.title]??"",body:t[s.body]??""})):null}function j(e){const t=e.editor?.isEditing===!0,o=g(e),i=T(e);if(o){const l=w(e,t,_());return h(b(l.rows,l.sample?P(o):[]).filter(y),i)}const d=R(e.items,k(),e.editor).map(L);return h(b(d).filter(l=>t||y(l)),i)}function B(e,t,o){const i=o?`relative grid ${x} bg-bg`:"relative bg-bg";return a("div",{className:t?`${i} ${t}`:i,children:e})}const oe={...O,render:e=>{const t=N(e.headPlacement)==="own-box",o=r=>t?void 0:r,i=(e.template?.blockCount??0)>0,d=$(e);if((!i||e.cardStyle==="label-only")&&d&&!d.length)return a(u,{});if(e.cardStyle==="label-only"){const r=d?d.map(n=>({label:n.title??"",href:void 0})):Array.isArray(e.items)?e.items.map(n=>({label:v(n.title)??"",href:typeof n.href=="string"?n.href:void 0})):[];return a(D,{look:S(e.eyebrowLook,"KeyFeatures"),eyebrow:o(f(e.eyebrow,C.eyebrow,e.editor)),title:o(f(e.title,C.title,e.editor)),items:d?r:R(r,K(),e.editor),columns:e.columns,editing:e.editor?.isEditing})}const l=r=>a(F,{look:S(e.eyebrowLook,"Cards"),eyebrow:o(f(e.eyebrow,E.eyebrow,e.editor)),title:o(f(e.title,E.title,e.editor)),columns:e.columns,omitHead:t,editing:e.editor?.isEditing,cards:r}),{rows:c,states:A}=i?j(e):{rows:[],states:[]};return i&&d&&!c.length?a(u,{}):a(I,{ownerId:String(e.id??""),ownerType:"Cards",Template:e.template,rows:c,states:A,fallback:l(),wrapCopy:(r,n)=>B(r,H(n.index,c.length,e.columns),n.state?.highlighted===!0),children:r=>c.length?l(r):l()})}};export{oe as CardsRender};
@@ -1 +1 @@
1
- import{jsx as n}from"react/jsx-runtime";import b from"../../../../../components/ChartSection.js";import{phRows as c,phHide as o,hidableRow as t}from"../../scaffold.js";import{say as r}from"../../../../../../format/lib/editor-words.js";import{ChartMeta as u,CHART_PH as a}from"../../../../../../format/lib/document/blocks/general/Chart/meta.js";const d=()=>[{label:r("Before"),value:"9"},{label:r("After"),value:"3"},{label:r("With us"),value:"1"}],R={...u,render:({eyebrow:i,title:l,body:m,items:f,caption:s,chartStyle:h,valueSuffix:p,editor:e})=>n(b,{eyebrow:o(i,a.eyebrow,e),title:o(l,a.title,e),body:t(m),items:c(f,d(),e),chartStyle:h,valueSuffix:t(p),caption:t(s),editing:e?.isEditing})};export{R as ChartRender};
1
+ import{jsx as u}from"react/jsx-runtime";import w from"../../../../../components/ChartSection.js";import{phRows as x,phHide as i,hidableRow as o}from"../../scaffold.js";import{say as r}from"../../../../../../format/lib/editor-words.js";import{parseSectionHeadPlacement as y}from"../../../../../../format/lib/sections/section-head-placement.js";import{ChartMeta as H,CHART_PH as n}from"../../../../../../format/lib/document/blocks/general/Chart/meta.js";const S=()=>[{label:r("Before"),value:"9"},{label:r("After"),value:"3"},{label:r("With us"),value:"1"}],B={...H,render:({eyebrow:l,title:m,body:s,items:f,caption:c,chartStyle:p,valueSuffix:d,headPlacement:h,editor:e})=>{const a=y(h)==="own-box",t=b=>a?void 0:b;return u(w,{eyebrow:t(i(l,n.eyebrow,e)),title:t(i(m,n.title,e)),body:t(o(s)),items:x(f,S(),e),chartStyle:p,valueSuffix:o(d),caption:t(o(c)),editing:e?.isEditing,omitHead:a})}};export{B as ChartRender};
@@ -1 +1 @@
1
- import{jsx as i}from"react/jsx-runtime";import d from"../../../../../components/Countdown.js";import{CountdownMeta as s}from"../../../../../../format/lib/document/blocks/general/Countdown/meta.js";const x={...s,render:({title:o,zeroText:t,endsAt:n,showUnits:e,editor:r})=>i(d,{title:o,zeroText:t,endsAt:n,showUnits:e,editing:r?.isEditing})};export{x as CountdownRender};
1
+ import{jsx as m}from"react/jsx-runtime";import s from"../../../../../components/Countdown.js";import{parseSectionHeadPlacement as a}from"../../../../../../format/lib/sections/section-head-placement.js";import{CountdownMeta as p}from"../../../../../../format/lib/document/blocks/general/Countdown/meta.js";const c={...p,render:({title:t,zeroText:n,endsAt:e,showUnits:r,headPlacement:i,editor:d})=>{const o=a(i)==="own-box";return m(s,{title:o?void 0:t,zeroText:n,endsAt:e,showUnits:r,editing:d?.isEditing,omitHead:o})}};export{c as CountdownRender};
@@ -1 +1 @@
1
- import{jsx as b}from"react/jsx-runtime";import u from"../../../../../components/FeaturedCover.js";import{hidableText as k}from"efficient-easel/draw";import{phHide as a}from"../../scaffold.js";import{FeaturedCoverMeta as C,FEATUREDCOVER_PH as t}from"../../../../../../format/lib/document/blocks/general/FeaturedCover/meta.js";const E={...C,render:({source:d,image:o,badge:g,imageDate:c,category:i,readLabel:l,date:s,title:f,dek:n,ctaText:p,ctaHref:x,editor:e})=>{const r=d,m=!!r?.slug;return b(u,{image:m?r.image:o,badge:a(g,t.badge,e),imageDate:m?r.date:a(c,t.imageDate,e),category:a(i,t.category,e),readLabel:a(l,t.readLabel,e),date:m?r.date:a(s,t.date,e),title:m?r.title:a(f,t.title,e),dek:m?r.dek:a(n,t.dek,e),ctaText:a(p,t.ctaText,e),ctaHref:m?r.href:k(x)})}};export{E as FeaturedCoverRender};
1
+ import{jsx as u}from"react/jsx-runtime";import H from"../../../../../components/FeaturedCover.js";import{hidableText as k}from"efficient-easel/draw";import{phHide as a}from"../../scaffold.js";import{parseSectionHeadPlacement as C}from"../../../../../../format/lib/sections/section-head-placement.js";import{FeaturedCoverMeta as F,FEATUREDCOVER_PH as t}from"../../../../../../format/lib/document/blocks/general/FeaturedCover/meta.js";const j={...F,render:({source:o,image:d,badge:i,imageDate:c,category:n,readLabel:g,date:l,title:p,dek:s,ctaText:f,ctaHref:x,headPlacement:b,editor:e})=>{const r=o,m=!!r?.slug;return u(H,{image:m?r.image:d,badge:a(i,t.badge,e),imageDate:m?r.date:a(c,t.imageDate,e),category:a(n,t.category,e),readLabel:a(g,t.readLabel,e),date:m?r.date:a(l,t.date,e),title:m?r.title:a(p,t.title,e),dek:m?r.dek:a(s,t.dek,e),ctaText:a(f,t.ctaText,e),ctaHref:m?r.href:k(x),omitHead:C(b)==="own-box"})}};export{j as FeaturedCoverRender};
@@ -1 +1 @@
1
- import{jsx as m,Fragment as k}from"react/jsx-runtime";import y from"../../../../../components/Logos.js";import{CardTemplateRows as L}from"../../../../../components/CardRowContext.js";import{declaredBlockSource as c,sourcedRows as H}from"../../../../../../format/lib/content/block-sources.js";import{phRows as P,phHide as R}from"../../scaffold.js";import{parseLogoLook as x}from"../../../../../../format/lib/sections/logo-look.js";import{isPaymentMethodSource as M,paymentMarkRows as T}from"../../../../sections/payment-rows.js";import{parseSectionHeadPlacement as _}from"../../../../../../format/lib/sections/section-head-placement.js";import{LOGOS_PH as j,LogosMeta as A,logosScaffoldItems as g}from"../../../../../../format/lib/document/blocks/general/Logos/meta.js";const B=()=>g().map(o=>({label:o.alt}));function C(o,e){const t=H(o,e,B()).rows.filter(n=>n.label);return M(c(o))?T(t):t}const K={...A,render:o=>{const{items:e,contained:t,heading:n,columns:f,logoHeight:u,bandPadding:w,grayscale:p,logos:h,look:S,headPlacement:b,editor:a}=o,r=_(b)==="own-box",i=l=>m(y,{items:r?Array.isArray(e)?e:[]:P(e,g(),a),contained:t,heading:r?void 0:R(n,j.heading,a),columns:f,logoHeight:u,bandPadding:w,grayscale:p,logos:r?h:void 0,look:x(S),omitHead:r,cards:l});if(c(o)==="")return i();const s=a?.isEditing===!0,d=(o.template?.blockCount??0)>0?C(o,s):[];return!s&&!d.length?m(k,{}):m(L,{ownerId:String(o.id??""),ownerType:"Logos",Template:o.template,rows:d,fallback:i([]),children:l=>i(l)})}};export{K as LogosRender};
1
+ import{jsx as i,Fragment as k}from"react/jsx-runtime";import B from"../../../../../components/Logos.js";import{CardTemplateRows as H}from"../../../../../components/CardRowContext.js";import{declaredBlockSource as _}from"../../../../../../format/lib/content/block-sources.js";import{phRows as x,phHide as R}from"../../scaffold.js";import{parseLogoLook as S}from"../../../../../../format/lib/sections/logo-look.js";import{parseSectionHeadPlacement as T}from"../../../../../../format/lib/sections/section-head-placement.js";import{LOGOS_PH as A,LogosMeta as E,logosScaffoldItems as O}from"../../../../../../format/lib/document/blocks/general/Logos/meta.js";import{wallRows as j}from"./wall-rows.js";import{WALL_LABELLED_BY_PROP as C}from"../../../wall-labels.js";const K={...E,render:o=>{const{items:t,contained:g,heading:s,columns:c,logoHeight:f,bandPadding:h,grayscale:L,logos:p,look:u,headPlacement:w,editor:n,align:b,alignTablet:P,alignPhone:y}=o,l=o[C],e=T(w)==="own-box",a=r=>i(B,{items:e?Array.isArray(t)?t:[]:x(t,O(),n),contained:g,heading:e?void 0:R(s,A.heading,n),columns:c,logoHeight:f,bandPadding:h,grayscale:L,logos:e?p:void 0,look:S(u),omitHead:e,cards:r,align:b,alignTablet:P,alignPhone:y,labelledBy:typeof l=="string"?l:void 0});if(_(o)==="")return a();const d=n?.isEditing===!0,m=(o.template?.blockCount??0)>0?j(o,d):[];return!d&&!m.length?i(k,{}):i(H,{ownerId:String(o.id??""),ownerType:"Logos",Template:o.template,rows:m,fallback:a([]),children:r=>a(r)})}};export{K as LogosRender};
@@ -0,0 +1,2 @@
1
+ import { type SourceRow } from "../../../../../../format/lib/content/block-sources.js";
2
+ export declare function wallRows(props: Record<string, unknown>, editing: boolean): SourceRow[];
@@ -0,0 +1 @@
1
+ import{declaredBlockSource as t,sourcedRows as a}from"../../../../../../format/lib/content/block-sources.js";import{isPaymentMethodSource as m,paymentMarkRows as s}from"../../../../sections/payment-rows.js";import{logosScaffoldItems as c}from"../../../../../../format/lib/document/blocks/general/Logos/meta.js";const f=()=>c().map(o=>({label:o.alt}));function u(o,r){const e=a(o,r,f()).rows.filter(l=>l.label);return m(t(o))?s(e):e}export{u as wallRows};
@@ -1,2 +1,2 @@
1
- import{jsx as I}from"react/jsx-runtime";import L from"../../../../../components/MockupSection.js";import{phHide as t,hidableRow as o}from"../../scaffold.js";import{MockupMeta as _}from"../../../../../../format/lib/document/blocks/general/Mockup/meta.js";const F={..._,render:({eyebrow:r,title:i,body:l,variant:c,cardHeader:a,badge:d,cardTitle:n,cardSubtitle:s,pills:p,tiles:m,rows:u,button:b,footnote:T,col1Title:f,col1Cards:h,col2Title:g,col2Cards:x,col3Title:C,col3Cards:M,col4Title:k,col4Cards:w,barsHeading:H,bars:S,termLines:j,urlText:y,heroTitle:R,heroButton:v,products:B,align:E,editor:e})=>I(L,{eyebrow:t(r,"In the product",e),title:t(i,`Seen from
2
- *the counter.*`,e),body:o(l),variant:c,cardHeader:o(a),badge:o(d),cardTitle:o(n),cardSubtitle:o(s),pills:p,tiles:m,rows:u,button:o(b),footnote:o(T),col1Title:o(f),col1Cards:h,col2Title:o(g),col2Cards:x,col3Title:o(C),col3Cards:M,col4Title:o(k),col4Cards:w,barsHeading:o(H),bars:S,termLines:j,urlText:o(y),heroTitle:o(R),heroButton:o(v),products:B,align:E,editing:e?.isEditing})};export{F as MockupRender};
1
+ import{jsx as q}from"react/jsx-runtime";import z from"../../../../../components/MockupSection.js";import{phHide as i,hidableRow as o}from"../../scaffold.js";import{parseSectionHeadPlacement as A}from"../../../../../../format/lib/sections/section-head-placement.js";import{MockupMeta as D}from"../../../../../../format/lib/document/blocks/general/Mockup/meta.js";const O={...D,render:({eyebrow:n,title:c,body:l,variant:a,cardHeader:d,badge:s,cardTitle:m,cardSubtitle:p,pills:u,tiles:b,rows:f,button:T,footnote:h,col1Title:w,col1Cards:x,col2Title:g,col2Cards:H,col3Title:C,col3Cards:M,col4Title:S,col4Cards:k,barsHeading:j,bars:y,termLines:B,urlText:R,heroTitle:v,heroButton:E,products:I,align:L,headPlacement:P,editor:e})=>{const r=A(P)==="own-box",t=_=>r?void 0:_;return q(z,{eyebrow:t(i(n,"In the product",e)),title:t(i(c,`Seen from
2
+ *the counter.*`,e)),body:t(o(l)),variant:a,cardHeader:o(d),badge:o(s),cardTitle:o(m),cardSubtitle:o(p),pills:u,tiles:b,rows:f,button:o(T),footnote:o(h),col1Title:o(w),col1Cards:x,col2Title:o(g),col2Cards:H,col3Title:o(C),col3Cards:M,col4Title:o(S),col4Cards:k,barsHeading:o(j),bars:y,termLines:B,urlText:o(R),heroTitle:o(v),heroButton:o(E),products:I,align:L,editing:e?.isEditing,omitHead:r})}};export{O as MockupRender};
@@ -1 +1 @@
1
- import{Fragment as c,jsx as r}from"react/jsx-runtime";import{CardRowDrawn as y}from"../../../../../components/CardRowContext.js";import{CountDrawn as T}from"../../../../../components/CountRowsContext.js";import{KickerNumberDrawn as O}from"../../../../../components/PageContentsContext.js";import{KICKER_NUMBER_PROP as k}from"../../../../content/page-contents.js";import{namedRowField as A,rowPartByKey as D}from"../../../../../../format/lib/content/card-template.js";import{TOP_LINE_ATTRIBUTE as F,TOP_LINE_CLASS as L,cardPlaceOf as B,framesItsCards as W}from"../../../../../../format/lib/content/card-place.js";import{blockSetsItsWidth as j,blockSizeValuesOf as v}from"../../../../content/block-size.js";import{linkedCount as w}from"../../../../../../format/lib/content/count-numbers.js";import{padValuesOf as H}from"../../../../content/section-padding.js";import M from"../../../../../components/Text.js";import{hidableText as d,readHidable as U}from"efficient-easel/draw";import{PH as b}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phPrev as V}from"../../scaffold.js";import{readPartStyle as z}from"../../../part-styles.js";import{TextMeta as q}from"../../../../../../format/lib/document/blocks/general/Text/meta.js";const ct={...q,render:t=>{const{text:a,align:P,alignTablet:p,alignPhone:K,tone:_,tag:C,contained:E,editor:m}=t;if(U(a).hidden)return r(c,{});const{textStyle:f,align:R}=z(t,"text"),S=f?.startsWith("heading-")?b.heading:b.body,I=D("Text",t,"text")?{partKey:"text",partDeclare:!!m?.isEditing}:{},o=(e,n,i)=>r(M,{...I,text:V(e,S,m)??"",number:n,align:P,alignTablet:p,alignPhone:K,tone:_,tag:C,textStyle:f,partAlign:R,ownWidth:j(v(t)),contained:E,pad:H(t),onLine:i}),s=e=>!e?.trim()&&!m?.isEditing,u=A(t),g=w(t);if(g)return r(T,{countKey:g,children:e=>o(e??d(a))});const h=()=>{if(!u){const e=t[k];return typeof e=="string"?o(d(a),e):r(O,{id:t.id,children:n=>o(d(a),n)})}return r(y,{type:"Text",props:t,children:(e,n,i)=>{const l=d(e.text),x=w(t,i);return x?r(T,{countKey:x,children:N=>o(N??l)}):i&&s(l)?r(c,{}):o(l)}})};return B(t)!=="top-line"?h():r(y,{type:"Text",props:t,children:(e,n)=>{if(!n||!W(n.ownerType))return h();const i=d(u?e.text:a);return s(i)?r(c,{}):r("div",{className:L,[F]:"",children:o(i,void 0,!0)})}})}};export{ct as TextRender};
1
+ import{Fragment as c,jsx as r}from"react/jsx-runtime";import{CardRowDrawn as T}from"../../../../../components/CardRowContext.js";import{CountDrawn as b}from"../../../../../components/CountRowsContext.js";import{KickerNumberDrawn as N}from"../../../../../components/PageContentsContext.js";import{KICKER_NUMBER_PROP as k}from"../../../../content/page-contents.js";import{WALL_LABEL_ID_PROP as D}from"../../../wall-labels.js";import{namedRowField as B,rowPartByKey as F}from"../../../../../../format/lib/content/card-template.js";import{TOP_LINE_ATTRIBUTE as W,TOP_LINE_CLASS as j,cardPlaceOf as v,framesItsCards as H}from"../../../../../../format/lib/content/card-place.js";import{blockSetsItsWidth as M,blockSizeValuesOf as U}from"../../../../content/block-size.js";import{linkedCount as w}from"../../../../../../format/lib/content/count-numbers.js";import{padValuesOf as V}from"../../../../content/section-padding.js";import z from"../../../../../components/Text.js";import{hidableText as d,readHidable as q}from"efficient-easel/draw";import{PH as P}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phPrev as G}from"../../scaffold.js";import{readPartStyle as J}from"../../../part-styles.js";import{TextMeta as Q}from"../../../../../../format/lib/document/blocks/general/Text/meta.js";const gt={...Q,render:t=>{const{text:a,align:_,alignTablet:p,alignPhone:I,tone:K,tag:L,contained:E,editor:m}=t;if(q(a).hidden)return r(c,{});const{textStyle:f,align:R}=J(t,"text"),C=f?.startsWith("heading-")?P.heading:P.body,O=F("Text",t,"text")?{partKey:"text",partDeclare:!!m?.isEditing}:{},s=t[D],S=typeof s=="string"?s:void 0,o=(e,n,i)=>r(z,{...O,labelId:S,text:G(e,C,m)??"",number:n,align:_,alignTablet:p,alignPhone:I,tone:K,tag:L,textStyle:f,partAlign:R,ownWidth:M(U(t)),contained:E,pad:V(t),onLine:i}),u=e=>!e?.trim()&&!m?.isEditing,g=B(t),h=w(t);if(h)return r(b,{countKey:h,children:e=>o(e??d(a))});const x=()=>{if(!g){const e=t[k];return typeof e=="string"?o(d(a),e):r(N,{id:t.id,children:n=>o(d(a),n)})}return r(T,{type:"Text",props:t,children:(e,n,i)=>{const l=d(e.text),y=w(t,i);return y?r(b,{countKey:y,children:A=>o(A??l)}):i&&u(l)?r(c,{}):o(l)}})};return v(t)!=="top-line"?x():r(T,{type:"Text",props:t,children:(e,n)=>{if(!n||!H(n.ownerType))return x();const i=d(g?e.text:a);return u(i)?r(c,{}):r("div",{className:j,[W]:"",children:o(i,void 0,!0)})}})}};export{gt as TextRender};
@@ -7,6 +7,7 @@ export declare const NUMBER_TEXT: Props;
7
7
  export declare const BUTTON: Props;
8
8
  export declare const SH_LINK: Props;
9
9
  export declare const SECTION_BOX: Props;
10
+ export declare const FOLLOW_THE_BOX: Props;
10
11
  export declare const SAME_KEYS: readonly BoxEntry[];
11
12
  export declare const DROP_COMMON: Readonly<Record<string, string>>;
12
13
  export declare const DROP_SIDE_PADDING: Readonly<Record<string, string>>;
@@ -33,7 +34,8 @@ export declare const leadText: (lead: string, rest: string, props: Props) => Par
33
34
  export declare const leadLine: (lead: string, rest: string, run: Props, own?: Props) => PartRow;
34
35
  export declare const bandPage: (stored: unknown, ctx: ConvertContext) => number;
35
36
  export declare const sectionPage: (p: Props, ctx: ConvertContext) => import("../../../../../format/lib/theme.js").ThemeColors | undefined;
36
- export declare const fillFrom: (colour: "surface" | "background") => (p: Props, ctx: ConvertContext) => Props;
37
+ export declare const fillFrom: (colour: "surface" | "background", overBand?: (p: Props, ctx: ConvertContext) => boolean) => (p: Props, ctx: ConvertContext) => Props;
38
+ export declare const onBandPreset: (p: Props, ctx: ConvertContext) => boolean;
37
39
  export declare const ownFill: (painted: string | undefined, p: Props, ctx: ConvertContext) => Props;
38
40
  export declare const fillNoBoxHolds: (painted: string | undefined) => string | undefined;
39
41
  export declare const bandIndex: (p: Props, ctx: ConvertContext) => number;
@@ -1 +1 @@
1
- import{SECTION_WIDTH_KEYS as W}from"../../../../../format/lib/content/section-width.js";import{phoneKey as v}from"efficient-easel/draw";import{BOX as L,INNER_BOX as M,LABEL_FACE as U,TEXT as I}from"../../../../../format/lib/document/seed-parts.js";import{ENTRANCE_KEYS as w}from"../../../animation/entrance.js";import{CARD_HOVER_KEYS as b}from"../../../../../format/lib/animation/hover.js";import{COUNT_KEY_PROP as y}from"../../../../../format/lib/content/block-sources.js";import{normalizeSiteGutter as F}from"../../../../../format/lib/content/page-width.js";import{resolveSectionPadding as K}from"../../../content/section-padding.js";import{ButtonBlockMeta as X}from"../../../../../format/lib/document/blocks/general/ButtonBlock/meta.js";import{SECTION_PAD_INNER_DEFAULTS as G}from"../../passes/section-padding.js";import{finiteNumber as p}from"../../../../../format/lib/finite-number.js";import{convertTheme as f,hasWords as Y}from"../../../sections/section-to-box.js";import{THEME_SECTION_BG as V}from"../../../../../format/lib/content/section-background.js";import{parseHexColor as j}from"efficient-shell/format";import{convertLength as $,isLengthUnit as J}from"efficient-easel/screen/lib/content/length-units";import{bandPresetIndex as z,surfaceTwoTone as q}from"../../../../../format/lib/theme.js";import{VIEW_HIDE_KEYS as Q}from"../../../../../format/lib/content/view-hide-class.js";const x=t=>J(t)?t:"px",d=(t,o,e,n)=>o===e?t:$(t,o,e,n,{min:0,max:200,step:4});import{BOX as jt,DIM as $t,INNER_BOX as Jt,TEXT as zt}from"../../../../../format/lib/document/seed-parts.js";const Bt={textFit:"line",textFitPhone:"wrap"},Z={...I,[y]:""},{label:Ot,href:St,...tt}=X.defaultProps,Ut=tt,It={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},Nt={...L,sectionAccent:0},At=["gridSpan","sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent","stickTop","stickTopDistance","stickTopTablet","stickTopDistanceTablet","stickTopPhone","stickTopDistancePhone","anchor","sectionAnimation",...Q,...Object.values(w).flatMap(t=>[t,v(t)]),"widthFit","widthFitTablet","widthFitPhone","width","widthTablet","widthPhone","minWidth","minWidthTablet","minWidthPhone","maxWidth","maxWidthTablet","maxWidthPhone",...Object.values(W)],a="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",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:a,fullWidth:a,pageWidth:a,backgroundWidth:a,contentWidth:a,contentMax:a},Rt=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 ot(t,o){const e=p(t.sectionPaddingTop)??0,n=p(t.sectionPaddingBottom)??0,i=p(t.sectionPaddingTopTablet),s=p(t.sectionPaddingBottomTablet),l=x(t.sectionPaddingUnit),g=x(t.sectionPaddingUnitTablet),u=x(t.sectionPaddingUnitPhone),B=(h,c,T,m)=>{const r=p(h);if(r!==void 0)return r+d(m,"px",u,"mobile");const S=c===void 0?{n:T,unit:l}:{n:c,unit:g};return d(S.n,S.unit,u,"mobile")+d(m,"px",u,"mobile")},O=(h,c,T,m,r)=>c!==void 0?{[h]:c+d(r??m,"px",g,"tablet")}:r===void 0?{}:{[h]:d(T,l,g,"tablet")+d(r,"px",g,"tablet")};return{sectionPaddingTop:e+d(o.top,"px",l,"desktop"),sectionPaddingBottom:n+d(o.bottom,"px",l,"desktop"),...O("sectionPaddingTopTablet",i,e,o.top,o.topTablet),...O("sectionPaddingBottomTablet",s,n,o.bottom,o.bottomTablet),sectionPaddingTopPhone:B(t.sectionPaddingTopPhone,i,e,o.topPhone),sectionPaddingBottomPhone:B(t.sectionPaddingBottomPhone,s,n,o.bottomPhone)}}const kt=t=>[...["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopTablet","sectionPaddingBottomTablet","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(e,n)=>ot(n,typeof t=="function"?t(n):t)[o]]),["sectionPaddingUnit","sectionPaddingUnit"],["sectionPaddingUnitTablet","sectionPaddingUnitTablet"],["sectionPaddingUnitPhone","sectionPaddingUnitPhone"]];function P(t,o){const e=K(t,G[o]);return{sectionPaddingTop:e.top,sectionPaddingBottom:e.bottom}}const Ht=t=>[["padTop","sectionPaddingTop",(o,e)=>P(e,t).sectionPaddingTop],["padBottom","sectionPaddingBottom",(o,e)=>P(e,t).sectionPaddingBottom],["sectionPaddingTop","sectionPaddingTop",(o,e)=>P(e,t).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,e)=>P(e,t).sectionPaddingBottom]],et={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},Dt=t=>o=>Y(o.props[t])?[et]:[],Wt=(t,o)=>({kind:"text",key:t,role:"eyebrow",props:I,...o?{style:o}:{}}),N=t=>t.background!=="transparent",nt=(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},A={align:"right",alignPhone:"left"},it=(t,o,e)=>{const n=i=>nt(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}},vt=(t,o,e,n={})=>it(t,o,{...Z,...A,...n,_partStyles:{text:{...U,color:"labels",...e,case:U.case,...A}}}),_=(t,o)=>typeof t=="number"&&Number.isInteger(t)&&t>=0?t:f(o)?.selected??0,C="var(--site-surface)",R="var(--site-surface-2)",k=(t,o)=>f(o)?.themes[_(t.sectionAccent??0,o)],H=t=>(o,e)=>{const n=k(o,e)?.[t];return n?{fillColor:n}:{}},D=t=>t.startsWith("#")&&j(t)!==null,Lt=(t,o,e)=>{const n=t?.trim();if(n&&D(n))return{fillColor:n};if(n===C)return H("surface")(o,e);const i=n===R?k(o,e):void 0;return i?{fillColor:q(i)}:{}},Mt=t=>{const o=t?.trim();return!o||o==="transparent"||o===V||o===C||o===R||D(o)?void 0:"it paints a colour that no Box Fill can hold"},E=(t,o)=>{const e=f(o)?.themes;return e&&N(t)?z(e,_(t.sectionAccent,o)):-1},wt=(t,o,e)=>{const n=E(o,e);return n>=0?n:t},yt=(t,o)=>{const e=E(t,o);return e>=0?{sectionAccent:e}:{}},Ft=(t,o)=>N(t.props)&&E(t.props,o)<0?[{kind:"band-preset",page:_(t.props.sectionAccent,o)}]:[],Kt=t=>F(t.site?.siteGutter),st=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(t=>[`sectionPadding${t}`,0])),Xt=t=>({top:0,right:0,bottom:0,left:0,...t}),Gt=(t,o,e,n=[])=>({kind:"group",name:t,keepEmpty:!0,props:(i,s)=>({...M,...st,...H("surface")(i,s),...typeof e=="function"?e(i,s):e}),box:[[o,"bgImage"],b.kind,b.duration,b.delay],parts:n});export{Bt as AUTO_COLUMN,jt as BOX,Ut as BUTTON,$t as DIM,Ct as DROP_COMMON,Rt as DROP_SIDE_PADDING,et as HEADING_CASE_UPPER,Jt as INNER_BOX,st as NO_PAD,Z as NUMBER_TEXT,A as RIGHT_WORDS,At as SAME_KEYS,Nt as SECTION_BOX,It as SH_LINK,zt as TEXT,wt as bandAccent,E as bandIndex,_ as bandPage,yt as bandProps,Ft as bandWrites,H as fillFrom,Mt as fillNoBoxHolds,Dt as headingCaseOf,P as innerPad,Ht as innerPadKeys,vt as leadLine,it as leadText,Xt as lineSides,nt as numberAndUnit,Lt as ownFill,Gt as pictureCell,k as sectionPage,Kt as siteGutterOf,Wt as smallText,ot as wrapperPad,kt as wrapperPadKeys};
1
+ import{SECTION_WIDTH_KEYS as W}from"../../../../../format/lib/content/section-width.js";import{phoneKey as L}from"efficient-easel/draw";import{BOX as v,INNER_BOX as M,LABEL_FACE as U,TEXT as I,fillSlot as N}from"../../../../../format/lib/document/seed-parts.js";import{ENTRANCE_KEYS as w}from"../../../animation/entrance.js";import{CARD_HOVER_KEYS as u}from"../../../../../format/lib/animation/hover.js";import{COUNT_KEY_PROP as y}from"../../../../../format/lib/content/block-sources.js";import{normalizeSiteGutter as F}from"../../../../../format/lib/content/page-width.js";import{resolveSectionPadding as K}from"../../../content/section-padding.js";import{ButtonBlockMeta as X}from"../../../../../format/lib/document/blocks/general/ButtonBlock/meta.js";import{SECTION_PAD_INNER_DEFAULTS as G}from"../../passes/section-padding.js";import{finiteNumber as p}from"../../../../../format/lib/finite-number.js";import{convertTheme as x,hasWords as Y}from"../../../sections/section-to-box.js";import{THEME_SECTION_BG as V}from"../../../../../format/lib/content/section-background.js";import{fillSlotOfInk as A}from"../../../../../format/lib/document/part-inks.js";import{parseHexColor as j}from"efficient-shell/format";import{convertLength as $,isLengthUnit as J}from"efficient-easel/screen/lib/content/length-units";import{bandPresetIndex as z,surfaceTwoTone as q}from"../../../../../format/lib/theme.js";import{VIEW_HIDE_KEYS as Q}from"../../../../../format/lib/content/view-hide-class.js";const _=t=>J(t)?t:"px",d=(t,o,e,n)=>o===e?t:$(t,o,e,n,{min:0,max:200,step:4});import{BOX as qt,DIM as Qt,INNER_BOX as Zt,TEXT as to}from"../../../../../format/lib/document/seed-parts.js";const St={textFit:"line",textFitPhone:"wrap"},Z={...I,[y]:""},{label:Ut,href:It,...tt}=X.defaultProps,Nt=tt,At={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},Ct={...v,sectionAccent:0},kt={sectionAccent:-1},Ht=["gridSpan","sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent","stickTop","stickTopDistance","stickTopTablet","stickTopDistanceTablet","stickTopPhone","stickTopDistancePhone","anchor","sectionAnimation",...Q,...Object.values(w).flatMap(t=>[t,L(t)]),"widthFit","widthFitTablet","widthFitPhone","width","widthTablet","widthPhone","minWidth","minWidthTablet","minWidthPhone","maxWidth","maxWidthTablet","maxWidthPhone",...Object.values(W)],c="a section width key, ignored since efficient-web-builder 45 (an old key; a section's own width has new keys, lib/content/section-width), so dropping it changes nothing",Rt={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:c,fullWidth:c,pageWidth:c,backgroundWidth:c,contentWidth:c,contentMax:c},Dt=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 ot(t,o){const e=p(t.sectionPaddingTop)??0,n=p(t.sectionPaddingBottom)??0,i=p(t.sectionPaddingTopTablet),s=p(t.sectionPaddingBottomTablet),l=_(t.sectionPaddingUnit),g=_(t.sectionPaddingUnitTablet),T=_(t.sectionPaddingUnitPhone),E=(h,a,b,m)=>{const r=p(h);if(r!==void 0)return r+d(m,"px",T,"mobile");const S=a===void 0?{n:b,unit:l}:{n:a,unit:g};return d(S.n,S.unit,T,"mobile")+d(m,"px",T,"mobile")},O=(h,a,b,m,r)=>a!==void 0?{[h]:a+d(r??m,"px",g,"tablet")}:r===void 0?{}:{[h]:d(b,l,g,"tablet")+d(r,"px",g,"tablet")};return{sectionPaddingTop:e+d(o.top,"px",l,"desktop"),sectionPaddingBottom:n+d(o.bottom,"px",l,"desktop"),...O("sectionPaddingTopTablet",i,e,o.top,o.topTablet),...O("sectionPaddingBottomTablet",s,n,o.bottom,o.bottomTablet),sectionPaddingTopPhone:E(t.sectionPaddingTopPhone,i,e,o.topPhone),sectionPaddingBottomPhone:E(t.sectionPaddingBottomPhone,s,n,o.bottomPhone)}}const Wt=t=>[...["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopTablet","sectionPaddingBottomTablet","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(e,n)=>ot(n,typeof t=="function"?t(n):t)[o]]),["sectionPaddingUnit","sectionPaddingUnit"],["sectionPaddingUnitTablet","sectionPaddingUnitTablet"],["sectionPaddingUnitPhone","sectionPaddingUnitPhone"]];function P(t,o){const e=K(t,G[o]);return{sectionPaddingTop:e.top,sectionPaddingBottom:e.bottom}}const Lt=t=>[["padTop","sectionPaddingTop",(o,e)=>P(e,t).sectionPaddingTop],["padBottom","sectionPaddingBottom",(o,e)=>P(e,t).sectionPaddingBottom],["sectionPaddingTop","sectionPaddingTop",(o,e)=>P(e,t).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,e)=>P(e,t).sectionPaddingBottom]],et={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},vt=t=>o=>Y(o.props[t])?[et]:[],Mt=(t,o)=>({kind:"text",key:t,role:"eyebrow",props:I,...o?{style:o}:{}}),C=t=>t.background!=="transparent",nt=(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},k={align:"right",alignPhone:"left"},it=(t,o,e)=>{const n=i=>nt(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}},wt=(t,o,e,n={})=>it(t,o,{...Z,...k,...n,_partStyles:{text:{...U,color:"labels",...e,case:U.case,...k}}}),B=(t,o)=>typeof t=="number"&&Number.isInteger(t)&&t>=0?t:x(o)?.selected??0,H="var(--site-surface-2)",R=(t,o)=>x(o)?.themes[B(t.sectionAccent??0,o)],st=(t,o)=>(e,n)=>{if(!o?.(e,n))return N(t);const i=R(e,n)?.[t];return i?{fillColor:i}:{}},yt=(t,o)=>f(t,o)>=0,D=t=>t.startsWith("#")&&j(t)!==null,Ft=(t,o,e)=>{const n=t?.trim();if(n&&D(n))return{fillColor:n};const i=A(n);if(i)return N(i);const s=n===H?R(o,e):void 0;return s?{fillColor:q(s)}:{}},Kt=t=>{const o=t?.trim();return!o||o==="transparent"||o===V||A(o)||o===H||D(o)?void 0:"it paints a colour that no Box Fill can hold"},f=(t,o)=>{const e=x(o)?.themes;return e&&C(t)?z(e,B(t.sectionAccent,o)):-1},Xt=(t,o,e)=>{const n=f(o,e);return n>=0?n:t},Gt=(t,o)=>{const e=f(t,o);return e>=0?{sectionAccent:e}:{}},Yt=(t,o)=>C(t.props)&&f(t.props,o)<0?[{kind:"band-preset",page:B(t.props.sectionAccent,o)}]:[],Vt=t=>F(t.site?.siteGutter),dt=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(t=>[`sectionPadding${t}`,0])),jt=t=>({top:0,right:0,bottom:0,left:0,...t}),$t=(t,o,e,n=[])=>({kind:"group",name:t,keepEmpty:!0,props:(i,s)=>({...M,...dt,...st("surface")(i,s),...typeof e=="function"?e(i,s):e}),box:[[o,"bgImage"],u.kind,u.duration,u.delay],parts:n});export{St as AUTO_COLUMN,qt as BOX,Nt as BUTTON,Qt as DIM,Rt as DROP_COMMON,Dt as DROP_SIDE_PADDING,kt as FOLLOW_THE_BOX,et as HEADING_CASE_UPPER,Zt as INNER_BOX,dt as NO_PAD,Z as NUMBER_TEXT,k as RIGHT_WORDS,Ht as SAME_KEYS,Ct as SECTION_BOX,At as SH_LINK,to as TEXT,Xt as bandAccent,f as bandIndex,B as bandPage,Gt as bandProps,Yt as bandWrites,st as fillFrom,Kt as fillNoBoxHolds,vt as headingCaseOf,P as innerPad,Lt as innerPadKeys,wt as leadLine,it as leadText,jt as lineSides,nt as numberAndUnit,yt as onBandPreset,Ft as ownFill,$t as pictureCell,R as sectionPage,Vt as siteGutterOf,Mt as smallText,ot as wrapperPad,Wt as wrapperPadKeys};
@@ -1,2 +1,5 @@
1
1
  import { type SectionToBoxRow } from "../../../sections/section-to-box.js";
2
+ type Props = Record<string, unknown>;
3
+ export declare function cardsPressStarter(): Props;
2
4
  export declare const CARDS_SECTION_TO_BOX: Readonly<Record<string, SectionToBoxRow>>;
5
+ export {};
@@ -1 +1 @@
1
- import{phoneKey as k,readHidable as _}from"efficient-easel/draw";import{cardColumns as U}from"../../../../components/Cards.js";import{resolveSectionBackground as z,THEME_SECTION_BG as J}from"../../../../../format/lib/content/section-background.js";import{CardsMeta as Q}from"../../../../../format/lib/document/blocks/general/Cards/meta.js";import{KeyFeaturesMeta as Z}from"../../../../../format/lib/document/blocks/general/KeyFeatures/meta.js";import{finiteNumber as C}from"../../../../../format/lib/finite-number.js";import{nonEmptyString as $}from"../../../../../format/lib/non-empty-string.js";import{parseSectionHeadPlacement as ee}from"../../../../../format/lib/sections/section-head-placement.js";import{hasWords as oe}from"../../../sections/section-to-box.js";import{BOX_TYPE as s,CONTAINER_BLOCKS_SLOT as i}from"../../../../../format/lib/document/container-blocks.js";import{labelTextSeed as te}from"../../../../../format/lib/document/text-seeds.js";import{CARDS_BODY_LOOK as ne,CARDS_CARD as re,CARDS_TITLE_LOOK as ae,rowFieldTextSeed as r}from"../../../../../format/lib/document/blocks/general/Cards/card-seed.js";import{BOX_HIDE_WHEN_ROW_EMPTY as se,CARD_LIST_TYPE as ie,CARD_TEMPLATE_SLOT as de,cardListProps as le}from"../../../../../format/lib/content/card-template.js";import{bandAccent as pe,bandProps as ce,bandWrites as he,BUTTON as me,DIM as h,DROP_COMMON as m,DROP_SIDE_PADDING as u,INNER_BOX as t,SAME_KEYS as g,SECTION_BOX as b,fillFrom as w,fillNoBoxHolds as ue,ownFill as ge,SH_LINK as be,TEXT as n,smallText as we,wrapperPad as y,wrapperPadKeys as f}from"./section-to-box-row-parts.js";import{headTree as T,token as p}from"./section-head-looks.js";import{boxPadding as ye,labelStyle as fe}from"../../../../../format/lib/document/seed-parts.js";import{SECTION_BG_BUILT_IN as Pe}from"../../../../../format/lib/document/blocks/general/section-bg-built-in.js";const d=(e,o,l,c)=>({sectionBorder:{top:e,right:o,bottom:l,left:c}}),E=e=>o=>U(C(o.columns)??C(e.columns)),R=e=>({kind:"group",name:"Grid",props:{...t,gap:0,...d(1,0,0,1)},parts:[e]}),L={...t,direction:"row",gap:0,share:"equal"},D="its head sits in a Box of its own above it (own-box): the row draws the head inline",N=e=>ee(e.headPlacement)==="own-box",B="inline is the head the row draws; an own-box node is skipped (`skip`)",Se=e=>({kind:"group",name:"Heading",props:e,parts:[we("eyebrow"),{kind:"text",key:"title",role:"heading",props:n,style:{textStyle:"heading-3",case:"upper"},was:{size:44}}]}),I={top:72,bottom:72,topPhone:72,bottomPhone:72},_e={...re,...d(0,1,1,0)},Oe={name:"Cards",boxProps:(e,o)=>({...b,direction:"column",gap:36,gapPhone:28,...w("surface")(e,o),...y(e,I)}),box:[...g,...f(I)],skip:e=>N(e)?D:typeof e.dataSource=="string"&&e.dataSource?"its cards come from a source: they are drawn from the card template on Cards":e.template!==void 0?"its cards are drawn from its own card template (an emptied one draws none): the shape the other rows land on":e.cardStyle==="label-only"?"Label only is Key Features' look: no live node holds it, so it has no row of its own yet":void 0,parts:[T("Cards"),R({kind:"list",key:"items",name:"Card",perRow:E(Q.defaultProps),rowName:"Row",rowProps:L,props:(e,o)=>({..._e,...w("background")(e,o)}),parts:[{kind:"text",key:"title",props:n,style:ae},{kind:"text",key:"body",props:h,style:ne}]})],drop:{...m,...u,columns:"the rows of N: one Row Box per `columns` cards, which the Box draws as N equal blocks",cardStyle:"the standard card is what the row draws; a Label only node is skipped (0 live nodes)",dataSource:"an empty source is typed cards, what the row draws; a sourced node is skipped (0 live nodes)",dataSourceOptions:"read only with a source; a sourced node is skipped (0 live nodes)",template:"an empty card template is typed cards, what the row draws; a node with a template is skipped",highlightedCard:"read only with a card template; a node with a template is skipped",highlightBadge:"read only with a card template; a node with a template is skipped",headPlacement:B,eyebrowLook:"needs the eyebrow's Filled look on a Text block: Plain is the eyebrow start look the row draws; 2 of 62 live nodes store it (the stored-node export, 2026-10-24)"}},A={top:76,bottom:76,topPhone:76,bottomPhone:76},xe={...t,direction:"row",align:"center",gap:16,sectionPaddingTop:32,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,...d(0,1,1,0)},F={textStyle:"body-1",color:"text"},H=(e,o)=>typeof o?.href=="string"&&o.href.trim()!=="",ke={name:"Key Features",boxProps:e=>({...b,direction:"column",gap:44,...d(1,0,1,0),...y(e,A)}),box:[...g,...f(A)],parts:[Se({...t,direction:"row",align:"end",gap:20,wrap:!0,share:"content"}),R({kind:"list",key:"items",name:"Feature",perRow:E(Z.defaultProps),rowName:"Row",rowProps:L,props:xe,parts:[{kind:"button",key:"label",href:"href",when:H,variant:"ghost",props:{...me,...be,icon:"none"},style:F},{kind:"text",key:"label",when:(e,o)=>!H(e,o),props:n,style:F,was:{size:17}}]})],drop:{...m,...u,columns:"the rows of N: one Row Box per `columns` cells, which the Box draws as N equal blocks",eyebrowLook:"needs the eyebrow's Filled look on a Text block: Filled is Key Features' own default (lib/sections/section-eyebrow-look), so 20 of 21 published nodes draw it with nothing stored; the row draws the Plain start look (the stored-node export, 2026-10-24)"}},v={top:120,bottom:120,topPhone:80,bottomPhone:80,topTablet:80,bottomTablet:80},P=e=>{const o=z(typeof e.background=="string"?e.background:void 0,Pe.Series);return o&&o!=="transparent"?o:void 0},O=e=>P(e)===J,Ce={...t,justify:"between",gap:16,gapPhone:16,sectionHeightMode:"fixed",sectionHeightValue:340,sectionHeightUnit:"px",sectionPaddingTop:36,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,sectionPaddingTopPhone:36,sectionPaddingRightPhone:28,sectionPaddingBottomPhone:32,sectionPaddingLeftPhone:28},K={...t,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[k("share")]:"content"},Te=e=>{const o=P(e)?1:2;return{...t,direction:"row",columns:4,columnsTablet:2,gap:o,gapPhone:o}},x={...fe(12),letterSpacing:.22,lineHeight:1.5},W=e=>oe(e.viewLabel)&&!_(e.viewLabel).hidden,a=e=>_(e).text?.trim?.()??"",M=e=>Object.fromEntries(Object.entries(e).filter(([,o])=>$(o)!==void 0)),X=e=>e.map(([o,l,c])=>({key:o,label:l,...c?{multiline:!0}:{}})),Ee=X([["num","Number"],["since","Corner note"],["title","Card title"],["body","Card body",!0],["count","Count"],["countLabel","Count word"]]),Re=X([["label","Label"],["value","Value"],["body","Card body",!0]]),G=(e,o,l,c,V)=>({kind:"group",name:e,props:o,parts:[{kind:"core",as:ie,headless:!0,keep:[],derive:{reads:["cards"],props:S=>le(c(S),l)},slots:(S,q)=>({[de]:[V(S,q)]})}]}),Y=e=>Array.isArray(e.cards)?e.cards:[],Le={name:"Recurring Columns",boxProps:(e,o)=>({...b,direction:"column",gap:60,gapPhone:60,...d(0,0,1,0),...O(e)?ce(e,o):{},...ge(P(e),e,o),...y(e,v)}),box:[...g.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,l)=>O(o)?pe(e,o,l):e],...f(v)],skip:e=>ue(P(e))??(N(e)?D:void 0),site:(e,o)=>O(e.props)?he(e,o):[],parts:[T("Series"),G("Cards",Te,Ee,e=>Y(e).map(o=>M({num:a(o.num),since:a(o.since),title:a(o.title),body:a(o.desc),count:a(o.entries),countLabel:a(o.entriesLabel)})),(e,o)=>({type:s,props:{...Ce,...w("background")(e,o),name:"Card"},slots:{[i]:[{type:s,props:{...t,name:"Words",gap:16,gapPhone:16},slots:{[i]:[{type:s,props:{...K,name:"Top"},slots:{[i]:[r("num",n,p("label",13),!0),r("since",n,p("label",13),!0)]}},r("title",{...n,tag:"h3"},{textStyle:"heading-3",...p("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}),r("body",h,{textStyle:"body-5",fontRole:"heading",...p("body",14),lineHeight:1.6})]}},{type:s,props:{...K,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...d(1,0,0,0),...W(e)?{}:{[se]:["count","countLabel"]}},slots:{[i]:[{type:s,props:{...t,name:"Count",direction:"row",align:"center",gap:12,gapPhone:12,share:"content",[k("share")]:"content"},slots:{[i]:[r("count",n,x),r("countLabel",h,x)]}},...W(e)?[{type:s,props:{...t,name:"View",maxWidthPhone:266},slots:{[i]:[{type:"Text",props:{...n,text:_(e.viewLabel).text,_partStyles:{text:{...te()._partStyles.text,...x}}}}]}}]:[]]}}]}}))],reads:{viewLabel:"a Text typed once in the card template: the far end of every card's footer",background:"the Box's theme (the band preset) or its Fill"},drop:{...m,...u,headPlacement:B}},j={top:60,bottom:60,topPhone:40,bottomPhone:40},De={...t,direction:"row",columns:3,gap:40,gapPhone:16},Ne={...t,gap:8,gapPhone:8,...ye(24),...d(1,1,1,1)},Be={name:"Document Detail Cards",boxProps:e=>({...b,direction:"column",gap:40,gapPhone:16,...d(0,0,1,0),...y(e,j)}),box:[...g,...f(j)],parts:[G("Cards",De,Re,e=>Y(e).map(o=>M({label:a(o.label),value:a(o.value),body:a(o.desc)})),(e,o)=>({type:s,props:{...Ne,...w("surface")(e,o),name:"Card"},slots:{[i]:[r("label",n,{...p("label",12),lineHeight:1.5},!0),{type:s,props:{...t,name:"Words",gap:14,gapPhone:14},slots:{[i]:[r("value",n,{textStyle:"heading-3",...p("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}),r("body",h,{textStyle:"body-5",fontRole:"accent",...p("body",14),italic:!0,lineHeight:1.5})]}}]}}))],drop:{...m,...u}},Qe={Cards:Oe,KeyFeatures:ke,Series:Le,DocMetaCards:Be};export{Qe as CARDS_SECTION_TO_BOX};
1
+ import{phoneKey as T,readHidable as O}from"efficient-easel/draw";import{isNodeList as z,newId as J}from"efficient-easel/data";import{say as m}from"../../../../../format/lib/editor-words.js";import{cardColumns as Q}from"../../../../../format/lib/content/card-columns.js";import{resolveSectionBackground as Z,THEME_SECTION_BG as $}from"../../../../../format/lib/content/section-background.js";import{CardsMeta as ee}from"../../../../../format/lib/document/blocks/general/Cards/meta.js";import{KeyFeaturesMeta as te}from"../../../../../format/lib/document/blocks/general/KeyFeatures/meta.js";import{finiteNumber as R}from"../../../../../format/lib/finite-number.js";import{nonEmptyString as oe}from"../../../../../format/lib/non-empty-string.js";import{parseSectionHeadPlacement as ne}from"../../../../../format/lib/sections/section-head-placement.js";import{hasWords as re}from"../../../sections/section-to-box.js";import{BOX_TYPE as a,CONTAINER_BLOCKS_SLOT as i}from"../../../../../format/lib/document/container-blocks.js";import{labelTextSeed as se}from"../../../../../format/lib/document/text-seeds.js";import{rowFieldTextSeed as d}from"../../../../../format/lib/document/blocks/general/Cards/card-seed.js";import{CARDS_CELL as ae,cardListCardSeed as ie,cardsGridLook as de}from"../../../../../format/lib/document/blocks/general/Cards/card-list-seed.js";import{BOX_HIDE_WHEN_ROW_EMPTY as le,CARD_LIST_TYPE as ce,CARD_TEMPLATE_SLOT as pe,cardKeyOf as he,cardListProps as me,cardRow as be}from"../../../../../format/lib/content/card-template.js";import{bandAccent as ge,bandProps as ue,onBandPreset as ye,bandWrites as fe,BUTTON as we,DIM as x,DROP_COMMON as b,DROP_SIDE_PADDING as g,INNER_BOX as r,SAME_KEYS as u,SECTION_BOX as y,fillFrom as f,fillNoBoxHolds as Pe,ownFill as Se,SH_LINK as Ce,TEXT as l,smallText as _e,wrapperPad as w,wrapperPadKeys as P}from"./section-to-box-row-parts.js";import{headTree as A,token as c}from"./section-head-looks.js";import{boxPadding as Oe,labelStyle as xe}from"../../../../../format/lib/document/seed-parts.js";import{SECTION_BG_BUILT_IN as ke}from"../../../../../format/lib/document/blocks/general/section-bg-built-in.js";const p=(e,t,o,n)=>({sectionBorder:{top:e,right:t,bottom:o,left:n}}),B=e=>t=>Q(R(t.columns)??R(e.columns)),Ee=e=>({kind:"group",name:"Grid",props:{...r,gap:0,...p(1,0,0,1)},parts:[e]}),Le={...r,direction:"row",gap:0,share:"equal"},Te="its head sits in a Box of its own above it (own-box): the row draws the head inline",D=e=>ne(e.headPlacement)==="own-box",Re="inline is the head the row draws; an own-box node is skipped (`skip`)",Ae=e=>({kind:"group",name:"Heading",props:e,parts:[_e("eyebrow"),{kind:"text",key:"title",role:"heading",props:l,style:{textStyle:"heading-3",case:"upper"},was:{size:44}}]}),I={top:76,bottom:76,topPhone:76,bottomPhone:76},Be={...r,direction:"row",align:"center",gap:16,sectionPaddingTop:32,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,...p(0,1,1,0)},N={textStyle:"body-1",color:"text"},F=(e,t)=>typeof t?.href=="string"&&t.href.trim()!=="",De={name:"Key Features",boxProps:e=>({...y,direction:"column",gap:44,...p(1,0,1,0),...w(e,I)}),box:[...u,...P(I)],parts:[Ae({...r,direction:"row",align:"end",gap:20,wrap:!0,share:"content"}),Ee({kind:"list",key:"items",name:"Feature",perRow:B(te.defaultProps),rowName:"Row",rowProps:Le,props:Be,parts:[{kind:"button",key:"label",href:"href",when:F,variant:"ghost",props:{...we,...Ce,icon:"none"},style:N},{kind:"text",key:"label",when:(e,t)=>!F(e,t),props:l,style:N,was:{size:17}}]})],drop:{...b,...g,columns:"the rows of N: one Row Box per `columns` cells, which the Box draws as N equal blocks",eyebrowLook:"needs the eyebrow's Filled look on a Text block: Filled is Key Features' own default (lib/sections/section-eyebrow-look), so 20 of 21 published nodes draw it with nothing stored; the row draws the Plain start look (the stored-node export, 2026-10-24)"}},H={top:120,bottom:120,topPhone:80,bottomPhone:80,topTablet:80,bottomTablet:80},S=e=>{const t=Z(typeof e.background=="string"?e.background:void 0,ke.Series);return t&&t!=="transparent"?t:void 0},C=e=>S(e)===$,Ie={...r,justify:"between",gap:16,gapPhone:16,sectionHeightMode:"fixed",sectionHeightValue:340,sectionHeightUnit:"px",sectionPaddingTop:36,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,sectionPaddingTopPhone:36,sectionPaddingRightPhone:28,sectionPaddingBottomPhone:32,sectionPaddingLeftPhone:28},K={...r,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[T("share")]:"content"},Ne=e=>{const t=S(e)?1:2;return{...r,direction:"row",columns:4,columnsTablet:2,gap:t,gapPhone:t}},k={...xe(12),letterSpacing:.22,lineHeight:1.5},W=e=>re(e.viewLabel)&&!O(e.viewLabel).hidden,s=e=>O(e).text?.trim?.()??"",v=e=>Object.fromEntries(Object.entries(e).filter(([,t])=>oe(t)!==void 0)),E=e=>e.map(([t,o,n])=>({key:t,label:o,...n?{multiline:!0}:{}})),Fe=E([["num","Number"],["since","Corner note"],["title","Card title"],["body","Card body",!0],["count","Count"],["countLabel","Count word"]]),He=E([["label","Label"],["value","Value"],["body","Card body",!0]]),L=(e,t,o,n,h,{reads:Y=["cards"],keep:U=[]}={})=>({kind:"group",name:e,props:t,parts:[{kind:"core",as:ce,headless:!0,keep:U,derive:{reads:Y,props:_=>me(n(_),o)},slots:(_,q)=>({[pe]:[h(_,q)]})}]}),M=e=>Array.isArray(e.cards)?e.cards:[],G={top:72,bottom:72,topPhone:72,bottomPhone:72},X=(e,t)=>({...ae,...f("background")(e,t)}),Ke=e=>{const t=B(ee.defaultProps)(e);return{...r,...de(t)}},We=E([["title","Card title"],["body","Card body",!0]]),ve=e=>(Array.isArray(e.items)?e.items:[]).map((t,o)=>({key:typeof t?.key=="string"&&t.key?t.key:he(be(t),o),title:s(t?.title),body:s(t?.body)})),j=e=>{const t={},o={};for(const[n,h]of Object.entries(e.props??{}))n!=="id"&&(z(h)?o[n]=h.map(j):t[n]=h);return{type:String(e.type),props:t,...Object.keys(o).length?{slots:o}:{}}},Me=(e,t)=>{const o=Array.isArray(e.template)?e.template.map(j):[ie()],[n]=o;return o.length===1&&n.type===a?{...n,props:{...X(e,t),...n.props}}:{type:a,props:{...r,...X(e,t),name:"Card"},slots:{[i]:o}}},Ge=e=>Array.isArray(e.template)&&e.template.length===0,Xe=["dataSource","dataSourceOptions","highlightedCard","highlightBadge"];function gt(){const e=o=>({key:J("card"),title:m(o),body:m("A short line about this card.")}),t=[e("Card title one"),e("Card title two"),e("Card title three")];return{eyebrow:m("Label"),title:m("Section *heading.*"),items:t}}const je={name:"Cards",boxProps:(e,t)=>({...y,direction:"column",gap:36,gapPhone:28,...f("surface")(e,t),...w(e,G)}),box:[...u,...P(G)],skip:e=>e.cardStyle==="label-only"?"Label only is Key Features' look: no live node holds it, so it has no row of its own yet":void 0,parts:[{...A("Cards"),when:e=>!D(e)},{...L("Cards",Ke,We,ve,Me,{reads:["items"],keep:Xe}),when:e=>!Ge(e)}],drop:{...b,...g,columns:'Box "Cards": its Columns and tablet Columns',cardStyle:"the standard card is what the row draws; a Label only node is skipped (0 live nodes)",template:"the Card list's template (the card Box takes the old cell's ground and lines)",headPlacement:"an own-box node lands without its head; inline is the head the row draws",eyebrowLook:"needs the eyebrow's Filled look on a Text block: Plain is the eyebrow start look the row draws; 2 of 62 live nodes store it (the stored-node export, 2026-10-24)"}},Ve={name:"Recurring Columns",boxProps:(e,t)=>({...y,direction:"column",gap:60,gapPhone:60,...p(0,0,1,0),...C(e)?ue(e,t):{},...Se(S(e),e,t),...w(e,H)}),box:[...u.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,t,o)=>C(t)?ge(e,t,o):e],...P(H)],skip:e=>Pe(S(e))??(D(e)?Te:void 0),site:(e,t)=>C(e.props)?fe(e,t):[],parts:[A("Series"),L("Cards",Ne,Fe,e=>M(e).map(t=>v({num:s(t.num),since:s(t.since),title:s(t.title),body:s(t.desc),count:s(t.entries),countLabel:s(t.entriesLabel)})),(e,t)=>({type:a,props:{...Ie,...f("background",(o,n)=>C(o)&&ye(o,n))(e,t),name:"Card"},slots:{[i]:[{type:a,props:{...r,name:"Words",gap:16,gapPhone:16},slots:{[i]:[{type:a,props:{...K,name:"Top"},slots:{[i]:[d("num",l,c("label",13),!0),d("since",l,c("label",13),!0)]}},d("title",{...l,tag:"h3"},{textStyle:"heading-3",...c("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}),d("body",x,{textStyle:"body-5",fontRole:"heading",...c("body",14),lineHeight:1.6})]}},{type:a,props:{...K,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...p(1,0,0,0),...W(e)?{}:{[le]:["count","countLabel"]}},slots:{[i]:[{type:a,props:{...r,name:"Count",direction:"row",align:"center",gap:12,gapPhone:12,share:"content",[T("share")]:"content"},slots:{[i]:[d("count",l,k),d("countLabel",x,k)]}},...W(e)?[{type:a,props:{...r,name:"View",maxWidthPhone:266},slots:{[i]:[{type:"Text",props:{...l,text:O(e.viewLabel).text,_partStyles:{text:{...se()._partStyles.text,...k}}}}]}}]:[]]}}]}}))],reads:{viewLabel:"a Text typed once in the card template: the far end of every card's footer",background:"the Box's theme (the band preset) or its Fill"},drop:{...b,...g,headPlacement:Re}},V={top:60,bottom:60,topPhone:40,bottomPhone:40},Ye={...r,direction:"row",columns:3,gap:40,gapPhone:16},Ue={...r,gap:8,gapPhone:8,...Oe(24),...p(1,1,1,1)},qe={name:"Document Detail Cards",boxProps:e=>({...y,direction:"column",gap:40,gapPhone:16,...p(0,0,1,0),...w(e,V)}),box:[...u,...P(V)],parts:[L("Cards",Ye,He,e=>M(e).map(t=>v({label:s(t.label),value:s(t.value),body:s(t.desc)})),(e,t)=>({type:a,props:{...Ue,...f("surface")(e,t),name:"Card"},slots:{[i]:[d("label",l,{...c("label",12),lineHeight:1.5},!0),{type:a,props:{...r,name:"Words",gap:14,gapPhone:14},slots:{[i]:[d("value",l,{textStyle:"heading-3",...c("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}),d("body",x,{textStyle:"body-5",fontRole:"accent",...c("body",14),italic:!0,lineHeight:1.5})]}}]}}))],drop:{...b,...g}},ut={Cards:je,KeyFeatures:De,Series:Ve,DocMetaCards:qe};export{ut as CARDS_SECTION_TO_BOX,gt as cardsPressStarter};
@@ -1 +1 @@
1
- import{SPLITTABLE_SECTIONS as O}from"../../../../../format/lib/sections/section-head-placement.js";import{SECTION_LABELS as T}from"../../../../../format/lib/document/section-catalog.js";import{SAME_KEYS as _,SECTION_BOX as S,innerPad as h}from"./section-to-box-row-parts.js";import{HEAD_BELOW as f,headLookOf as b,headReads as u,headTree as B}from"./section-head-looks.js";import{finiteNumber as g}from"../../../../../format/lib/finite-number.js";import{CARD_TEMPLATE_SLOT as a}from"../../../../../format/lib/content/card-template.js";import{footprintCardSeed as A}from"../../../../../format/lib/document/blocks/general/Footprint/card-seed.js";import{faqCardSeed as R}from"../../../../../format/lib/document/blocks/general/FAQ/card-seed.js";import{INNER_BOX as w}from"../../../../../format/lib/document/seed-parts.js";import{SECTION_ACCENT_INHERIT as C}from"../../../../../format/lib/content/section-surface.js";const H=["Collections","Events","FAQ","Footprint","GalleryB","LongRead","ProcessSteps","RelatedProducts"],M=["FitmentTable","ProductGrid","SpecTable"],n=(o,e)=>()=>({top:o,topPhone:e}),m=o=>e=>{const r=h(e,o).sectionPaddingTop;return{top:r,topPhone:r}},L={Collections:n(120,70),Events:n(120,70),FAQ:n(120,70),GalleryB:n(120,70),FitmentTable:n(120,80),SpecTable:n(120,80),LongRead:n(120,80),RelatedProducts:n(0,0),Footprint:m("Footprint"),ProcessSteps:m("ProcessSteps"),ProductGrid:o=>({top:g(o.padTop)??120,topPhone:0})};function N(o,e={}){const r=O[o],c=L[o];if(!r||!c)throw new Error(`section-to-box-rows-head: "${o}" has no head row or no head room`);const i=r.padKey,l=B(o),d=u(o),E=r.headRows.filter(t=>![r.num,r.title,r.description,"linkText","linkHref"].includes(t)),p={...Object.fromEntries(E.filter(t=>!(t in d)).map(t=>[t,"a head setting no Header Box part reads (lib/document/blocks/general/section-head-looks `headReads`)"])),...e.drop};return{name:T[o]??o,boxProps:t=>{const s=c(t),P=e.roomBelow?{sectionPaddingBottom:e.roomBelow.bottom,sectionPaddingBottomPhone:e.roomBelow.bottomPhone}:{};return{...S,direction:"column",gap:f[b(o)],sectionPaddingTop:s.top,sectionPaddingTopPhone:s.topPhone,...P}},box:[..._,...i?[[i,"sectionPaddingTop",(t,s)=>c(s).top]]:[]],parts:[l,...(()=>{const t={...i?{[i]:0}:{},...e.coreProps},s={kind:"core",keep:"rest",...Object.keys(t).length?{props:t}:{},...e.slots?{slots:e.slots}:{}};return[e.coreBox?{kind:"group",name:e.coreBox.name,props:e.coreBox.props,parts:[s]}:s]})(),...e.partsAfter??[]],...Object.keys(d).length?{reads:d}:{},...Object.keys(p).length?{drop:p}:{},...e.pressHeading?{pressKeepsEmpty:[r.title]}:{}}}const k={...w,direction:"accordion",rowStyle:"numbered"},F={Footprint:{slots:{[a]:[A()]},pressHeading:!0},FAQ:{slots:{[a]:[R()]},pressHeading:!0,coreBox:{name:"Questions",props:k},coreProps:{sectionAccent:C},roomBelow:{bottom:120,bottomPhone:70}}},W=Object.fromEntries(H.map(o=>[o,N(o,F[o])]));export{k as FAQ_ROWS_BOX,F as HEAD_ONLY_CARD_SEEDS,W as HEAD_ONLY_SECTION_TO_BOX,H as HEAD_ONLY_TYPES,M as HOST_ROW_HEAD_TYPES,N as headOnlyRow};
1
+ import{SPLITTABLE_SECTIONS as O}from"../../../../../format/lib/sections/section-head-placement.js";import{SECTION_LABELS as T}from"../../../../../format/lib/document/section-catalog.js";import{SAME_KEYS as _,SECTION_BOX as S,innerPad as h}from"./section-to-box-row-parts.js";import{HEAD_BELOW as f,headLookOf as b,headReads as u,headTree as B}from"./section-head-looks.js";import{finiteNumber as g}from"../../../../../format/lib/finite-number.js";import{CARD_TEMPLATE_SLOT as a}from"../../../../../format/lib/content/card-template.js";import{footprintCardSeed as A}from"../../../../../format/lib/document/blocks/general/Footprint/card-seed.js";import{faqCardSeed as R}from"../../../../../format/lib/document/blocks/general/FAQ/card-seed.js";import{INNER_BOX as w}from"../../../../../format/lib/document/seed-parts.js";import{SECTION_ACCENT_INHERIT as C}from"../../../../../format/lib/content/section-surface.js";const H=["Collections","FAQ","Footprint","GalleryB","LongRead","ProcessSteps","RelatedProducts"],M=["Events","FitmentTable","ProductGrid","SpecTable"],n=(o,e)=>()=>({top:o,topPhone:e}),m=o=>e=>{const r=h(e,o).sectionPaddingTop;return{top:r,topPhone:r}},L={Collections:n(120,70),Events:n(120,70),FAQ:n(120,70),GalleryB:n(120,70),FitmentTable:n(120,80),SpecTable:n(120,80),LongRead:n(120,80),RelatedProducts:n(0,0),Footprint:m("Footprint"),ProcessSteps:m("ProcessSteps"),ProductGrid:o=>({top:g(o.padTop)??120,topPhone:0})};function N(o,e={}){const r=O[o],c=L[o];if(!r||!c)throw new Error(`section-to-box-rows-head: "${o}" has no head row or no head room`);const i=r.padKey,l=B(o),d=u(o),E=r.headRows.filter(t=>![r.num,r.title,r.description,"linkText","linkHref"].includes(t)),p={...Object.fromEntries(E.filter(t=>!(t in d)).map(t=>[t,"a head setting no Header Box part reads (lib/document/blocks/general/section-head-looks `headReads`)"])),...e.drop};return{name:T[o]??o,boxProps:t=>{const s=c(t),P=e.roomBelow?{sectionPaddingBottom:e.roomBelow.bottom,sectionPaddingBottomPhone:e.roomBelow.bottomPhone}:{};return{...S,direction:"column",gap:f[b(o)],sectionPaddingTop:s.top,sectionPaddingTopPhone:s.topPhone,...P}},box:[..._,...i?[[i,"sectionPaddingTop",(t,s)=>c(s).top]]:[]],parts:[l,...(()=>{const t={...i?{[i]:0}:{},...e.coreProps},s={kind:"core",keep:"rest",...Object.keys(t).length?{props:t}:{},...e.slots?{slots:e.slots}:{}};return[e.coreBox?{kind:"group",name:e.coreBox.name,props:e.coreBox.props,parts:[s]}:s]})(),...e.partsAfter??[]],...Object.keys(d).length?{reads:d}:{},...Object.keys(p).length?{drop:p}:{},...e.pressHeading?{pressKeepsEmpty:[r.title]}:{}}}const k={...w,direction:"accordion",rowStyle:"numbered"},F={Footprint:{slots:{[a]:[A()]},pressHeading:!0},FAQ:{slots:{[a]:[R()]},pressHeading:!0,coreBox:{name:"Questions",props:k},coreProps:{sectionAccent:C},roomBelow:{bottom:120,bottomPhone:70}}},W=Object.fromEntries(H.map(o=>[o,N(o,F[o])]));export{k as FAQ_ROWS_BOX,F as HEAD_ONLY_CARD_SEEDS,W as HEAD_ONLY_SECTION_TO_BOX,H as HEAD_ONLY_TYPES,M as HOST_ROW_HEAD_TYPES,N as headOnlyRow};
@@ -2,3 +2,4 @@ import { type SectionToBoxRow } from "../../../sections/section-to-box.js";
2
2
  export declare const LOGOS_SECTION_TO_BOX: Readonly<Record<string, SectionToBoxRow>>;
3
3
  export declare const logosPressStarter: () => Readonly<Record<string, unknown>>;
4
4
  export declare const paymentPressStarter: () => Readonly<Record<string, unknown>>;
5
+ export declare const footerPaymentPressStarter: () => Readonly<Record<string, unknown>>;