efficient-web-builder 74.0.0 → 74.2.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 (122) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/dist/editor/components/PreviewFooterContext.d.ts +3 -1
  3. package/dist/editor/components/PreviewFooterContext.js +1 -1
  4. package/dist/editor/components/PreviewPartAnchors.d.ts +2 -1
  5. package/dist/editor/components/PreviewPartAnchors.js +1 -1
  6. package/dist/editor/components/StorefrontEditor.js +1 -1
  7. package/dist/editor/components/storefront-editor.css +7 -0
  8. package/dist/editor/lib/document/blocks/general/ContactLocations/fields.js +1 -1
  9. package/dist/editor/lib/document/blocks/general/Footprint/fields.d.ts +3 -0
  10. package/dist/editor/lib/document/blocks/general/Footprint/fields.js +1 -1
  11. package/dist/editor/lib/document/controls.d.ts +3 -0
  12. package/dist/editor/lib/document/controls.js +1 -1
  13. package/dist/editor/lib/document/own-pad-fields.d.ts +7 -1
  14. package/dist/editor/lib/document/own-pad-fields.js +1 -1
  15. package/dist/editor/lib/document/page-root-fields.d.ts +4 -0
  16. package/dist/editor/lib/document/page-root-fields.js +1 -1
  17. package/dist/editor/lib/document/page-root.d.ts +3 -2
  18. package/dist/editor/lib/document/page-root.js +2 -2
  19. package/dist/editor/lib/document/registry.js +1 -1
  20. package/dist/editor/lib/editor-document-adapter.d.ts +1 -0
  21. package/dist/editor/lib/editor-document-adapter.js +1 -1
  22. package/dist/editor/lib/pinned-chrome-doc.d.ts +1 -0
  23. package/dist/editor/lib/pinned-chrome-doc.js +1 -1
  24. package/dist/format/lib/build/module-specifiers.d.ts +8 -0
  25. package/dist/format/lib/build/module-specifiers.js +1 -1
  26. package/dist/format/lib/content/block-sources.d.ts +1 -0
  27. package/dist/format/lib/content/block-sources.js +1 -1
  28. package/dist/format/lib/content/borders.d.ts +2 -1
  29. package/dist/format/lib/content/borders.js +1 -1
  30. package/dist/format/lib/content/page-width.d.ts +15 -0
  31. package/dist/format/lib/content/page-width.js +1 -1
  32. package/dist/format/lib/content/section-css.d.ts +1 -1
  33. package/dist/format/lib/content/section-css.js +1 -1
  34. package/dist/format/lib/content/site-css.d.ts +5 -0
  35. package/dist/format/lib/content/site-css.js +1 -0
  36. package/dist/format/lib/content/site-offices.d.ts +7 -0
  37. package/dist/format/lib/content/site-offices.js +1 -0
  38. package/dist/format/lib/document/blocks/block-types.d.ts +1 -0
  39. package/dist/format/lib/document/passes/types.d.ts +4 -2
  40. package/dist/format/lib/editor-words-catalogue.d.ts +5 -0
  41. package/dist/format/lib/editor-words-catalogue.js +3 -3
  42. package/dist/format/lib/sections/strip-shape.d.ts +1 -0
  43. package/dist/format/lib/sections/strip-shape.js +1 -1
  44. package/dist/format/lib/source-rules/panel-colour-tokens.js +7 -7
  45. package/dist/format/lib/source-rules/site-gutter-once.d.ts +12 -0
  46. package/dist/format/lib/source-rules/site-gutter-once.js +23 -0
  47. package/dist/format/lib/theme.d.ts +2 -1
  48. package/dist/format/lib/theme.js +3 -3
  49. package/dist/render/components/Breadcrumb.d.ts +4 -1
  50. package/dist/render/components/Breadcrumb.js +1 -1
  51. package/dist/render/components/Cards.js +1 -1
  52. package/dist/render/components/ChartSection.js +1 -1
  53. package/dist/render/components/ContactLocations.js +2 -2
  54. package/dist/render/components/Countdown.js +1 -1
  55. package/dist/render/components/DocBody.js +5 -5
  56. package/dist/render/components/DocMasthead.js +1 -1
  57. package/dist/render/components/DocMetaCards.js +1 -1
  58. package/dist/render/components/FAQ.js +1 -1
  59. package/dist/render/components/FeaturedCover.js +1 -1
  60. package/dist/render/components/Flex.js +1 -1
  61. package/dist/render/components/Footprint.js +1 -1
  62. package/dist/render/components/HeroGroup.js +1 -1
  63. package/dist/render/components/HeroSingle.js +1 -1
  64. package/dist/render/components/HeroSlide.js +1 -1
  65. package/dist/render/components/ImageBlock.js +1 -1
  66. package/dist/render/components/KeyFeatures.js +1 -1
  67. package/dist/render/components/LongRead.js +1 -1
  68. package/dist/render/components/Manifesto.js +1 -1
  69. package/dist/render/components/Masthead.js +1 -1
  70. package/dist/render/components/MockupSection.js +1 -1
  71. package/dist/render/components/ParagraphsA.js +1 -1
  72. package/dist/render/components/PhoneMenuTools.d.ts +3 -1
  73. package/dist/render/components/PhoneMenuTools.js +1 -1
  74. package/dist/render/components/ProcessSteps.js +1 -1
  75. package/dist/render/components/Prose.js +1 -1
  76. package/dist/render/components/PublishedPartStylesContext.d.ts +2 -1
  77. package/dist/render/components/PublishedPartStylesContext.js +1 -1
  78. package/dist/render/components/SectionHeader.js +1 -1
  79. package/dist/render/components/Series.js +1 -1
  80. package/dist/render/components/SideSpaceOnce.d.ts +6 -0
  81. package/dist/render/components/SideSpaceOnce.js +1 -0
  82. package/dist/render/components/SiteGutterFrame.js +1 -1
  83. package/dist/render/components/SiteOffices.d.ts +5 -0
  84. package/dist/render/components/SiteOffices.js +1 -0
  85. package/dist/render/components/SiteRootProps.d.ts +6 -0
  86. package/dist/render/components/SiteRootProps.js +1 -0
  87. package/dist/render/components/SpecStrip.d.ts +4 -1
  88. package/dist/render/components/SpecStrip.js +1 -1
  89. package/dist/render/components/Split.js +1 -1
  90. package/dist/render/components/StatsParagraph.js +1 -1
  91. package/dist/render/components/Testimonials.js +1 -1
  92. package/dist/render/components/Timeline.js +1 -1
  93. package/dist/render/components/TimelineTrack.js +1 -1
  94. package/dist/render/components/TitleWithButtons.js +1 -1
  95. package/dist/render/lib/content/section-edge.d.ts +1 -1
  96. package/dist/render/lib/content/section-edge.js +1 -1
  97. package/dist/render/lib/content/section-padding.d.ts +24 -14
  98. package/dist/render/lib/content/section-padding.js +1 -1
  99. package/dist/render/lib/document/blocks/general/Breadcrumb/render.js +1 -1
  100. package/dist/render/lib/document/blocks/general/ContactLocations/render.js +1 -1
  101. package/dist/render/lib/document/blocks/general/Footprint/render.js +1 -1
  102. package/dist/render/lib/document/blocks/general/SectionHeader/render.js +1 -1
  103. package/dist/render/lib/document/blocks/general/SpecStrip/render.js +1 -1
  104. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.d.ts +1 -0
  105. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
  106. package/dist/render/lib/document/blocks/general/section-to-box-rows-pageheader.js +1 -1
  107. package/dist/render/lib/document/blocks/general/section-to-box-rows-strip.js +1 -1
  108. package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
  109. package/dist/render/lib/document/custom-css.d.ts +2 -1
  110. package/dist/render/lib/document/part-styles.d.ts +7 -4
  111. package/dist/render/lib/document/part-styles.js +2 -2
  112. package/dist/render/lib/document/passes/clickable-parts.js +1 -1
  113. package/dist/render/lib/document/passes/section-custom-css.d.ts +7 -0
  114. package/dist/render/lib/document/passes/section-custom-css.js +1 -1
  115. package/dist/render/lib/document/passes/section-padding.d.ts +2 -1
  116. package/dist/render/lib/document/passes/section-padding.js +1 -1
  117. package/dist/render/lib/document/passes/section-width.js +1 -1
  118. package/dist/render/lib/document/section-css-style.d.ts +3 -1
  119. package/dist/render/lib/document/section-css-style.js +1 -1
  120. package/dist/routine-index.json +1 -1
  121. package/dist/value-index.json +1 -1
  122. package/package.json +1 -1
@@ -0,0 +1,23 @@
1
+ import{importBindingsOf as G,sourcePathOf as H}from"../build/module-specifiers.js";import{ruleChecks as z}from"./rule.js";const K=/(?:^|[\s"'`:])-?(?:px|pl|pr|ps|pe|mx|ml|mr|left|right|inset-x)-(?:\[[^\]\s]*--sf-site-gutter|\(--sf-site-gutter)/,R=/^(?:padding|margin)(?:Left|Right|Inline|InlineStart|InlineEnd)?$|^(?:left|right|inset|insetInline|insetInlineStart|insetInlineEnd)$/,E=/^(?:SIDE_ONCE_[A-Z_]+|withSideOnce|SideOnceClass)$/,B=/^[A-Z][a-z]/;function X(t,l){return t.createSourceFile(l.path,l.text,t.ScriptTarget.Latest,!0,l.path.endsWith(".tsx")?t.ScriptKind.TSX:t.ScriptKind.TS)}function j(t,l,r){const a=new Map;for(const o of G(t,l.path,l.text)){const s=H(r,o.spec,l.path);s&&a.set(o.local,[s,o.imported])}return a}function J(t,l){const r=new Set,a=o=>{if(t.isIdentifier(o)){const s=o.parent,p=(t.isVariableDeclaration(s)||t.isFunctionDeclaration(s)||t.isParameter(s)||t.isPropertyAssignment(s)||t.isPropertySignature(s))&&s.name===o,x=t.isPropertyAccessExpression(s)&&s.name===o;!p&&!x&&!t.isImportSpecifier(s)&&r.add(o.text)}(t.isJsxOpeningElement(o)||t.isJsxSelfClosingElement(o))&&t.isIdentifier(o.tagName)&&r.add(o.tagName.text),t.forEachChild(o,a)};return a(l),r}function M(t,l){const r=new Set(l.map(e=>e.path)),a=[],o=new Map;for(const e of l){const i=X(t,e);o.set(e.path,j(t,e,r));for(const c of i.statements){const d=!!(t.canHaveModifiers(c)&&t.getModifiers(c)?.some(h=>h.kind===t.SyntaxKind.ExportKeyword)),m=[];let u=t.isFunctionDeclaration(c);if(t.isVariableStatement(c))for(const h of c.declarationList.declarations)t.isIdentifier(h.name)&&m.push(h.name.text),h.initializer&&(t.isArrowFunction(h.initializer)||t.isFunctionExpression(h.initializer))&&(u=!0);if(t.isFunctionDeclaration(c)&&c.name&&m.push(c.name.text),m.length===0)continue;const g=f(t,{path:e.path,text:c.getText(i)}).writes.length>0,O=J(t,c);let n=!1;const w=h=>{t.isJsxElement(h)||t.isJsxSelfClosingElement(h)||t.isJsxFragment(h)?n=!0:t.forEachChild(h,w)};w(c);for(const h of m)a.push({file:e.path,name:h,exported:d,own:g,reads:O,draws:n,fn:u})}}const s=e=>e.draws||e.fn&&[...e.reads].some(i=>E.test(i)),p=new Set(a.filter(e=>e.own&&!s(e)).map(e=>`${e.file}#${e.name}`));for(let e=!0;e;){e=!1;for(const i of a){const c=`${i.file}#${i.name}`;if(p.has(c)||s(i))continue;const d=o.get(i.file);[...i.reads].some(u=>{if(u===i.name)return!1;const g=d.get(u);return g?p.has(`${g[0]}#${g[1]}`)&&!E.test(g[1]):p.has(`${i.file}#${u}`)&&!E.test(u)})&&(p.add(c),e=!0)}}const x=new Map;for(const e of a)!e.exported||!p.has(`${e.file}#${e.name}`)||B.test(e.name)||E.test(e.name)||(x.has(e.file)||x.set(e.file,new Set),x.get(e.file).add(e.name));return x}function f(t,l,r,a){const o=X(t,l),s=[];let p=!1;if(r&&a){const e=j(t,l,a),i=new Set;for(const c of o.statements)if(!t.isImportDeclaration(c))for(const d of J(t,c))i.add(d);for(const[c,[d,m]]of e)i.has(c)&&r.get(d)?.has(m)&&s.push(`token ${m} (${d})`)}const x=e=>{if(t.isStringLiteral(e)||t.isNoSubstitutionTemplateLiteral(e)||t.isTemplateHead(e)||t.isTemplateMiddle(e)||t.isTemplateTail(e)){const i=K.exec(e.text);i&&s.push(i[0].trim())}if(t.isPropertyAssignment(e)&&(t.isIdentifier(e.name)||t.isStringLiteral(e.name))&&R.test(e.name.text)){const i=e.initializer;(t.isStringLiteral(i)||t.isNoSubstitutionTemplateLiteral(i))&&i.text.includes("--sf-site-gutter")&&s.push(`${e.name.text}: ${i.text}`),t.isTemplateExpression(i)&&i.getText(o).includes("--sf-site-gutter")&&s.push(`${e.name.text}: ${i.getText(o)}`)}t.isCallExpression(e)&&t.isIdentifier(e.expression)&&e.expression.text==="withSideOnce"&&(p=!0),(t.isJsxOpeningElement(e)||t.isJsxSelfClosingElement(e))&&t.isIdentifier(e.tagName)&&e.tagName.text==="SideOnceClass"&&(p=!0),t.isIdentifier(e)&&/^SIDE_ONCE_[A-Z_]+$/.test(e.text)&&!t.isImportSpecifier(e.parent)&&(p=!0),t.forEachChild(e,x)};return x(o),{writes:s,switched:p}}function Y(t,l,r){const{check:a,report:o}=z("site gutter once");{const n="var(--sf-site-gutter,40px)",w=f(t,{path:"a.tsx",text:`const C = "mx-auto px-[${n}]";
2
+ // px-[${n}] in a comment
3
+ export const X = () => <div className={C} />;`}),h=f(t,{path:"b.tsx",text:`const c = (s: string) => \`\${s} max-view-wide:-mx-[min(20px,${n})]\`;`}),y=f(t,{path:"c.tsx",text:`const C = "px-[${n}]";
4
+ export const X = (on: boolean) => <div className={withSideOnce(C, on)} />;`}),$=f(t,{path:"d.tsx",text:`export const X = () => <SideOnceClass className="px-[${n}]"><p /></SideOnceClass>;`}),_=f(t,{path:"f.tsx",text:`import { SIDE_ONCE_HOLDS_CLASS } from "x";
5
+ export const X = (on: boolean) => <div className={[\`px-[${n}]\`, on ? SIDE_ONCE_HOLDS_CLASS : ""].join(" ")} />;`}),T=f(t,{path:"g.tsx",text:`import { SIDE_ONCE_HOLDS_CLASS } from "x";
6
+ export const X = () => <div className="px-[${n}]" />;`}),D=f(t,{path:"e.tsx",text:`/* px-[${n}] */
7
+ const C = "py-[${n}] max-w-[calc(100%_-_${n}*2)] [--sf-pad-site:${n}]";`});a("the reader finds a gutter class in a string and a template, and none in a comment or a non-padding class",w.writes.length===1&&!w.switched&&h.writes.length===1&&D.writes.length===0,JSON.stringify({bare:w,template:h,other:D}));const L=[`left-[${n}]`,`right-[${n}]`,`inset-x-[${n}]`,"px-(--sf-site-gutter)",`-ml-[${n}]`].map((N,W)=>f(t,{path:`h${W}.tsx`,text:`const C = "absolute ${N}";`})),k=f(t,{path:"i.tsx",text:`export const X = () => <div style={{ paddingLeft: "${n}", right: \`calc(\${1}px + ${n})\` }} />;`}),v=f(t,{path:"j.tsx",text:`const S = { "--sf-site-gutter": "0px", top: "${n}", maxWidth: "${n}" };
8
+ const C = "left-[var(--x,0px)] inset-y-[${n}]";`});a("the reader finds a side-position class (left-, right-, inset-x-), the (--sf-site-gutter) shorthand and an inline style that reads the gutter; not a style that sets it, a top or a width",L.every(N=>N.writes.length===1)&&k.writes.length===2&&v.writes.length===0,JSON.stringify({sides:L,style:k,sets:v}));const P={path:"lib/t.tsx",text:`export const COL = "mx-auto px-[${n}]";
9
+ export const WIDE = \`\${COL} max-w-9\`;
10
+ export function roomOf() { return { frame: WIDE }; }
11
+ export const NONE = "py-4";
12
+ export function colBox() { return <div className={COL} />; }
13
+ export const SIDE_ONCE_X = "[[data-sf-side=once]_&]:px-[${n}]";
14
+ const TABLE = { frame: COL, once: SIDE_ONCE_X };
15
+ export function tableOf() { return TABLE; }
16
+ export function switchedOf(on: boolean) { return on ? \`\${COL} \${SIDE_ONCE_X}\` : COL; }
17
+ export function Col() { return <div className={COL} />; }`},S=M(t,[P,{path:"lib/u.ts",text:`import { roomOf } from "./t";
18
+ export const EDGE = roomOf().frame;`}]),A=[...S.get("lib/t.tsx")??[]].sort().join(",")+"|"+[...S.get("lib/u.ts")??[]].join(","),C=new Set(["lib/t.tsx","lib/u.ts","c/a.tsx","c/b.tsx","c/c.tsx","c/d.tsx"]),b=f(t,{path:"c/a.tsx",text:`import { EDGE } from "@/lib/u";
19
+ export const X = () => <div className={EDGE} />;`},S,C),I=f(t,{path:"c/b.tsx",text:`import { WIDE } from "../lib/t";
20
+ export const X = (on: boolean) => <div className={withSideOnce(WIDE, on)} />;`},S,C),F=f(t,{path:"c/c.tsx",text:`import { COL, NONE, Col } from "@/lib/t";
21
+ export const X = () => <Col />;`},S,C);a("the reader finds the tokens by what they do (a class, one built from it, a function returning it, a table that holds it beside the switch's class, one in another file) and a file that draws one; not a token imported and unused, a component or a function that draws JSX, a function that applies the switch, the switch's own class, or a value with no gutter",A==="COL,WIDE,roomOf,tableOf|EDGE"&&b.writes.length===1&&!b.switched&&I.writes.length===1&&I.switched&&F.writes.length===0,JSON.stringify({tokenSet:A,drawsToken:b,switchedToken:I,importOnlyToken:F})),a("the reader sees the switch: a withSideOnce call, a <SideOnceClass>, a SIDE_ONCE_ class used (an import alone is not)",y.switched&&$.switched&&$.writes.length===1&&_.switched&&!T.switched,JSON.stringify({switched:y,wrapped:$,holds:_,importOnly:T}))}const s=l.filter(n=>/\.tsx?$/.test(n.path));a(`read the source (${s.length} TS/TSX files, at least ${r.minFiles})`,s.length>=r.minFiles,"fewer means the walk broke, and the checks below are vacuous");const p=M(t,s),x=new Set(s.map(n=>n.path)),e=s.map(n=>({path:n.path,...f(t,n,p,x)})).filter(n=>n.writes.length>0);a(`found >= ${r.writerFloor} files that write the gutter (found ${e.length})`,e.length>=r.writerFloor,"fewer means the reader broke, or the gutters moved to tokens: lower the floor in that change");const i=r.drawnThroughTheSwitch??{},c=r.ownRoomOnly??{},d=n=>n in r.homes||n in r.notInsideASiteSide||n in i||n in c,m=e.filter(n=>!n.switched&&!d(n.path));a("every file that writes the gutter as side room or column padding, or draws a token that carries it, passes it through the switch (withSideOnce, <SideOnceClass>, a SIDE_ONCE_ class) or is named",m.length===0,`${m.length} file(s) draw the gutter twice inside a "site" side on a switched site:
22
+ ${m.map(n=>`${n.path}: ${n.writes[0]}`).join(`
23
+ `)}`);const u=new Set(e.map(n=>n.path)),g=[...Object.keys(r.homes),...Object.keys(r.notInsideASiteSide),...Object.keys(i),...Object.keys(c)].filter(n=>!u.has(n));a("every file the repository names still writes the gutter",g.length===0,`named, writes none: ${g.join(", ")}`);const O=Object.entries({...r.homes,...r.notInsideASiteSide,...i,...c}).filter(([,n])=>n.trim().length<20).map(([n])=>n);return a("every named file says why",O.length===0,`no reason: ${O.join(", ")}`),o()}export{Y as siteGutterOnce};
@@ -1,4 +1,5 @@
1
1
  import { contrastRatio } from "efficient-shell/format";
2
+ import { CORNER_RADIUS_MAX } from "efficient-easel/screen/lib/content/style-keys";
2
3
  export declare const THEME_STORAGE_KEY = "storefront-theme";
3
4
  export declare const THEME_MODE_KEY = "sf:theme-mode";
4
5
  export declare const THEME_SWITCH_KEY = "sf:theme-switch";
@@ -103,7 +104,7 @@ export declare const DEFAULT_CORNER_STYLE: CornerStyle;
103
104
  export declare function normalizeCornerStyle(v?: string | null): CornerStyle;
104
105
  export declare function cornerStyleTokens(v?: string | null): Record<string, string>;
105
106
  export declare const CORNER_RADIUS_MIN = 0;
106
- export declare const CORNER_RADIUS_MAX = 40;
107
+ export { CORNER_RADIUS_MAX };
107
108
  export declare const CORNER_RADIUS_GRID: {
108
109
  readonly min: 0;
109
110
  readonly max: 40;
@@ -1,4 +1,4 @@
1
- import{contrastRatio as v,hexToRgb as d,parseHexColor as s,readableInk as L,relativeLuminance as g,parseOption as E}from"efficient-shell/format";import{DEFAULT_SHADOW_COLOR as ee,pictureShadowColor as te}from"efficient-easel/screen/lib/document/shadow-values";import{isLengthUnit as ne}from"efficient-easel/screen/lib/content/length-units";import{cssLengthOf as re,siteLengthHeld as oe}from"./content/css-length.js";const ce="storefront-theme",Ze="sf:theme-mode",qe="sf:theme-switch",Je="hide",Qe=["light","dark","auto"],ve="light",et=!1,N=7,k=18;function ie(e){return e>=N&&e<k}function tt(e){const{mode:t,override:n,switchShown:r,hour:o}=e;return r&&(n==="light"||n==="dark")?n:t==="auto"?ie(o)?"light":"dark":E(["light","dark"],"dark",t)}function nt(e){const{mode:t,switchShown:n}=e;return`
1
+ import{contrastRatio as v,hexToRgb as d,parseHexColor as s,readableInk as N,relativeLuminance as g,parseOption as E}from"efficient-shell/format";import{DEFAULT_SHADOW_COLOR as ee,pictureShadowColor as te}from"efficient-easel/screen/lib/document/shadow-values";import{isLengthUnit as ne}from"efficient-easel/screen/lib/content/length-units";import{CORNER_RADIUS_MAX as S}from"efficient-easel/screen/lib/content/style-keys";import{cssLengthOf as re,siteLengthHeld as oe}from"./content/css-length.js";const ce="storefront-theme",qe="sf:theme-mode",Je="sf:theme-switch",Qe="hide",ve=["light","dark","auto"],et="light",tt=!1,k=7,P=18;function ie(e){return e>=k&&e<P}function nt(e){const{mode:t,override:n,switchShown:r,hour:o}=e;return r&&(n==="light"||n==="dark")?n:t==="auto"?ie(o)?"light":"dark":E(["light","dark"],"dark",t)}function rt(e){const{mode:t,switchShown:n}=e;return`
2
2
  try {
3
3
  var mode = ${JSON.stringify(t)};
4
4
  var shown = ${n?"true":"false"};
@@ -8,11 +8,11 @@ import{contrastRatio as v,hexToRgb as d,parseHexColor as s,readableInk as L,rela
8
8
  theme = override;
9
9
  } else if (mode === 'auto') {
10
10
  var h = new Date().getHours();
11
- theme = (h >= ${N} && h < ${k}) ? 'light' : 'dark';
11
+ theme = (h >= ${k} && h < ${P}) ? 'light' : 'dark';
12
12
  } else {
13
13
  theme = mode === 'light' ? 'light' : 'dark';
14
14
  }
15
15
  if (theme === 'light') document.documentElement.setAttribute('data-theme', 'light');
16
16
  else document.documentElement.removeAttribute('data-theme');
17
17
  } catch (e) {}
18
- `}const l={background:"#0a0a0a",surface:"#131313",line:"#2a2a2a",muted:"#9a9388"},se=[{text:"#2e2e2e",accent:"#2e2e2e",background:"#ffffff",surface:"#f7f7f7",line:"#e0e0e0",muted:"#5c5c5c"},{text:"#f7f7f7",accent:"#f7f7f7",background:"#0a0a0a",surface:"#1b1b1b",line:"#363636",muted:"#a3a3a3"},{text:"#ffffff",accent:"#ffffff",background:"#2e2e2e",surface:"#3d3d3d",line:"#545454",muted:"#b0b0b0"},{text:"#0a0a0a",accent:"#0a0a0a",background:"#f7f7f7",surface:"#ffffff",line:"#d9d9d9",muted:"#5c5c5c"}],ae={selected:0,themes:se};function P(e){return!e||!Array.isArray(e.themes)||e.themes.length===0?{...ae}:{selected:Math.min(Math.max(0,e.selected??0),e.themes.length-1),themes:e.themes}}function S(e,t,n){const r=d(e),o=d(t);if(r===null||o===null)return e;const c=(i,a)=>Math.max(0,Math.min(255,Math.round(i+(a-i)*n))).toString(16).padStart(2,"0");return`#${c(r.r,o.r)}${c(r.g,o.g)}${c(r.b,o.b)}`}const ue={light:"#ffffff",dark:"#0a0a0a"},rt=["light","dark"];function ot(e,t){const n=ue[t],r=t==="light"?"#ffffff":"#000000";return{text:n,accent:n,background:e,surface:S(e,r,.1),line:S(e,r,.22),muted:S(n,e,.35),brandInk:t}}function f(e){const t=P(e);return t.themes[t.selected]}function u(e){return{text:e.text,accent:e.accent,background:e.background||l.background,surface:e.surface||l.surface,line:e.line||l.line,muted:e.muted||l.muted}}function ct(e){return{fill:u(e).background,accent:e.accent}}const le=.4,fe="#f5f1e8",F="#0a0a0a";function he(e){const t=f(e).text,n=g(t);return n===null||n>=le?t:null}const de=4.5,ge=3,it={good:"Good","large-only":"Large text only",hard:"Hard to read"};function st(e){return e>=de?"good":e>=ge?"large-only":"hard"}const me=["#000000","#ffffff"];function m(e){return L(e,me)}function at(e,t){const n=t!==void 0&&g(t)!==null?t:fe;return L(e,[F,n])===n&&n!==F}const pe=[.25,.4,.55];function ut(e){const t=d(e);return t===null?[]:pe.map(n=>"#"+[t.r,t.g,t.b].map(r=>Math.round(r*(1-n)).toString(16).padStart(2,"0")).join(""))}function lt(e){const n={"--theme-fg":f(e).text},r=he(e);return r!==null&&(n["--overlay-fg"]=r),n}const xe=82;function A(e){return`color-mix(in srgb, ${e} ${xe}%, #000)`}function ft(e){const t=f(e);return{"--theme-accent":t.accent,"--theme-accent-2":A(t.accent),"--theme-accent-ink":m(t.accent)}}function T(e){const t=e?.button;return t&&s(t)===t.toLowerCase()?t.toLowerCase():null}function ht(e){const t=f(e),n=T(t),r=$(t);if(n===null&&r===null)return{};const o={};return n!==null&&(o["--theme-btn"]=n,o["--theme-btn-2"]=A(n)),o["--theme-btn-ink"]=r??m(n),o}function $(e){const t=e?.buttonInk;return t&&s(t)===t.toLowerCase()?t.toLowerCase():null}function _e(e,t){return $(e)??m(T(e)??t)}function dt(e){const t=f(e);return{fill:T(t)??t.accent.toLowerCase(),ink:_e(t,t.accent)}}function gt(e){const t={};return P(e).themes.forEach((n,r)=>{const o=u(n);t[`--theme-preset-${r}-accent`]=o.accent,t[`--theme-preset-${r}-accent-2`]=A(o.accent),t[`--theme-preset-${r}-accent-ink`]=m(o.accent),t[`--theme-preset-${r}-bg`]=o.background,t[`--theme-preset-${r}-fg`]=o.text,t[`--theme-preset-${r}-surface`]=o.surface,t[`--theme-preset-${r}-surface-2`]=`color-mix(in srgb, ${o.surface} 60%, ${o.line})`,t[`--theme-preset-${r}-line`]=o.line,t[`--theme-preset-${r}-muted`]=o.muted}),t}const b=e=>{const t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4},I=e=>255*(e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055);function U([e,t,n]){const[r,o,c]=[b(e),b(t),b(n)],i=Math.cbrt(.4122214708*r+.5363325363*o+.0514459929*c),a=Math.cbrt(.2119034982*r+.6806995451*o+.1073969566*c),h=Math.cbrt(.0883024619*r+.2817188376*o+.6299787005*c);return[.2104542553*i+.793617785*a-.0040720468*h,1.9779984951*i-2.428592205*a+.4505937099*h,.0259040371*i+.7827717662*a-.808675766*h]}function Ee([e,t,n]){const r=(e+.3963377774*t+.2158037573*n)**3,o=(e-.1055613458*t-.0638541728*n)**3,c=(e-.0894841775*t-1.291485548*n)**3;return[I(4.0767416621*r-3.3077115913*o+.2309699292*c),I(-1.2684380046*r+2.6097574011*o-.3413193965*c),I(-.0041960863*r-.7034186147*o+1.707614701*c)]}const R=e=>{const t=d(e);return t===null?[0,0,0]:[t.r,t.g,t.b]},G=(e,t,n)=>[e[0]*n+t[0]*(1-n),e[1]*n+t[1]*(1-n),e[2]*n+t[2]*(1-n)],Y=e=>`#${e.map(t=>Math.max(0,Math.min(255,Math.round(t))).toString(16).padStart(2,"0")).join("")}`,z=e=>G(R(e.surface),R(e.line),.6);function mt(e){return Y(z(u(e)))}function B(e){const t=u(e);return Y(Ee(G(U(z(t)),U(R(t.text)),.92)))}function pt(e){return{...e,background:B(e)}}function X(e,t,n,r){const o=e[t];if(!o)return-1;const c=n(o);if(!c)return-1;const i=u(o);return e.findIndex((a,h)=>{if(h===t)return!1;const _=u(a);return s(_.background)!==c?!1:!r||s(_.text??"")===s(i.text??"")&&s(_.accent??"")===s(i.accent??"")})}function xt(e,t){return X(e,t,B,!1)}function _t(e,t){return X(e,t,n=>s(n.surface??""),!0)}const Se=1;function Ae(e,t){const n=(e??[]).flatMap((r,o)=>{const c=g(r.background??""),i=g(r.text??"");return c!==null&&i!==null&&c<i?[o]:[]});return n.find(r=>r!==t)??n[0]??Se}function Et(e){return Ae(e?.themes,e?.selected)}const St=["--theme-bg","--theme-surface","--theme-surface-2","--theme-line","--theme-muted"];function At(e){const t=u(f(e)),n=`color-mix(in srgb, ${t.surface} 60%, ${t.line})`,r={"--theme-bg":t.background,"--theme-surface":t.surface,"--theme-line":t.line,"--theme-muted":t.muted};return(t.surface!==l.surface||t.line!==l.line)&&(r["--theme-surface-2"]=n),r}const Te=["heading","body","label"],Tt={heading:"Headings",body:"Body",label:"Labels"};function bt(e){if(!e)return null;for(const t of Te)if(e.includes(`--size-${t}`))return t;return/--size-heading(Large|Medium|Small)/.test(e)?"heading":null}const K=["headingLarge","headingMedium","headingSmall","accent","body","label"],It={headingLarge:"heading",headingMedium:"heading",headingSmall:"heading",accent:"heading",body:"body",label:"label"},Rt={headingLarge:null,headingMedium:null,headingSmall:null,accent:null,body:null,label:null},be=8,Ie=200;function Re(e){if(typeof e!="number"||!Number.isFinite(e))return null;const t=Math.round(e);return t>=be&&t<=Ie?t:null}function Ce(e){const t={};for(const n of K)t[n]=Re(e?.[n]);return t}function Ct(e){const t=Ce(e),n={};for(const r of K){const o=t[r];o!==null&&(n[`--size-${r}`]=`${o}px`)}return n}const De=["square","small","large"],Me="small";function Oe(e){return De.includes(e??"")?e:Me}function Dt(e){return M(we[Oe(e)])}const p=0,W=40,ye={min:p,max:W,step:1},we={square:0,small:null,large:16},C={"--sf-card-radius":1,"--sf-button-radius":.5,"--site-radius":.5,"--site-radius-xs":.25,"--site-radius-sm":.5,"--site-radius-md":.75,"--site-radius-lg":1,"--site-radius-xl":1.25,"--site-radius-2xl":1.5,"--site-radius-3xl":2,"--site-radius-4xl":2.5};function D(e){if(e==null||typeof e=="string"&&e.trim()==="")return null;const t=typeof e=="string"?Number(e):e;return Number.isFinite(t)?Math.min(W,Math.max(p,Math.round(t))):null}function M(e,t){if(ne(t)&&t!=="px"){if(typeof e!="number"||!Number.isFinite(e))return{};const r=Math.max(0,e);return Object.fromEntries(Object.entries(C).map(([o,c])=>{const i=Math.round(r*c*1e4)/1e4;return[o,i===0?"0":re(i,t)]}))}const n=D(e);return n===null?{}:Object.fromEntries(Object.entries(C).map(([r,o])=>{const c=n*o/16;return[r,c===0?"0":`${c}rem`]}))}function Mt(e){return(D(e)??p)*C["--sf-button-radius"]}function Ot(e,t){const n=oe(e,t,"radius",ye);return n!==null?M(n,t):M(D(e)??p)}const He=["none","soft","lifted"],Le="soft",j="none",Ne=["tight","normal","roomy"],ke="normal",Pe="normal",Fe=["none","lift","highlight"],$e="lift",Ue="highlight";import{DEFAULT_SHADOW_COLOR as Bt}from"efficient-easel/screen/lib/document/shadow-values";function V(e){return He.includes(e??"")?e:Le}function Ge(e){return Ne.includes(e??"")?e:ke}function Z(e){return Fe.includes(e??"")?e:$e}function yt(e){const t=V(e);return t===j?void 0:t}function wt(e){const t=Ge(e);return t===Pe?void 0:t}function Ht(e){const t=Z(e);return t===Ue?void 0:t}function Lt(e,t,n){const r=te(t);return r===ee?{}:V(e)!==j||Z(n)==="lift"?{"--sf-shadow-color":r}:{}}const Ye=["normal","tight","compressed"],q="normal";function J(e){return Ye.includes(e??"")?e:q}function Nt(e){const t=J(e);return t===q?void 0:t}function kt(e){switch(J(e)){case"tight":return{lineHeight:.95,letterSpacing:-.01};case"compressed":return{lineHeight:.86,letterSpacing:-.01};default:return{}}}const Q=["authored","sentence"],Pt={case:"authored",weight:null,weightStrong:null,italicStrong:null,maxPx:null,weight2:null,weight3:null,case2:"authored",case3:"authored"},O=100,y=900,ze=24,Be=200;function x(e,t,n){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,t),n))}function w(e){const t=x(e?.weight,O,y),n=E(Q,"authored",e?.case),r=c=>c==null?t:x(c,O,y),o=c=>E(Q,n,c);return{case:n,weight:t,weightStrong:x(e?.weightStrong,O,y),italicStrong:typeof e?.italicStrong=="boolean"?e.italicStrong:null,maxPx:x(e?.maxPx,ze,Be),weight2:r(e?.weight2),weight3:r(e?.weight3),case2:o(e?.case2),case3:o(e?.case3)}}function Ft(e){const t=w(e),n={};return t.case==="sentence"&&(n["--sf-heading-case"]="none"),t.weight!==null&&(n["--sf-heading-weight"]=String(t.weight)),t.weightStrong!==null&&(n["--sf-heading-weight-strong"]=String(t.weightStrong)),t.maxPx!==null&&(n["--sf-heading-max"]=`${t.maxPx}px`),t.weight2!==null&&t.weight2!==t.weight&&(n["--sf-heading-2-weight"]=String(t.weight2)),t.weight3!==null&&t.weight3!==t.weight&&(n["--sf-heading-3-weight"]=String(t.weight3)),t.case2!==t.case&&(n["--sf-heading-2-case"]=t.case2==="sentence"?"none":"uppercase"),t.case3!==t.case&&(n["--sf-heading-3-case"]=t.case3==="sentence"?"none":"uppercase"),n}function $t(e){return w({case:e?.heading_case??void 0,weight:e?.heading_weight,weightStrong:e?.heading_weight_strong,italicStrong:e?.accent_italic,maxPx:e?.heading_max_px,weight2:e?.heading_2_weight??void 0,weight3:e?.heading_3_weight??void 0,case2:e?.heading_2_case??void 0,case3:e?.heading_3_case??void 0})}function Ut(e){const t=w(e);return{heading_case:t.case,heading_weight:t.weight,heading_weight_strong:t.weightStrong,heading_max_px:t.maxPx,heading_2_weight:t.weight2,heading_3_weight:t.weight3,heading_2_case:t.case2,heading_3_case:t.case3}}const H="siteTheme";function Xe(e){const t=e;if(!t||typeof t!="object"||!Array.isArray(t.themes)||!t.themes.every(r=>!!r&&typeof r=="object"))return{};const n=typeof t.selected=="number"&&Number.isInteger(t.selected)&&t.selected>=0?t.selected:0;return{[H]:{selected:n,themes:t.themes}}}function Gt(e){return Xe(e?.[H])[H]}export{pe as ACCENT_DARKEN_STEPS,rt as BRAND_INKS,Ne as CARD_GAPS,He as CARD_SHADOWS,ye as CORNER_RADIUS_GRID,W as CORNER_RADIUS_MAX,p as CORNER_RADIUS_MIN,De as CORNER_STYLES,we as CORNER_STYLE_TO_PX,ke as DEFAULT_CARD_GAP,Le as DEFAULT_CARD_SHADOW,Me as DEFAULT_CORNER_STYLE,q as DEFAULT_HEADING_COMPRESSION,Pt as DEFAULT_HEADING_TYPOGRAPHY,$e as DEFAULT_HOVER_EFFECT,Bt as DEFAULT_SHADOW_COLOR,Rt as DEFAULT_SIZES,l as DEFAULT_SURFACES,et as DEFAULT_SWITCH_SHOWN,se as DEFAULT_THEMES,ve as DEFAULT_THEME_MODE,ae as DEFAULT_THEME_VALUE,it as GRADE_LABEL,Q as HEADING_CASES,Ye as HEADING_COMPRESSIONS,Be as HEADING_MAX_PX_MAX,ze as HEADING_MAX_PX_MIN,y as HEADING_WEIGHT_MAX,O as HEADING_WEIGHT_MIN,Fe as HOVER_EFFECTS,Pe as IDENTITY_CARD_GAP,j as IDENTITY_CARD_SHADOW,Ue as IDENTITY_HOVER_EFFECT,F as OVERLAY_INK_DARK,fe as OVERLAY_INK_LIGHT,de as READABILITY_AA,ge as READABILITY_AA_LARGE,It as SCALE_OF_STEP,H as SITE_THEME_KEY,K as SIZE_STEPS,Ie as TEXT_SIZE_MAX,be as TEXT_SIZE_MIN,k as THEME_DAY_END_HOUR,N as THEME_DAY_START_HOUR,Qe as THEME_MODES,Ze as THEME_MODE_KEY,ce as THEME_STORAGE_KEY,St as THEME_SURFACE_KEYS,Je as THEME_SWITCH_HIDE,qe as THEME_SWITCH_KEY,Te as TYPE_GROUPS,Tt as TYPE_GROUP_LABELS,m as accentInk,pt as bandPresetFor,xt as bandPresetIndex,ot as brandTheme,nt as buildThemeBootScript,wt as cardGapAttr,yt as cardShadowAttr,kt as compressionMetrics,v as contrastRatio,M as cornerRadiusTokens,Dt as cornerStyleTokens,Et as darkBandIndex,Ae as darkPresetIndex,ut as darkerAccents,at as fillIsDark,st as gradeContrast,Nt as headingCompressionAttr,$t as headingTypographyFromRow,Ft as headingTypographyStyle,Ut as headingTypographyToRow,Ht as hoverEffectAttr,ie as isDayHour,Ge as normalizeCardGap,V as normalizeCardShadow,D as normalizeCornerRadius,Oe as normalizeCornerStyle,J as normalizeHeadingCompression,w as normalizeHeadingTypography,Z as normalizeHoverEffect,Re as normalizeSize,Ce as normalizeSizes,P as normalizeTheme,u as normalizeThemeColors,tt as resolveTheme,_e as resolvedButtonInk,B as sectionBandTone,f as selectedThemeColors,Lt as shadowColorTokens,dt as siteButtonPaint,Mt as siteButtonRadiusPx,Ot as siteCornerRadiusTokens,Xe as siteThemeMetadata,Gt as siteThemeOf,_t as surfacePresetIndex,mt as surfaceTwoTone,ft as themeAccentStyle,T as themeButtonColour,$ as themeButtonInk,ht as themeButtonStyle,lt as themeColorStyle,he as themeLightInk,gt as themePresetAccentVars,At as themeSurfaceStyle,ct as themeSwatchColors,bt as typeScaleGroupOfClassName,Ct as typeSizesStyle};
18
+ `}const l={background:"#0a0a0a",surface:"#131313",line:"#2a2a2a",muted:"#9a9388"},se=[{text:"#2e2e2e",accent:"#2e2e2e",background:"#ffffff",surface:"#f7f7f7",line:"#e0e0e0",muted:"#5c5c5c"},{text:"#f7f7f7",accent:"#f7f7f7",background:"#0a0a0a",surface:"#1b1b1b",line:"#363636",muted:"#a3a3a3"},{text:"#ffffff",accent:"#ffffff",background:"#2e2e2e",surface:"#3d3d3d",line:"#545454",muted:"#b0b0b0"},{text:"#0a0a0a",accent:"#0a0a0a",background:"#f7f7f7",surface:"#ffffff",line:"#d9d9d9",muted:"#5c5c5c"}],ae={selected:0,themes:se};function F(e){return!e||!Array.isArray(e.themes)||e.themes.length===0?{...ae}:{selected:Math.min(Math.max(0,e.selected??0),e.themes.length-1),themes:e.themes}}function A(e,t,n){const r=d(e),o=d(t);if(r===null||o===null)return e;const c=(i,a)=>Math.max(0,Math.min(255,Math.round(i+(a-i)*n))).toString(16).padStart(2,"0");return`#${c(r.r,o.r)}${c(r.g,o.g)}${c(r.b,o.b)}`}const ue={light:"#ffffff",dark:"#0a0a0a"},ot=["light","dark"];function ct(e,t){const n=ue[t],r=t==="light"?"#ffffff":"#000000";return{text:n,accent:n,background:e,surface:A(e,r,.1),line:A(e,r,.22),muted:A(n,e,.35),brandInk:t}}function f(e){const t=F(e);return t.themes[t.selected]}function u(e){return{text:e.text,accent:e.accent,background:e.background||l.background,surface:e.surface||l.surface,line:e.line||l.line,muted:e.muted||l.muted}}function it(e){return{fill:u(e).background,accent:e.accent}}const le=.4,fe="#f5f1e8",$="#0a0a0a";function he(e){const t=f(e).text,n=g(t);return n===null||n>=le?t:null}const de=4.5,ge=3,st={good:"Good","large-only":"Large text only",hard:"Hard to read"};function at(e){return e>=de?"good":e>=ge?"large-only":"hard"}const me=["#000000","#ffffff"];function m(e){return N(e,me)}function ut(e,t){const n=t!==void 0&&g(t)!==null?t:fe;return N(e,[$,n])===n&&n!==$}const pe=[.25,.4,.55];function lt(e){const t=d(e);return t===null?[]:pe.map(n=>"#"+[t.r,t.g,t.b].map(r=>Math.round(r*(1-n)).toString(16).padStart(2,"0")).join(""))}function ft(e){const n={"--theme-fg":f(e).text},r=he(e);return r!==null&&(n["--overlay-fg"]=r),n}const xe=82;function T(e){return`color-mix(in srgb, ${e} ${xe}%, #000)`}function ht(e){const t=f(e);return{"--theme-accent":t.accent,"--theme-accent-2":T(t.accent),"--theme-accent-ink":m(t.accent)}}function b(e){const t=e?.button;return t&&s(t)===t.toLowerCase()?t.toLowerCase():null}function dt(e){const t=f(e),n=b(t),r=U(t);if(n===null&&r===null)return{};const o={};return n!==null&&(o["--theme-btn"]=n,o["--theme-btn-2"]=T(n)),o["--theme-btn-ink"]=r??m(n),o}function U(e){const t=e?.buttonInk;return t&&s(t)===t.toLowerCase()?t.toLowerCase():null}function _e(e,t){return U(e)??m(b(e)??t)}function gt(e){const t=f(e);return{fill:b(t)??t.accent.toLowerCase(),ink:_e(t,t.accent)}}function mt(e){const t={};return F(e).themes.forEach((n,r)=>{const o=u(n);t[`--theme-preset-${r}-accent`]=o.accent,t[`--theme-preset-${r}-accent-2`]=T(o.accent),t[`--theme-preset-${r}-accent-ink`]=m(o.accent),t[`--theme-preset-${r}-bg`]=o.background,t[`--theme-preset-${r}-fg`]=o.text,t[`--theme-preset-${r}-surface`]=o.surface,t[`--theme-preset-${r}-surface-2`]=`color-mix(in srgb, ${o.surface} 60%, ${o.line})`,t[`--theme-preset-${r}-line`]=o.line,t[`--theme-preset-${r}-muted`]=o.muted}),t}const I=e=>{const t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4},R=e=>255*(e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055);function G([e,t,n]){const[r,o,c]=[I(e),I(t),I(n)],i=Math.cbrt(.4122214708*r+.5363325363*o+.0514459929*c),a=Math.cbrt(.2119034982*r+.6806995451*o+.1073969566*c),h=Math.cbrt(.0883024619*r+.2817188376*o+.6299787005*c);return[.2104542553*i+.793617785*a-.0040720468*h,1.9779984951*i-2.428592205*a+.4505937099*h,.0259040371*i+.7827717662*a-.808675766*h]}function Ee([e,t,n]){const r=(e+.3963377774*t+.2158037573*n)**3,o=(e-.1055613458*t-.0638541728*n)**3,c=(e-.0894841775*t-1.291485548*n)**3;return[R(4.0767416621*r-3.3077115913*o+.2309699292*c),R(-1.2684380046*r+2.6097574011*o-.3413193965*c),R(-.0041960863*r-.7034186147*o+1.707614701*c)]}const C=e=>{const t=d(e);return t===null?[0,0,0]:[t.r,t.g,t.b]},Y=(e,t,n)=>[e[0]*n+t[0]*(1-n),e[1]*n+t[1]*(1-n),e[2]*n+t[2]*(1-n)],z=e=>`#${e.map(t=>Math.max(0,Math.min(255,Math.round(t))).toString(16).padStart(2,"0")).join("")}`,B=e=>Y(C(e.surface),C(e.line),.6);function pt(e){return z(B(u(e)))}function X(e){const t=u(e);return z(Ee(Y(G(B(t)),G(C(t.text)),.92)))}function xt(e){return{...e,background:X(e)}}function K(e,t,n,r){const o=e[t];if(!o)return-1;const c=n(o);if(!c)return-1;const i=u(o);return e.findIndex((a,h)=>{if(h===t)return!1;const _=u(a);return s(_.background)!==c?!1:!r||s(_.text??"")===s(i.text??"")&&s(_.accent??"")===s(i.accent??"")})}function _t(e,t){return K(e,t,X,!1)}function Et(e,t){return K(e,t,n=>s(n.surface??""),!0)}const Se=1;function Ae(e,t){const n=(e??[]).flatMap((r,o)=>{const c=g(r.background??""),i=g(r.text??"");return c!==null&&i!==null&&c<i?[o]:[]});return n.find(r=>r!==t)??n[0]??Se}function St(e){return Ae(e?.themes,e?.selected)}const At=["--theme-bg","--theme-surface","--theme-surface-2","--theme-line","--theme-muted"];function Tt(e){const t=u(f(e)),n=`color-mix(in srgb, ${t.surface} 60%, ${t.line})`,r={"--theme-bg":t.background,"--theme-surface":t.surface,"--theme-line":t.line,"--theme-muted":t.muted};return(t.surface!==l.surface||t.line!==l.line)&&(r["--theme-surface-2"]=n),r}const Te=["heading","body","label"],bt={heading:"Headings",body:"Body",label:"Labels"};function It(e){if(!e)return null;for(const t of Te)if(e.includes(`--size-${t}`))return t;return/--size-heading(Large|Medium|Small)/.test(e)?"heading":null}const W=["headingLarge","headingMedium","headingSmall","accent","body","label"],Rt={headingLarge:"heading",headingMedium:"heading",headingSmall:"heading",accent:"heading",body:"body",label:"label"},Ct={headingLarge:null,headingMedium:null,headingSmall:null,accent:null,body:null,label:null},be=8,Ie=200;function Re(e){if(typeof e!="number"||!Number.isFinite(e))return null;const t=Math.round(e);return t>=be&&t<=Ie?t:null}function Ce(e){const t={};for(const n of W)t[n]=Re(e?.[n]);return t}function Dt(e){const t=Ce(e),n={};for(const r of W){const o=t[r];o!==null&&(n[`--size-${r}`]=`${o}px`)}return n}const De=["square","small","large"],Me="small";function Oe(e){return De.includes(e??"")?e:Me}function Mt(e){return O(we[Oe(e)])}const p=0,ye={min:p,max:S,step:1},we={square:0,small:null,large:16},D={"--sf-card-radius":1,"--sf-button-radius":.5,"--site-radius":.5,"--site-radius-xs":.25,"--site-radius-sm":.5,"--site-radius-md":.75,"--site-radius-lg":1,"--site-radius-xl":1.25,"--site-radius-2xl":1.5,"--site-radius-3xl":2,"--site-radius-4xl":2.5};function M(e){if(e==null||typeof e=="string"&&e.trim()==="")return null;const t=typeof e=="string"?Number(e):e;return Number.isFinite(t)?Math.min(S,Math.max(p,Math.round(t))):null}function O(e,t){if(ne(t)&&t!=="px"){if(typeof e!="number"||!Number.isFinite(e))return{};const r=Math.max(0,e);return Object.fromEntries(Object.entries(D).map(([o,c])=>{const i=Math.round(r*c*1e4)/1e4;return[o,i===0?"0":re(i,t)]}))}const n=M(e);return n===null?{}:Object.fromEntries(Object.entries(D).map(([r,o])=>{const c=n*o/16;return[r,c===0?"0":`${c}rem`]}))}function Ot(e){return(M(e)??p)*D["--sf-button-radius"]}function yt(e,t){const n=oe(e,t,"radius",ye);return n!==null?O(n,t):O(M(e)??p)}const He=["none","soft","lifted"],Le="soft",j="none",Ne=["tight","normal","roomy"],ke="normal",Pe="normal",Fe=["none","lift","highlight"],$e="lift",Ue="highlight";import{DEFAULT_SHADOW_COLOR as Xt}from"efficient-easel/screen/lib/document/shadow-values";function V(e){return He.includes(e??"")?e:Le}function Ge(e){return Ne.includes(e??"")?e:ke}function Z(e){return Fe.includes(e??"")?e:$e}function wt(e){const t=V(e);return t===j?void 0:t}function Ht(e){const t=Ge(e);return t===Pe?void 0:t}function Lt(e){const t=Z(e);return t===Ue?void 0:t}function Nt(e,t,n){const r=te(t);return r===ee?{}:V(e)!==j||Z(n)==="lift"?{"--sf-shadow-color":r}:{}}const Ye=["normal","tight","compressed"],q="normal";function J(e){return Ye.includes(e??"")?e:q}function kt(e){const t=J(e);return t===q?void 0:t}function Pt(e){switch(J(e)){case"tight":return{lineHeight:.95,letterSpacing:-.01};case"compressed":return{lineHeight:.86,letterSpacing:-.01};default:return{}}}const Q=["authored","sentence"],Ft={case:"authored",weight:null,weightStrong:null,italicStrong:null,maxPx:null,weight2:null,weight3:null,case2:"authored",case3:"authored"},y=100,w=900,ze=24,Be=200;function x(e,t,n){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,t),n))}function H(e){const t=x(e?.weight,y,w),n=E(Q,"authored",e?.case),r=c=>c==null?t:x(c,y,w),o=c=>E(Q,n,c);return{case:n,weight:t,weightStrong:x(e?.weightStrong,y,w),italicStrong:typeof e?.italicStrong=="boolean"?e.italicStrong:null,maxPx:x(e?.maxPx,ze,Be),weight2:r(e?.weight2),weight3:r(e?.weight3),case2:o(e?.case2),case3:o(e?.case3)}}function $t(e){const t=H(e),n={};return t.case==="sentence"&&(n["--sf-heading-case"]="none"),t.weight!==null&&(n["--sf-heading-weight"]=String(t.weight)),t.weightStrong!==null&&(n["--sf-heading-weight-strong"]=String(t.weightStrong)),t.maxPx!==null&&(n["--sf-heading-max"]=`${t.maxPx}px`),t.weight2!==null&&t.weight2!==t.weight&&(n["--sf-heading-2-weight"]=String(t.weight2)),t.weight3!==null&&t.weight3!==t.weight&&(n["--sf-heading-3-weight"]=String(t.weight3)),t.case2!==t.case&&(n["--sf-heading-2-case"]=t.case2==="sentence"?"none":"uppercase"),t.case3!==t.case&&(n["--sf-heading-3-case"]=t.case3==="sentence"?"none":"uppercase"),n}function Ut(e){return H({case:e?.heading_case??void 0,weight:e?.heading_weight,weightStrong:e?.heading_weight_strong,italicStrong:e?.accent_italic,maxPx:e?.heading_max_px,weight2:e?.heading_2_weight??void 0,weight3:e?.heading_3_weight??void 0,case2:e?.heading_2_case??void 0,case3:e?.heading_3_case??void 0})}function Gt(e){const t=H(e);return{heading_case:t.case,heading_weight:t.weight,heading_weight_strong:t.weightStrong,heading_max_px:t.maxPx,heading_2_weight:t.weight2,heading_3_weight:t.weight3,heading_2_case:t.case2,heading_3_case:t.case3}}const L="siteTheme";function Xe(e){const t=e;if(!t||typeof t!="object"||!Array.isArray(t.themes)||!t.themes.every(r=>!!r&&typeof r=="object"))return{};const n=typeof t.selected=="number"&&Number.isInteger(t.selected)&&t.selected>=0?t.selected:0;return{[L]:{selected:n,themes:t.themes}}}function Yt(e){return Xe(e?.[L])[L]}export{pe as ACCENT_DARKEN_STEPS,ot as BRAND_INKS,Ne as CARD_GAPS,He as CARD_SHADOWS,ye as CORNER_RADIUS_GRID,S as CORNER_RADIUS_MAX,p as CORNER_RADIUS_MIN,De as CORNER_STYLES,we as CORNER_STYLE_TO_PX,ke as DEFAULT_CARD_GAP,Le as DEFAULT_CARD_SHADOW,Me as DEFAULT_CORNER_STYLE,q as DEFAULT_HEADING_COMPRESSION,Ft as DEFAULT_HEADING_TYPOGRAPHY,$e as DEFAULT_HOVER_EFFECT,Xt as DEFAULT_SHADOW_COLOR,Ct as DEFAULT_SIZES,l as DEFAULT_SURFACES,tt as DEFAULT_SWITCH_SHOWN,se as DEFAULT_THEMES,et as DEFAULT_THEME_MODE,ae as DEFAULT_THEME_VALUE,st as GRADE_LABEL,Q as HEADING_CASES,Ye as HEADING_COMPRESSIONS,Be as HEADING_MAX_PX_MAX,ze as HEADING_MAX_PX_MIN,w as HEADING_WEIGHT_MAX,y as HEADING_WEIGHT_MIN,Fe as HOVER_EFFECTS,Pe as IDENTITY_CARD_GAP,j as IDENTITY_CARD_SHADOW,Ue as IDENTITY_HOVER_EFFECT,$ as OVERLAY_INK_DARK,fe as OVERLAY_INK_LIGHT,de as READABILITY_AA,ge as READABILITY_AA_LARGE,Rt as SCALE_OF_STEP,L as SITE_THEME_KEY,W as SIZE_STEPS,Ie as TEXT_SIZE_MAX,be as TEXT_SIZE_MIN,P as THEME_DAY_END_HOUR,k as THEME_DAY_START_HOUR,ve as THEME_MODES,qe as THEME_MODE_KEY,ce as THEME_STORAGE_KEY,At as THEME_SURFACE_KEYS,Qe as THEME_SWITCH_HIDE,Je as THEME_SWITCH_KEY,Te as TYPE_GROUPS,bt as TYPE_GROUP_LABELS,m as accentInk,xt as bandPresetFor,_t as bandPresetIndex,ct as brandTheme,rt as buildThemeBootScript,Ht as cardGapAttr,wt as cardShadowAttr,Pt as compressionMetrics,v as contrastRatio,O as cornerRadiusTokens,Mt as cornerStyleTokens,St as darkBandIndex,Ae as darkPresetIndex,lt as darkerAccents,ut as fillIsDark,at as gradeContrast,kt as headingCompressionAttr,Ut as headingTypographyFromRow,$t as headingTypographyStyle,Gt as headingTypographyToRow,Lt as hoverEffectAttr,ie as isDayHour,Ge as normalizeCardGap,V as normalizeCardShadow,M as normalizeCornerRadius,Oe as normalizeCornerStyle,J as normalizeHeadingCompression,H as normalizeHeadingTypography,Z as normalizeHoverEffect,Re as normalizeSize,Ce as normalizeSizes,F as normalizeTheme,u as normalizeThemeColors,nt as resolveTheme,_e as resolvedButtonInk,X as sectionBandTone,f as selectedThemeColors,Nt as shadowColorTokens,gt as siteButtonPaint,Ot as siteButtonRadiusPx,yt as siteCornerRadiusTokens,Xe as siteThemeMetadata,Yt as siteThemeOf,Et as surfacePresetIndex,pt as surfaceTwoTone,ht as themeAccentStyle,b as themeButtonColour,U as themeButtonInk,dt as themeButtonStyle,ft as themeColorStyle,he as themeLightInk,mt as themePresetAccentVars,Tt as themeSurfaceStyle,it as themeSwatchColors,It as typeScaleGroupOfClassName,Dt as typeSizesStyle};
@@ -1,3 +1,5 @@
1
+ import { type RootPadAttrs } from "../lib/content/section-padding.js";
2
+ export declare const crumbPad: (props: Record<string, unknown>) => RootPadAttrs | null;
1
3
  export interface BreadcrumbItem {
2
4
  label: string;
3
5
  href?: string;
@@ -7,5 +9,6 @@ export interface BreadcrumbProps {
7
9
  current?: string;
8
10
  meta?: string;
9
11
  editing?: boolean;
12
+ pad?: RootPadAttrs | null;
10
13
  }
11
- export default function Breadcrumb({ items, current, meta, editing }: BreadcrumbProps): import("react").JSX.Element | null;
14
+ export default function Breadcrumb({ items, current, meta, editing, pad }: BreadcrumbProps): import("react").JSX.Element | null;
@@ -1 +1 @@
1
- import{jsx as r,jsxs as s,Fragment as f}from"react/jsx-runtime";import{Fragment as x}from"react";import{SiteLink as h}from"../lib/site-runtime.js";import{renderChrome as c,renderGold as b}from"./goldPhrases.js";import{say as u}from"../../format/lib/editor-words.js";function g({items:p,current:l,meta:a,editing:d=!1}){const i=(p??[]).filter(e=>e?.label?.trim()),m=l?.trim()?[...i,{label:l}]:i,t=m.length>0?m:d?[{label:u("Breadcrumb")}]:[];return t.length===0&&!a?null:r("nav",{className:"border-b border-line px-[var(--sf-site-gutter,40px)] py-6 font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.2em] text-fg-dim max-view-tablet:px-[min(20px,var(--sf-site-gutter,40px))] max-view-tablet:py-4",children:s("div",{className:"mx-auto flex max-w-[var(--sf-content-cap,none)] items-center gap-4",children:[t.map((e,n)=>{const o=n===t.length-1;return s(x,{children:[n>0&&r("span",{className:"opacity-40",children:"/"}),e.href&&!o?r(h,{newTab:"auto",href:e.href,className:"hover:text-fg",children:c(e.label)}):r("span",{className:o?"text-fg":void 0,children:c(e.label)})]},n)}),a&&s(f,{children:[r("span",{className:"opacity-40",children:"·"}),r("span",{children:b(a)})]})]})})}export{g as default};
1
+ import{jsx as t,jsxs as o,Fragment as x}from"react/jsx-runtime";import{Fragment as b}from"react";import{SiteLink as g}from"../lib/site-runtime.js";import{renderChrome as d,renderGold as v}from"./goldPhrases.js";import{say as N}from"../../format/lib/editor-words.js";import{PY_CLASS as _,SECTION_PAD_KEYS as y,framePadAttrs as O,padValuesOf as P,tierFramesOf as S}from"../lib/content/section-padding.js";import{CRUMB_PAD as i}from"../../format/lib/sections/strip-shape.js";import{withSideOnce as w}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as j}from"./SideSpaceOnce.js";const B={16:"max-view-tablet:py-4"},T=a=>O({values:P(a,y,!0),frame:S(i),drawsFrame:!0},!0).root;function C({items:a,current:m,meta:s,editing:u=!1,pad:e}){const h=j(),c=(a??[]).filter(r=>r?.label?.trim()),f=m?.trim()?[...c,{label:m}]:c,n=f.length>0?f:u?[{label:N("Breadcrumb")}]:[];return n.length===0&&!s?null:t("nav",{className:w(["border-b border-line px-[var(--sf-site-gutter,40px)]",e?null:_.all[i.top],"font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.2em] text-fg-dim max-view-tablet:px-[min(20px,var(--sf-site-gutter,40px))]",e?e.className:B[i.topPhone]].filter(Boolean).join(" "),h),style:e&&Object.keys(e.style).length?e.style:void 0,...e?.attrs,children:o("div",{className:"mx-auto flex max-w-[var(--sf-content-cap,none)] items-center gap-4",children:[n.map((r,l)=>{const p=l===n.length-1;return o(b,{children:[l>0&&t("span",{className:"opacity-40",children:"/"}),r.href&&!p?t(g,{newTab:"auto",href:r.href,className:"hover:text-fg",children:d(r.label)}):t("span",{className:p?"text-fg":void 0,children:d(r.label)})]},l)}),s&&o(x,{children:[t("span",{className:"opacity-40",children:"·"}),t("span",{children:v(s)})]})]})})}export{T as crumbPad,C as default};
@@ -1 +1 @@
1
- import{jsx as n,Fragment as u,jsxs as d}from"react/jsx-runtime";import{HideTaker as b}from"./ViewHideRoot.js";import f from"./SectionEyebrow.js";import{InsideSiteColumn as c}from"./SiteGutterFrame.js";import{renderHeadline as g}from"./goldPhrases.js";import{cardColumns as m}from"../../format/lib/content/card-columns.js";const p={headingMediumUpTo800:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMedium:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]"},v="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] py-[72px] max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",w="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-0 pb-[72px] max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",M="sf-card grid grid-cols-1 gap-px border border-line bg-line view-tablet:[grid-template-columns:repeat(var(--cd-cols),minmax(0,1fr))]",t={phone:{tl:"max-view-tablet:[border-top-left-radius:inherit]",tr:"max-view-tablet:[border-top-right-radius:inherit]",bl:"max-view-tablet:[border-bottom-left-radius:inherit]",br:"max-view-tablet:[border-bottom-right-radius:inherit]"},wide:{tl:"view-tablet:[border-top-left-radius:inherit]",tr:"view-tablet:[border-top-right-radius:inherit]",bl:"view-tablet:[border-bottom-left-radius:inherit]",br:"view-tablet:[border-bottom-right-radius:inherit]"}};function I(r,i,o){const a=m(o),s=i-1,l=Math.floor(s/a)*a,e=[];return r===0&&e.push(t.phone.tl,t.phone.tr,t.wide.tl),r===s&&e.push(t.phone.bl,t.phone.br),r===a-1&&i>=a&&e.push(t.wide.tr),r===l&&e.push(t.wide.bl),r===s&&i%a===0&&e.push(t.wide.br),e.join(" ")}function E({look:r,eyebrow:i,title:o,columns:a,omitHead:s=!1,editing:l=!1,cards:e}={}){const h=m(a),x=!!(i??"").trim()||!!(o??"").trim();return!l&&!x&&!e?null:n(b,{as:"section",className:"relative z-[2] bg-surface",children:d("div",{className:s?w:v,children:[s?null:d(u,{children:[(i??"").trim()&&n(f,{text:i??"",look:r,className:"mb-4 block"}),(o??"").trim()&&n("h2",{className:`mb-9 font-heading2 ${p.headingMedium} font-medium uppercase leading-none tracking-[-0.02em] text-fg max-view-wide:mb-7 ${p.headingMediumUpTo800}`,children:g(o??"",!1)})]}),e?n("div",{className:M,style:{"--cd-cols":String(h),overflowY:"visible"},children:n(c,{children:e})}):null]})})}export{m as cardColumns,I as cardGridCornerClasses,E as default};
1
+ import{jsx as n,Fragment as f,jsxs as d}from"react/jsx-runtime";import{HideTaker as u}from"./ViewHideRoot.js";import b from"./SectionEyebrow.js";import{InsideSiteColumn as g}from"./SiteGutterFrame.js";import{renderHeadline as v}from"./goldPhrases.js";import{cardColumns as l}from"../../format/lib/content/card-columns.js";import{withSideOnce as w}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as M}from"./SideSpaceOnce.js";const p={headingMediumUpTo800:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMedium:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]"},E="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] py-[72px] max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",N="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-0 pb-[72px] max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",_="sf-card grid grid-cols-1 gap-px border border-line bg-line view-tablet:[grid-template-columns:repeat(var(--cd-cols),minmax(0,1fr))]",t={phone:{tl:"max-view-tablet:[border-top-left-radius:inherit]",tr:"max-view-tablet:[border-top-right-radius:inherit]",bl:"max-view-tablet:[border-bottom-left-radius:inherit]",br:"max-view-tablet:[border-bottom-right-radius:inherit]"},wide:{tl:"view-tablet:[border-top-left-radius:inherit]",tr:"view-tablet:[border-top-right-radius:inherit]",bl:"view-tablet:[border-bottom-left-radius:inherit]",br:"view-tablet:[border-bottom-right-radius:inherit]"}};function z(i,r,o){const a=l(o),s=r-1,m=Math.floor(s/a)*a,e=[];return i===0&&e.push(t.phone.tl,t.phone.tr,t.wide.tl),i===s&&e.push(t.phone.bl,t.phone.br),i===a-1&&r>=a&&e.push(t.wide.tr),i===m&&e.push(t.wide.bl),i===s&&r%a===0&&e.push(t.wide.br),e.join(" ")}function S({look:i,eyebrow:r,title:o,columns:a,omitHead:s=!1,editing:m=!1,cards:e}={}){const h=M(),x=l(a),c=!!(r??"").trim()||!!(o??"").trim();return!m&&!c&&!e?null:n(u,{as:"section",className:"relative z-[2] bg-surface",children:d("div",{className:w(s?N:E,h),children:[s?null:d(f,{children:[(r??"").trim()&&n(b,{text:r??"",look:i,className:"mb-4 block"}),(o??"").trim()&&n("h2",{className:`mb-9 font-heading2 ${p.headingMedium} font-medium uppercase leading-none tracking-[-0.02em] text-fg max-view-wide:mb-7 ${p.headingMediumUpTo800}`,children:v(o??"",!1)})]}),e?n("div",{className:_,style:{"--cd-cols":String(x),overflowY:"visible"},children:n(g,{children:e})}):null]})})}export{l as cardColumns,z as cardGridCornerClasses,S as default};
@@ -1 +1 @@
1
- import{jsx as e,jsxs as x}from"react/jsx-runtime";import{HideTaker as $}from"./ViewHideRoot.js";import{renderGold as v,renderHeadline as k}from"./goldPhrases.js";const f={headingMediumUpTo800:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMedium:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]",bodySmall:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,16px)]",labelSmall:"text-[length:var(--size-label,10px)]",label:"text-[length:var(--size-label,11px)]",labelLarge:"text-[length:var(--size-label,12px)]"};function b(a){return Number.isInteger(a)?String(a):String(Math.round(a*10)/10)}const y=[100,70,46,30,19,12];function N(a){return`color-mix(in srgb, var(--accent) ${y[a%y.length]}%, var(--bg))`}function w({data:a,suffix:d}){const u=Math.max(...a.map(c=>c.value),0)||1;return e("div",{className:"flex w-full flex-col gap-6",children:a.map((c,t)=>x("div",{children:[x("div",{className:"mb-2 flex items-baseline justify-between gap-4",children:[e("span",{className:`font-mono ${f.label} uppercase tracking-[0.14em] text-fg/60`,children:v(c.label)}),x("span",{className:`font-display ${f.bodyLarge} font-medium text-fg`,children:[b(c.value),d]})]}),e("div",{className:"h-[10px] border border-line bg-bg",children:e("div",{className:"h-full bg-accent",style:{width:`${Math.max(c.value/u*100,c.value===0?0:2)}%`}})})]},t))})}function M({data:a,suffix:d}){const t={l:42,r:42,t:36,b:38},p=640-t.l-t.r,r=300-t.t-t.b,n=Math.max(...a.map(l=>l.value),0)||1,i=a.length>1?p/(a.length-1):0,s=a.map((l,o)=>({x:t.l+(a.length>1?o*i:p/2),y:t.t+r-l.value/n*r})),m=s.map((l,o)=>`${o===0?"M":"L"}${l.x},${l.y}`).join(" "),g=`${m} L${s[s.length-1].x},${t.t+r} L${s[0].x},${t.t+r} Z`;return x("svg",{viewBox:"0 0 640 300",className:"w-full",role:"img","aria-hidden":!0,children:[[.25,.5,.75,1].map(l=>e("line",{x1:t.l,x2:640-t.r,y1:t.t+r*(1-l),y2:t.t+r*(1-l),stroke:"var(--site-line)",strokeWidth:"1"},l)),e("line",{x1:t.l,x2:640-t.r,y1:t.t+r,y2:t.t+r,stroke:"var(--site-line)",strokeWidth:"1.5"}),e("path",{d:g,fill:"var(--accent)",opacity:"0.13"}),e("path",{d:m,fill:"none",stroke:"var(--accent)",strokeWidth:"2.5"}),s.map((l,o)=>x("g",{children:[e("circle",{cx:l.x,cy:l.y,r:"4",fill:"var(--accent)"}),x("text",{x:l.x,y:l.y-12,textAnchor:"middle",className:"font-display",fontSize:"14",fill:"var(--fg)",children:[b(a[o].value),d]}),e("text",{x:l.x,y:288,textAnchor:"middle",className:"font-mono",fontSize:"10",letterSpacing:"0.1em",fill:"var(--fg)",opacity:"0.55",children:a[o].label.toUpperCase()})]},o))]})}function S({data:a,suffix:d}){const u=a.reduce((n,i)=>n+i.value,0)||1,c=80,t=2*Math.PI*c;let p=0;const r=a.map((n,i)=>{const s=n.value/u,m={frac:s,dash:Math.max(s*t-3,0),off:p,ink:N(i)};return p+=s*t,m});return x("div",{className:"flex w-full flex-wrap items-center justify-center gap-10",children:[e("svg",{viewBox:"0 0 200 200",className:"w-[220px] max-w-full -rotate-90",role:"img","aria-hidden":!0,children:r.map((n,i)=>e("circle",{cx:"100",cy:"100",r:c,fill:"none",stroke:n.ink,strokeWidth:"34",strokeDasharray:`${n.dash} ${t-n.dash}`,strokeDashoffset:-n.off},i))}),e("ul",{className:"flex min-w-[200px] flex-1 flex-col gap-3",children:a.map((n,i)=>x("li",{className:"flex items-baseline gap-3",children:[e("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] flex-shrink-0 rotate-45",style:{background:N(i)}}),e("span",{className:`flex-1 font-mono ${f.label} uppercase tracking-[0.12em] text-fg/60`,children:v(n.label)}),e("span",{className:`font-display ${f.bodySmall} font-medium text-fg`,children:d?`${b(n.value)}${d}`:`${Math.round(n.value/u*100)}%`})]},i))})]})}function z({eyebrow:a,title:d,body:u,chartStyle:c,items:t,valueSuffix:p,caption:r,editing:n=!1,omitHead:i=!1}={}){const s=(p??"").trim()===""?"":p??"",m=(t??[]).map(h=>({label:(h.label??"").trim(),value:parseFloat(h.value??"")})).filter(h=>n?!0:h.label&&Number.isFinite(h.value)).map(h=>({label:h.label||"—",value:Number.isFinite(h.value)?h.value:0})),g=!i&&(!!(a??"").trim()||!!(d??"").trim());if(!n&&!g&&m.length===0)return null;const l=c??"bars",o=m.length===0?null:l==="line"&&m.length>1?e(M,{data:m,suffix:s}):l==="donut"?e(S,{data:m,suffix:s}):e(w,{data:m,suffix:s});return i?o?e("div",{className:"w-full",children:o}):null:e($,{as:"section",className:"relative z-[2] border-y border-line bg-surface",children:x("div",{className:"mx-auto grid max-w-[var(--sf-site-width,1600px)] items-center gap-14 px-[var(--sf-site-gutter,40px)] py-[76px] min-[960px]:[grid-template-columns:minmax(0,5fr)_minmax(0,7fr)] max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",children:[x("div",{children:[(a??"").trim()&&e("span",{className:`inline-block bg-accent px-3.5 py-1.5 font-mono ${f.labelLarge} font-semibold uppercase tracking-[0.16em] text-bg`,children:v(a??"")}),(d??"").trim()&&e("h2",{className:`mt-5 font-heading2 ${f.headingMedium} font-medium uppercase leading-[1.04] tracking-[-0.02em] text-fg ${f.headingMediumUpTo800}`,children:k(d??"",!1)}),(u??"").trim()&&e("p",{className:`mt-5 max-w-[46ch] ${f.bodySmall} leading-relaxed text-fg/65`,children:u})]}),x("div",{children:[o,(r??"").trim()&&e("p",{className:`mt-4 font-mono ${f.labelSmall} uppercase tracking-[0.14em] text-fg/40`,children:r})]})]})})}export{z as default};
1
+ import{jsx as e,jsxs as m}from"react/jsx-runtime";import{HideTaker as k}from"./ViewHideRoot.js";import{renderGold as b,renderHeadline as w}from"./goldPhrases.js";import{withSideOnce as M}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as S}from"./SideSpaceOnce.js";const f={headingMediumUpTo800:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMedium:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]",bodySmall:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,16px)]",labelSmall:"text-[length:var(--size-label,10px)]",label:"text-[length:var(--size-label,11px)]",labelLarge:"text-[length:var(--size-label,12px)]"};function y(a){return Number.isInteger(a)?String(a):String(Math.round(a*10)/10)}const N=[100,70,46,30,19,12];function $(a){return`color-mix(in srgb, var(--accent) ${N[a%N.length]}%, var(--bg))`}function z({data:a,suffix:o}){const h=Math.max(...a.map(s=>s.value),0)||1;return e("div",{className:"flex w-full flex-col gap-6",children:a.map((s,t)=>m("div",{children:[m("div",{className:"mb-2 flex items-baseline justify-between gap-4",children:[e("span",{className:`font-mono ${f.label} uppercase tracking-[0.14em] text-fg/60`,children:b(s.label)}),m("span",{className:`font-display ${f.bodyLarge} font-medium text-fg`,children:[y(s.value),o]})]}),e("div",{className:"h-[10px] border border-line bg-bg",children:e("div",{className:"h-full bg-accent",style:{width:`${Math.max(s.value/h*100,s.value===0?0:2)}%`}})})]},t))})}function W({data:a,suffix:o}){const t={l:42,r:42,t:36,b:38},p=640-t.l-t.r,r=300-t.t-t.b,n=Math.max(...a.map(l=>l.value),0)||1,i=a.length>1?p/(a.length-1):0,c=a.map((l,x)=>({x:t.l+(a.length>1?x*i:p/2),y:t.t+r-l.value/n*r})),u=c.map((l,x)=>`${x===0?"M":"L"}${l.x},${l.y}`).join(" "),g=`${u} L${c[c.length-1].x},${t.t+r} L${c[0].x},${t.t+r} Z`;return m("svg",{viewBox:"0 0 640 300",className:"w-full",role:"img","aria-hidden":!0,children:[[.25,.5,.75,1].map(l=>e("line",{x1:t.l,x2:640-t.r,y1:t.t+r*(1-l),y2:t.t+r*(1-l),stroke:"var(--site-line)",strokeWidth:"1"},l)),e("line",{x1:t.l,x2:640-t.r,y1:t.t+r,y2:t.t+r,stroke:"var(--site-line)",strokeWidth:"1.5"}),e("path",{d:g,fill:"var(--accent)",opacity:"0.13"}),e("path",{d:u,fill:"none",stroke:"var(--accent)",strokeWidth:"2.5"}),c.map((l,x)=>m("g",{children:[e("circle",{cx:l.x,cy:l.y,r:"4",fill:"var(--accent)"}),m("text",{x:l.x,y:l.y-12,textAnchor:"middle",className:"font-display",fontSize:"14",fill:"var(--fg)",children:[y(a[x].value),o]}),e("text",{x:l.x,y:288,textAnchor:"middle",className:"font-mono",fontSize:"10",letterSpacing:"0.1em",fill:"var(--fg)",opacity:"0.55",children:a[x].label.toUpperCase()})]},x))]})}function L({data:a,suffix:o}){const h=a.reduce((n,i)=>n+i.value,0)||1,s=80,t=2*Math.PI*s;let p=0;const r=a.map((n,i)=>{const c=n.value/h,u={frac:c,dash:Math.max(c*t-3,0),off:p,ink:$(i)};return p+=c*t,u});return m("div",{className:"flex w-full flex-wrap items-center justify-center gap-10",children:[e("svg",{viewBox:"0 0 200 200",className:"w-[220px] max-w-full -rotate-90",role:"img","aria-hidden":!0,children:r.map((n,i)=>e("circle",{cx:"100",cy:"100",r:s,fill:"none",stroke:n.ink,strokeWidth:"34",strokeDasharray:`${n.dash} ${t-n.dash}`,strokeDashoffset:-n.off},i))}),e("ul",{className:"flex min-w-[200px] flex-1 flex-col gap-3",children:a.map((n,i)=>m("li",{className:"flex items-baseline gap-3",children:[e("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] flex-shrink-0 rotate-45",style:{background:$(i)}}),e("span",{className:`flex-1 font-mono ${f.label} uppercase tracking-[0.12em] text-fg/60`,children:b(n.label)}),e("span",{className:`font-display ${f.bodySmall} font-medium text-fg`,children:o?`${y(n.value)}${o}`:`${Math.round(n.value/h*100)}%`})]},i))})]})}function j({eyebrow:a,title:o,body:h,chartStyle:s,items:t,valueSuffix:p,caption:r,editing:n=!1,omitHead:i=!1}={}){const c=S(),u=(p??"").trim()===""?"":p??"",g=(t??[]).map(d=>({label:(d.label??"").trim(),value:parseFloat(d.value??"")})).filter(d=>n?!0:d.label&&Number.isFinite(d.value)).map(d=>({label:d.label||"—",value:Number.isFinite(d.value)?d.value:0})),l=!i&&(!!(a??"").trim()||!!(o??"").trim());if(!n&&!l&&g.length===0)return null;const x=s??"bars",v=g.length===0?null:x==="line"&&g.length>1?e(W,{data:g,suffix:u}):x==="donut"?e(L,{data:g,suffix:u}):e(z,{data:g,suffix:u});return i?v?e("div",{className:"w-full",children:v}):null:e(k,{as:"section",className:"relative z-[2] border-y border-line bg-surface",children:m("div",{className:M("mx-auto grid max-w-[var(--sf-site-width,1600px)] items-center gap-14 px-[var(--sf-site-gutter,40px)] py-[76px] min-[960px]:[grid-template-columns:minmax(0,5fr)_minmax(0,7fr)] max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",c),children:[m("div",{children:[(a??"").trim()&&e("span",{className:`inline-block bg-accent px-3.5 py-1.5 font-mono ${f.labelLarge} font-semibold uppercase tracking-[0.16em] text-bg`,children:b(a??"")}),(o??"").trim()&&e("h2",{className:`mt-5 font-heading2 ${f.headingMedium} font-medium uppercase leading-[1.04] tracking-[-0.02em] text-fg ${f.headingMediumUpTo800}`,children:w(o??"",!1)}),(h??"").trim()&&e("p",{className:`mt-5 max-w-[46ch] ${f.bodySmall} leading-relaxed text-fg/65`,children:h})]}),m("div",{children:[v,(r??"").trim()&&e("p",{className:`mt-4 font-mono ${f.labelSmall} uppercase tracking-[0.14em] text-fg/40`,children:r})]})]})})}export{j as default};
@@ -1,2 +1,2 @@
1
- "use client";import{jsx as t,jsxs as i,Fragment as O}from"react/jsx-runtime";import{HideTaker as F}from"./ViewHideRoot.js";import{PictureZoom as G}from"./PictureZoom.js";import{FILLS_ITS_FRAME as V}from"../../format/lib/content/image-aspect.js";import{EDITORIAL_COLUMN as W}from"../../format/lib/content/page-width.js";import{SiteImage as q}from"../lib/site-runtime.js";import{useEffect as J,useState as Z}from"react";import{stripMarkup as K}from"../../format/lib/markup.js";import Q from"./EditorialSectionHead.js";import X from"./SectionEyebrow.js";import{scrollBehavior as j}from"./useReducedMotion.js";import{renderGold as H,renderHeadline as Y}from"./goldPhrases.js";import{CONTACT_LOCATIONS_CARDS_PLACEHOLDER as ee,CONTACT_LOCATIONS_DEFAULTS as f,parseLocationTileShape as te,splitLegacyRegion as ne}from"../../format/lib/content/contact.js";import{galleryCardRatioClass as ie}from"../../format/lib/content/gallery-card-layout.js";import{jumpHighlightCss as oe,NEW_TAB_ATTRS as re}from"../../format/lib/content/box-link.js";import{hasMapCoords as z}from"../../format/lib/map-styles.js";import{useRootIsDark as ae}from"efficient-shell/theme";import{bucketByGroup as se,groupColsClass as $}from"../../format/lib/locations-grid.js";import{LocationGroupHeader as le}from"./LocationGroupHeader.js";import ce,{DirectionsLink as me,directionsHref as pe}from"./LocationMap.js";import{phoneHref as de}from"../../format/lib/links/phone-href.js";import{scrim as ue}from"../../format/lib/content/scrim.js";import{PHOTO_HOST_ATTR as he,resolveImageTreatment as fe}from"../../format/lib/content/image-treatment.js";import{pictureHoverOf as ge}from"../../format/lib/animation/hover.js";import xe from"./PhotoHoverSheet.js";import{nonEmptyString as be}from"../../format/lib/non-empty-string.js";const ve=oe({box:".contact-loc",lit:['.contact-loc[data-active="true"]'],first:o=>[`${o} > div:first-child`]}),E=o=>be(o?.photo)?.trim()||void 0;function M({value:o}){if(typeof o=="string"){const n=o.split(`
2
- `);return t(O,{children:n.map((c,a)=>i("span",{children:[c,a<n.length-1?t("br",{}):null]},a))})}return t(O,{children:o})}function ye(){return t("div",{className:"absolute inset-0 flex items-center justify-center",style:{background:"repeating-linear-gradient(45deg, rgba(201,164,97,.05) 0 1px, transparent 1px 14px), linear-gradient(135deg, var(--site-surface-2), var(--site-surface))"},children:i("svg",{width:"34",height:"34",viewBox:"0 0 24 24",fill:"none",stroke:"var(--fg-dim)",strokeWidth:1.4,"aria-hidden":"true",style:{opacity:.4},children:[t("rect",{x:"3",y:"4",width:"18",height:"16",rx:"1.5"}),t("circle",{cx:"8.5",cy:"9.5",r:"1.6"}),t("path",{d:"M21 16l-5-5-4 4-2-2-7 7"})]})})}function Ne({sectionNumber:o=f.sectionNumber,heading:n=f.heading,tagline:c=f.tagline,galleryKicker:a=f.galleryKicker,galleryHint:u=f.galleryHint,locations:m=ee,mapTheme:g="auto",imageShape:y,pictureHover:x=ge({},"ContactLocations"),editing:s,nodeId:h}){const r=fe(void 0,void 0,x),L=r.className?{[he]:""}:{},p=!ae({whenUnset:!0}),[b,C]=Z(null),N=e=>`loc-${e}`,B=e=>{C(e),typeof document<"u"&&document.getElementById(e)?.scrollIntoView({behavior:j(),block:"start"}),!s&&typeof window<"u"&&window.history?.replaceState&&window.history.replaceState(null,"",`#${e}`)};J(()=>{if(typeof window>"u")return;const e=window.location.hash.replace(/^#/,"");!e||!document.getElementById(e)||(C(e),requestAnimationFrame(()=>{document.getElementById(e)?.scrollIntoView({behavior:j(),block:"start"})}))},[]);const P=ie(te(y)),k=(e,d)=>s&&h?`${e}:${d}`:void 0,I=m.some(e=>E(e)!==void 0),R=m.length>0&&(s||I),D=m.some(e=>z(Number(e?.lat),Number(e?.lng))),_=se(m,e=>String(e.group??""),e=>String(e.groupName??""));return t(F,{as:"section",id:"studios",className:"scroll-mt-24 border-b border-line py-[100px] max-view-desktop:py-[60px]",style:p?void 0:{background:"var(--section-bg)"},children:i("div",{className:W,children:[t("style",{dangerouslySetInnerHTML:{__html:ve}}),t(xe,{sheet:I?r.sheet:void 0}),(o||n||c)&&t(Q,{num:o,title:n?Y(n,!0):void 0,desc:c?H(c):void 0,spaceBelow:"mb-10"}),R&&i("div",{className:"mb-12",children:[(a||u)&&i("div",{className:"mb-5 flex items-baseline justify-between gap-6 border-b border-line pb-4",children:[a&&t(X,{text:a,size:12}),u&&t("span",{className:"font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.22em] text-fg-dim",children:H(u)})]}),t("div",{className:"flex flex-col gap-6",children:_.map((e,d)=>{const v=e.items.length===1;return i("div",{children:[e.key&&t("div",{className:"mb-2.5 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.3em] text-accent",children:e.key}),t("div",{className:["grid gap-[2px] border border-line bg-line",$(e.items.length),e.items.length>1?"max-[700px]:grid-cols-2":""].join(" "),children:e.items.map(({item:l,index:w})=>{const S=String(l?.name??""),T=E(l),A=N(w);return i("a",{href:`#${A}`,"aria-label":`Jump to ${S||"location"} map`,onClick:U=>{U.preventDefault(),B(A)},"data-loc-pick":k(w,"image"),...L,className:["group relative block",P,"overflow-hidden bg-bg outline-none focus-visible:ring-2 focus-visible:ring-accent",v?"max-h-[440px]":""].join(" "),children:[t(G,{fill:T?V:null,children:T?t(q,{src:T,alt:K(S||"Location"),fill:!0,sizes:v?"100vw":"(max-width: 700px) 50vw, 33vw",className:`object-cover${r.className?` ${r.className}`:""}`,...r.style?{style:r.style}:{}}):t(ye,{})}),t("div",{className:"pointer-events-none absolute inset-0",style:{background:`linear-gradient(180deg, transparent 50%, ${ue(.85)} 100%)`}}),t("figcaption",{className:"absolute inset-x-0 bottom-0 z-[1] flex items-center justify-start gap-2 px-3 py-3 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.22em] text-overlay-fg/85",children:t("span",{children:S})})]},w)})})]},e.key?`g:${e.key}`:`ungrouped:${d}`)})})]}),_.map((e,d)=>i("div",{className:d===0?"":"mt-10",children:[e.key&&t(le,{groupKey:e.key,name:e.name,count:e.items.length}),t("div",{className:["grid gap-[2px] border border-line bg-line",$(e.items.length),e.items.length>1?"max-view-desktop:grid-cols-1":""].join(" "),children:e.items.map(({item:v,index:l})=>t(ke,{id:N(l),card:v,active:b===N(l),mapTheme:g,mapPick:k(l,"map"),cityPick:k(l,"city"),editing:s},l))})]},e.key?`g:${e.key}`:`ungrouped:${d}`)),D&&i("p",{className:"mt-8 text-right font-mono text-[10px] uppercase tracking-[0.25em] text-fg-dim/50",children:["Location coordinates ©"," ",t("a",{href:"https://www.openstreetmap.org/copyright",...re,className:"hover:text-accent",children:"OpenStreetMap contributors"})]})]})})}function ke({id:o,card:n,active:c,mapTheme:a,mapPick:u,cityPick:m,editing:g}){const y=de(n.phone),x=ne(n.region),s=String(n.state??"").trim()||x.state,h=String(n.country??"").trim()||x.country,r=[s,h].filter(Boolean).join(" · "),p=z(Number(n.lat),Number(n.lng))||!!g,b=pe(String(n.mapsUrl??""),String(n.name??""),s,h);return i("article",{id:o,"data-active":c?"true":void 0,"data-loc-pick":m,className:p?"contact-loc grid min-h-[840px] scroll-mt-[120px] grid-rows-[auto_1fr] bg-bg max-view-desktop:min-h-0":"contact-loc grid scroll-mt-[120px] bg-bg",children:[i("div",{className:p?"flex min-h-[280px] flex-col gap-3 border-b border-line px-7 py-7":"flex flex-col gap-3 px-7 py-7",children:[i("div",{className:"flex items-start justify-between gap-3.5",children:[i("div",{children:[n.name&&t("div",{className:"font-heading3 text-[length:var(--size-headingSmall,30px)] font-medium uppercase leading-none tracking-[-0.02em]",children:n.name}),r&&t("div",{className:"mt-1.5 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.24em] text-accent",children:r})]}),n.timezone&&t("span",{className:"whitespace-nowrap border border-line px-2.5 py-1.5 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.22em] text-fg-dim",children:n.timezone})]}),n.address!=null&&n.address!==""&&t("div",{className:"mt-1.5 font-display text-[length:var(--size-body,14px)] leading-[1.5] text-fg-dim",children:t(M,{value:n.address})}),n.phone&&t("div",{children:t("a",{href:y,className:"font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.18em] text-fg hover:text-accent",children:n.phone})}),n.hours!=null&&n.hours!==""&&t("div",{className:"font-mono text-[length:var(--size-label,12px)] uppercase leading-[1.7] tracking-[0.18em] text-fg-dim",children:t(M,{value:n.hours})}),!p&&b&&t("div",{children:t(me,{href:b})})]}),p&&t(ce,{name:String(n.name??""),state:s,country:h,lat:Number(n.lat),lng:Number(n.lng),mapsUrl:String(n.mapsUrl??""),mapTheme:a,pick:u,editing:g})]})}export{Ne as default};
1
+ "use client";import{jsx as t,jsxs as i,Fragment as A}from"react/jsx-runtime";import{HideTaker as G}from"./ViewHideRoot.js";import{PictureZoom as V}from"./PictureZoom.js";import{FILLS_ITS_FRAME as W}from"../../format/lib/content/image-aspect.js";import{EDITORIAL_COLUMN as q,withSideOnce as J}from"../../format/lib/content/page-width.js";import{SiteImage as Z}from"../lib/site-runtime.js";import{useEffect as K,useState as Q}from"react";import{stripMarkup as X}from"../../format/lib/markup.js";import Y from"./EditorialSectionHead.js";import ee from"./SectionEyebrow.js";import{scrollBehavior as j}from"./useReducedMotion.js";import{renderGold as H,renderHeadline as te}from"./goldPhrases.js";import{CONTACT_LOCATIONS_CARDS_PLACEHOLDER as ne,CONTACT_LOCATIONS_DEFAULTS as f,parseLocationTileShape as ie,splitLegacyRegion as oe}from"../../format/lib/content/contact.js";import{galleryCardRatioClass as re}from"../../format/lib/content/gallery-card-layout.js";import{jumpHighlightCss as ae,NEW_TAB_ATTRS as se}from"../../format/lib/content/box-link.js";import{hasMapCoords as z}from"../../format/lib/map-styles.js";import{useRootIsDark as le}from"efficient-shell/theme";import{bucketByGroup as ce,groupColsClass as $}from"../../format/lib/locations-grid.js";import{LocationGroupHeader as me}from"./LocationGroupHeader.js";import pe,{DirectionsLink as de,directionsHref as ue}from"./LocationMap.js";import{phoneHref as he}from"../../format/lib/links/phone-href.js";import{scrim as fe}from"../../format/lib/content/scrim.js";import{PHOTO_HOST_ATTR as ge,resolveImageTreatment as xe}from"../../format/lib/content/image-treatment.js";import{pictureHoverOf as be}from"../../format/lib/animation/hover.js";import ve from"./PhotoHoverSheet.js";import{nonEmptyString as ye}from"../../format/lib/non-empty-string.js";import{useSideSpaceOnce as Ne}from"./SideSpaceOnce.js";const ke=ae({box:".contact-loc",lit:['.contact-loc[data-active="true"]'],first:o=>[`${o} > div:first-child`]}),E=o=>ye(o?.photo)?.trim()||void 0;function M({value:o}){if(typeof o=="string"){const n=o.split(`
2
+ `);return t(A,{children:n.map((l,r)=>i("span",{children:[l,r<n.length-1?t("br",{}):null]},r))})}return t(A,{children:o})}function we(){return t("div",{className:"absolute inset-0 flex items-center justify-center",style:{background:"repeating-linear-gradient(45deg, rgba(201,164,97,.05) 0 1px, transparent 1px 14px), linear-gradient(135deg, var(--site-surface-2), var(--site-surface))"},children:i("svg",{width:"34",height:"34",viewBox:"0 0 24 24",fill:"none",stroke:"var(--fg-dim)",strokeWidth:1.4,"aria-hidden":"true",style:{opacity:.4},children:[t("rect",{x:"3",y:"4",width:"18",height:"16",rx:"1.5"}),t("circle",{cx:"8.5",cy:"9.5",r:"1.6"}),t("path",{d:"M21 16l-5-5-4 4-2-2-7 7"})]})})}function Se({sectionNumber:o=f.sectionNumber,heading:n=f.heading,tagline:l=f.tagline,galleryKicker:r=f.galleryKicker,galleryHint:u=f.galleryHint,locations:m=ne,mapTheme:g="auto",imageShape:N,pictureHover:x=be({},"ContactLocations"),editing:a,nodeId:h}){const b=Ne(),c=xe(void 0,void 0,x),p=c.className?{[ge]:""}:{},v=!le({whenUnset:!0}),[B,C]=Q(null),k=e=>`loc-${e}`,P=e=>{C(e),typeof document<"u"&&document.getElementById(e)?.scrollIntoView({behavior:j(),block:"start"}),!a&&typeof window<"u"&&window.history?.replaceState&&window.history.replaceState(null,"",`#${e}`)};K(()=>{if(typeof window>"u")return;const e=window.location.hash.replace(/^#/,"");!e||!document.getElementById(e)||(C(e),requestAnimationFrame(()=>{document.getElementById(e)?.scrollIntoView({behavior:j(),block:"start"})}))},[]);const R=re(ie(N)),w=(e,d)=>a&&h?`${e}:${d}`:void 0,I=m.some(e=>E(e)!==void 0),D=m.length>0&&(a||I),U=m.some(e=>z(Number(e?.lat),Number(e?.lng))),O=ce(m,e=>String(e.group??""),e=>String(e.groupName??""));return t(G,{as:"section",id:"studios",className:"scroll-mt-24 border-b border-line py-[100px] max-view-desktop:py-[60px]",style:v?void 0:{background:"var(--section-bg)"},children:i("div",{className:J(q,b),children:[t("style",{dangerouslySetInnerHTML:{__html:ke}}),t(ve,{sheet:I?c.sheet:void 0}),(o||n||l)&&t(Y,{num:o,title:n?te(n,!0):void 0,desc:l?H(l):void 0,spaceBelow:"mb-10"}),D&&i("div",{className:"mb-12",children:[(r||u)&&i("div",{className:"mb-5 flex items-baseline justify-between gap-6 border-b border-line pb-4",children:[r&&t(ee,{text:r,size:12}),u&&t("span",{className:"font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.22em] text-fg-dim",children:H(u)})]}),t("div",{className:"flex flex-col gap-6",children:O.map((e,d)=>{const y=e.items.length===1;return i("div",{children:[e.key&&t("div",{className:"mb-2.5 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.3em] text-accent",children:e.key}),t("div",{className:["grid gap-[2px] border border-line bg-line",$(e.items.length),e.items.length>1?"max-[700px]:grid-cols-2":""].join(" "),children:e.items.map(({item:s,index:S})=>{const T=String(s?.name??""),L=E(s),_=k(S);return i("a",{href:`#${_}`,"aria-label":`Jump to ${T||"location"} map`,onClick:F=>{F.preventDefault(),P(_)},"data-loc-pick":w(S,"image"),...p,className:["group relative block",R,"overflow-hidden bg-bg outline-none focus-visible:ring-2 focus-visible:ring-accent",y?"max-h-[440px]":""].join(" "),children:[t(V,{fill:L?W:null,children:L?t(Z,{src:L,alt:X(T||"Location"),fill:!0,sizes:y?"100vw":"(max-width: 700px) 50vw, 33vw",className:`object-cover${c.className?` ${c.className}`:""}`,...c.style?{style:c.style}:{}}):t(we,{})}),t("div",{className:"pointer-events-none absolute inset-0",style:{background:`linear-gradient(180deg, transparent 50%, ${fe(.85)} 100%)`}}),t("figcaption",{className:"absolute inset-x-0 bottom-0 z-[1] flex items-center justify-start gap-2 px-3 py-3 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.22em] text-overlay-fg/85",children:t("span",{children:T})})]},S)})})]},e.key?`g:${e.key}`:`ungrouped:${d}`)})})]}),O.map((e,d)=>i("div",{className:d===0?"":"mt-10",children:[e.key&&t(me,{groupKey:e.key,name:e.name,count:e.items.length}),t("div",{className:["grid gap-[2px] border border-line bg-line",$(e.items.length),e.items.length>1?"max-view-desktop:grid-cols-1":""].join(" "),children:e.items.map(({item:y,index:s})=>t(Te,{id:k(s),card:y,active:B===k(s),mapTheme:g,mapPick:w(s,"map"),cityPick:w(s,"city"),editing:a},s))})]},e.key?`g:${e.key}`:`ungrouped:${d}`)),U&&i("p",{className:"mt-8 text-right font-mono text-[10px] uppercase tracking-[0.25em] text-fg-dim/50",children:["Location coordinates ©"," ",t("a",{href:"https://www.openstreetmap.org/copyright",...se,className:"hover:text-accent",children:"OpenStreetMap contributors"})]})]})})}function Te({id:o,card:n,active:l,mapTheme:r,mapPick:u,cityPick:m,editing:g}){const N=he(n.phone),x=oe(n.region),a=String(n.state??"").trim()||x.state,h=String(n.country??"").trim()||x.country,b=[a,h].filter(Boolean).join(" · "),p=z(Number(n.lat),Number(n.lng))||!!g,v=ue(String(n.mapsUrl??""),String(n.name??""),a,h);return i("article",{id:o,"data-active":l?"true":void 0,"data-loc-pick":m,className:p?"contact-loc grid min-h-[840px] scroll-mt-[120px] grid-rows-[auto_1fr] bg-bg max-view-desktop:min-h-0":"contact-loc grid scroll-mt-[120px] bg-bg",children:[i("div",{className:p?"flex min-h-[280px] flex-col gap-3 border-b border-line px-7 py-7":"flex flex-col gap-3 px-7 py-7",children:[i("div",{className:"flex items-start justify-between gap-3.5",children:[i("div",{children:[n.name&&t("div",{className:"font-heading3 text-[length:var(--size-headingSmall,30px)] font-medium uppercase leading-none tracking-[-0.02em]",children:n.name}),b&&t("div",{className:"mt-1.5 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.24em] text-accent",children:b})]}),n.timezone&&t("span",{className:"whitespace-nowrap border border-line px-2.5 py-1.5 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.22em] text-fg-dim",children:n.timezone})]}),n.address!=null&&n.address!==""&&t("div",{className:"mt-1.5 font-display text-[length:var(--size-body,14px)] leading-[1.5] text-fg-dim",children:t(M,{value:n.address})}),n.phone&&t("div",{children:t("a",{href:N,className:"font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.18em] text-fg hover:text-accent",children:n.phone})}),n.hours!=null&&n.hours!==""&&t("div",{className:"font-mono text-[length:var(--size-label,12px)] uppercase leading-[1.7] tracking-[0.18em] text-fg-dim",children:t(M,{value:n.hours})}),!p&&v&&t("div",{children:t(de,{href:v})})]}),p&&t(pe,{name:String(n.name??""),state:a,country:h,lat:Number(n.lat),lng:Number(n.lng),mapsUrl:String(n.mapsUrl??""),mapTheme:r,pick:u,editing:g})]})}export{Se as default};
@@ -1 +1 @@
1
- "use client";import{jsx as e,jsxs as i,Fragment as y}from"react/jsx-runtime";import{HideTaker as M}from"./ViewHideRoot.js";import{useEffect as D,useState as u}from"react";import h from"./PartStyledKind.js";import{renderGold as I,renderHeadline as L}from"./goldPhrases.js";import{PART_KIND_ATTR as g}from"../lib/document/text-parts.js";import{TEXT_KIND_NAME as v,TEXT_KIND_VALUE as N}from"../../format/lib/sections/section-text-kinds.js";const m={headingSmall:"text-[length:min(var(--size-headingSmall,32px),var(--sf-heading-max,9999px))]",labelSmall:"text-[length:var(--size-label,11px)]",labelLarge:"text-[length:var(--size-label,12px)]"},$=24*3600*1e3,z=[{key:"hours",label:"Hours"},{key:"minutes",label:"Minutes"},{key:"seconds",label:"Seconds"}];function A(t,n){return Math.max(0,Math.ceil((t-n)/1e3))}function j(t){const n=Date.parse((t??"").trim());return Number.isFinite(n)?n:null}const H=t=>String(t).padStart(2,"0");function K({title:t,zeroText:n,endsAt:w,showUnits:b=!0,editing:o=!1,omitHead:S=!1}={}){const k=j(w),[T]=u(()=>Date.now()+$),r=k??(o?T:null),[_,d]=u(()=>Date.now());if(D(()=>{if(r===null)return;d(Date.now());const l=window.setInterval(()=>d(Date.now()),1e3);return()=>window.clearInterval(l)},[r]),r===null)return null;const a=A(r,_),s=[Math.floor(a/3600),Math.floor(a%3600/60),a%60],p=(t??"").trim(),c=(n??"").trim(),E=`${s[0]} hours, ${s[1]} minutes and ${s[2]} seconds left`,f=a===0?c&&e("p",{className:`font-heading3 ${m.headingSmall} font-medium leading-tight text-fg`,children:L(c,!1)}):i(y,{children:[e("span",{className:"sr-only",children:E}),e("div",{"aria-hidden":!0,className:"flex items-start gap-[clamp(8px,2vw,24px)]",children:z.map((l,x)=>i("div",{className:"contents",children:[x>0&&e("span",{className:"font-mono text-[length:clamp(32px,7vw,80px)] leading-none text-accent",children:":"}),i("div",{className:"flex min-w-0 flex-col items-center gap-2",children:[e(h,{kind:N,children:e("span",{"data-countdown-unit":l.key,...o?{[g]:N}:{},suppressHydrationWarning:!0,className:"font-mono text-[length:clamp(40px,8vw,96px)] font-medium leading-none tabular-nums text-fg",children:H(s[x])})}),b&&e(h,{kind:v,children:e("span",{...o?{[g]:v}:{},className:`font-mono ${m.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:l.label})})]})]},l.key))})]});return S?a===0&&!c?null:e("div",{className:"flex flex-col items-center text-center",role:"timer","aria-live":"off",children:f}):e(M,{as:"section",className:"relative z-[2] bg-bg",role:"timer","aria-live":"off",children:i("div",{className:"mx-auto flex max-w-[var(--sf-site-width,1600px)] flex-col items-center gap-4 px-[var(--sf-site-gutter,40px)] py-12 text-center max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",children:[p&&e("p",{className:`font-mono ${m.labelLarge} uppercase tracking-[0.2em] text-fg-dim`,children:I(p)}),f]})})}export{K as default,A as secondsLeft};
1
+ "use client";import{jsx as e,jsxs as i,Fragment as M}from"react/jsx-runtime";import{HideTaker as D}from"./ViewHideRoot.js";import{useEffect as I,useState as u}from"react";import h from"./PartStyledKind.js";import{renderGold as L,renderHeadline as $}from"./goldPhrases.js";import{PART_KIND_ATTR as g}from"../lib/document/text-parts.js";import{TEXT_KIND_NAME as v,TEXT_KIND_VALUE as w}from"../../format/lib/sections/section-text-kinds.js";import{withSideOnce as z}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as A}from"./SideSpaceOnce.js";const m={headingSmall:"text-[length:min(var(--size-headingSmall,32px),var(--sf-heading-max,9999px))]",labelSmall:"text-[length:var(--size-label,11px)]",labelLarge:"text-[length:var(--size-label,12px)]"},j=24*3600*1e3,H=[{key:"hours",label:"Hours"},{key:"minutes",label:"Minutes"},{key:"seconds",label:"Seconds"}];function K(t,n){return Math.max(0,Math.ceil((t-n)/1e3))}function F(t){const n=Date.parse((t??"").trim());return Number.isFinite(n)?n:null}const O=t=>String(t).padStart(2,"0");function P({title:t,zeroText:n,endsAt:N,showUnits:S=!0,editing:o=!1,omitHead:b=!1}={}){const k=A(),T=F(N),[_]=u(()=>Date.now()+j),r=T??(o?_:null),[E,d]=u(()=>Date.now());if(I(()=>{if(r===null)return;d(Date.now());const l=window.setInterval(()=>d(Date.now()),1e3);return()=>window.clearInterval(l)},[r]),r===null)return null;const a=K(r,E),s=[Math.floor(a/3600),Math.floor(a%3600/60),a%60],p=(t??"").trim(),c=(n??"").trim(),y=`${s[0]} hours, ${s[1]} minutes and ${s[2]} seconds left`,f=a===0?c&&e("p",{className:`font-heading3 ${m.headingSmall} font-medium leading-tight text-fg`,children:$(c,!1)}):i(M,{children:[e("span",{className:"sr-only",children:y}),e("div",{"aria-hidden":!0,className:"flex items-start gap-[clamp(8px,2vw,24px)]",children:H.map((l,x)=>i("div",{className:"contents",children:[x>0&&e("span",{className:"font-mono text-[length:clamp(32px,7vw,80px)] leading-none text-accent",children:":"}),i("div",{className:"flex min-w-0 flex-col items-center gap-2",children:[e(h,{kind:w,children:e("span",{"data-countdown-unit":l.key,...o?{[g]:w}:{},suppressHydrationWarning:!0,className:"font-mono text-[length:clamp(40px,8vw,96px)] font-medium leading-none tabular-nums text-fg",children:O(s[x])})}),S&&e(h,{kind:v,children:e("span",{...o?{[g]:v}:{},className:`font-mono ${m.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:l.label})})]})]},l.key))})]});return b?a===0&&!c?null:e("div",{className:"flex flex-col items-center text-center",role:"timer","aria-live":"off",children:f}):e(D,{as:"section",className:"relative z-[2] bg-bg",role:"timer","aria-live":"off",children:i("div",{className:z("mx-auto flex max-w-[var(--sf-site-width,1600px)] flex-col items-center gap-4 px-[var(--sf-site-gutter,40px)] py-12 text-center max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",k),children:[p&&e("p",{className:`font-mono ${m.labelLarge} uppercase tracking-[0.2em] text-fg-dim`,children:L(p)}),f]})})}export{P as default,K as secondsLeft};
@@ -1,7 +1,7 @@
1
- import{jsx as l,jsxs as f}from"react/jsx-runtime";import{slugify as b}from"efficient-shell/format";import{HideTaker as y}from"./ViewHideRoot.js";import{listNumber as v}from"../../format/lib/content/list-number.js";import{renderGold as m}from"./goldPhrases.js";import{storefrontLines as w}from"../../format/lib/markup.js";import{say as c}from"../../format/lib/editor-words.js";import N,{CONTENTS_STICKY_TOP as S}from"./ContentsList.js";function T(r,e){return b(r)||`section-${e+1}`}const x=r=>typeof r=="string"&&r.trim()!=="";function k(r){return(r??[]).filter(e=>x(e.heading)||x(e.label)||x(e.body))}function _(r){const e=new Set;return r.map((i,d)=>{const t=T(i.label||i.heading||"",d);let a=t,o=2;for(;e.has(a);)a=`${t}-${o++}`;return e.add(a),a})}function z(r){const e=[];for(const i of r.replace(/\r\n?/g,`
2
- `).split(/\n[ \t]*\n/))i.split(`
3
- `).map(t=>t.replace(/\s+$/,"")).filter(t=>t.trim()!=="").forEach((t,a)=>{const o=w(t)[0].bullet,n=e.at(-1),s=a===0||!n||n.type==="ul"!==o;if(o){const p=t.slice(2);!s&&n?.type==="ul"?n.items.push(p):e.push({type:"ul",items:[p]})}else!s&&n?.type==="p"?n.text+=`
4
- ${t}`:e.push({type:"p",text:t})});return e}const $=()=>[{label:c("First section"),heading:c("Your *first* section."),body:c(`Write the opening paragraph here.
1
+ import{jsx as c,jsxs as x}from"react/jsx-runtime";import{slugify as y}from"efficient-shell/format";import{HideTaker as v}from"./ViewHideRoot.js";import{listNumber as w}from"../../format/lib/content/list-number.js";import{renderGold as d}from"./goldPhrases.js";import{storefrontLines as S}from"../../format/lib/markup.js";import{say as p}from"../../format/lib/editor-words.js";import N,{CONTENTS_STICKY_TOP as T}from"./ContentsList.js";import{withSideOnce as k}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as _}from"./SideSpaceOnce.js";function z(n,e){return y(n)||`section-${e+1}`}const h=n=>typeof n=="string"&&n.trim()!=="";function O(n){return(n??[]).filter(e=>h(e.heading)||h(e.label)||h(e.body))}function $(n){const e=new Set;return n.map((l,m)=>{const t=z(l.label||l.heading||"",m);let r=t,s=2;for(;e.has(r);)r=`${t}-${s++}`;return e.add(r),r})}function A(n){const e=[];for(const l of n.replace(/\r\n?/g,`
2
+ `).split(/\n[ \t]*\n/))l.split(`
3
+ `).map(t=>t.replace(/\s+$/,"")).filter(t=>t.trim()!=="").forEach((t,r)=>{const s=S(t)[0].bullet,o=e.at(-1),a=r===0||!o||o.type==="ul"!==s;if(s){const i=t.slice(2);!a&&o?.type==="ul"?o.items.push(i):e.push({type:"ul",items:[i]})}else!a&&o?.type==="p"?o.text+=`
4
+ ${t}`:e.push({type:"p",text:t})});return e}const B=()=>[{label:p("First section"),heading:p("Your *first* section."),body:p(`Write the opening paragraph here.
5
5
 
6
6
  - Start a line with a dash for a bullet.
7
- - Add as many as you like.`)},{label:c("Second section"),heading:c("Your *second* section."),body:c("Leave a blank line between paragraphs to start a new one.")}],A=S;function B({tocTitle:r,sections:e,editing:i=!1,stickyTop:d=A}){const t=k(e);if(t.length===0&&!i)return null;const a=t.length===0&&i?$():t,o=_(a);return l(y,{as:"section",className:"relative z-[2] bg-bg",children:f("div",{className:"mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-[240px_1fr] items-start gap-20 border-b border-line px-[var(--sf-site-gutter,40px)] py-20 max-[900px]:grid-cols-1 max-[900px]:gap-10 max-[900px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[900px]:py-[60px]",children:[l(N,{title:r,entries:a.map((n,s)=>({label:n.label||"Section",anchor:o[s]})),stickyTop:d}),l("div",{className:"flex flex-col gap-16",children:a.map((n,s)=>f("article",{id:o[s],className:"flex flex-col gap-[18px]",style:{scrollMarginTop:d},children:[f("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:[v(s)," · ",m(n.label||"Section")]}),n.heading&&l("h2",{className:"mb-2 border-b border-line pb-[18px] font-heading2 text-[length:min(var(--size-headingMedium,clamp(28px,3.5vw,44px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[1.04] tracking-[-0.025em]",children:m(n.heading)}),z(n.body??"").map((p,h)=>p.type==="ul"?l("ul",{className:"flex max-w-[680px] list-none flex-col gap-2.5 pl-0",children:p.items.map((g,u)=>l("li",{className:"relative pl-6 font-serif text-[length:var(--size-body,17px)] leading-[1.65] text-fg-dim before:absolute before:-top-0.5 before:left-1.5 before:text-[length:var(--size-body,24px)] before:leading-none before:text-accent before:content-['·']",children:m(g)},u))},h):l("p",{className:"max-w-[680px] font-serif text-[length:var(--size-body,17px)] leading-[1.7] text-fg-dim",children:m(p.text)},h))]},o[s]))})]})})}export{B as default,z as parseBlocks,T as sectionAnchorId,_ as sectionAnchorIds,k as shownSections};
7
+ - Add as many as you like.`)},{label:p("Second section"),heading:p("Your *second* section."),body:p("Leave a blank line between paragraphs to start a new one.")}],C=T;function I({tocTitle:n,sections:e,editing:l=!1,stickyTop:m=C}){const t=_(),r=O(e);if(r.length===0&&!l)return null;const s=r.length===0&&l?B():r,o=$(s);return c(v,{as:"section",className:"relative z-[2] bg-bg",children:x("div",{className:k("mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-[240px_1fr] items-start gap-20 border-b border-line px-[var(--sf-site-gutter,40px)] py-20 max-[900px]:grid-cols-1 max-[900px]:gap-10 max-[900px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[900px]:py-[60px]",t),children:[c(N,{title:n,entries:s.map((a,i)=>({label:a.label||"Section",anchor:o[i]})),stickyTop:m}),c("div",{className:"flex flex-col gap-16",children:s.map((a,i)=>x("article",{id:o[i],className:"flex flex-col gap-[18px]",style:{scrollMarginTop:m},children:[x("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:[w(i)," · ",d(a.label||"Section")]}),a.heading&&c("h2",{className:"mb-2 border-b border-line pb-[18px] font-heading2 text-[length:min(var(--size-headingMedium,clamp(28px,3.5vw,44px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[1.04] tracking-[-0.025em]",children:d(a.heading)}),A(a.body??"").map((f,u)=>f.type==="ul"?c("ul",{className:"flex max-w-[680px] list-none flex-col gap-2.5 pl-0",children:f.items.map((g,b)=>c("li",{className:"relative pl-6 font-serif text-[length:var(--size-body,17px)] leading-[1.65] text-fg-dim before:absolute before:-top-0.5 before:left-1.5 before:text-[length:var(--size-body,24px)] before:leading-none before:text-accent before:content-['·']",children:d(g)},b))},u):c("p",{className:"max-w-[680px] font-serif text-[length:var(--size-body,17px)] leading-[1.7] text-fg-dim",children:d(f.text)},u))]},o[i]))})]})})}export{I as default,A as parseBlocks,z as sectionAnchorId,$ as sectionAnchorIds,O as shownSections};
@@ -1 +1 @@
1
- import{jsx as a,jsxs as s}from"react/jsx-runtime";import c from"./SectionEyebrow.js";import{HideTaker as g}from"./ViewHideRoot.js";import{renderGold as p,renderHeadline as f}from"./goldPhrases.js";import{pageTitleTag as b}from"../../format/lib/document/one-h1.js";const x={bodyUpTo900:"max-[900px]:text-[length:var(--size-body,19px)]",body:"text-[length:var(--size-body,22px)]",label:"text-[length:var(--size-label,13px)]"};function u({level:t,className:l,children:r}){const i=b(t);return a(i,{className:l,children:r})}function h({eyebrow:t,title:l,deck:r,meta:i,editing:o=!1,titleLevel:d}){const n=(i??[]).filter(e=>(e.label??"").trim()!==""||(e.value??"").trim()!=="");return!!!(t||l||r||n.length>0)&&!o?null:a(g,{as:"section",className:"relative z-[2] bg-bg",children:s("div",{className:"mx-auto max-w-[var(--sf-site-width,1600px)] border-b border-line px-[var(--sf-site-gutter,40px)] pt-[100px] pb-[60px] max-[900px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[900px]:pt-[60px] max-[900px]:pb-10",children:[s("div",{className:"grid grid-cols-[auto_1fr_auto] items-end gap-10 pb-8 max-[900px]:grid-cols-1 max-[900px]:gap-4",children:[t&&a(c,{text:t,className:"pb-3",classNameAfter:"max-[900px]:pb-0"}),l&&a(u,{level:d,className:"font-display text-[length:min(var(--size-headingLarge,clamp(56px,8vw,128px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[0.88] tracking-[-0.04em]",children:f(l,!0)}),n.length>0&&a("div",{className:`pb-3 text-right font-mono ${x.label} uppercase leading-[1.8] tracking-[0.22em] text-fg-dim max-[900px]:pb-0 max-[900px]:text-left`,children:n.map((e,m)=>s("div",{children:[e.label&&a("strong",{className:"font-normal text-fg",children:p(e.label)}),e.label&&e.value?" ":null,e.value?p(e.value):null]},m))})]}),r&&a("p",{className:`max-w-[760px] border-t border-line pt-8 font-serif ${x.body} italic leading-[1.5] text-fg-dim ${x.bodyUpTo900}`,children:p(r,!0)})]})})}export{h as default};
1
+ import{jsx as a,jsxs as s}from"react/jsx-runtime";import g from"./SectionEyebrow.js";import{HideTaker as f}from"./ViewHideRoot.js";import{renderGold as p,renderHeadline as b}from"./goldPhrases.js";import{pageTitleTag as u}from"../../format/lib/document/one-h1.js";import{withSideOnce as h}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as v}from"./SideSpaceOnce.js";const o={bodyUpTo900:"max-[900px]:text-[length:var(--size-body,19px)]",body:"text-[length:var(--size-body,22px)]",label:"text-[length:var(--size-label,13px)]"};function N({level:t,className:r,children:l}){const i=u(t);return a(i,{className:r,children:l})}function T({eyebrow:t,title:r,deck:l,meta:i,editing:x=!1,titleLevel:m}){const d=v(),n=(i??[]).filter(e=>(e.label??"").trim()!==""||(e.value??"").trim()!=="");return!!!(t||r||l||n.length>0)&&!x?null:a(f,{as:"section",className:"relative z-[2] bg-bg",children:s("div",{className:h("mx-auto max-w-[var(--sf-site-width,1600px)] border-b border-line px-[var(--sf-site-gutter,40px)] pt-[100px] pb-[60px] max-[900px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[900px]:pt-[60px] max-[900px]:pb-10",d),children:[s("div",{className:"grid grid-cols-[auto_1fr_auto] items-end gap-10 pb-8 max-[900px]:grid-cols-1 max-[900px]:gap-4",children:[t&&a(g,{text:t,className:"pb-3",classNameAfter:"max-[900px]:pb-0"}),r&&a(N,{level:m,className:"font-display text-[length:min(var(--size-headingLarge,clamp(56px,8vw,128px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[0.88] tracking-[-0.04em]",children:b(r,!0)}),n.length>0&&a("div",{className:`pb-3 text-right font-mono ${o.label} uppercase leading-[1.8] tracking-[0.22em] text-fg-dim max-[900px]:pb-0 max-[900px]:text-left`,children:n.map((e,c)=>s("div",{children:[e.label&&a("strong",{className:"font-normal text-fg",children:p(e.label)}),e.label&&e.value?" ":null,e.value?p(e.value):null]},c))})]}),l&&a("p",{className:`max-w-[760px] border-t border-line pt-8 font-serif ${o.body} italic leading-[1.5] text-fg-dim ${o.bodyUpTo900}`,children:p(l,!0)})]})})}export{T as default};
@@ -1 +1 @@
1
- import{jsx as a,jsxs as m}from"react/jsx-runtime";import n from"./SectionEyebrow.js";import{HideTaker as o}from"./ViewHideRoot.js";import{renderGold as t}from"./goldPhrases.js";const i={body:"text-[length:var(--size-body,14px)]",headingSmall:"text-[length:var(--size-headingSmall,20px)]"};function x({cards:l,editing:s=!1}){const r=(l??[]).filter(e=>(e.label??"").trim()!==""||(e.value??"").trim()!==""||(e.desc??"").trim()!=="");return r.length===0&&!s?null:a(o,{as:"section",className:"relative z-[2] bg-bg",children:a("div",{className:"mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-3 gap-10 border-b border-line px-[var(--sf-site-gutter,40px)] py-[60px] max-[900px]:grid-cols-1 max-[900px]:gap-4 max-[900px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[900px]:py-10",children:r.map((e,d)=>m("div",{className:"flex flex-col gap-2 border border-line bg-surface p-6",children:[e.label&&a(n,{text:e.label,size:12}),e.value&&a("span",{className:`font-heading3 ${i.headingSmall} font-medium tracking-[-0.015em] text-fg`,children:t(e.value)}),e.desc&&a("span",{className:`mt-1.5 font-serif ${i.body} italic leading-[1.5] text-fg-dim`,children:t(e.desc)})]},d))})})}export{x as default};
1
+ import{jsx as a,jsxs as m}from"react/jsx-runtime";import n from"./SectionEyebrow.js";import{HideTaker as x}from"./ViewHideRoot.js";import{renderGold as i}from"./goldPhrases.js";import{withSideOnce as p}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as c}from"./SideSpaceOnce.js";const t={body:"text-[length:var(--size-body,14px)]",headingSmall:"text-[length:var(--size-headingSmall,20px)]"};function f({cards:s,editing:l=!1}){const o=c(),r=(s??[]).filter(e=>(e.label??"").trim()!==""||(e.value??"").trim()!==""||(e.desc??"").trim()!=="");return r.length===0&&!l?null:a(x,{as:"section",className:"relative z-[2] bg-bg",children:a("div",{className:p("mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-3 gap-10 border-b border-line px-[var(--sf-site-gutter,40px)] py-[60px] max-[900px]:grid-cols-1 max-[900px]:gap-4 max-[900px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[900px]:py-10",o),children:r.map((e,d)=>m("div",{className:"flex flex-col gap-2 border border-line bg-surface p-6",children:[e.label&&a(n,{text:e.label,size:12}),e.value&&a("span",{className:`font-heading3 ${t.headingSmall} font-medium tracking-[-0.015em] text-fg`,children:i(e.value)}),e.desc&&a("span",{className:`mt-1.5 font-serif ${t.body} italic leading-[1.5] text-fg-dim`,children:i(e.desc)})]},d))})})}export{f as default};
@@ -1 +1 @@
1
- import{Fragment as T,jsx as n,jsxs as a}from"react/jsx-runtime";import{HideTaker as q}from"./ViewHideRoot.js";import O,{ACCORDION_MARK_SHEET as v}from"./AccordionMark.js";import{stripMarkup as F}from"../../format/lib/markup.js";import{renderGold as l,renderHeadline as I}from"./goldPhrases.js";import L from"./SectionHeader.js";import{SectionTextParts as M}from"../lib/document/editing-bridges.js";import u from"./TextRegionRun.js";import{TEXT_REGION_ATTR as Q,regionStyle as W,textRegionPartKey as j}from"../../format/lib/sections/text-regions.js";import{FAQ_REGIONS as C}from"../../format/lib/sections/faq-text-regions.js";import{SIZE_STEP_OF_ROLE as z}from"../../format/lib/fonts.js";import{say as m}from"../../format/lib/editor-words.js";import{SITE_COLUMN as H}from"../../format/lib/content/page-width.js";import{listNumber as P}from"../../format/lib/content/list-number.js";import{LIST_KEY_ATTR as G}from"../../format/lib/content/list-query.js";import{QA_ROW_ANSWER_CLASS as U,QA_ROW_NUMBER_CLASS as B,QA_ROW_SUMMARY_CLASS as J}from"../../format/lib/content/accordion-row-style.js";function K(e){return(e??[]).filter(r=>(r.question??"").trim()!=="")}function X(e){const r=e.filter(t=>(t.answer??"").trim()!=="").map(t=>({"@type":"Question",name:y(t.question??""),acceptedAnswer:{"@type":"Answer",text:y(t.answer??"")}}));return r.length>0?JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:r}).replace(/</g,"\\u003c"):null}function y(e){return F(e).trim()}function f(e,r){return e?{[Q]:r}:{}}function h(e,r){const t=e?.[j(r)]?.role;return W(t,C[r],z)}function Y({editing:e,nodeId:r,partStyles:t,children:s}){return!e||!r?n(T,{children:s}):n(M,{nodeId:r,sectionType:"FAQ",partStyles:t,children:s})}const k="relative z-[2] bg-bg py-[120px] max-view-wide:py-[70px]",D="relative z-[2] bg-bg pt-0 pb-[120px] max-view-wide:pt-0 max-view-wide:pb-[70px]";function Z({num:e,title:r,link:t,items:s,defaultOpen:N=!0,editing:o=!1,omitHead:R=!1,nodeId:S,partStyles:i,listKey:x,rootRef:E}){const c=K(s),b=o&&c.length===0;if(c.length===0&&!o)return null;const _=b?[{question:m("Add your first question"),answer:m("Write the answer here.")},{question:m("Add another question"),answer:m("Write the answer here.")}]:c,g=o?null:X(_),w=r?I(r,!0):void 0,A=R||!e&&!w&&!t;return a(q,{as:"section",ref:E,className:A?D:k,...x?{[G]:x}:{},children:[n("style",{children:v}),g&&n("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:g}}),a("div",{className:H,children:[A?null:n(L,{num:e!==void 0?l(e):void 0,title:w,link:t?{text:l(t.text),href:t.href}:void 0,accent:!0}),n(Y,{editing:o,nodeId:S,partStyles:i,children:n("div",{children:_.map((d,p)=>a("details",{open:p===0&&N,className:"border-b border-line",children:[a("summary",{className:J,children:[n("span",{className:B,...f(o,"number"),style:h(i,"number"),children:n(u,{region:"number",partStyles:i,children:P(p)})}),n("span",{className:"flex-1 font-display text-[length:var(--size-body,18px)] font-medium uppercase tracking-[0.02em] text-fg max-view-wide:text-[length:var(--size-body,15px)]",...f(o,"question"),style:h(i,"question"),children:n(u,{region:"question",partStyles:i,children:l(d.question??"")})}),n(O,{})]}),d.answer&&n("div",{className:U,children:n("p",{className:"max-w-[760px] text-[length:var(--size-body,15px)] leading-[1.7] text-fg-dim",...f(o,"answer"),style:h(i,"answer"),children:n(u,{region:"answer",partStyles:i,children:l(d.answer)})})})]},p))})})]})]})}export{Z as default,X as faqPageJsonLd,K as faqRows};
1
+ import{Fragment as T,jsx as n,jsxs as a}from"react/jsx-runtime";import{HideTaker as q}from"./ViewHideRoot.js";import v,{ACCORDION_MARK_SHEET as F}from"./AccordionMark.js";import{stripMarkup as I}from"../../format/lib/markup.js";import{renderGold as m,renderHeadline as L}from"./goldPhrases.js";import M from"./SectionHeader.js";import{SectionTextParts as Q}from"../lib/document/editing-bridges.js";import u from"./TextRegionRun.js";import{TEXT_REGION_ATTR as W,regionStyle as j,textRegionPartKey as C}from"../../format/lib/sections/text-regions.js";import{FAQ_REGIONS as z}from"../../format/lib/sections/faq-text-regions.js";import{SIZE_STEP_OF_ROLE as H}from"../../format/lib/fonts.js";import{say as l}from"../../format/lib/editor-words.js";import{SITE_COLUMN as P,withSideOnce as G}from"../../format/lib/content/page-width.js";import{listNumber as U}from"../../format/lib/content/list-number.js";import{LIST_KEY_ATTR as B}from"../../format/lib/content/list-query.js";import{QA_ROW_ANSWER_CLASS as J,QA_ROW_NUMBER_CLASS as K,QA_ROW_SUMMARY_CLASS as X}from"../../format/lib/content/accordion-row-style.js";import{useSideSpaceOnce as Y}from"./SideSpaceOnce.js";function k(e){return(e??[]).filter(r=>(r.question??"").trim()!=="")}function D(e){const r=e.filter(t=>(t.answer??"").trim()!=="").map(t=>({"@type":"Question",name:S(t.question??""),acceptedAnswer:{"@type":"Answer",text:S(t.answer??"")}}));return r.length>0?JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:r}).replace(/</g,"\\u003c"):null}function S(e){return I(e).trim()}function f(e,r){return e?{[W]:r}:{}}function h(e,r){const t=e?.[C(r)]?.role;return j(t,z[r],H)}function Z({editing:e,nodeId:r,partStyles:t,children:s}){return!e||!r?n(T,{children:s}):n(Q,{nodeId:r,sectionType:"FAQ",partStyles:t,children:s})}const V="relative z-[2] bg-bg py-[120px] max-view-wide:py-[70px]",$="relative z-[2] bg-bg pt-0 pb-[120px] max-view-wide:pt-0 max-view-wide:pb-[70px]";function ee({num:e,title:r,link:t,items:s,defaultOpen:y=!0,editing:o=!1,omitHead:N=!1,nodeId:R,partStyles:i,listKey:x,rootRef:E}){const b=Y(),c=k(s),O=o&&c.length===0;if(c.length===0&&!o)return null;const _=O?[{question:l("Add your first question"),answer:l("Write the answer here.")},{question:l("Add another question"),answer:l("Write the answer here.")}]:c,w=o?null:D(_),g=r?L(r,!0):void 0,A=N||!e&&!g&&!t;return a(q,{as:"section",ref:E,className:A?$:V,...x?{[B]:x}:{},children:[n("style",{children:F}),w&&n("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:w}}),a("div",{className:G(P,b),children:[A?null:n(M,{num:e!==void 0?m(e):void 0,title:g,link:t?{text:m(t.text),href:t.href}:void 0,accent:!0}),n(Z,{editing:o,nodeId:R,partStyles:i,children:n("div",{children:_.map((d,p)=>a("details",{open:p===0&&y,className:"border-b border-line",children:[a("summary",{className:X,children:[n("span",{className:K,...f(o,"number"),style:h(i,"number"),children:n(u,{region:"number",partStyles:i,children:U(p)})}),n("span",{className:"flex-1 font-display text-[length:var(--size-body,18px)] font-medium uppercase tracking-[0.02em] text-fg max-view-wide:text-[length:var(--size-body,15px)]",...f(o,"question"),style:h(i,"question"),children:n(u,{region:"question",partStyles:i,children:m(d.question??"")})}),n(v,{})]}),d.answer&&n("div",{className:J,children:n("p",{className:"max-w-[760px] text-[length:var(--size-body,15px)] leading-[1.7] text-fg-dim",...f(o,"answer"),style:h(i,"answer"),children:n(u,{region:"answer",partStyles:i,children:m(d.answer)})})})]},p))})})]})]})}export{ee as default,D as faqPageJsonLd,k as faqRows};
@@ -1 +1 @@
1
- import{jsx as e,jsxs as l}from"react/jsx-runtime";import{EDITORIAL_COLUMN as w}from"../../format/lib/content/page-width.js";import{HideTaker as y}from"./ViewHideRoot.js";import{Fragment as z}from"react";import{SiteLink as $}from"../lib/site-runtime.js";import b from"./PostDate.js";import{stripMarkup as S}from"../../format/lib/markup.js";import j from"./Placeholder.js";import{renderGold as r,renderHeadline as L,splitParagraphs as _}from"./goldPhrases.js";import{scrim as u}from"../../format/lib/content/scrim.js";const n={body:"text-[length:var(--size-body,20px)]",labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"};function P({image:v,badge:o,imageDate:p,category:c,readLabel:m,date:d,dateAt:a,title:s,dek:f,ctaText:x,ctaHref:N,omitHead:k=!1}){const g=[c?e("span",{className:"text-accent",children:r(c)}):null,m?e("span",{children:r(m)}):null,a?e("span",{children:e(b,{at:a})}):d?e("span",{children:r(d)}):null].filter(Boolean),h=l("article",{className:"sf-card relative grid grid-cols-[1.3fr_1fr] border border-line bg-[var(--card-bg)] max-view-desktop:grid-cols-1",children:[l("div",{className:"relative aspect-[5/4] overflow-hidden border-r border-line bg-surface-2 max-view-desktop:border-r-0 max-view-desktop:border-b",children:[e(j,{label:"featured-cover",src:v||void 0,alt:S(s||"Cover"),sizes:"(max-width: 1100px) 100vw, 56vw"}),e("div",{className:"pointer-events-none absolute inset-0 z-[1]",style:{background:`linear-gradient(180deg, ${u(.45)} 0%, transparent 30%, transparent 70%, ${u(.55)} 100%)`}}),o&&e("span",{className:`absolute left-6 top-6 z-[2] bg-accent px-3 py-2 font-mono ${n.labelSmall} uppercase tracking-[0.3em] text-bg`,children:r(o)}),(a||p)&&e("span",{className:`absolute right-6 bottom-6 z-[2] font-mono ${n.labelSmall} uppercase tracking-[0.24em] text-overlay-fg`,children:a?e(b,{at:a}):r(p)})]}),l("div",{className:"flex flex-col justify-between gap-6 px-12 py-14 max-view-desktop:px-7 max-view-desktop:py-9",children:[g.length>0&&e("div",{className:`flex items-center gap-4 font-mono ${n.labelSmall} uppercase tracking-[0.28em] text-fg-dim`,children:g.map((i,t)=>l(z,{children:[t>0&&e("span",{className:"opacity-40",children:"·"}),i]},t))}),s&&e("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(34px,3.5vw,58px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em]",children:L(s,!0)}),f&&_(f).map((i,t)=>e("p",{className:`max-w-[520px] font-serif ${n.body} italic leading-[1.5] text-fg-dim`,children:r(i,!0)},t)),x&&e("div",{children:l($,{newTab:"auto",href:N||"#",className:`group inline-flex items-center gap-3.5 py-3.5 font-mono ${n.labelLarge} uppercase tracking-[0.3em] text-accent`,children:[r(x)," ",e("span",{className:"transition-transform group-hover:translate-x-[6px]",children:"→"})]})})]})]});return k?h:e(y,{as:"section",className:"border-b border-line py-20 max-view-desktop:py-[60px]",children:e("div",{className:w,children:h})})}export{P as default};
1
+ import{jsx as e,jsxs as n}from"react/jsx-runtime";import{EDITORIAL_COLUMN as y,withSideOnce as S}from"../../format/lib/content/page-width.js";import{HideTaker as z}from"./ViewHideRoot.js";import{Fragment as $}from"react";import{SiteLink as j}from"../lib/site-runtime.js";import b from"./PostDate.js";import{stripMarkup as L}from"../../format/lib/markup.js";import O from"./Placeholder.js";import{renderGold as r,renderHeadline as _,splitParagraphs as P}from"./goldPhrases.js";import{scrim as u}from"../../format/lib/content/scrim.js";import{useSideSpaceOnce as T}from"./SideSpaceOnce.js";const l={body:"text-[length:var(--size-body,20px)]",labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"};function C({image:v,badge:o,imageDate:c,category:p,readLabel:m,date:d,dateAt:a,title:i,dek:f,ctaText:x,ctaHref:N,omitHead:k=!1}){const w=T(),g=[p?e("span",{className:"text-accent",children:r(p)}):null,m?e("span",{children:r(m)}):null,a?e("span",{children:e(b,{at:a})}):d?e("span",{children:r(d)}):null].filter(Boolean),h=n("article",{className:"sf-card relative grid grid-cols-[1.3fr_1fr] border border-line bg-[var(--card-bg)] max-view-desktop:grid-cols-1",children:[n("div",{className:"relative aspect-[5/4] overflow-hidden border-r border-line bg-surface-2 max-view-desktop:border-r-0 max-view-desktop:border-b",children:[e(O,{label:"featured-cover",src:v||void 0,alt:L(i||"Cover"),sizes:"(max-width: 1100px) 100vw, 56vw"}),e("div",{className:"pointer-events-none absolute inset-0 z-[1]",style:{background:`linear-gradient(180deg, ${u(.45)} 0%, transparent 30%, transparent 70%, ${u(.55)} 100%)`}}),o&&e("span",{className:`absolute left-6 top-6 z-[2] bg-accent px-3 py-2 font-mono ${l.labelSmall} uppercase tracking-[0.3em] text-bg`,children:r(o)}),(a||c)&&e("span",{className:`absolute right-6 bottom-6 z-[2] font-mono ${l.labelSmall} uppercase tracking-[0.24em] text-overlay-fg`,children:a?e(b,{at:a}):r(c)})]}),n("div",{className:"flex flex-col justify-between gap-6 px-12 py-14 max-view-desktop:px-7 max-view-desktop:py-9",children:[g.length>0&&e("div",{className:`flex items-center gap-4 font-mono ${l.labelSmall} uppercase tracking-[0.28em] text-fg-dim`,children:g.map((s,t)=>n($,{children:[t>0&&e("span",{className:"opacity-40",children:"·"}),s]},t))}),i&&e("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(34px,3.5vw,58px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em]",children:_(i,!0)}),f&&P(f).map((s,t)=>e("p",{className:`max-w-[520px] font-serif ${l.body} italic leading-[1.5] text-fg-dim`,children:r(s,!0)},t)),x&&e("div",{children:n(j,{newTab:"auto",href:N||"#",className:`group inline-flex items-center gap-3.5 py-3.5 font-mono ${l.labelLarge} uppercase tracking-[0.3em] text-accent`,children:[r(x)," ",e("span",{className:"transition-transform group-hover:translate-x-[6px]",children:"→"})]})})]})]});return k?h:e(z,{as:"section",className:"border-b border-line py-20 max-view-desktop:py-[60px]",children:e("div",{className:S(y,w),children:h})})}export{C as default};
@@ -1 +1 @@
1
- import{Fragment as A,jsx as e,jsxs as L}from"react/jsx-runtime";import{useContext as wt,useId as pt,useState as xt}from"react";import _t from"./BoxTabs.js";import{AccordionRowStyleContext as oo,BoxTabPaneContext as so,useAccordionRowStyle as vt,useBoxPaneKind as Rt,useFirstCopyOpens as Ot,useIsTabPane as Pt}from"./BoxTabPaneContext.js";import At,{ACCORDION_COUNTER_RESET as Lt}from"./BoxAccordionRow.js";import{ACCORDION_MARK_SHEET as $t}from"./AccordionMark.js";import{EDGE_LINE_ATTRS as yt}from"../../format/lib/content/view-lines.js";import{accordionRowStyleOf as Nt}from"../../format/lib/content/accordion-row-style.js";import{boxPhoneCell as Et,boxPhoneOrder as kt}from"../../format/lib/content/box-phone-place.js";import{CellFillContext as Ns,InBoxContext as Es,useCellOfStretchedRow as It,useFillsCell as Bt}from"./InBoxContext.js";import gt,{InsideSiteColumn as ks,useInsideSiteGutter as Tt,useSectionRoot as Ft}from"./SiteGutterFrame.js";import{BoxSurfaceProvider as Ht}from"./BoxSurfaceContext.js";import Dt from"./PictureWash.js";import{BoxCellContext as Is,NoCellBound as Vt}from"./BoxCellContext.js";import{boxCellFractions as Mt}from"../lib/content/box-cell-bound.js";import{boundOf as Wt}from"../../format/lib/content/cell-picture-sizes.js";import{useInSiteHeader as Gt}from"./PhoneMenuTools.js";import{useCardRow as Xt}from"./CardRowContext.js";import{cardLineBetween as no,framesItsCards as jt}from"../../format/lib/content/card-place.js";import{rowLinkText as Kt}from"../../format/lib/content/card-template.js";import{HandedMirrorContext as Ut,MirrorContext as zt,RowHandContext as Bs,boxPlace as Yt,useHandedMirrorAbove as Jt,useHandedRows as Zt,useMirroredCopy as qt,useUnderCardBox as Qt}from"./MirrorContext.js";import{boxChildrenHand as er,isMirroredCopy as or,mirrorCardsActs as gs,mirrorCardsOf as sr,mirroredBoxClass as nr,MIRROR_ROW_CLASS as tr,ownsCard as rr}from"../../format/lib/content/mirror-cards.js";import{FRAME_BASE as to,frameGutterOf as lr}from"./BlockFrame.js";import{BOX_SIDE_SPACE_SITE as ir,boxSideSpaceOf as cr}from"../../format/lib/content/box-side-space.js";import{containerGapProps as Ts}from"../../format/lib/content/container-gap.js";import{boxLayoutClasses as ar,boxAlignViewClasses as dr,boxBlockSpacingClass as ur,boxBlockSpacingViewClasses as mr,boxJustifyViewClasses as fr,boxWrapTabletClass as hr,boxFitContentClass as Cr,boxAccordionColumnsClass as Fs,boxRowColumnsClass as br,boxRowTabletColumnsClass as Sr,boxRowTabletShareClass as wr,boxPhoneCellsShareLine as pr,boxPhoneRowClasses as ce,boxPhoneRowFits as Hs,boxShareClasses as $,boxShareVars as xr,boxWrapClass as _r,BOX_GAP_ONLY_CLASS as vr}from"../../format/lib/content/box-layout.js";import{boxSeparatorClasses as Rr,boxSeparatorSeamClass as Or,boxSeparatorStyle as Pr,isStripBox as Ar}from"../../format/lib/content/box-separator.js";import{DEFAULT_LOOP_DELAY as Lr,DEFAULT_LOOP_DIRECTION as $r,DEFAULT_LOOP_SECONDS as yr,isVerticalLoop as Nr}from"../../format/lib/animation/index.js";import{LoopTrack as Er}from"../lib/animation/LoopTrack.js";import{BOX_CARD_PAD as y,BOX_OWNS_SIDES_CLASS as kr,boxDarkenStyle as Ds,boxPaintOf as Ir,boxFillFadeStyle as Br,boxFillViews as gr,boxPlacementClasses as Tr,boxCardProps as Fr,boxIsCard as Vs,boxRowPicture as Hr,boxSwatchFill as Dr,boxWashViews as Vr,CARD_NO_LIFT_CLASS as Mr,CARD_SHADOW_CLASS as Wr,isBackgroundBox as _e}from"../../format/lib/content/box-background.js";import{BOX_ROW_IMAGE_PROP as x}from"../../format/lib/content/box-card-rule.js";import{boxShadowAttrs as Gr,boxShadowOnAnyView as Xr,boxShadowViewAttrs as jr}from"../../format/lib/content/box-shadow.js";import{boxRunsEdgeToEdge as Kr,drawsSiteGutter as Ur}from"../../format/lib/content/site-gutter.js";import{boxShapeClass as zr,boxShapeClasses as Yr,boxShapeStyle as Jr}from"../../format/lib/content/box-shape.js";import{boxAngleStyle as Zr}from"../../format/lib/content/box-angle.js";import{BOX_JUMP_ATTR as qr,BOX_LINK_ATTR as Ms,BOX_LINK_CLASS as Ws,BOX_LINKED_CLASS as Qr,boxJumpBlocksClass as el,boxJumpCss as ol,boxJumpSlug as sl,boxLinkOf as nl,siteLinkDraws as tl}from"../../format/lib/content/box-link.js";import{SiteLink as rl}from"../lib/site-runtime.js";import{sectionBorderStyle as Gs}from"../../format/lib/content/borders.js";import{finiteNumber as ve}from"../../format/lib/finite-number.js";import{padDefaultIn as N,padSideValue as Re,sectionPadAttrs as ll}from"../lib/content/section-padding.js";import{SECTION_FILL_CLASS as Oe}from"../../format/lib/content/section-min-height.js";import{ON_MEDIA_INK_STYLE as il,rowFillInkStyle as cl}from"../../format/lib/content/ink.js";import{useThemeLightInk as al}from"./ThemeLightInkContext.js";import{sizedBackground as ro}from"../../format/lib/sized-image.js";import{BOX_REVEAL_CLASS as dl,BOX_REVEAL_CSS as ul,BOX_REVEAL_SHEET as ml,PHOTO_HOST_ATTR as fl,resolveImageTreatment as hl}from"../../format/lib/content/image-treatment.js";import Cl,{HoverArrowsSlot as bl,HoverMediaArrows as Sl}from"./HoverMediaLayer.js";import{HOVER_ARROWS_HOST_ATTR as wl,HOVER_ARROWS_HOST_CLASS as pl,HOVER_LAYER_GROUND as xl,cardRowHoverMedia as _l,hoverLayerName as vl}from"../../format/lib/content/hover-media.js";import{BOX_HIGHLIGHT_CLASS as Rl,BOX_HIGHLIGHT_OVER_ROW_INK_CLASS as Ol,BOX_SHOW_ON_CARD_HOVER as Pl}from"../../format/lib/animation/hover.js";import{BoxRail as Al,BoxRailStop as Ll,RAIL_STOPS_CLASS as $l,useTimelineRail as yl}from"./TimelineRail.js";import{SHARED_PLAIN_ATTR as Nl,sharedColumnsClasses as El,sharedColumnsCss as kl,sharedRowsClasses as Il,sharedRowsCss as Bl}from"../lib/content/box-shared-columns.js";import Xs from"./PhotoHoverSheet.js";import{PICTURE_FRAME_ONLY as gl,PictureHoverMoveSheet as Tl,PictureHoverZoom as Fl,pictureHoverMoveOf as Hl}from"./PictureHoverMove.js";import{BOX_DESKTOP_LINE as Dl,stackGutterClass as Vl,stackLineCss as Ml,stackOuterClass as Wl,stackRowClass as Gl,storedStackLine as lo}from"../lib/content/box-stack-line.js";import{partAttr as io}from"../../format/lib/content/part-names.js";const co={"--sf-site-gutter":"0px"},Xl={overflowX:"clip",overflowY:"visible"},jl={stretchedRow:!1,fillingColumn:!1,columnsRow:!1},js={desktop:!1,phone:!1},Ks="bg-cover bg-center bg-[image:var(--sf-box-bg)] max-view-wide:bg-[image:var(--sf-box-bg-p)]",ao=u=>u==null||u==="",uo=u=>!ao(u)&&Number(u)===0;function Kl({children:u}){return e(A,{children:u(pt())})}function Ul({direction:u,label:Us,tabShape:zs,gap:mo,gapPhone:Ys,gapTablet:Pe,justify:z,align:E,wrap:ae,share:Js,sharePhone:F,shareTablet:H,wrapPhone:Zs,orderPhone:qs,phoneRow:C,columns:m,columnsTablet:D,separator:f,stackBelow:de,blockSpacing:fo,bgImage:Qs,bgImagePhone:en,rowImage:on,hoverShow:sn,pictureHover:V,darken:Ae,darkenStyle:ue,darkenTablet:nn,darkenPhone:tn,darkenStyleTablet:rn,darkenStylePhone:ln,placement:cn,padV2:ho=!1,border:an,borderTablet:dn,borderPhone:un,borderUnits:Co,pad:r={},contained:Le=!0,fillHeight:_=!1,shadow:$e,shadowTablet:bo,shadowPhone:So,justifyTablet:wo,justifyPhone:mn,alignTablet:fn,alignPhone:hn,wrapTablet:po,blockSpacingTablet:Cn,blockSpacingPhone:bn,loop:b,scrollDirection:ye=$r,loopSeconds:Sn=yr,loopDelay:wn=Lr,editing:k=!1,fillColor:xo,fillColorTablet:pn,fillColorPhone:xn,fillFade:_n,swatch:vn,line:v,upcoming:Rn,link:On,rowLink:_o,highlight:Pn,boxShape:Ne,boxShapePhone:vo,boxShapeTablet:Ro,angle:An,jumpHighlight:Ln,anchor:$n,sharedSides:yn=js,sharedRows:Nn=!1,boxId:M,slotCount:En,mirrorCards:Oo,content:c,rowTitle:Ee,startsOpen:kn,rowStyle:In,sideSpace:Bn}){const n=Xt(),I=Fr({[x]:on},n!==null)[x],Po=Vs({[x]:I}),d=Po?js:yn,gn=Po?!1:Nn,Ao=Hr({[x]:I},n?.row),S=Ao??Qs,ke=Ao===null?en:void 0,Lo=wt(Is),[$o,Tn]=xt(null),Fn=Jt(),yo=Qt()&&!(Fn&&n!==null),R=Zt(),h=rr({inCopy:n!==null,nestedCopy:n?.nested===!0,underBox:yo}),Ie=sn===Pl&&n!==null&&!h&&!(k&&n.previewHover===!0),No=no(an,n,h),Eo=no(dn,n,h),ko=no(un,n,h),Io=n===null&&!yo&&R?.ids&&M?R.ids.indexOf(M):-1,me=Io>=0&&R&&M?Yt(R,M,Io):-1,w=me>=0?R?.hand??null:h&&R?.copies===!0?R.hand:null,o=w?.row?"row":u,a=w?.row?w.row.share:Js,Hn=w?.row?w.row.phoneReverse?[...c.blockIds??[]].reverse():void 0:qs,fe=gn&&!w?.row,W=k?"":_o&&n?Kt(n.row,_o)??"":nl(On),O=_?"":Yr(Ne,vo,Ro),Dn=!_&&zr(Ne)!=="",B=sl(Ln,$n),Be=Dr({swatch:vn},n?.row),Y=Be??Ir(xo),g=Be?{className:"",style:{}}:gr(xo,pn,xn),Vn=al(),Bo=cl(Be,Vn??void 0),Mn=_e(S)||_e(ke),Wn=(Y||g.className)&&!Mn?Br(_n):null,go=Y||g.className?{...Y?{backgroundColor:Y}:{},...g.style,...Wn,...Bo}:void 0,To=yl(),J=v===!0&&o!=="tabs"&&o!=="accordion",t=Vs({bgImage:S,[x]:I}),Fo=Zr(An),Ho=t?void 0:go,he=t?null:Pn??null,Do=_?null:Jr(Ne,vo,Ro),Gn=Fo||he||Do?{...Ho,...Fo,...he,...Do}:Ho,Ce=Gt(),Xn=Ft(),jn=Pt(),Vo=Rt(),Mo=vt(),Kn=Ot(),l=o==="accordion",ge=Nt(In),Z=l&&ge==="numbered",Te=l&&ge==="chevron",Fe=Bt(),Wo=It(),G=Ar(o,f),i=b==="scroll"&&o!=="tabs"&&!l,Un=qt(),be=h||me>=0&&w!==null,Go=w?w.mirror:Oo,zn=me>=0?me:n?.index,q=h&&jt(n?.ownerType),Xo=gs({direction:o,separator:f,loop:b,line:v,bgImage:S,[x]:I,columns:m,columnsTablet:D,share:a,wrap:ae},be,d.desktop)&&or(Go,zn),Yn=gs({direction:o,separator:f,loop:b,line:v,bgImage:S,[x]:I,columns:m,columnsTablet:D,share:a,wrap:ae},be,d.desktop)&&sr(Go)!==null,X=br({direction:o,separator:f,loop:b,line:v,columns:m}),T=Sr({direction:o,separator:f,loop:b,line:v,columnsTablet:D}),Q=wr({direction:o,separator:f,loop:b,line:v,columns:m,columnsTablet:D,share:a,shareTablet:H}),ee=cr(Bn)===ir,He=lr(ee),jo=J&&lo(de)===Dl,j=o==="row"&&!t&&!G&&!i&&(!J||jo)&&T===""&&Q===""?lo(de):void 0,K=j??(o==="column"&&!t?lo(de):void 0),Jn=Tt(),Se=El(d,c.blockCount??0,j),Zn=(Se&&(!n||n.index===0)?kl(d,c.blockCount??0,j):"")+(fe&&(!n||n.index===0)?Bl(fe,c.blockCount??0):""),Ko=Il(fe,c.blockCount??0),Uo=T!==""?Number(D)>=2:Q===""||$(H)!=="",zo=T!==""||Q!=="",De=o==="row"&&!G&&!i&&v!==!0,Ve=De&&!d.phone&&!d.desktop?Et(kt(Hn,c.blockIds??[]),{editing:k}):void 0,Yo=Ve!==void 0&&!k,qn=X!==""?Number(m)>=2:$(a)!=="",Jo=!t&&!l&&!Yn&&!d.desktop&&!d.phone,we=Jo&&!i?fr(z,wo,mn):"",Me=t||be?"":nr(Un,o,i?void 0:z,E,we?wo:void 0),Qn=/view-wide:max-view-desktop:justify-/.test(Me)?we.split(" ").filter(s=>!s.startsWith("view-wide:max-view-desktop:justify-")).join(" "):we,et=Jo&&o==="row"?dr(E,fn,hn):"",Zo=Wo&&o==="column"&&!t&&!i&&!l,We=typeof z=="string"&&z!=="start"||we!=="",qo=Zo&&We&&$(a)!=="",Qo=Zo&&!We&&$(a)!==""&&(c.blockCount??0)===1,ot=!i&&!l&&X===""&&T===""&&!d.desktop?hr(ae,po):"",es=[l||qo?"":$(a),o==="row"?Cr(a):"",X,T,Q,ur(l?"gap":fo),Rr(o,f),l&&!Z&&!Te?"border-t border-line":"",Qn,et,ot,l?"":mr(fo,Cn,bn),l?Fs(m,C,Z||Te):"",Z?Lt:""].filter(Boolean).join(" "),st=es?` ${es}`:"",os=["flex",o==="row"?G||i?"flex-row":`flex-row ${ce(C,F,Zs,po)}`:"flex-col",_r(i||l?!1:ae),t?Tr(cn??"center",o):ar(i||l?void 0:z,l?void 0:E)+(Me?` ${Me}`:"")].join(" ")+st,oe=_||t||O||Fe?` ${Oe}`:"",Ge=Dn?` ${O}`:O?`${oe} ${O}`:oe,ss=Wo&&o==="column"&&!t&&!i&&$(a)===""&&We||qo,ns=oe||(ss||Qo?` ${Oe}`:""),Xe=W?` ${Qr}`:"",je=t||Ce||ho?"":" py-6",nt=j===void 0?"":` ${Gl(j)}`,ts=K===void 0||ee?"":` ${Vl(K)}`,Ke=K===void 0?"":` ${Wl(K)}`,tt=`${to}${je} ${He}${Ge}${Xe}${ts}${Ke}`,rt=Ce?`${Ge}${Xe}${Ke}`.trim():`w-full${je}${Ge}${Xe}${Ke}`,se=(Z||Te)&&Fs(m,C)===""?Ts("Flex",0,"block"):Ts("Flex",mo,o==="row"?"inline":"block",Ys,G||i?void 0:Pe),rs=xr(a,H,o==="row"?c.blockCount??0:0),ls=G?{...se.style,...Pr(o,f)}:se.style,lt=rs?{...ls,...rs}:ls,Ue=(s="")=>e(c,{className:`${os}${Xo?` ${tr}`:""}${se.className}${ns}${nt}${s?` ${s}`:""}${J?` ${$l}`:""}${B?` ${el(B)}`:""}${Se}${Ko}`,style:lt,minEmptyHeight:120,...Ve?{cell:Ve}:null}),is=Nr(ye)?"":Or(o,f),cs=i?e(Er,{direction:ye,seconds:Sn,delay:wn,editing:k,copy:s=>Ue(s&&is?`${s} ${is}`:s)}):Z?L(A,{children:[e("style",{children:$t}),Ue()]}):Ue(),ze=o==="tabs"?e(_t,{className:`${os}${se.className}${Fe&&!_&&!t&&!O?"":oe}`,style:se.style,shape:zs,children:cs}):cs,Ye=l?e(so.Provider,{value:"accordion",children:e(oo.Provider,{value:ge,children:ze})}):Vo?e(so.Provider,{value:!1,children:e(oo.Provider,{value:"plain",children:ze})}):ze,as=o==="row"&&!t&&(E===void 0||E==="stretch"),it={stretchedRow:as,fillingColumn:o==="column"&&(Fe||ss),columnsRow:X!==""||T!==""||Se!==""||Ko!==""||o==="row"&&(Array.isArray(a)||Array.isArray(H))||Yo,...Yo?{phoneCells:!0}:null,...as&&De&&(c.blockCount??0)>=2&&qn||Qo?{picturesFillRow:!0}:null,...zo&&!Uo?{fillFrom:"desktop"}:null,...pr(C,F)&&(!zo||Uo)?{phoneRowFills:!0}:null,...De&&Hs(C,F)?{phoneRowFits:!0}:null,...i?{loops:!0}:null,...M?{id:M}:null},ds=n===null?er({direction:o,loop:b,bgImage:S,[x]:I,columns:m,mirrorCards:Oo},!1):null,us=ds?e(Bs.Provider,{value:{hand:ds,ids:c.blockIds??[],boxes:[]},children:Ye}):R?e(Bs.Provider,{value:null,children:Ye}):Ye,ms=e(Es.Provider,{value:it,children:e(Ns.Provider,{value:!1,children:be?e(zt.Provider,{value:Xo,children:e(Ut.Provider,{value:!h,children:us})}):us})}),ct=Ee?.blockCount??0,fs=Vo==="accordion"&&!!Ee&&(k||ct>0)?e(At,{startsOpen:kn===!0||Kn&&h&&n?.index===0,editing:k,numbered:Mo==="numbered",chevron:Mo==="chevron",title:e(Es.Provider,{value:jl,children:e(Ns.Provider,{value:!1,children:e(so.Provider,{value:!1,children:e(oo.Provider,{value:"plain",children:e(Ee,{className:`min-w-0 flex-1 ${vr}`,minEmptyHeight:24})})})})}),children:ms}):ms,Je=J?e(Al,{row:o==="row",stops:c.blockCount??0,desktopLine:j!==void 0&&jo,children:fs}):fs,at=Us?.trim()||(jn?"":void 0),dt={values:r,frame:je?24:0},ut=s=>To?e(Ll,{on:To,future:Rn===!0,children:s}):s,mt=s=>tl(W)?e(rl,{href:W,newTab:"auto",className:Ws,"aria-labelledby":s,[Ms]:""}):e("a",{href:W,className:Ws,"aria-labelledby":s,[Ms]:""}),hs=(B?ol(B):"")+Zn+(K===void 0||n&&n.index!==0?"":Ml(K,{gutter:!ee})),Cs=hs?e("style",{dangerouslySetInnerHTML:{__html:hs}}):null,ne=Kr({loop:b,direction:o,scrollDirection:ye,bgImage:S,[x]:I}),ft=d.desktop&&Se!==""&&!Y&&!g.className&&!Gs(No,ko,Eo,Co)&&!Xr($e,bo,So)&&!W&&!O&&!_&&!B&&!Ur(Le&&!ne,Jn)&&uo(mo)&&(ao(Pe)||uo(Pe))&&ho&&Object.values(r).every(s=>ao(s)||uo(s)),ht=s=>({...yt,...ft?{[Nl]:""}:null,...t?null:{...Gr($e),...jr($e,bo,So)},...B?{[qr]:B}:null,...s?{id:s}:null}),bs=X!==""?Number(m):0,Ct=ce(C,F)===ce(void 0),bt=(o==="column"||o==="row"&&!G&&!i&&(bs===1&&Ct||bs===0&&c.blockCount===1))&&!t&&!J&&!Ce,Ss=t&&Xn&&!Ce,pe=!t&&n!==null?Ds(Ae,ue):null,ws=Ie||pe?L(A,{children:[Ie?e(Xs,{sheet:ul,name:ml}):null,pe?e("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 -z-10 rounded-[inherit]",style:pe}):null]}):null,ps=[Ie?dl:"",pe?"relative isolate":""].filter(Boolean).join(" "),xs=s=>ws?L(A,{children:[ws,s]}):s,_s=(s,P)=>ut(e(gt,{contained:Le&&!ne,style:ne?co:void 0,framedClass:tt,fillClass:rt,columnClass:`${to} ${He}${ns}${ts}`,tabLabel:at,pad:t?void 0:dt,border:Gs(No,ko,Eo,Co),outerAttrs:ht(P),box:!0,edge:bt,outerStyle:Gn,outerClass:t?ps||void 0:[g.className,he?Rl:"",he&&Bo?Ol:"",ps].filter(Boolean).join(" ")||void 0,bleed:Ss,siteSide:ee,part:io("box"),children:Cs||P?L(A,{children:[Cs,P?mt(P):null,ne?e(ks,{children:s}):s]}):ne?e(ks,{children:s}):s})),Ze=s=>W?e(Kl,{children:P=>_s(xs(s),P)}):_s(xs(s)),vs=s=>Lo.bound?e(Vt,{children:s}):s;if(!t){const s=E===void 0||E==="stretch",P=($(a)!==""||X!==""||T!=="")&&!Hs(C,F)&&!(Q!==""&&$(H)==="")&&(s||ce(C)!==ce(void 0));if(!(o==="row"?P:o==="column"&&s))return Ze(vs(Je));const ys=Mt({direction:o,separator:f,loop:b,line:v,share:a,shareTablet:H,sharePhone:F,phoneRow:C,columns:m,columnsTablet:D,stackBelow:de,shared:d.desktop||d.phone||fe,count:En}),St={hasWidth:!0,...ys?{bound:Wt(ys,Lo.bound)}:null};return Ze(e(Is.Provider,{value:St,children:Je}))}const te=_e(S),re=te?Ds(Ae,ue):null,xe=te?Vr({darken:Ae,darkenStyle:ue,darkenTablet:nn,darkenStyleTablet:rn,darkenPhone:tn,darkenStylePhone:ln}):{className:"",style:{}},qe=_e(ke),Rs=te?qe?{"--sf-box-bg":ro(S??""),"--sf-box-bg-p":ro(ke??"")}:{backgroundImage:ro(S??""),backgroundSize:"cover",backgroundPosition:"center"}:{},Os=hl(void 0,void 0,V),U=Os.className?Os:null,le=te&&n&&V?.kind==="nextImage"&&V.media?_l(n,V.media):null,p=te?Hl(V,ue)??(le?gl:null):null,Ps=V?.media?.cover??"picture",Qe=le?e("div",{className:`absolute inset-0 isolate${q?" rounded-[inherit]":""}`,children:e(bl.Provider,{value:Tn,children:e(Cl,{media:le,name:vl(n?.row),cover:Ps,ground:xl[Ps],arrowsAbove:!0})})}):null,ie=U!==null||!!p?.zoom,As=ie?e("div",{"aria-hidden":!0,className:`absolute inset-0${q?" rounded-[inherit]":""}${qe?` ${Ks}`:""}${U?` ${U.className}`:""}`,style:{...Rs,...U?.style??{}}}):null,eo=ll({...r,top:ve(r.top)??N(y.desktop,r.unit,"desktop"),bottom:ve(r.bottom)??N(y.desktop,r.unit,"desktop"),topPhone:ve(r.topPhone)??N(y.phone,r.unitPhone,"mobile"),bottomPhone:ve(r.bottomPhone)??N(y.phone,r.unitPhone,"mobile"),left:Re(r.left)??N(y.side,r.unit,"desktop"),right:Re(r.right)??N(y.side,r.unit,"desktop"),leftPhone:Re(r.leftPhone)??N(y.sidePhone,r.unitPhone,"mobile"),rightPhone:Re(r.rightPhone)??N(y.sidePhone,r.unitPhone,"mobile"),sideSpace:ee?"site":"box"}),Ls=e("div",{className:`relative z-[1] ${kr} ${eo?.className??""}${_||O?` ${Oe}`:""}`.trimEnd(),style:re?{...eo?.style,...co,...il}:{...eo?.style,...co},...io("card-content"),children:vs(Je)}),$s=Ss&&Le?e("div",{className:`${to} ${He}${_||O?` ${Oe}`:""}`,children:Ls}):Ls;return Ze(e(A,{children:L("div",{className:`relative isolate overflow-hidden ${Wr}${n!==null&&!h?` ${Mr}`:""}${oe}${qe&&!ie?` ${Ks}`:""}${g.className?` ${g.className}`:""}${p?` ${p.className}`:""}`,style:{...q?Xl:{},...go,...ie?{}:Rs,...p?p.style:{}},...U||le?{[fl]:""}:{},...io("card"),children:[e(Tl,{move:p}),ie&&L(A,{children:[e(Xs,{sheet:U?.sheet}),p?.zoom?e("div",{className:`absolute inset-0 overflow-hidden${q?" rounded-[inherit]":""}`,children:L(Fl,{move:p,className:"absolute inset-0",children:[As,Qe]})}):L(A,{children:[As,Qe]})]}),!ie&&Qe,e(Dt,{wash:re&&xe.className?{...re,...xe.style}:re,hover:p?.washHover,...q?{className:"rounded-[inherit]"}:{},...xe.className?{restClassName:xe.className}:{}}),re?e(Ht,{children:$s}):$s,le?e("div",{[wl]:"",className:pl,children:$o?e(Sl,{state:$o}):null}):null]})}))}export{Ul as default};
1
+ import{Fragment as A,jsx as e,jsxs as L}from"react/jsx-runtime";import{useContext as xt,useId as _t,useState as vt}from"react";import Rt from"./BoxTabs.js";import{AccordionRowStyleContext as oo,BoxTabPaneContext as so,useAccordionRowStyle as Ot,useBoxPaneKind as Pt,useFirstCopyOpens as At,useIsTabPane as Lt}from"./BoxTabPaneContext.js";import $t,{ACCORDION_COUNTER_RESET as yt}from"./BoxAccordionRow.js";import{ACCORDION_MARK_SHEET as Nt}from"./AccordionMark.js";import{EDGE_LINE_ATTRS as Et}from"../../format/lib/content/view-lines.js";import{accordionRowStyleOf as kt}from"../../format/lib/content/accordion-row-style.js";import{boxPhoneCell as It,boxPhoneOrder as Bt}from"../../format/lib/content/box-phone-place.js";import{CellFillContext as Es,InBoxContext as ks,useCellOfStretchedRow as gt,useFillsCell as Tt}from"./InBoxContext.js";import Ft,{InsideSiteColumn as Is,useInsideSiteGutter as Ht,useSectionRoot as Dt}from"./SiteGutterFrame.js";import{BoxSurfaceProvider as Vt}from"./BoxSurfaceContext.js";import Mt from"./PictureWash.js";import{BoxCellContext as Bs,NoCellBound as Wt}from"./BoxCellContext.js";import{boxCellFractions as Gt}from"../lib/content/box-cell-bound.js";import{boundOf as Xt}from"../../format/lib/content/cell-picture-sizes.js";import{useInSiteHeader as jt}from"./PhoneMenuTools.js";import{useCardRow as Kt}from"./CardRowContext.js";import{cardLineBetween as no,framesItsCards as Ut}from"../../format/lib/content/card-place.js";import{rowLinkText as zt}from"../../format/lib/content/card-template.js";import{HandedMirrorContext as Yt,MirrorContext as Jt,RowHandContext as gs,boxPlace as Zt,useHandedMirrorAbove as qt,useHandedRows as Qt,useMirroredCopy as er,useUnderCardBox as or}from"./MirrorContext.js";import{boxChildrenHand as sr,isMirroredCopy as nr,mirrorCardsActs as Ts,mirrorCardsOf as tr,mirroredBoxClass as rr,MIRROR_ROW_CLASS as lr,ownsCard as ir}from"../../format/lib/content/mirror-cards.js";import{FRAME_BASE as to,frameGutterOf as cr}from"./BlockFrame.js";import{BOX_SIDE_SPACE_SITE as ar,boxSideSpaceOf as dr}from"../../format/lib/content/box-side-space.js";import{containerGapProps as Fs}from"../../format/lib/content/container-gap.js";import{boxLayoutClasses as ur,boxAlignViewClasses as mr,boxBlockSpacingClass as fr,boxBlockSpacingViewClasses as hr,boxJustifyViewClasses as Cr,boxWrapTabletClass as br,boxFitContentClass as Sr,boxAccordionColumnsClass as Hs,boxRowColumnsClass as wr,boxRowTabletColumnsClass as pr,boxRowTabletShareClass as xr,boxPhoneCellsShareLine as _r,boxPhoneRowClasses as ce,boxPhoneRowFits as Ds,boxShareClasses as $,boxShareVars as vr,boxWrapClass as Rr,BOX_GAP_ONLY_CLASS as Or}from"../../format/lib/content/box-layout.js";import{boxSeparatorClasses as Pr,boxSeparatorSeamClass as Ar,boxSeparatorStyle as Lr,isStripBox as $r}from"../../format/lib/content/box-separator.js";import{DEFAULT_LOOP_DELAY as yr,DEFAULT_LOOP_DIRECTION as Nr,DEFAULT_LOOP_SECONDS as Er,isVerticalLoop as kr}from"../../format/lib/animation/index.js";import{LoopTrack as Ir}from"../lib/animation/LoopTrack.js";import{BOX_CARD_PAD as y,BOX_OWNS_SIDES_CLASS as Br,boxDarkenStyle as Vs,boxPaintOf as gr,boxFillFadeStyle as Tr,boxFillViews as Fr,boxPlacementClasses as Hr,boxCardProps as Dr,boxIsCard as Ms,boxRowPicture as Vr,boxSwatchFill as Mr,boxWashViews as Wr,CARD_NO_LIFT_CLASS as Gr,CARD_SHADOW_CLASS as Xr,isBackgroundBox as _e}from"../../format/lib/content/box-background.js";import{BOX_ROW_IMAGE_PROP as x}from"../../format/lib/content/box-card-rule.js";import{boxShadowAttrs as jr,boxShadowOnAnyView as Kr,boxShadowViewAttrs as Ur}from"../../format/lib/content/box-shadow.js";import{boxRunsEdgeToEdge as zr,drawsSiteGutter as Yr}from"../../format/lib/content/site-gutter.js";import{boxShapeClass as Jr,boxShapeClasses as Zr,boxShapeStyle as qr}from"../../format/lib/content/box-shape.js";import{boxAngleStyle as Qr}from"../../format/lib/content/box-angle.js";import{BOX_JUMP_ATTR as el,BOX_LINK_ATTR as Ws,BOX_LINK_CLASS as Gs,BOX_LINKED_CLASS as ol,boxJumpBlocksClass as sl,boxJumpCss as nl,boxJumpSlug as tl,boxLinkOf as rl,siteLinkDraws as ll}from"../../format/lib/content/box-link.js";import{SiteLink as il}from"../lib/site-runtime.js";import{sectionBorderStyle as Xs}from"../../format/lib/content/borders.js";import{finiteNumber as ve}from"../../format/lib/finite-number.js";import{padDefaultIn as N,padSideValue as Re,sectionPadAttrs as cl}from"../lib/content/section-padding.js";import{SECTION_FILL_CLASS as Oe}from"../../format/lib/content/section-min-height.js";import{ON_MEDIA_INK_STYLE as al,rowFillInkStyle as dl}from"../../format/lib/content/ink.js";import{useThemeLightInk as ul}from"./ThemeLightInkContext.js";import{sizedBackground as ro}from"../../format/lib/sized-image.js";import{BOX_REVEAL_CLASS as ml,BOX_REVEAL_CSS as fl,BOX_REVEAL_SHEET as hl,PHOTO_HOST_ATTR as Cl,resolveImageTreatment as bl}from"../../format/lib/content/image-treatment.js";import Sl,{HoverArrowsSlot as wl,HoverMediaArrows as pl}from"./HoverMediaLayer.js";import{HOVER_ARROWS_HOST_ATTR as xl,HOVER_ARROWS_HOST_CLASS as _l,HOVER_LAYER_GROUND as vl,cardRowHoverMedia as Rl,hoverLayerName as Ol}from"../../format/lib/content/hover-media.js";import{BOX_HIGHLIGHT_CLASS as Pl,BOX_HIGHLIGHT_OVER_ROW_INK_CLASS as Al,BOX_SHOW_ON_CARD_HOVER as Ll}from"../../format/lib/animation/hover.js";import{BoxRail as $l,BoxRailStop as yl,RAIL_STOPS_CLASS as Nl,useTimelineRail as El}from"./TimelineRail.js";import{SHARED_PLAIN_ATTR as kl,sharedColumnsClasses as Il,sharedColumnsCss as Bl,sharedRowsClasses as gl,sharedRowsCss as Tl}from"../lib/content/box-shared-columns.js";import js from"./PhotoHoverSheet.js";import{PICTURE_FRAME_ONLY as Fl,PictureHoverMoveSheet as Hl,PictureHoverZoom as Dl,pictureHoverMoveOf as Vl}from"./PictureHoverMove.js";import{BOX_DESKTOP_LINE as Ml,stackGutterClass as Wl,stackLineCss as Gl,stackOuterClass as Xl,stackRowClass as jl,storedStackLine as lo}from"../lib/content/box-stack-line.js";import{partAttr as io}from"../../format/lib/content/part-names.js";import{withSideOnce as Ks}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as Kl}from"./SideSpaceOnce.js";const co={"--sf-site-gutter":"0px"},Ul={overflowX:"clip",overflowY:"visible"},zl={stretchedRow:!1,fillingColumn:!1,columnsRow:!1},Us={desktop:!1,phone:!1},zs="bg-cover bg-center bg-[image:var(--sf-box-bg)] max-view-wide:bg-[image:var(--sf-box-bg-p)]",ao=u=>u==null||u==="",uo=u=>!ao(u)&&Number(u)===0;function Yl({children:u}){return e(A,{children:u(_t())})}function Jl({direction:u,label:Ys,tabShape:Js,gap:mo,gapPhone:Zs,gapTablet:Pe,justify:z,align:E,wrap:ae,share:qs,sharePhone:F,shareTablet:H,wrapPhone:Qs,orderPhone:en,phoneRow:C,columns:m,columnsTablet:D,separator:f,stackBelow:de,blockSpacing:fo,bgImage:on,bgImagePhone:sn,rowImage:nn,hoverShow:tn,pictureHover:V,darken:Ae,darkenStyle:ue,darkenTablet:rn,darkenPhone:ln,darkenStyleTablet:cn,darkenStylePhone:an,placement:dn,padV2:ho=!1,border:un,borderTablet:mn,borderPhone:fn,borderUnits:Co,pad:r={},contained:Le=!0,fillHeight:_=!1,shadow:$e,shadowTablet:bo,shadowPhone:So,justifyTablet:wo,justifyPhone:hn,alignTablet:Cn,alignPhone:bn,wrapTablet:po,blockSpacingTablet:Sn,blockSpacingPhone:wn,loop:b,scrollDirection:ye=Nr,loopSeconds:pn=Er,loopDelay:xn=yr,editing:k=!1,fillColor:xo,fillColorTablet:_n,fillColorPhone:vn,fillFade:Rn,swatch:On,line:v,upcoming:Pn,link:An,rowLink:_o,highlight:Ln,boxShape:Ne,boxShapePhone:vo,boxShapeTablet:Ro,angle:$n,jumpHighlight:yn,anchor:Nn,sharedSides:En=Us,sharedRows:kn=!1,boxId:M,slotCount:In,mirrorCards:Oo,content:c,rowTitle:Ee,startsOpen:Bn,rowStyle:gn,sideSpace:Tn}){const n=Kt(),I=Dr({[x]:nn},n!==null)[x],Po=Ms({[x]:I}),d=Po?Us:En,Fn=Po?!1:kn,Ao=Vr({[x]:I},n?.row),S=Ao??on,ke=Ao===null?sn:void 0,Lo=xt(Bs),[$o,Hn]=vt(null),Dn=qt(),yo=or()&&!(Dn&&n!==null),R=Qt(),h=ir({inCopy:n!==null,nestedCopy:n?.nested===!0,underBox:yo}),Ie=tn===Ll&&n!==null&&!h&&!(k&&n.previewHover===!0),No=no(un,n,h),Eo=no(mn,n,h),ko=no(fn,n,h),Io=n===null&&!yo&&R?.ids&&M?R.ids.indexOf(M):-1,me=Io>=0&&R&&M?Zt(R,M,Io):-1,w=me>=0?R?.hand??null:h&&R?.copies===!0?R.hand:null,o=w?.row?"row":u,a=w?.row?w.row.share:qs,Vn=w?.row?w.row.phoneReverse?[...c.blockIds??[]].reverse():void 0:en,fe=Fn&&!w?.row,W=k?"":_o&&n?zt(n.row,_o)??"":rl(An),O=_?"":Zr(Ne,vo,Ro),Mn=!_&&Jr(Ne)!=="",B=tl(yn,Nn),Be=Mr({swatch:On},n?.row),Y=Be??gr(xo),g=Be?{className:"",style:{}}:Fr(xo,_n,vn),Wn=ul(),Bo=dl(Be,Wn??void 0),Gn=_e(S)||_e(ke),Xn=(Y||g.className)&&!Gn?Tr(Rn):null,go=Y||g.className?{...Y?{backgroundColor:Y}:{},...g.style,...Xn,...Bo}:void 0,To=El(),J=v===!0&&o!=="tabs"&&o!=="accordion",t=Ms({bgImage:S,[x]:I}),Fo=Qr($n),Ho=t?void 0:go,he=t?null:Ln??null,Do=_?null:qr(Ne,vo,Ro),jn=Fo||he||Do?{...Ho,...Fo,...he,...Do}:Ho,Ce=jt(),Kn=Dt(),Un=Lt(),Vo=Pt(),Mo=Ot(),zn=At(),l=o==="accordion",ge=kt(gn),Z=l&&ge==="numbered",Te=l&&ge==="chevron",Fe=Tt(),Wo=gt(),G=$r(o,f),i=b==="scroll"&&o!=="tabs"&&!l,Yn=er(),be=h||me>=0&&w!==null,Go=w?w.mirror:Oo,Jn=me>=0?me:n?.index,q=h&&Ut(n?.ownerType),Xo=Ts({direction:o,separator:f,loop:b,line:v,bgImage:S,[x]:I,columns:m,columnsTablet:D,share:a,wrap:ae},be,d.desktop)&&nr(Go,Jn),Zn=Ts({direction:o,separator:f,loop:b,line:v,bgImage:S,[x]:I,columns:m,columnsTablet:D,share:a,wrap:ae},be,d.desktop)&&tr(Go)!==null,X=wr({direction:o,separator:f,loop:b,line:v,columns:m}),T=pr({direction:o,separator:f,loop:b,line:v,columnsTablet:D}),Q=xr({direction:o,separator:f,loop:b,line:v,columns:m,columnsTablet:D,share:a,shareTablet:H}),ee=dr(Tn)===ar,He=cr(ee),jo=Kl(),Ko=J&&lo(de)===Ml,j=o==="row"&&!t&&!G&&!i&&(!J||Ko)&&T===""&&Q===""?lo(de):void 0,K=j??(o==="column"&&!t?lo(de):void 0),qn=Ht(),Se=Il(d,c.blockCount??0,j),Qn=(Se&&(!n||n.index===0)?Bl(d,c.blockCount??0,j):"")+(fe&&(!n||n.index===0)?Tl(fe,c.blockCount??0):""),Uo=gl(fe,c.blockCount??0),zo=T!==""?Number(D)>=2:Q===""||$(H)!=="",Yo=T!==""||Q!=="",De=o==="row"&&!G&&!i&&v!==!0,Ve=De&&!d.phone&&!d.desktop?It(Bt(Vn,c.blockIds??[]),{editing:k}):void 0,Jo=Ve!==void 0&&!k,et=X!==""?Number(m)>=2:$(a)!=="",Zo=!t&&!l&&!Zn&&!d.desktop&&!d.phone,we=Zo&&!i?Cr(z,wo,hn):"",Me=t||be?"":rr(Yn,o,i?void 0:z,E,we?wo:void 0),ot=/view-wide:max-view-desktop:justify-/.test(Me)?we.split(" ").filter(s=>!s.startsWith("view-wide:max-view-desktop:justify-")).join(" "):we,st=Zo&&o==="row"?mr(E,Cn,bn):"",qo=Wo&&o==="column"&&!t&&!i&&!l,We=typeof z=="string"&&z!=="start"||we!=="",Qo=qo&&We&&$(a)!=="",es=qo&&!We&&$(a)!==""&&(c.blockCount??0)===1,nt=!i&&!l&&X===""&&T===""&&!d.desktop?br(ae,po):"",os=[l||Qo?"":$(a),o==="row"?Sr(a):"",X,T,Q,fr(l?"gap":fo),Pr(o,f),l&&!Z&&!Te?"border-t border-line":"",ot,st,nt,l?"":hr(fo,Sn,wn),l?Hs(m,C,Z||Te):"",Z?yt:""].filter(Boolean).join(" "),tt=os?` ${os}`:"",ss=["flex",o==="row"?G||i?"flex-row":`flex-row ${ce(C,F,Qs,po)}`:"flex-col",Rr(i||l?!1:ae),t?Hr(dn??"center",o):ur(i||l?void 0:z,l?void 0:E)+(Me?` ${Me}`:"")].join(" ")+tt,oe=_||t||O||Fe?` ${Oe}`:"",Ge=Mn?` ${O}`:O?`${oe} ${O}`:oe,ns=Wo&&o==="column"&&!t&&!i&&$(a)===""&&We||Qo,ts=oe||(ns||es?` ${Oe}`:""),Xe=W?` ${ol}`:"",je=t||Ce||ho?"":" py-6",rt=j===void 0?"":` ${jl(j)}`,rs=K===void 0||ee?"":` ${Wl(K)}`,Ke=K===void 0?"":` ${Xl(K)}`,lt=`${to}${je} ${He}${Ge}${Xe}${rs}${Ke}`,it=Ce?`${Ge}${Xe}${Ke}`.trim():`w-full${je}${Ge}${Xe}${Ke}`,se=(Z||Te)&&Hs(m,C)===""?Fs("Flex",0,"block"):Fs("Flex",mo,o==="row"?"inline":"block",Zs,G||i?void 0:Pe),ls=vr(a,H,o==="row"?c.blockCount??0:0),is=G?{...se.style,...Lr(o,f)}:se.style,ct=ls?{...is,...ls}:is,Ue=(s="")=>e(c,{className:`${ss}${Xo?` ${lr}`:""}${se.className}${ts}${rt}${s?` ${s}`:""}${J?` ${Nl}`:""}${B?` ${sl(B)}`:""}${Se}${Uo}`,style:ct,minEmptyHeight:120,...Ve?{cell:Ve}:null}),cs=kr(ye)?"":Ar(o,f),as=i?e(Ir,{direction:ye,seconds:pn,delay:xn,editing:k,copy:s=>Ue(s&&cs?`${s} ${cs}`:s)}):Z?L(A,{children:[e("style",{children:Nt}),Ue()]}):Ue(),ze=o==="tabs"?e(Rt,{className:`${ss}${se.className}${Fe&&!_&&!t&&!O?"":oe}`,style:se.style,shape:Js,children:as}):as,Ye=l?e(so.Provider,{value:"accordion",children:e(oo.Provider,{value:ge,children:ze})}):Vo?e(so.Provider,{value:!1,children:e(oo.Provider,{value:"plain",children:ze})}):ze,ds=o==="row"&&!t&&(E===void 0||E==="stretch"),at={stretchedRow:ds,fillingColumn:o==="column"&&(Fe||ns),columnsRow:X!==""||T!==""||Se!==""||Uo!==""||o==="row"&&(Array.isArray(a)||Array.isArray(H))||Jo,...Jo?{phoneCells:!0}:null,...ds&&De&&(c.blockCount??0)>=2&&et||es?{picturesFillRow:!0}:null,...Yo&&!zo?{fillFrom:"desktop"}:null,..._r(C,F)&&(!Yo||zo)?{phoneRowFills:!0}:null,...De&&Ds(C,F)?{phoneRowFits:!0}:null,...i?{loops:!0}:null,...M?{id:M}:null},us=n===null?sr({direction:o,loop:b,bgImage:S,[x]:I,columns:m,mirrorCards:Oo},!1):null,ms=us?e(gs.Provider,{value:{hand:us,ids:c.blockIds??[],boxes:[]},children:Ye}):R?e(gs.Provider,{value:null,children:Ye}):Ye,fs=e(ks.Provider,{value:at,children:e(Es.Provider,{value:!1,children:be?e(Jt.Provider,{value:Xo,children:e(Yt.Provider,{value:!h,children:ms})}):ms})}),dt=Ee?.blockCount??0,hs=Vo==="accordion"&&!!Ee&&(k||dt>0)?e($t,{startsOpen:Bn===!0||zn&&h&&n?.index===0,editing:k,numbered:Mo==="numbered",chevron:Mo==="chevron",title:e(ks.Provider,{value:zl,children:e(Es.Provider,{value:!1,children:e(so.Provider,{value:!1,children:e(oo.Provider,{value:"plain",children:e(Ee,{className:`min-w-0 flex-1 ${Or}`,minEmptyHeight:24})})})})}),children:fs}):fs,Je=J?e($l,{row:o==="row",stops:c.blockCount??0,desktopLine:j!==void 0&&Ko,children:hs}):hs,ut=Ys?.trim()||(Un?"":void 0),mt={values:r,frame:je?24:0},ft=s=>To?e(yl,{on:To,future:Pn===!0,children:s}):s,ht=s=>ll(W)?e(il,{href:W,newTab:"auto",className:Gs,"aria-labelledby":s,[Ws]:""}):e("a",{href:W,className:Gs,"aria-labelledby":s,[Ws]:""}),Cs=(B?nl(B):"")+Qn+(K===void 0||n&&n.index!==0?"":Gl(K,{gutter:!ee})),bs=Cs?e("style",{dangerouslySetInnerHTML:{__html:Cs}}):null,ne=zr({loop:b,direction:o,scrollDirection:ye,bgImage:S,[x]:I}),Ct=d.desktop&&Se!==""&&!Y&&!g.className&&!Xs(No,ko,Eo,Co)&&!Kr($e,bo,So)&&!W&&!O&&!_&&!B&&!Yr(Le&&!ne,qn)&&uo(mo)&&(ao(Pe)||uo(Pe))&&ho&&Object.values(r).every(s=>ao(s)||uo(s)),bt=s=>({...Et,...Ct?{[kl]:""}:null,...t?null:{...jr($e),...Ur($e,bo,So)},...B?{[el]:B}:null,...s?{id:s}:null}),Ss=X!==""?Number(m):0,St=ce(C,F)===ce(void 0),wt=(o==="column"||o==="row"&&!G&&!i&&(Ss===1&&St||Ss===0&&c.blockCount===1))&&!t&&!J&&!Ce,ws=t&&Kn&&!Ce,pe=!t&&n!==null?Vs(Ae,ue):null,ps=Ie||pe?L(A,{children:[Ie?e(js,{sheet:fl,name:hl}):null,pe?e("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 -z-10 rounded-[inherit]",style:pe}):null]}):null,xs=[Ie?ml:"",pe?"relative isolate":""].filter(Boolean).join(" "),_s=s=>ps?L(A,{children:[ps,s]}):s,vs=(s,P)=>ft(e(Ft,{contained:Le&&!ne,style:ne?co:void 0,framedClass:lt,fillClass:it,columnClass:`${to} ${He}${ts}${rs}`,tabLabel:ut,pad:t?void 0:mt,border:Xs(No,ko,Eo,Co),outerAttrs:bt(P),box:!0,edge:wt,outerStyle:jn,outerClass:t?xs||void 0:[g.className,he?Pl:"",he&&Bo?Al:"",xs].filter(Boolean).join(" ")||void 0,bleed:ws,siteSide:ee,part:io("box"),children:bs||P?L(A,{children:[bs,P?ht(P):null,ne?e(Is,{children:s}):s]}):ne?e(Is,{children:s}):s})),Ze=s=>W?e(Yl,{children:P=>vs(_s(s),P)}):vs(_s(s)),Rs=s=>Lo.bound?e(Wt,{children:s}):s;if(!t){const s=E===void 0||E==="stretch",P=($(a)!==""||X!==""||T!=="")&&!Ds(C,F)&&!(Q!==""&&$(H)==="")&&(s||ce(C)!==ce(void 0));if(!(o==="row"?P:o==="column"&&s))return Ze(Rs(Je));const Ns=Gt({direction:o,separator:f,loop:b,line:v,share:a,shareTablet:H,sharePhone:F,phoneRow:C,columns:m,columnsTablet:D,stackBelow:de,shared:d.desktop||d.phone||fe,count:In}),pt={hasWidth:!0,...Ns?{bound:Xt(Ns,Lo.bound)}:null};return Ze(e(Bs.Provider,{value:pt,children:Je}))}const te=_e(S),re=te?Vs(Ae,ue):null,xe=te?Wr({darken:Ae,darkenStyle:ue,darkenTablet:rn,darkenStyleTablet:cn,darkenPhone:ln,darkenStylePhone:an}):{className:"",style:{}},qe=_e(ke),Os=te?qe?{"--sf-box-bg":ro(S??""),"--sf-box-bg-p":ro(ke??"")}:{backgroundImage:ro(S??""),backgroundSize:"cover",backgroundPosition:"center"}:{},Ps=bl(void 0,void 0,V),U=Ps.className?Ps:null,le=te&&n&&V?.kind==="nextImage"&&V.media?Rl(n,V.media):null,p=te?Vl(V,ue)??(le?Fl:null):null,As=V?.media?.cover??"picture",Qe=le?e("div",{className:`absolute inset-0 isolate${q?" rounded-[inherit]":""}`,children:e(wl.Provider,{value:Hn,children:e(Sl,{media:le,name:Ol(n?.row),cover:As,ground:vl[As],arrowsAbove:!0})})}):null,ie=U!==null||!!p?.zoom,Ls=ie?e("div",{"aria-hidden":!0,className:`absolute inset-0${q?" rounded-[inherit]":""}${qe?` ${zs}`:""}${U?` ${U.className}`:""}`,style:{...Os,...U?.style??{}}}):null,eo=cl({...r,top:ve(r.top)??N(y.desktop,r.unit,"desktop"),bottom:ve(r.bottom)??N(y.desktop,r.unit,"desktop"),topPhone:ve(r.topPhone)??N(y.phone,r.unitPhone,"mobile"),bottomPhone:ve(r.bottomPhone)??N(y.phone,r.unitPhone,"mobile"),left:Re(r.left)??N(y.side,r.unit,"desktop"),right:Re(r.right)??N(y.side,r.unit,"desktop"),leftPhone:Re(r.leftPhone)??N(y.sidePhone,r.unitPhone,"mobile"),rightPhone:Re(r.rightPhone)??N(y.sidePhone,r.unitPhone,"mobile"),sideSpace:ee?"site":"box"}),$s=e("div",{className:`relative z-[1] ${Br} ${Ks(eo?.className??"",jo)}${_||O?` ${Oe}`:""}`.trimEnd(),style:re?{...eo?.style,...co,...al}:{...eo?.style,...co},...io("card-content"),children:Rs(Je)}),ys=ws&&Le?e("div",{className:Ks(`${to} ${He}${_||O?` ${Oe}`:""}`,jo),children:$s}):$s;return Ze(e(A,{children:L("div",{className:`relative isolate overflow-hidden ${Xr}${n!==null&&!h?` ${Gr}`:""}${oe}${qe&&!ie?` ${zs}`:""}${g.className?` ${g.className}`:""}${p?` ${p.className}`:""}`,style:{...q?Ul:{},...go,...ie?{}:Os,...p?p.style:{}},...U||le?{[Cl]:""}:{},...io("card"),children:[e(Hl,{move:p}),ie&&L(A,{children:[e(js,{sheet:U?.sheet}),p?.zoom?e("div",{className:`absolute inset-0 overflow-hidden${q?" rounded-[inherit]":""}`,children:L(Dl,{move:p,className:"absolute inset-0",children:[Ls,Qe]})}):L(A,{children:[Ls,Qe]})]}),!ie&&Qe,e(Mt,{wash:re&&xe.className?{...re,...xe.style}:re,hover:p?.washHover,...q?{className:"rounded-[inherit]"}:{},...xe.className?{restClassName:xe.className}:{}}),re?e(Vt,{children:ys}):ys,le?e("div",{[xl]:"",className:_l,children:$o?e(pl,{state:$o}):null}):null]})}))}export{Jl as default};