efficient-web-builder 58.0.0 → 59.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 (76) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/editor/lib/document/ColourControl.js +1 -1
  3. package/dist/editor/lib/document/blocks/general/CardList/fields.js +1 -1
  4. package/dist/editor/lib/document/blocks/general/Cards/fields.js +1 -1
  5. package/dist/editor/lib/document/blocks/general/Chart/fields.js +1 -1
  6. package/dist/editor/lib/document/blocks/general/Countdown/fields.js +1 -1
  7. package/dist/editor/lib/document/blocks/general/Mockup/fields.js +2 -2
  8. package/dist/editor/lib/document/card-row-fields.d.ts +2 -1
  9. package/dist/editor/lib/document/card-row-fields.js +1 -1
  10. package/dist/editor/lib/document/controls.d.ts +12 -6
  11. package/dist/editor/lib/document/controls.js +1 -1
  12. package/dist/editor/lib/sections/text-layouts.js +1 -1
  13. package/dist/format/lib/content/box-background.d.ts +2 -2
  14. package/dist/format/lib/content/box-background.js +1 -1
  15. package/dist/format/lib/content/card-columns.d.ts +1 -0
  16. package/dist/format/lib/content/card-columns.js +1 -0
  17. package/dist/format/lib/content/card-place.js +1 -1
  18. package/dist/format/lib/content/card-state.d.ts +17 -0
  19. package/dist/format/lib/content/card-state.js +1 -1
  20. package/dist/format/lib/content/card-template.js +1 -1
  21. package/dist/format/lib/content/gallery-layout.d.ts +13 -1
  22. package/dist/format/lib/content/gallery-layout.js +1 -1
  23. package/dist/format/lib/content/page-background.js +1 -1
  24. package/dist/format/lib/content/section-background.js +1 -1
  25. package/dist/format/lib/document/blocks/general/Chart/meta.d.ts +1 -0
  26. package/dist/format/lib/document/blocks/general/Chart/meta.js +1 -1
  27. package/dist/format/lib/document/blocks/general/Countdown/meta.d.ts +1 -0
  28. package/dist/format/lib/document/blocks/general/Countdown/meta.js +1 -1
  29. package/dist/format/lib/document/blocks/general/Mockup/meta.d.ts +1 -0
  30. package/dist/format/lib/document/blocks/general/Mockup/meta.js +1 -1
  31. package/dist/format/lib/document/blocks/general/text-part-shapes.json +10 -0
  32. package/dist/format/lib/document/card-row-keys.d.ts +14 -0
  33. package/dist/format/lib/document/card-row-keys.js +1 -0
  34. package/dist/format/lib/document/cards-template-on-read.d.ts +1 -1
  35. package/dist/format/lib/document/cards-template-on-read.js +1 -1
  36. package/dist/format/lib/document/neutralization-contracts.js +1 -1
  37. package/dist/format/lib/document/part-inks.d.ts +5 -2
  38. package/dist/format/lib/document/part-inks.js +1 -1
  39. package/dist/format/lib/document/theme-slots.d.ts +20 -0
  40. package/dist/format/lib/document/theme-slots.js +1 -0
  41. package/dist/format/lib/editor-words-catalogue.d.ts +3 -0
  42. package/dist/format/lib/editor-words-catalogue.js +1 -1
  43. package/dist/format/lib/theme.d.ts +1 -0
  44. package/dist/format/lib/theme.js +4 -4
  45. package/dist/render/components/Cards.d.ts +2 -1
  46. package/dist/render/components/Cards.js +1 -1
  47. package/dist/render/components/ChartSection.d.ts +2 -1
  48. package/dist/render/components/ChartSection.js +1 -1
  49. package/dist/render/components/Countdown.d.ts +2 -1
  50. package/dist/render/components/Countdown.js +1 -1
  51. package/dist/render/components/FeaturedCover.d.ts +2 -1
  52. package/dist/render/components/FeaturedCover.js +1 -1
  53. package/dist/render/components/KeyFeatures.js +1 -1
  54. package/dist/render/components/MockupSection.d.ts +2 -1
  55. package/dist/render/components/MockupSection.js +1 -1
  56. package/dist/render/lib/document/blocks/general/CardList/render.js +1 -1
  57. package/dist/render/lib/document/blocks/general/Cards/render.js +1 -1
  58. package/dist/render/lib/document/blocks/general/Chart/render.js +1 -1
  59. package/dist/render/lib/document/blocks/general/Countdown/render.js +1 -1
  60. package/dist/render/lib/document/blocks/general/FeaturedCover/render.js +1 -1
  61. package/dist/render/lib/document/blocks/general/Mockup/render.js +2 -2
  62. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.d.ts +3 -1
  63. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
  64. package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.d.ts +3 -0
  65. package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.js +1 -1
  66. package/dist/render/lib/document/blocks/general/section-to-box-rows-promo.d.ts +2 -0
  67. package/dist/render/lib/document/blocks/general/section-to-box-rows-promo.js +1 -0
  68. package/dist/render/lib/document/blocks/general/section-to-box-rows-proof.d.ts +2 -0
  69. package/dist/render/lib/document/blocks/general/section-to-box-rows-proof.js +1 -0
  70. package/dist/render/lib/document/blocks/general/section-to-box-rows-stats.js +1 -1
  71. package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
  72. package/dist/render/lib/document/head-core-boxes.js +1 -1
  73. package/dist/render/lib/sections/section-to-box.js +1 -1
  74. package/package.json +3 -3
  75. package/dist/editor/lib/document/theme-swatches.d.ts +0 -3
  76. package/dist/editor/lib/document/theme-swatches.js +0 -1
@@ -1 +1 @@
1
- import{parseHexColor as _}from"efficient-shell/format";import{colorRole as g}from"efficient-shell/markup";import{namedRowField as k,rowFieldText as y}from"./card-template.js";import{partColourName as O,partInkCss as C}from"../document/part-inks.js";import{scrim as f}from"./scrim.js";import{viewVarSplit as b}from"./view-var-split.js";const R="sf-card",x={min:0,max:100,step:5,fallback:0,unit:"%"},F=[{label:"Even",value:"even"},{label:"From the bottom",value:"bottom"}],A="68%",W={desktop:20,phone:20,side:40,sidePhone:24},L="sf-box-sides",$={min:0,max:200,step:10};function H(t){return typeof t=="string"&&t.trim()!==""}function S(t,e){const n=typeof t=="number"?t:Number.parseFloat(String(t??""));if(!Number.isFinite(n)||n<=0)return null;const r=(Math.min(x.max,Math.max(x.min,n))/100).toFixed(2);return e!=="bottom"?{background:f(Number(r))}:{background:`linear-gradient(0deg, ${f(Number(r))} 0%, ${f(0)} ${A})`}}const h=t=>typeof t=="string"?_(t.trim()):null,u=t=>{const e=h(t);if(e!==null||typeof t!="string")return e;const n=t.trim();return n&&!n.startsWith("#")&&C(n)||null},M=t=>{if(typeof t!="string")return null;const e=g(O(t.trim()));return e?.kind==="slot"?e.slot:null},D="swatch";function j(t,e){return e?h(y(e,k(t,D))):null}const T={tabletClass:"sf-fill-tablet",tabletVar:"--sf-fill-tablet",phoneClass:"sf-fill-phone",phoneVar:"--sf-fill-phone"};function w(t,e,n){return b(T,u(t),u(e),u(n))}const B={tabletClass:"sf-wash-tablet",tabletVar:"--sf-wash-tablet",phoneClass:"sf-wash-phone",phoneVar:"--sf-wash-phone"};function K(t){const e=S(t.darken,t.darkenStyle);if(!e)return{className:"",style:{}};const n=(o,p)=>String(S(o,p)?.background??"none"),s=o=>(typeof o=="number"||typeof o=="string"&&o.trim()!=="")&&Number.isFinite(Number(o))?o:void 0,r=o=>F.some(p=>p.value===o)?o:void 0,[l,a,i,c]=[s(t.darkenTablet),r(t.darkenStyleTablet),s(t.darkenPhone),r(t.darkenStylePhone)],m=l??t.darken,d=a??t.darkenStyle;return b(B,String(e.background),l!==void 0||a!==void 0?n(m,d):null,i!==void 0||c!==void 0?n(i??m,c??d):null)}function Y(t,e){const n={"top-left":["start","start"],"top-center":["center","start"],"top-right":["end","start"],left:["start","center"],center:["center","center"],right:["end","center"],"bottom-left":["start","end"],"bottom-center":["center","end"],"bottom-right":["end","end"]},[s,r]=n[t]??n.center,[l,a]=e==="column"?[r,s]:[s,r],i={start:"justify-start",center:"justify-center",end:"justify-end"},c={start:"items-start",center:"items-center",end:"items-end"};return`${i[l]} ${c[a]}`}export{W as BOX_CARD_PAD,$ as BOX_CARD_SIDE,x as BOX_DARKEN,F as BOX_DARKEN_STYLES,T as BOX_FILL_VIEWS,L as BOX_OWNS_SIDES_CLASS,D as BOX_SWATCH_PROP,B as BOX_WASH_VIEWS,R as CARD_SHADOW_CLASS,S as boxDarkenStyle,h as boxFillOf,M as boxFillSlot,w as boxFillViews,u as boxPaintOf,Y as boxPlacementClasses,j as boxSwatchFill,K as boxWashViews,H as isBackgroundBox};
1
+ import{parseHexColor as k}from"efficient-shell/format";import{fillColorRole as _}from"efficient-shell/markup";import{namedRowField as g,rowFieldText as y}from"./card-template.js";import{fillInkCss as O,fillSlotNamed as C,inkTokenOf as F,partColourName as A}from"../document/part-inks.js";import{scrim as u}from"./scrim.js";import{viewVarSplit as b}from"./view-var-split.js";const L="sf-card",x={min:0,max:100,step:5,fallback:0,unit:"%"},T=[{label:"Even",value:"even"},{label:"From the bottom",value:"bottom"}],D="68%",$={desktop:20,phone:20,side:40,sidePhone:24},H="sf-box-sides",M={min:0,max:200,step:10};function j(t){return typeof t=="string"&&t.trim()!==""}function S(t,n){const e=typeof t=="number"?t:Number.parseFloat(String(t??""));if(!Number.isFinite(e)||e<=0)return null;const s=(Math.min(x.max,Math.max(x.min,e))/100).toFixed(2);return n!=="bottom"?{background:u(Number(s))}:{background:`linear-gradient(0deg, ${u(Number(s))} 0%, ${u(0)} ${D})`}}const h=t=>typeof t=="string"?k(t.trim()):null,p=t=>{const n=h(t);if(n!==null||typeof t!="string")return n;const e=t.trim();return e&&!e.startsWith("#")&&O(e)||null},w=t=>{if(typeof t!="string")return null;const n=_(A(t.trim()));return n?.kind==="slot"?n.slot:null},N="swatch";function K(t,n){if(!n)return null;const e=y(n,g(t,N)),r=C(e);return h(e)??(r&&F(r)||null)}const B={tabletClass:"sf-fill-tablet",tabletVar:"--sf-fill-tablet",phoneClass:"sf-fill-phone",phoneVar:"--sf-fill-phone"};function Y(t,n,e){return b(B,p(t),p(n),p(e))}const E={tabletClass:"sf-wash-tablet",tabletVar:"--sf-wash-tablet",phoneClass:"sf-wash-phone",phoneVar:"--sf-wash-phone"};function z(t){const n=S(t.darken,t.darkenStyle);if(!n)return{className:"",style:{}};const e=(o,f)=>String(S(o,f)?.background??"none"),r=o=>(typeof o=="number"||typeof o=="string"&&o.trim()!=="")&&Number.isFinite(Number(o))?o:void 0,s=o=>T.some(f=>f.value===o)?o:void 0,[l,a,i,c]=[r(t.darkenTablet),s(t.darkenStyleTablet),r(t.darkenPhone),s(t.darkenStylePhone)],m=l??t.darken,d=a??t.darkenStyle;return b(E,String(n.background),l!==void 0||a!==void 0?e(m,d):null,i!==void 0||c!==void 0?e(i??m,c??d):null)}function J(t,n){const e={"top-left":["start","start"],"top-center":["center","start"],"top-right":["end","start"],left:["start","center"],center:["center","center"],right:["end","center"],"bottom-left":["start","end"],"bottom-center":["center","end"],"bottom-right":["end","end"]},[r,s]=e[t]??e.center,[l,a]=n==="column"?[s,r]:[r,s],i={start:"justify-start",center:"justify-center",end:"justify-end"},c={start:"items-start",center:"items-center",end:"items-end"};return`${i[l]} ${c[a]}`}export{$ as BOX_CARD_PAD,M as BOX_CARD_SIDE,x as BOX_DARKEN,T as BOX_DARKEN_STYLES,B as BOX_FILL_VIEWS,H as BOX_OWNS_SIDES_CLASS,N as BOX_SWATCH_PROP,E as BOX_WASH_VIEWS,L as CARD_SHADOW_CLASS,S as boxDarkenStyle,h as boxFillOf,w as boxFillSlot,Y as boxFillViews,p as boxPaintOf,J as boxPlacementClasses,K as boxSwatchFill,z as boxWashViews,j as isBackgroundBox};
@@ -0,0 +1 @@
1
+ export declare function cardColumns(columns: number | undefined): number;
@@ -0,0 +1 @@
1
+ function t(n){return Math.min(4,Math.max(2,n??3))}export{t as cardColumns};
@@ -1 +1 @@
1
- const c="cardPlace";function f(t){return t[c]==="top-line"?"top-line":""}const d="absolute left-5 top-0 z-10 -translate-y-1/2 bg-bg px-2",a="data-sf-top-line",p=new Set(["Cards"]);function x(t){return typeof t=="string"&&p.has(t)}const i=t=>{if(!t||typeof t!="object")return!1;const e=t,o=n=>typeof n=="number"&&n>0,s=e.width,r=n=>typeof e[n]=="number"?o(e[n]):o(s);return r("top")&&!r("right")&&!r("bottom")&&!r("left")};function _(t,e,o){return!o||!e?.linesBetween||e.index!==0?t:i(t)?{...t,top:0}:t}const u="outsideFramedCard";export{c as CARD_PLACE_PROP,p as FRAMED_CARD_OWNERS,u as OUTSIDE_FRAMED_CARD,a as TOP_LINE_ATTRIBUTE,d as TOP_LINE_CLASS,_ as cardLineBetween,f as cardPlaceOf,x as framesItsCards};
1
+ import{CARD_LIST_TYPE as p}from"./card-template.js";const c="cardPlace";function a(t){return t[c]==="top-line"?"top-line":""}const _="absolute left-5 top-0 z-10 -translate-y-1/2 bg-bg px-2",x="data-sf-top-line",i=new Set(["Cards",p]);function A(t){return typeof t=="string"&&i.has(t)}const f=t=>{if(!t||typeof t!="object")return!1;const e=t,n=o=>typeof o=="number"&&o>0,s=e.width,r=o=>typeof e[o]=="number"?n(e[o]):n(s);return r("top")&&!r("right")&&!r("bottom")&&!r("left")};function C(t,e,n){return!n||!e?.linesBetween||e.index!==0?t:f(t)?{...t,top:0}:t}const E="outsideFramedCard";export{c as CARD_PLACE_PROP,i as FRAMED_CARD_OWNERS,E as OUTSIDE_FRAMED_CARD,x as TOP_LINE_ATTRIBUTE,_ as TOP_LINE_CLASS,C as cardLineBetween,a as cardPlaceOf,A as framesItsCards};
@@ -1,3 +1,4 @@
1
+ import type { SourceRow } from "./block-sources.js";
1
2
  declare const CARD_ROW_STATES: readonly ["selected", "highlighted"];
2
3
  type CardRowStateName = (typeof CARD_ROW_STATES)[number];
3
4
  export type CardRowState = Readonly<Partial<Record<CardRowStateName, boolean>>>;
@@ -7,6 +8,22 @@ export type CardStateLine = "frame" | "under";
7
8
  export declare const CARD_STATE_UNDER_LINE_CLASS = "pointer-events-none absolute inset-x-0 bottom-0 border-b-2 border-accent";
8
9
  export declare function cardStateValue(state: CardRowState | undefined | null): string;
9
10
  export declare function cardStateAttrs(state: CardRowState | undefined | null): Record<string, string>;
11
+ export declare const CARD_BADGE_FIELD = "badge";
12
+ export declare function keyedRows(rows: readonly SourceRow[], keys?: readonly {
13
+ key: string;
14
+ }[]): SourceRow[];
15
+ export declare function rowHoldsContent(row: unknown): boolean;
16
+ export declare function markedRows(rows: readonly SourceRow[], { chosen, badge }: {
17
+ chosen: string;
18
+ badge: string;
19
+ }): {
20
+ rows: SourceRow[];
21
+ states: CardRowState[];
22
+ };
23
+ export declare function highlightOf(props: Record<string, unknown>): {
24
+ chosen: string;
25
+ badge: string;
26
+ };
10
27
  export type CardItemAction = {
11
28
  readonly press: () => void;
12
29
  };
@@ -1 +1 @@
1
- import{BOX_LINK_CLASS as r}from"./box-link.js";const n=["selected","highlighted"],o="data-sf-card-state",a="pointer-events-none absolute inset-0 border border-accent",p="pointer-events-none absolute inset-x-0 bottom-0 border-b-2 border-accent";function s(e){return e?n.filter(t=>e[t]===!0).join(" "):""}function A(e){const t=s(e);return t?{[o]:t,className:"relative"}:{}}function d(e){if(!e||typeof e!="object")return;const t=e.press;return typeof t=="function"?{press:t}:void 0}const i="data-sf-card-press",u=`${r} appearance-none bg-transparent border-0 p-0 m-0 cursor-pointer`;export{i as CARD_ACTION_ATTR,u as CARD_ACTION_CLASS,o as CARD_STATE_ATTR,a as CARD_STATE_LINE_CLASS,p as CARD_STATE_UNDER_LINE_CLASS,d as cardItemAction,A as cardStateAttrs,s as cardStateValue};
1
+ import{BOX_LINK_CLASS as a}from"./box-link.js";import{cardKeyOf as d}from"./card-template.js";const f=["selected","highlighted"],p="data-sf-card-state",T="pointer-events-none absolute inset-0 border border-accent",C="pointer-events-none absolute inset-x-0 bottom-0 border-b-2 border-accent";function u(t){return t?f.filter(e=>t[e]===!0).join(" "):""}function S(t){const e=u(t);return e?{[p]:e,className:"relative"}:{}}const A={highlighted:!0},g={},c="badge";function b(t,e=[]){return t.map((r,n)=>({...r,key:r.key||e[n]?.key||d(r,n)}))}function l(t){return!t||typeof t!="object"?!1:Object.entries(t).some(([e,r])=>e==="key"||e===c||e==="state"?!1:typeof r=="string"?r.trim()!=="":Array.isArray(r)?r.length>0:r!=null&&typeof r!="function")}function x(t,{chosen:e,badge:r}){const n=e.trim(),s=n?t.findIndex(o=>o.key===n):-1;return{rows:t.map((o,i)=>({...o,[c]:i===s?r:""})),states:t.map((o,i)=>i===s?A:g)}}function y(t){return{chosen:typeof t.highlightedCard=="string"?t.highlightedCard.trim():"",badge:typeof t.highlightBadge=="string"?t.highlightBadge:""}}function m(t){if(!t||typeof t!="object")return;const e=t.press;return typeof e=="function"?{press:e}:void 0}const R="data-sf-card-press",D=`${a} appearance-none bg-transparent border-0 p-0 m-0 cursor-pointer`;export{R as CARD_ACTION_ATTR,D as CARD_ACTION_CLASS,c as CARD_BADGE_FIELD,p as CARD_STATE_ATTR,T as CARD_STATE_LINE_CLASS,C as CARD_STATE_UNDER_LINE_CLASS,m as cardItemAction,S as cardStateAttrs,u as cardStateValue,y as highlightOf,b as keyedRows,x as markedRows,l as rowHoldsContent};
@@ -1 +1 @@
1
- import{blockSourceSpec as R,declaredBlockSource as L}from"./block-sources.js";import{isNodeList as O}from"efficient-easel/data";import{BOX_TYPE as _}from"../document/container-blocks.js";import{globalRegistry as C}from"../global-registry.js";import{nonEmptyString as b}from"../non-empty-string.js";import{accentItalicRuns as A}from"../markup.js";import{withCardsTemplate as h}from"../document/cards-template-on-read.js";import{withCardListTemplate as I}from"../document/blocks/general/CardList/item-seed.js";import{ARTICLE_BODY_BLOCK as S,withArticleBodyTemplate as E}from"../document/article-body-seed.js";import{withLogosTemplate as P}from"../document/blocks/general/Logos/card-seed.js";import{withFaqTemplate as F}from"../document/blocks/general/FAQ/card-seed.js";const D="template",ce="Card template",f="CardList",x=["Text","ImageBlock","ButtonBlock","Flex"],u="rowField",W="rowLinkField";function ue(){return{type:"slot",allow:[...x]}}const M=x.filter(e=>e!=="ButtonBlock"),g="items",w="itemFields";function de(){return{type:"slot",allow:[...M]}}const N=[{block:"OrderSummary",typedRows:"rows",linesBetween:!0,fields:[{key:"label",label:"Item"},{key:"meta",label:"Meta line"},{key:"amount",label:"Amount"}]},{block:"FAQ",typedRows:"items",fields:[{key:"question",label:"Question"},{key:"answer",label:"Answer",multiline:!0}],seedOnInsert:e=>F(e)},{block:"Footprint",typedRows:"offices",fields:[{key:"badge",label:"HQ"},{key:"role",label:"Role"},{key:"city",label:"City"},{key:"country",label:"Region · country"},{key:"address",label:"Address"},{key:"linkLabel",label:"Button"},{key:"href",label:"Link",kind:"link"}]},{block:"Cards",typedRows:"items",fields:[{key:"num",label:"Number"},{key:"since",label:"Corner note"},{key:"label",label:"Label"},{key:"title",label:"Card title"},{key:"value",label:"Value"},{key:"body",label:"Card body",multiline:!0},{key:"href",label:"Link",kind:"link"},{key:"count",label:"Count"},{key:"badge",label:"Highlight badge",everySource:!0}],seed:e=>h("Cards",e)},{block:"ProcessSteps",fields:[{key:"eyebrow",label:"Eyebrow"},{key:"title",label:"Title",mark:"accentItalic"},{key:"copy",label:"Body",multiline:!0},{key:"image",label:"Image",kind:"image",alt:"title"},{key:"tag",label:"Image tag"},{key:"specs",label:"Specs",kind:"list",fields:[{key:"label",label:"Label"},{key:"value",label:"Value"}]}],blocks:[{type:f,label:"Card list"}]},{block:"Logos",fields:[{key:"label",label:"Name"},{key:"kind",label:"Kind"}],seed:e=>P(e)},{block:f,fields:[],typedRows:g,seed:e=>I(e)},{block:S,fields:[{key:"heading",label:"Subhead"},{key:"paragraph",label:"Paragraph",multiline:!0}],seed:e=>E(e)}];function a(){return C("efficient.card-templates",()=>new Map(N.map(e=>[e.block,e])))}function fe(e){for(const t of e){if(typeof t.block!="string"||!t.block)throw new Error("A card template names no block.");const r=[];for(const o of t.blocks??[]){if(typeof o?.type!="string"||!o.type)throw new Error(`The card template of ${t.block} names an empty block.`);r.some(i=>i.type===o.type)||r.push({type:o.type,label:o.label||o.type})}const n=b(t.typedRows);a().set(t.block,{block:t.block,fields:t.fields.map(o=>({...o})),blocks:r,typedRows:n,...t.seed?{seed:t.seed}:{},...t.seedOnInsert?{seedOnInsert:t.seedOnInsert}:{},...t.linesBetween===!0?{linesBetween:!0}:{}})}}function v(e,t){const r=e?a().get(e)?.seed:void 0;return r?r(t):t}function pe(e,t){if(!(t.template===void 0||Array.isArray(t.template)&&t.template.length===0))return t;const{template:n,...o}=t,i=e?a().get(e)?.seedOnInsert:void 0,l=i?i(o):v(e,o);return l===o?t:l}function ye(){for(const e of a().values())if(e.blocks?.length)return!0;return!1}function me(e){return a().get(e)?.blocks??[]}function ke(e){for(const t of a().values())if(t.blocks?.some(r=>r.type===e))return!0;return!1}function be(e){return typeof e=="string"&&a().get(e)?.typedRows||""}function xe(e){return typeof e=="string"&&a().get(e)?.linesBetween===!0}function K(e){return typeof e=="string"&&a().has(e)}function j(e,t){const r=a().get(e)?.fields??[];return t?r.filter(n=>(n.kind??"text")===t):r}function Y(e){return typeof e=="string"?j(e,"list")[0]?.key??"":""}function H(e,t){return p(e)||Y(t)}function B(e,t){const r=typeof e?.type=="string"?e.type:"";if(!r)return[];const n=a().get(r)?.fields??[],o=R(L(e?.props))?.fields,i=o?.length?[...o.map(l=>({...l})),...n.filter(l=>l.everySource&&!o.some(s=>s.key===l.key))]:n;return t?i.filter(l=>(l.kind??"text")===t):i}function Q(e,t,r){return e?r?B(r).find(n=>n.key===t)??null:a().get(e)?.fields.find(n=>n.key===t)??null:null}function p(e,t=u){const r=e?.[t];return typeof r=="string"?r.trim():""}function ge(e,t){return e.key||String(t+1)}function we(e){const t={};if(e&&typeof e=="object"&&!Array.isArray(e))for(const[r,n]of Object.entries(e))typeof n=="string"&&(t[r]=n);return t}const U="hideWhenRowEmpty";function Be(e,t){const r=e[U];return!t||!Array.isArray(r)||!r.length?!1:r.every(n=>typeof n!="string"||!t[n]?.trim())}function Te(e,t,r=""){const n=t&&e&&typeof e=="object"?e[t]:void 0;if(!Array.isArray(n))return"";for(const o of n){const i=typeof o=="string"?o:o?.src,l=b(typeof i=="string"?i.trim():void 0);if(l&&l!==r.trim())return l}return""}const y={Text:{text:u},ImageBlock:{src:u},ButtonBlock:{label:u,href:W},LogoBlock:{alt:u},Breadcrumb:{currentCrumb:u}},Re=y,$=new Set(["ButtonBlock.label","LogoBlock.alt"]);function Le(e,t,r){return q(e,t,r)&&!$.has(`${e}.${r}`)}function q(e,t,r){return V(e,t,r)!==""}function V(e,t,r){const n=y[e]?.[r];return n?p(t,n):""}function X(e,t){return!t||!e?null:e[t]??""}function Oe(e,t,r,n){if(!r)return t;let o=null;for(const[i,l]of Object.entries(y[e]??{})){const s=p(t,l),c=X(r,s);c!==null&&(o??={...t},o[i]=n&&Q(n,s)?.mark==="accentItalic"?A(c):c)}return o??t}function m(e,t){const r=e?.data?.content;if(!Array.isArray(r)||typeof t!="string")return;const n=(i,l)=>{for(const s of i){if(s?.props?.id===t)return l;for(const[c,d]of Object.entries(s?.props??{})){if(!O(d))continue;const T=c===D&&K(s.type)?{owner:s,direct:!0,nested:l!==null,underBox:!1}:l&&{owner:l.owner,direct:!1,nested:l.nested,underBox:l.underBox||s.type===_},k=n(d,T);if(k!==void 0)return k}}},o=n(r,null);return o===void 0?null:o}function z(e,t){const r=m(e,t);return r&&r.owner}function _e(e,t){const r=m(e,t);return r&&(r.direct?r.owner:null)}function Ce(e,t){const r=m(e,t);if(r!==void 0)return r===null?{inCopy:!1,nestedCopy:!1,underBox:!1}:{inCopy:!0,nestedCopy:r.nested,underBox:r.underBox}}function Ae(e,t,r){if(t?.type!==f)return[];const n=z(e,t.props?.id);if(!n)return G(t.props,r);const o=H(t.props,n.type),i=o&&B(n,"list").find(l=>l.key===o)?.fields||[];return r?i.filter(l=>(l.kind??"text")===r):i}function he(e,t){return{[u]:"",[g]:e.map(r=>({...r})),[w]:t.map(r=>({...r}))}}function G(e,t){const r=e?.[w];if(!Array.isArray(r))return[];const n=r.flatMap(o=>{if(!o||typeof o!="object")return[];const{key:i,label:l,kind:s,multiline:c}=o;if(typeof i!="string"||!i||typeof l!="string")return[];const d=s==="image"||s==="link"||s==="colour"?s:void 0;return[{key:i,label:l,...d?{kind:d}:{},...c===!0?{multiline:!0}:{}}]});return t?n.filter(o=>(o.kind??"text")===t):n}export{U as BOX_HIDE_WHEN_ROW_EMPTY,w as CARD_LIST_FIELDS,M as CARD_LIST_ITEM_BLOCKS,g as CARD_LIST_ROWS,f as CARD_LIST_TYPE,u as CARD_ROW_FIELD_PROP,W as CARD_ROW_LINK_PROP,x as CARD_TEMPLATE_BLOCKS,ce as CARD_TEMPLATE_LABEL,D as CARD_TEMPLATE_SLOT,Re as ROW_BOUND_PROPS,$ as ROW_PART_BY_WORDS,Ce as cardCopyPlace,ge as cardKeyOf,Ae as cardListFieldsOf,de as cardListItemSlot,he as cardListProps,H as cardListShows,we as cardRow,me as cardTemplateBlocks,_e as cardTemplateCardOwner,Q as cardTemplateField,j as cardTemplateFields,B as cardTemplateFieldsOf,xe as cardTemplateLinesBetween,z as cardTemplateOwner,ue as cardTemplateSlot,be as cardTemplateTypedRows,ye as cardTemplatesNameBlocks,Y as defaultListField,K as hasCardTemplate,ke as isCardTemplateBlock,p as namedRowField,fe as registerCardTemplates,q as rowBound,V as rowFieldOf,X as rowFieldText,Oe as rowFilledProps,Te as rowNextPicture,Le as rowPartByKey,Be as templateBoxIsEmpty,pe as templateOnInsert,v as templateOnRead};
1
+ import{blockSourceSpec as x,declaredBlockSource as g}from"./block-sources.js";import{isNodeList as O}from"efficient-easel/data";import{BOX_TYPE as _}from"../document/container-blocks.js";import{globalRegistry as C}from"../global-registry.js";import{nonEmptyString as w}from"../non-empty-string.js";import{accentItalicRuns as h}from"../markup.js";import{withCardsTemplate as A}from"../document/cards-template-on-read.js";import{withCardListTemplate as S}from"../document/blocks/general/CardList/item-seed.js";import{ARTICLE_BODY_BLOCK as I,withArticleBodyTemplate as E}from"../document/article-body-seed.js";import{withLogosTemplate as P}from"../document/blocks/general/Logos/card-seed.js";import{withFaqTemplate as F}from"../document/blocks/general/FAQ/card-seed.js";const D="template",ce="Card template",y="CardList",B=["Text","ImageBlock","ButtonBlock","Flex"],f="rowField",v="rowLinkField";function ue(){return{type:"slot",allow:[...B]}}const W=B.filter(e=>e!=="ButtonBlock"),T="items",R="itemFields";function de(){return{type:"slot",allow:[...W]}}const M=[{block:"OrderSummary",typedRows:"rows",linesBetween:!0,fields:[{key:"label",label:"Item"},{key:"meta",label:"Meta line"},{key:"amount",label:"Amount"}]},{block:"FAQ",typedRows:"items",fields:[{key:"question",label:"Question"},{key:"answer",label:"Answer",multiline:!0}],seedOnInsert:e=>F(e)},{block:"Footprint",typedRows:"offices",fields:[{key:"badge",label:"HQ"},{key:"role",label:"Role"},{key:"city",label:"City"},{key:"country",label:"Region · country"},{key:"address",label:"Address"},{key:"linkLabel",label:"Button"},{key:"href",label:"Link",kind:"link"}]},{block:"Cards",typedRows:"items",fields:[{key:"num",label:"Number"},{key:"since",label:"Corner note"},{key:"label",label:"Label"},{key:"title",label:"Card title"},{key:"value",label:"Value"},{key:"body",label:"Card body",multiline:!0},{key:"href",label:"Link",kind:"link"},{key:"count",label:"Count"},{key:"badge",label:"Highlight badge",everySource:!0}],seed:e=>A("Cards",e)},{block:"ProcessSteps",fields:[{key:"eyebrow",label:"Eyebrow"},{key:"title",label:"Title",mark:"accentItalic"},{key:"copy",label:"Body",multiline:!0},{key:"image",label:"Image",kind:"image",alt:"title"},{key:"tag",label:"Image tag"},{key:"specs",label:"Specs",kind:"list",fields:[{key:"label",label:"Label"},{key:"value",label:"Value"}]}],blocks:[{type:y,label:"Card list"}]},{block:"Logos",fields:[{key:"label",label:"Name"},{key:"kind",label:"Kind"}],seed:e=>P(e)},{block:y,fields:[{key:"badge",label:"Highlight badge",everySource:!0}],typedRows:T,seed:e=>S(e)},{block:I,fields:[{key:"heading",label:"Subhead"},{key:"paragraph",label:"Paragraph",multiline:!0}],seed:e=>E(e)}];function a(){return C("efficient.card-templates",()=>new Map(M.map(e=>[e.block,e])))}function fe(e){for(const t of e){if(typeof t.block!="string"||!t.block)throw new Error("A card template names no block.");const r=[];for(const o of t.blocks??[]){if(typeof o?.type!="string"||!o.type)throw new Error(`The card template of ${t.block} names an empty block.`);r.some(i=>i.type===o.type)||r.push({type:o.type,label:o.label||o.type})}const n=w(t.typedRows);a().set(t.block,{block:t.block,fields:t.fields.map(o=>({...o})),blocks:r,typedRows:n,...t.seed?{seed:t.seed}:{},...t.seedOnInsert?{seedOnInsert:t.seedOnInsert}:{},...t.linesBetween===!0?{linesBetween:!0}:{}})}}function N(e,t){const r=e?a().get(e)?.seed:void 0;return r?r(t):t}function pe(e,t){if(!(t.template===void 0||Array.isArray(t.template)&&t.template.length===0))return t;const{template:n,...o}=t,i=e?a().get(e)?.seedOnInsert:void 0,l=i?i(o):N(e,o);return l===o?t:l}function ye(){for(const e of a().values())if(e.blocks?.length)return!0;return!1}function me(e){return a().get(e)?.blocks??[]}function ke(e){for(const t of a().values())if(t.blocks?.some(r=>r.type===e))return!0;return!1}function be(e){return typeof e=="string"&&a().get(e)?.typedRows||""}function xe(e){return typeof e=="string"&&a().get(e)?.linesBetween===!0}function K(e){return typeof e=="string"&&a().has(e)}function j(e,t){const r=a().get(e)?.fields??[];return t?r.filter(n=>(n.kind??"text")===t):r}function H(e){return typeof e=="string"?j(e,"list")[0]?.key??"":""}function Y(e,t){return m(e)||H(t)}function L(e,t){const r=typeof e?.type=="string"?e.type:"";if(!r)return[];const n=a().get(r)?.fields??[],o=x(g(e?.props))?.fields,i=o?.length?[...o.map(l=>({...l})),...n.filter(l=>l.everySource&&!o.some(s=>s.key===l.key))]:n;return t?i.filter(l=>(l.kind??"text")===t):i}function Q(e,t,r){return e?r?L(r).find(n=>n.key===t)??null:a().get(e)?.fields.find(n=>n.key===t)??null:null}function m(e,t=f){const r=e?.[t];return typeof r=="string"?r.trim():""}function ge(e,t){return e.key||String(t+1)}function we(e){const t={};if(e&&typeof e=="object"&&!Array.isArray(e))for(const[r,n]of Object.entries(e))typeof n=="string"&&(t[r]=n);return t}const U="hideWhenRowEmpty";function Be(e,t){const r=e[U];return!t||!Array.isArray(r)||!r.length?!1:r.every(n=>typeof n!="string"||!t[n]?.trim())}function Te(e,t,r=""){const n=t&&e&&typeof e=="object"?e[t]:void 0;if(!Array.isArray(n))return"";for(const o of n){const i=typeof o=="string"?o:o?.src,l=w(typeof i=="string"?i.trim():void 0);if(l&&l!==r.trim())return l}return""}const k={Text:{text:f},ImageBlock:{src:f},ButtonBlock:{label:f,href:v},LogoBlock:{alt:f},Breadcrumb:{currentCrumb:f}},Re=k,$=new Set(["ButtonBlock.label","LogoBlock.alt"]);function Le(e,t,r){return q(e,t,r)&&!$.has(`${e}.${r}`)}function q(e,t,r){return V(e,t,r)!==""}function V(e,t,r){const n=k[e]?.[r];return n?m(t,n):""}function X(e,t){return!t||!e?null:e[t]??""}function Oe(e,t,r,n){if(!r)return t;let o=null;for(const[i,l]of Object.entries(k[e]??{})){const s=m(t,l),c=X(r,s);c!==null&&(o??={...t},o[i]=n&&Q(n,s)?.mark==="accentItalic"?h(c):c)}return o??t}function b(e,t){const r=e?.data?.content;if(!Array.isArray(r)||typeof t!="string")return;const n=(i,l)=>{for(const s of i){if(s?.props?.id===t)return l;for(const[c,u]of Object.entries(s?.props??{})){if(!O(u))continue;const d=c===D&&K(s.type)?{owner:s,direct:!0,nested:l!==null,underBox:!1}:l&&{owner:l.owner,direct:!1,nested:l.nested,underBox:l.underBox||s.type===_},p=n(u,d);if(p!==void 0)return p}}},o=n(r,null);return o===void 0?null:o}function z(e,t){const r=b(e,t);return r&&r.owner}function _e(e,t){const r=b(e,t);return r&&(r.direct?r.owner:null)}function Ce(e,t){const r=b(e,t);if(r!==void 0)return r===null?{inCopy:!1,nestedCopy:!1,underBox:!1}:{inCopy:!0,nestedCopy:r.nested,underBox:r.underBox}}function he(e,t,r){if(t?.type!==y)return[];const n=z(e,t.props?.id);if(!n){const l=x(g(t.props))?.fields,s=l?.length?l.map(d=>({...d})):G(t.props),c=(a().get(y)?.fields??[]).filter(d=>d.everySource&&!s.some(p=>p.key===d.key)),u=[...s,...c];return r?u.filter(d=>(d.kind??"text")===r):u}const o=Y(t.props,n.type),i=o&&L(n,"list").find(l=>l.key===o)?.fields||[];return r?i.filter(l=>(l.kind??"text")===r):i}function Ae(e,t){return{[f]:"",[T]:e.map(r=>({...r})),[R]:t.map(r=>({...r}))}}function G(e,t){const r=e?.[R];if(!Array.isArray(r))return[];const n=r.flatMap(o=>{if(!o||typeof o!="object")return[];const{key:i,label:l,kind:s,multiline:c}=o;if(typeof i!="string"||!i||typeof l!="string")return[];const u=s==="image"||s==="link"||s==="colour"?s:void 0;return[{key:i,label:l,...u?{kind:u}:{},...c===!0?{multiline:!0}:{}}]});return t?n.filter(o=>(o.kind??"text")===t):n}export{U as BOX_HIDE_WHEN_ROW_EMPTY,R as CARD_LIST_FIELDS,W as CARD_LIST_ITEM_BLOCKS,T as CARD_LIST_ROWS,y as CARD_LIST_TYPE,f as CARD_ROW_FIELD_PROP,v as CARD_ROW_LINK_PROP,B as CARD_TEMPLATE_BLOCKS,ce as CARD_TEMPLATE_LABEL,D as CARD_TEMPLATE_SLOT,Re as ROW_BOUND_PROPS,$ as ROW_PART_BY_WORDS,Ce as cardCopyPlace,ge as cardKeyOf,he as cardListFieldsOf,de as cardListItemSlot,Ae as cardListProps,Y as cardListShows,we as cardRow,me as cardTemplateBlocks,_e as cardTemplateCardOwner,Q as cardTemplateField,j as cardTemplateFields,L as cardTemplateFieldsOf,xe as cardTemplateLinesBetween,z as cardTemplateOwner,ue as cardTemplateSlot,be as cardTemplateTypedRows,ye as cardTemplatesNameBlocks,H as defaultListField,K as hasCardTemplate,ke as isCardTemplateBlock,m as namedRowField,fe as registerCardTemplates,q as rowBound,V as rowFieldOf,X as rowFieldText,Oe as rowFilledProps,Te as rowNextPicture,Le as rowPartByKey,Be as templateBoxIsEmpty,pe as templateOnInsert,N as templateOnRead};
@@ -1,3 +1,4 @@
1
+ import { type GalleryCardRatio } from "./gallery-card-layout.js";
1
2
  export declare const GALLERY_COLUMNS = 12;
2
3
  export declare const GALLERY_COLUMNS_PHONE = 6;
3
4
  export declare const GALLERY_PHONE_BREAKPOINT = 800;
@@ -7,9 +8,10 @@ export interface GalleryLayout {
7
8
  readonly desktop: readonly GalleryCell[];
8
9
  readonly phone: readonly GalleryCell[];
9
10
  readonly across: 2 | 3 | 4 | 6;
10
- readonly acrossPhone: 2 | 3 | 6;
11
+ readonly acrossPhone: 1 | 2 | 3 | 6;
11
12
  readonly lead?: readonly GalleryCell[];
12
13
  readonly leadPhone?: readonly GalleryCell[];
14
+ readonly ratio?: GalleryCardRatio;
13
15
  }
14
16
  export declare const GALLERY_LAYOUTS: {
15
17
  readonly twoAcross: {
@@ -154,6 +156,15 @@ export declare const GALLERY_LAYOUTS: {
154
156
  readonly leadPhone: readonly [readonly [3, 1], readonly [3, 1]];
155
157
  readonly phone: readonly [readonly [2, 1], readonly [2, 1], readonly [2, 1]];
156
158
  };
159
+ readonly twoThenThreesPhoto: {
160
+ readonly label: "Two, then threes · photo";
161
+ readonly across: 3;
162
+ readonly acrossPhone: 1;
163
+ readonly lead: readonly [readonly [6, 1], readonly [6, 1]];
164
+ readonly desktop: readonly [readonly [4, 1], readonly [4, 1], readonly [4, 1]];
165
+ readonly phone: readonly [readonly [6, 1]];
166
+ readonly ratio: "landscape";
167
+ };
157
168
  };
158
169
  export type GalleryLayoutKey = keyof typeof GALLERY_LAYOUTS;
159
170
  export declare const GALLERY_LAYOUT_KEYS: GalleryLayoutKey[];
@@ -161,6 +172,7 @@ export declare const GALLERY_ACROSS_BUCKETS: readonly (2 | 3 | 4 | 6)[];
161
172
  export declare function galleryChoices(across: number | null, chosen: string): GalleryLayoutKey[];
162
173
  export declare function resolveGalleryLayout(value: unknown): GalleryLayout | null;
163
174
  export declare function galleryTailSpan(layout: GalleryLayout, phone: boolean): number;
175
+ export declare function galleryLayoutRatio(layout: GalleryLayout): readonly [number, number] | null;
164
176
  export declare function galleryPictureCells(layout: GalleryLayout): readonly GalleryCell[];
165
177
  export declare const GALLERY_LAYOUT_CLASS_PREFIX = "sf-wall--";
166
178
  export declare function galleryLayoutClass(key: GalleryLayoutKey): string;
@@ -1 +1 @@
1
- const k=12,E=6,A=800,n={twoAcross:{label:"Two across",across:2,acrossPhone:2,desktop:[[6,1],[6,1]],phone:[[3,1],[3,1]]},zigzag:{label:"Zigzag",across:2,acrossPhone:2,desktop:[[8,1],[4,1],[4,1],[8,1]],phone:[[4,1],[2,1],[2,1],[4,1]]},brick:{label:"Brick",across:2,acrossPhone:2,desktop:[[5,1],[7,1],[7,1],[5,1]],phone:[[2,1],[4,1],[4,1],[2,1]]},twoTall:{label:"Two tall",across:2,acrossPhone:2,desktop:[[6,2],[6,2]],phone:[[3,2],[3,2]]},offsetTall:{label:"Offset tall",across:2,acrossPhone:2,desktop:[[5,2],[7,1],[3,1],[4,1]],phone:[[3,2],[3,1],[3,1]]},ladder:{label:"Ladder",across:2,acrossPhone:2,desktop:[[3,2],[9,1],[5,1],[4,1]],phone:[[2,2],[4,1],[2,1],[2,1]]},threeAcross:{label:"Three across",across:3,acrossPhone:3,desktop:[[4,1],[4,1],[4,1]],phone:[[2,1],[2,1],[2,1]]},bigLeft:{label:"Big left",across:3,acrossPhone:3,desktop:[[6,1],[3,1],[3,1]],phone:[[4,1],[1,1],[1,1]]},bigRight:{label:"Big right",across:3,acrossPhone:3,desktop:[[3,1],[3,1],[6,1]],phone:[[1,1],[1,1],[4,1]]},threeStagger:{label:"Three stagger",across:3,acrossPhone:3,desktop:[[5,1],[4,1],[3,1],[3,1],[4,1],[5,1]],phone:[[3,1],[2,1],[1,1],[1,1],[2,1],[3,1]]},threeLadder:{label:"Three ladder",across:3,acrossPhone:3,desktop:[[3,1],[4,1],[5,1],[5,1],[4,1],[3,1]],phone:[[1,1],[2,1],[3,1],[3,1],[2,1],[1,1]]},tallMiddle:{label:"Tall middle",across:3,acrossPhone:3,desktop:[[4,1],[4,2],[4,1],[4,1],[4,1]],phone:[[2,1],[2,2],[2,1],[2,1],[2,1]]},fourAcross:{label:"Four across",across:4,acrossPhone:2,desktop:[[3,1],[3,1],[3,1],[3,1]],phone:[[3,1],[3,1]]},bigFirst:{label:"Big first",across:4,acrossPhone:2,desktop:[[6,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1]],phone:[[6,1],[3,1],[3,1]]},fourStagger:{label:"Four stagger",across:4,acrossPhone:2,desktop:[[4,1],[3,1],[2,1],[3,1],[2,1],[3,1],[4,1],[3,1]],phone:[[4,1],[2,1],[2,1],[4,1]]},tallFirst:{label:"Tall first",across:4,acrossPhone:2,desktop:[[3,2],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1]],phone:[[3,2],[3,1],[3,1]]},oneThenFour:{label:"One then four",across:4,acrossPhone:2,desktop:[[12,1],[3,1],[3,1],[3,1],[3,1]],phone:[[6,1],[3,1],[3,1]]},sixAcross:{label:"Six across",across:6,acrossPhone:3,desktop:[[2,1],[2,1],[2,1],[2,1],[2,1],[2,1]],phone:[[2,1],[2,1],[2,1]]},sixStagger:{label:"Six stagger",across:6,acrossPhone:6,desktop:[[3,1],[2,1],[1,1],[2,1],[1,1],[3,1],[1,1],[3,1],[2,1],[2,1],[1,1],[3,1]],phone:[[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]]},twoThenThrees:{label:"Two, then threes",across:3,acrossPhone:3,lead:[[6,1],[6,1]],desktop:[[4,1],[4,1],[4,1]],leadPhone:[[3,1],[3,1]],phone:[[2,1],[2,1],[2,1]]}},P=Object.keys(n),$=[2,3,4,6];function x(o,s){return P.filter(e=>e===s||o===null||n[e].across===o)}function _(o){return typeof o!="string"||o===""?null:n[o]??null}function u(o,s){return s?6/o.acrossPhone:12/o.across}function O(o){return[...o.lead??[],...o.desktop]}const f="sf-wall--";function b(o){return`${f}${o}`}function T(o){const s=n[o],e=`.${b(o)}`,a=[],p=(d,L,i=[])=>{const t=[],l=d.length,g=i.length;i.forEach(([r,c],h)=>{t.push(`${e} > :nth-child(${h+1}){grid-column:span ${r};grid-row:span ${c}}`)}),d.forEach(([r,c],h)=>{t.push(`${e} > :nth-child(${l}n+${g+h+1}){grid-column:span ${r};grid-row:span ${c}}`)});for(let r=1;r<l;r+=1)t.push(`${e}:has(> :nth-child(${l}n+${g+r}):last-child) > :nth-last-child(-n+${r}){grid-column:span ${L};grid-row:span 1}`);return t};return a.push(`${e}{grid-template-columns:repeat(12,minmax(0,1fr))}`),a.push(...p(s.desktop,u(s,!1),s.lead)),a.push("@media (max-width:800px){"),a.push(`${e}{grid-template-columns:repeat(6,minmax(0,1fr))}`),a.push(...p(s.phone,u(s,!0),s.leadPhone)),a.push("}"),a.join("")}export{$ as GALLERY_ACROSS_BUCKETS,k as GALLERY_COLUMNS,E as GALLERY_COLUMNS_PHONE,n as GALLERY_LAYOUTS,f as GALLERY_LAYOUT_CLASS_PREFIX,P as GALLERY_LAYOUT_KEYS,A as GALLERY_PHONE_BREAKPOINT,x as galleryChoices,b as galleryLayoutClass,T as galleryLayoutCss,O as galleryPictureCells,u as galleryTailSpan,_ as resolveGalleryLayout};
1
+ import{SHAPE_TABLE as b}from"./gallery-card-layout.js";const $=12,L=6,T=800,c={twoAcross:{label:"Two across",across:2,acrossPhone:2,desktop:[[6,1],[6,1]],phone:[[3,1],[3,1]]},zigzag:{label:"Zigzag",across:2,acrossPhone:2,desktop:[[8,1],[4,1],[4,1],[8,1]],phone:[[4,1],[2,1],[2,1],[4,1]]},brick:{label:"Brick",across:2,acrossPhone:2,desktop:[[5,1],[7,1],[7,1],[5,1]],phone:[[2,1],[4,1],[4,1],[2,1]]},twoTall:{label:"Two tall",across:2,acrossPhone:2,desktop:[[6,2],[6,2]],phone:[[3,2],[3,2]]},offsetTall:{label:"Offset tall",across:2,acrossPhone:2,desktop:[[5,2],[7,1],[3,1],[4,1]],phone:[[3,2],[3,1],[3,1]]},ladder:{label:"Ladder",across:2,acrossPhone:2,desktop:[[3,2],[9,1],[5,1],[4,1]],phone:[[2,2],[4,1],[2,1],[2,1]]},threeAcross:{label:"Three across",across:3,acrossPhone:3,desktop:[[4,1],[4,1],[4,1]],phone:[[2,1],[2,1],[2,1]]},bigLeft:{label:"Big left",across:3,acrossPhone:3,desktop:[[6,1],[3,1],[3,1]],phone:[[4,1],[1,1],[1,1]]},bigRight:{label:"Big right",across:3,acrossPhone:3,desktop:[[3,1],[3,1],[6,1]],phone:[[1,1],[1,1],[4,1]]},threeStagger:{label:"Three stagger",across:3,acrossPhone:3,desktop:[[5,1],[4,1],[3,1],[3,1],[4,1],[5,1]],phone:[[3,1],[2,1],[1,1],[1,1],[2,1],[3,1]]},threeLadder:{label:"Three ladder",across:3,acrossPhone:3,desktop:[[3,1],[4,1],[5,1],[5,1],[4,1],[3,1]],phone:[[1,1],[2,1],[3,1],[3,1],[2,1],[1,1]]},tallMiddle:{label:"Tall middle",across:3,acrossPhone:3,desktop:[[4,1],[4,2],[4,1],[4,1],[4,1]],phone:[[2,1],[2,2],[2,1],[2,1],[2,1]]},fourAcross:{label:"Four across",across:4,acrossPhone:2,desktop:[[3,1],[3,1],[3,1],[3,1]],phone:[[3,1],[3,1]]},bigFirst:{label:"Big first",across:4,acrossPhone:2,desktop:[[6,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1]],phone:[[6,1],[3,1],[3,1]]},fourStagger:{label:"Four stagger",across:4,acrossPhone:2,desktop:[[4,1],[3,1],[2,1],[3,1],[2,1],[3,1],[4,1],[3,1]],phone:[[4,1],[2,1],[2,1],[4,1]]},tallFirst:{label:"Tall first",across:4,acrossPhone:2,desktop:[[3,2],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1]],phone:[[3,2],[3,1],[3,1]]},oneThenFour:{label:"One then four",across:4,acrossPhone:2,desktop:[[12,1],[3,1],[3,1],[3,1],[3,1]],phone:[[6,1],[3,1],[3,1]]},sixAcross:{label:"Six across",across:6,acrossPhone:3,desktop:[[2,1],[2,1],[2,1],[2,1],[2,1],[2,1]],phone:[[2,1],[2,1],[2,1]]},sixStagger:{label:"Six stagger",across:6,acrossPhone:6,desktop:[[3,1],[2,1],[1,1],[2,1],[1,1],[3,1],[1,1],[3,1],[2,1],[2,1],[1,1],[3,1]],phone:[[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]]},twoThenThrees:{label:"Two, then threes",across:3,acrossPhone:3,lead:[[6,1],[6,1]],desktop:[[4,1],[4,1],[4,1]],leadPhone:[[3,1],[3,1]],phone:[[2,1],[2,1],[2,1]]},twoThenThreesPhoto:{label:"Two, then threes · photo",across:3,acrossPhone:1,lead:[[6,1],[6,1]],desktop:[[4,1],[4,1],[4,1]],phone:[[6,1]],ratio:"landscape"}},x=Object.keys(c),w=[2,3,4,6];function _(o,e){return x.filter(s=>s===e||o===null||c[s].across===o)}function O(o){return typeof o!="string"||o===""?null:c[o]??null}function k(o,e){return e?L/o.acrossPhone:$/o.across}function A(o){return o.ratio?b.find(e=>e.shape===o.ratio)?.ratio??null:null}function R(o){return[...o.lead??[],...o.desktop]}const m="sf-wall--";function E(o){return`${m}${o}`}function y(o){const e=c[o],s=`.${E(o)}`,r=[],g=(l,h,a)=>`${s}:has(> :nth-child(${l}n+${h+a}):last-child) > :nth-last-child(-n+${a})`,f=(l,h,a=[])=>{const t=[],i=l.length,P=a.length;a.forEach(([n,d],u)=>{t.push(`${s} > :nth-child(${u+1}){grid-column:span ${n};grid-row:span ${d}}`)}),l.forEach(([n,d],u)=>{t.push(`${s} > :nth-child(${i}n+${P+u+1}){grid-column:span ${n};grid-row:span ${d}}`)});for(let n=1;n<i;n+=1)t.push(`${g(i,P,n)}{grid-column:span ${h};grid-row:span 1}`);return t};r.push(`${s}{grid-template-columns:repeat(${$},minmax(0,1fr))}`);const p=A(e);if(p&&(r.push(`${s}${s}{grid-auto-rows:auto}`),r.push(`${s}${s} > *{aspect-ratio:${p[0]}/${p[1]};height:auto}`)),r.push(...f(e.desktop,k(e,!1),e.lead)),r.push(`@media (max-width:${T}px){`),r.push(`${s}{grid-template-columns:repeat(${L},minmax(0,1fr))}`),r.push(...f(e.phone,k(e,!0),e.leadPhone)),e.phone.length===1&&!e.leadPhone?.length){const[l,h]=e.phone[0],a=e.lead?.length??0;for(let t=1;t<e.desktop.length;t+=1)r.push(`${g(e.desktop.length,a,t)}{grid-column:span ${l};grid-row:span ${h}}`)}return r.push("}"),r.join("")}export{w as GALLERY_ACROSS_BUCKETS,$ as GALLERY_COLUMNS,L as GALLERY_COLUMNS_PHONE,c as GALLERY_LAYOUTS,m as GALLERY_LAYOUT_CLASS_PREFIX,x as GALLERY_LAYOUT_KEYS,T as GALLERY_PHONE_BREAKPOINT,_ as galleryChoices,E as galleryLayoutClass,y as galleryLayoutCss,A as galleryLayoutRatio,R as galleryPictureCells,k as galleryTailSpan,O as resolveGalleryLayout};
@@ -1 +1 @@
1
- import{parseHexColor as o}from"efficient-shell/format";const e="#ffffff";function t(r){return n(r)?r:e}function n(r){return typeof r=="string"&&o(r)===r.toLowerCase()}function u(r){return{"--bg":t(r)}}export{e as PAGE_BACKGROUND_DEFAULT,n as isPageBackgroundAuthored,u as pageBackgroundVars,t as resolvePageBackground};
1
+ import{parseHexColor as e}from"efficient-shell/format";import{fillSlotNamed as n}from"../document/part-inks.js";import{themeSlotOf as f}from"../document/theme-slots.js";const a="#ffffff";function u(o){const r=t(o);return r||(i(o)?o:a)}function t(o){const r=n(o);return r?f(r)?.page??"":""}function i(o){return typeof o=="string"&&e(o)===o.toLowerCase()||t(o)!==""}function g(o){return{"--bg":u(o)}}export{a as PAGE_BACKGROUND_DEFAULT,i as isPageBackgroundAuthored,g as pageBackgroundVars,u as resolvePageBackground};
@@ -1 +1 @@
1
- import{parseHexColor as u}from"efficient-shell/format";const i="var(--section-bg)",f="inherit";function c(n,t){return n===f?i:n===void 0?t:E(n)}const p=/var\(\s*--(surface-2|surface|line)\s*(?=[,)])/g;function E(n){return n.replace(p,"var(--site-$1")}const d={"var(--section-bg)":"band","var(--site-surface)":"surface","var(--site-surface-2)":"surface2"};function _(n,t,r){const e=c(n,t);if(!e||e==="transparent")return r.background.toLowerCase();const o=e.trim(),a=o.startsWith("#")?u(o):null;if(a)return a.toLowerCase();const s=d[o.replace(/\s+/g,"")];return(s?r[s]:r.background).toLowerCase()}const x="transparent";function l(n,t){const r=c(n,t);return!r||r===x?"none":r===i?"band":null}function C(n,t,r=t){const e=a=>!a||a==="transparent",o=c(n,t);return o===r||e(o)&&e(r)}export{f as SECTION_BG_INHERIT,x as SECTION_BG_NO_FILL,i as THEME_SECTION_BG,C as isSectionBackgroundEmpty,E as paintedFill,c as resolveSectionBackground,l as sectionBackgroundChoice,_ as sectionBackgroundHex};
1
+ import{parseHexColor as u}from"efficient-shell/format";import{fillSlotNamed as f,inkTokenOf as p}from"../document/part-inks.js";const i="var(--section-bg)",E="inherit";function c(n,r){return n===E?i:n===void 0?r:l(n)}const d=/var\(\s*--(surface-2|surface|line)\s*(?=[,)])/g;function l(n){const r=f(n);return r?p(r):n.replace(d,"var(--site-$1")}const x={"var(--section-bg)":"band","var(--site-surface)":"surface","var(--site-surface-2)":"surface2"};function N(n,r,t){const e=c(n,r);if(!e||e==="transparent")return t.background.toLowerCase();const o=e.trim(),a=o.startsWith("#")?u(o):null;if(a)return a.toLowerCase();const s=x[o.replace(/\s+/g,"")];return(s?t[s]:t.background).toLowerCase()}const g="transparent";function T(n,r){const t=c(n,r);return!t||t===g?"none":t===i?"band":null}function C(n,r,t=r){const e=a=>!a||a==="transparent",o=c(n,r);return o===t||e(o)&&e(t)}export{E as SECTION_BG_INHERIT,g as SECTION_BG_NO_FILL,i as THEME_SECTION_BG,C as isSectionBackgroundEmpty,l as paintedFill,c as resolveSectionBackground,T as sectionBackgroundChoice,N as sectionBackgroundHex};
@@ -3,4 +3,5 @@ export declare const CHART_PH: {
3
3
  eyebrow: string;
4
4
  title: string;
5
5
  };
6
+ export declare const CHART_OWN_BOX_WORDS: readonly ["eyebrow", "title", "body", "caption"];
6
7
  export declare const ChartMeta: BlockMeta;
@@ -1,2 +1,2 @@
1
1
  const t={eyebrow:"By the numbers",title:`A picture worth
2
- *a thousand rows.*`},e={label:"Chart",defaultProps:{eyebrow:"",title:"",body:"",items:[],caption:"",chartStyle:"bars",valueSuffix:""}};export{t as CHART_PH,e as ChartMeta};
2
+ *a thousand rows.*`},e=["eyebrow","title","body","caption"],o={label:"Chart",defaultProps:{eyebrow:"",title:"",body:"",items:[],caption:"",chartStyle:"bars",valueSuffix:""}};export{e as CHART_OWN_BOX_WORDS,t as CHART_PH,o as ChartMeta};
@@ -3,4 +3,5 @@ export declare const COUNTDOWN_DEFAULTS: {
3
3
  title: string;
4
4
  zeroText: string;
5
5
  };
6
+ export declare const COUNTDOWN_OWN_BOX_WORDS: readonly ["title"];
6
7
  export declare const CountdownMeta: BlockMeta;
@@ -1 +1 @@
1
- const o={title:"Back online in",zeroText:"Almost done. Back very soon."},t={label:"Countdown",defaultProps:{...o,endsAt:"",showUnits:!0}};export{o as COUNTDOWN_DEFAULTS,t as CountdownMeta};
1
+ const t={title:"Back online in",zeroText:"Almost done. Back very soon."},o=["title"],e={label:"Countdown",defaultProps:{...t,endsAt:"",showUnits:!0}};export{t as COUNTDOWN_DEFAULTS,o as COUNTDOWN_OWN_BOX_WORDS,e as CountdownMeta};
@@ -1,2 +1,3 @@
1
1
  import type { BlockMeta } from "../../block-types.js";
2
+ export declare const MOCKUP_OWN_BOX_WORDS: readonly ["eyebrow", "title", "body"];
2
3
  export declare const MockupMeta: BlockMeta;
@@ -1 +1 @@
1
- const e={label:"Mockup Card",defaultProps:{eyebrow:"",title:"",body:"",variant:"spec-card",cardHeader:"",badge:"",cardTitle:"",cardSubtitle:"",pills:[],tiles:[],rows:[],button:"",footnote:"",col1Title:"",col1Cards:[],col2Title:"",col2Cards:[],col3Title:"",col3Cards:[],col4Title:"",col4Cards:[],barsHeading:"",bars:[],termLines:[],urlText:"",heroTitle:"",heroButton:"",products:[],align:"right"}};export{e as MockupMeta};
1
+ const e=["eyebrow","title","body"],t={label:"Mockup Card",defaultProps:{eyebrow:"",title:"",body:"",variant:"spec-card",cardHeader:"",badge:"",cardTitle:"",cardSubtitle:"",pills:[],tiles:[],rows:[],button:"",footnote:"",col1Title:"",col1Cards:[],col2Title:"",col2Cards:[],col3Title:"",col3Cards:[],col4Title:"",col4Cards:[],barsHeading:"",bars:[],termLines:[],urlText:"",heroTitle:"",heroButton:"",products:[],align:"right"}};export{e as MOCKUP_OWN_BOX_WORDS,t as MockupMeta};
@@ -1499,6 +1499,16 @@
1499
1499
  }
1500
1500
  }
1501
1501
  },
1502
+ "CardList": {
1503
+ "highlightBadge": {
1504
+ "type": "custom",
1505
+ "__text": {
1506
+ "control": "text",
1507
+ "label": "Highlight badge",
1508
+ "placeholder": "Most popular"
1509
+ }
1510
+ }
1511
+ },
1502
1512
  "ParagraphsA": {
1503
1513
  "eyebrow": {
1504
1514
  "type": "custom",
@@ -0,0 +1,14 @@
1
+ export type CardPick = {
2
+ label: string;
3
+ value: string;
4
+ };
5
+ export declare function cardPicks(props: Record<string, unknown>, { rows, label }?: {
6
+ rows?: string;
7
+ label?: string;
8
+ }): CardPick[];
9
+ export type PickSeed = {
10
+ options: CardPick[];
11
+ };
12
+ export declare function pickRow(seed: PickSeed, picks: CardPick[]): PickSeed;
13
+ export declare function newCard(words: Record<string, string>, prefix?: string): Record<string, string>;
14
+ export declare function withOwnCardKeys(props: Record<string, unknown>, rowsKey?: string): Record<string, unknown>;
@@ -0,0 +1 @@
1
+ import{newId as y}from"efficient-easel/data";import{declaredBlockSource as g,sourceChoices as w}from"../content/block-sources.js";import{cardKeyOf as C,cardRow as b}from"../content/card-template.js";import{say as x}from"../editor-words.js";function j(t,{rows:r="items",label:n="title"}={}){const o=g(t);return o?w(o).map(c=>({label:c.label,value:c.key})):(Array.isArray(t[r])?t[r]:[]).map((c,i)=>({label:typeof c?.[n]=="string"&&c[n].trim()||x("Card {n}",{n:i+1}),value:C(b(c),i)}))}const h=new WeakMap;function v(t,r){let n=h.get(t);n||h.set(t,n=new Map);const o=JSON.stringify(r);let a=n.get(o);return a||n.set(o,a={...t,options:[...t.options,...r]}),a}function B(t,r="card"){return Object.defineProperty({...t},"key",{get:()=>y(r),enumerable:!0})}function P(t,r="items"){if(!Array.isArray(t[r])||g(t))return t;const n=t[r],o=typeof t.highlightedCard=="string"?t.highlightedCard.trim():"",a=e=>e&&typeof e=="object"&&typeof e.key=="string"?e.key:"",c=!!o&&!n.some(e=>a(e)===o),i=new Set;let s=t.highlightedCard,l=!1;const k=n.map((e,m)=>{if(!e||typeof e!="object")return e;const f=a(e);if(f&&!i.has(f))return i.add(f),e;const u=!f&&c&&o===String(m+1);if(f||u){const d=y("card");return i.add(d),l=!0,u&&(s=d),{...e,key:d}}return e});return l?{...t,[r]:k,highlightedCard:s}:t}export{j as cardPicks,B as newCard,v as pickRow,P as withOwnCardKeys};
@@ -1,4 +1,4 @@
1
1
  type Props = Record<string, unknown>;
2
2
  export declare function withCardsTemplate(type: string | undefined, props: Props): Props;
3
- export declare function cardsFieldsFollowContent(props: Props): Props;
3
+ export declare function cardsFieldsFollowContent(props: Props, offers?: (field: string) => boolean): Props;
4
4
  export {};
@@ -1 +1 @@
1
- import{declaredBlockSource as u}from"../content/block-sources.js";import{nonEmptyString as C}from"../non-empty-string.js";import{CARD_ROW_FIELD_PROP as s}from"../content/card-template.js";import{CONTAINER_BLOCKS_SLOT as y}from"./container-blocks.js";import{SERVED_CARD_FIELDS as a,TYPED_CARD_FIELDS as c,cardsTemplateNodes as E}from"./blocks/general/Cards/card-seed.js";function O(e,t){if(e!=="Cards")return t;if(t.template!==void 0)return D(t);const r=C(t.id)??"Cards",o=u(t)?a:c;return{...t,template:E((m,n)=>n==="0"?`${r}~card`:`${r}~card.${n.slice(2)}`,o)}}const A=e=>{const[t,r]=e?[c,a]:[a,c];return new Map([[t.title,r.title],[t.body,r.body]])};function _(e,t){let r=null;return e.forEach((o,m)=>{const n=o?.props;if(!n)return;let i=n;const l=n[s];o.type==="Text"&&typeof l=="string"&&t.has(l)&&(i={...i,[s]:t.get(l)});const f=n[y];if(Array.isArray(f)){const d=_(f,t);d!==f&&(i={...i,[y]:d})}i!==n&&(r??=[...e],r[m]={...o,props:i})}),r??e}function D(e){if(!Array.isArray(e.template))return e;const t=_(e.template,A(!!u(e)));return t===e.template?e:{...e,template:t}}export{D as cardsFieldsFollowContent,O as withCardsTemplate};
1
+ import{declaredBlockSource as d}from"../content/block-sources.js";import{nonEmptyString as C}from"../non-empty-string.js";import{CARD_ROW_FIELD_PROP as s}from"../content/card-template.js";import{CONTAINER_BLOCKS_SLOT as y}from"./container-blocks.js";import{SERVED_CARD_FIELDS as m,TYPED_CARD_FIELDS as f,cardsTemplateNodes as E}from"./blocks/general/Cards/card-seed.js";function L(e,t){if(e!=="Cards")return t;if(t.template!==void 0)return D(t);const r=C(t.id)??"Cards",i=d(t)?m:f;return{...t,template:E((l,n)=>n==="0"?`${r}~card`:`${r}~card.${n.slice(2)}`,i)}}const A=e=>{const[t,r]=e?[f,m]:[m,f];return new Map([[t.title,r.title],[t.body,r.body]])};function _(e,t){let r=null;return e.forEach((i,l)=>{const n=i?.props;if(!n)return;let o=n;const a=n[s];i.type==="Text"&&typeof a=="string"&&t.has(a)&&(o={...o,[s]:t.get(a)});const c=n[y];if(Array.isArray(c)){const u=_(c,t);u!==c&&(o={...o,[y]:u})}o!==n&&(r??=[...e],r[l]={...i,props:o})}),r??e}function D(e,t){if(!Array.isArray(e.template))return e;const r=A(!!d(e)),i=t?new Map([...r].filter(([n,o])=>t(o)&&!t(n))):r;if(!i.size)return e;const l=_(e.template,i);return l===e.template?e:{...e,template:l}}export{D as cardsFieldsFollowContent,L as withCardsTemplate};
@@ -1 +1 @@
1
- import{SNAPSHOT_OBJECTS as s,HYDRATED_LISTS as l}from"./snapshot-contracts.js";const b={heading:"Main heading",body:"Add supporting copy.",eyebrow:"Label",button:"Button label",alt:"Image description",caption:"Image caption",address:null,phone:null,email:null,legal:null,generic:"Label"},r=[{semantic:"alt",name:/(^|[a-z])alt$|^imageLabel$|Alt$/i,label:/\balt text\b/i},{semantic:"caption",name:/caption/i,label:/\bcaption\b/i},{semantic:"email",name:/email/i,label:/\be-?mail\b/i},{semantic:"phone",name:/phone|tel$|mobile/i,label:/\bphone\b|\btelephone\b/i},{semantic:"address",name:/address|street|postcode|suburb|^hours$|^timezone$/i,label:/\baddress\b|\bopening hours\b/i},{semantic:"legal",name:/consent|finePrint|legal|disclaimer|copyright|abn|acn/i,label:/\bconsent\b|\bfine print\b|\blegal\b|\bdisclaimer\b/i},{semantic:"button",name:/^cta|Cta|button|Button|submitText|linkText|readLabel|viewLabel|archiveText|subscribedText/i,label:/\bbutton\b|\bcta\b|\blink text\b/i},{semantic:"eyebrow",name:/eyebrow|kicker|badge|^tag$|^num$|Number$|^label$|Label$|^meta|Meta$|^value$/i,label:/\beyebrow\b|\bkicker\b|\bbadge\b|\blabel\b|\bnumber\b|\btag\b/i},{semantic:"heading",name:/heading|Heading|^title|Title$|titleTop|titleBottom|^name$|question/i,label:/\bheading\b|\btitle\b/i},{semantic:"body",name:/body|description|^desc$|^intro|^lead|^dek$|^deck$|blurb|^copy$|quote|tagline|answer|^note$|footnote|^text$/i,label:/\bbody\b|\bdescription\b|\bblurb\b|\bintro\b|\bparagraph\b/i}];function g(e,a="",n=!1){for(const t of r)if(t.name?.test(e))return t.semantic;for(const t of r)if(t.label?.test(a))return t.semantic;return n?"body":"generic"}const c=["anchor"],d=/^href$|Href$|^url$|Url$|^link$|^mailto$|^tel$/;function E(e){return c.includes(e)||d.test(e)}const T={Reviews:["designCode"],ReviewForm:["designCode"],Form:["formSlug"]},v={HeroSingle:[{path:"eyebrow",semantic:"eyebrow",shape:"hidable"},{path:"titleTop",semantic:"heading",shape:"hidable"}],Hero:[{path:"tickerItems",semantic:"eyebrow",shape:"textList"}],ContactLocations:[{path:"sectionNumber",semantic:"eyebrow"},{path:"heading",semantic:"heading"},{path:"tagline",semantic:"body"},{path:"galleryKicker",semantic:"eyebrow"},{path:"galleryHint",semantic:"body"},{path:"locations[].groupName",semantic:"eyebrow"},{path:"locations[].name",semantic:"heading",neutral:"City name"},{path:"locations[].address",semantic:"address"},{path:"locations[].phone",semantic:"phone"},{path:"locations[].email",semantic:"email"},{path:"locations[].state",semantic:"address"},{path:"locations[].country",semantic:"address"},{path:"locations[].region",semantic:"address"},{path:"locations[].hours",semantic:"address"},{path:"locations[].timezone",semantic:"address"}]},p={Gallery:{source:{verb:"snapshot",keep:[]}},ProductHero:{source:{verb:"snapshot",keep:[]}},SpecTable:{source:{verb:"snapshot",keep:[]},wheel:{verb:"reference"},finish:{verb:"reference"},size:{verb:"reference"}},CollectionCard:{collection:{verb:"snapshot",keep:[]}},FooterMenu:{menu:{verb:"snapshot",keep:[]}},MenuBlock:{menu:{verb:"snapshot",keep:[]}},ProductGrid:{design_codes:{verb:"reference"}},ProductRef:{code:{verb:"reference"},finish:{verb:"reference"}},FitmentTable:{wheel:{verb:"reference"}},GalleryItem:{fromProduct:{verb:"reference"}},Footprint:{"offices[].group":{verb:"groupKey"},"offices[].lat":{verb:"pii"},"offices[].lng":{verb:"pii"},"offices[].geocode":{verb:"pii"}}};p.ContactLocations={"locations[].lat":{verb:"pii"},"locations[].lng":{verb:"pii"},"locations[].mapsUrl":{verb:"pii"},"locations[].geocode":{verb:"pii"}};const S=["previewProduct"],y=Object.fromEntries(Object.entries(s).map(([e,a])=>[e,Object.keys(a)])),_=Object.fromEntries(Object.entries(l).map(([e,a])=>[e,[...a]])),m=["email","phone","address"],u={email:"Email address",phone:"Phone number",address:"Address"},h=[{rule:"email address",re:/[\w.+-]+@[\w-]+\.[\w.]+/},{rule:"url or domain",re:/https?:\/\/|\bwww\.|\.(?:com|net|org|au|co|io)\b/i},{rule:"phone number",re:/(?:\+\d[\d\s-]{7,}|\b0\d[\d\s-]{7,})/},{rule:"street address",re:/\b\d+[a-z]?\s+[A-Z][a-z]+\s+(?:St|Street|Rd|Road|Ave|Avenue|Hwy|Highway|Dr|Drive)\b/}];function $(e,a){const n=(a??"").trim();if(n){const t=h.find(({re:i})=>i.test(n));if(!t)return{ok:!0,neutral:n,source:"declared"};const o=m.includes(e)?u[e]:void 0;return o?{ok:!0,neutral:o,source:"safe-substitute"}:{ok:!1,reason:`declared placeholder ${JSON.stringify(n)} looks like a ${t.rule}. A placeholder is copied verbatim into every platform template — make it generic.`}}return{ok:!0,neutral:b[e],source:"fallback"}}export{v as CUSTOM_FIELD_TEXT,p as CUSTOM_FIELD_VALUES,_ as HYDRATED_PROPS_FROM_MEDIA_CONTRACT,d as LINK_TEXT_PROP_RE,h as PLACEHOLDER_FORBIDDEN,T as REFERENCE_TEXT_FIELDS,S as ROOT_REFERENCE_PROPS,u as SAFE_SEMANTIC_PLACEHOLDER,m as SEMANTICS_WITH_UNSAFE_PLACEHOLDERS,b as SEMANTIC_FALLBACKS,y as SNAPSHOT_PROPS_FROM_MEDIA_CONTRACT,c as STRUCTURAL_TEXT_PROPS,g as classifyTextSemantic,E as isStructuralTextProp,$ as resolveNeutralValue};
1
+ import{SNAPSHOT_OBJECTS as s,HYDRATED_LISTS as l}from"./snapshot-contracts.js";const b={heading:"Main heading",body:"Add supporting copy.",eyebrow:"Label",button:"Button label",alt:"Image description",caption:"Image caption",address:null,phone:null,email:null,legal:null,generic:"Label"},o=[{semantic:"alt",name:/(^|[a-z])alt$|^imageLabel$|Alt$/i,label:/\balt text\b/i},{semantic:"caption",name:/caption/i,label:/\bcaption\b/i},{semantic:"email",name:/email/i,label:/\be-?mail\b/i},{semantic:"phone",name:/phone|tel$|mobile/i,label:/\bphone\b|\btelephone\b/i},{semantic:"address",name:/address|street|postcode|suburb|^hours$|^timezone$/i,label:/\baddress\b|\bopening hours\b/i},{semantic:"legal",name:/consent|finePrint|legal|disclaimer|copyright|abn|acn/i,label:/\bconsent\b|\bfine print\b|\blegal\b|\bdisclaimer\b/i},{semantic:"button",name:/^cta|Cta|button|Button|submitText|linkText|readLabel|viewLabel|archiveText|subscribedText/i,label:/\bbutton\b|\bcta\b|\blink text\b/i},{semantic:"eyebrow",name:/eyebrow|kicker|badge|^tag$|^num$|Number$|^label$|Label$|^meta|Meta$|^value$/i,label:/\beyebrow\b|\bkicker\b|\bbadge\b|\blabel\b|\bnumber\b|\btag\b/i},{semantic:"heading",name:/heading|Heading|^title|Title$|titleTop|titleBottom|^name$|question/i,label:/\bheading\b|\btitle\b/i},{semantic:"body",name:/body|description|^desc$|^intro|^lead|^dek$|^deck$|blurb|^copy$|quote|tagline|answer|^note$|footnote|^text$/i,label:/\bbody\b|\bdescription\b|\bblurb\b|\bintro\b|\bparagraph\b/i}];function g(e,a="",i=!1){for(const t of o)if(t.name?.test(e))return t.semantic;for(const t of o)if(t.label?.test(a))return t.semantic;return i?"body":"generic"}const c=["anchor"],d=/^href$|Href$|^url$|Url$|^link$|^mailto$|^tel$/;function E(e){return c.includes(e)||d.test(e)}const T={Reviews:["designCode"],ReviewForm:["designCode"],Form:["formSlug"]},y={HeroSingle:[{path:"eyebrow",semantic:"eyebrow",shape:"hidable"},{path:"titleTop",semantic:"heading",shape:"hidable"}],CardList:[{path:"items[].title",semantic:"heading"},{path:"items[].body",semantic:"body"}],Hero:[{path:"tickerItems",semantic:"eyebrow",shape:"textList"}],ContactLocations:[{path:"sectionNumber",semantic:"eyebrow"},{path:"heading",semantic:"heading"},{path:"tagline",semantic:"body"},{path:"galleryKicker",semantic:"eyebrow"},{path:"galleryHint",semantic:"body"},{path:"locations[].groupName",semantic:"eyebrow"},{path:"locations[].name",semantic:"heading",neutral:"City name"},{path:"locations[].address",semantic:"address"},{path:"locations[].phone",semantic:"phone"},{path:"locations[].email",semantic:"email"},{path:"locations[].state",semantic:"address"},{path:"locations[].country",semantic:"address"},{path:"locations[].region",semantic:"address"},{path:"locations[].hours",semantic:"address"},{path:"locations[].timezone",semantic:"address"}]},p={Gallery:{source:{verb:"snapshot",keep:[]}},ProductHero:{source:{verb:"snapshot",keep:[]}},SpecTable:{source:{verb:"snapshot",keep:[]},wheel:{verb:"reference"},finish:{verb:"reference"},size:{verb:"reference"}},CollectionCard:{collection:{verb:"snapshot",keep:[]}},FooterMenu:{menu:{verb:"snapshot",keep:[]}},MenuBlock:{menu:{verb:"snapshot",keep:[]}},ProductGrid:{design_codes:{verb:"reference"}},ProductRef:{code:{verb:"reference"},finish:{verb:"reference"}},FitmentTable:{wheel:{verb:"reference"}},GalleryItem:{fromProduct:{verb:"reference"}},Footprint:{"offices[].group":{verb:"groupKey"},"offices[].lat":{verb:"pii"},"offices[].lng":{verb:"pii"},"offices[].geocode":{verb:"pii"}}};p.ContactLocations={"locations[].lat":{verb:"pii"},"locations[].lng":{verb:"pii"},"locations[].mapsUrl":{verb:"pii"},"locations[].geocode":{verb:"pii"}};const v=["previewProduct"],S=Object.fromEntries(Object.entries(s).map(([e,a])=>[e,Object.keys(a)])),_=Object.fromEntries(Object.entries(l).map(([e,a])=>[e,[...a]])),m=["email","phone","address"],u={email:"Email address",phone:"Phone number",address:"Address"},h=[{rule:"email address",re:/[\w.+-]+@[\w-]+\.[\w.]+/},{rule:"url or domain",re:/https?:\/\/|\bwww\.|\.(?:com|net|org|au|co|io)\b/i},{rule:"phone number",re:/(?:\+\d[\d\s-]{7,}|\b0\d[\d\s-]{7,})/},{rule:"street address",re:/\b\d+[a-z]?\s+[A-Z][a-z]+\s+(?:St|Street|Rd|Road|Ave|Avenue|Hwy|Highway|Dr|Drive)\b/}];function $(e,a){const i=(a??"").trim();if(i){const t=h.find(({re:r})=>r.test(i));if(!t)return{ok:!0,neutral:i,source:"declared"};const n=m.includes(e)?u[e]:void 0;return n?{ok:!0,neutral:n,source:"safe-substitute"}:{ok:!1,reason:`declared placeholder ${JSON.stringify(i)} looks like a ${t.rule}. A placeholder is copied verbatim into every platform template — make it generic.`}}return{ok:!0,neutral:b[e],source:"fallback"}}export{y as CUSTOM_FIELD_TEXT,p as CUSTOM_FIELD_VALUES,_ as HYDRATED_PROPS_FROM_MEDIA_CONTRACT,d as LINK_TEXT_PROP_RE,h as PLACEHOLDER_FORBIDDEN,T as REFERENCE_TEXT_FIELDS,v as ROOT_REFERENCE_PROPS,u as SAFE_SEMANTIC_PLACEHOLDER,m as SEMANTICS_WITH_UNSAFE_PLACEHOLDERS,b as SEMANTIC_FALLBACKS,S as SNAPSHOT_PROPS_FROM_MEDIA_CONTRACT,c as STRUCTURAL_TEXT_PROPS,g as classifyTextSemantic,E as isStructuralTextProp,$ as resolveNeutralValue};
@@ -1,7 +1,10 @@
1
1
  import type { CopyThemeColor } from "efficient-easel/copy";
2
- import { type ColorSlot } from "efficient-shell/markup";
2
+ import { type ColorSlot, type FillColorSlot } from "efficient-shell/markup";
3
3
  export declare function inkTokenOf(slot: string): string;
4
+ export declare function fillSlotNamed(value: unknown): FillColorSlot | null;
4
5
  export declare function partColourName(value: string): string;
5
6
  export declare function partInkCss(value: string | undefined): string;
6
- export declare function partThemeColors(read?: Partial<Record<ColorSlot, string>> | null, slots?: readonly string[]): CopyThemeColor[];
7
+ export declare function partThemeColors(read?: Partial<Record<FillColorSlot, string>> | null, slots?: readonly string[]): CopyThemeColor[];
8
+ export declare function fillInkCss(name: string): string;
9
+ export declare function fillSlotOfInk(css: string | undefined): FillColorSlot | null;
7
10
  export declare function readInks(element: HTMLElement): Partial<Record<ColorSlot, string>>;
@@ -1 +1 @@
1
- import{parseHexColor as l}from"efficient-shell/format";import{COLOR_SLOTS as m,colorRole as S}from"efficient-shell/markup";import{say as g}from"../editor-words.js";import{COLOUR_TOKEN as s}from"../word-styles.js";const p={main:s.accent,text:s.text,background:"var(--bg)",muted:s.labels},k={main:"Main",text:"Text",background:"Background",muted:"Muted"};function a(t){return Object.hasOwn(p,t)?p[t]??"":""}const d={accent:"main",labels:"muted"};function C(t){return Object.hasOwn(d,t)?d[t]:t}function T(t){if(!t)return"";if(t.startsWith("#"))return l(t)===t.toLowerCase()?t:"";const o=S(C(t));return o?.kind==="slot"?a(o.slot):""}const N="#9ca3af";function y(t,o=m){return o.flatMap(r=>{const n=k[r];return a(r)&&n?[{name:r,label:g(n),value:t?.[r]||N}]:[]})}function E(t){const o={},r=t.ownerDocument,n=r?.defaultView;if(!r||!n)return o;const O=n.getComputedStyle(t),e=r.createElement("canvas").getContext("2d");for(const u of m){const f=a(u);if(!f)continue;const b=f.replace(/^var\((--[\w-]+)\)$/,"$1"),i=O.getPropertyValue(b).trim();if(!i)continue;let c=x(i);!c&&e&&(e.fillStyle="#000000",e.fillStyle=i,c=x(String(e.fillStyle))),c&&(o[u]=c)}return o}function x(t){const o=t.trim().toLowerCase();if(o.startsWith("#"))return l(o);const r=o.match(/^rgba?\(\s*(\d+)[\s,]+(\d+)[\s,]+(\d+)/);return r?`#${r.slice(1,4).map(n=>Math.min(255,Number(n)).toString(16).padStart(2,"0")).join("")}`:null}export{a as inkTokenOf,C as partColourName,T as partInkCss,y as partThemeColors,E as readInks};
1
+ import{parseHexColor as u}from"efficient-shell/format";import{COLOR_SLOTS as a,FILL_COLOR_SLOTS as O,colorRole as w,fillColorRole as m}from"efficient-shell/markup";import{themeSlotOf as p,UNREAD_INK as L}from"./theme-slots.js";function e(t){return p(t)?.ink??""}function I(t){if(typeof t!="string")return null;const o=m(t.trim());return o?.kind==="slot"&&e(o.slot)?o.slot:null}const d={accent:"main",labels:"muted"};function S(t){return Object.hasOwn(d,t)?d[t]:t}function N(t){if(!t)return"";if(t.startsWith("#"))return u(t)===t.toLowerCase()?t:"";const o=w(S(t));return o?.kind==="slot"?e(o.slot):""}function b(t,o=a){return o.flatMap(n=>{const r=p(n);return r?.ink?[{name:n,label:r.label(),value:t?.[n]||L}]:[]})}function _(t){const o=m(S(t));return o?.kind==="slot"?e(o.slot):""}function R(t){const o=t?.trim();return o?O.find(n=>e(n)===o)??null:null}function T(t){const o={},n=t.ownerDocument,r=n?.defaultView;if(!n||!r)return o;const x=r.getComputedStyle(t),l=n.createElement("canvas").getContext("2d");for(const c of a){const f=e(c);if(!f)continue;const C=f.replace(/^var\((--[\w-]+)\)$/,"$1"),s=x.getPropertyValue(C).trim();if(!s)continue;let i=k(s);!i&&l&&(l.fillStyle="#000000",l.fillStyle=s,i=k(String(l.fillStyle))),i&&(o[c]=i)}return o}function k(t){const o=t.trim().toLowerCase();if(o.startsWith("#"))return u(o);const n=o.match(/^rgba?\(\s*(\d+)[\s,]+(\d+)[\s,]+(\d+)/);return n?`#${n.slice(1,4).map(r=>Math.min(255,Number(r)).toString(16).padStart(2,"0")).join("")}`:null}export{_ as fillInkCss,I as fillSlotNamed,R as fillSlotOfInk,e as inkTokenOf,S as partColourName,N as partInkCss,b as partThemeColors,T as readInks};
@@ -0,0 +1,20 @@
1
+ import type { CopyThemeColor } from "efficient-easel/copy";
2
+ import { normalizeThemeColors, type ThemeValue } from "../theme.js";
3
+ export interface ThemeSlot {
4
+ ink: string;
5
+ page: string;
6
+ key: keyof ReturnType<typeof normalizeThemeColors>;
7
+ label: () => string;
8
+ words: (n: number) => string;
9
+ }
10
+ export declare function themeSlotOf(slot: string): ThemeSlot | undefined;
11
+ export declare const UNREAD_INK = "#9ca3af";
12
+ export declare function slotFill(slot: string, colors: ReturnType<typeof normalizeThemeColors>, n: number): {
13
+ hex: string;
14
+ words: string;
15
+ } | null;
16
+ export declare function fillThemeColors(colors: ReturnType<typeof normalizeThemeColors>, n: number): CopyThemeColor[];
17
+ export declare function themePresets(value?: ThemeValue | null): {
18
+ value: string;
19
+ label: string;
20
+ }[];
@@ -0,0 +1 @@
1
+ import{parseHexColor as f}from"efficient-shell/format";import{FILL_COLOR_SLOTS as p}from"efficient-shell/markup";import{say as o}from"../editor-words.js";import{SECTION_PALETTE as h}from"../content/ink.js";import{COLOUR_TOKEN as a}from"../word-styles.js";import{normalizeTheme as T}from"../theme.js";const l=e=>{const n=h.find(t=>t.role===e);return n?`var(${n.token})`:""},b=e=>l(e)?`var(--theme-${e})`:"",m={main:{ink:a.accent,page:a.accent,key:"accent",label:()=>o("Main"),words:e=>o("Theme {n} main color",{n:e})},text:{ink:a.text,page:a.text,key:"text",label:()=>o("Text"),words:e=>o("Theme {n} text color",{n:e})},background:{ink:l("bg"),page:b("bg"),key:"background",label:()=>o("Background"),words:e=>o("Theme {n} background",{n:e})},muted:{ink:a.labels,page:a.labels,key:"muted",label:()=>o("Muted"),words:e=>o("Theme {n} muted color",{n:e})},surface:{ink:l("surface"),page:l("surface"),key:"surface",label:()=>o("Surface"),words:e=>o("Theme {n} surface color",{n:e})}};function i(e){return Object.hasOwn(m,e)?m[e]:void 0}const x="#9ca3af";function g(e,n,t){const r=i(e);return r?{hex:f(n[r.key]??"")??"",words:r.words(t)}:null}function C(e,n){return p.flatMap(t=>{const r=g(t,e,n);return r&&i(t)?.ink?[{name:t,label:r.words,value:r.hex||x}]:[]})}const w=["main","text","background"];function I(e){const n=new Set,t=[];return T(e).themes.forEach((r,d)=>{for(const k of w){const c=i(k),u=c?r[c.key]:void 0,s=typeof u=="string"&&u?f(u):null;!c||!s||n.has(s)||(n.add(s),t.push({value:s,label:c.words(d+1)}))}}),t}export{x as UNREAD_INK,C as fillThemeColors,g as slotFill,I as themePresets,i as themeSlotOf};
@@ -1139,6 +1139,7 @@ export declare const WEB_BUILDER_WORDS: {
1139
1139
  readonly "Success heading": "Success heading";
1140
1140
  readonly "Success message": "Success message";
1141
1141
  readonly Superscript: "Superscript";
1142
+ readonly Surface: "Surface";
1142
1143
  readonly "Switch now": "Switch now";
1143
1144
  readonly "Switch to Box footer": "Switch to Box footer";
1144
1145
  readonly "Synced from the blog post.": "Synced from the blog post.";
@@ -1214,6 +1215,7 @@ export declare const WEB_BUILDER_WORDS: {
1214
1215
  readonly "Theme {n} background": "Theme {n} background";
1215
1216
  readonly "Theme {n} main color": "Theme {n} main color";
1216
1217
  readonly "Theme {n} muted color": "Theme {n} muted color";
1218
+ readonly "Theme {n} surface color": "Theme {n} surface color";
1217
1219
  readonly "Theme {n} text color": "Theme {n} text color";
1218
1220
  readonly "These settings apply to every view.": "These settings apply to every view.";
1219
1221
  readonly "They are saved in Version history as \u201CDraft before restore\u201D, so you can get them back.": "They are saved in Version history as “Draft before restore”, so you can get them back.";
@@ -1274,6 +1276,7 @@ export declare const WEB_BUILDER_WORDS: {
1274
1276
  readonly "Two image galleries with tabs and filters.": "Two image galleries with tabs and filters.";
1275
1277
  readonly "Two tall": "Two tall";
1276
1278
  readonly "Two, then threes": "Two, then threes";
1279
+ readonly "Two, then threes \u00B7 photo": "Two, then threes · photo";
1277
1280
  readonly Type: "Type";
1278
1281
  readonly "Type a postcode or address": "Type a postcode or address";
1279
1282
  readonly "Typed by hand": "Typed by hand";
@@ -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 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",Subtitle:"Subtitle","Subtitle font size":"Subtitle font size",Subtotal:"Subtotal","Success heading":"Success heading","Success message":"Success message",Superscript:"Superscript","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} 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",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 people *say.*":"What people *say.*","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.","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 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",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 people *say.*":"What people *say.*","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.","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};
@@ -73,6 +73,7 @@ export declare function surfaceTwoTone(preset: ThemeColors): string;
73
73
  export declare function sectionBandTone(preset: ThemeColors): string;
74
74
  export declare function bandPresetFor(preset: ThemeColors): ThemeColors;
75
75
  export declare function bandPresetIndex(presets: readonly ThemeColors[], page: number): number;
76
+ export declare function surfacePresetIndex(presets: readonly ThemeColors[], page: number): number;
76
77
  export declare function darkPresetIndex(presets: readonly ThemeColors[] | null | undefined, page?: number): number;
77
78
  export declare function darkBandIndex(theme: ThemeValue | null | undefined): number;
78
79
  export declare const THEME_SURFACE_KEYS: readonly ["--theme-bg", "--theme-surface", "--theme-surface-2", "--theme-line", "--theme-muted"];