efficient-storefront-blocks 0.93.0 → 0.95.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 (122) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/README.md +1 -0
  3. package/dist/chunks/{EditorPreviewCheckout-FSEFJZSO.js → EditorPreviewCheckout-3F3CP5MR.js} +1 -1
  4. package/dist/chunks/{SiteEditorProvider-N76XROIW.js → SiteEditorProvider-HN7TFLUJ.js} +1 -1
  5. package/dist/chunks/chunk-7SMQDDLZ.js +1 -0
  6. package/dist/chunks/{chunk-ITIVEB2I.js → chunk-CYLLSHDF.js} +1 -1
  7. package/dist/chunks/chunk-SUKEQRMP.js +389 -0
  8. package/dist/chunks/{chunk-NSW5PCGW.js → chunk-WLMM7L6N.js} +1 -1
  9. package/dist/chunks/{fitment-data-2SHEWSDK.js → fitment-data-Z62WUQGC.js} +1 -1
  10. package/dist/editor/components/GalleryPicturesSource.js +1 -1
  11. package/dist/editor/components/GalleryProductBinding.js +1 -1
  12. package/dist/editor/components/GalleryShowcaseSource.js +1 -1
  13. package/dist/editor/lib/document/blocks/commerce/AlloyWheelsListing/fields.js +1 -1
  14. package/dist/editor/lib/document/blocks/commerce/ProductHero/fields.js +1 -1
  15. package/dist/editor/lib/document/blocks/commerce/index.d.ts +1 -1
  16. package/dist/editor/lib/document/blocks/service/AppointmentBooking/fields.js +1 -1
  17. package/dist/editor/lib/document/blocks/service/BookingBox/fields.js +1 -1
  18. package/dist/editor/lib/document/blocks/service/ContactRouting/fields.js +1 -1
  19. package/dist/editor/lib/document/blocks/service/index.d.ts +1 -1
  20. package/dist/editor/lib/storefront-document.js +1 -1
  21. package/dist/editor/lib/storefront-editor-words-kept.js +1 -1
  22. package/dist/editor/lib/storefront-editor-words.d.ts +4 -1
  23. package/dist/editor/lib/storefront-editor-words.js +1 -1
  24. package/dist/index.d.ts +11 -0
  25. package/dist/index.js +32 -32
  26. package/dist/links.js +1 -1
  27. package/dist/render/app/globals.css +37 -1
  28. package/dist/render/built-with.json +1 -1
  29. package/dist/render/components/AppointmentBooking.d.ts +3 -1
  30. package/dist/render/components/AppointmentBooking.js +1 -1
  31. package/dist/render/components/ContactRouting.d.ts +9 -1
  32. package/dist/render/components/ContactRouting.js +1 -1
  33. package/dist/render/components/CountrySelect.js +1 -1
  34. package/dist/render/components/DefaultProductHero.d.ts +12 -0
  35. package/dist/render/components/DefaultProductHero.js +1 -0
  36. package/dist/render/components/FooterMenu.js +1 -1
  37. package/dist/render/components/GridCardTemplate.d.ts +7 -4
  38. package/dist/render/components/GridCardTemplate.js +1 -1
  39. package/dist/render/components/MenuLinkBlock.js +1 -1
  40. package/dist/render/components/ProductGridSection.js +1 -1
  41. package/dist/render/components/ProductHeroPanel.d.ts +2 -1
  42. package/dist/render/components/ProductHeroPanel.js +1 -1
  43. package/dist/render/components/SpecTable.js +1 -1
  44. package/dist/render/components/booking/BookingBox.d.ts +5 -1
  45. package/dist/render/components/booking/BookingBox.js +1 -1
  46. package/dist/render/components/booking/BookingFormState.d.ts +9 -0
  47. package/dist/render/components/booking/BookingFormState.js +1 -1
  48. package/dist/render/components/booking/BookingRegions.d.ts +9 -1
  49. package/dist/render/components/booking/BookingRegions.js +1 -1
  50. package/dist/render/components/card-ground-cell.d.ts +2 -0
  51. package/dist/render/components/card-ground-cell.js +1 -0
  52. package/dist/render/components/card-pieces/CardBuyButton.js +1 -1
  53. package/dist/render/components/card-pieces/CardName.js +1 -1
  54. package/dist/render/components/card-pieces/CardProductPicture.js +1 -1
  55. package/dist/render/components/card-pieces/CardSizes.d.ts +10 -2
  56. package/dist/render/components/card-pieces/CardSizes.js +1 -1
  57. package/dist/render/components/card-pieces/CardSpecs.d.ts +2 -0
  58. package/dist/render/components/card-pieces/CardSpecs.js +1 -1
  59. package/dist/render/components/card-pieces/ProductCardState.d.ts +14 -4
  60. package/dist/render/components/card-pieces/ProductCardState.js +1 -1
  61. package/dist/render/components/catalog/ShopperChips.js +1 -1
  62. package/dist/render/components/wheels-plp/AlloyWheelsListing.d.ts +2 -1
  63. package/dist/render/components/wheels-plp/AlloyWheelsListing.js +1 -1
  64. package/dist/render/components/wheels-plp/PlpFacetRows.d.ts +14 -0
  65. package/dist/render/components/wheels-plp/PlpFacetRows.js +1 -0
  66. package/dist/render/components/wheels-plp/PlpSidebar.d.ts +7 -1
  67. package/dist/render/components/wheels-plp/PlpSidebar.js +1 -1
  68. package/dist/render/components/wheels-plp/PlpTypePicker.d.ts +8 -2
  69. package/dist/render/components/wheels-plp/PlpTypePicker.js +1 -1
  70. package/dist/render/lib/booking/appointment-time.d.ts +1 -0
  71. package/dist/render/lib/booking/appointment-time.js +1 -1
  72. package/dist/render/lib/content/booking-card-seed.d.ts +31 -0
  73. package/dist/render/lib/content/booking-card-seed.js +1 -0
  74. package/dist/render/lib/content/contact-card-seed.d.ts +11 -0
  75. package/dist/render/lib/content/contact-card-seed.js +1 -0
  76. package/dist/render/lib/content/copy-mark.d.ts +1 -0
  77. package/dist/render/lib/content/copy-mark.js +1 -0
  78. package/dist/render/lib/content/facet-row-seed.d.ts +139 -0
  79. package/dist/render/lib/content/facet-row-seed.js +1 -0
  80. package/dist/render/lib/content/hero-option-seed.d.ts +28 -0
  81. package/dist/render/lib/content/hero-option-seed.js +1 -0
  82. package/dist/render/lib/content/tab-strip.d.ts +3 -2
  83. package/dist/render/lib/content/tab-strip.js +1 -1
  84. package/dist/render/lib/document/blocks/commerce/AlloyWheelsListing/meta.d.ts +4 -0
  85. package/dist/render/lib/document/blocks/commerce/AlloyWheelsListing/meta.js +1 -1
  86. package/dist/render/lib/document/blocks/commerce/AlloyWheelsListing/render.js +1 -1
  87. package/dist/render/lib/document/blocks/commerce/ProductEyebrow/render.js +1 -1
  88. package/dist/render/lib/document/blocks/commerce/ProductHero/meta.d.ts +4 -0
  89. package/dist/render/lib/document/blocks/commerce/ProductHero/meta.js +1 -1
  90. package/dist/render/lib/document/blocks/commerce/ProductHero/render.js +1 -1
  91. package/dist/render/lib/document/blocks/commerce/ProductSpecs/render.js +1 -1
  92. package/dist/render/lib/document/blocks/service/AppointmentBooking/meta.d.ts +8 -0
  93. package/dist/render/lib/document/blocks/service/AppointmentBooking/meta.js +1 -1
  94. package/dist/render/lib/document/blocks/service/AppointmentBooking/render.js +1 -1
  95. package/dist/render/lib/document/blocks/service/BookingBox/meta.js +1 -1
  96. package/dist/render/lib/document/blocks/service/BookingBox/render.js +1 -1
  97. package/dist/render/lib/document/blocks/service/ContactRouting/meta.d.ts +14 -0
  98. package/dist/render/lib/document/blocks/service/ContactRouting/meta.js +1 -1
  99. package/dist/render/lib/document/blocks/service/ContactRouting/render.js +1 -1
  100. package/dist/render/lib/document/card-templates.js +1 -1
  101. package/dist/render/lib/document/storefront-root.js +1 -1
  102. package/dist/render/lib/menu-link.d.ts +1 -0
  103. package/dist/render/lib/menu-link.js +1 -1
  104. package/dist/render/lib/sections/filter-option-rows.d.ts +15 -0
  105. package/dist/render/lib/sections/filter-option-rows.js +1 -1
  106. package/dist/render/lib/sections/product-pictures.d.ts +2 -2
  107. package/dist/render/lib/sections/product-pictures.js +1 -1
  108. package/dist/render/lib/wheels/plp-filters.d.ts +4 -0
  109. package/dist/render/lib/wheels/plp-filters.js +1 -1
  110. package/dist/render/lib/wheels/plp-hydrate.d.ts +4 -1
  111. package/dist/render/lib/wheels/plp-hydrate.js +1 -1
  112. package/dist/words.d.ts +16 -1
  113. package/dist/words.js +5 -5
  114. package/package.json +3 -3
  115. package/dist/chunks/chunk-IZEIMAJI.js +0 -1
  116. package/dist/chunks/chunk-OERUEODX.js +0 -388
  117. package/dist/render/components/TyrePlpCard.d.ts +0 -20
  118. package/dist/render/components/TyrePlpCard.js +0 -1
  119. package/dist/render/components/TyreSummaryCard.d.ts +0 -12
  120. package/dist/render/components/TyreSummaryCard.js +0 -1
  121. /package/dist/chunks/{chunk-XYG76Y4H.js → chunk-GW5M2ATK.js} +0 -0
  122. /package/dist/chunks/{chunk-OERUEODX.js.LEGAL.txt → chunk-SUKEQRMP.js.LEGAL.txt} +0 -0
@@ -1 +1 @@
1
- "use client";import{jsx as r,jsxs as p,Fragment as $e}from"react/jsx-runtime";import{useScopeClass as He}from"../../lib/use-scope-class.js";import{useCallback as m,useEffect as Ye,useMemo as i,useRef as qe,useState as Je}from"react";import{cardHoverOf as Qe}from"efficient-web-builder/format/lib/animation/hover";import{SHARED_ROWS_LIST_CLASS as Ue}from"efficient-web-builder/render/lib/content/box-shared-columns";import{NO_FIELD_ANSWERS as Xe,answersForKind as ne}from"../../lib/content/field-usage.js";import{useCurrency as Ze}from"../CurrencyContext.js";import et from"../NoCurrencyNote.js";import{usePreviewDevice as tt}from"efficient-easel/screen/components/PreviewDeviceContext";import{renderGold as ot,renderHeadline as rt}from"efficient-web-builder/render/components/goldPhrases";import{useUnifiedProductCatalog as nt}from"../useProductCatalog.js";import{scrollBehavior as st}from"efficient-web-builder/render/components/useReducedMotion";import{normalizePlpColumns as it,PLP_GRID_GAP_VAR as se,plpGridVars as lt}from"../../lib/wheels/plp-grid.js";import{plpCardImageSizes as at}from"../../lib/sections/card-image-sizes.js";import{CARD_ROWS_GRID_CLASS as ct,cardRowsGridStyle as pt}from"../WheelCardFrame.js";import{applyPlpFilters as mt,buildPlpFacets as dt,buildPlpTypeOptions as ut,buildTyreSizeBoxes as ht,EMPTY_PLP_FILTERS as ie,hasActivePlpFilters as ft,paginatePlp as gt,pickTyreSize as yt,plpTyreSizeBoxesShown as St,plpInStockCount as xt,plpOpeningSort as wt,plpPriceBounds as bt,plpShownKinds as vt,plpSortKeysFor as Pt,PLP_SORT_LABELS as kt}from"../../lib/wheels/plp-filters.js";import{itemKind as L,itemSlug as le,itemTyreSizes as Ct,plpBrandVaries as Nt,plpProcessVaries as Tt,plpItemsOfKinds as _t,plpKindNoun as V,resolvePlpKinds as At}from"../../lib/catalog/plp-item.js";import{plpGateWords as zt,plpVehicleCopy as Lt}from"../../lib/catalog/plp-vehicle-copy.js";import{oemBadgeSize as It,oemTyreSizes as Ot}from"../../lib/tyres/tyre-vehicle-fitment.js";import Rt from"../TyreSummaryCard.js";import{wheelsFittingVehicle as Gt}from"../../lib/wheels/plp-fitment-match.js";import Vt from"./PlpActiveChips.js";import{GridCardProvider as Ft,GridMixedCards as Bt,gridIndexCss as Et,LISTING_CARD_RULES as Kt}from"../GridCardTemplate.js";import{wheelCardEyebrowShows as jt}from"../ProductCardEyebrow.js";import Mt from"./PlpPagination.js";import Dt from"./PlpSidebar.js";import{PlpResultRange as Wt,PlpToolbar as $t}from"./PlpToolbar.js";import Ht from"../catalog/SortSelect.js";import Yt from"./PlpVehicleBar.js";import qt from"./PlpVehicleGate.js";import{useVehicleCatalog as Jt}from"./useVehicleCatalog.js";import{useVehicleFit as Qt}from"../fitment/useVehicleFit.js";import{usePlpFiltersInUrl as Ut}from"./usePlpFiltersInUrl.js";import{say as F}from"efficient-web-builder/format/lib/editor-words";const Vo={heading:"Let's find wheels that fit your car.",intro:"Tell us what you drive and we'll show you every set that bolts straight on — bolt pattern, offset and hub bore checked for you."};function Xt({level:v,className:P,children:k}){return r(v===2?"h2":"h1",{className:P,children:k})}const Zt=Qe({},"AlloyWheelsListing");function eo({heading:v="",intro:P="",askForCar:k=!0,gateHeading:B="",gateIntro:ae="",perPage:E=24,columns:ce,defaultSort:pe="recommended",hiddenFacets:me=[],fieldUsage:f=Xe,showPrice:K=!0,showInStock:de=!0,kinds:ue,products:he,wheels:fe,requestQuery:ge,editing:d=!1,ownerId:ye="",template:Se,cardImage:xe,hover:we=Zt,titleLevel:be}){const{currency:l}=Ze(),u=At(ue),j=tt(),M=it(ce),ve=lt(M,d?j:null),Pe=at(M,d?j:null),D=He("plp"),ke=Et(D),Ce=nt(),W=he??fe??Ce??[],$=i(()=>_t(W,u),[W,u.join(",")]),o=Qt({editing:d,enabled:k,autoApply:!0}),[Ne,I]=Je(!1),Te=wt(pe,u),g=o.applied?.vehicle??null,[e,x]=Ut({editing:d,openingSort:Te,appliedVehicle:g,vehicleRestored:o.restored,requestQuery:ge}),c=vt(u,e.kind),s=m(t=>x(t),[x]),H=m((t,h)=>{const a=e[t],De=a.map(String).includes(h)?a.filter(We=>String(We)!==h):[...a,t==="diameters"?Number(h):h];s({...e,[t]:De,page:1})},[e,s]),Y=m(t=>s({...e,priceMax:t,page:1}),[e,s]),q=m(t=>s({...e,inStockOnly:t,page:1}),[e,s]),J=m(t=>s({...ie,kind:t,inStockOnly:e.inStockOnly,priceMax:e.priceMax,sort:e.sort}),[e.inStockOnly,e.priceMax,e.sort,s]),_e=m(t=>s({...e,sort:t,page:1}),[e,s]),Ae=m(t=>{s({...e,page:t}),typeof window<"u"&&window.scrollTo({top:0,behavior:st()})},[e,s]),Q=m(()=>s({...ie,sort:e.sort}),[e.sort,s]),{clear:N}=o,U=m(()=>{N(),I(!0),x(t=>({...t,page:1}))},[N]),ze=m(()=>{N(),I(!1),x(t=>({...t,page:1}))},[N]),T=g?[g.make,g.model,g.year,g.modification].join("|"):"",_=qe(null);Ye(()=>{if(o.restored){if(_.current===null){_.current=T;return}_.current!==T&&(_.current=T,x(t=>t.page===1?t:{...t,page:1}))}},[o.restored,T,x]);const A=Jt({catalog:$,shownKinds:u,vehicle:g,editing:d}),n=i(()=>{if(!o.fit)return A;const t=A.filter(a=>L(a)==="alloy-wheel"),h=new Set(Gt(t,o.fit).map(a=>a.slug));return A.filter(a=>L(a)!=="alloy-wheel"||h.has(le(a)))},[A,o.fit]),w=me.join(","),Le=i(()=>{const t=new Set(w?w.split(","):[]);return dt(n,e,l,c,f).filter(h=>!t.has(h.key))},[n,e,l,w,c.join(","),f]),y=i(()=>mt(n,e,l),[n,e,l]),X=c.length>1,Z=i(()=>ne(f,"alloy-wheel"),[f]),Ie=i(()=>ne(f,"tyre"),[f]),z=i(()=>Nt(y),[y]),O=i(()=>Tt(y),[y]),R=X?V(["alloy-wheel"]).one:null,Oe=i(()=>({kindLabel:R,brand:z,process:O}),[R,z,O]),Re=jt({kind:!!R,brand:z,process:O},Z),Ge=i(()=>K?bt(n,l):null,[n,l,K]),Ve=i(()=>xt(n,e,l),[n,e,l]),Fe=i(()=>ut(n,u,e,l),[n,u.join(","),e,l]),Be=m((t,h)=>{const a=yt(n.flatMap(Ct),e.tyreSizes[0]??"",t,h);s({...e,tyreSizes:a?[a]:[],page:1})},[n,e,s]),Ee=i(()=>{const t=new Set(w?w.split(","):[]);return!St(n,c)||t.has("tyreSizes")?null:ht(n,e,l)},[n,e,l,w,c.join(","),f]),S=i(()=>gt(y,e.page,E),[y,e.page,E]),b=V(c),G=Lt(c),ee=zt(B,ae,c,u),te=c.length===1&&c[0]==="tyre",oe=o.applied?.stock??null,C=i(()=>Ot(oe),[oe]),Ke=i(()=>n.filter(t=>c.includes(L(t))).length,[n,c.join(",")]),re=$.length===0,je=!re&&n.length===0,Me=k&&!d&&!o.applied&&!Ne;return u.length===0?null:p("section",{children:[k&&r(Yt,{cascade:o.cascade,appliedName:o.appliedName,fit:o.fit,fitSummary:te&&C.length>0?`Takes ${C.join(" · ")}`:null,resolving:o.resolving,unresolved:te?!!o.applied&&!o.resolving&&C.length===0:o.unresolved,matchCount:Ke,copy:G,onAmend:ze,onClear:U}),Me&&r(qt,{cascade:o.cascade,heading:ee.heading,intro:ee.intro,ready:o.restored,copy:G,onSkip:()=>I(!0)}),p("div",{className:"px-5 py-10 md:px-[max(2.5rem,calc((100%_-_var(--sf-content-cap,100%))/2_+_2.5rem))]",children:[(v||P)&&p("header",{className:"mb-6",children:[v&&r(Xt,{level:be,className:"font-display text-[clamp(28px,4vw,40px)] [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] leading-[1.05] tracking-[-0.02em]",children:rt(v,!1)}),P&&r("p",{className:"mt-2 max-w-[60ch] text-[15px] text-fg-dim",children:ot(P)})]}),p("div",{className:"flex flex-col gap-8 lg:flex-row lg:items-start",children:[r(Dt,{facets:Le,filters:e,typeOptions:Fe,sizeBoxes:Ee,sizeMatches:e.tyreSizes.length>0?y.length:null,noun:b,priceBounds:Ge,inStockCount:de?Ve:null,onToggle:H,onPickType:J,onPickSize:Be,onPriceMax:Y,onInStockOnly:q,onClearAll:Q}),p("div",{className:"min-w-0 flex-1",children:[r($t,{className:"mb-4",start:p($e,{children:[r(Wt,{total:S.total,range:{from:S.from,to:S.to},noun:b}),r(Vt,{filters:e,onToggle:H,onPriceMax:Y,onInStockOnly:q,onPickType:J})]}),end:r(Ht,{value:e.sort,keys:Pt(u),labels:kt,onChange:_e})}),re?r("div",{className:"border border-dashed border-line p-10",children:r("p",{className:"font-mono text-[12px] uppercase tracking-[0.16em] text-fg-dim",children:d?b.many==="wheels"?F("No wheels in this website's catalog yet — curate products to see them here."):b.many==="tyres"?F("No tyres in this website's catalog yet — curate products to see them here."):F("No products in this website's catalog yet — curate products to see them here."):"Our catalog is being updated. Please check back shortly."})}):je?p("div",{className:"border border-line p-10",children:[p("h3",{className:"font-display text-[22px] font-medium uppercase tracking-[-0.01em]",children:["No confirmed fit for your ",o.appliedName]}),r("p",{className:"mt-2 max-w-[52ch] text-[14px] text-fg-dim",children:G.nothingFits}),p("button",{type:"button",onClick:U,className:"mt-4 cursor-pointer bg-btn px-4 py-3 font-mono text-[11px] font-bold uppercase tracking-[0.24em] text-btn-ink hover:bg-fg",children:["Show all ",b.many]})]}):S.total===0?p("div",{className:"border border-line p-10",children:[p("h3",{className:"font-display text-[22px] font-medium uppercase tracking-[-0.01em]",children:["No ",b.many," match those filters"]}),r("p",{className:"mt-2 max-w-[46ch] text-[14px] text-fg-dim",children:"Try widening the price range or clearing a filter."}),ft(e)&&r("button",{type:"button",onClick:Q,className:"mt-4 cursor-pointer bg-btn px-4 py-3 font-mono text-[11px] font-bold uppercase tracking-[0.24em] text-btn-ink hover:bg-fg",children:"Clear all filters"})]}):p(Ft,{value:{ownerId:ye,ownerType:"AlloyWheelsListing",Template:Se,hover:we,imageSizes:Pe,fieldUsage:Z,reserveEyebrow:Re,editing:d,eyebrow:Oe,fit:o.fit,colours:e.finishes,setGridGap:`var(${se})`,rules:Kt},children:[r("style",{children:ke}),r("div",{className:`plp-card-grid ${D} ${ct} ${Ue}`,style:{...ve,...pt(`var(${se})`)},children:r(Bt,{items:S.items,isWheel:t=>L(t)!=="tyre",other:t=>r(Rt,{item:t,currency:l,fitSize:C.length>0?It(t.sizes,C):null,kindLabel:X?V(["tyre"]).one:null,showBrand:z,editing:d,fieldUsage:Ie,cardImage:xe},`tyre:${le(t)}`)})})]}),r(Mt,{page:S.page,pageCount:S.pageCount,onPage:Ae}),r(et,{editing:d})]})]})]})]})}export{Vo as PLP_GATE_DEFAULTS,eo as default};
1
+ "use client";import{jsx as r,jsxs as p,Fragment as We}from"react/jsx-runtime";import{useScopeClass as $e}from"../../lib/use-scope-class.js";import{useCallback as m,useEffect as He,useMemo as i,useRef as Ye,useState as qe}from"react";import{cardHoverOf as Je}from"efficient-web-builder/format/lib/animation/hover";import{SHARED_ROWS_LIST_CLASS as Qe}from"efficient-web-builder/render/lib/content/box-shared-columns";import{NO_FIELD_ANSWERS as Ue,answersForKind as re}from"../../lib/content/field-usage.js";import{useCurrency as Xe}from"../CurrencyContext.js";import Ze from"../NoCurrencyNote.js";import{usePreviewDevice as et}from"efficient-easel/screen/components/PreviewDeviceContext";import{renderGold as tt,renderHeadline as ot}from"efficient-web-builder/render/components/goldPhrases";import{useUnifiedProductCatalog as rt}from"../useProductCatalog.js";import{scrollBehavior as nt}from"efficient-web-builder/render/components/useReducedMotion";import{normalizePlpColumns as st,PLP_GRID_GAP_VAR as ne,plpGridVars as it}from"../../lib/wheels/plp-grid.js";import{plpCardImageSizes as lt}from"../../lib/sections/card-image-sizes.js";import{CARD_ROWS_GRID_CLASS as at,cardRowsGridStyle as ct}from"../WheelCardFrame.js";import{applyPlpFilters as pt,buildPlpFacets as mt,buildPlpTypeOptions as dt,buildTyreSizeBoxes as ut,EMPTY_PLP_FILTERS as se,hasActivePlpFilters as ht,paginatePlp as ft,pickTyreSize as gt,plpTyreSizeBoxesShown as yt,plpInStockCount as St,plpOpeningSort as xt,plpPriceBounds as wt,plpShownKinds as bt,plpSortKeysFor as vt,PLP_SORT_LABELS as Pt}from"../../lib/wheels/plp-filters.js";import{itemKind as z,itemSlug as kt,itemTyreSizes as Nt,plpBrandVaries as Ct,plpProcessVaries as Tt,plpItemsOfKinds as _t,plpKindNoun as ie,resolvePlpKinds as At}from"../../lib/catalog/plp-item.js";import{plpGateWords as zt,plpVehicleCopy as Lt}from"../../lib/catalog/plp-vehicle-copy.js";import{oemBadgeSize as Ot,oemTyreSizes as Rt}from"../../lib/tyres/tyre-vehicle-fitment.js";import{wheelsFittingVehicle as Ft}from"../../lib/wheels/plp-fitment-match.js";import Gt from"./PlpActiveChips.js";import{GridCardProvider as It,GridMixedCards as Vt,gridIndexCss as Et,LISTING_CARD_RULES as Kt}from"../GridCardTemplate.js";import{wheelCardEyebrowShows as jt}from"../ProductCardEyebrow.js";import Bt from"./PlpPagination.js";import Mt from"./PlpSidebar.js";import{PlpResultRange as Dt,PlpToolbar as Wt}from"./PlpToolbar.js";import $t from"../catalog/SortSelect.js";import Ht from"./PlpVehicleBar.js";import Yt from"./PlpVehicleGate.js";import{useVehicleCatalog as qt}from"./useVehicleCatalog.js";import{useVehicleFit as Jt}from"../fitment/useVehicleFit.js";import{usePlpFiltersInUrl as Qt}from"./usePlpFiltersInUrl.js";import{say as I}from"efficient-web-builder/format/lib/editor-words";const Fo={heading:"Let's find wheels that fit your car.",intro:"Tell us what you drive and we'll show you every set that bolts straight on — bolt pattern, offset and hub bore checked for you."};function Ut({level:v,className:P,children:k}){return r(v===2?"h2":"h1",{className:P,children:k})}const Xt=Je({},"AlloyWheelsListing");function Zt({heading:v="",intro:P="",askForCar:k=!0,gateHeading:V="",gateIntro:le="",perPage:E=24,columns:ae,defaultSort:ce="recommended",hiddenFacets:pe=[],fieldUsage:f=Ue,showPrice:K=!0,showInStock:me=!0,kinds:de,products:ue,wheels:he,requestQuery:fe,editing:d=!1,ownerId:j="",template:ge,facetTemplate:ye,hover:Se=Xt,titleLevel:xe}){const{currency:a}=Xe(),u=At(de),B=et(),M=st(ae),we=it(M,d?B:null),be=lt(M,d?B:null),D=$e("plp"),ve=Et(D),Pe=rt(),W=ue??he??Pe??[],$=i(()=>_t(W,u),[W,u.join(",")]),o=Jt({editing:d,enabled:k,autoApply:!0}),[ke,L]=qe(!1),Ne=xt(ce,u),g=o.applied?.vehicle??null,[e,x]=Qt({editing:d,openingSort:Ne,appliedVehicle:g,vehicleRestored:o.restored,requestQuery:fe}),c=bt(u,e.kind),s=m(t=>x(t),[x]),H=m((t,h)=>{const l=e[t],Me=l.map(String).includes(h)?l.filter(De=>String(De)!==h):[...l,t==="diameters"?Number(h):h];s({...e,[t]:Me,page:1})},[e,s]),Y=m(t=>s({...e,priceMax:t,page:1}),[e,s]),q=m(t=>s({...e,inStockOnly:t,page:1}),[e,s]),J=m(t=>s({...se,kind:t,inStockOnly:e.inStockOnly,priceMax:e.priceMax,sort:e.sort}),[e.inStockOnly,e.priceMax,e.sort,s]),Ce=m(t=>s({...e,sort:t,page:1}),[e,s]),Te=m(t=>{s({...e,page:t}),typeof window<"u"&&window.scrollTo({top:0,behavior:nt()})},[e,s]),Q=m(()=>s({...se,sort:e.sort}),[e.sort,s]),{clear:C}=o,U=m(()=>{C(),L(!0),x(t=>({...t,page:1}))},[C]),_e=m(()=>{C(),L(!1),x(t=>({...t,page:1}))},[C]),T=g?[g.make,g.model,g.year,g.modification].join("|"):"",_=Ye(null);He(()=>{if(o.restored){if(_.current===null){_.current=T;return}_.current!==T&&(_.current=T,x(t=>t.page===1?t:{...t,page:1}))}},[o.restored,T,x]);const A=qt({catalog:$,shownKinds:u,vehicle:g,editing:d}),n=i(()=>{if(!o.fit)return A;const t=A.filter(l=>z(l)==="alloy-wheel"),h=new Set(Ft(t,o.fit).map(l=>l.slug));return A.filter(l=>z(l)!=="alloy-wheel"||h.has(kt(l)))},[A,o.fit]),w=pe.join(","),Ae=i(()=>{const t=new Set(w?w.split(","):[]);return mt(n,e,a,c,f).filter(h=>!t.has(h.key))},[n,e,a,w,c.join(","),f]),y=i(()=>pt(n,e,a),[n,e,a]),ze=c.length>1,X=i(()=>re(f,"alloy-wheel"),[f]),Le=i(()=>re(f,"tyre"),[f]),O=i(()=>Ct(y),[y]),R=i(()=>Tt(y),[y]),F=ze?ie(["alloy-wheel"]).one:null,Oe=i(()=>({kindLabel:F,brand:O,process:R}),[F,O,R]),Re=jt({kind:!!F,brand:O,process:R},X),Fe=i(()=>K?wt(n,a):null,[n,a,K]),Ge=i(()=>St(n,e,a),[n,e,a]),Ie=i(()=>dt(n,u,e,a),[n,u.join(","),e,a]),Ve=m((t,h)=>{const l=gt(n.flatMap(Nt),e.tyreSizes[0]??"",t,h);s({...e,tyreSizes:l?[l]:[],page:1})},[n,e,s]),Ee=i(()=>{const t=new Set(w?w.split(","):[]);return!yt(n,c)||t.has("tyreSizes")?null:ut(n,e,a)},[n,e,a,w,c.join(","),f]),S=i(()=>ft(y,e.page,E),[y,e.page,E]),b=ie(c),G=Lt(c),Z=zt(V,le,c,u),ee=c.length===1&&c[0]==="tyre",te=o.applied?.stock??null,N=i(()=>Rt(te),[te]),Ke=i(()=>n.filter(t=>c.includes(z(t))).length,[n,c.join(",")]),oe=$.length===0,je=!oe&&n.length===0,Be=k&&!d&&!o.applied&&!ke;return u.length===0?null:p("section",{children:[k&&r(Ht,{cascade:o.cascade,appliedName:o.appliedName,fit:o.fit,fitSummary:ee&&N.length>0?`Takes ${N.join(" · ")}`:null,resolving:o.resolving,unresolved:ee?!!o.applied&&!o.resolving&&N.length===0:o.unresolved,matchCount:Ke,copy:G,onAmend:_e,onClear:U}),Be&&r(Yt,{cascade:o.cascade,heading:Z.heading,intro:Z.intro,ready:o.restored,copy:G,onSkip:()=>L(!0)}),p("div",{className:"px-5 py-10 md:px-[max(2.5rem,calc((100%_-_var(--sf-content-cap,100%))/2_+_2.5rem))]",children:[(v||P)&&p("header",{className:"mb-6",children:[v&&r(Ut,{level:xe,className:"font-display text-[clamp(28px,4vw,40px)] [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] leading-[1.05] tracking-[-0.02em]",children:ot(v,!1)}),P&&r("p",{className:"mt-2 max-w-[60ch] text-[15px] text-fg-dim",children:tt(P)})]}),p("div",{className:"flex flex-col gap-8 lg:flex-row lg:items-start",children:[r(Mt,{facets:Ae,filters:e,typeOptions:Ie,sizeBoxes:Ee,sizeMatches:e.tyreSizes.length>0?y.length:null,noun:b,priceBounds:Fe,inStockCount:me?Ge:null,onToggle:H,onPickType:J,onPickSize:Ve,onPriceMax:Y,onInStockOnly:q,onClearAll:Q,owner:{id:j,facetTemplate:ye},editing:d}),p("div",{className:"min-w-0 flex-1",children:[r(Wt,{className:"mb-4",start:p(We,{children:[r(Dt,{total:S.total,range:{from:S.from,to:S.to},noun:b}),r(Gt,{filters:e,onToggle:H,onPriceMax:Y,onInStockOnly:q,onPickType:J})]}),end:r($t,{value:e.sort,keys:vt(u),labels:Pt,onChange:Ce})}),oe?r("div",{className:"border border-dashed border-line p-10",children:r("p",{className:"font-mono text-[12px] uppercase tracking-[0.16em] text-fg-dim",children:d?b.many==="wheels"?I("No wheels in this website's catalog yet — curate products to see them here."):b.many==="tyres"?I("No tyres in this website's catalog yet — curate products to see them here."):I("No products in this website's catalog yet — curate products to see them here."):"Our catalog is being updated. Please check back shortly."})}):je?p("div",{className:"border border-line p-10",children:[p("h3",{className:"font-display text-[22px] font-medium uppercase tracking-[-0.01em]",children:["No confirmed fit for your ",o.appliedName]}),r("p",{className:"mt-2 max-w-[52ch] text-[14px] text-fg-dim",children:G.nothingFits}),p("button",{type:"button",onClick:U,className:"mt-4 cursor-pointer bg-btn px-4 py-3 font-mono text-[11px] font-bold uppercase tracking-[0.24em] text-btn-ink hover:bg-fg",children:["Show all ",b.many]})]}):S.total===0?p("div",{className:"border border-line p-10",children:[p("h3",{className:"font-display text-[22px] font-medium uppercase tracking-[-0.01em]",children:["No ",b.many," match those filters"]}),r("p",{className:"mt-2 max-w-[46ch] text-[14px] text-fg-dim",children:"Try widening the price range or clearing a filter."}),ht(e)&&r("button",{type:"button",onClick:Q,className:"mt-4 cursor-pointer bg-btn px-4 py-3 font-mono text-[11px] font-bold uppercase tracking-[0.24em] text-btn-ink hover:bg-fg",children:"Clear all filters"})]}):p(It,{value:{ownerId:j,ownerType:"AlloyWheelsListing",Template:ge,hover:Se,imageSizes:be,fieldUsage:X,tyreFieldUsage:Le,reserveEyebrow:Re,editing:d,eyebrow:Oe,fit:o.fit,colours:e.finishes,setGridGap:`var(${ne})`,rules:Kt},children:[r("style",{children:ve}),r("div",{className:`plp-card-grid ${D} ${at} ${Qe}`,style:{...we,...ct(`var(${ne})`)},children:r(Vt,{items:S.items,tyreOf:t=>z(t)==="tyre"?t:null,tyreFit:t=>N.length>0?Ot(t.sizes,N):null})})]}),r(Bt,{page:S.page,pageCount:S.pageCount,onPage:Te}),r(Ze,{editing:d})]})]})]})]})}export{Fo as PLP_GATE_DEFAULTS,Zt as default};
@@ -0,0 +1,14 @@
1
+ import type { SlotComponent } from "efficient-easel/blocks";
2
+ import { type FacetRow } from "../../lib/content/facet-row-seed.js";
3
+ import type { OptionCardRows } from "../../lib/sections/filter-option-rows.js";
4
+ export default function PlpFacetRows({ owner, rows, dead, label, className, editing, }: {
5
+ owner: {
6
+ id: string;
7
+ facetTemplate?: SlotComponent;
8
+ };
9
+ rows: OptionCardRows<FacetRow>;
10
+ dead: readonly boolean[];
11
+ label?: string;
12
+ className: string;
13
+ editing: boolean;
14
+ }): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ "use client";import{jsx as e}from"react/jsx-runtime";import{CardTemplateRows as n}from"efficient-web-builder/render/components/CardRowContext";import{InsideSiteColumn as c}from"efficient-web-builder/render/components/SiteGutterFrame";import{COPY_MARK as T}from"../../lib/content/copy-mark.js";import{FACET_TEMPLATE_SLOT as p,FACET_TICK as C,FACET_TICK_INK_CLASS as d,FACET_TICK_VAR as f}from"../../lib/content/facet-row-seed.js";const _={[f]:`url("${C}")`};function u({owner:i,rows:l,dead:a,label:o,className:s,editing:r}){return e("ul",{className:`flex flex-col ${s} ${T} ${d}`,style:_,"aria-label":o,children:e(c,{children:e(n,{ownerId:i.id,ownerType:"AlloyWheelsListing",slot:p,Template:i.facetTemplate,rows:l.items,states:l.states,actions:r?void 0:l.actions,fallback:null,wrapCopy:(t,m)=>e("li",{className:a[m.index]?"-mx-3 opacity-40":"-mx-3",children:t}),children:t=>t})})})}export{u as default};
@@ -1,7 +1,8 @@
1
+ import type { SlotComponent } from "efficient-easel/blocks";
1
2
  import type { ProductKind } from "../../lib/api/index.js";
2
3
  import type { TyreSizePart } from "../../lib/tyres/tyre-size.js";
3
4
  import { type PlpFacetGroup, type PlpFacetKey, type PlpFilterState, type PlpTypeOption, type PlpTyreSizeBox } from "../../lib/wheels/plp-filters.js";
4
- export default function PlpSidebar({ facets, filters, typeOptions, sizeBoxes, sizeMatches, noun, priceBounds, inStockCount, onToggle, onPickType, onPickSize, onPriceMax, onInStockOnly, onClearAll, }: {
5
+ export default function PlpSidebar({ facets, filters, typeOptions, sizeBoxes, sizeMatches, noun, priceBounds, inStockCount, onToggle, onPickType, onPickSize, onPriceMax, onInStockOnly, onClearAll, owner, editing, }: {
5
6
  facets: PlpFacetGroup[];
6
7
  filters: PlpFilterState;
7
8
  typeOptions: PlpTypeOption[];
@@ -22,4 +23,9 @@ export default function PlpSidebar({ facets, filters, typeOptions, sizeBoxes, si
22
23
  onPriceMax: (value: number | null) => void;
23
24
  onInStockOnly: (value: boolean) => void;
24
25
  onClearAll: () => void;
26
+ owner: {
27
+ id: string;
28
+ facetTemplate?: SlotComponent;
29
+ };
30
+ editing?: boolean;
25
31
  }): import("react").JSX.Element;
@@ -1 +1 @@
1
- "use client";import{jsx as e,jsxs as r}from"react/jsx-runtime";import C from"../catalog/ClearAllButton.js";import{useState as _}from"react";import{useCurrency as $}from"../CurrencyContext.js";import{useEnglish as z}from"../EnglishVariant.js";import{formatPrice as y}from"../../lib/commerce.js";import{hasActivePlpFilters as j,PLP_FACET_LABELS as T}from"../../lib/wheels/plp-filters.js";import E from"./PlpInStockToggle.js";import A from"./PlpTypePicker.js";import F from"./PlpTyreSizeBoxes.js";function L({facets:i,filters:t,typeOptions:m,sizeBoxes:p,sizeMatches:g,noun:s,priceBounds:n,inStockCount:x,onToggle:v,onPickType:k,onPickSize:N,onPriceMax:w,onInStockOnly:P,onClearAll:S}){const{currency:f}=$(),o=z(),[d,h]=_({});return r("aside",{className:"w-full flex-none lg:sticky lg:[--sf-plp-rail-gap:16px] lg:[--sf-plp-rail-top:calc(var(--sf-header-h,88px)+var(--sf-plp-rail-gap))] lg:top-[var(--sf-plp-rail-top)] lg:max-h-[calc(100svh-var(--sf-plp-rail-top)-var(--sf-plp-rail-gap))] lg:w-[268px] lg:overflow-y-auto lg:overscroll-contain lg:pr-2.5",children:[r("div",{className:"flex items-center justify-between pb-2",children:[e("h2",{className:"font-display text-[18px] font-medium uppercase tracking-[-0.01em]",children:"Filter"}),j(t)&&e(C,{onClick:S,size:"text-[11px]"})]}),m.length>0&&e("div",{className:"pb-1 pt-1",children:e(A,{options:m,noun:s.many,onPick:k})}),x!==null&&e("div",{className:"border-t border-line py-2",children:e(E,{checked:t.inStockOnly,count:x,noun:s.many,onChange:P})}),p&&e(b,{label:o(T.tyreSizes),open:!d.tyreSizes,onToggle:()=>h(a=>({...a,tyreSizes:!a.tyreSizes})),children:!d.tyreSizes&&e("div",{className:"pb-3",children:e(F,{boxes:p,composed:t.tyreSizes[0]??"",matches:g,noun:s.many,onPick:N})})}),i.map(a=>{if(a.options.length===0)return null;const c=!d[a.key];return e(b,{label:o(a.label),open:c,onToggle:()=>h(l=>({...l,[a.key]:!l[a.key]})),children:c&&e("ul",{className:"flex flex-col pb-3",children:a.options.map(l=>{const u=l.count===0&&!l.checked;return e("li",{children:r("label",{className:`flex items-center gap-2.5 py-1 text-[13px] ${u?"opacity-40":"cursor-pointer"}`,children:[e("input",{type:"checkbox",checked:l.checked,disabled:u,onChange:()=>v(a.key,l.value),"aria-label":`${o(a.label)}: ${l.label} (${l.count} ${s.many})`,className:"h-[16px] w-[16px] flex-none accent-[var(--accent)]"}),l.swatch&&e("span",{className:"inline-block h-[13px] w-[13px] flex-none rounded-full shadow-[inset_0_0_0_1px_var(--site-line)]",style:{background:l.swatch}}),e("span",{className:"flex-1 capitalize",children:l.label}),e("span",{className:"font-mono text-[11px] tabular-nums text-fg-dim",children:l.count})]})},l.value)})})},a.key)}),n&&r("div",{className:"border-t border-line py-3",children:[r("span",{className:"font-mono text-[11px] uppercase tracking-[0.2em]",children:["Price · per ",s.one]}),e("input",{type:"range",min:n.min,max:n.max,step:5,value:t.priceMax??n.max,onChange:a=>{const c=Number(a.target.value);w(c>=n.max?null:c)},className:"mt-2 w-full accent-[var(--accent)]","aria-label":`Maximum price per ${s.one}`}),r("div",{className:"mt-1.5 flex justify-between font-mono text-[11px] tabular-nums",children:[e("span",{className:"text-fg-dim",children:y(n.min,f)}),r("span",{children:["Up to ",y(t.priceMax??n.max,f)]})]})]})]})}function b({label:i,open:t,onToggle:m,children:p}){return r("div",{className:"border-t border-line",children:[r("button",{type:"button",onClick:m,"aria-expanded":t,"aria-label":`${t?"Collapse":"Expand"} ${i} filters`,className:"flex w-full cursor-pointer items-center justify-between py-3 text-left",children:[e("span",{className:"font-mono text-[11px] uppercase tracking-[0.2em]",children:i}),e("span",{"aria-hidden":"true",className:`font-mono text-[10px] text-fg-dim transition-transform ${t?"rotate-180":""}`,children:"▾"})]}),p]})}export{L as default};
1
+ "use client";import{jsx as a,jsxs as r}from"react/jsx-runtime";import z from"../catalog/ClearAllButton.js";import{useState as T}from"react";import{useCurrency as E}from"../CurrencyContext.js";import{useEnglish as F}from"../EnglishVariant.js";import{formatPrice as u}from"../../lib/commerce.js";import{facetRow as A}from"../../lib/content/facet-row-seed.js";import{optionCardRows as _}from"../../lib/sections/filter-option-rows.js";import{hasActivePlpFilters as L,isDeadPlpOption as g,PLP_FACET_LABELS as M}from"../../lib/wheels/plp-filters.js";import R from"./PlpFacetRows.js";import O from"./PlpInStockToggle.js";import D from"./PlpTypePicker.js";import I from"./PlpTyreSizeBoxes.js";function U({facets:o,filters:t,typeOptions:c,sizeBoxes:m,sizeMatches:k,noun:s,priceBounds:n,inStockCount:f,onToggle:N,onPickType:w,onPickSize:P,onPriceMax:S,onInStockOnly:C,onClearAll:$,owner:x,editing:h=!1}){const{currency:y}=E(),p=F(),[d,b]=T({});return r("aside",{className:"-mx-3 w-[calc(100%+1.5rem)] flex-none px-3 lg:sticky lg:[--sf-plp-rail-gap:16px] lg:[--sf-plp-rail-top:calc(var(--sf-header-h,88px)+var(--sf-plp-rail-gap))] lg:top-[var(--sf-plp-rail-top)] lg:max-h-[calc(100svh-var(--sf-plp-rail-top)-var(--sf-plp-rail-gap))] lg:w-[292px] lg:overflow-y-auto lg:overscroll-contain lg:pr-[22px]",children:[r("div",{className:"flex items-center justify-between pb-2",children:[a("h2",{className:"font-display text-[18px] font-medium uppercase tracking-[-0.01em]",children:"Filter"}),L(t)&&a(z,{onClick:$,size:"text-[11px]"})]}),c.length>0&&a("div",{className:"pb-1 pt-1",children:a(D,{options:c,noun:s.many,onPick:w,owner:x,editing:h})}),f!==null&&a("div",{className:"border-t border-line py-2",children:a(O,{checked:t.inStockOnly,count:f,noun:s.many,onChange:C})}),m&&a(v,{label:p(M.tyreSizes),open:!d.tyreSizes,onToggle:()=>b(e=>({...e,tyreSizes:!e.tyreSizes})),children:!d.tyreSizes&&a("div",{className:"pb-3",children:a(I,{boxes:m,composed:t.tyreSizes[0]??"",matches:k,noun:s.many,onPick:P})})}),o.map(e=>{if(e.options.length===0)return null;const i=!d[e.key],j=_(e.options,{item:l=>A(l,l.checked),selected:l=>l.checked,press:l=>()=>N(e.key,l.value),label:l=>`${p(e.label)}: ${l.label} (${l.count} ${s.many})`,disabled:g});return a(v,{label:p(e.label),open:i,onToggle:()=>b(l=>({...l,[e.key]:!l[e.key]})),children:i&&a(R,{owner:x,rows:j,dead:e.options.map(g),label:p(e.label),className:"pb-3",editing:h})},e.key)}),n&&r("div",{className:"border-t border-line py-3",children:[r("span",{className:"font-mono text-[11px] uppercase tracking-[0.2em]",children:["Price · per ",s.one]}),a("input",{type:"range",min:n.min,max:n.max,step:5,value:t.priceMax??n.max,onChange:e=>{const i=Number(e.target.value);S(i>=n.max?null:i)},className:"mt-2 w-full accent-[var(--accent)]","aria-label":`Maximum price per ${s.one}`}),r("div",{className:"mt-1.5 flex justify-between font-mono text-[11px] tabular-nums",children:[a("span",{className:"text-fg-dim",children:u(n.min,y)}),r("span",{children:["Up to ",u(t.priceMax??n.max,y)]})]})]})]})}function v({label:o,open:t,onToggle:c,children:m}){return r("div",{className:"border-t border-line",children:[r("button",{type:"button",onClick:c,"aria-expanded":t,"aria-label":`${t?"Collapse":"Expand"} ${o} filters`,className:"flex w-full cursor-pointer items-center justify-between py-3 text-left",children:[a("span",{className:"font-mono text-[11px] uppercase tracking-[0.2em]",children:o}),a("span",{"aria-hidden":"true",className:`font-mono text-[10px] text-fg-dim transition-transform ${t?"rotate-180":""}`,children:"▾"})]}),m]})}export{U as default};
@@ -1,7 +1,13 @@
1
- import type { PlpTypeOption } from "../../lib/wheels/plp-filters.js";
1
+ import type { SlotComponent } from "efficient-easel/blocks";
2
+ import { type PlpTypeOption } from "../../lib/wheels/plp-filters.js";
2
3
  import type { ProductKind } from "../../lib/api/index.js";
3
- export default function PlpTypePicker({ options, noun, onPick, }: {
4
+ export default function PlpTypePicker({ options, noun, onPick, owner, editing, }: {
4
5
  options: PlpTypeOption[];
5
6
  noun: string;
6
7
  onPick: (kind: ProductKind | null) => void;
8
+ owner: {
9
+ id: string;
10
+ facetTemplate?: SlotComponent;
11
+ };
12
+ editing?: boolean;
7
13
  }): import("react").JSX.Element | null;
@@ -1 +1 @@
1
- "use client";import{jsx as c,jsxs as t}from"react/jsx-runtime";import{useId as d}from"react";function x({options:a,noun:n,onPick:r}){const s=d();return a.length===0?null:t("fieldset",{className:"rounded-lg border border-accent/35 bg-accent/[0.05] px-3 pb-3 pt-3",children:[c("legend",{className:"px-0 font-mono text-[11px] uppercase tracking-[0.2em] text-accent",children:"Product type"}),c("div",{className:"flex flex-col pt-2",children:a.map(e=>{const l=e.count===0&&!e.checked;return t("label",{className:`flex items-center gap-3 py-1 text-[13.5px] ${l?"opacity-40":"cursor-pointer"}`,children:[c("input",{type:"radio",name:s,checked:e.checked,disabled:l,onChange:()=>r(e.kind),"aria-label":`${e.label} (${e.count} ${n})`,className:"h-[15px] w-[15px] flex-none accent-[var(--accent)]"}),c("span",{className:`flex-1 ${e.checked?"text-accent":""}`,children:e.label}),c("span",{className:"font-mono text-[11px] tabular-nums text-fg-dim",children:e.count})]},e.kind??"all")})})]})}export{x as default};
1
+ "use client";import{jsx as t,jsxs as n}from"react/jsx-runtime";import{isDeadPlpOption as s}from"../../lib/wheels/plp-filters.js";import{typeRow as p}from"../../lib/content/facet-row-seed.js";import{optionCardRows as i}from"../../lib/sections/filter-option-rows.js";import m from"./PlpFacetRows.js";function f({options:r,noun:c,onPick:a,owner:l,editing:o=!1}){if(r.length===0)return null;const d=i(r,{item:e=>p(e,e.checked),selected:e=>e.checked,press:e=>()=>a(e.kind),label:e=>`${e.label} (${e.count} ${c})`,disabled:s});return n("fieldset",{className:"rounded-lg border border-accent/35 bg-accent/[0.05] px-3 pb-3 pt-3",children:[t("legend",{className:"px-0 font-mono text-[11px] uppercase tracking-[0.2em] text-accent",children:"Product type"}),t(m,{owner:l,rows:d,dead:r.map(s),className:"pt-2",editing:o})]})}export{f as default};
@@ -1,2 +1,3 @@
1
1
  export declare function formatAppointmentTime(value: string, timezone: string): string;
2
2
  export declare function formatAppointment(value: string, timezone: string): string;
3
+ export declare function startHasPassed(start: string, now: number): boolean;
@@ -1 +1 @@
1
- const r=void 0,n={hour:"numeric",minute:"2-digit"},o={weekday:"long",day:"numeric",month:"long",year:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"};function i(t,e){try{return new Intl.DateTimeFormat(void 0,{...n,timeZone:e}).format(new Date(t))}catch{return new Date(t).toLocaleTimeString([],n)}}function m(t,e){try{return new Intl.DateTimeFormat(void 0,{...o,timeZone:e}).format(new Date(t))}catch{return new Date(t).toLocaleString()}}export{m as formatAppointment,i as formatAppointmentTime};
1
+ const i=void 0,r={hour:"numeric",minute:"2-digit"},o={weekday:"long",day:"numeric",month:"long",year:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"};function a(t,e){try{return new Intl.DateTimeFormat(void 0,{...r,timeZone:e}).format(new Date(t))}catch{return new Date(t).toLocaleTimeString([],r)}}function m(t,e){try{return new Intl.DateTimeFormat(void 0,{...o,timeZone:e}).format(new Date(t))}catch{return new Date(t).toLocaleString()}}function c(t,e){const n=Date.parse(t);return Number.isFinite(n)&&n<=e}export{m as formatAppointment,a as formatAppointmentTime,c as startHasPassed};
@@ -0,0 +1,31 @@
1
+ import { type CardRowFieldSpec } from "efficient-web-builder/format/lib/content/card-template";
2
+ import { type SeededNode } from "efficient-web-builder/format/lib/document/seed-parts";
3
+ type Props = Record<string, unknown>;
4
+ export declare const BOOKING_SERVICE_SLOT = "serviceTemplate";
5
+ export declare const BOOKING_TIME_SLOT = "timeTemplate";
6
+ export declare const BOOKING_TEMPLATE_SLOTS: readonly [{
7
+ readonly slot: "serviceTemplate";
8
+ readonly label: "Service template";
9
+ }, {
10
+ readonly slot: "timeTemplate";
11
+ readonly label: "Time template";
12
+ }];
13
+ export declare const BOOKING_OPTION_FIELDS: readonly CardRowFieldSpec[];
14
+ export declare const BOOKING_OPTION_ALLOW: readonly ["Text", "Flex"];
15
+ export declare const BOOKING_TEMPLATE_SLOT_FIELDS: {
16
+ serviceTemplate: {
17
+ type: "slot";
18
+ allow: ("Flex" | "Text")[];
19
+ };
20
+ timeTemplate: {
21
+ type: "slot";
22
+ allow: ("Flex" | "Text")[];
23
+ };
24
+ };
25
+ export declare const BOOKING_BOX_TYPE = "BookingBox";
26
+ export declare const APPOINTMENT_BOOKING_TYPE = "AppointmentBooking";
27
+ export declare function bookingServiceSeed(nodeId: string, props?: Props): SeededNode[];
28
+ export declare function bookingTimeSeed(nodeId: string, props?: Props): SeededNode[];
29
+ export declare function drawsBookingStep(type: string, props: Props): boolean;
30
+ export declare function withBookingTemplates(type: string, props: Props): Props;
31
+ export {};
@@ -0,0 +1 @@
1
+ import{BOX_HIDE_WHEN_ROW_EMPTY as d}from"efficient-web-builder/format/lib/content/card-template";import{BOX_TYPE as o,CONTAINER_BLOCKS_SLOT as s}from"efficient-web-builder/format/lib/document/container-blocks";import{rowFieldTextSeed as a}from"efficient-web-builder/format/lib/document/blocks/general/Cards/card-seed";import{BOX as T,DIM as O,INNER_BOX as g,TEXT as _,boxPadding as f,seedNodes as S}from"efficient-web-builder/format/lib/document/seed-parts";import{parseSectionHeadPlacement as x}from"efficient-web-builder/format/lib/sections/section-head-placement";import{BOOKING_KIND_PROP as I,bookingKindRole as b}from"../booking/text-kinds.js";const p="serviceTemplate",u="timeTemplate",X=[{slot:p,label:"Service template"},{slot:u,label:"Time template"}],$=[{key:"name",label:"Service"},{key:"meta",label:"Duration · price"},{key:"description",label:"Service description",multiline:!0},{key:"time",label:"Time"},{key:"businessTime",label:"Business time"}],B=["Text",o],W={[p]:{type:"slot",allow:[...B]},[u]:{type:"slot",allow:[...B]}},P="BookingBox",k="AppointmentBooking",l=(e,t,n={})=>({fontRole:e,size:t,...n});function c(e,t,n,i=!1){const r=b(n[I[t]]);if(!r)return e;const{fontRole:w,size:N,...E}=e;return{...E,role:r,...i?{size:N}:{}}}const m={lineHeight:1.5};function y(e){return{type:o,props:{...T,direction:"column",name:"Service",justify:"center",gap:12,gapPhone:12,...f(16,16),sectionBorder:{width:1}},slots:{[s]:[{type:o,props:{...g,name:"Words",gap:4,gapPhone:4},slots:{[s]:[a("name",{..._,tag:"span"},c(l("heading",18,{weight:500,...m}),"name",e)),a("meta",{...O,tag:"span"},c(l("label",11,{case:"upper",letterSpacing:.14,...m}),"value",e))]}},{type:o,props:{...g,name:"Description",[d]:["description"]},slots:{[s]:[a("description",{...O,tag:"span"},c(l("heading",14,m),"note",e))]}}]}}}function h(e){return{type:o,props:{...T,direction:"column",name:"Time",align:"center",justify:"center",gap:2,gapPhone:2,...f(8,12),sectionBorder:{width:1},sectionHeightMode:"fixed",sectionHeightValue:44,sectionHeightUnit:"px"},slots:{[s]:[a("time",{..._,tag:"span"},c(l("label",12,{weight:600,case:"upper",letterSpacing:.12,align:"center",...m}),"value",e)),{type:o,props:{...g,name:"Business time",align:"center",[d]:["businessTime"]},slots:{[s]:[a("businessTime",{...O,tag:"span"},c(l("label",9,{case:"upper",letterSpacing:.08,align:"center",...m}),"value",e,!0))]}}]}}}function L(e,t={}){return S([y(t)],(n,i)=>i==="0"?`${e}~service`:`${e}~service.${i.slice(2)}`)}function v(e,t={}){return S([h(t)],(n,i)=>i==="0"?`${e}~time`:`${e}~time.${i.slice(2)}`)}function K(e,t){return e===P?t.region==="booking":e===k?t.layout!=="boxes"||x(t.headPlacement)==="own-box":!1}function Y(e,t){if(!K(e,t))return t;const n=t[p]===void 0,i=t[u]===void 0;if(!n&&!i)return t;const r=typeof t.id=="string"&&t.id.trim()?t.id:e;return{...t,...n?{[p]:L(r,t)}:{},...i?{[u]:v(r,t)}:{}}}export{k as APPOINTMENT_BOOKING_TYPE,P as BOOKING_BOX_TYPE,B as BOOKING_OPTION_ALLOW,$ as BOOKING_OPTION_FIELDS,p as BOOKING_SERVICE_SLOT,X as BOOKING_TEMPLATE_SLOTS,W as BOOKING_TEMPLATE_SLOT_FIELDS,u as BOOKING_TIME_SLOT,L as bookingServiceSeed,v as bookingTimeSeed,K as drawsBookingStep,Y as withBookingTemplates};
@@ -0,0 +1,11 @@
1
+ import { type BlockSeed } from "efficient-web-builder/format/lib/document/seed-parts";
2
+ type Props = Record<string, unknown>;
3
+ export declare const CONTACT_TOPIC_SLOT = "template";
4
+ export declare const CONTACT_REASON_SLOT = "reasonTemplate";
5
+ export declare const CONTACT_CHANNEL_SLOT = "channelTemplate";
6
+ export declare const CONTACT_TEMPLATE_ALLOW: readonly ["Text", "ImageBlock", "Flex"];
7
+ export declare const contactTopicSeed: () => BlockSeed;
8
+ export declare const contactReasonSeed: () => BlockSeed;
9
+ export declare const contactChannelSeed: () => BlockSeed;
10
+ export declare function withContactTemplates(props: Props): Props;
11
+ export {};
@@ -0,0 +1 @@
1
+ import{BOX_HIDE_WHEN_ROW_EMPTY as m,CARD_ROW_LINK_PROP as C}from"efficient-web-builder/format/lib/content/card-template";import{BOX_TYPE as o,CONTAINER_BLOCKS_SLOT as s}from"efficient-web-builder/format/lib/document/container-blocks";import{rowFieldTextSeed as n}from"efficient-web-builder/format/lib/document/blocks/general/Cards/card-seed";import{BOX as E,DIM as d,INNER_BOX as S,LABEL_FACE as P,TEXT as l,boxPadding as r,seedNodes as N,token as g}from"efficient-web-builder/format/lib/document/seed-parts";const T="template",_="reasonTemplate",L="channelTemplate",M=["Text","ImageBlock",o],p=(t,e)=>({...P,...g("label",t),letterSpacing:e,lineHeight:1.5}),u={...p(12,.24),color:"main"},w={textStyle:"heading-3",...g("headingSmall",26),weight:500,case:"upper",lineHeight:1.05,letterSpacing:-.02},x={textStyle:"heading-1",...g("body",14),weight:400,case:"none",lineHeight:1.5,letterSpacing:0,color:"muted"},f=p(12,.22),y=p(12,.2),A={...p(12,.3),color:"main"},R={textStyle:"heading-3",...g("headingSmall",24),weight:500,case:"none",lineHeight:1.2,letterSpacing:-.02},H={...p(12,.2),color:"muted"},c=(t,e,i={})=>({...S,name:t,gap:e,gapPhone:e,...i}),b=()=>({type:o,props:c("Topic",16,{justify:"between",...r(40,32),sectionHeightMode:"fixed",sectionHeightValue:240,sectionHeightUnit:"px"}),slots:{[s]:[{type:o,props:c("Head",16),slots:{[s]:[n("eyebrow",{...l,tag:"p",widthFit:"fill"},u),n("title",{...l,tag:"h3",widthFit:"fill"},w)]}},{type:o,props:c("Foot",24),slots:{[s]:[n("copy",{...d,tag:"p",widthFit:"fill"},x),{type:o,props:{...E,name:"Response",direction:"row",justify:"between",align:"center",gap:16,gapPhone:16,phoneRow:2,sharePhone:"content",wrapPhone:"nowrap",...r(0,0),sectionPaddingTop:16,sectionPaddingTopPhone:16,sectionBorder:{top:1},[m]:["response"]},slots:{[s]:[{type:"Text",props:{...d,tag:"p",text:"Response",_partStyles:{text:f}}},n("response",{...l,tag:"p"},f)]}}]}}]}}),B=()=>({type:o,props:{...c("Reason",0),...r(12,16),sectionBorder:{width:1}},slots:{[s]:[n("title",{...d,tag:"p"},y)]}}),K=()=>({type:o,props:{...c("Channel",12),...r(32,20,20,20),sectionPaddingLeft:22,sectionPaddingTopTablet:20,sectionPaddingRightTablet:20,sectionPaddingBottomTablet:20,sectionPaddingLeftTablet:20,sectionBorder:{bottom:1}},slots:{[s]:[n("label",{...l,tag:"p",widthFit:"fill"},A),{type:o,props:{...c("Value",0),[C]:"href"},slots:{[s]:[n("value",{...l,tag:"p",widthFit:"fill"},R)]}},n("sub",{...d,tag:"p",widthFit:"fill"},H)]}});function h(t,e,i){return N([t],(O,a)=>a==="0"?`${e}~${i}`:`${e}~${i}.${a.slice(2)}`)}const F=t=>typeof t.id=="string"&&t.id.trim()?t.id:"ContactRouting";function Y(t){const e=t[T]===void 0,i=t[_]===void 0,O=t[L]===void 0;if(!e&&!i&&!O)return t;const a=F(t);return{...t,...e?{[T]:h(b(),a,"topic")}:{},...i?{[_]:h(B(),a,"reason")}:{},...O?{[L]:h(K(),a,"channel")}:{}}}export{L as CONTACT_CHANNEL_SLOT,_ as CONTACT_REASON_SLOT,M as CONTACT_TEMPLATE_ALLOW,T as CONTACT_TOPIC_SLOT,K as contactChannelSeed,B as contactReasonSeed,b as contactTopicSeed,Y as withContactTemplates};
@@ -0,0 +1 @@
1
+ export declare const COPY_MARK: string;
@@ -0,0 +1 @@
1
+ const t="[&_sup.text-accent.tracking-normal]:static [&_sup.text-accent.tracking-normal]:align-baseline [&_sup.text-accent.tracking-normal]:[font-size:inherit] [&_sup.text-accent.tracking-normal]:text-current [&_sup.text-accent.tracking-normal]:tracking-[inherit]";export{t as COPY_MARK};
@@ -0,0 +1,139 @@
1
+ import { type SeededNode } from "efficient-web-builder/format/lib/document/seed-parts";
2
+ type Props = Record<string, unknown>;
3
+ export declare const FACET_TEMPLATE_SLOT = "facetTemplate";
4
+ export declare const FACET_TEMPLATE_LABEL = "Filter option template";
5
+ export declare const FACET_ROW_FIELDS: readonly [{
6
+ readonly key: "facetLabel";
7
+ readonly label: "Filter option";
8
+ }, {
9
+ readonly key: "facetName";
10
+ readonly label: "Type name";
11
+ }, {
12
+ readonly key: "facetCount";
13
+ readonly label: "Option count";
14
+ }, {
15
+ readonly key: "facetColour";
16
+ readonly label: "Option colour";
17
+ readonly kind: "colour";
18
+ }, {
19
+ readonly key: "facetTickFill";
20
+ readonly label: "Tick box fill";
21
+ readonly kind: "colour";
22
+ }, {
23
+ readonly key: "facetTick";
24
+ readonly label: "Tick mark";
25
+ readonly kind: "image";
26
+ }, {
27
+ readonly key: "facetTickMark";
28
+ readonly label: "Tick box shown";
29
+ }, {
30
+ readonly key: "facetRadioMark";
31
+ readonly label: "Round mark shown";
32
+ }, {
33
+ readonly key: "facetDot";
34
+ readonly label: "Round mark dot";
35
+ readonly kind: "colour";
36
+ }];
37
+ export declare const FACET_TICK_MARK = "sf-facet-tick-picture";
38
+ export declare const FACET_TICK: string;
39
+ export declare const FACET_TICK_VAR = "--sf-facet-tick";
40
+ export declare const FACET_TICK_INK_CLASS: string;
41
+ export type FacetRow = Record<(typeof FACET_ROW_FIELDS)[number]["key"], string>;
42
+ export declare function facetRow(option: {
43
+ label: string;
44
+ count: number;
45
+ swatch: string | null;
46
+ }, picked: boolean): FacetRow;
47
+ export declare function typeRow(option: {
48
+ label: string;
49
+ count: number;
50
+ }, picked: boolean): FacetRow;
51
+ export declare const FACET_TEMPLATE_ALLOW: readonly ["Text", "ImageBlock", "Flex"];
52
+ export declare const NAMED_EXCEPTIONS: readonly [{
53
+ readonly part: "facetLabel";
54
+ readonly kind: "size";
55
+ readonly value: 13;
56
+ readonly reason: "The old rail's option words were 13 px; kept so no facet word moves.";
57
+ readonly owner: "storefront sections owner";
58
+ readonly due: "2026-12-18";
59
+ }, {
60
+ readonly part: "facetName";
61
+ readonly kind: "size";
62
+ readonly value: 13;
63
+ readonly reason: "A type's name takes the facet words' 13 px, so the type picker has the same rail look.";
64
+ readonly owner: "storefront sections owner";
65
+ readonly due: "2026-12-18";
66
+ }, {
67
+ readonly part: "Option";
68
+ readonly kind: "gap";
69
+ readonly value: 10;
70
+ readonly reason: "The old rail's 10 px between the option and its count; kept so no word moves.";
71
+ readonly owner: "storefront sections owner";
72
+ readonly due: "2026-12-18";
73
+ }, {
74
+ readonly part: "Choice";
75
+ readonly kind: "gap";
76
+ readonly value: 10;
77
+ readonly reason: "The old rail's 10 px between tick box, dot and words; kept so no word moves.";
78
+ readonly owner: "storefront sections owner";
79
+ readonly due: "2026-12-18";
80
+ }, {
81
+ readonly part: "Tick box";
82
+ readonly kind: "padding";
83
+ readonly value: 1;
84
+ readonly reason: "The 1 px ring round the tick box, drawn as the Box's own Fill inside 1 px padding.";
85
+ readonly owner: "storefront sections owner";
86
+ readonly due: "2026-12-18";
87
+ }, {
88
+ readonly part: "Radio";
89
+ readonly kind: "padding";
90
+ readonly value: 1;
91
+ readonly reason: "The 1 px ring round the round mark, drawn as the Box's own Fill inside 1 px padding.";
92
+ readonly owner: "storefront sections owner";
93
+ readonly due: "2026-12-18";
94
+ }, {
95
+ readonly part: "Radio ground";
96
+ readonly kind: "padding";
97
+ readonly value: 3;
98
+ readonly reason: "The 3 px between the round mark's ring and its 8 px dot, as the browser's own radio.";
99
+ readonly owner: "storefront sections owner";
100
+ readonly due: "2026-12-18";
101
+ }, {
102
+ readonly part: "Tick";
103
+ readonly kind: "box";
104
+ readonly value: 14;
105
+ readonly reason: "The tick box's ground inside its 1 px ring: 16 px less the ring each side, the browser's own checkbox size.";
106
+ readonly owner: "storefront sections owner";
107
+ readonly due: "2026-12-18";
108
+ }, {
109
+ readonly part: "Radio ground";
110
+ readonly kind: "box";
111
+ readonly value: 14;
112
+ readonly reason: "The round mark's ground inside its 1 px ring: 16 px less the ring each side, the browser's own radio size.";
113
+ readonly owner: "storefront sections owner";
114
+ readonly due: "2026-12-18";
115
+ }, {
116
+ readonly part: "Ring";
117
+ readonly kind: "box";
118
+ readonly value: 13;
119
+ readonly reason: "The colour dot's 1 px ring as the old rail drew it (13 px round); kept so no swatch or word moves.";
120
+ readonly owner: "storefront sections owner";
121
+ readonly due: "2026-12-18";
122
+ }, {
123
+ readonly part: "Colour";
124
+ readonly kind: "box";
125
+ readonly value: 11;
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
+ readonly owner: "storefront sections owner";
128
+ readonly due: "2026-12-18";
129
+ }, {
130
+ readonly part: "aside";
131
+ readonly kind: "padding";
132
+ readonly value: 22;
133
+ readonly 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.";
134
+ readonly owner: "storefront sections owner";
135
+ readonly due: "2026-12-18";
136
+ }];
137
+ export declare function facetRowSeed(nodeId: string): SeededNode[];
138
+ export declare function withFacetTemplate(props: Props): Props;
139
+ export {};
@@ -0,0 +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};
@@ -0,0 +1,28 @@
1
+ import { type SeededNode } from "efficient-web-builder/format/lib/document/seed-parts";
2
+ type Props = Record<string, unknown>;
3
+ export declare const HERO_OPTION_SLOT = "optionTemplate";
4
+ export declare const HERO_OPTION_SLOT_LABEL = "Option template";
5
+ export declare const HERO_OPTION_FIELDS: readonly [{
6
+ readonly key: "swatch";
7
+ readonly label: "Finish colour";
8
+ readonly kind: "colour";
9
+ }, {
10
+ readonly key: "name";
11
+ readonly label: "Finish name";
12
+ }, {
13
+ readonly key: "label";
14
+ readonly label: "Option";
15
+ }, {
16
+ readonly key: "note";
17
+ readonly label: "Option note";
18
+ }];
19
+ export interface HeroOptionRow {
20
+ swatch?: string;
21
+ name?: string;
22
+ label?: string;
23
+ note?: string;
24
+ }
25
+ export declare const HERO_OPTION_ALLOW: readonly ["Text", "Flex"];
26
+ export declare function heroOptionSeed(nodeId: string): SeededNode[];
27
+ export declare function withHeroOptionTemplate(props: Props): Props;
28
+ export {};
@@ -0,0 +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};
@@ -5,8 +5,8 @@ export declare const CURRENT_LINE: {
5
5
  };
6
6
  export declare const TAB_CELLS: {
7
7
  readonly list: "m-0 flex list-none items-stretch gap-0 overflow-auto p-0 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden";
8
- readonly item: "flex";
9
- readonly tab: (first: boolean, current: boolean) => string;
8
+ readonly item: (first: boolean, editing: boolean) => string;
9
+ readonly tab: (current: boolean) => string;
10
10
  readonly underline: "absolute inset-x-0 -bottom-px h-[2px] bg-accent";
11
11
  };
12
12
  export declare const TAB_PILLS: {
@@ -15,3 +15,4 @@ export declare const TAB_PILLS: {
15
15
  readonly tab: (current: boolean) => string;
16
16
  };
17
17
  export declare function currentLinkIndex(hrefs: readonly string[], pagePath: string | null | undefined): number;
18
+ export declare function showCurrentTab(strip: HTMLElement | null, behavior: ScrollBehavior): void;
@@ -1 +1 @@
1
- import{normalizePath as r}from"efficient-web-builder/format/lib/popup/rules";import{menuLinkKind as i}from"../menu-link.js";const a="[scrollbar-width:none] [&::-webkit-scrollbar]:hidden",x="text-[length:var(--size-label,13px)]",l={rowLink:"relative opacity-100",row:"pointer-events-none absolute inset-x-0 -bottom-2 h-[2px] bg-accent",tab:"absolute inset-x-0 -bottom-px h-[2px] bg-accent"},b={list:`m-0 flex list-none items-stretch gap-0 overflow-auto p-0 ${a}`,item:"flex",tab:(e,t)=>[`relative block whitespace-nowrap border-r border-line px-[26px] py-[18px] font-mono ${x} uppercase tracking-[0.22em] transition-colors`,e?"border-l border-line":"",t?"text-fg":"text-fg-dim hover:text-fg"].join(" "),underline:l.tab},s={nav:"-mx-1 [scrollbar-width:none] max-view-wide:overflow-x-auto [&::-webkit-scrollbar]:hidden",list:"flex flex-wrap gap-2 px-1 pb-1 max-view-wide:min-w-max max-view-wide:flex-nowrap",tab:e=>`flex flex-col gap-0.5 rounded-[var(--sf-button-radius,999px)] border px-5 py-2.5 transition-colors ${e?"border-accent bg-accent text-accent-ink":"border-line text-fg hover:border-accent hover:text-accent"}`};function d(e,t){if(!t)return-1;const n=r(t);return e.findIndex(o=>i(o)==="page"&&r(o)===n)}export{l as CURRENT_LINE,b as TAB_CELLS,s as TAB_PILLS,d as currentLinkIndex};
1
+ import{normalizePath as l}from"efficient-web-builder/format/lib/popup/rules";import{menuLinkKind as a}from"../menu-link.js";const c="[scrollbar-width:none] [&::-webkit-scrollbar]:hidden",x="text-[length:var(--size-label,13px)]",s={rowLink:"relative opacity-100",row:"pointer-events-none absolute inset-x-0 -bottom-2 h-[2px] bg-accent",tab:"absolute inset-x-0 -bottom-px h-[2px] bg-accent"},f={list:`m-0 flex list-none items-stretch gap-0 overflow-auto p-0 ${c}`,item:(e,o)=>[`relative isolate flex whitespace-nowrap border-r border-line px-[26px] py-[18px] font-mono ${x} uppercase tracking-[0.22em]`,e?"border-l border-line":"",o?"":"[&_*]:pointer-events-none [&_a]:pointer-events-auto"].join(" "),tab:e=>["block transition-colors after:absolute after:inset-0 after:-z-1",e?"text-fg":"text-fg-dim hover:text-fg"].join(" "),underline:s.tab},d={nav:"-mx-1 [scrollbar-width:none] max-view-wide:overflow-x-auto [&::-webkit-scrollbar]:hidden",list:"flex flex-wrap gap-2 px-1 pb-1 max-view-wide:min-w-max max-view-wide:flex-nowrap",tab:e=>`flex flex-col gap-0.5 rounded-[var(--sf-button-radius,999px)] border px-5 py-2.5 transition-colors ${e?"border-accent bg-accent text-accent-ink":"border-line text-fg hover:border-accent hover:text-accent"}`};function m(e,o){if(!o)return-1;const t=l(o);return e.findIndex(n=>a(n)==="page"&&l(n)===t)}function u(e,o){let t=e?.querySelector('[aria-current="page"]')??null;if(!e||!t)return;for(;t.parentElement&&t.parentElement!==e;)t=t.parentElement;const n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=r.left<n.left?r.left-n.left:r.right>n.right?Math.min(r.right-n.right,r.left-n.left):0;i!==0&&e.scrollBy({left:i,behavior:o})}export{s as CURRENT_LINE,f as TAB_CELLS,d as TAB_PILLS,m as currentLinkIndex,u as showCurrentTab};
@@ -4,6 +4,10 @@ export declare const AlloyWheelsListingSlots: {
4
4
  allow: string[];
5
5
  type: "slot";
6
6
  };
7
+ facetTemplate: {
8
+ type: "slot";
9
+ allow: ("Flex" | "Text" | "ImageBlock")[];
10
+ };
7
11
  };
8
12
  export declare const ALLOYWHEELSLISTING_PH: {
9
13
  heading: string;
@@ -1 +1 @@
1
- import{PLP_DEFAULT_KINDS as t}from"../../../../catalog/plp-item.js";import{PLP_COLUMNS_DEFAULT as e}from"../../../../wheels/plp-grid.js";import{ProductGridSlots as o}from"../ProductGrid/meta.js";const r={template:o.template},n={heading:"Alloy wheels",intro:"Filter by brand, colour, size and fitment to find your set."},a={label:"List",fields:r,defaultProps:{heading:"",intro:"",askForCar:!0,gateHeading:"",gateIntro:"",kinds:[...t],perPage:24,columns:e,defaultSort:"recommended",showInStock:!0,showCollection:!0,showPrice:!0}};export{n as ALLOYWHEELSLISTING_PH,a as AlloyWheelsListingMeta,r as AlloyWheelsListingSlots};
1
+ import{PLP_DEFAULT_KINDS as t}from"../../../../catalog/plp-item.js";import{PLP_COLUMNS_DEFAULT as o}from"../../../../wheels/plp-grid.js";import{ProductGridSlots as e}from"../ProductGrid/meta.js";import{FACET_TEMPLATE_ALLOW as r,FACET_TEMPLATE_SLOT as l}from"../../../../content/facet-row-seed.js";const i={template:e.template,[l]:{type:"slot",allow:[...r]}},d={heading:"Alloy wheels",intro:"Filter by brand, colour, size and fitment to find your set."},m={label:"List",fields:i,defaultProps:{heading:"",intro:"",askForCar:!0,gateHeading:"",gateIntro:"",kinds:[...t],perPage:24,columns:o,defaultSort:"recommended",showInStock:!0,showCollection:!0,showPrice:!0}};export{d as ALLOYWHEELSLISTING_PH,m as AlloyWheelsListingMeta,i as AlloyWheelsListingSlots};
@@ -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 g}from"efficient-web-builder/format/lib/animation/hover";import{phHide as i}from"efficient-web-builder/render/lib/document/blocks/scaffold";import{AlloyWheelsListingMeta as r,ALLOYWHEELSLISTING_PH as a}from"./meta.js";const w={...r,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,cardImage:e.cardImage,hover:g(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{w as AlloyWheelsListingRender};
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 +1 @@
1
- "use client";import{jsx as n}from"react/jsx-runtime";import{withRMark as d}from"efficient-web-builder/render/components/RMark";import c from"../../../../../components/card-pieces/CardEyebrow.js";import{readPartStyles as u}from"efficient-web-builder/render/lib/document/part-styles";import b from"../../../../../components/card-pieces/HostPart.js";import{useProductCardState as f}from"../../../../../components/card-pieces/ProductCardState.js";import{useGridCard as w}from"../../../../../components/GridCardTemplate.js";import{itemBrand as p}from"../../../../catalog/plp-item.js";import{wheelCardEyebrow as y}from"../../../../../components/ProductCardEyebrow.js";import{ProductEyebrowMeta as s}from"./meta.js";function g({region:r}){const o=f(),{fieldUsage:l,reserveEyebrow:a,eyebrow:t}=w(),e=o.kind==="wheel"?o.wheel:null,i=e&&t.brand?p(e):null,m={kindLabel:e?t.kindLabel:null,brand:i?d(i):null,process:e&&t.process&&e.process?d(e.process):null};return n(c,{reserve:a,region:r,children:y(m,l)})}const L={...s,render:r=>{const o=!!r.editor?.isEditing;return n(b,{label:s.label??"",editing:o,children:n(g,{region:{nodeId:typeof r.id=="string"?r.id:void 0,partStyles:u(r),editing:o}})})}};export{L as ProductEyebrowRender};
1
+ "use client";import{jsx as t}from"react/jsx-runtime";import{withRMark as l}from"efficient-web-builder/render/components/RMark";import a from"../../../../../components/card-pieces/CardEyebrow.js";import{readPartStyles as p}from"efficient-web-builder/render/lib/document/part-styles";import y from"../../../../../components/card-pieces/HostPart.js";import{useProductCardState as w}from"../../../../../components/card-pieces/ProductCardState.js";import{useGridCard as g}from"../../../../../components/GridCardTemplate.js";import{itemBrand as h,plpKindNoun as k}from"../../../../catalog/plp-item.js";import{productCardEyebrow as E,wheelCardEyebrow as C}from"../../../../../components/ProductCardEyebrow.js";import{keepForCard as P}from"../../../../content/field-usage.js";import{ProductEyebrowMeta as s}from"./meta.js";function v({region:r}){const e=w(),{fieldUsage:m,tyreFieldUsage:c,reserveEyebrow:d,eyebrow:n}=g();if(e.kind==="tyre"){const b=(n.tyreBrand??n.brand)&&P(c)("brand")&&e.tyre.brand||null,f=n.kindLabel?k(["tyre"]).one:null;return t(a,{reserve:d,region:r,children:E(f,b)})}const o=e.kind==="wheel"?e.wheel:null,i=o&&n.brand?h(o):null,u={kindLabel:o?n.kindLabel:null,brand:i?l(i):null,process:o&&n.process&&o.process?l(o.process):null};return t(a,{reserve:d,region:r,children:C(u,m)})}const I={...s,render:r=>{const e=!!r.editor?.isEditing;return t(y,{label:s.label??"",editing:e,children:t(v,{region:{nodeId:typeof r.id=="string"?r.id:void 0,partStyles:p(r),editing:e}})})}};export{I as ProductEyebrowRender};
@@ -4,6 +4,10 @@ export declare const ProductHeroSlots: {
4
4
  allow: string[];
5
5
  type: "slot";
6
6
  };
7
+ optionTemplate: {
8
+ type: "slot";
9
+ allow: ("Flex" | "Text")[];
10
+ };
7
11
  trustBullets: {
8
12
  type: "slot";
9
13
  allow: string[];
@@ -1 +1 @@
1
- import{DEFAULT_HERO_PRICE_PLACEMENT as e}from"../../../../sections/hero-price-placement.js";import{DEFAULT_HERO_LAYOUT as r,DEFAULT_HERO_RATIO as l,DEFAULT_HERO_TEXT_ALIGN as E}from"../../../../sections/hero-arrangement.js";import{DEFAULT_HERO_GALLERY_MODE as _,DEFAULT_HERO_IMAGE_FIT as L}from"../../../../sections/hero-gallery.js";import{cardTemplateSlot as T}from"efficient-web-builder/format/lib/content/card-template";import{HERO_PRICE_BLOCK as m}from"../../../../content/hero-price-seed.js";import{TRUST_BULLETS_ALLOW as a,TRUST_BULLETS_SLOT as o}from"../../../../sections/hero-trust-bullets.js";const t=T(),i="ProductBuyButton",c={template:{...t,allow:[...t.allow,m,i]},[o]:{type:"slot",allow:a}},U={label:"Product Hero",fields:c,defaultProps:{source:null,pricePlacement:e,showVehicleFitment:!0,heroLayout:r,imageRatio:l,textAlign:E,showSpecTable:!0,showPriceQuote:!0,galleryMode:_,imageFit:L,[o]:[]}};export{U as ProductHeroMeta,c as ProductHeroSlots};
1
+ import{DEFAULT_HERO_PRICE_PLACEMENT as e}from"../../../../sections/hero-price-placement.js";import{DEFAULT_HERO_LAYOUT as r,DEFAULT_HERO_RATIO as _,DEFAULT_HERO_TEXT_ALIGN as l}from"../../../../sections/hero-arrangement.js";import{DEFAULT_HERO_GALLERY_MODE as E,DEFAULT_HERO_IMAGE_FIT as L}from"../../../../sections/hero-gallery.js";import{cardTemplateSlot as T}from"efficient-web-builder/format/lib/content/card-template";import{HERO_PRICE_BLOCK as O}from"../../../../content/hero-price-seed.js";import{HERO_OPTION_ALLOW as m,HERO_OPTION_SLOT as a}from"../../../../content/hero-option-seed.js";import{TRUST_BULLETS_ALLOW as i,TRUST_BULLETS_SLOT as o}from"../../../../sections/hero-trust-bullets.js";const t=T(),R="ProductBuyButton",p={template:{...t,allow:[...t.allow,O,R]},[a]:{type:"slot",allow:[...m]},[o]:{type:"slot",allow:i}},S={label:"Product Hero",fields:p,defaultProps:{source:null,pricePlacement:e,showVehicleFitment:!0,heroLayout:r,imageRatio:_,textAlign:l,showSpecTable:!0,showPriceQuote:!0,galleryMode:E,imageFit:L,[o]:[]}};export{S as ProductHeroMeta,p as ProductHeroSlots};
@@ -1 +1 @@
1
- import{jsx as r}from"react/jsx-runtime";import{SITE_WIDTH_CAP as h}from"efficient-web-builder/format/lib/content/page-width";import{resolveWidth as H}from"efficient-web-builder/format/lib/content/section-width";import L from"../../../../../components/LinkedProductHero.js";import m from"../../../../../components/pdp-dynamic/DynamicProductHero.js";import P from"../../../../../components/SectionNotice.js";import{trustBulletsRow as g,trustBulletsSlot as A}from"../../../../../components/product-hero/trust-bullets.js";import{TRUST_BULLETS_SLOT as R}from"../../../../sections/hero-trust-bullets.js";import{useCurrentProduct as F}from"../../../current-product.js";import{isEditorOnDynamicPage as y}from"efficient-web-builder/format/lib/document/editor-page-context";import{DEFAULT_HERO_PRICE_PLACEMENT as O,parseHeroPricePlacement as w}from"../../../../sections/hero-price-placement.js";import{DEFAULT_HERO_LAYOUT as D,DEFAULT_HERO_RATIO as I,DEFAULT_HERO_TEXT_ALIGN as U,parseHeroLayout as S,parseHeroRatio as p,parseHeroTextAlign as M}from"../../../../sections/hero-arrangement.js";import{DEFAULT_HERO_GALLERY_MODE as k,DEFAULT_HERO_IMAGE_FIT as x,parseHeroGalleryMode as B,parseHeroImageFit as C}from"../../../../sections/hero-gallery.js";import{say as G}from"efficient-web-builder/format/lib/editor-words";import{ProductHeroMeta as N}from"./meta.js";import{HideTaker as V}from"efficient-web-builder/render/components/ViewHideRoot";function b({source:e,editing:t=!1,pricePlacement:i=O,showVehicleFitment:o=!0,heroLayout:l=D,imageRatio:a=I,textAlign:u=U,showSpecTable:c=!0,showPriceQuote:d=!0,galleryMode:f=k,imageFit:s=x,trustBullets:E,nodeId:T,priceTemplate:_}){const n={heroLayout:l,imageRatio:a,textAlign:u,showSpecTable:c,showPriceQuote:d,galleryMode:f,imageFit:s,trustBullets:g(E,t),nodeId:T,priceTemplate:_};return F()||t&&y()?r(m,{editing:t,pricePlacement:i,showVehicleFitment:o,...n}):e?.slug?r(L,{slug:e.slug,kind:e.kind??"wheel",editing:t,pricePlacement:i,showVehicleFitment:o,...n}):t?r(P,{size:"tall",children:G("Pick a product in the panel to fill this hero.")}):r(m,{pricePlacement:i,showVehicleFitment:o,...n})}function j(e,t){return H(e,"full").mode!=="page"?t:r(V,{as:"div",style:{"--sf-content-cap":h},children:t})}const me={...N,render:e=>j(e,r(b,{source:e.source,editing:e.editor?.isEditing,pricePlacement:w(e.pricePlacement),showVehicleFitment:e.showVehicleFitment??!0,heroLayout:S(e.heroLayout),imageRatio:p(e.imageRatio),textAlign:M(e.textAlign),showSpecTable:e.showSpecTable??!0,showPriceQuote:e.showPriceQuote??!0,galleryMode:B(e.galleryMode),imageFit:C(e.imageFit),trustBullets:A(e[R]),nodeId:typeof e.id=="string"?e.id:void 0,priceTemplate:typeof e.template=="function"?e.template:void 0}))};export{me 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 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 +1 @@
1
- "use client";import{jsx as r}from"react/jsx-runtime";import o from"../../../../../components/card-pieces/HostPart.js";import{CardSpecFacts as c,CardSpecLine as d}from"../../../../../components/card-pieces/CardSpecs.js";import{useGridCard as n}from"../../../../../components/GridCardTemplate.js";import{ProductSpecsMeta as i}from"./meta.js";function a({sizes:e}){const{fieldUsage:t,fit:s}=n();return r(d,{children:r(c,{sizes:e,fieldUsage:t,car:s})})}const S={...i,render:e=>r(o,{label:i.label??"",editing:!!e.editor?.isEditing,children:r(a,{sizes:e.sizes===!0})})};export{S as ProductSpecsRender};
1
+ "use client";import{jsx as r}from"react/jsx-runtime";import c from"../../../../../components/card-pieces/HostPart.js";import{CardSpecFacts as a,CardSpecLine as n}from"../../../../../components/card-pieces/CardSpecs.js";import{useGridCard as m}from"../../../../../components/GridCardTemplate.js";import{useProductCardState as l}from"../../../../../components/card-pieces/ProductCardState.js";import{ProductSpecsMeta as t}from"./meta.js";function f({sizes:e}){const{fieldUsage:i,tyreFieldUsage:o,fit:s}=m(),d=l().kind==="tyre";return r(n,{children:r(a,{sizes:e,fieldUsage:d?o:i,car:s})})}const x={...t,render:e=>r(c,{label:t.label??"",editing:!!e.editor?.isEditing,children:r(f,{sizes:e.sizes===!0})})};export{x as ProductSpecsRender};
@@ -1,5 +1,13 @@
1
1
  import type { BlockRender } from "efficient-web-builder/format/lib/document/blocks/block-types";
2
2
  export declare const AppointmentBookingSlots: {
3
+ serviceTemplate: {
4
+ type: "slot";
5
+ allow: ("Flex" | "Text")[];
6
+ };
7
+ timeTemplate: {
8
+ type: "slot";
9
+ allow: ("Flex" | "Text")[];
10
+ };
3
11
  boxes: {
4
12
  type: "slot";
5
13
  allow: string[];
@@ -1 +1 @@
1
- const o={boxes:{type:"slot",allow:["BookingBox"]}},e={label:"Booking Form",fields:o,defaultProps:{eyebrow:"",heading:"",intro:"",buttonLabel:"",successMessage:""}};export{e as AppointmentBookingMeta,o as AppointmentBookingSlots};
1
+ import{BOOKING_TEMPLATE_SLOT_FIELDS as o}from"../../../../content/booking-card-seed.js";const e={boxes:{type:"slot",allow:["BookingBox"]},...o},n={label:"Booking Form",fields:e,defaultProps:{eyebrow:"",heading:"",intro:"",buttonLabel:"",successMessage:""}};export{n as AppointmentBookingMeta,e as AppointmentBookingSlots};
@@ -1 +1 @@
1
- import{jsx as m}from"react/jsx-runtime";import a from"../../../../../components/AppointmentBooking.js";import{PH as o}from"efficient-web-builder/format/lib/document/blocks/placeholders";import{parseSectionHeadPlacement as r}from"efficient-web-builder/format/lib/sections/section-head-placement";import{phHide as t}from"efficient-web-builder/render/lib/document/blocks/scaffold";import{AppointmentBookingMeta as b}from"./meta.js";const h={...b,render:e=>{const n=r(e.headPlacement)==="own-box",i=d=>n?void 0:d;return m(a,{eyebrow:i(t(e.eyebrow,o.eyebrow,e.editor)),heading:i(t(e.heading,o.heading,e.editor)),intro:i(t(e.intro,o.body,e.editor)),omitHead:n,buttonLabel:t(e.buttonLabel,o.button,e.editor),successMessage:t(e.successMessage,o.bookingConfirmation,e.editor),boxes:e.boxes,inBoxes:e.layout==="boxes",nodeId:typeof e.id=="string"?e.id:void 0,editing:e.editor?.isEditing})}};export{h as AppointmentBookingRender};
1
+ import{jsx as m}from"react/jsx-runtime";import a from"../../../../../components/AppointmentBooking.js";import{PH as t}from"efficient-web-builder/format/lib/document/blocks/placeholders";import{parseSectionHeadPlacement as r}from"efficient-web-builder/format/lib/sections/section-head-placement";import{phHide as i}from"efficient-web-builder/render/lib/document/blocks/scaffold";import{AppointmentBookingMeta as b}from"./meta.js";const s={...b,render:e=>{const o=r(e.headPlacement)==="own-box",n=d=>o?void 0:d;return m(a,{eyebrow:n(i(e.eyebrow,t.eyebrow,e.editor)),heading:n(i(e.heading,t.heading,e.editor)),intro:n(i(e.intro,t.body,e.editor)),omitHead:o,buttonLabel:i(e.buttonLabel,t.button,e.editor),successMessage:i(e.successMessage,t.bookingConfirmation,e.editor),boxes:e.boxes,serviceTemplate:e.serviceTemplate,timeTemplate:e.timeTemplate,inBoxes:e.layout==="boxes",nodeId:typeof e.id=="string"?e.id:void 0,editing:e.editor?.isEditing})}};export{s as AppointmentBookingRender};