efficient-web-builder 55.1.0 → 55.3.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 (159) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/dist/editor/components/PartSettingsPanel.js +1 -1
  3. package/dist/editor/lib/document/block-source-fields.d.ts +1 -0
  4. package/dist/editor/lib/document/block-source-fields.js +1 -1
  5. package/dist/editor/lib/document/blocks/general/CardList/fields.js +1 -1
  6. package/dist/editor/lib/document/blocks/general/Cards/fields.js +1 -1
  7. package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
  8. package/dist/editor/lib/document/blocks/general/Footprint/fields.js +1 -1
  9. package/dist/editor/lib/document/blocks/general/LogoBlock/fields.js +1 -1
  10. package/dist/editor/lib/document/blocks/general/Logos/fields.js +1 -1
  11. package/dist/editor/lib/document/blocks/general/ProcessSteps/fields.js +1 -1
  12. package/dist/editor/lib/document/blocks/general/Text/fields.js +1 -1
  13. package/dist/editor/lib/document/blocks/general/index.d.ts +2 -2
  14. package/dist/editor/lib/document/card-row-fields.d.ts +2 -1
  15. package/dist/editor/lib/document/card-row-fields.js +1 -1
  16. package/dist/editor/lib/document/choice-pictures.d.ts +2 -0
  17. package/dist/editor/lib/document/choice-pictures.js +1 -1
  18. package/dist/editor/lib/document/field-groups.js +1 -1
  19. package/dist/editor/lib/document/live-number-field.d.ts +5 -0
  20. package/dist/editor/lib/document/live-number-field.js +1 -1
  21. package/dist/editor/lib/document/mirror-cards-field.js +1 -1
  22. package/dist/editor/lib/document/part-anchors.js +1 -1
  23. package/dist/editor/lib/document/part-panel-rows.js +1 -1
  24. package/dist/editor/lib/host-document-bridge.d.ts +4 -1
  25. package/dist/editor/lib/host-document-bridge.js +1 -1
  26. package/dist/editor/lib/sections/text-layouts.d.ts +2 -1
  27. package/dist/editor/lib/sections/text-layouts.js +1 -1
  28. package/dist/format/lib/content/block-sources.d.ts +18 -2
  29. package/dist/format/lib/content/block-sources.js +1 -1
  30. package/dist/format/lib/content/box-background.d.ts +3 -0
  31. package/dist/format/lib/content/box-background.js +1 -1
  32. package/dist/format/lib/content/box-shape.d.ts +1 -1
  33. package/dist/format/lib/content/card-state.d.ts +6 -0
  34. package/dist/format/lib/content/card-state.js +1 -1
  35. package/dist/format/lib/content/card-template.d.ts +14 -1
  36. package/dist/format/lib/content/card-template.js +1 -1
  37. package/dist/format/lib/content/count-numbers.d.ts +1 -1
  38. package/dist/format/lib/content/count-numbers.js +1 -1
  39. package/dist/format/lib/content/footer.js +1 -1
  40. package/dist/format/lib/content/footprint.d.ts +1 -0
  41. package/dist/format/lib/content/footprint.js +1 -1
  42. package/dist/format/lib/content/image-text-rows.d.ts +22 -0
  43. package/dist/format/lib/content/image-text-rows.js +1 -0
  44. package/dist/format/lib/content/mirror-cards.d.ts +17 -0
  45. package/dist/format/lib/content/mirror-cards.js +1 -1
  46. package/dist/format/lib/content/view-lines.d.ts +1 -1
  47. package/dist/format/lib/document/blocks/general/CardList/meta.js +1 -1
  48. package/dist/format/lib/document/blocks/general/Footprint/card-seed.d.ts +2 -0
  49. package/dist/format/lib/document/blocks/general/Footprint/card-seed.js +1 -0
  50. package/dist/format/lib/document/blocks/general/Footprint/meta.d.ts +6 -0
  51. package/dist/format/lib/document/blocks/general/Footprint/meta.js +2 -2
  52. package/dist/format/lib/document/blocks/general/Logos/card-seed.d.ts +7 -0
  53. package/dist/format/lib/document/blocks/general/Logos/card-seed.js +1 -0
  54. package/dist/format/lib/document/blocks/general/Logos/meta.d.ts +11 -0
  55. package/dist/format/lib/document/blocks/general/Logos/meta.js +1 -1
  56. package/dist/format/lib/document/blocks/general/ProcessSteps/meta.d.ts +4 -0
  57. package/dist/format/lib/document/blocks/general/ProcessSteps/meta.js +1 -1
  58. package/dist/format/lib/document/blocks/general/ProcessSteps/row-seed.d.ts +11 -0
  59. package/dist/format/lib/document/blocks/general/ProcessSteps/row-seed.js +1 -0
  60. package/dist/format/lib/document/container-blocks.js +1 -1
  61. package/dist/format/lib/document/passes/document-position.d.ts +8 -0
  62. package/dist/format/lib/document/passes/document-position.js +1 -1
  63. package/dist/format/lib/document/row-hand.d.ts +5 -0
  64. package/dist/format/lib/document/row-hand.js +1 -0
  65. package/dist/format/lib/document/section-catalog.js +20 -2
  66. package/dist/format/lib/document/section-descriptions.js +1 -1
  67. package/dist/format/lib/document/seed-parts.d.ts +3 -0
  68. package/dist/format/lib/document/seed-parts.js +1 -1
  69. package/dist/format/lib/document/text-seeds.js +1 -1
  70. package/dist/format/lib/editor-words-catalogue.d.ts +38 -1
  71. package/dist/format/lib/editor-words-catalogue.js +6 -6
  72. package/dist/format/lib/editor-words-kept.d.ts +1 -0
  73. package/dist/format/lib/editor-words-kept.js +1 -0
  74. package/dist/format/lib/fonts.js +1 -1
  75. package/dist/format/lib/sections/strip-shape.js +1 -1
  76. package/dist/format/lib/sections/ticker-join.d.ts +1 -0
  77. package/dist/format/lib/sections/ticker-join.js +1 -1
  78. package/dist/format/lib/source-rules/editor-words.js +2 -2
  79. package/dist/format/lib/theme.d.ts +1 -0
  80. package/dist/format/lib/theme.js +3 -3
  81. package/dist/render/components/CardRowContext.d.ts +8 -2
  82. package/dist/render/components/CardRowContext.js +1 -1
  83. package/dist/render/components/ClientRows.d.ts +8 -0
  84. package/dist/render/components/ClientRows.js +1 -0
  85. package/dist/render/components/Flex.d.ts +3 -1
  86. package/dist/render/components/Flex.js +1 -1
  87. package/dist/render/components/Footprint.d.ts +4 -1
  88. package/dist/render/components/Footprint.js +1 -1
  89. package/dist/render/components/HeroPictures.d.ts +2 -2
  90. package/dist/render/components/JoinBox.d.ts +4 -0
  91. package/dist/render/components/JoinBox.js +1 -0
  92. package/dist/render/components/LogoBlock.js +1 -1
  93. package/dist/render/components/Logos.d.ts +4 -2
  94. package/dist/render/components/Logos.js +1 -1
  95. package/dist/render/components/MirrorContext.d.ts +12 -0
  96. package/dist/render/components/MirrorContext.js +1 -1
  97. package/dist/render/components/PartStyledKind.d.ts +2 -1
  98. package/dist/render/components/PartStyledKind.js +1 -1
  99. package/dist/render/components/PaymentBadges.js +1 -1
  100. package/dist/render/components/ProcessSteps.d.ts +5 -1
  101. package/dist/render/components/ProcessSteps.js +1 -1
  102. package/dist/render/components/Text.d.ts +3 -1
  103. package/dist/render/components/Text.js +1 -1
  104. package/dist/render/components/TickerSection.js +1 -1
  105. package/dist/render/lib/content/box-shared-columns.d.ts +6 -0
  106. package/dist/render/lib/content/box-shared-columns.js +1 -1
  107. package/dist/render/lib/document/blocks/general/ButtonBlock/render.js +1 -1
  108. package/dist/render/lib/document/blocks/general/CardList/render.js +1 -1
  109. package/dist/render/lib/document/blocks/general/Eyebrow/render.js +1 -1
  110. package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
  111. package/dist/render/lib/document/blocks/general/Footprint/render.js +1 -1
  112. package/dist/render/lib/document/blocks/general/LogoBlock/render.js +1 -1
  113. package/dist/render/lib/document/blocks/general/Logos/render.js +1 -1
  114. package/dist/render/lib/document/blocks/general/ProcessSteps/render.d.ts +5 -0
  115. package/dist/render/lib/document/blocks/general/ProcessSteps/render.js +1 -1
  116. package/dist/render/lib/document/blocks/general/Split/render.js +1 -1
  117. package/dist/render/lib/document/blocks/general/Text/render.js +1 -1
  118. package/dist/render/lib/document/blocks/general/TitleWithButtons/render.js +1 -1
  119. package/dist/render/lib/document/blocks/general/section-head-looks.js +2 -2
  120. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.d.ts +3 -0
  121. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
  122. package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.js +1 -1
  123. package/dist/render/lib/document/blocks/general/section-to-box-rows-docbody.js +2 -2
  124. package/dist/render/lib/document/blocks/general/section-to-box-rows-editorial.js +1 -1
  125. package/dist/render/lib/document/blocks/general/section-to-box-rows-fitment.d.ts +2 -0
  126. package/dist/render/lib/document/blocks/general/section-to-box-rows-fitment.js +1 -0
  127. package/dist/render/lib/document/blocks/general/section-to-box-rows-forms.d.ts +2 -0
  128. package/dist/render/lib/document/blocks/general/section-to-box-rows-forms.js +1 -0
  129. package/dist/render/lib/document/blocks/general/section-to-box-rows-head.d.ts +2 -0
  130. package/dist/render/lib/document/blocks/general/section-to-box-rows-head.js +1 -1
  131. package/dist/render/lib/document/blocks/general/section-to-box-rows-locations.js +1 -1
  132. package/dist/render/lib/document/blocks/general/section-to-box-rows-logos.d.ts +1 -0
  133. package/dist/render/lib/document/blocks/general/section-to-box-rows-logos.js +1 -1
  134. package/dist/render/lib/document/blocks/general/section-to-box-rows-pageheader.d.ts +1 -0
  135. package/dist/render/lib/document/blocks/general/section-to-box-rows-pageheader.js +1 -1
  136. package/dist/render/lib/document/blocks/general/section-to-box-rows-stats.d.ts +5 -0
  137. package/dist/render/lib/document/blocks/general/section-to-box-rows-stats.js +1 -1
  138. package/dist/render/lib/document/blocks/general/section-to-box-rows-strip.d.ts +1 -1
  139. package/dist/render/lib/document/blocks/general/section-to-box-rows-strip.js +1 -1
  140. package/dist/render/lib/document/blocks/general/section-to-box-rows-timeline.js +2 -2
  141. package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
  142. package/dist/render/lib/document/head-core-boxes.js +1 -1
  143. package/dist/render/lib/document/hero-media-parts.d.ts +2 -2
  144. package/dist/render/lib/document/part-styles.d.ts +2 -0
  145. package/dist/render/lib/document/part-styles.js +2 -2
  146. package/dist/render/lib/document/passes/box-join.d.ts +2 -0
  147. package/dist/render/lib/document/passes/box-join.js +1 -0
  148. package/dist/render/lib/document/passes/clickable-parts.js +1 -1
  149. package/dist/render/lib/document/passes/index.js +1 -1
  150. package/dist/render/lib/document/passes/section-width.js +1 -1
  151. package/dist/render/lib/document/text-parts.d.ts +2 -1
  152. package/dist/render/lib/document/text-parts.js +1 -1
  153. package/dist/render/lib/sections/card-list-style.d.ts +18 -0
  154. package/dist/render/lib/sections/card-list-style.js +1 -0
  155. package/dist/render/lib/sections/payment-rows.d.ts +16 -0
  156. package/dist/render/lib/sections/payment-rows.js +1 -0
  157. package/dist/render/lib/sections/section-to-box.d.ts +3 -0
  158. package/dist/render/lib/sections/section-to-box.js +1 -1
  159. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import{contrastRatio as K,hexToRgb as h,parseHexColor as f,readableInk as j,relativeLuminance as V}from"efficient-shell/format";const Z="storefront-theme",Oe="sf:theme-mode",Le="sf:theme-switch",ke="hide",Pe="light",$e=!1,M=7,R=18;function q(e){return e>=M&&e<R}function Fe(e){const{mode:t,override:n,switchShown:r,hour:o}=e;return r&&(n==="light"||n==="dark")?n:t==="auto"?q(o)?"light":"dark":t==="light"?"light":"dark"}function Ge(e){const{mode:t,switchShown:n}=e;return`
1
+ import{contrastRatio as j,hexToRgb as h,parseHexColor as f,readableInk as V,relativeLuminance as x}from"efficient-shell/format";const Z="storefront-theme",Le="sf:theme-mode",ke="sf:theme-switch",Pe="hide",$e="light",Fe=!1,R=7,D=18;function q(e){return e>=R&&e<D}function Ue(e){const{mode:t,override:n,switchShown:r,hour:o}=e;return r&&(n==="light"||n==="dark")?n:t==="auto"?q(o)?"light":"dark":t==="light"?"light":"dark"}function Ge(e){const{mode:t,switchShown:n}=e;return`
2
2
  try {
3
3
  var mode = ${JSON.stringify(t)};
4
4
  var shown = ${n?"true":"false"};
@@ -8,11 +8,11 @@ import{contrastRatio as K,hexToRgb as h,parseHexColor as f,readableInk as j,rela
8
8
  theme = override;
9
9
  } else if (mode === 'auto') {
10
10
  var h = new Date().getHours();
11
- theme = (h >= ${M} && h < ${R}) ? 'light' : 'dark';
11
+ theme = (h >= ${R} && h < ${D}) ? 'light' : 'dark';
12
12
  } else {
13
13
  theme = mode === 'light' ? 'light' : 'dark';
14
14
  }
15
15
  if (theme === 'light') document.documentElement.setAttribute('data-theme', 'light');
16
16
  else document.documentElement.removeAttribute('data-theme');
17
17
  } catch (e) {}
18
- `}const s={background:"#0a0a0a",surface:"#131313",line:"#2a2a2a",muted:"#9a9388"},J=[{text:"#2e2e2e",accent:"#2e2e2e",background:"#ffffff",surface:"#f7f7f7",line:"#e0e0e0",muted:"#5c5c5c"},{text:"#f7f7f7",accent:"#f7f7f7",background:"#0a0a0a",surface:"#1b1b1b",line:"#363636",muted:"#a3a3a3"},{text:"#ffffff",accent:"#ffffff",background:"#2e2e2e",surface:"#3d3d3d",line:"#545454",muted:"#b0b0b0"},{text:"#0a0a0a",accent:"#0a0a0a",background:"#f7f7f7",surface:"#ffffff",line:"#d9d9d9",muted:"#5c5c5c"}],Q={selected:0,themes:J};function D(e){return!e||!Array.isArray(e.themes)||e.themes.length===0?{...Q}:{selected:Math.min(Math.max(0,e.selected??0),e.themes.length-1),themes:e.themes}}function x(e,t,n){const r=h(e),o=h(t);if(r===null||o===null)return e;const c=(i,a)=>Math.max(0,Math.min(255,Math.round(i+(a-i)*n))).toString(16).padStart(2,"0");return`#${c(r.r,o.r)}${c(r.g,o.g)}${c(r.b,o.b)}`}const v={light:"#ffffff",dark:"#0a0a0a"},Ue=["light","dark"];function Ye(e,t){const n=v[t],r=t==="light"?"#ffffff":"#000000";return{text:n,accent:n,background:e,surface:x(e,r,.1),line:x(e,r,.22),muted:x(n,e,.35),brandInk:t}}function u(e){const t=D(e);return t.themes[t.selected]}function l(e){return{text:e.text,accent:e.accent,background:e.background||s.background,surface:e.surface||s.surface,line:e.line||s.line,muted:e.muted||s.muted}}function ze(e){return{fill:l(e).background,accent:e.accent}}const ee=.4,te=4.5,ne=3,Be={good:"Good","large-only":"Large text only",hard:"Hard to read"};function Xe(e){return e>=te?"good":e>=ne?"large-only":"hard"}const re=["#000000","#ffffff"];function d(e){return j(e,re)}const oe=[.25,.4,.55];function We(e){const t=h(e);return t===null?[]:oe.map(n=>"#"+[t.r,t.g,t.b].map(r=>Math.round(r*(1-n)).toString(16).padStart(2,"0")).join(""))}function Ke(e){const t=u(e),n={"--theme-fg":t.text},r=V(t.text);return(r===null||r>=ee)&&(n["--overlay-fg"]=t.text),n}const ce=82;function p(e){return`color-mix(in srgb, ${e} ${ce}%, #000)`}function je(e){const t=u(e);return{"--theme-accent":t.accent,"--theme-accent-2":p(t.accent),"--theme-accent-ink":d(t.accent)}}function _(e){const t=e?.button;return t&&f(t)===t.toLowerCase()?t.toLowerCase():null}function Ve(e){const t=u(e),n=_(t),r=H(t);if(n===null&&r===null)return{};const o={};return n!==null&&(o["--theme-btn"]=n,o["--theme-btn-2"]=p(n)),o["--theme-btn-ink"]=r??d(n),o}function H(e){const t=e?.buttonInk;return t&&f(t)===t.toLowerCase()?t.toLowerCase():null}function ie(e,t){return H(e)??d(_(e)??t)}function Ze(e){const t=u(e);return{fill:_(t)??t.accent.toLowerCase(),ink:ie(t,t.accent)}}function qe(e){const t={};return D(e).themes.forEach((n,r)=>{const o=l(n);t[`--theme-preset-${r}-accent`]=o.accent,t[`--theme-preset-${r}-accent-2`]=p(o.accent),t[`--theme-preset-${r}-accent-ink`]=d(o.accent),t[`--theme-preset-${r}-bg`]=o.background,t[`--theme-preset-${r}-fg`]=o.text,t[`--theme-preset-${r}-surface`]=o.surface,t[`--theme-preset-${r}-surface-2`]=`color-mix(in srgb, ${o.surface} 60%, ${o.line})`,t[`--theme-preset-${r}-line`]=o.line,t[`--theme-preset-${r}-muted`]=o.muted}),t}const E=e=>{const t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4},S=e=>255*(e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055);function N([e,t,n]){const[r,o,c]=[E(e),E(t),E(n)],i=Math.cbrt(.4122214708*r+.5363325363*o+.0514459929*c),a=Math.cbrt(.2119034982*r+.6806995451*o+.1073969566*c),m=Math.cbrt(.0883024619*r+.2817188376*o+.6299787005*c);return[.2104542553*i+.793617785*a-.0040720468*m,1.9779984951*i-2.428592205*a+.4505937099*m,.0259040371*i+.7827717662*a-.808675766*m]}function se([e,t,n]){const r=(e+.3963377774*t+.2158037573*n)**3,o=(e-.1055613458*t-.0638541728*n)**3,c=(e-.0894841775*t-1.291485548*n)**3;return[S(4.0767416621*r-3.3077115913*o+.2309699292*c),S(-1.2684380046*r+2.6097574011*o-.3413193965*c),S(-.0041960863*r-.7034186147*o+1.707614701*c)]}const A=e=>{const t=h(e);return t===null?[0,0,0]:[t.r,t.g,t.b]},O=(e,t,n)=>[e[0]*n+t[0]*(1-n),e[1]*n+t[1]*(1-n),e[2]*n+t[2]*(1-n)],L=e=>`#${e.map(t=>Math.max(0,Math.min(255,Math.round(t))).toString(16).padStart(2,"0")).join("")}`,k=e=>O(A(e.surface),A(e.line),.6);function Je(e){return L(k(l(e)))}function P(e){const t=l(e);return L(se(O(N(k(t)),N(A(t.text)),.92)))}function Qe(e){return{...e,background:P(e)}}function ve(e,t){const n=e[t];if(!n)return-1;const r=P(n);return e.findIndex((o,c)=>c!==t&&f(o.background??"")===r)}const et=["--theme-bg","--theme-surface","--theme-surface-2","--theme-line","--theme-muted"];function tt(e){const t=l(u(e)),n=`color-mix(in srgb, ${t.surface} 60%, ${t.line})`,r={"--theme-bg":t.background,"--theme-surface":t.surface,"--theme-line":t.line,"--theme-muted":t.muted};return(t.surface!==s.surface||t.line!==s.line)&&(r["--theme-surface-2"]=n),r}const ae=["heading","body","label"],nt={heading:"Headings",body:"Body",label:"Labels"};function rt(e){if(!e)return null;for(const t of ae)if(e.includes(`--size-${t}`))return t;return/--size-heading(Large|Medium|Small)/.test(e)?"heading":null}const $=["headingLarge","headingMedium","headingSmall","accent","body","label"],ot={headingLarge:"heading",headingMedium:"heading",headingSmall:"heading",accent:"heading",body:"body",label:"label"},ct={headingLarge:null,headingMedium:null,headingSmall:null,accent:null,body:null,label:null},ue=8,le=200;function he(e){if(typeof e!="number"||!Number.isFinite(e))return null;const t=Math.round(e);return t>=ue&&t<=le?t:null}function fe(e){const t={};for(const n of $)t[n]=he(e?.[n]);return t}function it(e){const t=fe(e),n={};for(const r of $){const o=t[r];o!==null&&(n[`--size-${r}`]=`${o}px`)}return n}const de=["square","small","large"],ge="small";function me(e){return de.includes(e??"")?e:ge}function st(e){return G(pe[me(e)])}const T=0,xe=40,pe={square:0,small:null,large:16},F={"--sf-card-radius":1,"--sf-button-radius":.5,"--site-radius":.5,"--site-radius-xs":.25,"--site-radius-sm":.5,"--site-radius-md":.75,"--site-radius-lg":1,"--site-radius-xl":1.25,"--site-radius-2xl":1.5,"--site-radius-3xl":2,"--site-radius-4xl":2.5};function b(e){if(e==null||typeof e=="string"&&e.trim()==="")return null;const t=typeof e=="string"?Number(e):e;return Number.isFinite(t)?Math.min(xe,Math.max(T,Math.round(t))):null}function G(e){const t=b(e);return t===null?{}:Object.fromEntries(Object.entries(F).map(([n,r])=>{const o=t*r/16;return[n,o===0?"0":`${o}rem`]}))}function at(e){return(b(e)??T)*F["--sf-button-radius"]}function ut(e){return G(b(e)??T)}const _e=["none","soft","lifted"],Ee="soft",U="none",Se=["tight","normal","roomy"],Ae="normal",Te="normal",be=["none","lift","highlight"],Ce="lift",we="highlight",Y="#141416";function z(e){return _e.includes(e??"")?e:Ee}function Ie(e){return Se.includes(e??"")?e:Ae}function B(e){return be.includes(e??"")?e:Ce}function ye(e){return e&&f(e)===e.toLowerCase()?e.toLowerCase():Y}function lt(e){const t=z(e);return t===U?void 0:t}function ht(e){const t=Ie(e);return t===Te?void 0:t}function ft(e){const t=B(e);return t===we?void 0:t}function dt(e,t,n){const r=ye(t);return r===Y?{}:z(e)!==U||B(n)==="lift"?{"--sf-shadow-color":r}:{}}const Me=["normal","tight","compressed"],X="normal";function W(e){return Me.includes(e??"")?e:X}function gt(e){const t=W(e);return t===X?void 0:t}function mt(e){switch(W(e)){case"tight":return{lineHeight:.95,letterSpacing:-.01};case"compressed":return{lineHeight:.86,letterSpacing:-.01};default:return{}}}const xt=["authored","sentence"],pt={case:"authored",weight:null,weightStrong:null,italicStrong:null,maxPx:null,weight2:null,weight3:null,case2:"authored",case3:"authored"},C=100,w=900,Re=24,De=200;function g(e,t,n){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,t),n))}function I(e){const t=g(e?.weight,C,w),n=e?.case==="sentence"?"sentence":"authored",r=c=>c==null?t:g(c,C,w),o=c=>c==="sentence"?"sentence":c==="authored"?"authored":n;return{case:n,weight:t,weightStrong:g(e?.weightStrong,C,w),italicStrong:typeof e?.italicStrong=="boolean"?e.italicStrong:null,maxPx:g(e?.maxPx,Re,De),weight2:r(e?.weight2),weight3:r(e?.weight3),case2:o(e?.case2),case3:o(e?.case3)}}function _t(e){const t=I(e),n={};return t.case==="sentence"&&(n["--sf-heading-case"]="none"),t.weight!==null&&(n["--sf-heading-weight"]=String(t.weight)),t.weightStrong!==null&&(n["--sf-heading-weight-strong"]=String(t.weightStrong)),t.maxPx!==null&&(n["--sf-heading-max"]=`${t.maxPx}px`),t.weight2!==null&&t.weight2!==t.weight&&(n["--sf-heading-2-weight"]=String(t.weight2)),t.weight3!==null&&t.weight3!==t.weight&&(n["--sf-heading-3-weight"]=String(t.weight3)),t.case2!==t.case&&(n["--sf-heading-2-case"]=t.case2==="sentence"?"none":"uppercase"),t.case3!==t.case&&(n["--sf-heading-3-case"]=t.case3==="sentence"?"none":"uppercase"),n}function Et(e){return I({case:e?.heading_case??void 0,weight:e?.heading_weight,weightStrong:e?.heading_weight_strong,italicStrong:e?.accent_italic,maxPx:e?.heading_max_px,weight2:e?.heading_2_weight??void 0,weight3:e?.heading_3_weight??void 0,case2:e?.heading_2_case??void 0,case3:e?.heading_3_case??void 0})}function St(e){const t=I(e);return{heading_case:t.case,heading_weight:t.weight,heading_weight_strong:t.weightStrong,heading_max_px:t.maxPx,heading_2_weight:t.weight2,heading_3_weight:t.weight3,heading_2_case:t.case2,heading_3_case:t.case3}}const y="siteTheme";function He(e){const t=e;if(!t||typeof t!="object"||!Array.isArray(t.themes)||!t.themes.every(r=>!!r&&typeof r=="object"))return{};const n=typeof t.selected=="number"&&Number.isInteger(t.selected)&&t.selected>=0?t.selected:0;return{[y]:{selected:n,themes:t.themes}}}function At(e){return He(e?.[y])[y]}export{oe as ACCENT_DARKEN_STEPS,Ue as BRAND_INKS,Se as CARD_GAPS,_e as CARD_SHADOWS,xe as CORNER_RADIUS_MAX,T as CORNER_RADIUS_MIN,de as CORNER_STYLES,pe as CORNER_STYLE_TO_PX,Ae as DEFAULT_CARD_GAP,Ee as DEFAULT_CARD_SHADOW,ge as DEFAULT_CORNER_STYLE,X as DEFAULT_HEADING_COMPRESSION,pt as DEFAULT_HEADING_TYPOGRAPHY,Ce as DEFAULT_HOVER_EFFECT,Y as DEFAULT_SHADOW_COLOR,ct as DEFAULT_SIZES,s as DEFAULT_SURFACES,$e as DEFAULT_SWITCH_SHOWN,J as DEFAULT_THEMES,Pe as DEFAULT_THEME_MODE,Q as DEFAULT_THEME_VALUE,Be as GRADE_LABEL,xt as HEADING_CASES,Me as HEADING_COMPRESSIONS,De as HEADING_MAX_PX_MAX,Re as HEADING_MAX_PX_MIN,w as HEADING_WEIGHT_MAX,C as HEADING_WEIGHT_MIN,be as HOVER_EFFECTS,Te as IDENTITY_CARD_GAP,U as IDENTITY_CARD_SHADOW,we as IDENTITY_HOVER_EFFECT,te as READABILITY_AA,ne as READABILITY_AA_LARGE,ot as SCALE_OF_STEP,y as SITE_THEME_KEY,$ as SIZE_STEPS,le as TEXT_SIZE_MAX,ue as TEXT_SIZE_MIN,R as THEME_DAY_END_HOUR,M as THEME_DAY_START_HOUR,Oe as THEME_MODE_KEY,Z as THEME_STORAGE_KEY,et as THEME_SURFACE_KEYS,ke as THEME_SWITCH_HIDE,Le as THEME_SWITCH_KEY,ae as TYPE_GROUPS,nt as TYPE_GROUP_LABELS,d as accentInk,Qe as bandPresetFor,ve as bandPresetIndex,Ye as brandTheme,Ge as buildThemeBootScript,ht as cardGapAttr,lt as cardShadowAttr,mt as compressionMetrics,K as contrastRatio,G as cornerRadiusTokens,st as cornerStyleTokens,We as darkerAccents,Xe as gradeContrast,gt as headingCompressionAttr,Et as headingTypographyFromRow,_t as headingTypographyStyle,St as headingTypographyToRow,ft as hoverEffectAttr,q as isDayHour,Ie as normalizeCardGap,z as normalizeCardShadow,b as normalizeCornerRadius,me as normalizeCornerStyle,W as normalizeHeadingCompression,I as normalizeHeadingTypography,B as normalizeHoverEffect,ye as normalizeShadowColor,he as normalizeSize,fe as normalizeSizes,D as normalizeTheme,l as normalizeThemeColors,Fe as resolveTheme,ie as resolvedButtonInk,P as sectionBandTone,u as selectedThemeColors,dt as shadowColorTokens,Ze as siteButtonPaint,at as siteButtonRadiusPx,ut as siteCornerRadiusTokens,He as siteThemeMetadata,At as siteThemeOf,Je as surfaceTwoTone,je as themeAccentStyle,_ as themeButtonColour,H as themeButtonInk,Ve as themeButtonStyle,Ke as themeColorStyle,qe as themePresetAccentVars,tt as themeSurfaceStyle,ze as themeSwatchColors,rt as typeScaleGroupOfClassName,it as typeSizesStyle};
18
+ `}const s={background:"#0a0a0a",surface:"#131313",line:"#2a2a2a",muted:"#9a9388"},J=[{text:"#2e2e2e",accent:"#2e2e2e",background:"#ffffff",surface:"#f7f7f7",line:"#e0e0e0",muted:"#5c5c5c"},{text:"#f7f7f7",accent:"#f7f7f7",background:"#0a0a0a",surface:"#1b1b1b",line:"#363636",muted:"#a3a3a3"},{text:"#ffffff",accent:"#ffffff",background:"#2e2e2e",surface:"#3d3d3d",line:"#545454",muted:"#b0b0b0"},{text:"#0a0a0a",accent:"#0a0a0a",background:"#f7f7f7",surface:"#ffffff",line:"#d9d9d9",muted:"#5c5c5c"}],Q={selected:0,themes:J};function H(e){return!e||!Array.isArray(e.themes)||e.themes.length===0?{...Q}:{selected:Math.min(Math.max(0,e.selected??0),e.themes.length-1),themes:e.themes}}function p(e,t,n){const r=h(e),o=h(t);if(r===null||o===null)return e;const c=(i,a)=>Math.max(0,Math.min(255,Math.round(i+(a-i)*n))).toString(16).padStart(2,"0");return`#${c(r.r,o.r)}${c(r.g,o.g)}${c(r.b,o.b)}`}const v={light:"#ffffff",dark:"#0a0a0a"},Ye=["light","dark"];function ze(e,t){const n=v[t],r=t==="light"?"#ffffff":"#000000";return{text:n,accent:n,background:e,surface:p(e,r,.1),line:p(e,r,.22),muted:p(n,e,.35),brandInk:t}}function u(e){const t=H(e);return t.themes[t.selected]}function l(e){return{text:e.text,accent:e.accent,background:e.background||s.background,surface:e.surface||s.surface,line:e.line||s.line,muted:e.muted||s.muted}}function Be(e){return{fill:l(e).background,accent:e.accent}}const ee=.4,te=4.5,ne=3,Xe={good:"Good","large-only":"Large text only",hard:"Hard to read"};function We(e){return e>=te?"good":e>=ne?"large-only":"hard"}const re=["#000000","#ffffff"];function d(e){return V(e,re)}const oe=[.25,.4,.55];function Ke(e){const t=h(e);return t===null?[]:oe.map(n=>"#"+[t.r,t.g,t.b].map(r=>Math.round(r*(1-n)).toString(16).padStart(2,"0")).join(""))}function je(e){const t=u(e),n={"--theme-fg":t.text},r=x(t.text);return(r===null||r>=ee)&&(n["--overlay-fg"]=t.text),n}const ce=82;function _(e){return`color-mix(in srgb, ${e} ${ce}%, #000)`}function Ve(e){const t=u(e);return{"--theme-accent":t.accent,"--theme-accent-2":_(t.accent),"--theme-accent-ink":d(t.accent)}}function E(e){const t=e?.button;return t&&f(t)===t.toLowerCase()?t.toLowerCase():null}function Ze(e){const t=u(e),n=E(t),r=N(t);if(n===null&&r===null)return{};const o={};return n!==null&&(o["--theme-btn"]=n,o["--theme-btn-2"]=_(n)),o["--theme-btn-ink"]=r??d(n),o}function N(e){const t=e?.buttonInk;return t&&f(t)===t.toLowerCase()?t.toLowerCase():null}function ie(e,t){return N(e)??d(E(e)??t)}function qe(e){const t=u(e);return{fill:E(t)??t.accent.toLowerCase(),ink:ie(t,t.accent)}}function Je(e){const t={};return H(e).themes.forEach((n,r)=>{const o=l(n);t[`--theme-preset-${r}-accent`]=o.accent,t[`--theme-preset-${r}-accent-2`]=_(o.accent),t[`--theme-preset-${r}-accent-ink`]=d(o.accent),t[`--theme-preset-${r}-bg`]=o.background,t[`--theme-preset-${r}-fg`]=o.text,t[`--theme-preset-${r}-surface`]=o.surface,t[`--theme-preset-${r}-surface-2`]=`color-mix(in srgb, ${o.surface} 60%, ${o.line})`,t[`--theme-preset-${r}-line`]=o.line,t[`--theme-preset-${r}-muted`]=o.muted}),t}const S=e=>{const t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4},A=e=>255*(e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055);function O([e,t,n]){const[r,o,c]=[S(e),S(t),S(n)],i=Math.cbrt(.4122214708*r+.5363325363*o+.0514459929*c),a=Math.cbrt(.2119034982*r+.6806995451*o+.1073969566*c),m=Math.cbrt(.0883024619*r+.2817188376*o+.6299787005*c);return[.2104542553*i+.793617785*a-.0040720468*m,1.9779984951*i-2.428592205*a+.4505937099*m,.0259040371*i+.7827717662*a-.808675766*m]}function se([e,t,n]){const r=(e+.3963377774*t+.2158037573*n)**3,o=(e-.1055613458*t-.0638541728*n)**3,c=(e-.0894841775*t-1.291485548*n)**3;return[A(4.0767416621*r-3.3077115913*o+.2309699292*c),A(-1.2684380046*r+2.6097574011*o-.3413193965*c),A(-.0041960863*r-.7034186147*o+1.707614701*c)]}const T=e=>{const t=h(e);return t===null?[0,0,0]:[t.r,t.g,t.b]},L=(e,t,n)=>[e[0]*n+t[0]*(1-n),e[1]*n+t[1]*(1-n),e[2]*n+t[2]*(1-n)],k=e=>`#${e.map(t=>Math.max(0,Math.min(255,Math.round(t))).toString(16).padStart(2,"0")).join("")}`,P=e=>L(T(e.surface),T(e.line),.6);function Qe(e){return k(P(l(e)))}function $(e){const t=l(e);return k(se(L(O(P(t)),O(T(t.text)),.92)))}function ve(e){return{...e,background:$(e)}}function et(e,t){const n=e[t];if(!n)return-1;const r=$(n);return e.findIndex((o,c)=>c!==t&&f(o.background??"")===r)}const ae=1;function tt(e){const t=(e??[]).findIndex(n=>{const r=x(n.background??""),o=x(n.text??"");return r!==null&&o!==null&&r<o});return t>=0?t:ae}const nt=["--theme-bg","--theme-surface","--theme-surface-2","--theme-line","--theme-muted"];function rt(e){const t=l(u(e)),n=`color-mix(in srgb, ${t.surface} 60%, ${t.line})`,r={"--theme-bg":t.background,"--theme-surface":t.surface,"--theme-line":t.line,"--theme-muted":t.muted};return(t.surface!==s.surface||t.line!==s.line)&&(r["--theme-surface-2"]=n),r}const ue=["heading","body","label"],ot={heading:"Headings",body:"Body",label:"Labels"};function ct(e){if(!e)return null;for(const t of ue)if(e.includes(`--size-${t}`))return t;return/--size-heading(Large|Medium|Small)/.test(e)?"heading":null}const F=["headingLarge","headingMedium","headingSmall","accent","body","label"],it={headingLarge:"heading",headingMedium:"heading",headingSmall:"heading",accent:"heading",body:"body",label:"label"},st={headingLarge:null,headingMedium:null,headingSmall:null,accent:null,body:null,label:null},le=8,he=200;function fe(e){if(typeof e!="number"||!Number.isFinite(e))return null;const t=Math.round(e);return t>=le&&t<=he?t:null}function de(e){const t={};for(const n of F)t[n]=fe(e?.[n]);return t}function at(e){const t=de(e),n={};for(const r of F){const o=t[r];o!==null&&(n[`--size-${r}`]=`${o}px`)}return n}const ge=["square","small","large"],me="small";function xe(e){return ge.includes(e??"")?e:me}function ut(e){return G(_e[xe(e)])}const b=0,pe=40,_e={square:0,small:null,large:16},U={"--sf-card-radius":1,"--sf-button-radius":.5,"--site-radius":.5,"--site-radius-xs":.25,"--site-radius-sm":.5,"--site-radius-md":.75,"--site-radius-lg":1,"--site-radius-xl":1.25,"--site-radius-2xl":1.5,"--site-radius-3xl":2,"--site-radius-4xl":2.5};function C(e){if(e==null||typeof e=="string"&&e.trim()==="")return null;const t=typeof e=="string"?Number(e):e;return Number.isFinite(t)?Math.min(pe,Math.max(b,Math.round(t))):null}function G(e){const t=C(e);return t===null?{}:Object.fromEntries(Object.entries(U).map(([n,r])=>{const o=t*r/16;return[n,o===0?"0":`${o}rem`]}))}function lt(e){return(C(e)??b)*U["--sf-button-radius"]}function ht(e){return G(C(e)??b)}const Ee=["none","soft","lifted"],Se="soft",Y="none",Ae=["tight","normal","roomy"],Te="normal",be="normal",Ce=["none","lift","highlight"],Ie="lift",we="highlight",z="#141416";function B(e){return Ee.includes(e??"")?e:Se}function ye(e){return Ae.includes(e??"")?e:Te}function X(e){return Ce.includes(e??"")?e:Ie}function Me(e){return e&&f(e)===e.toLowerCase()?e.toLowerCase():z}function ft(e){const t=B(e);return t===Y?void 0:t}function dt(e){const t=ye(e);return t===be?void 0:t}function gt(e){const t=X(e);return t===we?void 0:t}function mt(e,t,n){const r=Me(t);return r===z?{}:B(e)!==Y||X(n)==="lift"?{"--sf-shadow-color":r}:{}}const Re=["normal","tight","compressed"],W="normal";function K(e){return Re.includes(e??"")?e:W}function xt(e){const t=K(e);return t===W?void 0:t}function pt(e){switch(K(e)){case"tight":return{lineHeight:.95,letterSpacing:-.01};case"compressed":return{lineHeight:.86,letterSpacing:-.01};default:return{}}}const _t=["authored","sentence"],Et={case:"authored",weight:null,weightStrong:null,italicStrong:null,maxPx:null,weight2:null,weight3:null,case2:"authored",case3:"authored"},I=100,w=900,De=24,He=200;function g(e,t,n){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,t),n))}function y(e){const t=g(e?.weight,I,w),n=e?.case==="sentence"?"sentence":"authored",r=c=>c==null?t:g(c,I,w),o=c=>c==="sentence"?"sentence":c==="authored"?"authored":n;return{case:n,weight:t,weightStrong:g(e?.weightStrong,I,w),italicStrong:typeof e?.italicStrong=="boolean"?e.italicStrong:null,maxPx:g(e?.maxPx,De,He),weight2:r(e?.weight2),weight3:r(e?.weight3),case2:o(e?.case2),case3:o(e?.case3)}}function St(e){const t=y(e),n={};return t.case==="sentence"&&(n["--sf-heading-case"]="none"),t.weight!==null&&(n["--sf-heading-weight"]=String(t.weight)),t.weightStrong!==null&&(n["--sf-heading-weight-strong"]=String(t.weightStrong)),t.maxPx!==null&&(n["--sf-heading-max"]=`${t.maxPx}px`),t.weight2!==null&&t.weight2!==t.weight&&(n["--sf-heading-2-weight"]=String(t.weight2)),t.weight3!==null&&t.weight3!==t.weight&&(n["--sf-heading-3-weight"]=String(t.weight3)),t.case2!==t.case&&(n["--sf-heading-2-case"]=t.case2==="sentence"?"none":"uppercase"),t.case3!==t.case&&(n["--sf-heading-3-case"]=t.case3==="sentence"?"none":"uppercase"),n}function At(e){return y({case:e?.heading_case??void 0,weight:e?.heading_weight,weightStrong:e?.heading_weight_strong,italicStrong:e?.accent_italic,maxPx:e?.heading_max_px,weight2:e?.heading_2_weight??void 0,weight3:e?.heading_3_weight??void 0,case2:e?.heading_2_case??void 0,case3:e?.heading_3_case??void 0})}function Tt(e){const t=y(e);return{heading_case:t.case,heading_weight:t.weight,heading_weight_strong:t.weightStrong,heading_max_px:t.maxPx,heading_2_weight:t.weight2,heading_3_weight:t.weight3,heading_2_case:t.case2,heading_3_case:t.case3}}const M="siteTheme";function Ne(e){const t=e;if(!t||typeof t!="object"||!Array.isArray(t.themes)||!t.themes.every(r=>!!r&&typeof r=="object"))return{};const n=typeof t.selected=="number"&&Number.isInteger(t.selected)&&t.selected>=0?t.selected:0;return{[M]:{selected:n,themes:t.themes}}}function bt(e){return Ne(e?.[M])[M]}export{oe as ACCENT_DARKEN_STEPS,Ye as BRAND_INKS,Ae as CARD_GAPS,Ee as CARD_SHADOWS,pe as CORNER_RADIUS_MAX,b as CORNER_RADIUS_MIN,ge as CORNER_STYLES,_e as CORNER_STYLE_TO_PX,Te as DEFAULT_CARD_GAP,Se as DEFAULT_CARD_SHADOW,me as DEFAULT_CORNER_STYLE,W as DEFAULT_HEADING_COMPRESSION,Et as DEFAULT_HEADING_TYPOGRAPHY,Ie as DEFAULT_HOVER_EFFECT,z as DEFAULT_SHADOW_COLOR,st as DEFAULT_SIZES,s as DEFAULT_SURFACES,Fe as DEFAULT_SWITCH_SHOWN,J as DEFAULT_THEMES,$e as DEFAULT_THEME_MODE,Q as DEFAULT_THEME_VALUE,Xe as GRADE_LABEL,_t as HEADING_CASES,Re as HEADING_COMPRESSIONS,He as HEADING_MAX_PX_MAX,De as HEADING_MAX_PX_MIN,w as HEADING_WEIGHT_MAX,I as HEADING_WEIGHT_MIN,Ce as HOVER_EFFECTS,be as IDENTITY_CARD_GAP,Y as IDENTITY_CARD_SHADOW,we as IDENTITY_HOVER_EFFECT,te as READABILITY_AA,ne as READABILITY_AA_LARGE,it as SCALE_OF_STEP,M as SITE_THEME_KEY,F as SIZE_STEPS,he as TEXT_SIZE_MAX,le as TEXT_SIZE_MIN,D as THEME_DAY_END_HOUR,R as THEME_DAY_START_HOUR,Le as THEME_MODE_KEY,Z as THEME_STORAGE_KEY,nt as THEME_SURFACE_KEYS,Pe as THEME_SWITCH_HIDE,ke as THEME_SWITCH_KEY,ue as TYPE_GROUPS,ot as TYPE_GROUP_LABELS,d as accentInk,ve as bandPresetFor,et as bandPresetIndex,ze as brandTheme,Ge as buildThemeBootScript,dt as cardGapAttr,ft as cardShadowAttr,pt as compressionMetrics,j as contrastRatio,G as cornerRadiusTokens,ut as cornerStyleTokens,tt as darkPresetIndex,Ke as darkerAccents,We as gradeContrast,xt as headingCompressionAttr,At as headingTypographyFromRow,St as headingTypographyStyle,Tt as headingTypographyToRow,gt as hoverEffectAttr,q as isDayHour,ye as normalizeCardGap,B as normalizeCardShadow,C as normalizeCornerRadius,xe as normalizeCornerStyle,K as normalizeHeadingCompression,y as normalizeHeadingTypography,X as normalizeHoverEffect,Me as normalizeShadowColor,fe as normalizeSize,de as normalizeSizes,H as normalizeTheme,l as normalizeThemeColors,Ue as resolveTheme,ie as resolvedButtonInk,$ as sectionBandTone,u as selectedThemeColors,mt as shadowColorTokens,qe as siteButtonPaint,lt as siteButtonRadiusPx,ht as siteCornerRadiusTokens,Ne as siteThemeMetadata,bt as siteThemeOf,Qe as surfaceTwoTone,Ve as themeAccentStyle,E as themeButtonColour,N as themeButtonInk,Ze as themeButtonStyle,je as themeColorStyle,Je as themePresetAccentVars,rt as themeSurfaceStyle,Be as themeSwatchColors,ct as typeScaleGroupOfClassName,at as typeSizesStyle};
@@ -1,6 +1,6 @@
1
1
  import { type ReactNode } from "react";
2
2
  import type { SlotComponent } from "efficient-easel/blocks";
3
- import { type CardRowState, type CardStateLine } from "../../format/lib/content/card-state.js";
3
+ import { type CardItemAction, type CardRowState, type CardStateLine } from "../../format/lib/content/card-state.js";
4
4
  import type { SourceRow } from "../../format/lib/content/block-sources.js";
5
5
  export type { CardRowState } from "../../format/lib/content/card-state.js";
6
6
  export type CardRow = {
@@ -11,6 +11,11 @@ export type CardRow = {
11
11
  nested?: boolean;
12
12
  state?: CardRowState;
13
13
  };
14
+ export declare function RowEmptyGate({ props, editing, children }: {
15
+ props: Record<string, unknown>;
16
+ editing: boolean;
17
+ children: ReactNode;
18
+ }): import("react").JSX.Element | null;
14
19
  export declare const CardRowContext: import("react").Context<CardRow | null>;
15
20
  export declare function useCardRow(): CardRow | null;
16
21
  export declare function CardRowDrawn({ type, props, children, }: {
@@ -26,8 +31,9 @@ type CardTemplateRowsProps = {
26
31
  items?: readonly unknown[];
27
32
  states?: readonly (CardRowState | undefined)[];
28
33
  stateLine?: CardStateLine;
34
+ actions?: readonly (CardItemAction | undefined)[];
29
35
  fallback: ReactNode;
30
36
  wrapCopy?: (copy: ReactNode, row: CardRow) => ReactNode;
31
37
  children: (cards: ReactNode) => ReactNode;
32
38
  };
33
- export declare function CardTemplateRows({ ownerId, ownerType, Template, rows, items, states, stateLine, fallback, wrapCopy, children }: CardTemplateRowsProps): import("react").JSX.Element;
39
+ export declare function CardTemplateRows({ ownerId, ownerType, Template, rows, items, states, stateLine, actions, fallback, wrapCopy, children }: CardTemplateRowsProps): import("react").JSX.Element;
@@ -1 +1 @@
1
- "use client";import{Fragment as c,jsx as r,jsxs as S}from"react/jsx-runtime";import{createContext as h,useContext as l}from"react";import{REPEAT_ATTRIBUTE as x,REPEAT_INDEX_ATTRIBUTE as D}from"efficient-easel/draw";import{CARD_TEMPLATE_SLOT as L,rowFilledProps as P}from"../../format/lib/content/card-template.js";import{CARD_STATE_LINE_CLASS as I,CARD_STATE_UNDER_LINE_CLASS as N,cardStateAttrs as g,cardStateValue as j}from"../../format/lib/content/card-state.js";import{usePageRecordRow as v}from"./CurrentRecord.js";const a=h(null);function y(){return l(a)}function M({type:u,props:i,children:t}){const o=l(a),d=v(),n=o?.row??d;return r(c,{children:t(P(u,i,n,o?.ownerType),o,n)})}function O({ownerId:u,ownerType:i,Template:t,rows:o,items:d,states:n,stateLine:E,fallback:T,wrapCopy:m,children:A}){const p=l(a);if(!t||(t.blockCount??0)<=0)return r(c,{children:T});const C=p!==null,f=o.map((w,e)=>{const s=n?.[e],R={row:w,index:e,ownerType:i,item:d?.[e],nested:C,...s?{state:s}:null},_=r("div",{[x]:`${u}:${L}`,[D]:e,...g(s),children:j(s)?S(c,{children:[r(t,{}),r("span",{"aria-hidden":"true",className:E==="under"?N:I})]}):r(t,{})});return r(a.Provider,{value:R,children:m?m(_,R):_},e)});return r(c,{children:A(f)})}export{a as CardRowContext,M as CardRowDrawn,O as CardTemplateRows,y as useCardRow};
1
+ "use client";import{Fragment as i,jsx as t,jsxs as E}from"react/jsx-runtime";import{createContext as x,useContext as d,useId as y}from"react";import{REPEAT_ATTRIBUTE as P,REPEAT_INDEX_ATTRIBUTE as b}from"efficient-easel/draw";import{BOX_LINKED_CLASS as g}from"../../format/lib/content/box-link.js";import{CARD_TEMPLATE_SLOT as j,rowFilledProps as v,templateBoxIsEmpty as B}from"../../format/lib/content/card-template.js";import{CARD_ACTION_ATTR as O,CARD_ACTION_CLASS as k,CARD_STATE_LINE_CLASS as F,CARD_STATE_UNDER_LINE_CLASS as U,cardStateAttrs as X,cardStateValue as $}from"../../format/lib/content/card-state.js";import{usePageRecordRow as G}from"./CurrentRecord.js";function W({props:o,editing:n,children:r}){const e=d(l);return!n&&B(o,e?.row)?null:t(i,{children:r})}const l=x(null);function Y(){return d(l)}function Z({type:o,props:n,children:r}){const e=d(l),s=G(),u=e?.row??s;return t(i,{children:r(v(o,n,u,e?.ownerType),e,u)})}function K({attrs:o,selected:n,press:r,children:e}){const s=y();return E("div",{...o,id:s,className:g,children:[t("button",{type:"button",[O]:"",className:k,"aria-pressed":n,"aria-labelledby":s,onClick:r}),e]})}function tt({ownerId:o,ownerType:n,Template:r,rows:e,items:s,states:u,stateLine:f,actions:S,fallback:w,wrapCopy:m,children:h}){const I=d(l);if(!r||(r.blockCount??0)<=0)return t(i,{children:w});const N=I!==null,D=e.map((L,c)=>{const a=u?.[c],p={row:L,index:c,ownerType:n,item:s?.[c],nested:N,...a?{state:a}:null},A=$(a)?E(i,{children:[t(r,{}),t("span",{"aria-hidden":"true",className:f==="under"?U:F})]}):t(r,{}),_={[P]:`${o}:${j}`,[b]:c},C=S?.[c],R=X(a),T=C?t(K,{attrs:{..._,...R},selected:a?.selected===!0,press:C.press,children:A}):t("div",{..._,...R,children:A});return t(l.Provider,{value:p,children:m?m(T,p):T},c)});return t(i,{children:h(D)})}export{l as CardRowContext,Z as CardRowDrawn,tt as CardTemplateRows,W as RowEmptyGate,Y as useCardRow};
@@ -0,0 +1,8 @@
1
+ import type { ReactNode } from "react";
2
+ import { type ClientRows } from "../../format/lib/content/block-sources.js";
3
+ export declare function clientRowsKey(source: string): string;
4
+ export declare function ClientRowsReader({ source, props, children, }: {
5
+ source: string;
6
+ props: Readonly<Record<string, unknown>>;
7
+ children: (rows: ClientRows | null) => ReactNode;
8
+ }): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ "use client";import{Fragment as t,jsx as n}from"react/jsx-runtime";import{blockSourceSpec as c,blockSourcesRevision as u}from"../../format/lib/content/block-sources.js";function m(e){return`${e}:${u()}`}function i({use:e,props:r,children:o}){return n(t,{children:o(e(r))})}function R({source:e,props:r,children:o}){const s=c(e)?.useRows;return s?n(i,{use:s,props:r,children:o}):n(t,{children:o(null)})}export{R as ClientRowsReader,m as clientRowsKey};
@@ -62,6 +62,7 @@ interface FlexProps {
62
62
  fillColor?: unknown;
63
63
  fillColorTablet?: unknown;
64
64
  fillColorPhone?: unknown;
65
+ swatch?: unknown;
65
66
  line?: unknown;
66
67
  upcoming?: unknown;
67
68
  link?: unknown;
@@ -74,11 +75,12 @@ interface FlexProps {
74
75
  desktop: boolean;
75
76
  phone: boolean;
76
77
  };
78
+ sharedRows?: boolean;
77
79
  boxId?: string;
78
80
  mirrorCards?: unknown;
79
81
  content: SlotComponent;
80
82
  rowTitle?: SlotComponent;
81
83
  startsOpen?: unknown;
82
84
  }
83
- export default function Flex({ direction, label, tabShape, gap, gapPhone, gapTablet, justify, align, wrap, share, sharePhone, shareTablet, wrapPhone, orderPhone, phoneRow, columns, columnsTablet, separator, stackBelow, blockSpacing, bgImage, bgImagePhone, pictureHover, darken, darkenStyle, darkenTablet, darkenPhone, darkenStyleTablet, darkenStylePhone, placement, padV2, border, borderTablet, borderPhone, pad, contained, fillHeight, shadow, shadowTablet, shadowPhone, justifyTablet, justifyPhone, alignTablet, alignPhone, wrapTablet, blockSpacingTablet, blockSpacingPhone, loop, scrollDirection, loopSeconds, loopDelay, editing, fillColor, fillColorTablet, fillColorPhone, line, upcoming, link, boxShape, boxShapePhone, boxShapeTablet, jumpHighlight, anchor, sharedSides, boxId, mirrorCards, content: Content, rowTitle: RowTitle, startsOpen, }: FlexProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
85
+ export default function Flex({ direction: storedDirection, label, tabShape, gap, gapPhone, gapTablet, justify, align, wrap, share: storedShare, sharePhone, shareTablet, wrapPhone, orderPhone: storedOrderPhone, phoneRow, columns, columnsTablet, separator, stackBelow, blockSpacing, bgImage, bgImagePhone, pictureHover, darken, darkenStyle, darkenTablet, darkenPhone, darkenStyleTablet, darkenStylePhone, placement, padV2, border, borderTablet, borderPhone, pad, contained, fillHeight, shadow, shadowTablet, shadowPhone, justifyTablet, justifyPhone, alignTablet, alignPhone, wrapTablet, blockSpacingTablet, blockSpacingPhone, loop, scrollDirection, loopSeconds, loopDelay, editing, fillColor, fillColorTablet, fillColorPhone, swatch, line, upcoming, link, boxShape, boxShapePhone, boxShapeTablet, jumpHighlight, anchor, sharedSides, sharedRows, boxId, mirrorCards, content: Content, rowTitle: RowTitle, startsOpen, }: FlexProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
84
86
  export {};
@@ -1 +1 @@
1
- import{Fragment as Y,jsx as e,jsxs as xo}from"react/jsx-runtime";import{useId as Fs}from"react";import Ts from"./BoxTabs.js";import{BoxTabPaneContext as So,useBoxPaneKind as gs,useIsTabPane as Ds}from"./BoxTabPaneContext.js";import Is from"./BoxAccordionRow.js";import{boxPhoneCell as Vs,boxPhoneOrder as Ws}from"../../format/lib/content/box-phone-place.js";import{CellFillContext as we,InBoxContext as Pe,useCellOfStretchedRow as Ms,useFillsCell as Gs}from"./InBoxContext.js";import Xs,{InsideSiteColumn as _e,useInsideSiteGutter as js,useSectionRoot as Hs}from"./SiteGutterFrame.js";import{BoxSurfaceProvider as Us}from"./BoxSurfaceContext.js";import Ks from"./PictureWash.js";import{BoxCellWidthContext as Js}from"./BoxCellWidthContext.js";import{useInSiteHeader as zs}from"./PhoneMenuTools.js";import{useCardRow as Ys}from"./CardRowContext.js";import{framesItsCards as qs}from"../../format/lib/content/card-place.js";import{MirrorContext as Qs,useMirroredCopy as Zs,useUnderCardBox as ot}from"./MirrorContext.js";import{isMirroredCopy as et,mirrorCardsActs as Le,mirrorCardsOf as st,mirroredBoxClass as tt,MIRROR_ROW_CLASS as nt,ownsCard as rt}from"../../format/lib/content/mirror-cards.js";import{FRAME_BASE as $o,FRAME_GUTTER as ho}from"./BlockFrame.js";import{containerGapProps as lt}from"../../format/lib/content/container-gap.js";import{boxLayoutClasses as at,boxAlignViewClasses as ct,boxBlockSpacingClass as it,boxBlockSpacingViewClasses as mt,boxJustifyViewClasses as ut,boxWrapTabletClass as dt,boxFitContentClass as ft,boxRowColumnsClass as Ct,boxRowTabletColumnsClass as bt,boxRowTabletShareClass as pt,boxPhoneCellsShareLine as xt,boxPhoneRowClasses as X,boxPhoneRowFits as St,boxShareClasses as E,boxShareVars as $t,boxWrapClass as ht,BOX_GAP_ONLY_CLASS as wt}from"../../format/lib/content/box-layout.js";import{boxSeparatorClasses as Pt,boxSeparatorSeamClass as _t,boxSeparatorStyle as Lt,isStripBox as Rt}from"../../format/lib/content/box-separator.js";import{DEFAULT_LOOP_DELAY as yt,DEFAULT_LOOP_DIRECTION as At,DEFAULT_LOOP_SECONDS as kt,isVerticalLoop as Nt}from"../../format/lib/animation/index.js";import{LoopTrack as Ot}from"../lib/animation/LoopTrack.js";import{BOX_CARD_PAD as p,BOX_OWNS_SIDES_CLASS as vt,boxDarkenStyle as Bt,boxFillOf as Et,boxFillViews as Ft,boxPlacementClasses as Tt,boxWashViews as gt,CARD_SHADOW_CLASS as Dt,isBackgroundBox as Re}from"../../format/lib/content/box-background.js";import{boxShadowAttrs as It,boxShadowOnAnyView as Vt,boxShadowViewAttrs as Wt}from"../../format/lib/content/box-shadow.js";import{boxRunsEdgeToEdge as Mt,drawsSiteGutter as Gt}from"../../format/lib/content/site-gutter.js";import{boxShapeClass as Xt,boxShapeClasses as jt}from"../../format/lib/content/box-shape.js";import{BOX_JUMP_ATTR as Ht,BOX_LINK_ATTR as ye,BOX_LINK_CLASS as Ae,BOX_LINKED_CLASS as Ut,boxJumpBlocksClass as Kt,boxJumpCss as Jt,boxJumpSlug as zt,boxLinkOf as Yt}from"../../format/lib/content/box-link.js";import{SiteLink as qt}from"../lib/site-runtime.js";import{sectionBorderStyle as ke}from"../../format/lib/content/borders.js";import{finiteNumber as x}from"../../format/lib/finite-number.js";import{padDefaultIn as S,sectionPadAttrs as Qt}from"../lib/content/section-padding.js";import{SECTION_FILL_CLASS as q}from"../../format/lib/content/section-min-height.js";import{ON_MEDIA_INK_STYLE as Zt}from"../../format/lib/content/ink.js";import{sizedBackground as wo}from"../../format/lib/sized-image.js";import{PHOTO_HOST_ATTR as on,resolveImageTreatment as en}from"../../format/lib/content/image-treatment.js";import{BoxRail as sn,BoxRailStop as tn,RAIL_STOPS_CLASS as nn,useTimelineRail as rn}from"./TimelineRail.js";import{SHARED_PLAIN_ATTR as ln,sharedColumnsClasses as an,sharedColumnsCss as cn}from"../lib/content/box-shared-columns.js";import mn from"./PhotoHoverSheet.js";import{stackGutterClass as un,stackLineCss as dn,stackOuterClass as fn,stackRowClass as Cn,storedStackLine as bn}from"../lib/content/box-stack-line.js";const Po={"--sf-site-gutter":"0px"},pn={overflowX:"clip",overflowY:"visible"},xn={stretchedRow:!1,fillingColumn:!1,columnsRow:!1},Sn={desktop:!1,phone:!1},Ne="bg-cover bg-center bg-[image:var(--sf-box-bg)] max-view-tablet:bg-[image:var(--sf-box-bg-p)]",_o=o=>o==null||o==="",Lo=o=>!_o(o)&&Number(o)===0;function $n({children:o}){return e(Y,{children:o(Fs())})}function hn({direction:o,label:Oe,tabShape:ve,gap:Ro,gapPhone:Be,gapTablet:Q,justify:F,align:$,wrap:j,share:a,sharePhone:H,shareTablet:T,wrapPhone:Ee,orderPhone:Fe,phoneRow:g,columns:R,columnsTablet:y,separator:m,stackBelow:Te,blockSpacing:yo,bgImage:A,bgImagePhone:Ao,pictureHover:ge,darken:ko,darkenStyle:No,darkenTablet:De,darkenPhone:Ie,darkenStyleTablet:Ve,darkenStylePhone:We,placement:Me,padV2:Oo=!1,border:vo,borderTablet:Bo,borderPhone:Eo,pad:t={},contained:Z=!0,fillHeight:h=!1,shadow:oo,shadowTablet:Fo,shadowPhone:To,justifyTablet:Ge,justifyPhone:Xe,alignTablet:je,alignPhone:He,wrapTablet:Ue,blockSpacingTablet:Ke,blockSpacingPhone:Je,loop:w,scrollDirection:eo=At,loopSeconds:ze=kt,loopDelay:Ye=yt,editing:k=!1,fillColor:go,fillColorTablet:qe,fillColorPhone:Qe,line:P,upcoming:Ze,link:os,boxShape:Do,boxShapePhone:es,boxShapeTablet:ss,jumpHighlight:ts,anchor:ns,sharedSides:c=Sn,boxId:Io,mirrorCards:Vo,content:u,rowTitle:so,startsOpen:rs}){const N=k?"":Yt(os),d=h?"":jt(Do,es,ss),ls=!h&&Xt(Do)!=="",_=zt(ts,ns),U=Et(go),O=Ft(go,qe,Qe),Wo=U||O.className?{...U?{backgroundColor:U}:{},...O.style}:void 0,Mo=rn(),K=P===!0&&o!=="tabs"&&o!=="accordion",n=Re(A),J=zs(),as=Hs(),cs=Ds(),Go=gs(),l=o==="accordion",to=Gs(),is=Ms(),v=Rt(o,m),r=w==="scroll"&&o!=="tabs"&&!l,f=Ys(),ms=Zs(),us=ot(),D=rt({inCopy:f!==null,nestedCopy:f?.nested===!0,underBox:us}),no=D&&qs(f?.ownerType),Xo=Le({direction:o,separator:m,loop:w,line:P,bgImage:A,columns:R,columnsTablet:y,share:a,wrap:j},D,c.desktop)&&et(Vo,f?.index),jo=n||D?"":tt(ms,o,r?void 0:F,$),ds=Le({direction:o,separator:m,loop:w,line:P,bgImage:A,columns:R,columnsTablet:y,share:a,wrap:j},D,c.desktop)&&st(Vo)!==null,B=Ct({direction:o,separator:m,loop:w,line:P,columns:R}),C=bt({direction:o,separator:m,loop:w,line:P,columnsTablet:y}),I=pt({direction:o,separator:m,loop:w,line:P,columns:R,columnsTablet:y,share:a,shareTablet:T}),i=o==="row"&&!n&&!v&&!r&&!K&&C===""&&I===""?bn(Te):void 0,fs=js(),z=an(c,u.blockCount??0,i),Cs=z&&(!f||f.index===0)?cn(c,u.blockCount??0,i):"",Ho=C!==""?Number(y)>=2:I===""||E(T)!=="",ro=C!==""||I!=="",bs=ro&&!(C!==""&&Number(y)<2),Uo=o==="row"&&!v&&!r&&P!==!0,lo=Uo&&!c.phone&&!c.desktop?Vs(Ws(Fe,u.blockIds??[]),{tabletKeepsRow:bs,editing:k}):void 0,Ko=lo!==void 0&&!k,ps=B!==""?Number(R)>=2:E(a)!=="",Jo=!n&&!l&&!ds&&!c.desktop&&!c.phone,zo=Jo&&!r?ut(F,Ge,Xe):"",xs=Jo&&o==="row"?ct($,je,He):"",Ss=!r&&!l&&B===""&&C===""&&!c.desktop?dt(j,Ue):"",Yo=[l?"":E(a),o==="row"?ft(a):"",B,C,I,it(l?"gap":yo),Pt(o,m),l?"border-t border-line":"",zo,xs,Ss,l?"":mt(yo,Ke,Je)].filter(Boolean).join(" "),$s=Yo?` ${Yo}`:"",qo=["flex",o==="row"?v||r?"flex-row":`flex-row ${X(g,H,Ee)}`:"flex-col",ht(r||l?!1:j),n?Tt(Me??"center",o):at(r||l?void 0:F,l?void 0:$)+(jo?` ${jo}`:"")].join(" ")+$s,V=h||n||d||to?` ${q}`:"",ao=ls?` ${d}`:d?`${V} ${d}`:V,Qo=is&&o==="column"&&!n&&!r&&E(a)===""&&(typeof F=="string"&&F!=="start"||zo!==""),Zo=V||(Qo?` ${q}`:""),co=N?` ${Ut}`:"",io=n||J||Oo?"":" py-6",hs=i===void 0?"":` ${Cn(i)}`,oe=i===void 0?"":` ${un(i)}`,mo=i===void 0?"":` ${fn(i)}`,ws=`${$o}${io} ${ho}${ao}${co}${oe}${mo}`,Ps=J?`${ao}${co}${mo}`.trim():`w-full${io}${ao}${co}${mo}`,W=lt("Flex",Ro,o==="row"?"inline":"block",Be,v||r?void 0:Q),ee=$t(a,T,o==="row"?u.blockCount??0:0),se=v?{...W.style,...Lt(o,m)}:W.style,_s=ee?{...se,...ee}:se,te=(s="")=>e(u,{className:`${qo}${Xo?` ${nt}`:""}${W.className}${Zo}${hs}${s?` ${s}`:""}${K?` ${nn}`:""}${_?` ${Kt(_)}`:""}${z}`,style:_s,minEmptyHeight:120,...lo?{cell:lo}:null}),ne=Nt(eo)?"":_t(o,m),re=r?e(Ot,{direction:eo,seconds:ze,delay:Ye,editing:k,copy:s=>te(s&&ne?`${s} ${ne}`:s)}):te(),uo=o==="tabs"?e(Ts,{className:`${qo}${W.className}${to&&!h&&!n&&!d?"":V}`,style:W.style,shape:ve,children:re}):re,le=l?e(So.Provider,{value:"accordion",children:uo}):Go?e(So.Provider,{value:!1,children:uo}):uo,ae=o==="row"&&!n&&($===void 0||$==="stretch"),Ls={stretchedRow:ae,fillingColumn:o==="column"&&(to||Qo),columnsRow:B!==""||C!==""||z!==""||o==="row"&&(Array.isArray(a)||Array.isArray(T))||Ko,...Ko?{phoneCells:!0}:null,...ae&&Uo&&(u.blockCount??0)>=2&&ps?{picturesFillRow:!0}:null,...ro?{fillFrom:Ho?"tablet":"desktop"}:null,...xt(g,H)&&(!ro||Ho)?{phoneRowFills:!0}:null,...Io?{id:Io}:null},ce=e(Pe.Provider,{value:Ls,children:e(we.Provider,{value:!1,children:D?e(Qs.Provider,{value:Xo,children:le}):le})}),Rs=so?.blockCount??0,ie=Go==="accordion"&&!!so&&(k||Rs>0)?e(Is,{startsOpen:rs===!0,editing:k,title:e(Pe.Provider,{value:xn,children:e(we.Provider,{value:!1,children:e(So.Provider,{value:!1,children:e(so,{className:`min-w-0 flex-1 ${wt}`,minEmptyHeight:24})})})}),children:ce}):ce,fo=K?e(sn,{row:o==="row",stops:u.blockCount??0,children:ie}):ie,ys=Oe?.trim()||(cs?"":void 0),As={values:t,frame:io?24:0},ks=s=>Mo?e(tn,{on:Mo,future:Ze===!0,children:s}):s,Ns=s=>N.startsWith("/")?e(qt,{href:N,className:Ae,"aria-labelledby":s,[ye]:""}):e("a",{href:N,className:Ae,"aria-labelledby":s,[ye]:""}),me=(_?Jt(_):"")+Cs+(i===void 0||f&&f.index!==0?"":dn(i)),ue=me?e("style",{dangerouslySetInnerHTML:{__html:me}}):null,M=Mt({loop:w,direction:o,scrollDirection:eo,bgImage:A}),Os=c.desktop&&z!==""&&!U&&!O.className&&!ke(vo,Eo,Bo)&&!Vt(oo,Fo,To)&&!N&&!d&&!h&&!_&&!Gt(Z&&!M,fs)&&Lo(Ro)&&(_o(Q)||Lo(Q))&&Oo&&Object.values(t).every(s=>_o(s)||Lo(s)),vs=s=>({...Os?{[ln]:""}:null,...n?null:{...It(oo),...Wt(oo,Fo,To)},..._?{[Ht]:_}:null,...s?{id:s}:null}),de=B!==""?Number(R):0,Bs=X(g,H)===X(void 0),Es=(o==="column"||o==="row"&&!v&&!r&&(de===1&&Bs||de===0&&u.blockCount===1))&&!n&&!K&&!J,fe=n&&as&&!J,Ce=(s,b)=>ks(e(Xs,{contained:Z&&!M,style:M?Po:void 0,framedClass:ws,fillClass:Ps,columnClass:`${$o} ${ho}${Zo}${oe}`,tabLabel:ys,pad:n?void 0:As,border:ke(vo,Eo,Bo),outerAttrs:vs(b),box:!0,edge:Es,outerStyle:n?void 0:Wo,outerClass:n?void 0:O.className||void 0,bleed:fe,children:ue||b?xo(Y,{children:[ue,b?Ns(b):null,M?e(_e,{children:s}):s]}):M?e(_e,{children:s}):s})),be=s=>N?e($n,{children:b=>Ce(s,b)}):Ce(s);if(!n){const s=$===void 0||$==="stretch",b=(E(a)!==""||B!==""||C!=="")&&!St(g,H)&&!(I!==""&&E(T)==="")&&(s||X(g)!==X(void 0));return be((o==="row"?b:o==="column"&&s)?e(Js.Provider,{value:!0,children:fo}):fo)}const G=Bt(ko,No),Co=gt({darken:ko,darkenStyle:No,darkenTablet:De,darkenStyleTablet:Ve,darkenPhone:Ie,darkenStylePhone:We}),pe=[no?"rounded-[inherit]":"",Co.className].filter(Boolean).join(" "),bo=Re(Ao),xe=bo?{"--sf-box-bg":wo(A??""),"--sf-box-bg-p":wo(Ao??"")}:{backgroundImage:wo(A??""),backgroundSize:"cover",backgroundPosition:"center"},Se=en(void 0,void 0,ge),L=Se.className?Se:null,po=Qt({...t,top:x(t.top)??S(p.desktop,t.unit,"desktop"),bottom:x(t.bottom)??S(p.desktop,t.unit,"desktop"),topPhone:x(t.topPhone)??S(p.phone,t.unitPhone,"mobile"),bottomPhone:x(t.bottomPhone)??S(p.phone,t.unitPhone,"mobile"),left:x(t.left)??S(p.side,t.unit,"desktop"),right:x(t.right)??S(p.side,t.unit,"desktop"),leftPhone:x(t.leftPhone)??S(p.sidePhone,t.unitPhone,"mobile"),rightPhone:x(t.rightPhone)??S(p.sidePhone,t.unitPhone,"mobile")}),$e=e("div",{className:`relative z-[1] ${vt} ${po?.className??""}${h||d?` ${q}`:""}`.trimEnd(),style:G?{...po?.style,...Po,...Zt}:{...po?.style,...Po},children:fo}),he=fe&&Z?e("div",{className:`${$o} ${ho}${h||d?` ${q}`:""}`,children:$e}):$e;return be(e(Y,{children:xo("div",{className:`relative isolate overflow-hidden ${Dt}${V}${bo&&!L?` ${Ne}`:""}${O.className?` ${O.className}`:""}`,style:{...no?pn:{},...Wo,...L?{}:xe},...L?{[on]:""}:{},children:[L&&xo(Y,{children:[e(mn,{sheet:L.sheet}),e("div",{"aria-hidden":!0,className:`absolute inset-0${no?" rounded-[inherit]":""}${bo?` ${Ne}`:""} ${L.className}`,style:{...xe,...L.style??{}}})]}),e(Ks,{wash:G&&Co.className?{...G,...Co.style}:G,...pe?{className:pe}:{}}),G?e(Us,{children:he}):he]})}))}export{hn as default};
1
+ import{Fragment as so,jsx as e,jsxs as vo}from"react/jsx-runtime";import{useId as Zs}from"react";import ot from"./BoxTabs.js";import{BoxTabPaneContext as Ao,useBoxPaneKind as et,useIsTabPane as st}from"./BoxTabPaneContext.js";import tt from"./BoxAccordionRow.js";import{boxPhoneCell as nt,boxPhoneOrder as rt}from"../../format/lib/content/box-phone-place.js";import{CellFillContext as Fe,InBoxContext as Te,useCellOfStretchedRow as lt,useFillsCell as it}from"./InBoxContext.js";import ct,{InsideSiteColumn as De,useInsideSiteGutter as at,useSectionRoot as dt}from"./SiteGutterFrame.js";import{BoxSurfaceProvider as ut}from"./BoxSurfaceContext.js";import mt from"./PictureWash.js";import{BoxCellWidthContext as ft}from"./BoxCellWidthContext.js";import{useInSiteHeader as Ct}from"./PhoneMenuTools.js";import{useCardRow as ht}from"./CardRowContext.js";import{framesItsCards as bt}from"../../format/lib/content/card-place.js";import{HandedMirrorContext as xt,MirrorContext as pt,RowHandContext as Ie,boxPlace as wt,useHandedMirrorAbove as St,useHandedRows as $t,useMirroredCopy as Pt,useUnderCardBox as Rt}from"./MirrorContext.js";import{boxChildrenHand as _t,isMirroredCopy as vt,mirrorCardsActs as ge,mirrorCardsOf as At,mirroredBoxClass as Lt,MIRROR_ROW_CLASS as yt,ownsCard as kt}from"../../format/lib/content/mirror-cards.js";import{FRAME_BASE as Lo,FRAME_GUTTER as yo}from"./BlockFrame.js";import{containerGapProps as Ot}from"../../format/lib/content/container-gap.js";import{boxLayoutClasses as Nt,boxAlignViewClasses as Bt,boxBlockSpacingClass as Et,boxBlockSpacingViewClasses as Ft,boxJustifyViewClasses as Tt,boxWrapTabletClass as Dt,boxFitContentClass as It,boxRowColumnsClass as gt,boxRowTabletColumnsClass as Mt,boxRowTabletShareClass as Vt,boxPhoneCellsShareLine as Ht,boxPhoneRowClasses as U,boxPhoneRowFits as Wt,boxShareClasses as I,boxShareVars as Gt,boxWrapClass as Xt,BOX_GAP_ONLY_CLASS as jt}from"../../format/lib/content/box-layout.js";import{boxSeparatorClasses as Ut,boxSeparatorSeamClass as Kt,boxSeparatorStyle as Jt,isStripBox as zt}from"../../format/lib/content/box-separator.js";import{DEFAULT_LOOP_DELAY as Yt,DEFAULT_LOOP_DIRECTION as qt,DEFAULT_LOOP_SECONDS as Qt,isVerticalLoop as Zt}from"../../format/lib/animation/index.js";import{LoopTrack as on}from"../lib/animation/LoopTrack.js";import{BOX_CARD_PAD as S,BOX_OWNS_SIDES_CLASS as en,boxDarkenStyle as sn,boxFillOf as tn,boxFillViews as nn,boxPlacementClasses as rn,boxSwatchFill as ln,boxWashViews as cn,CARD_SHADOW_CLASS as an,isBackgroundBox as Me}from"../../format/lib/content/box-background.js";import{boxShadowAttrs as dn,boxShadowOnAnyView as un,boxShadowViewAttrs as mn}from"../../format/lib/content/box-shadow.js";import{boxRunsEdgeToEdge as fn,drawsSiteGutter as Cn}from"../../format/lib/content/site-gutter.js";import{boxShapeClass as hn,boxShapeClasses as bn}from"../../format/lib/content/box-shape.js";import{BOX_JUMP_ATTR as xn,BOX_LINK_ATTR as Ve,BOX_LINK_CLASS as He,BOX_LINKED_CLASS as pn,boxJumpBlocksClass as wn,boxJumpCss as Sn,boxJumpSlug as $n,boxLinkOf as Pn}from"../../format/lib/content/box-link.js";import{SiteLink as Rn}from"../lib/site-runtime.js";import{sectionBorderStyle as We}from"../../format/lib/content/borders.js";import{finiteNumber as $}from"../../format/lib/finite-number.js";import{padDefaultIn as P,sectionPadAttrs as _n}from"../lib/content/section-padding.js";import{SECTION_FILL_CLASS as to}from"../../format/lib/content/section-min-height.js";import{ON_MEDIA_INK_STYLE as vn}from"../../format/lib/content/ink.js";import{sizedBackground as ko}from"../../format/lib/sized-image.js";import{PHOTO_HOST_ATTR as An,resolveImageTreatment as Ln}from"../../format/lib/content/image-treatment.js";import{BoxRail as yn,BoxRailStop as kn,RAIL_STOPS_CLASS as On,useTimelineRail as Nn}from"./TimelineRail.js";import{SHARED_PLAIN_ATTR as Bn,sharedColumnsClasses as En,sharedColumnsCss as Fn,sharedRowsClasses as Tn,sharedRowsCss as Dn}from"../lib/content/box-shared-columns.js";import In from"./PhotoHoverSheet.js";import{stackGutterClass as gn,stackLineCss as Mn,stackOuterClass as Vn,stackRowClass as Hn,storedStackLine as Wn}from"../lib/content/box-stack-line.js";const Oo={"--sf-site-gutter":"0px"},Gn={overflowX:"clip",overflowY:"visible"},Xn={stretchedRow:!1,fillingColumn:!1,columnsRow:!1},jn={desktop:!1,phone:!1},Ge="bg-cover bg-center bg-[image:var(--sf-box-bg)] max-view-tablet:bg-[image:var(--sf-box-bg-p)]",No=a=>a==null||a==="",Bo=a=>!No(a)&&Number(a)===0;function Un({children:a}){return e(so,{children:a(Zs())})}function Kn({direction:a,label:Xe,tabShape:je,gap:Eo,gapPhone:Ue,gapTablet:no,justify:g,align:R,wrap:K,share:Ke,sharePhone:J,shareTablet:M,wrapPhone:Je,orderPhone:ze,phoneRow:V,columns:_,columnsTablet:O,separator:f,stackBelow:Ye,blockSpacing:Fo,bgImage:v,bgImagePhone:To,pictureHover:qe,darken:Do,darkenStyle:Io,darkenTablet:Qe,darkenPhone:Ze,darkenStyleTablet:os,darkenStylePhone:es,placement:ss,padV2:go=!1,border:Mo,borderTablet:Vo,borderPhone:Ho,pad:t={},contained:ro=!0,fillHeight:A=!1,shadow:lo,shadowTablet:Wo,shadowPhone:Go,justifyTablet:ts,justifyPhone:ns,alignTablet:rs,alignPhone:ls,wrapTablet:is,blockSpacingTablet:cs,blockSpacingPhone:as,loop:h,scrollDirection:io=qt,loopSeconds:ds=Qt,loopDelay:us=Yt,editing:N=!1,fillColor:Xo,fillColorTablet:ms,fillColorPhone:fs,swatch:Cs,line:L,upcoming:hs,link:bs,boxShape:jo,boxShapePhone:xs,boxShapeTablet:ps,jumpHighlight:ws,anchor:Ss,sharedSides:d=jn,sharedRows:$s=!1,boxId:B,mirrorCards:Uo,content:l,rowTitle:co,startsOpen:Ps}){const r=ht(),Rs=St(),Ko=Rt()&&!(Rs&&r!==null),b=$t(),z=kt({inCopy:r!==null,nestedCopy:r?.nested===!0,underBox:Ko}),Jo=r===null&&!Ko&&b?.ids&&B?b.ids.indexOf(B):-1,Y=Jo>=0&&b&&B?wt(b,B,Jo):-1,C=Y>=0?b?.hand??null:z&&b?.copies===!0?b.hand:null,o=C?.row?"row":a,u=C?.row?C.row.share:Ke,_s=C?.row?C.row.phoneReverse?[...l.blockIds??[]].reverse():void 0:ze,ao=$s&&!C?.row,E=N?"":Pn(bs),x=A?"":bn(jo,xs,ps),vs=!A&&hn(jo)!=="",y=$n(ws,Ss),zo=ln({swatch:Cs},r?.row),q=zo??tn(Xo),F=zo?{className:"",style:{}}:nn(Xo,ms,fs),Yo=q||F.className?{...q?{backgroundColor:q}:{},...F.style}:void 0,qo=Nn(),Q=L===!0&&o!=="tabs"&&o!=="accordion",n=Me(v),Z=Ct(),As=dt(),Ls=st(),Qo=et(),c=o==="accordion",uo=it(),ys=lt(),T=zt(o,f),i=h==="scroll"&&o!=="tabs"&&!c,ks=Pt(),oo=z||Y>=0&&C!==null,Zo=C?C.mirror:Uo,Os=Y>=0?Y:r?.index,mo=z&&bt(r?.ownerType),oe=ge({direction:o,separator:f,loop:h,line:L,bgImage:v,columns:_,columnsTablet:O,share:u,wrap:K},oo,d.desktop)&&vt(Zo,Os),ee=n||oo?"":Lt(ks,o,i?void 0:g,R),Ns=ge({direction:o,separator:f,loop:h,line:L,bgImage:v,columns:_,columnsTablet:O,share:u,wrap:K},oo,d.desktop)&&At(Zo)!==null,D=gt({direction:o,separator:f,loop:h,line:L,columns:_}),p=Mt({direction:o,separator:f,loop:h,line:L,columnsTablet:O}),H=Vt({direction:o,separator:f,loop:h,line:L,columns:_,columnsTablet:O,share:u,shareTablet:M}),m=o==="row"&&!n&&!T&&!i&&!Q&&p===""&&H===""?Wn(Ye):void 0,Bs=at(),eo=En(d,l.blockCount??0,m),Es=(eo&&(!r||r.index===0)?Fn(d,l.blockCount??0,m):"")+(ao&&(!r||r.index===0)?Dn(ao,l.blockCount??0):""),se=Tn(ao,l.blockCount??0),te=p!==""?Number(O)>=2:H===""||I(M)!=="",fo=p!==""||H!=="",Fs=fo&&!(p!==""&&Number(O)<2),ne=o==="row"&&!T&&!i&&L!==!0,Co=ne&&!d.phone&&!d.desktop?nt(rt(_s,l.blockIds??[]),{tabletKeepsRow:Fs,editing:N}):void 0,re=Co!==void 0&&!N,Ts=D!==""?Number(_)>=2:I(u)!=="",le=!n&&!c&&!Ns&&!d.desktop&&!d.phone,ie=le&&!i?Tt(g,ts,ns):"",Ds=le&&o==="row"?Bt(R,rs,ls):"",Is=!i&&!c&&D===""&&p===""&&!d.desktop?Dt(K,is):"",ce=[c?"":I(u),o==="row"?It(u):"",D,p,H,Et(c?"gap":Fo),Ut(o,f),c?"border-t border-line":"",ie,Ds,Is,c?"":Ft(Fo,cs,as)].filter(Boolean).join(" "),gs=ce?` ${ce}`:"",ae=["flex",o==="row"?T||i?"flex-row":`flex-row ${U(V,J,Je)}`:"flex-col",Xt(i||c?!1:K),n?rn(ss??"center",o):Nt(i||c?void 0:g,c?void 0:R)+(ee?` ${ee}`:"")].join(" ")+gs,W=A||n||x||uo?` ${to}`:"",ho=vs?` ${x}`:x?`${W} ${x}`:W,de=ys&&o==="column"&&!n&&!i&&I(u)===""&&(typeof g=="string"&&g!=="start"||ie!==""),ue=W||(de?` ${to}`:""),bo=E?` ${pn}`:"",xo=n||Z||go?"":" py-6",Ms=m===void 0?"":` ${Hn(m)}`,me=m===void 0?"":` ${gn(m)}`,po=m===void 0?"":` ${Vn(m)}`,Vs=`${Lo}${xo} ${yo}${ho}${bo}${me}${po}`,Hs=Z?`${ho}${bo}${po}`.trim():`w-full${xo}${ho}${bo}${po}`,G=Ot("Flex",Eo,o==="row"?"inline":"block",Ue,T||i?void 0:no),fe=Gt(u,M,o==="row"?l.blockCount??0:0),Ce=T?{...G.style,...Jt(o,f)}:G.style,Ws=fe?{...Ce,...fe}:Ce,he=(s="")=>e(l,{className:`${ae}${oe?` ${yt}`:""}${G.className}${ue}${Ms}${s?` ${s}`:""}${Q?` ${On}`:""}${y?` ${wn(y)}`:""}${eo}${se}`,style:Ws,minEmptyHeight:120,...Co?{cell:Co}:null}),be=Zt(io)?"":Kt(o,f),xe=i?e(on,{direction:io,seconds:ds,delay:us,editing:N,copy:s=>he(s&&be?`${s} ${be}`:s)}):he(),wo=o==="tabs"?e(ot,{className:`${ae}${G.className}${uo&&!A&&!n&&!x?"":W}`,style:G.style,shape:je,children:xe}):xe,So=c?e(Ao.Provider,{value:"accordion",children:wo}):Qo?e(Ao.Provider,{value:!1,children:wo}):wo,pe=o==="row"&&!n&&(R===void 0||R==="stretch"),Gs={stretchedRow:pe,fillingColumn:o==="column"&&(uo||de),columnsRow:D!==""||p!==""||eo!==""||se!==""||o==="row"&&(Array.isArray(u)||Array.isArray(M))||re,...re?{phoneCells:!0}:null,...pe&&ne&&(l.blockCount??0)>=2&&Ts?{picturesFillRow:!0}:null,...fo?{fillFrom:te?"tablet":"desktop"}:null,...Ht(V,J)&&(!fo||te)?{phoneRowFills:!0}:null,...B?{id:B}:null},we=r===null?_t({direction:o,loop:h,bgImage:v,columns:_,mirrorCards:Uo},!1):null,Se=we?e(Ie.Provider,{value:{hand:we,ids:l.blockIds??[],boxes:[]},children:So}):b?e(Ie.Provider,{value:null,children:So}):So,$e=e(Te.Provider,{value:Gs,children:e(Fe.Provider,{value:!1,children:oo?e(pt.Provider,{value:oe,children:e(xt.Provider,{value:!z,children:Se})}):Se})}),Xs=co?.blockCount??0,Pe=Qo==="accordion"&&!!co&&(N||Xs>0)?e(tt,{startsOpen:Ps===!0,editing:N,title:e(Te.Provider,{value:Xn,children:e(Fe.Provider,{value:!1,children:e(Ao.Provider,{value:!1,children:e(co,{className:`min-w-0 flex-1 ${jt}`,minEmptyHeight:24})})})}),children:$e}):$e,$o=Q?e(yn,{row:o==="row",stops:l.blockCount??0,children:Pe}):Pe,js=Xe?.trim()||(Ls?"":void 0),Us={values:t,frame:xo?24:0},Ks=s=>qo?e(kn,{on:qo,future:hs===!0,children:s}):s,Js=s=>E.startsWith("/")?e(Rn,{href:E,className:He,"aria-labelledby":s,[Ve]:""}):e("a",{href:E,className:He,"aria-labelledby":s,[Ve]:""}),Re=(y?Sn(y):"")+Es+(m===void 0||r&&r.index!==0?"":Mn(m)),_e=Re?e("style",{dangerouslySetInnerHTML:{__html:Re}}):null,X=fn({loop:h,direction:o,scrollDirection:io,bgImage:v}),zs=d.desktop&&eo!==""&&!q&&!F.className&&!We(Mo,Ho,Vo)&&!un(lo,Wo,Go)&&!E&&!x&&!A&&!y&&!Cn(ro&&!X,Bs)&&Bo(Eo)&&(No(no)||Bo(no))&&go&&Object.values(t).every(s=>No(s)||Bo(s)),Ys=s=>({...zs?{[Bn]:""}:null,...n?null:{...dn(lo),...mn(lo,Wo,Go)},...y?{[xn]:y}:null,...s?{id:s}:null}),ve=D!==""?Number(_):0,qs=U(V,J)===U(void 0),Qs=(o==="column"||o==="row"&&!T&&!i&&(ve===1&&qs||ve===0&&l.blockCount===1))&&!n&&!Q&&!Z,Ae=n&&As&&!Z,Le=(s,w)=>Ks(e(ct,{contained:ro&&!X,style:X?Oo:void 0,framedClass:Vs,fillClass:Hs,columnClass:`${Lo} ${yo}${ue}${me}`,tabLabel:js,pad:n?void 0:Us,border:We(Mo,Ho,Vo),outerAttrs:Ys(w),box:!0,edge:Qs,outerStyle:n?void 0:Yo,outerClass:n?void 0:F.className||void 0,bleed:Ae,children:_e||w?vo(so,{children:[_e,w?Js(w):null,X?e(De,{children:s}):s]}):X?e(De,{children:s}):s})),ye=s=>E?e(Un,{children:w=>Le(s,w)}):Le(s);if(!n){const s=R===void 0||R==="stretch",w=(I(u)!==""||D!==""||p!=="")&&!Wt(V,J)&&!(H!==""&&I(M)==="")&&(s||U(V)!==U(void 0));return ye((o==="row"?w:o==="column"&&s)?e(ft.Provider,{value:!0,children:$o}):$o)}const j=sn(Do,Io),Po=cn({darken:Do,darkenStyle:Io,darkenTablet:Qe,darkenStyleTablet:os,darkenPhone:Ze,darkenStylePhone:es}),ke=[mo?"rounded-[inherit]":"",Po.className].filter(Boolean).join(" "),Ro=Me(To),Oe=Ro?{"--sf-box-bg":ko(v??""),"--sf-box-bg-p":ko(To??"")}:{backgroundImage:ko(v??""),backgroundSize:"cover",backgroundPosition:"center"},Ne=Ln(void 0,void 0,qe),k=Ne.className?Ne:null,_o=_n({...t,top:$(t.top)??P(S.desktop,t.unit,"desktop"),bottom:$(t.bottom)??P(S.desktop,t.unit,"desktop"),topPhone:$(t.topPhone)??P(S.phone,t.unitPhone,"mobile"),bottomPhone:$(t.bottomPhone)??P(S.phone,t.unitPhone,"mobile"),left:$(t.left)??P(S.side,t.unit,"desktop"),right:$(t.right)??P(S.side,t.unit,"desktop"),leftPhone:$(t.leftPhone)??P(S.sidePhone,t.unitPhone,"mobile"),rightPhone:$(t.rightPhone)??P(S.sidePhone,t.unitPhone,"mobile")}),Be=e("div",{className:`relative z-[1] ${en} ${_o?.className??""}${A||x?` ${to}`:""}`.trimEnd(),style:j?{..._o?.style,...Oo,...vn}:{..._o?.style,...Oo},children:$o}),Ee=Ae&&ro?e("div",{className:`${Lo} ${yo}${A||x?` ${to}`:""}`,children:Be}):Be;return ye(e(so,{children:vo("div",{className:`relative isolate overflow-hidden ${an}${W}${Ro&&!k?` ${Ge}`:""}${F.className?` ${F.className}`:""}`,style:{...mo?Gn:{},...Yo,...k?{}:Oe},...k?{[An]:""}:{},children:[k&&vo(so,{children:[e(In,{sheet:k.sheet}),e("div",{"aria-hidden":!0,className:`absolute inset-0${mo?" rounded-[inherit]":""}${Ro?` ${Ge}`:""} ${k.className}`,style:{...Oe,...k.style??{}}})]}),e(mt,{wash:j&&Po.className?{...j,...Po.style}:j,...ke?{className:ke}:{}}),j?e(ut,{children:Ee}):Ee]})}))}export{Kn as default};
@@ -1,3 +1,4 @@
1
+ import type { SlotComponent } from "efficient-easel/blocks";
1
2
  import type { MapThemeMode } from "../../format/lib/map-styles.js";
2
3
  import { type FootprintOffice } from "../../format/lib/content/footprint.js";
3
4
  import { type DealerListPosition, type FootprintSource } from "../lib/dealer-source.js";
@@ -17,5 +18,7 @@ export interface FootprintProps {
17
18
  noMatchText?: string;
18
19
  listPosition?: DealerListPosition;
19
20
  showDistance?: boolean;
21
+ template?: SlotComponent;
22
+ ownerId?: string;
20
23
  }
21
- export default function Footprint({ sectionNumber, heading, tagline, offices, mapTheme, padTop, padBottom, editing, omitHead, source, search, searchHint, noMatchText, listPosition, showDistance, }: FootprintProps): import("react").JSX.Element | null;
24
+ export default function Footprint({ sectionNumber, heading, tagline, offices, mapTheme, padTop, padBottom, editing, omitHead, source, search, searchHint, noMatchText, listPosition, showDistance, template, ownerId, }: FootprintProps): import("react").JSX.Element | null;
@@ -1 +1 @@
1
- "use client";import{jsx as e,jsxs as o}from"react/jsx-runtime";import{useEffect as L,useMemo as F,useState as M}from"react";import{footprintPins as A}from"../../format/lib/content/footprint.js";import{bucketByGroup as B,groupColsClass as G}from"../../format/lib/locations-grid.js";import K from"./EditorialSectionHead.js";import{LocationGroupHeader as P}from"./LocationGroupHeader.js";import{renderGold as q,renderHeadline as D}from"./goldPhrases.js";import Q from"./PartStyledText.js";import{say as j}from"../../format/lib/editor-words.js";import{parseFootprintSource as I}from"../lib/dealer-source.js";import O from"./DealerFinder.js";import W from"./SiteMap.js";const n={bodySmall:"text-[length:var(--size-body,10px)]",bodyLarge:"text-[length:var(--size-body,18px)]",labelSmall:"text-[length:var(--size-label,11px)]",labelLarge:"text-[length:var(--size-label,12px)]"};function X({sectionNumber:c="",heading:i="",tagline:f="",offices:a=[],mapTheme:x="auto",padTop:g,padBottom:d,editing:p,omitHead:v=!1,source:s,search:u=!1,searchHint:r="",noMatchText:k="",listPosition:m="below",showDistance:C=!0}){const h=I(s)==="dealers",H=typeof g=="number"?g:120,T=typeof d=="number"?d:120,[w,N]=M(null),_=a.length===0&&!h&&!c&&!i&&!f;if(L(()=>{N(t=>t!==null&&t>=a.length?null:t)},[a]),_&&!p)return null;const z=B(a,t=>String(t.group??""),()=>"");return e("section",{className:"relative z-[2] bg-bg",children:o("div",{className:"mx-auto max-w-[var(--sf-site-width,1600px)] border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]",style:{paddingTop:H,paddingBottom:T},children:[!v&&(c||i||f)&&e(K,{num:c,title:i?D(i):void 0,desc:f||void 0,spaceBelow:"mb-12"}),h?e(O,{mapLabel:i.replace(/[=*]/g,"").replace(/\s+/g," ").trim(),mapTheme:x,search:u,searchHint:r,noMatchText:k,listPosition:m,showDistance:C,editing:p}):e(Z,{offices:a,mapLabel:i.replace(/[=*]/g,"").replace(/\s+/g," ").trim(),mapTheme:x,activeIndex:w,onSelect:N,editing:p}),!h&&a.length>0&&e("div",{className:"mt-12 flex flex-col gap-8",children:z.map((t,E)=>o("div",{children:[t.key&&e(P,{groupKey:t.key,count:t.items.length}),e("div",{className:["grid gap-[2px] bg-bg",G(t.items.length),t.items.length>2?"max-view-desktop:grid-cols-2 max-[700px]:grid-cols-1":t.items.length===2?"max-[700px]:grid-cols-1":""].join(" "),children:t.items.map(({item:l,index:y})=>{const S=w===y,b=l.href&&l.linkLabel?{href:l.href,label:l.linkLabel}:null,$=o("button",{type:"button",onClick:()=>N(y),"aria-pressed":S,className:["flex flex-col gap-1.5 bg-bg px-6 py-5 text-left transition-colors outline outline-1 -outline-offset-1",S?"outline-accent":"outline-transparent hover:outline-line",b?"w-full pb-11":""].filter(Boolean).join(" "),children:[o("span",{className:`flex items-center gap-2.5 font-mono ${n.labelSmall} uppercase tracking-[0.28em]`,children:[l.hq&&e("span",{className:`border border-accent bg-accent px-1.5 py-0.5 ${n.bodySmall} text-bg`,children:"HQ"}),l.role&&e("span",{className:"text-accent",children:l.role})]}),l.city&&e("span",{className:`font-display ${n.bodyLarge} font-medium leading-[1.2] tracking-[-0.01em] text-fg`,children:e(Q,{value:l.city,children:l.city})}),l.country&&e("span",{className:`font-mono ${n.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:l.country}),l.address&&e("span",{className:`font-mono ${n.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:q(l.address)})]},b?void 0:y);return b?o("div",{className:"relative flex",children:[$,e("a",{href:b.href,className:`absolute bottom-5 left-6 font-mono ${n.labelSmall} uppercase tracking-[0.24em] text-accent hover:underline`,children:`→ ${b.label}`})]},y):$})})]},t.key?`g:${t.key}`:`ungrouped:${E}`))}),!h&&a.length===0&&p&&e("p",{className:`mt-8 font-mono ${n.labelLarge} uppercase tracking-[0.24em] text-fg-dim`,children:j("Add an office in the inspector")})]})})}function Z({offices:c,mapLabel:i,mapTheme:f,activeIndex:a,onSelect:x,editing:g}){const d=F(()=>A(c),[c]),[p,v]=M(null),s=a===null?null:String(a),u=s!==null&&d.some(m=>m.key===s);if(L(()=>{s!==null&&u&&v(m=>({key:s,n:(m?.n??0)+1}))},[s,u]),d.length===0)return g?e("div",{className:"relative flex aspect-[16/9] w-full items-center justify-center overflow-hidden border border-line bg-bg px-6 text-center max-view-tablet:aspect-[4/5]",children:e("span",{className:`font-mono ${n.labelLarge} uppercase tracking-[0.24em] text-fg-dim`,children:j("Add office coordinates to plot the map")})}):null;const r=u&&a!==null?c[a]:null,k=r?o("div",{className:"flex items-start gap-3 border border-line bg-bg px-3.5 py-2.5 text-fg shadow-[0_8px_24px_rgba(0,0,0,.4)]",children:[o("div",{className:"min-w-0 flex-1",children:[o("div",{className:`flex items-center gap-2 font-mono ${n.labelSmall} uppercase tracking-[0.28em]`,children:[r.hq&&e("span",{className:`bg-accent px-1.5 py-px ${n.bodySmall} text-bg`,children:"HQ"}),r.role&&e("span",{className:"text-accent",children:r.role})]}),r.city&&e("div",{className:`mt-1.5 font-display ${n.bodyLarge} font-medium leading-[1.2] text-fg`,children:r.city}),r.country&&e("div",{className:`mt-1 font-mono ${n.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:r.country})]}),e("button",{type:"button",onClick:()=>x(null),"aria-label":"Close",className:"-mr-1 grid h-6 w-6 shrink-0 place-items-center text-fg-dim hover:text-fg",children:e("svg",{"aria-hidden":!0,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:e("path",{d:"M2 2l8 8M10 2l-8 8"})})})]}):null;return e(W,{pins:d,mapTheme:f,ariaLabel:i||"Offices",className:"sf-card relative aspect-[16/9] w-full overflow-hidden border border-line max-view-tablet:aspect-[4/5]",selectedKey:u?s:null,focus:p,onSelect:m=>x(Number(m)),card:k})}export{X as default};
1
+ "use client";import{jsx as t,jsxs as m}from"react/jsx-runtime";import{useEffect as T,useMemo as B,useState as C}from"react";import{CardTemplateRows as I}from"./CardRowContext.js";import{footprintCardRow as K,footprintPins as O}from"../../format/lib/content/footprint.js";import{bucketByGroup as P,groupColsClass as q}from"../../format/lib/locations-grid.js";import D from"./EditorialSectionHead.js";import{LocationGroupHeader as Q}from"./LocationGroupHeader.js";import{renderGold as R,renderHeadline as W}from"./goldPhrases.js";import X from"./PartStyledText.js";import{say as j}from"../../format/lib/editor-words.js";import{parseFootprintSource as Z}from"../lib/dealer-source.js";import J from"./DealerFinder.js";import U from"./SiteMap.js";const a={bodySmall:"text-[length:var(--size-body,10px)]",bodyLarge:"text-[length:var(--size-body,18px)]",labelSmall:"text-[length:var(--size-label,11px)]",labelLarge:"text-[length:var(--size-label,12px)]"};function V({sectionNumber:d="",heading:i="",tagline:g="",offices:n=[],mapTheme:b="auto",padTop:h,padBottom:u,editing:f,omitHead:w=!1,source:o,search:x=!1,searchHint:r="",noMatchText:N="",listPosition:p="below",showDistance:F=!0,template:G,ownerId:H=""}){const y=Z(o)==="dealers",_=typeof h=="number"?h:120,z=typeof u=="number"?u:120,[S,v]=C(null),E=n.length===0&&!y&&!d&&!i&&!g;if(T(()=>{v(e=>e!==null&&e>=n.length?null:e)},[n]),E&&!f)return null;const L=P(n,e=>String(e.group??""),()=>""),A=(e,l)=>{const s=S===l,c=e.href&&e.linkLabel?{href:e.href,label:e.linkLabel}:null,k=m("button",{type:"button",onClick:()=>v(l),"aria-pressed":s,className:["flex flex-col gap-1.5 bg-bg px-6 py-5 text-left transition-colors outline outline-1 -outline-offset-1",s?"outline-accent":"outline-transparent hover:outline-line",c?"w-full pb-11":""].filter(Boolean).join(" "),children:[m("span",{className:`flex items-center gap-2.5 font-mono ${a.labelSmall} uppercase tracking-[0.28em]`,children:[e.hq&&t("span",{className:`border border-accent bg-accent px-1.5 py-0.5 ${a.bodySmall} text-bg`,children:"HQ"}),e.role&&t("span",{className:"text-accent",children:e.role})]}),e.city&&t("span",{className:`font-display ${a.bodyLarge} font-medium leading-[1.2] tracking-[-0.01em] text-fg`,children:t(X,{value:e.city,children:e.city})}),e.country&&t("span",{className:`font-mono ${a.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:e.country}),e.address&&t("span",{className:`font-mono ${a.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:R(e.address)})]},c?void 0:l);return c?m("div",{className:"relative flex",children:[k,t("a",{href:c.href,className:`absolute bottom-5 left-6 font-mono ${a.labelSmall} uppercase tracking-[0.24em] text-accent hover:underline`,children:`→ ${c.label}`})]},l):k},$=L.flatMap(e=>e.items),M=e=>t("div",{className:"mt-12 flex flex-col gap-8",children:L.map((l,s)=>m("div",{children:[l.key&&t(Q,{groupKey:l.key,count:l.items.length}),t("div",{className:["grid gap-[2px] bg-bg",q(l.items.length),l.items.length>2?"max-view-desktop:grid-cols-2 max-[700px]:grid-cols-1":l.items.length===2?"max-[700px]:grid-cols-1":""].join(" "),children:e(l)})]},l.key?`g:${l.key}`:`ungrouped:${s}`))});return t("section",{className:"relative z-[2] bg-bg",children:m("div",{className:"mx-auto max-w-[var(--sf-site-width,1600px)] border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]",style:{paddingTop:_,paddingBottom:z},children:[!w&&(d||i||g)&&t(D,{num:d,title:i?W(i):void 0,desc:g||void 0,spaceBelow:"mb-12"}),y?t(J,{mapLabel:i.replace(/[=*]/g,"").replace(/\s+/g," ").trim(),mapTheme:b,search:x,searchHint:r,noMatchText:N,listPosition:p,showDistance:F,editing:f}):t(Y,{offices:n,mapLabel:i.replace(/[=*]/g,"").replace(/\s+/g," ").trim(),mapTheme:b,activeIndex:S,onSelect:v,editing:f}),!y&&n.length>0&&t(I,{ownerId:H,ownerType:"Footprint",Template:G,rows:$.map(({item:e})=>K(e)),states:$.map(({index:e})=>S===e?{selected:!0}:void 0),actions:$.map(({index:e})=>({press:()=>v(e)})),fallback:M(e=>e.items.map(({item:l,index:s})=>A(l,s))),children:e=>{const l=e;let s=0;return M(c=>{const k=l.slice(s,s+c.items.length);return s+=c.items.length,k})}}),!y&&n.length===0&&f&&t("p",{className:`mt-8 font-mono ${a.labelLarge} uppercase tracking-[0.24em] text-fg-dim`,children:j("Add an office in the inspector")})]})})}function Y({offices:d,mapLabel:i,mapTheme:g,activeIndex:n,onSelect:b,editing:h}){const u=B(()=>O(d),[d]),[f,w]=C(null),o=n===null?null:String(n),x=o!==null&&u.some(p=>p.key===o);if(T(()=>{o!==null&&x&&w(p=>({key:o,n:(p?.n??0)+1}))},[o,x]),u.length===0)return h?t("div",{className:"relative flex aspect-[16/9] w-full items-center justify-center overflow-hidden border border-line bg-bg px-6 text-center max-view-tablet:aspect-[4/5]",children:t("span",{className:`font-mono ${a.labelLarge} uppercase tracking-[0.24em] text-fg-dim`,children:j("Add office coordinates to plot the map")})}):null;const r=x&&n!==null?d[n]:null,N=r?m("div",{className:"flex items-start gap-3 border border-line bg-bg px-3.5 py-2.5 text-fg shadow-[0_8px_24px_rgba(0,0,0,.4)]",children:[m("div",{className:"min-w-0 flex-1",children:[m("div",{className:`flex items-center gap-2 font-mono ${a.labelSmall} uppercase tracking-[0.28em]`,children:[r.hq&&t("span",{className:`bg-accent px-1.5 py-px ${a.bodySmall} text-bg`,children:"HQ"}),r.role&&t("span",{className:"text-accent",children:r.role})]}),r.city&&t("div",{className:`mt-1.5 font-display ${a.bodyLarge} font-medium leading-[1.2] text-fg`,children:r.city}),r.country&&t("div",{className:`mt-1 font-mono ${a.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:r.country})]}),t("button",{type:"button",onClick:()=>b(null),"aria-label":"Close",className:"-mr-1 grid h-6 w-6 shrink-0 place-items-center text-fg-dim hover:text-fg",children:t("svg",{"aria-hidden":!0,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:t("path",{d:"M2 2l8 8M10 2l-8 8"})})})]}):null;return t(U,{pins:u,mapTheme:g,ariaLabel:i||"Offices",className:"sf-card relative aspect-[16/9] w-full overflow-hidden border border-line max-view-tablet:aspect-[4/5]",selectedKey:x?o:null,focus:f,onSelect:p=>b(Number(p)),card:N})}export{V as default};
@@ -15,8 +15,8 @@ export declare function heroMediaReading(p: {
15
15
  onClick: boolean;
16
16
  youTubeId: string | null;
17
17
  backgroundFile: boolean;
18
- desktopLayout: "side" | "one" | "stacked";
19
- phoneLayout: "side" | "one" | "stacked";
18
+ desktopLayout: "one" | "side" | "stacked";
19
+ phoneLayout: "one" | "side" | "stacked";
20
20
  twoPictures: boolean;
21
21
  };
22
22
  export declare function heroPartEntrance(partMotion: Record<string, unknown> | undefined, part: HeroMediaPart): {
@@ -0,0 +1,4 @@
1
+ import type { ReactNode } from "react";
2
+ export declare function JoinBox({ children }: {
3
+ children: ReactNode;
4
+ }): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ import{jsx as r}from"react/jsx-runtime";import{TICKER_JOIN_BOX_CLASS as i}from"../../format/lib/sections/ticker-join.js";function s({children:o}){return r("div",{className:i,children:o})}export{s as JoinBox};
@@ -1 +1 @@
1
- "use client";import{jsx as r}from"react/jsx-runtime";import{useContext as I}from"react";import{SiteLink as g}from"../lib/site-runtime.js";import h,{FOOTER_LOGO_PX as O,WORDMARK_FIT_FLOOR_PX as _}from"./Logo.js";import{media as N}from"../lib/media.js";import{BoxSurfaceContext as B}from"./BoxSurfaceContext.js";import{useBoxCellHasWidth as D}from"./BoxCellWidthContext.js";import{useInSiteHeader as H}from"./PhoneMenuTools.js";import{useSiteLogo as W}from"./SiteLogoContext.js";import{useLogoWall as j}from"./LogoWallContext.js";import{LogoWallMark as y}from"./Logos.js";import{alignViewClasses as x,BLOCK_ALIGN_JUSTIFY as F}from"../../format/lib/content/block-align.js";function R(t){const e=j();if(!e)return r(T,{...t});const n=(t.src??"").trim();return r("div",{className:"text-center",children:r(y,{src:n||void 0,alt:t.alt,look:e.look,logoHeight:e.logoHeight,grayscale:e.grayscale})})}function T({src:t,alt:e,href:n,heightPx:p=O,reverse:w=!0,align:s,alignTablet:c,alignPhone:m,color:L=null}){const i=W(),f=(t??"").trim(),l=f?{src:N(f),reversedSrc:null,inkIsDark:null,wordmark:e?.trim()||null}:{src:i.src,reversedSrc:i.reversedSrc,inkIsDark:i.inkIsDark,wordmark:i.wordmark},S=I(B),d=H(),v=D(),o=!d&&v,a=r(h,{variant:"footer",sizePx:p,src:l.src,reverse:w,color:L,reversedSrc:l.reversedSrc,inkIsDark:l.inkIsDark,wordmark:l.wordmark,siteName:i.siteName,fitToContainer:d,fitWordmarkToContainer:o,fitFloorPx:o?_:void 0,...S?.dark?{onLightSurface:!1}:{}}),k=o?"inline-flex max-w-full overflow-x-clip":"inline-flex",u=n?r(g,{href:n,className:k,children:a}):o?r("span",{className:k,children:a}):a;if(!s&&!o&&!x("justify",s,c,m))return u;const C=["flex min-w-0",s?F[s]:"",x("justify",s,c,m),o?"[container-type:inline-size]":""].filter(Boolean).join(" ");return r("div",{className:C,children:u})}export{R as default};
1
+ "use client";import{jsx as r}from"react/jsx-runtime";import{useContext as I}from"react";import{SiteLink as g}from"../lib/site-runtime.js";import h,{FOOTER_LOGO_PX as O,WORDMARK_FIT_FLOOR_PX as _}from"./Logo.js";import{media as N}from"../lib/media.js";import{BoxSurfaceContext as B}from"./BoxSurfaceContext.js";import{useBoxCellHasWidth as D}from"./BoxCellWidthContext.js";import{useInSiteHeader as H}from"./PhoneMenuTools.js";import{useSiteLogo as W}from"./SiteLogoContext.js";import{useLogoWall as j}from"./LogoWallContext.js";import{LogoWallMark as y}from"./Logos.js";import{useCardRow as F}from"./CardRowContext.js";import{alignViewClasses as x,BLOCK_ALIGN_JUSTIFY as R}from"../../format/lib/content/block-align.js";function T(t){const o=j(),n=F();if(!o)return r(P,{...t});const l=(t.src??"").trim();return r("div",{className:"text-center",children:r(y,{src:l||void 0,alt:t.alt,look:o.look,logoHeight:o.logoHeight,grayscale:o.grayscale,kind:n?.row.kind})})}function P({src:t,alt:o,href:n,heightPx:l=O,reverse:p=!0,align:i,alignTablet:m,alignPhone:f,color:L=null}){const s=W(),d=(t??"").trim(),a=d?{src:N(d),reversedSrc:null,inkIsDark:null,wordmark:o?.trim()||null}:{src:s.src,reversedSrc:s.reversedSrc,inkIsDark:s.inkIsDark,wordmark:s.wordmark},S=I(B),k=H(),v=D(),e=!k&&v,c=r(h,{variant:"footer",sizePx:l,src:a.src,reverse:p,color:L,reversedSrc:a.reversedSrc,inkIsDark:a.inkIsDark,wordmark:a.wordmark,siteName:s.siteName,fitToContainer:k,fitWordmarkToContainer:e,fitFloorPx:e?_:void 0,...S?.dark?{onLightSurface:!1}:{}}),u=e?"inline-flex max-w-full overflow-x-clip":"inline-flex",w=n?r(g,{href:n,className:u,children:c}):e?r("span",{className:u,children:c}):c;if(!i&&!e&&!x("justify",i,m,f))return w;const C=["flex min-w-0",i?R[i]:"",x("justify",i,m,f),e?"[container-type:inline-size]":""].filter(Boolean).join(" ");return r("div",{className:C,children:w})}export{T as default};
@@ -16,15 +16,17 @@ interface LogosProps {
16
16
  logos?: SlotComponent;
17
17
  look?: LogoLook;
18
18
  omitHead?: boolean;
19
+ cards?: ReactNode;
19
20
  }
20
- export default function Logos({ items, contained, heading, columns, grayscale, logoHeight, bandPadding, logos: LogoBlocks, look, omitHead, }: LogosProps): import("react").JSX.Element;
21
+ export default function Logos({ items, contained, heading, columns, grayscale, logoHeight, bandPadding, logos: LogoBlocks, look, omitHead, cards, }: LogosProps): import("react").JSX.Element;
21
22
  export declare const CARD_WORDS_CLASS = "font-mono text-[12px] uppercase tracking-[0.18em]";
22
- export declare function LogoWallMark({ src, alt, look, logoHeight, grayscale, mark, }: {
23
+ export declare function LogoWallMark({ src, alt, look, logoHeight, grayscale, kind, mark, }: {
23
24
  src?: string;
24
25
  alt?: string;
25
26
  look: LogoLook;
26
27
  logoHeight?: number;
27
28
  grayscale?: boolean;
29
+ kind?: string;
28
30
  mark?: ReactNode;
29
31
  }): import("react").JSX.Element;
30
32
  export {};
@@ -1 +1 @@
1
- import{jsx as r,jsxs as S}from"react/jsx-runtime";import{PaymentMark as w,paymentMarkItems as C}from"efficient-shell/icons/payment";import b from"./BlockFrame.js";import{renderChrome as k,renderGold as M,renderHeadline as T}from"./goldPhrases.js";import{LogoWallProvider as j}from"./LogoWallContext.js";import{EMPTY_ELSE_CLASS as v,EMPTY_HIDES_CLASS as z,EmptyHidesStyle as G}from"../lib/content/empty-hides.js";import{media as y}from"../lib/media.js";import{sizedImage as h}from"../../format/lib/sized-image.js";import{stripMarkup as g}from"../../format/lib/markup.js";import{DEFAULT_LOGO_LOOK as R}from"../../format/lib/sections/logo-look.js";const _={label:"text-[length:var(--size-label,13px)]"},c="sf-logo-wall",I="sf-logo-items",$="flex flex-wrap items-center justify-center",m="plain",p={plain:{x:3.5,y:2},cards:{x:.75,y:.75}},L=t=>({columnGap:`${p[t].x}rem`,rowGap:`${p[t].y}rem`}),E=(t,e)=>`calc((100% - ${(t-1)*p[e].x}rem) / ${t})`;function D({items:t,contained:e,heading:l,columns:a,grayscale:s,logoHeight:n,bandPadding:o,logos:f,look:i=R,omitHead:d=!1}){const A=a!=null?{flex:`0 0 ${E(a,m)}`}:void 0,x=!d;return S(b,{contained:e,className:x&&o==null?"py-10":"",style:!x||o==null?void 0:{paddingTop:`${o}px`,paddingBottom:`${o}px`},children:[!d&&l!=null&&l!==""?r("h2",{className:`mb-8 text-center font-mono ${_.label} uppercase tracking-[0.2em] text-fg-dim`,children:T(l,!1)}):null,f?S(j,{value:{look:i,logoHeight:n,grayscale:s},children:[r(G,{}),a!=null?r("style",{children:`.${c}-c${a}>*{flex:0 0 ${E(a,i)}}`}):null,r(f,{className:[c,z,a!=null?`${c}-c${a}`:"",$].filter(Boolean).join(" "),style:L(i),minEmptyHeight:80})]}):null,r("div",{className:`${I} ${v} ${$}`,style:L(m),children:(t??[]).map((u,W)=>r("div",{className:"text-center",style:A,children:r(B,{src:u.src,alt:u.alt,look:m,logoHeight:n,grayscale:s})},W))})]})}const N="font-mono text-[12px] uppercase tracking-[0.18em]";function O(t){const e=C({name:g(t)});return!e.length||e.length===1&&e[0].kind==="words"&&!e[0].glyph?null:r("span",{className:"flex items-center gap-3",children:e.map((l,a)=>r(w,{item:l,size:20,className:N},a))})}function B({src:t,alt:e,look:l,logoHeight:a,grayscale:s,mark:n}){return l==="cards"?r("div",{className:"sf-card flex h-10 items-center border border-line bg-surface px-4",children:n||(!t&&e&&O(e)?O(e):t?r("img",{...P(y(t)),alt:g(e||""),className:s===!1?"max-h-5 w-auto opacity-90":"max-h-5 w-auto opacity-90 grayscale"}):e&&r("span",{className:N,children:M(e)}))}):t?r("img",{...Y(y(t)),alt:e,className:["mx-auto w-auto opacity-60 transition-opacity hover:opacity-100",a==null?"h-7":"",s===!1?"":"grayscale"].filter(Boolean).join(" "),style:a==null?void 0:{height:`${a}px`}}):r("span",{className:`font-mono ${_.label} uppercase tracking-[0.2em] text-fg-dim`,children:k(e||"Logo")})}function P(t){const e=h(t,{fallbackWidth:320,maxWidth:640});return e.srcSet?{src:e.src,srcSet:e.srcSet,sizes:"120px"}:{src:t}}function Y(t){const e=h(t,{fallbackWidth:640,maxWidth:960});return e.srcSet?{src:e.src,srcSet:e.srcSet,sizes:"240px"}:{src:t}}export{N as CARD_WORDS_CLASS,B as LogoWallMark,D as default};
1
+ import{jsx as l,jsxs as f}from"react/jsx-runtime";import{PaymentMark as L,paymentMarkItems as C}from"efficient-shell/icons/payment";import M from"./BlockFrame.js";import{renderChrome as j,renderGold as z,renderHeadline as R}from"./goldPhrases.js";import{LogoWallProvider as N}from"./LogoWallContext.js";import{EMPTY_ELSE_CLASS as T,EMPTY_HIDES_CLASS as G,EmptyHidesStyle as I}from"../lib/content/empty-hides.js";import{media as E}from"../lib/media.js";import{sizedImage as O}from"../../format/lib/sized-image.js";import{stripMarkup as v}from"../../format/lib/markup.js";import{DEFAULT_LOGO_LOOK as k}from"../../format/lib/sections/logo-look.js";import{paymentRowMark as B}from"../lib/sections/payment-rows.js";const w={label:"text-[length:var(--size-label,13px)]"},c="sf-logo-wall",D="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 P({items:t,contained:e,heading:n,columns:r,grayscale:s,logoHeight:i,bandPadding:a,logos:m,look:o=k,omitHead:$=!1,cards:p}){const W=r!=null?{flex:`0 0 ${S(r,u)}`}:void 0,_=!$;return f(M,{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 ${w.label} uppercase tracking-[0.2em] text-fg-dim`,children:R(n,!1)}):null,p!==void 0?f(N,{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(N,{value:{look:o,logoHeight:i,grayscale:s},children:[l(I,{}),r!=null?l("style",{children:`.${c}-c${r}>*{flex:0 0 ${S(r,o)}}`}):null,l(m,{className:[c,G,r!=null?`${c}-c${r}`:"",d].filter(Boolean).join(" "),style:y(o),minEmptyHeight:80})]}):null,p!==void 0?null:l("div",{className:`${D} ${T} ${d}`,style:y(u),children:(t??[]).map((g,b)=>l("div",{className:"text-center",style:W,children:l(Y,{src:g.src,alt:g.alt,look:u,logoHeight:i,grayscale:s})},b))})]})}const h="font-mono text-[12px] uppercase tracking-[0.18em]";function A(t){const e=C({name:v(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(L,{item:n,size:20,className:h},r))})}function Y({src:t,alt:e,look:n,logoHeight:r,grayscale:s,kind:i,mark:a}){if(n==="cards"){const m=!t&&i!==void 0?B({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(L,{item:m,size:20,className:h}):!t&&e&&A(e)?A(e):t?l("img",{...F(E(t)),alt:v(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:z(e)}))})}return t?l("img",{...K(E(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 ${w.label} uppercase tracking-[0.2em] text-fg-dim`,children:j(e||"Logo")})}function F(t){const e=O(t,{fallbackWidth:320,maxWidth:640});return e.srcSet?{src:e.src,srcSet:e.srcSet,sizes:"120px"}:{src:t}}function K(t){const e=O(t,{fallbackWidth:640,maxWidth:960});return e.srcSet?{src:e.src,srcSet:e.srcSet,sizes:"240px"}:{src:t}}export{h as CARD_WORDS_CLASS,Y as LogoWallMark,P as default};
@@ -1,3 +1,15 @@
1
+ import type { RowHand } from "../../format/lib/content/mirror-cards.js";
1
2
  export declare const MirrorContext: import("react").Context<boolean | null>;
2
3
  export declare function useMirroredCopy(): boolean;
3
4
  export declare function useUnderCardBox(): boolean;
5
+ export declare const HandedMirrorContext: import("react").Context<boolean>;
6
+ export declare function useHandedMirrorAbove(): boolean;
7
+ export type HandedRows = {
8
+ hand: RowHand;
9
+ ids?: readonly string[];
10
+ copies?: boolean;
11
+ boxes?: string[];
12
+ };
13
+ export declare function boxPlace(handed: HandedRows, id: string, slotIndex: number): number;
14
+ export declare const RowHandContext: import("react").Context<HandedRows | null>;
15
+ export declare function useHandedRows(): HandedRows | null;
@@ -1 +1 @@
1
- "use client";import{createContext as t,useContext as r}from"react";const e=t(null);function n(){return r(e)===!0}function u(){return r(e)!==null}export{e as MirrorContext,n as useMirroredCopy,u as useUnderCardBox};
1
+ "use client";import{createContext as r,useContext as t}from"react";const u=r(null);function d(){return t(u)===!0}function f(){return t(u)!==null}const c=r(!1);function l(){return t(c)}function a(x,n,s){const e=x.boxes;if(!e)return s;const o=e.indexOf(n);return o>=0?o:(e.push(n),e.length-1)}const i=r(null);function C(){return t(i)}export{c as HandedMirrorContext,u as MirrorContext,i as RowHandContext,a as boxPlace,l as useHandedMirrorAbove,C as useHandedRows,d as useMirroredCopy,f as useUnderCardBox};
@@ -1,6 +1,7 @@
1
1
  import type { ReactNode } from "react";
2
- export default function PartStyledKind({ kind, shared, children, }: {
2
+ export default function PartStyledKind({ kind, shared, declare, children, }: {
3
3
  kind: string;
4
4
  shared?: boolean;
5
+ declare?: boolean;
5
6
  children: ReactNode;
6
7
  }): import("react").JSX.Element;
@@ -1 +1 @@
1
- "use client";import{Fragment as i,jsx as n}from"react/jsx-runtime";import{usePartEntrance as l,usePublishedPartKindRule as m,usePublishedSharedKindRule as f}from"./PublishedPartStylesContext.js";import{PART_STYLED_ATTR as T,TEXT_STYLE_ATTR as c}from"../lib/document/part-styles.js";function d({kind:e,shared:s=!1,children:r}){const o=m(e),a=f(e),t=s?a:o,u=l(t);return t?n("span",{ref:u,[T]:t.stamp,...t.textStyle?{[c]:t.textStyle}:{},children:r}):n(i,{children:r})}export{d as default};
1
+ "use client";import{jsx as n,Fragment as l}from"react/jsx-runtime";import{usePartEntrance as f,usePublishedPartKindRule as m,usePublishedSharedKindRule as T}from"./PublishedPartStylesContext.js";import{PART_STYLED_ATTR as p,TEXT_STYLE_ATTR as c}from"../lib/document/part-styles.js";import{PART_KIND_ATTR as R}from"../lib/document/text-parts.js";function _({kind:e,shared:s=!1,declare:o=!1,children:r}){const a=m(e),u=T(e),t=s?u:a,i=f(t);return o&&!t?n("span",{[R]:e,children:r}):t?n("span",{ref:i,[p]:t.stamp,...t.textStyle?{[c]:t.textStyle}:{},children:r}):n(l,{children:r})}export{_ as default};
@@ -1 +1 @@
1
- import{jsx as a,jsxs as n}from"react/jsx-runtime";import{PaymentMark as d,paymentMarks as f}from"efficient-shell/icons/payment";import x from"./BlockFrame.js";import{CARD_WORDS_CLASS as y,LogoWallMark as c}from"./Logos.js";import{renderGold as i}from"./goldPhrases.js";function g({heading:r,badges:t,assurances:s,contained:o,sourced:p=!1}){const m=p?f(t.map(e=>({name:e.label,kind:e.kind}))).map(e=>({item:e})):t.map(e=>({src:e.src,label:e.label||""}));return a(x,{contained:o,className:"py-6",children:n("div",{className:"flex flex-col items-center gap-5 border-y border-line py-8 text-center",children:[r&&a("span",{className:"font-mono text-[13px] uppercase tracking-[0.3em] opacity-70",children:i(r)}),m.length>0&&a("ul",{className:"flex flex-wrap items-center justify-center gap-3",children:m.map((e,l)=>a("li",{children:"item"in e?a(c,{look:"cards",alt:e.item.label,mark:a(d,{item:e.item,size:20,className:y})}):a(c,{src:e.src,alt:e.label,look:"cards",grayscale:!1})},l))}),s.length>0&&a("ul",{className:"flex flex-wrap items-center justify-center gap-x-6 gap-y-1",children:s.map((e,l)=>e.text&&n("li",{className:"flex items-center gap-2 text-[13px] opacity-60",children:[a("span",{className:"h-1 w-1 rounded-full bg-accent","aria-hidden":!0}),i(e.text)]},l))})]})})}export{g as default};
1
+ import{jsx as a,jsxs as n}from"react/jsx-runtime";import{paymentMarkRows as d}from"../lib/sections/payment-rows.js";import f from"./BlockFrame.js";import{LogoWallMark as o}from"./Logos.js";import{renderGold as m}from"./goldPhrases.js";function x({heading:l,badges:t,assurances:s,contained:i,sourced:p=!1}){const c=p?d(t).map(e=>({row:e})):t.map(e=>({src:e.src,label:e.label||""}));return a(f,{contained:i,className:"py-6",children:n("div",{className:"flex flex-col items-center gap-5 border-y border-line py-8 text-center",children:[l&&a("span",{className:"font-mono text-[13px] uppercase tracking-[0.3em] opacity-70",children:m(l)}),c.length>0&&a("ul",{className:"flex flex-wrap items-center justify-center gap-3",children:c.map((e,r)=>a("li",{children:"row"in e?a(o,{look:"cards",alt:e.row.label,kind:e.row.kind}):a(o,{src:e.src,alt:e.label,look:"cards",grayscale:!1})},r))}),s.length>0&&a("ul",{className:"flex flex-wrap items-center justify-center gap-x-6 gap-y-1",children:s.map((e,r)=>e.text&&n("li",{className:"flex items-center gap-2 text-[13px] opacity-60",children:[a("span",{className:"h-1 w-1 rounded-full bg-accent","aria-hidden":!0}),m(e.text)]},r))})]})})}export{x as default};
@@ -1,4 +1,6 @@
1
1
  import type { SlotComponent } from "efficient-easel/blocks";
2
+ import type { ReactNode } from "react";
3
+ import type { RowHand } from "../../format/lib/content/mirror-cards.js";
2
4
  export interface ProcessSpec {
3
5
  label?: string;
4
6
  value?: string;
@@ -27,7 +29,9 @@ export interface ProcessStepsProps {
27
29
  editing?: boolean;
28
30
  cardImage?: number | null;
29
31
  cardText?: "below" | "on-image";
32
+ rows?: RowHand | null;
33
+ copies?: ReactNode;
30
34
  omitHead?: boolean;
31
35
  }
32
36
  export declare function storedStepsShown(steps: readonly ProcessStep[] | undefined): ProcessStep[];
33
- export default function ProcessSteps({ num, title, description, boxes: Boxes, steps, columns, cta, padTop, padBottom, editing, omitHead, cardImage, cardText, }: ProcessStepsProps): import("react").JSX.Element;
37
+ export default function ProcessSteps({ num, title, description, boxes: Boxes, steps, columns, cta, padTop, padBottom, editing, omitHead, cardImage, cardText, rows: askedRows, copies, }: ProcessStepsProps): import("react").JSX.Element;
@@ -1 +1 @@
1
- import{jsx as e,Fragment as C,jsxs as i}from"react/jsx-runtime";import{EDITORIAL_COLUMN as I}from"../../format/lib/content/page-width.js";import{cardImageShapeTokens as j}from"../../format/lib/content/card-image-shape.js";import{SiteLink as A}from"../lib/site-runtime.js";import U from"./EditorialSectionHead.js";import D from"./Placeholder.js";import{withRMark as n}from"./RMark.js";import{renderGold as o}from"./goldPhrases.js";import{say as G}from"../../format/lib/editor-words.js";import{scrim as p}from"../../format/lib/content/scrim.js";import{EMPTY_ELSE_CLASS as H,EMPTY_HIDES_CLASS as M,EmptyHidesStyle as O}from"../lib/content/empty-hides.js";const t={headingSmallUpTo700Small:"max-[700px]:text-[length:var(--size-headingSmall,26px)]",headingSmallUpTo700Large:"max-[700px]:text-[length:var(--size-headingSmall,28px)]",bodySmall:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,18px)]",headingSmall1:"text-[length:var(--size-headingSmall,28px)]",headingSmall2:"text-[length:var(--size-headingSmall,34px)]",labelSmall:"text-[length:var(--size-label,11px)]",label:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"},N={2:"grid-cols-2 max-[900px]:grid-cols-1",3:"grid-cols-3 max-view-desktop:grid-cols-1",4:"grid-cols-4 max-view-desktop:grid-cols-2 max-[700px]:grid-cols-1"},P="sf-itc-boxes",R="sf-itc-steps";function F(g){return(g??[]).filter(r=>(r?.tag??"").trim()||(r?.meta??"").trim()||(r?.title??"").trim()||(r?.copy??"").trim()||(r?.image??"").trim()||(r?.specs??[]).some(s=>(s?.label??"").trim()||(s?.value??"").trim()))}function Y({num:g,title:r,description:s,boxes:d,steps:$,columns:L=3,cta:x,padTop:h,padBottom:b,editing:k=!1,omitHead:z=!1,cardImage:_,cardText:E}){const T=typeof h=="number"?h:120,w=typeof b=="number"?b:120,u=F($),v=u.length>0?u:k&&!d?[1,2,3].map(a=>({tag:G("Column {n}",{n:a})})):[],S=N[L]??N[3],m=E==="on-image";return e("section",{className:"relative z-[2] border-b border-line bg-bg",style:{paddingTop:T,paddingBottom:w,...j(_)},children:i("div",{className:I,children:[z?null:e(U,{num:g,title:r?.trim()?o(r,!0):void 0,desc:s?.trim()?o(s,!1):void 0}),d?i(C,{children:[e(O,{}),e(d,{className:`${P} ${M} sf-card grid ${S} gap-[2px] border border-line bg-line [&>*]:min-h-[560px] [&>*]:bg-bg`,minEmptyHeight:260})]}):null,v.length>0&&e("div",{className:`${R} ${H} sf-card grid ${S} gap-[2px] border border-line bg-line`,children:v.map((a,y)=>{const c=(a.specs??[]).filter(l=>(l?.label??"").trim()||(l?.value??"").trim());return i("article",{className:m?"flex flex-col bg-bg":"flex min-h-[560px] flex-col bg-bg",children:[i("div",{className:m?"sf-card-image relative aspect-[5/3] overflow-hidden bg-surface max-[700px]:aspect-[4/3]":"sf-card-image relative aspect-[5/3] overflow-hidden border-b border-line bg-surface",children:[e(D,{label:a.tag?.trim()||a.title?.trim()||`column-${y+1}`,src:a.image||void 0,sizes:"(max-width: 1100px) 100vw, 33vw",...d?{deferFetch:!0}:{}}),e("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 z-[1]",style:{background:`linear-gradient(180deg, ${p(.55)} 0%, transparent 30%, transparent 70%, ${p(.65)} 100%)`}}),m&&e("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 bottom-0 z-[1] h-[78%]",style:{background:`linear-gradient(180deg, transparent 0%, ${p(.73)} 55%, ${p(.92)} 100%)`}}),a.tag?.trim()&&e("span",{className:`absolute left-5 top-[18px] z-[2] font-mono ${t.label} uppercase tracking-[0.3em] text-accent`,children:n(a.tag)}),a.meta?.trim()&&e("span",{className:m?`absolute right-5 top-[18px] z-[2] font-mono ${t.label} uppercase tracking-[0.24em] text-overlay-fg/80`:`absolute right-5 bottom-[18px] z-[2] font-mono ${t.label} uppercase tracking-[0.24em] text-overlay-fg/80`,children:n(a.meta)}),m&&(a.title?.trim()||a.copy?.trim())&&i("div",{className:"absolute inset-x-0 bottom-0 z-[2] flex flex-col gap-2.5 px-8 pb-7 pt-14 max-[700px]:px-6 max-[700px]:pb-6",children:[a.title?.trim()&&e("h3",{className:`flex min-h-[2em] flex-col justify-end font-heading3 ${t.headingSmall1} font-medium uppercase leading-none tracking-[-0.02em] text-overlay-fg ${t.headingSmallUpTo700Small}`,children:o(a.title,!0)}),a.copy?.trim()&&e("p",{className:`min-h-[3em] font-display ${t.bodySmall} leading-[1.5] text-overlay-fg/85`,children:o(a.copy,!1)})]})]}),m?c.length>0&&e("div",{className:"grid grid-cols-2 gap-2 border-t border-line px-8 py-7 max-[700px]:px-6 max-[700px]:py-6",children:c.map((l,f)=>i("div",{className:"flex flex-col gap-1",children:[l.label?.trim()&&e("span",{className:`font-mono ${t.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:n(l.label)}),l.value?.trim()&&e("span",{className:`font-display ${t.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:n(l.value)})]},f))}):i("div",{className:"flex flex-1 flex-col gap-4 px-8 py-9 max-[700px]:px-6 max-[700px]:py-7",children:[a.title?.trim()&&e("h3",{className:`font-heading3 ${t.headingSmall2} font-medium uppercase leading-none tracking-[-0.02em] ${t.headingSmallUpTo700Large}`,children:o(a.title,!0)}),a.copy?.trim()&&e("p",{className:`font-display ${t.bodySmall} leading-[1.55] text-fg-dim`,children:o(a.copy,!1)}),c.length>0&&e("div",{className:"mt-auto grid grid-cols-2 gap-2 border-t border-line pt-4",children:c.map((l,f)=>i("div",{className:"flex flex-col gap-1",children:[l.label?.trim()&&e("span",{className:`font-mono ${t.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:n(l.label)}),l.value?.trim()&&e("span",{className:`font-display ${t.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:n(l.value)})]},f))})]})]},y)})}),x?.text&&e("div",{className:"mt-12 flex justify-end border-t border-line pt-8",children:i(A,{href:x.href,className:`group inline-flex items-center gap-3.5 border border-line px-6 py-4 font-mono ${t.labelLarge} uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent`,children:[n(x.text),e("span",{"aria-hidden":!0,className:"text-accent transition-transform group-hover:translate-x-[3px]",children:"→"})]})})]})})}export{Y as default,F as storedStepsShown};
1
+ import{jsx as e,Fragment as M,jsxs as i}from"react/jsx-runtime";import{RowHandContext as w}from"./MirrorContext.js";import{EDITORIAL_COLUMN as O}from"../../format/lib/content/page-width.js";import{cardImageShapeTokens as R}from"../../format/lib/content/card-image-shape.js";import{SiteLink as F}from"../lib/site-runtime.js";import Y from"./EditorialSectionHead.js";import X from"./Placeholder.js";import{withRMark as o}from"./RMark.js";import{renderGold as s}from"./goldPhrases.js";import{say as Z}from"../../format/lib/editor-words.js";import{scrim as f}from"../../format/lib/content/scrim.js";import{EMPTY_ELSE_CLASS as q,EMPTY_HIDES_CLASS as C,EmptyHidesStyle as J}from"../lib/content/empty-hides.js";const l={headingSmallUpTo700Small:"max-[700px]:text-[length:var(--size-headingSmall,26px)]",headingSmallUpTo700Large:"max-[700px]:text-[length:var(--size-headingSmall,28px)]",bodySmall:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,18px)]",headingSmall1:"text-[length:var(--size-headingSmall,28px)]",headingSmall2:"text-[length:var(--size-headingSmall,34px)]",labelSmall:"text-[length:var(--size-label,11px)]",label:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"},T={2:"grid-cols-2 max-[900px]:grid-cols-1",3:"grid-cols-3 max-view-desktop:grid-cols-1",4:"grid-cols-4 max-view-desktop:grid-cols-2 max-[700px]:grid-cols-1"},y="sf-itc-boxes",K="sf-itc-steps";function Q(b){return(b??[]).filter(r=>(r?.tag??"").trim()||(r?.meta??"").trim()||(r?.title??"").trim()||(r?.copy??"").trim()||(r?.image??"").trim()||(r?.specs??[]).some(c=>(c?.label??"").trim()||(c?.value??"").trim()))}function V({num:b,title:r,description:c,boxes:n,steps:I,columns:j=3,cta:h,padTop:S,padBottom:$,editing:A=!1,omitHead:H=!1,cardImage:P,cardText:U,rows:N,copies:g}){const p=g!==void 0,m=N&&(p||(n?.blockCount??0)>0)?N:null,D=typeof S=="number"?S:120,G=typeof $=="number"?$:120,k=p?[]:Q(I),L=k.length>0?k:A&&!n&&!p?[1,2,3].map(a=>({tag:Z("Column {n}",{n:a})})):[],z=T[j]??T[3],u=m?"grid-cols-1":z,E=m?"":" [&>*]:min-h-[560px]",d=U==="on-image";return e("section",{className:"relative z-[2] border-b border-line bg-bg",style:{paddingTop:D,paddingBottom:G,...R(P)},children:i("div",{className:O,children:[H?null:e(Y,{num:b,title:r?.trim()?s(r,!0):void 0,desc:c?.trim()?s(c,!1):void 0}),n&&!p?i(M,{children:[e(J,{}),m?e(w.Provider,{value:{hand:m,ids:n.blockIds??[],boxes:[]},children:e(n,{className:`${y} ${C} sf-card grid ${u} gap-[2px] border border-line bg-line${E} [&>*]:bg-bg`,minEmptyHeight:260})}):e(n,{className:`${y} ${C} sf-card grid ${u} gap-[2px] border border-line bg-line [&>*]:min-h-[560px] [&>*]:bg-bg`,minEmptyHeight:260})]}):null,p&&g?e("div",{className:`${y} sf-card grid ${u} gap-[2px] border border-line bg-line${E} [&>*]:bg-bg`,children:m?e(w.Provider,{value:{hand:m,copies:!0},children:g}):g}):null,L.length>0&&e("div",{className:`${K} ${q} sf-card grid ${z} gap-[2px] border border-line bg-line`,children:L.map((a,_)=>{const x=(a.specs??[]).filter(t=>(t?.label??"").trim()||(t?.value??"").trim());return i("article",{className:d?"flex flex-col bg-bg":"flex min-h-[560px] flex-col bg-bg",children:[i("div",{className:d?"sf-card-image relative aspect-[5/3] overflow-hidden bg-surface max-[700px]:aspect-[4/3]":"sf-card-image relative aspect-[5/3] overflow-hidden border-b border-line bg-surface",children:[e(X,{label:a.tag?.trim()||a.title?.trim()||`column-${_+1}`,src:a.image||void 0,sizes:"(max-width: 1100px) 100vw, 33vw",...n?{deferFetch:!0}:{}}),e("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 z-[1]",style:{background:`linear-gradient(180deg, ${f(.55)} 0%, transparent 30%, transparent 70%, ${f(.65)} 100%)`}}),d&&e("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 bottom-0 z-[1] h-[78%]",style:{background:`linear-gradient(180deg, transparent 0%, ${f(.73)} 55%, ${f(.92)} 100%)`}}),a.tag?.trim()&&e("span",{className:`absolute left-5 top-[18px] z-[2] font-mono ${l.label} uppercase tracking-[0.3em] text-accent`,children:o(a.tag)}),a.meta?.trim()&&e("span",{className:d?`absolute right-5 top-[18px] z-[2] font-mono ${l.label} uppercase tracking-[0.24em] text-overlay-fg/80`:`absolute right-5 bottom-[18px] z-[2] font-mono ${l.label} uppercase tracking-[0.24em] text-overlay-fg/80`,children:o(a.meta)}),d&&(a.title?.trim()||a.copy?.trim())&&i("div",{className:"absolute inset-x-0 bottom-0 z-[2] flex flex-col gap-2.5 px-8 pb-7 pt-14 max-[700px]:px-6 max-[700px]:pb-6",children:[a.title?.trim()&&e("h3",{className:`flex min-h-[2em] flex-col justify-end font-heading3 ${l.headingSmall1} font-medium uppercase leading-none tracking-[-0.02em] text-overlay-fg ${l.headingSmallUpTo700Small}`,children:s(a.title,!0)}),a.copy?.trim()&&e("p",{className:`min-h-[3em] font-display ${l.bodySmall} leading-[1.5] text-overlay-fg/85`,children:s(a.copy,!1)})]})]}),d?x.length>0&&e("div",{className:"grid grid-cols-2 gap-2 border-t border-line px-8 py-7 max-[700px]:px-6 max-[700px]:py-6",children:x.map((t,v)=>i("div",{className:"flex flex-col gap-1",children:[t.label?.trim()&&e("span",{className:`font-mono ${l.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:o(t.label)}),t.value?.trim()&&e("span",{className:`font-display ${l.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:o(t.value)})]},v))}):i("div",{className:"flex flex-1 flex-col gap-4 px-8 py-9 max-[700px]:px-6 max-[700px]:py-7",children:[a.title?.trim()&&e("h3",{className:`font-heading3 ${l.headingSmall2} font-medium uppercase leading-none tracking-[-0.02em] ${l.headingSmallUpTo700Large}`,children:s(a.title,!0)}),a.copy?.trim()&&e("p",{className:`font-display ${l.bodySmall} leading-[1.55] text-fg-dim`,children:s(a.copy,!1)}),x.length>0&&e("div",{className:"mt-auto grid grid-cols-2 gap-2 border-t border-line pt-4",children:x.map((t,v)=>i("div",{className:"flex flex-col gap-1",children:[t.label?.trim()&&e("span",{className:`font-mono ${l.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:o(t.label)}),t.value?.trim()&&e("span",{className:`font-display ${l.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:o(t.value)})]},v))})]})]},_)})}),h?.text&&e("div",{className:"mt-12 flex justify-end border-t border-line pt-8",children:i(F,{href:h.href,className:`group inline-flex items-center gap-3.5 border border-line px-6 py-4 font-mono ${l.labelLarge} uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent`,children:[o(h.text),e("span",{"aria-hidden":!0,className:"text-accent transition-transform group-hover:translate-x-[3px]",children:"→"})]})})]})})}export{V as default,Q as storedStepsShown};
@@ -17,7 +17,9 @@ interface TextProps {
17
17
  hero?: boolean;
18
18
  partAlign?: unknown;
19
19
  onLine?: boolean;
20
+ partKey?: string;
21
+ partDeclare?: boolean;
20
22
  }
21
23
  export declare function headingLevelOfStyle(id: string): HeadingLevel;
22
- export default function Text({ text, number, align, alignTablet, alignPhone, tone, contained, hero, pad, tag, textStyle, ownWidth, partAlign, onLine }: TextProps): import("react").JSX.Element;
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;
23
25
  export {};
@@ -1 +1 @@
1
- import{jsx as r,jsxs as _}from"react/jsx-runtime";import T from"./BlockFrame.js";import{renderGold as x,renderHeadline as k,splitParagraphs as O}from"./goldPhrases.js";import{headingLook as j}from"./Heading.js";import{alignViewClasses as z}from"../../format/lib/content/block-align.js";import{textTagOf as I}from"../../format/lib/content/text-tag.js";import{KICKER_NUMBER_ATTR as L,kickerLead as R}from"../lib/content/page-contents.js";import{isTextStyleId as A}from"../lib/document/part-styles.js";import{faceClassOf as N}from"../../format/lib/text-style-face.js";import{useMirroredCopy as M}from"./MirrorContext.js";import{mirroredTextClasses as v}from"../../format/lib/content/mirror-cards.js";const d={bodyUpTo800:"max-view-wide:text-[length:var(--size-body,14px)]",bodySmall:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,17px)]",label:"text-[length:var(--size-label,13px)]"},m=e=>e?` ${e}`:"";function U(e,l,t){const o=z("place",e,l,t);return o?` ${o}`:""}const B={left:"text-left",center:"text-left mx-auto",right:"text-left ml-auto"},G=`max-w-[380px] ${d.bodySmall} leading-[1.5] opacity-80 ${d.bodyUpTo800}`,H={default:"text-fg",dim:"text-fg-dim"};function K(e){return String(Math.min(Number(e.slice(8)),6))}function F({text:e,number:l,align:t,alignTablet:o,alignPhone:w,tone:h,contained:u,hero:C=!1,pad:i,tag:S,textStyle:g,ownWidth:E=!1,partAlign:y,onLine:n=!1}){const $=M();if(C)return r("p",{className:G,children:x(e)});const c=l?r("span",{[L]:"",children:R(l)}):void 0,a=A(g)?g:void 0,b=`${a?`${N({id:a})} `:""}${E?"":"max-w-[680px] "}whitespace-pre-line ${a==="body-5"?d.label:d.bodyLarge} leading-[1.7]${m(t?B[t]:"")}${U(t,o,w)}${m(h?H[h]:"")}${m(v($,t,y))}`,f=I(S);if(a?.startsWith("heading-")){const p=K(a),s=j(p,N({id:a}));return r(T,{contained:u,className:n?"":"py-6",pad:i?{values:i,frame:n?0:24}:void 0,children:_(f,{className:`${s.className}${m(v($,void 0,y))}`,style:s.style,children:[c,k(e.trim(),!1)]})})}return r(T,{contained:u,className:n?"":"py-4",pad:i?{values:i,frame:n?0:16}:void 0,children:f==="p"?O(e).map((p,s)=>r("p",{className:b,children:x(p,!1,s===0?c:void 0)},s)):r(f,{className:b,children:x(e.trim(),!1,c)})})}export{F as default,K as headingLevelOfStyle};
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 +1 @@
1
- "use client";import{jsx as r}from"react/jsx-runtime";import x from"./Ticker.js";import{TICKER_JOIN_BOX_CLASS as h,tickerJoinSide as k,tickerJoinStripClass as v}from"../../format/lib/sections/ticker-join.js";import{say as y}from"../../format/lib/editor-words.js";const S=()=>y("item");function _({items:s,seconds:l,delay:a,tone:c="scrim",borders:d=!0,size:m,separator:p,scroll:f,join:u,editing:b}){const i=(s??[]).map(n=>n?.text?.trim()?n.text:b?S():"").filter(Boolean);if(i.length===0)return null;const t=c!=="plain",e=k(u),o=r("div",{className:[e?`absolute inset-x-0 ${v(e)}`:"relative z-[2]","py-3.5 max-view-wide:py-3",t?"bg-bg":"",d?"border-y border-line":""].filter(Boolean).join(" "),children:r(x,{items:i,seconds:l,delay:a,size:m,separator:p,scroll:f,backdrop:t?"themed-band":"themed-section"})});return e?r("div",{className:h,children:o}):o}export{_ as default};
1
+ "use client";import{jsx as r}from"react/jsx-runtime";import x from"./Ticker.js";import{JoinBox as h}from"./JoinBox.js";import{tickerJoinPinClass as k,tickerJoinSide as y}from"../../format/lib/sections/ticker-join.js";import{say as v}from"../../format/lib/editor-words.js";const g=()=>v("item");function j({items:l,seconds:s,delay:c,tone:a="scrim",borders:d=!0,size:m,separator:p,scroll:f,join:u,editing:b}){const i=(l??[]).map(n=>n?.text?.trim()?n.text:b?g():"").filter(Boolean);if(i.length===0)return null;const o=a!=="plain",e=y(u),t=r("div",{className:[e?k(e):"relative z-[2]","py-3.5 max-view-wide:py-3",o?"bg-bg":"",d?"border-y border-line":""].filter(Boolean).join(" "),children:r(x,{items:i,seconds:s,delay:c,size:m,separator:p,scroll:f,backdrop:o?"themed-band":"themed-section"})});return e?r(h,{children:t}):t}export{j as default};
@@ -29,3 +29,9 @@ export declare function sharedColumnsCss(sides: {
29
29
  desktop: boolean;
30
30
  phone: boolean;
31
31
  }, n: number, from?: number): string;
32
+ export declare const SHARED_ROWS_KEY = "sharedRows";
33
+ export declare const SHARED_ROWS_LIST_CLASS = "sf-shared-rows-list";
34
+ export declare function sharedRowsFits(props: Record<string, unknown>): boolean;
35
+ export declare function sharedRowsDrawn(props: Record<string, unknown>): boolean;
36
+ export declare function sharedRowsClasses(drawn: boolean, n: number): string;
37
+ export declare function sharedRowsCss(drawn: boolean, n: number): string;