efficient-web-builder 74.1.0 → 74.3.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 +42 -0
- package/dist/editor/components/PreviewFooterContext.d.ts +3 -1
- package/dist/editor/components/PreviewFooterContext.js +1 -1
- package/dist/editor/components/SectionTextPartBridge.d.ts +2 -8
- package/dist/editor/components/SectionTextPartBridge.js +1 -1
- package/dist/editor/components/StorefrontEditor.js +1 -1
- package/dist/editor/components/storefront-editor.css +7 -0
- package/dist/editor/lib/document/blocks/general/ContactLocations/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Footprint/fields.d.ts +3 -0
- package/dist/editor/lib/document/blocks/general/Footprint/fields.js +1 -1
- package/dist/editor/lib/document/controls.d.ts +1 -0
- package/dist/editor/lib/document/controls.js +1 -1
- package/dist/editor/lib/document/own-pad-fields.d.ts +4 -3
- package/dist/editor/lib/document/own-pad-fields.js +1 -1
- package/dist/editor/lib/document/page-root-fields.d.ts +4 -0
- package/dist/editor/lib/document/page-root-fields.js +1 -1
- package/dist/editor/lib/document/page-root.d.ts +3 -2
- package/dist/editor/lib/document/page-root.js +2 -2
- package/dist/editor/lib/document/registry.js +1 -1
- package/dist/editor/lib/editor-document-adapter.d.ts +1 -0
- package/dist/editor/lib/editor-document-adapter.js +1 -1
- package/dist/editor/lib/pinned-chrome-doc.d.ts +1 -0
- package/dist/editor/lib/pinned-chrome-doc.js +1 -1
- package/dist/format/lib/build/module-specifiers.d.ts +8 -0
- package/dist/format/lib/build/module-specifiers.js +1 -1
- package/dist/format/lib/content/block-sources.d.ts +1 -0
- package/dist/format/lib/content/block-sources.js +1 -1
- package/dist/format/lib/content/page-width.d.ts +15 -0
- package/dist/format/lib/content/page-width.js +1 -1
- package/dist/format/lib/content/section-css.d.ts +1 -1
- package/dist/format/lib/content/section-css.js +1 -1
- package/dist/format/lib/content/site-css.d.ts +5 -0
- package/dist/format/lib/content/site-css.js +1 -0
- package/dist/format/lib/content/site-offices.d.ts +7 -0
- package/dist/format/lib/content/site-offices.js +1 -0
- package/dist/format/lib/document/passes/types.d.ts +3 -2
- package/dist/format/lib/editor-words-catalogue.d.ts +3 -0
- package/dist/format/lib/editor-words-catalogue.js +3 -3
- package/dist/format/lib/source-rules/panel-colour-tokens.js +7 -7
- package/dist/format/lib/source-rules/site-gutter-once.d.ts +12 -0
- package/dist/format/lib/source-rules/site-gutter-once.js +23 -0
- package/dist/render/components/Banner.d.ts +3 -1
- package/dist/render/components/Banner.js +1 -1
- package/dist/render/components/Breadcrumb.js +1 -1
- package/dist/render/components/Cards.d.ts +3 -1
- package/dist/render/components/Cards.js +1 -1
- package/dist/render/components/ChartSection.d.ts +3 -1
- package/dist/render/components/ChartSection.js +1 -1
- package/dist/render/components/ContactLocations.d.ts +3 -1
- package/dist/render/components/ContactLocations.js +2 -2
- package/dist/render/components/Countdown.d.ts +3 -1
- package/dist/render/components/Countdown.js +1 -1
- package/dist/render/components/DocBody.d.ts +3 -1
- package/dist/render/components/DocBody.js +4 -4
- package/dist/render/components/DocMasthead.d.ts +3 -1
- package/dist/render/components/DocMasthead.js +1 -1
- package/dist/render/components/DocMetaCards.d.ts +3 -1
- package/dist/render/components/DocMetaCards.js +1 -1
- package/dist/render/components/FAQ.d.ts +3 -1
- package/dist/render/components/FAQ.js +1 -1
- package/dist/render/components/FeaturedCover.d.ts +3 -1
- package/dist/render/components/FeaturedCover.js +1 -1
- package/dist/render/components/Flex.js +1 -1
- package/dist/render/components/Footprint.js +1 -1
- package/dist/render/components/Grid.d.ts +3 -1
- package/dist/render/components/Grid.js +1 -1
- package/dist/render/components/HeroGroup.js +1 -1
- package/dist/render/components/HeroSingle.js +1 -1
- package/dist/render/components/HeroSlide.js +1 -1
- package/dist/render/components/ImageBlock.js +1 -1
- package/dist/render/components/IntegrationsSection.d.ts +3 -1
- package/dist/render/components/IntegrationsSection.js +1 -1
- package/dist/render/components/KeyFeatures.d.ts +3 -1
- package/dist/render/components/KeyFeatures.js +1 -1
- package/dist/render/components/Logos.d.ts +3 -1
- package/dist/render/components/Logos.js +1 -1
- package/dist/render/components/LongRead.d.ts +3 -1
- package/dist/render/components/LongRead.js +1 -1
- package/dist/render/components/Manifesto.js +1 -1
- package/dist/render/components/Masthead.d.ts +3 -1
- package/dist/render/components/Masthead.js +1 -1
- package/dist/render/components/MockupSection.d.ts +3 -1
- package/dist/render/components/MockupSection.js +1 -1
- package/dist/render/components/OrderSummary.d.ts +3 -1
- package/dist/render/components/OrderSummary.js +1 -1
- package/dist/render/components/ParagraphsA.js +1 -1
- package/dist/render/components/PaymentBadges.d.ts +3 -1
- package/dist/render/components/PaymentBadges.js +1 -1
- package/dist/render/components/ProcessSteps.js +1 -1
- package/dist/render/components/Prose.d.ts +3 -1
- package/dist/render/components/Prose.js +1 -1
- package/dist/render/components/SectionHeader.d.ts +2 -1
- package/dist/render/components/SectionHeader.js +1 -1
- package/dist/render/components/Series.d.ts +3 -1
- package/dist/render/components/Series.js +1 -1
- package/dist/render/components/SideSpaceOnce.d.ts +6 -0
- package/dist/render/components/SideSpaceOnce.js +1 -0
- package/dist/render/components/SiteGutterFrame.js +1 -1
- package/dist/render/components/SiteOffices.d.ts +5 -0
- package/dist/render/components/SiteOffices.js +1 -0
- package/dist/render/components/SiteRootProps.d.ts +6 -0
- package/dist/render/components/SiteRootProps.js +1 -0
- package/dist/render/components/SpecStrip.js +1 -1
- package/dist/render/components/Split.js +1 -1
- package/dist/render/components/Stats.d.ts +3 -1
- package/dist/render/components/Stats.js +1 -1
- package/dist/render/components/StatsParagraph.js +1 -1
- package/dist/render/components/Testimonials.d.ts +3 -1
- package/dist/render/components/Testimonials.js +1 -1
- package/dist/render/components/TickerSection.d.ts +3 -1
- package/dist/render/components/TickerSection.js +1 -1
- package/dist/render/components/Timeline.js +1 -1
- package/dist/render/components/TimelineTrack.js +1 -1
- package/dist/render/components/TitleWithButtons.js +1 -1
- package/dist/render/lib/content/section-edge.d.ts +1 -1
- package/dist/render/lib/content/section-edge.js +1 -1
- package/dist/render/lib/content/section-own-pads.d.ts +35 -0
- package/dist/render/lib/content/section-own-pads.js +1 -0
- package/dist/render/lib/content/section-padding.d.ts +9 -3
- package/dist/render/lib/content/section-padding.js +1 -1
- package/dist/render/lib/document/blocks/general/Banner/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Cards/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Chart/render.js +1 -1
- package/dist/render/lib/document/blocks/general/ContactLocations/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Countdown/render.js +1 -1
- package/dist/render/lib/document/blocks/general/DocBody/render.js +1 -1
- package/dist/render/lib/document/blocks/general/DocMasthead/render.js +1 -1
- package/dist/render/lib/document/blocks/general/DocMetaCards/render.js +1 -1
- package/dist/render/lib/document/blocks/general/FAQ/render.js +1 -1
- package/dist/render/lib/document/blocks/general/FeaturedCover/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Footprint/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Grid/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Integrations/render.js +2 -2
- package/dist/render/lib/document/blocks/general/KeyFeatures/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Logos/render.js +1 -1
- package/dist/render/lib/document/blocks/general/LongRead/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Masthead/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Mockup/render.js +2 -2
- package/dist/render/lib/document/blocks/general/OrderSummary/render.js +1 -1
- package/dist/render/lib/document/blocks/general/PaymentBadges/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Prose/render.js +1 -1
- package/dist/render/lib/document/blocks/general/SectionHeader/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Series/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Stats/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Testimonials/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Ticker/render.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-docbody.js +2 -2
- package/dist/render/lib/document/blocks/general/section-to-box-rows-head.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-integrations.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-locations.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-logos.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-pageheader.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-promo.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-proof.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-stats.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
- package/dist/render/lib/document/custom-css.d.ts +2 -1
- package/dist/render/lib/document/editing-bridges.d.ts +5 -1
- package/dist/render/lib/document/editing-bridges.js +1 -1
- package/dist/render/lib/document/part-styles.d.ts +3 -1
- package/dist/render/lib/document/part-styles.js +2 -2
- package/dist/render/lib/document/passes/clickable-parts.js +1 -1
- package/dist/render/lib/document/passes/section-custom-css.d.ts +7 -0
- package/dist/render/lib/document/passes/section-custom-css.js +1 -1
- package/dist/render/lib/document/passes/section-padding.d.ts +3 -3
- package/dist/render/lib/document/passes/section-padding.js +1 -1
- package/dist/render/lib/document/passes/section-width.js +1 -1
- package/dist/render/lib/document/section-css-style.d.ts +3 -1
- package/dist/render/lib/document/section-css-style.js +1 -1
- package/dist/routine-index.json +1 -1
- package/dist/value-index.json +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Fragment as A,jsx as e,jsxs as L}from"react/jsx-runtime";import{useContext as wt,useId as pt,useState as xt}from"react";import _t from"./BoxTabs.js";import{AccordionRowStyleContext as oo,BoxTabPaneContext as so,useAccordionRowStyle as vt,useBoxPaneKind as Rt,useFirstCopyOpens as Ot,useIsTabPane as Pt}from"./BoxTabPaneContext.js";import At,{ACCORDION_COUNTER_RESET as Lt}from"./BoxAccordionRow.js";import{ACCORDION_MARK_SHEET as $t}from"./AccordionMark.js";import{EDGE_LINE_ATTRS as yt}from"../../format/lib/content/view-lines.js";import{accordionRowStyleOf as Nt}from"../../format/lib/content/accordion-row-style.js";import{boxPhoneCell as Et,boxPhoneOrder as kt}from"../../format/lib/content/box-phone-place.js";import{CellFillContext as Ns,InBoxContext as Es,useCellOfStretchedRow as It,useFillsCell as Bt}from"./InBoxContext.js";import gt,{InsideSiteColumn as ks,useInsideSiteGutter as Tt,useSectionRoot as Ft}from"./SiteGutterFrame.js";import{BoxSurfaceProvider as Ht}from"./BoxSurfaceContext.js";import Dt from"./PictureWash.js";import{BoxCellContext as Is,NoCellBound as Vt}from"./BoxCellContext.js";import{boxCellFractions as Mt}from"../lib/content/box-cell-bound.js";import{boundOf as Wt}from"../../format/lib/content/cell-picture-sizes.js";import{useInSiteHeader as Gt}from"./PhoneMenuTools.js";import{useCardRow as Xt}from"./CardRowContext.js";import{cardLineBetween as no,framesItsCards as jt}from"../../format/lib/content/card-place.js";import{rowLinkText as Kt}from"../../format/lib/content/card-template.js";import{HandedMirrorContext as Ut,MirrorContext as zt,RowHandContext as Bs,boxPlace as Yt,useHandedMirrorAbove as Jt,useHandedRows as Zt,useMirroredCopy as qt,useUnderCardBox as Qt}from"./MirrorContext.js";import{boxChildrenHand as er,isMirroredCopy as or,mirrorCardsActs as gs,mirrorCardsOf as sr,mirroredBoxClass as nr,MIRROR_ROW_CLASS as tr,ownsCard as rr}from"../../format/lib/content/mirror-cards.js";import{FRAME_BASE as to,frameGutterOf as lr}from"./BlockFrame.js";import{BOX_SIDE_SPACE_SITE as ir,boxSideSpaceOf as cr}from"../../format/lib/content/box-side-space.js";import{containerGapProps as Ts}from"../../format/lib/content/container-gap.js";import{boxLayoutClasses as ar,boxAlignViewClasses as dr,boxBlockSpacingClass as ur,boxBlockSpacingViewClasses as mr,boxJustifyViewClasses as fr,boxWrapTabletClass as hr,boxFitContentClass as Cr,boxAccordionColumnsClass as Fs,boxRowColumnsClass as br,boxRowTabletColumnsClass as Sr,boxRowTabletShareClass as wr,boxPhoneCellsShareLine as pr,boxPhoneRowClasses as ce,boxPhoneRowFits as Hs,boxShareClasses as $,boxShareVars as xr,boxWrapClass as _r,BOX_GAP_ONLY_CLASS as vr}from"../../format/lib/content/box-layout.js";import{boxSeparatorClasses as Rr,boxSeparatorSeamClass as Or,boxSeparatorStyle as Pr,isStripBox as Ar}from"../../format/lib/content/box-separator.js";import{DEFAULT_LOOP_DELAY as Lr,DEFAULT_LOOP_DIRECTION as $r,DEFAULT_LOOP_SECONDS as yr,isVerticalLoop as Nr}from"../../format/lib/animation/index.js";import{LoopTrack as Er}from"../lib/animation/LoopTrack.js";import{BOX_CARD_PAD as y,BOX_OWNS_SIDES_CLASS as kr,boxDarkenStyle as Ds,boxPaintOf as Ir,boxFillFadeStyle as Br,boxFillViews as gr,boxPlacementClasses as Tr,boxCardProps as Fr,boxIsCard as Vs,boxRowPicture as Hr,boxSwatchFill as Dr,boxWashViews as Vr,CARD_NO_LIFT_CLASS as Mr,CARD_SHADOW_CLASS as Wr,isBackgroundBox as _e}from"../../format/lib/content/box-background.js";import{BOX_ROW_IMAGE_PROP as x}from"../../format/lib/content/box-card-rule.js";import{boxShadowAttrs as Gr,boxShadowOnAnyView as Xr,boxShadowViewAttrs as jr}from"../../format/lib/content/box-shadow.js";import{boxRunsEdgeToEdge as Kr,drawsSiteGutter as Ur}from"../../format/lib/content/site-gutter.js";import{boxShapeClass as zr,boxShapeClasses as Yr,boxShapeStyle as Jr}from"../../format/lib/content/box-shape.js";import{boxAngleStyle as Zr}from"../../format/lib/content/box-angle.js";import{BOX_JUMP_ATTR as qr,BOX_LINK_ATTR as Ms,BOX_LINK_CLASS as Ws,BOX_LINKED_CLASS as Qr,boxJumpBlocksClass as el,boxJumpCss as ol,boxJumpSlug as sl,boxLinkOf as nl,siteLinkDraws as tl}from"../../format/lib/content/box-link.js";import{SiteLink as rl}from"../lib/site-runtime.js";import{sectionBorderStyle as Gs}from"../../format/lib/content/borders.js";import{finiteNumber as ve}from"../../format/lib/finite-number.js";import{padDefaultIn as N,padSideValue as Re,sectionPadAttrs as ll}from"../lib/content/section-padding.js";import{SECTION_FILL_CLASS as Oe}from"../../format/lib/content/section-min-height.js";import{ON_MEDIA_INK_STYLE as il,rowFillInkStyle as cl}from"../../format/lib/content/ink.js";import{useThemeLightInk as al}from"./ThemeLightInkContext.js";import{sizedBackground as ro}from"../../format/lib/sized-image.js";import{BOX_REVEAL_CLASS as dl,BOX_REVEAL_CSS as ul,BOX_REVEAL_SHEET as ml,PHOTO_HOST_ATTR as fl,resolveImageTreatment as hl}from"../../format/lib/content/image-treatment.js";import Cl,{HoverArrowsSlot as bl,HoverMediaArrows as Sl}from"./HoverMediaLayer.js";import{HOVER_ARROWS_HOST_ATTR as wl,HOVER_ARROWS_HOST_CLASS as pl,HOVER_LAYER_GROUND as xl,cardRowHoverMedia as _l,hoverLayerName as vl}from"../../format/lib/content/hover-media.js";import{BOX_HIGHLIGHT_CLASS as Rl,BOX_HIGHLIGHT_OVER_ROW_INK_CLASS as Ol,BOX_SHOW_ON_CARD_HOVER as Pl}from"../../format/lib/animation/hover.js";import{BoxRail as Al,BoxRailStop as Ll,RAIL_STOPS_CLASS as $l,useTimelineRail as yl}from"./TimelineRail.js";import{SHARED_PLAIN_ATTR as Nl,sharedColumnsClasses as El,sharedColumnsCss as kl,sharedRowsClasses as Il,sharedRowsCss as Bl}from"../lib/content/box-shared-columns.js";import Xs from"./PhotoHoverSheet.js";import{PICTURE_FRAME_ONLY as gl,PictureHoverMoveSheet as Tl,PictureHoverZoom as Fl,pictureHoverMoveOf as Hl}from"./PictureHoverMove.js";import{BOX_DESKTOP_LINE as Dl,stackGutterClass as Vl,stackLineCss as Ml,stackOuterClass as Wl,stackRowClass as Gl,storedStackLine as lo}from"../lib/content/box-stack-line.js";import{partAttr as io}from"../../format/lib/content/part-names.js";const co={"--sf-site-gutter":"0px"},Xl={overflowX:"clip",overflowY:"visible"},jl={stretchedRow:!1,fillingColumn:!1,columnsRow:!1},js={desktop:!1,phone:!1},Ks="bg-cover bg-center bg-[image:var(--sf-box-bg)] max-view-wide:bg-[image:var(--sf-box-bg-p)]",ao=u=>u==null||u==="",uo=u=>!ao(u)&&Number(u)===0;function Kl({children:u}){return e(A,{children:u(pt())})}function Ul({direction:u,label:Us,tabShape:zs,gap:mo,gapPhone:Ys,gapTablet:Pe,justify:z,align:E,wrap:ae,share:Js,sharePhone:F,shareTablet:H,wrapPhone:Zs,orderPhone:qs,phoneRow:C,columns:m,columnsTablet:D,separator:f,stackBelow:de,blockSpacing:fo,bgImage:Qs,bgImagePhone:en,rowImage:on,hoverShow:sn,pictureHover:V,darken:Ae,darkenStyle:ue,darkenTablet:nn,darkenPhone:tn,darkenStyleTablet:rn,darkenStylePhone:ln,placement:cn,padV2:ho=!1,border:an,borderTablet:dn,borderPhone:un,borderUnits:Co,pad:r={},contained:Le=!0,fillHeight:_=!1,shadow:$e,shadowTablet:bo,shadowPhone:So,justifyTablet:wo,justifyPhone:mn,alignTablet:fn,alignPhone:hn,wrapTablet:po,blockSpacingTablet:Cn,blockSpacingPhone:bn,loop:b,scrollDirection:ye=$r,loopSeconds:Sn=yr,loopDelay:wn=Lr,editing:k=!1,fillColor:xo,fillColorTablet:pn,fillColorPhone:xn,fillFade:_n,swatch:vn,line:v,upcoming:Rn,link:On,rowLink:_o,highlight:Pn,boxShape:Ne,boxShapePhone:vo,boxShapeTablet:Ro,angle:An,jumpHighlight:Ln,anchor:$n,sharedSides:yn=js,sharedRows:Nn=!1,boxId:M,slotCount:En,mirrorCards:Oo,content:c,rowTitle:Ee,startsOpen:kn,rowStyle:In,sideSpace:Bn}){const n=Xt(),I=Fr({[x]:on},n!==null)[x],Po=Vs({[x]:I}),d=Po?js:yn,gn=Po?!1:Nn,Ao=Hr({[x]:I},n?.row),S=Ao??Qs,ke=Ao===null?en:void 0,Lo=wt(Is),[$o,Tn]=xt(null),Fn=Jt(),yo=Qt()&&!(Fn&&n!==null),R=Zt(),h=rr({inCopy:n!==null,nestedCopy:n?.nested===!0,underBox:yo}),Ie=sn===Pl&&n!==null&&!h&&!(k&&n.previewHover===!0),No=no(an,n,h),Eo=no(dn,n,h),ko=no(un,n,h),Io=n===null&&!yo&&R?.ids&&M?R.ids.indexOf(M):-1,me=Io>=0&&R&&M?Yt(R,M,Io):-1,w=me>=0?R?.hand??null:h&&R?.copies===!0?R.hand:null,o=w?.row?"row":u,a=w?.row?w.row.share:Js,Hn=w?.row?w.row.phoneReverse?[...c.blockIds??[]].reverse():void 0:qs,fe=gn&&!w?.row,W=k?"":_o&&n?Kt(n.row,_o)??"":nl(On),O=_?"":Yr(Ne,vo,Ro),Dn=!_&&zr(Ne)!=="",B=sl(Ln,$n),Be=Dr({swatch:vn},n?.row),Y=Be??Ir(xo),g=Be?{className:"",style:{}}:gr(xo,pn,xn),Vn=al(),Bo=cl(Be,Vn??void 0),Mn=_e(S)||_e(ke),Wn=(Y||g.className)&&!Mn?Br(_n):null,go=Y||g.className?{...Y?{backgroundColor:Y}:{},...g.style,...Wn,...Bo}:void 0,To=yl(),J=v===!0&&o!=="tabs"&&o!=="accordion",t=Vs({bgImage:S,[x]:I}),Fo=Zr(An),Ho=t?void 0:go,he=t?null:Pn??null,Do=_?null:Jr(Ne,vo,Ro),Gn=Fo||he||Do?{...Ho,...Fo,...he,...Do}:Ho,Ce=Gt(),Xn=Ft(),jn=Pt(),Vo=Rt(),Mo=vt(),Kn=Ot(),l=o==="accordion",ge=Nt(In),Z=l&&ge==="numbered",Te=l&&ge==="chevron",Fe=Bt(),Wo=It(),G=Ar(o,f),i=b==="scroll"&&o!=="tabs"&&!l,Un=qt(),be=h||me>=0&&w!==null,Go=w?w.mirror:Oo,zn=me>=0?me:n?.index,q=h&&jt(n?.ownerType),Xo=gs({direction:o,separator:f,loop:b,line:v,bgImage:S,[x]:I,columns:m,columnsTablet:D,share:a,wrap:ae},be,d.desktop)&&or(Go,zn),Yn=gs({direction:o,separator:f,loop:b,line:v,bgImage:S,[x]:I,columns:m,columnsTablet:D,share:a,wrap:ae},be,d.desktop)&&sr(Go)!==null,X=br({direction:o,separator:f,loop:b,line:v,columns:m}),T=Sr({direction:o,separator:f,loop:b,line:v,columnsTablet:D}),Q=wr({direction:o,separator:f,loop:b,line:v,columns:m,columnsTablet:D,share:a,shareTablet:H}),ee=cr(Bn)===ir,He=lr(ee),jo=J&&lo(de)===Dl,j=o==="row"&&!t&&!G&&!i&&(!J||jo)&&T===""&&Q===""?lo(de):void 0,K=j??(o==="column"&&!t?lo(de):void 0),Jn=Tt(),Se=El(d,c.blockCount??0,j),Zn=(Se&&(!n||n.index===0)?kl(d,c.blockCount??0,j):"")+(fe&&(!n||n.index===0)?Bl(fe,c.blockCount??0):""),Ko=Il(fe,c.blockCount??0),Uo=T!==""?Number(D)>=2:Q===""||$(H)!=="",zo=T!==""||Q!=="",De=o==="row"&&!G&&!i&&v!==!0,Ve=De&&!d.phone&&!d.desktop?Et(kt(Hn,c.blockIds??[]),{editing:k}):void 0,Yo=Ve!==void 0&&!k,qn=X!==""?Number(m)>=2:$(a)!=="",Jo=!t&&!l&&!Yn&&!d.desktop&&!d.phone,we=Jo&&!i?fr(z,wo,mn):"",Me=t||be?"":nr(Un,o,i?void 0:z,E,we?wo:void 0),Qn=/view-wide:max-view-desktop:justify-/.test(Me)?we.split(" ").filter(s=>!s.startsWith("view-wide:max-view-desktop:justify-")).join(" "):we,et=Jo&&o==="row"?dr(E,fn,hn):"",Zo=Wo&&o==="column"&&!t&&!i&&!l,We=typeof z=="string"&&z!=="start"||we!=="",qo=Zo&&We&&$(a)!=="",Qo=Zo&&!We&&$(a)!==""&&(c.blockCount??0)===1,ot=!i&&!l&&X===""&&T===""&&!d.desktop?hr(ae,po):"",es=[l||qo?"":$(a),o==="row"?Cr(a):"",X,T,Q,ur(l?"gap":fo),Rr(o,f),l&&!Z&&!Te?"border-t border-line":"",Qn,et,ot,l?"":mr(fo,Cn,bn),l?Fs(m,C,Z||Te):"",Z?Lt:""].filter(Boolean).join(" "),st=es?` ${es}`:"",os=["flex",o==="row"?G||i?"flex-row":`flex-row ${ce(C,F,Zs,po)}`:"flex-col",_r(i||l?!1:ae),t?Tr(cn??"center",o):ar(i||l?void 0:z,l?void 0:E)+(Me?` ${Me}`:"")].join(" ")+st,oe=_||t||O||Fe?` ${Oe}`:"",Ge=Dn?` ${O}`:O?`${oe} ${O}`:oe,ss=Wo&&o==="column"&&!t&&!i&&$(a)===""&&We||qo,ns=oe||(ss||Qo?` ${Oe}`:""),Xe=W?` ${Qr}`:"",je=t||Ce||ho?"":" py-6",nt=j===void 0?"":` ${Gl(j)}`,ts=K===void 0||ee?"":` ${Vl(K)}`,Ke=K===void 0?"":` ${Wl(K)}`,tt=`${to}${je} ${He}${Ge}${Xe}${ts}${Ke}`,rt=Ce?`${Ge}${Xe}${Ke}`.trim():`w-full${je}${Ge}${Xe}${Ke}`,se=(Z||Te)&&Fs(m,C)===""?Ts("Flex",0,"block"):Ts("Flex",mo,o==="row"?"inline":"block",Ys,G||i?void 0:Pe),rs=xr(a,H,o==="row"?c.blockCount??0:0),ls=G?{...se.style,...Pr(o,f)}:se.style,lt=rs?{...ls,...rs}:ls,Ue=(s="")=>e(c,{className:`${os}${Xo?` ${tr}`:""}${se.className}${ns}${nt}${s?` ${s}`:""}${J?` ${$l}`:""}${B?` ${el(B)}`:""}${Se}${Ko}`,style:lt,minEmptyHeight:120,...Ve?{cell:Ve}:null}),is=Nr(ye)?"":Or(o,f),cs=i?e(Er,{direction:ye,seconds:Sn,delay:wn,editing:k,copy:s=>Ue(s&&is?`${s} ${is}`:s)}):Z?L(A,{children:[e("style",{children:$t}),Ue()]}):Ue(),ze=o==="tabs"?e(_t,{className:`${os}${se.className}${Fe&&!_&&!t&&!O?"":oe}`,style:se.style,shape:zs,children:cs}):cs,Ye=l?e(so.Provider,{value:"accordion",children:e(oo.Provider,{value:ge,children:ze})}):Vo?e(so.Provider,{value:!1,children:e(oo.Provider,{value:"plain",children:ze})}):ze,as=o==="row"&&!t&&(E===void 0||E==="stretch"),it={stretchedRow:as,fillingColumn:o==="column"&&(Fe||ss),columnsRow:X!==""||T!==""||Se!==""||Ko!==""||o==="row"&&(Array.isArray(a)||Array.isArray(H))||Yo,...Yo?{phoneCells:!0}:null,...as&&De&&(c.blockCount??0)>=2&&qn||Qo?{picturesFillRow:!0}:null,...zo&&!Uo?{fillFrom:"desktop"}:null,...pr(C,F)&&(!zo||Uo)?{phoneRowFills:!0}:null,...De&&Hs(C,F)?{phoneRowFits:!0}:null,...i?{loops:!0}:null,...M?{id:M}:null},ds=n===null?er({direction:o,loop:b,bgImage:S,[x]:I,columns:m,mirrorCards:Oo},!1):null,us=ds?e(Bs.Provider,{value:{hand:ds,ids:c.blockIds??[],boxes:[]},children:Ye}):R?e(Bs.Provider,{value:null,children:Ye}):Ye,ms=e(Es.Provider,{value:it,children:e(Ns.Provider,{value:!1,children:be?e(zt.Provider,{value:Xo,children:e(Ut.Provider,{value:!h,children:us})}):us})}),ct=Ee?.blockCount??0,fs=Vo==="accordion"&&!!Ee&&(k||ct>0)?e(At,{startsOpen:kn===!0||Kn&&h&&n?.index===0,editing:k,numbered:Mo==="numbered",chevron:Mo==="chevron",title:e(Es.Provider,{value:jl,children:e(Ns.Provider,{value:!1,children:e(so.Provider,{value:!1,children:e(oo.Provider,{value:"plain",children:e(Ee,{className:`min-w-0 flex-1 ${vr}`,minEmptyHeight:24})})})})}),children:ms}):ms,Je=J?e(Al,{row:o==="row",stops:c.blockCount??0,desktopLine:j!==void 0&&jo,children:fs}):fs,at=Us?.trim()||(jn?"":void 0),dt={values:r,frame:je?24:0},ut=s=>To?e(Ll,{on:To,future:Rn===!0,children:s}):s,mt=s=>tl(W)?e(rl,{href:W,newTab:"auto",className:Ws,"aria-labelledby":s,[Ms]:""}):e("a",{href:W,className:Ws,"aria-labelledby":s,[Ms]:""}),hs=(B?ol(B):"")+Zn+(K===void 0||n&&n.index!==0?"":Ml(K,{gutter:!ee})),Cs=hs?e("style",{dangerouslySetInnerHTML:{__html:hs}}):null,ne=Kr({loop:b,direction:o,scrollDirection:ye,bgImage:S,[x]:I}),ft=d.desktop&&Se!==""&&!Y&&!g.className&&!Gs(No,ko,Eo,Co)&&!Xr($e,bo,So)&&!W&&!O&&!_&&!B&&!Ur(Le&&!ne,Jn)&&uo(mo)&&(ao(Pe)||uo(Pe))&&ho&&Object.values(r).every(s=>ao(s)||uo(s)),ht=s=>({...yt,...ft?{[Nl]:""}:null,...t?null:{...Gr($e),...jr($e,bo,So)},...B?{[qr]:B}:null,...s?{id:s}:null}),bs=X!==""?Number(m):0,Ct=ce(C,F)===ce(void 0),bt=(o==="column"||o==="row"&&!G&&!i&&(bs===1&&Ct||bs===0&&c.blockCount===1))&&!t&&!J&&!Ce,Ss=t&&Xn&&!Ce,pe=!t&&n!==null?Ds(Ae,ue):null,ws=Ie||pe?L(A,{children:[Ie?e(Xs,{sheet:ul,name:ml}):null,pe?e("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 -z-10 rounded-[inherit]",style:pe}):null]}):null,ps=[Ie?dl:"",pe?"relative isolate":""].filter(Boolean).join(" "),xs=s=>ws?L(A,{children:[ws,s]}):s,_s=(s,P)=>ut(e(gt,{contained:Le&&!ne,style:ne?co:void 0,framedClass:tt,fillClass:rt,columnClass:`${to} ${He}${ns}${ts}`,tabLabel:at,pad:t?void 0:dt,border:Gs(No,ko,Eo,Co),outerAttrs:ht(P),box:!0,edge:bt,outerStyle:Gn,outerClass:t?ps||void 0:[g.className,he?Rl:"",he&&Bo?Ol:"",ps].filter(Boolean).join(" ")||void 0,bleed:Ss,siteSide:ee,part:io("box"),children:Cs||P?L(A,{children:[Cs,P?mt(P):null,ne?e(ks,{children:s}):s]}):ne?e(ks,{children:s}):s})),Ze=s=>W?e(Kl,{children:P=>_s(xs(s),P)}):_s(xs(s)),vs=s=>Lo.bound?e(Vt,{children:s}):s;if(!t){const s=E===void 0||E==="stretch",P=($(a)!==""||X!==""||T!=="")&&!Hs(C,F)&&!(Q!==""&&$(H)==="")&&(s||ce(C)!==ce(void 0));if(!(o==="row"?P:o==="column"&&s))return Ze(vs(Je));const ys=Mt({direction:o,separator:f,loop:b,line:v,share:a,shareTablet:H,sharePhone:F,phoneRow:C,columns:m,columnsTablet:D,stackBelow:de,shared:d.desktop||d.phone||fe,count:En}),St={hasWidth:!0,...ys?{bound:Wt(ys,Lo.bound)}:null};return Ze(e(Is.Provider,{value:St,children:Je}))}const te=_e(S),re=te?Ds(Ae,ue):null,xe=te?Vr({darken:Ae,darkenStyle:ue,darkenTablet:nn,darkenStyleTablet:rn,darkenPhone:tn,darkenStylePhone:ln}):{className:"",style:{}},qe=_e(ke),Rs=te?qe?{"--sf-box-bg":ro(S??""),"--sf-box-bg-p":ro(ke??"")}:{backgroundImage:ro(S??""),backgroundSize:"cover",backgroundPosition:"center"}:{},Os=hl(void 0,void 0,V),U=Os.className?Os:null,le=te&&n&&V?.kind==="nextImage"&&V.media?_l(n,V.media):null,p=te?Hl(V,ue)??(le?gl:null):null,Ps=V?.media?.cover??"picture",Qe=le?e("div",{className:`absolute inset-0 isolate${q?" rounded-[inherit]":""}`,children:e(bl.Provider,{value:Tn,children:e(Cl,{media:le,name:vl(n?.row),cover:Ps,ground:xl[Ps],arrowsAbove:!0})})}):null,ie=U!==null||!!p?.zoom,As=ie?e("div",{"aria-hidden":!0,className:`absolute inset-0${q?" rounded-[inherit]":""}${qe?` ${Ks}`:""}${U?` ${U.className}`:""}`,style:{...Rs,...U?.style??{}}}):null,eo=ll({...r,top:ve(r.top)??N(y.desktop,r.unit,"desktop"),bottom:ve(r.bottom)??N(y.desktop,r.unit,"desktop"),topPhone:ve(r.topPhone)??N(y.phone,r.unitPhone,"mobile"),bottomPhone:ve(r.bottomPhone)??N(y.phone,r.unitPhone,"mobile"),left:Re(r.left)??N(y.side,r.unit,"desktop"),right:Re(r.right)??N(y.side,r.unit,"desktop"),leftPhone:Re(r.leftPhone)??N(y.sidePhone,r.unitPhone,"mobile"),rightPhone:Re(r.rightPhone)??N(y.sidePhone,r.unitPhone,"mobile"),sideSpace:ee?"site":"box"}),Ls=e("div",{className:`relative z-[1] ${kr} ${eo?.className??""}${_||O?` ${Oe}`:""}`.trimEnd(),style:re?{...eo?.style,...co,...il}:{...eo?.style,...co},...io("card-content"),children:vs(Je)}),$s=Ss&&Le?e("div",{className:`${to} ${He}${_||O?` ${Oe}`:""}`,children:Ls}):Ls;return Ze(e(A,{children:L("div",{className:`relative isolate overflow-hidden ${Wr}${n!==null&&!h?` ${Mr}`:""}${oe}${qe&&!ie?` ${Ks}`:""}${g.className?` ${g.className}`:""}${p?` ${p.className}`:""}`,style:{...q?Xl:{},...go,...ie?{}:Rs,...p?p.style:{}},...U||le?{[fl]:""}:{},...io("card"),children:[e(Tl,{move:p}),ie&&L(A,{children:[e(Xs,{sheet:U?.sheet}),p?.zoom?e("div",{className:`absolute inset-0 overflow-hidden${q?" rounded-[inherit]":""}`,children:L(Fl,{move:p,className:"absolute inset-0",children:[As,Qe]})}):L(A,{children:[As,Qe]})]}),!ie&&Qe,e(Dt,{wash:re&&xe.className?{...re,...xe.style}:re,hover:p?.washHover,...q?{className:"rounded-[inherit]"}:{},...xe.className?{restClassName:xe.className}:{}}),re?e(Ht,{children:$s}):$s,le?e("div",{[wl]:"",className:pl,children:$o?e(Sl,{state:$o}):null}):null]})}))}export{Ul as default};
|
|
1
|
+
import{Fragment as A,jsx as e,jsxs as L}from"react/jsx-runtime";import{useContext as xt,useId as _t,useState as vt}from"react";import Rt from"./BoxTabs.js";import{AccordionRowStyleContext as oo,BoxTabPaneContext as so,useAccordionRowStyle as Ot,useBoxPaneKind as Pt,useFirstCopyOpens as At,useIsTabPane as Lt}from"./BoxTabPaneContext.js";import $t,{ACCORDION_COUNTER_RESET as yt}from"./BoxAccordionRow.js";import{ACCORDION_MARK_SHEET as Nt}from"./AccordionMark.js";import{EDGE_LINE_ATTRS as Et}from"../../format/lib/content/view-lines.js";import{accordionRowStyleOf as kt}from"../../format/lib/content/accordion-row-style.js";import{boxPhoneCell as It,boxPhoneOrder as Bt}from"../../format/lib/content/box-phone-place.js";import{CellFillContext as Es,InBoxContext as ks,useCellOfStretchedRow as gt,useFillsCell as Tt}from"./InBoxContext.js";import Ft,{InsideSiteColumn as Is,useInsideSiteGutter as Ht,useSectionRoot as Dt}from"./SiteGutterFrame.js";import{BoxSurfaceProvider as Vt}from"./BoxSurfaceContext.js";import Mt from"./PictureWash.js";import{BoxCellContext as Bs,NoCellBound as Wt}from"./BoxCellContext.js";import{boxCellFractions as Gt}from"../lib/content/box-cell-bound.js";import{boundOf as Xt}from"../../format/lib/content/cell-picture-sizes.js";import{useInSiteHeader as jt}from"./PhoneMenuTools.js";import{useCardRow as Kt}from"./CardRowContext.js";import{cardLineBetween as no,framesItsCards as Ut}from"../../format/lib/content/card-place.js";import{rowLinkText as zt}from"../../format/lib/content/card-template.js";import{HandedMirrorContext as Yt,MirrorContext as Jt,RowHandContext as gs,boxPlace as Zt,useHandedMirrorAbove as qt,useHandedRows as Qt,useMirroredCopy as er,useUnderCardBox as or}from"./MirrorContext.js";import{boxChildrenHand as sr,isMirroredCopy as nr,mirrorCardsActs as Ts,mirrorCardsOf as tr,mirroredBoxClass as rr,MIRROR_ROW_CLASS as lr,ownsCard as ir}from"../../format/lib/content/mirror-cards.js";import{FRAME_BASE as to,frameGutterOf as cr}from"./BlockFrame.js";import{BOX_SIDE_SPACE_SITE as ar,boxSideSpaceOf as dr}from"../../format/lib/content/box-side-space.js";import{containerGapProps as Fs}from"../../format/lib/content/container-gap.js";import{boxLayoutClasses as ur,boxAlignViewClasses as mr,boxBlockSpacingClass as fr,boxBlockSpacingViewClasses as hr,boxJustifyViewClasses as Cr,boxWrapTabletClass as br,boxFitContentClass as Sr,boxAccordionColumnsClass as Hs,boxRowColumnsClass as wr,boxRowTabletColumnsClass as pr,boxRowTabletShareClass as xr,boxPhoneCellsShareLine as _r,boxPhoneRowClasses as ce,boxPhoneRowFits as Ds,boxShareClasses as $,boxShareVars as vr,boxWrapClass as Rr,BOX_GAP_ONLY_CLASS as Or}from"../../format/lib/content/box-layout.js";import{boxSeparatorClasses as Pr,boxSeparatorSeamClass as Ar,boxSeparatorStyle as Lr,isStripBox as $r}from"../../format/lib/content/box-separator.js";import{DEFAULT_LOOP_DELAY as yr,DEFAULT_LOOP_DIRECTION as Nr,DEFAULT_LOOP_SECONDS as Er,isVerticalLoop as kr}from"../../format/lib/animation/index.js";import{LoopTrack as Ir}from"../lib/animation/LoopTrack.js";import{BOX_CARD_PAD as y,BOX_OWNS_SIDES_CLASS as Br,boxDarkenStyle as Vs,boxPaintOf as gr,boxFillFadeStyle as Tr,boxFillViews as Fr,boxPlacementClasses as Hr,boxCardProps as Dr,boxIsCard as Ms,boxRowPicture as Vr,boxSwatchFill as Mr,boxWashViews as Wr,CARD_NO_LIFT_CLASS as Gr,CARD_SHADOW_CLASS as Xr,isBackgroundBox as _e}from"../../format/lib/content/box-background.js";import{BOX_ROW_IMAGE_PROP as x}from"../../format/lib/content/box-card-rule.js";import{boxShadowAttrs as jr,boxShadowOnAnyView as Kr,boxShadowViewAttrs as Ur}from"../../format/lib/content/box-shadow.js";import{boxRunsEdgeToEdge as zr,drawsSiteGutter as Yr}from"../../format/lib/content/site-gutter.js";import{boxShapeClass as Jr,boxShapeClasses as Zr,boxShapeStyle as qr}from"../../format/lib/content/box-shape.js";import{boxAngleStyle as Qr}from"../../format/lib/content/box-angle.js";import{BOX_JUMP_ATTR as el,BOX_LINK_ATTR as Ws,BOX_LINK_CLASS as Gs,BOX_LINKED_CLASS as ol,boxJumpBlocksClass as sl,boxJumpCss as nl,boxJumpSlug as tl,boxLinkOf as rl,siteLinkDraws as ll}from"../../format/lib/content/box-link.js";import{SiteLink as il}from"../lib/site-runtime.js";import{sectionBorderStyle as Xs}from"../../format/lib/content/borders.js";import{finiteNumber as ve}from"../../format/lib/finite-number.js";import{padDefaultIn as N,padSideValue as Re,sectionPadAttrs as cl}from"../lib/content/section-padding.js";import{SECTION_FILL_CLASS as Oe}from"../../format/lib/content/section-min-height.js";import{ON_MEDIA_INK_STYLE as al,rowFillInkStyle as dl}from"../../format/lib/content/ink.js";import{useThemeLightInk as ul}from"./ThemeLightInkContext.js";import{sizedBackground as ro}from"../../format/lib/sized-image.js";import{BOX_REVEAL_CLASS as ml,BOX_REVEAL_CSS as fl,BOX_REVEAL_SHEET as hl,PHOTO_HOST_ATTR as Cl,resolveImageTreatment as bl}from"../../format/lib/content/image-treatment.js";import Sl,{HoverArrowsSlot as wl,HoverMediaArrows as pl}from"./HoverMediaLayer.js";import{HOVER_ARROWS_HOST_ATTR as xl,HOVER_ARROWS_HOST_CLASS as _l,HOVER_LAYER_GROUND as vl,cardRowHoverMedia as Rl,hoverLayerName as Ol}from"../../format/lib/content/hover-media.js";import{BOX_HIGHLIGHT_CLASS as Pl,BOX_HIGHLIGHT_OVER_ROW_INK_CLASS as Al,BOX_SHOW_ON_CARD_HOVER as Ll}from"../../format/lib/animation/hover.js";import{BoxRail as $l,BoxRailStop as yl,RAIL_STOPS_CLASS as Nl,useTimelineRail as El}from"./TimelineRail.js";import{SHARED_PLAIN_ATTR as kl,sharedColumnsClasses as Il,sharedColumnsCss as Bl,sharedRowsClasses as gl,sharedRowsCss as Tl}from"../lib/content/box-shared-columns.js";import js from"./PhotoHoverSheet.js";import{PICTURE_FRAME_ONLY as Fl,PictureHoverMoveSheet as Hl,PictureHoverZoom as Dl,pictureHoverMoveOf as Vl}from"./PictureHoverMove.js";import{BOX_DESKTOP_LINE as Ml,stackGutterClass as Wl,stackLineCss as Gl,stackOuterClass as Xl,stackRowClass as jl,storedStackLine as lo}from"../lib/content/box-stack-line.js";import{partAttr as io}from"../../format/lib/content/part-names.js";import{withSideOnce as Ks}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as Kl}from"./SideSpaceOnce.js";const co={"--sf-site-gutter":"0px"},Ul={overflowX:"clip",overflowY:"visible"},zl={stretchedRow:!1,fillingColumn:!1,columnsRow:!1},Us={desktop:!1,phone:!1},zs="bg-cover bg-center bg-[image:var(--sf-box-bg)] max-view-wide:bg-[image:var(--sf-box-bg-p)]",ao=u=>u==null||u==="",uo=u=>!ao(u)&&Number(u)===0;function Yl({children:u}){return e(A,{children:u(_t())})}function Jl({direction:u,label:Ys,tabShape:Js,gap:mo,gapPhone:Zs,gapTablet:Pe,justify:z,align:E,wrap:ae,share:qs,sharePhone:F,shareTablet:H,wrapPhone:Qs,orderPhone:en,phoneRow:C,columns:m,columnsTablet:D,separator:f,stackBelow:de,blockSpacing:fo,bgImage:on,bgImagePhone:sn,rowImage:nn,hoverShow:tn,pictureHover:V,darken:Ae,darkenStyle:ue,darkenTablet:rn,darkenPhone:ln,darkenStyleTablet:cn,darkenStylePhone:an,placement:dn,padV2:ho=!1,border:un,borderTablet:mn,borderPhone:fn,borderUnits:Co,pad:r={},contained:Le=!0,fillHeight:_=!1,shadow:$e,shadowTablet:bo,shadowPhone:So,justifyTablet:wo,justifyPhone:hn,alignTablet:Cn,alignPhone:bn,wrapTablet:po,blockSpacingTablet:Sn,blockSpacingPhone:wn,loop:b,scrollDirection:ye=Nr,loopSeconds:pn=Er,loopDelay:xn=yr,editing:k=!1,fillColor:xo,fillColorTablet:_n,fillColorPhone:vn,fillFade:Rn,swatch:On,line:v,upcoming:Pn,link:An,rowLink:_o,highlight:Ln,boxShape:Ne,boxShapePhone:vo,boxShapeTablet:Ro,angle:$n,jumpHighlight:yn,anchor:Nn,sharedSides:En=Us,sharedRows:kn=!1,boxId:M,slotCount:In,mirrorCards:Oo,content:c,rowTitle:Ee,startsOpen:Bn,rowStyle:gn,sideSpace:Tn}){const n=Kt(),I=Dr({[x]:nn},n!==null)[x],Po=Ms({[x]:I}),d=Po?Us:En,Fn=Po?!1:kn,Ao=Vr({[x]:I},n?.row),S=Ao??on,ke=Ao===null?sn:void 0,Lo=xt(Bs),[$o,Hn]=vt(null),Dn=qt(),yo=or()&&!(Dn&&n!==null),R=Qt(),h=ir({inCopy:n!==null,nestedCopy:n?.nested===!0,underBox:yo}),Ie=tn===Ll&&n!==null&&!h&&!(k&&n.previewHover===!0),No=no(un,n,h),Eo=no(mn,n,h),ko=no(fn,n,h),Io=n===null&&!yo&&R?.ids&&M?R.ids.indexOf(M):-1,me=Io>=0&&R&&M?Zt(R,M,Io):-1,w=me>=0?R?.hand??null:h&&R?.copies===!0?R.hand:null,o=w?.row?"row":u,a=w?.row?w.row.share:qs,Vn=w?.row?w.row.phoneReverse?[...c.blockIds??[]].reverse():void 0:en,fe=Fn&&!w?.row,W=k?"":_o&&n?zt(n.row,_o)??"":rl(An),O=_?"":Zr(Ne,vo,Ro),Mn=!_&&Jr(Ne)!=="",B=tl(yn,Nn),Be=Mr({swatch:On},n?.row),Y=Be??gr(xo),g=Be?{className:"",style:{}}:Fr(xo,_n,vn),Wn=ul(),Bo=dl(Be,Wn??void 0),Gn=_e(S)||_e(ke),Xn=(Y||g.className)&&!Gn?Tr(Rn):null,go=Y||g.className?{...Y?{backgroundColor:Y}:{},...g.style,...Xn,...Bo}:void 0,To=El(),J=v===!0&&o!=="tabs"&&o!=="accordion",t=Ms({bgImage:S,[x]:I}),Fo=Qr($n),Ho=t?void 0:go,he=t?null:Ln??null,Do=_?null:qr(Ne,vo,Ro),jn=Fo||he||Do?{...Ho,...Fo,...he,...Do}:Ho,Ce=jt(),Kn=Dt(),Un=Lt(),Vo=Pt(),Mo=Ot(),zn=At(),l=o==="accordion",ge=kt(gn),Z=l&&ge==="numbered",Te=l&&ge==="chevron",Fe=Tt(),Wo=gt(),G=$r(o,f),i=b==="scroll"&&o!=="tabs"&&!l,Yn=er(),be=h||me>=0&&w!==null,Go=w?w.mirror:Oo,Jn=me>=0?me:n?.index,q=h&&Ut(n?.ownerType),Xo=Ts({direction:o,separator:f,loop:b,line:v,bgImage:S,[x]:I,columns:m,columnsTablet:D,share:a,wrap:ae},be,d.desktop)&&nr(Go,Jn),Zn=Ts({direction:o,separator:f,loop:b,line:v,bgImage:S,[x]:I,columns:m,columnsTablet:D,share:a,wrap:ae},be,d.desktop)&&tr(Go)!==null,X=wr({direction:o,separator:f,loop:b,line:v,columns:m}),T=pr({direction:o,separator:f,loop:b,line:v,columnsTablet:D}),Q=xr({direction:o,separator:f,loop:b,line:v,columns:m,columnsTablet:D,share:a,shareTablet:H}),ee=dr(Tn)===ar,He=cr(ee),jo=Kl(),Ko=J&&lo(de)===Ml,j=o==="row"&&!t&&!G&&!i&&(!J||Ko)&&T===""&&Q===""?lo(de):void 0,K=j??(o==="column"&&!t?lo(de):void 0),qn=Ht(),Se=Il(d,c.blockCount??0,j),Qn=(Se&&(!n||n.index===0)?Bl(d,c.blockCount??0,j):"")+(fe&&(!n||n.index===0)?Tl(fe,c.blockCount??0):""),Uo=gl(fe,c.blockCount??0),zo=T!==""?Number(D)>=2:Q===""||$(H)!=="",Yo=T!==""||Q!=="",De=o==="row"&&!G&&!i&&v!==!0,Ve=De&&!d.phone&&!d.desktop?It(Bt(Vn,c.blockIds??[]),{editing:k}):void 0,Jo=Ve!==void 0&&!k,et=X!==""?Number(m)>=2:$(a)!=="",Zo=!t&&!l&&!Zn&&!d.desktop&&!d.phone,we=Zo&&!i?Cr(z,wo,hn):"",Me=t||be?"":rr(Yn,o,i?void 0:z,E,we?wo:void 0),ot=/view-wide:max-view-desktop:justify-/.test(Me)?we.split(" ").filter(s=>!s.startsWith("view-wide:max-view-desktop:justify-")).join(" "):we,st=Zo&&o==="row"?mr(E,Cn,bn):"",qo=Wo&&o==="column"&&!t&&!i&&!l,We=typeof z=="string"&&z!=="start"||we!=="",Qo=qo&&We&&$(a)!=="",es=qo&&!We&&$(a)!==""&&(c.blockCount??0)===1,nt=!i&&!l&&X===""&&T===""&&!d.desktop?br(ae,po):"",os=[l||Qo?"":$(a),o==="row"?Sr(a):"",X,T,Q,fr(l?"gap":fo),Pr(o,f),l&&!Z&&!Te?"border-t border-line":"",ot,st,nt,l?"":hr(fo,Sn,wn),l?Hs(m,C,Z||Te):"",Z?yt:""].filter(Boolean).join(" "),tt=os?` ${os}`:"",ss=["flex",o==="row"?G||i?"flex-row":`flex-row ${ce(C,F,Qs,po)}`:"flex-col",Rr(i||l?!1:ae),t?Hr(dn??"center",o):ur(i||l?void 0:z,l?void 0:E)+(Me?` ${Me}`:"")].join(" ")+tt,oe=_||t||O||Fe?` ${Oe}`:"",Ge=Mn?` ${O}`:O?`${oe} ${O}`:oe,ns=Wo&&o==="column"&&!t&&!i&&$(a)===""&&We||Qo,ts=oe||(ns||es?` ${Oe}`:""),Xe=W?` ${ol}`:"",je=t||Ce||ho?"":" py-6",rt=j===void 0?"":` ${jl(j)}`,rs=K===void 0||ee?"":` ${Wl(K)}`,Ke=K===void 0?"":` ${Xl(K)}`,lt=`${to}${je} ${He}${Ge}${Xe}${rs}${Ke}`,it=Ce?`${Ge}${Xe}${Ke}`.trim():`w-full${je}${Ge}${Xe}${Ke}`,se=(Z||Te)&&Hs(m,C)===""?Fs("Flex",0,"block"):Fs("Flex",mo,o==="row"?"inline":"block",Zs,G||i?void 0:Pe),ls=vr(a,H,o==="row"?c.blockCount??0:0),is=G?{...se.style,...Lr(o,f)}:se.style,ct=ls?{...is,...ls}:is,Ue=(s="")=>e(c,{className:`${ss}${Xo?` ${lr}`:""}${se.className}${ts}${rt}${s?` ${s}`:""}${J?` ${Nl}`:""}${B?` ${sl(B)}`:""}${Se}${Uo}`,style:ct,minEmptyHeight:120,...Ve?{cell:Ve}:null}),cs=kr(ye)?"":Ar(o,f),as=i?e(Ir,{direction:ye,seconds:pn,delay:xn,editing:k,copy:s=>Ue(s&&cs?`${s} ${cs}`:s)}):Z?L(A,{children:[e("style",{children:Nt}),Ue()]}):Ue(),ze=o==="tabs"?e(Rt,{className:`${ss}${se.className}${Fe&&!_&&!t&&!O?"":oe}`,style:se.style,shape:Js,children:as}):as,Ye=l?e(so.Provider,{value:"accordion",children:e(oo.Provider,{value:ge,children:ze})}):Vo?e(so.Provider,{value:!1,children:e(oo.Provider,{value:"plain",children:ze})}):ze,ds=o==="row"&&!t&&(E===void 0||E==="stretch"),at={stretchedRow:ds,fillingColumn:o==="column"&&(Fe||ns),columnsRow:X!==""||T!==""||Se!==""||Uo!==""||o==="row"&&(Array.isArray(a)||Array.isArray(H))||Jo,...Jo?{phoneCells:!0}:null,...ds&&De&&(c.blockCount??0)>=2&&et||es?{picturesFillRow:!0}:null,...Yo&&!zo?{fillFrom:"desktop"}:null,..._r(C,F)&&(!Yo||zo)?{phoneRowFills:!0}:null,...De&&Ds(C,F)?{phoneRowFits:!0}:null,...i?{loops:!0}:null,...M?{id:M}:null},us=n===null?sr({direction:o,loop:b,bgImage:S,[x]:I,columns:m,mirrorCards:Oo},!1):null,ms=us?e(gs.Provider,{value:{hand:us,ids:c.blockIds??[],boxes:[]},children:Ye}):R?e(gs.Provider,{value:null,children:Ye}):Ye,fs=e(ks.Provider,{value:at,children:e(Es.Provider,{value:!1,children:be?e(Jt.Provider,{value:Xo,children:e(Yt.Provider,{value:!h,children:ms})}):ms})}),dt=Ee?.blockCount??0,hs=Vo==="accordion"&&!!Ee&&(k||dt>0)?e($t,{startsOpen:Bn===!0||zn&&h&&n?.index===0,editing:k,numbered:Mo==="numbered",chevron:Mo==="chevron",title:e(ks.Provider,{value:zl,children:e(Es.Provider,{value:!1,children:e(so.Provider,{value:!1,children:e(oo.Provider,{value:"plain",children:e(Ee,{className:`min-w-0 flex-1 ${Or}`,minEmptyHeight:24})})})})}),children:fs}):fs,Je=J?e($l,{row:o==="row",stops:c.blockCount??0,desktopLine:j!==void 0&&Ko,children:hs}):hs,ut=Ys?.trim()||(Un?"":void 0),mt={values:r,frame:je?24:0},ft=s=>To?e(yl,{on:To,future:Pn===!0,children:s}):s,ht=s=>ll(W)?e(il,{href:W,newTab:"auto",className:Gs,"aria-labelledby":s,[Ws]:""}):e("a",{href:W,className:Gs,"aria-labelledby":s,[Ws]:""}),Cs=(B?nl(B):"")+Qn+(K===void 0||n&&n.index!==0?"":Gl(K,{gutter:!ee})),bs=Cs?e("style",{dangerouslySetInnerHTML:{__html:Cs}}):null,ne=zr({loop:b,direction:o,scrollDirection:ye,bgImage:S,[x]:I}),Ct=d.desktop&&Se!==""&&!Y&&!g.className&&!Xs(No,ko,Eo,Co)&&!Kr($e,bo,So)&&!W&&!O&&!_&&!B&&!Yr(Le&&!ne,qn)&&uo(mo)&&(ao(Pe)||uo(Pe))&&ho&&Object.values(r).every(s=>ao(s)||uo(s)),bt=s=>({...Et,...Ct?{[kl]:""}:null,...t?null:{...jr($e),...Ur($e,bo,So)},...B?{[el]:B}:null,...s?{id:s}:null}),Ss=X!==""?Number(m):0,St=ce(C,F)===ce(void 0),wt=(o==="column"||o==="row"&&!G&&!i&&(Ss===1&&St||Ss===0&&c.blockCount===1))&&!t&&!J&&!Ce,ws=t&&Kn&&!Ce,pe=!t&&n!==null?Vs(Ae,ue):null,ps=Ie||pe?L(A,{children:[Ie?e(js,{sheet:fl,name:hl}):null,pe?e("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 -z-10 rounded-[inherit]",style:pe}):null]}):null,xs=[Ie?ml:"",pe?"relative isolate":""].filter(Boolean).join(" "),_s=s=>ps?L(A,{children:[ps,s]}):s,vs=(s,P)=>ft(e(Ft,{contained:Le&&!ne,style:ne?co:void 0,framedClass:lt,fillClass:it,columnClass:`${to} ${He}${ts}${rs}`,tabLabel:ut,pad:t?void 0:mt,border:Xs(No,ko,Eo,Co),outerAttrs:bt(P),box:!0,edge:wt,outerStyle:jn,outerClass:t?xs||void 0:[g.className,he?Pl:"",he&&Bo?Al:"",xs].filter(Boolean).join(" ")||void 0,bleed:ws,siteSide:ee,part:io("box"),children:bs||P?L(A,{children:[bs,P?ht(P):null,ne?e(Is,{children:s}):s]}):ne?e(Is,{children:s}):s})),Ze=s=>W?e(Yl,{children:P=>vs(_s(s),P)}):vs(_s(s)),Rs=s=>Lo.bound?e(Wt,{children:s}):s;if(!t){const s=E===void 0||E==="stretch",P=($(a)!==""||X!==""||T!=="")&&!Ds(C,F)&&!(Q!==""&&$(H)==="")&&(s||ce(C)!==ce(void 0));if(!(o==="row"?P:o==="column"&&s))return Ze(Rs(Je));const Ns=Gt({direction:o,separator:f,loop:b,line:v,share:a,shareTablet:H,sharePhone:F,phoneRow:C,columns:m,columnsTablet:D,stackBelow:de,shared:d.desktop||d.phone||fe,count:In}),pt={hasWidth:!0,...Ns?{bound:Xt(Ns,Lo.bound)}:null};return Ze(e(Bs.Provider,{value:pt,children:Je}))}const te=_e(S),re=te?Vs(Ae,ue):null,xe=te?Wr({darken:Ae,darkenStyle:ue,darkenTablet:rn,darkenStyleTablet:cn,darkenPhone:ln,darkenStylePhone:an}):{className:"",style:{}},qe=_e(ke),Os=te?qe?{"--sf-box-bg":ro(S??""),"--sf-box-bg-p":ro(ke??"")}:{backgroundImage:ro(S??""),backgroundSize:"cover",backgroundPosition:"center"}:{},Ps=bl(void 0,void 0,V),U=Ps.className?Ps:null,le=te&&n&&V?.kind==="nextImage"&&V.media?Rl(n,V.media):null,p=te?Vl(V,ue)??(le?Fl:null):null,As=V?.media?.cover??"picture",Qe=le?e("div",{className:`absolute inset-0 isolate${q?" rounded-[inherit]":""}`,children:e(wl.Provider,{value:Hn,children:e(Sl,{media:le,name:Ol(n?.row),cover:As,ground:vl[As],arrowsAbove:!0})})}):null,ie=U!==null||!!p?.zoom,Ls=ie?e("div",{"aria-hidden":!0,className:`absolute inset-0${q?" rounded-[inherit]":""}${qe?` ${zs}`:""}${U?` ${U.className}`:""}`,style:{...Os,...U?.style??{}}}):null,eo=cl({...r,top:ve(r.top)??N(y.desktop,r.unit,"desktop"),bottom:ve(r.bottom)??N(y.desktop,r.unit,"desktop"),topPhone:ve(r.topPhone)??N(y.phone,r.unitPhone,"mobile"),bottomPhone:ve(r.bottomPhone)??N(y.phone,r.unitPhone,"mobile"),left:Re(r.left)??N(y.side,r.unit,"desktop"),right:Re(r.right)??N(y.side,r.unit,"desktop"),leftPhone:Re(r.leftPhone)??N(y.sidePhone,r.unitPhone,"mobile"),rightPhone:Re(r.rightPhone)??N(y.sidePhone,r.unitPhone,"mobile"),sideSpace:ee?"site":"box"}),$s=e("div",{className:`relative z-[1] ${Br} ${Ks(eo?.className??"",jo)}${_||O?` ${Oe}`:""}`.trimEnd(),style:re?{...eo?.style,...co,...al}:{...eo?.style,...co},...io("card-content"),children:Rs(Je)}),ys=ws&&Le?e("div",{className:Ks(`${to} ${He}${_||O?` ${Oe}`:""}`,jo),children:$s}):$s;return Ze(e(A,{children:L("div",{className:`relative isolate overflow-hidden ${Xr}${n!==null&&!h?` ${Gr}`:""}${oe}${qe&&!ie?` ${zs}`:""}${g.className?` ${g.className}`:""}${p?` ${p.className}`:""}`,style:{...q?Ul:{},...go,...ie?{}:Os,...p?p.style:{}},...U||le?{[Cl]:""}:{},...io("card"),children:[e(Hl,{move:p}),ie&&L(A,{children:[e(js,{sheet:U?.sheet}),p?.zoom?e("div",{className:`absolute inset-0 overflow-hidden${q?" rounded-[inherit]":""}`,children:L(Dl,{move:p,className:"absolute inset-0",children:[Ls,Qe]})}):L(A,{children:[Ls,Qe]})]}),!ie&&Qe,e(Mt,{wash:re&&xe.className?{...re,...xe.style}:re,hover:p?.washHover,...q?{className:"rounded-[inherit]"}:{},...xe.className?{restClassName:xe.className}:{}}),re?e(Vt,{children:ys}):ys,le?e("div",{[xl]:"",className:_l,children:$o?e(pl,{state:$o}):null}):null]})}))}export{Jl as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as t,jsxs as m,Fragment as
|
|
1
|
+
"use client";import{jsx as t,jsxs as m,Fragment as ne}from"react/jsx-runtime";import{bandPadAttrs as re}from"../lib/content/section-padding.js";import{innerPaddingFallback as ae}from"../lib/document/passes/section-padding.js";import{HideTaker as ie}from"./ViewHideRoot.js";import{isWebAddress as oe}from"../../format/lib/content/box-link.js";import{SiteLink as se}from"../lib/site-runtime.js";import{useEffect as B,useMemo as ce,useState as G}from"react";import{CardTemplateRows as K}from"./CardRowContext.js";import{FOOTPRINT_LIST_COLUMNS_DEFAULT as me,FOOTPRINT_MAP_HEIGHT_FULL as de,FOOTPRINT_SHOWS_DEFAULT as pe,footprintCardRow as z,footprintListColsClass as fe,footprintListPosition as ue,footprintPins as be,footprintSearchText as he}from"../../format/lib/content/footprint.js";import{LIST_KEY_ATTR as xe,LIST_ROW_ATTR as ge,LIST_TEXT_ATTR as ye}from"../../format/lib/content/list-query.js";import{bucketByGroup as ve}from"../../format/lib/locations-grid.js";import Te from"./EditorialSectionHead.js";import Se from"./SectionHeader.js";import{LocationGroupHeader as we}from"./LocationGroupHeader.js";import{renderGold as Ne,renderHeadline as D}from"./goldPhrases.js";import ke from"./PartStyledText.js";import{say as U}from"../../format/lib/editor-words.js";import Le from"./DealerFinder.js";import _e from"./ListSearchBox.js";import $e,{sideMapClass as Fe}from"./SideListLayout.js";import Oe from"./SiteMap.js";import{InsideSiteColumn as W}from"./SiteGutterFrame.js";import{withSideOnce as He}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as Ae}from"./SideSpaceOnce.js";const r={bodySmall:"text-[length:var(--size-body,10px)]",bodyLarge:"text-[length:var(--size-body,18px)]",labelSmall:"text-[length:var(--size-label,11px)]",labelLarge:"text-[length:var(--size-label,12px)]"},q=`absolute bottom-5 left-6 font-mono ${r.labelSmall} uppercase tracking-[0.24em] text-accent hover:underline`;function Ie({sectionNumber:d="",heading:a="",tagline:b="",offices:n=[],mapTheme:h="auto",padTop:L,padBottom:_,bandPad:g,editing:p,omitHead:$=!1,dealers:f=!1,search:c=!1,searchHint:i="",noMatchText:S="",listPosition:u="below",showDistance:X=!0,shows:w=pe,listColumns:I=me,mapHeight:Y,headInList:Z=!1,template:F,ownerId:y="",pressTitles:J}){const V=Ae(),N=f===!0,C=w!=="list",ee=w!=="map",v=ue({shows:w,listPosition:u}),O=Y===de,M=Z&&v!=="below",E=g??re({padTop:L,padBottom:_},ae("Footprint")),[T,x]=G(null),te=n.length===0&&!N&&!d&&!a&&!b;if(B(()=>{x(e=>e!==null&&e>=n.length?null:e)},[n]),te&&!p)return null;const P=ve(n,e=>String(e.group??""),()=>""),le=(e,l)=>{const s=T===l,o=e.href&&e.linkLabel?{href:e.href,label:e.linkLabel}:null,k=m("button",{type:"button",onClick:()=>x(l),"aria-pressed":s,className:["flex flex-col gap-1.5 bg-bg px-6 py-5 text-left transition-colors outline outline-1 -outline-offset-1",s?"outline-accent":"outline-transparent hover:outline-line",o?"w-full pb-11":""].filter(Boolean).join(" "),children:[m("span",{className:`flex items-center gap-2.5 font-mono ${r.labelSmall} uppercase tracking-[0.28em]`,children:[e.hq&&t("span",{className:`border border-accent bg-accent px-1.5 py-0.5 ${r.bodySmall} text-bg`,children:"HQ"}),e.role&&t("span",{className:"text-accent",children:e.role})]}),e.city&&t("span",{className:`font-display ${r.bodyLarge} font-medium leading-[1.2] tracking-[-0.01em] text-fg`,children:t(ke,{value:e.city,children:e.city})}),e.country&&t("span",{className:`font-mono ${r.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:e.country}),e.address&&t("span",{className:`font-mono ${r.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:Ne(e.address)})]},o?void 0:l);return o?m("div",{className:"relative flex",children:[k,oe(o.href)?t(se,{newTab:"auto",href:o.href,className:q,children:`→ ${o.label}`}):t("a",{href:o.href,className:q,children:`→ ${o.label}`})]},l):k},H=P.flatMap(e=>e.items),R=e=>t("div",{className:C?"mt-12 flex flex-col gap-8":"flex flex-col gap-8",children:P.map((l,s)=>m("div",{children:[l.key&&t(we,{groupKey:l.key,count:l.items.length}),t("div",{className:["grid gap-[2px] bg-bg",fe(I,l.items.length)].join(" "),children:e(l)})]},l.key?`g:${l.key}`:`ungrouped:${s}`))}),j=!$&&!!(d||a||b),A=M&&j?t(Se,{look:"natural",num:d||void 0,title:a?D(a):void 0,description:b||void 0,spaceBelow:"mb-8"}):null;return t(ie,{as:"section",className:"relative z-[2] bg-bg",children:m("div",{className:He(["mx-auto max-w-[var(--sf-site-width,1600px)] border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]",E.className].filter(Boolean).join(" "),V),style:E.style,children:[j&&!M&&t(Te,{num:d,title:a?D(a):void 0,desc:b||void 0,spaceBelow:"mb-12"}),N?t(Le,{mapLabel:a.replace(/[=*]/g,"").replace(/\s+/g," ").trim(),mapTheme:h,search:c,searchHint:i,noMatchText:S,listPosition:u,showDistance:X,shows:w,listColumns:I,fullHeight:O,sectionHead:A,editing:p,template:F,ownerId:y}):v!=="below"?t($e,{position:v,attrs:{"data-footprint-list":v},fullHeight:O,head:A||c?m(ne,{children:[A,c?t("div",{className:"mb-4",children:t(_e,{hint:i,noMatchText:S,listKey:`${y}:offices`,editing:p})}):null]}):null,listAttrs:c?{[xe]:`${y}:offices`}:void 0,list:t(W,{children:t(K,{ownerId:y,ownerType:"Footprint",Template:F,rows:n.map(z),states:n.map((e,l)=>T===l?{selected:!0}:void 0),actions:n.map((e,l)=>({press:()=>x(l)})),pressTitles:J,copyAttrs:e=>({[ge]:"",[ye]:he(n[e.index])}),fallback:null,children:e=>e})}),map:t(Q,{offices:n,mapLabel:a.replace(/[=*]/g,"").replace(/\s+/g," ").trim(),mapTheme:h,activeIndex:T,onSelect:x,editing:p,frame:`sf-card relative w-full overflow-hidden border border-line ${Fe(O)}`})}):C?t(Q,{offices:n,mapLabel:a.replace(/[=*]/g,"").replace(/\s+/g," ").trim(),mapTheme:h,activeIndex:T,onSelect:x,editing:p}):null,!N&&ee&&v==="below"&&n.length>0&&t(K,{ownerId:y,ownerType:"Footprint",Template:F,rows:H.map(({item:e})=>z(e)),states:H.map(({index:e})=>T===e?{selected:!0}:void 0),actions:H.map(({index:e})=>({press:()=>x(e)})),fallback:R(e=>e.items.map(({item:l,index:s})=>le(l,s))),children:e=>{const l=e;let s=0;return t(W,{children:R(o=>{const k=l.slice(s,s+o.items.length);return s+=o.items.length,k})})}}),!N&&n.length===0&&p&&t("p",{className:`mt-8 font-mono ${r.labelLarge} uppercase tracking-[0.24em] text-fg-dim`,children:U("Add an office in the inspector")})]})})}function Q({offices:d,mapLabel:a,mapTheme:b,activeIndex:n,onSelect:h,editing:L,frame:_}){const g=ce(()=>be(d),[d]),[p,$]=G(null),f=n===null?null:String(n),c=f!==null&&g.some(u=>u.key===f);if(B(()=>{f!==null&&c&&$(u=>({key:f,n:(u?.n??0)+1}))},[f,c]),g.length===0)return L?t("div",{className:"relative flex aspect-[16/9] w-full items-center justify-center overflow-hidden border border-line bg-bg px-6 text-center max-view-tablet:aspect-[4/5]",children:t("span",{className:`font-mono ${r.labelLarge} uppercase tracking-[0.24em] text-fg-dim`,children:U("Add office coordinates to plot the map")})}):null;const i=c&&n!==null?d[n]:null,S=i?m("div",{className:"flex items-start gap-3 border border-line bg-bg px-3.5 py-2.5 text-fg shadow-[0_8px_24px_rgba(0,0,0,.4)]",children:[m("div",{className:"min-w-0 flex-1",children:[m("div",{className:`flex items-center gap-2 font-mono ${r.labelSmall} uppercase tracking-[0.28em]`,children:[i.hq&&t("span",{className:`bg-accent px-1.5 py-px ${r.bodySmall} text-bg`,children:"HQ"}),i.role&&t("span",{className:"text-accent",children:i.role})]}),i.city&&t("div",{className:`mt-1.5 font-display ${r.bodyLarge} font-medium leading-[1.2] text-fg`,children:i.city}),i.country&&t("div",{className:`mt-1 font-mono ${r.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:i.country})]}),t("button",{type:"button",onClick:()=>h(null),"aria-label":"Close",className:"-mr-1 grid h-6 w-6 shrink-0 place-items-center text-fg-dim hover:text-fg",children:t("svg",{"aria-hidden":!0,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:t("path",{d:"M2 2l8 8M10 2l-8 8"})})})]}):null;return t(Oe,{pins:g,mapTheme:b,ariaLabel:a||"Offices",className:_??"sf-card relative aspect-[16/9] w-full overflow-hidden border border-line max-view-tablet:aspect-[4/5]",selectedKey:c?f:null,focus:p,onSelect:u=>h(Number(u)),card:S})}export{Ie as default};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { SlotComponent } from "efficient-easel/blocks";
|
|
2
|
+
import type { RootPadAttrs } from "../lib/content/section-padding.js";
|
|
2
3
|
interface GridProps {
|
|
3
4
|
columns?: number | string;
|
|
4
5
|
mobileColumns?: number | string;
|
|
@@ -8,6 +9,7 @@ interface GridProps {
|
|
|
8
9
|
contained?: boolean;
|
|
9
10
|
fillHeight?: boolean;
|
|
10
11
|
content: SlotComponent;
|
|
12
|
+
pad?: RootPadAttrs | null;
|
|
11
13
|
}
|
|
12
|
-
export default function Grid({ columns, mobileColumns, gap, gapPhone, gapTablet, contained, fillHeight, content: Content, }: GridProps): import("react").JSX.Element;
|
|
14
|
+
export default function Grid({ columns, mobileColumns, gap, gapPhone, gapTablet, contained, fillHeight, content: Content, pad, }: GridProps): import("react").JSX.Element;
|
|
13
15
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as s}from"react/jsx-runtime";import{FRAME_BASE as i,FRAME_GUTTER as m}from"./BlockFrame.js";import{SlotsStartAfresh as G,useFillsCell as A}from"./InBoxContext.js";import E from"./SiteGutterFrame.js";import{containerGapProps as F}from"../../format/lib/content/container-gap.js";import{resolveGridColumns as N,resolveGridMobileColumns as _}from"../../format/lib/content/grid-span.js";import{SECTION_FILL_CLASS as x}from"../../format/lib/content/section-min-height.js";import{partAttr as R}from"../../format/lib/content/part-names.js";import{withRootPad as a}from"../lib/content/section-own-pads.js";function b({columns:o,mobileColumns:n,gap:f,gapPhone:c,gapTablet:p,contained:d=!0,fillHeight:C=!1,content:u,pad:t}){const $=A(),r=C||$?` ${x}`:"",l=a(`${i} py-6 ${m}${r}`,t),g=l.className,S=a(`w-full py-6${r}`,t).className,h=N(o),y=_(n,o),e=F("Grid",f,"both",c,p);return s(E,{contained:d,framedClass:g,fillClass:S,columnClass:`${i} ${m}${r}`,style:l.style,box:!0,part:R("grid"),children:s(G,{children:s(u,{className:`sf-grid-zone grid${e.className}${r}`,style:{...e.style,"--sf-grid-cols":String(h),"--sf-grid-cols-phone":String(y)},minEmptyHeight:120})})})}export{b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as g}from"react/jsx-runtime";import{useTakeViewHide as
|
|
1
|
+
import{jsx as g}from"react/jsx-runtime";import{useTakeViewHide as C,withViewHide as L}from"./ViewHideRoot.js";import{containerDirectionClass as v,resolveContainerDirection as D}from"../../format/lib/content/container-direction.js";import{containerGapProps as V}from"../../format/lib/content/container-gap.js";import{cssLengthOf as m,storedUnit as W}from"../../format/lib/content/css-length.js";import{finiteNumber as y}from"../../format/lib/finite-number.js";import{isLengthUnit as A}from"efficient-easel/screen/lib/content/length-units";import{boxLayoutClasses as B,boxWrapClass as E}from"../../format/lib/content/box-layout.js";import{sectionPadAttrs as F}from"../lib/content/section-padding.js";import{withSideOnce as M}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as R}from"./SideSpaceOnce.js";import{clampNudge as x,clampWidth as T,normalisePlacement as _,placementParts as q,placementRow as z}from"../../format/lib/hero-group-placement.js";function I({placement:N,nudgeX:a,nudgeY:c,width:o,widthUnit:b,nudgeUnit:t,gap:H,gapPhone:G,gapTablet:P,direction:l,justify:j,align:w,wrap:O,pad:S={},content:p,dragRef:$}){const k=R(),i=C(),n=_(N),e=A(t)&&t!=="px"?t:null,f=e?y(a)??0:x(a),u=e?y(c)??0:x(c),h=V("HeroGroup",H,D("HeroGroup",l)==="column"?"block":"inline",G,P),r={"--sf-hg-row":z(n),justifySelf:q(n).column};if(typeof o=="number"&&Number.isFinite(o)){const d=W(b,"%");r["--sf-hg-w"]=d==="%"?`${T(o)}%`:m(Math.max(0,o),d)}(f!==0||u!==0)&&(r["--sf-hg-nudge"]=`${m(f,e)} ${m(u,e)}`);const s=F(S);return i.scope(g("div",{className:L(s?`sf-hero-group ${M(s.className,k)}`:"sf-hero-group",i.className),"data-hg":n,...i.attrs,style:s?{...r,...s.style}:r,ref:$??void 0,children:p?g(p,{className:["sf-hero-group-blocks flex",v("HeroGroup",l),B(j,w),E(O)].filter(Boolean).join(" ")+h.className,style:h.style,minEmptyHeight:40}):null}))}export{I as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as e,jsxs as
|
|
1
|
+
"use client";import{jsx as e,jsxs as L}from"react/jsx-runtime";import{heroPhoneWordsStyle as se}from"../../format/lib/hero-phone-stack.js";import{SIDE_ONCE_HOLDS_CLASS as ae}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as ne}from"./SideSpaceOnce.js";import{HideTaker as le}from"./ViewHideRoot.js";import{useRef as ce,useState as me}from"react";import he from"./HeroPoster.js";import{HeroMediaLayer as ue,heroMediaReading as de,HeroPickArea as fe,heroPartEntrance as pe,heroPartHover as ge,heroPartScroll as ve,heroPictureOrigins as ye,HeroPictureHover as He,heroPicturesHover as Se,HeroTint as Pe,HeroTwoPictures as xe}from"./HeroPictures.js";import{HeroVideoBackdrop as _e,HeroVideoPlayer as be}from"./HeroVideoPlay.js";import{resolveMedia as i}from"../lib/media.js";import{heroHeightBox as we,heroStoresRatio as Te}from"../../format/lib/content/section-height.js";import{DEFAULT_OVERLAY_POSITION as Ee,overlayGradient as Ne}from"../../format/lib/sections/hero-overlay.js";import{ON_MEDIA_INK_STYLE as Le}from"../../format/lib/content/ink.js";import{DEFAULT_TINT as h}from"../../format/lib/content/tint.js";import{HERO_ABSENT_MEDIA_TYPE as Oe}from"../../format/lib/hero-media-layout.js";import Ae from"./PhotoHoverSheet.js";import{partAttr as u}from"../../format/lib/content/part-names.js";function Ie({overlay:O=100,overlayColor:A=h,overlayPosition:I=Ee,mediaType:d=Oe.HeroSingle,mediaSrc:s,poster:f,objectPosition:a,objectPositionPhone:n,objectPositionTablet:l,tintColor:p=h,tintOpacity:g=0,heightDesktop:k,heightMobile:D,heightFixed:R,heightFixedTablet:V,heightFixedMobile:j,phoneWordsTop:z,phoneWordsBottom:M,phoneBoxGap:B,boxes:v,videoSource:C,youtubeUrl:Y,videoPlayback:F,mediaLayout:U,mediaLayoutPhone:$,mediaImage2:G,objectPosition2:K,objectPosition2Phone:W,objectPosition2Tablet:q,tintColor2:J=h,tintOpacity2:Q=0,editing:o=!1,partMotion:r}){const X=ne(),y=we({heightDesktop:k,heightMobile:D,heightFixed:R,heightFixedTablet:V,heightFixedMobile:j}),{className:Z,style:ee}=y,H=Te(y),c=d==="video",S=c?i(s):void 0,P=c?i(f):i(s)??i(f),{fromYouTube:x,onClick:_,youTubeId:b,backgroundFile:w,desktopLayout:oe,phoneLayout:re,twoPictures:T}=de({isVideo:c,videoSource:C,videoPlayback:F,youtubeUrl:Y,mediaLayout:U,mediaLayoutPhone:$}),[E,te]=me(!1),m=!E,ie=ce(null),t=d==="video"?"media":"image",N=Se(r);return L(le,{as:"section",ref:ie,className:`relative mx-[var(--sf-hero-bleed-m,calc(50%_-_50vw))] w-[var(--sf-hero-bleed-w,100vw)] ${Z} max-w-[var(--sf-hero-cap,none)] ${H?"overflow-clip":"overflow-hidden"}`,style:ee,...N.hostAttrs,...u("hero"),children:[e(Ae,{sheet:N.sheet}),e(ue,{partMotion:r,editing:o,children:T?e(xe,{desktopLayout:oe,phoneLayout:re,editing:o,partMotion:r,first:{src:s,objectPosition:a,objectPositionPhone:n,objectPositionTablet:l,tintColor:p,tintOpacity:g},second:{src:G,objectPosition:K,objectPositionPhone:W,objectPositionTablet:q,tintColor:J,tintOpacity:Q}}):e(fe,{part:t,editing:o,entrance:t==="image"?pe(r,"image"):null,scroll:t==="image"?ve(r,"image"):null,origins:ye({objectPosition:a,objectPositionTablet:l,objectPositionPhone:n}),className:"absolute inset-0 z-[1]",children:L(He,{treatment:t==="image"?ge(r,"image"):{},children:[e(he,{videoSrc:w?S:void 0,posterSrc:P,showVideo:w,objectPosition:a,objectPositionPhone:n,objectPositionTablet:l}),x&&e(_e,{youTubeId:b,ownPoster:!!P,background:!_,editing:o})]})})}),_&&e(be,{youTubeId:b,fileSrc:x?void 0:S,playing:E,onPlay:()=>te(!0),editing:o}),m&&!T&&e(Pe,{color:p,opacity:g}),m&&e("div",{className:"pointer-events-none absolute inset-0 z-[2]",style:{background:Ne(A,I),opacity:Math.min(Math.max(O,0),100)/100},...u("overlay")}),m&&v&&e("div",{className:[H?"sf-hero-group-layer relative min-h-full z-[3] mx-auto":"sf-hero-group-layer absolute inset-0 z-[3] mx-auto","max-w-[var(--sf-site-width,1600px)]","px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14",X?ae:"",o?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{...Le,...se(z,M,B)},...u("hero-content"),children:e(v,{className:"sf-hero-group-zone",minEmptyHeight:160})})]})}export{Ie as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as e,jsxs as M}from"react/jsx-runtime";import{useTakeViewHide as
|
|
1
|
+
"use client";import{jsx as e,jsxs as M}from"react/jsx-runtime";import{useTakeViewHide as _e,withViewHide as Oe}from"./ViewHideRoot.js";import{SIDE_ONCE_HOLDS_CLASS as Ae}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as Le}from"./SideSpaceOnce.js";import{createContext as Ne,useContext as Ce,useEffect as Ie,useRef as De,useState as W}from"react";import Re from"./HeroPoster.js";import{HeroMediaLayer as Ve,heroMediaReading as Be,HeroPickArea as je,heroPartEntrance as ze,heroPartHover as Fe,heroPartScroll as $e,heroPictureOrigins as Me,HeroPictureHover as We,heroPicturesHover as Ye,HeroTint as qe,HeroTwoPictures as Ge}from"./HeroPictures.js";import{HeroVideoBackdrop as Ue,HeroVideoPlayer as Ke}from"./HeroVideoPlay.js";import{BelowFirstScreen as Je,useFirstScreenPlace as Qe}from"../lib/first-screen.js";import{markedChildren as Xe}from"../../format/lib/marked-children.js";import{resolveMedia as r}from"../lib/media.js";import{heroPhoneStackStyle as Ze,heroPhoneWordsStyle as eo}from"../../format/lib/hero-phone-stack.js";import{heroTextureGradient as oo,heroTextureShown as ro}from"../../format/lib/hero-texture.js";import{ON_MEDIA_INK_STYLE as to}from"../../format/lib/content/ink.js";import{DEFAULT_TINT as Y}from"../../format/lib/content/tint.js";import{HERO_ABSENT_MEDIA_TYPE as io}from"../../format/lib/hero-media-layout.js";import{overlayGradient as no,slideOverlayState as so}from"../../format/lib/sections/hero-overlay.js";import ao from"./PhotoHoverSheet.js";import{partAttr as w}from"../../format/lib/content/part-names.js";const lo=Ne({});function co({name:g,process:d,mediaType:q=io.HeroSlide,mediaSrc:c,videoSpeed:H,poster:E,mediaAv1:G,mediaSrcPhone:U,mediaAv1Phone:K,posterPhone:J,objectPosition:f,objectPositionPhone:u,objectPositionTablet:p,tintColor:T=Y,tintOpacity:b=0,groups:k,editing:i=!1,themeClassName:_,themeStyle:Q,overlayColor:X,overlayPosition:Z,mediaLayout:ee,mediaLayoutPhone:oe,mediaImage2:re,objectPosition2:te,objectPosition2Phone:ie,objectPosition2Tablet:ne,tintColor2:se=Y,tintOpacity2:ae=0,videoSource:le,youtubeUrl:de,videoPlayback:ce,partMotion:n,laterSlide:m=!1}){const fe=Le(),h=_e(),{alignment:fo="left",textureOpacity:O,textureOn:ue,textureColor:pe,quietVideo:me,phoneUpDown:he,phoneSideways:Se,phoneWordsTop:ve,phoneWordsBottom:ye,phoneBoxGap:xe,holdReel:Pe,reelHeld:we,shownSlide:S,ratioMin:A}=Ce(lo),ge=Qe(),L=m&&ge==="first",N=De(null),[He,Ee]=W(S===void 0?void 0:!1);Ie(()=>{const P=N.current;Ee(S===void 0||!P?void 0:Xe(P.closest(".hero-track"),"data-slide-name")[S]===P)});const o=q==="video",v=o?r(c):void 0,C=o?r(E):r(c)??r(E),t=o?{av1:r(G),phone:r(U),av1Phone:r(K),poster:r(J)}:{},Te=typeof H=="number"?H/100:1,{fromYouTube:s,onClick:I,youTubeId:D,backgroundFile:a,desktopLayout:be,phoneLayout:ke,twoPictures:R}=Be({isVideo:o,videoSource:le,videoPlayback:ce,youtubeUrl:de,mediaLayout:ee,mediaLayoutPhone:oe}),[y,V]=W(!1);y&&we===!1&&V(!1);const x=!y,l=so({overlayColor:X,overlayPosition:Z},pe),B=o?null:ze(n,"image"),j=o?null:$e(n,"image"),z=Ye(n),F=e(We,{treatment:o?{}:Fe(n,"image"),children:e(Re,{videoSrc:a?v:void 0,videoAv1Src:a?t.av1:void 0,videoSrcPhone:a?t.phone:void 0,videoAv1SrcPhone:a?t.av1Phone:void 0,posterSrc:C,posterSrcPhone:t.poster,showVideo:a,playbackRate:Te,objectPosition:f,objectPositionPhone:o?void 0:u,objectPositionTablet:o?void 0:p,quiet:me,slideShown:He,laterSlide:m,laterOfLead:L})}),$=M("section",{ref:N,className:Oe(`${A?"relative flex min-h-full w-full flex-col overflow-clip":"relative h-full w-full overflow-hidden"}${_?` ${_}`:""}`,h.className),...h.attrs,style:Q,"data-slide-name":g??"","data-slide-process":d??"","data-slide-media":a&&v?"video":"still",...z.hostAttrs,...w("slide"),children:[e(ao,{sheet:z.sheet}),e(Ve,{partMotion:n,editing:i,children:R?e(Ge,{laterSlide:m,desktopLayout:be,phoneLayout:ke,editing:i,partMotion:n,first:{src:c,objectPosition:f,objectPositionPhone:u,objectPositionTablet:p,tintColor:T,tintOpacity:b},second:{src:re,objectPosition:te,objectPositionPhone:ie,objectPositionTablet:ne,tintColor:se,tintOpacity:ae}}):s||B||j?M(je,{part:o?"media":"image",editing:i,entrance:B,scroll:j,origins:Me({objectPosition:f,objectPositionTablet:p,objectPositionPhone:u}),className:"absolute inset-0 z-[1]",children:[F,s&&e(Ue,{youTubeId:D,ownPoster:!!C,background:!I,editing:i})]}):F}),I&&e(Ke,{youTubeId:D,fileSrc:s?void 0:v,fileAv1Src:s?void 0:t.av1,fileSrcPhone:s?void 0:t.phone,fileAv1SrcPhone:s?void 0:t.av1Phone,playing:y,onPlay:()=>{V(!0),Pe?.()},editing:i}),x&&!R&&e(qe,{color:T,opacity:b,passClicks:!1}),x&&ro(ue)&&e("div",{className:"absolute inset-0 z-[2]",style:{background:l.own?no(l.color,l.position??void 0):oo(l.color),...O!==void 0?{opacity:O/100}:null},...w("overlay")}),x&&e("div",{className:[A?"sf-hero-group-layer relative z-[3] mx-auto w-full flex-1 max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14":"sf-hero-group-layer absolute inset-0 z-[3] mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14",fe?Ae:"",i?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{...to,...Ze(he,Se),...eo(ve,ye,xe)},...w("hero-content"),children:k&&e(k,{className:"sf-hero-group-zone",minEmptyHeight:160})})]});return h.scope(L?e(Je,{children:$}):$)}const Lo=Array.from({length:3},(g,d)=>({name:`Slide ${d+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));export{Lo as HERO_SLIDE_SEEDS,lo as HeroSlideStyleContext,co as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,Fragment as
|
|
1
|
+
import{jsx as e,Fragment as ie,jsxs as w}from"react/jsx-runtime";import{PagePicture as me}from"../lib/first-screen.js";import{SiteLink as ae}from"../lib/site-runtime.js";import{siteLinkDraws as ce}from"../../format/lib/content/box-link.js";import ne from"./BlockFrame.js";import{partAttr as F}from"../../format/lib/content/part-names.js";import{useCellPictureSizes as fe}from"./BoxCellContext.js";import{useBoxCell as pe,useFillsCell as ue}from"./InBoxContext.js";import{useInsideSiteGutter as de,useSectionEdge as ge}from"./SiteGutterFrame.js";import{useSitePhotography as he}from"./SitePhotographyContext.js";import{media as Se}from"../lib/media.js";import{CONTENT_SIZES as j,sizedImage as ve}from"../../format/lib/sized-image.js";import{imageCornerStyle as we}from"../../format/lib/content/image-corners.js";import{FILL_ROW as Fe,imageAspectClasses as Ne,pictureLayerClass as ye,imageFillFrom as Ce,imageAspectDrawn as be,imageAspectDrawsARatio as Ae,imageFocalPointActs as xe,imageFocalPointActsIn as E,imageAspectPhoneOf as ke,imageFillRowClasses as Ie,imageWidthFollowsBox as $e,imageShapeStyle as Oe}from"../../format/lib/content/image-aspect.js";import{drawsSiteGutter as _e}from"../../format/lib/content/site-gutter.js";import{imageFitClass as Pe,parseImageFit as Re}from"../../format/lib/content/image-fit.js";import{SECTION_FILL_CLASS as je}from"../../format/lib/content/section-min-height.js";import{PICTURE_WASH_CLASS as Ee,resolveImageTreatment as He}from"../../format/lib/content/image-treatment.js";import{boxDarkenStyle as ze}from"../../format/lib/content/box-background.js";import{HOVER_LAYER_GROUND as Le}from"../../format/lib/content/hover-media.js";import{phoneFocus as Te}from"../../format/lib/content/phone-focus.js";import{say as De}from"../../format/lib/editor-words.js";import{sectionEdgeAttrs as Ge}from"../lib/content/section-edge.js";import{useSideSpaceOnce as We}from"./SideSpaceOnce.js";import Be from"./PhotoHoverSheet.js";import Me from"./PictureWash.js";import Ze from"./HoverMediaLayer.js";import{PictureHoverMoveSheet as Ue,PictureHoverZoom as Ve,pictureHoverMoveOf as Ye}from"./PictureHoverMove.js";import{PictureZoom as qe}from"./PictureZoom.js";function Je({src:o,alt:H,aspect:z,aspectPhone:l,contained:N,grayscale:L,pictureHover:y,hoverLayer:s,darken:T,darkenStyle:C,href:D,fit:G,focal:b,focalPhone:W,focalTablet:B,corners:M,cornerSides:Z,cornersUnit:U,pad:A,ownSize:V=!1,editing:x=!1}){const c=He(L,he(),y),u=pe(),Y=ue(),d=ge(),q=fe(j),t=be(z,u?.picturesFillRow===!0),g=t===Fe,k=Ce(u?.fillFrom,u?.phoneRowFills===!0,l),i=g?Ie(k):null,h=ke(t,l),m=Re(G,"cover"),J=d||!$e(t,h,m)?j:q,I=we(M,Z,U),K=xe(m,t,l),S=Te(E("mobile",m,t,l)?W:void 0,E("tablet",m,t,l)?B:void 0),$={...c.style??{},...b&&K?{objectPosition:b}:{},...S.style},n=o?ve(Se(o)):null,r=Ye(y,C),Q=ze(T,C),X=r?.washHover??null,O=Oe(t,h),_=O?{...r?.style??{},...O}:r?.style??{},f=s&&o?e(Ze,{media:s.media,name:s.name,cover:s.cover,ground:Le[s.cover]}):null,P=o&&n?e(me,{src:n.src,...n.srcSet?{srcSet:n.srcSet,sizes:J}:{},alt:H,className:`${i?`${i.img} `:""}h-full w-full ${Ae(t,l)?Pe(m):""}${c.className?` ${c.className}`:""}${S.className?` ${S.className}`:""}`,...Object.keys($).length?{style:$}:{},...F("image")}):null,v=P?w(ie,{children:[e(Be,{sheet:c.sheet}),e(Ue,{move:r}),e(Ve,{move:r,className:ye(i),children:P}),e(Me,{wash:Q,hover:X,className:`pointer-events-none ${Ee}`})]}):e("div",{className:"flex aspect-[16/9] items-center justify-center border border-dashed border-line font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.2em] text-fg-dim",children:De("Image — set a path")}),p=(D??"").trim(),ee=p&&o?ce(p)?e(ae,{href:p,className:"block h-full w-full",newTab:"auto",children:v}):e("a",{href:p,className:"block h-full w-full",children:v}):v,te=de(),oe=We(),a=d&&!V?Ge(d,oe):null,R=A?{values:A,frame:g?0:24}:void 0,se=R!==void 0&&_e(a?!1:N,te),re=g?Y||x||se?je:"":"py-6",le=o&&m==="contain"?"":"bg-surface ";return!o&&!x?null:w(ne,{contained:a?!1:N,className:re,pad:R,...a?{fillWidth:a.className,style:a.style}:{},part:F("image-block"),children:[e("figure",{...i?{className:i.figure}:{},children:w("div",{className:`relative w-full overflow-hidden ${le}${Ne(t,h,k)}${r?` ${r.className}`:""}`,...I||Object.keys(_).length?{style:{...I,..._}}:{},...F("image-frame"),children:[e(qe,{fill:i,children:ee}),f&&s?.cover==="picture"?f:null]})}),f&&s?.cover==="card"?f:null]})}export{Je as default};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { RootPadAttrs } from "../lib/content/section-padding.js";
|
|
1
2
|
export interface IntegrationsTextItem {
|
|
2
3
|
text?: string;
|
|
3
4
|
}
|
|
@@ -10,5 +11,6 @@ export interface IntegrationsSectionProps {
|
|
|
10
11
|
statLabel?: string;
|
|
11
12
|
note?: string;
|
|
12
13
|
editing?: boolean;
|
|
14
|
+
pad?: RootPadAttrs | null;
|
|
13
15
|
}
|
|
14
|
-
export default function IntegrationsSection({ eyebrow, title, body, apps, statValue, statLabel, note, editing, }?: IntegrationsSectionProps): import("react").JSX.Element | null;
|
|
16
|
+
export default function IntegrationsSection({ eyebrow, title, body, apps, statValue, statLabel, note, editing, pad, }?: IntegrationsSectionProps): import("react").JSX.Element | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as x}from"react/jsx-runtime";import{HideTaker as
|
|
1
|
+
import{jsx as e,jsxs as x}from"react/jsx-runtime";import{HideTaker as u}from"./ViewHideRoot.js";import{AppChip as v}from"./Logos.js";import{renderGold as f,renderHeadline as w}from"./goldPhrases.js";import{say as N}from"../../format/lib/editor-words.js";import{withRootPad as _}from"../lib/content/section-own-pads.js";import{dealRows as k,INTEGRATION_ROWS as y,rowTurnSeconds as R}from"../../format/lib/sections/integrations-rows.js";const b=(a,t)=>k(a,t).filter(i=>i.length>0),j=({name:a})=>e(v,{alt:a});function q({names:a,reverse:t}){return e("div",{className:"overflow-hidden","aria-hidden":!1,children:e("div",{className:"flex w-max gap-3 pr-3 [animation:sf-marquee_var(--sf-marquee-t)_linear_infinite] motion-reduce:[animation:none]",style:{"--sf-marquee-t":`${R(a.length)}s`,animationDirection:t?"reverse":"normal"},children:[0,1].map(i=>e("div",{className:"flex gap-3","aria-hidden":i===1,children:a.map((n,m)=>e(j,{name:n},m))},i))})})}function T({eyebrow:a,title:t,body:i,apps:n,statValue:m,statLabel:l,note:s,editing:o=!1,pad:h}={}){const d=(n??[]).map(r=>(r.text??"").trim()).filter(r=>o||r).map(r=>r||N("App")),g=!!(a??"").trim()||!!(t??"").trim();if(!o&&!g&&d.length===0)return null;const p=b(d,y);return x(u,{as:"section",..._("relative z-[2] overflow-hidden border-y border-line bg-surface py-[76px]",h),children:[x("div",{className:"mx-auto mb-12 max-w-[860px] px-10 text-center max-[960px]:px-6",children:[(a??"").trim()&&e("span",{className:"inline-block bg-accent px-3.5 py-1.5 font-mono text-[12px] font-semibold uppercase tracking-[0.16em] text-bg",children:f(a??"")}),(t??"").trim()&&e("h2",{className:"mt-5 font-display text-[40px] font-medium uppercase leading-[1.04] tracking-[-0.02em] text-fg max-view-wide:text-[30px]",children:w(t??"",!1)}),(i??"").trim()&&e("p",{className:"mx-auto mt-5 max-w-[60ch] text-[15px] leading-relaxed text-fg/65",children:i})]}),p.length>0&&e("div",{className:"flex flex-col gap-3",children:p.map((r,c)=>e(q,{names:r,reverse:c%2===1},c))}),((m??"").trim()||(s??"").trim())&&x("div",{className:"mx-auto mt-12 max-w-[860px] px-10 text-center max-[960px]:px-6",children:[(m??"").trim()&&e("div",{className:"font-display text-[min(64px,var(--sf-heading-max,9999px))] font-medium uppercase leading-none text-accent max-view-wide:text-[min(46px,var(--sf-heading-max,9999px))]",children:m}),(l??"").trim()&&e("div",{className:"mt-2 font-display text-[18px] font-medium uppercase tracking-[0.06em] text-fg",children:f(l??"")}),(s??"").trim()&&e("p",{className:"mx-auto mt-4 max-w-[52ch] text-[13px] leading-relaxed text-fg/50",children:s})]})]})}export{T as default};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { SectionEyebrowLook } from "../../format/lib/sections/section-eyebrow-look.js";
|
|
2
|
+
import type { RootPadAttrs } from "../lib/content/section-padding.js";
|
|
2
3
|
export interface KeyFeatureItem {
|
|
3
4
|
label?: string;
|
|
4
5
|
href?: string;
|
|
@@ -10,5 +11,6 @@ export interface KeyFeaturesProps {
|
|
|
10
11
|
items?: KeyFeatureItem[];
|
|
11
12
|
columns?: number;
|
|
12
13
|
editing?: boolean;
|
|
14
|
+
pad?: RootPadAttrs | null;
|
|
13
15
|
}
|
|
14
|
-
export default function KeyFeatures({ look, eyebrow, title, items, columns, editing, }?: KeyFeaturesProps): import("react").JSX.Element | null;
|
|
16
|
+
export default function KeyFeatures({ look, eyebrow, title, items, columns, editing, pad, }?: KeyFeaturesProps): import("react").JSX.Element | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as
|
|
1
|
+
import{jsx as e,jsxs as l,Fragment as v}from"react/jsx-runtime";import{HideTaker as k}from"./ViewHideRoot.js";import{SiteLink as w}from"../lib/site-runtime.js";import{siteLinkDraws as y}from"../../format/lib/content/box-link.js";import{cardColumns as N}from"../../format/lib/content/card-columns.js";import S from"./SectionEyebrow.js";import{renderGold as M,renderHeadline as T}from"./goldPhrases.js";import{say as j}from"../../format/lib/editor-words.js";import{withSideOnce as z}from"../../format/lib/content/page-width.js";import{withRootPad as F}from"../lib/content/section-own-pads.js";import{useSideSpaceOnce as _}from"./SideSpaceOnce.js";const d={headingMediumUpTo800:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMedium:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]",body:"text-[length:var(--size-body,17px)]"};function E({look:f,eyebrow:i,title:t,items:x,columns:g,editing:s=!1,pad:h}={}){const u=_(),b=N(g),n=(x??[]).filter(r=>s||(r.label??"").trim()),c=!!(i??"").trim()||!!(t??"").trim();return!s&&!c&&n.length===0?null:e(k,{as:"section",className:"relative z-[2] border-y border-line bg-surface",children:l("div",{...F(z("mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] py-[76px] max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",u),h),children:[c&&l("div",{className:"mb-11 flex flex-wrap items-baseline gap-5 max-view-wide:mb-8",children:[(i??"").trim()&&e(S,{text:i??"",look:f}),(t??"").trim()&&e("h2",{className:`font-heading2 ${d.headingMedium} font-medium uppercase leading-none tracking-[-0.02em] text-fg ${d.headingMediumUpTo800}`,children:T(t??"",!1)})]}),n.length>0&&e("div",{className:"sf-card grid grid-cols-1 gap-px border border-line bg-line min-[700px]:[grid-template-columns:repeat(var(--kf-cols),minmax(0,1fr))]",style:{"--kf-cols":String(b)},children:n.map((r,m)=>{const o=l(v,{children:[e("span",{"aria-hidden":!0,className:"h-[9px] w-[9px] flex-shrink-0 rotate-45 bg-accent"}),e("span",{className:`font-display ${d.body} font-medium uppercase tracking-[0.06em] text-fg transition-colors group-hover/kf:text-accent`,children:M((r.label??"").trim()||j("Feature"))})]}),a=(r.href??"").trim();if(a&&!s){const p="group/kf flex items-center gap-4 bg-bg px-7 py-[30px] transition-colors hover:bg-surface";return y(a)?e(w,{newTab:"auto",href:a,className:p,children:o},m):e("a",{href:a,className:p,children:o},m)}return e("div",{className:"flex items-center gap-4 bg-bg px-7 py-[30px]",children:o},m)})})]})})}export{E as default};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { SlotComponent } from "efficient-easel/blocks";
|
|
2
2
|
import type { ReactNode } from "react";
|
|
3
3
|
import { type LogoLook } from "../../format/lib/sections/logo-look.js";
|
|
4
|
+
import type { RootPadAttrs } from "../lib/content/section-padding.js";
|
|
4
5
|
interface LogoItem {
|
|
5
6
|
src: string;
|
|
6
7
|
alt: string;
|
|
@@ -21,8 +22,9 @@ interface LogosProps {
|
|
|
21
22
|
labelledBy?: string;
|
|
22
23
|
omitHead?: boolean;
|
|
23
24
|
cards?: ReactNode;
|
|
25
|
+
pad?: RootPadAttrs | null;
|
|
24
26
|
}
|
|
25
|
-
export default function Logos({ items, contained, heading, columns, grayscale, logoHeight, bandPadding, logos: LogoBlocks, look, omitHead, cards, align, alignTablet, alignPhone, labelledBy, }: LogosProps): import("react").JSX.Element;
|
|
27
|
+
export default function Logos({ items, contained, heading, columns, grayscale, logoHeight, bandPadding, logos: LogoBlocks, look, omitHead, cards, align, alignTablet, alignPhone, labelledBy, pad, }: LogosProps): import("react").JSX.Element;
|
|
26
28
|
export declare const CARD_WORDS_CLASS = "font-mono text-[12px] uppercase tracking-[0.18em]";
|
|
27
29
|
export declare function AppChip({ src, alt }: {
|
|
28
30
|
src?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as n,jsxs as f,Fragment as I}from"react/jsx-runtime";import{PagePicture as u}from"../lib/first-screen.js";import{BrandNameMark as Y}from"efficient-shell/icons/brands";import{PaymentMark as y,paymentMarkItems as Z}from"efficient-shell/icons/payment";import U from"./BlockFrame.js";import{MarkZoom as h}from"./PictureZoom.js";import{renderChrome as J,renderGold as _,renderHeadline as V}from"./goldPhrases.js";import{LogoWallProvider as R}from"./LogoWallContext.js";import{useBoxCell as X}from"./InBoxContext.js";import{EMPTY_ELSE_CLASS as q,EMPTY_HIDES_CLASS as Q,EmptyHidesStyle as ee}from"../lib/content/empty-hides.js";import{media as x}from"../lib/media.js";import{sizedImage as v}from"../../format/lib/sized-image.js";import{stripMarkup as g}from"../../format/lib/markup.js";import{DEFAULT_LOGO_LOOK as te}from"../../format/lib/sections/logo-look.js";import{paymentRowMark as P}from"../lib/sections/payment-rows.js";import{alignViewClasses as ne,BLOCK_ALIGN_JUSTIFY as re,blockAlignOf as ae}from"../../format/lib/content/block-align.js";import{FOOTER_MARK_SIZES as W}from"../../format/lib/document/box-footer.js";import{say as le}from"../../format/lib/editor-words.js";import{withRootPad as se}from"../lib/content/section-own-pads.js";const w={label:"text-[length:var(--size-label,13px)]",chip:"text-[length:var(--size-label,14px)]"},p="sf-logo-wall",ie="sf-logo-items",oe="flex flex-wrap items-center",ce="flex flex-nowrap items-center",me=(t,e,r,a=!1)=>{const o=ae(t)??"center";return[a?ce:oe,re[o],ne("justify",o,e,r,{atSectionLine:!0})].filter(Boolean).join(" ")},O="plain",$={plain:{x:3.5,y:2},cards:{x:.75,y:.75},marks:{x:.75,y:.5},chips:{x:.75,y:.75}},N=t=>({columnGap:`${$[t].x}rem`,rowGap:`${$[t].y}rem`}),L=(t,e)=>`calc((100% - ${(t-1)*$[e].x}rem) / ${t})`;function de({items:t,contained:e,heading:r,columns:a,grayscale:o,logoHeight:c,bandPadding:l,logos:i,look:s=te,omitHead:m=!1,cards:d,align:T,alignTablet:G,alignPhone:D,labelledBy:F,pad:C}){const S=me(T,G,D,X()?.loops===!0),b=s==="marks",K=a!=null?{flex:`0 0 ${L(a,O)}`}:void 0,E=!m;return f(U,{contained:e,fillWidth:b&&m?"w-auto max-w-full":void 0,...se(E&&l==null?"py-10":"",C,C||!E||l==null?void 0:{paddingTop:`${l}px`,paddingBottom:`${l}px`}),children:[!m&&r!=null&&r!==""?n("h2",{className:`mb-8 text-center font-mono ${w.label} uppercase tracking-[0.2em] text-fg-dim`,children:V(r,!1)}):null,f(pe,{listed:b,labelledBy:F,children:[d!==void 0?f(R,{value:{look:s,logoHeight:c,grayscale:o},children:[a!=null?n("style",{children:`.${p}-c${a}>*{flex:0 0 ${L(a,s)}}`}):null,n("div",{className:[p,a!=null?`${p}-c${a}`:"",S].filter(Boolean).join(" "),style:N(s),children:d})]}):i?f(R,{value:{look:s,logoHeight:c,grayscale:o},children:[n(ee,{}),a!=null?n("style",{children:`.${p}-c${a}>*{flex:0 0 ${L(a,s)}}`}):null,n(i,{className:[p,Q,a!=null?`${p}-c${a}`:"",S].filter(Boolean).join(" "),style:N(s),minEmptyHeight:80})]}):null,d!==void 0?null:n("div",{className:`${ie} ${q} ${S}`,style:N(O),children:(t??[]).map((M,H)=>n("div",{className:"text-center",style:K,children:n($e,{src:M.src,alt:M.alt,look:O,logoHeight:c,grayscale:o})},H))})]})]})}function pe({listed:t,labelledBy:e,children:r}){return t?n("div",{className:"contents",role:"list",...e?{"aria-labelledby":e}:{"aria-label":le("Ways to pay")},children:r}):n(I,{children:r})}const k="font-mono text-[12px] uppercase tracking-[0.18em]";function z(t){const e=Z({name:g(t)});return!e.length||e.length===1&&e[0].kind==="words"&&!e[0].glyph?[]:e}function fe({item:t,children:e}){return t.kind==="brand"?n(h,{children:e}):n(I,{children:e})}function ue(t){return t.length?n("span",{className:"flex items-center gap-3",children:t.map((e,r)=>n(y,{item:e,size:20,className:k},r))}):null}const he="shrink-0 gap-2 whitespace-nowrap rounded bg-bg px-5",xe=`${w.chip} font-medium tracking-wide text-fg-dim`,Se="sf-logo-chip flex h-10 items-center border border-line",ye={lead:"sf-card",tail:"bg-surface px-4"},B={lead:"",tail:he};function j({look:t,children:e}){const r=[t.lead,Se,t.tail].filter(Boolean).join(" ");return t===B?n("div",{className:r,"data-sf-chip":"",children:e}):n("div",{className:r,children:e})}function _e({src:t,alt:e}){return f(j,{look:B,children:[t?n(u,{...A(x(t)),alt:"",className:"h-4 w-auto"}):e?n(Y,{name:e,size:16,className:"shrink-0 text-fg"}):null,e?n("span",{className:xe,children:_(e)}):null]})}const ge=W.sm.mark,we=Object.values(W),Oe=t=>we.reduce((e,r)=>Math.abs(r.mark-t)<Math.abs(e.mark-t)?r:e).words;function $e({src:t,alt:e,look:r,logoHeight:a,grayscale:o,kind:c}){if(r==="marks"){const l=a??ge,i=!t&&c!==void 0?P({label:e,kind:c}):null,s=i?[i]:!t&&e?z(e):[];return n("span",{role:"listitem",className:"flex items-center gap-3",style:{fontSize:`${Oe(l)}px`},children:s.length?s.map((m,d)=>n(fe,{item:m,children:n(y,{item:m,size:l})},d)):t?n(h,{children:n(u,{...A(x(t)),alt:g(e||""),className:"w-auto",style:{height:`${l}px`}})}):e&&n("span",{children:_(e)})})}if(r==="chips")return n(_e,{src:t,alt:e});if(r==="cards"){const l=!t&&c!==void 0?P({label:e,kind:c}):null,i=!l&&!t&&e?z(e):[],s=n(j,{look:ye,children:l?n(y,{item:l,size:20,className:k}):i.length?ue(i):t?n(u,{...A(x(t)),alt:g(e||""),className:o===!1?"max-h-5 w-auto opacity-90":"max-h-5 w-auto opacity-90 grayscale"}):e&&n("span",{className:k,children:_(e)})});return(t?!0:l?l.kind==="brand":i.length>0&&i.every(d=>d.kind==="brand"))?n(h,{children:s}):s}return t?n(h,{children:n(u,{...Ne(x(t)),alt:e,className:["mx-auto w-auto opacity-60 transition-opacity hover:opacity-100",a==null?"h-7":"",o===!1?"":"grayscale"].filter(Boolean).join(" "),style:a==null?void 0:{height:`${a}px`}})}):n("span",{className:`font-mono ${w.label} uppercase tracking-[0.2em] text-fg-dim`,children:J(e||"Logo")})}function A(t){const e=v(t,{fallbackWidth:320,maxWidth:640});return e.srcSet?{src:e.src,srcSet:e.srcSet,sizes:"120px"}:{src:t}}function Ne(t){const e=v(t,{fallbackWidth:640,maxWidth:960});return e.srcSet?{src:e.src,srcSet:e.srcSet,sizes:"240px"}:{src:t}}export{_e as AppChip,k as CARD_WORDS_CLASS,$e as LogoWallMark,de as default};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { RootPadAttrs } from "../lib/content/section-padding.js";
|
|
1
2
|
export interface LongReadProps {
|
|
2
3
|
omitHead?: boolean;
|
|
3
4
|
headNum?: string;
|
|
@@ -17,5 +18,6 @@ export interface LongReadProps {
|
|
|
17
18
|
metaPublished?: string;
|
|
18
19
|
metaPublishedAt?: string;
|
|
19
20
|
metaReads?: string;
|
|
21
|
+
pad?: RootPadAttrs | null;
|
|
20
22
|
}
|
|
21
|
-
export default function LongRead({ headNum, headTitle, headDesc, category, metaMiddle, readLabel, title, dek, quote, quoteAttribution, ctaText, ctaHref, image, imageLabel, metaPublished, metaPublishedAt, metaReads, omitHead, }: LongReadProps): import("react").JSX.Element;
|
|
23
|
+
export default function LongRead({ headNum, headTitle, headDesc, category, metaMiddle, readLabel, title, dek, quote, quoteAttribution, ctaText, ctaHref, image, imageLabel, metaPublished, metaPublishedAt, metaReads, omitHead, pad, }: LongReadProps): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as r,Fragment as m}from"react/jsx-runtime";import{EDITORIAL_COLUMN as
|
|
1
|
+
import{jsx as e,jsxs as r,Fragment as m}from"react/jsx-runtime";import{EDITORIAL_COLUMN as B,withSideOnce as F}from"../../format/lib/content/page-width.js";import{HideTaker as I}from"./ViewHideRoot.js";import{Fragment as N}from"react";import{SiteLink as T}from"../lib/site-runtime.js";import C from"./PostDate.js";import{stripMarkup as D}from"../../format/lib/markup.js";import H from"./EditorialSectionHead.js";import M from"./Placeholder.js";import R from"./SectionEyebrow.js";import{renderGold as n,renderHeadline as S}from"./goldPhrases.js";import{scrim as z}from"../../format/lib/content/scrim.js";import{withRootPad as G}from"../lib/content/section-own-pads.js";import{useSideSpaceOnce as U}from"./SideSpaceOnce.js";const a={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 X({headNum:L,headTitle:f,headDesc:x,category:g,metaMiddle:b,readLabel:h,title:o,dek:v,quote:i,quoteAttribution:s,ctaText:u,ctaHref:$,image:O,imageLabel:k,metaPublished:d,metaPublishedAt:l,metaReads:c,omitHead:y=!1,pad:_}){const j=U(),w=[g?e("span",{className:"text-accent",children:n(g)}):null,b?e("span",{children:n(b)}):null,h?e("span",{children:n(h)}):null].filter(Boolean),E=!!l||!!d||!!c;return e(I,{as:"section",...G(y?"border-b border-line pt-0 pb-[120px] max-view-desktop:pt-0 max-view-desktop:pb-20":"border-b border-line py-[120px] max-view-desktop:py-20",_),children:r("div",{className:F(B,j),children:[y?null:e(H,{num:L,title:f?S(f,!0):void 0,desc:x?n(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:[w.length>0&&e("div",{className:`flex items-center gap-3.5 font-mono ${a.labelSmall} uppercase tracking-[0.3em] text-fg-dim`,children:w.map((p,t)=>r(N,{children:[t>0&&e("span",{className:"opacity-40",children:"·"}),p]},t))}),o&&e("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(36px,4.2vw,68px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[0.95] tracking-[-0.035em]",children:S(o,!0)}),v&&e("p",{className:`font-serif ${a.bodyLarge} italic leading-[1.45] text-fg`,children:n(v)}),(i||s)&&r("blockquote",{className:`max-w-[520px] border-l-2 border-accent py-1.5 pl-[22px] font-serif ${a.body} italic leading-[1.6] text-fg-dim`,children:[i&&r(m,{children:["“",n(i),"”"]}),s&&e("strong",{className:`mt-2.5 block font-display ${a.bodySmall} font-normal not-italic uppercase tracking-[0.22em] text-fg`,children:n(s)})]}),u&&r(T,{newTab:"auto",href:$||"#",className:`inline-flex items-center gap-3.5 self-start border border-btn px-7 py-4 font-mono ${a.labelLarge} uppercase tracking-[0.3em] text-btn transition-colors hover:bg-btn hover:text-btn-ink`,children:[n(u)," ",e("span",{children:"→"})]})]}),r("div",{className:"relative overflow-hidden bg-surface-2 max-view-desktop:aspect-[4/3]",children:[e(M,{label:"long-read",src:O||void 0,alt:D(o||"Long read"),sizes:"(max-width: 1100px) 100vw, 56vw"}),e("div",{className:"pointer-events-none absolute inset-0 z-[1]",style:{background:`linear-gradient(180deg, ${z(.55)} 0%, transparent 25%, transparent 60%, ${z(.7)} 100%)`}}),k&&e(R,{text:k,size:12,className:"absolute right-6 top-6 z-[2]"}),E&&e("div",{className:`absolute bottom-6 left-6 z-[2] font-mono ${a.labelSmall} uppercase leading-[1.8] tracking-[0.22em] text-overlay-fg`,children:[l||d?r(m,{children:[e("strong",{className:"font-normal text-accent",children:"Published"})," ",l?e(C,{at:l}):n(d)]}):null,c?r(m,{children:[e("strong",{className:"font-normal text-accent",children:"Reads in"})," ",n(c)]}):null].filter(Boolean).map((p,t)=>r(N,{children:[t>0&&e("br",{}),p]},t))})]})]})]})})}export{X as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as o}from"react/jsx-runtime";import
|
|
1
|
+
import{jsx as e,jsxs as o}from"react/jsx-runtime";import w from"./AnimatedStat.js";import{HideTaker as y}from"./ViewHideRoot.js";import S from"./Placeholder.js";import{useSitePhotography as _}from"./SitePhotographyContext.js";import N from"./SectionEyebrow.js";import{renderGold as j,renderHeadline as T,splitParagraphs as M}from"./goldPhrases.js";import{resolveImageTreatment as z}from"../../format/lib/content/image-treatment.js";import{sectionRunsFullWidth as E}from"../../format/lib/content/section-width.js";import{SECTION_FILL_CLASS as I}from"../../format/lib/content/section-min-height.js";import{HALF_SIZES as $}from"../../format/lib/sized-image.js";import{withSideOnce as F}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as L}from"./SideSpaceOnce.js";const t={headingMediumUpTo800:"max-view-wide:text-[length:min(var(--size-headingMedium,36px),var(--sf-heading-max,9999px))]",headingMedium:"text-[length:min(var(--size-headingMedium,56px),var(--sf-heading-max,9999px))]",body:"text-[length:var(--size-body,16px)]"};function O({eyebrow:s,heading:d,body:x,stats:p,imageSrc:c,grayscale:f,pictureHover:g,fillHeight:u=!1,...h}={}){const v=L(),b=z(f,_(),g),l=s||null,m=d||null,n=x||null,a=(p??[]).filter(r=>(r.value??"").trim()!==""||(r.label??"").trim()!=="");return e(y,{as:"section",className:"relative z-[2] bg-bg p-0",children:o("div",{className:`grid ${u?I:"h-screen"} min-h-[100vh] grid-cols-2 border-y border-line max-[960px]:h-auto max-[960px]:grid-cols-1`,children:[e("div",{className:F("flex flex-col justify-center border-r border-line px-[var(--sf-site-gutter,40px)] py-[100px] max-[960px]:order-2 max-[960px]:border-r-0 max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[960px]:py-[60px]",v),children:o("div",{className:E(h)?"flex w-full flex-col gap-7":"ml-auto flex w-full flex-col gap-7 max-w-[calc(var(--sf-site-width,1600px)/2_-_var(--sf-site-gutter,40px)*2_-_1px)] max-[960px]:ml-0 max-[960px]:max-w-none",children:[l!==null&&e(N,{text:l,size:14}),m!==null&&e("h2",{className:`font-heading2 ${t.headingMedium} font-normal leading-[1.05] tracking-[-0.03em] ${t.headingMediumUpTo800} max-view-wide:leading-[1]`,children:T(m,!0)}),n!==null&&M(n).map((r,i)=>e("p",{className:`max-w-[520px] ${t.body} leading-[1.7] text-fg-dim`,children:j(r)},i)),a.length>0&&e("div",{className:"mt-4 grid max-w-[520px] gap-6 border-t border-line pt-7",style:{gridTemplateColumns:`repeat(${a.length}, minmax(0, 1fr))`},children:a.map((r,i)=>e(w,{target:r.value??"",label:r.label??""},i))})]})}),e("div",{className:"sf-card relative flex items-center justify-center bg-surface overflow-hidden max-[960px]:aspect-[4/3]",children:e(S,{label:"manifesto",src:c||void 0,objectFit:"cover",objectPosition:"center",treatment:b,sizes:$})})]})})}export{O as default};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { RootPadAttrs } from "../lib/content/section-padding.js";
|
|
1
2
|
export interface MastheadMetaLine {
|
|
2
3
|
lead?: string;
|
|
3
4
|
rest?: string;
|
|
@@ -12,5 +13,6 @@ export interface MastheadProps {
|
|
|
12
13
|
}[];
|
|
13
14
|
issueTotal?: string;
|
|
14
15
|
editing?: boolean;
|
|
16
|
+
pad?: RootPadAttrs | null;
|
|
15
17
|
}
|
|
16
|
-
export default function Masthead({ eyebrow, issueMeta, lead, issueHeading, issueList, issueTotal, }: MastheadProps): import("react").JSX.Element;
|
|
18
|
+
export default function Masthead({ eyebrow, issueMeta, lead, issueHeading, issueList, issueTotal, pad, }: MastheadProps): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as t,Fragment as
|
|
1
|
+
import{jsx as t,Fragment as w,jsxs as a}from"react/jsx-runtime";import{EDITORIAL_COLUMN as N,withSideOnce as S}from"../../format/lib/content/page-width.js";import{withRootPad as u}from"../lib/content/section-own-pads.js";import{HideTaker as _}from"./ViewHideRoot.js";import j from"./SectionEyebrow.js";import{renderGold as i,renderHeadline as O,splitParagraphs as y}from"./goldPhrases.js";import{useSideSpaceOnce as z}from"./SideSpaceOnce.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 E({eyebrow:l,issueMeta:x,lead:g,issueHeading:n,issueList:h,issueTotal:o,pad:f}){const b=z(),d=(x??[]).filter(e=>(e?.lead??"").trim()||(e?.rest??"").trim()),c=(h??[]).map(e=>e?.text??"").filter(e=>e.trim()),m=y(g??""),v=!!l||d.length>0,p=!!n||c.length>0||!!o,k=m.length>0||p;return t(_,{as:"section",...u("border-b border-line pt-20 pb-10 max-view-desktop:pt-[60px] max-view-desktop:pb-8",f),children:a("div",{className:S(N,b),children:[v&&a("div",{className:"flex items-end justify-between gap-[60px] pb-8 max-view-desktop:flex-col max-view-desktop:items-start max-view-desktop:gap-4",children:[l&&t(j,{text:l,size:14,className:"pb-3.5"}),d.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:d.map((e,r)=>a("div",{children:[t("strong",{className:"font-normal text-fg",children:i(e.lead??"")}),e.rest?.trim()?a(w,{children:[" ",i(e.rest)]}):null]},r))})]}),k&&a("div",{className:"grid grid-cols-[1fr_auto] items-start gap-[60px] border-t border-line pt-8 max-view-desktop:grid-cols-1 max-view-desktop:gap-4",children:[m.length>0&&t("div",{className:"max-w-[720px]",children:m.map((e,r)=>t("p",{className:`font-heading3 ${s.headingSmall} leading-[1.5] tracking-[-0.005em] text-fg [&:not(:first-child)]:mt-4`,children:i(e,!0)},r))}),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:O(n,!1)}),c.map((e,r)=>a("span",{children:[i(e),t("br",{})]},r)),o&&t("span",{className:"text-accent",children:i(o)})]})]})]})})}export{E as default};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { RootPadAttrs } from "../lib/content/section-padding.js";
|
|
1
2
|
export type MockupVariant = "spec-card" | "fitment" | "portal" | "kanban" | "claims" | "browser" | "terminal";
|
|
2
3
|
export interface MockupPill {
|
|
3
4
|
label?: string;
|
|
@@ -56,5 +57,6 @@ export interface MockupSectionProps {
|
|
|
56
57
|
align?: "right" | "left";
|
|
57
58
|
editing?: boolean;
|
|
58
59
|
omitHead?: boolean;
|
|
60
|
+
pad?: RootPadAttrs | null;
|
|
59
61
|
}
|
|
60
|
-
export default function MockupSection({ eyebrow, title, body, variant, cardHeader, badge, cardTitle, cardSubtitle, pills, tiles, rows, button, footnote, col1Title, col1Cards, col2Title, col2Cards, col3Title, col3Cards, col4Title, col4Cards, barsHeading, bars, termLines, urlText, heroTitle, heroButton, products, align, editing, omitHead, }?: MockupSectionProps): import("react").JSX.Element | null;
|
|
62
|
+
export default function MockupSection({ eyebrow, title, body, variant, cardHeader, badge, cardTitle, cardSubtitle, pills, tiles, rows, button, footnote, col1Title, col1Cards, col2Title, col2Cards, col3Title, col3Cards, col4Title, col4Cards, barsHeading, bars, termLines, urlText, heroTitle, heroButton, products, align, editing, omitHead, pad, }?: MockupSectionProps): import("react").JSX.Element | null;
|