efficient-web-builder 74.2.0 → 74.4.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 +38 -0
- package/dist/editor/components/SectionTextPartBridge.d.ts +2 -8
- package/dist/editor/components/SectionTextPartBridge.js +1 -1
- package/dist/editor/lib/document/blocks/general/Contents/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/FAQ/fields.js +1 -1
- package/dist/editor/lib/document/own-pad-fields.d.ts +4 -3
- package/dist/editor/lib/document/own-pad-fields.js +1 -1
- package/dist/format/lib/content/faq-row-anchor.d.ts +1 -0
- package/dist/format/lib/content/faq-row-anchor.js +1 -0
- package/dist/format/lib/content/unique-ids.d.ts +1 -0
- package/dist/format/lib/content/unique-ids.js +1 -0
- package/dist/format/lib/document/passes/types.d.ts +3 -2
- package/dist/format/lib/document/section-catalog.js +2 -2
- package/dist/format/lib/editor-words-catalogue.d.ts +4 -0
- package/dist/format/lib/editor-words-catalogue.js +3 -3
- package/dist/render/components/Banner.d.ts +3 -1
- package/dist/render/components/Banner.js +1 -1
- package/dist/render/components/BoxAccordionRow.d.ts +2 -1
- package/dist/render/components/BoxAccordionRow.js +1 -1
- package/dist/render/components/BoxTabPaneContext.d.ts +12 -0
- package/dist/render/components/BoxTabPaneContext.js +1 -1
- package/dist/render/components/Cards.d.ts +3 -1
- package/dist/render/components/Cards.js +1 -1
- package/dist/render/components/ChartSection.d.ts +3 -1
- package/dist/render/components/ChartSection.js +1 -1
- package/dist/render/components/ContactLocations.d.ts +3 -1
- package/dist/render/components/ContactLocations.js +2 -2
- package/dist/render/components/ContentsCurrentMark.d.ts +7 -0
- package/dist/render/components/ContentsCurrentMark.js +1 -0
- package/dist/render/components/ContentsList.d.ts +2 -1
- package/dist/render/components/ContentsList.js +1 -1
- package/dist/render/components/Countdown.d.ts +3 -1
- package/dist/render/components/Countdown.js +1 -1
- package/dist/render/components/DocBody.d.ts +3 -1
- package/dist/render/components/DocBody.js +5 -5
- package/dist/render/components/DocMasthead.d.ts +3 -1
- package/dist/render/components/DocMasthead.js +1 -1
- package/dist/render/components/DocMetaCards.d.ts +3 -1
- package/dist/render/components/DocMetaCards.js +1 -1
- package/dist/render/components/FAQ.d.ts +5 -1
- package/dist/render/components/FAQ.js +1 -1
- package/dist/render/components/FeaturedCover.d.ts +3 -1
- package/dist/render/components/FeaturedCover.js +1 -1
- package/dist/render/components/Flex.js +1 -1
- package/dist/render/components/Grid.d.ts +3 -1
- package/dist/render/components/Grid.js +1 -1
- package/dist/render/components/IntegrationsSection.d.ts +3 -1
- package/dist/render/components/IntegrationsSection.js +1 -1
- package/dist/render/components/KeyFeatures.d.ts +3 -1
- package/dist/render/components/KeyFeatures.js +1 -1
- package/dist/render/components/Logos.d.ts +3 -1
- package/dist/render/components/Logos.js +1 -1
- package/dist/render/components/LongRead.d.ts +3 -1
- package/dist/render/components/LongRead.js +1 -1
- package/dist/render/components/Masthead.d.ts +3 -1
- package/dist/render/components/Masthead.js +1 -1
- package/dist/render/components/MockupSection.d.ts +3 -1
- package/dist/render/components/MockupSection.js +1 -1
- package/dist/render/components/OpenFromLink.d.ts +3 -0
- package/dist/render/components/OpenFromLink.js +1 -0
- package/dist/render/components/OrderSummary.d.ts +3 -1
- package/dist/render/components/OrderSummary.js +1 -1
- package/dist/render/components/PaymentBadges.d.ts +3 -1
- package/dist/render/components/PaymentBadges.js +1 -1
- package/dist/render/components/Prose.d.ts +3 -1
- package/dist/render/components/Prose.js +1 -1
- package/dist/render/components/SectionHeader.d.ts +2 -1
- package/dist/render/components/SectionHeader.js +1 -1
- package/dist/render/components/Series.d.ts +3 -1
- package/dist/render/components/Series.js +1 -1
- package/dist/render/components/Stats.d.ts +3 -1
- package/dist/render/components/Stats.js +1 -1
- package/dist/render/components/Testimonials.d.ts +3 -1
- package/dist/render/components/Testimonials.js +1 -1
- package/dist/render/components/TickerSection.d.ts +3 -1
- package/dist/render/components/TickerSection.js +1 -1
- package/dist/render/lib/content/section-own-pads.d.ts +35 -0
- package/dist/render/lib/content/section-own-pads.js +1 -0
- package/dist/render/lib/content/section-padding.d.ts +9 -3
- package/dist/render/lib/content/section-padding.js +1 -1
- package/dist/render/lib/document/blocks/general/Banner/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Cards/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Chart/render.js +1 -1
- package/dist/render/lib/document/blocks/general/ContactLocations/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Contents/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Countdown/render.js +1 -1
- package/dist/render/lib/document/blocks/general/DocBody/render.js +1 -1
- package/dist/render/lib/document/blocks/general/DocMasthead/render.js +1 -1
- package/dist/render/lib/document/blocks/general/DocMetaCards/render.js +1 -1
- package/dist/render/lib/document/blocks/general/FAQ/render.js +1 -1
- package/dist/render/lib/document/blocks/general/FeaturedCover/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Grid/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Integrations/render.js +2 -2
- package/dist/render/lib/document/blocks/general/KeyFeatures/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Logos/render.js +1 -1
- package/dist/render/lib/document/blocks/general/LongRead/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Masthead/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Mockup/render.js +2 -2
- package/dist/render/lib/document/blocks/general/OrderSummary/render.js +1 -1
- package/dist/render/lib/document/blocks/general/PaymentBadges/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Prose/render.js +1 -1
- package/dist/render/lib/document/blocks/general/SectionHeader/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Series/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Stats/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Testimonials/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Ticker/render.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.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-head.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-integrations.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-logos.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-pageheader.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-promo.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-proof.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-stats.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
- package/dist/render/lib/document/editing-bridges.d.ts +5 -1
- package/dist/render/lib/document/editing-bridges.js +1 -1
- package/dist/render/lib/document/part-styles.d.ts +3 -1
- package/dist/render/lib/document/part-styles.js +2 -2
- package/dist/render/lib/document/passes/clickable-parts.js +1 -1
- package/dist/render/lib/document/passes/section-padding.d.ts +3 -3
- package/dist/render/lib/document/passes/section-padding.js +1 -1
- package/dist/routine-index.json +1 -1
- package/dist/value-index.json +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{jsx as t,jsxs as i,Fragment as A}from"react/jsx-runtime";import{HideTaker as
|
|
2
|
-
`);return t(A,{children:n.map((
|
|
1
|
+
"use client";import{jsx as t,jsxs as i,Fragment as A}from"react/jsx-runtime";import{HideTaker as V}from"./ViewHideRoot.js";import{PictureZoom as W}from"./PictureZoom.js";import{FILLS_ITS_FRAME as q}from"../../format/lib/content/image-aspect.js";import{EDITORIAL_COLUMN as J,withSideOnce as Z}from"../../format/lib/content/page-width.js";import{withRootPad as K}from"../lib/content/section-own-pads.js";import{SiteImage as Q}from"../lib/site-runtime.js";import{useEffect as X,useState as Y}from"react";import{stripMarkup as ee}from"../../format/lib/markup.js";import te from"./EditorialSectionHead.js";import ne from"./SectionEyebrow.js";import{scrollBehavior as j}from"./useReducedMotion.js";import{renderGold as H,renderHeadline as ie}from"./goldPhrases.js";import{CONTACT_LOCATIONS_CARDS_PLACEHOLDER as oe,CONTACT_LOCATIONS_DEFAULTS as h,parseLocationTileShape as re,splitLegacyRegion as ae}from"../../format/lib/content/contact.js";import{galleryCardRatioClass as se}from"../../format/lib/content/gallery-card-layout.js";import{jumpHighlightCss as le,NEW_TAB_ATTRS as ce}from"../../format/lib/content/box-link.js";import{hasMapCoords as z}from"../../format/lib/map-styles.js";import{useRootIsDark as me}from"efficient-shell/theme";import{bucketByGroup as pe,groupColsClass as $}from"../../format/lib/locations-grid.js";import{LocationGroupHeader as de}from"./LocationGroupHeader.js";import ue,{DirectionsLink as he,directionsHref as fe}from"./LocationMap.js";import{phoneHref as ge}from"../../format/lib/links/phone-href.js";import{scrim as xe}from"../../format/lib/content/scrim.js";import{PHOTO_HOST_ATTR as be,resolveImageTreatment as ve}from"../../format/lib/content/image-treatment.js";import{pictureHoverOf as ye}from"../../format/lib/animation/hover.js";import Ne from"./PhotoHoverSheet.js";import{nonEmptyString as ke}from"../../format/lib/non-empty-string.js";import{useSideSpaceOnce as we}from"./SideSpaceOnce.js";const Se=le({box:".contact-loc",lit:['.contact-loc[data-active="true"]'],first:o=>[`${o} > div:first-child`]}),E=o=>ke(o?.photo)?.trim()||void 0;function M({value:o}){if(typeof o=="string"){const n=o.split(`
|
|
2
|
+
`);return t(A,{children:n.map((c,a)=>i("span",{children:[c,a<n.length-1?t("br",{}):null]},a))})}return t(A,{children:o})}function Te(){return t("div",{className:"absolute inset-0 flex items-center justify-center",style:{background:"repeating-linear-gradient(45deg, rgba(201,164,97,.05) 0 1px, transparent 1px 14px), linear-gradient(135deg, var(--site-surface-2), var(--site-surface))"},children:i("svg",{width:"34",height:"34",viewBox:"0 0 24 24",fill:"none",stroke:"var(--fg-dim)",strokeWidth:1.4,"aria-hidden":"true",style:{opacity:.4},children:[t("rect",{x:"3",y:"4",width:"18",height:"16",rx:"1.5"}),t("circle",{cx:"8.5",cy:"9.5",r:"1.6"}),t("path",{d:"M21 16l-5-5-4 4-2-2-7 7"})]})})}function Le({sectionNumber:o=h.sectionNumber,heading:n=h.heading,tagline:c=h.tagline,galleryKicker:a=h.galleryKicker,galleryHint:d=h.galleryHint,locations:m=oe,mapTheme:f="auto",imageShape:y,pictureHover:g=ye({},"ContactLocations"),editing:s,nodeId:u,pad:x}){const L=we(),r=ve(void 0,void 0,g),b=r.className?{[be]:""}:{},B=!me({whenUnset:!0}),[P,C]=Y(null),N=e=>`loc-${e}`,R=e=>{C(e),typeof document<"u"&&document.getElementById(e)?.scrollIntoView({behavior:j(),block:"start"}),!s&&typeof window<"u"&&window.history?.replaceState&&window.history.replaceState(null,"",`#${e}`)};X(()=>{if(typeof window>"u")return;const e=window.location.hash.replace(/^#/,"");!e||!document.getElementById(e)||(C(e),requestAnimationFrame(()=>{document.getElementById(e)?.scrollIntoView({behavior:j(),block:"start"})}))},[]);const D=se(re(y)),k=(e,p)=>s&&u?`${e}:${p}`:void 0,I=m.some(e=>E(e)!==void 0),U=m.length>0&&(s||I),F=m.some(e=>z(Number(e?.lat),Number(e?.lng))),O=pe(m,e=>String(e.group??""),e=>String(e.groupName??""));return t(V,{as:"section",id:"studios",...K("scroll-mt-24 border-b border-line py-[100px] max-view-desktop:py-[60px]",x,B?void 0:{background:"var(--section-bg)"}),children:i("div",{className:Z(J,L),children:[t("style",{dangerouslySetInnerHTML:{__html:Se}}),t(Ne,{sheet:I?r.sheet:void 0}),(o||n||c)&&t(te,{num:o,title:n?ie(n,!0):void 0,desc:c?H(c):void 0,spaceBelow:"mb-10"}),U&&i("div",{className:"mb-12",children:[(a||d)&&i("div",{className:"mb-5 flex items-baseline justify-between gap-6 border-b border-line pb-4",children:[a&&t(ne,{text:a,size:12}),d&&t("span",{className:"font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.22em] text-fg-dim",children:H(d)})]}),t("div",{className:"flex flex-col gap-6",children:O.map((e,p)=>{const v=e.items.length===1;return i("div",{children:[e.key&&t("div",{className:"mb-2.5 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.3em] text-accent",children:e.key}),t("div",{className:["grid gap-[2px] border border-line bg-line",$(e.items.length),e.items.length>1?"max-[700px]:grid-cols-2":""].join(" "),children:e.items.map(({item:l,index:w})=>{const S=String(l?.name??""),T=E(l),_=N(w);return i("a",{href:`#${_}`,"aria-label":`Jump to ${S||"location"} map`,onClick:G=>{G.preventDefault(),R(_)},"data-loc-pick":k(w,"image"),...b,className:["group relative block",D,"overflow-hidden bg-bg outline-none focus-visible:ring-2 focus-visible:ring-accent",v?"max-h-[440px]":""].join(" "),children:[t(W,{fill:T?q:null,children:T?t(Q,{src:T,alt:ee(S||"Location"),fill:!0,sizes:v?"100vw":"(max-width: 700px) 50vw, 33vw",className:`object-cover${r.className?` ${r.className}`:""}`,...r.style?{style:r.style}:{}}):t(Te,{})}),t("div",{className:"pointer-events-none absolute inset-0",style:{background:`linear-gradient(180deg, transparent 50%, ${xe(.85)} 100%)`}}),t("figcaption",{className:"absolute inset-x-0 bottom-0 z-[1] flex items-center justify-start gap-2 px-3 py-3 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.22em] text-overlay-fg/85",children:t("span",{children:S})})]},w)})})]},e.key?`g:${e.key}`:`ungrouped:${p}`)})})]}),O.map((e,p)=>i("div",{className:p===0?"":"mt-10",children:[e.key&&t(de,{groupKey:e.key,name:e.name,count:e.items.length}),t("div",{className:["grid gap-[2px] border border-line bg-line",$(e.items.length),e.items.length>1?"max-view-desktop:grid-cols-1":""].join(" "),children:e.items.map(({item:v,index:l})=>t(Ce,{id:N(l),card:v,active:P===N(l),mapTheme:f,mapPick:k(l,"map"),cityPick:k(l,"city"),editing:s},l))})]},e.key?`g:${e.key}`:`ungrouped:${p}`)),F&&i("p",{className:"mt-8 text-right font-mono text-[10px] uppercase tracking-[0.25em] text-fg-dim/50",children:["Location coordinates ©"," ",t("a",{href:"https://www.openstreetmap.org/copyright",...ce,className:"hover:text-accent",children:"OpenStreetMap contributors"})]})]})})}function Ce({id:o,card:n,active:c,mapTheme:a,mapPick:d,cityPick:m,editing:f}){const y=ge(n.phone),g=ae(n.region),s=String(n.state??"").trim()||g.state,u=String(n.country??"").trim()||g.country,x=[s,u].filter(Boolean).join(" · "),r=z(Number(n.lat),Number(n.lng))||!!f,b=fe(String(n.mapsUrl??""),String(n.name??""),s,u);return i("article",{id:o,"data-active":c?"true":void 0,"data-loc-pick":m,className:r?"contact-loc grid min-h-[840px] scroll-mt-[120px] grid-rows-[auto_1fr] bg-bg max-view-desktop:min-h-0":"contact-loc grid scroll-mt-[120px] bg-bg",children:[i("div",{className:r?"flex min-h-[280px] flex-col gap-3 border-b border-line px-7 py-7":"flex flex-col gap-3 px-7 py-7",children:[i("div",{className:"flex items-start justify-between gap-3.5",children:[i("div",{children:[n.name&&t("div",{className:"font-heading3 text-[length:var(--size-headingSmall,30px)] font-medium uppercase leading-none tracking-[-0.02em]",children:n.name}),x&&t("div",{className:"mt-1.5 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.24em] text-accent",children:x})]}),n.timezone&&t("span",{className:"whitespace-nowrap border border-line px-2.5 py-1.5 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.22em] text-fg-dim",children:n.timezone})]}),n.address!=null&&n.address!==""&&t("div",{className:"mt-1.5 font-display text-[length:var(--size-body,14px)] leading-[1.5] text-fg-dim",children:t(M,{value:n.address})}),n.phone&&t("div",{children:t("a",{href:y,className:"font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.18em] text-fg hover:text-accent",children:n.phone})}),n.hours!=null&&n.hours!==""&&t("div",{className:"font-mono text-[length:var(--size-label,12px)] uppercase leading-[1.7] tracking-[0.18em] text-fg-dim",children:t(M,{value:n.hours})}),!r&&b&&t("div",{children:t(he,{href:b})})]}),r&&t(ue,{name:String(n.name??""),state:s,country:u,lat:Number(n.lat),lng:Number(n.lng),mapsUrl:String(n.mapsUrl??""),mapTheme:a,pick:d,editing:f})]})}export{Le as default};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const CONTENTS_CURRENT_ATTR = "data-current";
|
|
2
|
+
export declare function currentAnchorOf(tops: readonly {
|
|
3
|
+
anchor: string;
|
|
4
|
+
top: number;
|
|
5
|
+
}[], line: number, atEnd?: boolean): string | null;
|
|
6
|
+
export declare function markCurrentRow(list: Element, line: number, atEnd?: boolean): void;
|
|
7
|
+
export default function ContentsCurrentMark(): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{jsx as f}from"react/jsx-runtime";import{useEffect as d,useRef as m}from"react";const a="data-current",w=1/3,p=2;function E(t,c,r=!1){if(r&&t.length)return t[t.length-1].anchor;let n=null;for(const e of t)e.top<=c&&(!n||e.top>n.top)&&(n=e);return n?.anchor??null}function h(t,c,r=!1){const n=Array.from(t.querySelectorAll("a[href^='#']")),e=o=>{try{return decodeURIComponent((o.getAttribute("href")??"").slice(1))}catch{return""}},s=n.flatMap(o=>{const u=e(o),l=u?t.ownerDocument.getElementById(u):null;return l?[{anchor:u,top:l.getBoundingClientRect().top}]:[]}),i=E(s,c,r);for(const o of n)i!==null&&e(o)===i?(o.setAttribute(a,""),o.setAttribute("aria-current","location")):(o.removeAttribute(a),o.removeAttribute("aria-current"))}function A(){const t=m(null);return d(()=>{const c=t.current?.parentElement;if(!c)return;let r=0;const n=()=>{r=0;const s=document.documentElement,i=window.scrollY>0&&window.scrollY+window.innerHeight>=s.scrollHeight-p;h(c,window.innerHeight*w,i)},e=()=>{r||(r=requestAnimationFrame(n))};return n(),window.addEventListener("scroll",e,{passive:!0}),window.addEventListener("resize",e),()=>{window.removeEventListener("scroll",e),window.removeEventListener("resize",e),r&&cancelAnimationFrame(r)}},[]),f("span",{ref:t,hidden:!0})}export{a as CONTENTS_CURRENT_ATTR,E as currentAnchorOf,A as default,h as markCurrentRow};
|
|
@@ -5,7 +5,7 @@ export interface ContentsEntry {
|
|
|
5
5
|
anchor: string;
|
|
6
6
|
}
|
|
7
7
|
export declare const CONTENTS_STICKY_TOP = 120;
|
|
8
|
-
export default function ContentsList({ title, entries, stickyTop, sticky, editing, partStyles, numberForm, takesViewHide, }: {
|
|
8
|
+
export default function ContentsList({ title, entries, stickyTop, sticky, editing, partStyles, numberForm, takesViewHide, markCurrent, }: {
|
|
9
9
|
title?: string;
|
|
10
10
|
entries: readonly ContentsEntry[];
|
|
11
11
|
stickyTop: number;
|
|
@@ -14,4 +14,5 @@ export default function ContentsList({ title, entries, stickyTop, sticky, editin
|
|
|
14
14
|
partStyles?: PartStyles;
|
|
15
15
|
numberForm?: ListNumberForm;
|
|
16
16
|
takesViewHide?: boolean;
|
|
17
|
+
markCurrent?: boolean;
|
|
17
18
|
}): import("react").ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as r,jsxs as x}from"react/jsx-runtime";import{renderGold as d}from"./goldPhrases.js";import b from"./ContentsCurrentMark.js";import{NO_HIDE as E,useTakeViewHide as S,withViewHide as g}from"./ViewHideRoot.js";import{LIST_NUMBER_FORM_DEFAULT as O,listNumberIn as y}from"../../format/lib/content/list-number.js";import{STICKY_ASIDE_TOP as I}from"../../format/lib/content/sticky-aside.js";import{SIZE_STEP_OF_ROLE as R}from"../../format/lib/fonts.js";import{CONTENTS_REGIONS as $}from"../../format/lib/sections/contents-text-regions.js";import{TEXT_REGION_ATTR as j,regionStyle as C,textRegionPartKey as w}from"../../format/lib/sections/text-regions.js";const u=(e,t)=>e?{[j]:t}:{},T=(e,t)=>C(e?.[w(t)]?.role,$[t],R),M=I;function L({title:e,entries:t,stickyTop:_,sticky:l=!0,editing:s=!1,partStyles:c,numberForm:m=O,takesViewHide:h=!1,markCurrent:f=!1}){const n=m==="plain",N=S(),o=h?N:E;return o.scope(x("aside",{className:g(`${l?"sticky ":""}flex flex-col self-start max-[900px]:static`,o.className),style:l?{top:_}:void 0,...o.attrs,children:[e&&r("h4",{className:"mb-[18px] font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:d(e)}),t.map((a,i)=>{const p=r("span",{...u(s,"number"),style:T(c,"number"),className:"text-accent",children:y(m,i)});return x("a",{href:`#${a.anchor}`,className:`flex items-center ${n?"justify-start gap-1":"justify-between gap-3"} border-b border-line py-2.5 font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.18em] text-fg-dim transition-colors hover:text-fg${i===0?" border-t":""}${f?" data-[current]:text-fg":""}`,children:[n&&p,r("span",{...u(s,"entry"),style:T(c,"entry"),children:d(a.label||"Section")}),!n&&p]},`${i}-${a.anchor}`)}),f&&!s&&r(b,{})]}))}export{M as CONTENTS_STICKY_TOP,L as default};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { RootPadAttrs } from "../lib/content/section-padding.js";
|
|
1
2
|
export interface CountdownProps {
|
|
2
3
|
title?: string;
|
|
3
4
|
zeroText?: string;
|
|
@@ -5,6 +6,7 @@ export interface CountdownProps {
|
|
|
5
6
|
showUnits?: boolean;
|
|
6
7
|
editing?: boolean;
|
|
7
8
|
omitHead?: boolean;
|
|
9
|
+
pad?: RootPadAttrs | null;
|
|
8
10
|
}
|
|
9
11
|
export declare function secondsLeft(endMs: number, nowMs: number): number;
|
|
10
|
-
export default function Countdown({ title, zeroText, endsAt, showUnits, editing, omitHead, }?: CountdownProps): import("react").JSX.Element | null;
|
|
12
|
+
export default function Countdown({ title, zeroText, endsAt, showUnits, editing, omitHead, pad: rootPad, }?: CountdownProps): import("react").JSX.Element | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as e,jsxs as i,Fragment as
|
|
1
|
+
"use client";import{jsx as e,jsxs as i,Fragment as D}from"react/jsx-runtime";import{HideTaker as I}from"./ViewHideRoot.js";import{useEffect as L,useState as u}from"react";import h from"./PartStyledKind.js";import{renderGold as $,renderHeadline as z}from"./goldPhrases.js";import{PART_KIND_ATTR as g}from"../lib/document/text-parts.js";import{TEXT_KIND_NAME as v,TEXT_KIND_VALUE as w}from"../../format/lib/sections/section-text-kinds.js";import{withSideOnce as A}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as j}from"./SideSpaceOnce.js";import{withRootPad as H}from"../lib/content/section-own-pads.js";const m={headingSmall:"text-[length:min(var(--size-headingSmall,32px),var(--sf-heading-max,9999px))]",labelSmall:"text-[length:var(--size-label,11px)]",labelLarge:"text-[length:var(--size-label,12px)]"},K=24*3600*1e3,P=[{key:"hours",label:"Hours"},{key:"minutes",label:"Minutes"},{key:"seconds",label:"Seconds"}];function F(t,n){return Math.max(0,Math.ceil((t-n)/1e3))}function O(t){const n=Date.parse((t??"").trim());return Number.isFinite(n)?n:null}const R=t=>String(t).padStart(2,"0");function X({title:t,zeroText:n,endsAt:N,showUnits:S=!0,editing:o=!1,omitHead:b=!1,pad:k}={}){const T=j(),_=O(N),[E]=u(()=>Date.now()+K),l=_??(o?E:null),[y,d]=u(()=>Date.now());if(L(()=>{if(l===null)return;d(Date.now());const r=window.setInterval(()=>d(Date.now()),1e3);return()=>window.clearInterval(r)},[l]),l===null)return null;const a=F(l,y),s=[Math.floor(a/3600),Math.floor(a%3600/60),a%60],p=(t??"").trim(),c=(n??"").trim(),M=`${s[0]} hours, ${s[1]} minutes and ${s[2]} seconds left`,f=a===0?c&&e("p",{className:`font-heading3 ${m.headingSmall} font-medium leading-tight text-fg`,children:z(c,!1)}):i(D,{children:[e("span",{className:"sr-only",children:M}),e("div",{"aria-hidden":!0,className:"flex items-start gap-[clamp(8px,2vw,24px)]",children:P.map((r,x)=>i("div",{className:"contents",children:[x>0&&e("span",{className:"font-mono text-[length:clamp(32px,7vw,80px)] leading-none text-accent",children:":"}),i("div",{className:"flex min-w-0 flex-col items-center gap-2",children:[e(h,{kind:w,children:e("span",{"data-countdown-unit":r.key,...o?{[g]:w}:{},suppressHydrationWarning:!0,className:"font-mono text-[length:clamp(40px,8vw,96px)] font-medium leading-none tabular-nums text-fg",children:R(s[x])})}),S&&e(h,{kind:v,children:e("span",{...o?{[g]:v}:{},className:`font-mono ${m.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:r.label})})]})]},r.key))})]});return b?a===0&&!c?null:e("div",{className:"flex flex-col items-center text-center",role:"timer","aria-live":"off",children:f}):e(I,{as:"section",className:"relative z-[2] bg-bg",role:"timer","aria-live":"off",children:i("div",{...H(A("mx-auto flex max-w-[var(--sf-site-width,1600px)] flex-col items-center gap-4 px-[var(--sf-site-gutter,40px)] py-12 text-center max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",T),k),children:[p&&e("p",{className:`font-mono ${m.labelLarge} uppercase tracking-[0.2em] text-fg-dim`,children:$(p)}),f]})})}export{X as default,F as secondsLeft};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { RootPadAttrs } from "../lib/content/section-padding.js";
|
|
1
2
|
export interface DocBodySection {
|
|
2
3
|
label: string;
|
|
3
4
|
heading: string;
|
|
@@ -17,6 +18,7 @@ export interface DocBodyProps {
|
|
|
17
18
|
tocTitle?: string;
|
|
18
19
|
sections?: DocBodySection[];
|
|
19
20
|
editing?: boolean;
|
|
21
|
+
pad?: RootPadAttrs | null;
|
|
20
22
|
stickyTop?: number;
|
|
21
23
|
}
|
|
22
24
|
type DocBlock = {
|
|
@@ -27,5 +29,5 @@ type DocBlock = {
|
|
|
27
29
|
items: string[];
|
|
28
30
|
};
|
|
29
31
|
export declare function parseBlocks(body: string): DocBlock[];
|
|
30
|
-
export default function DocBody({ tocTitle, sections, editing, stickyTop, }: DocBodyProps): import("react").JSX.Element | null;
|
|
32
|
+
export default function DocBody({ tocTitle, sections, editing, stickyTop, pad, }: DocBodyProps): import("react").JSX.Element | null;
|
|
31
33
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{jsx as
|
|
2
|
-
`).split(/\n[ \t]*\n/))
|
|
3
|
-
`).map(
|
|
4
|
-
${
|
|
1
|
+
import{jsx as i,jsxs as h}from"react/jsx-runtime";import{slugify as v}from"efficient-shell/format";import{HideTaker as w}from"./ViewHideRoot.js";import{listNumber as S}from"../../format/lib/content/list-number.js";import{renderGold as m}from"./goldPhrases.js";import{storefrontLines as N}from"../../format/lib/markup.js";import{say as p}from"../../format/lib/editor-words.js";import T,{CONTENTS_STICKY_TOP as k}from"./ContentsList.js";import{withSideOnce as _}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as z}from"./SideSpaceOnce.js";import{withRootPad as O}from"../lib/content/section-own-pads.js";import{uniqueIds as I}from"../../format/lib/content/unique-ids.js";function A(t,e){return v(t)||`section-${e+1}`}const u=t=>typeof t=="string"&&t.trim()!=="";function B(t){return(t??[]).filter(e=>u(e.heading)||u(e.label)||u(e.body))}function C(t){return I(t.map((e,a)=>A(e.label||e.heading||"",a)))}function L(t){const e=[];for(const a of t.replace(/\r\n?/g,`
|
|
2
|
+
`).split(/\n[ \t]*\n/))a.split(`
|
|
3
|
+
`).map(n=>n.replace(/\s+$/,"")).filter(n=>n.trim()!=="").forEach((n,d)=>{const s=N(n)[0].bullet,o=e.at(-1),l=d===0||!o||o.type==="ul"!==s;if(s){const r=n.slice(2);!l&&o?.type==="ul"?o.items.push(r):e.push({type:"ul",items:[r]})}else!l&&o?.type==="p"?o.text+=`
|
|
4
|
+
${n}`:e.push({type:"p",text:n})});return e}const Y=()=>[{label:p("First section"),heading:p("Your *first* section."),body:p(`Write the opening paragraph here.
|
|
5
5
|
|
|
6
6
|
- Start a line with a dash for a bullet.
|
|
7
|
-
- Add as many as you like.`)},{label:p("Second section"),heading:p("Your *second* section."),body:p("Leave a blank line between paragraphs to start a new one.")}],
|
|
7
|
+
- Add as many as you like.`)},{label:p("Second section"),heading:p("Your *second* section."),body:p("Leave a blank line between paragraphs to start a new one.")}],j=k;function E({tocTitle:t,sections:e,editing:a=!1,stickyTop:f=j,pad:n}){const d=z(),s=B(e);if(s.length===0&&!a)return null;const o=s.length===0&&a?Y():s,l=C(o);return i(w,{as:"section",className:"relative z-[2] bg-bg",children:h("div",{...O(_("mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-[240px_1fr] items-start gap-20 border-b border-line px-[var(--sf-site-gutter,40px)] py-20 max-[900px]:grid-cols-1 max-[900px]:gap-10 max-[900px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[900px]:py-[60px]",d),n),children:[i(T,{title:t,entries:o.map((r,c)=>({label:r.label||"Section",anchor:l[c]})),stickyTop:f}),i("div",{className:"flex flex-col gap-16",children:o.map((r,c)=>h("article",{id:l[c],className:"flex flex-col gap-[18px]",style:{scrollMarginTop:f},children:[h("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:[S(c)," · ",m(r.label||"Section")]}),r.heading&&i("h2",{className:"mb-2 border-b border-line pb-[18px] font-heading2 text-[length:min(var(--size-headingMedium,clamp(28px,3.5vw,44px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[1.04] tracking-[-0.025em]",children:m(r.heading)}),L(r.body??"").map((x,g)=>x.type==="ul"?i("ul",{className:"flex max-w-[680px] list-none flex-col gap-2.5 pl-0",children:x.items.map((b,y)=>i("li",{className:"relative pl-6 font-serif text-[length:var(--size-body,17px)] leading-[1.65] text-fg-dim before:absolute before:-top-0.5 before:left-1.5 before:text-[length:var(--size-body,24px)] before:leading-none before:text-accent before:content-['·']",children:m(b)},y))},g):i("p",{className:"max-w-[680px] font-serif text-[length:var(--size-body,17px)] leading-[1.7] text-fg-dim",children:m(x.text)},g))]},l[c]))})]})})}export{E as default,L as parseBlocks,A as sectionAnchorId,C as sectionAnchorIds,B as shownSections};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { RootPadAttrs } from "../lib/content/section-padding.js";
|
|
1
2
|
export interface DocMastheadMeta {
|
|
2
3
|
label: string;
|
|
3
4
|
value: string;
|
|
@@ -9,5 +10,6 @@ export interface DocMastheadProps {
|
|
|
9
10
|
deck?: string;
|
|
10
11
|
meta?: DocMastheadMeta[];
|
|
11
12
|
editing?: boolean;
|
|
13
|
+
pad?: RootPadAttrs | null;
|
|
12
14
|
}
|
|
13
|
-
export default function DocMasthead({ eyebrow, title, deck, meta, editing, titleLevel, }: DocMastheadProps): import("react").JSX.Element | null;
|
|
15
|
+
export default function DocMasthead({ eyebrow, title, deck, meta, editing, titleLevel, pad, }: DocMastheadProps): import("react").JSX.Element | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as t,jsxs as s}from"react/jsx-runtime";import f from"./SectionEyebrow.js";import{HideTaker as b}from"./ViewHideRoot.js";import{renderGold as o,renderHeadline as h}from"./goldPhrases.js";import{pageTitleTag as u}from"../../format/lib/document/one-h1.js";import{withSideOnce as v}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as N}from"./SideSpaceOnce.js";import{withRootPad as T}from"../lib/content/section-own-pads.js";const p={bodyUpTo900:"max-[900px]:text-[length:var(--size-body,19px)]",body:"text-[length:var(--size-body,22px)]",label:"text-[length:var(--size-label,13px)]"};function w({level:a,className:r,children:i}){const l=u(a);return t(l,{className:r,children:i})}function y({eyebrow:a,title:r,deck:i,meta:l,editing:x=!1,titleLevel:m,pad:d}){const c=N(),n=(l??[]).filter(e=>(e.label??"").trim()!==""||(e.value??"").trim()!=="");return!!!(a||r||i||n.length>0)&&!x?null:t(b,{as:"section",className:"relative z-[2] bg-bg",children:s("div",{...T(v("mx-auto max-w-[var(--sf-site-width,1600px)] border-b border-line px-[var(--sf-site-gutter,40px)] pt-[100px] pb-[60px] max-[900px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[900px]:pt-[60px] max-[900px]:pb-10",c),d),children:[s("div",{className:"grid grid-cols-[auto_1fr_auto] items-end gap-10 pb-8 max-[900px]:grid-cols-1 max-[900px]:gap-4",children:[a&&t(f,{text:a,className:"pb-3",classNameAfter:"max-[900px]:pb-0"}),r&&t(w,{level:m,className:"font-display text-[length:min(var(--size-headingLarge,clamp(56px,8vw,128px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[0.88] tracking-[-0.04em]",children:h(r,!0)}),n.length>0&&t("div",{className:`pb-3 text-right font-mono ${p.label} uppercase leading-[1.8] tracking-[0.22em] text-fg-dim max-[900px]:pb-0 max-[900px]:text-left`,children:n.map((e,g)=>s("div",{children:[e.label&&t("strong",{className:"font-normal text-fg",children:o(e.label)}),e.label&&e.value?" ":null,e.value?o(e.value):null]},g))})]}),i&&t("p",{className:`max-w-[760px] border-t border-line pt-8 font-serif ${p.body} italic leading-[1.5] text-fg-dim ${p.bodyUpTo900}`,children:o(i,!0)})]})})}export{y as default};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { RootPadAttrs } from "../lib/content/section-padding.js";
|
|
1
2
|
export interface DocMetaCard {
|
|
2
3
|
label: string;
|
|
3
4
|
value: string;
|
|
@@ -6,5 +7,6 @@ export interface DocMetaCard {
|
|
|
6
7
|
export interface DocMetaCardsProps {
|
|
7
8
|
cards?: DocMetaCard[];
|
|
8
9
|
editing?: boolean;
|
|
10
|
+
pad?: RootPadAttrs | null;
|
|
9
11
|
}
|
|
10
|
-
export default function DocMetaCards({ cards, editing }: DocMetaCardsProps): import("react").JSX.Element | null;
|
|
12
|
+
export default function DocMetaCards({ cards, editing, pad }: DocMetaCardsProps): import("react").JSX.Element | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as r,jsxs as n}from"react/jsx-runtime";import p from"./SectionEyebrow.js";import{HideTaker as x}from"./ViewHideRoot.js";import{renderGold as a}from"./goldPhrases.js";import{withSideOnce as f}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as c}from"./SideSpaceOnce.js";import{withRootPad as g}from"../lib/content/section-own-pads.js";const i={body:"text-[length:var(--size-body,14px)]",headingSmall:"text-[length:var(--size-headingSmall,20px)]"};function b({cards:s,editing:l=!1,pad:o}){const d=c(),t=(s??[]).filter(e=>(e.label??"").trim()!==""||(e.value??"").trim()!==""||(e.desc??"").trim()!=="");return t.length===0&&!l?null:r(x,{as:"section",className:"relative z-[2] bg-bg",children:r("div",{...g(f("mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-3 gap-10 border-b border-line px-[var(--sf-site-gutter,40px)] py-[60px] max-[900px]:grid-cols-1 max-[900px]:gap-4 max-[900px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[900px]:py-10",d),o),children:t.map((e,m)=>n("div",{className:"flex flex-col gap-2 border border-line bg-surface p-6",children:[e.label&&r(p,{text:e.label,size:12}),e.value&&r("span",{className:`font-heading3 ${i.headingSmall} font-medium tracking-[-0.015em] text-fg`,children:a(e.value)}),e.desc&&r("span",{className:`mt-1.5 font-serif ${i.body} italic leading-[1.5] text-fg-dim`,children:a(e.desc)})]},m))})})}export{b as default};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Ref } from "react";
|
|
2
2
|
import type { PartStyles } from "../lib/document/part-styles.js";
|
|
3
|
+
import type { RootPadAttrs } from "../lib/content/section-padding.js";
|
|
3
4
|
export interface FAQItem {
|
|
4
5
|
question?: string;
|
|
5
6
|
answer?: string;
|
|
@@ -13,13 +14,16 @@ export interface FAQProps {
|
|
|
13
14
|
};
|
|
14
15
|
items?: FAQItem[];
|
|
15
16
|
defaultOpen?: boolean;
|
|
17
|
+
openFromLink?: boolean;
|
|
18
|
+
anchor?: unknown;
|
|
16
19
|
editing?: boolean;
|
|
17
20
|
nodeId?: string;
|
|
18
21
|
partStyles?: PartStyles;
|
|
19
22
|
omitHead?: boolean;
|
|
20
23
|
listKey?: string;
|
|
21
24
|
rootRef?: Ref<HTMLElement>;
|
|
25
|
+
pad?: RootPadAttrs | null;
|
|
22
26
|
}
|
|
23
27
|
export declare function faqRows(items: readonly FAQItem[] | undefined): FAQItem[];
|
|
24
28
|
export declare function faqPageJsonLd(rows: readonly FAQItem[]): string | null;
|
|
25
|
-
export default function FAQ({ num, title, link, items, defaultOpen, editing, omitHead, nodeId, partStyles, listKey, rootRef, }: FAQProps): import("react").JSX.Element | null;
|
|
29
|
+
export default function FAQ({ num, title, link, items, defaultOpen, openFromLink, anchor, editing, omitHead, nodeId, partStyles, listKey, rootRef, pad, }: FAQProps): import("react").JSX.Element | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Fragment as
|
|
1
|
+
import{Fragment as L,jsx as e,jsxs as l}from"react/jsx-runtime";import{HideTaker as I}from"./ViewHideRoot.js";import M,{ACCORDION_MARK_SHEET as Q}from"./AccordionMark.js";import{stripMarkup as W}from"../../format/lib/markup.js";import{renderGold as c,renderHeadline as j}from"./goldPhrases.js";import C from"./SectionHeader.js";import{SectionTextParts as P}from"../lib/document/editing-bridges.js";import u from"./TextRegionRun.js";import{TEXT_REGION_ATTR as z,regionStyle as H,textRegionPartKey as G}from"../../format/lib/sections/text-regions.js";import{FAQ_REGIONS as U}from"../../format/lib/sections/faq-text-regions.js";import{SIZE_STEP_OF_ROLE as k}from"../../format/lib/fonts.js";import{say as d}from"../../format/lib/editor-words.js";import{SITE_COLUMN as B,withSideOnce as J}from"../../format/lib/content/page-width.js";import{listNumber as K}from"../../format/lib/content/list-number.js";import{LIST_KEY_ATTR as X}from"../../format/lib/content/list-query.js";import{QA_ROW_ANSWER_CLASS as Y,QA_ROW_NUMBER_CLASS as D,QA_ROW_SUMMARY_CLASS as Z}from"../../format/lib/content/accordion-row-style.js";import{useSideSpaceOnce as V}from"./SideSpaceOnce.js";import{withRootPad as $}from"../lib/content/section-own-pads.js";import{faqRowAnchors as ee}from"../../format/lib/content/faq-row-anchor.js";import re from"./OpenFromLink.js";function ne(r){return(r??[]).filter(n=>(n.question??"").trim()!=="")}function te(r){const n=r.filter(t=>(t.answer??"").trim()!=="").map(t=>({"@type":"Question",name:S(t.question??""),acceptedAnswer:{"@type":"Answer",text:S(t.answer??"")}}));return n.length>0?JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:n}).replace(/</g,"\\u003c"):null}function S(r){return W(r).trim()}function h(r,n){return r?{[z]:n}:{}}function x(r,n){const t=r?.[G(n)]?.role;return H(t,U[n],k)}function oe({editing:r,nodeId:n,partStyles:t,children:a}){return!r||!n?e(L,{children:a}):e(P,{nodeId:n,sectionType:"FAQ",partStyles:t,children:a})}const ie="relative z-[2] bg-bg py-[120px] max-view-wide:py-[70px]",se="relative z-[2] bg-bg pt-0 pb-[120px] max-view-wide:pt-0 max-view-wide:pb-[70px]";function ae({num:r,title:n,link:t,items:a,defaultOpen:y=!0,openFromLink:N=!1,anchor:E,editing:o=!1,omitHead:O=!1,nodeId:b,partStyles:i,listKey:w,rootRef:q,pad:T}){const v=V(),p=ne(a),F=o&&p.length===0;if(p.length===0&&!o)return null;const f=F?[{question:d("Add your first question"),answer:d("Write the answer here.")},{question:d("Add another question"),answer:d("Write the answer here.")}]:p,_=o?null:te(f),g=N?ee(f.map(s=>s.question),E):null,A=n?j(n,!0):void 0,R=O||!r&&!A&&!t;return l(I,{as:"section",ref:q,...$(R?se:ie,T),...w?{[X]:w}:{},children:[e("style",{children:Q}),_&&e("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:_}}),l("div",{className:J(B,v),children:[R?null:e(C,{num:r!==void 0?c(r):void 0,title:A,link:t?{text:c(t.text),href:t.href}:void 0,accent:!0}),e(oe,{editing:o,nodeId:b,partStyles:i,children:e("div",{children:f.map((s,m)=>l("details",{id:g?.[m]||void 0,open:m===0&&y,className:"border-b border-line",children:[l("summary",{className:Z,children:[e("span",{className:D,...h(o,"number"),style:x(i,"number"),children:e(u,{region:"number",partStyles:i,children:K(m)})}),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)]",...h(o,"question"),style:x(i,"question"),children:e(u,{region:"question",partStyles:i,children:c(s.question??"")})}),e(M,{})]}),s.answer&&e("div",{className:Y,children:e("p",{className:"max-w-[760px] text-[length:var(--size-body,15px)] leading-[1.7] text-fg-dim",...h(o,"answer"),style:x(i,"answer"),children:e(u,{region:"answer",partStyles:i,children:c(s.answer)})})})]},m))})})]}),g&&!o&&e(re,{})]})}export{ae as default,te as faqPageJsonLd,ne as faqRows};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { RootPadAttrs } from "../lib/content/section-padding.js";
|
|
1
2
|
export interface FeaturedCoverProps {
|
|
2
3
|
image?: string;
|
|
3
4
|
badge?: string;
|
|
@@ -11,5 +12,6 @@ export interface FeaturedCoverProps {
|
|
|
11
12
|
ctaText?: string;
|
|
12
13
|
ctaHref?: string;
|
|
13
14
|
omitHead?: boolean;
|
|
15
|
+
pad?: RootPadAttrs | null;
|
|
14
16
|
}
|
|
15
|
-
export default function FeaturedCover({ image, badge, imageDate, category, readLabel, date, dateAt, title, dek, ctaText, ctaHref, omitHead, }: FeaturedCoverProps): import("react").JSX.Element;
|
|
17
|
+
export default function FeaturedCover({ image, badge, imageDate, category, readLabel, date, dateAt, title, dek, ctaText, ctaHref, omitHead, pad, }: FeaturedCoverProps): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as n}from"react/jsx-runtime";import{EDITORIAL_COLUMN as
|
|
1
|
+
import{jsx as e,jsxs as n}from"react/jsx-runtime";import{EDITORIAL_COLUMN as S,withSideOnce as z}from"../../format/lib/content/page-width.js";import{HideTaker as $}from"./ViewHideRoot.js";import{Fragment as j}from"react";import{SiteLink as L}from"../lib/site-runtime.js";import b from"./PostDate.js";import{stripMarkup as O}from"../../format/lib/markup.js";import P from"./Placeholder.js";import{renderGold as r,renderHeadline as _,splitParagraphs as T}from"./goldPhrases.js";import{scrim as u}from"../../format/lib/content/scrim.js";import{useSideSpaceOnce as C}from"./SideSpaceOnce.js";import{withRootPad as E}from"../lib/content/section-own-pads.js";const t={body:"text-[length:var(--size-body,20px)]",labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"};function I({image:v,badge:o,imageDate:c,category:p,readLabel:m,date:d,dateAt:a,title:l,dek:f,ctaText:x,ctaHref:w,omitHead:k=!1,pad:N}){const y=C(),h=[p?e("span",{className:"text-accent",children:r(p)}):null,m?e("span",{children:r(m)}):null,a?e("span",{children:e(b,{at:a})}):d?e("span",{children:r(d)}):null].filter(Boolean),g=n("article",{className:"sf-card relative grid grid-cols-[1.3fr_1fr] border border-line bg-[var(--card-bg)] max-view-desktop:grid-cols-1",children:[n("div",{className:"relative aspect-[5/4] overflow-hidden border-r border-line bg-surface-2 max-view-desktop:border-r-0 max-view-desktop:border-b",children:[e(P,{label:"featured-cover",src:v||void 0,alt:O(l||"Cover"),sizes:"(max-width: 1100px) 100vw, 56vw"}),e("div",{className:"pointer-events-none absolute inset-0 z-[1]",style:{background:`linear-gradient(180deg, ${u(.45)} 0%, transparent 30%, transparent 70%, ${u(.55)} 100%)`}}),o&&e("span",{className:`absolute left-6 top-6 z-[2] bg-accent px-3 py-2 font-mono ${t.labelSmall} uppercase tracking-[0.3em] text-bg`,children:r(o)}),(a||c)&&e("span",{className:`absolute right-6 bottom-6 z-[2] font-mono ${t.labelSmall} uppercase tracking-[0.24em] text-overlay-fg`,children:a?e(b,{at:a}):r(c)})]}),n("div",{className:"flex flex-col justify-between gap-6 px-12 py-14 max-view-desktop:px-7 max-view-desktop:py-9",children:[h.length>0&&e("div",{className:`flex items-center gap-4 font-mono ${t.labelSmall} uppercase tracking-[0.28em] text-fg-dim`,children:h.map((s,i)=>n(j,{children:[i>0&&e("span",{className:"opacity-40",children:"·"}),s]},i))}),l&&e("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(34px,3.5vw,58px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em]",children:_(l,!0)}),f&&T(f).map((s,i)=>e("p",{className:`max-w-[520px] font-serif ${t.body} italic leading-[1.5] text-fg-dim`,children:r(s,!0)},i)),x&&e("div",{children:n(L,{newTab:"auto",href:w||"#",className:`group inline-flex items-center gap-3.5 py-3.5 font-mono ${t.labelLarge} uppercase tracking-[0.3em] text-accent`,children:[r(x)," ",e("span",{className:"transition-transform group-hover:translate-x-[6px]",children:"→"})]})})]})]});return k?g:e($,{as:"section",...E("border-b border-line py-20 max-view-desktop:py-[60px]",N),children:e("div",{className:z(S,y),children:g})})}export{I as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Fragment as A,jsx as e,jsxs as L}from"react/jsx-runtime";import{useContext as xt,useId as _t,useState as vt}from"react";import Rt from"./BoxTabs.js";import{AccordionRowStyleContext as oo,BoxTabPaneContext as so,useAccordionRowStyle as Ot,useBoxPaneKind as Pt,useFirstCopyOpens as At,useIsTabPane as Lt}from"./BoxTabPaneContext.js";import $t,{ACCORDION_COUNTER_RESET as yt}from"./BoxAccordionRow.js";import{ACCORDION_MARK_SHEET as Nt}from"./AccordionMark.js";import{EDGE_LINE_ATTRS as Et}from"../../format/lib/content/view-lines.js";import{accordionRowStyleOf as kt}from"../../format/lib/content/accordion-row-style.js";import{boxPhoneCell as It,boxPhoneOrder as Bt}from"../../format/lib/content/box-phone-place.js";import{CellFillContext as Es,InBoxContext as ks,useCellOfStretchedRow as gt,useFillsCell as Tt}from"./InBoxContext.js";import Ft,{InsideSiteColumn as Is,useInsideSiteGutter as Ht,useSectionRoot as Dt}from"./SiteGutterFrame.js";import{BoxSurfaceProvider as Vt}from"./BoxSurfaceContext.js";import Mt from"./PictureWash.js";import{BoxCellContext as Bs,NoCellBound as Wt}from"./BoxCellContext.js";import{boxCellFractions as Gt}from"../lib/content/box-cell-bound.js";import{boundOf as Xt}from"../../format/lib/content/cell-picture-sizes.js";import{useInSiteHeader as jt}from"./PhoneMenuTools.js";import{useCardRow as Kt}from"./CardRowContext.js";import{cardLineBetween as no,framesItsCards as Ut}from"../../format/lib/content/card-place.js";import{rowLinkText as zt}from"../../format/lib/content/card-template.js";import{HandedMirrorContext as Yt,MirrorContext as Jt,RowHandContext as gs,boxPlace as Zt,useHandedMirrorAbove as qt,useHandedRows as Qt,useMirroredCopy as er,useUnderCardBox as or}from"./MirrorContext.js";import{boxChildrenHand as sr,isMirroredCopy as nr,mirrorCardsActs as Ts,mirrorCardsOf as tr,mirroredBoxClass as rr,MIRROR_ROW_CLASS as lr,ownsCard as ir}from"../../format/lib/content/mirror-cards.js";import{FRAME_BASE as to,frameGutterOf as cr}from"./BlockFrame.js";import{BOX_SIDE_SPACE_SITE as ar,boxSideSpaceOf as dr}from"../../format/lib/content/box-side-space.js";import{containerGapProps as Fs}from"../../format/lib/content/container-gap.js";import{boxLayoutClasses as ur,boxAlignViewClasses as mr,boxBlockSpacingClass as fr,boxBlockSpacingViewClasses as hr,boxJustifyViewClasses as Cr,boxWrapTabletClass as br,boxFitContentClass as Sr,boxAccordionColumnsClass as Hs,boxRowColumnsClass as wr,boxRowTabletColumnsClass as pr,boxRowTabletShareClass as xr,boxPhoneCellsShareLine as _r,boxPhoneRowClasses as ce,boxPhoneRowFits as Ds,boxShareClasses as $,boxShareVars as vr,boxWrapClass as Rr,BOX_GAP_ONLY_CLASS as Or}from"../../format/lib/content/box-layout.js";import{boxSeparatorClasses as Pr,boxSeparatorSeamClass as Ar,boxSeparatorStyle as Lr,isStripBox as $r}from"../../format/lib/content/box-separator.js";import{DEFAULT_LOOP_DELAY as yr,DEFAULT_LOOP_DIRECTION as Nr,DEFAULT_LOOP_SECONDS as Er,isVerticalLoop as kr}from"../../format/lib/animation/index.js";import{LoopTrack as Ir}from"../lib/animation/LoopTrack.js";import{BOX_CARD_PAD as y,BOX_OWNS_SIDES_CLASS as Br,boxDarkenStyle as Vs,boxPaintOf as gr,boxFillFadeStyle as Tr,boxFillViews as Fr,boxPlacementClasses as Hr,boxCardProps as Dr,boxIsCard as Ms,boxRowPicture as Vr,boxSwatchFill as Mr,boxWashViews as Wr,CARD_NO_LIFT_CLASS as Gr,CARD_SHADOW_CLASS as Xr,isBackgroundBox as _e}from"../../format/lib/content/box-background.js";import{BOX_ROW_IMAGE_PROP as x}from"../../format/lib/content/box-card-rule.js";import{boxShadowAttrs as jr,boxShadowOnAnyView as Kr,boxShadowViewAttrs as Ur}from"../../format/lib/content/box-shadow.js";import{boxRunsEdgeToEdge as zr,drawsSiteGutter as Yr}from"../../format/lib/content/site-gutter.js";import{boxShapeClass as Jr,boxShapeClasses as Zr,boxShapeStyle as qr}from"../../format/lib/content/box-shape.js";import{boxAngleStyle as Qr}from"../../format/lib/content/box-angle.js";import{BOX_JUMP_ATTR as el,BOX_LINK_ATTR as Ws,BOX_LINK_CLASS as Gs,BOX_LINKED_CLASS as ol,boxJumpBlocksClass as sl,boxJumpCss as nl,boxJumpSlug as tl,boxLinkOf as rl,siteLinkDraws as ll}from"../../format/lib/content/box-link.js";import{SiteLink as il}from"../lib/site-runtime.js";import{sectionBorderStyle as Xs}from"../../format/lib/content/borders.js";import{finiteNumber as ve}from"../../format/lib/finite-number.js";import{padDefaultIn as N,padSideValue as Re,sectionPadAttrs as cl}from"../lib/content/section-padding.js";import{SECTION_FILL_CLASS as Oe}from"../../format/lib/content/section-min-height.js";import{ON_MEDIA_INK_STYLE as al,rowFillInkStyle as dl}from"../../format/lib/content/ink.js";import{useThemeLightInk as ul}from"./ThemeLightInkContext.js";import{sizedBackground as ro}from"../../format/lib/sized-image.js";import{BOX_REVEAL_CLASS as ml,BOX_REVEAL_CSS as fl,BOX_REVEAL_SHEET as hl,PHOTO_HOST_ATTR as Cl,resolveImageTreatment as bl}from"../../format/lib/content/image-treatment.js";import Sl,{HoverArrowsSlot as wl,HoverMediaArrows as pl}from"./HoverMediaLayer.js";import{HOVER_ARROWS_HOST_ATTR as xl,HOVER_ARROWS_HOST_CLASS as _l,HOVER_LAYER_GROUND as vl,cardRowHoverMedia as Rl,hoverLayerName as Ol}from"../../format/lib/content/hover-media.js";import{BOX_HIGHLIGHT_CLASS as Pl,BOX_HIGHLIGHT_OVER_ROW_INK_CLASS as Al,BOX_SHOW_ON_CARD_HOVER as Ll}from"../../format/lib/animation/hover.js";import{BoxRail as $l,BoxRailStop as yl,RAIL_STOPS_CLASS as Nl,useTimelineRail as El}from"./TimelineRail.js";import{SHARED_PLAIN_ATTR as kl,sharedColumnsClasses as Il,sharedColumnsCss as Bl,sharedRowsClasses as gl,sharedRowsCss as Tl}from"../lib/content/box-shared-columns.js";import js from"./PhotoHoverSheet.js";import{PICTURE_FRAME_ONLY as Fl,PictureHoverMoveSheet as Hl,PictureHoverZoom as Dl,pictureHoverMoveOf as Vl}from"./PictureHoverMove.js";import{BOX_DESKTOP_LINE as Ml,stackGutterClass as Wl,stackLineCss as Gl,stackOuterClass as Xl,stackRowClass as jl,storedStackLine as lo}from"../lib/content/box-stack-line.js";import{partAttr as io}from"../../format/lib/content/part-names.js";import{withSideOnce as Ks}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as Kl}from"./SideSpaceOnce.js";const co={"--sf-site-gutter":"0px"},Ul={overflowX:"clip",overflowY:"visible"},zl={stretchedRow:!1,fillingColumn:!1,columnsRow:!1},Us={desktop:!1,phone:!1},zs="bg-cover bg-center bg-[image:var(--sf-box-bg)] max-view-wide:bg-[image:var(--sf-box-bg-p)]",ao=u=>u==null||u==="",uo=u=>!ao(u)&&Number(u)===0;function Yl({children:u}){return e(A,{children:u(_t())})}function Jl({direction:u,label:Ys,tabShape:Js,gap:mo,gapPhone:Zs,gapTablet:Pe,justify:z,align:E,wrap:ae,share:qs,sharePhone:F,shareTablet:H,wrapPhone:Qs,orderPhone:en,phoneRow:C,columns:m,columnsTablet:D,separator:f,stackBelow:de,blockSpacing:fo,bgImage:on,bgImagePhone:sn,rowImage:nn,hoverShow:tn,pictureHover:V,darken:Ae,darkenStyle:ue,darkenTablet:rn,darkenPhone:ln,darkenStyleTablet:cn,darkenStylePhone:an,placement:dn,padV2:ho=!1,border:un,borderTablet:mn,borderPhone:fn,borderUnits:Co,pad:r={},contained:Le=!0,fillHeight:_=!1,shadow:$e,shadowTablet:bo,shadowPhone:So,justifyTablet:wo,justifyPhone:hn,alignTablet:Cn,alignPhone:bn,wrapTablet:po,blockSpacingTablet:Sn,blockSpacingPhone:wn,loop:b,scrollDirection:ye=Nr,loopSeconds:pn=Er,loopDelay:xn=yr,editing:k=!1,fillColor:xo,fillColorTablet:_n,fillColorPhone:vn,fillFade:Rn,swatch:On,line:v,upcoming:Pn,link:An,rowLink:_o,highlight:Ln,boxShape:Ne,boxShapePhone:vo,boxShapeTablet:Ro,angle:$n,jumpHighlight:yn,anchor:Nn,sharedSides:En=Us,sharedRows:kn=!1,boxId:M,slotCount:In,mirrorCards:Oo,content:c,rowTitle:Ee,startsOpen:Bn,rowStyle:gn,sideSpace:Tn}){const n=Kt(),I=Dr({[x]:nn},n!==null)[x],Po=Ms({[x]:I}),d=Po?Us:En,Fn=Po?!1:kn,Ao=Vr({[x]:I},n?.row),S=Ao??on,ke=Ao===null?sn:void 0,Lo=xt(Bs),[$o,Hn]=vt(null),Dn=qt(),yo=or()&&!(Dn&&n!==null),R=Qt(),h=ir({inCopy:n!==null,nestedCopy:n?.nested===!0,underBox:yo}),Ie=tn===Ll&&n!==null&&!h&&!(k&&n.previewHover===!0),No=no(un,n,h),Eo=no(mn,n,h),ko=no(fn,n,h),Io=n===null&&!yo&&R?.ids&&M?R.ids.indexOf(M):-1,me=Io>=0&&R&&M?Zt(R,M,Io):-1,w=me>=0?R?.hand??null:h&&R?.copies===!0?R.hand:null,o=w?.row?"row":u,a=w?.row?w.row.share:qs,Vn=w?.row?w.row.phoneReverse?[...c.blockIds??[]].reverse():void 0:en,fe=Fn&&!w?.row,W=k?"":_o&&n?zt(n.row,_o)??"":rl(An),O=_?"":Zr(Ne,vo,Ro),Mn=!_&&Jr(Ne)!=="",B=tl(yn,Nn),Be=Mr({swatch:On},n?.row),Y=Be??gr(xo),g=Be?{className:"",style:{}}:Fr(xo,_n,vn),Wn=ul(),Bo=dl(Be,Wn??void 0),Gn=_e(S)||_e(ke),Xn=(Y||g.className)&&!Gn?Tr(Rn):null,go=Y||g.className?{...Y?{backgroundColor:Y}:{},...g.style,...Xn,...Bo}:void 0,To=El(),J=v===!0&&o!=="tabs"&&o!=="accordion",t=Ms({bgImage:S,[x]:I}),Fo=Qr($n),Ho=t?void 0:go,he=t?null:Ln??null,Do=_?null:qr(Ne,vo,Ro),jn=Fo||he||Do?{...Ho,...Fo,...he,...Do}:Ho,Ce=jt(),Kn=Dt(),Un=Lt(),Vo=Pt(),Mo=Ot(),zn=At(),l=o==="accordion",ge=kt(gn),Z=l&&ge==="numbered",Te=l&&ge==="chevron",Fe=Tt(),Wo=gt(),G=$r(o,f),i=b==="scroll"&&o!=="tabs"&&!l,Yn=er(),be=h||me>=0&&w!==null,Go=w?w.mirror:Oo,Jn=me>=0?me:n?.index,q=h&&Ut(n?.ownerType),Xo=Ts({direction:o,separator:f,loop:b,line:v,bgImage:S,[x]:I,columns:m,columnsTablet:D,share:a,wrap:ae},be,d.desktop)&&nr(Go,Jn),Zn=Ts({direction:o,separator:f,loop:b,line:v,bgImage:S,[x]:I,columns:m,columnsTablet:D,share:a,wrap:ae},be,d.desktop)&&tr(Go)!==null,X=wr({direction:o,separator:f,loop:b,line:v,columns:m}),T=pr({direction:o,separator:f,loop:b,line:v,columnsTablet:D}),Q=xr({direction:o,separator:f,loop:b,line:v,columns:m,columnsTablet:D,share:a,shareTablet:H}),ee=dr(Tn)===ar,He=cr(ee),jo=Kl(),Ko=J&&lo(de)===Ml,j=o==="row"&&!t&&!G&&!i&&(!J||Ko)&&T===""&&Q===""?lo(de):void 0,K=j??(o==="column"&&!t?lo(de):void 0),qn=Ht(),Se=Il(d,c.blockCount??0,j),Qn=(Se&&(!n||n.index===0)?Bl(d,c.blockCount??0,j):"")+(fe&&(!n||n.index===0)?Tl(fe,c.blockCount??0):""),Uo=gl(fe,c.blockCount??0),zo=T!==""?Number(D)>=2:Q===""||$(H)!=="",Yo=T!==""||Q!=="",De=o==="row"&&!G&&!i&&v!==!0,Ve=De&&!d.phone&&!d.desktop?It(Bt(Vn,c.blockIds??[]),{editing:k}):void 0,Jo=Ve!==void 0&&!k,et=X!==""?Number(m)>=2:$(a)!=="",Zo=!t&&!l&&!Zn&&!d.desktop&&!d.phone,we=Zo&&!i?Cr(z,wo,hn):"",Me=t||be?"":rr(Yn,o,i?void 0:z,E,we?wo:void 0),ot=/view-wide:max-view-desktop:justify-/.test(Me)?we.split(" ").filter(s=>!s.startsWith("view-wide:max-view-desktop:justify-")).join(" "):we,st=Zo&&o==="row"?mr(E,Cn,bn):"",qo=Wo&&o==="column"&&!t&&!i&&!l,We=typeof z=="string"&&z!=="start"||we!=="",Qo=qo&&We&&$(a)!=="",es=qo&&!We&&$(a)!==""&&(c.blockCount??0)===1,nt=!i&&!l&&X===""&&T===""&&!d.desktop?br(ae,po):"",os=[l||Qo?"":$(a),o==="row"?Sr(a):"",X,T,Q,fr(l?"gap":fo),Pr(o,f),l&&!Z&&!Te?"border-t border-line":"",ot,st,nt,l?"":hr(fo,Sn,wn),l?Hs(m,C,Z||Te):"",Z?yt:""].filter(Boolean).join(" "),tt=os?` ${os}`:"",ss=["flex",o==="row"?G||i?"flex-row":`flex-row ${ce(C,F,Qs,po)}`:"flex-col",Rr(i||l?!1:ae),t?Hr(dn??"center",o):ur(i||l?void 0:z,l?void 0:E)+(Me?` ${Me}`:"")].join(" ")+tt,oe=_||t||O||Fe?` ${Oe}`:"",Ge=Mn?` ${O}`:O?`${oe} ${O}`:oe,ns=Wo&&o==="column"&&!t&&!i&&$(a)===""&&We||Qo,ts=oe||(ns||es?` ${Oe}`:""),Xe=W?` ${ol}`:"",je=t||Ce||ho?"":" py-6",rt=j===void 0?"":` ${jl(j)}`,rs=K===void 0||ee?"":` ${Wl(K)}`,Ke=K===void 0?"":` ${Xl(K)}`,lt=`${to}${je} ${He}${Ge}${Xe}${rs}${Ke}`,it=Ce?`${Ge}${Xe}${Ke}`.trim():`w-full${je}${Ge}${Xe}${Ke}`,se=(Z||Te)&&Hs(m,C)===""?Fs("Flex",0,"block"):Fs("Flex",mo,o==="row"?"inline":"block",Zs,G||i?void 0:Pe),ls=vr(a,H,o==="row"?c.blockCount??0:0),is=G?{...se.style,...Lr(o,f)}:se.style,ct=ls?{...is,...ls}:is,Ue=(s="")=>e(c,{className:`${ss}${Xo?` ${lr}`:""}${se.className}${ts}${rt}${s?` ${s}`:""}${J?` ${Nl}`:""}${B?` ${sl(B)}`:""}${Se}${Uo}`,style:ct,minEmptyHeight:120,...Ve?{cell:Ve}:null}),cs=kr(ye)?"":Ar(o,f),as=i?e(Ir,{direction:ye,seconds:pn,delay:xn,editing:k,copy:s=>Ue(s&&cs?`${s} ${cs}`:s)}):Z?L(A,{children:[e("style",{children:Nt}),Ue()]}):Ue(),ze=o==="tabs"?e(Rt,{className:`${ss}${se.className}${Fe&&!_&&!t&&!O?"":oe}`,style:se.style,shape:Js,children:as}):as,Ye=l?e(so.Provider,{value:"accordion",children:e(oo.Provider,{value:ge,children:ze})}):Vo?e(so.Provider,{value:!1,children:e(oo.Provider,{value:"plain",children:ze})}):ze,ds=o==="row"&&!t&&(E===void 0||E==="stretch"),at={stretchedRow:ds,fillingColumn:o==="column"&&(Fe||ns),columnsRow:X!==""||T!==""||Se!==""||Uo!==""||o==="row"&&(Array.isArray(a)||Array.isArray(H))||Jo,...Jo?{phoneCells:!0}:null,...ds&&De&&(c.blockCount??0)>=2&&et||es?{picturesFillRow:!0}:null,...Yo&&!zo?{fillFrom:"desktop"}:null,..._r(C,F)&&(!Yo||zo)?{phoneRowFills:!0}:null,...De&&Ds(C,F)?{phoneRowFits:!0}:null,...i?{loops:!0}:null,...M?{id:M}:null},us=n===null?sr({direction:o,loop:b,bgImage:S,[x]:I,columns:m,mirrorCards:Oo},!1):null,ms=us?e(gs.Provider,{value:{hand:us,ids:c.blockIds??[],boxes:[]},children:Ye}):R?e(gs.Provider,{value:null,children:Ye}):Ye,fs=e(ks.Provider,{value:at,children:e(Es.Provider,{value:!1,children:be?e(Jt.Provider,{value:Xo,children:e(Yt.Provider,{value:!h,children:ms})}):ms})}),dt=Ee?.blockCount??0,hs=Vo==="accordion"&&!!Ee&&(k||dt>0)?e($t,{startsOpen:Bn===!0||zn&&h&&n?.index===0,editing:k,numbered:Mo==="numbered",chevron:Mo==="chevron",title:e(ks.Provider,{value:zl,children:e(Es.Provider,{value:!1,children:e(so.Provider,{value:!1,children:e(oo.Provider,{value:"plain",children:e(Ee,{className:`min-w-0 flex-1 ${Or}`,minEmptyHeight:24})})})})}),children:fs}):fs,Je=J?e($l,{row:o==="row",stops:c.blockCount??0,desktopLine:j!==void 0&&Ko,children:hs}):hs,ut=Ys?.trim()||(Un?"":void 0),mt={values:r,frame:je?24:0},ft=s=>To?e(yl,{on:To,future:Pn===!0,children:s}):s,ht=s=>ll(W)?e(il,{href:W,newTab:"auto",className:Gs,"aria-labelledby":s,[Ws]:""}):e("a",{href:W,className:Gs,"aria-labelledby":s,[Ws]:""}),Cs=(B?nl(B):"")+Qn+(K===void 0||n&&n.index!==0?"":Gl(K,{gutter:!ee})),bs=Cs?e("style",{dangerouslySetInnerHTML:{__html:Cs}}):null,ne=zr({loop:b,direction:o,scrollDirection:ye,bgImage:S,[x]:I}),Ct=d.desktop&&Se!==""&&!Y&&!g.className&&!Xs(No,ko,Eo,Co)&&!Kr($e,bo,So)&&!W&&!O&&!_&&!B&&!Yr(Le&&!ne,qn)&&uo(mo)&&(ao(Pe)||uo(Pe))&&ho&&Object.values(r).every(s=>ao(s)||uo(s)),bt=s=>({...Et,...Ct?{[kl]:""}:null,...t?null:{...jr($e),...Ur($e,bo,So)},...B?{[el]:B}:null,...s?{id:s}:null}),Ss=X!==""?Number(m):0,St=ce(C,F)===ce(void 0),wt=(o==="column"||o==="row"&&!G&&!i&&(Ss===1&&St||Ss===0&&c.blockCount===1))&&!t&&!J&&!Ce,ws=t&&Kn&&!Ce,pe=!t&&n!==null?Vs(Ae,ue):null,ps=Ie||pe?L(A,{children:[Ie?e(js,{sheet:fl,name:hl}):null,pe?e("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 -z-10 rounded-[inherit]",style:pe}):null]}):null,xs=[Ie?ml:"",pe?"relative isolate":""].filter(Boolean).join(" "),_s=s=>ps?L(A,{children:[ps,s]}):s,vs=(s,P)=>ft(e(Ft,{contained:Le&&!ne,style:ne?co:void 0,framedClass:lt,fillClass:it,columnClass:`${to} ${He}${ts}${rs}`,tabLabel:ut,pad:t?void 0:mt,border:Xs(No,ko,Eo,Co),outerAttrs:bt(P),box:!0,edge:wt,outerStyle:jn,outerClass:t?xs||void 0:[g.className,he?Pl:"",he&&Bo?Al:"",xs].filter(Boolean).join(" ")||void 0,bleed:ws,siteSide:ee,part:io("box"),children:bs||P?L(A,{children:[bs,P?ht(P):null,ne?e(Is,{children:s}):s]}):ne?e(Is,{children:s}):s})),Ze=s=>W?e(Yl,{children:P=>vs(_s(s),P)}):vs(_s(s)),Rs=s=>Lo.bound?e(Wt,{children:s}):s;if(!t){const s=E===void 0||E==="stretch",P=($(a)!==""||X!==""||T!=="")&&!Ds(C,F)&&!(Q!==""&&$(H)==="")&&(s||ce(C)!==ce(void 0));if(!(o==="row"?P:o==="column"&&s))return Ze(Rs(Je));const Ns=Gt({direction:o,separator:f,loop:b,line:v,share:a,shareTablet:H,sharePhone:F,phoneRow:C,columns:m,columnsTablet:D,stackBelow:de,shared:d.desktop||d.phone||fe,count:In}),pt={hasWidth:!0,...Ns?{bound:Xt(Ns,Lo.bound)}:null};return Ze(e(Bs.Provider,{value:pt,children:Je}))}const te=_e(S),re=te?Vs(Ae,ue):null,xe=te?Wr({darken:Ae,darkenStyle:ue,darkenTablet:rn,darkenStyleTablet:cn,darkenPhone:ln,darkenStylePhone:an}):{className:"",style:{}},qe=_e(ke),Os=te?qe?{"--sf-box-bg":ro(S??""),"--sf-box-bg-p":ro(ke??"")}:{backgroundImage:ro(S??""),backgroundSize:"cover",backgroundPosition:"center"}:{},Ps=bl(void 0,void 0,V),U=Ps.className?Ps:null,le=te&&n&&V?.kind==="nextImage"&&V.media?Rl(n,V.media):null,p=te?Vl(V,ue)??(le?Fl:null):null,As=V?.media?.cover??"picture",Qe=le?e("div",{className:`absolute inset-0 isolate${q?" rounded-[inherit]":""}`,children:e(wl.Provider,{value:Hn,children:e(Sl,{media:le,name:Ol(n?.row),cover:As,ground:vl[As],arrowsAbove:!0})})}):null,ie=U!==null||!!p?.zoom,Ls=ie?e("div",{"aria-hidden":!0,className:`absolute inset-0${q?" rounded-[inherit]":""}${qe?` ${zs}`:""}${U?` ${U.className}`:""}`,style:{...Os,...U?.style??{}}}):null,eo=cl({...r,top:ve(r.top)??N(y.desktop,r.unit,"desktop"),bottom:ve(r.bottom)??N(y.desktop,r.unit,"desktop"),topPhone:ve(r.topPhone)??N(y.phone,r.unitPhone,"mobile"),bottomPhone:ve(r.bottomPhone)??N(y.phone,r.unitPhone,"mobile"),left:Re(r.left)??N(y.side,r.unit,"desktop"),right:Re(r.right)??N(y.side,r.unit,"desktop"),leftPhone:Re(r.leftPhone)??N(y.sidePhone,r.unitPhone,"mobile"),rightPhone:Re(r.rightPhone)??N(y.sidePhone,r.unitPhone,"mobile"),sideSpace:ee?"site":"box"}),$s=e("div",{className:`relative z-[1] ${Br} ${Ks(eo?.className??"",jo)}${_||O?` ${Oe}`:""}`.trimEnd(),style:re?{...eo?.style,...co,...al}:{...eo?.style,...co},...io("card-content"),children:Rs(Je)}),ys=ws&&Le?e("div",{className:Ks(`${to} ${He}${_||O?` ${Oe}`:""}`,jo),children:$s}):$s;return Ze(e(A,{children:L("div",{className:`relative isolate overflow-hidden ${Xr}${n!==null&&!h?` ${Gr}`:""}${oe}${qe&&!ie?` ${zs}`:""}${g.className?` ${g.className}`:""}${p?` ${p.className}`:""}`,style:{...q?Ul:{},...go,...ie?{}:Os,...p?p.style:{}},...U||le?{[Cl]:""}:{},...io("card"),children:[e(Hl,{move:p}),ie&&L(A,{children:[e(js,{sheet:U?.sheet}),p?.zoom?e("div",{className:`absolute inset-0 overflow-hidden${q?" rounded-[inherit]":""}`,children:L(Dl,{move:p,className:"absolute inset-0",children:[Ls,Qe]})}):L(A,{children:[Ls,Qe]})]}),!ie&&Qe,e(Mt,{wash:re&&xe.className?{...re,...xe.style}:re,hover:p?.washHover,...q?{className:"rounded-[inherit]"}:{},...xe.className?{restClassName:xe.className}:{}}),re?e(Vt,{children:ys}):ys,le?e("div",{[xl]:"",className:_l,children:$o?e(pl,{state:$o}):null}):null]})}))}export{Jl as default};
|
|
1
|
+
import{Fragment as P,jsx as e,jsxs as L}from"react/jsx-runtime";import{useContext as Or,useId as Rr,useState as Ar}from"react";import Pr from"./BoxTabs.js";import{AccordionRowStyleContext as oo,BoxAnchorContext as Lr,BoxTabPaneContext as so,copyAnchorOf as $r,useAccordionRowStyle as yr,useBoxPaneKind as Nr,useCopyAnchors as Er,useFirstCopyOpens as kr,useIsTabPane as Ir}from"./BoxTabPaneContext.js";import Br,{ACCORDION_COUNTER_RESET as gr}from"./BoxAccordionRow.js";import{readAnchorName as Tr}from"../../format/lib/content/anchor-name.js";import{ACCORDION_MARK_SHEET as Fr}from"./AccordionMark.js";import{EDGE_LINE_ATTRS as Hr}from"../../format/lib/content/view-lines.js";import{accordionRowStyleOf as Dr}from"../../format/lib/content/accordion-row-style.js";import{boxPhoneCell as Vr,boxPhoneOrder as Mr}from"../../format/lib/content/box-phone-place.js";import{CellFillContext as Bs,InBoxContext as gs,useCellOfStretchedRow as Wr,useFillsCell as Gr}from"./InBoxContext.js";import Xr,{InsideSiteColumn as Ts,useInsideSiteGutter as jr,useSectionRoot as Kr}from"./SiteGutterFrame.js";import{BoxSurfaceProvider as Ur}from"./BoxSurfaceContext.js";import zr from"./PictureWash.js";import{BoxCellContext as Fs,NoCellBound as Yr}from"./BoxCellContext.js";import{boxCellFractions as Jr}from"../lib/content/box-cell-bound.js";import{boundOf as Zr}from"../../format/lib/content/cell-picture-sizes.js";import{useInSiteHeader as qr}from"./PhoneMenuTools.js";import{useCardRow as Qr}from"./CardRowContext.js";import{cardLineBetween as no,framesItsCards as et}from"../../format/lib/content/card-place.js";import{rowLinkText as ot}from"../../format/lib/content/card-template.js";import{HandedMirrorContext as st,MirrorContext as nt,RowHandContext as Hs,boxPlace as rt,useHandedMirrorAbove as tt,useHandedRows as lt,useMirroredCopy as it,useUnderCardBox as ct}from"./MirrorContext.js";import{boxChildrenHand as at,isMirroredCopy as dt,mirrorCardsActs as Ds,mirrorCardsOf as ut,mirroredBoxClass as mt,MIRROR_ROW_CLASS as ft,ownsCard as ht}from"../../format/lib/content/mirror-cards.js";import{FRAME_BASE as ro,frameGutterOf as Ct}from"./BlockFrame.js";import{BOX_SIDE_SPACE_SITE as bt,boxSideSpaceOf as St}from"../../format/lib/content/box-side-space.js";import{containerGapProps as Vs}from"../../format/lib/content/container-gap.js";import{boxLayoutClasses as pt,boxAlignViewClasses as wt,boxBlockSpacingClass as xt,boxBlockSpacingViewClasses as _t,boxJustifyViewClasses as vt,boxWrapTabletClass as Ot,boxFitContentClass as Rt,boxAccordionColumnsClass as Ms,boxRowColumnsClass as At,boxRowTabletColumnsClass as Pt,boxRowTabletShareClass as Lt,boxPhoneCellsShareLine as $t,boxPhoneRowClasses as ce,boxPhoneRowFits as Ws,boxShareClasses as $,boxShareVars as yt,boxWrapClass as Nt,BOX_GAP_ONLY_CLASS as Et}from"../../format/lib/content/box-layout.js";import{boxSeparatorClasses as kt,boxSeparatorSeamClass as It,boxSeparatorStyle as Bt,isStripBox as gt}from"../../format/lib/content/box-separator.js";import{DEFAULT_LOOP_DELAY as Tt,DEFAULT_LOOP_DIRECTION as Ft,DEFAULT_LOOP_SECONDS as Ht,isVerticalLoop as Dt}from"../../format/lib/animation/index.js";import{LoopTrack as Vt}from"../lib/animation/LoopTrack.js";import{BOX_CARD_PAD as y,BOX_OWNS_SIDES_CLASS as Mt,boxDarkenStyle as Gs,boxPaintOf as Wt,boxFillFadeStyle as Gt,boxFillViews as Xt,boxPlacementClasses as jt,boxCardProps as Kt,boxIsCard as Xs,boxRowPicture as Ut,boxSwatchFill as zt,boxWashViews as Yt,CARD_NO_LIFT_CLASS as Jt,CARD_SHADOW_CLASS as Zt,isBackgroundBox as _e}from"../../format/lib/content/box-background.js";import{BOX_ROW_IMAGE_PROP as x}from"../../format/lib/content/box-card-rule.js";import{boxShadowAttrs as qt,boxShadowOnAnyView as Qt,boxShadowViewAttrs as el}from"../../format/lib/content/box-shadow.js";import{boxRunsEdgeToEdge as ol,drawsSiteGutter as sl}from"../../format/lib/content/site-gutter.js";import{boxShapeClass as nl,boxShapeClasses as rl,boxShapeStyle as tl}from"../../format/lib/content/box-shape.js";import{boxAngleStyle as ll}from"../../format/lib/content/box-angle.js";import{BOX_JUMP_ATTR as il,BOX_LINK_ATTR as js,BOX_LINK_CLASS as Ks,BOX_LINKED_CLASS as cl,boxJumpBlocksClass as al,boxJumpCss as dl,boxJumpSlug as ul,boxLinkOf as ml,siteLinkDraws as fl}from"../../format/lib/content/box-link.js";import{SiteLink as hl}from"../lib/site-runtime.js";import{sectionBorderStyle as Us}from"../../format/lib/content/borders.js";import{finiteNumber as ve}from"../../format/lib/finite-number.js";import{padDefaultIn as N,padSideValue as Oe,sectionPadAttrs as Cl}from"../lib/content/section-padding.js";import{SECTION_FILL_CLASS as Re}from"../../format/lib/content/section-min-height.js";import{ON_MEDIA_INK_STYLE as bl,rowFillInkStyle as Sl}from"../../format/lib/content/ink.js";import{useThemeLightInk as pl}from"./ThemeLightInkContext.js";import{sizedBackground as to}from"../../format/lib/sized-image.js";import{BOX_REVEAL_CLASS as wl,BOX_REVEAL_CSS as xl,BOX_REVEAL_SHEET as _l,PHOTO_HOST_ATTR as vl,resolveImageTreatment as Ol}from"../../format/lib/content/image-treatment.js";import Rl,{HoverArrowsSlot as Al,HoverMediaArrows as Pl}from"./HoverMediaLayer.js";import{HOVER_ARROWS_HOST_ATTR as Ll,HOVER_ARROWS_HOST_CLASS as $l,HOVER_LAYER_GROUND as yl,cardRowHoverMedia as Nl,hoverLayerName as El}from"../../format/lib/content/hover-media.js";import{BOX_HIGHLIGHT_CLASS as kl,BOX_HIGHLIGHT_OVER_ROW_INK_CLASS as Il,BOX_SHOW_ON_CARD_HOVER as Bl}from"../../format/lib/animation/hover.js";import{BoxRail as gl,BoxRailStop as Tl,RAIL_STOPS_CLASS as Fl,useTimelineRail as Hl}from"./TimelineRail.js";import{SHARED_PLAIN_ATTR as Dl,sharedColumnsClasses as Vl,sharedColumnsCss as Ml,sharedRowsClasses as Wl,sharedRowsCss as Gl}from"../lib/content/box-shared-columns.js";import zs from"./PhotoHoverSheet.js";import{PICTURE_FRAME_ONLY as Xl,PictureHoverMoveSheet as jl,PictureHoverZoom as Kl,pictureHoverMoveOf as Ul}from"./PictureHoverMove.js";import{BOX_DESKTOP_LINE as zl,stackGutterClass as Yl,stackLineCss as Jl,stackOuterClass as Zl,stackRowClass as ql,storedStackLine as lo}from"../lib/content/box-stack-line.js";import{partAttr as io}from"../../format/lib/content/part-names.js";import{withSideOnce as Ys}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as Ql}from"./SideSpaceOnce.js";const co={"--sf-site-gutter":"0px"},ei={overflowX:"clip",overflowY:"visible"},oi={stretchedRow:!1,fillingColumn:!1,columnsRow:!1},Js={desktop:!1,phone:!1},Zs="bg-cover bg-center bg-[image:var(--sf-box-bg)] max-view-wide:bg-[image:var(--sf-box-bg-p)]",ao=m=>m==null||m==="",uo=m=>!ao(m)&&Number(m)===0;function si({children:m}){return e(P,{children:m(Rr())})}function ni({direction:m,label:qs,tabShape:Qs,gap:mo,gapPhone:en,gapTablet:Ae,justify:z,align:E,wrap:ae,share:on,sharePhone:F,shareTablet:H,wrapPhone:sn,orderPhone:nn,phoneRow:C,columns:f,columnsTablet:D,separator:h,stackBelow:de,blockSpacing:fo,bgImage:rn,bgImagePhone:tn,rowImage:ln,hoverShow:cn,pictureHover:V,darken:Pe,darkenStyle:ue,darkenTablet:an,darkenPhone:dn,darkenStyleTablet:un,darkenStylePhone:mn,placement:fn,padV2:ho=!1,border:hn,borderTablet:Cn,borderPhone:bn,borderUnits:Co,pad:t={},contained:Le=!0,fillHeight:_=!1,shadow:$e,shadowTablet:bo,shadowPhone:So,justifyTablet:po,justifyPhone:Sn,alignTablet:pn,alignPhone:wn,wrapTablet:wo,blockSpacingTablet:xn,blockSpacingPhone:_n,loop:b,scrollDirection:ye=Ft,loopSeconds:vn=Ht,loopDelay:On=Tt,editing:k=!1,fillColor:xo,fillColorTablet:Rn,fillColorPhone:An,fillFade:Pn,swatch:Ln,line:v,upcoming:$n,link:yn,rowLink:_o,highlight:Nn,boxShape:Ne,boxShapePhone:vo,boxShapeTablet:Oo,angle:En,jumpHighlight:kn,anchor:Ro,sharedSides:In=Js,sharedRows:Bn=!1,boxId:M,slotCount:gn,mirrorCards:Ao,content:c,rowTitle:Ee,startsOpen:Tn,rowStyle:Fn,sideSpace:Hn}){const n=Qr(),I=Kt({[x]:ln},n!==null)[x],Po=Xs({[x]:I}),d=Po?Js:In,Dn=Po?!1:Bn,Lo=Ut({[x]:I},n?.row),S=Lo??rn,ke=Lo===null?tn:void 0,$o=Or(Fs),[yo,Vn]=Ar(null),Mn=tt(),No=ct()&&!(Mn&&n!==null),O=lt(),u=ht({inCopy:n!==null,nestedCopy:n?.nested===!0,underBox:No}),Ie=cn===Bl&&n!==null&&!u&&!(k&&n.previewHover===!0),Eo=no(hn,n,u),ko=no(Cn,n,u),Io=no(bn,n,u),Bo=n===null&&!No&&O?.ids&&M?O.ids.indexOf(M):-1,me=Bo>=0&&O&&M?rt(O,M,Bo):-1,p=me>=0?O?.hand??null:u&&O?.copies===!0?O.hand:null,o=p?.row?"row":m,a=p?.row?p.row.share:on,Wn=p?.row?p.row.phoneReverse?[...c.blockIds??[]].reverse():void 0:nn,fe=Dn&&!p?.row,W=k?"":_o&&n?ot(n.row,_o)??"":ml(yn),R=_?"":rl(Ne,vo,Oo),Gn=!_&&nl(Ne)!=="",B=ul(kn,Ro),Be=zt({swatch:Ln},n?.row),Y=Be??Wt(xo),g=Be?{className:"",style:{}}:Xt(xo,Rn,An),Xn=pl(),go=Sl(Be,Xn??void 0),jn=_e(S)||_e(ke),Kn=(Y||g.className)&&!jn?Gt(Pn):null,To=Y||g.className?{...Y?{backgroundColor:Y}:{},...g.style,...Kn,...go}:void 0,Fo=Hl(),J=v===!0&&o!=="tabs"&&o!=="accordion",r=Xs({bgImage:S,[x]:I}),Ho=ll(En),Do=r?void 0:To,he=r?null:Nn??null,Vo=_?null:tl(Ne,vo,Oo),Un=Ho||he||Vo?{...Do,...Ho,...he,...Vo}:Do,Ce=qr(),zn=Kr(),Yn=Ir(),Mo=Nr(),Wo=yr(),Jn=kr(),Zn=Er(),l=o==="accordion",ge=Dr(Fn),Z=l&&ge==="numbered",Te=l&&ge==="chevron",Fe=Gr(),Go=Wr(),G=gt(o,h),i=b==="scroll"&&o!=="tabs"&&!l,qn=it(),be=u||me>=0&&p!==null,Xo=p?p.mirror:Ao,Qn=me>=0?me:n?.index,q=u&&et(n?.ownerType),jo=Ds({direction:o,separator:h,loop:b,line:v,bgImage:S,[x]:I,columns:f,columnsTablet:D,share:a,wrap:ae},be,d.desktop)&&dt(Xo,Qn),er=Ds({direction:o,separator:h,loop:b,line:v,bgImage:S,[x]:I,columns:f,columnsTablet:D,share:a,wrap:ae},be,d.desktop)&&ut(Xo)!==null,X=At({direction:o,separator:h,loop:b,line:v,columns:f}),T=Pt({direction:o,separator:h,loop:b,line:v,columnsTablet:D}),Q=Lt({direction:o,separator:h,loop:b,line:v,columns:f,columnsTablet:D,share:a,shareTablet:H}),ee=St(Hn)===bt,He=Ct(ee),Ko=Ql(),Uo=J&&lo(de)===zl,j=o==="row"&&!r&&!G&&!i&&(!J||Uo)&&T===""&&Q===""?lo(de):void 0,K=j??(o==="column"&&!r?lo(de):void 0),or=jr(),Se=Vl(d,c.blockCount??0,j),sr=(Se&&(!n||n.index===0)?Ml(d,c.blockCount??0,j):"")+(fe&&(!n||n.index===0)?Gl(fe,c.blockCount??0):""),zo=Wl(fe,c.blockCount??0),Yo=T!==""?Number(D)>=2:Q===""||$(H)!=="",Jo=T!==""||Q!=="",De=o==="row"&&!G&&!i&&v!==!0,Ve=De&&!d.phone&&!d.desktop?Vr(Mr(Wn,c.blockIds??[]),{editing:k}):void 0,Zo=Ve!==void 0&&!k,nr=X!==""?Number(f)>=2:$(a)!=="",qo=!r&&!l&&!er&&!d.desktop&&!d.phone,pe=qo&&!i?vt(z,po,Sn):"",Me=r||be?"":mt(qn,o,i?void 0:z,E,pe?po:void 0),rr=/view-wide:max-view-desktop:justify-/.test(Me)?pe.split(" ").filter(s=>!s.startsWith("view-wide:max-view-desktop:justify-")).join(" "):pe,tr=qo&&o==="row"?wt(E,pn,wn):"",Qo=Go&&o==="column"&&!r&&!i&&!l,We=typeof z=="string"&&z!=="start"||pe!=="",es=Qo&&We&&$(a)!=="",os=Qo&&!We&&$(a)!==""&&(c.blockCount??0)===1,lr=!i&&!l&&X===""&&T===""&&!d.desktop?Ot(ae,wo):"",ss=[l||es?"":$(a),o==="row"?Rt(a):"",X,T,Q,xt(l?"gap":fo),kt(o,h),l&&!Z&&!Te?"border-t border-line":"",rr,tr,lr,l?"":_t(fo,xn,_n),l?Ms(f,C,Z||Te):"",Z?gr:""].filter(Boolean).join(" "),ir=ss?` ${ss}`:"",ns=["flex",o==="row"?G||i?"flex-row":`flex-row ${ce(C,F,sn,wo)}`:"flex-col",Nt(i||l?!1:ae),r?jt(fn??"center",o):pt(i||l?void 0:z,l?void 0:E)+(Me?` ${Me}`:"")].join(" ")+ir,oe=_||r||R||Fe?` ${Re}`:"",Ge=Gn?` ${R}`:R?`${oe} ${R}`:oe,rs=Go&&o==="column"&&!r&&!i&&$(a)===""&&We||es,ts=oe||(rs||os?` ${Re}`:""),Xe=W?` ${cl}`:"",je=r||Ce||ho?"":" py-6",cr=j===void 0?"":` ${ql(j)}`,ls=K===void 0||ee?"":` ${Yl(K)}`,Ke=K===void 0?"":` ${Zl(K)}`,ar=`${ro}${je} ${He}${Ge}${Xe}${ls}${Ke}`,dr=Ce?`${Ge}${Xe}${Ke}`.trim():`w-full${je}${Ge}${Xe}${Ke}`,se=(Z||Te)&&Ms(f,C)===""?Vs("Flex",0,"block"):Vs("Flex",mo,o==="row"?"inline":"block",en,G||i?void 0:Ae),is=yt(a,H,o==="row"?c.blockCount??0:0),cs=G?{...se.style,...Bt(o,h)}:se.style,ur=is?{...cs,...is}:cs,Ue=(s="")=>e(c,{className:`${ns}${jo?` ${ft}`:""}${se.className}${ts}${cr}${s?` ${s}`:""}${J?` ${Fl}`:""}${B?` ${al(B)}`:""}${Se}${zo}`,style:ur,minEmptyHeight:120,...Ve?{cell:Ve}:null}),as=Dt(ye)?"":It(o,h),ds=i?e(Vt,{direction:ye,seconds:vn,delay:On,editing:k,copy:s=>Ue(s&&as?`${s} ${as}`:s)}):Z?L(P,{children:[e("style",{children:Fr}),Ue()]}):Ue(),ze=o==="tabs"?e(Pr,{className:`${ns}${se.className}${Fe&&!_&&!r&&!R?"":oe}`,style:se.style,shape:Qs,children:ds}):ds,Ye=l?e(so.Provider,{value:"accordion",children:e(oo.Provider,{value:ge,children:ze})}):Mo?e(so.Provider,{value:!1,children:e(oo.Provider,{value:"plain",children:ze})}):ze,us=o==="row"&&!r&&(E===void 0||E==="stretch"),mr={stretchedRow:us,fillingColumn:o==="column"&&(Fe||rs),columnsRow:X!==""||T!==""||Se!==""||zo!==""||o==="row"&&(Array.isArray(a)||Array.isArray(H))||Zo,...Zo?{phoneCells:!0}:null,...us&&De&&(c.blockCount??0)>=2&&nr||os?{picturesFillRow:!0}:null,...Jo&&!Yo?{fillFrom:"desktop"}:null,...$t(C,F)&&(!Jo||Yo)?{phoneRowFills:!0}:null,...De&&Ws(C,F)?{phoneRowFits:!0}:null,...i?{loops:!0}:null,...M?{id:M}:null},ms=n===null?at({direction:o,loop:b,bgImage:S,[x]:I,columns:f,mirrorCards:Ao},!1):null,fs=ms?e(Hs.Provider,{value:{hand:ms,ids:c.blockIds??[],boxes:[]},children:Ye}):O?e(Hs.Provider,{value:null,children:Ye}):Ye,hs=Tr(Ro),Cs=e(gs.Provider,{value:mr,children:e(Bs.Provider,{value:!1,children:be?e(nt.Provider,{value:jo,children:e(st.Provider,{value:!u,children:fs})}):fs})}),bs=hs?e(Lr.Provider,{value:hs,children:Cs}):Cs,fr=Ee?.blockCount??0,Ss=Mo==="accordion"&&!!Ee&&(k||fr>0)?e(Br,{startsOpen:Tn===!0||Jn&&u&&n?.index===0,editing:k,numbered:Wo==="numbered",chevron:Wo==="chevron",anchor:u?$r(Zn,n):void 0,title:e(gs.Provider,{value:oi,children:e(Bs.Provider,{value:!1,children:e(so.Provider,{value:!1,children:e(oo.Provider,{value:"plain",children:e(Ee,{className:`min-w-0 flex-1 ${Et}`,minEmptyHeight:24})})})})}),children:bs}):bs,Je=J?e(gl,{row:o==="row",stops:c.blockCount??0,desktopLine:j!==void 0&&Uo,children:Ss}):Ss,hr=qs?.trim()||(Yn?"":void 0),Cr={values:t,frame:je?24:0},br=s=>Fo?e(Tl,{on:Fo,future:$n===!0,children:s}):s,Sr=s=>fl(W)?e(hl,{href:W,newTab:"auto",className:Ks,"aria-labelledby":s,[js]:""}):e("a",{href:W,className:Ks,"aria-labelledby":s,[js]:""}),ps=(B?dl(B):"")+sr+(K===void 0||n&&n.index!==0?"":Jl(K,{gutter:!ee})),ws=ps?e("style",{dangerouslySetInnerHTML:{__html:ps}}):null,ne=ol({loop:b,direction:o,scrollDirection:ye,bgImage:S,[x]:I}),pr=d.desktop&&Se!==""&&!Y&&!g.className&&!Us(Eo,Io,ko,Co)&&!Qt($e,bo,So)&&!W&&!R&&!_&&!B&&!sl(Le&&!ne,or)&&uo(mo)&&(ao(Ae)||uo(Ae))&&ho&&Object.values(t).every(s=>ao(s)||uo(s)),wr=s=>({...Hr,...pr?{[Dl]:""}:null,...r?null:{...qt($e),...el($e,bo,So)},...B?{[il]:B}:null,...s?{id:s}:null}),xs=X!==""?Number(f):0,xr=ce(C,F)===ce(void 0),_r=(o==="column"||o==="row"&&!G&&!i&&(xs===1&&xr||xs===0&&c.blockCount===1))&&!r&&!J&&!Ce,_s=r&&zn&&!Ce,we=!r&&n!==null?Gs(Pe,ue):null,vs=Ie||we?L(P,{children:[Ie?e(zs,{sheet:xl,name:_l}):null,we?e("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 -z-10 rounded-[inherit]",style:we}):null]}):null,Os=[Ie?wl:"",we?"relative isolate":""].filter(Boolean).join(" "),Rs=s=>vs?L(P,{children:[vs,s]}):s,As=(s,A)=>br(e(Xr,{contained:Le&&!ne,style:ne?co:void 0,framedClass:ar,fillClass:dr,columnClass:`${ro} ${He}${ts}${ls}`,tabLabel:hr,pad:r?void 0:Cr,border:Us(Eo,Io,ko,Co),outerAttrs:wr(A),box:!0,edge:_r,outerStyle:Un,outerClass:r?Os||void 0:[g.className,he?kl:"",he&&go?Il:"",Os].filter(Boolean).join(" ")||void 0,bleed:_s,siteSide:ee,part:io("box"),children:ws||A?L(P,{children:[ws,A?Sr(A):null,ne?e(Ts,{children:s}):s]}):ne?e(Ts,{children:s}):s})),Ze=s=>W?e(si,{children:A=>As(Rs(s),A)}):As(Rs(s)),Ps=s=>$o.bound?e(Yr,{children:s}):s;if(!r){const s=E===void 0||E==="stretch",A=($(a)!==""||X!==""||T!=="")&&!Ws(C,F)&&!(Q!==""&&$(H)==="")&&(s||ce(C)!==ce(void 0));if(!(o==="row"?A:o==="column"&&s))return Ze(Ps(Je));const Is=Jr({direction:o,separator:h,loop:b,line:v,share:a,shareTablet:H,sharePhone:F,phoneRow:C,columns:f,columnsTablet:D,stackBelow:de,shared:d.desktop||d.phone||fe,count:gn}),vr={hasWidth:!0,...Is?{bound:Zr(Is,$o.bound)}:null};return Ze(e(Fs.Provider,{value:vr,children:Je}))}const re=_e(S),te=re?Gs(Pe,ue):null,xe=re?Yt({darken:Pe,darkenStyle:ue,darkenTablet:an,darkenStyleTablet:un,darkenPhone:dn,darkenStylePhone:mn}):{className:"",style:{}},qe=_e(ke),Ls=re?qe?{"--sf-box-bg":to(S??""),"--sf-box-bg-p":to(ke??"")}:{backgroundImage:to(S??""),backgroundSize:"cover",backgroundPosition:"center"}:{},$s=Ol(void 0,void 0,V),U=$s.className?$s:null,le=re&&n&&V?.kind==="nextImage"&&V.media?Nl(n,V.media):null,w=re?Ul(V,ue)??(le?Xl:null):null,ys=V?.media?.cover??"picture",Qe=le?e("div",{className:`absolute inset-0 isolate${q?" rounded-[inherit]":""}`,children:e(Al.Provider,{value:Vn,children:e(Rl,{media:le,name:El(n?.row),cover:ys,ground:yl[ys],arrowsAbove:!0})})}):null,ie=U!==null||!!w?.zoom,Ns=ie?e("div",{"aria-hidden":!0,className:`absolute inset-0${q?" rounded-[inherit]":""}${qe?` ${Zs}`:""}${U?` ${U.className}`:""}`,style:{...Ls,...U?.style??{}}}):null,eo=Cl({...t,top:ve(t.top)??N(y.desktop,t.unit,"desktop"),bottom:ve(t.bottom)??N(y.desktop,t.unit,"desktop"),topPhone:ve(t.topPhone)??N(y.phone,t.unitPhone,"mobile"),bottomPhone:ve(t.bottomPhone)??N(y.phone,t.unitPhone,"mobile"),left:Oe(t.left)??N(y.side,t.unit,"desktop"),right:Oe(t.right)??N(y.side,t.unit,"desktop"),leftPhone:Oe(t.leftPhone)??N(y.sidePhone,t.unitPhone,"mobile"),rightPhone:Oe(t.rightPhone)??N(y.sidePhone,t.unitPhone,"mobile"),sideSpace:ee?"site":"box"}),Es=e("div",{className:`relative z-[1] ${Mt} ${Ys(eo?.className??"",Ko)}${_||R?` ${Re}`:""}`.trimEnd(),style:te?{...eo?.style,...co,...bl}:{...eo?.style,...co},...io("card-content"),children:Ps(Je)}),ks=_s&&Le?e("div",{className:Ys(`${ro} ${He}${_||R?` ${Re}`:""}`,Ko),children:Es}):Es;return Ze(e(P,{children:L("div",{className:`relative isolate overflow-hidden ${Zt}${n!==null&&!u?` ${Jt}`:""}${oe}${qe&&!ie?` ${Zs}`:""}${g.className?` ${g.className}`:""}${w?` ${w.className}`:""}`,style:{...q?ei:{},...To,...ie?{}:Ls,...w?w.style:{}},...U||le?{[vl]:""}:{},...io("card"),children:[e(jl,{move:w}),ie&&L(P,{children:[e(zs,{sheet:U?.sheet}),w?.zoom?e("div",{className:`absolute inset-0 overflow-hidden${q?" rounded-[inherit]":""}`,children:L(Kl,{move:w,className:"absolute inset-0",children:[Ns,Qe]})}):L(P,{children:[Ns,Qe]})]}),!ie&&Qe,e(zr,{wash:te&&xe.className?{...te,...xe.style}:te,hover:w?.washHover,...q?{className:"rounded-[inherit]"}:{},...xe.className?{restClassName:xe.className}:{}}),te?e(Ur,{children:ks}):ks,le?e("div",{[Ll]:"",className:$l,children:yo?e(Pl,{state:yo}):null}):null]})}))}export{ni as default};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { SlotComponent } from "efficient-easel/blocks";
|
|
2
|
+
import type { RootPadAttrs } from "../lib/content/section-padding.js";
|
|
2
3
|
interface GridProps {
|
|
3
4
|
columns?: number | string;
|
|
4
5
|
mobileColumns?: number | string;
|
|
@@ -8,6 +9,7 @@ interface GridProps {
|
|
|
8
9
|
contained?: boolean;
|
|
9
10
|
fillHeight?: boolean;
|
|
10
11
|
content: SlotComponent;
|
|
12
|
+
pad?: RootPadAttrs | null;
|
|
11
13
|
}
|
|
12
|
-
export default function Grid({ columns, mobileColumns, gap, gapPhone, gapTablet, contained, fillHeight, content: Content, }: GridProps): import("react").JSX.Element;
|
|
14
|
+
export default function Grid({ columns, mobileColumns, gap, gapPhone, gapTablet, contained, fillHeight, content: Content, pad, }: GridProps): import("react").JSX.Element;
|
|
13
15
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as s}from"react/jsx-runtime";import{FRAME_BASE as i,FRAME_GUTTER as m}from"./BlockFrame.js";import{SlotsStartAfresh as G,useFillsCell as A}from"./InBoxContext.js";import E from"./SiteGutterFrame.js";import{containerGapProps as F}from"../../format/lib/content/container-gap.js";import{resolveGridColumns as N,resolveGridMobileColumns as _}from"../../format/lib/content/grid-span.js";import{SECTION_FILL_CLASS as x}from"../../format/lib/content/section-min-height.js";import{partAttr as R}from"../../format/lib/content/part-names.js";import{withRootPad as a}from"../lib/content/section-own-pads.js";function b({columns:o,mobileColumns:n,gap:f,gapPhone:c,gapTablet:p,contained:d=!0,fillHeight:C=!1,content:u,pad:t}){const $=A(),r=C||$?` ${x}`:"",l=a(`${i} py-6 ${m}${r}`,t),g=l.className,S=a(`w-full py-6${r}`,t).className,h=N(o),y=_(n,o),e=F("Grid",f,"both",c,p);return s(E,{contained:d,framedClass:g,fillClass:S,columnClass:`${i} ${m}${r}`,style:l.style,box:!0,part:R("grid"),children:s(G,{children:s(u,{className:`sf-grid-zone grid${e.className}${r}`,style:{...e.style,"--sf-grid-cols":String(h),"--sf-grid-cols-phone":String(y)},minEmptyHeight:120})})})}export{b as default};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { RootPadAttrs } from "../lib/content/section-padding.js";
|
|
1
2
|
export interface IntegrationsTextItem {
|
|
2
3
|
text?: string;
|
|
3
4
|
}
|
|
@@ -10,5 +11,6 @@ export interface IntegrationsSectionProps {
|
|
|
10
11
|
statLabel?: string;
|
|
11
12
|
note?: string;
|
|
12
13
|
editing?: boolean;
|
|
14
|
+
pad?: RootPadAttrs | null;
|
|
13
15
|
}
|
|
14
|
-
export default function IntegrationsSection({ eyebrow, title, body, apps, statValue, statLabel, note, editing, }?: IntegrationsSectionProps): import("react").JSX.Element | null;
|
|
16
|
+
export default function IntegrationsSection({ eyebrow, title, body, apps, statValue, statLabel, note, editing, pad, }?: IntegrationsSectionProps): import("react").JSX.Element | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as x}from"react/jsx-runtime";import{HideTaker as
|
|
1
|
+
import{jsx as e,jsxs as x}from"react/jsx-runtime";import{HideTaker as u}from"./ViewHideRoot.js";import{AppChip as v}from"./Logos.js";import{renderGold as f,renderHeadline as w}from"./goldPhrases.js";import{say as N}from"../../format/lib/editor-words.js";import{withRootPad as _}from"../lib/content/section-own-pads.js";import{dealRows as k,INTEGRATION_ROWS as y,rowTurnSeconds as R}from"../../format/lib/sections/integrations-rows.js";const b=(a,t)=>k(a,t).filter(i=>i.length>0),j=({name:a})=>e(v,{alt:a});function q({names:a,reverse:t}){return e("div",{className:"overflow-hidden","aria-hidden":!1,children:e("div",{className:"flex w-max gap-3 pr-3 [animation:sf-marquee_var(--sf-marquee-t)_linear_infinite] motion-reduce:[animation:none]",style:{"--sf-marquee-t":`${R(a.length)}s`,animationDirection:t?"reverse":"normal"},children:[0,1].map(i=>e("div",{className:"flex gap-3","aria-hidden":i===1,children:a.map((n,m)=>e(j,{name:n},m))},i))})})}function T({eyebrow:a,title:t,body:i,apps:n,statValue:m,statLabel:l,note:s,editing:o=!1,pad:h}={}){const d=(n??[]).map(r=>(r.text??"").trim()).filter(r=>o||r).map(r=>r||N("App")),g=!!(a??"").trim()||!!(t??"").trim();if(!o&&!g&&d.length===0)return null;const p=b(d,y);return x(u,{as:"section",..._("relative z-[2] overflow-hidden border-y border-line bg-surface py-[76px]",h),children:[x("div",{className:"mx-auto mb-12 max-w-[860px] px-10 text-center max-[960px]:px-6",children:[(a??"").trim()&&e("span",{className:"inline-block bg-accent px-3.5 py-1.5 font-mono text-[12px] font-semibold uppercase tracking-[0.16em] text-bg",children:f(a??"")}),(t??"").trim()&&e("h2",{className:"mt-5 font-display text-[40px] font-medium uppercase leading-[1.04] tracking-[-0.02em] text-fg max-view-wide:text-[30px]",children:w(t??"",!1)}),(i??"").trim()&&e("p",{className:"mx-auto mt-5 max-w-[60ch] text-[15px] leading-relaxed text-fg/65",children:i})]}),p.length>0&&e("div",{className:"flex flex-col gap-3",children:p.map((r,c)=>e(q,{names:r,reverse:c%2===1},c))}),((m??"").trim()||(s??"").trim())&&x("div",{className:"mx-auto mt-12 max-w-[860px] px-10 text-center max-[960px]:px-6",children:[(m??"").trim()&&e("div",{className:"font-display text-[min(64px,var(--sf-heading-max,9999px))] font-medium uppercase leading-none text-accent max-view-wide:text-[min(46px,var(--sf-heading-max,9999px))]",children:m}),(l??"").trim()&&e("div",{className:"mt-2 font-display text-[18px] font-medium uppercase tracking-[0.06em] text-fg",children:f(l??"")}),(s??"").trim()&&e("p",{className:"mx-auto mt-4 max-w-[52ch] text-[13px] leading-relaxed text-fg/50",children:s})]})]})}export{T as default};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { SectionEyebrowLook } from "../../format/lib/sections/section-eyebrow-look.js";
|
|
2
|
+
import type { RootPadAttrs } from "../lib/content/section-padding.js";
|
|
2
3
|
export interface KeyFeatureItem {
|
|
3
4
|
label?: string;
|
|
4
5
|
href?: string;
|
|
@@ -10,5 +11,6 @@ export interface KeyFeaturesProps {
|
|
|
10
11
|
items?: KeyFeatureItem[];
|
|
11
12
|
columns?: number;
|
|
12
13
|
editing?: boolean;
|
|
14
|
+
pad?: RootPadAttrs | null;
|
|
13
15
|
}
|
|
14
|
-
export default function KeyFeatures({ look, eyebrow, title, items, columns, editing, }?: KeyFeaturesProps): import("react").JSX.Element | null;
|
|
16
|
+
export default function KeyFeatures({ look, eyebrow, title, items, columns, editing, pad, }?: KeyFeaturesProps): import("react").JSX.Element | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as l,Fragment as
|
|
1
|
+
import{jsx as e,jsxs as l,Fragment as v}from"react/jsx-runtime";import{HideTaker as k}from"./ViewHideRoot.js";import{SiteLink as w}from"../lib/site-runtime.js";import{siteLinkDraws as y}from"../../format/lib/content/box-link.js";import{cardColumns as N}from"../../format/lib/content/card-columns.js";import S from"./SectionEyebrow.js";import{renderGold as M,renderHeadline as T}from"./goldPhrases.js";import{say as j}from"../../format/lib/editor-words.js";import{withSideOnce as z}from"../../format/lib/content/page-width.js";import{withRootPad as F}from"../lib/content/section-own-pads.js";import{useSideSpaceOnce as _}from"./SideSpaceOnce.js";const d={headingMediumUpTo800:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMedium:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]",body:"text-[length:var(--size-body,17px)]"};function E({look:f,eyebrow:i,title:t,items:x,columns:g,editing:s=!1,pad:h}={}){const u=_(),b=N(g),n=(x??[]).filter(r=>s||(r.label??"").trim()),c=!!(i??"").trim()||!!(t??"").trim();return!s&&!c&&n.length===0?null:e(k,{as:"section",className:"relative z-[2] border-y border-line bg-surface",children:l("div",{...F(z("mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] py-[76px] max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",u),h),children:[c&&l("div",{className:"mb-11 flex flex-wrap items-baseline gap-5 max-view-wide:mb-8",children:[(i??"").trim()&&e(S,{text:i??"",look:f}),(t??"").trim()&&e("h2",{className:`font-heading2 ${d.headingMedium} font-medium uppercase leading-none tracking-[-0.02em] text-fg ${d.headingMediumUpTo800}`,children:T(t??"",!1)})]}),n.length>0&&e("div",{className:"sf-card grid grid-cols-1 gap-px border border-line bg-line min-[700px]:[grid-template-columns:repeat(var(--kf-cols),minmax(0,1fr))]",style:{"--kf-cols":String(b)},children:n.map((r,m)=>{const o=l(v,{children:[e("span",{"aria-hidden":!0,className:"h-[9px] w-[9px] flex-shrink-0 rotate-45 bg-accent"}),e("span",{className:`font-display ${d.body} font-medium uppercase tracking-[0.06em] text-fg transition-colors group-hover/kf:text-accent`,children:M((r.label??"").trim()||j("Feature"))})]}),a=(r.href??"").trim();if(a&&!s){const p="group/kf flex items-center gap-4 bg-bg px-7 py-[30px] transition-colors hover:bg-surface";return y(a)?e(w,{newTab:"auto",href:a,className:p,children:o},m):e("a",{href:a,className:p,children:o},m)}return e("div",{className:"flex items-center gap-4 bg-bg px-7 py-[30px]",children:o},m)})})]})})}export{E as default};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { SlotComponent } from "efficient-easel/blocks";
|
|
2
2
|
import type { ReactNode } from "react";
|
|
3
3
|
import { type LogoLook } from "../../format/lib/sections/logo-look.js";
|
|
4
|
+
import type { RootPadAttrs } from "../lib/content/section-padding.js";
|
|
4
5
|
interface LogoItem {
|
|
5
6
|
src: string;
|
|
6
7
|
alt: string;
|
|
@@ -21,8 +22,9 @@ interface LogosProps {
|
|
|
21
22
|
labelledBy?: string;
|
|
22
23
|
omitHead?: boolean;
|
|
23
24
|
cards?: ReactNode;
|
|
25
|
+
pad?: RootPadAttrs | null;
|
|
24
26
|
}
|
|
25
|
-
export default function Logos({ items, contained, heading, columns, grayscale, logoHeight, bandPadding, logos: LogoBlocks, look, omitHead, cards, align, alignTablet, alignPhone, labelledBy, }: LogosProps): import("react").JSX.Element;
|
|
27
|
+
export default function Logos({ items, contained, heading, columns, grayscale, logoHeight, bandPadding, logos: LogoBlocks, look, omitHead, cards, align, alignTablet, alignPhone, labelledBy, pad, }: LogosProps): import("react").JSX.Element;
|
|
26
28
|
export declare const CARD_WORDS_CLASS = "font-mono text-[12px] uppercase tracking-[0.18em]";
|
|
27
29
|
export declare function AppChip({ src, alt }: {
|
|
28
30
|
src?: string;
|