efficient-web-builder 54.0.0 → 55.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/dist/editor/components/BlockGapField.js +1 -1
  3. package/dist/editor/components/CornersField.js +1 -1
  4. package/dist/editor/components/SectionWidthRows.d.ts +2 -1
  5. package/dist/editor/components/SectionWidthRows.js +1 -1
  6. package/dist/editor/components/SideSpaceField.js +1 -1
  7. package/dist/editor/components/WebsiteSettingsPanel.js +1 -1
  8. package/dist/editor/lib/document/blocks/general/ButtonBlock/fields.js +1 -1
  9. package/dist/editor/lib/document/blocks/general/CardList/fields.d.ts +2 -0
  10. package/dist/editor/lib/document/blocks/general/CardList/fields.js +1 -0
  11. package/dist/editor/lib/document/blocks/general/Eyebrow/fields.js +1 -1
  12. package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
  13. package/dist/editor/lib/document/blocks/general/Hero/fields.js +1 -1
  14. package/dist/editor/lib/document/blocks/general/HeroSingle/fields.js +1 -1
  15. package/dist/editor/lib/document/blocks/general/LogoBlock/fields.js +1 -1
  16. package/dist/editor/lib/document/blocks/general/Split/fields.js +1 -1
  17. package/dist/editor/lib/document/blocks/general/Text/fields.js +1 -1
  18. package/dist/editor/lib/document/blocks/general/TitleWithButtons/fields.js +1 -1
  19. package/dist/editor/lib/document/blocks/general/index.d.ts +2 -2
  20. package/dist/editor/lib/document/blocks/general/index.js +1 -1
  21. package/dist/editor/lib/document/blocks/hero-shared-fields.d.ts +29 -2
  22. package/dist/editor/lib/document/blocks/hero-shared-fields.js +1 -1
  23. package/dist/editor/lib/document/blocks/shared-fields.d.ts +1 -5
  24. package/dist/editor/lib/document/blocks/shared-fields.js +1 -1
  25. package/dist/editor/lib/document/box-accordion-seed.d.ts +3 -0
  26. package/dist/editor/lib/document/box-accordion-seed.js +1 -0
  27. package/dist/editor/lib/document/box-fields.d.ts +11 -0
  28. package/dist/editor/lib/document/box-fields.js +1 -1
  29. package/dist/editor/lib/document/card-row-fields.js +1 -1
  30. package/dist/editor/lib/document/controls.d.ts +3 -1
  31. package/dist/editor/lib/document/controls.js +1 -1
  32. package/dist/editor/lib/document/field-groups.js +1 -1
  33. package/dist/editor/lib/document/mirror-cards-field.d.ts +1 -0
  34. package/dist/editor/lib/document/mirror-cards-field.js +1 -1
  35. package/dist/editor/lib/document/passes/inspector.js +1 -1
  36. package/dist/editor/lib/document/section-own-width-fields.d.ts +4 -0
  37. package/dist/editor/lib/document/section-own-width-fields.js +1 -0
  38. package/dist/editor/lib/document/shape-picker.d.ts +8 -0
  39. package/dist/editor/lib/document/shape-picker.js +1 -1
  40. package/dist/format/lib/content/block-align.d.ts +4 -1
  41. package/dist/format/lib/content/block-align.js +1 -1
  42. package/dist/format/lib/content/box-background.d.ts +19 -0
  43. package/dist/format/lib/content/box-background.js +1 -1
  44. package/dist/format/lib/content/box-layout.d.ts +7 -0
  45. package/dist/format/lib/content/box-layout.js +1 -1
  46. package/dist/format/lib/content/box-phone-place.d.ts +3 -3
  47. package/dist/format/lib/content/box-phone-place.js +1 -1
  48. package/dist/format/lib/content/box-separator.js +1 -1
  49. package/dist/format/lib/content/box-shadow.d.ts +4 -0
  50. package/dist/format/lib/content/box-shadow.js +1 -1
  51. package/dist/format/lib/content/box-shape.d.ts +1 -1
  52. package/dist/format/lib/content/box-shape.js +1 -1
  53. package/dist/format/lib/content/card-state.d.ts +2 -0
  54. package/dist/format/lib/content/card-state.js +1 -1
  55. package/dist/format/lib/content/card-template.d.ts +11 -2
  56. package/dist/format/lib/content/card-template.js +1 -1
  57. package/dist/format/lib/content/container-direction.d.ts +1 -1
  58. package/dist/format/lib/content/container-direction.js +1 -1
  59. package/dist/format/lib/content/gallery-card-layout.d.ts +16 -1
  60. package/dist/format/lib/content/gallery-card-layout.js +1 -1
  61. package/dist/format/lib/content/image-aspect.d.ts +2 -0
  62. package/dist/format/lib/content/image-aspect.js +1 -1
  63. package/dist/format/lib/content/page-width.d.ts +3 -0
  64. package/dist/format/lib/content/page-width.js +1 -1
  65. package/dist/format/lib/content/phone-focus.js +1 -1
  66. package/dist/format/lib/content/picture-focus-rows.js +1 -0
  67. package/dist/format/lib/content/section-height.d.ts +31 -2
  68. package/dist/format/lib/content/section-height.js +1 -1
  69. package/dist/format/lib/content/section-min-height.d.ts +2 -1
  70. package/dist/format/lib/content/section-min-height.js +1 -1
  71. package/dist/format/lib/content/section-width.d.ts +38 -1
  72. package/dist/format/lib/content/section-width.js +1 -1
  73. package/dist/format/lib/content/site-gutter.d.ts +2 -0
  74. package/dist/format/lib/content/site-gutter.js +1 -1
  75. package/dist/format/lib/content/view-overrides.d.ts +7 -0
  76. package/dist/format/lib/content/view-overrides.js +1 -0
  77. package/dist/format/lib/content/view-var-split.d.ts +11 -0
  78. package/dist/format/lib/content/view-var-split.js +1 -0
  79. package/dist/format/lib/document/blocks/general/CardList/item-seed.d.ts +4 -0
  80. package/dist/format/lib/document/blocks/general/CardList/item-seed.js +1 -0
  81. package/dist/format/lib/document/blocks/general/CardList/meta.d.ts +8 -0
  82. package/dist/format/lib/document/blocks/general/CardList/meta.js +1 -0
  83. package/dist/format/lib/document/blocks/general/Flex/meta.d.ts +4 -0
  84. package/dist/format/lib/document/blocks/general/Flex/meta.js +1 -1
  85. package/dist/format/lib/document/blocks/general/metas.d.ts +1 -0
  86. package/dist/format/lib/document/blocks/general/metas.js +1 -1
  87. package/dist/format/lib/document/general-order.d.ts +1 -1
  88. package/dist/format/lib/document/general-order.js +1 -1
  89. package/dist/format/lib/document/passes/types.d.ts +3 -0
  90. package/dist/format/lib/document/section-catalog.js +1 -1
  91. package/dist/format/lib/editor-words-catalogue.d.ts +12 -0
  92. package/dist/format/lib/editor-words-catalogue.js +5 -5
  93. package/dist/format/lib/fit-words.d.ts +8 -0
  94. package/dist/format/lib/fit-words.js +23 -12
  95. package/dist/format/lib/markup.d.ts +1 -0
  96. package/dist/format/lib/markup.js +2 -2
  97. package/dist/format/lib/sections/hero-single-to-hero.js +1 -1
  98. package/dist/format/lib/sections/intro-bleed-layout.d.ts +1 -0
  99. package/dist/format/lib/sections/intro-bleed-layout.js +1 -1
  100. package/dist/format/lib/source-rules/padding-units-declared.d.ts +2 -0
  101. package/dist/format/lib/source-rules/padding-units-declared.js +6 -0
  102. package/dist/render/components/AccordionMark.d.ts +4 -0
  103. package/dist/render/components/AccordionMark.js +1 -0
  104. package/dist/render/components/BoxAccordionRow.d.ts +7 -0
  105. package/dist/render/components/BoxAccordionRow.js +1 -0
  106. package/dist/render/components/BoxTabPaneContext.d.ts +3 -1
  107. package/dist/render/components/BoxTabPaneContext.js +1 -1
  108. package/dist/render/components/BoxTabs.js +1 -1
  109. package/dist/render/components/ButtonBlock.d.ts +1 -0
  110. package/dist/render/components/ButtonBlock.js +1 -1
  111. package/dist/render/components/CardRowContext.d.ts +3 -2
  112. package/dist/render/components/CardRowContext.js +1 -1
  113. package/dist/render/components/Divider.js +1 -1
  114. package/dist/render/components/Eyebrow.d.ts +2 -1
  115. package/dist/render/components/Eyebrow.js +1 -1
  116. package/dist/render/components/FAQ.js +1 -1
  117. package/dist/render/components/Flex.d.ts +20 -2
  118. package/dist/render/components/Flex.js +1 -1
  119. package/dist/render/components/HeroSection.d.ts +4 -1
  120. package/dist/render/components/HeroSection.js +1 -1
  121. package/dist/render/components/HeroSingle.d.ts +4 -1
  122. package/dist/render/components/HeroSingle.js +1 -1
  123. package/dist/render/components/HeroSlide.d.ts +1 -0
  124. package/dist/render/components/HeroSlide.js +1 -1
  125. package/dist/render/components/ImageBlock.js +1 -1
  126. package/dist/render/components/IntroBleed.js +1 -1
  127. package/dist/render/components/LogoBlock.d.ts +1 -0
  128. package/dist/render/components/LogoBlock.js +1 -1
  129. package/dist/render/components/Logos.js +1 -1
  130. package/dist/render/components/ProcessSteps.d.ts +1 -0
  131. package/dist/render/components/ProcessSteps.js +1 -1
  132. package/dist/render/components/SiteGutterFrame.d.ts +18 -1
  133. package/dist/render/components/SiteGutterFrame.js +1 -1
  134. package/dist/render/components/Split.d.ts +2 -1
  135. package/dist/render/components/Split.js +1 -1
  136. package/dist/render/components/Text.d.ts +2 -1
  137. package/dist/render/components/Text.js +1 -1
  138. package/dist/render/components/TitleWithButtons.d.ts +2 -1
  139. package/dist/render/components/TitleWithButtons.js +1 -1
  140. package/dist/render/lib/content/block-size.d.ts +2 -6
  141. package/dist/render/lib/content/block-size.js +1 -1
  142. package/dist/render/lib/content/box-shared-columns.d.ts +2 -2
  143. package/dist/render/lib/content/box-shared-columns.js +1 -1
  144. package/dist/render/lib/content/box-stack-line.d.ts +15 -0
  145. package/dist/render/lib/content/box-stack-line.js +1 -0
  146. package/dist/render/lib/content/button-look.js +1 -1
  147. package/dist/render/lib/content/empty-hides.d.ts +8 -0
  148. package/dist/render/lib/content/empty-hides.js +1 -0
  149. package/dist/render/lib/content/section-edge.d.ts +1 -1
  150. package/dist/render/lib/content/section-edge.js +1 -1
  151. package/dist/render/lib/content/section-padding.d.ts +17 -3
  152. package/dist/render/lib/content/section-padding.js +1 -1
  153. package/dist/render/lib/content/view-values.d.ts +1 -7
  154. package/dist/render/lib/content/view-values.js +1 -1
  155. package/dist/render/lib/document/blocks/general/CardList/render.d.ts +2 -0
  156. package/dist/render/lib/document/blocks/general/CardList/render.js +1 -0
  157. package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
  158. package/dist/render/lib/document/blocks/general/Hero/render.js +1 -1
  159. package/dist/render/lib/document/blocks/general/HeroSingle/render.js +1 -1
  160. package/dist/render/lib/document/blocks/general/HeroSlide/render.js +1 -1
  161. package/dist/render/lib/document/blocks/general/ImageBlock/render.js +1 -1
  162. package/dist/render/lib/document/blocks/general/Text/render.js +1 -1
  163. package/dist/render/lib/document/blocks/general/renders.d.ts +1 -0
  164. package/dist/render/lib/document/blocks/general/renders.js +1 -1
  165. package/dist/render/lib/document/blocks/general/section-head-looks.d.ts +1 -0
  166. package/dist/render/lib/document/blocks/general/section-head-looks.js +2 -2
  167. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
  168. package/dist/render/lib/document/blocks/general/section-to-box-rows-docbody.js +2 -2
  169. package/dist/render/lib/document/blocks/general/section-to-box-rows-editorial.js +1 -1
  170. package/dist/render/lib/document/blocks/general/section-to-box-rows-head.js +1 -1
  171. package/dist/render/lib/document/blocks/general/section-to-box-rows-locations.js +1 -1
  172. package/dist/render/lib/document/blocks/general/section-to-box-rows-pageheader.js +1 -1
  173. package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
  174. package/dist/render/lib/document/head-core-boxes.d.ts +1 -0
  175. package/dist/render/lib/document/head-core-boxes.js +1 -0
  176. package/dist/render/lib/document/page-render.js +1 -1
  177. package/dist/render/lib/document/passes/block-size.js +1 -1
  178. package/dist/render/lib/document/passes/clickable-parts.js +1 -1
  179. package/dist/render/lib/document/passes/head-core.d.ts +3 -0
  180. package/dist/render/lib/document/passes/head-core.js +1 -0
  181. package/dist/render/lib/document/passes/index.js +1 -1
  182. package/dist/render/lib/document/passes/section-theme.js +1 -1
  183. package/dist/render/lib/document/passes/section-width.js +1 -1
  184. package/dist/render/lib/sections/section-to-box.js +1 -1
  185. package/package.json +5 -5
  186. package/dist/render/lib/content/picture-focus-rows.js +0 -1
  187. /package/dist/{render → format}/lib/content/picture-focus-rows.d.ts +0 -0
@@ -0,0 +1 @@
1
+ import{jsx as n,jsxs as s}from"react/jsx-runtime";import a from"./AccordionMark.js";const c=e=>e.preventDefault();function t({title:e,startsOpen:o,editing:r,children:i}){return s("details",{open:r||o,className:"border-b border-line",children:[s("summary",{onClick:r?c:void 0,className:"flex cursor-pointer list-none items-center gap-4 py-4 [&::-webkit-details-marker]:hidden",children:[e,n(a,{open:"minus"})]}),n("div",{className:"pb-4",children:i})]})}export{t as default};
@@ -1,2 +1,4 @@
1
- export declare const BoxTabPaneContext: import("react").Context<boolean>;
1
+ export type BoxPaneKind = false | "tabs" | "accordion";
2
+ export declare const BoxTabPaneContext: import("react").Context<BoxPaneKind>;
3
+ export declare const useBoxPaneKind: () => BoxPaneKind;
2
4
  export declare const useIsTabPane: () => boolean;
@@ -1 +1 @@
1
- "use client";import{createContext as e,useContext as t}from"react";const o=e(!1),s=()=>t(o);export{o as BoxTabPaneContext,s as useIsTabPane};
1
+ "use client";import{createContext as o,useContext as e}from"react";const t=o(!1),s=()=>e(t),a=()=>e(t)==="tabs";export{t as BoxTabPaneContext,s as useBoxPaneKind,a as useIsTabPane};
@@ -1 +1 @@
1
- "use client";import{jsx as o,Fragment as _,jsxs as j}from"react/jsx-runtime";import{useEffect as i,useRef as A,useState as l}from"react";import B from"./Reel.js";import{BOX_TAB_SHAPES as S}from"../../format/lib/reel.js";import{parseOption as E}from"../../format/lib/parse-option.js";import{BoxTabPaneContext as F}from"./BoxTabPaneContext.js";import{markedChildren as c}from"../../format/lib/marked-children.js";function L({children:u,className:b,style:d,shape:m}){const s=A(null),[r,f]=l([]),p=E(S,"tabs",m),[h,x]=l(0);i(()=>{const t=s.current;if(!t)return;const a=()=>{const g=c(t,"data-tab-label");f(g.map((v,T)=>v.dataset.tabLabel?.trim()||`Tab ${T+1}`))};a();const e=new MutationObserver(a);return e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tab-label"]}),()=>e.disconnect()},[]);const n=r.length?Math.min(h,r.length-1):0;return i(()=>{const t=s.current;t&&c(t,"data-tab-label").forEach((a,e)=>{a.hidden=r.length>1&&e!==n})},[r,n]),j(_,{children:[r.length>1&&o(B,{slides:r.map(t=>({name:t,process:""})),active:n,shape:p,tone:"surface",label:"Tabs",ref:t=>{t&&(t.onclick=a=>{const e=a.target?.closest?.("[data-idx]")?.getAttribute("data-idx");e!=null&&x(Number(e))})}}),o("div",{ref:s,"data-box-tabs":!0,className:b,style:d,children:o(F.Provider,{value:!0,children:u})})]})}export{L as default};
1
+ "use client";import{jsx as o,Fragment as _,jsxs as j}from"react/jsx-runtime";import{useEffect as i,useRef as A,useState as l}from"react";import B from"./Reel.js";import{BOX_TAB_SHAPES as S}from"../../format/lib/reel.js";import{parseOption as E}from"../../format/lib/parse-option.js";import{BoxTabPaneContext as F}from"./BoxTabPaneContext.js";import{markedChildren as c}from"../../format/lib/marked-children.js";function L({children:u,className:b,style:d,shape:m}){const s=A(null),[a,f]=l([]),p=E(S,"tabs",m),[h,x]=l(0);i(()=>{const t=s.current;if(!t)return;const r=()=>{const g=c(t,"data-tab-label");f(g.map((v,T)=>v.dataset.tabLabel?.trim()||`Tab ${T+1}`))};r();const e=new MutationObserver(r);return e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tab-label"]}),()=>e.disconnect()},[]);const n=a.length?Math.min(h,a.length-1):0;return i(()=>{const t=s.current;t&&c(t,"data-tab-label").forEach((r,e)=>{r.hidden=a.length>1&&e!==n})},[a,n]),j(_,{children:[a.length>1&&o(B,{slides:a.map(t=>({name:t,process:""})),active:n,shape:p,tone:"surface",label:"Tabs",ref:t=>{t&&(t.onclick=r=>{const e=r.target?.closest?.("[data-idx]")?.getAttribute("data-idx");e!=null&&x(Number(e))})}}),o("div",{ref:s,"data-box-tabs":!0,className:b,style:d,children:o(F.Provider,{value:"tabs",children:u})})]})}export{L as default};
@@ -7,6 +7,7 @@ interface ButtonBlockProps {
7
7
  href: string;
8
8
  variant: Variant;
9
9
  align?: Align;
10
+ alignTablet?: unknown;
10
11
  alignPhone?: unknown;
11
12
  contained: boolean;
12
13
  arrow?: boolean;
@@ -1 +1 @@
1
- import{jsx as a}from"react/jsx-runtime";import{buttonArrowShown as L}from"../../format/lib/content/button-arrow.js";import{buttonIconAtEnd as N,buttonIconSide as j,buttonWidthClass as _,storedButtonIcon as v}from"../../format/lib/content/button-icon.js";import{buttonCornersStyle as F,buttonPadAttrs as O,buttonPaint as R}from"../lib/content/button-look.js";import{ArrowLongRightIcon as $,ArrowRightIcon as G,ArrowUpRightIcon as U,BagIcon as E,CarIcon as K,CartIcon as Y,ChevronRightIcon as z,DownloadIcon as D,EmailIcon as H,ExternalIcon as J,LocationIcon as W,PlayIcon as q,SearchIcon as M,TagIcon as Q}from"efficient-shell/icons/efficient";import V from"./BlockFrame.js";import X from"./Btn.js";import{renderGold as Z}from"./goldPhrases.js";import{alignPhoneClass as b,BLOCK_ALIGN_JUSTIFY as oo}from"../../format/lib/content/block-align.js";const to="sf-button-block",no={"arrow-right":G,"arrow-long-right":$,"arrow-up-right":U,"chevron-right":z,external:J,cart:Y,bag:E,tag:Q,email:H,location:W,play:q,download:D,search:M,car:K};function ro(o){const{label:p,href:c,variant:i,align:t,alignPhone:l,contained:I,arrow:C,icon:y,iconPosition:s,widthFit:d,widthFitPhone:B,widthFitTablet:P,buttonColor:n,buttonTextColor:h,hrefRewrite:m}=o,r=v(y),u=r&&r!=="none"?no[r]:void 0,x=r===void 0?L(C)?{}:{arrow:null}:u?{arrow:a(u,{size:16}),...j(s)==="before"?{glyphBefore:!0}:{}}:{arrow:null},f=O(o),g=[_(d,B,P),f?.className??""].filter(Boolean).join(" "),A=g?{className:g}:{},S=N(s,d)?{spread:!0}:{},e=R(o),T=e?e.background==="transparent"?"ghost":"primary":i,w={...e??(n?i==="ghost"?{borderColor:n}:{background:n,borderColor:n}:{}),...h?{color:h}:{},...f?.style??{},...F(o)??{}},k=Object.keys(w).length?{style:w}:{};return a(V,{contained:I,className:`${to} py-4`,children:a("div",{className:`flex${t?` ${oo[t]}`:""}${b("justify",t,l)?` ${b("justify",t,l)}`:""}`,children:a(X,{href:c||"#",variant:T,...A,...S,...x,...k,...c&&m?{hrefRewrite:m}:{},children:Z(p)})})})}export{to as BUTTON_BLOCK_CLASS,ro as default};
1
+ import{jsx as r}from"react/jsx-runtime";import{buttonArrowShown as L}from"../../format/lib/content/button-arrow.js";import{buttonIconAtEnd as N,buttonIconSide as _,buttonWidthClass as j,storedButtonIcon as v}from"../../format/lib/content/button-icon.js";import{buttonCornersStyle as F,buttonPadAttrs as O,buttonPaint as R}from"../lib/content/button-look.js";import{ArrowLongRightIcon as $,ArrowRightIcon as G,ArrowUpRightIcon as U,BagIcon as E,CarIcon as K,CartIcon as V,ChevronRightIcon as Y,DownloadIcon as z,EmailIcon as D,ExternalIcon as H,LocationIcon as J,PlayIcon as W,SearchIcon as q,TagIcon as M}from"efficient-shell/icons/efficient";import Q from"./BlockFrame.js";import X from"./Btn.js";import{renderGold as Z}from"./goldPhrases.js";import{alignViewClasses as oo,BLOCK_ALIGN_JUSTIFY as to}from"../../format/lib/content/block-align.js";const no="sf-button-block",ro={"arrow-right":G,"arrow-long-right":$,"arrow-up-right":U,"chevron-right":Y,external:H,cart:V,bag:E,tag:M,email:D,location:J,play:W,download:z,search:q,car:K},ao=o=>o?` ${o}`:"";function eo(o){const{label:f,href:c,variant:i,align:a,alignTablet:b,alignPhone:p,contained:I,arrow:C,icon:y,iconPosition:s,widthFit:l,widthFitPhone:B,widthFitTablet:P,buttonColor:t,buttonTextColor:d,hrefRewrite:h}=o,n=v(y),m=n&&n!=="none"?ro[n]:void 0,T=n===void 0?L(C)?{}:{arrow:null}:m?{arrow:r(m,{size:16}),..._(s)==="before"?{glyphBefore:!0}:{}}:{arrow:null},u=O(o),g=[j(l,B,P),u?.className??""].filter(Boolean).join(" "),x=g?{className:g}:{},A=N(s,l)?{spread:!0}:{},e=R(o),S=e?e.background==="transparent"?"ghost":"primary":i,w={...e??(t?i==="ghost"?{borderColor:t}:{background:t,borderColor:t}:{}),...d?{color:d}:{},...u?.style??{},...F(o)??{}},k=Object.keys(w).length?{style:w}:{};return r(Q,{contained:I,className:`${no} py-4`,children:r("div",{className:`flex${a?` ${to[a]}`:""}${ao(oo("justify",a,b,p))}`,children:r(X,{href:c||"#",variant:S,...x,...A,...T,...k,...c&&h?{hrefRewrite:h}:{},children:Z(f)})})})}export{no as BUTTON_BLOCK_CLASS,eo as default};
@@ -1,6 +1,6 @@
1
1
  import { type ReactNode } from "react";
2
2
  import type { SlotComponent } from "efficient-easel/blocks";
3
- import { type CardRowState } from "../../format/lib/content/card-state.js";
3
+ import { 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 = {
@@ -25,8 +25,9 @@ type CardTemplateRowsProps = {
25
25
  rows: readonly SourceRow[];
26
26
  items?: readonly unknown[];
27
27
  states?: readonly (CardRowState | undefined)[];
28
+ stateLine?: CardStateLine;
28
29
  fallback: ReactNode;
29
30
  wrapCopy?: (copy: ReactNode, row: CardRow) => ReactNode;
30
31
  children: (cards: ReactNode) => ReactNode;
31
32
  };
32
- export declare function CardTemplateRows({ ownerId, ownerType, Template, rows, items, states, fallback, wrapCopy, children }: CardTemplateRowsProps): import("react").JSX.Element;
33
+ export declare function CardTemplateRows({ ownerId, ownerType, Template, rows, items, states, stateLine, fallback, wrapCopy, children }: CardTemplateRowsProps): import("react").JSX.Element;
@@ -1 +1 @@
1
- "use client";import{Fragment as c,jsx as r,jsxs as w}from"react/jsx-runtime";import{createContext as h,useContext as l}from"react";import{REPEAT_ATTRIBUTE as x,REPEAT_INDEX_ATTRIBUTE as P}from"efficient-easel/draw";import{CARD_TEMPLATE_SLOT as S,rowFilledProps as g}from"../../format/lib/content/card-template.js";import{CARD_STATE_LINE_CLASS as j,cardStateAttrs as D,cardStateValue as I}from"../../format/lib/content/card-state.js";import{usePageRecordRow as L}from"./CurrentRecord.js";const a=h(null);function b(){return l(a)}function k({type:u,props:i,children:t}){const e=l(a),d=L(),n=e?.row??d;return r(c,{children:t(g(u,i,n),e,n)})}function M({ownerId:u,ownerType:i,Template:t,rows:e,items:d,states:n,fallback:E,wrapCopy:m,children:T}){const _=l(a);if(!t||(t.blockCount??0)<=0)return r(c,{children:E});const f=_!==null,A=e.map((C,o)=>{const s=n?.[o],R={row:C,index:o,ownerType:i,item:d?.[o],nested:f,...s?{state:s}:null},p=r("div",{[x]:`${u}:${S}`,[P]:o,...D(s),children:I(s)?w(c,{children:[r(t,{}),r("span",{"aria-hidden":"true",className:j})]}):r(t,{})});return r(a.Provider,{value:R,children:m?m(p,R):p},o)});return r(c,{children:T(A)})}export{a as CardRowContext,k as CardRowDrawn,M as CardTemplateRows,b as useCardRow};
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 +1 @@
1
- import{jsx as b}from"react/jsx-runtime";import h from"./BlockFrame.js";import{sectionPadAttrs as y}from"../lib/content/section-padding.js";import{finiteNumber as a}from"../../format/lib/finite-number.js";import{DEFAULT_DIVIDER_STYLE as P,DIVIDER_SPACE_PX as p,STRIPE_BAND_HEIGHT_PX as N,parseDividerSpacing as _,parseDividerStyle as g,stripeBackground as I}from"../../format/lib/sections/divider-style.js";const D=1,E=100;function B(t,e,s){const o={};return!s&&typeof t=="number"&&t!==D&&(o.borderTopWidth=t),typeof e=="number"&&e<E&&(o.width=`${e}%`),Object.keys(o).length?o:void 0}const S={sm:"my-6",md:"my-12",lg:"my-20"},u=(...t)=>t.some(e=>a(e)!==void 0);function w(t,e,s){const o=s||u(e.top,e.topTablet,e.topPhone),n=s||u(e.bottom,e.bottomTablet,e.bottomPhone),m=u(e.left,e.right,e.leftTablet,e.rightTablet,e.leftPhone,e.rightPhone);if(!o&&!n&&!m)return null;const r=p[t],i=y({...e,top:o?a(e.top)??r:void 0,bottom:n?a(e.bottom)??r:void 0,topTablet:o?e.topTablet:void 0,bottomTablet:n?e.bottomTablet:void 0,topPhone:o?e.topPhone:void 0,bottomPhone:n?e.bottomPhone:void 0}),l={...i?.style};return o||(l.marginTop=r),n||(l.marginBottom=r),{className:i?.className??"",style:l}}function x({spacing:t,contained:e,style:s=P,thickness:o,lengthPct:n,hideOnMobile:m=!1,pad:r={}}){const i=g(s),l=_(t),c=I(i),d=B(o,n,!!c),f=w(l,r,i==="none"),T=[f?f.className:S[l],m?"max-view-wide:hidden":""].filter(Boolean).join(" ");return b(h,{contained:e,className:T,style:f?.style,children:i==="none"?null:c?b("hr",{className:"border-x-0 border-y border-line",style:{height:N,backgroundImage:c,...d}}):b("hr",{className:"border-0 border-t border-line",style:d})})}export{x as default};
1
+ import{jsx as b}from"react/jsx-runtime";import y from"./BlockFrame.js";import{padDefaultIn as T,sectionPadAttrs as p}from"../lib/content/section-padding.js";import{finiteNumber as a}from"../../format/lib/finite-number.js";import{DEFAULT_DIVIDER_STYLE as P,DIVIDER_SPACE_PX as I,STRIPE_BAND_HEIGHT_PX as N,parseDividerSpacing as _,parseDividerStyle as g,stripeBackground as D}from"../../format/lib/sections/divider-style.js";const E=1,B=100;function S(o,e,s){const t={};return!s&&typeof o=="number"&&o!==E&&(t.borderTopWidth=o),typeof e=="number"&&e<B&&(t.width=`${e}%`),Object.keys(t).length?t:void 0}const w={sm:"my-6",md:"my-12",lg:"my-20"},u=(...o)=>o.some(e=>a(e)!==void 0);function x(o,e,s){const t=s||u(e.top,e.topTablet,e.topPhone),n=s||u(e.bottom,e.bottomTablet,e.bottomPhone),m=u(e.left,e.right,e.leftTablet,e.rightTablet,e.leftPhone,e.rightPhone);if(!t&&!n&&!m)return null;const r=I[o],i=p({...e,top:t?a(e.top)??T(r,e.unit,"desktop"):void 0,bottom:n?a(e.bottom)??T(r,e.unit,"desktop"):void 0,topTablet:t?e.topTablet:void 0,bottomTablet:n?e.bottomTablet:void 0,topPhone:t?e.topPhone:void 0,bottomPhone:n?e.bottomPhone:void 0}),l={...i?.style};return t||(l.marginTop=r),n||(l.marginBottom=r),{className:i?.className??"",style:l}}function A({spacing:o,contained:e,style:s=P,thickness:t,lengthPct:n,hideOnMobile:m=!1,pad:r={}}){const i=g(s),l=_(o),c=D(i),d=S(t,n,!!c),f=x(l,r,i==="none"),h=[f?f.className:w[l],m?"max-view-wide:hidden":""].filter(Boolean).join(" ");return b(y,{contained:e,className:h,style:f?.style,children:i==="none"?null:c?b("hr",{className:"border-x-0 border-y border-line",style:{height:N,backgroundImage:c,...d}}):b("hr",{className:"border-0 border-t border-line",style:d})})}export{A as default};
@@ -4,7 +4,8 @@ export declare const ALIGN_JUSTIFY: Record<HeroCopyAlignment, string>;
4
4
  export interface EyebrowProps {
5
5
  text: string;
6
6
  align?: HeroCopyAlignment;
7
+ alignTablet?: unknown;
7
8
  alignPhone?: unknown;
8
9
  look?: SectionEyebrowLook;
9
10
  }
10
- export default function Eyebrow({ text, align, alignPhone, look, }: EyebrowProps): import("react").JSX.Element;
11
+ export default function Eyebrow({ text, align, alignTablet, alignPhone, look, }: EyebrowProps): import("react").JSX.Element;
@@ -1 +1 @@
1
- import{jsx as f}from"react/jsx-runtime";import i from"./SectionEyebrow.js";import{DEFAULT_EYEBROW_BLOCK_LOOK as n}from"../../format/lib/sections/section-eyebrow-look.js";import{alignPhoneClass as s}from"../../format/lib/content/block-align.js";const m={left:"",center:"justify-center",right:"justify-end"};function l({text:o,align:t="left",alignPhone:r,look:e=n}){return f(i,{text:o,look:e,classNameAfter:e==="line"?[m[t],s("justify",t,r)].filter(Boolean).join(" "):""})}export{m as ALIGN_JUSTIFY,l as default};
1
+ import{jsx as f}from"react/jsx-runtime";import s from"./SectionEyebrow.js";import{DEFAULT_EYEBROW_BLOCK_LOOK as n}from"../../format/lib/sections/section-eyebrow-look.js";import{alignViewClasses as m}from"../../format/lib/content/block-align.js";const l={left:"",center:"justify-center",right:"justify-end"};function a({text:r,align:t="left",alignTablet:o,alignPhone:i,look:e=n}){return f(s,{text:r,look:e,classNameAfter:e==="line"?[l[t],m("justify",t,o,i)].filter(Boolean).join(" "):""})}export{l as ALIGN_JUSTIFY,a as default};
@@ -1 +1 @@
1
- import{Fragment as E,jsx as e,jsxs as l}from"react/jsx-runtime";import{stripMarkup as A}from"../../format/lib/markup.js";import{renderGold as m,renderHeadline as F}from"./goldPhrases.js";import R from"./SectionHeader.js";import{SectionTextParts as T}from"../lib/document/editing-bridges.js";import u from"./TextRegionRun.js";import{TEXT_REGION_ATTR as S,regionStyle as I,textRegionPartKey as O}from"../../format/lib/sections/text-regions.js";import{FAQ_REGIONS as z}from"../../format/lib/sections/faq-text-regions.js";import{SIZE_STEP_OF_ROLE as j}from"../../format/lib/fonts.js";import{say as c}from"../../format/lib/editor-words.js";import{SITE_COLUMN as L}from"../../format/lib/content/page-width.js";import{listNumber as M}from"../../format/lib/content/list-number.js";function _(r){return A(r).trim()}function f(r,t){return r?{[S]:t}:{}}function x(r,t){const i=r?.[O(t)]?.role;return I(i,z[t],j)}function Q({editing:r,nodeId:t,partStyles:i,children:o}){return!r||!t?e(E,{children:o}):e(T,{nodeId:t,sectionType:"FAQ",partStyles:i,children:o})}const k="relative z-[2] bg-bg py-[120px] max-view-wide:py-[70px]",P="relative z-[2] bg-bg pt-0 pb-[120px] max-view-wide:pt-0 max-view-wide:pb-[70px]";function G({num:r,title:t,link:i,items:o,defaultOpen:b=!0,editing:s=!1,omitHead:h=!1,nodeId:v,partStyles:a}){const d=(o??[]).filter(n=>(n.question??"").trim()!==""),N=s&&d.length===0;if(d.length===0&&!s)return null;const w=N?[{question:c("Add your first question"),answer:c("Write the answer here.")},{question:c("Add another question"),answer:c("Write the answer here.")}]:d,g=w.filter(n=>(n.answer??"").trim()!=="").map(n=>({"@type":"Question",name:_(n.question??""),acceptedAnswer:{"@type":"Answer",text:_(n.answer??"")}})),y=!s&&g.length>0?JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:g}).replace(/</g,"\\u003c"):null,q=t?F(t,!0):void 0;return l("section",{className:h?P:k,children:[e("style",{children:".faq-acc__ico{transition:transform .2s ease}details[open]>summary .faq-acc__ico{transform:rotate(45deg)}"}),y&&e("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:y}}),l("div",{className:L,children:[h?null:e(R,{num:r!==void 0?m(r):void 0,title:q,link:i?{text:m(i.text),href:i.href}:void 0,accent:!0}),e(Q,{editing:s,nodeId:v,partStyles:a,children:e("div",{children:w.map((n,p)=>l("details",{open:p===0&&b,className:"border-b border-line",children:[l("summary",{className:"flex cursor-pointer list-none items-center gap-6 py-7 [&::-webkit-details-marker]:hidden max-view-wide:gap-4 max-view-wide:py-5",children:[e("span",{className:"font-mono text-[length:var(--size-label,14px)] tracking-[0.2em] text-accent",...f(s,"number"),style:x(a,"number"),children:e(u,{region:"number",partStyles:a,children:M(p)})}),e("span",{className:"flex-1 font-display text-[length:var(--size-body,18px)] font-medium uppercase tracking-[0.02em] text-fg max-view-wide:text-[length:var(--size-body,15px)]",...f(s,"question"),style:x(a,"question"),children:e(u,{region:"question",partStyles:a,children:m(n.question??"")})}),e("span",{"aria-hidden":!0,className:"faq-acc__ico shrink-0 text-[length:var(--size-body,22px)] leading-none text-fg-dim",children:"+"})]}),n.answer&&e("div",{className:"pb-8 pl-11 pr-8 max-view-wide:pl-0 max-view-wide:pr-0",children:e("p",{className:"max-w-[760px] text-[length:var(--size-body,15px)] leading-[1.7] text-fg-dim",...f(s,"answer"),style:x(a,"answer"),children:e(u,{region:"answer",partStyles:a,children:m(n.answer)})})})]},p))})})]})]})}export{G as default};
1
+ import{Fragment as E,jsx as e,jsxs as l}from"react/jsx-runtime";import q,{ACCORDION_MARK_SHEET as R}from"./AccordionMark.js";import{stripMarkup as T}from"../../format/lib/markup.js";import{renderGold as m,renderHeadline as F}from"./goldPhrases.js";import O from"./SectionHeader.js";import{SectionTextParts as S}from"../lib/document/editing-bridges.js";import u from"./TextRegionRun.js";import{TEXT_REGION_ATTR as I,regionStyle as M,textRegionPartKey as j}from"../../format/lib/sections/text-regions.js";import{FAQ_REGIONS as z}from"../../format/lib/sections/faq-text-regions.js";import{SIZE_STEP_OF_ROLE as L}from"../../format/lib/fonts.js";import{say as c}from"../../format/lib/editor-words.js";import{SITE_COLUMN as Q}from"../../format/lib/content/page-width.js";import{listNumber as k}from"../../format/lib/content/list-number.js";function b(r){return T(r).trim()}function f(r,t){return r?{[I]:t}:{}}function x(r,t){const i=r?.[j(t)]?.role;return M(i,z[t],L)}function P({editing:r,nodeId:t,partStyles:i,children:a}){return!r||!t?e(E,{children:a}):e(S,{nodeId:t,sectionType:"FAQ",partStyles:i,children:a})}const C="relative z-[2] bg-bg py-[120px] max-view-wide:py-[70px]",G="relative z-[2] bg-bg pt-0 pb-[120px] max-view-wide:pt-0 max-view-wide:pb-[70px]";function H({num:r,title:t,link:i,items:a,defaultOpen:N=!0,editing:s=!1,omitHead:h=!1,nodeId:v,partStyles:o}){const p=(a??[]).filter(n=>(n.question??"").trim()!==""),_=s&&p.length===0;if(p.length===0&&!s)return null;const w=_?[{question:c("Add your first question"),answer:c("Write the answer here.")},{question:c("Add another question"),answer:c("Write the answer here.")}]:p,g=w.filter(n=>(n.answer??"").trim()!=="").map(n=>({"@type":"Question",name:b(n.question??""),acceptedAnswer:{"@type":"Answer",text:b(n.answer??"")}})),y=!s&&g.length>0?JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:g}).replace(/</g,"\\u003c"):null,A=t?F(t,!0):void 0;return l("section",{className:h?G:C,children:[e("style",{children:R}),y&&e("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:y}}),l("div",{className:Q,children:[h?null:e(O,{num:r!==void 0?m(r):void 0,title:A,link:i?{text:m(i.text),href:i.href}:void 0,accent:!0}),e(P,{editing:s,nodeId:v,partStyles:o,children:e("div",{children:w.map((n,d)=>l("details",{open:d===0&&N,className:"border-b border-line",children:[l("summary",{className:"flex cursor-pointer list-none items-center gap-6 py-7 [&::-webkit-details-marker]:hidden max-view-wide:gap-4 max-view-wide:py-5",children:[e("span",{className:"font-mono text-[length:var(--size-label,14px)] tracking-[0.2em] text-accent",...f(s,"number"),style:x(o,"number"),children:e(u,{region:"number",partStyles:o,children:k(d)})}),e("span",{className:"flex-1 font-display text-[length:var(--size-body,18px)] font-medium uppercase tracking-[0.02em] text-fg max-view-wide:text-[length:var(--size-body,15px)]",...f(s,"question"),style:x(o,"question"),children:e(u,{region:"question",partStyles:o,children:m(n.question??"")})}),e(q,{})]}),n.answer&&e("div",{className:"pb-8 pl-11 pr-8 max-view-wide:pl-0 max-view-wide:pr-0",children:e("p",{className:"max-w-[760px] text-[length:var(--size-body,15px)] leading-[1.7] text-fg-dim",...f(s,"answer"),style:x(o,"answer"),children:e(u,{region:"answer",partStyles:o,children:m(n.answer)})})})]},d))})})]})]})}export{H as default};
@@ -3,7 +3,7 @@ import { type ReactNode } from "react";
3
3
  import { type Loop, type LoopDirection } from "../../format/lib/animation/index.js";
4
4
  import { type PadValues } from "../lib/content/section-padding.js";
5
5
  import type { PictureHoverDrawn } from "../../format/lib/animation/hover.js";
6
- type Direction = "row" | "column" | "tabs";
6
+ type Direction = "row" | "column" | "tabs" | "accordion";
7
7
  type Justify = "start" | "center" | "between" | "end";
8
8
  type AlignItems = "start" | "center" | "end" | "stretch";
9
9
  interface FlexProps {
@@ -29,6 +29,7 @@ interface FlexProps {
29
29
  columns?: number | string;
30
30
  columnsTablet?: number | string;
31
31
  separator?: string;
32
+ stackBelow?: unknown;
32
33
  blockSpacing?: string;
33
34
  contained?: boolean;
34
35
  bgImage?: string;
@@ -36,16 +37,31 @@ interface FlexProps {
36
37
  pictureHover?: PictureHoverDrawn;
37
38
  darken?: number;
38
39
  darkenStyle?: string;
40
+ darkenTablet?: unknown;
41
+ darkenPhone?: unknown;
42
+ darkenStyleTablet?: unknown;
43
+ darkenStylePhone?: unknown;
39
44
  placement?: string;
40
45
  pad?: PadValues;
41
46
  fillHeight?: boolean;
42
47
  shadow?: unknown;
48
+ shadowTablet?: unknown;
49
+ shadowPhone?: unknown;
50
+ justifyTablet?: unknown;
51
+ justifyPhone?: unknown;
52
+ alignTablet?: unknown;
53
+ alignPhone?: unknown;
54
+ wrapTablet?: unknown;
55
+ blockSpacingTablet?: unknown;
56
+ blockSpacingPhone?: unknown;
43
57
  loop?: Loop;
44
58
  scrollDirection?: LoopDirection;
45
59
  loopSeconds?: number;
46
60
  loopDelay?: number;
47
61
  editing?: boolean;
48
62
  fillColor?: unknown;
63
+ fillColorTablet?: unknown;
64
+ fillColorPhone?: unknown;
49
65
  line?: unknown;
50
66
  upcoming?: unknown;
51
67
  link?: unknown;
@@ -61,6 +77,8 @@ interface FlexProps {
61
77
  boxId?: string;
62
78
  mirrorCards?: unknown;
63
79
  content: SlotComponent;
80
+ rowTitle?: SlotComponent;
81
+ startsOpen?: unknown;
64
82
  }
65
- export default function Flex({ direction, label, tabShape, gap, gapPhone, gapTablet, justify, align, wrap, share, sharePhone, shareTablet, wrapPhone, orderPhone, phoneRow, columns, columnsTablet, separator, blockSpacing, bgImage, bgImagePhone, pictureHover, darken, darkenStyle, placement, padV2, border, borderTablet, borderPhone, pad, contained, fillHeight, shadow, loop, scrollDirection, loopSeconds, loopDelay, editing, fillColor, line, upcoming, link, boxShape, boxShapePhone, boxShapeTablet, jumpHighlight, anchor, sharedSides, boxId, mirrorCards, content: Content, }: 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;
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;
66
84
  export {};
@@ -1 +1 @@
1
- import{Fragment as H,jsx as s,jsxs as lo}from"react/jsx-runtime";import{useId as Ve}from"react";import{parseHexColor as qe}from"efficient-shell/format";import Qe from"./BoxTabs.js";import{BoxTabPaneContext as Ze,useIsTabPane as os}from"./BoxTabPaneContext.js";import{boxPhoneCell as es,boxPhoneOrder as ss}from"../../format/lib/content/box-phone-place.js";import{CellFillContext as ts,InBoxContext as rs,useCellOfStretchedRow as ns,useFillsCell as ls}from"./InBoxContext.js";import as,{InsideSiteColumn as se,useInsideSiteGutter as cs,useSectionRoot as ms}from"./SiteGutterFrame.js";import{BoxSurfaceProvider as is}from"./BoxSurfaceContext.js";import us from"./PictureWash.js";import{BoxCellWidthContext as ds}from"./BoxCellWidthContext.js";import{useInSiteHeader as fs}from"./PhoneMenuTools.js";import{useCardRow as Cs}from"./CardRowContext.js";import{framesItsCards as ps}from"../../format/lib/content/card-place.js";import{MirrorContext as bs,useMirroredCopy as Ss,useUnderCardBox as xs}from"./MirrorContext.js";import{isMirroredCopy as hs,mirrorCardsActs as $s,mirroredBoxClass as _s,MIRROR_ROW_CLASS as ys,ownsCard as Ps}from"../../format/lib/content/mirror-cards.js";import{FRAME_BASE as ao,FRAME_GUTTER as co}from"./BlockFrame.js";import{containerGapProps as Rs}from"../../format/lib/content/container-gap.js";import{boxLayoutClasses as As,boxBlockSpacingClass as Ls,boxFitContentClass as ws,boxRowColumnsClass as Os,boxRowTabletColumnsClass as Ns,boxRowTabletShareClass as Bs,boxPhoneCellsShareLine as vs,boxPhoneRowClasses as T,boxPhoneRowFits as ks,boxShareClasses as P,boxShareVars as Es,boxWrapClass as Ts}from"../../format/lib/content/box-layout.js";import{boxSeparatorClasses as Fs,boxSeparatorSeamClass as gs,boxSeparatorStyle as Ds,isStripBox as Is}from"../../format/lib/content/box-separator.js";import{DEFAULT_LOOP_DELAY as Ms,DEFAULT_LOOP_DIRECTION as Ws,DEFAULT_LOOP_SECONDS as js,isVerticalLoop as Hs}from"../../format/lib/animation/index.js";import{LoopTrack as Us}from"../lib/animation/LoopTrack.js";import{BOX_CARD_PAD as u,BOX_OWNS_SIDES_CLASS as Xs,boxDarkenStyle as Gs,boxPlacementClasses as Ks,CARD_SHADOW_CLASS as zs,isBackgroundBox as te}from"../../format/lib/content/box-background.js";import{boxShadowAttrs as re}from"../../format/lib/content/box-shadow.js";import{boxRunsEdgeToEdge as Js,drawsSiteGutter as Ys}from"../../format/lib/content/site-gutter.js";import{boxShapeClass as Vs,boxShapeClasses as qs}from"../../format/lib/content/box-shape.js";import{BOX_JUMP_ATTR as Qs,BOX_LINK_ATTR as ne,BOX_LINK_CLASS as le,BOX_LINKED_CLASS as Zs,boxJumpBlocksClass as ot,boxJumpCss as et,boxJumpSlug as st,boxLinkOf as tt}from"../../format/lib/content/box-link.js";import{SiteLink as rt}from"../lib/site-runtime.js";import{sectionBorderStyle as ae}from"../../format/lib/content/borders.js";import{finiteNumber as d}from"../../format/lib/finite-number.js";import{sectionPadAttrs as nt}from"../lib/content/section-padding.js";import{SECTION_FILL_CLASS as U}from"../../format/lib/content/section-min-height.js";import{ON_MEDIA_INK_STYLE as lt}from"../../format/lib/content/ink.js";import{sizedBackground as mo}from"../../format/lib/sized-image.js";import{PHOTO_HOST_ATTR as at,resolveImageTreatment as ct}from"../../format/lib/content/image-treatment.js";import{BoxRail as mt,BoxRailStop as it,RAIL_STOPS_CLASS as ut,useTimelineRail as dt}from"./TimelineRail.js";import{SHARED_PLAIN_ATTR as ft,sharedColumnsClasses as Ct,sharedColumnsCss as pt}from"../lib/content/box-shared-columns.js";import bt from"./PhotoHoverSheet.js";const io={"--sf-site-gutter":"0px"},St={overflowX:"clip",overflowY:"visible"},xt={desktop:!1,phone:!1},ce="bg-cover bg-center bg-[image:var(--sf-box-bg)] max-view-tablet:bg-[image:var(--sf-box-bg-p)]",uo=o=>o==null||o==="",fo=o=>!uo(o)&&Number(o)===0;function ht({children:o}){return s(H,{children:o(Ve())})}function $t({direction:o,label:me,tabShape:ie,gap:Co,gapPhone:ue,gapTablet:X,justify:F,align:b,wrap:po,share:n,sharePhone:g,shareTablet:R,wrapPhone:de,orderPhone:fe,phoneRow:A,columns:L,columnsTablet:w,separator:a,blockSpacing:Ce,bgImage:O,bgImagePhone:bo,pictureHover:pe,darken:be,darkenStyle:Se,placement:xe,padV2:So=!1,border:xo,borderTablet:ho,borderPhone:$o,pad:r={},contained:G=!0,fillHeight:f=!1,shadow:_o,loop:S,scrollDirection:K=Ws,loopSeconds:he=js,loopDelay:$e=Ms,editing:D=!1,fillColor:yo,line:x,upcoming:_e,link:ye,boxShape:Po,boxShapePhone:Pe,boxShapeTablet:Re,jumpHighlight:Ae,anchor:Le,sharedSides:h=xt,boxId:Ro,mirrorCards:we,content:c}){const $=D?"":tt(ye),m=f?"":qs(Po,Pe,Re),Oe=!f&&Vs(Po)!=="",C=st(Ae,Le),z=typeof yo=="string"?qe(yo.trim()):null,Ao=z?{backgroundColor:z}:void 0,Lo=dt(),J=x===!0&&o!=="tabs",t=te(O),I=fs(),Ne=ms(),wo=os(),Y=ls(),Be=ns(),N=Is(o,a),l=S==="scroll"&&o!=="tabs",_=Cs(),ve=Ss(),ke=xs(),M=Ps({inCopy:_!==null,nestedCopy:_?.nested===!0,underBox:ke}),V=M&&ps(_?.ownerType),Oo=$s({direction:o,separator:a,loop:S,line:x,bgImage:O,columns:L,columnsTablet:w,share:n,wrap:po},M,h.desktop)&&hs(we,_?.index),No=t||M?"":_s(ve,o,l?void 0:F,b),B=Os({direction:o,separator:a,loop:S,line:x,columns:L}),y=Ns({direction:o,separator:a,loop:S,line:x,columnsTablet:w}),W=Bs({direction:o,separator:a,loop:S,line:x,columns:L,columnsTablet:w,share:n,shareTablet:R}),Ee=cs(),j=Ct(h,c.blockCount??0),Te=j&&(!_||_.index===0)?pt(h,c.blockCount??0):"",Bo=y!==""?Number(w)>=2:W===""||P(R)!=="",q=y!==""||W!=="",Fe=q&&!(y!==""&&Number(w)<2),vo=o==="row"&&!N&&!l&&x!==!0,Q=vo&&!h.phone&&!h.desktop?es(ss(fe,c.blockIds??[]),{tabletKeepsRow:Fe,editing:D}):void 0,ko=Q!==void 0&&!D,ge=B!==""?Number(L)>=2:P(n)!=="",Eo=[P(n),o==="row"?ws(n):"",B,y,W,Ls(Ce),Fs(o,a)].filter(Boolean).join(" "),De=Eo?` ${Eo}`:"",To=["flex",o==="row"?N||l?"flex-row":`flex-row ${T(A,g,de)}`:"flex-col",Ts(l?!1:po),t?Ks(xe??"center",o):As(l?void 0:F,b)+(No?` ${No}`:"")].join(" ")+De,v=f||t||m||Y?` ${U}`:"",Z=Oe?` ${m}`:m?`${v} ${m}`:v,Fo=Be&&o==="column"&&!t&&!l&&P(n)===""&&typeof F=="string"&&F!=="start",go=v||(Fo?` ${U}`:""),oo=$?` ${Zs}`:"",eo=t||I||So?"":" py-6",Ie=`${ao}${eo} ${co}${Z}${oo}`,Me=I?`${Z}${oo}`.trim():`w-full${eo}${Z}${oo}`,k=Rs("Flex",Co,o==="row"?"inline":"block",ue,N||l?void 0:X),Do=Es(n,R,o==="row"?c.blockCount??0:0),Io=N?{...k.style,...Ds(o,a)}:k.style,We=Do?{...Io,...Do}:Io,Mo=(e="")=>s(c,{className:`${To}${Oo?` ${ys}`:""}${k.className}${go}${e?` ${e}`:""}${J?` ${ut}`:""}${C?` ${ot(C)}`:""}${j}`,style:We,minEmptyHeight:120,...Q?{cell:Q}:null}),Wo=Hs(K)?"":gs(o,a),jo=l?s(Us,{direction:K,seconds:he,delay:$e,editing:D,copy:e=>Mo(e&&Wo?`${e} ${Wo}`:e)}):Mo(),Ho=o==="tabs"?s(Qe,{className:`${To}${k.className}${Y&&!f&&!t&&!m?"":v}`,style:k.style,shape:ie,children:jo}):jo,Uo=wo?s(Ze.Provider,{value:!1,children:Ho}):Ho,Xo=o==="row"&&!t&&(b===void 0||b==="stretch"),je={stretchedRow:Xo,fillingColumn:o==="column"&&(Y||Fo),columnsRow:B!==""||y!==""||j!==""||o==="row"&&(Array.isArray(n)||Array.isArray(R))||ko,...ko?{phoneCells:!0}:null,...Xo&&vo&&(c.blockCount??0)>=2&&ge?{picturesFillRow:!0}:null,...q?{fillFrom:Bo?"tablet":"desktop"}:null,...vs(A,g)&&(!q||Bo)?{phoneRowFills:!0}:null,...Ro?{id:Ro}:null},Go=s(rs.Provider,{value:je,children:s(ts.Provider,{value:!1,children:M?s(bs.Provider,{value:Oo,children:Uo}):Uo})}),so=J?s(mt,{row:o==="row",stops:c.blockCount??0,children:Go}):Go,He=me?.trim()||(wo?"":void 0),Ue={values:r,frame:eo?24:0},Xe=e=>Lo?s(it,{on:Lo,future:_e===!0,children:e}):e,Ge=e=>$.startsWith("/")?s(rt,{href:$,className:le,"aria-labelledby":e,[ne]:""}):s("a",{href:$,className:le,"aria-labelledby":e,[ne]:""}),Ko=(C?et(C):"")+Te,zo=Ko?s("style",{dangerouslySetInnerHTML:{__html:Ko}}):null,E=Js({loop:S,direction:o,scrollDirection:K,bgImage:O}),Ke=h.desktop&&j!==""&&!z&&!ae(xo,$o,ho)&&Object.keys(re(_o)).length===0&&!$&&!m&&!f&&!C&&!Ys(G&&!E,Ee)&&fo(Co)&&(uo(X)||fo(X))&&So&&Object.values(r).every(e=>uo(e)||fo(e)),ze=e=>({...Ke?{[ft]:""}:null,...t?null:re(_o),...C?{[Qs]:C}:null,...e?{id:e}:null}),Jo=B!==""?Number(L):0,Je=T(A,g)===T(void 0),Ye=(o==="column"||o==="row"&&!N&&!l&&(Jo===1&&Je||Jo===0&&c.blockCount===1))&&!t&&!J&&!I,Yo=t&&Ne&&!I,Vo=(e,i)=>Xe(s(as,{contained:G&&!E,style:E?io:void 0,framedClass:Ie,fillClass:Me,columnClass:`${ao} ${co}${go}`,tabLabel:He,pad:t?void 0:Ue,border:ae(xo,$o,ho),outerAttrs:ze(i),box:!0,edge:Ye,outerStyle:t?void 0:Ao,bleed:Yo,children:zo||i?lo(H,{children:[zo,i?Ge(i):null,E?s(se,{children:e}):e]}):E?s(se,{children:e}):e})),qo=e=>$?s(ht,{children:i=>Vo(e,i)}):Vo(e);if(!t){const e=b===void 0||b==="stretch",i=(P(n)!==""||B!==""||y!=="")&&!ks(A,g)&&!(W!==""&&P(R)==="")&&(e||T(A)!==T(void 0));return qo((o==="row"?i:o==="column"&&e)?s(ds.Provider,{value:!0,children:so}):so)}const to=Gs(be,Se),ro=te(bo),Qo=ro?{"--sf-box-bg":mo(O??""),"--sf-box-bg-p":mo(bo??"")}:{backgroundImage:mo(O??""),backgroundSize:"cover",backgroundPosition:"center"},Zo=ct(void 0,void 0,pe),p=Zo.className?Zo:null,no=nt({...r,top:d(r.top)??u.desktop,bottom:d(r.bottom)??u.desktop,topPhone:d(r.topPhone)??u.phone,bottomPhone:d(r.bottomPhone)??u.phone,left:d(r.left)??u.side,right:d(r.right)??u.side,leftPhone:d(r.leftPhone)??u.sidePhone,rightPhone:d(r.rightPhone)??u.sidePhone}),oe=s("div",{className:`relative z-[1] ${Xs} ${no?.className??""}${f||m?` ${U}`:""}`.trimEnd(),style:to?{...no?.style,...io,...lt}:{...no?.style,...io},children:so}),ee=Yo&&G?s("div",{className:`${ao} ${co}${f||m?` ${U}`:""}`,children:oe}):oe;return qo(s(H,{children:lo("div",{className:`relative isolate overflow-hidden ${zs}${v}${ro&&!p?` ${ce}`:""}`,style:{...V?St:{},...Ao,...p?{}:Qo},...p?{[at]:""}:{},children:[p&&lo(H,{children:[s(bt,{sheet:p.sheet}),s("div",{"aria-hidden":!0,className:`absolute inset-0${V?" rounded-[inherit]":""}${ro?` ${ce}`:""} ${p.className}`,style:{...Qo,...p.style??{}}})]}),s(us,{wash:to,...V?{className:"rounded-[inherit]"}:{}}),to?s(is,{children:ee}):ee]})}))}export{$t as default};
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};
@@ -25,6 +25,9 @@ interface Props {
25
25
  heightDesktop?: number;
26
26
  heightTablet?: number;
27
27
  heightMobile?: number;
28
+ heightFixed?: string;
29
+ heightFixedTablet?: string;
30
+ heightFixedMobile?: string;
28
31
  showPicker?: boolean;
29
32
  pickerShape?: HeroReelShape;
30
33
  pickerPlacement?: string;
@@ -34,4 +37,4 @@ interface Props {
34
37
  editing?: boolean;
35
38
  partMotion?: Record<string, unknown>;
36
39
  }
37
- export default function HeroSection({ slides: Slides, strip: Strip, alignment, textureOpacity, showTexture, textureColor, phoneUpDown, phoneSideways, autoplay, autoplayInterval, showTicker, tickerItems, heightDesktop, heightTablet, heightMobile, showPicker, pickerShape, pickerPlacement, showArrows, arrowsShape, arrowsPlacement, editing, partMotion, }: Props): import("react").JSX.Element;
40
+ export default function HeroSection({ slides: Slides, strip: Strip, alignment, textureOpacity, showTexture, textureColor, phoneUpDown, phoneSideways, autoplay, autoplayInterval, showTicker, tickerItems, heightDesktop, heightTablet, heightMobile, heightFixed, heightFixedTablet, heightFixedMobile, showPicker, pickerShape, pickerPlacement, showArrows, arrowsShape, arrowsPlacement, editing, partMotion, }: Props): import("react").JSX.Element;
@@ -1 +1 @@
1
- "use client";import{jsx as n,jsxs as P}from"react/jsx-runtime";import{useCallback as v,useEffect as w,useId as Ne,useRef as d,useState as k}from"react";import{markOverlayPortal as W}from"../../format/lib/document/overlay-portal.js";import Ae from"./Ticker.js";import{HeroSlideStyleContext as He}from"./HeroSlide.js";import Le from"./HeroArrows.js";import Me from"./Reel.js";import{TICKER_PART_ATTR as Ce}from"./PreviewTickerContext.js";import{useReducedMotion as Pe}from"./useReducedMotion.js";import{heroHeightBox as De}from"../../format/lib/content/section-height.js";import{HEADER_HEIGHT_CSS as Ie}from"../lib/document/header-clearance.js";import{nextReel as Ve,normaliseHeroReelShape as $e,reelShown as ze}from"../../format/lib/reel.js";import{arrowsShown as Xe,arrowStep as Be}from"../../format/lib/hero-arrows.js";import{swipeEnabled as Ge,swipeStep as Ye}from"../../format/lib/hero-swipe.js";import{videoControlShown as je,videoHeld as qe}from"../../format/lib/hero-video-control.js";import{HERO_SLIDER_GOTO_EVENT as D}from"efficient-easel/draw";import{say as Z}from"../../format/lib/editor-words.js";import{markedChildren as ee}from"../../format/lib/marked-children.js";import{legacyTickerDrawn as Ke,TICKER_MOTION_PART as Fe}from"../../format/lib/hero-ticker.js";import{ON_MEDIA_INK_STYLE as Je}from"../../format/lib/content/ink.js";import{SectionAnimation as Qe}from"./SectionAnimation.js";import{entranceDrawn as Ue}from"../lib/animation/entrance.js";import{readPartMotion as We}from"../lib/animation/part-motion.js";import{scrim as te}from"../../format/lib/content/scrim.js";const Ze="Play video",et="Hold video",tt="flex h-7 cursor-pointer items-center gap-1.5 rounded-full border border-overlay-chrome/25 bg-overlay-scrim/80 px-[11px] font-mono text-[11px] leading-none tracking-[0.05em] text-overlay-fg",rt=()=>Z("item"),re=new Map;function ot(m,a){const l=m?.ownerDocument?.defaultView;if(l)return l.addEventListener(D,a),()=>l.removeEventListener(D,a)}function nt({slides:m,strip:a,alignment:l,textureOpacity:y,showTexture:E,textureColor:g,phoneUpDown:oe,phoneSideways:ne,autoplay:I,autoplayInterval:S,showTicker:se,tickerItems:V,heightDesktop:ce,heightTablet:ae,heightMobile:le,showPicker:ie,pickerShape:ue,pickerPlacement:de,showArrows:me,arrowsShape:fe,arrowsPlacement:he,editing:s,partMotion:pe}){const{className:ve,style:be}=De({heightDesktop:ce,heightTablet:ae,heightMobile:le}),$=(a?.blockCount??0)>0,xe=!$&&Ke({showTicker:se,tickerItems:V}),z=(V??[]).map(e=>e?.text?.trim()?e.text:s?rt():"").filter(Boolean),we=Ue(We({_partMotion:pe},Fe)),f=d(null),X=d(null),B=d(null),G=d(null),Y=Ne(),N=d(Y),[_,ke]=k([]),[ye,j]=k(0),b=d(0),[q,K]=k(!1),[Ee,F]=k(null),[R,ge]=k(!1),A=Pe(),T=v(()=>f.current?.querySelector(".hero-track")??null,[]),i=v((e,t=!1)=>{j(e),F(o=>o===e?o:null),b.current=e,re.set(N.current,e);const r=f.current?.querySelector(".hero-track");if(r)if(t){const o=r.style.transition;r.style.transition="none",r.style.transform=`translateX(-${Math.max(0,e)*100}%)`,r.offsetHeight,r.style.transition=o}else r.style.transform=`translateX(-${Math.max(0,e)*100}%)`},[]);w(()=>{const e=f.current,t=e?.getAttribute("data-easel-block")||e?.closest("[data-easel-block]")?.getAttribute("data-easel-block")||Y;N.current=t;const r=re.get(t);typeof r=="number"&&(j(r),b.current=r)},[]),w(()=>{const e=T();if(!e)return;const t=()=>{ke(o=>Ve(o,ee(e,"data-slide-name")))};t();const r=new MutationObserver(t);return r.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-slide-name","data-slide-process","data-slide-media"]}),()=>{r.disconnect()}},[T]),w(()=>{if(!s)return;const e=t=>{const r=t.detail;if(!r||typeof r.index!="number")return;const o=f.current,p=o?.getAttribute("data-easel-block")||o?.closest("[data-easel-block]")?.getAttribute("data-easel-block")||N.current;r.id&&r.id!==p||i(r.index,!0)};return ot(f.current,e)},[s,i]);const c=_.length,u=Math.min(Math.max(ye,0),Math.max(0,c-1)),H=Ee===u,L=ze({shown:ie,count:c}),J=Xe({shown:me,count:c}),Q=je({editing:s,shown:u,slides:_}),_e=qe({editing:s,playing:R,controlShown:Q}),O=Ge({count:c,editing:s}),h=d(null),x=d(null),Re=v(e=>{if(h.current=null,x.current=null,!O||e.touches.length!==1)return;const t=e.touches[0];h.current={x:t.clientX,y:t.clientY},x.current={x:t.clientX,y:t.clientY}},[O]),Te=v(e=>{if(!h.current)return;if(e.touches.length!==1){h.current=null;return}const t=e.touches[0];x.current={x:t.clientX,y:t.clientY}},[]),Oe=v(()=>{const e=h.current,t=x.current;if(h.current=null,x.current=null,!O||!e||!t)return;const r=Ye(t.x-e.x,t.y-e.y,b.current,c);r!==b.current&&i(r)},[O,c,i]);w(()=>{if(s||!I||q||H||A||c<=1)return;const t=Math.max(1,typeof S=="number"?S:6)*1e3,r=window.setTimeout(()=>i((u+1)%c),t);return()=>window.clearTimeout(r)},[s,I,S,q,H,A,c,u,i]),w(()=>{const e=[X.current,B.current,G.current].filter(Boolean),t=e.map(o=>W(o)),r=o=>{const p=o.target,M=p.closest("[data-hero-nav]"),U=M??p.closest("[data-idx]");if(!U)return;o.stopPropagation(),o.preventDefault();const C=M?Be(M.dataset.heroNav,b.current,c):Number(U.dataset.idx);Number.isNaN(C)||(i(C,s),ee(T(),"data-slide-name")[C]?.click())};return e.forEach(o=>o.addEventListener("click",r,{capture:!0})),()=>{t.forEach(o=>o?.()),e.forEach(o=>o.removeEventListener("click",r,{capture:!0}))}},[c,i,T,s]);const Se=v(e=>{if(!e)return;const t=W(e),r=o=>{o.stopPropagation(),o.preventDefault(),ge(p=>!p)};return e.addEventListener("click",r,{capture:!0}),()=>{t?.(),e.removeEventListener("click",r,{capture:!0})}},[]);return n(He.Provider,{value:{alignment:l,textureOpacity:y,textureOn:E,textureColor:g,quietVideo:_e,phoneUpDown:oe,phoneSideways:ne,holdReel:()=>F(u),reelHeld:H},children:P("div",{ref:f,className:`relative mx-[var(--sf-hero-bleed-m,calc(50%_-_50vw))] w-[var(--sf-hero-bleed-w,100vw)] ${ve} max-w-[var(--sf-hero-cap,none)] overflow-hidden`,style:be,onMouseEnter:()=>K(!0),onMouseLeave:()=>K(!1),onTouchStart:Re,onTouchMove:Te,onTouchEnd:Oe,children:[n(m,{className:"hero-track flex h-full [&>*]:h-full [&>*]:min-w-full [&>*]:shrink-0 [&>*]:basis-full",style:{transform:`translateX(-${u*100}%)`,transition:A?"none":"transform 600ms cubic-bezier(.22,.61,.36,1)"},minEmptyHeight:400}),Q&&n("div",{ref:Se,"data-hero-video-control":R?"playing":"held",className:"sf-hero-video-control absolute left-6 z-[7]",style:{top:`calc(${Ie} + 16px)`},children:P("button",{type:"button",className:tt,children:[n("span",{"aria-hidden":"true",children:R?"❚❚":"▶"}),Z(R?et:Ze)]})}),(L||J)&&P("div",{className:"pointer-events-none absolute inset-y-0 left-[var(--sf-hero-chrome-x,var(--sf-site-gutter,40px))] right-[var(--sf-hero-chrome-x,var(--sf-site-gutter,40px))] z-[6] mx-auto max-w-[var(--sf-hero-chrome-cap,calc(var(--sf-site-width,1600px)_-_var(--sf-site-gutter,40px)*2))]",children:[L&&n(Me,{ref:X,slides:_,active:u,shape:$e(ue),placement:de}),J&&n(Le,{ref:G,shape:fe,placement:he})]}),L&&n("div",{ref:B,className:"sf-hero-phone-dots absolute bottom-[80px] left-1/2 z-[6] hidden -translate-x-1/2 items-center gap-2",children:_.map((e,t)=>n("button",{type:"button","data-idx":t,"aria-label":`Go to slide ${t+1}`,className:`h-2 rounded-full transition-all motion-reduce:transition-none ${t===u?"w-5 bg-accent":"w-2 bg-white/45 hover:bg-white/70"}`},t))}),$&&a&&n("div",{className:"sf-hero-strip absolute inset-x-0 bottom-0 z-[5] border-t border-overlay-chrome/10",style:{background:te(.55),...Je},children:n(a,{})}),xe&&z.length>0&&n(st,{editing:!!s,entrance:we,children:n(Ae,{items:z,backdrop:"dark-media"})})]})})}function st({editing:m,entrance:a,children:l}){const y="sf-hero-ticker absolute inset-x-0 bottom-0 z-[5] border-t border-overlay-chrome/10 py-3.5",E=m?{[Ce]:""}:void 0,g={background:te(.55)};return a?n(Qe,{desktop:a.desktop,phone:a.phone,editing:m,boxClass:y,boxAttrs:E,boxStyle:g,children:l}):n("div",{className:y,...E,style:g,children:l})}export{D as HERO_SLIDER_GOTO_EVENT,et as HERO_VIDEO_HOLD_LABEL,Ze as HERO_VIDEO_PLAY_LABEL,nt as default,ot as subscribeSliderGoto};
1
+ "use client";import{jsx as n,jsxs as D}from"react/jsx-runtime";import{useCallback as v,useEffect as w,useId as Ce,useRef as d,useState as k}from"react";import{markOverlayPortal as ee}from"../../format/lib/document/overlay-portal.js";import Pe from"./Ticker.js";import{HeroSlideStyleContext as De}from"./HeroSlide.js";import Ie from"./HeroArrows.js";import Ve from"./Reel.js";import{TICKER_PART_ATTR as $e}from"./PreviewTickerContext.js";import{useReducedMotion as ze}from"./useReducedMotion.js";import{heroHeightBox as Be,heroStoresRatio as Xe}from"../../format/lib/content/section-height.js";import{HEADER_HEIGHT_CSS as Ge}from"../lib/document/header-clearance.js";import{nextReel as Ye,normaliseHeroReelShape as je,reelShown as qe}from"../../format/lib/reel.js";import{arrowsShown as Ke,arrowStep as Fe}from"../../format/lib/hero-arrows.js";import{swipeEnabled as Je,swipeStep as Qe}from"../../format/lib/hero-swipe.js";import{videoControlShown as Ue,videoHeld as We}from"../../format/lib/hero-video-control.js";import{HERO_SLIDER_GOTO_EVENT as I}from"efficient-easel/draw";import{say as te}from"../../format/lib/editor-words.js";import{markedChildren as re}from"../../format/lib/marked-children.js";import{legacyTickerDrawn as Ze,TICKER_MOTION_PART as et}from"../../format/lib/hero-ticker.js";import{ON_MEDIA_INK_STYLE as tt}from"../../format/lib/content/ink.js";import{SectionAnimation as rt}from"./SectionAnimation.js";import{entranceDrawn as ot}from"../lib/animation/entrance.js";import{readPartMotion as nt}from"../lib/animation/part-motion.js";import{scrim as oe}from"../../format/lib/content/scrim.js";const st="Play video",ct="Hold video",at="flex h-7 cursor-pointer items-center gap-1.5 rounded-full border border-overlay-chrome/25 bg-overlay-scrim/80 px-[11px] font-mono text-[11px] leading-none tracking-[0.05em] text-overlay-fg",lt=()=>te("item"),ne=new Map;function it(m,a){const l=m?.ownerDocument?.defaultView;if(l)return l.addEventListener(I,a),()=>l.removeEventListener(I,a)}function ut({slides:m,strip:a,alignment:l,textureOpacity:y,showTexture:E,textureColor:g,phoneUpDown:se,phoneSideways:ce,autoplay:V,autoplayInterval:S,showTicker:ae,tickerItems:$,heightDesktop:le,heightTablet:ie,heightMobile:ue,heightFixed:de,heightFixedTablet:me,heightFixedMobile:fe,showPicker:he,pickerShape:pe,pickerPlacement:ve,showArrows:be,arrowsShape:xe,arrowsPlacement:we,editing:s,partMotion:ke}){const z=Be({heightDesktop:le,heightTablet:ie,heightMobile:ue,heightFixed:de,heightFixedTablet:me,heightFixedMobile:fe}),{className:ye,style:Ee}=z,N=Xe(z),B=(a?.blockCount??0)>0,ge=!B&&Ze({showTicker:ae,tickerItems:$}),X=($??[]).map(e=>e?.text?.trim()?e.text:s?lt():"").filter(Boolean),_e=ot(nt({_partMotion:ke},et)),f=d(null),G=d(null),Y=d(null),j=d(null),q=Ce(),A=d(q),[_,Re]=k([]),[Te,K]=k(0),b=d(0),[F,J]=k(!1),[Oe,Q]=k(null),[R,Se]=k(!1),H=ze(),T=v(()=>f.current?.querySelector(".hero-track")??null,[]),i=v((e,t=!1)=>{K(e),Q(o=>o===e?o:null),b.current=e,ne.set(A.current,e);const r=f.current?.querySelector(".hero-track");if(r)if(t){const o=r.style.transition;r.style.transition="none",r.style.transform=`translateX(-${Math.max(0,e)*100}%)`,r.offsetHeight,r.style.transition=o}else r.style.transform=`translateX(-${Math.max(0,e)*100}%)`},[]);w(()=>{const e=f.current,t=e?.getAttribute("data-easel-block")||e?.closest("[data-easel-block]")?.getAttribute("data-easel-block")||q;A.current=t;const r=ne.get(t);typeof r=="number"&&(K(r),b.current=r)},[]),w(()=>{const e=T();if(!e)return;const t=()=>{Re(o=>Ye(o,re(e,"data-slide-name")))};t();const r=new MutationObserver(t);return r.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-slide-name","data-slide-process","data-slide-media"]}),()=>{r.disconnect()}},[T]),w(()=>{if(!s)return;const e=t=>{const r=t.detail;if(!r||typeof r.index!="number")return;const o=f.current,p=o?.getAttribute("data-easel-block")||o?.closest("[data-easel-block]")?.getAttribute("data-easel-block")||A.current;r.id&&r.id!==p||i(r.index,!0)};return it(f.current,e)},[s,i]);const c=_.length,u=Math.min(Math.max(Te,0),Math.max(0,c-1)),M=Oe===u,L=qe({shown:he,count:c}),U=Ke({shown:be,count:c}),W=Ue({editing:s,shown:u,slides:_}),Ne=We({editing:s,playing:R,controlShown:W}),O=Je({count:c,editing:s}),h=d(null),x=d(null),Ae=v(e=>{if(h.current=null,x.current=null,!O||e.touches.length!==1)return;const t=e.touches[0];h.current={x:t.clientX,y:t.clientY},x.current={x:t.clientX,y:t.clientY}},[O]),He=v(e=>{if(!h.current)return;if(e.touches.length!==1){h.current=null;return}const t=e.touches[0];x.current={x:t.clientX,y:t.clientY}},[]),Me=v(()=>{const e=h.current,t=x.current;if(h.current=null,x.current=null,!O||!e||!t)return;const r=Qe(t.x-e.x,t.y-e.y,b.current,c);r!==b.current&&i(r)},[O,c,i]);w(()=>{if(s||!V||F||M||H||c<=1)return;const t=Math.max(1,typeof S=="number"?S:6)*1e3,r=window.setTimeout(()=>i((u+1)%c),t);return()=>window.clearTimeout(r)},[s,V,S,F,M,H,c,u,i]),w(()=>{const e=[G.current,Y.current,j.current].filter(Boolean),t=e.map(o=>ee(o)),r=o=>{const p=o.target,C=p.closest("[data-hero-nav]"),Z=C??p.closest("[data-idx]");if(!Z)return;o.stopPropagation(),o.preventDefault();const P=C?Fe(C.dataset.heroNav,b.current,c):Number(Z.dataset.idx);Number.isNaN(P)||(i(P,s),re(T(),"data-slide-name")[P]?.click())};return e.forEach(o=>o.addEventListener("click",r,{capture:!0})),()=>{t.forEach(o=>o?.()),e.forEach(o=>o.removeEventListener("click",r,{capture:!0}))}},[c,i,T,s]);const Le=v(e=>{if(!e)return;const t=ee(e),r=o=>{o.stopPropagation(),o.preventDefault(),Se(p=>!p)};return e.addEventListener("click",r,{capture:!0}),()=>{t?.(),e.removeEventListener("click",r,{capture:!0})}},[]);return n(De.Provider,{value:{alignment:l,textureOpacity:y,textureOn:E,textureColor:g,quietVideo:Ne,phoneUpDown:se,phoneSideways:ce,holdReel:()=>Q(u),reelHeld:M,ratioMin:N},children:D("div",{ref:f,className:`relative mx-[var(--sf-hero-bleed-m,calc(50%_-_50vw))] w-[var(--sf-hero-bleed-w,100vw)] ${ye} max-w-[var(--sf-hero-cap,none)] ${N?"overflow-clip":"overflow-hidden"}`,style:Ee,onMouseEnter:()=>J(!0),onMouseLeave:()=>J(!1),onTouchStart:Ae,onTouchMove:He,onTouchEnd:Me,children:[n(m,{className:N?"hero-track flex min-h-full [&>*]:min-h-full [&>*]:min-w-full [&>*]:shrink-0 [&>*]:basis-full":"hero-track flex h-full [&>*]:h-full [&>*]:min-w-full [&>*]:shrink-0 [&>*]:basis-full",style:{transform:`translateX(-${u*100}%)`,transition:H?"none":"transform 600ms cubic-bezier(.22,.61,.36,1)"},minEmptyHeight:400}),W&&n("div",{ref:Le,"data-hero-video-control":R?"playing":"held",className:"sf-hero-video-control absolute left-6 z-[7]",style:{top:`calc(${Ge} + 16px)`},children:D("button",{type:"button",className:at,children:[n("span",{"aria-hidden":"true",children:R?"❚❚":"▶"}),te(R?ct:st)]})}),(L||U)&&D("div",{className:"pointer-events-none absolute inset-y-0 left-[var(--sf-hero-chrome-x,var(--sf-site-gutter,40px))] right-[var(--sf-hero-chrome-x,var(--sf-site-gutter,40px))] z-[6] mx-auto max-w-[var(--sf-hero-chrome-cap,calc(var(--sf-site-width,1600px)_-_var(--sf-site-gutter,40px)*2))]",children:[L&&n(Ve,{ref:G,slides:_,active:u,shape:je(pe),placement:ve}),U&&n(Ie,{ref:j,shape:xe,placement:we})]}),L&&n("div",{ref:Y,className:"sf-hero-phone-dots absolute bottom-[80px] left-1/2 z-[6] hidden -translate-x-1/2 items-center gap-2",children:_.map((e,t)=>n("button",{type:"button","data-idx":t,"aria-label":`Go to slide ${t+1}`,className:`h-2 rounded-full transition-all motion-reduce:transition-none ${t===u?"w-5 bg-accent":"w-2 bg-white/45 hover:bg-white/70"}`},t))}),B&&a&&n("div",{className:"sf-hero-strip absolute inset-x-0 bottom-0 z-[5] border-t border-overlay-chrome/10",style:{background:oe(.55),...tt},children:n(a,{})}),ge&&X.length>0&&n(dt,{editing:!!s,entrance:_e,children:n(Pe,{items:X,backdrop:"dark-media"})})]})})}function dt({editing:m,entrance:a,children:l}){const y="sf-hero-ticker absolute inset-x-0 bottom-0 z-[5] border-t border-overlay-chrome/10 py-3.5",E=m?{[$e]:""}:void 0,g={background:oe(.55)};return a?n(rt,{desktop:a.desktop,phone:a.phone,editing:m,boxClass:y,boxAttrs:E,boxStyle:g,children:l}):n("div",{className:y,...E,style:g,children:l})}export{I as HERO_SLIDER_GOTO_EVENT,ct as HERO_VIDEO_HOLD_LABEL,st as HERO_VIDEO_PLAY_LABEL,ut as default,it as subscribeSliderGoto};
@@ -13,6 +13,9 @@ export interface HeroSingleProps {
13
13
  tintOpacity?: number;
14
14
  heightDesktop?: number;
15
15
  heightMobile?: number;
16
+ heightFixed?: string;
17
+ heightFixedTablet?: string;
18
+ heightFixedMobile?: string;
16
19
  boxes?: SlotComponent;
17
20
  mediaLayout?: string;
18
21
  mediaLayoutPhone?: string;
@@ -28,4 +31,4 @@ export interface HeroSingleProps {
28
31
  editing?: boolean;
29
32
  partMotion?: Record<string, unknown>;
30
33
  }
31
- export default function HeroSingle({ overlay, overlayColor, overlayPosition, mediaType, mediaSrc, poster, objectPosition, objectPositionPhone, objectPositionTablet, tintColor, tintOpacity, heightDesktop, heightMobile, boxes: Boxes, videoSource, youtubeUrl, videoPlayback, mediaLayout, mediaLayoutPhone, mediaImage2, objectPosition2, objectPosition2Phone, objectPosition2Tablet, tintColor2, tintOpacity2, editing, partMotion, }: HeroSingleProps): import("react").JSX.Element;
34
+ export default function HeroSingle({ overlay, overlayColor, overlayPosition, mediaType, mediaSrc, poster, objectPosition, objectPositionPhone, objectPositionTablet, tintColor, tintOpacity, heightDesktop, heightMobile, heightFixed, heightFixedTablet, heightFixedMobile, boxes: Boxes, videoSource, youtubeUrl, videoPlayback, mediaLayout, mediaLayoutPhone, mediaImage2, objectPosition2, objectPosition2Phone, objectPosition2Tablet, tintColor2, tintOpacity2, editing, partMotion, }: HeroSingleProps): import("react").JSX.Element;
@@ -1 +1 @@
1
- "use client";import{jsx as e,jsxs as _}from"react/jsx-runtime";import{useRef as J,useState as Q}from"react";import W from"./HeroPoster.js";import{HeroMediaLayer as X,heroMediaReading as Z,HeroPickArea as ee,heroPartEntrance as oe,heroPartHover as re,HeroPictureHover as te,heroPicturesHover as se,HeroTint as ie,HeroTwoPictures as ae}from"./HeroPictures.js";import{HeroVideoBackdrop as ne,HeroVideoPlayer as ce}from"./HeroVideoPlay.js";import{resolveMedia as t}from"../lib/media.js";import{heroHeightBox as le}from"../../format/lib/content/section-height.js";import{DEFAULT_OVERLAY_POSITION as me,overlayGradient as de}from"../../format/lib/sections/hero-overlay.js";import{ON_MEDIA_INK_STYLE as ue}from"../../format/lib/content/ink.js";import{DEFAULT_TINT as c}from"../../format/lib/content/tint.js";import he from"./PhotoHoverSheet.js";function fe({overlay:L=100,overlayColor:j=c,overlayPosition:k=me,mediaType:l="image",mediaSrc:s,poster:m,objectPosition:d,objectPositionPhone:u,objectPositionTablet:h,tintColor:f=c,tintOpacity:p=0,heightDesktop:I,heightMobile:S,boxes:v,videoSource:E,youtubeUrl:A,videoPlayback:V,mediaLayout:O,mediaLayoutPhone:z,mediaImage2:M,objectPosition2:R,objectPosition2Phone:D,objectPosition2Tablet:F,tintColor2:Y=c,tintOpacity2:B=0,editing:o=!1,partMotion:r}){const{className:C,style:U}=le({heightDesktop:I,heightMobile:S}),i=l==="video",g=i?t(s):void 0,y=i?t(m):t(s)??t(m),{fromYouTube:b,onClick:P,youTubeId:H,backgroundFile:x,desktopLayout:G,phoneLayout:K,twoPictures:w}=Z({isVideo:i,videoSource:E,videoPlayback:V,youtubeUrl:A,mediaLayout:O,mediaLayoutPhone:z}),[T,$]=Q(!1),a=!T,q=J(null),n=l==="video"?"media":"image",N=se(r);return _("section",{ref:q,className:`relative mx-[var(--sf-hero-bleed-m,calc(50%_-_50vw))] w-[var(--sf-hero-bleed-w,100vw)] ${C} max-w-[var(--sf-hero-cap,none)] overflow-hidden`,style:U,...N.hostAttrs,children:[e(he,{sheet:N.sheet}),e(X,{partMotion:r,editing:o,children:w?e(ae,{desktopLayout:G,phoneLayout:K,editing:o,partMotion:r,first:{src:s,objectPosition:d,objectPositionPhone:u,objectPositionTablet:h,tintColor:f,tintOpacity:p},second:{src:M,objectPosition:R,objectPositionPhone:D,objectPositionTablet:F,tintColor:Y,tintOpacity:B}}):e(ee,{part:n,editing:o,entrance:n==="image"?oe(r,"image"):null,className:"absolute inset-0 z-[1]",children:_(te,{treatment:n==="image"?re(r,"image"):{},children:[e(W,{videoSrc:x?g:void 0,posterSrc:y,showVideo:x,objectPosition:d,objectPositionPhone:u,objectPositionTablet:h}),b&&e(ne,{youTubeId:H,ownPoster:!!y,background:!P,editing:o})]})})}),P&&e(ce,{youTubeId:H,fileSrc:b?void 0:g,playing:T,onPlay:()=>$(!0),editing:o}),a&&!w&&e(ie,{color:f,opacity:p}),a&&e("div",{className:"pointer-events-none absolute inset-0 z-[2]",style:{background:de(j,k),opacity:Math.min(Math.max(L,0),100)/100}}),a&&v&&e("div",{className:["sf-hero-group-layer absolute inset-0 z-[3] mx-auto","max-w-[var(--sf-site-width,1600px)]","px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14",o?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:ue,children:e(v,{className:"sf-hero-group-zone",minEmptyHeight:160})})]})}export{fe as default};
1
+ "use client";import{jsx as e,jsxs as S}from"react/jsx-runtime";import{useRef as ee,useState as oe}from"react";import re from"./HeroPoster.js";import{HeroMediaLayer as te,heroMediaReading as ie,HeroPickArea as se,heroPartEntrance as ae,heroPartHover as ne,HeroPictureHover as ce,heroPicturesHover as le,HeroTint as me,HeroTwoPictures as ue}from"./HeroPictures.js";import{HeroVideoBackdrop as de,HeroVideoPlayer as he}from"./HeroVideoPlay.js";import{resolveMedia as t}from"../lib/media.js";import{heroHeightBox as fe,heroStoresRatio as pe}from"../../format/lib/content/section-height.js";import{DEFAULT_OVERLAY_POSITION as ve,overlayGradient as ge}from"../../format/lib/sections/hero-overlay.js";import{ON_MEDIA_INK_STYLE as ye}from"../../format/lib/content/ink.js";import{DEFAULT_TINT as c}from"../../format/lib/content/tint.js";import be from"./PhotoHoverSheet.js";function Pe({overlay:j=100,overlayColor:k=c,overlayPosition:I=ve,mediaType:l="image",mediaSrc:i,poster:m,objectPosition:u,objectPositionPhone:d,objectPositionTablet:h,tintColor:f=c,tintOpacity:p=0,heightDesktop:E,heightMobile:A,heightFixed:V,heightFixedTablet:z,heightFixedMobile:M,boxes:v,videoSource:O,youtubeUrl:R,videoPlayback:B,mediaLayout:D,mediaLayoutPhone:F,mediaImage2:Y,objectPosition2:C,objectPosition2Phone:U,objectPosition2Tablet:$,tintColor2:G=c,tintOpacity2:K=0,editing:o=!1,partMotion:r}){const g=fe({heightDesktop:E,heightMobile:A,heightFixed:V,heightFixedTablet:z,heightFixedMobile:M}),{className:q,style:J}=g,y=pe(g),s=l==="video",b=s?t(i):void 0,P=s?t(m):t(i)??t(m),{fromYouTube:x,onClick:H,youTubeId:w,backgroundFile:T,desktopLayout:Q,phoneLayout:W,twoPictures:N}=ie({isVideo:s,videoSource:O,videoPlayback:B,youtubeUrl:R,mediaLayout:D,mediaLayoutPhone:F}),[_,X]=oe(!1),a=!_,Z=ee(null),n=l==="video"?"media":"image",L=le(r);return S("section",{ref:Z,className:`relative mx-[var(--sf-hero-bleed-m,calc(50%_-_50vw))] w-[var(--sf-hero-bleed-w,100vw)] ${q} max-w-[var(--sf-hero-cap,none)] ${y?"overflow-clip":"overflow-hidden"}`,style:J,...L.hostAttrs,children:[e(be,{sheet:L.sheet}),e(te,{partMotion:r,editing:o,children:N?e(ue,{desktopLayout:Q,phoneLayout:W,editing:o,partMotion:r,first:{src:i,objectPosition:u,objectPositionPhone:d,objectPositionTablet:h,tintColor:f,tintOpacity:p},second:{src:Y,objectPosition:C,objectPositionPhone:U,objectPositionTablet:$,tintColor:G,tintOpacity:K}}):e(se,{part:n,editing:o,entrance:n==="image"?ae(r,"image"):null,className:"absolute inset-0 z-[1]",children:S(ce,{treatment:n==="image"?ne(r,"image"):{},children:[e(re,{videoSrc:T?b:void 0,posterSrc:P,showVideo:T,objectPosition:u,objectPositionPhone:d,objectPositionTablet:h}),x&&e(de,{youTubeId:w,ownPoster:!!P,background:!H,editing:o})]})})}),H&&e(he,{youTubeId:w,fileSrc:x?void 0:b,playing:_,onPlay:()=>X(!0),editing:o}),a&&!N&&e(me,{color:f,opacity:p}),a&&e("div",{className:"pointer-events-none absolute inset-0 z-[2]",style:{background:ge(k,I),opacity:Math.min(Math.max(j,0),100)/100}}),a&&v&&e("div",{className:[y?"sf-hero-group-layer relative min-h-full z-[3] mx-auto":"sf-hero-group-layer absolute inset-0 z-[3] mx-auto","max-w-[var(--sf-site-width,1600px)]","px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14",o?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:ye,children:e(v,{className:"sf-hero-group-zone",minEmptyHeight:160})})]})}export{Pe as default};
@@ -11,6 +11,7 @@ export interface HeroSlideStyle {
11
11
  quietVideo?: boolean;
12
12
  holdReel?: () => void;
13
13
  reelHeld?: boolean;
14
+ ratioMin?: boolean;
14
15
  }
15
16
  export declare const HeroSlideStyleContext: import("react").Context<HeroSlideStyle>;
16
17
  export interface HeroSlideProps {
@@ -1 +1 @@
1
- "use client";import{jsx as e,jsxs as N}from"react/jsx-runtime";import{createContext as se,useContext as ae,useState as ne}from"react";import le from"./HeroPoster.js";import{HeroMediaLayer as de,heroMediaReading as ce,HeroPickArea as ue,heroPartEntrance as pe,heroPartHover as fe,HeroPictureHover as me,heroPicturesHover as he,HeroTint as ye,HeroTwoPictures as ve}from"./HeroPictures.js";import{HeroVideoBackdrop as xe,HeroVideoPlayer as ge}from"./HeroVideoPlay.js";import{resolveMedia as s}from"../lib/media.js";import{heroPhoneStackStyle as be}from"../../format/lib/hero-phone-stack.js";import{heroTextureGradient as He,heroTextureShown as Pe}from"../../format/lib/hero-texture.js";import{ON_MEDIA_INK_STYLE as Se}from"../../format/lib/content/ink.js";import{DEFAULT_TINT as C}from"../../format/lib/content/tint.js";import{overlayGradient as we,slideOverlayState as ke}from"../../format/lib/sections/hero-overlay.js";import Te from"./PhotoHoverSheet.js";const Ee=se({});function Le({name:f,process:a,mediaType:O="video",mediaSrc:n,videoSpeed:m,poster:h,objectPosition:y,objectPositionPhone:v,objectPositionTablet:x,tintColor:g=C,tintOpacity:b=0,groups:H,editing:t=!1,themeClassName:P,themeStyle:V,overlayColor:A,overlayPosition:D,mediaLayout:R,mediaLayoutPhone:z,mediaImage2:q,objectPosition2:B,objectPosition2Phone:F,objectPosition2Tablet:M,tintColor2:U=C,tintOpacity2:Y=0,videoSource:$,youtubeUrl:G,videoPlayback:K,partMotion:r}){const{alignment:_e="left",textureOpacity:S,textureOn:J,textureColor:Q,quietVideo:W,phoneUpDown:X,phoneSideways:Z,holdReel:ee,reelHeld:oe}=ae(Ee),o=O==="video",l=o?s(n):void 0,w=o?s(h):s(n)??s(h),te=typeof m=="number"?m/100:1,{fromYouTube:d,onClick:k,youTubeId:T,backgroundFile:c,desktopLayout:re,phoneLayout:ie,twoPictures:E}=ce({isVideo:o,videoSource:$,videoPlayback:K,youtubeUrl:G,mediaLayout:R,mediaLayoutPhone:z}),[u,L]=ne(!1);u&&oe===!1&&L(!1);const p=!u,i=ke({overlayColor:A,overlayPosition:D},Q),_=o?null:pe(r,"image"),j=he(r),I=e(me,{treatment:o?{}:fe(r,"image"),children:e(le,{videoSrc:c?l:void 0,posterSrc:w,showVideo:c,playbackRate:te,objectPosition:y,objectPositionPhone:o?void 0:v,objectPositionTablet:o?void 0:x,quiet:W})});return N("section",{className:P?`relative h-full w-full overflow-hidden ${P}`:"relative h-full w-full overflow-hidden",style:V,"data-slide-name":f??"","data-slide-process":a??"","data-slide-media":c&&l?"video":"still",...j.hostAttrs,children:[e(Te,{sheet:j.sheet}),e(de,{partMotion:r,editing:t,children:E?e(ve,{desktopLayout:re,phoneLayout:ie,editing:t,marked:!1,partMotion:r,first:{src:n,objectPosition:y,objectPositionPhone:v,objectPositionTablet:x,tintColor:g,tintOpacity:b},second:{src:q,objectPosition:B,objectPositionPhone:F,objectPositionTablet:M,tintColor:U,tintOpacity:Y}}):d||_?N(ue,{part:o?"media":"image",editing:t,marked:!1,entrance:_,className:"absolute inset-0 z-[1]",children:[I,d&&e(xe,{youTubeId:T,ownPoster:!!w,background:!k,editing:t})]}):I}),k&&e(ge,{youTubeId:T,fileSrc:d?void 0:l,playing:u,onPlay:()=>{L(!0),ee?.()},editing:t}),p&&!E&&e(ye,{color:g,opacity:b,passClicks:!1}),p&&Pe(J)&&e("div",{className:"absolute inset-0 z-[2]",style:{background:i.own?we(i.color,i.position??void 0):He(i.color),...S!==void 0?{opacity:S/100}:null}}),p&&e("div",{className:["sf-hero-group-layer absolute inset-0 z-[3] mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14",t?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{...Se,...be(X,Z)},children:H&&e(H,{className:"sf-hero-group-zone",minEmptyHeight:160})})]})}const Fe=Array.from({length:3},(f,a)=>({name:`Slide ${a+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));export{Fe as HERO_SLIDE_SEEDS,Ee as HeroSlideStyleContext,Le as default};
1
+ "use client";import{jsx as e,jsxs as C}from"react/jsx-runtime";import{createContext as se,useContext as ne,useState as le}from"react";import de from"./HeroPoster.js";import{HeroMediaLayer as ce,heroMediaReading as ue,HeroPickArea as pe,heroPartEntrance as fe,heroPartHover as me,HeroPictureHover as he,heroPicturesHover as ye,HeroTint as xe,HeroTwoPictures as ve}from"./HeroPictures.js";import{HeroVideoBackdrop as ge,HeroVideoPlayer as be}from"./HeroVideoPlay.js";import{resolveMedia as a}from"../lib/media.js";import{heroPhoneStackStyle as He}from"../../format/lib/hero-phone-stack.js";import{heroTextureGradient as Pe,heroTextureShown as we}from"../../format/lib/hero-texture.js";import{ON_MEDIA_INK_STYLE as Se}from"../../format/lib/content/ink.js";import{DEFAULT_TINT as O}from"../../format/lib/content/tint.js";import{overlayGradient as ke,slideOverlayState as Te}from"../../format/lib/sections/hero-overlay.js";import Ee from"./PhotoHoverSheet.js";const Le=se({});function _e({name:f,process:s,mediaType:V="video",mediaSrc:n,videoSpeed:m,poster:h,objectPosition:y,objectPositionPhone:x,objectPositionTablet:v,tintColor:g=O,tintOpacity:b=0,groups:H,editing:t=!1,themeClassName:P,themeStyle:z,overlayColor:A,overlayPosition:D,mediaLayout:R,mediaLayoutPhone:$,mediaImage2:M,objectPosition2:q,objectPosition2Phone:B,objectPosition2Tablet:F,tintColor2:U=O,tintOpacity2:Y=0,videoSource:G,youtubeUrl:K,videoPlayback:J,partMotion:r}){const{alignment:je="left",textureOpacity:w,textureOn:Q,textureColor:W,quietVideo:X,phoneUpDown:Z,phoneSideways:ee,holdReel:oe,reelHeld:te,ratioMin:S}=ne(Le),o=V==="video",l=o?a(n):void 0,k=o?a(h):a(n)??a(h),re=typeof m=="number"?m/100:1,{fromYouTube:d,onClick:T,youTubeId:E,backgroundFile:c,desktopLayout:ie,phoneLayout:ae,twoPictures:L}=ue({isVideo:o,videoSource:G,videoPlayback:J,youtubeUrl:K,mediaLayout:R,mediaLayoutPhone:$}),[u,_]=le(!1);u&&te===!1&&_(!1);const p=!u,i=Te({overlayColor:A,overlayPosition:D},W),j=o?null:fe(r,"image"),I=ye(r),N=e(he,{treatment:o?{}:me(r,"image"),children:e(de,{videoSrc:c?l:void 0,posterSrc:k,showVideo:c,playbackRate:re,objectPosition:y,objectPositionPhone:o?void 0:x,objectPositionTablet:o?void 0:v,quiet:X})});return C("section",{className:`${S?"relative min-h-full w-full overflow-clip":"relative h-full w-full overflow-hidden"}${P?` ${P}`:""}`,style:z,"data-slide-name":f??"","data-slide-process":s??"","data-slide-media":c&&l?"video":"still",...I.hostAttrs,children:[e(Ee,{sheet:I.sheet}),e(ce,{partMotion:r,editing:t,children:L?e(ve,{desktopLayout:ie,phoneLayout:ae,editing:t,marked:!1,partMotion:r,first:{src:n,objectPosition:y,objectPositionPhone:x,objectPositionTablet:v,tintColor:g,tintOpacity:b},second:{src:M,objectPosition:q,objectPositionPhone:B,objectPositionTablet:F,tintColor:U,tintOpacity:Y}}):d||j?C(pe,{part:o?"media":"image",editing:t,marked:!1,entrance:j,className:"absolute inset-0 z-[1]",children:[N,d&&e(ge,{youTubeId:E,ownPoster:!!k,background:!T,editing:t})]}):N}),T&&e(be,{youTubeId:E,fileSrc:d?void 0:l,playing:u,onPlay:()=>{_(!0),oe?.()},editing:t}),p&&!L&&e(xe,{color:g,opacity:b,passClicks:!1}),p&&we(Q)&&e("div",{className:"absolute inset-0 z-[2]",style:{background:i.own?ke(i.color,i.position??void 0):Pe(i.color),...w!==void 0?{opacity:w/100}:null}}),p&&e("div",{className:[S?"sf-hero-group-layer relative min-h-full z-[3] mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14":"sf-hero-group-layer absolute inset-0 z-[3] mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14",t?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{...Se,...He(Z,ee)},children:H&&e(H,{className:"sf-hero-group-zone",minEmptyHeight:160})})]})}const Be=Array.from({length:3},(f,s)=>({name:`Slide ${s+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));export{Be as HERO_SLIDE_SEEDS,Le as HeroSlideStyleContext,_e as default};
@@ -1 +1 @@
1
- import{jsx as e,Fragment as F,jsxs as O}from"react/jsx-runtime";import{SiteLink as ne}from"../lib/site-runtime.js";import me from"./BlockFrame.js";import{useBoxCell as ce,useFillsCell as fe}from"./InBoxContext.js";import{useInsideSiteGutter as de,useSectionEdge as ue}from"./SiteGutterFrame.js";import{useSitePhotography as he}from"./SitePhotographyContext.js";import{media as T}from"../lib/media.js";import{CONTENT_SIZES as j,sizedImage as z}from"../../format/lib/sized-image.js";import{imageCornerStyle as pe}from"../../format/lib/content/image-corners.js";import{FILL_ROW as ge,imageAspectClasses as Se,imageFillFrom as Ne,imageAspectDrawn as ye,imageAspectDrawsARatio as Ce,imageFocalPointActs as Fe,imageFocalPointActsIn as P,imageAspectPhoneOf as be,imageFillRowClasses as we}from"../../format/lib/content/image-aspect.js";import{drawsSiteGutter as Ae}from"../../format/lib/content/site-gutter.js";import{imageFitClass as U,parseImageFit as _e}from"../../format/lib/content/image-fit.js";import{SECTION_FILL_CLASS as $e}from"../../format/lib/content/section-min-height.js";import{NEXT_PICTURE_CLASS as Ie,PICTURE_FRAME_CLASS as xe,PICTURE_WASH_CLASS as ke,PICTURE_ZOOM_CLASS as ve,PICTURE_ZOOM_VAR as Re,resolveImageTreatment as Ee,resolveNextPicture as Le}from"../../format/lib/content/image-treatment.js";import{boxDarkenStyle as W}from"../../format/lib/content/box-background.js";import{phoneFocus as Oe}from"../../format/lib/content/phone-focus.js";import{say as Te}from"../../format/lib/editor-words.js";import{sectionEdgeAttrs as je}from"../lib/content/section-edge.js";import B from"./PhotoHoverSheet.js";import ze from"./PictureWash.js";function Pe({src:o,alt:G,aspect:D,aspectPhone:l,contained:b,grayscale:M,pictureHover:r,nextSrc:w,darken:Z,darkenStyle:A,href:V,fit:X,focal:_,focalPhone:q,focalTablet:J,corners:K,cornerSides:Q,pad:$,ownSize:Y=!1,editing:I=!1}){const c=Ee(M,he(),r),S=ce(),H=fe(),t=ye(D,S?.picturesFillRow===!0),f=t===ge,x=Ne(S?.fillFrom,S?.phoneRowFills===!0,l),d=f?we(x):null,ee=be(t,l),a=_e(X,"cover"),k=pe(K,Q),se=Fe(a,t,l),i=Oe(P("mobile",a,t,l)?q:void 0,P("tablet",a,t,l)?J:void 0),u={...c.style??{},..._&&se?{objectPosition:_}:{},...i.style},h=o?z(T(o)):null,s=Le(r),n=s&&w?z(T(w)):null,p=s?r?.zoom??null:null,te=W(Z,A),v=s&&r?.darken?W(r.darken,A):null,N=!!(s&&(n||p||v)),R=N?{...s?.style??{},...p?{[Re]:p}:{}}:{},le=s&&n?e(F,{children:e("img",{src:n.src,...n.srcSet?{srcSet:n.srcSet,sizes:j}:{},alt:"","aria-hidden":"true",loading:"lazy",decoding:"async",className:`absolute inset-0 h-full w-full bg-surface ${U(a)}${i.className?` ${i.className}`:""} ${s.className}`,...Object.keys(u).length?{style:u}:{}})}):null,y=o&&h?O(F,{children:[e("img",{src:h.src,...h.srcSet?{srcSet:h.srcSet,sizes:j}:{},alt:G,className:`${d?`${d.img} `:""}h-full w-full ${Ce(t,l)?U(a):""}${c.className?` ${c.className}`:""}${i.className?` ${i.className}`:""}`,...Object.keys(u).length?{style:u}:{}}),le]}):null,C=y?O(F,{children:[e(B,{sheet:c.sheet}),N&&s?e(B,{sheet:s.sheet,name:Ie}):null,p?e("div",{className:`${f?"absolute inset-0":"relative h-full w-full"} ${ve}`,children:y}):y,e(ze,{wash:te,hover:v,className:`pointer-events-none ${ke}`})]}):e("div",{className:"flex aspect-[16/9] items-center justify-center border border-dashed border-line font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.2em] text-fg-dim",children:Te("Image — set a path")}),g=(V??"").trim(),oe=g&&o?g.startsWith("/")?e(ne,{href:g,className:"block h-full w-full",children:C}):e("a",{href:g,className:"block h-full w-full",children:C}):C,E=ue(),re=de(),m=E&&!Y?je(E):null,L=$?{values:$,frame:f?0:24}:void 0,ae=L!==void 0&&Ae(m?!1:b,re),ie=f?H||I||ae?$e:"":"py-6";return!o&&!I?null:e(me,{contained:m?!1:b,className:ie,pad:L,...m?{fillWidth:m.className,style:m.style}:{},children:e("figure",{...d?{className:d.figure}:{},children:e("div",{className:`relative w-full overflow-hidden bg-surface ${Se(t,ee,x)}${N?` ${xe}`:""}`,...k||Object.keys(R).length?{style:{...k,...R}}:{},children:oe})})})}export{Pe as default};
1
+ import{jsx as e,Fragment as F,jsxs as O}from"react/jsx-runtime";import{SiteLink as me}from"../lib/site-runtime.js";import ce from"./BlockFrame.js";import{useBoxCell as fe,useFillsCell as de}from"./InBoxContext.js";import{useInsideSiteGutter as ue,useSectionEdge as he}from"./SiteGutterFrame.js";import{useSitePhotography as pe}from"./SitePhotographyContext.js";import{media as T}from"../lib/media.js";import{CONTENT_SIZES as j,sizedImage as z}from"../../format/lib/sized-image.js";import{imageCornerStyle as ge}from"../../format/lib/content/image-corners.js";import{FILL_ROW as Se,imageAspectClasses as Ne,imageFillFrom as ye,imageAspectDrawn as Ce,imageAspectDrawsARatio as Fe,imageFocalPointActs as be,imageFocalPointActsIn as P,imageAspectPhoneOf as we,imageFillRowClasses as $e}from"../../format/lib/content/image-aspect.js";import{drawsSiteGutter as Ae}from"../../format/lib/content/site-gutter.js";import{imageFitClass as U,parseImageFit as _e}from"../../format/lib/content/image-fit.js";import{SECTION_FILL_CLASS as Ie}from"../../format/lib/content/section-min-height.js";import{NEXT_PICTURE_CLASS as xe,PICTURE_FRAME_CLASS as ke,PICTURE_WASH_CLASS as ve,PICTURE_ZOOM_CLASS as Re,PICTURE_ZOOM_VAR as Ee,resolveImageTreatment as Le,resolveNextPicture as Oe}from"../../format/lib/content/image-treatment.js";import{boxDarkenStyle as W}from"../../format/lib/content/box-background.js";import{phoneFocus as Te}from"../../format/lib/content/phone-focus.js";import{say as je}from"../../format/lib/editor-words.js";import{sectionEdgeAttrs as ze}from"../lib/content/section-edge.js";import B from"./PhotoHoverSheet.js";import Pe from"./PictureWash.js";function Ue({src:l,alt:G,aspect:D,aspectPhone:o,contained:b,grayscale:M,pictureHover:a,nextSrc:w,darken:Z,darkenStyle:$,href:V,fit:X,focal:A,focalPhone:q,focalTablet:J,corners:K,cornerSides:Q,pad:_,ownSize:Y=!1,editing:I=!1}){const c=Le(M,pe(),a),S=fe(),H=de(),t=Ce(D,S?.picturesFillRow===!0),f=t===Se,x=ye(S?.fillFrom,S?.phoneRowFills===!0,o),d=f?$e(x):null,ee=we(t,o),r=_e(X,"cover"),k=ge(K,Q),se=be(r,t,o),n=Te(P("mobile",r,t,o)?q:void 0,P("tablet",r,t,o)?J:void 0),u={...c.style??{},...A&&se?{objectPosition:A}:{},...n.style},h=l?z(T(l)):null,s=Oe(a),i=s&&w?z(T(w)):null,p=s?a?.zoom??null:null,te=W(Z,$),v=s&&a?.darken?W(a.darken,$):null,N=!!(s&&(i||p||v)),R=N?{...s?.style??{},...p?{[Ee]:p}:{}}:{},le=s&&i?e(F,{children:e("img",{src:i.src,...i.srcSet?{srcSet:i.srcSet,sizes:j}:{},alt:"","aria-hidden":"true",loading:"lazy",decoding:"async",className:`absolute inset-0 h-full w-full bg-surface ${U(r)}${n.className?` ${n.className}`:""} ${s.className}`,...Object.keys(u).length?{style:u}:{}})}):null,y=l&&h?O(F,{children:[e("img",{src:h.src,...h.srcSet?{srcSet:h.srcSet,sizes:j}:{},alt:G,className:`${d?`${d.img} `:""}h-full w-full ${Fe(t,o)?U(r):""}${c.className?` ${c.className}`:""}${n.className?` ${n.className}`:""}`,...Object.keys(u).length?{style:u}:{}}),le]}):null,C=y?O(F,{children:[e(B,{sheet:c.sheet}),N&&s?e(B,{sheet:s.sheet,name:xe}):null,p?e("div",{className:`${f?"absolute inset-0":"relative h-full w-full"} ${Re}`,children:y}):y,e(Pe,{wash:te,hover:v,className:`pointer-events-none ${ve}`})]}):e("div",{className:"flex aspect-[16/9] items-center justify-center border border-dashed border-line font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.2em] text-fg-dim",children:je("Image — set a path")}),g=(V??"").trim(),oe=g&&l?g.startsWith("/")?e(me,{href:g,className:"block h-full w-full",children:C}):e("a",{href:g,className:"block h-full w-full",children:C}):C,E=he(),re=ue(),m=E&&!Y?ze(E):null,L=_?{values:_,frame:f?0:24}:void 0,ae=L!==void 0&&Ae(m?!1:b,re),ne=f?H||I||ae?Ie:"":"py-6",ie=l&&r==="contain"?"":"bg-surface ";return!l&&!I?null:e(ce,{contained:m?!1:b,className:ne,pad:L,...m?{fillWidth:m.className,style:m.style}:{},children:e("figure",{...d?{className:d.figure}:{},children:e("div",{className:`relative w-full overflow-hidden ${ie}${Ne(t,ee,x)}${N?` ${ke}`:""}`,...k||Object.keys(R).length?{style:{...k,...R}}:{},children:oe})})})}export{Ue as default};
@@ -1 +1 @@
1
- import{jsx as e,jsxs as t,Fragment as Q}from"react/jsx-runtime";import U from"./Btn.js";import u from"./Placeholder.js";import W from"./SectionEyebrow.js";import{renderGold as N,renderHeadline as X,splitParagraphs as Z}from"./goldPhrases.js";import{resolveTypeSize as o}from"../../format/lib/content/section-type-size.js";import{HEADER_HEIGHT_CSS as _}from"../lib/document/header-clearance.js";import{resolveSectionHeight as j}from"../../format/lib/content/section-height.js";import{INTRO_BLEED_COPY_SHARE as k,parseIntroBleedLayout as ee,resolveCopyShare as w}from"../../format/lib/sections/intro-bleed-layout.js";import{ON_MEDIA_INK_STYLE as te}from"../../format/lib/content/ink.js";import{SCROLL_OVER_CLASS as E}from"../../format/lib/content/section-sticky.js";function re({eyebrow:a,title:l,body:s,cta:i,imageLabel:d,imageSrc:c,imageSrcMobile:S,layout:I,copyShareDesktop:L,copyShareMobile:z,sticky:m=!0,heightDesktop:C,heightMobile:D,overlay:p,titleSizeDesktop:H,titleSizeMobile:B,bodySizeDesktop:O,bodySizeMobile:R,buttonColor:T,buttonTextColor:$,uppercase:A=!1,capStyle:h}){const r=ee(I)==="stacked",x=n=>r?`calc(${j(n)} - ${_})`:j(n),M=x(C),F=x(D),P=o(H,"clamp(48px,7vw,96px)","heading","headingLarge"),G=o(B,"clamp(36px,7vw,96px)","heading","headingLarge"),Y=o(O,"17px","body","body"),K=o(R,"16px","body","body"),V=p!=null?p/100:r?0:.6,v=T||"var(--btn)",q=$||"var(--btn-ink)",f={"--intro-h-d":M,"--intro-h-m":F,"--intro-title-d":P,"--intro-title-m":G,"--intro-body-d":Y,"--intro-body-m":K,...r?{"--intro-copy-d":w(L,k.desktop),"--intro-copy-m":w(z,k.mobile),marginTop:_}:{}},g=h?"px-[var(--sf-site-gutter,40px)] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]":"px-[60px] max-[960px]:px-6",b=t(Q,{children:[t("div",{className:"absolute inset-0",children:[e("div",{className:"absolute inset-0 hidden min-[960px]:block",children:e(u,{label:d,src:c})}),e("div",{className:"absolute inset-0 min-[960px]:hidden",children:e(u,{label:d,src:S||c})}),e("div",{className:"pointer-events-none absolute inset-0",style:{backgroundImage:"repeating-linear-gradient(45deg, transparent 0 80px, rgba(201,164,97,.04) 80px 81px)"}})]}),e("div",{className:"absolute inset-0",style:{background:`rgba(0,0,0,${V})`}})]}),y=t("div",{style:h,className:"flex flex-col gap-6",children:[a&&e(W,{text:a,size:14}),l&&e("h2",{className:["font-display font-medium leading-[0.95] tracking-[-0.03em]","text-[length:var(--intro-title-m)] min-[960px]:text-[length:var(--intro-title-d)]",A?"uppercase":""].join(" "),children:X(l,!1)}),s&&Z(s).map((n,J)=>e("p",{className:"max-w-[560px] leading-[1.6] opacity-85 text-[length:var(--intro-body-m)] min-[960px]:text-[length:var(--intro-body-d)]",children:N(n)},J)),i.text&&e("div",{className:"mt-2 self-start",children:e(U,{href:i.href,variant:"ghost",style:{background:v,color:q,borderColor:v},children:N(i.text)})})]});return r?t("section",{style:f,className:[m?`sticky top-0 ${E}`:"relative","flex flex-col","h-[var(--intro-h-m)] min-[960px]:h-[var(--intro-h-d)] min-h-[420px]","overflow-hidden p-0 z-[1]"].join(" "),children:[e("div",{className:["relative z-[2] flex shrink-0 flex-col justify-center bg-bg py-10","min-h-[var(--intro-copy-m)] min-[960px]:min-h-[var(--intro-copy-d)]",g].join(" "),style:{color:"var(--fg)"},children:y}),e("div",{className:"relative min-h-0 flex-1 overflow-hidden",children:b})]}):t("section",{style:f,className:[m?`sticky top-0 ${E}`:"relative","h-[var(--intro-h-m)] min-[960px]:h-[var(--intro-h-d)] min-h-[420px]","overflow-hidden p-0 z-[1]","mx-auto w-full max-w-[var(--sf-bg-cap,none)]"].join(" "),children:[b,e("div",{className:["relative z-[2] flex h-full flex-col justify-center",g].join(" "),style:te,children:y})]})}export{re as default};
1
+ import{jsx as e,jsxs as t,Fragment as Q}from"react/jsx-runtime";import U from"./Btn.js";import u from"./Placeholder.js";import W from"./SectionEyebrow.js";import{renderGold as N,renderHeadline as X,splitParagraphs as Z}from"./goldPhrases.js";import{resolveTypeSize as o}from"../../format/lib/content/section-type-size.js";import{HEADER_HEIGHT_CSS as _}from"../lib/document/header-clearance.js";import{resolveSectionHeight as E}from"../../format/lib/content/section-height.js";import{INTRO_BLEED_COPY_SHARE as j,parseIntroBleedLayout as ee,resolveCopyShare as k,INTRO_EDGE_CLASS as te}from"../../format/lib/sections/intro-bleed-layout.js";import{ON_MEDIA_INK_STYLE as re}from"../../format/lib/content/ink.js";import{SCROLL_OVER_CLASS as S}from"../../format/lib/content/section-sticky.js";function ne({eyebrow:a,title:l,body:s,cta:i,imageLabel:d,imageSrc:c,imageSrcMobile:w,layout:I,copyShareDesktop:L,copyShareMobile:C,sticky:m=!0,heightDesktop:D,heightMobile:z,overlay:p,titleSizeDesktop:H,titleSizeMobile:O,bodySizeDesktop:R,bodySizeMobile:T,buttonColor:$,buttonTextColor:A,uppercase:B=!1,capStyle:h}){const r=ee(I)==="stacked",x=n=>r?`calc(${E(n)} - ${_})`:E(n),M=x(D),F=x(z),G=o(H,"clamp(48px,7vw,96px)","heading","headingLarge"),P=o(O,"clamp(36px,7vw,96px)","heading","headingLarge"),Y=o(R,"17px","body","body"),K=o(T,"16px","body","body"),V=p!=null?p/100:r?0:.6,v=$||"var(--btn)",q=A||"var(--btn-ink)",f={"--intro-h-d":M,"--intro-h-m":F,"--intro-title-d":G,"--intro-title-m":P,"--intro-body-d":Y,"--intro-body-m":K,...r?{"--intro-copy-d":k(L,j.desktop),"--intro-copy-m":k(C,j.mobile),marginTop:_}:{}},g=h?"px-[var(--sf-site-gutter,40px)] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]":`${te} px-[var(--intro-edge)]`,b=t(Q,{children:[t("div",{className:"absolute inset-0",children:[e("div",{className:"absolute inset-0 hidden min-[960px]:block",children:e(u,{label:d,src:c})}),e("div",{className:"absolute inset-0 min-[960px]:hidden",children:e(u,{label:d,src:w||c})}),e("div",{className:"pointer-events-none absolute inset-0",style:{backgroundImage:"repeating-linear-gradient(45deg, transparent 0 80px, rgba(201,164,97,.04) 80px 81px)"}})]}),e("div",{className:"absolute inset-0",style:{background:`rgba(0,0,0,${V})`}})]}),y=t("div",{style:h,className:"flex flex-col gap-6",children:[a&&e(W,{text:a,size:14}),l&&e("h2",{className:["font-display font-medium leading-[0.95] tracking-[-0.03em]","text-[length:var(--intro-title-m)] min-[960px]:text-[length:var(--intro-title-d)]",B?"uppercase":""].join(" "),children:X(l,!1)}),s&&Z(s).map((n,J)=>e("p",{className:"max-w-[560px] leading-[1.6] opacity-85 text-[length:var(--intro-body-m)] min-[960px]:text-[length:var(--intro-body-d)]",children:N(n)},J)),i.text&&e("div",{className:"mt-2 self-start",children:e(U,{href:i.href,variant:"ghost",style:{background:v,color:q,borderColor:v},children:N(i.text)})})]});return r?t("section",{style:f,className:[m?`sticky top-0 ${S}`:"relative","flex flex-col","h-[var(--intro-h-m)] min-[960px]:h-[var(--intro-h-d)] min-h-[420px]","overflow-hidden p-0 z-[1]"].join(" "),children:[e("div",{className:["relative z-[2] flex shrink-0 flex-col justify-center bg-bg py-10","min-h-[var(--intro-copy-m)] min-[960px]:min-h-[var(--intro-copy-d)]",g].join(" "),style:{color:"var(--fg)"},children:y}),e("div",{className:"relative min-h-0 flex-1 overflow-hidden",children:b})]}):t("section",{style:f,className:[m?`sticky top-0 ${S}`:"relative","h-[var(--intro-h-m)] min-[960px]:h-[var(--intro-h-d)] min-h-[420px]","overflow-hidden p-0 z-[1]","mx-auto w-full max-w-[var(--sf-bg-cap,none)]"].join(" "),children:[b,e("div",{className:["relative z-[2] flex h-full flex-col justify-center",g].join(" "),style:re,children:y})]})}export{ne as default};
@@ -6,6 +6,7 @@ export interface LogoBlockProps {
6
6
  heightPx?: number;
7
7
  reverse?: boolean;
8
8
  align?: BlockAlign;
9
+ alignTablet?: unknown;
9
10
  alignPhone?: unknown;
10
11
  color?: string | null;
11
12
  }
@@ -1 +1 @@
1
- "use client";import{jsx as r}from"react/jsx-runtime";import{useContext as g}from"react";import{SiteLink as h}from"../lib/site-runtime.js";import C,{FOOTER_LOGO_PX as I,WORDMARK_FIT_FLOOR_PX as O}from"./Logo.js";import{media as _}from"../lib/media.js";import{BoxSurfaceContext as N}from"./BoxSurfaceContext.js";import{useBoxCellHasWidth as B}from"./BoxCellWidthContext.js";import{useInSiteHeader as D}from"./PhoneMenuTools.js";import{useSiteLogo as H}from"./SiteLogoContext.js";import{useLogoWall as W}from"./LogoWallContext.js";import{LogoWallMark as j}from"./Logos.js";import{alignPhoneClass as u,BLOCK_ALIGN_JUSTIFY as y}from"../../format/lib/content/block-align.js";function F(t){const e=W();if(!e)return r(T,{...t});const n=(t.src??"").trim();return r("div",{className:"text-center",children:r(j,{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:x=I,reverse:p=!0,align:i,alignPhone:c,color:L=null}){const s=H(),m=(t??"").trim(),l=m?{src:_(m),reversedSrc:null,inkIsDark:null,wordmark:e?.trim()||null}:{src:s.src,reversedSrc:s.reversedSrc,inkIsDark:s.inkIsDark,wordmark:s.wordmark},w=g(N),f=D(),S=B(),o=!f&&S,a=r(C,{variant:"footer",sizePx:x,src:l.src,reverse:p,color:L,reversedSrc:l.reversedSrc,inkIsDark:l.inkIsDark,wordmark:l.wordmark,siteName:s.siteName,fitToContainer:f,fitWordmarkToContainer:o,fitFloorPx:o?O:void 0,...w?.dark?{onLightSurface:!1}:{}}),d=o?"inline-flex max-w-full overflow-x-clip":"inline-flex",k=n?r(h,{href:n,className:d,children:a}):o?r("span",{className:d,children:a}):a;if(!i&&!o&&!u("justify",i,c))return k;const v=["flex min-w-0",i?y[i]:"",u("justify",i,c),o?"[container-type:inline-size]":""].filter(Boolean).join(" ");return r("div",{className:v,children:k})}export{F 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{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 +1 @@
1
- import{jsx as a,jsxs as y}from"react/jsx-runtime";import{PaymentMark as A,paymentMarkItems as j}from"efficient-shell/icons/payment";import v from"./BlockFrame.js";import{renderChrome as z,renderGold as C,renderHeadline as E}from"./goldPhrases.js";import{LogoWallProvider as G}from"./LogoWallContext.js";import{media as h}from"../lib/media.js";import{sizedImage as g}from"../../format/lib/sized-image.js";import{stripMarkup as S}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)]"},o="sf-logo-wall",_="sf-logo-items",L="flex flex-wrap items-center justify-center",m="plain",p={plain:{x:3.5,y:2},cards:{x:.75,y:.75}},N=t=>({columnGap:`${p[t].x}rem`,rowGap:`${p[t].y}rem`}),O=(t,e)=>`calc((100% - ${(t-1)*p[e].x}rem) / ${t})`;function M({items:t,contained:e,heading:n,columns:r,grayscale:s,logoHeight:l,bandPadding:i,logos:f,look:c=R,omitHead:d=!1}){const b=r!=null?{flex:`0 0 ${O(r,m)}`}:void 0,x=!d;return y(v,{contained:e,className:x&&i==null?"py-10":"",style:!x||i==null?void 0:{paddingTop:`${i}px`,paddingBottom:`${i}px`},children:[!d&&n!=null&&n!==""?a("h2",{className:`mb-8 text-center font-mono ${$.label} uppercase tracking-[0.2em] text-fg-dim`,children:E(n,!1)}):null,f?y(G,{value:{look:c,logoHeight:l,grayscale:s},children:[a("style",{children:`.${o}:empty{display:none}.${o}:not(:empty)~.${_}{display:none}`+(r!=null?`.${o}-c${r}>*{flex:0 0 ${O(r,c)}}`:"")}),a(f,{className:[o,r!=null?`${o}-c${r}`:"",L].filter(Boolean).join(" "),style:N(c),minEmptyHeight:80})]}):null,a("div",{className:`${_} ${L}`,style:N(m),children:(t??[]).map((u,k)=>a("div",{className:"text-center",style:b,children:a(T,{src:u.src,alt:u.alt,look:m,logoHeight:l,grayscale:s})},k))})]})}const W="font-mono text-[12px] uppercase tracking-[0.18em]";function w(t){const e=j({name:S(t)});return!e.length||e.length===1&&e[0].kind==="words"&&!e[0].glyph?null:a("span",{className:"flex items-center gap-3",children:e.map((n,r)=>a(A,{item:n,size:20,className:W},r))})}function T({src:t,alt:e,look:n,logoHeight:r,grayscale:s,mark:l}){return n==="cards"?a("div",{className:"sf-card flex h-10 items-center border border-line bg-surface px-4",children:l||(!t&&e&&w(e)?w(e):t?a("img",{...I(h(t)),alt:S(e||""),className:s===!1?"max-h-5 w-auto opacity-90":"max-h-5 w-auto opacity-90 grayscale"}):e&&a("span",{className:W,children:C(e)}))}):t?a("img",{...B(h(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`}}):a("span",{className:`font-mono ${$.label} uppercase tracking-[0.2em] text-fg-dim`,children:z(e||"Logo")})}function I(t){const e=g(t,{fallbackWidth:320,maxWidth:640});return e.srcSet?{src:e.src,srcSet:e.srcSet,sizes:"120px"}:{src:t}}function B(t){const e=g(t,{fallbackWidth:640,maxWidth:960});return e.srcSet?{src:e.src,srcSet:e.srcSet,sizes:"240px"}:{src:t}}export{W as CARD_WORDS_CLASS,T as LogoWallMark,M as default};
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};
@@ -29,4 +29,5 @@ export interface ProcessStepsProps {
29
29
  cardText?: "below" | "on-image";
30
30
  omitHead?: boolean;
31
31
  }
32
+ export declare function storedStepsShown(steps: readonly ProcessStep[] | undefined): ProcessStep[];
32
33
  export default function ProcessSteps({ num, title, description, boxes: Boxes, steps, columns, cta, padTop, padBottom, editing, omitHead, cardImage, cardText, }: ProcessStepsProps): import("react").JSX.Element;