efficient-web-builder 50.0.0 → 51.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/README.md +1 -1
- package/dist/editor/components/BlogPostSource.js +1 -1
- package/dist/editor/components/HeroPartPanel.js +1 -1
- package/dist/editor/components/MediaUploadField.js +1 -1
- package/dist/editor/components/SectionEditor.js +1 -1
- package/dist/editor/components/ThemeCard.js +1 -1
- package/dist/editor/components/WebsiteScreenParts.js +1 -1
- package/dist/editor/components/storefront-editor.css +1 -1
- package/dist/editor/components/usePartMotion.d.ts +1 -1
- package/dist/editor/components/usePartTypingDeps.d.ts +2 -0
- package/dist/editor/components/usePartTypingDeps.js +1 -0
- package/dist/editor/lib/animation/entrance-fields.js +1 -1
- package/dist/editor/lib/animation/fields.d.ts +1 -1
- package/dist/editor/lib/animation/fields.js +1 -1
- package/dist/editor/lib/animation/hover-fields.d.ts +7 -1
- package/dist/editor/lib/animation/hover-fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Cards/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Hero/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/HeroSlide/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/ImageBlock/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/PostCard/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/index.d.ts +2 -2
- package/dist/editor/lib/document/blocks/hero-shared-fields.d.ts +2 -0
- package/dist/editor/lib/document/blocks/hero-shared-fields.js +1 -1
- package/dist/editor/lib/document/canvas-typing.d.ts +1 -0
- package/dist/editor/lib/document/canvas-typing.js +1 -1
- package/dist/editor/lib/document/card-copy-rows.d.ts +12 -0
- package/dist/editor/lib/document/card-copy-rows.js +1 -0
- package/dist/editor/lib/document/controls.d.ts +1 -0
- package/dist/editor/lib/document/controls.js +1 -1
- package/dist/editor/lib/document/darken-fields.d.ts +4 -0
- package/dist/editor/lib/document/darken-fields.js +1 -0
- package/dist/editor/lib/document/overrides.js +1 -1
- package/dist/format/components/stored-pick-row.d.ts +8 -0
- package/dist/format/components/stored-pick-row.js +1 -0
- package/dist/format/lib/animation/hover.d.ts +32 -1
- package/dist/format/lib/animation/hover.js +1 -1
- package/dist/format/lib/content/box-layout.d.ts +11 -0
- package/dist/format/lib/content/box-layout.js +1 -1
- package/dist/format/lib/content/box-shape.d.ts +2 -1
- package/dist/format/lib/content/box-shape.js +1 -1
- package/dist/format/lib/content/card-template.d.ts +6 -0
- package/dist/format/lib/content/card-template.js +1 -1
- package/dist/format/lib/content/image-treatment.d.ts +23 -4
- package/dist/format/lib/content/image-treatment.js +1 -1
- package/dist/format/lib/document/blocks/general/Hero/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/HeroSingle/meta.js +1 -1
- package/dist/format/lib/document/box-footer.js +1 -1
- package/dist/format/lib/document/easel-row-words.d.ts +1 -0
- package/dist/format/lib/document/easel-row-words.js +1 -1
- package/dist/format/lib/document/passes/card-template-on-insert.d.ts +2 -0
- package/dist/format/lib/document/passes/card-template-on-insert.js +1 -0
- package/dist/format/lib/document/passes/types.d.ts +6 -0
- package/dist/format/lib/document/section-catalog.js +2 -2
- package/dist/format/lib/editor-words-catalogue.d.ts +9 -2
- package/dist/format/lib/editor-words-catalogue.js +3 -3
- package/dist/format/lib/sections/hero-overlay.js +1 -1
- package/dist/render/components/ButtonBlock.d.ts +1 -1
- package/dist/render/components/ButtonBlock.js +1 -1
- package/dist/render/components/ContactLocations.d.ts +3 -1
- package/dist/render/components/ContactLocations.js +2 -2
- package/dist/render/components/Flex.d.ts +5 -1
- package/dist/render/components/Flex.js +1 -1
- package/dist/render/components/HeroPictures.d.ts +10 -0
- package/dist/render/components/HeroPictures.js +1 -1
- package/dist/render/components/HeroSingle.js +1 -1
- package/dist/render/components/HeroSlide.js +1 -1
- package/dist/render/components/ImageBlock.d.ts +6 -1
- package/dist/render/components/ImageBlock.js +1 -1
- package/dist/render/components/Manifesto.d.ts +3 -1
- package/dist/render/components/Manifesto.js +1 -1
- package/dist/render/components/PhotoHoverSheet.d.ts +4 -0
- package/dist/render/components/PhotoHoverSheet.js +1 -0
- package/dist/render/components/PictureWash.d.ts +6 -0
- package/dist/render/components/PictureWash.js +1 -0
- package/dist/render/components/Placeholder.js +1 -1
- package/dist/render/components/PostCard.js +1 -1
- package/dist/render/components/Split.d.ts +3 -1
- package/dist/render/components/Split.js +1 -1
- package/dist/render/components/Text.d.ts +2 -2
- package/dist/render/components/Text.js +1 -1
- package/dist/render/lib/animation/part-motion.js +2 -2
- package/dist/render/lib/document/blocks/general/ContactLocations/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
- package/dist/render/lib/document/blocks/general/ImageBlock/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Manifesto/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Split/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-locations.js +1 -1
- package/dist/render/lib/document/passes/index.js +1 -1
- package/dist/render/lib/document/passes/section-animation.js +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Fragment as
|
|
1
|
+
import{Fragment as g,jsx as s,jsxs as eo}from"react/jsx-runtime";import{useId as Ie}from"react";import{parseHexColor as Me}from"efficient-shell/format";import We from"./BoxTabs.js";import{BoxTabPaneContext as je,useIsTabPane as He}from"./BoxTabPaneContext.js";import{CellFillContext as Ue,InBoxContext as Xe,useCellOfStretchedRow as Ge,useFillsCell as ze}from"./InBoxContext.js";import Je,{InsideSiteColumn as Jo,useInsideSiteGutter as Ke,useSectionRoot as Ye}from"./SiteGutterFrame.js";import{BoxSurfaceProvider as qe}from"./BoxSurfaceContext.js";import Qe from"./PictureWash.js";import{BoxCellWidthContext as Ve}from"./BoxCellWidthContext.js";import{useInSiteHeader as Ze}from"./PhoneMenuTools.js";import{useCardRow as os}from"./CardRowContext.js";import{framesItsCards as es}from"../../format/lib/content/card-place.js";import{MirrorContext as ss,useMirroredCopy as ts,useUnderCardBox as rs}from"./MirrorContext.js";import{isMirroredCopy as ns,mirrorCardsActs as ls,mirroredBoxClass as as,MIRROR_ROW_CLASS as cs,ownsCard as ms}from"../../format/lib/content/mirror-cards.js";import{FRAME_BASE as so,FRAME_GUTTER as to}from"./BlockFrame.js";import{containerGapProps as is}from"../../format/lib/content/container-gap.js";import{boxLayoutClasses as us,boxBlockSpacingClass as ds,boxFitContentClass as fs,boxRowColumnsClass as Cs,boxRowTabletColumnsClass as ps,boxRowTabletShareClass as Ss,boxPhoneRowClasses as L,boxPhoneRowFits as bs,boxShareClasses as F,boxWrapClass as xs}from"../../format/lib/content/box-layout.js";import{boxSeparatorClasses as hs,boxSeparatorSeamClass as $s,boxSeparatorStyle as _s,isStripBox as Ps}from"../../format/lib/content/box-separator.js";import{DEFAULT_LOOP_DELAY as Rs,DEFAULT_LOOP_DIRECTION as ys,DEFAULT_LOOP_SECONDS as Ls,isVerticalLoop as As}from"../../format/lib/animation/index.js";import{LoopTrack as ws}from"../lib/animation/LoopTrack.js";import{BOX_CARD_PAD as m,BOX_OWNS_SIDES_CLASS as Os,boxDarkenStyle as Bs,boxPlacementClasses as Ts,CARD_SHADOW_CLASS as vs,isBackgroundBox as Ko}from"../../format/lib/content/box-background.js";import{boxShadowAttrs as Yo}from"../../format/lib/content/box-shadow.js";import{boxRunsEdgeToEdge as Ns,drawsSiteGutter as Es}from"../../format/lib/content/site-gutter.js";import{boxShapeClass as ks,boxShapeClasses as gs}from"../../format/lib/content/box-shape.js";import{BOX_JUMP_ATTR as Fs,BOX_LINK_ATTR as qo,BOX_LINK_CLASS as Qo,BOX_LINKED_CLASS as Ds,boxJumpBlocksClass as Is,boxJumpCss as Ms,boxJumpSlug as Ws,boxLinkOf as js}from"../../format/lib/content/box-link.js";import{SiteLink as Hs}from"../lib/site-runtime.js";import{sectionBorderStyle as Vo}from"../../format/lib/content/borders.js";import{finiteNumber as i}from"../../format/lib/finite-number.js";import{sectionPadAttrs as Us}from"../lib/content/section-padding.js";import{SECTION_FILL_CLASS as D}from"../../format/lib/content/section-min-height.js";import{ON_MEDIA_INK_STYLE as Xs}from"../../format/lib/content/ink.js";import{sizedBackground as ro}from"../../format/lib/sized-image.js";import{PHOTO_HOST_ATTR as Gs,resolveImageTreatment as zs}from"../../format/lib/content/image-treatment.js";import{BoxRail as Js,BoxRailStop as Ks,RAIL_STOPS_CLASS as Ys,useTimelineRail as qs}from"./TimelineRail.js";import{SHARED_PLAIN_ATTR as Qs,sharedColumnsClasses as Vs,sharedColumnsCss as Zs}from"../lib/content/box-shared-columns.js";import ot from"./PhotoHoverSheet.js";const no={"--sf-site-gutter":"0px"},et={overflowX:"clip",overflowY:"visible"},st={desktop:!1,phone:!1},Zo="bg-cover bg-center bg-[image:var(--sf-box-bg)] max-view-tablet:bg-[image:var(--sf-box-bg-p)]",lo=o=>o==null||o==="",ao=o=>!lo(o)&&Number(o)===0;function tt({children:o}){return s(g,{children:o(Ie())})}function rt({direction:o,label:oe,tabShape:ee,gap:co,gapPhone:se,gapTablet:I,justify:A,align:C,wrap:mo,share:p,sharePhone:M,shareTablet:io,wrapPhone:te,phoneRow:w,columns:O,columnsTablet:W,separator:n,blockSpacing:re,bgImage:h,bgImagePhone:uo,pictureHover:ne,darken:le,darkenStyle:ae,placement:ce,padV2:fo=!1,border:Co,borderPhone:po,pad:r={},contained:j=!0,fillHeight:u=!1,shadow:So,loop:S,scrollDirection:H=ys,loopSeconds:me=Ls,loopDelay:ie=Rs,editing:bo=!1,fillColor:xo,line:$,upcoming:ue,link:de,boxShape:ho,boxShapePhone:fe,boxShapeTablet:Ce,jumpHighlight:pe,anchor:Se,sharedSides:B=st,boxId:$o,mirrorCards:be,content:_}){const b=bo?"":js(de),l=u?"":gs(ho,fe,Ce),xe=!u&&ks(ho)!=="",d=Ws(pe,Se),U=typeof xo=="string"?Me(xo.trim()):null,_o=U?{backgroundColor:U}:void 0,Po=qs(),X=$===!0&&o!=="tabs",t=Ko(h),T=Ze(),he=Ye(),Ro=He(),G=ze(),$e=Ge(),v=Ps(o,n),a=S==="scroll"&&o!=="tabs",x=os(),_e=ts(),Pe=rs(),N=ms({inCopy:x!==null,nestedCopy:x?.nested===!0,underBox:Pe}),z=N&&es(x?.ownerType),yo=ls({direction:o,separator:n,loop:S,line:$,bgImage:h,columns:O,columnsTablet:W,share:p,wrap:mo},N,B.desktop)&&ns(be,x?.index),Lo=t||N?"":as(_e,o,a?void 0:A,C),E=Cs({direction:o,separator:n,loop:S,line:$,columns:O}),J=ps({direction:o,separator:n,loop:S,line:$,columnsTablet:W}),Ao=Ss({direction:o,separator:n,loop:S,line:$,columns:O,columnsTablet:W,share:p,shareTablet:io}),Re=Ke(),k=Vs(B,_.blockCount??0),ye=k&&(!x||x.index===0)?Zs(B,_.blockCount??0):"",wo=[F(p),o==="row"?fs(p):"",E,J,Ao,ds(re),hs(o,n)].filter(Boolean).join(" "),Le=wo?` ${wo}`:"",Oo=["flex",o==="row"?v||a?"flex-row":`flex-row ${L(w,M,te)}`:"flex-col",xs(a?!1:mo),t?Ts(ce??"center",o):us(a?void 0:A,C)+(Lo?` ${Lo}`:"")].join(" ")+Le,P=u||t||l||G?` ${D}`:"",K=xe?` ${l}`:l?`${P} ${l}`:P,Bo=$e&&o==="column"&&!t&&!a&&F(p)===""&&typeof A=="string"&&A!=="start",To=P||(Bo?` ${D}`:""),Y=b?` ${Ds}`:"",q=t||T||fo?"":" py-6",Ae=`${so}${q} ${to}${K}${Y}`,we=T?`${K}${Y}`.trim():`w-full${q}${K}${Y}`,R=is("Flex",co,o==="row"?"inline":"block",se,v||a?void 0:I),Oe=v?{...R.style,..._s(o,n)}:R.style,vo=(e="")=>s(_,{className:`${Oo}${yo?` ${cs}`:""}${R.className}${To}${e?` ${e}`:""}${X?` ${Ys}`:""}${d?` ${Is(d)}`:""}${k}`,style:Oe,minEmptyHeight:120}),No=As(H)?"":$s(o,n),Eo=a?s(ws,{direction:H,seconds:me,delay:ie,editing:bo,copy:e=>vo(e&&No?`${e} ${No}`:e)}):vo(),ko=o==="tabs"?s(We,{className:`${Oo}${R.className}${G&&!u&&!t&&!l?"":P}`,style:R.style,shape:ee,children:Eo}):Eo,go=Ro?s(je.Provider,{value:!1,children:ko}):ko,Be={stretchedRow:o==="row"&&!t&&(C===void 0||C==="stretch"),fillingColumn:o==="column"&&(G||Bo),columnsRow:E!==""||J!==""||k!=="",...$o?{id:$o}:null},Fo=s(Xe.Provider,{value:Be,children:s(Ue.Provider,{value:!1,children:N?s(ss.Provider,{value:yo,children:go}):go})}),Q=X?s(Js,{row:o==="row",stops:_.blockCount??0,children:Fo}):Fo,Te=oe?.trim()||(Ro?"":void 0),ve={values:r,frame:q?24:0},Ne=e=>Po?s(Ks,{on:Po,future:ue===!0,children:e}):e,Ee=e=>b.startsWith("/")?s(Hs,{href:b,className:Qo,"aria-labelledby":e,[qo]:""}):s("a",{href:b,className:Qo,"aria-labelledby":e,[qo]:""}),Do=(d?Ms(d):"")+ye,Io=Do?s("style",{dangerouslySetInnerHTML:{__html:Do}}):null,y=Ns({loop:S,direction:o,scrollDirection:H,bgImage:h}),ke=B.desktop&&k!==""&&!U&&!Vo(Co,po)&&Object.keys(Yo(So)).length===0&&!b&&!l&&!u&&!d&&!Es(j&&!y,Re)&&ao(co)&&(lo(I)||ao(I))&&fo&&Object.values(r).every(e=>lo(e)||ao(e)),ge=e=>({...ke?{[Qs]:""}:null,...t?null:Yo(So),...d?{[Fs]:d}:null,...e?{id:e}:null}),Mo=E!==""?Number(O):0,Fe=L(w,M)===L(void 0),De=(o==="column"||o==="row"&&!v&&!a&&(Mo===1&&Fe||Mo===0&&_.blockCount===1))&&!t&&!X&&!T,Wo=t&&he&&!T,jo=(e,c)=>Ne(s(Je,{contained:j&&!y,style:y?no:void 0,framedClass:Ae,fillClass:we,columnClass:`${so} ${to}${To}`,tabLabel:Te,pad:t?void 0:ve,border:Vo(Co,po),outerAttrs:ge(c),box:!0,edge:De,outerStyle:t?void 0:_o,bleed:Wo,children:Io||c?eo(g,{children:[Io,c?Ee(c):null,y?s(Jo,{children:e}):e]}):y?s(Jo,{children:e}):e})),Ho=e=>b?s(tt,{children:c=>jo(e,c)}):jo(e);if(!t){const e=C===void 0||C==="stretch",c=(F(p)!==""||E!==""||J!=="")&&!bs(w,M)&&!(Ao!==""&&F(io)==="")&&(e||L(w)!==L(void 0));return Ho((o==="row"?c:o==="column"&&e)?s(Ve.Provider,{value:!0,children:Q}):Q)}const V=Bs(le,ae),Z=Ko(uo),Uo=Z?{"--sf-box-bg":ro(h??""),"--sf-box-bg-p":ro(uo??"")}:{backgroundImage:ro(h??""),backgroundSize:"cover",backgroundPosition:"center"},Xo=zs(void 0,void 0,ne),f=Xo.className?Xo:null,oo=Us({...r,top:i(r.top)??m.desktop,bottom:i(r.bottom)??m.desktop,topPhone:i(r.topPhone)??m.phone,bottomPhone:i(r.bottomPhone)??m.phone,left:i(r.left)??m.side,right:i(r.right)??m.side,leftPhone:i(r.leftPhone)??m.sidePhone,rightPhone:i(r.rightPhone)??m.sidePhone}),Go=s("div",{className:`relative z-[1] ${Os} ${oo?.className??""}${u||l?` ${D}`:""}`.trimEnd(),style:V?{...oo?.style,...no,...Xs}:{...oo?.style,...no},children:Q}),zo=Wo&&j?s("div",{className:`${so} ${to}${u||l?` ${D}`:""}`,children:Go}):Go;return Ho(s(g,{children:eo("div",{className:`relative isolate overflow-hidden ${vs}${P}${Z&&!f?` ${Zo}`:""}`,style:{...z?et:{},..._o,...f?{}:Uo},...f?{[Gs]:""}:{},children:[f&&eo(g,{children:[s(ot,{sheet:f.sheet}),s("div",{"aria-hidden":!0,className:`absolute inset-0${z?" rounded-[inherit]":""}${Z?` ${Zo}`:""} ${f.className}`,style:{...Uo,...f.style??{}}})]}),s(Qe,{wash:V,...z?{className:"rounded-[inherit]"}:{}}),V?s(qe,{children:zo}):zo]})}))}export{rt as default};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
2
|
import { type HeroMediaPart } from "../lib/document/hero-media-parts.js";
|
|
3
3
|
import { entranceDrawn } from "../lib/animation/entrance.js";
|
|
4
|
+
import { type ImageTreatment } from "../../format/lib/content/image-treatment.js";
|
|
4
5
|
import { type MediaLayout } from "../../format/lib/hero-media-layout.js";
|
|
5
6
|
export declare function heroMediaReading(p: {
|
|
6
7
|
isVideo: boolean;
|
|
@@ -22,6 +23,15 @@ export declare function heroPartEntrance(partMotion: Record<string, unknown> | u
|
|
|
22
23
|
desktop: import("efficient-shell/ui").EntranceValue;
|
|
23
24
|
phone: import("efficient-shell/ui").EntranceValue;
|
|
24
25
|
} | null;
|
|
26
|
+
export declare function heroPartHover(partMotion: Record<string, unknown> | undefined, part: HeroMediaPart): ImageTreatment;
|
|
27
|
+
export declare function heroPicturesHover(partMotion: Record<string, unknown> | undefined): {
|
|
28
|
+
hostAttrs?: Record<string, string>;
|
|
29
|
+
sheet?: string;
|
|
30
|
+
};
|
|
31
|
+
export declare function HeroPictureHover({ treatment, children }: {
|
|
32
|
+
treatment: ImageTreatment;
|
|
33
|
+
children: ReactNode;
|
|
34
|
+
}): import("react").JSX.Element;
|
|
25
35
|
export declare function HeroTint({ color, opacity, passClicks }: {
|
|
26
36
|
color: string;
|
|
27
37
|
opacity: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{
|
|
1
|
+
"use client";import{Fragment as m,jsx as i,jsxs as l}from"react/jsx-runtime";import u from"./HeroPoster.js";import{SectionAnimation as h}from"./SectionAnimation.js";import{resolveMedia as p}from"../lib/media.js";import{HERO_MEDIA_PARTS as g,HERO_PART_ATTR as v}from"../lib/document/hero-media-parts.js";import{entranceDrawn as y}from"../lib/animation/entrance.js";import{readPartMotion as b}from"../lib/animation/part-motion.js";import{pictureHoverOf as w}from"../../format/lib/animation/hover.js";import{PHOTO_HOST_ATTR as T,SITE_PHOTO_CSS as H,resolveImageTreatment as _}from"../../format/lib/content/image-treatment.js";import{heroPictureCount as k,normaliseMediaLayout as j,resolvePhoneLayout as N}from"../../format/lib/hero-media-layout.js";import{normaliseVideoPlayback as O,normaliseVideoSource as S,parseYouTubeId as A}from"../../format/lib/hero-video.js";import{hidableText as R}from"efficient-easel/draw";const V={one:"max-[719px]:grid-cols-1 max-[719px]:grid-rows-1",side:"max-[719px]:grid-cols-2 max-[719px]:grid-rows-1",stacked:"max-[719px]:grid-cols-1 max-[719px]:grid-rows-2"},C={one:"view-tablet:grid-cols-1 view-tablet:grid-rows-1",side:"view-tablet:grid-cols-2 view-tablet:grid-rows-1",stacked:"view-tablet:grid-cols-1 view-tablet:grid-rows-2"};function q(e){const o=e.isVideo&&S(e.videoSource)==="youtube",r=e.isVideo&&O(e.videoPlayback)==="click",n=o?A(R(e.youtubeUrl)):null,t=j(e.mediaLayout);return{fromYouTube:o,onClick:r,youTubeId:n,backgroundFile:e.isVideo&&!o&&!r,desktopLayout:t,phoneLayout:N(e.mediaLayoutPhone,t),twoPictures:!e.isVideo&&k(e)>1}}function d(e,o){return y(b({_partMotion:e},o))}function c(e,o){return _(void 0,void 0,w(b({_partMotion:e},o)))}function B(e){return g.some(r=>c(e,r).className)?{hostAttrs:{[T]:""},sheet:H}:{}}function x({treatment:e,children:o}){return e.className?i("div",{className:`absolute inset-0 ${e.className}`,...e.style?{style:e.style}:{},children:o}):i(m,{children:o})}function P({color:e,opacity:o,passClicks:r=!0}){return o>0?i("div",{className:r?"pointer-events-none absolute inset-0 z-[2]":"absolute inset-0 z-[2]",style:{background:e,opacity:Math.min(Math.max(o,0),100)/100}}):null}function f({part:e,editing:o,marked:r=!0,entrance:n,className:t,children:s}){const a=o&&r?{[v]:e}:void 0;return n?i(h,{desktop:n.desktop,phone:n.phone,editing:o,boxClass:t,boxAttrs:a,children:s}):i("div",{className:t,...a,children:s})}function J({partMotion:e,editing:o,children:r}){const n=d(e,"media"),t=c(e,"media"),s=t.className?i("div",{className:`absolute inset-0 z-[1] ${t.className}`,...t.style?{style:t.style}:{},children:r}):r;return n?i(h,{desktop:n.desktop,phone:n.phone,editing:o,boxClass:"absolute inset-0 z-[1]",children:s}):i(m,{children:s})}function Q({desktopLayout:e,phoneLayout:o,editing:r,marked:n=!0,partMotion:t,first:s,second:a}){return l("div",{className:`absolute inset-0 z-[1] grid ${V[o]} ${C[e]}`,"data-hero-layout":e,"data-hero-layout-phone":o,children:[i(f,{part:"image",editing:r,marked:n,entrance:d(t,"image"),className:"relative overflow-hidden",children:l(x,{treatment:c(t,"image"),children:[i(u,{posterSrc:p(s.src),showVideo:!1,objectPosition:s.objectPosition,objectPositionPhone:s.objectPositionPhone}),i(P,{color:s.tintColor,opacity:s.tintOpacity})]})}),i(f,{part:"image2",editing:r,marked:n,entrance:d(t,"image2"),className:`relative overflow-hidden${o==="one"?" max-[719px]:hidden":""}${e==="one"?" view-tablet:hidden":""}`,children:l(x,{treatment:c(t,"image2"),children:[i(u,{posterSrc:p(a.src),showVideo:!1,objectPosition:a.objectPosition,objectPositionPhone:a.objectPositionPhone}),i(P,{color:a.tintColor,opacity:a.tintOpacity})]})})]})}export{J as HeroMediaLayer,f as HeroPickArea,x as HeroPictureHover,P as HeroTint,Q as HeroTwoPictures,q as heroMediaReading,d as heroPartEntrance,c as heroPartHover,B as heroPicturesHover};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as e,jsxs as N}from"react/jsx-runtime";import{useRef as
|
|
1
|
+
"use client";import{jsx as e,jsxs as N}from"react/jsx-runtime";import{useRef as J,useState as Q}from"react";import W from"./HeroPoster.js";import{HeroMediaLayer as X,heroMediaReading as Z,HeroPickArea as ee,heroPartEntrance as oe,heroPartHover as re,HeroPictureHover as te,heroPicturesHover as se,HeroTint as ie,HeroTwoPictures as ae}from"./HeroPictures.js";import{HeroVideoBackdrop as ne,HeroVideoPlayer as ce}from"./HeroVideoPlay.js";import{resolveMedia as t}from"../lib/media.js";import{hasSectionHeight as le,resolveSectionHeight as I}from"../../format/lib/content/section-height.js";import{DEFAULT_OVERLAY_POSITION as de,overlayGradient as he}from"../../format/lib/sections/hero-overlay.js";import{ON_MEDIA_INK_STYLE as me}from"../../format/lib/content/ink.js";import{DEFAULT_TINT as c}from"../../format/lib/content/tint.js";import ue from"./PhotoHoverSheet.js";function fe({overlay:j=100,overlayColor:k=c,overlayPosition:E=de,mediaType:l="image",mediaSrc:s,poster:d,objectPosition:h,objectPositionPhone:m,tintColor:u=c,tintOpacity:f=0,heightDesktop:p,heightMobile:v,boxes:g,videoSource:A,youtubeUrl:V,videoPlayback:z,mediaLayout:O,mediaLayoutPhone:R,mediaImage2:F,objectPosition2:M,objectPosition2Phone:Y,tintColor2:C=c,tintOpacity2:D=0,editing:o=!1,partMotion:r}){const y=le(p,v),U=y?"h-[var(--sf-hero-h-m)] view-tablet:h-[var(--sf-hero-h-d)]":"h-screen min-h-[680px]",B=y?{"--sf-hero-h-d":I(p),"--sf-hero-h-m":I(v)}:void 0,i=l==="video",H=i?t(s):void 0,P=i?t(d):t(s)??t(d),{fromYouTube:b,onClick:x,youTubeId:w,backgroundFile:T,desktopLayout:G,phoneLayout:K,twoPictures:S}=Z({isVideo:i,videoSource:A,videoPlayback:z,youtubeUrl:V,mediaLayout:O,mediaLayoutPhone:R}),[_,$]=Q(!1),a=!_,q=J(null),n=l==="video"?"media":"image",L=se(r);return N("section",{ref:q,className:`relative mx-[var(--sf-hero-bleed-m,calc(50%_-_50vw))] w-[var(--sf-hero-bleed-w,100vw)] ${U} max-w-[var(--sf-hero-cap,none)] overflow-hidden`,style:B,...L.hostAttrs,children:[e(ue,{sheet:L.sheet}),e(X,{partMotion:r,editing:o,children:S?e(ae,{desktopLayout:G,phoneLayout:K,editing:o,partMotion:r,first:{src:s,objectPosition:h,objectPositionPhone:m,tintColor:u,tintOpacity:f},second:{src:F,objectPosition:M,objectPositionPhone:Y,tintColor:C,tintOpacity:D}}):e(ee,{part:n,editing:o,entrance:n==="image"?oe(r,"image"):null,className:"absolute inset-0 z-[1]",children:N(te,{treatment:n==="image"?re(r,"image"):{},children:[e(W,{videoSrc:T?H:void 0,posterSrc:P,showVideo:T,objectPosition:h,objectPositionPhone:m}),b&&e(ne,{youTubeId:w,ownPoster:!!P,background:!x,editing:o})]})})}),x&&e(ce,{youTubeId:w,fileSrc:b?void 0:H,playing:_,onPlay:()=>$(!0),editing:o}),a&&!S&&e(ie,{color:u,opacity:f}),a&&e("div",{className:"pointer-events-none absolute inset-0 z-[2]",style:{background:he(k,E),opacity:Math.min(Math.max(j,0),100)/100}}),a&&g&&e("div",{className:["sf-hero-group-layer absolute inset-0 z-[3] mx-auto","max-w-[var(--sf-site-width,1600px)]","px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14",o?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:me,children:e(g,{className:"sf-hero-group-zone",minEmptyHeight:160})})]})}export{fe as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as e,jsxs as
|
|
1
|
+
"use client";import{jsx as e,jsxs as I}from"react/jsx-runtime";import{createContext as re,useContext as ie,useState as se}from"react";import ae from"./HeroPoster.js";import{HeroMediaLayer as ne,heroMediaReading as le,HeroPickArea as de,heroPartEntrance as ce,heroPartHover as ue,HeroPictureHover as pe,heroPicturesHover as fe,HeroTint as me,HeroTwoPictures as he}from"./HeroPictures.js";import{HeroVideoBackdrop as ye,HeroVideoPlayer as ve}from"./HeroVideoPlay.js";import{resolveMedia as s}from"../lib/media.js";import{heroPhoneStackStyle as xe}from"../../format/lib/hero-phone-stack.js";import{heroTextureGradient as ge,heroTextureShown as He}from"../../format/lib/hero-texture.js";import{ON_MEDIA_INK_STYLE as Pe}from"../../format/lib/content/ink.js";import{DEFAULT_TINT as N}from"../../format/lib/content/tint.js";import{overlayGradient as Se,slideOverlayState as be}from"../../format/lib/sections/hero-overlay.js";import we from"./PhotoHoverSheet.js";const ke=re({});function Te({name:f,process:a,mediaType:C="video",mediaSrc:n,videoSpeed:m,poster:h,objectPosition:y,objectPositionPhone:v,tintColor:x=N,tintOpacity:g=0,groups:H,editing:t=!1,themeClassName:P,themeStyle:O,overlayColor:V,overlayPosition:A,mediaLayout:D,mediaLayoutPhone:R,mediaImage2:z,objectPosition2:q,objectPosition2Phone:B,tintColor2:F=N,tintOpacity2:M=0,videoSource:U,youtubeUrl:Y,videoPlayback:$,partMotion:r}){const{alignment:Ee="left",textureOpacity:S,textureOn:G,textureColor:K,quietVideo:J,phoneUpDown:Q,phoneSideways:W,holdReel:X,reelHeld:Z}=ie(ke),o=C==="video",l=o?s(n):void 0,b=o?s(h):s(n)??s(h),ee=typeof m=="number"?m/100:1,{fromYouTube:d,onClick:w,youTubeId:k,backgroundFile:c,desktopLayout:oe,phoneLayout:te,twoPictures:T}=le({isVideo:o,videoSource:U,videoPlayback:$,youtubeUrl:Y,mediaLayout:D,mediaLayoutPhone:R}),[u,E]=se(!1);u&&Z===!1&&E(!1);const p=!u,i=be({overlayColor:V,overlayPosition:A},K),L=o?null:ce(r,"image"),_=fe(r),j=e(pe,{treatment:o?{}:ue(r,"image"),children:e(ae,{videoSrc:c?l:void 0,posterSrc:b,showVideo:c,playbackRate:ee,objectPosition:y,objectPositionPhone:o?void 0:v,quiet:J})});return I("section",{className:P?`relative h-full w-full overflow-hidden ${P}`:"relative h-full w-full overflow-hidden",style:O,"data-slide-name":f??"","data-slide-process":a??"","data-slide-media":c&&l?"video":"still",..._.hostAttrs,children:[e(we,{sheet:_.sheet}),e(ne,{partMotion:r,editing:t,children:T?e(he,{desktopLayout:oe,phoneLayout:te,editing:t,marked:!1,partMotion:r,first:{src:n,objectPosition:y,objectPositionPhone:v,tintColor:x,tintOpacity:g},second:{src:z,objectPosition:q,objectPositionPhone:B,tintColor:F,tintOpacity:M}}):d||L?I(de,{part:o?"media":"image",editing:t,marked:!1,entrance:L,className:"absolute inset-0 z-[1]",children:[j,d&&e(ye,{youTubeId:k,ownPoster:!!b,background:!w,editing:t})]}):j}),w&&e(ve,{youTubeId:k,fileSrc:d?void 0:l,playing:u,onPlay:()=>{E(!0),X?.()},editing:t}),p&&!T&&e(me,{color:x,opacity:g,passClicks:!1}),p&&He(G)&&e("div",{className:"absolute inset-0 z-[2]",style:{background:i.own?Se(i.color,i.position??void 0):ge(i.color),...S!==void 0?{opacity:S/100}:null}}),p&&e("div",{className:["sf-hero-group-layer absolute inset-0 z-[3] mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14",t?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{...Pe,...xe(Q,W)},children:H&&e(H,{className:"sf-hero-group-zone",minEmptyHeight:160})})]})}const qe=Array.from({length:3},(f,a)=>({name:`Slide ${a+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));export{qe as HERO_SLIDE_SEEDS,ke as HeroSlideStyleContext,Te as default};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type ImageFit } from "../../format/lib/content/image-fit.js";
|
|
2
|
+
import type { PictureHoverDrawn } from "../../format/lib/animation/hover.js";
|
|
2
3
|
import type { PadValues } from "../lib/content/section-padding.js";
|
|
3
4
|
type Aspect = "auto" | "21/9" | "16/9" | "4/3" | "1/1";
|
|
4
5
|
interface ImageBlockProps {
|
|
@@ -9,6 +10,10 @@ interface ImageBlockProps {
|
|
|
9
10
|
caption?: string;
|
|
10
11
|
contained: boolean;
|
|
11
12
|
grayscale?: boolean;
|
|
13
|
+
pictureHover?: PictureHoverDrawn;
|
|
14
|
+
nextSrc?: string;
|
|
15
|
+
darken?: number;
|
|
16
|
+
darkenStyle?: string;
|
|
12
17
|
href?: string;
|
|
13
18
|
fit?: ImageFit;
|
|
14
19
|
focal?: string;
|
|
@@ -18,5 +23,5 @@ interface ImageBlockProps {
|
|
|
18
23
|
pad?: PadValues;
|
|
19
24
|
ownSize?: boolean;
|
|
20
25
|
}
|
|
21
|
-
export default function ImageBlock({ src, alt, aspect, contained, grayscale, href, fit, focal, focalPhone, corners, cornerSides, pad, ownSize, editing, }: ImageBlockProps): import("react").JSX.Element | null;
|
|
26
|
+
export default function ImageBlock({ src, alt, aspect, contained, grayscale, pictureHover, nextSrc, darken, darkenStyle, href, fit, focal, focalPhone, corners, cornerSides, pad, ownSize, editing, }: ImageBlockProps): import("react").JSX.Element | null;
|
|
22
27
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import{SiteLink as
|
|
1
|
+
import{jsx as e,Fragment as S,jsxs as E}from"react/jsx-runtime";import{SiteLink as J}from"../lib/site-runtime.js";import K from"./BlockFrame.js";import{useSectionEdge as Q}from"./SiteGutterFrame.js";import{useSitePhotography as Y}from"./SitePhotographyContext.js";import{media as I}from"../lib/media.js";import{CONTENT_SIZES as P,sizedImage as w}from"../../format/lib/sized-image.js";import{imageCornerStyle as H}from"../../format/lib/content/image-corners.js";import{imageFitClass as T,imageIsCropped as ee,parseImageFit as se}from"../../format/lib/content/image-fit.js";import{NEXT_PICTURE_CLASS as te,PICTURE_FRAME_CLASS as le,PICTURE_WASH_CLASS as oe,PICTURE_ZOOM_CLASS as ae,PICTURE_ZOOM_VAR as re,resolveImageTreatment as ne,resolveNextPicture as ce}from"../../format/lib/content/image-treatment.js";import{boxDarkenStyle as j}from"../../format/lib/content/box-background.js";import{phoneFocus as me}from"../../format/lib/content/phone-focus.js";import{say as ie}from"../../format/lib/editor-words.js";import{sectionEdgeAttrs as fe}from"../lib/content/section-edge.js";import z from"./PhotoHoverSheet.js";import de from"./PictureWash.js";const he={auto:"","21/9":"aspect-[21/9]","16/9":"aspect-[16/9]","4/3":"aspect-[4/3]","1/1":"aspect-square"};function ue({src:t,alt:A,aspect:d,contained:F,grayscale:O,pictureHover:l,nextSrc:y,darken:L,darkenStyle:N,href:R,fit:U,focal:b,focalPhone:W,corners:B,cornerSides:M,pad:C,ownSize:Z=!1,editing:q=!1}){const r=ne(O,Y(),l),h=se(U,"cover"),_=H(B,M),$=ee(d,h),o=me($?W:void 0),n={...r.style??{},...b&&$?{objectPosition:b}:{},...o.style},c=t?w(I(t)):null,s=ce(l),a=s&&y?w(I(y)):null,m=s?l?.zoom??null:null,D=j(L,N),k=s&&l?.darken?j(l.darken,N):null,u=!!(s&&(a||m||k)),v=u?{...s?.style??{},...m?{[re]:m}:{}}:{},V=s&&a?e(S,{children:e("img",{src:a.src,...a.srcSet?{srcSet:a.srcSet,sizes:P}:{},alt:"","aria-hidden":"true",loading:"lazy",decoding:"async",className:`absolute inset-0 h-full w-full bg-surface ${T(h)}${o.className?` ${o.className}`:""} ${s.className}`,...Object.keys(n).length?{style:n}:{}})}):null,p=t&&c?E(S,{children:[e("img",{src:c.src,...c.srcSet?{srcSet:c.srcSet,sizes:P}:{},alt:A,className:`h-full w-full ${d==="auto"?"":T(h)}${r.className?` ${r.className}`:""}${o.className?` ${o.className}`:""}`,...Object.keys(n).length?{style:n}:{}}),V]}):null,g=p?E(S,{children:[e(z,{sheet:r.sheet}),u&&s?e(z,{sheet:s.sheet,name:te}):null,m?e("div",{className:`relative h-full w-full ${ae}`,children:p}):p,e(de,{wash:D,hover:k,className:`pointer-events-none ${oe}`})]}):e("div",{className:"flex aspect-[16/9] items-center justify-center border border-dashed border-line font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.2em] text-fg-dim",children:ie("Image — set a path")}),i=(R??"").trim(),X=i&&t?i.startsWith("/")?e(J,{href:i,className:"block h-full w-full",children:g}):e("a",{href:i,className:"block h-full w-full",children:g}):g,x=Q(),f=x&&!Z?fe(x):null,G=C?{values:C,frame:24}:void 0;return!t&&!q?null:e(K,{contained:f?!1:F,className:"py-6",pad:G,...f?{fillWidth:f.className,style:f.style}:{},children:e("figure",{children:e("div",{className:`relative w-full overflow-hidden bg-surface ${he[d]}${u?` ${le}`:""}`,..._||Object.keys(v).length?{style:{..._,...v}}:{},children:X})})})}export{ue as default};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { PictureHoverDrawn } from "../../format/lib/animation/hover.js";
|
|
1
2
|
import { type WidthProps } from "../../format/lib/content/section-width.js";
|
|
2
3
|
export interface ManifestoStat {
|
|
3
4
|
value?: string;
|
|
@@ -10,6 +11,7 @@ export interface ManifestoProps extends WidthProps {
|
|
|
10
11
|
stats?: ManifestoStat[];
|
|
11
12
|
imageSrc?: string;
|
|
12
13
|
grayscale?: boolean;
|
|
14
|
+
pictureHover?: PictureHoverDrawn;
|
|
13
15
|
fillHeight?: boolean;
|
|
14
16
|
}
|
|
15
|
-
export default function Manifesto({ eyebrow, heading, body, stats, imageSrc, grayscale, fillHeight, ...widthProps }?: ManifestoProps): import("react").JSX.Element;
|
|
17
|
+
export default function Manifesto({ eyebrow, heading, body, stats, imageSrc, grayscale, pictureHover, fillHeight, ...widthProps }?: ManifestoProps): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as o}from"react/jsx-runtime";import
|
|
1
|
+
import{jsx as e,jsxs as o}from"react/jsx-runtime";import b from"./AnimatedStat.js";import w from"./Placeholder.js";import{useSitePhotography as y}from"./SitePhotographyContext.js";import N from"./SectionEyebrow.js";import{renderGold as _,renderHeadline as j,splitParagraphs as S}from"./goldPhrases.js";import{resolveImageTreatment as M}from"../../format/lib/content/image-treatment.js";import{sectionRunsFullWidth as T}from"../../format/lib/content/section-width.js";import{SECTION_FILL_CLASS as z}from"../../format/lib/content/section-min-height.js";const i={headingMediumUpTo800:"max-view-wide:text-[length:min(var(--size-headingMedium,36px),var(--sf-heading-max,9999px))]",headingMedium:"text-[length:min(var(--size-headingMedium,56px),var(--sf-heading-max,9999px))]",body:"text-[length:var(--size-body,16px)]"};function $({eyebrow:s,heading:d,body:x,stats:p,imageSrc:c,grayscale:f,pictureHover:g,fillHeight:u=!1,...h}={}){const v=M(f,y(),g),l=s||null,n=d||null,m=x||null,r=(p??[]).filter(a=>(a.value??"").trim()!==""||(a.label??"").trim()!=="");return e("section",{className:"relative z-[2] bg-bg p-0",children:o("div",{className:`grid ${u?z:"h-screen"} min-h-[100vh] grid-cols-2 border-y border-line max-[960px]:h-auto max-[960px]:grid-cols-1`,children:[e("div",{className:"flex flex-col justify-center border-r border-line px-[var(--sf-site-gutter,40px)] py-[100px] max-[960px]:order-2 max-[960px]:border-r-0 max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[960px]:py-[60px]",children:o("div",{className:T(h)?"flex w-full flex-col gap-7":"ml-auto flex w-full flex-col gap-7 max-w-[calc(var(--sf-site-width,1600px)/2_-_var(--sf-site-gutter,40px)*2_-_1px)] max-[960px]:ml-0 max-[960px]:max-w-none",children:[l!==null&&e(N,{text:l,size:14}),n!==null&&e("h2",{className:`font-heading2 ${i.headingMedium} font-normal leading-[1.05] tracking-[-0.03em] ${i.headingMediumUpTo800} max-view-wide:leading-[1]`,children:j(n,!0)}),m!==null&&S(m).map((a,t)=>e("p",{className:`max-w-[520px] ${i.body} leading-[1.7] text-fg-dim`,children:_(a)},t)),r.length>0&&e("div",{className:"mt-4 grid max-w-[520px] gap-6 border-t border-line pt-7",style:{gridTemplateColumns:`repeat(${r.length}, minmax(0, 1fr))`},children:r.map((a,t)=>e(b,{target:a.value??"",label:a.label??""},t))})]})}),e("div",{className:"sf-card relative flex items-center justify-center bg-surface overflow-hidden max-[960px]:aspect-[4/3]",children:e(w,{label:"manifesto",src:c||void 0,objectFit:"cover",objectPosition:"center",treatment:v})})]})})}export{$ as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";const r="sf-photo-hover";function n({sheet:e,name:o=r}){return e?t("style",{href:o,precedence:r,dangerouslySetInnerHTML:{__html:e}}):null}export{n as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r,Fragment as i,jsxs as n}from"react/jsx-runtime";import{PICTURE_WASH_HOVER_CLASS as d,PICTURE_WASH_REST_CLASS as l}from"../../format/lib/content/image-treatment.js";function u({wash:e,hover:s,className:a}){const t=`absolute inset-0 z-0${a?` ${a}`:""}`;return s?n(i,{children:[e&&r("div",{className:`${t} ${l}`,style:e,"aria-hidden":!0}),r("div",{className:`${t} ${d}`,style:s,"aria-hidden":!0})]}):e?r("div",{className:t,style:e,"aria-hidden":!0}):null}export{u as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as
|
|
1
|
+
"use client";import{jsx as r,jsxs as x}from"react/jsx-runtime";import{useEffect as w,useState as u}from"react";import{SiteImage as I}from"../lib/site-runtime.js";import{isExternalMediaUrl as E}from"../lib/media.js";import{sizedImage as k}from"../../format/lib/sized-image.js";import z from"./PhotoHoverSheet.js";function $({fallback:m,className:y,src:p,alt:i="",objectPosition:l,objectFit:t="cover",sizes:f="100vw",priority:g=!1,deferFetch:h=!1,showBackground:S=!0,treatment:e}){const[c,o]=u(!1),[v,n]=u(!1),s=p||"";w(()=>{o(!1),n(!1)},[s]);const d=E(s),a=d&&!v?k(s):{src:s},N=!s||c;return x("div",{className:`relative h-full w-full overflow-hidden ${y??""}`,children:[r("div",{className:"absolute inset-0 flex items-center justify-center",style:S?{background:"var(--site-surface)"}:void 0,children:N?m:null}),s&&(d?r("img",{src:a.src,alt:i,...a.srcSet?{srcSet:a.srcSet,sizes:f}:{},decoding:"async",...h?{loading:"lazy"}:{},className:`absolute inset-0 h-full w-full${e?.className?` ${e.className}`:""}`,style:{display:c?"none":"block",objectFit:t,...l?{objectPosition:l}:{},...e?.style??{}},onError:()=>a.srcSet?n(!0):o(!0)}):r(I,{src:s,alt:i,fill:!0,sizes:f,priority:g,...e?.className?{className:e.className}:{},style:{display:c?"none":"block",objectFit:t,...l?{objectPosition:l}:{},...e?.style??{}},onError:()=>o(!0)})),r(z,{sheet:e?.sheet})]})}export{$ as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as a,jsxs as n}from"react/jsx-runtime";import{SiteLink as
|
|
1
|
+
import{jsx as a,jsxs as n}from"react/jsx-runtime";import{SiteLink as t}from"../lib/site-runtime.js";import{boxDarkenStyle as N,boxPlacementClasses as $,CARD_SHADOW_CLASS as S}from"../../format/lib/content/box-background.js";import{POST_CARD_HEIGHT as w}from"../../format/lib/post-card-layout.js";import k from"./PictureWash.js";import c from"./Placeholder.js";import{renderGold as l,renderHeadline as m}from"./goldPhrases.js";const r={body:"text-[length:var(--size-body,14px)]",headingSmall1:"text-[length:var(--size-headingSmall,22px)]",headingSmall2:"text-[length:var(--size-headingSmall,30px)]",label:"text-[length:var(--size-label,13px)]"};function y({post:e,scaffold:i=!1,layout:s,showCover:o=!0,placement:h,darken:g,darkenStyle:f,href:x,minHeight:b}){const d=x||(i?"#":`/journal/${e.slug}`),v=s==="cover",u=(e.meta||e.dateLabel||e.read)&&n("div",{className:`flex gap-3.5 font-mono ${r.label} uppercase tracking-[0.18em] text-fg-dim`,children:[e.meta&&a("span",{className:"text-accent",children:l(e.meta)}),e.dateLabel&&a("span",{children:l(e.dateLabel)}),e.read&&a("span",{children:l(e.read)})]});if(v){const p=N(g,f);return n(t,{href:d,className:`${S} group relative isolate flex overflow-hidden`,style:{minHeight:`${b??w.fallback}px`},"aria-disabled":i||void 0,tabIndex:i?-1:void 0,children:[a("div",{className:"absolute inset-0",children:a(c,{label:`post-${e.slug}`,src:e.cover||void 0,sizes:"(max-width: 800px) 100vw, 56vw"})}),a(k,{wash:p}),n("div",{className:`relative z-[1] flex w-full flex-col gap-2 p-8 text-overlay-fg max-view-wide:p-5 ${$(h??"bottom-left","column")}`,children:[e.meta&&a("div",{className:`font-mono ${r.label} uppercase tracking-[0.18em] text-accent`,children:l(e.meta)}),a("h3",{className:`font-heading3 ${r.headingSmall2} font-medium leading-[1.2] tracking-[-0.02em]`,children:m(e.title,!1)}),e.excerpt&&a("p",{className:`max-w-[46ch] ${r.body} leading-[1.55] opacity-80`,children:l(e.excerpt)}),(e.dateLabel||e.read)&&n("div",{className:`flex gap-3.5 font-mono ${r.label} uppercase tracking-[0.18em] opacity-75`,children:[e.dateLabel&&a("span",{children:l(e.dateLabel)}),e.read&&a("span",{children:l(e.read)})]})]})]})}return n(t,{href:d,style:{"--card-bg":"var(--site-surface)","--card-bg-hover":"var(--site-surface-2)"},className:"sf-card sf-card-fill group block bg-[var(--card-bg)] transition-colors duration-300 hover:bg-[var(--card-bg-hover)]","aria-disabled":i||void 0,tabIndex:i?-1:void 0,children:[o&&(e.cover||i)&&a("div",{className:"sf-card-image relative aspect-[16/10] overflow-hidden bg-bg",children:a(c,{label:`event-${e.slug}`,src:e.cover||void 0})}),n("div",{className:"flex flex-col gap-2.5 px-7 pb-8 pt-6",children:[u,a("h3",{className:`mt-1 font-heading3 ${r.headingSmall1} font-medium leading-[1.2] tracking-[-0.02em]`,children:m(e.title,!1)}),e.excerpt&&a("p",{className:`${r.body} leading-[1.55] text-fg-dim`,children:l(e.excerpt)}),n("span",{className:`mt-1.5 inline-flex items-center gap-2 font-mono ${r.label} uppercase tracking-[0.2em] transition-colors group-hover:text-accent`,children:["Read more",a("span",{"aria-hidden":!0,children:"→"})]})]})]})}export{y as default};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { PictureHoverDrawn } from "../../format/lib/animation/hover.js";
|
|
1
2
|
interface Props {
|
|
2
3
|
imageLabel: string;
|
|
3
4
|
imageSrc?: string;
|
|
@@ -29,7 +30,8 @@ interface Props {
|
|
|
29
30
|
href: string;
|
|
30
31
|
};
|
|
31
32
|
grayscale?: boolean;
|
|
33
|
+
pictureHover?: PictureHoverDrawn;
|
|
32
34
|
fillHeight?: boolean;
|
|
33
35
|
}
|
|
34
|
-
export default function Split({ imageLabel, imageSrc, imageTint, imageObjectPosition, eyebrow, title, body, cta, reverse, uppercase, textAlign, textAlignPhone, textBgSrc, textBgLabel, textBgTint, textBgObjectPosition, featureBar, imageButton, grayscale, fillHeight, }: Props): import("react").JSX.Element;
|
|
36
|
+
export default function Split({ imageLabel, imageSrc, imageTint, imageObjectPosition, eyebrow, title, body, cta, reverse, uppercase, textAlign, textAlignPhone, textBgSrc, textBgLabel, textBgTint, textBgObjectPosition, featureBar, imageButton, grayscale, pictureHover, fillHeight, }: Props): import("react").JSX.Element;
|
|
35
37
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t}from"react/jsx-runtime";import{alignPhoneClass as
|
|
1
|
+
import{jsx as e,jsxs as t}from"react/jsx-runtime";import{alignPhoneClass as A,blockAlignOf as F}from"../../format/lib/content/block-align.js";import{SiteLink as N}from"../lib/site-runtime.js";import G from"./Btn.js";import{resolveImageTreatment as H}from"../../format/lib/content/image-treatment.js";import j from"./Placeholder.js";import{useSitePhotography as X}from"./SitePhotographyContext.js";import D from"./SectionEyebrow.js";import{renderGold as a,renderHeadline as K,splitParagraphs as R}from"./goldPhrases.js";import{ON_MEDIA_INK_STYLE as Y}from"../../format/lib/content/ink.js";import{scrim as Z}from"../../format/lib/content/scrim.js";import{SECTION_FILL_CLASS as q}from"../../format/lib/content/section-min-height.js";const r={headingMediumUpTo800:"max-view-wide:text-[length:var(--size-headingMedium,36px)]",labelUpTo800:"max-view-wide:text-[length:var(--size-label,12px)]",headingMedium:"text-[length:min(var(--size-headingMedium,56px),var(--sf-heading-max,9999px))]",body:"text-[length:var(--size-body,16px)]",label:"text-[length:var(--size-label,13px)]"},$={words:{left:"min-[961px]:pl-[max(60px,calc(100%_-_var(--sf-content-cap,200%)/2_+_60px))]",right:"min-[961px]:pr-[max(60px,calc(100%_-_var(--sf-content-cap,200%)/2_+_60px))]"},buttons:{left:"min-[961px]:pl-[max(var(--sf-site-gutter,40px),calc(100%_-_var(--sf-content-cap,200%)/2_+_var(--sf-site-gutter,40px)))]",right:"min-[961px]:pr-[max(var(--sf-site-gutter,40px),calc(100%_-_var(--sf-content-cap,200%)/2_+_var(--sf-site-gutter,40px)))]"}};function J({imageLabel:p,imageSrc:d,imageTint:x=.4,imageObjectPosition:k,eyebrow:f,title:h,body:v,cta:o,reverse:n=!1,uppercase:T=!1,textAlign:g="left",textAlignPhone:b,textBgSrc:c,textBgLabel:z,textBgTint:u=.6,textBgObjectPosition:E,featureBar:i,imageButton:s,grayscale:L,pictureHover:I,fillHeight:P=!1}){const w=H(L,X(),I),y={left:{items:"",text:"",cta:"self-start"},center:{items:"items-center",text:"text-center",cta:"self-center"},right:{items:"items-end",text:"text-right",cta:"self-end"}},m=y[g]??y.left,S={left:{items:"max-view-tablet:items-stretch",cta:"max-view-tablet:self-start"},center:{items:"max-view-tablet:items-center",cta:"max-view-tablet:self-center"},right:{items:"max-view-tablet:items-end",cta:"max-view-tablet:self-end"}},_=A("text",g,b),l=_?{...S[F(b)??"left"],text:_}:void 0,M=n?"right":"left",C=n?"left":"right";return e("section",{className:"relative z-[2] bg-bg p-0",children:t("div",{className:["grid min-h-[72vh] grid-cols-2 border-t border-b border-line","max-[960px]:grid-cols-1","max-[960px]:min-h-0",n?"min-[961px]:[direction:rtl]":"",...P?[q]:[]].join(" "),children:[t("div",{className:"sf-card relative flex items-center justify-center overflow-hidden bg-surface [direction:ltr] max-[960px]:aspect-[4/3] max-[960px]:order-2",style:n?{borderLeft:"1px solid var(--site-line)"}:{borderRight:"1px solid var(--site-line)"},children:[e(j,{label:p,src:d,objectPosition:k,treatment:w}),d&&x>0&&e("div",{className:"absolute inset-0",style:{background:`rgba(0,0,0,${x})`}}),(i||s)&&t("div",{className:`pointer-events-none absolute inset-0 z-[3] flex flex-col items-center justify-center gap-4 px-[var(--sf-site-gutter,40px)] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))] ${$.buttons[M]}`,children:[i&&t(N,{href:i.href,className:`pointer-events-auto inline-flex items-center justify-center gap-3 border px-7 py-4 font-mono ${r.label} uppercase tracking-[0.18em] backdrop-blur-sm transition-colors max-view-wide:gap-2 max-view-wide:px-5 max-view-wide:py-3 ${r.labelUpTo800}`,style:{borderColor:"color-mix(in srgb, var(--overlay-fg) 30%, transparent)",color:"color-mix(in srgb, var(--overlay-fg) 85%, transparent)",background:Z(.45)},children:[e("span",{children:a(i.wheel)}),e("span",{"aria-hidden":!0,style:{opacity:.55},children:"·"}),e("span",{children:a(i.category)}),e("span",{"aria-hidden":!0,children:"→"}),e("span",{children:a(i.cta??"Shop now")})]}),s&&t(N,{href:s.href,className:`pointer-events-auto inline-flex items-center justify-center gap-2 border px-7 py-4 font-mono ${r.label} uppercase tracking-[0.18em] backdrop-blur-sm transition-colors hover:bg-[color-mix(in_srgb,var(--overlay-fg)_10%,transparent)] max-view-wide:gap-2 max-view-wide:px-5 max-view-wide:py-3 ${r.labelUpTo800}`,style:{borderColor:"color-mix(in srgb, var(--overlay-fg) 50%, transparent)",color:"color-mix(in srgb, var(--overlay-fg) 95%, transparent)",background:"transparent"},children:[e("span",{children:a(s.text??"Learn more")}),e("span",{"aria-hidden":!0,children:"→"})]})]})]}),t("div",{className:"relative overflow-hidden [direction:ltr] max-[960px]:order-1",children:[c&&t("div",{className:"absolute inset-0","aria-hidden":!0,children:[e(j,{label:z??p,src:c,objectPosition:E,treatment:w}),u>0&&e("div",{className:"absolute inset-0",style:{background:`rgba(0,0,0,${u})`}})]}),e("div",{className:`relative z-[2] flex h-full min-h-full flex-col px-[60px] py-[100px] max-[960px]:px-6 max-[960px]:py-[60px] ${$.words[C]}`,style:c?Y:void 0,children:t("div",{className:["flex flex-1 flex-col justify-center gap-6",m.items,m.text,l?.items,l?.text].filter(Boolean).join(" "),children:[f&&e(D,{text:f,size:14}),h&&e("h2",{className:[`font-heading2 ${r.headingMedium} font-normal leading-[1.05] tracking-[-0.03em]`,`${r.headingMediumUpTo800} max-view-wide:leading-[1]`,T?"uppercase":""].join(" "),children:K(h,!1)}),v&&R(v).map((O,U)=>e("p",{className:[`max-w-[520px] ${r.body} leading-[1.7]`,"text-fg-dim"].join(" "),children:a(O)},U)),o.text&&e("div",{className:`mt-2 ${m.cta}${l?` ${l.cta}`:""}`,children:e(G,{href:o.href,variant:"primary",children:a(o.text)})})]})})]})]})})}export{J as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as r,jsxs as _}from"react/jsx-runtime";import
|
|
1
|
+
import{jsx as r,jsxs as _}from"react/jsx-runtime";import b from"./BlockFrame.js";import{renderGold as p,renderHeadline as k,splitParagraphs as w}from"./goldPhrases.js";import{headingLook as O}from"./Heading.js";import{alignPhoneClass as j}from"../../format/lib/content/block-align.js";import{textTagOf as z}from"../../format/lib/content/text-tag.js";import{KICKER_NUMBER_ATTR as I,kickerLead as L}from"../lib/content/page-contents.js";import{isTextStyleId as R}from"../lib/document/part-styles.js";import{faceClassOf as T}from"../../format/lib/text-style-face.js";import{useMirroredCopy as A}from"./MirrorContext.js";import{mirroredTextClasses as N}from"../../format/lib/content/mirror-cards.js";const i={bodyUpTo800:"max-view-wide:text-[length:var(--size-body,14px)]",bodySmall:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,17px)]",label:"text-[length:var(--size-label,13px)]"},d=e=>e?` ${e}`:"";function M(e,o){const t=j("place",e,o);return t?` ${t}`:""}const U={left:"text-left",center:"text-left mx-auto",right:"text-left ml-auto"},B=`max-w-[380px] ${i.bodySmall} leading-[1.5] opacity-80 ${i.bodyUpTo800}`,G={default:"text-fg",dim:"text-fg-dim"};function H(e){return String(Math.min(Number(e.slice(8)),6))}function K({text:e,number:o,align:t,alignPhone:v,tone:x,contained:h,hero:C=!1,pad:l,tag:S,textStyle:u,ownWidth:E=!1,partAlign:g,onLine:n=!1}){const y=A();if(C)return r("p",{className:B,children:p(e)});const m=o?r("span",{[I]:"",children:L(o)}):void 0,a=R(u)?u:void 0,$=`${a?`${T({id:a})} `:""}${E?"":"max-w-[680px] "}whitespace-pre-line ${a==="body-5"?i.label:i.bodyLarge} leading-[1.7]${d(t?U[t]:"")}${M(t,v)}${d(x?G[x]:"")}${d(N(y,t,g))}`,c=z(S);if(a?.startsWith("heading-")){const f=H(a),s=O(f,T({id:a}));return r(b,{contained:h,className:n?"":"py-6",pad:l?{values:l,frame:n?0:24}:void 0,children:_(c,{className:`${s.className}${d(N(y,void 0,g))}`,style:s.style,children:[m,k(e.trim(),!1)]})})}return r(b,{contained:h,className:n?"":"py-4",pad:l?{values:l,frame:n?0:16}:void 0,children:c==="p"?w(e).map((f,s)=>r("p",{className:$,children:p(f,!1,s===0?m:void 0)},s)):r(c,{className:$,children:p(e.trim(),!1,m)})})}export{K as default,H as headingLevelOfStyle};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{phoneKey as
|
|
2
|
-
`),t.head.appendChild(e)}export{
|
|
1
|
+
import{phoneKey as m}from"efficient-easel/draw";import{ENTRANCE_STATE_ATTR as d,entranceAttrs as T}from"efficient-shell/format";import{ENTRANCE_KEYS as f,ENTRANCE_WRAPPER_CLASS as _,entranceDrawn as E}from"./entrance.js";import{CARD_HOVER_KEYS as p,HOVER_KEY as l,hoverOf as O}from"../../../format/lib/animation/hover.js";import{propsWithPartRecord as P,readPartRecord as R,readPartRecords as A}from"../../../format/lib/document/part-records.js";import{partLiftRules as S}from"../document/part-styles.js";const D={},i="_partMotion",b=[...Object.values(f).flatMap(t=>[t,m(t)]),l,p.duration,p.delay];function K(t){return A(t,i)}function h(t,e){return R(t,i,e)}const N=new Set([f.kind,l]);function H(t,e,n,o){const{[n]:s,...r}=h(t,e),c=o==null||o===""||o==="none"&&N.has(n)?r:{...r,[n]:o};return P(t,i,e,Object.keys(c).length?c:null)}function x(t){return{entrance:E(t),hover:O(t)}}function W(t){const e=x(t);return e.entrance!==null||e.hover!=="none"}function Y(t,e){const{attrs:n,style:o}=T(e),s=Object.keys(n).filter(r=>n[r]!==void 0);for(const r of s)t.setAttribute(r,String(n[r]));for(const[r,a]of Object.entries(o))t.style.setProperty(r,String(a));return()=>{for(const r of s)t.removeAttribute(r);for(const r of Object.keys(o))t.style.removeProperty(r);t.removeAttribute(d)}}const y=4;function F(t){let e;for(const n of t)(!e||n.element.compareDocumentPosition(e.element)&y)&&(e=n);return e}const M="data-sf-part-host";function V(t){const e=t?.ownerDocument.defaultView;let n=t;for(;n&&!n.hasAttribute(M)&&!n.classList.contains(_);){const o=e?.getComputedStyle(n).display??"";if(o==="contents")return null;if(o!=="inline")return n;n=n.parentElement}return null}const w="data-sf-part-lift",u="sf-part-lift";function B(t){if(t.getElementById(u))return;const e=t.createElement("style");e.id=u,e.textContent=S(`[${w}]`).join(`
|
|
2
|
+
`),t.head.appendChild(e)}export{D as NO_MOTIONS,M as PART_HOST_ATTR,w as PART_LIFT_ATTR,b as PART_MOTION_KEYS,i as PART_MOTION_PROP,Y as drawPartEntrance,B as ensurePartLiftSheet,F as firstOnPage,V as partBoxOf,x as partMotionDrawn,W as partMoves,H as propsWithPartMotion,h as readPartMotion,K as readPartMotions};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Fragment as
|
|
1
|
+
import{Fragment as d,jsx as a}from"react/jsx-runtime";import m from"../../../../../components/ContactLocations.js";import{CONTACT_LOCATIONS_CARDS_PLACEHOLDER as u,CONTACT_LOCATIONS_DEFAULTS as n,contactLocationCardOfRow as l}from"../../../../../../format/lib/content/contact.js";import{declaredBlockSource as g,sourcedRows as f}from"../../../../../../format/lib/content/block-sources.js";import{phHideDefault as s}from"../../scaffold.js";import{say as i}from"../../../../../../format/lib/editor-words.js";import{pictureHoverOf as C}from"../../../../../../format/lib/animation/hover.js";import{ContactLocationsMeta as h}from"../../../../../../format/lib/document/blocks/general/ContactLocations/meta.js";const L=()=>[{name:i("Location name"),address:i("Street address"),state:i("State"),country:i("Country"),phone:"+00 000 0000",hours:i("Opening hours")}];function S(e){if(!g(e))return e.locations??u;const t=f(e,e.editor?.isEditing===!0,L());return t.rows.length?t.rows.map(l):null}function o(e,t,c){const r=s(e,t,c);return r!==void 0?r:e==null?void 0:""}const w={...h,render:e=>{const t=S(e);return t?a(m,{sectionNumber:o(e.sectionNumber,n.sectionNumber,e.editor),heading:o(e.heading,n.heading,e.editor),tagline:o(e.tagline,n.tagline,e.editor),galleryKicker:o(e.galleryKicker,n.galleryKicker,e.editor),galleryHint:o(e.galleryHint,n.galleryHint,e.editor),locations:t,mapTheme:e.mapTheme??n.mapTheme,imageShape:e.imageShape,pictureHover:C(e,"ContactLocations"),editing:e.editor?.isEditing,nodeId:e.editor?.isEditing?e.id:void 0}):a(d,{})}};export{w as ContactLocationsRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as i}from"react/jsx-runtime";import{phoneKey as a,tabletKey as o}from"efficient-easel/draw";import{sharedColumnsDrawn as r}from"../../../../content/box-shared-columns.js";import{CountRowsContext as c,NO_COUNTS as d}from"../../../../../components/CountRowsContext.js";import m from"../../../../../components/Flex.js";import{loopDelayOf as h,loopSecondsOf as g,parseLoop as b,parseLoopDirection as u}from"../../../../../../format/lib/animation/index.js";import{COUNTS_SOURCE as f,declaredBlockSource as S,servedRows as x}from"../../../../../../format/lib/content/block-sources.js";import{padValuesOf as w}from"../../../../content/section-padding.js";import{sectionFillsHeight as y}from"../../../../../../format/lib/content/section-min-height.js";import{pictureHoverOf as C}from"../../../../../../format/lib/animation/hover.js";import{FlexMeta as D}from"../../../../../../format/lib/document/blocks/general/Flex/meta.js";const N={...D,render:e=>{const l=i(m,{direction:e.direction,label:e.label,tabShape:e.tabShape,gap:e.gap,gapPhone:e[a("gap")],gapTablet:e[o("gap")],justify:e.justify,align:e.align,wrap:e.wrap,share:e.share,sharePhone:e[a("share")],shareTablet:e[o("share")],wrapPhone:e[a("wrap")],phoneRow:e.phoneRow,columns:e.columns,columnsTablet:e[o("columns")],separator:e.separator,blockSpacing:e.blockSpacing,bgImage:e.bgImage,bgImagePhone:e.bgImagePhone,pictureHover:C(e),darken:e.darken,darkenStyle:e.darkenStyle,placement:e.placement,padV2:e.padV2===!0,border:e.sectionBorder,borderPhone:e.sectionBorderPhone,pad:w(e),contained:e.contained,fillHeight:y(e),shadow:e.shadow,loop:b(e.loop),scrollDirection:u(e.scrollDirection),loopSeconds:g({loopDuration:e.loopDuration}),loopDelay:h({loopDelay:e.loopDelay}),editing:!!e.editor?.isEditing,fillColor:e.fillColor,line:e.line,upcoming:e.upcoming,link:e.link,boxShape:e.boxShape,boxShapePhone:e[a("boxShape")],boxShapeTablet:e[o("boxShape")],jumpHighlight:e.jumpHighlight,anchor:e.anchor,sharedSides:r(e),boxId:typeof e.id=="string"?e.id:void 0,mirrorCards:e.mirrorCards,content:e.content}),n=S(e),t=n?n===f?x(e):d:null;return i(c.Provider,{value:t,children:l})}};export{N as FlexRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as a}from"react/jsx-runtime";import{CardRowDrawn as
|
|
1
|
+
import{jsx as a}from"react/jsx-runtime";import{CardRowDrawn as S}from"../../../../../components/CardRowContext.js";import h from"../../../../../components/ImageBlock.js";import{cardTemplateField as p,namedRowField as x,rowFieldText as B,rowNextPicture as I}from"../../../../../../format/lib/content/card-template.js";import{blockSizeOf as O,blockSizeValuesOf as z}from"../../../../content/block-size.js";import{padValuesOf as F}from"../../../../content/section-padding.js";import{pictureHoverOf as P}from"../../../../../../format/lib/animation/hover.js";import{ImageBlockMeta as R}from"../../../../../../format/lib/document/blocks/general/ImageBlock/meta.js";const E={...R,render:e=>{const t=x(e);return t?a(S,{type:"ImageBlock",props:e,children:(o,r)=>{const n=r?p(r.ownerType,t):null,c=n?.alt;return l(e,o.src,(c&&B(r?.row,c))??e.alt,I(r?.item,n?.next,typeof o.src=="string"?o.src:""))}}):l(e,e.src,e.alt)}};function l(e,t,o,r=""){const{aspect:n,contained:c,grayscale:f,darken:d,darkenStyle:m,href:s,fit:u,focal:g,focalPhone:i,corners:k,cornerSides:y,editor:w}=e;return a(h,{src:t,alt:o,aspect:n,contained:c,grayscale:f,darken:d,darkenStyle:m,pictureHover:P(e,"ImageBlock"),...r?{nextSrc:r}:{},href:s,fit:u,focal:g,focalPhone:typeof i=="string"?i:void 0,corners:k,cornerSides:y,pad:F(e),ownSize:O(z(e))!==null,editing:w?.isEditing===!0})}export{E as ImageBlockRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as f}from"react/jsx-runtime";import{pictureHoverOf as b}from"../../../../../../format/lib/animation/hover.js";import c from"../../../../../components/Manifesto.js";import{sectionFillsHeight as g}from"../../../../../../format/lib/content/section-min-height.js";import{PH as e}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phRows as h,phHideDefault as t}from"../../scaffold.js";import{ManifestoMeta as p}from"../../../../../../format/lib/document/blocks/general/Manifesto/meta.js";const u=[{value:"00",label:e.label},{value:"00",label:e.label},{value:"00",label:e.label}],x={...p,render:r=>{const{eyebrow:i,heading:a,body:l,stats:s,imageSrc:d,grayscale:m,widthMode:n,editor:o}=r;return f(c,{eyebrow:t(i,e.eyebrow,o),heading:t(a,e.heading,o),body:t(l,e.body,o),stats:h(s,u,o),imageSrc:d||void 0,grayscale:m,pictureHover:b(r,"Manifesto"),widthMode:n,fillHeight:g(r)})}};export{x as ManifestoRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as a}from"react/jsx-runtime";import{pictureHoverOf as d}from"../../../../../../format/lib/animation/hover.js";import m from"../../../../../components/Split.js";import{sectionFillsHeight as f}from"../../../../../../format/lib/content/section-min-height.js";import{hidableText as c}from"efficient-easel/draw";import{phHide as t,ctaHide as g}from"../../scaffold.js";import{SplitMeta as o,SPLIT_PH as i,IMGBTN_PH as x}from"../../../../../../format/lib/document/blocks/general/Split/meta.js";function u(e,r,l){const n=t(e,x.text,l);if(n!==void 0)return{text:n,href:r||"#"}}const T={...o,render:e=>a(m,{eyebrow:t(e.eyebrow,i.eyebrow,e.editor),title:t(e.title,i.title,e.editor),body:t(e.body,i.body,e.editor),imageLabel:c(e.title)||i.title,imageSrc:e.imageSrc||void 0,reverse:e.reverse,uppercase:e.uppercase,textAlign:e.textAlign,textAlignPhone:e.textAlignPhone,cta:g(e.ctaText,e.ctaHref,e.editor),imageButton:u(e.imageBtnText,e.imageBtnHref,e.editor),textBgSrc:e.textBgSrc||void 0,textBgTint:(typeof e.overlay=="number"?e.overlay:60)/100,grayscale:e.grayscale,pictureHover:d(e,"Split"),fillHeight:f(e)})};export{T as SplitRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{phoneKey as
|
|
1
|
+
import{phoneKey as u}from"efficient-easel/draw";import{BOX as T,INNER_BOX as f,TEXT as h}from"../../../../../format/lib/document/seed-parts.js";import{ENTRANCE_KEYS as x}from"../../../animation/entrance.js";import{CARD_HOVER_KEYS as a}from"../../../../../format/lib/animation/hover.js";import{COUNT_KEY_PROP as B}from"../../../../../format/lib/content/block-sources.js";import{normalizeSiteGutter as _}from"../../../../../format/lib/content/page-width.js";import{resolveSectionPadding as E}from"../../../content/section-padding.js";import{ButtonBlockMeta as O}from"../../../../../format/lib/document/blocks/general/ButtonBlock/meta.js";import{SECTION_PAD_INNER_DEFAULTS as S}from"../../passes/section-padding.js";import{finiteNumber as s}from"../../../../../format/lib/finite-number.js";import{convertTheme as p,hasWords as N}from"../../../sections/section-to-box.js";import{bandPresetIndex as R}from"../../../../../format/lib/theme.js";import{BOX as bt,DIM as ut,INNER_BOX as Tt,TEXT as ft}from"../../../../../format/lib/document/seed-parts.js";const A={...h,[B]:""},{label:V,href:J,...y}=O.defaultProps,z=y,q={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},Q={...T,sectionAccent:0},Z=["gridSpan","sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderPhone","sectionAccent","stickTop","stickTopDistance","stickTopPhone","stickTopDistancePhone","anchor","sectionAnimation","_hidden",...Object.values(x).flatMap(t=>[t,u(t)]),"widthFit","widthFitPhone","width","widthPhone","minWidth","minWidthPhone","maxWidth","maxWidthPhone"],r="a section width key, ignored since efficient-web-builder 45 (every section, and a section's root Box, follows Site styles only; Lewis 2026-10-29), so dropping it changes nothing",tt={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:r,fullWidth:r,pageWidth:r,backgroundWidth:r,contentWidth:r,contentMax:r},ot=Object.fromEntries(["sectionPaddingLeft","sectionPaddingRight","sectionPaddingLeftTablet","sectionPaddingRightTablet","sectionPaddingLeftPhone","sectionPaddingRightPhone"].map(t=>[t,"needs Box side padding outside its gutter: the old section added it outside its frame, a Box's side padding replaces the gutter. 0 live nodes store it (JJ's read-only export, 2026-10-24)"]));function I(t,o){const e=s(t.sectionPaddingTop)??0,n=s(t.sectionPaddingBottom)??0,i=s(t.sectionPaddingTopTablet),d=s(t.sectionPaddingBottomTablet);return{sectionPaddingTop:e+o.top,sectionPaddingBottom:n+o.bottom,...i===void 0?{}:{sectionPaddingTopTablet:i+o.top},...d===void 0?{}:{sectionPaddingBottomTablet:d+o.bottom},sectionPaddingTopPhone:(s(t.sectionPaddingTopPhone)??i??e)+o.topPhone,sectionPaddingBottomPhone:(s(t.sectionPaddingBottomPhone)??d??n)+o.bottomPhone}}const et=t=>["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopTablet","sectionPaddingBottomTablet","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(e,n)=>I(n,typeof t=="function"?t(n):t)[o]]);function c(t,o){const e=E(t,S[o]);return{sectionPaddingTop:e.top,sectionPaddingBottom:e.bottom}}const nt=t=>[["padTop","sectionPaddingTop",(o,e)=>c(e,t).sectionPaddingTop],["padBottom","sectionPaddingBottom",(o,e)=>c(e,t).sectionPaddingBottom],["sectionPaddingTop","sectionPaddingTop",(o,e)=>c(e,t).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,e)=>c(e,t).sectionPaddingBottom]],D={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},it=t=>o=>N(o.props[t])?[D]:[],dt=(t,o)=>({kind:"text",key:t,role:"eyebrow",props:h,...o?{style:o}:{}}),m=t=>t.background!=="transparent",k=(t,o)=>{const[e,n]=[t,o].map(i=>typeof i=="string"?i.trim():"");return e?n?`[${e} ]{color=text}${n}`:`[${e}]{color=text}`:n},l={align:"right",alignPhone:"left"},C=(t,o,e)=>{const n=i=>k(i[t],i[o]);return{kind:"block",type:"Text",when:(i,d)=>d!==void 0&&n(d)!=="",box:[[t,"text",(i,d)=>n(d)],[o,"text",(i,d)=>n(d)]],props:e}},st=(t,o,e,n={})=>C(t,o,{...A,...l,...n,_partStyles:{text:{textStyle:"body-5",color:"labels",...e,case:"upper",...l}}}),g=(t,o)=>typeof t=="number"&&Number.isInteger(t)&&t>=0?t:p(o)?.selected??0,b=(t,o)=>p(o)?.themes[g(t.sectionAccent??0,o)],v=t=>(o,e)=>{const n=b(o,e)?.[t];return n?{fillColor:n}:{}},rt=(t,o)=>{const e=b(t,o)?.line;return e?{buttonBorder:{width:1,color:e}}:{}},P=(t,o)=>{const e=p(o)?.themes;return e&&m(t)?R(e,g(t.sectionAccent,o)):-1},ct=(t,o,e)=>{const n=P(o,e);return n>=0?n:t},at=(t,o)=>{const e=P(t,o);return e>=0?{sectionAccent:e}:{}},pt=(t,o)=>m(t.props)&&P(t.props,o)<0?[{kind:"band-preset",page:g(t.props.sectionAccent,o)}]:[],gt=t=>_(t.site?.siteGutter),W=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(t=>[`sectionPadding${t}`,0])),Pt=t=>({top:0,right:0,bottom:0,left:0,...t}),ht=(t,o,e,n=[])=>({kind:"group",name:t,keepEmpty:!0,props:(i,d)=>({...f,...W,...v("surface")(i,d),...typeof e=="function"?e(i,d):e}),box:[[o,"bgImage"],a.kind,a.duration,a.delay],parts:n});export{bt as BOX,z as BUTTON,ut as DIM,tt as DROP_COMMON,ot as DROP_SIDE_PADDING,D as HEADING_CASE_UPPER,Tt as INNER_BOX,W as NO_PAD,A as NUMBER_TEXT,l as RIGHT_WORDS,Z as SAME_KEYS,Q as SECTION_BOX,q as SH_LINK,ft as TEXT,ct as bandAccent,P as bandIndex,g as bandPage,at as bandProps,pt as bandWrites,v as fillFrom,it as headingCaseOf,c as innerPad,nt as innerPadKeys,st as leadLine,C as leadText,rt as lineBorder,Pt as lineSides,k as numberAndUnit,ht as pictureCell,b as sectionPage,gt as siteGutterOf,dt as smallText,I as wrapperPad,et as wrapperPadKeys};
|