efficient-web-builder 54.0.0 → 55.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/dist/editor/components/BlockGapField.js +1 -1
- package/dist/editor/components/CornersField.js +1 -1
- package/dist/editor/components/SectionWidthRows.d.ts +2 -1
- package/dist/editor/components/SectionWidthRows.js +1 -1
- package/dist/editor/components/SideSpaceField.js +1 -1
- package/dist/editor/components/WebsiteSettingsPanel.js +1 -1
- package/dist/editor/lib/document/blocks/general/ButtonBlock/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Eyebrow/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Hero/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/HeroSingle/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/LogoBlock/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Split/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Text/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/TitleWithButtons/fields.js +1 -1
- package/dist/editor/lib/document/blocks/hero-shared-fields.d.ts +29 -2
- package/dist/editor/lib/document/blocks/hero-shared-fields.js +1 -1
- package/dist/editor/lib/document/blocks/shared-fields.d.ts +1 -5
- package/dist/editor/lib/document/blocks/shared-fields.js +1 -1
- package/dist/editor/lib/document/box-accordion-seed.d.ts +3 -0
- package/dist/editor/lib/document/box-accordion-seed.js +1 -0
- package/dist/editor/lib/document/box-fields.d.ts +11 -0
- package/dist/editor/lib/document/box-fields.js +1 -1
- package/dist/editor/lib/document/controls.d.ts +3 -1
- package/dist/editor/lib/document/controls.js +1 -1
- package/dist/editor/lib/document/mirror-cards-field.d.ts +1 -0
- package/dist/editor/lib/document/mirror-cards-field.js +1 -1
- package/dist/editor/lib/document/passes/inspector.js +1 -1
- package/dist/editor/lib/document/section-own-width-fields.d.ts +4 -0
- package/dist/editor/lib/document/section-own-width-fields.js +1 -0
- package/dist/editor/lib/document/shape-picker.d.ts +8 -0
- package/dist/editor/lib/document/shape-picker.js +1 -1
- package/dist/format/lib/content/block-align.d.ts +4 -1
- package/dist/format/lib/content/block-align.js +1 -1
- package/dist/format/lib/content/box-layout.d.ts +5 -0
- package/dist/format/lib/content/box-layout.js +1 -1
- package/dist/format/lib/content/box-shadow.d.ts +4 -0
- package/dist/format/lib/content/box-shadow.js +1 -1
- package/dist/format/lib/content/box-shape.d.ts +1 -1
- package/dist/format/lib/content/box-shape.js +1 -1
- package/dist/format/lib/content/card-template.d.ts +2 -1
- package/dist/format/lib/content/card-template.js +1 -1
- package/dist/format/lib/content/container-direction.d.ts +1 -1
- package/dist/format/lib/content/container-direction.js +1 -1
- package/dist/format/lib/content/gallery-card-layout.d.ts +16 -1
- package/dist/format/lib/content/gallery-card-layout.js +1 -1
- package/dist/format/lib/content/image-aspect.d.ts +2 -0
- package/dist/format/lib/content/image-aspect.js +1 -1
- package/dist/format/lib/content/page-width.d.ts +3 -0
- package/dist/format/lib/content/page-width.js +1 -1
- package/dist/format/lib/content/picture-focus-rows.js +1 -0
- package/dist/format/lib/content/section-height.d.ts +31 -2
- package/dist/format/lib/content/section-height.js +1 -1
- package/dist/format/lib/content/section-min-height.d.ts +2 -1
- package/dist/format/lib/content/section-min-height.js +1 -1
- package/dist/format/lib/content/section-width.d.ts +38 -1
- package/dist/format/lib/content/section-width.js +1 -1
- package/dist/format/lib/content/site-gutter.d.ts +2 -0
- package/dist/format/lib/content/site-gutter.js +1 -1
- package/dist/format/lib/content/view-overrides.d.ts +7 -0
- package/dist/format/lib/content/view-overrides.js +1 -0
- package/dist/format/lib/document/blocks/general/Flex/meta.d.ts +4 -0
- package/dist/format/lib/document/blocks/general/Flex/meta.js +1 -1
- package/dist/format/lib/document/passes/types.d.ts +3 -0
- package/dist/format/lib/document/section-catalog.js +1 -1
- package/dist/format/lib/editor-words-catalogue.d.ts +11 -0
- package/dist/format/lib/editor-words-catalogue.js +5 -5
- package/dist/format/lib/markup.d.ts +1 -0
- package/dist/format/lib/markup.js +2 -2
- package/dist/format/lib/sections/hero-single-to-hero.js +1 -1
- package/dist/format/lib/sections/intro-bleed-layout.d.ts +1 -0
- package/dist/format/lib/sections/intro-bleed-layout.js +1 -1
- package/dist/format/lib/source-rules/padding-units-declared.d.ts +2 -0
- package/dist/format/lib/source-rules/padding-units-declared.js +6 -0
- package/dist/render/components/AccordionMark.d.ts +4 -0
- package/dist/render/components/AccordionMark.js +1 -0
- package/dist/render/components/BoxAccordionRow.d.ts +7 -0
- package/dist/render/components/BoxAccordionRow.js +1 -0
- package/dist/render/components/BoxTabPaneContext.d.ts +3 -1
- package/dist/render/components/BoxTabPaneContext.js +1 -1
- package/dist/render/components/BoxTabs.js +1 -1
- package/dist/render/components/ButtonBlock.d.ts +1 -0
- package/dist/render/components/ButtonBlock.js +1 -1
- package/dist/render/components/CardRowContext.js +1 -1
- package/dist/render/components/Divider.js +1 -1
- package/dist/render/components/Eyebrow.d.ts +2 -1
- package/dist/render/components/Eyebrow.js +1 -1
- package/dist/render/components/FAQ.js +1 -1
- package/dist/render/components/Flex.d.ts +14 -2
- package/dist/render/components/Flex.js +1 -1
- package/dist/render/components/HeroSection.d.ts +4 -1
- package/dist/render/components/HeroSection.js +1 -1
- package/dist/render/components/HeroSingle.d.ts +4 -1
- package/dist/render/components/HeroSingle.js +1 -1
- package/dist/render/components/HeroSlide.d.ts +1 -0
- package/dist/render/components/HeroSlide.js +1 -1
- package/dist/render/components/ImageBlock.js +1 -1
- package/dist/render/components/IntroBleed.js +1 -1
- package/dist/render/components/LogoBlock.d.ts +1 -0
- package/dist/render/components/LogoBlock.js +1 -1
- package/dist/render/components/Logos.js +1 -1
- package/dist/render/components/ProcessSteps.d.ts +1 -0
- package/dist/render/components/ProcessSteps.js +1 -1
- package/dist/render/components/SiteGutterFrame.d.ts +16 -0
- package/dist/render/components/SiteGutterFrame.js +1 -1
- package/dist/render/components/Split.d.ts +2 -1
- package/dist/render/components/Split.js +1 -1
- package/dist/render/components/Text.d.ts +2 -1
- package/dist/render/components/Text.js +1 -1
- package/dist/render/components/TitleWithButtons.d.ts +2 -1
- package/dist/render/components/TitleWithButtons.js +1 -1
- package/dist/render/lib/content/box-shared-columns.d.ts +2 -2
- package/dist/render/lib/content/box-shared-columns.js +1 -1
- package/dist/render/lib/content/box-stack-line.d.ts +15 -0
- package/dist/render/lib/content/box-stack-line.js +1 -0
- package/dist/render/lib/content/button-look.js +1 -1
- package/dist/render/lib/content/empty-hides.d.ts +8 -0
- package/dist/render/lib/content/empty-hides.js +1 -0
- package/dist/render/lib/content/section-edge.d.ts +1 -1
- package/dist/render/lib/content/section-edge.js +1 -1
- package/dist/render/lib/content/section-padding.d.ts +17 -3
- package/dist/render/lib/content/section-padding.js +1 -1
- package/dist/render/lib/content/view-values.d.ts +1 -7
- package/dist/render/lib/content/view-values.js +1 -1
- package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Hero/render.js +1 -1
- package/dist/render/lib/document/blocks/general/HeroSingle/render.js +1 -1
- package/dist/render/lib/document/blocks/general/HeroSlide/render.js +1 -1
- package/dist/render/lib/document/blocks/general/ImageBlock/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Text/render.js +1 -1
- package/dist/render/lib/document/blocks/general/section-head-looks.d.ts +1 -0
- package/dist/render/lib/document/blocks/general/section-head-looks.js +2 -2
- package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-docbody.js +2 -2
- package/dist/render/lib/document/blocks/general/section-to-box-rows-editorial.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-head.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-locations.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
- package/dist/render/lib/document/head-core-boxes.d.ts +1 -0
- package/dist/render/lib/document/head-core-boxes.js +1 -0
- package/dist/render/lib/document/page-render.js +1 -1
- package/dist/render/lib/document/passes/head-core.d.ts +3 -0
- package/dist/render/lib/document/passes/head-core.js +1 -0
- package/dist/render/lib/document/passes/index.js +1 -1
- package/dist/render/lib/document/passes/section-theme.js +1 -1
- package/dist/render/lib/document/passes/section-width.js +1 -1
- package/dist/render/lib/sections/section-to-box.js +1 -1
- package/package.json +5 -5
- package/dist/render/lib/content/picture-focus-rows.js +0 -1
- /package/dist/{render → format}/lib/content/picture-focus-rows.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as b}from"react/jsx-runtime";import
|
|
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
|
|
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
|
|
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;
|
|
@@ -40,6 +41,15 @@ interface FlexProps {
|
|
|
40
41
|
pad?: PadValues;
|
|
41
42
|
fillHeight?: boolean;
|
|
42
43
|
shadow?: unknown;
|
|
44
|
+
shadowTablet?: unknown;
|
|
45
|
+
shadowPhone?: unknown;
|
|
46
|
+
justifyTablet?: unknown;
|
|
47
|
+
justifyPhone?: unknown;
|
|
48
|
+
alignTablet?: unknown;
|
|
49
|
+
alignPhone?: unknown;
|
|
50
|
+
wrapTablet?: unknown;
|
|
51
|
+
blockSpacingTablet?: unknown;
|
|
52
|
+
blockSpacingPhone?: unknown;
|
|
43
53
|
loop?: Loop;
|
|
44
54
|
scrollDirection?: LoopDirection;
|
|
45
55
|
loopSeconds?: number;
|
|
@@ -61,6 +71,8 @@ interface FlexProps {
|
|
|
61
71
|
boxId?: string;
|
|
62
72
|
mirrorCards?: unknown;
|
|
63
73
|
content: SlotComponent;
|
|
74
|
+
rowTitle?: SlotComponent;
|
|
75
|
+
startsOpen?: unknown;
|
|
64
76
|
}
|
|
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;
|
|
77
|
+
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, placement, padV2, border, borderTablet, borderPhone, pad, contained, fillHeight, shadow, shadowTablet, shadowPhone, justifyTablet, justifyPhone, alignTablet, alignPhone, wrapTablet, blockSpacingTablet, blockSpacingPhone, loop, scrollDirection, loopSeconds, loopDelay, editing, fillColor, 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
78
|
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 K,jsx as e,jsxs as po}from"react/jsx-runtime";import{useId as Rs}from"react";import{parseHexColor as ys}from"efficient-shell/format";import As from"./BoxTabs.js";import{BoxTabPaneContext as bo,useBoxPaneKind as ks,useIsTabPane as Os}from"./BoxTabPaneContext.js";import vs from"./BoxAccordionRow.js";import{boxPhoneCell as Bs,boxPhoneOrder as Ns}from"../../format/lib/content/box-phone-place.js";import{CellFillContext as be,InBoxContext as xe,useCellOfStretchedRow as Es,useFillsCell as Ts}from"./InBoxContext.js";import Fs,{InsideSiteColumn as Se,useInsideSiteGutter as gs,useSectionRoot as Ds}from"./SiteGutterFrame.js";import{BoxSurfaceProvider as Is}from"./BoxSurfaceContext.js";import Ms from"./PictureWash.js";import{BoxCellWidthContext as Ws}from"./BoxCellWidthContext.js";import{useInSiteHeader as Gs}from"./PhoneMenuTools.js";import{useCardRow as Vs}from"./CardRowContext.js";import{framesItsCards as Hs}from"../../format/lib/content/card-place.js";import{MirrorContext as Xs,useMirroredCopy as Us,useUnderCardBox as js}from"./MirrorContext.js";import{isMirroredCopy as Ks,mirrorCardsActs as $e,mirrorCardsOf as Js,mirroredBoxClass as zs,MIRROR_ROW_CLASS as Ys,ownsCard as qs}from"../../format/lib/content/mirror-cards.js";import{FRAME_BASE as xo,FRAME_GUTTER as So}from"./BlockFrame.js";import{containerGapProps as Qs}from"../../format/lib/content/container-gap.js";import{boxLayoutClasses as Zs,boxAlignViewClasses as ot,boxBlockSpacingClass as et,boxBlockSpacingViewClasses as st,boxJustifyViewClasses as tt,boxWrapTabletClass as nt,boxFitContentClass as rt,boxRowColumnsClass as lt,boxRowTabletColumnsClass as ct,boxRowTabletShareClass as at,boxPhoneCellsShareLine as it,boxPhoneRowClasses as G,boxPhoneRowFits as mt,boxShareClasses as N,boxShareVars as ut,boxWrapClass as dt,BOX_GAP_ONLY_CLASS as ft}from"../../format/lib/content/box-layout.js";import{boxSeparatorClasses as Ct,boxSeparatorSeamClass as pt,boxSeparatorStyle as bt,isStripBox as xt}from"../../format/lib/content/box-separator.js";import{DEFAULT_LOOP_DELAY as St,DEFAULT_LOOP_DIRECTION as $t,DEFAULT_LOOP_SECONDS as ht,isVerticalLoop as wt}from"../../format/lib/animation/index.js";import{LoopTrack as Pt}from"../lib/animation/LoopTrack.js";import{BOX_CARD_PAD as b,BOX_OWNS_SIDES_CLASS as _t,boxDarkenStyle as Lt,boxPlacementClasses as Rt,CARD_SHADOW_CLASS as yt,isBackgroundBox as he}from"../../format/lib/content/box-background.js";import{boxShadowAttrs as At,boxShadowOnAnyView as kt,boxShadowViewAttrs as Ot}from"../../format/lib/content/box-shadow.js";import{boxRunsEdgeToEdge as vt,drawsSiteGutter as Bt}from"../../format/lib/content/site-gutter.js";import{boxShapeClass as Nt,boxShapeClasses as Et}from"../../format/lib/content/box-shape.js";import{BOX_JUMP_ATTR as Tt,BOX_LINK_ATTR as we,BOX_LINK_CLASS as Pe,BOX_LINKED_CLASS as Ft,boxJumpBlocksClass as gt,boxJumpCss as Dt,boxJumpSlug as It,boxLinkOf as Mt}from"../../format/lib/content/box-link.js";import{SiteLink as Wt}from"../lib/site-runtime.js";import{sectionBorderStyle as _e}from"../../format/lib/content/borders.js";import{finiteNumber as x}from"../../format/lib/finite-number.js";import{padDefaultIn as S,sectionPadAttrs as Gt}from"../lib/content/section-padding.js";import{SECTION_FILL_CLASS as J}from"../../format/lib/content/section-min-height.js";import{ON_MEDIA_INK_STYLE as Vt}from"../../format/lib/content/ink.js";import{sizedBackground as $o}from"../../format/lib/sized-image.js";import{PHOTO_HOST_ATTR as Ht,resolveImageTreatment as Xt}from"../../format/lib/content/image-treatment.js";import{BoxRail as Ut,BoxRailStop as jt,RAIL_STOPS_CLASS as Kt,useTimelineRail as Jt}from"./TimelineRail.js";import{SHARED_PLAIN_ATTR as zt,sharedColumnsClasses as Yt,sharedColumnsCss as qt}from"../lib/content/box-shared-columns.js";import Qt from"./PhotoHoverSheet.js";import{stackGutterClass as Zt,stackLineCss as on,stackOuterClass as en,stackRowClass as sn,storedStackLine as tn}from"../lib/content/box-stack-line.js";const ho={"--sf-site-gutter":"0px"},nn={overflowX:"clip",overflowY:"visible"},rn={stretchedRow:!1,fillingColumn:!1,columnsRow:!1},ln={desktop:!1,phone:!1},Le="bg-cover bg-center bg-[image:var(--sf-box-bg)] max-view-tablet:bg-[image:var(--sf-box-bg-p)]",wo=o=>o==null||o==="",Po=o=>!wo(o)&&Number(o)===0;function cn({children:o}){return e(K,{children:o(Rs())})}function an({direction:o,label:Re,tabShape:ye,gap:_o,gapPhone:Ae,gapTablet:z,justify:E,align:$,wrap:V,share:c,sharePhone:H,shareTablet:T,wrapPhone:ke,orderPhone:Oe,phoneRow:F,columns:R,columnsTablet:y,separator:m,stackBelow:ve,blockSpacing:Lo,bgImage:A,bgImagePhone:Ro,pictureHover:Be,darken:Ne,darkenStyle:Ee,placement:Te,padV2:yo=!1,border:Ao,borderTablet:ko,borderPhone:Oo,pad:t={},contained:Y=!0,fillHeight:h=!1,shadow:q,shadowTablet:vo,shadowPhone:Bo,justifyTablet:Fe,justifyPhone:ge,alignTablet:De,alignPhone:Ie,wrapTablet:Me,blockSpacingTablet:We,blockSpacingPhone:Ge,loop:w,scrollDirection:Q=$t,loopSeconds:Ve=ht,loopDelay:He=St,editing:k=!1,fillColor:No,line:P,upcoming:Xe,link:Ue,boxShape:Eo,boxShapePhone:je,boxShapeTablet:Ke,jumpHighlight:Je,anchor:ze,sharedSides:a=ln,boxId:To,mirrorCards:Fo,content:u,rowTitle:Z,startsOpen:Ye}){const O=k?"":Mt(Ue),d=h?"":Et(Eo,je,Ke),qe=!h&&Nt(Eo)!=="",_=It(Je,ze),oo=typeof No=="string"?ys(No.trim()):null,go=oo?{backgroundColor:oo}:void 0,Do=Jt(),X=P===!0&&o!=="tabs"&&o!=="accordion",n=he(A),U=Gs(),Qe=Ds(),Ze=Os(),Io=ks(),l=o==="accordion",eo=Ts(),os=Es(),v=xt(o,m),r=w==="scroll"&&o!=="tabs"&&!l,f=Vs(),es=Us(),ss=js(),g=qs({inCopy:f!==null,nestedCopy:f?.nested===!0,underBox:ss}),so=g&&Hs(f?.ownerType),Mo=$e({direction:o,separator:m,loop:w,line:P,bgImage:A,columns:R,columnsTablet:y,share:c,wrap:V},g,a.desktop)&&Ks(Fo,f?.index),Wo=n||g?"":zs(es,o,r?void 0:E,$),ts=$e({direction:o,separator:m,loop:w,line:P,bgImage:A,columns:R,columnsTablet:y,share:c,wrap:V},g,a.desktop)&&Js(Fo)!==null,B=lt({direction:o,separator:m,loop:w,line:P,columns:R}),C=ct({direction:o,separator:m,loop:w,line:P,columnsTablet:y}),D=at({direction:o,separator:m,loop:w,line:P,columns:R,columnsTablet:y,share:c,shareTablet:T}),i=o==="row"&&!n&&!v&&!r&&!X&&C===""&&D===""?tn(ve):void 0,ns=gs(),j=Yt(a,u.blockCount??0,i),rs=j&&(!f||f.index===0)?qt(a,u.blockCount??0,i):"",Go=C!==""?Number(y)>=2:D===""||N(T)!=="",to=C!==""||D!=="",ls=to&&!(C!==""&&Number(y)<2),Vo=o==="row"&&!v&&!r&&P!==!0,no=Vo&&!a.phone&&!a.desktop?Bs(Ns(Oe,u.blockIds??[]),{tabletKeepsRow:ls,editing:k}):void 0,Ho=no!==void 0&&!k,cs=B!==""?Number(R)>=2:N(c)!=="",Xo=!n&&!l&&!ts&&!a.desktop&&!a.phone,Uo=Xo&&!r?tt(E,Fe,ge):"",as=Xo&&o==="row"?ot($,De,Ie):"",is=!r&&!l&&B===""&&C===""&&!a.desktop?nt(V,Me):"",jo=[l?"":N(c),o==="row"?rt(c):"",B,C,D,et(l?"gap":Lo),Ct(o,m),l?"border-t border-line":"",Uo,as,is,l?"":st(Lo,We,Ge)].filter(Boolean).join(" "),ms=jo?` ${jo}`:"",Ko=["flex",o==="row"?v||r?"flex-row":`flex-row ${G(F,H,ke)}`:"flex-col",dt(r||l?!1:V),n?Rt(Te??"center",o):Zs(r||l?void 0:E,l?void 0:$)+(Wo?` ${Wo}`:"")].join(" ")+ms,I=h||n||d||eo?` ${J}`:"",ro=qe?` ${d}`:d?`${I} ${d}`:I,Jo=os&&o==="column"&&!n&&!r&&N(c)===""&&(typeof E=="string"&&E!=="start"||Uo!==""),zo=I||(Jo?` ${J}`:""),lo=O?` ${Ft}`:"",co=n||U||yo?"":" py-6",us=i===void 0?"":` ${sn(i)}`,Yo=i===void 0?"":` ${Zt(i)}`,ao=i===void 0?"":` ${en(i)}`,ds=`${xo}${co} ${So}${ro}${lo}${Yo}${ao}`,fs=U?`${ro}${lo}${ao}`.trim():`w-full${co}${ro}${lo}${ao}`,M=Qs("Flex",_o,o==="row"?"inline":"block",Ae,v||r?void 0:z),qo=ut(c,T,o==="row"?u.blockCount??0:0),Qo=v?{...M.style,...bt(o,m)}:M.style,Cs=qo?{...Qo,...qo}:Qo,Zo=(s="")=>e(u,{className:`${Ko}${Mo?` ${Ys}`:""}${M.className}${zo}${us}${s?` ${s}`:""}${X?` ${Kt}`:""}${_?` ${gt(_)}`:""}${j}`,style:Cs,minEmptyHeight:120,...no?{cell:no}:null}),oe=wt(Q)?"":pt(o,m),ee=r?e(Pt,{direction:Q,seconds:Ve,delay:He,editing:k,copy:s=>Zo(s&&oe?`${s} ${oe}`:s)}):Zo(),io=o==="tabs"?e(As,{className:`${Ko}${M.className}${eo&&!h&&!n&&!d?"":I}`,style:M.style,shape:ye,children:ee}):ee,se=l?e(bo.Provider,{value:"accordion",children:io}):Io?e(bo.Provider,{value:!1,children:io}):io,te=o==="row"&&!n&&($===void 0||$==="stretch"),ps={stretchedRow:te,fillingColumn:o==="column"&&(eo||Jo),columnsRow:B!==""||C!==""||j!==""||o==="row"&&(Array.isArray(c)||Array.isArray(T))||Ho,...Ho?{phoneCells:!0}:null,...te&&Vo&&(u.blockCount??0)>=2&&cs?{picturesFillRow:!0}:null,...to?{fillFrom:Go?"tablet":"desktop"}:null,...it(F,H)&&(!to||Go)?{phoneRowFills:!0}:null,...To?{id:To}:null},ne=e(xe.Provider,{value:ps,children:e(be.Provider,{value:!1,children:g?e(Xs.Provider,{value:Mo,children:se}):se})}),bs=Z?.blockCount??0,re=Io==="accordion"&&!!Z&&(k||bs>0)?e(vs,{startsOpen:Ye===!0,editing:k,title:e(xe.Provider,{value:rn,children:e(be.Provider,{value:!1,children:e(bo.Provider,{value:!1,children:e(Z,{className:`min-w-0 flex-1 ${ft}`,minEmptyHeight:24})})})}),children:ne}):ne,mo=X?e(Ut,{row:o==="row",stops:u.blockCount??0,children:re}):re,xs=Re?.trim()||(Ze?"":void 0),Ss={values:t,frame:co?24:0},$s=s=>Do?e(jt,{on:Do,future:Xe===!0,children:s}):s,hs=s=>O.startsWith("/")?e(Wt,{href:O,className:Pe,"aria-labelledby":s,[we]:""}):e("a",{href:O,className:Pe,"aria-labelledby":s,[we]:""}),le=(_?Dt(_):"")+rs+(i===void 0||f&&f.index!==0?"":on(i)),ce=le?e("style",{dangerouslySetInnerHTML:{__html:le}}):null,W=vt({loop:w,direction:o,scrollDirection:Q,bgImage:A}),ws=a.desktop&&j!==""&&!oo&&!_e(Ao,Oo,ko)&&!kt(q,vo,Bo)&&!O&&!d&&!h&&!_&&!Bt(Y&&!W,ns)&&Po(_o)&&(wo(z)||Po(z))&&yo&&Object.values(t).every(s=>wo(s)||Po(s)),Ps=s=>({...ws?{[zt]:""}:null,...n?null:{...At(q),...Ot(q,vo,Bo)},..._?{[Tt]:_}:null,...s?{id:s}:null}),ae=B!==""?Number(R):0,_s=G(F,H)===G(void 0),Ls=(o==="column"||o==="row"&&!v&&!r&&(ae===1&&_s||ae===0&&u.blockCount===1))&&!n&&!X&&!U,ie=n&&Qe&&!U,me=(s,p)=>$s(e(Fs,{contained:Y&&!W,style:W?ho:void 0,framedClass:ds,fillClass:fs,columnClass:`${xo} ${So}${zo}${Yo}`,tabLabel:xs,pad:n?void 0:Ss,border:_e(Ao,Oo,ko),outerAttrs:Ps(p),box:!0,edge:Ls,outerStyle:n?void 0:go,bleed:ie,children:ce||p?po(K,{children:[ce,p?hs(p):null,W?e(Se,{children:s}):s]}):W?e(Se,{children:s}):s})),ue=s=>O?e(cn,{children:p=>me(s,p)}):me(s);if(!n){const s=$===void 0||$==="stretch",p=(N(c)!==""||B!==""||C!=="")&&!mt(F,H)&&!(D!==""&&N(T)==="")&&(s||G(F)!==G(void 0));return ue((o==="row"?p:o==="column"&&s)?e(Ws.Provider,{value:!0,children:mo}):mo)}const uo=Lt(Ne,Ee),fo=he(Ro),de=fo?{"--sf-box-bg":$o(A??""),"--sf-box-bg-p":$o(Ro??"")}:{backgroundImage:$o(A??""),backgroundSize:"cover",backgroundPosition:"center"},fe=Xt(void 0,void 0,Be),L=fe.className?fe:null,Co=Gt({...t,top:x(t.top)??S(b.desktop,t.unit,"desktop"),bottom:x(t.bottom)??S(b.desktop,t.unit,"desktop"),topPhone:x(t.topPhone)??S(b.phone,t.unitPhone,"mobile"),bottomPhone:x(t.bottomPhone)??S(b.phone,t.unitPhone,"mobile"),left:x(t.left)??S(b.side,t.unit,"desktop"),right:x(t.right)??S(b.side,t.unit,"desktop"),leftPhone:x(t.leftPhone)??S(b.sidePhone,t.unitPhone,"mobile"),rightPhone:x(t.rightPhone)??S(b.sidePhone,t.unitPhone,"mobile")}),Ce=e("div",{className:`relative z-[1] ${_t} ${Co?.className??""}${h||d?` ${J}`:""}`.trimEnd(),style:uo?{...Co?.style,...ho,...Vt}:{...Co?.style,...ho},children:mo}),pe=ie&&Y?e("div",{className:`${xo} ${So}${h||d?` ${J}`:""}`,children:Ce}):Ce;return ue(e(K,{children:po("div",{className:`relative isolate overflow-hidden ${yt}${I}${fo&&!L?` ${Le}`:""}`,style:{...so?nn:{},...go,...L?{}:de},...L?{[Ht]:""}:{},children:[L&&po(K,{children:[e(Qt,{sheet:L.sheet}),e("div",{"aria-hidden":!0,className:`absolute inset-0${so?" rounded-[inherit]":""}${fo?` ${Le}`:""} ${L.className}`,style:{...de,...L.style??{}}})]}),e(Ms,{wash:uo,...so?{className:"rounded-[inherit]"}:{}}),uo?e(Is,{children:pe}):pe]})}))}export{an 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
|
|
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
|
|
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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as e,jsxs as
|
|
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
|
|
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
|
|
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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as r}from"react/jsx-runtime";import{useContext as
|
|
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
|
|
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;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as e,Fragment as C,jsxs as i}from"react/jsx-runtime";import{EDITORIAL_COLUMN as I}from"../../format/lib/content/page-width.js";import{cardImageShapeTokens as j}from"../../format/lib/content/card-image-shape.js";import{SiteLink as A}from"../lib/site-runtime.js";import U from"./EditorialSectionHead.js";import D from"./Placeholder.js";import{withRMark as n}from"./RMark.js";import{renderGold as o}from"./goldPhrases.js";import{say as G}from"../../format/lib/editor-words.js";import{scrim as p}from"../../format/lib/content/scrim.js";import{EMPTY_ELSE_CLASS as H,EMPTY_HIDES_CLASS as M,EmptyHidesStyle as O}from"../lib/content/empty-hides.js";const t={headingSmallUpTo700Small:"max-[700px]:text-[length:var(--size-headingSmall,26px)]",headingSmallUpTo700Large:"max-[700px]:text-[length:var(--size-headingSmall,28px)]",bodySmall:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,18px)]",headingSmall1:"text-[length:var(--size-headingSmall,28px)]",headingSmall2:"text-[length:var(--size-headingSmall,34px)]",labelSmall:"text-[length:var(--size-label,11px)]",label:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"},N={2:"grid-cols-2 max-[900px]:grid-cols-1",3:"grid-cols-3 max-view-desktop:grid-cols-1",4:"grid-cols-4 max-view-desktop:grid-cols-2 max-[700px]:grid-cols-1"},P="sf-itc-boxes",R="sf-itc-steps";function F(g){return(g??[]).filter(r=>(r?.tag??"").trim()||(r?.meta??"").trim()||(r?.title??"").trim()||(r?.copy??"").trim()||(r?.image??"").trim()||(r?.specs??[]).some(s=>(s?.label??"").trim()||(s?.value??"").trim()))}function Y({num:g,title:r,description:s,boxes:d,steps:$,columns:L=3,cta:x,padTop:h,padBottom:b,editing:k=!1,omitHead:z=!1,cardImage:_,cardText:E}){const T=typeof h=="number"?h:120,w=typeof b=="number"?b:120,u=F($),v=u.length>0?u:k&&!d?[1,2,3].map(a=>({tag:G("Column {n}",{n:a})})):[],S=N[L]??N[3],m=E==="on-image";return e("section",{className:"relative z-[2] border-b border-line bg-bg",style:{paddingTop:T,paddingBottom:w,...j(_)},children:i("div",{className:I,children:[z?null:e(U,{num:g,title:r?.trim()?o(r,!0):void 0,desc:s?.trim()?o(s,!1):void 0}),d?i(C,{children:[e(O,{}),e(d,{className:`${P} ${M} sf-card grid ${S} gap-[2px] border border-line bg-line [&>*]:min-h-[560px] [&>*]:bg-bg`,minEmptyHeight:260})]}):null,v.length>0&&e("div",{className:`${R} ${H} sf-card grid ${S} gap-[2px] border border-line bg-line`,children:v.map((a,y)=>{const c=(a.specs??[]).filter(l=>(l?.label??"").trim()||(l?.value??"").trim());return i("article",{className:m?"flex flex-col bg-bg":"flex min-h-[560px] flex-col bg-bg",children:[i("div",{className:m?"sf-card-image relative aspect-[5/3] overflow-hidden bg-surface max-[700px]:aspect-[4/3]":"sf-card-image relative aspect-[5/3] overflow-hidden border-b border-line bg-surface",children:[e(D,{label:a.tag?.trim()||a.title?.trim()||`column-${y+1}`,src:a.image||void 0,sizes:"(max-width: 1100px) 100vw, 33vw",...d?{deferFetch:!0}:{}}),e("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 z-[1]",style:{background:`linear-gradient(180deg, ${p(.55)} 0%, transparent 30%, transparent 70%, ${p(.65)} 100%)`}}),m&&e("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 bottom-0 z-[1] h-[78%]",style:{background:`linear-gradient(180deg, transparent 0%, ${p(.73)} 55%, ${p(.92)} 100%)`}}),a.tag?.trim()&&e("span",{className:`absolute left-5 top-[18px] z-[2] font-mono ${t.label} uppercase tracking-[0.3em] text-accent`,children:n(a.tag)}),a.meta?.trim()&&e("span",{className:m?`absolute right-5 top-[18px] z-[2] font-mono ${t.label} uppercase tracking-[0.24em] text-overlay-fg/80`:`absolute right-5 bottom-[18px] z-[2] font-mono ${t.label} uppercase tracking-[0.24em] text-overlay-fg/80`,children:n(a.meta)}),m&&(a.title?.trim()||a.copy?.trim())&&i("div",{className:"absolute inset-x-0 bottom-0 z-[2] flex flex-col gap-2.5 px-8 pb-7 pt-14 max-[700px]:px-6 max-[700px]:pb-6",children:[a.title?.trim()&&e("h3",{className:`flex min-h-[2em] flex-col justify-end font-heading3 ${t.headingSmall1} font-medium uppercase leading-none tracking-[-0.02em] text-overlay-fg ${t.headingSmallUpTo700Small}`,children:o(a.title,!0)}),a.copy?.trim()&&e("p",{className:`min-h-[3em] font-display ${t.bodySmall} leading-[1.5] text-overlay-fg/85`,children:o(a.copy,!1)})]})]}),m?c.length>0&&e("div",{className:"grid grid-cols-2 gap-2 border-t border-line px-8 py-7 max-[700px]:px-6 max-[700px]:py-6",children:c.map((l,f)=>i("div",{className:"flex flex-col gap-1",children:[l.label?.trim()&&e("span",{className:`font-mono ${t.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:n(l.label)}),l.value?.trim()&&e("span",{className:`font-display ${t.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:n(l.value)})]},f))}):i("div",{className:"flex flex-1 flex-col gap-4 px-8 py-9 max-[700px]:px-6 max-[700px]:py-7",children:[a.title?.trim()&&e("h3",{className:`font-heading3 ${t.headingSmall2} font-medium uppercase leading-none tracking-[-0.02em] ${t.headingSmallUpTo700Large}`,children:o(a.title,!0)}),a.copy?.trim()&&e("p",{className:`font-display ${t.bodySmall} leading-[1.55] text-fg-dim`,children:o(a.copy,!1)}),c.length>0&&e("div",{className:"mt-auto grid grid-cols-2 gap-2 border-t border-line pt-4",children:c.map((l,f)=>i("div",{className:"flex flex-col gap-1",children:[l.label?.trim()&&e("span",{className:`font-mono ${t.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:n(l.label)}),l.value?.trim()&&e("span",{className:`font-display ${t.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:n(l.value)})]},f))})]})]},y)})}),x?.text&&e("div",{className:"mt-12 flex justify-end border-t border-line pt-8",children:i(A,{href:x.href,className:`group inline-flex items-center gap-3.5 border border-line px-6 py-4 font-mono ${t.labelLarge} uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent`,children:[n(x.text),e("span",{"aria-hidden":!0,className:"text-accent transition-transform group-hover:translate-x-[3px]",children:"→"})]})})]})})}export{Y as default,F as storedStepsShown};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { WidthAnswer } from "../../format/lib/content/section-width.js";
|
|
1
2
|
import { type CSSProperties, type ReactNode } from "react";
|
|
2
3
|
import { type PadValues } from "../lib/content/section-padding.js";
|
|
3
4
|
import type { SectionEdge } from "../lib/content/section-edge.js";
|
|
@@ -17,6 +18,21 @@ export declare function NotASectionEdge({ children }: {
|
|
|
17
18
|
children?: ReactNode;
|
|
18
19
|
}): import("react").JSX.Element;
|
|
19
20
|
export declare function useSectionRoot(): boolean;
|
|
21
|
+
export declare function SectionRootChoice({ own, followed }: {
|
|
22
|
+
own: () => ReactNode;
|
|
23
|
+
followed: () => ReactNode;
|
|
24
|
+
}): import("react").JSX.Element;
|
|
25
|
+
export interface SectionGroupWidths {
|
|
26
|
+
background: WidthAnswer | null;
|
|
27
|
+
content: WidthAnswer | null;
|
|
28
|
+
}
|
|
29
|
+
export declare function SectionGroupWidthsProvider({ value, children }: {
|
|
30
|
+
value: SectionGroupWidths;
|
|
31
|
+
children?: ReactNode;
|
|
32
|
+
}): import("react").JSX.Element;
|
|
33
|
+
export declare function SectionGroupChoice({ draw }: {
|
|
34
|
+
draw: (group: SectionGroupWidths | null) => ReactNode;
|
|
35
|
+
}): import("react").JSX.Element;
|
|
20
36
|
export declare function useSectionEdge(): SectionEdge | null;
|
|
21
37
|
export default function SiteGutterFrame({ contained, framedClass, fillClass, columnClass, style, tabLabel, pad, border, outerAttrs, box, edge, outerStyle, bleed, children, }: {
|
|
22
38
|
contained: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as
|
|
1
|
+
"use client";import{jsx as n,Fragment as N}from"react/jsx-runtime";import{createContext as s,useContext as o}from"react";import{rootPadAttrs as k,wrapperPadAttrs as H}from"../lib/content/section-padding.js";import{SECTION_BORDER_CLASS as U,SECTION_BORDER_SELF_CLASS as X}from"../../format/lib/content/borders.js";import{BOX_HOLDS_NO_GUTTER_CLASS as q}from"../../format/lib/content/page-width.js";import{drawsSiteGutter as z}from"../../format/lib/content/site-gutter.js";const u=s(!1);function te(){return o(u)}function oe({children:e}){return n(u.Provider,{value:!0,children:e})}const P=s(!1);function re({children:e}){return n(P.Provider,{value:!0,children:e})}const _=s(!1);function J(){return o(_)}function ie({atTop:e,nested:t}){return n(N,{children:J()?t:e})}const c=s(void 0);function le({children:e}){return n(c.Provider,{value:null,children:e})}function K(){return o(c)===void 0&&!o(_)&&!o(u)}function se({own:e,followed:t}){return n(N,{children:K()?e():t()})}const j=s(null);function ue({value:e,children:t}){return n(j.Provider,{value:e,children:t})}function ce({draw:e}){return n(N,{children:e(o(j))})}function de(){return o(c)??null}function M({contained:e,framedClass:t,fillClass:w,columnClass:g,style:B,tabLabel:y,pad:r,border:d,outerAttrs:m,box:p=!1,edge:F=!1,outerStyle:a,bleed:v=!1,children:O}){const T=o(u),R=o(P),f=z(e,T),i=f&&!R,h=r&&!i?k(r.values,r.frame):null,S=d&&!i?d:null,x=p&&!v?q:null,D=[i?t:w,i?x:null,h?.className,S?X:null].filter(Boolean).join(" "),E=Q(v&&i,h||S?{...B,...h?.style,...S}:B),W=o(c),$=p&&F&&W===void 0?{gutter:f,...r?{pad:r.values}:{}}:null,G=p?n(_.Provider,{value:!0,children:n(c.Provider,{value:$,children:O})}):O,C=f?n(u.Provider,{value:!0,children:G}):G,l=r&&i?H(r.values):null,I=m&&Object.keys(m).length>0?m:null,L=n("div",{...l?null:I,className:D,style:l||!a?E:{...E,...a},"data-tab-label":y,children:R?n(P.Provider,{value:!1,children:f&&!v?n("div",{className:x?`${g} ${x}`:g,children:C}):C}):C}),A=l?n("div",{...I,className:l.className,style:a?{...l.style,...a}:l.style,children:L}):L;return d&&i?n("div",{className:U,style:{display:"contents",...d},children:A}):A}function Q(e,t){return e?{...t,paddingLeft:0,paddingRight:0}:t}export{oe as InsideSiteColumn,ie as NestedBoxChoice,le as NotASectionEdge,ce as SectionGroupChoice,ue as SectionGroupWidthsProvider,se as SectionRootChoice,re as SplitBandAndColumn,M as default,J as useInsideBox,te as useInsideSiteGutter,de as useSectionEdge,K as useSectionRoot};
|
|
@@ -14,6 +14,7 @@ interface Props {
|
|
|
14
14
|
reverse?: boolean;
|
|
15
15
|
uppercase?: boolean;
|
|
16
16
|
textAlign?: "left" | "center" | "right";
|
|
17
|
+
textAlignTablet?: unknown;
|
|
17
18
|
textAlignPhone?: unknown;
|
|
18
19
|
textBgSrc?: string;
|
|
19
20
|
textBgLabel?: string;
|
|
@@ -33,5 +34,5 @@ interface Props {
|
|
|
33
34
|
pictureHover?: PictureHoverDrawn;
|
|
34
35
|
fillHeight?: boolean;
|
|
35
36
|
}
|
|
36
|
-
export default function Split({ imageLabel, imageSrc, imageTint, imageObjectPosition, eyebrow, title, body, cta, reverse, uppercase, textAlign, textAlignPhone, textBgSrc, textBgLabel, textBgTint, textBgObjectPosition, featureBar, imageButton, grayscale, pictureHover, fillHeight, }: Props): import("react").JSX.Element;
|
|
37
|
+
export default function Split({ imageLabel, imageSrc, imageTint, imageObjectPosition, eyebrow, title, body, cta, reverse, uppercase, textAlign, textAlignTablet, textAlignPhone, textBgSrc, textBgLabel, textBgTint, textBgObjectPosition, featureBar, imageButton, grayscale, pictureHover, fillHeight, }: Props): import("react").JSX.Element;
|
|
37
38
|
export {};
|