efficient-web-builder 59.2.0 → 59.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/editor/components/SectionThumbnail.js +1 -1
  3. package/dist/editor/components/storefront-editor.css +21 -7
  4. package/dist/editor/lib/animation/fields.js +1 -1
  5. package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
  6. package/dist/editor/lib/document/card-row-fields.d.ts +3 -1
  7. package/dist/editor/lib/document/card-row-fields.js +1 -1
  8. package/dist/editor/lib/document/mirror-cards-field.js +1 -1
  9. package/dist/format/lib/content/block-align.d.ts +3 -1
  10. package/dist/format/lib/content/block-align.js +1 -1
  11. package/dist/format/lib/content/box-background.d.ts +7 -0
  12. package/dist/format/lib/content/box-background.js +1 -1
  13. package/dist/format/lib/content/box-card-rule.d.ts +7 -0
  14. package/dist/format/lib/content/box-card-rule.js +1 -0
  15. package/dist/format/lib/content/box-layout.js +1 -1
  16. package/dist/format/lib/content/box-phone-place.d.ts +4 -4
  17. package/dist/format/lib/content/box-phone-place.js +1 -1
  18. package/dist/format/lib/content/box-shape.d.ts +1 -1
  19. package/dist/format/lib/content/box-shape.js +1 -1
  20. package/dist/format/lib/content/box-side-space.d.ts +2 -1
  21. package/dist/format/lib/content/box-side-space.js +1 -1
  22. package/dist/format/lib/content/button-icon.d.ts +3 -1
  23. package/dist/format/lib/content/button-icon.js +1 -1
  24. package/dist/format/lib/content/cell-picture-sizes.js +1 -1
  25. package/dist/format/lib/content/gallery-card-layout.d.ts +6 -1
  26. package/dist/format/lib/content/gallery-card-layout.js +1 -1
  27. package/dist/format/lib/content/image-aspect.d.ts +3 -3
  28. package/dist/format/lib/content/image-aspect.js +1 -1
  29. package/dist/format/lib/content/mirror-cards.d.ts +3 -0
  30. package/dist/format/lib/content/mirror-cards.js +1 -1
  31. package/dist/format/lib/content/part-display.d.ts +2 -1
  32. package/dist/format/lib/content/part-display.js +1 -1
  33. package/dist/format/lib/content/site-gutter.d.ts +2 -0
  34. package/dist/format/lib/content/site-gutter.js +1 -1
  35. package/dist/format/lib/content/view-hide-class.d.ts +5 -2
  36. package/dist/format/lib/content/view-hide-class.js +1 -1
  37. package/dist/format/lib/content/view-lines.d.ts +2 -1
  38. package/dist/format/lib/content/view-lines.js +1 -1
  39. package/dist/format/lib/document/row-hand.js +1 -1
  40. package/dist/format/lib/document/section-catalog.d.ts +2 -1
  41. package/dist/format/lib/document/section-catalog.js +10 -10
  42. package/dist/format/lib/document/section-descriptions.js +1 -1
  43. package/dist/format/lib/editor-words-catalogue.d.ts +7 -0
  44. package/dist/format/lib/editor-words-catalogue.js +3 -3
  45. package/dist/format/lib/editor-words-kept.js +1 -1
  46. package/dist/format/lib/fit-words.d.ts +1 -0
  47. package/dist/format/lib/fit-words.js +9 -8
  48. package/dist/format/lib/sized-image.js +1 -1
  49. package/dist/format/lib/source-rules/one-phone-edge.d.ts +13 -0
  50. package/dist/format/lib/source-rules/one-phone-edge.js +8 -0
  51. package/dist/format/lib/source-rules/published-mounts.d.ts +12 -0
  52. package/dist/format/lib/source-rules/published-mounts.js +10 -0
  53. package/dist/render/components/ButtonBlock.js +1 -1
  54. package/dist/render/components/CardRowContext.js +1 -1
  55. package/dist/render/components/Eyebrow.js +1 -1
  56. package/dist/render/components/Flex.d.ts +2 -1
  57. package/dist/render/components/Flex.js +1 -1
  58. package/dist/render/components/HeroPictures.js +1 -1
  59. package/dist/render/components/InBoxContext.d.ts +3 -0
  60. package/dist/render/components/InBoxContext.js +1 -1
  61. package/dist/render/components/LogoBlock.js +1 -1
  62. package/dist/render/components/Logos.js +1 -1
  63. package/dist/render/components/PublishedPartStylesContext.d.ts +2 -1
  64. package/dist/render/components/PublishedPartStylesContext.js +1 -1
  65. package/dist/render/components/SectionAnimation.d.ts +4 -2
  66. package/dist/render/components/SectionAnimation.js +1 -1
  67. package/dist/render/components/Split.js +1 -1
  68. package/dist/render/components/Text.js +1 -1
  69. package/dist/render/components/TitleWithButtons.js +1 -1
  70. package/dist/render/components/ViewHideRoot.d.ts +7 -1
  71. package/dist/render/components/ViewHideRoot.js +1 -1
  72. package/dist/render/lib/content/block-size.d.ts +4 -1
  73. package/dist/render/lib/content/block-size.js +1 -1
  74. package/dist/render/lib/content/box-cell-bound.js +1 -1
  75. package/dist/render/lib/content/box-shared-columns.js +1 -1
  76. package/dist/render/lib/content/box-stack-line.d.ts +1 -0
  77. package/dist/render/lib/content/box-stack-line.js +1 -1
  78. package/dist/render/lib/content/view-values.d.ts +2 -0
  79. package/dist/render/lib/content/view-values.js +1 -1
  80. package/dist/render/lib/document/blocks/general/CardList/render.js +1 -1
  81. package/dist/render/lib/document/blocks/general/Cards/render.js +1 -1
  82. package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
  83. package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.js +1 -1
  84. package/dist/render/lib/document/blocks/general/section-to-box-rows-forms.js +1 -1
  85. package/dist/render/lib/document/blocks/general/section-to-box-rows-head.js +1 -1
  86. package/dist/render/lib/document/page-render.js +1 -1
  87. package/dist/render/lib/document/part-styles.d.ts +3 -1
  88. package/dist/render/lib/document/part-styles.js +2 -2
  89. package/dist/render/lib/document/passes/block-size.js +1 -1
  90. package/dist/render/lib/document/passes/clickable-parts.js +1 -1
  91. package/dist/render/lib/document/passes/hidden-nodes.js +1 -1
  92. package/dist/render/lib/document/passes/section-animation.js +1 -1
  93. package/dist/render/lib/document/passes/section-width.js +1 -1
  94. package/dist/render/lib/document/published-passes.d.ts +13 -0
  95. package/dist/render/lib/document/published-passes.js +1 -0
  96. package/dist/render/lib/sections/section-to-box.d.ts +4 -0
  97. package/dist/render/lib/sections/section-to-box.js +1 -1
  98. package/package.json +1 -1
@@ -67,6 +67,7 @@ interface FlexProps {
67
67
  upcoming?: unknown;
68
68
  link?: unknown;
69
69
  rowLink?: string;
70
+ rowImage?: string;
70
71
  highlight?: Record<string, string> | null;
71
72
  boxShape?: unknown;
72
73
  boxShapePhone?: unknown;
@@ -88,5 +89,5 @@ interface FlexProps {
88
89
  rowStyle?: unknown;
89
90
  sideSpace?: unknown;
90
91
  }
91
- export default function Flex({ direction: storedDirection, label, tabShape, gap, gapPhone, gapTablet, justify, align, wrap, share: storedShare, sharePhone, shareTablet, wrapPhone, orderPhone: storedOrderPhone, phoneRow, columns, columnsTablet, separator, stackBelow, blockSpacing, bgImage, bgImagePhone, pictureHover, darken, darkenStyle, darkenTablet, darkenPhone, darkenStyleTablet, darkenStylePhone, placement, padV2, border: storedBorder, borderTablet: storedBorderTablet, borderPhone: storedBorderPhone, pad, contained, fillHeight, shadow, shadowTablet, shadowPhone, justifyTablet, justifyPhone, alignTablet, alignPhone, wrapTablet, blockSpacingTablet, blockSpacingPhone, loop, scrollDirection, loopSeconds, loopDelay, editing, fillColor, fillColorTablet, fillColorPhone, swatch, line, upcoming, link, rowLink, highlight, boxShape, boxShapePhone, boxShapeTablet, angle, jumpHighlight, anchor, sharedSides, sharedRows, boxId, slotCount, mirrorCards, content: Content, rowTitle: RowTitle, startsOpen, rowStyle, sideSpace, }: FlexProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
92
+ export default function Flex({ direction: storedDirection, label, tabShape, gap, gapPhone, gapTablet, justify, align, wrap, share: storedShare, sharePhone, shareTablet, wrapPhone, orderPhone: storedOrderPhone, phoneRow, columns, columnsTablet, separator, stackBelow, blockSpacing, bgImage: storedBgImage, bgImagePhone: storedBgImagePhone, rowImage: storedRowImage, pictureHover, darken, darkenStyle, darkenTablet, darkenPhone, darkenStyleTablet, darkenStylePhone, placement, padV2, border: storedBorder, borderTablet: storedBorderTablet, borderPhone: storedBorderPhone, pad, contained, fillHeight, shadow, shadowTablet, shadowPhone, justifyTablet, justifyPhone, alignTablet, alignPhone, wrapTablet, blockSpacingTablet, blockSpacingPhone, loop, scrollDirection, loopSeconds, loopDelay, editing, fillColor, fillColorTablet, fillColorPhone, swatch, line, upcoming, link, rowLink, highlight, boxShape, boxShapePhone, boxShapeTablet, angle, jumpHighlight, anchor, sharedSides: storedSharedSides, sharedRows: storedSharedRows, boxId, slotCount, mirrorCards, content: Content, rowTitle: RowTitle, startsOpen, rowStyle, sideSpace, }: FlexProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
92
93
  export {};
@@ -1 +1 @@
1
- import{Fragment as z,jsx as o,jsxs as lo}from"react/jsx-runtime";import{useContext as yt,useId as Ot}from"react";import vt from"./BoxTabs.js";import{AccordionRowStyleContext as Eo,BoxTabPaneContext as Fo,useAccordionRowStyle as Lt,useBoxPaneKind as Nt,useFirstCopyOpens as kt,useIsTabPane as Bt}from"./BoxTabPaneContext.js";import Et,{ACCORDION_COUNTER_RESET as Ft}from"./BoxAccordionRow.js";import{ACCORDION_MARK_SHEET as Tt}from"./AccordionMark.js";import{accordionRowStyleOf as It}from"../../format/lib/content/accordion-row-style.js";import{boxPhoneCell as Dt,boxPhoneOrder as gt}from"../../format/lib/content/box-phone-place.js";import{CellFillContext as ze,InBoxContext as Ye,useCellOfStretchedRow as Ht,useFillsCell as Mt}from"./InBoxContext.js";import Vt,{InsideSiteColumn as qe,useInsideSiteGutter as Gt,useSectionRoot as Wt}from"./SiteGutterFrame.js";import{BoxSurfaceProvider as Xt}from"./BoxSurfaceContext.js";import jt from"./PictureWash.js";import{BoxCellContext as Qe,NoCellBound as Kt}from"./BoxCellContext.js";import{boxCellFractions as Ut}from"../lib/content/box-cell-bound.js";import{boundOf as Jt}from"../../format/lib/content/cell-picture-sizes.js";import{useInSiteHeader as zt}from"./PhoneMenuTools.js";import{useCardRow as Yt}from"./CardRowContext.js";import{cardLineBetween as To,framesItsCards as qt}from"../../format/lib/content/card-place.js";import{rowFieldText as Qt}from"../../format/lib/content/card-template.js";import{HandedMirrorContext as Zt,MirrorContext as on,RowHandContext as Ze,boxPlace as en,useHandedMirrorAbove as sn,useHandedRows as tn,useMirroredCopy as nn,useUnderCardBox as rn}from"./MirrorContext.js";import{boxChildrenHand as ln,isMirroredCopy as cn,mirrorCardsActs as os,mirrorCardsOf as an,mirroredBoxClass as dn,MIRROR_ROW_CLASS as un,ownsCard as mn}from"../../format/lib/content/mirror-cards.js";import{FRAME_BASE as Io,frameGutterOf as fn}from"./BlockFrame.js";import{boxSideSpaceOf as Cn}from"../../format/lib/content/box-side-space.js";import{containerGapProps as es}from"../../format/lib/content/container-gap.js";import{boxLayoutClasses as bn,boxAlignViewClasses as hn,boxBlockSpacingClass as xn,boxBlockSpacingViewClasses as pn,boxJustifyViewClasses as Sn,boxWrapTabletClass as wn,boxFitContentClass as Pn,boxAccordionColumnsClass as ss,boxRowColumnsClass as $n,boxRowTabletColumnsClass as Rn,boxRowTabletShareClass as _n,boxPhoneCellsShareLine as An,boxPhoneRowClasses as Y,boxPhoneRowFits as yn,boxShareClasses as M,boxShareVars as On,boxWrapClass as vn,BOX_GAP_ONLY_CLASS as Ln}from"../../format/lib/content/box-layout.js";import{boxSeparatorClasses as Nn,boxSeparatorSeamClass as kn,boxSeparatorStyle as Bn,isStripBox as En}from"../../format/lib/content/box-separator.js";import{DEFAULT_LOOP_DELAY as Fn,DEFAULT_LOOP_DIRECTION as Tn,DEFAULT_LOOP_SECONDS as In,isVerticalLoop as Dn}from"../../format/lib/animation/index.js";import{LoopTrack as gn}from"../lib/animation/LoopTrack.js";import{BOX_CARD_PAD as _,BOX_OWNS_SIDES_CLASS as Hn,boxDarkenStyle as Mn,boxPaintOf as Vn,boxFillViews as Gn,boxPlacementClasses as Wn,boxSwatchFill as Xn,boxWashViews as jn,CARD_SHADOW_CLASS as Kn,isBackgroundBox as ts}from"../../format/lib/content/box-background.js";import{boxShadowAttrs as Un,boxShadowOnAnyView as Jn,boxShadowViewAttrs as zn}from"../../format/lib/content/box-shadow.js";import{boxRunsEdgeToEdge as Yn,drawsSiteGutter as qn}from"../../format/lib/content/site-gutter.js";import{boxShapeClass as Qn,boxShapeClasses as Zn}from"../../format/lib/content/box-shape.js";import{boxAngleStyle as or}from"../../format/lib/content/box-angle.js";import{BOX_JUMP_ATTR as er,BOX_LINK_ATTR as ns,BOX_LINK_CLASS as rs,BOX_LINKED_CLASS as sr,boxJumpBlocksClass as tr,boxJumpCss as nr,boxJumpSlug as rr,boxLinkOf as lr}from"../../format/lib/content/box-link.js";import{SiteLink as ir}from"../lib/site-runtime.js";import{sectionBorderStyle as ls}from"../../format/lib/content/borders.js";import{finiteNumber as A}from"../../format/lib/finite-number.js";import{padDefaultIn as y,sectionPadAttrs as cr}from"../lib/content/section-padding.js";import{SECTION_FILL_CLASS as io}from"../../format/lib/content/section-min-height.js";import{ON_MEDIA_INK_STYLE as ar}from"../../format/lib/content/ink.js";import{sizedBackground as Do}from"../../format/lib/sized-image.js";import{PHOTO_HOST_ATTR as dr,resolveImageTreatment as ur}from"../../format/lib/content/image-treatment.js";import{BOX_HIGHLIGHT_CLASS as mr}from"../../format/lib/animation/hover.js";import{BoxRail as fr,BoxRailStop as Cr,RAIL_STOPS_CLASS as br,useTimelineRail as hr}from"./TimelineRail.js";import{SHARED_PLAIN_ATTR as xr,sharedColumnsClasses as pr,sharedColumnsCss as Sr,sharedRowsClasses as wr,sharedRowsCss as Pr}from"../lib/content/box-shared-columns.js";import $r from"./PhotoHoverSheet.js";import{stackGutterClass as Rr,stackLineCss as _r,stackOuterClass as Ar,stackRowClass as yr,storedStackLine as Or}from"../lib/content/box-stack-line.js";const go={"--sf-site-gutter":"0px"},vr={overflowX:"clip",overflowY:"visible"},Lr={stretchedRow:!1,fillingColumn:!1,columnsRow:!1},Nr={desktop:!1,phone:!1},is="bg-cover bg-center bg-[image:var(--sf-box-bg)] max-view-tablet:bg-[image:var(--sf-box-bg-p)]",Ho=u=>u==null||u==="",Mo=u=>!Ho(u)&&Number(u)===0;function kr({children:u}){return o(z,{children:u(Ot())})}function Br({direction:u,label:cs,tabShape:as,gap:Vo,gapPhone:ds,gapTablet:co,justify:V,align:O,wrap:q,share:us,sharePhone:G,shareTablet:E,wrapPhone:ms,orderPhone:fs,phoneRow:x,columns:m,columnsTablet:v,separator:f,stackBelow:Go,blockSpacing:Wo,bgImage:L,bgImagePhone:Xo,pictureHover:Cs,darken:jo,darkenStyle:Ko,darkenTablet:bs,darkenPhone:hs,darkenStyleTablet:xs,darkenStylePhone:ps,placement:Ss,padV2:Uo=!1,border:ws,borderTablet:Ps,borderPhone:$s,pad:n={},contained:ao=!0,fillHeight:N=!1,shadow:uo,shadowTablet:Jo,shadowPhone:zo,justifyTablet:Yo,justifyPhone:Rs,alignTablet:_s,alignPhone:As,wrapTablet:qo,blockSpacingTablet:ys,blockSpacingPhone:Os,loop:b,scrollDirection:mo=Tn,loopSeconds:vs=In,loopDelay:Ls=Fn,editing:F=!1,fillColor:Qo,fillColorTablet:Ns,fillColorPhone:ks,swatch:Bs,line:p,upcoming:Es,link:Fs,rowLink:Zo,highlight:Ts,boxShape:oe,boxShapePhone:Is,boxShapeTablet:Ds,angle:gs,jumpHighlight:Hs,anchor:Ms,sharedSides:i=Nr,sharedRows:Vs=!1,boxId:T,slotCount:Gs,mirrorCards:ee,content:c,rowTitle:fo,startsOpen:Ws,rowStyle:Xs,sideSpace:js}){const t=Yt(),se=yt(Qe),Ks=sn(),te=rn()&&!(Ks&&t!==null),S=tn(),w=mn({inCopy:t!==null,nestedCopy:t?.nested===!0,underBox:te}),ne=To(ws,t,w),re=To(Ps,t,w),le=To($s,t,w),ie=t===null&&!te&&S?.ids&&T?S.ids.indexOf(T):-1,Q=ie>=0&&S&&T?en(S,T,ie):-1,h=Q>=0?S?.hand??null:w&&S?.copies===!0?S.hand:null,e=h?.row?"row":u,d=h?.row?h.row.share:us,Us=h?.row?h.row.phoneReverse?[...c.blockIds??[]].reverse():void 0:fs,Z=Vs&&!h?.row,I=F?"":lr(Zo&&t?Qt(t.row,Zo):Fs),P=N?"":Zn(oe,Is,Ds),Js=!N&&Qn(oe)!=="",k=rr(Hs,Ms),ce=Xn({swatch:Bs},t?.row),oo=ce??Vn(Qo),D=ce?{className:"",style:{}}:Gn(Qo,Ns,ks),ae=oo||D.className?{...oo?{backgroundColor:oo}:{},...D.style}:void 0,de=hr(),eo=p===!0&&e!=="tabs"&&e!=="accordion",r=ts(L),ue=or(gs),me=r?void 0:ae,Co=r?null:Ts??null,zs=ue||Co?{...me,...ue,...Co}:me,so=zt(),Ys=Wt(),qs=Bt(),fe=Nt(),Qs=Lt(),Zs=kt(),l=e==="accordion",Ce=It(Xs),W=l&&Ce==="numbered",bo=Mt(),ot=Ht(),g=En(e,f),a=b==="scroll"&&e!=="tabs"&&!l,et=nn(),to=w||Q>=0&&h!==null,be=h?h.mirror:ee,st=Q>=0?Q:t?.index,ho=w&&qt(t?.ownerType),he=os({direction:e,separator:f,loop:b,line:p,bgImage:L,columns:m,columnsTablet:v,share:d,wrap:q},to,i.desktop)&&cn(be,st),tt=os({direction:e,separator:f,loop:b,line:p,bgImage:L,columns:m,columnsTablet:v,share:d,wrap:q},to,i.desktop)&&an(be)!==null,H=$n({direction:e,separator:f,loop:b,line:p,columns:m}),$=Rn({direction:e,separator:f,loop:b,line:p,columnsTablet:v}),X=_n({direction:e,separator:f,loop:b,line:p,columns:m,columnsTablet:v,share:d,shareTablet:E}),no=Cn(js)==="site",xo=fn(no),C=e==="row"&&!r&&!g&&!a&&!eo&&$===""&&X===""?Or(Go):void 0,nt=Gt(),ro=pr(i,c.blockCount??0,C),rt=(ro&&(!t||t.index===0)?Sr(i,c.blockCount??0,C):"")+(Z&&(!t||t.index===0)?Pr(Z,c.blockCount??0):""),xe=wr(Z,c.blockCount??0),pe=$!==""?Number(v)>=2:X===""||M(E)!=="",po=$!==""||X!=="",lt=po&&!($!==""&&Number(v)<2),Se=e==="row"&&!g&&!a&&p!==!0,So=Se&&!i.phone&&!i.desktop?Dt(gt(Us,c.blockIds??[]),{tabletKeepsRow:lt,editing:F}):void 0,we=So!==void 0&&!F,it=H!==""?Number(m)>=2:M(d)!=="",Pe=!r&&!l&&!tt&&!i.desktop&&!i.phone,wo=Pe&&!a?Sn(V,Yo,Rs):"",$e=r||to?"":dn(et,e,a?void 0:V,O,wo?Yo:void 0),ct=Pe&&e==="row"?hn(O,_s,As):"",at=!a&&!l&&H===""&&$===""&&!i.desktop?wn(q,qo):"",Re=[l?"":M(d),e==="row"?Pn(d):"",H,$,X,xn(l?"gap":Wo),Nn(e,f),l&&!W?"border-t border-line":"",wo,ct,at,l?"":pn(Wo,ys,Os),l?ss(m,x,W):"",W?Ft:""].filter(Boolean).join(" "),dt=Re?` ${Re}`:"",_e=["flex",e==="row"?g||a?"flex-row":`flex-row ${Y(x,G,ms,qo)}`:"flex-col",vn(a||l?!1:q),r?Wn(Ss??"center",e):bn(a||l?void 0:V,l?void 0:O)+($e?` ${$e}`:"")].join(" ")+dt,j=N||r||P||bo?` ${io}`:"",Po=Js?` ${P}`:P?`${j} ${P}`:j,Ae=ot&&e==="column"&&!r&&!a&&M(d)===""&&(typeof V=="string"&&V!=="start"||wo!==""),ye=j||(Ae?` ${io}`:""),$o=I?` ${sr}`:"",Ro=r||so||Uo?"":" py-6",ut=C===void 0?"":` ${yr(C)}`,Oe=C===void 0||no?"":` ${Rr(C)}`,_o=C===void 0?"":` ${Ar(C)}`,mt=`${Io}${Ro} ${xo}${Po}${$o}${Oe}${_o}`,ft=so?`${Po}${$o}${_o}`.trim():`w-full${Ro}${Po}${$o}${_o}`,K=W&&ss(m,x)===""?es("Flex",0,"block"):es("Flex",Vo,e==="row"?"inline":"block",ds,g||a?void 0:co),ve=On(d,E,e==="row"?c.blockCount??0:0),Le=g?{...K.style,...Bn(e,f)}:K.style,Ct=ve?{...Le,...ve}:Le,Ao=(s="")=>o(c,{className:`${_e}${he?` ${un}`:""}${K.className}${ye}${ut}${s?` ${s}`:""}${eo?` ${br}`:""}${k?` ${tr(k)}`:""}${ro}${xe}`,style:Ct,minEmptyHeight:120,...So?{cell:So}:null}),Ne=Dn(mo)?"":kn(e,f),ke=a?o(gn,{direction:mo,seconds:vs,delay:Ls,editing:F,copy:s=>Ao(s&&Ne?`${s} ${Ne}`:s)}):W?lo(z,{children:[o("style",{children:Tt}),Ao()]}):Ao(),yo=e==="tabs"?o(vt,{className:`${_e}${K.className}${bo&&!N&&!r&&!P?"":j}`,style:K.style,shape:as,children:ke}):ke,Oo=l?o(Fo.Provider,{value:"accordion",children:o(Eo.Provider,{value:Ce,children:yo})}):fe?o(Fo.Provider,{value:!1,children:o(Eo.Provider,{value:"plain",children:yo})}):yo,Be=e==="row"&&!r&&(O===void 0||O==="stretch"),bt={stretchedRow:Be,fillingColumn:e==="column"&&(bo||Ae),columnsRow:H!==""||$!==""||ro!==""||xe!==""||e==="row"&&(Array.isArray(d)||Array.isArray(E))||we,...we?{phoneCells:!0}:null,...Be&&Se&&(c.blockCount??0)>=2&&it?{picturesFillRow:!0}:null,...po?{fillFrom:pe?"tablet":"desktop"}:null,...An(x,G)&&(!po||pe)?{phoneRowFills:!0}:null,...T?{id:T}:null},Ee=t===null?ln({direction:e,loop:b,bgImage:L,columns:m,mirrorCards:ee},!1):null,Fe=Ee?o(Ze.Provider,{value:{hand:Ee,ids:c.blockIds??[],boxes:[]},children:Oo}):S?o(Ze.Provider,{value:null,children:Oo}):Oo,Te=o(Ye.Provider,{value:bt,children:o(ze.Provider,{value:!1,children:to?o(on.Provider,{value:he,children:o(Zt.Provider,{value:!w,children:Fe})}):Fe})}),ht=fo?.blockCount??0,Ie=fe==="accordion"&&!!fo&&(F||ht>0)?o(Et,{startsOpen:Ws===!0||Zs&&w&&t?.index===0,editing:F,numbered:Qs==="numbered",title:o(Ye.Provider,{value:Lr,children:o(ze.Provider,{value:!1,children:o(Fo.Provider,{value:!1,children:o(Eo.Provider,{value:"plain",children:o(fo,{className:`min-w-0 flex-1 ${Ln}`,minEmptyHeight:24})})})})}),children:Te}):Te,vo=eo?o(fr,{row:e==="row",stops:c.blockCount??0,children:Ie}):Ie,xt=cs?.trim()||(qs?"":void 0),pt={values:n,frame:Ro?24:0},St=s=>de?o(Cr,{on:de,future:Es===!0,children:s}):s,wt=s=>I.startsWith("/")?o(ir,{href:I,className:rs,"aria-labelledby":s,[ns]:""}):o("a",{href:I,className:rs,"aria-labelledby":s,[ns]:""}),De=(k?nr(k):"")+rt+(C===void 0||t&&t.index!==0?"":_r(C,{gutter:!no})),ge=De?o("style",{dangerouslySetInnerHTML:{__html:De}}):null,U=Yn({loop:b,direction:e,scrollDirection:mo,bgImage:L}),Pt=i.desktop&&ro!==""&&!oo&&!D.className&&!ls(ne,le,re)&&!Jn(uo,Jo,zo)&&!I&&!P&&!N&&!k&&!qn(ao&&!U,nt)&&Mo(Vo)&&(Ho(co)||Mo(co))&&Uo&&Object.values(n).every(s=>Ho(s)||Mo(s)),$t=s=>({...Pt?{[xr]:""}:null,...r?null:{...Un(uo),...zn(uo,Jo,zo)},...k?{[er]:k}:null,...s?{id:s}:null}),He=H!==""?Number(m):0,Rt=Y(x,G)===Y(void 0),_t=(e==="column"||e==="row"&&!g&&!a&&(He===1&&Rt||He===0&&c.blockCount===1))&&!r&&!eo&&!so,Me=r&&Ys&&!so,Ve=(s,R)=>St(o(Vt,{contained:ao&&!U,style:U?go:void 0,framedClass:mt,fillClass:ft,columnClass:`${Io} ${xo}${ye}${Oe}`,tabLabel:xt,pad:r?void 0:pt,border:ls(ne,le,re),outerAttrs:$t(R),box:!0,edge:_t,outerStyle:zs,outerClass:r?void 0:[D.className,Co?mr:""].filter(Boolean).join(" ")||void 0,bleed:Me,siteSide:no,children:ge||R?lo(z,{children:[ge,R?wt(R):null,U?o(qe,{children:s}):s]}):U?o(qe,{children:s}):s})),Lo=s=>I?o(kr,{children:R=>Ve(s,R)}):Ve(s),Ge=s=>se.bound?o(Kt,{children:s}):s;if(!r){const s=O===void 0||O==="stretch",R=(M(d)!==""||H!==""||$!=="")&&!yn(x,G)&&!(X!==""&&M(E)==="")&&(s||Y(x)!==Y(void 0));if(!(e==="row"?R:e==="column"&&s))return Lo(Ge(vo));const Je=Ut({direction:e,separator:f,loop:b,line:p,share:d,shareTablet:E,sharePhone:G,phoneRow:x,columns:m,columnsTablet:v,stackBelow:Go,shared:i.desktop||i.phone||Z,count:Gs}),At={hasWidth:!0,...Je?{bound:Jt(Je,se.bound)}:null};return Lo(o(Qe.Provider,{value:At,children:vo}))}const J=Mn(jo,Ko),No=jn({darken:jo,darkenStyle:Ko,darkenTablet:bs,darkenStyleTablet:xs,darkenPhone:hs,darkenStylePhone:ps}),We=[ho?"rounded-[inherit]":"",No.className].filter(Boolean).join(" "),ko=ts(Xo),Xe=ko?{"--sf-box-bg":Do(L??""),"--sf-box-bg-p":Do(Xo??"")}:{backgroundImage:Do(L??""),backgroundSize:"cover",backgroundPosition:"center"},je=ur(void 0,void 0,Cs),B=je.className?je:null,Bo=cr({...n,top:A(n.top)??y(_.desktop,n.unit,"desktop"),bottom:A(n.bottom)??y(_.desktop,n.unit,"desktop"),topPhone:A(n.topPhone)??y(_.phone,n.unitPhone,"mobile"),bottomPhone:A(n.bottomPhone)??y(_.phone,n.unitPhone,"mobile"),left:A(n.left)??y(_.side,n.unit,"desktop"),right:A(n.right)??y(_.side,n.unit,"desktop"),leftPhone:A(n.leftPhone)??y(_.sidePhone,n.unitPhone,"mobile"),rightPhone:A(n.rightPhone)??y(_.sidePhone,n.unitPhone,"mobile")}),Ke=o("div",{className:`relative z-[1] ${Hn} ${Bo?.className??""}${N||P?` ${io}`:""}`.trimEnd(),style:J?{...Bo?.style,...go,...ar}:{...Bo?.style,...go},children:Ge(vo)}),Ue=Me&&ao?o("div",{className:`${Io} ${xo}${N||P?` ${io}`:""}`,children:Ke}):Ke;return Lo(o(z,{children:lo("div",{className:`relative isolate overflow-hidden ${Kn}${j}${ko&&!B?` ${is}`:""}${D.className?` ${D.className}`:""}`,style:{...ho?vr:{},...ae,...B?{}:Xe},...B?{[dr]:""}:{},children:[B&&lo(z,{children:[o($r,{sheet:B.sheet}),o("div",{"aria-hidden":!0,className:`absolute inset-0${ho?" rounded-[inherit]":""}${ko?` ${is}`:""} ${B.className}`,style:{...Xe,...B.style??{}}})]}),o(jt,{wash:J&&No.className?{...J,...No.style}:J,...We?{className:We}:{}}),J?o(Xt,{children:Ue}):Ue]})}))}export{Br as default};
1
+ import{Fragment as q,jsx as e,jsxs as ae}from"react/jsx-runtime";import{useContext as Dt,useId as Ht}from"react";import Mt from"./BoxTabs.js";import{AccordionRowStyleContext as Ee,BoxTabPaneContext as Fe,useAccordionRowStyle as Vt,useBoxPaneKind as Gt,useFirstCopyOpens as Wt,useIsTabPane as jt}from"./BoxTabPaneContext.js";import Xt,{ACCORDION_COUNTER_RESET as Ut}from"./BoxAccordionRow.js";import{ACCORDION_MARK_SHEET as Kt}from"./AccordionMark.js";import{accordionRowStyleOf as Jt}from"../../format/lib/content/accordion-row-style.js";import{boxPhoneCell as zt,boxPhoneOrder as Yt}from"../../format/lib/content/box-phone-place.js";import{CellFillContext as es,InBoxContext as os,useCellOfStretchedRow as qt,useFillsCell as Qt}from"./InBoxContext.js";import Zt,{InsideSiteColumn as ss,useInsideSiteGutter as er,useSectionRoot as or}from"./SiteGutterFrame.js";import{BoxSurfaceProvider as sr}from"./BoxSurfaceContext.js";import tr from"./PictureWash.js";import{BoxCellContext as ts,NoCellBound as rr}from"./BoxCellContext.js";import{boxCellFractions as nr}from"../lib/content/box-cell-bound.js";import{boundOf as lr}from"../../format/lib/content/cell-picture-sizes.js";import{useInSiteHeader as ir}from"./PhoneMenuTools.js";import{useCardRow as cr}from"./CardRowContext.js";import{cardLineBetween as Te,framesItsCards as ar}from"../../format/lib/content/card-place.js";import{rowFieldText as dr}from"../../format/lib/content/card-template.js";import{HandedMirrorContext as ur,MirrorContext as mr,RowHandContext as rs,boxPlace as fr,useHandedMirrorAbove as Cr,useHandedRows as br,useMirroredCopy as hr,useUnderCardBox as Sr}from"./MirrorContext.js";import{boxChildrenHand as wr,isMirroredCopy as xr,mirrorCardsActs as ns,mirrorCardsOf as pr,mirroredBoxClass as Pr,MIRROR_ROW_CLASS as $r,ownsCard as Rr}from"../../format/lib/content/mirror-cards.js";import{FRAME_BASE as De,frameGutterOf as _r}from"./BlockFrame.js";import{BOX_SIDE_SPACE_SITE as yr,boxSideSpaceOf as Ar}from"../../format/lib/content/box-side-space.js";import{containerGapProps as ls}from"../../format/lib/content/container-gap.js";import{boxLayoutClasses as Or,boxAlignViewClasses as vr,boxBlockSpacingClass as Lr,boxBlockSpacingViewClasses as kr,boxJustifyViewClasses as Nr,boxWrapTabletClass as gr,boxFitContentClass as Br,boxAccordionColumnsClass as is,boxRowColumnsClass as Ir,boxRowTabletColumnsClass as Er,boxRowTabletShareClass as Fr,boxPhoneCellsShareLine as Tr,boxPhoneRowClasses as Q,boxPhoneRowFits as Dr,boxShareClasses as G,boxShareVars as Hr,boxWrapClass as Mr,BOX_GAP_ONLY_CLASS as Vr}from"../../format/lib/content/box-layout.js";import{boxSeparatorClasses as Gr,boxSeparatorSeamClass as Wr,boxSeparatorStyle as jr,isStripBox as Xr}from"../../format/lib/content/box-separator.js";import{DEFAULT_LOOP_DELAY as Ur,DEFAULT_LOOP_DIRECTION as Kr,DEFAULT_LOOP_SECONDS as Jr,isVerticalLoop as zr}from"../../format/lib/animation/index.js";import{LoopTrack as Yr}from"../lib/animation/LoopTrack.js";import{BOX_CARD_PAD as y,BOX_OWNS_SIDES_CLASS as qr,boxDarkenStyle as Qr,boxPaintOf as Zr,boxFillViews as en,boxPlacementClasses as on,boxCardProps as sn,boxIsCard as cs,boxRowPicture as tn,boxSwatchFill as rn,boxWashViews as nn,CARD_SHADOW_CLASS as ln,isBackgroundBox as as}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 cn,boxShadowOnAnyView as an,boxShadowViewAttrs as dn}from"../../format/lib/content/box-shadow.js";import{boxRunsEdgeToEdge as un,drawsSiteGutter as mn}from"../../format/lib/content/site-gutter.js";import{boxShapeClass as fn,boxShapeClasses as Cn}from"../../format/lib/content/box-shape.js";import{boxAngleStyle as bn}from"../../format/lib/content/box-angle.js";import{BOX_JUMP_ATTR as hn,BOX_LINK_ATTR as ds,BOX_LINK_CLASS as us,BOX_LINKED_CLASS as Sn,boxJumpBlocksClass as wn,boxJumpCss as xn,boxJumpSlug as pn,boxLinkOf as Pn}from"../../format/lib/content/box-link.js";import{SiteLink as $n}from"../lib/site-runtime.js";import{sectionBorderStyle as ms}from"../../format/lib/content/borders.js";import{finiteNumber as A}from"../../format/lib/finite-number.js";import{padDefaultIn as O,sectionPadAttrs as Rn}from"../lib/content/section-padding.js";import{SECTION_FILL_CLASS as de}from"../../format/lib/content/section-min-height.js";import{ON_MEDIA_INK_STYLE as _n}from"../../format/lib/content/ink.js";import{sizedBackground as He}from"../../format/lib/sized-image.js";import{PHOTO_HOST_ATTR as yn,resolveImageTreatment as An}from"../../format/lib/content/image-treatment.js";import{BOX_HIGHLIGHT_CLASS as On}from"../../format/lib/animation/hover.js";import{BoxRail as vn,BoxRailStop as Ln,RAIL_STOPS_CLASS as kn,useTimelineRail as Nn}from"./TimelineRail.js";import{SHARED_PLAIN_ATTR as gn,sharedColumnsClasses as Bn,sharedColumnsCss as In,sharedRowsClasses as En,sharedRowsCss as Fn}from"../lib/content/box-shared-columns.js";import Tn from"./PhotoHoverSheet.js";import{stackGutterClass as Dn,stackLineCss as Hn,stackOuterClass as Mn,stackRowClass as Vn,storedStackLine as Gn}from"../lib/content/box-stack-line.js";const Me={"--sf-site-gutter":"0px"},Wn={overflowX:"clip",overflowY:"visible"},jn={stretchedRow:!1,fillingColumn:!1,columnsRow:!1},fs={desktop:!1,phone:!1},Cs="bg-cover bg-center bg-[image:var(--sf-box-bg)] max-view-wide:bg-[image:var(--sf-box-bg-p)]",Ve=u=>u==null||u==="",Ge=u=>!Ve(u)&&Number(u)===0;function Xn({children:u}){return e(q,{children:u(Ht())})}function Un({direction:u,label:bs,tabShape:hs,gap:We,gapPhone:Ss,gapTablet:ue,justify:W,align:v,wrap:Z,share:ws,sharePhone:j,shareTablet:I,wrapPhone:xs,orderPhone:ps,phoneRow:w,columns:m,columnsTablet:E,separator:f,stackBelow:je,blockSpacing:Xe,bgImage:Ps,bgImagePhone:$s,rowImage:Rs,pictureHover:_s,darken:Ue,darkenStyle:Ke,darkenTablet:ys,darkenPhone:As,darkenStyleTablet:Os,darkenStylePhone:vs,placement:Ls,padV2:Je=!1,border:ks,borderTablet:Ns,borderPhone:gs,pad:r={},contained:me=!0,fillHeight:L=!1,shadow:fe,shadowTablet:ze,shadowPhone:Ye,justifyTablet:qe,justifyPhone:Bs,alignTablet:Is,alignPhone:Es,wrapTablet:Qe,blockSpacingTablet:Fs,blockSpacingPhone:Ts,loop:b,scrollDirection:Ce=Kr,loopSeconds:Ds=Jr,loopDelay:Hs=Ur,editing:F=!1,fillColor:Ze,fillColorTablet:Ms,fillColorPhone:Vs,swatch:Gs,line:x,upcoming:Ws,link:js,rowLink:eo,highlight:Xs,boxShape:oo,boxShapePhone:Us,boxShapeTablet:Ks,angle:Js,jumpHighlight:zs,anchor:Ys,sharedSides:qs=fs,sharedRows:Qs=!1,boxId:T,slotCount:Zs,mirrorCards:so,content:i,rowTitle:be,startsOpen:et,rowStyle:ot,sideSpace:st}){const t=cr(),k=sn({[S]:Rs},t!==null)[S],to=cs({[S]:k}),c=to?fs:qs,tt=to?!1:Qs,ro=tn({[S]:k},t?.row),p=ro??Ps,no=ro===null?$s:void 0,lo=Dt(ts),rt=Cr(),io=Sr()&&!(rt&&t!==null),P=br(),$=Rr({inCopy:t!==null,nestedCopy:t?.nested===!0,underBox:io}),co=Te(ks,t,$),ao=Te(Ns,t,$),uo=Te(gs,t,$),mo=t===null&&!io&&P?.ids&&T?P.ids.indexOf(T):-1,ee=mo>=0&&P&&T?fr(P,T,mo):-1,h=ee>=0?P?.hand??null:$&&P?.copies===!0?P.hand:null,o=h?.row?"row":u,d=h?.row?h.row.share:ws,nt=h?.row?h.row.phoneReverse?[...i.blockIds??[]].reverse():void 0:ps,oe=tt&&!h?.row,D=F?"":Pn(eo&&t?dr(t.row,eo):js),R=L?"":Cn(oo,Us,Ks),lt=!L&&fn(oo)!=="",N=pn(zs,Ys),fo=rn({swatch:Gs},t?.row),se=fo??Zr(Ze),H=fo?{className:"",style:{}}:en(Ze,Ms,Vs),Co=se||H.className?{...se?{backgroundColor:se}:{},...H.style}:void 0,bo=Nn(),te=x===!0&&o!=="tabs"&&o!=="accordion",n=cs({bgImage:p,[S]:k}),ho=bn(Js),So=n?void 0:Co,he=n?null:Xs??null,it=ho||he?{...So,...ho,...he}:So,re=ir(),ct=or(),at=jt(),wo=Gt(),dt=Vt(),ut=Wt(),l=o==="accordion",xo=Jt(ot),X=l&&xo==="numbered",Se=Qt(),mt=qt(),M=Xr(o,f),a=b==="scroll"&&o!=="tabs"&&!l,ft=hr(),ne=$||ee>=0&&h!==null,po=h?h.mirror:so,Ct=ee>=0?ee:t?.index,we=$&&ar(t?.ownerType),Po=ns({direction:o,separator:f,loop:b,line:x,bgImage:p,[S]:k,columns:m,columnsTablet:E,share:d,wrap:Z},ne,c.desktop)&&xr(po,Ct),bt=ns({direction:o,separator:f,loop:b,line:x,bgImage:p,[S]:k,columns:m,columnsTablet:E,share:d,wrap:Z},ne,c.desktop)&&pr(po)!==null,V=Ir({direction:o,separator:f,loop:b,line:x,columns:m}),g=Er({direction:o,separator:f,loop:b,line:x,columnsTablet:E}),U=Fr({direction:o,separator:f,loop:b,line:x,columns:m,columnsTablet:E,share:d,shareTablet:I}),le=Ar(st)===yr,xe=_r(le),C=o==="row"&&!n&&!M&&!a&&!te&&g===""&&U===""?Gn(je):void 0,ht=er(),ie=Bn(c,i.blockCount??0,C),St=(ie&&(!t||t.index===0)?In(c,i.blockCount??0,C):"")+(oe&&(!t||t.index===0)?Fn(oe,i.blockCount??0):""),$o=En(oe,i.blockCount??0),Ro=g!==""?Number(E)>=2:U===""||G(I)!=="",_o=g!==""||U!=="",yo=o==="row"&&!M&&!a&&x!==!0,pe=yo&&!c.phone&&!c.desktop?zt(Yt(nt,i.blockIds??[]),{editing:F}):void 0,Ao=pe!==void 0&&!F,wt=V!==""?Number(m)>=2:G(d)!=="",Oo=!n&&!l&&!bt&&!c.desktop&&!c.phone,ce=Oo&&!a?Nr(W,qe,Bs):"",Pe=n||ne?"":Pr(ft,o,a?void 0:W,v,ce?qe:void 0),xt=/view-wide:max-view-desktop:justify-/.test(Pe)?ce.split(" ").filter(s=>!s.startsWith("view-wide:max-view-desktop:justify-")).join(" "):ce,pt=Oo&&o==="row"?vr(v,Is,Es):"",Pt=!a&&!l&&V===""&&g===""&&!c.desktop?gr(Z,Qe):"",vo=[l?"":G(d),o==="row"?Br(d):"",V,g,U,Lr(l?"gap":Xe),Gr(o,f),l&&!X?"border-t border-line":"",xt,pt,Pt,l?"":kr(Xe,Fs,Ts),l?is(m,w,X):"",X?Ut:""].filter(Boolean).join(" "),$t=vo?` ${vo}`:"",Lo=["flex",o==="row"?M||a?"flex-row":`flex-row ${Q(w,j,xs,Qe)}`:"flex-col",Mr(a||l?!1:Z),n?on(Ls??"center",o):Or(a||l?void 0:W,l?void 0:v)+(Pe?` ${Pe}`:"")].join(" ")+$t,K=L||n||R||Se?` ${de}`:"",$e=lt?` ${R}`:R?`${K} ${R}`:K,ko=mt&&o==="column"&&!n&&!a&&G(d)===""&&(typeof W=="string"&&W!=="start"||ce!==""),No=K||(ko?` ${de}`:""),Re=D?` ${Sn}`:"",_e=n||re||Je?"":" py-6",Rt=C===void 0?"":` ${Vn(C)}`,go=C===void 0||le?"":` ${Dn(C)}`,ye=C===void 0?"":` ${Mn(C)}`,_t=`${De}${_e} ${xe}${$e}${Re}${go}${ye}`,yt=re?`${$e}${Re}${ye}`.trim():`w-full${_e}${$e}${Re}${ye}`,J=X&&is(m,w)===""?ls("Flex",0,"block"):ls("Flex",We,o==="row"?"inline":"block",Ss,M||a?void 0:ue),Bo=Hr(d,I,o==="row"?i.blockCount??0:0),Io=M?{...J.style,...jr(o,f)}:J.style,At=Bo?{...Io,...Bo}:Io,Ae=(s="")=>e(i,{className:`${Lo}${Po?` ${$r}`:""}${J.className}${No}${Rt}${s?` ${s}`:""}${te?` ${kn}`:""}${N?` ${wn(N)}`:""}${ie}${$o}`,style:At,minEmptyHeight:120,...pe?{cell:pe}:null}),Eo=zr(Ce)?"":Wr(o,f),Fo=a?e(Yr,{direction:Ce,seconds:Ds,delay:Hs,editing:F,copy:s=>Ae(s&&Eo?`${s} ${Eo}`:s)}):X?ae(q,{children:[e("style",{children:Kt}),Ae()]}):Ae(),Oe=o==="tabs"?e(Mt,{className:`${Lo}${J.className}${Se&&!L&&!n&&!R?"":K}`,style:J.style,shape:hs,children:Fo}):Fo,ve=l?e(Fe.Provider,{value:"accordion",children:e(Ee.Provider,{value:xo,children:Oe})}):wo?e(Fe.Provider,{value:!1,children:e(Ee.Provider,{value:"plain",children:Oe})}):Oe,To=o==="row"&&!n&&(v===void 0||v==="stretch"),Ot={stretchedRow:To,fillingColumn:o==="column"&&(Se||ko),columnsRow:V!==""||g!==""||ie!==""||$o!==""||o==="row"&&(Array.isArray(d)||Array.isArray(I))||Ao,...Ao?{phoneCells:!0}:null,...To&&yo&&(i.blockCount??0)>=2&&wt?{picturesFillRow:!0}:null,..._o&&!Ro?{fillFrom:"desktop"}:null,...Tr(w,j)&&(!_o||Ro)?{phoneRowFills:!0}:null,...T?{id:T}:null},Do=t===null?wr({direction:o,loop:b,bgImage:p,[S]:k,columns:m,mirrorCards:so},!1):null,Ho=Do?e(rs.Provider,{value:{hand:Do,ids:i.blockIds??[],boxes:[]},children:ve}):P?e(rs.Provider,{value:null,children:ve}):ve,Mo=e(os.Provider,{value:Ot,children:e(es.Provider,{value:!1,children:ne?e(mr.Provider,{value:Po,children:e(ur.Provider,{value:!$,children:Ho})}):Ho})}),vt=be?.blockCount??0,Vo=wo==="accordion"&&!!be&&(F||vt>0)?e(Xt,{startsOpen:et===!0||ut&&$&&t?.index===0,editing:F,numbered:dt==="numbered",title:e(os.Provider,{value:jn,children:e(es.Provider,{value:!1,children:e(Fe.Provider,{value:!1,children:e(Ee.Provider,{value:"plain",children:e(be,{className:`min-w-0 flex-1 ${Vr}`,minEmptyHeight:24})})})})}),children:Mo}):Mo,Le=te?e(vn,{row:o==="row",stops:i.blockCount??0,children:Vo}):Vo,Lt=bs?.trim()||(at?"":void 0),kt={values:r,frame:_e?24:0},Nt=s=>bo?e(Ln,{on:bo,future:Ws===!0,children:s}):s,gt=s=>D.startsWith("/")?e($n,{href:D,className:us,"aria-labelledby":s,[ds]:""}):e("a",{href:D,className:us,"aria-labelledby":s,[ds]:""}),Go=(N?xn(N):"")+St+(C===void 0||t&&t.index!==0?"":Hn(C,{gutter:!le})),Wo=Go?e("style",{dangerouslySetInnerHTML:{__html:Go}}):null,z=un({loop:b,direction:o,scrollDirection:Ce,bgImage:p,[S]:k}),Bt=c.desktop&&ie!==""&&!se&&!H.className&&!ms(co,uo,ao)&&!an(fe,ze,Ye)&&!D&&!R&&!L&&!N&&!mn(me&&!z,ht)&&Ge(We)&&(Ve(ue)||Ge(ue))&&Je&&Object.values(r).every(s=>Ve(s)||Ge(s)),It=s=>({...Bt?{[gn]:""}:null,...n?null:{...cn(fe),...dn(fe,ze,Ye)},...N?{[hn]:N}:null,...s?{id:s}:null}),jo=V!==""?Number(m):0,Et=Q(w,j)===Q(void 0),Ft=(o==="column"||o==="row"&&!M&&!a&&(jo===1&&Et||jo===0&&i.blockCount===1))&&!n&&!te&&!re,Xo=n&&ct&&!re,Uo=(s,_)=>Nt(e(Zt,{contained:me&&!z,style:z?Me:void 0,framedClass:_t,fillClass:yt,columnClass:`${De} ${xe}${No}${go}`,tabLabel:Lt,pad:n?void 0:kt,border:ms(co,uo,ao),outerAttrs:It(_),box:!0,edge:Ft,outerStyle:it,outerClass:n?void 0:[H.className,he?On:""].filter(Boolean).join(" ")||void 0,bleed:Xo,siteSide:le,children:Wo||_?ae(q,{children:[Wo,_?gt(_):null,z?e(ss,{children:s}):s]}):z?e(ss,{children:s}):s})),ke=s=>D?e(Xn,{children:_=>Uo(s,_)}):Uo(s),Ko=s=>lo.bound?e(rr,{children:s}):s;if(!n){const s=v===void 0||v==="stretch",_=(G(d)!==""||V!==""||g!=="")&&!Dr(w,j)&&!(U!==""&&G(I)==="")&&(s||Q(w)!==Q(void 0));if(!(o==="row"?_:o==="column"&&s))return ke(Ko(Le));const Zo=nr({direction:o,separator:f,loop:b,line:x,share:d,shareTablet:I,sharePhone:j,phoneRow:w,columns:m,columnsTablet:E,stackBelow:je,shared:c.desktop||c.phone||oe,count:Zs}),Tt={hasWidth:!0,...Zo?{bound:lr(Zo,lo.bound)}:null};return ke(e(ts.Provider,{value:Tt,children:Le}))}const Ne=as(p),Y=Ne?Qr(Ue,Ke):null,ge=Ne?nn({darken:Ue,darkenStyle:Ke,darkenTablet:ys,darkenStyleTablet:Os,darkenPhone:As,darkenStylePhone:vs}):{className:"",style:{}},Jo=[we?"rounded-[inherit]":"",ge.className].filter(Boolean).join(" "),Be=as(no),zo=Ne?Be?{"--sf-box-bg":He(p??""),"--sf-box-bg-p":He(no??"")}:{backgroundImage:He(p??""),backgroundSize:"cover",backgroundPosition:"center"}:{},Yo=An(void 0,void 0,_s),B=Yo.className?Yo:null,Ie=Rn({...r,top:A(r.top)??O(y.desktop,r.unit,"desktop"),bottom:A(r.bottom)??O(y.desktop,r.unit,"desktop"),topPhone:A(r.topPhone)??O(y.phone,r.unitPhone,"mobile"),bottomPhone:A(r.bottomPhone)??O(y.phone,r.unitPhone,"mobile"),left:A(r.left)??O(y.side,r.unit,"desktop"),right:A(r.right)??O(y.side,r.unit,"desktop"),leftPhone:A(r.leftPhone)??O(y.sidePhone,r.unitPhone,"mobile"),rightPhone:A(r.rightPhone)??O(y.sidePhone,r.unitPhone,"mobile")}),qo=e("div",{className:`relative z-[1] ${qr} ${Ie?.className??""}${L||R?` ${de}`:""}`.trimEnd(),style:Y?{...Ie?.style,...Me,..._n}:{...Ie?.style,...Me},children:Ko(Le)}),Qo=Xo&&me?e("div",{className:`${De} ${xe}${L||R?` ${de}`:""}`,children:qo}):qo;return ke(e(q,{children:ae("div",{className:`relative isolate overflow-hidden ${ln}${K}${Be&&!B?` ${Cs}`:""}${H.className?` ${H.className}`:""}`,style:{...we?Wn:{},...Co,...B?{}:zo},...B?{[yn]:""}:{},children:[B&&ae(q,{children:[e(Tn,{sheet:B.sheet}),e("div",{"aria-hidden":!0,className:`absolute inset-0${we?" rounded-[inherit]":""}${Be?` ${Cs}`:""} ${B.className}`,style:{...zo,...B.style??{}}})]}),e(tr,{wash:Y&&ge.className?{...Y,...ge.style}:Y,...Jo?{className:Jo}:{}}),Y?e(sr,{children:Qo}):Qo]})}))}export{Un as default};
@@ -1 +1 @@
1
- "use client";import{Fragment as u,jsx as r,jsxs as c}from"react/jsx-runtime";import b from"./HeroPoster.js";import{SectionAnimation as h}from"./SectionAnimation.js";import{resolveMedia as P}from"../lib/media.js";import{HERO_MEDIA_PARTS as w,HERO_PART_ATTR as x}from"../lib/document/hero-media-parts.js";import{entranceDrawn as y}from"../lib/animation/entrance.js";import{readPartMotion as v}from"../lib/animation/part-motion.js";import{pictureHoverOf as T}from"../../format/lib/animation/hover.js";import{PHOTO_HOST_ATTR as H,SITE_PHOTO_CSS as j,resolveImageTreatment as _}from"../../format/lib/content/image-treatment.js";import{heroPictureCount as k,normaliseMediaLayout as N,resolvePhoneLayout as O}from"../../format/lib/hero-media-layout.js";import{normaliseVideoPlayback as S,normaliseVideoSource as A,parseYouTubeId as R}from"../../format/lib/hero-video.js";import{hidableText as C}from"efficient-easel/draw";import{viewHideClass as E}from"../../format/lib/content/view-hide-class.js";const V={one:"max-view-tablet:grid-cols-1 max-view-tablet:grid-rows-1",side:"max-view-tablet:grid-cols-2 max-view-tablet:grid-rows-1",stacked:"max-view-tablet:grid-cols-1 max-view-tablet:grid-rows-2"},I={one:"view-tablet:grid-cols-1 view-tablet:grid-rows-1",side:"view-tablet:grid-cols-2 view-tablet:grid-rows-1",stacked:"view-tablet:grid-cols-1 view-tablet:grid-rows-2"};function Q(e){const o=e.isVideo&&A(e.videoSource)==="youtube",i=e.isVideo&&S(e.videoPlayback)==="click",a=o?R(C(e.youtubeUrl)):null,t=N(e.mediaLayout);return{fromYouTube:o,onClick:i,youTubeId:a,backgroundFile:e.isVideo&&!o&&!i,desktopLayout:t,phoneLayout:O(e.mediaLayoutPhone,t),twoPictures:!e.isVideo&&k(e)>1}}function d(e,o){return y(v({_partMotion:e},o))}function l(e,o){return _(void 0,void 0,T(v({_partMotion:e},o)))}function W(e){return w.some(i=>l(e,i).className)?{hostAttrs:{[H]:""},sheet:j}:{}}function f({treatment:e,children:o}){return e.className?r("div",{className:`absolute inset-0 ${e.className}`,...e.style?{style:e.style}:{},children:o}):r(u,{children:o})}function p({color:e,opacity:o,passClicks:i=!0}){return o>0?r("div",{className:i?"pointer-events-none absolute inset-0 z-[2]":"absolute inset-0 z-[2]",style:{background:e,opacity:Math.min(Math.max(o,0),100)/100}}):null}function g({part:e,editing:o,marked:i=!0,entrance:a,className:t,children:n}){const s=o&&i?{[x]:e}:void 0;return a?r(h,{desktop:a.desktop,phone:a.phone,editing:o,boxClass:t,boxAttrs:s,children:n}):r("div",{className:t,...s,children:n})}function X({partMotion:e,editing:o,children:i}){const a=d(e,"media"),t=l(e,"media"),n=t.className?r("div",{className:`absolute inset-0 z-[1] ${t.className}`,...t.style?{style:t.style}:{},children:i}):i;return a?r(h,{desktop:a.desktop,phone:a.phone,editing:o,boxClass:"absolute inset-0 z-[1]",children:n}):r(u,{children:n})}function Z({desktopLayout:e,phoneLayout:o,editing:i,marked:a=!0,partMotion:t,first:n,second:s,laterSlide:m=!1}){return c("div",{className:`absolute inset-0 z-[1] grid ${V[o]} ${I[e]}`,"data-hero-layout":e,"data-hero-layout-phone":o,children:[r(g,{part:"image",editing:i,marked:a,entrance:d(t,"image"),className:"relative overflow-hidden",children:c(f,{treatment:l(t,"image"),children:[r(b,{posterSrc:P(n.src),showVideo:!1,laterSlide:m,objectPosition:n.objectPosition,objectPositionPhone:n.objectPositionPhone,objectPositionTablet:n.objectPositionTablet}),r(p,{color:n.tintColor,opacity:n.tintOpacity})]})}),r(g,{part:"image2",editing:i,marked:a,entrance:d(t,"image2"),className:`relative overflow-hidden ${E({desktop:e==="one",tablet:e==="one",mobile:o==="one"})}`.trimEnd(),children:c(f,{treatment:l(t,"image2"),children:[r(b,{posterSrc:P(s.src),showVideo:!1,laterSlide:m,objectPosition:s.objectPosition,objectPositionPhone:s.objectPositionPhone,objectPositionTablet:s.objectPositionTablet}),r(p,{color:s.tintColor,opacity:s.tintOpacity})]})})]})}export{X as HeroMediaLayer,g as HeroPickArea,f as HeroPictureHover,p as HeroTint,Z as HeroTwoPictures,Q as heroMediaReading,d as heroPartEntrance,l as heroPartHover,W as heroPicturesHover};
1
+ "use client";import{Fragment as u,jsx as r,jsxs as c}from"react/jsx-runtime";import b from"./HeroPoster.js";import{SectionAnimation as h}from"./SectionAnimation.js";import{resolveMedia as P}from"../lib/media.js";import{HERO_MEDIA_PARTS as w,HERO_PART_ATTR as x}from"../lib/document/hero-media-parts.js";import{entranceDrawn as y}from"../lib/animation/entrance.js";import{readPartMotion as v}from"../lib/animation/part-motion.js";import{pictureHoverOf as T}from"../../format/lib/animation/hover.js";import{PHOTO_HOST_ATTR as H,SITE_PHOTO_CSS as j,resolveImageTreatment as _}from"../../format/lib/content/image-treatment.js";import{heroPictureCount as k,normaliseMediaLayout as S,resolvePhoneLayout as N}from"../../format/lib/hero-media-layout.js";import{normaliseVideoPlayback as O,normaliseVideoSource as A,parseYouTubeId as R}from"../../format/lib/hero-video.js";import{hidableText as C}from"efficient-easel/draw";import{viewHideClass as E}from"../../format/lib/content/view-hide-class.js";const V={one:"max-view-tablet:grid-cols-1 max-view-tablet:grid-rows-1",side:"max-view-tablet:grid-cols-2 max-view-tablet:grid-rows-1",stacked:"max-view-tablet:grid-cols-1 max-view-tablet:grid-rows-2"},I={one:"view-tablet:grid-cols-1 view-tablet:grid-rows-1",side:"view-tablet:grid-cols-2 view-tablet:grid-rows-1",stacked:"view-tablet:grid-cols-1 view-tablet:grid-rows-2"};function Q(e){const o=e.isVideo&&A(e.videoSource)==="youtube",i=e.isVideo&&O(e.videoPlayback)==="click",a=o?R(C(e.youtubeUrl)):null,t=S(e.mediaLayout);return{fromYouTube:o,onClick:i,youTubeId:a,backgroundFile:e.isVideo&&!o&&!i,desktopLayout:t,phoneLayout:N(e.mediaLayoutPhone,t),twoPictures:!e.isVideo&&k(e)>1}}function d(e,o){return y(v({_partMotion:e},o))}function l(e,o){return _(void 0,void 0,T(v({_partMotion:e},o)))}function W(e){return w.some(i=>l(e,i).className)?{hostAttrs:{[H]:""},sheet:j}:{}}function f({treatment:e,children:o}){return e.className?r("div",{className:`absolute inset-0 ${e.className}`,...e.style?{style:e.style}:{},children:o}):r(u,{children:o})}function p({color:e,opacity:o,passClicks:i=!0}){return o>0?r("div",{className:i?"pointer-events-none absolute inset-0 z-[2]":"absolute inset-0 z-[2]",style:{background:e,opacity:Math.min(Math.max(o,0),100)/100}}):null}function g({part:e,editing:o,marked:i=!0,entrance:a,className:t,children:n}){const s=o&&i?{[x]:e}:void 0;return a?r(h,{desktop:a.desktop,phone:a.phone,editing:o,boxClass:t,boxAttrs:s,children:n}):r("div",{className:t,...s,children:n})}function X({partMotion:e,editing:o,children:i}){const a=d(e,"media"),t=l(e,"media"),n=t.className?r("div",{className:`absolute inset-0 z-[1] ${t.className}`,...t.style?{style:t.style}:{},children:i}):i;return a?r(h,{desktop:a.desktop,phone:a.phone,editing:o,boxClass:"absolute inset-0 z-[1]",children:n}):r(u,{children:n})}function Z({desktopLayout:e,phoneLayout:o,editing:i,marked:a=!0,partMotion:t,first:n,second:s,laterSlide:m=!1}){return c("div",{className:`absolute inset-0 z-[1] grid ${V[o]} ${I[e]}`,"data-hero-layout":e,"data-hero-layout-phone":o,children:[r(g,{part:"image",editing:i,marked:a,entrance:d(t,"image"),className:"relative overflow-hidden",children:c(f,{treatment:l(t,"image"),children:[r(b,{posterSrc:P(n.src),showVideo:!1,laterSlide:m,objectPosition:n.objectPosition,objectPositionPhone:n.objectPositionPhone,objectPositionTablet:n.objectPositionTablet}),r(p,{color:n.tintColor,opacity:n.tintOpacity})]})}),r(g,{part:"image2",editing:i,marked:a,entrance:d(t,"image2"),className:`relative overflow-hidden ${E({desktop:e==="one",tablet:e==="one",mobile:o==="one"},{atSectionLine:!0})}`.trimEnd(),children:c(f,{treatment:l(t,"image2"),children:[r(b,{posterSrc:P(s.src),showVideo:!1,laterSlide:m,objectPosition:s.objectPosition,objectPositionPhone:s.objectPositionPhone,objectPositionTablet:s.objectPositionTablet}),r(p,{color:s.tintColor,opacity:s.tintOpacity})]})})]})}export{X as HeroMediaLayer,g as HeroPickArea,f as HeroPictureHover,p as HeroTint,Z as HeroTwoPictures,Q as heroMediaReading,d as heroPartEntrance,l as heroPartHover,W as heroPicturesHover};
@@ -26,6 +26,9 @@ export declare function CellWrap({ className, style, attrs, children, }: {
26
26
  attrs?: Record<string, string>;
27
27
  children: ReactNode;
28
28
  }): ReactNode;
29
+ export declare function CardCopyCell({ children }: {
30
+ children: ReactNode;
31
+ }): import("react").JSX.Element;
29
32
  export declare function SlotsStartAfresh({ children }: {
30
33
  children: ReactNode;
31
34
  }): import("react").JSX.Element;
@@ -1 +1 @@
1
- "use client";import{jsx as r}from"react/jsx-runtime";import{createContext as d,useContext as t}from"react";import{SECTION_FILL_CLASS as a}from"../../format/lib/content/section-min-height.js";import{useTakeViewHide as p,withViewHide as C}from"./ViewHideRoot.js";const f={stretchedRow:!1,fillingColumn:!1},l=d(null),B=()=>t(l)!==null,F=()=>t(l),L=()=>t(l)?.id??null,c=d(!1);function m(){const o=t(l)?.stretchedRow===!0,e=t(c);return o&&!e}const h=()=>t(c);function v(){const o=t(l),e=m(),n=h();return{fill:n?` ${a}`:"",inner:s=>{const i=e||n?r(c.Provider,{value:!0,children:s}):s;return o?.columnsRow?r(l.Provider,{value:{...o,columnsRow:!1},children:i}):i}}}function P({className:o,style:e,attrs:n,children:s}){const{fill:i,inner:x}=v(),u=p();return u.scope(r("div",{className:C(`${o}${i}`,u.className),...e?{style:e}:{},...n,...u.attrs,children:x(s)}))}function A({children:o}){const e=t(l),n=e===null?null:e.id===void 0?f:{...f,id:e.id};return r(l.Provider,{value:n,children:r(c.Provider,{value:!1,children:o})})}export{c as CellFillContext,P as CellWrap,l as InBoxContext,A as SlotsStartAfresh,F as useBoxCell,L as useBoxId,v as useCellLayer,m as useCellOfStretchedRow,h as useFillsCell,B as useInBox};
1
+ "use client";import{jsx as l}from"react/jsx-runtime";import{createContext as a,useContext as t}from"react";import{SECTION_FILL_CLASS as C}from"../../format/lib/content/section-min-height.js";import{useTakeViewHide as p,withViewHide as v}from"./ViewHideRoot.js";const x={stretchedRow:!1,fillingColumn:!1},r=a(null),y=()=>t(r)!==null,B=()=>t(r),F=()=>t(r)?.id??null,c=a(!1);function h(){const e=t(r)?.stretchedRow===!0,o=t(c);return e&&!o}const m=()=>t(c);function w(){const e=t(r),o=h(),n=m();return{fill:n?` ${C}`:"",inner:s=>{const i=o||n?l(c.Provider,{value:!0,children:s}):s;return e?.columnsRow?l(r.Provider,{value:{...e,columnsRow:!1},children:i}):i}}}function L({className:e,style:o,attrs:n,children:s}){const{fill:i,inner:u}=w(),d=p();return d.scope(l("div",{className:v(`${e}${i}`,d.className),...o?{style:o}:{},...n,...d.attrs,children:u(s)}))}const f=a(!1);function A({children:e}){return l(f.Provider,{value:!0,children:l(c.Provider,{value:!0,children:e})})}function H({children:e}){const o=t(r),n=t(f),s=t(c),i=n&&s,u=o===null?null:o.id===void 0?x:{...x,id:o.id};return l(r.Provider,{value:u,children:l(f.Provider,{value:!1,children:l(c.Provider,{value:i,children:e})})})}export{A as CardCopyCell,c as CellFillContext,L as CellWrap,r as InBoxContext,H as SlotsStartAfresh,B as useBoxCell,F as useBoxId,w as useCellLayer,h as useCellOfStretchedRow,m as useFillsCell,y as useInBox};
@@ -1 +1 @@
1
- "use client";import{jsx as e}from"react/jsx-runtime";import{HideTaker as g,NO_HIDE as C,useTakeViewHide as D,withViewHide as k}from"./ViewHideRoot.js";import{useContext as B}from"react";import{SiteLink as T}from"../lib/site-runtime.js";import W,{FOOTER_LOGO_PX as j,WORDMARK_FIT_FLOOR_PX as y}from"./Logo.js";import{media as F}from"../lib/media.js";import{BoxSurfaceContext as R}from"./BoxSurfaceContext.js";import{useBoxCellHasWidth as P}from"./BoxCellContext.js";import{useInSiteHeader as A}from"./PhoneMenuTools.js";import{useSiteLogo as M}from"./SiteLogoContext.js";import{useLogoWall as V}from"./LogoWallContext.js";import{LogoWallMark as z}from"./Logos.js";import{useCardRow as E}from"./CardRowContext.js";import{alignViewClasses as S,BLOCK_ALIGN_JUSTIFY as G}from"../../format/lib/content/block-align.js";function K(s){const o=V(),t=E();if(!o)return e(X,{...s});const m=(s.src??"").trim();return e(g,{className:"text-center",children:e(z,{src:m||void 0,alt:s.alt,look:o.look,logoHeight:o.logoHeight,grayscale:o.grayscale,kind:t?.row.kind})})}function X({src:s,alt:o,href:t,heightPx:m=j,reverse:H=!0,align:i,alignTablet:u,alignPhone:w,color:I=null}){const a=M(),p=(s??"").trim(),l=p?{src:F(p),reversedSrc:null,inkIsDark:null,wordmark:o?.trim()||null}:{src:a.src,reversedSrc:a.reversedSrc,inkIsDark:a.inkIsDark,wordmark:a.wordmark},v=B(R),x=A(),O=P(),r=!x&&O,n=D(),L=!!(i||r||S("justify",i,u,w)),c=L?C:n,d=t||r?C:c,f=e(W,{variant:"footer",sizePx:m,src:l.src,reverse:H,color:I,reversedSrc:l.reversedSrc,inkIsDark:l.inkIsDark,wordmark:l.wordmark,siteName:a.siteName,fitToContainer:x,fitWordmarkToContainer:r,fitFloorPx:r?y:void 0,...v?.dark?{onLightSurface:!1}:{},...d.className?{hideClass:d.className,hideAttrs:d.attrs}:{}}),N=r?"inline-flex max-w-full overflow-x-clip":"inline-flex",h=t?e(T,{href:t,className:k(N,c.className),...c.attrs,children:f}):r?e("span",{className:k(N,c.className),...c.attrs,children:f}):f;if(!L)return n.scope(h);const _=["flex min-w-0",i?G[i]:"",S("justify",i,u,w),r?"[container-type:inline-size]":""].filter(Boolean).join(" ");return n.scope(e("div",{className:k(_,n.className),...n.attrs,children:h}))}export{K as default};
1
+ "use client";import{jsx as e}from"react/jsx-runtime";import{HideTaker as D,NO_HIDE as C,useTakeViewHide as B,withViewHide as k}from"./ViewHideRoot.js";import{useContext as T}from"react";import{SiteLink as W}from"../lib/site-runtime.js";import j,{FOOTER_LOGO_PX as y,WORDMARK_FIT_FLOOR_PX as F}from"./Logo.js";import{media as R}from"../lib/media.js";import{BoxSurfaceContext as P}from"./BoxSurfaceContext.js";import{useBoxCellHasWidth as A}from"./BoxCellContext.js";import{useInSiteHeader as M}from"./PhoneMenuTools.js";import{useSiteLogo as V}from"./SiteLogoContext.js";import{useLogoWall as z}from"./LogoWallContext.js";import{LogoWallMark as E}from"./Logos.js";import{useCardRow as G}from"./CardRowContext.js";import{alignViewClasses as I,BLOCK_ALIGN_JUSTIFY as K}from"../../format/lib/content/block-align.js";import{useInBox as X}from"./InBoxContext.js";function J(s){const o=z(),t=G();if(!o)return e(U,{...s});const m=(s.src??"").trim();return e(D,{className:"text-center",children:e(E,{src:m||void 0,alt:s.alt,look:o.look,logoHeight:o.logoHeight,grayscale:o.grayscale,kind:t?.row.kind})})}function U({src:s,alt:o,href:t,heightPx:m=y,reverse:H=!0,align:i,alignTablet:u,alignPhone:w,color:g=null}){const n=V(),p=(s??"").trim(),l=p?{src:R(p),reversedSrc:null,inkIsDark:null,wordmark:o?.trim()||null}:{src:n.src,reversedSrc:n.reversedSrc,inkIsDark:n.inkIsDark,wordmark:n.wordmark},v=T(P),x=M(),O=A(),r=!x&&O,a=B(),L={atSectionLine:!X()},N=!!(i||r||I("justify",i,u,w,L)),c=N?C:a,d=t||r?C:c,f=e(j,{variant:"footer",sizePx:m,src:l.src,reverse:H,color:g,reversedSrc:l.reversedSrc,inkIsDark:l.inkIsDark,wordmark:l.wordmark,siteName:n.siteName,fitToContainer:x,fitWordmarkToContainer:r,fitFloorPx:r?F:void 0,...v?.dark?{onLightSurface:!1}:{},...d.className?{hideClass:d.className,hideAttrs:d.attrs}:{}}),S=r?"inline-flex max-w-full overflow-x-clip":"inline-flex",h=t?e(W,{href:t,className:k(S,c.className),...c.attrs,children:f}):r?e("span",{className:k(S,c.className),...c.attrs,children:f}):f;if(!N)return a.scope(h);const _=["flex min-w-0",i?K[i]:"",I("justify",i,u,w,L),r?"[container-type:inline-size]":""].filter(Boolean).join(" ");return a.scope(e("div",{className:k(_,a.className),...a.attrs,children:h}))}export{J as default};
@@ -1 +1 @@
1
- import{jsx as n,jsxs as d,Fragment as K}from"react/jsx-runtime";import{PagePicture as h}from"../lib/first-screen.js";import{PaymentMark as y,paymentMarkItems as P}from"efficient-shell/icons/payment";import D from"./BlockFrame.js";import{renderChrome as Y,renderGold as A,renderHeadline as Z}from"./goldPhrases.js";import{LogoWallProvider as M}from"./LogoWallContext.js";import{EMPTY_ELSE_CLASS as U,EMPTY_HIDES_CLASS as J,EmptyHidesStyle as V}from"../lib/content/empty-hides.js";import{media as S}from"../lib/media.js";import{sizedImage as v}from"../../format/lib/sized-image.js";import{stripMarkup as _}from"../../format/lib/markup.js";import{DEFAULT_LOGO_LOOK as X}from"../../format/lib/sections/logo-look.js";import{paymentRowMark as W}from"../lib/sections/payment-rows.js";import{alignViewClasses as q,BLOCK_ALIGN_JUSTIFY as H,blockAlignOf as Q}from"../../format/lib/content/block-align.js";import{FOOTER_MARK_SIZES as C}from"../../format/lib/document/box-footer.js";import{say as ee}from"../../format/lib/editor-words.js";const R={label:"text-[length:var(--size-label,13px)]"},f="sf-logo-wall",te="sf-logo-items",ne="flex flex-wrap items-center",re=(t,e,s)=>{const r=Q(t)??"center";return[ne,H[r],q("justify",r,e,s)].filter(Boolean).join(" ")},$="plain",g={plain:{x:3.5,y:2},cards:{x:.75,y:.75},marks:{x:.75,y:.5}},w=t=>({columnGap:`${g[t].x}rem`,rowGap:`${g[t].y}rem`}),E=(t,e)=>`calc((100% - ${(t-1)*g[e].x}rem) / ${t})`;function se({items:t,contained:e,heading:s,columns:r,grayscale:c,logoHeight:o,bandPadding:a,logos:i,look:l=X,omitHead:m=!1,cards:p,align:u,alignTablet:j,alignPhone:k,labelledBy:G}){const x=re(u,j,k),N=l==="marks",B=r!=null?{flex:`0 0 ${E(r,$)}`}:void 0,O=!m;return d(D,{contained:e,fillWidth:N&&m?"w-auto max-w-full":void 0,className:O&&a==null?"py-10":"",style:!O||a==null?void 0:{paddingTop:`${a}px`,paddingBottom:`${a}px`},children:[!m&&s!=null&&s!==""?n("h2",{className:`mb-8 text-center font-mono ${R.label} uppercase tracking-[0.2em] text-fg-dim`,children:Z(s,!1)}):null,d(le,{listed:N,labelledBy:G,children:[p!==void 0?d(M,{value:{look:l,logoHeight:o,grayscale:c},children:[r!=null?n("style",{children:`.${f}-c${r}>*{flex:0 0 ${E(r,l)}}`}):null,n("div",{className:[f,r!=null?`${f}-c${r}`:"",x].filter(Boolean).join(" "),style:w(l),children:p})]}):i?d(M,{value:{look:l,logoHeight:o,grayscale:c},children:[n(V,{}),r!=null?n("style",{children:`.${f}-c${r}>*{flex:0 0 ${E(r,l)}}`}):null,n(i,{className:[f,J,r!=null?`${f}-c${r}`:"",x].filter(Boolean).join(" "),style:w(l),minEmptyHeight:80})]}):null,p!==void 0?null:n("div",{className:`${te} ${U} ${x}`,style:w($),children:(t??[]).map((b,F)=>n("div",{className:"text-center",style:B,children:n(ce,{src:b.src,alt:b.alt,look:$,logoHeight:o,grayscale:c})},F))})]})]})}function le({listed:t,labelledBy:e,children:s}){return t?n("div",{className:"contents",role:"list",...e?{"aria-labelledby":e}:{"aria-label":ee("Ways to pay")},children:s}):n(K,{children:s})}const L="font-mono text-[12px] uppercase tracking-[0.18em]";function z(t){const e=P({name:_(t)});return!e.length||e.length===1&&e[0].kind==="words"&&!e[0].glyph?[]:e}function I(t){const e=z(t);return e.length?n("span",{className:"flex items-center gap-3",children:e.map((s,r)=>n(y,{item:s,size:20,className:L},r))}):null}const ae=C.sm.mark,ie=Object.values(C),oe=t=>ie.reduce((e,s)=>Math.abs(s.mark-t)<Math.abs(e.mark-t)?s:e).words;function ce({src:t,alt:e,look:s,logoHeight:r,grayscale:c,kind:o,mark:a}){if(s==="marks"){const i=r??ae,l=!t&&o!==void 0?W({label:e,kind:o}):null,m=l?[l]:!t&&e?z(e):[];return n("span",{role:"listitem",className:"flex items-center gap-3",style:{fontSize:`${oe(i)}px`},children:a||(m.length?m.map((p,u)=>n(y,{item:p,size:i},u)):t?n(h,{...T(S(t)),alt:_(e||""),className:"w-auto",style:{height:`${i}px`}}):e&&n("span",{children:A(e)}))})}if(s==="cards"){const i=!t&&o!==void 0?W({label:e,kind:o}):null;return n("div",{className:"sf-card flex h-10 items-center border border-line bg-surface px-4",children:a||(i?n(y,{item:i,size:20,className:L}):!t&&e&&I(e)?I(e):t?n(h,{...T(S(t)),alt:_(e||""),className:c===!1?"max-h-5 w-auto opacity-90":"max-h-5 w-auto opacity-90 grayscale"}):e&&n("span",{className:L,children:A(e)}))})}return t?n(h,{...me(S(t)),alt:e,className:["mx-auto w-auto opacity-60 transition-opacity hover:opacity-100",r==null?"h-7":"",c===!1?"":"grayscale"].filter(Boolean).join(" "),style:r==null?void 0:{height:`${r}px`}}):n("span",{className:`font-mono ${R.label} uppercase tracking-[0.2em] text-fg-dim`,children:Y(e||"Logo")})}function T(t){const e=v(t,{fallbackWidth:320,maxWidth:640});return e.srcSet?{src:e.src,srcSet:e.srcSet,sizes:"120px"}:{src:t}}function me(t){const e=v(t,{fallbackWidth:640,maxWidth:960});return e.srcSet?{src:e.src,srcSet:e.srcSet,sizes:"240px"}:{src:t}}export{L as CARD_WORDS_CLASS,ce as LogoWallMark,se as default};
1
+ import{jsx as n,jsxs as d,Fragment as K}from"react/jsx-runtime";import{PagePicture as h}from"../lib/first-screen.js";import{PaymentMark as y,paymentMarkItems as P}from"efficient-shell/icons/payment";import D from"./BlockFrame.js";import{renderChrome as Y,renderGold as A,renderHeadline as Z}from"./goldPhrases.js";import{LogoWallProvider as M}from"./LogoWallContext.js";import{EMPTY_ELSE_CLASS as U,EMPTY_HIDES_CLASS as J,EmptyHidesStyle as V}from"../lib/content/empty-hides.js";import{media as S}from"../lib/media.js";import{sizedImage as v}from"../../format/lib/sized-image.js";import{stripMarkup as _}from"../../format/lib/markup.js";import{DEFAULT_LOGO_LOOK as X}from"../../format/lib/sections/logo-look.js";import{paymentRowMark as W}from"../lib/sections/payment-rows.js";import{alignViewClasses as q,BLOCK_ALIGN_JUSTIFY as H,blockAlignOf as Q}from"../../format/lib/content/block-align.js";import{FOOTER_MARK_SIZES as C}from"../../format/lib/document/box-footer.js";import{say as ee}from"../../format/lib/editor-words.js";const R={label:"text-[length:var(--size-label,13px)]"},f="sf-logo-wall",te="sf-logo-items",ne="flex flex-wrap items-center",re=(t,e,s)=>{const r=Q(t)??"center";return[ne,H[r],q("justify",r,e,s,{atSectionLine:!0})].filter(Boolean).join(" ")},$="plain",g={plain:{x:3.5,y:2},cards:{x:.75,y:.75},marks:{x:.75,y:.5}},L=t=>({columnGap:`${g[t].x}rem`,rowGap:`${g[t].y}rem`}),w=(t,e)=>`calc((100% - ${(t-1)*g[e].x}rem) / ${t})`;function se({items:t,contained:e,heading:s,columns:r,grayscale:c,logoHeight:o,bandPadding:a,logos:i,look:l=X,omitHead:m=!1,cards:p,align:u,alignTablet:j,alignPhone:k,labelledBy:G}){const x=re(u,j,k),N=l==="marks",B=r!=null?{flex:`0 0 ${w(r,$)}`}:void 0,O=!m;return d(D,{contained:e,fillWidth:N&&m?"w-auto max-w-full":void 0,className:O&&a==null?"py-10":"",style:!O||a==null?void 0:{paddingTop:`${a}px`,paddingBottom:`${a}px`},children:[!m&&s!=null&&s!==""?n("h2",{className:`mb-8 text-center font-mono ${R.label} uppercase tracking-[0.2em] text-fg-dim`,children:Z(s,!1)}):null,d(le,{listed:N,labelledBy:G,children:[p!==void 0?d(M,{value:{look:l,logoHeight:o,grayscale:c},children:[r!=null?n("style",{children:`.${f}-c${r}>*{flex:0 0 ${w(r,l)}}`}):null,n("div",{className:[f,r!=null?`${f}-c${r}`:"",x].filter(Boolean).join(" "),style:L(l),children:p})]}):i?d(M,{value:{look:l,logoHeight:o,grayscale:c},children:[n(V,{}),r!=null?n("style",{children:`.${f}-c${r}>*{flex:0 0 ${w(r,l)}}`}):null,n(i,{className:[f,J,r!=null?`${f}-c${r}`:"",x].filter(Boolean).join(" "),style:L(l),minEmptyHeight:80})]}):null,p!==void 0?null:n("div",{className:`${te} ${U} ${x}`,style:L($),children:(t??[]).map((b,F)=>n("div",{className:"text-center",style:B,children:n(ce,{src:b.src,alt:b.alt,look:$,logoHeight:o,grayscale:c})},F))})]})]})}function le({listed:t,labelledBy:e,children:s}){return t?n("div",{className:"contents",role:"list",...e?{"aria-labelledby":e}:{"aria-label":ee("Ways to pay")},children:s}):n(K,{children:s})}const E="font-mono text-[12px] uppercase tracking-[0.18em]";function z(t){const e=P({name:_(t)});return!e.length||e.length===1&&e[0].kind==="words"&&!e[0].glyph?[]:e}function I(t){const e=z(t);return e.length?n("span",{className:"flex items-center gap-3",children:e.map((s,r)=>n(y,{item:s,size:20,className:E},r))}):null}const ae=C.sm.mark,ie=Object.values(C),oe=t=>ie.reduce((e,s)=>Math.abs(s.mark-t)<Math.abs(e.mark-t)?s:e).words;function ce({src:t,alt:e,look:s,logoHeight:r,grayscale:c,kind:o,mark:a}){if(s==="marks"){const i=r??ae,l=!t&&o!==void 0?W({label:e,kind:o}):null,m=l?[l]:!t&&e?z(e):[];return n("span",{role:"listitem",className:"flex items-center gap-3",style:{fontSize:`${oe(i)}px`},children:a||(m.length?m.map((p,u)=>n(y,{item:p,size:i},u)):t?n(h,{...T(S(t)),alt:_(e||""),className:"w-auto",style:{height:`${i}px`}}):e&&n("span",{children:A(e)}))})}if(s==="cards"){const i=!t&&o!==void 0?W({label:e,kind:o}):null;return n("div",{className:"sf-card flex h-10 items-center border border-line bg-surface px-4",children:a||(i?n(y,{item:i,size:20,className:E}):!t&&e&&I(e)?I(e):t?n(h,{...T(S(t)),alt:_(e||""),className:c===!1?"max-h-5 w-auto opacity-90":"max-h-5 w-auto opacity-90 grayscale"}):e&&n("span",{className:E,children:A(e)}))})}return t?n(h,{...me(S(t)),alt:e,className:["mx-auto w-auto opacity-60 transition-opacity hover:opacity-100",r==null?"h-7":"",c===!1?"":"grayscale"].filter(Boolean).join(" "),style:r==null?void 0:{height:`${r}px`}}):n("span",{className:`font-mono ${R.label} uppercase tracking-[0.2em] text-fg-dim`,children:Y(e||"Logo")})}function T(t){const e=v(t,{fallbackWidth:320,maxWidth:640});return e.srcSet?{src:e.src,srcSet:e.srcSet,sizes:"120px"}:{src:t}}function me(t){const e=v(t,{fallbackWidth:640,maxWidth:960});return e.srcSet?{src:e.src,srcSet:e.srcSet,sizes:"240px"}:{src:t}}export{E as CARD_WORDS_CLASS,ce as LogoWallMark,se as default};
@@ -2,11 +2,12 @@ import { type ReactNode } from "react";
2
2
  import { type PartStyles, type PublishedPartRule } from "../lib/document/part-styles.js";
3
3
  import { type PartMotion } from "../lib/animation/part-motion.js";
4
4
  import type { PartNeedle } from "../lib/document/text-parts.js";
5
- export declare function PublishedPartStyles({ needles, styles, motions, type, children, }: {
5
+ export declare function PublishedPartStyles({ needles, styles, motions, type, atEdge, children, }: {
6
6
  needles: PartNeedle[];
7
7
  styles: PartStyles;
8
8
  motions?: Readonly<Record<string, PartMotion>>;
9
9
  type?: string;
10
+ atEdge?: boolean;
10
11
  children: ReactNode;
11
12
  }): import("react").JSX.Element;
12
13
  export declare function usePartEntrance(rule: PublishedPartRule | null): import("react").RefObject<HTMLSpanElement | null>;
@@ -1 +1 @@
1
- "use client";import{Fragment as x,jsx as d,jsxs as C}from"react/jsx-runtime";import{createContext as h,useContext as f,useEffect as b,useId as v,useMemo as O,useRef as w}from"react";import{armEntrance as A}from"efficient-shell/format";import{blockDrawsTextStyle as F,partRuleForKind as S,partRuleForText as M,partStyleCss as k,publishedPartStyles as j}from"../lib/document/part-styles.js";import{usePhoneWidth as K}from"./SectionAnimation.js";import{styleKeyForPart as L}from"../../format/lib/sections/section-text-kinds.js";import{NO_MOTIONS as N,PART_LIFT_ATTR as g,drawPartEntrance as D,ensurePartLiftSheet as I,firstOnPage as $,partBoxOf as H,partMotionDrawn as B,partMoves as J}from"../lib/animation/part-motion.js";const p=h(null),E=h(null),R=h(null);function Z({needles:t,styles:n,motions:e=N,type:r,children:i}){const c=v(),l=JSON.stringify([c,t,n,e,r]),s=O(()=>{const u=Object.keys(e).filter(o=>J(e[o]));return j(t,n,c,o=>L(r,o),o=>F(r,o),o=>u.includes(o)?B(e[o]):null,u)},[l]);if(!s)return d(x,{children:i});const a=k(s);return C(x,{children:[a&&d("style",{href:`${W}${c}-${Y(a)}`,precedence:_,dangerouslySetInnerHTML:{__html:a.replace(/</g,"\\3c ")}}),d(p.Provider,{value:s,children:i})]})}const P=new WeakMap;function T(t,n){const e=$(n.filter(r=>r.arm));for(const r of n)r===e||!r.undo||(r.undo(),r.undo=void 0);e?.arm&&!e.undo&&(e.undo=e.arm()),n.some(r=>r.lift)?(I(t.ownerDocument),t.setAttribute(g,"")):t.removeAttribute(g)}function ee(t){const n=w(null),e=t?.motion?.entrance??null,r=t?.motion?.hover==="lift",i=K(n,e!==null),c=JSON.stringify(e);return b(()=>{const l=n.current,s=H(l?.parentElement??null);if(!e&&!r||!l||!s)return;const a=e?()=>{const m=D(s,i?e.phone:e.desktop),y=A(s);return()=>{y?.(),m()}}:null,u=P.get(s)??[];P.set(s,u);const o={element:l,arm:a,lift:r};return u.push(o),T(s,u),()=>{const m=u.indexOf(o);m<0||(u.splice(m,1),o.undo?.(),o.undo=void 0,T(s,u),u.length||P.delete(s))}},[c,r,i]),n}const _="sf-part-styles",W=`${_}-`;function Y(t){let n=2166136261;for(let e=0;e<t.length;e+=1)n^=t.charCodeAt(e),n=Math.imul(n,16777619);return(n>>>0).toString(36)}function te(t){const n=f(p),e=f(E),r=M(n,t);return r&&r.stamp!==e?r:null}function ne(t){return S(f(p),t)}function re({stamp:t,children:n}){return d(E.Provider,{value:t,children:n})}function oe({children:t}){const n=f(p);return d(R.Provider,{value:n,children:t})}function se(t){return S(f(R),t)}export{re as ClaimedStamp,_ as PART_STYLES_PRECEDENCE,Z as PublishedPartStyles,oe as SharedPartKinds,ee as usePartEntrance,ne as usePublishedPartKindRule,te as usePublishedPartRule,se as usePublishedSharedKindRule};
1
+ "use client";import{Fragment as S,jsx as a,jsxs as C}from"react/jsx-runtime";import{createContext as x,useContext as f,useEffect as b,useId as v,useMemo as O,useRef as w}from"react";import{armEntrance as A}from"efficient-shell/format";import{blockDrawsTextStyle as F,partRuleForKind as g,partRuleForText as M,partStyleCss as k,publishedPartStyles as j}from"../lib/document/part-styles.js";import{usePhoneWidth as I}from"./SectionAnimation.js";import{useInBox as K}from"./InBoxContext.js";import{styleKeyForPart as L}from"../../format/lib/sections/section-text-kinds.js";import{NO_MOTIONS as N,PART_LIFT_ATTR as E,drawPartEntrance as B,ensurePartLiftSheet as D,firstOnPage as $,partBoxOf as H,partMotionDrawn as J,partMoves as W}from"../lib/animation/part-motion.js";const p=x(null),R=x(null),T=x(null);function te({needles:t,styles:n,motions:e=N,type:r,atEdge:d=!1,children:m}){const c=v(),s=K()||d,h=JSON.stringify([c,t,n,e,r]),o=O(()=>{const l=Object.keys(e).filter(u=>W(e[u]));return j(t,n,c,u=>L(r,u),u=>F(r,u),u=>l.includes(u)?J(e[u]):null,l)},[h]);if(!o)return a(S,{children:m});const i=k(o,{inBox:s});return C(S,{children:[i&&a("style",{href:`${Y}${c}-${q(i)}`,precedence:y,dangerouslySetInnerHTML:{__html:i.replace(/</g,"\\3c ")}}),a(p.Provider,{value:o,children:m})]})}const P=new WeakMap;function _(t,n){const e=$(n.filter(r=>r.arm));for(const r of n)r===e||!r.undo||(r.undo(),r.undo=void 0);e?.arm&&!e.undo&&(e.undo=e.arm()),n.some(r=>r.lift)?(D(t.ownerDocument),t.setAttribute(E,"")):t.removeAttribute(E)}function ne(t){const n=w(null),e=t?.motion?.entrance??null,r=t?.motion?.hover==="lift",d=I(n,e!==null),m=JSON.stringify(e);return b(()=>{const c=n.current,s=H(c?.parentElement??null);if(!e&&!r||!c||!s)return;const h=e?()=>{const l=B(s,d?e.phone:e.desktop),u=A(s);return()=>{u?.(),l()}}:null,o=P.get(s)??[];P.set(s,o);const i={element:c,arm:h,lift:r};return o.push(i),_(s,o),()=>{const l=o.indexOf(i);l<0||(o.splice(l,1),i.undo?.(),i.undo=void 0,_(s,o),o.length||P.delete(s))}},[m,r,d]),n}const y="sf-part-styles",Y=`${y}-`;function q(t){let n=2166136261;for(let e=0;e<t.length;e+=1)n^=t.charCodeAt(e),n=Math.imul(n,16777619);return(n>>>0).toString(36)}function re(t){const n=f(p),e=f(R),r=M(n,t);return r&&r.stamp!==e?r:null}function oe(t){return g(f(p),t)}function se({stamp:t,children:n}){return a(R.Provider,{value:t,children:n})}function ue({children:t}){const n=f(p);return a(T.Provider,{value:n,children:t})}function ie(t){return g(f(T),t)}export{se as ClaimedStamp,y as PART_STYLES_PRECEDENCE,te as PublishedPartStyles,ue as SharedPartKinds,ne as usePartEntrance,oe as usePublishedPartKindRule,re as usePublishedPartRule,ie as usePublishedSharedKindRule};
@@ -2,7 +2,7 @@ import { type CSSProperties, type ReactNode } from "react";
2
2
  import { type EntranceValue } from "efficient-shell/format";
3
3
  import { ENTRANCE_WRAPPER_CLASS } from "../lib/animation/entrance.js";
4
4
  export { ENTRANCE_WRAPPER_CLASS };
5
- export declare function SectionAnimation({ desktop, phone, editing, boxClass, boxAttrs, boxStyle, takesViewHide, children, }: {
5
+ export declare function SectionAnimation({ desktop, phone, editing, boxClass, boxAttrs, boxStyle, takesViewHide, atEdge, children, }: {
6
6
  desktop: EntranceValue;
7
7
  phone: EntranceValue;
8
8
  editing: boolean;
@@ -10,6 +10,7 @@ export declare function SectionAnimation({ desktop, phone, editing, boxClass, bo
10
10
  boxAttrs?: Readonly<Record<string, string>>;
11
11
  boxStyle?: CSSProperties;
12
12
  takesViewHide?: boolean;
13
+ atEdge?: boolean;
13
14
  children: ReactNode;
14
15
  }): ReactNode;
15
16
  export type SeenEntrance = {
@@ -23,6 +24,7 @@ export declare const entranceReplay: {
23
24
  seen: SeenEntrance;
24
25
  };
25
26
  };
27
+ export declare function phoneMediaOf(atEdge: boolean): string;
26
28
  export declare function usePhoneWidth(ref: {
27
29
  current: HTMLElement | null;
28
- }, enabled?: boolean): boolean;
30
+ }, enabled?: boolean, atEdge?: boolean): boolean;
@@ -1 +1 @@
1
- "use client";import{jsx as P}from"react/jsx-runtime";import{NO_HIDE as v,useTakeViewHide as R,withViewHide as _}from"./ViewHideRoot.js";import{useEffect as h,useRef as w,useState as k}from"react";import{armEntrance as H,entranceAttrs as J,playEntrance as L}from"efficient-shell/format";import{PHONE_MEDIA as V}from"../lib/content/view-values.js";import{useCellLayer as $}from"./InBoxContext.js";import{ENTRANCE_WRAPPER_CLASS as E}from"../lib/animation/entrance.js";function q({desktop:e,phone:t,editing:s,boxClass:o,boxAttrs:n,boxStyle:r,takesViewHide:i=!1,children:N}){const c=w(null),m=$(),O=R(),a=i?O:v,u=j(c),S=u?t:e,{attrs:g,style:p}=J(S),d=w(l.seed(e,t)),x=JSON.stringify(e),A=JSON.stringify(t);return h(()=>{const f=c.current;if(f){if(s){const y=l.next(d.current,e,t,u);d.current=y.seen,y.play&&L(f);return}return H(f)}},[x,A,u,s]),a.scope(P("div",{ref:c,className:_(`${E}${m.fill}${o?` ${o}`:""}`,a.className),...n,...a.attrs,...g,...Object.keys(p).length||r?{style:{...r,...p}}:{},children:m.inner(N)}))}const l={seed(e,t){return{desktop:JSON.stringify(e),phone:JSON.stringify(t)}},next(e,t,s,o){const n=l.seed(t,s);return{play:o?n.phone!==e.phone:n.desktop!==e.desktop,seen:n}}};function j(e,t=!0){const[s,o]=k(!1);return h(()=>{if(!t)return;const n=e.current?.ownerDocument?.defaultView??(typeof window>"u"?null:window);if(!n?.matchMedia)return;const r=n.matchMedia(V),i=()=>o(r.matches);return i(),r.addEventListener("change",i),()=>r.removeEventListener("change",i)},[e,t]),s}export{E as ENTRANCE_WRAPPER_CLASS,q as SectionAnimation,l as entranceReplay,j as usePhoneWidth};
1
+ "use client";import{jsx as g}from"react/jsx-runtime";import{NO_HIDE as v,useTakeViewHide as D,withViewHide as H}from"./ViewHideRoot.js";import{useEffect as w,useRef as N,useState as M}from"react";import{armEntrance as R,entranceAttrs as k,playEntrance as I}from"efficient-shell/format";import{EDGE_PHONE_MEDIA as J,PHONE_MEDIA as L}from"../lib/content/view-values.js";import{useCellLayer as V,useInBox as $}from"./InBoxContext.js";import{ENTRANCE_WRAPPER_CLASS as O}from"../lib/animation/entrance.js";function F({desktop:e,phone:t,editing:r,boxClass:o,boxAttrs:n,boxStyle:s,takesViewHide:a=!1,atEdge:i=!1,children:c}){const u=N(null),d=V(),x=D(),f=a?x:v,l=C(u,!0,i),A=l?t:e,{attrs:P,style:y}=k(A),h=N(m.seed(e,t)),S=JSON.stringify(e),_=JSON.stringify(t);return w(()=>{const p=u.current;if(p){if(r){const E=m.next(h.current,e,t,l);h.current=E.seen,E.play&&I(p);return}return R(p)}},[S,_,l,r]),f.scope(g("div",{ref:u,className:H(`${O}${d.fill}${o?` ${o}`:""}`,f.className),...n,...f.attrs,...P,...Object.keys(y).length||s?{style:{...s,...y}}:{},children:d.inner(c)}))}const m={seed(e,t){return{desktop:JSON.stringify(e),phone:JSON.stringify(t)}},next(e,t,r,o){const n=m.seed(t,r);return{play:o?n.phone!==e.phone:n.desktop!==e.desktop,seen:n}}};function j(e){return e?J:L}function C(e,t=!0,r=!1){const[o,n]=M(!1),s=j($()||r);return w(()=>{if(!t)return;const a=e.current?.ownerDocument?.defaultView??(typeof window>"u"?null:window);if(!a?.matchMedia)return;const i=a.matchMedia(s),c=()=>n(i.matches);return c(),i.addEventListener("change",c),()=>i.removeEventListener("change",c)},[e,t,s]),o}export{O as ENTRANCE_WRAPPER_CLASS,F as SectionAnimation,m as entranceReplay,j as phoneMediaOf,C as usePhoneWidth};
@@ -1 +1 @@
1
- import{jsx as e,jsxs as i}from"react/jsx-runtime";import{alignViewAnswers as V,alignViewClasses as X}from"../../format/lib/content/block-align.js";import{SiteLink as $}from"../lib/site-runtime.js";import G from"./Btn.js";import{resolveImageTreatment as Z}from"../../format/lib/content/image-treatment.js";import E from"./Placeholder.js";import{useSitePhotography as D}from"./SitePhotographyContext.js";import K from"./SectionEyebrow.js";import{renderGold as s,renderHeadline as R,splitParagraphs as Y}from"./goldPhrases.js";import{ON_MEDIA_INK_STYLE as q}from"../../format/lib/content/ink.js";import{scrim as J}from"../../format/lib/content/scrim.js";import{SECTION_FILL_CLASS as Q}from"../../format/lib/content/section-min-height.js";import{HALF_SIZES as L}from"../../format/lib/sized-image.js";const a={headingMediumUpTo800:"max-view-wide:text-[length:var(--size-headingMedium,36px)]",labelUpTo800:"max-view-wide:text-[length:var(--size-label,12px)]",headingMedium:"text-[length:min(var(--size-headingMedium,56px),var(--sf-heading-max,9999px))]",body:"text-[length:var(--size-body,16px)]",label:"text-[length:var(--size-label,13px)]"},z={words:{left:"min-[961px]:pl-[max(60px,calc(100%_-_var(--sf-content-cap,200%)/2_+_60px))]",right:"min-[961px]:pr-[max(60px,calc(100%_-_var(--sf-content-cap,200%)/2_+_60px))]"},buttons:{left:"min-[961px]:pl-[max(var(--sf-site-gutter,40px),calc(100%_-_var(--sf-content-cap,200%)/2_+_var(--sf-site-gutter,40px)))]",right:"min-[961px]:pr-[max(var(--sf-site-gutter,40px),calc(100%_-_var(--sf-content-cap,200%)/2_+_var(--sf-site-gutter,40px)))]"}};function W({imageLabel:x,imageSrc:f,imageTint:v=.4,imageObjectPosition:S,eyebrow:h,title:b,body:g,cta:c,reverse:n=!1,uppercase:T=!1,textAlign:m="left",textAlignTablet:w,textAlignPhone:u,textBgSrc:p,textBgLabel:I,textBgTint:_=.6,textBgObjectPosition:M,featureBar:r,imageButton:l,grayscale:C,pictureHover:P,fillHeight:O=!1}){const y=Z(C,D(),P),N={left:{items:"",text:"",cta:"self-start"},center:{items:"items-center",text:"text-center",cta:"self-center"},right:{items:"items-end",text:"text-right",cta:"self-end"}},d=N[m]??N.left,j={left:{items:"view-tablet:max-view-desktop:items-stretch",cta:"view-tablet:max-view-desktop:self-start"},center:{items:"view-tablet:max-view-desktop:items-center",cta:"view-tablet:max-view-desktop:self-center"},right:{items:"view-tablet:max-view-desktop:items-end",cta:"view-tablet:max-view-desktop:self-end"}},k={left:{items:"max-view-tablet:items-stretch",cta:"max-view-tablet:self-start"},center:{items:"max-view-tablet:items-center",cta:"max-view-tablet:self-center"},right:{items:"max-view-tablet:items-end",cta:"max-view-tablet:self-end"}},t=V(m,w,u),o={text:X("text",m,w,u),items:[t.tablet&&j[t.tablet].items,t.phone&&k[t.phone].items].filter(Boolean).join(" "),cta:[t.tablet&&j[t.tablet].cta,t.phone&&k[t.phone].cta].filter(Boolean).join(" ")},U=n?"right":"left",F=n?"left":"right";return e("section",{className:"relative z-[2] bg-bg p-0",children:i("div",{className:["grid min-h-[72vh] grid-cols-2 border-t border-b border-line","max-[960px]:grid-cols-1","max-[960px]:min-h-0",n?"min-[961px]:[direction:rtl]":"",...O?[Q]:[]].join(" "),children:[i("div",{className:"sf-card relative flex items-center justify-center overflow-hidden bg-surface [direction:ltr] max-[960px]:aspect-[4/3] max-[960px]:order-2",style:n?{borderLeft:"1px solid var(--site-line)"}:{borderRight:"1px solid var(--site-line)"},children:[e(E,{label:x,src:f,objectPosition:S,treatment:y,sizes:L}),f&&v>0&&e("div",{className:"absolute inset-0",style:{background:`rgba(0,0,0,${v})`}}),(r||l)&&i("div",{className:`pointer-events-none absolute inset-0 z-[3] flex flex-col items-center justify-center gap-4 px-[var(--sf-site-gutter,40px)] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))] ${z.buttons[U]}`,children:[r&&i($,{href:r.href,className:`pointer-events-auto inline-flex items-center justify-center gap-3 border px-7 py-4 font-mono ${a.label} uppercase tracking-[0.18em] backdrop-blur-sm transition-colors max-view-wide:gap-2 max-view-wide:px-5 max-view-wide:py-3 ${a.labelUpTo800}`,style:{borderColor:"color-mix(in srgb, var(--overlay-fg) 30%, transparent)",color:"color-mix(in srgb, var(--overlay-fg) 85%, transparent)",background:J(.45)},children:[e("span",{children:s(r.wheel)}),e("span",{"aria-hidden":!0,style:{opacity:.55},children:"·"}),e("span",{children:s(r.category)}),e("span",{"aria-hidden":!0,children:"→"}),e("span",{children:s(r.cta??"Shop now")})]}),l&&i($,{href:l.href,className:`pointer-events-auto inline-flex items-center justify-center gap-2 border px-7 py-4 font-mono ${a.label} uppercase tracking-[0.18em] backdrop-blur-sm transition-colors hover:bg-[color-mix(in_srgb,var(--overlay-fg)_10%,transparent)] max-view-wide:gap-2 max-view-wide:px-5 max-view-wide:py-3 ${a.labelUpTo800}`,style:{borderColor:"color-mix(in srgb, var(--overlay-fg) 50%, transparent)",color:"color-mix(in srgb, var(--overlay-fg) 95%, transparent)",background:"transparent"},children:[e("span",{children:s(l.text??"Learn more")}),e("span",{"aria-hidden":!0,children:"→"})]})]})]}),i("div",{className:"relative overflow-hidden [direction:ltr] max-[960px]:order-1",children:[p&&i("div",{className:"absolute inset-0","aria-hidden":!0,children:[e(E,{label:I??x,src:p,objectPosition:M,treatment:y,sizes:L}),_>0&&e("div",{className:"absolute inset-0",style:{background:`rgba(0,0,0,${_})`}})]}),e("div",{className:`relative z-[2] flex h-full min-h-full flex-col px-[60px] py-[100px] max-[960px]:px-6 max-[960px]:py-[60px] ${z.words[F]}`,style:p?q:void 0,children:i("div",{className:["flex flex-1 flex-col justify-center gap-6",d.items,d.text,o.items,o.text].filter(Boolean).join(" "),children:[h&&e(K,{text:h,size:14}),b&&e("h2",{className:[`font-heading2 ${a.headingMedium} font-normal leading-[1.05] tracking-[-0.03em]`,`${a.headingMediumUpTo800} max-view-wide:leading-[1]`,T?"uppercase":""].join(" "),children:R(b,!1)}),g&&Y(g).map((A,H)=>e("p",{className:[`max-w-[520px] ${a.body} leading-[1.7]`,"text-fg-dim"].join(" "),children:s(A)},H)),c.text&&e("div",{className:`mt-2 ${d.cta}${o.cta?` ${o.cta}`:""}`,children:e(G,{href:c.href,variant:"primary",children:s(c.text)})})]})})]})]})})}export{W as default};
1
+ import{jsx as e,jsxs as i}from"react/jsx-runtime";import{alignViewAnswers as V,alignViewClasses as X}from"../../format/lib/content/block-align.js";import{SiteLink as $}from"../lib/site-runtime.js";import G from"./Btn.js";import{resolveImageTreatment as Z}from"../../format/lib/content/image-treatment.js";import L from"./Placeholder.js";import{useSitePhotography as D}from"./SitePhotographyContext.js";import K from"./SectionEyebrow.js";import{renderGold as s,renderHeadline as R,splitParagraphs as Y}from"./goldPhrases.js";import{ON_MEDIA_INK_STYLE as q}from"../../format/lib/content/ink.js";import{scrim as J}from"../../format/lib/content/scrim.js";import{SECTION_FILL_CLASS as Q}from"../../format/lib/content/section-min-height.js";import{HALF_SIZES as E}from"../../format/lib/sized-image.js";const a={headingMediumUpTo800:"max-view-wide:text-[length:var(--size-headingMedium,36px)]",labelUpTo800:"max-view-wide:text-[length:var(--size-label,12px)]",headingMedium:"text-[length:min(var(--size-headingMedium,56px),var(--sf-heading-max,9999px))]",body:"text-[length:var(--size-body,16px)]",label:"text-[length:var(--size-label,13px)]"},z={words:{left:"min-[961px]:pl-[max(60px,calc(100%_-_var(--sf-content-cap,200%)/2_+_60px))]",right:"min-[961px]:pr-[max(60px,calc(100%_-_var(--sf-content-cap,200%)/2_+_60px))]"},buttons:{left:"min-[961px]:pl-[max(var(--sf-site-gutter,40px),calc(100%_-_var(--sf-content-cap,200%)/2_+_var(--sf-site-gutter,40px)))]",right:"min-[961px]:pr-[max(var(--sf-site-gutter,40px),calc(100%_-_var(--sf-content-cap,200%)/2_+_var(--sf-site-gutter,40px)))]"}};function W({imageLabel:x,imageSrc:f,imageTint:v=.4,imageObjectPosition:S,eyebrow:h,title:b,body:g,cta:c,reverse:n=!1,uppercase:T=!1,textAlign:m="left",textAlignTablet:w,textAlignPhone:u,textBgSrc:p,textBgLabel:I,textBgTint:_=.6,textBgObjectPosition:M,featureBar:r,imageButton:l,grayscale:C,pictureHover:P,fillHeight:O=!1}){const y=Z(C,D(),P),N={left:{items:"",text:"",cta:"self-start"},center:{items:"items-center",text:"text-center",cta:"self-center"},right:{items:"items-end",text:"text-right",cta:"self-end"}},d=N[m]??N.left,j={left:{items:"view-tablet:max-view-desktop:items-stretch",cta:"view-tablet:max-view-desktop:self-start"},center:{items:"view-tablet:max-view-desktop:items-center",cta:"view-tablet:max-view-desktop:self-center"},right:{items:"view-tablet:max-view-desktop:items-end",cta:"view-tablet:max-view-desktop:self-end"}},k={left:{items:"max-view-tablet:items-stretch",cta:"max-view-tablet:self-start"},center:{items:"max-view-tablet:items-center",cta:"max-view-tablet:self-center"},right:{items:"max-view-tablet:items-end",cta:"max-view-tablet:self-end"}},t=V(m,w,u),o={text:X("text",m,w,u,{atSectionLine:!0}),items:[t.tablet&&j[t.tablet].items,t.phone&&k[t.phone].items].filter(Boolean).join(" "),cta:[t.tablet&&j[t.tablet].cta,t.phone&&k[t.phone].cta].filter(Boolean).join(" ")},U=n?"right":"left",F=n?"left":"right";return e("section",{className:"relative z-[2] bg-bg p-0",children:i("div",{className:["grid min-h-[72vh] grid-cols-2 border-t border-b border-line","max-[960px]:grid-cols-1","max-[960px]:min-h-0",n?"min-[961px]:[direction:rtl]":"",...O?[Q]:[]].join(" "),children:[i("div",{className:"sf-card relative flex items-center justify-center overflow-hidden bg-surface [direction:ltr] max-[960px]:aspect-[4/3] max-[960px]:order-2",style:n?{borderLeft:"1px solid var(--site-line)"}:{borderRight:"1px solid var(--site-line)"},children:[e(L,{label:x,src:f,objectPosition:S,treatment:y,sizes:E}),f&&v>0&&e("div",{className:"absolute inset-0",style:{background:`rgba(0,0,0,${v})`}}),(r||l)&&i("div",{className:`pointer-events-none absolute inset-0 z-[3] flex flex-col items-center justify-center gap-4 px-[var(--sf-site-gutter,40px)] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))] ${z.buttons[U]}`,children:[r&&i($,{href:r.href,className:`pointer-events-auto inline-flex items-center justify-center gap-3 border px-7 py-4 font-mono ${a.label} uppercase tracking-[0.18em] backdrop-blur-sm transition-colors max-view-wide:gap-2 max-view-wide:px-5 max-view-wide:py-3 ${a.labelUpTo800}`,style:{borderColor:"color-mix(in srgb, var(--overlay-fg) 30%, transparent)",color:"color-mix(in srgb, var(--overlay-fg) 85%, transparent)",background:J(.45)},children:[e("span",{children:s(r.wheel)}),e("span",{"aria-hidden":!0,style:{opacity:.55},children:"·"}),e("span",{children:s(r.category)}),e("span",{"aria-hidden":!0,children:"→"}),e("span",{children:s(r.cta??"Shop now")})]}),l&&i($,{href:l.href,className:`pointer-events-auto inline-flex items-center justify-center gap-2 border px-7 py-4 font-mono ${a.label} uppercase tracking-[0.18em] backdrop-blur-sm transition-colors hover:bg-[color-mix(in_srgb,var(--overlay-fg)_10%,transparent)] max-view-wide:gap-2 max-view-wide:px-5 max-view-wide:py-3 ${a.labelUpTo800}`,style:{borderColor:"color-mix(in srgb, var(--overlay-fg) 50%, transparent)",color:"color-mix(in srgb, var(--overlay-fg) 95%, transparent)",background:"transparent"},children:[e("span",{children:s(l.text??"Learn more")}),e("span",{"aria-hidden":!0,children:"→"})]})]})]}),i("div",{className:"relative overflow-hidden [direction:ltr] max-[960px]:order-1",children:[p&&i("div",{className:"absolute inset-0","aria-hidden":!0,children:[e(L,{label:I??x,src:p,objectPosition:M,treatment:y,sizes:E}),_>0&&e("div",{className:"absolute inset-0",style:{background:`rgba(0,0,0,${_})`}})]}),e("div",{className:`relative z-[2] flex h-full min-h-full flex-col px-[60px] py-[100px] max-[960px]:px-6 max-[960px]:py-[60px] ${z.words[F]}`,style:p?q:void 0,children:i("div",{className:["flex flex-1 flex-col justify-center gap-6",d.items,d.text,o.items,o.text].filter(Boolean).join(" "),children:[h&&e(K,{text:h,size:14}),b&&e("h2",{className:[`font-heading2 ${a.headingMedium} font-normal leading-[1.05] tracking-[-0.03em]`,`${a.headingMediumUpTo800} max-view-wide:leading-[1]`,T?"uppercase":""].join(" "),children:R(b,!1)}),g&&Y(g).map((A,H)=>e("p",{className:[`max-w-[520px] ${a.body} leading-[1.7]`,"text-fg-dim"].join(" "),children:s(A)},H)),c.text&&e("div",{className:`mt-2 ${d.cta}${o.cta?` ${o.cta}`:""}`,children:e(G,{href:c.href,variant:"primary",children:s(c.text)})})]})})]})]})})}export{W as default};
@@ -1 +1 @@
1
- import{jsx as r,jsxs as z}from"react/jsx-runtime";import v from"./BlockFrame.js";import{renderGold as h,renderHeadline as L,splitParagraphs as R}from"./goldPhrases.js";import{headingLook as A}from"./Heading.js";import{alignViewClasses as M}from"../../format/lib/content/block-align.js";import{textTagOf as U}from"../../format/lib/content/text-tag.js";import{KICKER_NUMBER_ATTR as B,kickerLead as G}from"../lib/content/page-contents.js";import{isTextStyleId as H}from"../lib/document/part-styles.js";import{faceClassOf as S}from"../../format/lib/text-style-face.js";import{useMirroredCopy as I}from"./MirrorContext.js";import{mirroredTextClasses as C}from"../../format/lib/content/mirror-cards.js";import K from"./PartStyledKind.js";const c={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)]"},m=e=>e?` ${e}`:"";function P(e,o,l){const t=M("place",e,o,l);return t?` ${t}`:""}const F={left:"text-left",center:"text-left mx-auto",right:"text-left ml-auto"},V=`max-w-[380px] ${c.bodySmall} leading-[1.5] opacity-80 ${c.bodyUpTo800}`,W={default:"text-fg",dim:"text-fg-dim"};function X(e){return String(Math.min(Number(e.slice(8)),6))}function Z({text:e,labelId:o,number:l,align:t,alignTablet:k,alignPhone:w,tone:u,contained:g,hero:E=!1,pad:n,tag:_,textStyle:y,ownWidth:O=!1,partAlign:$,onLine:d=!1,partKey:T,partDeclare:j=!1}){const f=s=>T?r(K,{kind:T,declare:j,children:s}):s,b=I();if(E)return r("p",{className:V,children:h(e)});const p=l?r("span",{[B]:"",children:G(l)}):void 0,a=H(y)?y:void 0,N=`${a?`${S({id:a})} `:""}${O?"":"max-w-[680px] "}whitespace-pre-line ${a==="body-5"?c.label:c.bodyLarge} leading-[1.7]${m(t?F[t]:"")}${P(t,k,w)}${m(u?W[u]:"")}${m(C(b,t,$))}`,x=U(_);if(a?.startsWith("heading-")){const s=X(a),i=A(s,S({id:a}));return r(v,{contained:g,className:d?"":"py-6",pad:n?{values:n,frame:d?0:24}:void 0,children:z(x,{id:o,className:`${i.className}${m(C(b,void 0,$))}`,style:i.style,children:[p,f(L(e.trim(),!1))]})})}return r(v,{contained:g,className:d?"":"py-4",pad:n?{values:n,frame:d?0:16}:void 0,children:x==="p"?R(e).map((s,i)=>r("p",{id:i===0?o:void 0,className:N,children:f(h(s,!1,i===0?p:void 0))},i)):r(x,{id:o,className:N,children:f(h(e.trim(),!1,p))})})}export{Z as default,X as headingLevelOfStyle};
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 +1 @@
1
- import{jsx as r,jsxs as m}from"react/jsx-runtime";import{HideTaker as k}from"./ViewHideRoot.js";import{alignViewClasses as y}from"../../format/lib/content/block-align.js";import{SiteLink as j}from"../lib/site-runtime.js";import{renderHeadline as N}from"./goldPhrases.js";import{say as _}from"../../format/lib/editor-words.js";function z({title:n,buttons:x,padTop:o,padBottom:l,buttonsAlign:s,buttonsAlignTablet:d,buttonsAlignPhone:f,editing:p=!1}={}){const c=typeof o=="number"?o:140,g=typeof l=="number"?l:140,i=(x??[]).filter(t=>p||(t.label??"").trim()),e=!!(n??"").trim(),a=!e&&(s==="center"||s==="left")?s:null,h=e?"":y("items",a??"right",d,f);return!p&&!e&&i.length===0?null:r(k,{as:"section",className:"relative z-[2] bg-bg",children:m("div",{className:[a==="center"?"mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-1 items-center justify-items-center gap-[60px] border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]":a==="left"?"mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-1 items-center justify-items-start gap-[60px] border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]":"mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-[1fr_auto] items-center gap-[60px] border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:grid-cols-1 max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]",h].filter(Boolean).join(" "),style:{paddingTop:c,paddingBottom:g},children:[a===null&&!e&&i.length>0&&r("div",{"aria-hidden":!0,className:"max-view-desktop:hidden"}),e&&r("h2",{className:"max-w-[1000px] font-display text-[length:min(var(--size-headingLarge,clamp(48px,7vw,108px)),var(--sf-heading-max,9999px))] [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-[0.94] tracking-[-0.035em] text-fg",children:N(n??"")}),i.length>0&&r("div",{className:"flex min-w-[280px] flex-col gap-3.5 max-view-desktop:min-w-0",children:i.map((t,v)=>{const u=(t.label??"").trim()||_("Button label"),b=t.href||"#",w=t.variant==="primary";return m(j,{href:b,className:["flex items-center justify-between gap-6 px-7 py-5","font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.3em] transition-colors",w?"border border-btn bg-btn text-btn-ink hover:border-fg hover:bg-fg":"border border-line text-fg hover:border-accent hover:text-accent"].join(" "),children:[u," ",r("span",{"aria-hidden":!0,children:"→"})]},v)})})]})})}export{z as default};
1
+ import{jsx as r,jsxs as m}from"react/jsx-runtime";import{HideTaker as k}from"./ViewHideRoot.js";import{alignViewClasses as y}from"../../format/lib/content/block-align.js";import{SiteLink as j}from"../lib/site-runtime.js";import{renderHeadline as N}from"./goldPhrases.js";import{say as L}from"../../format/lib/editor-words.js";function _({title:n,buttons:x,padTop:o,padBottom:l,buttonsAlign:s,buttonsAlignTablet:d,buttonsAlignPhone:f,editing:p=!1}={}){const c=typeof o=="number"?o:140,g=typeof l=="number"?l:140,i=(x??[]).filter(t=>p||(t.label??"").trim()),e=!!(n??"").trim(),a=!e&&(s==="center"||s==="left")?s:null,h=e?"":y("items",a??"right",d,f,{atSectionLine:!0});return!p&&!e&&i.length===0?null:r(k,{as:"section",className:"relative z-[2] bg-bg",children:m("div",{className:[a==="center"?"mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-1 items-center justify-items-center gap-[60px] border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]":a==="left"?"mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-1 items-center justify-items-start gap-[60px] border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]":"mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-[1fr_auto] items-center gap-[60px] border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:grid-cols-1 max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]",h].filter(Boolean).join(" "),style:{paddingTop:c,paddingBottom:g},children:[a===null&&!e&&i.length>0&&r("div",{"aria-hidden":!0,className:"max-view-desktop:hidden"}),e&&r("h2",{className:"max-w-[1000px] font-display text-[length:min(var(--size-headingLarge,clamp(48px,7vw,108px)),var(--sf-heading-max,9999px))] [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-[0.94] tracking-[-0.035em] text-fg",children:N(n??"")}),i.length>0&&r("div",{className:"flex min-w-[280px] flex-col gap-3.5 max-view-desktop:min-w-0",children:i.map((t,v)=>{const u=(t.label??"").trim()||L("Button label"),b=t.href||"#",w=t.variant==="primary";return m(j,{href:b,className:["flex items-center justify-between gap-6 px-7 py-5","font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.3em] transition-colors",w?"border border-btn bg-btn text-btn-ink hover:border-fg hover:bg-fg":"border border-line text-fg hover:border-accent hover:text-accent"].join(" "),children:[u," ",r("span",{"aria-hidden":!0,children:"→"})]},v)})})]})})}export{_ as default};
@@ -1,8 +1,11 @@
1
1
  import { type HTMLAttributes, type ReactNode } from "react";
2
2
  type ViewHideClaim = {
3
3
  readonly className: string;
4
+ readonly sectionClassName?: string;
4
5
  readonly words: string;
6
+ readonly line?: ViewHideLineOf;
5
7
  };
8
+ export type ViewHideLineOf = "edge" | "section" | "by-box";
6
9
  export declare const ViewHideContext: import("react").Context<ViewHideClaim | null>;
7
10
  export declare const VIEW_HIDE_ATTR = "data-sf-view-hide";
8
11
  export type ViewHideTake = {
@@ -11,7 +14,10 @@ export type ViewHideTake = {
11
14
  readonly scope: (element: ReactNode) => ReactNode;
12
15
  };
13
16
  export declare const NO_HIDE: ViewHideTake;
14
- export declare const viewHideClaim: (className: string, words: string) => ViewHideClaim | null;
17
+ export declare const viewHideClaim: (className: string, words: string, line?: {
18
+ readonly sectionClassName?: string;
19
+ readonly line?: ViewHideLineOf;
20
+ }) => ViewHideClaim | null;
15
21
  export declare function useTakeViewHide(): ViewHideTake;
16
22
  export declare function usePeekViewHide(): string;
17
23
  export declare const withViewHide: (className: string | undefined, hide: string) => string | undefined;
@@ -1 +1 @@
1
- "use client";import{createContext as f,createElement as i,useContext as l}from"react";const a=f(null),m="data-sf-view-hide",u=e=>i(a.Provider,{value:null},e),p={className:"",attrs:{},scope:u},d=p,H=(e,t)=>e?{className:e,words:t}:null;function x(){const e=l(a);return e===null?d:{className:e.className,attrs:{[m]:e.words},scope:u}}function k(){return l(a)?.className??""}const N=(e,t)=>t?e?`${e} ${t}`:t:e;function v(e){const t=x(),s=e.takes===!1?p:t,o={};let c=!1;for(const[n,r]of Object.entries(e))n==="as"||n==="takes"||n==="children"||(n==="className"?(o.className=N(r,s.className),c=!0):o[n]=r);return!c&&s.className&&(o.className=s.className),s.scope(i(e.as??"div",{...o,...s.attrs},e.children))}export{v as HideTaker,p as NO_HIDE,m as VIEW_HIDE_ATTR,a as ViewHideContext,k as usePeekViewHide,x as useTakeViewHide,H as viewHideClaim,N as withViewHide};
1
+ "use client";import{createContext as m,createElement as l,useContext as r}from"react";import{InBoxContext as d}from"./InBoxContext.js";const a=m(null),w="data-sf-view-hide",u=e=>l(a.Provider,{value:null},e),N={className:"",attrs:{},scope:u},p=N,E=(e,s,t={})=>e?{className:e,words:s,...t}:null,f=(e,s)=>e.sectionClassName===void 0?{className:e.className,words:e.words}:e.line==="edge"||e.line!=="section"&&s?{className:e.className,words:`${e.words} edge`}:{className:e.sectionClassName,words:e.words};function x(){const e=r(a),s=r(d)!==null;if(e===null)return p;const t=f(e,s);return{className:t.className,attrs:{[w]:t.words},scope:u}}function v(){const e=r(a),s=r(d)!==null;return e===null?"":f(e,s).className}const C=(e,s)=>s?e?`${e} ${s}`:s:e;function V(e){const s=x(),t=e.takes===!1?N:s,o={};let c=!1;for(const[n,i]of Object.entries(e))n==="as"||n==="takes"||n==="children"||(n==="className"?(o.className=C(i,t.className),c=!0):o[n]=i);return!c&&t.className&&(o.className=t.className),t.scope(l(e.as??"div",{...o,...t.attrs},e.children))}export{V as HideTaker,N as NO_HIDE,w as VIEW_HIDE_ATTR,a as ViewHideContext,v as usePeekViewHide,x as useTakeViewHide,E as viewHideClaim,C as withViewHide};
@@ -13,8 +13,11 @@ export type BlockSize = {
13
13
  style: Record<string, string>;
14
14
  attrs: Record<string, string>;
15
15
  };
16
+ export type BlockSizeLine = {
17
+ readonly atSectionLine?: boolean;
18
+ };
16
19
  export declare function blockFillInCellClass(values: BlockSizeValues): string;
17
- export declare function blockSizeOf(values: BlockSizeValues): BlockSize | null;
20
+ export declare function blockSizeOf(values: BlockSizeValues, { atSectionLine }?: BlockSizeLine): BlockSize | null;
18
21
  export declare function blockSetsItsWidth(values: BlockSizeValues): boolean;
19
22
  export declare function blockCanWidenPastCell(values: BlockSizeValues): boolean;
20
23
  export declare function blockSizeValuesOf(props: Readonly<Record<string, unknown>>): BlockSizeValues;
@@ -1 +1 @@
1
- import{BLOCK_FIXED_WIDTH as E,BLOCK_SIZE_KEYS as A,parseBlockWidthFit as c,phoneKey as N,parseTextFit as k,tabletKey as O}from"efficient-easel/draw";import{TEXT_FIT_ATTR as f}from"../../../format/lib/fit-words.js";const B="sf-block-size",d=e=>typeof e=="number"&&Number.isFinite(e)&&e>=0?e:void 0,D={desktop:{fill:"view-wide:w-full view-wide:[.flex-row>&]:grow",fixed:"view-wide:w-[min(var(--sf-bw),100%)] view-wide:basis-auto! view-wide:grow-0! view-wide:shrink-0"},phone:{fill:"max-view-wide:w-full",fixed:"max-view-wide:w-[min(var(--sf-bw-p),100%)] max-view-wide:basis-auto! max-view-wide:grow-0! max-view-wide:shrink-0"}},K={desktop:{fill:"view-desktop:w-full view-desktop:[.flex-row>&]:grow",fixed:"view-desktop:w-[min(var(--sf-bw),100%)] view-desktop:basis-auto! view-desktop:grow-0! view-desktop:shrink-0"},tablet:{fill:"view-tablet:max-view-desktop:w-full view-wide:max-view-desktop:[.flex-row>&]:grow",fixed:"view-tablet:max-view-desktop:w-[min(var(--sf-bw-t),100%)] view-tablet:max-view-desktop:basis-auto! view-tablet:max-view-desktop:grow-0! view-tablet:max-view-desktop:shrink-0"},phone:{fill:"max-view-tablet:w-full",fixed:"max-view-tablet:w-[min(var(--sf-bw-p),100%)] max-view-tablet:basis-auto! max-view-tablet:grow-0! max-view-tablet:shrink-0"}},y={two:{desktop:"view-wide:[.flex-row>*>&]:grow"},three:{desktop:"view-desktop:[.flex-row>*>&]:grow",tablet:"view-wide:max-view-desktop:[.flex-row>*>&]:grow"}},z={desktop:"--sf-bw",tablet:"--sf-bw-t",phone:"--sf-bw-p"},H={minWidth:{desktop:["--sf-bmin","view-wide:min-w-[var(--sf-bmin)]!"],phone:["--sf-bmin-p","max-view-wide:min-w-[var(--sf-bmin-p)]!"]},maxWidth:{desktop:["--sf-bmax","view-wide:max-w-[var(--sf-bmax)]"],phone:["--sf-bmax-p","max-view-wide:max-w-[var(--sf-bmax-p)]"]}},P={minWidth:{desktop:["--sf-bmin","view-desktop:min-w-[var(--sf-bmin)]!"],tablet:["--sf-bmin-t","view-tablet:max-view-desktop:min-w-[var(--sf-bmin-t)]!"],phone:["--sf-bmin-p","max-view-tablet:min-w-[var(--sf-bmin-p)]!"]},maxWidth:{desktop:["--sf-bmax","view-desktop:max-w-[var(--sf-bmax)]"],tablet:["--sf-bmax-t","view-tablet:max-view-desktop:max-w-[var(--sf-bmax-t)]"],phone:["--sf-bmax-p","max-view-tablet:max-w-[var(--sf-bmax-p)]"]}},j=["widthFit","width","minWidth","maxWidth"],I={desktop:"view-wide:whitespace-nowrap view-wide:[&_*]:whitespace-nowrap!",phone:"max-view-wide:whitespace-nowrap max-view-wide:[&_*]:whitespace-nowrap!"},u={desktop:"view-desktop:whitespace-nowrap view-desktop:[&_*]:whitespace-nowrap!",tablet:"view-tablet:max-view-desktop:whitespace-nowrap view-tablet:max-view-desktop:[&_*]:whitespace-nowrap!",phone:"max-view-tablet:whitespace-nowrap max-view-tablet:[&_*]:whitespace-nowrap!"};function V(e){const t=L(e);return t.sides.filter(i=>t.mode[i]==="fill").map(i=>y[t.three?"three":"two"][i]).filter(Boolean).join(" ")}function L(e){const t=j.some(o=>{const s=e[o]?.tablet;return o==="widthFit"?c(s)!==void 0:d(s)!==void 0}),i=t?["desktop","tablet","phone"]:["desktop","phone"],n=(o,s)=>{const p=o(s?.desktop),b=t?o(s?.tablet)??p:p;return{desktop:p,tablet:b,phone:o(s?.phone)??b}};return{three:t,sides:i,perSide:n,mode:n(c,e.widthFit)}}function X(e){const t=[],i={},n={},{three:o,sides:s,perSide:p,mode:b}=L(e),W=p(d,e.width);for(const w of s){const a=b[w];!a||a==="fit"||(t.push(o?K[w][a]:D[w][a]),a==="fixed"&&(i[z[w]]=`${W[w]??E.fallback}px`))}for(const w of["minWidth","maxWidth"]){const a=p(d,e[w]);for(const v of s){const F=a[v];if(F===void 0)continue;const[g,C]=o?P[w][v]:H[w][v];i[g]=`${F}px`,t.push(C)}}const m=k(e.textFit?.desktop),r=k(e.textFit?.phone),x=d(e.minFont?.desktop),h=d(e.minFont?.phone),_=k(e.textFit?.tablet),l=_!==m||r!==void 0?_:void 0,S=d(e.minFont?.tablet),T=S!==x||h!==void 0?S:void 0;return l?(m==="line"&&t.push(u.desktop),l==="line"&&t.push(u.tablet),(r??l)==="line"&&t.push(u.phone)):(m==="line"&&t.push(I.desktop),(r??m)==="line"&&t.push(I.phone)),m&&(n[f.fit]=m),l&&(n[f.fitTablet]=l),r&&(n[f.fitPhone]=r),x!==void 0&&(n[f.min]=String(x)),T!==void 0&&(n[f.minTablet]=String(T)),h!==void 0&&(n[f.minPhone]=String(h)),t.length===0&&Object.keys(n).length===0?null:{className:[B,...t].join(" "),style:i,attrs:n}}function Y(e){if(d(e.maxWidth?.desktop)!==void 0)return!0;const t=c(e.widthFit?.desktop);return t==="fill"||t==="fixed"}function Z(e){return["desktop","tablet","phone"].some(i=>{const n=c(e.widthFit?.[i]);return n==="fixed"||n==="fill"||d(e.minWidth?.[i])!==void 0})}function $(e){const t={};for(const i of A){const n=e[i],o=e[O(i)],s=e[N(i)];(n!==void 0||o!==void 0||s!==void 0)&&(t[i]={desktop:n,tablet:o,phone:s})}return t}export{B as BLOCK_SIZE_CLASS,f as TEXT_FIT_ATTR,Z as blockCanWidenPastCell,V as blockFillInCellClass,Y as blockSetsItsWidth,X as blockSizeOf,$ as blockSizeValuesOf};
1
+ import{BLOCK_FIXED_WIDTH as K,BLOCK_SIZE_KEYS as y,parseBlockWidthFit as b,phoneKey as H,parseTextFit as u,tabletKey as z}from"efficient-easel/draw";import{TEXT_FIT_ATTR as d}from"../../../format/lib/fit-words.js";const P="sf-block-size",p=e=>typeof e=="number"&&Number.isFinite(e)&&e>=0?e:void 0,M={desktop:{fill:"view-wide:w-full view-wide:[.flex-row>&]:grow",fixed:"view-wide:w-[min(var(--sf-bw),100%)] view-wide:basis-auto! view-wide:grow-0! view-wide:shrink-0"},phone:{fill:"max-view-wide:w-full",fixed:"max-view-wide:w-[min(var(--sf-bw-p),100%)] max-view-wide:basis-auto! max-view-wide:grow-0! max-view-wide:shrink-0"}},L={desktop:{fill:"view-desktop:w-full view-desktop:[.flex-row>&]:grow",fixed:"view-desktop:w-[min(var(--sf-bw),100%)] view-desktop:basis-auto! view-desktop:grow-0! view-desktop:shrink-0"},tablet:{fill:"view-wide:max-view-desktop:w-full view-wide:max-view-desktop:[.flex-row>&]:grow",fixed:"view-wide:max-view-desktop:w-[min(var(--sf-bw-t),100%)] view-wide:max-view-desktop:basis-auto! view-wide:max-view-desktop:grow-0! view-wide:max-view-desktop:shrink-0"},phone:{fill:"max-view-wide:w-full",fixed:"max-view-wide:w-[min(var(--sf-bw-p),100%)] max-view-wide:basis-auto! max-view-wide:grow-0! max-view-wide:shrink-0"}},j={desktop:L.desktop,tablet:{fill:"view-tablet:max-view-desktop:w-full view-wide:max-view-desktop:[.flex-row>&]:grow",fixed:"view-tablet:max-view-desktop:w-[min(var(--sf-bw-t),100%)] view-tablet:max-view-desktop:basis-auto! view-tablet:max-view-desktop:grow-0! view-tablet:max-view-desktop:shrink-0"},phone:{fill:"max-view-tablet:w-full",fixed:"max-view-tablet:w-[min(var(--sf-bw-p),100%)] max-view-tablet:basis-auto! max-view-tablet:grow-0! max-view-tablet:shrink-0"}},R={two:{desktop:"view-wide:[.flex-row>*>&]:grow"},three:{desktop:"view-desktop:[.flex-row>*>&]:grow",tablet:"view-wide:max-view-desktop:[.flex-row>*>&]:grow"}},V={desktop:"--sf-bw",tablet:"--sf-bw-t",phone:"--sf-bw-p"},X={minWidth:{desktop:["--sf-bmin","view-wide:min-w-[var(--sf-bmin)]!"],phone:["--sf-bmin-p","max-view-wide:min-w-[var(--sf-bmin-p)]!"]},maxWidth:{desktop:["--sf-bmax","view-wide:max-w-[var(--sf-bmax)]"],phone:["--sf-bmax-p","max-view-wide:max-w-[var(--sf-bmax-p)]"]}},_={minWidth:{desktop:["--sf-bmin","view-desktop:min-w-[var(--sf-bmin)]!"],tablet:["--sf-bmin-t","view-wide:max-view-desktop:min-w-[var(--sf-bmin-t)]!"],phone:["--sf-bmin-p","max-view-wide:min-w-[var(--sf-bmin-p)]!"]},maxWidth:{desktop:["--sf-bmax","view-desktop:max-w-[var(--sf-bmax)]"],tablet:["--sf-bmax-t","view-wide:max-view-desktop:max-w-[var(--sf-bmax-t)]"],phone:["--sf-bmax-p","max-view-wide:max-w-[var(--sf-bmax-p)]"]}},Y={minWidth:{desktop:_.minWidth.desktop,tablet:["--sf-bmin-t","view-tablet:max-view-desktop:min-w-[var(--sf-bmin-t)]!"],phone:["--sf-bmin-p","max-view-tablet:min-w-[var(--sf-bmin-p)]!"]},maxWidth:{desktop:_.maxWidth.desktop,tablet:["--sf-bmax-t","view-tablet:max-view-desktop:max-w-[var(--sf-bmax-t)]"],phone:["--sf-bmax-p","max-view-tablet:max-w-[var(--sf-bmax-p)]"]}},Z=["widthFit","width","minWidth","maxWidth"],F={desktop:"view-wide:whitespace-nowrap view-wide:[&_*]:whitespace-nowrap!",phone:"max-view-wide:whitespace-nowrap max-view-wide:[&_*]:whitespace-nowrap!"},E={desktop:"view-desktop:whitespace-nowrap view-desktop:[&_*]:whitespace-nowrap!",tablet:"view-wide:max-view-desktop:whitespace-nowrap view-wide:max-view-desktop:[&_*]:whitespace-nowrap!",phone:"max-view-wide:whitespace-nowrap max-view-wide:[&_*]:whitespace-nowrap!"},$={desktop:E.desktop,tablet:"view-tablet:max-view-desktop:whitespace-nowrap view-tablet:max-view-desktop:[&_*]:whitespace-nowrap!",phone:"max-view-tablet:whitespace-nowrap max-view-tablet:[&_*]:whitespace-nowrap!"};function J(e){const i=N(e);return i.sides.filter(o=>i.mode[o]==="fill").map(o=>R[i.three?"three":"two"][o]).filter(Boolean).join(" ")}function N(e){const i=Z.some(w=>{const t=e[w]?.tablet;return w==="widthFit"?b(t)!==void 0:p(t)!==void 0}),o=i?["desktop","tablet","phone"]:["desktop","phone"],s=(w,t)=>{const f=w(t?.desktop),n=i?w(t?.tablet)??f:f;return{desktop:f,tablet:n,phone:w(t?.phone)??n}};return{three:i,sides:o,perSide:s,mode:s(b,e.widthFit)}}function Q(e,{atSectionLine:i=!1}={}){const o=i?j:L,s=i?Y:_,w=i?$:E,t=[],f={},n={},{three:S,sides:I,perSide:T,mode:A}=N(e),O=T(p,e.width);for(const a of I){const m=A[a];!m||m==="fit"||(t.push(S?o[a][m]:M[a][m]),m==="fixed"&&(f[V[a]]=`${O[a]??K.fallback}px`))}for(const a of["minWidth","maxWidth"]){const m=T(p,e[a]);for(const k of I){const C=m[k];if(C===void 0)continue;const[B,D]=S?s[a][k]:X[a][k];f[B]=`${C}px`,t.push(D)}}const r=u(e.textFit?.desktop),x=u(e.textFit?.phone),v=p(e.minFont?.desktop),h=p(e.minFont?.phone),W=u(e.textFit?.tablet),l=W!==r||x!==void 0?W:void 0,g=p(e.minFont?.tablet),c=g!==v||h!==void 0?g:void 0;return l?(r==="line"&&t.push(w.desktop),l==="line"&&t.push(w.tablet),(x??l)==="line"&&t.push(w.phone)):(r==="line"&&t.push(F.desktop),(x??r)==="line"&&t.push(F.phone)),r&&(n[d.fit]=r),l&&(n[d.fitTablet]=l),x&&(n[d.fitPhone]=x),v!==void 0&&(n[d.min]=String(v)),c!==void 0&&(n[d.minTablet]=String(c)),h!==void 0&&(n[d.minPhone]=String(h)),!i&&(l||c!==void 0)&&(n[d.edge]=""),t.length===0&&Object.keys(n).length===0?null:{className:[P,...t].join(" "),style:f,attrs:n}}function U(e){if(p(e.maxWidth?.desktop)!==void 0)return!0;const i=b(e.widthFit?.desktop);return i==="fill"||i==="fixed"}function ee(e){return["desktop","tablet","phone"].some(o=>{const s=b(e.widthFit?.[o]);return s==="fixed"||s==="fill"||p(e.minWidth?.[o])!==void 0})}function ie(e){const i={};for(const o of y){const s=e[o],w=e[z(o)],t=e[H(o)];(s!==void 0||w!==void 0||t!==void 0)&&(i[o]={desktop:s,tablet:w,phone:t})}return i}export{P as BLOCK_SIZE_CLASS,d as TEXT_FIT_ATTR,ee as blockCanWidenPastCell,J as blockFillInCellClass,U as blockSetsItsWidth,Q as blockSizeOf,ie as blockSizeValuesOf};
@@ -1 +1 @@
1
- import{VIEW_DESKTOP_MIN as f,VIEW_TABLET_MIN as h}from"efficient-easel/draw";import{boxPhoneRowFits as p,boxRowColumnsClass as w,boxRowTabletColumnsClass as C,boxRowTabletShareClass as T,boxShareClasses as R,boxShareTabletOf as S}from"../../../format/lib/content/box-layout.js";import{isStripBox as k}from"../../../format/lib/content/box-separator.js";import{BOX_STACK_LINE as l,storedStackLine as O}from"./box-stack-line.js";const E={phone:1,tablet:1,desktop:1},I=e=>typeof e=="number"&&Number.isInteger(e)&&e>=1?e:void 0;function g(e){if(e.direction==="column")return E;if(e.direction!=="row"||k(e.direction,e.separator)||e.loop==="scroll"||e.line===!0||e.shared)return;const o=I(e.count),a=d=>d==="equal"&&o?1/o:1,s=w(e)!==""?1/e.columns:a(e.share),n=Number(e.phoneRow);let t=1;(n===2||n===3)&&!p(e.phoneRow,e.sharePhone)&&(t=R(e.share)!==""?o?1/(o%n||n):1:1/n);const u=C(e)!==""?e.columnsTablet:void 0,i=T(e)!==""?S(e.shareTablet):null,c=u!==void 0?1/u:i!==null?a(i):void 0,r=c===void 0?O(e.stackBelow):void 0;if(r!==void 0&&r>l)return{phone:t,tablet:1,desktop:r>f?1:s};const m=c??Math.max(t,l<f?s:0);return{phone:h<=l?t:Math.max(t,s),tablet:m,desktop:s}}export{g as boxCellFractions};
1
+ import{VIEW_DESKTOP_MIN as f}from"efficient-easel/draw";import{PHONE_EDGE as p}from"../../../format/lib/content/view-lines.js";import{boxPhoneRowFits as h,boxRowColumnsClass as w,boxRowTabletColumnsClass as C,boxRowTabletShareClass as O,boxShareClasses as R,boxShareTabletOf as S}from"../../../format/lib/content/box-layout.js";import{isStripBox as k}from"../../../format/lib/content/box-separator.js";import{BOX_STACK_LINE as l,storedStackLine as E}from"./box-stack-line.js";const T={phone:1,tablet:1,desktop:1},N=e=>typeof e=="number"&&Number.isInteger(e)&&e>=1?e:void 0;function M(e){if(e.direction==="column")return T;if(e.direction!=="row"||k(e.direction,e.separator)||e.loop==="scroll"||e.line===!0||e.shared)return;const o=N(e.count),a=d=>d==="equal"&&o?1/o:1,s=w(e)!==""?1/e.columns:a(e.share),n=Number(e.phoneRow);let t=1;(n===2||n===3)&&!h(e.phoneRow,e.sharePhone)&&(t=R(e.share)!==""?o?1/(o%n||n):1:1/n);const u=C(e)!==""?e.columnsTablet:void 0,i=O(e)!==""?S(e.shareTablet):null,c=u!==void 0?1/u:i!==null?a(i):void 0,r=c===void 0?E(e.stackBelow):void 0;if(r!==void 0&&r>l)return{phone:t,tablet:1,desktop:r>f?1:s};const m=c??Math.max(t,l<f?s:0);return{phone:p<=l?t:Math.max(t,s),tablet:m,desktop:s}}export{M as boxCellFractions};
@@ -1 +1 @@
1
- import{REPEAT_ATTRIBUTE as l,phoneKey as x,tabletKey as A}from"efficient-easel/draw";import{parseLoop as c}from"../../../format/lib/animation/loop.js";import{finiteNumber as E}from"../../../format/lib/finite-number.js";import{isBackgroundBox as $}from"../../../format/lib/content/box-background.js";import{isStripBox as O}from"../../../format/lib/content/box-separator.js";import{CARD_STATE_ATTR as y}from"../../../format/lib/content/card-state.js";import{BOX_ALIGN_CLASS as u,boxRowColumnsClass as N,boxRowTabletColumnsClass as T}from"../../../format/lib/content/box-layout.js";const d="sharedColumns",m="shared",h="own",f="scroll",X="Row columns",q=[{value:h,label:"Each row"},{value:m,label:"Shared"}],z=[{value:h,label:"Each row"},{value:f,label:"Shared, scroll"}],w="(width >= 800px)",D="(width < 800px)";function L(t){const n={direction:t.direction,separator:t.separator,loop:c(t.loop),line:t.line};return n.direction==="row"&&!O(n.direction,n.separator)&&n.loop!=="scroll"&&n.line!==!0&&!$(typeof t.bgImage=="string"?t.bgImage:void 0)&&N({...n,columns:t.columns})===""&&T({...n,columnsTablet:t[A("columns")]})===""}function p(t){return Array.isArray(t)?t.filter(n=>typeof n?.type=="string").length:E(t?.blockCount)??0}function J(t){return L(t)&&a(p(t.content))>0?H(t[d],t[x(d)]):{desktop:!1,phone:!1}}const a=t=>Number.isInteger(t)&&t>0?t:0,S=(t,n)=>`sf-shared-cols-${t}${n===void 0?"":`-from-${n}`}`,g=t=>`sf-shared-cols-phone-${t}`;function H(t,n){return{desktop:t===m,phone:n===f}}function Q(t,n,e){const o=a(n);return o?`${t.desktop?` ${S(o,e)}`:""}${t.phone?` ${g(o)}`:""}`:""}function R(t){const n=`[${l}]`;return`:has(> ${n} ${t}):not(:has(> ${n} ${n} ${t}))`}function _(t,n,e=""){const o=R(t);return`${o}{display:grid;grid-template-columns:${n};column-gap:0${e}}${o}>:not(:has(${t})):not(${t}){grid-column:1/-1}${o} :has(${t}),${o} ${t}{display:grid;grid-template-columns:subgrid;grid-column:1/-1;min-width:0}`}const I="data-sf-shared-plain";function P(t){const n=`[${l}]`,e=`[${I}]`,o=R(t)+`:not(:has(> :not(${n}) > :not(${e}) ${t})):not(:has(> ${n} > * > :not(${e}) ${t})):not(:has(:not(${e}) > :not(${e}) > ${t})):not(:has(> ${n}[${y}]))`,s=`${o}>:not(style):not(:has(${t})):not(${t})`;return`${o}{display:table;width:100%;border-collapse:collapse}${o}>:has(${t}),${o}>${n}>:has(${t}),${o} ${e}:has(${t}),${o} ${e}>:has(${t}){display:contents}${o} ${t}{display:table-row}${o} ${t}>*{display:table-cell;width:auto;vertical-align:top}${o} ${t}.${u.center}>*{vertical-align:middle}${o} ${t}.${u.end}>*{vertical-align:bottom}${s}{display:table-caption;caption-side:bottom}${s}:has(~ ${n}){caption-side:top}`}function V(t,n,e){const o=a(n);if(!o)return"";let s="";if(t.desktop){const r=`.${S(o,e)}`;s+=`@media ${e===void 0?w:`(width >= ${e}px)`}{${_(r,`repeat(${o},auto)`)}${P(r)}}`}return t.phone&&(s+=`@media ${D}{${_(`.${g(o)}`,`repeat(${o},minmax(max-content,auto))`,";overflow-x:auto")}}`),s}const k="sharedRows",v="shared",U="sf-shared-rows-list";function M(t){const n=t.direction;return(n===void 0||n==="column")&&c(t.loop)!=="scroll"&&t.line!==!0&&!$(typeof t.bgImage=="string"?t.bgImage:void 0)}function Z(t){return t[k]===v&&M(t)&&a(p(t.content))>0}const b=t=>`sf-shared-rows-${t}`;function tt(t,n){const e=a(n);return t&&e?` ${b(e)}`:""}function nt(t,n){const e=a(n);if(!t||!e)return"";const o=`.${b(e)}`,s=`.${U}`,r=`display:grid;grid-template-rows:subgrid;grid-row:span ${e};min-height:0;grid-template-columns:minmax(0,1fr)`,C=["start","center","end"].map(i=>`${s} ${o}.items-${i}{justify-items:${i}}`).join("");return`${s} :has(${o}){${r};row-gap:0}${s} ${o}{${r};justify-content:normal;align-items:stretch}${C}`}export{d as SHARED_COLUMNS_KEY,X as SHARED_COLUMNS_LABEL,h as SHARED_COLUMNS_OFF,z as SHARED_COLUMNS_PHONE_POINTS,q as SHARED_COLUMNS_POINTS,I as SHARED_PLAIN_ATTR,k as SHARED_ROWS_KEY,U as SHARED_ROWS_LIST_CLASS,Q as sharedColumnsClasses,V as sharedColumnsCss,J as sharedColumnsDrawn,L as sharedColumnsFits,tt as sharedRowsClasses,nt as sharedRowsCss,Z as sharedRowsDrawn,M as sharedRowsFits};
1
+ import{REPEAT_ATTRIBUTE as l,phoneKey as A,tabletKey as E}from"efficient-easel/draw";import{parseLoop as c}from"../../../format/lib/animation/loop.js";import{finiteNumber as O}from"../../../format/lib/finite-number.js";import{boxIsCard as $}from"../../../format/lib/content/box-background.js";import{isStripBox as g}from"../../../format/lib/content/box-separator.js";import{CARD_STATE_ATTR as N}from"../../../format/lib/content/card-state.js";import{BOX_ALIGN_CLASS as u,boxRowColumnsClass as y,boxRowTabletColumnsClass as T}from"../../../format/lib/content/box-layout.js";const d="sharedColumns",h="shared",m="own",p="scroll",X="Row columns",q=[{value:m,label:"Each row"},{value:h,label:"Shared"}],z=[{value:m,label:"Each row"},{value:p,label:"Shared, scroll"}],w="(width >= 800px)",D="(width < 800px)";function L(t){const o={direction:t.direction,separator:t.separator,loop:c(t.loop),line:t.line};return o.direction==="row"&&!g(o.direction,o.separator)&&o.loop!=="scroll"&&o.line!==!0&&!$(t)&&y({...o,columns:t.columns})===""&&T({...o,columnsTablet:t[E("columns")]})===""}function f(t){return Array.isArray(t)?t.filter(o=>typeof o?.type=="string").length:O(t?.blockCount)??0}function J(t){return L(t)&&r(f(t.content))>0?H(t[d],t[A(d)]):{desktop:!1,phone:!1}}const r=t=>Number.isInteger(t)&&t>0?t:0,S=(t,o)=>`sf-shared-cols-${t}${o===void 0?"":`-from-${o}`}`,R=t=>`sf-shared-cols-phone-${t}`;function H(t,o){return{desktop:t===h,phone:o===p}}function Q(t,o,e){const n=r(o);return n?`${t.desktop?` ${S(n,e)}`:""}${t.phone?` ${R(n)}`:""}`:""}function C(t){const o=`[${l}]`;return`:has(> ${o} ${t}):not(:has(> ${o} ${o} ${t}))`}function _(t,o,e=""){const n=C(t);return`${n}{display:grid;grid-template-columns:${o};column-gap:0${e}}${n}>:not(:has(${t})):not(${t}){grid-column:1/-1}${n} :has(${t}),${n} ${t}{display:grid;grid-template-columns:subgrid;grid-column:1/-1;min-width:0}`}const P="data-sf-shared-plain";function v(t){const o=`[${l}]`,e=`[${P}]`,n=C(t)+`:not(:has(> :not(${o}) > :not(${e}) ${t})):not(:has(> ${o} > * > :not(${e}) ${t})):not(:has(:not(${e}) > :not(${e}) > ${t})):not(:has(> ${o}[${N}]))`,s=`${n}>:not(style):not(:has(${t})):not(${t})`;return`${n}{display:table;width:100%;border-collapse:collapse}${n}>:has(${t}),${n}>${o}>:has(${t}),${n} ${e}:has(${t}),${n} ${e}>:has(${t}){display:contents}${n} ${t}{display:table-row}${n} ${t}>*{display:table-cell;width:auto;vertical-align:top}${n} ${t}.${u.center}>*{vertical-align:middle}${n} ${t}.${u.end}>*{vertical-align:bottom}${s}{display:table-caption;caption-side:bottom}${s}:has(~ ${o}){caption-side:top}`}function V(t,o,e){const n=r(o);if(!n)return"";let s="";if(t.desktop){const a=`.${S(n,e)}`;s+=`@media ${e===void 0?w:`(width >= ${e}px)`}{${_(a,`repeat(${n},auto)`)}${v(a)}}`}return t.phone&&(s+=`@media ${D}{${_(`.${R(n)}`,`repeat(${n},minmax(max-content,auto))`,";overflow-x:auto")}}`),s}const I="sharedRows",U="shared",k="sf-shared-rows-list";function M(t){const o=t.direction;return(o===void 0||o==="column")&&c(t.loop)!=="scroll"&&t.line!==!0&&!$(t)}function Z(t){return t[I]===U&&M(t)&&r(f(t.content))>0}const x=t=>`sf-shared-rows-${t}`;function tt(t,o){const e=r(o);return t&&e?` ${x(e)}`:""}function ot(t,o){const e=r(o);if(!t||!e)return"";const n=`.${x(e)}`,s=`.${k}`,a=`display:grid;grid-template-rows:subgrid;grid-row:span ${e};min-height:0;grid-template-columns:minmax(0,1fr)`,b=["start","center","end"].map(i=>`${s} ${n}.items-${i}{justify-items:${i}}`).join("");return`${s} :has(${n}){${a};row-gap:0}${s} ${n}{${a};justify-content:normal;align-items:stretch}${b}`}export{d as SHARED_COLUMNS_KEY,X as SHARED_COLUMNS_LABEL,m as SHARED_COLUMNS_OFF,z as SHARED_COLUMNS_PHONE_POINTS,q as SHARED_COLUMNS_POINTS,P as SHARED_PLAIN_ATTR,I as SHARED_ROWS_KEY,k as SHARED_ROWS_LIST_CLASS,Q as sharedColumnsClasses,V as sharedColumnsCss,J as sharedColumnsDrawn,L as sharedColumnsFits,tt as sharedRowsClasses,ot as sharedRowsCss,Z as sharedRowsDrawn,M as sharedRowsFits};
@@ -1,5 +1,6 @@
1
1
  export declare const BOX_STACK_LINE: number;
2
2
  export declare const BOX_GUTTER_LINE = 960;
3
+ export declare const BOX_PHONE_PAD_AT_EDGE: number;
3
4
  export declare const BOX_PHONE_PAD_LINE: number;
4
5
  export declare const BOX_STACK_RANGE: {
5
6
  readonly min: number;
@@ -1 +1 @@
1
- import{VIEW_DESKTOP_MIN as r,VIEW_TABLET_MIN as x}from"efficient-easel/draw";import{VIEW_LINE_PX as h}from"../../../format/lib/content/view-lines.js";const e=h["view-wide"],f=960,u=x,d={min:e,max:1600,step:10},b="stackBelow";function g(t){if(!(typeof t!="number"||!Number.isFinite(t))&&!(t<d.min||t>d.max))return Math.round(t)}function v(t){return g(t)??e}const w=t=>`sf-stack-${t}`,_=t=>`sf-stack-${t}-gutter`,k=t=>`sf-stack-${t}-outer`,n=t=>`${t-.02}px`;function I(t,$={}){const i=$.gutter!==!1,a=`.${w(t)}`,p=`.${_(t)}`,c=`.${k(t)}`,s=[];if(t>e){const o=`${a}>.sf-block-size,${a}>[data-easel-block]>[data-sf-part-host]>.sf-block-size`,m=Math.min(t,r);s.push(`@media (min-width:${e}px) and (max-width:${n(t)}){${a}${a}{flex-direction:column}.sf-gap-overlap${a}{--sf-gap-overlap-eff:calc(var(--sf-gap-overlap) / 2)}${o}{width:min(var(--sf-bw-p,100%),100%);flex-grow:0}}`,`@media (min-width:${e}px) and (max-width:${n(m)}){.sf-gap-zone${a}{gap:var(--sf-gap-len-tablet,var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2)))}}`),t>r&&s.push(`@media (min-width:${r}px) and (max-width:${n(t)}){.sf-gap-zone${a}{gap:var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2))}}`)}return i&&s.push(`@media (max-width:${n(t)}){${p}${p}{padding-inline:min(24px,var(--sf-site-gutter,40px))}}`),i&&t<f&&s.push(`@media (min-width:${t}px) and (max-width:${n(f)}){${p}${p}{padding-inline:var(--sf-site-gutter,40px)}}`),s.push(`@media (min-width:${u}px) and (max-width:${n(t)}){`+["top","bottom","left","right"].map(o=>`.sf-pad-${o}-phone:has(>${c}),.sf-pad-${o}-phone${c}{padding-${o}:var(--sf-pad-${o[0]}-phone)!important}`).join("")+"}"),s.join("")}export{f as BOX_GUTTER_LINE,u as BOX_PHONE_PAD_LINE,e as BOX_STACK_LINE,d as BOX_STACK_RANGE,b as STACK_BELOW_PROP,v as boxStackLine,_ as stackGutterClass,I as stackLineCss,k as stackOuterClass,w as stackRowClass,g as storedStackLine};
1
+ import{VIEW_DESKTOP_MIN as r,VIEW_TABLET_MIN as u}from"efficient-easel/draw";import{PHONE_EDGE as f}from"../../../format/lib/content/view-lines.js";const p=f,d=960,$=f,O=u,m={min:p,max:1600,step:10},b="stackBelow";function g(t){if(!(typeof t!="number"||!Number.isFinite(t))&&!(t<m.min||t>m.max))return Math.round(t)}function N(t){return g(t)??p}const _=t=>`sf-stack-${t}`,w=t=>`sf-stack-${t}-gutter`,E=t=>`sf-stack-${t}-outer`,n=t=>`${t-.02}px`;function T(t,x={}){const i=x.gutter!==!1,a=`.${_(t)}`,e=`.${w(t)}`,c=`.${E(t)}`,o=[];if(t>p){const s=`${a}>.sf-block-size,${a}>[data-easel-block]>[data-sf-part-host]>.sf-block-size`,h=Math.min(t,r);o.push(`@media (min-width:${p}px) and (max-width:${n(t)}){${a}${a}{flex-direction:column}.sf-gap-overlap${a}{--sf-gap-overlap-eff:calc(var(--sf-gap-overlap) / 2)}${s}{width:min(var(--sf-bw-p,100%),100%);flex-grow:0}}`,`@media (min-width:${p}px) and (max-width:${n(h)}){.sf-gap-zone${a}{gap:var(--sf-gap-len-tablet,var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2)))}}`),t>r&&o.push(`@media (min-width:${r}px) and (max-width:${n(t)}){.sf-gap-zone${a}{gap:var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2))}}`)}return i&&o.push(`@media (max-width:${n(t)}){${e}${e}{padding-inline:min(24px,var(--sf-site-gutter,40px))}}`),i&&t<d&&o.push(`@media (min-width:${t}px) and (max-width:${n(d)}){${e}${e}{padding-inline:var(--sf-site-gutter,40px)}}`),t>$&&o.push(`@media (min-width:${$}px) and (max-width:${n(t)}){`+["top","bottom","left","right"].map(s=>`.sf-pad-${s}-phone:has(>${c}),.sf-pad-${s}-phone${c}{padding-${s}:var(--sf-pad-${s[0]}-phone)!important}`).join("")+"}"),o.join("")}export{d as BOX_GUTTER_LINE,$ as BOX_PHONE_PAD_AT_EDGE,O as BOX_PHONE_PAD_LINE,p as BOX_STACK_LINE,m as BOX_STACK_RANGE,b as STACK_BELOW_PROP,N as boxStackLine,w as stackGutterClass,T as stackLineCss,E as stackOuterClass,_ as stackRowClass,g as storedStackLine};
@@ -1,5 +1,7 @@
1
1
  import { RESPONSIVE_RULES } from "../../../format/lib/content/view-lines.js";
2
2
  export { RESPONSIVE_RULES };
3
3
  export { type ViewOverrides, viewOverrides, viewRules } from "../../../format/lib/content/view-overrides.js";
4
+ export declare const EDGE_TABLET_MEDIA = "(min-width: 800px) and (max-width: 1099.98px)";
5
+ export declare const EDGE_PHONE_MEDIA = "(max-width: 799.98px)";
4
6
  export declare const TABLET_MEDIA = "(min-width: 720px) and (max-width: 1099.98px)";
5
7
  export declare const PHONE_MEDIA = "(max-width: 719.98px)";
@@ -1 +1 @@
1
- import{VIEW_DESKTOP_MIN as t,VIEW_TABLET_MIN as E}from"efficient-easel/draw";import{RESPONSIVE_RULES as r}from"../../../format/lib/content/view-lines.js";import{viewOverrides as _,viewRules as d}from"../../../format/lib/content/view-overrides.js";const o=.02,p=`(min-width: ${E}px) and (max-width: ${t-o}px)`,x=`(max-width: ${E-o}px)`;export{x as PHONE_MEDIA,r as RESPONSIVE_RULES,p as TABLET_MEDIA,_ as viewOverrides,d as viewRules};
1
+ import{VIEW_DESKTOP_MIN as t,VIEW_TABLET_MIN as o}from"efficient-easel/draw";import{PHONE_EDGE as x,RESPONSIVE_RULES as p}from"../../../format/lib/content/view-lines.js";import{viewOverrides as I,viewRules as w}from"../../../format/lib/content/view-overrides.js";const E=.02,_=`(min-width: ${x}px) and (max-width: ${t-E}px)`,e=`(max-width: ${x-E}px)`,m=`(min-width: ${o}px) and (max-width: ${t-E}px)`,d=`(max-width: ${o-E}px)`;export{e as EDGE_PHONE_MEDIA,_ as EDGE_TABLET_MEDIA,d as PHONE_MEDIA,p as RESPONSIVE_RULES,m as TABLET_MEDIA,I as viewOverrides,w as viewRules};
@@ -1 +1 @@
1
- import{jsx as u}from"react/jsx-runtime";import{HideTaker as h}from"../../../../../components/ViewHideRoot.js";import{CardTemplateRows as R,useCardRow as T}from"../../../../../components/CardRowContext.js";import{BOX_ITEMS_ATTR as S}from"../../../../../../format/lib/content/box-layout.js";import{cardItemAction as _,highlightOf as g,keyedRows as k,markedRows as A,rowHoldsContent as C}from"../../../../../../format/lib/content/card-state.js";import{CARD_LIST_ROWS as L,CARD_LIST_TYPE as x,cardListShows as I,cardRow as w}from"../../../../../../format/lib/content/card-template.js";import{declaredBlockSource as j,sourceChoices as E,sourcedRows as b}from"../../../../../../format/lib/content/block-sources.js";import{CardListMeta as B}from"../../../../../../format/lib/document/blocks/general/CardList/meta.js";function y(t){const s=t&&typeof t=="object"?t.state:void 0;return s&&typeof s=="object"?s:void 0}const M="[&>*]:flex [&>*]:flex-col [&>*>:only-child]:grow [&>*>:only-child]:flex [&>*>:only-child]:flex-col [&>*>*>:only-child]:grow [&>*>*>:only-child]:flex [&>*>*>:only-child]:flex-col [&>*>*>*>:only-child]:grow",p=[{}];function O(t,s){const d=j(t);let n,m=[];if(d){const e=b(t,s);n=[...e.rows],e.sample&&(m=E(d))}else{const e=t[L];n=Array.isArray(e)?e:[]}const l=k(n.map(w),m),r=n.map((e,i)=>({item:e,row:l[i]})).filter(({item:e})=>s||C(e)),a=A(r.map(e=>e.row),g(t));return{items:r.map(e=>e.item),rows:a.rows,states:r.map(({item:e},i)=>{const o={...y(e),...a.states[i]};return Object.keys(o).length?o:void 0})}}function D({id:t,own:s,Template:d,editing:n,dragRef:m}){const l=T();let r,a,e;if(l){const o=I(s,l.ownerType),c=o&&l.item&&typeof l.item=="object"?l.item[o]:void 0,f=Array.isArray(c)?c:[];r=f.length?f:n?p:f,a=r.map(w),e=r.map(y)}else{const o=O(s,n),c=!o.items.length&&n;r=c?p:o.items,a=c?p.map(w):o.rows,e=c?[]:o.states}if(!r.length)return null;const i=n?[]:r.map(_);return u(R,{ownerId:t,ownerType:x,Template:d,rows:a,items:r,states:e.some(Boolean)?e:void 0,actions:i.some(Boolean)?i:void 0,fallback:null,children:o=>u(h,{ref:m,className:l?"contents":`contents ${M}`,[S]:"",children:o})})}const $={...B,render:t=>u(D,{id:String(t.id??""),own:t,Template:t.template,editing:t.editor?.isEditing===!0,dragRef:t.editor?.dragRef??void 0})};export{$ as CardListRender};
1
+ import{jsx as u}from"react/jsx-runtime";import{HideTaker as R}from"../../../../../components/ViewHideRoot.js";import{CardTemplateRows as T,useCardRow as h}from"../../../../../components/CardRowContext.js";import{BOX_ITEMS_ATTR as k}from"../../../../../../format/lib/content/box-layout.js";import{cardItemAction as S,highlightOf as A,keyedRows as C,markedRows as _,rowHoldsContent as g}from"../../../../../../format/lib/content/card-state.js";import{CARD_LIST_ROWS as L,CARD_LIST_TYPE as j,cardListShows as I,cardRow as p}from"../../../../../../format/lib/content/card-template.js";import{declaredBlockSource as b,sourceChoices as E,sourcedRows as B}from"../../../../../../format/lib/content/block-sources.js";import{CardListMeta as M}from"../../../../../../format/lib/document/blocks/general/CardList/meta.js";function y(t){const s=t&&typeof t=="object"?t.state:void 0;return s&&typeof s=="object"?s:void 0}const w=[{}];function O(t,s){const c=b(t);let n,l=[];if(c){const e=B(t,s);n=[...e.rows],e.sample&&(l=E(c))}else{const e=t[L];n=Array.isArray(e)?e:[]}const a=C(n.map(p),l),r=n.map((e,d)=>({item:e,row:a[d]})).filter(({item:e})=>s||g(e)),i=_(r.map(e=>e.row),A(t));return{items:r.map(e=>e.item),rows:i.rows,states:r.map(({item:e},d)=>{const o={...y(e),...i.states[d]};return Object.keys(o).length?o:void 0})}}function x({id:t,own:s,Template:c,editing:n,dragRef:l}){const a=h();let r,i,e;if(a){const o=I(s,a.ownerType),m=o&&a.item&&typeof a.item=="object"?a.item[o]:void 0,f=Array.isArray(m)?m:[];r=f.length?f:n?w:f,i=r.map(p),e=r.map(y)}else{const o=O(s,n),m=!o.items.length&&n;r=m?w:o.items,i=m?w.map(p):o.rows,e=m?[]:o.states}if(!r.length)return null;const d=n?[]:r.map(S);return u(T,{ownerId:t,ownerType:j,Template:c,rows:i,items:r,states:e.some(Boolean)?e:void 0,actions:d.some(Boolean)?d:void 0,fallback:null,children:o=>u(R,{ref:l,className:"contents",[k]:"",children:o})})}const q={...M,render:t=>u(x,{id:String(t.id??""),own:t,Template:t.template,editing:t.editor?.isEditing===!0,dragRef:t.editor?.dragRef??void 0})};export{q as CardListRender};
@@ -1 +1 @@
1
- import{jsx as s,Fragment as u}from"react/jsx-runtime";import{SECTION_GRID_COLUMN_CLASS as E}from"../../../../../../format/lib/content/section-min-height.js";import _,{cardGridCornerClasses as x}from"../../../../../components/Cards.js";import{CardTemplateRows as A}from"../../../../../components/CardRowContext.js";import{cardRow as D}from"../../../../../../format/lib/content/card-template.js";import{highlightOf as H,keyedRows as f,markedRows as h,rowHoldsContent as b}from"../../../../../../format/lib/content/card-state.js";import{declaredBlockSource as g,sourceChoices as I,sourcedRows as w}from"../../../../../../format/lib/content/block-sources.js";import{parseSectionHeadPlacement as L}from"../../../../../../format/lib/sections/section-head-placement.js";import{parseSectionEyebrowLook as v}from"../../../../../../format/lib/sections/section-eyebrow-look.js";import{phRows as F,phHide as y}from"../../scaffold.js";import{say as n}from"../../../../../../format/lib/editor-words.js";import{SERVED_CARD_FIELDS as a}from"../../../../../../format/lib/document/blocks/general/Cards/card-seed.js";import{CardsMeta as T,CARDS_PH as C}from"../../../../../../format/lib/document/blocks/general/Cards/meta.js";const S=()=>[{title:n("Card title one"),body:n("A short line about this card.")},{title:n("Card title two"),body:n("A short line about this card.")},{title:n("Card title three"),body:n("A short line about this card.")}],R=()=>S().map(t=>({[a.title]:t.title??"",[a.body]:t.body??""}));function N(t){return g(t)?w(t,t.editor?.isEditing===!0,R()).rows.filter(e=>e[a.title]||e[a.body]).map(e=>({title:e[a.title]??"",body:e[a.body]??""})):null}function O(t){const e=t.editor?.isEditing===!0,i=g(t),o=H(t);if(i){const r=w(t,e,R());return h(f(r.rows,r.sample?I(i):[]).filter(b),o)}const l=F(t.items,S(),t.editor).map(D);return h(f(l).filter(r=>e||b(r)),o)}function P(t,e,i){const o=i?`relative grid ${E} bg-bg`:"relative bg-bg";return s("div",{className:e?`${o} ${e}`:o,children:t})}const X={...T,render:t=>{const e=L(t.headPlacement)==="own-box",i=d=>e?void 0:d,o=(t.template?.blockCount??0)>0,l=N(t);if(!o&&l&&!l.length)return s(u,{});const r=d=>s(_,{look:v(t.eyebrowLook,t.cardStyle==="label-only"?"KeyFeatures":"Cards"),eyebrow:i(y(t.eyebrow,C.eyebrow,t.editor)),title:i(y(t.title,C.title,t.editor)),columns:t.columns,omitHead:e,editing:t.editor?.isEditing,cards:d}),{rows:c,states:k}=o?O(t):{rows:[],states:[]};return o&&l&&!c.length?s(u,{}):s(A,{ownerId:String(t.id??""),ownerType:"Cards",Template:t.template,rows:c,states:k,fallback:r(),wrapCopy:(d,m)=>P(d,x(m.index,c.length,t.columns),m.state?.highlighted===!0),children:d=>c.length?r(d):r()})}};export{X as CardsRender};
1
+ import{jsx as s,Fragment as m}from"react/jsx-runtime";import{SECTION_GRID_COLUMN_CLASS as E}from"../../../../../../format/lib/content/section-min-height.js";import _,{cardGridCornerClasses as x}from"../../../../../components/Cards.js";import{CardTemplateRows as A}from"../../../../../components/CardRowContext.js";import{cardRow as D}from"../../../../../../format/lib/content/card-template.js";import{highlightOf as H,keyedRows as u,markedRows as f,rowHoldsContent as h}from"../../../../../../format/lib/content/card-state.js";import{declaredBlockSource as b,sourceChoices as I,sourcedRows as w}from"../../../../../../format/lib/content/block-sources.js";import{parseSectionHeadPlacement as L}from"../../../../../../format/lib/sections/section-head-placement.js";import{parseSectionEyebrowLook as F}from"../../../../../../format/lib/sections/section-eyebrow-look.js";import{phRows as T,phHide as y}from"../../scaffold.js";import{say as n}from"../../../../../../format/lib/editor-words.js";import{SERVED_CARD_FIELDS as a}from"../../../../../../format/lib/document/blocks/general/Cards/card-seed.js";import{CardsMeta as v,CARDS_PH as C}from"../../../../../../format/lib/document/blocks/general/Cards/meta.js";const g=()=>[{title:n("Card title one"),body:n("A short line about this card.")},{title:n("Card title two"),body:n("A short line about this card.")},{title:n("Card title three"),body:n("A short line about this card.")}],S=()=>g().map(t=>({[a.title]:t.title??"",[a.body]:t.body??""}));function N(t){return b(t)?w(t,t.editor?.isEditing===!0,S()).rows.filter(e=>e[a.title]||e[a.body]).map(e=>({title:e[a.title]??"",body:e[a.body]??""})):null}function O(t){const e=t.editor?.isEditing===!0,o=b(t),d=H(t);if(o){const r=w(t,e,S());return f(u(r.rows,r.sample?I(o):[]).filter(h),d)}const l=T(t.items,g(),t.editor).map(D);return f(u(l).filter(r=>e||h(r)),d)}function P(t,e){const o=`relative grid ${E} bg-bg`;return s("div",{className:e?`${o} ${e}`:o,children:t})}const X={...v,render:t=>{const e=L(t.headPlacement)==="own-box",o=i=>e?void 0:i,d=(t.template?.blockCount??0)>0,l=N(t);if(!d&&l&&!l.length)return s(m,{});const r=i=>s(_,{look:F(t.eyebrowLook,t.cardStyle==="label-only"?"KeyFeatures":"Cards"),eyebrow:o(y(t.eyebrow,C.eyebrow,t.editor)),title:o(y(t.title,C.title,t.editor)),columns:t.columns,omitHead:e,editing:t.editor?.isEditing,cards:i}),{rows:c,states:R}=d?O(t):{rows:[],states:[]};return d&&l&&!c.length?s(m,{}):s(A,{ownerId:String(t.id??""),ownerType:"Cards",Template:t.template,rows:c,states:R,fallback:r(),wrapCopy:(i,k)=>P(i,x(k.index,c.length,t.columns)),children:i=>c.length?r(i):r()})}};export{X as CardsRender};