efficient-web-builder 74.1.0 → 74.2.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 +23 -0
- package/dist/editor/components/PreviewFooterContext.d.ts +3 -1
- package/dist/editor/components/PreviewFooterContext.js +1 -1
- package/dist/editor/components/StorefrontEditor.js +1 -1
- package/dist/editor/components/storefront-editor.css +7 -0
- package/dist/editor/lib/document/blocks/general/ContactLocations/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Footprint/fields.d.ts +3 -0
- package/dist/editor/lib/document/blocks/general/Footprint/fields.js +1 -1
- package/dist/editor/lib/document/controls.d.ts +1 -0
- package/dist/editor/lib/document/controls.js +1 -1
- package/dist/editor/lib/document/page-root-fields.d.ts +4 -0
- package/dist/editor/lib/document/page-root-fields.js +1 -1
- package/dist/editor/lib/document/page-root.d.ts +3 -2
- package/dist/editor/lib/document/page-root.js +2 -2
- package/dist/editor/lib/document/registry.js +1 -1
- package/dist/editor/lib/editor-document-adapter.d.ts +1 -0
- package/dist/editor/lib/editor-document-adapter.js +1 -1
- package/dist/editor/lib/pinned-chrome-doc.d.ts +1 -0
- package/dist/editor/lib/pinned-chrome-doc.js +1 -1
- package/dist/format/lib/build/module-specifiers.d.ts +8 -0
- package/dist/format/lib/build/module-specifiers.js +1 -1
- package/dist/format/lib/content/block-sources.d.ts +1 -0
- package/dist/format/lib/content/block-sources.js +1 -1
- package/dist/format/lib/content/page-width.d.ts +15 -0
- package/dist/format/lib/content/page-width.js +1 -1
- package/dist/format/lib/content/section-css.d.ts +1 -1
- package/dist/format/lib/content/section-css.js +1 -1
- package/dist/format/lib/content/site-css.d.ts +5 -0
- package/dist/format/lib/content/site-css.js +1 -0
- package/dist/format/lib/content/site-offices.d.ts +7 -0
- package/dist/format/lib/content/site-offices.js +1 -0
- package/dist/format/lib/editor-words-catalogue.d.ts +3 -0
- package/dist/format/lib/editor-words-catalogue.js +3 -3
- package/dist/format/lib/source-rules/panel-colour-tokens.js +7 -7
- package/dist/format/lib/source-rules/site-gutter-once.d.ts +12 -0
- package/dist/format/lib/source-rules/site-gutter-once.js +23 -0
- package/dist/render/components/Breadcrumb.js +1 -1
- package/dist/render/components/Cards.js +1 -1
- package/dist/render/components/ChartSection.js +1 -1
- package/dist/render/components/ContactLocations.js +2 -2
- package/dist/render/components/Countdown.js +1 -1
- package/dist/render/components/DocBody.js +5 -5
- package/dist/render/components/DocMasthead.js +1 -1
- package/dist/render/components/DocMetaCards.js +1 -1
- package/dist/render/components/FAQ.js +1 -1
- package/dist/render/components/FeaturedCover.js +1 -1
- package/dist/render/components/Flex.js +1 -1
- package/dist/render/components/Footprint.js +1 -1
- package/dist/render/components/HeroGroup.js +1 -1
- package/dist/render/components/HeroSingle.js +1 -1
- package/dist/render/components/HeroSlide.js +1 -1
- package/dist/render/components/ImageBlock.js +1 -1
- package/dist/render/components/KeyFeatures.js +1 -1
- package/dist/render/components/LongRead.js +1 -1
- package/dist/render/components/Manifesto.js +1 -1
- package/dist/render/components/Masthead.js +1 -1
- package/dist/render/components/MockupSection.js +1 -1
- package/dist/render/components/ParagraphsA.js +1 -1
- package/dist/render/components/ProcessSteps.js +1 -1
- package/dist/render/components/Prose.js +1 -1
- package/dist/render/components/SectionHeader.js +1 -1
- package/dist/render/components/Series.js +1 -1
- package/dist/render/components/SideSpaceOnce.d.ts +6 -0
- package/dist/render/components/SideSpaceOnce.js +1 -0
- package/dist/render/components/SiteGutterFrame.js +1 -1
- package/dist/render/components/SiteOffices.d.ts +5 -0
- package/dist/render/components/SiteOffices.js +1 -0
- package/dist/render/components/SiteRootProps.d.ts +6 -0
- package/dist/render/components/SiteRootProps.js +1 -0
- package/dist/render/components/SpecStrip.js +1 -1
- package/dist/render/components/Split.js +1 -1
- package/dist/render/components/StatsParagraph.js +1 -1
- package/dist/render/components/Testimonials.js +1 -1
- package/dist/render/components/Timeline.js +1 -1
- package/dist/render/components/TimelineTrack.js +1 -1
- package/dist/render/components/TitleWithButtons.js +1 -1
- 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/document/blocks/general/ContactLocations/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Footprint/render.js +1 -1
- package/dist/render/lib/document/blocks/general/SectionHeader/render.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
- package/dist/render/lib/document/custom-css.d.ts +2 -1
- package/dist/render/lib/document/passes/section-custom-css.d.ts +7 -0
- package/dist/render/lib/document/passes/section-custom-css.js +1 -1
- package/dist/render/lib/document/passes/section-padding.js +1 -1
- package/dist/render/lib/document/passes/section-width.js +1 -1
- package/dist/render/lib/document/section-css-style.d.ts +3 -1
- package/dist/render/lib/document/section-css-style.js +1 -1
- package/dist/routine-index.json +1 -1
- package/dist/value-index.json +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,Fragment as
|
|
1
|
+
import{jsx as e,Fragment as ie,jsxs as w}from"react/jsx-runtime";import{PagePicture as me}from"../lib/first-screen.js";import{SiteLink as ae}from"../lib/site-runtime.js";import{siteLinkDraws as ce}from"../../format/lib/content/box-link.js";import ne from"./BlockFrame.js";import{partAttr as F}from"../../format/lib/content/part-names.js";import{useCellPictureSizes as fe}from"./BoxCellContext.js";import{useBoxCell as pe,useFillsCell as ue}from"./InBoxContext.js";import{useInsideSiteGutter as de,useSectionEdge as ge}from"./SiteGutterFrame.js";import{useSitePhotography as he}from"./SitePhotographyContext.js";import{media as Se}from"../lib/media.js";import{CONTENT_SIZES as j,sizedImage as ve}from"../../format/lib/sized-image.js";import{imageCornerStyle as we}from"../../format/lib/content/image-corners.js";import{FILL_ROW as Fe,imageAspectClasses as Ne,pictureLayerClass as ye,imageFillFrom as Ce,imageAspectDrawn as be,imageAspectDrawsARatio as Ae,imageFocalPointActs as xe,imageFocalPointActsIn as E,imageAspectPhoneOf as ke,imageFillRowClasses as Ie,imageWidthFollowsBox as $e,imageShapeStyle as Oe}from"../../format/lib/content/image-aspect.js";import{drawsSiteGutter as _e}from"../../format/lib/content/site-gutter.js";import{imageFitClass as Pe,parseImageFit as Re}from"../../format/lib/content/image-fit.js";import{SECTION_FILL_CLASS as je}from"../../format/lib/content/section-min-height.js";import{PICTURE_WASH_CLASS as Ee,resolveImageTreatment as He}from"../../format/lib/content/image-treatment.js";import{boxDarkenStyle as ze}from"../../format/lib/content/box-background.js";import{HOVER_LAYER_GROUND as Le}from"../../format/lib/content/hover-media.js";import{phoneFocus as Te}from"../../format/lib/content/phone-focus.js";import{say as De}from"../../format/lib/editor-words.js";import{sectionEdgeAttrs as Ge}from"../lib/content/section-edge.js";import{useSideSpaceOnce as We}from"./SideSpaceOnce.js";import Be from"./PhotoHoverSheet.js";import Me from"./PictureWash.js";import Ze from"./HoverMediaLayer.js";import{PictureHoverMoveSheet as Ue,PictureHoverZoom as Ve,pictureHoverMoveOf as Ye}from"./PictureHoverMove.js";import{PictureZoom as qe}from"./PictureZoom.js";function Je({src:o,alt:H,aspect:z,aspectPhone:l,contained:N,grayscale:L,pictureHover:y,hoverLayer:s,darken:T,darkenStyle:C,href:D,fit:G,focal:b,focalPhone:W,focalTablet:B,corners:M,cornerSides:Z,cornersUnit:U,pad:A,ownSize:V=!1,editing:x=!1}){const c=He(L,he(),y),u=pe(),Y=ue(),d=ge(),q=fe(j),t=be(z,u?.picturesFillRow===!0),g=t===Fe,k=Ce(u?.fillFrom,u?.phoneRowFills===!0,l),i=g?Ie(k):null,h=ke(t,l),m=Re(G,"cover"),J=d||!$e(t,h,m)?j:q,I=we(M,Z,U),K=xe(m,t,l),S=Te(E("mobile",m,t,l)?W:void 0,E("tablet",m,t,l)?B:void 0),$={...c.style??{},...b&&K?{objectPosition:b}:{},...S.style},n=o?ve(Se(o)):null,r=Ye(y,C),Q=ze(T,C),X=r?.washHover??null,O=Oe(t,h),_=O?{...r?.style??{},...O}:r?.style??{},f=s&&o?e(Ze,{media:s.media,name:s.name,cover:s.cover,ground:Le[s.cover]}):null,P=o&&n?e(me,{src:n.src,...n.srcSet?{srcSet:n.srcSet,sizes:J}:{},alt:H,className:`${i?`${i.img} `:""}h-full w-full ${Ae(t,l)?Pe(m):""}${c.className?` ${c.className}`:""}${S.className?` ${S.className}`:""}`,...Object.keys($).length?{style:$}:{},...F("image")}):null,v=P?w(ie,{children:[e(Be,{sheet:c.sheet}),e(Ue,{move:r}),e(Ve,{move:r,className:ye(i),children:P}),e(Me,{wash:Q,hover:X,className:`pointer-events-none ${Ee}`})]}):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:De("Image — set a path")}),p=(D??"").trim(),ee=p&&o?ce(p)?e(ae,{href:p,className:"block h-full w-full",newTab:"auto",children:v}):e("a",{href:p,className:"block h-full w-full",children:v}):v,te=de(),oe=We(),a=d&&!V?Ge(d,oe):null,R=A?{values:A,frame:g?0:24}:void 0,se=R!==void 0&&_e(a?!1:N,te),re=g?Y||x||se?je:"":"py-6",le=o&&m==="contain"?"":"bg-surface ";return!o&&!x?null:w(ne,{contained:a?!1:N,className:re,pad:R,...a?{fillWidth:a.className,style:a.style}:{},part:F("image-block"),children:[e("figure",{...i?{className:i.figure}:{},children:w("div",{className:`relative w-full overflow-hidden ${le}${Ne(t,h,k)}${r?` ${r.className}`:""}`,...I||Object.keys(_).length?{style:{...I,..._}}:{},...F("image-frame"),children:[e(qe,{fill:i,children:ee}),f&&s?.cover==="picture"?f:null]})}),f&&s?.cover==="card"?f:null]})}export{Je as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as
|
|
1
|
+
import{jsx as e,jsxs as l,Fragment as b}from"react/jsx-runtime";import{HideTaker as v}from"./ViewHideRoot.js";import{SiteLink as k}from"../lib/site-runtime.js";import{siteLinkDraws as w}from"../../format/lib/content/box-link.js";import{cardColumns as y}from"../../format/lib/content/card-columns.js";import N from"./SectionEyebrow.js";import{renderGold as S,renderHeadline as M}from"./goldPhrases.js";import{say as T}from"../../format/lib/editor-words.js";import{withSideOnce as j}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as z}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 F({look:x,eyebrow:i,title:t,items:f,columns:g,editing:s=!1}={}){const h=z(),u=y(g),n=(f??[]).filter(r=>s||(r.label??"").trim()),c=!!(i??"").trim()||!!(t??"").trim();return!s&&!c&&n.length===0?null:e(v,{as:"section",className:"relative z-[2] border-y border-line bg-surface",children:l("div",{className:j("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))]",h),children:[c&&l("div",{className:"mb-11 flex flex-wrap items-baseline gap-5 max-view-wide:mb-8",children:[(i??"").trim()&&e(N,{text:i??"",look:x}),(t??"").trim()&&e("h2",{className:`font-heading2 ${d.headingMedium} font-medium uppercase leading-none tracking-[-0.02em] text-fg ${d.headingMediumUpTo800}`,children:M(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(u)},children:n.map((r,m)=>{const o=l(b,{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:S((r.label??"").trim()||T("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 w(a)?e(k,{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{F as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as r,Fragment as m}from"react/jsx-runtime";import{EDITORIAL_COLUMN as E}from"../../format/lib/content/page-width.js";import{HideTaker as
|
|
1
|
+
import{jsx as e,jsxs as r,Fragment as m}from"react/jsx-runtime";import{EDITORIAL_COLUMN as E,withSideOnce as B}from"../../format/lib/content/page-width.js";import{HideTaker as F}from"./ViewHideRoot.js";import{Fragment as w}from"react";import{SiteLink as I}from"../lib/site-runtime.js";import T from"./PostDate.js";import{stripMarkup as C}from"../../format/lib/markup.js";import D from"./EditorialSectionHead.js";import H from"./Placeholder.js";import M from"./SectionEyebrow.js";import{renderGold as a,renderHeadline as S}from"./goldPhrases.js";import{scrim as z}from"../../format/lib/content/scrim.js";import{useSideSpaceOnce as G}from"./SideSpaceOnce.js";const n={bodySmall:"text-[length:var(--size-body,14px)]",body:"text-[length:var(--size-body,17px)]",bodyLarge:"text-[length:var(--size-body,22px)]",labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"};function R({headNum:L,headTitle:f,headDesc:x,category:g,metaMiddle:b,readLabel:h,title:i,dek:v,quote:o,quoteAttribution:s,ctaText:u,ctaHref:$,image:O,imageLabel:k,metaPublished:d,metaPublishedAt:t,metaReads:c,omitHead:y=!1}){const _=G(),N=[g?e("span",{className:"text-accent",children:a(g)}):null,b?e("span",{children:a(b)}):null,h?e("span",{children:a(h)}):null].filter(Boolean),j=!!t||!!d||!!c;return e(F,{as:"section",className:y?"border-b border-line pt-0 pb-[120px] max-view-desktop:pt-0 max-view-desktop:pb-20":"border-b border-line py-[120px] max-view-desktop:py-20",children:r("div",{className:B(E,_),children:[y?null:e(D,{num:L,title:f?S(f,!0):void 0,desc:x?a(x):void 0}),r("article",{className:"sf-card grid min-h-[640px] grid-cols-[1fr_1.2fr] border border-line max-view-desktop:grid-cols-1",children:[r("div",{className:"flex flex-col justify-center gap-7 border-r border-line bg-surface px-14 py-16 max-view-desktop:border-r-0 max-view-desktop:border-b max-view-desktop:px-7 max-view-desktop:py-12",children:[N.length>0&&e("div",{className:`flex items-center gap-3.5 font-mono ${n.labelSmall} uppercase tracking-[0.3em] text-fg-dim`,children:N.map((p,l)=>r(w,{children:[l>0&&e("span",{className:"opacity-40",children:"·"}),p]},l))}),i&&e("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(36px,4.2vw,68px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[0.95] tracking-[-0.035em]",children:S(i,!0)}),v&&e("p",{className:`font-serif ${n.bodyLarge} italic leading-[1.45] text-fg`,children:a(v)}),(o||s)&&r("blockquote",{className:`max-w-[520px] border-l-2 border-accent py-1.5 pl-[22px] font-serif ${n.body} italic leading-[1.6] text-fg-dim`,children:[o&&r(m,{children:["“",a(o),"”"]}),s&&e("strong",{className:`mt-2.5 block font-display ${n.bodySmall} font-normal not-italic uppercase tracking-[0.22em] text-fg`,children:a(s)})]}),u&&r(I,{newTab:"auto",href:$||"#",className:`inline-flex items-center gap-3.5 self-start border border-btn px-7 py-4 font-mono ${n.labelLarge} uppercase tracking-[0.3em] text-btn transition-colors hover:bg-btn hover:text-btn-ink`,children:[a(u)," ",e("span",{children:"→"})]})]}),r("div",{className:"relative overflow-hidden bg-surface-2 max-view-desktop:aspect-[4/3]",children:[e(H,{label:"long-read",src:O||void 0,alt:C(i||"Long read"),sizes:"(max-width: 1100px) 100vw, 56vw"}),e("div",{className:"pointer-events-none absolute inset-0 z-[1]",style:{background:`linear-gradient(180deg, ${z(.55)} 0%, transparent 25%, transparent 60%, ${z(.7)} 100%)`}}),k&&e(M,{text:k,size:12,className:"absolute right-6 top-6 z-[2]"}),j&&e("div",{className:`absolute bottom-6 left-6 z-[2] font-mono ${n.labelSmall} uppercase leading-[1.8] tracking-[0.22em] text-overlay-fg`,children:[t||d?r(m,{children:[e("strong",{className:"font-normal text-accent",children:"Published"})," ",t?e(T,{at:t}):a(d)]}):null,c?r(m,{children:[e("strong",{className:"font-normal text-accent",children:"Reads in"})," ",a(c)]}):null].filter(Boolean).map((p,l)=>r(w,{children:[l>0&&e("br",{}),p]},l))})]})]})]})})}export{R as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as o}from"react/jsx-runtime";import
|
|
1
|
+
import{jsx as e,jsxs as o}from"react/jsx-runtime";import w from"./AnimatedStat.js";import{HideTaker as y}from"./ViewHideRoot.js";import S from"./Placeholder.js";import{useSitePhotography as _}from"./SitePhotographyContext.js";import N from"./SectionEyebrow.js";import{renderGold as j,renderHeadline as T,splitParagraphs as M}from"./goldPhrases.js";import{resolveImageTreatment as z}from"../../format/lib/content/image-treatment.js";import{sectionRunsFullWidth as E}from"../../format/lib/content/section-width.js";import{SECTION_FILL_CLASS as I}from"../../format/lib/content/section-min-height.js";import{HALF_SIZES as $}from"../../format/lib/sized-image.js";import{withSideOnce as F}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as L}from"./SideSpaceOnce.js";const t={headingMediumUpTo800:"max-view-wide:text-[length:min(var(--size-headingMedium,36px),var(--sf-heading-max,9999px))]",headingMedium:"text-[length:min(var(--size-headingMedium,56px),var(--sf-heading-max,9999px))]",body:"text-[length:var(--size-body,16px)]"};function O({eyebrow:s,heading:d,body:x,stats:p,imageSrc:c,grayscale:f,pictureHover:g,fillHeight:u=!1,...h}={}){const v=L(),b=z(f,_(),g),l=s||null,m=d||null,n=x||null,a=(p??[]).filter(r=>(r.value??"").trim()!==""||(r.label??"").trim()!=="");return e(y,{as:"section",className:"relative z-[2] bg-bg p-0",children:o("div",{className:`grid ${u?I:"h-screen"} min-h-[100vh] grid-cols-2 border-y border-line max-[960px]:h-auto max-[960px]:grid-cols-1`,children:[e("div",{className:F("flex flex-col justify-center border-r border-line px-[var(--sf-site-gutter,40px)] py-[100px] max-[960px]:order-2 max-[960px]:border-r-0 max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[960px]:py-[60px]",v),children:o("div",{className:E(h)?"flex w-full flex-col gap-7":"ml-auto flex w-full flex-col gap-7 max-w-[calc(var(--sf-site-width,1600px)/2_-_var(--sf-site-gutter,40px)*2_-_1px)] max-[960px]:ml-0 max-[960px]:max-w-none",children:[l!==null&&e(N,{text:l,size:14}),m!==null&&e("h2",{className:`font-heading2 ${t.headingMedium} font-normal leading-[1.05] tracking-[-0.03em] ${t.headingMediumUpTo800} max-view-wide:leading-[1]`,children:T(m,!0)}),n!==null&&M(n).map((r,i)=>e("p",{className:`max-w-[520px] ${t.body} leading-[1.7] text-fg-dim`,children:j(r)},i)),a.length>0&&e("div",{className:"mt-4 grid max-w-[520px] gap-6 border-t border-line pt-7",style:{gridTemplateColumns:`repeat(${a.length}, minmax(0, 1fr))`},children:a.map((r,i)=>e(w,{target:r.value??"",label:r.label??""},i))})]})}),e("div",{className:"sf-card relative flex items-center justify-center bg-surface overflow-hidden max-[960px]:aspect-[4/3]",children:e(S,{label:"manifesto",src:c||void 0,objectFit:"cover",objectPosition:"center",treatment:b,sizes:$})})]})})}export{O as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as t,Fragment as
|
|
1
|
+
import{jsx as t,Fragment as k,jsxs as a}from"react/jsx-runtime";import{EDITORIAL_COLUMN as w,withSideOnce as N}from"../../format/lib/content/page-width.js";import{HideTaker as S}from"./ViewHideRoot.js";import u from"./SectionEyebrow.js";import{renderGold as r,renderHeadline as _,splitParagraphs as j}from"./goldPhrases.js";import{useSideSpaceOnce as O}from"./SideSpaceOnce.js";const i={body:"text-[length:var(--size-body,18px)]",headingSmall:"text-[length:var(--size-headingSmall,20px)]",label:"text-[length:var(--size-label,13px)]"};function y({eyebrow:l,issueMeta:x,lead:g,issueHeading:n,issueList:h,issueTotal:o}){const f=O(),d=(x??[]).filter(e=>(e?.lead??"").trim()||(e?.rest??"").trim()),c=(h??[]).map(e=>e?.text??"").filter(e=>e.trim()),m=j(g??""),b=!!l||d.length>0,p=!!n||c.length>0||!!o,v=m.length>0||p;return t(S,{as:"section",className:"border-b border-line pt-20 pb-10 max-view-desktop:pt-[60px] max-view-desktop:pb-8",children:a("div",{className:N(w,f),children:[b&&a("div",{className:"flex items-end justify-between gap-[60px] pb-8 max-view-desktop:flex-col max-view-desktop:items-start max-view-desktop:gap-4",children:[l&&t(u,{text:l,size:14,className:"pb-3.5"}),d.length>0&&t("div",{className:`pb-3.5 text-right font-mono ${i.label} uppercase leading-[1.8] tracking-[0.18em] text-fg-dim max-view-desktop:text-left`,children:d.map((e,s)=>a("div",{children:[t("strong",{className:"font-normal text-fg",children:r(e.lead??"")}),e.rest?.trim()?a(k,{children:[" ",r(e.rest)]}):null]},s))})]}),v&&a("div",{className:"grid grid-cols-[1fr_auto] items-start gap-[60px] border-t border-line pt-8 max-view-desktop:grid-cols-1 max-view-desktop:gap-4",children:[m.length>0&&t("div",{className:"max-w-[720px]",children:m.map((e,s)=>t("p",{className:`font-heading3 ${i.headingSmall} leading-[1.5] tracking-[-0.005em] text-fg [&:not(:first-child)]:mt-4`,children:r(e,!0)},s))}),p&&a("div",{className:`min-w-[240px] text-right font-mono ${i.label} uppercase leading-[1.9] tracking-[0.22em] text-fg-dim max-view-desktop:text-left`,children:[n&&t("strong",{className:`mb-1.5 block font-display ${i.body} font-normal tracking-[-0.01em] normal-case text-fg`,children:_(n,!1)}),c.map((e,s)=>a("span",{children:[r(e),t("br",{})]},s)),o&&t("span",{className:"text-accent",children:r(o)})]})]})]})})}export{y as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as r,Fragment as I}from"react/jsx-runtime";import{HideTaker as re}from"./ViewHideRoot.js";import{renderGold as ne,renderHeadline as se}from"./goldPhrases.js";const F={headingMediumUpTo800:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMedium:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]"},_="#ffffff",d="#16181d",o="#5b6470",u="#9aa3ae",x="#f4f6f8",m="#e3e7ec",g="#1f9d55";function ce({rows:n}){return e("div",{className:"flex flex-col gap-3",children:n.map((l,c)=>{const a=l.state??"ok",s=a==="no";return r("div",{className:"flex items-center gap-3 rounded-lg border px-4 py-3",style:{background:s?"#fbfbfc":x,borderColor:m},children:[a==="no"?e("span",{"aria-hidden":!0,className:"text-[15px] font-bold",style:{color:u},children:"✕"}):e("span",{"aria-hidden":!0,className:"h-[11px] w-[11px] flex-shrink-0 rounded-full",style:{background:a==="warn"?"var(--accent)":g}}),e("span",{className:"text-[14px] font-semibold",style:{color:s?u:d},children:l.lead}),e("span",{className:"text-[13px]",style:{color:s?u:o},children:l.detail}),(l.status??"").trim()&&e("span",{className:"ml-auto whitespace-nowrap text-[12px] font-bold",style:{color:a==="ok"?g:a==="warn"?"var(--accent)":u},children:l.status})]},c)})})}const W=["#c7cdd5","var(--accent)","#c7cdd5",g];function de({columns:n}){return e("div",{className:"grid gap-2 rounded-xl p-3",style:{background:x,gridTemplateColumns:`repeat(${n.length}, minmax(0, 1fr))`},children:n.map((l,c)=>r("div",{className:"flex flex-col gap-2",children:[r("div",{className:"flex items-baseline justify-between px-1",children:[e("span",{className:"font-mono text-[9px] font-semibold uppercase tracking-[0.14em]",style:{color:o},children:l.title}),e("span",{className:"font-mono text-[9px] font-bold",style:{color:"var(--accent)"},children:l.cards.length})]}),l.cards.map((a,s)=>r("div",{className:"rounded-md border px-2.5 py-2",style:{background:_,borderColor:c===n.length-1?"#bfe3ce":m},children:[e("span",{"aria-hidden":!0,className:"mb-1.5 block h-[8px] w-[8px] rounded-full",style:{background:W[c%W.length]}}),e("span",{className:"block text-[11px] font-semibold leading-snug",style:{color:d},children:a})]},s))]},c))})}function ie({heading:n,bars:l}){const c=Math.max(...l.map(s=>s.value),0)||1,a=l.findIndex(s=>s.value===c);return r("div",{className:"border-t pt-4",style:{borderColor:m},children:[n.trim()&&e("div",{className:"mb-3 font-mono text-[10px] font-semibold uppercase tracking-[0.18em]",style:{color:o},children:n}),e("div",{className:"flex flex-col gap-2.5",children:l.map((s,i)=>r("div",{className:"flex items-center gap-3",children:[e("span",{className:"w-[84px] flex-shrink-0 text-[12px] font-bold",style:{color:d},children:s.label}),e("span",{className:"h-[12px] rounded-full",style:{width:`${Math.max(s.value/c*60,4)}%`,background:i===a?"var(--accent)":i%2?"#c7cdd5":"#9aa3ae"}}),r("span",{className:"text-[12px]",style:{color:o},children:[s.value,"%"]})]},i))})]})}function K({size:n}){const l=n/2;return r("svg",{width:n,height:n,viewBox:`0 0 ${n} ${n}`,"aria-hidden":!0,children:[e("circle",{cx:l,cy:l,r:l*.82,fill:"none",stroke:"#9aa3ae",strokeWidth:"2.5"}),e("circle",{cx:l,cy:l,r:l*.5,fill:"none",stroke:"var(--accent)",strokeWidth:"2"}),e("circle",{cx:l,cy:l,r:l*.14,fill:"var(--accent)"})]})}function oe({header:n,lines:l}){return r("div",{style:{background:"#0c0e11"},children:[r("div",{className:"relative flex items-center gap-2 px-4 py-3",style:{background:"#161a20"},children:[e("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] rounded-full",style:{background:"#e85d5d"}}),e("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] rounded-full",style:{background:"#efc65a"}}),e("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] rounded-full",style:{background:"#6fcf7e"}}),n.trim()&&e("span",{className:"absolute inset-x-0 text-center font-mono text-[11px]",style:{color:"rgba(244,246,242,0.45)"},children:n})]}),r("div",{className:"flex flex-col gap-1.5 px-5 py-5 font-mono text-[13px] leading-relaxed",children:[l.map((c,a)=>c.startsWith("$ ")?r("div",{children:[e("span",{style:{color:"var(--accent)"},children:"$ "}),e("span",{style:{color:"#f4f6f2"},children:c.slice(2)})]},a):c.startsWith("✓")?e("div",{style:{color:"#6fcf7e"},children:c},a):e("div",{style:{color:"rgba(244,246,242,0.55)"},children:c},a)),e("div",{"aria-hidden":!0,className:"mt-1 h-[15px] w-[8px]",style:{background:"var(--accent)"}})]})]})}function me({urlText:n,heroTitle:l,heroButton:c,products:a}){return r("div",{children:[r("div",{className:"flex items-center gap-2 px-4 py-3",style:{background:x},children:[e("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] rounded-full",style:{background:"#e85d5d"}}),e("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] rounded-full",style:{background:"#efc65a"}}),e("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] rounded-full",style:{background:"#6fcf7e"}}),n.trim()&&e("span",{className:"mx-auto rounded border px-6 py-1 text-[11px]",style:{background:_,borderColor:m,color:o},children:n}),e("span",{className:"w-[54px]","aria-hidden":!0})]}),r("div",{className:"relative overflow-hidden px-5 py-6",style:{background:d},children:[e("div",{className:"absolute -right-4 top-1/2 -translate-y-1/2 opacity-90",children:e(K,{size:104})}),l.trim()&&e("div",{className:"max-w-[240px] text-[15px] font-bold uppercase leading-snug tracking-wide text-white",children:l}),c.trim()&&e("div",{className:"mt-3 inline-block rounded px-3.5 py-1.5 text-[11px] font-bold text-white",style:{background:"var(--accent)"},"aria-hidden":!0,children:c})]}),a.length>0&&e("div",{className:"grid grid-cols-3 gap-3 p-4",children:a.map((s,i)=>r("div",{className:"overflow-hidden rounded-lg border",style:{borderColor:m},children:[e("div",{className:"flex items-center justify-center py-3",style:{background:x},children:e(K,{size:56})}),r("div",{className:"flex flex-col gap-1 p-2.5",children:[e("span",{className:"text-[10.5px] font-bold leading-tight",style:{color:d},children:s.name}),e("span",{className:"text-[11px] font-bold",style:{color:"var(--accent)"},children:s.price}),e("span",{className:"mt-0.5 rounded px-2 py-1 text-center text-[9px] font-bold text-white",style:{background:d},"aria-hidden":!0,children:"Add to cart"})]})]},i))})]})}function pe({eyebrow:n,title:l,body:c,variant:a="spec-card",cardHeader:s,badge:i,cardTitle:f,cardSubtitle:b,pills:G,tiles:L,rows:U,button:j,footnote:M,col1Title:O,col1Cards:P,col2Title:z,col2Cards:S,col3Title:X,col3Cards:Z,col4Title:q,col4Cards:J,barsHeading:Q,bars:V,termLines:Y,urlText:H,heroTitle:A,heroButton:ee,products:le,align:R="right",editing:p=!1,omitHead:$=!1}={}){const y=(G??[]).filter(t=>p||(t.value??"").trim()),v=(L??[]).filter(t=>p||(t.label??"").trim()),N=(U??[]).filter(t=>p||(t.lead??"").trim()),k=[[O,P],[z,S],[X,Z],[q,J]].map(([t,h])=>({title:(t??"").trim(),cards:(h??[]).map(ae=>(ae.text??"").trim()).filter(Boolean)})).filter(t=>t.title||t.cards.length>0),w=(V??[]).map(t=>({label:(t.label??"").trim(),value:parseFloat(t.value??"")})).filter(t=>t.label&&Number.isFinite(t.value)),T=(Y??[]).map(t=>t.text??"").filter(t=>p||t.trim()),D=(le??[]).map(t=>({name:(t.name??"").trim(),price:(t.price??"").trim()})).filter(t=>t.name),te=!$&&(!!(n??"").trim()||!!(l??"").trim()),B=!!(s??"").trim()||!!(f??"").trim()||y.length>0||v.length>0||N.length>0||k.length>0||w.length>0||D.length>0||T.length>0||!!(A??"").trim();if(!p&&!te&&!B)return null;const C=r("div",{className:`w-full overflow-hidden rounded-2xl shadow-[0_24px_60px_rgba(0,0,0,0.35)] ${a==="kanban"||a==="browser"||a==="terminal"?"max-w-[600px]":"max-w-[520px]"}`,style:{background:_},children:[a!=="terminal"&&(s??"").trim()&&r("div",{className:"flex items-center justify-between px-6 py-4",style:{background:d},children:[e("span",{className:"font-mono text-[12px] font-semibold uppercase tracking-[0.22em] text-white",children:s}),(i??"").trim()&&r("span",{className:"flex items-center gap-2 font-mono text-[11px] font-semibold uppercase tracking-[0.16em] text-white",children:[e("span",{"aria-hidden":!0,className:"h-[9px] w-[9px] rounded-full",style:{background:g}}),i]})]}),a==="terminal"?e(oe,{header:s??"",lines:T}):a==="browser"?e(me,{urlText:H??"",heroTitle:A??"",heroButton:ee??"",products:D}):r("div",{className:"flex flex-col gap-5 p-6",children:[((f??"").trim()||(b??"").trim())&&r("div",{children:[(f??"").trim()&&e("div",{className:"text-[22px] font-bold leading-tight",style:{color:d},children:f}),(b??"").trim()&&e("div",{className:"mt-1 text-[14px]",style:{color:o},children:b})]}),a==="fitment"&&y.length>0&&e("div",{className:"flex flex-wrap gap-2.5",children:y.map((t,h)=>r("span",{className:"flex items-baseline gap-2 rounded border px-4 py-2",style:{background:x,borderColor:m},children:[e("span",{className:"text-[11px]",style:{color:o},children:t.label}),e("span",{className:"text-[13px] font-bold",style:{color:d},children:t.value})]},h))}),a!=="fitment"&&v.length>0&&e("div",{className:"grid grid-cols-2 gap-3",children:v.map((t,h)=>r("div",{className:"rounded-lg px-4 py-3",style:{background:x},children:[e("div",{className:"font-mono text-[10px] font-semibold uppercase tracking-[0.18em]",style:{color:o},children:t.label}),e("div",{className:"mt-1 text-[17px] font-bold",style:{color:d},children:t.value})]},h))}),N.length>0&&e(ce,{rows:N}),(j??"").trim()&&e("div",{className:"self-start rounded-lg px-6 py-2.5 text-[14px] font-bold text-white",style:{background:"var(--accent)"},"aria-hidden":!0,children:j}),a==="kanban"&&k.length>0&&e(de,{columns:k}),a==="claims"&&w.length>0&&e(ie,{heading:Q??"",bars:w}),(M??"").trim()&&e("div",{className:"border-t pt-4",style:{borderColor:m},children:e("span",{className:"text-[15px] font-bold",style:{color:"var(--accent)"},children:M})})]})]});if($)return p||B?e("div",{className:`flex justify-center ${R==="left"?"view-wide:justify-start":"view-wide:justify-end"}`,children:C}):null;const E=r("div",{children:[(n??"").trim()&&e("span",{className:"inline-block bg-accent px-3.5 py-1.5 font-mono text-[12px] font-semibold uppercase tracking-[0.16em] text-bg",children:ne(n??"")}),(l??"").trim()&&e("h2",{className:`mt-5 font-heading2 ${F.headingMedium} font-medium uppercase leading-[1.04] tracking-[-0.02em] text-fg ${F.headingMediumUpTo800}`,children:se(l??"",!1)}),(c??"").trim()&&e("p",{className:"mt-5 max-w-[46ch] text-[15px] leading-relaxed text-fg/65",children:c})]});return e(re,{as:"section",className:"relative z-[2] border-y border-line bg-surface",children:e("div",{className:"mx-auto grid max-w-[var(--sf-site-width,1600px)] items-center gap-14 px-[var(--sf-site-gutter,40px)] py-[76px] min-[960px]:grid-cols-2 max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",children:R==="left"?r(I,{children:[e("div",{className:"flex justify-center min-[960px]:justify-start",children:C}),E]}):r(I,{children:[E,e("div",{className:"flex justify-center min-[960px]:justify-end",children:C})]})})})}export{pe as default};
|
|
1
|
+
import{jsx as e,jsxs as r,Fragment as I}from"react/jsx-runtime";import{HideTaker as ne}from"./ViewHideRoot.js";import{renderGold as se,renderHeadline as ce}from"./goldPhrases.js";import{withSideOnce as ie}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as de}from"./SideSpaceOnce.js";const F={headingMediumUpTo800:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMedium:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]"},_="#ffffff",i="#16181d",o="#5b6470",u="#9aa3ae",x="#f4f6f8",m="#e3e7ec",g="#1f9d55";function oe({rows:n}){return e("div",{className:"flex flex-col gap-3",children:n.map((t,c)=>{const a=t.state??"ok",s=a==="no";return r("div",{className:"flex items-center gap-3 rounded-lg border px-4 py-3",style:{background:s?"#fbfbfc":x,borderColor:m},children:[a==="no"?e("span",{"aria-hidden":!0,className:"text-[15px] font-bold",style:{color:u},children:"✕"}):e("span",{"aria-hidden":!0,className:"h-[11px] w-[11px] flex-shrink-0 rounded-full",style:{background:a==="warn"?"var(--accent)":g}}),e("span",{className:"text-[14px] font-semibold",style:{color:s?u:i},children:t.lead}),e("span",{className:"text-[13px]",style:{color:s?u:o},children:t.detail}),(t.status??"").trim()&&e("span",{className:"ml-auto whitespace-nowrap text-[12px] font-bold",style:{color:a==="ok"?g:a==="warn"?"var(--accent)":u},children:t.status})]},c)})})}const O=["#c7cdd5","var(--accent)","#c7cdd5",g];function me({columns:n}){return e("div",{className:"grid gap-2 rounded-xl p-3",style:{background:x,gridTemplateColumns:`repeat(${n.length}, minmax(0, 1fr))`},children:n.map((t,c)=>r("div",{className:"flex flex-col gap-2",children:[r("div",{className:"flex items-baseline justify-between px-1",children:[e("span",{className:"font-mono text-[9px] font-semibold uppercase tracking-[0.14em]",style:{color:o},children:t.title}),e("span",{className:"font-mono text-[9px] font-bold",style:{color:"var(--accent)"},children:t.cards.length})]}),t.cards.map((a,s)=>r("div",{className:"rounded-md border px-2.5 py-2",style:{background:_,borderColor:c===n.length-1?"#bfe3ce":m},children:[e("span",{"aria-hidden":!0,className:"mb-1.5 block h-[8px] w-[8px] rounded-full",style:{background:O[c%O.length]}}),e("span",{className:"block text-[11px] font-semibold leading-snug",style:{color:i},children:a})]},s))]},c))})}function pe({heading:n,bars:t}){const c=Math.max(...t.map(s=>s.value),0)||1,a=t.findIndex(s=>s.value===c);return r("div",{className:"border-t pt-4",style:{borderColor:m},children:[n.trim()&&e("div",{className:"mb-3 font-mono text-[10px] font-semibold uppercase tracking-[0.18em]",style:{color:o},children:n}),e("div",{className:"flex flex-col gap-2.5",children:t.map((s,d)=>r("div",{className:"flex items-center gap-3",children:[e("span",{className:"w-[84px] flex-shrink-0 text-[12px] font-bold",style:{color:i},children:s.label}),e("span",{className:"h-[12px] rounded-full",style:{width:`${Math.max(s.value/c*60,4)}%`,background:d===a?"var(--accent)":d%2?"#c7cdd5":"#9aa3ae"}}),r("span",{className:"text-[12px]",style:{color:o},children:[s.value,"%"]})]},d))})]})}function W({size:n}){const t=n/2;return r("svg",{width:n,height:n,viewBox:`0 0 ${n} ${n}`,"aria-hidden":!0,children:[e("circle",{cx:t,cy:t,r:t*.82,fill:"none",stroke:"#9aa3ae",strokeWidth:"2.5"}),e("circle",{cx:t,cy:t,r:t*.5,fill:"none",stroke:"var(--accent)",strokeWidth:"2"}),e("circle",{cx:t,cy:t,r:t*.14,fill:"var(--accent)"})]})}function xe({header:n,lines:t}){return r("div",{style:{background:"#0c0e11"},children:[r("div",{className:"relative flex items-center gap-2 px-4 py-3",style:{background:"#161a20"},children:[e("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] rounded-full",style:{background:"#e85d5d"}}),e("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] rounded-full",style:{background:"#efc65a"}}),e("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] rounded-full",style:{background:"#6fcf7e"}}),n.trim()&&e("span",{className:"absolute inset-x-0 text-center font-mono text-[11px]",style:{color:"rgba(244,246,242,0.45)"},children:n})]}),r("div",{className:"flex flex-col gap-1.5 px-5 py-5 font-mono text-[13px] leading-relaxed",children:[t.map((c,a)=>c.startsWith("$ ")?r("div",{children:[e("span",{style:{color:"var(--accent)"},children:"$ "}),e("span",{style:{color:"#f4f6f2"},children:c.slice(2)})]},a):c.startsWith("✓")?e("div",{style:{color:"#6fcf7e"},children:c},a):e("div",{style:{color:"rgba(244,246,242,0.55)"},children:c},a)),e("div",{"aria-hidden":!0,className:"mt-1 h-[15px] w-[8px]",style:{background:"var(--accent)"}})]})]})}function he({urlText:n,heroTitle:t,heroButton:c,products:a}){return r("div",{children:[r("div",{className:"flex items-center gap-2 px-4 py-3",style:{background:x},children:[e("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] rounded-full",style:{background:"#e85d5d"}}),e("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] rounded-full",style:{background:"#efc65a"}}),e("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] rounded-full",style:{background:"#6fcf7e"}}),n.trim()&&e("span",{className:"mx-auto rounded border px-6 py-1 text-[11px]",style:{background:_,borderColor:m,color:o},children:n}),e("span",{className:"w-[54px]","aria-hidden":!0})]}),r("div",{className:"relative overflow-hidden px-5 py-6",style:{background:i},children:[e("div",{className:"absolute -right-4 top-1/2 -translate-y-1/2 opacity-90",children:e(W,{size:104})}),t.trim()&&e("div",{className:"max-w-[240px] text-[15px] font-bold uppercase leading-snug tracking-wide text-white",children:t}),c.trim()&&e("div",{className:"mt-3 inline-block rounded px-3.5 py-1.5 text-[11px] font-bold text-white",style:{background:"var(--accent)"},"aria-hidden":!0,children:c})]}),a.length>0&&e("div",{className:"grid grid-cols-3 gap-3 p-4",children:a.map((s,d)=>r("div",{className:"overflow-hidden rounded-lg border",style:{borderColor:m},children:[e("div",{className:"flex items-center justify-center py-3",style:{background:x},children:e(W,{size:56})}),r("div",{className:"flex flex-col gap-1 p-2.5",children:[e("span",{className:"text-[10.5px] font-bold leading-tight",style:{color:i},children:s.name}),e("span",{className:"text-[11px] font-bold",style:{color:"var(--accent)"},children:s.price}),e("span",{className:"mt-0.5 rounded px-2 py-1 text-center text-[9px] font-bold text-white",style:{background:i},"aria-hidden":!0,children:"Add to cart"})]})]},d))})]})}function fe({eyebrow:n,title:t,body:c,variant:a="spec-card",cardHeader:s,badge:d,cardTitle:f,cardSubtitle:b,pills:K,tiles:S,rows:G,button:j,footnote:M,col1Title:L,col1Cards:U,col2Title:P,col2Cards:z,col3Title:X,col3Cards:Z,col4Title:q,col4Cards:J,barsHeading:Q,bars:V,termLines:Y,urlText:H,heroTitle:A,heroButton:ee,products:te,align:R="right",editing:p=!1,omitHead:$=!1}={}){const le=de(),y=(K??[]).filter(l=>p||(l.value??"").trim()),v=(S??[]).filter(l=>p||(l.label??"").trim()),N=(G??[]).filter(l=>p||(l.lead??"").trim()),k=[[L,U],[P,z],[X,Z],[q,J]].map(([l,h])=>({title:(l??"").trim(),cards:(h??[]).map(re=>(re.text??"").trim()).filter(Boolean)})).filter(l=>l.title||l.cards.length>0),w=(V??[]).map(l=>({label:(l.label??"").trim(),value:parseFloat(l.value??"")})).filter(l=>l.label&&Number.isFinite(l.value)),T=(Y??[]).map(l=>l.text??"").filter(l=>p||l.trim()),D=(te??[]).map(l=>({name:(l.name??"").trim(),price:(l.price??"").trim()})).filter(l=>l.name),ae=!$&&(!!(n??"").trim()||!!(t??"").trim()),B=!!(s??"").trim()||!!(f??"").trim()||y.length>0||v.length>0||N.length>0||k.length>0||w.length>0||D.length>0||T.length>0||!!(A??"").trim();if(!p&&!ae&&!B)return null;const C=r("div",{className:`w-full overflow-hidden rounded-2xl shadow-[0_24px_60px_rgba(0,0,0,0.35)] ${a==="kanban"||a==="browser"||a==="terminal"?"max-w-[600px]":"max-w-[520px]"}`,style:{background:_},children:[a!=="terminal"&&(s??"").trim()&&r("div",{className:"flex items-center justify-between px-6 py-4",style:{background:i},children:[e("span",{className:"font-mono text-[12px] font-semibold uppercase tracking-[0.22em] text-white",children:s}),(d??"").trim()&&r("span",{className:"flex items-center gap-2 font-mono text-[11px] font-semibold uppercase tracking-[0.16em] text-white",children:[e("span",{"aria-hidden":!0,className:"h-[9px] w-[9px] rounded-full",style:{background:g}}),d]})]}),a==="terminal"?e(xe,{header:s??"",lines:T}):a==="browser"?e(he,{urlText:H??"",heroTitle:A??"",heroButton:ee??"",products:D}):r("div",{className:"flex flex-col gap-5 p-6",children:[((f??"").trim()||(b??"").trim())&&r("div",{children:[(f??"").trim()&&e("div",{className:"text-[22px] font-bold leading-tight",style:{color:i},children:f}),(b??"").trim()&&e("div",{className:"mt-1 text-[14px]",style:{color:o},children:b})]}),a==="fitment"&&y.length>0&&e("div",{className:"flex flex-wrap gap-2.5",children:y.map((l,h)=>r("span",{className:"flex items-baseline gap-2 rounded border px-4 py-2",style:{background:x,borderColor:m},children:[e("span",{className:"text-[11px]",style:{color:o},children:l.label}),e("span",{className:"text-[13px] font-bold",style:{color:i},children:l.value})]},h))}),a!=="fitment"&&v.length>0&&e("div",{className:"grid grid-cols-2 gap-3",children:v.map((l,h)=>r("div",{className:"rounded-lg px-4 py-3",style:{background:x},children:[e("div",{className:"font-mono text-[10px] font-semibold uppercase tracking-[0.18em]",style:{color:o},children:l.label}),e("div",{className:"mt-1 text-[17px] font-bold",style:{color:i},children:l.value})]},h))}),N.length>0&&e(oe,{rows:N}),(j??"").trim()&&e("div",{className:"self-start rounded-lg px-6 py-2.5 text-[14px] font-bold text-white",style:{background:"var(--accent)"},"aria-hidden":!0,children:j}),a==="kanban"&&k.length>0&&e(me,{columns:k}),a==="claims"&&w.length>0&&e(pe,{heading:Q??"",bars:w}),(M??"").trim()&&e("div",{className:"border-t pt-4",style:{borderColor:m},children:e("span",{className:"text-[15px] font-bold",style:{color:"var(--accent)"},children:M})})]})]});if($)return p||B?e("div",{className:`flex justify-center ${R==="left"?"view-wide:justify-start":"view-wide:justify-end"}`,children:C}):null;const E=r("div",{children:[(n??"").trim()&&e("span",{className:"inline-block bg-accent px-3.5 py-1.5 font-mono text-[12px] font-semibold uppercase tracking-[0.16em] text-bg",children:se(n??"")}),(t??"").trim()&&e("h2",{className:`mt-5 font-heading2 ${F.headingMedium} font-medium uppercase leading-[1.04] tracking-[-0.02em] text-fg ${F.headingMediumUpTo800}`,children:ce(t??"",!1)}),(c??"").trim()&&e("p",{className:"mt-5 max-w-[46ch] text-[15px] leading-relaxed text-fg/65",children:c})]});return e(ne,{as:"section",className:"relative z-[2] border-y border-line bg-surface",children:e("div",{className:ie("mx-auto grid max-w-[var(--sf-site-width,1600px)] items-center gap-14 px-[var(--sf-site-gutter,40px)] py-[76px] min-[960px]:grid-cols-2 max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",le),children:R==="left"?r(I,{children:[e("div",{className:"flex justify-center min-[960px]:justify-start",children:C}),E]}):r(I,{children:[E,e("div",{className:"flex justify-center min-[960px]:justify-end",children:C})]})})})}export{fe as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as l,jsxs as i}from"react/jsx-runtime";import{HideTaker as
|
|
1
|
+
import{jsx as l,jsxs as i}from"react/jsx-runtime";import{HideTaker as w}from"./ViewHideRoot.js";import{bandPadAttrs as N}from"../lib/content/section-padding.js";import{innerPaddingFallback as u}from"../lib/document/passes/section-padding.js";import{renderGold as t,renderHeadline as y,splitParagraphs as T}from"./goldPhrases.js";import{withSideOnce as z}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as $}from"./SideSpaceOnce.js";const e={bodyUpTo720Small:"max-view-tablet:text-[length:var(--size-body,12px)]",bodyUpTo720Large:"max-view-tablet:text-[length:var(--size-body,16px)]",headingSmallUpTo720:"max-view-tablet:text-[length:var(--size-headingSmall,20px)]",labelUpTo720:"max-view-tablet:text-[length:var(--size-label,10px)]",bodySmall:"text-[length:var(--size-body,14px)]",bodyLarge:"text-[length:var(--size-body,18px)]",headingSmall:"text-[length:var(--size-headingSmall,22px)]",labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"};function U({eyebrow:s,stats:g,lead:r,foundersHeading:n,foundersBody:o,attribution:m,padTop:b,padBottom:h,bandPad:v,takesViewHide:f=!1}={}){const k=$(),c=v??N({padTop:b,padBottom:h},u("ParagraphsA")),d=(g??[]).filter(a=>(a.value??"").trim()!==""||(a.label??"").trim()!==""),S=!!s||d.length>0,x=!!(n||o||m);return l(w,{as:"section",takes:f,className:"relative z-[2] bg-bg",children:i("div",{className:z(["mx-auto max-w-[var(--sf-site-width,1600px)] overflow-hidden border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]",c.className].filter(Boolean).join(" "),k),style:c.style,children:[S&&i("div",{className:"mb-[40px] grid grid-cols-3 gap-[60px] border-b border-line pb-[40px] max-view-desktop:grid-cols-1 max-view-desktop:gap-6",children:[l("div",{className:"col-span-2 max-view-desktop:col-span-1",children:s&&l("span",{className:`font-mono ${e.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:t(s)})}),d.length>0&&l("div",{className:`text-right font-mono ${e.labelLarge} uppercase leading-[1.8] tracking-[0.18em] text-fg-dim max-view-desktop:text-left`,children:d.map((a,p)=>i("div",{children:[a.value?l("strong",{className:"font-normal text-fg",children:t(a.value)}):null," ",a.label?t(a.label):null]},p))})]}),(r||x)&&i("div",{className:"grid grid-cols-3 gap-[60px] max-view-desktop:grid-cols-1 max-view-desktop:gap-7",children:[r&&l("div",{className:"col-span-2 max-view-desktop:col-span-1",children:T(r).map((a,p)=>l("p",{className:`max-w-[780px] font-heading3 ${e.headingSmall} leading-[1.45] tracking-[-0.005em] text-fg ${e.headingSmallUpTo720}`,children:t(a)},p))}),x&&i("div",{className:`self-end font-display ${e.bodySmall} leading-[1.7] text-fg-dim ${e.bodyUpTo720Small}`,children:[n&&l("strong",{className:`mb-1.5 block ${e.bodyLarge} font-medium tracking-[-0.01em] text-fg ${e.bodyUpTo720Large}`,children:y(n,!1)}),o?t(o):null,m&&l("span",{className:`mt-2 block font-mono ${e.labelSmall} uppercase not-italic tracking-[0.24em] text-accent ${e.labelUpTo720}`,children:t(m)})]})]})]})})}export{U as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,Fragment as
|
|
1
|
+
import{jsx as e,Fragment as R,jsxs as i}from"react/jsx-runtime";import{HideTaker as Y}from"./ViewHideRoot.js";import{bandPadAttrs as X}from"../lib/content/section-padding.js";import{innerPaddingFallback as Z}from"../lib/document/passes/section-padding.js";import{RowHandContext as T}from"./MirrorContext.js";import{EDITORIAL_COLUMN as q,withSideOnce as _}from"../../format/lib/content/page-width.js";import{cardImageShapeTokens as J}from"../../format/lib/content/card-image-shape.js";import{SiteLink as K}from"../lib/site-runtime.js";import Q from"./EditorialSectionHead.js";import V from"./Placeholder.js";import{withRMark as o}from"./RMark.js";import{renderGold as s}from"./goldPhrases.js";import{say as W}from"../../format/lib/editor-words.js";import{scrim as f}from"../../format/lib/content/scrim.js";import{EMPTY_ELSE_CLASS as B,EMPTY_HIDES_CLASS as C,EmptyHidesStyle as ee}from"../lib/content/empty-hides.js";import{useSideSpaceOnce as ae}from"./SideSpaceOnce.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)]"},I={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"},S="sf-itc-boxes",te="sf-itc-steps";function le(b){return(b??[]).filter(r=>(r?.tag??"").trim()||(r?.meta??"").trim()||(r?.title??"").trim()||(r?.copy??"").trim()||(r?.image??"").trim()||(r?.specs??[]).some(c=>(c?.label??"").trim()||(c?.value??"").trim()))}function re({num:b,title:r,description:c,boxes:n,steps:P,columns:j=3,cta:h,padTop:A,padBottom:H,bandPad:O,editing:U=!1,omitHead:D=!1,cardImage:F,cardImageUnit:G,cardText:M,rows:y,copies:g}){const $=ae(),p=g!==void 0,m=y&&(p||(n?.blockCount??0)>0)?y:null,N=O??X({padTop:A,padBottom:H},Z("ProcessSteps")),k=p?[]:le(P),L=k.length>0?k:U&&!n&&!p?[1,2,3].map(a=>({tag:W("Column {n}",{n:a})})):[],z=I[j]??I[3],u=m?"grid-cols-1":z,w=m?"":" [&>*]:min-h-[560px]",d=M==="on-image";return e(Y,{as:"section",className:_(["relative z-[2] border-b border-line bg-bg",N.className].filter(Boolean).join(" "),$),style:{...N.style,...J(F,G)},children:i("div",{className:_(q,$),children:[D?null:e(Q,{num:b,title:r?.trim()?s(r,!0):void 0,desc:c?.trim()?s(c,!1):void 0}),n&&!p?i(R,{children:[e(ee,{}),m?e(T.Provider,{value:{hand:m,ids:n.blockIds??[],boxes:[]},children:e(n,{className:`${S} ${C} sf-card grid ${u} gap-[2px] border border-line bg-line${w} [&>*]:bg-bg`,minEmptyHeight:260})}):e(n,{className:`${S} ${C} sf-card grid ${u} gap-[2px] border border-line bg-line [&>*]:min-h-[560px] [&>*]:bg-bg`,minEmptyHeight:260})]}):null,p&&g?e("div",{className:`${S} sf-card grid ${u} gap-[2px] border border-line bg-line${w} [&>*]:bg-bg`,children:m?e(T.Provider,{value:{hand:m,copies:!0},children:g}):g}):null,L.length>0&&e("div",{className:`${te} ${B} sf-card grid ${z} gap-[2px] border border-line bg-line`,children:L.map((a,E)=>{const x=(a.specs??[]).filter(l=>(l?.label??"").trim()||(l?.value??"").trim());return i("article",{className:d?"flex flex-col bg-bg":"flex min-h-[560px] flex-col bg-bg",children:[i("div",{className:d?"sf-card-image relative aspect-[5/3] overflow-hidden bg-surface max-[700px]:aspect-[4/3]":"sf-card-image relative aspect-[5/3] overflow-hidden border-b border-line bg-surface",children:[e(V,{label:a.tag?.trim()||a.title?.trim()||`column-${E+1}`,src:a.image||void 0,sizes:"(max-width: 1100px) 100vw, 33vw",...n?{deferFetch:!0}:{}}),e("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 z-[1]",style:{background:`linear-gradient(180deg, ${f(.55)} 0%, transparent 30%, transparent 70%, ${f(.65)} 100%)`}}),d&&e("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 bottom-0 z-[1] h-[78%]",style:{background:`linear-gradient(180deg, transparent 0%, ${f(.73)} 55%, ${f(.92)} 100%)`}}),a.tag?.trim()&&e("span",{className:`absolute left-5 top-[18px] z-[2] font-mono ${t.label} uppercase tracking-[0.3em] text-accent`,children:o(a.tag)}),a.meta?.trim()&&e("span",{className:d?`absolute right-5 top-[18px] z-[2] font-mono ${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:o(a.meta)}),d&&(a.title?.trim()||a.copy?.trim())&&i("div",{className:"absolute inset-x-0 bottom-0 z-[2] flex flex-col gap-2.5 px-8 pb-7 pt-14 max-[700px]:px-6 max-[700px]:pb-6",children:[a.title?.trim()&&e("h3",{className:`flex min-h-[2em] flex-col justify-end font-heading3 ${t.headingSmall1} font-medium uppercase leading-none tracking-[-0.02em] text-overlay-fg ${t.headingSmallUpTo700Small}`,children:s(a.title,!0)}),a.copy?.trim()&&e("p",{className:`min-h-[3em] font-display ${t.bodySmall} leading-[1.5] text-overlay-fg/85`,children:s(a.copy,!1)})]})]}),d?x.length>0&&e("div",{className:"grid grid-cols-2 gap-2 border-t border-line px-8 py-7 max-[700px]:px-6 max-[700px]:py-6",children:x.map((l,v)=>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:o(l.label)}),l.value?.trim()&&e("span",{className:`font-display ${t.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:o(l.value)})]},v))}):i("div",{className:"flex flex-1 flex-col gap-4 px-8 py-9 max-[700px]:px-6 max-[700px]:py-7",children:[a.title?.trim()&&e("h3",{className:`font-heading3 ${t.headingSmall2} font-medium uppercase leading-none tracking-[-0.02em] ${t.headingSmallUpTo700Large}`,children:s(a.title,!0)}),a.copy?.trim()&&e("p",{className:`font-display ${t.bodySmall} leading-[1.55] text-fg-dim`,children:s(a.copy,!1)}),x.length>0&&e("div",{className:"mt-auto grid grid-cols-2 gap-2 border-t border-line pt-4",children:x.map((l,v)=>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:o(l.label)}),l.value?.trim()&&e("span",{className:`font-display ${t.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:o(l.value)})]},v))})]})]},E)})}),h?.text&&e("div",{className:"mt-12 flex justify-end border-t border-line pt-8",children:i(K,{newTab:"auto",href:h.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:[o(h.text),e("span",{"aria-hidden":!0,className:"text-accent transition-transform group-hover:translate-x-[3px]",children:"→"})]})})]})})}export{re as default,le as storedStepsShown};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,Fragment as
|
|
1
|
+
import{jsx as e,Fragment as h,jsxs as n}from"react/jsx-runtime";import f from"./SectionEyebrow.js";import{HideTaker as c}from"./ViewHideRoot.js";import{renderGold as u,renderHeadline as v,splitParagraphs as b}from"./goldPhrases.js";import{withSideOnce as w}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as N}from"./SideSpaceOnce.js";const i={headingSmallUpTo800:"max-view-wide:text-[length:var(--size-headingSmall,28px)]",headingMedium:"text-[length:var(--sf-heading-max,var(--size-headingMedium,38px))]",body:"text-[length:var(--size-body,16px)]"},S="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] py-[72px] max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",_="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-0 pb-[72px] max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]";function E({eyebrow:t,title:a,body:m,topBorder:x=!0,omitHead:r=!1,editing:p=!1}={}){const d=N(),s=b((m??"").trim()),o=!!(t??"").trim()||!!(a??"").trim()||s.length>0;return!p&&!o?null:e(c,{as:"section",className:`relative z-[2] ${x?"border-t border-line ":""}bg-bg`,children:n("div",{className:w(r?_:S,d),children:[r?null:n(h,{children:[(t??"").trim()&&e(f,{text:t??"",className:"mb-4 block"}),(a??"").trim()&&e("h2",{className:`mb-7 font-heading2 ${i.headingMedium} [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.02em] text-fg ${i.headingSmallUpTo800}`,children:v(a??"",!1)})]}),s.map((l,g)=>e("p",{className:`mb-[18px] max-w-[680px] ${i.body} leading-[1.7] text-fg-dim last:mb-0`,children:u(l)},g))]})})}export{E as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as a,jsxs as n,Fragment as
|
|
1
|
+
import{jsx as a,jsxs as n,Fragment as D}from"react/jsx-runtime";import{PagePicture as R}from"../lib/first-screen.js";import{MarkZoom as j}from"./PictureZoom.js";import{SiteLink as S}from"../lib/site-runtime.js";import{media as C}from"../lib/media.js";import{sizedImage as F}from"../../format/lib/sized-image.js";import{DEFAULT_SECTION_NUMBER_STYLE as A,OUTLINED_NUMBER_CLASS as X,OUTLINED_NUMBER_CSS as Y,OUTLINED_NUMBER_LAYOUT as Z,parseSectionNumberStyle as P}from"../../format/lib/sections/section-number-style.js";import{DEFAULT_SECTION_EYEBROW_LOOK as W}from"../../format/lib/sections/section-eyebrow-look.js";import{STICKY_UNDERHEADER_CLASS as K}from"../lib/document/header-clearance.js";import{renderGold as G,renderHeadline as q}from"./goldPhrases.js";import c from"./SectionEyebrow.js";import{withSideOnce as J}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as Q}from"./SideSpaceOnce.js";const t={headingMediumUpTo800Small:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMediumUpTo800Large:"max-view-wide:text-[length:min(var(--size-headingMedium,36px),var(--sf-heading-max,9999px))]",headingSmallUpTo800:"max-view-wide:text-[length:var(--size-headingSmall,28px)]",headingMedium2:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]",headingMedium3:"text-[length:min(var(--size-headingMedium,56px),var(--sf-heading-max,9999px))]",headingMedium1:"text-[length:var(--sf-heading-max,var(--size-headingMedium,38px))]",bodySmall:"text-[length:var(--size-body,14px)]",bodyLarge:"text-[length:var(--size-body,16px)]",label:"text-[length:var(--size-label,14px)]",shelfLabel:"text-[length:var(--size-label,13px)]",shelfLabelSmall:"text-[length:var(--size-label,12px)]",shelfBody:"text-[length:var(--size-body,13px)]",shelfHeadingUpTo800Xs:"max-view-wide:text-[length:var(--size-headingMedium,28px)]",shelfHeadingUpTo800Small:"max-view-wide:text-[length:var(--size-headingMedium,32px)]",shelfHeadingUpTo800Large:"max-view-wide:text-[length:var(--size-headingMedium,36px)]",shelfHeadingUpTo800Xl:"max-view-wide:text-[length:var(--size-headingMedium,40px)]",shelfHeading1:"text-[length:var(--size-headingMedium,40px)]",shelfHeading2:"text-[length:var(--size-headingMedium,48px)]",shelfHeading3:"text-[length:var(--size-headingMedium,56px)]",shelfHeading4:"text-[length:var(--size-headingMedium,64px)]"},T=[{value:"para",label:"Paragraph size — 13px",cls:`font-mono font-normal uppercase tracking-[0.22em] ${t.shelfLabel}`},{value:"sm",label:"Small — 40px",cls:`font-heading2 font-medium tracking-[-0.03em] ${t.shelfHeading1} ${t.shelfHeadingUpTo800Xs}`},{value:"md",label:"Medium — 48px",cls:`font-heading2 font-medium tracking-[-0.03em] ${t.shelfHeading2} ${t.shelfHeadingUpTo800Small}`},{value:"lg",label:"Large — 56px",cls:`font-heading2 font-medium tracking-[-0.03em] ${t.shelfHeading3} ${t.shelfHeadingUpTo800Large}`},{value:"xl",label:"Extra large — 64px",cls:`font-heading2 font-medium tracking-[-0.03em] ${t.shelfHeading4} ${t.shelfHeadingUpTo800Xl}`}],V="lg";function ee(e){return(T.find(i=>i.value===e)??T.find(i=>i.value===V)).cls}const g=(e,i=!1)=>typeof e=="string"?q(e,i):e,l=(e,i=!1)=>typeof e=="string"?G(e,i):e;function ae({num:e,title:i,link:r,logo:f,description:d,accent:w,accentNum:M,numStyle:E=A,look:m="standard",titleAccent:v,accentTracking:_="-0.02em",spaceBelow:y,rowGap:z,descriptionSize:L,className:h="",eyebrowLook:x=W,titleSize:U,count:u,capped:H=!1}){const k=Q(),o=y??(m==="editorial"?"mb-[60px]":"");if(m==="shelf")return e||i||d||r?n("div",{className:J(`${K} sticky top-[var(--sf-header-h,88px)] z-30 mb-5 flex items-center justify-between gap-4 max-view-wide:flex-wrap max-view-wide:gap-y-2 border-b border-line bg-bg/95 py-3 backdrop-blur-md ${H?"":"-mx-[var(--sf-site-gutter,40px)] px-[var(--sf-site-gutter,40px)] max-view-wide:-mx-[min(20px,var(--sf-site-gutter,40px))] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]"}`,k),children:[n("div",{className:"flex min-w-0 items-end gap-6 max-view-wide:flex-col max-view-wide:items-stretch max-view-wide:gap-3",children:[e&&a("span",{className:`font-mono ${t.shelfLabel} leading-none uppercase tracking-[0.22em] text-fg-dim`,children:l(e)}),i&&a("h2",{className:`${ee(U)} leading-none text-fg max-view-wide:leading-[1] [&>span]:block`,children:g(i)})]}),(d||r||u)&&n("div",{className:"flex items-center gap-5 max-view-wide:gap-3 view-wide:grow view-wide:justify-end",children:[d&&a("span",{className:`max-w-[340px] truncate font-display ${t.shelfBody} leading-[1.4] text-fg-dim max-view-wide:hidden view-wide:w-0 view-wide:grow view-wide:text-right`,children:l(d)}),r&&n(S,{newTab:"auto",href:r.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${t.shelfLabel} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[l(r.text),a("span",{"aria-hidden":!0,children:"→"})]}),u&&a("span",{className:`whitespace-nowrap font-mono ${t.shelfLabelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:u})]})]}):null;if(m==="editorial"){const s=!!i||!!v;return n("header",{className:`${o} grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-8 max-view-desktop:grid-cols-1 max-view-desktop:gap-3.5 ${h}`.trim(),children:[e&&(typeof e=="string"?a(c,{text:e,className:"pb-2"}):a("span",{className:"pb-2",children:e})),s&&n("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(40px,5.5vw,80px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em]",children:[i,v&&n(D,{children:[" ",a("em",{className:"font-serif font-normal italic text-accent",style:{letterSpacing:_},children:v})]})]}),d&&a("p",{className:`max-w-[360px] pb-1 text-right font-display ${t.bodySmall} leading-[1.5] text-fg-dim max-view-desktop:max-w-full max-view-desktop:text-left`,children:d})]})}if(m==="simple"){const s=`${o} ${h}`.trim();return n("div",{className:s||void 0,children:[e&&(typeof e=="string"?a(c,{text:e,look:x,className:"mb-4 block"}):a("span",{className:"mb-4 block",children:e})),i&&a("h2",{className:`font-heading2 ${t.headingMedium2} font-medium uppercase leading-none tracking-[-0.02em] text-fg ${t.headingMediumUpTo800Small}`,children:g(i)})]})}if(m==="statement"){const s=`${o} ${h}`.trim();return n("div",{className:s||void 0,children:[e&&(typeof e=="string"?a(c,{text:e,look:x,className:"mb-4 block"}):a("span",{className:"mb-4 block",children:e})),i&&a("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(40px,5vw,72px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em] text-fg",children:g(i,!0)})]})}if(m==="natural"){const s=`flex max-w-[680px] flex-col ${z??"gap-5"} ${o} ${h}`.replace(/\s+/g," ").trim();return n("div",{className:s,children:[e&&(typeof e=="string"?a(c,{text:e,look:x}):a("span",{children:e})),i&&a("h2",{className:`font-heading2 ${t.headingMedium2} font-medium leading-[1.05] tracking-[-0.03em] ${t.headingMediumUpTo800Small}`,children:g(i)}),d&&a("p",{className:`${L??`${t.bodyLarge}`} leading-[1.6] opacity-85`,children:d})]})}if(m==="essay"){const s=`${o} ${h}`.trim();return n("div",{className:s||void 0,children:[e&&(typeof e=="string"?a(c,{text:e,look:x,className:"mb-4 block"}):a("span",{className:"mb-4 block",children:e})),i&&a("h2",{className:`font-heading2 ${t.headingMedium1} [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.02em] text-fg ${t.headingSmallUpTo800}`,children:g(i)})]})}const I=!!d||!!r,O=!!i,b=P(E)==="outlined",N=`font-mono ${t.label} uppercase tracking-[0.3em]`;let p=null;if(e)if(b)p=a("span",{className:`${Z} text-fg-dim ${X}`,children:l(e)});else if(M&&!w&&typeof e=="string"){const s=e.indexOf("/"),B=s===-1?e:e.slice(0,s),$=s===-1?"":e.slice(s);p=n("span",{className:N,children:[a("span",{className:"text-accent",children:l(B)}),$&&a("span",{className:"text-fg-dim",children:l($)})]})}else p=a("span",{className:`${N} ${w?"text-accent":"text-fg-dim"}`,children:l(e)});return n("div",{className:"mb-16 grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-6 max-view-wide:mb-9 max-view-wide:grid-cols-1 max-view-wide:gap-3 max-view-wide:pb-5",children:[b&&e&&a("style",{children:Y}),n("div",{className:"flex flex-col items-start gap-3",children:[f?.src&&a(j,{children:a(R,{...ie(C(f.src)),alt:f.alt,className:"h-8 w-auto object-contain"})}),p]}),O&&a("h2",{className:w?"font-heading2 text-[length:min(var(--size-headingMedium,clamp(36px,5vw,64px)),var(--sf-heading-max,9999px))] [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-[0.95] tracking-[-0.025em]":`font-heading2 ${t.headingMedium3} [font-weight:var(--sf-heading-weight,500)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.03em] whitespace-pre-line ${t.headingMediumUpTo800Large} max-view-wide:leading-[1]`,children:g(i)}),I&&n("div",{className:"flex flex-col items-end gap-3 max-view-wide:items-start",children:[d&&a("p",{className:`max-w-[340px] font-display ${t.bodySmall} leading-[1.5] text-fg-dim text-right max-view-wide:max-w-full max-view-wide:text-left`,children:l(d)}),r&&n(S,{newTab:"auto",href:r.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${t.label} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[l(r.text),a("span",{"aria-hidden":!0,children:"→"})]})]})]})}function ie(e){const i=F(e,{fallbackWidth:640,maxWidth:960});return i.srcSet?{src:i.src,srcSet:i.srcSet,sizes:"240px"}:{src:e}}export{V as DEFAULT_SHELF_TITLE_SIZE,T as SHELF_TITLE_SIZES,ae as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as t,jsxs as i,Fragment as v}from"react/jsx-runtime";import{EDITORIAL_COLUMN as
|
|
1
|
+
import{jsx as t,jsxs as i,Fragment as v}from"react/jsx-runtime";import{EDITORIAL_COLUMN as k,withSideOnce as w}from"../../format/lib/content/page-width.js";import{HideTaker as j}from"./ViewHideRoot.js";import E from"./EditorialSectionHead.js";import{renderGold as n,renderHeadline as c}from"./goldPhrases.js";import{say as L}from"../../format/lib/editor-words.js";import{useSideSpaceOnce as O}from"./SideSpaceOnce.js";const r={body:"text-[length:var(--size-body,14px)]",headingSmall:"text-[length:var(--size-headingSmall,28px)]",labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"};function _({headNum:p,headTitle:s,headDesc:g,cards:x,viewLabel:l,background:a,editing:h=!1,omitHead:m=!1}){const f=O(),o=(x??[]).filter(e=>(e?.title??"").trim()||(e?.desc??"").trim()||(e?.num??"").trim()),b=o.length>0?o:h?[{title:L("Series title")}]:[],d=!!(a&&a!=="transparent");return t(j,{as:"section",className:m?"border-b border-line pt-0 pb-[120px] max-view-desktop:pt-0 max-view-desktop:pb-20":"border-b border-line py-[120px] max-view-desktop:py-20",style:d?{backgroundColor:a}:void 0,children:i("div",{className:w(k,f),children:[m?null:t(E,{num:p,title:s?c(s):void 0,desc:g}),t("div",{className:`grid grid-cols-4 max-view-desktop:grid-cols-2 max-[700px]:grid-cols-1 ${d?"gap-[1px]":"gap-[2px] bg-bg"}`,children:b.map((e,u)=>{const S=!!(e.num?.trim()||e.since?.trim()),y=!!e.title?.trim(),N=!!(e.entries?.trim()||e.entriesLabel?.trim()||l);return i("article",{className:"flex min-h-[340px] flex-col gap-4 bg-bg px-7 pt-9 pb-8",children:[S&&i("div",{className:`flex items-baseline justify-between gap-3 font-mono ${r.labelLarge} uppercase tracking-[0.3em] text-accent`,children:[t("span",{children:e.num?n(e.num):null}),e.since?.trim()?t("span",{children:n(e.since)}):null]}),y&&t("h3",{className:`font-heading3 ${r.headingSmall} font-medium uppercase leading-[1.04] tracking-[-0.02em]`,children:c(e.title??"")}),e.desc?.trim()&&t("p",{className:`font-display ${r.body} leading-[1.6] text-fg-dim`,children:n(e.desc)}),N&&i("div",{className:`mt-auto flex items-center justify-between border-t border-line pt-4 font-mono ${r.labelSmall} uppercase tracking-[0.22em] text-fg-dim`,children:[i("span",{children:[e.entries?.trim()?t("strong",{className:"font-normal text-fg",children:n(e.entries)}):null,e.entriesLabel?.trim()?i(v,{children:[e.entries?.trim()?" ":"",n(e.entriesLabel)]}):null]}),l&&t("span",{className:"text-accent",children:n(l)})]})]},u)})})]})})}export{_ as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{Fragment as n,jsx as o}from"react/jsx-runtime";import{useSiteRootProps as i}from"./SiteRootProps.js";import{sideSpaceOnceAttr as s,SIDE_ONCE_VALUE as c,withSideOnce as m}from"../../format/lib/content/page-width.js";function p(){return s(i())===c}function d({className:e,children:t}){const r=p();return o(n,{children:t(m(e,r))})}export{d as SideOnceClass,p as useSideSpaceOnce};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as t,Fragment as
|
|
1
|
+
"use client";import{jsx as t,Fragment as _}from"react/jsx-runtime";import{useTakeViewHide as ne,withViewHide as X}from"./ViewHideRoot.js";import{createContext as u,useContext as o}from"react";import{framePadAttrs as oe}from"../lib/content/section-padding.js";import{SECTION_BORDER_CLASS as re,SECTION_BORDER_SELF_CLASS as se}from"../../format/lib/content/borders.js";import{BOX_HOLDS_NO_GUTTER_CLASS as q,sideOnceFrameHolds as ie,siteSideRoom as le,withSideOnce as z}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as ce}from"./SideSpaceOnce.js";import{drawsSiteGutter as ue}from"../../format/lib/content/site-gutter.js";import{groundBeyond as ae}from"../lib/content/section-edge.js";const m=u(!1);function Be(){return o(m)}function Ge({children:e}){return t(m.Provider,{value:!0,children:e})}const A=u(!1);function Pe({children:e}){return t(A.Provider,{value:!0,children:e})}const J=u(null);function Re({ground:e,children:n}){return t(J.Provider,{value:e,children:n})}const E=u(!1);function de(){return o(E)}function _e({atTop:e,nested:n}){return t(_,{children:de()?n:e})}const f=u(void 0);function Ae({children:e}){return t(f.Provider,{value:null,children:e})}function me(){return o(f)===void 0&&!o(E)&&!o(m)}function Ee({own:e,followed:n}){return t(_,{children:me()?e():n()})}const K=u(null);function we({value:e,children:n}){return t(K.Provider,{value:e,children:n})}function Fe({draw:e}){return t(_,{children:e(o(K))})}function ye(){return o(f)??null}function fe({contained:e,framedClass:n,fillClass:M,columnClass:w,style:F,tabLabel:Q,pad:p,border:a,outerAttrs:y,box:S=!1,edge:Y=!1,outerStyle:h,outerClass:I,bleed:v=!1,siteSide:x=!1,part:L,children:T}){const Z=o(m),N=ce(),C=N?` ${le(x?"site":"box").onceFrame}`:"",$=o(A),l=ue(e,Z),i=l&&!$,c=ne(),j=!!(a&&i),d=j?I:X(I??"",c.className)||void 0,O=j||!c.className?y:{...y,...c.attrs},s=p?oe(p,i):null,H=s&&N?{root:s.root?{...s.root,className:z(s.root.className,!0)}:null,outer:s.outer?{...s.outer,className:z(s.outer.className,!0)}:null}:s,g=H?.root??null,B=a&&!i?a:null,G=S&&!v?N?`${q} ${ie(x?"site":"box")}`:q:null,P=[i?`${n}${C}`:M,i?G:null,g?.className,B?se:null].filter(Boolean).join(" "),D=pe(v&&i,g||B?{...F,...g?.style,...B}:F),b=o(f),ee=o(J),te=S&&Y&&b===void 0?{gutter:l,...p?{pad:p.values}:{},beyond:l&&$?ae(ee):"0px",...x&&l?{site:!0}:{}}:null,k=S?t(E.Provider,{value:!0,children:t(f.Provider,{value:te,children:T})}):T,R=l?t(m.Provider,{value:!0,children:k}):k,r=H?.outer??null,V=O&&Object.keys(O).length>0?O:null,W=t("div",{...r?null:V,className:!r&&d?P?`${P} ${d}`:d:P,style:r||!h?D:{...D,...h},"data-tab-label":Q,...r?null:L,children:$?t(A.Provider,{value:!1,children:l&&!v?t("div",{className:G?`${w}${C} ${G}`:`${w}${C}`,children:R}):R}):R}),U=r?t("div",{...V,className:d?`${r.className} ${d}`:r.className,style:h?{...r.style,...h}:r.style,...L,children:W}):W;return c.scope(a&&i?t("div",{className:X(re,c.className),style:{display:"contents",...a},...c.attrs,children:U}):U)}function pe(e,n){return e?{...n,paddingLeft:0,paddingRight:0}:n}export{Re as GroundStopsAt,Ge as InsideSiteColumn,_e as NestedBoxChoice,Ae as NotASectionEdge,Fe as SectionGroupChoice,we as SectionGroupWidthsProvider,Ee as SectionRootChoice,Pe as SplitBandAndColumn,fe as default,de as useInsideBox,Be as useInsideSiteGutter,ye as useSectionEdge,me as useSectionRoot};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{Fragment as t,jsx as o}from"react/jsx-runtime";import{useMemo as r}from"react";import{useSiteRootProps as i}from"./SiteRootProps.js";import{siteOfficesOf as s}from"../../format/lib/content/site-offices.js";function f(){const e=i();return r(()=>s(e),[e])}function p({children:e}){return o(t,{children:e(f())})}export{p as SiteOffices};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export declare function SiteRootPropsProvider({ rootProps, children }: {
|
|
3
|
+
rootProps?: unknown;
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
}): import("react").JSX.Element;
|
|
6
|
+
export declare function useSiteRootProps(): Readonly<Record<string, unknown>> | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{jsx as e}from"react/jsx-runtime";import{createContext as c,Fragment as S,useContext as p}from"react";import{SITE_CSS_SCOPE_ATTR as u,SITE_CSS_SCOPE_ID as l,siteCssOf as m}from"../../format/lib/content/site-css.js";import{ScopedCssStyle as C}from"../lib/document/passes/section-custom-css.js";const n=c(null);function d({rootProps:t,children:i}){const o=t&&typeof t=="object"?t:null,r=m(o),s=e(S,{children:i},"page");return e(n.Provider,{value:o,children:r?[e(C,{css:r,id:l,attr:u},"css"),s]:s})}function P(){return p(n)}export{d as SiteRootPropsProvider,P as useSiteRootProps};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as r}from"react/jsx-runtime";import{HideTaker as x}from"./ViewHideRoot.js";import{specStripScaffold as
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{HideTaker as x}from"./ViewHideRoot.js";import{specStripScaffold as u}from"../../format/lib/document/blocks/general/SpecStrip/meta.js";import{PY_CLASS as m,SECTION_PAD_KEYS as g,framePadAttrs as h,padValuesOf as w,tierFramesOf as S}from"../lib/content/section-padding.js";import{SPEC_PAD as a}from"../../format/lib/sections/strip-shape.js";import{withSideOnce as v}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as b}from"./SideSpaceOnce.js";const C=s=>h({values:w(s,g,!0),frame:S(a),drawsFrame:!0,edge:!0},!0).root;function N({cells:s,fill:p="dark",editing:f=!1,pad:e}){const d=b(),i=(s??[]).filter(t=>(t?.text??"").trim()),n=i.length>0?i:f?u():[];if(n.length===0)return null;const l=p!=="none",o=r("div",{className:v(["mx-auto flex max-w-[var(--sf-site-width,1600px)] flex-wrap items-baseline justify-between gap-x-8 gap-y-1 px-[var(--sf-site-gutter,40px)]",e?null:m.all[a.top],"text-[length:var(--size-label,12px)] uppercase tracking-[0.1em] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]",e?e.className:m.edge[a.topPhone]].filter(Boolean).join(" "),d),style:e&&Object.keys(e.style).length?e.style:void 0,...e?.attrs,children:n.map((t,c)=>r("span",{className:l?t.tone==="muted"?"text-plate-band-fg-dim":"text-plate-band-fg":t.tone==="muted"?"text-fg-dim":"text-fg",children:t.text},c))});return r(x,{as:"section",className:"w-full",children:l?r("div",{className:"bg-plate-band",children:o}):r("div",{className:"border-t border-line",children:o})})}export{N as default,C as specPad};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as i}from"react/jsx-runtime";import{alignViewAnswers as
|
|
1
|
+
import{jsx as e,jsxs as i}from"react/jsx-runtime";import{alignViewAnswers as D,alignViewClasses as R,BLOCK_ALIGN_BOX_WORD as S,BLOCK_ALIGN_TEXT as x}from"../../format/lib/content/block-align.js";import{BOX_ALIGN_CLASS as T}from"../../format/lib/content/box-layout.js";import{SiteLink as $}from"../lib/site-runtime.js";import Z from"./Btn.js";import{resolveImageTreatment as W}from"../../format/lib/content/image-treatment.js";import E from"./Placeholder.js";import{useSitePhotography as Y}from"./SitePhotographyContext.js";import q from"./SectionEyebrow.js";import{renderGold as s,renderHeadline as J,splitParagraphs as Q}from"./goldPhrases.js";import{ON_MEDIA_INK_STYLE as B}from"../../format/lib/content/ink.js";import{scrim as ee}from"../../format/lib/content/scrim.js";import{SECTION_FILL_CLASS as te}from"../../format/lib/content/section-min-height.js";import{HALF_SIZES as O}from"../../format/lib/sized-image.js";import{withSideOnce as ie}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as re}from"./SideSpaceOnce.js";const r={headingMediumUpTo800:"max-view-wide:text-[length:var(--size-headingMedium,36px)]",labelUpTo800:"max-view-wide:text-[length:var(--size-label,12px)]",headingMedium:"text-[length:min(var(--size-headingMedium,56px),var(--sf-heading-max,9999px))]",body:"text-[length:var(--size-body,16px)]",label:"text-[length:var(--size-label,13px)]"},I={words:{left:"min-[961px]:pl-[max(60px,calc(100%_-_var(--sf-content-cap,200%)/2_+_60px))]",right:"min-[961px]:pr-[max(60px,calc(100%_-_var(--sf-content-cap,200%)/2_+_60px))]"},buttons:{left:"min-[961px]:pl-[max(var(--sf-site-gutter,40px),calc(100%_-_var(--sf-content-cap,200%)/2_+_var(--sf-site-gutter,40px)))]",right:"min-[961px]:pr-[max(var(--sf-site-gutter,40px),calc(100%_-_var(--sf-content-cap,200%)/2_+_var(--sf-site-gutter,40px)))]"}};function ae({imageLabel:f,imageSrc:v,imageTint:h=.4,imageObjectPosition:z,eyebrow:b,title:g,body:w,cta:c,reverse:n=!1,uppercase:C=!1,textAlign:m="left",textAlignTablet:u,textAlignPhone:_,textBgSrc:p,textBgLabel:A,textBgTint:y=.6,textBgObjectPosition:M,featureBar:a,imageButton:l,grayscale:P,pictureHover:X,fillHeight:G=!1}){const U=re(),N=W(P,Y(),X),L={left:{items:"",text:x.left,cta:"self-start"},center:{items:T[S.center],text:x.center,cta:"self-center"},right:{items:T[S.right],text:x.right,cta:"self-end"}},d=L[m]??L.left,j={left:{items:"view-tablet:max-view-desktop:items-stretch",cta:"view-tablet:max-view-desktop:self-start"},center:{items:"view-tablet:max-view-desktop:items-center",cta:"view-tablet:max-view-desktop:self-center"},right:{items:"view-tablet:max-view-desktop:items-end",cta:"view-tablet:max-view-desktop:self-end"}},k={left:{items:"max-view-tablet:items-stretch",cta:"max-view-tablet:self-start"},center:{items:"max-view-tablet:items-center",cta:"max-view-tablet:self-center"},right:{items:"max-view-tablet:items-end",cta:"max-view-tablet:self-end"}},t=D(m,u,_),o={text:R("text",m,u,_,{atSectionLine:!0}),items:[t.tablet&&j[t.tablet].items,t.phone&&k[t.phone].items].filter(Boolean).join(" "),cta:[t.tablet&&j[t.tablet].cta,t.phone&&k[t.phone].cta].filter(Boolean).join(" ")},F=n?"right":"left",H=n?"left":"right";return e("section",{className:"relative z-[2] bg-bg p-0",children:i("div",{className:["grid min-h-[72vh] grid-cols-2 border-t border-b border-line","max-[960px]:grid-cols-1","max-[960px]:min-h-0",n?"min-[961px]:[direction:rtl]":"",...G?[te]:[]].join(" "),children:[i("div",{className:"sf-card relative flex items-center justify-center overflow-hidden bg-surface [direction:ltr] max-[960px]:aspect-[4/3] max-[960px]:order-2",style:n?{borderLeft:"1px solid var(--site-line)"}:{borderRight:"1px solid var(--site-line)"},children:[e(E,{label:f,src:v,objectPosition:z,treatment:N,sizes:O}),v&&h>0&&e("div",{className:"absolute inset-0",style:{background:`rgba(0,0,0,${h})`}}),(a||l)&&i("div",{className:ie(`pointer-events-none absolute inset-0 z-[3] flex flex-col items-center justify-center gap-4 px-[var(--sf-site-gutter,40px)] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))] ${I.buttons[F]}`,U),children:[a&&i($,{newTab:"auto",href:a.href,className:`pointer-events-auto inline-flex items-center justify-center gap-3 border px-7 py-4 font-mono ${r.label} uppercase tracking-[0.18em] backdrop-blur-sm transition-colors max-view-wide:gap-2 max-view-wide:px-5 max-view-wide:py-3 ${r.labelUpTo800}`,style:{borderColor:"color-mix(in srgb, var(--overlay-fg) 30%, transparent)",color:"color-mix(in srgb, var(--overlay-fg) 85%, transparent)",background:ee(.45)},children:[e("span",{children:s(a.wheel)}),e("span",{"aria-hidden":!0,style:{opacity:.55},children:"·"}),e("span",{children:s(a.category)}),e("span",{"aria-hidden":!0,children:"→"}),e("span",{children:s(a.cta??"Shop now")})]}),l&&i($,{newTab:"auto",href:l.href,className:`pointer-events-auto inline-flex items-center justify-center gap-2 border px-7 py-4 font-mono ${r.label} uppercase tracking-[0.18em] backdrop-blur-sm transition-colors hover:bg-[color-mix(in_srgb,var(--overlay-fg)_10%,transparent)] max-view-wide:gap-2 max-view-wide:px-5 max-view-wide:py-3 ${r.labelUpTo800}`,style:{borderColor:"color-mix(in srgb, var(--overlay-fg) 50%, transparent)",color:"color-mix(in srgb, var(--overlay-fg) 95%, transparent)",background:"transparent"},children:[e("span",{children:s(l.text??"Learn more")}),e("span",{"aria-hidden":!0,children:"→"})]})]})]}),i("div",{className:"relative overflow-hidden [direction:ltr] max-[960px]:order-1",children:[p&&i("div",{className:"absolute inset-0","aria-hidden":!0,children:[e(E,{label:A??f,src:p,objectPosition:M,treatment:N,sizes:O}),y>0&&e("div",{className:"absolute inset-0",style:{background:`rgba(0,0,0,${y})`}})]}),e("div",{className:`relative z-[2] flex h-full min-h-full flex-col px-[60px] py-[100px] max-[960px]:px-6 max-[960px]:py-[60px] ${I.words[H]}`,style:p?B:void 0,children:i("div",{className:["flex flex-1 flex-col justify-center gap-6",d.items,d.text,o.items,o.text].filter(Boolean).join(" "),children:[b&&e(q,{text:b,size:14}),g&&e("h2",{className:[`font-heading2 ${r.headingMedium} font-normal leading-[1.05] tracking-[-0.03em]`,`${r.headingMediumUpTo800} max-view-wide:leading-[1]`,C?"uppercase":""].join(" "),children:J(g,!1)}),w&&Q(w).map((K,V)=>e("p",{className:[`max-w-[520px] ${r.body} leading-[1.7]`,"text-fg-dim"].join(" "),children:s(K)},V)),c.text&&e("div",{className:`mt-2 ${d.cta}${o.cta?` ${o.cta}`:""}`,children:e(Z,{href:c.href,variant:"primary",children:s(c.text)})})]})})]})]})})}export{ae as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsxs as t,jsx as a,Fragment as
|
|
1
|
+
"use client";import{jsxs as t,jsx as a,Fragment as w}from"react/jsx-runtime";import{bandPadAttrs as C}from"../lib/content/section-padding.js";import{innerPaddingFallback as E}from"../lib/document/passes/section-padding.js";import{HideTaker as _}from"./ViewHideRoot.js";import{EDITORIAL_COLUMN as j,withSideOnce as b}from"../../format/lib/content/page-width.js";import O from"./EditorialSectionHead.js";import{renderGold as v,renderHeadline as T}from"./goldPhrases.js";import{useCountUp as z}from"./useCountUp.js";import{say as N}from"../../format/lib/editor-words.js";import{useSideSpaceOnce as A}from"./SideSpaceOnce.js";const x={body:"text-[length:var(--size-body,16px)]",labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"},S="font-normal italic text-accent";function I({value:f,prefix:c,suffix:n,supSuffix:d,emphasizeAll:r,label:l,sub:i}){const o=(f??"").trim(),p=/^\d+$/.test(o),{ref:u,value:g}=z(p?parseInt(o,10):0),s=p?String(g):o,m=c??"";return t("div",{className:"flex min-h-[240px] flex-col gap-3 bg-bg px-8 py-12",children:[t("div",{ref:u,className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(56px,7vw,96px)),var(--sf-heading-max,9999px))] font-medium leading-[0.9] tracking-[-0.04em] tabular-nums",children:[r?t("em",{className:S,children:[m,s]}):t(w,{children:[m,s,n?a("em",{className:S,children:n}):null]}),d?a("sup",{className:`ml-8 inline-block pt-[18px] align-top font-mono ${x.labelLarge} leading-none tracking-[0.18em] text-accent`,children:d}):null]}),(l||i)&&t("div",{className:`mt-auto font-mono ${x.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:[l?a("strong",{className:`mb-1 block font-display ${x.body} font-normal normal-case tracking-[-0.01em] text-fg`,children:l}):null,i?v(i):null]})]})}function L({eyebrow:f,title:c,desc:n,stats:d,background:r,padTop:l,padBottom:i,bandPad:o,editing:p=!1,omitHead:u=!1}={}){const g=A(),s=o??C({padTop:l,padBottom:i},E("StatsParagraph")),m=(d??[]).filter(e=>(e.value??"").trim()!==""||(e.label??"").trim()!==""||(e.sub??"").trim()!==""||(e.suffix??"").trim()!==""||(e.supSuffix??"").trim()!==""),h=m.length>0?m:p?[{value:"0",label:N("Stat"),sub:N("Add your numbers.")}]:[],y=!!(r&&r!=="transparent");return a(_,{as:"section",className:b(["border-b border-line",s.className].filter(Boolean).join(" "),g),style:{...s.style,...y?{backgroundColor:r}:{}},children:t("div",{className:b(j,g),children:[u?null:a(O,{num:f,title:c?T(c):void 0,desc:n?v(n):void 0}),h.length>0&&a("div",{className:"sf-card grid grid-cols-4 gap-[2px] border border-line bg-line max-view-desktop:grid-cols-2 max-[700px]:grid-cols-1",children:h.map((e,k)=>a(I,{...e},k))})]})})}export{L as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,Fragment as
|
|
1
|
+
import{jsx as e,Fragment as b,jsxs as t}from"react/jsx-runtime";import{HideTaker as v}from"./ViewHideRoot.js";import N from"./SectionEyebrow.js";import{renderGold as M,renderHeadline as y,splitParagraphs as w}from"./goldPhrases.js";import{say as S}from"../../format/lib/editor-words.js";import{withSideOnce as z}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as _}from"./SideSpaceOnce.js";const i={headingMediumUpTo800:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMedium1:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]",bodySmall:"text-[length:var(--size-body,12px)]",body:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,16px)]",headingMedium2:"text-[length:var(--size-headingMedium,46px)]"},k="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] py-[84px] max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",E="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-0 pb-[84px] max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]";function T({look:l,eyebrow:r,title:m,items:p,columns:x,omitHead:n=!1,editing:d=!1}={}){const c=_(),g=Math.min(3,Math.max(1,x??3)),s=(p??[]).filter(a=>d||(a.quote??"").trim()),h=!!(r??"").trim()||!!(m??"").trim();return!d&&!h&&s.length===0?null:e(v,{as:"section",className:"relative z-[2] border-t border-line bg-surface",children:t("div",{className:z(n?E:k,c),children:[n?null:t(b,{children:[(r??"").trim()&&e(N,{text:r??"",look:l,className:"mb-4 block"}),(m??"").trim()&&e("h2",{className:`mb-11 font-heading2 ${i.headingMedium1} font-medium uppercase leading-none tracking-[-0.02em] text-fg max-view-wide:mb-8 ${i.headingMediumUpTo800}`,children:y(m??"",!1)})]}),s.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(--tm-cols),minmax(0,1fr))]",style:{"--tm-cols":String(g)},children:s.map((a,f)=>t("figure",{className:"flex flex-col gap-5 bg-bg p-9 max-view-wide:p-7",children:[e("span",{"aria-hidden":!0,className:`font-heading2 ${i.headingMedium2} leading-none text-accent`,children:"“"}),e("blockquote",{className:`flex-1 ${i.bodyLarge} leading-[1.6] text-fg-dim`,children:w((a.quote??"").trim()||S("A short customer quote goes here.")).map((u,o)=>e("p",{className:o?"mt-3":"",children:M(u)},o))}),t("figcaption",{className:"border-t border-line pt-[18px]",children:[e("div",{className:`font-display ${i.body} font-medium uppercase tracking-[0.04em] text-fg`,children:(a.name??"").trim()||"Customer name"}),(a.role??"").trim()&&e("div",{className:`mt-1 ${i.bodySmall} text-fg-dim`,children:a.role})]})]},f))})]})})}export{T as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,Fragment as v,jsxs as
|
|
1
|
+
import{jsx as e,Fragment as v,jsxs as r}from"react/jsx-runtime";import{HideTaker as j}from"./ViewHideRoot.js";import{bandPadAttrs as _}from"../lib/content/section-padding.js";import{innerPaddingFallback as C}from"../lib/document/passes/section-padding.js";import{SiteLink as E}from"../lib/site-runtime.js";import{stripMarkup as I}from"../../format/lib/markup.js";import{STICKY_ASIDE_CLASS as P}from"../../format/lib/content/sticky-aside.js";import A from"./Placeholder.js";import F from"./SectionEyebrow.js";import{renderGold as m,renderHeadline as w,splitParagraphs as U}from"./goldPhrases.js";import{CentreRailDot as D,CentreRailLine as H,railSideIsLeft as O,SPINE_LINE_CLASS as B,SpineDot as R}from"./TimelineRail.js";import{scrim as G}from"../../format/lib/content/scrim.js";import{withSideOnce as K}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as M}from"./SideSpaceOnce.js";const n={bodyUpTo800:"max-view-wide:text-[length:var(--size-body,16px)]",headingSmallUpTo800:"max-view-wide:text-[length:var(--size-headingSmall,20px)]",bodySmall:"text-[length:var(--size-body,14px)]",bodyLarge:"text-[length:var(--size-body,17px)]",headingSmall:"text-[length:var(--size-headingSmall,24px)]",labelSmall:"text-[length:var(--size-label,11px)]",labelLarge:"text-[length:var(--size-label,13px)]"};function N({eyebrow:a,title:t,intro:l,center:s=!1}){return r(v,{children:[a&&e(F,{text:a,size:12}),t&&e("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(40px,5vw,76px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[0.94] tracking-[-0.03em] text-fg",children:w(t)}),l&&e("p",{className:[`font-display ${n.bodySmall} leading-[1.6] text-fg-dim`,s?"max-w-[520px]":"max-w-[360px]"].join(" "),children:m(l,!0)})]})}function S({cta:a,className:t=""}){return a?.text?r(E,{newTab:"auto",href:a.href,className:["group inline-flex items-center gap-3.5 border border-line px-5 py-4",`font-mono ${n.labelLarge} uppercase tracking-[0.3em] text-fg`,"transition-colors hover:border-accent hover:text-accent",t].join(" "),children:[m(a.text),e("span",{"aria-hidden":!0,className:"text-accent transition-transform group-hover:translate-x-[3px]",children:"→"})]}):null}function k({src:a,caption:t,meta:l,aspectClass:s,editing:d,sizes:c="100vw",className:p=""}){return!a&&!d?null:r("figure",{className:["relative overflow-hidden border border-line bg-surface",s,p].join(" "),children:[e(A,{label:t||"Image",src:a,alt:I(t??""),sizes:c}),e("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",style:{background:`linear-gradient(180deg, transparent 55%, ${G(.75)} 100%)`}}),(t||l)&&r("figcaption",{className:`absolute inset-x-0 bottom-0 z-[1] flex items-center justify-between gap-3 px-4 py-3 font-mono ${n.labelSmall} uppercase tracking-[0.24em] text-overlay-fg/85`,children:[e("span",{children:t?m(t):""}),l&&e("span",{className:"text-accent",children:m(l)})]})]})}function g({entry:a}){const t=U(a.body??"");return r(v,{children:[a.title&&e("h3",{className:`mb-3.5 font-heading3 ${n.headingSmall} font-medium uppercase tracking-[-0.02em] text-fg ${n.headingSmallUpTo800}`,children:w(a.title)}),t.length>0&&e("div",{className:`space-y-3.5 font-display ${n.bodyLarge} leading-[1.6] ${n.bodyUpTo800}`,children:t.map((l,s)=>e("p",{className:s===0?"text-fg":"text-fg-dim",children:m(l,!0)},s))})]})}function X({layout:a="split",eyebrow:t,title:l,intro:s,imageSrc:d,imageCaption:c,imageMeta:p,cta:f,entries:y,padTop:z,padBottom:L,bandPad:T,editing:h}={}){const $=M(),u=T??_({padTop:z,padBottom:L},C("Timeline")),x=(y??[]).filter(i=>(i.date??"").trim()||(i.title??"").trim()||(i.body??"").trim());return e(j,{as:"section",className:"relative z-[2] bg-bg",children:e("div",{className:K(["mx-auto max-w-[var(--sf-site-width,1600px)] border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]",u.className].filter(Boolean).join(" "),$),style:u.style,children:a==="split"?r("div",{className:"grid grid-cols-[1fr_1.4fr] gap-20 max-view-desktop:grid-cols-1 max-view-desktop:gap-12",children:[r("aside",{className:`${P} flex flex-col gap-6 self-start max-view-desktop:static`,children:[e(N,{eyebrow:t,title:l,intro:s}),e(k,{src:d,caption:c,meta:p,aspectClass:"mt-1 aspect-[4/5]",sizes:"(max-width: 1100px) 100vw, 420px",editing:h}),e(S,{cta:f,className:"mt-2 self-start"})]}),e("ol",{className:"flex flex-col gap-12",children:x.map((i,o)=>r("li",{className:"grid grid-cols-[80px_1fr] items-start gap-6 max-[700px]:grid-cols-1 max-[700px]:gap-2",children:[e("span",{className:`pt-1.5 font-mono ${n.labelLarge} tracking-[0.24em] text-accent`,children:i.date?m(i.date):""}),e("div",{className:"max-w-[640px]",children:e(g,{entry:i})})]},o))})]}):r("div",{children:[r("header",{className:"mx-auto flex max-w-[760px] flex-col items-center gap-6 text-center",children:[e(N,{eyebrow:t,title:l,intro:s,center:!0}),e(S,{cta:f})]}),e(k,{src:d,caption:c,meta:p,aspectClass:"mx-auto mt-12 aspect-[16/9] w-full max-w-[900px]",sizes:"(max-width: 900px) 100vw, 900px",editing:h}),a==="spine"?e("ol",{className:"relative mx-auto mt-16 max-w-[760px]",children:x.map((i,o)=>r("li",{className:`relative ${B} pb-12 pl-10 last:pb-0 max-[700px]:pl-8`,children:[e(R,{}),e("div",{className:`mb-2 font-mono ${n.labelLarge} tracking-[0.24em] text-accent`,children:i.date?m(i.date):""}),e("div",{className:"max-w-[640px]",children:e(g,{entry:i})})]},o))}):r("ol",{className:"relative mx-auto mt-16 max-w-[1000px]",children:[e(H,{}),x.map((i,o)=>{const b=O(o);return r("li",{className:"relative mb-14 pl-8 last:mb-0 min-[801px]:grid min-[801px]:grid-cols-2 min-[801px]:gap-16 min-[801px]:pl-0",children:[e(D,{}),r("div",{className:b?"min-[801px]:col-start-1 min-[801px]:pr-8 min-[801px]:text-right":"min-[801px]:col-start-2 min-[801px]:pl-8",children:[e("div",{className:`mb-2 font-mono ${n.labelLarge} tracking-[0.24em] text-accent`,children:i.date?m(i.date):""}),e("div",{className:["max-w-[520px] max-view-wide:max-w-none",b?"min-[801px]:ml-auto":""].join(" "),children:e(g,{entry:i})})]})]},o)})]})]})})})}export{X as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as t,jsxs as a}from"react/jsx-runtime";import{HideTaker as
|
|
1
|
+
import{jsx as t,jsxs as a}from"react/jsx-runtime";import{HideTaker as j}from"./ViewHideRoot.js";import{bandPadAttrs as B}from"../lib/content/section-padding.js";import{innerPaddingFallback as P}from"../lib/document/passes/section-padding.js";import{SiteLink as z}from"../lib/site-runtime.js";import R from"./EditorialSectionHead.js";import f from"./PartStyledText.js";import{withRMark as n}from"./RMark.js";import{renderGold as v,renderHeadline as $}from"./goldPhrases.js";import{railPastShare as C,railYearInkClass as E,TrackRailDot as L,TrackRailLine as O,trackStopRailClass as _}from"./TimelineRail.js";import{withSideOnce as u}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as H}from"./SideSpaceOnce.js";const i={body:"text-[length:var(--size-body,13px)]",headingSmall:"text-[length:var(--size-headingSmall,20px)]",label:"text-[length:var(--size-label,13px)]"};function I({eyebrow:g,title:s,intro:d,entries:h,cta:l,padTop:b,padBottom:k,bandPad:w,background:N,editing:S,omitHead:m=!1}={}){const p=H(),c=w??B({padTop:b,padBottom:k},P("TimelineTrack")),x=N??"var(--section-bg)",y=x!=="transparent",r=(h??[]).filter(e=>(e.date??"").trim()||(e.title??"").trim()||(e.blurb??"").trim());if(r.length===0&&!S)return null;const T=C(r);return t(j,{as:"section",className:"relative z-[2]",children:t("div",{className:u(["border-b border-line",c.className].filter(Boolean).join(" "),p),style:{...c.style,...y?{backgroundColor:x}:{}},children:a("div",{className:u("mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]",p),children:[m?null:t(R,{num:g,title:s?$(s):void 0,desc:d?v(d,!0):void 0,spaceBelow:"",className:"text-fg"}),a("div",{className:m?"relative mt-0 grid grid-cols-[repeat(var(--cols),minmax(0,1fr))] gap-0 border-t border-line pt-[60px] max-view-desktop:mt-0 max-view-desktop:grid-cols-1 max-view-desktop:gap-0 max-view-desktop:border-t-0 max-view-desktop:pt-0":"relative mt-[60px] grid grid-cols-[repeat(var(--cols),minmax(0,1fr))] gap-0 border-t border-line pt-[60px] max-view-desktop:mt-9 max-view-desktop:grid-cols-1 max-view-desktop:gap-0 max-view-desktop:border-t-0 max-view-desktop:pt-0",style:{"--cols":r.length},children:[t(O,{pct:T}),r.map((e,o)=>a("div",{className:["relative flex min-h-[280px] flex-col gap-3.5 px-3.5",_(!!e.future,o===0),"max-view-desktop:min-h-0 max-view-desktop:border-t-0 max-view-desktop:py-6 max-view-desktop:pl-7 max-view-desktop:ml-1.5"].join(" "),children:[t(L,{future:!!e.future,first:o===0}),t("span",{className:[`font-mono ${i.label} tracking-[0.22em]`,E(!!e.future)].join(" "),children:e.date?t(f,{value:e.date,children:n(e.date)}):""}),e.title&&t("h3",{className:`whitespace-pre-line font-heading3 ${i.headingSmall} font-medium uppercase leading-[1.1] tracking-[-0.02em] text-fg`,children:t(f,{value:e.title,children:n(e.title)})}),e.blurb&&t("p",{className:`mt-auto font-display ${i.body} leading-[1.55] text-fg-dim`,children:v(e.blurb,!0)})]},o))]}),l?.text&&t("div",{className:"mt-12 flex justify-end border-t border-line pt-8",children:a(z,{newTab:"auto",href:l.href,className:`group inline-flex items-center gap-3.5 border border-line px-6 py-4 font-mono ${i.label} uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent`,children:[n(l.text),t("span",{"aria-hidden":!0,className:"text-accent transition-transform group-hover:translate-x-[3px]",children:"→"})]})})]})})})}export{I as default};
|