efficient-web-builder 59.1.0 → 59.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/editor/components/HoverEffectField.js +1 -1
  3. package/dist/editor/components/SectionThumbnail.js +1 -1
  4. package/dist/editor/components/storefront-editor.css +21 -7
  5. package/dist/editor/lib/animation/fields.js +1 -1
  6. package/dist/editor/lib/animation/hover-fields.d.ts +10 -1
  7. package/dist/editor/lib/animation/hover-fields.js +1 -1
  8. package/dist/editor/lib/document/blocks/general/Cards/fields.js +1 -1
  9. package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
  10. package/dist/editor/lib/document/box-side-space-field.d.ts +11 -0
  11. package/dist/editor/lib/document/box-side-space-field.js +1 -0
  12. package/dist/editor/lib/document/card-row-fields.d.ts +3 -1
  13. package/dist/editor/lib/document/card-row-fields.js +1 -1
  14. package/dist/editor/lib/document/mirror-cards-field.js +1 -1
  15. package/dist/format/lib/animation/hover.d.ts +8 -0
  16. package/dist/format/lib/animation/hover.js +1 -1
  17. package/dist/format/lib/content/block-align.d.ts +3 -1
  18. package/dist/format/lib/content/block-align.js +1 -1
  19. package/dist/format/lib/content/box-background.d.ts +7 -0
  20. package/dist/format/lib/content/box-background.js +1 -1
  21. package/dist/format/lib/content/box-card-rule.d.ts +7 -0
  22. package/dist/format/lib/content/box-card-rule.js +1 -0
  23. package/dist/format/lib/content/box-layout.js +1 -1
  24. package/dist/format/lib/content/box-phone-place.d.ts +4 -4
  25. package/dist/format/lib/content/box-phone-place.js +1 -1
  26. package/dist/format/lib/content/box-shape.d.ts +1 -1
  27. package/dist/format/lib/content/box-shape.js +1 -1
  28. package/dist/format/lib/content/box-side-space.d.ts +14 -0
  29. package/dist/format/lib/content/box-side-space.js +1 -0
  30. package/dist/format/lib/content/button-icon.d.ts +3 -1
  31. package/dist/format/lib/content/button-icon.js +1 -1
  32. package/dist/format/lib/content/cell-picture-sizes.js +1 -1
  33. package/dist/format/lib/content/gallery-card-layout.d.ts +6 -1
  34. package/dist/format/lib/content/gallery-card-layout.js +1 -1
  35. package/dist/format/lib/content/image-aspect.d.ts +3 -3
  36. package/dist/format/lib/content/image-aspect.js +1 -1
  37. package/dist/format/lib/content/mirror-cards.d.ts +3 -0
  38. package/dist/format/lib/content/mirror-cards.js +1 -1
  39. package/dist/format/lib/content/page-width.d.ts +2 -0
  40. package/dist/format/lib/content/page-width.js +1 -1
  41. package/dist/format/lib/content/part-display.d.ts +2 -1
  42. package/dist/format/lib/content/part-display.js +1 -1
  43. package/dist/format/lib/content/site-gutter.d.ts +2 -0
  44. package/dist/format/lib/content/site-gutter.js +1 -1
  45. package/dist/format/lib/content/view-hide-class.d.ts +5 -2
  46. package/dist/format/lib/content/view-hide-class.js +1 -1
  47. package/dist/format/lib/content/view-lines.d.ts +2 -1
  48. package/dist/format/lib/content/view-lines.js +1 -1
  49. package/dist/format/lib/document/blocks/general/Cards/card-list-seed.d.ts +1 -0
  50. package/dist/format/lib/document/blocks/general/Cards/card-list-seed.js +1 -1
  51. package/dist/format/lib/document/blocks/general/Cards/card-seed.d.ts +9 -0
  52. package/dist/format/lib/document/blocks/general/Cards/card-seed.js +1 -1
  53. package/dist/format/lib/document/blocks/general/FAQ/card-seed.d.ts +1 -0
  54. package/dist/format/lib/document/blocks/general/FAQ/card-seed.js +1 -1
  55. package/dist/format/lib/document/card-content-switch.d.ts +1 -0
  56. package/dist/format/lib/document/card-content-switch.js +1 -1
  57. package/dist/format/lib/document/cards-template-on-read.js +1 -1
  58. package/dist/format/lib/document/row-hand.js +1 -1
  59. package/dist/format/lib/document/section-catalog.d.ts +2 -0
  60. package/dist/format/lib/document/section-catalog.js +11 -11
  61. package/dist/format/lib/document/section-descriptions.js +1 -1
  62. package/dist/format/lib/document/seed-parts.d.ts +1 -0
  63. package/dist/format/lib/document/seed-parts.js +1 -1
  64. package/dist/format/lib/editor-words-catalogue.d.ts +10 -0
  65. package/dist/format/lib/editor-words-catalogue.js +3 -3
  66. package/dist/format/lib/editor-words-kept.js +1 -1
  67. package/dist/format/lib/fit-words.d.ts +1 -0
  68. package/dist/format/lib/fit-words.js +9 -8
  69. package/dist/format/lib/sized-image.js +1 -1
  70. package/dist/format/lib/source-rules/one-phone-edge.d.ts +13 -0
  71. package/dist/format/lib/source-rules/one-phone-edge.js +8 -0
  72. package/dist/format/lib/source-rules/one-section-edge-inset.d.ts +6 -0
  73. package/dist/format/lib/source-rules/one-section-edge-inset.js +2 -0
  74. package/dist/format/lib/source-rules/one-site-column.js +3 -3
  75. package/dist/format/lib/source-rules/published-mounts.d.ts +12 -0
  76. package/dist/format/lib/source-rules/published-mounts.js +10 -0
  77. package/dist/render/components/BlockFrame.d.ts +2 -0
  78. package/dist/render/components/BlockFrame.js +1 -1
  79. package/dist/render/components/ButtonBlock.js +1 -1
  80. package/dist/render/components/CardRowContext.js +1 -1
  81. package/dist/render/components/Eyebrow.js +1 -1
  82. package/dist/render/components/Flex.d.ts +6 -2
  83. package/dist/render/components/Flex.js +1 -1
  84. package/dist/render/components/HeroPictures.js +1 -1
  85. package/dist/render/components/InBoxContext.d.ts +3 -0
  86. package/dist/render/components/InBoxContext.js +1 -1
  87. package/dist/render/components/LogoBlock.js +1 -1
  88. package/dist/render/components/Logos.js +1 -1
  89. package/dist/render/components/PublishedPartStylesContext.d.ts +2 -1
  90. package/dist/render/components/PublishedPartStylesContext.js +1 -1
  91. package/dist/render/components/SectionAnimation.d.ts +4 -2
  92. package/dist/render/components/SectionAnimation.js +1 -1
  93. package/dist/render/components/SiteGutterFrame.d.ts +2 -1
  94. package/dist/render/components/SiteGutterFrame.js +1 -1
  95. package/dist/render/components/Split.js +1 -1
  96. package/dist/render/components/Text.js +1 -1
  97. package/dist/render/components/TitleWithButtons.js +1 -1
  98. package/dist/render/components/ViewHideRoot.d.ts +7 -1
  99. package/dist/render/components/ViewHideRoot.js +1 -1
  100. package/dist/render/lib/content/block-size.d.ts +4 -1
  101. package/dist/render/lib/content/block-size.js +1 -1
  102. package/dist/render/lib/content/box-cell-bound.js +1 -1
  103. package/dist/render/lib/content/box-shared-columns.js +1 -1
  104. package/dist/render/lib/content/box-stack-line.d.ts +4 -1
  105. package/dist/render/lib/content/box-stack-line.js +1 -1
  106. package/dist/render/lib/content/section-edge.d.ts +5 -0
  107. package/dist/render/lib/content/section-edge.js +1 -1
  108. package/dist/render/lib/content/view-values.d.ts +2 -0
  109. package/dist/render/lib/content/view-values.js +1 -1
  110. package/dist/render/lib/document/blocks/general/CardList/render.js +1 -1
  111. package/dist/render/lib/document/blocks/general/Cards/render.js +1 -1
  112. package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
  113. package/dist/render/lib/document/blocks/general/section-head-looks.d.ts +1 -0
  114. package/dist/render/lib/document/blocks/general/section-head-looks.js +2 -2
  115. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.d.ts +1 -0
  116. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
  117. package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.js +1 -1
  118. package/dist/render/lib/document/blocks/general/section-to-box-rows-forms.js +1 -1
  119. package/dist/render/lib/document/blocks/general/section-to-box-rows-head.d.ts +3 -1
  120. package/dist/render/lib/document/blocks/general/section-to-box-rows-head.js +1 -1
  121. package/dist/render/lib/document/blocks/general/section-to-box-rows-logos.js +1 -1
  122. package/dist/render/lib/document/blocks/general/section-to-box-rows-proof.js +1 -1
  123. package/dist/render/lib/document/page-render.js +1 -1
  124. package/dist/render/lib/document/part-styles.d.ts +3 -1
  125. package/dist/render/lib/document/part-styles.js +2 -2
  126. package/dist/render/lib/document/passes/block-size.js +1 -1
  127. package/dist/render/lib/document/passes/clickable-parts.js +1 -1
  128. package/dist/render/lib/document/passes/hidden-nodes.js +1 -1
  129. package/dist/render/lib/document/passes/section-animation.js +1 -1
  130. package/dist/render/lib/document/passes/section-width.js +1 -1
  131. package/dist/render/lib/document/published-passes.d.ts +13 -0
  132. package/dist/render/lib/document/published-passes.js +1 -0
  133. package/dist/render/lib/sections/section-to-box.d.ts +4 -0
  134. package/dist/render/lib/sections/section-to-box.js +1 -1
  135. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ import{ruleChecks as i}from"./rule.js";const o=String.raw`--sf-edge-(?!beyond\b)[a-z]+`,l=new RegExp(String.raw`var\(\s*${o}\s*[,)]|-\(\s*(?:[a-z-]+:)?\s*${o}\s*\)|["'\`]${o}["'\`]`);function t(n){return l.test(n)}function h(n,s){const{check:a,report:g}=i("one section edge inset");a("the reader finds a copy, and passes an import",t('const inColumn = "pl-[calc(var(--sf-edge-g)_+_var(--sf-edge-al))]";')&&t("padding-right: calc(var(--sf-edge-g, 0px) + var(--sf-edge-ar));")&&t('"pl-(--sf-edge-al)"')&&t('"pl-(length:--sf-edge-al)"')&&t('"pr-[var(--sf-edge-t)]"')&&t('el.style.getPropertyValue("--sf-edge-ar")')&&!t(`import { sectionEdgeBandAttrs } from "x";
2
+ <div {...sectionEdgeBandAttrs(edge)} />`)&&!t('"[--sf-edge-g:0px] [--sf-edge-al:0px]"')&&!t("[--sf-edge-beyond:0px] mx-[calc(-1_*_var(--sf-edge-beyond))]"));const r=n.filter(e=>/\.(?:tsx?|css)$/.test(e.path)),d=r.filter(e=>/\.tsx?$/.test(e.path));a(`read the source (${d.length} TS/TSX files, at least ${s.minFiles})`,d.length>=s.minFiles,"fewer means the walk broke, and the check below is vacuous");const c=r.filter(e=>e.path!==s.home&&t(e.text)).map(e=>e.path);return a("no file reads a private --sf-edge-* amount; each imports from section-edge",c.length===0,`a copy in: ${c.join(", ")}`),s.home&&a(`${s.home} exports the band`,r.some(e=>e.path===s.home&&/\bexport function sectionEdgeBandAttrs\b/.test(e.text)),"the home file has no sectionEdgeBandAttrs"),g()}export{h as oneSectionEdgeInset};
@@ -1,3 +1,3 @@
1
- import{SITE_COLUMN as h}from"../content/page-width.js";import{ruleChecks as a}from"./rule.js";function n(r){return r.includes(h)}function u(r,t){const{check:o,report:l}=a("one site column");o("the reader finds a copy, and passes an import",n(`const SITE_COLUMN =
2
- "${h}";`)&&!n(`import { SITE_COLUMN } from "x";
3
- <div className={SITE_COLUMN} />`));const s=r.filter(e=>/\.tsx?$/.test(e.path));o(`read the source (${s.length} TS/TSX files, at least ${t.minFiles})`,s.length>=t.minFiles,"fewer means the walk broke, and the check below is vacuous");const i=s.filter(e=>e.path!==t.home&&n(e.text)).map(e=>e.path);return o("no file spells the site column out; each imports SITE_COLUMN",i.length===0,`a copy in: ${i.join(", ")}`),t.home&&o(`${t.home} defines it`,s.some(e=>e.path===t.home&&n(e.text)),"the home file has no SITE_COLUMN"),l()}export{u as oneSiteColumn};
1
+ import{SITE_COLUMN as c}from"../content/page-width.js";import{ruleChecks as l}from"./rule.js";function r(n){return n.includes(c)}function p(n,t){const{check:o,report:h}=l("one site column");o("the reader finds a copy, and passes an import",r(`const SITE_COLUMN =
2
+ "${c}";`)&&!r(`import { SITE_COLUMN } from "x";
3
+ <div className={SITE_COLUMN} />`));const s=n.filter(e=>/\.tsx?$/.test(e.path));o(`read the source (${s.length} TS/TSX files, at least ${t.minFiles})`,s.length>=t.minFiles,"fewer means the walk broke, and the check below is vacuous");const i=s.filter(e=>e.path!==t.home&&r(e.text)).map(e=>e.path);return o("no file spells the site column out; each imports SITE_COLUMN",i.length===0,`a copy in: ${i.join(", ")}`),t.home&&o(`${t.home} defines it`,s.some(e=>e.path===t.home&&/\bexport const SITE_COLUMN\b/.test(e.text)),"the home file has no SITE_COLUMN"),h()}export{p as oneSiteColumn};
@@ -0,0 +1,12 @@
1
+ import { type RuleReport, type SourceFile } from "./rule.js";
2
+ export type PublishedMount = {
3
+ readonly call: string;
4
+ readonly variable: string;
5
+ readonly args?: string;
6
+ };
7
+ export type PublishedMountsOptions = {
8
+ readonly mounts: Readonly<Record<string, PublishedMount>>;
9
+ readonly minFiles: number;
10
+ };
11
+ export declare function mountProblems(text: string, mount: PublishedMount): string[];
12
+ export declare function publishedMounts(files: readonly SourceFile[], options: PublishedMountsOptions): RuleReport;
@@ -0,0 +1,10 @@
1
+ import{ruleChecks as f}from"./rule.js";const m=s=>s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),b=s=>s.replace(/\/\*[\s\S]*?\*\//g,"").replace(/^\s*\/\/.*$/gm,"");function u(s,a){let t=0;for(let l=a;l<s.length;l++)if(s[l]==="(")t++;else if(s[l]===")"&&--t===0)return l;return-1}function d(s,a){const t=b(s),l=m(a.variable),n=[],i=[...t.matchAll(new RegExp(`\\b(?:const|let|var)\\s+${l}\\s*=\\s*`,"g"))];if(i.length!==1)return[`\`${a.variable}\` is declared ${i.length} times, not once`];const e=i[0].index+i[0][0].length;if(t.slice(e,e+a.call.length+1)!==`${a.call}(`)n.push(`\`${a.variable}\` is not set straight from ${a.call}(…): a pass wraps it`);else{const h=e+a.call.length,p=u(t,h),$=t.slice(p+1).match(/^\s*(.)/)?.[1];p<0||$!==";"?n.push(`\`${a.variable}\` = ${a.call}(…) is followed by more than the end of the statement`):a.args!==void 0&&t.slice(h+1,p).trim()!==a.args&&n.push(`${a.call} is handed \`${t.slice(h+1,p).trim()}\`, not \`${a.args}\``)}t.slice(e).match(new RegExp(`(?<![\\w.$])${l}\\s*(?:[-+*/%&|^]|\\?\\?|&&|\\|\\|)?=(?!=|>)`,"g"))&&n.push(`\`${a.variable}\` is assigned again`);const g="<Render",o=[...t.matchAll(new RegExp(`${g}\\b[^<>]*?\\bdata=\\{([^}]*)\\}`,"g"))];return o.length!==1?n.push(`${o.length} Render tags with a data prop, not one`):o[0][1].trim()!==a.variable&&n.push(`the Render tag draws \`${o[0][1].trim()}\`, not \`${a.variable}\``),n}function x(s,a){const{check:t,report:l}=f("published mounts");{const e={call:"publishedPageData",variable:"page",args:"data, metadata"},r="return <Render config={c} data={page} />;",c=`const page = ${e.call}(data, metadata);
2
+ ${r}`;t("the one call, drawn, passes",d(c,e).length===0,d(c,e).join("; ")),t("…a comment naming a wrapper does not fail it",d(`// const page = x(${e.call}(data, metadata));
3
+ ${c}`,e).length===0),t("…reading the content off it does not fail it",d(`${c}
4
+ const lead = first(page.content);`,e).length===0);const g=[["a wrapping pass",`const page = extra(${e.call}(data, metadata));
5
+ ${r}`],["a pass after the call",`const page = ${e.call}(data, metadata).x;
6
+ ${r}`],["a reassignment",`let page = ${e.call}(data, metadata);
7
+ page = extra(page);
8
+ ${r}`],["a pass in the Render prop",`const page = ${e.call}(data, metadata);
9
+ return <Render data={extra(page)} />;`],["other arguments",`const page = ${e.call}(extra(data), metadata);
10
+ ${r}`],["no call at all",r]];for(const[o,h]of g)t(`…${o} fails it`,d(h,e).length>0)}const n=s.filter(e=>/\.tsx?$/.test(e.path));t(`the source scan reached the tree (${n.length} TS/TSX files, at least ${a.minFiles})`,n.length>=a.minFiles);const i=Object.keys(a.mounts);t("at least one published mount is named",i.length>0);for(const e of i){const r=n.find(g=>g.path===e);if(!t(`${e} is here`,r!==void 0,"a stale row would shelter nothing"))continue;const c=d(r.text,a.mounts[e]);t(`${e} draws exactly what ${a.mounts[e].call} returns — a pass belongs in lib/document/published-passes`,c.length===0,c.join("; "))}return l()}export{d as mountProblems,x as publishedMounts};
@@ -14,6 +14,8 @@ interface BlockFrameProps {
14
14
  export declare const FRAME_BASE = "mx-auto w-full max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)]";
15
15
  export declare const FRAME_GUTTER = "max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]";
16
16
  export declare const FRAME = "mx-auto w-full max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]";
17
+ export declare const FRAME_SITE_GUTTER = "max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]";
18
+ export declare function frameGutterOf(site: boolean): string;
17
19
  export declare const PRE_FRAME_BASE = "mx-auto w-full max-w-[1280px] px-[60px]";
18
20
  export declare const PRE_FRAME_GUTTER = "max-[960px]:px-6";
19
21
  export declare const PRE_FRAME = "mx-auto w-full max-w-[1280px] px-[60px] max-[960px]:px-6";
@@ -1 +1 @@
1
- import{jsx as a}from"react/jsx-runtime";import l from"./SiteGutterFrame.js";const m="mx-auto w-full max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)]",n="max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",x=`${m} ${n}`,E="mx-auto w-full max-w-[1280px] px-[60px]",f="max-[960px]:px-6",c=`${E} ${f}`;function i({contained:o,className:t="",style:r,pad:p,fillWidth:e="w-full",children:s}){return a(l,{contained:o,framedClass:`${x} ${t}`,fillClass:`${e} ${t}`,columnClass:x,style:r,pad:p,children:s})}export{x as FRAME,m as FRAME_BASE,n as FRAME_GUTTER,c as PRE_FRAME,E as PRE_FRAME_BASE,f as PRE_FRAME_GUTTER,i as default};
1
+ import{jsx as n}from"react/jsx-runtime";import{SITE_COLUMN_NARROW as m}from"../../format/lib/content/page-width.js";import E from"./SiteGutterFrame.js";const f="mx-auto w-full max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)]",o="max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",x=`${f} ${o}`,l=m;function F(t){return t?l:o}const u="mx-auto w-full max-w-[1280px] px-[60px]",R="max-[960px]:px-6",M=`${u} ${R}`;function i({contained:t,className:r="",style:e,pad:p,fillWidth:s="w-full",children:a}){return n(E,{contained:t,framedClass:`${x} ${r}`,fillClass:`${s} ${r}`,columnClass:x,style:e,pad:p,children:a})}export{x as FRAME,f as FRAME_BASE,o as FRAME_GUTTER,l as FRAME_SITE_GUTTER,M as PRE_FRAME,u as PRE_FRAME_BASE,R as PRE_FRAME_GUTTER,i as default,F as frameGutterOf};
@@ -1 +1 @@
1
- import{jsx as r}from"react/jsx-runtime";import{buttonArrowShown as L}from"../../format/lib/content/button-arrow.js";import{buttonIconAtEnd as N,buttonIconSide as _,buttonWidthClass as j,storedButtonIcon as v}from"../../format/lib/content/button-icon.js";import{buttonCornersStyle as F,buttonPadAttrs as O,buttonPaint as R}from"../lib/content/button-look.js";import{ArrowLongRightIcon as $,ArrowRightIcon as G,ArrowUpRightIcon as U,BagIcon as E,CarIcon as K,CartIcon as V,ChevronRightIcon as Y,DownloadIcon as z,EmailIcon as D,ExternalIcon as H,LocationIcon as J,PlayIcon as W,SearchIcon as q,TagIcon as M}from"efficient-shell/icons/efficient";import Q from"./BlockFrame.js";import X from"./Btn.js";import{renderGold as Z}from"./goldPhrases.js";import{alignViewClasses as oo,BLOCK_ALIGN_JUSTIFY as to}from"../../format/lib/content/block-align.js";const no="sf-button-block",ro={"arrow-right":G,"arrow-long-right":$,"arrow-up-right":U,"chevron-right":Y,external:H,cart:V,bag:E,tag:M,email:D,location:J,play:W,download:z,search:q,car:K},ao=o=>o?` ${o}`:"";function eo(o){const{label:f,href:c,variant:i,align:a,alignTablet:b,alignPhone:p,contained:I,arrow:C,icon:y,iconPosition:s,widthFit:l,widthFitPhone:B,widthFitTablet:P,buttonColor:t,buttonTextColor:d,hrefRewrite:h}=o,n=v(y),m=n&&n!=="none"?ro[n]:void 0,T=n===void 0?L(C)?{}:{arrow:null}:m?{arrow:r(m,{size:16}),..._(s)==="before"?{glyphBefore:!0}:{}}:{arrow:null},u=O(o),g=[j(l,B,P),u?.className??""].filter(Boolean).join(" "),x=g?{className:g}:{},A=N(s,l)?{spread:!0}:{},e=R(o),S=e?e.background==="transparent"?"ghost":"primary":i,w={...e??(t?i==="ghost"?{borderColor:t}:{background:t,borderColor:t}:{}),...d?{color:d}:{},...u?.style??{},...F(o)??{}},k=Object.keys(w).length?{style:w}:{};return r(Q,{contained:I,className:`${no} py-4`,children:r("div",{className:`flex${a?` ${to[a]}`:""}${ao(oo("justify",a,b,p))}`,children:r(X,{href:c||"#",variant:S,...x,...A,...T,...k,...c&&h?{hrefRewrite:h}:{},children:Z(f)})})})}export{no as BUTTON_BLOCK_CLASS,eo as default};
1
+ import{jsx as r}from"react/jsx-runtime";import{buttonArrowShown as N}from"../../format/lib/content/button-arrow.js";import{buttonIconAtEnd as _,buttonIconSide as j,buttonWidthClass as v,storedButtonIcon as F}from"../../format/lib/content/button-icon.js";import{buttonCornersStyle as O,buttonPadAttrs as R,buttonPaint as $}from"../lib/content/button-look.js";import{ArrowLongRightIcon as G,ArrowRightIcon as U,ArrowUpRightIcon as E,BagIcon as K,CarIcon as V,CartIcon as Y,ChevronRightIcon as z,DownloadIcon as D,EmailIcon as H,ExternalIcon as J,LocationIcon as W,PlayIcon as q,SearchIcon as M,TagIcon as Q}from"efficient-shell/icons/efficient";import X from"./BlockFrame.js";import Z from"./Btn.js";import{renderGold as oo}from"./goldPhrases.js";import{alignViewClasses as to,BLOCK_ALIGN_JUSTIFY as no}from"../../format/lib/content/block-align.js";import{useInBox as ro}from"./InBoxContext.js";const eo="sf-button-block",ao={"arrow-right":U,"arrow-long-right":G,"arrow-up-right":E,"chevron-right":z,external:J,cart:Y,bag:K,tag:Q,email:H,location:W,play:q,download:D,search:M,car:V},io=o=>o?` ${o}`:"";function co(o){const{label:b,href:i,variant:c,align:e,alignTablet:p,alignPhone:I,contained:C,arrow:B,icon:y,iconPosition:s,widthFit:l,widthFitPhone:x,widthFitTablet:S,buttonColor:t,buttonTextColor:d,hrefRewrite:h}=o,m=ro(),n=F(y),u=n&&n!=="none"?ao[n]:void 0,L=n===void 0?N(B)?{}:{arrow:null}:u?{arrow:r(u,{size:16}),...j(s)==="before"?{glyphBefore:!0}:{}}:{arrow:null},f=R(o),g=[v(l,x,S,{atSectionLine:!m}),f?.className??""].filter(Boolean).join(" "),P=g?{className:g}:{},T=_(s,l)?{spread:!0}:{},a=$(o),A=a?a.background==="transparent"?"ghost":"primary":c,w={...a??(t?c==="ghost"?{borderColor:t}:{background:t,borderColor:t}:{}),...d?{color:d}:{},...f?.style??{},...O(o)??{}},k=Object.keys(w).length?{style:w}:{};return r(X,{contained:C,className:`${eo} py-4`,children:r("div",{className:`flex${e?` ${no[e]}`:""}${io(to("justify",e,p,I,{atSectionLine:!m}))}`,children:r(Z,{href:i||"#",variant:A,...P,...T,...L,...k,...i&&h?{hrefRewrite:h}:{},children:oo(b)})})})}export{eo as BUTTON_BLOCK_CLASS,co as default};
@@ -1 +1 @@
1
- "use client";import{Fragment as i,jsx as t,jsxs as f}from"react/jsx-runtime";import{createContext as P,useContext as d,useId as b}from"react";import{REPEAT_ATTRIBUTE as g,REPEAT_INDEX_ATTRIBUTE as y}from"efficient-easel/draw";import{BOX_LINKED_CLASS as j}from"../../format/lib/content/box-link.js";import{CARD_TEMPLATE_SLOT as v,cardTemplateLinesBetween as O,rowFilledProps as k,templateBoxIsEmpty as F}from"../../format/lib/content/card-template.js";import{CARD_ACTION_ATTR as U,CARD_ACTION_CLASS as X,CARD_STATE_LINE_CLASS as $,CARD_STATE_UNDER_LINE_CLASS as G,cardStateAttrs as K,cardStateValue as M}from"../../format/lib/content/card-state.js";import{usePageRecordRow as V}from"./CurrentRecord.js";function tt({props:n,editing:o,children:r}){const e=d(l);return!o&&F(n,e?.row)?null:t(i,{children:r})}const l=P(null);function rt(){return d(l)}function et({type:n,props:o,children:r}){const e=d(l),s=V(),u=e?.row??s;return t(i,{children:r(k(n,o,u,e?.ownerType),e,u)})}function q({attrs:n,selected:o,press:r,children:e}){const s=b();return f("div",{...n,id:s,className:j,children:[t("button",{type:"button",[U]:"",className:X,"aria-pressed":o,"aria-labelledby":s,onClick:r}),e]})}function ot({ownerId:n,ownerType:o,Template:r,rows:e,items:s,states:u,stateLine:S,actions:w,fallback:h,copyAttrs:I,wrapCopy:m,children:L}){const N=d(l);if(!r||(r.blockCount??0)<=0)return t(i,{children:h});const D=N!==null,p=O(o),x=e.map((B,c)=>{const a=u?.[c],A={row:B,index:c,ownerType:o,item:s?.[c],nested:D,...a?{state:a}:null,...p?{linesBetween:p}:null},_=M(a)?f(i,{children:[t(r,{}),t("span",{"aria-hidden":"true",className:S==="under"?G:$})]}):t(r,{}),C={[g]:`${n}:${v}`,[y]:c,...I},R=w?.[c],T=K(a),E=R?t(q,{attrs:{...C,...T},selected:a?.selected===!0,press:R.press,children:_}):t("div",{...C,...T,children:_});return t(l.Provider,{value:A,children:m?m(E,A):E},c)});return t(i,{children:L(x)})}export{l as CardRowContext,et as CardRowDrawn,ot as CardTemplateRows,tt as RowEmptyGate,rt as useCardRow};
1
+ "use client";import{Fragment as l,jsx as t,jsxs as f}from"react/jsx-runtime";import{createContext as B,useContext as u,useId as P}from"react";import{REPEAT_ATTRIBUTE as g,REPEAT_INDEX_ATTRIBUTE as O}from"efficient-easel/draw";import{BOX_LINKED_CLASS as j}from"../../format/lib/content/box-link.js";import{CARD_TEMPLATE_SLOT as k,cardTemplateLinesBetween as v,rowFilledProps as F,templateBoxIsEmpty as U}from"../../format/lib/content/card-template.js";import{CARD_ACTION_ATTR as X,CARD_ACTION_CLASS as $,CARD_STATE_LINE_CLASS as G,CARD_STATE_UNDER_LINE_CLASS as K,cardStateAttrs as M,cardStateValue as V}from"../../format/lib/content/card-state.js";import{usePageRecordRow as q}from"./CurrentRecord.js";import{CardCopyCell as z}from"./InBoxContext.js";import{SECTION_FILL_CLASS as H}from"../../format/lib/content/section-min-height.js";function st({props:n,editing:o,children:r}){const e=u(i);return!o&&U(n,e?.row)?null:t(l,{children:r})}const i=B(null);function ct(){return u(i)}function at({type:n,props:o,children:r}){const e=u(i),s=q(),d=e?.row??s;return t(l,{children:r(F(n,o,d,e?.ownerType),e,d)})}function J({attrs:n,selected:o,press:r,children:e}){const s=P();return f("div",{...n,id:s,className:j,children:[t("button",{type:"button",[X]:"",className:$,"aria-pressed":o,"aria-labelledby":s,onClick:r}),e]})}function lt({ownerId:n,ownerType:o,Template:r,rows:e,items:s,states:d,stateLine:w,actions:L,fallback:I,copyAttrs:N,wrapCopy:m,children:h}){const D=u(i);if(!r||(r.blockCount??0)<=0)return t(l,{children:I});const x=D!==null,C=v(o),p=r.blockCount===1?t(z,{children:t(r,{className:H})}):t(r,{}),b=e.map((y,c)=>{const a=d?.[c],A={row:y,index:c,ownerType:o,item:s?.[c],nested:x,...a?{state:a}:null,...C?{linesBetween:C}:null},_=V(a)?f(l,{children:[p,t("span",{"aria-hidden":"true",className:w==="under"?K:G})]}):p,R={[g]:`${n}:${k}`,[O]:c,...N},E=L?.[c],T=M(a),S=E?t(J,{attrs:{...R,...T},selected:a?.selected===!0,press:E.press,children:_}):t("div",{...R,...T,children:_});return t(i.Provider,{value:A,children:m?m(S,A):S},c)});return t(l,{children:h(b)})}export{i as CardRowContext,at as CardRowDrawn,lt as CardTemplateRows,st as RowEmptyGate,ct as useCardRow};
@@ -1 +1 @@
1
- import{jsx as s}from"react/jsx-runtime";import n from"./SectionEyebrow.js";import{DEFAULT_EYEBROW_BLOCK_LOOK as l}from"../../format/lib/sections/section-eyebrow-look.js";import{alignViewClasses as m}from"../../format/lib/content/block-align.js";const a={left:"",center:"justify-center",right:"justify-end"};function c({text:r,align:e="left",alignTablet:o,alignPhone:i,look:t=l,takesViewHide:f=!1}){return s(n,{text:r,look:t,takesViewHide:f,classNameAfter:t==="line"?[a[e],m("justify",e,o,i)].filter(Boolean).join(" "):""})}export{a as ALIGN_JUSTIFY,c as default};
1
+ import{jsx as f}from"react/jsx-runtime";import m from"./SectionEyebrow.js";import{DEFAULT_EYEBROW_BLOCK_LOOK as a}from"../../format/lib/sections/section-eyebrow-look.js";import{alignViewClasses as l}from"../../format/lib/content/block-align.js";import{useInBox as c}from"./InBoxContext.js";const p={left:"",center:"justify-center",right:"justify-end"};function u({text:o,align:e="left",alignTablet:r,alignPhone:i,look:t=a,takesViewHide:n=!1}){const s=c();return f(m,{text:o,look:t,takesViewHide:n,classNameAfter:t==="line"?[p[e],l("justify",e,r,i,{atSectionLine:!s})].filter(Boolean).join(" "):""})}export{p as ALIGN_JUSTIFY,u as default};
@@ -2,7 +2,7 @@ import type { SlotComponent } from "efficient-easel/blocks";
2
2
  import { type ReactNode } from "react";
3
3
  import { type Loop, type LoopDirection } from "../../format/lib/animation/index.js";
4
4
  import { type PadValues } from "../lib/content/section-padding.js";
5
- import type { PictureHoverDrawn } from "../../format/lib/animation/hover.js";
5
+ import { type PictureHoverDrawn } from "../../format/lib/animation/hover.js";
6
6
  type Direction = "row" | "column" | "tabs" | "accordion";
7
7
  type Justify = "start" | "center" | "between" | "end";
8
8
  type AlignItems = "start" | "center" | "end" | "stretch";
@@ -66,6 +66,9 @@ interface FlexProps {
66
66
  line?: unknown;
67
67
  upcoming?: unknown;
68
68
  link?: unknown;
69
+ rowLink?: string;
70
+ rowImage?: string;
71
+ highlight?: Record<string, string> | null;
69
72
  boxShape?: unknown;
70
73
  boxShapePhone?: unknown;
71
74
  boxShapeTablet?: unknown;
@@ -84,6 +87,7 @@ interface FlexProps {
84
87
  rowTitle?: SlotComponent;
85
88
  startsOpen?: unknown;
86
89
  rowStyle?: unknown;
90
+ sideSpace?: unknown;
87
91
  }
88
- export default function Flex({ direction: storedDirection, label, tabShape, gap, gapPhone, gapTablet, justify, align, wrap, share: storedShare, sharePhone, shareTablet, wrapPhone, orderPhone: storedOrderPhone, phoneRow, columns, columnsTablet, separator, stackBelow, blockSpacing, bgImage, bgImagePhone, pictureHover, darken, darkenStyle, darkenTablet, darkenPhone, darkenStyleTablet, darkenStylePhone, placement, padV2, border: storedBorder, borderTablet: storedBorderTablet, borderPhone: storedBorderPhone, pad, contained, fillHeight, shadow, shadowTablet, shadowPhone, justifyTablet, justifyPhone, alignTablet, alignPhone, wrapTablet, blockSpacingTablet, blockSpacingPhone, loop, scrollDirection, loopSeconds, loopDelay, editing, fillColor, fillColorTablet, fillColorPhone, swatch, line, upcoming, link, boxShape, boxShapePhone, boxShapeTablet, angle, jumpHighlight, anchor, sharedSides, sharedRows, boxId, slotCount, mirrorCards, content: Content, rowTitle: RowTitle, startsOpen, rowStyle, }: FlexProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
92
+ export default function Flex({ direction: storedDirection, label, tabShape, gap, gapPhone, gapTablet, justify, align, wrap, share: storedShare, sharePhone, shareTablet, wrapPhone, orderPhone: storedOrderPhone, phoneRow, columns, columnsTablet, separator, stackBelow, blockSpacing, bgImage: storedBgImage, bgImagePhone: storedBgImagePhone, rowImage: storedRowImage, pictureHover, darken, darkenStyle, darkenTablet, darkenPhone, darkenStyleTablet, darkenStylePhone, placement, padV2, border: storedBorder, borderTablet: storedBorderTablet, borderPhone: storedBorderPhone, pad, contained, fillHeight, shadow, shadowTablet, shadowPhone, justifyTablet, justifyPhone, alignTablet, alignPhone, wrapTablet, blockSpacingTablet, blockSpacingPhone, loop, scrollDirection, loopSeconds, loopDelay, editing, fillColor, fillColorTablet, fillColorPhone, swatch, line, upcoming, link, rowLink, highlight, boxShape, boxShapePhone, boxShapeTablet, angle, jumpHighlight, anchor, sharedSides: storedSharedSides, sharedRows: storedSharedRows, boxId, slotCount, mirrorCards, content: Content, rowTitle: RowTitle, startsOpen, rowStyle, sideSpace, }: FlexProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
89
93
  export {};
@@ -1 +1 @@
1
- import{Fragment as z,jsx as o,jsxs as ro}from"react/jsx-runtime";import{useContext as $n,useId as Rn}from"react";import _n from"./BoxTabs.js";import{AccordionRowStyleContext as ko,BoxTabPaneContext as No,useAccordionRowStyle as An,useBoxPaneKind as yn,useFirstCopyOpens as vn,useIsTabPane as On}from"./BoxTabPaneContext.js";import Ln,{ACCORDION_COUNTER_RESET as kn}from"./BoxAccordionRow.js";import{ACCORDION_MARK_SHEET as Nn}from"./AccordionMark.js";import{accordionRowStyleOf as Bn}from"../../format/lib/content/accordion-row-style.js";import{boxPhoneCell as En,boxPhoneOrder as Fn}from"../../format/lib/content/box-phone-place.js";import{CellFillContext as Ke,InBoxContext as je,useCellOfStretchedRow as Tn,useFillsCell as Dn}from"./InBoxContext.js";import In,{InsideSiteColumn as Je,useInsideSiteGutter as gn,useSectionRoot as Mn}from"./SiteGutterFrame.js";import{BoxSurfaceProvider as Hn}from"./BoxSurfaceContext.js";import Vn from"./PictureWash.js";import{BoxCellContext as ze,NoCellBound as Wn}from"./BoxCellContext.js";import{boxCellFractions as Gn}from"../lib/content/box-cell-bound.js";import{boundOf as Un}from"../../format/lib/content/cell-picture-sizes.js";import{useInSiteHeader as Xn}from"./PhoneMenuTools.js";import{useCardRow as Kn}from"./CardRowContext.js";import{cardLineBetween as Bo,framesItsCards as jn}from"../../format/lib/content/card-place.js";import{HandedMirrorContext as Jn,MirrorContext as zn,RowHandContext as Ye,boxPlace as Yn,useHandedMirrorAbove as qn,useHandedRows as Qn,useMirroredCopy as Zn,useUnderCardBox as ot}from"./MirrorContext.js";import{boxChildrenHand as et,isMirroredCopy as st,mirrorCardsActs as qe,mirrorCardsOf as nt,mirroredBoxClass as tt,MIRROR_ROW_CLASS as rt,ownsCard as lt}from"../../format/lib/content/mirror-cards.js";import{FRAME_BASE as Eo,FRAME_GUTTER as Fo}from"./BlockFrame.js";import{containerGapProps as Qe}from"../../format/lib/content/container-gap.js";import{boxLayoutClasses as it,boxAlignViewClasses as ct,boxBlockSpacingClass as at,boxBlockSpacingViewClasses as dt,boxJustifyViewClasses as ut,boxWrapTabletClass as mt,boxFitContentClass as ft,boxAccordionColumnsClass as Ze,boxRowColumnsClass as Ct,boxRowTabletColumnsClass as bt,boxRowTabletShareClass as ht,boxPhoneCellsShareLine as xt,boxPhoneRowClasses as Y,boxPhoneRowFits as pt,boxShareClasses as H,boxShareVars as wt,boxWrapClass as St,BOX_GAP_ONLY_CLASS as Pt}from"../../format/lib/content/box-layout.js";import{boxSeparatorClasses as $t,boxSeparatorSeamClass as Rt,boxSeparatorStyle as _t,isStripBox as At}from"../../format/lib/content/box-separator.js";import{DEFAULT_LOOP_DELAY as yt,DEFAULT_LOOP_DIRECTION as vt,DEFAULT_LOOP_SECONDS as Ot,isVerticalLoop as Lt}from"../../format/lib/animation/index.js";import{LoopTrack as kt}from"../lib/animation/LoopTrack.js";import{BOX_CARD_PAD as _,BOX_OWNS_SIDES_CLASS as Nt,boxDarkenStyle as Bt,boxPaintOf as Et,boxFillViews as Ft,boxPlacementClasses as Tt,boxSwatchFill as Dt,boxWashViews as It,CARD_SHADOW_CLASS as gt,isBackgroundBox as os}from"../../format/lib/content/box-background.js";import{boxShadowAttrs as Mt,boxShadowOnAnyView as Ht,boxShadowViewAttrs as Vt}from"../../format/lib/content/box-shadow.js";import{boxRunsEdgeToEdge as Wt,drawsSiteGutter as Gt}from"../../format/lib/content/site-gutter.js";import{boxShapeClass as Ut,boxShapeClasses as Xt}from"../../format/lib/content/box-shape.js";import{boxAngleStyle as Kt}from"../../format/lib/content/box-angle.js";import{BOX_JUMP_ATTR as jt,BOX_LINK_ATTR as es,BOX_LINK_CLASS as ss,BOX_LINKED_CLASS as Jt,boxJumpBlocksClass as zt,boxJumpCss as Yt,boxJumpSlug as qt,boxLinkOf as Qt}from"../../format/lib/content/box-link.js";import{SiteLink as Zt}from"../lib/site-runtime.js";import{sectionBorderStyle as ns}from"../../format/lib/content/borders.js";import{finiteNumber as A}from"../../format/lib/finite-number.js";import{padDefaultIn as y,sectionPadAttrs as or}from"../lib/content/section-padding.js";import{SECTION_FILL_CLASS as lo}from"../../format/lib/content/section-min-height.js";import{ON_MEDIA_INK_STYLE as er}from"../../format/lib/content/ink.js";import{sizedBackground as To}from"../../format/lib/sized-image.js";import{PHOTO_HOST_ATTR as sr,resolveImageTreatment as nr}from"../../format/lib/content/image-treatment.js";import{BoxRail as tr,BoxRailStop as rr,RAIL_STOPS_CLASS as lr,useTimelineRail as ir}from"./TimelineRail.js";import{SHARED_PLAIN_ATTR as cr,sharedColumnsClasses as ar,sharedColumnsCss as dr,sharedRowsClasses as ur,sharedRowsCss as mr}from"../lib/content/box-shared-columns.js";import fr from"./PhotoHoverSheet.js";import{stackGutterClass as Cr,stackLineCss as br,stackOuterClass as hr,stackRowClass as xr,storedStackLine as pr}from"../lib/content/box-stack-line.js";const Do={"--sf-site-gutter":"0px"},wr={overflowX:"clip",overflowY:"visible"},Sr={stretchedRow:!1,fillingColumn:!1,columnsRow:!1},Pr={desktop:!1,phone:!1},ts="bg-cover bg-center bg-[image:var(--sf-box-bg)] max-view-tablet:bg-[image:var(--sf-box-bg-p)]",Io=u=>u==null||u==="",go=u=>!Io(u)&&Number(u)===0;function $r({children:u}){return o(z,{children:u(Rn())})}function Rr({direction:u,label:rs,tabShape:ls,gap:Mo,gapPhone:is,gapTablet:io,justify:V,align:v,wrap:q,share:cs,sharePhone:W,shareTablet:E,wrapPhone:as,orderPhone:ds,phoneRow:x,columns:m,columnsTablet:O,separator:f,stackBelow:Ho,blockSpacing:Vo,bgImage:L,bgImagePhone:Wo,pictureHover:us,darken:Go,darkenStyle:Uo,darkenTablet:ms,darkenPhone:fs,darkenStyleTablet:Cs,darkenStylePhone:bs,placement:hs,padV2:Xo=!1,border:xs,borderTablet:ps,borderPhone:ws,pad:n={},contained:co=!0,fillHeight:k=!1,shadow:ao,shadowTablet:Ko,shadowPhone:jo,justifyTablet:Jo,justifyPhone:Ss,alignTablet:Ps,alignPhone:$s,wrapTablet:zo,blockSpacingTablet:Rs,blockSpacingPhone:_s,loop:b,scrollDirection:uo=vt,loopSeconds:As=Ot,loopDelay:ys=yt,editing:F=!1,fillColor:Yo,fillColorTablet:vs,fillColorPhone:Os,swatch:Ls,line:p,upcoming:ks,link:Ns,boxShape:qo,boxShapePhone:Bs,boxShapeTablet:Es,angle:Fs,jumpHighlight:Ts,anchor:Ds,sharedSides:i=Pr,sharedRows:Is=!1,boxId:T,slotCount:gs,mirrorCards:Qo,content:c,rowTitle:mo,startsOpen:Ms,rowStyle:Hs}){const t=Kn(),Zo=$n(ze),Vs=qn(),oe=ot()&&!(Vs&&t!==null),w=Qn(),S=lt({inCopy:t!==null,nestedCopy:t?.nested===!0,underBox:oe}),ee=Bo(xs,t,S),se=Bo(ps,t,S),ne=Bo(ws,t,S),te=t===null&&!oe&&w?.ids&&T?w.ids.indexOf(T):-1,Q=te>=0&&w&&T?Yn(w,T,te):-1,h=Q>=0?w?.hand??null:S&&w?.copies===!0?w.hand:null,e=h?.row?"row":u,d=h?.row?h.row.share:cs,Ws=h?.row?h.row.phoneReverse?[...c.blockIds??[]].reverse():void 0:ds,Z=Is&&!h?.row,D=F?"":Qt(Ns),P=k?"":Xt(qo,Bs,Es),Gs=!k&&Ut(qo)!=="",N=qt(Ts,Ds),re=Dt({swatch:Ls},t?.row),oo=re??Et(Yo),I=re?{className:"",style:{}}:Ft(Yo,vs,Os),le=oo||I.className?{...oo?{backgroundColor:oo}:{},...I.style}:void 0,ie=ir(),eo=p===!0&&e!=="tabs"&&e!=="accordion",r=os(L),ce=Kt(Fs),ae=r?void 0:le,Us=ce?{...ae,...ce}:ae,so=Xn(),Xs=Mn(),Ks=On(),de=yn(),js=An(),Js=vn(),l=e==="accordion",ue=Bn(Hs),G=l&&ue==="numbered",fo=Dn(),zs=Tn(),g=At(e,f),a=b==="scroll"&&e!=="tabs"&&!l,Ys=Zn(),no=S||Q>=0&&h!==null,me=h?h.mirror:Qo,qs=Q>=0?Q:t?.index,Co=S&&jn(t?.ownerType),fe=qe({direction:e,separator:f,loop:b,line:p,bgImage:L,columns:m,columnsTablet:O,share:d,wrap:q},no,i.desktop)&&st(me,qs),Qs=qe({direction:e,separator:f,loop:b,line:p,bgImage:L,columns:m,columnsTablet:O,share:d,wrap:q},no,i.desktop)&&nt(me)!==null,M=Ct({direction:e,separator:f,loop:b,line:p,columns:m}),$=bt({direction:e,separator:f,loop:b,line:p,columnsTablet:O}),U=ht({direction:e,separator:f,loop:b,line:p,columns:m,columnsTablet:O,share:d,shareTablet:E}),C=e==="row"&&!r&&!g&&!a&&!eo&&$===""&&U===""?pr(Ho):void 0,Zs=gn(),to=ar(i,c.blockCount??0,C),on=(to&&(!t||t.index===0)?dr(i,c.blockCount??0,C):"")+(Z&&(!t||t.index===0)?mr(Z,c.blockCount??0):""),Ce=ur(Z,c.blockCount??0),be=$!==""?Number(O)>=2:U===""||H(E)!=="",bo=$!==""||U!=="",en=bo&&!($!==""&&Number(O)<2),he=e==="row"&&!g&&!a&&p!==!0,ho=he&&!i.phone&&!i.desktop?En(Fn(Ws,c.blockIds??[]),{tabletKeepsRow:en,editing:F}):void 0,xe=ho!==void 0&&!F,sn=M!==""?Number(m)>=2:H(d)!=="",pe=!r&&!l&&!Qs&&!i.desktop&&!i.phone,xo=pe&&!a?ut(V,Jo,Ss):"",we=r||no?"":tt(Ys,e,a?void 0:V,v,xo?Jo:void 0),nn=pe&&e==="row"?ct(v,Ps,$s):"",tn=!a&&!l&&M===""&&$===""&&!i.desktop?mt(q,zo):"",Se=[l?"":H(d),e==="row"?ft(d):"",M,$,U,at(l?"gap":Vo),$t(e,f),l&&!G?"border-t border-line":"",xo,nn,tn,l?"":dt(Vo,Rs,_s),l?Ze(m,x,G):"",G?kn:""].filter(Boolean).join(" "),rn=Se?` ${Se}`:"",Pe=["flex",e==="row"?g||a?"flex-row":`flex-row ${Y(x,W,as,zo)}`:"flex-col",St(a||l?!1:q),r?Tt(hs??"center",e):it(a||l?void 0:V,l?void 0:v)+(we?` ${we}`:"")].join(" ")+rn,X=k||r||P||fo?` ${lo}`:"",po=Gs?` ${P}`:P?`${X} ${P}`:X,$e=zs&&e==="column"&&!r&&!a&&H(d)===""&&(typeof V=="string"&&V!=="start"||xo!==""),Re=X||($e?` ${lo}`:""),wo=D?` ${Jt}`:"",So=r||so||Xo?"":" py-6",ln=C===void 0?"":` ${xr(C)}`,_e=C===void 0?"":` ${Cr(C)}`,Po=C===void 0?"":` ${hr(C)}`,cn=`${Eo}${So} ${Fo}${po}${wo}${_e}${Po}`,an=so?`${po}${wo}${Po}`.trim():`w-full${So}${po}${wo}${Po}`,K=G&&Ze(m,x)===""?Qe("Flex",0,"block"):Qe("Flex",Mo,e==="row"?"inline":"block",is,g||a?void 0:io),Ae=wt(d,E,e==="row"?c.blockCount??0:0),ye=g?{...K.style,..._t(e,f)}:K.style,dn=Ae?{...ye,...Ae}:ye,$o=(s="")=>o(c,{className:`${Pe}${fe?` ${rt}`:""}${K.className}${Re}${ln}${s?` ${s}`:""}${eo?` ${lr}`:""}${N?` ${zt(N)}`:""}${to}${Ce}`,style:dn,minEmptyHeight:120,...ho?{cell:ho}:null}),ve=Lt(uo)?"":Rt(e,f),Oe=a?o(kt,{direction:uo,seconds:As,delay:ys,editing:F,copy:s=>$o(s&&ve?`${s} ${ve}`:s)}):G?ro(z,{children:[o("style",{children:Nn}),$o()]}):$o(),Ro=e==="tabs"?o(_n,{className:`${Pe}${K.className}${fo&&!k&&!r&&!P?"":X}`,style:K.style,shape:ls,children:Oe}):Oe,_o=l?o(No.Provider,{value:"accordion",children:o(ko.Provider,{value:ue,children:Ro})}):de?o(No.Provider,{value:!1,children:o(ko.Provider,{value:"plain",children:Ro})}):Ro,Le=e==="row"&&!r&&(v===void 0||v==="stretch"),un={stretchedRow:Le,fillingColumn:e==="column"&&(fo||$e),columnsRow:M!==""||$!==""||to!==""||Ce!==""||e==="row"&&(Array.isArray(d)||Array.isArray(E))||xe,...xe?{phoneCells:!0}:null,...Le&&he&&(c.blockCount??0)>=2&&sn?{picturesFillRow:!0}:null,...bo?{fillFrom:be?"tablet":"desktop"}:null,...xt(x,W)&&(!bo||be)?{phoneRowFills:!0}:null,...T?{id:T}:null},ke=t===null?et({direction:e,loop:b,bgImage:L,columns:m,mirrorCards:Qo},!1):null,Ne=ke?o(Ye.Provider,{value:{hand:ke,ids:c.blockIds??[],boxes:[]},children:_o}):w?o(Ye.Provider,{value:null,children:_o}):_o,Be=o(je.Provider,{value:un,children:o(Ke.Provider,{value:!1,children:no?o(zn.Provider,{value:fe,children:o(Jn.Provider,{value:!S,children:Ne})}):Ne})}),mn=mo?.blockCount??0,Ee=de==="accordion"&&!!mo&&(F||mn>0)?o(Ln,{startsOpen:Ms===!0||Js&&S&&t?.index===0,editing:F,numbered:js==="numbered",title:o(je.Provider,{value:Sr,children:o(Ke.Provider,{value:!1,children:o(No.Provider,{value:!1,children:o(ko.Provider,{value:"plain",children:o(mo,{className:`min-w-0 flex-1 ${Pt}`,minEmptyHeight:24})})})})}),children:Be}):Be,Ao=eo?o(tr,{row:e==="row",stops:c.blockCount??0,children:Ee}):Ee,fn=rs?.trim()||(Ks?"":void 0),Cn={values:n,frame:So?24:0},bn=s=>ie?o(rr,{on:ie,future:ks===!0,children:s}):s,hn=s=>D.startsWith("/")?o(Zt,{href:D,className:ss,"aria-labelledby":s,[es]:""}):o("a",{href:D,className:ss,"aria-labelledby":s,[es]:""}),Fe=(N?Yt(N):"")+on+(C===void 0||t&&t.index!==0?"":br(C)),Te=Fe?o("style",{dangerouslySetInnerHTML:{__html:Fe}}):null,j=Wt({loop:b,direction:e,scrollDirection:uo,bgImage:L}),xn=i.desktop&&to!==""&&!oo&&!I.className&&!ns(ee,ne,se)&&!Ht(ao,Ko,jo)&&!D&&!P&&!k&&!N&&!Gt(co&&!j,Zs)&&go(Mo)&&(Io(io)||go(io))&&Xo&&Object.values(n).every(s=>Io(s)||go(s)),pn=s=>({...xn?{[cr]:""}:null,...r?null:{...Mt(ao),...Vt(ao,Ko,jo)},...N?{[jt]:N}:null,...s?{id:s}:null}),De=M!==""?Number(m):0,wn=Y(x,W)===Y(void 0),Sn=(e==="column"||e==="row"&&!g&&!a&&(De===1&&wn||De===0&&c.blockCount===1))&&!r&&!eo&&!so,Ie=r&&Xs&&!so,ge=(s,R)=>bn(o(In,{contained:co&&!j,style:j?Do:void 0,framedClass:cn,fillClass:an,columnClass:`${Eo} ${Fo}${Re}${_e}`,tabLabel:fn,pad:r?void 0:Cn,border:ns(ee,ne,se),outerAttrs:pn(R),box:!0,edge:Sn,outerStyle:Us,outerClass:r?void 0:I.className||void 0,bleed:Ie,children:Te||R?ro(z,{children:[Te,R?hn(R):null,j?o(Je,{children:s}):s]}):j?o(Je,{children:s}):s})),yo=s=>D?o($r,{children:R=>ge(s,R)}):ge(s),Me=s=>Zo.bound?o(Wn,{children:s}):s;if(!r){const s=v===void 0||v==="stretch",R=(H(d)!==""||M!==""||$!=="")&&!pt(x,W)&&!(U!==""&&H(E)==="")&&(s||Y(x)!==Y(void 0));if(!(e==="row"?R:e==="column"&&s))return yo(Me(Ao));const Xe=Gn({direction:e,separator:f,loop:b,line:p,share:d,shareTablet:E,sharePhone:W,phoneRow:x,columns:m,columnsTablet:O,stackBelow:Ho,shared:i.desktop||i.phone||Z,count:gs}),Pn={hasWidth:!0,...Xe?{bound:Un(Xe,Zo.bound)}:null};return yo(o(ze.Provider,{value:Pn,children:Ao}))}const J=Bt(Go,Uo),vo=It({darken:Go,darkenStyle:Uo,darkenTablet:ms,darkenStyleTablet:Cs,darkenPhone:fs,darkenStylePhone:bs}),He=[Co?"rounded-[inherit]":"",vo.className].filter(Boolean).join(" "),Oo=os(Wo),Ve=Oo?{"--sf-box-bg":To(L??""),"--sf-box-bg-p":To(Wo??"")}:{backgroundImage:To(L??""),backgroundSize:"cover",backgroundPosition:"center"},We=nr(void 0,void 0,us),B=We.className?We:null,Lo=or({...n,top:A(n.top)??y(_.desktop,n.unit,"desktop"),bottom:A(n.bottom)??y(_.desktop,n.unit,"desktop"),topPhone:A(n.topPhone)??y(_.phone,n.unitPhone,"mobile"),bottomPhone:A(n.bottomPhone)??y(_.phone,n.unitPhone,"mobile"),left:A(n.left)??y(_.side,n.unit,"desktop"),right:A(n.right)??y(_.side,n.unit,"desktop"),leftPhone:A(n.leftPhone)??y(_.sidePhone,n.unitPhone,"mobile"),rightPhone:A(n.rightPhone)??y(_.sidePhone,n.unitPhone,"mobile")}),Ge=o("div",{className:`relative z-[1] ${Nt} ${Lo?.className??""}${k||P?` ${lo}`:""}`.trimEnd(),style:J?{...Lo?.style,...Do,...er}:{...Lo?.style,...Do},children:Me(Ao)}),Ue=Ie&&co?o("div",{className:`${Eo} ${Fo}${k||P?` ${lo}`:""}`,children:Ge}):Ge;return yo(o(z,{children:ro("div",{className:`relative isolate overflow-hidden ${gt}${X}${Oo&&!B?` ${ts}`:""}${I.className?` ${I.className}`:""}`,style:{...Co?wr:{},...le,...B?{}:Ve},...B?{[sr]:""}:{},children:[B&&ro(z,{children:[o(fr,{sheet:B.sheet}),o("div",{"aria-hidden":!0,className:`absolute inset-0${Co?" rounded-[inherit]":""}${Oo?` ${ts}`:""} ${B.className}`,style:{...Ve,...B.style??{}}})]}),o(Vn,{wash:J&&vo.className?{...J,...vo.style}:J,...He?{className:He}:{}}),J?o(Hn,{children:Ue}):Ue]})}))}export{Rr as default};
1
+ import{Fragment as q,jsx as e,jsxs as ae}from"react/jsx-runtime";import{useContext as Dt,useId as Ht}from"react";import Mt from"./BoxTabs.js";import{AccordionRowStyleContext as Ee,BoxTabPaneContext as Fe,useAccordionRowStyle as Vt,useBoxPaneKind as Gt,useFirstCopyOpens as Wt,useIsTabPane as jt}from"./BoxTabPaneContext.js";import Xt,{ACCORDION_COUNTER_RESET as Ut}from"./BoxAccordionRow.js";import{ACCORDION_MARK_SHEET as Kt}from"./AccordionMark.js";import{accordionRowStyleOf as Jt}from"../../format/lib/content/accordion-row-style.js";import{boxPhoneCell as zt,boxPhoneOrder as Yt}from"../../format/lib/content/box-phone-place.js";import{CellFillContext as es,InBoxContext as os,useCellOfStretchedRow as qt,useFillsCell as Qt}from"./InBoxContext.js";import Zt,{InsideSiteColumn as ss,useInsideSiteGutter as er,useSectionRoot as or}from"./SiteGutterFrame.js";import{BoxSurfaceProvider as sr}from"./BoxSurfaceContext.js";import tr from"./PictureWash.js";import{BoxCellContext as ts,NoCellBound as rr}from"./BoxCellContext.js";import{boxCellFractions as nr}from"../lib/content/box-cell-bound.js";import{boundOf as lr}from"../../format/lib/content/cell-picture-sizes.js";import{useInSiteHeader as ir}from"./PhoneMenuTools.js";import{useCardRow as cr}from"./CardRowContext.js";import{cardLineBetween as Te,framesItsCards as ar}from"../../format/lib/content/card-place.js";import{rowFieldText as dr}from"../../format/lib/content/card-template.js";import{HandedMirrorContext as ur,MirrorContext as mr,RowHandContext as rs,boxPlace as fr,useHandedMirrorAbove as Cr,useHandedRows as br,useMirroredCopy as hr,useUnderCardBox as Sr}from"./MirrorContext.js";import{boxChildrenHand as wr,isMirroredCopy as xr,mirrorCardsActs as ns,mirrorCardsOf as pr,mirroredBoxClass as Pr,MIRROR_ROW_CLASS as $r,ownsCard as Rr}from"../../format/lib/content/mirror-cards.js";import{FRAME_BASE as De,frameGutterOf as _r}from"./BlockFrame.js";import{BOX_SIDE_SPACE_SITE as yr,boxSideSpaceOf as Ar}from"../../format/lib/content/box-side-space.js";import{containerGapProps as ls}from"../../format/lib/content/container-gap.js";import{boxLayoutClasses as Or,boxAlignViewClasses as vr,boxBlockSpacingClass as Lr,boxBlockSpacingViewClasses as kr,boxJustifyViewClasses as Nr,boxWrapTabletClass as gr,boxFitContentClass as Br,boxAccordionColumnsClass as is,boxRowColumnsClass as Ir,boxRowTabletColumnsClass as Er,boxRowTabletShareClass as Fr,boxPhoneCellsShareLine as Tr,boxPhoneRowClasses as Q,boxPhoneRowFits as Dr,boxShareClasses as G,boxShareVars as Hr,boxWrapClass as Mr,BOX_GAP_ONLY_CLASS as Vr}from"../../format/lib/content/box-layout.js";import{boxSeparatorClasses as Gr,boxSeparatorSeamClass as Wr,boxSeparatorStyle as jr,isStripBox as Xr}from"../../format/lib/content/box-separator.js";import{DEFAULT_LOOP_DELAY as Ur,DEFAULT_LOOP_DIRECTION as Kr,DEFAULT_LOOP_SECONDS as Jr,isVerticalLoop as zr}from"../../format/lib/animation/index.js";import{LoopTrack as Yr}from"../lib/animation/LoopTrack.js";import{BOX_CARD_PAD as y,BOX_OWNS_SIDES_CLASS as qr,boxDarkenStyle as Qr,boxPaintOf as Zr,boxFillViews as en,boxPlacementClasses as on,boxCardProps as sn,boxIsCard as cs,boxRowPicture as tn,boxSwatchFill as rn,boxWashViews as nn,CARD_SHADOW_CLASS as ln,isBackgroundBox as as}from"../../format/lib/content/box-background.js";import{BOX_ROW_IMAGE_PROP as S}from"../../format/lib/content/box-card-rule.js";import{boxShadowAttrs as cn,boxShadowOnAnyView as an,boxShadowViewAttrs as dn}from"../../format/lib/content/box-shadow.js";import{boxRunsEdgeToEdge as un,drawsSiteGutter as mn}from"../../format/lib/content/site-gutter.js";import{boxShapeClass as fn,boxShapeClasses as Cn}from"../../format/lib/content/box-shape.js";import{boxAngleStyle as bn}from"../../format/lib/content/box-angle.js";import{BOX_JUMP_ATTR as hn,BOX_LINK_ATTR as ds,BOX_LINK_CLASS as us,BOX_LINKED_CLASS as Sn,boxJumpBlocksClass as wn,boxJumpCss as xn,boxJumpSlug as pn,boxLinkOf as Pn}from"../../format/lib/content/box-link.js";import{SiteLink as $n}from"../lib/site-runtime.js";import{sectionBorderStyle as ms}from"../../format/lib/content/borders.js";import{finiteNumber as A}from"../../format/lib/finite-number.js";import{padDefaultIn as O,sectionPadAttrs as Rn}from"../lib/content/section-padding.js";import{SECTION_FILL_CLASS as de}from"../../format/lib/content/section-min-height.js";import{ON_MEDIA_INK_STYLE as _n}from"../../format/lib/content/ink.js";import{sizedBackground as He}from"../../format/lib/sized-image.js";import{PHOTO_HOST_ATTR as yn,resolveImageTreatment as An}from"../../format/lib/content/image-treatment.js";import{BOX_HIGHLIGHT_CLASS as On}from"../../format/lib/animation/hover.js";import{BoxRail as vn,BoxRailStop as Ln,RAIL_STOPS_CLASS as kn,useTimelineRail as Nn}from"./TimelineRail.js";import{SHARED_PLAIN_ATTR as gn,sharedColumnsClasses as Bn,sharedColumnsCss as In,sharedRowsClasses as En,sharedRowsCss as Fn}from"../lib/content/box-shared-columns.js";import Tn from"./PhotoHoverSheet.js";import{stackGutterClass as Dn,stackLineCss as Hn,stackOuterClass as Mn,stackRowClass as Vn,storedStackLine as Gn}from"../lib/content/box-stack-line.js";const Me={"--sf-site-gutter":"0px"},Wn={overflowX:"clip",overflowY:"visible"},jn={stretchedRow:!1,fillingColumn:!1,columnsRow:!1},fs={desktop:!1,phone:!1},Cs="bg-cover bg-center bg-[image:var(--sf-box-bg)] max-view-wide:bg-[image:var(--sf-box-bg-p)]",Ve=u=>u==null||u==="",Ge=u=>!Ve(u)&&Number(u)===0;function Xn({children:u}){return e(q,{children:u(Ht())})}function Un({direction:u,label:bs,tabShape:hs,gap:We,gapPhone:Ss,gapTablet:ue,justify:W,align:v,wrap:Z,share:ws,sharePhone:j,shareTablet:I,wrapPhone:xs,orderPhone:ps,phoneRow:w,columns:m,columnsTablet:E,separator:f,stackBelow:je,blockSpacing:Xe,bgImage:Ps,bgImagePhone:$s,rowImage:Rs,pictureHover:_s,darken:Ue,darkenStyle:Ke,darkenTablet:ys,darkenPhone:As,darkenStyleTablet:Os,darkenStylePhone:vs,placement:Ls,padV2:Je=!1,border:ks,borderTablet:Ns,borderPhone:gs,pad:r={},contained:me=!0,fillHeight:L=!1,shadow:fe,shadowTablet:ze,shadowPhone:Ye,justifyTablet:qe,justifyPhone:Bs,alignTablet:Is,alignPhone:Es,wrapTablet:Qe,blockSpacingTablet:Fs,blockSpacingPhone:Ts,loop:b,scrollDirection:Ce=Kr,loopSeconds:Ds=Jr,loopDelay:Hs=Ur,editing:F=!1,fillColor:Ze,fillColorTablet:Ms,fillColorPhone:Vs,swatch:Gs,line:x,upcoming:Ws,link:js,rowLink:eo,highlight:Xs,boxShape:oo,boxShapePhone:Us,boxShapeTablet:Ks,angle:Js,jumpHighlight:zs,anchor:Ys,sharedSides:qs=fs,sharedRows:Qs=!1,boxId:T,slotCount:Zs,mirrorCards:so,content:i,rowTitle:be,startsOpen:et,rowStyle:ot,sideSpace:st}){const t=cr(),k=sn({[S]:Rs},t!==null)[S],to=cs({[S]:k}),c=to?fs:qs,tt=to?!1:Qs,ro=tn({[S]:k},t?.row),p=ro??Ps,no=ro===null?$s:void 0,lo=Dt(ts),rt=Cr(),io=Sr()&&!(rt&&t!==null),P=br(),$=Rr({inCopy:t!==null,nestedCopy:t?.nested===!0,underBox:io}),co=Te(ks,t,$),ao=Te(Ns,t,$),uo=Te(gs,t,$),mo=t===null&&!io&&P?.ids&&T?P.ids.indexOf(T):-1,ee=mo>=0&&P&&T?fr(P,T,mo):-1,h=ee>=0?P?.hand??null:$&&P?.copies===!0?P.hand:null,o=h?.row?"row":u,d=h?.row?h.row.share:ws,nt=h?.row?h.row.phoneReverse?[...i.blockIds??[]].reverse():void 0:ps,oe=tt&&!h?.row,D=F?"":Pn(eo&&t?dr(t.row,eo):js),R=L?"":Cn(oo,Us,Ks),lt=!L&&fn(oo)!=="",N=pn(zs,Ys),fo=rn({swatch:Gs},t?.row),se=fo??Zr(Ze),H=fo?{className:"",style:{}}:en(Ze,Ms,Vs),Co=se||H.className?{...se?{backgroundColor:se}:{},...H.style}:void 0,bo=Nn(),te=x===!0&&o!=="tabs"&&o!=="accordion",n=cs({bgImage:p,[S]:k}),ho=bn(Js),So=n?void 0:Co,he=n?null:Xs??null,it=ho||he?{...So,...ho,...he}:So,re=ir(),ct=or(),at=jt(),wo=Gt(),dt=Vt(),ut=Wt(),l=o==="accordion",xo=Jt(ot),X=l&&xo==="numbered",Se=Qt(),mt=qt(),M=Xr(o,f),a=b==="scroll"&&o!=="tabs"&&!l,ft=hr(),ne=$||ee>=0&&h!==null,po=h?h.mirror:so,Ct=ee>=0?ee:t?.index,we=$&&ar(t?.ownerType),Po=ns({direction:o,separator:f,loop:b,line:x,bgImage:p,[S]:k,columns:m,columnsTablet:E,share:d,wrap:Z},ne,c.desktop)&&xr(po,Ct),bt=ns({direction:o,separator:f,loop:b,line:x,bgImage:p,[S]:k,columns:m,columnsTablet:E,share:d,wrap:Z},ne,c.desktop)&&pr(po)!==null,V=Ir({direction:o,separator:f,loop:b,line:x,columns:m}),g=Er({direction:o,separator:f,loop:b,line:x,columnsTablet:E}),U=Fr({direction:o,separator:f,loop:b,line:x,columns:m,columnsTablet:E,share:d,shareTablet:I}),le=Ar(st)===yr,xe=_r(le),C=o==="row"&&!n&&!M&&!a&&!te&&g===""&&U===""?Gn(je):void 0,ht=er(),ie=Bn(c,i.blockCount??0,C),St=(ie&&(!t||t.index===0)?In(c,i.blockCount??0,C):"")+(oe&&(!t||t.index===0)?Fn(oe,i.blockCount??0):""),$o=En(oe,i.blockCount??0),Ro=g!==""?Number(E)>=2:U===""||G(I)!=="",_o=g!==""||U!=="",yo=o==="row"&&!M&&!a&&x!==!0,pe=yo&&!c.phone&&!c.desktop?zt(Yt(nt,i.blockIds??[]),{editing:F}):void 0,Ao=pe!==void 0&&!F,wt=V!==""?Number(m)>=2:G(d)!=="",Oo=!n&&!l&&!bt&&!c.desktop&&!c.phone,ce=Oo&&!a?Nr(W,qe,Bs):"",Pe=n||ne?"":Pr(ft,o,a?void 0:W,v,ce?qe:void 0),xt=/view-wide:max-view-desktop:justify-/.test(Pe)?ce.split(" ").filter(s=>!s.startsWith("view-wide:max-view-desktop:justify-")).join(" "):ce,pt=Oo&&o==="row"?vr(v,Is,Es):"",Pt=!a&&!l&&V===""&&g===""&&!c.desktop?gr(Z,Qe):"",vo=[l?"":G(d),o==="row"?Br(d):"",V,g,U,Lr(l?"gap":Xe),Gr(o,f),l&&!X?"border-t border-line":"",xt,pt,Pt,l?"":kr(Xe,Fs,Ts),l?is(m,w,X):"",X?Ut:""].filter(Boolean).join(" "),$t=vo?` ${vo}`:"",Lo=["flex",o==="row"?M||a?"flex-row":`flex-row ${Q(w,j,xs,Qe)}`:"flex-col",Mr(a||l?!1:Z),n?on(Ls??"center",o):Or(a||l?void 0:W,l?void 0:v)+(Pe?` ${Pe}`:"")].join(" ")+$t,K=L||n||R||Se?` ${de}`:"",$e=lt?` ${R}`:R?`${K} ${R}`:K,ko=mt&&o==="column"&&!n&&!a&&G(d)===""&&(typeof W=="string"&&W!=="start"||ce!==""),No=K||(ko?` ${de}`:""),Re=D?` ${Sn}`:"",_e=n||re||Je?"":" py-6",Rt=C===void 0?"":` ${Vn(C)}`,go=C===void 0||le?"":` ${Dn(C)}`,ye=C===void 0?"":` ${Mn(C)}`,_t=`${De}${_e} ${xe}${$e}${Re}${go}${ye}`,yt=re?`${$e}${Re}${ye}`.trim():`w-full${_e}${$e}${Re}${ye}`,J=X&&is(m,w)===""?ls("Flex",0,"block"):ls("Flex",We,o==="row"?"inline":"block",Ss,M||a?void 0:ue),Bo=Hr(d,I,o==="row"?i.blockCount??0:0),Io=M?{...J.style,...jr(o,f)}:J.style,At=Bo?{...Io,...Bo}:Io,Ae=(s="")=>e(i,{className:`${Lo}${Po?` ${$r}`:""}${J.className}${No}${Rt}${s?` ${s}`:""}${te?` ${kn}`:""}${N?` ${wn(N)}`:""}${ie}${$o}`,style:At,minEmptyHeight:120,...pe?{cell:pe}:null}),Eo=zr(Ce)?"":Wr(o,f),Fo=a?e(Yr,{direction:Ce,seconds:Ds,delay:Hs,editing:F,copy:s=>Ae(s&&Eo?`${s} ${Eo}`:s)}):X?ae(q,{children:[e("style",{children:Kt}),Ae()]}):Ae(),Oe=o==="tabs"?e(Mt,{className:`${Lo}${J.className}${Se&&!L&&!n&&!R?"":K}`,style:J.style,shape:hs,children:Fo}):Fo,ve=l?e(Fe.Provider,{value:"accordion",children:e(Ee.Provider,{value:xo,children:Oe})}):wo?e(Fe.Provider,{value:!1,children:e(Ee.Provider,{value:"plain",children:Oe})}):Oe,To=o==="row"&&!n&&(v===void 0||v==="stretch"),Ot={stretchedRow:To,fillingColumn:o==="column"&&(Se||ko),columnsRow:V!==""||g!==""||ie!==""||$o!==""||o==="row"&&(Array.isArray(d)||Array.isArray(I))||Ao,...Ao?{phoneCells:!0}:null,...To&&yo&&(i.blockCount??0)>=2&&wt?{picturesFillRow:!0}:null,..._o&&!Ro?{fillFrom:"desktop"}:null,...Tr(w,j)&&(!_o||Ro)?{phoneRowFills:!0}:null,...T?{id:T}:null},Do=t===null?wr({direction:o,loop:b,bgImage:p,[S]:k,columns:m,mirrorCards:so},!1):null,Ho=Do?e(rs.Provider,{value:{hand:Do,ids:i.blockIds??[],boxes:[]},children:ve}):P?e(rs.Provider,{value:null,children:ve}):ve,Mo=e(os.Provider,{value:Ot,children:e(es.Provider,{value:!1,children:ne?e(mr.Provider,{value:Po,children:e(ur.Provider,{value:!$,children:Ho})}):Ho})}),vt=be?.blockCount??0,Vo=wo==="accordion"&&!!be&&(F||vt>0)?e(Xt,{startsOpen:et===!0||ut&&$&&t?.index===0,editing:F,numbered:dt==="numbered",title:e(os.Provider,{value:jn,children:e(es.Provider,{value:!1,children:e(Fe.Provider,{value:!1,children:e(Ee.Provider,{value:"plain",children:e(be,{className:`min-w-0 flex-1 ${Vr}`,minEmptyHeight:24})})})})}),children:Mo}):Mo,Le=te?e(vn,{row:o==="row",stops:i.blockCount??0,children:Vo}):Vo,Lt=bs?.trim()||(at?"":void 0),kt={values:r,frame:_e?24:0},Nt=s=>bo?e(Ln,{on:bo,future:Ws===!0,children:s}):s,gt=s=>D.startsWith("/")?e($n,{href:D,className:us,"aria-labelledby":s,[ds]:""}):e("a",{href:D,className:us,"aria-labelledby":s,[ds]:""}),Go=(N?xn(N):"")+St+(C===void 0||t&&t.index!==0?"":Hn(C,{gutter:!le})),Wo=Go?e("style",{dangerouslySetInnerHTML:{__html:Go}}):null,z=un({loop:b,direction:o,scrollDirection:Ce,bgImage:p,[S]:k}),Bt=c.desktop&&ie!==""&&!se&&!H.className&&!ms(co,uo,ao)&&!an(fe,ze,Ye)&&!D&&!R&&!L&&!N&&!mn(me&&!z,ht)&&Ge(We)&&(Ve(ue)||Ge(ue))&&Je&&Object.values(r).every(s=>Ve(s)||Ge(s)),It=s=>({...Bt?{[gn]:""}:null,...n?null:{...cn(fe),...dn(fe,ze,Ye)},...N?{[hn]:N}:null,...s?{id:s}:null}),jo=V!==""?Number(m):0,Et=Q(w,j)===Q(void 0),Ft=(o==="column"||o==="row"&&!M&&!a&&(jo===1&&Et||jo===0&&i.blockCount===1))&&!n&&!te&&!re,Xo=n&&ct&&!re,Uo=(s,_)=>Nt(e(Zt,{contained:me&&!z,style:z?Me:void 0,framedClass:_t,fillClass:yt,columnClass:`${De} ${xe}${No}${go}`,tabLabel:Lt,pad:n?void 0:kt,border:ms(co,uo,ao),outerAttrs:It(_),box:!0,edge:Ft,outerStyle:it,outerClass:n?void 0:[H.className,he?On:""].filter(Boolean).join(" ")||void 0,bleed:Xo,siteSide:le,children:Wo||_?ae(q,{children:[Wo,_?gt(_):null,z?e(ss,{children:s}):s]}):z?e(ss,{children:s}):s})),ke=s=>D?e(Xn,{children:_=>Uo(s,_)}):Uo(s),Ko=s=>lo.bound?e(rr,{children:s}):s;if(!n){const s=v===void 0||v==="stretch",_=(G(d)!==""||V!==""||g!=="")&&!Dr(w,j)&&!(U!==""&&G(I)==="")&&(s||Q(w)!==Q(void 0));if(!(o==="row"?_:o==="column"&&s))return ke(Ko(Le));const Zo=nr({direction:o,separator:f,loop:b,line:x,share:d,shareTablet:I,sharePhone:j,phoneRow:w,columns:m,columnsTablet:E,stackBelow:je,shared:c.desktop||c.phone||oe,count:Zs}),Tt={hasWidth:!0,...Zo?{bound:lr(Zo,lo.bound)}:null};return ke(e(ts.Provider,{value:Tt,children:Le}))}const Ne=as(p),Y=Ne?Qr(Ue,Ke):null,ge=Ne?nn({darken:Ue,darkenStyle:Ke,darkenTablet:ys,darkenStyleTablet:Os,darkenPhone:As,darkenStylePhone:vs}):{className:"",style:{}},Jo=[we?"rounded-[inherit]":"",ge.className].filter(Boolean).join(" "),Be=as(no),zo=Ne?Be?{"--sf-box-bg":He(p??""),"--sf-box-bg-p":He(no??"")}:{backgroundImage:He(p??""),backgroundSize:"cover",backgroundPosition:"center"}:{},Yo=An(void 0,void 0,_s),B=Yo.className?Yo:null,Ie=Rn({...r,top:A(r.top)??O(y.desktop,r.unit,"desktop"),bottom:A(r.bottom)??O(y.desktop,r.unit,"desktop"),topPhone:A(r.topPhone)??O(y.phone,r.unitPhone,"mobile"),bottomPhone:A(r.bottomPhone)??O(y.phone,r.unitPhone,"mobile"),left:A(r.left)??O(y.side,r.unit,"desktop"),right:A(r.right)??O(y.side,r.unit,"desktop"),leftPhone:A(r.leftPhone)??O(y.sidePhone,r.unitPhone,"mobile"),rightPhone:A(r.rightPhone)??O(y.sidePhone,r.unitPhone,"mobile")}),qo=e("div",{className:`relative z-[1] ${qr} ${Ie?.className??""}${L||R?` ${de}`:""}`.trimEnd(),style:Y?{...Ie?.style,...Me,..._n}:{...Ie?.style,...Me},children:Ko(Le)}),Qo=Xo&&me?e("div",{className:`${De} ${xe}${L||R?` ${de}`:""}`,children:qo}):qo;return ke(e(q,{children:ae("div",{className:`relative isolate overflow-hidden ${ln}${K}${Be&&!B?` ${Cs}`:""}${H.className?` ${H.className}`:""}`,style:{...we?Wn:{},...Co,...B?{}:zo},...B?{[yn]:""}:{},children:[B&&ae(q,{children:[e(Tn,{sheet:B.sheet}),e("div",{"aria-hidden":!0,className:`absolute inset-0${we?" rounded-[inherit]":""}${Be?` ${Cs}`:""} ${B.className}`,style:{...zo,...B.style??{}}})]}),e(tr,{wash:Y&&ge.className?{...Y,...ge.style}:Y,...Jo?{className:Jo}:{}}),Y?e(sr,{children:Qo}):Qo]})}))}export{Un as default};
@@ -1 +1 @@
1
- "use client";import{Fragment as u,jsx as r,jsxs as c}from"react/jsx-runtime";import b from"./HeroPoster.js";import{SectionAnimation as h}from"./SectionAnimation.js";import{resolveMedia as P}from"../lib/media.js";import{HERO_MEDIA_PARTS as w,HERO_PART_ATTR as x}from"../lib/document/hero-media-parts.js";import{entranceDrawn as y}from"../lib/animation/entrance.js";import{readPartMotion as v}from"../lib/animation/part-motion.js";import{pictureHoverOf as T}from"../../format/lib/animation/hover.js";import{PHOTO_HOST_ATTR as H,SITE_PHOTO_CSS as j,resolveImageTreatment as _}from"../../format/lib/content/image-treatment.js";import{heroPictureCount as k,normaliseMediaLayout as N,resolvePhoneLayout as O}from"../../format/lib/hero-media-layout.js";import{normaliseVideoPlayback as S,normaliseVideoSource as A,parseYouTubeId as R}from"../../format/lib/hero-video.js";import{hidableText as C}from"efficient-easel/draw";import{viewHideClass as E}from"../../format/lib/content/view-hide-class.js";const V={one:"max-view-tablet:grid-cols-1 max-view-tablet:grid-rows-1",side:"max-view-tablet:grid-cols-2 max-view-tablet:grid-rows-1",stacked:"max-view-tablet:grid-cols-1 max-view-tablet:grid-rows-2"},I={one:"view-tablet:grid-cols-1 view-tablet:grid-rows-1",side:"view-tablet:grid-cols-2 view-tablet:grid-rows-1",stacked:"view-tablet:grid-cols-1 view-tablet:grid-rows-2"};function Q(e){const o=e.isVideo&&A(e.videoSource)==="youtube",i=e.isVideo&&S(e.videoPlayback)==="click",a=o?R(C(e.youtubeUrl)):null,t=N(e.mediaLayout);return{fromYouTube:o,onClick:i,youTubeId:a,backgroundFile:e.isVideo&&!o&&!i,desktopLayout:t,phoneLayout:O(e.mediaLayoutPhone,t),twoPictures:!e.isVideo&&k(e)>1}}function d(e,o){return y(v({_partMotion:e},o))}function l(e,o){return _(void 0,void 0,T(v({_partMotion:e},o)))}function W(e){return w.some(i=>l(e,i).className)?{hostAttrs:{[H]:""},sheet:j}:{}}function f({treatment:e,children:o}){return e.className?r("div",{className:`absolute inset-0 ${e.className}`,...e.style?{style:e.style}:{},children:o}):r(u,{children:o})}function p({color:e,opacity:o,passClicks:i=!0}){return o>0?r("div",{className:i?"pointer-events-none absolute inset-0 z-[2]":"absolute inset-0 z-[2]",style:{background:e,opacity:Math.min(Math.max(o,0),100)/100}}):null}function g({part:e,editing:o,marked:i=!0,entrance:a,className:t,children:n}){const s=o&&i?{[x]:e}:void 0;return a?r(h,{desktop:a.desktop,phone:a.phone,editing:o,boxClass:t,boxAttrs:s,children:n}):r("div",{className:t,...s,children:n})}function X({partMotion:e,editing:o,children:i}){const a=d(e,"media"),t=l(e,"media"),n=t.className?r("div",{className:`absolute inset-0 z-[1] ${t.className}`,...t.style?{style:t.style}:{},children:i}):i;return a?r(h,{desktop:a.desktop,phone:a.phone,editing:o,boxClass:"absolute inset-0 z-[1]",children:n}):r(u,{children:n})}function Z({desktopLayout:e,phoneLayout:o,editing:i,marked:a=!0,partMotion:t,first:n,second:s,laterSlide:m=!1}){return c("div",{className:`absolute inset-0 z-[1] grid ${V[o]} ${I[e]}`,"data-hero-layout":e,"data-hero-layout-phone":o,children:[r(g,{part:"image",editing:i,marked:a,entrance:d(t,"image"),className:"relative overflow-hidden",children:c(f,{treatment:l(t,"image"),children:[r(b,{posterSrc:P(n.src),showVideo:!1,laterSlide:m,objectPosition:n.objectPosition,objectPositionPhone:n.objectPositionPhone,objectPositionTablet:n.objectPositionTablet}),r(p,{color:n.tintColor,opacity:n.tintOpacity})]})}),r(g,{part:"image2",editing:i,marked:a,entrance:d(t,"image2"),className:`relative overflow-hidden ${E({desktop:e==="one",tablet:e==="one",mobile:o==="one"})}`.trimEnd(),children:c(f,{treatment:l(t,"image2"),children:[r(b,{posterSrc:P(s.src),showVideo:!1,laterSlide:m,objectPosition:s.objectPosition,objectPositionPhone:s.objectPositionPhone,objectPositionTablet:s.objectPositionTablet}),r(p,{color:s.tintColor,opacity:s.tintOpacity})]})})]})}export{X as HeroMediaLayer,g as HeroPickArea,f as HeroPictureHover,p as HeroTint,Z as HeroTwoPictures,Q as heroMediaReading,d as heroPartEntrance,l as heroPartHover,W as heroPicturesHover};
1
+ "use client";import{Fragment as u,jsx as r,jsxs as c}from"react/jsx-runtime";import b from"./HeroPoster.js";import{SectionAnimation as h}from"./SectionAnimation.js";import{resolveMedia as P}from"../lib/media.js";import{HERO_MEDIA_PARTS as w,HERO_PART_ATTR as x}from"../lib/document/hero-media-parts.js";import{entranceDrawn as y}from"../lib/animation/entrance.js";import{readPartMotion as v}from"../lib/animation/part-motion.js";import{pictureHoverOf as T}from"../../format/lib/animation/hover.js";import{PHOTO_HOST_ATTR as H,SITE_PHOTO_CSS as j,resolveImageTreatment as _}from"../../format/lib/content/image-treatment.js";import{heroPictureCount as k,normaliseMediaLayout as S,resolvePhoneLayout as N}from"../../format/lib/hero-media-layout.js";import{normaliseVideoPlayback as O,normaliseVideoSource as A,parseYouTubeId as R}from"../../format/lib/hero-video.js";import{hidableText as C}from"efficient-easel/draw";import{viewHideClass as E}from"../../format/lib/content/view-hide-class.js";const V={one:"max-view-tablet:grid-cols-1 max-view-tablet:grid-rows-1",side:"max-view-tablet:grid-cols-2 max-view-tablet:grid-rows-1",stacked:"max-view-tablet:grid-cols-1 max-view-tablet:grid-rows-2"},I={one:"view-tablet:grid-cols-1 view-tablet:grid-rows-1",side:"view-tablet:grid-cols-2 view-tablet:grid-rows-1",stacked:"view-tablet:grid-cols-1 view-tablet:grid-rows-2"};function Q(e){const o=e.isVideo&&A(e.videoSource)==="youtube",i=e.isVideo&&O(e.videoPlayback)==="click",a=o?R(C(e.youtubeUrl)):null,t=S(e.mediaLayout);return{fromYouTube:o,onClick:i,youTubeId:a,backgroundFile:e.isVideo&&!o&&!i,desktopLayout:t,phoneLayout:N(e.mediaLayoutPhone,t),twoPictures:!e.isVideo&&k(e)>1}}function d(e,o){return y(v({_partMotion:e},o))}function l(e,o){return _(void 0,void 0,T(v({_partMotion:e},o)))}function W(e){return w.some(i=>l(e,i).className)?{hostAttrs:{[H]:""},sheet:j}:{}}function f({treatment:e,children:o}){return e.className?r("div",{className:`absolute inset-0 ${e.className}`,...e.style?{style:e.style}:{},children:o}):r(u,{children:o})}function p({color:e,opacity:o,passClicks:i=!0}){return o>0?r("div",{className:i?"pointer-events-none absolute inset-0 z-[2]":"absolute inset-0 z-[2]",style:{background:e,opacity:Math.min(Math.max(o,0),100)/100}}):null}function g({part:e,editing:o,marked:i=!0,entrance:a,className:t,children:n}){const s=o&&i?{[x]:e}:void 0;return a?r(h,{desktop:a.desktop,phone:a.phone,editing:o,boxClass:t,boxAttrs:s,children:n}):r("div",{className:t,...s,children:n})}function X({partMotion:e,editing:o,children:i}){const a=d(e,"media"),t=l(e,"media"),n=t.className?r("div",{className:`absolute inset-0 z-[1] ${t.className}`,...t.style?{style:t.style}:{},children:i}):i;return a?r(h,{desktop:a.desktop,phone:a.phone,editing:o,boxClass:"absolute inset-0 z-[1]",children:n}):r(u,{children:n})}function Z({desktopLayout:e,phoneLayout:o,editing:i,marked:a=!0,partMotion:t,first:n,second:s,laterSlide:m=!1}){return c("div",{className:`absolute inset-0 z-[1] grid ${V[o]} ${I[e]}`,"data-hero-layout":e,"data-hero-layout-phone":o,children:[r(g,{part:"image",editing:i,marked:a,entrance:d(t,"image"),className:"relative overflow-hidden",children:c(f,{treatment:l(t,"image"),children:[r(b,{posterSrc:P(n.src),showVideo:!1,laterSlide:m,objectPosition:n.objectPosition,objectPositionPhone:n.objectPositionPhone,objectPositionTablet:n.objectPositionTablet}),r(p,{color:n.tintColor,opacity:n.tintOpacity})]})}),r(g,{part:"image2",editing:i,marked:a,entrance:d(t,"image2"),className:`relative overflow-hidden ${E({desktop:e==="one",tablet:e==="one",mobile:o==="one"},{atSectionLine:!0})}`.trimEnd(),children:c(f,{treatment:l(t,"image2"),children:[r(b,{posterSrc:P(s.src),showVideo:!1,laterSlide:m,objectPosition:s.objectPosition,objectPositionPhone:s.objectPositionPhone,objectPositionTablet:s.objectPositionTablet}),r(p,{color:s.tintColor,opacity:s.tintOpacity})]})})]})}export{X as HeroMediaLayer,g as HeroPickArea,f as HeroPictureHover,p as HeroTint,Z as HeroTwoPictures,Q as heroMediaReading,d as heroPartEntrance,l as heroPartHover,W as heroPicturesHover};
@@ -26,6 +26,9 @@ export declare function CellWrap({ className, style, attrs, children, }: {
26
26
  attrs?: Record<string, string>;
27
27
  children: ReactNode;
28
28
  }): ReactNode;
29
+ export declare function CardCopyCell({ children }: {
30
+ children: ReactNode;
31
+ }): import("react").JSX.Element;
29
32
  export declare function SlotsStartAfresh({ children }: {
30
33
  children: ReactNode;
31
34
  }): import("react").JSX.Element;
@@ -1 +1 @@
1
- "use client";import{jsx as r}from"react/jsx-runtime";import{createContext as d,useContext as t}from"react";import{SECTION_FILL_CLASS as a}from"../../format/lib/content/section-min-height.js";import{useTakeViewHide as p,withViewHide as C}from"./ViewHideRoot.js";const f={stretchedRow:!1,fillingColumn:!1},l=d(null),B=()=>t(l)!==null,F=()=>t(l),L=()=>t(l)?.id??null,c=d(!1);function m(){const o=t(l)?.stretchedRow===!0,e=t(c);return o&&!e}const h=()=>t(c);function v(){const o=t(l),e=m(),n=h();return{fill:n?` ${a}`:"",inner:s=>{const i=e||n?r(c.Provider,{value:!0,children:s}):s;return o?.columnsRow?r(l.Provider,{value:{...o,columnsRow:!1},children:i}):i}}}function P({className:o,style:e,attrs:n,children:s}){const{fill:i,inner:x}=v(),u=p();return u.scope(r("div",{className:C(`${o}${i}`,u.className),...e?{style:e}:{},...n,...u.attrs,children:x(s)}))}function A({children:o}){const e=t(l),n=e===null?null:e.id===void 0?f:{...f,id:e.id};return r(l.Provider,{value:n,children:r(c.Provider,{value:!1,children:o})})}export{c as CellFillContext,P as CellWrap,l as InBoxContext,A as SlotsStartAfresh,F as useBoxCell,L as useBoxId,v as useCellLayer,m as useCellOfStretchedRow,h as useFillsCell,B as useInBox};
1
+ "use client";import{jsx as l}from"react/jsx-runtime";import{createContext as a,useContext as t}from"react";import{SECTION_FILL_CLASS as C}from"../../format/lib/content/section-min-height.js";import{useTakeViewHide as p,withViewHide as v}from"./ViewHideRoot.js";const x={stretchedRow:!1,fillingColumn:!1},r=a(null),y=()=>t(r)!==null,B=()=>t(r),F=()=>t(r)?.id??null,c=a(!1);function h(){const e=t(r)?.stretchedRow===!0,o=t(c);return e&&!o}const m=()=>t(c);function w(){const e=t(r),o=h(),n=m();return{fill:n?` ${C}`:"",inner:s=>{const i=o||n?l(c.Provider,{value:!0,children:s}):s;return e?.columnsRow?l(r.Provider,{value:{...e,columnsRow:!1},children:i}):i}}}function L({className:e,style:o,attrs:n,children:s}){const{fill:i,inner:u}=w(),d=p();return d.scope(l("div",{className:v(`${e}${i}`,d.className),...o?{style:o}:{},...n,...d.attrs,children:u(s)}))}const f=a(!1);function A({children:e}){return l(f.Provider,{value:!0,children:l(c.Provider,{value:!0,children:e})})}function H({children:e}){const o=t(r),n=t(f),s=t(c),i=n&&s,u=o===null?null:o.id===void 0?x:{...x,id:o.id};return l(r.Provider,{value:u,children:l(f.Provider,{value:!1,children:l(c.Provider,{value:i,children:e})})})}export{A as CardCopyCell,c as CellFillContext,L as CellWrap,r as InBoxContext,H as SlotsStartAfresh,B as useBoxCell,F as useBoxId,w as useCellLayer,h as useCellOfStretchedRow,m as useFillsCell,y as useInBox};
@@ -1 +1 @@
1
- "use client";import{jsx as e}from"react/jsx-runtime";import{HideTaker as g,NO_HIDE as C,useTakeViewHide as D,withViewHide as k}from"./ViewHideRoot.js";import{useContext as B}from"react";import{SiteLink as T}from"../lib/site-runtime.js";import W,{FOOTER_LOGO_PX as j,WORDMARK_FIT_FLOOR_PX as y}from"./Logo.js";import{media as F}from"../lib/media.js";import{BoxSurfaceContext as R}from"./BoxSurfaceContext.js";import{useBoxCellHasWidth as P}from"./BoxCellContext.js";import{useInSiteHeader as A}from"./PhoneMenuTools.js";import{useSiteLogo as M}from"./SiteLogoContext.js";import{useLogoWall as V}from"./LogoWallContext.js";import{LogoWallMark as z}from"./Logos.js";import{useCardRow as E}from"./CardRowContext.js";import{alignViewClasses as S,BLOCK_ALIGN_JUSTIFY as G}from"../../format/lib/content/block-align.js";function K(s){const o=V(),t=E();if(!o)return e(X,{...s});const m=(s.src??"").trim();return e(g,{className:"text-center",children:e(z,{src:m||void 0,alt:s.alt,look:o.look,logoHeight:o.logoHeight,grayscale:o.grayscale,kind:t?.row.kind})})}function X({src:s,alt:o,href:t,heightPx:m=j,reverse:H=!0,align:i,alignTablet:u,alignPhone:w,color:I=null}){const a=M(),p=(s??"").trim(),l=p?{src:F(p),reversedSrc:null,inkIsDark:null,wordmark:o?.trim()||null}:{src:a.src,reversedSrc:a.reversedSrc,inkIsDark:a.inkIsDark,wordmark:a.wordmark},v=B(R),x=A(),O=P(),r=!x&&O,n=D(),L=!!(i||r||S("justify",i,u,w)),c=L?C:n,d=t||r?C:c,f=e(W,{variant:"footer",sizePx:m,src:l.src,reverse:H,color:I,reversedSrc:l.reversedSrc,inkIsDark:l.inkIsDark,wordmark:l.wordmark,siteName:a.siteName,fitToContainer:x,fitWordmarkToContainer:r,fitFloorPx:r?y:void 0,...v?.dark?{onLightSurface:!1}:{},...d.className?{hideClass:d.className,hideAttrs:d.attrs}:{}}),N=r?"inline-flex max-w-full overflow-x-clip":"inline-flex",h=t?e(T,{href:t,className:k(N,c.className),...c.attrs,children:f}):r?e("span",{className:k(N,c.className),...c.attrs,children:f}):f;if(!L)return n.scope(h);const _=["flex min-w-0",i?G[i]:"",S("justify",i,u,w),r?"[container-type:inline-size]":""].filter(Boolean).join(" ");return n.scope(e("div",{className:k(_,n.className),...n.attrs,children:h}))}export{K as default};
1
+ "use client";import{jsx as e}from"react/jsx-runtime";import{HideTaker as D,NO_HIDE as C,useTakeViewHide as B,withViewHide as k}from"./ViewHideRoot.js";import{useContext as T}from"react";import{SiteLink as W}from"../lib/site-runtime.js";import j,{FOOTER_LOGO_PX as y,WORDMARK_FIT_FLOOR_PX as F}from"./Logo.js";import{media as R}from"../lib/media.js";import{BoxSurfaceContext as P}from"./BoxSurfaceContext.js";import{useBoxCellHasWidth as A}from"./BoxCellContext.js";import{useInSiteHeader as M}from"./PhoneMenuTools.js";import{useSiteLogo as V}from"./SiteLogoContext.js";import{useLogoWall as z}from"./LogoWallContext.js";import{LogoWallMark as E}from"./Logos.js";import{useCardRow as G}from"./CardRowContext.js";import{alignViewClasses as I,BLOCK_ALIGN_JUSTIFY as K}from"../../format/lib/content/block-align.js";import{useInBox as X}from"./InBoxContext.js";function J(s){const o=z(),t=G();if(!o)return e(U,{...s});const m=(s.src??"").trim();return e(D,{className:"text-center",children:e(E,{src:m||void 0,alt:s.alt,look:o.look,logoHeight:o.logoHeight,grayscale:o.grayscale,kind:t?.row.kind})})}function U({src:s,alt:o,href:t,heightPx:m=y,reverse:H=!0,align:i,alignTablet:u,alignPhone:w,color:g=null}){const n=V(),p=(s??"").trim(),l=p?{src:R(p),reversedSrc:null,inkIsDark:null,wordmark:o?.trim()||null}:{src:n.src,reversedSrc:n.reversedSrc,inkIsDark:n.inkIsDark,wordmark:n.wordmark},v=T(P),x=M(),O=A(),r=!x&&O,a=B(),L={atSectionLine:!X()},N=!!(i||r||I("justify",i,u,w,L)),c=N?C:a,d=t||r?C:c,f=e(j,{variant:"footer",sizePx:m,src:l.src,reverse:H,color:g,reversedSrc:l.reversedSrc,inkIsDark:l.inkIsDark,wordmark:l.wordmark,siteName:n.siteName,fitToContainer:x,fitWordmarkToContainer:r,fitFloorPx:r?F:void 0,...v?.dark?{onLightSurface:!1}:{},...d.className?{hideClass:d.className,hideAttrs:d.attrs}:{}}),S=r?"inline-flex max-w-full overflow-x-clip":"inline-flex",h=t?e(W,{href:t,className:k(S,c.className),...c.attrs,children:f}):r?e("span",{className:k(S,c.className),...c.attrs,children:f}):f;if(!N)return a.scope(h);const _=["flex min-w-0",i?K[i]:"",I("justify",i,u,w,L),r?"[container-type:inline-size]":""].filter(Boolean).join(" ");return a.scope(e("div",{className:k(_,a.className),...a.attrs,children:h}))}export{J as default};
@@ -1 +1 @@
1
- import{jsx as n,jsxs as d,Fragment as K}from"react/jsx-runtime";import{PagePicture as h}from"../lib/first-screen.js";import{PaymentMark as y,paymentMarkItems as P}from"efficient-shell/icons/payment";import D from"./BlockFrame.js";import{renderChrome as Y,renderGold as A,renderHeadline as Z}from"./goldPhrases.js";import{LogoWallProvider as M}from"./LogoWallContext.js";import{EMPTY_ELSE_CLASS as U,EMPTY_HIDES_CLASS as J,EmptyHidesStyle as V}from"../lib/content/empty-hides.js";import{media as S}from"../lib/media.js";import{sizedImage as v}from"../../format/lib/sized-image.js";import{stripMarkup as _}from"../../format/lib/markup.js";import{DEFAULT_LOGO_LOOK as X}from"../../format/lib/sections/logo-look.js";import{paymentRowMark as W}from"../lib/sections/payment-rows.js";import{alignViewClasses as q,BLOCK_ALIGN_JUSTIFY as H,blockAlignOf as Q}from"../../format/lib/content/block-align.js";import{FOOTER_MARK_SIZES as C}from"../../format/lib/document/box-footer.js";import{say as ee}from"../../format/lib/editor-words.js";const R={label:"text-[length:var(--size-label,13px)]"},f="sf-logo-wall",te="sf-logo-items",ne="flex flex-wrap items-center",re=(t,e,s)=>{const r=Q(t)??"center";return[ne,H[r],q("justify",r,e,s)].filter(Boolean).join(" ")},$="plain",g={plain:{x:3.5,y:2},cards:{x:.75,y:.75},marks:{x:.75,y:.5}},w=t=>({columnGap:`${g[t].x}rem`,rowGap:`${g[t].y}rem`}),E=(t,e)=>`calc((100% - ${(t-1)*g[e].x}rem) / ${t})`;function se({items:t,contained:e,heading:s,columns:r,grayscale:c,logoHeight:o,bandPadding:a,logos:i,look:l=X,omitHead:m=!1,cards:p,align:u,alignTablet:j,alignPhone:k,labelledBy:G}){const x=re(u,j,k),N=l==="marks",B=r!=null?{flex:`0 0 ${E(r,$)}`}:void 0,O=!m;return d(D,{contained:e,fillWidth:N&&m?"w-auto max-w-full":void 0,className:O&&a==null?"py-10":"",style:!O||a==null?void 0:{paddingTop:`${a}px`,paddingBottom:`${a}px`},children:[!m&&s!=null&&s!==""?n("h2",{className:`mb-8 text-center font-mono ${R.label} uppercase tracking-[0.2em] text-fg-dim`,children:Z(s,!1)}):null,d(le,{listed:N,labelledBy:G,children:[p!==void 0?d(M,{value:{look:l,logoHeight:o,grayscale:c},children:[r!=null?n("style",{children:`.${f}-c${r}>*{flex:0 0 ${E(r,l)}}`}):null,n("div",{className:[f,r!=null?`${f}-c${r}`:"",x].filter(Boolean).join(" "),style:w(l),children:p})]}):i?d(M,{value:{look:l,logoHeight:o,grayscale:c},children:[n(V,{}),r!=null?n("style",{children:`.${f}-c${r}>*{flex:0 0 ${E(r,l)}}`}):null,n(i,{className:[f,J,r!=null?`${f}-c${r}`:"",x].filter(Boolean).join(" "),style:w(l),minEmptyHeight:80})]}):null,p!==void 0?null:n("div",{className:`${te} ${U} ${x}`,style:w($),children:(t??[]).map((b,F)=>n("div",{className:"text-center",style:B,children:n(ce,{src:b.src,alt:b.alt,look:$,logoHeight:o,grayscale:c})},F))})]})]})}function le({listed:t,labelledBy:e,children:s}){return t?n("div",{className:"contents",role:"list",...e?{"aria-labelledby":e}:{"aria-label":ee("Ways to pay")},children:s}):n(K,{children:s})}const L="font-mono text-[12px] uppercase tracking-[0.18em]";function z(t){const e=P({name:_(t)});return!e.length||e.length===1&&e[0].kind==="words"&&!e[0].glyph?[]:e}function I(t){const e=z(t);return e.length?n("span",{className:"flex items-center gap-3",children:e.map((s,r)=>n(y,{item:s,size:20,className:L},r))}):null}const ae=C.sm.mark,ie=Object.values(C),oe=t=>ie.reduce((e,s)=>Math.abs(s.mark-t)<Math.abs(e.mark-t)?s:e).words;function ce({src:t,alt:e,look:s,logoHeight:r,grayscale:c,kind:o,mark:a}){if(s==="marks"){const i=r??ae,l=!t&&o!==void 0?W({label:e,kind:o}):null,m=l?[l]:!t&&e?z(e):[];return n("span",{role:"listitem",className:"flex items-center gap-3",style:{fontSize:`${oe(i)}px`},children:a||(m.length?m.map((p,u)=>n(y,{item:p,size:i},u)):t?n(h,{...T(S(t)),alt:_(e||""),className:"w-auto",style:{height:`${i}px`}}):e&&n("span",{children:A(e)}))})}if(s==="cards"){const i=!t&&o!==void 0?W({label:e,kind:o}):null;return n("div",{className:"sf-card flex h-10 items-center border border-line bg-surface px-4",children:a||(i?n(y,{item:i,size:20,className:L}):!t&&e&&I(e)?I(e):t?n(h,{...T(S(t)),alt:_(e||""),className:c===!1?"max-h-5 w-auto opacity-90":"max-h-5 w-auto opacity-90 grayscale"}):e&&n("span",{className:L,children:A(e)}))})}return t?n(h,{...me(S(t)),alt:e,className:["mx-auto w-auto opacity-60 transition-opacity hover:opacity-100",r==null?"h-7":"",c===!1?"":"grayscale"].filter(Boolean).join(" "),style:r==null?void 0:{height:`${r}px`}}):n("span",{className:`font-mono ${R.label} uppercase tracking-[0.2em] text-fg-dim`,children:Y(e||"Logo")})}function T(t){const e=v(t,{fallbackWidth:320,maxWidth:640});return e.srcSet?{src:e.src,srcSet:e.srcSet,sizes:"120px"}:{src:t}}function me(t){const e=v(t,{fallbackWidth:640,maxWidth:960});return e.srcSet?{src:e.src,srcSet:e.srcSet,sizes:"240px"}:{src:t}}export{L as CARD_WORDS_CLASS,ce as LogoWallMark,se as default};
1
+ import{jsx as n,jsxs as d,Fragment as K}from"react/jsx-runtime";import{PagePicture as h}from"../lib/first-screen.js";import{PaymentMark as y,paymentMarkItems as P}from"efficient-shell/icons/payment";import D from"./BlockFrame.js";import{renderChrome as Y,renderGold as A,renderHeadline as Z}from"./goldPhrases.js";import{LogoWallProvider as M}from"./LogoWallContext.js";import{EMPTY_ELSE_CLASS as U,EMPTY_HIDES_CLASS as J,EmptyHidesStyle as V}from"../lib/content/empty-hides.js";import{media as S}from"../lib/media.js";import{sizedImage as v}from"../../format/lib/sized-image.js";import{stripMarkup as _}from"../../format/lib/markup.js";import{DEFAULT_LOGO_LOOK as X}from"../../format/lib/sections/logo-look.js";import{paymentRowMark as W}from"../lib/sections/payment-rows.js";import{alignViewClasses as q,BLOCK_ALIGN_JUSTIFY as H,blockAlignOf as Q}from"../../format/lib/content/block-align.js";import{FOOTER_MARK_SIZES as C}from"../../format/lib/document/box-footer.js";import{say as ee}from"../../format/lib/editor-words.js";const R={label:"text-[length:var(--size-label,13px)]"},f="sf-logo-wall",te="sf-logo-items",ne="flex flex-wrap items-center",re=(t,e,s)=>{const r=Q(t)??"center";return[ne,H[r],q("justify",r,e,s,{atSectionLine:!0})].filter(Boolean).join(" ")},$="plain",g={plain:{x:3.5,y:2},cards:{x:.75,y:.75},marks:{x:.75,y:.5}},L=t=>({columnGap:`${g[t].x}rem`,rowGap:`${g[t].y}rem`}),w=(t,e)=>`calc((100% - ${(t-1)*g[e].x}rem) / ${t})`;function se({items:t,contained:e,heading:s,columns:r,grayscale:c,logoHeight:o,bandPadding:a,logos:i,look:l=X,omitHead:m=!1,cards:p,align:u,alignTablet:j,alignPhone:k,labelledBy:G}){const x=re(u,j,k),N=l==="marks",B=r!=null?{flex:`0 0 ${w(r,$)}`}:void 0,O=!m;return d(D,{contained:e,fillWidth:N&&m?"w-auto max-w-full":void 0,className:O&&a==null?"py-10":"",style:!O||a==null?void 0:{paddingTop:`${a}px`,paddingBottom:`${a}px`},children:[!m&&s!=null&&s!==""?n("h2",{className:`mb-8 text-center font-mono ${R.label} uppercase tracking-[0.2em] text-fg-dim`,children:Z(s,!1)}):null,d(le,{listed:N,labelledBy:G,children:[p!==void 0?d(M,{value:{look:l,logoHeight:o,grayscale:c},children:[r!=null?n("style",{children:`.${f}-c${r}>*{flex:0 0 ${w(r,l)}}`}):null,n("div",{className:[f,r!=null?`${f}-c${r}`:"",x].filter(Boolean).join(" "),style:L(l),children:p})]}):i?d(M,{value:{look:l,logoHeight:o,grayscale:c},children:[n(V,{}),r!=null?n("style",{children:`.${f}-c${r}>*{flex:0 0 ${w(r,l)}}`}):null,n(i,{className:[f,J,r!=null?`${f}-c${r}`:"",x].filter(Boolean).join(" "),style:L(l),minEmptyHeight:80})]}):null,p!==void 0?null:n("div",{className:`${te} ${U} ${x}`,style:L($),children:(t??[]).map((b,F)=>n("div",{className:"text-center",style:B,children:n(ce,{src:b.src,alt:b.alt,look:$,logoHeight:o,grayscale:c})},F))})]})]})}function le({listed:t,labelledBy:e,children:s}){return t?n("div",{className:"contents",role:"list",...e?{"aria-labelledby":e}:{"aria-label":ee("Ways to pay")},children:s}):n(K,{children:s})}const E="font-mono text-[12px] uppercase tracking-[0.18em]";function z(t){const e=P({name:_(t)});return!e.length||e.length===1&&e[0].kind==="words"&&!e[0].glyph?[]:e}function I(t){const e=z(t);return e.length?n("span",{className:"flex items-center gap-3",children:e.map((s,r)=>n(y,{item:s,size:20,className:E},r))}):null}const ae=C.sm.mark,ie=Object.values(C),oe=t=>ie.reduce((e,s)=>Math.abs(s.mark-t)<Math.abs(e.mark-t)?s:e).words;function ce({src:t,alt:e,look:s,logoHeight:r,grayscale:c,kind:o,mark:a}){if(s==="marks"){const i=r??ae,l=!t&&o!==void 0?W({label:e,kind:o}):null,m=l?[l]:!t&&e?z(e):[];return n("span",{role:"listitem",className:"flex items-center gap-3",style:{fontSize:`${oe(i)}px`},children:a||(m.length?m.map((p,u)=>n(y,{item:p,size:i},u)):t?n(h,{...T(S(t)),alt:_(e||""),className:"w-auto",style:{height:`${i}px`}}):e&&n("span",{children:A(e)}))})}if(s==="cards"){const i=!t&&o!==void 0?W({label:e,kind:o}):null;return n("div",{className:"sf-card flex h-10 items-center border border-line bg-surface px-4",children:a||(i?n(y,{item:i,size:20,className:E}):!t&&e&&I(e)?I(e):t?n(h,{...T(S(t)),alt:_(e||""),className:c===!1?"max-h-5 w-auto opacity-90":"max-h-5 w-auto opacity-90 grayscale"}):e&&n("span",{className:E,children:A(e)}))})}return t?n(h,{...me(S(t)),alt:e,className:["mx-auto w-auto opacity-60 transition-opacity hover:opacity-100",r==null?"h-7":"",c===!1?"":"grayscale"].filter(Boolean).join(" "),style:r==null?void 0:{height:`${r}px`}}):n("span",{className:`font-mono ${R.label} uppercase tracking-[0.2em] text-fg-dim`,children:Y(e||"Logo")})}function T(t){const e=v(t,{fallbackWidth:320,maxWidth:640});return e.srcSet?{src:e.src,srcSet:e.srcSet,sizes:"120px"}:{src:t}}function me(t){const e=v(t,{fallbackWidth:640,maxWidth:960});return e.srcSet?{src:e.src,srcSet:e.srcSet,sizes:"240px"}:{src:t}}export{E as CARD_WORDS_CLASS,ce as LogoWallMark,se as default};
@@ -2,11 +2,12 @@ import { type ReactNode } from "react";
2
2
  import { type PartStyles, type PublishedPartRule } from "../lib/document/part-styles.js";
3
3
  import { type PartMotion } from "../lib/animation/part-motion.js";
4
4
  import type { PartNeedle } from "../lib/document/text-parts.js";
5
- export declare function PublishedPartStyles({ needles, styles, motions, type, children, }: {
5
+ export declare function PublishedPartStyles({ needles, styles, motions, type, atEdge, children, }: {
6
6
  needles: PartNeedle[];
7
7
  styles: PartStyles;
8
8
  motions?: Readonly<Record<string, PartMotion>>;
9
9
  type?: string;
10
+ atEdge?: boolean;
10
11
  children: ReactNode;
11
12
  }): import("react").JSX.Element;
12
13
  export declare function usePartEntrance(rule: PublishedPartRule | null): import("react").RefObject<HTMLSpanElement | null>;
@@ -1 +1 @@
1
- "use client";import{Fragment as x,jsx as d,jsxs as C}from"react/jsx-runtime";import{createContext as h,useContext as f,useEffect as b,useId as v,useMemo as O,useRef as w}from"react";import{armEntrance as A}from"efficient-shell/format";import{blockDrawsTextStyle as F,partRuleForKind as S,partRuleForText as M,partStyleCss as k,publishedPartStyles as j}from"../lib/document/part-styles.js";import{usePhoneWidth as K}from"./SectionAnimation.js";import{styleKeyForPart as L}from"../../format/lib/sections/section-text-kinds.js";import{NO_MOTIONS as N,PART_LIFT_ATTR as g,drawPartEntrance as D,ensurePartLiftSheet as I,firstOnPage as $,partBoxOf as H,partMotionDrawn as B,partMoves as J}from"../lib/animation/part-motion.js";const p=h(null),E=h(null),R=h(null);function Z({needles:t,styles:n,motions:e=N,type:r,children:i}){const c=v(),l=JSON.stringify([c,t,n,e,r]),s=O(()=>{const u=Object.keys(e).filter(o=>J(e[o]));return j(t,n,c,o=>L(r,o),o=>F(r,o),o=>u.includes(o)?B(e[o]):null,u)},[l]);if(!s)return d(x,{children:i});const a=k(s);return C(x,{children:[a&&d("style",{href:`${W}${c}-${Y(a)}`,precedence:_,dangerouslySetInnerHTML:{__html:a.replace(/</g,"\\3c ")}}),d(p.Provider,{value:s,children:i})]})}const P=new WeakMap;function T(t,n){const e=$(n.filter(r=>r.arm));for(const r of n)r===e||!r.undo||(r.undo(),r.undo=void 0);e?.arm&&!e.undo&&(e.undo=e.arm()),n.some(r=>r.lift)?(I(t.ownerDocument),t.setAttribute(g,"")):t.removeAttribute(g)}function ee(t){const n=w(null),e=t?.motion?.entrance??null,r=t?.motion?.hover==="lift",i=K(n,e!==null),c=JSON.stringify(e);return b(()=>{const l=n.current,s=H(l?.parentElement??null);if(!e&&!r||!l||!s)return;const a=e?()=>{const m=D(s,i?e.phone:e.desktop),y=A(s);return()=>{y?.(),m()}}:null,u=P.get(s)??[];P.set(s,u);const o={element:l,arm:a,lift:r};return u.push(o),T(s,u),()=>{const m=u.indexOf(o);m<0||(u.splice(m,1),o.undo?.(),o.undo=void 0,T(s,u),u.length||P.delete(s))}},[c,r,i]),n}const _="sf-part-styles",W=`${_}-`;function Y(t){let n=2166136261;for(let e=0;e<t.length;e+=1)n^=t.charCodeAt(e),n=Math.imul(n,16777619);return(n>>>0).toString(36)}function te(t){const n=f(p),e=f(E),r=M(n,t);return r&&r.stamp!==e?r:null}function ne(t){return S(f(p),t)}function re({stamp:t,children:n}){return d(E.Provider,{value:t,children:n})}function oe({children:t}){const n=f(p);return d(R.Provider,{value:n,children:t})}function se(t){return S(f(R),t)}export{re as ClaimedStamp,_ as PART_STYLES_PRECEDENCE,Z as PublishedPartStyles,oe as SharedPartKinds,ee as usePartEntrance,ne as usePublishedPartKindRule,te as usePublishedPartRule,se as usePublishedSharedKindRule};
1
+ "use client";import{Fragment as S,jsx as a,jsxs as C}from"react/jsx-runtime";import{createContext as x,useContext as f,useEffect as b,useId as v,useMemo as O,useRef as w}from"react";import{armEntrance as A}from"efficient-shell/format";import{blockDrawsTextStyle as F,partRuleForKind as g,partRuleForText as M,partStyleCss as k,publishedPartStyles as j}from"../lib/document/part-styles.js";import{usePhoneWidth as I}from"./SectionAnimation.js";import{useInBox as K}from"./InBoxContext.js";import{styleKeyForPart as L}from"../../format/lib/sections/section-text-kinds.js";import{NO_MOTIONS as N,PART_LIFT_ATTR as E,drawPartEntrance as B,ensurePartLiftSheet as D,firstOnPage as $,partBoxOf as H,partMotionDrawn as J,partMoves as W}from"../lib/animation/part-motion.js";const p=x(null),R=x(null),T=x(null);function te({needles:t,styles:n,motions:e=N,type:r,atEdge:d=!1,children:m}){const c=v(),s=K()||d,h=JSON.stringify([c,t,n,e,r]),o=O(()=>{const l=Object.keys(e).filter(u=>W(e[u]));return j(t,n,c,u=>L(r,u),u=>F(r,u),u=>l.includes(u)?J(e[u]):null,l)},[h]);if(!o)return a(S,{children:m});const i=k(o,{inBox:s});return C(S,{children:[i&&a("style",{href:`${Y}${c}-${q(i)}`,precedence:y,dangerouslySetInnerHTML:{__html:i.replace(/</g,"\\3c ")}}),a(p.Provider,{value:o,children:m})]})}const P=new WeakMap;function _(t,n){const e=$(n.filter(r=>r.arm));for(const r of n)r===e||!r.undo||(r.undo(),r.undo=void 0);e?.arm&&!e.undo&&(e.undo=e.arm()),n.some(r=>r.lift)?(D(t.ownerDocument),t.setAttribute(E,"")):t.removeAttribute(E)}function ne(t){const n=w(null),e=t?.motion?.entrance??null,r=t?.motion?.hover==="lift",d=I(n,e!==null),m=JSON.stringify(e);return b(()=>{const c=n.current,s=H(c?.parentElement??null);if(!e&&!r||!c||!s)return;const h=e?()=>{const l=B(s,d?e.phone:e.desktop),u=A(s);return()=>{u?.(),l()}}:null,o=P.get(s)??[];P.set(s,o);const i={element:c,arm:h,lift:r};return o.push(i),_(s,o),()=>{const l=o.indexOf(i);l<0||(o.splice(l,1),i.undo?.(),i.undo=void 0,_(s,o),o.length||P.delete(s))}},[m,r,d]),n}const y="sf-part-styles",Y=`${y}-`;function q(t){let n=2166136261;for(let e=0;e<t.length;e+=1)n^=t.charCodeAt(e),n=Math.imul(n,16777619);return(n>>>0).toString(36)}function re(t){const n=f(p),e=f(R),r=M(n,t);return r&&r.stamp!==e?r:null}function oe(t){return g(f(p),t)}function se({stamp:t,children:n}){return a(R.Provider,{value:t,children:n})}function ue({children:t}){const n=f(p);return a(T.Provider,{value:n,children:t})}function ie(t){return g(f(T),t)}export{se as ClaimedStamp,y as PART_STYLES_PRECEDENCE,te as PublishedPartStyles,ue as SharedPartKinds,ne as usePartEntrance,oe as usePublishedPartKindRule,re as usePublishedPartRule,ie as usePublishedSharedKindRule};
@@ -2,7 +2,7 @@ import { type CSSProperties, type ReactNode } from "react";
2
2
  import { type EntranceValue } from "efficient-shell/format";
3
3
  import { ENTRANCE_WRAPPER_CLASS } from "../lib/animation/entrance.js";
4
4
  export { ENTRANCE_WRAPPER_CLASS };
5
- export declare function SectionAnimation({ desktop, phone, editing, boxClass, boxAttrs, boxStyle, takesViewHide, children, }: {
5
+ export declare function SectionAnimation({ desktop, phone, editing, boxClass, boxAttrs, boxStyle, takesViewHide, atEdge, children, }: {
6
6
  desktop: EntranceValue;
7
7
  phone: EntranceValue;
8
8
  editing: boolean;
@@ -10,6 +10,7 @@ export declare function SectionAnimation({ desktop, phone, editing, boxClass, bo
10
10
  boxAttrs?: Readonly<Record<string, string>>;
11
11
  boxStyle?: CSSProperties;
12
12
  takesViewHide?: boolean;
13
+ atEdge?: boolean;
13
14
  children: ReactNode;
14
15
  }): ReactNode;
15
16
  export type SeenEntrance = {
@@ -23,6 +24,7 @@ export declare const entranceReplay: {
23
24
  seen: SeenEntrance;
24
25
  };
25
26
  };
27
+ export declare function phoneMediaOf(atEdge: boolean): string;
26
28
  export declare function usePhoneWidth(ref: {
27
29
  current: HTMLElement | null;
28
- }, enabled?: boolean): boolean;
30
+ }, enabled?: boolean, atEdge?: boolean): boolean;
@@ -1 +1 @@
1
- "use client";import{jsx as P}from"react/jsx-runtime";import{NO_HIDE as v,useTakeViewHide as R,withViewHide as _}from"./ViewHideRoot.js";import{useEffect as h,useRef as w,useState as k}from"react";import{armEntrance as H,entranceAttrs as J,playEntrance as L}from"efficient-shell/format";import{PHONE_MEDIA as V}from"../lib/content/view-values.js";import{useCellLayer as $}from"./InBoxContext.js";import{ENTRANCE_WRAPPER_CLASS as E}from"../lib/animation/entrance.js";function q({desktop:e,phone:t,editing:s,boxClass:o,boxAttrs:n,boxStyle:r,takesViewHide:i=!1,children:N}){const c=w(null),m=$(),O=R(),a=i?O:v,u=j(c),S=u?t:e,{attrs:g,style:p}=J(S),d=w(l.seed(e,t)),x=JSON.stringify(e),A=JSON.stringify(t);return h(()=>{const f=c.current;if(f){if(s){const y=l.next(d.current,e,t,u);d.current=y.seen,y.play&&L(f);return}return H(f)}},[x,A,u,s]),a.scope(P("div",{ref:c,className:_(`${E}${m.fill}${o?` ${o}`:""}`,a.className),...n,...a.attrs,...g,...Object.keys(p).length||r?{style:{...r,...p}}:{},children:m.inner(N)}))}const l={seed(e,t){return{desktop:JSON.stringify(e),phone:JSON.stringify(t)}},next(e,t,s,o){const n=l.seed(t,s);return{play:o?n.phone!==e.phone:n.desktop!==e.desktop,seen:n}}};function j(e,t=!0){const[s,o]=k(!1);return h(()=>{if(!t)return;const n=e.current?.ownerDocument?.defaultView??(typeof window>"u"?null:window);if(!n?.matchMedia)return;const r=n.matchMedia(V),i=()=>o(r.matches);return i(),r.addEventListener("change",i),()=>r.removeEventListener("change",i)},[e,t]),s}export{E as ENTRANCE_WRAPPER_CLASS,q as SectionAnimation,l as entranceReplay,j as usePhoneWidth};
1
+ "use client";import{jsx as g}from"react/jsx-runtime";import{NO_HIDE as v,useTakeViewHide as D,withViewHide as H}from"./ViewHideRoot.js";import{useEffect as w,useRef as N,useState as M}from"react";import{armEntrance as R,entranceAttrs as k,playEntrance as I}from"efficient-shell/format";import{EDGE_PHONE_MEDIA as J,PHONE_MEDIA as L}from"../lib/content/view-values.js";import{useCellLayer as V,useInBox as $}from"./InBoxContext.js";import{ENTRANCE_WRAPPER_CLASS as O}from"../lib/animation/entrance.js";function F({desktop:e,phone:t,editing:r,boxClass:o,boxAttrs:n,boxStyle:s,takesViewHide:a=!1,atEdge:i=!1,children:c}){const u=N(null),d=V(),x=D(),f=a?x:v,l=C(u,!0,i),A=l?t:e,{attrs:P,style:y}=k(A),h=N(m.seed(e,t)),S=JSON.stringify(e),_=JSON.stringify(t);return w(()=>{const p=u.current;if(p){if(r){const E=m.next(h.current,e,t,l);h.current=E.seen,E.play&&I(p);return}return R(p)}},[S,_,l,r]),f.scope(g("div",{ref:u,className:H(`${O}${d.fill}${o?` ${o}`:""}`,f.className),...n,...f.attrs,...P,...Object.keys(y).length||s?{style:{...s,...y}}:{},children:d.inner(c)}))}const m={seed(e,t){return{desktop:JSON.stringify(e),phone:JSON.stringify(t)}},next(e,t,r,o){const n=m.seed(t,r);return{play:o?n.phone!==e.phone:n.desktop!==e.desktop,seen:n}}};function j(e){return e?J:L}function C(e,t=!0,r=!1){const[o,n]=M(!1),s=j($()||r);return w(()=>{if(!t)return;const a=e.current?.ownerDocument?.defaultView??(typeof window>"u"?null:window);if(!a?.matchMedia)return;const i=a.matchMedia(s),c=()=>n(i.matches);return c(),i.addEventListener("change",c),()=>i.removeEventListener("change",c)},[e,t,s]),o}export{O as ENTRANCE_WRAPPER_CLASS,F as SectionAnimation,m as entranceReplay,j as phoneMediaOf,C as usePhoneWidth};
@@ -38,7 +38,7 @@ export declare function SectionGroupChoice({ draw }: {
38
38
  draw: (group: SectionGroupWidths | null) => ReactNode;
39
39
  }): import("react").JSX.Element;
40
40
  export declare function useSectionEdge(): SectionEdge | null;
41
- export default function SiteGutterFrame({ contained, framedClass, fillClass, columnClass, style, tabLabel, pad, border, outerAttrs: outerAttrsIn, box, edge, outerStyle, outerClass: outerClassIn, bleed, children, }: {
41
+ export default function SiteGutterFrame({ contained, framedClass, fillClass, columnClass, style, tabLabel, pad, border, outerAttrs: outerAttrsIn, box, edge, outerStyle, outerClass: outerClassIn, bleed, siteSide, children, }: {
42
42
  contained: boolean;
43
43
  framedClass: string;
44
44
  fillClass: string;
@@ -56,5 +56,6 @@ export default function SiteGutterFrame({ contained, framedClass, fillClass, col
56
56
  outerStyle?: CSSProperties;
57
57
  outerClass?: string;
58
58
  bleed?: boolean;
59
+ siteSide?: boolean;
59
60
  children?: ReactNode;
60
61
  }): ReactNode;
@@ -1 +1 @@
1
- "use client";import{jsx as t,Fragment as G}from"react/jsx-runtime";import{useTakeViewHide as K,withViewHide as D}from"./ViewHideRoot.js";import{createContext as u,useContext as o}from"react";import{rootPadAttrs as M,wrapperPadAttrs as Q}from"../lib/content/section-padding.js";import{SECTION_BORDER_CLASS as Y,SECTION_BORDER_SELF_CLASS as Z}from"../../format/lib/content/borders.js";import{BOX_HOLDS_NO_GUTTER_CLASS as b}from"../../format/lib/content/page-width.js";import{drawsSiteGutter as ee}from"../../format/lib/content/site-gutter.js";import{groundBeyond as te}from"../lib/content/section-edge.js";const f=u(!1);function pe(){return o(f)}function he({children:e}){return t(f.Provider,{value:!0,children:e})}const _=u(!1);function ve({children:e}){return t(_.Provider,{value:!0,children:e})}const H=u(null);function Se({ground:e,children:n}){return t(H.Provider,{value:e,children:n})}const O=u(!1);function ne(){return o(O)}function xe({atTop:e,nested:n}){return t(G,{children:ne()?n:e})}const m=u(void 0);function Ce({children:e}){return t(m.Provider,{value:null,children:e})}function oe(){return o(m)===void 0&&!o(O)&&!o(f)}function Ne({own:e,followed:n}){return t(G,{children:oe()?e():n()})}const k=u(null);function ge({value:e,children:n}){return t(k.Provider,{value:e,children:n})}function Be({draw:e}){return t(G,{children:e(o(k))})}function Pe(){return o(m)??null}function re({contained:e,framedClass:n,fillClass:V,columnClass:R,style:A,tabLabel:W,pad:s,border:c,outerAttrs:E,box:h=!1,edge:U=!1,outerStyle:p,outerClass:w,bleed:v=!1,children:y}){const X=o(f),S=o(_),a=ee(e,X),r=a&&!S,l=K(),I=!!(c&&r),d=I?w:D(w??"",l.className)||void 0,x=I||!l.className?E:{...E,...l.attrs},C=s&&!r?M(s.values,s.frame):null,N=c&&!r?c:null,g=h&&!v?b:null,B=[r?n:V,r?g:null,C?.className,N?Z:null].filter(Boolean).join(" "),L=ie(v&&r,C||N?{...A,...C?.style,...N}:A),q=o(m),z=o(H),J=h&&U&&q===void 0?{gutter:a,...s?{pad:s.values}:{},beyond:a&&S?te(z):"0px"}:null,$=h?t(O.Provider,{value:!0,children:t(m.Provider,{value:J,children:y})}):y,P=a?t(f.Provider,{value:!0,children:$}):$,i=s&&r?Q(s.values):null,T=x&&Object.keys(x).length>0?x:null,j=t("div",{...i?null:T,className:!i&&d?B?`${B} ${d}`:d:B,style:i||!p?L:{...L,...p},"data-tab-label":W,children:S?t(_.Provider,{value:!1,children:a&&!v?t("div",{className:g?`${R} ${g}`:R,children:P}):P}):P}),F=i?t("div",{...T,className:d?`${i.className} ${d}`:i.className,style:p?{...i.style,...p}:i.style,children:j}):j;return l.scope(c&&r?t("div",{className:D(Y,l.className),style:{display:"contents",...c},...l.attrs,children:F}):F)}function ie(e,n){return e?{...n,paddingLeft:0,paddingRight:0}:n}export{Se as GroundStopsAt,he as InsideSiteColumn,xe as NestedBoxChoice,Ce as NotASectionEdge,Be as SectionGroupChoice,ge as SectionGroupWidthsProvider,Ne as SectionRootChoice,ve as SplitBandAndColumn,re as default,ne as useInsideBox,pe as useInsideSiteGutter,Pe as useSectionEdge,oe as useSectionRoot};
1
+ "use client";import{jsx as t,Fragment as G}from"react/jsx-runtime";import{useTakeViewHide as M,withViewHide as D}from"./ViewHideRoot.js";import{createContext as c,useContext as o}from"react";import{rootPadAttrs as Q,wrapperPadAttrs as Y}from"../lib/content/section-padding.js";import{SECTION_BORDER_CLASS as Z,SECTION_BORDER_SELF_CLASS as b}from"../../format/lib/content/borders.js";import{BOX_HOLDS_NO_GUTTER_CLASS as ee}from"../../format/lib/content/page-width.js";import{drawsSiteGutter as te}from"../../format/lib/content/site-gutter.js";import{groundBeyond as ne}from"../lib/content/section-edge.js";const f=c(!1);function he(){return o(f)}function ve({children:e}){return t(f.Provider,{value:!0,children:e})}const _=c(!1);function Se({children:e}){return t(_.Provider,{value:!0,children:e})}const H=c(null);function xe({ground:e,children:n}){return t(H.Provider,{value:e,children:n})}const O=c(!1);function oe(){return o(O)}function Ce({atTop:e,nested:n}){return t(G,{children:oe()?n:e})}const m=c(void 0);function Ne({children:e}){return t(m.Provider,{value:null,children:e})}function re(){return o(m)===void 0&&!o(O)&&!o(f)}function ge({own:e,followed:n}){return t(G,{children:re()?e():n()})}const k=c(null);function Be({value:e,children:n}){return t(k.Provider,{value:e,children:n})}function Pe({draw:e}){return t(G,{children:e(o(k))})}function Ge(){return o(m)??null}function se({contained:e,framedClass:n,fillClass:V,columnClass:R,style:A,tabLabel:W,pad:i,border:a,outerAttrs:E,box:h=!1,edge:U=!1,outerStyle:p,outerClass:w,bleed:v=!1,siteSide:X=!1,children:y}){const q=o(f),S=o(_),l=te(e,q),r=l&&!S,u=M(),I=!!(a&&r),d=I?w:D(w??"",u.className)||void 0,x=I||!u.className?E:{...E,...u.attrs},C=i&&!r?Q(i.values,i.frame):null,N=a&&!r?a:null,g=h&&!v?ee:null,B=[r?n:V,r?g:null,C?.className,N?b:null].filter(Boolean).join(" "),L=ie(v&&r,C||N?{...A,...C?.style,...N}:A),z=o(m),J=o(H),K=h&&U&&z===void 0?{gutter:l,...i?{pad:i.values}:{},beyond:l&&S?ne(J):"0px",...X&&l?{site:!0}:{}}:null,$=h?t(O.Provider,{value:!0,children:t(m.Provider,{value:K,children:y})}):y,P=l?t(f.Provider,{value:!0,children:$}):$,s=i&&r?Y(i.values):null,T=x&&Object.keys(x).length>0?x:null,j=t("div",{...s?null:T,className:!s&&d?B?`${B} ${d}`:d:B,style:s||!p?L:{...L,...p},"data-tab-label":W,children:S?t(_.Provider,{value:!1,children:l&&!v?t("div",{className:g?`${R} ${g}`:R,children:P}):P}):P}),F=s?t("div",{...T,className:d?`${s.className} ${d}`:s.className,style:p?{...s.style,...p}:s.style,children:j}):j;return u.scope(a&&r?t("div",{className:D(Z,u.className),style:{display:"contents",...a},...u.attrs,children:F}):F)}function ie(e,n){return e?{...n,paddingLeft:0,paddingRight:0}:n}export{xe as GroundStopsAt,ve as InsideSiteColumn,Ce as NestedBoxChoice,Ne as NotASectionEdge,Pe as SectionGroupChoice,Be as SectionGroupWidthsProvider,ge as SectionRootChoice,Se as SplitBandAndColumn,se as default,oe as useInsideBox,he as useInsideSiteGutter,Ge as useSectionEdge,re as useSectionRoot};
@@ -1 +1 @@
1
- import{jsx as e,jsxs as i}from"react/jsx-runtime";import{alignViewAnswers as V,alignViewClasses as X}from"../../format/lib/content/block-align.js";import{SiteLink as $}from"../lib/site-runtime.js";import G from"./Btn.js";import{resolveImageTreatment as Z}from"../../format/lib/content/image-treatment.js";import E from"./Placeholder.js";import{useSitePhotography as D}from"./SitePhotographyContext.js";import K from"./SectionEyebrow.js";import{renderGold as s,renderHeadline as R,splitParagraphs as Y}from"./goldPhrases.js";import{ON_MEDIA_INK_STYLE as q}from"../../format/lib/content/ink.js";import{scrim as J}from"../../format/lib/content/scrim.js";import{SECTION_FILL_CLASS as Q}from"../../format/lib/content/section-min-height.js";import{HALF_SIZES as L}from"../../format/lib/sized-image.js";const a={headingMediumUpTo800:"max-view-wide:text-[length:var(--size-headingMedium,36px)]",labelUpTo800:"max-view-wide:text-[length:var(--size-label,12px)]",headingMedium:"text-[length:min(var(--size-headingMedium,56px),var(--sf-heading-max,9999px))]",body:"text-[length:var(--size-body,16px)]",label:"text-[length:var(--size-label,13px)]"},z={words:{left:"min-[961px]:pl-[max(60px,calc(100%_-_var(--sf-content-cap,200%)/2_+_60px))]",right:"min-[961px]:pr-[max(60px,calc(100%_-_var(--sf-content-cap,200%)/2_+_60px))]"},buttons:{left:"min-[961px]:pl-[max(var(--sf-site-gutter,40px),calc(100%_-_var(--sf-content-cap,200%)/2_+_var(--sf-site-gutter,40px)))]",right:"min-[961px]:pr-[max(var(--sf-site-gutter,40px),calc(100%_-_var(--sf-content-cap,200%)/2_+_var(--sf-site-gutter,40px)))]"}};function W({imageLabel:x,imageSrc:f,imageTint:v=.4,imageObjectPosition:S,eyebrow:h,title:b,body:g,cta:c,reverse:n=!1,uppercase:T=!1,textAlign:m="left",textAlignTablet:w,textAlignPhone:u,textBgSrc:p,textBgLabel:I,textBgTint:_=.6,textBgObjectPosition:M,featureBar:r,imageButton:l,grayscale:C,pictureHover:P,fillHeight:O=!1}){const y=Z(C,D(),P),N={left:{items:"",text:"",cta:"self-start"},center:{items:"items-center",text:"text-center",cta:"self-center"},right:{items:"items-end",text:"text-right",cta:"self-end"}},d=N[m]??N.left,j={left:{items:"view-tablet:max-view-desktop:items-stretch",cta:"view-tablet:max-view-desktop:self-start"},center:{items:"view-tablet:max-view-desktop:items-center",cta:"view-tablet:max-view-desktop:self-center"},right:{items:"view-tablet:max-view-desktop:items-end",cta:"view-tablet:max-view-desktop:self-end"}},k={left:{items:"max-view-tablet:items-stretch",cta:"max-view-tablet:self-start"},center:{items:"max-view-tablet:items-center",cta:"max-view-tablet:self-center"},right:{items:"max-view-tablet:items-end",cta:"max-view-tablet:self-end"}},t=V(m,w,u),o={text:X("text",m,w,u),items:[t.tablet&&j[t.tablet].items,t.phone&&k[t.phone].items].filter(Boolean).join(" "),cta:[t.tablet&&j[t.tablet].cta,t.phone&&k[t.phone].cta].filter(Boolean).join(" ")},U=n?"right":"left",F=n?"left":"right";return e("section",{className:"relative z-[2] bg-bg p-0",children:i("div",{className:["grid min-h-[72vh] grid-cols-2 border-t border-b border-line","max-[960px]:grid-cols-1","max-[960px]:min-h-0",n?"min-[961px]:[direction:rtl]":"",...O?[Q]:[]].join(" "),children:[i("div",{className:"sf-card relative flex items-center justify-center overflow-hidden bg-surface [direction:ltr] max-[960px]:aspect-[4/3] max-[960px]:order-2",style:n?{borderLeft:"1px solid var(--site-line)"}:{borderRight:"1px solid var(--site-line)"},children:[e(E,{label:x,src:f,objectPosition:S,treatment:y,sizes:L}),f&&v>0&&e("div",{className:"absolute inset-0",style:{background:`rgba(0,0,0,${v})`}}),(r||l)&&i("div",{className:`pointer-events-none absolute inset-0 z-[3] flex flex-col items-center justify-center gap-4 px-[var(--sf-site-gutter,40px)] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))] ${z.buttons[U]}`,children:[r&&i($,{href:r.href,className:`pointer-events-auto inline-flex items-center justify-center gap-3 border px-7 py-4 font-mono ${a.label} uppercase tracking-[0.18em] backdrop-blur-sm transition-colors max-view-wide:gap-2 max-view-wide:px-5 max-view-wide:py-3 ${a.labelUpTo800}`,style:{borderColor:"color-mix(in srgb, var(--overlay-fg) 30%, transparent)",color:"color-mix(in srgb, var(--overlay-fg) 85%, transparent)",background:J(.45)},children:[e("span",{children:s(r.wheel)}),e("span",{"aria-hidden":!0,style:{opacity:.55},children:"·"}),e("span",{children:s(r.category)}),e("span",{"aria-hidden":!0,children:"→"}),e("span",{children:s(r.cta??"Shop now")})]}),l&&i($,{href:l.href,className:`pointer-events-auto inline-flex items-center justify-center gap-2 border px-7 py-4 font-mono ${a.label} uppercase tracking-[0.18em] backdrop-blur-sm transition-colors hover:bg-[color-mix(in_srgb,var(--overlay-fg)_10%,transparent)] max-view-wide:gap-2 max-view-wide:px-5 max-view-wide:py-3 ${a.labelUpTo800}`,style:{borderColor:"color-mix(in srgb, var(--overlay-fg) 50%, transparent)",color:"color-mix(in srgb, var(--overlay-fg) 95%, transparent)",background:"transparent"},children:[e("span",{children:s(l.text??"Learn more")}),e("span",{"aria-hidden":!0,children:"→"})]})]})]}),i("div",{className:"relative overflow-hidden [direction:ltr] max-[960px]:order-1",children:[p&&i("div",{className:"absolute inset-0","aria-hidden":!0,children:[e(E,{label:I??x,src:p,objectPosition:M,treatment:y,sizes:L}),_>0&&e("div",{className:"absolute inset-0",style:{background:`rgba(0,0,0,${_})`}})]}),e("div",{className:`relative z-[2] flex h-full min-h-full flex-col px-[60px] py-[100px] max-[960px]:px-6 max-[960px]:py-[60px] ${z.words[F]}`,style:p?q:void 0,children:i("div",{className:["flex flex-1 flex-col justify-center gap-6",d.items,d.text,o.items,o.text].filter(Boolean).join(" "),children:[h&&e(K,{text:h,size:14}),b&&e("h2",{className:[`font-heading2 ${a.headingMedium} font-normal leading-[1.05] tracking-[-0.03em]`,`${a.headingMediumUpTo800} max-view-wide:leading-[1]`,T?"uppercase":""].join(" "),children:R(b,!1)}),g&&Y(g).map((A,H)=>e("p",{className:[`max-w-[520px] ${a.body} leading-[1.7]`,"text-fg-dim"].join(" "),children:s(A)},H)),c.text&&e("div",{className:`mt-2 ${d.cta}${o.cta?` ${o.cta}`:""}`,children:e(G,{href:c.href,variant:"primary",children:s(c.text)})})]})})]})]})})}export{W as default};
1
+ import{jsx as e,jsxs as i}from"react/jsx-runtime";import{alignViewAnswers as V,alignViewClasses as X}from"../../format/lib/content/block-align.js";import{SiteLink as $}from"../lib/site-runtime.js";import G from"./Btn.js";import{resolveImageTreatment as Z}from"../../format/lib/content/image-treatment.js";import L from"./Placeholder.js";import{useSitePhotography as D}from"./SitePhotographyContext.js";import K from"./SectionEyebrow.js";import{renderGold as s,renderHeadline as R,splitParagraphs as Y}from"./goldPhrases.js";import{ON_MEDIA_INK_STYLE as q}from"../../format/lib/content/ink.js";import{scrim as J}from"../../format/lib/content/scrim.js";import{SECTION_FILL_CLASS as Q}from"../../format/lib/content/section-min-height.js";import{HALF_SIZES as E}from"../../format/lib/sized-image.js";const a={headingMediumUpTo800:"max-view-wide:text-[length:var(--size-headingMedium,36px)]",labelUpTo800:"max-view-wide:text-[length:var(--size-label,12px)]",headingMedium:"text-[length:min(var(--size-headingMedium,56px),var(--sf-heading-max,9999px))]",body:"text-[length:var(--size-body,16px)]",label:"text-[length:var(--size-label,13px)]"},z={words:{left:"min-[961px]:pl-[max(60px,calc(100%_-_var(--sf-content-cap,200%)/2_+_60px))]",right:"min-[961px]:pr-[max(60px,calc(100%_-_var(--sf-content-cap,200%)/2_+_60px))]"},buttons:{left:"min-[961px]:pl-[max(var(--sf-site-gutter,40px),calc(100%_-_var(--sf-content-cap,200%)/2_+_var(--sf-site-gutter,40px)))]",right:"min-[961px]:pr-[max(var(--sf-site-gutter,40px),calc(100%_-_var(--sf-content-cap,200%)/2_+_var(--sf-site-gutter,40px)))]"}};function W({imageLabel:x,imageSrc:f,imageTint:v=.4,imageObjectPosition:S,eyebrow:h,title:b,body:g,cta:c,reverse:n=!1,uppercase:T=!1,textAlign:m="left",textAlignTablet:w,textAlignPhone:u,textBgSrc:p,textBgLabel:I,textBgTint:_=.6,textBgObjectPosition:M,featureBar:r,imageButton:l,grayscale:C,pictureHover:P,fillHeight:O=!1}){const y=Z(C,D(),P),N={left:{items:"",text:"",cta:"self-start"},center:{items:"items-center",text:"text-center",cta:"self-center"},right:{items:"items-end",text:"text-right",cta:"self-end"}},d=N[m]??N.left,j={left:{items:"view-tablet:max-view-desktop:items-stretch",cta:"view-tablet:max-view-desktop:self-start"},center:{items:"view-tablet:max-view-desktop:items-center",cta:"view-tablet:max-view-desktop:self-center"},right:{items:"view-tablet:max-view-desktop:items-end",cta:"view-tablet:max-view-desktop:self-end"}},k={left:{items:"max-view-tablet:items-stretch",cta:"max-view-tablet:self-start"},center:{items:"max-view-tablet:items-center",cta:"max-view-tablet:self-center"},right:{items:"max-view-tablet:items-end",cta:"max-view-tablet:self-end"}},t=V(m,w,u),o={text:X("text",m,w,u,{atSectionLine:!0}),items:[t.tablet&&j[t.tablet].items,t.phone&&k[t.phone].items].filter(Boolean).join(" "),cta:[t.tablet&&j[t.tablet].cta,t.phone&&k[t.phone].cta].filter(Boolean).join(" ")},U=n?"right":"left",F=n?"left":"right";return e("section",{className:"relative z-[2] bg-bg p-0",children:i("div",{className:["grid min-h-[72vh] grid-cols-2 border-t border-b border-line","max-[960px]:grid-cols-1","max-[960px]:min-h-0",n?"min-[961px]:[direction:rtl]":"",...O?[Q]:[]].join(" "),children:[i("div",{className:"sf-card relative flex items-center justify-center overflow-hidden bg-surface [direction:ltr] max-[960px]:aspect-[4/3] max-[960px]:order-2",style:n?{borderLeft:"1px solid var(--site-line)"}:{borderRight:"1px solid var(--site-line)"},children:[e(L,{label:x,src:f,objectPosition:S,treatment:y,sizes:E}),f&&v>0&&e("div",{className:"absolute inset-0",style:{background:`rgba(0,0,0,${v})`}}),(r||l)&&i("div",{className:`pointer-events-none absolute inset-0 z-[3] flex flex-col items-center justify-center gap-4 px-[var(--sf-site-gutter,40px)] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))] ${z.buttons[U]}`,children:[r&&i($,{href:r.href,className:`pointer-events-auto inline-flex items-center justify-center gap-3 border px-7 py-4 font-mono ${a.label} uppercase tracking-[0.18em] backdrop-blur-sm transition-colors max-view-wide:gap-2 max-view-wide:px-5 max-view-wide:py-3 ${a.labelUpTo800}`,style:{borderColor:"color-mix(in srgb, var(--overlay-fg) 30%, transparent)",color:"color-mix(in srgb, var(--overlay-fg) 85%, transparent)",background:J(.45)},children:[e("span",{children:s(r.wheel)}),e("span",{"aria-hidden":!0,style:{opacity:.55},children:"·"}),e("span",{children:s(r.category)}),e("span",{"aria-hidden":!0,children:"→"}),e("span",{children:s(r.cta??"Shop now")})]}),l&&i($,{href:l.href,className:`pointer-events-auto inline-flex items-center justify-center gap-2 border px-7 py-4 font-mono ${a.label} uppercase tracking-[0.18em] backdrop-blur-sm transition-colors hover:bg-[color-mix(in_srgb,var(--overlay-fg)_10%,transparent)] max-view-wide:gap-2 max-view-wide:px-5 max-view-wide:py-3 ${a.labelUpTo800}`,style:{borderColor:"color-mix(in srgb, var(--overlay-fg) 50%, transparent)",color:"color-mix(in srgb, var(--overlay-fg) 95%, transparent)",background:"transparent"},children:[e("span",{children:s(l.text??"Learn more")}),e("span",{"aria-hidden":!0,children:"→"})]})]})]}),i("div",{className:"relative overflow-hidden [direction:ltr] max-[960px]:order-1",children:[p&&i("div",{className:"absolute inset-0","aria-hidden":!0,children:[e(L,{label:I??x,src:p,objectPosition:M,treatment:y,sizes:E}),_>0&&e("div",{className:"absolute inset-0",style:{background:`rgba(0,0,0,${_})`}})]}),e("div",{className:`relative z-[2] flex h-full min-h-full flex-col px-[60px] py-[100px] max-[960px]:px-6 max-[960px]:py-[60px] ${z.words[F]}`,style:p?q:void 0,children:i("div",{className:["flex flex-1 flex-col justify-center gap-6",d.items,d.text,o.items,o.text].filter(Boolean).join(" "),children:[h&&e(K,{text:h,size:14}),b&&e("h2",{className:[`font-heading2 ${a.headingMedium} font-normal leading-[1.05] tracking-[-0.03em]`,`${a.headingMediumUpTo800} max-view-wide:leading-[1]`,T?"uppercase":""].join(" "),children:R(b,!1)}),g&&Y(g).map((A,H)=>e("p",{className:[`max-w-[520px] ${a.body} leading-[1.7]`,"text-fg-dim"].join(" "),children:s(A)},H)),c.text&&e("div",{className:`mt-2 ${d.cta}${o.cta?` ${o.cta}`:""}`,children:e(G,{href:c.href,variant:"primary",children:s(c.text)})})]})})]})]})})}export{W as default};
@@ -1 +1 @@
1
- import{jsx as r,jsxs as z}from"react/jsx-runtime";import v from"./BlockFrame.js";import{renderGold as h,renderHeadline as L,splitParagraphs as R}from"./goldPhrases.js";import{headingLook as A}from"./Heading.js";import{alignViewClasses as M}from"../../format/lib/content/block-align.js";import{textTagOf as U}from"../../format/lib/content/text-tag.js";import{KICKER_NUMBER_ATTR as B,kickerLead as G}from"../lib/content/page-contents.js";import{isTextStyleId as H}from"../lib/document/part-styles.js";import{faceClassOf as S}from"../../format/lib/text-style-face.js";import{useMirroredCopy as I}from"./MirrorContext.js";import{mirroredTextClasses as C}from"../../format/lib/content/mirror-cards.js";import K from"./PartStyledKind.js";const c={bodyUpTo800:"max-view-wide:text-[length:var(--size-body,14px)]",bodySmall:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,17px)]",label:"text-[length:var(--size-label,13px)]"},m=e=>e?` ${e}`:"";function P(e,o,l){const t=M("place",e,o,l);return t?` ${t}`:""}const F={left:"text-left",center:"text-left mx-auto",right:"text-left ml-auto"},V=`max-w-[380px] ${c.bodySmall} leading-[1.5] opacity-80 ${c.bodyUpTo800}`,W={default:"text-fg",dim:"text-fg-dim"};function X(e){return String(Math.min(Number(e.slice(8)),6))}function Z({text:e,labelId:o,number:l,align:t,alignTablet:k,alignPhone:w,tone:u,contained:g,hero:E=!1,pad:n,tag:_,textStyle:y,ownWidth:O=!1,partAlign:$,onLine:d=!1,partKey:T,partDeclare:j=!1}){const f=s=>T?r(K,{kind:T,declare:j,children:s}):s,b=I();if(E)return r("p",{className:V,children:h(e)});const p=l?r("span",{[B]:"",children:G(l)}):void 0,a=H(y)?y:void 0,N=`${a?`${S({id:a})} `:""}${O?"":"max-w-[680px] "}whitespace-pre-line ${a==="body-5"?c.label:c.bodyLarge} leading-[1.7]${m(t?F[t]:"")}${P(t,k,w)}${m(u?W[u]:"")}${m(C(b,t,$))}`,x=U(_);if(a?.startsWith("heading-")){const s=X(a),i=A(s,S({id:a}));return r(v,{contained:g,className:d?"":"py-6",pad:n?{values:n,frame:d?0:24}:void 0,children:z(x,{id:o,className:`${i.className}${m(C(b,void 0,$))}`,style:i.style,children:[p,f(L(e.trim(),!1))]})})}return r(v,{contained:g,className:d?"":"py-4",pad:n?{values:n,frame:d?0:16}:void 0,children:x==="p"?R(e).map((s,i)=>r("p",{id:i===0?o:void 0,className:N,children:f(h(s,!1,i===0?p:void 0))},i)):r(x,{id:o,className:N,children:f(h(e.trim(),!1,p))})})}export{Z as default,X as headingLevelOfStyle};
1
+ import{jsx as t,jsxs as z}from"react/jsx-runtime";import S from"./BlockFrame.js";import{renderGold as h,renderHeadline as B,splitParagraphs as R}from"./goldPhrases.js";import{headingLook as A}from"./Heading.js";import{alignViewClasses as I}from"../../format/lib/content/block-align.js";import{useInBox as M}from"./InBoxContext.js";import{textTagOf as U}from"../../format/lib/content/text-tag.js";import{KICKER_NUMBER_ATTR as G,kickerLead as H}from"../lib/content/page-contents.js";import{isTextStyleId as K}from"../lib/document/part-styles.js";import{faceClassOf as C}from"../../format/lib/text-style-face.js";import{useMirroredCopy as P}from"./MirrorContext.js";import{mirroredTextClasses as k}from"../../format/lib/content/mirror-cards.js";import F from"./PartStyledKind.js";const m={bodyUpTo800:"max-view-wide:text-[length:var(--size-body,14px)]",bodySmall:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,17px)]",label:"text-[length:var(--size-label,13px)]"},f=e=>e?` ${e}`:"";function V(e,i,n,r){const l=I("place",e,i,n,{atSectionLine:!r});return l?` ${l}`:""}const W={left:"text-left",center:"text-left mx-auto",right:"text-left ml-auto"},X=`max-w-[380px] ${m.bodySmall} leading-[1.5] opacity-80 ${m.bodyUpTo800}`,Z={default:"text-fg",dim:"text-fg-dim"};function q(e){return String(Math.min(Number(e.slice(8)),6))}function D({text:e,labelId:i,number:n,align:r,alignTablet:l,alignPhone:w,tone:g,contained:y,hero:E=!1,pad:d,tag:_,textStyle:$,ownWidth:L=!1,partAlign:T,onLine:c=!1,partKey:b,partDeclare:O=!1}){const p=s=>b?t(F,{kind:b,declare:O,children:s}):s,N=P(),j=M();if(E)return t("p",{className:X,children:h(e)});const x=n?t("span",{[G]:"",children:H(n)}):void 0,a=K($)?$:void 0,v=`${a?`${C({id:a})} `:""}${L?"":"max-w-[680px] "}whitespace-pre-line ${a==="body-5"?m.label:m.bodyLarge} leading-[1.7]${f(r?W[r]:"")}${V(r,l,w,j)}${f(g?Z[g]:"")}${f(k(N,r,T))}`,u=U(_);if(a?.startsWith("heading-")){const s=q(a),o=A(s,C({id:a}));return t(S,{contained:y,className:c?"":"py-6",pad:d?{values:d,frame:c?0:24}:void 0,children:z(u,{id:i,className:`${o.className}${f(k(N,void 0,T))}`,style:o.style,children:[x,p(B(e.trim(),!1))]})})}return t(S,{contained:y,className:c?"":"py-4",pad:d?{values:d,frame:c?0:16}:void 0,children:u==="p"?R(e).map((s,o)=>t("p",{id:o===0?i:void 0,className:v,children:p(h(s,!1,o===0?x:void 0))},o)):t(u,{id:i,className:v,children:p(h(e.trim(),!1,x))})})}export{D as default,q as headingLevelOfStyle};
@@ -1 +1 @@
1
- import{jsx as r,jsxs as m}from"react/jsx-runtime";import{HideTaker as k}from"./ViewHideRoot.js";import{alignViewClasses as y}from"../../format/lib/content/block-align.js";import{SiteLink as j}from"../lib/site-runtime.js";import{renderHeadline as N}from"./goldPhrases.js";import{say as _}from"../../format/lib/editor-words.js";function z({title:n,buttons:x,padTop:o,padBottom:l,buttonsAlign:s,buttonsAlignTablet:d,buttonsAlignPhone:f,editing:p=!1}={}){const c=typeof o=="number"?o:140,g=typeof l=="number"?l:140,i=(x??[]).filter(t=>p||(t.label??"").trim()),e=!!(n??"").trim(),a=!e&&(s==="center"||s==="left")?s:null,h=e?"":y("items",a??"right",d,f);return!p&&!e&&i.length===0?null:r(k,{as:"section",className:"relative z-[2] bg-bg",children:m("div",{className:[a==="center"?"mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-1 items-center justify-items-center gap-[60px] border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]":a==="left"?"mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-1 items-center justify-items-start gap-[60px] border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]":"mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-[1fr_auto] items-center gap-[60px] border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:grid-cols-1 max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]",h].filter(Boolean).join(" "),style:{paddingTop:c,paddingBottom:g},children:[a===null&&!e&&i.length>0&&r("div",{"aria-hidden":!0,className:"max-view-desktop:hidden"}),e&&r("h2",{className:"max-w-[1000px] font-display text-[length:min(var(--size-headingLarge,clamp(48px,7vw,108px)),var(--sf-heading-max,9999px))] [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-[0.94] tracking-[-0.035em] text-fg",children:N(n??"")}),i.length>0&&r("div",{className:"flex min-w-[280px] flex-col gap-3.5 max-view-desktop:min-w-0",children:i.map((t,v)=>{const u=(t.label??"").trim()||_("Button label"),b=t.href||"#",w=t.variant==="primary";return m(j,{href:b,className:["flex items-center justify-between gap-6 px-7 py-5","font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.3em] transition-colors",w?"border border-btn bg-btn text-btn-ink hover:border-fg hover:bg-fg":"border border-line text-fg hover:border-accent hover:text-accent"].join(" "),children:[u," ",r("span",{"aria-hidden":!0,children:"→"})]},v)})})]})})}export{z as default};
1
+ import{jsx as r,jsxs as m}from"react/jsx-runtime";import{HideTaker as k}from"./ViewHideRoot.js";import{alignViewClasses as y}from"../../format/lib/content/block-align.js";import{SiteLink as j}from"../lib/site-runtime.js";import{renderHeadline as N}from"./goldPhrases.js";import{say as L}from"../../format/lib/editor-words.js";function _({title:n,buttons:x,padTop:o,padBottom:l,buttonsAlign:s,buttonsAlignTablet:d,buttonsAlignPhone:f,editing:p=!1}={}){const c=typeof o=="number"?o:140,g=typeof l=="number"?l:140,i=(x??[]).filter(t=>p||(t.label??"").trim()),e=!!(n??"").trim(),a=!e&&(s==="center"||s==="left")?s:null,h=e?"":y("items",a??"right",d,f,{atSectionLine:!0});return!p&&!e&&i.length===0?null:r(k,{as:"section",className:"relative z-[2] bg-bg",children:m("div",{className:[a==="center"?"mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-1 items-center justify-items-center gap-[60px] border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]":a==="left"?"mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-1 items-center justify-items-start gap-[60px] border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]":"mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-[1fr_auto] items-center gap-[60px] border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:grid-cols-1 max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]",h].filter(Boolean).join(" "),style:{paddingTop:c,paddingBottom:g},children:[a===null&&!e&&i.length>0&&r("div",{"aria-hidden":!0,className:"max-view-desktop:hidden"}),e&&r("h2",{className:"max-w-[1000px] font-display text-[length:min(var(--size-headingLarge,clamp(48px,7vw,108px)),var(--sf-heading-max,9999px))] [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-[0.94] tracking-[-0.035em] text-fg",children:N(n??"")}),i.length>0&&r("div",{className:"flex min-w-[280px] flex-col gap-3.5 max-view-desktop:min-w-0",children:i.map((t,v)=>{const u=(t.label??"").trim()||L("Button label"),b=t.href||"#",w=t.variant==="primary";return m(j,{href:b,className:["flex items-center justify-between gap-6 px-7 py-5","font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.3em] transition-colors",w?"border border-btn bg-btn text-btn-ink hover:border-fg hover:bg-fg":"border border-line text-fg hover:border-accent hover:text-accent"].join(" "),children:[u," ",r("span",{"aria-hidden":!0,children:"→"})]},v)})})]})})}export{_ as default};
@@ -1,8 +1,11 @@
1
1
  import { type HTMLAttributes, type ReactNode } from "react";
2
2
  type ViewHideClaim = {
3
3
  readonly className: string;
4
+ readonly sectionClassName?: string;
4
5
  readonly words: string;
6
+ readonly line?: ViewHideLineOf;
5
7
  };
8
+ export type ViewHideLineOf = "edge" | "section" | "by-box";
6
9
  export declare const ViewHideContext: import("react").Context<ViewHideClaim | null>;
7
10
  export declare const VIEW_HIDE_ATTR = "data-sf-view-hide";
8
11
  export type ViewHideTake = {
@@ -11,7 +14,10 @@ export type ViewHideTake = {
11
14
  readonly scope: (element: ReactNode) => ReactNode;
12
15
  };
13
16
  export declare const NO_HIDE: ViewHideTake;
14
- export declare const viewHideClaim: (className: string, words: string) => ViewHideClaim | null;
17
+ export declare const viewHideClaim: (className: string, words: string, line?: {
18
+ readonly sectionClassName?: string;
19
+ readonly line?: ViewHideLineOf;
20
+ }) => ViewHideClaim | null;
15
21
  export declare function useTakeViewHide(): ViewHideTake;
16
22
  export declare function usePeekViewHide(): string;
17
23
  export declare const withViewHide: (className: string | undefined, hide: string) => string | undefined;
@@ -1 +1 @@
1
- "use client";import{createContext as f,createElement as i,useContext as l}from"react";const a=f(null),m="data-sf-view-hide",u=e=>i(a.Provider,{value:null},e),p={className:"",attrs:{},scope:u},d=p,H=(e,t)=>e?{className:e,words:t}:null;function x(){const e=l(a);return e===null?d:{className:e.className,attrs:{[m]:e.words},scope:u}}function k(){return l(a)?.className??""}const N=(e,t)=>t?e?`${e} ${t}`:t:e;function v(e){const t=x(),s=e.takes===!1?p:t,o={};let c=!1;for(const[n,r]of Object.entries(e))n==="as"||n==="takes"||n==="children"||(n==="className"?(o.className=N(r,s.className),c=!0):o[n]=r);return!c&&s.className&&(o.className=s.className),s.scope(i(e.as??"div",{...o,...s.attrs},e.children))}export{v as HideTaker,p as NO_HIDE,m as VIEW_HIDE_ATTR,a as ViewHideContext,k as usePeekViewHide,x as useTakeViewHide,H as viewHideClaim,N as withViewHide};
1
+ "use client";import{createContext as m,createElement as l,useContext as r}from"react";import{InBoxContext as d}from"./InBoxContext.js";const a=m(null),w="data-sf-view-hide",u=e=>l(a.Provider,{value:null},e),N={className:"",attrs:{},scope:u},p=N,E=(e,s,t={})=>e?{className:e,words:s,...t}:null,f=(e,s)=>e.sectionClassName===void 0?{className:e.className,words:e.words}:e.line==="edge"||e.line!=="section"&&s?{className:e.className,words:`${e.words} edge`}:{className:e.sectionClassName,words:e.words};function x(){const e=r(a),s=r(d)!==null;if(e===null)return p;const t=f(e,s);return{className:t.className,attrs:{[w]:t.words},scope:u}}function v(){const e=r(a),s=r(d)!==null;return e===null?"":f(e,s).className}const C=(e,s)=>s?e?`${e} ${s}`:s:e;function V(e){const s=x(),t=e.takes===!1?N:s,o={};let c=!1;for(const[n,i]of Object.entries(e))n==="as"||n==="takes"||n==="children"||(n==="className"?(o.className=C(i,t.className),c=!0):o[n]=i);return!c&&t.className&&(o.className=t.className),t.scope(l(e.as??"div",{...o,...t.attrs},e.children))}export{V as HideTaker,N as NO_HIDE,w as VIEW_HIDE_ATTR,a as ViewHideContext,v as usePeekViewHide,x as useTakeViewHide,E as viewHideClaim,C as withViewHide};
@@ -13,8 +13,11 @@ export type BlockSize = {
13
13
  style: Record<string, string>;
14
14
  attrs: Record<string, string>;
15
15
  };
16
+ export type BlockSizeLine = {
17
+ readonly atSectionLine?: boolean;
18
+ };
16
19
  export declare function blockFillInCellClass(values: BlockSizeValues): string;
17
- export declare function blockSizeOf(values: BlockSizeValues): BlockSize | null;
20
+ export declare function blockSizeOf(values: BlockSizeValues, { atSectionLine }?: BlockSizeLine): BlockSize | null;
18
21
  export declare function blockSetsItsWidth(values: BlockSizeValues): boolean;
19
22
  export declare function blockCanWidenPastCell(values: BlockSizeValues): boolean;
20
23
  export declare function blockSizeValuesOf(props: Readonly<Record<string, unknown>>): BlockSizeValues;