efficient-web-builder 67.4.0 → 67.6.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 +33 -0
- package/dist/editor/components/storefront-editor.css +3 -1
- package/dist/editor/lib/document/ColourControl.d.ts +2 -1
- package/dist/editor/lib/document/ColourControl.js +1 -1
- package/dist/editor/lib/document/block-offer.d.ts +6 -0
- package/dist/editor/lib/document/block-offer.js +1 -1
- package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Footprint/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/HeroSlide/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/ParagraphsA/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/ProcessSteps/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/StatsParagraph/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Timeline/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/TimelineTrack/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/TitleWithButtons/fields.js +1 -1
- package/dist/editor/lib/document/controls.js +1 -1
- package/dist/editor/lib/document/field-groups.js +1 -1
- package/dist/format/lib/content/accordion-row-style.d.ts +4 -1
- package/dist/format/lib/content/accordion-row-style.js +1 -1
- package/dist/format/lib/content/box-background.d.ts +12 -0
- package/dist/format/lib/content/box-background.js +1 -1
- package/dist/format/lib/content/image-treatment.js +1 -1
- package/dist/format/lib/content/view-lines.d.ts +1 -0
- package/dist/format/lib/content/view-lines.js +1 -1
- package/dist/format/lib/document/passes/types.d.ts +2 -0
- package/dist/format/lib/document/seed-parts.d.ts +1 -1
- package/dist/format/lib/document/seed-parts.js +1 -1
- package/dist/format/lib/editor-words-catalogue.d.ts +4 -0
- package/dist/format/lib/editor-words-catalogue.js +3 -3
- package/dist/format/lib/hero-video.d.ts +1 -1
- package/dist/format/lib/hero-video.js +1 -1
- package/dist/render/components/BoxAccordionRow.d.ts +2 -1
- package/dist/render/components/BoxAccordionRow.js +1 -1
- package/dist/render/components/Flex.d.ts +2 -1
- package/dist/render/components/Flex.js +1 -1
- package/dist/render/components/Footprint.d.ts +3 -1
- package/dist/render/components/Footprint.js +1 -1
- package/dist/render/components/HeroPoster.d.ts +5 -1
- package/dist/render/components/HeroPoster.js +1 -1
- package/dist/render/components/HeroSlide.d.ts +5 -1
- package/dist/render/components/HeroSlide.js +1 -1
- package/dist/render/components/HeroVideoPlay.d.ts +4 -1
- package/dist/render/components/HeroVideoPlay.js +1 -1
- package/dist/render/components/ParagraphsA.d.ts +3 -1
- package/dist/render/components/ParagraphsA.js +1 -1
- package/dist/render/components/ProcessSteps.d.ts +3 -1
- package/dist/render/components/ProcessSteps.js +1 -1
- package/dist/render/components/SectionAnimation.d.ts +3 -0
- package/dist/render/components/SectionAnimation.js +1 -1
- package/dist/render/components/StatsParagraph.d.ts +3 -1
- package/dist/render/components/StatsParagraph.js +1 -1
- package/dist/render/components/Timeline.d.ts +3 -1
- package/dist/render/components/Timeline.js +1 -1
- package/dist/render/components/TimelineTrack.d.ts +3 -1
- package/dist/render/components/TimelineTrack.js +1 -1
- package/dist/render/components/TitleWithButtons.d.ts +3 -1
- package/dist/render/components/TitleWithButtons.js +1 -1
- package/dist/render/lib/content/section-padding.d.ts +20 -0
- package/dist/render/lib/content/section-padding.js +1 -1
- package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Footprint/render.js +1 -1
- package/dist/render/lib/document/blocks/general/HeroSlide/render.js +1 -1
- package/dist/render/lib/document/blocks/general/ParagraphsA/render.js +1 -1
- package/dist/render/lib/document/blocks/general/ProcessSteps/render.js +1 -1
- package/dist/render/lib/document/blocks/general/StatsParagraph/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Timeline/render.js +1 -1
- package/dist/render/lib/document/blocks/general/TimelineTrack/render.js +1 -1
- package/dist/render/lib/document/blocks/general/TitleWithButtons/render.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-head.js +1 -1
- package/dist/render/lib/document/hero-media-parts.d.ts +2 -0
- package/dist/render/lib/document/hero-media-parts.js +1 -1
- package/dist/render/lib/document/passes/section-padding.d.ts +4 -0
- package/dist/render/lib/document/passes/section-padding.js +1 -1
- package/dist/render/lib/media.d.ts +15 -0
- package/dist/render/lib/media.js +1 -1
- package/dist/render/lib/sections/section-to-box.d.ts +1 -0
- package/dist/render/lib/sections/section-to-box.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Fragment as O,jsx as e,jsxs as A}from"react/jsx-runtime";import{useContext as ir,useId as ar,useState as cr}from"react";import dr from"./BoxTabs.js";import{AccordionRowStyleContext as ze,BoxTabPaneContext as Ye,useAccordionRowStyle as ur,useBoxPaneKind as mr,useFirstCopyOpens as fr,useIsTabPane as hr}from"./BoxTabPaneContext.js";import Cr,{ACCORDION_COUNTER_RESET as br}from"./BoxAccordionRow.js";import{ACCORDION_MARK_SHEET as Sr}from"./AccordionMark.js";import{accordionRowStyleOf as wr}from"../../format/lib/content/accordion-row-style.js";import{boxPhoneCell as xr,boxPhoneOrder as pr}from"../../format/lib/content/box-phone-place.js";import{CellFillContext as ws,InBoxContext as xs,useCellOfStretchedRow as _r,useFillsCell as vr}from"./InBoxContext.js";import Rr,{InsideSiteColumn as ps,useInsideSiteGutter as Pr,useSectionRoot as Or}from"./SiteGutterFrame.js";import{BoxSurfaceProvider as Ar}from"./BoxSurfaceContext.js";import $r from"./PictureWash.js";import{BoxCellContext as _s,NoCellBound as Lr}from"./BoxCellContext.js";import{boxCellFractions as yr}from"../lib/content/box-cell-bound.js";import{boundOf as Nr}from"../../format/lib/content/cell-picture-sizes.js";import{useInSiteHeader as Er}from"./PhoneMenuTools.js";import{useCardRow as kr}from"./CardRowContext.js";import{cardLineBetween as Je,framesItsCards as Ir}from"../../format/lib/content/card-place.js";import{rowLinkText as Br}from"../../format/lib/content/card-template.js";import{HandedMirrorContext as gr,MirrorContext as Tr,RowHandContext as vs,boxPlace as Hr,useHandedMirrorAbove as Fr,useHandedRows as Dr,useMirroredCopy as Vr,useUnderCardBox as Mr}from"./MirrorContext.js";import{boxChildrenHand as Wr,isMirroredCopy as Xr,mirrorCardsActs as Rs,mirrorCardsOf as Gr,mirroredBoxClass as jr,MIRROR_ROW_CLASS as Kr,ownsCard as Ur}from"../../format/lib/content/mirror-cards.js";import{FRAME_BASE as Ze,frameGutterOf as zr}from"./BlockFrame.js";import{BOX_SIDE_SPACE_SITE as Yr,boxSideSpaceOf as Jr}from"../../format/lib/content/box-side-space.js";import{containerGapProps as Ps}from"../../format/lib/content/container-gap.js";import{boxLayoutClasses as Zr,boxAlignViewClasses as qr,boxBlockSpacingClass as Qr,boxBlockSpacingViewClasses as et,boxJustifyViewClasses as ot,boxWrapTabletClass as st,boxFitContentClass as nt,boxAccordionColumnsClass as Os,boxRowColumnsClass as rt,boxRowTabletColumnsClass as tt,boxRowTabletShareClass as lt,boxPhoneCellsShareLine as it,boxPhoneRowClasses as ie,boxPhoneRowFits as at,boxShareClasses as K,boxShareVars as ct,boxWrapClass as dt,BOX_GAP_ONLY_CLASS as ut}from"../../format/lib/content/box-layout.js";import{boxSeparatorClasses as mt,boxSeparatorSeamClass as ft,boxSeparatorStyle as ht,isStripBox as Ct}from"../../format/lib/content/box-separator.js";import{DEFAULT_LOOP_DELAY as bt,DEFAULT_LOOP_DIRECTION as St,DEFAULT_LOOP_SECONDS as wt,isVerticalLoop as xt}from"../../format/lib/animation/index.js";import{LoopTrack as pt}from"../lib/animation/LoopTrack.js";import{BOX_CARD_PAD as $,BOX_OWNS_SIDES_CLASS as _t,boxDarkenStyle as As,boxPaintOf as vt,boxFillViews as Rt,boxPlacementClasses as Pt,boxCardProps as Ot,boxIsCard as $s,boxRowPicture as At,boxSwatchFill as $t,boxWashViews as Lt,CARD_SHADOW_CLASS as yt,isBackgroundBox as Ls}from"../../format/lib/content/box-background.js";import{BOX_ROW_IMAGE_PROP as w}from"../../format/lib/content/box-card-rule.js";import{boxShadowAttrs as Nt,boxShadowOnAnyView as Et,boxShadowViewAttrs as kt}from"../../format/lib/content/box-shadow.js";import{boxRunsEdgeToEdge as It,drawsSiteGutter as Bt}from"../../format/lib/content/site-gutter.js";import{boxShapeClass as gt,boxShapeClasses as Tt}from"../../format/lib/content/box-shape.js";import{boxAngleStyle as Ht}from"../../format/lib/content/box-angle.js";import{BOX_JUMP_ATTR as Ft,BOX_LINK_ATTR as ys,BOX_LINK_CLASS as Ns,BOX_LINKED_CLASS as Dt,boxJumpBlocksClass as Vt,boxJumpCss as Mt,boxJumpSlug as Wt,boxLinkOf as Xt,siteLinkDraws as Gt}from"../../format/lib/content/box-link.js";import{SiteLink as jt}from"../lib/site-runtime.js";import{sectionBorderStyle as Es}from"../../format/lib/content/borders.js";import{finiteNumber as _e}from"../../format/lib/finite-number.js";import{padDefaultIn as L,padSideValue as ve,sectionPadAttrs as Kt}from"../lib/content/section-padding.js";import{SECTION_FILL_CLASS as Re}from"../../format/lib/content/section-min-height.js";import{ON_MEDIA_INK_STYLE as Ut,rowFillInkStyle as zt}from"../../format/lib/content/ink.js";import{useThemeLightInk as Yt}from"./ThemeLightInkContext.js";import{sizedBackground as qe}from"../../format/lib/sized-image.js";import{BOX_REVEAL_CLASS as Jt,BOX_REVEAL_CSS as Zt,BOX_REVEAL_SHEET as qt,PHOTO_HOST_ATTR as Qt,resolveImageTreatment as el}from"../../format/lib/content/image-treatment.js";import ol,{HoverArrowsSlot as sl,HoverMediaArrows as nl}from"./HoverMediaLayer.js";import{HOVER_ARROWS_HOST_ATTR as rl,HOVER_ARROWS_HOST_CLASS as tl,HOVER_LAYER_GROUND as ll,cardRowHoverMedia as il,hoverLayerName as al}from"../../format/lib/content/hover-media.js";import{BOX_HIGHLIGHT_CLASS as cl,BOX_HIGHLIGHT_OVER_ROW_INK_CLASS as dl,BOX_SHOW_ON_CARD_HOVER as ul}from"../../format/lib/animation/hover.js";import{BoxRail as ml,BoxRailStop as fl,RAIL_STOPS_CLASS as hl,useTimelineRail as Cl}from"./TimelineRail.js";import{SHARED_PLAIN_ATTR as bl,sharedColumnsClasses as Sl,sharedColumnsCss as wl,sharedRowsClasses as xl,sharedRowsCss as pl}from"../lib/content/box-shared-columns.js";import ks from"./PhotoHoverSheet.js";import{PICTURE_FRAME_ONLY as _l,PictureHoverMoveSheet as vl,PictureHoverZoom as Rl,pictureHoverMoveOf as Pl}from"./PictureHoverMove.js";import{BOX_DESKTOP_LINE as Ol,stackGutterClass as Al,stackLineCss as $l,stackOuterClass as Ll,stackRowClass as yl,storedStackLine as Qe}from"../lib/content/box-stack-line.js";const eo={"--sf-site-gutter":"0px"},Nl={overflowX:"clip",overflowY:"visible"},El={stretchedRow:!1,fillingColumn:!1,columnsRow:!1},Is={desktop:!1,phone:!1},Bs="bg-cover bg-center bg-[image:var(--sf-box-bg)] max-view-wide:bg-[image:var(--sf-box-bg-p)]",oo=u=>u==null||u==="",so=u=>!oo(u)&&Number(u)===0;function kl({children:u}){return e(O,{children:u(ar())})}function Il({direction:u,label:gs,tabShape:Ts,gap:no,gapPhone:Hs,gapTablet:Pe,justify:U,align:y,wrap:ae,share:Fs,sharePhone:z,shareTablet:g,wrapPhone:Ds,orderPhone:Vs,phoneRow:x,columns:m,columnsTablet:T,separator:f,stackBelow:ce,blockSpacing:ro,bgImage:Ms,bgImagePhone:Ws,rowImage:Xs,hoverShow:Gs,pictureHover:H,darken:Oe,darkenStyle:de,darkenTablet:js,darkenPhone:Ks,darkenStyleTablet:Us,darkenStylePhone:zs,placement:Ys,padV2:to=!1,border:Js,borderTablet:Zs,borderPhone:qs,borderUnits:lo,pad:r={},contained:Ae=!0,fillHeight:N=!1,shadow:$e,shadowTablet:io,shadowPhone:ao,justifyTablet:co,justifyPhone:Qs,alignTablet:en,alignPhone:on,wrapTablet:uo,blockSpacingTablet:sn,blockSpacingPhone:nn,loop:h,scrollDirection:Le=St,loopSeconds:rn=wt,loopDelay:tn=bt,editing:E=!1,fillColor:mo,fillColorTablet:ln,fillColorPhone:an,swatch:cn,line:p,upcoming:dn,link:un,rowLink:fo,highlight:mn,boxShape:ho,boxShapePhone:fn,boxShapeTablet:hn,angle:Cn,jumpHighlight:bn,anchor:Sn,sharedSides:wn=Is,sharedRows:xn=!1,boxId:F,slotCount:pn,mirrorCards:Co,content:i,rowTitle:ye,startsOpen:_n,rowStyle:vn,sideSpace:Rn}){const n=kr(),k=Ot({[w]:Xs},n!==null)[w],bo=$s({[w]:k}),a=bo?Is:wn,Pn=bo?!1:xn,So=At({[w]:k},n?.row),_=So??Ms,wo=So===null?Ws:void 0,xo=ir(_s),[po,On]=cr(null),An=Fr(),_o=Mr()&&!(An&&n!==null),v=Dr(),C=Ur({inCopy:n!==null,nestedCopy:n?.nested===!0,underBox:_o}),Ne=Gs===ul&&n!==null&&!C&&!(E&&n.previewHover===!0),vo=Je(Js,n,C),Ro=Je(Zs,n,C),Po=Je(qs,n,C),Oo=n===null&&!_o&&v?.ids&&F?v.ids.indexOf(F):-1,ue=Oo>=0&&v&&F?Hr(v,F,Oo):-1,b=ue>=0?v?.hand??null:C&&v?.copies===!0?v.hand:null,s=b?.row?"row":u,d=b?.row?b.row.share:Fs,$n=b?.row?b.row.phoneReverse?[...i.blockIds??[]].reverse():void 0:Vs,me=Pn&&!b?.row,D=E?"":fo&&n?Br(n.row,fo)??"":Xt(un),R=N?"":Tt(ho,fn,hn),Ln=!N&>(ho)!=="",I=Wt(bn,Sn),Ee=$t({swatch:cn},n?.row),fe=Ee??vt(mo),V=Ee?{className:"",style:{}}:Rt(mo,ln,an),yn=Yt(),Ao=zt(Ee,yn??void 0),$o=fe||V.className?{...fe?{backgroundColor:fe}:{},...V.style,...Ao}:void 0,Lo=Cl(),Y=p===!0&&s!=="tabs"&&s!=="accordion",t=$s({bgImage:_,[w]:k}),yo=Ht(Cn),No=t?void 0:$o,he=t?null:mn??null,Nn=yo||he?{...No,...yo,...he}:No,Ce=Er(),En=Or(),kn=hr(),Eo=mr(),In=ur(),Bn=fr(),l=s==="accordion",ko=wr(vn),J=l&&ko==="numbered",ke=vr(),gn=_r(),M=Ct(s,f),c=h==="scroll"&&s!=="tabs"&&!l,Tn=Vr(),be=C||ue>=0&&b!==null,Io=b?b.mirror:Co,Hn=ue>=0?ue:n?.index,Z=C&&Ir(n?.ownerType),Bo=Rs({direction:s,separator:f,loop:h,line:p,bgImage:_,[w]:k,columns:m,columnsTablet:T,share:d,wrap:ae},be,a.desktop)&&Xr(Io,Hn),Fn=Rs({direction:s,separator:f,loop:h,line:p,bgImage:_,[w]:k,columns:m,columnsTablet:T,share:d,wrap:ae},be,a.desktop)&&Gr(Io)!==null,W=rt({direction:s,separator:f,loop:h,line:p,columns:m}),B=tt({direction:s,separator:f,loop:h,line:p,columnsTablet:T}),q=lt({direction:s,separator:f,loop:h,line:p,columns:m,columnsTablet:T,share:d,shareTablet:g}),Q=Jr(Rn)===Yr,Ie=zr(Q),go=Y&&Qe(ce)===Ol,X=s==="row"&&!t&&!M&&!c&&(!Y||go)&&B===""&&q===""?Qe(ce):void 0,G=X??(s==="column"&&!t?Qe(ce):void 0),Dn=Pr(),Se=Sl(a,i.blockCount??0,X),Vn=(Se&&(!n||n.index===0)?wl(a,i.blockCount??0,X):"")+(me&&(!n||n.index===0)?pl(me,i.blockCount??0):""),To=xl(me,i.blockCount??0),Ho=B!==""?Number(T)>=2:q===""||K(g)!=="",Fo=B!==""||q!=="",Do=s==="row"&&!M&&!c&&p!==!0,Be=Do&&!a.phone&&!a.desktop?xr(pr($n,i.blockIds??[]),{editing:E}):void 0,Vo=Be!==void 0&&!E,Mn=W!==""?Number(m)>=2:K(d)!=="",Mo=!t&&!l&&!Fn&&!a.desktop&&!a.phone,we=Mo&&!c?ot(U,co,Qs):"",ge=t||be?"":jr(Tn,s,c?void 0:U,y,we?co:void 0),Wn=/view-wide:max-view-desktop:justify-/.test(ge)?we.split(" ").filter(o=>!o.startsWith("view-wide:max-view-desktop:justify-")).join(" "):we,Xn=Mo&&s==="row"?qr(y,en,on):"",Gn=!c&&!l&&W===""&&B===""&&!a.desktop?st(ae,uo):"",Wo=[l?"":K(d),s==="row"?nt(d):"",W,B,q,Qr(l?"gap":ro),mt(s,f),l&&!J?"border-t border-line":"",Wn,Xn,Gn,l?"":et(ro,sn,nn),l?Os(m,x,J):"",J?br:""].filter(Boolean).join(" "),jn=Wo?` ${Wo}`:"",Xo=["flex",s==="row"?M||c?"flex-row":`flex-row ${ie(x,z,Ds,uo)}`:"flex-col",dt(c||l?!1:ae),t?Pt(Ys??"center",s):Zr(c||l?void 0:U,l?void 0:y)+(ge?` ${ge}`:"")].join(" ")+jn,ee=N||t||R||ke?` ${Re}`:"",Te=Ln?` ${R}`:R?`${ee} ${R}`:ee,Go=gn&&s==="column"&&!t&&!c&&K(d)===""&&(typeof U=="string"&&U!=="start"||we!==""),jo=ee||(Go?` ${Re}`:""),He=D?` ${Dt}`:"",Fe=t||Ce||to?"":" py-6",Kn=X===void 0?"":` ${yl(X)}`,Ko=G===void 0||Q?"":` ${Al(G)}`,De=G===void 0?"":` ${Ll(G)}`,Un=`${Ze}${Fe} ${Ie}${Te}${He}${Ko}${De}`,zn=Ce?`${Te}${He}${De}`.trim():`w-full${Fe}${Te}${He}${De}`,oe=J&&Os(m,x)===""?Ps("Flex",0,"block"):Ps("Flex",no,s==="row"?"inline":"block",Hs,M||c?void 0:Pe),Uo=ct(d,g,s==="row"?i.blockCount??0:0),zo=M?{...oe.style,...ht(s,f)}:oe.style,Yn=Uo?{...zo,...Uo}:zo,Ve=(o="")=>e(i,{className:`${Xo}${Bo?` ${Kr}`:""}${oe.className}${jo}${Kn}${o?` ${o}`:""}${Y?` ${hl}`:""}${I?` ${Vt(I)}`:""}${Se}${To}`,style:Yn,minEmptyHeight:120,...Be?{cell:Be}:null}),Yo=xt(Le)?"":ft(s,f),Jo=c?e(pt,{direction:Le,seconds:rn,delay:tn,editing:E,copy:o=>Ve(o&&Yo?`${o} ${Yo}`:o)}):J?A(O,{children:[e("style",{children:Sr}),Ve()]}):Ve(),Me=s==="tabs"?e(dr,{className:`${Xo}${oe.className}${ke&&!N&&!t&&!R?"":ee}`,style:oe.style,shape:Ts,children:Jo}):Jo,We=l?e(Ye.Provider,{value:"accordion",children:e(ze.Provider,{value:ko,children:Me})}):Eo?e(Ye.Provider,{value:!1,children:e(ze.Provider,{value:"plain",children:Me})}):Me,Zo=s==="row"&&!t&&(y===void 0||y==="stretch"),Jn={stretchedRow:Zo,fillingColumn:s==="column"&&(ke||Go),columnsRow:W!==""||B!==""||Se!==""||To!==""||s==="row"&&(Array.isArray(d)||Array.isArray(g))||Vo,...Vo?{phoneCells:!0}:null,...Zo&&Do&&(i.blockCount??0)>=2&&Mn?{picturesFillRow:!0}:null,...Fo&&!Ho?{fillFrom:"desktop"}:null,...it(x,z)&&(!Fo||Ho)?{phoneRowFills:!0}:null,...F?{id:F}:null},qo=n===null?Wr({direction:s,loop:h,bgImage:_,[w]:k,columns:m,mirrorCards:Co},!1):null,Qo=qo?e(vs.Provider,{value:{hand:qo,ids:i.blockIds??[],boxes:[]},children:We}):v?e(vs.Provider,{value:null,children:We}):We,es=e(xs.Provider,{value:Jn,children:e(ws.Provider,{value:!1,children:be?e(Tr.Provider,{value:Bo,children:e(gr.Provider,{value:!C,children:Qo})}):Qo})}),Zn=ye?.blockCount??0,os=Eo==="accordion"&&!!ye&&(E||Zn>0)?e(Cr,{startsOpen:_n===!0||Bn&&C&&n?.index===0,editing:E,numbered:In==="numbered",title:e(xs.Provider,{value:El,children:e(ws.Provider,{value:!1,children:e(Ye.Provider,{value:!1,children:e(ze.Provider,{value:"plain",children:e(ye,{className:`min-w-0 flex-1 ${ut}`,minEmptyHeight:24})})})})}),children:es}):es,Xe=Y?e(ml,{row:s==="row",stops:i.blockCount??0,desktopLine:X!==void 0&&go,children:os}):os,qn=gs?.trim()||(kn?"":void 0),Qn={values:r,frame:Fe?24:0},er=o=>Lo?e(fl,{on:Lo,future:dn===!0,children:o}):o,or=o=>Gt(D)?e(jt,{href:D,newTab:"auto",className:Ns,"aria-labelledby":o,[ys]:""}):e("a",{href:D,className:Ns,"aria-labelledby":o,[ys]:""}),ss=(I?Mt(I):"")+Vn+(G===void 0||n&&n.index!==0?"":$l(G,{gutter:!Q})),ns=ss?e("style",{dangerouslySetInnerHTML:{__html:ss}}):null,se=It({loop:h,direction:s,scrollDirection:Le,bgImage:_,[w]:k}),sr=a.desktop&&Se!==""&&!fe&&!V.className&&!Es(vo,Po,Ro,lo)&&!Et($e,io,ao)&&!D&&!R&&!N&&!I&&!Bt(Ae&&!se,Dn)&&so(no)&&(oo(Pe)||so(Pe))&&to&&Object.values(r).every(o=>oo(o)||so(o)),nr=o=>({...sr?{[bl]:""}:null,...t?null:{...Nt($e),...kt($e,io,ao)},...I?{[Ft]:I}:null,...o?{id:o}:null}),rs=W!==""?Number(m):0,rr=ie(x,z)===ie(void 0),tr=(s==="column"||s==="row"&&!M&&!c&&(rs===1&&rr||rs===0&&i.blockCount===1))&&!t&&!Y&&!Ce,ts=t&&En&&!Ce,xe=!t&&n!==null?As(Oe,de):null,ls=Ne||xe?A(O,{children:[Ne?e(ks,{sheet:Zt,name:qt}):null,xe?e("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 -z-10 rounded-[inherit]",style:xe}):null]}):null,is=[Ne?Jt:"",xe?"relative isolate":""].filter(Boolean).join(" "),as=o=>ls?A(O,{children:[ls,o]}):o,cs=(o,P)=>er(e(Rr,{contained:Ae&&!se,style:se?eo:void 0,framedClass:Un,fillClass:zn,columnClass:`${Ze} ${Ie}${jo}${Ko}`,tabLabel:qn,pad:t?void 0:Qn,border:Es(vo,Po,Ro,lo),outerAttrs:nr(P),box:!0,edge:tr,outerStyle:Nn,outerClass:t?is||void 0:[V.className,he?cl:"",he&&Ao?dl:"",is].filter(Boolean).join(" ")||void 0,bleed:ts,siteSide:Q,children:ns||P?A(O,{children:[ns,P?or(P):null,se?e(ps,{children:o}):o]}):se?e(ps,{children:o}):o})),Ge=o=>D?e(kl,{children:P=>cs(as(o),P)}):cs(as(o)),ds=o=>xo.bound?e(Lr,{children:o}):o;if(!t){const o=y===void 0||y==="stretch",P=(K(d)!==""||W!==""||B!=="")&&!at(x,z)&&!(q!==""&&K(g)==="")&&(o||ie(x)!==ie(void 0));if(!(s==="row"?P:s==="column"&&o))return Ge(ds(Xe));const Ss=yr({direction:s,separator:f,loop:h,line:p,share:d,shareTablet:g,sharePhone:z,phoneRow:x,columns:m,columnsTablet:T,stackBelow:ce,shared:a.desktop||a.phone||me,count:pn}),lr={hasWidth:!0,...Ss?{bound:Nr(Ss,xo.bound)}:null};return Ge(e(_s.Provider,{value:lr,children:Xe}))}const ne=Ls(_),re=ne?As(Oe,de):null,pe=ne?Lt({darken:Oe,darkenStyle:de,darkenTablet:js,darkenStyleTablet:Us,darkenPhone:Ks,darkenStylePhone:zs}):{className:"",style:{}},je=Ls(wo),us=ne?je?{"--sf-box-bg":qe(_??""),"--sf-box-bg-p":qe(wo??"")}:{backgroundImage:qe(_??""),backgroundSize:"cover",backgroundPosition:"center"}:{},ms=el(void 0,void 0,H),j=ms.className?ms:null,te=ne&&n&&H?.kind==="nextImage"&&H.media?il(n,H.media):null,S=ne?Pl(H,de)??(te?_l:null):null,fs=H?.media?.cover??"picture",Ke=te?e("div",{className:`absolute inset-0 isolate${Z?" rounded-[inherit]":""}`,children:e(sl.Provider,{value:On,children:e(ol,{media:te,name:al(n?.row),cover:fs,ground:ll[fs],arrowsAbove:!0})})}):null,le=j!==null||!!S?.zoom,hs=le?e("div",{"aria-hidden":!0,className:`absolute inset-0${Z?" rounded-[inherit]":""}${je?` ${Bs}`:""}${j?` ${j.className}`:""}`,style:{...us,...j?.style??{}}}):null,Ue=Kt({...r,top:_e(r.top)??L($.desktop,r.unit,"desktop"),bottom:_e(r.bottom)??L($.desktop,r.unit,"desktop"),topPhone:_e(r.topPhone)??L($.phone,r.unitPhone,"mobile"),bottomPhone:_e(r.bottomPhone)??L($.phone,r.unitPhone,"mobile"),left:ve(r.left)??L($.side,r.unit,"desktop"),right:ve(r.right)??L($.side,r.unit,"desktop"),leftPhone:ve(r.leftPhone)??L($.sidePhone,r.unitPhone,"mobile"),rightPhone:ve(r.rightPhone)??L($.sidePhone,r.unitPhone,"mobile"),sideSpace:Q?"site":"box"}),Cs=e("div",{className:`relative z-[1] ${_t} ${Ue?.className??""}${N||R?` ${Re}`:""}`.trimEnd(),style:re?{...Ue?.style,...eo,...Ut}:{...Ue?.style,...eo},children:ds(Xe)}),bs=ts&&Ae?e("div",{className:`${Ze} ${Ie}${N||R?` ${Re}`:""}`,children:Cs}):Cs;return Ge(e(O,{children:A("div",{className:`relative isolate overflow-hidden ${yt}${ee}${je&&!le?` ${Bs}`:""}${V.className?` ${V.className}`:""}${S?` ${S.className}`:""}`,style:{...Z?Nl:{},...$o,...le?{}:us,...S?S.style:{}},...j||te?{[Qt]:""}:{},children:[e(vl,{move:S}),le&&A(O,{children:[e(ks,{sheet:j?.sheet}),S?.zoom?e("div",{className:`absolute inset-0 overflow-hidden${Z?" rounded-[inherit]":""}`,children:A(Rl,{move:S,className:"absolute inset-0",children:[hs,Ke]})}):A(O,{children:[hs,Ke]})]}),!le&&Ke,e($r,{wash:re&&pe.className?{...re,...pe.style}:re,hover:S?.washHover,...Z?{className:"rounded-[inherit]"}:{},...pe.className?{restClassName:pe.className}:{}}),re?e(Ar,{children:bs}):bs,te?e("div",{[rl]:"",className:tl,children:po?e(nl,{state:po}):null}):null]})}))}export{Il as default};
|
|
1
|
+
import{Fragment as O,jsx as e,jsxs as A}from"react/jsx-runtime";import{useContext as ur,useId as mr,useState as fr}from"react";import hr from"./BoxTabs.js";import{AccordionRowStyleContext as qe,BoxTabPaneContext as Qe,useAccordionRowStyle as Cr,useBoxPaneKind as br,useFirstCopyOpens as Sr,useIsTabPane as wr}from"./BoxTabPaneContext.js";import xr,{ACCORDION_COUNTER_RESET as pr}from"./BoxAccordionRow.js";import{ACCORDION_MARK_SHEET as _r}from"./AccordionMark.js";import{accordionRowStyleOf as vr}from"../../format/lib/content/accordion-row-style.js";import{boxPhoneCell as Rr,boxPhoneOrder as Pr}from"../../format/lib/content/box-phone-place.js";import{CellFillContext as _s,InBoxContext as vs,useCellOfStretchedRow as Or,useFillsCell as Ar}from"./InBoxContext.js";import $r,{InsideSiteColumn as Rs,useInsideSiteGutter as Lr,useSectionRoot as yr}from"./SiteGutterFrame.js";import{BoxSurfaceProvider as Nr}from"./BoxSurfaceContext.js";import Er from"./PictureWash.js";import{BoxCellContext as Ps,NoCellBound as kr}from"./BoxCellContext.js";import{boxCellFractions as Ir}from"../lib/content/box-cell-bound.js";import{boundOf as Br}from"../../format/lib/content/cell-picture-sizes.js";import{useInSiteHeader as gr}from"./PhoneMenuTools.js";import{useCardRow as Tr}from"./CardRowContext.js";import{cardLineBetween as eo,framesItsCards as Hr}from"../../format/lib/content/card-place.js";import{rowLinkText as Fr}from"../../format/lib/content/card-template.js";import{HandedMirrorContext as Dr,MirrorContext as Vr,RowHandContext as Os,boxPlace as Mr,useHandedMirrorAbove as Wr,useHandedRows as Xr,useMirroredCopy as Gr,useUnderCardBox as jr}from"./MirrorContext.js";import{boxChildrenHand as Kr,isMirroredCopy as Ur,mirrorCardsActs as As,mirrorCardsOf as zr,mirroredBoxClass as Yr,MIRROR_ROW_CLASS as Jr,ownsCard as Zr}from"../../format/lib/content/mirror-cards.js";import{FRAME_BASE as oo,frameGutterOf as qr}from"./BlockFrame.js";import{BOX_SIDE_SPACE_SITE as Qr,boxSideSpaceOf as et}from"../../format/lib/content/box-side-space.js";import{containerGapProps as $s}from"../../format/lib/content/container-gap.js";import{boxLayoutClasses as ot,boxAlignViewClasses as st,boxBlockSpacingClass as nt,boxBlockSpacingViewClasses as rt,boxJustifyViewClasses as tt,boxWrapTabletClass as lt,boxFitContentClass as it,boxAccordionColumnsClass as Ls,boxRowColumnsClass as ct,boxRowTabletColumnsClass as at,boxRowTabletShareClass as dt,boxPhoneCellsShareLine as ut,boxPhoneRowClasses as ce,boxPhoneRowFits as mt,boxShareClasses as K,boxShareVars as ft,boxWrapClass as ht,BOX_GAP_ONLY_CLASS as Ct}from"../../format/lib/content/box-layout.js";import{boxSeparatorClasses as bt,boxSeparatorSeamClass as St,boxSeparatorStyle as wt,isStripBox as xt}from"../../format/lib/content/box-separator.js";import{DEFAULT_LOOP_DELAY as pt,DEFAULT_LOOP_DIRECTION as _t,DEFAULT_LOOP_SECONDS as vt,isVerticalLoop as Rt}from"../../format/lib/animation/index.js";import{LoopTrack as Pt}from"../lib/animation/LoopTrack.js";import{BOX_CARD_PAD as $,BOX_OWNS_SIDES_CLASS as Ot,boxDarkenStyle as ys,boxPaintOf as At,boxFillFadeStyle as $t,boxFillViews as Lt,boxPlacementClasses as yt,boxCardProps as Nt,boxIsCard as Ns,boxRowPicture as Et,boxSwatchFill as kt,boxWashViews as It,CARD_SHADOW_CLASS as Bt,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 gt,boxShadowOnAnyView as Tt,boxShadowViewAttrs as Ht}from"../../format/lib/content/box-shadow.js";import{boxRunsEdgeToEdge as Ft,drawsSiteGutter as Dt}from"../../format/lib/content/site-gutter.js";import{boxShapeClass as Vt,boxShapeClasses as Mt}from"../../format/lib/content/box-shape.js";import{boxAngleStyle as Wt}from"../../format/lib/content/box-angle.js";import{BOX_JUMP_ATTR as Xt,BOX_LINK_ATTR as Es,BOX_LINK_CLASS as ks,BOX_LINKED_CLASS as Gt,boxJumpBlocksClass as jt,boxJumpCss as Kt,boxJumpSlug as Ut,boxLinkOf as zt,siteLinkDraws as Yt}from"../../format/lib/content/box-link.js";import{SiteLink as Jt}from"../lib/site-runtime.js";import{sectionBorderStyle as Is}from"../../format/lib/content/borders.js";import{finiteNumber as ve}from"../../format/lib/finite-number.js";import{padDefaultIn as L,padSideValue as Re,sectionPadAttrs as Zt}from"../lib/content/section-padding.js";import{SECTION_FILL_CLASS as Pe}from"../../format/lib/content/section-min-height.js";import{ON_MEDIA_INK_STYLE as qt,rowFillInkStyle as Qt}from"../../format/lib/content/ink.js";import{useThemeLightInk as el}from"./ThemeLightInkContext.js";import{sizedBackground as so}from"../../format/lib/sized-image.js";import{BOX_REVEAL_CLASS as ol,BOX_REVEAL_CSS as sl,BOX_REVEAL_SHEET as nl,PHOTO_HOST_ATTR as rl,resolveImageTreatment as tl}from"../../format/lib/content/image-treatment.js";import ll,{HoverArrowsSlot as il,HoverMediaArrows as cl}from"./HoverMediaLayer.js";import{HOVER_ARROWS_HOST_ATTR as al,HOVER_ARROWS_HOST_CLASS as dl,HOVER_LAYER_GROUND as ul,cardRowHoverMedia as ml,hoverLayerName as fl}from"../../format/lib/content/hover-media.js";import{BOX_HIGHLIGHT_CLASS as hl,BOX_HIGHLIGHT_OVER_ROW_INK_CLASS as Cl,BOX_SHOW_ON_CARD_HOVER as bl}from"../../format/lib/animation/hover.js";import{BoxRail as Sl,BoxRailStop as wl,RAIL_STOPS_CLASS as xl,useTimelineRail as pl}from"./TimelineRail.js";import{SHARED_PLAIN_ATTR as _l,sharedColumnsClasses as vl,sharedColumnsCss as Rl,sharedRowsClasses as Pl,sharedRowsCss as Ol}from"../lib/content/box-shared-columns.js";import Bs from"./PhotoHoverSheet.js";import{PICTURE_FRAME_ONLY as Al,PictureHoverMoveSheet as $l,PictureHoverZoom as Ll,pictureHoverMoveOf as yl}from"./PictureHoverMove.js";import{BOX_DESKTOP_LINE as Nl,stackGutterClass as El,stackLineCss as kl,stackOuterClass as Il,stackRowClass as Bl,storedStackLine as no}from"../lib/content/box-stack-line.js";const ro={"--sf-site-gutter":"0px"},gl={overflowX:"clip",overflowY:"visible"},Tl={stretchedRow:!1,fillingColumn:!1,columnsRow:!1},gs={desktop:!1,phone:!1},Ts="bg-cover bg-center bg-[image:var(--sf-box-bg)] max-view-wide:bg-[image:var(--sf-box-bg-p)]",to=u=>u==null||u==="",lo=u=>!to(u)&&Number(u)===0;function Hl({children:u}){return e(O,{children:u(mr())})}function Fl({direction:u,label:Hs,tabShape:Fs,gap:io,gapPhone:Ds,gapTablet:Oe,justify:U,align:y,wrap:ae,share:Vs,sharePhone:z,shareTablet:T,wrapPhone:Ms,orderPhone:Ws,phoneRow:p,columns:m,columnsTablet:H,separator:f,stackBelow:de,blockSpacing:co,bgImage:Xs,bgImagePhone:Gs,rowImage:js,hoverShow:Ks,pictureHover:F,darken:Ae,darkenStyle:ue,darkenTablet:Us,darkenPhone:zs,darkenStyleTablet:Ys,darkenStylePhone:Js,placement:Zs,padV2:ao=!1,border:qs,borderTablet:Qs,borderPhone:en,borderUnits:uo,pad:r={},contained:$e=!0,fillHeight:N=!1,shadow:Le,shadowTablet:mo,shadowPhone:fo,justifyTablet:ho,justifyPhone:on,alignTablet:sn,alignPhone:nn,wrapTablet:Co,blockSpacingTablet:rn,blockSpacingPhone:tn,loop:h,scrollDirection:ye=_t,loopSeconds:ln=vt,loopDelay:cn=pt,editing:E=!1,fillColor:bo,fillColorTablet:an,fillColorPhone:dn,fillFade:un,swatch:mn,line:_,upcoming:fn,link:hn,rowLink:So,highlight:Cn,boxShape:wo,boxShapePhone:bn,boxShapeTablet:Sn,angle:wn,jumpHighlight:xn,anchor:pn,sharedSides:_n=gs,sharedRows:vn=!1,boxId:D,slotCount:Rn,mirrorCards:xo,content:i,rowTitle:Ne,startsOpen:Pn,rowStyle:On,sideSpace:An}){const n=Tr(),k=Nt({[x]:js},n!==null)[x],po=Ns({[x]:k}),c=po?gs:_n,$n=po?!1:vn,_o=Et({[x]:k},n?.row),C=_o??Xs,Ee=_o===null?Gs:void 0,vo=ur(Ps),[Ro,Ln]=fr(null),yn=Wr(),Po=jr()&&!(yn&&n!==null),v=Xr(),b=Zr({inCopy:n!==null,nestedCopy:n?.nested===!0,underBox:Po}),ke=Ks===bl&&n!==null&&!b&&!(E&&n.previewHover===!0),Oo=eo(qs,n,b),Ao=eo(Qs,n,b),$o=eo(en,n,b),Lo=n===null&&!Po&&v?.ids&&D?v.ids.indexOf(D):-1,me=Lo>=0&&v&&D?Mr(v,D,Lo):-1,S=me>=0?v?.hand??null:b&&v?.copies===!0?v.hand:null,s=S?.row?"row":u,d=S?.row?S.row.share:Vs,Nn=S?.row?S.row.phoneReverse?[...i.blockIds??[]].reverse():void 0:Ws,fe=$n&&!S?.row,V=E?"":So&&n?Fr(n.row,So)??"":zt(hn),R=N?"":Mt(wo,bn,Sn),En=!N&&Vt(wo)!=="",I=Ut(xn,pn),Ie=kt({swatch:mn},n?.row),Y=Ie??At(bo),B=Ie?{className:"",style:{}}:Lt(bo,an,dn),kn=el(),yo=Qt(Ie,kn??void 0),In=_e(C)||_e(Ee),Bn=(Y||B.className)&&!In?$t(un):null,No=Y||B.className?{...Y?{backgroundColor:Y}:{},...B.style,...Bn,...yo}:void 0,Eo=pl(),J=_===!0&&s!=="tabs"&&s!=="accordion",t=Ns({bgImage:C,[x]:k}),ko=Wt(wn),Io=t?void 0:No,he=t?null:Cn??null,gn=ko||he?{...Io,...ko,...he}:Io,Ce=gr(),Tn=yr(),Hn=wr(),Bo=br(),go=Cr(),Fn=Sr(),l=s==="accordion",Be=vr(On),Z=l&&Be==="numbered",ge=l&&Be==="chevron",Te=Ar(),Dn=Or(),M=xt(s,f),a=h==="scroll"&&s!=="tabs"&&!l,Vn=Gr(),be=b||me>=0&&S!==null,To=S?S.mirror:xo,Mn=me>=0?me:n?.index,q=b&&Hr(n?.ownerType),Ho=As({direction:s,separator:f,loop:h,line:_,bgImage:C,[x]:k,columns:m,columnsTablet:H,share:d,wrap:ae},be,c.desktop)&&Ur(To,Mn),Wn=As({direction:s,separator:f,loop:h,line:_,bgImage:C,[x]:k,columns:m,columnsTablet:H,share:d,wrap:ae},be,c.desktop)&&zr(To)!==null,W=ct({direction:s,separator:f,loop:h,line:_,columns:m}),g=at({direction:s,separator:f,loop:h,line:_,columnsTablet:H}),Q=dt({direction:s,separator:f,loop:h,line:_,columns:m,columnsTablet:H,share:d,shareTablet:T}),ee=et(An)===Qr,He=qr(ee),Fo=J&&no(de)===Nl,X=s==="row"&&!t&&!M&&!a&&(!J||Fo)&&g===""&&Q===""?no(de):void 0,G=X??(s==="column"&&!t?no(de):void 0),Xn=Lr(),Se=vl(c,i.blockCount??0,X),Gn=(Se&&(!n||n.index===0)?Rl(c,i.blockCount??0,X):"")+(fe&&(!n||n.index===0)?Ol(fe,i.blockCount??0):""),Do=Pl(fe,i.blockCount??0),Vo=g!==""?Number(H)>=2:Q===""||K(T)!=="",Mo=g!==""||Q!=="",Wo=s==="row"&&!M&&!a&&_!==!0,Fe=Wo&&!c.phone&&!c.desktop?Rr(Pr(Nn,i.blockIds??[]),{editing:E}):void 0,Xo=Fe!==void 0&&!E,jn=W!==""?Number(m)>=2:K(d)!=="",Go=!t&&!l&&!Wn&&!c.desktop&&!c.phone,we=Go&&!a?tt(U,ho,on):"",De=t||be?"":Yr(Vn,s,a?void 0:U,y,we?ho:void 0),Kn=/view-wide:max-view-desktop:justify-/.test(De)?we.split(" ").filter(o=>!o.startsWith("view-wide:max-view-desktop:justify-")).join(" "):we,Un=Go&&s==="row"?st(y,sn,nn):"",zn=!a&&!l&&W===""&&g===""&&!c.desktop?lt(ae,Co):"",jo=[l?"":K(d),s==="row"?it(d):"",W,g,Q,nt(l?"gap":co),bt(s,f),l&&!Z&&!ge?"border-t border-line":"",Kn,Un,zn,l?"":rt(co,rn,tn),l?Ls(m,p,Z||ge):"",Z?pr:""].filter(Boolean).join(" "),Yn=jo?` ${jo}`:"",Ko=["flex",s==="row"?M||a?"flex-row":`flex-row ${ce(p,z,Ms,Co)}`:"flex-col",ht(a||l?!1:ae),t?yt(Zs??"center",s):ot(a||l?void 0:U,l?void 0:y)+(De?` ${De}`:"")].join(" ")+Yn,oe=N||t||R||Te?` ${Pe}`:"",Ve=En?` ${R}`:R?`${oe} ${R}`:oe,Uo=Dn&&s==="column"&&!t&&!a&&K(d)===""&&(typeof U=="string"&&U!=="start"||we!==""),zo=oe||(Uo?` ${Pe}`:""),Me=V?` ${Gt}`:"",We=t||Ce||ao?"":" py-6",Jn=X===void 0?"":` ${Bl(X)}`,Yo=G===void 0||ee?"":` ${El(G)}`,Xe=G===void 0?"":` ${Il(G)}`,Zn=`${oo}${We} ${He}${Ve}${Me}${Yo}${Xe}`,qn=Ce?`${Ve}${Me}${Xe}`.trim():`w-full${We}${Ve}${Me}${Xe}`,se=(Z||ge)&&Ls(m,p)===""?$s("Flex",0,"block"):$s("Flex",io,s==="row"?"inline":"block",Ds,M||a?void 0:Oe),Jo=ft(d,T,s==="row"?i.blockCount??0:0),Zo=M?{...se.style,...wt(s,f)}:se.style,Qn=Jo?{...Zo,...Jo}:Zo,Ge=(o="")=>e(i,{className:`${Ko}${Ho?` ${Jr}`:""}${se.className}${zo}${Jn}${o?` ${o}`:""}${J?` ${xl}`:""}${I?` ${jt(I)}`:""}${Se}${Do}`,style:Qn,minEmptyHeight:120,...Fe?{cell:Fe}:null}),qo=Rt(ye)?"":St(s,f),Qo=a?e(Pt,{direction:ye,seconds:ln,delay:cn,editing:E,copy:o=>Ge(o&&qo?`${o} ${qo}`:o)}):Z?A(O,{children:[e("style",{children:_r}),Ge()]}):Ge(),je=s==="tabs"?e(hr,{className:`${Ko}${se.className}${Te&&!N&&!t&&!R?"":oe}`,style:se.style,shape:Fs,children:Qo}):Qo,Ke=l?e(Qe.Provider,{value:"accordion",children:e(qe.Provider,{value:Be,children:je})}):Bo?e(Qe.Provider,{value:!1,children:e(qe.Provider,{value:"plain",children:je})}):je,es=s==="row"&&!t&&(y===void 0||y==="stretch"),er={stretchedRow:es,fillingColumn:s==="column"&&(Te||Uo),columnsRow:W!==""||g!==""||Se!==""||Do!==""||s==="row"&&(Array.isArray(d)||Array.isArray(T))||Xo,...Xo?{phoneCells:!0}:null,...es&&Wo&&(i.blockCount??0)>=2&&jn?{picturesFillRow:!0}:null,...Mo&&!Vo?{fillFrom:"desktop"}:null,...ut(p,z)&&(!Mo||Vo)?{phoneRowFills:!0}:null,...D?{id:D}:null},os=n===null?Kr({direction:s,loop:h,bgImage:C,[x]:k,columns:m,mirrorCards:xo},!1):null,ss=os?e(Os.Provider,{value:{hand:os,ids:i.blockIds??[],boxes:[]},children:Ke}):v?e(Os.Provider,{value:null,children:Ke}):Ke,ns=e(vs.Provider,{value:er,children:e(_s.Provider,{value:!1,children:be?e(Vr.Provider,{value:Ho,children:e(Dr.Provider,{value:!b,children:ss})}):ss})}),or=Ne?.blockCount??0,rs=Bo==="accordion"&&!!Ne&&(E||or>0)?e(xr,{startsOpen:Pn===!0||Fn&&b&&n?.index===0,editing:E,numbered:go==="numbered",chevron:go==="chevron",title:e(vs.Provider,{value:Tl,children:e(_s.Provider,{value:!1,children:e(Qe.Provider,{value:!1,children:e(qe.Provider,{value:"plain",children:e(Ne,{className:`min-w-0 flex-1 ${Ct}`,minEmptyHeight:24})})})})}),children:ns}):ns,Ue=J?e(Sl,{row:s==="row",stops:i.blockCount??0,desktopLine:X!==void 0&&Fo,children:rs}):rs,sr=Hs?.trim()||(Hn?"":void 0),nr={values:r,frame:We?24:0},rr=o=>Eo?e(wl,{on:Eo,future:fn===!0,children:o}):o,tr=o=>Yt(V)?e(Jt,{href:V,newTab:"auto",className:ks,"aria-labelledby":o,[Es]:""}):e("a",{href:V,className:ks,"aria-labelledby":o,[Es]:""}),ts=(I?Kt(I):"")+Gn+(G===void 0||n&&n.index!==0?"":kl(G,{gutter:!ee})),ls=ts?e("style",{dangerouslySetInnerHTML:{__html:ts}}):null,ne=Ft({loop:h,direction:s,scrollDirection:ye,bgImage:C,[x]:k}),lr=c.desktop&&Se!==""&&!Y&&!B.className&&!Is(Oo,$o,Ao,uo)&&!Tt(Le,mo,fo)&&!V&&!R&&!N&&!I&&!Dt($e&&!ne,Xn)&&lo(io)&&(to(Oe)||lo(Oe))&&ao&&Object.values(r).every(o=>to(o)||lo(o)),ir=o=>({...lr?{[_l]:""}:null,...t?null:{...gt(Le),...Ht(Le,mo,fo)},...I?{[Xt]:I}:null,...o?{id:o}:null}),is=W!==""?Number(m):0,cr=ce(p,z)===ce(void 0),ar=(s==="column"||s==="row"&&!M&&!a&&(is===1&&cr||is===0&&i.blockCount===1))&&!t&&!J&&!Ce,cs=t&&Tn&&!Ce,xe=!t&&n!==null?ys(Ae,ue):null,as=ke||xe?A(O,{children:[ke?e(Bs,{sheet:sl,name:nl}):null,xe?e("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 -z-10 rounded-[inherit]",style:xe}):null]}):null,ds=[ke?ol:"",xe?"relative isolate":""].filter(Boolean).join(" "),us=o=>as?A(O,{children:[as,o]}):o,ms=(o,P)=>rr(e($r,{contained:$e&&!ne,style:ne?ro:void 0,framedClass:Zn,fillClass:qn,columnClass:`${oo} ${He}${zo}${Yo}`,tabLabel:sr,pad:t?void 0:nr,border:Is(Oo,$o,Ao,uo),outerAttrs:ir(P),box:!0,edge:ar,outerStyle:gn,outerClass:t?ds||void 0:[B.className,he?hl:"",he&&yo?Cl:"",ds].filter(Boolean).join(" ")||void 0,bleed:cs,siteSide:ee,children:ls||P?A(O,{children:[ls,P?tr(P):null,ne?e(Rs,{children:o}):o]}):ne?e(Rs,{children:o}):o})),ze=o=>V?e(Hl,{children:P=>ms(us(o),P)}):ms(us(o)),fs=o=>vo.bound?e(kr,{children:o}):o;if(!t){const o=y===void 0||y==="stretch",P=(K(d)!==""||W!==""||g!=="")&&!mt(p,z)&&!(Q!==""&&K(T)==="")&&(o||ce(p)!==ce(void 0));if(!(s==="row"?P:s==="column"&&o))return ze(fs(Ue));const ps=Ir({direction:s,separator:f,loop:h,line:_,share:d,shareTablet:T,sharePhone:z,phoneRow:p,columns:m,columnsTablet:H,stackBelow:de,shared:c.desktop||c.phone||fe,count:Rn}),dr={hasWidth:!0,...ps?{bound:Br(ps,vo.bound)}:null};return ze(e(Ps.Provider,{value:dr,children:Ue}))}const re=_e(C),te=re?ys(Ae,ue):null,pe=re?It({darken:Ae,darkenStyle:ue,darkenTablet:Us,darkenStyleTablet:Ys,darkenPhone:zs,darkenStylePhone:Js}):{className:"",style:{}},Ye=_e(Ee),hs=re?Ye?{"--sf-box-bg":so(C??""),"--sf-box-bg-p":so(Ee??"")}:{backgroundImage:so(C??""),backgroundSize:"cover",backgroundPosition:"center"}:{},Cs=tl(void 0,void 0,F),j=Cs.className?Cs:null,le=re&&n&&F?.kind==="nextImage"&&F.media?ml(n,F.media):null,w=re?yl(F,ue)??(le?Al:null):null,bs=F?.media?.cover??"picture",Je=le?e("div",{className:`absolute inset-0 isolate${q?" rounded-[inherit]":""}`,children:e(il.Provider,{value:Ln,children:e(ll,{media:le,name:fl(n?.row),cover:bs,ground:ul[bs],arrowsAbove:!0})})}):null,ie=j!==null||!!w?.zoom,Ss=ie?e("div",{"aria-hidden":!0,className:`absolute inset-0${q?" rounded-[inherit]":""}${Ye?` ${Ts}`:""}${j?` ${j.className}`:""}`,style:{...hs,...j?.style??{}}}):null,Ze=Zt({...r,top:ve(r.top)??L($.desktop,r.unit,"desktop"),bottom:ve(r.bottom)??L($.desktop,r.unit,"desktop"),topPhone:ve(r.topPhone)??L($.phone,r.unitPhone,"mobile"),bottomPhone:ve(r.bottomPhone)??L($.phone,r.unitPhone,"mobile"),left:Re(r.left)??L($.side,r.unit,"desktop"),right:Re(r.right)??L($.side,r.unit,"desktop"),leftPhone:Re(r.leftPhone)??L($.sidePhone,r.unitPhone,"mobile"),rightPhone:Re(r.rightPhone)??L($.sidePhone,r.unitPhone,"mobile"),sideSpace:ee?"site":"box"}),ws=e("div",{className:`relative z-[1] ${Ot} ${Ze?.className??""}${N||R?` ${Pe}`:""}`.trimEnd(),style:te?{...Ze?.style,...ro,...qt}:{...Ze?.style,...ro},children:fs(Ue)}),xs=cs&&$e?e("div",{className:`${oo} ${He}${N||R?` ${Pe}`:""}`,children:ws}):ws;return ze(e(O,{children:A("div",{className:`relative isolate overflow-hidden ${Bt}${oe}${Ye&&!ie?` ${Ts}`:""}${B.className?` ${B.className}`:""}${w?` ${w.className}`:""}`,style:{...q?gl:{},...No,...ie?{}:hs,...w?w.style:{}},...j||le?{[rl]:""}:{},children:[e($l,{move:w}),ie&&A(O,{children:[e(Bs,{sheet:j?.sheet}),w?.zoom?e("div",{className:`absolute inset-0 overflow-hidden${q?" rounded-[inherit]":""}`,children:A(Ll,{move:w,className:"absolute inset-0",children:[Ss,Je]})}):A(O,{children:[Ss,Je]})]}),!ie&&Je,e(Er,{wash:te&&pe.className?{...te,...pe.style}:te,hover:w?.washHover,...q?{className:"rounded-[inherit]"}:{},...pe.className?{restClassName:pe.className}:{}}),te?e(Nr,{children:xs}):xs,le?e("div",{[al]:"",className:dl,children:Ro?e(cl,{state:Ro}):null}):null]})}))}export{Fl as default};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type BandPad } from "../lib/content/section-padding.js";
|
|
1
2
|
import type { SlotComponent } from "efficient-easel/blocks";
|
|
2
3
|
import type { CardPressTitle } from "../lib/document/card-press-titles.js";
|
|
3
4
|
import type { MapThemeMode } from "../../format/lib/map-styles.js";
|
|
@@ -11,6 +12,7 @@ export interface FootprintProps {
|
|
|
11
12
|
mapTheme?: MapThemeMode;
|
|
12
13
|
padTop?: number;
|
|
13
14
|
padBottom?: number;
|
|
15
|
+
bandPad?: BandPad;
|
|
14
16
|
editing?: boolean;
|
|
15
17
|
omitHead?: boolean;
|
|
16
18
|
dealers?: boolean;
|
|
@@ -23,4 +25,4 @@ export interface FootprintProps {
|
|
|
23
25
|
ownerId?: string;
|
|
24
26
|
pressTitles?: readonly CardPressTitle[];
|
|
25
27
|
}
|
|
26
|
-
export default function Footprint({ sectionNumber, heading, tagline, offices, mapTheme, padTop, padBottom, editing, omitHead, dealers, search, searchHint, noMatchText, listPosition, showDistance, template, ownerId, pressTitles, }: FootprintProps): import("react").JSX.Element | null;
|
|
28
|
+
export default function Footprint({ sectionNumber, heading, tagline, offices, mapTheme, padTop, padBottom, bandPad, editing, omitHead, dealers, search, searchHint, noMatchText, listPosition, showDistance, template, ownerId, pressTitles, }: FootprintProps): import("react").JSX.Element | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as t,jsxs as
|
|
1
|
+
"use client";import{jsx as t,jsxs as f}from"react/jsx-runtime";import{bandPadAttrs as W}from"../lib/content/section-padding.js";import{innerPaddingFallback as q}from"../lib/document/passes/section-padding.js";import{HideTaker as Q}from"./ViewHideRoot.js";import{isWebAddress as X}from"../../format/lib/content/box-link.js";import{SiteLink as Y}from"../lib/site-runtime.js";import{useEffect as I,useMemo as Z,useState as j}from"react";import{CardTemplateRows as E}from"./CardRowContext.js";import{footprintCardRow as P,footprintPins as J,footprintSearchText as U}from"../../format/lib/content/footprint.js";import{LIST_KEY_ATTR as V,LIST_ROW_ATTR as ee,LIST_TEXT_ATTR as te}from"../../format/lib/content/list-query.js";import{parseListPosition as le}from"../../format/lib/content/list-position.js";import{bucketByGroup as re,groupColsClass as ae}from"../../format/lib/locations-grid.js";import ne from"./EditorialSectionHead.js";import{LocationGroupHeader as ie}from"./LocationGroupHeader.js";import{renderGold as oe,renderHeadline as se}from"./goldPhrases.js";import me from"./PartStyledText.js";import{say as R}from"../../format/lib/editor-words.js";import ce from"./DealerFinder.js";import de from"./ListSearchBox.js";import pe,{SIDE_MAP_CLASS as fe}from"./SideListLayout.js";import ue from"./SiteMap.js";import{InsideSiteColumn as B}from"./SiteGutterFrame.js";const a={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)]"},G=`absolute bottom-5 left-6 font-mono ${a.labelSmall} uppercase tracking-[0.24em] text-accent hover:underline`;function be({sectionNumber:u="",heading:s="",tagline:x="",offices:r=[],mapTheme:b="auto",padTop:T,padBottom:L,bandPad:g,editing:m,omitHead:$=!1,dealers:c=!1,search:d=!1,searchHint:n="",noMatchText:S="",listPosition:p="below",showDistance:K=!0,template:_,ownerId:y="",pressTitles:O}){const k=c===!0,w=le(p),C=g??W({padTop:T,padBottom:L},q("Footprint")),[v,h]=j(null),z=r.length===0&&!k&&!u&&!s&&!x;if(I(()=>{h(e=>e!==null&&e>=r.length?null:e)},[r]),z&&!m)return null;const M=re(r,e=>String(e.group??""),()=>""),D=(e,l)=>{const o=v===l,i=e.href&&e.linkLabel?{href:e.href,label:e.linkLabel}:null,N=f("button",{type:"button",onClick:()=>h(l),"aria-pressed":o,className:["flex flex-col gap-1.5 bg-bg px-6 py-5 text-left transition-colors outline outline-1 -outline-offset-1",o?"outline-accent":"outline-transparent hover:outline-line",i?"w-full pb-11":""].filter(Boolean).join(" "),children:[f("span",{className:`flex items-center gap-2.5 font-mono ${a.labelSmall} uppercase tracking-[0.28em]`,children:[e.hq&&t("span",{className:`border border-accent bg-accent px-1.5 py-0.5 ${a.bodySmall} text-bg`,children:"HQ"}),e.role&&t("span",{className:"text-accent",children:e.role})]}),e.city&&t("span",{className:`font-display ${a.bodyLarge} font-medium leading-[1.2] tracking-[-0.01em] text-fg`,children:t(me,{value:e.city,children:e.city})}),e.country&&t("span",{className:`font-mono ${a.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:e.country}),e.address&&t("span",{className:`font-mono ${a.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:oe(e.address)})]},i?void 0:l);return i?f("div",{className:"relative flex",children:[N,X(i.href)?t(Y,{newTab:"auto",href:i.href,className:G,children:`→ ${i.label}`}):t("a",{href:i.href,className:G,children:`→ ${i.label}`})]},l):N},A=M.flatMap(e=>e.items),F=e=>t("div",{className:"mt-12 flex flex-col gap-8",children:M.map((l,o)=>f("div",{children:[l.key&&t(ie,{groupKey:l.key,count:l.items.length}),t("div",{className:["grid gap-[2px] bg-bg",ae(l.items.length),l.items.length>2?"max-view-desktop:grid-cols-2 max-[700px]:grid-cols-1":l.items.length===2?"max-[700px]:grid-cols-1":""].join(" "),children:e(l)})]},l.key?`g:${l.key}`:`ungrouped:${o}`))});return t(Q,{as:"section",className:"relative z-[2] bg-bg",children:f("div",{className:["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))]",C.className].filter(Boolean).join(" "),style:C.style,children:[!$&&(u||s||x)&&t(ne,{num:u,title:s?se(s):void 0,desc:x||void 0,spaceBelow:"mb-12"}),k?t(ce,{mapLabel:s.replace(/[=*]/g,"").replace(/\s+/g," ").trim(),mapTheme:b,search:d,searchHint:n,noMatchText:S,listPosition:p,showDistance:K,editing:m,template:_,ownerId:y}):w!=="below"?t(pe,{position:w,attrs:{"data-footprint-list":w},head:d?t("div",{className:"mb-4",children:t(de,{hint:n,noMatchText:S,listKey:`${y}:offices`,editing:m})}):null,listAttrs:d?{[V]:`${y}:offices`}:void 0,list:t(B,{children:t(E,{ownerId:y,ownerType:"Footprint",Template:_,rows:r.map(P),states:r.map((e,l)=>v===l?{selected:!0}:void 0),actions:r.map((e,l)=>({press:()=>h(l)})),pressTitles:O,copyAttrs:e=>({[ee]:"",[te]:U(r[e.index])}),fallback:null,children:e=>e})}),map:t(H,{offices:r,mapLabel:s.replace(/[=*]/g,"").replace(/\s+/g," ").trim(),mapTheme:b,activeIndex:v,onSelect:h,editing:m,frame:`sf-card relative w-full overflow-hidden border border-line ${fe}`})}):t(H,{offices:r,mapLabel:s.replace(/[=*]/g,"").replace(/\s+/g," ").trim(),mapTheme:b,activeIndex:v,onSelect:h,editing:m}),!k&&w==="below"&&r.length>0&&t(E,{ownerId:y,ownerType:"Footprint",Template:_,rows:A.map(({item:e})=>P(e)),states:A.map(({index:e})=>v===e?{selected:!0}:void 0),actions:A.map(({index:e})=>({press:()=>h(e)})),fallback:F(e=>e.items.map(({item:l,index:o})=>D(l,o))),children:e=>{const l=e;let o=0;return t(B,{children:F(i=>{const N=l.slice(o,o+i.items.length);return o+=i.items.length,N})})}}),!k&&r.length===0&&m&&t("p",{className:`mt-8 font-mono ${a.labelLarge} uppercase tracking-[0.24em] text-fg-dim`,children:R("Add an office in the inspector")})]})})}function H({offices:u,mapLabel:s,mapTheme:x,activeIndex:r,onSelect:b,editing:T,frame:L}){const g=Z(()=>J(u),[u]),[m,$]=j(null),c=r===null?null:String(r),d=c!==null&&g.some(p=>p.key===c);if(I(()=>{c!==null&&d&&$(p=>({key:c,n:(p?.n??0)+1}))},[c,d]),g.length===0)return T?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 ${a.labelLarge} uppercase tracking-[0.24em] text-fg-dim`,children:R("Add office coordinates to plot the map")})}):null;const n=d&&r!==null?u[r]:null,S=n?f("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:[f("div",{className:"min-w-0 flex-1",children:[f("div",{className:`flex items-center gap-2 font-mono ${a.labelSmall} uppercase tracking-[0.28em]`,children:[n.hq&&t("span",{className:`bg-accent px-1.5 py-px ${a.bodySmall} text-bg`,children:"HQ"}),n.role&&t("span",{className:"text-accent",children:n.role})]}),n.city&&t("div",{className:`mt-1.5 font-display ${a.bodyLarge} font-medium leading-[1.2] text-fg`,children:n.city}),n.country&&t("div",{className:`mt-1 font-mono ${a.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:n.country})]}),t("button",{type:"button",onClick:()=>b(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(ue,{pins:g,mapTheme:x,ariaLabel:s||"Offices",className:L??"sf-card relative aspect-[16/9] w-full overflow-hidden border border-line max-view-tablet:aspect-[4/5]",selectedKey:d?c:null,focus:m,onSelect:p=>b(Number(p)),card:S})}export{be as default};
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
interface HeroPosterProps {
|
|
2
2
|
videoSrc?: string;
|
|
3
|
+
videoAv1Src?: string;
|
|
4
|
+
videoSrcPhone?: string;
|
|
5
|
+
videoAv1SrcPhone?: string;
|
|
3
6
|
posterSrc?: string;
|
|
7
|
+
posterSrcPhone?: string;
|
|
4
8
|
showVideo?: boolean;
|
|
5
9
|
playbackRate?: number;
|
|
6
10
|
objectPosition?: string;
|
|
@@ -11,5 +15,5 @@ interface HeroPosterProps {
|
|
|
11
15
|
laterSlide?: boolean;
|
|
12
16
|
laterOfLead?: boolean;
|
|
13
17
|
}
|
|
14
|
-
export default function HeroPoster({ videoSrc, posterSrc, showVideo, playbackRate, objectPosition, objectPositionPhone, objectPositionTablet, quiet, slideShown, laterSlide, laterOfLead, }: HeroPosterProps): import("react").JSX.Element;
|
|
18
|
+
export default function HeroPoster({ videoSrc, videoAv1Src, videoSrcPhone, videoAv1SrcPhone, posterSrc, posterSrcPhone, showVideo, playbackRate, objectPosition, objectPositionPhone, objectPositionTablet, quiet, slideShown, laterSlide, laterOfLead, }: HeroPosterProps): import("react").JSX.Element;
|
|
15
19
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as a,jsxs as
|
|
1
|
+
"use client";import{jsx as a,jsxs as H}from"react/jsx-runtime";import{useEffect as l,useRef as R,useState as n}from"react";import{SiteImage as oe}from"../lib/site-runtime.js";import ae from"./HeroHeldFrame.js";import{isExternalMediaUrl as ne,videoForView as ie,videoSources as le}from"../lib/media.js";import{EDGE_PHONE_MEDIA as T}from"../lib/content/view-values.js";import{EDGE_WIDE_MEDIA as ce}from"../../format/lib/content/view-lines.js";import{useViewWidthRead as de}from"./SectionAnimation.js";import{sizedImage as W}from"../../format/lib/sized-image.js";import{phoneFocus as ue}from"../../format/lib/content/phone-focus.js";import{useFirstScreenPlace as me}from"../lib/first-screen.js";const fe=.5;function pe({videoSrc:$,videoAv1Src:M,videoSrcPhone:V,videoAv1SrcPhone:G,posterSrc:q,posterSrcPhone:B,showVideo:F=!0,playbackRate:z=fe,objectPosition:u="50% 50%",objectPositionPhone:K,objectPositionTablet:O,quiet:b=!1,slideShown:U,laterSlide:I=!1,laterOfLead:Y=!1}){const m=ue(K,O),v=me(),[h,J]=n(!1),w=v==="below"&&!h,Q=v==="first",t=q||"",r=B||"",L=R(null),N=de(L,!0,!0),y=N===void 0?void 0:N==="phone",k=ie({video:$,av1:M,videoPhone:V,av1Phone:G},y===!0),o=k.video||"",X=le(o,k.av1),[E,S]=n(!1),[x,_]=n(!1),[Z,C]=n(!1),[ee,j]=n(!1),f=U??!0,[g,te]=n(!1),i=v!=="first"&&!Y,[c,A]=n(!1),P=R(null);l(()=>{if(!i)return;if(document.readyState==="complete"){A(!0);return}const e=()=>A(!0);return window.addEventListener("load",e,{once:!0}),()=>window.removeEventListener("load",e)},[i]),l(()=>{S(!1),_(!1),C(!1),j(!1)},[o,t,r]),l(()=>{f&&te(!0)},[f]),l(()=>{const e=P.current;e&&(f?e.play()?.catch(()=>{}):e.pause())},[f,g,c]),l(()=>{if(!I||i&&!c)return;const e=()=>J(!0);if(typeof window.requestIdleCallback=="function"){const se=window.requestIdleCallback(e,{timeout:2e3});return()=>window.cancelIdleCallback(se)}const s=setTimeout(e,800);return()=>clearTimeout(s)},[I,i,c]),l(()=>{const e=P.current;if(!e)return;const s=()=>{e.playbackRate=z};return s(),e.addEventListener("loadedmetadata",s),()=>e.removeEventListener("loadedmetadata",s)},[o,z]);const D=ne(t),d=t&&(D||r)&&!x?W(t):{src:t},p=r&&!x?W(r):{src:r},re=r&&!w&&!h?[{sized:p,media:T},...t?[{sized:d,media:ce}]:[]]:[];return H("div",{ref:L,className:"absolute inset-0 z-[1]",children:[a("div",{className:"absolute inset-0",style:{background:"var(--site-surface)"}}),re.map(({sized:e,media:s})=>a("link",{rel:"preload",as:"image",href:e.src,media:s,fetchPriority:"high",...e.srcSet?{imageSrcSet:e.srcSet,imageSizes:"100vw"}:{}},s)),(t||r)&&(D||r?(()=>{const e=a("img",{...t?{src:d.src}:{},...d.srcSet?{srcSet:d.srcSet,sizes:"100vw"}:{},alt:"",...w?{loading:"lazy"}:{},...Q?{fetchPriority:"high"}:{},className:`absolute inset-0 z-[2] h-full w-full object-cover ${m.className}`.trim(),style:{display:E?"none":"block",objectPosition:u,...m.style},onError:s=>{s.currentTarget.currentSrc&&(d.srcSet||p.srcSet?_(!0):S(!0))}},r?void 0:t);return r?H("picture",{children:[a("source",{media:T,srcSet:p.srcSet||p.src,sizes:"100vw"}),e]},`${t} ${r}`):e})():a(oe,{src:t,alt:"",fill:!0,...w?{}:h?{loading:"eager"}:{priority:!0},sizes:"100vw",className:`z-[2] object-cover ${m.className}`.trim(),style:{display:E?"none":"block",objectPosition:u,...m.style},onError:()=>S(!0)},t)),F&&!b&&o&&y!==void 0&&g&&(!i||c)&&!Z&&a("video",{ref:P,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,preload:"metadata",className:"absolute inset-0 z-[3] h-full w-full object-cover",style:{objectPosition:u},onError:()=>C(!0),children:X.map(e=>a("source",{src:e.src,type:e.type},e.src))},o),F&&b&&o&&y!==void 0&&g&&(!i||c)&&!ee&&(!t||E)&&a(ae,{src:o,objectPosition:u,onError:()=>j(!0)},o)]})}export{pe as default};
|
|
@@ -22,6 +22,10 @@ export interface HeroSlideProps {
|
|
|
22
22
|
mediaSrc?: string;
|
|
23
23
|
videoSpeed?: number;
|
|
24
24
|
poster?: string;
|
|
25
|
+
mediaAv1?: string;
|
|
26
|
+
mediaSrcPhone?: string;
|
|
27
|
+
mediaAv1Phone?: string;
|
|
28
|
+
posterPhone?: string;
|
|
25
29
|
objectPosition?: string;
|
|
26
30
|
objectPositionPhone?: string;
|
|
27
31
|
objectPositionTablet?: string;
|
|
@@ -47,5 +51,5 @@ export interface HeroSlideProps {
|
|
|
47
51
|
partMotion?: Record<string, unknown>;
|
|
48
52
|
laterSlide?: boolean;
|
|
49
53
|
}
|
|
50
|
-
export default function HeroSlide({ name, process, mediaType, mediaSrc, videoSpeed, poster, objectPosition, objectPositionPhone, objectPositionTablet, tintColor, tintOpacity, groups: Groups, editing, themeClassName, themeStyle, overlayColor, overlayPosition, mediaLayout, mediaLayoutPhone, mediaImage2, objectPosition2, objectPosition2Phone, objectPosition2Tablet, tintColor2, tintOpacity2, videoSource, youtubeUrl, videoPlayback, partMotion, laterSlide, }: HeroSlideProps): import("react").ReactNode;
|
|
54
|
+
export default function HeroSlide({ name, process, mediaType, mediaSrc, videoSpeed, poster, mediaAv1, mediaSrcPhone, mediaAv1Phone, posterPhone, objectPosition, objectPositionPhone, objectPositionTablet, tintColor, tintOpacity, groups: Groups, editing, themeClassName, themeStyle, overlayColor, overlayPosition, mediaLayout, mediaLayoutPhone, mediaImage2, objectPosition2, objectPosition2Phone, objectPosition2Tablet, tintColor2, tintOpacity2, videoSource, youtubeUrl, videoPlayback, partMotion, laterSlide, }: HeroSlideProps): import("react").ReactNode;
|
|
51
55
|
export declare const HERO_SLIDE_SEEDS: Record<string, unknown>[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as e,jsxs as
|
|
1
|
+
"use client";import{jsx as e,jsxs as B}from"react/jsx-runtime";import{useTakeViewHide as He,withViewHide as ke}from"./ViewHideRoot.js";import{createContext as be,useContext as Te,useEffect as Ee,useRef as Le,useState as q}from"react";import Ae from"./HeroPoster.js";import{HeroMediaLayer as Oe,heroMediaReading as _e,HeroPickArea as Ne,heroPartEntrance as Ve,heroPartHover as Ce,heroPartScroll as Ie,heroPictureOrigins as Re,HeroPictureHover as je,heroPicturesHover as ze,HeroTint as De,HeroTwoPictures as Fe}from"./HeroPictures.js";import{HeroVideoBackdrop as $e,HeroVideoPlayer as Be}from"./HeroVideoPlay.js";import{BelowFirstScreen as qe,useFirstScreenPlace as Me}from"../lib/first-screen.js";import{markedChildren as Ue}from"../../format/lib/marked-children.js";import{resolveMedia as r}from"../lib/media.js";import{heroPhoneStackStyle as Ye}from"../../format/lib/hero-phone-stack.js";import{heroTextureGradient as Ge,heroTextureShown as Ke}from"../../format/lib/hero-texture.js";import{ON_MEDIA_INK_STYLE as Je}from"../../format/lib/content/ink.js";import{DEFAULT_TINT as M}from"../../format/lib/content/tint.js";import{overlayGradient as Qe,slideOverlayState as We}from"../../format/lib/sections/hero-overlay.js";import Xe from"./PhotoHoverSheet.js";const Ze=be({});function eo({name:w,process:d,mediaType:U="video",mediaSrc:c,videoSpeed:P,poster:H,mediaAv1:Y,mediaSrcPhone:G,mediaAv1Phone:K,posterPhone:J,objectPosition:u,objectPositionPhone:f,objectPositionTablet:p,tintColor:k=M,tintOpacity:b=0,groups:T,editing:i=!1,themeClassName:E,themeStyle:Q,overlayColor:W,overlayPosition:X,mediaLayout:Z,mediaLayoutPhone:ee,mediaImage2:oe,objectPosition2:re,objectPosition2Phone:te,objectPosition2Tablet:ie,tintColor2:ne=M,tintOpacity2:se=0,videoSource:ae,youtubeUrl:le,videoPlayback:de,partMotion:n,laterSlide:m=!1}){const h=He(),{alignment:oo="left",textureOpacity:L,textureOn:ce,textureColor:ue,quietVideo:fe,phoneUpDown:pe,phoneSideways:me,holdReel:he,reelHeld:ve,shownSlide:v,ratioMin:A}=Te(Ze),ye=Me(),O=m&&ye==="first",_=Le(null),[Se,xe]=q(v===void 0?void 0:!1);Ee(()=>{const g=_.current;xe(v===void 0||!g?void 0:Ue(g.closest(".hero-track"),"data-slide-name")[v]===g)});const o=U==="video",y=o?r(c):void 0,N=o?r(H):r(c)??r(H),t=o?{av1:r(Y),phone:r(G),av1Phone:r(K),poster:r(J)}:{},ge=typeof P=="number"?P/100:1,{fromYouTube:s,onClick:V,youTubeId:C,backgroundFile:a,desktopLayout:we,phoneLayout:Pe,twoPictures:I}=_e({isVideo:o,videoSource:ae,videoPlayback:de,youtubeUrl:le,mediaLayout:Z,mediaLayoutPhone:ee}),[S,R]=q(!1);S&&ve===!1&&R(!1);const x=!S,l=We({overlayColor:W,overlayPosition:X},ue),j=o?null:Ve(n,"image"),z=o?null:Ie(n,"image"),D=ze(n),F=e(je,{treatment:o?{}:Ce(n,"image"),children:e(Ae,{videoSrc:a?y:void 0,videoAv1Src:a?t.av1:void 0,videoSrcPhone:a?t.phone:void 0,videoAv1SrcPhone:a?t.av1Phone:void 0,posterSrc:N,posterSrcPhone:t.poster,showVideo:a,playbackRate:ge,objectPosition:u,objectPositionPhone:o?void 0:f,objectPositionTablet:o?void 0:p,quiet:fe,slideShown:Se,laterSlide:m,laterOfLead:O})}),$=B("section",{ref:_,className:ke(`${A?"relative min-h-full w-full overflow-clip":"relative h-full w-full overflow-hidden"}${E?` ${E}`:""}`,h.className),...h.attrs,style:Q,"data-slide-name":w??"","data-slide-process":d??"","data-slide-media":a&&y?"video":"still",...D.hostAttrs,children:[e(Xe,{sheet:D.sheet}),e(Oe,{partMotion:n,editing:i,children:I?e(Fe,{laterSlide:m,desktopLayout:we,phoneLayout:Pe,editing:i,marked:!1,partMotion:n,first:{src:c,objectPosition:u,objectPositionPhone:f,objectPositionTablet:p,tintColor:k,tintOpacity:b},second:{src:oe,objectPosition:re,objectPositionPhone:te,objectPositionTablet:ie,tintColor:ne,tintOpacity:se}}):s||j||z?B(Ne,{part:o?"media":"image",editing:i,marked:!1,entrance:j,scroll:z,origins:Re({objectPosition:u,objectPositionTablet:p,objectPositionPhone:f}),className:"absolute inset-0 z-[1]",children:[F,s&&e($e,{youTubeId:C,ownPoster:!!N,background:!V,editing:i})]}):F}),V&&e(Be,{youTubeId:C,fileSrc:s?void 0:y,fileAv1Src:s?void 0:t.av1,fileSrcPhone:s?void 0:t.phone,fileAv1SrcPhone:s?void 0:t.av1Phone,playing:S,onPlay:()=>{R(!0),he?.()},editing:i}),x&&!I&&e(De,{color:k,opacity:b,passClicks:!1}),x&&Ke(ce)&&e("div",{className:"absolute inset-0 z-[2]",style:{background:l.own?Qe(l.color,l.position??void 0):Ge(l.color),...L!==void 0?{opacity:L/100}:null}}),x&&e("div",{className:[A?"sf-hero-group-layer relative min-h-full z-[3] mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14":"sf-hero-group-layer absolute inset-0 z-[3] mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14",i?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{...Je,...Ye(pe,me)},children:T&&e(T,{className:"sf-hero-group-zone",minEmptyHeight:160})})]});return h.scope(O?e(qe,{children:$}):$)}const So=Array.from({length:3},(w,d)=>({name:`Slide ${d+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));export{So as HERO_SLIDE_SEEDS,Ze as HeroSlideStyleContext,eo as default};
|
|
@@ -4,9 +4,12 @@ export declare function HeroVideoBackdrop({ youTubeId, ownPoster, background, ed
|
|
|
4
4
|
background: boolean;
|
|
5
5
|
editing: boolean;
|
|
6
6
|
}): import("react").JSX.Element | null;
|
|
7
|
-
export declare function HeroVideoPlayer({ youTubeId, fileSrc, playing, onPlay, editing, }: {
|
|
7
|
+
export declare function HeroVideoPlayer({ youTubeId, fileSrc, fileAv1Src, fileSrcPhone, fileAv1SrcPhone, playing, onPlay, editing, }: {
|
|
8
8
|
youTubeId: string | null;
|
|
9
9
|
fileSrc?: string;
|
|
10
|
+
fileAv1Src?: string;
|
|
11
|
+
fileSrcPhone?: string;
|
|
12
|
+
fileAv1SrcPhone?: string;
|
|
10
13
|
playing: boolean;
|
|
11
14
|
onPlay: () => void;
|
|
12
15
|
editing: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as
|
|
1
|
+
"use client";import{jsx as r,Fragment as v,jsxs as b}from"react/jsx-runtime";import{useEffect as g,useRef as w,useState as x}from"react";import{PlaySolidIcon as y}from"efficient-shell/icons/efficient-looks";import{PagePicture as P}from"../lib/first-screen.js";import{videoForView as z,videoSources as j}from"../lib/media.js";import{useViewWidthRead as k}from"./SectionAnimation.js";import{PLAY_VIDEO_LABEL as p,youTubeCoverFallbackUrl as N,youTubeCoverUrl as V,youTubeEmbedUrl as d}from"../../format/lib/hero-video.js";function U({youTubeId:e,ownPoster:l,background:s,editing:i}){const[t,n]=x("large");return g(()=>n("large"),[e]),e?b(v,{children:[!l&&t!=="none"&&r(P,{src:t==="large"?V(e):N(e),alt:"",className:"absolute inset-0 z-[2] h-full w-full object-cover",onLoad:c=>{t==="large"&&c.currentTarget.naturalWidth<=120&&n("small")},onError:()=>n(t==="large"?"small":"none")},`${e}-${t}`),s&&!i&&r("div",{className:"pointer-events-none absolute inset-0 z-[3] overflow-hidden [container-type:size]","aria-hidden":"true",children:r("iframe",{src:d(e,"background"),title:"",tabIndex:-1,allow:"autoplay; encrypted-media; picture-in-picture",className:"absolute left-1/2 top-1/2 h-[max(100%,56.25cqw)] w-[max(100%,177.78cqh)] -translate-x-1/2 -translate-y-1/2 border-0"})})]}):null}function $({youTubeId:e,fileSrc:l,fileAv1Src:s,fileSrcPhone:i,fileAv1SrcPhone:t,playing:n,onPlay:c,editing:u}){const m=w(null),h=k(m,!0,!0)==="phone";if(!e&&!l)return null;const f=z({video:l,av1:s,videoPhone:i,av1Phone:t},h),a=j(f.video,f.av1);return n&&!u?e?r("iframe",{src:d(e,"click"),title:p,allow:"autoplay; encrypted-media; picture-in-picture; fullscreen",allowFullScreen:!0,className:"absolute inset-0 z-[6] h-full w-full border-0 bg-overlay-scrim"}):r("video",{ref:o=>{m.current=o},...a.length===1?{src:a[0].src}:{},controls:!0,autoPlay:!0,playsInline:!0,className:"absolute inset-0 z-[6] h-full w-full bg-overlay-scrim object-contain",children:a.length>1&&a.map(o=>r("source",{src:o.src,type:o.type},o.src))},f.video):r("button",{ref:o=>{m.current=o},type:"button","aria-label":p,onClick:u?void 0:c,className:`absolute left-1/2 top-1/2 z-[4] grid h-16 w-16 -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full bg-btn text-btn-ink shadow-lg transition-transform motion-reduce:transition-none ${u?"pointer-events-none":"cursor-pointer hover:scale-105"}`,children:r(y,{size:28})})}export{U as HeroVideoBackdrop,$ as HeroVideoPlayer};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type BandPad } from "../lib/content/section-padding.js";
|
|
1
2
|
export interface ParagraphsAStat {
|
|
2
3
|
value?: string;
|
|
3
4
|
label?: string;
|
|
@@ -11,6 +12,7 @@ export interface ParagraphsAProps {
|
|
|
11
12
|
attribution?: string;
|
|
12
13
|
padTop?: number;
|
|
13
14
|
padBottom?: number;
|
|
15
|
+
bandPad?: BandPad;
|
|
14
16
|
takesViewHide?: boolean;
|
|
15
17
|
}
|
|
16
|
-
export default function ParagraphsA({ eyebrow, stats, lead, foundersHeading, foundersBody, attribution, padTop, padBottom, takesViewHide, }?: ParagraphsAProps): import("react").JSX.Element;
|
|
18
|
+
export default function ParagraphsA({ eyebrow, stats, lead, foundersHeading, foundersBody, attribution, padTop, padBottom, bandPad, takesViewHide, }?: ParagraphsAProps): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as l,jsxs as i}from"react/jsx-runtime";import{HideTaker as S}from"./ViewHideRoot.js";import{renderGold as t,renderHeadline as
|
|
1
|
+
import{jsx as l,jsxs as i}from"react/jsx-runtime";import{HideTaker as S}from"./ViewHideRoot.js";import{bandPadAttrs as w}from"../lib/content/section-padding.js";import{innerPaddingFallback as N}from"../lib/document/passes/section-padding.js";import{renderGold as t,renderHeadline as u,splitParagraphs as y}from"./goldPhrases.js";const e={bodyUpTo720Small:"max-view-tablet:text-[length:var(--size-body,12px)]",bodyUpTo720Large:"max-view-tablet:text-[length:var(--size-body,16px)]",headingSmallUpTo720:"max-view-tablet:text-[length:var(--size-headingSmall,20px)]",labelUpTo720:"max-view-tablet:text-[length:var(--size-label,10px)]",bodySmall:"text-[length:var(--size-body,14px)]",bodyLarge:"text-[length:var(--size-body,18px)]",headingSmall:"text-[length:var(--size-headingSmall,22px)]",labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"};function T({eyebrow:s,stats:g,lead:r,foundersHeading:n,foundersBody:o,attribution:m,padTop:b,padBottom:h,bandPad:v,takesViewHide:f=!1}={}){const x=v??w({padTop:b,padBottom:h},N("ParagraphsA")),d=(g??[]).filter(a=>(a.value??"").trim()!==""||(a.label??"").trim()!==""),k=!!s||d.length>0,c=!!(n||o||m);return l(S,{as:"section",takes:f,className:"relative z-[2] bg-bg",children:i("div",{className:["mx-auto max-w-[var(--sf-site-width,1600px)] overflow-hidden border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]",x.className].filter(Boolean).join(" "),style:x.style,children:[k&&i("div",{className:"mb-[40px] grid grid-cols-3 gap-[60px] border-b border-line pb-[40px] max-view-desktop:grid-cols-1 max-view-desktop:gap-6",children:[l("div",{className:"col-span-2 max-view-desktop:col-span-1",children:s&&l("span",{className:`font-mono ${e.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:t(s)})}),d.length>0&&l("div",{className:`text-right font-mono ${e.labelLarge} uppercase leading-[1.8] tracking-[0.18em] text-fg-dim max-view-desktop:text-left`,children:d.map((a,p)=>i("div",{children:[a.value?l("strong",{className:"font-normal text-fg",children:t(a.value)}):null," ",a.label?t(a.label):null]},p))})]}),(r||c)&&i("div",{className:"grid grid-cols-3 gap-[60px] max-view-desktop:grid-cols-1 max-view-desktop:gap-7",children:[r&&l("div",{className:"col-span-2 max-view-desktop:col-span-1",children:y(r).map((a,p)=>l("p",{className:`max-w-[780px] font-heading3 ${e.headingSmall} leading-[1.45] tracking-[-0.005em] text-fg ${e.headingSmallUpTo720}`,children:t(a)},p))}),c&&i("div",{className:`self-end font-display ${e.bodySmall} leading-[1.7] text-fg-dim ${e.bodyUpTo720Small}`,children:[n&&l("strong",{className:`mb-1.5 block ${e.bodyLarge} font-medium tracking-[-0.01em] text-fg ${e.bodyUpTo720Large}`,children:u(n,!1)}),o?t(o):null,m&&l("span",{className:`mt-2 block font-mono ${e.labelSmall} uppercase not-italic tracking-[0.24em] text-accent ${e.labelUpTo720}`,children:t(m)})]})]})]})})}export{T as default};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type BandPad } from "../lib/content/section-padding.js";
|
|
1
2
|
import type { SlotComponent } from "efficient-easel/blocks";
|
|
2
3
|
import type { ReactNode } from "react";
|
|
3
4
|
import type { RowHand } from "../../format/lib/content/mirror-cards.js";
|
|
@@ -26,6 +27,7 @@ export interface ProcessStepsProps {
|
|
|
26
27
|
};
|
|
27
28
|
padTop?: number;
|
|
28
29
|
padBottom?: number;
|
|
30
|
+
bandPad?: BandPad;
|
|
29
31
|
editing?: boolean;
|
|
30
32
|
cardImage?: number | null;
|
|
31
33
|
cardImageUnit?: string;
|
|
@@ -35,4 +37,4 @@ export interface ProcessStepsProps {
|
|
|
35
37
|
omitHead?: boolean;
|
|
36
38
|
}
|
|
37
39
|
export declare function storedStepsShown(steps: readonly ProcessStep[] | undefined): ProcessStep[];
|
|
38
|
-
export default function ProcessSteps({ num, title, description, boxes: Boxes, steps, columns, cta, padTop, padBottom, editing, omitHead, cardImage, cardImageUnit, cardText, rows: askedRows, copies, }: ProcessStepsProps): import("react").JSX.Element;
|
|
40
|
+
export default function ProcessSteps({ num, title, description, boxes: Boxes, steps, columns, cta, padTop, padBottom, bandPad, editing, omitHead, cardImage, cardImageUnit, cardText, rows: askedRows, copies, }: ProcessStepsProps): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,Fragment as
|
|
1
|
+
import{jsx as e,Fragment as M,jsxs as i}from"react/jsx-runtime";import{HideTaker as O}from"./ViewHideRoot.js";import{bandPadAttrs as R}from"../lib/content/section-padding.js";import{innerPaddingFallback as Y}from"../lib/document/passes/section-padding.js";import{RowHandContext as E}from"./MirrorContext.js";import{EDITORIAL_COLUMN as X}from"../../format/lib/content/page-width.js";import{cardImageShapeTokens as Z}from"../../format/lib/content/card-image-shape.js";import{SiteLink as q}from"../lib/site-runtime.js";import J from"./EditorialSectionHead.js";import K from"./Placeholder.js";import{withRMark as o}from"./RMark.js";import{renderGold as s}from"./goldPhrases.js";import{say as Q}from"../../format/lib/editor-words.js";import{scrim as f}from"../../format/lib/content/scrim.js";import{EMPTY_ELSE_CLASS as V,EMPTY_HIDES_CLASS as T,EmptyHidesStyle as W}from"../lib/content/empty-hides.js";const l={headingSmallUpTo700Small:"max-[700px]:text-[length:var(--size-headingSmall,26px)]",headingSmallUpTo700Large:"max-[700px]:text-[length:var(--size-headingSmall,28px)]",bodySmall:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,18px)]",headingSmall1:"text-[length:var(--size-headingSmall,28px)]",headingSmall2:"text-[length:var(--size-headingSmall,34px)]",labelSmall:"text-[length:var(--size-label,11px)]",label:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"},_={2:"grid-cols-2 max-[900px]:grid-cols-1",3:"grid-cols-3 max-view-desktop:grid-cols-1",4:"grid-cols-4 max-view-desktop:grid-cols-2 max-[700px]:grid-cols-1"},S="sf-itc-boxes",B="sf-itc-steps";function ee(b){return(b??[]).filter(r=>(r?.tag??"").trim()||(r?.meta??"").trim()||(r?.title??"").trim()||(r?.copy??"").trim()||(r?.image??"").trim()||(r?.specs??[]).some(c=>(c?.label??"").trim()||(c?.value??"").trim()))}function ae({num:b,title:r,description:c,boxes:n,steps:C,columns:I=3,cta:h,padTop:P,padBottom:j,bandPad:A,editing:H=!1,omitHead:U=!1,cardImage:D,cardImageUnit:F,cardText:G,rows:y,copies:g}){const p=g!==void 0,m=y&&(p||(n?.blockCount??0)>0)?y:null,$=A??R({padTop:P,padBottom:j},Y("ProcessSteps")),N=p?[]:ee(C),k=N.length>0?N:H&&!n&&!p?[1,2,3].map(a=>({tag:Q("Column {n}",{n:a})})):[],L=_[I]??_[3],u=m?"grid-cols-1":L,z=m?"":" [&>*]:min-h-[560px]",d=G==="on-image";return e(O,{as:"section",className:["relative z-[2] border-b border-line bg-bg",$.className].filter(Boolean).join(" "),style:{...$.style,...Z(D,F)},children:i("div",{className:X,children:[U?null:e(J,{num:b,title:r?.trim()?s(r,!0):void 0,desc:c?.trim()?s(c,!1):void 0}),n&&!p?i(M,{children:[e(W,{}),m?e(E.Provider,{value:{hand:m,ids:n.blockIds??[],boxes:[]},children:e(n,{className:`${S} ${T} sf-card grid ${u} gap-[2px] border border-line bg-line${z} [&>*]:bg-bg`,minEmptyHeight:260})}):e(n,{className:`${S} ${T} sf-card grid ${u} gap-[2px] border border-line bg-line [&>*]:min-h-[560px] [&>*]:bg-bg`,minEmptyHeight:260})]}):null,p&&g?e("div",{className:`${S} sf-card grid ${u} gap-[2px] border border-line bg-line${z} [&>*]:bg-bg`,children:m?e(E.Provider,{value:{hand:m,copies:!0},children:g}):g}):null,k.length>0&&e("div",{className:`${B} ${V} sf-card grid ${L} gap-[2px] border border-line bg-line`,children:k.map((a,w)=>{const x=(a.specs??[]).filter(t=>(t?.label??"").trim()||(t?.value??"").trim());return i("article",{className:d?"flex flex-col bg-bg":"flex min-h-[560px] flex-col bg-bg",children:[i("div",{className:d?"sf-card-image relative aspect-[5/3] overflow-hidden bg-surface max-[700px]:aspect-[4/3]":"sf-card-image relative aspect-[5/3] overflow-hidden border-b border-line bg-surface",children:[e(K,{label:a.tag?.trim()||a.title?.trim()||`column-${w+1}`,src:a.image||void 0,sizes:"(max-width: 1100px) 100vw, 33vw",...n?{deferFetch:!0}:{}}),e("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 z-[1]",style:{background:`linear-gradient(180deg, ${f(.55)} 0%, transparent 30%, transparent 70%, ${f(.65)} 100%)`}}),d&&e("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 bottom-0 z-[1] h-[78%]",style:{background:`linear-gradient(180deg, transparent 0%, ${f(.73)} 55%, ${f(.92)} 100%)`}}),a.tag?.trim()&&e("span",{className:`absolute left-5 top-[18px] z-[2] font-mono ${l.label} uppercase tracking-[0.3em] text-accent`,children:o(a.tag)}),a.meta?.trim()&&e("span",{className:d?`absolute right-5 top-[18px] z-[2] font-mono ${l.label} uppercase tracking-[0.24em] text-overlay-fg/80`:`absolute right-5 bottom-[18px] z-[2] font-mono ${l.label} uppercase tracking-[0.24em] text-overlay-fg/80`,children:o(a.meta)}),d&&(a.title?.trim()||a.copy?.trim())&&i("div",{className:"absolute inset-x-0 bottom-0 z-[2] flex flex-col gap-2.5 px-8 pb-7 pt-14 max-[700px]:px-6 max-[700px]:pb-6",children:[a.title?.trim()&&e("h3",{className:`flex min-h-[2em] flex-col justify-end font-heading3 ${l.headingSmall1} font-medium uppercase leading-none tracking-[-0.02em] text-overlay-fg ${l.headingSmallUpTo700Small}`,children:s(a.title,!0)}),a.copy?.trim()&&e("p",{className:`min-h-[3em] font-display ${l.bodySmall} leading-[1.5] text-overlay-fg/85`,children:s(a.copy,!1)})]})]}),d?x.length>0&&e("div",{className:"grid grid-cols-2 gap-2 border-t border-line px-8 py-7 max-[700px]:px-6 max-[700px]:py-6",children:x.map((t,v)=>i("div",{className:"flex flex-col gap-1",children:[t.label?.trim()&&e("span",{className:`font-mono ${l.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:o(t.label)}),t.value?.trim()&&e("span",{className:`font-display ${l.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:o(t.value)})]},v))}):i("div",{className:"flex flex-1 flex-col gap-4 px-8 py-9 max-[700px]:px-6 max-[700px]:py-7",children:[a.title?.trim()&&e("h3",{className:`font-heading3 ${l.headingSmall2} font-medium uppercase leading-none tracking-[-0.02em] ${l.headingSmallUpTo700Large}`,children:s(a.title,!0)}),a.copy?.trim()&&e("p",{className:`font-display ${l.bodySmall} leading-[1.55] text-fg-dim`,children:s(a.copy,!1)}),x.length>0&&e("div",{className:"mt-auto grid grid-cols-2 gap-2 border-t border-line pt-4",children:x.map((t,v)=>i("div",{className:"flex flex-col gap-1",children:[t.label?.trim()&&e("span",{className:`font-mono ${l.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:o(t.label)}),t.value?.trim()&&e("span",{className:`font-display ${l.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:o(t.value)})]},v))})]})]},w)})}),h?.text&&e("div",{className:"mt-12 flex justify-end border-t border-line pt-8",children:i(q,{newTab:"auto",href:h.href,className:`group inline-flex items-center gap-3.5 border border-line px-6 py-4 font-mono ${l.labelLarge} uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent`,children:[o(h.text),e("span",{"aria-hidden":!0,className:"text-accent transition-transform group-hover:translate-x-[3px]",children:"→"})]})})]})})}export{ae as default,ee as storedStepsShown};
|
|
@@ -24,3 +24,6 @@ export declare function phoneMediaOf(atEdge: boolean): string;
|
|
|
24
24
|
export declare function useViewWidth(ref: {
|
|
25
25
|
current: HTMLElement | null;
|
|
26
26
|
}, enabled?: boolean, atEdge?: boolean): MotionView;
|
|
27
|
+
export declare function useViewWidthRead(ref: {
|
|
28
|
+
current: HTMLElement | null;
|
|
29
|
+
}, enabled?: boolean, atEdge?: boolean): MotionView | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as M}from"react/jsx-runtime";import{NO_HIDE as S,useTakeViewHide as L,withViewHide as
|
|
1
|
+
"use client";import{jsx as M}from"react/jsx-runtime";import{NO_HIDE as S,useTakeViewHide as L,withViewHide as R}from"./ViewHideRoot.js";import{useEffect as E,useRef as g,useState as V}from"react";import{armEntrance as v,entranceAttrs as A,playEntrance as b}from"efficient-shell/format";import{useCellLayer as J,useInBox as _}from"./InBoxContext.js";import{ENTRANCE_WRAPPER_CLASS as x}from"../lib/animation/entrance.js";import{viewMediaOf as N}from"../lib/document/part-styles.js";function B({views:e,editing:t,boxClass:n,boxAttrs:s,boxStyle:a,takesViewHide:d=!1,atEdge:u=!1,children:f}){const o=g(null),i=J(),c=L(),r=d?c:S,p=$(o,!0,u),{attrs:k,style:h}=A(e[p]),y=g(m.seed(e)),O=JSON.stringify(e);return E(()=>{const l=o.current;if(l){if(t){const w=m.next(y.current,e,p);y.current=w.seen,w.play&&b(l);return}return v(l)}},[O,p,t]),r.scope(M("div",{ref:o,className:R(`${x}${i.fill}${n?` ${n}`:""}`,r.className),...s,...r.attrs,...k,...Object.keys(h).length||a?{style:{...a,...h}}:{},children:i.inner(f)}))}const m={seed(e){return{desktop:JSON.stringify(e.desktop),tablet:JSON.stringify(e.tablet),phone:JSON.stringify(e.phone)}},next(e,t,n){const s=m.seed(t);return{play:s[n]!==e[n],seen:s}}};function K(e){return N(e).phone}function $(e,t=!0,n=!1){return j(e,t,n)??"desktop"}function j(e,t=!0,n=!1){const[s,a]=V(void 0),d=_()||n,{phone:u,tablet:f}=N(d);return E(()=>{if(!t)return;const o=e.current?.ownerDocument?.defaultView??(typeof window>"u"?null:window);if(!o?.matchMedia){a("desktop");return}const i=o.matchMedia(u),c=o.matchMedia(f),r=()=>a(i.matches?"phone":c.matches?"tablet":"desktop");return r(),i.addEventListener("change",r),c.addEventListener("change",r),()=>{i.removeEventListener("change",r),c.removeEventListener("change",r)}},[e,t,u,f]),s}export{x as ENTRANCE_WRAPPER_CLASS,B as SectionAnimation,m as entranceReplay,K as phoneMediaOf,$ as useViewWidth,j as useViewWidthRead};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type BandPad } from "../lib/content/section-padding.js";
|
|
1
2
|
export interface StatCardData {
|
|
2
3
|
value?: string;
|
|
3
4
|
prefix?: string;
|
|
@@ -15,7 +16,8 @@ export interface StatsParagraphProps {
|
|
|
15
16
|
background?: string;
|
|
16
17
|
padTop?: number;
|
|
17
18
|
padBottom?: number;
|
|
19
|
+
bandPad?: BandPad;
|
|
18
20
|
editing?: boolean;
|
|
19
21
|
omitHead?: boolean;
|
|
20
22
|
}
|
|
21
|
-
export default function StatsParagraph({ eyebrow, title, desc, stats, background, padTop, padBottom, editing, omitHead, }?: StatsParagraphProps): import("react").JSX.Element;
|
|
23
|
+
export default function StatsParagraph({ eyebrow, title, desc, stats, background, padTop, padBottom, bandPad, editing, omitHead, }?: StatsParagraphProps): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsxs as
|
|
1
|
+
"use client";import{jsxs as t,jsx as a,Fragment as S}from"react/jsx-runtime";import{bandPadAttrs as k}from"../lib/content/section-padding.js";import{innerPaddingFallback as C}from"../lib/document/passes/section-padding.js";import{HideTaker as E}from"./ViewHideRoot.js";import{EDITORIAL_COLUMN as _}from"../../format/lib/content/page-width.js";import j from"./EditorialSectionHead.js";import{renderGold as h,renderHeadline as w}from"./goldPhrases.js";import{useCountUp as T}from"./useCountUp.js";import{say as b}from"../../format/lib/editor-words.js";const x={body:"text-[length:var(--size-body,16px)]",labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"},v="font-normal italic text-accent";function z({value:f,prefix:d,suffix:n,supSuffix:c,emphasizeAll:r,label:l,sub:i}){const o=(f??"").trim(),p=/^\d+$/.test(o),{ref:u,value:g}=T(p?parseInt(o,10):0),s=p?String(g):o,m=d??"";return t("div",{className:"flex min-h-[240px] flex-col gap-3 bg-bg px-8 py-12",children:[t("div",{ref:u,className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(56px,7vw,96px)),var(--sf-heading-max,9999px))] font-medium leading-[0.9] tracking-[-0.04em] tabular-nums",children:[r?t("em",{className:v,children:[m,s]}):t(S,{children:[m,s,n?a("em",{className:v,children:n}):null]}),c?a("sup",{className:`ml-8 inline-block pt-[18px] align-top font-mono ${x.labelLarge} leading-none tracking-[0.18em] text-accent`,children:c}):null]}),(l||i)&&t("div",{className:`mt-auto font-mono ${x.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:[l?a("strong",{className:`mb-1 block font-display ${x.body} font-normal normal-case tracking-[-0.01em] text-fg`,children:l}):null,i?h(i):null]})]})}function A({eyebrow:f,title:d,desc:n,stats:c,background:r,padTop:l,padBottom:i,bandPad:o,editing:p=!1,omitHead:u=!1}={}){const g=o??k({padTop:l,padBottom:i},C("StatsParagraph")),s=(c??[]).filter(e=>(e.value??"").trim()!==""||(e.label??"").trim()!==""||(e.sub??"").trim()!==""||(e.suffix??"").trim()!==""||(e.supSuffix??"").trim()!==""),m=s.length>0?s:p?[{value:"0",label:b("Stat"),sub:b("Add your numbers.")}]:[],N=!!(r&&r!=="transparent");return a(E,{as:"section",className:["border-b border-line",g.className].filter(Boolean).join(" "),style:{...g.style,...N?{backgroundColor:r}:{}},children:t("div",{className:_,children:[u?null:a(j,{num:f,title:d?w(d):void 0,desc:n?h(n):void 0}),m.length>0&&a("div",{className:"sf-card grid grid-cols-4 gap-[2px] border border-line bg-line max-view-desktop:grid-cols-2 max-[700px]:grid-cols-1",children:m.map((e,y)=>a(z,{...e},y))})]})})}export{A as default};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type BandPad } from "../lib/content/section-padding.js";
|
|
1
2
|
export type TimelineLayout = "split" | "spine" | "alternating";
|
|
2
3
|
export interface TimelineEntry {
|
|
3
4
|
date?: string;
|
|
@@ -19,6 +20,7 @@ export interface TimelineProps {
|
|
|
19
20
|
entries?: TimelineEntry[];
|
|
20
21
|
padTop?: number;
|
|
21
22
|
padBottom?: number;
|
|
23
|
+
bandPad?: BandPad;
|
|
22
24
|
editing?: boolean;
|
|
23
25
|
}
|
|
24
|
-
export default function Timeline({ layout, eyebrow, title, intro, imageSrc, imageCaption, imageMeta, cta, entries, padTop, padBottom, editing, }?: TimelineProps): import("react").JSX.Element;
|
|
26
|
+
export default function Timeline({ layout, eyebrow, title, intro, imageSrc, imageCaption, imageMeta, cta, entries, padTop, padBottom, bandPad, editing, }?: TimelineProps): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,Fragment as
|
|
1
|
+
import{jsx as e,Fragment as v,jsxs as l}from"react/jsx-runtime";import{HideTaker as $}from"./ViewHideRoot.js";import{bandPadAttrs as j}from"../lib/content/section-padding.js";import{innerPaddingFallback as _}from"../lib/document/passes/section-padding.js";import{SiteLink as C}from"../lib/site-runtime.js";import{stripMarkup as E}from"../../format/lib/markup.js";import{STICKY_ASIDE_CLASS as I}from"../../format/lib/content/sticky-aside.js";import P from"./Placeholder.js";import A from"./SectionEyebrow.js";import{renderGold as m,renderHeadline as w,splitParagraphs as F}from"./goldPhrases.js";import{CentreRailDot as U,CentreRailLine as D,railSideIsLeft as H,SPINE_LINE_CLASS as B,SpineDot as R}from"./TimelineRail.js";import{scrim as G}from"../../format/lib/content/scrim.js";const n={bodyUpTo800:"max-view-wide:text-[length:var(--size-body,16px)]",headingSmallUpTo800:"max-view-wide:text-[length:var(--size-headingSmall,20px)]",bodySmall:"text-[length:var(--size-body,14px)]",bodyLarge:"text-[length:var(--size-body,17px)]",headingSmall:"text-[length:var(--size-headingSmall,24px)]",labelSmall:"text-[length:var(--size-label,11px)]",labelLarge:"text-[length:var(--size-label,13px)]"};function N({eyebrow:a,title:t,intro:r,center:s=!1}){return l(v,{children:[a&&e(A,{text:a,size:12}),t&&e("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(40px,5vw,76px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[0.94] tracking-[-0.03em] text-fg",children:w(t)}),r&&e("p",{className:[`font-display ${n.bodySmall} leading-[1.6] text-fg-dim`,s?"max-w-[520px]":"max-w-[360px]"].join(" "),children:m(r,!0)})]})}function S({cta:a,className:t=""}){return a?.text?l(C,{newTab:"auto",href:a.href,className:["group inline-flex items-center gap-3.5 border border-line px-5 py-4",`font-mono ${n.labelLarge} uppercase tracking-[0.3em] text-fg`,"transition-colors hover:border-accent hover:text-accent",t].join(" "),children:[m(a.text),e("span",{"aria-hidden":!0,className:"text-accent transition-transform group-hover:translate-x-[3px]",children:"→"})]}):null}function k({src:a,caption:t,meta:r,aspectClass:s,editing:d,sizes:p="100vw",className:c=""}){return!a&&!d?null:l("figure",{className:["relative overflow-hidden border border-line bg-surface",s,c].join(" "),children:[e(P,{label:t||"Image",src:a,alt:E(t??""),sizes:p}),e("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",style:{background:`linear-gradient(180deg, transparent 55%, ${G(.75)} 100%)`}}),(t||r)&&l("figcaption",{className:`absolute inset-x-0 bottom-0 z-[1] flex items-center justify-between gap-3 px-4 py-3 font-mono ${n.labelSmall} uppercase tracking-[0.24em] text-overlay-fg/85`,children:[e("span",{children:t?m(t):""}),r&&e("span",{className:"text-accent",children:m(r)})]})]})}function g({entry:a}){const t=F(a.body??"");return l(v,{children:[a.title&&e("h3",{className:`mb-3.5 font-heading3 ${n.headingSmall} font-medium uppercase tracking-[-0.02em] text-fg ${n.headingSmallUpTo800}`,children:w(a.title)}),t.length>0&&e("div",{className:`space-y-3.5 font-display ${n.bodyLarge} leading-[1.6] ${n.bodyUpTo800}`,children:t.map((r,s)=>e("p",{className:s===0?"text-fg":"text-fg-dim",children:m(r,!0)},s))})]})}function K({layout:a="split",eyebrow:t,title:r,intro:s,imageSrc:d,imageCaption:p,imageMeta:c,cta:f,entries:y,padTop:z,padBottom:L,bandPad:T,editing:h}={}){const u=T??j({padTop:z,padBottom:L},_("Timeline")),x=(y??[]).filter(i=>(i.date??"").trim()||(i.title??"").trim()||(i.body??"").trim());return e($,{as:"section",className:"relative z-[2] bg-bg",children:e("div",{className:["mx-auto max-w-[var(--sf-site-width,1600px)] border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]",u.className].filter(Boolean).join(" "),style:u.style,children:a==="split"?l("div",{className:"grid grid-cols-[1fr_1.4fr] gap-20 max-view-desktop:grid-cols-1 max-view-desktop:gap-12",children:[l("aside",{className:`${I} flex flex-col gap-6 self-start max-view-desktop:static`,children:[e(N,{eyebrow:t,title:r,intro:s}),e(k,{src:d,caption:p,meta:c,aspectClass:"mt-1 aspect-[4/5]",sizes:"(max-width: 1100px) 100vw, 420px",editing:h}),e(S,{cta:f,className:"mt-2 self-start"})]}),e("ol",{className:"flex flex-col gap-12",children:x.map((i,o)=>l("li",{className:"grid grid-cols-[80px_1fr] items-start gap-6 max-[700px]:grid-cols-1 max-[700px]:gap-2",children:[e("span",{className:`pt-1.5 font-mono ${n.labelLarge} tracking-[0.24em] text-accent`,children:i.date?m(i.date):""}),e("div",{className:"max-w-[640px]",children:e(g,{entry:i})})]},o))})]}):l("div",{children:[l("header",{className:"mx-auto flex max-w-[760px] flex-col items-center gap-6 text-center",children:[e(N,{eyebrow:t,title:r,intro:s,center:!0}),e(S,{cta:f})]}),e(k,{src:d,caption:p,meta:c,aspectClass:"mx-auto mt-12 aspect-[16/9] w-full max-w-[900px]",sizes:"(max-width: 900px) 100vw, 900px",editing:h}),a==="spine"?e("ol",{className:"relative mx-auto mt-16 max-w-[760px]",children:x.map((i,o)=>l("li",{className:`relative ${B} pb-12 pl-10 last:pb-0 max-[700px]:pl-8`,children:[e(R,{}),e("div",{className:`mb-2 font-mono ${n.labelLarge} tracking-[0.24em] text-accent`,children:i.date?m(i.date):""}),e("div",{className:"max-w-[640px]",children:e(g,{entry:i})})]},o))}):l("ol",{className:"relative mx-auto mt-16 max-w-[1000px]",children:[e(D,{}),x.map((i,o)=>{const b=H(o);return l("li",{className:"relative mb-14 pl-8 last:mb-0 min-[801px]:grid min-[801px]:grid-cols-2 min-[801px]:gap-16 min-[801px]:pl-0",children:[e(U,{}),l("div",{className:b?"min-[801px]:col-start-1 min-[801px]:pr-8 min-[801px]:text-right":"min-[801px]:col-start-2 min-[801px]:pl-8",children:[e("div",{className:`mb-2 font-mono ${n.labelLarge} tracking-[0.24em] text-accent`,children:i.date?m(i.date):""}),e("div",{className:["max-w-[520px] max-view-wide:max-w-none",b?"min-[801px]:ml-auto":""].join(" "),children:e(g,{entry:i})})]})]},o)})]})]})})})}export{K as default};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type BandPad } from "../lib/content/section-padding.js";
|
|
1
2
|
export interface TimelineTrackEntry {
|
|
2
3
|
date?: string;
|
|
3
4
|
title?: string;
|
|
@@ -15,8 +16,9 @@ export interface TimelineTrackProps {
|
|
|
15
16
|
};
|
|
16
17
|
padTop?: number;
|
|
17
18
|
padBottom?: number;
|
|
19
|
+
bandPad?: BandPad;
|
|
18
20
|
background?: string;
|
|
19
21
|
editing?: boolean;
|
|
20
22
|
omitHead?: boolean;
|
|
21
23
|
}
|
|
22
|
-
export default function TimelineTrack({ eyebrow, title, intro, entries, cta, padTop, padBottom, background, editing, omitHead, }?: TimelineTrackProps): import("react").JSX.Element | null;
|
|
24
|
+
export default function TimelineTrack({ eyebrow, title, intro, entries, cta, padTop, padBottom, bandPad, background, editing, omitHead, }?: TimelineTrackProps): import("react").JSX.Element | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as t,jsxs as a}from"react/jsx-runtime";import{HideTaker as
|
|
1
|
+
import{jsx as t,jsxs as a}from"react/jsx-runtime";import{HideTaker as T}from"./ViewHideRoot.js";import{bandPadAttrs as S}from"../lib/content/section-padding.js";import{innerPaddingFallback as j}from"../lib/document/passes/section-padding.js";import{SiteLink as B}from"../lib/site-runtime.js";import P from"./EditorialSectionHead.js";import x from"./PartStyledText.js";import{withRMark as n}from"./RMark.js";import{renderGold as f,renderHeadline as z}from"./goldPhrases.js";import{railPastShare as R,railYearInkClass as $,TrackRailDot as C,TrackRailLine as E,trackStopRailClass as L}from"./TimelineRail.js";const i={body:"text-[length:var(--size-body,13px)]",headingSmall:"text-[length:var(--size-headingSmall,20px)]",label:"text-[length:var(--size-label,13px)]"};function _({eyebrow:v,title:s,intro:d,entries:g,cta:l,padTop:u,padBottom:h,bandPad:b,background:k,editing:w,omitHead:m=!1}={}){const p=b??S({padTop:u,padBottom:h},j("TimelineTrack")),c=k??"var(--section-bg)",N=c!=="transparent",r=(g??[]).filter(e=>(e.date??"").trim()||(e.title??"").trim()||(e.blurb??"").trim());if(r.length===0&&!w)return null;const y=R(r);return t(T,{as:"section",className:"relative z-[2]",children:t("div",{className:["border-b border-line",p.className].filter(Boolean).join(" "),style:{...p.style,...N?{backgroundColor:c}:{}},children:a("div",{className:"mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]",children:[m?null:t(P,{num:v,title:s?z(s):void 0,desc:d?f(d,!0):void 0,spaceBelow:"",className:"text-fg"}),a("div",{className:m?"relative mt-0 grid grid-cols-[repeat(var(--cols),minmax(0,1fr))] gap-0 border-t border-line pt-[60px] max-view-desktop:mt-0 max-view-desktop:grid-cols-1 max-view-desktop:gap-0 max-view-desktop:border-t-0 max-view-desktop:pt-0":"relative mt-[60px] grid grid-cols-[repeat(var(--cols),minmax(0,1fr))] gap-0 border-t border-line pt-[60px] max-view-desktop:mt-9 max-view-desktop:grid-cols-1 max-view-desktop:gap-0 max-view-desktop:border-t-0 max-view-desktop:pt-0",style:{"--cols":r.length},children:[t(E,{pct:y}),r.map((e,o)=>a("div",{className:["relative flex min-h-[280px] flex-col gap-3.5 px-3.5",L(!!e.future,o===0),"max-view-desktop:min-h-0 max-view-desktop:border-t-0 max-view-desktop:py-6 max-view-desktop:pl-7 max-view-desktop:ml-1.5"].join(" "),children:[t(C,{future:!!e.future,first:o===0}),t("span",{className:[`font-mono ${i.label} tracking-[0.22em]`,$(!!e.future)].join(" "),children:e.date?t(x,{value:e.date,children:n(e.date)}):""}),e.title&&t("h3",{className:`whitespace-pre-line font-heading3 ${i.headingSmall} font-medium uppercase leading-[1.1] tracking-[-0.02em] text-fg`,children:t(x,{value:e.title,children:n(e.title)})}),e.blurb&&t("p",{className:`mt-auto font-display ${i.body} leading-[1.55] text-fg-dim`,children:f(e.blurb,!0)})]},o))]}),l?.text&&t("div",{className:"mt-12 flex justify-end border-t border-line pt-8",children:a(B,{newTab:"auto",href:l.href,className:`group inline-flex items-center gap-3.5 border border-line px-6 py-4 font-mono ${i.label} uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent`,children:[n(l.text),t("span",{"aria-hidden":!0,className:"text-accent transition-transform group-hover:translate-x-[3px]",children:"→"})]})})]})})})}export{_ as default};
|