efficient-storefront-blocks 0.95.0 → 0.97.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/dist/chunks/{EditorPreviewCheckout-3F3CP5MR.js → EditorPreviewCheckout-O7F36ZXB.js} +1 -1
  3. package/dist/chunks/{SiteEditorProvider-HN7TFLUJ.js → SiteEditorProvider-VZUU5OPZ.js} +1 -1
  4. package/dist/chunks/chunk-AOZEO73W.js +401 -0
  5. package/dist/chunks/{chunk-CYLLSHDF.js → chunk-MXWQOFM6.js} +1 -1
  6. package/dist/chunks/chunk-NYEB6V2R.js +1 -0
  7. package/dist/chunks/chunk-SQ62RGWV.js +1 -0
  8. package/dist/chunks/chunk-UFEEFZ5M.js +1 -0
  9. package/dist/chunks/{fitment-data-Z62WUQGC.js → fitment-data-MCGKHSA4.js} +1 -1
  10. package/dist/contract.js +10 -2
  11. package/dist/editor/lib/document/blocks/commerce/AlloyWheelsListing/fields.js +1 -1
  12. package/dist/editor/lib/document/config.d.ts +1 -0
  13. package/dist/editor/lib/document/config.js +1 -1
  14. package/dist/editor/lib/storefront-editor-words.d.ts +5 -0
  15. package/dist/editor/lib/storefront-editor-words.js +1 -1
  16. package/dist/editor.css +1 -1
  17. package/dist/index.js +57 -62
  18. package/dist/links.js +1 -1
  19. package/dist/render/app/globals.css +18 -5
  20. package/dist/render/built-with.json +1 -1
  21. package/dist/render/components/ContactRouting.d.ts +6 -0
  22. package/dist/render/components/ContactRouting.js +1 -1
  23. package/dist/render/components/GridCardTemplate.js +1 -1
  24. package/dist/render/components/ProductCard.js +1 -1
  25. package/dist/render/components/ProductHeroPanel.d.ts +3 -1
  26. package/dist/render/components/ProductHeroPanel.js +1 -1
  27. package/dist/render/components/WheelCardFrame.d.ts +3 -10
  28. package/dist/render/components/WheelCardFrame.js +1 -1
  29. package/dist/render/components/card-pieces/CardSurfaceFrame.d.ts +12 -0
  30. package/dist/render/components/card-pieces/CardSurfaceFrame.js +1 -0
  31. package/dist/render/components/card-pieces/card-row.js +1 -1
  32. package/dist/render/components/catalog/ShopperChips.d.ts +7 -4
  33. package/dist/render/components/catalog/ShopperChips.js +1 -1
  34. package/dist/render/components/catalog/ShopperFilters.d.ts +1 -0
  35. package/dist/render/components/catalog/ShopperFilters.js +1 -1
  36. package/dist/render/components/wheels-plp/AlloyWheelsListing.d.ts +2 -2
  37. package/dist/render/components/wheels-plp/AlloyWheelsListing.js +1 -1
  38. package/dist/render/components/wheels-plp/PlpFacetRows.d.ts +6 -4
  39. package/dist/render/components/wheels-plp/PlpFacetRows.js +1 -1
  40. package/dist/render/components/wheels-plp/PlpSidebar.d.ts +19 -14
  41. package/dist/render/components/wheels-plp/PlpSidebar.js +1 -1
  42. package/dist/render/components/wheels-plp/PlpTypePicker.d.ts +2 -5
  43. package/dist/render/lib/api/index.d.ts +3 -1
  44. package/dist/render/lib/api/index.js +1 -1
  45. package/dist/render/lib/api/types.d.ts +28 -0
  46. package/dist/render/lib/content/booking-card-seed.d.ts +4 -0
  47. package/dist/render/lib/content/booking-card-seed.js +1 -1
  48. package/dist/render/lib/content/contact-card-seed.d.ts +4 -0
  49. package/dist/render/lib/content/contact-card-seed.js +1 -1
  50. package/dist/render/lib/content/facet-row-seed.d.ts +14 -0
  51. package/dist/render/lib/content/facet-row-seed.js +1 -1
  52. package/dist/render/lib/content/filter-card-seed.js +1 -1
  53. package/dist/render/lib/content/hero-option-seed.js +1 -1
  54. package/dist/render/lib/content/square-box.d.ts +4 -0
  55. package/dist/render/lib/content/square-box.js +1 -0
  56. package/dist/render/lib/document/blocks/commerce/AlloyWheelsListing/render.js +1 -1
  57. package/dist/render/lib/document/blocks/commerce/FilterBlock/meta.d.ts +4 -0
  58. package/dist/render/lib/document/blocks/commerce/FilterBlock/meta.js +1 -1
  59. package/dist/render/lib/document/blocks/commerce/FilterBlock/render.js +1 -1
  60. package/dist/render/lib/document/blocks/commerce/FilterChipsBlock/render.js +1 -1
  61. package/dist/render/lib/document/blocks/commerce/ProductHero/render.js +1 -1
  62. package/dist/render/lib/document/blocks/service/ContactRouting/render.js +1 -1
  63. package/dist/render/lib/document/card-templates.js +1 -1
  64. package/dist/render/lib/document/render-config.d.ts +1 -0
  65. package/dist/render/lib/document/render-config.js +1 -1
  66. package/dist/render/lib/document/section-to-box-rows-detail.js +1 -1
  67. package/dist/render/lib/document/section-to-box-rows-listing.d.ts +2 -0
  68. package/dist/render/lib/document/section-to-box-rows-listing.js +1 -0
  69. package/dist/render/lib/document/section-to-box-rows-reviews.js +1 -1
  70. package/dist/render/lib/document/section-to-box-rows-service.js +1 -1
  71. package/dist/render/lib/document/section-to-box-rows-spec.js +1 -1
  72. package/dist/words.d.ts +21 -0
  73. package/dist/words.js +5 -5
  74. package/package.json +5 -4
  75. package/dist/chunks/chunk-7SMQDDLZ.js +0 -1
  76. package/dist/chunks/chunk-GW5M2ATK.js +0 -1
  77. package/dist/chunks/chunk-SUKEQRMP.js +0 -389
  78. package/dist/chunks/chunk-WLMM7L6N.js +0 -1
  79. package/dist/render/components/ProductCardChrome.d.ts +0 -38
  80. package/dist/render/components/ProductCardChrome.js +0 -1
  81. /package/dist/chunks/{chunk-SUKEQRMP.js.LEGAL.txt → chunk-AOZEO73W.js.LEGAL.txt} +0 -0
@@ -126,6 +126,20 @@ export declare const NAMED_EXCEPTIONS: readonly [{
126
126
  readonly reason: "The colour dot inside its 1 px ring (13 px less the ring each side), as the old rail drew it.";
127
127
  readonly owner: "storefront sections owner";
128
128
  readonly due: "2026-12-18";
129
+ }, {
130
+ readonly part: "Tick box";
131
+ readonly kind: "corner";
132
+ readonly value: 2;
133
+ readonly reason: "The browser's own checkbox corners (2 px on 16 px), below the shell's smallest corner step (--radius-sm 4 px); kept so the tick box keeps the rail's look.";
134
+ readonly owner: "storefront sections owner";
135
+ readonly due: "2026-12-18";
136
+ }, {
137
+ readonly part: "Tick";
138
+ readonly kind: "corner";
139
+ readonly value: 1;
140
+ readonly reason: "The tick box's ground inside its 1 px ring follows the box's 2 px corners (2 - 1).";
141
+ readonly owner: "storefront sections owner";
142
+ readonly due: "2026-12-18";
129
143
  }, {
130
144
  readonly part: "aside";
131
145
  readonly kind: "padding";
@@ -1 +1 @@
1
- import{BOX_SWATCH_PROP as d}from"efficient-web-builder/format/lib/content/box-background";import{BOX_ROW_IMAGE_PROP as x}from"efficient-web-builder/format/lib/content/box-card-rule";import{BOX_HIDE_WHEN_ROW_EMPTY as p}from"efficient-web-builder/format/lib/content/card-template";import{BOX_TYPE as t,CONTAINER_BLOCKS_SLOT as n}from"efficient-web-builder/format/lib/document/container-blocks";import{rowFieldTextSeed as k}from"efficient-web-builder/format/lib/document/blocks/general/Cards/card-seed";import{BOX as _,DIM as C,INNER_BOX as s,TEXT as m,boxPadding as c,seedNodes as b}from"efficient-web-builder/format/lib/document/seed-parts";const T="facetTemplate",I="Filter option template",B=[{key:"facetLabel",label:"Filter option"},{key:"facetName",label:"Type name"},{key:"facetCount",label:"Option count"},{key:"facetColour",label:"Option colour",kind:"colour"},{key:"facetTickFill",label:"Tick box fill",kind:"colour"},{key:"facetTick",label:"Tick mark",kind:"image"},{key:"facetTickMark",label:"Tick box shown"},{key:"facetRadioMark",label:"Round mark shown"},{key:"facetDot",label:"Round mark dot",kind:"colour"}],y="sf-facet-tick-picture",E="data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%271%200.75%2014%2014%27%20id%3D%27"+y+"%27%3E%3Cpath%20d%3D%27M3.2%208%206.4%2011.2%2012.8%203.2%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272.56%27%2F%3E%3C%2Fsvg%3E",W="--sf-facet-tick",K="[&_[data-sf-card-state~=selected]_.sf-card[style*=sf-facet-tick-picture]]:[background-image:none]! [&_[data-sf-card-state~=selected]_.sf-card[style*=sf-facet-tick-picture]]:[background-color:var(--accent-ink)]! [&_[data-sf-card-state~=selected]_.sf-card[style*=sf-facet-tick-picture]]:[-webkit-mask:var(--sf-facet-tick)_center/cover_no-repeat] [&_[data-sf-card-state~=selected]_.sf-card[style*=sf-facet-tick-picture]]:[mask:var(--sf-facet-tick)_center/cover_no-repeat]";function X(e,r){return{facetLabel:e.label,facetName:"",facetCount:String(e.count),facetColour:e.swatch??"",facetTickFill:r?"main":"",facetTick:r?E:"",facetTickMark:"tick",facetRadioMark:"",facetDot:""}}function H(e,r){return{facetLabel:"",facetName:e.label,facetCount:String(e.count),facetColour:"",facetTickFill:r?"main":"",facetTick:"",facetTickMark:"",facetRadioMark:"radio",facetDot:r?"main":""}}const z=["Text","ImageBlock",t],h={..._,direction:"row",align:"center",phoneRow:2,sharePhone:"content",wrapPhone:"nowrap"},i=(e,r)=>({...s,widthFit:"fixed",width:e,minWidth:e,sectionHeightMode:"fixed",sectionHeightValue:e,sectionHeightUnit:"px",...r}),f=13,l=10,o="2026-12-18",a="storefront sections owner",G=[{part:"facetLabel",kind:"size",value:f,reason:"The old rail's option words were 13 px; kept so no facet word moves.",owner:a,due:o},{part:"facetName",kind:"size",value:f,reason:"A type's name takes the facet words' 13 px, so the type picker has the same rail look.",owner:a,due:o},{part:"Option",kind:"gap",value:l,reason:"The old rail's 10 px between the option and its count; kept so no word moves.",owner:a,due:o},{part:"Choice",kind:"gap",value:l,reason:"The old rail's 10 px between tick box, dot and words; kept so no word moves.",owner:a,due:o},{part:"Tick box",kind:"padding",value:1,reason:"The 1 px ring round the tick box, drawn as the Box's own Fill inside 1 px padding.",owner:a,due:o},{part:"Radio",kind:"padding",value:1,reason:"The 1 px ring round the round mark, drawn as the Box's own Fill inside 1 px padding.",owner:a,due:o},{part:"Radio ground",kind:"padding",value:3,reason:"The 3 px between the round mark's ring and its 8 px dot, as the browser's own radio.",owner:a,due:o},{part:"Tick",kind:"box",value:14,reason:"The tick box's ground inside its 1 px ring: 16 px less the ring each side, the browser's own checkbox size.",owner:a,due:o},{part:"Radio ground",kind:"box",value:14,reason:"The round mark's ground inside its 1 px ring: 16 px less the ring each side, the browser's own radio size.",owner:a,due:o},{part:"Ring",kind:"box",value:13,reason:"The colour dot's 1 px ring as the old rail drew it (13 px round); kept so no swatch or word moves.",owner:a,due:o},{part:"Colour",kind:"box",value:11,reason:"The colour dot inside its 1 px ring (13 px less the ring each side), as the old rail drew it.",owner:a,due:o},{part:"aside",kind:"padding",value:22,reason:"The rail box's right padding at lg (PlpSidebar lg:pr-[22px]): 12 px room for the picked frame plus main's 10 px scrollbar room, so the content stays main's 258 px wide.",owner:a,due:o}],R={size:f,case:"capitalize",lineHeight:1.5},O={size:f,case:"none",lineHeight:1.5},A={textStyle:"body-5",size:11,case:"none",letterSpacing:0,lineHeight:1.5},w="muted",g="surface",F=()=>({type:t,props:{...h,name:"Option",justify:"between",gap:l,gapPhone:l,...c(4,12)},slots:{[n]:[{type:t,props:{...h,name:"Choice",gap:l,gapPhone:l,minWidth:0},slots:{[n]:[{type:t,props:{...s,name:"Tick mark",[p]:["facetTickMark"]},slots:{[n]:[{type:t,props:{...i(16,{sectionCorners:2,fillColor:w,[d]:"facetTickFill",...c(1,1)}),name:"Tick box"},slots:{[n]:[{type:t,props:{...i(14,{sectionCorners:1,fillColor:g,[d]:"facetTickFill",[x]:"facetTick",...c(0,0)}),name:"Tick"}}]}}]}},{type:t,props:{...s,name:"Round mark",[p]:["facetRadioMark"]},slots:{[n]:[{type:t,props:{...i(16,{sectionCorners:8,fillColor:w,[d]:"facetTickFill",...c(1,1)}),name:"Radio"},slots:{[n]:[{type:t,props:{...i(14,{sectionCorners:7,fillColor:g,...c(3,3)}),name:"Radio ground"},slots:{[n]:[{type:t,props:{...i(8,{sectionCorners:4,[d]:"facetDot",...c(0,0)}),name:"Dot"}}]}}]}}]}},{type:t,props:{...s,name:"Swatch",[p]:["facetColour"]},slots:{[n]:[{type:t,props:{...i(13,{sectionCorners:7,sectionBorder:{width:1}}),name:"Ring"},slots:{[n]:[{type:t,props:{...i(11,{sectionCorners:6,[d]:"facetColour"}),name:"Colour"}}]}}]}},{type:t,props:{...s,name:"Label",[p]:["facetLabel"]},slots:{[n]:[k("facetLabel",{...m,tag:"span",minWidth:0},R)]}},{type:t,props:{...s,name:"Name",[p]:["facetName"]},slots:{[n]:[k("facetName",{...m,tag:"span",minWidth:0},O)]}}]}},k("facetCount",{...C,tag:"span"},A)]}});function L(e){return b([F()],(r,u)=>u==="0"?`${e}~facet`:`${e}~facet.${u.slice(2)}`)}function U(e){if(e[T]!==void 0)return e;const r=typeof e.id=="string"&&e.id.trim()?e.id:"AlloyWheelsListing";return{...e,[T]:L(r)}}export{B as FACET_ROW_FIELDS,z as FACET_TEMPLATE_ALLOW,I as FACET_TEMPLATE_LABEL,T as FACET_TEMPLATE_SLOT,E as FACET_TICK,K as FACET_TICK_INK_CLASS,y as FACET_TICK_MARK,W as FACET_TICK_VAR,G as NAMED_EXCEPTIONS,X as facetRow,L as facetRowSeed,H as typeRow,U as withFacetTemplate};
1
+ import{BOX_SWATCH_PROP as c}from"efficient-web-builder/format/lib/content/box-background";import{BOX_ROW_IMAGE_PROP as C}from"efficient-web-builder/format/lib/content/box-card-rule";import{BOX_HIDE_WHEN_ROW_EMPTY as l}from"efficient-web-builder/format/lib/content/card-template";import{BOX_TYPE as t,CONTAINER_BLOCKS_SLOT as r}from"efficient-web-builder/format/lib/document/container-blocks";import{rowFieldTextSeed as f}from"efficient-web-builder/format/lib/document/blocks/general/Cards/card-seed";import{BOX as y,DIM as R,INNER_BOX as d,TEXT as m,boxPadding as i,seedNodes as E}from"efficient-web-builder/format/lib/document/seed-parts";import{roundBox as p,squareBox as T}from"./square-box.js";const h="facetTemplate",X="Filter option template",z=[{key:"facetLabel",label:"Filter option"},{key:"facetName",label:"Type name"},{key:"facetCount",label:"Option count"},{key:"facetColour",label:"Option colour",kind:"colour"},{key:"facetTickFill",label:"Tick box fill",kind:"colour"},{key:"facetTick",label:"Tick mark",kind:"image"},{key:"facetTickMark",label:"Tick box shown"},{key:"facetRadioMark",label:"Round mark shown"},{key:"facetDot",label:"Round mark dot",kind:"colour"}],O="sf-facet-tick-picture",v="data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%271%200.75%2014%2014%27%20id%3D%27"+O+"%27%3E%3Cpath%20d%3D%27M3.2%208%206.4%2011.2%2012.8%203.2%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272.56%27%2F%3E%3C%2Fsvg%3E",H="--sf-facet-tick",G="[&_[data-sf-card-state~=selected]_.sf-card[style*=sf-facet-tick-picture]]:[background-image:none]! [&_[data-sf-card-state~=selected]_.sf-card[style*=sf-facet-tick-picture]]:[background-color:var(--accent-ink)]! [&_[data-sf-card-state~=selected]_.sf-card[style*=sf-facet-tick-picture]]:[-webkit-mask:var(--sf-facet-tick)_center/cover_no-repeat] [&_[data-sf-card-state~=selected]_.sf-card[style*=sf-facet-tick-picture]]:[mask:var(--sf-facet-tick)_center/cover_no-repeat]";function U(e,n){return{facetLabel:e.label,facetName:"",facetCount:String(e.count),facetColour:e.swatch??"",facetTickFill:n?"main":"",facetTick:n?v:"",facetTickMark:"tick",facetRadioMark:"",facetDot:""}}function $(e,n){return{facetLabel:"",facetName:e.label,facetCount:String(e.count),facetColour:"",facetTickFill:n?"main":"",facetTick:"",facetTickMark:"",facetRadioMark:"radio",facetDot:n?"main":""}}const Y=["Text","ImageBlock",t],x={...y,direction:"row",align:"center",phoneRow:2,sharePhone:"content",wrapPhone:"nowrap"},k=13,s=10,w=2,g=1,o="2026-12-18",a="storefront sections owner",j=[{part:"facetLabel",kind:"size",value:k,reason:"The old rail's option words were 13 px; kept so no facet word moves.",owner:a,due:o},{part:"facetName",kind:"size",value:k,reason:"A type's name takes the facet words' 13 px, so the type picker has the same rail look.",owner:a,due:o},{part:"Option",kind:"gap",value:s,reason:"The old rail's 10 px between the option and its count; kept so no word moves.",owner:a,due:o},{part:"Choice",kind:"gap",value:s,reason:"The old rail's 10 px between tick box, dot and words; kept so no word moves.",owner:a,due:o},{part:"Tick box",kind:"padding",value:1,reason:"The 1 px ring round the tick box, drawn as the Box's own Fill inside 1 px padding.",owner:a,due:o},{part:"Radio",kind:"padding",value:1,reason:"The 1 px ring round the round mark, drawn as the Box's own Fill inside 1 px padding.",owner:a,due:o},{part:"Radio ground",kind:"padding",value:3,reason:"The 3 px between the round mark's ring and its 8 px dot, as the browser's own radio.",owner:a,due:o},{part:"Tick",kind:"box",value:14,reason:"The tick box's ground inside its 1 px ring: 16 px less the ring each side, the browser's own checkbox size.",owner:a,due:o},{part:"Radio ground",kind:"box",value:14,reason:"The round mark's ground inside its 1 px ring: 16 px less the ring each side, the browser's own radio size.",owner:a,due:o},{part:"Ring",kind:"box",value:13,reason:"The colour dot's 1 px ring as the old rail drew it (13 px round); kept so no swatch or word moves.",owner:a,due:o},{part:"Colour",kind:"box",value:11,reason:"The colour dot inside its 1 px ring (13 px less the ring each side), as the old rail drew it.",owner:a,due:o},{part:"Tick box",kind:"corner",value:w,reason:"The browser's own checkbox corners (2 px on 16 px), below the shell's smallest corner step (--radius-sm 4 px); kept so the tick box keeps the rail's look.",owner:a,due:o},{part:"Tick",kind:"corner",value:g,reason:"The tick box's ground inside its 1 px ring follows the box's 2 px corners (2 - 1).",owner:a,due:o},{part:"aside",kind:"padding",value:22,reason:"The rail box's right padding at lg (PlpSidebar lg:pr-[22px]): 12 px room for the picked frame plus main's 10 px scrollbar room, so the content stays main's 258 px wide.",owner:a,due:o}],A={size:k,case:"capitalize",lineHeight:1.5},F={size:k,case:"none",lineHeight:1.5},L={textStyle:"body-5",size:11,case:"none",letterSpacing:0,lineHeight:1.5},_="muted",b="surface",N=()=>({type:t,props:{...x,name:"Option",justify:"between",gap:s,gapPhone:s,...i(4,12)},slots:{[r]:[{type:t,props:{...x,name:"Choice",gap:s,gapPhone:s,minWidth:0},slots:{[r]:[{type:t,props:{...d,name:"Tick mark",[l]:["facetTickMark"]},slots:{[r]:[{type:t,props:{...T(16,{sectionCorners:w,fillColor:_,[c]:"facetTickFill",...i(1,1)}),name:"Tick box"},slots:{[r]:[{type:t,props:{...T(14,{sectionCorners:g,fillColor:b,[c]:"facetTickFill",[C]:"facetTick",...i(0,0)}),name:"Tick"}}]}}]}},{type:t,props:{...d,name:"Round mark",[l]:["facetRadioMark"]},slots:{[r]:[{type:t,props:{...p(16,{fillColor:_,[c]:"facetTickFill",...i(1,1)}),name:"Radio"},slots:{[r]:[{type:t,props:{...p(14,{fillColor:b,...i(3,3)}),name:"Radio ground"},slots:{[r]:[{type:t,props:{...p(8,{[c]:"facetDot",...i(0,0)}),name:"Dot"}}]}}]}}]}},{type:t,props:{...d,name:"Swatch",[l]:["facetColour"]},slots:{[r]:[{type:t,props:{...p(13,{sectionBorder:{width:1}}),name:"Ring"},slots:{[r]:[{type:t,props:{...p(11,{[c]:"facetColour"}),name:"Colour"}}]}}]}},{type:t,props:{...d,name:"Label",[l]:["facetLabel"]},slots:{[r]:[f("facetLabel",{...m,tag:"span",minWidth:0},A)]}},{type:t,props:{...d,name:"Name",[l]:["facetName"]},slots:{[r]:[f("facetName",{...m,tag:"span",minWidth:0},F)]}}]}},f("facetCount",{...R,tag:"span"},L)]}});function P(e){return E([N()],(n,u)=>u==="0"?`${e}~facet`:`${e}~facet.${u.slice(2)}`)}function q(e){if(e[h]!==void 0)return e;const n=typeof e.id=="string"&&e.id.trim()?e.id:"AlloyWheelsListing";return{...e,[h]:P(n)}}export{z as FACET_ROW_FIELDS,Y as FACET_TEMPLATE_ALLOW,X as FACET_TEMPLATE_LABEL,h as FACET_TEMPLATE_SLOT,v as FACET_TICK,G as FACET_TICK_INK_CLASS,O as FACET_TICK_MARK,H as FACET_TICK_VAR,j as NAMED_EXCEPTIONS,U as facetRow,P as facetRowSeed,$ as typeRow,q as withFacetTemplate};
@@ -1 +1 @@
1
- import{CARD_LIST_TYPE as c,CARD_ROW_FIELD_PROP as f}from"efficient-web-builder/format/lib/content/card-template";import{BOX_TYPE as n,CONTAINER_BLOCKS_SLOT as p}from"efficient-web-builder/format/lib/document/container-blocks";import{rowFieldTextSeed as r}from"efficient-web-builder/format/lib/document/blocks/general/Cards/card-seed";import{BOX as L,DIM as s,INNER_BOX as E,TEXT as l,boxPadding as m,seedNodes as O,token as d}from"efficient-web-builder/format/lib/document/seed-parts";const I="options",R=["Text","ImageBlock",n,c],b=["Text","ImageBlock",n],u=(e,t)=>({textStyle:"body-5",...d("label",e),case:"upper",letterSpacing:t,lineHeight:1.2}),P=u(12,.32),T=u(12,.18),_={textStyle:"body-5",...d("label",11),case:"upper",letterSpacing:.14,lineHeight:1.2,color:"main"},a=(e,t,i={})=>({...L,direction:"row",align:"center",gap:e,gapPhone:e,phoneRow:2,sharePhone:"content",...t?{wrapPhone:"nowrap"}:{},...i}),x=()=>({type:n,props:{...a(8,!0),name:"Option",...m(8,12),sectionBorder:{width:1}},slots:{[p]:[r("label",{...l,tag:"p"},T),r("count",{...s,tag:"p"},T)]}});function S(e){const t=o=>o==="0"?`${e}~group`:`${e}~group.${o.slice(2)}`,i={type:n,props:{...E,name:"Group",gap:12,gapPhone:12},slots:{[p]:[r("label",{...s,tag:"p"},P),{type:n,props:{...a(8,!1,{align:"start",wrap:!0}),name:"Options"},slots:{[p]:[{type:c,props:{[f]:I},slots:{template:[x()]}}]}}]}};return O([i],(o,h)=>t(h))}function w(e){const t={type:n,props:{...a(8,!0),name:"Chip",...m(4,8),sectionBorder:{width:1}},slots:{[p]:[r("label",{...l,tag:"p"},_),r("mark",{...l,tag:"p"},_)]}};return O([t],(i,o)=>o==="0"?`${e}~chip`:`${e}~chip.${o.slice(2)}`)}const g=(e,t)=>typeof e.id=="string"&&e.id.trim()?e.id:t;function A(e){return e.template!==void 0?e:{...e,template:S(g(e,"FilterBlock"))}}function N(e){return e.template!==void 0?e:{...e,template:w(g(e,"FilterChipsBlock"))}}export{b as FILTER_CHIPS_TEMPLATE_ALLOW,I as FILTER_OPTIONS_FIELD,R as FILTER_TEMPLATE_ALLOW,S as filterCardSeed,w as filterChipSeed,N as withFilterChipsTemplate,A as withFilterTemplate};
1
+ import{CARD_LIST_TYPE as s,CARD_ROW_FIELD_PROP as h}from"efficient-web-builder/format/lib/content/card-template";import{BOX_TYPE as n,CONTAINER_BLOCKS_SLOT as p}from"efficient-web-builder/format/lib/document/container-blocks";import{rowFieldTextSeed as r}from"efficient-web-builder/format/lib/document/blocks/general/Cards/card-seed";import{BOX as f,DIM as m,INNER_BOX as L,TEXT as l,boxPadding as O,labelStyle as E,seedNodes as T}from"efficient-web-builder/format/lib/document/seed-parts";const I="options",y=["Text","ImageBlock",n,s],A=["Text","ImageBlock",n],a=(t,e)=>({...E(t),letterSpacing:e,lineHeight:1.2}),P=a(12,.32),_=a(12,.18),d={...a(11,.14),color:"main"},c=(t,e,i={})=>({...f,direction:"row",align:"center",gap:t,gapPhone:t,phoneRow:2,sharePhone:"content",...e?{wrapPhone:"nowrap"}:{},...i}),w=()=>({type:n,props:{...c(8,!0),name:"Option",...O(8,12),sectionBorder:{width:1}},slots:{[p]:[r("label",{...l,tag:"p"},_),r("count",{...m,tag:"p"},_)]}});function x(t){const e=o=>o==="0"?`${t}~group`:`${t}~group.${o.slice(2)}`,i={type:n,props:{...L,name:"Group",gap:12,gapPhone:12},slots:{[p]:[r("label",{...m,tag:"p"},P),{type:n,props:{...c(8,!1,{align:"start",wrap:!0}),name:"Options"},slots:{[p]:[{type:s,props:{[h]:I},slots:{template:[w()]}}]}}]}};return T([i],(o,g)=>e(g))}function C(t){const e={type:n,props:{...c(8,!0),name:"Chip",...O(4,8),sectionBorder:{width:1}},slots:{[p]:[r("label",{...l,tag:"p"},d),r("mark",{...l,tag:"p"},d)]}};return T([e],(i,o)=>o==="0"?`${t}~chip`:`${t}~chip.${o.slice(2)}`)}const u=(t,e)=>typeof t.id=="string"&&t.id.trim()?t.id:e;function N(t){return t.template!==void 0?t:{...t,template:x(u(t,"FilterBlock"))}}function b(t){return t.template!==void 0?t:{...t,template:C(u(t,"FilterChipsBlock"))}}export{A as FILTER_CHIPS_TEMPLATE_ALLOW,I as FILTER_OPTIONS_FIELD,y as FILTER_TEMPLATE_ALLOW,x as filterCardSeed,C as filterChipSeed,b as withFilterChipsTemplate,N as withFilterTemplate};
@@ -1 +1 @@
1
- import{BOX_SWATCH_PROP as d}from"efficient-web-builder/format/lib/content/box-background";import{BOX_HIDE_WHEN_ROW_EMPTY as O}from"efficient-web-builder/format/lib/content/card-template";import{BOX_TYPE as t,CONTAINER_BLOCKS_SLOT as i}from"efficient-web-builder/format/lib/document/container-blocks";import{rowFieldTextSeed as r}from"efficient-web-builder/format/lib/document/blocks/general/Cards/card-seed";import{BOX as l,DIM as _,INNER_BOX as p,TEXT as c,boxPadding as a,seedNodes as h,token as T}from"efficient-web-builder/format/lib/document/seed-parts";const m="optionTemplate",b="Option template",f=[{key:"swatch",label:"Finish colour",kind:"colour"},{key:"name",label:"Finish name"},{key:"label",label:"Option"},{key:"note",label:"Option note"}],x=["Text",t],s=(e,o,n={})=>({textStyle:"body-5",...T("label",e),case:"upper",letterSpacing:o,lineHeight:1.5,...n}),w={...l,direction:"row",align:"center",phoneRow:2,sharePhone:"content",wrapPhone:"nowrap"},E=()=>({type:t,props:{...l,direction:"column",name:"Option",...a(12,12),sectionBorder:{width:2}},slots:{[i]:[{type:t,props:{...w,name:"Finish",gap:12,gapPhone:12,[O]:["swatch"]},slots:{[i]:[{type:t,props:{...p,name:"Swatch"},slots:{[i]:[{type:t,props:{...p,name:"Dot",...a(9,9),sectionCorners:10,sectionBorder:{width:1},[d]:"swatch"}}]}},r("name",{...c,tag:"span",minWidth:0},s(12,.18,{weight:700}))]}},{type:t,props:{...p,name:"Words",gap:4,gapPhone:4,...a(0,4),[O]:["label"]},slots:{[i]:[r("label",{...c,tag:"span"},s(14,.18)),r("note",{..._,tag:"span"},s(11,.12))]}}]}});function P(e){return h([E()],(o,n)=>n==="0"?`${e}~option`:`${e}~option.${n.slice(2)}`)}function H(e){if(e[m]!==void 0)return e;const o=typeof e.id=="string"&&e.id.trim()?e.id:"ProductHero";return{...e,[m]:P(o)}}export{x as HERO_OPTION_ALLOW,f as HERO_OPTION_FIELDS,m as HERO_OPTION_SLOT,b as HERO_OPTION_SLOT_LABEL,P as heroOptionSeed,H as withHeroOptionTemplate};
1
+ import{BOX_SWATCH_PROP as d}from"efficient-web-builder/format/lib/content/box-background";import{BOX_HIDE_WHEN_ROW_EMPTY as s}from"efficient-web-builder/format/lib/content/card-template";import{BOX_TYPE as o,CONTAINER_BLOCKS_SLOT as i}from"efficient-web-builder/format/lib/document/container-blocks";import{rowFieldTextSeed as r}from"efficient-web-builder/format/lib/document/blocks/general/Cards/card-seed";import{BOX as O,DIM as _,INNER_BOX as l,TEXT as c,boxPadding as p,labelStyle as h,seedNodes as T}from"efficient-web-builder/format/lib/document/seed-parts";import{roundBox as w}from"./square-box.js";const m="optionTemplate",B="Option template",H=[{key:"swatch",label:"Finish colour",kind:"colour"},{key:"name",label:"Finish name"},{key:"label",label:"Option"},{key:"note",label:"Option note"}],R=["Text",o],a=(e,t,n={})=>({...h(e),letterSpacing:t,lineHeight:1.5,...n}),E={...O,direction:"row",align:"center",phoneRow:2,sharePhone:"content",wrapPhone:"nowrap"},P=()=>({type:o,props:{...O,direction:"column",name:"Option",...p(12,12),sectionBorder:{width:2}},slots:{[i]:[{type:o,props:{...E,name:"Finish",gap:12,gapPhone:12,[s]:["swatch"]},slots:{[i]:[{type:o,props:{...l,name:"Swatch"},slots:{[i]:[{type:o,props:{...w(20,{...p(0,0),sectionBorder:{width:1},[d]:"swatch"}),name:"Dot"}}]}},r("name",{...c,tag:"span",minWidth:0},a(12,.18,{weight:700}))]}},{type:o,props:{...l,name:"Words",gap:4,gapPhone:4,...p(0,4),[s]:["label"]},slots:{[i]:[r("label",{...c,tag:"span"},a(14,.18)),r("note",{..._,tag:"span"},a(11,.12))]}}]}});function g(e){return T([P()],(t,n)=>n==="0"?`${e}~option`:`${e}~option.${n.slice(2)}`)}function b(e){if(e[m]!==void 0)return e;const t=typeof e.id=="string"&&e.id.trim()?e.id:"ProductHero";return{...e,[m]:g(t)}}export{R as HERO_OPTION_ALLOW,H as HERO_OPTION_FIELDS,m as HERO_OPTION_SLOT,B as HERO_OPTION_SLOT_LABEL,g as heroOptionSeed,b as withHeroOptionTemplate};
@@ -0,0 +1,4 @@
1
+ type Props = Record<string, unknown>;
2
+ export declare const squareBox: (size: number, look?: Props) => Props;
3
+ export declare const roundBox: (size: number, look?: Props) => Props;
4
+ export {};
@@ -0,0 +1 @@
1
+ import{markBoxProps as e}from"efficient-web-builder/format/lib/document/seed-parts";const t=(o,r={})=>{const{fillColor:s,...n}=e(o,void 0);return{...n,...r}},c=(o,r={})=>t(o,{sectionCorners:Math.ceil(o/2),...r});export{c as roundBox,t as squareBox};
@@ -1 +1 @@
1
- import{jsx as d}from"react/jsx-runtime";import l from"../../../../../components/wheels-plp/AlloyWheelsListing.js";import{hidableText as t}from"efficient-easel/screen/lib/document/hidable";import{asPlpSortKey as n,listingHiddenFacets as o}from"../../../../wheels/plp-filters.js";import{cardHoverOf as r}from"efficient-web-builder/format/lib/animation/hover";import{phHide as i}from"efficient-web-builder/render/lib/document/blocks/scaffold";import{FACET_TEMPLATE_SLOT as g}from"../../../../content/facet-row-seed.js";import{AlloyWheelsListingMeta as m,ALLOYWHEELSLISTING_PH as a}from"./meta.js";const A={...m,render:e=>d(l,{titleLevel:e.titleLevel,heading:i(e.heading,a.heading,e.editor),intro:i(e.intro,a.intro,e.editor),askForCar:e.askForCar!==!1,gateHeading:t(e.gateHeading),gateIntro:t(e.gateIntro),perPage:e.perPage,columns:e.columns,defaultSort:n(e.defaultSort),ownerId:typeof e.id=="string"?e.id:"",template:e.template,facetTemplate:e[g],cardImage:e.cardImage,hover:r(e,"AlloyWheelsListing"),hiddenFacets:o(e),showPrice:e.showPrice,showInStock:e.showInStock!==!1,kinds:e.kinds,products:e.products,wheels:e.wheels,fieldUsage:e.fieldUsage,editing:e.editor?.isEditing})};export{A as AlloyWheelsListingRender};
1
+ import{jsx as l}from"react/jsx-runtime";import{PAGE_TITLE_LEVEL_PROP as r}from"efficient-web-builder/format/lib/document/one-h1";import m from"../../../../../components/wheels-plp/AlloyWheelsListing.js";import{hidableText as n}from"efficient-easel/screen/lib/document/hidable";import{asPlpSortKey as g,listingHiddenFacets as f}from"../../../../wheels/plp-filters.js";import{cardHoverOf as h}from"efficient-web-builder/format/lib/animation/hover";import{phHide as a}from"efficient-web-builder/render/lib/document/blocks/scaffold";import{headInOwnBox as c}from"efficient-web-builder/render/lib/sections/section-to-box";import{FACET_TEMPLATE_SLOT as s}from"../../../../content/facet-row-seed.js";import{AlloyWheelsListingMeta as L,ALLOYWHEELSLISTING_PH as d}from"./meta.js";const k={...L,render:e=>{const t=c(e),i=o=>t?void 0:o;return l(m,{titleLevel:e[r],heading:i(a(e.heading,d.heading,e.editor)),intro:i(a(e.intro,d.intro,e.editor)),omitHead:t,askForCar:e.askForCar!==!1,gateHeading:n(e.gateHeading),gateIntro:n(e.gateIntro),perPage:e.perPage,columns:e.columns,defaultSort:g(e.defaultSort),ownerId:typeof e.id=="string"?e.id:"",template:e.template,facetTemplate:e[s],hover:h(e,"AlloyWheelsListing"),hiddenFacets:f(e),showPrice:e.showPrice,showInStock:e.showInStock!==!1,kinds:e.kinds,products:e.products,wheels:e.wheels,fieldUsage:e.fieldUsage,editing:e.editor?.isEditing})}};export{k as AlloyWheelsListingRender};
@@ -4,5 +4,9 @@ export declare const FilterBlockSlots: {
4
4
  type: "slot";
5
5
  allow: ("Flex" | "Text" | "ImageBlock" | "CardList")[];
6
6
  };
7
+ facetTemplate: {
8
+ type: "slot";
9
+ allow: ("Flex" | "Text" | "ImageBlock")[];
10
+ };
7
11
  };
8
12
  export declare const FilterBlockMeta: Omit<BlockRender, "render">;
@@ -1 +1 @@
1
- import{phoneKey as o}from"efficient-easel/draw";import{FILTER_TEMPLATE_ALLOW as t}from"../../../../content/filter-card-seed.js";import{DEFAULT_FILTER_LOOK as e,DEFAULT_FILTER_LOOK_PHONE as l,DEFAULT_OPENING_SORT as r,DEFAULT_SHOWN_FILTERS as L}from"../../../../sections/shopper-filters.js";const E={template:{type:"slot",allow:[...t]}},_={label:"Filters",fields:E,defaultProps:{look:e,[o("look")]:l,filtersShown:[...L],showSort:!0,openingSort:r,filtersBelow:!1}};export{_ as FilterBlockMeta,E as FilterBlockSlots};
1
+ import{phoneKey as o}from"efficient-easel/draw";import{FACET_TEMPLATE_ALLOW as t,FACET_TEMPLATE_SLOT as l}from"../../../../content/facet-row-seed.js";import{FILTER_TEMPLATE_ALLOW as e}from"../../../../content/filter-card-seed.js";import{DEFAULT_FILTER_LOOK as r,DEFAULT_FILTER_LOOK_PHONE as E,DEFAULT_OPENING_SORT as L,DEFAULT_SHOWN_FILTERS as T}from"../../../../sections/shopper-filters.js";const _={template:{type:"slot",allow:[...e]},[l]:{type:"slot",allow:[...t]}},A={label:"Filters",fields:_,defaultProps:{look:r,[o("look")]:E,filtersShown:[...T],showSort:!0,openingSort:L,filtersBelow:!1}};export{A as FilterBlockMeta,_ as FilterBlockSlots};
@@ -1 +1 @@
1
- import{jsx as o}from"react/jsx-runtime";import{phoneKey as t}from"efficient-easel/draw";import i from"../../../../../components/catalog/ShopperFilters.js";import{FIRST_ROWS_PROP as r}from"../../../../wheels/shopper-first-paint.js";import{parseFilterLook as l,parseFilterLookPhone as n,parseOpeningSort as m,parseShownFilters as f}from"../../../../sections/shopper-filters.js";import{FilterBlockMeta as s}from"./meta.js";const k={...s,render:e=>o(i,{owner:{id:String(e.id??""),template:e.template},look:l(e.look),lookPhone:n(e[t("look")]),shown:f(e.filtersShown),showSort:e.showSort!==!1,openingSort:m(e.openingSort),filtersBelow:e.filtersBelow===!0,fieldUsage:e.fieldUsage,firstRows:e[r],editing:e.editor?.isEditing})};export{k as FilterBlockRender};
1
+ import{jsx as o}from"react/jsx-runtime";import{phoneKey as t}from"efficient-easel/draw";import i from"../../../../../components/catalog/ShopperFilters.js";import{FACET_TEMPLATE_SLOT as r}from"../../../../content/facet-row-seed.js";import{FIRST_ROWS_PROP as l}from"../../../../wheels/shopper-first-paint.js";import{parseFilterLook as n,parseFilterLookPhone as m,parseOpeningSort as f,parseShownFilters as a}from"../../../../sections/shopper-filters.js";import{FilterBlockMeta as S}from"./meta.js";const T={...S,render:e=>o(i,{owner:{id:String(e.id??""),template:e.template,facetTemplate:e[r]},look:n(e.look),lookPhone:m(e[t("look")]),shown:a(e.filtersShown),showSort:e.showSort!==!1,openingSort:f(e.openingSort),filtersBelow:e.filtersBelow===!0,fieldUsage:e.fieldUsage,firstRows:e[l],editing:e.editor?.isEditing})};export{T as FilterBlockRender};
@@ -1 +1 @@
1
- import{jsx as e}from"react/jsx-runtime";import o from"../../../../../components/catalog/ShopperChips.js";import{FIRST_SHOWN_PROP as i}from"../../../../wheels/shopper-first-paint.js";import{FilterChipsBlockMeta as r}from"./meta.js";const n={...r,render:t=>e(o,{owner:{id:String(t.id??""),template:t.template},showCount:t.showCount!==!1,showClear:t.showClear!==!1,showSort:t.showSort===!0,firstShown:t[i],editing:t.editor?.isEditing})};export{n as FilterChipsBlockRender};
1
+ import{jsx as e}from"react/jsx-runtime";import{CARD_TEMPLATE_SLOT as r}from"efficient-web-builder/format/lib/content/card-template";import{cardPressTitlesOf as i}from"efficient-web-builder/render/lib/document/card-press-titles";import o from"../../../../../components/catalog/ShopperChips.js";import{FIRST_SHOWN_PROP as s}from"../../../../wheels/shopper-first-paint.js";import{FilterChipsBlockMeta as m}from"./meta.js";const w={...m,render:t=>e(o,{owner:{id:String(t.id??""),template:t.template,pressTitles:i(t,r)},showCount:t.showCount!==!1,showClear:t.showClear!==!1,showSort:t.showSort===!0,firstShown:t[s],editing:t.editor?.isEditing})};export{w as FilterChipsBlockRender};
@@ -1 +1 @@
1
- import{jsx as r}from"react/jsx-runtime";import{SITE_WIDTH_CAP as L}from"efficient-web-builder/format/lib/content/page-width";import{resolveWidth as P}from"efficient-web-builder/format/lib/content/section-width";import g from"../../../../../components/LinkedProductHero.js";import m from"../../../../../components/pdp-dynamic/DynamicProductHero.js";import A from"../../../../../components/SectionNotice.js";import{trustBulletsRow as R,trustBulletsSlot as O}from"../../../../../components/product-hero/trust-bullets.js";import{TRUST_BULLETS_SLOT as y}from"../../../../sections/hero-trust-bullets.js";import{HERO_OPTION_SLOT as l}from"../../../../content/hero-option-seed.js";import{useCurrentProduct as F}from"../../../current-product.js";import{isEditorOnDynamicPage as w}from"efficient-web-builder/format/lib/document/editor-page-context";import{DEFAULT_HERO_PRICE_PLACEMENT as D,parseHeroPricePlacement as I}from"../../../../sections/hero-price-placement.js";import{DEFAULT_HERO_LAYOUT as S,DEFAULT_HERO_RATIO as U,DEFAULT_HERO_TEXT_ALIGN as p,parseHeroLayout as M,parseHeroRatio as k,parseHeroTextAlign as x}from"../../../../sections/hero-arrangement.js";import{DEFAULT_HERO_GALLERY_MODE as B,DEFAULT_HERO_IMAGE_FIT as C,parseHeroGalleryMode as G,parseHeroImageFit as N}from"../../../../sections/hero-gallery.js";import{say as V}from"efficient-web-builder/format/lib/editor-words";import{ProductHeroMeta as b}from"./meta.js";import{HideTaker as j}from"efficient-web-builder/render/components/ViewHideRoot";function v({source:e,editing:t=!1,pricePlacement:i=D,showVehicleFitment:o=!0,heroLayout:a=S,imageRatio:u=U,textAlign:c=p,showSpecTable:f=!0,showPriceQuote:d=!0,galleryMode:T=B,imageFit:s=C,trustBullets:E,nodeId:_,priceTemplate:H,optionTemplate:h}){const n={heroLayout:a,imageRatio:u,textAlign:c,showSpecTable:f,showPriceQuote:d,galleryMode:T,imageFit:s,trustBullets:R(E,t),nodeId:_,priceTemplate:H,optionTemplate:h};return F()||t&&w()?r(m,{editing:t,pricePlacement:i,showVehicleFitment:o,...n}):e?.slug?r(g,{slug:e.slug,kind:e.kind??"wheel",editing:t,pricePlacement:i,showVehicleFitment:o,...n}):t?r(A,{size:"tall",children:V("Pick a product in the panel to fill this hero.")}):r(m,{pricePlacement:i,showVehicleFitment:o,...n})}function Q(e,t){return P(e,"full").mode!=="page"?t:r(j,{as:"div",style:{"--sf-content-cap":L},children:t})}const ue={...b,render:e=>Q(e,r(v,{source:e.source,editing:e.editor?.isEditing,pricePlacement:I(e.pricePlacement),showVehicleFitment:e.showVehicleFitment??!0,heroLayout:M(e.heroLayout),imageRatio:k(e.imageRatio),textAlign:x(e.textAlign),showSpecTable:e.showSpecTable??!0,showPriceQuote:e.showPriceQuote??!0,galleryMode:G(e.galleryMode),imageFit:N(e.imageFit),trustBullets:O(e[y]),nodeId:typeof e.id=="string"?e.id:void 0,priceTemplate:typeof e.template=="function"?e.template:void 0,optionTemplate:typeof e[l]=="function"?e[l]:void 0}))};export{ue as ProductHeroRender};
1
+ import{jsx as r}from"react/jsx-runtime";import{SITE_WIDTH_CAP as L}from"efficient-web-builder/format/lib/content/page-width";import{resolveWidth as g}from"efficient-web-builder/format/lib/content/section-width";import A from"../../../../../components/LinkedProductHero.js";import l from"../../../../../components/pdp-dynamic/DynamicProductHero.js";import O from"../../../../../components/SectionNotice.js";import{trustBulletsRow as R,trustBulletsSlot as y}from"../../../../../components/product-hero/trust-bullets.js";import{TRUST_BULLETS_SLOT as F}from"../../../../sections/hero-trust-bullets.js";import{HERO_OPTION_SLOT as m}from"../../../../content/hero-option-seed.js";import{cardPressTitlesOf as w}from"efficient-web-builder/render/lib/document/card-press-titles";import{useCurrentProduct as D}from"../../../current-product.js";import{isEditorOnDynamicPage as I}from"efficient-web-builder/format/lib/document/editor-page-context";import{DEFAULT_HERO_PRICE_PLACEMENT as S,parseHeroPricePlacement as U}from"../../../../sections/hero-price-placement.js";import{DEFAULT_HERO_LAYOUT as p,DEFAULT_HERO_RATIO as M,DEFAULT_HERO_TEXT_ALIGN as k,parseHeroLayout as x,parseHeroRatio as B,parseHeroTextAlign as C}from"../../../../sections/hero-arrangement.js";import{DEFAULT_HERO_GALLERY_MODE as G,DEFAULT_HERO_IMAGE_FIT as N,parseHeroGalleryMode as V,parseHeroImageFit as b}from"../../../../sections/hero-gallery.js";import{say as j}from"efficient-web-builder/format/lib/editor-words";import{ProductHeroMeta as v}from"./meta.js";import{HideTaker as Q}from"efficient-web-builder/render/components/ViewHideRoot";function W({source:e,editing:t=!1,pricePlacement:i=S,showVehicleFitment:o=!0,heroLayout:a=p,imageRatio:u=M,textAlign:c=k,showSpecTable:f=!0,showPriceQuote:d=!0,galleryMode:s=G,imageFit:T=N,trustBullets:E,nodeId:_,priceTemplate:P,optionTemplate:H,optionPressTitles:h}){const n={heroLayout:a,imageRatio:u,textAlign:c,showSpecTable:f,showPriceQuote:d,galleryMode:s,imageFit:T,trustBullets:R(E,t),nodeId:_,priceTemplate:P,optionTemplate:H,optionPressTitles:h};return D()||t&&I()?r(l,{editing:t,pricePlacement:i,showVehicleFitment:o,...n}):e?.slug?r(A,{slug:e.slug,kind:e.kind??"wheel",editing:t,pricePlacement:i,showVehicleFitment:o,...n}):t?r(O,{size:"tall",children:j("Pick a product in the panel to fill this hero.")}):r(l,{pricePlacement:i,showVehicleFitment:o,...n})}function Y(e,t){return g(e,"full").mode!=="page"?t:r(Q,{as:"div",style:{"--sf-content-cap":L},children:t})}const de={...v,render:e=>Y(e,r(W,{source:e.source,editing:e.editor?.isEditing,pricePlacement:U(e.pricePlacement),showVehicleFitment:e.showVehicleFitment??!0,heroLayout:x(e.heroLayout),imageRatio:B(e.imageRatio),textAlign:C(e.textAlign),showSpecTable:e.showSpecTable??!0,showPriceQuote:e.showPriceQuote??!0,galleryMode:V(e.galleryMode),imageFit:b(e.imageFit),trustBullets:y(e[F]),nodeId:typeof e.id=="string"?e.id:void 0,priceTemplate:typeof e.template=="function"?e.template:void 0,optionTemplate:typeof e[m]=="function"?e[m]:void 0,optionPressTitles:w(e,m)}))};export{de as ProductHeroRender};
@@ -1 +1 @@
1
- import{jsx as a}from"react/jsx-runtime";import d from"../../../../../components/ContactRouting.js";import{CONTACT_ROUTING_DEFAULTS as t}from"efficient-web-builder/format/lib/content/contact";import{hidableText as i}from"efficient-easel/screen/lib/document/hidable";import{parseSectionHeadPlacement as u}from"efficient-web-builder/format/lib/sections/section-head-placement";import{phHide as o}from"efficient-web-builder/render/lib/document/blocks/scaffold";import{CONTACT_CHANNEL_SLOT as T,CONTACT_REASON_SLOT as g,CONTACT_TOPIC_SLOT as f}from"../../../../content/contact-card-seed.js";import{ContactRoutingMeta as h}from"./meta.js";const S={...h,render:e=>{const r=u(e.headPlacement)==="own-box",m=n=>r?void 0:n;return a(d,{routingNumber:m(o(e.routingNumber,t.routingNumber,e.editor)),routingTagline:m(o(e.routingTagline,t.routingTagline,e.editor)),omitHead:r,templates:{ownerId:String(e.id??""),topic:e[f],reason:e[g],channel:e[T]},groups:e.groups??[],formNumber:o(e.formNumber,t.formNumber,e.editor),formHeading:o(e.formHeading,t.formHeading,e.editor),metaLines:(e.metaItems??[]).map(n=>n?.text??"").filter(Boolean),showOther:e.showOther,otherLabel:i(e.otherLabel)||t.otherLabel,otherNoteTitle:o(e.otherNoteTitle,t.otherNoteTitle,e.editor),otherNoteBody:o(e.otherNoteBody,t.otherNoteBody,e.editor),buttonText:i(e.buttonText)||t.buttonText,consent:o(e.consent,t.consent,e.editor),channels:e.channels??[],formSlug:i(e.formSlug)||void 0,form:e.form,editing:e.editor?.isEditing})}};export{S as ContactRoutingRender};
1
+ import{jsx as f}from"react/jsx-runtime";import l from"../../../../../components/ContactRouting.js";import{CONTACT_ROUTING_DEFAULTS as t}from"efficient-web-builder/format/lib/content/contact";import{hidableText as i}from"efficient-easel/screen/lib/document/hidable";import{parseSectionHeadPlacement as g}from"efficient-web-builder/format/lib/sections/section-head-placement";import{phHide as o}from"efficient-web-builder/render/lib/document/blocks/scaffold";import{cardPressTitlesOf as r}from"efficient-web-builder/render/lib/document/card-press-titles";import{CONTACT_CHANNEL_SLOT as d,CONTACT_REASON_SLOT as T,CONTACT_TOPIC_SLOT as u}from"../../../../content/contact-card-seed.js";import{ContactRoutingMeta as h}from"./meta.js";const A={...h,render:e=>{const m=g(e.headPlacement)==="own-box",a=n=>m?void 0:n;return f(l,{routingNumber:a(o(e.routingNumber,t.routingNumber,e.editor)),routingTagline:a(o(e.routingTagline,t.routingTagline,e.editor)),omitHead:m,templates:{ownerId:String(e.id??""),topic:e[u],reason:e[T],channel:e[d],pressTitles:{topic:r(e,u),reason:r(e,T),channel:r(e,d)}},groups:e.groups??[],formNumber:o(e.formNumber,t.formNumber,e.editor),formHeading:o(e.formHeading,t.formHeading,e.editor),metaLines:(e.metaItems??[]).map(n=>n?.text??"").filter(Boolean),showOther:e.showOther,otherLabel:i(e.otherLabel)||t.otherLabel,otherNoteTitle:o(e.otherNoteTitle,t.otherNoteTitle,e.editor),otherNoteBody:o(e.otherNoteBody,t.otherNoteBody,e.editor),buttonText:i(e.buttonText)||t.buttonText,consent:o(e.consent,t.consent,e.editor),channels:e.channels??[],formSlug:i(e.formSlug)||void 0,form:e.form,editing:e.editor?.isEditing})}};export{A as ContactRoutingRender};
@@ -1 +1 @@
1
- import{CARD_LIST_TYPE as T,CARD_ROW_FIELD_PROP as y,CARD_ROW_LINK_PROP as h,CARD_TEMPLATE_SLOT as P,registerCardTemplates as w}from"efficient-web-builder/format/lib/content/card-template";import{DIM as o,INNER_BOX as a,TEXT as s,boxPadding as d,fillSlot as B,labelLook as I,labelStyle as D,seedNodes as F,token as E}from"efficient-web-builder/format/lib/document/seed-parts";import{BOX_TYPE as i,CONTAINER_BLOCKS_SLOT as n}from"efficient-web-builder/format/lib/document/container-blocks";import{BOX_ROW_IMAGE_PROP as K}from"efficient-web-builder/format/lib/content/box-card-rule";import{POST_CARD_HEIGHT as H}from"efficient-web-builder/format/lib/post-card-layout";import{EVENTS_FEATURED_DARKEN as U,EVENTS_FEATURED_DARKEN_STYLE as u,EVENTS_FEATURED_PLACEMENT as M}from"../content/events-featured-look.js";import{SH_LINK as x}from"efficient-web-builder/render/lib/document/blocks/general/section-to-box-row-parts";import{rowFieldTextSeed as l}from"efficient-web-builder/format/lib/document/blocks/general/Cards/card-seed";import{withRelatedTabletColumns as p}from"../sections/product-grid-columns.js";import{bundleColumns as V}from"../sections/bundle-to-grid.js";import{HERO_PRICE_BLOCK as v,withHeroPriceTemplate as G}from"../content/hero-price-seed.js";import{HERO_OPTION_FIELDS as W,HERO_OPTION_SLOT as Y,HERO_OPTION_SLOT_LABEL as X,withHeroOptionTemplate as $}from"../content/hero-option-seed.js";import{FILTER_OPTIONS_FIELD as j,withFilterChipsTemplate as z,withFilterTemplate as q}from"../content/filter-card-seed.js";import{FACET_ROW_FIELDS as Q,FACET_TEMPLATE_LABEL as Z,FACET_TEMPLATE_SLOT as J,withFacetTemplate as ee}from"../content/facet-row-seed.js";import{MENU_LINK_BLOCK as te,withMenuTemplate as le}from"../content/menu-card-seed.js";import{CONTACT_CHANNEL_SLOT as oe,CONTACT_REASON_SLOT as ae,CONTACT_TOPIC_SLOT as ie,withContactTemplates as ne}from"../content/contact-card-seed.js";import{ARTICLE_BODY_BLOCK as re,withArticleBodyTemplate as se}from"../content/article-body-seed.js";import{APPOINTMENT_BOOKING_TYPE as de,BOOKING_BOX_TYPE as ce,BOOKING_OPTION_FIELDS as Te,BOOKING_TEMPLATE_SLOTS as Ee,withBookingTemplates as pe}from"../content/booking-card-seed.js";import{PRODUCT_BUY_BLOCK as be,PRODUCT_CARD_FIELDS as C,PRODUCT_COLOUR_BLOCK as _e,PRODUCT_EYEBROW_BLOCK as me,PRODUCT_NAME_BLOCK as Oe,PRODUCT_PICTURE_BLOCK as ke,PRODUCT_PRICE_BLOCK as ye,PRODUCT_SIZE_BLOCK as he,PRODUCT_SPECS_BLOCK as Pe,productCardSeed as ue,withKitCardTemplate as b,withListingCardTemplate as Ce,withProductCardTemplate as _}from"../content/product-card-seed.js";const L="tags",r=I(12),g={textStyle:"heading-3",...E("headingSmall",20),weight:500,lineHeight:1.2,letterSpacing:-.02},R={textStyle:"body-1",...E("body",14),lineHeight:1.55},Le={...g,...E("headingSmall",30)},ge={sectionPaddingTop:24,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,sectionPaddingTopPhone:24,sectionPaddingRightPhone:28,sectionPaddingBottomPhone:32,sectionPaddingLeftPhone:28},Re=H.fallback,Se=480,fe=70,Ne=()=>({type:i,props:{...a,name:"Featured",[K]:"cover",darken:U,darkenStyle:u,darkenPhone:fe,darkenStylePhone:u,placement:M,direction:"column",gap:8,gapPhone:8,...d(32,32,20,20),sectionHeightMode:"fixed",sectionHeightValue:Re,sectionHeightUnit:"px",sectionHeightModePhone:"fixed",sectionHeightValuePhone:Se,sectionHeightUnitPhone:"px",[h]:"href"},slots:{[n]:[l("meta",{...s,tag:"p"},r,!0),l("title",{...s,tag:"h3",widthFit:"fill"},Le),l("excerpt",{...o,tag:"p",widthFit:"fill",maxWidth:384},R),l("dateLabel",{...o,tag:"p"},{...r,color:"muted"})]}}),Ae=()=>({type:i,props:{...a,name:"Post",gap:0,gapPhone:0,...d(0,0,0,0),...B("surface"),shadow:!0},slots:{[n]:[{type:"ImageBlock",props:{[y]:"cover",aspect:"16/10",contained:!1}},{type:i,props:{...a,name:"Words",gap:12,gapPhone:12,...ge},slots:{[n]:[{type:i,props:{...a,name:"Meta",direction:"row",wrap:!0,share:"content",sharePhone:"content",phoneRow:2,gap:12,gapPhone:12,...d(0,0,0,0)},slots:{[n]:[l("meta",{...s,tag:"p"},r,!0),l("dateLabel",{...o,tag:"p"},{...r,color:"muted"},!0)]}},l("title",{...s,tag:"h3",widthFit:"fill"},g),l("excerpt",{...o,tag:"p",widthFit:"fill"},R),{type:T,props:{[y]:L},slots:{template:[{type:i,props:{...a,name:"Chip",...d(4,8,4,8),sectionBorder:{width:1}},slots:{[n]:[l("label",{...o,tag:"p"},r)]}}]}},{type:"ButtonBlock",props:{variant:"ghost",label:"Read more",href:"",[h]:"href",...x,icon:"arrow-right",iconPosition:"after",_partStyles:{label:D(12)}}}]}}]}}),we=()=>[Ne(),Ae()];function Be(e){if(e.template!==void 0)return e;const t=typeof e.id=="string"&&e.id.trim()?e.id:"Events",N=["featured","post"];return{...e,template:F(we(),(He,A)=>{const[m,...O]=A.split("."),k=N[Number(m)]??`card${m}`;return O.length?`${t}~${k}.${O.join(".")}`:`${t}~${k}`})}}const Ie={fields:[{key:"cover",label:"Cover",kind:"image",alt:"title"},{key:"meta",label:"Eyebrow"},{key:"dateLabel",label:"Date"},{key:"title",label:"Title"},{key:"excerpt",label:"Excerpt",multiline:!0},{key:"href",label:"Link",kind:"link"},{key:L,label:"Tags",kind:"list",fields:[{key:"label",label:"Tag"}]}],blocks:[{type:T,label:"Card list"}],seedOnInsert:Be},De=["showCardPrice","showCardFinishes","showCardSizes","showCardBuy","showCardPage"],Fe=e=>Object.fromEntries(Object.entries(e).filter(([t])=>!De.includes(t))),S={fields:[{key:"label",label:"Label"},{key:"href",label:"Link",kind:"link"}],blocks:[{type:te,label:"Menu link"}],seed:le},f=e=>e.dynamic===!0&&e.relationship==="bundles",ot=(e={})=>ue(e),c={fields:C,blocks:[{type:ke,label:"Picture"},{type:me,label:"Eyebrow"},{type:Oe,label:"Name"},{type:Pe,label:"Specs"},{type:ye,label:"Price"},{type:_e,label:"Colour"},{type:he,label:"Size"},{type:be,label:"Buy"}],seed:e=>{if(e.dynamic!==!0)return _(e);const t=p(e);return f(e)?b(t):_(t)}},Ke=[{block:"Reviews",fields:[{key:"quote",label:"Quote"},{key:"title",label:"Title"},{key:"name",label:"Name"},{key:"role",label:"Role · location"},{key:"rating",label:"Rating"},{key:"dateLabel",label:"Date"}],blocks:[{type:"RatingBlock",label:"Rating"}]},{block:"SpecTable",fields:[{key:"label",label:"Label"},{key:"value",label:"Value"}]},{block:"DetailRows",fields:[{key:"eyebrow",label:"Eyebrow"},{key:"title",label:"Title"},{key:"copy",label:"Body",multiline:!0},{key:"image",label:"Image",kind:"image",alt:"title"},{key:"tag",label:"Image tag"}]},{block:"FooterMenu",...S},{block:"MenuBlock",...S},{block:"ProductGrid",...c},{block:"AlloyWheelsListing",...c,slots:[{slot:P},{slot:J,label:Z}],fields:[...C,...Q],seed:e=>ee(Ce(e))},{block:"RelatedProducts",...c,seed:e=>{const t=p({...Fe(e),dynamic:!0});return f(t)?b(t):_(t,{legacyWellHonoured:!0})}},{block:"BundleOffer",...c,seed:e=>b(p({...e,columns:V(e),dynamic:!0}))},{block:"ProductHero",slots:[{slot:P},{slot:Y,label:X}],fields:W,blocks:[{type:v,label:"Price"}],seed:e=>$(G(e))},{block:"FilterBlock",fields:[{key:"label",label:"Filter name"},{key:j,label:"Options",kind:"list",fields:[{key:"label",label:"Option"},{key:"count",label:"Count"}]}],blocks:[{type:T,label:"Card list"}],seed:q},{block:"FilterChipsBlock",fields:[{key:"label",label:"Pick"},{key:"mark",label:"Remove mark"}],seed:z},{block:"ContactRouting",slots:[{slot:ie,label:"Topic card"},{slot:ae,label:"Reason chip"},{slot:oe,label:"Channel row"}],fields:[{key:"eyebrow",label:"Eyebrow",plain:!0},{key:"title",label:"Title",plain:!0},{key:"copy",label:"Body",multiline:!0},{key:"response",label:"Response time"},{key:"label",label:"Label",plain:!0},{key:"value",label:"Value",plain:!0},{key:"sub",label:"Sub line",plain:!0},{key:"href",label:"Link",kind:"link"}],seed:ne},{block:re,fields:[{key:"heading",label:"Subhead"},{key:"paragraph",label:"Paragraph",multiline:!0}],seed:se},...[ce,de].map(e=>({block:e,slots:Ee,fields:Te,seed:t=>pe(e,t)})),{block:"Events",...Ie}];w(Ke);export{Ke as STOREFRONT_CARD_TEMPLATES,f as drawsKits,we as eventsCardSeeds,ot as productGridCardSeed,Be as withEventsTemplate};
1
+ import{CARD_LIST_TYPE as c,CARD_ROW_FIELD_PROP as L,CARD_ROW_LINK_PROP as y,CARD_TEMPLATE_SLOT as _,registerCardTemplates as M}from"efficient-web-builder/format/lib/content/card-template";import{DIM as o,INNER_BOX as a,TEXT as r,boxPadding as d,fillSlot as x,labelLook as V,labelStyle as v,seedNodes as G,token as p}from"efficient-web-builder/format/lib/document/seed-parts";import{BOX_TYPE as i,CONTAINER_BLOCKS_SLOT as n}from"efficient-web-builder/format/lib/document/container-blocks";import{BOX_ROW_IMAGE_PROP as W}from"efficient-web-builder/format/lib/content/box-card-rule";import{POST_CARD_HEIGHT as Y}from"efficient-web-builder/format/lib/post-card-layout";import{EVENTS_FEATURED_DARKEN as X,EVENTS_FEATURED_DARKEN_STYLE as R,EVENTS_FEATURED_PLACEMENT as $}from"../content/events-featured-look.js";import{SH_LINK as j}from"efficient-web-builder/render/lib/document/blocks/general/section-to-box-row-parts";import{rowFieldTextSeed as l}from"efficient-web-builder/format/lib/document/blocks/general/Cards/card-seed";import{withRelatedTabletColumns as O}from"../sections/product-grid-columns.js";import{bundleColumns as z}from"../sections/bundle-to-grid.js";import{HERO_PRICE_BLOCK as q,withHeroPriceTemplate as Q}from"../content/hero-price-seed.js";import{HERO_OPTION_FIELDS as f,HERO_OPTION_SLOT as Z,HERO_OPTION_SLOT_LABEL as J,withHeroOptionTemplate as ee}from"../content/hero-option-seed.js";import{FILTER_OPTIONS_FIELD as te,withFilterChipsTemplate as le,withFilterTemplate as oe}from"../content/filter-card-seed.js";import{FACET_ROW_FIELDS as T,FACET_TEMPLATE_LABEL as g,FACET_TEMPLATE_SLOT as S,withFacetTemplate as u}from"../content/facet-row-seed.js";import{MENU_LINK_BLOCK as ae,withMenuTemplate as ie}from"../content/menu-card-seed.js";import{CONTACT_CHANNEL_FIELDS as N,CONTACT_CHANNEL_SLOT as ne,CONTACT_REASON_FIELDS as se,CONTACT_REASON_SLOT as re,CONTACT_TOPIC_FIELDS as A,CONTACT_TOPIC_SLOT as de,withContactTemplates as Te}from"../content/contact-card-seed.js";import{ARTICLE_BODY_BLOCK as Ee,withArticleBodyTemplate as ce}from"../content/article-body-seed.js";import{APPOINTMENT_BOOKING_TYPE as _e,BOOKING_BOX_TYPE as pe,BOOKING_OPTION_FIELDS as Oe,BOOKING_TEMPLATE_SLOTS as be,withBookingTemplates as me}from"../content/booking-card-seed.js";import{PRODUCT_BUY_BLOCK as Ce,PRODUCT_CARD_FIELDS as b,PRODUCT_COLOUR_BLOCK as Pe,PRODUCT_EYEBROW_BLOCK as he,PRODUCT_NAME_BLOCK as ke,PRODUCT_PICTURE_BLOCK as Le,PRODUCT_PRICE_BLOCK as ye,PRODUCT_SIZE_BLOCK as Re,PRODUCT_SPECS_BLOCK as fe,productCardSeed as ge,withKitCardTemplate as m,withListingCardTemplate as Se,withProductCardTemplate as C}from"../content/product-card-seed.js";const I="tags",s=V(12),D={textStyle:"heading-3",...p("headingSmall",20),weight:500,lineHeight:1.2,letterSpacing:-.02},B={textStyle:"body-1",...p("body",14),lineHeight:1.55},ue={...D,...p("headingSmall",30)},Ne={sectionPaddingTop:24,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,sectionPaddingTopPhone:24,sectionPaddingRightPhone:28,sectionPaddingBottomPhone:32,sectionPaddingLeftPhone:28},Ae=Y.fallback,Ie=480,De=70,Be=()=>({type:i,props:{...a,name:"Featured",[W]:"cover",darken:X,darkenStyle:R,darkenPhone:De,darkenStylePhone:R,placement:$,direction:"column",gap:8,gapPhone:8,...d(32,32,20,20),sectionHeightMode:"fixed",sectionHeightValue:Ae,sectionHeightUnit:"px",sectionHeightModePhone:"fixed",sectionHeightValuePhone:Ie,sectionHeightUnitPhone:"px",[y]:"href"},slots:{[n]:[l("meta",{...r,tag:"p"},s,!0),l("title",{...r,tag:"h3",widthFit:"fill"},ue),l("excerpt",{...o,tag:"p",widthFit:"fill",maxWidth:384},B),l("dateLabel",{...o,tag:"p"},{...s,color:"muted"})]}}),we=()=>({type:i,props:{...a,name:"Post",gap:0,gapPhone:0,...d(0,0,0,0),...x("surface"),shadow:!0},slots:{[n]:[{type:"ImageBlock",props:{[L]:"cover",aspect:"16/10",contained:!1}},{type:i,props:{...a,name:"Words",gap:12,gapPhone:12,...Ne},slots:{[n]:[{type:i,props:{...a,name:"Meta",direction:"row",wrap:!0,share:"content",sharePhone:"content",phoneRow:2,gap:12,gapPhone:12,...d(0,0,0,0)},slots:{[n]:[l("meta",{...r,tag:"p"},s,!0),l("dateLabel",{...o,tag:"p"},{...s,color:"muted"},!0)]}},l("title",{...r,tag:"h3",widthFit:"fill"},D),l("excerpt",{...o,tag:"p",widthFit:"fill"},B),{type:c,props:{[L]:I},slots:{template:[{type:i,props:{...a,name:"Chip",...d(4,8,4,8),sectionBorder:{width:1}},slots:{[n]:[l("label",{...o,tag:"p"},s)]}}]}},{type:"ButtonBlock",props:{variant:"ghost",label:"Read more",href:"",[y]:"href",...j,icon:"arrow-right",iconPosition:"after",_partStyles:{label:v(12)}}}]}}]}}),Fe=()=>[Be(),we()];function He(e){if(e.template!==void 0)return e;const t=typeof e.id=="string"&&e.id.trim()?e.id:"Events",K=["featured","post"];return{...e,template:G(Fe(),(Ve,U)=>{const[P,...h]=U.split("."),k=K[Number(P)]??`card${P}`;return h.length?`${t}~${k}.${h.join(".")}`:`${t}~${k}`})}}const Ke={fields:[{key:"cover",label:"Cover",kind:"image",alt:"title"},{key:"meta",label:"Eyebrow"},{key:"dateLabel",label:"Date"},{key:"title",label:"Title"},{key:"excerpt",label:"Excerpt",multiline:!0},{key:"href",label:"Link",kind:"link"},{key:I,label:"Tags",kind:"list",fields:[{key:"label",label:"Tag"}]}],blocks:[{type:c,label:"Card list"}],seedOnInsert:He},Ue=["showCardPrice","showCardFinishes","showCardSizes","showCardBuy","showCardPage"],Me=e=>Object.fromEntries(Object.entries(e).filter(([t])=>!Ue.includes(t))),w={fields:[{key:"label",label:"Label"},{key:"href",label:"Link",kind:"link"}],blocks:[{type:ae,label:"Menu link"}],seed:ie},F=e=>e.dynamic===!0&&e.relationship==="bundles",st=(e={})=>ge(e),E={fields:b,blocks:[{type:Le,label:"Picture"},{type:he,label:"Eyebrow"},{type:ke,label:"Name"},{type:fe,label:"Specs"},{type:ye,label:"Price"},{type:Pe,label:"Colour"},{type:Re,label:"Size"},{type:Ce,label:"Buy"}],seed:e=>{if(e.dynamic!==!0)return C(e);const t=O(e);return F(e)?m(t):C(t)}},H=[{key:"label",label:"Filter name"},{key:te,label:"Options",kind:"list",fields:[{key:"label",label:"Option"},{key:"count",label:"Count"}]}],xe=[{block:"Reviews",fields:[{key:"quote",label:"Quote"},{key:"title",label:"Title"},{key:"name",label:"Name"},{key:"role",label:"Role · location"},{key:"rating",label:"Rating"},{key:"dateLabel",label:"Date"}],blocks:[{type:"RatingBlock",label:"Rating"}]},{block:"SpecTable",fields:[{key:"label",label:"Label"},{key:"value",label:"Value"}]},{block:"DetailRows",fields:[{key:"eyebrow",label:"Eyebrow"},{key:"title",label:"Title"},{key:"copy",label:"Body",multiline:!0},{key:"image",label:"Image",kind:"image",alt:"title"},{key:"tag",label:"Image tag"}]},{block:"FooterMenu",...w},{block:"MenuBlock",...w},{block:"ProductGrid",...E},{block:"AlloyWheelsListing",...E,slots:[{slot:_,fields:b},{slot:S,label:g,fields:T}],fields:[...b,...T],seed:e=>u(Se(e))},{block:"RelatedProducts",...E,seed:e=>{const t=O({...Me(e),dynamic:!0});return F(t)?m(t):C(t,{legacyWellHonoured:!0})}},{block:"BundleOffer",...E,seed:e=>m(O({...e,columns:z(e),dynamic:!0}))},{block:"ProductHero",slots:[{slot:_,fields:[]},{slot:Z,label:J,fields:f}],fields:f,blocks:[{type:q,label:"Price"}],seed:e=>ee(Q(e))},{block:"FilterBlock",slots:[{slot:_,fields:H},{slot:S,label:g,fields:T}],fields:[...H,...T],blocks:[{type:c,label:"Card list"}],seed:e=>u(oe(e))},{block:"FilterChipsBlock",fields:[{key:"label",label:"Pick"},{key:"mark",label:"Remove mark"}],seed:le},{block:"ContactRouting",slots:[{slot:de,label:"Topic card",fields:A},{slot:re,label:"Reason chip",fields:se},{slot:ne,label:"Channel row",fields:N}],fields:[...A,...N],seed:Te},{block:Ee,fields:[{key:"heading",label:"Subhead"},{key:"paragraph",label:"Paragraph",multiline:!0}],seed:ce},...[pe,_e].map(e=>({block:e,slots:be,fields:Oe,seed:t=>me(e,t)})),{block:"Events",...Ke}];M(xe);export{xe as STOREFRONT_CARD_TEMPLATES,F as drawsKits,Fe as eventsCardSeeds,st as productGridCardSeed,He as withEventsTemplate};
@@ -7,5 +7,6 @@ import "./section-to-box-rows-productgrid.js";
7
7
  import "./section-to-box-rows-events.js";
8
8
  import "./section-to-box-rows-detail.js";
9
9
  import "./section-to-box-rows-service.js";
10
+ import "./section-to-box-rows-listing.js";
10
11
  export declare function renderConfig(): Config;
11
12
  export declare function headerRenderConfig(): Config;
@@ -1 +1 @@
1
- import{Fragment as u,jsx as E}from"react/jsx-runtime";import{generalRenderMetas as h}from"efficient-web-builder/format/lib/document/blocks/general/metas";import{finishRenderRegistry as g}from"efficient-web-builder/render/lib/document/render-registry";import{buildBlockCategories as S}from"efficient-web-builder/format/lib/document/section-catalog";import{SITE_HEADER_TYPE as a}from"efficient-web-builder/format/lib/document/section-groups";import"./slot-seeds.js";import"./card-templates.js";import"./section-to-box-rows-reviews.js";import"./section-to-box-rows-spec.js";import"./section-to-box-rows-productgrid.js";import"./section-to-box-rows-events.js";import"./section-to-box-rows-detail.js";import"./section-to-box-rows-service.js";import{COMMERCE_METAS as R}from"./blocks/commerce/metas.js";import{SERVICE_METAS as _}from"./blocks/service/metas.js";import P from"./blocks/text-part-shapes.json";import{addPageBlocksFromFooter as y}from"./footer-page-blocks.js";import{LAZY_DRAWS as f}from"./lazy-draws.js";import{drawPublishedStorefrontRoot as T}from"./storefront-root.js";import{withShopperAddressMark as b}from"../../components/catalog/ShopperScope.js";import{SHOPPER_BLOCK_TYPES as k}from"../wheels/shopper-first-paint.js";const A=P,O=(t,e)=>{const r=A[t];return{...e,...r?{textParts:r}:null}};let p=null;function l(){if(p)return p;const t={},e=h();for(const o of Object.keys(e))t[o]={...e[o],render:f[o]};const r={...R,..._};for(const o of Object.keys(r)){const m=k.has(o)?b(f[o]):f[o];t[o]=O(o,{...r[o],render:m})}y(t);const n={root:{render:T},categories:S(),components:t};return g(n),p=n,n}function j(t=l()){const e=t.components,r=Object.keys(e),n=new Set([a]),o=[a];for(;o.length;){const m=o.shift();for(const c of Object.values(e[m]?.fields??{})){if(c?.type!=="slot")continue;const d=c.allow??r.filter(s=>!c.disallow?.includes(s));for(const s of d)n.has(s)||!(s in e)||(n.add(s),o.push(s))}}return[...n]}let i=null;function N(){if(i)return i;const t=l(),e=t.components;return i={...t,root:{render:({children:r})=>E(u,{children:r})},components:Object.fromEntries(j(t).map(r=>[r,e[r]]))},i}export{N as headerRenderConfig,l as renderConfig};
1
+ import{Fragment as u,jsx as E}from"react/jsx-runtime";import{generalRenderMetas as h}from"efficient-web-builder/format/lib/document/blocks/general/metas";import{finishRenderRegistry as g}from"efficient-web-builder/render/lib/document/render-registry";import{buildBlockCategories as S}from"efficient-web-builder/format/lib/document/section-catalog";import{SITE_HEADER_TYPE as a}from"efficient-web-builder/format/lib/document/section-groups";import"./slot-seeds.js";import"./card-templates.js";import"./section-to-box-rows-reviews.js";import"./section-to-box-rows-spec.js";import"./section-to-box-rows-productgrid.js";import"./section-to-box-rows-events.js";import"./section-to-box-rows-detail.js";import"./section-to-box-rows-service.js";import"./section-to-box-rows-listing.js";import{COMMERCE_METAS as R}from"./blocks/commerce/metas.js";import{SERVICE_METAS as _}from"./blocks/service/metas.js";import P from"./blocks/text-part-shapes.json";import{addPageBlocksFromFooter as y}from"./footer-page-blocks.js";import{LAZY_DRAWS as f}from"./lazy-draws.js";import{drawPublishedStorefrontRoot as T}from"./storefront-root.js";import{withShopperAddressMark as b}from"../../components/catalog/ShopperScope.js";import{SHOPPER_BLOCK_TYPES as k}from"../wheels/shopper-first-paint.js";const A=P,O=(t,e)=>{const r=A[t];return{...e,...r?{textParts:r}:null}};let p=null;function l(){if(p)return p;const t={},e=h();for(const o of Object.keys(e))t[o]={...e[o],render:f[o]};const r={...R,..._};for(const o of Object.keys(r)){const m=k.has(o)?b(f[o]):f[o];t[o]=O(o,{...r[o],render:m})}y(t);const n={root:{render:T},categories:S(),components:t};return g(n),p=n,n}function j(t=l()){const e=t.components,r=Object.keys(e),n=new Set([a]),o=[a];for(;o.length;){const m=o.shift();for(const c of Object.values(e[m]?.fields??{})){if(c?.type!=="slot")continue;const d=c.allow??r.filter(s=>!c.disallow?.includes(s));for(const s of d)n.has(s)||!(s in e)||(n.add(s),o.push(s))}}return[...n]}let i=null;function Q(){if(i)return i;const t=l(),e=t.components;return i={...t,root:{render:({children:r})=>E(u,{children:r})},components:Object.fromEntries(j(t).map(r=>[r,e[r]]))},i}export{Q as headerRenderConfig,l as renderConfig};
@@ -1 +1 @@
1
- import{SECTION_BOX_SLOT as o,SECTION_BOX_TYPE as i,registerSectionToBox as c}from"efficient-web-builder/render/lib/sections/section-to-box";import{DIM as a,INNER_BOX as r,NO_PAD as d,SAME_KEYS as l,SECTION_BOX as m,TEXT as p}from"efficient-web-builder/render/lib/document/blocks/general/section-to-box-row-parts";import{token as n}from"efficient-web-builder/render/lib/document/blocks/general/section-head-looks";import{CARD_ROW_FIELD_PROP as g}from"efficient-web-builder/format/lib/content/card-template";import{rowFieldTextSeed as t}from"efficient-web-builder/format/lib/document/blocks/general/Cards/card-seed";const s=e=>({textStyle:"body-5",...n("label",e),letterSpacing:.2,case:"upper"}),S=e=>({type:i,props:{...r,name:"Row",mirrorCards:e?"odd":"even",direction:"row",share:"equal",align:"center",gap:48,sectionPaddingTop:60,sectionPaddingBottom:60,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60},slots:{[o]:[{type:i,props:{...r,name:"Words",direction:"column",gap:16},slots:{[o]:[t("eyebrow",p,{...s(13),color:"accent"}),t("title",p,{textStyle:"heading-2",...n("headingMedium",42,28),lineHeight:1.1,letterSpacing:-.02}),t("copy",a,{textStyle:"body-1",...n("body",15),lineHeight:1.6})]}},{type:i,props:{...r,name:"Picture",direction:"column",gap:12},slots:{[o]:[{type:"ImageBlock",props:{[g]:"image",aspect:"1/1",fit:"contain"}},t("tag",{...a,align:"right"},{...s(11),align:"right"})]}}]}}),y={name:"Feature Rows",boxProps:{...m,...d,direction:"column",gap:0},box:l,parts:[{kind:"core",keep:"rest",slots:e=>({template:[S(e.startLeft===!0)]})}]};c({DetailRows:y});export{S as detailRowSeed};
1
+ import{SECTION_BOX_SLOT as t,SECTION_BOX_TYPE as i,registerSectionToBox as d}from"efficient-web-builder/render/lib/sections/section-to-box";import{DIM as n,INNER_BOX as r,NO_PAD as l,SAME_KEYS as m,SECTION_BOX as c,TEXT as a}from"efficient-web-builder/render/lib/document/blocks/general/section-to-box-row-parts";import{token as p}from"efficient-web-builder/render/lib/document/blocks/general/section-head-looks";import{labelStyle as s}from"efficient-web-builder/format/lib/document/seed-parts";import{CARD_ROW_FIELD_PROP as g}from"efficient-web-builder/format/lib/content/card-template";import{rowFieldTextSeed as e}from"efficient-web-builder/format/lib/document/blocks/general/Cards/card-seed";const S=o=>({type:i,props:{...r,name:"Row",mirrorCards:o?"odd":"even",direction:"row",share:"equal",align:"center",gap:48,sectionPaddingTop:60,sectionPaddingBottom:60,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60},slots:{[t]:[{type:i,props:{...r,name:"Words",direction:"column",gap:16},slots:{[t]:[e("eyebrow",a,{...s(13),color:"accent"}),e("title",a,{textStyle:"heading-2",...p("headingMedium",42,28),lineHeight:1.1,letterSpacing:-.02}),e("copy",n,{textStyle:"body-1",...p("body",15),lineHeight:1.6})]}},{type:i,props:{...r,name:"Picture",direction:"column",gap:12},slots:{[t]:[{type:"ImageBlock",props:{[g]:"image",aspect:"1/1",fit:"contain"}},e("tag",{...n,align:"right"},{...s(11),align:"right"})]}}]}}),P={name:"Feature Rows",boxProps:{...c,...l,direction:"column",gap:0},box:m,parts:[{kind:"core",keep:"rest",slots:o=>({template:[S(o.startLeft===!0)]})}]};d({DetailRows:P});export{S as detailRowSeed};
@@ -0,0 +1,2 @@
1
+ import "./card-templates.js";
2
+ export declare const LISTING_HEAD_ROWS: readonly ["heading", "intro"];
@@ -0,0 +1 @@
1
+ import{registerSectionToBox as d}from"efficient-web-builder/render/lib/sections/section-to-box";import{DIM as m,DROP_COMMON as h,DROP_SIDE_PADDING as l,FOLLOW_THE_BOX as g,INNER_BOX as O,SAME_KEYS as E,SECTION_BOX as T,TEXT as n,wrapperPad as _,wrapperPadKeys as y}from"efficient-web-builder/render/lib/document/blocks/general/section-to-box-row-parts";import{token as L}from"efficient-web-builder/format/lib/document/seed-parts";import{fluidToken as S}from"efficient-web-builder/render/lib/document/blocks/general/section-head-looks";import{PAGE_TITLE_LEVEL_PROP as P,pageTitleDemoted as r}from"efficient-web-builder/format/lib/document/one-h1";import{CARD_TEMPLATE_SLOT as c,templateOnInsert as k,templateOnRead as I}from"efficient-web-builder/format/lib/content/card-template";import{FACET_TEMPLATE_SLOT as b}from"../content/facet-row-seed.js";import"./card-templates.js";const p={top:40,bottom:40,topPhone:40,bottomPhone:40},i={textStyle:"heading-1",...S("headingMedium",28,4,40),lineHeight:1.05,letterSpacing:-.02},A=["heading","intro"],s=[c,b];function f(e,t){const a=(t?k:I)("AlloyWheelsListing",e);return Object.fromEntries(s.map(o=>[o,a[o]]))}const x=()=>({name:"List",boxProps:e=>({...T,direction:"column",gap:24,gapPhone:24,..._(e,p)}),box:[...E,...y(p)],parts:[{kind:"group",name:"Heading",props:{...O,gap:8,gapPhone:8},parts:[{kind:"text",key:"heading",role:"heading",props:{...n,tag:"h1"},style:i,when:e=>!r(e)},{kind:"text",key:"heading",role:"heading",props:{...n,tag:"h2"},style:i,when:r},{kind:"text",key:"intro",role:"body",props:m,style:{textStyle:"body-1",...L("body",15)}}]},{kind:"core",keep:"rest",props:g,derive:{reads:[...s],props:(e,t)=>f(e,t.press===!0)}}],pressKeepsEmpty:A,drop:{...h,...l,[P]:"read by the heading part's `when`: 2 (set by lib/document/one-h1 on a later opener) makes the Text an h2, anything else an h1"}});d({AlloyWheelsListing:x()});export{A as LISTING_HEAD_ROWS};
@@ -1 +1 @@
1
- import{SECTION_BOX_SLOT as i,SECTION_BOX_TYPE as n,headParts as d,registerSectionToBox as l}from"efficient-web-builder/render/lib/sections/section-to-box";import{DIM as s,DROP_COMMON as c,DROP_SIDE_PADDING as m,INNER_BOX as t,SAME_KEYS as g,SECTION_BOX as h,TEXT as e,headingCaseOf as P,wrapperPad as T,wrapperPadKeys as O}from"efficient-web-builder/render/lib/document/blocks/general/section-to-box-row-parts";import{rowFieldTextSeed as o}from"efficient-web-builder/format/lib/document/blocks/general/Cards/card-seed";import{FRAME_OWN_BOX as S}from"../../components/Reviews.js";import{bandRoomBelow as b}from"../sections/section-band.js";const a=b(S),y={top:84,bottom:a.bottom,topPhone:84,bottomPhone:a.bottomPhone},r=y,[x,_]=d("Testimonials"),w={type:n,props:{...t,name:"Card",gap:20,sectionPaddingTop:36,sectionPaddingBottom:36,sectionPaddingLeft:36,sectionPaddingRight:36,sectionPaddingTopPhone:28,sectionPaddingBottomPhone:28,sectionPaddingLeftPhone:28,sectionPaddingRightPhone:28,sectionAccent:0},slots:{[i]:[{type:"Text",props:{...e,text:"“",_partStyles:{text:{textStyle:"heading-2",color:"accent",lineHeight:1}}}},o("quote",s,{size:16,lineHeight:1.6}),{type:n,props:{...t,name:"Name",gap:4,sectionPaddingTop:20,sectionBorder:{top:1}},slots:{[i]:[o("name",e,{textStyle:"body-5",weight:500,case:"upper",letterSpacing:.04}),o("role",s,{textStyle:"body-5"})]}}]}},E={name:"Testimonials",boxProps:p=>({...h,direction:"column",gap:44,sectionBorder:{top:1},...T(p,r)}),box:[...g,...O(r)],parts:[{kind:"group",name:"Heading",props:{...t,gap:16},parts:[{...x,props:e},{..._,props:e,style:{textStyle:"heading-2",lineHeight:1,letterSpacing:-.02}}]},{kind:"core",as:"Reviews",keep:["items","columns"],slots:{template:[w]}}],site:P("title"),drop:{...c,...m,eyebrowLook:"the eyebrow Text wears the plain eyebrow's start look (Testimonials' default); a stored `filled` look needs a filled Text look",headPlacement:"the head is the Text blocks above the Reviews block, which is always own-box here"}};l({Testimonials:E});export{y as REVIEWS_BAND_OWN};
1
+ import{SECTION_BOX_SLOT as i,SECTION_BOX_TYPE as n,headParts as d,registerSectionToBox as l}from"efficient-web-builder/render/lib/sections/section-to-box";import{DIM as s,DROP_COMMON as c,DROP_SIDE_PADDING as m,INNER_BOX as o,SAME_KEYS as g,SECTION_BOX as h,TEXT as e,headingCaseOf as P,wrapperPad as T,wrapperPadKeys as O}from"efficient-web-builder/render/lib/document/blocks/general/section-to-box-row-parts";import{rowFieldTextSeed as t}from"efficient-web-builder/format/lib/document/blocks/general/Cards/card-seed";import{LABEL_FACE as S}from"efficient-web-builder/format/lib/document/seed-parts";import{FRAME_OWN_BOX as _}from"../../components/Reviews.js";import{bandRoomBelow as b}from"../sections/section-band.js";const a=b(_),E={top:84,bottom:a.bottom,topPhone:84,bottomPhone:a.bottomPhone},r=E,[w,x]=d("Testimonials"),y={type:n,props:{...o,name:"Card",gap:20,sectionPaddingTop:36,sectionPaddingBottom:36,sectionPaddingLeft:36,sectionPaddingRight:36,sectionPaddingTopPhone:28,sectionPaddingBottomPhone:28,sectionPaddingLeftPhone:28,sectionPaddingRightPhone:28,sectionAccent:0},slots:{[i]:[{type:"Text",props:{...e,text:"“",_partStyles:{text:{textStyle:"heading-2",color:"accent",lineHeight:1}}}},t("quote",s,{size:16,lineHeight:1.6}),{type:n,props:{...o,name:"Name",gap:4,sectionPaddingTop:20,sectionBorder:{top:1}},slots:{[i]:[t("name",e,{...S,weight:500,letterSpacing:.04}),t("role",s,{textStyle:"body-5"})]}}]}},B={name:"Testimonials",boxProps:p=>({...h,direction:"column",gap:44,sectionBorder:{top:1},...T(p,r)}),box:[...g,...O(r)],parts:[{kind:"group",name:"Heading",props:{...o,gap:16},parts:[{...w,props:e},{...x,props:e,style:{textStyle:"heading-2",lineHeight:1,letterSpacing:-.02}}]},{kind:"core",as:"Reviews",keep:["items","columns"],slots:{template:[y]}}],site:P("title"),drop:{...c,...m,eyebrowLook:"the eyebrow Text wears the plain eyebrow's start look (Testimonials' default); a stored `filled` look needs a filled Text look",headPlacement:"the head is the Text blocks above the Reviews block, which is always own-box here"}};l({Testimonials:B});export{E as REVIEWS_BAND_OWN};
@@ -1 +1 @@
1
- import{SECTION_BOX_SLOT as O,SECTION_BOX_TYPE as f,headParts as _,registerSectionToBox as v}from"efficient-web-builder/render/lib/sections/section-to-box";import{BUTTON as C,DIM as i,DROP_COMMON as a,DROP_SIDE_PADDING as s,FOLLOW_THE_BOX as H,INNER_BOX as c,SAME_KEYS as E,SECTION_BOX as h,SH_LINK as W,TEXT as n,bandPage as I,smallText as m,surfaceAccent as y,wrapperPad as b,wrapperPadKeys as R}from"efficient-web-builder/render/lib/document/blocks/general/section-to-box-row-parts";import{boxPadding as D,token as o}from"efficient-web-builder/format/lib/document/seed-parts";import{CARD_ROW_FIELD_PROP as F}from"efficient-web-builder/format/lib/content/card-template";import{phoneKey as w}from"efficient-easel/draw";import{REVIEWS_BAND_OWN as K}from"./section-to-box-rows-reviews.js";import{rowFieldTextSeed as p}from"efficient-web-builder/format/lib/document/blocks/general/Cards/card-seed";const l=e=>[...E.filter(t=>t!=="sectionAccent"),["sectionAccent","sectionAccent",(t,r,d)=>y(t,d)],...R(e)],x=(e,t,r)=>(d,N)=>({...h,sectionAccent:y(d.sectionAccent??0,N),direction:"column",gap:t,gapPhone:r,sectionBorder:{top:1},...b(d,e)}),P=(e,t,r)=>({kind:"text",key:e,role:"heading",props:n,style:{textStyle:"heading-2",...o("headingMedium",44,32),weight:500,case:"upper",lineHeight:t,letterSpacing:r}}),u=(e,t,r={})=>({kind:"group",name:"Heading",props:{...c,gap:e,gapPhone:e,...r},parts:t}),k=(e={})=>({kind:"core",keep:"rest",props:H,...e}),g=K,[L]=_("ReviewForm"),M=()=>({name:"Review Form",boxProps:x(g,48,32),box:l(g),parts:[u(16,[{...L,props:n},P("title",1,-.02)]),k()],pressKeepsEmpty:["eyebrow","title"],drop:{...a,...s,headPlacement:"the head is the Text blocks above the form, which is always own-box here"}}),[X]=_("Reviews"),T=e=>({textStyle:"body-5",...o("label",12),case:"upper",letterSpacing:e}),G={type:f,props:{...c,name:"Card",gap:16,...D(40,40,32,32),sectionAccent:0},slots:{[O]:[{type:"RatingBlock",props:{[F]:"rating"}},p("title",n,{textStyle:"heading-1",...o("body",19),weight:500,case:"upper",lineHeight:1.2,letterSpacing:-.01}),p("quote",i,{textStyle:"body-1",...o("body",15),lineHeight:1.65}),{type:f,props:{...c,name:"Byline",direction:"row",justify:"between",align:"start",share:"content",phoneRow:2,[w("share")]:"content",gap:16,sectionPaddingTop:20,sectionPaddingTopPhone:20,sectionBorder:{top:1}},slots:{[O]:[p("name",n,T(.22)),p("dateLabel",{...i,align:"right"},{...T(.18),align:"right"}),p("role",{...i,align:"right"},{...T(.18),align:"right"})]}}]}},V=()=>({name:"Reviews",boxProps:x(g,48,32),box:l(g),parts:[u(16,[{...X,props:n},P("title",1,-.02)]),k({slots:{template:[G]}})],pressKeepsEmpty:["eyebrow","title"],drop:{...a,...s,eyebrowLook:"the eyebrow Text wears the plain eyebrow's start look (Reviews' default); a stored `filled` look needs a filled Text look",headPlacement:"the head is the Text blocks above the reviews, which are always own-box here"}}),S={top:88,bottom:88,topTablet:88,bottomTablet:88,topPhone:64,bottomPhone:64},j=()=>({name:"Booking Form",boxProps:x(S,40,40),box:l(S),parts:[u(16,[m("eyebrow",{...o("label",12),weight:600,letterSpacing:.24,color:"accent"}),P("heading",.98,-.025),{kind:"text",key:"intro",props:{...i,maxWidth:660},style:{textStyle:"heading-1",...o("body",17),weight:400,case:"none",lineHeight:1.65,color:"muted"}}],{maxWidth:760}),k()],pressKeepsEmpty:["eyebrow","heading","intro"],drop:{...a,...s}}),B={top:88,bottom:88,topPhone:64,bottomPhone:64},Y=()=>({name:"Ready-to-Order Banner",boxProps:e=>({...h,direction:"column",align:"center",gap:20,gapPhone:20,...b(e,B)}),box:[...E,...R(B)],parts:[{...m("eyebrow"),props:{...n,align:"center"}},{kind:"text",key:"title",role:"heading",props:{...n,align:"center",maxWidth:720},style:{textStyle:"heading-1",...o("headingMedium",44,30),weight:500,case:"none",lineHeight:1.05,letterSpacing:-.03,align:"center"}},{kind:"text",key:"body",props:{...n,align:"center",maxWidth:560},style:{textStyle:"body-1",...o("body",16),lineHeight:1.6,align:"center"}},{kind:"group",name:"Buttons",props:{...c,direction:"row",align:"center",justify:"center",share:"content",phoneRow:2,[w("share")]:"content",gap:24,gapPhone:24,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>({...C,align:"center",href:typeof e.ctaHref=="string"&&e.ctaHref?e.ctaHref:"/checkout"})},{kind:"button",key:"secondaryText",href:"secondaryHref",variant:"ghost",props:{...W,align:"center",icon:"none"},style:{...o("label",13),case:"upper",letterSpacing:.2,color:"muted"}}]}],pressKeepsEmpty:["eyebrow","title","body"],drop:{...a,...s}}),A={top:60,bottom:0,topPhone:60,bottomPhone:0},q=()=>({name:"Contact Form",boxProps:(e,t)=>({...h,sectionAccent:y(e.sectionAccent??0,t),direction:"column",gap:0,gapPhone:0,...b(e,A)}),box:l(A),parts:[{kind:"group",name:"Header",props:{...c,direction:"row",align:"center",share:"content",phoneRow:2,[w("share")]:"content",gap:24,gapPhone:24,sectionPaddingBottom:24,sectionPaddingBottomPhone:24,sectionBorder:{bottom:1}},parts:[m("routingNumber"),{kind:"text",key:"routingTagline",props:i,style:{textStyle:"heading-1",...o("body",14),weight:400,case:"upper",letterSpacing:.04,color:"muted"}}]},{kind:"core",keep:"rest",derive:{reads:["sectionAccent"],props:(e,t)=>({sectionAccent:I(e.sectionAccent??0,t)})}}],drop:{...a,...s}});v({ContactRouting:q(),ReviewForm:M(),AppointmentBooking:j(),Reviews:V(),CheckoutCTA:Y()});
1
+ import{SECTION_BOX_SLOT as O,SECTION_BOX_TYPE as f,headParts as _,registerSectionToBox as v}from"efficient-web-builder/render/lib/sections/section-to-box";import{BUTTON as C,DIM as i,DROP_COMMON as a,DROP_SIDE_PADDING as s,FOLLOW_THE_BOX as H,INNER_BOX as c,SAME_KEYS as E,SECTION_BOX as h,SH_LINK as W,TEXT as n,bandPage as I,smallText as m,surfaceAccent as y,wrapperPad as b,wrapperPadKeys as R}from"efficient-web-builder/render/lib/document/blocks/general/section-to-box-row-parts";import{boxPadding as D,labelStyle as F,token as o}from"efficient-web-builder/format/lib/document/seed-parts";import{CARD_ROW_FIELD_PROP as K}from"efficient-web-builder/format/lib/content/card-template";import{phoneKey as w}from"efficient-easel/draw";import{REVIEWS_BAND_OWN as L}from"./section-to-box-rows-reviews.js";import{rowFieldTextSeed as p}from"efficient-web-builder/format/lib/document/blocks/general/Cards/card-seed";const l=e=>[...E.filter(t=>t!=="sectionAccent"),["sectionAccent","sectionAccent",(t,r,d)=>y(t,d)],...R(e)],x=(e,t,r)=>(d,N)=>({...h,sectionAccent:y(d.sectionAccent??0,N),direction:"column",gap:t,gapPhone:r,sectionBorder:{top:1},...b(d,e)}),P=(e,t,r)=>({kind:"text",key:e,role:"heading",props:n,style:{textStyle:"heading-2",...o("headingMedium",44,32),weight:500,case:"upper",lineHeight:t,letterSpacing:r}}),k=(e,t,r={})=>({kind:"group",name:"Heading",props:{...c,gap:e,gapPhone:e,...r},parts:t}),u=(e={})=>({kind:"core",keep:"rest",props:H,...e}),g=L,[M]=_("ReviewForm"),X=()=>({name:"Review Form",boxProps:x(g,48,32),box:l(g),parts:[k(16,[{...M,props:n},P("title",1,-.02)]),u()],pressKeepsEmpty:["eyebrow","title"],drop:{...a,...s,headPlacement:"the head is the Text blocks above the form, which is always own-box here"}}),[G]=_("Reviews"),T=e=>({...F(12),letterSpacing:e}),V={type:f,props:{...c,name:"Card",gap:16,...D(40,40,32,32),sectionAccent:0},slots:{[O]:[{type:"RatingBlock",props:{[K]:"rating"}},p("title",n,{textStyle:"heading-1",...o("body",19),weight:500,case:"upper",lineHeight:1.2,letterSpacing:-.01}),p("quote",i,{textStyle:"body-1",...o("body",15),lineHeight:1.65}),{type:f,props:{...c,name:"Byline",direction:"row",justify:"between",align:"start",share:"content",phoneRow:2,[w("share")]:"content",gap:16,sectionPaddingTop:20,sectionPaddingTopPhone:20,sectionBorder:{top:1}},slots:{[O]:[p("name",n,T(.22)),p("dateLabel",{...i,align:"right"},{...T(.18),align:"right"}),p("role",{...i,align:"right"},{...T(.18),align:"right"})]}}]}},j=()=>({name:"Reviews",boxProps:x(g,48,32),box:l(g),parts:[k(16,[{...G,props:n},P("title",1,-.02)]),u({slots:{template:[V]}})],pressKeepsEmpty:["eyebrow","title"],drop:{...a,...s,eyebrowLook:"the eyebrow Text wears the plain eyebrow's start look (Reviews' default); a stored `filled` look needs a filled Text look",headPlacement:"the head is the Text blocks above the reviews, which are always own-box here"}}),S={top:88,bottom:88,topTablet:88,bottomTablet:88,topPhone:64,bottomPhone:64},Y=()=>({name:"Booking Form",boxProps:x(S,40,40),box:l(S),parts:[k(16,[m("eyebrow",{...o("label",12),weight:600,letterSpacing:.24,color:"accent"}),P("heading",.98,-.025),{kind:"text",key:"intro",props:{...i,maxWidth:660},style:{textStyle:"heading-1",...o("body",17),weight:400,case:"none",lineHeight:1.65,color:"muted"}}],{maxWidth:760}),u()],pressKeepsEmpty:["eyebrow","heading","intro"],drop:{...a,...s}}),B={top:88,bottom:88,topPhone:64,bottomPhone:64},q=()=>({name:"Ready-to-Order Banner",boxProps:e=>({...h,direction:"column",align:"center",gap:20,gapPhone:20,...b(e,B)}),box:[...E,...R(B)],parts:[{...m("eyebrow"),props:{...n,align:"center"}},{kind:"text",key:"title",role:"heading",props:{...n,align:"center",maxWidth:720},style:{textStyle:"heading-1",...o("headingMedium",44,30),weight:500,case:"none",lineHeight:1.05,letterSpacing:-.03,align:"center"}},{kind:"text",key:"body",props:{...n,align:"center",maxWidth:560},style:{textStyle:"body-1",...o("body",16),lineHeight:1.6,align:"center"}},{kind:"group",name:"Buttons",props:{...c,direction:"row",align:"center",justify:"center",share:"content",phoneRow:2,[w("share")]:"content",gap:24,gapPhone:24,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>({...C,align:"center",href:typeof e.ctaHref=="string"&&e.ctaHref?e.ctaHref:"/checkout"})},{kind:"button",key:"secondaryText",href:"secondaryHref",variant:"ghost",props:{...W,align:"center",icon:"none"},style:{...o("label",13),case:"upper",letterSpacing:.2,color:"muted"}}]}],pressKeepsEmpty:["eyebrow","title","body"],drop:{...a,...s}}),A={top:60,bottom:0,topPhone:60,bottomPhone:0},U=()=>({name:"Contact Form",boxProps:(e,t)=>({...h,sectionAccent:y(e.sectionAccent??0,t),direction:"column",gap:0,gapPhone:0,...b(e,A)}),box:l(A),parts:[{kind:"group",name:"Header",props:{...c,direction:"row",align:"center",share:"content",phoneRow:2,[w("share")]:"content",gap:24,gapPhone:24,sectionPaddingBottom:24,sectionPaddingBottomPhone:24,sectionBorder:{bottom:1}},parts:[m("routingNumber"),{kind:"text",key:"routingTagline",props:i,style:{textStyle:"heading-1",...o("body",14),weight:400,case:"upper",letterSpacing:.04,color:"muted"}}]},{kind:"core",keep:"rest",derive:{reads:["sectionAccent"],props:(e,t)=>({sectionAccent:I(e.sectionAccent??0,t)})}}],drop:{...a,...s}});v({ContactRouting:U(),ReviewForm:X(),AppointmentBooking:Y(),Reviews:j(),CheckoutCTA:q()});
@@ -1 +1 @@
1
- import{SECTION_BOX_SLOT as p,SECTION_BOX_TYPE as a,registerSectionToBox as m}from"efficient-web-builder/render/lib/sections/section-to-box";import{headOnlyRow as l}from"efficient-web-builder/render/lib/document/blocks/general/section-to-box-rows-head";import{DIM as c,INNER_BOX as d,TEXT as P,lineSides as g}from"efficient-web-builder/render/lib/document/blocks/general/section-to-box-row-parts";import{bandRoomBelow as B}from"../sections/section-band.js";import{SPEC_TABLE_BAND as b}from"../sections/spec-table-band.js";import{token as E}from"efficient-web-builder/render/lib/document/blocks/general/section-head-looks";import{rowFieldTextSeed as e}from"efficient-web-builder/format/lib/document/blocks/general/Cards/card-seed";import{phoneKey as n}from"efficient-easel/draw";const i={textStyle:"body-5",...E("label",14),letterSpacing:.05,lineHeight:1.5},S={type:a,props:{...d,name:"Row",direction:"row",justify:"between",align:"start",share:"content",phoneRow:2,[n("share")]:"content",[n("wrap")]:!1,gap:24,sectionPaddingTop:16,sectionPaddingBottom:16,sectionPaddingTopPhone:16,sectionPaddingBottomPhone:16},slots:{[p]:[e("label",c,{...i,case:"upper"}),e("value",{...P,align:"right"},{...i,align:"right"})]}},o=l("SpecTable",{slots:{template:[S]}}),t=B(b.ownBox),T={...o,boxProps:(r,s)=>({...typeof o.boxProps=="function"?o.boxProps(r,s):o.boxProps,sectionPaddingBottom:t.bottom,sectionPaddingBottomPhone:t.bottomPhone,...t.line?{sectionBorder:g({bottom:1})}:{}})};m({SpecTable:T});
1
+ import{SECTION_BOX_SLOT as m,SECTION_BOX_TYPE as p,registerSectionToBox as s}from"efficient-web-builder/render/lib/sections/section-to-box";import{headOnlyRow as a}from"efficient-web-builder/render/lib/document/blocks/general/section-to-box-rows-head";import{DIM as l,INNER_BOX as c,TEXT as d,lineSides as g}from"efficient-web-builder/render/lib/document/blocks/general/section-to-box-row-parts";import{bandRoomBelow as P}from"../sections/section-band.js";import{SPEC_TABLE_BAND as S}from"../sections/spec-table-band.js";import{token as b}from"efficient-web-builder/render/lib/document/blocks/general/section-head-looks";import{labelStyle as B}from"efficient-web-builder/format/lib/document/seed-parts";import{rowFieldTextSeed as e}from"efficient-web-builder/format/lib/document/blocks/general/Cards/card-seed";import{phoneKey as n}from"efficient-easel/draw";const E={textStyle:"body-5",...b("label",14),letterSpacing:.05,lineHeight:1.5},T={type:p,props:{...c,name:"Row",direction:"row",justify:"between",align:"start",share:"content",phoneRow:2,[n("share")]:"content",[n("wrap")]:!1,gap:24,sectionPaddingTop:16,sectionPaddingBottom:16,sectionPaddingTopPhone:16,sectionPaddingBottomPhone:16},slots:{[m]:[e("label",l,{...B(14),letterSpacing:.05,lineHeight:1.5}),e("value",{...d,align:"right"},{...E,align:"right"})]}},o=a("SpecTable",{slots:{template:[T]}}),t=P(S.ownBox),f={...o,boxProps:(i,r)=>({...typeof o.boxProps=="function"?o.boxProps(i,r):o.boxProps,sectionPaddingBottom:t.bottom,sectionPaddingBottomPhone:t.bottomPhone,...t.line?{sectionBorder:g({bottom:1})}:{}})};s({SpecTable:f});
package/dist/words.d.ts CHANGED
@@ -91,6 +91,7 @@ export type WebBuilderPhrase =
91
91
  | "A spec sheet — labeled rows of product specifications."
92
92
  | "A standalone image, at the width you set."
93
93
  | "A sticky row of category tabs with counts and links."
94
+ | "A sticky tab bar that marks the page you are on."
94
95
  | "A sticky tab bar to switch between documents."
95
96
  | "A template is a blueprint — it has no website of its own, so there is nothing here to change."
96
97
  | "A theme-color chip and heading over a grid of short feature labels."
@@ -308,6 +309,7 @@ export type WebBuilderPhrase =
308
309
  | "City maps"
309
310
  | "City pictures"
310
311
  | "City strip"
312
+ | "City · state · postcode"
311
313
  | "Claims bars"
312
314
  | "Claims panel"
313
315
  | "Claims panel (rows + defect bars)"
@@ -382,6 +384,7 @@ export type WebBuilderPhrase =
382
384
  | "Dashed"
383
385
  | "Data points"
384
386
  | "Date"
387
+ | "Dealer name"
385
388
  | "Dealers"
386
389
  | "Dealers are not available on this website"
387
390
  | "Deck / standfirst"
@@ -798,6 +801,7 @@ export type WebBuilderPhrase =
798
801
  | "Name / alt"
799
802
  | "Name this version"
800
803
  | "Named versions are always kept. Leave it empty to take the name away."
804
+ | "Narrows below"
801
805
  | "Natural"
802
806
  | "Navigation & wayfinding"
803
807
  | "Never published"
@@ -843,6 +847,7 @@ export type WebBuilderPhrase =
843
847
  | "Odd cards"
844
848
  | "Off"
845
849
  | "Office"
850
+ | "Office content"
846
851
  | "Offices"
847
852
  | "Offset tall"
848
853
  | "On 1 page"
@@ -856,6 +861,7 @@ export type WebBuilderPhrase =
856
861
  | "On the top line"
857
862
  | "On this page"
858
863
  | "On {count} pages"
864
+ | "On: the pinned box stays on top, and the sections after it scroll under it."
859
865
  | "One"
860
866
  | "One line"
861
867
  | "One row"
@@ -908,6 +914,7 @@ export type WebBuilderPhrase =
908
914
  | "Payment content"
909
915
  | "Payment methods"
910
916
  | "Phone"
917
+ | "Phone link"
911
918
  | "Photo Submission Form"
912
919
  | "Photo behind the words"
913
920
  | "Photography"
@@ -917,6 +924,7 @@ export type WebBuilderPhrase =
917
924
  | "Pick who to reach, then a form that routes the message."
918
925
  | "Picture"
919
926
  | "Picture first"
927
+ | "Pin stops at"
920
928
  | "Pin while scrolling"
921
929
  | "Pinterest"
922
930
  | "Place"
@@ -1029,6 +1037,7 @@ export type WebBuilderPhrase =
1029
1037
  | "Scale"
1030
1038
  | "Screen"
1031
1039
  | "Screen 16:10"
1040
+ | "Screen top"
1032
1041
  | "Screens"
1033
1042
  | "Scroll"
1034
1043
  | "Scroll-Over Text"
@@ -1160,6 +1169,7 @@ export type WebBuilderPhrase =
1160
1169
  | "Stats & social proof"
1161
1170
  | "Stats with Text"
1162
1171
  | "Status chip"
1172
+ | "Stays above"
1163
1173
  | "Step *one*"
1164
1174
  | "Step *three*"
1165
1175
  | "Step *two*"
@@ -1197,6 +1207,7 @@ export type WebBuilderPhrase =
1197
1207
  | "Synced from the site menu."
1198
1208
  | "Syncing from {place}…"
1199
1209
  | "Tab"
1210
+ | "Tab Bar"
1200
1211
  | "Tab label"
1201
1212
  | "Tab name"
1202
1213
  | "Tab shape"
@@ -1336,7 +1347,10 @@ export type WebBuilderPhrase =
1336
1347
  | "Tyre Sizes"
1337
1348
  | "URL pill"
1338
1349
  | "URL: /{slug}"
1350
+ | "Under the header"
1351
+ | "Under the header: the section stops below the site header. Screen top: it stops at the top edge of the screen, under a see-through header."
1339
1352
  | "Under this screen width the blocks stand one under another, with the Phone Gap and Padding."
1353
+ | "Under this screen width the side space narrows and the Phone Padding is used."
1340
1354
  | "Undo"
1341
1355
  | "Undo did not work. Nothing changed. Try again."
1342
1356
  | "Ungrouped"
@@ -1374,6 +1388,8 @@ export type WebBuilderPhrase =
1374
1388
  | "Ways to pay"
1375
1389
  | "We accept"
1376
1390
  | "WeChat"
1391
+ | "Website"
1392
+ | "Website link"
1377
1393
  | "What each card does when a shopper points at it, or taps it on a phone. Rotate turns the wheel picture."
1378
1394
  | "What each card does when a shopper points at it. Show next image covers the card with this product's photos, with arrows; a phone shows the card as it is. Rotate turns the wheel picture."
1379
1395
  | "What people *say.*"
@@ -1612,6 +1628,7 @@ export type StorefrontBlocksPhrase =
1612
1628
  | "Centered"
1613
1629
  | "Centre Bore"
1614
1630
  | "Channel"
1631
+ | "Channel row"
1615
1632
  | "Channels"
1616
1633
  | "Checkout"
1617
1634
  | "Choose a form in the inspector, under Form — until then this form is hidden on the live page and nothing can be submitted."
@@ -2008,6 +2025,7 @@ export type StorefrontBlocksPhrase =
2008
2025
  | "Read all posts →"
2009
2026
  | "Read more"
2010
2027
  | "Ready when *you are.*"
2028
+ | "Reason chip"
2011
2029
  | "Recent issues"
2012
2030
  | "Recent posts"
2013
2031
  | "Recommended"
@@ -2058,6 +2076,7 @@ export type StorefrontBlocksPhrase =
2058
2076
  | "See all results"
2059
2077
  | "Select a menu…"
2060
2078
  | "Select a product…"
2079
+ | "Service template"
2061
2080
  | "Session · 60 min"
2062
2081
  | "Session · 60 min · Night"
2063
2082
  | "Set a design code"
@@ -2190,9 +2209,11 @@ export type StorefrontBlocksPhrase =
2190
2209
  | "Tick label"
2191
2210
  | "Tiled"
2192
2211
  | "Time"
2212
+ | "Time template"
2193
2213
  | "Title / product"
2194
2214
  | "To"
2195
2215
  | "Tools"
2216
+ | "Topic card"
2196
2217
  | "Tracked to your door."
2197
2218
  | "Trigger"
2198
2219
  | "Trim"