efficient-web-builder 74.1.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 (92) hide show
  1. package/CHANGELOG.md +23 -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/StorefrontEditor.js +1 -1
  5. package/dist/editor/components/storefront-editor.css +7 -0
  6. package/dist/editor/lib/document/blocks/general/ContactLocations/fields.js +1 -1
  7. package/dist/editor/lib/document/blocks/general/Footprint/fields.d.ts +3 -0
  8. package/dist/editor/lib/document/blocks/general/Footprint/fields.js +1 -1
  9. package/dist/editor/lib/document/controls.d.ts +1 -0
  10. package/dist/editor/lib/document/controls.js +1 -1
  11. package/dist/editor/lib/document/page-root-fields.d.ts +4 -0
  12. package/dist/editor/lib/document/page-root-fields.js +1 -1
  13. package/dist/editor/lib/document/page-root.d.ts +3 -2
  14. package/dist/editor/lib/document/page-root.js +2 -2
  15. package/dist/editor/lib/document/registry.js +1 -1
  16. package/dist/editor/lib/editor-document-adapter.d.ts +1 -0
  17. package/dist/editor/lib/editor-document-adapter.js +1 -1
  18. package/dist/editor/lib/pinned-chrome-doc.d.ts +1 -0
  19. package/dist/editor/lib/pinned-chrome-doc.js +1 -1
  20. package/dist/format/lib/build/module-specifiers.d.ts +8 -0
  21. package/dist/format/lib/build/module-specifiers.js +1 -1
  22. package/dist/format/lib/content/block-sources.d.ts +1 -0
  23. package/dist/format/lib/content/block-sources.js +1 -1
  24. package/dist/format/lib/content/page-width.d.ts +15 -0
  25. package/dist/format/lib/content/page-width.js +1 -1
  26. package/dist/format/lib/content/section-css.d.ts +1 -1
  27. package/dist/format/lib/content/section-css.js +1 -1
  28. package/dist/format/lib/content/site-css.d.ts +5 -0
  29. package/dist/format/lib/content/site-css.js +1 -0
  30. package/dist/format/lib/content/site-offices.d.ts +7 -0
  31. package/dist/format/lib/content/site-offices.js +1 -0
  32. package/dist/format/lib/editor-words-catalogue.d.ts +3 -0
  33. package/dist/format/lib/editor-words-catalogue.js +3 -3
  34. package/dist/format/lib/source-rules/panel-colour-tokens.js +7 -7
  35. package/dist/format/lib/source-rules/site-gutter-once.d.ts +12 -0
  36. package/dist/format/lib/source-rules/site-gutter-once.js +23 -0
  37. package/dist/render/components/Breadcrumb.js +1 -1
  38. package/dist/render/components/Cards.js +1 -1
  39. package/dist/render/components/ChartSection.js +1 -1
  40. package/dist/render/components/ContactLocations.js +2 -2
  41. package/dist/render/components/Countdown.js +1 -1
  42. package/dist/render/components/DocBody.js +5 -5
  43. package/dist/render/components/DocMasthead.js +1 -1
  44. package/dist/render/components/DocMetaCards.js +1 -1
  45. package/dist/render/components/FAQ.js +1 -1
  46. package/dist/render/components/FeaturedCover.js +1 -1
  47. package/dist/render/components/Flex.js +1 -1
  48. package/dist/render/components/Footprint.js +1 -1
  49. package/dist/render/components/HeroGroup.js +1 -1
  50. package/dist/render/components/HeroSingle.js +1 -1
  51. package/dist/render/components/HeroSlide.js +1 -1
  52. package/dist/render/components/ImageBlock.js +1 -1
  53. package/dist/render/components/KeyFeatures.js +1 -1
  54. package/dist/render/components/LongRead.js +1 -1
  55. package/dist/render/components/Manifesto.js +1 -1
  56. package/dist/render/components/Masthead.js +1 -1
  57. package/dist/render/components/MockupSection.js +1 -1
  58. package/dist/render/components/ParagraphsA.js +1 -1
  59. package/dist/render/components/ProcessSteps.js +1 -1
  60. package/dist/render/components/Prose.js +1 -1
  61. package/dist/render/components/SectionHeader.js +1 -1
  62. package/dist/render/components/Series.js +1 -1
  63. package/dist/render/components/SideSpaceOnce.d.ts +6 -0
  64. package/dist/render/components/SideSpaceOnce.js +1 -0
  65. package/dist/render/components/SiteGutterFrame.js +1 -1
  66. package/dist/render/components/SiteOffices.d.ts +5 -0
  67. package/dist/render/components/SiteOffices.js +1 -0
  68. package/dist/render/components/SiteRootProps.d.ts +6 -0
  69. package/dist/render/components/SiteRootProps.js +1 -0
  70. package/dist/render/components/SpecStrip.js +1 -1
  71. package/dist/render/components/Split.js +1 -1
  72. package/dist/render/components/StatsParagraph.js +1 -1
  73. package/dist/render/components/Testimonials.js +1 -1
  74. package/dist/render/components/Timeline.js +1 -1
  75. package/dist/render/components/TimelineTrack.js +1 -1
  76. package/dist/render/components/TitleWithButtons.js +1 -1
  77. package/dist/render/lib/content/section-edge.d.ts +1 -1
  78. package/dist/render/lib/content/section-edge.js +1 -1
  79. package/dist/render/lib/document/blocks/general/ContactLocations/render.js +1 -1
  80. package/dist/render/lib/document/blocks/general/Footprint/render.js +1 -1
  81. package/dist/render/lib/document/blocks/general/SectionHeader/render.js +1 -1
  82. package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
  83. package/dist/render/lib/document/custom-css.d.ts +2 -1
  84. package/dist/render/lib/document/passes/section-custom-css.d.ts +7 -0
  85. package/dist/render/lib/document/passes/section-custom-css.js +1 -1
  86. package/dist/render/lib/document/passes/section-padding.js +1 -1
  87. package/dist/render/lib/document/passes/section-width.js +1 -1
  88. package/dist/render/lib/document/section-css-style.d.ts +3 -1
  89. package/dist/render/lib/document/section-css-style.js +1 -1
  90. package/dist/routine-index.json +1 -1
  91. package/dist/value-index.json +1 -1
  92. 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 +1 @@
1
- import{jsx as t,jsxs as o,Fragment as h}from"react/jsx-runtime";import{Fragment as x}from"react";import{SiteLink as b}from"../lib/site-runtime.js";import{renderChrome as u,renderGold as g}from"./goldPhrases.js";import{say as v}from"../../format/lib/editor-words.js";import{PY_CLASS as N,SECTION_PAD_KEYS as _,framePadAttrs as y,padValuesOf as P,tierFramesOf as j}from"../lib/content/section-padding.js";import{CRUMB_PAD as m}from"../../format/lib/sections/strip-shape.js";const w={16:"max-view-tablet:py-4"},E=a=>y({values:P(a,_,!0),frame:j(m),drawsFrame:!0},!0).root;function B({items:a,current:i,meta:s,editing:d=!1,pad:e}){const c=(a??[]).filter(r=>r?.label?.trim()),f=i?.trim()?[...c,{label:i}]:c,n=f.length>0?f:d?[{label:v("Breadcrumb")}]:[];return n.length===0&&!s?null:t("nav",{className:["border-b border-line px-[var(--sf-site-gutter,40px)]",e?null:N.all[m.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:w[m.topPhone]].filter(Boolean).join(" "),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(x,{children:[l>0&&t("span",{className:"opacity-40",children:"/"}),r.href&&!p?t(b,{newTab:"auto",href:r.href,className:"hover:text-fg",children:u(r.label)}):t("span",{className:p?"text-fg":void 0,children:u(r.label)})]},l)}),s&&o(h,{children:[t("span",{className:"opacity-40",children:"·"}),t("span",{children:g(s)})]})]})})}export{E as crumbPad,B 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};
@@ -1 +1 @@
1
- "use client";import{jsx as t,jsxs as m,Fragment as le}from"react/jsx-runtime";import{bandPadAttrs as ne}from"../lib/content/section-padding.js";import{innerPaddingFallback as re}from"../lib/document/passes/section-padding.js";import{HideTaker as ae}from"./ViewHideRoot.js";import{isWebAddress as ie}from"../../format/lib/content/box-link.js";import{SiteLink as oe}from"../lib/site-runtime.js";import{useEffect as B,useMemo as se,useState as G}from"react";import{CardTemplateRows as K}from"./CardRowContext.js";import{FOOTPRINT_LIST_COLUMNS_DEFAULT as ce,FOOTPRINT_MAP_HEIGHT_FULL as me,FOOTPRINT_SHOWS_DEFAULT as de,footprintCardRow as z,footprintListColsClass as pe,footprintListPosition as fe,footprintPins as ue,footprintSearchText as be}from"../../format/lib/content/footprint.js";import{LIST_KEY_ATTR as he,LIST_ROW_ATTR as xe,LIST_TEXT_ATTR as ge}from"../../format/lib/content/list-query.js";import{bucketByGroup as ye}from"../../format/lib/locations-grid.js";import ve from"./EditorialSectionHead.js";import Te from"./SectionHeader.js";import{LocationGroupHeader as Se}from"./LocationGroupHeader.js";import{renderGold as we,renderHeadline as D}from"./goldPhrases.js";import Ne from"./PartStyledText.js";import{say as U}from"../../format/lib/editor-words.js";import ke from"./DealerFinder.js";import Le from"./ListSearchBox.js";import _e,{sideMapClass as $e}from"./SideListLayout.js";import Fe from"./SiteMap.js";import{InsideSiteColumn as W}from"./SiteGutterFrame.js";const r={bodySmall:"text-[length:var(--size-body,10px)]",bodyLarge:"text-[length:var(--size-body,18px)]",labelSmall:"text-[length:var(--size-label,11px)]",labelLarge:"text-[length:var(--size-label,12px)]"},q=`absolute bottom-5 left-6 font-mono ${r.labelSmall} uppercase tracking-[0.24em] text-accent hover:underline`;function He({sectionNumber:d="",heading:a="",tagline:b="",offices:n=[],mapTheme:h="auto",padTop:L,padBottom:_,bandPad:g,editing:p,omitHead:$=!1,dealers:f=!1,search:c=!1,searchHint:i="",noMatchText:S="",listPosition:u="below",showDistance:X=!0,shows:w=de,listColumns:O=ce,mapHeight:Y,headInList:Z=!1,template:F,ownerId:y="",pressTitles:J}){const N=f===!0,C=w!=="list",V=w!=="map",v=fe({shows:w,listPosition:u}),H=Y===me,M=Z&&v!=="below",E=g??ne({padTop:L,padBottom:_},re("Footprint")),[T,x]=G(null),ee=n.length===0&&!N&&!d&&!a&&!b;if(B(()=>{x(e=>e!==null&&e>=n.length?null:e)},[n]),ee&&!p)return null;const P=ye(n,e=>String(e.group??""),()=>""),te=(e,l)=>{const s=T===l,o=e.href&&e.linkLabel?{href:e.href,label:e.linkLabel}:null,k=m("button",{type:"button",onClick:()=>x(l),"aria-pressed":s,className:["flex flex-col gap-1.5 bg-bg px-6 py-5 text-left transition-colors outline outline-1 -outline-offset-1",s?"outline-accent":"outline-transparent hover:outline-line",o?"w-full pb-11":""].filter(Boolean).join(" "),children:[m("span",{className:`flex items-center gap-2.5 font-mono ${r.labelSmall} uppercase tracking-[0.28em]`,children:[e.hq&&t("span",{className:`border border-accent bg-accent px-1.5 py-0.5 ${r.bodySmall} text-bg`,children:"HQ"}),e.role&&t("span",{className:"text-accent",children:e.role})]}),e.city&&t("span",{className:`font-display ${r.bodyLarge} font-medium leading-[1.2] tracking-[-0.01em] text-fg`,children:t(Ne,{value:e.city,children:e.city})}),e.country&&t("span",{className:`font-mono ${r.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:e.country}),e.address&&t("span",{className:`font-mono ${r.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:we(e.address)})]},o?void 0:l);return o?m("div",{className:"relative flex",children:[k,ie(o.href)?t(oe,{newTab:"auto",href:o.href,className:q,children:`→ ${o.label}`}):t("a",{href:o.href,className:q,children:`→ ${o.label}`})]},l):k},A=P.flatMap(e=>e.items),R=e=>t("div",{className:C?"mt-12 flex flex-col gap-8":"flex flex-col gap-8",children:P.map((l,s)=>m("div",{children:[l.key&&t(Se,{groupKey:l.key,count:l.items.length}),t("div",{className:["grid gap-[2px] bg-bg",pe(O,l.items.length)].join(" "),children:e(l)})]},l.key?`g:${l.key}`:`ungrouped:${s}`))}),j=!$&&!!(d||a||b),I=M&&j?t(Te,{look:"natural",num:d||void 0,title:a?D(a):void 0,description:b||void 0,spaceBelow:"mb-8"}):null;return t(ae,{as:"section",className:"relative z-[2] bg-bg",children:m("div",{className:["mx-auto max-w-[var(--sf-site-width,1600px)] border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]",E.className].filter(Boolean).join(" "),style:E.style,children:[j&&!M&&t(ve,{num:d,title:a?D(a):void 0,desc:b||void 0,spaceBelow:"mb-12"}),N?t(ke,{mapLabel:a.replace(/[=*]/g,"").replace(/\s+/g," ").trim(),mapTheme:h,search:c,searchHint:i,noMatchText:S,listPosition:u,showDistance:X,shows:w,listColumns:O,fullHeight:H,sectionHead:I,editing:p,template:F,ownerId:y}):v!=="below"?t(_e,{position:v,attrs:{"data-footprint-list":v},fullHeight:H,head:I||c?m(le,{children:[I,c?t("div",{className:"mb-4",children:t(Le,{hint:i,noMatchText:S,listKey:`${y}:offices`,editing:p})}):null]}):null,listAttrs:c?{[he]:`${y}:offices`}:void 0,list:t(W,{children:t(K,{ownerId:y,ownerType:"Footprint",Template:F,rows:n.map(z),states:n.map((e,l)=>T===l?{selected:!0}:void 0),actions:n.map((e,l)=>({press:()=>x(l)})),pressTitles:J,copyAttrs:e=>({[xe]:"",[ge]:be(n[e.index])}),fallback:null,children:e=>e})}),map:t(Q,{offices:n,mapLabel:a.replace(/[=*]/g,"").replace(/\s+/g," ").trim(),mapTheme:h,activeIndex:T,onSelect:x,editing:p,frame:`sf-card relative w-full overflow-hidden border border-line ${$e(H)}`})}):C?t(Q,{offices:n,mapLabel:a.replace(/[=*]/g,"").replace(/\s+/g," ").trim(),mapTheme:h,activeIndex:T,onSelect:x,editing:p}):null,!N&&V&&v==="below"&&n.length>0&&t(K,{ownerId:y,ownerType:"Footprint",Template:F,rows:A.map(({item:e})=>z(e)),states:A.map(({index:e})=>T===e?{selected:!0}:void 0),actions:A.map(({index:e})=>({press:()=>x(e)})),fallback:R(e=>e.items.map(({item:l,index:s})=>te(l,s))),children:e=>{const l=e;let s=0;return t(W,{children:R(o=>{const k=l.slice(s,s+o.items.length);return s+=o.items.length,k})})}}),!N&&n.length===0&&p&&t("p",{className:`mt-8 font-mono ${r.labelLarge} uppercase tracking-[0.24em] text-fg-dim`,children:U("Add an office in the inspector")})]})})}function Q({offices:d,mapLabel:a,mapTheme:b,activeIndex:n,onSelect:h,editing:L,frame:_}){const g=se(()=>ue(d),[d]),[p,$]=G(null),f=n===null?null:String(n),c=f!==null&&g.some(u=>u.key===f);if(B(()=>{f!==null&&c&&$(u=>({key:f,n:(u?.n??0)+1}))},[f,c]),g.length===0)return L?t("div",{className:"relative flex aspect-[16/9] w-full items-center justify-center overflow-hidden border border-line bg-bg px-6 text-center max-view-tablet:aspect-[4/5]",children:t("span",{className:`font-mono ${r.labelLarge} uppercase tracking-[0.24em] text-fg-dim`,children:U("Add office coordinates to plot the map")})}):null;const i=c&&n!==null?d[n]:null,S=i?m("div",{className:"flex items-start gap-3 border border-line bg-bg px-3.5 py-2.5 text-fg shadow-[0_8px_24px_rgba(0,0,0,.4)]",children:[m("div",{className:"min-w-0 flex-1",children:[m("div",{className:`flex items-center gap-2 font-mono ${r.labelSmall} uppercase tracking-[0.28em]`,children:[i.hq&&t("span",{className:`bg-accent px-1.5 py-px ${r.bodySmall} text-bg`,children:"HQ"}),i.role&&t("span",{className:"text-accent",children:i.role})]}),i.city&&t("div",{className:`mt-1.5 font-display ${r.bodyLarge} font-medium leading-[1.2] text-fg`,children:i.city}),i.country&&t("div",{className:`mt-1 font-mono ${r.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:i.country})]}),t("button",{type:"button",onClick:()=>h(null),"aria-label":"Close",className:"-mr-1 grid h-6 w-6 shrink-0 place-items-center text-fg-dim hover:text-fg",children:t("svg",{"aria-hidden":!0,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:t("path",{d:"M2 2l8 8M10 2l-8 8"})})})]}):null;return t(Fe,{pins:g,mapTheme:b,ariaLabel:a||"Offices",className:_??"sf-card relative aspect-[16/9] w-full overflow-hidden border border-line max-view-tablet:aspect-[4/5]",selectedKey:c?f:null,focus:p,onSelect:u=>h(Number(u)),card:S})}export{He as default};
1
+ "use client";import{jsx as t,jsxs as m,Fragment as ne}from"react/jsx-runtime";import{bandPadAttrs as re}from"../lib/content/section-padding.js";import{innerPaddingFallback as ae}from"../lib/document/passes/section-padding.js";import{HideTaker as ie}from"./ViewHideRoot.js";import{isWebAddress as oe}from"../../format/lib/content/box-link.js";import{SiteLink as se}from"../lib/site-runtime.js";import{useEffect as B,useMemo as ce,useState as G}from"react";import{CardTemplateRows as K}from"./CardRowContext.js";import{FOOTPRINT_LIST_COLUMNS_DEFAULT as me,FOOTPRINT_MAP_HEIGHT_FULL as de,FOOTPRINT_SHOWS_DEFAULT as pe,footprintCardRow as z,footprintListColsClass as fe,footprintListPosition as ue,footprintPins as be,footprintSearchText as he}from"../../format/lib/content/footprint.js";import{LIST_KEY_ATTR as xe,LIST_ROW_ATTR as ge,LIST_TEXT_ATTR as ye}from"../../format/lib/content/list-query.js";import{bucketByGroup as ve}from"../../format/lib/locations-grid.js";import Te from"./EditorialSectionHead.js";import Se from"./SectionHeader.js";import{LocationGroupHeader as we}from"./LocationGroupHeader.js";import{renderGold as Ne,renderHeadline as D}from"./goldPhrases.js";import ke from"./PartStyledText.js";import{say as U}from"../../format/lib/editor-words.js";import Le from"./DealerFinder.js";import _e from"./ListSearchBox.js";import $e,{sideMapClass as Fe}from"./SideListLayout.js";import Oe from"./SiteMap.js";import{InsideSiteColumn as W}from"./SiteGutterFrame.js";import{withSideOnce as He}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as Ae}from"./SideSpaceOnce.js";const r={bodySmall:"text-[length:var(--size-body,10px)]",bodyLarge:"text-[length:var(--size-body,18px)]",labelSmall:"text-[length:var(--size-label,11px)]",labelLarge:"text-[length:var(--size-label,12px)]"},q=`absolute bottom-5 left-6 font-mono ${r.labelSmall} uppercase tracking-[0.24em] text-accent hover:underline`;function Ie({sectionNumber:d="",heading:a="",tagline:b="",offices:n=[],mapTheme:h="auto",padTop:L,padBottom:_,bandPad:g,editing:p,omitHead:$=!1,dealers:f=!1,search:c=!1,searchHint:i="",noMatchText:S="",listPosition:u="below",showDistance:X=!0,shows:w=pe,listColumns:I=me,mapHeight:Y,headInList:Z=!1,template:F,ownerId:y="",pressTitles:J}){const V=Ae(),N=f===!0,C=w!=="list",ee=w!=="map",v=ue({shows:w,listPosition:u}),O=Y===de,M=Z&&v!=="below",E=g??re({padTop:L,padBottom:_},ae("Footprint")),[T,x]=G(null),te=n.length===0&&!N&&!d&&!a&&!b;if(B(()=>{x(e=>e!==null&&e>=n.length?null:e)},[n]),te&&!p)return null;const P=ve(n,e=>String(e.group??""),()=>""),le=(e,l)=>{const s=T===l,o=e.href&&e.linkLabel?{href:e.href,label:e.linkLabel}:null,k=m("button",{type:"button",onClick:()=>x(l),"aria-pressed":s,className:["flex flex-col gap-1.5 bg-bg px-6 py-5 text-left transition-colors outline outline-1 -outline-offset-1",s?"outline-accent":"outline-transparent hover:outline-line",o?"w-full pb-11":""].filter(Boolean).join(" "),children:[m("span",{className:`flex items-center gap-2.5 font-mono ${r.labelSmall} uppercase tracking-[0.28em]`,children:[e.hq&&t("span",{className:`border border-accent bg-accent px-1.5 py-0.5 ${r.bodySmall} text-bg`,children:"HQ"}),e.role&&t("span",{className:"text-accent",children:e.role})]}),e.city&&t("span",{className:`font-display ${r.bodyLarge} font-medium leading-[1.2] tracking-[-0.01em] text-fg`,children:t(ke,{value:e.city,children:e.city})}),e.country&&t("span",{className:`font-mono ${r.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:e.country}),e.address&&t("span",{className:`font-mono ${r.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:Ne(e.address)})]},o?void 0:l);return o?m("div",{className:"relative flex",children:[k,oe(o.href)?t(se,{newTab:"auto",href:o.href,className:q,children:`→ ${o.label}`}):t("a",{href:o.href,className:q,children:`→ ${o.label}`})]},l):k},H=P.flatMap(e=>e.items),R=e=>t("div",{className:C?"mt-12 flex flex-col gap-8":"flex flex-col gap-8",children:P.map((l,s)=>m("div",{children:[l.key&&t(we,{groupKey:l.key,count:l.items.length}),t("div",{className:["grid gap-[2px] bg-bg",fe(I,l.items.length)].join(" "),children:e(l)})]},l.key?`g:${l.key}`:`ungrouped:${s}`))}),j=!$&&!!(d||a||b),A=M&&j?t(Se,{look:"natural",num:d||void 0,title:a?D(a):void 0,description:b||void 0,spaceBelow:"mb-8"}):null;return t(ie,{as:"section",className:"relative z-[2] bg-bg",children:m("div",{className:He(["mx-auto max-w-[var(--sf-site-width,1600px)] border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]",E.className].filter(Boolean).join(" "),V),style:E.style,children:[j&&!M&&t(Te,{num:d,title:a?D(a):void 0,desc:b||void 0,spaceBelow:"mb-12"}),N?t(Le,{mapLabel:a.replace(/[=*]/g,"").replace(/\s+/g," ").trim(),mapTheme:h,search:c,searchHint:i,noMatchText:S,listPosition:u,showDistance:X,shows:w,listColumns:I,fullHeight:O,sectionHead:A,editing:p,template:F,ownerId:y}):v!=="below"?t($e,{position:v,attrs:{"data-footprint-list":v},fullHeight:O,head:A||c?m(ne,{children:[A,c?t("div",{className:"mb-4",children:t(_e,{hint:i,noMatchText:S,listKey:`${y}:offices`,editing:p})}):null]}):null,listAttrs:c?{[xe]:`${y}:offices`}:void 0,list:t(W,{children:t(K,{ownerId:y,ownerType:"Footprint",Template:F,rows:n.map(z),states:n.map((e,l)=>T===l?{selected:!0}:void 0),actions:n.map((e,l)=>({press:()=>x(l)})),pressTitles:J,copyAttrs:e=>({[ge]:"",[ye]:he(n[e.index])}),fallback:null,children:e=>e})}),map:t(Q,{offices:n,mapLabel:a.replace(/[=*]/g,"").replace(/\s+/g," ").trim(),mapTheme:h,activeIndex:T,onSelect:x,editing:p,frame:`sf-card relative w-full overflow-hidden border border-line ${Fe(O)}`})}):C?t(Q,{offices:n,mapLabel:a.replace(/[=*]/g,"").replace(/\s+/g," ").trim(),mapTheme:h,activeIndex:T,onSelect:x,editing:p}):null,!N&&ee&&v==="below"&&n.length>0&&t(K,{ownerId:y,ownerType:"Footprint",Template:F,rows:H.map(({item:e})=>z(e)),states:H.map(({index:e})=>T===e?{selected:!0}:void 0),actions:H.map(({index:e})=>({press:()=>x(e)})),fallback:R(e=>e.items.map(({item:l,index:s})=>le(l,s))),children:e=>{const l=e;let s=0;return t(W,{children:R(o=>{const k=l.slice(s,s+o.items.length);return s+=o.items.length,k})})}}),!N&&n.length===0&&p&&t("p",{className:`mt-8 font-mono ${r.labelLarge} uppercase tracking-[0.24em] text-fg-dim`,children:U("Add an office in the inspector")})]})})}function Q({offices:d,mapLabel:a,mapTheme:b,activeIndex:n,onSelect:h,editing:L,frame:_}){const g=ce(()=>be(d),[d]),[p,$]=G(null),f=n===null?null:String(n),c=f!==null&&g.some(u=>u.key===f);if(B(()=>{f!==null&&c&&$(u=>({key:f,n:(u?.n??0)+1}))},[f,c]),g.length===0)return L?t("div",{className:"relative flex aspect-[16/9] w-full items-center justify-center overflow-hidden border border-line bg-bg px-6 text-center max-view-tablet:aspect-[4/5]",children:t("span",{className:`font-mono ${r.labelLarge} uppercase tracking-[0.24em] text-fg-dim`,children:U("Add office coordinates to plot the map")})}):null;const i=c&&n!==null?d[n]:null,S=i?m("div",{className:"flex items-start gap-3 border border-line bg-bg px-3.5 py-2.5 text-fg shadow-[0_8px_24px_rgba(0,0,0,.4)]",children:[m("div",{className:"min-w-0 flex-1",children:[m("div",{className:`flex items-center gap-2 font-mono ${r.labelSmall} uppercase tracking-[0.28em]`,children:[i.hq&&t("span",{className:`bg-accent px-1.5 py-px ${r.bodySmall} text-bg`,children:"HQ"}),i.role&&t("span",{className:"text-accent",children:i.role})]}),i.city&&t("div",{className:`mt-1.5 font-display ${r.bodyLarge} font-medium leading-[1.2] text-fg`,children:i.city}),i.country&&t("div",{className:`mt-1 font-mono ${r.labelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:i.country})]}),t("button",{type:"button",onClick:()=>h(null),"aria-label":"Close",className:"-mr-1 grid h-6 w-6 shrink-0 place-items-center text-fg-dim hover:text-fg",children:t("svg",{"aria-hidden":!0,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:t("path",{d:"M2 2l8 8M10 2l-8 8"})})})]}):null;return t(Oe,{pins:g,mapTheme:b,ariaLabel:a||"Offices",className:_??"sf-card relative aspect-[16/9] w-full overflow-hidden border border-line max-view-tablet:aspect-[4/5]",selectedKey:c?f:null,focus:p,onSelect:u=>h(Number(u)),card:S})}export{Ie as default};
@@ -1 +1 @@
1
- import{jsx as g}from"react/jsx-runtime";import{useTakeViewHide as L,withViewHide as v}from"./ViewHideRoot.js";import{containerDirectionClass as D,resolveContainerDirection as V}from"../../format/lib/content/container-direction.js";import{containerGapProps as W}from"../../format/lib/content/container-gap.js";import{cssLengthOf as a,storedUnit as A}from"../../format/lib/content/css-length.js";import{finiteNumber as y}from"../../format/lib/finite-number.js";import{isLengthUnit as B}from"efficient-easel/screen/lib/content/length-units";import{boxLayoutClasses as E,boxWrapClass as F}from"../../format/lib/content/box-layout.js";import{sectionPadAttrs as M}from"../lib/content/section-padding.js";import{clampNudge as x,clampWidth as O,normalisePlacement as R,placementParts as S,placementRow as T}from"../../format/lib/hero-group-placement.js";function _({placement:N,nudgeX:m,nudgeY:l,width:o,widthUnit:b,nudgeUnit:t,gap:H,gapPhone:G,gapTablet:P,direction:c,justify:j,align:$,wrap:k,pad:w={},content:p,dragRef:C}){const i=L(),n=R(N),e=B(t)&&t!=="px"?t:null,f=e?y(m)??0:x(m),u=e?y(l)??0:x(l),h=W("HeroGroup",H,V("HeroGroup",c)==="column"?"block":"inline",G,P),r={"--sf-hg-row":T(n),justifySelf:S(n).column};if(typeof o=="number"&&Number.isFinite(o)){const d=A(b,"%");r["--sf-hg-w"]=d==="%"?`${O(o)}%`:a(Math.max(0,o),d)}(f!==0||u!==0)&&(r["--sf-hg-nudge"]=`${a(f,e)} ${a(u,e)}`);const s=M(w);return i.scope(g("div",{className:v(s?`sf-hero-group ${s.className}`:"sf-hero-group",i.className),"data-hg":n,...i.attrs,style:s?{...r,...s.style}:r,ref:C??void 0,children:p?g(p,{className:["sf-hero-group-blocks flex",D("HeroGroup",c),E(j,$),F(k)].filter(Boolean).join(" ")+h.className,style:h.style,minEmptyHeight:40}):null}))}export{_ as default};
1
+ import{jsx as g}from"react/jsx-runtime";import{useTakeViewHide as C,withViewHide as L}from"./ViewHideRoot.js";import{containerDirectionClass as v,resolveContainerDirection as D}from"../../format/lib/content/container-direction.js";import{containerGapProps as V}from"../../format/lib/content/container-gap.js";import{cssLengthOf as m,storedUnit as W}from"../../format/lib/content/css-length.js";import{finiteNumber as y}from"../../format/lib/finite-number.js";import{isLengthUnit as A}from"efficient-easel/screen/lib/content/length-units";import{boxLayoutClasses as B,boxWrapClass as E}from"../../format/lib/content/box-layout.js";import{sectionPadAttrs as F}from"../lib/content/section-padding.js";import{withSideOnce as M}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as R}from"./SideSpaceOnce.js";import{clampNudge as x,clampWidth as T,normalisePlacement as _,placementParts as q,placementRow as z}from"../../format/lib/hero-group-placement.js";function I({placement:N,nudgeX:a,nudgeY:c,width:o,widthUnit:b,nudgeUnit:t,gap:H,gapPhone:G,gapTablet:P,direction:l,justify:j,align:w,wrap:O,pad:S={},content:p,dragRef:$}){const k=R(),i=C(),n=_(N),e=A(t)&&t!=="px"?t:null,f=e?y(a)??0:x(a),u=e?y(c)??0:x(c),h=V("HeroGroup",H,D("HeroGroup",l)==="column"?"block":"inline",G,P),r={"--sf-hg-row":z(n),justifySelf:q(n).column};if(typeof o=="number"&&Number.isFinite(o)){const d=W(b,"%");r["--sf-hg-w"]=d==="%"?`${T(o)}%`:m(Math.max(0,o),d)}(f!==0||u!==0)&&(r["--sf-hg-nudge"]=`${m(f,e)} ${m(u,e)}`);const s=F(S);return i.scope(g("div",{className:L(s?`sf-hero-group ${M(s.className,k)}`:"sf-hero-group",i.className),"data-hg":n,...i.attrs,style:s?{...r,...s.style}:r,ref:$??void 0,children:p?g(p,{className:["sf-hero-group-blocks flex",v("HeroGroup",l),B(j,w),E(O)].filter(Boolean).join(" ")+h.className,style:h.style,minEmptyHeight:40}):null}))}export{I as default};
@@ -1 +1 @@
1
- "use client";import{jsx as e,jsxs as k}from"react/jsx-runtime";import{heroPhoneWordsStyle as ie}from"../../format/lib/hero-phone-stack.js";import{HideTaker as se}from"./ViewHideRoot.js";import{useRef as ae,useState as ne}from"react";import le from"./HeroPoster.js";import{HeroMediaLayer as ce,heroMediaReading as me,HeroPickArea as he,heroPartEntrance as ue,heroPartHover as de,heroPartScroll as fe,heroPictureOrigins as pe,HeroPictureHover as ge,heroPicturesHover as ve,HeroTint as ye,HeroTwoPictures as He}from"./HeroPictures.js";import{HeroVideoBackdrop as Pe,HeroVideoPlayer as xe}from"./HeroVideoPlay.js";import{resolveMedia as i}from"../lib/media.js";import{heroHeightBox as be,heroStoresRatio as we}from"../../format/lib/content/section-height.js";import{DEFAULT_OVERLAY_POSITION as Te,overlayGradient as Se}from"../../format/lib/sections/hero-overlay.js";import{ON_MEDIA_INK_STYLE as _e}from"../../format/lib/content/ink.js";import{DEFAULT_TINT as h}from"../../format/lib/content/tint.js";import{HERO_ABSENT_MEDIA_TYPE as Ee}from"../../format/lib/hero-media-layout.js";import Ne from"./PhotoHoverSheet.js";import{partAttr as u}from"../../format/lib/content/part-names.js";function ke({overlay:A=100,overlayColor:I=h,overlayPosition:L=Te,mediaType:d=Ee.HeroSingle,mediaSrc:s,poster:f,objectPosition:a,objectPositionPhone:n,objectPositionTablet:l,tintColor:p=h,tintOpacity:g=0,heightDesktop:O,heightMobile:R,heightFixed:V,heightFixedTablet:j,heightFixedMobile:z,phoneWordsTop:M,phoneWordsBottom:B,phoneBoxGap:D,boxes:v,videoSource:Y,youtubeUrl:F,videoPlayback:C,mediaLayout:U,mediaLayoutPhone:$,mediaImage2:G,objectPosition2:K,objectPosition2Phone:W,objectPosition2Tablet:q,tintColor2:J=h,tintOpacity2:Q=0,editing:o=!1,partMotion:r}){const y=be({heightDesktop:O,heightMobile:R,heightFixed:V,heightFixedTablet:j,heightFixedMobile:z}),{className:X,style:Z}=y,H=we(y),c=d==="video",P=c?i(s):void 0,x=c?i(f):i(s)??i(f),{fromYouTube:b,onClick:w,youTubeId:T,backgroundFile:S,desktopLayout:ee,phoneLayout:oe,twoPictures:_}=me({isVideo:c,videoSource:Y,videoPlayback:C,youtubeUrl:F,mediaLayout:U,mediaLayoutPhone:$}),[E,re]=ne(!1),m=!E,te=ae(null),t=d==="video"?"media":"image",N=ve(r);return k(se,{as:"section",ref:te,className:`relative mx-[var(--sf-hero-bleed-m,calc(50%_-_50vw))] w-[var(--sf-hero-bleed-w,100vw)] ${X} max-w-[var(--sf-hero-cap,none)] ${H?"overflow-clip":"overflow-hidden"}`,style:Z,...N.hostAttrs,...u("hero"),children:[e(Ne,{sheet:N.sheet}),e(ce,{partMotion:r,editing:o,children:_?e(He,{desktopLayout:ee,phoneLayout:oe,editing:o,partMotion:r,first:{src:s,objectPosition:a,objectPositionPhone:n,objectPositionTablet:l,tintColor:p,tintOpacity:g},second:{src:G,objectPosition:K,objectPositionPhone:W,objectPositionTablet:q,tintColor:J,tintOpacity:Q}}):e(he,{part:t,editing:o,entrance:t==="image"?ue(r,"image"):null,scroll:t==="image"?fe(r,"image"):null,origins:pe({objectPosition:a,objectPositionTablet:l,objectPositionPhone:n}),className:"absolute inset-0 z-[1]",children:k(ge,{treatment:t==="image"?de(r,"image"):{},children:[e(le,{videoSrc:S?P:void 0,posterSrc:x,showVideo:S,objectPosition:a,objectPositionPhone:n,objectPositionTablet:l}),b&&e(Pe,{youTubeId:T,ownPoster:!!x,background:!w,editing:o})]})})}),w&&e(xe,{youTubeId:T,fileSrc:b?void 0:P,playing:E,onPlay:()=>re(!0),editing:o}),m&&!_&&e(ye,{color:p,opacity:g}),m&&e("div",{className:"pointer-events-none absolute inset-0 z-[2]",style:{background:Se(I,L),opacity:Math.min(Math.max(A,0),100)/100},...u("overlay")}),m&&v&&e("div",{className:[H?"sf-hero-group-layer relative min-h-full z-[3] mx-auto":"sf-hero-group-layer absolute inset-0 z-[3] mx-auto","max-w-[var(--sf-site-width,1600px)]","px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14",o?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{..._e,...ie(M,B,D)},...u("hero-content"),children:e(v,{className:"sf-hero-group-zone",minEmptyHeight:160})})]})}export{ke as default};
1
+ "use client";import{jsx as e,jsxs as L}from"react/jsx-runtime";import{heroPhoneWordsStyle as se}from"../../format/lib/hero-phone-stack.js";import{SIDE_ONCE_HOLDS_CLASS as ae}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as ne}from"./SideSpaceOnce.js";import{HideTaker as le}from"./ViewHideRoot.js";import{useRef as ce,useState as me}from"react";import he from"./HeroPoster.js";import{HeroMediaLayer as ue,heroMediaReading as de,HeroPickArea as fe,heroPartEntrance as pe,heroPartHover as ge,heroPartScroll as ve,heroPictureOrigins as ye,HeroPictureHover as He,heroPicturesHover as Se,HeroTint as Pe,HeroTwoPictures as xe}from"./HeroPictures.js";import{HeroVideoBackdrop as _e,HeroVideoPlayer as be}from"./HeroVideoPlay.js";import{resolveMedia as i}from"../lib/media.js";import{heroHeightBox as we,heroStoresRatio as Te}from"../../format/lib/content/section-height.js";import{DEFAULT_OVERLAY_POSITION as Ee,overlayGradient as Ne}from"../../format/lib/sections/hero-overlay.js";import{ON_MEDIA_INK_STYLE as Le}from"../../format/lib/content/ink.js";import{DEFAULT_TINT as h}from"../../format/lib/content/tint.js";import{HERO_ABSENT_MEDIA_TYPE as Oe}from"../../format/lib/hero-media-layout.js";import Ae from"./PhotoHoverSheet.js";import{partAttr as u}from"../../format/lib/content/part-names.js";function Ie({overlay:O=100,overlayColor:A=h,overlayPosition:I=Ee,mediaType:d=Oe.HeroSingle,mediaSrc:s,poster:f,objectPosition:a,objectPositionPhone:n,objectPositionTablet:l,tintColor:p=h,tintOpacity:g=0,heightDesktop:k,heightMobile:D,heightFixed:R,heightFixedTablet:V,heightFixedMobile:j,phoneWordsTop:z,phoneWordsBottom:M,phoneBoxGap:B,boxes:v,videoSource:C,youtubeUrl:Y,videoPlayback:F,mediaLayout:U,mediaLayoutPhone:$,mediaImage2:G,objectPosition2:K,objectPosition2Phone:W,objectPosition2Tablet:q,tintColor2:J=h,tintOpacity2:Q=0,editing:o=!1,partMotion:r}){const X=ne(),y=we({heightDesktop:k,heightMobile:D,heightFixed:R,heightFixedTablet:V,heightFixedMobile:j}),{className:Z,style:ee}=y,H=Te(y),c=d==="video",S=c?i(s):void 0,P=c?i(f):i(s)??i(f),{fromYouTube:x,onClick:_,youTubeId:b,backgroundFile:w,desktopLayout:oe,phoneLayout:re,twoPictures:T}=de({isVideo:c,videoSource:C,videoPlayback:F,youtubeUrl:Y,mediaLayout:U,mediaLayoutPhone:$}),[E,te]=me(!1),m=!E,ie=ce(null),t=d==="video"?"media":"image",N=Se(r);return L(le,{as:"section",ref:ie,className:`relative mx-[var(--sf-hero-bleed-m,calc(50%_-_50vw))] w-[var(--sf-hero-bleed-w,100vw)] ${Z} max-w-[var(--sf-hero-cap,none)] ${H?"overflow-clip":"overflow-hidden"}`,style:ee,...N.hostAttrs,...u("hero"),children:[e(Ae,{sheet:N.sheet}),e(ue,{partMotion:r,editing:o,children:T?e(xe,{desktopLayout:oe,phoneLayout:re,editing:o,partMotion:r,first:{src:s,objectPosition:a,objectPositionPhone:n,objectPositionTablet:l,tintColor:p,tintOpacity:g},second:{src:G,objectPosition:K,objectPositionPhone:W,objectPositionTablet:q,tintColor:J,tintOpacity:Q}}):e(fe,{part:t,editing:o,entrance:t==="image"?pe(r,"image"):null,scroll:t==="image"?ve(r,"image"):null,origins:ye({objectPosition:a,objectPositionTablet:l,objectPositionPhone:n}),className:"absolute inset-0 z-[1]",children:L(He,{treatment:t==="image"?ge(r,"image"):{},children:[e(he,{videoSrc:w?S:void 0,posterSrc:P,showVideo:w,objectPosition:a,objectPositionPhone:n,objectPositionTablet:l}),x&&e(_e,{youTubeId:b,ownPoster:!!P,background:!_,editing:o})]})})}),_&&e(be,{youTubeId:b,fileSrc:x?void 0:S,playing:E,onPlay:()=>te(!0),editing:o}),m&&!T&&e(Pe,{color:p,opacity:g}),m&&e("div",{className:"pointer-events-none absolute inset-0 z-[2]",style:{background:Ne(A,I),opacity:Math.min(Math.max(O,0),100)/100},...u("overlay")}),m&&v&&e("div",{className:[H?"sf-hero-group-layer relative min-h-full z-[3] mx-auto":"sf-hero-group-layer absolute inset-0 z-[3] mx-auto","max-w-[var(--sf-site-width,1600px)]","px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14",X?ae:"",o?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{...Le,...se(z,M,B)},...u("hero-content"),children:e(v,{className:"sf-hero-group-zone",minEmptyHeight:160})})]})}export{Ie as default};
@@ -1 +1 @@
1
- "use client";import{jsx as e,jsxs as M}from"react/jsx-runtime";import{useTakeViewHide as Ee,withViewHide as Ae}from"./ViewHideRoot.js";import{createContext as _e,useContext as Le,useEffect as Oe,useRef as Ne,useState as W}from"react";import Ie from"./HeroPoster.js";import{HeroMediaLayer as Re,heroMediaReading as Ve,HeroPickArea as Ce,heroPartEntrance as Be,heroPartHover as De,heroPartScroll as je,heroPictureOrigins as ze,HeroPictureHover as Fe,heroPicturesHover as $e,HeroTint as Me,HeroTwoPictures as We}from"./HeroPictures.js";import{HeroVideoBackdrop as Ye,HeroVideoPlayer as qe}from"./HeroVideoPlay.js";import{BelowFirstScreen as Ge,useFirstScreenPlace as Ue}from"../lib/first-screen.js";import{markedChildren as Ke}from"../../format/lib/marked-children.js";import{resolveMedia as r}from"../lib/media.js";import{heroPhoneStackStyle as Je,heroPhoneWordsStyle as Qe}from"../../format/lib/hero-phone-stack.js";import{heroTextureGradient as Xe,heroTextureShown as Ze}from"../../format/lib/hero-texture.js";import{ON_MEDIA_INK_STYLE as eo}from"../../format/lib/content/ink.js";import{DEFAULT_TINT as Y}from"../../format/lib/content/tint.js";import{HERO_ABSENT_MEDIA_TYPE as oo}from"../../format/lib/hero-media-layout.js";import{overlayGradient as ro,slideOverlayState as to}from"../../format/lib/sections/hero-overlay.js";import io from"./PhotoHoverSheet.js";import{partAttr as w}from"../../format/lib/content/part-names.js";const no=_e({});function so({name:g,process:d,mediaType:q=oo.HeroSlide,mediaSrc:c,videoSpeed:H,poster:T,mediaAv1:G,mediaSrcPhone:U,mediaAv1Phone:K,posterPhone:J,objectPosition:f,objectPositionPhone:u,objectPositionTablet:p,tintColor:b=Y,tintOpacity:k=0,groups:E,editing:i=!1,themeClassName:A,themeStyle:Q,overlayColor:X,overlayPosition:Z,mediaLayout:ee,mediaLayoutPhone:oe,mediaImage2:re,objectPosition2:te,objectPosition2Phone:ie,objectPosition2Tablet:ne,tintColor2:se=Y,tintOpacity2:le=0,videoSource:ae,youtubeUrl:de,videoPlayback:ce,partMotion:n,laterSlide:h=!1}){const m=Ee(),{alignment:lo="left",textureOpacity:_,textureOn:fe,textureColor:ue,quietVideo:pe,phoneUpDown:he,phoneSideways:me,phoneWordsTop:ve,phoneWordsBottom:ye,phoneBoxGap:Se,holdReel:xe,reelHeld:Pe,shownSlide:v,ratioMin:L}=Le(no),we=Ue(),O=h&&we==="first",N=Ne(null),[ge,He]=W(v===void 0?void 0:!1);Oe(()=>{const P=N.current;He(v===void 0||!P?void 0:Ke(P.closest(".hero-track"),"data-slide-name")[v]===P)});const o=q==="video",y=o?r(c):void 0,I=o?r(T):r(c)??r(T),t=o?{av1:r(G),phone:r(U),av1Phone:r(K),poster:r(J)}:{},Te=typeof H=="number"?H/100:1,{fromYouTube:s,onClick:R,youTubeId:V,backgroundFile:l,desktopLayout:be,phoneLayout:ke,twoPictures:C}=Ve({isVideo:o,videoSource:ae,videoPlayback:ce,youtubeUrl:de,mediaLayout:ee,mediaLayoutPhone:oe}),[S,B]=W(!1);S&&Pe===!1&&B(!1);const x=!S,a=to({overlayColor:X,overlayPosition:Z},ue),D=o?null:Be(n,"image"),j=o?null:je(n,"image"),z=$e(n),F=e(Fe,{treatment:o?{}:De(n,"image"),children:e(Ie,{videoSrc:l?y:void 0,videoAv1Src:l?t.av1:void 0,videoSrcPhone:l?t.phone:void 0,videoAv1SrcPhone:l?t.av1Phone:void 0,posterSrc:I,posterSrcPhone:t.poster,showVideo:l,playbackRate:Te,objectPosition:f,objectPositionPhone:o?void 0:u,objectPositionTablet:o?void 0:p,quiet:pe,slideShown:ge,laterSlide:h,laterOfLead:O})}),$=M("section",{ref:N,className:Ae(`${L?"relative flex min-h-full w-full flex-col overflow-clip":"relative h-full w-full overflow-hidden"}${A?` ${A}`:""}`,m.className),...m.attrs,style:Q,"data-slide-name":g??"","data-slide-process":d??"","data-slide-media":l&&y?"video":"still",...z.hostAttrs,...w("slide"),children:[e(io,{sheet:z.sheet}),e(Re,{partMotion:n,editing:i,children:C?e(We,{laterSlide:h,desktopLayout:be,phoneLayout:ke,editing:i,partMotion:n,first:{src:c,objectPosition:f,objectPositionPhone:u,objectPositionTablet:p,tintColor:b,tintOpacity:k},second:{src:re,objectPosition:te,objectPositionPhone:ie,objectPositionTablet:ne,tintColor:se,tintOpacity:le}}):s||D||j?M(Ce,{part:o?"media":"image",editing:i,entrance:D,scroll:j,origins:ze({objectPosition:f,objectPositionTablet:p,objectPositionPhone:u}),className:"absolute inset-0 z-[1]",children:[F,s&&e(Ye,{youTubeId:V,ownPoster:!!I,background:!R,editing:i})]}):F}),R&&e(qe,{youTubeId:V,fileSrc:s?void 0:y,fileAv1Src:s?void 0:t.av1,fileSrcPhone:s?void 0:t.phone,fileAv1SrcPhone:s?void 0:t.av1Phone,playing:S,onPlay:()=>{B(!0),xe?.()},editing:i}),x&&!C&&e(Me,{color:b,opacity:k,passClicks:!1}),x&&Ze(fe)&&e("div",{className:"absolute inset-0 z-[2]",style:{background:a.own?ro(a.color,a.position??void 0):Xe(a.color),..._!==void 0?{opacity:_/100}:null},...w("overlay")}),x&&e("div",{className:[L?"sf-hero-group-layer relative z-[3] mx-auto w-full flex-1 max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14":"sf-hero-group-layer absolute inset-0 z-[3] mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14",i?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{...eo,...Je(he,me),...Qe(ve,ye,Se)},...w("hero-content"),children:E&&e(E,{className:"sf-hero-group-zone",minEmptyHeight:160})})]});return m.scope(O?e(Ge,{children:$}):$)}const ko=Array.from({length:3},(g,d)=>({name:`Slide ${d+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));export{ko as HERO_SLIDE_SEEDS,no as HeroSlideStyleContext,so as default};
1
+ "use client";import{jsx as e,jsxs as M}from"react/jsx-runtime";import{useTakeViewHide as _e,withViewHide as Oe}from"./ViewHideRoot.js";import{SIDE_ONCE_HOLDS_CLASS as Ae}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as Le}from"./SideSpaceOnce.js";import{createContext as Ne,useContext as Ce,useEffect as Ie,useRef as De,useState as W}from"react";import Re from"./HeroPoster.js";import{HeroMediaLayer as Ve,heroMediaReading as Be,HeroPickArea as je,heroPartEntrance as ze,heroPartHover as Fe,heroPartScroll as $e,heroPictureOrigins as Me,HeroPictureHover as We,heroPicturesHover as Ye,HeroTint as qe,HeroTwoPictures as Ge}from"./HeroPictures.js";import{HeroVideoBackdrop as Ue,HeroVideoPlayer as Ke}from"./HeroVideoPlay.js";import{BelowFirstScreen as Je,useFirstScreenPlace as Qe}from"../lib/first-screen.js";import{markedChildren as Xe}from"../../format/lib/marked-children.js";import{resolveMedia as r}from"../lib/media.js";import{heroPhoneStackStyle as Ze,heroPhoneWordsStyle as eo}from"../../format/lib/hero-phone-stack.js";import{heroTextureGradient as oo,heroTextureShown as ro}from"../../format/lib/hero-texture.js";import{ON_MEDIA_INK_STYLE as to}from"../../format/lib/content/ink.js";import{DEFAULT_TINT as Y}from"../../format/lib/content/tint.js";import{HERO_ABSENT_MEDIA_TYPE as io}from"../../format/lib/hero-media-layout.js";import{overlayGradient as no,slideOverlayState as so}from"../../format/lib/sections/hero-overlay.js";import ao from"./PhotoHoverSheet.js";import{partAttr as w}from"../../format/lib/content/part-names.js";const lo=Ne({});function co({name:g,process:d,mediaType:q=io.HeroSlide,mediaSrc:c,videoSpeed:H,poster:E,mediaAv1:G,mediaSrcPhone:U,mediaAv1Phone:K,posterPhone:J,objectPosition:f,objectPositionPhone:u,objectPositionTablet:p,tintColor:T=Y,tintOpacity:b=0,groups:k,editing:i=!1,themeClassName:_,themeStyle:Q,overlayColor:X,overlayPosition:Z,mediaLayout:ee,mediaLayoutPhone:oe,mediaImage2:re,objectPosition2:te,objectPosition2Phone:ie,objectPosition2Tablet:ne,tintColor2:se=Y,tintOpacity2:ae=0,videoSource:le,youtubeUrl:de,videoPlayback:ce,partMotion:n,laterSlide:m=!1}){const fe=Le(),h=_e(),{alignment:fo="left",textureOpacity:O,textureOn:ue,textureColor:pe,quietVideo:me,phoneUpDown:he,phoneSideways:Se,phoneWordsTop:ve,phoneWordsBottom:ye,phoneBoxGap:xe,holdReel:Pe,reelHeld:we,shownSlide:S,ratioMin:A}=Ce(lo),ge=Qe(),L=m&&ge==="first",N=De(null),[He,Ee]=W(S===void 0?void 0:!1);Ie(()=>{const P=N.current;Ee(S===void 0||!P?void 0:Xe(P.closest(".hero-track"),"data-slide-name")[S]===P)});const o=q==="video",v=o?r(c):void 0,C=o?r(E):r(c)??r(E),t=o?{av1:r(G),phone:r(U),av1Phone:r(K),poster:r(J)}:{},Te=typeof H=="number"?H/100:1,{fromYouTube:s,onClick:I,youTubeId:D,backgroundFile:a,desktopLayout:be,phoneLayout:ke,twoPictures:R}=Be({isVideo:o,videoSource:le,videoPlayback:ce,youtubeUrl:de,mediaLayout:ee,mediaLayoutPhone:oe}),[y,V]=W(!1);y&&we===!1&&V(!1);const x=!y,l=so({overlayColor:X,overlayPosition:Z},pe),B=o?null:ze(n,"image"),j=o?null:$e(n,"image"),z=Ye(n),F=e(We,{treatment:o?{}:Fe(n,"image"),children:e(Re,{videoSrc:a?v:void 0,videoAv1Src:a?t.av1:void 0,videoSrcPhone:a?t.phone:void 0,videoAv1SrcPhone:a?t.av1Phone:void 0,posterSrc:C,posterSrcPhone:t.poster,showVideo:a,playbackRate:Te,objectPosition:f,objectPositionPhone:o?void 0:u,objectPositionTablet:o?void 0:p,quiet:me,slideShown:He,laterSlide:m,laterOfLead:L})}),$=M("section",{ref:N,className:Oe(`${A?"relative flex min-h-full w-full flex-col overflow-clip":"relative h-full w-full overflow-hidden"}${_?` ${_}`:""}`,h.className),...h.attrs,style:Q,"data-slide-name":g??"","data-slide-process":d??"","data-slide-media":a&&v?"video":"still",...z.hostAttrs,...w("slide"),children:[e(ao,{sheet:z.sheet}),e(Ve,{partMotion:n,editing:i,children:R?e(Ge,{laterSlide:m,desktopLayout:be,phoneLayout:ke,editing:i,partMotion:n,first:{src:c,objectPosition:f,objectPositionPhone:u,objectPositionTablet:p,tintColor:T,tintOpacity:b},second:{src:re,objectPosition:te,objectPositionPhone:ie,objectPositionTablet:ne,tintColor:se,tintOpacity:ae}}):s||B||j?M(je,{part:o?"media":"image",editing:i,entrance:B,scroll:j,origins:Me({objectPosition:f,objectPositionTablet:p,objectPositionPhone:u}),className:"absolute inset-0 z-[1]",children:[F,s&&e(Ue,{youTubeId:D,ownPoster:!!C,background:!I,editing:i})]}):F}),I&&e(Ke,{youTubeId:D,fileSrc:s?void 0:v,fileAv1Src:s?void 0:t.av1,fileSrcPhone:s?void 0:t.phone,fileAv1SrcPhone:s?void 0:t.av1Phone,playing:y,onPlay:()=>{V(!0),Pe?.()},editing:i}),x&&!R&&e(qe,{color:T,opacity:b,passClicks:!1}),x&&ro(ue)&&e("div",{className:"absolute inset-0 z-[2]",style:{background:l.own?no(l.color,l.position??void 0):oo(l.color),...O!==void 0?{opacity:O/100}:null},...w("overlay")}),x&&e("div",{className:[A?"sf-hero-group-layer relative z-[3] mx-auto w-full flex-1 max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14":"sf-hero-group-layer absolute inset-0 z-[3] mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14",fe?Ae:"",i?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{...to,...Ze(he,Se),...eo(ve,ye,xe)},...w("hero-content"),children:k&&e(k,{className:"sf-hero-group-zone",minEmptyHeight:160})})]});return h.scope(L?e(Je,{children:$}):$)}const Lo=Array.from({length:3},(g,d)=>({name:`Slide ${d+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));export{Lo as HERO_SLIDE_SEEDS,lo as HeroSlideStyleContext,co as default};