efficient-web-builder 61.0.0 → 63.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.
Files changed (51) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/dist/editor/components/ShadowColourField.js +1 -1
  3. package/dist/editor/components/StorefrontEditor.js +1 -1
  4. package/dist/editor/components/WebsiteSettingsPanel.js +1 -1
  5. package/dist/editor/lib/animation/hover-fields.js +1 -1
  6. package/dist/editor/lib/document/page-root.js +2 -2
  7. package/dist/format/lib/animation/hover.d.ts +11 -6
  8. package/dist/format/lib/animation/hover.js +1 -1
  9. package/dist/format/lib/content/card-state.d.ts +16 -1
  10. package/dist/format/lib/content/card-state.js +1 -1
  11. package/dist/format/lib/content/card-template.d.ts +10 -2
  12. package/dist/format/lib/content/card-template.js +1 -1
  13. package/dist/format/lib/content/hover-media.d.ts +7 -0
  14. package/dist/format/lib/content/hover-media.js +1 -1
  15. package/dist/format/lib/content/image-treatment.d.ts +6 -3
  16. package/dist/format/lib/content/image-treatment.js +1 -1
  17. package/dist/format/lib/content/ink.d.ts +1 -1
  18. package/dist/format/lib/content/ink.js +1 -1
  19. package/dist/format/lib/content/site-gutter.d.ts +2 -1
  20. package/dist/format/lib/content/site-gutter.js +1 -1
  21. package/dist/format/lib/document/card-template-layers.js +1 -1
  22. package/dist/format/lib/document/easel-row-words.d.ts +7 -0
  23. package/dist/format/lib/document/easel-row-words.js +1 -1
  24. package/dist/format/lib/document/passes/card-template-on-insert.js +1 -1
  25. package/dist/format/lib/editor-words-catalogue.d.ts +2 -0
  26. package/dist/format/lib/editor-words-catalogue.js +2 -2
  27. package/dist/format/lib/editor-words-kept.js +1 -1
  28. package/dist/format/lib/source-rules/no-hard-coded-option-rows.d.ts +30 -0
  29. package/dist/format/lib/source-rules/no-hard-coded-option-rows.js +1 -0
  30. package/dist/format/lib/source-rules/one-next-image-path.d.ts +6 -0
  31. package/dist/format/lib/source-rules/one-next-image-path.js +1 -0
  32. package/dist/format/lib/theme.d.ts +6 -3
  33. package/dist/format/lib/theme.js +4 -4
  34. package/dist/render/components/CardRowContext.d.ts +3 -1
  35. package/dist/render/components/CardRowContext.js +1 -1
  36. package/dist/render/components/Flex.js +1 -1
  37. package/dist/render/components/HeroSection.js +1 -1
  38. package/dist/render/components/ImageBlock.d.ts +9 -3
  39. package/dist/render/components/ImageBlock.js +1 -1
  40. package/dist/render/components/Text.d.ts +2 -1
  41. package/dist/render/components/Text.js +1 -1
  42. package/dist/render/components/ThemeLightInkContext.d.ts +6 -0
  43. package/dist/render/components/ThemeLightInkContext.js +1 -0
  44. package/dist/render/components/goldPhrases.d.ts +2 -1
  45. package/dist/render/components/goldPhrases.js +3 -2
  46. package/dist/render/lib/document/blocks/general/ImageBlock/render.js +1 -1
  47. package/dist/render/lib/document/blocks/general/Text/render.js +1 -1
  48. package/dist/render/lib/document/passes/section-theme.js +1 -1
  49. package/dist/render/lib/document/passes/section-width.js +1 -1
  50. package/dist/render/lib/document/slot-counts.js +1 -1
  51. package/package.json +3 -3
@@ -10,6 +10,7 @@ export type CardRow = {
10
10
  ownerType?: string;
11
11
  fields?: readonly CardRowFieldSpec[];
12
12
  item?: unknown;
13
+ finish?: string;
13
14
  nested?: boolean;
14
15
  state?: CardRowState;
15
16
  linesBetween?: boolean;
@@ -29,6 +30,7 @@ export declare function CardRowDrawn({ type, props, children, }: {
29
30
  type CardTemplateRowsProps = {
30
31
  ownerId: string;
31
32
  ownerType: string;
33
+ slot?: string;
32
34
  Template: SlotComponent | undefined;
33
35
  rows: readonly SourceRow[];
34
36
  items?: readonly unknown[];
@@ -41,4 +43,4 @@ type CardTemplateRowsProps = {
41
43
  wrapCopy?: (copy: ReactNode, row: CardRow) => ReactNode;
42
44
  children: (cards: ReactNode) => ReactNode;
43
45
  };
44
- export declare function CardTemplateRows({ ownerId, ownerType, Template, rows, items, fields, states, stateLine, actions, fallback, copyAttrs, wrapCopy, children }: CardTemplateRowsProps): import("react").JSX.Element;
46
+ export declare function CardTemplateRows({ ownerId, ownerType, slot, Template, rows, items, fields, states, stateLine, actions, fallback, copyAttrs, wrapCopy, children }: CardTemplateRowsProps): import("react").JSX.Element;
@@ -1 +1 @@
1
- "use client";import{Fragment as i,jsx as t,jsxs as w}from"react/jsx-runtime";import{createContext as g,useContext as d,useId as y}from"react";import{REPEAT_ATTRIBUTE as O,REPEAT_INDEX_ATTRIBUTE as j}from"efficient-easel/draw";import{BOX_LINKED_CLASS as k}from"../../format/lib/content/box-link.js";import{CARD_TEMPLATE_SLOT as v,cardTemplateLinesBetween as F,rowFilledProps as U,templateBoxIsEmpty as X}from"../../format/lib/content/card-template.js";import{CARD_ACTION_ATTR as $,CARD_ACTION_CLASS as G,CARD_STATE_LINE_CLASS as K,CARD_STATE_UNDER_LINE_CLASS as M,cardStateAttrs as V,cardStateValue as q}from"../../format/lib/content/card-state.js";import{usePageRecordRow as z}from"./CurrentRecord.js";import{CardCopyCell as H}from"./InBoxContext.js";import{SECTION_FILL_CLASS as J}from"../../format/lib/content/section-min-height.js";function ct({props:n,editing:o,children:r}){const e=d(u);return!o&&X(n,e?.row)?null:t(i,{children:r})}const u=g(null);function at(){return d(u)}function lt({type:n,props:o,children:r}){const e=d(u),s=z(),a=e?.row??s;return t(i,{children:r(U(n,o,a,e?.ownerType,e?.fields),e,a)})}function Q({attrs:n,selected:o,press:r,children:e}){const s=y();return w("div",{...n,id:s,className:k,children:[t("button",{type:"button",[$]:"",className:G,"aria-pressed":o,"aria-labelledby":s,onClick:r}),e]})}function it({ownerId:n,ownerType:o,Template:r,rows:e,items:s,fields:a,states:L,stateLine:I,actions:N,fallback:h,copyAttrs:m,wrapCopy:p,children:D}){const x=d(u);if(!r||(r.blockCount??0)<=0)return t(i,{children:h});const b=x!==null,_=F(o),A=r.blockCount===1?t(H,{children:t(r,{className:J})}):t(r,{}),B=e.map((P,c)=>{const l=L?.[c],C={row:P,index:c,ownerType:o,item:s?.[c],nested:b,...a?{fields:a}:null,...l?{state:l}:null,..._?{linesBetween:_}:null},R=q(l)?w(i,{children:[A,t("span",{"aria-hidden":"true",className:I==="under"?M:K})]}):A,E={[O]:`${n}:${v}`,[j]:c,...typeof m=="function"?m(C):m},T=N?.[c],f=V(l),S=T?t(Q,{attrs:{...E,...f},selected:l?.selected===!0,press:T.press,children:R}):t("div",{...E,...f,children:R});return t(u.Provider,{value:C,children:p?p(S,C):S},c)});return t(i,{children:D(B)})}export{u as CardRowContext,lt as CardRowDrawn,it as CardTemplateRows,ct as RowEmptyGate,at as useCardRow};
1
+ "use client";import{Fragment as C,jsx as e,jsxs as p}from"react/jsx-runtime";import{createContext as g,useContext as A,useId as k}from"react";import{REPEAT_ATTRIBUTE as v,REPEAT_INDEX_ATTRIBUTE as y}from"efficient-easel/draw";import{BOX_LINKED_CLASS as h}from"../../format/lib/content/box-link.js";import{CARD_TEMPLATE_SLOT as j,cardTemplateLinesBetween as K,rowFilledProps as $,templateBoxIsEmpty as U}from"../../format/lib/content/card-template.js";import{CARD_ACTION_ATTR as H,CARD_ACTION_CLASS as V,CARD_ACTION_HOVER_CLASS as X,CARD_ACTION_OFF_CLASS as G,CARD_STATE_LINE_CLASS as M,CARD_STATE_PICKED_BAR_CLASS as W,CARD_STATE_PICKED_CLASS as q,CARD_STATE_PICKED_WASH_CLASS as z,CARD_STATE_UNDER_LINE_CLASS as J,cardStateAttrs as Q,cardStatePicked as Y,cardStateValue as Z}from"../../format/lib/content/card-state.js";import{usePageRecordRow as tt}from"./CurrentRecord.js";import{CardCopyCell as et}from"./InBoxContext.js";import{SECTION_FILL_CLASS as rt}from"../../format/lib/content/section-min-height.js";function _t({props:n,editing:r,children:o}){const t=A(u);return!r&&U(n,t?.row)?null:e(C,{children:o})}const u=g(null);function At(){return A(u)}function mt({type:n,props:r,children:o}){const t=A(u),d=tt(),a=t?.row??d;return e(C,{children:o($(n,r,a,t?.ownerType,t?.fields),t,a)})}function nt({attrs:n,selected:r,hover:o,action:t,children:d}){const a=k(),{press:_,disabled:s}=t,c=t.label?.trim();return p("div",{...n,id:a,className:o&&!s?`${h} ${X}`:h,children:[e("button",{type:"button",[H]:"",className:s?G:V,"aria-pressed":r,...c?{"aria-label":c}:{"aria-labelledby":a},...s?{"aria-disabled":!0,tabIndex:-1}:null,onClick:s?void 0:_}),d]})}function St({ownerId:n,ownerType:r,slot:o=j,Template:t,rows:d,items:a,fields:_,states:s,stateLine:c,actions:w,fallback:b,copyAttrs:m,wrapCopy:R,children:P}){const x=A(u);if(!t||(t.blockCount??0)<=0)return e(C,{children:b});const O=x!==null,T=K(r),E=t.blockCount===1?e(et,{children:e(t,{className:rt})}):e(t,{}),B=d.map((F,l)=>{const i=s?.[l],S={row:F,index:l,ownerType:r,item:a?.[l],nested:O,..._?{fields:_}:null,...i?{state:i}:null,...T?{linesBetween:T}:null},f=Z(i)?p(C,{children:[E,c==="under"?e("span",{"aria-hidden":"true",className:J}):Y(i)?p("span",{"aria-hidden":"true",className:q,children:[e("span",{className:W}),e("span",{className:z})]}):e("span",{"aria-hidden":"true",className:M})]}):E,I={[v]:`${n}:${o}`,[y]:l,...typeof m=="function"?m(S):m},N=w?.[l],D=Q(i,c),L=N?e(nt,{attrs:{...I,...D},selected:i?.selected===!0,hover:c!=="under",action:N,children:f}):e("div",{...I,...D,children:f});return e(u.Provider,{value:S,children:R?R(L,S):L},l)});return e(C,{children:P(B)})}export{u as CardRowContext,mt as CardRowDrawn,St as CardTemplateRows,_t as RowEmptyGate,At as useCardRow};
@@ -1 +1 @@
1
- import{Fragment as q,jsx as e,jsxs as de}from"react/jsx-runtime";import{useContext as Ht,useId as Vt}from"react";import Gt from"./BoxTabs.js";import{AccordionRowStyleContext as Fe,BoxTabPaneContext as Te,useAccordionRowStyle as Mt,useBoxPaneKind as Wt,useFirstCopyOpens as Xt,useIsTabPane as jt}from"./BoxTabPaneContext.js";import Kt,{ACCORDION_COUNTER_RESET as Ut}from"./BoxAccordionRow.js";import{ACCORDION_MARK_SHEET as Jt}from"./AccordionMark.js";import{accordionRowStyleOf as zt}from"../../format/lib/content/accordion-row-style.js";import{boxPhoneCell as Yt,boxPhoneOrder as qt}from"../../format/lib/content/box-phone-place.js";import{CellFillContext as os,InBoxContext as ss,useCellOfStretchedRow as Qt,useFillsCell as Zt}from"./InBoxContext.js";import er,{InsideSiteColumn as ts,useInsideSiteGutter as or,useSectionRoot as sr}from"./SiteGutterFrame.js";import{BoxSurfaceProvider as tr}from"./BoxSurfaceContext.js";import rr from"./PictureWash.js";import{BoxCellContext as rs,NoCellBound as nr}from"./BoxCellContext.js";import{boxCellFractions as lr}from"../lib/content/box-cell-bound.js";import{boundOf as ir}from"../../format/lib/content/cell-picture-sizes.js";import{useInSiteHeader as cr}from"./PhoneMenuTools.js";import{useCardRow as ar}from"./CardRowContext.js";import{cardLineBetween as De,framesItsCards as dr}from"../../format/lib/content/card-place.js";import{rowFieldText as ur}from"../../format/lib/content/card-template.js";import{HandedMirrorContext as mr,MirrorContext as fr,RowHandContext as ns,boxPlace as Cr,useHandedMirrorAbove as br,useHandedRows as hr,useMirroredCopy as Sr,useUnderCardBox as wr}from"./MirrorContext.js";import{boxChildrenHand as xr,isMirroredCopy as pr,mirrorCardsActs as ls,mirrorCardsOf as Pr,mirroredBoxClass as _r,MIRROR_ROW_CLASS as $r,ownsCard as Rr}from"../../format/lib/content/mirror-cards.js";import{FRAME_BASE as He,frameGutterOf as Or}from"./BlockFrame.js";import{BOX_SIDE_SPACE_SITE as yr,boxSideSpaceOf as Ar}from"../../format/lib/content/box-side-space.js";import{containerGapProps as is}from"../../format/lib/content/container-gap.js";import{boxLayoutClasses as vr,boxAlignViewClasses as Lr,boxBlockSpacingClass as kr,boxBlockSpacingViewClasses as Nr,boxJustifyViewClasses as Ir,boxWrapTabletClass as gr,boxFitContentClass as Br,boxAccordionColumnsClass as cs,boxRowColumnsClass as Er,boxRowTabletColumnsClass as Fr,boxRowTabletShareClass as Tr,boxPhoneCellsShareLine as Dr,boxPhoneRowClasses as Q,boxPhoneRowFits as Hr,boxShareClasses as M,boxShareVars as Vr,boxWrapClass as Gr,BOX_GAP_ONLY_CLASS as Mr}from"../../format/lib/content/box-layout.js";import{boxSeparatorClasses as Wr,boxSeparatorSeamClass as Xr,boxSeparatorStyle as jr,isStripBox as Kr}from"../../format/lib/content/box-separator.js";import{DEFAULT_LOOP_DELAY as Ur,DEFAULT_LOOP_DIRECTION as Jr,DEFAULT_LOOP_SECONDS as zr,isVerticalLoop as Yr}from"../../format/lib/animation/index.js";import{LoopTrack as qr}from"../lib/animation/LoopTrack.js";import{BOX_CARD_PAD as O,BOX_OWNS_SIDES_CLASS as Qr,boxDarkenStyle as Zr,boxPaintOf as en,boxFillViews as on,boxPlacementClasses as sn,boxCardProps as tn,boxIsCard as as,boxRowPicture as rn,boxSwatchFill as nn,boxWashViews as ln,CARD_SHADOW_CLASS as cn,isBackgroundBox as ds}from"../../format/lib/content/box-background.js";import{BOX_ROW_IMAGE_PROP as S}from"../../format/lib/content/box-card-rule.js";import{boxShadowAttrs as an,boxShadowOnAnyView as dn,boxShadowViewAttrs as un}from"../../format/lib/content/box-shadow.js";import{boxRunsEdgeToEdge as mn,drawsSiteGutter as fn}from"../../format/lib/content/site-gutter.js";import{boxShapeClass as Cn,boxShapeClasses as bn}from"../../format/lib/content/box-shape.js";import{boxAngleStyle as hn}from"../../format/lib/content/box-angle.js";import{BOX_JUMP_ATTR as Sn,BOX_LINK_ATTR as us,BOX_LINK_CLASS as ms,BOX_LINKED_CLASS as wn,boxJumpBlocksClass as xn,boxJumpCss as pn,boxJumpSlug as Pn,boxLinkOf as _n}from"../../format/lib/content/box-link.js";import{SiteLink as $n}from"../lib/site-runtime.js";import{sectionBorderStyle as fs}from"../../format/lib/content/borders.js";import{finiteNumber as y}from"../../format/lib/finite-number.js";import{padDefaultIn as A,sectionPadAttrs as Rn}from"../lib/content/section-padding.js";import{SECTION_FILL_CLASS as ue}from"../../format/lib/content/section-min-height.js";import{ON_MEDIA_INK_STYLE as On,rowFillInkStyle as yn}from"../../format/lib/content/ink.js";import{sizedBackground as Ve}from"../../format/lib/sized-image.js";import{PHOTO_HOST_ATTR as An,resolveImageTreatment as vn}from"../../format/lib/content/image-treatment.js";import{BOX_HIGHLIGHT_CLASS as Ln,BOX_HIGHLIGHT_OVER_ROW_INK_CLASS as kn}from"../../format/lib/animation/hover.js";import{BoxRail as Nn,BoxRailStop as In,RAIL_STOPS_CLASS as gn,useTimelineRail as Bn}from"./TimelineRail.js";import{SHARED_PLAIN_ATTR as En,sharedColumnsClasses as Fn,sharedColumnsCss as Tn,sharedRowsClasses as Dn,sharedRowsCss as Hn}from"../lib/content/box-shared-columns.js";import Vn from"./PhotoHoverSheet.js";import{stackGutterClass as Gn,stackLineCss as Mn,stackOuterClass as Wn,stackRowClass as Xn,storedStackLine as jn}from"../lib/content/box-stack-line.js";const Ge={"--sf-site-gutter":"0px"},Kn={overflowX:"clip",overflowY:"visible"},Un={stretchedRow:!1,fillingColumn:!1,columnsRow:!1},Cs={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)]",Me=u=>u==null||u==="",We=u=>!Me(u)&&Number(u)===0;function Jn({children:u}){return e(q,{children:u(Vt())})}function zn({direction:u,label:hs,tabShape:Ss,gap:Xe,gapPhone:ws,gapTablet:me,justify:W,align:v,wrap:Z,share:xs,sharePhone:X,shareTablet:B,wrapPhone:ps,orderPhone:Ps,phoneRow:w,columns:m,columnsTablet:E,separator:f,stackBelow:je,blockSpacing:Ke,bgImage:_s,bgImagePhone:$s,rowImage:Rs,pictureHover:Os,darken:Ue,darkenStyle:Je,darkenTablet:ys,darkenPhone:As,darkenStyleTablet:vs,darkenStylePhone:Ls,placement:ks,padV2:ze=!1,border:Ns,borderTablet:Is,borderPhone:gs,pad:r={},contained:fe=!0,fillHeight:L=!1,shadow:Ce,shadowTablet:Ye,shadowPhone:qe,justifyTablet:Qe,justifyPhone:Bs,alignTablet:Es,alignPhone:Fs,wrapTablet:Ze,blockSpacingTablet:Ts,blockSpacingPhone:Ds,loop:b,scrollDirection:be=Jr,loopSeconds:Hs=zr,loopDelay:Vs=Ur,editing:F=!1,fillColor:eo,fillColorTablet:Gs,fillColorPhone:Ms,swatch:Ws,line:x,upcoming:Xs,link:js,rowLink:oo,highlight:Ks,boxShape:so,boxShapePhone:Us,boxShapeTablet:Js,angle:zs,jumpHighlight:Ys,anchor:qs,sharedSides:Qs=Cs,sharedRows:Zs=!1,boxId:T,slotCount:et,mirrorCards:to,content:i,rowTitle:he,startsOpen:ot,rowStyle:st,sideSpace:tt}){const t=ar(),k=tn({[S]:Rs},t!==null)[S],ro=as({[S]:k}),c=ro?Cs:Qs,rt=ro?!1:Zs,no=rn({[S]:k},t?.row),p=no??_s,lo=no===null?$s:void 0,io=Ht(rs),nt=br(),co=wr()&&!(nt&&t!==null),P=hr(),_=Rr({inCopy:t!==null,nestedCopy:t?.nested===!0,underBox:co}),ao=De(Ns,t,_),uo=De(Is,t,_),mo=De(gs,t,_),fo=t===null&&!co&&P?.ids&&T?P.ids.indexOf(T):-1,ee=fo>=0&&P&&T?Cr(P,T,fo):-1,h=ee>=0?P?.hand??null:_&&P?.copies===!0?P.hand:null,o=h?.row?"row":u,d=h?.row?h.row.share:xs,lt=h?.row?h.row.phoneReverse?[...i.blockIds??[]].reverse():void 0:Ps,oe=rt&&!h?.row,D=F?"":_n(oo&&t?ur(t.row,oo):js),$=L?"":bn(so,Us,Js),it=!L&&Cn(so)!=="",N=Pn(Ys,qs),Se=nn({swatch:Ws},t?.row),se=Se??en(eo),H=Se?{className:"",style:{}}:on(eo,Gs,Ms),Co=yn(Se),bo=se||H.className?{...se?{backgroundColor:se}:{},...H.style,...Co}:void 0,ho=Bn(),te=x===!0&&o!=="tabs"&&o!=="accordion",n=as({bgImage:p,[S]:k}),So=hn(zs),wo=n?void 0:bo,re=n?null:Ks??null,ct=So||re?{...wo,...So,...re}:wo,ne=cr(),at=sr(),dt=jt(),xo=Wt(),ut=Mt(),mt=Xt(),l=o==="accordion",po=zt(st),j=l&&po==="numbered",we=Zt(),ft=Qt(),V=Kr(o,f),a=b==="scroll"&&o!=="tabs"&&!l,Ct=Sr(),le=_||ee>=0&&h!==null,Po=h?h.mirror:to,bt=ee>=0?ee:t?.index,xe=_&&dr(t?.ownerType),_o=ls({direction:o,separator:f,loop:b,line:x,bgImage:p,[S]:k,columns:m,columnsTablet:E,share:d,wrap:Z},le,c.desktop)&&pr(Po,bt),ht=ls({direction:o,separator:f,loop:b,line:x,bgImage:p,[S]:k,columns:m,columnsTablet:E,share:d,wrap:Z},le,c.desktop)&&Pr(Po)!==null,G=Er({direction:o,separator:f,loop:b,line:x,columns:m}),I=Fr({direction:o,separator:f,loop:b,line:x,columnsTablet:E}),K=Tr({direction:o,separator:f,loop:b,line:x,columns:m,columnsTablet:E,share:d,shareTablet:B}),ie=Ar(tt)===yr,pe=Or(ie),C=o==="row"&&!n&&!V&&!a&&!te&&I===""&&K===""?jn(je):void 0,St=or(),ce=Fn(c,i.blockCount??0,C),wt=(ce&&(!t||t.index===0)?Tn(c,i.blockCount??0,C):"")+(oe&&(!t||t.index===0)?Hn(oe,i.blockCount??0):""),$o=Dn(oe,i.blockCount??0),Ro=I!==""?Number(E)>=2:K===""||M(B)!=="",Oo=I!==""||K!=="",yo=o==="row"&&!V&&!a&&x!==!0,Pe=yo&&!c.phone&&!c.desktop?Yt(qt(lt,i.blockIds??[]),{editing:F}):void 0,Ao=Pe!==void 0&&!F,xt=G!==""?Number(m)>=2:M(d)!=="",vo=!n&&!l&&!ht&&!c.desktop&&!c.phone,ae=vo&&!a?Ir(W,Qe,Bs):"",_e=n||le?"":_r(Ct,o,a?void 0:W,v,ae?Qe:void 0),pt=/view-wide:max-view-desktop:justify-/.test(_e)?ae.split(" ").filter(s=>!s.startsWith("view-wide:max-view-desktop:justify-")).join(" "):ae,Pt=vo&&o==="row"?Lr(v,Es,Fs):"",_t=!a&&!l&&G===""&&I===""&&!c.desktop?gr(Z,Ze):"",Lo=[l?"":M(d),o==="row"?Br(d):"",G,I,K,kr(l?"gap":Ke),Wr(o,f),l&&!j?"border-t border-line":"",pt,Pt,_t,l?"":Nr(Ke,Ts,Ds),l?cs(m,w,j):"",j?Ut:""].filter(Boolean).join(" "),$t=Lo?` ${Lo}`:"",ko=["flex",o==="row"?V||a?"flex-row":`flex-row ${Q(w,X,ps,Ze)}`:"flex-col",Gr(a||l?!1:Z),n?sn(ks??"center",o):vr(a||l?void 0:W,l?void 0:v)+(_e?` ${_e}`:"")].join(" ")+$t,U=L||n||$||we?` ${ue}`:"",$e=it?` ${$}`:$?`${U} ${$}`:U,No=ft&&o==="column"&&!n&&!a&&M(d)===""&&(typeof W=="string"&&W!=="start"||ae!==""),Io=U||(No?` ${ue}`:""),Re=D?` ${wn}`:"",Oe=n||ne||ze?"":" py-6",Rt=C===void 0?"":` ${Xn(C)}`,go=C===void 0||ie?"":` ${Gn(C)}`,ye=C===void 0?"":` ${Wn(C)}`,Ot=`${He}${Oe} ${pe}${$e}${Re}${go}${ye}`,yt=ne?`${$e}${Re}${ye}`.trim():`w-full${Oe}${$e}${Re}${ye}`,J=j&&cs(m,w)===""?is("Flex",0,"block"):is("Flex",Xe,o==="row"?"inline":"block",ws,V||a?void 0:me),Bo=Vr(d,B,o==="row"?i.blockCount??0:0),Eo=V?{...J.style,...jr(o,f)}:J.style,At=Bo?{...Eo,...Bo}:Eo,Ae=(s="")=>e(i,{className:`${ko}${_o?` ${$r}`:""}${J.className}${Io}${Rt}${s?` ${s}`:""}${te?` ${gn}`:""}${N?` ${xn(N)}`:""}${ce}${$o}`,style:At,minEmptyHeight:120,...Pe?{cell:Pe}:null}),Fo=Yr(be)?"":Xr(o,f),To=a?e(qr,{direction:be,seconds:Hs,delay:Vs,editing:F,copy:s=>Ae(s&&Fo?`${s} ${Fo}`:s)}):j?de(q,{children:[e("style",{children:Jt}),Ae()]}):Ae(),ve=o==="tabs"?e(Gt,{className:`${ko}${J.className}${we&&!L&&!n&&!$?"":U}`,style:J.style,shape:Ss,children:To}):To,Le=l?e(Te.Provider,{value:"accordion",children:e(Fe.Provider,{value:po,children:ve})}):xo?e(Te.Provider,{value:!1,children:e(Fe.Provider,{value:"plain",children:ve})}):ve,Do=o==="row"&&!n&&(v===void 0||v==="stretch"),vt={stretchedRow:Do,fillingColumn:o==="column"&&(we||No),columnsRow:G!==""||I!==""||ce!==""||$o!==""||o==="row"&&(Array.isArray(d)||Array.isArray(B))||Ao,...Ao?{phoneCells:!0}:null,...Do&&yo&&(i.blockCount??0)>=2&&xt?{picturesFillRow:!0}:null,...Oo&&!Ro?{fillFrom:"desktop"}:null,...Dr(w,X)&&(!Oo||Ro)?{phoneRowFills:!0}:null,...T?{id:T}:null},Ho=t===null?xr({direction:o,loop:b,bgImage:p,[S]:k,columns:m,mirrorCards:to},!1):null,Vo=Ho?e(ns.Provider,{value:{hand:Ho,ids:i.blockIds??[],boxes:[]},children:Le}):P?e(ns.Provider,{value:null,children:Le}):Le,Go=e(ss.Provider,{value:vt,children:e(os.Provider,{value:!1,children:le?e(fr.Provider,{value:_o,children:e(mr.Provider,{value:!_,children:Vo})}):Vo})}),Lt=he?.blockCount??0,Mo=xo==="accordion"&&!!he&&(F||Lt>0)?e(Kt,{startsOpen:ot===!0||mt&&_&&t?.index===0,editing:F,numbered:ut==="numbered",title:e(ss.Provider,{value:Un,children:e(os.Provider,{value:!1,children:e(Te.Provider,{value:!1,children:e(Fe.Provider,{value:"plain",children:e(he,{className:`min-w-0 flex-1 ${Mr}`,minEmptyHeight:24})})})})}),children:Go}):Go,ke=te?e(Nn,{row:o==="row",stops:i.blockCount??0,children:Mo}):Mo,kt=hs?.trim()||(dt?"":void 0),Nt={values:r,frame:Oe?24:0},It=s=>ho?e(In,{on:ho,future:Xs===!0,children:s}):s,gt=s=>D.startsWith("/")?e($n,{href:D,className:ms,"aria-labelledby":s,[us]:""}):e("a",{href:D,className:ms,"aria-labelledby":s,[us]:""}),Wo=(N?pn(N):"")+wt+(C===void 0||t&&t.index!==0?"":Mn(C,{gutter:!ie})),Xo=Wo?e("style",{dangerouslySetInnerHTML:{__html:Wo}}):null,z=mn({loop:b,direction:o,scrollDirection:be,bgImage:p,[S]:k}),Bt=c.desktop&&ce!==""&&!se&&!H.className&&!fs(ao,mo,uo)&&!dn(Ce,Ye,qe)&&!D&&!$&&!L&&!N&&!fn(fe&&!z,St)&&We(Xe)&&(Me(me)||We(me))&&ze&&Object.values(r).every(s=>Me(s)||We(s)),Et=s=>({...Bt?{[En]:""}:null,...n?null:{...an(Ce),...un(Ce,Ye,qe)},...N?{[Sn]:N}:null,...s?{id:s}:null}),jo=G!==""?Number(m):0,Ft=Q(w,X)===Q(void 0),Tt=(o==="column"||o==="row"&&!V&&!a&&(jo===1&&Ft||jo===0&&i.blockCount===1))&&!n&&!te&&!ne,Ko=n&&at&&!ne,Uo=(s,R)=>It(e(er,{contained:fe&&!z,style:z?Ge:void 0,framedClass:Ot,fillClass:yt,columnClass:`${He} ${pe}${Io}${go}`,tabLabel:kt,pad:n?void 0:Nt,border:fs(ao,mo,uo),outerAttrs:Et(R),box:!0,edge:Tt,outerStyle:ct,outerClass:n?void 0:[H.className,re?Ln:"",re&&Co?kn:""].filter(Boolean).join(" ")||void 0,bleed:Ko,siteSide:ie,children:Xo||R?de(q,{children:[Xo,R?gt(R):null,z?e(ts,{children:s}):s]}):z?e(ts,{children:s}):s})),Ne=s=>D?e(Jn,{children:R=>Uo(s,R)}):Uo(s),Jo=s=>io.bound?e(nr,{children:s}):s;if(!n){const s=v===void 0||v==="stretch",R=(M(d)!==""||G!==""||I!=="")&&!Hr(w,X)&&!(K!==""&&M(B)==="")&&(s||Q(w)!==Q(void 0));if(!(o==="row"?R:o==="column"&&s))return Ne(Jo(ke));const es=lr({direction:o,separator:f,loop:b,line:x,share:d,shareTablet:B,sharePhone:X,phoneRow:w,columns:m,columnsTablet:E,stackBelow:je,shared:c.desktop||c.phone||oe,count:et}),Dt={hasWidth:!0,...es?{bound:ir(es,io.bound)}:null};return Ne(e(rs.Provider,{value:Dt,children:ke}))}const Ie=ds(p),Y=Ie?Zr(Ue,Je):null,ge=Ie?ln({darken:Ue,darkenStyle:Je,darkenTablet:ys,darkenStyleTablet:vs,darkenPhone:As,darkenStylePhone:Ls}):{className:"",style:{}},zo=[xe?"rounded-[inherit]":"",ge.className].filter(Boolean).join(" "),Be=ds(lo),Yo=Ie?Be?{"--sf-box-bg":Ve(p??""),"--sf-box-bg-p":Ve(lo??"")}:{backgroundImage:Ve(p??""),backgroundSize:"cover",backgroundPosition:"center"}:{},qo=vn(void 0,void 0,Os),g=qo.className?qo:null,Ee=Rn({...r,top:y(r.top)??A(O.desktop,r.unit,"desktop"),bottom:y(r.bottom)??A(O.desktop,r.unit,"desktop"),topPhone:y(r.topPhone)??A(O.phone,r.unitPhone,"mobile"),bottomPhone:y(r.bottomPhone)??A(O.phone,r.unitPhone,"mobile"),left:y(r.left)??A(O.side,r.unit,"desktop"),right:y(r.right)??A(O.side,r.unit,"desktop"),leftPhone:y(r.leftPhone)??A(O.sidePhone,r.unitPhone,"mobile"),rightPhone:y(r.rightPhone)??A(O.sidePhone,r.unitPhone,"mobile")}),Qo=e("div",{className:`relative z-[1] ${Qr} ${Ee?.className??""}${L||$?` ${ue}`:""}`.trimEnd(),style:Y?{...Ee?.style,...Ge,...On}:{...Ee?.style,...Ge},children:Jo(ke)}),Zo=Ko&&fe?e("div",{className:`${He} ${pe}${L||$?` ${ue}`:""}`,children:Qo}):Qo;return Ne(e(q,{children:de("div",{className:`relative isolate overflow-hidden ${cn}${U}${Be&&!g?` ${bs}`:""}${H.className?` ${H.className}`:""}`,style:{...xe?Kn:{},...bo,...g?{}:Yo},...g?{[An]:""}:{},children:[g&&de(q,{children:[e(Vn,{sheet:g.sheet}),e("div",{"aria-hidden":!0,className:`absolute inset-0${xe?" rounded-[inherit]":""}${Be?` ${bs}`:""} ${g.className}`,style:{...Yo,...g.style??{}}})]}),e(rr,{wash:Y&&ge.className?{...Y,...ge.style}:Y,...zo?{className:zo}:{}}),Y?e(tr,{children:Zo}):Zo]})}))}export{zn as default};
1
+ import{Fragment as q,jsx as e,jsxs as de}from"react/jsx-runtime";import{useContext as Vt,useId as Gt}from"react";import Mt from"./BoxTabs.js";import{AccordionRowStyleContext as Te,BoxTabPaneContext as Fe,useAccordionRowStyle as Wt,useBoxPaneKind as Xt,useFirstCopyOpens as jt,useIsTabPane as Kt}from"./BoxTabPaneContext.js";import Ut,{ACCORDION_COUNTER_RESET as Jt}from"./BoxAccordionRow.js";import{ACCORDION_MARK_SHEET as zt}from"./AccordionMark.js";import{accordionRowStyleOf as Yt}from"../../format/lib/content/accordion-row-style.js";import{boxPhoneCell as qt,boxPhoneOrder as Qt}from"../../format/lib/content/box-phone-place.js";import{CellFillContext as os,InBoxContext as ss,useCellOfStretchedRow as Zt,useFillsCell as en}from"./InBoxContext.js";import on,{InsideSiteColumn as ts,useInsideSiteGutter as sn,useSectionRoot as tn}from"./SiteGutterFrame.js";import{BoxSurfaceProvider as nn}from"./BoxSurfaceContext.js";import rn from"./PictureWash.js";import{BoxCellContext as ns,NoCellBound as ln}from"./BoxCellContext.js";import{boxCellFractions as cn}from"../lib/content/box-cell-bound.js";import{boundOf as an}from"../../format/lib/content/cell-picture-sizes.js";import{useInSiteHeader as dn}from"./PhoneMenuTools.js";import{useCardRow as un}from"./CardRowContext.js";import{cardLineBetween as De,framesItsCards as mn}from"../../format/lib/content/card-place.js";import{rowFieldText as fn}from"../../format/lib/content/card-template.js";import{HandedMirrorContext as Cn,MirrorContext as hn,RowHandContext as rs,boxPlace as bn,useHandedMirrorAbove as Sn,useHandedRows as wn,useMirroredCopy as xn,useUnderCardBox as pn}from"./MirrorContext.js";import{boxChildrenHand as Pn,isMirroredCopy as _n,mirrorCardsActs as ls,mirrorCardsOf as $n,mirroredBoxClass as Rn,MIRROR_ROW_CLASS as On,ownsCard as yn}from"../../format/lib/content/mirror-cards.js";import{FRAME_BASE as He,frameGutterOf as An}from"./BlockFrame.js";import{BOX_SIDE_SPACE_SITE as vn,boxSideSpaceOf as Ln}from"../../format/lib/content/box-side-space.js";import{containerGapProps as is}from"../../format/lib/content/container-gap.js";import{boxLayoutClasses as kn,boxAlignViewClasses as Nn,boxBlockSpacingClass as In,boxBlockSpacingViewClasses as gn,boxJustifyViewClasses as Bn,boxWrapTabletClass as En,boxFitContentClass as Tn,boxAccordionColumnsClass as cs,boxRowColumnsClass as Fn,boxRowTabletColumnsClass as Dn,boxRowTabletShareClass as Hn,boxPhoneCellsShareLine as Vn,boxPhoneRowClasses as Q,boxPhoneRowFits as Gn,boxShareClasses as M,boxShareVars as Mn,boxWrapClass as Wn,BOX_GAP_ONLY_CLASS as Xn}from"../../format/lib/content/box-layout.js";import{boxSeparatorClasses as jn,boxSeparatorSeamClass as Kn,boxSeparatorStyle as Un,isStripBox as Jn}from"../../format/lib/content/box-separator.js";import{DEFAULT_LOOP_DELAY as zn,DEFAULT_LOOP_DIRECTION as Yn,DEFAULT_LOOP_SECONDS as qn,isVerticalLoop as Qn}from"../../format/lib/animation/index.js";import{LoopTrack as Zn}from"../lib/animation/LoopTrack.js";import{BOX_CARD_PAD as O,BOX_OWNS_SIDES_CLASS as er,boxDarkenStyle as or,boxPaintOf as sr,boxFillViews as tr,boxPlacementClasses as nr,boxCardProps as rr,boxIsCard as as,boxRowPicture as lr,boxSwatchFill as ir,boxWashViews as cr,CARD_SHADOW_CLASS as ar,isBackgroundBox as ds}from"../../format/lib/content/box-background.js";import{BOX_ROW_IMAGE_PROP as S}from"../../format/lib/content/box-card-rule.js";import{boxShadowAttrs as dr,boxShadowOnAnyView as ur,boxShadowViewAttrs as mr}from"../../format/lib/content/box-shadow.js";import{boxRunsEdgeToEdge as fr,drawsSiteGutter as Cr}from"../../format/lib/content/site-gutter.js";import{boxShapeClass as hr,boxShapeClasses as br}from"../../format/lib/content/box-shape.js";import{boxAngleStyle as Sr}from"../../format/lib/content/box-angle.js";import{BOX_JUMP_ATTR as wr,BOX_LINK_ATTR as us,BOX_LINK_CLASS as ms,BOX_LINKED_CLASS as xr,boxJumpBlocksClass as pr,boxJumpCss as Pr,boxJumpSlug as _r,boxLinkOf as $r}from"../../format/lib/content/box-link.js";import{SiteLink as Rr}from"../lib/site-runtime.js";import{sectionBorderStyle as fs}from"../../format/lib/content/borders.js";import{finiteNumber as y}from"../../format/lib/finite-number.js";import{padDefaultIn as A,sectionPadAttrs as Or}from"../lib/content/section-padding.js";import{SECTION_FILL_CLASS as ue}from"../../format/lib/content/section-min-height.js";import{ON_MEDIA_INK_STYLE as yr,rowFillInkStyle as Ar}from"../../format/lib/content/ink.js";import{useThemeLightInk as vr}from"./ThemeLightInkContext.js";import{sizedBackground as Ve}from"../../format/lib/sized-image.js";import{PHOTO_HOST_ATTR as Lr,resolveImageTreatment as kr}from"../../format/lib/content/image-treatment.js";import{BOX_HIGHLIGHT_CLASS as Nr,BOX_HIGHLIGHT_OVER_ROW_INK_CLASS as Ir}from"../../format/lib/animation/hover.js";import{BoxRail as gr,BoxRailStop as Br,RAIL_STOPS_CLASS as Er,useTimelineRail as Tr}from"./TimelineRail.js";import{SHARED_PLAIN_ATTR as Fr,sharedColumnsClasses as Dr,sharedColumnsCss as Hr,sharedRowsClasses as Vr,sharedRowsCss as Gr}from"../lib/content/box-shared-columns.js";import Mr from"./PhotoHoverSheet.js";import{stackGutterClass as Wr,stackLineCss as Xr,stackOuterClass as jr,stackRowClass as Kr,storedStackLine as Ur}from"../lib/content/box-stack-line.js";const Ge={"--sf-site-gutter":"0px"},Jr={overflowX:"clip",overflowY:"visible"},zr={stretchedRow:!1,fillingColumn:!1,columnsRow:!1},Cs={desktop:!1,phone:!1},hs="bg-cover bg-center bg-[image:var(--sf-box-bg)] max-view-wide:bg-[image:var(--sf-box-bg-p)]",Me=u=>u==null||u==="",We=u=>!Me(u)&&Number(u)===0;function Yr({children:u}){return e(q,{children:u(Gt())})}function qr({direction:u,label:bs,tabShape:Ss,gap:Xe,gapPhone:ws,gapTablet:me,justify:W,align:v,wrap:Z,share:xs,sharePhone:X,shareTablet:B,wrapPhone:ps,orderPhone:Ps,phoneRow:w,columns:m,columnsTablet:E,separator:f,stackBelow:je,blockSpacing:Ke,bgImage:_s,bgImagePhone:$s,rowImage:Rs,pictureHover:Os,darken:Ue,darkenStyle:Je,darkenTablet:ys,darkenPhone:As,darkenStyleTablet:vs,darkenStylePhone:Ls,placement:ks,padV2:ze=!1,border:Ns,borderTablet:Is,borderPhone:gs,pad:n={},contained:fe=!0,fillHeight:L=!1,shadow:Ce,shadowTablet:Ye,shadowPhone:qe,justifyTablet:Qe,justifyPhone:Bs,alignTablet:Es,alignPhone:Ts,wrapTablet:Ze,blockSpacingTablet:Fs,blockSpacingPhone:Ds,loop:h,scrollDirection:he=Yn,loopSeconds:Hs=qn,loopDelay:Vs=zn,editing:T=!1,fillColor:eo,fillColorTablet:Gs,fillColorPhone:Ms,swatch:Ws,line:x,upcoming:Xs,link:js,rowLink:oo,highlight:Ks,boxShape:so,boxShapePhone:Us,boxShapeTablet:Js,angle:zs,jumpHighlight:Ys,anchor:qs,sharedSides:Qs=Cs,sharedRows:Zs=!1,boxId:F,slotCount:et,mirrorCards:to,content:i,rowTitle:be,startsOpen:ot,rowStyle:st,sideSpace:tt}){const t=un(),k=rr({[S]:Rs},t!==null)[S],no=as({[S]:k}),c=no?Cs:Qs,nt=no?!1:Zs,ro=lr({[S]:k},t?.row),p=ro??_s,lo=ro===null?$s:void 0,io=Vt(ns),rt=Sn(),co=pn()&&!(rt&&t!==null),P=wn(),_=yn({inCopy:t!==null,nestedCopy:t?.nested===!0,underBox:co}),ao=De(Ns,t,_),uo=De(Is,t,_),mo=De(gs,t,_),fo=t===null&&!co&&P?.ids&&F?P.ids.indexOf(F):-1,ee=fo>=0&&P&&F?bn(P,F,fo):-1,b=ee>=0?P?.hand??null:_&&P?.copies===!0?P.hand:null,o=b?.row?"row":u,d=b?.row?b.row.share:xs,lt=b?.row?b.row.phoneReverse?[...i.blockIds??[]].reverse():void 0:Ps,oe=nt&&!b?.row,D=T?"":$r(oo&&t?fn(t.row,oo):js),$=L?"":br(so,Us,Js),it=!L&&hr(so)!=="",N=_r(Ys,qs),Se=ir({swatch:Ws},t?.row),se=Se??sr(eo),H=Se?{className:"",style:{}}:tr(eo,Gs,Ms),ct=vr(),Co=Ar(Se,ct??void 0),ho=se||H.className?{...se?{backgroundColor:se}:{},...H.style,...Co}:void 0,bo=Tr(),te=x===!0&&o!=="tabs"&&o!=="accordion",r=as({bgImage:p,[S]:k}),So=Sr(zs),wo=r?void 0:ho,ne=r?null:Ks??null,at=So||ne?{...wo,...So,...ne}:wo,re=dn(),dt=tn(),ut=Kt(),xo=Xt(),mt=Wt(),ft=jt(),l=o==="accordion",po=Yt(st),j=l&&po==="numbered",we=en(),Ct=Zt(),V=Jn(o,f),a=h==="scroll"&&o!=="tabs"&&!l,ht=xn(),le=_||ee>=0&&b!==null,Po=b?b.mirror:to,bt=ee>=0?ee:t?.index,xe=_&&mn(t?.ownerType),_o=ls({direction:o,separator:f,loop:h,line:x,bgImage:p,[S]:k,columns:m,columnsTablet:E,share:d,wrap:Z},le,c.desktop)&&_n(Po,bt),St=ls({direction:o,separator:f,loop:h,line:x,bgImage:p,[S]:k,columns:m,columnsTablet:E,share:d,wrap:Z},le,c.desktop)&&$n(Po)!==null,G=Fn({direction:o,separator:f,loop:h,line:x,columns:m}),I=Dn({direction:o,separator:f,loop:h,line:x,columnsTablet:E}),K=Hn({direction:o,separator:f,loop:h,line:x,columns:m,columnsTablet:E,share:d,shareTablet:B}),ie=Ln(tt)===vn,pe=An(ie),C=o==="row"&&!r&&!V&&!a&&!te&&I===""&&K===""?Ur(je):void 0,wt=sn(),ce=Dr(c,i.blockCount??0,C),xt=(ce&&(!t||t.index===0)?Hr(c,i.blockCount??0,C):"")+(oe&&(!t||t.index===0)?Gr(oe,i.blockCount??0):""),$o=Vr(oe,i.blockCount??0),Ro=I!==""?Number(E)>=2:K===""||M(B)!=="",Oo=I!==""||K!=="",yo=o==="row"&&!V&&!a&&x!==!0,Pe=yo&&!c.phone&&!c.desktop?qt(Qt(lt,i.blockIds??[]),{editing:T}):void 0,Ao=Pe!==void 0&&!T,pt=G!==""?Number(m)>=2:M(d)!=="",vo=!r&&!l&&!St&&!c.desktop&&!c.phone,ae=vo&&!a?Bn(W,Qe,Bs):"",_e=r||le?"":Rn(ht,o,a?void 0:W,v,ae?Qe:void 0),Pt=/view-wide:max-view-desktop:justify-/.test(_e)?ae.split(" ").filter(s=>!s.startsWith("view-wide:max-view-desktop:justify-")).join(" "):ae,_t=vo&&o==="row"?Nn(v,Es,Ts):"",$t=!a&&!l&&G===""&&I===""&&!c.desktop?En(Z,Ze):"",Lo=[l?"":M(d),o==="row"?Tn(d):"",G,I,K,In(l?"gap":Ke),jn(o,f),l&&!j?"border-t border-line":"",Pt,_t,$t,l?"":gn(Ke,Fs,Ds),l?cs(m,w,j):"",j?Jt:""].filter(Boolean).join(" "),Rt=Lo?` ${Lo}`:"",ko=["flex",o==="row"?V||a?"flex-row":`flex-row ${Q(w,X,ps,Ze)}`:"flex-col",Wn(a||l?!1:Z),r?nr(ks??"center",o):kn(a||l?void 0:W,l?void 0:v)+(_e?` ${_e}`:"")].join(" ")+Rt,U=L||r||$||we?` ${ue}`:"",$e=it?` ${$}`:$?`${U} ${$}`:U,No=Ct&&o==="column"&&!r&&!a&&M(d)===""&&(typeof W=="string"&&W!=="start"||ae!==""),Io=U||(No?` ${ue}`:""),Re=D?` ${xr}`:"",Oe=r||re||ze?"":" py-6",Ot=C===void 0?"":` ${Kr(C)}`,go=C===void 0||ie?"":` ${Wr(C)}`,ye=C===void 0?"":` ${jr(C)}`,yt=`${He}${Oe} ${pe}${$e}${Re}${go}${ye}`,At=re?`${$e}${Re}${ye}`.trim():`w-full${Oe}${$e}${Re}${ye}`,J=j&&cs(m,w)===""?is("Flex",0,"block"):is("Flex",Xe,o==="row"?"inline":"block",ws,V||a?void 0:me),Bo=Mn(d,B,o==="row"?i.blockCount??0:0),Eo=V?{...J.style,...Un(o,f)}:J.style,vt=Bo?{...Eo,...Bo}:Eo,Ae=(s="")=>e(i,{className:`${ko}${_o?` ${On}`:""}${J.className}${Io}${Ot}${s?` ${s}`:""}${te?` ${Er}`:""}${N?` ${pr(N)}`:""}${ce}${$o}`,style:vt,minEmptyHeight:120,...Pe?{cell:Pe}:null}),To=Qn(he)?"":Kn(o,f),Fo=a?e(Zn,{direction:he,seconds:Hs,delay:Vs,editing:T,copy:s=>Ae(s&&To?`${s} ${To}`:s)}):j?de(q,{children:[e("style",{children:zt}),Ae()]}):Ae(),ve=o==="tabs"?e(Mt,{className:`${ko}${J.className}${we&&!L&&!r&&!$?"":U}`,style:J.style,shape:Ss,children:Fo}):Fo,Le=l?e(Fe.Provider,{value:"accordion",children:e(Te.Provider,{value:po,children:ve})}):xo?e(Fe.Provider,{value:!1,children:e(Te.Provider,{value:"plain",children:ve})}):ve,Do=o==="row"&&!r&&(v===void 0||v==="stretch"),Lt={stretchedRow:Do,fillingColumn:o==="column"&&(we||No),columnsRow:G!==""||I!==""||ce!==""||$o!==""||o==="row"&&(Array.isArray(d)||Array.isArray(B))||Ao,...Ao?{phoneCells:!0}:null,...Do&&yo&&(i.blockCount??0)>=2&&pt?{picturesFillRow:!0}:null,...Oo&&!Ro?{fillFrom:"desktop"}:null,...Vn(w,X)&&(!Oo||Ro)?{phoneRowFills:!0}:null,...F?{id:F}:null},Ho=t===null?Pn({direction:o,loop:h,bgImage:p,[S]:k,columns:m,mirrorCards:to},!1):null,Vo=Ho?e(rs.Provider,{value:{hand:Ho,ids:i.blockIds??[],boxes:[]},children:Le}):P?e(rs.Provider,{value:null,children:Le}):Le,Go=e(ss.Provider,{value:Lt,children:e(os.Provider,{value:!1,children:le?e(hn.Provider,{value:_o,children:e(Cn.Provider,{value:!_,children:Vo})}):Vo})}),kt=be?.blockCount??0,Mo=xo==="accordion"&&!!be&&(T||kt>0)?e(Ut,{startsOpen:ot===!0||ft&&_&&t?.index===0,editing:T,numbered:mt==="numbered",title:e(ss.Provider,{value:zr,children:e(os.Provider,{value:!1,children:e(Fe.Provider,{value:!1,children:e(Te.Provider,{value:"plain",children:e(be,{className:`min-w-0 flex-1 ${Xn}`,minEmptyHeight:24})})})})}),children:Go}):Go,ke=te?e(gr,{row:o==="row",stops:i.blockCount??0,children:Mo}):Mo,Nt=bs?.trim()||(ut?"":void 0),It={values:n,frame:Oe?24:0},gt=s=>bo?e(Br,{on:bo,future:Xs===!0,children:s}):s,Bt=s=>D.startsWith("/")?e(Rr,{href:D,className:ms,"aria-labelledby":s,[us]:""}):e("a",{href:D,className:ms,"aria-labelledby":s,[us]:""}),Wo=(N?Pr(N):"")+xt+(C===void 0||t&&t.index!==0?"":Xr(C,{gutter:!ie})),Xo=Wo?e("style",{dangerouslySetInnerHTML:{__html:Wo}}):null,z=fr({loop:h,direction:o,scrollDirection:he,bgImage:p,[S]:k}),Et=c.desktop&&ce!==""&&!se&&!H.className&&!fs(ao,mo,uo)&&!ur(Ce,Ye,qe)&&!D&&!$&&!L&&!N&&!Cr(fe&&!z,wt)&&We(Xe)&&(Me(me)||We(me))&&ze&&Object.values(n).every(s=>Me(s)||We(s)),Tt=s=>({...Et?{[Fr]:""}:null,...r?null:{...dr(Ce),...mr(Ce,Ye,qe)},...N?{[wr]:N}:null,...s?{id:s}:null}),jo=G!==""?Number(m):0,Ft=Q(w,X)===Q(void 0),Dt=(o==="column"||o==="row"&&!V&&!a&&(jo===1&&Ft||jo===0&&i.blockCount===1))&&!r&&!te&&!re,Ko=r&&dt&&!re,Uo=(s,R)=>gt(e(on,{contained:fe&&!z,style:z?Ge:void 0,framedClass:yt,fillClass:At,columnClass:`${He} ${pe}${Io}${go}`,tabLabel:Nt,pad:r?void 0:It,border:fs(ao,mo,uo),outerAttrs:Tt(R),box:!0,edge:Dt,outerStyle:at,outerClass:r?void 0:[H.className,ne?Nr:"",ne&&Co?Ir:""].filter(Boolean).join(" ")||void 0,bleed:Ko,siteSide:ie,children:Xo||R?de(q,{children:[Xo,R?Bt(R):null,z?e(ts,{children:s}):s]}):z?e(ts,{children:s}):s})),Ne=s=>D?e(Yr,{children:R=>Uo(s,R)}):Uo(s),Jo=s=>io.bound?e(ln,{children:s}):s;if(!r){const s=v===void 0||v==="stretch",R=(M(d)!==""||G!==""||I!=="")&&!Gn(w,X)&&!(K!==""&&M(B)==="")&&(s||Q(w)!==Q(void 0));if(!(o==="row"?R:o==="column"&&s))return Ne(Jo(ke));const es=cn({direction:o,separator:f,loop:h,line:x,share:d,shareTablet:B,sharePhone:X,phoneRow:w,columns:m,columnsTablet:E,stackBelow:je,shared:c.desktop||c.phone||oe,count:et}),Ht={hasWidth:!0,...es?{bound:an(es,io.bound)}:null};return Ne(e(ns.Provider,{value:Ht,children:ke}))}const Ie=ds(p),Y=Ie?or(Ue,Je):null,ge=Ie?cr({darken:Ue,darkenStyle:Je,darkenTablet:ys,darkenStyleTablet:vs,darkenPhone:As,darkenStylePhone:Ls}):{className:"",style:{}},zo=[xe?"rounded-[inherit]":"",ge.className].filter(Boolean).join(" "),Be=ds(lo),Yo=Ie?Be?{"--sf-box-bg":Ve(p??""),"--sf-box-bg-p":Ve(lo??"")}:{backgroundImage:Ve(p??""),backgroundSize:"cover",backgroundPosition:"center"}:{},qo=kr(void 0,void 0,Os),g=qo.className?qo:null,Ee=Or({...n,top:y(n.top)??A(O.desktop,n.unit,"desktop"),bottom:y(n.bottom)??A(O.desktop,n.unit,"desktop"),topPhone:y(n.topPhone)??A(O.phone,n.unitPhone,"mobile"),bottomPhone:y(n.bottomPhone)??A(O.phone,n.unitPhone,"mobile"),left:y(n.left)??A(O.side,n.unit,"desktop"),right:y(n.right)??A(O.side,n.unit,"desktop"),leftPhone:y(n.leftPhone)??A(O.sidePhone,n.unitPhone,"mobile"),rightPhone:y(n.rightPhone)??A(O.sidePhone,n.unitPhone,"mobile")}),Qo=e("div",{className:`relative z-[1] ${er} ${Ee?.className??""}${L||$?` ${ue}`:""}`.trimEnd(),style:Y?{...Ee?.style,...Ge,...yr}:{...Ee?.style,...Ge},children:Jo(ke)}),Zo=Ko&&fe?e("div",{className:`${He} ${pe}${L||$?` ${ue}`:""}`,children:Qo}):Qo;return Ne(e(q,{children:de("div",{className:`relative isolate overflow-hidden ${ar}${U}${Be&&!g?` ${hs}`:""}${H.className?` ${H.className}`:""}`,style:{...xe?Jr:{},...ho,...g?{}:Yo},...g?{[Lr]:""}:{},children:[g&&de(q,{children:[e(Mr,{sheet:g.sheet}),e("div",{"aria-hidden":!0,className:`absolute inset-0${xe?" rounded-[inherit]":""}${Be?` ${hs}`:""} ${g.className}`,style:{...Yo,...g.style??{}}})]}),e(rn,{wash:Y&&ge.className?{...Y,...ge.style}:Y,...zo?{className:zo}:{}}),Y?e(nn,{children:Zo}):Zo]})}))}export{qr as default};
@@ -1 +1 @@
1
- "use client";import{jsx as n,jsxs as D}from"react/jsx-runtime";import{HideTaker as Ce}from"./ViewHideRoot.js";import{useCallback as b,useEffect as w,useId as Pe,useRef as d,useState as k}from"react";import{markOverlayPortal as ee}from"../../format/lib/document/overlay-portal.js";import De from"./Ticker.js";import{HeroSlideStyleContext as Ie}from"./HeroSlide.js";import Ve from"./HeroArrows.js";import $e from"./Reel.js";import{TICKER_PART_ATTR as ze}from"./PreviewTickerContext.js";import{useReducedMotion as Be}from"./useReducedMotion.js";import{heroHeightBox as Xe,heroStoresRatio as Ge}from"../../format/lib/content/section-height.js";import{HEADER_HEIGHT_CSS as Ye}from"../lib/document/header-clearance.js";import{nextReel as je,normaliseHeroReelShape as qe,reelShown as Ke}from"../../format/lib/reel.js";import{arrowsShown as Fe,arrowStep as Je}from"../../format/lib/hero-arrows.js";import{swipeEnabled as Qe,swipeStep as Ue}from"../../format/lib/hero-swipe.js";import{videoControlShown as We,videoHeld as Ze}from"../../format/lib/hero-video-control.js";import{HERO_SLIDER_GOTO_EVENT as I}from"efficient-easel/draw";import{say as te}from"../../format/lib/editor-words.js";import{markedChildren as re}from"../../format/lib/marked-children.js";import{legacyTickerDrawn as et,TICKER_MOTION_PART as tt}from"../../format/lib/hero-ticker.js";import{ON_MEDIA_INK_STYLE as rt}from"../../format/lib/content/ink.js";import{SectionAnimation as ot}from"./SectionAnimation.js";import{entranceDrawn as nt}from"../lib/animation/entrance.js";import{readPartMotion as st}from"../lib/animation/part-motion.js";import{scrim as oe}from"../../format/lib/content/scrim.js";const ct="Play video",at="Hold video",lt="flex h-7 cursor-pointer items-center gap-1.5 rounded-full border border-overlay-chrome/25 bg-overlay-scrim/80 px-[11px] font-mono text-[11px] leading-none tracking-[0.05em] text-overlay-fg",it=()=>te("item"),ne=new Map;function ut(m,a){const i=m?.ownerDocument?.defaultView;if(i)return i.addEventListener(I,a),()=>i.removeEventListener(I,a)}function dt({slides:m,strip:a,alignment:i,textureOpacity:y,showTexture:E,textureColor:g,phoneUpDown:se,phoneSideways:ce,autoplay:V,autoplayInterval:O,showTicker:ae,tickerItems:$,heightDesktop:le,heightTablet:ie,heightMobile:ue,heightFixed:de,heightFixedTablet:me,heightFixedMobile:fe,showPicker:he,pickerShape:pe,pickerPlacement:be,showArrows:ve,arrowsShape:xe,arrowsPlacement:we,editing:s,partMotion:ke}){const z=Xe({heightDesktop:le,heightTablet:ie,heightMobile:ue,heightFixed:de,heightFixedTablet:me,heightFixedMobile:fe}),{className:ye,style:Ee}=z,H=Ge(z),B=(a?.blockCount??0)>0,ge=!B&&et({showTicker:ae,tickerItems:$}),X=($??[]).map(e=>e?.text?.trim()?e.text:s?it():"").filter(Boolean),_e=nt(st({_partMotion:ke},tt)),f=d(null),G=d(null),Y=d(null),j=d(null),q=Pe(),N=d(q),[_,Re]=k([]),[Te,K]=k(0),v=d(0),[F,J]=k(!1),[Se,Q]=k(null),[R,Oe]=k(!1),A=Be(),T=b(()=>f.current?.querySelector(".hero-track")??null,[]),u=b((e,t=!1)=>{K(e),Q(o=>o===e?o:null),v.current=e,ne.set(N.current,e);const r=f.current?.querySelector(".hero-track");if(r)if(t){const o=r.style.transition;r.style.transition="none",r.style.transform=`translateX(-${Math.max(0,e)*100}%)`,r.offsetHeight,r.style.transition=o}else r.style.transform=`translateX(-${Math.max(0,e)*100}%)`},[]);w(()=>{const e=f.current,t=e?.getAttribute("data-easel-block")||e?.closest("[data-easel-block]")?.getAttribute("data-easel-block")||q;N.current=t;const r=ne.get(t);typeof r=="number"&&(K(r),v.current=r)},[]),w(()=>{const e=T();if(!e)return;const t=()=>{Re(o=>je(o,re(e,"data-slide-name")))};t();const r=new MutationObserver(t);return r.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-slide-name","data-slide-process","data-slide-media"]}),()=>{r.disconnect()}},[T]),w(()=>{if(!s)return;const e=t=>{const r=t.detail;if(!r||typeof r.index!="number")return;const o=f.current,p=o?.getAttribute("data-easel-block")||o?.closest("[data-easel-block]")?.getAttribute("data-easel-block")||N.current;r.id&&r.id!==p||u(r.index,!0)};return ut(f.current,e)},[s,u]);const c=_.length,l=Math.min(Math.max(Te,0),Math.max(0,c-1)),M=Se===l,L=Ke({shown:he,count:c}),U=Fe({shown:ve,count:c}),W=We({editing:s,shown:l,slides:_}),He=Ze({editing:s,playing:R,controlShown:W}),S=Qe({count:c,editing:s}),h=d(null),x=d(null),Ne=b(e=>{if(h.current=null,x.current=null,!S||e.touches.length!==1)return;const t=e.touches[0];h.current={x:t.clientX,y:t.clientY},x.current={x:t.clientX,y:t.clientY}},[S]),Ae=b(e=>{if(!h.current)return;if(e.touches.length!==1){h.current=null;return}const t=e.touches[0];x.current={x:t.clientX,y:t.clientY}},[]),Me=b(()=>{const e=h.current,t=x.current;if(h.current=null,x.current=null,!S||!e||!t)return;const r=Ue(t.x-e.x,t.y-e.y,v.current,c);r!==v.current&&u(r)},[S,c,u]);w(()=>{if(s||!V||F||M||A||c<=1)return;const t=Math.max(1,typeof O=="number"?O:6)*1e3,r=window.setTimeout(()=>u((l+1)%c),t);return()=>window.clearTimeout(r)},[s,V,O,F,M,A,c,l,u]),w(()=>{const e=[G.current,Y.current,j.current].filter(Boolean),t=e.map(o=>ee(o)),r=o=>{const p=o.target,C=p.closest("[data-hero-nav]"),Z=C??p.closest("[data-idx]");if(!Z)return;o.stopPropagation(),o.preventDefault();const P=C?Je(C.dataset.heroNav,v.current,c):Number(Z.dataset.idx);Number.isNaN(P)||(u(P,s),re(T(),"data-slide-name")[P]?.click())};return e.forEach(o=>o.addEventListener("click",r,{capture:!0})),()=>{t.forEach(o=>o?.()),e.forEach(o=>o.removeEventListener("click",r,{capture:!0}))}},[c,u,T,s]);const Le=b(e=>{if(!e)return;const t=ee(e),r=o=>{o.stopPropagation(),o.preventDefault(),Oe(p=>!p)};return e.addEventListener("click",r,{capture:!0}),()=>{t?.(),e.removeEventListener("click",r,{capture:!0})}},[]);return n(Ie.Provider,{value:{alignment:i,textureOpacity:y,textureOn:E,textureColor:g,quietVideo:He,phoneUpDown:se,phoneSideways:ce,holdReel:()=>Q(l),reelHeld:M,shownSlide:l,ratioMin:H},children:D(Ce,{ref:f,className:`relative mx-[var(--sf-hero-bleed-m,calc(50%_-_50vw))] w-[var(--sf-hero-bleed-w,100vw)] ${ye} max-w-[var(--sf-hero-cap,none)] ${H?"overflow-clip":"overflow-hidden"}`,style:Ee,onMouseEnter:()=>J(!0),onMouseLeave:()=>J(!1),onTouchStart:Ne,onTouchMove:Ae,onTouchEnd:Me,children:[n(m,{className:H?"hero-track flex min-h-full [&>*]:min-h-full [&>*]:min-w-full [&>*]:shrink-0 [&>*]:basis-full":"hero-track flex h-full [&>*]:h-full [&>*]:min-w-full [&>*]:shrink-0 [&>*]:basis-full",style:{transform:`translateX(-${l*100}%)`,transition:A?"none":"transform 600ms cubic-bezier(.22,.61,.36,1)"},minEmptyHeight:400}),W&&n("div",{ref:Le,"data-hero-video-control":R?"playing":"held",className:"sf-hero-video-control absolute left-6 z-[7]",style:{top:`calc(${Ye} + 16px)`},children:D("button",{type:"button",className:lt,children:[n("span",{"aria-hidden":"true",children:R?"❚❚":"▶"}),te(R?at:ct)]})}),(L||U)&&D("div",{className:"pointer-events-none absolute inset-y-0 left-[var(--sf-hero-chrome-x,var(--sf-site-gutter,40px))] right-[var(--sf-hero-chrome-x,var(--sf-site-gutter,40px))] z-[6] mx-auto max-w-[var(--sf-hero-chrome-cap,calc(var(--sf-site-width,1600px)_-_var(--sf-site-gutter,40px)*2))]",children:[L&&n($e,{ref:G,slides:_,active:l,shape:qe(pe),placement:be}),U&&n(Ve,{ref:j,shape:xe,placement:we})]}),L&&n("div",{ref:Y,className:"sf-hero-phone-dots absolute bottom-[80px] left-1/2 z-[6] hidden -translate-x-1/2 items-center gap-2",children:_.map((e,t)=>n("button",{type:"button","data-idx":t,"aria-label":`Go to slide ${t+1}`,className:`h-2 rounded-full transition-all motion-reduce:transition-none ${t===l?"w-5 bg-accent":"w-2 bg-white/45 hover:bg-white/70"}`},t))}),B&&a&&n("div",{className:"sf-hero-strip absolute inset-x-0 bottom-0 z-[5] border-t border-overlay-chrome/10",style:{background:oe(.55),...rt},children:n(a,{})}),ge&&X.length>0&&n(mt,{editing:!!s,entrance:_e,children:n(De,{items:X,backdrop:"dark-media"})})]})})}function mt({editing:m,entrance:a,children:i}){const y="sf-hero-ticker absolute inset-x-0 bottom-0 z-[5] border-t border-overlay-chrome/10 py-3.5",E=m?{[ze]:""}:void 0,g={background:oe(.55)};return a?n(ot,{desktop:a.desktop,phone:a.phone,editing:m,boxClass:y,boxAttrs:E,boxStyle:g,children:i}):n("div",{className:y,...E,style:g,children:i})}export{I as HERO_SLIDER_GOTO_EVENT,at as HERO_VIDEO_HOLD_LABEL,ct as HERO_VIDEO_PLAY_LABEL,dt as default,ut as subscribeSliderGoto};
1
+ "use client";import{jsx as n,jsxs as V}from"react/jsx-runtime";import{HideTaker as Pe}from"./ViewHideRoot.js";import{useCallback as v,useEffect as w,useId as De,useRef as d,useState as k}from"react";import{markOverlayPortal as te}from"../../format/lib/document/overlay-portal.js";import Ie from"./Ticker.js";import{HeroSlideStyleContext as Ve}from"./HeroSlide.js";import $e from"./HeroArrows.js";import ze from"./Reel.js";import{TICKER_PART_ATTR as Be}from"./PreviewTickerContext.js";import{useReducedMotion as Xe}from"./useReducedMotion.js";import{heroHeightBox as Ge,heroStoresRatio as Ye}from"../../format/lib/content/section-height.js";import{HEADER_HEIGHT_CSS as je}from"../lib/document/header-clearance.js";import{nextReel as qe,normaliseHeroReelShape as Ke,reelShown as Fe}from"../../format/lib/reel.js";import{arrowsShown as Je,arrowStep as Qe}from"../../format/lib/hero-arrows.js";import{swipeEnabled as Ue,swipeStep as We}from"../../format/lib/hero-swipe.js";import{videoControlShown as Ze,videoHeld as et}from"../../format/lib/hero-video-control.js";import{HERO_SLIDER_GOTO_EVENT as $}from"efficient-easel/draw";import{say as re}from"../../format/lib/editor-words.js";import{markedChildren as oe}from"../../format/lib/marked-children.js";import{legacyTickerDrawn as tt,TICKER_MOTION_PART as rt}from"../../format/lib/hero-ticker.js";import{ON_MEDIA_INK_STYLE as ot}from"../../format/lib/content/ink.js";import{SectionAnimation as nt}from"./SectionAnimation.js";import{entranceDrawn as st}from"../lib/animation/entrance.js";import{readPartMotion as ct}from"../lib/animation/part-motion.js";import{scrim as ne}from"../../format/lib/content/scrim.js";const at="Play video",lt="Hold video",it="flex h-7 cursor-pointer items-center gap-1.5 rounded-full border border-overlay-chrome/25 bg-overlay-scrim/80 px-[11px] font-mono text-[11px] leading-none tracking-[0.05em] text-overlay-fg",ut=()=>re("item"),se=new Map;function dt(m,a){const i=m?.ownerDocument?.defaultView;if(i)return i.addEventListener($,a),()=>i.removeEventListener($,a)}function mt({slides:m,strip:a,alignment:i,textureOpacity:y,showTexture:E,textureColor:g,phoneUpDown:ce,phoneSideways:ae,autoplay:z,autoplayInterval:O,showTicker:le,tickerItems:B,heightDesktop:ie,heightTablet:ue,heightMobile:de,heightFixed:me,heightFixedTablet:fe,heightFixedMobile:he,showPicker:pe,pickerShape:ve,pickerPlacement:be,showArrows:xe,arrowsShape:we,arrowsPlacement:ke,editing:s,partMotion:ye}){const X=Ge({heightDesktop:ie,heightTablet:ue,heightMobile:de,heightFixed:me,heightFixedTablet:fe,heightFixedMobile:he}),{className:Ee,style:ge}=X,H=Ye(X),G=(a?.blockCount??0)>0,_e=!G&&tt({showTicker:le,tickerItems:B}),Y=(B??[]).map(e=>e?.text?.trim()?e.text:s?ut():"").filter(Boolean),Re=st(ct({_partMotion:ye},rt)),f=d(null),j=d(null),q=d(null),N=d(null),K=De(),A=d(K),[_,Te]=k([]),[Se,F]=k(0),b=d(0),[J,Q]=k(!1),[Oe,U]=k(null),[R,He]=k(!1),M=Xe(),T=v(()=>f.current?.querySelector(".hero-track")??null,[]),u=v((e,t=!1)=>{F(e),U(o=>o===e?o:null),b.current=e,se.set(A.current,e);const r=f.current?.querySelector(".hero-track");if(r)if(t){const o=r.style.transition;r.style.transition="none",r.style.transform=`translateX(-${Math.max(0,e)*100}%)`,r.offsetHeight,r.style.transition=o}else r.style.transform=`translateX(-${Math.max(0,e)*100}%)`},[]);w(()=>{const e=f.current,t=e?.getAttribute("data-easel-block")||e?.closest("[data-easel-block]")?.getAttribute("data-easel-block")||K;A.current=t;const r=se.get(t);typeof r=="number"&&(F(r),b.current=r)},[]),w(()=>{const e=T();if(!e)return;const t=()=>{Te(o=>qe(o,oe(e,"data-slide-name")))};t();const r=new MutationObserver(t);return r.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-slide-name","data-slide-process","data-slide-media"]}),()=>{r.disconnect()}},[T]),w(()=>{if(!s)return;const e=t=>{const r=t.detail;if(!r||typeof r.index!="number")return;const o=f.current,p=o?.getAttribute("data-easel-block")||o?.closest("[data-easel-block]")?.getAttribute("data-easel-block")||A.current;r.id&&r.id!==p||u(r.index,!0)};return dt(f.current,e)},[s,u]);const c=_.length,l=Math.min(Math.max(Se,0),Math.max(0,c-1)),L=Oe===l,C=Fe({shown:pe,count:c}),W=Je({shown:xe,count:c}),Z=Ze({editing:s,shown:l,slides:_}),Ne=et({editing:s,playing:R,controlShown:Z}),S=Ue({count:c,editing:s}),h=d(null),x=d(null),Ae=v(e=>{if(h.current=null,x.current=null,!S||e.touches.length!==1)return;const t=e.touches[0];h.current={x:t.clientX,y:t.clientY},x.current={x:t.clientX,y:t.clientY}},[S]),Me=v(e=>{if(!h.current)return;if(e.touches.length!==1){h.current=null;return}const t=e.touches[0];x.current={x:t.clientX,y:t.clientY}},[]),Le=v(()=>{const e=h.current,t=x.current;if(h.current=null,x.current=null,!S||!e||!t)return;const r=We(t.x-e.x,t.y-e.y,b.current,c);r!==b.current&&u(r)},[S,c,u]);w(()=>{if(s||!z||J||L||M||c<=1)return;const t=Math.max(1,typeof O=="number"?O:6)*1e3,r=window.setTimeout(()=>u((l+1)%c),t);return()=>window.clearTimeout(r)},[s,z,O,J,L,M,c,l,u]),w(()=>{const e=[j.current,q.current,N.current].filter(Boolean),t=e.map(o=>te(o)),r=o=>{const p=o.target,P=p.closest("[data-hero-nav]");if(P&&!N.current?.contains(P))return;const D=P,ee=D??p.closest("[data-idx]");if(!ee)return;o.stopPropagation(),o.preventDefault();const I=D?Qe(D.dataset.heroNav,b.current,c):Number(ee.dataset.idx);Number.isNaN(I)||(u(I,s),oe(T(),"data-slide-name")[I]?.click())};return e.forEach(o=>o.addEventListener("click",r,{capture:!0})),()=>{t.forEach(o=>o?.()),e.forEach(o=>o.removeEventListener("click",r,{capture:!0}))}},[c,u,T,s]);const Ce=v(e=>{if(!e)return;const t=te(e),r=o=>{o.stopPropagation(),o.preventDefault(),He(p=>!p)};return e.addEventListener("click",r,{capture:!0}),()=>{t?.(),e.removeEventListener("click",r,{capture:!0})}},[]);return n(Ve.Provider,{value:{alignment:i,textureOpacity:y,textureOn:E,textureColor:g,quietVideo:Ne,phoneUpDown:ce,phoneSideways:ae,holdReel:()=>U(l),reelHeld:L,shownSlide:l,ratioMin:H},children:V(Pe,{ref:f,className:`relative mx-[var(--sf-hero-bleed-m,calc(50%_-_50vw))] w-[var(--sf-hero-bleed-w,100vw)] ${Ee} max-w-[var(--sf-hero-cap,none)] ${H?"overflow-clip":"overflow-hidden"}`,style:ge,onMouseEnter:()=>Q(!0),onMouseLeave:()=>Q(!1),onTouchStart:Ae,onTouchMove:Me,onTouchEnd:Le,children:[n(m,{className:H?"hero-track flex min-h-full [&>*]:min-h-full [&>*]:min-w-full [&>*]:shrink-0 [&>*]:basis-full":"hero-track flex h-full [&>*]:h-full [&>*]:min-w-full [&>*]:shrink-0 [&>*]:basis-full",style:{transform:`translateX(-${l*100}%)`,transition:M?"none":"transform 600ms cubic-bezier(.22,.61,.36,1)"},minEmptyHeight:400}),Z&&n("div",{ref:Ce,"data-hero-video-control":R?"playing":"held",className:"sf-hero-video-control absolute left-6 z-[7]",style:{top:`calc(${je} + 16px)`},children:V("button",{type:"button",className:it,children:[n("span",{"aria-hidden":"true",children:R?"❚❚":"▶"}),re(R?lt:at)]})}),(C||W)&&V("div",{className:"pointer-events-none absolute inset-y-0 left-[var(--sf-hero-chrome-x,var(--sf-site-gutter,40px))] right-[var(--sf-hero-chrome-x,var(--sf-site-gutter,40px))] z-[6] mx-auto max-w-[var(--sf-hero-chrome-cap,calc(var(--sf-site-width,1600px)_-_var(--sf-site-gutter,40px)*2))]",children:[C&&n(ze,{ref:j,slides:_,active:l,shape:Ke(ve),placement:be}),W&&n($e,{ref:N,shape:we,placement:ke})]}),C&&n("div",{ref:q,className:"sf-hero-phone-dots absolute bottom-[80px] left-1/2 z-[6] hidden -translate-x-1/2 items-center gap-2",children:_.map((e,t)=>n("button",{type:"button","data-idx":t,"aria-label":`Go to slide ${t+1}`,className:`h-2 rounded-full transition-all motion-reduce:transition-none ${t===l?"w-5 bg-accent":"w-2 bg-white/45 hover:bg-white/70"}`},t))}),G&&a&&n("div",{className:"sf-hero-strip absolute inset-x-0 bottom-0 z-[5] border-t border-overlay-chrome/10",style:{background:ne(.55),...ot},children:n(a,{})}),_e&&Y.length>0&&n(ft,{editing:!!s,entrance:Re,children:n(Ie,{items:Y,backdrop:"dark-media"})})]})})}function ft({editing:m,entrance:a,children:i}){const y="sf-hero-ticker absolute inset-x-0 bottom-0 z-[5] border-t border-overlay-chrome/10 py-3.5",E=m?{[Be]:""}:void 0,g={background:ne(.55)};return a?n(nt,{desktop:a.desktop,phone:a.phone,editing:m,boxClass:y,boxAttrs:E,boxStyle:g,children:i}):n("div",{className:y,...E,style:g,children:i})}export{$ as HERO_SLIDER_GOTO_EVENT,lt as HERO_VIDEO_HOLD_LABEL,at as HERO_VIDEO_PLAY_LABEL,mt as default,dt as subscribeSliderGoto};
@@ -1,7 +1,13 @@
1
1
  import { type ImageAspect } from "../../format/lib/content/image-aspect.js";
2
2
  import { type ImageFit } from "../../format/lib/content/image-fit.js";
3
- import type { PictureHoverDrawn } from "../../format/lib/animation/hover.js";
3
+ import type { HoverMediaCover, PictureHoverDrawn } from "../../format/lib/animation/hover.js";
4
+ import type { HoverMediaPick } from "../../format/lib/content/hover-media.js";
4
5
  import type { PadValues } from "../lib/content/section-padding.js";
6
+ export type ImageHoverLayer = {
7
+ media: HoverMediaPick;
8
+ name: string;
9
+ cover: HoverMediaCover;
10
+ };
5
11
  interface ImageBlockProps {
6
12
  editing?: boolean;
7
13
  src: string;
@@ -12,7 +18,7 @@ interface ImageBlockProps {
12
18
  contained: boolean;
13
19
  grayscale?: boolean;
14
20
  pictureHover?: PictureHoverDrawn;
15
- nextSrc?: string;
21
+ hoverLayer?: ImageHoverLayer | null;
16
22
  darken?: number;
17
23
  darkenStyle?: string;
18
24
  href?: string;
@@ -25,5 +31,5 @@ interface ImageBlockProps {
25
31
  pad?: PadValues;
26
32
  ownSize?: boolean;
27
33
  }
28
- export default function ImageBlock({ src, alt, aspect: storedAspect, aspectPhone, contained, grayscale, pictureHover, nextSrc, darken, darkenStyle, href, fit, focal, focalPhone, focalTablet, corners, cornerSides, pad, ownSize, editing, }: ImageBlockProps): import("react").JSX.Element | null;
34
+ export default function ImageBlock({ src, alt, aspect: storedAspect, aspectPhone, contained, grayscale, pictureHover, hoverLayer, darken, darkenStyle, href, fit, focal, focalPhone, focalTablet, corners, cornerSides, pad, ownSize, editing, }: ImageBlockProps): import("react").JSX.Element | null;
29
35
  export {};
@@ -1 +1 @@
1
- import{jsx as e,Fragment as w,jsxs as O}from"react/jsx-runtime";import{PagePicture as fe}from"../lib/first-screen.js";import{SiteLink as ue}from"../lib/site-runtime.js";import de from"./BlockFrame.js";import{useCellPictureSizes as he}from"./BoxCellContext.js";import{useBoxCell as pe,useFillsCell as ge}from"./InBoxContext.js";import{useInsideSiteGutter as Se,useSectionEdge as Ce}from"./SiteGutterFrame.js";import{useSitePhotography as Ne}from"./SitePhotographyContext.js";import{media as T}from"../lib/media.js";import{CONTENT_SIZES as j,sizedImage as W}from"../../format/lib/sized-image.js";import{imageCornerStyle as ye}from"../../format/lib/content/image-corners.js";import{FILL_ROW as Fe,imageAspectClasses as we,imageFillFrom as be,imageAspectDrawn as $e,imageAspectDrawsARatio as Ae,imageFocalPointActs as _e,imageFocalPointActsIn as B,imageAspectPhoneOf as xe,imageFillRowClasses as Ie,imageWidthFollowsBox as ke}from"../../format/lib/content/image-aspect.js";import{drawsSiteGutter as ve}from"../../format/lib/content/site-gutter.js";import{imageFitClass as U,parseImageFit as Re}from"../../format/lib/content/image-fit.js";import{SECTION_FILL_CLASS as ze}from"../../format/lib/content/section-min-height.js";import{NEXT_PICTURE_CLASS as Ee,PICTURE_FRAME_CLASS as Le,PICTURE_WASH_CLASS as Pe,PICTURE_ZOOM_CLASS as Oe,PICTURE_ZOOM_VAR as Te,resolveImageTreatment as je,resolveNextPicture as We}from"../../format/lib/content/image-treatment.js";import{boxDarkenStyle as G}from"../../format/lib/content/box-background.js";import{phoneFocus as Be}from"../../format/lib/content/phone-focus.js";import{say as Ue}from"../../format/lib/editor-words.js";import{sectionEdgeAttrs as Ge}from"../lib/content/section-edge.js";import D from"./PhotoHoverSheet.js";import De from"./PictureWash.js";function Me({src:o,alt:M,aspect:Z,aspectPhone:r,contained:b,grayscale:V,pictureHover:i,nextSrc:$,darken:X,darkenStyle:A,href:q,fit:J,focal:_,focalPhone:K,focalTablet:Q,corners:Y,cornerSides:H,pad:x,ownSize:ee=!1,editing:I=!1}){const c=je(V,Ne(),i),S=pe(),se=ge(),C=Ce(),te=he(j),t=$e(Z,S?.picturesFillRow===!0),f=t===Fe,k=be(S?.fillFrom,S?.phoneRowFills===!0,r),u=f?Ie(k):null,v=xe(t,r),l=Re(J,"cover"),R=C||!ke(t,v,l)?j:te,z=ye(Y,H),le=_e(l,t,r),a=Be(B("mobile",l,t,r)?K:void 0,B("tablet",l,t,r)?Q:void 0),d={...c.style??{},..._&&le?{objectPosition:_}:{},...a.style},h=o?W(T(o)):null,s=We(i),n=s&&$?W(T($)):null,p=s?i?.zoom??null:null,oe=G(X,A),E=s&&i?.darken?G(i.darken,A):null,N=!!(s&&(n||p||E)),L=N?{...s?.style??{},...p?{[Te]:p}:{}}:{},re=s&&n?e(w,{children:e("img",{src:n.src,...n.srcSet?{srcSet:n.srcSet,sizes:R}:{},alt:"","aria-hidden":"true",loading:"lazy",decoding:"async",className:`absolute inset-0 h-full w-full bg-surface ${U(l)}${a.className?` ${a.className}`:""} ${s.className}`,...Object.keys(d).length?{style:d}:{}})}):null,y=o&&h?O(w,{children:[e(fe,{src:h.src,...h.srcSet?{srcSet:h.srcSet,sizes:R}:{},alt:M,className:`${u?`${u.img} `:""}h-full w-full ${Ae(t,r)?U(l):""}${c.className?` ${c.className}`:""}${a.className?` ${a.className}`:""}`,...Object.keys(d).length?{style:d}:{}}),re]}):null,F=y?O(w,{children:[e(D,{sheet:c.sheet}),N&&s?e(D,{sheet:s.sheet,name:Ee}):null,p?e("div",{className:`${f?"absolute inset-0":"relative h-full w-full"} ${Oe}`,children:y}):y,e(De,{wash:oe,hover:E,className:`pointer-events-none ${Pe}`})]}):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:Ue("Image — set a path")}),g=(q??"").trim(),ie=g&&o?g.startsWith("/")?e(ue,{href:g,className:"block h-full w-full",children:F}):e("a",{href:g,className:"block h-full w-full",children:F}):F,ae=Se(),m=C&&!ee?Ge(C):null,P=x?{values:x,frame:f?0:24}:void 0,ne=P!==void 0&&ve(m?!1:b,ae),me=f?se||I||ne?ze:"":"py-6",ce=o&&l==="contain"?"":"bg-surface ";return!o&&!I?null:e(de,{contained:m?!1:b,className:me,pad:P,...m?{fillWidth:m.className,style:m.style}:{},children:e("figure",{...u?{className:u.figure}:{},children:e("div",{className:`relative w-full overflow-hidden ${ce}${we(t,v,k)}${N?` ${Le}`:""}`,...z||Object.keys(L).length?{style:{...z,...L}}:{},children:ie})})})}export{Me as default};
1
+ import{jsx as e,Fragment as re,jsxs as w}from"react/jsx-runtime";import{PagePicture as ie}from"../lib/first-screen.js";import{SiteLink as ae}from"../lib/site-runtime.js";import ne from"./BlockFrame.js";import{useCellPictureSizes as me}from"./BoxCellContext.js";import{useBoxCell as ce,useFillsCell as fe}from"./InBoxContext.js";import{useInsideSiteGutter as ue,useSectionEdge as de}from"./SiteGutterFrame.js";import{useSitePhotography as pe}from"./SitePhotographyContext.js";import{media as ge}from"../lib/media.js";import{CONTENT_SIZES as O,sizedImage as he}from"../../format/lib/sized-image.js";import{imageCornerStyle as Se}from"../../format/lib/content/image-corners.js";import{FILL_ROW as Ce,imageAspectClasses as Fe,imageFillFrom as Ne,imageAspectDrawn as we,imageAspectDrawsARatio as be,imageFocalPointActs as ve,imageFocalPointActsIn as P,imageAspectPhoneOf as _e,imageFillRowClasses as Ae,imageWidthFollowsBox as Ie}from"../../format/lib/content/image-aspect.js";import{drawsSiteGutter as $e}from"../../format/lib/content/site-gutter.js";import{imageFitClass as xe,parseImageFit as ye}from"../../format/lib/content/image-fit.js";import{SECTION_FILL_CLASS as Ee}from"../../format/lib/content/section-min-height.js";import{PICTURE_MOVE_SHEET as Re,PICTURE_WASH_CLASS as ke,PICTURE_ZOOM_CLASS as Oe,PICTURE_ZOOM_VAR as Pe,resolveImageTreatment as ze,resolvePictureMove as Te}from"../../format/lib/content/image-treatment.js";import{boxDarkenStyle as z}from"../../format/lib/content/box-background.js";import{phoneFocus as je}from"../../format/lib/content/phone-focus.js";import{say as We}from"../../format/lib/editor-words.js";import{sectionEdgeAttrs as Ge}from"../lib/content/section-edge.js";import T from"./PhotoHoverSheet.js";import Le from"./PictureWash.js";import Me from"./HoverMediaLayer.js";const Ue={picture:"var(--surface)",card:"var(--card-bg)"};function Be({src:l,alt:j,aspect:W,aspectPhone:r,contained:b,grayscale:G,pictureHover:a,hoverLayer:o,darken:L,darkenStyle:v,href:M,fit:U,focal:_,focalPhone:B,focalTablet:D,corners:Z,cornerSides:V,pad:A,ownSize:H=!1,editing:I=!1}){const m=ze(G,pe(),a),g=ce(),Y=fe(),h=de(),q=me(O),t=we(W,g?.picturesFillRow===!0),c=t===Ce,$=Ne(g?.fillFrom,g?.phoneRowFills===!0,r),f=c?Ae($):null,x=_e(t,r),i=ye(U,"cover"),J=h||!Ie(t,x,i)?O:q,y=Se(Z,V),K=ve(i,t,r),S=je(P("mobile",i,t,r)?B:void 0,P("tablet",i,t,r)?D:void 0),E={...m.style??{},..._&&K?{objectPosition:_}:{},...S.style},u=l?he(ge(l)):null,s=Te(a),C=s?a?.zoom??null:null,Q=z(L,v),X=s&&a?.darken?z(a.darken,v):null,R=s?{...s.style??{},...C?{[Pe]:C}:{}}:{},d=o&&l?e(Me,{media:o.media,name:o.name,cover:o.cover,ground:Ue[o.cover]}):null,F=l&&u?e(ie,{src:u.src,...u.srcSet?{srcSet:u.srcSet,sizes:J}:{},alt:j,className:`${f?`${f.img} `:""}h-full w-full ${be(t,r)?xe(i):""}${m.className?` ${m.className}`:""}${S.className?` ${S.className}`:""}`,...Object.keys(E).length?{style:E}:{}}):null,N=F?w(re,{children:[e(T,{sheet:m.sheet}),s?e(T,{sheet:s.sheet,name:Re}):null,C?e("div",{className:`${c?"absolute inset-0":"relative h-full w-full"} ${Oe}`,children:F}):F,e(Le,{wash:Q,hover:X,className:`pointer-events-none ${ke}`})]}):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:We("Image — set a path")}),p=(M??"").trim(),ee=p&&l?p.startsWith("/")?e(ae,{href:p,className:"block h-full w-full",children:N}):e("a",{href:p,className:"block h-full w-full",children:N}):N,te=ue(),n=h&&!H?Ge(h):null,k=A?{values:A,frame:c?0:24}:void 0,se=k!==void 0&&$e(n?!1:b,te),le=c?Y||I||se?Ee:"":"py-6",oe=l&&i==="contain"?"":"bg-surface ";return!l&&!I?null:w(ne,{contained:n?!1:b,className:le,pad:k,...n?{fillWidth:n.className,style:n.style}:{},children:[e("figure",{...f?{className:f.figure}:{},children:w("div",{className:`relative w-full overflow-hidden ${oe}${Fe(t,x,$)}${s?` ${s.className}`:""}`,...y||Object.keys(R).length?{style:{...y,...R}}:{},children:[ee,d&&o?.cover==="picture"?d:null]})}),d&&o?.cover==="card"?d:null]})}export{Be as default};
@@ -20,7 +20,8 @@ interface TextProps {
20
20
  onLine?: boolean;
21
21
  partKey?: string;
22
22
  partDeclare?: boolean;
23
+ plain?: boolean;
23
24
  }
24
25
  export declare function headingLevelOfStyle(id: string): HeadingLevel;
25
- export default function Text({ text, labelId, number, align, alignTablet, alignPhone, tone, contained, hero, pad, tag, textStyle, ownWidth, partAlign, onLine, partKey, partDeclare }: TextProps): import("react").JSX.Element;
26
+ export default function Text({ text, labelId, number, align, alignTablet, alignPhone, tone, contained, hero, pad, tag, textStyle, ownWidth, partAlign, onLine, partKey, partDeclare, plain }: TextProps): import("react").JSX.Element;
26
27
  export {};
@@ -1 +1 @@
1
- import{jsx as t,jsxs as z}from"react/jsx-runtime";import S from"./BlockFrame.js";import{renderGold as h,renderHeadline as B,splitParagraphs as R}from"./goldPhrases.js";import{headingLook as A}from"./Heading.js";import{alignViewClasses as I}from"../../format/lib/content/block-align.js";import{useInBox as M}from"./InBoxContext.js";import{textTagOf as U}from"../../format/lib/content/text-tag.js";import{KICKER_NUMBER_ATTR as G,kickerLead as H}from"../lib/content/page-contents.js";import{isTextStyleId as K}from"../lib/document/part-styles.js";import{faceClassOf as C}from"../../format/lib/text-style-face.js";import{useMirroredCopy as P}from"./MirrorContext.js";import{mirroredTextClasses as k}from"../../format/lib/content/mirror-cards.js";import F from"./PartStyledKind.js";const m={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)]"},f=e=>e?` ${e}`:"";function V(e,i,n,r){const l=I("place",e,i,n,{atSectionLine:!r});return l?` ${l}`:""}const W={left:"text-left",center:"text-left mx-auto",right:"text-left ml-auto"},X=`max-w-[380px] ${m.bodySmall} leading-[1.5] opacity-80 ${m.bodyUpTo800}`,Z={default:"text-fg",dim:"text-fg-dim"};function q(e){return String(Math.min(Number(e.slice(8)),6))}function D({text:e,labelId:i,number:n,align:r,alignTablet:l,alignPhone:w,tone:g,contained:y,hero:E=!1,pad:d,tag:_,textStyle:$,ownWidth:L=!1,partAlign:T,onLine:c=!1,partKey:b,partDeclare:O=!1}){const p=s=>b?t(F,{kind:b,declare:O,children:s}):s,N=P(),j=M();if(E)return t("p",{className:X,children:h(e)});const x=n?t("span",{[G]:"",children:H(n)}):void 0,a=K($)?$:void 0,v=`${a?`${C({id:a})} `:""}${L?"":"max-w-[680px] "}whitespace-pre-line ${a==="body-5"?m.label:m.bodyLarge} leading-[1.7]${f(r?W[r]:"")}${V(r,l,w,j)}${f(g?Z[g]:"")}${f(k(N,r,T))}`,u=U(_);if(a?.startsWith("heading-")){const s=q(a),o=A(s,C({id:a}));return t(S,{contained:y,className:c?"":"py-6",pad:d?{values:d,frame:c?0:24}:void 0,children:z(u,{id:i,className:`${o.className}${f(k(N,void 0,T))}`,style:o.style,children:[x,p(B(e.trim(),!1))]})})}return t(S,{contained:y,className:c?"":"py-4",pad:d?{values:d,frame:c?0:16}:void 0,children:u==="p"?R(e).map((s,o)=>t("p",{id:o===0?i:void 0,className:v,children:p(h(s,!1,o===0?x:void 0))},o)):t(u,{id:i,className:v,children:p(h(e.trim(),!1,x))})})}export{D as default,q as headingLevelOfStyle};
1
+ import{jsx as s,jsxs as R}from"react/jsx-runtime";import C from"./BlockFrame.js";import{renderGold as g,renderHeadline as A,renderPlain as k,splitParagraphs as I}from"./goldPhrases.js";import{headingLook as M}from"./Heading.js";import{alignViewClasses as P}from"../../format/lib/content/block-align.js";import{useInBox as U}from"./InBoxContext.js";import{textTagOf as G}from"../../format/lib/content/text-tag.js";import{KICKER_NUMBER_ATTR as H,kickerLead as K}from"../lib/content/page-contents.js";import{isTextStyleId as F}from"../lib/document/part-styles.js";import{faceClassOf as w}from"../../format/lib/text-style-face.js";import{useMirroredCopy as V}from"./MirrorContext.js";import{mirroredTextClasses as E}from"../../format/lib/content/mirror-cards.js";import W from"./PartStyledKind.js";const f={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)]"},p=e=>e?` ${e}`:"";function X(e,i,l,a){const d=P("place",e,i,l,{atSectionLine:!a});return d?` ${d}`:""}const Z={left:"text-left",center:"text-left mx-auto",right:"text-left ml-auto"},q=`max-w-[380px] ${f.bodySmall} leading-[1.5] opacity-80 ${f.bodyUpTo800}`,D={default:"text-fg",dim:"text-fg-dim"};function J(e){return String(Math.min(Number(e.slice(8)),6))}function Q({text:e,labelId:i,number:l,align:a,alignTablet:d,alignPhone:_,tone:y,contained:$,hero:L=!1,pad:m,tag:O,textStyle:T,ownWidth:j=!1,partAlign:b,onLine:c=!1,partKey:N,partDeclare:z=!1,plain:x=!1}){const u=t=>N?s(W,{kind:N,declare:z,children:t}):t,v=V(),B=U();if(L)return s("p",{className:q,children:g(e)});const n=l?s("span",{[H]:"",children:K(l)}):void 0,o=F(T)?T:void 0,S=`${o?`${w({id:o})} `:""}${j?"":"max-w-[680px] "}whitespace-pre-line ${o==="body-5"?f.label:f.bodyLarge} leading-[1.7]${p(a?Z[a]:"")}${X(a,d,_,B)}${p(y?D[y]:"")}${p(E(v,a,b))}`,h=G(O);if(o?.startsWith("heading-")){const t=J(o),r=M(t,w({id:o}));return s(C,{contained:$,className:c?"":"py-6",pad:m?{values:m,frame:c?0:24}:void 0,children:R(h,{id:i,className:`${r.className}${p(E(v,void 0,b))}`,style:r.style,children:[n,u(A(e.trim(),!1,x))]})})}return s(C,{contained:$,className:c?"":"py-4",pad:m?{values:m,frame:c?0:16}:void 0,children:h==="p"?I(e).map((t,r)=>s("p",{id:r===0?i:void 0,className:S,children:u(x?k(t,r===0?n:void 0):g(t,!1,r===0?n:void 0))},r)):s(h,{id:i,className:S,children:u(x?k(e.trim(),n):g(e.trim(),!1,n))})})}export{Q as default,J as headingLevelOfStyle};
@@ -0,0 +1,6 @@
1
+ import { type ReactNode } from "react";
2
+ export declare function useThemeLightInk(): string | null;
3
+ export declare function ThemeLightInkProvider({ ink, children }: {
4
+ ink?: string | null;
5
+ children?: ReactNode;
6
+ }): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ "use client";import{jsx as n}from"react/jsx-runtime";import{createContext as o,useContext as i}from"react";const e=o(null);function s(){return i(e)}function x({ink:t,children:r}){return n(e.Provider,{value:t??null,children:r})}export{x as ThemeLightInkProvider,s as useThemeLightInk};
@@ -3,5 +3,6 @@ import { type ShopMarkupNode } from "../../format/lib/markup.js";
3
3
  export declare function renderGold(value: string, italic?: boolean, lead?: ReactNode): ReactNode;
4
4
  export declare function renderMarkupNodes(nodes: readonly ShopMarkupNode[], italic?: boolean): ReactNode;
5
5
  export declare function renderChrome(value: string): ReactNode;
6
- export declare function renderHeadline(value: string, italic?: boolean): ReactNode;
6
+ export declare function renderPlain(value: string, lead?: ReactNode): ReactNode;
7
+ export declare function renderHeadline(value: string, italic?: boolean, plain?: boolean): ReactNode;
7
8
  export declare function splitParagraphs(value: string): string[];
@@ -1,2 +1,3 @@
1
- import{jsxs as a,jsx as t}from"react/jsx-runtime";import{Fragment as h}from"react";import{linePrefix as N,storefrontLines as L}from"../../format/lib/markup.js";import{WORD_STYLE_ATTR as _,WORD_STYLE_BY_KIND as S}from"../../format/lib/word-styles.js";import{partInkCss as g}from"../../format/lib/document/part-inks.js";import f from"./PartStyledText.js";import{withRMark as d}from"./RMark.js";function E(e,n=!1,s){const r=m(n),c=L(e);if(c.length===1){const[i]=c,o=N(i),b=o?C(o,i.children):i.children;return a(f,{value:e,children:[s,u(b,r)]})}const l=[];return c.forEach((i,o)=>{if(i.bullet){l.push(t("span",{"data-sf-bullet":"",className:k,children:u(i.children,r)},o));return}if(i.number!=null){l.push(a("span",{"data-sf-number":i.number,className:T,children:[a("span",{className:R,children:[i.number,"."]}),u(i.children,r)]},o));return}o>0&&!A(c[o-1])&&l.push(t("br",{},`br${o}`)),l.push(t(h,{children:u(i.children,r)},o))}),a(f,{value:e,children:[s,l]})}const k="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['·']",T="relative block pl-[2em]",R="absolute left-0 w-[1.6em] text-right tabular-nums";function A(e){return e.bullet||e.number!=null}const B="text-accent underline underline-offset-[0.18em]";function C(e,n){const[s,...r]=n;return s?.kind==="text"?[{kind:"text",text:`${e}${s.text}`},...r]:[{kind:"text",text:e},...n]}function I(e){return g(e)||void 0}function u(e,n){const s=[];let r=!1;return e.forEach((c,l)=>{if(c.kind==="text"){s.push(t("span",{children:d(c.text)},l)),r=!0;return}r||s.push(t("span",{},`e${l}`)),s.push(x(c,l,n)),r=!1}),r||s.push(t("span",{},"end")),s}function p(e,n){return e.length===1&&e[0].kind==="text"?d(e[0].text):e.map((s,r)=>s.kind==="text"?t(h,{children:d(s.text)},r):x(s,r,n))}function P(e,n=!1){return u(e,m(n))}function m(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function U(e){return t(f,{value:e,children:t("span",{children:e})})}function x(e,n,s){if(e.kind==="link")return t("a",{href:e.href,className:B,children:p(e.children,s)},n);const r=p(e.children,s),c=S[e.kind];if(c)return t("span",{[_]:c,children:r},n);switch(e.kind){case"underline":return t("u",{children:r},n);case"sup":return t("sup",{children:r},n);case"sub":return t("sub",{children:r},n);case"color":{const l=I(e.color);return l?t("span",{style:{color:l},children:r},n):t("span",{children:r},n)}case"accent":case"highlight":return t("em",{className:s,children:r},n);case"bold":return t("strong",{className:"font-semibold",children:r},n);case"italic":return t("em",{className:"italic",children:r},n);case"strike":return t("s",{className:"line-through",children:r},n);default:return t("span",{children:r},n)}}function Y(e,n=!0){const s=e.split(`
2
- `);return t(f,{value:e,children:s.map((r,c)=>a("span",{children:[E(r,n),c<s.length-1?t("br",{}):null]},c))})}function v(e){return e.split(/\n\s*\n/).map(n=>n.trim()).filter(Boolean)}export{U as renderChrome,E as renderGold,Y as renderHeadline,P as renderMarkupNodes,v as splitParagraphs};
1
+ import{jsxs as a,jsx as s}from"react/jsx-runtime";import{Fragment as d}from"react";import{linePrefix as L,storefrontLines as _}from"../../format/lib/markup.js";import{WORD_STYLE_ATTR as S,WORD_STYLE_BY_KIND as g}from"../../format/lib/word-styles.js";import{partInkCss as E}from"../../format/lib/document/part-inks.js";import f from"./PartStyledText.js";import{withRMark as h}from"./RMark.js";function k(e,r=!1,t){const n=m(r),c=_(e);if(c.length===1){const[i]=c,o=L(i),N=o?I(o,i.children):i.children;return a(f,{value:e,children:[t,u(N,n)]})}const l=[];return c.forEach((i,o)=>{if(i.bullet){l.push(s("span",{"data-sf-bullet":"",className:T,children:u(i.children,n)},o));return}if(i.number!=null){l.push(a("span",{"data-sf-number":i.number,className:R,children:[a("span",{className:A,children:[i.number,"."]}),u(i.children,n)]},o));return}o>0&&!B(c[o-1])&&l.push(s("br",{},`br${o}`)),l.push(s(d,{children:u(i.children,n)},o))}),a(f,{value:e,children:[t,l]})}const T="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['·']",R="relative block pl-[2em]",A="absolute left-0 w-[1.6em] text-right tabular-nums";function B(e){return e.bullet||e.number!=null}const C="text-accent underline underline-offset-[0.18em]";function I(e,r){const[t,...n]=r;return t?.kind==="text"?[{kind:"text",text:`${e}${t.text}`},...n]:[{kind:"text",text:e},...r]}function w(e){return E(e)||void 0}function u(e,r){const t=[];let n=!1;return e.forEach((c,l)=>{if(c.kind==="text"){t.push(s("span",{children:h(c.text)},l)),n=!0;return}n||t.push(s("span",{},`e${l}`)),t.push(b(c,l,r)),n=!1}),n||t.push(s("span",{},"end")),t}function p(e,r){return e.length===1&&e[0].kind==="text"?h(e[0].text):e.map((t,n)=>t.kind==="text"?s(d,{children:h(t.text)},n):b(t,n,r))}function U(e,r=!1){return u(e,m(r))}function m(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function Y(e){return x(e)}function x(e,r){const t=e.split(`
2
+ `);return a(f,{value:e,children:[r,t.map((n,c)=>a(d,{children:[c>0?s("br",{}):null,s("span",{children:n})]},c))]})}function b(e,r,t){if(e.kind==="link")return s("a",{href:e.href,className:C,children:p(e.children,t)},r);const n=p(e.children,t),c=g[e.kind];if(c)return s("span",{[S]:c,children:n},r);switch(e.kind){case"underline":return s("u",{children:n},r);case"sup":return s("sup",{children:n},r);case"sub":return s("sub",{children:n},r);case"color":{const l=w(e.color);return l?s("span",{style:{color:l},children:n},r):s("span",{children:n},r)}case"accent":case"highlight":return s("em",{className:t,children:n},r);case"bold":return s("strong",{className:"font-semibold",children:n},r);case"italic":return s("em",{className:"italic",children:n},r);case"strike":return s("s",{className:"line-through",children:n},r);default:return s("span",{children:n},r)}}function v(e,r=!0,t=!1){const n=e.split(`
3
+ `);return s(f,{value:e,children:n.map((c,l)=>a("span",{children:[t?x(c):k(c,r),l<n.length-1?s("br",{}):null]},l))})}function O(e){return e.split(/\n\s*\n/).map(r=>r.trim()).filter(Boolean)}export{Y as renderChrome,k as renderGold,v as renderHeadline,U as renderMarkupNodes,x as renderPlain,O as splitParagraphs};
@@ -1 +1 @@
1
- import{jsx as l}from"react/jsx-runtime";import{phoneKey as h}from"efficient-easel/draw";import{CardRowDrawn as p}from"../../../../../components/CardRowContext.js";import w from"../../../../../components/ImageBlock.js";import{recordPictureAlt as S}from"../../../../../../format/lib/content/record-row.js";import{namedRowField as x,rowFieldSpec as B,rowFieldText as I,rowNextPicture as b}from"../../../../../../format/lib/content/card-template.js";import{blockSizeOf as F,blockSizeValuesOf as O}from"../../../../content/block-size.js";import{padValuesOf as P}from"../../../../content/section-padding.js";import{pictureHoverOf as v}from"../../../../../../format/lib/animation/hover.js";import{viewFocusValues as z}from"../../../../../../format/lib/content/picture-focus-rows.js";import{ImageBlockMeta as R}from"../../../../../../format/lib/document/blocks/general/ImageBlock/meta.js";const _={...R,render:e=>{const t=x(e);return t?l(p,{type:"ImageBlock",props:e,children:(o,r,a)=>{const c=B(r,t),i=r?c?.alt:S(t);return m(e,o.src,(i&&I(a,i))??e.alt,b(r?.item,c?.next,typeof o.src=="string"?o.src:""))}}):m(e,e.src,e.alt)}};function m(e,t,o,r=""){const{aspect:a,contained:c,grayscale:i,darken:f,darkenStyle:d,href:s,fit:u,corners:k,cornerSides:g,editor:y}=e,n=z(e,"focal");return l(w,{src:t,alt:o,aspect:a,aspectPhone:e[h("aspect")],contained:c,grayscale:i,darken:f,darkenStyle:d,pictureHover:v(e,"ImageBlock"),...r?{nextSrc:r}:{},href:s,fit:u,focal:n.desktop,focalPhone:n.phone,focalTablet:n.tablet,corners:k,cornerSides:g,pad:P(e),ownSize:F(O(e))!==null,editing:y?.isEditing===!0})}export{_ as ImageBlockRender};
1
+ import{jsx as u}from"react/jsx-runtime";import{phoneKey as y}from"efficient-easel/draw";import{CardRowDrawn as p}from"../../../../../components/CardRowContext.js";import v from"../../../../../components/ImageBlock.js";import{recordPictureAlt as I}from"../../../../../../format/lib/content/record-row.js";import{namedRowField as x,rowFieldSpec as B,rowFieldText as k}from"../../../../../../format/lib/content/card-template.js";import{cardRowHoverMedia as b}from"../../../../../../format/lib/content/hover-media.js";import{blockSizeOf as F,blockSizeValuesOf as O}from"../../../../content/block-size.js";import{padValuesOf as R}from"../../../../content/section-padding.js";import{pictureHoverOf as z}from"../../../../../../format/lib/animation/hover.js";import{viewFocusValues as H}from"../../../../../../format/lib/content/picture-focus-rows.js";import{ImageBlockMeta as P}from"../../../../../../format/lib/document/blocks/general/ImageBlock/meta.js";const J={...P,render:e=>{const r=z(e,"ImageBlock"),o=x(e);return!o&&r.kind!=="nextImage"?g(e,e.src,e.alt,r):u(p,{type:"ImageBlock",props:e,children:(l,t,n)=>{const m=o?B(t,o):null,a=o?t?m?.alt:I(o):null,d=o?l.src:e.src,c=(a&&k(n,a))??e.alt,i=r.media?b(t,r.media):null,f=k(n,"name")??(typeof c=="string"?c:"");return g(e,d,c,r,i&&r.media?{media:i,name:f,cover:r.media.cover}:null)}})}};function g(e,r,o,l,t=null){const{aspect:n,contained:m,grayscale:a,darken:d,darkenStyle:c,href:i,fit:f,corners:w,cornerSides:S,editor:h}=e,s=H(e,"focal");return u(v,{src:r,alt:o,aspect:n,aspectPhone:e[y("aspect")],contained:m,grayscale:a,darken:d,darkenStyle:c,pictureHover:l,...t?{hoverLayer:t}:{},href:i,fit:f,focal:s.desktop,focalPhone:s.phone,focalTablet:s.tablet,corners:w,cornerSides:S,pad:R(e),ownSize:F(O(e))!==null,editing:h?.isEditing===!0})}export{J as ImageBlockRender};
@@ -1 +1 @@
1
- import{Fragment as c,jsx as r}from"react/jsx-runtime";import{CardRowDrawn as T}from"../../../../../components/CardRowContext.js";import{CountDrawn as b}from"../../../../../components/CountRowsContext.js";import{KickerNumberDrawn as N}from"../../../../../components/PageContentsContext.js";import{KICKER_NUMBER_PROP as k}from"../../../../content/page-contents.js";import{WALL_LABEL_ID_PROP as D}from"../../../wall-labels.js";import{namedRowField as B,rowPartByKey as F}from"../../../../../../format/lib/content/card-template.js";import{TOP_LINE_ATTRIBUTE as W,TOP_LINE_CLASS as j,cardPlaceOf as v,framesItsCards as H}from"../../../../../../format/lib/content/card-place.js";import{blockSetsItsWidth as M,blockSizeValuesOf as U}from"../../../../content/block-size.js";import{linkedCount as w}from"../../../../../../format/lib/content/count-numbers.js";import{padValuesOf as V}from"../../../../content/section-padding.js";import z from"../../../../../components/Text.js";import{hidableText as d,readHidable as q}from"efficient-easel/draw";import{PH as P}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phPrev as G}from"../../scaffold.js";import{readPartStyle as J}from"../../../part-styles.js";import{TextMeta as Q}from"../../../../../../format/lib/document/blocks/general/Text/meta.js";const gt={...Q,render:t=>{const{text:a,align:_,alignTablet:p,alignPhone:I,tone:K,tag:L,contained:E,editor:m}=t;if(q(a).hidden)return r(c,{});const{textStyle:f,align:R}=J(t,"text"),C=f?.startsWith("heading-")?P.heading:P.body,O=F("Text",t,"text")?{partKey:"text",partDeclare:!!m?.isEditing}:{},s=t[D],S=typeof s=="string"?s:void 0,o=(e,n,i)=>r(z,{...O,labelId:S,text:G(e,C,m)??"",number:n,align:_,alignTablet:p,alignPhone:I,tone:K,tag:L,textStyle:f,partAlign:R,ownWidth:M(U(t)),contained:E,pad:V(t),onLine:i}),u=e=>!e?.trim()&&!m?.isEditing,g=B(t),h=w(t);if(h)return r(b,{countKey:h,children:e=>o(e??d(a))});const x=()=>{if(!g){const e=t[k];return typeof e=="string"?o(d(a),e):r(N,{id:t.id,children:n=>o(d(a),n)})}return r(T,{type:"Text",props:t,children:(e,n,i)=>{const l=d(e.text),y=w(t,i);return y?r(b,{countKey:y,children:A=>o(A??l)}):i&&u(l)?r(c,{}):o(l)}})};return v(t)!=="top-line"?x():r(T,{type:"Text",props:t,children:(e,n)=>{if(!n||!H(n.ownerType))return x();const i=d(g?e.text:a);return u(i)?r(c,{}):r("div",{className:j,[W]:"",children:o(i,void 0,!0)})}})}};export{gt as TextRender};
1
+ import{Fragment as c,jsx as r}from"react/jsx-runtime";import{CardRowDrawn as P}from"../../../../../components/CardRowContext.js";import{CountDrawn as p}from"../../../../../components/CountRowsContext.js";import{KickerNumberDrawn as k}from"../../../../../components/PageContentsContext.js";import{KICKER_NUMBER_PROP as D}from"../../../../content/page-contents.js";import{WALL_LABEL_ID_PROP as W}from"../../../wall-labels.js";import{namedRowField as B,rowFieldWordsArePlain as j,rowPartByKey as v}from"../../../../../../format/lib/content/card-template.js";import{TOP_LINE_ATTRIBUTE as H,TOP_LINE_CLASS as M,cardPlaceOf as U,framesItsCards as V}from"../../../../../../format/lib/content/card-place.js";import{blockSetsItsWidth as z,blockSizeValuesOf as q}from"../../../../content/block-size.js";import{linkedCount as w}from"../../../../../../format/lib/content/count-numbers.js";import{padValuesOf as G}from"../../../../content/section-padding.js";import J from"../../../../../components/Text.js";import{hidableText as l,readHidable as Q}from"efficient-easel/draw";import{PH as _}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phPrev as X}from"../../scaffold.js";import{readPartStyle as Y}from"../../../part-styles.js";import{TextMeta as Z}from"../../../../../../format/lib/document/blocks/general/Text/meta.js";const yt={...Z,render:t=>{const{text:a,align:I,alignTablet:K,alignPhone:L,tone:E,tag:R,contained:A,editor:f}=t;if(Q(a).hidden)return r(c,{});const{textStyle:s,align:C}=Y(t,"text"),O=s?.startsWith("heading-")?_.heading:_.body,S=v("Text",t,"text")?{partKey:"text",partDeclare:!!f?.isEditing}:{},u=t[W],F=typeof u=="string"?u:void 0,d=(e,n,o,i)=>r(J,{...S,plain:i,labelId:F,text:X(e,O,f)??"",number:n,align:I,alignTablet:K,alignPhone:L,tone:E,tag:R,textStyle:s,partAlign:C,ownWidth:z(q(t)),contained:A,pad:G(t),onLine:o}),g=e=>!e?.trim()&&!f?.isEditing,m=B(t),h=(e,n)=>!!m&&!!n&&j(e,m),x=w(t);if(x)return r(p,{countKey:x,children:e=>d(e??l(a))});const y=()=>{if(!m){const e=t[D];return typeof e=="string"?d(l(a),e):r(k,{id:t.id,children:n=>d(l(a),n)})}return r(P,{type:"Text",props:t,children:(e,n,o)=>{const i=l(e.text),T=w(t,o),b=h(n,o);return T?r(p,{countKey:T,children:N=>d(N??i,void 0,void 0,b)}):o&&g(i)?r(c,{}):d(i,void 0,void 0,b)}})};return U(t)!=="top-line"?y():r(P,{type:"Text",props:t,children:(e,n,o)=>{if(!n||!V(n.ownerType))return y();const i=l(m?e.text:a);return g(i)?r(c,{}):r("div",{className:M,[H]:"",children:d(i,void 0,!0,h(n,o))})}})}};export{yt as TextRender};
@@ -1 +1 @@
1
- import{jsx as a}from"react/jsx-runtime";import{CellWrap as E}from"../../../components/InBoxContext.js";import{SectionRootChoice as T}from"../../../components/SiteGutterFrame.js";import{SITE_WIDTH_CAP as h,centredCap as _}from"../../../../format/lib/content/page-width.js";import{ownNodeWidth as C}from"../../../../format/lib/content/site-gutter.js";import{drawsCopiesInTheBox as L}from"../../../../format/lib/content/copies-in-box.js";import{SECTION_THEME_EXCLUDED as N,SECTION_THEME_NESTED_READING as m,nestedAccentValue as d,sectionThemeWrap as u}from"../../../../format/lib/content/section-surface.js";const W={name:"sectionTheme",applies:(e,t,s)=>t.isSection(e)&&!N.has(e)&&!!s&&typeof s.render=="function",panel(e,t,s){const{sectionThemeFields:o,SECTION_THEME_FOLLOW_LABEL:n}=s,i=m.has(t);e.fields={...e.fields,...i?o(d,n):o()}},draw(e,t){const s=m.has(t),o=e.render;e.render=n=>{const i=u(s?{...n,sectionAccent:d(n.sectionAccent)}:n),c=o(n);if(!i)return c;const l=f=>a(E,{className:i.className,style:f,children:c}),r=i.style;return L(t,n)?a("div",{className:i.className,style:{...r,display:"contents"},children:c}):C(t,n).background!=="content"?l(r):a(T,{own:()=>l({...r,..._(h)}),followed:()=>l(r)})}}},x={name:"slideTheme",applies:e=>e==="HeroSlide",panel(e,t,s){const{sectionThemeFields:o,BLOCK_THEME_FOLLOW_LABEL:n}=s;e?.fields&&(e.fields={...e.fields,...o(d,n)})}};export{W as sectionTheme,x as slideTheme};
1
+ import{jsx as a}from"react/jsx-runtime";import{CellWrap as E}from"../../../components/InBoxContext.js";import{SectionRootChoice as T}from"../../../components/SiteGutterFrame.js";import{SITE_WIDTH_CAP as _,centredCap as h}from"../../../../format/lib/content/page-width.js";import{sectionGroundAnswer as C}from"../../../../format/lib/content/site-gutter.js";import{drawsCopiesInTheBox as L}from"../../../../format/lib/content/copies-in-box.js";import{SECTION_THEME_EXCLUDED as N,SECTION_THEME_NESTED_READING as m,nestedAccentValue as d,sectionThemeWrap as u}from"../../../../format/lib/content/section-surface.js";const x={name:"sectionTheme",applies:(e,t,s)=>t.isSection(e)&&!N.has(e)&&!!s&&typeof s.render=="function",panel(e,t,s){const{sectionThemeFields:o,SECTION_THEME_FOLLOW_LABEL:n}=s,i=m.has(t);e.fields={...e.fields,...i?o(d,n):o()}},draw(e,t){const s=m.has(t),o=e.render;e.render=n=>{const i=u(s?{...n,sectionAccent:d(n.sectionAccent)}:n),c=o(n);if(!i)return c;const l=f=>a(E,{className:i.className,style:f,children:c}),r=i.style;return L(t,n)?a("div",{className:i.className,style:{...r,display:"contents"},children:c}):C(t,n)!=="content"?l(r):a(T,{own:()=>l({...r,...h(_)}),followed:()=>l(r)})}}},B={name:"slideTheme",applies:e=>e==="HeroSlide",panel(e,t,s){const{sectionThemeFields:o,BLOCK_THEME_FOLLOW_LABEL:n}=s;e?.fields&&(e.fields={...e.fields,...o(d,n)})}};export{x as sectionTheme,B as slideTheme};
@@ -1 +1 @@
1
- import{jsx as l}from"react/jsx-runtime";import{HideTaker as u}from"../../../components/ViewHideRoot.js";import{INTRO_EDGE_CLASS as K}from"../../../../format/lib/sections/intro-bleed-layout.js";import{resolveContainerDirection as j}from"../../../../format/lib/content/container-direction.js";import{HERO_BACKGROUND_VAR as X,HERO_CHROME_CAP_VAR as q,HERO_CHROME_INSET_VAR as z,FULL_SECTION_WIDTH as J,SITE_WIDTH_CAP as _,centredCap as B,heroBackgroundTokens as Q}from"../../../../format/lib/content/page-width.js";import{SECTION_WIDTH_FAMILY as v,SECTION_WIDTH_KEYS as G,hasOwnSectionWidth as Z,hasWidthFamily as tt,resolveWidth as D,siteWidthsOf as nt}from"../../../../format/lib/content/section-width.js";import{boxCardProps as et}from"../../../../format/lib/content/box-background.js";import{cardCopyPlace as ot}from"../../../../format/lib/content/card-template.js";import{BOX_GUTTER_KEY as it,boxGutterOf as ct,boxPlaceOf as rt,boxRunsEdgeToEdge as lt,isFrameContainer as T,ownNodeWidth as dt,siteDrawsGutter as ut}from"../../../../format/lib/content/site-gutter.js";import{getEditorSiteContentWidth as st}from"../../../../format/lib/document/editor-site-widths.js";import{GroundStopsAt as F,NestedBoxChoice as at,SectionGroupChoice as ft,SectionGroupWidthsProvider as ht,SectionRootChoice as _t,SplitBandAndColumn as H}from"../../../components/SiteGutterFrame.js";import{FRAME as L}from"../../../components/BlockFrame.js";import{sectionFillPassClass as M}from"../../../../format/lib/content/section-min-height.js";import{parentCapsWidth as Nt}from"../../../../format/lib/sections/section-head-placement.js";import{addShowWhenFacts as E,withRowsShownWhen as O}from"../../../../format/lib/document/show-when-attach.js";import{findParentNode as wt,heldByANode as Ct,isNestedNode as Tt,NOT_HELD_BY_A_NODE as P}from"../../../../format/lib/document/passes/document-position.js";const N="--sf-sw-site",Et="--sf-sw-content",Ot="--sf-bg-cap",St="contents [--sf-site-width:var(--sf-sw-content)] max-view-wide:[--sf-site-width:var(--sf-sw-site)]",R=({own:t,content:n,siteContent:e})=>t===!0&&n==="full"&&e!=="full",k="contents view-wide:[--sf-site-width:100vw]",A=({held:t},n,e)=>t?e:l(u,{className:n,children:e}),mt=`contents view-wide:[--sf-site-width:100vw] ${K} view-wide:[--sf-site-gutter:var(--intro-edge)]`,W=(t,n)=>n==="content"?`min(${t}px,var(${N}))`:`${t}px`;function S({content:t,contentMax:n},e){return t==="full"?e!=="content"?J:null:n===null?null:W(n,e)}function m(t,n){return n===null?t:l(u,{className:"contents",style:{[N]:_},children:l(u,{className:St,style:{[Et]:n},children:t})})}const pt="--sf-content-cap",xt="contents max-view-wide:[--sf-content-cap:none]";function Rt({content:t,contentMax:n},e){return t==="full"?null:n!==null?W(n,e):e==="content"?null:`var(${N})`}function At(t,n){return n===null?t:l(u,{className:"contents",style:{[N]:_},children:l(u,{className:xt,style:{[pt]:n},children:t})})}const y=`var(${N},${_})`,f=(t,n,e="")=>t==="content"?l(u,{className:e||void 0,style:B(_),children:l(F,{ground:y,children:n})}):n;function U(t,n,e,o,i){if(R(e))return f(o,A(e,k,l(H,{children:t({...n,contained:!0})})),i);if(e.content==="full")return f(o,t({...n,contained:!1}),i);const c=S(e,o);return o==="content"&&c===null&&!e.own?t({...n,contained:!0}):f(o,m(l(H,{children:t({...n,contained:!0})}),c),i)}function V(t,n,e,o){if(e==="hero"){const r=m(t(n),S(o,o.band));return o.band==="full"?l(u,{style:{[X]:"none",[z]:"initial",[q]:"initial"},children:r}):o.band==="content"?l(u,{style:Q(!0),children:r}):r}const i=o.band??"full",c=M(n);if(e==="rawMarkup"){if(o.content==="full")return f(i,t(n),c);const r=o.contentMax===null?_:W(o.contentMax,i);return l(u,{className:"contents",style:{[N]:_},children:f(i,l(u,{className:c||void 0,style:B(r),children:t(n)}),c)})}if(e==="scrollOver"){const r=o.content==="full",d=R(o)?A(o,mt,t({...n,fullWidth:!1})):m(t({...n,fullWidth:r}),r?null:S(o,i));return i==="content"?l(u,{className:"contents",style:{[Ot]:_},children:d}):d}switch(e){case"both":return f(i,At(t(n),Rt(o,i)),c);case"contained":return U(t,n,o,i,c);case"contentColumn":case"contentFull":case"productGrid":{const r=R(o),d=o.content==="full"&&!r?"full":"page",s=r?A(o,k,t({...n,widthMode:d})):m(t({...n,widthMode:d}),o.content==="full"?null:S(o,i));return e==="productGrid"&&!o.own?i==="content"?l(u,{className:c?`${L} ${c}`:L,children:s}):s:f(i,s,c)}default:return f(i,m(t(n),S(o,i)),c)}}function Wt(t,n){const e=v[n],o=t.render;t.render=i=>{const c=nt(i),r={band:c.background,content:c.content??"content",contentMax:null},d=()=>e==="rawMarkup"?o(i):l(ft,{draw:a=>a?.background==="content"?l(F,{ground:y,children:s(a)}):s(a)}),s=a=>{const C=a?{...r,band:a.background==="content"?r.band:a.background??r.band,content:a.content??r.content,own:a.background==="full"||a.content!==null,held:!0,siteContent:r.content}:r,x=V(o,i,e,C);if(!T(n))return x;const b=ct(i),g=b===void 0?C.content:b?"content":"full";return g===C.content?x:l(at,{atTop:x,nested:U(o,i,{...C,content:g,own:!1},C.band??"full",M(i))})},h=dt(n,i);if(!Z(h))return d();const w=e==="rawMarkup",I=h.background??(w?"full":c.background),Y=h.content??(w?"full":r.content),p={band:I,content:I==="content"?"content":Y,contentMax:h.contentMax,own:!w,siteContent:r.content};return l(_t,{own:()=>l(ht,{value:{background:p.band,content:p.content},children:V(o,i,e,p)}),followed:d})}}const It={all:[P,{not:{context:"runsEdgeToEdge",is:!0}}]},Qt={name:"sectionWidth",applies:(t,n,e)=>tt(t)&&!!e&&typeof e.render=="function",panel(t,n,e){const o=e.sectionOwnWidthFields({drawsFullOnItsOwn:v[n]==="rawMarkup"}),i=T(n)?e.boxGutterFields():{},c={...t.fields,...i,...o},r=T(n)?$(n,t,c,[it]):c;E(t,{heldByANode:Ct}),T(n)&&E(t,{runsEdgeToEdge:(d,s)=>lt(et(d.props??{},ot(s.appState,d.props?.id)?.inCopy!==!1))}),t.fields=O(r,[G.background,G.content],T(n)?It:P)},draw(t,n){Wt(t,n)}};function bt(t,n){if(!t||!("widthMode"in t))return t;const e={...t},o=e.widthMode;return o&&(e.widthMode={...o,currentValue:n.mode,inherited:n.inherited}),e}const gt=new Set(["Heading","Text","ImageBlock","ButtonBlock"]),Zt={name:"containedWidth",applies:(t,n,e)=>gt.has(t)&&!!e&&typeof e.render=="function",panel(t,n,e){const o=e.widthField;t.fields=$(n,t,{...t.fields,...o("page")});const i=t.resolveFields;t.resolveFields=(c,r)=>{const d=i?i(c,r):r.fields,s=D(c?.props??{},"page"),h=w=>bt(w,s);return d&&typeof d.then=="function"?d.then(h):h(d)}},draw(t){const n=t.render;t.render=e=>{const{mode:o}=D(e,"page");return n({...e,contained:o!=="full"})}}},Bt={not:{context:"inHeroGroupRow",is:!0}},tn={name:"buttonAlignInRow",applies:t=>t==="ButtonBlock",panel(t){const n=t;n.fields=O(n.fields??{},["align"],Bt),E(n,{inHeroGroupRow:(e,o)=>{const i=wt(o.appState,e.props?.id);return!!i&&i.type==="HeroGroup"&&j("HeroGroup",i.props?.direction)==="row"}})}};function vt(t){return Object.values(t).some(n=>!!n&&typeof n=="object"&&n.type==="slot")}const Gt={any:[]},Dt={all:[{not:{context:"outsideBox",is:!0}},{not:{context:"insideSiteGutter",is:!0}}]},Ft={not:{context:"widthCappedByParent",is:!0}};function $(t,n,e,o=["widthMode"]){if(t==="ButtonBlock")return O(e,["_gWidth",...o],Gt);if(vt(e)){const i=(c,r)=>rt(r.appState?.data?.content,c.props?.id,ut(st()));return E(n,{outsideBox:(c,r)=>i(c,r)?.inBox!==!0,insideSiteGutter:(c,r)=>i(c,r)?.insideGutter}),O(e,o,Dt)}return E(n,{widthCappedByParent:(i,c)=>"parent"in c?Nt(c.parent):Tt({props:i.props??{}},c)}),O(e,o,Ft)}export{Ot as SECTION_BACKGROUND_VAR,xt as SECTION_CONTENT_CAP_CLASS,pt as SECTION_CONTENT_CAP_VAR,St as SECTION_CONTENT_CLASS,Et as SECTION_CONTENT_VAR,N as SITE_CONTENT_VAR,tn as buttonAlignInRow,Zt as containedWidth,Qt as sectionWidth,bt as widthModeFields};
1
+ import{jsx as l}from"react/jsx-runtime";import{HideTaker as u}from"../../../components/ViewHideRoot.js";import{INTRO_EDGE_CLASS as K}from"../../../../format/lib/sections/intro-bleed-layout.js";import{resolveContainerDirection as j}from"../../../../format/lib/content/container-direction.js";import{HERO_BACKGROUND_VAR as X,HERO_CHROME_CAP_VAR as q,HERO_CHROME_INSET_VAR as z,FULL_SECTION_WIDTH as J,SITE_WIDTH_CAP as h,centredCap as g,heroBackgroundTokens as Q}from"../../../../format/lib/content/page-width.js";import{SECTION_WIDTH_FAMILY as G,SECTION_WIDTH_KEYS as v,hasOwnSectionWidth as Z,hasWidthFamily as tt,resolveWidth as D,siteWidthsOf as nt}from"../../../../format/lib/content/section-width.js";import{boxCardProps as et}from"../../../../format/lib/content/box-background.js";import{cardCopyPlace as ot}from"../../../../format/lib/content/card-template.js";import{BOX_GUTTER_KEY as it,boxGutterOf as ct,boxPlaceOf as rt,boxRunsEdgeToEdge as lt,isFrameContainer as C,ownNodeWidth as dt,sectionGroundAnswer as ut,siteDrawsGutter as st}from"../../../../format/lib/content/site-gutter.js";import{getEditorSiteContentWidth as at}from"../../../../format/lib/document/editor-site-widths.js";import{GroundStopsAt as F,NestedBoxChoice as ft,SectionGroupChoice as ht,SectionGroupWidthsProvider as _t,SectionRootChoice as Nt,SplitBandAndColumn as H}from"../../../components/SiteGutterFrame.js";import{FRAME as L}from"../../../components/BlockFrame.js";import{sectionFillPassClass as M}from"../../../../format/lib/content/section-min-height.js";import{parentCapsWidth as wt}from"../../../../format/lib/sections/section-head-placement.js";import{addShowWhenFacts as T,withRowsShownWhen as E}from"../../../../format/lib/document/show-when-attach.js";import{findParentNode as Ct,heldByANode as Tt,isNestedNode as Et,NOT_HELD_BY_A_NODE as P}from"../../../../format/lib/document/passes/document-position.js";const N="--sf-sw-site",Ot="--sf-sw-content",St="--sf-bg-cap",mt="contents [--sf-site-width:var(--sf-sw-content)] max-view-wide:[--sf-site-width:var(--sf-sw-site)]",R=({own:t,content:n,siteContent:e})=>t===!0&&n==="full"&&e!=="full",k="contents view-wide:[--sf-site-width:100vw]",A=({held:t},n,e)=>t?e:l(u,{className:n,children:e}),pt=`contents view-wide:[--sf-site-width:100vw] ${K} view-wide:[--sf-site-gutter:var(--intro-edge)]`,W=(t,n)=>n==="content"?`min(${t}px,var(${N}))`:`${t}px`;function O({content:t,contentMax:n},e){return t==="full"?e!=="content"?J:null:n===null?null:W(n,e)}function S(t,n){return n===null?t:l(u,{className:"contents",style:{[N]:h},children:l(u,{className:mt,style:{[Ot]:n},children:t})})}const xt="--sf-content-cap",Rt="contents max-view-wide:[--sf-content-cap:none]";function At({content:t,contentMax:n},e){return t==="full"?null:n!==null?W(n,e):e==="content"?null:`var(${N})`}function Wt(t,n){return n===null?t:l(u,{className:"contents",style:{[N]:h},children:l(u,{className:Rt,style:{[xt]:n},children:t})})}const y=`var(${N},${h})`,f=(t,n,e="")=>t==="content"?l(u,{className:e||void 0,style:g(h),children:l(F,{ground:y,children:n})}):n;function U(t,n,e,o,i){if(R(e))return f(o,A(e,k,l(H,{children:t({...n,contained:!0})})),i);if(e.content==="full")return f(o,t({...n,contained:!1}),i);const c=O(e,o);return o==="content"&&c===null&&!e.own?t({...n,contained:!0}):f(o,S(l(H,{children:t({...n,contained:!0})}),c),i)}function V(t,n,e,o){if(e==="hero"){const r=S(t(n),O(o,o.band));return o.band==="full"?l(u,{style:{[X]:"none",[z]:"initial",[q]:"initial"},children:r}):o.band==="content"?l(u,{style:Q(!0),children:r}):r}const i=o.band??"full",c=M(n);if(e==="rawMarkup"){if(o.content==="full")return f(i,t(n),c);const r=o.contentMax===null?h:W(o.contentMax,i);return l(u,{className:"contents",style:{[N]:h},children:f(i,l(u,{className:c||void 0,style:g(r),children:t(n)}),c)})}if(e==="scrollOver"){const r=o.content==="full",d=R(o)?A(o,pt,t({...n,fullWidth:!1})):S(t({...n,fullWidth:r}),r?null:O(o,i));return i==="content"?l(u,{className:"contents",style:{[St]:h},children:d}):d}switch(e){case"both":return f(i,Wt(t(n),At(o,i)),c);case"contained":return U(t,n,o,i,c);case"contentColumn":case"contentFull":case"productGrid":{const r=R(o),d=o.content==="full"&&!r?"full":"page",s=r?A(o,k,t({...n,widthMode:d})):S(t({...n,widthMode:d}),o.content==="full"?null:O(o,i));return e==="productGrid"&&!o.own?i==="content"?l(u,{className:c?`${L} ${c}`:L,children:s}):s:f(i,s,c)}default:return f(i,S(t(n),O(o,i)),c)}}function It(t,n){const e=G[n],o=t.render;t.render=i=>{const c=nt(i),r={band:c.background,content:c.content??"content",contentMax:null},d=()=>e==="rawMarkup"?o(i):l(ht,{draw:a=>a?.background==="content"?l(F,{ground:y,children:s(a)}):s(a)}),s=a=>{const w=a?{...r,band:a.background==="content"?r.band:a.background??r.band,content:a.content??r.content,own:a.background==="full"||a.content!==null,held:!0,siteContent:r.content}:r,x=V(o,i,e,w);if(!C(n))return x;const b=ct(i),B=b===void 0?w.content:b?"content":"full";return B===w.content?x:l(ft,{atTop:x,nested:U(o,i,{...w,content:B,own:!1},w.band??"full",M(i))})},_=dt(n,i);if(!Z(_))return d();const m=e==="rawMarkup",I=ut(n,i),Y=_.content??(m?"full":r.content),p={band:I,content:I==="content"?"content":Y,contentMax:_.contentMax,own:!m,siteContent:r.content};return l(Nt,{own:()=>l(_t,{value:{background:p.band,content:p.content},children:V(o,i,e,p)}),followed:d})}}const bt={all:[P,{not:{context:"runsEdgeToEdge",is:!0}}]},Zt={name:"sectionWidth",applies:(t,n,e)=>tt(t)&&!!e&&typeof e.render=="function",panel(t,n,e){const o=e.sectionOwnWidthFields({drawsFullOnItsOwn:G[n]==="rawMarkup"}),i=C(n)?e.boxGutterFields():{},c={...t.fields,...i,...o},r=C(n)?$(n,t,c,[it]):c;T(t,{heldByANode:Tt}),C(n)&&T(t,{runsEdgeToEdge:(d,s)=>lt(et(d.props??{},ot(s.appState,d.props?.id)?.inCopy!==!1))}),t.fields=E(r,[v.background,v.content],C(n)?bt:P)},draw(t,n){It(t,n)}};function Bt(t,n){if(!t||!("widthMode"in t))return t;const e={...t},o=e.widthMode;return o&&(e.widthMode={...o,currentValue:n.mode,inherited:n.inherited}),e}const gt=new Set(["Heading","Text","ImageBlock","ButtonBlock"]),tn={name:"containedWidth",applies:(t,n,e)=>gt.has(t)&&!!e&&typeof e.render=="function",panel(t,n,e){const o=e.widthField;t.fields=$(n,t,{...t.fields,...o("page")});const i=t.resolveFields;t.resolveFields=(c,r)=>{const d=i?i(c,r):r.fields,s=D(c?.props??{},"page"),_=m=>Bt(m,s);return d&&typeof d.then=="function"?d.then(_):_(d)}},draw(t){const n=t.render;t.render=e=>{const{mode:o}=D(e,"page");return n({...e,contained:o!=="full"})}}},Gt={not:{context:"inHeroGroupRow",is:!0}},nn={name:"buttonAlignInRow",applies:t=>t==="ButtonBlock",panel(t){const n=t;n.fields=E(n.fields??{},["align"],Gt),T(n,{inHeroGroupRow:(e,o)=>{const i=Ct(o.appState,e.props?.id);return!!i&&i.type==="HeroGroup"&&j("HeroGroup",i.props?.direction)==="row"}})}};function vt(t){return Object.values(t).some(n=>!!n&&typeof n=="object"&&n.type==="slot")}const Dt={any:[]},Ft={all:[{not:{context:"outsideBox",is:!0}},{not:{context:"insideSiteGutter",is:!0}}]},Ht={not:{context:"widthCappedByParent",is:!0}};function $(t,n,e,o=["widthMode"]){if(t==="ButtonBlock")return E(e,["_gWidth",...o],Dt);if(vt(e)){const i=(c,r)=>rt(r.appState?.data?.content,c.props?.id,st(at()));return T(n,{outsideBox:(c,r)=>i(c,r)?.inBox!==!0,insideSiteGutter:(c,r)=>i(c,r)?.insideGutter}),E(e,o,Ft)}return T(n,{widthCappedByParent:(i,c)=>"parent"in c?wt(c.parent):Et({props:i.props??{}},c)}),E(e,o,Ht)}export{St as SECTION_BACKGROUND_VAR,Rt as SECTION_CONTENT_CAP_CLASS,xt as SECTION_CONTENT_CAP_VAR,mt as SECTION_CONTENT_CLASS,Ot as SECTION_CONTENT_VAR,N as SITE_CONTENT_VAR,nn as buttonAlignInRow,tn as containedWidth,Zt as sectionWidth,Bt as widthModeFields};
@@ -1 +1 @@
1
- import{isNode as O,isNodeList as w}from"efficient-easel/data";import{hidableText as S,readHidable as y}from"efficient-easel/draw";import{blockSizeValuesOf as _}from"../content/block-size.js";import{nodeHiddenEverywhere as R,nodeViewHideClass as h}from"../../../format/lib/content/view-hide-class.js";import{CARD_ROW_FIELD_PROP as b,CARD_TEMPLATE_SLOT as x,namedRowField as E,ROW_BOUND_PROPS as P}from"../../../format/lib/content/card-template.js";import{SHOW_FOR_PROP as g}from"../../../format/lib/content/box-show-for-choices.js";const p="slotCounts",d=t=>!y(t).hidden&&S(t).trim()!=="",C=t=>typeof t=="string"&&t.trim()!=="",A={Flex:()=>!0,PostCard:()=>!0,ImageBlock:t=>C(t.src),Text:t=>d(t.text),Heading:t=>d(t.text),Eyebrow:t=>d(t.eyebrow)},F=["widthFit","width","minWidth"],u=t=>w(t);function N(t){if(Array.isArray(t.content))return u(t.content)?t.content:null;const e=Object.values(t).filter(u);return e.length===1?e[0]:null}function W(t,e){return[...new Set([b,...Object.values(P[t]??{})])].some(o=>E(e,o)!=="")}function D(t){const e=t.props??{},n=A[t.type];if(!n||!n(e)||W(t.type,e)||h(e))return!1;const o=e[g];if(o!=null&&o!=="")return!1;const r=_(e);return!F.some(s=>r[s]!==void 0)}function I(t){let e=0;for(const n of t)if(!R(n.props??{})){if(!D(n))return;e+=1}return e>0?e:void 0}function T(t){const e={},n=new Set,o=new Set,r=(s,a)=>{if(Array.isArray(s))for(const f of s){if(!O(f))continue;const i=f.props.id;typeof i=="string"&&(n.has(i)?o:n).add(i);const l=a?null:N(f.props);if(typeof i=="string"&&l){const c=I(l);c!==void 0&&(e[i]=c)}for(const[c,m]of Object.entries(f.props))u(m)&&r(m,a||c===x)}};r(t,!1);for(const s of o)delete e[s];return e}function z(t,e){return{...t??{},[p]:T(e)}}function B(t){const n=t.editor?.metadata?.[p],o=t.id,r=typeof o=="string"&&n&&typeof n=="object"?n[o]:void 0;return typeof r=="number"&&Number.isInteger(r)&&r>0?r:void 0}export{A as DRAWS_FOR_SURE,p as SLOT_COUNTS_KEY,B as slotCountOf,T as slotCountsOf,z as withSlotCounts};
1
+ import{isNode as O,isNodeList as w}from"efficient-easel/data";import{hidableText as S,readHidable as y}from"efficient-easel/draw";import{blockSizeValuesOf as _}from"../content/block-size.js";import{nodeHiddenEverywhere as h,nodeViewHideClass as R}from"../../../format/lib/content/view-hide-class.js";import{CARD_ROW_FIELD_PROP as b,isCardTemplateSlot as x,namedRowField as g,ROW_BOUND_PROPS as C}from"../../../format/lib/content/card-template.js";import{SHOW_FOR_PROP as P}from"../../../format/lib/content/box-show-for-choices.js";const m="slotCounts",d=t=>!y(t).hidden&&S(t).trim()!=="",E=t=>typeof t=="string"&&t.trim()!=="",F={Flex:()=>!0,PostCard:()=>!0,ImageBlock:t=>E(t.src),Text:t=>d(t.text),Heading:t=>d(t.text),Eyebrow:t=>d(t.eyebrow)},N=["widthFit","width","minWidth"],u=t=>w(t);function W(t){if(Array.isArray(t.content))return u(t.content)?t.content:null;const e=Object.values(t).filter(u);return e.length===1?e[0]:null}function A(t,e){return[...new Set([b,...Object.values(C[t]??{})])].some(o=>g(e,o)!=="")}function I(t){const e=t.props??{},n=F[t.type];if(!n||!n(e)||A(t.type,e)||R(e))return!1;const o=e[P];if(o!=null&&o!=="")return!1;const r=_(e);return!N.some(s=>r[s]!==void 0)}function D(t){let e=0;for(const n of t)if(!h(n.props??{})){if(!I(n))return;e+=1}return e>0?e:void 0}function H(t){const e={},n=new Set,o=new Set,r=(s,a)=>{if(Array.isArray(s))for(const i of s){if(!O(i))continue;const f=i.props.id;typeof f=="string"&&(n.has(f)?o:n).add(f);const l=a?null:W(i.props);if(typeof f=="string"&&l){const c=D(l);c!==void 0&&(e[f]=c)}for(const[c,p]of Object.entries(i.props))u(p)&&r(p,a||x(i.type,c))}};r(t,!1);for(const s of o)delete e[s];return e}function z(t,e){return{...t??{},[m]:H(e)}}function B(t){const n=t.editor?.metadata?.[m],o=t.id,r=typeof o=="string"&&n&&typeof n=="object"?n[o]:void 0;return typeof r=="number"&&Number.isInteger(r)&&r>0?r:void 0}export{F as DRAWS_FOR_SURE,m as SLOT_COUNTS_KEY,B as slotCountOf,H as slotCountsOf,z as withSlotCounts};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efficient-web-builder",
3
- "version": "61.0.0",
3
+ "version": "63.0.0",
4
4
  "description": "The EFFICIENT website builder: the website editor, the general sections and the renderer that draws them, compiled. Hostable by any EFFICIENT product; nothing here imports a host.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "Efficient Pty Ltd",
@@ -53,7 +53,7 @@
53
53
  },
54
54
  "peerDependencies": {
55
55
  "@tabler/icons-react": "^3.46.0",
56
- "efficient-easel": "^30.0.0",
56
+ "efficient-easel": "^30.1.0",
57
57
  "efficient-shell": "^12.18.0",
58
58
  "isomorphic-dompurify": "^3.18.0",
59
59
  "next": ">=16",
@@ -72,7 +72,7 @@
72
72
  "@types/node": "^20",
73
73
  "@types/react": "^19",
74
74
  "@types/react-dom": "^19",
75
- "efficient-easel": "^30.0.0",
75
+ "efficient-easel": "^30.1.0",
76
76
  "efficient-shell": "^12.18.0",
77
77
  "esbuild": "^0.28.0",
78
78
  "happy-dom": "^20.14.5",