efficient-web-builder 74.0.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 +43 -0
- package/dist/editor/components/PreviewFooterContext.d.ts +3 -1
- package/dist/editor/components/PreviewFooterContext.js +1 -1
- package/dist/editor/components/PreviewPartAnchors.d.ts +2 -1
- package/dist/editor/components/PreviewPartAnchors.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 +3 -0
- package/dist/editor/lib/document/controls.js +1 -1
- package/dist/editor/lib/document/own-pad-fields.d.ts +7 -1
- package/dist/editor/lib/document/own-pad-fields.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/borders.d.ts +2 -1
- package/dist/format/lib/content/borders.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/document/blocks/block-types.d.ts +1 -0
- package/dist/format/lib/document/passes/types.d.ts +4 -2
- package/dist/format/lib/editor-words-catalogue.d.ts +5 -0
- package/dist/format/lib/editor-words-catalogue.js +3 -3
- package/dist/format/lib/sections/strip-shape.d.ts +1 -0
- package/dist/format/lib/sections/strip-shape.js +1 -1
- 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/format/lib/theme.d.ts +2 -1
- package/dist/format/lib/theme.js +3 -3
- package/dist/render/components/Breadcrumb.d.ts +4 -1
- 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/PhoneMenuTools.d.ts +3 -1
- package/dist/render/components/PhoneMenuTools.js +1 -1
- package/dist/render/components/ProcessSteps.js +1 -1
- package/dist/render/components/Prose.js +1 -1
- package/dist/render/components/PublishedPartStylesContext.d.ts +2 -1
- package/dist/render/components/PublishedPartStylesContext.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.d.ts +4 -1
- 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/content/section-padding.d.ts +24 -14
- package/dist/render/lib/content/section-padding.js +1 -1
- package/dist/render/lib/document/blocks/general/Breadcrumb/render.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/SpecStrip/render.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-row-parts.d.ts +1 -0
- package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-pageheader.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-strip.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/part-styles.d.ts +7 -4
- package/dist/render/lib/document/part-styles.js +2 -2
- package/dist/render/lib/document/passes/clickable-parts.js +1 -1
- package/dist/render/lib/document/passes/section-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.d.ts +2 -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
|
-
"use client";import{jsx as t,jsxs as m,Fragment as
|
|
1
|
+
"use client";import{jsx as t,jsxs as m,Fragment as ne}from"react/jsx-runtime";import{bandPadAttrs as re}from"../lib/content/section-padding.js";import{innerPaddingFallback as ae}from"../lib/document/passes/section-padding.js";import{HideTaker as ie}from"./ViewHideRoot.js";import{isWebAddress as oe}from"../../format/lib/content/box-link.js";import{SiteLink as se}from"../lib/site-runtime.js";import{useEffect as B,useMemo as ce,useState as G}from"react";import{CardTemplateRows as K}from"./CardRowContext.js";import{FOOTPRINT_LIST_COLUMNS_DEFAULT as me,FOOTPRINT_MAP_HEIGHT_FULL as de,FOOTPRINT_SHOWS_DEFAULT as pe,footprintCardRow as z,footprintListColsClass as fe,footprintListPosition as ue,footprintPins as be,footprintSearchText as he}from"../../format/lib/content/footprint.js";import{LIST_KEY_ATTR as xe,LIST_ROW_ATTR as ge,LIST_TEXT_ATTR as ye}from"../../format/lib/content/list-query.js";import{bucketByGroup as ve}from"../../format/lib/locations-grid.js";import Te from"./EditorialSectionHead.js";import Se from"./SectionHeader.js";import{LocationGroupHeader as we}from"./LocationGroupHeader.js";import{renderGold as Ne,renderHeadline as D}from"./goldPhrases.js";import ke from"./PartStyledText.js";import{say as U}from"../../format/lib/editor-words.js";import Le from"./DealerFinder.js";import _e from"./ListSearchBox.js";import $e,{sideMapClass as Fe}from"./SideListLayout.js";import Oe from"./SiteMap.js";import{InsideSiteColumn as W}from"./SiteGutterFrame.js";import{withSideOnce as He}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as Ae}from"./SideSpaceOnce.js";const r={bodySmall:"text-[length:var(--size-body,10px)]",bodyLarge:"text-[length:var(--size-body,18px)]",labelSmall:"text-[length:var(--size-label,11px)]",labelLarge:"text-[length:var(--size-label,12px)]"},q=`absolute bottom-5 left-6 font-mono ${r.labelSmall} uppercase tracking-[0.24em] text-accent hover:underline`;function Ie({sectionNumber:d="",heading:a="",tagline:b="",offices:n=[],mapTheme:h="auto",padTop:L,padBottom:_,bandPad:g,editing:p,omitHead:$=!1,dealers:f=!1,search:c=!1,searchHint:i="",noMatchText:S="",listPosition:u="below",showDistance:X=!0,shows:w=pe,listColumns:I=me,mapHeight:Y,headInList:Z=!1,template:F,ownerId:y="",pressTitles:J}){const V=Ae(),N=f===!0,C=w!=="list",ee=w!=="map",v=ue({shows:w,listPosition:u}),O=Y===de,M=Z&&v!=="below",E=g??re({padTop:L,padBottom:_},ae("Footprint")),[T,x]=G(null),te=n.length===0&&!N&&!d&&!a&&!b;if(B(()=>{x(e=>e!==null&&e>=n.length?null:e)},[n]),te&&!p)return null;const P=ve(n,e=>String(e.group??""),()=>""),le=(e,l)=>{const s=T===l,o=e.href&&e.linkLabel?{href:e.href,label:e.linkLabel}:null,k=m("button",{type:"button",onClick:()=>x(l),"aria-pressed":s,className:["flex flex-col gap-1.5 bg-bg px-6 py-5 text-left transition-colors outline outline-1 -outline-offset-1",s?"outline-accent":"outline-transparent hover:outline-line",o?"w-full pb-11":""].filter(Boolean).join(" "),children:[m("span",{className:`flex items-center gap-2.5 font-mono ${r.labelSmall} uppercase tracking-[0.28em]`,children:[e.hq&&t("span",{className:`border border-accent bg-accent px-1.5 py-0.5 ${r.bodySmall} text-bg`,children:"HQ"}),e.role&&t("span",{className:"text-accent",children:e.role})]}),e.city&&t("span",{className:`font-display ${r.bodyLarge} font-medium leading-[1.2] tracking-[-0.01em] text-fg`,children:t(ke,{value:e.city,children:e.city})}),e.country&&t("span",{className:`font-mono ${r.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:e.country}),e.address&&t("span",{className:`font-mono ${r.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:Ne(e.address)})]},o?void 0:l);return o?m("div",{className:"relative flex",children:[k,oe(o.href)?t(se,{newTab:"auto",href:o.href,className:q,children:`→ ${o.label}`}):t("a",{href:o.href,className:q,children:`→ ${o.label}`})]},l):k},H=P.flatMap(e=>e.items),R=e=>t("div",{className:C?"mt-12 flex flex-col gap-8":"flex flex-col gap-8",children:P.map((l,s)=>m("div",{children:[l.key&&t(we,{groupKey:l.key,count:l.items.length}),t("div",{className:["grid gap-[2px] bg-bg",fe(I,l.items.length)].join(" "),children:e(l)})]},l.key?`g:${l.key}`:`ungrouped:${s}`))}),j=!$&&!!(d||a||b),A=M&&j?t(Se,{look:"natural",num:d||void 0,title:a?D(a):void 0,description:b||void 0,spaceBelow:"mb-8"}):null;return t(ie,{as:"section",className:"relative z-[2] bg-bg",children:m("div",{className:He(["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))]",E.className].filter(Boolean).join(" "),V),style:E.style,children:[j&&!M&&t(Te,{num:d,title:a?D(a):void 0,desc:b||void 0,spaceBelow:"mb-12"}),N?t(Le,{mapLabel:a.replace(/[=*]/g,"").replace(/\s+/g," ").trim(),mapTheme:h,search:c,searchHint:i,noMatchText:S,listPosition:u,showDistance:X,shows:w,listColumns:I,fullHeight:O,sectionHead:A,editing:p,template:F,ownerId:y}):v!=="below"?t($e,{position:v,attrs:{"data-footprint-list":v},fullHeight:O,head:A||c?m(ne,{children:[A,c?t("div",{className:"mb-4",children:t(_e,{hint:i,noMatchText:S,listKey:`${y}:offices`,editing:p})}):null]}):null,listAttrs:c?{[xe]:`${y}:offices`}:void 0,list:t(W,{children:t(K,{ownerId:y,ownerType:"Footprint",Template:F,rows:n.map(z),states:n.map((e,l)=>T===l?{selected:!0}:void 0),actions:n.map((e,l)=>({press:()=>x(l)})),pressTitles:J,copyAttrs:e=>({[ge]:"",[ye]:he(n[e.index])}),fallback:null,children:e=>e})}),map:t(Q,{offices:n,mapLabel:a.replace(/[=*]/g,"").replace(/\s+/g," ").trim(),mapTheme:h,activeIndex:T,onSelect:x,editing:p,frame:`sf-card relative w-full overflow-hidden border border-line ${Fe(O)}`})}):C?t(Q,{offices:n,mapLabel:a.replace(/[=*]/g,"").replace(/\s+/g," ").trim(),mapTheme:h,activeIndex:T,onSelect:x,editing:p}):null,!N&&ee&&v==="below"&&n.length>0&&t(K,{ownerId:y,ownerType:"Footprint",Template:F,rows:H.map(({item:e})=>z(e)),states:H.map(({index:e})=>T===e?{selected:!0}:void 0),actions:H.map(({index:e})=>({press:()=>x(e)})),fallback:R(e=>e.items.map(({item:l,index:s})=>le(l,s))),children:e=>{const l=e;let s=0;return t(W,{children:R(o=>{const k=l.slice(s,s+o.items.length);return s+=o.items.length,k})})}}),!N&&n.length===0&&p&&t("p",{className:`mt-8 font-mono ${r.labelLarge} uppercase tracking-[0.24em] text-fg-dim`,children:U("Add an office in the inspector")})]})})}function Q({offices:d,mapLabel:a,mapTheme:b,activeIndex:n,onSelect:h,editing:L,frame:_}){const g=ce(()=>be(d),[d]),[p,$]=G(null),f=n===null?null:String(n),c=f!==null&&g.some(u=>u.key===f);if(B(()=>{f!==null&&c&&$(u=>({key:f,n:(u?.n??0)+1}))},[f,c]),g.length===0)return L?t("div",{className:"relative flex aspect-[16/9] w-full items-center justify-center overflow-hidden border border-line bg-bg px-6 text-center max-view-tablet:aspect-[4/5]",children:t("span",{className:`font-mono ${r.labelLarge} uppercase tracking-[0.24em] text-fg-dim`,children:U("Add office coordinates to plot the map")})}):null;const i=c&&n!==null?d[n]:null,S=i?m("div",{className:"flex items-start gap-3 border border-line bg-bg px-3.5 py-2.5 text-fg shadow-[0_8px_24px_rgba(0,0,0,.4)]",children:[m("div",{className:"min-w-0 flex-1",children:[m("div",{className:`flex items-center gap-2 font-mono ${r.labelSmall} uppercase tracking-[0.28em]`,children:[i.hq&&t("span",{className:`bg-accent px-1.5 py-px ${r.bodySmall} text-bg`,children:"HQ"}),i.role&&t("span",{className:"text-accent",children:i.role})]}),i.city&&t("div",{className:`mt-1.5 font-display ${r.bodyLarge} font-medium leading-[1.2] text-fg`,children:i.city}),i.country&&t("div",{className:`mt-1 font-mono ${r.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:i.country})]}),t("button",{type:"button",onClick:()=>h(null),"aria-label":"Close",className:"-mr-1 grid h-6 w-6 shrink-0 place-items-center text-fg-dim hover:text-fg",children:t("svg",{"aria-hidden":!0,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:t("path",{d:"M2 2l8 8M10 2l-8 8"})})})]}):null;return t(Oe,{pins:g,mapTheme:b,ariaLabel:a||"Offices",className:_??"sf-card relative aspect-[16/9] w-full overflow-hidden border border-line max-view-tablet:aspect-[4/5]",selectedKey:c?f:null,focus:p,onSelect:u=>h(Number(u)),card:S})}export{Ie as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as g}from"react/jsx-runtime";import{useTakeViewHide as
|
|
1
|
+
import{jsx as g}from"react/jsx-runtime";import{useTakeViewHide as C,withViewHide as L}from"./ViewHideRoot.js";import{containerDirectionClass as v,resolveContainerDirection as D}from"../../format/lib/content/container-direction.js";import{containerGapProps as V}from"../../format/lib/content/container-gap.js";import{cssLengthOf as m,storedUnit as W}from"../../format/lib/content/css-length.js";import{finiteNumber as y}from"../../format/lib/finite-number.js";import{isLengthUnit as A}from"efficient-easel/screen/lib/content/length-units";import{boxLayoutClasses as B,boxWrapClass as E}from"../../format/lib/content/box-layout.js";import{sectionPadAttrs as F}from"../lib/content/section-padding.js";import{withSideOnce as M}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as R}from"./SideSpaceOnce.js";import{clampNudge as x,clampWidth as T,normalisePlacement as _,placementParts as q,placementRow as z}from"../../format/lib/hero-group-placement.js";function I({placement:N,nudgeX:a,nudgeY:c,width:o,widthUnit:b,nudgeUnit:t,gap:H,gapPhone:G,gapTablet:P,direction:l,justify:j,align:w,wrap:O,pad:S={},content:p,dragRef:$}){const k=R(),i=C(),n=_(N),e=A(t)&&t!=="px"?t:null,f=e?y(a)??0:x(a),u=e?y(c)??0:x(c),h=V("HeroGroup",H,D("HeroGroup",l)==="column"?"block":"inline",G,P),r={"--sf-hg-row":z(n),justifySelf:q(n).column};if(typeof o=="number"&&Number.isFinite(o)){const d=W(b,"%");r["--sf-hg-w"]=d==="%"?`${T(o)}%`:m(Math.max(0,o),d)}(f!==0||u!==0)&&(r["--sf-hg-nudge"]=`${m(f,e)} ${m(u,e)}`);const s=F(S);return i.scope(g("div",{className:L(s?`sf-hero-group ${M(s.className,k)}`:"sf-hero-group",i.className),"data-hg":n,...i.attrs,style:s?{...r,...s.style}:r,ref:$??void 0,children:p?g(p,{className:["sf-hero-group-blocks flex",v("HeroGroup",l),B(j,w),E(O)].filter(Boolean).join(" ")+h.className,style:h.style,minEmptyHeight:40}):null}))}export{I as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as e,jsxs as
|
|
1
|
+
"use client";import{jsx as e,jsxs as L}from"react/jsx-runtime";import{heroPhoneWordsStyle as se}from"../../format/lib/hero-phone-stack.js";import{SIDE_ONCE_HOLDS_CLASS as ae}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as ne}from"./SideSpaceOnce.js";import{HideTaker as le}from"./ViewHideRoot.js";import{useRef as ce,useState as me}from"react";import he from"./HeroPoster.js";import{HeroMediaLayer as ue,heroMediaReading as de,HeroPickArea as fe,heroPartEntrance as pe,heroPartHover as ge,heroPartScroll as ve,heroPictureOrigins as ye,HeroPictureHover as He,heroPicturesHover as Se,HeroTint as Pe,HeroTwoPictures as xe}from"./HeroPictures.js";import{HeroVideoBackdrop as _e,HeroVideoPlayer as be}from"./HeroVideoPlay.js";import{resolveMedia as i}from"../lib/media.js";import{heroHeightBox as we,heroStoresRatio as Te}from"../../format/lib/content/section-height.js";import{DEFAULT_OVERLAY_POSITION as Ee,overlayGradient as Ne}from"../../format/lib/sections/hero-overlay.js";import{ON_MEDIA_INK_STYLE as Le}from"../../format/lib/content/ink.js";import{DEFAULT_TINT as h}from"../../format/lib/content/tint.js";import{HERO_ABSENT_MEDIA_TYPE as Oe}from"../../format/lib/hero-media-layout.js";import Ae from"./PhotoHoverSheet.js";import{partAttr as u}from"../../format/lib/content/part-names.js";function Ie({overlay:O=100,overlayColor:A=h,overlayPosition:I=Ee,mediaType:d=Oe.HeroSingle,mediaSrc:s,poster:f,objectPosition:a,objectPositionPhone:n,objectPositionTablet:l,tintColor:p=h,tintOpacity:g=0,heightDesktop:k,heightMobile:D,heightFixed:R,heightFixedTablet:V,heightFixedMobile:j,phoneWordsTop:z,phoneWordsBottom:M,phoneBoxGap:B,boxes:v,videoSource:C,youtubeUrl:Y,videoPlayback:F,mediaLayout:U,mediaLayoutPhone:$,mediaImage2:G,objectPosition2:K,objectPosition2Phone:W,objectPosition2Tablet:q,tintColor2:J=h,tintOpacity2:Q=0,editing:o=!1,partMotion:r}){const X=ne(),y=we({heightDesktop:k,heightMobile:D,heightFixed:R,heightFixedTablet:V,heightFixedMobile:j}),{className:Z,style:ee}=y,H=Te(y),c=d==="video",S=c?i(s):void 0,P=c?i(f):i(s)??i(f),{fromYouTube:x,onClick:_,youTubeId:b,backgroundFile:w,desktopLayout:oe,phoneLayout:re,twoPictures:T}=de({isVideo:c,videoSource:C,videoPlayback:F,youtubeUrl:Y,mediaLayout:U,mediaLayoutPhone:$}),[E,te]=me(!1),m=!E,ie=ce(null),t=d==="video"?"media":"image",N=Se(r);return L(le,{as:"section",ref:ie,className:`relative mx-[var(--sf-hero-bleed-m,calc(50%_-_50vw))] w-[var(--sf-hero-bleed-w,100vw)] ${Z} max-w-[var(--sf-hero-cap,none)] ${H?"overflow-clip":"overflow-hidden"}`,style:ee,...N.hostAttrs,...u("hero"),children:[e(Ae,{sheet:N.sheet}),e(ue,{partMotion:r,editing:o,children:T?e(xe,{desktopLayout:oe,phoneLayout:re,editing:o,partMotion:r,first:{src:s,objectPosition:a,objectPositionPhone:n,objectPositionTablet:l,tintColor:p,tintOpacity:g},second:{src:G,objectPosition:K,objectPositionPhone:W,objectPositionTablet:q,tintColor:J,tintOpacity:Q}}):e(fe,{part:t,editing:o,entrance:t==="image"?pe(r,"image"):null,scroll:t==="image"?ve(r,"image"):null,origins:ye({objectPosition:a,objectPositionTablet:l,objectPositionPhone:n}),className:"absolute inset-0 z-[1]",children:L(He,{treatment:t==="image"?ge(r,"image"):{},children:[e(he,{videoSrc:w?S:void 0,posterSrc:P,showVideo:w,objectPosition:a,objectPositionPhone:n,objectPositionTablet:l}),x&&e(_e,{youTubeId:b,ownPoster:!!P,background:!_,editing:o})]})})}),_&&e(be,{youTubeId:b,fileSrc:x?void 0:S,playing:E,onPlay:()=>te(!0),editing:o}),m&&!T&&e(Pe,{color:p,opacity:g}),m&&e("div",{className:"pointer-events-none absolute inset-0 z-[2]",style:{background:Ne(A,I),opacity:Math.min(Math.max(O,0),100)/100},...u("overlay")}),m&&v&&e("div",{className:[H?"sf-hero-group-layer relative min-h-full z-[3] mx-auto":"sf-hero-group-layer absolute inset-0 z-[3] mx-auto","max-w-[var(--sf-site-width,1600px)]","px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14",X?ae:"",o?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{...Le,...se(z,M,B)},...u("hero-content"),children:e(v,{className:"sf-hero-group-zone",minEmptyHeight:160})})]})}export{Ie as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as e,jsxs as M}from"react/jsx-runtime";import{useTakeViewHide as
|
|
1
|
+
"use client";import{jsx as e,jsxs as M}from"react/jsx-runtime";import{useTakeViewHide as _e,withViewHide as Oe}from"./ViewHideRoot.js";import{SIDE_ONCE_HOLDS_CLASS as Ae}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as Le}from"./SideSpaceOnce.js";import{createContext as Ne,useContext as Ce,useEffect as Ie,useRef as De,useState as W}from"react";import Re from"./HeroPoster.js";import{HeroMediaLayer as Ve,heroMediaReading as Be,HeroPickArea as je,heroPartEntrance as ze,heroPartHover as Fe,heroPartScroll as $e,heroPictureOrigins as Me,HeroPictureHover as We,heroPicturesHover as Ye,HeroTint as qe,HeroTwoPictures as Ge}from"./HeroPictures.js";import{HeroVideoBackdrop as Ue,HeroVideoPlayer as Ke}from"./HeroVideoPlay.js";import{BelowFirstScreen as Je,useFirstScreenPlace as Qe}from"../lib/first-screen.js";import{markedChildren as Xe}from"../../format/lib/marked-children.js";import{resolveMedia as r}from"../lib/media.js";import{heroPhoneStackStyle as Ze,heroPhoneWordsStyle as eo}from"../../format/lib/hero-phone-stack.js";import{heroTextureGradient as oo,heroTextureShown as ro}from"../../format/lib/hero-texture.js";import{ON_MEDIA_INK_STYLE as to}from"../../format/lib/content/ink.js";import{DEFAULT_TINT as Y}from"../../format/lib/content/tint.js";import{HERO_ABSENT_MEDIA_TYPE as io}from"../../format/lib/hero-media-layout.js";import{overlayGradient as no,slideOverlayState as so}from"../../format/lib/sections/hero-overlay.js";import ao from"./PhotoHoverSheet.js";import{partAttr as w}from"../../format/lib/content/part-names.js";const lo=Ne({});function co({name:g,process:d,mediaType:q=io.HeroSlide,mediaSrc:c,videoSpeed:H,poster:E,mediaAv1:G,mediaSrcPhone:U,mediaAv1Phone:K,posterPhone:J,objectPosition:f,objectPositionPhone:u,objectPositionTablet:p,tintColor:T=Y,tintOpacity:b=0,groups:k,editing:i=!1,themeClassName:_,themeStyle:Q,overlayColor:X,overlayPosition:Z,mediaLayout:ee,mediaLayoutPhone:oe,mediaImage2:re,objectPosition2:te,objectPosition2Phone:ie,objectPosition2Tablet:ne,tintColor2:se=Y,tintOpacity2:ae=0,videoSource:le,youtubeUrl:de,videoPlayback:ce,partMotion:n,laterSlide:m=!1}){const fe=Le(),h=_e(),{alignment:fo="left",textureOpacity:O,textureOn:ue,textureColor:pe,quietVideo:me,phoneUpDown:he,phoneSideways:Se,phoneWordsTop:ve,phoneWordsBottom:ye,phoneBoxGap:xe,holdReel:Pe,reelHeld:we,shownSlide:S,ratioMin:A}=Ce(lo),ge=Qe(),L=m&&ge==="first",N=De(null),[He,Ee]=W(S===void 0?void 0:!1);Ie(()=>{const P=N.current;Ee(S===void 0||!P?void 0:Xe(P.closest(".hero-track"),"data-slide-name")[S]===P)});const o=q==="video",v=o?r(c):void 0,C=o?r(E):r(c)??r(E),t=o?{av1:r(G),phone:r(U),av1Phone:r(K),poster:r(J)}:{},Te=typeof H=="number"?H/100:1,{fromYouTube:s,onClick:I,youTubeId:D,backgroundFile:a,desktopLayout:be,phoneLayout:ke,twoPictures:R}=Be({isVideo:o,videoSource:le,videoPlayback:ce,youtubeUrl:de,mediaLayout:ee,mediaLayoutPhone:oe}),[y,V]=W(!1);y&&we===!1&&V(!1);const x=!y,l=so({overlayColor:X,overlayPosition:Z},pe),B=o?null:ze(n,"image"),j=o?null:$e(n,"image"),z=Ye(n),F=e(We,{treatment:o?{}:Fe(n,"image"),children:e(Re,{videoSrc:a?v:void 0,videoAv1Src:a?t.av1:void 0,videoSrcPhone:a?t.phone:void 0,videoAv1SrcPhone:a?t.av1Phone:void 0,posterSrc:C,posterSrcPhone:t.poster,showVideo:a,playbackRate:Te,objectPosition:f,objectPositionPhone:o?void 0:u,objectPositionTablet:o?void 0:p,quiet:me,slideShown:He,laterSlide:m,laterOfLead:L})}),$=M("section",{ref:N,className:Oe(`${A?"relative flex min-h-full w-full flex-col overflow-clip":"relative h-full w-full overflow-hidden"}${_?` ${_}`:""}`,h.className),...h.attrs,style:Q,"data-slide-name":g??"","data-slide-process":d??"","data-slide-media":a&&v?"video":"still",...z.hostAttrs,...w("slide"),children:[e(ao,{sheet:z.sheet}),e(Ve,{partMotion:n,editing:i,children:R?e(Ge,{laterSlide:m,desktopLayout:be,phoneLayout:ke,editing:i,partMotion:n,first:{src:c,objectPosition:f,objectPositionPhone:u,objectPositionTablet:p,tintColor:T,tintOpacity:b},second:{src:re,objectPosition:te,objectPositionPhone:ie,objectPositionTablet:ne,tintColor:se,tintOpacity:ae}}):s||B||j?M(je,{part:o?"media":"image",editing:i,entrance:B,scroll:j,origins:Me({objectPosition:f,objectPositionTablet:p,objectPositionPhone:u}),className:"absolute inset-0 z-[1]",children:[F,s&&e(Ue,{youTubeId:D,ownPoster:!!C,background:!I,editing:i})]}):F}),I&&e(Ke,{youTubeId:D,fileSrc:s?void 0:v,fileAv1Src:s?void 0:t.av1,fileSrcPhone:s?void 0:t.phone,fileAv1SrcPhone:s?void 0:t.av1Phone,playing:y,onPlay:()=>{V(!0),Pe?.()},editing:i}),x&&!R&&e(qe,{color:T,opacity:b,passClicks:!1}),x&&ro(ue)&&e("div",{className:"absolute inset-0 z-[2]",style:{background:l.own?no(l.color,l.position??void 0):oo(l.color),...O!==void 0?{opacity:O/100}:null},...w("overlay")}),x&&e("div",{className:[A?"sf-hero-group-layer relative z-[3] mx-auto w-full flex-1 max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14":"sf-hero-group-layer absolute inset-0 z-[3] mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14",fe?Ae:"",i?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{...to,...Ze(he,Se),...eo(ve,ye,xe)},...w("hero-content"),children:k&&e(k,{className:"sf-hero-group-zone",minEmptyHeight:160})})]});return h.scope(L?e(Je,{children:$}):$)}const Lo=Array.from({length:3},(g,d)=>({name:`Slide ${d+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));export{Lo as HERO_SLIDE_SEEDS,lo as HeroSlideStyleContext,co as default};
|
|
@@ -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,9 +1,11 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
-
export type PhoneMenuTool = "search" | "region" | "account" | "theme";
|
|
2
|
+
export type PhoneMenuTool = "search" | "region" | "account" | "cart" | "theme";
|
|
3
|
+
export type PhonePlace = "header" | "menu";
|
|
3
4
|
export interface PhoneMenuTools {
|
|
4
5
|
search: boolean;
|
|
5
6
|
region: boolean;
|
|
6
7
|
account: boolean;
|
|
8
|
+
cart: boolean;
|
|
7
9
|
theme: boolean;
|
|
8
10
|
}
|
|
9
11
|
export declare function PhoneMenuToolsProvider({ children }: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as f}from"react/jsx-runtime";import{createContext as l,useContext as s,useEffect as d,useState as a,useSyncExternalStore as h}from"react";const u=[];function x(){let e=u;const n=new Set,c=r=>{e=r;for(const t of n)t()};return{offer:r=>(c([...e,r]),()=>{const t=e.indexOf(r);t>=0&&c([...e.slice(0,t),...e.slice(t+1)])}),subscribe:r=>(n.add(r),()=>n.delete(r)),offered:()=>e}}const o=l(null);function P({children:e}){const[n]=a(x);return f(o.Provider,{value:n,children:e})}const S=()=>s(o)!==null;function b(e){const n=s(o);d(()=>{if(!(!n||!e))return n.offer(e)},[n,e])}const g=()=>()=>{},i=()=>u;function y(){const e=s(o),n=h(e?.subscribe??g,e?.offered??i,i);return e?{search:n.includes("search"),region:n.includes("region"),account:n.includes("account"),theme:n.includes("theme")}:null}export{P as PhoneMenuToolsProvider,S as useInSiteHeader,b as useOfferToPhoneMenu,y as usePhoneMenuTools};
|
|
1
|
+
"use client";import{jsx as f}from"react/jsx-runtime";import{createContext as l,useContext as s,useEffect as d,useState as a,useSyncExternalStore as h}from"react";const u=[];function x(){let e=u;const n=new Set,c=r=>{e=r;for(const t of n)t()};return{offer:r=>(c([...e,r]),()=>{const t=e.indexOf(r);t>=0&&c([...e.slice(0,t),...e.slice(t+1)])}),subscribe:r=>(n.add(r),()=>n.delete(r)),offered:()=>e}}const o=l(null);function P({children:e}){const[n]=a(x);return f(o.Provider,{value:n,children:e})}const S=()=>s(o)!==null;function b(e){const n=s(o);d(()=>{if(!(!n||!e))return n.offer(e)},[n,e])}const g=()=>()=>{},i=()=>u;function y(){const e=s(o),n=h(e?.subscribe??g,e?.offered??i,i);return e?{search:n.includes("search"),region:n.includes("region"),account:n.includes("account"),cart:n.includes("cart"),theme:n.includes("theme")}:null}export{P as PhoneMenuToolsProvider,S as useInSiteHeader,b as useOfferToPhoneMenu,y as usePhoneMenuTools};
|
|
@@ -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};
|
|
@@ -2,12 +2,13 @@ import { type ReactNode } from "react";
|
|
|
2
2
|
import { type PartStyles, type PublishedPartRule } from "../lib/document/part-styles.js";
|
|
3
3
|
import { type PartMotion } from "../lib/animation/part-motion.js";
|
|
4
4
|
import type { PartNeedle } from "../lib/document/text-parts.js";
|
|
5
|
-
export declare function PublishedPartStyles({ needles, styles, motions, type, atEdge, children, }: {
|
|
5
|
+
export declare function PublishedPartStyles({ needles, styles, motions, type, atEdge, sizeCaps, children, }: {
|
|
6
6
|
needles: PartNeedle[];
|
|
7
7
|
styles: PartStyles;
|
|
8
8
|
motions?: Readonly<Record<string, PartMotion>>;
|
|
9
9
|
type?: string;
|
|
10
10
|
atEdge?: boolean;
|
|
11
|
+
sizeCaps?: Readonly<Record<string, true>>;
|
|
11
12
|
children: ReactNode;
|
|
12
13
|
}): import("react").JSX.Element;
|
|
13
14
|
export declare function usePartEntrance(rule: PublishedPartRule | null): import("react").RefObject<HTMLSpanElement | null>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{Fragment as E,jsx as
|
|
1
|
+
"use client";import{Fragment as E,jsx as m,jsxs as O}from"react/jsx-runtime";import{createContext as P,useContext as p,useEffect as k,useId as A,useMemo as F,useRef as M}from"react";import{armEntrance as j}from"efficient-shell/format";import{blockCapsPartSize as D,blockDrawsTextStyle as K,partRuleForKind as y,partRuleForText as L,partStyleCss as N,publishedPartStyles as I}from"../lib/document/part-styles.js";import{useViewWidth as $}from"./SectionAnimation.js";import{useDrawsAtEdge as B}from"./InBoxContext.js";import{styleKeyForPart as H}from"../../format/lib/sections/section-text-kinds.js";import{NO_MOTIONS as J,PART_LIFT_ATTR as b,drawPartEntrance as W,drawPartScroll as Y,ensurePartLiftSheet as V,firstOnPage as T,partBoxOf as q,partMotionDrawn as z,partMoves as G}from"../lib/animation/part-motion.js";import{styleElementText as Q}from"../../format/lib/document/style-text.js";const h=P(null),R=P(null),_=P(null);function ce({needles:e,styles:t,motions:r=J,type:o,atEdge:n=!1,sizeCaps:a,children:c}){const i=A(),x=B(n?"edge":"by-box"),d=JSON.stringify([i,e,t,r,o,a]),s=F(()=>{const u=Object.keys(r).filter(l=>G(r[l]));return I(e,t,i,l=>H(o,l),l=>K(o,l),l=>u.includes(l)?z(r[l]):null,u,l=>D(a,l))},[d]);if(!s)return m(E,{children:c});const f=N(s,{inBox:x});return O(E,{children:[f&&m("style",{href:`${U}${i}-${X(f)}`,precedence:w,dangerouslySetInnerHTML:{__html:Q(f)}}),m(h.Provider,{value:s,children:c})]})}const g=new WeakMap;function v(e,t){const r=T(t.filter(n=>n.arm)),o=t.some(n=>n.entering)?void 0:T(t.filter(n=>n.scroll));for(const n of t)n!==r&&n.undo&&(n.undo(),n.undo=void 0),n!==o&&n.undoScroll&&(n.undoScroll(),n.undoScroll=void 0);r?.arm&&!r.undo&&(r.undo=r.arm()),o?.scroll&&!o.undoScroll&&(o.undoScroll=o.scroll()),t.some(n=>n.lift)?(V(e.ownerDocument),e.setAttribute(b,"")):e.removeAttribute(b)}function ie(e){const t=M(null),r=e?.motion?.entrance??null,o=e?.motion?.scroll??null,n=e?.motion?.hover==="lift",a=$(t,r!==null||o!==null),c=r?r[a]:null,i=o&&o[a].effect!=="none"?o[a]:null,x=JSON.stringify([c,i]);return k(()=>{const d=t.current,s=q(d?.parentElement??null);if(!r&&!o&&!n||!d||!s)return;const f=c?()=>{const S=W(s,c),C=j(s);return()=>{C?.(),S()}}:null,u=g.get(s)??[];g.set(s,u);const l={element:d,arm:f,entering:c!==null&&c.kind!=="none",scroll:i?()=>Y(s,i):null,lift:n};return u.push(l),v(s,u),()=>{const S=u.indexOf(l);S<0||(u.splice(S,1),l.undo?.(),l.undo=void 0,l.undoScroll?.(),l.undoScroll=void 0,v(s,u),u.length||g.delete(s))}},[x,n]),t}const w="sf-part-styles",U=`${w}-`;function X(e){let t=2166136261;for(let r=0;r<e.length;r+=1)t^=e.charCodeAt(r),t=Math.imul(t,16777619);return(t>>>0).toString(36)}function ae(e){const t=p(h),r=p(R),o=L(t,e);return o&&o.stamp!==r?o:null}function de(e){return y(p(h),e)}function fe({stamp:e,children:t}){return m(R.Provider,{value:e,children:t})}function me({children:e}){const t=p(h);return m(_.Provider,{value:t,children:e})}function pe(e){return y(p(_),e)}export{fe as ClaimedStamp,w as PART_STYLES_PRECEDENCE,ce as PublishedPartStyles,me as SharedPartKinds,ie as usePartEntrance,de as usePublishedPartKindRule,ae as usePublishedPartRule,pe as usePublishedSharedKindRule};
|
|
@@ -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};
|