efficient-web-builder 65.0.0 → 66.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. package/CHANGELOG.md +66 -0
  2. package/dist/editor/components/AnchorField.js +1 -1
  3. package/dist/editor/components/CardShadowField.js +1 -1
  4. package/dist/editor/components/PagesPanel.js +1 -1
  5. package/dist/editor/components/SectionEditor.js +1 -1
  6. package/dist/editor/components/WebsitePreviewButton.js +1 -1
  7. package/dist/editor/components/storefront-editor.css +16 -24
  8. package/dist/editor/components/usePreviewHref.js +1 -1
  9. package/dist/editor/lib/document/blocks/general/Banner/fields.js +1 -1
  10. package/dist/editor/lib/document/blocks/general/ButtonBlock/fields.js +1 -1
  11. package/dist/editor/lib/document/blocks/general/Divider/fields.js +1 -1
  12. package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
  13. package/dist/editor/lib/document/blocks/general/Footprint/fields.d.ts +0 -1
  14. package/dist/editor/lib/document/blocks/general/Footprint/fields.js +1 -1
  15. package/dist/editor/lib/document/blocks/general/HeroGroup/fields.js +1 -1
  16. package/dist/editor/lib/document/blocks/general/ImageBlock/fields.js +1 -1
  17. package/dist/editor/lib/document/blocks/general/LogoBlock/fields.js +1 -1
  18. package/dist/editor/lib/document/blocks/general/ProcessSteps/fields.js +1 -1
  19. package/dist/editor/lib/document/blocks/general/SectionHeader/fields.js +1 -1
  20. package/dist/editor/lib/document/blocks/general/Text/fields.js +1 -1
  21. package/dist/editor/lib/document/blocks/general/index.d.ts +2 -2
  22. package/dist/editor/lib/document/box-fields.d.ts +2 -1
  23. package/dist/editor/lib/document/box-fields.js +1 -1
  24. package/dist/editor/lib/document/card-row-fields.d.ts +3 -0
  25. package/dist/editor/lib/document/card-row-fields.js +1 -1
  26. package/dist/editor/lib/document/controls.d.ts +11 -10
  27. package/dist/editor/lib/document/controls.js +1 -1
  28. package/dist/editor/lib/document/field-groups.d.ts +0 -3
  29. package/dist/editor/lib/document/field-groups.js +1 -1
  30. package/dist/editor/lib/document/passes/inspector.js +1 -1
  31. package/dist/editor/lib/sections/section-dry-run.d.ts +1 -20
  32. package/dist/editor/lib/sections/section-dry-run.js +2 -2
  33. package/dist/editor/lib/sections/text-layouts.js +1 -1
  34. package/dist/format/lib/content/block-sources.d.ts +3 -0
  35. package/dist/format/lib/content/block-sources.js +1 -1
  36. package/dist/format/lib/content/box-background.d.ts +1 -0
  37. package/dist/format/lib/content/box-background.js +1 -1
  38. package/dist/format/lib/content/box-link.d.ts +11 -0
  39. package/dist/format/lib/content/box-link.js +8 -8
  40. package/dist/format/lib/content/box-phone-place.d.ts +0 -2
  41. package/dist/format/lib/content/box-phone-place.js +1 -1
  42. package/dist/format/lib/content/box-side-space.js +1 -1
  43. package/dist/format/lib/content/card-image-shape.d.ts +5 -1
  44. package/dist/format/lib/content/card-image-shape.js +1 -1
  45. package/dist/format/lib/content/card-template.d.ts +1 -0
  46. package/dist/format/lib/content/card-template.js +1 -1
  47. package/dist/format/lib/content/contact.d.ts +0 -1
  48. package/dist/format/lib/content/contact.js +2 -2
  49. package/dist/format/lib/content/css-length.d.ts +1 -0
  50. package/dist/format/lib/content/css-length.js +1 -0
  51. package/dist/format/lib/content/page-width.d.ts +17 -1
  52. package/dist/format/lib/content/page-width.js +1 -1
  53. package/dist/format/lib/document/blocks/general/Banner/meta.d.ts +5 -0
  54. package/dist/format/lib/document/blocks/general/Banner/meta.js +1 -1
  55. package/dist/format/lib/document/blocks/general/Footprint/card-seed.d.ts +2 -0
  56. package/dist/format/lib/document/blocks/general/Footprint/card-seed.js +1 -1
  57. package/dist/format/lib/document/blocks/general/Footprint/meta.js +2 -2
  58. package/dist/format/lib/document/blocks/general/ProcessSteps/column-seed.d.ts +5 -0
  59. package/dist/format/lib/document/blocks/general/ProcessSteps/column-seed.js +1 -0
  60. package/dist/format/lib/document/blocks/general/ProcessSteps/meta.js +1 -1
  61. package/dist/format/lib/document/blocks/general/SectionHeader/meta.d.ts +6 -0
  62. package/dist/format/lib/document/blocks/general/SectionHeader/meta.js +1 -1
  63. package/dist/format/lib/document/blocks/general/TitleWithButtons/meta.d.ts +2 -0
  64. package/dist/format/lib/document/blocks/general/TitleWithButtons/meta.js +2 -2
  65. package/dist/format/lib/document/media-drop.js +1 -1
  66. package/dist/format/lib/document/one-h1.d.ts +2 -0
  67. package/dist/format/lib/document/one-h1.js +1 -1
  68. package/dist/format/lib/document/passes/types.d.ts +1 -0
  69. package/dist/format/lib/document/renamed-props.d.ts +1 -0
  70. package/dist/format/lib/document/renamed-props.js +1 -1
  71. package/dist/format/lib/document/section-catalog.js +10 -2
  72. package/dist/format/lib/document/section-descriptions.js +1 -1
  73. package/dist/format/lib/editor-words-catalogue.d.ts +10 -0
  74. package/dist/format/lib/editor-words-catalogue.js +3 -3
  75. package/dist/format/lib/editor-words-kept.js +1 -1
  76. package/dist/format/lib/fit-words.js +4 -1
  77. package/dist/format/lib/links/page-link-rules.d.ts +0 -1
  78. package/dist/format/lib/links/page-link-rules.js +1 -1
  79. package/dist/format/lib/markup.d.ts +1 -0
  80. package/dist/format/lib/markup.js +2 -2
  81. package/dist/format/lib/sections/section-presets.js +1 -1
  82. package/dist/format/lib/sections/timeline-year-shape.js +1 -1
  83. package/dist/format/lib/source-rules/editor-words.js +1 -1
  84. package/dist/format/lib/source-rules/one-length-control.d.ts +18 -0
  85. package/dist/format/lib/source-rules/one-length-control.js +16 -0
  86. package/dist/format/lib/source-rules/support/label-extraction.js +3 -3
  87. package/dist/format/lib/theme.d.ts +0 -1
  88. package/dist/format/lib/theme.js +3 -3
  89. package/dist/format/lib/web-runtime.d.ts +2 -0
  90. package/dist/format/lib/web-runtime.js +1 -1
  91. package/dist/render/components/BlockFrame.d.ts +3 -3
  92. package/dist/render/components/BlockFrame.js +1 -1
  93. package/dist/render/components/Breadcrumb.js +1 -1
  94. package/dist/render/components/Btn.js +1 -1
  95. package/dist/render/components/CardRowContext.d.ts +7 -1
  96. package/dist/render/components/CardRowContext.js +1 -1
  97. package/dist/render/components/CategoryBar.js +1 -1
  98. package/dist/render/components/ContactLocations.js +2 -2
  99. package/dist/render/components/DealerFinder.d.ts +4 -1
  100. package/dist/render/components/DealerFinder.js +1 -1
  101. package/dist/render/components/Divider.js +1 -1
  102. package/dist/render/components/DocMasthead.js +1 -1
  103. package/dist/render/components/DocTabs.js +1 -1
  104. package/dist/render/components/FeaturedCover.js +1 -1
  105. package/dist/render/components/Flex.js +1 -1
  106. package/dist/render/components/Footprint.d.ts +5 -3
  107. package/dist/render/components/Footprint.js +1 -1
  108. package/dist/render/components/Heading.d.ts +0 -1
  109. package/dist/render/components/Heading.js +1 -1
  110. package/dist/render/components/ImageBlock.js +1 -1
  111. package/dist/render/components/KeyFeatures.js +1 -1
  112. package/dist/render/components/LocationMap.js +1 -1
  113. package/dist/render/components/LogoBlock.js +1 -1
  114. package/dist/render/components/Logos.d.ts +1 -2
  115. package/dist/render/components/Logos.js +1 -1
  116. package/dist/render/components/LongRead.js +1 -1
  117. package/dist/render/components/PostCard.js +1 -1
  118. package/dist/render/components/ProcessSteps.d.ts +2 -1
  119. package/dist/render/components/ProcessSteps.js +1 -1
  120. package/dist/render/components/SectionHeader.js +1 -1
  121. package/dist/render/components/SideListLayout.d.ts +4 -1
  122. package/dist/render/components/SideListLayout.js +1 -1
  123. package/dist/render/components/Split.js +1 -1
  124. package/dist/render/components/Text.d.ts +2 -1
  125. package/dist/render/components/Text.js +1 -1
  126. package/dist/render/components/Timeline.js +1 -1
  127. package/dist/render/components/TimelineRail.d.ts +11 -3
  128. package/dist/render/components/TimelineRail.js +1 -1
  129. package/dist/render/components/TimelineTrack.js +1 -1
  130. package/dist/render/components/TitleWithButtons.js +1 -1
  131. package/dist/render/components/goldPhrases.js +3 -3
  132. package/dist/render/lib/content/block-size.d.ts +5 -1
  133. package/dist/render/lib/content/block-size.js +1 -1
  134. package/dist/render/lib/content/box-stack-line.d.ts +1 -1
  135. package/dist/render/lib/content/box-stack-line.js +1 -1
  136. package/dist/render/lib/content/button-look.d.ts +2 -0
  137. package/dist/render/lib/content/button-look.js +1 -1
  138. package/dist/render/lib/content/section-edge.js +1 -1
  139. package/dist/render/lib/content/section-padding.d.ts +5 -2
  140. package/dist/render/lib/content/section-padding.js +1 -1
  141. package/dist/render/lib/dealer-source.d.ts +6 -2
  142. package/dist/render/lib/dealer-source.js +1 -1
  143. package/dist/render/lib/document/blocks/general/Banner/render.js +1 -1
  144. package/dist/render/lib/document/blocks/general/CardList/render.js +1 -1
  145. package/dist/render/lib/document/blocks/general/Footprint/render.js +1 -1
  146. package/dist/render/lib/document/blocks/general/ImageBlock/render.js +1 -1
  147. package/dist/render/lib/document/blocks/general/SectionHeader/render.js +1 -1
  148. package/dist/render/lib/document/blocks/general/Text/render.js +1 -1
  149. package/dist/render/lib/document/blocks/general/TitleWithButtons/render.js +1 -1
  150. package/dist/render/lib/document/blocks/general/section-head-looks.d.ts +2 -0
  151. package/dist/render/lib/document/blocks/general/section-head-looks.js +2 -2
  152. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
  153. package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.js +1 -1
  154. package/dist/render/lib/document/blocks/general/section-to-box-rows-editorial.js +1 -1
  155. package/dist/render/lib/document/blocks/general/section-to-box-rows-head.d.ts +2 -2
  156. package/dist/render/lib/document/blocks/general/section-to-box-rows-head.js +1 -1
  157. package/dist/render/lib/document/blocks/general/section-to-box-rows-locations.js +1 -1
  158. package/dist/render/lib/document/blocks/general/section-to-box-rows-pageheader.js +1 -1
  159. package/dist/render/lib/document/blocks/general/section-to-box-rows-stats.js +1 -1
  160. package/dist/render/lib/document/blocks/general/section-to-box-rows-tabbar.d.ts +3 -0
  161. package/dist/render/lib/document/blocks/general/section-to-box-rows-tabbar.js +1 -0
  162. package/dist/render/lib/document/blocks/general/section-to-box-rows-timeline.js +2 -2
  163. package/dist/render/lib/document/blocks/general/section-to-box-rows.d.ts +3 -0
  164. package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
  165. package/dist/render/lib/document/card-press-titles.d.ts +10 -0
  166. package/dist/render/lib/document/card-press-titles.js +1 -0
  167. package/dist/render/lib/document/passes/section-height.js +1 -1
  168. package/dist/render/lib/document/passes/section-padding.js +1 -1
  169. package/dist/render/lib/document/published-passes.js +1 -1
  170. package/dist/render/lib/document/slot-specs.js +1 -1
  171. package/dist/render/lib/sections/section-to-box.d.ts +0 -15
  172. package/dist/render/lib/sections/section-to-box.js +1 -1
  173. package/dist/render/lib/site-runtime.d.ts +4 -1
  174. package/dist/render/lib/site-runtime.js +1 -1
  175. package/package.json +5 -5
  176. package/dist/editor/components/TemplateFieldRow.d.ts +0 -11
  177. package/dist/editor/components/TemplateFieldRow.js +0 -1
  178. package/dist/editor/lib/document/panel-heading-scope.d.ts +0 -8
  179. package/dist/editor/lib/document/panel-heading-scope.js +0 -1
  180. package/dist/editor/lib/document/template-field.d.ts +0 -13
  181. package/dist/editor/lib/document/template-field.js +0 -1
  182. package/dist/format/lib/canvas-accent.d.ts +0 -1
  183. package/dist/format/lib/canvas-accent.js +0 -1
  184. package/dist/format/lib/source-rules/padding-units-declared.d.ts +0 -2
  185. package/dist/format/lib/source-rules/padding-units-declared.js +0 -6
@@ -0,0 +1,16 @@
1
+ import{ruleChecks as h}from"./rule.js";const p=/\bboxFieldBuilders\(([^)]*)\)/g,g=/\bbuttonFieldSet\(\{([\s\S]*?)\n\}\)/g,x=/\bblockSizeFieldSet\(\{([\s\S]*?)\}\)/g,f=/["']px["']\s*,\s*["']%["']\s*,\s*["']vw["']/,k=/\bpaddingUnits\b/,m=/\bimport\b[^;]*\bUnitMenu\b[^;]*from\s*["']efficient-shell/,S=/\bslider\(\s*(?:rowLabel\()?"([^"]+)"(?:(?!\bslider\()[^;]){0,300}?,\s*"(px|%|vh|vw)"\s*[,)]/g,y=/overlay|tint|opacity|speed|text height/i,U=/\breadout:\s*false\b/g,B=/\bunitKey:\s*"([A-Za-z]+)"|\b[A-Z_]+_UNIT_KEY\s*=\s*"([A-Za-z]+)"/g,T=[{key:"buttonBorderUnit",reader:"lib/content/button-look.ts"},{key:"buttonCornersUnit",reader:"lib/content/button-look.ts"},{key:"Unit`",reader:"lib/content/block-size.ts"}],_=["lib/document/blocks/general/Logos/fields.tsx|Logo height","lib/document/blocks/general/LogoBlock/fields.tsx|Height","lib/document/blocks/general/Divider/fields.tsx|Thickness","lib/document/blocks/general/Divider/fields.tsx|Length","lib/document/blocks/general/HeroGroup/fields.tsx|Width","lib/document/blocks/general/Flex/fields.tsx|Stacks below","lib/document/blocks/general/Flex/fields.tsx|Narrows below","lib/document/blocks/general/Logos/fields.tsx|Space above and below","lib/document/controls.tsx|Top","lib/document/controls.tsx|Bottom","lib/document/controls.tsx|Left","lib/document/controls.tsx|Right"],u=2,b=r=>/(^|\/)(components|lib\/content)\//.test(r);function d(r){const e={binder:null,button:null,blockSize:null,unbound:[],old:[],lists:[],menus:[],strings:[],noBox:0,unread:[]},o=r.filter(t=>/\.tsx?$/.test(t.path)&&!t.path.includes("source-rules/")),s=o.filter(t=>b(t.path)).map(t=>t.text),n=t=>s.some(l=>l.includes(t));for(const t of o){for(const[l,i]of[[p,"binder"],[g,"button"],[x,"blockSize"]])for(const c of t.text.matchAll(l))/\blengthUnits\b/.test(c[1])?e[i]=e[i]!==!1:(e[i]=!1,e.unbound.push(`${t.path}: ${c[0].slice(0,40)}`));k.test(t.text)&&e.old.push(t.path),f.test(t.text)&&e.lists.push(t.path),m.test(t.text)&&e.menus.push(t.path);for(const l of t.text.matchAll(S)){const[,i,c]=l;if(c==="%"&&y.test(i))continue;const a=`${t.path}|${i}`;_.includes(a)||e.strings.push(`${a} (${c})`)}if(e.noBox+=[...t.text.matchAll(U)].length,!b(t.path))for(const l of t.text.matchAll(B)){const i=l[1]??l[2];n(i)||e.unread.push(`${t.path}: ${i}`)}}for(const{key:t,reader:l}of T){const i=o.find(c=>c.path.endsWith(l));(!i||!i.text.includes(t))&&e.unread.push(`${l}: ${t}`)}return e}const $=[{path:"lib/document/box-fields.ts",text:`const rows = boxFieldBuilders(rowSay, { lengthUnits: T });
2
+ const more = boxFieldBuilders(rowSay, { paddingUnits: PADDING_UNITS });`},{path:"lib/document/ButtonBlock.tsx",text:`const b = buttonFieldSet({
3
+ say,
4
+ })`},{path:"lib/document/passes/inspector.tsx",text:"blockSizeFieldSet({ ...opts, say: rowSay })"},{path:"lib/document/row.tsx",text:`const UNITS = ["px", "%", "vw"];
5
+ import { UnitMenu } from "efficient-shell/ui";`},{path:"lib/document/blocks/general/Rule/fields.tsx",text:`gap: slider("Space", <GapIcon />, 0, 40, 1, 8, "px"),
6
+ shade: slider("Overlay", <OpacityIcon />, 0, 100, 5, 60, "%"),`},{path:"lib/document/no-box.tsx",text:`Slider({ readout: false });
7
+ Slider({ readout: false });
8
+ Slider({ readout: false });`},{path:"lib/document/rows.tsx",text:'const ROW = { kind: "radius", unitKey: "ruleCornerUnit" };'},{path:"lib/content/button-look.ts",text:"export const x = 1;"},{path:"lib/content/block-size.ts",text:"export const y = 1;"}],L=[{path:"lib/document/box-fields.ts",text:"const rows = boxFieldBuilders(rowSay, { lengthUnits: LENGTH_UNITS_TABLE });"},{path:"lib/document/ButtonBlock.tsx",text:`const b = buttonFieldSet({
9
+ lengthUnits: LENGTH_UNITS_TABLE,
10
+ say,
11
+ })`},{path:"lib/document/passes/inspector.tsx",text:`blockSizeFieldSet({
12
+ ...opts,
13
+ say: rowSay,
14
+ lengthUnits: LENGTH_UNITS_TABLE,
15
+ })`},{path:"lib/document/blocks/general/Rule/fields.tsx",text:`gap: slider("Space", <GapIcon />, 0, 40, 1, 8, { kind: "gap", unitKey: "gapUnit" }),
16
+ shade: slider("Overlay", <OpacityIcon />, 0, 100, 5, 60, "%"),`},{path:"components/Rule.tsx",text:"const unit = props.gapUnit;"},{path:"lib/content/button-look.ts",text:"p.buttonBorderUnit; p.buttonCornersUnit;"},{path:"lib/content/block-size.ts",text:"const unitKey = `${key}Unit`;"}];function w(r){return d(r)}function E(r){const e=h("one-length-control: every length row takes its kind's units from one table, typed, and its render reads the unit"),o=d($),s=d(L);e.check("fixture: a second binding with no table, no table on the other two sets, the old option, a list, a UnitMenu, a px slider, three no-box sliders and four unread keys are flagged",o.binder===!1&&o.button===!1&&o.blockSize===!1&&o.old.length===1&&o.lists.length===1&&o.menus.length===1&&o.strings.length===1&&o.noBox===3&&o.unread.length===4,JSON.stringify(o)),e.check("fixture: the three bindings, a kind on the row, a share in %, and the read keys pass",s.binder===!0&&s.button===!0&&s.blockSize===!0&&s.old.length===0&&s.lists.length===0&&s.menus.length===0&&s.strings.length===0&&s.noBox===0&&s.unread.length===0,JSON.stringify(s));const n=d(r),t=n.unbound.length?`: ${n.unbound.join("; ")}`:"";return e.check(`R1: every builder binding passes lengthUnits${t}`,n.binder===!0),e.check(`R2: every Button set passes lengthUnits${t}`,n.button===!0),e.check(`R3: every block-size set passes lengthUnits${t}`,n.blockSize===!0),e.check(`R4: no file passes paddingUnits or writes the unit list${[...n.old,...n.lists].length?`: ${[...n.old,...n.lists].join(", ")}`:""}`,n.old.length===0&&n.lists.length===0),e.check(`R5: no file imports UnitMenu${n.menus.length?`: ${n.menus.join(", ")}`:""}`,n.menus.length===0),e.check(`R6: no length slider passes a unit string${n.strings.length?`: ${n.strings.join("; ")}`:""}`,n.strings.length===0),e.check(`R7: no more than ${u} sliders draw no typed box (found ${n.noBox})`,n.noBox<=u),e.check(`R8: every unit key is read by a render file${n.unread.length?`: ${n.unread.join("; ")}`:""}`,n.unread.length===0),e.report()}export{_ as NOT_YET,u as NO_BOX_FLOOR,E as oneLengthControl,w as oneLengthControlScan};
@@ -1,5 +1,5 @@
1
- const g=["text","textarea","plainText","copyText","plainTextarea","linkField","textList","upload","toggle","checkbox","select","searchSelect","segmented","slider","colorInput","focalPicker","sizeField","backgroundField","multiSelect"];function A(e){const t=e.split(`
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
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
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 k=/className="sf-field"|from\s*["']efficient-easel/;function I(e){return e.path.startsWith("components/")&&e.path.endsWith(".tsx")&&k.test(e.text)}const O=6;function P(e,t){for(let n=t;n<Math.min(e.length,t+O);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),!P(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};
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};
@@ -124,7 +124,6 @@ export { DEFAULT_SHADOW_COLOR } from "efficient-easel/screen/lib/document/shadow
124
124
  export declare function normalizeCardShadow(v?: string | null): CardShadow;
125
125
  export declare function normalizeCardGap(v?: string | null): CardGap;
126
126
  export declare function normalizeHoverEffect(v?: string | null): HoverEffect;
127
- export declare const normalizeShadowColor: (v?: string | null) => string;
128
127
  export declare function cardShadowAttr(v?: string | null): CardShadow | undefined;
129
128
  export declare function cardGapAttr(v?: string | null): CardGap | undefined;
130
129
  export declare function hoverEffectAttr(v?: string | null): HoverEffect | undefined;
@@ -1,4 +1,4 @@
1
- import{contrastRatio as J,hexToRgb as d,parseHexColor as s,readableInk as y,relativeLuminance as g}from"efficient-shell/format";import{DEFAULT_SHADOW_COLOR as Q,pictureShadowColor as O}from"efficient-easel/screen/lib/document/shadow-values";const v="storefront-theme",Ye="sf:theme-mode",ze="sf:theme-switch",Be="hide",Xe="light",Ke=!1,H=7,N=18;function ee(e){return e>=H&&e<N}function We(e){const{mode:t,override:n,switchShown:r,hour:o}=e;return r&&(n==="light"||n==="dark")?n:t==="auto"?ee(o)?"light":"dark":t==="light"?"light":"dark"}function Ve(e){const{mode:t,switchShown:n}=e;return`
1
+ import{contrastRatio as q,hexToRgb as d,parseHexColor as s,readableInk as w,relativeLuminance as g}from"efficient-shell/format";import{DEFAULT_SHADOW_COLOR as J,pictureShadowColor as Q}from"efficient-easel/screen/lib/document/shadow-values";const v="storefront-theme",Ye="sf:theme-mode",ze="sf:theme-switch",Be="hide",Xe="light",Ke=!1,O=7,H=18;function ee(e){return e>=O&&e<H}function We(e){const{mode:t,override:n,switchShown:r,hour:o}=e;return r&&(n==="light"||n==="dark")?n:t==="auto"?ee(o)?"light":"dark":t==="light"?"light":"dark"}function Ve(e){const{mode:t,switchShown:n}=e;return`
2
2
  try {
3
3
  var mode = ${JSON.stringify(t)};
4
4
  var shown = ${n?"true":"false"};
@@ -8,11 +8,11 @@ import{contrastRatio as J,hexToRgb as d,parseHexColor as s,readableInk as y,rela
8
8
  theme = override;
9
9
  } else if (mode === 'auto') {
10
10
  var h = new Date().getHours();
11
- theme = (h >= ${H} && h < ${N}) ? 'light' : 'dark';
11
+ theme = (h >= ${O} && h < ${H}) ? 'light' : 'dark';
12
12
  } else {
13
13
  theme = mode === 'light' ? 'light' : 'dark';
14
14
  }
15
15
  if (theme === 'light') document.documentElement.setAttribute('data-theme', 'light');
16
16
  else document.documentElement.removeAttribute('data-theme');
17
17
  } catch (e) {}
18
- `}const l={background:"#0a0a0a",surface:"#131313",line:"#2a2a2a",muted:"#9a9388"},te=[{text:"#2e2e2e",accent:"#2e2e2e",background:"#ffffff",surface:"#f7f7f7",line:"#e0e0e0",muted:"#5c5c5c"},{text:"#f7f7f7",accent:"#f7f7f7",background:"#0a0a0a",surface:"#1b1b1b",line:"#363636",muted:"#a3a3a3"},{text:"#ffffff",accent:"#ffffff",background:"#2e2e2e",surface:"#3d3d3d",line:"#545454",muted:"#b0b0b0"},{text:"#0a0a0a",accent:"#0a0a0a",background:"#f7f7f7",surface:"#ffffff",line:"#d9d9d9",muted:"#5c5c5c"}],ne={selected:0,themes:te};function L(e){return!e||!Array.isArray(e.themes)||e.themes.length===0?{...ne}:{selected:Math.min(Math.max(0,e.selected??0),e.themes.length-1),themes:e.themes}}function _(e,t,n){const r=d(e),o=d(t);if(r===null||o===null)return e;const c=(i,a)=>Math.max(0,Math.min(255,Math.round(i+(a-i)*n))).toString(16).padStart(2,"0");return`#${c(r.r,o.r)}${c(r.g,o.g)}${c(r.b,o.b)}`}const re={light:"#ffffff",dark:"#0a0a0a"},je=["light","dark"];function Ze(e,t){const n=re[t],r=t==="light"?"#ffffff":"#000000";return{text:n,accent:n,background:e,surface:_(e,r,.1),line:_(e,r,.22),muted:_(n,e,.35),brandInk:t}}function f(e){const t=L(e);return t.themes[t.selected]}function u(e){return{text:e.text,accent:e.accent,background:e.background||l.background,surface:e.surface||l.surface,line:e.line||l.line,muted:e.muted||l.muted}}function qe(e){return{fill:u(e).background,accent:e.accent}}const oe=.4,ce="#f5f1e8",k="#0a0a0a";function ie(e){const t=f(e).text,n=g(t);return n===null||n>=oe?t:null}const se=4.5,ae=3,Je={good:"Good","large-only":"Large text only",hard:"Hard to read"};function Qe(e){return e>=se?"good":e>=ae?"large-only":"hard"}const ue=["#000000","#ffffff"];function m(e){return y(e,ue)}function ve(e,t){const n=t!==void 0&&g(t)!==null?t:ce;return y(e,[k,n])===n&&n!==k}const le=[.25,.4,.55];function et(e){const t=d(e);return t===null?[]:le.map(n=>"#"+[t.r,t.g,t.b].map(r=>Math.round(r*(1-n)).toString(16).padStart(2,"0")).join(""))}function tt(e){const n={"--theme-fg":f(e).text},r=ie(e);return r!==null&&(n["--overlay-fg"]=r),n}const fe=82;function E(e){return`color-mix(in srgb, ${e} ${fe}%, #000)`}function nt(e){const t=f(e);return{"--theme-accent":t.accent,"--theme-accent-2":E(t.accent),"--theme-accent-ink":m(t.accent)}}function S(e){const t=e?.button;return t&&s(t)===t.toLowerCase()?t.toLowerCase():null}function rt(e){const t=f(e),n=S(t),r=P(t);if(n===null&&r===null)return{};const o={};return n!==null&&(o["--theme-btn"]=n,o["--theme-btn-2"]=E(n)),o["--theme-btn-ink"]=r??m(n),o}function P(e){const t=e?.buttonInk;return t&&s(t)===t.toLowerCase()?t.toLowerCase():null}function he(e,t){return P(e)??m(S(e)??t)}function ot(e){const t=f(e);return{fill:S(t)??t.accent.toLowerCase(),ink:he(t,t.accent)}}function ct(e){const t={};return L(e).themes.forEach((n,r)=>{const o=u(n);t[`--theme-preset-${r}-accent`]=o.accent,t[`--theme-preset-${r}-accent-2`]=E(o.accent),t[`--theme-preset-${r}-accent-ink`]=m(o.accent),t[`--theme-preset-${r}-bg`]=o.background,t[`--theme-preset-${r}-fg`]=o.text,t[`--theme-preset-${r}-surface`]=o.surface,t[`--theme-preset-${r}-surface-2`]=`color-mix(in srgb, ${o.surface} 60%, ${o.line})`,t[`--theme-preset-${r}-line`]=o.line,t[`--theme-preset-${r}-muted`]=o.muted}),t}const A=e=>{const t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4},T=e=>255*(e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055);function F([e,t,n]){const[r,o,c]=[A(e),A(t),A(n)],i=Math.cbrt(.4122214708*r+.5363325363*o+.0514459929*c),a=Math.cbrt(.2119034982*r+.6806995451*o+.1073969566*c),h=Math.cbrt(.0883024619*r+.2817188376*o+.6299787005*c);return[.2104542553*i+.793617785*a-.0040720468*h,1.9779984951*i-2.428592205*a+.4505937099*h,.0259040371*i+.7827717662*a-.808675766*h]}function de([e,t,n]){const r=(e+.3963377774*t+.2158037573*n)**3,o=(e-.1055613458*t-.0638541728*n)**3,c=(e-.0894841775*t-1.291485548*n)**3;return[T(4.0767416621*r-3.3077115913*o+.2309699292*c),T(-1.2684380046*r+2.6097574011*o-.3413193965*c),T(-.0041960863*r-.7034186147*o+1.707614701*c)]}const b=e=>{const t=d(e);return t===null?[0,0,0]:[t.r,t.g,t.b]},$=(e,t,n)=>[e[0]*n+t[0]*(1-n),e[1]*n+t[1]*(1-n),e[2]*n+t[2]*(1-n)],U=e=>`#${e.map(t=>Math.max(0,Math.min(255,Math.round(t))).toString(16).padStart(2,"0")).join("")}`,G=e=>$(b(e.surface),b(e.line),.6);function it(e){return U(G(u(e)))}function Y(e){const t=u(e);return U(de($(F(G(t)),F(b(t.text)),.92)))}function st(e){return{...e,background:Y(e)}}function z(e,t,n,r){const o=e[t];if(!o)return-1;const c=n(o);if(!c)return-1;const i=u(o);return e.findIndex((a,h)=>{if(h===t)return!1;const p=u(a);return s(p.background)!==c?!1:!r||s(p.text??"")===s(i.text??"")&&s(p.accent??"")===s(i.accent??"")})}function at(e,t){return z(e,t,Y,!1)}function ut(e,t){return z(e,t,n=>s(n.surface??""),!0)}const ge=1;function me(e,t){const n=(e??[]).flatMap((r,o)=>{const c=g(r.background??""),i=g(r.text??"");return c!==null&&i!==null&&c<i?[o]:[]});return n.find(r=>r!==t)??n[0]??ge}function lt(e){return me(e?.themes,e?.selected)}const ft=["--theme-bg","--theme-surface","--theme-surface-2","--theme-line","--theme-muted"];function ht(e){const t=u(f(e)),n=`color-mix(in srgb, ${t.surface} 60%, ${t.line})`,r={"--theme-bg":t.background,"--theme-surface":t.surface,"--theme-line":t.line,"--theme-muted":t.muted};return(t.surface!==l.surface||t.line!==l.line)&&(r["--theme-surface-2"]=n),r}const xe=["heading","body","label"],dt={heading:"Headings",body:"Body",label:"Labels"};function gt(e){if(!e)return null;for(const t of xe)if(e.includes(`--size-${t}`))return t;return/--size-heading(Large|Medium|Small)/.test(e)?"heading":null}const B=["headingLarge","headingMedium","headingSmall","accent","body","label"],mt={headingLarge:"heading",headingMedium:"heading",headingSmall:"heading",accent:"heading",body:"body",label:"label"},xt={headingLarge:null,headingMedium:null,headingSmall:null,accent:null,body:null,label:null},pe=8,_e=200;function Ee(e){if(typeof e!="number"||!Number.isFinite(e))return null;const t=Math.round(e);return t>=pe&&t<=_e?t:null}function Se(e){const t={};for(const n of B)t[n]=Ee(e?.[n]);return t}function pt(e){const t=Se(e),n={};for(const r of B){const o=t[r];o!==null&&(n[`--size-${r}`]=`${o}px`)}return n}const Ae=["square","small","large"],Te="small";function be(e){return Ae.includes(e??"")?e:Te}function _t(e){return K(Ce[be(e)])}const I=0,Ie=40,Ce={square:0,small:null,large:16},X={"--sf-card-radius":1,"--sf-button-radius":.5,"--site-radius":.5,"--site-radius-xs":.25,"--site-radius-sm":.5,"--site-radius-md":.75,"--site-radius-lg":1,"--site-radius-xl":1.25,"--site-radius-2xl":1.5,"--site-radius-3xl":2,"--site-radius-4xl":2.5};function C(e){if(e==null||typeof e=="string"&&e.trim()==="")return null;const t=typeof e=="string"?Number(e):e;return Number.isFinite(t)?Math.min(Ie,Math.max(I,Math.round(t))):null}function K(e){const t=C(e);return t===null?{}:Object.fromEntries(Object.entries(X).map(([n,r])=>{const o=t*r/16;return[n,o===0?"0":`${o}rem`]}))}function Et(e){return(C(e)??I)*X["--sf-button-radius"]}function St(e){return K(C(e)??I)}const Re=["none","soft","lifted"],De="soft",W="none",Me=["tight","normal","roomy"],we="normal",ye="normal",Oe=["none","lift","highlight"],He="lift",Ne="highlight";import{DEFAULT_SHADOW_COLOR as Pt}from"efficient-easel/screen/lib/document/shadow-values";function V(e){return Re.includes(e??"")?e:De}function Le(e){return Me.includes(e??"")?e:we}function j(e){return Oe.includes(e??"")?e:He}const At=O;function Tt(e){const t=V(e);return t===W?void 0:t}function bt(e){const t=Le(e);return t===ye?void 0:t}function It(e){const t=j(e);return t===Ne?void 0:t}function Ct(e,t,n){const r=O(t);return r===Q?{}:V(e)!==W||j(n)==="lift"?{"--sf-shadow-color":r}:{}}const ke=["normal","tight","compressed"],Z="normal";function q(e){return ke.includes(e??"")?e:Z}function Rt(e){const t=q(e);return t===Z?void 0:t}function Dt(e){switch(q(e)){case"tight":return{lineHeight:.95,letterSpacing:-.01};case"compressed":return{lineHeight:.86,letterSpacing:-.01};default:return{}}}const Mt=["authored","sentence"],wt={case:"authored",weight:null,weightStrong:null,italicStrong:null,maxPx:null,weight2:null,weight3:null,case2:"authored",case3:"authored"},R=100,D=900,Pe=24,Fe=200;function x(e,t,n){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,t),n))}function M(e){const t=x(e?.weight,R,D),n=e?.case==="sentence"?"sentence":"authored",r=c=>c==null?t:x(c,R,D),o=c=>c==="sentence"?"sentence":c==="authored"?"authored":n;return{case:n,weight:t,weightStrong:x(e?.weightStrong,R,D),italicStrong:typeof e?.italicStrong=="boolean"?e.italicStrong:null,maxPx:x(e?.maxPx,Pe,Fe),weight2:r(e?.weight2),weight3:r(e?.weight3),case2:o(e?.case2),case3:o(e?.case3)}}function yt(e){const t=M(e),n={};return t.case==="sentence"&&(n["--sf-heading-case"]="none"),t.weight!==null&&(n["--sf-heading-weight"]=String(t.weight)),t.weightStrong!==null&&(n["--sf-heading-weight-strong"]=String(t.weightStrong)),t.maxPx!==null&&(n["--sf-heading-max"]=`${t.maxPx}px`),t.weight2!==null&&t.weight2!==t.weight&&(n["--sf-heading-2-weight"]=String(t.weight2)),t.weight3!==null&&t.weight3!==t.weight&&(n["--sf-heading-3-weight"]=String(t.weight3)),t.case2!==t.case&&(n["--sf-heading-2-case"]=t.case2==="sentence"?"none":"uppercase"),t.case3!==t.case&&(n["--sf-heading-3-case"]=t.case3==="sentence"?"none":"uppercase"),n}function Ot(e){return M({case:e?.heading_case??void 0,weight:e?.heading_weight,weightStrong:e?.heading_weight_strong,italicStrong:e?.accent_italic,maxPx:e?.heading_max_px,weight2:e?.heading_2_weight??void 0,weight3:e?.heading_3_weight??void 0,case2:e?.heading_2_case??void 0,case3:e?.heading_3_case??void 0})}function Ht(e){const t=M(e);return{heading_case:t.case,heading_weight:t.weight,heading_weight_strong:t.weightStrong,heading_max_px:t.maxPx,heading_2_weight:t.weight2,heading_3_weight:t.weight3,heading_2_case:t.case2,heading_3_case:t.case3}}const w="siteTheme";function $e(e){const t=e;if(!t||typeof t!="object"||!Array.isArray(t.themes)||!t.themes.every(r=>!!r&&typeof r=="object"))return{};const n=typeof t.selected=="number"&&Number.isInteger(t.selected)&&t.selected>=0?t.selected:0;return{[w]:{selected:n,themes:t.themes}}}function Nt(e){return $e(e?.[w])[w]}export{le as ACCENT_DARKEN_STEPS,je as BRAND_INKS,Me as CARD_GAPS,Re as CARD_SHADOWS,Ie as CORNER_RADIUS_MAX,I as CORNER_RADIUS_MIN,Ae as CORNER_STYLES,Ce as CORNER_STYLE_TO_PX,we as DEFAULT_CARD_GAP,De as DEFAULT_CARD_SHADOW,Te as DEFAULT_CORNER_STYLE,Z as DEFAULT_HEADING_COMPRESSION,wt as DEFAULT_HEADING_TYPOGRAPHY,He as DEFAULT_HOVER_EFFECT,Pt as DEFAULT_SHADOW_COLOR,xt as DEFAULT_SIZES,l as DEFAULT_SURFACES,Ke as DEFAULT_SWITCH_SHOWN,te as DEFAULT_THEMES,Xe as DEFAULT_THEME_MODE,ne as DEFAULT_THEME_VALUE,Je as GRADE_LABEL,Mt as HEADING_CASES,ke as HEADING_COMPRESSIONS,Fe as HEADING_MAX_PX_MAX,Pe as HEADING_MAX_PX_MIN,D as HEADING_WEIGHT_MAX,R as HEADING_WEIGHT_MIN,Oe as HOVER_EFFECTS,ye as IDENTITY_CARD_GAP,W as IDENTITY_CARD_SHADOW,Ne as IDENTITY_HOVER_EFFECT,k as OVERLAY_INK_DARK,ce as OVERLAY_INK_LIGHT,se as READABILITY_AA,ae as READABILITY_AA_LARGE,mt as SCALE_OF_STEP,w as SITE_THEME_KEY,B as SIZE_STEPS,_e as TEXT_SIZE_MAX,pe as TEXT_SIZE_MIN,N as THEME_DAY_END_HOUR,H as THEME_DAY_START_HOUR,Ye as THEME_MODE_KEY,v as THEME_STORAGE_KEY,ft as THEME_SURFACE_KEYS,Be as THEME_SWITCH_HIDE,ze as THEME_SWITCH_KEY,xe as TYPE_GROUPS,dt as TYPE_GROUP_LABELS,m as accentInk,st as bandPresetFor,at as bandPresetIndex,Ze as brandTheme,Ve as buildThemeBootScript,bt as cardGapAttr,Tt as cardShadowAttr,Dt as compressionMetrics,J as contrastRatio,K as cornerRadiusTokens,_t as cornerStyleTokens,lt as darkBandIndex,me as darkPresetIndex,et as darkerAccents,ve as fillIsDark,Qe as gradeContrast,Rt as headingCompressionAttr,Ot as headingTypographyFromRow,yt as headingTypographyStyle,Ht as headingTypographyToRow,It as hoverEffectAttr,ee as isDayHour,Le as normalizeCardGap,V as normalizeCardShadow,C as normalizeCornerRadius,be as normalizeCornerStyle,q as normalizeHeadingCompression,M as normalizeHeadingTypography,j as normalizeHoverEffect,At as normalizeShadowColor,Ee as normalizeSize,Se as normalizeSizes,L as normalizeTheme,u as normalizeThemeColors,We as resolveTheme,he as resolvedButtonInk,Y as sectionBandTone,f as selectedThemeColors,Ct as shadowColorTokens,ot as siteButtonPaint,Et as siteButtonRadiusPx,St as siteCornerRadiusTokens,$e as siteThemeMetadata,Nt as siteThemeOf,ut as surfacePresetIndex,it as surfaceTwoTone,nt as themeAccentStyle,S as themeButtonColour,P as themeButtonInk,rt as themeButtonStyle,tt as themeColorStyle,ie as themeLightInk,ct as themePresetAccentVars,ht as themeSurfaceStyle,qe as themeSwatchColors,gt as typeScaleGroupOfClassName,pt as typeSizesStyle};
18
+ `}const l={background:"#0a0a0a",surface:"#131313",line:"#2a2a2a",muted:"#9a9388"},te=[{text:"#2e2e2e",accent:"#2e2e2e",background:"#ffffff",surface:"#f7f7f7",line:"#e0e0e0",muted:"#5c5c5c"},{text:"#f7f7f7",accent:"#f7f7f7",background:"#0a0a0a",surface:"#1b1b1b",line:"#363636",muted:"#a3a3a3"},{text:"#ffffff",accent:"#ffffff",background:"#2e2e2e",surface:"#3d3d3d",line:"#545454",muted:"#b0b0b0"},{text:"#0a0a0a",accent:"#0a0a0a",background:"#f7f7f7",surface:"#ffffff",line:"#d9d9d9",muted:"#5c5c5c"}],ne={selected:0,themes:te};function N(e){return!e||!Array.isArray(e.themes)||e.themes.length===0?{...ne}:{selected:Math.min(Math.max(0,e.selected??0),e.themes.length-1),themes:e.themes}}function _(e,t,n){const r=d(e),o=d(t);if(r===null||o===null)return e;const c=(i,a)=>Math.max(0,Math.min(255,Math.round(i+(a-i)*n))).toString(16).padStart(2,"0");return`#${c(r.r,o.r)}${c(r.g,o.g)}${c(r.b,o.b)}`}const re={light:"#ffffff",dark:"#0a0a0a"},je=["light","dark"];function Ze(e,t){const n=re[t],r=t==="light"?"#ffffff":"#000000";return{text:n,accent:n,background:e,surface:_(e,r,.1),line:_(e,r,.22),muted:_(n,e,.35),brandInk:t}}function f(e){const t=N(e);return t.themes[t.selected]}function u(e){return{text:e.text,accent:e.accent,background:e.background||l.background,surface:e.surface||l.surface,line:e.line||l.line,muted:e.muted||l.muted}}function qe(e){return{fill:u(e).background,accent:e.accent}}const oe=.4,ce="#f5f1e8",L="#0a0a0a";function ie(e){const t=f(e).text,n=g(t);return n===null||n>=oe?t:null}const se=4.5,ae=3,Je={good:"Good","large-only":"Large text only",hard:"Hard to read"};function Qe(e){return e>=se?"good":e>=ae?"large-only":"hard"}const ue=["#000000","#ffffff"];function m(e){return w(e,ue)}function ve(e,t){const n=t!==void 0&&g(t)!==null?t:ce;return w(e,[L,n])===n&&n!==L}const le=[.25,.4,.55];function et(e){const t=d(e);return t===null?[]:le.map(n=>"#"+[t.r,t.g,t.b].map(r=>Math.round(r*(1-n)).toString(16).padStart(2,"0")).join(""))}function tt(e){const n={"--theme-fg":f(e).text},r=ie(e);return r!==null&&(n["--overlay-fg"]=r),n}const fe=82;function E(e){return`color-mix(in srgb, ${e} ${fe}%, #000)`}function nt(e){const t=f(e);return{"--theme-accent":t.accent,"--theme-accent-2":E(t.accent),"--theme-accent-ink":m(t.accent)}}function S(e){const t=e?.button;return t&&s(t)===t.toLowerCase()?t.toLowerCase():null}function rt(e){const t=f(e),n=S(t),r=k(t);if(n===null&&r===null)return{};const o={};return n!==null&&(o["--theme-btn"]=n,o["--theme-btn-2"]=E(n)),o["--theme-btn-ink"]=r??m(n),o}function k(e){const t=e?.buttonInk;return t&&s(t)===t.toLowerCase()?t.toLowerCase():null}function he(e,t){return k(e)??m(S(e)??t)}function ot(e){const t=f(e);return{fill:S(t)??t.accent.toLowerCase(),ink:he(t,t.accent)}}function ct(e){const t={};return N(e).themes.forEach((n,r)=>{const o=u(n);t[`--theme-preset-${r}-accent`]=o.accent,t[`--theme-preset-${r}-accent-2`]=E(o.accent),t[`--theme-preset-${r}-accent-ink`]=m(o.accent),t[`--theme-preset-${r}-bg`]=o.background,t[`--theme-preset-${r}-fg`]=o.text,t[`--theme-preset-${r}-surface`]=o.surface,t[`--theme-preset-${r}-surface-2`]=`color-mix(in srgb, ${o.surface} 60%, ${o.line})`,t[`--theme-preset-${r}-line`]=o.line,t[`--theme-preset-${r}-muted`]=o.muted}),t}const A=e=>{const t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4},T=e=>255*(e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055);function P([e,t,n]){const[r,o,c]=[A(e),A(t),A(n)],i=Math.cbrt(.4122214708*r+.5363325363*o+.0514459929*c),a=Math.cbrt(.2119034982*r+.6806995451*o+.1073969566*c),h=Math.cbrt(.0883024619*r+.2817188376*o+.6299787005*c);return[.2104542553*i+.793617785*a-.0040720468*h,1.9779984951*i-2.428592205*a+.4505937099*h,.0259040371*i+.7827717662*a-.808675766*h]}function de([e,t,n]){const r=(e+.3963377774*t+.2158037573*n)**3,o=(e-.1055613458*t-.0638541728*n)**3,c=(e-.0894841775*t-1.291485548*n)**3;return[T(4.0767416621*r-3.3077115913*o+.2309699292*c),T(-1.2684380046*r+2.6097574011*o-.3413193965*c),T(-.0041960863*r-.7034186147*o+1.707614701*c)]}const b=e=>{const t=d(e);return t===null?[0,0,0]:[t.r,t.g,t.b]},F=(e,t,n)=>[e[0]*n+t[0]*(1-n),e[1]*n+t[1]*(1-n),e[2]*n+t[2]*(1-n)],$=e=>`#${e.map(t=>Math.max(0,Math.min(255,Math.round(t))).toString(16).padStart(2,"0")).join("")}`,U=e=>F(b(e.surface),b(e.line),.6);function it(e){return $(U(u(e)))}function G(e){const t=u(e);return $(de(F(P(U(t)),P(b(t.text)),.92)))}function st(e){return{...e,background:G(e)}}function Y(e,t,n,r){const o=e[t];if(!o)return-1;const c=n(o);if(!c)return-1;const i=u(o);return e.findIndex((a,h)=>{if(h===t)return!1;const p=u(a);return s(p.background)!==c?!1:!r||s(p.text??"")===s(i.text??"")&&s(p.accent??"")===s(i.accent??"")})}function at(e,t){return Y(e,t,G,!1)}function ut(e,t){return Y(e,t,n=>s(n.surface??""),!0)}const ge=1;function me(e,t){const n=(e??[]).flatMap((r,o)=>{const c=g(r.background??""),i=g(r.text??"");return c!==null&&i!==null&&c<i?[o]:[]});return n.find(r=>r!==t)??n[0]??ge}function lt(e){return me(e?.themes,e?.selected)}const ft=["--theme-bg","--theme-surface","--theme-surface-2","--theme-line","--theme-muted"];function ht(e){const t=u(f(e)),n=`color-mix(in srgb, ${t.surface} 60%, ${t.line})`,r={"--theme-bg":t.background,"--theme-surface":t.surface,"--theme-line":t.line,"--theme-muted":t.muted};return(t.surface!==l.surface||t.line!==l.line)&&(r["--theme-surface-2"]=n),r}const xe=["heading","body","label"],dt={heading:"Headings",body:"Body",label:"Labels"};function gt(e){if(!e)return null;for(const t of xe)if(e.includes(`--size-${t}`))return t;return/--size-heading(Large|Medium|Small)/.test(e)?"heading":null}const z=["headingLarge","headingMedium","headingSmall","accent","body","label"],mt={headingLarge:"heading",headingMedium:"heading",headingSmall:"heading",accent:"heading",body:"body",label:"label"},xt={headingLarge:null,headingMedium:null,headingSmall:null,accent:null,body:null,label:null},pe=8,_e=200;function Ee(e){if(typeof e!="number"||!Number.isFinite(e))return null;const t=Math.round(e);return t>=pe&&t<=_e?t:null}function Se(e){const t={};for(const n of z)t[n]=Ee(e?.[n]);return t}function pt(e){const t=Se(e),n={};for(const r of z){const o=t[r];o!==null&&(n[`--size-${r}`]=`${o}px`)}return n}const Ae=["square","small","large"],Te="small";function be(e){return Ae.includes(e??"")?e:Te}function _t(e){return X(Ce[be(e)])}const I=0,Ie=40,Ce={square:0,small:null,large:16},B={"--sf-card-radius":1,"--sf-button-radius":.5,"--site-radius":.5,"--site-radius-xs":.25,"--site-radius-sm":.5,"--site-radius-md":.75,"--site-radius-lg":1,"--site-radius-xl":1.25,"--site-radius-2xl":1.5,"--site-radius-3xl":2,"--site-radius-4xl":2.5};function C(e){if(e==null||typeof e=="string"&&e.trim()==="")return null;const t=typeof e=="string"?Number(e):e;return Number.isFinite(t)?Math.min(Ie,Math.max(I,Math.round(t))):null}function X(e){const t=C(e);return t===null?{}:Object.fromEntries(Object.entries(B).map(([n,r])=>{const o=t*r/16;return[n,o===0?"0":`${o}rem`]}))}function Et(e){return(C(e)??I)*B["--sf-button-radius"]}function St(e){return X(C(e)??I)}const Re=["none","soft","lifted"],De="soft",K="none",Me=["tight","normal","roomy"],ye="normal",we="normal",Oe=["none","lift","highlight"],He="lift",Ne="highlight";import{DEFAULT_SHADOW_COLOR as kt}from"efficient-easel/screen/lib/document/shadow-values";function W(e){return Re.includes(e??"")?e:De}function Le(e){return Me.includes(e??"")?e:ye}function V(e){return Oe.includes(e??"")?e:He}function At(e){const t=W(e);return t===K?void 0:t}function Tt(e){const t=Le(e);return t===we?void 0:t}function bt(e){const t=V(e);return t===Ne?void 0:t}function It(e,t,n){const r=Q(t);return r===J?{}:W(e)!==K||V(n)==="lift"?{"--sf-shadow-color":r}:{}}const ke=["normal","tight","compressed"],j="normal";function Z(e){return ke.includes(e??"")?e:j}function Ct(e){const t=Z(e);return t===j?void 0:t}function Rt(e){switch(Z(e)){case"tight":return{lineHeight:.95,letterSpacing:-.01};case"compressed":return{lineHeight:.86,letterSpacing:-.01};default:return{}}}const Dt=["authored","sentence"],Mt={case:"authored",weight:null,weightStrong:null,italicStrong:null,maxPx:null,weight2:null,weight3:null,case2:"authored",case3:"authored"},R=100,D=900,Pe=24,Fe=200;function x(e,t,n){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,t),n))}function M(e){const t=x(e?.weight,R,D),n=e?.case==="sentence"?"sentence":"authored",r=c=>c==null?t:x(c,R,D),o=c=>c==="sentence"?"sentence":c==="authored"?"authored":n;return{case:n,weight:t,weightStrong:x(e?.weightStrong,R,D),italicStrong:typeof e?.italicStrong=="boolean"?e.italicStrong:null,maxPx:x(e?.maxPx,Pe,Fe),weight2:r(e?.weight2),weight3:r(e?.weight3),case2:o(e?.case2),case3:o(e?.case3)}}function yt(e){const t=M(e),n={};return t.case==="sentence"&&(n["--sf-heading-case"]="none"),t.weight!==null&&(n["--sf-heading-weight"]=String(t.weight)),t.weightStrong!==null&&(n["--sf-heading-weight-strong"]=String(t.weightStrong)),t.maxPx!==null&&(n["--sf-heading-max"]=`${t.maxPx}px`),t.weight2!==null&&t.weight2!==t.weight&&(n["--sf-heading-2-weight"]=String(t.weight2)),t.weight3!==null&&t.weight3!==t.weight&&(n["--sf-heading-3-weight"]=String(t.weight3)),t.case2!==t.case&&(n["--sf-heading-2-case"]=t.case2==="sentence"?"none":"uppercase"),t.case3!==t.case&&(n["--sf-heading-3-case"]=t.case3==="sentence"?"none":"uppercase"),n}function wt(e){return M({case:e?.heading_case??void 0,weight:e?.heading_weight,weightStrong:e?.heading_weight_strong,italicStrong:e?.accent_italic,maxPx:e?.heading_max_px,weight2:e?.heading_2_weight??void 0,weight3:e?.heading_3_weight??void 0,case2:e?.heading_2_case??void 0,case3:e?.heading_3_case??void 0})}function Ot(e){const t=M(e);return{heading_case:t.case,heading_weight:t.weight,heading_weight_strong:t.weightStrong,heading_max_px:t.maxPx,heading_2_weight:t.weight2,heading_3_weight:t.weight3,heading_2_case:t.case2,heading_3_case:t.case3}}const y="siteTheme";function $e(e){const t=e;if(!t||typeof t!="object"||!Array.isArray(t.themes)||!t.themes.every(r=>!!r&&typeof r=="object"))return{};const n=typeof t.selected=="number"&&Number.isInteger(t.selected)&&t.selected>=0?t.selected:0;return{[y]:{selected:n,themes:t.themes}}}function Ht(e){return $e(e?.[y])[y]}export{le as ACCENT_DARKEN_STEPS,je as BRAND_INKS,Me as CARD_GAPS,Re as CARD_SHADOWS,Ie as CORNER_RADIUS_MAX,I as CORNER_RADIUS_MIN,Ae as CORNER_STYLES,Ce as CORNER_STYLE_TO_PX,ye as DEFAULT_CARD_GAP,De as DEFAULT_CARD_SHADOW,Te as DEFAULT_CORNER_STYLE,j as DEFAULT_HEADING_COMPRESSION,Mt as DEFAULT_HEADING_TYPOGRAPHY,He as DEFAULT_HOVER_EFFECT,kt as DEFAULT_SHADOW_COLOR,xt as DEFAULT_SIZES,l as DEFAULT_SURFACES,Ke as DEFAULT_SWITCH_SHOWN,te as DEFAULT_THEMES,Xe as DEFAULT_THEME_MODE,ne as DEFAULT_THEME_VALUE,Je as GRADE_LABEL,Dt as HEADING_CASES,ke as HEADING_COMPRESSIONS,Fe as HEADING_MAX_PX_MAX,Pe as HEADING_MAX_PX_MIN,D as HEADING_WEIGHT_MAX,R as HEADING_WEIGHT_MIN,Oe as HOVER_EFFECTS,we as IDENTITY_CARD_GAP,K as IDENTITY_CARD_SHADOW,Ne as IDENTITY_HOVER_EFFECT,L as OVERLAY_INK_DARK,ce as OVERLAY_INK_LIGHT,se as READABILITY_AA,ae as READABILITY_AA_LARGE,mt as SCALE_OF_STEP,y as SITE_THEME_KEY,z as SIZE_STEPS,_e as TEXT_SIZE_MAX,pe as TEXT_SIZE_MIN,H as THEME_DAY_END_HOUR,O as THEME_DAY_START_HOUR,Ye as THEME_MODE_KEY,v as THEME_STORAGE_KEY,ft as THEME_SURFACE_KEYS,Be as THEME_SWITCH_HIDE,ze as THEME_SWITCH_KEY,xe as TYPE_GROUPS,dt as TYPE_GROUP_LABELS,m as accentInk,st as bandPresetFor,at as bandPresetIndex,Ze as brandTheme,Ve as buildThemeBootScript,Tt as cardGapAttr,At as cardShadowAttr,Rt as compressionMetrics,q as contrastRatio,X as cornerRadiusTokens,_t as cornerStyleTokens,lt as darkBandIndex,me as darkPresetIndex,et as darkerAccents,ve as fillIsDark,Qe as gradeContrast,Ct as headingCompressionAttr,wt as headingTypographyFromRow,yt as headingTypographyStyle,Ot as headingTypographyToRow,bt as hoverEffectAttr,ee as isDayHour,Le as normalizeCardGap,W as normalizeCardShadow,C as normalizeCornerRadius,be as normalizeCornerStyle,Z as normalizeHeadingCompression,M as normalizeHeadingTypography,V as normalizeHoverEffect,Ee as normalizeSize,Se as normalizeSizes,N as normalizeTheme,u as normalizeThemeColors,We as resolveTheme,he as resolvedButtonInk,G as sectionBandTone,f as selectedThemeColors,It as shadowColorTokens,ot as siteButtonPaint,Et as siteButtonRadiusPx,St as siteCornerRadiusTokens,$e as siteThemeMetadata,Ht as siteThemeOf,ut as surfacePresetIndex,it as surfaceTwoTone,nt as themeAccentStyle,S as themeButtonColour,k as themeButtonInk,rt as themeButtonStyle,tt as themeColorStyle,ie as themeLightInk,ct as themePresetAccentVars,ht as themeSurfaceStyle,qe as themeSwatchColors,gt as typeScaleGroupOfClassName,pt as typeSizesStyle};
@@ -5,3 +5,5 @@ export declare function configureWebRuntime(next: {
5
5
  export declare function resetWebRuntime(): void;
6
6
  export declare function webRuntimeSiteSlug(): string | null;
7
7
  export declare function shopRouteBase(): string;
8
+ export declare function shopOrigin(): string;
9
+ export declare function shopHost(): string;
@@ -1 +1 @@
1
- const t={siteSlug:null,shopOrigin:""};let e=t;function n(i){e={siteSlug:i.siteSlug?.trim()||null,shopOrigin:(i.shopOrigin??"").trim().replace(/\/+$/,"")}}function u(){e=t}function r(){return e.siteSlug}function o(){return e.shopOrigin}export{n as configureWebRuntime,u as resetWebRuntime,o as shopRouteBase,r as webRuntimeSiteSlug};
1
+ const i={siteSlug:null,shopOrigin:""};let t=i;function o(n){t={siteSlug:n.siteSlug?.trim()||null,shopOrigin:(n.shopOrigin??"").trim().replace(/\/+$/,"")}}function r(){t=i}function u(){return t.siteSlug}function s(){return t.shopOrigin}function e(){return t.shopOrigin||(typeof window>"u"?"":window.location.origin)}function p(){try{const n=e();return n?new URL(n).host:""}catch{return""}}export{o as configureWebRuntime,r as resetWebRuntime,p as shopHost,e as shopOrigin,s as shopRouteBase,u as webRuntimeSiteSlug};
@@ -12,9 +12,9 @@ interface BlockFrameProps {
12
12
  children: ReactNode;
13
13
  }
14
14
  export declare const FRAME_BASE = "mx-auto w-full max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)]";
15
- export declare const FRAME_GUTTER = "max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]";
16
- export declare const FRAME = "mx-auto w-full max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]";
17
- export declare const FRAME_SITE_GUTTER = "max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]";
15
+ export declare const FRAME_GUTTER: "max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]";
16
+ export declare const FRAME: string;
17
+ export declare const FRAME_SITE_GUTTER: "max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]";
18
18
  export declare function frameGutterOf(site: boolean): string;
19
19
  export declare const PRE_FRAME_BASE = "mx-auto w-full max-w-[1280px] px-[60px]";
20
20
  export declare const PRE_FRAME_GUTTER = "max-[960px]:px-6";
@@ -1 +1 @@
1
- import{jsx as n}from"react/jsx-runtime";import{SITE_COLUMN_NARROW as m}from"../../format/lib/content/page-width.js";import E from"./SiteGutterFrame.js";const f="mx-auto w-full max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)]",o="max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",x=`${f} ${o}`,l=m;function F(t){return t?l:o}const u="mx-auto w-full max-w-[1280px] px-[60px]",R="max-[960px]:px-6",M=`${u} ${R}`;function i({contained:t,className:r="",style:e,pad:p,fillWidth:s="w-full",children:a}){return n(E,{contained:t,framedClass:`${x} ${r}`,fillClass:`${s} ${r}`,columnClass:x,style:e,pad:p,children:a})}export{x as FRAME,f as FRAME_BASE,o as FRAME_GUTTER,l as FRAME_SITE_GUTTER,M as PRE_FRAME,u as PRE_FRAME_BASE,R as PRE_FRAME_GUTTER,i as default,F as frameGutterOf};
1
+ import{jsx as f}from"react/jsx-runtime";import{siteSideRoom as r}from"../../format/lib/content/page-width.js";import n from"./SiteGutterFrame.js";const E="mx-auto w-full max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)]",e=r("box").frame,x=`${E} ${e}`,i=r("site").frame;function F(t){return t?i:e}const l="mx-auto w-full max-w-[1280px] px-[60px]",u="max-[960px]:px-6",$=`${l} ${u}`;function R({contained:t,className:o="",style:p,pad:s,fillWidth:a="w-full",children:m}){return f(n,{contained:t,framedClass:`${x} ${o}`,fillClass:`${a} ${o}`,columnClass:x,style:p,pad:s,children:m})}export{x as FRAME,E as FRAME_BASE,e as FRAME_GUTTER,i as FRAME_SITE_GUTTER,$ as PRE_FRAME,l as PRE_FRAME_BASE,u as PRE_FRAME_GUTTER,R as default,F as frameGutterOf};
@@ -1 +1 @@
1
- import{jsx as r,jsxs as s,Fragment as f}from"react/jsx-runtime";import{Fragment as x}from"react";import{SiteLink as h}from"../lib/site-runtime.js";import{renderChrome as c,renderGold as b}from"./goldPhrases.js";import{say as g}from"../../format/lib/editor-words.js";function u({items:p,current:l,meta:t,editing:d=!1}){const i=(p??[]).filter(e=>e?.label?.trim()),m=l?.trim()?[...i,{label:l}]:i,a=m.length>0?m:d?[{label:g("Breadcrumb")}]:[];return a.length===0&&!t?null:r("nav",{className:"border-b border-line px-[var(--sf-site-gutter,40px)] py-6 font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.2em] text-fg-dim max-view-tablet:px-[min(20px,var(--sf-site-gutter,40px))] max-view-tablet:py-4",children:s("div",{className:"mx-auto flex max-w-[var(--sf-content-cap,none)] items-center gap-4",children:[a.map((e,n)=>{const o=n===a.length-1;return s(x,{children:[n>0&&r("span",{className:"opacity-40",children:"/"}),e.href&&!o?r(h,{href:e.href,className:"hover:text-fg",children:c(e.label)}):r("span",{className:o?"text-fg":void 0,children:c(e.label)})]},n)}),t&&s(f,{children:[r("span",{className:"opacity-40",children:"·"}),r("span",{children:b(t)})]})]})})}export{u as default};
1
+ import{jsx as r,jsxs as s,Fragment as f}from"react/jsx-runtime";import{Fragment as x}from"react";import{SiteLink as h}from"../lib/site-runtime.js";import{renderChrome as c,renderGold as b}from"./goldPhrases.js";import{say as u}from"../../format/lib/editor-words.js";function g({items:p,current:l,meta:a,editing:d=!1}){const i=(p??[]).filter(e=>e?.label?.trim()),m=l?.trim()?[...i,{label:l}]:i,t=m.length>0?m:d?[{label:u("Breadcrumb")}]:[];return t.length===0&&!a?null:r("nav",{className:"border-b border-line px-[var(--sf-site-gutter,40px)] py-6 font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.2em] text-fg-dim max-view-tablet:px-[min(20px,var(--sf-site-gutter,40px))] max-view-tablet:py-4",children:s("div",{className:"mx-auto flex max-w-[var(--sf-content-cap,none)] items-center gap-4",children:[t.map((e,n)=>{const o=n===t.length-1;return s(x,{children:[n>0&&r("span",{className:"opacity-40",children:"/"}),e.href&&!o?r(h,{newTab:"auto",href:e.href,className:"hover:text-fg",children:c(e.label)}):r("span",{className:o?"text-fg":void 0,children:c(e.label)})]},n)}),a&&s(f,{children:[r("span",{className:"opacity-40",children:"·"}),r("span",{children:b(a)})]})]})})}export{g as default};
@@ -1 +1 @@
1
- import{jsx as r,Fragment as l,jsxs as c}from"react/jsx-runtime";import{SiteLink as y}from"../lib/site-runtime.js";import{BUTTON_PAD_CLASSES as j}from"../lib/content/button-look.js";const p=`sf-button group inline-flex items-center justify-center gap-2.5 border ${j} font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.2em] transition-colors`,b={primary:"border-btn bg-btn text-btn-ink hover:border-btn-2 hover:bg-btn-2",ghost:"border-current bg-transparent hover:bg-white/10"};function N(h){const{variant:m="primary",arrow:e,glyphBefore:f,spread:u,className:d,style:t,children:n,href:a,newTab:g,hrefRewrite:s,...x}=h,i=`${u?p.replace("justify-center","justify-between").replace("gap-2.5","gap-6"):p} ${b[m]??b.primary} ${d??""}`,o=f?c(l,{children:[e!==null&&r("span",{"aria-hidden":!0,className:"inline-flex",children:e??"→"}),n]}):c(l,{children:[n,e!==null&&r("span",{"aria-hidden":!0,className:"transition-transform group-hover:translate-x-[3px]",children:e??"→"})]});return a?r(y,{href:a,className:i,style:t,...g?{target:"_blank",rel:"noopener noreferrer"}:{},...s?{hrefRewrite:s}:{},children:o}):r("button",{type:"button",className:i,style:t,...x,children:o})}export{N as default};
1
+ import{jsx as r,Fragment as l,jsxs as c}from"react/jsx-runtime";import{SiteLink as y}from"../lib/site-runtime.js";import{BUTTON_PAD_CLASSES as j}from"../lib/content/button-look.js";const p=`sf-button group inline-flex items-center justify-center gap-2.5 border ${j} font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.2em] transition-colors`,b={primary:"border-btn bg-btn text-btn-ink hover:border-btn-2 hover:bg-btn-2",ghost:"border-current bg-transparent hover:bg-white/10"};function N(h){const{variant:m="primary",arrow:e,glyphBefore:u,spread:f,className:d,style:t,children:n,href:a,newTab:g,hrefRewrite:s,...x}=h,i=`${f?p.replace("justify-center","justify-between").replace("gap-2.5","gap-6"):p} ${b[m]??b.primary} ${d??""}`,o=u?c(l,{children:[e!==null&&r("span",{"aria-hidden":!0,className:"inline-flex",children:e??"→"}),n]}):c(l,{children:[n,e!==null&&r("span",{"aria-hidden":!0,className:"transition-transform group-hover:translate-x-[3px]",children:e??"→"})]});return a?r(y,{href:a,className:i,style:t,newTab:g?!0:"auto",...s?{hrefRewrite:s}:{},children:o}):r("button",{type:"button",className:i,style:t,...x,children:o})}export{N as default};
@@ -3,6 +3,7 @@ import type { SlotComponent } from "efficient-easel/blocks";
3
3
  import { type CardRowFieldSpec } from "../../format/lib/content/card-template.js";
4
4
  import { type CardItemAction, type CardRowState, type CardStateLine } from "../../format/lib/content/card-state.js";
5
5
  import type { SourceRow } from "../../format/lib/content/block-sources.js";
6
+ import type { CardPressTitle } from "../lib/document/card-press-titles.js";
6
7
  export type { CardRowState } from "../../format/lib/content/card-state.js";
7
8
  export type CardRow = {
8
9
  row: SourceRow;
@@ -21,6 +22,10 @@ export declare function RowEmptyGate({ props, editing, children }: {
21
22
  editing: boolean;
22
23
  children: ReactNode;
23
24
  }): import("react").JSX.Element | null;
25
+ export declare function CardPressTitled({ field, children }: {
26
+ field: string;
27
+ children: (id: string | undefined) => ReactNode;
28
+ }): import("react").JSX.Element;
24
29
  export declare const CardRowContext: import("react").Context<CardRow | null>;
25
30
  export declare function useCardRow(): CardRow | null;
26
31
  export declare function CardRowDrawn({ type, props, children, }: {
@@ -39,9 +44,10 @@ type CardTemplateRowsProps = {
39
44
  states?: readonly (CardRowState | undefined)[];
40
45
  stateLine?: CardStateLine;
41
46
  actions?: readonly (CardItemAction | undefined)[];
47
+ pressTitles?: readonly CardPressTitle[];
42
48
  fallback: ReactNode;
43
49
  copyAttrs?: Readonly<Record<string, string>> | ((row: CardRow) => Readonly<Record<string, string>>);
44
50
  wrapCopy?: (copy: ReactNode, row: CardRow) => ReactNode;
45
51
  children: (cards: ReactNode) => ReactNode;
46
52
  };
47
- export declare function CardTemplateRows({ ownerId, ownerType, slot, Template, rows, items, fields, states, stateLine, actions, fallback, copyAttrs, wrapCopy, children }: CardTemplateRowsProps): import("react").JSX.Element;
53
+ export declare function CardTemplateRows({ ownerId, ownerType, slot, Template, rows, items, fields, states, stateLine, actions, pressTitles, fallback, copyAttrs, wrapCopy, children }: CardTemplateRowsProps): import("react").JSX.Element;
@@ -1 +1 @@
1
- "use client";import{Fragment as C,jsx as e,jsxs as p}from"react/jsx-runtime";import{createContext as g,useContext as A,useId as k}from"react";import{REPEAT_ATTRIBUTE as v,REPEAT_INDEX_ATTRIBUTE as y}from"efficient-easel/draw";import{BOX_LINKED_CLASS as h}from"../../format/lib/content/box-link.js";import{CARD_TEMPLATE_SLOT as j,cardTemplateLinesBetween as K,rowFilledProps as $,templateBoxIsEmpty as U}from"../../format/lib/content/card-template.js";import{CARD_ACTION_ATTR as H,CARD_ACTION_CLASS as V,CARD_ACTION_HOVER_CLASS as X,CARD_ACTION_OFF_CLASS as G,CARD_STATE_LINE_CLASS as M,CARD_STATE_PICKED_BAR_CLASS as W,CARD_STATE_PICKED_CLASS as q,CARD_STATE_PICKED_WASH_CLASS as z,CARD_STATE_UNDER_LINE_CLASS as J,cardStateAttrs as Q,cardStatePicked as Y,cardStateValue as Z}from"../../format/lib/content/card-state.js";import{usePageRecordRow as tt}from"./CurrentRecord.js";import{CardCopyCell as et}from"./InBoxContext.js";import{SECTION_FILL_CLASS as rt}from"../../format/lib/content/section-min-height.js";function _t({props:o,editing:r,children:n}){const t=A(u);return!r&&U(o,t?.row)?null:e(C,{children:n})}const u=g(null);function At(){return A(u)}function mt({type:o,props:r,children:n}){const t=A(u),d=tt(),a=t?.row??d;return e(C,{children:n($(o,r,a,t?.ownerType,t?.fields,t?.slot),t,a)})}function nt({attrs:o,selected:r,hover:n,action:t,children:d}){const a=k(),{press:_,disabled:s}=t,c=t.label?.trim();return p("div",{...o,id:a,className:n&&!s?`${h} ${X}`:h,children:[e("button",{type:"button",[H]:"",className:s?G:V,"aria-pressed":r,...c?{"aria-label":c}:{"aria-labelledby":a},...s?{"aria-disabled":!0,tabIndex:-1}:null,onClick:s?void 0:_}),d]})}function St({ownerId:o,ownerType:r,slot:n=j,Template:t,rows:d,items:a,fields:_,states:s,stateLine:c,actions:w,fallback:b,copyAttrs:m,wrapCopy:R,children:P}){const x=A(u);if(!t||(t.blockCount??0)<=0)return e(C,{children:b});const O=x!==null,T=K(r),E=t.blockCount===1?e(et,{children:e(t,{className:rt})}):e(t,{}),B=d.map((F,l)=>{const i=s?.[l],S={row:F,index:l,ownerType:r,slot:n,item:a?.[l],nested:O,..._?{fields:_}:null,...i?{state:i}:null,...T?{linesBetween:T}:null},f=Z(i)?p(C,{children:[E,c==="under"?e("span",{"aria-hidden":"true",className:J}):Y(i)?p("span",{"aria-hidden":"true",className:q,children:[e("span",{className:W}),e("span",{className:z})]}):e("span",{"aria-hidden":"true",className:M})]}):E,I={[v]:`${o}:${n}`,[y]:l,...typeof m=="function"?m(S):m},N=w?.[l],D=Q(i,c),L=N?e(nt,{attrs:{...I,...D},selected:i?.selected===!0,hover:c!=="under",action:N,children:f}):e("div",{...I,...D,children:f});return e(u.Provider,{value:S,children:R?R(L,S):L},l)});return e(C,{children:P(B)})}export{u as CardRowContext,mt as CardRowDrawn,St as CardTemplateRows,_t as RowEmptyGate,At as useCardRow};
1
+ "use client";import{Fragment as u,jsx as t,jsxs as I}from"react/jsx-runtime";import{createContext as x,useContext as C,useId as j}from"react";import{REPEAT_ATTRIBUTE as H,REPEAT_INDEX_ATTRIBUTE as K}from"efficient-easel/draw";import{BOX_LINKED_CLASS as O}from"../../format/lib/content/box-link.js";import{BOX_HIDE_WHEN_ROW_EMPTY as U,CARD_TEMPLATE_SLOT as W,cardTemplateLinesBetween as X,rowFilledProps as M,templateBoxIsEmpty as v}from"../../format/lib/content/card-template.js";import{CARD_ACTION_ATTR as V,CARD_ACTION_CLASS as G,CARD_ACTION_HOVER_CLASS as Y,CARD_ACTION_OFF_CLASS as q,CARD_STATE_LINE_CLASS as z,CARD_STATE_PICKED_BAR_CLASS as J,CARD_STATE_PICKED_CLASS as Q,CARD_STATE_PICKED_WASH_CLASS as Z,CARD_STATE_UNDER_LINE_CLASS as ee,cardStateAttrs as te,cardStatePicked as re,cardStateValue as ne}from"../../format/lib/content/card-state.js";import{usePageRecordRow as oe}from"./CurrentRecord.js";import{CardCopyCell as se}from"./InBoxContext.js";import{SECTION_FILL_CLASS as ae}from"../../format/lib/content/section-min-height.js";function pe({props:o,editing:r,children:n}){const e=C(A);return!r&&v(o,e?.row)?null:t(u,{children:n})}const S=x(null);function Ee({field:o,children:r}){const n=C(S);return t(u,{children:r(n&&n.field===o?n.id:void 0)})}function le(o,r){return o?.find(e=>!!r[e.field]?.trim()&&!e.gates.some(s=>v({[U]:s},r)))?.field??""}const A=x(null);function Re(){return C(A)}function fe({type:o,props:r,children:n}){const e=C(A),s=oe(),l=e?.row??s;return t(u,{children:n(M(o,r,l,e?.ownerType,e?.fields,e?.slot),e,l)})}function ie({attrs:o,selected:r,hover:n,action:e,titleField:s,children:l}){const i=j(),{press:T,disabled:a}=e,_=e.label?.trim(),m=!_&&s?{id:`${i}-title`,field:s}:null;return I("div",{...o,id:i,className:n&&!a?`${O} ${Y}`:O,children:[t("button",{type:"button",[V]:"",className:a?q:G,"aria-pressed":r,..._?{"aria-label":_}:{"aria-labelledby":m?.id??i},...a?{"aria-disabled":!0,tabIndex:-1}:null,onClick:a?void 0:T}),t(S.Provider,{value:m,children:l})]})}function he({ownerId:o,ownerType:r,slot:n=W,Template:e,rows:s,items:l,fields:i,states:T,stateLine:a,actions:_,pressTitles:m,fallback:B,copyAttrs:p,wrapCopy:N,children:F}){const g=C(A),k=C(S);if(!e||(e.blockCount??0)<=0)return t(u,{children:B});const y=g!==null,D=X(r),L=e.blockCount===1?t(se,{children:t(e,{className:ae})}):t(e,{}),$=s.map((P,c)=>{const d=T?.[c],E={row:P,index:c,ownerType:r,slot:n,item:l?.[c],nested:y,...i?{fields:i}:null,...d?{state:d}:null,...D?{linesBetween:D}:null},R=ne(d)?I(u,{children:[L,a==="under"?t("span",{"aria-hidden":"true",className:ee}):re(d)?I("span",{"aria-hidden":"true",className:Q,children:[t("span",{className:J}),t("span",{className:Z})]}):t("span",{"aria-hidden":"true",className:z})]}):L,f={[H]:`${o}:${n}`,[K]:c,...typeof p=="function"?p(E):p},b=_?.[c],h=te(d,a),w=b?t(ie,{attrs:{...f,...h},selected:d?.selected===!0,hover:a!=="under",action:b,titleField:le(m,P),children:R}):k?t("div",{...f,...h,children:t(S.Provider,{value:null,children:R})}):t("div",{...f,...h,children:R});return t(A.Provider,{value:E,children:N?N(w,E):w},c)});return t(u,{children:F($)})}export{Ee as CardPressTitled,A as CardRowContext,fe as CardRowDrawn,he as CardTemplateRows,pe as RowEmptyGate,Re as useCardRow};
@@ -1 +1 @@
1
- import{jsx as r,jsxs as l}from"react/jsx-runtime";import{SiteLink as v}from"../lib/site-runtime.js";import{useTakeViewHide as w,withViewHide as k}from"./ViewHideRoot.js";import{renderChrome as n}from"./goldPhrases.js";import{STICKY_UNDERHEADER_CLASS as y}from"../lib/document/header-clearance.js";import{say as N}from"../../format/lib/editor-words.js";const i={body:"text-[length:var(--size-body,12px)]",label:"text-[length:var(--size-label,13px)]"};function _({tabs:b,activeTab:c,links:f,sticky:h=!0,editing:g=!1}){const a=w(),p=(b??[]).filter(e=>e?.label?.trim()),s=p.length>0?p:g?[{label:N("Tab")}]:[],o=(f??[]).filter(e=>e?.label?.trim());if(s.length===0&&o.length===0)return null;const m=c?s.findIndex(e=>e.label.toLowerCase()===c.toLowerCase()):-1,u=m===-1?0:m;return a.scope(r("nav",{className:k(`${h?`${y} sticky top-[var(--sf-header-h,88px)] z-40 `:""}border-b border-line px-[var(--sf-site-gutter,40px)] backdrop-blur-md max-view-desktop:px-[min(16px,var(--sf-site-gutter,40px))]`,a.className),style:{background:"color-mix(in oklab, var(--bg) 92%, transparent)"},...a.attrs,children:l("div",{className:"mx-auto flex max-w-[calc(var(--sf-site-width,1600px)_-_var(--sf-site-gutter,40px)*2)] items-stretch gap-0 overflow-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:[s.map((e,t)=>{const x=t===u,d=e.count?.trim()?e.count:"";return l("span",{className:[`relative whitespace-nowrap border-r border-line px-[22px] py-[18px] font-mono ${i.label} uppercase tracking-[0.22em] transition-colors`,t===0?"border-l border-line":"",x?"text-fg":"text-fg-dim hover:text-fg"].join(" "),children:[n(e.label),d&&r("span",{className:`ml-2 ${i.body} text-accent opacity-70`,children:n(d)}),x&&r("span",{className:"absolute inset-x-0 -bottom-px h-[2px] bg-accent"})]},t)}),o.length>0&&r("div",{className:"ml-auto flex border-l border-line",children:o.map((e,t)=>l(v,{href:e.href||"#",className:`flex items-center gap-2.5 px-[22px] py-[18px] font-mono ${i.label} uppercase tracking-[0.22em] text-fg-dim hover:text-fg`,children:[n(e.label)," ",r("span",{className:"text-accent",children:"↗"})]},t))})]})}))}export{_ as default};
1
+ import{jsx as r,jsxs as l}from"react/jsx-runtime";import{SiteLink as v}from"../lib/site-runtime.js";import{useTakeViewHide as w,withViewHide as k}from"./ViewHideRoot.js";import{renderChrome as n}from"./goldPhrases.js";import{STICKY_UNDERHEADER_CLASS as y}from"../lib/document/header-clearance.js";import{say as N}from"../../format/lib/editor-words.js";const i={body:"text-[length:var(--size-body,12px)]",label:"text-[length:var(--size-label,13px)]"};function _({tabs:b,activeTab:c,links:f,sticky:h=!0,editing:u=!1}){const a=w(),p=(b??[]).filter(e=>e?.label?.trim()),o=p.length>0?p:u?[{label:N("Tab")}]:[],s=(f??[]).filter(e=>e?.label?.trim());if(o.length===0&&s.length===0)return null;const m=c?o.findIndex(e=>e.label.toLowerCase()===c.toLowerCase()):-1,g=m===-1?0:m;return a.scope(r("nav",{className:k(`${h?`${y} sticky top-[var(--sf-header-h,88px)] z-40 `:""}border-b border-line px-[var(--sf-site-gutter,40px)] backdrop-blur-md max-view-desktop:px-[min(16px,var(--sf-site-gutter,40px))]`,a.className),style:{background:"color-mix(in oklab, var(--bg) 92%, transparent)"},...a.attrs,children:l("div",{className:"mx-auto flex max-w-[calc(var(--sf-site-width,1600px)_-_var(--sf-site-gutter,40px)*2)] items-stretch gap-0 overflow-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:[o.map((e,t)=>{const x=t===g,d=e.count?.trim()?e.count:"";return l("span",{className:[`relative whitespace-nowrap border-r border-line px-[22px] py-[18px] font-mono ${i.label} uppercase tracking-[0.22em] transition-colors`,t===0?"border-l border-line":"",x?"text-fg":"text-fg-dim hover:text-fg"].join(" "),children:[n(e.label),d&&r("span",{className:`ml-2 ${i.body} text-accent opacity-70`,children:n(d)}),x&&r("span",{className:"absolute inset-x-0 -bottom-px h-[2px] bg-accent"})]},t)}),s.length>0&&r("div",{className:"ml-auto flex border-l border-line",children:s.map((e,t)=>l(v,{newTab:"auto",href:e.href||"#",className:`flex items-center gap-2.5 px-[22px] py-[18px] font-mono ${i.label} uppercase tracking-[0.22em] text-fg-dim hover:text-fg`,children:[n(e.label)," ",r("span",{className:"text-accent",children:"↗"})]},t))})]})}))}export{_ as default};
@@ -1,2 +1,2 @@
1
- "use client";import{jsx as t,jsxs as r,Fragment as O}from"react/jsx-runtime";import{HideTaker as F}from"./ViewHideRoot.js";import{PictureZoom as G}from"./PictureZoom.js";import{FILLS_ITS_FRAME as V}from"../../format/lib/content/image-aspect.js";import{EDITORIAL_COLUMN as q}from"../../format/lib/content/page-width.js";import{SiteImage as J}from"../lib/site-runtime.js";import{useEffect as W,useState as Z}from"react";import{stripMarkup as K}from"../../format/lib/markup.js";import Q from"./EditorialSectionHead.js";import X from"./SectionEyebrow.js";import{scrollBehavior as j}from"./useReducedMotion.js";import{renderGold as H,renderHeadline as Y}from"./goldPhrases.js";import{CONTACT_LOCATIONS_CARDS_PLACEHOLDER as ee,CONTACT_LOCATIONS_DEFAULTS as f,parseLocationTileShape as te,splitLegacyRegion as ne}from"../../format/lib/content/contact.js";import{galleryCardRatioClass as re}from"../../format/lib/content/gallery-card-layout.js";import{jumpHighlightCss as ie}from"../../format/lib/content/box-link.js";import{hasMapCoords as z}from"../../format/lib/map-styles.js";import{useRootIsDark as oe}from"efficient-shell/theme";import{bucketByGroup as ae,groupColsClass as $}from"../../format/lib/locations-grid.js";import{LocationGroupHeader as se}from"./LocationGroupHeader.js";import le,{DirectionsLink as ce,directionsHref as me}from"./LocationMap.js";import{phoneHref as pe}from"../../format/lib/links/phone-href.js";import{scrim as de}from"../../format/lib/content/scrim.js";import{PHOTO_HOST_ATTR as ue,resolveImageTreatment as he}from"../../format/lib/content/image-treatment.js";import{pictureHoverOf as fe}from"../../format/lib/animation/hover.js";import ge from"./PhotoHoverSheet.js";import{nonEmptyString as xe}from"../../format/lib/non-empty-string.js";const be=ie({box:".contact-loc",lit:['.contact-loc[data-active="true"]'],first:i=>[`${i} > div:first-child`]}),M=i=>xe(i?.photo)?.trim()||void 0;function E({value:i}){if(typeof i=="string"){const n=i.split(`
2
- `);return t(O,{children:n.map((c,a)=>r("span",{children:[c,a<n.length-1?t("br",{}):null]},a))})}return t(O,{children:i})}function ve(){return t("div",{className:"absolute inset-0 flex items-center justify-center",style:{background:"repeating-linear-gradient(45deg, rgba(201,164,97,.05) 0 1px, transparent 1px 14px), linear-gradient(135deg, var(--site-surface-2), var(--site-surface))"},children:r("svg",{width:"34",height:"34",viewBox:"0 0 24 24",fill:"none",stroke:"var(--fg-dim)",strokeWidth:1.4,"aria-hidden":"true",style:{opacity:.4},children:[t("rect",{x:"3",y:"4",width:"18",height:"16",rx:"1.5"}),t("circle",{cx:"8.5",cy:"9.5",r:"1.6"}),t("path",{d:"M21 16l-5-5-4 4-2-2-7 7"})]})})}function ye({sectionNumber:i=f.sectionNumber,heading:n=f.heading,tagline:c=f.tagline,galleryKicker:a=f.galleryKicker,galleryHint:u=f.galleryHint,locations:m=ee,mapTheme:g="auto",imageShape:y,pictureHover:x=fe({},"ContactLocations"),editing:s,nodeId:h}){const o=he(void 0,void 0,x),T=o.className?{[ue]:""}:{},p=!oe({whenUnset:!0}),[b,C]=Z(null),N=e=>`loc-${e}`,B=e=>{C(e),typeof document<"u"&&document.getElementById(e)?.scrollIntoView({behavior:j(),block:"start"}),!s&&typeof window<"u"&&window.history?.replaceState&&window.history.replaceState(null,"",`#${e}`)};W(()=>{if(typeof window>"u")return;const e=window.location.hash.replace(/^#/,"");!e||!document.getElementById(e)||(C(e),requestAnimationFrame(()=>{document.getElementById(e)?.scrollIntoView({behavior:j(),block:"start"})}))},[]);const P=re(te(y)),k=(e,d)=>s&&h?`${e}:${d}`:void 0,I=m.some(e=>M(e)!==void 0),R=m.length>0&&(s||I),D=m.some(e=>z(Number(e?.lat),Number(e?.lng))),_=ae(m,e=>String(e.group??""),e=>String(e.groupName??""));return t(F,{as:"section",id:"studios",className:"scroll-mt-24 border-b border-line py-[100px] max-view-desktop:py-[60px]",style:p?void 0:{background:"var(--section-bg)"},children:r("div",{className:q,children:[t("style",{dangerouslySetInnerHTML:{__html:be}}),t(ge,{sheet:I?o.sheet:void 0}),(i||n||c)&&t(Q,{num:i,title:n?Y(n,!0):void 0,desc:c?H(c):void 0,spaceBelow:"mb-10"}),R&&r("div",{className:"mb-12",children:[(a||u)&&r("div",{className:"mb-5 flex items-baseline justify-between gap-6 border-b border-line pb-4",children:[a&&t(X,{text:a,size:12}),u&&t("span",{className:"font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.22em] text-fg-dim",children:H(u)})]}),t("div",{className:"flex flex-col gap-6",children:_.map((e,d)=>{const v=e.items.length===1;return r("div",{children:[e.key&&t("div",{className:"mb-2.5 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.3em] text-accent",children:e.key}),t("div",{className:["grid gap-[2px] border border-line bg-line",$(e.items.length),e.items.length>1?"max-[700px]:grid-cols-2":""].join(" "),children:e.items.map(({item:l,index:w})=>{const S=String(l?.name??""),L=M(l),A=N(w);return r("a",{href:`#${A}`,"aria-label":`Jump to ${S||"location"} map`,onClick:U=>{U.preventDefault(),B(A)},"data-loc-pick":k(w,"image"),...T,className:["group relative block",P,"overflow-hidden bg-bg outline-none focus-visible:ring-2 focus-visible:ring-accent",v?"max-h-[440px]":""].join(" "),children:[t(G,{fill:L?V:null,children:L?t(J,{src:L,alt:K(S||"Location"),fill:!0,sizes:v?"100vw":"(max-width: 700px) 50vw, 33vw",className:`object-cover${o.className?` ${o.className}`:""}`,...o.style?{style:o.style}:{}}):t(ve,{})}),t("div",{className:"pointer-events-none absolute inset-0",style:{background:`linear-gradient(180deg, transparent 50%, ${de(.85)} 100%)`}}),t("figcaption",{className:"absolute inset-x-0 bottom-0 z-[1] flex items-center justify-start gap-2 px-3 py-3 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.22em] text-overlay-fg/85",children:t("span",{children:S})})]},w)})})]},e.key?`g:${e.key}`:`ungrouped:${d}`)})})]}),_.map((e,d)=>r("div",{className:d===0?"":"mt-10",children:[e.key&&t(se,{groupKey:e.key,name:e.name,count:e.items.length}),t("div",{className:["grid gap-[2px] border border-line bg-line",$(e.items.length),e.items.length>1?"max-view-desktop:grid-cols-1":""].join(" "),children:e.items.map(({item:v,index:l})=>t(Ne,{id:N(l),card:v,active:b===N(l),mapTheme:g,mapPick:k(l,"map"),cityPick:k(l,"city"),editing:s},l))})]},e.key?`g:${e.key}`:`ungrouped:${d}`)),D&&r("p",{className:"mt-8 text-right font-mono text-[10px] uppercase tracking-[0.25em] text-fg-dim/50",children:["Location coordinates ©"," ",t("a",{href:"https://www.openstreetmap.org/copyright",target:"_blank",rel:"noopener noreferrer",className:"hover:text-accent",children:"OpenStreetMap contributors"})]})]})})}function Ne({id:i,card:n,active:c,mapTheme:a,mapPick:u,cityPick:m,editing:g}){const y=pe(n.phone),x=ne(n.region),s=String(n.state??"").trim()||x.state,h=String(n.country??"").trim()||x.country,o=[s,h].filter(Boolean).join(" · "),p=z(Number(n.lat),Number(n.lng))||!!g,b=me(String(n.mapsUrl??""),String(n.name??""),s,h);return r("article",{id:i,"data-active":c?"true":void 0,"data-loc-pick":m,className:p?"contact-loc grid min-h-[840px] scroll-mt-[120px] grid-rows-[auto_1fr] bg-bg max-view-desktop:min-h-0":"contact-loc grid scroll-mt-[120px] bg-bg",children:[r("div",{className:p?"flex min-h-[280px] flex-col gap-3 border-b border-line px-7 py-7":"flex flex-col gap-3 px-7 py-7",children:[r("div",{className:"flex items-start justify-between gap-3.5",children:[r("div",{children:[n.name&&t("div",{className:"font-heading3 text-[length:var(--size-headingSmall,30px)] font-medium uppercase leading-none tracking-[-0.02em]",children:n.name}),o&&t("div",{className:"mt-1.5 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.24em] text-accent",children:o})]}),n.timezone&&t("span",{className:"whitespace-nowrap border border-line px-2.5 py-1.5 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.22em] text-fg-dim",children:n.timezone})]}),n.address!=null&&n.address!==""&&t("div",{className:"mt-1.5 font-display text-[length:var(--size-body,14px)] leading-[1.5] text-fg-dim",children:t(E,{value:n.address})}),n.phone&&t("div",{children:t("a",{href:y,className:"font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.18em] text-fg hover:text-accent",children:n.phone})}),n.hours!=null&&n.hours!==""&&t("div",{className:"font-mono text-[length:var(--size-label,12px)] uppercase leading-[1.7] tracking-[0.18em] text-fg-dim",children:t(E,{value:n.hours})}),!p&&b&&t("div",{children:t(ce,{href:b})})]}),p&&t(le,{name:String(n.name??""),state:s,country:h,lat:Number(n.lat),lng:Number(n.lng),mapsUrl:String(n.mapsUrl??""),mapTheme:a,pick:u,editing:g})]})}export{ye as default};
1
+ "use client";import{jsx as t,jsxs as i,Fragment as O}from"react/jsx-runtime";import{HideTaker as F}from"./ViewHideRoot.js";import{PictureZoom as G}from"./PictureZoom.js";import{FILLS_ITS_FRAME as V}from"../../format/lib/content/image-aspect.js";import{EDITORIAL_COLUMN as W}from"../../format/lib/content/page-width.js";import{SiteImage as q}from"../lib/site-runtime.js";import{useEffect as J,useState as Z}from"react";import{stripMarkup as K}from"../../format/lib/markup.js";import Q from"./EditorialSectionHead.js";import X from"./SectionEyebrow.js";import{scrollBehavior as j}from"./useReducedMotion.js";import{renderGold as H,renderHeadline as Y}from"./goldPhrases.js";import{CONTACT_LOCATIONS_CARDS_PLACEHOLDER as ee,CONTACT_LOCATIONS_DEFAULTS as f,parseLocationTileShape as te,splitLegacyRegion as ne}from"../../format/lib/content/contact.js";import{galleryCardRatioClass as ie}from"../../format/lib/content/gallery-card-layout.js";import{jumpHighlightCss as oe,NEW_TAB_ATTRS as re}from"../../format/lib/content/box-link.js";import{hasMapCoords as z}from"../../format/lib/map-styles.js";import{useRootIsDark as ae}from"efficient-shell/theme";import{bucketByGroup as se,groupColsClass as $}from"../../format/lib/locations-grid.js";import{LocationGroupHeader as le}from"./LocationGroupHeader.js";import ce,{DirectionsLink as me,directionsHref as pe}from"./LocationMap.js";import{phoneHref as de}from"../../format/lib/links/phone-href.js";import{scrim as ue}from"../../format/lib/content/scrim.js";import{PHOTO_HOST_ATTR as he,resolveImageTreatment as fe}from"../../format/lib/content/image-treatment.js";import{pictureHoverOf as ge}from"../../format/lib/animation/hover.js";import xe from"./PhotoHoverSheet.js";import{nonEmptyString as be}from"../../format/lib/non-empty-string.js";const ve=oe({box:".contact-loc",lit:['.contact-loc[data-active="true"]'],first:o=>[`${o} > div:first-child`]}),E=o=>be(o?.photo)?.trim()||void 0;function M({value:o}){if(typeof o=="string"){const n=o.split(`
2
+ `);return t(O,{children:n.map((c,a)=>i("span",{children:[c,a<n.length-1?t("br",{}):null]},a))})}return t(O,{children:o})}function ye(){return t("div",{className:"absolute inset-0 flex items-center justify-center",style:{background:"repeating-linear-gradient(45deg, rgba(201,164,97,.05) 0 1px, transparent 1px 14px), linear-gradient(135deg, var(--site-surface-2), var(--site-surface))"},children:i("svg",{width:"34",height:"34",viewBox:"0 0 24 24",fill:"none",stroke:"var(--fg-dim)",strokeWidth:1.4,"aria-hidden":"true",style:{opacity:.4},children:[t("rect",{x:"3",y:"4",width:"18",height:"16",rx:"1.5"}),t("circle",{cx:"8.5",cy:"9.5",r:"1.6"}),t("path",{d:"M21 16l-5-5-4 4-2-2-7 7"})]})})}function Ne({sectionNumber:o=f.sectionNumber,heading:n=f.heading,tagline:c=f.tagline,galleryKicker:a=f.galleryKicker,galleryHint:u=f.galleryHint,locations:m=ee,mapTheme:g="auto",imageShape:y,pictureHover:x=ge({},"ContactLocations"),editing:s,nodeId:h}){const r=fe(void 0,void 0,x),L=r.className?{[he]:""}:{},p=!ae({whenUnset:!0}),[b,C]=Z(null),N=e=>`loc-${e}`,B=e=>{C(e),typeof document<"u"&&document.getElementById(e)?.scrollIntoView({behavior:j(),block:"start"}),!s&&typeof window<"u"&&window.history?.replaceState&&window.history.replaceState(null,"",`#${e}`)};J(()=>{if(typeof window>"u")return;const e=window.location.hash.replace(/^#/,"");!e||!document.getElementById(e)||(C(e),requestAnimationFrame(()=>{document.getElementById(e)?.scrollIntoView({behavior:j(),block:"start"})}))},[]);const P=ie(te(y)),k=(e,d)=>s&&h?`${e}:${d}`:void 0,I=m.some(e=>E(e)!==void 0),R=m.length>0&&(s||I),D=m.some(e=>z(Number(e?.lat),Number(e?.lng))),_=se(m,e=>String(e.group??""),e=>String(e.groupName??""));return t(F,{as:"section",id:"studios",className:"scroll-mt-24 border-b border-line py-[100px] max-view-desktop:py-[60px]",style:p?void 0:{background:"var(--section-bg)"},children:i("div",{className:W,children:[t("style",{dangerouslySetInnerHTML:{__html:ve}}),t(xe,{sheet:I?r.sheet:void 0}),(o||n||c)&&t(Q,{num:o,title:n?Y(n,!0):void 0,desc:c?H(c):void 0,spaceBelow:"mb-10"}),R&&i("div",{className:"mb-12",children:[(a||u)&&i("div",{className:"mb-5 flex items-baseline justify-between gap-6 border-b border-line pb-4",children:[a&&t(X,{text:a,size:12}),u&&t("span",{className:"font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.22em] text-fg-dim",children:H(u)})]}),t("div",{className:"flex flex-col gap-6",children:_.map((e,d)=>{const v=e.items.length===1;return i("div",{children:[e.key&&t("div",{className:"mb-2.5 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.3em] text-accent",children:e.key}),t("div",{className:["grid gap-[2px] border border-line bg-line",$(e.items.length),e.items.length>1?"max-[700px]:grid-cols-2":""].join(" "),children:e.items.map(({item:l,index:w})=>{const S=String(l?.name??""),T=E(l),A=N(w);return i("a",{href:`#${A}`,"aria-label":`Jump to ${S||"location"} map`,onClick:U=>{U.preventDefault(),B(A)},"data-loc-pick":k(w,"image"),...L,className:["group relative block",P,"overflow-hidden bg-bg outline-none focus-visible:ring-2 focus-visible:ring-accent",v?"max-h-[440px]":""].join(" "),children:[t(G,{fill:T?V:null,children:T?t(q,{src:T,alt:K(S||"Location"),fill:!0,sizes:v?"100vw":"(max-width: 700px) 50vw, 33vw",className:`object-cover${r.className?` ${r.className}`:""}`,...r.style?{style:r.style}:{}}):t(ye,{})}),t("div",{className:"pointer-events-none absolute inset-0",style:{background:`linear-gradient(180deg, transparent 50%, ${ue(.85)} 100%)`}}),t("figcaption",{className:"absolute inset-x-0 bottom-0 z-[1] flex items-center justify-start gap-2 px-3 py-3 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.22em] text-overlay-fg/85",children:t("span",{children:S})})]},w)})})]},e.key?`g:${e.key}`:`ungrouped:${d}`)})})]}),_.map((e,d)=>i("div",{className:d===0?"":"mt-10",children:[e.key&&t(le,{groupKey:e.key,name:e.name,count:e.items.length}),t("div",{className:["grid gap-[2px] border border-line bg-line",$(e.items.length),e.items.length>1?"max-view-desktop:grid-cols-1":""].join(" "),children:e.items.map(({item:v,index:l})=>t(ke,{id:N(l),card:v,active:b===N(l),mapTheme:g,mapPick:k(l,"map"),cityPick:k(l,"city"),editing:s},l))})]},e.key?`g:${e.key}`:`ungrouped:${d}`)),D&&i("p",{className:"mt-8 text-right font-mono text-[10px] uppercase tracking-[0.25em] text-fg-dim/50",children:["Location coordinates ©"," ",t("a",{href:"https://www.openstreetmap.org/copyright",...re,className:"hover:text-accent",children:"OpenStreetMap contributors"})]})]})})}function ke({id:o,card:n,active:c,mapTheme:a,mapPick:u,cityPick:m,editing:g}){const y=de(n.phone),x=ne(n.region),s=String(n.state??"").trim()||x.state,h=String(n.country??"").trim()||x.country,r=[s,h].filter(Boolean).join(" · "),p=z(Number(n.lat),Number(n.lng))||!!g,b=pe(String(n.mapsUrl??""),String(n.name??""),s,h);return i("article",{id:o,"data-active":c?"true":void 0,"data-loc-pick":m,className:p?"contact-loc grid min-h-[840px] scroll-mt-[120px] grid-rows-[auto_1fr] bg-bg max-view-desktop:min-h-0":"contact-loc grid scroll-mt-[120px] bg-bg",children:[i("div",{className:p?"flex min-h-[280px] flex-col gap-3 border-b border-line px-7 py-7":"flex flex-col gap-3 px-7 py-7",children:[i("div",{className:"flex items-start justify-between gap-3.5",children:[i("div",{children:[n.name&&t("div",{className:"font-heading3 text-[length:var(--size-headingSmall,30px)] font-medium uppercase leading-none tracking-[-0.02em]",children:n.name}),r&&t("div",{className:"mt-1.5 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.24em] text-accent",children:r})]}),n.timezone&&t("span",{className:"whitespace-nowrap border border-line px-2.5 py-1.5 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.22em] text-fg-dim",children:n.timezone})]}),n.address!=null&&n.address!==""&&t("div",{className:"mt-1.5 font-display text-[length:var(--size-body,14px)] leading-[1.5] text-fg-dim",children:t(M,{value:n.address})}),n.phone&&t("div",{children:t("a",{href:y,className:"font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.18em] text-fg hover:text-accent",children:n.phone})}),n.hours!=null&&n.hours!==""&&t("div",{className:"font-mono text-[length:var(--size-label,12px)] uppercase leading-[1.7] tracking-[0.18em] text-fg-dim",children:t(M,{value:n.hours})}),!p&&b&&t("div",{children:t(me,{href:b})})]}),p&&t(ce,{name:String(n.name??""),state:s,country:h,lat:Number(n.lat),lng:Number(n.lng),mapsUrl:String(n.mapsUrl??""),mapTheme:a,pick:u,editing:g})]})}export{Ne as default};
@@ -1,6 +1,7 @@
1
+ import type { SlotComponent } from "efficient-easel/blocks";
1
2
  import type { MapThemeMode } from "../../format/lib/map-styles.js";
2
3
  import { type DealerListPosition } from "../lib/dealer-source.js";
3
- export default function DealerFinder({ mapLabel, mapTheme, search, searchHint, noMatchText, listPosition, showDistance, editing, }: {
4
+ export default function DealerFinder({ mapLabel, mapTheme, search, searchHint, noMatchText, listPosition, showDistance, editing, template, ownerId, }: {
4
5
  mapLabel: string;
5
6
  mapTheme: MapThemeMode;
6
7
  search: boolean;
@@ -9,4 +10,6 @@ export default function DealerFinder({ mapLabel, mapTheme, search, searchHint, n
9
10
  listPosition: DealerListPosition;
10
11
  showDistance: boolean;
11
12
  editing?: boolean;
13
+ template?: SlotComponent;
14
+ ownerId?: string;
12
15
  }): import("react").JSX.Element | null;
@@ -1 +1 @@
1
- "use client";import{jsx as t,jsxs as a,Fragment as q}from"react/jsx-runtime";import{useEffect as K,useMemo as v,useRef as V,useState as d}from"react";import{dealerDistanceLabel as W,dealerPins as O,parseDealerListPosition as Q,useDealerSource as Y}from"../lib/dealer-source.js";import{groupColsClass as G}from"../../format/lib/locations-grid.js";import{say as J}from"../../format/lib/editor-words.js";import U from"./SiteMap.js";import X,{SIDE_MAP_CLASS as Z}from"./SideListLayout.js";const D={near:null,dealers:[]},H=5;function ee({mapLabel:n,mapTheme:p,search:h,searchHint:l,noMatchText:u,listPosition:f,showDistance:L,editing:z}){const o=Y(),[s,m]=d(D),[N,M]=d(""),[E,w]=d(!1),[S,g]=d(null),[B,I]=d(null),b=V(null);K(()=>{if(!o)return;let e=!0;return o({}).then(r=>e&&m(r)).catch(()=>e&&m(D)),()=>{e=!1}},[o]);const i=v(()=>O(s.dealers),[s.dealers]),R=v(()=>new Set(i.map(e=>e.key)),[i]),F=v(()=>s.near==="found"?i.slice(0,H).map(e=>e.key):null,[s.near,i]),P=e=>{g(e),R.has(e)&&I(r=>({key:e,n:(r?.n??0)+1}))},T=e=>{g(e),b.current?.querySelector(`[data-dealer="${CSS.escape(e)}"]`)?.scrollIntoView({block:"nearest"})};if(!o)return z?t("p",{"data-dealers-unavailable":!0,className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.24em] text-fg-dim",children:J("Dealers are not available on this website")}):null;const A=e=>{e.preventDefault();const r=N.trim();w(!0),g(null),o(r?{near:r}:{}).then(m).catch(()=>m($=>({...$,near:"try_again"}))).finally(()=>w(!1))},x=Q(f),k=x!=="below",y=s.near==="not_found"||s.near==="try_again",_=h?a("form",{role:"search",onSubmit:A,className:"mb-4 flex gap-2",children:[t("input",{type:"search",value:N,onChange:e=>M(e.target.value),placeholder:l,"aria-label":l,"aria-invalid":y||void 0,className:["min-w-0 flex-1 border bg-bg px-3 py-2 text-[length:var(--size-body,14px)] text-fg outline-none",y?"border-accent":"border-line focus:border-fg"].join(" ")}),t("button",{type:"submit","aria-label":l,disabled:E,className:"grid w-10 shrink-0 place-items-center bg-fg text-bg disabled:opacity-50",children:a("svg",{"aria-hidden":!0,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[t("circle",{cx:"11",cy:"11",r:"7"}),t("path",{d:"M20 20l-3.5-3.5"})]})})]}):null,j=y&&u?t("p",{role:"status",className:"mb-3 text-[length:var(--size-body,14px)] text-fg-dim",children:u}):null,c=s.dealers.map(e=>t(te,{dealer:e,active:S===e.id,onSelect:()=>P(e.id),distance:L?W(e.distanceKm):"",tile:!k},e.id)),C=t(U,{pins:i,mapTheme:p,selectedKey:S,focus:B,onSelect:T,ariaLabel:n,className:Z,groupCrowded:!0,fitTo:F});return k?t(X,{position:x,attrs:{"data-dealer-finder":x},head:a(q,{children:[_,j]}),listRef:b,list:c,map:C}):a("div",{"data-dealer-finder":"below",children:[_,j,C,c.length>0&&t("div",{ref:b,className:["mt-12 grid gap-[2px] bg-bg",G(c.length),c.length>2?"max-view-desktop:grid-cols-2 max-[700px]:grid-cols-1":"max-[700px]:grid-cols-1"].join(" "),children:c})]})}function te({dealer:n,active:p,onSelect:h,distance:l,tile:u}){const f=[n.city,[n.state,n.postcode].filter(Boolean).join(" ")].filter(Boolean).join(" ");return a("div",{"data-dealer":n.id,className:["flex gap-3 bg-bg text-left outline outline-1 -outline-offset-1",u?"px-6 py-5":"border-b border-line px-1 py-4",p?"outline-accent":"outline-transparent hover:outline-line"].join(" "),children:[a("button",{type:"button",onClick:h,"aria-pressed":p,className:"min-w-0 flex-1 text-left",children:[t("span",{className:"block font-display text-[length:var(--size-body,16px)] font-medium leading-[1.25] text-fg",children:n.name}),n.address&&t("span",{className:"mt-1 block text-[length:var(--size-body,14px)] text-fg-dim",children:n.address}),f&&t("span",{className:"block text-[length:var(--size-body,14px)] text-fg-dim",children:f})]}),a("span",{className:"flex shrink-0 flex-col items-end gap-1 text-[length:var(--size-body,14px)]",children:[l&&t("span",{className:"text-fg-dim",children:l}),n.phone&&t("a",{href:`tel:${n.phone.replace(/[^\d+]/g,"")}`,className:"text-fg underline underline-offset-2",children:n.phone}),n.website&&t("a",{href:n.website,target:"_blank",rel:"noopener noreferrer",className:"text-fg underline underline-offset-2",children:n.website.replace(/^https?:\/\//,"").replace(/\/$/,"")})]})]})}export{ee as default};
1
+ "use client";import{jsx as r,jsxs as c,Fragment as V}from"react/jsx-runtime";import{useEffect as K,useMemo as h,useRef as Q,useState as o}from"react";import{CardTemplateRows as Y}from"./CardRowContext.js";import{DEALER_FIELDS as $,dealerCardRow as G,dealerPins as J,dealerPressLabel as U,parseDealerListPosition as X,useDealerSource as Z}from"../lib/dealer-source.js";import{groupColsClass as H}from"../../format/lib/locations-grid.js";import{say as ee}from"../../format/lib/editor-words.js";import te from"./SiteMap.js";import re,{SIDE_MAP_CLASS as ae,SIDE_ROW_REACH_CLASS as se}from"./SideListLayout.js";import{InsideSiteColumn as le}from"./SiteGutterFrame.js";const C={near:null,dealers:[]},ne=5;function oe({mapLabel:E,mapTheme:L,search:k,searchHint:d,noMatchText:g,listPosition:N,showDistance:R,editing:D,template:I,ownerId:A=""}){const l=Z(),[a,i]=o(C),[b,M]=o(""),[T,x]=o(!1),[y,u]=o(null),[j,F]=o(null),m=Q(null);K(()=>{if(!l)return;let e=!0;return l({}).then(s=>e&&i(s)).catch(()=>e&&i(C)),()=>{e=!1}},[l]);const n=h(()=>J(a.dealers),[a.dealers]),P=h(()=>new Set(n.map(e=>e.key)),[n]),z=h(()=>a.near==="found"?n.slice(0,ne).map(e=>e.key):null,[a.near,n]),B=e=>{u(e),P.has(e)&&F(s=>({key:e,n:(s?.n??0)+1}))},O=e=>{u(e),m.current?.querySelector(`[data-dealer="${CSS.escape(e)}"]`)?.scrollIntoView({block:"nearest"})};if(!l)return D?r("p",{"data-dealers-unavailable":!0,className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.24em] text-fg-dim",children:ee("Dealers are not available on this website")}):null;const W=e=>{e.preventDefault();const s=b.trim();x(!0),u(null),l(s?{near:s}:{}).then(i).catch(()=>i(t=>({...t,near:"try_again"}))).finally(()=>x(!1))},p=X(N),q=p!=="below",f=a.near==="not_found"||a.near==="try_again",S=k?c("form",{role:"search",onSubmit:W,className:"mb-4 flex gap-2",children:[r("input",{type:"search",value:b,onChange:e=>M(e.target.value),placeholder:d,"aria-label":d,"aria-invalid":f||void 0,className:["min-w-0 flex-1 border bg-bg px-3 py-2 text-[length:var(--size-body,14px)] text-fg outline-none",f?"border-accent":"border-line focus:border-fg"].join(" ")}),r("button",{type:"submit","aria-label":d,disabled:T,className:"grid w-10 shrink-0 place-items-center bg-fg text-bg disabled:opacity-50",children:c("svg",{"aria-hidden":!0,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[r("circle",{cx:"11",cy:"11",r:"7"}),r("path",{d:"M20 20l-3.5-3.5"})]})})]}):null,w=f&&g?r("p",{role:"status",className:"mb-3 text-[length:var(--size-body,14px)] text-fg-dim",children:g}):null,v=(e,s=!1)=>r(le,{children:r(Y,{ownerId:A,ownerType:"Footprint",Template:I,rows:a.dealers.map(t=>G(t,R)),fields:$,states:a.dealers.map(t=>y===t.id?{selected:!0}:void 0),actions:a.dealers.map(t=>({press:()=>B(t.id),label:U(t)})),copyAttrs:t=>({"data-dealer":a.dealers[t.index]?.id??""}),wrapCopy:s?t=>r("div",{className:se,children:t}):void 0,fallback:null,children:t=>e(t)})}),_=r(te,{pins:n,mapTheme:L,selectedKey:y,focus:j,onSelect:O,ariaLabel:E,className:ae,groupCrowded:!0,fitTo:z});return q?r(re,{position:p,attrs:{"data-dealer-finder":p},head:c(V,{children:[S,w]}),listRef:m,list:v(e=>e,!0),rowsReachOut:!0,map:_}):c("div",{"data-dealer-finder":"below",children:[S,w,_,a.dealers.length>0&&v(e=>r("div",{ref:m,className:["mt-12 grid gap-[2px] bg-bg",H(e.length),e.length>2?"max-view-desktop:grid-cols-2 max-[700px]:grid-cols-1":"max-[700px]:grid-cols-1"].join(" "),children:e}))]})}export{oe as default};
@@ -1 +1 @@
1
- import{jsx as b}from"react/jsx-runtime";import h from"./BlockFrame.js";import{padDefaultIn as d,sectionPadAttrs as y}from"../lib/content/section-padding.js";import{finiteNumber as f}from"../../format/lib/finite-number.js";import{DEFAULT_DIVIDER_STYLE as P,DIVIDER_SPACE_PX as p,STRIPE_BAND_HEIGHT_PX as I,parseDividerSpacing as N,parseDividerStyle as _,stripeBackground as g}from"../../format/lib/sections/divider-style.js";const D=1,E=100;function S(e,t,i){const o={};return!i&&typeof e=="number"&&e!==D&&(o.borderTopWidth=e),typeof t=="number"&&t<E&&(o.width=`${t}%`),Object.keys(o).length?o:void 0}const A={sm:"my-6",md:"my-12",lg:"my-20"},u=(...e)=>e.some(t=>f(t)!==void 0);function B(e,t,i){const o=i||u(t.top,t.topTablet,t.topPhone),s=i||u(t.bottom,t.bottomTablet,t.bottomPhone),l=u(t.left,t.right,t.leftTablet,t.rightTablet,t.leftPhone,t.rightPhone);if(!o&&!s&&!l)return null;const n=p[e],m=y({...t,top:o?f(t.top)??d(n,t.unit,"desktop"):void 0,bottom:s?f(t.bottom)??d(n,t.unit,"desktop"):void 0,topTablet:o?t.topTablet:void 0,bottomTablet:s?t.bottomTablet:void 0,topPhone:o?t.topPhone:void 0,bottomPhone:s?t.bottomPhone:void 0}),r={...m?.style};return o||(r.marginTop=n),s||(r.marginBottom=n),{className:m?.className??"",style:r}}function k({spacing:e,contained:t,style:i=P,thickness:o,lengthPct:s,pad:l={}}){const n=_(i),m=N(e),r=g(n),a=S(o,s,!!r),c=B(m,l,n==="none"),T=c?c.className:A[m];return b(h,{contained:t,className:T,style:c?.style,children:n==="none"?null:r?b("hr",{className:"border-x-0 border-y border-line",style:{height:I,backgroundImage:r,...a}}):b("hr",{className:"border-0 border-t border-line",style:a})})}export{k as default};
1
+ import{jsx as b}from"react/jsx-runtime";import h from"./BlockFrame.js";import{padDefaultIn as d,padSideValue as y,sectionPadAttrs as p}from"../lib/content/section-padding.js";import{finiteNumber as u}from"../../format/lib/finite-number.js";import{DEFAULT_DIVIDER_STYLE as P,DIVIDER_SPACE_PX as I,STRIPE_BAND_HEIGHT_PX as N,parseDividerSpacing as _,parseDividerStyle as g,stripeBackground as D}from"../../format/lib/sections/divider-style.js";const E=1,S=100;function A(o,t,i){const e={};return!i&&typeof o=="number"&&o!==E&&(e.borderTopWidth=o),typeof t=="number"&&t<S&&(e.width=`${t}%`),Object.keys(e).length?e:void 0}const B={sm:"my-6",md:"my-12",lg:"my-20"},a=(...o)=>o.some(t=>u(t)!==void 0);function k(o,t,i){const e=i||a(t.top,t.topTablet,t.topPhone),s=i||a(t.bottom,t.bottomTablet,t.bottomPhone),c=[t.left,t.right,t.leftTablet,t.rightTablet,t.leftPhone,t.rightPhone].some(l=>y(l)!==void 0);if(!e&&!s&&!c)return null;const n=I[o],m=p({...t,top:e?u(t.top)??d(n,t.unit,"desktop"):void 0,bottom:s?u(t.bottom)??d(n,t.unit,"desktop"):void 0,topTablet:e?t.topTablet:void 0,bottomTablet:s?t.bottomTablet:void 0,topPhone:e?t.topPhone:void 0,bottomPhone:s?t.bottomPhone:void 0}),r={...m?.style};return e||(r.marginTop=n),s||(r.marginBottom=n),{className:m?.className??"",style:r}}function x({spacing:o,contained:t,style:i=P,thickness:e,lengthPct:s,pad:c={}}){const n=g(i),m=_(o),r=D(n),l=A(e,s,!!r),f=k(m,c,n==="none"),T=f?f.className:B[m];return b(h,{contained:t,className:T,style:f?.style,children:n==="none"?null:r?b("hr",{className:"border-x-0 border-y border-line",style:{height:N,backgroundImage:r,...l}}):b("hr",{className:"border-0 border-t border-line",style:l})})}export{x as default};
@@ -1 +1 @@
1
- import{jsx as a,jsxs as n}from"react/jsx-runtime";import c from"./SectionEyebrow.js";import{HideTaker as g}from"./ViewHideRoot.js";import{renderGold as s,renderHeadline as b}from"./goldPhrases.js";const x={bodyUpTo900:"max-[900px]:text-[length:var(--size-body,19px)]",body:"text-[length:var(--size-body,22px)]",label:"text-[length:var(--size-label,13px)]"};function f({level:t,className:l,children:r}){return a(t===2?"h2":"h1",{className:l,children:r})}function h({eyebrow:t,title:l,deck:r,meta:p,editing:o=!1,titleLevel:d}){const i=(p??[]).filter(e=>(e.label??"").trim()!==""||(e.value??"").trim()!=="");return!!!(t||l||r||i.length>0)&&!o?null:a(g,{as:"section",className:"relative z-[2] bg-bg",children:n("div",{className:"mx-auto max-w-[var(--sf-site-width,1600px)] border-b border-line px-[var(--sf-site-gutter,40px)] pt-[100px] pb-[60px] max-[900px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[900px]:pt-[60px] max-[900px]:pb-10",children:[n("div",{className:"grid grid-cols-[auto_1fr_auto] items-end gap-10 pb-8 max-[900px]:grid-cols-1 max-[900px]:gap-4",children:[t&&a(c,{text:t,className:"pb-3",classNameAfter:"max-[900px]:pb-0"}),l&&a(f,{level:d,className:"font-display text-[length:min(var(--size-headingLarge,clamp(56px,8vw,128px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[0.88] tracking-[-0.04em]",children:b(l,!0)}),i.length>0&&a("div",{className:`pb-3 text-right font-mono ${x.label} uppercase leading-[1.8] tracking-[0.22em] text-fg-dim max-[900px]:pb-0 max-[900px]:text-left`,children:i.map((e,m)=>n("div",{children:[e.label&&a("strong",{className:"font-normal text-fg",children:s(e.label)}),e.label&&e.value?" ":null,e.value?s(e.value):null]},m))})]}),r&&a("p",{className:`max-w-[760px] border-t border-line pt-8 font-serif ${x.body} italic leading-[1.5] text-fg-dim ${x.bodyUpTo900}`,children:s(r,!0)})]})})}export{h as default};
1
+ import{jsx as a,jsxs as s}from"react/jsx-runtime";import c from"./SectionEyebrow.js";import{HideTaker as g}from"./ViewHideRoot.js";import{renderGold as p,renderHeadline as f}from"./goldPhrases.js";import{pageTitleTag as b}from"../../format/lib/document/one-h1.js";const x={bodyUpTo900:"max-[900px]:text-[length:var(--size-body,19px)]",body:"text-[length:var(--size-body,22px)]",label:"text-[length:var(--size-label,13px)]"};function u({level:t,className:l,children:r}){const i=b(t);return a(i,{className:l,children:r})}function h({eyebrow:t,title:l,deck:r,meta:i,editing:o=!1,titleLevel:d}){const n=(i??[]).filter(e=>(e.label??"").trim()!==""||(e.value??"").trim()!=="");return!!!(t||l||r||n.length>0)&&!o?null:a(g,{as:"section",className:"relative z-[2] bg-bg",children:s("div",{className:"mx-auto max-w-[var(--sf-site-width,1600px)] border-b border-line px-[var(--sf-site-gutter,40px)] pt-[100px] pb-[60px] max-[900px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[900px]:pt-[60px] max-[900px]:pb-10",children:[s("div",{className:"grid grid-cols-[auto_1fr_auto] items-end gap-10 pb-8 max-[900px]:grid-cols-1 max-[900px]:gap-4",children:[t&&a(c,{text:t,className:"pb-3",classNameAfter:"max-[900px]:pb-0"}),l&&a(u,{level:d,className:"font-display text-[length:min(var(--size-headingLarge,clamp(56px,8vw,128px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[0.88] tracking-[-0.04em]",children:f(l,!0)}),n.length>0&&a("div",{className:`pb-3 text-right font-mono ${x.label} uppercase leading-[1.8] tracking-[0.22em] text-fg-dim max-[900px]:pb-0 max-[900px]:text-left`,children:n.map((e,m)=>s("div",{children:[e.label&&a("strong",{className:"font-normal text-fg",children:p(e.label)}),e.label&&e.value?" ":null,e.value?p(e.value):null]},m))})]}),r&&a("p",{className:`max-w-[760px] border-t border-line pt-8 font-serif ${x.body} italic leading-[1.5] text-fg-dim ${x.bodyUpTo900}`,children:p(r,!0)})]})})}export{h as default};
@@ -1 +1 @@
1
- import{jsx as o,jsxs as n}from"react/jsx-runtime";import{SiteLink as d}from"../lib/site-runtime.js";import{HideTaker as b}from"./ViewHideRoot.js";import{renderChrome as f,renderGold as i}from"./goldPhrases.js";import{STICKY_UNDERHEADER_CLASS as h}from"../lib/document/header-clearance.js";const c={labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"};function g({tabs:p,metaLabel:r,metaValue:t,editing:x=!1}){const a=(p??[]).filter(e=>(e.label??"").trim()!=="");if(a.length===0&&!x)return null;const m=a.findIndex(e=>e.current);return o(b,{as:"nav",className:`${h} sticky top-[var(--sf-header-h,88px)] z-40 border-b border-line px-[var(--sf-site-gutter,40px)] backdrop-blur-md max-[900px]:px-4`,style:{background:"color-mix(in oklab, var(--bg) 92%, transparent)"},children:n("div",{className:"mx-auto flex max-w-[calc(var(--sf-site-width,1600px)_-_var(--sf-site-gutter,40px)*2)] items-stretch gap-0 overflow-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:[a.map((e,l)=>{const s=l===m;return n(d,{href:e.href||"#",className:[`relative whitespace-nowrap border-r border-line px-[26px] py-[18px] font-mono ${c.labelLarge} uppercase tracking-[0.22em] transition-colors`,l===0?"border-l border-line":"",s?"text-fg":"text-fg-dim hover:text-fg"].join(" "),children:[f(e.label),s&&o("span",{className:"absolute inset-x-0 -bottom-px h-[2px] bg-accent"})]},l)}),(r||t)&&n("span",{className:`ml-auto flex items-center whitespace-nowrap border-l border-line py-[18px] pl-[26px] font-mono ${c.labelSmall} uppercase tracking-[0.24em] text-fg-dim max-[900px]:hidden`,children:[r&&i(r),t&&o("strong",{className:"ml-2 font-normal text-accent",children:i(t)})]})]})})}export{g as default};
1
+ import{jsx as l,jsxs as n}from"react/jsx-runtime";import{SiteLink as d}from"../lib/site-runtime.js";import{HideTaker as b}from"./ViewHideRoot.js";import{renderChrome as f,renderGold as i}from"./goldPhrases.js";import{STICKY_UNDERHEADER_CLASS as h}from"../lib/document/header-clearance.js";const c={labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"};function g({tabs:p,metaLabel:r,metaValue:t,editing:x=!1}){const a=(p??[]).filter(e=>(e.label??"").trim()!=="");if(a.length===0&&!x)return null;const m=a.findIndex(e=>e.current);return l(b,{as:"nav",className:`${h} sticky top-[var(--sf-header-h,88px)] z-40 border-b border-line px-[var(--sf-site-gutter,40px)] backdrop-blur-md max-[900px]:px-4`,style:{background:"color-mix(in oklab, var(--bg) 92%, transparent)"},children:n("div",{className:"mx-auto flex max-w-[calc(var(--sf-site-width,1600px)_-_var(--sf-site-gutter,40px)*2)] items-stretch gap-0 overflow-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:[a.map((e,o)=>{const s=o===m;return n(d,{newTab:"auto",href:e.href||"#",className:[`relative whitespace-nowrap border-r border-line px-[26px] py-[18px] font-mono ${c.labelLarge} uppercase tracking-[0.22em] transition-colors`,o===0?"border-l border-line":"",s?"text-fg":"text-fg-dim hover:text-fg"].join(" "),children:[f(e.label),s&&l("span",{className:"absolute inset-x-0 -bottom-px h-[2px] bg-accent"})]},o)}),(r||t)&&n("span",{className:`ml-auto flex items-center whitespace-nowrap border-l border-line py-[18px] pl-[26px] font-mono ${c.labelSmall} uppercase tracking-[0.24em] text-fg-dim max-[900px]:hidden`,children:[r&&i(r),t&&l("strong",{className:"ml-2 font-normal text-accent",children:i(t)})]})]})})}export{g as default};
@@ -1 +1 @@
1
- import{jsx as e,jsxs as a}from"react/jsx-runtime";import{EDITORIAL_COLUMN as N}from"../../format/lib/content/page-width.js";import{HideTaker as k}from"./ViewHideRoot.js";import{Fragment as w}from"react";import{SiteLink as y}from"../lib/site-runtime.js";import{stripMarkup as z}from"../../format/lib/markup.js";import $ from"./Placeholder.js";import{renderGold as r,renderHeadline as S,splitParagraphs as j}from"./goldPhrases.js";import{scrim as h}from"../../format/lib/content/scrim.js";const l={body:"text-[length:var(--size-body,20px)]",labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"};function L({image:b,badge:i,imageDate:o,category:c,readLabel:p,date:m,title:t,dek:d,ctaText:f,ctaHref:u,omitHead:v=!1}){const x=[c?e("span",{className:"text-accent",children:r(c)}):null,p?e("span",{children:r(p)}):null,m?e("span",{children:r(m)}):null].filter(Boolean),g=a("article",{className:"sf-card relative grid grid-cols-[1.3fr_1fr] border border-line bg-[var(--card-bg)] max-view-desktop:grid-cols-1",children:[a("div",{className:"relative aspect-[5/4] overflow-hidden border-r border-line bg-surface-2 max-view-desktop:border-r-0 max-view-desktop:border-b",children:[e($,{label:"featured-cover",src:b||void 0,alt:z(t||"Cover"),sizes:"(max-width: 1100px) 100vw, 56vw"}),e("div",{className:"pointer-events-none absolute inset-0 z-[1]",style:{background:`linear-gradient(180deg, ${h(.45)} 0%, transparent 30%, transparent 70%, ${h(.55)} 100%)`}}),i&&e("span",{className:`absolute left-6 top-6 z-[2] bg-accent px-3 py-2 font-mono ${l.labelSmall} uppercase tracking-[0.3em] text-bg`,children:r(i)}),o&&e("span",{className:`absolute right-6 bottom-6 z-[2] font-mono ${l.labelSmall} uppercase tracking-[0.24em] text-overlay-fg`,children:r(o)})]}),a("div",{className:"flex flex-col justify-between gap-6 px-12 py-14 max-view-desktop:px-7 max-view-desktop:py-9",children:[x.length>0&&e("div",{className:`flex items-center gap-4 font-mono ${l.labelSmall} uppercase tracking-[0.28em] text-fg-dim`,children:x.map((s,n)=>a(w,{children:[n>0&&e("span",{className:"opacity-40",children:"·"}),s]},n))}),t&&e("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(34px,3.5vw,58px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em]",children:S(t,!0)}),d&&j(d).map((s,n)=>e("p",{className:`max-w-[520px] font-serif ${l.body} italic leading-[1.5] text-fg-dim`,children:r(s,!0)},n)),f&&e("div",{children:a(y,{href:u||"#",className:`group inline-flex items-center gap-3.5 py-3.5 font-mono ${l.labelLarge} uppercase tracking-[0.3em] text-accent`,children:[r(f)," ",e("span",{className:"transition-transform group-hover:translate-x-[6px]",children:"→"})]})})]})]});return v?g:e(k,{as:"section",className:"border-b border-line py-20 max-view-desktop:py-[60px]",children:e("div",{className:N,children:g})})}export{L as default};
1
+ import{jsx as e,jsxs as a}from"react/jsx-runtime";import{EDITORIAL_COLUMN as N}from"../../format/lib/content/page-width.js";import{HideTaker as k}from"./ViewHideRoot.js";import{Fragment as w}from"react";import{SiteLink as y}from"../lib/site-runtime.js";import{stripMarkup as z}from"../../format/lib/markup.js";import $ from"./Placeholder.js";import{renderGold as r,renderHeadline as S,splitParagraphs as j}from"./goldPhrases.js";import{scrim as h}from"../../format/lib/content/scrim.js";const l={body:"text-[length:var(--size-body,20px)]",labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"};function L({image:b,badge:i,imageDate:o,category:c,readLabel:p,date:m,title:t,dek:d,ctaText:f,ctaHref:u,omitHead:v=!1}){const x=[c?e("span",{className:"text-accent",children:r(c)}):null,p?e("span",{children:r(p)}):null,m?e("span",{children:r(m)}):null].filter(Boolean),g=a("article",{className:"sf-card relative grid grid-cols-[1.3fr_1fr] border border-line bg-[var(--card-bg)] max-view-desktop:grid-cols-1",children:[a("div",{className:"relative aspect-[5/4] overflow-hidden border-r border-line bg-surface-2 max-view-desktop:border-r-0 max-view-desktop:border-b",children:[e($,{label:"featured-cover",src:b||void 0,alt:z(t||"Cover"),sizes:"(max-width: 1100px) 100vw, 56vw"}),e("div",{className:"pointer-events-none absolute inset-0 z-[1]",style:{background:`linear-gradient(180deg, ${h(.45)} 0%, transparent 30%, transparent 70%, ${h(.55)} 100%)`}}),i&&e("span",{className:`absolute left-6 top-6 z-[2] bg-accent px-3 py-2 font-mono ${l.labelSmall} uppercase tracking-[0.3em] text-bg`,children:r(i)}),o&&e("span",{className:`absolute right-6 bottom-6 z-[2] font-mono ${l.labelSmall} uppercase tracking-[0.24em] text-overlay-fg`,children:r(o)})]}),a("div",{className:"flex flex-col justify-between gap-6 px-12 py-14 max-view-desktop:px-7 max-view-desktop:py-9",children:[x.length>0&&e("div",{className:`flex items-center gap-4 font-mono ${l.labelSmall} uppercase tracking-[0.28em] text-fg-dim`,children:x.map((s,n)=>a(w,{children:[n>0&&e("span",{className:"opacity-40",children:"·"}),s]},n))}),t&&e("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(34px,3.5vw,58px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em]",children:S(t,!0)}),d&&j(d).map((s,n)=>e("p",{className:`max-w-[520px] font-serif ${l.body} italic leading-[1.5] text-fg-dim`,children:r(s,!0)},n)),f&&e("div",{children:a(y,{newTab:"auto",href:u||"#",className:`group inline-flex items-center gap-3.5 py-3.5 font-mono ${l.labelLarge} uppercase tracking-[0.3em] text-accent`,children:[r(f)," ",e("span",{className:"transition-transform group-hover:translate-x-[6px]",children:"→"})]})})]})]});return v?g:e(k,{as:"section",className:"border-b border-line py-20 max-view-desktop:py-[60px]",children:e("div",{className:N,children:g})})}export{L as default};
@@ -1 +1 @@
1
- import{Fragment as q,jsx as e,jsxs as de}from"react/jsx-runtime";import{useContext as Vt,useId as Gt}from"react";import Mt from"./BoxTabs.js";import{AccordionRowStyleContext as Te,BoxTabPaneContext as Fe,useAccordionRowStyle as Wt,useBoxPaneKind as Xt,useFirstCopyOpens as jt,useIsTabPane as Kt}from"./BoxTabPaneContext.js";import Ut,{ACCORDION_COUNTER_RESET as Jt}from"./BoxAccordionRow.js";import{ACCORDION_MARK_SHEET as zt}from"./AccordionMark.js";import{accordionRowStyleOf as Yt}from"../../format/lib/content/accordion-row-style.js";import{boxPhoneCell as qt,boxPhoneOrder as Qt}from"../../format/lib/content/box-phone-place.js";import{CellFillContext as os,InBoxContext as ss,useCellOfStretchedRow as Zt,useFillsCell as en}from"./InBoxContext.js";import on,{InsideSiteColumn as ts,useInsideSiteGutter as sn,useSectionRoot as tn}from"./SiteGutterFrame.js";import{BoxSurfaceProvider as nn}from"./BoxSurfaceContext.js";import rn from"./PictureWash.js";import{BoxCellContext as ns,NoCellBound as ln}from"./BoxCellContext.js";import{boxCellFractions as cn}from"../lib/content/box-cell-bound.js";import{boundOf as an}from"../../format/lib/content/cell-picture-sizes.js";import{useInSiteHeader as dn}from"./PhoneMenuTools.js";import{useCardRow as un}from"./CardRowContext.js";import{cardLineBetween as De,framesItsCards as mn}from"../../format/lib/content/card-place.js";import{rowFieldText as fn}from"../../format/lib/content/card-template.js";import{HandedMirrorContext as Cn,MirrorContext as hn,RowHandContext as rs,boxPlace as bn,useHandedMirrorAbove as Sn,useHandedRows as wn,useMirroredCopy as xn,useUnderCardBox as pn}from"./MirrorContext.js";import{boxChildrenHand as Pn,isMirroredCopy as _n,mirrorCardsActs as ls,mirrorCardsOf as $n,mirroredBoxClass as Rn,MIRROR_ROW_CLASS as On,ownsCard as yn}from"../../format/lib/content/mirror-cards.js";import{FRAME_BASE as He,frameGutterOf as An}from"./BlockFrame.js";import{BOX_SIDE_SPACE_SITE as vn,boxSideSpaceOf as Ln}from"../../format/lib/content/box-side-space.js";import{containerGapProps as is}from"../../format/lib/content/container-gap.js";import{boxLayoutClasses as kn,boxAlignViewClasses as Nn,boxBlockSpacingClass as In,boxBlockSpacingViewClasses as gn,boxJustifyViewClasses as Bn,boxWrapTabletClass as En,boxFitContentClass as Tn,boxAccordionColumnsClass as cs,boxRowColumnsClass as Fn,boxRowTabletColumnsClass as Dn,boxRowTabletShareClass as Hn,boxPhoneCellsShareLine as Vn,boxPhoneRowClasses as Q,boxPhoneRowFits as Gn,boxShareClasses as M,boxShareVars as Mn,boxWrapClass as Wn,BOX_GAP_ONLY_CLASS as Xn}from"../../format/lib/content/box-layout.js";import{boxSeparatorClasses as jn,boxSeparatorSeamClass as Kn,boxSeparatorStyle as Un,isStripBox as Jn}from"../../format/lib/content/box-separator.js";import{DEFAULT_LOOP_DELAY as zn,DEFAULT_LOOP_DIRECTION as Yn,DEFAULT_LOOP_SECONDS as qn,isVerticalLoop as Qn}from"../../format/lib/animation/index.js";import{LoopTrack as Zn}from"../lib/animation/LoopTrack.js";import{BOX_CARD_PAD as O,BOX_OWNS_SIDES_CLASS as er,boxDarkenStyle as or,boxPaintOf as sr,boxFillViews as tr,boxPlacementClasses as nr,boxCardProps as rr,boxIsCard as as,boxRowPicture as lr,boxSwatchFill as ir,boxWashViews as cr,CARD_SHADOW_CLASS as ar,isBackgroundBox as ds}from"../../format/lib/content/box-background.js";import{BOX_ROW_IMAGE_PROP as S}from"../../format/lib/content/box-card-rule.js";import{boxShadowAttrs as dr,boxShadowOnAnyView as ur,boxShadowViewAttrs as mr}from"../../format/lib/content/box-shadow.js";import{boxRunsEdgeToEdge as fr,drawsSiteGutter as Cr}from"../../format/lib/content/site-gutter.js";import{boxShapeClass as hr,boxShapeClasses as br}from"../../format/lib/content/box-shape.js";import{boxAngleStyle as Sr}from"../../format/lib/content/box-angle.js";import{BOX_JUMP_ATTR as wr,BOX_LINK_ATTR as us,BOX_LINK_CLASS as ms,BOX_LINKED_CLASS as xr,boxJumpBlocksClass as pr,boxJumpCss as Pr,boxJumpSlug as _r,boxLinkOf as $r}from"../../format/lib/content/box-link.js";import{SiteLink as Rr}from"../lib/site-runtime.js";import{sectionBorderStyle as fs}from"../../format/lib/content/borders.js";import{finiteNumber as y}from"../../format/lib/finite-number.js";import{padDefaultIn as A,sectionPadAttrs as Or}from"../lib/content/section-padding.js";import{SECTION_FILL_CLASS as ue}from"../../format/lib/content/section-min-height.js";import{ON_MEDIA_INK_STYLE as yr,rowFillInkStyle as Ar}from"../../format/lib/content/ink.js";import{useThemeLightInk as vr}from"./ThemeLightInkContext.js";import{sizedBackground as Ve}from"../../format/lib/sized-image.js";import{PHOTO_HOST_ATTR as Lr,resolveImageTreatment as kr}from"../../format/lib/content/image-treatment.js";import{BOX_HIGHLIGHT_CLASS as Nr,BOX_HIGHLIGHT_OVER_ROW_INK_CLASS as Ir}from"../../format/lib/animation/hover.js";import{BoxRail as gr,BoxRailStop as Br,RAIL_STOPS_CLASS as Er,useTimelineRail as Tr}from"./TimelineRail.js";import{SHARED_PLAIN_ATTR as Fr,sharedColumnsClasses as Dr,sharedColumnsCss as Hr,sharedRowsClasses as Vr,sharedRowsCss as Gr}from"../lib/content/box-shared-columns.js";import Mr from"./PhotoHoverSheet.js";import{stackGutterClass as Wr,stackLineCss as Xr,stackOuterClass as jr,stackRowClass as Kr,storedStackLine as Ur}from"../lib/content/box-stack-line.js";const Ge={"--sf-site-gutter":"0px"},Jr={overflowX:"clip",overflowY:"visible"},zr={stretchedRow:!1,fillingColumn:!1,columnsRow:!1},Cs={desktop:!1,phone:!1},hs="bg-cover bg-center bg-[image:var(--sf-box-bg)] max-view-wide:bg-[image:var(--sf-box-bg-p)]",Me=u=>u==null||u==="",We=u=>!Me(u)&&Number(u)===0;function Yr({children:u}){return e(q,{children:u(Gt())})}function qr({direction:u,label:bs,tabShape:Ss,gap:Xe,gapPhone:ws,gapTablet:me,justify:W,align:v,wrap:Z,share:xs,sharePhone:X,shareTablet:B,wrapPhone:ps,orderPhone:Ps,phoneRow:w,columns:m,columnsTablet:E,separator:f,stackBelow:je,blockSpacing:Ke,bgImage:_s,bgImagePhone:$s,rowImage:Rs,pictureHover:Os,darken:Ue,darkenStyle:Je,darkenTablet:ys,darkenPhone:As,darkenStyleTablet:vs,darkenStylePhone:Ls,placement:ks,padV2:ze=!1,border:Ns,borderTablet:Is,borderPhone:gs,pad:n={},contained:fe=!0,fillHeight:L=!1,shadow:Ce,shadowTablet:Ye,shadowPhone:qe,justifyTablet:Qe,justifyPhone:Bs,alignTablet:Es,alignPhone:Ts,wrapTablet:Ze,blockSpacingTablet:Fs,blockSpacingPhone:Ds,loop:h,scrollDirection:he=Yn,loopSeconds:Hs=qn,loopDelay:Vs=zn,editing:T=!1,fillColor:eo,fillColorTablet:Gs,fillColorPhone:Ms,swatch:Ws,line:x,upcoming:Xs,link:js,rowLink:oo,highlight:Ks,boxShape:so,boxShapePhone:Us,boxShapeTablet:Js,angle:zs,jumpHighlight:Ys,anchor:qs,sharedSides:Qs=Cs,sharedRows:Zs=!1,boxId:F,slotCount:et,mirrorCards:to,content:i,rowTitle:be,startsOpen:ot,rowStyle:st,sideSpace:tt}){const t=un(),k=rr({[S]:Rs},t!==null)[S],no=as({[S]:k}),c=no?Cs:Qs,nt=no?!1:Zs,ro=lr({[S]:k},t?.row),p=ro??_s,lo=ro===null?$s:void 0,io=Vt(ns),rt=Sn(),co=pn()&&!(rt&&t!==null),P=wn(),_=yn({inCopy:t!==null,nestedCopy:t?.nested===!0,underBox:co}),ao=De(Ns,t,_),uo=De(Is,t,_),mo=De(gs,t,_),fo=t===null&&!co&&P?.ids&&F?P.ids.indexOf(F):-1,ee=fo>=0&&P&&F?bn(P,F,fo):-1,b=ee>=0?P?.hand??null:_&&P?.copies===!0?P.hand:null,o=b?.row?"row":u,d=b?.row?b.row.share:xs,lt=b?.row?b.row.phoneReverse?[...i.blockIds??[]].reverse():void 0:Ps,oe=nt&&!b?.row,D=T?"":$r(oo&&t?fn(t.row,oo):js),$=L?"":br(so,Us,Js),it=!L&&hr(so)!=="",N=_r(Ys,qs),Se=ir({swatch:Ws},t?.row),se=Se??sr(eo),H=Se?{className:"",style:{}}:tr(eo,Gs,Ms),ct=vr(),Co=Ar(Se,ct??void 0),ho=se||H.className?{...se?{backgroundColor:se}:{},...H.style,...Co}:void 0,bo=Tr(),te=x===!0&&o!=="tabs"&&o!=="accordion",r=as({bgImage:p,[S]:k}),So=Sr(zs),wo=r?void 0:ho,ne=r?null:Ks??null,at=So||ne?{...wo,...So,...ne}:wo,re=dn(),dt=tn(),ut=Kt(),xo=Xt(),mt=Wt(),ft=jt(),l=o==="accordion",po=Yt(st),j=l&&po==="numbered",we=en(),Ct=Zt(),V=Jn(o,f),a=h==="scroll"&&o!=="tabs"&&!l,ht=xn(),le=_||ee>=0&&b!==null,Po=b?b.mirror:to,bt=ee>=0?ee:t?.index,xe=_&&mn(t?.ownerType),_o=ls({direction:o,separator:f,loop:h,line:x,bgImage:p,[S]:k,columns:m,columnsTablet:E,share:d,wrap:Z},le,c.desktop)&&_n(Po,bt),St=ls({direction:o,separator:f,loop:h,line:x,bgImage:p,[S]:k,columns:m,columnsTablet:E,share:d,wrap:Z},le,c.desktop)&&$n(Po)!==null,G=Fn({direction:o,separator:f,loop:h,line:x,columns:m}),I=Dn({direction:o,separator:f,loop:h,line:x,columnsTablet:E}),K=Hn({direction:o,separator:f,loop:h,line:x,columns:m,columnsTablet:E,share:d,shareTablet:B}),ie=Ln(tt)===vn,pe=An(ie),C=o==="row"&&!r&&!V&&!a&&!te&&I===""&&K===""?Ur(je):void 0,wt=sn(),ce=Dr(c,i.blockCount??0,C),xt=(ce&&(!t||t.index===0)?Hr(c,i.blockCount??0,C):"")+(oe&&(!t||t.index===0)?Gr(oe,i.blockCount??0):""),$o=Vr(oe,i.blockCount??0),Ro=I!==""?Number(E)>=2:K===""||M(B)!=="",Oo=I!==""||K!=="",yo=o==="row"&&!V&&!a&&x!==!0,Pe=yo&&!c.phone&&!c.desktop?qt(Qt(lt,i.blockIds??[]),{editing:T}):void 0,Ao=Pe!==void 0&&!T,pt=G!==""?Number(m)>=2:M(d)!=="",vo=!r&&!l&&!St&&!c.desktop&&!c.phone,ae=vo&&!a?Bn(W,Qe,Bs):"",_e=r||le?"":Rn(ht,o,a?void 0:W,v,ae?Qe:void 0),Pt=/view-wide:max-view-desktop:justify-/.test(_e)?ae.split(" ").filter(s=>!s.startsWith("view-wide:max-view-desktop:justify-")).join(" "):ae,_t=vo&&o==="row"?Nn(v,Es,Ts):"",$t=!a&&!l&&G===""&&I===""&&!c.desktop?En(Z,Ze):"",Lo=[l?"":M(d),o==="row"?Tn(d):"",G,I,K,In(l?"gap":Ke),jn(o,f),l&&!j?"border-t border-line":"",Pt,_t,$t,l?"":gn(Ke,Fs,Ds),l?cs(m,w,j):"",j?Jt:""].filter(Boolean).join(" "),Rt=Lo?` ${Lo}`:"",ko=["flex",o==="row"?V||a?"flex-row":`flex-row ${Q(w,X,ps,Ze)}`:"flex-col",Wn(a||l?!1:Z),r?nr(ks??"center",o):kn(a||l?void 0:W,l?void 0:v)+(_e?` ${_e}`:"")].join(" ")+Rt,U=L||r||$||we?` ${ue}`:"",$e=it?` ${$}`:$?`${U} ${$}`:U,No=Ct&&o==="column"&&!r&&!a&&M(d)===""&&(typeof W=="string"&&W!=="start"||ae!==""),Io=U||(No?` ${ue}`:""),Re=D?` ${xr}`:"",Oe=r||re||ze?"":" py-6",Ot=C===void 0?"":` ${Kr(C)}`,go=C===void 0||ie?"":` ${Wr(C)}`,ye=C===void 0?"":` ${jr(C)}`,yt=`${He}${Oe} ${pe}${$e}${Re}${go}${ye}`,At=re?`${$e}${Re}${ye}`.trim():`w-full${Oe}${$e}${Re}${ye}`,J=j&&cs(m,w)===""?is("Flex",0,"block"):is("Flex",Xe,o==="row"?"inline":"block",ws,V||a?void 0:me),Bo=Mn(d,B,o==="row"?i.blockCount??0:0),Eo=V?{...J.style,...Un(o,f)}:J.style,vt=Bo?{...Eo,...Bo}:Eo,Ae=(s="")=>e(i,{className:`${ko}${_o?` ${On}`:""}${J.className}${Io}${Ot}${s?` ${s}`:""}${te?` ${Er}`:""}${N?` ${pr(N)}`:""}${ce}${$o}`,style:vt,minEmptyHeight:120,...Pe?{cell:Pe}:null}),To=Qn(he)?"":Kn(o,f),Fo=a?e(Zn,{direction:he,seconds:Hs,delay:Vs,editing:T,copy:s=>Ae(s&&To?`${s} ${To}`:s)}):j?de(q,{children:[e("style",{children:zt}),Ae()]}):Ae(),ve=o==="tabs"?e(Mt,{className:`${ko}${J.className}${we&&!L&&!r&&!$?"":U}`,style:J.style,shape:Ss,children:Fo}):Fo,Le=l?e(Fe.Provider,{value:"accordion",children:e(Te.Provider,{value:po,children:ve})}):xo?e(Fe.Provider,{value:!1,children:e(Te.Provider,{value:"plain",children:ve})}):ve,Do=o==="row"&&!r&&(v===void 0||v==="stretch"),Lt={stretchedRow:Do,fillingColumn:o==="column"&&(we||No),columnsRow:G!==""||I!==""||ce!==""||$o!==""||o==="row"&&(Array.isArray(d)||Array.isArray(B))||Ao,...Ao?{phoneCells:!0}:null,...Do&&yo&&(i.blockCount??0)>=2&&pt?{picturesFillRow:!0}:null,...Oo&&!Ro?{fillFrom:"desktop"}:null,...Vn(w,X)&&(!Oo||Ro)?{phoneRowFills:!0}:null,...F?{id:F}:null},Ho=t===null?Pn({direction:o,loop:h,bgImage:p,[S]:k,columns:m,mirrorCards:to},!1):null,Vo=Ho?e(rs.Provider,{value:{hand:Ho,ids:i.blockIds??[],boxes:[]},children:Le}):P?e(rs.Provider,{value:null,children:Le}):Le,Go=e(ss.Provider,{value:Lt,children:e(os.Provider,{value:!1,children:le?e(hn.Provider,{value:_o,children:e(Cn.Provider,{value:!_,children:Vo})}):Vo})}),kt=be?.blockCount??0,Mo=xo==="accordion"&&!!be&&(T||kt>0)?e(Ut,{startsOpen:ot===!0||ft&&_&&t?.index===0,editing:T,numbered:mt==="numbered",title:e(ss.Provider,{value:zr,children:e(os.Provider,{value:!1,children:e(Fe.Provider,{value:!1,children:e(Te.Provider,{value:"plain",children:e(be,{className:`min-w-0 flex-1 ${Xn}`,minEmptyHeight:24})})})})}),children:Go}):Go,ke=te?e(gr,{row:o==="row",stops:i.blockCount??0,children:Mo}):Mo,Nt=bs?.trim()||(ut?"":void 0),It={values:n,frame:Oe?24:0},gt=s=>bo?e(Br,{on:bo,future:Xs===!0,children:s}):s,Bt=s=>D.startsWith("/")?e(Rr,{href:D,className:ms,"aria-labelledby":s,[us]:""}):e("a",{href:D,className:ms,"aria-labelledby":s,[us]:""}),Wo=(N?Pr(N):"")+xt+(C===void 0||t&&t.index!==0?"":Xr(C,{gutter:!ie})),Xo=Wo?e("style",{dangerouslySetInnerHTML:{__html:Wo}}):null,z=fr({loop:h,direction:o,scrollDirection:he,bgImage:p,[S]:k}),Et=c.desktop&&ce!==""&&!se&&!H.className&&!fs(ao,mo,uo)&&!ur(Ce,Ye,qe)&&!D&&!$&&!L&&!N&&!Cr(fe&&!z,wt)&&We(Xe)&&(Me(me)||We(me))&&ze&&Object.values(n).every(s=>Me(s)||We(s)),Tt=s=>({...Et?{[Fr]:""}:null,...r?null:{...dr(Ce),...mr(Ce,Ye,qe)},...N?{[wr]:N}:null,...s?{id:s}:null}),jo=G!==""?Number(m):0,Ft=Q(w,X)===Q(void 0),Dt=(o==="column"||o==="row"&&!V&&!a&&(jo===1&&Ft||jo===0&&i.blockCount===1))&&!r&&!te&&!re,Ko=r&&dt&&!re,Uo=(s,R)=>gt(e(on,{contained:fe&&!z,style:z?Ge:void 0,framedClass:yt,fillClass:At,columnClass:`${He} ${pe}${Io}${go}`,tabLabel:Nt,pad:r?void 0:It,border:fs(ao,mo,uo),outerAttrs:Tt(R),box:!0,edge:Dt,outerStyle:at,outerClass:r?void 0:[H.className,ne?Nr:"",ne&&Co?Ir:""].filter(Boolean).join(" ")||void 0,bleed:Ko,siteSide:ie,children:Xo||R?de(q,{children:[Xo,R?Bt(R):null,z?e(ts,{children:s}):s]}):z?e(ts,{children:s}):s})),Ne=s=>D?e(Yr,{children:R=>Uo(s,R)}):Uo(s),Jo=s=>io.bound?e(ln,{children:s}):s;if(!r){const s=v===void 0||v==="stretch",R=(M(d)!==""||G!==""||I!=="")&&!Gn(w,X)&&!(K!==""&&M(B)==="")&&(s||Q(w)!==Q(void 0));if(!(o==="row"?R:o==="column"&&s))return Ne(Jo(ke));const es=cn({direction:o,separator:f,loop:h,line:x,share:d,shareTablet:B,sharePhone:X,phoneRow:w,columns:m,columnsTablet:E,stackBelow:je,shared:c.desktop||c.phone||oe,count:et}),Ht={hasWidth:!0,...es?{bound:an(es,io.bound)}:null};return Ne(e(ns.Provider,{value:Ht,children:ke}))}const Ie=ds(p),Y=Ie?or(Ue,Je):null,ge=Ie?cr({darken:Ue,darkenStyle:Je,darkenTablet:ys,darkenStyleTablet:vs,darkenPhone:As,darkenStylePhone:Ls}):{className:"",style:{}},zo=[xe?"rounded-[inherit]":"",ge.className].filter(Boolean).join(" "),Be=ds(lo),Yo=Ie?Be?{"--sf-box-bg":Ve(p??""),"--sf-box-bg-p":Ve(lo??"")}:{backgroundImage:Ve(p??""),backgroundSize:"cover",backgroundPosition:"center"}:{},qo=kr(void 0,void 0,Os),g=qo.className?qo:null,Ee=Or({...n,top:y(n.top)??A(O.desktop,n.unit,"desktop"),bottom:y(n.bottom)??A(O.desktop,n.unit,"desktop"),topPhone:y(n.topPhone)??A(O.phone,n.unitPhone,"mobile"),bottomPhone:y(n.bottomPhone)??A(O.phone,n.unitPhone,"mobile"),left:y(n.left)??A(O.side,n.unit,"desktop"),right:y(n.right)??A(O.side,n.unit,"desktop"),leftPhone:y(n.leftPhone)??A(O.sidePhone,n.unitPhone,"mobile"),rightPhone:y(n.rightPhone)??A(O.sidePhone,n.unitPhone,"mobile")}),Qo=e("div",{className:`relative z-[1] ${er} ${Ee?.className??""}${L||$?` ${ue}`:""}`.trimEnd(),style:Y?{...Ee?.style,...Ge,...yr}:{...Ee?.style,...Ge},children:Jo(ke)}),Zo=Ko&&fe?e("div",{className:`${He} ${pe}${L||$?` ${ue}`:""}`,children:Qo}):Qo;return Ne(e(q,{children:de("div",{className:`relative isolate overflow-hidden ${ar}${U}${Be&&!g?` ${hs}`:""}${H.className?` ${H.className}`:""}`,style:{...xe?Jr:{},...ho,...g?{}:Yo},...g?{[Lr]:""}:{},children:[g&&de(q,{children:[e(Mr,{sheet:g.sheet}),e("div",{"aria-hidden":!0,className:`absolute inset-0${xe?" rounded-[inherit]":""}${Be?` ${hs}`:""} ${g.className}`,style:{...Yo,...g.style??{}}})]}),e(rn,{wash:Y&&ge.className?{...Y,...ge.style}:Y,...zo?{className:zo}:{}}),Y?e(nn,{children:Zo}):Zo]})}))}export{qr as default};
1
+ import{Fragment as Z,jsx as e,jsxs as ue}from"react/jsx-runtime";import{useContext as jn,useId as Kn}from"react";import Un from"./BoxTabs.js";import{AccordionRowStyleContext as He,BoxTabPaneContext as Ve,useAccordionRowStyle as Jn,useBoxPaneKind as zn,useFirstCopyOpens as Yn,useIsTabPane as qn}from"./BoxTabPaneContext.js";import Qn,{ACCORDION_COUNTER_RESET as Zn}from"./BoxAccordionRow.js";import{ACCORDION_MARK_SHEET as et}from"./AccordionMark.js";import{accordionRowStyleOf as ot}from"../../format/lib/content/accordion-row-style.js";import{boxPhoneCell as st,boxPhoneOrder as nt}from"../../format/lib/content/box-phone-place.js";import{CellFillContext as rs,InBoxContext as ls,useCellOfStretchedRow as tt,useFillsCell as rt}from"./InBoxContext.js";import lt,{InsideSiteColumn as is,useInsideSiteGutter as it,useSectionRoot as ct}from"./SiteGutterFrame.js";import{BoxSurfaceProvider as at}from"./BoxSurfaceContext.js";import dt from"./PictureWash.js";import{BoxCellContext as cs,NoCellBound as ut}from"./BoxCellContext.js";import{boxCellFractions as mt}from"../lib/content/box-cell-bound.js";import{boundOf as ft}from"../../format/lib/content/cell-picture-sizes.js";import{useInSiteHeader as Ct}from"./PhoneMenuTools.js";import{useCardRow as bt}from"./CardRowContext.js";import{cardLineBetween as Ge,framesItsCards as ht}from"../../format/lib/content/card-place.js";import{rowLinkText as St}from"../../format/lib/content/card-template.js";import{HandedMirrorContext as wt,MirrorContext as pt,RowHandContext as as,boxPlace as xt,useHandedMirrorAbove as Pt,useHandedRows as _t,useMirroredCopy as $t,useUnderCardBox as Rt}from"./MirrorContext.js";import{boxChildrenHand as Ot,isMirroredCopy as yt,mirrorCardsActs as ds,mirrorCardsOf as At,mirroredBoxClass as Lt,MIRROR_ROW_CLASS as vt,ownsCard as kt}from"../../format/lib/content/mirror-cards.js";import{FRAME_BASE as Me,frameGutterOf as Nt}from"./BlockFrame.js";import{BOX_SIDE_SPACE_SITE as It,boxSideSpaceOf as gt}from"../../format/lib/content/box-side-space.js";import{containerGapProps as us}from"../../format/lib/content/container-gap.js";import{boxLayoutClasses as Bt,boxAlignViewClasses as Et,boxBlockSpacingClass as Tt,boxBlockSpacingViewClasses as Ft,boxJustifyViewClasses as Dt,boxWrapTabletClass as Ht,boxFitContentClass as Vt,boxAccordionColumnsClass as ms,boxRowColumnsClass as Gt,boxRowTabletColumnsClass as Mt,boxRowTabletShareClass as Wt,boxPhoneCellsShareLine as Xt,boxPhoneRowClasses as ee,boxPhoneRowFits as jt,boxShareClasses as M,boxShareVars as Kt,boxWrapClass as Ut,BOX_GAP_ONLY_CLASS as Jt}from"../../format/lib/content/box-layout.js";import{boxSeparatorClasses as zt,boxSeparatorSeamClass as Yt,boxSeparatorStyle as qt,isStripBox as Qt}from"../../format/lib/content/box-separator.js";import{DEFAULT_LOOP_DELAY as Zt,DEFAULT_LOOP_DIRECTION as er,DEFAULT_LOOP_SECONDS as or,isVerticalLoop as sr}from"../../format/lib/animation/index.js";import{LoopTrack as nr}from"../lib/animation/LoopTrack.js";import{BOX_CARD_PAD as R,BOX_OWNS_SIDES_CLASS as tr,boxDarkenStyle as rr,boxPaintOf as lr,boxFillViews as ir,boxPlacementClasses as cr,boxCardProps as ar,boxIsCard as fs,boxRowPicture as dr,boxSwatchFill as ur,boxWashViews as mr,CARD_SHADOW_CLASS as fr,isBackgroundBox as Cs}from"../../format/lib/content/box-background.js";import{BOX_ROW_IMAGE_PROP as h}from"../../format/lib/content/box-card-rule.js";import{boxShadowAttrs as Cr,boxShadowOnAnyView as br,boxShadowViewAttrs as hr}from"../../format/lib/content/box-shadow.js";import{boxRunsEdgeToEdge as Sr,drawsSiteGutter as wr}from"../../format/lib/content/site-gutter.js";import{boxShapeClass as pr,boxShapeClasses as xr}from"../../format/lib/content/box-shape.js";import{boxAngleStyle as Pr}from"../../format/lib/content/box-angle.js";import{BOX_JUMP_ATTR as _r,BOX_LINK_ATTR as bs,BOX_LINK_CLASS as hs,BOX_LINKED_CLASS as $r,boxJumpBlocksClass as Rr,boxJumpCss as Or,boxJumpSlug as yr,boxLinkOf as Ar,siteLinkDraws as Lr}from"../../format/lib/content/box-link.js";import{SiteLink as vr}from"../lib/site-runtime.js";import{sectionBorderStyle as Ss}from"../../format/lib/content/borders.js";import{finiteNumber as me}from"../../format/lib/finite-number.js";import{padDefaultIn as O,padSideValue as fe,sectionPadAttrs as kr}from"../lib/content/section-padding.js";import{SECTION_FILL_CLASS as Ce}from"../../format/lib/content/section-min-height.js";import{ON_MEDIA_INK_STYLE as Nr,rowFillInkStyle as Ir}from"../../format/lib/content/ink.js";import{useThemeLightInk as gr}from"./ThemeLightInkContext.js";import{sizedBackground as We}from"../../format/lib/sized-image.js";import{PHOTO_HOST_ATTR as Br,resolveImageTreatment as Er}from"../../format/lib/content/image-treatment.js";import{BOX_HIGHLIGHT_CLASS as Tr,BOX_HIGHLIGHT_OVER_ROW_INK_CLASS as Fr}from"../../format/lib/animation/hover.js";import{BoxRail as Dr,BoxRailStop as Hr,RAIL_STOPS_CLASS as Vr,useTimelineRail as Gr}from"./TimelineRail.js";import{SHARED_PLAIN_ATTR as Mr,sharedColumnsClasses as Wr,sharedColumnsCss as Xr,sharedRowsClasses as jr,sharedRowsCss as Kr}from"../lib/content/box-shared-columns.js";import Ur from"./PhotoHoverSheet.js";import{BOX_DESKTOP_LINE as Jr,stackGutterClass as zr,stackLineCss as Yr,stackOuterClass as qr,stackRowClass as Qr,storedStackLine as Xe}from"../lib/content/box-stack-line.js";const je={"--sf-site-gutter":"0px"},Zr={overflowX:"clip",overflowY:"visible"},el={stretchedRow:!1,fillingColumn:!1,columnsRow:!1},ws={desktop:!1,phone:!1},ps="bg-cover bg-center bg-[image:var(--sf-box-bg)] max-view-wide:bg-[image:var(--sf-box-bg-p)]",Ke=u=>u==null||u==="",Ue=u=>!Ke(u)&&Number(u)===0;function ol({children:u}){return e(Z,{children:u(Kn())})}function sl({direction:u,label:xs,tabShape:Ps,gap:Je,gapPhone:_s,gapTablet:be,justify:W,align:y,wrap:oe,share:$s,sharePhone:X,shareTablet:I,wrapPhone:Rs,orderPhone:Os,phoneRow:S,columns:m,columnsTablet:g,separator:f,stackBelow:se,blockSpacing:ze,bgImage:ys,bgImagePhone:As,rowImage:Ls,pictureHover:vs,darken:Ye,darkenStyle:qe,darkenTablet:ks,darkenPhone:Ns,darkenStyleTablet:Is,darkenStylePhone:gs,placement:Bs,padV2:Qe=!1,border:Es,borderTablet:Ts,borderPhone:Fs,pad:t={},contained:he=!0,fillHeight:A=!1,shadow:Se,shadowTablet:Ze,shadowPhone:eo,justifyTablet:oo,justifyPhone:Ds,alignTablet:Hs,alignPhone:Vs,wrapTablet:so,blockSpacingTablet:Gs,blockSpacingPhone:Ms,loop:C,scrollDirection:we=er,loopSeconds:Ws=or,loopDelay:Xs=Zt,editing:B=!1,fillColor:no,fillColorTablet:js,fillColorPhone:Ks,swatch:Us,line:w,upcoming:Js,link:zs,rowLink:to,highlight:Ys,boxShape:ro,boxShapePhone:qs,boxShapeTablet:Qs,angle:Zs,jumpHighlight:en,anchor:on,sharedSides:sn=ws,sharedRows:nn=!1,boxId:E,slotCount:tn,mirrorCards:lo,content:i,rowTitle:pe,startsOpen:rn,rowStyle:ln,sideSpace:cn}){const n=bt(),L=ar({[h]:Ls},n!==null)[h],io=fs({[h]:L}),c=io?ws:sn,an=io?!1:nn,co=dr({[h]:L},n?.row),p=co??ys,ao=co===null?As:void 0,uo=jn(cs),dn=Pt(),mo=Rt()&&!(dn&&n!==null),x=_t(),P=kt({inCopy:n!==null,nestedCopy:n?.nested===!0,underBox:mo}),fo=Ge(Es,n,P),Co=Ge(Ts,n,P),bo=Ge(Fs,n,P),ho=n===null&&!mo&&x?.ids&&E?x.ids.indexOf(E):-1,ne=ho>=0&&x&&E?xt(x,E,ho):-1,b=ne>=0?x?.hand??null:P&&x?.copies===!0?x.hand:null,o=b?.row?"row":u,d=b?.row?b.row.share:$s,un=b?.row?b.row.phoneReverse?[...i.blockIds??[]].reverse():void 0:Os,te=an&&!b?.row,T=B?"":to&&n?St(n.row,to)??"":Ar(zs),_=A?"":xr(ro,qs,Qs),mn=!A&&pr(ro)!=="",v=yr(en,on),xe=ur({swatch:Us},n?.row),re=xe??lr(no),F=xe?{className:"",style:{}}:ir(no,js,Ks),fn=gr(),So=Ir(xe,fn??void 0),wo=re||F.className?{...re?{backgroundColor:re}:{},...F.style,...So}:void 0,po=Gr(),j=w===!0&&o!=="tabs"&&o!=="accordion",r=fs({bgImage:p,[h]:L}),xo=Pr(Zs),Po=r?void 0:wo,le=r?null:Ys??null,Cn=xo||le?{...Po,...xo,...le}:Po,ie=Ct(),bn=ct(),hn=qn(),_o=zn(),Sn=Jn(),wn=Yn(),l=o==="accordion",$o=ot(ln),K=l&&$o==="numbered",Pe=rt(),pn=tt(),D=Qt(o,f),a=C==="scroll"&&o!=="tabs"&&!l,xn=$t(),ce=P||ne>=0&&b!==null,Ro=b?b.mirror:lo,Pn=ne>=0?ne:n?.index,_e=P&&ht(n?.ownerType),Oo=ds({direction:o,separator:f,loop:C,line:w,bgImage:p,[h]:L,columns:m,columnsTablet:g,share:d,wrap:oe},ce,c.desktop)&&yt(Ro,Pn),_n=ds({direction:o,separator:f,loop:C,line:w,bgImage:p,[h]:L,columns:m,columnsTablet:g,share:d,wrap:oe},ce,c.desktop)&&At(Ro)!==null,H=Gt({direction:o,separator:f,loop:C,line:w,columns:m}),k=Mt({direction:o,separator:f,loop:C,line:w,columnsTablet:g}),U=Wt({direction:o,separator:f,loop:C,line:w,columns:m,columnsTablet:g,share:d,shareTablet:I}),J=gt(cn)===It,$e=Nt(J),yo=j&&Xe(se)===Jr,V=o==="row"&&!r&&!D&&!a&&(!j||yo)&&k===""&&U===""?Xe(se):void 0,G=V??(o==="column"&&!r?Xe(se):void 0),$n=it(),ae=Wr(c,i.blockCount??0,V),Rn=(ae&&(!n||n.index===0)?Xr(c,i.blockCount??0,V):"")+(te&&(!n||n.index===0)?Kr(te,i.blockCount??0):""),Ao=jr(te,i.blockCount??0),Lo=k!==""?Number(g)>=2:U===""||M(I)!=="",vo=k!==""||U!=="",ko=o==="row"&&!D&&!a&&w!==!0,Re=ko&&!c.phone&&!c.desktop?st(nt(un,i.blockIds??[]),{editing:B}):void 0,No=Re!==void 0&&!B,On=H!==""?Number(m)>=2:M(d)!=="",Io=!r&&!l&&!_n&&!c.desktop&&!c.phone,de=Io&&!a?Dt(W,oo,Ds):"",Oe=r||ce?"":Lt(xn,o,a?void 0:W,y,de?oo:void 0),yn=/view-wide:max-view-desktop:justify-/.test(Oe)?de.split(" ").filter(s=>!s.startsWith("view-wide:max-view-desktop:justify-")).join(" "):de,An=Io&&o==="row"?Et(y,Hs,Vs):"",Ln=!a&&!l&&H===""&&k===""&&!c.desktop?Ht(oe,so):"",go=[l?"":M(d),o==="row"?Vt(d):"",H,k,U,Tt(l?"gap":ze),zt(o,f),l&&!K?"border-t border-line":"",yn,An,Ln,l?"":Ft(ze,Gs,Ms),l?ms(m,S,K):"",K?Zn:""].filter(Boolean).join(" "),vn=go?` ${go}`:"",Bo=["flex",o==="row"?D||a?"flex-row":`flex-row ${ee(S,X,Rs,so)}`:"flex-col",Ut(a||l?!1:oe),r?cr(Bs??"center",o):Bt(a||l?void 0:W,l?void 0:y)+(Oe?` ${Oe}`:"")].join(" ")+vn,z=A||r||_||Pe?` ${Ce}`:"",ye=mn?` ${_}`:_?`${z} ${_}`:z,Eo=pn&&o==="column"&&!r&&!a&&M(d)===""&&(typeof W=="string"&&W!=="start"||de!==""),To=z||(Eo?` ${Ce}`:""),Ae=T?` ${$r}`:"",Le=r||ie||Qe?"":" py-6",kn=V===void 0?"":` ${Qr(V)}`,Fo=G===void 0||J?"":` ${zr(G)}`,ve=G===void 0?"":` ${qr(G)}`,Nn=`${Me}${Le} ${$e}${ye}${Ae}${Fo}${ve}`,In=ie?`${ye}${Ae}${ve}`.trim():`w-full${Le}${ye}${Ae}${ve}`,Y=K&&ms(m,S)===""?us("Flex",0,"block"):us("Flex",Je,o==="row"?"inline":"block",_s,D||a?void 0:be),Do=Kt(d,I,o==="row"?i.blockCount??0:0),Ho=D?{...Y.style,...qt(o,f)}:Y.style,gn=Do?{...Ho,...Do}:Ho,ke=(s="")=>e(i,{className:`${Bo}${Oo?` ${vt}`:""}${Y.className}${To}${kn}${s?` ${s}`:""}${j?` ${Vr}`:""}${v?` ${Rr(v)}`:""}${ae}${Ao}`,style:gn,minEmptyHeight:120,...Re?{cell:Re}:null}),Vo=sr(we)?"":Yt(o,f),Go=a?e(nr,{direction:we,seconds:Ws,delay:Xs,editing:B,copy:s=>ke(s&&Vo?`${s} ${Vo}`:s)}):K?ue(Z,{children:[e("style",{children:et}),ke()]}):ke(),Ne=o==="tabs"?e(Un,{className:`${Bo}${Y.className}${Pe&&!A&&!r&&!_?"":z}`,style:Y.style,shape:Ps,children:Go}):Go,Ie=l?e(Ve.Provider,{value:"accordion",children:e(He.Provider,{value:$o,children:Ne})}):_o?e(Ve.Provider,{value:!1,children:e(He.Provider,{value:"plain",children:Ne})}):Ne,Mo=o==="row"&&!r&&(y===void 0||y==="stretch"),Bn={stretchedRow:Mo,fillingColumn:o==="column"&&(Pe||Eo),columnsRow:H!==""||k!==""||ae!==""||Ao!==""||o==="row"&&(Array.isArray(d)||Array.isArray(I))||No,...No?{phoneCells:!0}:null,...Mo&&ko&&(i.blockCount??0)>=2&&On?{picturesFillRow:!0}:null,...vo&&!Lo?{fillFrom:"desktop"}:null,...Xt(S,X)&&(!vo||Lo)?{phoneRowFills:!0}:null,...E?{id:E}:null},Wo=n===null?Ot({direction:o,loop:C,bgImage:p,[h]:L,columns:m,mirrorCards:lo},!1):null,Xo=Wo?e(as.Provider,{value:{hand:Wo,ids:i.blockIds??[],boxes:[]},children:Ie}):x?e(as.Provider,{value:null,children:Ie}):Ie,jo=e(ls.Provider,{value:Bn,children:e(rs.Provider,{value:!1,children:ce?e(pt.Provider,{value:Oo,children:e(wt.Provider,{value:!P,children:Xo})}):Xo})}),En=pe?.blockCount??0,Ko=_o==="accordion"&&!!pe&&(B||En>0)?e(Qn,{startsOpen:rn===!0||wn&&P&&n?.index===0,editing:B,numbered:Sn==="numbered",title:e(ls.Provider,{value:el,children:e(rs.Provider,{value:!1,children:e(Ve.Provider,{value:!1,children:e(He.Provider,{value:"plain",children:e(pe,{className:`min-w-0 flex-1 ${Jt}`,minEmptyHeight:24})})})})}),children:jo}):jo,ge=j?e(Dr,{row:o==="row",stops:i.blockCount??0,desktopLine:V!==void 0&&yo,children:Ko}):Ko,Tn=xs?.trim()||(hn?"":void 0),Fn={values:t,frame:Le?24:0},Dn=s=>po?e(Hr,{on:po,future:Js===!0,children:s}):s,Hn=s=>Lr(T)?e(vr,{href:T,newTab:"auto",className:hs,"aria-labelledby":s,[bs]:""}):e("a",{href:T,className:hs,"aria-labelledby":s,[bs]:""}),Uo=(v?Or(v):"")+Rn+(G===void 0||n&&n.index!==0?"":Yr(G,{gutter:!J})),Jo=Uo?e("style",{dangerouslySetInnerHTML:{__html:Uo}}):null,q=Sr({loop:C,direction:o,scrollDirection:we,bgImage:p,[h]:L}),Vn=c.desktop&&ae!==""&&!re&&!F.className&&!Ss(fo,bo,Co)&&!br(Se,Ze,eo)&&!T&&!_&&!A&&!v&&!wr(he&&!q,$n)&&Ue(Je)&&(Ke(be)||Ue(be))&&Qe&&Object.values(t).every(s=>Ke(s)||Ue(s)),Gn=s=>({...Vn?{[Mr]:""}:null,...r?null:{...Cr(Se),...hr(Se,Ze,eo)},...v?{[_r]:v}:null,...s?{id:s}:null}),zo=H!==""?Number(m):0,Mn=ee(S,X)===ee(void 0),Wn=(o==="column"||o==="row"&&!D&&!a&&(zo===1&&Mn||zo===0&&i.blockCount===1))&&!r&&!j&&!ie,Yo=r&&bn&&!ie,qo=(s,$)=>Dn(e(lt,{contained:he&&!q,style:q?je:void 0,framedClass:Nn,fillClass:In,columnClass:`${Me} ${$e}${To}${Fo}`,tabLabel:Tn,pad:r?void 0:Fn,border:Ss(fo,bo,Co),outerAttrs:Gn($),box:!0,edge:Wn,outerStyle:Cn,outerClass:r?void 0:[F.className,le?Tr:"",le&&So?Fr:""].filter(Boolean).join(" ")||void 0,bleed:Yo,siteSide:J,children:Jo||$?ue(Z,{children:[Jo,$?Hn($):null,q?e(is,{children:s}):s]}):q?e(is,{children:s}):s})),Be=s=>T?e(ol,{children:$=>qo(s,$)}):qo(s),Qo=s=>uo.bound?e(ut,{children:s}):s;if(!r){const s=y===void 0||y==="stretch",$=(M(d)!==""||H!==""||k!=="")&&!jt(S,X)&&!(U!==""&&M(I)==="")&&(s||ee(S)!==ee(void 0));if(!(o==="row"?$:o==="column"&&s))return Be(Qo(ge));const ts=mt({direction:o,separator:f,loop:C,line:w,share:d,shareTablet:I,sharePhone:X,phoneRow:S,columns:m,columnsTablet:g,stackBelow:se,shared:c.desktop||c.phone||te,count:tn}),Xn={hasWidth:!0,...ts?{bound:ft(ts,uo.bound)}:null};return Be(e(cs.Provider,{value:Xn,children:ge}))}const Ee=Cs(p),Q=Ee?rr(Ye,qe):null,Te=Ee?mr({darken:Ye,darkenStyle:qe,darkenTablet:ks,darkenStyleTablet:Is,darkenPhone:Ns,darkenStylePhone:gs}):{className:"",style:{}},Zo=[_e?"rounded-[inherit]":"",Te.className].filter(Boolean).join(" "),Fe=Cs(ao),es=Ee?Fe?{"--sf-box-bg":We(p??""),"--sf-box-bg-p":We(ao??"")}:{backgroundImage:We(p??""),backgroundSize:"cover",backgroundPosition:"center"}:{},os=Er(void 0,void 0,vs),N=os.className?os:null,De=kr({...t,top:me(t.top)??O(R.desktop,t.unit,"desktop"),bottom:me(t.bottom)??O(R.desktop,t.unit,"desktop"),topPhone:me(t.topPhone)??O(R.phone,t.unitPhone,"mobile"),bottomPhone:me(t.bottomPhone)??O(R.phone,t.unitPhone,"mobile"),left:fe(t.left)??O(R.side,t.unit,"desktop"),right:fe(t.right)??O(R.side,t.unit,"desktop"),leftPhone:fe(t.leftPhone)??O(R.sidePhone,t.unitPhone,"mobile"),rightPhone:fe(t.rightPhone)??O(R.sidePhone,t.unitPhone,"mobile"),sideSpace:J?"site":"box"}),ss=e("div",{className:`relative z-[1] ${tr} ${De?.className??""}${A||_?` ${Ce}`:""}`.trimEnd(),style:Q?{...De?.style,...je,...Nr}:{...De?.style,...je},children:Qo(ge)}),ns=Yo&&he?e("div",{className:`${Me} ${$e}${A||_?` ${Ce}`:""}`,children:ss}):ss;return Be(e(Z,{children:ue("div",{className:`relative isolate overflow-hidden ${fr}${z}${Fe&&!N?` ${ps}`:""}${F.className?` ${F.className}`:""}`,style:{..._e?Zr:{},...wo,...N?{}:es},...N?{[Br]:""}:{},children:[N&&ue(Z,{children:[e(Ur,{sheet:N.sheet}),e("div",{"aria-hidden":!0,className:`absolute inset-0${_e?" rounded-[inherit]":""}${Fe?` ${ps}`:""} ${N.className}`,style:{...es,...N.style??{}}})]}),e(dt,{wash:Q&&Te.className?{...Q,...Te.style}:Q,...Zo?{className:Zo}:{}}),Q?e(at,{children:ns}):ns]})}))}export{sl as default};
@@ -1,7 +1,8 @@
1
1
  import type { SlotComponent } from "efficient-easel/blocks";
2
+ import type { CardPressTitle } from "../lib/document/card-press-titles.js";
2
3
  import type { MapThemeMode } from "../../format/lib/map-styles.js";
3
4
  import { type FootprintOffice } from "../../format/lib/content/footprint.js";
4
- import { type DealerListPosition, type FootprintSource } from "../lib/dealer-source.js";
5
+ import type { DealerListPosition } from "../lib/dealer-source.js";
5
6
  export interface FootprintProps {
6
7
  sectionNumber?: string;
7
8
  heading?: string;
@@ -12,7 +13,7 @@ export interface FootprintProps {
12
13
  padBottom?: number;
13
14
  editing?: boolean;
14
15
  omitHead?: boolean;
15
- source?: FootprintSource;
16
+ dealers?: boolean;
16
17
  search?: boolean;
17
18
  searchHint?: string;
18
19
  noMatchText?: string;
@@ -20,5 +21,6 @@ export interface FootprintProps {
20
21
  showDistance?: boolean;
21
22
  template?: SlotComponent;
22
23
  ownerId?: string;
24
+ pressTitles?: readonly CardPressTitle[];
23
25
  }
24
- export default function Footprint({ sectionNumber, heading, tagline, offices, mapTheme, padTop, padBottom, editing, omitHead, source, search, searchHint, noMatchText, listPosition, showDistance, template, ownerId, }: FootprintProps): import("react").JSX.Element | null;
26
+ export default function Footprint({ sectionNumber, heading, tagline, offices, mapTheme, padTop, padBottom, editing, omitHead, dealers, search, searchHint, noMatchText, listPosition, showDistance, template, ownerId, pressTitles, }: FootprintProps): import("react").JSX.Element | null;