efficient-web-builder 55.3.0 → 56.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/editor/components/BlockGapField.d.ts +1 -2
  3. package/dist/editor/components/BlockGapField.js +1 -1
  4. package/dist/editor/components/CardShadowField.d.ts +1 -2
  5. package/dist/editor/components/CardShadowField.js +1 -1
  6. package/dist/editor/components/ChatSettingsPanel.js +1 -1
  7. package/dist/editor/components/CornersField.d.ts +1 -2
  8. package/dist/editor/components/CornersField.js +1 -1
  9. package/dist/editor/components/HoverEffectField.d.ts +1 -2
  10. package/dist/editor/components/HoverEffectField.js +1 -1
  11. package/dist/editor/components/PartSettingsPanel.js +1 -1
  12. package/dist/editor/components/PhotographyField.d.ts +1 -2
  13. package/dist/editor/components/PhotographyField.js +1 -1
  14. package/dist/editor/components/SectionEditor.js +1 -1
  15. package/dist/editor/components/SectionThumbnail.js +1 -1
  16. package/dist/editor/components/ShadowColourField.d.ts +1 -2
  17. package/dist/editor/components/ShadowColourField.js +1 -1
  18. package/dist/editor/components/ShareButtonField.d.ts +1 -2
  19. package/dist/editor/components/ShareButtonField.js +1 -1
  20. package/dist/editor/components/SideSpaceField.d.ts +1 -2
  21. package/dist/editor/components/SideSpaceField.js +1 -1
  22. package/dist/editor/components/SocialLinksPanel.js +1 -1
  23. package/dist/editor/components/SourceStatus.d.ts +2 -1
  24. package/dist/editor/components/SourceStatus.js +1 -1
  25. package/dist/editor/components/StandaloneSectionEditor.js +1 -1
  26. package/dist/editor/components/StorefrontEditor.js +1 -1
  27. package/dist/editor/components/StylesPanel.js +1 -1
  28. package/dist/editor/components/WebsiteHintsProvider.d.ts +8 -0
  29. package/dist/editor/components/WebsiteHintsProvider.js +1 -0
  30. package/dist/editor/components/WebsiteSettingsPanel.d.ts +6 -17
  31. package/dist/editor/components/WebsiteSettingsPanel.js +1 -1
  32. package/dist/editor/components/storefront-editor.css +35 -34
  33. package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
  34. package/dist/editor/lib/document/controls.js +1 -1
  35. package/dist/editor/lib/sections/new-section-node.js +1 -1
  36. package/dist/editor/lib/sections/text-layouts.js +1 -1
  37. package/dist/format/lib/content/box-layout.d.ts +5 -3
  38. package/dist/format/lib/content/box-layout.js +1 -1
  39. package/dist/format/lib/content/card-template.js +1 -1
  40. package/dist/format/lib/content/cell-picture-sizes.d.ts +31 -0
  41. package/dist/format/lib/content/cell-picture-sizes.js +1 -0
  42. package/dist/format/lib/content/image-aspect.d.ts +1 -0
  43. package/dist/format/lib/content/image-aspect.js +1 -1
  44. package/dist/format/lib/content/mirror-cards.d.ts +1 -1
  45. package/dist/format/lib/content/mirror-cards.js +1 -1
  46. package/dist/format/lib/document/article-body-seed.d.ts +10 -0
  47. package/dist/format/lib/document/article-body-seed.js +1 -0
  48. package/dist/format/lib/document/blocks/general/Timeline/meta.d.ts +2 -1
  49. package/dist/format/lib/document/blocks/general/Timeline/meta.js +2 -2
  50. package/dist/format/lib/document/blocks/placeholders.d.ts +1 -0
  51. package/dist/format/lib/document/blocks/placeholders.js +1 -1
  52. package/dist/format/lib/document/easel-row-words.d.ts +1 -1
  53. package/dist/format/lib/document/easel-row-words.js +1 -1
  54. package/dist/format/lib/document/section-catalog.js +2 -2
  55. package/dist/format/lib/editor-words-catalogue.d.ts +6 -0
  56. package/dist/format/lib/editor-words-catalogue.js +3 -3
  57. package/dist/format/lib/editor-words-kept.js +1 -1
  58. package/dist/format/lib/fit-words.js +2 -2
  59. package/dist/format/lib/hero-video.d.ts +2 -0
  60. package/dist/format/lib/hero-video.js +1 -1
  61. package/dist/format/lib/sections/section-presets.js +1 -1
  62. package/dist/format/lib/sections/timeline-year-shape.js +1 -1
  63. package/dist/format/lib/sized-image.d.ts +1 -0
  64. package/dist/format/lib/sized-image.js +1 -1
  65. package/dist/format/lib/source-rules/page-picture-place.d.ts +6 -0
  66. package/dist/format/lib/source-rules/page-picture-place.js +4 -0
  67. package/dist/format/lib/source-rules/part-style-naming.js +2 -2
  68. package/dist/format/lib/web-backend.d.ts +8 -0
  69. package/dist/render/components/Banner.js +1 -1
  70. package/dist/render/components/BoxCellWidthContext.d.ts +13 -0
  71. package/dist/render/components/BoxCellWidthContext.js +1 -1
  72. package/dist/render/components/Flex.d.ts +2 -1
  73. package/dist/render/components/Flex.js +1 -1
  74. package/dist/render/components/HeroPictures.d.ts +2 -1
  75. package/dist/render/components/HeroPictures.js +1 -1
  76. package/dist/render/components/HeroPoster.d.ts +4 -1
  77. package/dist/render/components/HeroPoster.js +1 -1
  78. package/dist/render/components/HeroSection.js +1 -1
  79. package/dist/render/components/HeroSlide.d.ts +3 -1
  80. package/dist/render/components/HeroSlide.js +1 -1
  81. package/dist/render/components/HeroVideoPlay.js +1 -1
  82. package/dist/render/components/ImageBlock.js +1 -1
  83. package/dist/render/components/Logos.js +1 -1
  84. package/dist/render/components/Manifesto.js +1 -1
  85. package/dist/render/components/Placeholder.d.ts +2 -1
  86. package/dist/render/components/Placeholder.js +1 -1
  87. package/dist/render/components/SectionHeader.js +1 -1
  88. package/dist/render/components/Split.js +1 -1
  89. package/dist/render/lib/content/block-size.d.ts +1 -0
  90. package/dist/render/lib/content/block-size.js +1 -1
  91. package/dist/render/lib/content/box-cell-bound.d.ts +17 -0
  92. package/dist/render/lib/content/box-cell-bound.js +1 -0
  93. package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
  94. package/dist/render/lib/document/blocks/general/HeroSlide/render.js +1 -1
  95. package/dist/render/lib/document/blocks/general/Timeline/render.js +1 -1
  96. package/dist/render/lib/document/blocks/general/section-head-looks.d.ts +1 -0
  97. package/dist/render/lib/document/blocks/general/section-head-looks.js +2 -2
  98. package/dist/render/lib/document/blocks/general/section-to-box-rows-pageheader.js +1 -1
  99. package/dist/render/lib/document/blocks/general/section-to-box-rows-timeline.d.ts +2 -0
  100. package/dist/render/lib/document/blocks/general/section-to-box-rows-timeline.js +2 -2
  101. package/dist/render/lib/document/page-render.js +1 -1
  102. package/dist/render/lib/document/passes/block-size.js +1 -1
  103. package/dist/render/lib/document/slot-counts.d.ts +8 -0
  104. package/dist/render/lib/document/slot-counts.js +1 -0
  105. package/dist/render/lib/first-screen.d.ts +28 -0
  106. package/dist/render/lib/first-screen.js +1 -0
  107. package/dist/render/lib/sections/section-to-box.js +1 -1
  108. package/dist/render/lib/site-runtime.d.ts +1 -0
  109. package/package.json +3 -3
  110. package/dist/editor/components/KeepHint.d.ts +0 -5
  111. package/dist/editor/components/KeepHint.js +0 -1
@@ -1,2 +1,15 @@
1
+ import { type ReactNode } from "react";
2
+ import { type ViewBound } from "../../format/lib/content/cell-picture-sizes.js";
3
+ export type { ViewBound } from "../../format/lib/content/cell-picture-sizes.js";
4
+ export interface BoxCellValue {
5
+ hasWidth: boolean;
6
+ bound?: ViewBound;
7
+ }
8
+ export declare const BoxCellContext: import("react").Context<BoxCellValue>;
1
9
  export declare const BoxCellWidthContext: import("react").Context<boolean>;
2
10
  export declare function useBoxCellHasWidth(): boolean;
11
+ export declare function useCellPictureSizes(fallback: string): string;
12
+ export declare function useSizesWithinCell(own: string): string;
13
+ export declare function NoCellBound({ children }: {
14
+ children: ReactNode;
15
+ }): import("react").JSX.Element;
@@ -1 +1 @@
1
- "use client";import{createContext as t,useContext as e}from"react";const o=t(!1);function r(){return e(o)}export{o as BoxCellWidthContext,r as useBoxCellHasWidth};
1
+ "use client";import{jsx as r,Fragment as l}from"react/jsx-runtime";import{createContext as s,useContext as o}from"react";import{cellPictureSizesOf as i,narrowerSizes as c}from"../../format/lib/content/cell-picture-sizes.js";const u={hasWidth:!1},n=s(u),a=s(!1);function C(){const t=o(n),e=o(a);return t.hasWidth||e}function f(t){const{bound:e}=o(n);return e&&i(e)||t}function p(t){const{bound:e}=o(n);return c(t,e&&i(e))}function m({children:t}){const e=o(n);return e.bound?r(n.Provider,{value:{hasWidth:e.hasWidth},children:t}):r(l,{children:t})}export{n as BoxCellContext,a as BoxCellWidthContext,m as NoCellBound,C as useBoxCellHasWidth,f as useCellPictureSizes,p as useSizesWithinCell};
@@ -77,10 +77,11 @@ interface FlexProps {
77
77
  };
78
78
  sharedRows?: boolean;
79
79
  boxId?: string;
80
+ slotCount?: number;
80
81
  mirrorCards?: unknown;
81
82
  content: SlotComponent;
82
83
  rowTitle?: SlotComponent;
83
84
  startsOpen?: unknown;
84
85
  }
85
- 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, borderTablet, borderPhone, 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, boxShape, boxShapePhone, boxShapeTablet, jumpHighlight, anchor, sharedSides, sharedRows, boxId, mirrorCards, content: Content, rowTitle: RowTitle, startsOpen, }: 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;
86
+ 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, borderTablet, borderPhone, 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, boxShape, boxShapePhone, boxShapeTablet, jumpHighlight, anchor, sharedSides, sharedRows, boxId, slotCount, mirrorCards, content: Content, rowTitle: RowTitle, startsOpen, }: 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;
86
87
  export {};
@@ -1 +1 @@
1
- import{Fragment as so,jsx as e,jsxs as vo}from"react/jsx-runtime";import{useId as Zs}from"react";import ot from"./BoxTabs.js";import{BoxTabPaneContext as Ao,useBoxPaneKind as et,useIsTabPane as st}from"./BoxTabPaneContext.js";import tt from"./BoxAccordionRow.js";import{boxPhoneCell as nt,boxPhoneOrder as rt}from"../../format/lib/content/box-phone-place.js";import{CellFillContext as Fe,InBoxContext as Te,useCellOfStretchedRow as lt,useFillsCell as it}from"./InBoxContext.js";import ct,{InsideSiteColumn as De,useInsideSiteGutter as at,useSectionRoot as dt}from"./SiteGutterFrame.js";import{BoxSurfaceProvider as ut}from"./BoxSurfaceContext.js";import mt from"./PictureWash.js";import{BoxCellWidthContext as ft}from"./BoxCellWidthContext.js";import{useInSiteHeader as Ct}from"./PhoneMenuTools.js";import{useCardRow as ht}from"./CardRowContext.js";import{framesItsCards as bt}from"../../format/lib/content/card-place.js";import{HandedMirrorContext as xt,MirrorContext as pt,RowHandContext as Ie,boxPlace as wt,useHandedMirrorAbove as St,useHandedRows as $t,useMirroredCopy as Pt,useUnderCardBox as Rt}from"./MirrorContext.js";import{boxChildrenHand as _t,isMirroredCopy as vt,mirrorCardsActs as ge,mirrorCardsOf as At,mirroredBoxClass as Lt,MIRROR_ROW_CLASS as yt,ownsCard as kt}from"../../format/lib/content/mirror-cards.js";import{FRAME_BASE as Lo,FRAME_GUTTER as yo}from"./BlockFrame.js";import{containerGapProps as Ot}from"../../format/lib/content/container-gap.js";import{boxLayoutClasses as Nt,boxAlignViewClasses as Bt,boxBlockSpacingClass as Et,boxBlockSpacingViewClasses as Ft,boxJustifyViewClasses as Tt,boxWrapTabletClass as Dt,boxFitContentClass as It,boxRowColumnsClass as gt,boxRowTabletColumnsClass as Mt,boxRowTabletShareClass as Vt,boxPhoneCellsShareLine as Ht,boxPhoneRowClasses as U,boxPhoneRowFits as Wt,boxShareClasses as I,boxShareVars as Gt,boxWrapClass as Xt,BOX_GAP_ONLY_CLASS as jt}from"../../format/lib/content/box-layout.js";import{boxSeparatorClasses as Ut,boxSeparatorSeamClass as Kt,boxSeparatorStyle as Jt,isStripBox as zt}from"../../format/lib/content/box-separator.js";import{DEFAULT_LOOP_DELAY as Yt,DEFAULT_LOOP_DIRECTION as qt,DEFAULT_LOOP_SECONDS as Qt,isVerticalLoop as Zt}from"../../format/lib/animation/index.js";import{LoopTrack as on}from"../lib/animation/LoopTrack.js";import{BOX_CARD_PAD as S,BOX_OWNS_SIDES_CLASS as en,boxDarkenStyle as sn,boxFillOf as tn,boxFillViews as nn,boxPlacementClasses as rn,boxSwatchFill as ln,boxWashViews as cn,CARD_SHADOW_CLASS as an,isBackgroundBox as Me}from"../../format/lib/content/box-background.js";import{boxShadowAttrs as dn,boxShadowOnAnyView as un,boxShadowViewAttrs as mn}from"../../format/lib/content/box-shadow.js";import{boxRunsEdgeToEdge as fn,drawsSiteGutter as Cn}from"../../format/lib/content/site-gutter.js";import{boxShapeClass as hn,boxShapeClasses as bn}from"../../format/lib/content/box-shape.js";import{BOX_JUMP_ATTR as xn,BOX_LINK_ATTR as Ve,BOX_LINK_CLASS as He,BOX_LINKED_CLASS as pn,boxJumpBlocksClass as wn,boxJumpCss as Sn,boxJumpSlug as $n,boxLinkOf as Pn}from"../../format/lib/content/box-link.js";import{SiteLink as Rn}from"../lib/site-runtime.js";import{sectionBorderStyle as We}from"../../format/lib/content/borders.js";import{finiteNumber as $}from"../../format/lib/finite-number.js";import{padDefaultIn as P,sectionPadAttrs as _n}from"../lib/content/section-padding.js";import{SECTION_FILL_CLASS as to}from"../../format/lib/content/section-min-height.js";import{ON_MEDIA_INK_STYLE as vn}from"../../format/lib/content/ink.js";import{sizedBackground as ko}from"../../format/lib/sized-image.js";import{PHOTO_HOST_ATTR as An,resolveImageTreatment as Ln}from"../../format/lib/content/image-treatment.js";import{BoxRail as yn,BoxRailStop as kn,RAIL_STOPS_CLASS as On,useTimelineRail as Nn}from"./TimelineRail.js";import{SHARED_PLAIN_ATTR as Bn,sharedColumnsClasses as En,sharedColumnsCss as Fn,sharedRowsClasses as Tn,sharedRowsCss as Dn}from"../lib/content/box-shared-columns.js";import In from"./PhotoHoverSheet.js";import{stackGutterClass as gn,stackLineCss as Mn,stackOuterClass as Vn,stackRowClass as Hn,storedStackLine as Wn}from"../lib/content/box-stack-line.js";const Oo={"--sf-site-gutter":"0px"},Gn={overflowX:"clip",overflowY:"visible"},Xn={stretchedRow:!1,fillingColumn:!1,columnsRow:!1},jn={desktop:!1,phone:!1},Ge="bg-cover bg-center bg-[image:var(--sf-box-bg)] max-view-tablet:bg-[image:var(--sf-box-bg-p)]",No=a=>a==null||a==="",Bo=a=>!No(a)&&Number(a)===0;function Un({children:a}){return e(so,{children:a(Zs())})}function Kn({direction:a,label:Xe,tabShape:je,gap:Eo,gapPhone:Ue,gapTablet:no,justify:g,align:R,wrap:K,share:Ke,sharePhone:J,shareTablet:M,wrapPhone:Je,orderPhone:ze,phoneRow:V,columns:_,columnsTablet:O,separator:f,stackBelow:Ye,blockSpacing:Fo,bgImage:v,bgImagePhone:To,pictureHover:qe,darken:Do,darkenStyle:Io,darkenTablet:Qe,darkenPhone:Ze,darkenStyleTablet:os,darkenStylePhone:es,placement:ss,padV2:go=!1,border:Mo,borderTablet:Vo,borderPhone:Ho,pad:t={},contained:ro=!0,fillHeight:A=!1,shadow:lo,shadowTablet:Wo,shadowPhone:Go,justifyTablet:ts,justifyPhone:ns,alignTablet:rs,alignPhone:ls,wrapTablet:is,blockSpacingTablet:cs,blockSpacingPhone:as,loop:h,scrollDirection:io=qt,loopSeconds:ds=Qt,loopDelay:us=Yt,editing:N=!1,fillColor:Xo,fillColorTablet:ms,fillColorPhone:fs,swatch:Cs,line:L,upcoming:hs,link:bs,boxShape:jo,boxShapePhone:xs,boxShapeTablet:ps,jumpHighlight:ws,anchor:Ss,sharedSides:d=jn,sharedRows:$s=!1,boxId:B,mirrorCards:Uo,content:l,rowTitle:co,startsOpen:Ps}){const r=ht(),Rs=St(),Ko=Rt()&&!(Rs&&r!==null),b=$t(),z=kt({inCopy:r!==null,nestedCopy:r?.nested===!0,underBox:Ko}),Jo=r===null&&!Ko&&b?.ids&&B?b.ids.indexOf(B):-1,Y=Jo>=0&&b&&B?wt(b,B,Jo):-1,C=Y>=0?b?.hand??null:z&&b?.copies===!0?b.hand:null,o=C?.row?"row":a,u=C?.row?C.row.share:Ke,_s=C?.row?C.row.phoneReverse?[...l.blockIds??[]].reverse():void 0:ze,ao=$s&&!C?.row,E=N?"":Pn(bs),x=A?"":bn(jo,xs,ps),vs=!A&&hn(jo)!=="",y=$n(ws,Ss),zo=ln({swatch:Cs},r?.row),q=zo??tn(Xo),F=zo?{className:"",style:{}}:nn(Xo,ms,fs),Yo=q||F.className?{...q?{backgroundColor:q}:{},...F.style}:void 0,qo=Nn(),Q=L===!0&&o!=="tabs"&&o!=="accordion",n=Me(v),Z=Ct(),As=dt(),Ls=st(),Qo=et(),c=o==="accordion",uo=it(),ys=lt(),T=zt(o,f),i=h==="scroll"&&o!=="tabs"&&!c,ks=Pt(),oo=z||Y>=0&&C!==null,Zo=C?C.mirror:Uo,Os=Y>=0?Y:r?.index,mo=z&&bt(r?.ownerType),oe=ge({direction:o,separator:f,loop:h,line:L,bgImage:v,columns:_,columnsTablet:O,share:u,wrap:K},oo,d.desktop)&&vt(Zo,Os),ee=n||oo?"":Lt(ks,o,i?void 0:g,R),Ns=ge({direction:o,separator:f,loop:h,line:L,bgImage:v,columns:_,columnsTablet:O,share:u,wrap:K},oo,d.desktop)&&At(Zo)!==null,D=gt({direction:o,separator:f,loop:h,line:L,columns:_}),p=Mt({direction:o,separator:f,loop:h,line:L,columnsTablet:O}),H=Vt({direction:o,separator:f,loop:h,line:L,columns:_,columnsTablet:O,share:u,shareTablet:M}),m=o==="row"&&!n&&!T&&!i&&!Q&&p===""&&H===""?Wn(Ye):void 0,Bs=at(),eo=En(d,l.blockCount??0,m),Es=(eo&&(!r||r.index===0)?Fn(d,l.blockCount??0,m):"")+(ao&&(!r||r.index===0)?Dn(ao,l.blockCount??0):""),se=Tn(ao,l.blockCount??0),te=p!==""?Number(O)>=2:H===""||I(M)!=="",fo=p!==""||H!=="",Fs=fo&&!(p!==""&&Number(O)<2),ne=o==="row"&&!T&&!i&&L!==!0,Co=ne&&!d.phone&&!d.desktop?nt(rt(_s,l.blockIds??[]),{tabletKeepsRow:Fs,editing:N}):void 0,re=Co!==void 0&&!N,Ts=D!==""?Number(_)>=2:I(u)!=="",le=!n&&!c&&!Ns&&!d.desktop&&!d.phone,ie=le&&!i?Tt(g,ts,ns):"",Ds=le&&o==="row"?Bt(R,rs,ls):"",Is=!i&&!c&&D===""&&p===""&&!d.desktop?Dt(K,is):"",ce=[c?"":I(u),o==="row"?It(u):"",D,p,H,Et(c?"gap":Fo),Ut(o,f),c?"border-t border-line":"",ie,Ds,Is,c?"":Ft(Fo,cs,as)].filter(Boolean).join(" "),gs=ce?` ${ce}`:"",ae=["flex",o==="row"?T||i?"flex-row":`flex-row ${U(V,J,Je)}`:"flex-col",Xt(i||c?!1:K),n?rn(ss??"center",o):Nt(i||c?void 0:g,c?void 0:R)+(ee?` ${ee}`:"")].join(" ")+gs,W=A||n||x||uo?` ${to}`:"",ho=vs?` ${x}`:x?`${W} ${x}`:W,de=ys&&o==="column"&&!n&&!i&&I(u)===""&&(typeof g=="string"&&g!=="start"||ie!==""),ue=W||(de?` ${to}`:""),bo=E?` ${pn}`:"",xo=n||Z||go?"":" py-6",Ms=m===void 0?"":` ${Hn(m)}`,me=m===void 0?"":` ${gn(m)}`,po=m===void 0?"":` ${Vn(m)}`,Vs=`${Lo}${xo} ${yo}${ho}${bo}${me}${po}`,Hs=Z?`${ho}${bo}${po}`.trim():`w-full${xo}${ho}${bo}${po}`,G=Ot("Flex",Eo,o==="row"?"inline":"block",Ue,T||i?void 0:no),fe=Gt(u,M,o==="row"?l.blockCount??0:0),Ce=T?{...G.style,...Jt(o,f)}:G.style,Ws=fe?{...Ce,...fe}:Ce,he=(s="")=>e(l,{className:`${ae}${oe?` ${yt}`:""}${G.className}${ue}${Ms}${s?` ${s}`:""}${Q?` ${On}`:""}${y?` ${wn(y)}`:""}${eo}${se}`,style:Ws,minEmptyHeight:120,...Co?{cell:Co}:null}),be=Zt(io)?"":Kt(o,f),xe=i?e(on,{direction:io,seconds:ds,delay:us,editing:N,copy:s=>he(s&&be?`${s} ${be}`:s)}):he(),wo=o==="tabs"?e(ot,{className:`${ae}${G.className}${uo&&!A&&!n&&!x?"":W}`,style:G.style,shape:je,children:xe}):xe,So=c?e(Ao.Provider,{value:"accordion",children:wo}):Qo?e(Ao.Provider,{value:!1,children:wo}):wo,pe=o==="row"&&!n&&(R===void 0||R==="stretch"),Gs={stretchedRow:pe,fillingColumn:o==="column"&&(uo||de),columnsRow:D!==""||p!==""||eo!==""||se!==""||o==="row"&&(Array.isArray(u)||Array.isArray(M))||re,...re?{phoneCells:!0}:null,...pe&&ne&&(l.blockCount??0)>=2&&Ts?{picturesFillRow:!0}:null,...fo?{fillFrom:te?"tablet":"desktop"}:null,...Ht(V,J)&&(!fo||te)?{phoneRowFills:!0}:null,...B?{id:B}:null},we=r===null?_t({direction:o,loop:h,bgImage:v,columns:_,mirrorCards:Uo},!1):null,Se=we?e(Ie.Provider,{value:{hand:we,ids:l.blockIds??[],boxes:[]},children:So}):b?e(Ie.Provider,{value:null,children:So}):So,$e=e(Te.Provider,{value:Gs,children:e(Fe.Provider,{value:!1,children:oo?e(pt.Provider,{value:oe,children:e(xt.Provider,{value:!z,children:Se})}):Se})}),Xs=co?.blockCount??0,Pe=Qo==="accordion"&&!!co&&(N||Xs>0)?e(tt,{startsOpen:Ps===!0,editing:N,title:e(Te.Provider,{value:Xn,children:e(Fe.Provider,{value:!1,children:e(Ao.Provider,{value:!1,children:e(co,{className:`min-w-0 flex-1 ${jt}`,minEmptyHeight:24})})})}),children:$e}):$e,$o=Q?e(yn,{row:o==="row",stops:l.blockCount??0,children:Pe}):Pe,js=Xe?.trim()||(Ls?"":void 0),Us={values:t,frame:xo?24:0},Ks=s=>qo?e(kn,{on:qo,future:hs===!0,children:s}):s,Js=s=>E.startsWith("/")?e(Rn,{href:E,className:He,"aria-labelledby":s,[Ve]:""}):e("a",{href:E,className:He,"aria-labelledby":s,[Ve]:""}),Re=(y?Sn(y):"")+Es+(m===void 0||r&&r.index!==0?"":Mn(m)),_e=Re?e("style",{dangerouslySetInnerHTML:{__html:Re}}):null,X=fn({loop:h,direction:o,scrollDirection:io,bgImage:v}),zs=d.desktop&&eo!==""&&!q&&!F.className&&!We(Mo,Ho,Vo)&&!un(lo,Wo,Go)&&!E&&!x&&!A&&!y&&!Cn(ro&&!X,Bs)&&Bo(Eo)&&(No(no)||Bo(no))&&go&&Object.values(t).every(s=>No(s)||Bo(s)),Ys=s=>({...zs?{[Bn]:""}:null,...n?null:{...dn(lo),...mn(lo,Wo,Go)},...y?{[xn]:y}:null,...s?{id:s}:null}),ve=D!==""?Number(_):0,qs=U(V,J)===U(void 0),Qs=(o==="column"||o==="row"&&!T&&!i&&(ve===1&&qs||ve===0&&l.blockCount===1))&&!n&&!Q&&!Z,Ae=n&&As&&!Z,Le=(s,w)=>Ks(e(ct,{contained:ro&&!X,style:X?Oo:void 0,framedClass:Vs,fillClass:Hs,columnClass:`${Lo} ${yo}${ue}${me}`,tabLabel:js,pad:n?void 0:Us,border:We(Mo,Ho,Vo),outerAttrs:Ys(w),box:!0,edge:Qs,outerStyle:n?void 0:Yo,outerClass:n?void 0:F.className||void 0,bleed:Ae,children:_e||w?vo(so,{children:[_e,w?Js(w):null,X?e(De,{children:s}):s]}):X?e(De,{children:s}):s})),ye=s=>E?e(Un,{children:w=>Le(s,w)}):Le(s);if(!n){const s=R===void 0||R==="stretch",w=(I(u)!==""||D!==""||p!=="")&&!Wt(V,J)&&!(H!==""&&I(M)==="")&&(s||U(V)!==U(void 0));return ye((o==="row"?w:o==="column"&&s)?e(ft.Provider,{value:!0,children:$o}):$o)}const j=sn(Do,Io),Po=cn({darken:Do,darkenStyle:Io,darkenTablet:Qe,darkenStyleTablet:os,darkenPhone:Ze,darkenStylePhone:es}),ke=[mo?"rounded-[inherit]":"",Po.className].filter(Boolean).join(" "),Ro=Me(To),Oe=Ro?{"--sf-box-bg":ko(v??""),"--sf-box-bg-p":ko(To??"")}:{backgroundImage:ko(v??""),backgroundSize:"cover",backgroundPosition:"center"},Ne=Ln(void 0,void 0,qe),k=Ne.className?Ne:null,_o=_n({...t,top:$(t.top)??P(S.desktop,t.unit,"desktop"),bottom:$(t.bottom)??P(S.desktop,t.unit,"desktop"),topPhone:$(t.topPhone)??P(S.phone,t.unitPhone,"mobile"),bottomPhone:$(t.bottomPhone)??P(S.phone,t.unitPhone,"mobile"),left:$(t.left)??P(S.side,t.unit,"desktop"),right:$(t.right)??P(S.side,t.unit,"desktop"),leftPhone:$(t.leftPhone)??P(S.sidePhone,t.unitPhone,"mobile"),rightPhone:$(t.rightPhone)??P(S.sidePhone,t.unitPhone,"mobile")}),Be=e("div",{className:`relative z-[1] ${en} ${_o?.className??""}${A||x?` ${to}`:""}`.trimEnd(),style:j?{..._o?.style,...Oo,...vn}:{..._o?.style,...Oo},children:$o}),Ee=Ae&&ro?e("div",{className:`${Lo} ${yo}${A||x?` ${to}`:""}`,children:Be}):Be;return ye(e(so,{children:vo("div",{className:`relative isolate overflow-hidden ${an}${W}${Ro&&!k?` ${Ge}`:""}${F.className?` ${F.className}`:""}`,style:{...mo?Gn:{},...Yo,...k?{}:Oe},...k?{[An]:""}:{},children:[k&&vo(so,{children:[e(In,{sheet:k.sheet}),e("div",{"aria-hidden":!0,className:`absolute inset-0${mo?" rounded-[inherit]":""}${Ro?` ${Ge}`:""} ${k.className}`,style:{...Oe,...k.style??{}}})]}),e(mt,{wash:j&&Po.className?{...j,...Po.style}:j,...ke?{className:ke}:{}}),j?e(ut,{children:Ee}):Ee]})}))}export{Kn as default};
1
+ import{Fragment as to,jsx as o,jsxs as Lo}from"react/jsx-runtime";import{useContext as rt,useId as lt}from"react";import it from"./BoxTabs.js";import{BoxTabPaneContext as yo,useBoxPaneKind as ct,useIsTabPane as at}from"./BoxTabPaneContext.js";import dt from"./BoxAccordionRow.js";import{boxPhoneCell as ut,boxPhoneOrder as mt}from"../../format/lib/content/box-phone-place.js";import{CellFillContext as Ve,InBoxContext as He,useCellOfStretchedRow as ft,useFillsCell as Ct}from"./InBoxContext.js";import ht,{InsideSiteColumn as We,useInsideSiteGutter as bt,useSectionRoot as xt}from"./SiteGutterFrame.js";import{BoxSurfaceProvider as pt}from"./BoxSurfaceContext.js";import wt from"./PictureWash.js";import{BoxCellContext as Ge,BoxCellWidthContext as St,NoCellBound as $t}from"./BoxCellWidthContext.js";import{boxCellFractions as Pt}from"../lib/content/box-cell-bound.js";import{boundOf as Rt}from"../../format/lib/content/cell-picture-sizes.js";import{useInSiteHeader as _t}from"./PhoneMenuTools.js";import{useCardRow as vt}from"./CardRowContext.js";import{framesItsCards as At}from"../../format/lib/content/card-place.js";import{HandedMirrorContext as Lt,MirrorContext as yt,RowHandContext as Xe,boxPlace as kt,useHandedMirrorAbove as Ot,useHandedRows as Nt,useMirroredCopy as Bt,useUnderCardBox as Et}from"./MirrorContext.js";import{boxChildrenHand as Ft,isMirroredCopy as Tt,mirrorCardsActs as Ue,mirrorCardsOf as Dt,mirroredBoxClass as It,MIRROR_ROW_CLASS as gt,ownsCard as Mt}from"../../format/lib/content/mirror-cards.js";import{FRAME_BASE as ko,FRAME_GUTTER as Oo}from"./BlockFrame.js";import{containerGapProps as Vt}from"../../format/lib/content/container-gap.js";import{boxLayoutClasses as Ht,boxAlignViewClasses as Wt,boxBlockSpacingClass as Gt,boxBlockSpacingViewClasses as Xt,boxJustifyViewClasses as Ut,boxWrapTabletClass as jt,boxFitContentClass as Kt,boxRowColumnsClass as Jt,boxRowTabletColumnsClass as zt,boxRowTabletShareClass as Yt,boxPhoneCellsShareLine as qt,boxPhoneRowClasses as K,boxPhoneRowFits as Qt,boxShareClasses as M,boxShareVars as Zt,boxWrapClass as on,BOX_GAP_ONLY_CLASS as en}from"../../format/lib/content/box-layout.js";import{boxSeparatorClasses as sn,boxSeparatorSeamClass as tn,boxSeparatorStyle as nn,isStripBox as rn}from"../../format/lib/content/box-separator.js";import{DEFAULT_LOOP_DELAY as ln,DEFAULT_LOOP_DIRECTION as cn,DEFAULT_LOOP_SECONDS as an,isVerticalLoop as dn}from"../../format/lib/animation/index.js";import{LoopTrack as un}from"../lib/animation/LoopTrack.js";import{BOX_CARD_PAD as P,BOX_OWNS_SIDES_CLASS as mn,boxDarkenStyle as fn,boxFillOf as Cn,boxFillViews as hn,boxPlacementClasses as bn,boxSwatchFill as xn,boxWashViews as pn,CARD_SHADOW_CLASS as wn,isBackgroundBox as je}from"../../format/lib/content/box-background.js";import{boxShadowAttrs as Sn,boxShadowOnAnyView as $n,boxShadowViewAttrs as Pn}from"../../format/lib/content/box-shadow.js";import{boxRunsEdgeToEdge as Rn,drawsSiteGutter as _n}from"../../format/lib/content/site-gutter.js";import{boxShapeClass as vn,boxShapeClasses as An}from"../../format/lib/content/box-shape.js";import{BOX_JUMP_ATTR as Ln,BOX_LINK_ATTR as Ke,BOX_LINK_CLASS as Je,BOX_LINKED_CLASS as yn,boxJumpBlocksClass as kn,boxJumpCss as On,boxJumpSlug as Nn,boxLinkOf as Bn}from"../../format/lib/content/box-link.js";import{SiteLink as En}from"../lib/site-runtime.js";import{sectionBorderStyle as ze}from"../../format/lib/content/borders.js";import{finiteNumber as R}from"../../format/lib/finite-number.js";import{padDefaultIn as _,sectionPadAttrs as Fn}from"../lib/content/section-padding.js";import{SECTION_FILL_CLASS as no}from"../../format/lib/content/section-min-height.js";import{ON_MEDIA_INK_STYLE as Tn}from"../../format/lib/content/ink.js";import{sizedBackground as No}from"../../format/lib/sized-image.js";import{PHOTO_HOST_ATTR as Dn,resolveImageTreatment as In}from"../../format/lib/content/image-treatment.js";import{BoxRail as gn,BoxRailStop as Mn,RAIL_STOPS_CLASS as Vn,useTimelineRail as Hn}from"./TimelineRail.js";import{SHARED_PLAIN_ATTR as Wn,sharedColumnsClasses as Gn,sharedColumnsCss as Xn,sharedRowsClasses as Un,sharedRowsCss as jn}from"../lib/content/box-shared-columns.js";import Kn from"./PhotoHoverSheet.js";import{stackGutterClass as Jn,stackLineCss as zn,stackOuterClass as Yn,stackRowClass as qn,storedStackLine as Qn}from"../lib/content/box-stack-line.js";const Bo={"--sf-site-gutter":"0px"},Zn={overflowX:"clip",overflowY:"visible"},or={stretchedRow:!1,fillingColumn:!1,columnsRow:!1},er={desktop:!1,phone:!1},Ye="bg-cover bg-center bg-[image:var(--sf-box-bg)] max-view-tablet:bg-[image:var(--sf-box-bg-p)]",Eo=u=>u==null||u==="",Fo=u=>!Eo(u)&&Number(u)===0;function sr({children:u}){return o(to,{children:u(lt())})}function tr({direction:u,label:qe,tabShape:Qe,gap:To,gapPhone:Ze,gapTablet:ro,justify:V,align:v,wrap:J,share:os,sharePhone:H,shareTablet:N,wrapPhone:es,orderPhone:ss,phoneRow:B,columns:b,columnsTablet:A,separator:m,stackBelow:Do,blockSpacing:Io,bgImage:L,bgImagePhone:go,pictureHover:ts,darken:Mo,darkenStyle:Vo,darkenTablet:ns,darkenPhone:rs,darkenStyleTablet:ls,darkenStylePhone:is,placement:cs,padV2:Ho=!1,border:Wo,borderTablet:Go,borderPhone:Xo,pad:t={},contained:lo=!0,fillHeight:y=!1,shadow:io,shadowTablet:Uo,shadowPhone:jo,justifyTablet:Ko,justifyPhone:as,alignTablet:ds,alignPhone:us,wrapTablet:Jo,blockSpacingTablet:ms,blockSpacingPhone:fs,loop:C,scrollDirection:co=cn,loopSeconds:Cs=an,loopDelay:hs=ln,editing:E=!1,fillColor:zo,fillColorTablet:bs,fillColorPhone:xs,swatch:ps,line:x,upcoming:ws,link:Ss,boxShape:Yo,boxShapePhone:$s,boxShapeTablet:Ps,jumpHighlight:Rs,anchor:_s,sharedSides:l=er,sharedRows:vs=!1,boxId:F,slotCount:As,mirrorCards:qo,content:i,rowTitle:ao,startsOpen:Ls}){const r=vt(),Qo=rt(Ge),ys=Ot(),Zo=Et()&&!(ys&&r!==null),p=Nt(),z=Mt({inCopy:r!==null,nestedCopy:r?.nested===!0,underBox:Zo}),oe=r===null&&!Zo&&p?.ids&&F?p.ids.indexOf(F):-1,Y=oe>=0&&p&&F?kt(p,F,oe):-1,h=Y>=0?p?.hand??null:z&&p?.copies===!0?p.hand:null,e=h?.row?"row":u,a=h?.row?h.row.share:os,ks=h?.row?h.row.phoneReverse?[...i.blockIds??[]].reverse():void 0:ss,q=vs&&!h?.row,T=E?"":Bn(Ss),w=y?"":An(Yo,$s,Ps),Os=!y&&vn(Yo)!=="",k=Nn(Rs,_s),ee=xn({swatch:ps},r?.row),Q=ee??Cn(zo),D=ee?{className:"",style:{}}:hn(zo,bs,xs),se=Q||D.className?{...Q?{backgroundColor:Q}:{},...D.style}:void 0,te=Hn(),Z=x===!0&&e!=="tabs"&&e!=="accordion",n=je(L),oo=_t(),Ns=xt(),Bs=at(),ne=ct(),d=e==="accordion",uo=Ct(),Es=ft(),I=rn(e,m),c=C==="scroll"&&e!=="tabs"&&!d,Fs=Bt(),eo=z||Y>=0&&h!==null,re=h?h.mirror:qo,Ts=Y>=0?Y:r?.index,mo=z&&At(r?.ownerType),le=Ue({direction:e,separator:m,loop:C,line:x,bgImage:L,columns:b,columnsTablet:A,share:a,wrap:J},eo,l.desktop)&&Tt(re,Ts),Ds=Ue({direction:e,separator:m,loop:C,line:x,bgImage:L,columns:b,columnsTablet:A,share:a,wrap:J},eo,l.desktop)&&Dt(re)!==null,g=Jt({direction:e,separator:m,loop:C,line:x,columns:b}),S=zt({direction:e,separator:m,loop:C,line:x,columnsTablet:A}),W=Yt({direction:e,separator:m,loop:C,line:x,columns:b,columnsTablet:A,share:a,shareTablet:N}),f=e==="row"&&!n&&!I&&!c&&!Z&&S===""&&W===""?Qn(Do):void 0,Is=bt(),so=Gn(l,i.blockCount??0,f),gs=(so&&(!r||r.index===0)?Xn(l,i.blockCount??0,f):"")+(q&&(!r||r.index===0)?jn(q,i.blockCount??0):""),ie=Un(q,i.blockCount??0),ce=S!==""?Number(A)>=2:W===""||M(N)!=="",fo=S!==""||W!=="",Ms=fo&&!(S!==""&&Number(A)<2),ae=e==="row"&&!I&&!c&&x!==!0,Co=ae&&!l.phone&&!l.desktop?ut(mt(ks,i.blockIds??[]),{tabletKeepsRow:Ms,editing:E}):void 0,de=Co!==void 0&&!E,Vs=g!==""?Number(b)>=2:M(a)!=="",ue=!n&&!d&&!Ds&&!l.desktop&&!l.phone,ho=ue&&!c?Ut(V,Ko,as):"",me=n||eo?"":It(Fs,e,c?void 0:V,v,ho?Ko:void 0),Hs=ue&&e==="row"?Wt(v,ds,us):"",Ws=!c&&!d&&g===""&&S===""&&!l.desktop?jt(J,Jo):"",fe=[d?"":M(a),e==="row"?Kt(a):"",g,S,W,Gt(d?"gap":Io),sn(e,m),d?"border-t border-line":"",ho,Hs,Ws,d?"":Xt(Io,ms,fs)].filter(Boolean).join(" "),Gs=fe?` ${fe}`:"",Ce=["flex",e==="row"?I||c?"flex-row":`flex-row ${K(B,H,es,Jo)}`:"flex-col",on(c||d?!1:J),n?bn(cs??"center",e):Ht(c||d?void 0:V,d?void 0:v)+(me?` ${me}`:"")].join(" ")+Gs,G=y||n||w||uo?` ${no}`:"",bo=Os?` ${w}`:w?`${G} ${w}`:G,he=Es&&e==="column"&&!n&&!c&&M(a)===""&&(typeof V=="string"&&V!=="start"||ho!==""),be=G||(he?` ${no}`:""),xo=T?` ${yn}`:"",po=n||oo||Ho?"":" py-6",Xs=f===void 0?"":` ${qn(f)}`,xe=f===void 0?"":` ${Jn(f)}`,wo=f===void 0?"":` ${Yn(f)}`,Us=`${ko}${po} ${Oo}${bo}${xo}${xe}${wo}`,js=oo?`${bo}${xo}${wo}`.trim():`w-full${po}${bo}${xo}${wo}`,X=Vt("Flex",To,e==="row"?"inline":"block",Ze,I||c?void 0:ro),pe=Zt(a,N,e==="row"?i.blockCount??0:0),we=I?{...X.style,...nn(e,m)}:X.style,Ks=pe?{...we,...pe}:we,Se=(s="")=>o(i,{className:`${Ce}${le?` ${gt}`:""}${X.className}${be}${Xs}${s?` ${s}`:""}${Z?` ${Vn}`:""}${k?` ${kn(k)}`:""}${so}${ie}`,style:Ks,minEmptyHeight:120,...Co?{cell:Co}:null}),$e=dn(co)?"":tn(e,m),Pe=c?o(un,{direction:co,seconds:Cs,delay:hs,editing:E,copy:s=>Se(s&&$e?`${s} ${$e}`:s)}):Se(),So=e==="tabs"?o(it,{className:`${Ce}${X.className}${uo&&!y&&!n&&!w?"":G}`,style:X.style,shape:Qe,children:Pe}):Pe,$o=d?o(yo.Provider,{value:"accordion",children:So}):ne?o(yo.Provider,{value:!1,children:So}):So,Re=e==="row"&&!n&&(v===void 0||v==="stretch"),Js={stretchedRow:Re,fillingColumn:e==="column"&&(uo||he),columnsRow:g!==""||S!==""||so!==""||ie!==""||e==="row"&&(Array.isArray(a)||Array.isArray(N))||de,...de?{phoneCells:!0}:null,...Re&&ae&&(i.blockCount??0)>=2&&Vs?{picturesFillRow:!0}:null,...fo?{fillFrom:ce?"tablet":"desktop"}:null,...qt(B,H)&&(!fo||ce)?{phoneRowFills:!0}:null,...F?{id:F}:null},_e=r===null?Ft({direction:e,loop:C,bgImage:L,columns:b,mirrorCards:qo},!1):null,ve=_e?o(Xe.Provider,{value:{hand:_e,ids:i.blockIds??[],boxes:[]},children:$o}):p?o(Xe.Provider,{value:null,children:$o}):$o,Ae=o(He.Provider,{value:Js,children:o(Ve.Provider,{value:!1,children:eo?o(yt.Provider,{value:le,children:o(Lt.Provider,{value:!z,children:ve})}):ve})}),zs=ao?.blockCount??0,Le=ne==="accordion"&&!!ao&&(E||zs>0)?o(dt,{startsOpen:Ls===!0,editing:E,title:o(He.Provider,{value:or,children:o(Ve.Provider,{value:!1,children:o(yo.Provider,{value:!1,children:o(ao,{className:`min-w-0 flex-1 ${en}`,minEmptyHeight:24})})})}),children:Ae}):Ae,Po=Z?o(gn,{row:e==="row",stops:i.blockCount??0,children:Le}):Le,Ys=qe?.trim()||(Bs?"":void 0),qs={values:t,frame:po?24:0},Qs=s=>te?o(Mn,{on:te,future:ws===!0,children:s}):s,Zs=s=>T.startsWith("/")?o(En,{href:T,className:Je,"aria-labelledby":s,[Ke]:""}):o("a",{href:T,className:Je,"aria-labelledby":s,[Ke]:""}),ye=(k?On(k):"")+gs+(f===void 0||r&&r.index!==0?"":zn(f)),ke=ye?o("style",{dangerouslySetInnerHTML:{__html:ye}}):null,U=Rn({loop:C,direction:e,scrollDirection:co,bgImage:L}),ot=l.desktop&&so!==""&&!Q&&!D.className&&!ze(Wo,Xo,Go)&&!$n(io,Uo,jo)&&!T&&!w&&!y&&!k&&!_n(lo&&!U,Is)&&Fo(To)&&(Eo(ro)||Fo(ro))&&Ho&&Object.values(t).every(s=>Eo(s)||Fo(s)),et=s=>({...ot?{[Wn]:""}:null,...n?null:{...Sn(io),...Pn(io,Uo,jo)},...k?{[Ln]:k}:null,...s?{id:s}:null}),Oe=g!==""?Number(b):0,st=K(B,H)===K(void 0),tt=(e==="column"||e==="row"&&!I&&!c&&(Oe===1&&st||Oe===0&&i.blockCount===1))&&!n&&!Z&&!oo,Ne=n&&Ns&&!oo,Be=(s,$)=>Qs(o(ht,{contained:lo&&!U,style:U?Bo:void 0,framedClass:Us,fillClass:js,columnClass:`${ko} ${Oo}${be}${xe}`,tabLabel:Ys,pad:n?void 0:qs,border:ze(Wo,Xo,Go),outerAttrs:et($),box:!0,edge:tt,outerStyle:n?void 0:se,outerClass:n?void 0:D.className||void 0,bleed:Ne,children:ke||$?Lo(to,{children:[ke,$?Zs($):null,U?o(We,{children:s}):s]}):U?o(We,{children:s}):s})),Ro=s=>T?o(sr,{children:$=>Be(s,$)}):Be(s),Ee=s=>Qo.bound?o($t,{children:s}):s;if(!n){const s=v===void 0||v==="stretch",$=(M(a)!==""||g!==""||S!=="")&&!Qt(B,H)&&!(W!==""&&M(N)==="")&&(s||K(B)!==K(void 0));if(!(e==="row"?$:e==="column"&&s))return Ro(Ee(Po));const Me=Pt({direction:e,separator:m,loop:C,line:x,share:a,shareTablet:N,sharePhone:H,phoneRow:B,columns:b,columnsTablet:A,stackBelow:Do,shared:l.desktop||l.phone||q,count:As}),nt={hasWidth:!0,...Me?{bound:Rt(Me,Qo.bound)}:null};return Ro(o(Ge.Provider,{value:nt,children:o(St.Provider,{value:!0,children:Po})}))}const j=fn(Mo,Vo),_o=pn({darken:Mo,darkenStyle:Vo,darkenTablet:ns,darkenStyleTablet:ls,darkenPhone:rs,darkenStylePhone:is}),Fe=[mo?"rounded-[inherit]":"",_o.className].filter(Boolean).join(" "),vo=je(go),Te=vo?{"--sf-box-bg":No(L??""),"--sf-box-bg-p":No(go??"")}:{backgroundImage:No(L??""),backgroundSize:"cover",backgroundPosition:"center"},De=In(void 0,void 0,ts),O=De.className?De:null,Ao=Fn({...t,top:R(t.top)??_(P.desktop,t.unit,"desktop"),bottom:R(t.bottom)??_(P.desktop,t.unit,"desktop"),topPhone:R(t.topPhone)??_(P.phone,t.unitPhone,"mobile"),bottomPhone:R(t.bottomPhone)??_(P.phone,t.unitPhone,"mobile"),left:R(t.left)??_(P.side,t.unit,"desktop"),right:R(t.right)??_(P.side,t.unit,"desktop"),leftPhone:R(t.leftPhone)??_(P.sidePhone,t.unitPhone,"mobile"),rightPhone:R(t.rightPhone)??_(P.sidePhone,t.unitPhone,"mobile")}),Ie=o("div",{className:`relative z-[1] ${mn} ${Ao?.className??""}${y||w?` ${no}`:""}`.trimEnd(),style:j?{...Ao?.style,...Bo,...Tn}:{...Ao?.style,...Bo},children:Ee(Po)}),ge=Ne&&lo?o("div",{className:`${ko} ${Oo}${y||w?` ${no}`:""}`,children:Ie}):Ie;return Ro(o(to,{children:Lo("div",{className:`relative isolate overflow-hidden ${wn}${G}${vo&&!O?` ${Ye}`:""}${D.className?` ${D.className}`:""}`,style:{...mo?Zn:{},...se,...O?{}:Te},...O?{[Dn]:""}:{},children:[O&&Lo(to,{children:[o(Kn,{sheet:O.sheet}),o("div",{"aria-hidden":!0,className:`absolute inset-0${mo?" rounded-[inherit]":""}${vo?` ${Ye}`:""} ${O.className}`,style:{...Te,...O.style??{}}})]}),o(wt,{wash:j&&_o.className?{...j,..._o.style}:j,...Fe?{className:Fe}:{}}),j?o(pt,{children:ge}):ge]})}))}export{tr as default};
@@ -50,7 +50,8 @@ export declare function HeroMediaLayer({ partMotion, editing, children, }: {
50
50
  editing: boolean;
51
51
  children: ReactNode;
52
52
  }): import("react").JSX.Element;
53
- export declare function HeroTwoPictures({ desktopLayout, phoneLayout, editing, marked, partMotion, first, second, }: {
53
+ export declare function HeroTwoPictures({ desktopLayout, phoneLayout, editing, marked, partMotion, first, second, laterSlide, }: {
54
+ laterSlide?: boolean;
54
55
  desktopLayout: MediaLayout;
55
56
  phoneLayout: MediaLayout;
56
57
  editing: boolean;
@@ -1 +1 @@
1
- "use client";import{Fragment as m,jsx as r,jsxs as l}from"react/jsx-runtime";import u from"./HeroPoster.js";import{SectionAnimation as b}from"./SectionAnimation.js";import{resolveMedia as h}from"../lib/media.js";import{HERO_MEDIA_PARTS as g,HERO_PART_ATTR as v}from"../lib/document/hero-media-parts.js";import{entranceDrawn as y}from"../lib/animation/entrance.js";import{readPartMotion as P}from"../lib/animation/part-motion.js";import{pictureHoverOf as T}from"../../format/lib/animation/hover.js";import{PHOTO_HOST_ATTR as w,SITE_PHOTO_CSS as j,resolveImageTreatment as H}from"../../format/lib/content/image-treatment.js";import{heroPictureCount as _,normaliseMediaLayout as k,resolvePhoneLayout as N}from"../../format/lib/hero-media-layout.js";import{normaliseVideoPlayback as O,normaliseVideoSource as S,parseYouTubeId as A}from"../../format/lib/hero-video.js";import{hidableText as R}from"efficient-easel/draw";const V={one:"max-[719px]:grid-cols-1 max-[719px]:grid-rows-1",side:"max-[719px]:grid-cols-2 max-[719px]:grid-rows-1",stacked:"max-[719px]:grid-cols-1 max-[719px]:grid-rows-2"},C={one:"view-tablet:grid-cols-1 view-tablet:grid-rows-1",side:"view-tablet:grid-cols-2 view-tablet:grid-rows-1",stacked:"view-tablet:grid-cols-1 view-tablet:grid-rows-2"};function q(e){const o=e.isVideo&&S(e.videoSource)==="youtube",i=e.isVideo&&O(e.videoPlayback)==="click",n=o?A(R(e.youtubeUrl)):null,t=k(e.mediaLayout);return{fromYouTube:o,onClick:i,youTubeId:n,backgroundFile:e.isVideo&&!o&&!i,desktopLayout:t,phoneLayout:N(e.mediaLayoutPhone,t),twoPictures:!e.isVideo&&_(e)>1}}function d(e,o){return y(P({_partMotion:e},o))}function c(e,o){return H(void 0,void 0,T(P({_partMotion:e},o)))}function B(e){return g.some(i=>c(e,i).className)?{hostAttrs:{[w]:""},sheet:j}:{}}function p({treatment:e,children:o}){return e.className?r("div",{className:`absolute inset-0 ${e.className}`,...e.style?{style:e.style}:{},children:o}):r(m,{children:o})}function x({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 f({part:e,editing:o,marked:i=!0,entrance:n,className:t,children:a}){const s=o&&i?{[v]:e}:void 0;return n?r(b,{desktop:n.desktop,phone:n.phone,editing:o,boxClass:t,boxAttrs:s,children:a}):r("div",{className:t,...s,children:a})}function J({partMotion:e,editing:o,children:i}){const n=d(e,"media"),t=c(e,"media"),a=t.className?r("div",{className:`absolute inset-0 z-[1] ${t.className}`,...t.style?{style:t.style}:{},children:i}):i;return n?r(b,{desktop:n.desktop,phone:n.phone,editing:o,boxClass:"absolute inset-0 z-[1]",children:a}):r(m,{children:a})}function Q({desktopLayout:e,phoneLayout:o,editing:i,marked:n=!0,partMotion:t,first:a,second:s}){return l("div",{className:`absolute inset-0 z-[1] grid ${V[o]} ${C[e]}`,"data-hero-layout":e,"data-hero-layout-phone":o,children:[r(f,{part:"image",editing:i,marked:n,entrance:d(t,"image"),className:"relative overflow-hidden",children:l(p,{treatment:c(t,"image"),children:[r(u,{posterSrc:h(a.src),showVideo:!1,objectPosition:a.objectPosition,objectPositionPhone:a.objectPositionPhone,objectPositionTablet:a.objectPositionTablet}),r(x,{color:a.tintColor,opacity:a.tintOpacity})]})}),r(f,{part:"image2",editing:i,marked:n,entrance:d(t,"image2"),className:`relative overflow-hidden${o==="one"?" max-[719px]:hidden":""}${e==="one"?" view-tablet:hidden":""}`,children:l(p,{treatment:c(t,"image2"),children:[r(u,{posterSrc:h(s.src),showVideo:!1,objectPosition:s.objectPosition,objectPositionPhone:s.objectPositionPhone,objectPositionTablet:s.objectPositionTablet}),r(x,{color:s.tintColor,opacity:s.tintOpacity})]})})]})}export{J as HeroMediaLayer,f as HeroPickArea,p as HeroPictureHover,x as HeroTint,Q as HeroTwoPictures,q as heroMediaReading,d as heroPartEntrance,c as heroPartHover,B 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 v,HERO_PART_ATTR as y}from"../lib/document/hero-media-parts.js";import{entranceDrawn as T}from"../lib/animation/entrance.js";import{readPartMotion as p}from"../lib/animation/part-motion.js";import{pictureHoverOf as w}from"../../format/lib/animation/hover.js";import{PHOTO_HOST_ATTR as j,SITE_PHOTO_CSS as H,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 V}from"efficient-easel/draw";const C={one:"max-[719px]:grid-cols-1 max-[719px]:grid-rows-1",side:"max-[719px]:grid-cols-2 max-[719px]:grid-rows-1",stacked:"max-[719px]:grid-cols-1 max-[719px]:grid-rows-2"},E={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 B(e){const o=e.isVideo&&A(e.videoSource)==="youtube",i=e.isVideo&&S(e.videoPlayback)==="click",n=o?R(V(e.youtubeUrl)):null,t=N(e.mediaLayout);return{fromYouTube:o,onClick:i,youTubeId:n,backgroundFile:e.isVideo&&!o&&!i,desktopLayout:t,phoneLayout:O(e.mediaLayoutPhone,t),twoPictures:!e.isVideo&&k(e)>1}}function d(e,o){return T(p({_partMotion:e},o))}function l(e,o){return _(void 0,void 0,w(p({_partMotion:e},o)))}function J(e){return v.some(i=>l(e,i).className)?{hostAttrs:{[j]:""},sheet:H}:{}}function x({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 f({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:n,className:t,children:a}){const s=o&&i?{[y]:e}:void 0;return n?r(h,{desktop:n.desktop,phone:n.phone,editing:o,boxClass:t,boxAttrs:s,children:a}):r("div",{className:t,...s,children:a})}function Q({partMotion:e,editing:o,children:i}){const n=d(e,"media"),t=l(e,"media"),a=t.className?r("div",{className:`absolute inset-0 z-[1] ${t.className}`,...t.style?{style:t.style}:{},children:i}):i;return n?r(h,{desktop:n.desktop,phone:n.phone,editing:o,boxClass:"absolute inset-0 z-[1]",children:a}):r(u,{children:a})}function W({desktopLayout:e,phoneLayout:o,editing:i,marked:n=!0,partMotion:t,first:a,second:s,laterSlide:m=!1}){return c("div",{className:`absolute inset-0 z-[1] grid ${C[o]} ${E[e]}`,"data-hero-layout":e,"data-hero-layout-phone":o,children:[r(g,{part:"image",editing:i,marked:n,entrance:d(t,"image"),className:"relative overflow-hidden",children:c(x,{treatment:l(t,"image"),children:[r(b,{posterSrc:P(a.src),showVideo:!1,laterSlide:m,objectPosition:a.objectPosition,objectPositionPhone:a.objectPositionPhone,objectPositionTablet:a.objectPositionTablet}),r(f,{color:a.tintColor,opacity:a.tintOpacity})]})}),r(g,{part:"image2",editing:i,marked:n,entrance:d(t,"image2"),className:`relative overflow-hidden${o==="one"?" max-[719px]:hidden":""}${e==="one"?" view-tablet:hidden":""}`,children:c(x,{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(f,{color:s.tintColor,opacity:s.tintOpacity})]})})]})}export{Q as HeroMediaLayer,g as HeroPickArea,x as HeroPictureHover,f as HeroTint,W as HeroTwoPictures,B as heroMediaReading,d as heroPartEntrance,l as heroPartHover,J as heroPicturesHover};
@@ -7,6 +7,9 @@ interface HeroPosterProps {
7
7
  objectPositionPhone?: string;
8
8
  objectPositionTablet?: string;
9
9
  quiet?: boolean;
10
+ slideShown?: boolean;
11
+ laterSlide?: boolean;
12
+ laterOfLead?: boolean;
10
13
  }
11
- export default function HeroPoster({ videoSrc, posterSrc, showVideo, playbackRate, objectPosition, objectPositionPhone, objectPositionTablet, quiet, }: HeroPosterProps): import("react").JSX.Element;
14
+ export default function HeroPoster({ videoSrc, posterSrc, showVideo, playbackRate, objectPosition, objectPositionPhone, objectPositionTablet, quiet, slideShown, laterSlide, laterOfLead, }: HeroPosterProps): import("react").JSX.Element;
12
15
  export {};
@@ -1 +1 @@
1
- "use client";import{jsx as o,jsxs as N}from"react/jsx-runtime";import{useEffect as m,useRef as L,useState as a}from"react";import{SiteImage as P}from"../lib/site-runtime.js";import R from"./HeroHeldFrame.js";import{hasAv1Variant as A,isExternalMediaUrl as H}from"../lib/media.js";import{sizedImage as S}from"../../format/lib/sized-image.js";import{phoneFocus as _}from"../../format/lib/content/phone-focus.js";const $=.5;function M({videoSrc:d,posterSrc:f,showVideo:p=!0,playbackRate:v=$,objectPosition:l="50% 50%",objectPositionPhone:I,objectPositionTablet:g,quiet:y=!1}){const n=_(I,g),e=f||"",t=d||"",[c,u]=a(!1),[j,w]=a(!1),[k,F]=a(!1),[C,E]=a(!1),[b,h]=a(!1),z=L(null);m(()=>{u(!1),w(!1),F(!1),E(!1)},[d,f]),m(()=>{if(typeof window>"u")return;const s=()=>{const r=window;r.requestIdleCallback?r.requestIdleCallback(()=>h(!0),{timeout:2e3}):setTimeout(()=>h(!0),800)};if(document.readyState==="complete"){s();return}return window.addEventListener("load",s,{once:!0}),()=>window.removeEventListener("load",s)},[]),m(()=>{const s=z.current;if(!s)return;const r=()=>{s.playbackRate=v};return r(),s.addEventListener("loadedmetadata",r),()=>s.removeEventListener("loadedmetadata",r)},[d,v]);const x=H(e),i=e&&x&&!j?S(e):{src:e};return N("div",{className:"absolute inset-0 z-[1]",children:[o("div",{className:"absolute inset-0",style:{background:"var(--site-surface)"}}),e&&(x?o("img",{src:i.src,...i.srcSet?{srcSet:i.srcSet,sizes:"100vw"}:{},alt:"",className:`absolute inset-0 z-[2] h-full w-full object-cover ${n.className}`.trim(),style:{display:c?"none":"block",objectPosition:l,...n.style},onError:()=>i.srcSet?w(!0):u(!0)},e):o(P,{src:e,alt:"",fill:!0,priority:!0,sizes:"100vw",className:`z-[2] object-cover ${n.className}`.trim(),style:{display:c?"none":"block",objectPosition:l,...n.style},onError:()=>u(!0)},e)),p&&!y&&t&&b&&!k&&N("video",{ref:z,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,preload:"metadata",className:"absolute inset-0 z-[3] h-full w-full object-cover",style:{objectPosition:l},onError:()=>F(!0),children:[A(t)&&o("source",{src:t.replace(/\.mp4$/,".av1.mp4"),type:'video/mp4; codecs="av01.0.08M.10"'}),o("source",{src:t,type:"video/mp4"})]},t),p&&y&&t&&b&&!C&&(!e||c)&&o(R,{src:t,objectPosition:l,onError:()=>E(!0)},t)]})}export{M as default};
1
+ "use client";import{jsx as a,jsxs as S}from"react/jsx-runtime";import{useEffect as l,useRef as K,useState as r}from"react";import{SiteImage as U}from"../lib/site-runtime.js";import V from"./HeroHeldFrame.js";import{hasAv1Variant as Y,isExternalMediaUrl as D}from"../lib/media.js";import{sizedImage as G}from"../../format/lib/sized-image.js";import{phoneFocus as J}from"../../format/lib/content/phone-focus.js";import{useFirstScreenPlace as O}from"../lib/first-screen.js";const Q=.5;function X({videoSrc:f,posterSrc:h,showVideo:b=!0,playbackRate:g=Q,objectPosition:i="50% 50%",objectPositionPhone:j,objectPositionTablet:A,quiet:E=!1,slideShown:H,laterSlide:z=!1,laterOfLead:R=!1}){const d=J(j,A),p=O(),[P,T]=r(!1),L=p==="below"&&!P,_=p==="first",t=h||"",s=f||"",[v,y]=r(!1),[$,x]=r(!1),[M,I]=r(!1),[W,N]=r(!1),u=H??!0,[w,q]=r(!1),o=p!=="first"&&!R,[n,k]=r(!1),F=K(null);l(()=>{if(!o)return;if(document.readyState==="complete"){k(!0);return}const e=()=>k(!0);return window.addEventListener("load",e,{once:!0}),()=>window.removeEventListener("load",e)},[o]),l(()=>{y(!1),x(!1),I(!1),N(!1)},[f,h]),l(()=>{u&&q(!0)},[u]),l(()=>{const e=F.current;e&&(u?e.play()?.catch(()=>{}):e.pause())},[u,w,n]),l(()=>{if(!z||o&&!n)return;const e=()=>T(!0);if(typeof window.requestIdleCallback=="function"){const B=window.requestIdleCallback(e,{timeout:2e3});return()=>window.cancelIdleCallback(B)}const c=setTimeout(e,800);return()=>clearTimeout(c)},[z,o,n]),l(()=>{const e=F.current;if(!e)return;const c=()=>{e.playbackRate=g};return c(),e.addEventListener("loadedmetadata",c),()=>e.removeEventListener("loadedmetadata",c)},[f,g]);const C=D(t),m=t&&C&&!$?G(t):{src:t};return S("div",{className:"absolute inset-0 z-[1]",children:[a("div",{className:"absolute inset-0",style:{background:"var(--site-surface)"}}),t&&(C?a("img",{src:m.src,...m.srcSet?{srcSet:m.srcSet,sizes:"100vw"}:{},alt:"",...L?{loading:"lazy"}:{},..._?{fetchPriority:"high"}:{},className:`absolute inset-0 z-[2] h-full w-full object-cover ${d.className}`.trim(),style:{display:v?"none":"block",objectPosition:i,...d.style},onError:()=>m.srcSet?x(!0):y(!0)},t):a(U,{src:t,alt:"",fill:!0,...L?{}:P?{loading:"eager"}:{priority:!0},sizes:"100vw",className:`z-[2] object-cover ${d.className}`.trim(),style:{display:v?"none":"block",objectPosition:i,...d.style},onError:()=>y(!0)},t)),b&&!E&&s&&w&&(!o||n)&&!M&&S("video",{ref:F,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,preload:"metadata",className:"absolute inset-0 z-[3] h-full w-full object-cover",style:{objectPosition:i},onError:()=>I(!0),children:[Y(s)&&a("source",{src:s.replace(/\.mp4$/,".av1.mp4"),type:'video/mp4; codecs="av01.0.08M.10"'}),a("source",{src:s,type:"video/mp4"})]},s),b&&E&&s&&w&&(!o||n)&&!W&&(!t||v)&&a(V,{src:s,objectPosition:i,onError:()=>N(!0)},s)]})}export{X as default};
@@ -1 +1 @@
1
- "use client";import{jsx as n,jsxs as D}from"react/jsx-runtime";import{useCallback as v,useEffect as w,useId as Ce,useRef as d,useState as k}from"react";import{markOverlayPortal as ee}from"../../format/lib/document/overlay-portal.js";import Pe from"./Ticker.js";import{HeroSlideStyleContext as De}from"./HeroSlide.js";import Ie from"./HeroArrows.js";import Ve from"./Reel.js";import{TICKER_PART_ATTR as $e}from"./PreviewTickerContext.js";import{useReducedMotion as ze}from"./useReducedMotion.js";import{heroHeightBox as Be,heroStoresRatio as Xe}from"../../format/lib/content/section-height.js";import{HEADER_HEIGHT_CSS as Ge}from"../lib/document/header-clearance.js";import{nextReel as Ye,normaliseHeroReelShape as je,reelShown as qe}from"../../format/lib/reel.js";import{arrowsShown as Ke,arrowStep as Fe}from"../../format/lib/hero-arrows.js";import{swipeEnabled as Je,swipeStep as Qe}from"../../format/lib/hero-swipe.js";import{videoControlShown as Ue,videoHeld as We}from"../../format/lib/hero-video-control.js";import{HERO_SLIDER_GOTO_EVENT as I}from"efficient-easel/draw";import{say as te}from"../../format/lib/editor-words.js";import{markedChildren as re}from"../../format/lib/marked-children.js";import{legacyTickerDrawn as Ze,TICKER_MOTION_PART as et}from"../../format/lib/hero-ticker.js";import{ON_MEDIA_INK_STYLE as tt}from"../../format/lib/content/ink.js";import{SectionAnimation as rt}from"./SectionAnimation.js";import{entranceDrawn as ot}from"../lib/animation/entrance.js";import{readPartMotion as nt}from"../lib/animation/part-motion.js";import{scrim as oe}from"../../format/lib/content/scrim.js";const st="Play video",ct="Hold video",at="flex h-7 cursor-pointer items-center gap-1.5 rounded-full border border-overlay-chrome/25 bg-overlay-scrim/80 px-[11px] font-mono text-[11px] leading-none tracking-[0.05em] text-overlay-fg",lt=()=>te("item"),ne=new Map;function it(m,a){const l=m?.ownerDocument?.defaultView;if(l)return l.addEventListener(I,a),()=>l.removeEventListener(I,a)}function ut({slides:m,strip:a,alignment:l,textureOpacity:y,showTexture:E,textureColor:g,phoneUpDown:se,phoneSideways:ce,autoplay:V,autoplayInterval:S,showTicker:ae,tickerItems:$,heightDesktop:le,heightTablet:ie,heightMobile:ue,heightFixed:de,heightFixedTablet:me,heightFixedMobile:fe,showPicker:he,pickerShape:pe,pickerPlacement:ve,showArrows:be,arrowsShape:xe,arrowsPlacement:we,editing:s,partMotion:ke}){const z=Be({heightDesktop:le,heightTablet:ie,heightMobile:ue,heightFixed:de,heightFixedTablet:me,heightFixedMobile:fe}),{className:ye,style:Ee}=z,N=Xe(z),B=(a?.blockCount??0)>0,ge=!B&&Ze({showTicker:ae,tickerItems:$}),X=($??[]).map(e=>e?.text?.trim()?e.text:s?lt():"").filter(Boolean),_e=ot(nt({_partMotion:ke},et)),f=d(null),G=d(null),Y=d(null),j=d(null),q=Ce(),A=d(q),[_,Re]=k([]),[Te,K]=k(0),b=d(0),[F,J]=k(!1),[Oe,Q]=k(null),[R,Se]=k(!1),H=ze(),T=v(()=>f.current?.querySelector(".hero-track")??null,[]),i=v((e,t=!1)=>{K(e),Q(o=>o===e?o:null),b.current=e,ne.set(A.current,e);const r=f.current?.querySelector(".hero-track");if(r)if(t){const o=r.style.transition;r.style.transition="none",r.style.transform=`translateX(-${Math.max(0,e)*100}%)`,r.offsetHeight,r.style.transition=o}else r.style.transform=`translateX(-${Math.max(0,e)*100}%)`},[]);w(()=>{const e=f.current,t=e?.getAttribute("data-easel-block")||e?.closest("[data-easel-block]")?.getAttribute("data-easel-block")||q;A.current=t;const r=ne.get(t);typeof r=="number"&&(K(r),b.current=r)},[]),w(()=>{const e=T();if(!e)return;const t=()=>{Re(o=>Ye(o,re(e,"data-slide-name")))};t();const r=new MutationObserver(t);return r.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-slide-name","data-slide-process","data-slide-media"]}),()=>{r.disconnect()}},[T]),w(()=>{if(!s)return;const e=t=>{const r=t.detail;if(!r||typeof r.index!="number")return;const o=f.current,p=o?.getAttribute("data-easel-block")||o?.closest("[data-easel-block]")?.getAttribute("data-easel-block")||A.current;r.id&&r.id!==p||i(r.index,!0)};return it(f.current,e)},[s,i]);const c=_.length,u=Math.min(Math.max(Te,0),Math.max(0,c-1)),M=Oe===u,L=qe({shown:he,count:c}),U=Ke({shown:be,count:c}),W=Ue({editing:s,shown:u,slides:_}),Ne=We({editing:s,playing:R,controlShown:W}),O=Je({count:c,editing:s}),h=d(null),x=d(null),Ae=v(e=>{if(h.current=null,x.current=null,!O||e.touches.length!==1)return;const t=e.touches[0];h.current={x:t.clientX,y:t.clientY},x.current={x:t.clientX,y:t.clientY}},[O]),He=v(e=>{if(!h.current)return;if(e.touches.length!==1){h.current=null;return}const t=e.touches[0];x.current={x:t.clientX,y:t.clientY}},[]),Me=v(()=>{const e=h.current,t=x.current;if(h.current=null,x.current=null,!O||!e||!t)return;const r=Qe(t.x-e.x,t.y-e.y,b.current,c);r!==b.current&&i(r)},[O,c,i]);w(()=>{if(s||!V||F||M||H||c<=1)return;const t=Math.max(1,typeof S=="number"?S:6)*1e3,r=window.setTimeout(()=>i((u+1)%c),t);return()=>window.clearTimeout(r)},[s,V,S,F,M,H,c,u,i]),w(()=>{const e=[G.current,Y.current,j.current].filter(Boolean),t=e.map(o=>ee(o)),r=o=>{const p=o.target,C=p.closest("[data-hero-nav]"),Z=C??p.closest("[data-idx]");if(!Z)return;o.stopPropagation(),o.preventDefault();const P=C?Fe(C.dataset.heroNav,b.current,c):Number(Z.dataset.idx);Number.isNaN(P)||(i(P,s),re(T(),"data-slide-name")[P]?.click())};return e.forEach(o=>o.addEventListener("click",r,{capture:!0})),()=>{t.forEach(o=>o?.()),e.forEach(o=>o.removeEventListener("click",r,{capture:!0}))}},[c,i,T,s]);const Le=v(e=>{if(!e)return;const t=ee(e),r=o=>{o.stopPropagation(),o.preventDefault(),Se(p=>!p)};return e.addEventListener("click",r,{capture:!0}),()=>{t?.(),e.removeEventListener("click",r,{capture:!0})}},[]);return n(De.Provider,{value:{alignment:l,textureOpacity:y,textureOn:E,textureColor:g,quietVideo:Ne,phoneUpDown:se,phoneSideways:ce,holdReel:()=>Q(u),reelHeld:M,ratioMin:N},children:D("div",{ref:f,className:`relative mx-[var(--sf-hero-bleed-m,calc(50%_-_50vw))] w-[var(--sf-hero-bleed-w,100vw)] ${ye} max-w-[var(--sf-hero-cap,none)] ${N?"overflow-clip":"overflow-hidden"}`,style:Ee,onMouseEnter:()=>J(!0),onMouseLeave:()=>J(!1),onTouchStart:Ae,onTouchMove:He,onTouchEnd:Me,children:[n(m,{className:N?"hero-track flex min-h-full [&>*]:min-h-full [&>*]:min-w-full [&>*]:shrink-0 [&>*]:basis-full":"hero-track flex h-full [&>*]:h-full [&>*]:min-w-full [&>*]:shrink-0 [&>*]:basis-full",style:{transform:`translateX(-${u*100}%)`,transition:H?"none":"transform 600ms cubic-bezier(.22,.61,.36,1)"},minEmptyHeight:400}),W&&n("div",{ref:Le,"data-hero-video-control":R?"playing":"held",className:"sf-hero-video-control absolute left-6 z-[7]",style:{top:`calc(${Ge} + 16px)`},children:D("button",{type:"button",className:at,children:[n("span",{"aria-hidden":"true",children:R?"❚❚":"▶"}),te(R?ct:st)]})}),(L||U)&&D("div",{className:"pointer-events-none absolute inset-y-0 left-[var(--sf-hero-chrome-x,var(--sf-site-gutter,40px))] right-[var(--sf-hero-chrome-x,var(--sf-site-gutter,40px))] z-[6] mx-auto max-w-[var(--sf-hero-chrome-cap,calc(var(--sf-site-width,1600px)_-_var(--sf-site-gutter,40px)*2))]",children:[L&&n(Ve,{ref:G,slides:_,active:u,shape:je(pe),placement:ve}),U&&n(Ie,{ref:j,shape:xe,placement:we})]}),L&&n("div",{ref:Y,className:"sf-hero-phone-dots absolute bottom-[80px] left-1/2 z-[6] hidden -translate-x-1/2 items-center gap-2",children:_.map((e,t)=>n("button",{type:"button","data-idx":t,"aria-label":`Go to slide ${t+1}`,className:`h-2 rounded-full transition-all motion-reduce:transition-none ${t===u?"w-5 bg-accent":"w-2 bg-white/45 hover:bg-white/70"}`},t))}),B&&a&&n("div",{className:"sf-hero-strip absolute inset-x-0 bottom-0 z-[5] border-t border-overlay-chrome/10",style:{background:oe(.55),...tt},children:n(a,{})}),ge&&X.length>0&&n(dt,{editing:!!s,entrance:_e,children:n(Pe,{items:X,backdrop:"dark-media"})})]})})}function dt({editing:m,entrance:a,children:l}){const y="sf-hero-ticker absolute inset-x-0 bottom-0 z-[5] border-t border-overlay-chrome/10 py-3.5",E=m?{[$e]:""}:void 0,g={background:oe(.55)};return a?n(rt,{desktop:a.desktop,phone:a.phone,editing:m,boxClass:y,boxAttrs:E,boxStyle:g,children:l}):n("div",{className:y,...E,style:g,children:l})}export{I as HERO_SLIDER_GOTO_EVENT,ct as HERO_VIDEO_HOLD_LABEL,st as HERO_VIDEO_PLAY_LABEL,ut as default,it as subscribeSliderGoto};
1
+ "use client";import{jsx as n,jsxs as D}from"react/jsx-runtime";import{useCallback as v,useEffect as w,useId as Ce,useRef as d,useState as k}from"react";import{markOverlayPortal as ee}from"../../format/lib/document/overlay-portal.js";import Pe from"./Ticker.js";import{HeroSlideStyleContext as De}from"./HeroSlide.js";import Ie from"./HeroArrows.js";import Ve from"./Reel.js";import{TICKER_PART_ATTR as $e}from"./PreviewTickerContext.js";import{useReducedMotion as ze}from"./useReducedMotion.js";import{heroHeightBox as Be,heroStoresRatio as Xe}from"../../format/lib/content/section-height.js";import{HEADER_HEIGHT_CSS as Ge}from"../lib/document/header-clearance.js";import{nextReel as Ye,normaliseHeroReelShape as je,reelShown as qe}from"../../format/lib/reel.js";import{arrowsShown as Ke,arrowStep as Fe}from"../../format/lib/hero-arrows.js";import{swipeEnabled as Je,swipeStep as Qe}from"../../format/lib/hero-swipe.js";import{videoControlShown as Ue,videoHeld as We}from"../../format/lib/hero-video-control.js";import{HERO_SLIDER_GOTO_EVENT as I}from"efficient-easel/draw";import{say as te}from"../../format/lib/editor-words.js";import{markedChildren as re}from"../../format/lib/marked-children.js";import{legacyTickerDrawn as Ze,TICKER_MOTION_PART as et}from"../../format/lib/hero-ticker.js";import{ON_MEDIA_INK_STYLE as tt}from"../../format/lib/content/ink.js";import{SectionAnimation as rt}from"./SectionAnimation.js";import{entranceDrawn as ot}from"../lib/animation/entrance.js";import{readPartMotion as nt}from"../lib/animation/part-motion.js";import{scrim as oe}from"../../format/lib/content/scrim.js";const st="Play video",ct="Hold video",at="flex h-7 cursor-pointer items-center gap-1.5 rounded-full border border-overlay-chrome/25 bg-overlay-scrim/80 px-[11px] font-mono text-[11px] leading-none tracking-[0.05em] text-overlay-fg",lt=()=>te("item"),ne=new Map;function it(m,a){const i=m?.ownerDocument?.defaultView;if(i)return i.addEventListener(I,a),()=>i.removeEventListener(I,a)}function ut({slides:m,strip:a,alignment:i,textureOpacity:y,showTexture:E,textureColor:g,phoneUpDown:se,phoneSideways:ce,autoplay:V,autoplayInterval:O,showTicker:ae,tickerItems:$,heightDesktop:le,heightTablet:ie,heightMobile:ue,heightFixed:de,heightFixedTablet:me,heightFixedMobile:fe,showPicker:he,pickerShape:pe,pickerPlacement:ve,showArrows:be,arrowsShape:xe,arrowsPlacement:we,editing:s,partMotion:ke}){const z=Be({heightDesktop:le,heightTablet:ie,heightMobile:ue,heightFixed:de,heightFixedTablet:me,heightFixedMobile:fe}),{className:ye,style:Ee}=z,N=Xe(z),B=(a?.blockCount??0)>0,ge=!B&&Ze({showTicker:ae,tickerItems:$}),X=($??[]).map(e=>e?.text?.trim()?e.text:s?lt():"").filter(Boolean),_e=ot(nt({_partMotion:ke},et)),f=d(null),G=d(null),Y=d(null),j=d(null),q=Ce(),A=d(q),[_,Re]=k([]),[Se,K]=k(0),b=d(0),[F,J]=k(!1),[Te,Q]=k(null),[R,Oe]=k(!1),H=ze(),S=v(()=>f.current?.querySelector(".hero-track")??null,[]),u=v((e,t=!1)=>{K(e),Q(o=>o===e?o:null),b.current=e,ne.set(A.current,e);const r=f.current?.querySelector(".hero-track");if(r)if(t){const o=r.style.transition;r.style.transition="none",r.style.transform=`translateX(-${Math.max(0,e)*100}%)`,r.offsetHeight,r.style.transition=o}else r.style.transform=`translateX(-${Math.max(0,e)*100}%)`},[]);w(()=>{const e=f.current,t=e?.getAttribute("data-easel-block")||e?.closest("[data-easel-block]")?.getAttribute("data-easel-block")||q;A.current=t;const r=ne.get(t);typeof r=="number"&&(K(r),b.current=r)},[]),w(()=>{const e=S();if(!e)return;const t=()=>{Re(o=>Ye(o,re(e,"data-slide-name")))};t();const r=new MutationObserver(t);return r.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-slide-name","data-slide-process","data-slide-media"]}),()=>{r.disconnect()}},[S]),w(()=>{if(!s)return;const e=t=>{const r=t.detail;if(!r||typeof r.index!="number")return;const o=f.current,p=o?.getAttribute("data-easel-block")||o?.closest("[data-easel-block]")?.getAttribute("data-easel-block")||A.current;r.id&&r.id!==p||u(r.index,!0)};return it(f.current,e)},[s,u]);const c=_.length,l=Math.min(Math.max(Se,0),Math.max(0,c-1)),M=Te===l,L=qe({shown:he,count:c}),U=Ke({shown:be,count:c}),W=Ue({editing:s,shown:l,slides:_}),Ne=We({editing:s,playing:R,controlShown:W}),T=Je({count:c,editing:s}),h=d(null),x=d(null),Ae=v(e=>{if(h.current=null,x.current=null,!T||e.touches.length!==1)return;const t=e.touches[0];h.current={x:t.clientX,y:t.clientY},x.current={x:t.clientX,y:t.clientY}},[T]),He=v(e=>{if(!h.current)return;if(e.touches.length!==1){h.current=null;return}const t=e.touches[0];x.current={x:t.clientX,y:t.clientY}},[]),Me=v(()=>{const e=h.current,t=x.current;if(h.current=null,x.current=null,!T||!e||!t)return;const r=Qe(t.x-e.x,t.y-e.y,b.current,c);r!==b.current&&u(r)},[T,c,u]);w(()=>{if(s||!V||F||M||H||c<=1)return;const t=Math.max(1,typeof O=="number"?O:6)*1e3,r=window.setTimeout(()=>u((l+1)%c),t);return()=>window.clearTimeout(r)},[s,V,O,F,M,H,c,l,u]),w(()=>{const e=[G.current,Y.current,j.current].filter(Boolean),t=e.map(o=>ee(o)),r=o=>{const p=o.target,C=p.closest("[data-hero-nav]"),Z=C??p.closest("[data-idx]");if(!Z)return;o.stopPropagation(),o.preventDefault();const P=C?Fe(C.dataset.heroNav,b.current,c):Number(Z.dataset.idx);Number.isNaN(P)||(u(P,s),re(S(),"data-slide-name")[P]?.click())};return e.forEach(o=>o.addEventListener("click",r,{capture:!0})),()=>{t.forEach(o=>o?.()),e.forEach(o=>o.removeEventListener("click",r,{capture:!0}))}},[c,u,S,s]);const Le=v(e=>{if(!e)return;const t=ee(e),r=o=>{o.stopPropagation(),o.preventDefault(),Oe(p=>!p)};return e.addEventListener("click",r,{capture:!0}),()=>{t?.(),e.removeEventListener("click",r,{capture:!0})}},[]);return n(De.Provider,{value:{alignment:i,textureOpacity:y,textureOn:E,textureColor:g,quietVideo:Ne,phoneUpDown:se,phoneSideways:ce,holdReel:()=>Q(l),reelHeld:M,shownSlide:l,ratioMin:N},children:D("div",{ref:f,className:`relative mx-[var(--sf-hero-bleed-m,calc(50%_-_50vw))] w-[var(--sf-hero-bleed-w,100vw)] ${ye} max-w-[var(--sf-hero-cap,none)] ${N?"overflow-clip":"overflow-hidden"}`,style:Ee,onMouseEnter:()=>J(!0),onMouseLeave:()=>J(!1),onTouchStart:Ae,onTouchMove:He,onTouchEnd:Me,children:[n(m,{className:N?"hero-track flex min-h-full [&>*]:min-h-full [&>*]:min-w-full [&>*]:shrink-0 [&>*]:basis-full":"hero-track flex h-full [&>*]:h-full [&>*]:min-w-full [&>*]:shrink-0 [&>*]:basis-full",style:{transform:`translateX(-${l*100}%)`,transition:H?"none":"transform 600ms cubic-bezier(.22,.61,.36,1)"},minEmptyHeight:400}),W&&n("div",{ref:Le,"data-hero-video-control":R?"playing":"held",className:"sf-hero-video-control absolute left-6 z-[7]",style:{top:`calc(${Ge} + 16px)`},children:D("button",{type:"button",className:at,children:[n("span",{"aria-hidden":"true",children:R?"❚❚":"▶"}),te(R?ct:st)]})}),(L||U)&&D("div",{className:"pointer-events-none absolute inset-y-0 left-[var(--sf-hero-chrome-x,var(--sf-site-gutter,40px))] right-[var(--sf-hero-chrome-x,var(--sf-site-gutter,40px))] z-[6] mx-auto max-w-[var(--sf-hero-chrome-cap,calc(var(--sf-site-width,1600px)_-_var(--sf-site-gutter,40px)*2))]",children:[L&&n(Ve,{ref:G,slides:_,active:l,shape:je(pe),placement:ve}),U&&n(Ie,{ref:j,shape:xe,placement:we})]}),L&&n("div",{ref:Y,className:"sf-hero-phone-dots absolute bottom-[80px] left-1/2 z-[6] hidden -translate-x-1/2 items-center gap-2",children:_.map((e,t)=>n("button",{type:"button","data-idx":t,"aria-label":`Go to slide ${t+1}`,className:`h-2 rounded-full transition-all motion-reduce:transition-none ${t===l?"w-5 bg-accent":"w-2 bg-white/45 hover:bg-white/70"}`},t))}),B&&a&&n("div",{className:"sf-hero-strip absolute inset-x-0 bottom-0 z-[5] border-t border-overlay-chrome/10",style:{background:oe(.55),...tt},children:n(a,{})}),ge&&X.length>0&&n(dt,{editing:!!s,entrance:_e,children:n(Pe,{items:X,backdrop:"dark-media"})})]})})}function dt({editing:m,entrance:a,children:i}){const y="sf-hero-ticker absolute inset-x-0 bottom-0 z-[5] border-t border-overlay-chrome/10 py-3.5",E=m?{[$e]:""}:void 0,g={background:oe(.55)};return a?n(rt,{desktop:a.desktop,phone:a.phone,editing:m,boxClass:y,boxAttrs:E,boxStyle:g,children:i}):n("div",{className:y,...E,style:g,children:i})}export{I as HERO_SLIDER_GOTO_EVENT,ct as HERO_VIDEO_HOLD_LABEL,st as HERO_VIDEO_PLAY_LABEL,ut as default,it as subscribeSliderGoto};
@@ -11,6 +11,7 @@ export interface HeroSlideStyle {
11
11
  quietVideo?: boolean;
12
12
  holdReel?: () => void;
13
13
  reelHeld?: boolean;
14
+ shownSlide?: number;
14
15
  ratioMin?: boolean;
15
16
  }
16
17
  export declare const HeroSlideStyleContext: import("react").Context<HeroSlideStyle>;
@@ -44,6 +45,7 @@ export interface HeroSlideProps {
44
45
  youtubeUrl?: string;
45
46
  videoPlayback?: string;
46
47
  partMotion?: Record<string, unknown>;
48
+ laterSlide?: boolean;
47
49
  }
48
- export default function HeroSlide({ name, process, mediaType, mediaSrc, videoSpeed, poster, objectPosition, objectPositionPhone, objectPositionTablet, tintColor, tintOpacity, groups: Groups, editing, themeClassName, themeStyle, overlayColor, overlayPosition, mediaLayout, mediaLayoutPhone, mediaImage2, objectPosition2, objectPosition2Phone, objectPosition2Tablet, tintColor2, tintOpacity2, videoSource, youtubeUrl, videoPlayback, partMotion, }: HeroSlideProps): import("react").JSX.Element;
50
+ export default function HeroSlide({ name, process, mediaType, mediaSrc, videoSpeed, poster, objectPosition, objectPositionPhone, objectPositionTablet, tintColor, tintOpacity, groups: Groups, editing, themeClassName, themeStyle, overlayColor, overlayPosition, mediaLayout, mediaLayoutPhone, mediaImage2, objectPosition2, objectPosition2Phone, objectPosition2Tablet, tintColor2, tintOpacity2, videoSource, youtubeUrl, videoPlayback, partMotion, laterSlide, }: HeroSlideProps): import("react").JSX.Element;
49
51
  export declare const HERO_SLIDE_SEEDS: Record<string, unknown>[];
@@ -1 +1 @@
1
- "use client";import{jsx as e,jsxs as C}from"react/jsx-runtime";import{createContext as se,useContext as ne,useState as le}from"react";import de from"./HeroPoster.js";import{HeroMediaLayer as ce,heroMediaReading as ue,HeroPickArea as pe,heroPartEntrance as fe,heroPartHover as me,HeroPictureHover as he,heroPicturesHover as ye,HeroTint as xe,HeroTwoPictures as ve}from"./HeroPictures.js";import{HeroVideoBackdrop as ge,HeroVideoPlayer as be}from"./HeroVideoPlay.js";import{resolveMedia as a}from"../lib/media.js";import{heroPhoneStackStyle as He}from"../../format/lib/hero-phone-stack.js";import{heroTextureGradient as Pe,heroTextureShown as we}from"../../format/lib/hero-texture.js";import{ON_MEDIA_INK_STYLE as Se}from"../../format/lib/content/ink.js";import{DEFAULT_TINT as O}from"../../format/lib/content/tint.js";import{overlayGradient as ke,slideOverlayState as Te}from"../../format/lib/sections/hero-overlay.js";import Ee from"./PhotoHoverSheet.js";const Le=se({});function _e({name:f,process:s,mediaType:V="video",mediaSrc:n,videoSpeed:m,poster:h,objectPosition:y,objectPositionPhone:x,objectPositionTablet:v,tintColor:g=O,tintOpacity:b=0,groups:H,editing:t=!1,themeClassName:P,themeStyle:z,overlayColor:A,overlayPosition:D,mediaLayout:R,mediaLayoutPhone:$,mediaImage2:M,objectPosition2:q,objectPosition2Phone:B,objectPosition2Tablet:F,tintColor2:U=O,tintOpacity2:Y=0,videoSource:G,youtubeUrl:K,videoPlayback:J,partMotion:r}){const{alignment:je="left",textureOpacity:w,textureOn:Q,textureColor:W,quietVideo:X,phoneUpDown:Z,phoneSideways:ee,holdReel:oe,reelHeld:te,ratioMin:S}=ne(Le),o=V==="video",l=o?a(n):void 0,k=o?a(h):a(n)??a(h),re=typeof m=="number"?m/100:1,{fromYouTube:d,onClick:T,youTubeId:E,backgroundFile:c,desktopLayout:ie,phoneLayout:ae,twoPictures:L}=ue({isVideo:o,videoSource:G,videoPlayback:J,youtubeUrl:K,mediaLayout:R,mediaLayoutPhone:$}),[u,_]=le(!1);u&&te===!1&&_(!1);const p=!u,i=Te({overlayColor:A,overlayPosition:D},W),j=o?null:fe(r,"image"),I=ye(r),N=e(he,{treatment:o?{}:me(r,"image"),children:e(de,{videoSrc:c?l:void 0,posterSrc:k,showVideo:c,playbackRate:re,objectPosition:y,objectPositionPhone:o?void 0:x,objectPositionTablet:o?void 0:v,quiet:X})});return C("section",{className:`${S?"relative min-h-full w-full overflow-clip":"relative h-full w-full overflow-hidden"}${P?` ${P}`:""}`,style:z,"data-slide-name":f??"","data-slide-process":s??"","data-slide-media":c&&l?"video":"still",...I.hostAttrs,children:[e(Ee,{sheet:I.sheet}),e(ce,{partMotion:r,editing:t,children:L?e(ve,{desktopLayout:ie,phoneLayout:ae,editing:t,marked:!1,partMotion:r,first:{src:n,objectPosition:y,objectPositionPhone:x,objectPositionTablet:v,tintColor:g,tintOpacity:b},second:{src:M,objectPosition:q,objectPositionPhone:B,objectPositionTablet:F,tintColor:U,tintOpacity:Y}}):d||j?C(pe,{part:o?"media":"image",editing:t,marked:!1,entrance:j,className:"absolute inset-0 z-[1]",children:[N,d&&e(ge,{youTubeId:E,ownPoster:!!k,background:!T,editing:t})]}):N}),T&&e(be,{youTubeId:E,fileSrc:d?void 0:l,playing:u,onPlay:()=>{_(!0),oe?.()},editing:t}),p&&!L&&e(xe,{color:g,opacity:b,passClicks:!1}),p&&we(Q)&&e("div",{className:"absolute inset-0 z-[2]",style:{background:i.own?ke(i.color,i.position??void 0):Pe(i.color),...w!==void 0?{opacity:w/100}:null}}),p&&e("div",{className:[S?"sf-hero-group-layer relative min-h-full z-[3] mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14":"sf-hero-group-layer absolute inset-0 z-[3] mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14",t?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{...Se,...He(Z,ee)},children:H&&e(H,{className:"sf-hero-group-zone",minEmptyHeight:160})})]})}const Be=Array.from({length:3},(f,s)=>({name:`Slide ${s+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));export{Be as HERO_SLIDE_SEEDS,Le as HeroSlideStyleContext,_e as default};
1
+ "use client";import{jsx as e,jsxs as D}from"react/jsx-runtime";import{createContext as ye,useContext as xe,useEffect as ve,useRef as Se,useState as F}from"react";import ge from"./HeroPoster.js";import{HeroMediaLayer as we,heroMediaReading as be,HeroPickArea as Pe,heroPartEntrance as He,heroPartHover as ke,HeroPictureHover as Te,heroPicturesHover as Ee,HeroTint as Le,HeroTwoPictures as _e}from"./HeroPictures.js";import{HeroVideoBackdrop as je,HeroVideoPlayer as Oe}from"./HeroVideoPlay.js";import{BelowFirstScreen as Ce,useFirstScreenPlace as Ie}from"../lib/first-screen.js";import{markedChildren as Ne}from"../../format/lib/marked-children.js";import{resolveMedia as s}from"../lib/media.js";import{heroPhoneStackStyle as Re}from"../../format/lib/hero-phone-stack.js";import{heroTextureGradient as Ve,heroTextureShown as ze}from"../../format/lib/hero-texture.js";import{ON_MEDIA_INK_STYLE as Ae}from"../../format/lib/content/ink.js";import{DEFAULT_TINT as $}from"../../format/lib/content/tint.js";import{overlayGradient as De,slideOverlayState as Fe}from"../../format/lib/sections/hero-overlay.js";import $e from"./PhotoHoverSheet.js";const Be=ye({});function Me({name:y,process:n,mediaType:B="video",mediaSrc:a,videoSpeed:x,poster:v,objectPosition:S,objectPositionPhone:g,objectPositionTablet:w,tintColor:b=$,tintOpacity:P=0,groups:H,editing:t=!1,themeClassName:k,themeStyle:M,overlayColor:q,overlayPosition:U,mediaLayout:Y,mediaLayoutPhone:G,mediaImage2:K,objectPosition2:J,objectPosition2Phone:Q,objectPosition2Tablet:W,tintColor2:X=$,tintOpacity2:Z=0,videoSource:ee,youtubeUrl:oe,videoPlayback:te,partMotion:r,laterSlide:l=!1}){const{alignment:qe="left",textureOpacity:T,textureOn:re,textureColor:ie,quietVideo:se,phoneUpDown:ne,phoneSideways:ae,holdReel:le,reelHeld:de,shownSlide:d,ratioMin:E}=xe(Be),ce=Ie(),L=l&&ce==="first",_=Se(null),[ue,fe]=F(d===void 0?void 0:!1);ve(()=>{const h=_.current;fe(d===void 0||!h?void 0:Ne(h.closest(".hero-track"),"data-slide-name")[d]===h)});const o=B==="video",c=o?s(a):void 0,j=o?s(v):s(a)??s(v),pe=typeof x=="number"?x/100:1,{fromYouTube:u,onClick:O,youTubeId:C,backgroundFile:f,desktopLayout:me,phoneLayout:he,twoPictures:I}=be({isVideo:o,videoSource:ee,videoPlayback:te,youtubeUrl:oe,mediaLayout:Y,mediaLayoutPhone:G}),[p,N]=F(!1);p&&de===!1&&N(!1);const m=!p,i=Fe({overlayColor:q,overlayPosition:U},ie),R=o?null:He(r,"image"),V=Ee(r),z=e(Te,{treatment:o?{}:ke(r,"image"),children:e(ge,{videoSrc:f?c:void 0,posterSrc:j,showVideo:f,playbackRate:pe,objectPosition:S,objectPositionPhone:o?void 0:g,objectPositionTablet:o?void 0:w,quiet:se,slideShown:ue,laterSlide:l,laterOfLead:L})}),A=D("section",{ref:_,className:`${E?"relative min-h-full w-full overflow-clip":"relative h-full w-full overflow-hidden"}${k?` ${k}`:""}`,style:M,"data-slide-name":y??"","data-slide-process":n??"","data-slide-media":f&&c?"video":"still",...V.hostAttrs,children:[e($e,{sheet:V.sheet}),e(we,{partMotion:r,editing:t,children:I?e(_e,{laterSlide:l,desktopLayout:me,phoneLayout:he,editing:t,marked:!1,partMotion:r,first:{src:a,objectPosition:S,objectPositionPhone:g,objectPositionTablet:w,tintColor:b,tintOpacity:P},second:{src:K,objectPosition:J,objectPositionPhone:Q,objectPositionTablet:W,tintColor:X,tintOpacity:Z}}):u||R?D(Pe,{part:o?"media":"image",editing:t,marked:!1,entrance:R,className:"absolute inset-0 z-[1]",children:[z,u&&e(je,{youTubeId:C,ownPoster:!!j,background:!O,editing:t})]}):z}),O&&e(Oe,{youTubeId:C,fileSrc:u?void 0:c,playing:p,onPlay:()=>{N(!0),le?.()},editing:t}),m&&!I&&e(Le,{color:b,opacity:P,passClicks:!1}),m&&ze(re)&&e("div",{className:"absolute inset-0 z-[2]",style:{background:i.own?De(i.color,i.position??void 0):Ve(i.color),...T!==void 0?{opacity:T/100}:null}}),m&&e("div",{className:[E?"sf-hero-group-layer relative min-h-full z-[3] mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14":"sf-hero-group-layer absolute inset-0 z-[3] mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14",t?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{...Ae,...Re(ne,ae)},children:H&&e(H,{className:"sf-hero-group-zone",minEmptyHeight:160})})]});return L?e(Ce,{children:A}):A}const so=Array.from({length:3},(y,n)=>({name:`Slide ${n+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));export{so as HERO_SLIDE_SEEDS,Be as HeroSlideStyleContext,Me as default};
@@ -1 +1 @@
1
- "use client";import{jsx as t,Fragment as u,jsxs as m}from"react/jsx-runtime";import{useEffect as f,useState as p}from"react";import{PlaySolidIcon as d}from"efficient-shell/icons/efficient-looks";import{PLAY_VIDEO_LABEL as s,youTubeCoverFallbackUrl as b,youTubeCoverUrl as h,youTubeEmbedUrl as i}from"../../format/lib/hero-video.js";function y({youTubeId:e,ownPoster:l,background:a,editing:n}){const[r,o]=p("large");return f(()=>o("large"),[e]),e?m(u,{children:[!l&&r!=="none"&&t("img",{src:r==="large"?h(e):b(e),alt:"",className:"absolute inset-0 z-[2] h-full w-full object-cover",onLoad:c=>{r==="large"&&c.currentTarget.naturalWidth<=120&&o("small")},onError:()=>o(r==="large"?"small":"none")},`${e}-${r}`),a&&!n&&t("div",{className:"pointer-events-none absolute inset-0 z-[3] overflow-hidden [container-type:size]","aria-hidden":"true",children:t("iframe",{src:i(e,"background"),title:"",tabIndex:-1,allow:"autoplay; encrypted-media; picture-in-picture",className:"absolute left-1/2 top-1/2 h-[max(100%,56.25cqw)] w-[max(100%,177.78cqh)] -translate-x-1/2 -translate-y-1/2 border-0"})})]}):null}function z({youTubeId:e,fileSrc:l,playing:a,onPlay:n,editing:r}){return!e&&!l?null:a&&!r?e?t("iframe",{src:i(e,"click"),title:s,allow:"autoplay; encrypted-media; picture-in-picture; fullscreen",allowFullScreen:!0,className:"absolute inset-0 z-[6] h-full w-full border-0 bg-overlay-scrim"}):t("video",{src:l,controls:!0,autoPlay:!0,playsInline:!0,className:"absolute inset-0 z-[6] h-full w-full bg-overlay-scrim object-contain"}):t("button",{type:"button","aria-label":s,onClick:r?void 0:n,className:`absolute left-1/2 top-1/2 z-[4] grid h-16 w-16 -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full bg-btn text-btn-ink shadow-lg transition-transform motion-reduce:transition-none ${r?"pointer-events-none":"cursor-pointer hover:scale-105"}`,children:t(d,{size:28})})}export{y as HeroVideoBackdrop,z as HeroVideoPlayer};
1
+ "use client";import{jsx as t,Fragment as u,jsxs as m}from"react/jsx-runtime";import{useEffect as f,useState as p}from"react";import{PlaySolidIcon as d}from"efficient-shell/icons/efficient-looks";import{PagePicture as b}from"../lib/first-screen.js";import{PLAY_VIDEO_LABEL as s,youTubeCoverFallbackUrl as h,youTubeCoverUrl as g,youTubeEmbedUrl as i}from"../../format/lib/hero-video.js";function j({youTubeId:e,ownPoster:l,background:a,editing:n}){const[r,o]=p("large");return f(()=>o("large"),[e]),e?m(u,{children:[!l&&r!=="none"&&t(b,{src:r==="large"?g(e):h(e),alt:"",className:"absolute inset-0 z-[2] h-full w-full object-cover",onLoad:c=>{r==="large"&&c.currentTarget.naturalWidth<=120&&o("small")},onError:()=>o(r==="large"?"small":"none")},`${e}-${r}`),a&&!n&&t("div",{className:"pointer-events-none absolute inset-0 z-[3] overflow-hidden [container-type:size]","aria-hidden":"true",children:t("iframe",{src:i(e,"background"),title:"",tabIndex:-1,allow:"autoplay; encrypted-media; picture-in-picture",className:"absolute left-1/2 top-1/2 h-[max(100%,56.25cqw)] w-[max(100%,177.78cqh)] -translate-x-1/2 -translate-y-1/2 border-0"})})]}):null}function k({youTubeId:e,fileSrc:l,playing:a,onPlay:n,editing:r}){return!e&&!l?null:a&&!r?e?t("iframe",{src:i(e,"click"),title:s,allow:"autoplay; encrypted-media; picture-in-picture; fullscreen",allowFullScreen:!0,className:"absolute inset-0 z-[6] h-full w-full border-0 bg-overlay-scrim"}):t("video",{src:l,controls:!0,autoPlay:!0,playsInline:!0,className:"absolute inset-0 z-[6] h-full w-full bg-overlay-scrim object-contain"}):t("button",{type:"button","aria-label":s,onClick:r?void 0:n,className:`absolute left-1/2 top-1/2 z-[4] grid h-16 w-16 -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full bg-btn text-btn-ink shadow-lg transition-transform motion-reduce:transition-none ${r?"pointer-events-none":"cursor-pointer hover:scale-105"}`,children:t(d,{size:28})})}export{j as HeroVideoBackdrop,k as HeroVideoPlayer};
@@ -1 +1 @@
1
- import{jsx as e,Fragment as F,jsxs as O}from"react/jsx-runtime";import{SiteLink as me}from"../lib/site-runtime.js";import ce from"./BlockFrame.js";import{useBoxCell as fe,useFillsCell as de}from"./InBoxContext.js";import{useInsideSiteGutter as ue,useSectionEdge as he}from"./SiteGutterFrame.js";import{useSitePhotography as pe}from"./SitePhotographyContext.js";import{media as T}from"../lib/media.js";import{CONTENT_SIZES as j,sizedImage as z}from"../../format/lib/sized-image.js";import{imageCornerStyle as ge}from"../../format/lib/content/image-corners.js";import{FILL_ROW as Se,imageAspectClasses as Ne,imageFillFrom as ye,imageAspectDrawn as Ce,imageAspectDrawsARatio as Fe,imageFocalPointActs as be,imageFocalPointActsIn as P,imageAspectPhoneOf as we,imageFillRowClasses as $e}from"../../format/lib/content/image-aspect.js";import{drawsSiteGutter as Ae}from"../../format/lib/content/site-gutter.js";import{imageFitClass as U,parseImageFit as _e}from"../../format/lib/content/image-fit.js";import{SECTION_FILL_CLASS as Ie}from"../../format/lib/content/section-min-height.js";import{NEXT_PICTURE_CLASS as xe,PICTURE_FRAME_CLASS as ke,PICTURE_WASH_CLASS as ve,PICTURE_ZOOM_CLASS as Re,PICTURE_ZOOM_VAR as Ee,resolveImageTreatment as Le,resolveNextPicture as Oe}from"../../format/lib/content/image-treatment.js";import{boxDarkenStyle as W}from"../../format/lib/content/box-background.js";import{phoneFocus as Te}from"../../format/lib/content/phone-focus.js";import{say as je}from"../../format/lib/editor-words.js";import{sectionEdgeAttrs as ze}from"../lib/content/section-edge.js";import B from"./PhotoHoverSheet.js";import Pe from"./PictureWash.js";function Ue({src:l,alt:G,aspect:D,aspectPhone:o,contained:b,grayscale:M,pictureHover:a,nextSrc:w,darken:Z,darkenStyle:$,href:V,fit:X,focal:A,focalPhone:q,focalTablet:J,corners:K,cornerSides:Q,pad:_,ownSize:Y=!1,editing:I=!1}){const c=Le(M,pe(),a),S=fe(),H=de(),t=Ce(D,S?.picturesFillRow===!0),f=t===Se,x=ye(S?.fillFrom,S?.phoneRowFills===!0,o),d=f?$e(x):null,ee=we(t,o),r=_e(X,"cover"),k=ge(K,Q),se=be(r,t,o),n=Te(P("mobile",r,t,o)?q:void 0,P("tablet",r,t,o)?J:void 0),u={...c.style??{},...A&&se?{objectPosition:A}:{},...n.style},h=l?z(T(l)):null,s=Oe(a),i=s&&w?z(T(w)):null,p=s?a?.zoom??null:null,te=W(Z,$),v=s&&a?.darken?W(a.darken,$):null,N=!!(s&&(i||p||v)),R=N?{...s?.style??{},...p?{[Ee]:p}:{}}:{},le=s&&i?e(F,{children:e("img",{src:i.src,...i.srcSet?{srcSet:i.srcSet,sizes:j}:{},alt:"","aria-hidden":"true",loading:"lazy",decoding:"async",className:`absolute inset-0 h-full w-full bg-surface ${U(r)}${n.className?` ${n.className}`:""} ${s.className}`,...Object.keys(u).length?{style:u}:{}})}):null,y=l&&h?O(F,{children:[e("img",{src:h.src,...h.srcSet?{srcSet:h.srcSet,sizes:j}:{},alt:G,className:`${d?`${d.img} `:""}h-full w-full ${Fe(t,o)?U(r):""}${c.className?` ${c.className}`:""}${n.className?` ${n.className}`:""}`,...Object.keys(u).length?{style:u}:{}}),le]}):null,C=y?O(F,{children:[e(B,{sheet:c.sheet}),N&&s?e(B,{sheet:s.sheet,name:xe}):null,p?e("div",{className:`${f?"absolute inset-0":"relative h-full w-full"} ${Re}`,children:y}):y,e(Pe,{wash:te,hover:v,className:`pointer-events-none ${ve}`})]}):e("div",{className:"flex aspect-[16/9] items-center justify-center border border-dashed border-line font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.2em] text-fg-dim",children:je("Image — set a path")}),g=(V??"").trim(),oe=g&&l?g.startsWith("/")?e(me,{href:g,className:"block h-full w-full",children:C}):e("a",{href:g,className:"block h-full w-full",children:C}):C,E=he(),re=ue(),m=E&&!Y?ze(E):null,L=_?{values:_,frame:f?0:24}:void 0,ae=L!==void 0&&Ae(m?!1:b,re),ne=f?H||I||ae?Ie:"":"py-6",ie=l&&r==="contain"?"":"bg-surface ";return!l&&!I?null:e(ce,{contained:m?!1:b,className:ne,pad:L,...m?{fillWidth:m.className,style:m.style}:{},children:e("figure",{...d?{className:d.figure}:{},children:e("div",{className:`relative w-full overflow-hidden ${ie}${Ne(t,ee,x)}${N?` ${ke}`:""}`,...k||Object.keys(R).length?{style:{...k,...R}}:{},children:oe})})})}export{Ue as default};
1
+ import{jsx as e,Fragment as w,jsxs as O}from"react/jsx-runtime";import{PagePicture as fe}from"../lib/first-screen.js";import{SiteLink as ue}from"../lib/site-runtime.js";import de from"./BlockFrame.js";import{useCellPictureSizes as he}from"./BoxCellWidthContext.js";import{useBoxCell as pe,useFillsCell as ge}from"./InBoxContext.js";import{useInsideSiteGutter as Se,useSectionEdge as Ce}from"./SiteGutterFrame.js";import{useSitePhotography as Ne}from"./SitePhotographyContext.js";import{media as T}from"../lib/media.js";import{CONTENT_SIZES as j,sizedImage as W}from"../../format/lib/sized-image.js";import{imageCornerStyle as ye}from"../../format/lib/content/image-corners.js";import{FILL_ROW as Fe,imageAspectClasses as we,imageFillFrom as be,imageAspectDrawn as $e,imageAspectDrawsARatio as Ae,imageFocalPointActs as _e,imageFocalPointActsIn as B,imageAspectPhoneOf as xe,imageFillRowClasses as Ie,imageWidthFollowsBox as ke}from"../../format/lib/content/image-aspect.js";import{drawsSiteGutter as ve}from"../../format/lib/content/site-gutter.js";import{imageFitClass as U,parseImageFit as Re}from"../../format/lib/content/image-fit.js";import{SECTION_FILL_CLASS as ze}from"../../format/lib/content/section-min-height.js";import{NEXT_PICTURE_CLASS as Ee,PICTURE_FRAME_CLASS as Le,PICTURE_WASH_CLASS as Pe,PICTURE_ZOOM_CLASS as Oe,PICTURE_ZOOM_VAR as Te,resolveImageTreatment as je,resolveNextPicture as We}from"../../format/lib/content/image-treatment.js";import{boxDarkenStyle as G}from"../../format/lib/content/box-background.js";import{phoneFocus as Be}from"../../format/lib/content/phone-focus.js";import{say as Ue}from"../../format/lib/editor-words.js";import{sectionEdgeAttrs as Ge}from"../lib/content/section-edge.js";import D from"./PhotoHoverSheet.js";import De from"./PictureWash.js";function Me({src:o,alt:M,aspect:Z,aspectPhone:r,contained:b,grayscale:V,pictureHover:i,nextSrc:$,darken:X,darkenStyle:A,href:q,fit:J,focal:_,focalPhone:K,focalTablet:Q,corners:Y,cornerSides:H,pad:x,ownSize:ee=!1,editing:I=!1}){const c=je(V,Ne(),i),S=pe(),se=ge(),C=Ce(),te=he(j),t=$e(Z,S?.picturesFillRow===!0),f=t===Fe,k=be(S?.fillFrom,S?.phoneRowFills===!0,r),u=f?Ie(k):null,v=xe(t,r),l=Re(J,"cover"),R=C||!ke(t,v,l)?j:te,z=ye(Y,H),le=_e(l,t,r),a=Be(B("mobile",l,t,r)?K:void 0,B("tablet",l,t,r)?Q:void 0),d={...c.style??{},..._&&le?{objectPosition:_}:{},...a.style},h=o?W(T(o)):null,s=We(i),n=s&&$?W(T($)):null,p=s?i?.zoom??null:null,oe=G(X,A),E=s&&i?.darken?G(i.darken,A):null,N=!!(s&&(n||p||E)),L=N?{...s?.style??{},...p?{[Te]:p}:{}}:{},re=s&&n?e(w,{children:e("img",{src:n.src,...n.srcSet?{srcSet:n.srcSet,sizes:R}:{},alt:"","aria-hidden":"true",loading:"lazy",decoding:"async",className:`absolute inset-0 h-full w-full bg-surface ${U(l)}${a.className?` ${a.className}`:""} ${s.className}`,...Object.keys(d).length?{style:d}:{}})}):null,y=o&&h?O(w,{children:[e(fe,{src:h.src,...h.srcSet?{srcSet:h.srcSet,sizes:R}:{},alt:M,className:`${u?`${u.img} `:""}h-full w-full ${Ae(t,r)?U(l):""}${c.className?` ${c.className}`:""}${a.className?` ${a.className}`:""}`,...Object.keys(d).length?{style:d}:{}}),re]}):null,F=y?O(w,{children:[e(D,{sheet:c.sheet}),N&&s?e(D,{sheet:s.sheet,name:Ee}):null,p?e("div",{className:`${f?"absolute inset-0":"relative h-full w-full"} ${Oe}`,children:y}):y,e(De,{wash:oe,hover:E,className:`pointer-events-none ${Pe}`})]}):e("div",{className:"flex aspect-[16/9] items-center justify-center border border-dashed border-line font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.2em] text-fg-dim",children:Ue("Image — set a path")}),g=(q??"").trim(),ie=g&&o?g.startsWith("/")?e(ue,{href:g,className:"block h-full w-full",children:F}):e("a",{href:g,className:"block h-full w-full",children:F}):F,ae=Se(),m=C&&!ee?Ge(C):null,P=x?{values:x,frame:f?0:24}:void 0,ne=P!==void 0&&ve(m?!1:b,ae),me=f?se||I||ne?ze:"":"py-6",ce=o&&l==="contain"?"":"bg-surface ";return!o&&!I?null:e(de,{contained:m?!1:b,className:me,pad:P,...m?{fillWidth:m.className,style:m.style}:{},children:e("figure",{...u?{className:u.figure}:{},children:e("div",{className:`relative w-full overflow-hidden ${ce}${we(t,v,k)}${N?` ${Le}`:""}`,...z||Object.keys(L).length?{style:{...z,...L}}:{},children:ie})})})}export{Me as default};
@@ -1 +1 @@
1
- import{jsx as l,jsxs as f}from"react/jsx-runtime";import{PaymentMark as L,paymentMarkItems as C}from"efficient-shell/icons/payment";import M from"./BlockFrame.js";import{renderChrome as j,renderGold as z,renderHeadline as R}from"./goldPhrases.js";import{LogoWallProvider as N}from"./LogoWallContext.js";import{EMPTY_ELSE_CLASS as T,EMPTY_HIDES_CLASS as G,EmptyHidesStyle as I}from"../lib/content/empty-hides.js";import{media as E}from"../lib/media.js";import{sizedImage as O}from"../../format/lib/sized-image.js";import{stripMarkup as v}from"../../format/lib/markup.js";import{DEFAULT_LOGO_LOOK as k}from"../../format/lib/sections/logo-look.js";import{paymentRowMark as B}from"../lib/sections/payment-rows.js";const w={label:"text-[length:var(--size-label,13px)]"},c="sf-logo-wall",D="sf-logo-items",d="flex flex-wrap items-center justify-center",u="plain",x={plain:{x:3.5,y:2},cards:{x:.75,y:.75}},y=t=>({columnGap:`${x[t].x}rem`,rowGap:`${x[t].y}rem`}),S=(t,e)=>`calc((100% - ${(t-1)*x[e].x}rem) / ${t})`;function P({items:t,contained:e,heading:n,columns:r,grayscale:s,logoHeight:i,bandPadding:a,logos:m,look:o=k,omitHead:$=!1,cards:p}){const W=r!=null?{flex:`0 0 ${S(r,u)}`}:void 0,_=!$;return f(M,{contained:e,className:_&&a==null?"py-10":"",style:!_||a==null?void 0:{paddingTop:`${a}px`,paddingBottom:`${a}px`},children:[!$&&n!=null&&n!==""?l("h2",{className:`mb-8 text-center font-mono ${w.label} uppercase tracking-[0.2em] text-fg-dim`,children:R(n,!1)}):null,p!==void 0?f(N,{value:{look:o,logoHeight:i,grayscale:s},children:[r!=null?l("style",{children:`.${c}-c${r}>*{flex:0 0 ${S(r,o)}}`}):null,l("div",{className:[c,r!=null?`${c}-c${r}`:"",d].filter(Boolean).join(" "),style:y(o),children:p})]}):m?f(N,{value:{look:o,logoHeight:i,grayscale:s},children:[l(I,{}),r!=null?l("style",{children:`.${c}-c${r}>*{flex:0 0 ${S(r,o)}}`}):null,l(m,{className:[c,G,r!=null?`${c}-c${r}`:"",d].filter(Boolean).join(" "),style:y(o),minEmptyHeight:80})]}):null,p!==void 0?null:l("div",{className:`${D} ${T} ${d}`,style:y(u),children:(t??[]).map((g,b)=>l("div",{className:"text-center",style:W,children:l(Y,{src:g.src,alt:g.alt,look:u,logoHeight:i,grayscale:s})},b))})]})}const h="font-mono text-[12px] uppercase tracking-[0.18em]";function A(t){const e=C({name:v(t)});return!e.length||e.length===1&&e[0].kind==="words"&&!e[0].glyph?null:l("span",{className:"flex items-center gap-3",children:e.map((n,r)=>l(L,{item:n,size:20,className:h},r))})}function Y({src:t,alt:e,look:n,logoHeight:r,grayscale:s,kind:i,mark:a}){if(n==="cards"){const m=!t&&i!==void 0?B({label:e,kind:i}):null;return l("div",{className:"sf-card flex h-10 items-center border border-line bg-surface px-4",children:a||(m?l(L,{item:m,size:20,className:h}):!t&&e&&A(e)?A(e):t?l("img",{...F(E(t)),alt:v(e||""),className:s===!1?"max-h-5 w-auto opacity-90":"max-h-5 w-auto opacity-90 grayscale"}):e&&l("span",{className:h,children:z(e)}))})}return t?l("img",{...K(E(t)),alt:e,className:["mx-auto w-auto opacity-60 transition-opacity hover:opacity-100",r==null?"h-7":"",s===!1?"":"grayscale"].filter(Boolean).join(" "),style:r==null?void 0:{height:`${r}px`}}):l("span",{className:`font-mono ${w.label} uppercase tracking-[0.2em] text-fg-dim`,children:j(e||"Logo")})}function F(t){const e=O(t,{fallbackWidth:320,maxWidth:640});return e.srcSet?{src:e.src,srcSet:e.srcSet,sizes:"120px"}:{src:t}}function K(t){const e=O(t,{fallbackWidth:640,maxWidth:960});return e.srcSet?{src:e.src,srcSet:e.srcSet,sizes:"240px"}:{src:t}}export{h as CARD_WORDS_CLASS,Y as LogoWallMark,P as default};
1
+ import{jsx as l,jsxs as f}from"react/jsx-runtime";import{PagePicture as L}from"../lib/first-screen.js";import{PaymentMark as N,paymentMarkItems as M}from"efficient-shell/icons/payment";import j from"./BlockFrame.js";import{renderChrome as z,renderGold as R,renderHeadline as T}from"./goldPhrases.js";import{LogoWallProvider as E}from"./LogoWallContext.js";import{EMPTY_ELSE_CLASS as G,EMPTY_HIDES_CLASS as I,EmptyHidesStyle as k}from"../lib/content/empty-hides.js";import{media as O}from"../lib/media.js";import{sizedImage as v}from"../../format/lib/sized-image.js";import{stripMarkup as w}from"../../format/lib/markup.js";import{DEFAULT_LOGO_LOOK as B}from"../../format/lib/sections/logo-look.js";import{paymentRowMark as D}from"../lib/sections/payment-rows.js";const A={label:"text-[length:var(--size-label,13px)]"},c="sf-logo-wall",P="sf-logo-items",d="flex flex-wrap items-center justify-center",u="plain",x={plain:{x:3.5,y:2},cards:{x:.75,y:.75}},y=t=>({columnGap:`${x[t].x}rem`,rowGap:`${x[t].y}rem`}),S=(t,e)=>`calc((100% - ${(t-1)*x[e].x}rem) / ${t})`;function Y({items:t,contained:e,heading:n,columns:r,grayscale:s,logoHeight:i,bandPadding:a,logos:m,look:o=B,omitHead:$=!1,cards:p}){const b=r!=null?{flex:`0 0 ${S(r,u)}`}:void 0,_=!$;return f(j,{contained:e,className:_&&a==null?"py-10":"",style:!_||a==null?void 0:{paddingTop:`${a}px`,paddingBottom:`${a}px`},children:[!$&&n!=null&&n!==""?l("h2",{className:`mb-8 text-center font-mono ${A.label} uppercase tracking-[0.2em] text-fg-dim`,children:T(n,!1)}):null,p!==void 0?f(E,{value:{look:o,logoHeight:i,grayscale:s},children:[r!=null?l("style",{children:`.${c}-c${r}>*{flex:0 0 ${S(r,o)}}`}):null,l("div",{className:[c,r!=null?`${c}-c${r}`:"",d].filter(Boolean).join(" "),style:y(o),children:p})]}):m?f(E,{value:{look:o,logoHeight:i,grayscale:s},children:[l(k,{}),r!=null?l("style",{children:`.${c}-c${r}>*{flex:0 0 ${S(r,o)}}`}):null,l(m,{className:[c,I,r!=null?`${c}-c${r}`:"",d].filter(Boolean).join(" "),style:y(o),minEmptyHeight:80})]}):null,p!==void 0?null:l("div",{className:`${P} ${G} ${d}`,style:y(u),children:(t??[]).map((g,C)=>l("div",{className:"text-center",style:b,children:l(F,{src:g.src,alt:g.alt,look:u,logoHeight:i,grayscale:s})},C))})]})}const h="font-mono text-[12px] uppercase tracking-[0.18em]";function W(t){const e=M({name:w(t)});return!e.length||e.length===1&&e[0].kind==="words"&&!e[0].glyph?null:l("span",{className:"flex items-center gap-3",children:e.map((n,r)=>l(N,{item:n,size:20,className:h},r))})}function F({src:t,alt:e,look:n,logoHeight:r,grayscale:s,kind:i,mark:a}){if(n==="cards"){const m=!t&&i!==void 0?D({label:e,kind:i}):null;return l("div",{className:"sf-card flex h-10 items-center border border-line bg-surface px-4",children:a||(m?l(N,{item:m,size:20,className:h}):!t&&e&&W(e)?W(e):t?l(L,{...K(O(t)),alt:w(e||""),className:s===!1?"max-h-5 w-auto opacity-90":"max-h-5 w-auto opacity-90 grayscale"}):e&&l("span",{className:h,children:R(e)}))})}return t?l(L,{...U(O(t)),alt:e,className:["mx-auto w-auto opacity-60 transition-opacity hover:opacity-100",r==null?"h-7":"",s===!1?"":"grayscale"].filter(Boolean).join(" "),style:r==null?void 0:{height:`${r}px`}}):l("span",{className:`font-mono ${A.label} uppercase tracking-[0.2em] text-fg-dim`,children:z(e||"Logo")})}function K(t){const e=v(t,{fallbackWidth:320,maxWidth:640});return e.srcSet?{src:e.src,srcSet:e.srcSet,sizes:"120px"}:{src:t}}function U(t){const e=v(t,{fallbackWidth:640,maxWidth:960});return e.srcSet?{src:e.src,srcSet:e.srcSet,sizes:"240px"}:{src:t}}export{h as CARD_WORDS_CLASS,F as LogoWallMark,Y as default};
@@ -1 +1 @@
1
- import{jsx as e,jsxs as o}from"react/jsx-runtime";import b from"./AnimatedStat.js";import w from"./Placeholder.js";import{useSitePhotography as y}from"./SitePhotographyContext.js";import N from"./SectionEyebrow.js";import{renderGold as _,renderHeadline as j,splitParagraphs as S}from"./goldPhrases.js";import{resolveImageTreatment as M}from"../../format/lib/content/image-treatment.js";import{sectionRunsFullWidth as T}from"../../format/lib/content/section-width.js";import{SECTION_FILL_CLASS as z}from"../../format/lib/content/section-min-height.js";const i={headingMediumUpTo800:"max-view-wide:text-[length:min(var(--size-headingMedium,36px),var(--sf-heading-max,9999px))]",headingMedium:"text-[length:min(var(--size-headingMedium,56px),var(--sf-heading-max,9999px))]",body:"text-[length:var(--size-body,16px)]"};function $({eyebrow:s,heading:d,body:x,stats:p,imageSrc:c,grayscale:f,pictureHover:g,fillHeight:u=!1,...h}={}){const v=M(f,y(),g),l=s||null,n=d||null,m=x||null,r=(p??[]).filter(a=>(a.value??"").trim()!==""||(a.label??"").trim()!=="");return e("section",{className:"relative z-[2] bg-bg p-0",children:o("div",{className:`grid ${u?z:"h-screen"} min-h-[100vh] grid-cols-2 border-y border-line max-[960px]:h-auto max-[960px]:grid-cols-1`,children:[e("div",{className:"flex flex-col justify-center border-r border-line px-[var(--sf-site-gutter,40px)] py-[100px] max-[960px]:order-2 max-[960px]:border-r-0 max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[960px]:py-[60px]",children:o("div",{className:T(h)?"flex w-full flex-col gap-7":"ml-auto flex w-full flex-col gap-7 max-w-[calc(var(--sf-site-width,1600px)/2_-_var(--sf-site-gutter,40px)*2_-_1px)] max-[960px]:ml-0 max-[960px]:max-w-none",children:[l!==null&&e(N,{text:l,size:14}),n!==null&&e("h2",{className:`font-heading2 ${i.headingMedium} font-normal leading-[1.05] tracking-[-0.03em] ${i.headingMediumUpTo800} max-view-wide:leading-[1]`,children:j(n,!0)}),m!==null&&S(m).map((a,t)=>e("p",{className:`max-w-[520px] ${i.body} leading-[1.7] text-fg-dim`,children:_(a)},t)),r.length>0&&e("div",{className:"mt-4 grid max-w-[520px] gap-6 border-t border-line pt-7",style:{gridTemplateColumns:`repeat(${r.length}, minmax(0, 1fr))`},children:r.map((a,t)=>e(b,{target:a.value??"",label:a.label??""},t))})]})}),e("div",{className:"sf-card relative flex items-center justify-center bg-surface overflow-hidden max-[960px]:aspect-[4/3]",children:e(w,{label:"manifesto",src:c||void 0,objectFit:"cover",objectPosition:"center",treatment:v})})]})})}export{$ as default};
1
+ import{jsx as e,jsxs as o}from"react/jsx-runtime";import b from"./AnimatedStat.js";import w from"./Placeholder.js";import{useSitePhotography as y}from"./SitePhotographyContext.js";import S from"./SectionEyebrow.js";import{renderGold as _,renderHeadline as N,splitParagraphs as j}from"./goldPhrases.js";import{resolveImageTreatment as M}from"../../format/lib/content/image-treatment.js";import{sectionRunsFullWidth as T}from"../../format/lib/content/section-width.js";import{SECTION_FILL_CLASS as z}from"../../format/lib/content/section-min-height.js";import{HALF_SIZES as E}from"../../format/lib/sized-image.js";const i={headingMediumUpTo800:"max-view-wide:text-[length:min(var(--size-headingMedium,36px),var(--sf-heading-max,9999px))]",headingMedium:"text-[length:min(var(--size-headingMedium,56px),var(--sf-heading-max,9999px))]",body:"text-[length:var(--size-body,16px)]"};function I({eyebrow:s,heading:d,body:x,stats:p,imageSrc:c,grayscale:f,pictureHover:g,fillHeight:u=!1,...h}={}){const v=M(f,y(),g),l=s||null,n=d||null,m=x||null,r=(p??[]).filter(a=>(a.value??"").trim()!==""||(a.label??"").trim()!=="");return e("section",{className:"relative z-[2] bg-bg p-0",children:o("div",{className:`grid ${u?z:"h-screen"} min-h-[100vh] grid-cols-2 border-y border-line max-[960px]:h-auto max-[960px]:grid-cols-1`,children:[e("div",{className:"flex flex-col justify-center border-r border-line px-[var(--sf-site-gutter,40px)] py-[100px] max-[960px]:order-2 max-[960px]:border-r-0 max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[960px]:py-[60px]",children:o("div",{className:T(h)?"flex w-full flex-col gap-7":"ml-auto flex w-full flex-col gap-7 max-w-[calc(var(--sf-site-width,1600px)/2_-_var(--sf-site-gutter,40px)*2_-_1px)] max-[960px]:ml-0 max-[960px]:max-w-none",children:[l!==null&&e(S,{text:l,size:14}),n!==null&&e("h2",{className:`font-heading2 ${i.headingMedium} font-normal leading-[1.05] tracking-[-0.03em] ${i.headingMediumUpTo800} max-view-wide:leading-[1]`,children:N(n,!0)}),m!==null&&j(m).map((a,t)=>e("p",{className:`max-w-[520px] ${i.body} leading-[1.7] text-fg-dim`,children:_(a)},t)),r.length>0&&e("div",{className:"mt-4 grid max-w-[520px] gap-6 border-t border-line pt-7",style:{gridTemplateColumns:`repeat(${r.length}, minmax(0, 1fr))`},children:r.map((a,t)=>e(b,{target:a.value??"",label:a.label??""},t))})]})}),e("div",{className:"sf-card relative flex items-center justify-center bg-surface overflow-hidden max-[960px]:aspect-[4/3]",children:e(w,{label:"manifesto",src:c||void 0,objectFit:"cover",objectPosition:"center",treatment:v,sizes:E})})]})})}export{I as default};
@@ -9,10 +9,11 @@ interface Props {
9
9
  objectPosition?: string;
10
10
  objectFit?: "cover" | "contain" | "fill" | "none" | "scale-down";
11
11
  sizes?: string;
12
+ sizesFromCell?: boolean;
12
13
  priority?: boolean;
13
14
  deferFetch?: boolean;
14
15
  showBackground?: boolean;
15
16
  treatment?: ImageTreatment;
16
17
  }
17
- export default function Placeholder({ fallback, className, src, alt, objectPosition, objectFit, sizes, priority, deferFetch, showBackground, treatment, }: Props): import("react").JSX.Element;
18
+ export default function Placeholder({ fallback, className, src, alt, objectPosition, objectFit, sizes: ownSizes, sizesFromCell, priority, deferFetch, showBackground, treatment, }: Props): import("react").JSX.Element;
18
19
  export {};
@@ -1 +1 @@
1
- "use client";import{jsx as r,jsxs as x}from"react/jsx-runtime";import{useEffect as w,useState as u}from"react";import{SiteImage as I}from"../lib/site-runtime.js";import{isExternalMediaUrl as E}from"../lib/media.js";import{sizedImage as k}from"../../format/lib/sized-image.js";import z from"./PhotoHoverSheet.js";function $({fallback:m,className:y,src:p,alt:i="",objectPosition:l,objectFit:t="cover",sizes:f="100vw",priority:g=!1,deferFetch:h=!1,showBackground:S=!0,treatment:e}){const[c,o]=u(!1),[v,n]=u(!1),s=p||"";w(()=>{o(!1),n(!1)},[s]);const d=E(s),a=d&&!v?k(s):{src:s},N=!s||c;return x("div",{className:`relative h-full w-full overflow-hidden ${y??""}`,children:[r("div",{className:"absolute inset-0 flex items-center justify-center",style:S?{background:"var(--site-surface)"}:void 0,children:N?m:null}),s&&(d?r("img",{src:a.src,alt:i,...a.srcSet?{srcSet:a.srcSet,sizes:f}:{},decoding:"async",...h?{loading:"lazy"}:{},className:`absolute inset-0 h-full w-full${e?.className?` ${e.className}`:""}`,style:{display:c?"none":"block",objectFit:t,...l?{objectPosition:l}:{},...e?.style??{}},onError:()=>a.srcSet?n(!0):o(!0)}):r(I,{src:s,alt:i,fill:!0,sizes:f,priority:g,...e?.className?{className:e.className}:{},style:{display:c?"none":"block",objectFit:t,...l?{objectPosition:l}:{},...e?.style??{}},onError:()=>o(!0)})),r(z,{sheet:e?.sheet})]})}export{$ as default};
1
+ "use client";import{jsx as a,jsxs as E}from"react/jsx-runtime";import{useEffect as k,useState as u}from"react";import{SiteImage as $}from"../lib/site-runtime.js";import{isExternalMediaUrl as C}from"../lib/media.js";import{useDeferredPicture as F}from"../lib/first-screen.js";import{sizedImage as _}from"../../format/lib/sized-image.js";import b from"./PhotoHoverSheet.js";import{useSizesWithinCell as j}from"./BoxCellWidthContext.js";function D({fallback:p,className:y,src:h,alt:c="",objectPosition:l,objectFit:t="cover",sizes:f="100vw",sizesFromCell:g=!1,priority:S=!1,deferFetch:v=!1,showBackground:N=!0,treatment:e}){const x=F(),z=j(f),n=g?z:f,[i,o]=u(!1),[I,d]=u(!1),s=h||"";k(()=>{o(!1),d(!1)},[s]);const m=C(s),r=m&&!I?_(s):{src:s},w=!s||i;return E("div",{className:`relative h-full w-full overflow-hidden ${y??""}`,children:[a("div",{className:"absolute inset-0 flex items-center justify-center",style:N?{background:"var(--site-surface)"}:void 0,children:w?p:null}),s&&(m?a("img",{src:r.src,alt:c,...r.srcSet?{srcSet:r.srcSet,sizes:n}:{},decoding:"async",...v?{loading:"lazy"}:x,className:`absolute inset-0 h-full w-full${e?.className?` ${e.className}`:""}`,style:{display:i?"none":"block",objectFit:t,...l?{objectPosition:l}:{},...e?.style??{}},onError:()=>r.srcSet?d(!0):o(!0)}):a($,{src:s,alt:c,fill:!0,sizes:n,priority:S,...e?.className?{className:e.className}:{},style:{display:i?"none":"block",objectFit:t,...l?{objectPosition:l}:{},...e?.style??{}},onError:()=>o(!0)})),a(b,{sheet:e?.sheet})]})}export{D as default};
@@ -1 +1 @@
1
- import{jsx as a,jsxs as n,Fragment as B}from"react/jsx-runtime";import{SiteLink as S}from"../lib/site-runtime.js";import{media as D}from"../lib/media.js";import{sizedImage as R}from"../../format/lib/sized-image.js";import{DEFAULT_SECTION_NUMBER_STYLE as j,OUTLINED_NUMBER_CLASS as C,OUTLINED_NUMBER_CSS as F,OUTLINED_NUMBER_LAYOUT as A,parseSectionNumberStyle as X}from"../../format/lib/sections/section-number-style.js";import{DEFAULT_SECTION_EYEBROW_LOOK as Y}from"../../format/lib/sections/section-eyebrow-look.js";import{STICKY_UNDERHEADER_CLASS as W}from"../lib/document/header-clearance.js";import{renderGold as Z,renderHeadline as K}from"./goldPhrases.js";import x from"./SectionEyebrow.js";const t={headingMediumUpTo800Small:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMediumUpTo800Large:"max-view-wide:text-[length:min(var(--size-headingMedium,36px),var(--sf-heading-max,9999px))]",headingSmallUpTo800:"max-view-wide:text-[length:var(--size-headingSmall,28px)]",headingMedium2:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]",headingMedium3:"text-[length:min(var(--size-headingMedium,56px),var(--sf-heading-max,9999px))]",headingMedium1:"text-[length:var(--sf-heading-max,var(--size-headingMedium,38px))]",bodySmall:"text-[length:var(--size-body,14px)]",bodyLarge:"text-[length:var(--size-body,16px)]",label:"text-[length:var(--size-label,14px)]",shelfLabel:"text-[length:var(--size-label,13px)]",shelfLabelSmall:"text-[length:var(--size-label,12px)]",shelfBody:"text-[length:var(--size-body,13px)]",shelfHeadingUpTo800Xs:"max-view-wide:text-[length:var(--size-headingMedium,28px)]",shelfHeadingUpTo800Small:"max-view-wide:text-[length:var(--size-headingMedium,32px)]",shelfHeadingUpTo800Large:"max-view-wide:text-[length:var(--size-headingMedium,36px)]",shelfHeadingUpTo800Xl:"max-view-wide:text-[length:var(--size-headingMedium,40px)]",shelfHeading1:"text-[length:var(--size-headingMedium,40px)]",shelfHeading2:"text-[length:var(--size-headingMedium,48px)]",shelfHeading3:"text-[length:var(--size-headingMedium,56px)]",shelfHeading4:"text-[length:var(--size-headingMedium,64px)]"},T=[{value:"para",label:"Paragraph size — 13px",cls:`font-mono font-normal uppercase tracking-[0.22em] ${t.shelfLabel}`},{value:"sm",label:"Small — 40px",cls:`font-heading2 font-medium tracking-[-0.03em] ${t.shelfHeading1} ${t.shelfHeadingUpTo800Xs}`},{value:"md",label:"Medium — 48px",cls:`font-heading2 font-medium tracking-[-0.03em] ${t.shelfHeading2} ${t.shelfHeadingUpTo800Small}`},{value:"lg",label:"Large — 56px",cls:`font-heading2 font-medium tracking-[-0.03em] ${t.shelfHeading3} ${t.shelfHeadingUpTo800Large}`},{value:"xl",label:"Extra large — 64px",cls:`font-heading2 font-medium tracking-[-0.03em] ${t.shelfHeading4} ${t.shelfHeadingUpTo800Xl}`}],G="lg";function P(e){return(T.find(i=>i.value===e)??T.find(i=>i.value===G)).cls}const g=(e,i=!1)=>typeof e=="string"?K(e,i):e,r=(e,i=!1)=>typeof e=="string"?Z(e,i):e;function q({num:e,title:i,link:l,logo:f,description:d,accent:w,accentNum:M,numStyle:E=j,look:m="standard",titleAccent:v,accentTracking:_="-0.02em",spaceBelow:y,rowGap:z,descriptionSize:L,className:h="",eyebrowLook:c=Y,titleSize:U,count:u,capped:H=!1}){const o=y??(m==="editorial"?"mb-[60px]":"");if(m==="shelf")return e||i||d||l?n("div",{className:`${W} sticky top-[var(--sf-header-h,88px)] z-30 mb-5 flex items-center justify-between gap-4 max-view-wide:flex-wrap max-view-wide:gap-y-2 border-b border-line bg-bg/95 py-3 backdrop-blur-md ${H?"":"-mx-[var(--sf-site-gutter,40px)] px-[var(--sf-site-gutter,40px)] max-view-wide:-mx-[min(20px,var(--sf-site-gutter,40px))] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]"}`,children:[n("div",{className:"flex min-w-0 items-end gap-6 max-view-wide:flex-col max-view-wide:items-stretch max-view-wide:gap-3",children:[e&&a("span",{className:`font-mono ${t.shelfLabel} leading-none uppercase tracking-[0.22em] text-fg-dim`,children:r(e)}),i&&a("h2",{className:`${P(U)} leading-none text-fg max-view-wide:leading-[1] [&>span]:block`,children:g(i)})]}),(d||l||u)&&n("div",{className:"flex items-center gap-5 max-view-wide:gap-3 view-wide:grow view-wide:justify-end",children:[d&&a("span",{className:`max-w-[340px] truncate font-display ${t.shelfBody} leading-[1.4] text-fg-dim max-view-wide:hidden view-wide:w-0 view-wide:grow view-wide:text-right`,children:r(d)}),l&&n(S,{href:l.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${t.shelfLabel} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[r(l.text),a("span",{"aria-hidden":!0,children:"→"})]}),u&&a("span",{className:`whitespace-nowrap font-mono ${t.shelfLabelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:u})]})]}):null;if(m==="editorial"){const s=!!i||!!v;return n("header",{className:`${o} grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-8 max-view-desktop:grid-cols-1 max-view-desktop:gap-3.5 ${h}`.trim(),children:[e&&(typeof e=="string"?a(x,{text:e,className:"pb-2"}):a("span",{className:"pb-2",children:e})),s&&n("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(40px,5.5vw,80px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em]",children:[i,v&&n(B,{children:[" ",a("em",{className:"font-serif font-normal italic text-accent",style:{letterSpacing:_},children:v})]})]}),d&&a("p",{className:`max-w-[360px] pb-1 text-right font-display ${t.bodySmall} leading-[1.5] text-fg-dim max-view-desktop:max-w-full max-view-desktop:text-left`,children:d})]})}if(m==="simple"){const s=`${o} ${h}`.trim();return n("div",{className:s||void 0,children:[e&&(typeof e=="string"?a(x,{text:e,look:c,className:"mb-4 block"}):a("span",{className:"mb-4 block",children:e})),i&&a("h2",{className:`font-heading2 ${t.headingMedium2} font-medium uppercase leading-none tracking-[-0.02em] text-fg ${t.headingMediumUpTo800Small}`,children:g(i)})]})}if(m==="statement"){const s=`${o} ${h}`.trim();return n("div",{className:s||void 0,children:[e&&(typeof e=="string"?a(x,{text:e,look:c,className:"mb-4 block"}):a("span",{className:"mb-4 block",children:e})),i&&a("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(40px,5vw,72px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em] text-fg",children:g(i,!0)})]})}if(m==="natural"){const s=`flex max-w-[680px] flex-col ${z??"gap-5"} ${o} ${h}`.replace(/\s+/g," ").trim();return n("div",{className:s,children:[e&&(typeof e=="string"?a(x,{text:e,look:c}):a("span",{children:e})),i&&a("h2",{className:`font-heading2 ${t.headingMedium2} font-medium leading-[1.05] tracking-[-0.03em] ${t.headingMediumUpTo800Small}`,children:g(i)}),d&&a("p",{className:`${L??`${t.bodyLarge}`} leading-[1.6] opacity-85`,children:d})]})}if(m==="essay"){const s=`${o} ${h}`.trim();return n("div",{className:s||void 0,children:[e&&(typeof e=="string"?a(x,{text:e,look:c,className:"mb-4 block"}):a("span",{className:"mb-4 block",children:e})),i&&a("h2",{className:`font-heading2 ${t.headingMedium1} [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.02em] text-fg ${t.headingSmallUpTo800}`,children:g(i)})]})}const k=!!d||!!l,I=!!i,b=X(E)==="outlined",N=`font-mono ${t.label} uppercase tracking-[0.3em]`;let p=null;if(e)if(b)p=a("span",{className:`${A} text-fg-dim ${C}`,children:r(e)});else if(M&&!w&&typeof e=="string"){const s=e.indexOf("/"),O=s===-1?e:e.slice(0,s),$=s===-1?"":e.slice(s);p=n("span",{className:N,children:[a("span",{className:"text-accent",children:r(O)}),$&&a("span",{className:"text-fg-dim",children:r($)})]})}else p=a("span",{className:`${N} ${w?"text-accent":"text-fg-dim"}`,children:r(e)});return n("div",{className:"mb-16 grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-6 max-view-wide:mb-9 max-view-wide:grid-cols-1 max-view-wide:gap-3 max-view-wide:pb-5",children:[b&&e&&a("style",{children:F}),n("div",{className:"flex flex-col items-start gap-3",children:[f?.src&&a("img",{...J(D(f.src)),alt:f.alt,className:"h-8 w-auto object-contain"}),p]}),I&&a("h2",{className:w?"font-heading2 text-[length:min(var(--size-headingMedium,clamp(36px,5vw,64px)),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.95] tracking-[-0.025em]":`font-heading2 ${t.headingMedium3} [font-weight:var(--sf-heading-weight,500)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.03em] whitespace-pre-line ${t.headingMediumUpTo800Large} max-view-wide:leading-[1]`,children:g(i)}),k&&n("div",{className:"flex flex-col items-end gap-3 max-view-wide:items-start",children:[d&&a("p",{className:`max-w-[340px] font-display ${t.bodySmall} leading-[1.5] text-fg-dim text-right max-view-wide:max-w-full max-view-wide:text-left`,children:r(d)}),l&&n(S,{href:l.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${t.label} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[r(l.text),a("span",{"aria-hidden":!0,children:"→"})]})]})]})}function J(e){const i=R(e,{fallbackWidth:640,maxWidth:960});return i.srcSet?{src:i.src,srcSet:i.srcSet,sizes:"240px"}:{src:e}}export{G as DEFAULT_SHELF_TITLE_SIZE,T as SHELF_TITLE_SIZES,q as default};
1
+ import{jsx as a,jsxs as n,Fragment as B}from"react/jsx-runtime";import{PagePicture as D}from"../lib/first-screen.js";import{SiteLink as S}from"../lib/site-runtime.js";import{media as R}from"../lib/media.js";import{sizedImage as j}from"../../format/lib/sized-image.js";import{DEFAULT_SECTION_NUMBER_STYLE as C,OUTLINED_NUMBER_CLASS as F,OUTLINED_NUMBER_CSS as A,OUTLINED_NUMBER_LAYOUT as X,parseSectionNumberStyle as Y}from"../../format/lib/sections/section-number-style.js";import{DEFAULT_SECTION_EYEBROW_LOOK as P}from"../../format/lib/sections/section-eyebrow-look.js";import{STICKY_UNDERHEADER_CLASS as W}from"../lib/document/header-clearance.js";import{renderGold as Z,renderHeadline as K}from"./goldPhrases.js";import x from"./SectionEyebrow.js";const t={headingMediumUpTo800Small:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMediumUpTo800Large:"max-view-wide:text-[length:min(var(--size-headingMedium,36px),var(--sf-heading-max,9999px))]",headingSmallUpTo800:"max-view-wide:text-[length:var(--size-headingSmall,28px)]",headingMedium2:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]",headingMedium3:"text-[length:min(var(--size-headingMedium,56px),var(--sf-heading-max,9999px))]",headingMedium1:"text-[length:var(--sf-heading-max,var(--size-headingMedium,38px))]",bodySmall:"text-[length:var(--size-body,14px)]",bodyLarge:"text-[length:var(--size-body,16px)]",label:"text-[length:var(--size-label,14px)]",shelfLabel:"text-[length:var(--size-label,13px)]",shelfLabelSmall:"text-[length:var(--size-label,12px)]",shelfBody:"text-[length:var(--size-body,13px)]",shelfHeadingUpTo800Xs:"max-view-wide:text-[length:var(--size-headingMedium,28px)]",shelfHeadingUpTo800Small:"max-view-wide:text-[length:var(--size-headingMedium,32px)]",shelfHeadingUpTo800Large:"max-view-wide:text-[length:var(--size-headingMedium,36px)]",shelfHeadingUpTo800Xl:"max-view-wide:text-[length:var(--size-headingMedium,40px)]",shelfHeading1:"text-[length:var(--size-headingMedium,40px)]",shelfHeading2:"text-[length:var(--size-headingMedium,48px)]",shelfHeading3:"text-[length:var(--size-headingMedium,56px)]",shelfHeading4:"text-[length:var(--size-headingMedium,64px)]"},T=[{value:"para",label:"Paragraph size — 13px",cls:`font-mono font-normal uppercase tracking-[0.22em] ${t.shelfLabel}`},{value:"sm",label:"Small — 40px",cls:`font-heading2 font-medium tracking-[-0.03em] ${t.shelfHeading1} ${t.shelfHeadingUpTo800Xs}`},{value:"md",label:"Medium — 48px",cls:`font-heading2 font-medium tracking-[-0.03em] ${t.shelfHeading2} ${t.shelfHeadingUpTo800Small}`},{value:"lg",label:"Large — 56px",cls:`font-heading2 font-medium tracking-[-0.03em] ${t.shelfHeading3} ${t.shelfHeadingUpTo800Large}`},{value:"xl",label:"Extra large — 64px",cls:`font-heading2 font-medium tracking-[-0.03em] ${t.shelfHeading4} ${t.shelfHeadingUpTo800Xl}`}],G="lg";function q(e){return(T.find(i=>i.value===e)??T.find(i=>i.value===G)).cls}const g=(e,i=!1)=>typeof e=="string"?K(e,i):e,r=(e,i=!1)=>typeof e=="string"?Z(e,i):e;function J({num:e,title:i,link:l,logo:f,description:d,accent:w,accentNum:M,numStyle:E=C,look:m="standard",titleAccent:v,accentTracking:_="-0.02em",spaceBelow:y,rowGap:z,descriptionSize:L,className:h="",eyebrowLook:c=P,titleSize:U,count:u,capped:H=!1}){const o=y??(m==="editorial"?"mb-[60px]":"");if(m==="shelf")return e||i||d||l?n("div",{className:`${W} sticky top-[var(--sf-header-h,88px)] z-30 mb-5 flex items-center justify-between gap-4 max-view-wide:flex-wrap max-view-wide:gap-y-2 border-b border-line bg-bg/95 py-3 backdrop-blur-md ${H?"":"-mx-[var(--sf-site-gutter,40px)] px-[var(--sf-site-gutter,40px)] max-view-wide:-mx-[min(20px,var(--sf-site-gutter,40px))] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]"}`,children:[n("div",{className:"flex min-w-0 items-end gap-6 max-view-wide:flex-col max-view-wide:items-stretch max-view-wide:gap-3",children:[e&&a("span",{className:`font-mono ${t.shelfLabel} leading-none uppercase tracking-[0.22em] text-fg-dim`,children:r(e)}),i&&a("h2",{className:`${q(U)} leading-none text-fg max-view-wide:leading-[1] [&>span]:block`,children:g(i)})]}),(d||l||u)&&n("div",{className:"flex items-center gap-5 max-view-wide:gap-3 view-wide:grow view-wide:justify-end",children:[d&&a("span",{className:`max-w-[340px] truncate font-display ${t.shelfBody} leading-[1.4] text-fg-dim max-view-wide:hidden view-wide:w-0 view-wide:grow view-wide:text-right`,children:r(d)}),l&&n(S,{href:l.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${t.shelfLabel} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[r(l.text),a("span",{"aria-hidden":!0,children:"→"})]}),u&&a("span",{className:`whitespace-nowrap font-mono ${t.shelfLabelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:u})]})]}):null;if(m==="editorial"){const s=!!i||!!v;return n("header",{className:`${o} grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-8 max-view-desktop:grid-cols-1 max-view-desktop:gap-3.5 ${h}`.trim(),children:[e&&(typeof e=="string"?a(x,{text:e,className:"pb-2"}):a("span",{className:"pb-2",children:e})),s&&n("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(40px,5.5vw,80px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em]",children:[i,v&&n(B,{children:[" ",a("em",{className:"font-serif font-normal italic text-accent",style:{letterSpacing:_},children:v})]})]}),d&&a("p",{className:`max-w-[360px] pb-1 text-right font-display ${t.bodySmall} leading-[1.5] text-fg-dim max-view-desktop:max-w-full max-view-desktop:text-left`,children:d})]})}if(m==="simple"){const s=`${o} ${h}`.trim();return n("div",{className:s||void 0,children:[e&&(typeof e=="string"?a(x,{text:e,look:c,className:"mb-4 block"}):a("span",{className:"mb-4 block",children:e})),i&&a("h2",{className:`font-heading2 ${t.headingMedium2} font-medium uppercase leading-none tracking-[-0.02em] text-fg ${t.headingMediumUpTo800Small}`,children:g(i)})]})}if(m==="statement"){const s=`${o} ${h}`.trim();return n("div",{className:s||void 0,children:[e&&(typeof e=="string"?a(x,{text:e,look:c,className:"mb-4 block"}):a("span",{className:"mb-4 block",children:e})),i&&a("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(40px,5vw,72px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em] text-fg",children:g(i,!0)})]})}if(m==="natural"){const s=`flex max-w-[680px] flex-col ${z??"gap-5"} ${o} ${h}`.replace(/\s+/g," ").trim();return n("div",{className:s,children:[e&&(typeof e=="string"?a(x,{text:e,look:c}):a("span",{children:e})),i&&a("h2",{className:`font-heading2 ${t.headingMedium2} font-medium leading-[1.05] tracking-[-0.03em] ${t.headingMediumUpTo800Small}`,children:g(i)}),d&&a("p",{className:`${L??`${t.bodyLarge}`} leading-[1.6] opacity-85`,children:d})]})}if(m==="essay"){const s=`${o} ${h}`.trim();return n("div",{className:s||void 0,children:[e&&(typeof e=="string"?a(x,{text:e,look:c,className:"mb-4 block"}):a("span",{className:"mb-4 block",children:e})),i&&a("h2",{className:`font-heading2 ${t.headingMedium1} [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.02em] text-fg ${t.headingSmallUpTo800}`,children:g(i)})]})}const k=!!d||!!l,I=!!i,b=Y(E)==="outlined",N=`font-mono ${t.label} uppercase tracking-[0.3em]`;let p=null;if(e)if(b)p=a("span",{className:`${X} text-fg-dim ${F}`,children:r(e)});else if(M&&!w&&typeof e=="string"){const s=e.indexOf("/"),O=s===-1?e:e.slice(0,s),$=s===-1?"":e.slice(s);p=n("span",{className:N,children:[a("span",{className:"text-accent",children:r(O)}),$&&a("span",{className:"text-fg-dim",children:r($)})]})}else p=a("span",{className:`${N} ${w?"text-accent":"text-fg-dim"}`,children:r(e)});return n("div",{className:"mb-16 grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-6 max-view-wide:mb-9 max-view-wide:grid-cols-1 max-view-wide:gap-3 max-view-wide:pb-5",children:[b&&e&&a("style",{children:A}),n("div",{className:"flex flex-col items-start gap-3",children:[f?.src&&a(D,{...Q(R(f.src)),alt:f.alt,className:"h-8 w-auto object-contain"}),p]}),I&&a("h2",{className:w?"font-heading2 text-[length:min(var(--size-headingMedium,clamp(36px,5vw,64px)),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.95] tracking-[-0.025em]":`font-heading2 ${t.headingMedium3} [font-weight:var(--sf-heading-weight,500)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.03em] whitespace-pre-line ${t.headingMediumUpTo800Large} max-view-wide:leading-[1]`,children:g(i)}),k&&n("div",{className:"flex flex-col items-end gap-3 max-view-wide:items-start",children:[d&&a("p",{className:`max-w-[340px] font-display ${t.bodySmall} leading-[1.5] text-fg-dim text-right max-view-wide:max-w-full max-view-wide:text-left`,children:r(d)}),l&&n(S,{href:l.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${t.label} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[r(l.text),a("span",{"aria-hidden":!0,children:"→"})]})]})]})}function Q(e){const i=j(e,{fallbackWidth:640,maxWidth:960});return i.srcSet?{src:i.src,srcSet:i.srcSet,sizes:"240px"}:{src:e}}export{G as DEFAULT_SHELF_TITLE_SIZE,T as SHELF_TITLE_SIZES,J as default};
@@ -1 +1 @@
1
- import{jsx as e,jsxs as i}from"react/jsx-runtime";import{alignViewAnswers as X,alignViewClasses as A}from"../../format/lib/content/block-align.js";import{SiteLink as $}from"../lib/site-runtime.js";import G from"./Btn.js";import{resolveImageTreatment as H}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 Z}from"../../format/lib/content/ink.js";import{scrim as q}from"../../format/lib/content/scrim.js";import{SECTION_FILL_CLASS as J}from"../../format/lib/content/section-min-height.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)]"},L={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 Q({imageLabel:x,imageSrc:f,imageTint:v=.4,imageObjectPosition:T,eyebrow:h,title:b,body:g,cta:c,reverse:n=!1,uppercase:z=!1,textAlign:m="left",textAlignTablet:w,textAlignPhone:u,textBgSrc:p,textBgLabel:I,textBgTint:y=.6,textBgObjectPosition:S,featureBar:r,imageButton:l,grayscale:M,pictureHover:C,fillHeight:P=!1}){const _=H(M,D(),C),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=X(m,w,u),o={text:A("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(" ")},O=n?"right":"left",U=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]":"",...P?[J]:[]].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:T,treatment:_}),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))] ${L.buttons[O]}`,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:q(.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:S,treatment:_}),y>0&&e("div",{className:"absolute inset-0",style:{background:`rgba(0,0,0,${y})`}})]}),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] ${L.words[U]}`,style:p?Z: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]`,z?"uppercase":""].join(" "),children:R(b,!1)}),g&&Y(g).map((F,V)=>e("p",{className:[`max-w-[520px] ${a.body} leading-[1.7]`,"text-fg-dim"].join(" "),children:s(F)},V)),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{Q 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 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};
@@ -18,4 +18,5 @@ export type BlockSize = {
18
18
  export declare function blockFillInCellClass(values: BlockSizeValues): string;
19
19
  export declare function blockSizeOf(values: BlockSizeValues): BlockSize | null;
20
20
  export declare function blockSetsItsWidth(values: BlockSizeValues): boolean;
21
+ export declare function blockCanWidenPastCell(values: BlockSizeValues): boolean;
21
22
  export declare function blockSizeValuesOf(props: Readonly<Record<string, unknown>>): BlockSizeValues;
@@ -1 +1 @@
1
- import{BLOCK_FIXED_WIDTH as A,BLOCK_SIZE_KEYS as O,parseBlockWidthFit as v,phoneKey as L,parseTextFit as k,tabletKey as K}from"efficient-easel/draw";import{TEXT_FIT_ATTR as d}from"../../../format/lib/fit-words.js";import{partDisplayClass as B}from"../../../format/lib/content/part-display.js";const D="sf-block-size",N="show",Z=e=>B(void 0,{block:e[L(N)]!==!1},"block"),p=e=>typeof e=="number"&&Number.isFinite(e)&&e>=0?e:void 0,y={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"}},H={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"}},z={two:{desktop:"view-wide:[.flex-row>*>&]:grow"},three:{desktop:"view-desktop:[.flex-row>*>&]:grow",tablet:"view-wide:max-view-desktop:[.flex-row>*>&]:grow"}},P={desktop:"--sf-bw",tablet:"--sf-bw-t",phone:"--sf-bw-p"},j={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)]"]}},M={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)]"]}},Y=["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!"},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 $(e){const t=W(e);return t.sides.filter(i=>t.mode[i]==="fill").map(i=>z[t.three?"three":"two"][i]).filter(Boolean).join(" ")}function W(e){const t=Y.some(n=>{const s=e[n]?.tablet;return n==="widthFit"?v(s)!==void 0:p(s)!==void 0}),i=t?["desktop","tablet","phone"]:["desktop","phone"],o=(n,s)=>{const f=n(s?.desktop),b=t?n(s?.tablet)??f:f;return{desktop:f,tablet:b,phone:n(s?.phone)??b}};return{three:t,sides:i,perSide:o,mode:o(v,e.widthFit)}}function q(e){const t=[],i={},o={},{three:n,sides:s,perSide:f,mode:b}=W(e),g=f(p,e.width);for(const w of s){const a=b[w];!a||a==="fit"||(t.push(n?H[w][a]:y[w][a]),a==="fixed"&&(i[P[w]]=`${g[w]??A.fallback}px`))}for(const w of["minWidth","maxWidth"]){const a=f(p,e[w]);for(const h of s){const I=a[h];if(I===void 0)continue;const[C,E]=n?M[w][h]:j[w][h];i[C]=`${I}px`,t.push(E)}}const m=k(e.textFit?.desktop),r=k(e.textFit?.phone),c=p(e.minFont?.desktop),x=p(e.minFont?.phone),_=k(e.textFit?.tablet),l=_!==m||r!==void 0?_:void 0,S=p(e.minFont?.tablet),T=S!==c||x!==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(F.desktop),(r??m)==="line"&&t.push(F.phone)),m&&(o[d.fit]=m),l&&(o[d.fitTablet]=l),r&&(o[d.fitPhone]=r),c!==void 0&&(o[d.min]=String(c)),T!==void 0&&(o[d.minTablet]=String(T)),x!==void 0&&(o[d.minPhone]=String(x)),t.length===0&&Object.keys(o).length===0?null:{className:[D,...t].join(" "),style:i,attrs:o}}function G(e){if(p(e.maxWidth?.desktop)!==void 0)return!0;const t=v(e.widthFit?.desktop);return t==="fill"||t==="fixed"}function J(e){const t={};for(const i of O){const o=e[i],n=e[K(i)],s=e[L(i)];(o!==void 0||n!==void 0||s!==void 0)&&(t[i]={desktop:o,tablet:n,phone:s})}return t}export{N as BLOCK_SHOW_KEY,D as BLOCK_SIZE_CLASS,d as TEXT_FIT_ATTR,$ as blockFillInCellClass,Z as blockPhoneHideClass,G as blockSetsItsWidth,q as blockSizeOf,J as blockSizeValuesOf};
1
+ import{BLOCK_FIXED_WIDTH as A,BLOCK_SIZE_KEYS as O,parseBlockWidthFit as c,phoneKey as I,parseTextFit as k,tabletKey as K}from"efficient-easel/draw";import{TEXT_FIT_ATTR as f}from"../../../format/lib/fit-words.js";import{partDisplayClass as B}from"../../../format/lib/content/part-display.js";const D="sf-block-size",N="show",Z=e=>B(void 0,{block:e[I(N)]!==!1},"block"),a=e=>typeof e=="number"&&Number.isFinite(e)&&e>=0?e:void 0,y={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"}},H={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"}},P={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"},j={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)]"]}},M={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)]"]}},Y=["widthFit","width","minWidth","maxWidth"],L={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 $(e){const t=W(e);return t.sides.filter(i=>t.mode[i]==="fill").map(i=>P[t.three?"three":"two"][i]).filter(Boolean).join(" ")}function W(e){const t=Y.some(n=>{const s=e[n]?.tablet;return n==="widthFit"?c(s)!==void 0:a(s)!==void 0}),i=t?["desktop","tablet","phone"]:["desktop","phone"],o=(n,s)=>{const p=n(s?.desktop),b=t?n(s?.tablet)??p:p;return{desktop:p,tablet:b,phone:n(s?.phone)??b}};return{three:t,sides:i,perSide:o,mode:o(c,e.widthFit)}}function q(e){const t=[],i={},o={},{three:n,sides:s,perSide:p,mode:b}=W(e),C=p(a,e.width);for(const w of s){const d=b[w];!d||d==="fit"||(t.push(n?H[w][d]:y[w][d]),d==="fixed"&&(i[z[w]]=`${C[w]??A.fallback}px`))}for(const w of["minWidth","maxWidth"]){const d=p(a,e[w]);for(const v of s){const F=d[v];if(F===void 0)continue;const[g,E]=n?M[w][v]:j[w][v];i[g]=`${F}px`,t.push(E)}}const r=k(e.textFit?.desktop),l=k(e.textFit?.phone),x=a(e.minFont?.desktop),h=a(e.minFont?.phone),_=k(e.textFit?.tablet),m=_!==r||l!==void 0?_:void 0,S=a(e.minFont?.tablet),T=S!==x||h!==void 0?S:void 0;return m?(r==="line"&&t.push(u.desktop),m==="line"&&t.push(u.tablet),(l??m)==="line"&&t.push(u.phone)):(r==="line"&&t.push(L.desktop),(l??r)==="line"&&t.push(L.phone)),r&&(o[f.fit]=r),m&&(o[f.fitTablet]=m),l&&(o[f.fitPhone]=l),x!==void 0&&(o[f.min]=String(x)),T!==void 0&&(o[f.minTablet]=String(T)),h!==void 0&&(o[f.minPhone]=String(h)),t.length===0&&Object.keys(o).length===0?null:{className:[D,...t].join(" "),style:i,attrs:o}}function G(e){if(a(e.maxWidth?.desktop)!==void 0)return!0;const t=c(e.widthFit?.desktop);return t==="fill"||t==="fixed"}function J(e){return["desktop","tablet","phone"].some(i=>{const o=c(e.widthFit?.[i]);return o==="fixed"||o==="fill"||a(e.minWidth?.[i])!==void 0})}function Q(e){const t={};for(const i of O){const o=e[i],n=e[K(i)],s=e[I(i)];(o!==void 0||n!==void 0||s!==void 0)&&(t[i]={desktop:o,tablet:n,phone:s})}return t}export{N as BLOCK_SHOW_KEY,D as BLOCK_SIZE_CLASS,f as TEXT_FIT_ATTR,J as blockCanWidenPastCell,$ as blockFillInCellClass,Z as blockPhoneHideClass,G as blockSetsItsWidth,q as blockSizeOf,Q as blockSizeValuesOf};
@@ -0,0 +1,17 @@
1
+ import type { ViewFractions } from "../../../format/lib/content/cell-picture-sizes.js";
2
+ export interface BoxCellShape {
3
+ direction?: unknown;
4
+ separator?: unknown;
5
+ loop?: unknown;
6
+ line?: unknown;
7
+ share?: unknown;
8
+ shareTablet?: unknown;
9
+ sharePhone?: unknown;
10
+ phoneRow?: unknown;
11
+ columns?: unknown;
12
+ columnsTablet?: unknown;
13
+ stackBelow?: unknown;
14
+ shared?: boolean;
15
+ count?: number;
16
+ }
17
+ export declare function boxCellFractions(box: BoxCellShape): ViewFractions | undefined;