efficient-web-builder 57.1.0 → 58.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/dist/editor/components/SectionIcon.js +1 -1
- package/dist/editor/components/WebsiteScreenParts.js +1 -1
- package/dist/editor/components/storefront-editor.css +30 -0
- package/dist/editor/lib/animation/hover-fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Contents/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Divider/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/FAQ/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/ListSearch/fields.d.ts +2 -0
- package/dist/editor/lib/document/blocks/general/ListSearch/fields.js +1 -0
- package/dist/editor/lib/document/blocks/general/index.d.ts +2 -2
- package/dist/editor/lib/document/blocks/general/index.js +1 -1
- package/dist/editor/lib/document/box-fields.d.ts +1 -0
- package/dist/editor/lib/document/box-fields.js +1 -1
- package/dist/editor/lib/document/card-display-chips.d.ts +7 -5
- package/dist/editor/lib/document/card-display-chips.js +1 -1
- package/dist/editor/lib/document/controls.d.ts +6 -0
- package/dist/editor/lib/document/controls.js +1 -1
- package/dist/editor/lib/sections/text-layouts.js +1 -1
- package/dist/format/lib/animation/hover.js +1 -1
- package/dist/format/lib/content/accordion-row-style.d.ts +10 -0
- package/dist/format/lib/content/accordion-row-style.js +1 -0
- package/dist/format/lib/content/box-angle.d.ts +9 -0
- package/dist/format/lib/content/box-angle.js +1 -0
- package/dist/format/lib/content/box-background.d.ts +3 -0
- package/dist/format/lib/content/box-background.js +1 -1
- package/dist/format/lib/content/box-layout.d.ts +3 -0
- package/dist/format/lib/content/box-layout.js +1 -1
- package/dist/format/lib/content/card-place.d.ts +4 -0
- package/dist/format/lib/content/card-place.js +1 -1
- package/dist/format/lib/content/card-template.d.ts +3 -0
- package/dist/format/lib/content/card-template.js +1 -1
- package/dist/format/lib/content/copies-in-box.d.ts +2 -0
- package/dist/format/lib/content/copies-in-box.js +1 -0
- package/dist/format/lib/content/list-query.d.ts +7 -0
- package/dist/format/lib/content/list-query.js +1 -0
- package/dist/format/lib/content/part-display.js +1 -1
- package/dist/format/lib/content/view-hide-class.d.ts +11 -0
- package/dist/format/lib/content/view-hide-class.js +1 -0
- package/dist/format/lib/document/blocks/general/FAQ/card-seed.d.ts +7 -0
- package/dist/format/lib/document/blocks/general/FAQ/card-seed.js +1 -0
- package/dist/format/lib/document/blocks/general/FAQ/meta.d.ts +6 -0
- package/dist/format/lib/document/blocks/general/FAQ/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/ListSearch/meta.d.ts +6 -0
- package/dist/format/lib/document/blocks/general/ListSearch/meta.js +1 -0
- package/dist/format/lib/document/blocks/general/PaymentBadges/meta.d.ts +6 -0
- package/dist/format/lib/document/blocks/general/PaymentBadges/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/metas.d.ts +1 -0
- package/dist/format/lib/document/blocks/general/metas.js +1 -1
- package/dist/format/lib/document/blocks/general/text-part-shapes.json +18 -0
- package/dist/format/lib/document/box-footer.js +1 -1
- package/dist/format/lib/document/container-blocks.js +1 -1
- package/dist/format/lib/document/general-order.d.ts +1 -1
- package/dist/format/lib/document/general-order.js +1 -1
- package/dist/format/lib/document/list-search-scopes.d.ts +4 -0
- package/dist/format/lib/document/list-search-scopes.js +1 -0
- package/dist/format/lib/document/part-inks.d.ts +2 -1
- package/dist/format/lib/document/part-inks.js +1 -1
- package/dist/format/lib/document/section-catalog.js +2 -2
- package/dist/format/lib/editor-words-catalogue.d.ts +7 -0
- package/dist/format/lib/editor-words-catalogue.js +4 -4
- package/dist/format/lib/editor-words-kept.js +1 -1
- package/dist/format/lib/sections/hero-single-to-hero.js +1 -1
- package/dist/render/components/BoxAccordionRow.d.ts +3 -1
- package/dist/render/components/BoxAccordionRow.js +1 -1
- package/dist/render/components/BoxTabPaneContext.d.ts +5 -0
- package/dist/render/components/BoxTabPaneContext.js +1 -1
- package/dist/render/components/CardRowContext.d.ts +3 -1
- package/dist/render/components/CardRowContext.js +1 -1
- package/dist/render/components/Cards.js +1 -1
- package/dist/render/components/CategoryBar.d.ts +1 -1
- package/dist/render/components/CategoryBar.js +1 -1
- package/dist/render/components/ChartSection.js +1 -1
- package/dist/render/components/ContactLocations.js +2 -2
- package/dist/render/components/ContentsList.d.ts +3 -3
- package/dist/render/components/ContentsList.js +1 -1
- package/dist/render/components/Countdown.js +1 -1
- package/dist/render/components/Divider.d.ts +1 -2
- package/dist/render/components/Divider.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/DocTabs.js +1 -1
- package/dist/render/components/Eyebrow.d.ts +2 -1
- package/dist/render/components/Eyebrow.js +1 -1
- package/dist/render/components/FAQ.d.ts +6 -1
- package/dist/render/components/FAQ.js +1 -1
- package/dist/render/components/FeaturedCover.js +1 -1
- package/dist/render/components/Flex.d.ts +3 -1
- package/dist/render/components/Flex.js +1 -1
- package/dist/render/components/Footprint.js +1 -1
- package/dist/render/components/HeroGroup.d.ts +1 -1
- package/dist/render/components/HeroGroup.js +1 -1
- package/dist/render/components/HeroPictures.js +1 -1
- package/dist/render/components/HeroSection.js +1 -1
- package/dist/render/components/HeroSingle.js +1 -1
- package/dist/render/components/HeroSlide.d.ts +1 -1
- package/dist/render/components/HeroSlide.js +1 -1
- package/dist/render/components/InBoxContext.d.ts +1 -1
- package/dist/render/components/InBoxContext.js +1 -1
- package/dist/render/components/IntegrationsSection.js +1 -1
- package/dist/render/components/IntroBleed.js +1 -1
- package/dist/render/components/JoinBox.js +1 -1
- package/dist/render/components/KeyFeatures.js +1 -1
- package/dist/render/components/ListSearchBox.d.ts +7 -0
- package/dist/render/components/ListSearchBox.js +1 -0
- package/dist/render/components/LocationMap.d.ts +2 -1
- package/dist/render/components/LocationMap.js +1 -1
- package/dist/render/components/Logo.d.ts +3 -1
- package/dist/render/components/Logo.js +1 -1
- package/dist/render/components/LogoBlock.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.d.ts +2 -1
- package/dist/render/components/ParagraphsA.js +1 -1
- package/dist/render/components/PostCard.d.ts +2 -1
- package/dist/render/components/PostCard.js +1 -1
- package/dist/render/components/ProcessSteps.js +1 -1
- package/dist/render/components/Prose.js +1 -1
- package/dist/render/components/SectionAnimation.d.ts +3 -2
- package/dist/render/components/SectionAnimation.js +1 -1
- package/dist/render/components/SectionEyebrow.d.ts +2 -1
- package/dist/render/components/SectionEyebrow.js +1 -1
- package/dist/render/components/Series.js +1 -1
- package/dist/render/components/SiteGutterFrame.d.ts +2 -2
- package/dist/render/components/SiteGutterFrame.js +1 -1
- package/dist/render/components/Spacer.js +1 -1
- package/dist/render/components/SpecStrip.js +1 -1
- package/dist/render/components/StatsParagraph.js +1 -1
- package/dist/render/components/Testimonials.js +1 -1
- package/dist/render/components/TickerSection.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/components/ViewHideRoot.d.ts +23 -0
- package/dist/render/components/ViewHideRoot.js +1 -0
- package/dist/render/lib/content/block-size.d.ts +0 -2
- package/dist/render/lib/content/block-size.js +1 -1
- package/dist/render/lib/content/page-contents.js +1 -1
- package/dist/render/lib/document/blocks/general/CardList/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Contents/render.js +1 -1
- package/dist/render/lib/document/blocks/general/CustomHTML/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Divider/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Eyebrow/render.js +1 -1
- package/dist/render/lib/document/blocks/general/FAQ/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
- package/dist/render/lib/document/blocks/general/ListSearch/render.d.ts +2 -0
- package/dist/render/lib/document/blocks/general/ListSearch/render.js +1 -0
- package/dist/render/lib/document/blocks/general/LocationMap/render.js +1 -1
- package/dist/render/lib/document/blocks/general/OrderSummary/card-seed.d.ts +2 -0
- package/dist/render/lib/document/blocks/general/OrderSummary/card-seed.js +1 -0
- package/dist/render/lib/document/blocks/general/ParagraphsA/render.js +1 -1
- package/dist/render/lib/document/blocks/general/PaymentBadges/render.js +1 -1
- package/dist/render/lib/document/blocks/general/PostCard/render.js +1 -1
- package/dist/render/lib/document/blocks/general/SectionHeader/render.js +1 -1
- package/dist/render/lib/document/blocks/general/renders.d.ts +1 -0
- package/dist/render/lib/document/blocks/general/renders.js +1 -1
- 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-checkout.d.ts +2 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-checkout.js +1 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-docbody.js +2 -2
- package/dist/render/lib/document/blocks/general/section-to-box-rows-head.d.ts +12 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-head.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-locations.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-logos.d.ts +1 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-logos.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
- package/dist/render/lib/document/page-render.js +1 -1
- package/dist/render/lib/document/passes/block-size.js +1 -1
- package/dist/render/lib/document/passes/borders.js +1 -1
- package/dist/render/lib/document/passes/box-join.js +1 -1
- package/dist/render/lib/document/passes/cell-width.js +1 -1
- package/dist/render/lib/document/passes/corners.js +1 -1
- package/dist/render/lib/document/passes/head-core.js +1 -1
- package/dist/render/lib/document/passes/hidden-nodes.d.ts +2 -0
- package/dist/render/lib/document/passes/hidden-nodes.js +1 -0
- package/dist/render/lib/document/passes/index.js +1 -1
- package/dist/render/lib/document/passes/section-anchor.js +1 -1
- package/dist/render/lib/document/passes/section-animation.js +1 -1
- package/dist/render/lib/document/passes/section-height.js +1 -1
- package/dist/render/lib/document/passes/section-padding.js +1 -1
- package/dist/render/lib/document/passes/section-sticky.js +1 -1
- package/dist/render/lib/document/passes/section-theme.js +1 -1
- package/dist/render/lib/document/passes/section-width.js +1 -1
- package/dist/render/lib/document/slot-counts.js +1 -1
- package/dist/render/lib/sections/section-to-box.js +1 -1
- package/package.json +1 -1
- package/dist/format/lib/document/passes/hidden-nodes.d.ts +0 -2
- package/dist/format/lib/document/passes/hidden-nodes.js +0 -1
|
@@ -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{HideTaker as ee}from"./ViewHideRoot.js";import{useRef as oe,useState as re}from"react";import te from"./HeroPoster.js";import{HeroMediaLayer as ie,heroMediaReading as se,HeroPickArea as ae,heroPartEntrance as ne,heroPartHover as ce,HeroPictureHover as le,heroPicturesHover as me,HeroTint as ue,HeroTwoPictures as de}from"./HeroPictures.js";import{HeroVideoBackdrop as he,HeroVideoPlayer as fe}from"./HeroVideoPlay.js";import{resolveMedia as t}from"../lib/media.js";import{heroHeightBox as pe,heroStoresRatio as ve}from"../../format/lib/content/section-height.js";import{DEFAULT_OVERLAY_POSITION as ge,overlayGradient as ye}from"../../format/lib/sections/hero-overlay.js";import{ON_MEDIA_INK_STYLE as be}from"../../format/lib/content/ink.js";import{DEFAULT_TINT as c}from"../../format/lib/content/tint.js";import Pe from"./PhotoHoverSheet.js";function xe({overlay:S=100,overlayColor:j=c,overlayPosition:I=ge,mediaType:l="image",mediaSrc:i,poster:m,objectPosition:u,objectPositionPhone:d,objectPositionTablet:h,tintColor:f=c,tintOpacity:p=0,heightDesktop:E,heightMobile:A,heightFixed:V,heightFixedTablet:z,heightFixedMobile:M,boxes:v,videoSource:O,youtubeUrl:R,videoPlayback:B,mediaLayout:D,mediaLayoutPhone:F,mediaImage2:Y,objectPosition2:C,objectPosition2Phone:U,objectPosition2Tablet:$,tintColor2:G=c,tintOpacity2:K=0,editing:o=!1,partMotion:r}){const g=pe({heightDesktop:E,heightMobile:A,heightFixed:V,heightFixedTablet:z,heightFixedMobile:M}),{className:q,style:J}=g,y=ve(g),s=l==="video",b=s?t(i):void 0,P=s?t(m):t(i)??t(m),{fromYouTube:x,onClick:H,youTubeId:w,backgroundFile:T,desktopLayout:Q,phoneLayout:W,twoPictures:N}=se({isVideo:s,videoSource:O,videoPlayback:B,youtubeUrl:R,mediaLayout:D,mediaLayoutPhone:F}),[_,X]=re(!1),a=!_,Z=oe(null),n=l==="video"?"media":"image",k=me(r);return L(ee,{as:"section",ref:Z,className:`relative mx-[var(--sf-hero-bleed-m,calc(50%_-_50vw))] w-[var(--sf-hero-bleed-w,100vw)] ${q} max-w-[var(--sf-hero-cap,none)] ${y?"overflow-clip":"overflow-hidden"}`,style:J,...k.hostAttrs,children:[e(Pe,{sheet:k.sheet}),e(ie,{partMotion:r,editing:o,children:N?e(de,{desktopLayout:Q,phoneLayout:W,editing:o,partMotion:r,first:{src:i,objectPosition:u,objectPositionPhone:d,objectPositionTablet:h,tintColor:f,tintOpacity:p},second:{src:Y,objectPosition:C,objectPositionPhone:U,objectPositionTablet:$,tintColor:G,tintOpacity:K}}):e(ae,{part:n,editing:o,entrance:n==="image"?ne(r,"image"):null,className:"absolute inset-0 z-[1]",children:L(le,{treatment:n==="image"?ce(r,"image"):{},children:[e(te,{videoSrc:T?b:void 0,posterSrc:P,showVideo:T,objectPosition:u,objectPositionPhone:d,objectPositionTablet:h}),x&&e(he,{youTubeId:w,ownPoster:!!P,background:!H,editing:o})]})})}),H&&e(fe,{youTubeId:w,fileSrc:x?void 0:b,playing:_,onPlay:()=>X(!0),editing:o}),a&&!N&&e(ue,{color:f,opacity:p}),a&&e("div",{className:"pointer-events-none absolute inset-0 z-[2]",style:{background:ye(j,I),opacity:Math.min(Math.max(S,0),100)/100}}),a&&v&&e("div",{className:[y?"sf-hero-group-layer relative min-h-full z-[3] mx-auto":"sf-hero-group-layer absolute inset-0 z-[3] mx-auto","max-w-[var(--sf-site-width,1600px)]","px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14",o?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:be,children:e(v,{className:"sf-hero-group-zone",minEmptyHeight:160})})]})}export{xe as default};
|
|
@@ -47,5 +47,5 @@ export interface HeroSlideProps {
|
|
|
47
47
|
partMotion?: Record<string, unknown>;
|
|
48
48
|
laterSlide?: boolean;
|
|
49
49
|
}
|
|
50
|
-
export default function HeroSlide({ name, process, mediaType, mediaSrc, videoSpeed, poster, objectPosition, objectPositionPhone, objectPositionTablet, tintColor, tintOpacity, groups: Groups, editing, themeClassName, themeStyle, overlayColor, overlayPosition, mediaLayout, mediaLayoutPhone, mediaImage2, objectPosition2, objectPosition2Phone, objectPosition2Tablet, tintColor2, tintOpacity2, videoSource, youtubeUrl, videoPlayback, partMotion, laterSlide, }: HeroSlideProps): import("react").
|
|
50
|
+
export default function HeroSlide({ name, process, mediaType, mediaSrc, videoSpeed, poster, objectPosition, objectPositionPhone, objectPositionTablet, tintColor, tintOpacity, groups: Groups, editing, themeClassName, themeStyle, overlayColor, overlayPosition, mediaLayout, mediaLayoutPhone, mediaImage2, objectPosition2, objectPosition2Phone, objectPosition2Tablet, tintColor2, tintOpacity2, videoSource, youtubeUrl, videoPlayback, partMotion, laterSlide, }: HeroSlideProps): import("react").ReactNode;
|
|
51
51
|
export declare const HERO_SLIDE_SEEDS: Record<string, unknown>[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as e,jsxs as
|
|
1
|
+
"use client";import{jsx as e,jsxs as F}from"react/jsx-runtime";import{useTakeViewHide as xe,withViewHide as ve}from"./ViewHideRoot.js";import{createContext as we,useContext as Se,useEffect as ge,useRef as He,useState as $}from"react";import be from"./HeroPoster.js";import{HeroMediaLayer as Pe,heroMediaReading as ke,HeroPickArea as Te,heroPartEntrance as Ee,heroPartHover as Le,HeroPictureHover as _e,heroPicturesHover as je,HeroTint as Ne,HeroTwoPictures as Oe}from"./HeroPictures.js";import{HeroVideoBackdrop as Ve,HeroVideoPlayer as Ce}from"./HeroVideoPlay.js";import{BelowFirstScreen as Ie,useFirstScreenPlace as Re}from"../lib/first-screen.js";import{markedChildren as ze}from"../../format/lib/marked-children.js";import{resolveMedia as s}from"../lib/media.js";import{heroPhoneStackStyle as Ae}from"../../format/lib/hero-phone-stack.js";import{heroTextureGradient as De,heroTextureShown as Fe}from"../../format/lib/hero-texture.js";import{ON_MEDIA_INK_STYLE as $e}from"../../format/lib/content/ink.js";import{DEFAULT_TINT as B}from"../../format/lib/content/tint.js";import{overlayGradient as Be,slideOverlayState as Me}from"../../format/lib/sections/hero-overlay.js";import qe from"./PhotoHoverSheet.js";const Ue=we({});function Ye({name:x,process:a,mediaType:M="video",mediaSrc:n,videoSpeed:v,poster:w,objectPosition:S,objectPositionPhone:g,objectPositionTablet:H,tintColor:b=B,tintOpacity:P=0,groups:k,editing:t=!1,themeClassName:T,themeStyle:q,overlayColor:U,overlayPosition:Y,mediaLayout:G,mediaLayoutPhone:K,mediaImage2:J,objectPosition2:Q,objectPosition2Phone:W,objectPosition2Tablet:X,tintColor2:Z=B,tintOpacity2:ee=0,videoSource:oe,youtubeUrl:te,videoPlayback:re,partMotion:r,laterSlide:l=!1}){const d=xe(),{alignment:Ge="left",textureOpacity:E,textureOn:ie,textureColor:se,quietVideo:ae,phoneUpDown:ne,phoneSideways:le,holdReel:de,reelHeld:ce,shownSlide:c,ratioMin:L}=Se(Ue),ue=Re(),_=l&&ue==="first",j=He(null),[fe,pe]=$(c===void 0?void 0:!1);ge(()=>{const y=j.current;pe(c===void 0||!y?void 0:ze(y.closest(".hero-track"),"data-slide-name")[c]===y)});const o=M==="video",u=o?s(n):void 0,N=o?s(w):s(n)??s(w),me=typeof v=="number"?v/100:1,{fromYouTube:f,onClick:O,youTubeId:V,backgroundFile:p,desktopLayout:he,phoneLayout:ye,twoPictures:C}=ke({isVideo:o,videoSource:oe,videoPlayback:re,youtubeUrl:te,mediaLayout:G,mediaLayoutPhone:K}),[m,I]=$(!1);m&&ce===!1&&I(!1);const h=!m,i=Me({overlayColor:U,overlayPosition:Y},se),R=o?null:Ee(r,"image"),z=je(r),A=e(_e,{treatment:o?{}:Le(r,"image"),children:e(be,{videoSrc:p?u:void 0,posterSrc:N,showVideo:p,playbackRate:me,objectPosition:S,objectPositionPhone:o?void 0:g,objectPositionTablet:o?void 0:H,quiet:ae,slideShown:fe,laterSlide:l,laterOfLead:_})}),D=F("section",{ref:j,className:ve(`${L?"relative min-h-full w-full overflow-clip":"relative h-full w-full overflow-hidden"}${T?` ${T}`:""}`,d.className),...d.attrs,style:q,"data-slide-name":x??"","data-slide-process":a??"","data-slide-media":p&&u?"video":"still",...z.hostAttrs,children:[e(qe,{sheet:z.sheet}),e(Pe,{partMotion:r,editing:t,children:C?e(Oe,{laterSlide:l,desktopLayout:he,phoneLayout:ye,editing:t,marked:!1,partMotion:r,first:{src:n,objectPosition:S,objectPositionPhone:g,objectPositionTablet:H,tintColor:b,tintOpacity:P},second:{src:J,objectPosition:Q,objectPositionPhone:W,objectPositionTablet:X,tintColor:Z,tintOpacity:ee}}):f||R?F(Te,{part:o?"media":"image",editing:t,marked:!1,entrance:R,className:"absolute inset-0 z-[1]",children:[A,f&&e(Ve,{youTubeId:V,ownPoster:!!N,background:!O,editing:t})]}):A}),O&&e(Ce,{youTubeId:V,fileSrc:f?void 0:u,playing:m,onPlay:()=>{I(!0),de?.()},editing:t}),h&&!C&&e(Ne,{color:b,opacity:P,passClicks:!1}),h&&Fe(ie)&&e("div",{className:"absolute inset-0 z-[2]",style:{background:i.own?Be(i.color,i.position??void 0):De(i.color),...E!==void 0?{opacity:E/100}:null}}),h&&e("div",{className:[L?"sf-hero-group-layer relative min-h-full z-[3] mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14":"sf-hero-group-layer absolute inset-0 z-[3] mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14",t?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{...$e,...Ae(ne,le)},children:k&&e(k,{className:"sf-hero-group-zone",minEmptyHeight:160})})]});return d.scope(_?e(Ie,{children:D}):D)}const co=Array.from({length:3},(x,a)=>({name:`Slide ${a+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));export{co as HERO_SLIDE_SEEDS,Ue as HeroSlideStyleContext,Ye as default};
|
|
@@ -25,7 +25,7 @@ export declare function CellWrap({ className, style, attrs, children, }: {
|
|
|
25
25
|
style?: CSSProperties;
|
|
26
26
|
attrs?: Record<string, string>;
|
|
27
27
|
children: ReactNode;
|
|
28
|
-
}):
|
|
28
|
+
}): ReactNode;
|
|
29
29
|
export declare function SlotsStartAfresh({ children }: {
|
|
30
30
|
children: ReactNode;
|
|
31
31
|
}): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as r}from"react/jsx-runtime";import{createContext as
|
|
1
|
+
"use client";import{jsx as r}from"react/jsx-runtime";import{createContext as d,useContext as t}from"react";import{SECTION_FILL_CLASS as a}from"../../format/lib/content/section-min-height.js";import{useTakeViewHide as p,withViewHide as C}from"./ViewHideRoot.js";const f={stretchedRow:!1,fillingColumn:!1},l=d(null),B=()=>t(l)!==null,F=()=>t(l),L=()=>t(l)?.id??null,c=d(!1);function m(){const o=t(l)?.stretchedRow===!0,e=t(c);return o&&!e}const h=()=>t(c);function v(){const o=t(l),e=m(),n=h();return{fill:n?` ${a}`:"",inner:s=>{const i=e||n?r(c.Provider,{value:!0,children:s}):s;return o?.columnsRow?r(l.Provider,{value:{...o,columnsRow:!1},children:i}):i}}}function P({className:o,style:e,attrs:n,children:s}){const{fill:i,inner:x}=v(),u=p();return u.scope(r("div",{className:C(`${o}${i}`,u.className),...e?{style:e}:{},...n,...u.attrs,children:x(s)}))}function A({children:o}){const e=t(l),n=e===null?null:e.id===void 0?f:{...f,id:e.id};return r(l.Provider,{value:n,children:r(c.Provider,{value:!1,children:o})})}export{c as CellFillContext,P as CellWrap,l as InBoxContext,A as SlotsStartAfresh,F as useBoxCell,L as useBoxId,v as useCellLayer,m as useCellOfStretchedRow,h as useFillsCell,B as useInBox};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as s}from"react/jsx-runtime";import{
|
|
1
|
+
import{jsx as e,jsxs as s}from"react/jsx-runtime";import{HideTaker as g}from"./ViewHideRoot.js";import{integrationIcon as u}from"./integrationIcons.js";import{renderGold as f,renderHeadline as v}from"./goldPhrases.js";import{say as w}from"../../format/lib/editor-words.js";function N(a,t){const r=Array.from({length:t},()=>[]);return a.forEach((i,n)=>r[n%t].push(i)),r.filter(i=>i.length>0)}function b({name:a}){const t=u(a);return s("span",{className:"flex flex-shrink-0 items-center gap-2.5 whitespace-nowrap rounded border border-line bg-bg px-5 py-2.5",children:[t&&e("svg",{viewBox:"0 0 24 24",className:"h-[16px] w-[16px] flex-shrink-0 fill-current text-fg/85","aria-hidden":!0,children:e("path",{d:t.path})}),e("span",{className:"text-[13px] font-medium tracking-wide text-fg/75",children:a})]})}function k({names:a,reverse:t}){return e("div",{className:"overflow-hidden","aria-hidden":!1,children:e("div",{className:"flex w-max gap-3 pr-3 [animation:sf-marquee_var(--sf-marquee-t)_linear_infinite] motion-reduce:[animation:none]",style:{"--sf-marquee-t":`${Math.max(a.length*6,30)}s`,animationDirection:t?"reverse":"normal"},children:[0,1].map(r=>e("div",{className:"flex gap-3","aria-hidden":r===1,children:a.map((i,n)=>e(b,{name:i},n))},r))})})}function y({eyebrow:a,title:t,body:r,apps:i,statValue:n,statLabel:l,note:x,editing:c=!1}={}){const d=(i??[]).map(m=>(m.text??"").trim()).filter(m=>c||m).map(m=>m||w("App")),h=!!(a??"").trim()||!!(t??"").trim();if(!c&&!h&&d.length===0)return null;const p=N(d,3);return s(g,{as:"section",className:"relative z-[2] overflow-hidden border-y border-line bg-surface py-[76px]",children:[s("div",{className:"mx-auto mb-12 max-w-[860px] px-10 text-center max-[960px]:px-6",children:[(a??"").trim()&&e("span",{className:"inline-block bg-accent px-3.5 py-1.5 font-mono text-[12px] font-semibold uppercase tracking-[0.16em] text-bg",children:f(a??"")}),(t??"").trim()&&e("h2",{className:"mt-5 font-display text-[40px] font-medium uppercase leading-[1.04] tracking-[-0.02em] text-fg max-view-wide:text-[30px]",children:v(t??"",!1)}),(r??"").trim()&&e("p",{className:"mx-auto mt-5 max-w-[60ch] text-[15px] leading-relaxed text-fg/65",children:r})]}),p.length>0&&e("div",{className:"flex flex-col gap-3",children:p.map((m,o)=>e(k,{names:m,reverse:o%2===1},o))}),((n??"").trim()||(x??"").trim())&&s("div",{className:"mx-auto mt-12 max-w-[860px] px-10 text-center max-[960px]:px-6",children:[(n??"").trim()&&e("div",{className:"font-display text-[min(64px,var(--sf-heading-max,9999px))] font-medium uppercase leading-none text-accent max-view-wide:text-[min(46px,var(--sf-heading-max,9999px))]",children:n}),(l??"").trim()&&e("div",{className:"mt-2 font-display text-[18px] font-medium uppercase tracking-[0.06em] text-fg",children:f(l??"")}),(x??"").trim()&&e("p",{className:"mx-auto mt-4 max-w-[52ch] text-[13px] leading-relaxed text-fg/50",children:x})]})]})}export{y as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t,Fragment as
|
|
1
|
+
import{jsx as e,jsxs as t,Fragment as U}from"react/jsx-runtime";import{HideTaker as u}from"./ViewHideRoot.js";import W from"./Btn.js";import N from"./Placeholder.js";import X from"./SectionEyebrow.js";import{renderGold as _,renderHeadline as Z,splitParagraphs as ee}from"./goldPhrases.js";import{resolveTypeSize as i}from"../../format/lib/content/section-type-size.js";import{HEADER_HEIGHT_CSS as k}from"../lib/document/header-clearance.js";import{resolveSectionHeight as E}from"../../format/lib/content/section-height.js";import{INTRO_BLEED_COPY_SHARE as j,parseIntroBleedLayout as te,resolveCopyShare as S,INTRO_EDGE_CLASS as re}from"../../format/lib/sections/intro-bleed-layout.js";import{ON_MEDIA_INK_STYLE as oe}from"../../format/lib/content/ink.js";import{SCROLL_OVER_CLASS as w}from"../../format/lib/content/section-sticky.js";function ie({eyebrow:a,title:s,body:l,cta:n,imageLabel:d,imageSrc:c,imageSrcMobile:I,layout:L,copyShareDesktop:C,copyShareMobile:D,sticky:m=!0,heightDesktop:H,heightMobile:T,overlay:p,titleSizeDesktop:z,titleSizeMobile:O,bodySizeDesktop:R,bodySizeMobile:$,buttonColor:A,buttonTextColor:B,uppercase:M=!1,capStyle:h}){const r=te(L)==="stacked",x=o=>r?`calc(${E(o)} - ${k})`:E(o),F=x(H),G=x(T),P=i(z,"clamp(48px,7vw,96px)","heading","headingLarge"),Y=i(O,"clamp(36px,7vw,96px)","heading","headingLarge"),K=i(R,"17px","body","body"),V=i($,"16px","body","body"),q=p!=null?p/100:r?0:.6,v=A||"var(--btn)",J=B||"var(--btn-ink)",f={"--intro-h-d":F,"--intro-h-m":G,"--intro-title-d":P,"--intro-title-m":Y,"--intro-body-d":K,"--intro-body-m":V,...r?{"--intro-copy-d":S(C,j.desktop),"--intro-copy-m":S(D,j.mobile),marginTop:k}:{}},g=h?"px-[var(--sf-site-gutter,40px)] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]":`${re} px-[var(--intro-edge)]`,b=t(U,{children:[t("div",{className:"absolute inset-0",children:[e("div",{className:"absolute inset-0 hidden min-[960px]:block",children:e(N,{label:d,src:c})}),e("div",{className:"absolute inset-0 min-[960px]:hidden",children:e(N,{label:d,src:I||c})}),e("div",{className:"pointer-events-none absolute inset-0",style:{backgroundImage:"repeating-linear-gradient(45deg, transparent 0 80px, rgba(201,164,97,.04) 80px 81px)"}})]}),e("div",{className:"absolute inset-0",style:{background:`rgba(0,0,0,${q})`}})]}),y=t("div",{style:h,className:"flex flex-col gap-6",children:[a&&e(X,{text:a,size:14}),s&&e("h2",{className:["font-display font-medium leading-[0.95] tracking-[-0.03em]","text-[length:var(--intro-title-m)] min-[960px]:text-[length:var(--intro-title-d)]",M?"uppercase":""].join(" "),children:Z(s,!1)}),l&&ee(l).map((o,Q)=>e("p",{className:"max-w-[560px] leading-[1.6] opacity-85 text-[length:var(--intro-body-m)] min-[960px]:text-[length:var(--intro-body-d)]",children:_(o)},Q)),n.text&&e("div",{className:"mt-2 self-start",children:e(W,{href:n.href,variant:"ghost",style:{background:v,color:J,borderColor:v},children:_(n.text)})})]});return r?t(u,{as:"section",style:f,className:[m?`sticky top-0 ${w}`:"relative","flex flex-col","h-[var(--intro-h-m)] min-[960px]:h-[var(--intro-h-d)] min-h-[420px]","overflow-hidden p-0 z-[1]"].join(" "),children:[e("div",{className:["relative z-[2] flex shrink-0 flex-col justify-center bg-bg py-10","min-h-[var(--intro-copy-m)] min-[960px]:min-h-[var(--intro-copy-d)]",g].join(" "),style:{color:"var(--fg)"},children:y}),e("div",{className:"relative min-h-0 flex-1 overflow-hidden",children:b})]}):t(u,{as:"section",style:f,className:[m?`sticky top-0 ${w}`:"relative","h-[var(--intro-h-m)] min-[960px]:h-[var(--intro-h-d)] min-h-[420px]","overflow-hidden p-0 z-[1]","mx-auto w-full max-w-[var(--sf-bg-cap,none)]"].join(" "),children:[b,e("div",{className:["relative z-[2] flex h-full flex-col justify-center",g].join(" "),style:oe,children:y})]})}export{ie as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as o}from"react/jsx-runtime";import{TICKER_JOIN_BOX_CLASS as i}from"../../format/lib/sections/ticker-join.js";import{HideTaker as m}from"./ViewHideRoot.js";function s({children:r}){return o(m,{className:i,children:r})}export{s as JoinBox};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as o,Fragment as u}from"react/jsx-runtime";import{
|
|
1
|
+
import{jsx as e,jsxs as o,Fragment as u}from"react/jsx-runtime";import{HideTaker as b}from"./ViewHideRoot.js";import{SiteLink as v}from"../lib/site-runtime.js";import{cardColumns as k}from"./Cards.js";import y from"./SectionEyebrow.js";import{renderGold as N,renderHeadline as w}from"./goldPhrases.js";import{say as M}from"../../format/lib/editor-words.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 T({look:x,eyebrow:i,title:t,items:f,columns:g,editing:s=!1}={}){const h=k(g),n=(f??[]).filter(r=>s||(r.label??"").trim()),c=!!(i??"").trim()||!!(t??"").trim();return!s&&!c&&n.length===0?null:e(b,{as:"section",className:"relative z-[2] border-y border-line bg-surface",children:o("div",{className:"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))]",children:[c&&o("div",{className:"mb-11 flex flex-wrap items-baseline gap-5 max-view-wide:mb-8",children:[(i??"").trim()&&e(y,{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:w(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(h)},children:n.map((r,m)=>{const l=o(u,{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:N((r.label??"").trim()||M("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 a.startsWith("/")?e(v,{href:a,className:p,children:l},m):e("a",{href:a,className:p,children:l},m)}return e("div",{className:"flex items-center gap-4 bg-bg px-7 py-[30px]",children:l},m)})})]})})}export{T as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{jsx as a,jsxs as u}from"react/jsx-runtime";import{HideTaker as f}from"./ViewHideRoot.js";import{useRef as d,useState as p}from"react";import{narrowList as m}from"../../format/lib/content/list-query.js";function x({hint:e,noMatchText:s,listKey:t,editing:n=!1}){const r=d(null),[l,i]=p(!1);return u(f,{ref:r,className:"w-full",children:[a("input",{type:"search",...e?{"aria-label":e}:{},placeholder:e,readOnly:n,onChange:c=>{if(!r.current||!t)return;const o=c.currentTarget.value;i(m(r.current,t,o)===0&&o.trim()!=="")},className:"w-full border-b border-line bg-transparent py-4 font-body text-[length:var(--size-body,16px)] text-fg placeholder:text-fg-dim focus:border-accent focus:outline-none"}),a("p",{hidden:!l,role:"status","aria-live":"polite",className:"pt-4 text-[length:var(--size-body,15px)] text-fg-dim",children:s})]})}export{x as default};
|
|
@@ -8,7 +8,7 @@ export declare function directionsHref(mapsUrl: string, name: string, state: str
|
|
|
8
8
|
export declare function DirectionsLink({ href }: {
|
|
9
9
|
href: string;
|
|
10
10
|
}): import("react").JSX.Element;
|
|
11
|
-
export default function LocationMap({ name, state, country, lat, lng, mapsUrl, mapTheme, pick, editing, boxClass, }: {
|
|
11
|
+
export default function LocationMap({ name, state, country, lat, lng, mapsUrl, mapTheme, pick, editing, boxClass, takesViewHide, }: {
|
|
12
12
|
name: string;
|
|
13
13
|
state: string;
|
|
14
14
|
country: string;
|
|
@@ -16,6 +16,7 @@ export default function LocationMap({ name, state, country, lat, lng, mapsUrl, m
|
|
|
16
16
|
lng: number;
|
|
17
17
|
mapsUrl: string;
|
|
18
18
|
mapTheme?: MapThemeMode;
|
|
19
|
+
takesViewHide?: boolean;
|
|
19
20
|
pick?: string;
|
|
20
21
|
editing?: boolean;
|
|
21
22
|
boxClass?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as n,jsxs as s}from"react/jsx-runtime";import{useMemo as
|
|
1
|
+
"use client";import{jsx as n,jsxs as s}from"react/jsx-runtime";import{HideTaker as f}from"./ViewHideRoot.js";import{useMemo as _}from"react";import{hasMapCoords as u}from"../../format/lib/map-styles.js";import y from"./SiteMap.js";const N="relative overflow-hidden max-view-desktop:aspect-square";function j(e,r,t){return u(r,t)?[{key:"place",label:e,lat:r,lng:t,glyph:"",tone:""}]:[]}function w(e,r,t,a){return e||(r?`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent([r,t,a].filter(Boolean).join(" "))}`:"")}function L({href:e}){return n("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.24em] text-accent transition-colors hover:text-fg",children:"Get directions ↗"})}function M({name:e,state:r,country:t,lat:a,lng:i,mapsUrl:g,mapTheme:h="auto",pick:c,editing:b,boxClass:l=N,takesViewHide:p=!1}){const v=u(a,i),d=r,o=e||"Location",k=_(()=>j(o,a,i),[o,a,i]),m=w(g,e,r,t),x=s("div",{className:"absolute left-5 top-5 z-10 flex max-w-[64%] flex-col gap-1.5 border border-line bg-bg p-3.5 shadow-[0_8px_24px_color-mix(in_srgb,var(--overlay-scrim)_40%,transparent)]",children:[s("span",{className:"font-display text-[length:var(--size-body,14px)] font-medium tracking-[-0.01em]",children:[o,d?`, ${d}`:""]}),m&&n(L,{href:m})]});return v?n(f,{takes:p,"data-loc-pick":c,className:l,children:n(y,{pins:k,mapTheme:h,ariaLabel:o,className:"absolute inset-0",children:x})}):s(f,{takes:p,"data-loc-pick":c,className:`${l} bg-bg`,style:{backgroundImage:"repeating-linear-gradient(45deg, color-mix(in srgb, var(--accent) 4%, transparent) 0 1px, transparent 1px 14px), repeating-linear-gradient(-45deg, color-mix(in srgb, var(--accent) 4%, transparent) 0 1px, transparent 1px 14px), linear-gradient(135deg, var(--site-surface-2), var(--site-surface))"},children:[x,b&&n("div",{className:"absolute inset-0 flex items-center justify-center px-6 text-center font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-fg-dim/40",children:"Add latitude & longitude"})]})}export{L as DirectionsLink,N as LOCATION_MAP_BOX,M as default,w as directionsHref,j as locationMapPins};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
interface Props {
|
|
2
|
+
hideClass?: string;
|
|
3
|
+
hideAttrs?: Record<string, string>;
|
|
2
4
|
variant?: "header" | "footer";
|
|
3
5
|
scrolled?: boolean;
|
|
4
6
|
src?: string | null;
|
|
@@ -17,4 +19,4 @@ interface Props {
|
|
|
17
19
|
}
|
|
18
20
|
export { FOOTER_LOGO_PX, HEADER_LOGO_PX, HEADER_LOGO_PX_MAX, HEADER_LOGO_PX_MIN, LOGO_BLOCK_PX_MAX } from "../../format/lib/logo/logo-size.js";
|
|
19
21
|
export declare const WORDMARK_FIT_FLOOR_PX = 16;
|
|
20
|
-
export default function Logo({ variant, scrolled, src, reverse, color, onLightSurface, reversedSrc, inkIsDark, size, sizePx, wordmark, siteName, fitToContainer, fitWordmarkToContainer, fitFloorPx }: Props): import("react").JSX.Element;
|
|
22
|
+
export default function Logo({ variant, scrolled, src, reverse, color, onLightSurface, reversedSrc, inkIsDark, size, sizePx, wordmark, siteName, fitToContainer, fitWordmarkToContainer, fitFloorPx, hideClass, hideAttrs }: Props): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as i,jsxs as L}from"react/jsx-runtime";import{useEffect as d,useId as
|
|
1
|
+
"use client";import{jsx as i,jsxs as L}from"react/jsx-runtime";import{withViewHide as it}from"./ViewHideRoot.js";import{useEffect as d,useId as ct,useRef as M,useState as f}from"react";import{NEUTRAL_SITE_NAME as at}from"../../format/lib/content/site-name.js";import{useRootIsDark as ut}from"efficient-shell/theme";import{isSvgUrl as dt}from"../../format/lib/logo/reverse-svg.js";import{analyzeLogoViaServer as ft}from"../lib/logo/analyze-logo-client.js";import{FOOTER_LOGO_PX as ht,HEADER_LOGO_PX as mt}from"../../format/lib/logo/logo-size.js";import{FOOTER_LOGO_PX as Ft,HEADER_LOGO_PX as wt,HEADER_LOGO_PX_MAX as $t,HEADER_LOGO_PX_MIN as Xt,LOGO_BLOCK_PX_MAX as Gt}from"../../format/lib/logo/logo-size.js";const pt=202/22,_t=.88,kt=16,Ot="invert(1)";function gt({variant:N="header",scrolled:W=!0,src:h,reverse:b=!1,color:m=null,onLightSurface:j,reversedSrc:A,inkIsDark:C,size:K="medium",sizePx:p,wordmark:_,siteName:U=at,fitToContainer:v=!1,fitWordmarkToContainer:V=!1,fitFloorPx:O,hideClass:q,hideAttrs:z}){const c=_&&_.trim()?_.trim():U,[B,Z]=f(null),S=M(null),J=t=>{S.current=t};d(()=>{Z(S.current?.ownerDocument??null)},[]);const Q=!ut({doc:B,whenUnset:!0}),n=h&&h.trim()?h.trim():null,a=!!n&&dt(n),k=j??(Q&&W),l=m&&m.trim()?m.trim():null,u=b&&!l,D=`logo-color-${ct().replace(/[^A-Za-z0-9_-]/g,"")}`,y=u&&a&&n&&A!=null?{reversed:A,inkIsDark:C??null}:null,F=y!==null,[Y,g]=f(null);d(()=>{if(!u||!n||!a||F){g(null);return}let t=!1;return g(null),ft(n).then(r=>{t||g(r)}),()=>{t=!0}},[u,n,a,F]);const s=y??Y,w=!!s&&s.inkIsDark!==null&&(k?!s.inkIsDark:s.inkIsDark),tt=u&&!!n&&!a&&!k,E=w&&s?s.reversed:n,$=E?[E]:[],[X,R]=f(0);d(()=>{R(0)},[n,w]);const et=N==="footer"?ht:mt[K],o=p&&p>0?p:et,nt=Math.round(o*pt),e=X<$.length?$[X]:null,[lt,x]=f(E),G=e!==null&&e===lt,P=M(null);d(()=>{const t=P.current;if(!t||!t.complete)return;if(t.naturalWidth>0||t.naturalHeight>0){x(e);return}let r=!1;return t.decode().then(()=>!r&&x(e),()=>!r&&R(rt=>rt+1)),()=>{r=!0}},[e]);const T=v||V,H=`calc(100cqi / ${((c.length+1)*_t).toFixed(2)})`,I=T&&O&&O>0?Math.min(O,o):null,ot=T?I===null?`min(${o}px, ${H})`:`clamp(${I}px, ${H}, ${o}px)`:`${o}px`,st=L("span",{className:`font-display font-bold tracking-[0.18em] ${I===null?"whitespace-nowrap":"whitespace-normal"}`,style:{fontSize:ot,lineHeight:1,...l?{color:l}:{}},"aria-label":c,children:[c,i("span",{className:"text-accent",style:l?{color:l}:void 0,children:"."})]});return L("span",{ref:J,className:it("inline-flex items-center",q??""),...z,children:[!G&&st,l&&e&&i("svg",{"aria-hidden":"true",focusable:"false",width:"0",height:"0",style:{position:"absolute"},children:L("filter",{id:D,colorInterpolationFilters:"sRGB",children:[i("feFlood",{style:{floodColor:l}}),i("feComposite",{in2:"SourceAlpha",operator:"in"})]})}),e&&i("img",{ref:P,src:e,alt:c,width:nt,height:o,className:"shrink-0 object-contain",style:{...G?{height:`${o}px`,width:"auto",...v?{maxWidth:"100cqi"}:{}}:{display:"none"},...tt?{filter:Ot}:{},...l?{filter:`url(#${D})`}:{}},onLoad:()=>x(e),onError:()=>R(t=>t+1)},e)]})}export{Ft as FOOTER_LOGO_PX,wt as HEADER_LOGO_PX,$t as HEADER_LOGO_PX_MAX,Xt as HEADER_LOGO_PX_MIN,Gt as LOGO_BLOCK_PX_MAX,kt as WORDMARK_FIT_FLOOR_PX,gt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as
|
|
1
|
+
"use client";import{jsx as e}from"react/jsx-runtime";import{HideTaker as g,NO_HIDE as C,useTakeViewHide as D,withViewHide as k}from"./ViewHideRoot.js";import{useContext as B}from"react";import{SiteLink as T}from"../lib/site-runtime.js";import W,{FOOTER_LOGO_PX as j,WORDMARK_FIT_FLOOR_PX as y}from"./Logo.js";import{media as F}from"../lib/media.js";import{BoxSurfaceContext as R}from"./BoxSurfaceContext.js";import{useBoxCellHasWidth as P}from"./BoxCellContext.js";import{useInSiteHeader as A}from"./PhoneMenuTools.js";import{useSiteLogo as M}from"./SiteLogoContext.js";import{useLogoWall as V}from"./LogoWallContext.js";import{LogoWallMark as z}from"./Logos.js";import{useCardRow as E}from"./CardRowContext.js";import{alignViewClasses as S,BLOCK_ALIGN_JUSTIFY as G}from"../../format/lib/content/block-align.js";function K(s){const o=V(),t=E();if(!o)return e(X,{...s});const m=(s.src??"").trim();return e(g,{className:"text-center",children:e(z,{src:m||void 0,alt:s.alt,look:o.look,logoHeight:o.logoHeight,grayscale:o.grayscale,kind:t?.row.kind})})}function X({src:s,alt:o,href:t,heightPx:m=j,reverse:H=!0,align:i,alignTablet:u,alignPhone:w,color:I=null}){const a=M(),p=(s??"").trim(),l=p?{src:F(p),reversedSrc:null,inkIsDark:null,wordmark:o?.trim()||null}:{src:a.src,reversedSrc:a.reversedSrc,inkIsDark:a.inkIsDark,wordmark:a.wordmark},v=B(R),x=A(),O=P(),r=!x&&O,n=D(),L=!!(i||r||S("justify",i,u,w)),c=L?C:n,d=t||r?C:c,f=e(W,{variant:"footer",sizePx:m,src:l.src,reverse:H,color:I,reversedSrc:l.reversedSrc,inkIsDark:l.inkIsDark,wordmark:l.wordmark,siteName:a.siteName,fitToContainer:x,fitWordmarkToContainer:r,fitFloorPx:r?y:void 0,...v?.dark?{onLightSurface:!1}:{},...d.className?{hideClass:d.className,hideAttrs:d.attrs}:{}}),N=r?"inline-flex max-w-full overflow-x-clip":"inline-flex",h=t?e(T,{href:t,className:k(N,c.className),...c.attrs,children:f}):r?e("span",{className:k(N,c.className),...c.attrs,children:f}):f;if(!L)return n.scope(h);const _=["flex min-w-0",i?G[i]:"",S("justify",i,u,w),r?"[container-type:inline-size]":""].filter(Boolean).join(" ");return n.scope(e("div",{className:k(_,n.className),...n.attrs,children:h}))}export{K as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as r,Fragment as m}from"react/jsx-runtime";import{EDITORIAL_COLUMN as j}from"../../format/lib/content/page-width.js";import{Fragment as N}from"react";import{SiteLink as
|
|
1
|
+
import{jsx as e,jsxs as r,Fragment as m}from"react/jsx-runtime";import{EDITORIAL_COLUMN as j}from"../../format/lib/content/page-width.js";import{HideTaker as E}from"./ViewHideRoot.js";import{Fragment as N}from"react";import{SiteLink as B}from"../lib/site-runtime.js";import{stripMarkup as F}from"../../format/lib/markup.js";import I from"./EditorialSectionHead.js";import O from"./Placeholder.js";import C from"./SectionEyebrow.js";import{renderGold as a,renderHeadline as w}from"./goldPhrases.js";import{scrim as z}from"../../format/lib/content/scrim.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 H({headNum:S,headTitle:p,headDesc:x,category:f,metaMiddle:g,readLabel:b,title:t,dek:h,quote:i,quoteAttribution:o,ctaText:v,ctaHref:L,image:$,imageLabel:u,metaPublished:s,metaReads:d,omitHead:k=!1}){const y=[f?e("span",{className:"text-accent",children:a(f)}):null,g?e("span",{children:a(g)}):null,b?e("span",{children:a(b)}):null].filter(Boolean),_=!!s||!!d;return e(E,{as:"section",className:k?"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:j,children:[k?null:e(I,{num:S,title:p?w(p,!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:[y.length>0&&e("div",{className:`flex items-center gap-3.5 font-mono ${n.labelSmall} uppercase tracking-[0.3em] text-fg-dim`,children:y.map((c,l)=>r(N,{children:[l>0&&e("span",{className:"opacity-40",children:"·"}),c]},l))}),t&&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:w(t,!0)}),h&&e("p",{className:`font-serif ${n.bodyLarge} italic leading-[1.45] text-fg`,children:a(h)}),(i||o)&&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:[i&&r(m,{children:["“",a(i),"”"]}),o&&e("strong",{className:`mt-2.5 block font-display ${n.bodySmall} font-normal not-italic uppercase tracking-[0.22em] text-fg`,children:a(o)})]}),v&&r(B,{href:L||"#",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(v)," ",e("span",{children:"→"})]})]}),r("div",{className:"relative overflow-hidden bg-surface-2 max-view-desktop:aspect-[4/3]",children:[e(O,{label:"long-read",src:$||void 0,alt:F(t||"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%)`}}),u&&e(C,{text:u,size:12,className:"absolute right-6 top-6 z-[2]"}),_&&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:[s?r(m,{children:[e("strong",{className:"font-normal text-accent",children:"Published"})," ",a(s)]}):null,d?r(m,{children:[e("strong",{className:"font-normal text-accent",children:"Reads in"})," ",a(d)]}):null].filter(Boolean).map((c,l)=>r(N,{children:[l>0&&e("br",{}),c]},l))})]})]})]})})}export{H as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as o}from"react/jsx-runtime";import b from"./AnimatedStat.js";import w from"./Placeholder.js";import{useSitePhotography as
|
|
1
|
+
import{jsx as e,jsxs as o}from"react/jsx-runtime";import b from"./AnimatedStat.js";import{HideTaker as w}from"./ViewHideRoot.js";import y from"./Placeholder.js";import{useSitePhotography as S}from"./SitePhotographyContext.js";import _ from"./SectionEyebrow.js";import{renderGold as N,renderHeadline as j,splitParagraphs as T}from"./goldPhrases.js";import{resolveImageTreatment as M}from"../../format/lib/content/image-treatment.js";import{sectionRunsFullWidth as z}from"../../format/lib/content/section-width.js";import{SECTION_FILL_CLASS as E}from"../../format/lib/content/section-min-height.js";import{HALF_SIZES as I}from"../../format/lib/sized-image.js";const i={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 $({eyebrow:s,heading:d,body:x,stats:p,imageSrc:c,grayscale:f,pictureHover:g,fillHeight:u=!1,...h}={}){const v=M(f,S(),g),l=s||null,m=d||null,n=x||null,r=(p??[]).filter(a=>(a.value??"").trim()!==""||(a.label??"").trim()!=="");return e(w,{as:"section",className:"relative z-[2] bg-bg p-0",children:o("div",{className:`grid ${u?E:"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:"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]",children:o("div",{className:z(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(_,{text:l,size:14}),m!==null&&e("h2",{className:`font-heading2 ${i.headingMedium} font-normal leading-[1.05] tracking-[-0.03em] ${i.headingMediumUpTo800} max-view-wide:leading-[1]`,children:j(m,!0)}),n!==null&&T(n).map((a,t)=>e("p",{className:`max-w-[520px] ${i.body} leading-[1.7] text-fg-dim`,children:N(a)},t)),r.length>0&&e("div",{className:"mt-4 grid max-w-[520px] gap-6 border-t border-line pt-7",style:{gridTemplateColumns:`repeat(${r.length}, minmax(0, 1fr))`},children:r.map((a,t)=>e(b,{target:a.value??"",label:a.label??""},t))})]})}),e("div",{className:"sf-card relative flex items-center justify-center bg-surface overflow-hidden max-[960px]:aspect-[4/3]",children:e(y,{label:"manifesto",src:c||void 0,objectFit:"cover",objectPosition:"center",treatment:v,sizes:I})})]})})}export{$ as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as t,Fragment as v,jsxs as a}from"react/jsx-runtime";import{EDITORIAL_COLUMN as k}from"../../format/lib/content/page-width.js";import w from"./SectionEyebrow.js";import{renderGold as
|
|
1
|
+
import{jsx as t,Fragment as v,jsxs as a}from"react/jsx-runtime";import{EDITORIAL_COLUMN as k}from"../../format/lib/content/page-width.js";import{HideTaker as w}from"./ViewHideRoot.js";import N from"./SectionEyebrow.js";import{renderGold as r,renderHeadline as u,splitParagraphs as _}from"./goldPhrases.js";const s={body:"text-[length:var(--size-body,18px)]",headingSmall:"text-[length:var(--size-headingSmall,20px)]",label:"text-[length:var(--size-label,13px)]"};function j({eyebrow:i,issueMeta:x,lead:g,issueHeading:n,issueList:h,issueTotal:m}){const o=(x??[]).filter(e=>(e?.lead??"").trim()||(e?.rest??"").trim()),c=(h??[]).map(e=>e?.text??"").filter(e=>e.trim()),d=_(g??""),f=!!i||o.length>0,p=!!n||c.length>0||!!m,b=d.length>0||p;return t(w,{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:k,children:[f&&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:[i&&t(N,{text:i,size:14,className:"pb-3.5"}),o.length>0&&t("div",{className:`pb-3.5 text-right font-mono ${s.label} uppercase leading-[1.8] tracking-[0.18em] text-fg-dim max-view-desktop:text-left`,children:o.map((e,l)=>a("div",{children:[t("strong",{className:"font-normal text-fg",children:r(e.lead??"")}),e.rest?.trim()?a(v,{children:[" ",r(e.rest)]}):null]},l))})]}),b&&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:[d.length>0&&t("div",{className:"max-w-[720px]",children:d.map((e,l)=>t("p",{className:`font-heading3 ${s.headingSmall} leading-[1.5] tracking-[-0.005em] text-fg [&:not(:first-child)]:mt-4`,children:r(e,!0)},l))}),p&&a("div",{className:`min-w-[240px] text-right font-mono ${s.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 ${s.body} font-normal tracking-[-0.01em] normal-case text-fg`,children:u(n,!1)}),c.map((e,l)=>a("span",{children:[r(e),t("br",{})]},l)),m&&t("span",{className:"text-accent",children:r(m)})]})]})]})})}export{j as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as r,Fragment as T}from"react/jsx-runtime";import{renderGold as te,renderHeadline as re}from"./goldPhrases.js";const B={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))]"},C="#ffffff",d="#16181d",o="#5b6470",u="#9aa3ae",p="#f4f6f8",m="#e3e7ec",g="#1f9d55";function ne({rows:n}){return e("div",{className:"flex flex-col gap-3",children:n.map((l,c)=>{const t=l.state??"ok",s=t==="no";return r("div",{className:"flex items-center gap-3 rounded-lg border px-4 py-3",style:{background:s?"#fbfbfc":p,borderColor:m},children:[t==="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:t==="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:t==="ok"?g:t==="warn"?"var(--accent)":u},children:l.status})]},c)})})}const E=["#c7cdd5","var(--accent)","#c7cdd5",g];function se({columns:n}){return e("div",{className:"grid gap-2 rounded-xl p-3",style:{background:p,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((t,s)=>r("div",{className:"rounded-md border px-2.5 py-2",style:{background:C,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:E[c%E.length]}}),e("span",{className:"block text-[11px] font-semibold leading-snug",style:{color:d},children:t})]},s))]},c))})}function ce({heading:n,bars:l}){const c=Math.max(...l.map(s=>s.value),0)||1,t=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===t?"var(--accent)":i%2?"#c7cdd5":"#9aa3ae"}}),r("span",{className:"text-[12px]",style:{color:o},children:[s.value,"%"]})]},i))})]})}function I({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 de({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,t)=>c.startsWith("$ ")?r("div",{children:[e("span",{style:{color:"var(--accent)"},children:"$ "}),e("span",{style:{color:"#f4f6f2"},children:c.slice(2)})]},t):c.startsWith("✓")?e("div",{style:{color:"#6fcf7e"},children:c},t):e("div",{style:{color:"rgba(244,246,242,0.55)"},children:c},t)),e("div",{"aria-hidden":!0,className:"mt-1 h-[15px] w-[8px]",style:{background:"var(--accent)"}})]})]})}function ie({urlText:n,heroTitle:l,heroButton:c,products:t}){return r("div",{children:[r("div",{className:"flex items-center gap-2 px-4 py-3",style:{background:p},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:C,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(I,{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})]}),t.length>0&&e("div",{className:"grid grid-cols-3 gap-3 p-4",children:t.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:p},children:e(I,{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 oe({eyebrow:n,title:l,body:c,variant:t="spec-card",cardHeader:s,badge:i,cardTitle:f,cardSubtitle:b,pills:F,tiles:W,rows:K,button:_,footnote:M,col1Title:G,col1Cards:L,col2Title:U,col2Cards:O,col3Title:P,col3Cards:z,col4Title:S,col4Cards:X,barsHeading:Z,bars:q,termLines:J,urlText:Q,heroTitle:j,heroButton:V,products:Y,align:H="right",editing:x=!1}={}){const y=(F??[]).filter(a=>x||(a.value??"").trim()),v=(W??[]).filter(a=>x||(a.label??"").trim()),N=(K??[]).filter(a=>x||(a.lead??"").trim()),k=[[G,L],[U,O],[P,z],[S,X]].map(([a,h])=>({title:(a??"").trim(),cards:(h??[]).map(ae=>(ae.text??"").trim()).filter(Boolean)})).filter(a=>a.title||a.cards.length>0),w=(q??[]).map(a=>({label:(a.label??"").trim(),value:parseFloat(a.value??"")})).filter(a=>a.label&&Number.isFinite(a.value)),A=(J??[]).map(a=>a.text??"").filter(a=>x||a.trim()),R=(Y??[]).map(a=>({name:(a.name??"").trim(),price:(a.price??"").trim()})).filter(a=>a.name),ee=!!(n??"").trim()||!!(l??"").trim(),le=!!(s??"").trim()||!!(f??"").trim()||y.length>0||v.length>0||N.length>0||k.length>0||w.length>0||R.length>0||A.length>0||!!(j??"").trim();if(!x&&!ee&&!le)return null;const $=r("div",{className:`w-full overflow-hidden rounded-2xl shadow-[0_24px_60px_rgba(0,0,0,0.35)] ${t==="kanban"||t==="browser"||t==="terminal"?"max-w-[600px]":"max-w-[520px]"}`,style:{background:C},children:[t!=="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]})]}),t==="terminal"?e(de,{header:s??"",lines:A}):t==="browser"?e(ie,{urlText:Q??"",heroTitle:j??"",heroButton:V??"",products:R}):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})]}),t==="fitment"&&y.length>0&&e("div",{className:"flex flex-wrap gap-2.5",children:y.map((a,h)=>r("span",{className:"flex items-baseline gap-2 rounded border px-4 py-2",style:{background:p,borderColor:m},children:[e("span",{className:"text-[11px]",style:{color:o},children:a.label}),e("span",{className:"text-[13px] font-bold",style:{color:d},children:a.value})]},h))}),t!=="fitment"&&v.length>0&&e("div",{className:"grid grid-cols-2 gap-3",children:v.map((a,h)=>r("div",{className:"rounded-lg px-4 py-3",style:{background:p},children:[e("div",{className:"font-mono text-[10px] font-semibold uppercase tracking-[0.18em]",style:{color:o},children:a.label}),e("div",{className:"mt-1 text-[17px] font-bold",style:{color:d},children:a.value})]},h))}),N.length>0&&e(ne,{rows:N}),(_??"").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:_}),t==="kanban"&&k.length>0&&e(se,{columns:k}),t==="claims"&&w.length>0&&e(ce,{heading:Z??"",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})})]})]}),D=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:te(n??"")}),(l??"").trim()&&e("h2",{className:`mt-5 font-heading2 ${B.headingMedium} font-medium uppercase leading-[1.04] tracking-[-0.02em] text-fg ${B.headingMediumUpTo800}`,children:re(l??"",!1)}),(c??"").trim()&&e("p",{className:"mt-5 max-w-[46ch] text-[15px] leading-relaxed text-fg/65",children:c})]});return e("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:H==="left"?r(T,{children:[e("div",{className:"flex justify-center min-[960px]:justify-start",children:$}),D]}):r(T,{children:[D,e("div",{className:"flex justify-center min-[960px]:justify-end",children:$})]})})})}export{oe as default};
|
|
1
|
+
import{jsx as e,jsxs as r,Fragment as D}from"react/jsx-runtime";import{HideTaker as te}from"./ViewHideRoot.js";import{renderGold as re,renderHeadline as ne}from"./goldPhrases.js";const B={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))]"},C="#ffffff",d="#16181d",o="#5b6470",u="#9aa3ae",p="#f4f6f8",m="#e3e7ec",g="#1f9d55";function se({rows:n}){return e("div",{className:"flex flex-col gap-3",children:n.map((a,c)=>{const t=a.state??"ok",s=t==="no";return r("div",{className:"flex items-center gap-3 rounded-lg border px-4 py-3",style:{background:s?"#fbfbfc":p,borderColor:m},children:[t==="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:t==="warn"?"var(--accent)":g}}),e("span",{className:"text-[14px] font-semibold",style:{color:s?u:d},children:a.lead}),e("span",{className:"text-[13px]",style:{color:s?u:o},children:a.detail}),(a.status??"").trim()&&e("span",{className:"ml-auto whitespace-nowrap text-[12px] font-bold",style:{color:t==="ok"?g:t==="warn"?"var(--accent)":u},children:a.status})]},c)})})}const E=["#c7cdd5","var(--accent)","#c7cdd5",g];function ce({columns:n}){return e("div",{className:"grid gap-2 rounded-xl p-3",style:{background:p,gridTemplateColumns:`repeat(${n.length}, minmax(0, 1fr))`},children:n.map((a,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:a.title}),e("span",{className:"font-mono text-[9px] font-bold",style:{color:"var(--accent)"},children:a.cards.length})]}),a.cards.map((t,s)=>r("div",{className:"rounded-md border px-2.5 py-2",style:{background:C,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:E[c%E.length]}}),e("span",{className:"block text-[11px] font-semibold leading-snug",style:{color:d},children:t})]},s))]},c))})}function de({heading:n,bars:a}){const c=Math.max(...a.map(s=>s.value),0)||1,t=a.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:a.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===t?"var(--accent)":i%2?"#c7cdd5":"#9aa3ae"}}),r("span",{className:"text-[12px]",style:{color:o},children:[s.value,"%"]})]},i))})]})}function I({size:n}){const a=n/2;return r("svg",{width:n,height:n,viewBox:`0 0 ${n} ${n}`,"aria-hidden":!0,children:[e("circle",{cx:a,cy:a,r:a*.82,fill:"none",stroke:"#9aa3ae",strokeWidth:"2.5"}),e("circle",{cx:a,cy:a,r:a*.5,fill:"none",stroke:"var(--accent)",strokeWidth:"2"}),e("circle",{cx:a,cy:a,r:a*.14,fill:"var(--accent)"})]})}function ie({header:n,lines:a}){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:[a.map((c,t)=>c.startsWith("$ ")?r("div",{children:[e("span",{style:{color:"var(--accent)"},children:"$ "}),e("span",{style:{color:"#f4f6f2"},children:c.slice(2)})]},t):c.startsWith("✓")?e("div",{style:{color:"#6fcf7e"},children:c},t):e("div",{style:{color:"rgba(244,246,242,0.55)"},children:c},t)),e("div",{"aria-hidden":!0,className:"mt-1 h-[15px] w-[8px]",style:{background:"var(--accent)"}})]})]})}function oe({urlText:n,heroTitle:a,heroButton:c,products:t}){return r("div",{children:[r("div",{className:"flex items-center gap-2 px-4 py-3",style:{background:p},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:C,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(I,{size:104})}),a.trim()&&e("div",{className:"max-w-[240px] text-[15px] font-bold uppercase leading-snug tracking-wide text-white",children:a}),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})]}),t.length>0&&e("div",{className:"grid grid-cols-3 gap-3 p-4",children:t.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:p},children:e(I,{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 me({eyebrow:n,title:a,body:c,variant:t="spec-card",cardHeader:s,badge:i,cardTitle:f,cardSubtitle:b,pills:F,tiles:W,rows:K,button:_,footnote:M,col1Title:G,col1Cards:L,col2Title:U,col2Cards:O,col3Title:P,col3Cards:z,col4Title:S,col4Cards:X,barsHeading:Z,bars:q,termLines:H,urlText:J,heroTitle:j,heroButton:Q,products:V,align:Y="right",editing:x=!1}={}){const y=(F??[]).filter(l=>x||(l.value??"").trim()),v=(W??[]).filter(l=>x||(l.label??"").trim()),N=(K??[]).filter(l=>x||(l.lead??"").trim()),k=[[G,L],[U,O],[P,z],[S,X]].map(([l,h])=>({title:(l??"").trim(),cards:(h??[]).map(le=>(le.text??"").trim()).filter(Boolean)})).filter(l=>l.title||l.cards.length>0),w=(q??[]).map(l=>({label:(l.label??"").trim(),value:parseFloat(l.value??"")})).filter(l=>l.label&&Number.isFinite(l.value)),A=(H??[]).map(l=>l.text??"").filter(l=>x||l.trim()),R=(V??[]).map(l=>({name:(l.name??"").trim(),price:(l.price??"").trim()})).filter(l=>l.name),ee=!!(n??"").trim()||!!(a??"").trim(),ae=!!(s??"").trim()||!!(f??"").trim()||y.length>0||v.length>0||N.length>0||k.length>0||w.length>0||R.length>0||A.length>0||!!(j??"").trim();if(!x&&!ee&&!ae)return null;const T=r("div",{className:`w-full overflow-hidden rounded-2xl shadow-[0_24px_60px_rgba(0,0,0,0.35)] ${t==="kanban"||t==="browser"||t==="terminal"?"max-w-[600px]":"max-w-[520px]"}`,style:{background:C},children:[t!=="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]})]}),t==="terminal"?e(ie,{header:s??"",lines:A}):t==="browser"?e(oe,{urlText:J??"",heroTitle:j??"",heroButton:Q??"",products:R}):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})]}),t==="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:p,borderColor:m},children:[e("span",{className:"text-[11px]",style:{color:o},children:l.label}),e("span",{className:"text-[13px] font-bold",style:{color:d},children:l.value})]},h))}),t!=="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:p},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:d},children:l.value})]},h))}),N.length>0&&e(se,{rows:N}),(_??"").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:_}),t==="kanban"&&k.length>0&&e(ce,{columns:k}),t==="claims"&&w.length>0&&e(de,{heading:Z??"",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})})]})]}),$=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:re(n??"")}),(a??"").trim()&&e("h2",{className:`mt-5 font-heading2 ${B.headingMedium} font-medium uppercase leading-[1.04] tracking-[-0.02em] text-fg ${B.headingMediumUpTo800}`,children:ne(a??"",!1)}),(c??"").trim()&&e("p",{className:"mt-5 max-w-[46ch] text-[15px] leading-relaxed text-fg/65",children:c})]});return e(te,{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:Y==="left"?r(D,{children:[e("div",{className:"flex justify-center min-[960px]:justify-start",children:T}),$]}):r(D,{children:[$,e("div",{className:"flex justify-center min-[960px]:justify-end",children:T})]})})})}export{me as default};
|
|
@@ -11,5 +11,6 @@ export interface ParagraphsAProps {
|
|
|
11
11
|
attribution?: string;
|
|
12
12
|
padTop?: number;
|
|
13
13
|
padBottom?: number;
|
|
14
|
+
takesViewHide?: boolean;
|
|
14
15
|
}
|
|
15
|
-
export default function ParagraphsA({ eyebrow, stats, lead, foundersHeading, foundersBody, attribution, padTop, padBottom, }?: ParagraphsAProps): import("react").JSX.Element;
|
|
16
|
+
export default function ParagraphsA({ eyebrow, stats, lead, foundersHeading, foundersBody, attribution, padTop, padBottom, takesViewHide, }?: ParagraphsAProps): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as l,jsxs as i}from"react/jsx-runtime";import{renderGold as t,renderHeadline as
|
|
1
|
+
import{jsx as l,jsxs as i}from"react/jsx-runtime";import{HideTaker as S}from"./ViewHideRoot.js";import{renderGold as t,renderHeadline as w,splitParagraphs as u}from"./goldPhrases.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 N({eyebrow:s,stats:b,lead:n,foundersHeading:r,foundersBody:m,attribution:o,padTop:x,padBottom:g,takesViewHide:h=!1}={}){const v=typeof x=="number"?x:60,f=typeof g=="number"?g:80,d=(b??[]).filter(a=>(a.value??"").trim()!==""||(a.label??"").trim()!==""),k=!!s||d.length>0,c=!!(r||m||o);return l(S,{as:"section",takes:h,className:"relative z-[2] bg-bg",children:i("div",{className:"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))]",style:{paddingTop:v,paddingBottom:f},children:[k&&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))})]}),(n||c)&&i("div",{className:"grid grid-cols-3 gap-[60px] max-view-desktop:grid-cols-1 max-view-desktop:gap-7",children:[n&&l("div",{className:"col-span-2 max-view-desktop:col-span-1",children:u(n).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))}),c&&i("div",{className:`self-end font-display ${e.bodySmall} leading-[1.7] text-fg-dim ${e.bodyUpTo720Small}`,children:[r&&l("strong",{className:`mb-1.5 block ${e.bodyLarge} font-medium tracking-[-0.01em] text-fg ${e.bodyUpTo720Large}`,children:w(r,!1)}),m?t(m):null,o&&l("span",{className:`mt-2 block font-mono ${e.labelSmall} uppercase not-italic tracking-[0.24em] text-accent ${e.labelUpTo720}`,children:t(o)})]})]})]})})}export{N as default};
|
|
@@ -17,5 +17,6 @@ export interface PostCardProps {
|
|
|
17
17
|
darkenStyle?: string;
|
|
18
18
|
href?: string;
|
|
19
19
|
minHeight?: number;
|
|
20
|
+
takesViewHide?: boolean;
|
|
20
21
|
}
|
|
21
|
-
export default function PostCard({ post, scaffold, layout, showCover, placement, darken, darkenStyle, href, minHeight, }: PostCardProps): import("react").
|
|
22
|
+
export default function PostCard({ post, scaffold, layout, showCover, placement, darken, darkenStyle, href, minHeight, takesViewHide, }: PostCardProps): import("react").ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as a,jsxs as
|
|
1
|
+
import{jsx as a,jsxs as i}from"react/jsx-runtime";import{NO_HIDE as S,useTakeViewHide as y,withViewHide as c}from"./ViewHideRoot.js";import{SiteLink as s}from"../lib/site-runtime.js";import{boxDarkenStyle as L,boxPlacementClasses as H,CARD_SHADOW_CLASS as _}from"../../format/lib/content/box-background.js";import{POST_CARD_HEIGHT as z}from"../../format/lib/post-card-layout.js";import C from"./PictureWash.js";import m from"./Placeholder.js";import{renderGold as l,renderHeadline as o}from"./goldPhrases.js";const r={body:"text-[length:var(--size-body,14px)]",headingSmall1:"text-[length:var(--size-headingSmall,22px)]",headingSmall2:"text-[length:var(--size-headingSmall,30px)]",label:"text-[length:var(--size-label,13px)]"};function j({post:e,scaffold:n=!1,layout:h,showCover:g=!0,placement:f,darken:x,darkenStyle:b,href:u,minHeight:v,takesViewHide:p=!1}){const N=y(),t=p?N:S,d=u||(n?"#":`/journal/${e.slug}`),w=h==="cover",$=(e.meta||e.dateLabel||e.read)&&i("div",{className:`flex gap-3.5 font-mono ${r.label} uppercase tracking-[0.18em] text-fg-dim`,children:[e.meta&&a("span",{className:"text-accent",children:l(e.meta)}),e.dateLabel&&a("span",{children:l(e.dateLabel)}),e.read&&a("span",{children:l(e.read)})]});if(w){const k=L(x,b);return t.scope(i(s,{href:d,className:c(`${_} group relative isolate flex overflow-hidden`,t.className),...t.attrs,style:{minHeight:`${v??z.fallback}px`},"aria-disabled":n||void 0,tabIndex:n?-1:void 0,children:[a("div",{className:"absolute inset-0",children:a(m,{label:`post-${e.slug}`,src:e.cover||void 0,sizes:"(max-width: 800px) 100vw, 56vw"})}),a(C,{wash:k}),i("div",{className:`relative z-[1] flex w-full flex-col gap-2 p-8 text-overlay-fg max-view-wide:p-5 ${H(f??"bottom-left","column")}`,children:[e.meta&&a("div",{className:`font-mono ${r.label} uppercase tracking-[0.18em] text-accent`,children:l(e.meta)}),a("h3",{className:`font-heading3 ${r.headingSmall2} font-medium leading-[1.2] tracking-[-0.02em]`,children:o(e.title,!1)}),e.excerpt&&a("p",{className:`max-w-[46ch] ${r.body} leading-[1.55] opacity-80`,children:l(e.excerpt)}),(e.dateLabel||e.read)&&i("div",{className:`flex gap-3.5 font-mono ${r.label} uppercase tracking-[0.18em] opacity-75`,children:[e.dateLabel&&a("span",{children:l(e.dateLabel)}),e.read&&a("span",{children:l(e.read)})]})]})]}))}return t.scope(i(s,{href:d,style:{"--card-bg":"var(--site-surface)","--card-bg-hover":"var(--site-surface-2)"},className:c("sf-card sf-card-fill group block bg-[var(--card-bg)] transition-colors duration-300 hover:bg-[var(--card-bg-hover)]",t.className),...t.attrs,"aria-disabled":n||void 0,tabIndex:n?-1:void 0,children:[g&&(e.cover||n)&&a("div",{className:"sf-card-image relative aspect-[16/10] overflow-hidden bg-bg",children:a(m,{label:`event-${e.slug}`,src:e.cover||void 0})}),i("div",{className:"flex flex-col gap-2.5 px-7 pb-8 pt-6",children:[$,a("h3",{className:`mt-1 font-heading3 ${r.headingSmall1} font-medium leading-[1.2] tracking-[-0.02em]`,children:o(e.title,!1)}),e.excerpt&&a("p",{className:`${r.body} leading-[1.55] text-fg-dim`,children:l(e.excerpt)}),i("span",{className:`mt-1.5 inline-flex items-center gap-2 font-mono ${r.label} uppercase tracking-[0.2em] transition-colors group-hover:text-accent`,children:["Read more",a("span",{"aria-hidden":!0,children:"→"})]})]})]}))}export{j as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,Fragment as M,jsxs as i}from"react/jsx-runtime";import{RowHandContext as w}from"./MirrorContext.js";import{EDITORIAL_COLUMN as
|
|
1
|
+
import{jsx as e,Fragment as M,jsxs as i}from"react/jsx-runtime";import{HideTaker as O}from"./ViewHideRoot.js";import{RowHandContext as w}from"./MirrorContext.js";import{EDITORIAL_COLUMN as R}from"../../format/lib/content/page-width.js";import{cardImageShapeTokens as F}from"../../format/lib/content/card-image-shape.js";import{SiteLink as Y}from"../lib/site-runtime.js";import X from"./EditorialSectionHead.js";import Z from"./Placeholder.js";import{withRMark as o}from"./RMark.js";import{renderGold as s}from"./goldPhrases.js";import{say as q}from"../../format/lib/editor-words.js";import{scrim as f}from"../../format/lib/content/scrim.js";import{EMPTY_ELSE_CLASS as J,EMPTY_HIDES_CLASS as T,EmptyHidesStyle as K}from"../lib/content/empty-hides.js";const l={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)]"},C={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"},y="sf-itc-boxes",Q="sf-itc-steps";function V(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 W({num:b,title:r,description:c,boxes:n,steps:I,columns:H=3,cta:h,padTop:S,padBottom:$,editing:j=!1,omitHead:A=!1,cardImage:P,cardText:U,rows:N,copies:g}){const p=g!==void 0,m=N&&(p||(n?.blockCount??0)>0)?N:null,D=typeof S=="number"?S:120,G=typeof $=="number"?$:120,k=p?[]:V(I),L=k.length>0?k:j&&!n&&!p?[1,2,3].map(a=>({tag:q("Column {n}",{n:a})})):[],z=C[H]??C[3],u=m?"grid-cols-1":z,E=m?"":" [&>*]:min-h-[560px]",d=U==="on-image";return e(O,{as:"section",className:"relative z-[2] border-b border-line bg-bg",style:{paddingTop:D,paddingBottom:G,...F(P)},children:i("div",{className:R,children:[A?null:e(X,{num:b,title:r?.trim()?s(r,!0):void 0,desc:c?.trim()?s(c,!1):void 0}),n&&!p?i(M,{children:[e(K,{}),m?e(w.Provider,{value:{hand:m,ids:n.blockIds??[],boxes:[]},children:e(n,{className:`${y} ${T} sf-card grid ${u} gap-[2px] border border-line bg-line${E} [&>*]:bg-bg`,minEmptyHeight:260})}):e(n,{className:`${y} ${T} sf-card grid ${u} gap-[2px] border border-line bg-line [&>*]:min-h-[560px] [&>*]:bg-bg`,minEmptyHeight:260})]}):null,p&&g?e("div",{className:`${y} sf-card grid ${u} gap-[2px] border border-line bg-line${E} [&>*]:bg-bg`,children:m?e(w.Provider,{value:{hand:m,copies:!0},children:g}):g}):null,L.length>0&&e("div",{className:`${Q} ${J} sf-card grid ${z} gap-[2px] border border-line bg-line`,children:L.map((a,_)=>{const x=(a.specs??[]).filter(t=>(t?.label??"").trim()||(t?.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(Z,{label:a.tag?.trim()||a.title?.trim()||`column-${_+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 ${l.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 ${l.label} uppercase tracking-[0.24em] text-overlay-fg/80`:`absolute right-5 bottom-[18px] z-[2] font-mono ${l.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 ${l.headingSmall1} font-medium uppercase leading-none tracking-[-0.02em] text-overlay-fg ${l.headingSmallUpTo700Small}`,children:s(a.title,!0)}),a.copy?.trim()&&e("p",{className:`min-h-[3em] font-display ${l.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((t,v)=>i("div",{className:"flex flex-col gap-1",children:[t.label?.trim()&&e("span",{className:`font-mono ${l.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:o(t.label)}),t.value?.trim()&&e("span",{className:`font-display ${l.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:o(t.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 ${l.headingSmall2} font-medium uppercase leading-none tracking-[-0.02em] ${l.headingSmallUpTo700Large}`,children:s(a.title,!0)}),a.copy?.trim()&&e("p",{className:`font-display ${l.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((t,v)=>i("div",{className:"flex flex-col gap-1",children:[t.label?.trim()&&e("span",{className:`font-mono ${l.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:o(t.label)}),t.value?.trim()&&e("span",{className:`font-display ${l.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:o(t.value)})]},v))})]})]},_)})}),h?.text&&e("div",{className:"mt-12 flex justify-end border-t border-line pt-8",children:i(Y,{href:h.href,className:`group inline-flex items-center gap-3.5 border border-line px-6 py-4 font-mono ${l.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{W as default,V as storedStepsShown};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,Fragment as o,jsxs as n}from"react/jsx-runtime";import h from"./SectionEyebrow.js";import{renderGold as
|
|
1
|
+
import{jsx as e,Fragment as o,jsxs as n}from"react/jsx-runtime";import h from"./SectionEyebrow.js";import{HideTaker as f}from"./ViewHideRoot.js";import{renderGold as c,renderHeadline as u,splitParagraphs as v}from"./goldPhrases.js";const r={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)]"},b="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))]",w="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 N({eyebrow:t,title:a,body:m,topBorder:x=!0,omitHead:i=!1,editing:p=!1}={}){const s=v((m??"").trim()),d=!!(t??"").trim()||!!(a??"").trim()||s.length>0;return!p&&!d?null:e(f,{as:"section",className:`relative z-[2] ${x?"border-t border-line ":""}bg-bg`,children:n("div",{className:i?w:b,children:[i?null:n(o,{children:[(t??"").trim()&&e(h,{text:t??"",className:"mb-4 block"}),(a??"").trim()&&e("h2",{className:`mb-7 font-heading2 ${r.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 ${r.headingSmallUpTo800}`,children:u(a??"",!1)})]}),s.map((l,g)=>e("p",{className:`mb-[18px] max-w-[680px] ${r.body} leading-[1.7] text-fg-dim last:mb-0`,children:c(l)},g))]})})}export{N as default};
|
|
@@ -2,15 +2,16 @@ import { type CSSProperties, type ReactNode } from "react";
|
|
|
2
2
|
import { type EntranceValue } from "efficient-shell/format";
|
|
3
3
|
import { ENTRANCE_WRAPPER_CLASS } from "../lib/animation/entrance.js";
|
|
4
4
|
export { ENTRANCE_WRAPPER_CLASS };
|
|
5
|
-
export declare function SectionAnimation({ desktop, phone, editing, boxClass, boxAttrs, boxStyle, children, }: {
|
|
5
|
+
export declare function SectionAnimation({ desktop, phone, editing, boxClass, boxAttrs, boxStyle, takesViewHide, children, }: {
|
|
6
6
|
desktop: EntranceValue;
|
|
7
7
|
phone: EntranceValue;
|
|
8
8
|
editing: boolean;
|
|
9
9
|
boxClass?: string;
|
|
10
10
|
boxAttrs?: Readonly<Record<string, string>>;
|
|
11
11
|
boxStyle?: CSSProperties;
|
|
12
|
+
takesViewHide?: boolean;
|
|
12
13
|
children: ReactNode;
|
|
13
|
-
}):
|
|
14
|
+
}): ReactNode;
|
|
14
15
|
export type SeenEntrance = {
|
|
15
16
|
readonly desktop: string;
|
|
16
17
|
readonly phone: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as
|
|
1
|
+
"use client";import{jsx as P}from"react/jsx-runtime";import{NO_HIDE as v,useTakeViewHide as R,withViewHide as _}from"./ViewHideRoot.js";import{useEffect as h,useRef as w,useState as k}from"react";import{armEntrance as H,entranceAttrs as J,playEntrance as L}from"efficient-shell/format";import{PHONE_MEDIA as V}from"../lib/content/view-values.js";import{useCellLayer as $}from"./InBoxContext.js";import{ENTRANCE_WRAPPER_CLASS as E}from"../lib/animation/entrance.js";function q({desktop:e,phone:t,editing:s,boxClass:o,boxAttrs:n,boxStyle:r,takesViewHide:i=!1,children:N}){const c=w(null),m=$(),O=R(),a=i?O:v,u=j(c),S=u?t:e,{attrs:g,style:p}=J(S),d=w(l.seed(e,t)),x=JSON.stringify(e),A=JSON.stringify(t);return h(()=>{const f=c.current;if(f){if(s){const y=l.next(d.current,e,t,u);d.current=y.seen,y.play&&L(f);return}return H(f)}},[x,A,u,s]),a.scope(P("div",{ref:c,className:_(`${E}${m.fill}${o?` ${o}`:""}`,a.className),...n,...a.attrs,...g,...Object.keys(p).length||r?{style:{...r,...p}}:{},children:m.inner(N)}))}const l={seed(e,t){return{desktop:JSON.stringify(e),phone:JSON.stringify(t)}},next(e,t,s,o){const n=l.seed(t,s);return{play:o?n.phone!==e.phone:n.desktop!==e.desktop,seen:n}}};function j(e,t=!0){const[s,o]=k(!1);return h(()=>{if(!t)return;const n=e.current?.ownerDocument?.defaultView??(typeof window>"u"?null:window);if(!n?.matchMedia)return;const r=n.matchMedia(V),i=()=>o(r.matches);return i(),r.addEventListener("change",i),()=>r.removeEventListener("change",i)},[e,t]),s}export{E as ENTRANCE_WRAPPER_CLASS,q as SectionAnimation,l as entranceReplay,j as usePhoneWidth};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { SectionEyebrowLook } from "../../format/lib/sections/section-eyebrow-look.js";
|
|
2
2
|
export interface SectionEyebrowProps {
|
|
3
|
+
takesViewHide?: boolean;
|
|
3
4
|
text: string;
|
|
4
5
|
look?: SectionEyebrowLook;
|
|
5
6
|
size?: 12 | 13 | 14;
|
|
@@ -7,4 +8,4 @@ export interface SectionEyebrowProps {
|
|
|
7
8
|
className?: string;
|
|
8
9
|
classNameAfter?: string;
|
|
9
10
|
}
|
|
10
|
-
export default function SectionEyebrow({ text, look, size, scaled, className, classNameAfter, }: SectionEyebrowProps): import("react").
|
|
11
|
+
export default function SectionEyebrow({ text, look, size, scaled, className, classNameAfter, takesViewHide, }: SectionEyebrowProps): import("react").ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as a,jsxs as b}from"react/jsx-runtime";import d from"./RuleLine.js";import{NO_HIDE as u,useTakeViewHide as g,withViewHide as r}from"./ViewHideRoot.js";import{renderGold as s}from"./goldPhrases.js";const l={labelUpTo800:"max-view-wide:text-[length:var(--size-label,12px)]",labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,14px)]"};function h(t,n){return`font-mono text-[length:var(--size-label,${t}px)] uppercase tracking-[0.3em] text-accent`}const w=`inline-block w-fit bg-accent px-3.5 py-1.5 font-mono ${l.labelSmall} font-semibold uppercase tracking-[0.16em] text-bg`,v=`flex items-center gap-3.5 font-mono ${l.labelLarge} uppercase tracking-[0.3em] opacity-80 ${l.labelUpTo800} max-view-wide:tracking-[0.25em]`;function j({text:t,look:n="plain",size:c=13,scaled:p=!0,className:i="",classNameAfter:o="",takesViewHide:m=!1}){const x=g(),e=m?x:u;if(n==="line")return e.scope(b("div",{className:r([i,v,o].filter(Boolean).join(" "),e.className),...e.attrs,children:[a(d,{}),a("span",{children:s(t)})]}));const f=n==="filled"?w:h(c,p);return e.scope(a("span",{className:r([i,f,o].filter(Boolean).join(" "),e.className),...e.attrs,children:s(t)}))}export{j as default};
|