efficient-web-builder 69.3.0 → 69.5.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 (81) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/dist/editor/components/StandaloneSectionEditor.js +1 -1
  3. package/dist/editor/components/WebsiteScreenParts.js +1 -1
  4. package/dist/editor/lib/document/blocks/general/HeroSingle/fields.js +1 -1
  5. package/dist/editor/lib/document/blocks/general/HeroSlide/fields.js +1 -1
  6. package/dist/editor/lib/document/blocks/general/ProcessSteps/fields.js +1 -1
  7. package/dist/editor/lib/document/blocks/general/index.d.ts +2 -2
  8. package/dist/editor/lib/document/blocks/hero-shared-fields.d.ts +19 -0
  9. package/dist/editor/lib/document/blocks/hero-shared-fields.js +1 -1
  10. package/dist/editor/lib/document/controls.d.ts +9 -1
  11. package/dist/editor/lib/document/controls.js +1 -1
  12. package/dist/editor/lib/host-document-bridge.js +1 -1
  13. package/dist/editor/lib/sections/city-presets.d.ts +1 -1
  14. package/dist/editor/lib/sections/city-presets.js +1 -1
  15. package/dist/editor/lib/sections/hero-ticker-to-strip.js +1 -1
  16. package/dist/editor/lib/sections/insert-box-path.d.ts +8 -0
  17. package/dist/editor/lib/sections/insert-box-path.js +1 -0
  18. package/dist/editor/lib/sections/menu-presets.d.ts +2 -0
  19. package/dist/editor/lib/sections/menu-presets.js +1 -0
  20. package/dist/format/lib/content/card-row-keys.d.ts +5 -0
  21. package/dist/format/lib/content/card-row-keys.js +1 -0
  22. package/dist/format/lib/content/card-template.d.ts +1 -6
  23. package/dist/format/lib/content/card-template.js +1 -1
  24. package/dist/format/lib/content/picture-focus-rows.js +1 -1
  25. package/dist/format/lib/document/article-body-seed.js +1 -1
  26. package/dist/format/lib/document/blocks/general/CardList/item-seed.js +1 -1
  27. package/dist/format/lib/document/blocks/general/Cards/card-seed.d.ts +2 -1
  28. package/dist/format/lib/document/blocks/general/Cards/card-seed.js +1 -1
  29. package/dist/format/lib/document/blocks/general/FAQ/card-seed.d.ts +1 -0
  30. package/dist/format/lib/document/blocks/general/FAQ/card-seed.js +1 -1
  31. package/dist/format/lib/document/blocks/general/Footprint/card-seed.d.ts +1 -0
  32. package/dist/format/lib/document/blocks/general/Footprint/card-seed.js +1 -1
  33. package/dist/format/lib/document/blocks/general/HeroSingle/meta.js +1 -1
  34. package/dist/format/lib/document/blocks/general/HeroSlide/meta.js +1 -1
  35. package/dist/format/lib/document/blocks/general/Logos/card-seed.d.ts +1 -0
  36. package/dist/format/lib/document/blocks/general/Logos/card-seed.js +1 -1
  37. package/dist/format/lib/document/blocks/general/OrderSummary/block-type.d.ts +1 -0
  38. package/dist/format/lib/document/blocks/general/OrderSummary/block-type.js +1 -0
  39. package/dist/format/lib/document/blocks/general/ProcessSteps/row-seed.d.ts +1 -0
  40. package/dist/format/lib/document/blocks/general/ProcessSteps/row-seed.js +1 -1
  41. package/dist/format/lib/document/cap-hero-groups.js +1 -1
  42. package/dist/format/lib/document/card-content-switch.js +1 -1
  43. package/dist/format/lib/document/cards-template-on-read.js +1 -1
  44. package/dist/format/lib/document/media-manifest.json +2 -1
  45. package/dist/format/lib/document/node-lists.d.ts +1 -0
  46. package/dist/format/lib/document/node-lists.js +1 -1
  47. package/dist/format/lib/document/renamed-props.js +1 -1
  48. package/dist/format/lib/document/section-catalog.js +19 -3
  49. package/dist/format/lib/document/seed-parts.d.ts +3 -0
  50. package/dist/format/lib/document/seed-parts.js +1 -1
  51. package/dist/format/lib/editor-words-kept.js +1 -1
  52. package/dist/format/lib/hero-media-layout.d.ts +12 -0
  53. package/dist/format/lib/hero-media-layout.js +1 -1
  54. package/dist/format/lib/sections/hero-single-to-hero.js +1 -1
  55. package/dist/format/lib/source-rules/editor-words.js +1 -1
  56. package/dist/format/lib/source-rules/no-glyph-rows.js +4 -4
  57. package/dist/format/lib/source-rules/one-node-list-loop.d.ts +6 -0
  58. package/dist/format/lib/source-rules/one-node-list-loop.js +1 -0
  59. package/dist/format/lib/source-rules/one-node-list.js +1 -1
  60. package/dist/format/lib/source-rules/one-seed-id-home.d.ts +6 -0
  61. package/dist/format/lib/source-rules/one-seed-id-home.js +1 -0
  62. package/dist/format/lib/source-rules/page-picture-place.js +3 -3
  63. package/dist/format/lib/source-rules/reduced-motion.js +8 -8
  64. package/dist/format/lib/source-rules/support/css-length.js +1 -1
  65. package/dist/format/lib/source-rules/support/css-rules.js +1 -1
  66. package/dist/format/lib/source-rules/support/label-extraction.js +5 -5
  67. package/dist/format/lib/source-rules/support/ts-source.js +3 -3
  68. package/dist/render/components/HeroSingle.d.ts +2 -1
  69. package/dist/render/components/HeroSingle.js +1 -1
  70. package/dist/render/components/HeroSlide.d.ts +2 -1
  71. package/dist/render/components/HeroSlide.js +1 -1
  72. package/dist/render/lib/document/blocks/general/HeroSingle/render.js +1 -1
  73. package/dist/render/lib/document/blocks/general/HeroSlide/render.js +1 -1
  74. package/dist/render/lib/document/blocks/general/section-to-box-rows-editorial.js +1 -1
  75. package/dist/render/lib/document/blocks/general/section-to-box-rows-locations.d.ts +1 -0
  76. package/dist/render/lib/document/blocks/general/section-to-box-rows-locations.js +1 -1
  77. package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
  78. package/dist/render/lib/document/hero-media-parts.d.ts +6 -4
  79. package/dist/render/lib/document/hero-media-parts.js +1 -1
  80. package/dist/render/lib/sections/section-to-box.js +1 -1
  81. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
- import{isRuleSource as C,ruleChecks as I}from"./rule.js";import{stripCommentsAndStrings as O}from"./support/css-source.js";import{stripComments as S}from"./support/ts-source.js";const R=["all","transform","translate","rotate","scale","top","right","bottom","left","inset","margin","padding","width","height","max-height","max-width","min-height","min-width","gap","flex","flex-basis","grid-template-columns","grid-template-rows","background-position","object-position","offset-distance"],D=["opacity","color","background-color","border-color"],x=/\bbehaviou?r\s*:\s*["'`]smooth["'`]/,N=/\b(transition|animation)[a-z-]*\s*:[^;]*!important/i;function $(n){const o=n.search(/@media[^{]*prefers-reduced-motion\s*:\s*reduce/);if(o<0)return null;let e=0;const d=[];let r="";for(let c=0;c<o;c++){const t=n[c];if(t==="{"){const i=/^@layer\b/.test(r.trim());d.push(i),i&&e++,r=""}else t==="}"?(d.pop()&&e--,r=""):t===";"?r="":r+=t}const m=n.indexOf("{",o);if(m<0)return null;let u=0,g=-1;for(let c=m;c<n.length;c++)if(n[c]==="{")u++;else if(n[c]==="}"&&--u===0){g=c;break}if(g<0)return null;const s=n.slice(m+1,g),y=s.indexOf("{"),b=s.lastIndexOf("}");return y<0||b<0?null:{body:s,selector:s.slice(0,y).trim().replace(/\s+/g," "),decls:s.slice(y+1,b),unlayered:e===0}}function p(n,o){const e=new RegExp(`(?:^|;)\\s*${o}\\s*:([^;]*)`,"i"),d=n.match(e);return d?d[1].replace(/!important/i,"").trim().replace(/\s+/g," "):null}function j(n){const o=S(n.text),e=[];for(const[d,r]of o.split(`
2
- `).entries())x.test(r)&&e.push({file:n.path,line:d+1,text:r.trim()});return e}function B(n,o){const e=O(n.text),d=o?e.replace(o,""):e,r=[];for(const[m,u]of d.split(`
3
- `).entries())N.test(u)&&r.push(`${n.path}:${m+1} ${u.trim()}`);return r}function L(n,o){const{check:e,report:d}=I("reduced motion"),r=o.editorOnly??{},m=new Map(n.map(t=>[t.path,t]));{e("a rule that exists only in a comment is NOT counted",$(O(`/* the site should have a @media (prefers-reduced-motion: reduce) rule */
4
- a { color: red; }`))===null);const i="@media (prefers-reduced-motion: reduce) { * { animation-duration: 1ms !important; } }";e("the layer check fails on a layered copy and passes on an unlayered one",$(i)?.unlayered===!0&&$(`@layer base { ${i} }`)?.unlayered===!1&&$(`@layer base { a { color: red; } } ${i}`)?.unlayered===!0),e("valueOf reads a declaration and drops !important",p("animation-duration: 1ms !important;","animation-duration")==="1ms"&&p("transition-property: opacity, color !important;","transition-property")==="opacity, color"&&p("animation-duration: 1ms;","animation")===null&&p("scroll-behavior: auto;","animation-delay")===null);const a=f=>(f??"").split(",").map(v=>v.trim()),h=a(p("transition-property: opacity, transform !important;","transition-property")),w=a(p("transition-property: opacity, color !important;","transition-property"));e("the moving-property check fails on a copy that lets transform through, and passes a fade-only list",h.some(f=>R.includes(f))&&!w.some(f=>R.includes(f))),e("the !important scan flags a motion declaration and not one in a comment",B({path:"fixture.css",text:`/* transition: x !important */
1
+ import{isRuleSource as C,ruleChecks as I}from"./rule.js";import{stripCommentsAndStrings as O}from"./support/css-source.js";import{stripComments as S}from"./support/ts-source.js";import{blockEnd as D}from"./support/css-rules.js";const R=["all","transform","translate","rotate","scale","top","right","bottom","left","inset","margin","padding","width","height","max-height","max-width","min-height","min-width","gap","flex","flex-basis","grid-template-columns","grid-template-rows","background-position","object-position","offset-distance"],N=["opacity","color","background-color","border-color"],x=/\bbehaviou?r\s*:\s*["'`]smooth["'`]/,A=/\b(transition|animation)[a-z-]*\s*:[^;]*!important/i;function $(n){const o=n.search(/@media[^{]*prefers-reduced-motion\s*:\s*reduce/);if(o<0)return null;let e=0;const h=[];let r="";for(let y=0;y<o;y++){const g=n[y];if(g==="{"){const t=/^@layer\b/.test(r.trim());h.push(t),t&&e++,r=""}else g==="}"?(h.pop()&&e--,r=""):g===";"?r="":r+=g}const d=n.indexOf("{",o);if(d<0)return null;const p=D(n,d);if(p>=n.length)return null;const u=n.slice(d+1,p),s=u.indexOf("{"),b=u.lastIndexOf("}");return s<0||b<0?null:{body:u,selector:u.slice(0,s).trim().replace(/\s+/g," "),decls:u.slice(s+1,b),unlayered:e===0}}function m(n,o){const e=new RegExp(`(?:^|;)\\s*${o}\\s*:([^;]*)`,"i"),h=n.match(e);return h?h[1].replace(/!important/i,"").trim().replace(/\s+/g," "):null}function j(n){const o=S(n.text),e=[];for(const[h,r]of o.split(`
2
+ `).entries())x.test(r)&&e.push({file:n.path,line:h+1,text:r.trim()});return e}function B(n,o){const e=O(n.text),h=o?e.replace(o,""):e,r=[];for(const[d,p]of h.split(`
3
+ `).entries())A.test(p)&&r.push(`${n.path}:${d+1} ${p.trim()}`);return r}function U(n,o){const{check:e,report:h}=I("reduced motion"),r=o.editorOnly??{},d=new Map(n.map(t=>[t.path,t]));{e("a rule that exists only in a comment is NOT counted",$(O(`/* the site should have a @media (prefers-reduced-motion: reduce) rule */
4
+ a { color: red; }`))===null);const i="@media (prefers-reduced-motion: reduce) { * { animation-duration: 1ms !important; } }";e("the layer check fails on a layered copy and passes on an unlayered one",$(i)?.unlayered===!0&&$(`@layer base { ${i} }`)?.unlayered===!1&&$(`@layer base { a { color: red; } } ${i}`)?.unlayered===!0),e("valueOf reads a declaration and drops !important",m("animation-duration: 1ms !important;","animation-duration")==="1ms"&&m("transition-property: opacity, color !important;","transition-property")==="opacity, color"&&m("animation-duration: 1ms;","animation")===null&&m("scroll-behavior: auto;","animation-delay")===null);const a=f=>(f??"").split(",").map(v=>v.trim()),c=a(m("transition-property: opacity, transform !important;","transition-property")),w=a(m("transition-property: opacity, color !important;","transition-property"));e("the moving-property check fails on a copy that lets transform through, and passes a fade-only list",c.some(f=>R.includes(f))&&!w.some(f=>R.includes(f))),e("the !important scan flags a motion declaration and not one in a comment",B({path:"fixture.css",text:`/* transition: x !important */
5
5
  a { transition: opacity 1s !important; }`},null).length===1),e("the smooth-scroll regex bites, both ways",x.test('el.scrollIntoView({ behavior: "smooth" })')&&x.test("window.scrollTo({ top: 0, behavior: 'smooth' })")&&!x.test("el.scrollIntoView({ behavior: scrollBehavior() })")&&!x.test('window.scrollTo({ top: 0, behavior: "auto" })')),e("a commented example is not a breach",j({path:"fixture.ts",text:`// behavior: "smooth" in a comment
6
- const a = 1;`}).length===0)}const u=n.filter(t=>t.path.endsWith(".css")),g=n.filter(t=>/\.tsx?$/.test(t.path)&&!t.path.endsWith(".d.ts")&&!C(t.path));let s=null;if(o.globalSheet!==void 0){const t=m.get(o.globalSheet),i=t?O(t.text):"";s=$(i);const a=o.globalSheet;e(`${a} was actually read`,i.length>1e4,`expected the real stylesheet, got ${i.length} chars`),e(`${a} has a real prefers-reduced-motion rule, not just prose about one`,s!==null&&s.decls.trim().length>0,"no `@media (prefers-reduced-motion: reduce)` block once comments are stripped, or it is empty. Before this rule landed the sheet's ONLY match for that string was a comment, which is the state this asserts is over."),e("the rule is UNLAYERED, so Tailwind's utilities cannot outrank it",s?.unlayered===!0,"the reduced-motion rule sits inside an @layer. Tailwind's utilities live in a later layer, so every `transition-*` class would beat it and the site would move for everyone, with nothing to show for it.");const h=s?.selector??"";e("the rule applies to every element and both generated boxes",/\*/.test(h)&&/::before/.test(h)&&/::after/.test(h),`selector \`${h}\` — it must start from \`*\` (a narrower one covers only what somebody remembered) and cover \`::before\` and \`::after\`: a generated box animates like any other`);const w=(s?.decls??"").split(";").map(l=>l.trim()).filter(l=>l.length>0),f=w.filter(l=>!/!important\s*$/i.test(l)).map(l=>l.split(":")[0].trim());e("every declaration carries !important",w.length>=4&&f.length===0,`${w.length} declaration(s), without !important: ${f.join(", ")||"(none)"}. Being unlayered beats Tailwind, but not the unlayered class rules in the same sheet and not an inline style.`);const v=p(s?.decls??"","transition-property"),E=(v??"").split(",").map(l=>l.trim().toLowerCase()),T=E.filter(l=>R.includes(l));e("the transition allow-list lets nothing move",v!==null&&T.length===0,v===null?"the rule must set `transition-property` — that is how movement is sorted from fades":`movement is back on the allow-list: ${T.join(", ")}. Anything on that list still animates for a visitor who asked for no motion.`);const M=D.filter(l=>!E.includes(l));e("the transition allow-list still lets fades through",M.length===0,`\`${M.join("`, `")}\` must stay transitionable. A fade carries no movement, helps people follow what changed, and harms nobody — dropping it is the crude rule this one was written instead of.`);const k=p(s?.decls??"","animation-duration");e("animations are collapsed to a short NON-ZERO time",k!==null&&/^(0?\.\d+|[1-9]\d*)m?s$/.test(k),`animation-duration is \`${k}\`; the rule must cap it (CSS cannot sort a keyframe list by what it moves), and exactly 0s stops \`animationend\` firing in some engines and hangs any component waiting on it.`),e("a loop that still repeats is still a loop: animation-iteration-count is 1",p(s?.decls??"","animation-iteration-count")==="1"),e("animations are not collapsed with `animation: none`, which can hide content",p(s?.decls??"","animation")===null,"an element whose static styles are invisible, made visible by a `forwards` fill, would never appear. Run the animation to its end instead."),e("a scroll the visitor did not ask for is movement too: scroll-behavior is auto",p(s?.decls??"","scroll-behavior")==="auto","the sheet sets `scroll-behavior: smooth` on html inside @layer base; this must turn it off."),e("the escape hatch exists and is spelled the one way",/\[data-motion-keep\]/.test(h),"the exemption attribute must appear in the selector, so one grep finds every exception.")}for(const t of o.stylesheets??[])e(`read the stylesheet ${t}`,m.has(t)&&t.endsWith(".css"));const y=u.flatMap(t=>B(t,t.path===o.globalSheet&&s?s.body:null));e(`nothing in the stylesheets can outrank the rule (${u.length} sheet(s))`,u.length>0&&y.length===0,u.length===0?"read no stylesheet — this check is not measuring anything":`!important motion declaration(s) outside the reduced-motion rule:
7
- `+y.join(`
8
- `)),e(`read the scripts (${g.length} .ts/.tsx files, at least ${o.minScripts})`,g.length>=o.minScripts);const b=g.flatMap(j),c=b.filter(t=>!(t.file in r));e("no shopper-facing code hard-codes a smooth scroll",c.length===0,'an explicit `behavior: "smooth"` beats the stylesheet, so this scroll animates for a visitor who asked for no motion:\n '+c.map(t=>`${t.file}:${t.line} ${t.text}`).join(`
9
- `)+"\n Call `scrollBehavior()` from components/useReducedMotion.ts instead. It still scrolls — it just arrives instead of travelling.");for(const[t,i]of Object.entries(r)){const a=m.get(t);e(`the editor waiver is still real: ${t} (${i})`,!!a&&/editor/i.test(a.text.slice(0,400))&&b.some(h=>h.file===t),a?"its own opening no longer says it is the editor's, or it no longer holds the literal — the waiver covers nothing":"the file is gone — remove the stale entry")}for(const[t,i]of Object.entries(o.askingSites??{})){const a=m.get(t),h=a?(S(a.text).match(/behaviou?r:\s*scrollBehavior\(\)/g)??[]).length:-1;e(`${t} still asks scrollBehavior() ${i} time(s)`,h===i,a?`found ${h}. A shopper-facing scroll stopped asking — if a site was deliberately removed, change the number and say which.`:"the file is gone")}if(o.hook!==void 0){const t=m.get(o.hook),i=t?S(t.text):"";e(`${o.hook} exports scrollBehavior()`,/export function scrollBehavior\(\)/.test(i)),e(`${o.hook} names the media query once and shares it`,/export const REDUCED_MOTION_QUERY/.test(i),"the media query must be named once and shared, not typed out per reader");const a=(i.match(/prefers-reduced-motion/g)??[]).length;e(`the query string appears exactly once in ${o.hook}`,a===1,`it appears ${a} times. Two spellings of the same question can disagree; there must be exactly one.`)}return d()}export{x as HARD_CODED_SMOOTH,R as MOVING_PROPERTIES,D as REQUIRED_FADES,j as hardCodedSmoothScrolls,$ as readReduceBlock,L as reducedMotion,p as valueOf};
6
+ const a = 1;`}).length===0)}const p=n.filter(t=>t.path.endsWith(".css")),u=n.filter(t=>/\.tsx?$/.test(t.path)&&!t.path.endsWith(".d.ts")&&!C(t.path));let s=null;if(o.globalSheet!==void 0){const t=d.get(o.globalSheet),i=t?O(t.text):"";s=$(i);const a=o.globalSheet;e(`${a} was actually read`,i.length>1e4,`expected the real stylesheet, got ${i.length} chars`),e(`${a} has a real prefers-reduced-motion rule, not just prose about one`,s!==null&&s.decls.trim().length>0,"no `@media (prefers-reduced-motion: reduce)` block once comments are stripped, or it is empty. Before this rule landed the sheet's ONLY match for that string was a comment, which is the state this asserts is over."),e("the rule is UNLAYERED, so Tailwind's utilities cannot outrank it",s?.unlayered===!0,"the reduced-motion rule sits inside an @layer. Tailwind's utilities live in a later layer, so every `transition-*` class would beat it and the site would move for everyone, with nothing to show for it.");const c=s?.selector??"";e("the rule applies to every element and both generated boxes",/\*/.test(c)&&/::before/.test(c)&&/::after/.test(c),`selector \`${c}\` — it must start from \`*\` (a narrower one covers only what somebody remembered) and cover \`::before\` and \`::after\`: a generated box animates like any other`);const w=(s?.decls??"").split(";").map(l=>l.trim()).filter(l=>l.length>0),f=w.filter(l=>!/!important\s*$/i.test(l)).map(l=>l.split(":")[0].trim());e("every declaration carries !important",w.length>=4&&f.length===0,`${w.length} declaration(s), without !important: ${f.join(", ")||"(none)"}. Being unlayered beats Tailwind, but not the unlayered class rules in the same sheet and not an inline style.`);const v=m(s?.decls??"","transition-property"),E=(v??"").split(",").map(l=>l.trim().toLowerCase()),T=E.filter(l=>R.includes(l));e("the transition allow-list lets nothing move",v!==null&&T.length===0,v===null?"the rule must set `transition-property` — that is how movement is sorted from fades":`movement is back on the allow-list: ${T.join(", ")}. Anything on that list still animates for a visitor who asked for no motion.`);const M=N.filter(l=>!E.includes(l));e("the transition allow-list still lets fades through",M.length===0,`\`${M.join("`, `")}\` must stay transitionable. A fade carries no movement, helps people follow what changed, and harms nobody — dropping it is the crude rule this one was written instead of.`);const k=m(s?.decls??"","animation-duration");e("animations are collapsed to a short NON-ZERO time",k!==null&&/^(0?\.\d+|[1-9]\d*)m?s$/.test(k),`animation-duration is \`${k}\`; the rule must cap it (CSS cannot sort a keyframe list by what it moves), and exactly 0s stops \`animationend\` firing in some engines and hangs any component waiting on it.`),e("a loop that still repeats is still a loop: animation-iteration-count is 1",m(s?.decls??"","animation-iteration-count")==="1"),e("animations are not collapsed with `animation: none`, which can hide content",m(s?.decls??"","animation")===null,"an element whose static styles are invisible, made visible by a `forwards` fill, would never appear. Run the animation to its end instead."),e("a scroll the visitor did not ask for is movement too: scroll-behavior is auto",m(s?.decls??"","scroll-behavior")==="auto","the sheet sets `scroll-behavior: smooth` on html inside @layer base; this must turn it off."),e("the escape hatch exists and is spelled the one way",/\[data-motion-keep\]/.test(c),"the exemption attribute must appear in the selector, so one grep finds every exception.")}for(const t of o.stylesheets??[])e(`read the stylesheet ${t}`,d.has(t)&&t.endsWith(".css"));const b=p.flatMap(t=>B(t,t.path===o.globalSheet&&s?s.body:null));e(`nothing in the stylesheets can outrank the rule (${p.length} sheet(s))`,p.length>0&&b.length===0,p.length===0?"read no stylesheet — this check is not measuring anything":`!important motion declaration(s) outside the reduced-motion rule:
7
+ `+b.join(`
8
+ `)),e(`read the scripts (${u.length} .ts/.tsx files, at least ${o.minScripts})`,u.length>=o.minScripts);const y=u.flatMap(j),g=y.filter(t=>!(t.file in r));e("no shopper-facing code hard-codes a smooth scroll",g.length===0,'an explicit `behavior: "smooth"` beats the stylesheet, so this scroll animates for a visitor who asked for no motion:\n '+g.map(t=>`${t.file}:${t.line} ${t.text}`).join(`
9
+ `)+"\n Call `scrollBehavior()` from components/useReducedMotion.ts instead. It still scrolls — it just arrives instead of travelling.");for(const[t,i]of Object.entries(r)){const a=d.get(t);e(`the editor waiver is still real: ${t} (${i})`,!!a&&/editor/i.test(a.text.slice(0,400))&&y.some(c=>c.file===t),a?"its own opening no longer says it is the editor's, or it no longer holds the literal — the waiver covers nothing":"the file is gone — remove the stale entry")}for(const[t,i]of Object.entries(o.askingSites??{})){const a=d.get(t),c=a?(S(a.text).match(/behaviou?r:\s*scrollBehavior\(\)/g)??[]).length:-1;e(`${t} still asks scrollBehavior() ${i} time(s)`,c===i,a?`found ${c}. A shopper-facing scroll stopped asking — if a site was deliberately removed, change the number and say which.`:"the file is gone")}if(o.hook!==void 0){const t=d.get(o.hook),i=t?S(t.text):"";e(`${o.hook} exports scrollBehavior()`,/export function scrollBehavior\(\)/.test(i)),e(`${o.hook} names the media query once and shares it`,/export const REDUCED_MOTION_QUERY/.test(i),"the media query must be named once and shared, not typed out per reader");const a=(i.match(/prefers-reduced-motion/g)??[]).length;e(`the query string appears exactly once in ${o.hook}`,a===1,`it appears ${a} times. Two spellings of the same question can disagree; there must be exactly one.`)}return h()}export{x as HARD_CODED_SMOOTH,R as MOVING_PROPERTIES,N as REQUIRED_FADES,j as hardCodedSmoothScrolls,$ as readReduceBlock,U as reducedMotion,m as valueOf};
@@ -1 +1 @@
1
- function d(r,u){let e=r;for(let o=0;o<32;o++){const i=e.lastIndexOf("var(");if(i===-1)return e;let l=0,a=-1;for(let c=i+3;c<e.length;c++)if(e[c]==="(")l++;else if(e[c]===")"&&(l--,l===0)){a=c;break}if(a===-1)throw new Error(`unbalanced var() in: ${r}`);const n=e.slice(i+4,a),t=n.indexOf(","),s=(t===-1?n:n.slice(0,t)).trim(),m=t===-1?"":n.slice(t+1).trim(),f=u[s]??m;if(!f)throw new Error(`var ${s} unset with no fallback in: ${r}`);e=e.slice(0,i)+f+e.slice(a+1)}throw new Error(`var() resolution did not converge: ${r}`)}function h(r,u,e={}){const o=d(r,e).replace(/([\d.]+)rem/g,(n,t)=>`(${Number(t)*16})`).replace(/([\d.]+)px/g,"($1)").replace(/([\d.]+)vw/g,`($1*${u}/100)`);if(!/^[\d\s+*/().,a-z-]+$/i.test(o))throw new Error(`unexpected chars: ${o}`);const a=new Function("calc","min","max","clamp",`return (${o});`)(n=>n,Math.min,Math.max,(n,t,s)=>Math.max(n,Math.min(t,s)));if(!Number.isFinite(a))throw new Error(`did not evaluate to a number: ${r}`);return Math.round(a*100)/100}export{h as evalLength,d as resolveVars};
1
+ import{blockEnd as u}from"./css-rules.js";function d(t,l){let n=t;for(let o=0;o<32;o++){const c=n.lastIndexOf("var(");if(c===-1)return n;const i=u(n,c+3);if(i>=n.length)throw new Error(`unbalanced var() in: ${t}`);const r=n.slice(c+4,i),e=r.indexOf(","),a=(e===-1?r:r.slice(0,e)).trim(),s=e===-1?"":r.slice(e+1).trim(),m=l[a]??s;if(!m)throw new Error(`var ${a} unset with no fallback in: ${t}`);n=n.slice(0,c)+m+n.slice(i+1)}throw new Error(`var() resolution did not converge: ${t}`)}function h(t,l,n={}){const o=d(t,n).replace(/([\d.]+)rem/g,(e,a)=>`(${Number(a)*16})`).replace(/([\d.]+)px/g,"($1)").replace(/([\d.]+)vw/g,`($1*${l}/100)`);if(!/^[\d\s+*/().,a-z-]+$/i.test(o))throw new Error(`unexpected chars: ${o}`);const r=new Function("calc","min","max","clamp",`return (${o});`)(e=>e,Math.min,Math.max,(e,a,s)=>Math.max(e,Math.min(a,s)));if(!Number.isFinite(r))throw new Error(`did not evaluate to a number: ${t}`);return Math.round(r*100)/100}export{h as evalLength,d as resolveVars};
@@ -1 +1 @@
1
- function m(e,n){let t=0;for(let i=n;i<e.length;i+=1)if(e[i]==="{")t+=1;else if(e[i]==="}"&&(t-=1,t===0))return i;return e.length}function p(e,n=null,t=[],i=null){if(i!==null){const s=g(e);s.trim()&&t.push({media:n,selector:i,decls:s})}let r=0;for(;r<e.length;){const s=e.indexOf("{",r);if(s===-1)break;const o=m(e,s);let c=r;for(let u=s;u>r;u-=1)if(";}".includes(e[u-1])){c=u;break}const l=e.slice(c,s).trim(),f=e.slice(s+1,o);l.startsWith("@media")?p(f,h(n,l),t,i):l.startsWith("@")?p(f,n,t,i):l&&p(f,n,t,l),r=o+1}return t}function h(e,n){const t=n.replace(/^@media\s*/,"").trim();return e===null?`@media ${t}`:`${e} and ${t}`}function g(e){let n="",t=0;for(;t<e.length;){const i=e.indexOf("{",t);if(i===-1){n+=e.slice(t);break}let r=i;for(;r>t&&!";}".includes(e[r-1]);)r-=1;n+=e.slice(t,r),t=m(e,i)+1}return n}function d(e,n){if(!e)return!0;const i=e.replace(/^@media\s*/,"").trim().split(/\s+and\s+/).map(r=>r.trim());for(const r of i){const s=/^\(\s*max-width:\s*([\d.]+)(px|rem)\s*\)$/.exec(r),o=/^\(\s*min-width:\s*([\d.]+)(px|rem)\s*\)$/.exec(r),c=/^\(\s*width\s*(<=|>=|<|>)\s*([\d.]+)(px|rem)\s*\)$/.exec(r),l=/^\(\s*([\d.]+)(px|rem)\s*(<=|>=|<|>)\s*width\s*\)$/.exec(r);if(s){if(n>a(s[1],s[2]))return!1}else if(o){if(n<a(o[1],o[2]))return!1}else if(c){if(!x(n,c[1],a(c[2],c[3])))return!1}else if(l){const f={"<":">",">":"<","<=":">=",">=":"<="}[l[3]];if(!x(n,f,a(l[1],l[2])))return!1}else return!1}return!0}const $=16;function a(e,n){return n==="rem"?Number(e)*$:Number(e)}function x(e,n,t){return n==="<"?e<t:n==="<="?e<=t:n===">"?e>t:e>=t}function w(e,n,t,i){let r=null;for(const s of e){if(!d(s.media,i)||!s.selector.split(",").map(f=>f.trim()).includes(n))continue;const c=new RegExp(`(?:^|;)\\s*${t}\\s*:\\s*([^;]+)`,"g");let l;for(;(l=c.exec(s.decls))!==null;)r=l[1].trim()}return r}function O(e,n,t,i){const r=new Set(n.map(o=>`.${o}`));let s=null;for(const o of e){if(!d(o.media,i)||!o.selector.split(/(?<!\\),/).map(u=>u.trim().replace(/\\/g,"")).some(u=>r.has(u)))continue;const l=new RegExp(`(?:^|;)\\s*${t}\\s*:\\s*([^;]+)`,"g");let f;for(;(f=l.exec(o.decls))!==null;)s=f[1].trim()}return s}export{h as andMedia,m as blockEnd,w as declFor,O as declForClasses,d as mediaApplies,g as ownDeclarations,p as readRules};
1
+ function p(e,t){const n=e[t]==="("||e[t]==="["?e[t]:"{",s=n==="("?")":n==="["?"]":"}";let i=0;for(let r=t;r<e.length;r+=1)if(e[r]===n)i+=1;else if(e[r]===s&&(i-=1,i===0))return r;return e.length}function m(e,t=null,n=[],s=null){if(s!==null){const r=g(e);r.trim()&&n.push({media:t,selector:s,decls:r})}let i=0;for(;i<e.length;){const r=e.indexOf("{",i);if(r===-1)break;const o=p(e,r);let c=i;for(let u=r;u>i;u-=1)if(";}".includes(e[u-1])){c=u;break}const l=e.slice(c,r).trim(),f=e.slice(r+1,o);l.startsWith("@media")?m(f,h(t,l),n,s):l.startsWith("@")?m(f,t,n,s):l&&m(f,t,n,l),i=o+1}return n}function h(e,t){const n=t.replace(/^@media\s*/,"").trim();return e===null?`@media ${n}`:`${e} and ${n}`}function g(e){let t="",n=0;for(;n<e.length;){const s=e.indexOf("{",n);if(s===-1){t+=e.slice(n);break}let i=s;for(;i>n&&!";}".includes(e[i-1]);)i-=1;t+=e.slice(n,i),n=p(e,s)+1}return t}function d(e,t){if(!e)return!0;const s=e.replace(/^@media\s*/,"").trim().split(/\s+and\s+/).map(i=>i.trim());for(const i of s){const r=/^\(\s*max-width:\s*([\d.]+)(px|rem)\s*\)$/.exec(i),o=/^\(\s*min-width:\s*([\d.]+)(px|rem)\s*\)$/.exec(i),c=/^\(\s*width\s*(<=|>=|<|>)\s*([\d.]+)(px|rem)\s*\)$/.exec(i),l=/^\(\s*([\d.]+)(px|rem)\s*(<=|>=|<|>)\s*width\s*\)$/.exec(i);if(r){if(t>a(r[1],r[2]))return!1}else if(o){if(t<a(o[1],o[2]))return!1}else if(c){if(!x(t,c[1],a(c[2],c[3])))return!1}else if(l){const f={"<":">",">":"<","<=":">=",">=":"<="}[l[3]];if(!x(t,f,a(l[1],l[2])))return!1}else return!1}return!0}const $=16;function a(e,t){return t==="rem"?Number(e)*$:Number(e)}function x(e,t,n){return t==="<"?e<n:t==="<="?e<=n:t===">"?e>n:e>=n}function w(e,t,n,s){let i=null;for(const r of e){if(!d(r.media,s)||!r.selector.split(",").map(f=>f.trim()).includes(t))continue;const c=new RegExp(`(?:^|;)\\s*${n}\\s*:\\s*([^;]+)`,"g");let l;for(;(l=c.exec(r.decls))!==null;)i=l[1].trim()}return i}function O(e,t,n,s){const i=new Set(t.map(o=>`.${o}`));let r=null;for(const o of e){if(!d(o.media,s)||!o.selector.split(/(?<!\\),/).map(u=>u.trim().replace(/\\/g,"")).some(u=>i.has(u)))continue;const l=new RegExp(`(?:^|;)\\s*${n}\\s*:\\s*([^;]+)`,"g");let f;for(;(f=l.exec(o.decls))!==null;)r=f[1].trim()}return r}export{h as andMedia,p as blockEnd,w as declFor,O as declForClasses,d as mediaApplies,g as ownDeclarations,m as readRules};
@@ -1,5 +1,5 @@
1
- const g=["text","textarea","plainText","copyText","plainTextarea","linkField","textList","upload","toggle","select","searchSelect","segmented","slider","colorInput","focalPicker","sizeField","backgroundField","multiSelect"];function A(e){const t=e.split(`
2
- `),n=new RegExp(`(?<![A-Za-z0-9_.$])(${g.join("|")})\\("((?:[^"\\\\]|\\\\.)*)"`,"g"),o=/label:\s*"((?:[^"\\]|\\.)*)"/g,s=new RegExp(`(?<![A-Za-z0-9_.$])(${g.join("|")})\\(\\s*$`),l=/^\s*"((?:[^"\\]|\\.)*)"\s*,/,r=[];let c=0,h=0;const f=[];return t.forEach((a,u)=>{const d=u+1,b=h>0;for(const i of a.matchAll(n))r.push({line:d,label:i[2],item:b,builder:i[1]});const m=s.exec(a);if(m){let i=u+1;for(;i<t.length&&t[i].trim()==="";)i+=1;const p=i<t.length?l.exec(t[i]):null;p&&r.push({line:i+1,label:p[1],item:b,builder:m[1]})}for(const i of a.matchAll(o)){const p=a.slice(0,i.index??0),x=u>0?t[u-1].trim():"";(/type:\s*"/.test(p)||/type:\s*"[a-z]+"\s*,?$/.test(x))&&r.push({line:d,label:i[1],item:b})}for(let i=0;i<a.length;i+=1)a[i]==="{"?(/arrayFields:\s*$/.test(a.slice(0,i))&&(f.push(c),h+=1),c+=1):a[i]==="}"&&(c-=1,f.length&&c===f[f.length-1]&&(f.pop(),h-=1))}),r}function L(e,t){let n=0,o=-1;for(let l=t-1;l>=0;l-=1){const r=e[l];if(r==="}")n+=1;else if(r==="{"){if(n===0){o=l;break}n-=1}}if(o<0)return"";let s=0;for(let l=o;l<e.length;l+=1)if(e[l]==="{")s+=1;else if(e[l]==="}"&&(s-=1,s===0))return e.slice(o,l+1);return e.slice(o)}function $(e){let t=0,n="";for(const o of e){if(o==="{"||o==="["){t+=1;continue}if(o==="}"||o==="]"){t-=1;continue}t===1&&(n+=o)}return n}function w(e,t){const n=$(L(e,t));return/(^|[,;])\s*(value|fields|render|resolveFields|panelId|href|amount|meta)\s*:/.test(n)||y(e,t)}function y(e,t){let n=0,o=0;for(let s=t-1;s>=0;s-=1){const l=e[s];if(l==="}"||l==="]"||l===")")n+=1;else if(l==="{"||l==="("){if(n>0){n-=1;continue}if(l==="("||++o>1)return!1}else if(l==="["){if(n>0){n-=1;continue}return/\w*TabItem\[\]\s*=\s*$/.test(e.slice(Math.max(0,s-80),s))}}return!1}function F(e){const t=e.split(`
3
- `),n=[];for(let l=0,r=0;l<t.length;l+=1)n.push(r),r+=t[l].length+1;const o=/label:\s*"((?:[^"\\]|\\.)*)"/g,s=[];return t.forEach((l,r)=>{for(const c of l.matchAll(o))w(e,n[r]+(c.index??0))||s.push({line:r+1,label:c[1],item:!1})}),s}const j=/(?<![-A-Za-z])label=(?:\{say\()?"((?:[^"\\]|\\.)*)"/g;function E(e){const t=[];return e.split(`
4
- `).forEach((n,o)=>{for(const s of n.matchAll(j))t.push({line:o+1,label:s[1],item:!1})}),t}const O=/className="sf-field"|from\s*["']efficient-easel/;function I(e){return e.path.startsWith("components/")&&e.path.endsWith(".tsx")&&O.test(e.text)}const P=6;function S(e,t){for(let n=t;n<Math.min(e.length,t+P);n+=1){if(/^\s*\}[,)]?\s*$/.test(e[n])&&n>t)return!1;if(/\bonClick:/.test(e[n]))return!0}return!1}function N(e){const t=new Set,n=e.split(`
5
- `);return[...A(e),...F(e),...E(e)].filter(o=>{const s=`${o.line}:${o.label}`;return t.has(s)?!1:(t.add(s),!S(n,o.line-1))})}export{g as BUILDERS,j as JSX_LABEL,I as isPanelFile,E as readJsxLabels,A as readLabels,N as readPanelLabels,F as readRowLabels};
1
+ import{blockEnd as A}from"./css-rules.js";const g=["text","textarea","plainText","copyText","plainTextarea","linkField","textList","upload","toggle","select","searchSelect","segmented","slider","colorInput","focalPicker","sizeField","backgroundField","multiSelect"];function L(e){const t=e.split(`
2
+ `),n=new RegExp(`(?<![A-Za-z0-9_.$])(${g.join("|")})\\("((?:[^"\\\\]|\\\\.)*)"`,"g"),l=/label:\s*"((?:[^"\\]|\\.)*)"/g,o=new RegExp(`(?<![A-Za-z0-9_.$])(${g.join("|")})\\(\\s*$`),s=/^\s*"((?:[^"\\]|\\.)*)"\s*,/,r=[];let c=0,h=0;const f=[];return t.forEach((a,u)=>{const d=u+1,b=h>0;for(const i of a.matchAll(n))r.push({line:d,label:i[2],item:b,builder:i[1]});const m=o.exec(a);if(m){let i=u+1;for(;i<t.length&&t[i].trim()==="";)i+=1;const p=i<t.length?s.exec(t[i]):null;p&&r.push({line:i+1,label:p[1],item:b,builder:m[1]})}for(const i of a.matchAll(l)){const p=a.slice(0,i.index??0),x=u>0?t[u-1].trim():"";(/type:\s*"/.test(p)||/type:\s*"[a-z]+"\s*,?$/.test(x))&&r.push({line:d,label:i[1],item:b})}for(let i=0;i<a.length;i+=1)a[i]==="{"?(/arrayFields:\s*$/.test(a.slice(0,i))&&(f.push(c),h+=1),c+=1):a[i]==="}"&&(c-=1,f.length&&c===f[f.length-1]&&(f.pop(),h-=1))}),r}function $(e,t){let n=0,l=-1;for(let o=t-1;o>=0;o-=1){const s=e[o];if(s==="}")n+=1;else if(s==="{"){if(n===0){l=o;break}n-=1}}return l<0?"":e.slice(l,A(e,l)+1)}function w(e){let t=0,n="";for(const l of e){if(l==="{"||l==="["){t+=1;continue}if(l==="}"||l==="]"){t-=1;continue}t===1&&(n+=l)}return n}function y(e,t){const n=w($(e,t));return/(^|[,;])\s*(value|fields|render|resolveFields|panelId|href|amount|meta)\s*:/.test(n)||E(e,t)}function E(e,t){let n=0,l=0;for(let o=t-1;o>=0;o-=1){const s=e[o];if(s==="}"||s==="]"||s===")")n+=1;else if(s==="{"||s==="("){if(n>0){n-=1;continue}if(s==="("||++l>1)return!1}else if(s==="["){if(n>0){n-=1;continue}return/\w*TabItem\[\]\s*=\s*$/.test(e.slice(Math.max(0,o-80),o))}}return!1}function F(e){const t=e.split(`
3
+ `),n=[];for(let s=0,r=0;s<t.length;s+=1)n.push(r),r+=t[s].length+1;const l=/label:\s*"((?:[^"\\]|\\.)*)"/g,o=[];return t.forEach((s,r)=>{for(const c of s.matchAll(l))y(e,n[r]+(c.index??0))||o.push({line:r+1,label:c[1],item:!1})}),o}const j=/(?<![-A-Za-z])label=(?:\{say\()?"((?:[^"\\]|\\.)*)"/g;function k(e){const t=[];return e.split(`
4
+ `).forEach((n,l)=>{for(const o of n.matchAll(j))t.push({line:l+1,label:o[1],item:!1})}),t}const O=/className="sf-field"|from\s*["']efficient-easel/;function T(e){return e.path.startsWith("components/")&&e.path.endsWith(".tsx")&&O.test(e.text)}const P=6;function S(e,t){for(let n=t;n<Math.min(e.length,t+P);n+=1){if(/^\s*\}[,)]?\s*$/.test(e[n])&&n>t)return!1;if(/\bonClick:/.test(e[n]))return!0}return!1}function z(e){const t=new Set,n=e.split(`
5
+ `);return[...L(e),...F(e),...k(e)].filter(l=>{const o=`${l.line}:${l.label}`;return t.has(o)?!1:(t.add(o),!S(n,l.line-1))})}export{g as BUILDERS,j as JSX_LABEL,T as isPanelFile,k as readJsxLabels,L as readLabels,z as readPanelLabels,F as readRowLabels};
@@ -1,3 +1,3 @@
1
- const f={single:"'",double:'"',template:"`"};function r(i){let t="",n="code",o=0;for(;o<i.length;){const e=i[o],c=i[o+1];if(n==="code"){if(e==="/"&&c==="/"){n="line",t+=" ",o+=2;continue}if(e==="/"&&c==="*"){n="block",t+=" ",o+=2;continue}e==="'"?n="single":e==='"'?n="double":e==="`"&&(n="template"),t+=e,o+=1;continue}if(n==="line"){e===`
2
- `?(n="code",t+=e):t+=" ",o+=1;continue}if(n==="block"){if(e==="*"&&c==="/"){n="code",t+=" ",o+=2;continue}t+=e===`
3
- `?e:" ",o+=1;continue}if(e==="\\"){t+=e+(c??""),o+=2;continue}e===f[n]&&(n="code"),t+=e,o+=1}return t}function d(i,t){const n=r(i),o=n.indexOf(t);if(o<0)throw new Error(`ts-source: marker not found: ${t}`);const e=n.indexOf("{",o+t.length-1);if(e<0)throw new Error(`ts-source: no block opens after: ${t}`);let c=0;for(let l=e;l<n.length;l+=1)if(n[l]==="{")c+=1;else if(n[l]==="}"&&(c-=1,c===0))return i.slice(e,l+1);throw new Error(`ts-source: unbalanced block after: ${t}`)}function s(i){return`(?:@\\/|efficient-web-builder\\/(?:render|format|editor)\\/)${i.replace(/[.*+?^${}()|[\]\\/]/g,"\\$&")}`}export{d as balancedBlockAfter,s as builderModuleSpec,r as stripComments};
1
+ import{blockEnd as l}from"./css-rules.js";const f={single:"'",double:'"',template:"`"};function r(i){let n="",o="code",t=0;for(;t<i.length;){const e=i[t],c=i[t+1];if(o==="code"){if(e==="/"&&c==="/"){o="line",n+=" ",t+=2;continue}if(e==="/"&&c==="*"){o="block",n+=" ",t+=2;continue}e==="'"?o="single":e==='"'?o="double":e==="`"&&(o="template"),n+=e,t+=1;continue}if(o==="line"){e===`
2
+ `?(o="code",n+=e):n+=" ",t+=1;continue}if(o==="block"){if(e==="*"&&c==="/"){o="code",n+=" ",t+=2;continue}n+=e===`
3
+ `?e:" ",t+=1;continue}if(e==="\\"){n+=e+(c??""),t+=2;continue}e===f[o]&&(o="code"),n+=e,t+=1}return n}function d(i,n){const o=r(i),t=o.indexOf(n);if(t<0)throw new Error(`ts-source: marker not found: ${n}`);const e=o.indexOf("{",t+n.length-1);if(e<0)throw new Error(`ts-source: no block opens after: ${n}`);const c=l(o,e);if(c>=o.length)throw new Error(`ts-source: unbalanced block after: ${n}`);return i.slice(e,c+1)}function u(i){return`(?:@\\/|efficient-web-builder\\/(?:render|format|editor)\\/)${i.replace(/[.*+?^${}()|[\]\\/]/g,"\\$&")}`}export{d as balancedBlockAfter,u as builderModuleSpec,r as stripComments};
@@ -1,9 +1,10 @@
1
1
  import { type SlotComponent } from "efficient-easel/blocks";
2
+ import { type HeroMediaType } from "../../format/lib/hero-media-layout.js";
2
3
  export interface HeroSingleProps {
3
4
  overlay?: number;
4
5
  overlayColor?: string;
5
6
  overlayPosition?: string;
6
- mediaType?: "video" | "image";
7
+ mediaType?: HeroMediaType;
7
8
  mediaSrc?: string;
8
9
  poster?: string;
9
10
  objectPosition?: string;
@@ -1 +1 @@
1
- "use client";import{jsx as e,jsxs as k}from"react/jsx-runtime";import{HideTaker as ee}from"./ViewHideRoot.js";import{useRef as oe,useState as re}from"react";import te from"./HeroPoster.js";import{HeroMediaLayer as ie,heroMediaReading as se,HeroPickArea as ae,heroPartEntrance as ne,heroPartHover as le,heroPartScroll as ce,heroPictureOrigins as me,HeroPictureHover as ue,heroPicturesHover as de,HeroTint as he,HeroTwoPictures as fe}from"./HeroPictures.js";import{HeroVideoBackdrop as pe,HeroVideoPlayer as ge}from"./HeroVideoPlay.js";import{resolveMedia as i}from"../lib/media.js";import{heroHeightBox as ve,heroStoresRatio as ye}from"../../format/lib/content/section-height.js";import{DEFAULT_OVERLAY_POSITION as xe,overlayGradient as He}from"../../format/lib/sections/hero-overlay.js";import{ON_MEDIA_INK_STYLE as Pe}from"../../format/lib/content/ink.js";import{DEFAULT_TINT as u}from"../../format/lib/content/tint.js";import be from"./PhotoHoverSheet.js";function we({overlay:L=100,overlayColor:I=u,overlayPosition:E=xe,mediaType:d="image",mediaSrc:s,poster:h,objectPosition:a,objectPositionPhone:n,objectPositionTablet:l,tintColor:f=u,tintOpacity:p=0,heightDesktop:A,heightMobile:O,heightFixed:V,heightFixedTablet:j,heightFixedMobile:z,boxes:g,videoSource:R,youtubeUrl:M,videoPlayback:B,mediaLayout:D,mediaLayoutPhone:F,mediaImage2:Y,objectPosition2:C,objectPosition2Phone:U,objectPosition2Tablet:$,tintColor2:G=u,tintOpacity2:K=0,editing:o=!1,partMotion:r}){const v=ve({heightDesktop:A,heightMobile:O,heightFixed:V,heightFixedTablet:j,heightFixedMobile:z}),{className:q,style:J}=v,y=ye(v),c=d==="video",x=c?i(s):void 0,H=c?i(h):i(s)??i(h),{fromYouTube:P,onClick:b,youTubeId:w,backgroundFile:T,desktopLayout:Q,phoneLayout:W,twoPictures:N}=se({isVideo:c,videoSource:R,videoPlayback:B,youtubeUrl:M,mediaLayout:D,mediaLayoutPhone:F}),[S,X]=re(!1),m=!S,Z=oe(null),t=d==="video"?"media":"image",_=de(r);return k(ee,{as:"section",ref:Z,className:`relative mx-[var(--sf-hero-bleed-m,calc(50%_-_50vw))] w-[var(--sf-hero-bleed-w,100vw)] ${q} max-w-[var(--sf-hero-cap,none)] ${y?"overflow-clip":"overflow-hidden"}`,style:J,..._.hostAttrs,children:[e(be,{sheet:_.sheet}),e(ie,{partMotion:r,editing:o,children:N?e(fe,{desktopLayout:Q,phoneLayout:W,editing:o,partMotion:r,first:{src:s,objectPosition:a,objectPositionPhone:n,objectPositionTablet:l,tintColor:f,tintOpacity:p},second:{src:Y,objectPosition:C,objectPositionPhone:U,objectPositionTablet:$,tintColor:G,tintOpacity:K}}):e(ae,{part:t,editing:o,entrance:t==="image"?ne(r,"image"):null,scroll:t==="image"?ce(r,"image"):null,origins:me({objectPosition:a,objectPositionTablet:l,objectPositionPhone:n}),className:"absolute inset-0 z-[1]",children:k(ue,{treatment:t==="image"?le(r,"image"):{},children:[e(te,{videoSrc:T?x:void 0,posterSrc:H,showVideo:T,objectPosition:a,objectPositionPhone:n,objectPositionTablet:l}),P&&e(pe,{youTubeId:w,ownPoster:!!H,background:!b,editing:o})]})})}),b&&e(ge,{youTubeId:w,fileSrc:P?void 0:x,playing:S,onPlay:()=>X(!0),editing:o}),m&&!N&&e(he,{color:f,opacity:p}),m&&e("div",{className:"pointer-events-none absolute inset-0 z-[2]",style:{background:He(I,E),opacity:Math.min(Math.max(L,0),100)/100}}),m&&g&&e("div",{className:[y?"sf-hero-group-layer relative min-h-full z-[3] mx-auto":"sf-hero-group-layer absolute inset-0 z-[3] mx-auto","max-w-[var(--sf-site-width,1600px)]","px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14",o?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:Pe,children:e(g,{className:"sf-hero-group-zone",minEmptyHeight:160})})]})}export{we as default};
1
+ "use client";import{jsx as e,jsxs as N}from"react/jsx-runtime";import{HideTaker as ee}from"./ViewHideRoot.js";import{useRef as oe,useState as re}from"react";import te from"./HeroPoster.js";import{HeroMediaLayer as ie,heroMediaReading as se,HeroPickArea as ae,heroPartEntrance as ne,heroPartHover as le,heroPartScroll as ce,heroPictureOrigins as me,HeroPictureHover as ue,heroPicturesHover as de,HeroTint as he,HeroTwoPictures as fe}from"./HeroPictures.js";import{HeroVideoBackdrop as pe,HeroVideoPlayer as ge}from"./HeroVideoPlay.js";import{resolveMedia as i}from"../lib/media.js";import{heroHeightBox as ve,heroStoresRatio as ye}from"../../format/lib/content/section-height.js";import{DEFAULT_OVERLAY_POSITION as He,overlayGradient as xe}from"../../format/lib/sections/hero-overlay.js";import{ON_MEDIA_INK_STYLE as Pe}from"../../format/lib/content/ink.js";import{DEFAULT_TINT as u}from"../../format/lib/content/tint.js";import{HERO_ABSENT_MEDIA_TYPE as be}from"../../format/lib/hero-media-layout.js";import we from"./PhotoHoverSheet.js";function Te({overlay:k=100,overlayColor:I=u,overlayPosition:L=He,mediaType:d=be.HeroSingle,mediaSrc:s,poster:h,objectPosition:a,objectPositionPhone:n,objectPositionTablet:l,tintColor:f=u,tintOpacity:p=0,heightDesktop:A,heightMobile:O,heightFixed:R,heightFixedTablet:V,heightFixedMobile:j,boxes:g,videoSource:z,youtubeUrl:M,videoPlayback:B,mediaLayout:D,mediaLayoutPhone:Y,mediaImage2:F,objectPosition2:C,objectPosition2Phone:U,objectPosition2Tablet:$,tintColor2:G=u,tintOpacity2:K=0,editing:o=!1,partMotion:r}){const v=ve({heightDesktop:A,heightMobile:O,heightFixed:R,heightFixedTablet:V,heightFixedMobile:j}),{className:q,style:J}=v,y=ye(v),c=d==="video",H=c?i(s):void 0,x=c?i(h):i(s)??i(h),{fromYouTube:P,onClick:b,youTubeId:w,backgroundFile:T,desktopLayout:Q,phoneLayout:W,twoPictures:_}=se({isVideo:c,videoSource:z,videoPlayback:B,youtubeUrl:M,mediaLayout:D,mediaLayoutPhone:Y}),[S,X]=re(!1),m=!S,Z=oe(null),t=d==="video"?"media":"image",E=de(r);return N(ee,{as:"section",ref:Z,className:`relative mx-[var(--sf-hero-bleed-m,calc(50%_-_50vw))] w-[var(--sf-hero-bleed-w,100vw)] ${q} max-w-[var(--sf-hero-cap,none)] ${y?"overflow-clip":"overflow-hidden"}`,style:J,...E.hostAttrs,children:[e(we,{sheet:E.sheet}),e(ie,{partMotion:r,editing:o,children:_?e(fe,{desktopLayout:Q,phoneLayout:W,editing:o,partMotion:r,first:{src:s,objectPosition:a,objectPositionPhone:n,objectPositionTablet:l,tintColor:f,tintOpacity:p},second:{src:F,objectPosition:C,objectPositionPhone:U,objectPositionTablet:$,tintColor:G,tintOpacity:K}}):e(ae,{part:t,editing:o,entrance:t==="image"?ne(r,"image"):null,scroll:t==="image"?ce(r,"image"):null,origins:me({objectPosition:a,objectPositionTablet:l,objectPositionPhone:n}),className:"absolute inset-0 z-[1]",children:N(ue,{treatment:t==="image"?le(r,"image"):{},children:[e(te,{videoSrc:T?H:void 0,posterSrc:x,showVideo:T,objectPosition:a,objectPositionPhone:n,objectPositionTablet:l}),P&&e(pe,{youTubeId:w,ownPoster:!!x,background:!b,editing:o})]})})}),b&&e(ge,{youTubeId:w,fileSrc:P?void 0:H,playing:S,onPlay:()=>X(!0),editing:o}),m&&!_&&e(he,{color:f,opacity:p}),m&&e("div",{className:"pointer-events-none absolute inset-0 z-[2]",style:{background:xe(I,L),opacity:Math.min(Math.max(k,0),100)/100}}),m&&g&&e("div",{className:[y?"sf-hero-group-layer relative min-h-full z-[3] mx-auto":"sf-hero-group-layer absolute inset-0 z-[3] mx-auto","max-w-[var(--sf-site-width,1600px)]","px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14",o?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:Pe,children:e(g,{className:"sf-hero-group-zone",minEmptyHeight:160})})]})}export{Te as default};
@@ -1,6 +1,7 @@
1
1
  import type { CSSProperties } from "react";
2
2
  import type { SlotComponent } from "efficient-easel/blocks";
3
3
  import { type HeroCopyAlignment } from "../../format/lib/hero-group-placement.js";
4
+ import { type HeroMediaType } from "../../format/lib/hero-media-layout.js";
4
5
  export interface HeroSlideStyle {
5
6
  alignment?: HeroCopyAlignment;
6
7
  textureOpacity?: number;
@@ -18,7 +19,7 @@ export declare const HeroSlideStyleContext: import("react").Context<HeroSlideSty
18
19
  export interface HeroSlideProps {
19
20
  name?: string;
20
21
  process?: string;
21
- mediaType?: "video" | "image";
22
+ mediaType?: HeroMediaType;
22
23
  mediaSrc?: string;
23
24
  videoSpeed?: number;
24
25
  poster?: string;
@@ -1 +1 @@
1
- "use client";import{jsx as e,jsxs as B}from"react/jsx-runtime";import{useTakeViewHide as He,withViewHide as ke}from"./ViewHideRoot.js";import{createContext as be,useContext as Te,useEffect as Ee,useRef as Le,useState as q}from"react";import Ae from"./HeroPoster.js";import{HeroMediaLayer as Oe,heroMediaReading as _e,HeroPickArea as Ne,heroPartEntrance as Ve,heroPartHover as Ce,heroPartScroll as Ie,heroPictureOrigins as Re,HeroPictureHover as je,heroPicturesHover as ze,HeroTint as De,HeroTwoPictures as Fe}from"./HeroPictures.js";import{HeroVideoBackdrop as $e,HeroVideoPlayer as Be}from"./HeroVideoPlay.js";import{BelowFirstScreen as qe,useFirstScreenPlace as Me}from"../lib/first-screen.js";import{markedChildren as Ue}from"../../format/lib/marked-children.js";import{resolveMedia as r}from"../lib/media.js";import{heroPhoneStackStyle as Ye}from"../../format/lib/hero-phone-stack.js";import{heroTextureGradient as Ge,heroTextureShown as Ke}from"../../format/lib/hero-texture.js";import{ON_MEDIA_INK_STYLE as Je}from"../../format/lib/content/ink.js";import{DEFAULT_TINT as M}from"../../format/lib/content/tint.js";import{overlayGradient as Qe,slideOverlayState as We}from"../../format/lib/sections/hero-overlay.js";import Xe from"./PhotoHoverSheet.js";const Ze=be({});function eo({name:w,process:d,mediaType:U="video",mediaSrc:c,videoSpeed:P,poster:H,mediaAv1:Y,mediaSrcPhone:G,mediaAv1Phone:K,posterPhone:J,objectPosition:u,objectPositionPhone:f,objectPositionTablet:p,tintColor:k=M,tintOpacity:b=0,groups:T,editing:i=!1,themeClassName:E,themeStyle:Q,overlayColor:W,overlayPosition:X,mediaLayout:Z,mediaLayoutPhone:ee,mediaImage2:oe,objectPosition2:re,objectPosition2Phone:te,objectPosition2Tablet:ie,tintColor2:ne=M,tintOpacity2:se=0,videoSource:ae,youtubeUrl:le,videoPlayback:de,partMotion:n,laterSlide:m=!1}){const h=He(),{alignment:oo="left",textureOpacity:L,textureOn:ce,textureColor:ue,quietVideo:fe,phoneUpDown:pe,phoneSideways:me,holdReel:he,reelHeld:ve,shownSlide:v,ratioMin:A}=Te(Ze),ye=Me(),O=m&&ye==="first",_=Le(null),[Se,xe]=q(v===void 0?void 0:!1);Ee(()=>{const g=_.current;xe(v===void 0||!g?void 0:Ue(g.closest(".hero-track"),"data-slide-name")[v]===g)});const o=U==="video",y=o?r(c):void 0,N=o?r(H):r(c)??r(H),t=o?{av1:r(Y),phone:r(G),av1Phone:r(K),poster:r(J)}:{},ge=typeof P=="number"?P/100:1,{fromYouTube:s,onClick:V,youTubeId:C,backgroundFile:a,desktopLayout:we,phoneLayout:Pe,twoPictures:I}=_e({isVideo:o,videoSource:ae,videoPlayback:de,youtubeUrl:le,mediaLayout:Z,mediaLayoutPhone:ee}),[S,R]=q(!1);S&&ve===!1&&R(!1);const x=!S,l=We({overlayColor:W,overlayPosition:X},ue),j=o?null:Ve(n,"image"),z=o?null:Ie(n,"image"),D=ze(n),F=e(je,{treatment:o?{}:Ce(n,"image"),children:e(Ae,{videoSrc:a?y:void 0,videoAv1Src:a?t.av1:void 0,videoSrcPhone:a?t.phone:void 0,videoAv1SrcPhone:a?t.av1Phone:void 0,posterSrc:N,posterSrcPhone:t.poster,showVideo:a,playbackRate:ge,objectPosition:u,objectPositionPhone:o?void 0:f,objectPositionTablet:o?void 0:p,quiet:fe,slideShown:Se,laterSlide:m,laterOfLead:O})}),$=B("section",{ref:_,className:ke(`${A?"relative min-h-full w-full overflow-clip":"relative h-full w-full overflow-hidden"}${E?` ${E}`:""}`,h.className),...h.attrs,style:Q,"data-slide-name":w??"","data-slide-process":d??"","data-slide-media":a&&y?"video":"still",...D.hostAttrs,children:[e(Xe,{sheet:D.sheet}),e(Oe,{partMotion:n,editing:i,children:I?e(Fe,{laterSlide:m,desktopLayout:we,phoneLayout:Pe,editing:i,marked:!1,partMotion:n,first:{src:c,objectPosition:u,objectPositionPhone:f,objectPositionTablet:p,tintColor:k,tintOpacity:b},second:{src:oe,objectPosition:re,objectPositionPhone:te,objectPositionTablet:ie,tintColor:ne,tintOpacity:se}}):s||j||z?B(Ne,{part:o?"media":"image",editing:i,marked:!1,entrance:j,scroll:z,origins:Re({objectPosition:u,objectPositionTablet:p,objectPositionPhone:f}),className:"absolute inset-0 z-[1]",children:[F,s&&e($e,{youTubeId:C,ownPoster:!!N,background:!V,editing:i})]}):F}),V&&e(Be,{youTubeId:C,fileSrc:s?void 0:y,fileAv1Src:s?void 0:t.av1,fileSrcPhone:s?void 0:t.phone,fileAv1SrcPhone:s?void 0:t.av1Phone,playing:S,onPlay:()=>{R(!0),he?.()},editing:i}),x&&!I&&e(De,{color:k,opacity:b,passClicks:!1}),x&&Ke(ce)&&e("div",{className:"absolute inset-0 z-[2]",style:{background:l.own?Qe(l.color,l.position??void 0):Ge(l.color),...L!==void 0?{opacity:L/100}:null}}),x&&e("div",{className:[A?"sf-hero-group-layer relative min-h-full z-[3] mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14":"sf-hero-group-layer absolute inset-0 z-[3] mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14",i?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{...Je,...Ye(pe,me)},children:T&&e(T,{className:"sf-hero-group-zone",minEmptyHeight:160})})]});return h.scope(O?e(qe,{children:$}):$)}const So=Array.from({length:3},(w,d)=>({name:`Slide ${d+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));export{So as HERO_SLIDE_SEEDS,Ze as HeroSlideStyleContext,eo as default};
1
+ "use client";import{jsx as e,jsxs as $}from"react/jsx-runtime";import{useTakeViewHide as He,withViewHide as Te}from"./ViewHideRoot.js";import{createContext as be,useContext as ke,useEffect as Ee,useRef as _e,useState as M}from"react";import Ae from"./HeroPoster.js";import{HeroMediaLayer as Le,heroMediaReading as Oe,HeroPickArea as Ne,heroPartEntrance as Ie,heroPartHover as Re,heroPartScroll as Ve,heroPictureOrigins as Ce,HeroPictureHover as De,heroPicturesHover as je,HeroTint as ze,HeroTwoPictures as Fe}from"./HeroPictures.js";import{HeroVideoBackdrop as Be,HeroVideoPlayer as $e}from"./HeroVideoPlay.js";import{BelowFirstScreen as Me,useFirstScreenPlace as Ye}from"../lib/first-screen.js";import{markedChildren as qe}from"../../format/lib/marked-children.js";import{resolveMedia as r}from"../lib/media.js";import{heroPhoneStackStyle as Ue}from"../../format/lib/hero-phone-stack.js";import{heroTextureGradient as Ge,heroTextureShown as Ke}from"../../format/lib/hero-texture.js";import{ON_MEDIA_INK_STYLE as Je}from"../../format/lib/content/ink.js";import{DEFAULT_TINT as Y}from"../../format/lib/content/tint.js";import{HERO_ABSENT_MEDIA_TYPE as Qe}from"../../format/lib/hero-media-layout.js";import{overlayGradient as We,slideOverlayState as Xe}from"../../format/lib/sections/hero-overlay.js";import Ze from"./PhotoHoverSheet.js";const eo=be({});function oo({name:g,process:d,mediaType:q=Qe.HeroSlide,mediaSrc:c,videoSpeed:w,poster:H,mediaAv1:U,mediaSrcPhone:G,mediaAv1Phone:K,posterPhone:J,objectPosition:u,objectPositionPhone:f,objectPositionTablet:p,tintColor:T=Y,tintOpacity:b=0,groups:k,editing:i=!1,themeClassName:E,themeStyle:Q,overlayColor:W,overlayPosition:X,mediaLayout:Z,mediaLayoutPhone:ee,mediaImage2:oe,objectPosition2:re,objectPosition2Phone:te,objectPosition2Tablet:ie,tintColor2:ne=Y,tintOpacity2:se=0,videoSource:ae,youtubeUrl:le,videoPlayback:de,partMotion:n,laterSlide:m=!1}){const h=He(),{alignment:ro="left",textureOpacity:_,textureOn:ce,textureColor:ue,quietVideo:fe,phoneUpDown:pe,phoneSideways:me,holdReel:he,reelHeld:ve,shownSlide:v,ratioMin:A}=ke(eo),ye=Ye(),L=m&&ye==="first",O=_e(null),[Se,xe]=M(v===void 0?void 0:!1);Ee(()=>{const P=O.current;xe(v===void 0||!P?void 0:qe(P.closest(".hero-track"),"data-slide-name")[v]===P)});const o=q==="video",y=o?r(c):void 0,N=o?r(H):r(c)??r(H),t=o?{av1:r(U),phone:r(G),av1Phone:r(K),poster:r(J)}:{},Pe=typeof w=="number"?w/100:1,{fromYouTube:s,onClick:I,youTubeId:R,backgroundFile:a,desktopLayout:ge,phoneLayout:we,twoPictures:V}=Oe({isVideo:o,videoSource:ae,videoPlayback:de,youtubeUrl:le,mediaLayout:Z,mediaLayoutPhone:ee}),[S,C]=M(!1);S&&ve===!1&&C(!1);const x=!S,l=Xe({overlayColor:W,overlayPosition:X},ue),D=o?null:Ie(n,"image"),j=o?null:Ve(n,"image"),z=je(n),F=e(De,{treatment:o?{}:Re(n,"image"),children:e(Ae,{videoSrc:a?y:void 0,videoAv1Src:a?t.av1:void 0,videoSrcPhone:a?t.phone:void 0,videoAv1SrcPhone:a?t.av1Phone:void 0,posterSrc:N,posterSrcPhone:t.poster,showVideo:a,playbackRate:Pe,objectPosition:u,objectPositionPhone:o?void 0:f,objectPositionTablet:o?void 0:p,quiet:fe,slideShown:Se,laterSlide:m,laterOfLead:L})}),B=$("section",{ref:O,className:Te(`${A?"relative min-h-full w-full overflow-clip":"relative h-full w-full overflow-hidden"}${E?` ${E}`:""}`,h.className),...h.attrs,style:Q,"data-slide-name":g??"","data-slide-process":d??"","data-slide-media":a&&y?"video":"still",...z.hostAttrs,children:[e(Ze,{sheet:z.sheet}),e(Le,{partMotion:n,editing:i,children:V?e(Fe,{laterSlide:m,desktopLayout:ge,phoneLayout:we,editing:i,partMotion:n,first:{src:c,objectPosition:u,objectPositionPhone:f,objectPositionTablet:p,tintColor:T,tintOpacity:b},second:{src:oe,objectPosition:re,objectPositionPhone:te,objectPositionTablet:ie,tintColor:ne,tintOpacity:se}}):s||D||j?$(Ne,{part:o?"media":"image",editing:i,entrance:D,scroll:j,origins:Ce({objectPosition:u,objectPositionTablet:p,objectPositionPhone:f}),className:"absolute inset-0 z-[1]",children:[F,s&&e(Be,{youTubeId:R,ownPoster:!!N,background:!I,editing:i})]}):F}),I&&e($e,{youTubeId:R,fileSrc:s?void 0:y,fileAv1Src:s?void 0:t.av1,fileSrcPhone:s?void 0:t.phone,fileAv1SrcPhone:s?void 0:t.av1Phone,playing:S,onPlay:()=>{C(!0),he?.()},editing:i}),x&&!V&&e(ze,{color:T,opacity:b,passClicks:!1}),x&&Ke(ce)&&e("div",{className:"absolute inset-0 z-[2]",style:{background:l.own?We(l.color,l.position??void 0):Ge(l.color),..._!==void 0?{opacity:_/100}:null}}),x&&e("div",{className:[A?"sf-hero-group-layer relative min-h-full z-[3] mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14":"sf-hero-group-layer absolute inset-0 z-[3] mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14",i?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{...Je,...Ue(pe,me)},children:k&&e(k,{className:"sf-hero-group-zone",minEmptyHeight:160})})]});return h.scope(L?e(Me,{children:B}):B)}const Po=Array.from({length:3},(g,d)=>({name:`Slide ${d+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));export{Po as HERO_SLIDE_SEEDS,eo as HeroSlideStyleContext,oo as default};
@@ -1 +1 @@
1
- import{jsx as H}from"react/jsx-runtime";import I from"../../../../../components/HeroSingle.js";import{HeroSingleMeta as V}from"../../../../../../format/lib/document/blocks/general/HeroSingle/meta.js";import{viewFocusValues as d}from"../../../../../../format/lib/content/picture-focus-rows.js";import{editorVideoFrame as w}from"../../../../../../format/lib/hero-video.js";const q={...V,render:o=>{const{mediaType:e,mediaImage:r,mediaVideo:a,poster:m,tintColor:l,tintOpacity:g,overlay:h,overlayColor:s,overlayPosition:c,heightDesktop:b,heightMobile:u,heightFixed:y,heightFixedTablet:p,heightFixedMobile:P,boxes:f,videoSource:v,youtubeUrl:x,videoPlayback:F,mediaLayout:j,mediaLayoutPhone:k,mediaImage2:M,tintColor2:C,tintOpacity2:S,_partMotion:T,editor:n,id:L}=o,i=d(o,"imageFocal"),t=d(o,"imageFocal2"),O=e==="image"?void 0:w(L,a,n?.metadata);return H(I,{mediaType:e,videoSource:v,youtubeUrl:x,videoPlayback:F,mediaLayout:j,mediaLayoutPhone:k,mediaImage2:M||void 0,objectPosition2:t.desktop,objectPosition2Phone:t.phone,objectPosition2Tablet:t.tablet,tintColor2:C,tintOpacity2:S,mediaSrc:(e==="image"?r:a)||void 0,poster:m||O||void 0,objectPosition:e==="image"?i.desktop:void 0,objectPositionPhone:e==="image"?i.phone:void 0,objectPositionTablet:e==="image"?i.tablet:void 0,tintColor:l,tintOpacity:e==="image"?g:0,overlay:h,overlayColor:s,overlayPosition:c,heightDesktop:b,heightMobile:u,heightFixed:y,heightFixedTablet:p,heightFixedMobile:P,boxes:f,editing:n?.isEditing,partMotion:T})}};export{q as HeroSingleRender};
1
+ import{jsx as I}from"react/jsx-runtime";import U from"../../../../../components/HeroSingle.js";import{HeroSingleMeta as V}from"../../../../../../format/lib/document/blocks/general/HeroSingle/meta.js";import{viewFocusValues as d}from"../../../../../../format/lib/content/picture-focus-rows.js";import{HERO_FOCUS as r}from"../../../../../../format/lib/hero-media-layout.js";import{editorVideoFrame as _}from"../../../../../../format/lib/hero-video.js";const A={...V,render:i=>{const{mediaType:e,mediaImage:m,mediaVideo:a,poster:l,tintColor:g,tintOpacity:h,overlay:s,overlayColor:b,overlayPosition:c,heightDesktop:u,heightMobile:y,heightFixed:p,heightFixedTablet:P,heightFixedMobile:f,boxes:v,videoSource:x,youtubeUrl:F,videoPlayback:j,mediaLayout:k,mediaLayoutPhone:C,mediaImage2:M,tintColor2:S,tintOpacity2:O,_partMotion:T,editor:n,id:H}=i,o=d(i,r.image),t=d(i,r.image2),L=e==="image"?void 0:_(H,a,n?.metadata);return I(U,{mediaType:e,videoSource:x,youtubeUrl:F,videoPlayback:j,mediaLayout:k,mediaLayoutPhone:C,mediaImage2:M||void 0,objectPosition2:t.desktop,objectPosition2Phone:t.phone,objectPosition2Tablet:t.tablet,tintColor2:S,tintOpacity2:O,mediaSrc:(e==="image"?m:a)||void 0,poster:l||L||void 0,objectPosition:e==="image"?o.desktop:void 0,objectPositionPhone:e==="image"?o.phone:void 0,objectPositionTablet:e==="image"?o.tablet:void 0,tintColor:g,tintOpacity:e==="image"?h:0,overlay:s,overlayColor:b,overlayPosition:c,heightDesktop:u,heightMobile:y,heightFixed:p,heightFixedTablet:P,heightFixedMobile:f,boxes:v,editing:n?.isEditing,partMotion:T})}};export{A as HeroSingleRender};
@@ -1 +1 @@
1
- import{jsx as Y}from"react/jsx-runtime";import q from"../../../../../components/HeroSlide.js";import{nestedAccentValue as z,sectionThemeWrap as B}from"../../../../../../format/lib/content/section-surface.js";import{phHide as G}from"../../scaffold.js";import{HeroSlideMeta as J}from"../../../../../../format/lib/document/blocks/general/HeroSlide/meta.js";import{editorVideoFrame as g,loadingStill as v}from"../../../../../../format/lib/hero-video.js";import{mediaValueSrc as r}from"../../../../../../format/lib/media-value.js";import{LATER_SLIDES_KEY as Q}from"../../../../first-screen.js";import{viewFocusValues as b}from"../../../../../../format/lib/content/picture-focus-rows.js";const ae={...J,render:i=>{const{name:S,process:A,mediaType:e,mediaVideo:m,mediaVideoAv1:F,mediaVideoPhone:V,mediaVideoAv1Phone:j,mediaImage:C,poster:s,posterPhone:L,loadingShows:c,videoFrame:k,videoFramePhone:T,mediaSrc:l,videoSpeed:u,tintColor:E,overlay:H,groups:I,editor:o,overlayColor:p,overlayPosition:f,mediaLayout:_,mediaLayoutPhone:w,mediaImage2:x,tintColor2:M,tintOpacity2:O,videoSource:N,youtubeUrl:R,videoPlayback:U,_partMotion:D,id:t,...y}=i,n=b(i,"imageFocal"),d=b(i,"imageFocal2"),h=o?.metadata?.[Q],K=g(t,m||l,o?.metadata),a=e==="image"?void 0:r(V)||void 0,W=a?g(t,a,o?.metadata):void 0,P=B({...y,sectionAccent:z(y.sectionAccent)});return Y(q,{themeClassName:P?.className,themeStyle:P?.style,name:S||void 0,process:G(A,"Label",o),mediaType:e,mediaSrc:(e==="image"?C:m||l)||void 0,videoSpeed:typeof u=="number"?u:void 0,poster:v({loadingShows:c,poster:s,videoFrame:k||K}),mediaAv1:e==="image"?void 0:r(F)||void 0,mediaSrcPhone:a,mediaAv1Phone:e==="image"?void 0:r(j)||void 0,posterPhone:e==="image"?void 0:v({loadingShows:c,poster:s,posterPhone:L,videoFramePhone:T||W},"phone"),objectPosition:e==="image"?n.desktop:void 0,objectPositionPhone:e==="image"?n.phone:void 0,objectPositionTablet:e==="image"?n.tablet:void 0,tintColor:E,tintOpacity:e==="image"?H:0,groups:I,editing:o?.isEditing,overlayColor:typeof p=="string"?p:void 0,overlayPosition:typeof f=="string"?f:void 0,mediaLayout:_,mediaLayoutPhone:w,mediaImage2:x||void 0,objectPosition2:d.desktop,objectPosition2Phone:d.phone,objectPosition2Tablet:d.tablet,tintColor2:M,tintOpacity2:O,videoSource:N,youtubeUrl:R,videoPlayback:U,partMotion:D,...Array.isArray(h)&&h.includes(t)?{laterSlide:!0}:{}})}};export{ae as HeroSlideRender};
1
+ import{jsx as B}from"react/jsx-runtime";import{HERO_FOCUS as S,heroMediaType as G}from"../../../../../../format/lib/hero-media-layout.js";import J from"../../../../../components/HeroSlide.js";import{nestedAccentValue as Q,sectionThemeWrap as X}from"../../../../../../format/lib/content/section-surface.js";import{phHide as Z}from"../../scaffold.js";import{HeroSlideMeta as $}from"../../../../../../format/lib/document/blocks/general/HeroSlide/meta.js";import{editorVideoFrame as b,loadingStill as g}from"../../../../../../format/lib/hero-video.js";import{mediaValueSrc as r}from"../../../../../../format/lib/media-value.js";import{LATER_SLIDES_KEY as ee}from"../../../../first-screen.js";import{viewFocusValues as A}from"../../../../../../format/lib/content/picture-focus-rows.js";const le={...$,render:i=>{const{name:F,process:V,mediaType:j,mediaVideo:m,mediaVideoAv1:C,mediaVideoPhone:L,mediaVideoAv1Phone:T,mediaImage:k,poster:s,posterPhone:H,loadingShows:c,videoFrame:E,videoFramePhone:I,mediaSrc:l,videoSpeed:p,tintColor:O,overlay:_,groups:w,editor:o,overlayColor:u,overlayPosition:f,mediaLayout:M,mediaLayoutPhone:x,mediaImage2:R,tintColor2:U,tintOpacity2:N,videoSource:D,youtubeUrl:K,videoPlayback:W,_partMotion:Y,id:t,...y}=i,h=G("HeroSlide",j),e=h==="image",n=A(i,S.image),d=A(i,S.image2),P=o?.metadata?.[ee],q=b(t,m||l,o?.metadata),a=e?void 0:r(L)||void 0,z=a?b(t,a,o?.metadata):void 0,v=X({...y,sectionAccent:Q(y.sectionAccent)});return B(J,{themeClassName:v?.className,themeStyle:v?.style,name:F||void 0,process:Z(V,"Label",o),mediaType:h,mediaSrc:(e?k:m||l)||void 0,videoSpeed:typeof p=="number"?p:void 0,poster:g({loadingShows:c,poster:s,videoFrame:E||q}),mediaAv1:e?void 0:r(C)||void 0,mediaSrcPhone:a,mediaAv1Phone:e?void 0:r(T)||void 0,posterPhone:e?void 0:g({loadingShows:c,poster:s,posterPhone:H,videoFramePhone:I||z},"phone"),objectPosition:e?n.desktop:void 0,objectPositionPhone:e?n.phone:void 0,objectPositionTablet:e?n.tablet:void 0,tintColor:O,tintOpacity:e?_:0,groups:w,editing:o?.isEditing,overlayColor:typeof u=="string"?u:void 0,overlayPosition:typeof f=="string"?f:void 0,mediaLayout:M,mediaLayoutPhone:x,mediaImage2:R||void 0,objectPosition2:d.desktop,objectPosition2Phone:d.phone,objectPosition2Tablet:d.tablet,tintColor2:U,tintOpacity2:N,videoSource:D,youtubeUrl:K,videoPlayback:W,partMotion:Y,...Array.isArray(P)&&P.includes(t)?{laterSlide:!0}:{}})}};export{le as HeroSlideRender};
@@ -1 +1 @@
1
- import{phoneKey as K}from"efficient-easel/draw";import{SITE_SIDE as X}from"efficient-easel/screen/lib/content/length-units";import{finiteNumber as r}from"../../../../../format/lib/finite-number.js";import{BLOCK_ALIGN_BOX_WORD as Y}from"../../../../../format/lib/content/block-align.js";import{splitImageOverlay as x}from"../../../../../format/lib/document/blocks/general/Split/meta.js";import{INTRO_SIZE_UNIT_KEYS as j,introSizeUnitsOf as w}from"../../../../../format/lib/content/section-type-size.js";import{PART_UNIT_KEY_OF as T}from"../../part-styles.js";import{parseIntroBleedLayout as G}from"../../../../../format/lib/sections/intro-bleed-layout.js";import{fluidToken as q,token as n}from"./section-head-looks.js";import{labelStyle as Z}from"../../../../../format/lib/document/seed-parts.js";import{BUTTON as c,DIM as B,DROP_COMMON as p,DROP_SIDE_PADDING as H,INNER_BOX as i,NO_PAD as u,NUMBER_TEXT as $,SAME_KEYS as m,SECTION_BOX as y,TEXT as b,fillFrom as O,lineSides as a,pictureCell as A,siteGutterOf as M,smallText as s,wrapperPad as v,wrapperPadKeys as _}from"./section-to-box-row-parts.js";const I=(e,t,o)=>{const k=r(e),f=r(t),S=(V,g)=>g&&g!=="px"?{[V]:g}:{};return{...k===void 0?{}:{size:k,...S(T.size,o?.desktop)},...f===void 0?{}:{sizePhone:f,...S(T.sizePhone,o?.phone)}}},J=e=>G(e.layout)==="stacked",E=e=>Math.min(Math.max(r(e.overlay)??60,0),100),d=e=>r(e)??100,Q={textStyle:"heading-1",sizeToken:{...q("headingLarge",48,7,96).sizeToken,pxPhone:36},weight:500,lineHeight:.95,letterSpacing:-.03},ee=[s("eyebrow",n("label",14)),...[!0,!1].map(e=>({kind:"text",key:"title",role:"heading",props:b,style:{...Q,case:e?"upper":"none"},styleFrom:t=>{const o=w(t);return I(t.titleSizeDesktop,t.titleSizeMobile,{desktop:o.titleDesktop,phone:o.titleMobile})},when:t=>t.uppercase===!0===e})),{kind:"text",key:"body",props:{...B,maxWidth:560},style:{textStyle:"body-1",...n("body",17,16),lineHeight:1.6,paragraphSpacing:24},styleFrom:e=>{const t=w(e);return I(e.bodySizeDesktop,e.bodySizeMobile,{desktop:t.bodyDesktop,phone:t.bodyMobile})}},{kind:"group",name:"Button",props:{...i,align:"start",sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:c}]}],D=e=>`${e}: a Button block has no colour of its own (it follows the site Button colour, as the old fallback did); 0 of 3 live US nodes store one (CLI read, 2026-11-03)`,te=()=>({name:"Scroll-Over Text",skip:e=>J(e)?"the stacked layout: its words row's height floor (`copyShare*`) and the header subtraction have no Box setting; 0 live US nodes":void 0,boxProps:e=>({...y,direction:"column",justify:"center",align:"start",gap:24,gapPhone:24,share:"content",...u,placement:"left",darken:E(e),darkenStyle:"even",sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:d(e.heightDesktop),sectionHeightModePhone:"fixed",sectionHeightUnitPhone:"%",sectionHeightValuePhone:d(e.heightMobile)}),box:[...m.filter(e=>!String(typeof e=="string"?e:e[0]).startsWith("sectionHeight")),["imageSrc","bgImage"],["imageSrcMobile","bgImagePhone"],["overlay","darken",(e,t)=>E(t)],["heightDesktop","sectionHeightValue",e=>d(e)],["heightMobile","sectionHeightValuePhone",e=>d(e)]],parts:ee,drop:{uppercase:"not a value of its own: it picks the heading part — Case Upper when on, None (as typed) when off",layout:"not a value of its own: the overlay layout is this tree; a stacked node is skipped (`skip`)",copyShareDesktop:"the stacked layout's words-row floor, read only there; a stacked node is skipped",copyShareMobile:"the stacked layout's words-row floor, read only there; a stacked node is skipped",sticky:"the old pin key, read as `stickTop` by the section pin's one reader (lib/content/section-sticky); the Box keeps a stored `stickTop` (SAME_KEYS), and this row is switched off until the stored pages hold `stickTop`",titleSizeDesktop:"read by the heading part's `styleFrom`: a number is its Size, `inherit` and unset follow the token",titleSizeMobile:"read by the heading part's `styleFrom`: a number is its phone Size, `inherit` and unset follow the token",bodySizeDesktop:"read by the words part's `styleFrom`: a number is its Size, `inherit` and unset follow the token",bodySizeMobile:"read by the words part's `styleFrom`: a number is its phone Size, `inherit` and unset follow the token",...Object.fromEntries(j.map(e=>[e,"read by its part's `styleFrom`: the unit of that view's Size"])),buttonColor:D("Button color"),buttonTextColor:D("Button text color"),...p}}),N={textStyle:"heading-2",...n("headingMedium",56,36),weight:400,lineHeight:1.05,letterSpacing:-.03},oe={textStyle:"body-1",...n("body",16),lineHeight:1.7},z=e=>({kind:"text",key:"body",props:{...B,maxWidth:520},style:{...oe,paragraphSpacing:e}}),l={top:0,bottom:0,topPhone:0,bottomPhone:0},P=(e,t)=>typeof e.sectionHeightMode=="string"&&e.sectionHeightMode!=="auto"?{}:{sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:t,sectionHeightModePhone:"auto"},ne=(e,t)=>{const o=P(e,t);return Object.keys(o).length?o:{sectionHeightMode:e.sectionHeightMode,...e.sectionHeightValue===void 0?{}:{sectionHeightValue:e.sectionHeightValue},...e.sectionHeightUnit===void 0?{}:{sectionHeightUnit:e.sectionHeightUnit},sectionHeightModePhone:"auto"}},R={boxShapePhone:"landscape"},U="needs a black-and-white setting on a Box picture (the old photograph followed it, else the site's Photography); 0 live US nodes store it (CLI read, 2026-11-03)",ie=(e,t)=>({[e]:t,[K(e)]:t}),re={textStyle:"heading-2",...n("headingMedium",40),weight:500,case:"none",lineHeight:1,letterSpacing:-.02},F=e=>(Array.isArray(e.stats)?e.stats:[]).filter(t=>t&&(String(t.value??"").trim()!==""||String(t.label??"").trim()!=="")),ae=()=>({name:"Brand Text",boxProps:(e,t)=>({...y,...O("background")(e,t),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...v(e,l),...P(e,100)}),box:[...m,..._(l)],parts:[{kind:"group",name:"Words",props:()=>({...i,justify:"center",gap:28,gapPhone:28,sectionBorder:a({right:1}),sectionBorderPhone:a({}),...u,sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60,sectionPaddingRight:X}),parts:[s("eyebrow",n("label",14)),{kind:"text",key:"heading",role:"heading",props:b,style:{...N,case:"none"},mark:"accentItalic"},z(28),{kind:"group",name:"Stats",props:{...i,sectionPaddingTop:16,sectionPaddingTopPhone:16},parts:[{kind:"group",name:"Figures",props:e=>({...i,direction:"row",share:"equal",gap:24,gapPhone:24,maxWidth:520,phoneRow:Math.min(Math.max(F(e).length,1),3),...ie("sectionBorder",a({top:1})),sectionPaddingTop:28,sectionPaddingTopPhone:28}),parts:[{kind:"list",key:"stats",name:"Stat",of:F,props:{...i,gap:4,gapPhone:4},parts:[{kind:"text",key:"value",props:$,style:re},s("label",{...n("label",13),color:"labels",letterSpacing:.2})]}]}]}]},A("Picture","imageSrc",R)],drop:{...p,grayscale:U,...H}}),h=e=>{const t=e.textAlign==="center"||e.textAlign==="right"?{align:e.textAlign}:{},o=e.textAlignPhone==="left"||e.textAlignPhone==="center"||e.textAlignPhone==="right"?{alignPhone:e.textAlignPhone}:{};return{...t,...o}},se=e=>e.textAlign==="center"||e.textAlign==="right"?Y[e.textAlign]:"stretch",de=e=>Math.min(Math.max(r(e.overlay)??60,0),100),L=e=>typeof e=="string"&&e.trim()!=="",le={...c,align:"center",alignPhone:"center",buttonFillOpacity:0,buttonBorder:{width:1},buttonPaddingTop:16,buttonPaddingRight:28,buttonPaddingBottom:16,buttonPaddingLeft:28,buttonPaddingTopPhone:12,buttonPaddingRightPhone:20,buttonPaddingBottomPhone:12,buttonPaddingLeftPhone:20},C=e=>({...A("Picture","imageSrc",(t,o)=>({...L(t.imageSrc)&&x(t.imageOverlay)>0?{darken:x(t.imageOverlay),darkenStyle:"even"}:{},placement:"center",...R,sectionBorder:a(e?{left:1}:{right:1}),...W(e?"left":"right",M(o))}),[{kind:"button",key:"imageBtnText",href:"imageBtnHref",variant:"ghost",props:le,style:{...Z(13,12),letterSpacing:.18}}]),when:t=>t.reverse===!0===e}),W=(e,t)=>{const o=Math.max(60-t,0);return{sectionPaddingLeft:e==="left"?60:o,sectionPaddingRight:e==="right"?60:o}},he={kind:"group",name:"Words",props:(e,t)=>{const o=e.reverse===!0;return{...i,justify:"center",align:se(e),placement:e.textAlign==="center"?"center":e.textAlign==="right"?"right":"left",...ne(e,72),gap:24,gapPhone:24,...L(e.textBgSrc)?{darken:de(e),darkenStyle:"even"}:{},...u,sectionPaddingTop:100,sectionPaddingBottom:100,...W(o?"right":"left",M(t)),sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60}},box:[["textBgSrc","bgImage"]],parts:[{...s("eyebrow",n("label",14)),styleFrom:h},{kind:"text",key:"title",role:"heading",props:b,style:N,styleFrom:e=>({case:e.uppercase===!0?"upper":"none",...h(e)})},{...z(24),styleFrom:h},{kind:"group",name:"Button",props:{...i,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>{const t=h(e);return{...c,...t.align?{align:t.align}:{},...t.alignPhone?{alignPhone:t.alignPhone}:{}}}}]}]},ge=()=>({name:"Image & Text Split",boxProps:(e,t)=>({...y,...O("background")(e,t),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...v(e,l),...P(e,72)}),box:[...m,..._(l)],parts:[C(!1),he,C(!0)],drop:{reverse:"not a value of its own: it picks the order — the Picture Box first, or after the Words",uppercase:"not a value of its own: the heading part's Case — Upper when on, None (as typed) when off",textAlign:"read by each words part (its Align) and the Words Box (its Align); left writes nothing, as the old emitted no class",textAlignPhone:"read by each words part as its phone Align",textAlignTablet:"not carried to the words part's own tablet Align (`alignTablet`) yet: no old node stores it (new with the Tablet view's Text alignment row, 0 stored on the US sites 2026-11-06), so nothing moves",overlay:"read by the Words Box: its Darken over the words picture (60 when unset); no picture, no wash",imageOverlay:"read by the Picture Box: its Darken over the image column's picture (40 when unset, none at 0); no picture, no wash",grayscale:U,...p,...H}}),we={IntroBleed:te(),Manifesto:ae(),Split:ge()};export{we as EDITORIAL_SECTION_TO_BOX};
1
+ import{phoneKey as K}from"efficient-easel/draw";import{SITE_SIDE as Y}from"efficient-easel/screen/lib/content/length-units";import{finiteNumber as r}from"../../../../../format/lib/finite-number.js";import{BLOCK_ALIGN_BOX_WORD as X}from"../../../../../format/lib/content/block-align.js";import{splitImageOverlay as x}from"../../../../../format/lib/document/blocks/general/Split/meta.js";import{INTRO_SIZE_UNIT_KEYS as j,introSizeUnitsOf as T}from"../../../../../format/lib/content/section-type-size.js";import{PART_UNIT_KEY_OF as w}from"../../part-styles.js";import{parseIntroBleedLayout as G}from"../../../../../format/lib/sections/intro-bleed-layout.js";import{SECTION_PIN_STOP_KEY as q,SECTION_PIN_STOP_SCREEN as Z}from"../../../../../format/lib/content/section-sticky.js";import{fluidToken as $,token as n}from"./section-head-looks.js";import{labelStyle as J}from"../../../../../format/lib/document/seed-parts.js";import{BUTTON as c,DIM as B,DROP_COMMON as p,DROP_SIDE_PADDING as O,INNER_BOX as i,NO_PAD as u,NUMBER_TEXT as Q,SAME_KEYS as m,SECTION_BOX as y,TEXT as P,fillFrom as _,lineSides as a,pictureCell as H,siteGutterOf as A,smallText as s,wrapperPad as I,wrapperPadKeys as M}from"./section-to-box-row-parts.js";const v=(e,t,o)=>{const k=r(e),f=r(t),S=(V,g)=>g&&g!=="px"?{[V]:g}:{};return{...k===void 0?{}:{size:k,...S(w.size,o?.desktop)},...f===void 0?{}:{sizePhone:f,...S(w.sizePhone,o?.phone)}}},ee=e=>G(e.layout)==="stacked",E=e=>Math.min(Math.max(r(e.overlay)??60,0),100),d=e=>r(e)??100,te={textStyle:"heading-1",sizeToken:{...$("headingLarge",48,7,96).sizeToken,pxPhone:36},weight:500,lineHeight:.95,letterSpacing:-.03},oe=[s("eyebrow",n("label",14)),...[!0,!1].map(e=>({kind:"text",key:"title",role:"heading",props:P,style:{...te,case:e?"upper":"none"},styleFrom:t=>{const o=T(t);return v(t.titleSizeDesktop,t.titleSizeMobile,{desktop:o.titleDesktop,phone:o.titleMobile})},when:t=>t.uppercase===!0===e})),{kind:"text",key:"body",props:{...B,maxWidth:560},style:{textStyle:"body-1",...n("body",17,16),lineHeight:1.6,paragraphSpacing:24},styleFrom:e=>{const t=T(e);return v(e.bodySizeDesktop,e.bodySizeMobile,{desktop:t.bodyDesktop,phone:t.bodyMobile})}},{kind:"group",name:"Button",props:{...i,align:"start",sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:c}]}],N=e=>`${e}: a Button block has no colour of its own (it follows the site Button colour, as the old fallback did); 0 of 3 live US nodes store one (CLI read, 2026-11-03)`,ne=()=>({name:"Scroll-Over Text",skip:e=>ee(e)?"the stacked layout: its words row's height floor (`copyShare*`) and the header subtraction have no Box setting; 0 live US nodes":void 0,boxProps:e=>({...y,direction:"column",justify:"center",align:"start",gap:24,gapPhone:24,share:"content",...u,placement:"left",darken:E(e),darkenStyle:"even",sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:d(e.heightDesktop),sectionHeightModePhone:"fixed",sectionHeightUnitPhone:"%",sectionHeightValuePhone:d(e.heightMobile),[q]:Z}),box:[...m.filter(e=>!String(typeof e=="string"?e:e[0]).startsWith("sectionHeight")),["imageSrc","bgImage"],["imageSrcMobile","bgImagePhone"],["overlay","darken",(e,t)=>E(t)],["heightDesktop","sectionHeightValue",e=>d(e)],["heightMobile","sectionHeightValuePhone",e=>d(e)]],parts:oe,drop:{uppercase:"not a value of its own: it picks the heading part — Case Upper when on, None (as typed) when off",layout:"not a value of its own: the overlay layout is this tree; a stacked node is skipped (`skip`)",copyShareDesktop:"the stacked layout's words-row floor, read only there; a stacked node is skipped",copyShareMobile:"the stacked layout's words-row floor, read only there; a stacked node is skipped",sticky:"the old pin key, read as `stickTop` by the section pin's one reader (lib/content/section-sticky); the Box keeps a stored `stickTop` (SAME_KEYS), and this row is switched off until the stored pages hold `stickTop`",titleSizeDesktop:"read by the heading part's `styleFrom`: a number is its Size, `inherit` and unset follow the token",titleSizeMobile:"read by the heading part's `styleFrom`: a number is its phone Size, `inherit` and unset follow the token",bodySizeDesktop:"read by the words part's `styleFrom`: a number is its Size, `inherit` and unset follow the token",bodySizeMobile:"read by the words part's `styleFrom`: a number is its phone Size, `inherit` and unset follow the token",...Object.fromEntries(j.map(e=>[e,"read by its part's `styleFrom`: the unit of that view's Size"])),buttonColor:N("Button color"),buttonTextColor:N("Button text color"),...p}}),D={textStyle:"heading-2",...n("headingMedium",56,36),weight:400,lineHeight:1.05,letterSpacing:-.03},ie={textStyle:"body-1",...n("body",16),lineHeight:1.7},z=e=>({kind:"text",key:"body",props:{...B,maxWidth:520},style:{...ie,paragraphSpacing:e}}),l={top:0,bottom:0,topPhone:0,bottomPhone:0},b=(e,t)=>typeof e.sectionHeightMode=="string"&&e.sectionHeightMode!=="auto"?{}:{sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:t,sectionHeightModePhone:"auto"},re=(e,t)=>{const o=b(e,t);return Object.keys(o).length?o:{sectionHeightMode:e.sectionHeightMode,...e.sectionHeightValue===void 0?{}:{sectionHeightValue:e.sectionHeightValue},...e.sectionHeightUnit===void 0?{}:{sectionHeightUnit:e.sectionHeightUnit},sectionHeightModePhone:"auto"}},R={boxShapePhone:"landscape"},U="needs a black-and-white setting on a Box picture (the old photograph followed it, else the site's Photography); 0 live US nodes store it (CLI read, 2026-11-03)",ae=(e,t)=>({[e]:t,[K(e)]:t}),se={textStyle:"heading-2",...n("headingMedium",40),weight:500,case:"none",lineHeight:1,letterSpacing:-.02},C=e=>(Array.isArray(e.stats)?e.stats:[]).filter(t=>t&&(String(t.value??"").trim()!==""||String(t.label??"").trim()!=="")),de=()=>({name:"Brand Text",boxProps:(e,t)=>({...y,..._("background")(e,t),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...I(e,l),...b(e,100)}),box:[...m,...M(l)],parts:[{kind:"group",name:"Words",props:()=>({...i,justify:"center",gap:28,gapPhone:28,sectionBorder:a({right:1}),sectionBorderPhone:a({}),...u,sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60,sectionPaddingRight:Y}),parts:[s("eyebrow",n("label",14)),{kind:"text",key:"heading",role:"heading",props:P,style:{...D,case:"none"},mark:"accentItalic"},z(28),{kind:"group",name:"Stats",props:{...i,sectionPaddingTop:16,sectionPaddingTopPhone:16},parts:[{kind:"group",name:"Figures",props:e=>({...i,direction:"row",share:"equal",gap:24,gapPhone:24,maxWidth:520,phoneRow:Math.min(Math.max(C(e).length,1),3),...ae("sectionBorder",a({top:1})),sectionPaddingTop:28,sectionPaddingTopPhone:28}),parts:[{kind:"list",key:"stats",name:"Stat",of:C,props:{...i,gap:4,gapPhone:4},parts:[{kind:"text",key:"value",props:Q,style:se},s("label",{...n("label",13),color:"labels",letterSpacing:.2})]}]}]}]},H("Picture","imageSrc",R)],drop:{...p,grayscale:U,...O}}),h=e=>{const t=e.textAlign==="center"||e.textAlign==="right"?{align:e.textAlign}:{},o=e.textAlignPhone==="left"||e.textAlignPhone==="center"||e.textAlignPhone==="right"?{alignPhone:e.textAlignPhone}:{};return{...t,...o}},le=e=>e.textAlign==="center"||e.textAlign==="right"?X[e.textAlign]:"stretch",he=e=>Math.min(Math.max(r(e.overlay)??60,0),100),F=e=>typeof e=="string"&&e.trim()!=="",ge={...c,align:"center",alignPhone:"center",buttonFillOpacity:0,buttonBorder:{width:1},buttonPaddingTop:16,buttonPaddingRight:28,buttonPaddingBottom:16,buttonPaddingLeft:28,buttonPaddingTopPhone:12,buttonPaddingRightPhone:20,buttonPaddingBottomPhone:12,buttonPaddingLeftPhone:20},L=e=>({...H("Picture","imageSrc",(t,o)=>({...F(t.imageSrc)&&x(t.imageOverlay)>0?{darken:x(t.imageOverlay),darkenStyle:"even"}:{},placement:"center",...R,sectionBorder:a(e?{left:1}:{right:1}),...W(e?"left":"right",A(o))}),[{kind:"button",key:"imageBtnText",href:"imageBtnHref",variant:"ghost",props:ge,style:{...J(13,12),letterSpacing:.18}}]),when:t=>t.reverse===!0===e}),W=(e,t)=>{const o=Math.max(60-t,0);return{sectionPaddingLeft:e==="left"?60:o,sectionPaddingRight:e==="right"?60:o}},ce={kind:"group",name:"Words",props:(e,t)=>{const o=e.reverse===!0;return{...i,justify:"center",align:le(e),placement:e.textAlign==="center"?"center":e.textAlign==="right"?"right":"left",...re(e,72),gap:24,gapPhone:24,...F(e.textBgSrc)?{darken:he(e),darkenStyle:"even"}:{},...u,sectionPaddingTop:100,sectionPaddingBottom:100,...W(o?"right":"left",A(t)),sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60}},box:[["textBgSrc","bgImage"]],parts:[{...s("eyebrow",n("label",14)),styleFrom:h},{kind:"text",key:"title",role:"heading",props:P,style:D,styleFrom:e=>({case:e.uppercase===!0?"upper":"none",...h(e)})},{...z(24),styleFrom:h},{kind:"group",name:"Button",props:{...i,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>{const t=h(e);return{...c,...t.align?{align:t.align}:{},...t.alignPhone?{alignPhone:t.alignPhone}:{}}}}]}]},pe=()=>({name:"Image & Text Split",boxProps:(e,t)=>({...y,..._("background")(e,t),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...I(e,l),...b(e,72)}),box:[...m,...M(l)],parts:[L(!1),ce,L(!0)],drop:{reverse:"not a value of its own: it picks the order — the Picture Box first, or after the Words",uppercase:"not a value of its own: the heading part's Case — Upper when on, None (as typed) when off",textAlign:"read by each words part (its Align) and the Words Box (its Align); left writes nothing, as the old emitted no class",textAlignPhone:"read by each words part as its phone Align",textAlignTablet:"not carried to the words part's own tablet Align (`alignTablet`) yet: no old node stores it (new with the Tablet view's Text alignment row, 0 stored on the US sites 2026-11-06), so nothing moves",overlay:"read by the Words Box: its Darken over the words picture (60 when unset); no picture, no wash",imageOverlay:"read by the Picture Box: its Darken over the image column's picture (40 when unset, none at 0); no picture, no wash",grayscale:U,...p,...O}}),Oe={IntroBleed:ne(),Manifesto:de(),Split:pe()};export{Oe as EDITORIAL_SECTION_TO_BOX};
@@ -1,2 +1,3 @@
1
1
  import { type SectionToBoxRow } from "../../../sections/section-to-box.js";
2
+ export declare const CITY_PHOTO_WALL_HIDDEN = true;
2
3
  export declare const LOCATIONS_SECTION_TO_BOX: Readonly<Record<string, SectionToBoxRow>>;
@@ -1 +1 @@
1
- import{tabletKey as D}from"efficient-easel/draw";import{SECTION_WIDTH_KEYS as W}from"../../../../../format/lib/content/section-width.js";import{CELL_SPAN_KEYS as j}from"../../../../../format/lib/content/grid-span.js";import{SECTION_BOX_SLOT as G,SECTION_BOX_TYPE as K}from"../../../sections/section-to-box.js";import{BUTTON as k,DIM as i,DROP_COMMON as v,DROP_SIDE_PADDING as X,INNER_BOX as o,SAME_KEYS as Y,SECTION_BOX as f,SH_LINK as S,TEXT as p,bandAccent as $,bandIndex as z,bandPage as U,bandProps as P,bandWrites as F,smallText as c,wrapperPad as l}from"./section-to-box-row-parts.js";import{EDITORIAL_LINE as x,editorialHeadTree as V,token as d}from"./section-head-looks.js";import{boxPadding as m,labelStyle as q}from"../../../../../format/lib/document/seed-parts.js";import{readAnchorName as J}from"../../../../../format/lib/content/anchor-name.js";import{declaredBlockSource as T}from"../../../../../format/lib/content/block-sources.js";import{parseLocationTileShape as Q,splitLegacyRegion as w}from"../../../../../format/lib/content/contact.js";import{groupColumns as g}from"../../../../../format/lib/locations-grid.js";import{phoneHref as Z}from"../../../../../format/lib/links/phone-href.js";import{hasMapCoords as ee}from"../../../../../format/lib/map-styles.js";import{VIEW_HIDE_KEYS as te}from"../../../../../format/lib/content/view-hide-class.js";const r=e=>typeof e=="string"?e:e==null?"":String(e),h=e=>Array.isArray(e.locations)?e.locations.map(t=>t??{}):[],s=e=>r(e.group),B=e=>`loc-${e}`,_=e=>r(e.state).trim()||w(r(e.region)).state,O=e=>r(e.country).trim()||w(r(e.region)).country,E=e=>[_(e),O(e)].filter(Boolean).join(" · "),oe=e=>h(e).some(t=>r(t.photo).trim()!==""),ne=e=>h(e).some(t=>ee(Number(t.lat),Number(t.lng))),re=(e,t)=>h(e).filter(n=>s(n)===s(t)).length,ae=(e,t)=>re(e,t)===1?"wide":Q(e.imageShape),y={top:100,bottom:100,topPhone:60,bottomPhone:60},N=48,a=(e,t={})=>({...q(e),...t}),u={top:1,right:1,bottom:1,left:1},b={...o,direction:"row",share:"equal",gap:0},ie=e=>t=>t>g(t)?{...o,gap:0}:{...b,...t>1?{phoneRow:e}:{}},se={kind:"group",name:"Gallery",props:{...o,gap:20,_hidden:!0},when:oe,parts:[{kind:"group",name:"Gallery head",props:{...o,direction:"row",justify:"between",align:"end",gap:24,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},parts:[c("galleryKicker",a(12,{color:"accent",letterSpacing:.3})),{kind:"text",key:"galleryHint",props:{...i,align:"right",alignPhone:"left"},style:a(11,{letterSpacing:.22,alignPhone:"left"})}]},{kind:"group",name:"Groups",props:{...o,gap:24},parts:[{kind:"list",key:"locations",name:"City picture",props:{...o,darken:85,darkenStyle:"bottom",placement:"bottom-left",sectionBorder:u,...m(12,12)},item:(e,t,n)=>({props:{...r(e.photo).trim()?{bgImage:r(e.photo),hover:"mono"}:{},link:`#${B(t)}`,boxShape:ae(n,e)}}),parts:[{kind:"text",key:"name",props:p,style:a(11,{letterSpacing:.22,color:"text"})}],groups:{of:s,name:"Group",props:{...o,gap:10},head:e=>({label:s(e[0]??{})}),parts:[c("label",a(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:ie(2),perRow:g,rowName:"Row",rowProps:{...b,phoneRow:2}}}]}]},pe={kind:"group",name:"Words",props:{...o,gap:12,gapPhone:12,...m(28,28),sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",sectionHeightModePhone:"auto"},parts:[{kind:"group",name:"Name row",props:{...o,direction:"row",justify:"between",align:"start",gap:14,share:"content",phoneRow:2,sharePhone:"content",wrapPhone:"wrap",sectionPaddingBottom:6,sectionPaddingBottomPhone:6},parts:[{kind:"group",name:"Name",props:{...o,gap:6,gapPhone:6},parts:[{kind:"text",key:"name",role:"heading",props:p,style:{textStyle:"heading-3",...d("headingSmall",30),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}},{kind:"block",type:"Text",props:{...p,_partStyles:{text:a(12,{color:"accent",letterSpacing:.24,lineHeight:1.5})}},box:["region","state","country"].map(e=>[e,"text",(t,n)=>E(n)]),when:(e,t)=>E(t??{})!==""}]},{kind:"group",name:"Time zone",props:{...o,sectionBorder:u,...m(6,10)},parts:[{kind:"text",key:"timezone",props:{...i,textFit:"line"},style:a(12,{letterSpacing:.22,lineHeight:1.5})}]}]},{kind:"text",key:"address",props:i,style:{textStyle:"body-5",fontRole:"heading",...d("body",14),lineHeight:1.5}},{kind:"block",type:"ButtonBlock",props:{...k,...S,variant:"ghost",arrow:!1,_partStyles:{label:a(13,{letterSpacing:.18,color:"text",lineHeight:24/13})}},box:[["phone","label"],["phone","href",e=>Z(r(e))??"#"]],when:(e,t)=>r(t?.phone).trim()!==""},{kind:"text",key:"hours",props:i,style:a(12,{letterSpacing:.18,lineHeight:1.7})}]},ce={kind:"block",type:"LocationMap",props:e=>({mapTheme:typeof e.mapTheme=="string"?e.mapTheme:"auto"}),box:["name","lat","lng","mapsUrl","geocode",...["region","state"].map(e=>[e,"state",(t,n)=>_(n)]),...["region","country"].map(e=>[e,"country",(t,n)=>O(n)])]},le={kind:"group",name:"Map",props:{...o,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[ce]},de={kind:"list",key:"locations",name:"City",props:(e,t)=>({...o,gap:0,justify:"between",sectionBorder:u,jumpHighlight:!0,sectionAccent:z(e,t)>=0?U(e.sectionAccent,t):-1}),item:(e,t)=>({props:{anchor:B(t)}}),parts:[pe,le],groups:{of:s,name:"Group",props:{...o,gap:20},head:e=>{const t=e[0]??{};return{key:s(t),groupName:r(t.groupName),count:`${e.length} location${e.length===1?"":"s"}`}},parts:[{kind:"group",name:"Group head",props:{...o,direction:"row",justify:"between",align:"end",gap:16,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},when:(e,t)=>r(t?.key).trim()!=="",parts:[c("key",a(13,{color:"accent",letterSpacing:.3})),{kind:"text",key:"groupName",role:"heading",props:p,style:{textStyle:"heading-3",...d("headingSmall",24),case:"upper",weight:500,letterSpacing:-.01}},{kind:"text",key:"count",props:i,style:a(12,{letterSpacing:.22})}]}],itemsName:"Cities",itemsProps:e=>({...b,columns:g(e),[D("columns")]:1})}},C=a(10,{letterSpacing:.25}),me={kind:"block",type:K,props:{...o,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:ne,slot:G,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...i,text:"Location coordinates ©",_partStyles:{text:C}}},{kind:"block",type:"ButtonBlock",props:{...k,...S,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...C,color:"labels"}}}}]},I=(e,t)=>Object.fromEntries(t.filter(n=>e[n]!==void 0).map(n=>[n,e[n]])),M=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],H=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],A=e=>e.map(t=>[t,t,(n,R)=>l(R,y)[t]]),L=["sectionAccent","sectionAccent",$],ge=[...j,...te,...Object.values(W)],he={name:"City pictures",skip:e=>T(e)?`fed by the data source "${T(e)}": its cities are read as the page is served, not stored on the node`:void 0,boxProps:(e,t)=>({...f,direction:"column",gap:40,anchor:"studios",...x,...I(l(e,y),M),sectionPaddingBottom:N,sectionPaddingBottomPhone:N,...P(e,t)}),box:[...Y.filter(e=>e!=="sectionAccent"&&e!=="anchor"),L,["anchor","anchor",e=>J(e).trim()?e:"studios"],...A(M)],parts:[V("sectionNumber","heading","tagline"),se],also:[{name:"City maps",boxProps:(e,t)=>({...f,direction:"column",gap:40,sectionBorder:{bottom:1},...x,sectionPaddingTop:0,sectionPaddingTopPhone:0,...I(l(e,y),H),...P(e,t)}),box:[...ge,L,...A(H)],parts:[de,me]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:F,drop:{...v,...X,apiKey:"a stored Google Maps key from before the map needed none: the website's one map (components/SiteMap) takes no key, and a key is a credential, never page content",mapId:"a Google Maps style id from the same retired map: nothing in src/ reads it",gallery:"the retired separate tile list: the wall is derived from the cities (`components/ContactLocations`), nothing in src/ reads it",dataSource:"always empty here: a node fed by a source is skipped (see skip)"}},Ne={ContactLocations:he};export{Ne as LOCATIONS_SECTION_TO_BOX};
1
+ import{tabletKey as D}from"efficient-easel/draw";import{SECTION_WIDTH_KEYS as W}from"../../../../../format/lib/content/section-width.js";import{CELL_SPAN_KEYS as j}from"../../../../../format/lib/content/grid-span.js";import{SECTION_BOX_SLOT as G,SECTION_BOX_TYPE as K}from"../../../sections/section-to-box.js";import{BUTTON as k,DIM as i,DROP_COMMON as v,DROP_SIDE_PADDING as Y,INNER_BOX as o,SAME_KEYS as X,SECTION_BOX as f,SH_LINK as S,TEXT as p,bandAccent as $,bandIndex as z,bandPage as U,bandProps as P,bandWrites as F,smallText as c,wrapperPad as l}from"./section-to-box-row-parts.js";import{EDITORIAL_LINE as x,editorialHeadTree as V,token as d}from"./section-head-looks.js";import{boxPadding as m,labelStyle as q}from"../../../../../format/lib/document/seed-parts.js";import{readAnchorName as J}from"../../../../../format/lib/content/anchor-name.js";import{declaredBlockSource as T}from"../../../../../format/lib/content/block-sources.js";import{parseLocationTileShape as Q,splitLegacyRegion as _}from"../../../../../format/lib/content/contact.js";import{groupColumns as g}from"../../../../../format/lib/locations-grid.js";import{phoneHref as Z}from"../../../../../format/lib/links/phone-href.js";import{hasMapCoords as ee}from"../../../../../format/lib/map-styles.js";import{VIEW_HIDE_KEYS as te}from"../../../../../format/lib/content/view-hide-class.js";const r=e=>typeof e=="string"?e:e==null?"":String(e),h=e=>Array.isArray(e.locations)?e.locations.map(t=>t??{}):[],s=e=>r(e.group),w=e=>`loc-${e}`,B=e=>r(e.state).trim()||_(r(e.region)).state,O=e=>r(e.country).trim()||_(r(e.region)).country,E=e=>[B(e),O(e)].filter(Boolean).join(" · "),oe=e=>h(e).some(t=>r(t.photo).trim()!==""),ne=e=>h(e).some(t=>ee(Number(t.lat),Number(t.lng))),re=(e,t)=>h(e).filter(n=>s(n)===s(t)).length,ae=(e,t)=>re(e,t)===1?"wide":Q(e.imageShape),y={top:100,bottom:100,topPhone:60,bottomPhone:60},N=48,a=(e,t={})=>({...q(e),...t}),u={top:1,right:1,bottom:1,left:1},b={...o,direction:"row",share:"equal",gap:0},ie=e=>t=>t>g(t)?{...o,gap:0}:{...b,...t>1?{phoneRow:e}:{}},se=!0,pe={kind:"group",name:"Gallery",props:{...o,gap:20,...se?{_hidden:!0}:{}},when:oe,parts:[{kind:"group",name:"Gallery head",props:{...o,direction:"row",justify:"between",align:"end",gap:24,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},parts:[c("galleryKicker",a(12,{color:"accent",letterSpacing:.3})),{kind:"text",key:"galleryHint",props:{...i,align:"right",alignPhone:"left"},style:a(11,{letterSpacing:.22,alignPhone:"left"})}]},{kind:"group",name:"Groups",props:{...o,gap:24},parts:[{kind:"list",key:"locations",name:"City picture",props:{...o,darken:85,darkenStyle:"bottom",placement:"bottom-left",sectionBorder:u,...m(12,12)},item:(e,t,n)=>({props:{...r(e.photo).trim()?{bgImage:r(e.photo),hover:"mono"}:{},link:`#${w(t)}`,boxShape:ae(n,e)}}),parts:[{kind:"text",key:"name",props:p,style:a(11,{letterSpacing:.22,color:"text"})}],groups:{of:s,name:"Group",props:{...o,gap:10},head:e=>({label:s(e[0]??{})}),parts:[c("label",a(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:ie(2),perRow:g,rowName:"Row",rowProps:{...b,phoneRow:2}}}]}]},ce={kind:"group",name:"Words",props:{...o,gap:12,gapPhone:12,...m(28,28),sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",sectionHeightModePhone:"auto"},parts:[{kind:"group",name:"Name row",props:{...o,direction:"row",justify:"between",align:"start",gap:14,share:"content",phoneRow:2,sharePhone:"content",wrapPhone:"wrap",sectionPaddingBottom:6,sectionPaddingBottomPhone:6},parts:[{kind:"group",name:"Name",props:{...o,gap:6,gapPhone:6},parts:[{kind:"text",key:"name",role:"heading",props:p,style:{textStyle:"heading-3",...d("headingSmall",30),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}},{kind:"block",type:"Text",props:{...p,_partStyles:{text:a(12,{color:"accent",letterSpacing:.24,lineHeight:1.5})}},box:["region","state","country"].map(e=>[e,"text",(t,n)=>E(n)]),when:(e,t)=>E(t??{})!==""}]},{kind:"group",name:"Time zone",props:{...o,sectionBorder:u,...m(6,10)},parts:[{kind:"text",key:"timezone",props:{...i,textFit:"line"},style:a(12,{letterSpacing:.22,lineHeight:1.5})}]}]},{kind:"text",key:"address",props:i,style:{textStyle:"body-5",fontRole:"heading",...d("body",14),lineHeight:1.5}},{kind:"block",type:"ButtonBlock",props:{...k,...S,variant:"ghost",arrow:!1,_partStyles:{label:a(13,{letterSpacing:.18,color:"text",lineHeight:24/13})}},box:[["phone","label"],["phone","href",e=>Z(r(e))??"#"]],when:(e,t)=>r(t?.phone).trim()!==""},{kind:"text",key:"hours",props:i,style:a(12,{letterSpacing:.18,lineHeight:1.7})}]},le={kind:"block",type:"LocationMap",props:e=>({mapTheme:typeof e.mapTheme=="string"?e.mapTheme:"auto"}),box:["name","lat","lng","mapsUrl","geocode",...["region","state"].map(e=>[e,"state",(t,n)=>B(n)]),...["region","country"].map(e=>[e,"country",(t,n)=>O(n)])]},de={kind:"group",name:"Map",props:{...o,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[le]},me={kind:"list",key:"locations",name:"City",props:(e,t)=>({...o,gap:0,justify:"between",sectionBorder:u,jumpHighlight:!0,sectionAccent:z(e,t)>=0?U(e.sectionAccent,t):-1}),item:(e,t)=>({props:{anchor:w(t)}}),parts:[ce,de],groups:{of:s,name:"Group",props:{...o,gap:20},head:e=>{const t=e[0]??{};return{key:s(t),groupName:r(t.groupName),count:`${e.length} location${e.length===1?"":"s"}`}},parts:[{kind:"group",name:"Group head",props:{...o,direction:"row",justify:"between",align:"end",gap:16,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},when:(e,t)=>r(t?.key).trim()!=="",parts:[c("key",a(13,{color:"accent",letterSpacing:.3})),{kind:"text",key:"groupName",role:"heading",props:p,style:{textStyle:"heading-3",...d("headingSmall",24),case:"upper",weight:500,letterSpacing:-.01}},{kind:"text",key:"count",props:i,style:a(12,{letterSpacing:.22})}]}],itemsName:"Cities",itemsProps:e=>({...b,columns:g(e),[D("columns")]:1})}},C=a(10,{letterSpacing:.25}),ge={kind:"block",type:K,props:{...o,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:ne,slot:G,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...i,text:"Location coordinates ©",_partStyles:{text:C}}},{kind:"block",type:"ButtonBlock",props:{...k,...S,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...C,color:"labels"}}}}]},I=(e,t)=>Object.fromEntries(t.filter(n=>e[n]!==void 0).map(n=>[n,e[n]])),H=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],M=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],L=e=>e.map(t=>[t,t,(n,R)=>l(R,y)[t]]),A=["sectionAccent","sectionAccent",$],he=[...j,...te,...Object.values(W)],ye={name:"City pictures",skip:e=>T(e)?`fed by the data source "${T(e)}": its cities are read as the page is served, not stored on the node`:void 0,boxProps:(e,t)=>({...f,direction:"column",gap:40,anchor:"studios",...x,...I(l(e,y),H),sectionPaddingBottom:N,sectionPaddingBottomPhone:N,...P(e,t)}),box:[...X.filter(e=>e!=="sectionAccent"&&e!=="anchor"),A,["anchor","anchor",e=>J(e).trim()?e:"studios"],...L(H)],parts:[V("sectionNumber","heading","tagline"),pe],also:[{name:"City maps",boxProps:(e,t)=>({...f,direction:"column",gap:40,sectionBorder:{bottom:1},...x,sectionPaddingTop:0,sectionPaddingTopPhone:0,...I(l(e,y),M),...P(e,t)}),box:[...he,A,...L(M)],parts:[me,ge]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:F,drop:{...v,...Y,apiKey:"a stored Google Maps key from before the map needed none: the website's one map (components/SiteMap) takes no key, and a key is a credential, never page content",mapId:"a Google Maps style id from the same retired map: nothing in src/ reads it",gallery:"the retired separate tile list: the wall is derived from the cities (`components/ContactLocations`), nothing in src/ reads it",dataSource:"always empty here: a node fed by a source is skipped (see skip)"}},Ce={ContactLocations:ye};export{se as CITY_PHOTO_WALL_HIDDEN,Ce as LOCATIONS_SECTION_TO_BOX};
@@ -1 +1 @@
1
- import{hasWords as L,registerSectionToBox as t}from"../../../sections/section-to-box.js";import{BUTTON as T,DIM as f,DROP_COMMON as s,DROP_SIDE_PADDING as O,INNER_BOX as o,leadLine as D,SAME_KEYS as d,SECTION_BOX as p,TEXT as l,innerPad as y,siteGutterOf as w,innerPadKeys as B,smallText as P,wrapperPad as _,wrapperPadKeys as u}from"./section-to-box-row-parts.js";import{CARDS_SECTION_TO_BOX as W}from"./section-to-box-rows-cards.js";import{storedUnit as k}from"../../../../../format/lib/content/css-length.js";import{finiteNumber as M}from"../../../../../format/lib/finite-number.js";import{STATS_SECTION_TO_BOX as G}from"./section-to-box-rows-stats.js";import{LOGOS_SECTION_TO_BOX as U}from"./section-to-box-rows-logos.js";import{STRIP_SECTION_TO_BOX as F}from"./section-to-box-rows-strip.js";import{TIMELINE_SECTION_TO_BOX as K}from"./section-to-box-rows-timeline.js";import{LOCATIONS_SECTION_TO_BOX as Y}from"./section-to-box-rows-locations.js";import{HEAD_ONLY_SECTION_TO_BOX as j}from"./section-to-box-rows-head.js";import{PAGE_HEADER_SECTION_TO_BOX as z}from"./section-to-box-rows-pageheader.js";import{TAB_BAR_SECTION_TO_BOX as q}from"./section-to-box-rows-tabbar.js";import{DOCBODY_SECTION_TO_BOX as J}from"./section-to-box-rows-docbody.js";import{EDITORIAL_SECTION_TO_BOX as Q}from"./section-to-box-rows-editorial.js";import{FORMS_SECTION_TO_BOX as V}from"./section-to-box-rows-forms.js";import{CHECKOUT_SECTION_TO_BOX as Z}from"./section-to-box-rows-checkout.js";import{PROOF_SECTION_TO_BOX as $}from"./section-to-box-rows-proof.js";import{INTEGRATIONS_SECTION_TO_BOX as ee}from"./section-to-box-rows-integrations.js";import{PROMO_SECTION_TO_BOX as te}from"./section-to-box-rows-promo.js";import{FITMENT_SECTION_TO_BOX as oe}from"./section-to-box-rows-fitment.js";import{fluidToken as ne,headTree as E,token as i}from"./section-head-looks.js";import{CTA_PH as b,PH as ie,phAccentAsMarks as m}from"../../../../../format/lib/document/blocks/placeholders.js";import{PROSE_PH as S}from"../../../../../format/lib/document/blocks/general/Prose/meta.js";import{PARAGRAPHS_A_PH as g}from"../../../../../format/lib/document/blocks/general/ParagraphsA/meta.js";import{BANNER_PH as re}from"../../../../../format/lib/document/blocks/general/Banner/meta.js";import{TITLE_WITH_BUTTONS_PH as ae,TITLE_WITH_BUTTONS_SCAFFOLD_BUTTONS as se}from"../../../../../format/lib/document/blocks/general/TitleWithButtons/meta.js";import{SECTION_HEADER_PH as a}from"../../../../../format/lib/document/blocks/general/SectionHeader/meta.js";import{boxPadding as de,fillSlot as pe}from"../../../../../format/lib/document/seed-parts.js";const x={top:72,bottom:72,topPhone:72,bottomPhone:72},le={name:"Editorial Text",boxProps:e=>({...p,direction:"column",gap:28,gapPhone:28,sectionBorder:{top:1},..._(e,x)}),box:[["topBorder","sectionBorder",e=>e===!1?void 0:{top:1}],...d,...u(x)],parts:[E("Prose"),{kind:"text",key:"body",props:f,style:{textStyle:"body-1",...i("body",16),lineHeight:1.7,paragraphSpacing:18}}],drop:{...s,...O,headPlacement:"needs a row per head placement: an own-box Prose draws no head (its words sit in a Section Header above it), the row always draws the head. 0 of 123 live nodes store it (the live export, 2026-10-24)"}},N={buttonPaddingTop:20,buttonPaddingBottom:20,buttonPaddingLeft:28,buttonPaddingRight:28},I=(e,n)=>n?.variant==="primary",A=(e,n)=>({kind:"list",key:"buttons",name:"Button",flat:!0,when:e,parts:[{kind:"button",key:"label",href:"href",when:I,variant:"primary",style:{letterSpacing:.3},props:{...T,...N,...n}},{kind:"button",key:"label",href:"href",when:(r,h)=>!I(r,h),variant:"ghost",style:{letterSpacing:.3},props:{...T,...N,...n}}]}),c=e=>L(e.title),he={name:"Call-to-Action Heading",boxProps:e=>({...p,direction:"row",align:"center",justify:c(e)?"between":"end",gap:60,gapPhone:60,share:"content",sectionBorder:{bottom:1},...y(e,"TitleWithButtons")}),box:[...d,...B("TitleWithButtons")],parts:[{kind:"group",name:"Title",props:{...o,maxWidth:1e3,widthFitPhone:"fill"},parts:[{kind:"text",key:"title",role:"heading",props:l,style:{textStyle:"heading-1",...ne("headingLarge",48,7,108),case:"upper",lineHeight:.94,letterSpacing:-.035},mark:"accentItalic"}]},{kind:"group",name:"Buttons",props:e=>({...o,gap:14,gapPhone:14,widthFitPhone:"fill",...c(e)?{minWidth:280,minWidthPhone:0}:{}}),parts:[A(c,{widthFit:"fill",iconPosition:"end"}),A(e=>!c(e),{})]}],drop:{...s,buttonsAlign:"moves the buttons only when there is no heading (4 of 128 live nodes), where the Box puts them at the end. 0 of 128 live nodes store it (the live export, 2026-10-24)",buttonsAlignPhone:"the phone's own side of `buttonsAlign`, read only with no heading; no old node stores it (it is new with the Phone view's Block alignment row), so nothing moves",buttonsAlignTablet:"the tablet's own side of `buttonsAlign`, read only with no heading; no old node stores it (it is new with the Tablet view's Block alignment row, 0 stored on the US sites 2026-11-05), so nothing moves"}};function me(e,n){const r=w(n,{to:k(e.sectionPaddingUnit)}),h=w(n,{view:"phone",to:k(e.sectionPaddingUnitPhone),maxPx:20});return{sectionPaddingLeft:r,sectionPaddingRight:r,sectionPaddingLeftPhone:h,sectionPaddingRightPhone:h}}const H={top:40,bottom:64,topPhone:24,bottomPhone:36},ge={name:"Section Header",boxProps:(e,n)=>({...p,direction:"column",gap:0,..._(e,H),...me(e,n)}),box:[...d,...u(H)],parts:[E("SectionHeader")],drop:{...s,...O,headStyle:"needs a row per head look: the row draws the standard look; the editorial, simple, statement, natural and essay looks are other layouts. 0 of 69 live nodes store it (the live export, 2026-10-24)",eyebrowLook:"read only by the simple, statement, natural and essay looks, which this row does not draw. 0 of 69 live nodes store it",rowGap:"read only by the natural look, which this row does not draw. 0 of 69 live nodes store it",descriptionSize:"read only by the natural look, which this row does not draw. 0 of 69 live nodes store it",numStyle:"Solid (the default; 4 of 69 live nodes store it) IS the eyebrow Text the row draws; Outlined (0 live) needs an outlined-number text look"}},R={...o,direction:"row",share:[67],gap:32},C={...o,sectionPaddingLeft:24,sectionPaddingLeftPhone:0},v=(e,n,r)=>({kind:"group",name:e,props:n,parts:[r]}),ce={name:"Lead Text",boxProps:e=>({...p,direction:"column",gap:40,gapPhone:40,sectionBorder:{bottom:1},...y(e,"ParagraphsA")}),box:[...d,...B("ParagraphsA")],parts:[{kind:"group",name:"Numbers",props:{...R,gapPhone:24,sectionBorder:{bottom:1},sectionPaddingBottom:40,sectionPaddingBottomPhone:40},parts:[{kind:"group",name:"Eyebrow",props:{...o,sectionPaddingTop:5,sectionPaddingBottom:1,sectionPaddingTopPhone:5,sectionPaddingBottomPhone:1},parts:[P("eyebrow",{color:"labels",...i("label",12),letterSpacing:.24})]},v("Stats column",o,{kind:"group",name:"Stats",props:{...C,gap:0,gapPhone:0},parts:[{kind:"list",key:"stats",name:"Stat",flat:!0,parts:[D("value","label",{...i("label",13),letterSpacing:.18,lineHeight:1.8})]}]})]},{kind:"group",name:"Words",props:{...R,gapPhone:28},parts:[{kind:"group",name:"Lead",props:o,parts:[{kind:"group",name:"Measure",props:{...o,maxWidth:780},parts:[{kind:"text",key:"lead",props:l,style:{textStyle:"heading-3",...i("headingSmall",22,20),weight:400,case:"none",lineHeight:1.45,letterSpacing:-.005}}]}]},v("Note column",{...o,justify:"end"},{kind:"group",name:"Founders",props:{...C,gap:8,gapPhone:8},parts:[{kind:"group",name:"Note",props:{...o,gap:6,gapPhone:6},parts:[{kind:"text",key:"foundersHeading",props:l,style:{textStyle:"body-1",fontRole:"heading",...i("body",18,16),weight:500,letterSpacing:-.01,lineHeight:1.7}},{kind:"text",key:"foundersBody",props:f,style:{textStyle:"body-5",fontRole:"heading",...i("body",14,12),lineHeight:1.7}}]},P("attribution",{...i("label",12,10),letterSpacing:.24,lineHeight:1.7})]})]}],drop:{...s}},X={top:24,bottom:24,topPhone:24,bottomPhone:24},Te={name:"Banner",boxProps:e=>({...p,direction:"column",gap:0,..._(e,X)}),box:[...d,"contained",...u(X)],parts:[{kind:"group",name:"Card",keepEmpty:!0,props:{...o,gap:28,gapPhone:28,placement:"top-left",darken:60,darkenStyle:"even",sectionBorder:{width:1},...pe("surface"),...de(64,40,40,24)},box:[["imageSrc","bgImage"],["overlay","darken",e=>Math.min(Math.max(M(e)??60,0),100)]],parts:[{kind:"group",name:"Words",props:{...o,gap:20,gapPhone:20},parts:[P("eyebrow"),{kind:"text",key:"title",role:"heading",props:{...l,maxWidth:680},style:{weight:500,lineHeight:1.05,letterSpacing:-.03,case:"none",...i("headingMedium",44,32)}},{kind:"text",key:"body",props:{...l,maxWidth:680},style:{textStyle:"body-1",lineHeight:1.6,...i("body",16)}}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:T}]}],drop:{...s,...O}},Oe={Prose:le,TitleWithButtons:he,SectionHeader:ge,ParagraphsA:ce,Banner:Te},je={Prose:()=>({eyebrow:S.eyebrow,title:m(S.title),body:S.body}),TitleWithButtons:()=>({title:m(ae.title),buttons:se.map(e=>({...e}))}),SectionHeader:()=>({num:a.num,title:m(a.title),description:a.description,linkText:a.linkText,linkHref:b.href}),ParagraphsA:()=>({eyebrow:g.eyebrow,lead:ie.body,foundersHeading:g.foundersHeading,foundersBody:g.foundersBody,attribution:g.attribution}),Banner:()=>({...re,ctaText:b.text,ctaHref:b.href}),ProcessSteps:()=>({num:a.num,title:m(a.title)})};function ze(){t(Oe),t(G),t(U),t(W),t(F),t(K),t(Y),t(j),t(z),t(q),t(J),t(Q),t(V),t(Z),t(oe),t($),t(ee),t(te)}export{Oe as GENERAL_SECTION_TO_BOX,je as TEXT_PRESS_STARTERS,ze as registerGeneralSectionRows};
1
+ import{hasWords as D,registerSectionToBox as t}from"../../../sections/section-to-box.js";import{BUTTON as O,DIM as S,DROP_COMMON as s,DROP_SIDE_PADDING as P,INNER_BOX as o,leadLine as W,SAME_KEYS as d,SECTION_BOX as p,TEXT as l,innerPad as w,siteGutterOf as B,innerPadKeys as k,smallText as _,wrapperPad as b,wrapperPadKeys as u}from"./section-to-box-row-parts.js";import{CARDS_SECTION_TO_BOX as M}from"./section-to-box-rows-cards.js";import{storedUnit as E}from"../../../../../format/lib/content/css-length.js";import{finiteNumber as G}from"../../../../../format/lib/finite-number.js";import{STATS_SECTION_TO_BOX as U}from"./section-to-box-rows-stats.js";import{LOGOS_SECTION_TO_BOX as F}from"./section-to-box-rows-logos.js";import{STRIP_SECTION_TO_BOX as K}from"./section-to-box-rows-strip.js";import{TIMELINE_SECTION_TO_BOX as Y}from"./section-to-box-rows-timeline.js";import{LOCATIONS_SECTION_TO_BOX as j}from"./section-to-box-rows-locations.js";import{HEAD_ONLY_SECTION_TO_BOX as z}from"./section-to-box-rows-head.js";import{PAGE_HEADER_SECTION_TO_BOX as q}from"./section-to-box-rows-pageheader.js";import{TAB_BAR_SECTION_TO_BOX as J}from"./section-to-box-rows-tabbar.js";import{DOCBODY_SECTION_TO_BOX as Q}from"./section-to-box-rows-docbody.js";import{EDITORIAL_SECTION_TO_BOX as V}from"./section-to-box-rows-editorial.js";import{FORMS_SECTION_TO_BOX as Z}from"./section-to-box-rows-forms.js";import{CHECKOUT_SECTION_TO_BOX as $}from"./section-to-box-rows-checkout.js";import{PROOF_SECTION_TO_BOX as ee}from"./section-to-box-rows-proof.js";import{INTEGRATIONS_SECTION_TO_BOX as te}from"./section-to-box-rows-integrations.js";import{PROMO_SECTION_TO_BOX as oe}from"./section-to-box-rows-promo.js";import{FITMENT_SECTION_TO_BOX as ne}from"./section-to-box-rows-fitment.js";import{fluidToken as ie,headTree as x,token as i}from"./section-head-looks.js";import{CTA_PH as h,PH as re,phAccentAsMarks as m}from"../../../../../format/lib/document/blocks/placeholders.js";import{PROSE_PH as f}from"../../../../../format/lib/document/blocks/general/Prose/meta.js";import{PARAGRAPHS_A_PH as c}from"../../../../../format/lib/document/blocks/general/ParagraphsA/meta.js";import{BANNER_PH as ae}from"../../../../../format/lib/document/blocks/general/Banner/meta.js";import{TITLE_WITH_BUTTONS_PH as se,TITLE_WITH_BUTTONS_SCAFFOLD_BUTTONS as de}from"../../../../../format/lib/document/blocks/general/TitleWithButtons/meta.js";import{SECTION_HEADER_PH as a}from"../../../../../format/lib/document/blocks/general/SectionHeader/meta.js";import{INTRO_PH as y}from"../../../../../format/lib/document/blocks/general/IntroBleed/meta.js";import{boxPadding as pe,fillSlot as le}from"../../../../../format/lib/document/seed-parts.js";const N={top:72,bottom:72,topPhone:72,bottomPhone:72},he={name:"Editorial Text",boxProps:e=>({...p,direction:"column",gap:28,gapPhone:28,sectionBorder:{top:1},...b(e,N)}),box:[["topBorder","sectionBorder",e=>e===!1?void 0:{top:1}],...d,...u(N)],parts:[x("Prose"),{kind:"text",key:"body",props:S,style:{textStyle:"body-1",...i("body",16),lineHeight:1.7,paragraphSpacing:18}}],drop:{...s,...P,headPlacement:"needs a row per head placement: an own-box Prose draws no head (its words sit in a Section Header above it), the row always draws the head. 0 of 123 live nodes store it (the live export, 2026-10-24)"}},I={buttonPaddingTop:20,buttonPaddingBottom:20,buttonPaddingLeft:28,buttonPaddingRight:28},H=(e,n)=>n?.variant==="primary",A=(e,n)=>({kind:"list",key:"buttons",name:"Button",flat:!0,when:e,parts:[{kind:"button",key:"label",href:"href",when:H,variant:"primary",style:{letterSpacing:.3},props:{...O,...I,...n}},{kind:"button",key:"label",href:"href",when:(r,g)=>!H(r,g),variant:"ghost",style:{letterSpacing:.3},props:{...O,...I,...n}}]}),T=e=>D(e.title),me={name:"Call-to-Action Heading",boxProps:e=>({...p,direction:"row",align:"center",justify:T(e)?"between":"end",gap:60,gapPhone:60,share:"content",sectionBorder:{bottom:1},...w(e,"TitleWithButtons")}),box:[...d,...k("TitleWithButtons")],parts:[{kind:"group",name:"Title",props:{...o,maxWidth:1e3,widthFitPhone:"fill"},parts:[{kind:"text",key:"title",role:"heading",props:l,style:{textStyle:"heading-1",...ie("headingLarge",48,7,108),case:"upper",lineHeight:.94,letterSpacing:-.035},mark:"accentItalic"}]},{kind:"group",name:"Buttons",props:e=>({...o,gap:14,gapPhone:14,widthFitPhone:"fill",...T(e)?{minWidth:280,minWidthPhone:0}:{}}),parts:[A(T,{widthFit:"fill",iconPosition:"end"}),A(e=>!T(e),{})]}],drop:{...s,buttonsAlign:"moves the buttons only when there is no heading (4 of 128 live nodes), where the Box puts them at the end. 0 of 128 live nodes store it (the live export, 2026-10-24)",buttonsAlignPhone:"the phone's own side of `buttonsAlign`, read only with no heading; no old node stores it (it is new with the Phone view's Block alignment row), so nothing moves",buttonsAlignTablet:"the tablet's own side of `buttonsAlign`, read only with no heading; no old node stores it (it is new with the Tablet view's Block alignment row, 0 stored on the US sites 2026-11-05), so nothing moves"}};function ge(e,n){const r=B(n,{to:E(e.sectionPaddingUnit)}),g=B(n,{view:"phone",to:E(e.sectionPaddingUnitPhone),maxPx:20});return{sectionPaddingLeft:r,sectionPaddingRight:r,sectionPaddingLeftPhone:g,sectionPaddingRightPhone:g}}const R={top:40,bottom:64,topPhone:24,bottomPhone:36},ce={name:"Section Header",boxProps:(e,n)=>({...p,direction:"column",gap:0,...b(e,R),...ge(e,n)}),box:[...d,...u(R)],parts:[x("SectionHeader")],drop:{...s,...P,headStyle:"needs a row per head look: the row draws the standard look; the editorial, simple, statement, natural and essay looks are other layouts. 0 of 69 live nodes store it (the live export, 2026-10-24)",eyebrowLook:"read only by the simple, statement, natural and essay looks, which this row does not draw. 0 of 69 live nodes store it",rowGap:"read only by the natural look, which this row does not draw. 0 of 69 live nodes store it",descriptionSize:"read only by the natural look, which this row does not draw. 0 of 69 live nodes store it",numStyle:"Solid (the default; 4 of 69 live nodes store it) IS the eyebrow Text the row draws; Outlined (0 live) needs an outlined-number text look"}},C={...o,direction:"row",share:[67],gap:32},v={...o,sectionPaddingLeft:24,sectionPaddingLeftPhone:0},X=(e,n,r)=>({kind:"group",name:e,props:n,parts:[r]}),Te={name:"Lead Text",boxProps:e=>({...p,direction:"column",gap:40,gapPhone:40,sectionBorder:{bottom:1},...w(e,"ParagraphsA")}),box:[...d,...k("ParagraphsA")],parts:[{kind:"group",name:"Numbers",props:{...C,gapPhone:24,sectionBorder:{bottom:1},sectionPaddingBottom:40,sectionPaddingBottomPhone:40},parts:[{kind:"group",name:"Eyebrow",props:{...o,sectionPaddingTop:5,sectionPaddingBottom:1,sectionPaddingTopPhone:5,sectionPaddingBottomPhone:1},parts:[_("eyebrow",{color:"labels",...i("label",12),letterSpacing:.24})]},X("Stats column",o,{kind:"group",name:"Stats",props:{...v,gap:0,gapPhone:0},parts:[{kind:"list",key:"stats",name:"Stat",flat:!0,parts:[W("value","label",{...i("label",13),letterSpacing:.18,lineHeight:1.8})]}]})]},{kind:"group",name:"Words",props:{...C,gapPhone:28},parts:[{kind:"group",name:"Lead",props:o,parts:[{kind:"group",name:"Measure",props:{...o,maxWidth:780},parts:[{kind:"text",key:"lead",props:l,style:{textStyle:"heading-3",...i("headingSmall",22,20),weight:400,case:"none",lineHeight:1.45,letterSpacing:-.005}}]}]},X("Note column",{...o,justify:"end"},{kind:"group",name:"Founders",props:{...v,gap:8,gapPhone:8},parts:[{kind:"group",name:"Note",props:{...o,gap:6,gapPhone:6},parts:[{kind:"text",key:"foundersHeading",props:l,style:{textStyle:"body-1",fontRole:"heading",...i("body",18,16),weight:500,letterSpacing:-.01,lineHeight:1.7}},{kind:"text",key:"foundersBody",props:S,style:{textStyle:"body-5",fontRole:"heading",...i("body",14,12),lineHeight:1.7}}]},_("attribution",{...i("label",12,10),letterSpacing:.24,lineHeight:1.7})]})]}],drop:{...s}},L={top:24,bottom:24,topPhone:24,bottomPhone:24},Oe={name:"Banner",boxProps:e=>({...p,direction:"column",gap:0,...b(e,L)}),box:[...d,"contained",...u(L)],parts:[{kind:"group",name:"Card",keepEmpty:!0,props:{...o,gap:28,gapPhone:28,placement:"top-left",darken:60,darkenStyle:"even",sectionBorder:{width:1},...le("surface"),...pe(64,40,40,24)},box:[["imageSrc","bgImage"],["overlay","darken",e=>Math.min(Math.max(G(e)??60,0),100)]],parts:[{kind:"group",name:"Words",props:{...o,gap:20,gapPhone:20},parts:[_("eyebrow"),{kind:"text",key:"title",role:"heading",props:{...l,maxWidth:680},style:{weight:500,lineHeight:1.05,letterSpacing:-.03,case:"none",...i("headingMedium",44,32)}},{kind:"text",key:"body",props:{...l,maxWidth:680},style:{textStyle:"body-1",lineHeight:1.6,...i("body",16)}}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:O}]}],drop:{...s,...P}},Pe={Prose:he,TitleWithButtons:me,SectionHeader:ce,ParagraphsA:Te,Banner:Oe},qe={Prose:()=>({eyebrow:f.eyebrow,title:m(f.title),body:f.body}),TitleWithButtons:()=>({title:m(se.title),buttons:de.map(e=>({...e}))}),SectionHeader:()=>({num:a.num,title:m(a.title),description:a.description,linkText:a.linkText,linkHref:h.href}),ParagraphsA:()=>({eyebrow:c.eyebrow,lead:re.body,foundersHeading:c.foundersHeading,foundersBody:c.foundersBody,attribution:c.attribution}),Banner:()=>({...ae,ctaText:h.text,ctaHref:h.href}),ProcessSteps:()=>({num:a.num,title:m(a.title)}),IntroBleed:()=>({eyebrow:y.eyebrow,title:m(y.title),body:y.body,ctaText:h.text,ctaHref:h.href})};function Je(){t(Pe),t(U),t(F),t(M),t(K),t(Y),t(j),t(z),t(q),t(J),t(Q),t(V),t(Z),t($),t(ne),t(ee),t(te),t(oe)}export{Pe as GENERAL_SECTION_TO_BOX,qe as TEXT_PRESS_STARTERS,Je as registerGeneralSectionRows};
@@ -1,4 +1,5 @@
1
1
  import { type ShowWhenRule } from "./show-when.js";
2
+ import { type HeroMediaType } from "../../../format/lib/hero-media-layout.js";
2
3
  export declare const HERO_MEDIA_PARTS: readonly ["media", "image", "image2"];
3
4
  export type HeroMediaPart = (typeof HERO_MEDIA_PARTS)[number];
4
5
  export declare const HERO_MEDIA_PART_LABELS: Readonly<Record<HeroMediaPart, string>>;
@@ -12,7 +13,8 @@ export declare const VIDEO_FILE_LABEL = "Video file";
12
13
  export declare const VIDEO_FILE_PROMPT = "Upload a video file";
13
14
  export declare const AV1_FILE_LABEL = "AV1 file";
14
15
  export declare const AV1_FILE_PROMPT = "Upload an AV1 file";
15
- export declare function forMediaType(type: "image" | "video", fallback: "image" | "video"): {
16
+ export declare function mediaTypeShownWhen(type: HeroMediaType, fallback: HeroMediaType): ShowWhenRule;
17
+ export declare function forMediaType(type: HeroMediaType, fallback: HeroMediaType): {
16
18
  readonly field: "mediaType";
17
19
  readonly is: "video" | "image";
18
20
  readonly default: "video" | "image";
@@ -20,9 +22,9 @@ export declare function forMediaType(type: "image" | "video", fallback: "image"
20
22
  export declare const HERO_MEDIA_PART_TYPES: ReadonlySet<string>;
21
23
  export declare function inPart<F extends object>(part: HeroMediaPart, field: F): F;
22
24
  export declare function heroMediaFields<F extends Record<string, unknown>>(fields: F, { parts, onlyFor, fallback, rules, }: {
23
- parts?: Partial<Record<HeroMediaPart, readonly (keyof F & string)[]>>;
24
- onlyFor: Record<"image" | "video", readonly (keyof F & string)[]>;
25
- fallback: "image" | "video";
25
+ parts?: Partial<Record<HeroMediaPart, readonly string[]>>;
26
+ onlyFor: Record<HeroMediaType, readonly string[]>;
27
+ fallback: HeroMediaType;
26
28
  rules?: Partial<Record<keyof F & string, ShowWhenRule>>;
27
29
  }): F;
28
30
  export declare function fieldPartOf(field: unknown): HeroMediaPart | null;
@@ -1 +1 @@
1
- import{withShowWhen as s}from"./show-when.js";import{heroPictureCount as c}from"../../../format/lib/hero-media-layout.js";const f=["media","image","image2"],u={media:"Media",image:"Image",image2:"Image 2"},P={media:"heroMedia",image:"heroImage",image2:"heroImage2"};function l(e,t){return e==="image"&&c(t)>1?"Image 1":u[e]}const I="Video file",A="Upload a video file",O="AV1 file",R="Upload an AV1 file";function m(e,t){return{field:"mediaType",is:e,default:t}}const _=new Set(["HeroSingle"]),d="heroPart";function E(e,t){return{...t,[d]:e}}function T(e,{parts:t={},onlyFor:i,fallback:p,rules:a}){const n={...e};for(const o of["image","video"])for(const r of i[o])n[r]=s(n[r],m(o,p));for(const[o,r]of Object.entries(a??{}))r&&(n[o]=s(n[o],r));for(const o of f)for(const r of t[o]??[])n[r]=E(o,n[r]);return n}function g(e){const t=e?.[d];return f.includes(t)?t:null}function L(e,t){const i={};for(const[p,a]of Object.entries(e))g(a)===t&&(i[p]=a);return i}function M(e){if(!_.has(e.type))return[];const t=[{part:"media",label:u.media,depth:0}];return(e.props.mediaType??"image")!=="video"&&(t.push({part:"image",label:l("image",e.props),depth:1}),c(e.props)>1&&t.push({part:"image2",label:l("image2",e.props),depth:1})),t}function y(e,t){return`${e}::${t}`}function H(e){if(!e)return null;const t=e.lastIndexOf("::");if(t<=0)return null;const i=e.slice(t+2);return f.includes(i)?{nodeId:e.slice(0,t),part:i}:null}const V="data-sf-hero-part";export{O as AV1_FILE_LABEL,R as AV1_FILE_PROMPT,f as HERO_MEDIA_PARTS,u as HERO_MEDIA_PART_LABELS,_ as HERO_MEDIA_PART_TYPES,V as HERO_PART_ATTR,P as HERO_PART_MODE,I as VIDEO_FILE_LABEL,A as VIDEO_FILE_PROMPT,g as fieldPartOf,L as fieldsOfPart,m as forMediaType,T as heroMediaFields,M as heroMediaRows,y as heroPartId,l as heroPartLabel,E as inPart,H as readHeroPartId};
1
+ import{shownForOption as h,withShowWhen as l}from"./show-when.js";import{HERO_ABSENT_MEDIA_TYPE as _,HERO_MEDIA_TYPES as f,heroMediaType as O,heroPictureCount as u}from"../../../format/lib/hero-media-layout.js";const s=["media","image","image2"],d={media:"Media",image:"Image",image2:"Image 2"},M={media:"heroMedia",image:"heroImage",image2:"heroImage2"};function m(e,t){return e==="image"&&u(t)>1?"Image 1":d[e]}const y="Video file",w="Upload a video file",L="AV1 file",b="Upload an AV1 file";function P(e,t){return h("mediaType",f,t,[e])}function H(e,t){return{field:"mediaType",is:e,default:t}}const x=new Set(Object.keys(_)),E="heroPart";function A(e,t){return{...t,[E]:e}}function D(e,{parts:t={},onlyFor:r,fallback:p,rules:a}){const i={...e},c=[...Object.values(t).flat(),...f.flatMap(o=>r[o])].filter(o=>!(o in e));if(c.length)throw new Error(`heroMediaFields: ${c.join(", ")} is not a row of this block`);for(const o of f)for(const n of r[o])i[n]=l(i[n],P(o,p));for(const[o,n]of Object.entries(a??{}))n&&(i[o]=l(i[o],n));for(const o of s)for(const n of t[o]??[])i[n]=A(o,i[n]);return i}function I(e){const t=e?.[E];return s.includes(t)?t:null}function S(e,t){const r={};for(const[p,a]of Object.entries(e))I(a)===t&&(r[p]=a);return r}function k(e){if(!x.has(e.type))return[];const t=[{part:"media",label:d.media,depth:0}];return O(e.type,e.props.mediaType)!=="video"&&(t.push({part:"image",label:m("image",e.props),depth:1}),u(e.props)>1&&t.push({part:"image2",label:m("image2",e.props),depth:1})),t}function V(e,t){return`${e}::${t}`}function F(e){if(!e)return null;const t=e.lastIndexOf("::");if(t<=0)return null;const r=e.slice(t+2);return s.includes(r)?{nodeId:e.slice(0,t),part:r}:null}const j="data-sf-hero-part";export{L as AV1_FILE_LABEL,b as AV1_FILE_PROMPT,s as HERO_MEDIA_PARTS,d as HERO_MEDIA_PART_LABELS,x as HERO_MEDIA_PART_TYPES,j as HERO_PART_ATTR,M as HERO_PART_MODE,y as VIDEO_FILE_LABEL,w as VIDEO_FILE_PROMPT,I as fieldPartOf,S as fieldsOfPart,H as forMediaType,D as heroMediaFields,k as heroMediaRows,V as heroPartId,m as heroPartLabel,A as inPart,P as mediaTypeShownWhen,F as readHeroPartId};