efficient-web-builder 61.0.0 → 62.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 (42) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/editor/components/ShadowColourField.js +1 -1
  3. package/dist/editor/components/StorefrontEditor.js +1 -1
  4. package/dist/editor/components/WebsiteSettingsPanel.js +1 -1
  5. package/dist/editor/lib/animation/hover-fields.js +1 -1
  6. package/dist/editor/lib/document/page-root.js +2 -2
  7. package/dist/format/lib/animation/hover.d.ts +7 -4
  8. package/dist/format/lib/animation/hover.js +1 -1
  9. package/dist/format/lib/content/card-state.d.ts +6 -1
  10. package/dist/format/lib/content/card-state.js +1 -1
  11. package/dist/format/lib/content/card-template.d.ts +8 -2
  12. package/dist/format/lib/content/card-template.js +1 -1
  13. package/dist/format/lib/content/hover-media.d.ts +7 -0
  14. package/dist/format/lib/content/hover-media.js +1 -1
  15. package/dist/format/lib/content/image-treatment.d.ts +6 -3
  16. package/dist/format/lib/content/image-treatment.js +1 -1
  17. package/dist/format/lib/content/ink.d.ts +1 -1
  18. package/dist/format/lib/content/ink.js +1 -1
  19. package/dist/format/lib/content/site-gutter.d.ts +2 -1
  20. package/dist/format/lib/content/site-gutter.js +1 -1
  21. package/dist/format/lib/document/card-template-layers.js +1 -1
  22. package/dist/format/lib/document/passes/card-template-on-insert.js +1 -1
  23. package/dist/format/lib/editor-words-catalogue.d.ts +1 -0
  24. package/dist/format/lib/editor-words-catalogue.js +1 -1
  25. package/dist/format/lib/editor-words-kept.js +1 -1
  26. package/dist/format/lib/source-rules/one-next-image-path.d.ts +6 -0
  27. package/dist/format/lib/source-rules/one-next-image-path.js +1 -0
  28. package/dist/format/lib/theme.d.ts +6 -3
  29. package/dist/format/lib/theme.js +4 -4
  30. package/dist/render/components/CardRowContext.d.ts +3 -1
  31. package/dist/render/components/CardRowContext.js +1 -1
  32. package/dist/render/components/Flex.js +1 -1
  33. package/dist/render/components/HeroSection.js +1 -1
  34. package/dist/render/components/ImageBlock.d.ts +9 -3
  35. package/dist/render/components/ImageBlock.js +1 -1
  36. package/dist/render/components/ThemeLightInkContext.d.ts +6 -0
  37. package/dist/render/components/ThemeLightInkContext.js +1 -0
  38. package/dist/render/lib/document/blocks/general/ImageBlock/render.js +1 -1
  39. package/dist/render/lib/document/passes/section-theme.js +1 -1
  40. package/dist/render/lib/document/passes/section-width.js +1 -1
  41. package/dist/render/lib/document/slot-counts.js +1 -1
  42. package/package.json +1 -1
@@ -5,7 +5,7 @@ const e={"$ efficient …":"$ efficient …","0 min":"0 min","0 min read":"0 min
5
5
  *Highlight line*`,"Section heading *here.*":"Section heading *here.*","Section headline\n*Highlight line*":`Section headline
6
6
  *Highlight line*`,"Section headline *here.*\n*Highlight line*":`Section headline *here.*
7
7
  *Highlight line*`,"Section number":"Section number","Section settings":"Section settings",Sections:"Sections","Section’s own":"Section’s own","Secure encrypted checkout":"Secure encrypted checkout","Seen from\n*the counter.*":`Seen from
8
- *the counter.*`,"Select a section or block to edit it.":"Select a section or block to edit it.","Select a word, then press the highlighter.":"Select a word, then press the highlighter.","Selector guide":"Selector guide","Selector guide (pills + results)":"Selector guide (pills + results)","Selector pills":"Selector pills",Separator:"Separator","Series title":"Series title",Serif:"Serif","Set by country":"Set by country","Set this card's corners first.":"Set this card's corners first.",Shadow:"Shadow","Shadow color":"Shadow color",Shape:"Shape","Share button":"Share button",Shared:"Shared","Shared, scroll":"Shared, scroll","Shop & galleries":"Shop & galleries","Short description of this figure.":"Short description of this figure.","Short detail line":"Short detail line","Short supporting line":"Short supporting line",Show:"Show","Show arrows":"Show arrows","Show cover image":"Show cover image","Show for":"Show for","Show hints":"Show hints","Show next image":"Show next image","Show on a card":"Show on a card","Show on phones":"Show on phones","Show slide picker":"Show slide picker","Show texture":"Show texture","Show the chat bubble":"Show the chat bubble","Show the chat bubble on the whole site":"Show the chat bubble on the whole site","Show ticker":"Show ticker","Show {label} on the slide":"Show {label} on the slide","Shown beside the heading":"Shown beside the heading",Shows:"Shows","Shows when a visitor points at the button":"Shows when a visitor points at the button",Shrink:"Shrink","Shrink to fit":"Shrink to fit","Side space":"Side space","Side-by-side image and text in two columns.":"Side-by-side image and text in two columns.",Sideways:"Sideways","Signup Form":"Signup Form",Simple:"Simple",Site:"Site","Site button color":"Site button color","Site settings":"Site settings","Six across":"Six across","Six stagger":"Six stagger",Size:"Size",Sizes:"Sizes","Slash /":"Slash /","Slide name":"Slide name","Slide picker":"Slide picker","Slide picker placement":"Slide picker placement","Slide picker shape":"Slide picker shape","Slide {n}: own Overlay color.":"Slide {n}: own Overlay color.","Slides {n}: own Overlay color.":"Slides {n}: own Overlay color.",Small:"Small","Small — 40px":"Small — 40px","Social Logos":"Social Logos","Social link settings belong to a website.":"Social link settings belong to a website.","Social links":"Social links",Soft:"Soft",Solid:"Solid","Somebody else":"Somebody else",Source:"Source","Space above and below":"Space above and below",Spacer:"Spacer","Spec Strip":"Spec Strip","Spec Table":"Spec Table","Spec label":"Spec label","Spec tiles":"Spec tiles","Spec value":"Spec value","Specified in California to a 14-step protocol. No two sets are identical.":"Specified in California to a 14-step protocol. No two sets are identical.",Specs:"Specs",Spin:"Spin",Spine:"Spine","Spine (single rail)":"Spine (single rail)",Split:"Split","Split (editorial aside)":"Split (editorial aside)",Square:"Square","Square 1:1":"Square 1:1",Squares:"Squares",Stacked:"Stacked","Stacks below":"Stacks below",Standard:"Standard","Starts open":"Starts open",Stat:"Stat","Stat & note":"Stat & note","Stat label":"Stat label","Stat name":"Stat name","Stat value":"Stat value",State:"State","State / Province":"State / Province",Statement:"Statement",Stats:"Stats","Stats & social proof":"Stats & social proof","Stats with Text":"Stats with Text","Status chip":"Status chip","Step *one*":"Step *one*","Step *three*":"Step *three*","Step *two*":"Step *two*","Stick to top":"Stick to top","Still time per slide":"Still time per slide","Still to come: a hollow dot, and the gold line stops before it.":"Still to come: a hollow dot, and the gold line stops before it.","Storefront → Blog":"Storefront → Blog","Storefront ▸ Sites ▸ Settings":"Storefront ▸ Sites ▸ Settings","Story 9:16":"Story 9:16","Story Timeline":"Story Timeline","Street address":"Street address","Strip fill":"Strip fill","Strip items":"Strip items","Stripes · bold":"Stripes · bold","Stripes · fine":"Stripes · fine","Stripes · medium":"Stripes · medium",Style:"Style",Styles:"Styles","Sub-title":"Sub-title","Sub-total lines":"Sub-total lines",Subhead:"Subhead",Subscribe:"Subscribe","Subscribe with Posts":"Subscribe with Posts",Subtitle:"Subtitle","Subtitle font size":"Subtitle font size",Subtotal:"Subtotal","Success heading":"Success heading","Success message":"Success message",Superscript:"Superscript",Surface:"Surface","Switch now":"Switch now","Switch to Box footer":"Switch to Box footer","Synced from the blog post.":"Synced from the blog post.","Synced from the product.":"Synced from the product.","Synced from the site menu.":"Synced from the site menu.","Syncing from {place}…":"Syncing from {place}…",Tab:"Tab","Tab label":"Tab label","Tab name":"Tab name","Tab shape":"Tab shape","Tabbed Gallery":"Tabbed Gallery",Table:"Table",Tabs:"Tabs","Tall (3:4)":"Tall (3:4)","Tall 3:4":"Tall 3:4","Tall first":"Tall first","Tall middle":"Tall middle","Team four":"Team four","Team one":"Team one","Team three":"Team three","Team two":"Team two",Telegram:"Telegram",Template:"Template","Templates don’t store images — this slot stays a placeholder. Each website picks its own after it’s created.":"Templates don’t store images — this slot stays a placeholder. Each website picks its own after it’s created.","Templates don’t store videos — this slot stays a placeholder. Each website picks its own after it’s created.":"Templates don’t store videos — this slot stays a placeholder. Each website picks its own after it’s created.","Templates keep their look. Press Done.":"Templates keep their look. Press Done.",Terminal:"Terminal","Terminal (CLI session)":"Terminal (CLI session)","Terminal lines":"Terminal lines",Testimonials:"Testimonials",Text:"Text","Text & content":"Text & content","Text & media":"Text & media","Text color":"Text color","Text column":"Text column","Text height":"Text height","Text position":"Text position","Text size":"Text size","Text style":"Text style",Texts:"Texts",Texture:"Texture","Texture color":"Texture color","Texture opacity":"Texture opacity","Thanks — we'll email you to confirm.":"Thanks — we'll email you to confirm.","The chat bubble is hidden across the whole site.":"The chat bubble is hidden across the whole site.","The current product's compatible tyres — image, size, key specs and price per tyre, with an inquiry link. Display only.":"The current product's compatible tyres — image, size, key specs and price per tyre, with an inquiry link. Display only.","The current product's related items in a tidy row — the product page's built-in 'Pair with' cross-sell.":"The current product's related items in a tidy row — the product page's built-in 'Pair with' cross-sell.","The floating chat bubble shows in the corner of every page.":"The floating chat bubble shows in the corner of every page.","The footer cannot take another one of these":"The footer cannot take another one of these","The footer holds at most 6 sections":"The footer holds at most 6 sections","The header and footer could not load. They are hidden for now and nothing in them is saved. Reload to try again.":"The header and footer could not load. They are hidden for now and nothing in them is saved. Reload to try again.","The header and footer did not save. They are sent again with your next change.":"The header and footer did not save. They are sent again with your next change.","The header and footer were changed somewhere else. Nothing you change in them here is saved. Reload to get the latest.":"The header and footer were changed somewhere else. Nothing you change in them here is saved. Reload to get the latest.","The header cannot take another one of these":"The header cannot take another one of these","The header holds at most 3 sections":"The header holds at most 3 sections","The name was not saved. Try again.":"The name was not saved. Try again.","The newest 30 are kept. Named versions are always kept.":"The newest 30 are kept. Named versions are always kept.","The order the blocks stack in on a phone. Only the look moves: the Tab key and screen readers keep the desktop order.":"The order the blocks stack in on a phone. Only the look moves: the Tab key and screen readers keep the desktop order.","The preview did not open. Try again.":"The preview did not open. Try again.","The room left at the left and right edge of every page.":"The room left at the left and right edge of every page.","The section it belonged to has been changed or removed.":"The section it belonged to has been changed or removed.","The slide shows your Image while the video loads, because this video has no frame.":"The slide shows your Image while the video loads, because this video has no frame.","The version was not restored. Nothing changed. Try again.":"The version was not restored. Nothing changed. Try again.","The whole website goes back to version {n} as a draft.":"The whole website goes back to version {n} as a draft.","The whole website goes back to version {n} as a draft: {what}.":"The whole website goes back to version {n} as a draft: {what}.","The width bar works for 2 to {count} blocks.":"The width bar works for 2 to {count} blocks.","The width of every section's background.":"The width of every section's background.","The width of every section's content.":"The width of every section's content.","The words are still on your page and nothing has been lost. The editor could not work out which control belongs to them, which is a fault on our side. Go back and click the section to open its settings instead.":"The words are still on your page and nothing has been lost. The editor could not work out which control belongs to them, which is a fault on our side. Go back and click the section to open its settings instead.",Theme:"Theme","Theme Switch":"Theme Switch","Theme {n}":"Theme {n}","Theme {n} background":"Theme {n} background","Theme {n} main color":"Theme {n} main color","Theme {n} muted color":"Theme {n} muted color","Theme {n} surface color":"Theme {n} surface color","Theme {n} text color":"Theme {n} text color","These settings apply to every view.":"These settings apply to every view.","They are saved in Version history as “Draft before restore”, so you can get them back.":"They are saved in Version history as “Draft before restore”, so you can get them back.",Thickness:"Thickness","Third item":"Third item","This cannot be undone.":"This cannot be undone.","This card is not in a section that can share corners.":"This card is not in a section that can share corners.","This color is hard to read on this theme's page. The buttons below are the same hue, darkened.":"This color is hard to read on this theme's page. The buttons below are the same hue, darkened.","This color is hard to read on your page background. Pick one further from it — lighter if your pages are dark, deeper if they are light.":"This color is hard to read on your page background. Pick one further from it — lighter if your pages are dark, deeper if they are light.","This color reads clearly on your pages.":"This color reads clearly on your pages.","This footer uses the old layout":"This footer uses the old layout","This is the only card in the section.":"This is the only card in the section.","This page":"This page","This page has no look of its own to set.":"This page has no look of its own to set.","This page is read-only.":"This page is read-only.","This part is no longer here.":"This part is no longer here.","This part's settings did not open.":"This part's settings did not open.","This site has {n} color theme of its own. Clearing takes them away and puts back the four the shop supplies.":"This site has {n} color theme of its own. Clearing takes them away and puts back the four the shop supplies.","This site has {n} color themes of its own. Clearing takes them away and puts back the four the shop supplies.":"This site has {n} color themes of its own. Clearing takes them away and puts back the four the shop supplies.","This ticker’s hero is no longer on the page.":"This ticker’s hero is no longer on the page.","This video has no frame yet. The slide shows its background colour until one is made.":"This video has no frame yet. The slide shows its background colour until one is made.","This video has no frame yet. The slide shows its image until one is made.":"This video has no frame yet. The slide shows its image until one is made.","This video is on another website, so no frame can be made. The slide shows its background colour while the video loads. Choose Image to show a picture.":"This video is on another website, so no frame can be made. The slide shows its background colour while the video loads. Choose Image to show a picture.","This video starts dark, so no frame was made. The slide shows its background colour while the video loads. Choose Image to show a picture.":"This video starts dark, so no frame was made. The slide shows its background colour while the video loads. Choose Image to show a picture.","This video's file type gives no frame. The slide shows its background colour while the video loads. Choose Image to show a picture.":"This video's file type gives no frame. The slide shows its background colour while the video loads. Choose Image to show a picture.","Three across":"Three across","Three ladder":"Three ladder","Three stagger":"Three stagger","Ticker items":"Ticker items",TikTok:"TikTok","Timeline entries":"Timeline entries","Timezone chip":"Timezone chip",Tint:"Tint","Tint color":"Tint color","Tint opacity":"Tint opacity",Title:"Title","Today, {time}":"Today, {time}",Tone:"Tone",Top:"Top","Top border":"Top border","Top center":"Top center","Top left":"Top left","Top right":"Top right","Top row":"Top row","Top space":"Top space",Total:"Total","Total amount":"Total amount","Total label":"Total label","Total line":"Total line",Track:"Track","Track (year rail)":"Track (year rail)","Trailing note":"Trailing note","Triangle ▼":"Triangle ▼","Trusted by *teams worldwide*":"Trusted by *teams worldwide*","Try again":"Try again","Turns the box. 0° is straight.":"Turns the box. 0° is straight.","Two across":"Two across","Two image galleries with tabs and filters.":"Two image galleries with tabs and filters.","Two tall":"Two tall","Two, then threes":"Two, then threes","Two, then threes · photo":"Two, then threes · photo",Type:"Type","Type a postcode or address":"Type a postcode or address","Typed by hand":"Typed by hand","Typed here":"Typed here","Typed in":"Typed in","Tyre Fitment Form":"Tyre Fitment Form","Tyre Sizes":"Tyre Sizes","URL pill":"URL pill","URL: /{slug}":"URL: /{slug}","Under this screen width the blocks stand one under another, with the Phone Gap and Padding.":"Under this screen width the blocks stand one under another, with the Phone Gap and Padding.",Undo:"Undo","Undo did not work. Nothing changed. Try again.":"Undo did not work. Nothing changed. Try again.",Ungrouped:"Ungrouped",Unit:"Unit","Unit labels":"Unit labels",Unlink:"Unlink",Up:"Up","Up and down":"Up and down",Upcoming:"Upcoming","Update style":"Update style","Update {style}?":"Update {style}?",Upload:"Upload","Upload a background image":"Upload a background image","Upload a poster still":"Upload a poster still","Uppercase heading":"Uppercase heading","Use {colour}":"Use {colour}",Value:"Value","Value suffix":"Value suffix","Version history":"Version history","Version history did not load.":"Version history did not load.","Version {n}":"Version {n}","Version {n} is now your draft":"Version {n} is now your draft",Versions:"Versions","Versus OEM equivalents, across our forged catalog.":"Versus OEM equivalents, across our forged catalog.","Vertical breathing room between sections.":"Vertical breathing room between sections.",Video:"Video","Video 16:9":"Video 16:9","Video file":"Video file","Video frame":"Video frame","Video poster":"Video poster","View all":"View all","View all questions":"View all questions","View series →":"View series →",Volume:"Volume","Ways to pay":"Ways to pay","We accept":"We accept",WeChat:"WeChat","What each card does when a shopper points at it, or taps it on a phone. Rotate turns the wheel picture.":"What each card does when a shopper points at it, or taps it on a phone. Rotate turns the wheel picture.","What each card does when a shopper points at it. Show next image covers the card with this product's photos, with arrows; a phone shows the card as it is. Rotate turns the wheel picture.":"What each card does when a shopper points at it. Show next image covers the card with this product's photos, with arrows; a phone shows the card as it is. Rotate turns the wheel picture.","What people *say.*":"What people *say.*","What this card does when a shopper points at it, or taps it on a phone. Highlight fills it with the surface color and turns its text the main color.":"What this card does when a shopper points at it, or taps it on a phone. Highlight fills it with the surface color and turns its text the main color.","What this does when a shopper points at it, or taps it on a phone.":"What this does when a shopper points at it, or taps it on a phone.","What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.":"What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.","What this picture does when a shopper points at the card. Show next image fades to the card's next photo. Black and white shows it in grey until then. A phone shows the first photo in colour.":"What this picture does when a shopper points at the card. Show next image fades to the card's next photo. Black and white shows it in grey until then. A phone shows the first photo in colour.","What we count.":"What we count.",WhatsApp:"WhatsApp","When a link lands on this Box's anchor, the Box gets a main color outline and its first block turns the main color.":"When a link lands on this Box's anchor, the Box gets a main color outline and its first block turns the main color.","When the text does not fit":"When the text does not fit","Where this content is edited.":"Where this content is edited.","Whether this page sits on the site's content column, or runs edge to edge.":"Whether this page sits on the site's content column, or runs edge to edge.","Which of the product's pictures the card shows.":"Which of the product's pictures the card shows.","Whole card":"Whole card","Whole card hides the words under the photo. Picture keeps the words and swatches in view.":"Whole card hides the words under the photo. Picture keeps the words and swatches in view.","Whole number Theme Color":"Whole number Theme Color","Wide (2:1)":"Wide (2:1)","Wide 2:1":"Wide 2:1","Wide promo strip with background image.":"Wide promo strip with background image.",Width:"Width","With us":"With us",Wording:"Wording",Words:"Words","Words first":"Words first",Wrap:"Wrap","Write the answer here.":"Write the answer here.","Write the opening paragraph here.\n\n- Start a line with a dash for a bullet.\n- Add as many as you like.":`Write the opening paragraph here.
8
+ *the counter.*`,"Select a section or block to edit it.":"Select a section or block to edit it.","Select a word, then press the highlighter.":"Select a word, then press the highlighter.","Selector guide":"Selector guide","Selector guide (pills + results)":"Selector guide (pills + results)","Selector pills":"Selector pills",Separator:"Separator","Series title":"Series title",Serif:"Serif","Set by country":"Set by country","Set this card's corners first.":"Set this card's corners first.",Shadow:"Shadow","Shadow color":"Shadow color",Shape:"Shape","Share button":"Share button",Shared:"Shared","Shared, scroll":"Shared, scroll","Shop & galleries":"Shop & galleries","Short description of this figure.":"Short description of this figure.","Short detail line":"Short detail line","Short supporting line":"Short supporting line",Show:"Show","Show arrows":"Show arrows","Show cover image":"Show cover image","Show for":"Show for","Show hints":"Show hints","Show next image":"Show next image","Show on a card":"Show on a card","Show on phones":"Show on phones","Show slide picker":"Show slide picker","Show texture":"Show texture","Show the chat bubble":"Show the chat bubble","Show the chat bubble on the whole site":"Show the chat bubble on the whole site","Show ticker":"Show ticker","Show {label} on the slide":"Show {label} on the slide","Shown beside the heading":"Shown beside the heading",Shows:"Shows","Shows when a visitor points at the button":"Shows when a visitor points at the button",Shrink:"Shrink","Shrink to fit":"Shrink to fit","Side space":"Side space","Side-by-side image and text in two columns.":"Side-by-side image and text in two columns.",Sideways:"Sideways","Signup Form":"Signup Form",Simple:"Simple",Site:"Site","Site button color":"Site button color","Site settings":"Site settings","Six across":"Six across","Six stagger":"Six stagger",Size:"Size",Sizes:"Sizes","Slash /":"Slash /","Slide name":"Slide name","Slide picker":"Slide picker","Slide picker placement":"Slide picker placement","Slide picker shape":"Slide picker shape","Slide {n}: own Overlay color.":"Slide {n}: own Overlay color.","Slides {n}: own Overlay color.":"Slides {n}: own Overlay color.",Small:"Small","Small — 40px":"Small — 40px","Social Logos":"Social Logos","Social link settings belong to a website.":"Social link settings belong to a website.","Social links":"Social links",Soft:"Soft",Solid:"Solid","Somebody else":"Somebody else",Source:"Source","Space above and below":"Space above and below",Spacer:"Spacer","Spec Strip":"Spec Strip","Spec Table":"Spec Table","Spec label":"Spec label","Spec tiles":"Spec tiles","Spec value":"Spec value","Specified in California to a 14-step protocol. No two sets are identical.":"Specified in California to a 14-step protocol. No two sets are identical.",Specs:"Specs",Spin:"Spin",Spine:"Spine","Spine (single rail)":"Spine (single rail)",Split:"Split","Split (editorial aside)":"Split (editorial aside)",Square:"Square","Square 1:1":"Square 1:1",Squares:"Squares",Stacked:"Stacked","Stacks below":"Stacks below",Standard:"Standard","Starts open":"Starts open",Stat:"Stat","Stat & note":"Stat & note","Stat label":"Stat label","Stat name":"Stat name","Stat value":"Stat value",State:"State","State / Province":"State / Province",Statement:"Statement",Stats:"Stats","Stats & social proof":"Stats & social proof","Stats with Text":"Stats with Text","Status chip":"Status chip","Step *one*":"Step *one*","Step *three*":"Step *three*","Step *two*":"Step *two*","Stick to top":"Stick to top","Still time per slide":"Still time per slide","Still to come: a hollow dot, and the gold line stops before it.":"Still to come: a hollow dot, and the gold line stops before it.","Storefront → Blog":"Storefront → Blog","Storefront ▸ Sites ▸ Settings":"Storefront ▸ Sites ▸ Settings","Story 9:16":"Story 9:16","Story Timeline":"Story Timeline","Street address":"Street address","Strip fill":"Strip fill","Strip items":"Strip items","Stripes · bold":"Stripes · bold","Stripes · fine":"Stripes · fine","Stripes · medium":"Stripes · medium",Style:"Style",Styles:"Styles","Sub-title":"Sub-title","Sub-total lines":"Sub-total lines",Subhead:"Subhead",Subscribe:"Subscribe","Subscribe with Posts":"Subscribe with Posts",Subtitle:"Subtitle","Subtitle font size":"Subtitle font size",Subtotal:"Subtotal","Success heading":"Success heading","Success message":"Success message",Superscript:"Superscript",Surface:"Surface","Switch now":"Switch now","Switch to Box footer":"Switch to Box footer","Synced from the blog post.":"Synced from the blog post.","Synced from the product.":"Synced from the product.","Synced from the site menu.":"Synced from the site menu.","Syncing from {place}…":"Syncing from {place}…",Tab:"Tab","Tab label":"Tab label","Tab name":"Tab name","Tab shape":"Tab shape","Tabbed Gallery":"Tabbed Gallery",Table:"Table",Tabs:"Tabs","Tall (3:4)":"Tall (3:4)","Tall 3:4":"Tall 3:4","Tall first":"Tall first","Tall middle":"Tall middle","Team four":"Team four","Team one":"Team one","Team three":"Team three","Team two":"Team two",Telegram:"Telegram",Template:"Template","Templates don’t store images — this slot stays a placeholder. Each website picks its own after it’s created.":"Templates don’t store images — this slot stays a placeholder. Each website picks its own after it’s created.","Templates don’t store videos — this slot stays a placeholder. Each website picks its own after it’s created.":"Templates don’t store videos — this slot stays a placeholder. Each website picks its own after it’s created.","Templates keep their look. Press Done.":"Templates keep their look. Press Done.",Terminal:"Terminal","Terminal (CLI session)":"Terminal (CLI session)","Terminal lines":"Terminal lines",Testimonials:"Testimonials",Text:"Text","Text & content":"Text & content","Text & media":"Text & media","Text color":"Text color","Text column":"Text column","Text height":"Text height","Text position":"Text position","Text size":"Text size","Text style":"Text style",Texts:"Texts",Texture:"Texture","Texture color":"Texture color","Texture opacity":"Texture opacity","Thanks — we'll email you to confirm.":"Thanks — we'll email you to confirm.","The chat bubble is hidden across the whole site.":"The chat bubble is hidden across the whole site.","The current product's compatible tyres — image, size, key specs and price per tyre, with an inquiry link. Display only.":"The current product's compatible tyres — image, size, key specs and price per tyre, with an inquiry link. Display only.","The current product's related items in a tidy row — the product page's built-in 'Pair with' cross-sell.":"The current product's related items in a tidy row — the product page's built-in 'Pair with' cross-sell.","The floating chat bubble shows in the corner of every page.":"The floating chat bubble shows in the corner of every page.","The footer cannot take another one of these":"The footer cannot take another one of these","The footer holds at most 6 sections":"The footer holds at most 6 sections","The header and footer could not load. They are hidden for now and nothing in them is saved. Reload to try again.":"The header and footer could not load. They are hidden for now and nothing in them is saved. Reload to try again.","The header and footer did not save. They are sent again with your next change.":"The header and footer did not save. They are sent again with your next change.","The header and footer were changed somewhere else. Nothing you change in them here is saved. Reload to get the latest.":"The header and footer were changed somewhere else. Nothing you change in them here is saved. Reload to get the latest.","The header cannot take another one of these":"The header cannot take another one of these","The header holds at most 3 sections":"The header holds at most 3 sections","The name was not saved. Try again.":"The name was not saved. Try again.","The newest 30 are kept. Named versions are always kept.":"The newest 30 are kept. Named versions are always kept.","The order the blocks stack in on a phone. Only the look moves: the Tab key and screen readers keep the desktop order.":"The order the blocks stack in on a phone. Only the look moves: the Tab key and screen readers keep the desktop order.","The preview did not open. Try again.":"The preview did not open. Try again.","The room left at the left and right edge of every page.":"The room left at the left and right edge of every page.","The section it belonged to has been changed or removed.":"The section it belonged to has been changed or removed.","The slide shows your Image while the video loads, because this video has no frame.":"The slide shows your Image while the video loads, because this video has no frame.","The version was not restored. Nothing changed. Try again.":"The version was not restored. Nothing changed. Try again.","The whole website goes back to version {n} as a draft.":"The whole website goes back to version {n} as a draft.","The whole website goes back to version {n} as a draft: {what}.":"The whole website goes back to version {n} as a draft: {what}.","The width bar works for 2 to {count} blocks.":"The width bar works for 2 to {count} blocks.","The width of every section's background.":"The width of every section's background.","The width of every section's content.":"The width of every section's content.","The words are still on your page and nothing has been lost. The editor could not work out which control belongs to them, which is a fault on our side. Go back and click the section to open its settings instead.":"The words are still on your page and nothing has been lost. The editor could not work out which control belongs to them, which is a fault on our side. Go back and click the section to open its settings instead.",Theme:"Theme","Theme Switch":"Theme Switch","Theme {n}":"Theme {n}","Theme {n} background":"Theme {n} background","Theme {n} main color":"Theme {n} main color","Theme {n} muted color":"Theme {n} muted color","Theme {n} surface color":"Theme {n} surface color","Theme {n} text color":"Theme {n} text color","These settings apply to every view.":"These settings apply to every view.","They are saved in Version history as “Draft before restore”, so you can get them back.":"They are saved in Version history as “Draft before restore”, so you can get them back.",Thickness:"Thickness","Third item":"Third item","This cannot be undone.":"This cannot be undone.","This card is not in a section that can share corners.":"This card is not in a section that can share corners.","This color is hard to read on this theme's page. The buttons below are the same hue, darkened.":"This color is hard to read on this theme's page. The buttons below are the same hue, darkened.","This color is hard to read on your page background. Pick one further from it — lighter if your pages are dark, deeper if they are light.":"This color is hard to read on your page background. Pick one further from it — lighter if your pages are dark, deeper if they are light.","This color reads clearly on your pages.":"This color reads clearly on your pages.","This footer uses the old layout":"This footer uses the old layout","This is the only card in the section.":"This is the only card in the section.","This page":"This page","This page has no look of its own to set.":"This page has no look of its own to set.","This page is read-only.":"This page is read-only.","This part is no longer here.":"This part is no longer here.","This part's settings did not open.":"This part's settings did not open.","This site has {n} color theme of its own. Clearing takes them away and puts back the four the shop supplies.":"This site has {n} color theme of its own. Clearing takes them away and puts back the four the shop supplies.","This site has {n} color themes of its own. Clearing takes them away and puts back the four the shop supplies.":"This site has {n} color themes of its own. Clearing takes them away and puts back the four the shop supplies.","This ticker’s hero is no longer on the page.":"This ticker’s hero is no longer on the page.","This video has no frame yet. The slide shows its background colour until one is made.":"This video has no frame yet. The slide shows its background colour until one is made.","This video has no frame yet. The slide shows its image until one is made.":"This video has no frame yet. The slide shows its image until one is made.","This video is on another website, so no frame can be made. The slide shows its background colour while the video loads. Choose Image to show a picture.":"This video is on another website, so no frame can be made. The slide shows its background colour while the video loads. Choose Image to show a picture.","This video starts dark, so no frame was made. The slide shows its background colour while the video loads. Choose Image to show a picture.":"This video starts dark, so no frame was made. The slide shows its background colour while the video loads. Choose Image to show a picture.","This video's file type gives no frame. The slide shows its background colour while the video loads. Choose Image to show a picture.":"This video's file type gives no frame. The slide shows its background colour while the video loads. Choose Image to show a picture.","Three across":"Three across","Three ladder":"Three ladder","Three stagger":"Three stagger","Ticker items":"Ticker items",TikTok:"TikTok","Timeline entries":"Timeline entries","Timezone chip":"Timezone chip",Tint:"Tint","Tint color":"Tint color","Tint opacity":"Tint opacity",Title:"Title","Today, {time}":"Today, {time}",Tone:"Tone",Top:"Top","Top border":"Top border","Top center":"Top center","Top left":"Top left","Top right":"Top right","Top row":"Top row","Top space":"Top space",Total:"Total","Total amount":"Total amount","Total label":"Total label","Total line":"Total line",Track:"Track","Track (year rail)":"Track (year rail)","Trailing note":"Trailing note","Triangle ▼":"Triangle ▼","Trusted by *teams worldwide*":"Trusted by *teams worldwide*","Try again":"Try again","Turns the box. 0° is straight.":"Turns the box. 0° is straight.","Two across":"Two across","Two image galleries with tabs and filters.":"Two image galleries with tabs and filters.","Two tall":"Two tall","Two, then threes":"Two, then threes","Two, then threes · photo":"Two, then threes · photo",Type:"Type","Type a postcode or address":"Type a postcode or address","Typed by hand":"Typed by hand","Typed here":"Typed here","Typed in":"Typed in","Tyre Fitment Form":"Tyre Fitment Form","Tyre Sizes":"Tyre Sizes","URL pill":"URL pill","URL: /{slug}":"URL: /{slug}","Under this screen width the blocks stand one under another, with the Phone Gap and Padding.":"Under this screen width the blocks stand one under another, with the Phone Gap and Padding.",Undo:"Undo","Undo did not work. Nothing changed. Try again.":"Undo did not work. Nothing changed. Try again.",Ungrouped:"Ungrouped",Unit:"Unit","Unit labels":"Unit labels",Unlink:"Unlink",Up:"Up","Up and down":"Up and down",Upcoming:"Upcoming","Update style":"Update style","Update {style}?":"Update {style}?",Upload:"Upload","Upload a background image":"Upload a background image","Upload a poster still":"Upload a poster still","Uppercase heading":"Uppercase heading","Use {colour}":"Use {colour}",Value:"Value","Value suffix":"Value suffix","Version history":"Version history","Version history did not load.":"Version history did not load.","Version {n}":"Version {n}","Version {n} is now your draft":"Version {n} is now your draft",Versions:"Versions","Versus OEM equivalents, across our forged catalog.":"Versus OEM equivalents, across our forged catalog.","Vertical breathing room between sections.":"Vertical breathing room between sections.",Video:"Video","Video 16:9":"Video 16:9","Video file":"Video file","Video frame":"Video frame","Video poster":"Video poster","View all":"View all","View all questions":"View all questions","View series →":"View series →",Volume:"Volume","Ways to pay":"Ways to pay","We accept":"We accept",WeChat:"WeChat","What each card does when a shopper points at it, or taps it on a phone. Rotate turns the wheel picture.":"What each card does when a shopper points at it, or taps it on a phone. Rotate turns the wheel picture.","What each card does when a shopper points at it. Show next image covers the card with this product's photos, with arrows; a phone shows the card as it is. Rotate turns the wheel picture.":"What each card does when a shopper points at it. Show next image covers the card with this product's photos, with arrows; a phone shows the card as it is. Rotate turns the wheel picture.","What people *say.*":"What people *say.*","What this card does when a shopper points at it, or taps it on a phone. Highlight fills it with the surface color and turns its text the main color.":"What this card does when a shopper points at it, or taps it on a phone. Highlight fills it with the surface color and turns its text the main color.","What this does when a shopper points at it, or taps it on a phone.":"What this does when a shopper points at it, or taps it on a phone.","What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.":"What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.","What this picture does when a shopper points at the card. Show next image covers the card or the picture with this product's photos, with arrows; a phone shows the picture as it is. Black and white shows it in grey until then.":"What this picture does when a shopper points at the card. Show next image covers the card or the picture with this product's photos, with arrows; a phone shows the picture as it is. Black and white shows it in grey until then.","What this picture does when a shopper points at the card. Show next image fades to the card's next photo. Black and white shows it in grey until then. A phone shows the first photo in colour.":"What this picture does when a shopper points at the card. Show next image fades to the card's next photo. Black and white shows it in grey until then. A phone shows the first photo in colour.","What we count.":"What we count.",WhatsApp:"WhatsApp","When a link lands on this Box's anchor, the Box gets a main color outline and its first block turns the main color.":"When a link lands on this Box's anchor, the Box gets a main color outline and its first block turns the main color.","When the text does not fit":"When the text does not fit","Where this content is edited.":"Where this content is edited.","Whether this page sits on the site's content column, or runs edge to edge.":"Whether this page sits on the site's content column, or runs edge to edge.","Which of the product's pictures the card shows.":"Which of the product's pictures the card shows.","Whole card":"Whole card","Whole card hides the words under the photo. Picture keeps the words and swatches in view.":"Whole card hides the words under the photo. Picture keeps the words and swatches in view.","Whole number Theme Color":"Whole number Theme Color","Wide (2:1)":"Wide (2:1)","Wide 2:1":"Wide 2:1","Wide promo strip with background image.":"Wide promo strip with background image.",Width:"Width","With us":"With us",Wording:"Wording",Words:"Words","Words first":"Words first",Wrap:"Wrap","Write the answer here.":"Write the answer here.","Write the opening paragraph here.\n\n- Start a line with a dash for a bullet.\n- Add as many as you like.":`Write the opening paragraph here.
9
9
 
10
10
  - Start a line with a dash for a bullet.
11
11
  - Add as many as you like.`,X:"X","X-Large":"X-Large",Year:"Year","Year →":"Year →",Years:"Years","Years in business":"Years in business",YouTube:"YouTube","YouTube link":"YouTube link","Your *first* section.":"Your *first* section.","Your *second* section.":"Your *second* section.","Your drafts from before the restore are back":"Your drafts from before the restore are back","Your drafts go back to how they were before the restore.":"Your drafts go back to how they were before the restore.","Your fifth question goes here?":"Your fifth question goes here?","Your first question goes here?":"Your first question goes here?","Your fourth question goes here?":"Your fourth question goes here?","Your last changes did not save, so nothing was restored. Try again.":"Your last changes did not save, so nothing was restored. Try again.","Your last changes did not save, so the template was not made. Try again.":"Your last changes did not save, so the template was not made. Try again.","Your live website does not change until you press Publish.":"Your live website does not change until you press Publish.","Your locations as a city gallery plus address and map cards.":"Your locations as a city gallery plus address and map cards.","Your review":"Your review","Your second question goes here?":"Your second question goes here?","Your third question goes here?":"Your third question goes here?","Your unpublished changes are kept":"Your unpublished changes are kept",Zigzag:"Zigzag",Zoom:"Zoom","all theme colors":"all theme colors",arrangement:"arrangement","body text":"body text",boxes:"boxes",button:"button",card:"card",cities:"cities",city:"city",direction:"direction",draft:"draft","e.g. About":"e.g. About","e.g. Americas":"e.g. Americas","e.g. about":"e.g. about","each block's own spacing":"each block's own spacing",entries:"entries",group:"group","https://youtu.be/…":"https://youtu.be/…",item:"item",label:"label",link:"link",main:"main",manifesto:"manifesto",none:"none","not set":"not set","not shown live":"not shown live",part:"part",px:"px",tabs:"tabs","the Text style in Styles":"the Text style in Styles","the built-in corners":"the built-in corners","the page":"the page","the same as Desktop":"the same as Desktop","the section":"the section","the theme's image stage":"the theme's image stage","the theme's section background":"the theme's section background","this container's own spacing":"this container's own spacing",upper:"upper",vh:"vh","{day}, {time}":"{day}, {time}","{grade} on the button":"{grade} on the button","{label} hex code":"{label} hex code","{label} {n}":"{label} {n}","{label} — row {n}":"{label} — row {n}","{letter} · Step":"{letter} · Step","{name} (taken down)":"{name} (taken down)","{name} (unavailable)":"{name} (unavailable)","{name} is editing the header and footer. Nothing you change in them here is saved.":"{name} is editing the header and footer. Nothing you change in them here is saved.","{name} is editing {section}. Nothing you change in it here is saved.":"{name} is editing {section}. Nothing you change in it here is saved.","{name} is on this section":"{name} is on this section","{name} — renamed in the Console: {place}.":"{name} — renamed in the Console: {place}.","{n} change":"{n} change","{n} changes":"{n} changes","{n} cities":"{n} cities","{n} city":"{n} city","{n} of {total} layouts":"{n} of {total} layouts","{n} page":"{n} page","{n} pages":"{n} pages","{n} picture in this version was deleted from the media library. It stays empty.":"{n} picture in this version was deleted from the media library. It stays empty.","{n} pictures in this version were deleted from the media library. They stay empty.":"{n} pictures in this version were deleted from the media library. They stay empty.","{page} from version {n} is now your draft":"{page} from version {n} is now your draft","{page} goes back to version {n} as a draft. Nothing else on your website changes.":"{page} goes back to version {n} as a draft. Nothing else on your website changes.","{section} could not load. It stays on the page as it was. Reload to try again.":"{section} could not load. It stays on the page as it was. Reload to try again.","{section} did not save. It is sent again with your next change.":"{section} did not save. It is sent again with your next change.","{section} was changed somewhere else. Nothing you change in it here is saved. Reload to get the latest.":"{section} was changed somewhere else. Nothing you change in it here is saved. Reload to get the latest.","{value} from {from}":"{value} from {from}","{value} on desktop":"{value} on desktop","{value} on tablet":"{value} on tablet","{what} settings belong to a website.":"{what} settings belong to a website.","— Articles in total":"— Articles in total","— Label":"— Label","— Name, Year":"— Name, Year"};export{e as WEB_BUILDER_WORDS};
@@ -1 +1 @@
1
- const e={relatedProducts:"Related Products",bundleProducts:"Bundle Products",documentHeader:"Document Header",documentHeaderBlurb:"A document header — headline, metadata and standfirst.",shrinkToFit:"Shrink to fit",dividerPhoneHide:"Hide",tyreFitmentForm:"Tyre Fitment Form",tabbedGallery:"Tabbed Gallery",customerPhotoGrid:"Customer Photo Grid",locationsSearchShow:"Show",customerPhotoGridBlurb:"Customer photos in a card grid with a click-to-open lightbox.",cardHoverHint:"What each card does when a shopper points at it, or taps it on a phone. Rotate turns the wheel picture."};export{e as KEPT_EDITOR_PHRASES};
1
+ const t={relatedProducts:"Related Products",bundleProducts:"Bundle Products",documentHeader:"Document Header",documentHeaderBlurb:"A document header — headline, metadata and standfirst.",shrinkToFit:"Shrink to fit",dividerPhoneHide:"Hide",tyreFitmentForm:"Tyre Fitment Form",tabbedGallery:"Tabbed Gallery",customerPhotoGrid:"Customer Photo Grid",locationsSearchShow:"Show",customerPhotoGridBlurb:"Customer photos in a card grid with a click-to-open lightbox.",cardHoverHint:"What each card does when a shopper points at it, or taps it on a phone. Rotate turns the wheel picture.",nextPictureHoverHint:"What this picture does when a shopper points at the card. Show next image fades to the card's next photo. Black and white shows it in grey until then. A phone shows the first photo in colour."};export{t as KEPT_EDITOR_PHRASES};
@@ -0,0 +1,6 @@
1
+ import { type RuleReport, type SourceFile } from "./rule.js";
2
+ export type OneNextImagePathOptions = {
3
+ readonly layerHome?: string;
4
+ readonly minFiles: number;
5
+ };
6
+ export declare function oneNextImagePath(files: readonly SourceFile[], options: OneNextImagePathOptions): RuleReport;
@@ -0,0 +1 @@
1
+ import{ruleChecks as m}from"./rule.js";const i=/\bsf-photo-next\b|\bNEXT_PICTURE_CLASS\b|\bNEXT_PICTURE_CSS\b|\bresolveNextPicture\b|\bnextSrc\b|\browNextPicture\b/,d=/\bdata-hover-media(?:=|["'`]\s*:)/;function n(a){return i.test(a)}function s(a){return d.test(a)}function u(a,t){const{check:r,report:c}=m("one Show next image path");r("the reader finds the old path and a second layer, and passes a mount of the one layer",n("<ImageBlock nextSrc={b} />")&&n('className="sf-photo-next"')&&s('<div data-hover-media="" />')&&!n('<HoverMediaLayer media={m} name={n} cover="picture" />')&&!s('<HoverMediaLayer media={m} name={n} cover="picture" />'));const o=a.filter(e=>/\.tsx?$/.test(e.path));r(`read the source (${o.length} TS/TSX files, at least ${t.minFiles})`,o.length>=t.minFiles,"fewer means the walk broke, and the checks below are vacuous");const h=o.filter(e=>n(e.text)).map(e=>e.path);r("no file names the one-step next photo (its class, sheet, resolver or prop)",h.length===0,`named in: ${h.join(", ")}`);const l=o.filter(e=>e.path!==t.layerHome&&s(e.text)).map(e=>e.path);return r("no file but the layer's home draws a hover layer",l.length===0,`a second layer in: ${l.join(", ")}`),t.layerHome&&r(`${t.layerHome} draws the layer`,o.some(e=>e.path===t.layerHome&&s(e.text)),"the home draws no layer"),c()}export{u as oneNextImagePath};
@@ -49,6 +49,9 @@ export declare function themeSwatchColors(c: ThemeColors): {
49
49
  fill: string;
50
50
  accent: string;
51
51
  };
52
+ export declare const OVERLAY_INK_LIGHT = "#f5f1e8";
53
+ export declare const OVERLAY_INK_DARK = "#0a0a0a";
54
+ export declare function themeLightInk(v?: ThemeValue | null): string | null;
52
55
  export declare const READABILITY_AA = 4.5;
53
56
  export declare const READABILITY_AA_LARGE = 3;
54
57
  export type ReadabilityGrade = "good" | "large-only" | "hard";
@@ -56,7 +59,7 @@ export { contrastRatio };
56
59
  export declare const GRADE_LABEL: Record<ReadabilityGrade, string>;
57
60
  export declare function gradeContrast(ratio: number): ReadabilityGrade;
58
61
  export declare function accentInk(accent: string): string;
59
- export declare function fillIsDark(fill: string): boolean;
62
+ export declare function fillIsDark(fill: string, lightInk?: string): boolean;
60
63
  export declare const ACCENT_DARKEN_STEPS: readonly [0.25, 0.4, 0.55];
61
64
  export declare function darkerAccents(accent: string): string[];
62
65
  export declare function themeColorStyle(v?: ThemeValue | null): Record<string, string>;
@@ -117,11 +120,11 @@ export declare const HOVER_EFFECTS: readonly ["none", "lift", "highlight"];
117
120
  export type HoverEffect = (typeof HOVER_EFFECTS)[number];
118
121
  export declare const DEFAULT_HOVER_EFFECT: HoverEffect;
119
122
  export declare const IDENTITY_HOVER_EFFECT: HoverEffect;
120
- export declare const DEFAULT_SHADOW_COLOR = "#141416";
123
+ export { DEFAULT_SHADOW_COLOR } from "efficient-easel/screen/lib/document/shadow-values";
121
124
  export declare function normalizeCardShadow(v?: string | null): CardShadow;
122
125
  export declare function normalizeCardGap(v?: string | null): CardGap;
123
126
  export declare function normalizeHoverEffect(v?: string | null): HoverEffect;
124
- export declare function normalizeShadowColor(v?: string | null): string;
127
+ export declare const normalizeShadowColor: (v?: string | null) => string;
125
128
  export declare function cardShadowAttr(v?: string | null): CardShadow | undefined;
126
129
  export declare function cardGapAttr(v?: string | null): CardGap | undefined;
127
130
  export declare function hoverEffectAttr(v?: string | null): HoverEffect | undefined;
@@ -1,18 +1,18 @@
1
- import{contrastRatio as q,hexToRgb as g,parseHexColor as s,readableInk as J,relativeLuminance as p}from"efficient-shell/format";const Q="storefront-theme",$e="sf:theme-mode",Fe="sf:theme-switch",Ue="hide",Ge="light",Ye=!1,D=7,H=18;function v(e){return e>=D&&e<H}function ze(e){const{mode:t,override:n,switchShown:r,hour:o}=e;return r&&(n==="light"||n==="dark")?n:t==="auto"?v(o)?"light":"dark":t==="light"?"light":"dark"}function Be(e){const{mode:t,switchShown:n}=e;return`
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`
2
2
  try {
3
3
  var mode = ${JSON.stringify(t)};
4
4
  var shown = ${n?"true":"false"};
5
- var override = localStorage.getItem(${JSON.stringify(Q)});
5
+ var override = localStorage.getItem(${JSON.stringify(v)});
6
6
  var theme;
7
7
  if (shown && (override === 'light' || override === 'dark')) {
8
8
  theme = override;
9
9
  } else if (mode === 'auto') {
10
10
  var h = new Date().getHours();
11
- theme = (h >= ${D} && h < ${H}) ? 'light' : 'dark';
11
+ theme = (h >= ${H} && h < ${N}) ? '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"},ee=[{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"}],te={selected:0,themes:ee};function N(e){return!e||!Array.isArray(e.themes)||e.themes.length===0?{...te}:{selected:Math.min(Math.max(0,e.selected??0),e.themes.length-1),themes:e.themes}}function _(e,t,n){const r=g(e),o=g(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 ne={light:"#ffffff",dark:"#0a0a0a"},Xe=["light","dark"];function We(e,t){const n=ne[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 h(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 Ke(e){return{fill:u(e).background,accent:e.accent}}const re=.4,oe=4.5,ce=3,je={good:"Good","large-only":"Large text only",hard:"Hard to read"};function Ve(e){return e>=oe?"good":e>=ce?"large-only":"hard"}const k=["#000000","#ffffff"];function d(e){return J(e,k)}function Ze(e){return d(e)===k[1]}const ie=[.25,.4,.55];function qe(e){const t=g(e);return t===null?[]:ie.map(n=>"#"+[t.r,t.g,t.b].map(r=>Math.round(r*(1-n)).toString(16).padStart(2,"0")).join(""))}function Je(e){const t=h(e),n={"--theme-fg":t.text},r=p(t.text);return(r===null||r>=re)&&(n["--overlay-fg"]=t.text),n}const se=82;function E(e){return`color-mix(in srgb, ${e} ${se}%, #000)`}function Qe(e){const t=h(e);return{"--theme-accent":t.accent,"--theme-accent-2":E(t.accent),"--theme-accent-ink":d(t.accent)}}function S(e){const t=e?.button;return t&&s(t)===t.toLowerCase()?t.toLowerCase():null}function ve(e){const t=h(e),n=S(t),r=O(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??d(n),o}function O(e){const t=e?.buttonInk;return t&&s(t)===t.toLowerCase()?t.toLowerCase():null}function ae(e,t){return O(e)??d(S(e)??t)}function et(e){const t=h(e);return{fill:S(t)??t.accent.toLowerCase(),ink:ae(t,t.accent)}}function tt(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`]=d(o.accent),t[`--theme-preset-${r}-bg`]=o.background,t[`--theme-preset-${r}-fg`]=o.text,t[`--theme-preset-${r}-surface`]=o.surface,t[`--theme-preset-${r}-surface-2`]=`color-mix(in srgb, ${o.surface} 60%, ${o.line})`,t[`--theme-preset-${r}-line`]=o.line,t[`--theme-preset-${r}-muted`]=o.muted}),t}const 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 L([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),f=Math.cbrt(.0883024619*r+.2817188376*o+.6299787005*c);return[.2104542553*i+.793617785*a-.0040720468*f,1.9779984951*i-2.428592205*a+.4505937099*f,.0259040371*i+.7827717662*a-.808675766*f]}function ue([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=g(e);return t===null?[0,0,0]:[t.r,t.g,t.b]},P=(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("")}`,F=e=>P(b(e.surface),b(e.line),.6);function nt(e){return $(F(u(e)))}function U(e){const t=u(e);return $(ue(P(L(F(t)),L(b(t.text)),.92)))}function rt(e){return{...e,background:U(e)}}function G(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,f)=>{if(f===t)return!1;const x=u(a);return s(x.background)!==c?!1:!r||s(x.text??"")===s(i.text??"")&&s(x.accent??"")===s(i.accent??"")})}function ot(e,t){return G(e,t,U,!1)}function ct(e,t){return G(e,t,n=>s(n.surface??""),!0)}const le=1;function fe(e,t){const n=(e??[]).flatMap((r,o)=>{const c=p(r.background??""),i=p(r.text??"");return c!==null&&i!==null&&c<i?[o]:[]});return n.find(r=>r!==t)??n[0]??le}function it(e){return fe(e?.themes,e?.selected)}const st=["--theme-bg","--theme-surface","--theme-surface-2","--theme-line","--theme-muted"];function at(e){const t=u(h(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 he=["heading","body","label"],ut={heading:"Headings",body:"Body",label:"Labels"};function lt(e){if(!e)return null;for(const t of he)if(e.includes(`--size-${t}`))return t;return/--size-heading(Large|Medium|Small)/.test(e)?"heading":null}const Y=["headingLarge","headingMedium","headingSmall","accent","body","label"],ft={headingLarge:"heading",headingMedium:"heading",headingSmall:"heading",accent:"heading",body:"body",label:"label"},ht={headingLarge:null,headingMedium:null,headingSmall:null,accent:null,body:null,label:null},de=8,ge=200;function me(e){if(typeof e!="number"||!Number.isFinite(e))return null;const t=Math.round(e);return t>=de&&t<=ge?t:null}function xe(e){const t={};for(const n of Y)t[n]=me(e?.[n]);return t}function dt(e){const t=xe(e),n={};for(const r of Y){const o=t[r];o!==null&&(n[`--size-${r}`]=`${o}px`)}return n}const pe=["square","small","large"],_e="small";function Ee(e){return pe.includes(e??"")?e:_e}function gt(e){return B(Ae[Ee(e)])}const C=0,Se=40,Ae={square:0,small:null,large:16},z={"--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 I(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(Se,Math.max(C,Math.round(t))):null}function B(e){const t=I(e);return t===null?{}:Object.fromEntries(Object.entries(z).map(([n,r])=>{const o=t*r/16;return[n,o===0?"0":`${o}rem`]}))}function mt(e){return(I(e)??C)*z["--sf-button-radius"]}function xt(e){return B(I(e)??C)}const Te=["none","soft","lifted"],be="soft",X="none",Ce=["tight","normal","roomy"],Ie="normal",we="normal",Me=["none","lift","highlight"],ye="lift",Re="highlight",W="#141416";function K(e){return Te.includes(e??"")?e:be}function De(e){return Ce.includes(e??"")?e:Ie}function j(e){return Me.includes(e??"")?e:ye}function He(e){return e&&s(e)===e.toLowerCase()?e.toLowerCase():W}function pt(e){const t=K(e);return t===X?void 0:t}function _t(e){const t=De(e);return t===we?void 0:t}function Et(e){const t=j(e);return t===Re?void 0:t}function St(e,t,n){const r=He(t);return r===W?{}:K(e)!==X||j(n)==="lift"?{"--sf-shadow-color":r}:{}}const Ne=["normal","tight","compressed"],V="normal";function Z(e){return Ne.includes(e??"")?e:V}function At(e){const t=Z(e);return t===V?void 0:t}function Tt(e){switch(Z(e)){case"tight":return{lineHeight:.95,letterSpacing:-.01};case"compressed":return{lineHeight:.86,letterSpacing:-.01};default:return{}}}const bt=["authored","sentence"],Ct={case:"authored",weight:null,weightStrong:null,italicStrong:null,maxPx:null,weight2:null,weight3:null,case2:"authored",case3:"authored"},w=100,M=900,ke=24,Oe=200;function m(e,t,n){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,t),n))}function y(e){const t=m(e?.weight,w,M),n=e?.case==="sentence"?"sentence":"authored",r=c=>c==null?t:m(c,w,M),o=c=>c==="sentence"?"sentence":c==="authored"?"authored":n;return{case:n,weight:t,weightStrong:m(e?.weightStrong,w,M),italicStrong:typeof e?.italicStrong=="boolean"?e.italicStrong:null,maxPx:m(e?.maxPx,ke,Oe),weight2:r(e?.weight2),weight3:r(e?.weight3),case2:o(e?.case2),case3:o(e?.case3)}}function It(e){const t=y(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 y({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 Mt(e){const t=y(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 R="siteTheme";function Le(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{[R]:{selected:n,themes:t.themes}}}function yt(e){return Le(e?.[R])[R]}export{ie as ACCENT_DARKEN_STEPS,Xe as BRAND_INKS,Ce as CARD_GAPS,Te as CARD_SHADOWS,Se as CORNER_RADIUS_MAX,C as CORNER_RADIUS_MIN,pe as CORNER_STYLES,Ae as CORNER_STYLE_TO_PX,Ie as DEFAULT_CARD_GAP,be as DEFAULT_CARD_SHADOW,_e as DEFAULT_CORNER_STYLE,V as DEFAULT_HEADING_COMPRESSION,Ct as DEFAULT_HEADING_TYPOGRAPHY,ye as DEFAULT_HOVER_EFFECT,W as DEFAULT_SHADOW_COLOR,ht as DEFAULT_SIZES,l as DEFAULT_SURFACES,Ye as DEFAULT_SWITCH_SHOWN,ee as DEFAULT_THEMES,Ge as DEFAULT_THEME_MODE,te as DEFAULT_THEME_VALUE,je as GRADE_LABEL,bt as HEADING_CASES,Ne as HEADING_COMPRESSIONS,Oe as HEADING_MAX_PX_MAX,ke as HEADING_MAX_PX_MIN,M as HEADING_WEIGHT_MAX,w as HEADING_WEIGHT_MIN,Me as HOVER_EFFECTS,we as IDENTITY_CARD_GAP,X as IDENTITY_CARD_SHADOW,Re as IDENTITY_HOVER_EFFECT,oe as READABILITY_AA,ce as READABILITY_AA_LARGE,ft as SCALE_OF_STEP,R as SITE_THEME_KEY,Y as SIZE_STEPS,ge as TEXT_SIZE_MAX,de as TEXT_SIZE_MIN,H as THEME_DAY_END_HOUR,D as THEME_DAY_START_HOUR,$e as THEME_MODE_KEY,Q as THEME_STORAGE_KEY,st as THEME_SURFACE_KEYS,Ue as THEME_SWITCH_HIDE,Fe as THEME_SWITCH_KEY,he as TYPE_GROUPS,ut as TYPE_GROUP_LABELS,d as accentInk,rt as bandPresetFor,ot as bandPresetIndex,We as brandTheme,Be as buildThemeBootScript,_t as cardGapAttr,pt as cardShadowAttr,Tt as compressionMetrics,q as contrastRatio,B as cornerRadiusTokens,gt as cornerStyleTokens,it as darkBandIndex,fe as darkPresetIndex,qe as darkerAccents,Ze as fillIsDark,Ve as gradeContrast,At as headingCompressionAttr,wt as headingTypographyFromRow,It as headingTypographyStyle,Mt as headingTypographyToRow,Et as hoverEffectAttr,v as isDayHour,De as normalizeCardGap,K as normalizeCardShadow,I as normalizeCornerRadius,Ee as normalizeCornerStyle,Z as normalizeHeadingCompression,y as normalizeHeadingTypography,j as normalizeHoverEffect,He as normalizeShadowColor,me as normalizeSize,xe as normalizeSizes,N as normalizeTheme,u as normalizeThemeColors,ze as resolveTheme,ae as resolvedButtonInk,U as sectionBandTone,h as selectedThemeColors,St as shadowColorTokens,et as siteButtonPaint,mt as siteButtonRadiusPx,xt as siteCornerRadiusTokens,Le as siteThemeMetadata,yt as siteThemeOf,ct as surfacePresetIndex,nt as surfaceTwoTone,Qe as themeAccentStyle,S as themeButtonColour,O as themeButtonInk,ve as themeButtonStyle,Je as themeColorStyle,tt as themePresetAccentVars,at as themeSurfaceStyle,Ke as themeSwatchColors,lt as typeScaleGroupOfClassName,dt 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 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};
@@ -10,6 +10,7 @@ export type CardRow = {
10
10
  ownerType?: string;
11
11
  fields?: readonly CardRowFieldSpec[];
12
12
  item?: unknown;
13
+ finish?: string;
13
14
  nested?: boolean;
14
15
  state?: CardRowState;
15
16
  linesBetween?: boolean;
@@ -29,6 +30,7 @@ export declare function CardRowDrawn({ type, props, children, }: {
29
30
  type CardTemplateRowsProps = {
30
31
  ownerId: string;
31
32
  ownerType: string;
33
+ slot?: string;
32
34
  Template: SlotComponent | undefined;
33
35
  rows: readonly SourceRow[];
34
36
  items?: readonly unknown[];
@@ -41,4 +43,4 @@ type CardTemplateRowsProps = {
41
43
  wrapCopy?: (copy: ReactNode, row: CardRow) => ReactNode;
42
44
  children: (cards: ReactNode) => ReactNode;
43
45
  };
44
- export declare function CardTemplateRows({ ownerId, ownerType, Template, rows, items, fields, states, stateLine, actions, fallback, copyAttrs, wrapCopy, children }: CardTemplateRowsProps): import("react").JSX.Element;
46
+ export declare function CardTemplateRows({ ownerId, ownerType, slot, Template, rows, items, fields, states, stateLine, actions, fallback, copyAttrs, wrapCopy, children }: CardTemplateRowsProps): import("react").JSX.Element;
@@ -1 +1 @@
1
- "use client";import{Fragment as i,jsx as t,jsxs as w}from"react/jsx-runtime";import{createContext as g,useContext as d,useId as y}from"react";import{REPEAT_ATTRIBUTE as O,REPEAT_INDEX_ATTRIBUTE as j}from"efficient-easel/draw";import{BOX_LINKED_CLASS as k}from"../../format/lib/content/box-link.js";import{CARD_TEMPLATE_SLOT as v,cardTemplateLinesBetween as F,rowFilledProps as U,templateBoxIsEmpty as X}from"../../format/lib/content/card-template.js";import{CARD_ACTION_ATTR as $,CARD_ACTION_CLASS as G,CARD_STATE_LINE_CLASS as K,CARD_STATE_UNDER_LINE_CLASS as M,cardStateAttrs as V,cardStateValue as q}from"../../format/lib/content/card-state.js";import{usePageRecordRow as z}from"./CurrentRecord.js";import{CardCopyCell as H}from"./InBoxContext.js";import{SECTION_FILL_CLASS as J}from"../../format/lib/content/section-min-height.js";function ct({props:n,editing:o,children:r}){const e=d(u);return!o&&X(n,e?.row)?null:t(i,{children:r})}const u=g(null);function at(){return d(u)}function lt({type:n,props:o,children:r}){const e=d(u),s=z(),a=e?.row??s;return t(i,{children:r(U(n,o,a,e?.ownerType,e?.fields),e,a)})}function Q({attrs:n,selected:o,press:r,children:e}){const s=y();return w("div",{...n,id:s,className:k,children:[t("button",{type:"button",[$]:"",className:G,"aria-pressed":o,"aria-labelledby":s,onClick:r}),e]})}function it({ownerId:n,ownerType:o,Template:r,rows:e,items:s,fields:a,states:L,stateLine:I,actions:N,fallback:h,copyAttrs:m,wrapCopy:p,children:D}){const x=d(u);if(!r||(r.blockCount??0)<=0)return t(i,{children:h});const b=x!==null,_=F(o),A=r.blockCount===1?t(H,{children:t(r,{className:J})}):t(r,{}),B=e.map((P,c)=>{const l=L?.[c],C={row:P,index:c,ownerType:o,item:s?.[c],nested:b,...a?{fields:a}:null,...l?{state:l}:null,..._?{linesBetween:_}:null},R=q(l)?w(i,{children:[A,t("span",{"aria-hidden":"true",className:I==="under"?M:K})]}):A,E={[O]:`${n}:${v}`,[j]:c,...typeof m=="function"?m(C):m},T=N?.[c],f=V(l),S=T?t(Q,{attrs:{...E,...f},selected:l?.selected===!0,press:T.press,children:R}):t("div",{...E,...f,children:R});return t(u.Provider,{value:C,children:p?p(S,C):S},c)});return t(i,{children:D(B)})}export{u as CardRowContext,lt as CardRowDrawn,it as CardTemplateRows,ct as RowEmptyGate,at as useCardRow};
1
+ "use client";import{Fragment as i,jsx as r,jsxs as m}from"react/jsx-runtime";import{createContext as k,useContext as C,useId as v}from"react";import{REPEAT_ATTRIBUTE as y,REPEAT_INDEX_ATTRIBUTE as j}from"efficient-easel/draw";import{BOX_LINKED_CLASS as h}from"../../format/lib/content/box-link.js";import{CARD_TEMPLATE_SLOT as F,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_STATE_LINE_CLASS as G,CARD_STATE_PICKED_BAR_CLASS as M,CARD_STATE_PICKED_CLASS as W,CARD_STATE_PICKED_WASH_CLASS as q,CARD_STATE_UNDER_LINE_CLASS as z,cardStateAttrs as J,cardStatePicked as Q,cardStateValue as Y}from"../../format/lib/content/card-state.js";import{usePageRecordRow as Z}from"./CurrentRecord.js";import{CardCopyCell as rr}from"./InBoxContext.js";import{SECTION_FILL_CLASS as tr}from"../../format/lib/content/section-min-height.js";function ur({props:n,editing:e,children:o}){const t=C(d);return!e&&U(n,t?.row)?null:r(i,{children:o})}const d=k(null);function _r(){return C(d)}function Ar({type:n,props:e,children:o}){const t=C(d),l=Z(),s=t?.row??l;return r(i,{children:o($(n,e,s,t?.ownerType,t?.fields),t,s)})}function er({attrs:n,selected:e,hover:o,press:t,children:l}){const s=v();return m("div",{...n,id:s,className:o?`${h} ${X}`:h,children:[r("button",{type:"button",[H]:"",className:V,"aria-pressed":e,"aria-labelledby":s,onClick:t}),l]})}function mr({ownerId:n,ownerType:e,slot:o=F,Template:t,rows:l,items:s,fields:S,states:L,stateLine:u,actions:w,fallback:P,copyAttrs:_,wrapCopy:p,children:x}){const B=C(d);if(!t||(t.blockCount??0)<=0)return r(i,{children:P});const O=B!==null,E=K(e),R=t.blockCount===1?r(rr,{children:r(t,{className:tr})}):r(t,{}),b=l.map((g,a)=>{const c=L?.[a],A={row:g,index:a,ownerType:e,item:s?.[a],nested:O,...S?{fields:S}:null,...c?{state:c}:null,...E?{linesBetween:E}:null},T=Y(c)?m(i,{children:[R,u==="under"?r("span",{"aria-hidden":"true",className:z}):Q(c)?m("span",{"aria-hidden":"true",className:W,children:[r("span",{className:M}),r("span",{className:q})]}):r("span",{"aria-hidden":"true",className:G})]}):R,f={[y]:`${n}:${o}`,[j]:a,...typeof _=="function"?_(A):_},N=w?.[a],D=J(c,u),I=N?r(er,{attrs:{...f,...D},selected:c?.selected===!0,hover:u!=="under",press:N.press,children:T}):r("div",{...f,...D,children:T});return r(d.Provider,{value:A,children:p?p(I,A):I},a)});return r(i,{children:x(b)})}export{d as CardRowContext,Ar as CardRowDrawn,mr as CardTemplateRows,ur as RowEmptyGate,_r as useCardRow};
@@ -1 +1 @@
1
- import{Fragment as q,jsx as e,jsxs as de}from"react/jsx-runtime";import{useContext as Ht,useId as Vt}from"react";import Gt from"./BoxTabs.js";import{AccordionRowStyleContext as Fe,BoxTabPaneContext as Te,useAccordionRowStyle as Mt,useBoxPaneKind as Wt,useFirstCopyOpens as Xt,useIsTabPane as jt}from"./BoxTabPaneContext.js";import Kt,{ACCORDION_COUNTER_RESET as Ut}from"./BoxAccordionRow.js";import{ACCORDION_MARK_SHEET as Jt}from"./AccordionMark.js";import{accordionRowStyleOf as zt}from"../../format/lib/content/accordion-row-style.js";import{boxPhoneCell as Yt,boxPhoneOrder as qt}from"../../format/lib/content/box-phone-place.js";import{CellFillContext as os,InBoxContext as ss,useCellOfStretchedRow as Qt,useFillsCell as Zt}from"./InBoxContext.js";import er,{InsideSiteColumn as ts,useInsideSiteGutter as or,useSectionRoot as sr}from"./SiteGutterFrame.js";import{BoxSurfaceProvider as tr}from"./BoxSurfaceContext.js";import rr from"./PictureWash.js";import{BoxCellContext as rs,NoCellBound as nr}from"./BoxCellContext.js";import{boxCellFractions as lr}from"../lib/content/box-cell-bound.js";import{boundOf as ir}from"../../format/lib/content/cell-picture-sizes.js";import{useInSiteHeader as cr}from"./PhoneMenuTools.js";import{useCardRow as ar}from"./CardRowContext.js";import{cardLineBetween as De,framesItsCards as dr}from"../../format/lib/content/card-place.js";import{rowFieldText as ur}from"../../format/lib/content/card-template.js";import{HandedMirrorContext as mr,MirrorContext as fr,RowHandContext as ns,boxPlace as Cr,useHandedMirrorAbove as br,useHandedRows as hr,useMirroredCopy as Sr,useUnderCardBox as wr}from"./MirrorContext.js";import{boxChildrenHand as xr,isMirroredCopy as pr,mirrorCardsActs as ls,mirrorCardsOf as Pr,mirroredBoxClass as _r,MIRROR_ROW_CLASS as $r,ownsCard as Rr}from"../../format/lib/content/mirror-cards.js";import{FRAME_BASE as He,frameGutterOf as Or}from"./BlockFrame.js";import{BOX_SIDE_SPACE_SITE as yr,boxSideSpaceOf as Ar}from"../../format/lib/content/box-side-space.js";import{containerGapProps as is}from"../../format/lib/content/container-gap.js";import{boxLayoutClasses as vr,boxAlignViewClasses as Lr,boxBlockSpacingClass as kr,boxBlockSpacingViewClasses as Nr,boxJustifyViewClasses as Ir,boxWrapTabletClass as gr,boxFitContentClass as Br,boxAccordionColumnsClass as cs,boxRowColumnsClass as Er,boxRowTabletColumnsClass as Fr,boxRowTabletShareClass as Tr,boxPhoneCellsShareLine as Dr,boxPhoneRowClasses as Q,boxPhoneRowFits as Hr,boxShareClasses as M,boxShareVars as Vr,boxWrapClass as Gr,BOX_GAP_ONLY_CLASS as Mr}from"../../format/lib/content/box-layout.js";import{boxSeparatorClasses as Wr,boxSeparatorSeamClass as Xr,boxSeparatorStyle as jr,isStripBox as Kr}from"../../format/lib/content/box-separator.js";import{DEFAULT_LOOP_DELAY as Ur,DEFAULT_LOOP_DIRECTION as Jr,DEFAULT_LOOP_SECONDS as zr,isVerticalLoop as Yr}from"../../format/lib/animation/index.js";import{LoopTrack as qr}from"../lib/animation/LoopTrack.js";import{BOX_CARD_PAD as O,BOX_OWNS_SIDES_CLASS as Qr,boxDarkenStyle as Zr,boxPaintOf as en,boxFillViews as on,boxPlacementClasses as sn,boxCardProps as tn,boxIsCard as as,boxRowPicture as rn,boxSwatchFill as nn,boxWashViews as ln,CARD_SHADOW_CLASS as cn,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 an,boxShadowOnAnyView as dn,boxShadowViewAttrs as un}from"../../format/lib/content/box-shadow.js";import{boxRunsEdgeToEdge as mn,drawsSiteGutter as fn}from"../../format/lib/content/site-gutter.js";import{boxShapeClass as Cn,boxShapeClasses as bn}from"../../format/lib/content/box-shape.js";import{boxAngleStyle as hn}from"../../format/lib/content/box-angle.js";import{BOX_JUMP_ATTR as Sn,BOX_LINK_ATTR as us,BOX_LINK_CLASS as ms,BOX_LINKED_CLASS as wn,boxJumpBlocksClass as xn,boxJumpCss as pn,boxJumpSlug as Pn,boxLinkOf as _n}from"../../format/lib/content/box-link.js";import{SiteLink as $n}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 Rn}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 On,rowFillInkStyle as yn}from"../../format/lib/content/ink.js";import{sizedBackground as Ve}from"../../format/lib/sized-image.js";import{PHOTO_HOST_ATTR as An,resolveImageTreatment as vn}from"../../format/lib/content/image-treatment.js";import{BOX_HIGHLIGHT_CLASS as Ln,BOX_HIGHLIGHT_OVER_ROW_INK_CLASS as kn}from"../../format/lib/animation/hover.js";import{BoxRail as Nn,BoxRailStop as In,RAIL_STOPS_CLASS as gn,useTimelineRail as Bn}from"./TimelineRail.js";import{SHARED_PLAIN_ATTR as En,sharedColumnsClasses as Fn,sharedColumnsCss as Tn,sharedRowsClasses as Dn,sharedRowsCss as Hn}from"../lib/content/box-shared-columns.js";import Vn from"./PhotoHoverSheet.js";import{stackGutterClass as Gn,stackLineCss as Mn,stackOuterClass as Wn,stackRowClass as Xn,storedStackLine as jn}from"../lib/content/box-stack-line.js";const Ge={"--sf-site-gutter":"0px"},Kn={overflowX:"clip",overflowY:"visible"},Un={stretchedRow:!1,fillingColumn:!1,columnsRow:!1},Cs={desktop:!1,phone:!1},bs="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 Jn({children:u}){return e(q,{children:u(Vt())})}function zn({direction:u,label:hs,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:r={},contained:fe=!0,fillHeight:L=!1,shadow:Ce,shadowTablet:Ye,shadowPhone:qe,justifyTablet:Qe,justifyPhone:Bs,alignTablet:Es,alignPhone:Fs,wrapTablet:Ze,blockSpacingTablet:Ts,blockSpacingPhone:Ds,loop:b,scrollDirection:be=Jr,loopSeconds:Hs=zr,loopDelay:Vs=Ur,editing:F=!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:T,slotCount:et,mirrorCards:to,content:i,rowTitle:he,startsOpen:ot,rowStyle:st,sideSpace:tt}){const t=ar(),k=tn({[S]:Rs},t!==null)[S],ro=as({[S]:k}),c=ro?Cs:Qs,rt=ro?!1:Zs,no=rn({[S]:k},t?.row),p=no??_s,lo=no===null?$s:void 0,io=Ht(rs),nt=br(),co=wr()&&!(nt&&t!==null),P=hr(),_=Rr({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&&T?P.ids.indexOf(T):-1,ee=fo>=0&&P&&T?Cr(P,T,fo):-1,h=ee>=0?P?.hand??null:_&&P?.copies===!0?P.hand:null,o=h?.row?"row":u,d=h?.row?h.row.share:xs,lt=h?.row?h.row.phoneReverse?[...i.blockIds??[]].reverse():void 0:Ps,oe=rt&&!h?.row,D=F?"":_n(oo&&t?ur(t.row,oo):js),$=L?"":bn(so,Us,Js),it=!L&&Cn(so)!=="",N=Pn(Ys,qs),Se=nn({swatch:Ws},t?.row),se=Se??en(eo),H=Se?{className:"",style:{}}:on(eo,Gs,Ms),Co=yn(Se),bo=se||H.className?{...se?{backgroundColor:se}:{},...H.style,...Co}:void 0,ho=Bn(),te=x===!0&&o!=="tabs"&&o!=="accordion",n=as({bgImage:p,[S]:k}),So=hn(zs),wo=n?void 0:bo,re=n?null:Ks??null,ct=So||re?{...wo,...So,...re}:wo,ne=cr(),at=sr(),dt=jt(),xo=Wt(),ut=Mt(),mt=Xt(),l=o==="accordion",po=zt(st),j=l&&po==="numbered",we=Zt(),ft=Qt(),V=Kr(o,f),a=b==="scroll"&&o!=="tabs"&&!l,Ct=Sr(),le=_||ee>=0&&h!==null,Po=h?h.mirror:to,bt=ee>=0?ee:t?.index,xe=_&&dr(t?.ownerType),_o=ls({direction:o,separator:f,loop:b,line:x,bgImage:p,[S]:k,columns:m,columnsTablet:E,share:d,wrap:Z},le,c.desktop)&&pr(Po,bt),ht=ls({direction:o,separator:f,loop:b,line:x,bgImage:p,[S]:k,columns:m,columnsTablet:E,share:d,wrap:Z},le,c.desktop)&&Pr(Po)!==null,G=Er({direction:o,separator:f,loop:b,line:x,columns:m}),I=Fr({direction:o,separator:f,loop:b,line:x,columnsTablet:E}),K=Tr({direction:o,separator:f,loop:b,line:x,columns:m,columnsTablet:E,share:d,shareTablet:B}),ie=Ar(tt)===yr,pe=Or(ie),C=o==="row"&&!n&&!V&&!a&&!te&&I===""&&K===""?jn(je):void 0,St=or(),ce=Fn(c,i.blockCount??0,C),wt=(ce&&(!t||t.index===0)?Tn(c,i.blockCount??0,C):"")+(oe&&(!t||t.index===0)?Hn(oe,i.blockCount??0):""),$o=Dn(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?Yt(qt(lt,i.blockIds??[]),{editing:F}):void 0,Ao=Pe!==void 0&&!F,xt=G!==""?Number(m)>=2:M(d)!=="",vo=!n&&!l&&!ht&&!c.desktop&&!c.phone,ae=vo&&!a?Ir(W,Qe,Bs):"",_e=n||le?"":_r(Ct,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,Pt=vo&&o==="row"?Lr(v,Es,Fs):"",_t=!a&&!l&&G===""&&I===""&&!c.desktop?gr(Z,Ze):"",Lo=[l?"":M(d),o==="row"?Br(d):"",G,I,K,kr(l?"gap":Ke),Wr(o,f),l&&!j?"border-t border-line":"",pt,Pt,_t,l?"":Nr(Ke,Ts,Ds),l?cs(m,w,j):"",j?Ut:""].filter(Boolean).join(" "),$t=Lo?` ${Lo}`:"",ko=["flex",o==="row"?V||a?"flex-row":`flex-row ${Q(w,X,ps,Ze)}`:"flex-col",Gr(a||l?!1:Z),n?sn(ks??"center",o):vr(a||l?void 0:W,l?void 0:v)+(_e?` ${_e}`:"")].join(" ")+$t,U=L||n||$||we?` ${ue}`:"",$e=it?` ${$}`:$?`${U} ${$}`:U,No=ft&&o==="column"&&!n&&!a&&M(d)===""&&(typeof W=="string"&&W!=="start"||ae!==""),Io=U||(No?` ${ue}`:""),Re=D?` ${wn}`:"",Oe=n||ne||ze?"":" py-6",Rt=C===void 0?"":` ${Xn(C)}`,go=C===void 0||ie?"":` ${Gn(C)}`,ye=C===void 0?"":` ${Wn(C)}`,Ot=`${He}${Oe} ${pe}${$e}${Re}${go}${ye}`,yt=ne?`${$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=Vr(d,B,o==="row"?i.blockCount??0:0),Eo=V?{...J.style,...jr(o,f)}:J.style,At=Bo?{...Eo,...Bo}:Eo,Ae=(s="")=>e(i,{className:`${ko}${_o?` ${$r}`:""}${J.className}${Io}${Rt}${s?` ${s}`:""}${te?` ${gn}`:""}${N?` ${xn(N)}`:""}${ce}${$o}`,style:At,minEmptyHeight:120,...Pe?{cell:Pe}:null}),Fo=Yr(be)?"":Xr(o,f),To=a?e(qr,{direction:be,seconds:Hs,delay:Vs,editing:F,copy:s=>Ae(s&&Fo?`${s} ${Fo}`:s)}):j?de(q,{children:[e("style",{children:Jt}),Ae()]}):Ae(),ve=o==="tabs"?e(Gt,{className:`${ko}${J.className}${we&&!L&&!n&&!$?"":U}`,style:J.style,shape:Ss,children:To}):To,Le=l?e(Te.Provider,{value:"accordion",children:e(Fe.Provider,{value:po,children:ve})}):xo?e(Te.Provider,{value:!1,children:e(Fe.Provider,{value:"plain",children:ve})}):ve,Do=o==="row"&&!n&&(v===void 0||v==="stretch"),vt={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&&xt?{picturesFillRow:!0}:null,...Oo&&!Ro?{fillFrom:"desktop"}:null,...Dr(w,X)&&(!Oo||Ro)?{phoneRowFills:!0}:null,...T?{id:T}:null},Ho=t===null?xr({direction:o,loop:b,bgImage:p,[S]:k,columns:m,mirrorCards:to},!1):null,Vo=Ho?e(ns.Provider,{value:{hand:Ho,ids:i.blockIds??[],boxes:[]},children:Le}):P?e(ns.Provider,{value:null,children:Le}):Le,Go=e(ss.Provider,{value:vt,children:e(os.Provider,{value:!1,children:le?e(fr.Provider,{value:_o,children:e(mr.Provider,{value:!_,children:Vo})}):Vo})}),Lt=he?.blockCount??0,Mo=xo==="accordion"&&!!he&&(F||Lt>0)?e(Kt,{startsOpen:ot===!0||mt&&_&&t?.index===0,editing:F,numbered:ut==="numbered",title:e(ss.Provider,{value:Un,children:e(os.Provider,{value:!1,children:e(Te.Provider,{value:!1,children:e(Fe.Provider,{value:"plain",children:e(he,{className:`min-w-0 flex-1 ${Mr}`,minEmptyHeight:24})})})})}),children:Go}):Go,ke=te?e(Nn,{row:o==="row",stops:i.blockCount??0,children:Mo}):Mo,kt=hs?.trim()||(dt?"":void 0),Nt={values:r,frame:Oe?24:0},It=s=>ho?e(In,{on:ho,future:Xs===!0,children:s}):s,gt=s=>D.startsWith("/")?e($n,{href:D,className:ms,"aria-labelledby":s,[us]:""}):e("a",{href:D,className:ms,"aria-labelledby":s,[us]:""}),Wo=(N?pn(N):"")+wt+(C===void 0||t&&t.index!==0?"":Mn(C,{gutter:!ie})),Xo=Wo?e("style",{dangerouslySetInnerHTML:{__html:Wo}}):null,z=mn({loop:b,direction:o,scrollDirection:be,bgImage:p,[S]:k}),Bt=c.desktop&&ce!==""&&!se&&!H.className&&!fs(ao,mo,uo)&&!dn(Ce,Ye,qe)&&!D&&!$&&!L&&!N&&!fn(fe&&!z,St)&&We(Xe)&&(Me(me)||We(me))&&ze&&Object.values(r).every(s=>Me(s)||We(s)),Et=s=>({...Bt?{[En]:""}:null,...n?null:{...an(Ce),...un(Ce,Ye,qe)},...N?{[Sn]:N}:null,...s?{id:s}:null}),jo=G!==""?Number(m):0,Ft=Q(w,X)===Q(void 0),Tt=(o==="column"||o==="row"&&!V&&!a&&(jo===1&&Ft||jo===0&&i.blockCount===1))&&!n&&!te&&!ne,Ko=n&&at&&!ne,Uo=(s,R)=>It(e(er,{contained:fe&&!z,style:z?Ge:void 0,framedClass:Ot,fillClass:yt,columnClass:`${He} ${pe}${Io}${go}`,tabLabel:kt,pad:n?void 0:Nt,border:fs(ao,mo,uo),outerAttrs:Et(R),box:!0,edge:Tt,outerStyle:ct,outerClass:n?void 0:[H.className,re?Ln:"",re&&Co?kn:""].filter(Boolean).join(" ")||void 0,bleed:Ko,siteSide:ie,children:Xo||R?de(q,{children:[Xo,R?gt(R):null,z?e(ts,{children:s}):s]}):z?e(ts,{children:s}):s})),Ne=s=>D?e(Jn,{children:R=>Uo(s,R)}):Uo(s),Jo=s=>io.bound?e(nr,{children:s}):s;if(!n){const s=v===void 0||v==="stretch",R=(M(d)!==""||G!==""||I!=="")&&!Hr(w,X)&&!(K!==""&&M(B)==="")&&(s||Q(w)!==Q(void 0));if(!(o==="row"?R:o==="column"&&s))return Ne(Jo(ke));const es=lr({direction:o,separator:f,loop:b,line:x,share:d,shareTablet:B,sharePhone:X,phoneRow:w,columns:m,columnsTablet:E,stackBelow:je,shared:c.desktop||c.phone||oe,count:et}),Dt={hasWidth:!0,...es?{bound:ir(es,io.bound)}:null};return Ne(e(rs.Provider,{value:Dt,children:ke}))}const Ie=ds(p),Y=Ie?Zr(Ue,Je):null,ge=Ie?ln({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=vn(void 0,void 0,Os),g=qo.className?qo:null,Ee=Rn({...r,top:y(r.top)??A(O.desktop,r.unit,"desktop"),bottom:y(r.bottom)??A(O.desktop,r.unit,"desktop"),topPhone:y(r.topPhone)??A(O.phone,r.unitPhone,"mobile"),bottomPhone:y(r.bottomPhone)??A(O.phone,r.unitPhone,"mobile"),left:y(r.left)??A(O.side,r.unit,"desktop"),right:y(r.right)??A(O.side,r.unit,"desktop"),leftPhone:y(r.leftPhone)??A(O.sidePhone,r.unitPhone,"mobile"),rightPhone:y(r.rightPhone)??A(O.sidePhone,r.unitPhone,"mobile")}),Qo=e("div",{className:`relative z-[1] ${Qr} ${Ee?.className??""}${L||$?` ${ue}`:""}`.trimEnd(),style:Y?{...Ee?.style,...Ge,...On}:{...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 ${cn}${U}${Be&&!g?` ${bs}`:""}${H.className?` ${H.className}`:""}`,style:{...xe?Kn:{},...bo,...g?{}:Yo},...g?{[An]:""}:{},children:[g&&de(q,{children:[e(Vn,{sheet:g.sheet}),e("div",{"aria-hidden":!0,className:`absolute inset-0${xe?" rounded-[inherit]":""}${Be?` ${bs}`:""} ${g.className}`,style:{...Yo,...g.style??{}}})]}),e(rr,{wash:Y&&ge.className?{...Y,...ge.style}:Y,...zo?{className:zo}:{}}),Y?e(tr,{children:Zo}):Zo]})}))}export{zn as default};
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 +1 @@
1
- "use client";import{jsx as n,jsxs as D}from"react/jsx-runtime";import{HideTaker as Ce}from"./ViewHideRoot.js";import{useCallback as b,useEffect as w,useId as Pe,useRef as d,useState as k}from"react";import{markOverlayPortal as ee}from"../../format/lib/document/overlay-portal.js";import De from"./Ticker.js";import{HeroSlideStyleContext as Ie}from"./HeroSlide.js";import Ve from"./HeroArrows.js";import $e from"./Reel.js";import{TICKER_PART_ATTR as ze}from"./PreviewTickerContext.js";import{useReducedMotion as Be}from"./useReducedMotion.js";import{heroHeightBox as Xe,heroStoresRatio as Ge}from"../../format/lib/content/section-height.js";import{HEADER_HEIGHT_CSS as Ye}from"../lib/document/header-clearance.js";import{nextReel as je,normaliseHeroReelShape as qe,reelShown as Ke}from"../../format/lib/reel.js";import{arrowsShown as Fe,arrowStep as Je}from"../../format/lib/hero-arrows.js";import{swipeEnabled as Qe,swipeStep as Ue}from"../../format/lib/hero-swipe.js";import{videoControlShown as We,videoHeld as Ze}from"../../format/lib/hero-video-control.js";import{HERO_SLIDER_GOTO_EVENT as I}from"efficient-easel/draw";import{say as te}from"../../format/lib/editor-words.js";import{markedChildren as re}from"../../format/lib/marked-children.js";import{legacyTickerDrawn as et,TICKER_MOTION_PART as tt}from"../../format/lib/hero-ticker.js";import{ON_MEDIA_INK_STYLE as rt}from"../../format/lib/content/ink.js";import{SectionAnimation as ot}from"./SectionAnimation.js";import{entranceDrawn as nt}from"../lib/animation/entrance.js";import{readPartMotion as st}from"../lib/animation/part-motion.js";import{scrim as oe}from"../../format/lib/content/scrim.js";const ct="Play video",at="Hold video",lt="flex h-7 cursor-pointer items-center gap-1.5 rounded-full border border-overlay-chrome/25 bg-overlay-scrim/80 px-[11px] font-mono text-[11px] leading-none tracking-[0.05em] text-overlay-fg",it=()=>te("item"),ne=new Map;function ut(m,a){const i=m?.ownerDocument?.defaultView;if(i)return i.addEventListener(I,a),()=>i.removeEventListener(I,a)}function dt({slides:m,strip:a,alignment:i,textureOpacity:y,showTexture:E,textureColor:g,phoneUpDown:se,phoneSideways:ce,autoplay:V,autoplayInterval:O,showTicker:ae,tickerItems:$,heightDesktop:le,heightTablet:ie,heightMobile:ue,heightFixed:de,heightFixedTablet:me,heightFixedMobile:fe,showPicker:he,pickerShape:pe,pickerPlacement:be,showArrows:ve,arrowsShape:xe,arrowsPlacement:we,editing:s,partMotion:ke}){const z=Xe({heightDesktop:le,heightTablet:ie,heightMobile:ue,heightFixed:de,heightFixedTablet:me,heightFixedMobile:fe}),{className:ye,style:Ee}=z,H=Ge(z),B=(a?.blockCount??0)>0,ge=!B&&et({showTicker:ae,tickerItems:$}),X=($??[]).map(e=>e?.text?.trim()?e.text:s?it():"").filter(Boolean),_e=nt(st({_partMotion:ke},tt)),f=d(null),G=d(null),Y=d(null),j=d(null),q=Pe(),N=d(q),[_,Re]=k([]),[Te,K]=k(0),v=d(0),[F,J]=k(!1),[Se,Q]=k(null),[R,Oe]=k(!1),A=Be(),T=b(()=>f.current?.querySelector(".hero-track")??null,[]),u=b((e,t=!1)=>{K(e),Q(o=>o===e?o:null),v.current=e,ne.set(N.current,e);const r=f.current?.querySelector(".hero-track");if(r)if(t){const o=r.style.transition;r.style.transition="none",r.style.transform=`translateX(-${Math.max(0,e)*100}%)`,r.offsetHeight,r.style.transition=o}else r.style.transform=`translateX(-${Math.max(0,e)*100}%)`},[]);w(()=>{const e=f.current,t=e?.getAttribute("data-easel-block")||e?.closest("[data-easel-block]")?.getAttribute("data-easel-block")||q;N.current=t;const r=ne.get(t);typeof r=="number"&&(K(r),v.current=r)},[]),w(()=>{const e=T();if(!e)return;const t=()=>{Re(o=>je(o,re(e,"data-slide-name")))};t();const r=new MutationObserver(t);return r.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-slide-name","data-slide-process","data-slide-media"]}),()=>{r.disconnect()}},[T]),w(()=>{if(!s)return;const e=t=>{const r=t.detail;if(!r||typeof r.index!="number")return;const o=f.current,p=o?.getAttribute("data-easel-block")||o?.closest("[data-easel-block]")?.getAttribute("data-easel-block")||N.current;r.id&&r.id!==p||u(r.index,!0)};return ut(f.current,e)},[s,u]);const c=_.length,l=Math.min(Math.max(Te,0),Math.max(0,c-1)),M=Se===l,L=Ke({shown:he,count:c}),U=Fe({shown:ve,count:c}),W=We({editing:s,shown:l,slides:_}),He=Ze({editing:s,playing:R,controlShown:W}),S=Qe({count:c,editing:s}),h=d(null),x=d(null),Ne=b(e=>{if(h.current=null,x.current=null,!S||e.touches.length!==1)return;const t=e.touches[0];h.current={x:t.clientX,y:t.clientY},x.current={x:t.clientX,y:t.clientY}},[S]),Ae=b(e=>{if(!h.current)return;if(e.touches.length!==1){h.current=null;return}const t=e.touches[0];x.current={x:t.clientX,y:t.clientY}},[]),Me=b(()=>{const e=h.current,t=x.current;if(h.current=null,x.current=null,!S||!e||!t)return;const r=Ue(t.x-e.x,t.y-e.y,v.current,c);r!==v.current&&u(r)},[S,c,u]);w(()=>{if(s||!V||F||M||A||c<=1)return;const t=Math.max(1,typeof O=="number"?O:6)*1e3,r=window.setTimeout(()=>u((l+1)%c),t);return()=>window.clearTimeout(r)},[s,V,O,F,M,A,c,l,u]),w(()=>{const e=[G.current,Y.current,j.current].filter(Boolean),t=e.map(o=>ee(o)),r=o=>{const p=o.target,C=p.closest("[data-hero-nav]"),Z=C??p.closest("[data-idx]");if(!Z)return;o.stopPropagation(),o.preventDefault();const P=C?Je(C.dataset.heroNav,v.current,c):Number(Z.dataset.idx);Number.isNaN(P)||(u(P,s),re(T(),"data-slide-name")[P]?.click())};return e.forEach(o=>o.addEventListener("click",r,{capture:!0})),()=>{t.forEach(o=>o?.()),e.forEach(o=>o.removeEventListener("click",r,{capture:!0}))}},[c,u,T,s]);const Le=b(e=>{if(!e)return;const t=ee(e),r=o=>{o.stopPropagation(),o.preventDefault(),Oe(p=>!p)};return e.addEventListener("click",r,{capture:!0}),()=>{t?.(),e.removeEventListener("click",r,{capture:!0})}},[]);return n(Ie.Provider,{value:{alignment:i,textureOpacity:y,textureOn:E,textureColor:g,quietVideo:He,phoneUpDown:se,phoneSideways:ce,holdReel:()=>Q(l),reelHeld:M,shownSlide:l,ratioMin:H},children:D(Ce,{ref:f,className:`relative mx-[var(--sf-hero-bleed-m,calc(50%_-_50vw))] w-[var(--sf-hero-bleed-w,100vw)] ${ye} max-w-[var(--sf-hero-cap,none)] ${H?"overflow-clip":"overflow-hidden"}`,style:Ee,onMouseEnter:()=>J(!0),onMouseLeave:()=>J(!1),onTouchStart:Ne,onTouchMove:Ae,onTouchEnd:Me,children:[n(m,{className:H?"hero-track flex min-h-full [&>*]:min-h-full [&>*]:min-w-full [&>*]:shrink-0 [&>*]:basis-full":"hero-track flex h-full [&>*]:h-full [&>*]:min-w-full [&>*]:shrink-0 [&>*]:basis-full",style:{transform:`translateX(-${l*100}%)`,transition:A?"none":"transform 600ms cubic-bezier(.22,.61,.36,1)"},minEmptyHeight:400}),W&&n("div",{ref:Le,"data-hero-video-control":R?"playing":"held",className:"sf-hero-video-control absolute left-6 z-[7]",style:{top:`calc(${Ye} + 16px)`},children:D("button",{type:"button",className:lt,children:[n("span",{"aria-hidden":"true",children:R?"❚❚":"▶"}),te(R?at:ct)]})}),(L||U)&&D("div",{className:"pointer-events-none absolute inset-y-0 left-[var(--sf-hero-chrome-x,var(--sf-site-gutter,40px))] right-[var(--sf-hero-chrome-x,var(--sf-site-gutter,40px))] z-[6] mx-auto max-w-[var(--sf-hero-chrome-cap,calc(var(--sf-site-width,1600px)_-_var(--sf-site-gutter,40px)*2))]",children:[L&&n($e,{ref:G,slides:_,active:l,shape:qe(pe),placement:be}),U&&n(Ve,{ref:j,shape:xe,placement:we})]}),L&&n("div",{ref:Y,className:"sf-hero-phone-dots absolute bottom-[80px] left-1/2 z-[6] hidden -translate-x-1/2 items-center gap-2",children:_.map((e,t)=>n("button",{type:"button","data-idx":t,"aria-label":`Go to slide ${t+1}`,className:`h-2 rounded-full transition-all motion-reduce:transition-none ${t===l?"w-5 bg-accent":"w-2 bg-white/45 hover:bg-white/70"}`},t))}),B&&a&&n("div",{className:"sf-hero-strip absolute inset-x-0 bottom-0 z-[5] border-t border-overlay-chrome/10",style:{background:oe(.55),...rt},children:n(a,{})}),ge&&X.length>0&&n(mt,{editing:!!s,entrance:_e,children:n(De,{items:X,backdrop:"dark-media"})})]})})}function mt({editing:m,entrance:a,children:i}){const y="sf-hero-ticker absolute inset-x-0 bottom-0 z-[5] border-t border-overlay-chrome/10 py-3.5",E=m?{[ze]:""}:void 0,g={background:oe(.55)};return a?n(ot,{desktop:a.desktop,phone:a.phone,editing:m,boxClass:y,boxAttrs:E,boxStyle:g,children:i}):n("div",{className:y,...E,style:g,children:i})}export{I as HERO_SLIDER_GOTO_EVENT,at as HERO_VIDEO_HOLD_LABEL,ct as HERO_VIDEO_PLAY_LABEL,dt as default,ut as subscribeSliderGoto};
1
+ "use client";import{jsx as n,jsxs as V}from"react/jsx-runtime";import{HideTaker as Pe}from"./ViewHideRoot.js";import{useCallback as v,useEffect as w,useId as De,useRef as d,useState as k}from"react";import{markOverlayPortal as te}from"../../format/lib/document/overlay-portal.js";import Ie from"./Ticker.js";import{HeroSlideStyleContext as Ve}from"./HeroSlide.js";import $e from"./HeroArrows.js";import ze from"./Reel.js";import{TICKER_PART_ATTR as Be}from"./PreviewTickerContext.js";import{useReducedMotion as Xe}from"./useReducedMotion.js";import{heroHeightBox as Ge,heroStoresRatio as Ye}from"../../format/lib/content/section-height.js";import{HEADER_HEIGHT_CSS as je}from"../lib/document/header-clearance.js";import{nextReel as qe,normaliseHeroReelShape as Ke,reelShown as Fe}from"../../format/lib/reel.js";import{arrowsShown as Je,arrowStep as Qe}from"../../format/lib/hero-arrows.js";import{swipeEnabled as Ue,swipeStep as We}from"../../format/lib/hero-swipe.js";import{videoControlShown as Ze,videoHeld as et}from"../../format/lib/hero-video-control.js";import{HERO_SLIDER_GOTO_EVENT as $}from"efficient-easel/draw";import{say as re}from"../../format/lib/editor-words.js";import{markedChildren as oe}from"../../format/lib/marked-children.js";import{legacyTickerDrawn as tt,TICKER_MOTION_PART as rt}from"../../format/lib/hero-ticker.js";import{ON_MEDIA_INK_STYLE as ot}from"../../format/lib/content/ink.js";import{SectionAnimation as nt}from"./SectionAnimation.js";import{entranceDrawn as st}from"../lib/animation/entrance.js";import{readPartMotion as ct}from"../lib/animation/part-motion.js";import{scrim as ne}from"../../format/lib/content/scrim.js";const at="Play video",lt="Hold video",it="flex h-7 cursor-pointer items-center gap-1.5 rounded-full border border-overlay-chrome/25 bg-overlay-scrim/80 px-[11px] font-mono text-[11px] leading-none tracking-[0.05em] text-overlay-fg",ut=()=>re("item"),se=new Map;function dt(m,a){const i=m?.ownerDocument?.defaultView;if(i)return i.addEventListener($,a),()=>i.removeEventListener($,a)}function mt({slides:m,strip:a,alignment:i,textureOpacity:y,showTexture:E,textureColor:g,phoneUpDown:ce,phoneSideways:ae,autoplay:z,autoplayInterval:O,showTicker:le,tickerItems:B,heightDesktop:ie,heightTablet:ue,heightMobile:de,heightFixed:me,heightFixedTablet:fe,heightFixedMobile:he,showPicker:pe,pickerShape:ve,pickerPlacement:be,showArrows:xe,arrowsShape:we,arrowsPlacement:ke,editing:s,partMotion:ye}){const X=Ge({heightDesktop:ie,heightTablet:ue,heightMobile:de,heightFixed:me,heightFixedTablet:fe,heightFixedMobile:he}),{className:Ee,style:ge}=X,H=Ye(X),G=(a?.blockCount??0)>0,_e=!G&&tt({showTicker:le,tickerItems:B}),Y=(B??[]).map(e=>e?.text?.trim()?e.text:s?ut():"").filter(Boolean),Re=st(ct({_partMotion:ye},rt)),f=d(null),j=d(null),q=d(null),N=d(null),K=De(),A=d(K),[_,Te]=k([]),[Se,F]=k(0),b=d(0),[J,Q]=k(!1),[Oe,U]=k(null),[R,He]=k(!1),M=Xe(),T=v(()=>f.current?.querySelector(".hero-track")??null,[]),u=v((e,t=!1)=>{F(e),U(o=>o===e?o:null),b.current=e,se.set(A.current,e);const r=f.current?.querySelector(".hero-track");if(r)if(t){const o=r.style.transition;r.style.transition="none",r.style.transform=`translateX(-${Math.max(0,e)*100}%)`,r.offsetHeight,r.style.transition=o}else r.style.transform=`translateX(-${Math.max(0,e)*100}%)`},[]);w(()=>{const e=f.current,t=e?.getAttribute("data-easel-block")||e?.closest("[data-easel-block]")?.getAttribute("data-easel-block")||K;A.current=t;const r=se.get(t);typeof r=="number"&&(F(r),b.current=r)},[]),w(()=>{const e=T();if(!e)return;const t=()=>{Te(o=>qe(o,oe(e,"data-slide-name")))};t();const r=new MutationObserver(t);return r.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-slide-name","data-slide-process","data-slide-media"]}),()=>{r.disconnect()}},[T]),w(()=>{if(!s)return;const e=t=>{const r=t.detail;if(!r||typeof r.index!="number")return;const o=f.current,p=o?.getAttribute("data-easel-block")||o?.closest("[data-easel-block]")?.getAttribute("data-easel-block")||A.current;r.id&&r.id!==p||u(r.index,!0)};return dt(f.current,e)},[s,u]);const c=_.length,l=Math.min(Math.max(Se,0),Math.max(0,c-1)),L=Oe===l,C=Fe({shown:pe,count:c}),W=Je({shown:xe,count:c}),Z=Ze({editing:s,shown:l,slides:_}),Ne=et({editing:s,playing:R,controlShown:Z}),S=Ue({count:c,editing:s}),h=d(null),x=d(null),Ae=v(e=>{if(h.current=null,x.current=null,!S||e.touches.length!==1)return;const t=e.touches[0];h.current={x:t.clientX,y:t.clientY},x.current={x:t.clientX,y:t.clientY}},[S]),Me=v(e=>{if(!h.current)return;if(e.touches.length!==1){h.current=null;return}const t=e.touches[0];x.current={x:t.clientX,y:t.clientY}},[]),Le=v(()=>{const e=h.current,t=x.current;if(h.current=null,x.current=null,!S||!e||!t)return;const r=We(t.x-e.x,t.y-e.y,b.current,c);r!==b.current&&u(r)},[S,c,u]);w(()=>{if(s||!z||J||L||M||c<=1)return;const t=Math.max(1,typeof O=="number"?O:6)*1e3,r=window.setTimeout(()=>u((l+1)%c),t);return()=>window.clearTimeout(r)},[s,z,O,J,L,M,c,l,u]),w(()=>{const e=[j.current,q.current,N.current].filter(Boolean),t=e.map(o=>te(o)),r=o=>{const p=o.target,P=p.closest("[data-hero-nav]");if(P&&!N.current?.contains(P))return;const D=P,ee=D??p.closest("[data-idx]");if(!ee)return;o.stopPropagation(),o.preventDefault();const I=D?Qe(D.dataset.heroNav,b.current,c):Number(ee.dataset.idx);Number.isNaN(I)||(u(I,s),oe(T(),"data-slide-name")[I]?.click())};return e.forEach(o=>o.addEventListener("click",r,{capture:!0})),()=>{t.forEach(o=>o?.()),e.forEach(o=>o.removeEventListener("click",r,{capture:!0}))}},[c,u,T,s]);const Ce=v(e=>{if(!e)return;const t=te(e),r=o=>{o.stopPropagation(),o.preventDefault(),He(p=>!p)};return e.addEventListener("click",r,{capture:!0}),()=>{t?.(),e.removeEventListener("click",r,{capture:!0})}},[]);return n(Ve.Provider,{value:{alignment:i,textureOpacity:y,textureOn:E,textureColor:g,quietVideo:Ne,phoneUpDown:ce,phoneSideways:ae,holdReel:()=>U(l),reelHeld:L,shownSlide:l,ratioMin:H},children:V(Pe,{ref:f,className:`relative mx-[var(--sf-hero-bleed-m,calc(50%_-_50vw))] w-[var(--sf-hero-bleed-w,100vw)] ${Ee} max-w-[var(--sf-hero-cap,none)] ${H?"overflow-clip":"overflow-hidden"}`,style:ge,onMouseEnter:()=>Q(!0),onMouseLeave:()=>Q(!1),onTouchStart:Ae,onTouchMove:Me,onTouchEnd:Le,children:[n(m,{className:H?"hero-track flex min-h-full [&>*]:min-h-full [&>*]:min-w-full [&>*]:shrink-0 [&>*]:basis-full":"hero-track flex h-full [&>*]:h-full [&>*]:min-w-full [&>*]:shrink-0 [&>*]:basis-full",style:{transform:`translateX(-${l*100}%)`,transition:M?"none":"transform 600ms cubic-bezier(.22,.61,.36,1)"},minEmptyHeight:400}),Z&&n("div",{ref:Ce,"data-hero-video-control":R?"playing":"held",className:"sf-hero-video-control absolute left-6 z-[7]",style:{top:`calc(${je} + 16px)`},children:V("button",{type:"button",className:it,children:[n("span",{"aria-hidden":"true",children:R?"❚❚":"▶"}),re(R?lt:at)]})}),(C||W)&&V("div",{className:"pointer-events-none absolute inset-y-0 left-[var(--sf-hero-chrome-x,var(--sf-site-gutter,40px))] right-[var(--sf-hero-chrome-x,var(--sf-site-gutter,40px))] z-[6] mx-auto max-w-[var(--sf-hero-chrome-cap,calc(var(--sf-site-width,1600px)_-_var(--sf-site-gutter,40px)*2))]",children:[C&&n(ze,{ref:j,slides:_,active:l,shape:Ke(ve),placement:be}),W&&n($e,{ref:N,shape:we,placement:ke})]}),C&&n("div",{ref:q,className:"sf-hero-phone-dots absolute bottom-[80px] left-1/2 z-[6] hidden -translate-x-1/2 items-center gap-2",children:_.map((e,t)=>n("button",{type:"button","data-idx":t,"aria-label":`Go to slide ${t+1}`,className:`h-2 rounded-full transition-all motion-reduce:transition-none ${t===l?"w-5 bg-accent":"w-2 bg-white/45 hover:bg-white/70"}`},t))}),G&&a&&n("div",{className:"sf-hero-strip absolute inset-x-0 bottom-0 z-[5] border-t border-overlay-chrome/10",style:{background:ne(.55),...ot},children:n(a,{})}),_e&&Y.length>0&&n(ft,{editing:!!s,entrance:Re,children:n(Ie,{items:Y,backdrop:"dark-media"})})]})})}function ft({editing:m,entrance:a,children:i}){const y="sf-hero-ticker absolute inset-x-0 bottom-0 z-[5] border-t border-overlay-chrome/10 py-3.5",E=m?{[Be]:""}:void 0,g={background:ne(.55)};return a?n(nt,{desktop:a.desktop,phone:a.phone,editing:m,boxClass:y,boxAttrs:E,boxStyle:g,children:i}):n("div",{className:y,...E,style:g,children:i})}export{$ as HERO_SLIDER_GOTO_EVENT,lt as HERO_VIDEO_HOLD_LABEL,at as HERO_VIDEO_PLAY_LABEL,mt as default,dt as subscribeSliderGoto};
@@ -1,7 +1,13 @@
1
1
  import { type ImageAspect } from "../../format/lib/content/image-aspect.js";
2
2
  import { type ImageFit } from "../../format/lib/content/image-fit.js";
3
- import type { PictureHoverDrawn } from "../../format/lib/animation/hover.js";
3
+ import type { HoverMediaCover, PictureHoverDrawn } from "../../format/lib/animation/hover.js";
4
+ import type { HoverMediaPick } from "../../format/lib/content/hover-media.js";
4
5
  import type { PadValues } from "../lib/content/section-padding.js";
6
+ export type ImageHoverLayer = {
7
+ media: HoverMediaPick;
8
+ name: string;
9
+ cover: HoverMediaCover;
10
+ };
5
11
  interface ImageBlockProps {
6
12
  editing?: boolean;
7
13
  src: string;
@@ -12,7 +18,7 @@ interface ImageBlockProps {
12
18
  contained: boolean;
13
19
  grayscale?: boolean;
14
20
  pictureHover?: PictureHoverDrawn;
15
- nextSrc?: string;
21
+ hoverLayer?: ImageHoverLayer | null;
16
22
  darken?: number;
17
23
  darkenStyle?: string;
18
24
  href?: string;
@@ -25,5 +31,5 @@ interface ImageBlockProps {
25
31
  pad?: PadValues;
26
32
  ownSize?: boolean;
27
33
  }
28
- export default function ImageBlock({ src, alt, aspect: storedAspect, aspectPhone, contained, grayscale, pictureHover, nextSrc, darken, darkenStyle, href, fit, focal, focalPhone, focalTablet, corners, cornerSides, pad, ownSize, editing, }: ImageBlockProps): import("react").JSX.Element | null;
34
+ export default function ImageBlock({ src, alt, aspect: storedAspect, aspectPhone, contained, grayscale, pictureHover, hoverLayer, darken, darkenStyle, href, fit, focal, focalPhone, focalTablet, corners, cornerSides, pad, ownSize, editing, }: ImageBlockProps): import("react").JSX.Element | null;
29
35
  export {};
@@ -1 +1 @@
1
- import{jsx as e,Fragment as w,jsxs as O}from"react/jsx-runtime";import{PagePicture as fe}from"../lib/first-screen.js";import{SiteLink as ue}from"../lib/site-runtime.js";import de from"./BlockFrame.js";import{useCellPictureSizes as he}from"./BoxCellContext.js";import{useBoxCell as pe,useFillsCell as ge}from"./InBoxContext.js";import{useInsideSiteGutter as Se,useSectionEdge as Ce}from"./SiteGutterFrame.js";import{useSitePhotography as Ne}from"./SitePhotographyContext.js";import{media as T}from"../lib/media.js";import{CONTENT_SIZES as j,sizedImage as W}from"../../format/lib/sized-image.js";import{imageCornerStyle as ye}from"../../format/lib/content/image-corners.js";import{FILL_ROW as Fe,imageAspectClasses as we,imageFillFrom as be,imageAspectDrawn as $e,imageAspectDrawsARatio as Ae,imageFocalPointActs as _e,imageFocalPointActsIn as B,imageAspectPhoneOf as xe,imageFillRowClasses as Ie,imageWidthFollowsBox as ke}from"../../format/lib/content/image-aspect.js";import{drawsSiteGutter as ve}from"../../format/lib/content/site-gutter.js";import{imageFitClass as U,parseImageFit as Re}from"../../format/lib/content/image-fit.js";import{SECTION_FILL_CLASS as ze}from"../../format/lib/content/section-min-height.js";import{NEXT_PICTURE_CLASS as Ee,PICTURE_FRAME_CLASS as Le,PICTURE_WASH_CLASS as Pe,PICTURE_ZOOM_CLASS as Oe,PICTURE_ZOOM_VAR as Te,resolveImageTreatment as je,resolveNextPicture as We}from"../../format/lib/content/image-treatment.js";import{boxDarkenStyle as G}from"../../format/lib/content/box-background.js";import{phoneFocus as Be}from"../../format/lib/content/phone-focus.js";import{say as Ue}from"../../format/lib/editor-words.js";import{sectionEdgeAttrs as Ge}from"../lib/content/section-edge.js";import D from"./PhotoHoverSheet.js";import De from"./PictureWash.js";function Me({src:o,alt:M,aspect:Z,aspectPhone:r,contained:b,grayscale:V,pictureHover:i,nextSrc:$,darken:X,darkenStyle:A,href:q,fit:J,focal:_,focalPhone:K,focalTablet:Q,corners:Y,cornerSides:H,pad:x,ownSize:ee=!1,editing:I=!1}){const c=je(V,Ne(),i),S=pe(),se=ge(),C=Ce(),te=he(j),t=$e(Z,S?.picturesFillRow===!0),f=t===Fe,k=be(S?.fillFrom,S?.phoneRowFills===!0,r),u=f?Ie(k):null,v=xe(t,r),l=Re(J,"cover"),R=C||!ke(t,v,l)?j:te,z=ye(Y,H),le=_e(l,t,r),a=Be(B("mobile",l,t,r)?K:void 0,B("tablet",l,t,r)?Q:void 0),d={...c.style??{},..._&&le?{objectPosition:_}:{},...a.style},h=o?W(T(o)):null,s=We(i),n=s&&$?W(T($)):null,p=s?i?.zoom??null:null,oe=G(X,A),E=s&&i?.darken?G(i.darken,A):null,N=!!(s&&(n||p||E)),L=N?{...s?.style??{},...p?{[Te]:p}:{}}:{},re=s&&n?e(w,{children:e("img",{src:n.src,...n.srcSet?{srcSet:n.srcSet,sizes:R}:{},alt:"","aria-hidden":"true",loading:"lazy",decoding:"async",className:`absolute inset-0 h-full w-full bg-surface ${U(l)}${a.className?` ${a.className}`:""} ${s.className}`,...Object.keys(d).length?{style:d}:{}})}):null,y=o&&h?O(w,{children:[e(fe,{src:h.src,...h.srcSet?{srcSet:h.srcSet,sizes:R}:{},alt:M,className:`${u?`${u.img} `:""}h-full w-full ${Ae(t,r)?U(l):""}${c.className?` ${c.className}`:""}${a.className?` ${a.className}`:""}`,...Object.keys(d).length?{style:d}:{}}),re]}):null,F=y?O(w,{children:[e(D,{sheet:c.sheet}),N&&s?e(D,{sheet:s.sheet,name:Ee}):null,p?e("div",{className:`${f?"absolute inset-0":"relative h-full w-full"} ${Oe}`,children:y}):y,e(De,{wash:oe,hover:E,className:`pointer-events-none ${Pe}`})]}):e("div",{className:"flex aspect-[16/9] items-center justify-center border border-dashed border-line font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.2em] text-fg-dim",children:Ue("Image — set a path")}),g=(q??"").trim(),ie=g&&o?g.startsWith("/")?e(ue,{href:g,className:"block h-full w-full",children:F}):e("a",{href:g,className:"block h-full w-full",children:F}):F,ae=Se(),m=C&&!ee?Ge(C):null,P=x?{values:x,frame:f?0:24}:void 0,ne=P!==void 0&&ve(m?!1:b,ae),me=f?se||I||ne?ze:"":"py-6",ce=o&&l==="contain"?"":"bg-surface ";return!o&&!I?null:e(de,{contained:m?!1:b,className:me,pad:P,...m?{fillWidth:m.className,style:m.style}:{},children:e("figure",{...u?{className:u.figure}:{},children:e("div",{className:`relative w-full overflow-hidden ${ce}${we(t,v,k)}${N?` ${Le}`:""}`,...z||Object.keys(L).length?{style:{...z,...L}}:{},children:ie})})})}export{Me as default};
1
+ import{jsx as e,Fragment as re,jsxs as w}from"react/jsx-runtime";import{PagePicture as ie}from"../lib/first-screen.js";import{SiteLink as ae}from"../lib/site-runtime.js";import ne from"./BlockFrame.js";import{useCellPictureSizes as me}from"./BoxCellContext.js";import{useBoxCell as ce,useFillsCell as fe}from"./InBoxContext.js";import{useInsideSiteGutter as ue,useSectionEdge as de}from"./SiteGutterFrame.js";import{useSitePhotography as pe}from"./SitePhotographyContext.js";import{media as ge}from"../lib/media.js";import{CONTENT_SIZES as O,sizedImage as he}from"../../format/lib/sized-image.js";import{imageCornerStyle as Se}from"../../format/lib/content/image-corners.js";import{FILL_ROW as Ce,imageAspectClasses as Fe,imageFillFrom as Ne,imageAspectDrawn as we,imageAspectDrawsARatio as be,imageFocalPointActs as ve,imageFocalPointActsIn as P,imageAspectPhoneOf as _e,imageFillRowClasses as Ae,imageWidthFollowsBox as Ie}from"../../format/lib/content/image-aspect.js";import{drawsSiteGutter as $e}from"../../format/lib/content/site-gutter.js";import{imageFitClass as xe,parseImageFit as ye}from"../../format/lib/content/image-fit.js";import{SECTION_FILL_CLASS as Ee}from"../../format/lib/content/section-min-height.js";import{PICTURE_MOVE_SHEET as Re,PICTURE_WASH_CLASS as ke,PICTURE_ZOOM_CLASS as Oe,PICTURE_ZOOM_VAR as Pe,resolveImageTreatment as ze,resolvePictureMove as Te}from"../../format/lib/content/image-treatment.js";import{boxDarkenStyle as z}from"../../format/lib/content/box-background.js";import{phoneFocus as je}from"../../format/lib/content/phone-focus.js";import{say as We}from"../../format/lib/editor-words.js";import{sectionEdgeAttrs as Ge}from"../lib/content/section-edge.js";import T from"./PhotoHoverSheet.js";import Le from"./PictureWash.js";import Me from"./HoverMediaLayer.js";const Ue={picture:"var(--surface)",card:"var(--card-bg)"};function Be({src:l,alt:j,aspect:W,aspectPhone:r,contained:b,grayscale:G,pictureHover:a,hoverLayer:o,darken:L,darkenStyle:v,href:M,fit:U,focal:_,focalPhone:B,focalTablet:D,corners:Z,cornerSides:V,pad:A,ownSize:H=!1,editing:I=!1}){const m=ze(G,pe(),a),g=ce(),Y=fe(),h=de(),q=me(O),t=we(W,g?.picturesFillRow===!0),c=t===Ce,$=Ne(g?.fillFrom,g?.phoneRowFills===!0,r),f=c?Ae($):null,x=_e(t,r),i=ye(U,"cover"),J=h||!Ie(t,x,i)?O:q,y=Se(Z,V),K=ve(i,t,r),S=je(P("mobile",i,t,r)?B:void 0,P("tablet",i,t,r)?D:void 0),E={...m.style??{},..._&&K?{objectPosition:_}:{},...S.style},u=l?he(ge(l)):null,s=Te(a),C=s?a?.zoom??null:null,Q=z(L,v),X=s&&a?.darken?z(a.darken,v):null,R=s?{...s.style??{},...C?{[Pe]:C}:{}}:{},d=o&&l?e(Me,{media:o.media,name:o.name,cover:o.cover,ground:Ue[o.cover]}):null,F=l&&u?e(ie,{src:u.src,...u.srcSet?{srcSet:u.srcSet,sizes:J}:{},alt:j,className:`${f?`${f.img} `:""}h-full w-full ${be(t,r)?xe(i):""}${m.className?` ${m.className}`:""}${S.className?` ${S.className}`:""}`,...Object.keys(E).length?{style:E}:{}}):null,N=F?w(re,{children:[e(T,{sheet:m.sheet}),s?e(T,{sheet:s.sheet,name:Re}):null,C?e("div",{className:`${c?"absolute inset-0":"relative h-full w-full"} ${Oe}`,children:F}):F,e(Le,{wash:Q,hover:X,className:`pointer-events-none ${ke}`})]}):e("div",{className:"flex aspect-[16/9] items-center justify-center border border-dashed border-line font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.2em] text-fg-dim",children:We("Image — set a path")}),p=(M??"").trim(),ee=p&&l?p.startsWith("/")?e(ae,{href:p,className:"block h-full w-full",children:N}):e("a",{href:p,className:"block h-full w-full",children:N}):N,te=ue(),n=h&&!H?Ge(h):null,k=A?{values:A,frame:c?0:24}:void 0,se=k!==void 0&&$e(n?!1:b,te),le=c?Y||I||se?Ee:"":"py-6",oe=l&&i==="contain"?"":"bg-surface ";return!l&&!I?null:w(ne,{contained:n?!1:b,className:le,pad:k,...n?{fillWidth:n.className,style:n.style}:{},children:[e("figure",{...f?{className:f.figure}:{},children:w("div",{className:`relative w-full overflow-hidden ${oe}${Fe(t,x,$)}${s?` ${s.className}`:""}`,...y||Object.keys(R).length?{style:{...y,...R}}:{},children:[ee,d&&o?.cover==="picture"?d:null]})}),d&&o?.cover==="card"?d:null]})}export{Be as default};
@@ -0,0 +1,6 @@
1
+ import { type ReactNode } from "react";
2
+ export declare function useThemeLightInk(): string | null;
3
+ export declare function ThemeLightInkProvider({ ink, children }: {
4
+ ink?: string | null;
5
+ children?: ReactNode;
6
+ }): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ "use client";import{jsx as n}from"react/jsx-runtime";import{createContext as o,useContext as i}from"react";const e=o(null);function s(){return i(e)}function x({ink:t,children:r}){return n(e.Provider,{value:t??null,children:r})}export{x as ThemeLightInkProvider,s as useThemeLightInk};
@@ -1 +1 @@
1
- import{jsx as l}from"react/jsx-runtime";import{phoneKey as h}from"efficient-easel/draw";import{CardRowDrawn as p}from"../../../../../components/CardRowContext.js";import w from"../../../../../components/ImageBlock.js";import{recordPictureAlt as S}from"../../../../../../format/lib/content/record-row.js";import{namedRowField as x,rowFieldSpec as B,rowFieldText as I,rowNextPicture as b}from"../../../../../../format/lib/content/card-template.js";import{blockSizeOf as F,blockSizeValuesOf as O}from"../../../../content/block-size.js";import{padValuesOf as P}from"../../../../content/section-padding.js";import{pictureHoverOf as v}from"../../../../../../format/lib/animation/hover.js";import{viewFocusValues as z}from"../../../../../../format/lib/content/picture-focus-rows.js";import{ImageBlockMeta as R}from"../../../../../../format/lib/document/blocks/general/ImageBlock/meta.js";const _={...R,render:e=>{const t=x(e);return t?l(p,{type:"ImageBlock",props:e,children:(o,r,a)=>{const c=B(r,t),i=r?c?.alt:S(t);return m(e,o.src,(i&&I(a,i))??e.alt,b(r?.item,c?.next,typeof o.src=="string"?o.src:""))}}):m(e,e.src,e.alt)}};function m(e,t,o,r=""){const{aspect:a,contained:c,grayscale:i,darken:f,darkenStyle:d,href:s,fit:u,corners:k,cornerSides:g,editor:y}=e,n=z(e,"focal");return l(w,{src:t,alt:o,aspect:a,aspectPhone:e[h("aspect")],contained:c,grayscale:i,darken:f,darkenStyle:d,pictureHover:v(e,"ImageBlock"),...r?{nextSrc:r}:{},href:s,fit:u,focal:n.desktop,focalPhone:n.phone,focalTablet:n.tablet,corners:k,cornerSides:g,pad:P(e),ownSize:F(O(e))!==null,editing:y?.isEditing===!0})}export{_ as ImageBlockRender};
1
+ import{jsx as u}from"react/jsx-runtime";import{phoneKey as y}from"efficient-easel/draw";import{CardRowDrawn as p}from"../../../../../components/CardRowContext.js";import v from"../../../../../components/ImageBlock.js";import{recordPictureAlt as I}from"../../../../../../format/lib/content/record-row.js";import{namedRowField as x,rowFieldSpec as B,rowFieldText as k}from"../../../../../../format/lib/content/card-template.js";import{cardRowHoverMedia as b}from"../../../../../../format/lib/content/hover-media.js";import{blockSizeOf as F,blockSizeValuesOf as O}from"../../../../content/block-size.js";import{padValuesOf as R}from"../../../../content/section-padding.js";import{pictureHoverOf as z}from"../../../../../../format/lib/animation/hover.js";import{viewFocusValues as H}from"../../../../../../format/lib/content/picture-focus-rows.js";import{ImageBlockMeta as P}from"../../../../../../format/lib/document/blocks/general/ImageBlock/meta.js";const J={...P,render:e=>{const r=z(e,"ImageBlock"),o=x(e);return!o&&r.kind!=="nextImage"?g(e,e.src,e.alt,r):u(p,{type:"ImageBlock",props:e,children:(l,t,n)=>{const m=o?B(t,o):null,a=o?t?m?.alt:I(o):null,d=o?l.src:e.src,c=(a&&k(n,a))??e.alt,i=r.media?b(t,r.media):null,f=k(n,"name")??(typeof c=="string"?c:"");return g(e,d,c,r,i&&r.media?{media:i,name:f,cover:r.media.cover}:null)}})}};function g(e,r,o,l,t=null){const{aspect:n,contained:m,grayscale:a,darken:d,darkenStyle:c,href:i,fit:f,corners:w,cornerSides:S,editor:h}=e,s=H(e,"focal");return u(v,{src:r,alt:o,aspect:n,aspectPhone:e[y("aspect")],contained:m,grayscale:a,darken:d,darkenStyle:c,pictureHover:l,...t?{hoverLayer:t}:{},href:i,fit:f,focal:s.desktop,focalPhone:s.phone,focalTablet:s.tablet,corners:w,cornerSides:S,pad:R(e),ownSize:F(O(e))!==null,editing:h?.isEditing===!0})}export{J as ImageBlockRender};