efficient-web-builder 50.0.0 → 52.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. package/CHANGELOG.md +63 -0
  2. package/README.md +1 -1
  3. package/dist/editor/components/BlogPostSource.js +1 -1
  4. package/dist/editor/components/HeroPartPanel.js +1 -1
  5. package/dist/editor/components/MediaUploadField.js +1 -1
  6. package/dist/editor/components/PartTextBox.js +1 -1
  7. package/dist/editor/components/PreviewPartStyleContext.d.ts +2 -2
  8. package/dist/editor/components/SectionEditor.js +1 -1
  9. package/dist/editor/components/SiteTextStylesField.d.ts +2 -1
  10. package/dist/editor/components/SiteTextStylesField.js +1 -1
  11. package/dist/editor/components/ThemeCard.js +1 -1
  12. package/dist/editor/components/WebsiteScreenParts.js +1 -1
  13. package/dist/editor/components/WebsiteSettingsPanel.js +1 -1
  14. package/dist/editor/components/storefront-editor.css +13 -45
  15. package/dist/editor/components/usePartMotion.d.ts +1 -1
  16. package/dist/editor/components/usePartTypingDeps.d.ts +2 -0
  17. package/dist/editor/components/usePartTypingDeps.js +1 -0
  18. package/dist/editor/lib/animation/entrance-fields.js +1 -1
  19. package/dist/editor/lib/animation/fields.d.ts +1 -1
  20. package/dist/editor/lib/animation/fields.js +1 -1
  21. package/dist/editor/lib/animation/hover-fields.d.ts +7 -1
  22. package/dist/editor/lib/animation/hover-fields.js +1 -1
  23. package/dist/editor/lib/document/ColourControl.d.ts +11 -8
  24. package/dist/editor/lib/document/ColourControl.js +1 -1
  25. package/dist/editor/lib/document/blocks/general/Cards/fields.js +1 -1
  26. package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
  27. package/dist/editor/lib/document/blocks/general/Hero/fields.js +1 -1
  28. package/dist/editor/lib/document/blocks/general/HeroSlide/fields.js +1 -1
  29. package/dist/editor/lib/document/blocks/general/ImageBlock/fields.js +1 -1
  30. package/dist/editor/lib/document/blocks/general/PostCard/fields.js +1 -1
  31. package/dist/editor/lib/document/blocks/general/Series/fields.js +1 -1
  32. package/dist/editor/lib/document/blocks/general/StatsParagraph/fields.js +1 -1
  33. package/dist/editor/lib/document/blocks/general/index.d.ts +2 -2
  34. package/dist/editor/lib/document/blocks/hero-shared-fields.d.ts +2 -0
  35. package/dist/editor/lib/document/blocks/hero-shared-fields.js +1 -1
  36. package/dist/editor/lib/document/canvas-typing.d.ts +1 -0
  37. package/dist/editor/lib/document/canvas-typing.js +1 -1
  38. package/dist/editor/lib/document/card-copy-rows.d.ts +12 -0
  39. package/dist/editor/lib/document/card-copy-rows.js +1 -0
  40. package/dist/editor/lib/document/controls.d.ts +15 -4
  41. package/dist/editor/lib/document/controls.js +1 -1
  42. package/dist/editor/lib/document/darken-fields.d.ts +4 -0
  43. package/dist/editor/lib/document/darken-fields.js +1 -0
  44. package/dist/editor/lib/document/overrides.js +1 -1
  45. package/dist/editor/lib/document/passes/inspector.js +1 -1
  46. package/dist/format/components/stored-pick-row.d.ts +8 -0
  47. package/dist/format/components/stored-pick-row.js +1 -0
  48. package/dist/format/lib/animation/hover.d.ts +32 -1
  49. package/dist/format/lib/animation/hover.js +1 -1
  50. package/dist/format/lib/content/borders.d.ts +4 -2
  51. package/dist/format/lib/content/borders.js +1 -1
  52. package/dist/format/lib/content/box-layout.d.ts +11 -0
  53. package/dist/format/lib/content/box-layout.js +1 -1
  54. package/dist/format/lib/content/box-shape.d.ts +2 -1
  55. package/dist/format/lib/content/box-shape.js +1 -1
  56. package/dist/format/lib/content/button-icon.d.ts +1 -1
  57. package/dist/format/lib/content/button-icon.js +1 -1
  58. package/dist/format/lib/content/card-state.d.ts +8 -0
  59. package/dist/format/lib/content/card-state.js +1 -0
  60. package/dist/format/lib/content/card-template.d.ts +6 -0
  61. package/dist/format/lib/content/card-template.js +1 -1
  62. package/dist/format/lib/content/image-treatment.d.ts +23 -4
  63. package/dist/format/lib/content/image-treatment.js +1 -1
  64. package/dist/format/lib/content/section-background.d.ts +10 -3
  65. package/dist/format/lib/content/section-background.js +1 -1
  66. package/dist/format/lib/content/section-min-height.d.ts +17 -1
  67. package/dist/format/lib/content/section-min-height.js +1 -1
  68. package/dist/format/lib/content/section-sticky.d.ts +9 -0
  69. package/dist/format/lib/content/section-sticky.js +1 -1
  70. package/dist/format/lib/document/blocks/general/Hero/meta.js +1 -1
  71. package/dist/format/lib/document/blocks/general/HeroSingle/meta.js +1 -1
  72. package/dist/format/lib/document/box-footer.js +1 -1
  73. package/dist/format/lib/document/card-template-layers.d.ts +1 -1
  74. package/dist/format/lib/document/card-template-layers.js +1 -1
  75. package/dist/format/lib/document/easel-row-words.d.ts +1 -0
  76. package/dist/format/lib/document/easel-row-words.js +1 -1
  77. package/dist/format/lib/document/part-inks.d.ts +5 -10
  78. package/dist/format/lib/document/part-inks.js +1 -1
  79. package/dist/format/lib/document/passes/card-template-on-insert.d.ts +2 -0
  80. package/dist/format/lib/document/passes/card-template-on-insert.js +1 -0
  81. package/dist/format/lib/document/passes/types.d.ts +7 -0
  82. package/dist/format/lib/document/section-catalog.js +2 -2
  83. package/dist/format/lib/document/show-when-attach.d.ts +2 -1
  84. package/dist/format/lib/document/show-when-attach.js +1 -1
  85. package/dist/format/lib/editor-words-catalogue.d.ts +9 -5
  86. package/dist/format/lib/editor-words-catalogue.js +4 -4
  87. package/dist/format/lib/sections/hero-overlay.js +1 -1
  88. package/dist/format/lib/sections/hero-single-to-hero.js +1 -1
  89. package/dist/format/lib/source-rules/panel-rows-use-the-shared-row.d.ts +4 -0
  90. package/dist/format/lib/source-rules/panel-rows-use-the-shared-row.js +37 -20
  91. package/dist/format/lib/source-rules/support/part-slider-call-sites.d.ts +0 -1
  92. package/dist/format/lib/source-rules/support/part-slider-call-sites.js +6 -6
  93. package/dist/format/lib/text-styles/site-text-colours.d.ts +11 -0
  94. package/dist/format/lib/text-styles/site-text-colours.js +1 -0
  95. package/dist/format/lib/theme.d.ts +1 -0
  96. package/dist/format/lib/theme.js +3 -3
  97. package/dist/format/lib/word-styles.d.ts +0 -1
  98. package/dist/format/lib/word-styles.js +1 -1
  99. package/dist/render/components/ButtonBlock.d.ts +2 -1
  100. package/dist/render/components/ButtonBlock.js +1 -1
  101. package/dist/render/components/CardRowContext.d.ts +5 -2
  102. package/dist/render/components/CardRowContext.js +1 -1
  103. package/dist/render/components/ContactLocations.d.ts +3 -1
  104. package/dist/render/components/ContactLocations.js +2 -2
  105. package/dist/render/components/Flex.d.ts +6 -1
  106. package/dist/render/components/Flex.js +1 -1
  107. package/dist/render/components/HeroPictures.d.ts +10 -0
  108. package/dist/render/components/HeroPictures.js +1 -1
  109. package/dist/render/components/HeroSingle.js +1 -1
  110. package/dist/render/components/HeroSlide.js +1 -1
  111. package/dist/render/components/ImageBlock.d.ts +6 -1
  112. package/dist/render/components/ImageBlock.js +1 -1
  113. package/dist/render/components/Manifesto.d.ts +3 -1
  114. package/dist/render/components/Manifesto.js +1 -1
  115. package/dist/render/components/PhotoHoverSheet.d.ts +4 -0
  116. package/dist/render/components/PhotoHoverSheet.js +1 -0
  117. package/dist/render/components/PictureWash.d.ts +6 -0
  118. package/dist/render/components/PictureWash.js +1 -0
  119. package/dist/render/components/Placeholder.js +1 -1
  120. package/dist/render/components/PostCard.js +1 -1
  121. package/dist/render/components/Split.d.ts +3 -1
  122. package/dist/render/components/Split.js +1 -1
  123. package/dist/render/components/Text.d.ts +2 -2
  124. package/dist/render/components/Text.js +1 -1
  125. package/dist/render/components/goldPhrases.js +2 -2
  126. package/dist/render/lib/animation/part-motion.js +2 -2
  127. package/dist/render/lib/content/block-size.d.ts +1 -0
  128. package/dist/render/lib/content/block-size.js +1 -1
  129. package/dist/render/lib/content/box-shared-columns.js +1 -1
  130. package/dist/render/lib/document/blocks/general/Cards/render.js +1 -1
  131. package/dist/render/lib/document/blocks/general/ContactLocations/render.js +1 -1
  132. package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
  133. package/dist/render/lib/document/blocks/general/ImageBlock/render.js +1 -1
  134. package/dist/render/lib/document/blocks/general/Manifesto/render.js +1 -1
  135. package/dist/render/lib/document/blocks/general/Split/render.js +1 -1
  136. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.d.ts +2 -0
  137. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
  138. package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.js +1 -1
  139. package/dist/render/lib/document/blocks/general/section-to-box-rows-locations.js +1 -1
  140. package/dist/render/lib/document/blocks/general/section-to-box-rows-stats.js +1 -1
  141. package/dist/render/lib/document/blocks/general/section-to-box-rows-timeline.js +2 -2
  142. package/dist/render/lib/document/part-styles.js +2 -2
  143. package/dist/render/lib/document/passes/block-size.js +1 -1
  144. package/dist/render/lib/document/passes/borders.js +1 -1
  145. package/dist/render/lib/document/passes/index.js +1 -1
  146. package/dist/render/lib/document/passes/section-animation.js +1 -1
  147. package/dist/render/lib/document/passes/section-height.js +1 -1
  148. package/dist/render/lib/document/passes/section-sticky.js +1 -1
  149. package/dist/render/lib/document/show-when.d.ts +1 -1
  150. package/dist/render/lib/document/show-when.js +1 -1
  151. package/dist/render/lib/text-styles/site-text-styles.js +2 -2
  152. package/package.json +4 -4
  153. package/dist/editor/components/PartInkControl.d.ts +0 -7
  154. package/dist/editor/components/PartInkControl.js +0 -1
@@ -1,7 +1,7 @@
1
- const a="components/PartSettingsPanel.tsx";function w(t){let n="",e=0,o=null;for(;e<t.length;){const s=t[e],i=t[e+1];if(o){if(n+=s,s==="\\"){n+=i??"",e+=2;continue}s===o&&(o=null),e+=1;continue}if(s==='"'||s==="'"||s==="`"){o=s,n+=s,e+=1;continue}if(s==="/"&&i==="/"){for(;e<t.length&&t[e]!==`
2
- `;)e+=1;continue}if(s==="/"&&i==="*"){for(e+=2;e<t.length&&!(t[e]==="*"&&t[e+1]==="/");)t[e]===`
3
- `&&(n+=`
4
- `),e+=1;e+=2;continue}n+=s,e+=1}return n}function l(t){throw new Error(t)}function S(t){const n=/const PART_FIELDS\s*=\s*\[([\s\S]*?)\]\s*as const/.exec(t);if(!n&&!/<Slider\b/.test(t))return new Map;n||l(`${a}: no \`const PART_FIELDS = [ … ] as const\` — this reader takes the panel's row labels from that one table, and cannot find it. Has it been renamed?`);const e=new Map;for(const o of n[1].matchAll(/\{\s*key:\s*"([^"]+)"\s*,\s*label:\s*"([^"]+)"/g))e.set(o[1],o[2]);return e.size===0&&/<Slider\b/.test(t)&&l(`${a}: PART_FIELDS holds no \`key\`/\`label\` pairs.`),e}function b(t){const n=w(t),e=S(n),o=[];for(const s of n.matchAll(/<Slider[\s/>]/g)){const i=s.index??0,c=n.indexOf("/>",i);c===-1&&l(`${a}: a <Slider at offset ${i} is not self-closing. This reader reads a call site's props up to \`/>\`; a Slider with children needs a different reader.`);const u=n.slice(i,c),d=n.slice(0,i),h=/((?:\s*case\s+"[^"]+"\s*:)+)\s*return\s*\(\s*$/.exec(d),f=h?[...h[1].matchAll(/case\s+"([^"]+)"\s*:/g)].map(r=>r[1]):[];f.length===0&&l(`${a}: the <Slider at line ${d.split(`
1
+ const d="components/PartSettingsPanel.tsx";function p(n){let i="",e=0,s=null;for(;e<n.length;){const t=n[e],o=n[e+1];if(s){if(i+=t,t==="\\"){i+=o??"",e+=2;continue}t===s&&(s=null),e+=1;continue}if(t==='"'||t==="'"||t==="`"){s=t,i+=t,e+=1;continue}if(t==="/"&&o==="/"){for(;e<n.length&&n[e]!==`
2
+ `;)e+=1;continue}if(t==="/"&&o==="*"){for(e+=2;e<n.length&&!(n[e]==="*"&&n[e+1]==="/");)n[e]===`
3
+ `&&(i+=`
4
+ `),e+=1;e+=2;continue}i+=t,e+=1}return i}function c(n){throw new Error(n)}function u(n){const i=p(n),e=[];for(const s of i.matchAll(/<Slider[\s/>]/g)){const t=s.index??0,o=i.indexOf("/>",t);o===-1&&c(`${d}: a <Slider at offset ${t} is not self-closing. This reader reads a call site's props up to \`/>\`; a Slider with children needs a different reader.`);const h=i.slice(t,o),l=i.slice(0,t),r=/((?:\s*case\s+"[^"]+"\s*:)+)\s*return\s*\(\s*$/.exec(l),a=r?[...r[1].matchAll(/case\s+"([^"]+)"\s*:/g)].map(f=>f[1]):[];a.length===0&&c(`${d}: the <Slider at line ${l.split(`
5
5
  `).length} is not returned DIRECTLY by a
6
6
  \`case "…": return (\` branch, so this reader cannot say which field it draws.
7
7
 
@@ -13,5 +13,5 @@ const a="components/PartSettingsPanel.tsx";function w(t){let n="",e=0,o=null;for
13
13
  is the wrapper, not the slot, and the row would look fixed while measuring the same 129px.
14
14
 
15
15
  So a wrap needs a decision, not a wider selector — either unwrap it, or give the wrapper the
16
- row and say why in \`components/storefront-editor.css\`. Card 66247.`),o.push({fields:f,line:d.split(`
17
- `).length,readoutOff:/readout=\{false\}/.test(u),labelFor(r){const p=e.get(r);return p||l(`${a}: field \`${r}\` draws a slider but is not in PART_FIELDS, so it has no row label. The two declarations have drifted apart.`),p}})}return o}const m=t=>t.flatMap(n=>n.fields);export{a as PART_PANEL,b as readSliderCallSites,m as sliderFields};
16
+ row and say why in \`components/storefront-editor.css\`. Card 66247.`),e.push({fields:a,line:l.split(`
17
+ `).length,readoutOff:/readout=\{false\}/.test(h)})}return e}const w=n=>n.flatMap(i=>i.fields);export{d as PART_PANEL,u as readSliderCallSites,w as sliderFields};
@@ -0,0 +1,11 @@
1
+ import type { TextStyle, TextStyleColour } from "efficient-easel/text-styles";
2
+ import { type ThemeValue } from "../theme.js";
3
+ export declare function siteTextColours(theme: ThemeValue): TextStyleColour[];
4
+ export declare function siteTextColoursNotOffered(theme: ThemeValue): TextStyleColour[];
5
+ export declare function showColoursNotOffered(list: readonly TextStyle[], notOffered: readonly TextStyleColour[]): TextStyle[];
6
+ export declare function keepColoursNotOffered(next: readonly TextStyle[], cur: readonly TextStyle[], stored: readonly {
7
+ id: string;
8
+ values: {
9
+ color?: string;
10
+ };
11
+ }[], notOffered: readonly TextStyleColour[]): TextStyle[];
@@ -0,0 +1 @@
1
+ import{partThemeColors as m}from"../document/part-inks.js";import{normalizeThemeColors as d,selectedThemeColors as s}from"../theme.js";const c="background";function i(r){const e=d(s(r));return m({main:e.accent,text:e.text,background:e.background,muted:e.muted}).map(o=>({key:o.name,name:o.label??o.name,value:o.value}))}function v(r){return i(r).filter(e=>e.key!==c)}function x(r){return i(r).filter(e=>e.key===c)}function C(r,e){return r.map(o=>{const t=e.find(n=>n.key===o.values.color);return t?{...o,values:{...o.values,color:t.value}}:o})}function T(r,e,o,t){return r.map(n=>{if(e.some(u=>u.id===n.id))return n;const l=e.filter(u=>u.kind===n.kind).at(-1),f=o.find(u=>u.id===l?.id)?.values.color,a=t.find(u=>u.key===f);return a&&a.value===n.values.color?{...n,values:{...n.values,color:a.key}}:n})}export{T as keepColoursNotOffered,C as showColoursNotOffered,v as siteTextColours,x as siteTextColoursNotOffered};
@@ -69,6 +69,7 @@ export declare function siteButtonPaint(v?: ThemeValue | null): {
69
69
  ink: string;
70
70
  };
71
71
  export declare function themePresetAccentVars(v?: ThemeValue | null): Record<string, string>;
72
+ export declare function surfaceTwoTone(preset: ThemeColors): string;
72
73
  export declare function sectionBandTone(preset: ThemeColors): string;
73
74
  export declare function bandPresetFor(preset: ThemeColors): ThemeColors;
74
75
  export declare function bandPresetIndex(presets: readonly ThemeColors[], page: number): number;
@@ -1,8 +1,8 @@
1
- import{contrastRatio as X,hexToRgb as l,parseHexColor as h,readableInk as W,relativeLuminance as K}from"efficient-shell/format";const j="storefront-theme",Ne="sf:theme-mode",Oe="sf:theme-switch",Le="hide",ke="light",Pe=!1,M=7,R=18;function V(e){return e>=M&&e<R}function $e(e){const{mode:t,override:n,switchShown:r,hour:o}=e;return r&&(n==="light"||n==="dark")?n:t==="auto"?V(o)?"light":"dark":t==="light"?"light":"dark"}function Fe(e){const{mode:t,switchShown:n}=e;return`
1
+ import{contrastRatio as K,hexToRgb as h,parseHexColor as f,readableInk as j,relativeLuminance as V}from"efficient-shell/format";const Z="storefront-theme",Oe="sf:theme-mode",Le="sf:theme-switch",ke="hide",Pe="light",$e=!1,M=7,R=18;function q(e){return e>=M&&e<R}function Fe(e){const{mode:t,override:n,switchShown:r,hour:o}=e;return r&&(n==="light"||n==="dark")?n:t==="auto"?q(o)?"light":"dark":t==="light"?"light":"dark"}function Ge(e){const{mode:t,switchShown:n}=e;return`
2
2
  try {
3
3
  var mode = ${JSON.stringify(t)};
4
4
  var shown = ${n?"true":"false"};
5
- var override = localStorage.getItem(${JSON.stringify(j)});
5
+ var override = localStorage.getItem(${JSON.stringify(Z)});
6
6
  var theme;
7
7
  if (shown && (override === 'light' || override === 'dark')) {
8
8
  theme = override;
@@ -15,4 +15,4 @@ import{contrastRatio as X,hexToRgb as l,parseHexColor as h,readableInk as W,rela
15
15
  if (theme === 'light') document.documentElement.setAttribute('data-theme', 'light');
16
16
  else document.documentElement.removeAttribute('data-theme');
17
17
  } catch (e) {}
18
- `}const s={background:"#0a0a0a",surface:"#131313",line:"#2a2a2a",muted:"#9a9388"},Z=[{text:"#2e2e2e",accent:"#2e2e2e",background:"#ffffff",surface:"#f7f7f7",line:"#e0e0e0",muted:"#5c5c5c"},{text:"#f7f7f7",accent:"#f7f7f7",background:"#0a0a0a",surface:"#1b1b1b",line:"#363636",muted:"#a3a3a3"},{text:"#ffffff",accent:"#ffffff",background:"#2e2e2e",surface:"#3d3d3d",line:"#545454",muted:"#b0b0b0"},{text:"#0a0a0a",accent:"#0a0a0a",background:"#f7f7f7",surface:"#ffffff",line:"#d9d9d9",muted:"#5c5c5c"}],q={selected:0,themes:Z};function D(e){return!e||!Array.isArray(e.themes)||e.themes.length===0?{...q}:{selected:Math.min(Math.max(0,e.selected??0),e.themes.length-1),themes:e.themes}}function x(e,t,n){const r=l(e),o=l(t);if(r===null||o===null)return e;const c=(i,a)=>Math.max(0,Math.min(255,Math.round(i+(a-i)*n))).toString(16).padStart(2,"0");return`#${c(r.r,o.r)}${c(r.g,o.g)}${c(r.b,o.b)}`}const J={light:"#ffffff",dark:"#0a0a0a"},Ge=["light","dark"];function Ue(e,t){const n=J[t],r=t==="light"?"#ffffff":"#000000";return{text:n,accent:n,background:e,surface:x(e,r,.1),line:x(e,r,.22),muted:x(n,e,.35),brandInk:t}}function u(e){const t=D(e);return t.themes[t.selected]}function f(e){return{text:e.text,accent:e.accent,background:e.background||s.background,surface:e.surface||s.surface,line:e.line||s.line,muted:e.muted||s.muted}}function Ye(e){return{fill:f(e).background,accent:e.accent}}const Q=.4,v=4.5,ee=3,ze={good:"Good","large-only":"Large text only",hard:"Hard to read"};function Be(e){return e>=v?"good":e>=ee?"large-only":"hard"}const te=["#000000","#ffffff"];function d(e){return W(e,te)}const ne=[.25,.4,.55];function Xe(e){const t=l(e);return t===null?[]:ne.map(n=>"#"+[t.r,t.g,t.b].map(r=>Math.round(r*(1-n)).toString(16).padStart(2,"0")).join(""))}function We(e){const t=u(e),n={"--theme-fg":t.text},r=K(t.text);return(r===null||r>=Q)&&(n["--overlay-fg"]=t.text),n}const re=82;function p(e){return`color-mix(in srgb, ${e} ${re}%, #000)`}function Ke(e){const t=u(e);return{"--theme-accent":t.accent,"--theme-accent-2":p(t.accent),"--theme-accent-ink":d(t.accent)}}function _(e){const t=e?.button;return t&&h(t)===t.toLowerCase()?t.toLowerCase():null}function je(e){const t=u(e),n=_(t),r=H(t);if(n===null&&r===null)return{};const o={};return n!==null&&(o["--theme-btn"]=n,o["--theme-btn-2"]=p(n)),o["--theme-btn-ink"]=r??d(n),o}function H(e){const t=e?.buttonInk;return t&&h(t)===t.toLowerCase()?t.toLowerCase():null}function oe(e,t){return H(e)??d(_(e)??t)}function Ve(e){const t=u(e);return{fill:_(t)??t.accent.toLowerCase(),ink:oe(t,t.accent)}}function Ze(e){const t={};return D(e).themes.forEach((n,r)=>{const o=f(n);t[`--theme-preset-${r}-accent`]=o.accent,t[`--theme-preset-${r}-accent-2`]=p(o.accent),t[`--theme-preset-${r}-accent-ink`]=d(o.accent),t[`--theme-preset-${r}-bg`]=o.background,t[`--theme-preset-${r}-fg`]=o.text,t[`--theme-preset-${r}-surface`]=o.surface,t[`--theme-preset-${r}-surface-2`]=`color-mix(in srgb, ${o.surface} 60%, ${o.line})`,t[`--theme-preset-${r}-line`]=o.line,t[`--theme-preset-${r}-muted`]=o.muted}),t}const E=e=>{const t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4},S=e=>255*(e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055);function N([e,t,n]){const[r,o,c]=[E(e),E(t),E(n)],i=Math.cbrt(.4122214708*r+.5363325363*o+.0514459929*c),a=Math.cbrt(.2119034982*r+.6806995451*o+.1073969566*c),m=Math.cbrt(.0883024619*r+.2817188376*o+.6299787005*c);return[.2104542553*i+.793617785*a-.0040720468*m,1.9779984951*i-2.428592205*a+.4505937099*m,.0259040371*i+.7827717662*a-.808675766*m]}function ce([e,t,n]){const r=(e+.3963377774*t+.2158037573*n)**3,o=(e-.1055613458*t-.0638541728*n)**3,c=(e-.0894841775*t-1.291485548*n)**3;return[S(4.0767416621*r-3.3077115913*o+.2309699292*c),S(-1.2684380046*r+2.6097574011*o-.3413193965*c),S(-.0041960863*r-.7034186147*o+1.707614701*c)]}const A=e=>{const t=l(e);return t===null?[0,0,0]:[t.r,t.g,t.b]},O=(e,t,n)=>[e[0]*n+t[0]*(1-n),e[1]*n+t[1]*(1-n),e[2]*n+t[2]*(1-n)],ie=e=>`#${e.map(t=>Math.max(0,Math.min(255,Math.round(t))).toString(16).padStart(2,"0")).join("")}`;function L(e){const t=f(e),n=O(A(t.surface),A(t.line),.6);return ie(ce(O(N(n),N(A(t.text)),.92)))}function qe(e){return{...e,background:L(e)}}function Je(e,t){const n=e[t];if(!n)return-1;const r=L(n);return e.findIndex((o,c)=>c!==t&&h(o.background??"")===r)}const Qe=["--theme-bg","--theme-surface","--theme-surface-2","--theme-line","--theme-muted"];function ve(e){const t=f(u(e)),n=`color-mix(in srgb, ${t.surface} 60%, ${t.line})`,r={"--theme-bg":t.background,"--theme-surface":t.surface,"--theme-line":t.line,"--theme-muted":t.muted};return(t.surface!==s.surface||t.line!==s.line)&&(r["--theme-surface-2"]=n),r}const se=["heading","body","label"],et={heading:"Headings",body:"Body",label:"Labels"};function tt(e){if(!e)return null;for(const t of se)if(e.includes(`--size-${t}`))return t;return/--size-heading(Large|Medium|Small)/.test(e)?"heading":null}const k=["headingLarge","headingMedium","headingSmall","accent","body","label"],nt={headingLarge:"heading",headingMedium:"heading",headingSmall:"heading",accent:"heading",body:"body",label:"label"},rt={headingLarge:null,headingMedium:null,headingSmall:null,accent:null,body:null,label:null},ae=8,ue=200;function le(e){if(typeof e!="number"||!Number.isFinite(e))return null;const t=Math.round(e);return t>=ae&&t<=ue?t:null}function he(e){const t={};for(const n of k)t[n]=le(e?.[n]);return t}function ot(e){const t=he(e),n={};for(const r of k){const o=t[r];o!==null&&(n[`--size-${r}`]=`${o}px`)}return n}const fe=["square","small","large"],de="small";function ge(e){return fe.includes(e??"")?e:de}function ct(e){return $(xe[ge(e)])}const T=0,me=40,xe={square:0,small:null,large:16},P={"--sf-card-radius":1,"--sf-button-radius":.5,"--site-radius":.5,"--site-radius-xs":.25,"--site-radius-sm":.5,"--site-radius-md":.75,"--site-radius-lg":1,"--site-radius-xl":1.25,"--site-radius-2xl":1.5,"--site-radius-3xl":2,"--site-radius-4xl":2.5};function b(e){if(e==null||typeof e=="string"&&e.trim()==="")return null;const t=typeof e=="string"?Number(e):e;return Number.isFinite(t)?Math.min(me,Math.max(T,Math.round(t))):null}function $(e){const t=b(e);return t===null?{}:Object.fromEntries(Object.entries(P).map(([n,r])=>{const o=t*r/16;return[n,o===0?"0":`${o}rem`]}))}function it(e){return(b(e)??T)*P["--sf-button-radius"]}function st(e){return $(b(e)??T)}const pe=["none","soft","lifted"],_e="soft",F="none",Ee=["tight","normal","roomy"],Se="normal",Ae="normal",Te=["none","lift","highlight"],be="lift",Ce="highlight",G="#141416";function U(e){return pe.includes(e??"")?e:_e}function Ie(e){return Ee.includes(e??"")?e:Se}function Y(e){return Te.includes(e??"")?e:be}function we(e){return e&&h(e)===e.toLowerCase()?e.toLowerCase():G}function at(e){const t=U(e);return t===F?void 0:t}function ut(e){const t=Ie(e);return t===Ae?void 0:t}function lt(e){const t=Y(e);return t===Ce?void 0:t}function ht(e,t,n){const r=we(t);return r===G?{}:U(e)!==F||Y(n)==="lift"?{"--sf-shadow-color":r}:{}}const ye=["normal","tight","compressed"],z="normal";function B(e){return ye.includes(e??"")?e:z}function ft(e){const t=B(e);return t===z?void 0:t}function dt(e){switch(B(e)){case"tight":return{lineHeight:.95,letterSpacing:-.01};case"compressed":return{lineHeight:.86,letterSpacing:-.01};default:return{}}}const gt=["authored","sentence"],mt={case:"authored",weight:null,weightStrong:null,italicStrong:null,maxPx:null,weight2:null,weight3:null,case2:"authored",case3:"authored"},C=100,I=900,Me=24,Re=200;function g(e,t,n){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,t),n))}function w(e){const t=g(e?.weight,C,I),n=e?.case==="sentence"?"sentence":"authored",r=c=>c==null?t:g(c,C,I),o=c=>c==="sentence"?"sentence":c==="authored"?"authored":n;return{case:n,weight:t,weightStrong:g(e?.weightStrong,C,I),italicStrong:typeof e?.italicStrong=="boolean"?e.italicStrong:null,maxPx:g(e?.maxPx,Me,Re),weight2:r(e?.weight2),weight3:r(e?.weight3),case2:o(e?.case2),case3:o(e?.case3)}}function xt(e){const t=w(e),n={};return t.case==="sentence"&&(n["--sf-heading-case"]="none"),t.weight!==null&&(n["--sf-heading-weight"]=String(t.weight)),t.weightStrong!==null&&(n["--sf-heading-weight-strong"]=String(t.weightStrong)),t.maxPx!==null&&(n["--sf-heading-max"]=`${t.maxPx}px`),t.weight2!==null&&t.weight2!==t.weight&&(n["--sf-heading-2-weight"]=String(t.weight2)),t.weight3!==null&&t.weight3!==t.weight&&(n["--sf-heading-3-weight"]=String(t.weight3)),t.case2!==t.case&&(n["--sf-heading-2-case"]=t.case2==="sentence"?"none":"uppercase"),t.case3!==t.case&&(n["--sf-heading-3-case"]=t.case3==="sentence"?"none":"uppercase"),n}function pt(e){return w({case:e?.heading_case??void 0,weight:e?.heading_weight,weightStrong:e?.heading_weight_strong,italicStrong:e?.accent_italic,maxPx:e?.heading_max_px,weight2:e?.heading_2_weight??void 0,weight3:e?.heading_3_weight??void 0,case2:e?.heading_2_case??void 0,case3:e?.heading_3_case??void 0})}function _t(e){const t=w(e);return{heading_case:t.case,heading_weight:t.weight,heading_weight_strong:t.weightStrong,heading_max_px:t.maxPx,heading_2_weight:t.weight2,heading_3_weight:t.weight3,heading_2_case:t.case2,heading_3_case:t.case3}}const y="siteTheme";function De(e){const t=e;if(!t||typeof t!="object"||!Array.isArray(t.themes)||!t.themes.every(r=>!!r&&typeof r=="object"))return{};const n=typeof t.selected=="number"&&Number.isInteger(t.selected)&&t.selected>=0?t.selected:0;return{[y]:{selected:n,themes:t.themes}}}function Et(e){return De(e?.[y])[y]}export{ne as ACCENT_DARKEN_STEPS,Ge as BRAND_INKS,Ee as CARD_GAPS,pe as CARD_SHADOWS,me as CORNER_RADIUS_MAX,T as CORNER_RADIUS_MIN,fe as CORNER_STYLES,xe as CORNER_STYLE_TO_PX,Se as DEFAULT_CARD_GAP,_e as DEFAULT_CARD_SHADOW,de as DEFAULT_CORNER_STYLE,z as DEFAULT_HEADING_COMPRESSION,mt as DEFAULT_HEADING_TYPOGRAPHY,be as DEFAULT_HOVER_EFFECT,G as DEFAULT_SHADOW_COLOR,rt as DEFAULT_SIZES,s as DEFAULT_SURFACES,Pe as DEFAULT_SWITCH_SHOWN,Z as DEFAULT_THEMES,ke as DEFAULT_THEME_MODE,q as DEFAULT_THEME_VALUE,ze as GRADE_LABEL,gt as HEADING_CASES,ye as HEADING_COMPRESSIONS,Re as HEADING_MAX_PX_MAX,Me as HEADING_MAX_PX_MIN,I as HEADING_WEIGHT_MAX,C as HEADING_WEIGHT_MIN,Te as HOVER_EFFECTS,Ae as IDENTITY_CARD_GAP,F as IDENTITY_CARD_SHADOW,Ce as IDENTITY_HOVER_EFFECT,v as READABILITY_AA,ee as READABILITY_AA_LARGE,nt as SCALE_OF_STEP,y as SITE_THEME_KEY,k as SIZE_STEPS,ue as TEXT_SIZE_MAX,ae as TEXT_SIZE_MIN,R as THEME_DAY_END_HOUR,M as THEME_DAY_START_HOUR,Ne as THEME_MODE_KEY,j as THEME_STORAGE_KEY,Qe as THEME_SURFACE_KEYS,Le as THEME_SWITCH_HIDE,Oe as THEME_SWITCH_KEY,se as TYPE_GROUPS,et as TYPE_GROUP_LABELS,d as accentInk,qe as bandPresetFor,Je as bandPresetIndex,Ue as brandTheme,Fe as buildThemeBootScript,ut as cardGapAttr,at as cardShadowAttr,dt as compressionMetrics,X as contrastRatio,$ as cornerRadiusTokens,ct as cornerStyleTokens,Xe as darkerAccents,Be as gradeContrast,ft as headingCompressionAttr,pt as headingTypographyFromRow,xt as headingTypographyStyle,_t as headingTypographyToRow,lt as hoverEffectAttr,V as isDayHour,Ie as normalizeCardGap,U as normalizeCardShadow,b as normalizeCornerRadius,ge as normalizeCornerStyle,B as normalizeHeadingCompression,w as normalizeHeadingTypography,Y as normalizeHoverEffect,we as normalizeShadowColor,le as normalizeSize,he as normalizeSizes,D as normalizeTheme,f as normalizeThemeColors,$e as resolveTheme,oe as resolvedButtonInk,L as sectionBandTone,u as selectedThemeColors,ht as shadowColorTokens,Ve as siteButtonPaint,it as siteButtonRadiusPx,st as siteCornerRadiusTokens,De as siteThemeMetadata,Et as siteThemeOf,Ke as themeAccentStyle,_ as themeButtonColour,H as themeButtonInk,je as themeButtonStyle,We as themeColorStyle,Ze as themePresetAccentVars,ve as themeSurfaceStyle,Ye as themeSwatchColors,tt as typeScaleGroupOfClassName,ot as typeSizesStyle};
18
+ `}const s={background:"#0a0a0a",surface:"#131313",line:"#2a2a2a",muted:"#9a9388"},J=[{text:"#2e2e2e",accent:"#2e2e2e",background:"#ffffff",surface:"#f7f7f7",line:"#e0e0e0",muted:"#5c5c5c"},{text:"#f7f7f7",accent:"#f7f7f7",background:"#0a0a0a",surface:"#1b1b1b",line:"#363636",muted:"#a3a3a3"},{text:"#ffffff",accent:"#ffffff",background:"#2e2e2e",surface:"#3d3d3d",line:"#545454",muted:"#b0b0b0"},{text:"#0a0a0a",accent:"#0a0a0a",background:"#f7f7f7",surface:"#ffffff",line:"#d9d9d9",muted:"#5c5c5c"}],Q={selected:0,themes:J};function D(e){return!e||!Array.isArray(e.themes)||e.themes.length===0?{...Q}:{selected:Math.min(Math.max(0,e.selected??0),e.themes.length-1),themes:e.themes}}function x(e,t,n){const r=h(e),o=h(t);if(r===null||o===null)return e;const c=(i,a)=>Math.max(0,Math.min(255,Math.round(i+(a-i)*n))).toString(16).padStart(2,"0");return`#${c(r.r,o.r)}${c(r.g,o.g)}${c(r.b,o.b)}`}const v={light:"#ffffff",dark:"#0a0a0a"},Ue=["light","dark"];function Ye(e,t){const n=v[t],r=t==="light"?"#ffffff":"#000000";return{text:n,accent:n,background:e,surface:x(e,r,.1),line:x(e,r,.22),muted:x(n,e,.35),brandInk:t}}function u(e){const t=D(e);return t.themes[t.selected]}function l(e){return{text:e.text,accent:e.accent,background:e.background||s.background,surface:e.surface||s.surface,line:e.line||s.line,muted:e.muted||s.muted}}function ze(e){return{fill:l(e).background,accent:e.accent}}const ee=.4,te=4.5,ne=3,Be={good:"Good","large-only":"Large text only",hard:"Hard to read"};function Xe(e){return e>=te?"good":e>=ne?"large-only":"hard"}const re=["#000000","#ffffff"];function d(e){return j(e,re)}const oe=[.25,.4,.55];function We(e){const t=h(e);return t===null?[]:oe.map(n=>"#"+[t.r,t.g,t.b].map(r=>Math.round(r*(1-n)).toString(16).padStart(2,"0")).join(""))}function Ke(e){const t=u(e),n={"--theme-fg":t.text},r=V(t.text);return(r===null||r>=ee)&&(n["--overlay-fg"]=t.text),n}const ce=82;function p(e){return`color-mix(in srgb, ${e} ${ce}%, #000)`}function je(e){const t=u(e);return{"--theme-accent":t.accent,"--theme-accent-2":p(t.accent),"--theme-accent-ink":d(t.accent)}}function _(e){const t=e?.button;return t&&f(t)===t.toLowerCase()?t.toLowerCase():null}function Ve(e){const t=u(e),n=_(t),r=H(t);if(n===null&&r===null)return{};const o={};return n!==null&&(o["--theme-btn"]=n,o["--theme-btn-2"]=p(n)),o["--theme-btn-ink"]=r??d(n),o}function H(e){const t=e?.buttonInk;return t&&f(t)===t.toLowerCase()?t.toLowerCase():null}function ie(e,t){return H(e)??d(_(e)??t)}function Ze(e){const t=u(e);return{fill:_(t)??t.accent.toLowerCase(),ink:ie(t,t.accent)}}function qe(e){const t={};return D(e).themes.forEach((n,r)=>{const o=l(n);t[`--theme-preset-${r}-accent`]=o.accent,t[`--theme-preset-${r}-accent-2`]=p(o.accent),t[`--theme-preset-${r}-accent-ink`]=d(o.accent),t[`--theme-preset-${r}-bg`]=o.background,t[`--theme-preset-${r}-fg`]=o.text,t[`--theme-preset-${r}-surface`]=o.surface,t[`--theme-preset-${r}-surface-2`]=`color-mix(in srgb, ${o.surface} 60%, ${o.line})`,t[`--theme-preset-${r}-line`]=o.line,t[`--theme-preset-${r}-muted`]=o.muted}),t}const E=e=>{const t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4},S=e=>255*(e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055);function N([e,t,n]){const[r,o,c]=[E(e),E(t),E(n)],i=Math.cbrt(.4122214708*r+.5363325363*o+.0514459929*c),a=Math.cbrt(.2119034982*r+.6806995451*o+.1073969566*c),m=Math.cbrt(.0883024619*r+.2817188376*o+.6299787005*c);return[.2104542553*i+.793617785*a-.0040720468*m,1.9779984951*i-2.428592205*a+.4505937099*m,.0259040371*i+.7827717662*a-.808675766*m]}function se([e,t,n]){const r=(e+.3963377774*t+.2158037573*n)**3,o=(e-.1055613458*t-.0638541728*n)**3,c=(e-.0894841775*t-1.291485548*n)**3;return[S(4.0767416621*r-3.3077115913*o+.2309699292*c),S(-1.2684380046*r+2.6097574011*o-.3413193965*c),S(-.0041960863*r-.7034186147*o+1.707614701*c)]}const A=e=>{const t=h(e);return t===null?[0,0,0]:[t.r,t.g,t.b]},O=(e,t,n)=>[e[0]*n+t[0]*(1-n),e[1]*n+t[1]*(1-n),e[2]*n+t[2]*(1-n)],L=e=>`#${e.map(t=>Math.max(0,Math.min(255,Math.round(t))).toString(16).padStart(2,"0")).join("")}`,k=e=>O(A(e.surface),A(e.line),.6);function Je(e){return L(k(l(e)))}function P(e){const t=l(e);return L(se(O(N(k(t)),N(A(t.text)),.92)))}function Qe(e){return{...e,background:P(e)}}function ve(e,t){const n=e[t];if(!n)return-1;const r=P(n);return e.findIndex((o,c)=>c!==t&&f(o.background??"")===r)}const et=["--theme-bg","--theme-surface","--theme-surface-2","--theme-line","--theme-muted"];function tt(e){const t=l(u(e)),n=`color-mix(in srgb, ${t.surface} 60%, ${t.line})`,r={"--theme-bg":t.background,"--theme-surface":t.surface,"--theme-line":t.line,"--theme-muted":t.muted};return(t.surface!==s.surface||t.line!==s.line)&&(r["--theme-surface-2"]=n),r}const ae=["heading","body","label"],nt={heading:"Headings",body:"Body",label:"Labels"};function rt(e){if(!e)return null;for(const t of ae)if(e.includes(`--size-${t}`))return t;return/--size-heading(Large|Medium|Small)/.test(e)?"heading":null}const $=["headingLarge","headingMedium","headingSmall","accent","body","label"],ot={headingLarge:"heading",headingMedium:"heading",headingSmall:"heading",accent:"heading",body:"body",label:"label"},ct={headingLarge:null,headingMedium:null,headingSmall:null,accent:null,body:null,label:null},ue=8,le=200;function he(e){if(typeof e!="number"||!Number.isFinite(e))return null;const t=Math.round(e);return t>=ue&&t<=le?t:null}function fe(e){const t={};for(const n of $)t[n]=he(e?.[n]);return t}function it(e){const t=fe(e),n={};for(const r of $){const o=t[r];o!==null&&(n[`--size-${r}`]=`${o}px`)}return n}const de=["square","small","large"],ge="small";function me(e){return de.includes(e??"")?e:ge}function st(e){return G(pe[me(e)])}const T=0,xe=40,pe={square:0,small:null,large:16},F={"--sf-card-radius":1,"--sf-button-radius":.5,"--site-radius":.5,"--site-radius-xs":.25,"--site-radius-sm":.5,"--site-radius-md":.75,"--site-radius-lg":1,"--site-radius-xl":1.25,"--site-radius-2xl":1.5,"--site-radius-3xl":2,"--site-radius-4xl":2.5};function b(e){if(e==null||typeof e=="string"&&e.trim()==="")return null;const t=typeof e=="string"?Number(e):e;return Number.isFinite(t)?Math.min(xe,Math.max(T,Math.round(t))):null}function G(e){const t=b(e);return t===null?{}:Object.fromEntries(Object.entries(F).map(([n,r])=>{const o=t*r/16;return[n,o===0?"0":`${o}rem`]}))}function at(e){return(b(e)??T)*F["--sf-button-radius"]}function ut(e){return G(b(e)??T)}const _e=["none","soft","lifted"],Ee="soft",U="none",Se=["tight","normal","roomy"],Ae="normal",Te="normal",be=["none","lift","highlight"],Ce="lift",we="highlight",Y="#141416";function z(e){return _e.includes(e??"")?e:Ee}function Ie(e){return Se.includes(e??"")?e:Ae}function B(e){return be.includes(e??"")?e:Ce}function ye(e){return e&&f(e)===e.toLowerCase()?e.toLowerCase():Y}function lt(e){const t=z(e);return t===U?void 0:t}function ht(e){const t=Ie(e);return t===Te?void 0:t}function ft(e){const t=B(e);return t===we?void 0:t}function dt(e,t,n){const r=ye(t);return r===Y?{}:z(e)!==U||B(n)==="lift"?{"--sf-shadow-color":r}:{}}const Me=["normal","tight","compressed"],X="normal";function W(e){return Me.includes(e??"")?e:X}function gt(e){const t=W(e);return t===X?void 0:t}function mt(e){switch(W(e)){case"tight":return{lineHeight:.95,letterSpacing:-.01};case"compressed":return{lineHeight:.86,letterSpacing:-.01};default:return{}}}const xt=["authored","sentence"],pt={case:"authored",weight:null,weightStrong:null,italicStrong:null,maxPx:null,weight2:null,weight3:null,case2:"authored",case3:"authored"},C=100,w=900,Re=24,De=200;function g(e,t,n){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,t),n))}function I(e){const t=g(e?.weight,C,w),n=e?.case==="sentence"?"sentence":"authored",r=c=>c==null?t:g(c,C,w),o=c=>c==="sentence"?"sentence":c==="authored"?"authored":n;return{case:n,weight:t,weightStrong:g(e?.weightStrong,C,w),italicStrong:typeof e?.italicStrong=="boolean"?e.italicStrong:null,maxPx:g(e?.maxPx,Re,De),weight2:r(e?.weight2),weight3:r(e?.weight3),case2:o(e?.case2),case3:o(e?.case3)}}function _t(e){const t=I(e),n={};return t.case==="sentence"&&(n["--sf-heading-case"]="none"),t.weight!==null&&(n["--sf-heading-weight"]=String(t.weight)),t.weightStrong!==null&&(n["--sf-heading-weight-strong"]=String(t.weightStrong)),t.maxPx!==null&&(n["--sf-heading-max"]=`${t.maxPx}px`),t.weight2!==null&&t.weight2!==t.weight&&(n["--sf-heading-2-weight"]=String(t.weight2)),t.weight3!==null&&t.weight3!==t.weight&&(n["--sf-heading-3-weight"]=String(t.weight3)),t.case2!==t.case&&(n["--sf-heading-2-case"]=t.case2==="sentence"?"none":"uppercase"),t.case3!==t.case&&(n["--sf-heading-3-case"]=t.case3==="sentence"?"none":"uppercase"),n}function Et(e){return I({case:e?.heading_case??void 0,weight:e?.heading_weight,weightStrong:e?.heading_weight_strong,italicStrong:e?.accent_italic,maxPx:e?.heading_max_px,weight2:e?.heading_2_weight??void 0,weight3:e?.heading_3_weight??void 0,case2:e?.heading_2_case??void 0,case3:e?.heading_3_case??void 0})}function St(e){const t=I(e);return{heading_case:t.case,heading_weight:t.weight,heading_weight_strong:t.weightStrong,heading_max_px:t.maxPx,heading_2_weight:t.weight2,heading_3_weight:t.weight3,heading_2_case:t.case2,heading_3_case:t.case3}}const y="siteTheme";function He(e){const t=e;if(!t||typeof t!="object"||!Array.isArray(t.themes)||!t.themes.every(r=>!!r&&typeof r=="object"))return{};const n=typeof t.selected=="number"&&Number.isInteger(t.selected)&&t.selected>=0?t.selected:0;return{[y]:{selected:n,themes:t.themes}}}function At(e){return He(e?.[y])[y]}export{oe as ACCENT_DARKEN_STEPS,Ue as BRAND_INKS,Se as CARD_GAPS,_e as CARD_SHADOWS,xe as CORNER_RADIUS_MAX,T as CORNER_RADIUS_MIN,de as CORNER_STYLES,pe as CORNER_STYLE_TO_PX,Ae as DEFAULT_CARD_GAP,Ee as DEFAULT_CARD_SHADOW,ge as DEFAULT_CORNER_STYLE,X as DEFAULT_HEADING_COMPRESSION,pt as DEFAULT_HEADING_TYPOGRAPHY,Ce as DEFAULT_HOVER_EFFECT,Y as DEFAULT_SHADOW_COLOR,ct as DEFAULT_SIZES,s as DEFAULT_SURFACES,$e as DEFAULT_SWITCH_SHOWN,J as DEFAULT_THEMES,Pe as DEFAULT_THEME_MODE,Q as DEFAULT_THEME_VALUE,Be as GRADE_LABEL,xt as HEADING_CASES,Me as HEADING_COMPRESSIONS,De as HEADING_MAX_PX_MAX,Re as HEADING_MAX_PX_MIN,w as HEADING_WEIGHT_MAX,C as HEADING_WEIGHT_MIN,be as HOVER_EFFECTS,Te as IDENTITY_CARD_GAP,U as IDENTITY_CARD_SHADOW,we as IDENTITY_HOVER_EFFECT,te as READABILITY_AA,ne as READABILITY_AA_LARGE,ot as SCALE_OF_STEP,y as SITE_THEME_KEY,$ as SIZE_STEPS,le as TEXT_SIZE_MAX,ue as TEXT_SIZE_MIN,R as THEME_DAY_END_HOUR,M as THEME_DAY_START_HOUR,Oe as THEME_MODE_KEY,Z as THEME_STORAGE_KEY,et as THEME_SURFACE_KEYS,ke as THEME_SWITCH_HIDE,Le as THEME_SWITCH_KEY,ae as TYPE_GROUPS,nt as TYPE_GROUP_LABELS,d as accentInk,Qe as bandPresetFor,ve as bandPresetIndex,Ye as brandTheme,Ge as buildThemeBootScript,ht as cardGapAttr,lt as cardShadowAttr,mt as compressionMetrics,K as contrastRatio,G as cornerRadiusTokens,st as cornerStyleTokens,We as darkerAccents,Xe as gradeContrast,gt as headingCompressionAttr,Et as headingTypographyFromRow,_t as headingTypographyStyle,St as headingTypographyToRow,ft as hoverEffectAttr,q as isDayHour,Ie as normalizeCardGap,z as normalizeCardShadow,b as normalizeCornerRadius,me as normalizeCornerStyle,W as normalizeHeadingCompression,I as normalizeHeadingTypography,B as normalizeHoverEffect,ye as normalizeShadowColor,he as normalizeSize,fe as normalizeSizes,D as normalizeTheme,l as normalizeThemeColors,Fe as resolveTheme,ie as resolvedButtonInk,P as sectionBandTone,u as selectedThemeColors,dt as shadowColorTokens,Ze as siteButtonPaint,at as siteButtonRadiusPx,ut as siteCornerRadiusTokens,He as siteThemeMetadata,At as siteThemeOf,Je as surfaceTwoTone,je as themeAccentStyle,_ as themeButtonColour,H as themeButtonInk,Ve as themeButtonStyle,Ke as themeColorStyle,qe as themePresetAccentVars,tt as themeSurfaceStyle,ze as themeSwatchColors,rt as typeScaleGroupOfClassName,it as typeSizesStyle};
@@ -9,7 +9,6 @@ export declare const WORD_STYLE_BY_KIND: Readonly<Record<string, WordStyleName>>
9
9
  export declare const WORD_STYLE_ATTR = "data-sf-ws";
10
10
  export declare const WORD_STYLE_COLOURS: readonly ["accent", "text", "labels"];
11
11
  export type WordStyleColour = (typeof WORD_STYLE_COLOURS)[number];
12
- export declare const WORD_STYLE_COLOUR_LABELS: Record<WordStyleColour, string>;
13
12
  export declare const COLOUR_TOKEN: Record<WordStyleColour, string>;
14
13
  export interface WordStyleValue {
15
14
  font?: string | null;
@@ -1 +1 @@
1
- import{FONT_OPTIONS as a}from"./fonts.js";const i=["highlight","strong","quiet"],Y={highlight:"Highlight",strong:"Bold",quiet:"Quiet"},O={highlight:{kind:"wordHighlight",delimiter:"@@"},strong:{kind:"wordStrong",delimiter:"++"},quiet:{kind:"wordQuiet",delimiter:"^^"}},G=Object.fromEntries(i.map(t=>[O[t].kind,t])),N="data-sf-ws",T=["accent","text","labels"],A={accent:"Accent",text:"Text",labels:"Labels"},E={accent:"var(--accent)",text:"var(--fg)",labels:"var(--fg-dim)"},g=80,h=120,m=100,L=900,R=.5,w=3,W=-.1,D=.5,b=3,c={font:null,size:null,weight:null,bold:null,italic:null,lineGap:null,textGap:null,colour:null},_={highlight:{...c},strong:{...c},quiet:{...c}};function f(t,e,o){return typeof t!="number"||!Number.isFinite(t)?null:Math.round(Math.min(Math.max(t,e),o))}function p(t,e,o){if(typeof t!="number"||!Number.isFinite(t))return null;const l=10**b;return Math.round(Math.min(Math.max(t,e),o)*l)/l}function S(t){return typeof t=="boolean"?t:null}function d(t){const e=typeof t?.font=="string"&&a.some(l=>l.key===t.font)?t.font:null,o=typeof t?.colour=="string"&&T.includes(t.colour)?t.colour:null;return{font:e,size:f(t?.size,g,h),weight:f(t?.weight,m,L),bold:S(t?.bold),italic:S(t?.italic),lineGap:p(t?.lineGap,R,w),textGap:p(t?.textGap,W,D),colour:o}}function s(t){const e={};for(const o of i)e[o]=t&&o in t&&t[o]?d(t[o]):{..._[o]};return e}function I(t,e){const o=d(e),l=_[t];return Object.keys(l).every(n=>o[n]===l[n])}function M(t){const e=s(t),o={};for(const l of i){const n=e[l],r=`--sf-ws-${l}`;if(n.font){const u=a.find(x=>x.key===n.font);u&&(o[`${r}-font`]=`var(${u.cssVar})`)}n.size!==null&&(o[`${r}-size`]=`${n.size/100}em`),n.weight!==null&&(o[`${r}-weight`]=String(n.weight)),n.bold!==null&&(o[`${r}-weight-bold`]=n.bold?"700":"400"),n.italic!==null&&(o[`${r}-style`]=n.italic?"italic":"normal"),n.lineGap!==null&&(o[`${r}-line`]=String(n.lineGap)),n.textGap!==null&&(o[`${r}-track`]=`${n.textGap}em`),n.colour!==null&&(o[`${r}-color`]=E[n.colour])}return o}function $(t){const e=t?.word_styles??void 0,o={};for(const l of i)e&&l in e&&(o[l]=e[l]??null);return s(o)}function k(t){return{word_styles:s(t)}}export{E as COLOUR_TOKEN,_ as DEFAULT_WORD_STYLES,i as WORD_STYLES,N as WORD_STYLE_ATTR,G as WORD_STYLE_BY_KIND,T as WORD_STYLE_COLOURS,A as WORD_STYLE_COLOUR_LABELS,b as WORD_STYLE_GAP_PRECISION,Y as WORD_STYLE_LABELS,w as WORD_STYLE_LINE_GAP_MAX,R as WORD_STYLE_LINE_GAP_MIN,O as WORD_STYLE_MARKS,h as WORD_STYLE_SIZE_MAX,g as WORD_STYLE_SIZE_MIN,D as WORD_STYLE_TEXT_GAP_MAX,W as WORD_STYLE_TEXT_GAP_MIN,L as WORD_STYLE_WEIGHT_MAX,m as WORD_STYLE_WEIGHT_MIN,d as normalizeWordStyle,s as normalizeWordStyles,I as wordStyleIsDefault,M as wordStyleTokens,$ as wordStylesFromRow,k as wordStylesToRow};
1
+ import{FONT_OPTIONS as a}from"./fonts.js";const i=["highlight","strong","quiet"],G={highlight:"Highlight",strong:"Bold",quiet:"Quiet"},T={highlight:{kind:"wordHighlight",delimiter:"@@"},strong:{kind:"wordStrong",delimiter:"++"},quiet:{kind:"wordQuiet",delimiter:"^^"}},N=Object.fromEntries(i.map(t=>[T[t].kind,t])),Y="data-sf-ws",g=["accent","text","labels"],E={accent:"var(--accent)",text:"var(--fg)",labels:"var(--fg-dim)"},O=80,h=120,m=100,L=900,R=.5,w=3,W=-.1,y=.5,D=3,s={font:null,size:null,weight:null,bold:null,italic:null,lineGap:null,textGap:null,colour:null},f={highlight:{...s},strong:{...s},quiet:{...s}};function _(t,e,o){return typeof t!="number"||!Number.isFinite(t)?null:Math.round(Math.min(Math.max(t,e),o))}function p(t,e,o){if(typeof t!="number"||!Number.isFinite(t))return null;const l=10**D;return Math.round(Math.min(Math.max(t,e),o)*l)/l}function d(t){return typeof t=="boolean"?t:null}function S(t){const e=typeof t?.font=="string"&&a.some(l=>l.key===t.font)?t.font:null,o=typeof t?.colour=="string"&&g.includes(t.colour)?t.colour:null;return{font:e,size:_(t?.size,O,h),weight:_(t?.weight,m,L),bold:d(t?.bold),italic:d(t?.italic),lineGap:p(t?.lineGap,R,w),textGap:p(t?.textGap,W,y),colour:o}}function c(t){const e={};for(const o of i)e[o]=t&&o in t&&t[o]?S(t[o]):{...f[o]};return e}function I(t,e){const o=S(e),l=f[t];return Object.keys(l).every(n=>o[n]===l[n])}function M(t){const e=c(t),o={};for(const l of i){const n=e[l],r=`--sf-ws-${l}`;if(n.font){const u=a.find(x=>x.key===n.font);u&&(o[`${r}-font`]=`var(${u.cssVar})`)}n.size!==null&&(o[`${r}-size`]=`${n.size/100}em`),n.weight!==null&&(o[`${r}-weight`]=String(n.weight)),n.bold!==null&&(o[`${r}-weight-bold`]=n.bold?"700":"400"),n.italic!==null&&(o[`${r}-style`]=n.italic?"italic":"normal"),n.lineGap!==null&&(o[`${r}-line`]=String(n.lineGap)),n.textGap!==null&&(o[`${r}-track`]=`${n.textGap}em`),n.colour!==null&&(o[`${r}-color`]=E[n.colour])}return o}function A(t){const e=t?.word_styles??void 0,o={};for(const l of i)e&&l in e&&(o[l]=e[l]??null);return c(o)}function $(t){return{word_styles:c(t)}}export{E as COLOUR_TOKEN,f as DEFAULT_WORD_STYLES,i as WORD_STYLES,Y as WORD_STYLE_ATTR,N as WORD_STYLE_BY_KIND,g as WORD_STYLE_COLOURS,D as WORD_STYLE_GAP_PRECISION,G as WORD_STYLE_LABELS,w as WORD_STYLE_LINE_GAP_MAX,R as WORD_STYLE_LINE_GAP_MIN,T as WORD_STYLE_MARKS,h as WORD_STYLE_SIZE_MAX,O as WORD_STYLE_SIZE_MIN,y as WORD_STYLE_TEXT_GAP_MAX,W as WORD_STYLE_TEXT_GAP_MIN,L as WORD_STYLE_WEIGHT_MAX,m as WORD_STYLE_WEIGHT_MIN,S as normalizeWordStyle,c as normalizeWordStyles,I as wordStyleIsDefault,M as wordStyleTokens,A as wordStylesFromRow,$ as wordStylesToRow};
@@ -6,7 +6,7 @@ interface ButtonBlockProps {
6
6
  label: string;
7
7
  href: string;
8
8
  variant: Variant;
9
- align: Align;
9
+ align?: Align;
10
10
  alignPhone?: unknown;
11
11
  contained: boolean;
12
12
  arrow?: boolean;
@@ -14,6 +14,7 @@ interface ButtonBlockProps {
14
14
  iconPosition?: string;
15
15
  widthFit?: string;
16
16
  widthFitPhone?: string;
17
+ widthFitTablet?: string;
17
18
  buttonColor?: string;
18
19
  buttonTextColor?: string;
19
20
  buttonFillOpacity?: number;
@@ -1 +1 @@
1
- import{jsx as r}from"react/jsx-runtime";import{buttonArrowShown as L}from"../../format/lib/content/button-arrow.js";import{buttonIconAtEnd as N,buttonIconSide as T,buttonWidthClass as j,storedButtonIcon as _}from"../../format/lib/content/button-icon.js";import{buttonCornersStyle as v,buttonPadAttrs as O,buttonPaint as R}from"../lib/content/button-look.js";import{ArrowLongRightIcon as F,ArrowRightIcon as G,ArrowUpRightIcon as U,BagIcon as $,CarIcon as E,CartIcon as K,ChevronRightIcon as Y,DownloadIcon as z,EmailIcon as D,ExternalIcon as H,LocationIcon as J,PlayIcon as W,SearchIcon as q,TagIcon as M}from"efficient-shell/icons/efficient";import Q from"./BlockFrame.js";import V from"./Btn.js";import{renderGold as X}from"./goldPhrases.js";import{alignPhoneClass as b,BLOCK_ALIGN_JUSTIFY as Z}from"../../format/lib/content/block-align.js";const oo="sf-button-block",to={"arrow-right":G,"arrow-long-right":F,"arrow-up-right":U,"chevron-right":Y,external:H,cart:K,bag:$,tag:M,email:D,location:J,play:W,download:z,search:q,car:E};function no(o){const{label:p,href:c,variant:i,align:a,alignPhone:s,contained:I,arrow:C,icon:y,iconPosition:l,widthFit:d,widthFitPhone:B,buttonColor:t,buttonTextColor:h,hrefRewrite:m}=o,n=_(y),u=n&&n!=="none"?to[n]:void 0,P=n===void 0?L(C)?{}:{arrow:null}:u?{arrow:r(u,{size:16}),...T(l)==="before"?{glyphBefore:!0}:{}}:{arrow:null},f=O(o),g=[j(d,B),f?.className??""].filter(Boolean).join(" "),x=g?{className:g}:{},A=N(l,d)?{spread:!0}:{},e=R(o),S=e?e.background==="transparent"?"ghost":"primary":i,w={...e??(t?i==="ghost"?{borderColor:t}:{background:t,borderColor:t}:{}),...h?{color:h}:{},...f?.style??{},...v(o)??{}},k=Object.keys(w).length?{style:w}:{};return r(Q,{contained:I,className:`${oo} py-4`,children:r("div",{className:`flex ${Z[a]}${b("justify",a,s)?` ${b("justify",a,s)}`:""}`,children:r(V,{href:c||"#",variant:S,...x,...A,...P,...k,...c&&m?{hrefRewrite:m}:{},children:X(p)})})})}export{oo as BUTTON_BLOCK_CLASS,no as default};
1
+ import{jsx as a}from"react/jsx-runtime";import{buttonArrowShown as L}from"../../format/lib/content/button-arrow.js";import{buttonIconAtEnd as N,buttonIconSide as j,buttonWidthClass as _,storedButtonIcon as v}from"../../format/lib/content/button-icon.js";import{buttonCornersStyle as F,buttonPadAttrs as O,buttonPaint as R}from"../lib/content/button-look.js";import{ArrowLongRightIcon as $,ArrowRightIcon as G,ArrowUpRightIcon as U,BagIcon as E,CarIcon as K,CartIcon as Y,ChevronRightIcon as z,DownloadIcon as D,EmailIcon as H,ExternalIcon as J,LocationIcon as W,PlayIcon as q,SearchIcon as M,TagIcon as Q}from"efficient-shell/icons/efficient";import V from"./BlockFrame.js";import X from"./Btn.js";import{renderGold as Z}from"./goldPhrases.js";import{alignPhoneClass as b,BLOCK_ALIGN_JUSTIFY as oo}from"../../format/lib/content/block-align.js";const to="sf-button-block",no={"arrow-right":G,"arrow-long-right":$,"arrow-up-right":U,"chevron-right":z,external:J,cart:Y,bag:E,tag:Q,email:H,location:W,play:q,download:D,search:M,car:K};function ro(o){const{label:p,href:c,variant:i,align:t,alignPhone:l,contained:I,arrow:C,icon:y,iconPosition:s,widthFit:d,widthFitPhone:B,widthFitTablet:P,buttonColor:n,buttonTextColor:h,hrefRewrite:m}=o,r=v(y),u=r&&r!=="none"?no[r]:void 0,x=r===void 0?L(C)?{}:{arrow:null}:u?{arrow:a(u,{size:16}),...j(s)==="before"?{glyphBefore:!0}:{}}:{arrow:null},f=O(o),g=[_(d,B,P),f?.className??""].filter(Boolean).join(" "),A=g?{className:g}:{},S=N(s,d)?{spread:!0}:{},e=R(o),T=e?e.background==="transparent"?"ghost":"primary":i,w={...e??(n?i==="ghost"?{borderColor:n}:{background:n,borderColor:n}:{}),...h?{color:h}:{},...f?.style??{},...F(o)??{}},k=Object.keys(w).length?{style:w}:{};return a(V,{contained:I,className:`${to} py-4`,children:a("div",{className:`flex${t?` ${oo[t]}`:""}${b("justify",t,l)?` ${b("justify",t,l)}`:""}`,children:a(X,{href:c||"#",variant:T,...A,...S,...x,...k,...c&&m?{hrefRewrite:m}:{},children:Z(p)})})})}export{to as BUTTON_BLOCK_CLASS,ro as default};
@@ -1,12 +1,15 @@
1
1
  import { type ReactNode } from "react";
2
2
  import type { SlotComponent } from "efficient-easel/blocks";
3
+ import { type CardRowState } from "../../format/lib/content/card-state.js";
3
4
  import type { SourceRow } from "../../format/lib/content/block-sources.js";
5
+ export type { CardRowState } from "../../format/lib/content/card-state.js";
4
6
  export type CardRow = {
5
7
  row: SourceRow;
6
8
  index: number;
7
9
  ownerType?: string;
8
10
  item?: unknown;
9
11
  nested?: boolean;
12
+ state?: CardRowState;
10
13
  };
11
14
  export declare const CardRowContext: import("react").Context<CardRow | null>;
12
15
  export declare function useCardRow(): CardRow | null;
@@ -21,9 +24,9 @@ type CardTemplateRowsProps = {
21
24
  Template: SlotComponent | undefined;
22
25
  rows: readonly SourceRow[];
23
26
  items?: readonly unknown[];
27
+ states?: readonly (CardRowState | undefined)[];
24
28
  fallback: ReactNode;
25
29
  wrapCopy?: (copy: ReactNode, row: CardRow) => ReactNode;
26
30
  children: (cards: ReactNode) => ReactNode;
27
31
  };
28
- export declare function CardTemplateRows({ ownerId, ownerType, Template, rows, items, fallback, wrapCopy, children }: CardTemplateRowsProps): import("react").JSX.Element;
29
- export {};
32
+ export declare function CardTemplateRows({ ownerId, ownerType, Template, rows, items, states, fallback, wrapCopy, children }: CardTemplateRowsProps): import("react").JSX.Element;
@@ -1 +1 @@
1
- "use client";import{Fragment as u,jsx as r}from"react/jsx-runtime";import{createContext as _,useContext as i}from"react";import{REPEAT_ATTRIBUTE as w,REPEAT_INDEX_ATTRIBUTE as x}from"efficient-easel/draw";import{CARD_TEMPLATE_SLOT as A,rowFilledProps as h}from"../../format/lib/content/card-template.js";const e=_(null);function I(){return i(e)}function g({type:c,props:s,children:t}){const o=i(e);return r(u,{children:t(h(c,s,o?.row),o)})}function j({ownerId:c,ownerType:s,Template:t,rows:o,items:m,fallback:T,wrapCopy:a,children:E}){const R=i(e);if(!t||(t.blockCount??0)<=0)return r(u,{children:T});const f=R!==null,p=o.map((C,n)=>{const l={row:C,index:n,ownerType:s,item:m?.[n],nested:f},d=r("div",{[w]:`${c}:${A}`,[x]:n,children:r(t,{})});return r(e.Provider,{value:l,children:a?a(d,l):d},n)});return r(u,{children:E(p)})}export{e as CardRowContext,g as CardRowDrawn,j as CardTemplateRows,I as useCardRow};
1
+ "use client";import{Fragment as s,jsx as r,jsxs as h}from"react/jsx-runtime";import{createContext as x,useContext as i}from"react";import{REPEAT_ATTRIBUTE as w,REPEAT_INDEX_ATTRIBUTE as S}from"efficient-easel/draw";import{CARD_TEMPLATE_SLOT as P,rowFilledProps as j}from"../../format/lib/content/card-template.js";import{CARD_STATE_LINE_CLASS as D,cardStateAttrs as I,cardStateValue as L}from"../../format/lib/content/card-state.js";const c=x(null);function U(){return i(c)}function $({type:a,props:u,children:t}){const n=i(c);return r(s,{children:t(j(a,u,n?.row),n)})}function b({ownerId:a,ownerType:u,Template:t,rows:n,items:E,states:T,fallback:_,wrapCopy:l,children:A}){const C=i(c);if(!t||(t.blockCount??0)<=0)return r(s,{children:_});const R=C!==null,f=n.map((p,o)=>{const e=T?.[o],d={row:p,index:o,ownerType:u,item:E?.[o],nested:R,...e?{state:e}:null},m=r("div",{[w]:`${a}:${P}`,[S]:o,...I(e),children:L(e)?h(s,{children:[r(t,{}),r("span",{"aria-hidden":"true",className:D})]}):r(t,{})});return r(c.Provider,{value:d,children:l?l(m,d):m},o)});return r(s,{children:A(f)})}export{c as CardRowContext,$ as CardRowDrawn,b as CardTemplateRows,U as useCardRow};
@@ -1,5 +1,6 @@
1
1
  import { type ContactLocationCard } from "../../format/lib/content/contact.js";
2
2
  import { type MapThemeMode } from "../../format/lib/map-styles.js";
3
+ import { type PictureHoverDrawn } from "../../format/lib/animation/hover.js";
3
4
  export interface ContactLocationsProps {
4
5
  sectionNumber?: string;
5
6
  heading?: string;
@@ -9,7 +10,8 @@ export interface ContactLocationsProps {
9
10
  locations?: ContactLocationCard[];
10
11
  mapTheme?: MapThemeMode;
11
12
  imageShape?: string;
13
+ pictureHover?: PictureHoverDrawn;
12
14
  editing?: boolean;
13
15
  nodeId?: string;
14
16
  }
15
- export default function ContactLocations({ sectionNumber, heading, tagline, galleryKicker, galleryHint, locations, mapTheme, imageShape, editing, nodeId, }: ContactLocationsProps): import("react").JSX.Element;
17
+ export default function ContactLocations({ sectionNumber, heading, tagline, galleryKicker, galleryHint, locations, mapTheme, imageShape, pictureHover, editing, nodeId, }: ContactLocationsProps): import("react").JSX.Element;
@@ -1,2 +1,2 @@
1
- "use client";import{jsx as t,jsxs as r,Fragment as j}from"react/jsx-runtime";import{EDITORIAL_COLUMN as H}from"../../format/lib/content/page-width.js";import{SiteImage as D}from"../lib/site-runtime.js";import{useEffect as U,useState as R}from"react";import{stripMarkup as F}from"../../format/lib/markup.js";import P from"./EditorialSectionHead.js";import G from"./SectionEyebrow.js";import{scrollBehavior as T}from"./useReducedMotion.js";import{renderGold as z,renderHeadline as V}from"./goldPhrases.js";import{CONTACT_LOCATIONS_CARDS_PLACEHOLDER as q,CONTACT_LOCATIONS_DEFAULTS as h,parseLocationTileShape as J,splitLegacyRegion as W}from"../../format/lib/content/contact.js";import{galleryCardRatioClass as K}from"../../format/lib/content/gallery-card-layout.js";import{jumpHighlightCss as Q}from"../../format/lib/content/box-link.js";import{hasMapCoords as A}from"../../format/lib/map-styles.js";import{useRootIsDark as X}from"efficient-shell/theme";import{bucketByGroup as Y,groupColsClass as _}from"../../format/lib/locations-grid.js";import{LocationGroupHeader as Z}from"./LocationGroupHeader.js";import ee,{DirectionsLink as te,directionsHref as ne}from"./LocationMap.js";import{phoneHref as re}from"../../format/lib/links/phone-href.js";import{scrim as ie}from"../../format/lib/content/scrim.js";const oe=Q({box:".contact-loc",lit:['.contact-loc[data-active="true"]'],first:i=>[`${i} > div:first-child`]});function M({value:i}){if(typeof i=="string"){const n=i.split(`
2
- `);return t(j,{children:n.map((l,o)=>r("span",{children:[l,o<n.length-1?t("br",{}):null]},o))})}return t(j,{children:i})}function ae(){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:r("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:i=h.sectionNumber,heading:n=h.heading,tagline:l=h.tagline,galleryKicker:o=h.galleryKicker,galleryHint:d=h.galleryHint,locations:m=q,mapTheme:f="auto",imageShape:y,editing:c,nodeId:u}){const g=!X({whenUnset:!0}),[x,k]=R(null),a=e=>`loc-${e}`,b=e=>{k(e),typeof document<"u"&&document.getElementById(e)?.scrollIntoView({behavior:T(),block:"start"}),!c&&typeof window<"u"&&window.history?.replaceState&&window.history.replaceState(null,"",`#${e}`)};U(()=>{if(typeof window>"u")return;const e=window.location.hash.replace(/^#/,"");!e||!document.getElementById(e)||(k(e),requestAnimationFrame(()=>{document.getElementById(e)?.scrollIntoView({behavior:T(),block:"start"})}))},[]);const O=K(J(y)),N=(e,p)=>c&&u?`${e}:${p}`:void 0,$=m.length>0&&(c||m.some(e=>String(e?.photo??"").trim())),E=m.some(e=>A(Number(e?.lat),Number(e?.lng))),C=Y(m,e=>String(e.group??""),e=>String(e.groupName??""));return t("section",{id:"studios",className:"scroll-mt-24 border-b border-line py-[100px] max-view-desktop:py-[60px]",style:g?void 0:{background:"var(--section-bg)"},children:r("div",{className:H,children:[t("style",{dangerouslySetInnerHTML:{__html:oe}}),(i||n||l)&&t(P,{num:i,title:n?V(n,!0):void 0,desc:l?z(l):void 0,spaceBelow:"mb-10"}),$&&r("div",{className:"mb-12",children:[(o||d)&&r("div",{className:"mb-5 flex items-baseline justify-between gap-6 border-b border-line pb-4",children:[o&&t(G,{text:o,size:12}),d&&t("span",{className:"font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.22em] text-fg-dim",children:z(d)})]}),t("div",{className:"flex flex-col gap-6",children:C.map((e,p)=>{const v=e.items.length===1;return r("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:w})=>{const S=String(s?.name??""),L=String(s?.photo??""),I=a(w);return r("a",{href:`#${I}`,"aria-label":`Jump to ${S||"location"} map`,onClick:B=>{B.preventDefault(),b(I)},"data-loc-pick":N(w,"image"),className:["group relative block",O,"overflow-hidden bg-bg outline-none focus-visible:ring-2 focus-visible:ring-accent",v?"max-h-[440px]":""].join(" "),children:[L?t(D,{src:L,alt:F(S||"Location"),fill:!0,sizes:v?"100vw":"(max-width: 700px) 50vw, 33vw",className:"object-cover grayscale transition-[filter] duration-500 group-hover:grayscale-0"}):t(ae,{}),t("div",{className:"pointer-events-none absolute inset-0",style:{background:`linear-gradient(180deg, transparent 50%, ${ie(.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:${p}`)})})]}),C.map((e,p)=>r("div",{className:p===0?"":"mt-10",children:[e.key&&t(Z,{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:s})=>t(le,{id:a(s),card:v,active:x===a(s),mapTheme:f,mapPick:N(s,"map"),cityPick:N(s,"city"),editing:c},s))})]},e.key?`g:${e.key}`:`ungrouped:${p}`)),E&&r("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",target:"_blank",rel:"noopener noreferrer",className:"hover:text-accent",children:"OpenStreetMap contributors"})]})]})})}function le({id:i,card:n,active:l,mapTheme:o,mapPick:d,cityPick:m,editing:f}){const y=re(n.phone),c=W(n.region),u=String(n.state??"").trim()||c.state,g=String(n.country??"").trim()||c.country,x=[u,g].filter(Boolean).join(" · "),a=A(Number(n.lat),Number(n.lng))||!!f,b=ne(String(n.mapsUrl??""),String(n.name??""),u,g);return r("article",{id:i,"data-active":l?"true":void 0,"data-loc-pick":m,className:a?"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:[r("div",{className:a?"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:[r("div",{className:"flex items-start justify-between gap-3.5",children:[r("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}),x&&t("div",{className:"mt-1.5 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.24em] text-accent",children:x})]}),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})}),!a&&b&&t("div",{children:t(te,{href:b})})]}),a&&t(ee,{name:String(n.name??""),state:u,country:g,lat:Number(n.lat),lng:Number(n.lng),mapsUrl:String(n.mapsUrl??""),mapTheme:o,pick:d,editing:f})]})}export{se as default};
1
+ "use client";import{jsx as t,jsxs as r,Fragment as j}from"react/jsx-runtime";import{EDITORIAL_COLUMN as F}from"../../format/lib/content/page-width.js";import{SiteImage as G}from"../lib/site-runtime.js";import{useEffect as V,useState as q}from"react";import{stripMarkup as J}from"../../format/lib/markup.js";import W from"./EditorialSectionHead.js";import K from"./SectionEyebrow.js";import{scrollBehavior as A}from"./useReducedMotion.js";import{renderGold as z,renderHeadline as Q}from"./goldPhrases.js";import{CONTACT_LOCATIONS_CARDS_PLACEHOLDER as X,CONTACT_LOCATIONS_DEFAULTS as f,parseLocationTileShape as Y,splitLegacyRegion as Z}from"../../format/lib/content/contact.js";import{galleryCardRatioClass as ee}from"../../format/lib/content/gallery-card-layout.js";import{jumpHighlightCss as te}from"../../format/lib/content/box-link.js";import{hasMapCoords as H}from"../../format/lib/map-styles.js";import{useRootIsDark as ne}from"efficient-shell/theme";import{bucketByGroup as re,groupColsClass as $}from"../../format/lib/locations-grid.js";import{LocationGroupHeader as ie}from"./LocationGroupHeader.js";import oe,{DirectionsLink as ae,directionsHref as se}from"./LocationMap.js";import{phoneHref as le}from"../../format/lib/links/phone-href.js";import{scrim as ce}from"../../format/lib/content/scrim.js";import{PHOTO_HOST_ATTR as me,resolveImageTreatment as pe}from"../../format/lib/content/image-treatment.js";import{pictureHoverOf as de}from"../../format/lib/animation/hover.js";import ue from"./PhotoHoverSheet.js";import{nonEmptyString as he}from"../../format/lib/non-empty-string.js";const fe=te({box:".contact-loc",lit:['.contact-loc[data-active="true"]'],first:i=>[`${i} > div:first-child`]}),M=i=>he(i?.photo)?.trim()||void 0;function E({value:i}){if(typeof i=="string"){const n=i.split(`
2
+ `);return t(j,{children:n.map((c,a)=>r("span",{children:[c,a<n.length-1?t("br",{}):null]},a))})}return t(j,{children:i})}function ge(){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:r("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 xe({sectionNumber:i=f.sectionNumber,heading:n=f.heading,tagline:c=f.tagline,galleryKicker:a=f.galleryKicker,galleryHint:u=f.galleryHint,locations:m=X,mapTheme:g="auto",imageShape:y,pictureHover:x=de({},"ContactLocations"),editing:s,nodeId:h}){const o=pe(void 0,void 0,x),C=o.className?{[me]:""}:{},p=!ne({whenUnset:!0}),[b,L]=q(null),N=e=>`loc-${e}`,B=e=>{L(e),typeof document<"u"&&document.getElementById(e)?.scrollIntoView({behavior:A(),block:"start"}),!s&&typeof window<"u"&&window.history?.replaceState&&window.history.replaceState(null,"",`#${e}`)};V(()=>{if(typeof window>"u")return;const e=window.location.hash.replace(/^#/,"");!e||!document.getElementById(e)||(L(e),requestAnimationFrame(()=>{document.getElementById(e)?.scrollIntoView({behavior:A(),block:"start"})}))},[]);const P=ee(Y(y)),k=(e,d)=>s&&h?`${e}:${d}`:void 0,T=m.some(e=>M(e)!==void 0),D=m.length>0&&(s||T),R=m.some(e=>H(Number(e?.lat),Number(e?.lng))),I=re(m,e=>String(e.group??""),e=>String(e.groupName??""));return t("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:r("div",{className:F,children:[t("style",{dangerouslySetInnerHTML:{__html:fe}}),t(ue,{sheet:T?o.sheet:void 0}),(i||n||c)&&t(W,{num:i,title:n?Q(n,!0):void 0,desc:c?z(c):void 0,spaceBelow:"mb-10"}),D&&r("div",{className:"mb-12",children:[(a||u)&&r("div",{className:"mb-5 flex items-baseline justify-between gap-6 border-b border-line pb-4",children:[a&&t(K,{text:a,size:12}),u&&t("span",{className:"font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.22em] text-fg-dim",children:z(u)})]}),t("div",{className:"flex flex-col gap-6",children:I.map((e,d)=>{const v=e.items.length===1;return r("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??""),O=M(l),_=N(w);return r("a",{href:`#${_}`,"aria-label":`Jump to ${S||"location"} map`,onClick:U=>{U.preventDefault(),B(_)},"data-loc-pick":k(w,"image"),...C,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:[O?t(G,{src:O,alt:J(S||"Location"),fill:!0,sizes:v?"100vw":"(max-width: 700px) 50vw, 33vw",className:`object-cover${o.className?` ${o.className}`:""}`,...o.style?{style:o.style}:{}}):t(ge,{}),t("div",{className:"pointer-events-none absolute inset-0",style:{background:`linear-gradient(180deg, transparent 50%, ${ce(.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}`)})})]}),I.map((e,d)=>r("div",{className:d===0?"":"mt-10",children:[e.key&&t(ie,{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(be,{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}`)),R&&r("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",target:"_blank",rel:"noopener noreferrer",className:"hover:text-accent",children:"OpenStreetMap contributors"})]})]})})}function be({id:i,card:n,active:c,mapTheme:a,mapPick:u,cityPick:m,editing:g}){const y=le(n.phone),x=Z(n.region),s=String(n.state??"").trim()||x.state,h=String(n.country??"").trim()||x.country,o=[s,h].filter(Boolean).join(" · "),p=H(Number(n.lat),Number(n.lng))||!!g,b=se(String(n.mapsUrl??""),String(n.name??""),s,h);return r("article",{id:i,"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:[r("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:[r("div",{className:"flex items-start justify-between gap-3.5",children:[r("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}),o&&t("div",{className:"mt-1.5 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.24em] text-accent",children:o})]}),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(E,{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(E,{value:n.hours})}),!p&&b&&t("div",{children:t(ae,{href:b})})]}),p&&t(oe,{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{xe as default};
@@ -2,12 +2,14 @@ import type { SlotComponent } from "efficient-easel/blocks";
2
2
  import { type ReactNode } from "react";
3
3
  import { type Loop, type LoopDirection } from "../../format/lib/animation/index.js";
4
4
  import { type PadValues } from "../lib/content/section-padding.js";
5
+ import type { PictureHoverDrawn } from "../../format/lib/animation/hover.js";
5
6
  type Direction = "row" | "column" | "tabs";
6
7
  type Justify = "start" | "center" | "between" | "end";
7
8
  type AlignItems = "start" | "center" | "end" | "stretch";
8
9
  interface FlexProps {
9
10
  padV2?: boolean;
10
11
  border?: unknown;
12
+ borderTablet?: unknown;
11
13
  borderPhone?: unknown;
12
14
  direction: Direction;
13
15
  label?: string;
@@ -20,6 +22,7 @@ interface FlexProps {
20
22
  wrap: boolean;
21
23
  share?: string;
22
24
  sharePhone?: string;
25
+ shareTablet?: unknown;
23
26
  wrapPhone?: unknown;
24
27
  phoneRow?: number | string;
25
28
  columns?: number | string;
@@ -29,6 +32,7 @@ interface FlexProps {
29
32
  contained?: boolean;
30
33
  bgImage?: string;
31
34
  bgImagePhone?: string;
35
+ pictureHover?: PictureHoverDrawn;
32
36
  darken?: number;
33
37
  darkenStyle?: string;
34
38
  placement?: string;
@@ -46,6 +50,7 @@ interface FlexProps {
46
50
  link?: unknown;
47
51
  boxShape?: unknown;
48
52
  boxShapePhone?: unknown;
53
+ boxShapeTablet?: unknown;
49
54
  jumpHighlight?: unknown;
50
55
  anchor?: unknown;
51
56
  sharedSides?: {
@@ -56,5 +61,5 @@ interface FlexProps {
56
61
  mirrorCards?: unknown;
57
62
  content: SlotComponent;
58
63
  }
59
- export default function Flex({ direction, label, tabShape, gap, gapPhone, gapTablet, justify, align, wrap, share, sharePhone, wrapPhone, phoneRow, columns, columnsTablet, separator, blockSpacing, bgImage, bgImagePhone, darken, darkenStyle, placement, padV2, border, borderPhone, pad, contained, fillHeight, shadow, loop, scrollDirection, loopSeconds, loopDelay, editing, fillColor, line, upcoming, link, boxShape, boxShapePhone, jumpHighlight, anchor, sharedSides, boxId, mirrorCards, content: Content, }: FlexProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
64
+ export default function Flex({ direction, label, tabShape, gap, gapPhone, gapTablet, justify, align, wrap, share, sharePhone, shareTablet, wrapPhone, phoneRow, columns, columnsTablet, separator, blockSpacing, bgImage, bgImagePhone, pictureHover, darken, darkenStyle, placement, padV2, border, borderTablet, borderPhone, pad, contained, fillHeight, shadow, loop, scrollDirection, loopSeconds, loopDelay, editing, fillColor, line, upcoming, link, boxShape, boxShapePhone, boxShapeTablet, jumpHighlight, anchor, sharedSides, boxId, mirrorCards, content: Content, }: FlexProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
60
65
  export {};
@@ -1 +1 @@
1
- import{Fragment as Y,jsx as e,jsxs as Uo}from"react/jsx-runtime";import{useId as Es}from"react";import{parseHexColor as vs}from"efficient-shell/format";import Ns from"./BoxTabs.js";import{BoxTabPaneContext as Ts,useIsTabPane as ks}from"./BoxTabPaneContext.js";import{CellFillContext as gs,InBoxContext as Fs,useCellOfStretchedRow as Ds,useFillsCell as Is}from"./InBoxContext.js";import Ms,{InsideSiteColumn as Wo,useInsideSiteGutter as js,useSectionRoot as Us}from"./SiteGutterFrame.js";import{BoxSurfaceProvider as Ws}from"./BoxSurfaceContext.js";import{BoxCellWidthContext as Xs}from"./BoxCellWidthContext.js";import{useInSiteHeader as Gs}from"./PhoneMenuTools.js";import{useCardRow as zs}from"./CardRowContext.js";import{framesItsCards as Hs}from"../../format/lib/content/card-place.js";import{MirrorContext as Js,useMirroredCopy as Ks,useUnderCardBox as Ys}from"./MirrorContext.js";import{isMirroredCopy as qs,mirrorCardsActs as Qs,mirroredBoxClass as Vs,MIRROR_ROW_CLASS as Zs,ownsCard as oe}from"../../format/lib/content/mirror-cards.js";import{FRAME_BASE as q,FRAME_GUTTER as Q}from"./BlockFrame.js";import{containerGapProps as se}from"../../format/lib/content/container-gap.js";import{boxLayoutClasses as ee,boxBlockSpacingClass as te,boxFitContentClass as re,boxRowColumnsClass as ne,boxRowTabletColumnsClass as le,boxPhoneRowClasses as R,boxPhoneRowFits as ae,boxShareClasses as V,boxWrapClass as ce}from"../../format/lib/content/box-layout.js";import{boxSeparatorClasses as me,boxSeparatorSeamClass as ie,boxSeparatorStyle as ue,isStripBox as de}from"../../format/lib/content/box-separator.js";import{DEFAULT_LOOP_DELAY as fe,DEFAULT_LOOP_DIRECTION as Ce,DEFAULT_LOOP_SECONDS as pe,isVerticalLoop as be}from"../../format/lib/animation/index.js";import{LoopTrack as xe}from"../lib/animation/LoopTrack.js";import{BOX_CARD_PAD as c,BOX_OWNS_SIDES_CLASS as Se,boxDarkenStyle as $e,boxPlacementClasses as he,CARD_SHADOW_CLASS as _e,isBackgroundBox as Xo}from"../../format/lib/content/box-background.js";import{boxShadowAttrs as Go}from"../../format/lib/content/box-shadow.js";import{boxRunsEdgeToEdge as Pe,drawsSiteGutter as Re}from"../../format/lib/content/site-gutter.js";import{boxShapeClass as Le,boxShapeClasses as ye}from"../../format/lib/content/box-shape.js";import{BOX_JUMP_ATTR as Ae,BOX_LINK_ATTR as zo,BOX_LINK_CLASS as Ho,BOX_LINKED_CLASS as Be,boxJumpBlocksClass as we,boxJumpCss as Oe,boxJumpSlug as Ee,boxLinkOf as ve}from"../../format/lib/content/box-link.js";import{SiteLink as Ne}from"../lib/site-runtime.js";import{sectionBorderStyle as Jo}from"../../format/lib/content/borders.js";import{finiteNumber as m}from"../../format/lib/finite-number.js";import{sectionPadAttrs as Te}from"../lib/content/section-padding.js";import{SECTION_FILL_CLASS as k}from"../../format/lib/content/section-min-height.js";import{ON_MEDIA_INK_STYLE as ke}from"../../format/lib/content/ink.js";import{sizedBackground as Z}from"../../format/lib/sized-image.js";import{BoxRail as ge,BoxRailStop as Fe,RAIL_STOPS_CLASS as De,useTimelineRail as Ie}from"./TimelineRail.js";import{SHARED_PLAIN_ATTR as Me,sharedColumnsClasses as je,sharedColumnsCss as Ue}from"../lib/content/box-shared-columns.js";const oo={"--sf-site-gutter":"0px"},We={overflowX:"clip",overflowY:"visible"},Xe={desktop:!1,phone:!1},Ge="bg-cover bg-center bg-[image:var(--sf-box-bg)] max-view-tablet:bg-[image:var(--sf-box-bg-p)]",so=o=>o==null||o==="",eo=o=>!so(o)&&Number(o)===0;function ze({children:o}){return e(Y,{children:o(Es())})}function He({direction:o,label:Ko,tabShape:Yo,gap:to,gapPhone:qo,gapTablet:g,justify:L,align:f,wrap:ro,share:b,sharePhone:F,wrapPhone:Qo,phoneRow:y,columns:D,columnsTablet:no,separator:i,blockSpacing:Vo,bgImage:x,bgImagePhone:lo,darken:Zo,darkenStyle:os,placement:ss,padV2:ao=!1,border:co,borderPhone:mo,pad:r={},contained:I=!0,fillHeight:u=!1,shadow:io,loop:S,scrollDirection:M=Ce,loopSeconds:es=pe,loopDelay:ts=fe,editing:uo=!1,fillColor:fo,line:A,upcoming:rs,link:ns,boxShape:Co,boxShapePhone:ls,jumpHighlight:as,anchor:cs,sharedSides:B=Xe,boxId:po,mirrorCards:ms,content:$}){const C=uo?"":ve(ns),n=u?"":ye(Co,ls),is=!u&&Le(Co)!=="",d=Ee(as,cs),j=typeof fo=="string"?vs(fo.trim()):null,bo=j?{backgroundColor:j}:void 0,xo=Ie(),U=A===!0&&o!=="tabs",t=Xo(x),w=Gs(),us=Us(),So=ks(),W=Is(),ds=Ds(),O=de(o,i),l=S==="scroll"&&o!=="tabs",p=zs(),fs=Ks(),Cs=Ys(),E=oe({inCopy:p!==null,nestedCopy:p?.nested===!0,underBox:Cs}),$o=E&&Hs(p?.ownerType),ho=Qs({direction:o,separator:i,loop:S,line:A,bgImage:x,columns:D,columnsTablet:no,share:b,wrap:ro},E,B.desktop)&&qs(ms,p?.index),_o=t||E?"":Vs(fs,o,l?void 0:L,f),v=ne({direction:o,separator:i,loop:S,line:A,columns:D}),X=le({direction:o,separator:i,loop:S,line:A,columnsTablet:no}),ps=js(),N=je(B,$.blockCount??0),bs=N&&(!p||p.index===0)?Ue(B,$.blockCount??0):"",Po=[V(b),o==="row"?re(b):"",v,X,te(Vo),me(o,i)].filter(Boolean).join(" "),xs=Po?` ${Po}`:"",Ro=["flex",o==="row"?O||l?"flex-row":`flex-row ${R(y,F,Qo)}`:"flex-col",ce(l?!1:ro),t?he(ss??"center",o):ee(l?void 0:L,f)+(_o?` ${_o}`:"")].join(" ")+xs,h=u||t||n||W?` ${k}`:"",G=is?` ${n}`:n?`${h} ${n}`:h,Lo=ds&&o==="column"&&!t&&!l&&V(b)===""&&typeof L=="string"&&L!=="start",yo=h||(Lo?` ${k}`:""),z=C?` ${Be}`:"",H=t||w||ao?"":" py-6",Ss=`${q}${H} ${Q}${G}${z}`,$s=w?`${G}${z}`.trim():`w-full${H}${G}${z}`,_=se("Flex",to,o==="row"?"inline":"block",qo,O||l?void 0:g),hs=O?{..._.style,...ue(o,i)}:_.style,Ao=(s="")=>e($,{className:`${Ro}${ho?` ${Zs}`:""}${_.className}${yo}${s?` ${s}`:""}${U?` ${De}`:""}${d?` ${we(d)}`:""}${N}`,style:hs,minEmptyHeight:120}),Bo=be(M)?"":ie(o,i),wo=l?e(xe,{direction:M,seconds:es,delay:ts,editing:uo,copy:s=>Ao(s&&Bo?`${s} ${Bo}`:s)}):Ao(),Oo=o==="tabs"?e(Ns,{className:`${Ro}${_.className}${W&&!u&&!t&&!n?"":h}`,style:_.style,shape:Yo,children:wo}):wo,Eo=So?e(Ts.Provider,{value:!1,children:Oo}):Oo,_s={stretchedRow:o==="row"&&!t&&(f===void 0||f==="stretch"),fillingColumn:o==="column"&&(W||Lo),columnsRow:v!==""||X!==""||N!=="",...po?{id:po}:null},vo=e(Fs.Provider,{value:_s,children:e(gs.Provider,{value:!1,children:E?e(Js.Provider,{value:ho,children:Eo}):Eo})}),J=U?e(ge,{row:o==="row",stops:$.blockCount??0,children:vo}):vo,Ps=Ko?.trim()||(So?"":void 0),Rs={values:r,frame:H?24:0},Ls=s=>xo?e(Fe,{on:xo,future:rs===!0,children:s}):s,ys=s=>C.startsWith("/")?e(Ne,{href:C,className:Ho,"aria-labelledby":s,[zo]:""}):e("a",{href:C,className:Ho,"aria-labelledby":s,[zo]:""}),No=(d?Oe(d):"")+bs,To=No?e("style",{dangerouslySetInnerHTML:{__html:No}}):null,P=Pe({loop:S,direction:o,scrollDirection:M,bgImage:x}),As=B.desktop&&N!==""&&!j&&!Jo(co,mo)&&Object.keys(Go(io)).length===0&&!C&&!n&&!u&&!d&&!Re(I&&!P,ps)&&eo(to)&&(so(g)||eo(g))&&ao&&Object.values(r).every(s=>so(s)||eo(s)),Bs=s=>({...As?{[Me]:""}:null,...t?null:Go(io),...d?{[Ae]:d}:null,...s?{id:s}:null}),ko=v!==""?Number(D):0,ws=R(y,F)===R(void 0),Os=(o==="column"||o==="row"&&!O&&!l&&(ko===1&&ws||ko===0&&$.blockCount===1))&&!t&&!U&&!w,go=t&&us&&!w,Fo=(s,a)=>Ls(e(Ms,{contained:I&&!P,style:P?oo:void 0,framedClass:Ss,fillClass:$s,columnClass:`${q} ${Q}${yo}`,tabLabel:Ps,pad:t?void 0:Rs,border:Jo(co,mo),outerAttrs:Bs(a),box:!0,edge:Os,outerStyle:t?void 0:bo,bleed:go,children:To||a?Uo(Y,{children:[To,a?ys(a):null,P?e(Wo,{children:s}):s]}):P?e(Wo,{children:s}):s})),Do=s=>C?e(ze,{children:a=>Fo(s,a)}):Fo(s);if(!t){const s=f===void 0||f==="stretch",a=(V(b)!==""||v!==""||X!=="")&&!ae(y,F)&&(s||R(y)!==R(void 0));return Do((o==="row"?a:o==="column"&&s)?e(Xs.Provider,{value:!0,children:J}):J)}const T=$e(Zo,os),Io=Xo(lo),K=Te({...r,top:m(r.top)??c.desktop,bottom:m(r.bottom)??c.desktop,topPhone:m(r.topPhone)??c.phone,bottomPhone:m(r.bottomPhone)??c.phone,left:m(r.left)??c.side,right:m(r.right)??c.side,leftPhone:m(r.leftPhone)??c.sidePhone,rightPhone:m(r.rightPhone)??c.sidePhone}),Mo=e("div",{className:`relative z-[1] ${Se} ${K?.className??""}${u||n?` ${k}`:""}`.trimEnd(),style:T?{...K?.style,...oo,...ke}:{...K?.style,...oo},children:J}),jo=go&&I?e("div",{className:`${q} ${Q}${u||n?` ${k}`:""}`,children:Mo}):Mo;return Do(e(Y,{children:Uo("div",{className:`relative isolate overflow-hidden ${_e}${h}${Io?` ${Ge}`:""}`,style:{...$o?We:{},...bo,...Io?{"--sf-box-bg":Z(x??""),"--sf-box-bg-p":Z(lo??"")}:{backgroundImage:Z(x??""),backgroundSize:"cover",backgroundPosition:"center"}},children:[T&&e("div",{className:$o?"absolute inset-0 z-0 rounded-[inherit]":"absolute inset-0 z-0",style:T,"aria-hidden":!0}),T?e(Ws,{children:jo}):jo]})}))}export{He as default};
1
+ import{Fragment as g,jsx as s,jsxs as eo}from"react/jsx-runtime";import{useId as Me}from"react";import{parseHexColor as We}from"efficient-shell/format";import je from"./BoxTabs.js";import{BoxTabPaneContext as He,useIsTabPane as Ue}from"./BoxTabPaneContext.js";import{CellFillContext as Xe,InBoxContext as Ge,useCellOfStretchedRow as ze,useFillsCell as Je}from"./InBoxContext.js";import Ke,{InsideSiteColumn as Ko,useInsideSiteGutter as Ye,useSectionRoot as qe}from"./SiteGutterFrame.js";import{BoxSurfaceProvider as Qe}from"./BoxSurfaceContext.js";import Ve from"./PictureWash.js";import{BoxCellWidthContext as Ze}from"./BoxCellWidthContext.js";import{useInSiteHeader as os}from"./PhoneMenuTools.js";import{useCardRow as es}from"./CardRowContext.js";import{framesItsCards as ss}from"../../format/lib/content/card-place.js";import{MirrorContext as ts,useMirroredCopy as rs,useUnderCardBox as ns}from"./MirrorContext.js";import{isMirroredCopy as ls,mirrorCardsActs as as,mirroredBoxClass as cs,MIRROR_ROW_CLASS as ms,ownsCard as is}from"../../format/lib/content/mirror-cards.js";import{FRAME_BASE as so,FRAME_GUTTER as to}from"./BlockFrame.js";import{containerGapProps as us}from"../../format/lib/content/container-gap.js";import{boxLayoutClasses as ds,boxBlockSpacingClass as fs,boxFitContentClass as Cs,boxRowColumnsClass as ps,boxRowTabletColumnsClass as Ss,boxRowTabletShareClass as xs,boxPhoneRowClasses as L,boxPhoneRowFits as bs,boxShareClasses as F,boxWrapClass as hs}from"../../format/lib/content/box-layout.js";import{boxSeparatorClasses as $s,boxSeparatorSeamClass as _s,boxSeparatorStyle as Ps,isStripBox as Rs}from"../../format/lib/content/box-separator.js";import{DEFAULT_LOOP_DELAY as ys,DEFAULT_LOOP_DIRECTION as Ls,DEFAULT_LOOP_SECONDS as As,isVerticalLoop as ws}from"../../format/lib/animation/index.js";import{LoopTrack as Os}from"../lib/animation/LoopTrack.js";import{BOX_CARD_PAD as m,BOX_OWNS_SIDES_CLASS as Bs,boxDarkenStyle as Ts,boxPlacementClasses as vs,CARD_SHADOW_CLASS as Ns,isBackgroundBox as Yo}from"../../format/lib/content/box-background.js";import{boxShadowAttrs as qo}from"../../format/lib/content/box-shadow.js";import{boxRunsEdgeToEdge as Es,drawsSiteGutter as ks}from"../../format/lib/content/site-gutter.js";import{boxShapeClass as gs,boxShapeClasses as Fs}from"../../format/lib/content/box-shape.js";import{BOX_JUMP_ATTR as Ds,BOX_LINK_ATTR as Qo,BOX_LINK_CLASS as Vo,BOX_LINKED_CLASS as Is,boxJumpBlocksClass as Ms,boxJumpCss as Ws,boxJumpSlug as js,boxLinkOf as Hs}from"../../format/lib/content/box-link.js";import{SiteLink as Us}from"../lib/site-runtime.js";import{sectionBorderStyle as Zo}from"../../format/lib/content/borders.js";import{finiteNumber as i}from"../../format/lib/finite-number.js";import{sectionPadAttrs as Xs}from"../lib/content/section-padding.js";import{SECTION_FILL_CLASS as D}from"../../format/lib/content/section-min-height.js";import{ON_MEDIA_INK_STYLE as Gs}from"../../format/lib/content/ink.js";import{sizedBackground as ro}from"../../format/lib/sized-image.js";import{PHOTO_HOST_ATTR as zs,resolveImageTreatment as Js}from"../../format/lib/content/image-treatment.js";import{BoxRail as Ks,BoxRailStop as Ys,RAIL_STOPS_CLASS as qs,useTimelineRail as Qs}from"./TimelineRail.js";import{SHARED_PLAIN_ATTR as Vs,sharedColumnsClasses as Zs,sharedColumnsCss as ot}from"../lib/content/box-shared-columns.js";import et from"./PhotoHoverSheet.js";const no={"--sf-site-gutter":"0px"},st={overflowX:"clip",overflowY:"visible"},tt={desktop:!1,phone:!1},oe="bg-cover bg-center bg-[image:var(--sf-box-bg)] max-view-tablet:bg-[image:var(--sf-box-bg-p)]",lo=o=>o==null||o==="",ao=o=>!lo(o)&&Number(o)===0;function rt({children:o}){return s(g,{children:o(Me())})}function nt({direction:o,label:ee,tabShape:se,gap:co,gapPhone:te,gapTablet:I,justify:A,align:C,wrap:mo,share:p,sharePhone:M,shareTablet:io,wrapPhone:re,phoneRow:w,columns:O,columnsTablet:W,separator:n,blockSpacing:ne,bgImage:h,bgImagePhone:uo,pictureHover:le,darken:ae,darkenStyle:ce,placement:me,padV2:fo=!1,border:Co,borderTablet:po,borderPhone:So,pad:r={},contained:j=!0,fillHeight:u=!1,shadow:xo,loop:S,scrollDirection:H=Ls,loopSeconds:ie=As,loopDelay:ue=ys,editing:bo=!1,fillColor:ho,line:$,upcoming:de,link:fe,boxShape:$o,boxShapePhone:Ce,boxShapeTablet:pe,jumpHighlight:Se,anchor:xe,sharedSides:B=tt,boxId:_o,mirrorCards:be,content:_}){const x=bo?"":Hs(fe),l=u?"":Fs($o,Ce,pe),he=!u&&gs($o)!=="",d=js(Se,xe),U=typeof ho=="string"?We(ho.trim()):null,Po=U?{backgroundColor:U}:void 0,Ro=Qs(),X=$===!0&&o!=="tabs",t=Yo(h),T=os(),$e=qe(),yo=Ue(),G=Je(),_e=ze(),v=Rs(o,n),a=S==="scroll"&&o!=="tabs",b=es(),Pe=rs(),Re=ns(),N=is({inCopy:b!==null,nestedCopy:b?.nested===!0,underBox:Re}),z=N&&ss(b?.ownerType),Lo=as({direction:o,separator:n,loop:S,line:$,bgImage:h,columns:O,columnsTablet:W,share:p,wrap:mo},N,B.desktop)&&ls(be,b?.index),Ao=t||N?"":cs(Pe,o,a?void 0:A,C),E=ps({direction:o,separator:n,loop:S,line:$,columns:O}),J=Ss({direction:o,separator:n,loop:S,line:$,columnsTablet:W}),wo=xs({direction:o,separator:n,loop:S,line:$,columns:O,columnsTablet:W,share:p,shareTablet:io}),ye=Ye(),k=Zs(B,_.blockCount??0),Le=k&&(!b||b.index===0)?ot(B,_.blockCount??0):"",Oo=[F(p),o==="row"?Cs(p):"",E,J,wo,fs(ne),$s(o,n)].filter(Boolean).join(" "),Ae=Oo?` ${Oo}`:"",Bo=["flex",o==="row"?v||a?"flex-row":`flex-row ${L(w,M,re)}`:"flex-col",hs(a?!1:mo),t?vs(me??"center",o):ds(a?void 0:A,C)+(Ao?` ${Ao}`:"")].join(" ")+Ae,P=u||t||l||G?` ${D}`:"",K=he?` ${l}`:l?`${P} ${l}`:P,To=_e&&o==="column"&&!t&&!a&&F(p)===""&&typeof A=="string"&&A!=="start",vo=P||(To?` ${D}`:""),Y=x?` ${Is}`:"",q=t||T||fo?"":" py-6",we=`${so}${q} ${to}${K}${Y}`,Oe=T?`${K}${Y}`.trim():`w-full${q}${K}${Y}`,R=us("Flex",co,o==="row"?"inline":"block",te,v||a?void 0:I),Be=v?{...R.style,...Ps(o,n)}:R.style,No=(e="")=>s(_,{className:`${Bo}${Lo?` ${ms}`:""}${R.className}${vo}${e?` ${e}`:""}${X?` ${qs}`:""}${d?` ${Ms(d)}`:""}${k}`,style:Be,minEmptyHeight:120}),Eo=ws(H)?"":_s(o,n),ko=a?s(Os,{direction:H,seconds:ie,delay:ue,editing:bo,copy:e=>No(e&&Eo?`${e} ${Eo}`:e)}):No(),go=o==="tabs"?s(je,{className:`${Bo}${R.className}${G&&!u&&!t&&!l?"":P}`,style:R.style,shape:se,children:ko}):ko,Fo=yo?s(He.Provider,{value:!1,children:go}):go,Te={stretchedRow:o==="row"&&!t&&(C===void 0||C==="stretch"),fillingColumn:o==="column"&&(G||To),columnsRow:E!==""||J!==""||k!=="",..._o?{id:_o}:null},Do=s(Ge.Provider,{value:Te,children:s(Xe.Provider,{value:!1,children:N?s(ts.Provider,{value:Lo,children:Fo}):Fo})}),Q=X?s(Ks,{row:o==="row",stops:_.blockCount??0,children:Do}):Do,ve=ee?.trim()||(yo?"":void 0),Ne={values:r,frame:q?24:0},Ee=e=>Ro?s(Ys,{on:Ro,future:de===!0,children:e}):e,ke=e=>x.startsWith("/")?s(Us,{href:x,className:Vo,"aria-labelledby":e,[Qo]:""}):s("a",{href:x,className:Vo,"aria-labelledby":e,[Qo]:""}),Io=(d?Ws(d):"")+Le,Mo=Io?s("style",{dangerouslySetInnerHTML:{__html:Io}}):null,y=Es({loop:S,direction:o,scrollDirection:H,bgImage:h}),ge=B.desktop&&k!==""&&!U&&!Zo(Co,So,po)&&Object.keys(qo(xo)).length===0&&!x&&!l&&!u&&!d&&!ks(j&&!y,ye)&&ao(co)&&(lo(I)||ao(I))&&fo&&Object.values(r).every(e=>lo(e)||ao(e)),Fe=e=>({...ge?{[Vs]:""}:null,...t?null:qo(xo),...d?{[Ds]:d}:null,...e?{id:e}:null}),Wo=E!==""?Number(O):0,De=L(w,M)===L(void 0),Ie=(o==="column"||o==="row"&&!v&&!a&&(Wo===1&&De||Wo===0&&_.blockCount===1))&&!t&&!X&&!T,jo=t&&$e&&!T,Ho=(e,c)=>Ee(s(Ke,{contained:j&&!y,style:y?no:void 0,framedClass:we,fillClass:Oe,columnClass:`${so} ${to}${vo}`,tabLabel:ve,pad:t?void 0:Ne,border:Zo(Co,So,po),outerAttrs:Fe(c),box:!0,edge:Ie,outerStyle:t?void 0:Po,bleed:jo,children:Mo||c?eo(g,{children:[Mo,c?ke(c):null,y?s(Ko,{children:e}):e]}):y?s(Ko,{children:e}):e})),Uo=e=>x?s(rt,{children:c=>Ho(e,c)}):Ho(e);if(!t){const e=C===void 0||C==="stretch",c=(F(p)!==""||E!==""||J!=="")&&!bs(w,M)&&!(wo!==""&&F(io)==="")&&(e||L(w)!==L(void 0));return Uo((o==="row"?c:o==="column"&&e)?s(Ze.Provider,{value:!0,children:Q}):Q)}const V=Ts(ae,ce),Z=Yo(uo),Xo=Z?{"--sf-box-bg":ro(h??""),"--sf-box-bg-p":ro(uo??"")}:{backgroundImage:ro(h??""),backgroundSize:"cover",backgroundPosition:"center"},Go=Js(void 0,void 0,le),f=Go.className?Go:null,oo=Xs({...r,top:i(r.top)??m.desktop,bottom:i(r.bottom)??m.desktop,topPhone:i(r.topPhone)??m.phone,bottomPhone:i(r.bottomPhone)??m.phone,left:i(r.left)??m.side,right:i(r.right)??m.side,leftPhone:i(r.leftPhone)??m.sidePhone,rightPhone:i(r.rightPhone)??m.sidePhone}),zo=s("div",{className:`relative z-[1] ${Bs} ${oo?.className??""}${u||l?` ${D}`:""}`.trimEnd(),style:V?{...oo?.style,...no,...Gs}:{...oo?.style,...no},children:Q}),Jo=jo&&j?s("div",{className:`${so} ${to}${u||l?` ${D}`:""}`,children:zo}):zo;return Uo(s(g,{children:eo("div",{className:`relative isolate overflow-hidden ${Ns}${P}${Z&&!f?` ${oe}`:""}`,style:{...z?st:{},...Po,...f?{}:Xo},...f?{[zs]:""}:{},children:[f&&eo(g,{children:[s(et,{sheet:f.sheet}),s("div",{"aria-hidden":!0,className:`absolute inset-0${z?" rounded-[inherit]":""}${Z?` ${oe}`:""} ${f.className}`,style:{...Xo,...f.style??{}}})]}),s(Ve,{wash:V,...z?{className:"rounded-[inherit]"}:{}}),V?s(Qe,{children:Jo}):Jo]})}))}export{nt as default};
@@ -1,6 +1,7 @@
1
1
  import type { ReactNode } from "react";
2
2
  import { type HeroMediaPart } from "../lib/document/hero-media-parts.js";
3
3
  import { entranceDrawn } from "../lib/animation/entrance.js";
4
+ import { type ImageTreatment } from "../../format/lib/content/image-treatment.js";
4
5
  import { type MediaLayout } from "../../format/lib/hero-media-layout.js";
5
6
  export declare function heroMediaReading(p: {
6
7
  isVideo: boolean;
@@ -22,6 +23,15 @@ export declare function heroPartEntrance(partMotion: Record<string, unknown> | u
22
23
  desktop: import("efficient-shell/ui").EntranceValue;
23
24
  phone: import("efficient-shell/ui").EntranceValue;
24
25
  } | null;
26
+ export declare function heroPartHover(partMotion: Record<string, unknown> | undefined, part: HeroMediaPart): ImageTreatment;
27
+ export declare function heroPicturesHover(partMotion: Record<string, unknown> | undefined): {
28
+ hostAttrs?: Record<string, string>;
29
+ sheet?: string;
30
+ };
31
+ export declare function HeroPictureHover({ treatment, children }: {
32
+ treatment: ImageTreatment;
33
+ children: ReactNode;
34
+ }): import("react").JSX.Element;
25
35
  export declare function HeroTint({ color, opacity, passClicks }: {
26
36
  color: string;
27
37
  opacity: number;
@@ -1 +1 @@
1
- "use client";import{jsx as r,Fragment as h,jsxs as d}from"react/jsx-runtime";import l from"./HeroPoster.js";import{SectionAnimation as m}from"./SectionAnimation.js";import{resolveMedia as u}from"../lib/media.js";import{HERO_PART_ATTR as x}from"../lib/document/hero-media-parts.js";import{entranceDrawn as P}from"../lib/animation/entrance.js";import{readPartMotion as g}from"../lib/animation/part-motion.js";import{heroPictureCount as f,normaliseMediaLayout as w,resolvePhoneLayout as v}from"../../format/lib/hero-media-layout.js";import{normaliseVideoPlayback as y,normaliseVideoSource as k,parseYouTubeId as j}from"../../format/lib/hero-video.js";import{hidableText as T}from"efficient-easel/draw";const V={one:"max-[719px]:grid-cols-1 max-[719px]:grid-rows-1",side:"max-[719px]:grid-cols-2 max-[719px]:grid-rows-1",stacked:"max-[719px]:grid-cols-1 max-[719px]:grid-rows-2"},_={one:"view-tablet:grid-cols-1 view-tablet:grid-rows-1",side:"view-tablet:grid-cols-2 view-tablet:grid-rows-1",stacked:"view-tablet:grid-cols-1 view-tablet:grid-rows-2"};function E(e){const o=e.isVideo&&k(e.videoSource)==="youtube",t=e.isVideo&&y(e.videoPlayback)==="click",i=o?j(T(e.youtubeUrl)):null,n=w(e.mediaLayout);return{fromYouTube:o,onClick:t,youTubeId:i,backgroundFile:e.isVideo&&!o&&!t,desktopLayout:n,phoneLayout:v(e.mediaLayoutPhone,n),twoPictures:!e.isVideo&&f(e)>1}}function c(e,o){return P(g({_partMotion:e},o))}function b({color:e,opacity:o,passClicks:t=!0}){return o>0?r("div",{className:t?"pointer-events-none absolute inset-0 z-[2]":"absolute inset-0 z-[2]",style:{background:e,opacity:Math.min(Math.max(o,0),100)/100}}):null}function p({part:e,editing:o,marked:t=!0,entrance:i,className:n,children:a}){const s=o&&t?{[x]:e}:void 0;return i?r(m,{desktop:i.desktop,phone:i.phone,editing:o,boxClass:n,boxAttrs:s,children:a}):r("div",{className:n,...s,children:a})}function I({partMotion:e,editing:o,children:t}){const i=c(e,"media");return i?r(m,{desktop:i.desktop,phone:i.phone,editing:o,boxClass:"absolute inset-0 z-[1]",children:t}):r(h,{children:t})}function $({desktopLayout:e,phoneLayout:o,editing:t,marked:i=!0,partMotion:n,first:a,second:s}){return d("div",{className:`absolute inset-0 z-[1] grid ${V[o]} ${_[e]}`,"data-hero-layout":e,"data-hero-layout-phone":o,children:[d(p,{part:"image",editing:t,marked:i,entrance:c(n,"image"),className:"relative overflow-hidden",children:[r(l,{posterSrc:u(a.src),showVideo:!1,objectPosition:a.objectPosition,objectPositionPhone:a.objectPositionPhone}),r(b,{color:a.tintColor,opacity:a.tintOpacity})]}),d(p,{part:"image2",editing:t,marked:i,entrance:c(n,"image2"),className:`relative overflow-hidden${o==="one"?" max-[719px]:hidden":""}${e==="one"?" view-tablet:hidden":""}`,children:[r(l,{posterSrc:u(s.src),showVideo:!1,objectPosition:s.objectPosition,objectPositionPhone:s.objectPositionPhone}),r(b,{color:s.tintColor,opacity:s.tintOpacity})]})]})}export{I as HeroMediaLayer,p as HeroPickArea,b as HeroTint,$ as HeroTwoPictures,E as heroMediaReading,c as heroPartEntrance};
1
+ "use client";import{Fragment as m,jsx as i,jsxs as l}from"react/jsx-runtime";import u from"./HeroPoster.js";import{SectionAnimation as h}from"./SectionAnimation.js";import{resolveMedia as p}from"../lib/media.js";import{HERO_MEDIA_PARTS as g,HERO_PART_ATTR as v}from"../lib/document/hero-media-parts.js";import{entranceDrawn as y}from"../lib/animation/entrance.js";import{readPartMotion as b}from"../lib/animation/part-motion.js";import{pictureHoverOf as w}from"../../format/lib/animation/hover.js";import{PHOTO_HOST_ATTR as T,SITE_PHOTO_CSS as H,resolveImageTreatment as _}from"../../format/lib/content/image-treatment.js";import{heroPictureCount as k,normaliseMediaLayout as j,resolvePhoneLayout as N}from"../../format/lib/hero-media-layout.js";import{normaliseVideoPlayback as O,normaliseVideoSource as S,parseYouTubeId as A}from"../../format/lib/hero-video.js";import{hidableText as R}from"efficient-easel/draw";const V={one:"max-[719px]:grid-cols-1 max-[719px]:grid-rows-1",side:"max-[719px]:grid-cols-2 max-[719px]:grid-rows-1",stacked:"max-[719px]:grid-cols-1 max-[719px]:grid-rows-2"},C={one:"view-tablet:grid-cols-1 view-tablet:grid-rows-1",side:"view-tablet:grid-cols-2 view-tablet:grid-rows-1",stacked:"view-tablet:grid-cols-1 view-tablet:grid-rows-2"};function q(e){const o=e.isVideo&&S(e.videoSource)==="youtube",r=e.isVideo&&O(e.videoPlayback)==="click",n=o?A(R(e.youtubeUrl)):null,t=j(e.mediaLayout);return{fromYouTube:o,onClick:r,youTubeId:n,backgroundFile:e.isVideo&&!o&&!r,desktopLayout:t,phoneLayout:N(e.mediaLayoutPhone,t),twoPictures:!e.isVideo&&k(e)>1}}function d(e,o){return y(b({_partMotion:e},o))}function c(e,o){return _(void 0,void 0,w(b({_partMotion:e},o)))}function B(e){return g.some(r=>c(e,r).className)?{hostAttrs:{[T]:""},sheet:H}:{}}function x({treatment:e,children:o}){return e.className?i("div",{className:`absolute inset-0 ${e.className}`,...e.style?{style:e.style}:{},children:o}):i(m,{children:o})}function P({color:e,opacity:o,passClicks:r=!0}){return o>0?i("div",{className:r?"pointer-events-none absolute inset-0 z-[2]":"absolute inset-0 z-[2]",style:{background:e,opacity:Math.min(Math.max(o,0),100)/100}}):null}function f({part:e,editing:o,marked:r=!0,entrance:n,className:t,children:s}){const a=o&&r?{[v]:e}:void 0;return n?i(h,{desktop:n.desktop,phone:n.phone,editing:o,boxClass:t,boxAttrs:a,children:s}):i("div",{className:t,...a,children:s})}function J({partMotion:e,editing:o,children:r}){const n=d(e,"media"),t=c(e,"media"),s=t.className?i("div",{className:`absolute inset-0 z-[1] ${t.className}`,...t.style?{style:t.style}:{},children:r}):r;return n?i(h,{desktop:n.desktop,phone:n.phone,editing:o,boxClass:"absolute inset-0 z-[1]",children:s}):i(m,{children:s})}function Q({desktopLayout:e,phoneLayout:o,editing:r,marked:n=!0,partMotion:t,first:s,second:a}){return l("div",{className:`absolute inset-0 z-[1] grid ${V[o]} ${C[e]}`,"data-hero-layout":e,"data-hero-layout-phone":o,children:[i(f,{part:"image",editing:r,marked:n,entrance:d(t,"image"),className:"relative overflow-hidden",children:l(x,{treatment:c(t,"image"),children:[i(u,{posterSrc:p(s.src),showVideo:!1,objectPosition:s.objectPosition,objectPositionPhone:s.objectPositionPhone}),i(P,{color:s.tintColor,opacity:s.tintOpacity})]})}),i(f,{part:"image2",editing:r,marked:n,entrance:d(t,"image2"),className:`relative overflow-hidden${o==="one"?" max-[719px]:hidden":""}${e==="one"?" view-tablet:hidden":""}`,children:l(x,{treatment:c(t,"image2"),children:[i(u,{posterSrc:p(a.src),showVideo:!1,objectPosition:a.objectPosition,objectPositionPhone:a.objectPositionPhone}),i(P,{color:a.tintColor,opacity:a.tintOpacity})]})})]})}export{J as HeroMediaLayer,f as HeroPickArea,x as HeroPictureHover,P as HeroTint,Q as HeroTwoPictures,q as heroMediaReading,d as heroPartEntrance,c as heroPartHover,B as heroPicturesHover};
@@ -1 +1 @@
1
- "use client";import{jsx as e,jsxs as N}from"react/jsx-runtime";import{useRef as q,useState as J}from"react";import Q from"./HeroPoster.js";import{HeroMediaLayer as W,heroMediaReading as X,HeroPickArea as Z,heroPartEntrance as ee,HeroTint as oe,HeroTwoPictures as re}from"./HeroPictures.js";import{HeroVideoBackdrop as te,HeroVideoPlayer as se}from"./HeroVideoPlay.js";import{resolveMedia as r}from"../lib/media.js";import{hasSectionHeight as ie,resolveSectionHeight as S}from"../../format/lib/content/section-height.js";import{DEFAULT_OVERLAY_POSITION as ne,overlayGradient as ae}from"../../format/lib/sections/hero-overlay.js";import{ON_MEDIA_INK_STYLE as ce}from"../../format/lib/content/ink.js";import{DEFAULT_TINT as a}from"../../format/lib/content/tint.js";function le({overlay:I=100,overlayColor:j=a,overlayPosition:k=ne,mediaType:c="image",mediaSrc:t,poster:l,objectPosition:d,objectPositionPhone:m,tintColor:f=a,tintOpacity:u=0,heightDesktop:h,heightMobile:p,boxes:v,videoSource:E,youtubeUrl:V,videoPlayback:z,mediaLayout:A,mediaLayoutPhone:M,mediaImage2:O,objectPosition2:R,objectPosition2Phone:F,tintColor2:Y=a,tintOpacity2:C=0,editing:o=!1,partMotion:s}){const y=ie(h,p),D=y?"h-[var(--sf-hero-h-m)] view-tablet:h-[var(--sf-hero-h-d)]":"h-screen min-h-[680px]",U=y?{"--sf-hero-h-d":S(h),"--sf-hero-h-m":S(p)}:void 0,i=c==="video",g=i?r(t):void 0,b=i?r(l):r(t)??r(l),{fromYouTube:x,onClick:w,youTubeId:P,backgroundFile:H,desktopLayout:B,phoneLayout:G,twoPictures:T}=X({isVideo:i,videoSource:E,videoPlayback:z,youtubeUrl:V,mediaLayout:A,mediaLayoutPhone:M}),[_,K]=J(!1),n=!_,$=q(null),L=c==="video"?"media":"image";return N("section",{ref:$,className:`relative mx-[var(--sf-hero-bleed-m,calc(50%_-_50vw))] w-[var(--sf-hero-bleed-w,100vw)] ${D} max-w-[var(--sf-hero-cap,none)] overflow-hidden`,style:U,children:[e(W,{partMotion:s,editing:o,children:T?e(re,{desktopLayout:B,phoneLayout:G,editing:o,partMotion:s,first:{src:t,objectPosition:d,objectPositionPhone:m,tintColor:f,tintOpacity:u},second:{src:O,objectPosition:R,objectPositionPhone:F,tintColor:Y,tintOpacity:C}}):N(Z,{part:L,editing:o,entrance:L==="image"?ee(s,"image"):null,className:"absolute inset-0 z-[1]",children:[e(Q,{videoSrc:H?g:void 0,posterSrc:b,showVideo:H,objectPosition:d,objectPositionPhone:m}),x&&e(te,{youTubeId:P,ownPoster:!!b,background:!w,editing:o})]})}),w&&e(se,{youTubeId:P,fileSrc:x?void 0:g,playing:_,onPlay:()=>K(!0),editing:o}),n&&!T&&e(oe,{color:f,opacity:u}),n&&e("div",{className:"pointer-events-none absolute inset-0 z-[2]",style:{background:ae(j,k),opacity:Math.min(Math.max(I,0),100)/100}}),n&&v&&e("div",{className:["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:ce,children:e(v,{className:"sf-hero-group-zone",minEmptyHeight:160})})]})}export{le as default};
1
+ "use client";import{jsx as e,jsxs as N}from"react/jsx-runtime";import{useRef as J,useState as Q}from"react";import W from"./HeroPoster.js";import{HeroMediaLayer as X,heroMediaReading as Z,HeroPickArea as ee,heroPartEntrance as oe,heroPartHover as re,HeroPictureHover as te,heroPicturesHover as se,HeroTint as ie,HeroTwoPictures as ae}from"./HeroPictures.js";import{HeroVideoBackdrop as ne,HeroVideoPlayer as ce}from"./HeroVideoPlay.js";import{resolveMedia as t}from"../lib/media.js";import{hasSectionHeight as le,resolveSectionHeight as I}from"../../format/lib/content/section-height.js";import{DEFAULT_OVERLAY_POSITION as de,overlayGradient as he}from"../../format/lib/sections/hero-overlay.js";import{ON_MEDIA_INK_STYLE as me}from"../../format/lib/content/ink.js";import{DEFAULT_TINT as c}from"../../format/lib/content/tint.js";import ue from"./PhotoHoverSheet.js";function fe({overlay:j=100,overlayColor:k=c,overlayPosition:E=de,mediaType:l="image",mediaSrc:s,poster:d,objectPosition:h,objectPositionPhone:m,tintColor:u=c,tintOpacity:f=0,heightDesktop:p,heightMobile:v,boxes:g,videoSource:A,youtubeUrl:V,videoPlayback:z,mediaLayout:O,mediaLayoutPhone:R,mediaImage2:F,objectPosition2:M,objectPosition2Phone:Y,tintColor2:C=c,tintOpacity2:D=0,editing:o=!1,partMotion:r}){const y=le(p,v),U=y?"h-[var(--sf-hero-h-m)] view-tablet:h-[var(--sf-hero-h-d)]":"h-screen min-h-[680px]",B=y?{"--sf-hero-h-d":I(p),"--sf-hero-h-m":I(v)}:void 0,i=l==="video",H=i?t(s):void 0,P=i?t(d):t(s)??t(d),{fromYouTube:b,onClick:x,youTubeId:w,backgroundFile:T,desktopLayout:G,phoneLayout:K,twoPictures:S}=Z({isVideo:i,videoSource:A,videoPlayback:z,youtubeUrl:V,mediaLayout:O,mediaLayoutPhone:R}),[_,$]=Q(!1),a=!_,q=J(null),n=l==="video"?"media":"image",L=se(r);return N("section",{ref:q,className:`relative mx-[var(--sf-hero-bleed-m,calc(50%_-_50vw))] w-[var(--sf-hero-bleed-w,100vw)] ${U} max-w-[var(--sf-hero-cap,none)] overflow-hidden`,style:B,...L.hostAttrs,children:[e(ue,{sheet:L.sheet}),e(X,{partMotion:r,editing:o,children:S?e(ae,{desktopLayout:G,phoneLayout:K,editing:o,partMotion:r,first:{src:s,objectPosition:h,objectPositionPhone:m,tintColor:u,tintOpacity:f},second:{src:F,objectPosition:M,objectPositionPhone:Y,tintColor:C,tintOpacity:D}}):e(ee,{part:n,editing:o,entrance:n==="image"?oe(r,"image"):null,className:"absolute inset-0 z-[1]",children:N(te,{treatment:n==="image"?re(r,"image"):{},children:[e(W,{videoSrc:T?H:void 0,posterSrc:P,showVideo:T,objectPosition:h,objectPositionPhone:m}),b&&e(ne,{youTubeId:w,ownPoster:!!P,background:!x,editing:o})]})})}),x&&e(ce,{youTubeId:w,fileSrc:b?void 0:H,playing:_,onPlay:()=>$(!0),editing:o}),a&&!S&&e(ie,{color:u,opacity:f}),a&&e("div",{className:"pointer-events-none absolute inset-0 z-[2]",style:{background:he(k,E),opacity:Math.min(Math.max(j,0),100)/100}}),a&&g&&e("div",{className:["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:me,children:e(g,{className:"sf-hero-group-zone",minEmptyHeight:160})})]})}export{fe as default};
@@ -1 +1 @@
1
- "use client";import{jsx as e,jsxs as j}from"react/jsx-runtime";import{createContext as te,useContext as re,useState as ie}from"react";import ae from"./HeroPoster.js";import{HeroMediaLayer as se,heroMediaReading as ne,HeroPickArea as le,heroPartEntrance as de,HeroTint as ce,HeroTwoPictures as ue}from"./HeroPictures.js";import{HeroVideoBackdrop as pe,HeroVideoPlayer as fe}from"./HeroVideoPlay.js";import{resolveMedia as i}from"../lib/media.js";import{heroPhoneStackStyle as me}from"../../format/lib/hero-phone-stack.js";import{heroTextureGradient as ye,heroTextureShown as he}from"../../format/lib/hero-texture.js";import{ON_MEDIA_INK_STYLE as xe}from"../../format/lib/content/ink.js";import{DEFAULT_TINT as I}from"../../format/lib/content/tint.js";import{overlayGradient as ge,slideOverlayState as ve}from"../../format/lib/sections/hero-overlay.js";const be=te({});function Se({name:f,process:a,mediaType:N="video",mediaSrc:s,videoSpeed:m,poster:y,objectPosition:h,objectPositionPhone:x,tintColor:g=I,tintOpacity:v=0,groups:b,editing:o=!1,themeClassName:S,themeStyle:C,overlayColor:O,overlayPosition:V,mediaLayout:D,mediaLayoutPhone:R,mediaImage2:z,objectPosition2:A,objectPosition2Phone:M,tintColor2:q=I,tintOpacity2:B=0,videoSource:F,youtubeUrl:U,videoPlayback:Y,partMotion:n}){const{alignment:we="left",textureOpacity:w,textureOn:$,textureColor:G,quietVideo:K,phoneUpDown:J,phoneSideways:Q,holdReel:W,reelHeld:X}=re(be),t=N==="video",l=t?i(s):void 0,k=t?i(y):i(s)??i(y),Z=typeof m=="number"?m/100:1,{fromYouTube:d,onClick:P,youTubeId:T,backgroundFile:c,desktopLayout:ee,phoneLayout:oe,twoPictures:H}=ne({isVideo:t,videoSource:F,videoPlayback:Y,youtubeUrl:U,mediaLayout:D,mediaLayoutPhone:R}),[u,E]=ie(!1);u&&X===!1&&E(!1);const p=!u,r=ve({overlayColor:O,overlayPosition:V},G),L=t?null:de(n,"image"),_=e(ae,{videoSrc:c?l:void 0,posterSrc:k,showVideo:c,playbackRate:Z,objectPosition:h,objectPositionPhone:t?void 0:x,quiet:K});return j("section",{className:S?`relative h-full w-full overflow-hidden ${S}`:"relative h-full w-full overflow-hidden",style:C,"data-slide-name":f??"","data-slide-process":a??"","data-slide-media":c&&l?"video":"still",children:[e(se,{partMotion:n,editing:o,children:H?e(ue,{desktopLayout:ee,phoneLayout:oe,editing:o,marked:!1,partMotion:n,first:{src:s,objectPosition:h,objectPositionPhone:x,tintColor:g,tintOpacity:v},second:{src:z,objectPosition:A,objectPositionPhone:M,tintColor:q,tintOpacity:B}}):d||L?j(le,{part:t?"media":"image",editing:o,marked:!1,entrance:L,className:"absolute inset-0 z-[1]",children:[_,d&&e(pe,{youTubeId:T,ownPoster:!!k,background:!P,editing:o})]}):_}),P&&e(fe,{youTubeId:T,fileSrc:d?void 0:l,playing:u,onPlay:()=>{E(!0),W?.()},editing:o}),p&&!H&&e(ce,{color:g,opacity:v,passClicks:!1}),p&&he($)&&e("div",{className:"absolute inset-0 z-[2]",style:{background:r.own?ge(r.color,r.position??void 0):ye(r.color),...w!==void 0?{opacity:w/100}:null}}),p&&e("div",{className:["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:{...xe,...me(J,Q)},children:b&&e(b,{className:"sf-hero-group-zone",minEmptyHeight:160})})]})}const Oe=Array.from({length:3},(f,a)=>({name:`Slide ${a+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));export{Oe as HERO_SLIDE_SEEDS,be as HeroSlideStyleContext,Se as default};
1
+ "use client";import{jsx as e,jsxs as I}from"react/jsx-runtime";import{createContext as re,useContext as ie,useState as se}from"react";import ae from"./HeroPoster.js";import{HeroMediaLayer as ne,heroMediaReading as le,HeroPickArea as de,heroPartEntrance as ce,heroPartHover as ue,HeroPictureHover as pe,heroPicturesHover as fe,HeroTint as me,HeroTwoPictures as he}from"./HeroPictures.js";import{HeroVideoBackdrop as ye,HeroVideoPlayer as ve}from"./HeroVideoPlay.js";import{resolveMedia as s}from"../lib/media.js";import{heroPhoneStackStyle as xe}from"../../format/lib/hero-phone-stack.js";import{heroTextureGradient as ge,heroTextureShown as He}from"../../format/lib/hero-texture.js";import{ON_MEDIA_INK_STYLE as Pe}from"../../format/lib/content/ink.js";import{DEFAULT_TINT as N}from"../../format/lib/content/tint.js";import{overlayGradient as Se,slideOverlayState as be}from"../../format/lib/sections/hero-overlay.js";import we from"./PhotoHoverSheet.js";const ke=re({});function Te({name:f,process:a,mediaType:C="video",mediaSrc:n,videoSpeed:m,poster:h,objectPosition:y,objectPositionPhone:v,tintColor:x=N,tintOpacity:g=0,groups:H,editing:t=!1,themeClassName:P,themeStyle:O,overlayColor:V,overlayPosition:A,mediaLayout:D,mediaLayoutPhone:R,mediaImage2:z,objectPosition2:q,objectPosition2Phone:B,tintColor2:F=N,tintOpacity2:M=0,videoSource:U,youtubeUrl:Y,videoPlayback:$,partMotion:r}){const{alignment:Ee="left",textureOpacity:S,textureOn:G,textureColor:K,quietVideo:J,phoneUpDown:Q,phoneSideways:W,holdReel:X,reelHeld:Z}=ie(ke),o=C==="video",l=o?s(n):void 0,b=o?s(h):s(n)??s(h),ee=typeof m=="number"?m/100:1,{fromYouTube:d,onClick:w,youTubeId:k,backgroundFile:c,desktopLayout:oe,phoneLayout:te,twoPictures:T}=le({isVideo:o,videoSource:U,videoPlayback:$,youtubeUrl:Y,mediaLayout:D,mediaLayoutPhone:R}),[u,E]=se(!1);u&&Z===!1&&E(!1);const p=!u,i=be({overlayColor:V,overlayPosition:A},K),L=o?null:ce(r,"image"),_=fe(r),j=e(pe,{treatment:o?{}:ue(r,"image"),children:e(ae,{videoSrc:c?l:void 0,posterSrc:b,showVideo:c,playbackRate:ee,objectPosition:y,objectPositionPhone:o?void 0:v,quiet:J})});return I("section",{className:P?`relative h-full w-full overflow-hidden ${P}`:"relative h-full w-full overflow-hidden",style:O,"data-slide-name":f??"","data-slide-process":a??"","data-slide-media":c&&l?"video":"still",..._.hostAttrs,children:[e(we,{sheet:_.sheet}),e(ne,{partMotion:r,editing:t,children:T?e(he,{desktopLayout:oe,phoneLayout:te,editing:t,marked:!1,partMotion:r,first:{src:n,objectPosition:y,objectPositionPhone:v,tintColor:x,tintOpacity:g},second:{src:z,objectPosition:q,objectPositionPhone:B,tintColor:F,tintOpacity:M}}):d||L?I(de,{part:o?"media":"image",editing:t,marked:!1,entrance:L,className:"absolute inset-0 z-[1]",children:[j,d&&e(ye,{youTubeId:k,ownPoster:!!b,background:!w,editing:t})]}):j}),w&&e(ve,{youTubeId:k,fileSrc:d?void 0:l,playing:u,onPlay:()=>{E(!0),X?.()},editing:t}),p&&!T&&e(me,{color:x,opacity:g,passClicks:!1}),p&&He(G)&&e("div",{className:"absolute inset-0 z-[2]",style:{background:i.own?Se(i.color,i.position??void 0):ge(i.color),...S!==void 0?{opacity:S/100}:null}}),p&&e("div",{className:["sf-hero-group-layer absolute inset-0 z-[3] mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14",t?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{...Pe,...xe(Q,W)},children:H&&e(H,{className:"sf-hero-group-zone",minEmptyHeight:160})})]})}const qe=Array.from({length:3},(f,a)=>({name:`Slide ${a+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));export{qe as HERO_SLIDE_SEEDS,ke as HeroSlideStyleContext,Te as default};
@@ -1,4 +1,5 @@
1
1
  import { type ImageFit } from "../../format/lib/content/image-fit.js";
2
+ import type { PictureHoverDrawn } from "../../format/lib/animation/hover.js";
2
3
  import type { PadValues } from "../lib/content/section-padding.js";
3
4
  type Aspect = "auto" | "21/9" | "16/9" | "4/3" | "1/1";
4
5
  interface ImageBlockProps {
@@ -9,6 +10,10 @@ interface ImageBlockProps {
9
10
  caption?: string;
10
11
  contained: boolean;
11
12
  grayscale?: boolean;
13
+ pictureHover?: PictureHoverDrawn;
14
+ nextSrc?: string;
15
+ darken?: number;
16
+ darkenStyle?: string;
12
17
  href?: string;
13
18
  fit?: ImageFit;
14
19
  focal?: string;
@@ -18,5 +23,5 @@ interface ImageBlockProps {
18
23
  pad?: PadValues;
19
24
  ownSize?: boolean;
20
25
  }
21
- export default function ImageBlock({ src, alt, aspect, contained, grayscale, href, fit, focal, focalPhone, corners, cornerSides, pad, ownSize, editing, }: ImageBlockProps): import("react").JSX.Element | null;
26
+ export default function ImageBlock({ src, alt, aspect, contained, grayscale, pictureHover, nextSrc, darken, darkenStyle, href, fit, focal, focalPhone, corners, cornerSides, pad, ownSize, editing, }: ImageBlockProps): import("react").JSX.Element | null;
22
27
  export {};