efficient-storefront-blocks 0.99.1 → 0.101.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 (151) hide show
  1. package/CHANGELOG.md +55 -1
  2. package/dist/chunks/{EditorPreviewCheckout-EBG3NMJI.js → EditorPreviewCheckout-JMBBJSI7.js} +1 -1
  3. package/dist/chunks/{SiteEditorProvider-YAIB64UV.js → SiteEditorProvider-BKZW7KVN.js} +1 -1
  4. package/dist/chunks/chunk-AF5TRBQB.js +1 -0
  5. package/dist/chunks/chunk-GJZGQCDM.js +1 -0
  6. package/dist/chunks/chunk-KV3EHFHB.js +339 -0
  7. package/dist/chunks/chunk-XNUK2QNK.js +1 -0
  8. package/dist/chunks/chunk-YSKMBJ7V.js +74 -0
  9. package/dist/chunks/{fitment-data-PXY35OVC.js → fitment-data-HMD5DDDB.js} +1 -1
  10. package/dist/consent.js +1 -1
  11. package/dist/contract.js +1 -1
  12. package/dist/editor/lib/api/section-templates.js +1 -1
  13. package/dist/editor/lib/document/blocks/commerce/AlloyWheelsListing/fields.js +1 -1
  14. package/dist/editor/lib/document/blocks/commerce/DetailRows/fields.js +1 -1
  15. package/dist/editor/lib/document/blocks/commerce/GalleryB/fields.js +1 -1
  16. package/dist/editor/lib/document/blocks/commerce/ProductGrid/fields.js +1 -1
  17. package/dist/editor/lib/document/blocks/commerce/index.d.ts +1 -1
  18. package/dist/editor/lib/document/blocks/service/FooterLogo/fields.js +1 -1
  19. package/dist/editor/lib/document/blocks/service/Subscribe/fields.js +1 -1
  20. package/dist/editor/lib/document/box-header.js +1 -1
  21. package/dist/editor/lib/document/config.js +1 -1
  22. package/dist/editor/lib/efficient-block-sources.js +1 -1
  23. package/dist/editor/lib/storefront-editor-words.d.ts +4 -0
  24. package/dist/editor/lib/storefront-editor-words.js +1 -1
  25. package/dist/editor.css +1 -1
  26. package/dist/index.js +39 -32
  27. package/dist/links.js +1 -1
  28. package/dist/render/app/globals.css +122 -16
  29. package/dist/render/built-with.json +1 -1
  30. package/dist/render/components/ChatWidget.js +1 -1
  31. package/dist/render/components/Collections.js +1 -1
  32. package/dist/render/components/ConsentContext.d.ts +6 -0
  33. package/dist/render/components/ConsentContext.js +1 -1
  34. package/dist/render/components/ConsentPanel.d.ts +6 -0
  35. package/dist/render/components/ConsentPanel.js +1 -1
  36. package/dist/render/components/ConsentProvider.js +1 -1
  37. package/dist/render/components/CouponField.js +1 -1
  38. package/dist/render/components/DealerFinderSection.js +1 -1
  39. package/dist/render/components/DetailRows.d.ts +2 -3
  40. package/dist/render/components/DetailRows.js +1 -1
  41. package/dist/render/components/EmailCaptureForm.js +1 -1
  42. package/dist/render/components/Events.d.ts +2 -3
  43. package/dist/render/components/Events.js +1 -1
  44. package/dist/render/components/FooterEmailSignup.js +1 -1
  45. package/dist/render/components/FooterLogo.d.ts +1 -1
  46. package/dist/render/components/FooterLogo.js +1 -1
  47. package/dist/render/components/FooterMenu.d.ts +2 -1
  48. package/dist/render/components/FooterMenu.js +1 -1
  49. package/dist/render/components/GalleryGrid.d.ts +3 -3
  50. package/dist/render/components/GalleryGrid.js +3 -3
  51. package/dist/render/components/GridCardTemplate.js +1 -1
  52. package/dist/render/components/LegalLine.d.ts +10 -0
  53. package/dist/render/components/LegalLine.js +1 -1
  54. package/dist/render/components/ProductGridSection.d.ts +3 -2
  55. package/dist/render/components/ProductGridSection.js +1 -1
  56. package/dist/render/components/ProductHeroPanel.js +1 -1
  57. package/dist/render/components/SiteLegalContext.d.ts +19 -0
  58. package/dist/render/components/SiteLegalContext.js +1 -0
  59. package/dist/render/components/Subscribe.d.ts +9 -1
  60. package/dist/render/components/Subscribe.js +1 -1
  61. package/dist/render/components/booking/BookingFormState.js +1 -1
  62. package/dist/render/components/catalog/ShopperFilters.d.ts +3 -1
  63. package/dist/render/components/catalog/ShopperFilters.js +1 -1
  64. package/dist/render/components/fitment/FitmentFinder.js +1 -1
  65. package/dist/render/components/pdp-dynamic/DynamicDetailRows.d.ts +1 -2
  66. package/dist/render/components/pdp-dynamic/DynamicDetailRows.js +1 -1
  67. package/dist/render/components/pdp-dynamic/DynamicGalleryGrid.d.ts +1 -2
  68. package/dist/render/components/pdp-dynamic/DynamicGalleryGrid.js +1 -1
  69. package/dist/render/components/useProductSelection.d.ts +2 -1
  70. package/dist/render/components/useProductSelection.js +1 -1
  71. package/dist/render/components/wheels-plp/AlloyWheelsListing.d.ts +5 -3
  72. package/dist/render/components/wheels-plp/AlloyWheelsListing.js +1 -1
  73. package/dist/render/components/wheels-plp/PlpFacetRows.d.ts +5 -2
  74. package/dist/render/components/wheels-plp/PlpFacetRows.js +1 -1
  75. package/dist/render/components/wheels-plp/PlpSidebar.d.ts +17 -6
  76. package/dist/render/components/wheels-plp/PlpSidebar.js +1 -1
  77. package/dist/render/components/wheels-plp/usePlpFiltersInUrl.d.ts +3 -2
  78. package/dist/render/components/wheels-plp/usePlpFiltersInUrl.js +1 -1
  79. package/dist/render/lib/api/index.js +1 -1
  80. package/dist/render/lib/api/list-rows.d.ts +3 -0
  81. package/dist/render/lib/api/list-rows.js +1 -0
  82. package/dist/render/lib/api/types.d.ts +6 -0
  83. package/dist/render/lib/cache-evict.d.ts +1 -0
  84. package/dist/render/lib/cache-evict.js +1 -1
  85. package/dist/render/lib/catalog/default-variant.d.ts +2 -0
  86. package/dist/render/lib/catalog/default-variant.js +1 -0
  87. package/dist/render/lib/chrome-cache.js +1 -1
  88. package/dist/render/lib/consent/rules.d.ts +7 -0
  89. package/dist/render/lib/consent/rules.js +1 -1
  90. package/dist/render/lib/content/collection-card-look.d.ts +0 -4
  91. package/dist/render/lib/content/collection-card-look.js +1 -1
  92. package/dist/render/lib/content/facet-row-seed.d.ts +1 -0
  93. package/dist/render/lib/content/facet-row-seed.js +1 -1
  94. package/dist/render/lib/content/product-card-seed.js +1 -1
  95. package/dist/render/lib/content/rail-row-seed.d.ts +16 -0
  96. package/dist/render/lib/content/rail-row-seed.js +1 -0
  97. package/dist/render/lib/content/site.d.ts +4 -0
  98. package/dist/render/lib/content/site.js +1 -1
  99. package/dist/render/lib/content/tab-strip.d.ts +3 -1
  100. package/dist/render/lib/content/tab-strip.js +1 -1
  101. package/dist/render/lib/document/blocks/commerce/AlloyWheelsListing/meta.d.ts +8 -0
  102. package/dist/render/lib/document/blocks/commerce/AlloyWheelsListing/meta.js +1 -1
  103. package/dist/render/lib/document/blocks/commerce/AlloyWheelsListing/render.js +1 -1
  104. package/dist/render/lib/document/blocks/commerce/DetailRows/meta.js +1 -1
  105. package/dist/render/lib/document/blocks/commerce/DetailRows/render.js +1 -1
  106. package/dist/render/lib/document/blocks/commerce/FilterBlock/meta.d.ts +8 -0
  107. package/dist/render/lib/document/blocks/commerce/FilterBlock/meta.js +1 -1
  108. package/dist/render/lib/document/blocks/commerce/FilterBlock/render.js +1 -1
  109. package/dist/render/lib/document/blocks/commerce/GalleryB/meta.js +1 -1
  110. package/dist/render/lib/document/blocks/commerce/GalleryB/render.js +1 -1
  111. package/dist/render/lib/document/blocks/commerce/ProductGrid/meta.js +1 -1
  112. package/dist/render/lib/document/blocks/commerce/ProductGrid/render.js +1 -1
  113. package/dist/render/lib/document/blocks/service/DealerFinder/meta.js +1 -1
  114. package/dist/render/lib/document/blocks/service/Events/meta.js +1 -1
  115. package/dist/render/lib/document/blocks/service/Events/render.js +1 -1
  116. package/dist/render/lib/document/blocks/service/Subscribe/render.js +1 -1
  117. package/dist/render/lib/document/card-templates.js +1 -1
  118. package/dist/render/lib/document/current-product.d.ts +2 -1
  119. package/dist/render/lib/document/current-product.js +1 -1
  120. package/dist/render/lib/document/document-nodes.d.ts +2 -0
  121. package/dist/render/lib/document/document-nodes.js +1 -1
  122. package/dist/render/lib/document/footer-page-blocks.js +1 -1
  123. package/dist/render/lib/document/lazy-draws.js +1 -1
  124. package/dist/render/lib/document/section-to-box-rows-listing.js +1 -1
  125. package/dist/render/lib/field-input.d.ts +2 -0
  126. package/dist/render/lib/field-input.js +1 -1
  127. package/dist/render/lib/links/link-rules.d.ts +5 -0
  128. package/dist/render/lib/links/link-rules.js +1 -1
  129. package/dist/render/lib/sections/band-padding.d.ts +39 -0
  130. package/dist/render/lib/sections/band-padding.js +1 -0
  131. package/dist/render/lib/sections/gallery-toolbar.d.ts +2 -2
  132. package/dist/render/lib/sections/gallery-toolbar.js +1 -1
  133. package/dist/render/lib/sections/product-pictures.js +1 -1
  134. package/dist/render/lib/wheels/catalog-filters-to-listing.js +1 -1
  135. package/dist/render/lib/wheels/plp-filters.d.ts +2 -1
  136. package/dist/render/lib/wheels/plp-filters.js +1 -1
  137. package/dist/render/lib/wheels/plp-hydrate.d.ts +0 -3
  138. package/dist/render/lib/wheels/plp-hydrate.js +1 -1
  139. package/dist/render/lib/wheels/selected-ranges.d.ts +1 -0
  140. package/dist/render/lib/wheels/selected-ranges.js +1 -1
  141. package/dist/words.d.ts +13 -0
  142. package/dist/words.js +4 -4
  143. package/package.json +4 -4
  144. package/dist/chunks/chunk-5VSNQZU6.js +0 -1
  145. package/dist/chunks/chunk-B2IYTOE3.js +0 -1
  146. package/dist/chunks/chunk-DOJJTEJV.js +0 -1
  147. package/dist/chunks/chunk-KRMWJLBM.js +0 -412
  148. package/dist/chunks/chunk-QP2F42DV.js +0 -1
  149. package/dist/render/lib/sections/own-padding.d.ts +0 -3
  150. package/dist/render/lib/sections/own-padding.js +0 -1
  151. /package/dist/chunks/{chunk-KRMWJLBM.js.LEGAL.txt → chunk-KV3EHFHB.js.LEGAL.txt} +0 -0
@@ -1 +1 @@
1
- const O="FilterBlock",b="FilterChipsBlock",h="ProductGrid";function a(e){const t=e;return!!t&&typeof t=="object"&&typeof t.type=="string"&&!!t.props&&typeof t.props=="object"}function m(e){return Object.entries(e.props??{}).filter(t=>Array.isArray(t[1])&&t[1].length>0&&t[1].every(a))}function A(e){const t=e??{},c=[];Array.isArray(t.content)&&c.push(t.content);for(const s of Object.values(t.zones??{}))Array.isArray(s)&&c.push(s);return c}function d(e){const t=[],c=(s,p)=>{const f=[s,...p];for(const i of s)if(a(i)){t.push({node:i,order:t.length,lists:f});for(const[,o]of m(i))c(o,f)}};for(const s of A(e))c(s,[]);return t}function j(e){return d(e).map(t=>t.node)}function E(e,t){const c=o=>{let n=o;for(const[r,u]of m(o)){const l=u.map(c);l.some((y,x)=>y!==u[x])&&(n={...n,props:{...n.props,[r]:l}})}return t(n,o)},s=o=>{const n=o.map(r=>a(r)?c(r):r);return n.some((r,u)=>r!==o[u])?n:o},p=e;let f=null;const i=()=>f??={...e};if(Array.isArray(p.content)){const o=s(p.content);o!==p.content&&(i().content=o)}if(p.zones){const o=Object.fromEntries(Object.entries(p.zones).map(([n,r])=>[n,Array.isArray(r)?s(r):r]));Object.keys(o).some(n=>o[n]!==p.zones[n])&&(i().zones=o)}return f??e}export{O as FILTER_BLOCK_TYPE,b as FILTER_CHIPS_TYPE,h as PRODUCT_GRID_TYPE,j as documentNodes,a as isDocNode,E as mapDocumentNodes,d as placedDocumentNodes,m as slotListsOf};
1
+ const E="FilterBlock",_="FilterChipsBlock",O="ProductGrid",T="AlloyWheelsListing",d="MenuBlock";function l(e){const t=e;return!!t&&typeof t=="object"&&typeof t.type=="string"&&!!t.props&&typeof t.props=="object"}function y(e){return Object.entries(e.props??{}).filter(t=>Array.isArray(t[1])&&t[1].length>0&&t[1].every(l))}function A(e){const t=e??{},c=[];Array.isArray(t.content)&&c.push(t.content);for(const s of Object.values(t.zones??{}))Array.isArray(s)&&c.push(s);return c}function L(e){const t=[],c=(s,p)=>{const f=[s,...p];for(const i of s)if(l(i)){t.push({node:i,order:t.length,lists:f});for(const[,o]of y(i))c(o,f)}};for(const s of A(e))c(s,[]);return t}function h(e){return L(e).map(t=>t.node)}function P(e,t){const c=o=>{let n=o;for(const[r,u]of y(o)){const a=u.map(c);a.some((m,x)=>m!==u[x])&&(n={...n,props:{...n.props,[r]:a}})}return t(n,o)},s=o=>{const n=o.map(r=>l(r)?c(r):r);return n.some((r,u)=>r!==o[u])?n:o},p=e;let f=null;const i=()=>f??={...e};if(Array.isArray(p.content)){const o=s(p.content);o!==p.content&&(i().content=o)}if(p.zones){const o=Object.fromEntries(Object.entries(p.zones).map(([n,r])=>[n,Array.isArray(r)?s(r):r]));Object.keys(o).some(n=>o[n]!==p.zones[n])&&(i().zones=o)}return f??e}export{T as ALLOY_WHEELS_LISTING_TYPE,E as FILTER_BLOCK_TYPE,_ as FILTER_CHIPS_TYPE,d as MENU_BLOCK_TYPE,O as PRODUCT_GRID_TYPE,h as documentNodes,l as isDocNode,P as mapDocumentNodes,L as placedDocumentNodes,y as slotListsOf};
@@ -1 +1 @@
1
- import{jsx as B}from"react/jsx-runtime";import{declaredBlockSource as F,sourcedRows as E}from"efficient-web-builder/format/lib/content/block-sources";import y from"../../components/FooterMenu.js";const M={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial",PaymentLogosBlock:"FooterPayment"},w="column";function O({id:o,template:e,menu:r,dataSource:n,dataRows:i,heading:l,accordionMobile:u,showDividers:c,direction:a,linkAlign:d,linkRange:m,menuStyle:s,currentPage:g,menuStylePhone:P,menuPanelWidth:f,menuPanelTintColor:k,menuPanelTintOpacity:p,editor:t}){return B(y,{owner:{id:String(o??""),type:"MenuBlock",template:e},menu:r,served:F({dataSource:n})?E({dataSource:n,dataRows:i},!!t?.isEditing).rows:void 0,heading:l||void 0,accordionMobile:u,showDividers:c,layout:a==="row"?"row":"column",linkAlign:d,linkRange:m,menuStyle:s,currentPage:g,menuStylePhone:P,menuPanelWidth:f,menuPanelTintColor:k,menuPanelTintOpacity:p,editing:t?.isEditing})}function R(o){for(const[r,n]of Object.entries(M))o[r]={...o[n]};const e=o.MenuBlock;e.defaultProps={...e.defaultProps,direction:w},e.render=O}export{M as PAGE_BLOCKS_FROM_FOOTER,w as PAGE_MENU_DIRECTION_DEFAULT,R as addPageBlocksFromFooter};
1
+ import{jsx as B}from"react/jsx-runtime";import{declaredBlockSource as O,sourcedRows as k}from"efficient-web-builder/format/lib/content/block-sources";import _ from"../../components/FooterMenu.js";import{addressQueryOf as M}from"../wheels/selected-ranges.js";import{menuLayoutOf as S}from"../content/tab-strip.js";import{MENU_BLOCK_TYPE as i}from"./document-nodes.js";const L={[i]:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial",PaymentLogosBlock:"FooterPayment"},T="column";function w({id:e,template:o,menu:r,dataSource:n,dataRows:l,heading:u,accordionMobile:a,showDividers:m,direction:d,linkAlign:c,linkRange:s,menuStyle:f,currentPage:g,menuStylePhone:p,menuPanelWidth:P,menuPanelTintColor:y,menuPanelTintOpacity:E,editor:t,...F}){return B(_,{owner:{id:String(e??""),type:i,template:o},menu:r,served:O({dataSource:n})?k({dataSource:n,dataRows:l},!!t?.isEditing).rows:void 0,heading:u||void 0,accordionMobile:a,showDividers:m,layout:S(d),linkAlign:c,linkRange:s,menuStyle:f,currentPage:g,pageQuery:M(F)||void 0,menuStylePhone:p,menuPanelWidth:P,menuPanelTintColor:y,menuPanelTintOpacity:E,editing:t?.isEditing})}function j(e){for(const[r,n]of Object.entries(L))e[r]={...e[n]};const o=e.MenuBlock;o.defaultProps={...o.defaultProps,direction:T},o.render=w}export{L as PAGE_BLOCKS_FROM_FOOTER,T as PAGE_MENU_DIRECTION_DEFAULT,j as addPageBlocksFromFooter};
@@ -1 +1 @@
1
- import{jsx as i}from"react/jsx-runtime";import t from"next/dynamic";import{SITE_FOOTER_TYPE as d,SITE_HEADER_TYPE as m}from"efficient-web-builder/format/lib/document/section-groups";function r(e){return function(o){return e.render(o)}}const p={Banner:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Banner/render").then(e=>r(e.BannerRender))),Breadcrumb:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Breadcrumb/render").then(e=>r(e.BreadcrumbRender))),ButtonBlock:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/ButtonBlock/render").then(e=>r(e.ButtonBlockRender))),CardList:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/CardList/render").then(e=>r(e.CardListRender))),Cards:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Cards/render").then(e=>r(e.CardsRender))),CategoryBar:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/CategoryBar/render").then(e=>r(e.CategoryBarRender))),Chart:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Chart/render").then(e=>r(e.ChartRender))),Contents:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Contents/render").then(e=>r(e.ContentsRender))),ContactLocations:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/ContactLocations/render").then(e=>r(e.ContactLocationsRender))),LocationMap:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/LocationMap/render").then(e=>r(e.LocationMapRender))),CustomHTML:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/CustomHTML/render").then(e=>r(e.CustomHTMLRender))),Divider:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Divider/render").then(e=>r(e.DividerRender))),DocBody:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/DocBody/render").then(e=>r(e.DocBodyRender))),DocMasthead:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/DocMasthead/render").then(e=>r(e.DocMastheadRender))),DocMetaCards:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/DocMetaCards/render").then(e=>r(e.DocMetaCardsRender))),DocTabs:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/DocTabs/render").then(e=>r(e.DocTabsRender))),Eyebrow:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Eyebrow/render").then(e=>r(e.EyebrowRender))),FAQ:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/FAQ/render").then(e=>r(e.FAQRender))),FeaturedCover:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/FeaturedCover/render").then(e=>r(e.FeaturedCoverRender))),Flex:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Flex/render").then(e=>r(e.FlexRender))),Footprint:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Footprint/render").then(e=>r(e.FootprintRender))),Grid:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Grid/render").then(e=>r(e.GridRender))),Heading:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Heading/render").then(e=>r(e.HeadingRender))),Hero:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Hero/render").then(e=>r(e.HeroRender))),HeroGroup:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/HeroGroup/render").then(e=>r(e.HeroGroupRender))),HeroSingle:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/HeroSingle/render").then(e=>r(e.HeroSingleRender))),HeroSlide:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/HeroSlide/render").then(e=>r(e.HeroSlideRender))),ImageBlock:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/ImageBlock/render").then(e=>r(e.ImageBlockRender))),Integrations:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Integrations/render").then(e=>r(e.IntegrationsRender))),IntroBleed:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/IntroBleed/render").then(e=>r(e.IntroBleedRender))),Countdown:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Countdown/render").then(e=>r(e.CountdownRender))),KeyFeatures:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/KeyFeatures/render").then(e=>r(e.KeyFeaturesRender))),ListSearch:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/ListSearch/render").then(e=>r(e.ListSearchRender))),LogoBlock:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/LogoBlock/render").then(e=>r(e.LogoBlockRender))),Logos:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Logos/render").then(e=>r(e.LogosRender))),LongRead:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/LongRead/render").then(e=>r(e.LongReadRender))),Manifesto:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Manifesto/render").then(e=>r(e.ManifestoRender))),Masthead:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Masthead/render").then(e=>r(e.MastheadRender))),Mockup:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Mockup/render").then(e=>r(e.MockupRender))),OrderSummary:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/OrderSummary/render").then(e=>r(e.OrderSummaryRender))),ParagraphsA:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/ParagraphsA/render").then(e=>r(e.ParagraphsARender))),PaymentBadges:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/PaymentBadges/render").then(e=>r(e.PaymentBadgesRender))),PostCard:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/PostCard/render").then(e=>r(e.PostCardRender))),ProcessSteps:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/ProcessSteps/render").then(e=>r(e.ProcessStepsRender))),Prose:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Prose/render").then(e=>r(e.ProseRender))),SectionHeader:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/SectionHeader/render").then(e=>r(e.SectionHeaderRender))),Series:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Series/render").then(e=>r(e.SeriesRender))),Spacer:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Spacer/render").then(e=>r(e.SpacerRender))),SpecStrip:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/SpecStrip/render").then(e=>r(e.SpecStripRender))),Split:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Split/render").then(e=>r(e.SplitRender))),Stats:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Stats/render").then(e=>r(e.StatsRender))),StatsParagraph:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/StatsParagraph/render").then(e=>r(e.StatsParagraphRender))),Testimonials:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Testimonials/render").then(e=>r(e.TestimonialsRender))),Text:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Text/render").then(e=>r(e.TextRender))),Ticker:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Ticker/render").then(e=>r(e.TickerRender))),Timeline:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Timeline/render").then(e=>r(e.TimelineRender))),TimelineTrack:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/TimelineTrack/render").then(e=>r(e.TimelineTrackRender))),TitleWithButtons:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/TitleWithButtons/render").then(e=>r(e.TitleWithButtonsRender))),AccountBlock:t(()=>import("./blocks/commerce/AccountBlock/render.js").then(e=>r(e.AccountBlockRender))),AlloyWheelsListing:t(()=>import("./blocks/commerce/AlloyWheelsListing/render.js").then(e=>r(e.AlloyWheelsListingRender))),BundleOffer:t(()=>import("./blocks/commerce/BundleOffer/render.js").then(e=>r(e.BundleOfferRender))),CartBlock:t(()=>import("./blocks/commerce/CartBlock/render.js").then(e=>r(e.CartBlockRender))),CatalogFilterBar:t(()=>import("./blocks/commerce/CatalogFilterBar/render.js").then(e=>r(e.CatalogFilterBarRender))),CheckoutCTA:t(()=>import("./blocks/commerce/CheckoutCTA/render.js").then(e=>r(e.CheckoutCTARender))),CollectionCard:t(()=>import("./blocks/commerce/CollectionCard/render.js").then(e=>r(e.CollectionCardRender))),Collections:t(()=>import("./blocks/commerce/Collections/render.js").then(e=>r(e.CollectionsRender))),CompatibleTyres:t(()=>import("./blocks/commerce/CompatibleTyres/render.js").then(e=>r(e.CompatibleTyresRender))),CountrySwitchBlock:t(()=>import("./blocks/commerce/CountrySwitchBlock/render.js").then(e=>r(e.CountrySwitchBlockRender))),DeliveryOptions:t(()=>import("./blocks/commerce/DeliveryOptions/render.js").then(e=>r(e.DeliveryOptionsRender))),DetailRows:t(()=>import("./blocks/commerce/DetailRows/render.js").then(e=>r(e.DetailRowsRender))),EuTyreLabel:t(()=>import("./blocks/commerce/EuTyreLabel/render.js").then(e=>r(e.EuTyreLabelRender))),EuTyreLabelBlock:t(()=>import("./blocks/commerce/EuTyreLabelBlock/render.js").then(e=>r(e.EuTyreLabelBlockRender))),WheelDiagram:t(()=>import("./blocks/commerce/WheelDiagram/render.js").then(e=>r(e.WheelDiagramRender))),FitmentFinder:t(()=>import("./blocks/commerce/FitmentFinder/render.js").then(e=>r(e.FitmentFinderRender))),FitmentTable:t(()=>import("./blocks/commerce/FitmentTable/render.js").then(e=>r(e.FitmentTableRender))),Gallery:t(()=>import("./blocks/commerce/Gallery/render.js").then(e=>r(e.GalleryRender))),GalleryB:t(()=>import("./blocks/commerce/GalleryB/render.js").then(e=>r(e.GalleryBRender))),GalleryItem:t(()=>import("./blocks/commerce/GalleryItem/render.js").then(e=>r(e.GalleryItemRender))),Header:t(()=>import("./blocks/commerce/Header/render.js").then(e=>r(e.HeaderRender))),ProductGrid:t(()=>import("./blocks/commerce/ProductGrid/render.js").then(e=>r(e.ProductGridRender))),ProductGallery:t(()=>import("./blocks/commerce/ProductGallery/render.js").then(e=>r(e.ProductGalleryRender))),ProductHero:t(()=>import("./blocks/commerce/ProductHero/render.js").then(e=>r(e.ProductHeroRender))),ProductRef:t(()=>import("./blocks/commerce/ProductRef/render.js").then(e=>r(e.ProductRefRender))),RelatedProducts:t(()=>import("./blocks/commerce/RelatedProducts/render.js").then(e=>r(e.RelatedProductsRender))),SearchBlock:t(()=>import("./blocks/commerce/SearchBlock/render.js").then(e=>r(e.SearchBlockRender))),SpecTable:t(()=>import("./blocks/commerce/SpecTable/render.js").then(e=>r(e.SpecTableRender))),ThemeSwitchBlock:t(()=>import("./blocks/commerce/ThemeSwitchBlock/render.js").then(e=>r(e.ThemeSwitchBlockRender))),TyreFitment:t(()=>import("./blocks/commerce/TyreFitment/render.js").then(e=>r(e.TyreFitmentRender))),TyreSizes:t(()=>import("./blocks/commerce/TyreSizes/render.js").then(e=>r(e.TyreSizesRender))),ProductPrice:t(()=>import("./blocks/commerce/ProductPrice/render.js").then(e=>r(e.ProductPriceRender))),ProductBuyButton:t(()=>import("./blocks/commerce/ProductBuyButton/render.js").then(e=>r(e.ProductBuyButtonRender))),ProductColour:t(()=>import("./blocks/commerce/ProductColour/render.js").then(e=>r(e.ProductColourRender))),ProductSize:t(()=>import("./blocks/commerce/ProductSize/render.js").then(e=>r(e.ProductSizeRender))),FilterBlock:t(()=>import("./blocks/commerce/FilterBlock/render.js").then(e=>r(e.FilterBlockRender))),FilterChipsBlock:t(()=>import("./blocks/commerce/FilterChipsBlock/render.js").then(e=>r(e.FilterChipsBlockRender))),FitmentPicker:t(()=>import("./blocks/commerce/FitmentPicker/render.js").then(e=>r(e.FitmentPickerRender))),StockFitment:t(()=>import("./blocks/commerce/StockFitment/render.js").then(e=>r(e.StockFitmentRender))),ProductPicture:t(()=>import("./blocks/commerce/ProductPicture/render.js").then(e=>r(e.ProductPictureRender))),ProductSpecs:t(()=>import("./blocks/commerce/ProductSpecs/render.js").then(e=>r(e.ProductSpecsRender))),ProductBuy:t(()=>import("./blocks/commerce/ProductBuy/render.js").then(e=>r(e.ProductBuyRender))),ProductEyebrow:t(()=>import("./blocks/commerce/ProductEyebrow/render.js").then(e=>r(e.ProductEyebrowRender))),ProductName:t(()=>import("./blocks/commerce/ProductName/render.js").then(e=>r(e.ProductNameRender))),AppointmentBooking:t(()=>import("./blocks/service/AppointmentBooking/render.js").then(e=>r(e.AppointmentBookingRender))),BookingBox:t(()=>import("./blocks/service/BookingBox/render.js").then(e=>r(e.BookingBoxRender))),ContactRouting:t(()=>import("./blocks/service/ContactRouting/render.js").then(e=>r(e.ContactRoutingRender))),DealerFinder:t(()=>import("./blocks/service/DealerFinder/render.js").then(e=>r(e.DealerFinderRender))),Events:t(()=>import("./blocks/service/Events/render.js").then(e=>r(e.EventsRender))),Footer:t(()=>import("./blocks/service/Footer/render.js").then(e=>r(e.FooterRender))),FooterDivider:t(()=>import("./blocks/service/FooterDivider/render.js").then(e=>r(e.FooterDividerRender))),FooterEmailSignup:t(()=>import("./blocks/service/FooterEmailSignup/render.js").then(e=>r(e.FooterEmailSignupRender))),FooterGroup:t(()=>import("./blocks/service/FooterGroup/render.js").then(e=>r(e.FooterGroupRender))),FooterLogo:t(()=>import("./blocks/service/FooterLogo/render.js").then(e=>r(e.FooterLogoRender))),FooterMenu:t(()=>import("./blocks/service/FooterMenu/render.js").then(e=>r(e.FooterMenuRender))),ArticleBody:t(()=>import("./blocks/service/ArticleBody/render.js").then(e=>r(e.ArticleBodyRender))),FooterSocial:t(()=>import("./blocks/service/FooterSocial/render.js").then(e=>r(e.FooterSocialRender))),FooterPayment:t(()=>import("./blocks/service/FooterPayment/render.js").then(e=>r(e.FooterPaymentRender))),FooterText:t(()=>import("./blocks/service/FooterText/render.js").then(e=>r(e.FooterTextRender))),Form:t(()=>import("./blocks/service/Form/render.js").then(e=>r(e.FormRender))),LegalLineBlock:t(()=>import("./blocks/service/LegalLineBlock/render.js").then(e=>r(e.LegalLineBlockRender))),MenuLinkBlock:t(()=>import("./blocks/service/MenuLinkBlock/render.js").then(e=>r(e.MenuLinkBlockRender))),OpeningHours:t(()=>import("./blocks/service/OpeningHours/render.js").then(e=>r(e.OpeningHoursRender))),RateTable:t(()=>import("./blocks/service/RateTable/render.js").then(e=>r(e.RateTableRender))),MessagingCards:t(()=>import("./blocks/service/MessagingCards/render.js").then(e=>r(e.MessagingCardsRender))),FooterMessaging:t(()=>import("./blocks/service/FooterMessaging/render.js").then(e=>r(e.FooterMessagingRender))),ContactCards:t(()=>import("./blocks/service/ContactCards/render.js").then(e=>r(e.ContactCardsRender))),RatingBlock:t(()=>import("./blocks/service/RatingBlock/render.js").then(e=>r(e.RatingBlockRender))),ReviewForm:t(()=>import("./blocks/service/ReviewForm/render.js").then(e=>r(e.ReviewFormRender))),Reviews:t(()=>import("./blocks/service/Reviews/render.js").then(e=>r(e.ReviewsRender))),[d]:t(()=>import("./blocks/service/SiteFooter/render.js").then(e=>r(e.SiteFooterRender))),[m]:t(()=>import("./blocks/service/SiteHeader/render.js").then(e=>r(e.SiteHeaderRender))),SubmitBox:t(()=>import("./blocks/service/SubmitBox/render.js").then(e=>r(e.SubmitBoxRender))),SubmitBuild:t(()=>import("./blocks/service/SubmitBuild/render.js").then(e=>r(e.SubmitBuildRender))),Subscribe:t(()=>import("./blocks/service/Subscribe/render.js").then(e=>r(e.SubscribeRender))),SubscribeBlogs:t(()=>import("./blocks/service/SubscribeBlogs/render.js").then(e=>r(e.SubscribeBlogsRender)))},c=Object.fromEntries(Object.entries(p).map(([e,n])=>[e,o=>i(n,{...o})]));export{c as LAZY_DRAWS};
1
+ import{jsx as i}from"react/jsx-runtime";import t from"next/dynamic";import{SITE_FOOTER_TYPE as d,SITE_HEADER_TYPE as m}from"efficient-web-builder/format/lib/document/section-groups";function r(e){return function(o){return e.render(o)}}const p={Banner:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Banner/render").then(e=>r(e.BannerRender))),Breadcrumb:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Breadcrumb/render").then(e=>r(e.BreadcrumbRender))),ButtonBlock:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/ButtonBlock/render").then(e=>r(e.ButtonBlockRender))),CardList:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/CardList/render").then(e=>r(e.CardListRender))),Cards:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Cards/render").then(e=>r(e.CardsRender))),CategoryBar:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/CategoryBar/render").then(e=>r(e.CategoryBarRender))),Chart:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Chart/render").then(e=>r(e.ChartRender))),Contents:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Contents/render").then(e=>r(e.ContentsRender))),ContactLocations:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/ContactLocations/render").then(e=>r(e.ContactLocationsRender))),LocationMap:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/LocationMap/render").then(e=>r(e.LocationMapRender))),CustomHTML:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/CustomHTML/render").then(e=>r(e.CustomHTMLRender))),Divider:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Divider/render").then(e=>r(e.DividerRender))),DocBody:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/DocBody/render").then(e=>r(e.DocBodyRender))),DocMasthead:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/DocMasthead/render").then(e=>r(e.DocMastheadRender))),DocMetaCards:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/DocMetaCards/render").then(e=>r(e.DocMetaCardsRender))),DocTabs:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/DocTabs/render").then(e=>r(e.DocTabsRender))),Eyebrow:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Eyebrow/render").then(e=>r(e.EyebrowRender))),FAQ:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/FAQ/render").then(e=>r(e.FAQRender))),FeaturedCover:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/FeaturedCover/render").then(e=>r(e.FeaturedCoverRender))),Flex:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Flex/render").then(e=>r(e.FlexRender))),Footprint:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Footprint/render").then(e=>r(e.FootprintRender))),Grid:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Grid/render").then(e=>r(e.GridRender))),Heading:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Heading/render").then(e=>r(e.HeadingRender))),Hero:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Hero/render").then(e=>r(e.HeroRender))),HeroGroup:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/HeroGroup/render").then(e=>r(e.HeroGroupRender))),HeroSingle:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/HeroSingle/render").then(e=>r(e.HeroSingleRender))),HeroSlide:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/HeroSlide/render").then(e=>r(e.HeroSlideRender))),HostPart:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/HostPart/render").then(e=>r(e.HostPartRender))),ImageBlock:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/ImageBlock/render").then(e=>r(e.ImageBlockRender))),Integrations:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Integrations/render").then(e=>r(e.IntegrationsRender))),IntroBleed:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/IntroBleed/render").then(e=>r(e.IntroBleedRender))),Countdown:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Countdown/render").then(e=>r(e.CountdownRender))),KeyFeatures:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/KeyFeatures/render").then(e=>r(e.KeyFeaturesRender))),ListSearch:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/ListSearch/render").then(e=>r(e.ListSearchRender))),LogoBlock:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/LogoBlock/render").then(e=>r(e.LogoBlockRender))),Logos:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Logos/render").then(e=>r(e.LogosRender))),LongRead:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/LongRead/render").then(e=>r(e.LongReadRender))),Manifesto:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Manifesto/render").then(e=>r(e.ManifestoRender))),Masthead:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Masthead/render").then(e=>r(e.MastheadRender))),Mockup:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Mockup/render").then(e=>r(e.MockupRender))),OrderSummary:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/OrderSummary/render").then(e=>r(e.OrderSummaryRender))),ParagraphsA:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/ParagraphsA/render").then(e=>r(e.ParagraphsARender))),PaymentBadges:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/PaymentBadges/render").then(e=>r(e.PaymentBadgesRender))),PostCard:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/PostCard/render").then(e=>r(e.PostCardRender))),ProcessSteps:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/ProcessSteps/render").then(e=>r(e.ProcessStepsRender))),Prose:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Prose/render").then(e=>r(e.ProseRender))),SectionHeader:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/SectionHeader/render").then(e=>r(e.SectionHeaderRender))),Series:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Series/render").then(e=>r(e.SeriesRender))),Spacer:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Spacer/render").then(e=>r(e.SpacerRender))),SpecStrip:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/SpecStrip/render").then(e=>r(e.SpecStripRender))),Split:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Split/render").then(e=>r(e.SplitRender))),Stats:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Stats/render").then(e=>r(e.StatsRender))),StatsParagraph:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/StatsParagraph/render").then(e=>r(e.StatsParagraphRender))),Testimonials:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Testimonials/render").then(e=>r(e.TestimonialsRender))),Text:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Text/render").then(e=>r(e.TextRender))),Ticker:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Ticker/render").then(e=>r(e.TickerRender))),Timeline:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/Timeline/render").then(e=>r(e.TimelineRender))),TimelineTrack:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/TimelineTrack/render").then(e=>r(e.TimelineTrackRender))),TitleWithButtons:t(()=>import("efficient-web-builder/render/lib/document/blocks/general/TitleWithButtons/render").then(e=>r(e.TitleWithButtonsRender))),AccountBlock:t(()=>import("./blocks/commerce/AccountBlock/render.js").then(e=>r(e.AccountBlockRender))),AlloyWheelsListing:t(()=>import("./blocks/commerce/AlloyWheelsListing/render.js").then(e=>r(e.AlloyWheelsListingRender))),BundleOffer:t(()=>import("./blocks/commerce/BundleOffer/render.js").then(e=>r(e.BundleOfferRender))),CartBlock:t(()=>import("./blocks/commerce/CartBlock/render.js").then(e=>r(e.CartBlockRender))),CatalogFilterBar:t(()=>import("./blocks/commerce/CatalogFilterBar/render.js").then(e=>r(e.CatalogFilterBarRender))),CheckoutCTA:t(()=>import("./blocks/commerce/CheckoutCTA/render.js").then(e=>r(e.CheckoutCTARender))),CollectionCard:t(()=>import("./blocks/commerce/CollectionCard/render.js").then(e=>r(e.CollectionCardRender))),Collections:t(()=>import("./blocks/commerce/Collections/render.js").then(e=>r(e.CollectionsRender))),CompatibleTyres:t(()=>import("./blocks/commerce/CompatibleTyres/render.js").then(e=>r(e.CompatibleTyresRender))),CountrySwitchBlock:t(()=>import("./blocks/commerce/CountrySwitchBlock/render.js").then(e=>r(e.CountrySwitchBlockRender))),DeliveryOptions:t(()=>import("./blocks/commerce/DeliveryOptions/render.js").then(e=>r(e.DeliveryOptionsRender))),DetailRows:t(()=>import("./blocks/commerce/DetailRows/render.js").then(e=>r(e.DetailRowsRender))),EuTyreLabel:t(()=>import("./blocks/commerce/EuTyreLabel/render.js").then(e=>r(e.EuTyreLabelRender))),EuTyreLabelBlock:t(()=>import("./blocks/commerce/EuTyreLabelBlock/render.js").then(e=>r(e.EuTyreLabelBlockRender))),WheelDiagram:t(()=>import("./blocks/commerce/WheelDiagram/render.js").then(e=>r(e.WheelDiagramRender))),FitmentFinder:t(()=>import("./blocks/commerce/FitmentFinder/render.js").then(e=>r(e.FitmentFinderRender))),FitmentTable:t(()=>import("./blocks/commerce/FitmentTable/render.js").then(e=>r(e.FitmentTableRender))),Gallery:t(()=>import("./blocks/commerce/Gallery/render.js").then(e=>r(e.GalleryRender))),GalleryB:t(()=>import("./blocks/commerce/GalleryB/render.js").then(e=>r(e.GalleryBRender))),GalleryItem:t(()=>import("./blocks/commerce/GalleryItem/render.js").then(e=>r(e.GalleryItemRender))),Header:t(()=>import("./blocks/commerce/Header/render.js").then(e=>r(e.HeaderRender))),ProductGrid:t(()=>import("./blocks/commerce/ProductGrid/render.js").then(e=>r(e.ProductGridRender))),ProductGallery:t(()=>import("./blocks/commerce/ProductGallery/render.js").then(e=>r(e.ProductGalleryRender))),ProductHero:t(()=>import("./blocks/commerce/ProductHero/render.js").then(e=>r(e.ProductHeroRender))),ProductRef:t(()=>import("./blocks/commerce/ProductRef/render.js").then(e=>r(e.ProductRefRender))),RelatedProducts:t(()=>import("./blocks/commerce/RelatedProducts/render.js").then(e=>r(e.RelatedProductsRender))),SearchBlock:t(()=>import("./blocks/commerce/SearchBlock/render.js").then(e=>r(e.SearchBlockRender))),SpecTable:t(()=>import("./blocks/commerce/SpecTable/render.js").then(e=>r(e.SpecTableRender))),ThemeSwitchBlock:t(()=>import("./blocks/commerce/ThemeSwitchBlock/render.js").then(e=>r(e.ThemeSwitchBlockRender))),TyreFitment:t(()=>import("./blocks/commerce/TyreFitment/render.js").then(e=>r(e.TyreFitmentRender))),TyreSizes:t(()=>import("./blocks/commerce/TyreSizes/render.js").then(e=>r(e.TyreSizesRender))),ProductPrice:t(()=>import("./blocks/commerce/ProductPrice/render.js").then(e=>r(e.ProductPriceRender))),ProductBuyButton:t(()=>import("./blocks/commerce/ProductBuyButton/render.js").then(e=>r(e.ProductBuyButtonRender))),ProductColour:t(()=>import("./blocks/commerce/ProductColour/render.js").then(e=>r(e.ProductColourRender))),ProductSize:t(()=>import("./blocks/commerce/ProductSize/render.js").then(e=>r(e.ProductSizeRender))),FilterBlock:t(()=>import("./blocks/commerce/FilterBlock/render.js").then(e=>r(e.FilterBlockRender))),FilterChipsBlock:t(()=>import("./blocks/commerce/FilterChipsBlock/render.js").then(e=>r(e.FilterChipsBlockRender))),FitmentPicker:t(()=>import("./blocks/commerce/FitmentPicker/render.js").then(e=>r(e.FitmentPickerRender))),StockFitment:t(()=>import("./blocks/commerce/StockFitment/render.js").then(e=>r(e.StockFitmentRender))),ProductPicture:t(()=>import("./blocks/commerce/ProductPicture/render.js").then(e=>r(e.ProductPictureRender))),ProductSpecs:t(()=>import("./blocks/commerce/ProductSpecs/render.js").then(e=>r(e.ProductSpecsRender))),ProductBuy:t(()=>import("./blocks/commerce/ProductBuy/render.js").then(e=>r(e.ProductBuyRender))),ProductEyebrow:t(()=>import("./blocks/commerce/ProductEyebrow/render.js").then(e=>r(e.ProductEyebrowRender))),ProductName:t(()=>import("./blocks/commerce/ProductName/render.js").then(e=>r(e.ProductNameRender))),AppointmentBooking:t(()=>import("./blocks/service/AppointmentBooking/render.js").then(e=>r(e.AppointmentBookingRender))),BookingBox:t(()=>import("./blocks/service/BookingBox/render.js").then(e=>r(e.BookingBoxRender))),ContactRouting:t(()=>import("./blocks/service/ContactRouting/render.js").then(e=>r(e.ContactRoutingRender))),DealerFinder:t(()=>import("./blocks/service/DealerFinder/render.js").then(e=>r(e.DealerFinderRender))),Events:t(()=>import("./blocks/service/Events/render.js").then(e=>r(e.EventsRender))),Footer:t(()=>import("./blocks/service/Footer/render.js").then(e=>r(e.FooterRender))),FooterDivider:t(()=>import("./blocks/service/FooterDivider/render.js").then(e=>r(e.FooterDividerRender))),FooterEmailSignup:t(()=>import("./blocks/service/FooterEmailSignup/render.js").then(e=>r(e.FooterEmailSignupRender))),FooterGroup:t(()=>import("./blocks/service/FooterGroup/render.js").then(e=>r(e.FooterGroupRender))),FooterLogo:t(()=>import("./blocks/service/FooterLogo/render.js").then(e=>r(e.FooterLogoRender))),FooterMenu:t(()=>import("./blocks/service/FooterMenu/render.js").then(e=>r(e.FooterMenuRender))),ArticleBody:t(()=>import("./blocks/service/ArticleBody/render.js").then(e=>r(e.ArticleBodyRender))),FooterSocial:t(()=>import("./blocks/service/FooterSocial/render.js").then(e=>r(e.FooterSocialRender))),FooterPayment:t(()=>import("./blocks/service/FooterPayment/render.js").then(e=>r(e.FooterPaymentRender))),FooterText:t(()=>import("./blocks/service/FooterText/render.js").then(e=>r(e.FooterTextRender))),Form:t(()=>import("./blocks/service/Form/render.js").then(e=>r(e.FormRender))),LegalLineBlock:t(()=>import("./blocks/service/LegalLineBlock/render.js").then(e=>r(e.LegalLineBlockRender))),MenuLinkBlock:t(()=>import("./blocks/service/MenuLinkBlock/render.js").then(e=>r(e.MenuLinkBlockRender))),OpeningHours:t(()=>import("./blocks/service/OpeningHours/render.js").then(e=>r(e.OpeningHoursRender))),RateTable:t(()=>import("./blocks/service/RateTable/render.js").then(e=>r(e.RateTableRender))),MessagingCards:t(()=>import("./blocks/service/MessagingCards/render.js").then(e=>r(e.MessagingCardsRender))),FooterMessaging:t(()=>import("./blocks/service/FooterMessaging/render.js").then(e=>r(e.FooterMessagingRender))),ContactCards:t(()=>import("./blocks/service/ContactCards/render.js").then(e=>r(e.ContactCardsRender))),RatingBlock:t(()=>import("./blocks/service/RatingBlock/render.js").then(e=>r(e.RatingBlockRender))),ReviewForm:t(()=>import("./blocks/service/ReviewForm/render.js").then(e=>r(e.ReviewFormRender))),Reviews:t(()=>import("./blocks/service/Reviews/render.js").then(e=>r(e.ReviewsRender))),[d]:t(()=>import("./blocks/service/SiteFooter/render.js").then(e=>r(e.SiteFooterRender))),[m]:t(()=>import("./blocks/service/SiteHeader/render.js").then(e=>r(e.SiteHeaderRender))),SubmitBox:t(()=>import("./blocks/service/SubmitBox/render.js").then(e=>r(e.SubmitBoxRender))),SubmitBuild:t(()=>import("./blocks/service/SubmitBuild/render.js").then(e=>r(e.SubmitBuildRender))),Subscribe:t(()=>import("./blocks/service/Subscribe/render.js").then(e=>r(e.SubscribeRender))),SubscribeBlogs:t(()=>import("./blocks/service/SubscribeBlogs/render.js").then(e=>r(e.SubscribeBlogsRender)))},c=Object.fromEntries(Object.entries(p).map(([e,n])=>[e,o=>i(n,{...o})]));export{c as LAZY_DRAWS};
@@ -1 +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
+ import{registerSectionToBox as d}from"efficient-web-builder/render/lib/sections/section-to-box";import{DIM as m,DROP_COMMON as E,DROP_SIDE_PADDING as T,FOLLOW_THE_BOX as _,INNER_BOX as h,SAME_KEYS as L,SECTION_BOX as O,TEXT as r,wrapperPad as g,wrapperPadKeys as l}from"efficient-web-builder/render/lib/document/blocks/general/section-to-box-row-parts";import{token as S}from"efficient-web-builder/format/lib/document/seed-parts";import{fluidToken as P}from"efficient-web-builder/render/lib/document/blocks/general/section-head-looks";import{PAGE_TITLE_LEVEL_PROP as y,pageTitleDemoted as n}from"efficient-web-builder/format/lib/document/one-h1";import{CARD_TEMPLATE_SLOT as A,templateOnInsert as I,templateOnRead as c}from"efficient-web-builder/format/lib/content/card-template";import{FACET_TEMPLATE_SLOT as f}from"../content/facet-row-seed.js";import{RAIL_HEAD_TEMPLATE_SLOT as k,RAIL_TEMPLATE_SLOT as b}from"../content/rail-row-seed.js";import"./card-templates.js";import{ALLOY_WHEELS_LISTING_TYPE as D}from"./document-nodes.js";const p={top:40,bottom:40,topPhone:40,bottomPhone:40},i={textStyle:"heading-1",...P("headingMedium",28,4,40),lineHeight:1.05,letterSpacing:-.02},x=["heading","intro"],s=[A,f,b,k];function N(e,t){const a=(t?I:c)(D,e);return Object.fromEntries(s.map(o=>[o,a[o]]))}const M=()=>({name:"List",boxProps:e=>({...O,direction:"column",gap:24,gapPhone:24,...g(e,p)}),box:[...L,...l(p)],parts:[{kind:"group",name:"Heading",props:{...h,gap:8,gapPhone:8},parts:[{kind:"text",key:"heading",role:"heading",props:{...r,tag:"h1"},style:i,when:e=>!n(e)},{kind:"text",key:"heading",role:"heading",props:{...r,tag:"h2"},style:i,when:n},{kind:"text",key:"intro",role:"body",props:m,style:{textStyle:"body-1",...S("body",15)}}]},{kind:"core",keep:"rest",props:_,derive:{reads:[...s],props:(e,t)=>N(e,t.press===!0)}}],pressKeepsEmpty:x,drop:{...E,...T,[y]:"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:M()});export{x as LISTING_HEAD_ROWS};
@@ -1 +1,3 @@
1
1
  export declare const FIELD_INPUT_CLASS = "w-full border-2 border-line bg-bg px-4 py-4 font-display text-[17px] tracking-[-0.005em] text-fg outline-none transition-colors placeholder:text-fg-dim hover:border-fg-dim focus:border-accent";
2
+ export declare const ROW_INPUT_CLASS = "w-0 min-w-0 flex-1";
3
+ export declare const ROW_INPUT_WRAP_CLASS = "w-0 min-w-[7rem] flex-1";
@@ -1 +1 @@
1
- const e="w-full border-2 border-line bg-bg px-4 py-4 font-display text-[17px] tracking-[-0.005em] text-fg outline-none transition-colors placeholder:text-fg-dim hover:border-fg-dim focus:border-accent";export{e as FIELD_INPUT_CLASS};
1
+ const e="w-full border-2 border-line bg-bg px-4 py-4 font-display text-[17px] tracking-[-0.005em] text-fg outline-none transition-colors placeholder:text-fg-dim hover:border-fg-dim focus:border-accent",o="w-0 min-w-0 flex-1",t="w-0 min-w-[7rem] flex-1";export{e as FIELD_INPUT_CLASS,o as ROW_INPUT_CLASS,t as ROW_INPUT_WRAP_CLASS};
@@ -19,6 +19,11 @@ export type ListingFilter = {
19
19
  param: string;
20
20
  value: string;
21
21
  } | null;
22
+ export declare function linkParts(url: string): {
23
+ path: string;
24
+ query: string;
25
+ hash: string;
26
+ };
22
27
  export declare function readListingFilter(url: string): ListingFilter;
23
28
  export declare function withListingFilter(url: string, filter: ListingFilter): string;
24
29
  export declare function listingTarget(url: string, listingPaths: readonly string[]): string;
@@ -1 +1 @@
1
- import{isSafeLinkHref as I}from"efficient-shell/markup";import{itemKind as m,PLP_KIND_LABELS as x,PLP_KINDS as A,resolvePlpKinds as y}from"../catalog/plp-item.js";import{inferLinkKind as F,linkPickerSetup as S}from"efficient-web-builder/format/lib/links/link-picker-setup";import{pagePath as u,wheelPath as E}from"efficient-web-builder/format/lib/links/page-link-rules";import{buildPlpFacets as T,EMPTY_PLP_FILTERS as R,listingHiddenFacets as b,PLP_PARAM as P,PLP_TYPE_PARAM as g}from"../wheels/plp-filters.js";import{FILTER_BLOCK_TYPE as U,documentNodes as v}from"../document/document-nodes.js";import{ALLOY_WHEELS_LISTING_TYPE as N}from"../wheels/plp-hydrate.js";import{LINK_KINDS as ne,anchorPath as re,linkPagePath as ie,linkKindsFor as oe,pageAnchors as se,pagePath as le,postPath as ae,wheelPath as ce}from"efficient-web-builder/format/lib/links/page-link-rules";function C(e){return I(e.trim())}const f="/wheels",p="Products";function K(e,t){return t>1?`${p} · ${e}`:p}function L(...e){for(const t of[N,U])for(const r of e){const n=v({content:r?.content}).find(i=>i.type===t);if(n)return n.props??{}}return null}function d(...e){return L(...e)!==null}function O(e,t){const r=e.filter(n=>d(...n.docs)).map(n=>u(n.slug));return t.fallback&&!r.includes(f)?[...r,f]:r}const h=[g,...Object.entries(P).filter(([e])=>e!=="tyreSizes").map(([,e])=>e)];function _(e){const t=e.indexOf("#"),r=t===-1?"":e.slice(t),n=t===-1?e:e.slice(0,t),i=n.indexOf("?");return{path:i===-1?n:n.slice(0,i),query:i===-1?"":n.slice(i+1),hash:r}}function $(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return e}}function Y(e){const t=new URLSearchParams(_(e).query);for(const r of h){const n=t.get(r);if(n)return{param:r,value:n}}return null}function k(e,t){const{path:r,query:n,hash:i}=_(e),l=n.split("&").filter(s=>s&&!h.includes($(s.split("=")[0])));return t?.value&&l.push(`${encodeURIComponent(t.param)}=${encodeURIComponent(t.value)}`),`${r}${l.length?`?${l.join("&")}`:""}${i}`}function D(e,t){const r=k(e,null);return t.includes(r)?r:e}function V(e,t,r=[]){return F(e,t,{listingPaths:r,targetOf:n=>D(n,r)})}function X(e){return Array.isArray(e)?e.filter(t=>typeof t?.kind=="string"&&typeof t.field_key=="string").map(t=>({kind:t.kind,fieldKey:t.field_key,...typeof t.filter=="boolean"?{filter:t.filter}:{},filterOrder:t.filter_order??null})):[]}const B="Product type",G="AUD";function q(e,t){const r=t.listing??{},n=y(r.kinds),i=e.filter(o=>n.includes(m(o))),l=b(r),s=T(i,R,G,n,t.fieldUsage).filter(o=>!l.includes(o.key)).map(o=>({param:P[o.key],label:o.label,values:o.options.filter(c=>!c.value.includes(",")).map(c=>({value:c.value,label:c.label}))})).filter(o=>o.values.length>0),a=A.filter(o=>n.includes(o)&&i.some(c=>m(c)===o));return a.length>1&&s.unshift({param:g,label:B,values:a.map(o=>({value:o,label:x[o]}))}),s}function H(e){return t=>{const r=O(t,{fallback:e.offersCommerce}),n=t.filter(i=>d(...i.docs)).length;return{listingPaths:r,pageOptions:i=>{const l=i.map(s=>{const a=t.find(o=>u(o.slug)===s.value);return a&&d(...a.docs)?{...s,label:K(a.title,n)}:s});return n===0&&e.offersCommerce&&!l.some(s=>s.value===f)&&l.push({value:f,label:p}),l},filtersFor:i=>{if(!r.includes(i))return null;const l=t.find(s=>u(s.slug)===i);return q(e.catalogue,{listing:l?L(...l.docs):null,fieldUsage:e.fieldUsage})},readFilter:Y,withFilter:k}}}function Z(e){const t=H({catalogue:e.catalogue,fieldUsage:e.fieldUsage,offersCommerce:e.offers.offersCommerce})(e.pages),r=S({pages:e.pages,posts:e.posts,products:e.products.map(n=>({href:E(n.slug),name:n.name||n.slug})),offers:e.offers},t);return{...r,rules:{...r.rules,isSafe:C},filtersFor:r.filtersFor??(()=>null)}}export{f as BUILT_IN_LISTING_PATH,ne as LINK_KINDS,h as LISTING_FILTER_PARAMS,p as LISTING_PAGE_LABEL,B as PRODUCT_TYPE_FILTER_LABEL,re as anchorPath,X as fieldUsageFromAdminRows,V as inferLinkKind,d as isProductListingPage,C as isSafeLink,oe as linkKindsFor,ie as linkPagePath,Z as linkPickerSetup,q as listingFilterFields,L as listingNode,K as listingPageLabel,D as listingTarget,se as pageAnchors,le as pagePath,ae as postPath,O as productListingPaths,Y as readListingFilter,H as storefrontLinkFilters,ce as wheelPath,k as withListingFilter};
1
+ import{isSafeLinkHref as x}from"efficient-shell/markup";import{itemKind as m,PLP_KIND_LABELS as I,PLP_KINDS as A,resolvePlpKinds as y}from"../catalog/plp-item.js";import{inferLinkKind as F,linkPickerSetup as S}from"efficient-web-builder/format/lib/links/link-picker-setup";import{pagePath as u,wheelPath as E}from"efficient-web-builder/format/lib/links/page-link-rules";import{buildPlpFacets as T,EMPTY_PLP_FILTERS as R,listingHiddenFacets as b,PLP_PARAM as P,PLP_TYPE_PARAM as g}from"../wheels/plp-filters.js";import{ALLOY_WHEELS_LISTING_TYPE as U,FILTER_BLOCK_TYPE as v,documentNodes as N}from"../document/document-nodes.js";import{LINK_KINDS as te,anchorPath as ne,linkPagePath as re,linkKindsFor as ie,pageAnchors as oe,pagePath as se,postPath as le,wheelPath as ae}from"efficient-web-builder/format/lib/links/page-link-rules";function C(e){return x(e.trim())}const f="/wheels",p="Products";function K(e,t){return t>1?`${p} · ${e}`:p}function L(...e){for(const t of[U,v])for(const r of e){const n=N({content:r?.content}).find(i=>i.type===t);if(n)return n.props??{}}return null}function d(...e){return L(...e)!==null}function O(e,t){const r=e.filter(n=>d(...n.docs)).map(n=>u(n.slug));return t.fallback&&!r.includes(f)?[...r,f]:r}const h=[g,...Object.entries(P).filter(([e])=>e!=="tyreSizes").map(([,e])=>e)];function _(e){const t=e.indexOf("#"),r=t===-1?"":e.slice(t),n=t===-1?e:e.slice(0,t),i=n.indexOf("?");return{path:i===-1?n:n.slice(0,i),query:i===-1?"":n.slice(i+1),hash:r}}function $(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return e}}function Y(e){const t=new URLSearchParams(_(e).query);for(const r of h){const n=t.get(r);if(n)return{param:r,value:n}}return null}function k(e,t){const{path:r,query:n,hash:i}=_(e),l=n.split("&").filter(s=>s&&!h.includes($(s.split("=")[0])));return t?.value&&l.push(`${encodeURIComponent(t.param)}=${encodeURIComponent(t.value)}`),`${r}${l.length?`?${l.join("&")}`:""}${i}`}function D(e,t){const r=k(e,null);return t.includes(r)?r:e}function Q(e,t,r=[]){return F(e,t,{listingPaths:r,targetOf:n=>D(n,r)})}function V(e){return Array.isArray(e)?e.filter(t=>typeof t?.kind=="string"&&typeof t.field_key=="string").map(t=>({kind:t.kind,fieldKey:t.field_key,...typeof t.filter=="boolean"?{filter:t.filter}:{},filterOrder:t.filter_order??null})):[]}const B="Product type",G="AUD";function q(e,t){const r=t.listing??{},n=y(r.kinds),i=e.filter(o=>n.includes(m(o))),l=b(r),s=T(i,R,G,n,t.fieldUsage).filter(o=>!l.includes(o.key)).map(o=>({param:P[o.key],label:o.label,values:o.options.filter(c=>!c.value.includes(",")).map(c=>({value:c.value,label:c.label}))})).filter(o=>o.values.length>0),a=A.filter(o=>n.includes(o)&&i.some(c=>m(c)===o));return a.length>1&&s.unshift({param:g,label:B,values:a.map(o=>({value:o,label:I[o]}))}),s}function H(e){return t=>{const r=O(t,{fallback:e.offersCommerce}),n=t.filter(i=>d(...i.docs)).length;return{listingPaths:r,pageOptions:i=>{const l=i.map(s=>{const a=t.find(o=>u(o.slug)===s.value);return a&&d(...a.docs)?{...s,label:K(a.title,n)}:s});return n===0&&e.offersCommerce&&!l.some(s=>s.value===f)&&l.push({value:f,label:p}),l},filtersFor:i=>{if(!r.includes(i))return null;const l=t.find(s=>u(s.slug)===i);return q(e.catalogue,{listing:l?L(...l.docs):null,fieldUsage:e.fieldUsage})},readFilter:Y,withFilter:k}}}function X(e){const t=H({catalogue:e.catalogue,fieldUsage:e.fieldUsage,offersCommerce:e.offers.offersCommerce})(e.pages),r=S({pages:e.pages,posts:e.posts,products:e.products.map(n=>({href:E(n.slug),name:n.name||n.slug})),offers:e.offers},t);return{...r,rules:{...r.rules,isSafe:C},filtersFor:r.filtersFor??(()=>null)}}export{f as BUILT_IN_LISTING_PATH,te as LINK_KINDS,h as LISTING_FILTER_PARAMS,p as LISTING_PAGE_LABEL,B as PRODUCT_TYPE_FILTER_LABEL,ne as anchorPath,V as fieldUsageFromAdminRows,Q as inferLinkKind,d as isProductListingPage,C as isSafeLink,ie as linkKindsFor,re as linkPagePath,_ as linkParts,X as linkPickerSetup,q as listingFilterFields,L as listingNode,K as listingPageLabel,D as listingTarget,oe as pageAnchors,se as pagePath,le as postPath,O as productListingPaths,Y as readListingFilter,H as storefrontLinkFilters,ae as wheelPath,k as withListingFilter};
@@ -0,0 +1,39 @@
1
+ import { type BandPad } from "efficient-web-builder/render/lib/content/section-padding";
2
+ export declare const FRAME_ROOM_DESKTOP_Y = "py-[120px]";
3
+ export declare const FRAME_ROOM_DESKTOP_BOTTOM = "pb-[120px]";
4
+ export declare const FRAME_PHONE_PX = 70;
5
+ export declare const FRAME_ROOM_PHONE_Y = "max-view-wide:py-[70px]";
6
+ export declare const FRAME_ROOM_PHONE_BOTTOM = "max-view-wide:pb-[70px]";
7
+ export declare const FRAME_ROOM_NO_TOP = "pt-0";
8
+ export declare const FRAME_ROOM_NO_TOP_PHONE = "max-view-wide:pt-0";
9
+ export declare const FRAME_ROOM_Y = "py-[120px] max-view-wide:py-[70px]";
10
+ export declare const FRAME_ROOM_OWN_BOX = "pt-0 pb-[120px] max-view-wide:pt-0 max-view-wide:pb-[70px]";
11
+ export declare const FRAME_ROOM_PRODUCT_GRID = "pt-[var(--pg-pt)] pb-[120px]";
12
+ export declare const FRAME_ROOM_PRODUCT_GRID_PHONE = "max-view-wide:pt-[70px] max-view-wide:pb-[70px]";
13
+ export declare const FRAME_ROOM_COUNT = "py-[32px] max-view-wide:py-[24px]";
14
+ export declare const DETAIL_ROWS_ROOM: {
15
+ readonly top: 100;
16
+ readonly bottom: 100;
17
+ };
18
+ export declare const PRODUCT_GRID_ROOM: {
19
+ readonly top: 120;
20
+ readonly bottom: 120;
21
+ };
22
+ export declare const FRAME_120: {
23
+ readonly top: 120;
24
+ readonly bottom: 120;
25
+ };
26
+ export declare function bandPadProps(props: Record<string, unknown>): Record<string, unknown>;
27
+ type FramedBandPad = BandPad & {
28
+ attrs: Record<string, string>;
29
+ };
30
+ export declare function framedBandPad(pads: Record<string, unknown> | undefined, frame: {
31
+ top: number;
32
+ bottom: number;
33
+ }, opts?: {
34
+ noTop?: boolean;
35
+ nonNegative?: boolean;
36
+ }): FramedBandPad;
37
+ export declare function withBandClasses(className: string, pad: BandPad): string;
38
+ export declare function headIsEmpty(num: unknown, title: unknown, linkText: unknown): boolean;
39
+ export {};
@@ -0,0 +1 @@
1
+ import{BAND_PAD_KEYS as r,BAND_TO_SECTION_PAD as m,SECTION_PAD_KEYS as c,bandPadAttrs as a}from"efficient-web-builder/render/lib/content/section-padding";import{finiteNumber as p}from"efficient-web-builder/format/lib/finite-number";import{EDGE_LINE_ATTRS as A}from"efficient-web-builder/format/lib/content/view-lines";const P="py-[120px]",R="pb-[120px]",l=70,T="max-view-wide:py-[70px]",u="max-view-wide:pt-[70px]",E="max-view-wide:pb-[70px]",N="pt-0",b="max-view-wide:pt-0",I=`${P} ${T}`,S=`${N} ${R} ${b} ${E}`,B=`pt-[var(--pg-pt)] ${R}`,C=`${u} ${E}`,H="py-[32px] max-view-wide:py-[24px]",g={top:100,bottom:100},Y={top:120,bottom:120},k={top:120,bottom:120},O={top:c.top,bottom:c.bottom},D=[...m.map(([t])=>t),O.top,O.bottom];function v(t){const o={};for(const n of D)t[n]!==void 0&&(o[n]=t[n]);return o}function G(t,o,n={}){const e=n.nonNegative?F(t??{}):t??{},d={top:p(e[O.top])===void 0?void 0:o.top,bottom:p(e[O.bottom])===void 0?void 0:o.bottom},s=n.noTop&&p(e[r.top])===void 0,_=a(e,d,{noTop:s}),x=Object.fromEntries(Object.entries(_.style).filter(([f,M])=>M!==void 0&&!(s&&f==="paddingTop")));return{..._,style:x,attrs:_.className?A:{}}}function F(t){const o={...t};for(const n of[r.top,r.bottom]){const e=p(o[n]);e!==void 0&&e<0&&delete o[n]}return o}function K(t,o){return o.className?`${t} ${o.className}`:t}function i(t){return t==null||t===!1||typeof t=="string"&&!t.trim()}function U(t,o,n){return i(t)&&i(o)&&i(n)}export{g as DETAIL_ROWS_ROOM,k as FRAME_120,l as FRAME_PHONE_PX,H as FRAME_ROOM_COUNT,R as FRAME_ROOM_DESKTOP_BOTTOM,P as FRAME_ROOM_DESKTOP_Y,N as FRAME_ROOM_NO_TOP,b as FRAME_ROOM_NO_TOP_PHONE,S as FRAME_ROOM_OWN_BOX,E as FRAME_ROOM_PHONE_BOTTOM,T as FRAME_ROOM_PHONE_Y,B as FRAME_ROOM_PRODUCT_GRID,C as FRAME_ROOM_PRODUCT_GRID_PHONE,I as FRAME_ROOM_Y,Y as PRODUCT_GRID_ROOM,v as bandPadProps,G as framedBandPad,U as headIsEmpty,K as withBandClasses};
@@ -1,4 +1,4 @@
1
- import { type GalleryLayoutKey } from "efficient-web-builder/format/lib/content/gallery-layout";
1
+ import { type GalleryLayout } from "efficient-web-builder/format/lib/content/gallery-layout";
2
2
  export interface GalleryTile {
3
3
  id: string;
4
4
  tag: string;
@@ -22,6 +22,6 @@ export interface WallSpan {
22
22
  colPhone: number;
23
23
  rowPhone: number;
24
24
  }
25
- export declare function wallSpanAt(key: GalleryLayoutKey, at: number, count: number): WallSpan;
25
+ export declare function wallSpanAt(layout: GalleryLayout, at: number, count: number): WallSpan;
26
26
  export declare const WALL_PLACED_CELL = "sf-wall-placed";
27
27
  export declare const WALL_PLACED_CSS: string;
@@ -1 +1 @@
1
- import{GALLERY_LAYOUTS as i,galleryTailSpan as d}from"efficient-web-builder/format/lib/content/gallery-layout";const _=["newest","name"],E={newest:"Newest",name:"Name A–Z"},S={tag:null,sort:"newest"};function h(t){const n=[];for(const e of t){const o=e.tag.trim();o&&!n.includes(o)&&n.push(o)}return n}function f(t,n){return t!==null&&h(n).includes(t)?t:null}function T(t,n){return f(t.tag,n)===null&&t.sort==="newest"}function P(t,n){const e=f(n.tag,t),o=e===null?[...t]:t.filter(r=>r.tag.trim()===e);return n.sort==="name"&&o.sort((r,a)=>r.name.localeCompare(a.name)),o.map(r=>r.id)}function O(t,n,e){if(!Object.hasOwn(i,t))return{col:1,row:1,colPhone:1,rowPhone:1};const o=i[t],r=s=>{const l=(s?o.leadPhone:o.lead)??[],c=s?o.phone:o.desktop;if(n<l.length)return[l[n][0],l[n][1]];const p=(e-l.length)%c.length;if(p>0&&n>=e-p)return[d(o,s),1];const u=c[(n-l.length)%c.length];return[u[0],u[1]]},[a,g]=r(!1),[w,L]=r(!0);return{col:a,row:g,colPhone:w,rowPhone:L}}const m="sf-wall-placed",R=`.${m}{grid-column:span var(--sf-wall-c) !important;grid-row:span var(--sf-wall-r) !important}@media (max-width:800px){.${m}{grid-column:span var(--sf-wall-cp) !important;grid-row:span var(--sf-wall-rp) !important}}`;export{S as EMPTY_GALLERY_TOOLBAR,_ as GALLERY_SORT_KEYS,E as GALLERY_SORT_LABELS,m as WALL_PLACED_CELL,R as WALL_PLACED_CSS,f as clampGalleryTag,P as galleryShownIds,h as galleryTags,T as galleryToolbarIdle,O as wallSpanAt};
1
+ import{galleryTailSpan as w}from"efficient-web-builder/format/lib/content/gallery-layout";const A=["newest","name"],h={newest:"Newest",name:"Name A–Z"},_={tag:null,sort:"newest"};function L(n){const t=[];for(const e of n){const r=e.tag.trim();r&&!t.includes(r)&&t.push(r)}return t}function m(n,t){return n!==null&&L(t).includes(n)?n:null}function E(n,t){return m(n.tag,t)===null&&n.sort==="newest"}function S(n,t){const e=m(t.tag,n),r=e===null?[...n]:n.filter(o=>o.tag.trim()===e);return t.sort==="name"&&r.sort((o,a)=>o.name.localeCompare(a.name)),r.map(o=>o.id)}function T(n,t,e){const r=s=>{const l=(s?n.leadPhone:n.lead)??[],c=s?n.phone:n.desktop;if(t<l.length)return[l[t][0],l[t][1]];const p=(e-l.length)%c.length;if(p>0&&t>=e-p)return[w(n,s),1];const i=c[(t-l.length)%c.length];return[i[0],i[1]]},[o,a]=r(!1),[f,g]=r(!0);return{col:o,row:a,colPhone:f,rowPhone:g}}const u="sf-wall-placed",R=`.${u}{grid-column:span var(--sf-wall-c) !important;grid-row:span var(--sf-wall-r) !important}@media (max-width:800px){.${u}{grid-column:span var(--sf-wall-cp) !important;grid-row:span var(--sf-wall-rp) !important}}`;export{_ as EMPTY_GALLERY_TOOLBAR,A as GALLERY_SORT_KEYS,h as GALLERY_SORT_LABELS,u as WALL_PLACED_CELL,R as WALL_PLACED_CSS,m as clampGalleryTag,S as galleryShownIds,L as galleryTags,E as galleryToolbarIdle,T as wallSpanAt};
@@ -1 +1 @@
1
- import{sourcedRows as E}from"efficient-web-builder/format/lib/content/block-sources";import{say as s}from"efficient-web-builder/format/lib/editor-words";import{resolveGalleryLayout as _}from"efficient-web-builder/format/lib/content/gallery-layout";import{MEDIA_ZONES as O}from"efficient-easel/screen/lib/content/media-zones";import{servedListOf as P,servedRowLists as T,servedWords as R}from"../content/served-lists.js";const U="product-pictures",b="all",D=O.filter(e=>e!=="rendering"&&e!=="videos"),S="twoThenThreesPhoto";function G(e){const o=typeof e.layout=="string"&&e.layout?e.layout:void 0;return o&&_(o)||e.columns!=null&&e.columns!==""?o:S}const v=12,x=4,A=e=>Array.from({length:e},(o,n)=>({key:`sample-${n+1}`,process:s("Category"),eyebrow:s("Vehicle"),name:s("Product name"),meta:s("Finish")}));function N(e,o,n){const c=typeof n=="number"&&n>0?Math.floor(n):void 0,{rows:p,sample:f}=E(e,o,A(c??x)),y=f?null:T(e,t=>R(t.photos,v)),l=new Set,u=[];return p.forEach((t,m)=>{const r=t.cover??"";if(!f&&!r)return;const i=t.key||`row-${m+1}`;if(l.has(i))return;l.add(i);const a=P(y,t,m)??[],h=a[0]===r?a.slice(1):a.filter(d=>d!==r);u.push({image:r,photos:h.map(d=>({src:d})),href:t.href||void 0,process:t.process||void 0,eyebrow:t.eyebrow||void 0,name:t.name||void 0,meta:t.meta||void 0,tile:{id:i,tag:t.process??"",name:t.name??""}})}),c?u.slice(0,c):u}export{b as EVERY_IMAGE_ZONE,D as IMAGE_ZONES,S as PRODUCT_PICTURES_LAYOUT,U as PRODUCT_PICTURES_SOURCE,N as productPictureTiles,G as productPicturesLayout};
1
+ import{sourcedRows as E}from"efficient-web-builder/format/lib/content/block-sources";import{say as s}from"efficient-web-builder/format/lib/editor-words";import{resolveGalleryLayout as _}from"efficient-web-builder/format/lib/content/gallery-layout";import{MEDIA_ZONES as O}from"efficient-easel/screen/lib/content/media-zones";import{servedListOf as P,servedRowLists as T,servedWords as R}from"../content/served-lists.js";const U="product-pictures",b="all",D=O.filter(e=>e!=="rendering"&&e!=="videos"),S="twoThenThreesPhoto";function G(e){const o=typeof e.layout=="string"&&e.layout?e.layout:void 0;return o&&_({layout:o})||e.columns!=null&&e.columns!==""?o:S}const v=12,x=4,A=e=>Array.from({length:e},(o,n)=>({key:`sample-${n+1}`,process:s("Category"),eyebrow:s("Vehicle"),name:s("Product name"),meta:s("Finish")}));function N(e,o,n){const c=typeof n=="number"&&n>0?Math.floor(n):void 0,{rows:p,sample:f}=E(e,o,A(c??x)),y=f?null:T(e,t=>R(t.photos,v)),l=new Set,u=[];return p.forEach((t,m)=>{const r=t.cover??"";if(!f&&!r)return;const a=t.key||`row-${m+1}`;if(l.has(a))return;l.add(a);const i=P(y,t,m)??[],h=i[0]===r?i.slice(1):i.filter(d=>d!==r);u.push({image:r,photos:h.map(d=>({src:d})),href:t.href||void 0,process:t.process||void 0,eyebrow:t.eyebrow||void 0,name:t.name||void 0,meta:t.meta||void 0,tile:{id:a,tag:t.process??"",name:t.name??""}})}),c?u.slice(0,c):u}export{b as EVERY_IMAGE_ZONE,D as IMAGE_ZONES,S as PRODUCT_PICTURES_LAYOUT,U as PRODUCT_PICTURES_SOURCE,N as productPictureTiles,G as productPicturesLayout};
@@ -1 +1 @@
1
- import{EMPTY_PLP_FILTERS as h,plpFiltersToParams as d}from"./plp-filters.js";import{appendVehicleParams as g}from"./plp-vehicle-params.js";const x="The results link is off while the Lugs filter is on. The product listing page filters on bolt pattern and has no lug filter, so a shopper's lug choice could not be carried across — they would land on a wider set of products than they asked for. Turn Lugs off to use the results link.";function F(s){const t=[];return s.lugs!=null&&t.push("lugs"),t}function f(s){return s==="default"?"recommended":s}function m(s){return{...h,collections:s.process?[s.process]:[],diameters:s.size!=null?[s.size]:[],finishes:s.finish?[s.finish]:[],priceMin:s.priceMin,priceMax:s.priceMax,sort:f(s.sort)}}function P(s,t,l){const e=s.indexOf("#"),a=e===-1?"":s.slice(e),o=e===-1?s:s.slice(0,e),i=o.indexOf("?"),c=i===-1?o:o.slice(0,i),n=new URLSearchParams(i===-1?"":o.slice(i+1));for(const[u,p]of d(m(t)))n.set(u,p);g(n,l);const r=n.toString();return`${c}${r?`?${r}`:""}${a}`}export{x as RESULTS_LINK_BLOCKED_NOTE,m as catalogFiltersToListingFilters,P as listingLinkFromCatalogFilters,F as unmappableCatalogFacets};
1
+ import{EMPTY_PLP_FILTERS as u,plpFiltersToParams as p}from"./plp-filters.js";import{appendVehicleParams as h}from"./plp-vehicle-params.js";import{linkParts as f}from"../links/link-rules.js";const F="The results link is off while the Lugs filter is on. The product listing page filters on bolt pattern and has no lug filter, so a shopper's lug choice could not be carried across — they would land on a wider set of products than they asked for. Turn Lugs off to use the results link.";function P(e){const t=[];return e.lugs!=null&&t.push("lugs"),t}function g(e){return e==="default"?"recommended":e}function m(e){return{...u,collections:e.process?[e.process]:[],diameters:e.size!=null?[e.size]:[],finishes:e.finish?[e.finish]:[],priceMin:e.priceMin,priceMax:e.priceMax,sort:g(e.sort)}}function k(e,t,o){const{path:i,query:n,hash:l}=f(e),r=new URLSearchParams(n);for(const[a,c]of p(m(t)))r.set(a,c);h(r,o);const s=r.toString();return`${i}${s?`?${s}`:""}${l}`}export{F as RESULTS_LINK_BLOCKED_NOTE,m as catalogFiltersToListingFilters,k as listingLinkFromCatalogFilters,P as unmappableCatalogFacets};
@@ -98,8 +98,9 @@ export interface PlpChip {
98
98
  export declare function plpActiveChips(f: PlpFilterState, currency: Currency, formatMoney: (amount: number, currency: Currency) => string): PlpChip[];
99
99
  export declare const PLP_PARAM: Record<PlpFacetKey, string>;
100
100
  export declare const PLP_TYPE_PARAM = "type";
101
- export declare function plpFiltersFromParams(params: URLSearchParams): PlpFilterState;
101
+ export declare function plpFiltersFromParams(query: string | URLSearchParams): PlpFilterState;
102
102
  export declare function plpFiltersToParams(f: PlpFilterState): URLSearchParams;
103
+ export declare function plpFilterQuery(query: string | URLSearchParams): string;
103
104
  export declare function plpPageSequence(pageCount: number, page: number): (number | null)[];
104
105
  export interface PlpPageResult<T extends PlpItem = PlpItem> {
105
106
  items: T[];
@@ -1 +1 @@
1
- import{answerOrder as H,answersForKind as k,facetFieldKey as R,keepForFilter as J,NO_FIELD_ANSWERS as Q,orderByAnswers as ee}from"../content/field-usage.js";import{STOCK_WORDS as te}from"../content/stock-words.js";import{parseOption as ne}from"efficient-web-builder/format/lib/parse-option";import{comparePrice as L,FROM_PREFIX_START as re,priceIn as ie,withinPriceRange as se}from"./price-display.js";import{trimDecimal as oe,wheelSizeLabel as le}from"./spec-format.js";import{itemLugs as ce,lugFilterLabel as ue}from"./lug-count.js";import{itemBrand as z,itemCollections as ae,itemDiameters as pe,itemFinishFamilies as fe,itemFinishes as de,itemInStock as F,itemIsNew as E,itemKind as b,itemName as O,itemPcds as me,itemPrices as g,itemSpeedRatings as he,itemTyreSizes as _,itemTyreTypes as Se,PLP_ANY_TYPE_LABEL as ye,PLP_KIND_LABELS as N,PLP_KINDS as ge}from"../catalog/plp-item.js";import{parseTyreSize as Pe,tyreSizeLabel as I,tyreSizeLabels as xe,TYRE_SIZE_PARTS as S,TYRE_SIZE_PART_LABELS as we}from"../tyres/tyre-size.js";const Me={recommended:"Recommended","price-asc":"Price · low to high","price-desc":"Price · high to low",new:"Newest",name:"Name A–Z"},v=Object.keys(Me);function B(e){return ne(v,"recommended",e)}function be(e){return v.filter(t=>t!=="recommended"||e.length<=1)}function $e(e,t){const r=B(e);return be(t).includes(r)?r:"name"}const P=["tyreSizes","brands","finishes","diameters","collections","pcds","tyreTypes","speedRatings"],A={tyreSizes:["tyre"],brands:["alloy-wheel","tyre"],finishes:["alloy-wheel"],diameters:["alloy-wheel","tyre"],collections:["alloy-wheel"],pcds:["alloy-wheel"],tyreTypes:["tyre"],speedRatings:["tyre"]},_e={diameters:"tyreSizes"};function C(e){if(e.length===0)return[];const t=P.filter(r=>e.every(n=>A[r].includes(n)));return t.filter(r=>{const n=_e[r];return!n||!t.includes(n)})}function We(e,t){return t&&e.includes(t)?[t]:[...e]}function K(e){const t=new Set;for(const r of e)t.add(b(r));return[...t]}const Ze={tyreSizes:[],brands:[],finishes:[],diameters:[],collections:[],pcds:[],tyreTypes:[],speedRatings:[],priceMax:null,priceMin:null,inStockOnly:!1,kind:null,sort:"recommended",page:1};function je(e){return`${Ae(e.width)}×${e.diameter}`}function qe(e){return[...new Set((e.sizePairs??[]).map(t=>le(t.diameter,t.width)))]}function Ae(e){return oe(e)}function x(e,t,r,n=null,i="fail"){const s=b(e),o=l=>i==="fail"||(l==="lugs"?s==="alloy-wheel":A[l].includes(s));if(n!=="kind"&&t.kind&&s!==t.kind)return!1;for(const l of P){if(n===l)continue;const u=t[l];if(u.length===0||!o(l))continue;const f=u.map(String);if(!Y(e,l).some(a=>f.includes(a)))return!1}if(n!=="lugs"&&t.lugs&&t.lugs.length>0&&o("lugs")){const l=ce(e);if(l===null||!t.lugs.includes(l))return!1}return!(n!=="price"&&!se(g(e),r,t.priceMin??null,t.priceMax)||n!=="inStock"&&t.inStockOnly&&!F(e))}function Ue(e,t,r){return e.filter(n=>F(n)&&x(n,t,r,"inStock")).length}function D(e,t,r){const n=[...e],i=(o,l)=>O(o).localeCompare(O(l)),s=K(e).length>1;switch(t){case"price-asc":return n.sort((o,l)=>L(g(o),g(l),r,"asc"));case"price-desc":return n.sort((o,l)=>L(g(o),g(l),r,"desc"));case"name":return n.sort(i);case"new":return n.sort((o,l)=>{const u=(E(l)?1:0)-(E(o)?1:0);return u!==0||!s?u:i(o,l)});default:return n}}function Ve(e,t,r){return D(e.filter(n=>x(n,t,r)),t.sort,r)}function Xe(e,t,r){return D(e.filter(n=>x(n,t,r,null,"pass")),t.sort,r)}function Ge(e){return P.some(t=>e[t].length>0)||(e.lugs?.length??0)>0||e.priceMin!=null||e.priceMax!=null||e.inStockOnly||e.kind!=null}const He=e=>e.count===0&&!e.checked,Te={tyreSizes:"Size",brands:"Brand",finishes:"Colour",diameters:"Size · diameter",collections:"Collection",pcds:"PCD · fitment",tyreTypes:"Tyre type",speedRatings:"Speed rating"};function Y(e,t){switch(t){case"tyreSizes":return[...new Set(_(e).flatMap(xe))];case"brands":return z(e)?[z(e)]:[];case"finishes":return fe(e);case"diameters":return pe(e).map(String);case"collections":return ae(e);case"pcds":return me(e);case"tyreTypes":return Se(e);case"speedRatings":return he(e)}}function ke(e){const t=new Map;for(const r of e)for(const n of de(r))n.color&&!t.has(n.family)&&t.set(n.family,n.color);return t}function Je(e,t,r,n=K(e),i=Q,s="fail"){const o=c=>Re(c,n,i),l=ke(e),f=(s==="pass"?P.filter(c=>n.some(y=>A[c].includes(y))):C(n)).filter(c=>c!=="tyreSizes").filter(o).map(c=>{const y=t[c].map(String),T=new Set,M=new Map,w=new Map;for(const p of e){const h=Y(p,c);for(const d of h)T.add(d);for(const d of new Set(h))w.set(d,(w.get(d)??0)+1);if(x(p,t,r,c,s))for(const d of new Set(h))M.set(d,(M.get(d)??0)+1)}const G=[...T].map(p=>({value:p,label:c==="diameters"?`${p}″`:p,count:M.get(p)??0,checked:y.includes(p),swatch:c==="finishes"?l.get(p)??null:null})).sort((p,h)=>{if(c==="diameters")return Number(p.value)-Number(h.value);const d=(w.get(h.value)??0)-(w.get(p.value)??0);return d!==0?d:p.value.localeCompare(h.value)});return{key:c,label:Te[c],options:G}}).filter(c=>c.options.length>$),a=[];for(const c of f){const y=Le(c.key,n,i);y!==void 0&&a.push({fieldKey:c.key,filterOrder:y})}return[...ee(f,c=>c.key,a,"filterOrder")]}const $=1;function Qe(e){return e.showCollection===!1?["collections"]:[]}function Re(e,t,r){return t.length===0||r.length===0?!0:t.some(n=>J(k(r,n))(R(e,n)))}function Le(e,t,r){if(r.length===0)return;let n;for(const i of t){const s=H(k(r,i),"filter")(R(e,i));s!==void 0&&(n===void 0||s<n)&&(n=s)}return n}function ze(e){const t=new Set;for(const r of e)for(const n of _(r))t.add(I(n));return t.size}function et(e,t){return C(t).includes("tyreSizes")?ze(e)>$:!1}function W(e){const t=Pe(e);if(t)return t;const[r,n]=e.split("/");return{width:r?Number(r):void 0,profile:n?Number(n):void 0}}function Fe(e,t,r){return S.slice(0,S.indexOf(r)).every(n=>{const i=t[n];return i==null||e[n]===i})}function tt(e,t,r){const n=W(t.tyreSizes[0]??""),i=new Set(e.filter(s=>x(s,t,r,"tyreSizes")));return S.map(s=>{const o=new Map;for(const u of e){const f=_(u).filter(a=>Fe(a,n,s));for(const a of new Set(f.map(c=>c[s])))o.has(a)||o.set(a,0),i.has(u)&&o.set(a,(o.get(a)??0)+1)}const l=[...o.keys()].sort((u,f)=>u-f).map(u=>({value:u,label:s==="rim"?`R${u}`:String(u),count:o.get(u)??0}));return{part:s,label:we[s],value:n[s]??null,options:l}})}function nt(e,t,r,n){const i={...W(t)},s=S.indexOf(r);i[r]=n??void 0;for(const o of S.slice(s+1))i[o]!=null&&e.some(f=>S.slice(0,S.indexOf(o)+1).every(a=>i[a]==null||f[a]===i[a]))||(i[o]=void 0);return I(i)}function rt(e,t,r,n){if(t.length<2)return[];const i=e.filter(s=>x(s,r,n,"kind"));return[{kind:null,label:ye,count:i.length,checked:r.kind===null},...t.map(s=>({kind:s,label:N[s],count:i.filter(o=>b(o)===s).length,checked:r.kind===s}))]}function Ee(e,t){return e.map(r=>ie(g(r),t)).filter(r=>r!==null)}function Oe(e){if(e.length===0)return null;const t=Math.floor(Math.min(...e)),r=Math.ceil(Math.max(...e));return r>t?{min:t,max:r}:null}function it(e,t){return Oe(Ee(e,t))}function st(e,t,r){const n=[];e.kind&&n.push({key:"kind",value:e.kind,label:N[e.kind]}),e.inStockOnly&&n.push({key:"inStock",value:"",label:te.inStock});for(const i of P)for(const s of e[i]){const o=String(s);n.push({key:i,value:o,label:i==="diameters"?`${o}″`:i==="pcds"?`PCD ${o}`:o})}for(const i of e.lugs??[])n.push({key:"lugs",value:String(i),label:ue(i)});return e.priceMin!=null&&n.push({key:"priceMin",value:"",label:`${re}${r(e.priceMin,t)}`}),e.priceMax!=null&&n.push({key:"price",value:"",label:`Up to ${r(e.priceMax,t)}`}),n}const m={tyreSizes:"tyreSize",brands:"brand",finishes:"colour",diameters:"size",collections:"collection",pcds:"pcd",tyreTypes:"tyreType",speedRatings:"speed"},Z="type",j="maxPrice",q="minPrice",U="inStock",V="sort",X="page";function ot(e){const t=o=>e.getAll(o).flatMap(l=>l.split(",")).filter(Boolean),r=Number(e.get(j)),n=Number(e.get(q)),i=Number(e.get(X)),s=e.get(Z);return{tyreSizes:t(m.tyreSizes),brands:t(m.brands),finishes:t(m.finishes),diameters:t(m.diameters).map(Number).filter(Number.isFinite),collections:t(m.collections),pcds:t(m.pcds),tyreTypes:t(m.tyreTypes),speedRatings:t(m.speedRatings),priceMax:Number.isFinite(r)&&r>0?r:null,priceMin:Number.isFinite(n)&&n>0?n:null,inStockOnly:e.get(U)==="1",kind:ge.find(o=>o===s)??null,sort:B(e.get(V)),page:Number.isFinite(i)&&i>=1?Math.floor(i):1}}function lt(e){const t=new URLSearchParams;for(const r of P){const n=e[r];n.length>0&&t.set(m[r],n.join(","))}return e.priceMin!=null&&t.set(q,String(e.priceMin)),e.priceMax!=null&&t.set(j,String(e.priceMax)),e.inStockOnly&&t.set(U,"1"),e.kind&&t.set(Z,e.kind),e.sort!=="recommended"&&t.set(V,e.sort),e.page>1&&t.set(X,String(e.page)),t}function ct(e,t){if(e<=7)return Array.from({length:e},(s,o)=>o+1);const r=[1],n=Math.max(2,t-1),i=Math.min(e-1,t+1);n>2&&r.push(null);for(let s=n;s<=i;s++)r.push(s);return i<e-1&&r.push(null),r.push(e),r}function ut(e,t,r){const n=e.length,i=Math.max(1,Math.floor(r)),s=Math.max(1,Math.ceil(n/i)),o=Math.min(Math.max(1,Math.floor(t)),s),l=(o-1)*i;return{items:e.slice(l,l+i),page:o,pageCount:s,total:n,from:n===0?0:l+1,to:Math.min(l+i,n)}}export{Ze as EMPTY_PLP_FILTERS,P as PLP_FACET_KEYS,Te as PLP_FACET_LABELS,$ as PLP_ONE_VALUE_MAX,m as PLP_PARAM,Me as PLP_SORT_LABELS,Z as PLP_TYPE_PARAM,Ve as applyPlpFilters,Xe as applyShopperFilters,B as asPlpSortKey,Je as buildPlpFacets,rt as buildPlpTypeOptions,tt as buildTyreSizeBoxes,Re as facetWantedByAnyKind,Ae as formatWidth,Ge as hasActivePlpFilters,He as isDeadPlpOption,x as itemMatchesPlp,Qe as listingHiddenFacets,ut as paginatePlp,nt as pickTyreSize,st as plpActiveChips,C as plpFacetKeysFor,ot as plpFiltersFromParams,lt as plpFiltersToParams,Ue as plpInStockCount,$e as plpOpeningSort,ct as plpPageSequence,it as plpPriceBounds,Oe as plpPriceBoundsOf,Ee as plpPricedAmounts,We as plpShownKinds,be as plpSortKeysFor,et as plpTyreSizeBoxesShown,ze as plpTyreSizeCount,je as sizePairLabel,D as sortPlpItems,qe as wheelSizeLabels};
1
+ import{answerOrder as Q,answersForKind as R,facetFieldKey as k,keepForFilter as q,NO_FIELD_ANSWERS as J,orderByAnswers as ee}from"../content/field-usage.js";import{STOCK_WORDS as te}from"../content/stock-words.js";import{parseOption as ne}from"efficient-web-builder/format/lib/parse-option";import{comparePrice as L,FROM_PREFIX_START as re,priceIn as ie,withinPriceRange as se}from"./price-display.js";import{trimDecimal as oe,wheelSizeLabel as le}from"./spec-format.js";import{itemLugs as ce,lugFilterLabel as ae}from"./lug-count.js";import{itemBrand as z,itemCollections as ue,itemDiameters as pe,itemFinishFamilies as fe,itemFinishes as de,itemInStock as F,itemIsNew as E,itemKind as b,itemName as O,itemPcds as me,itemPrices as y,itemSpeedRatings as he,itemTyreSizes as _,itemTyreTypes as Se,PLP_ANY_TYPE_LABEL as ge,PLP_KIND_LABELS as N,PLP_KINDS as ye}from"../catalog/plp-item.js";import{parseTyreSize as Pe,tyreSizeLabel as I,tyreSizeLabels as xe,TYRE_SIZE_PARTS as S,TYRE_SIZE_PART_LABELS as we}from"../tyres/tyre-size.js";const Me={recommended:"Recommended","price-asc":"Price · low to high","price-desc":"Price · high to low",new:"Newest",name:"Name A–Z"},v=Object.keys(Me);function B(e){return ne(v,"recommended",e)}function be(e){return v.filter(t=>t!=="recommended"||e.length<=1)}function Ue(e,t){const r=B(e);return be(t).includes(r)?r:"name"}const P=["tyreSizes","brands","finishes","diameters","collections","pcds","tyreTypes","speedRatings"],A={tyreSizes:["tyre"],brands:["alloy-wheel","tyre"],finishes:["alloy-wheel"],diameters:["alloy-wheel","tyre"],collections:["alloy-wheel"],pcds:["alloy-wheel"],tyreTypes:["tyre"],speedRatings:["tyre"]},_e={diameters:"tyreSizes"};function C(e){if(e.length===0)return[];const t=P.filter(r=>e.every(n=>A[r].includes(n)));return t.filter(r=>{const n=_e[r];return!n||!t.includes(n)})}function Ze(e,t){return t&&e.includes(t)?[t]:[...e]}function K(e){const t=new Set;for(const r of e)t.add(b(r));return[...t]}const je={tyreSizes:[],brands:[],finishes:[],diameters:[],collections:[],pcds:[],tyreTypes:[],speedRatings:[],priceMax:null,priceMin:null,inStockOnly:!1,kind:null,sort:"recommended",page:1};function Ve(e){return`${Ae(e.width)}×${e.diameter}`}function Xe(e){return[...new Set((e.sizePairs??[]).map(t=>le(t.diameter,t.width)))]}function Ae(e){return oe(e)}function x(e,t,r,n=null,i="fail"){const s=b(e),o=l=>i==="fail"||(l==="lugs"?s==="alloy-wheel":A[l].includes(s));if(n!=="kind"&&t.kind&&s!==t.kind)return!1;for(const l of P){if(n===l)continue;const a=t[l];if(a.length===0||!o(l))continue;const f=a.map(String);if(!Y(e,l).some(u=>f.includes(u)))return!1}if(n!=="lugs"&&t.lugs&&t.lugs.length>0&&o("lugs")){const l=ce(e);if(l===null||!t.lugs.includes(l))return!1}return!(n!=="price"&&!se(y(e),r,t.priceMin??null,t.priceMax)||n!=="inStock"&&t.inStockOnly&&!F(e))}function Ge(e,t,r){return e.filter(n=>F(n)&&x(n,t,r,"inStock")).length}function D(e,t,r){const n=[...e],i=(o,l)=>O(o).localeCompare(O(l)),s=K(e).length>1;switch(t){case"price-asc":return n.sort((o,l)=>L(y(o),y(l),r,"asc"));case"price-desc":return n.sort((o,l)=>L(y(o),y(l),r,"desc"));case"name":return n.sort(i);case"new":return n.sort((o,l)=>{const a=(E(l)?1:0)-(E(o)?1:0);return a!==0||!s?a:i(o,l)});default:return n}}function He(e,t,r){return D(e.filter(n=>x(n,t,r)),t.sort,r)}function Qe(e,t,r){return D(e.filter(n=>x(n,t,r,null,"pass")),t.sort,r)}function qe(e){return P.some(t=>e[t].length>0)||(e.lugs?.length??0)>0||e.priceMin!=null||e.priceMax!=null||e.inStockOnly||e.kind!=null}const Je=e=>e.count===0&&!e.checked,Te={tyreSizes:"Size",brands:"Brand",finishes:"Colour",diameters:"Size · diameter",collections:"Collection",pcds:"PCD · fitment",tyreTypes:"Tyre type",speedRatings:"Speed rating"};function Y(e,t){switch(t){case"tyreSizes":return[...new Set(_(e).flatMap(xe))];case"brands":return z(e)?[z(e)]:[];case"finishes":return fe(e);case"diameters":return pe(e).map(String);case"collections":return ue(e);case"pcds":return me(e);case"tyreTypes":return Se(e);case"speedRatings":return he(e)}}function Re(e){const t=new Map;for(const r of e)for(const n of de(r))n.color&&!t.has(n.family)&&t.set(n.family,n.color);return t}function et(e,t,r,n=K(e),i=J,s="fail"){const o=c=>ke(c,n,i),l=Re(e),f=(s==="pass"?P.filter(c=>n.some(g=>A[c].includes(g))):C(n)).filter(c=>c!=="tyreSizes").filter(o).map(c=>{const g=t[c].map(String),T=new Set,M=new Map,w=new Map;for(const p of e){const h=Y(p,c);for(const d of h)T.add(d);for(const d of new Set(h))w.set(d,(w.get(d)??0)+1);if(x(p,t,r,c,s))for(const d of new Set(h))M.set(d,(M.get(d)??0)+1)}const H=[...T].map(p=>({value:p,label:c==="diameters"?`${p}″`:p,count:M.get(p)??0,checked:g.includes(p),swatch:c==="finishes"?l.get(p)??null:null})).sort((p,h)=>{if(c==="diameters")return Number(p.value)-Number(h.value);const d=(w.get(h.value)??0)-(w.get(p.value)??0);return d!==0?d:p.value.localeCompare(h.value)});return{key:c,label:Te[c],options:H}}).filter(c=>c.options.length>$),u=[];for(const c of f){const g=Le(c.key,n,i);g!==void 0&&u.push({fieldKey:c.key,filterOrder:g})}return[...ee(f,c=>c.key,u,"filterOrder")]}const $=1;function tt(e){return e.showCollection===!1?["collections"]:[]}function ke(e,t,r){return t.length===0||r.length===0?!0:t.some(n=>q(R(r,n))(k(e,n)))}function Le(e,t,r){if(r.length===0)return;let n;for(const i of t){const s=Q(R(r,i),"filter")(k(e,i));s!==void 0&&(n===void 0||s<n)&&(n=s)}return n}function ze(e){const t=new Set;for(const r of e)for(const n of _(r))t.add(I(n));return t.size}function nt(e,t){return C(t).includes("tyreSizes")?ze(e)>$:!1}function W(e){const t=Pe(e);if(t)return t;const[r,n]=e.split("/");return{width:r?Number(r):void 0,profile:n?Number(n):void 0}}function Fe(e,t,r){return S.slice(0,S.indexOf(r)).every(n=>{const i=t[n];return i==null||e[n]===i})}function rt(e,t,r){const n=W(t.tyreSizes[0]??""),i=new Set(e.filter(s=>x(s,t,r,"tyreSizes")));return S.map(s=>{const o=new Map;for(const a of e){const f=_(a).filter(u=>Fe(u,n,s));for(const u of new Set(f.map(c=>c[s])))o.has(u)||o.set(u,0),i.has(a)&&o.set(u,(o.get(u)??0)+1)}const l=[...o.keys()].sort((a,f)=>a-f).map(a=>({value:a,label:s==="rim"?`R${a}`:String(a),count:o.get(a)??0}));return{part:s,label:we[s],value:n[s]??null,options:l}})}function it(e,t,r,n){const i={...W(t)},s=S.indexOf(r);i[r]=n??void 0;for(const o of S.slice(s+1))i[o]!=null&&e.some(f=>S.slice(0,S.indexOf(o)+1).every(u=>i[u]==null||f[u]===i[u]))||(i[o]=void 0);return I(i)}function st(e,t,r,n){if(t.length<2)return[];const i=e.filter(s=>x(s,r,n,"kind"));return[{kind:null,label:ge,count:i.length,checked:r.kind===null},...t.map(s=>({kind:s,label:N[s],count:i.filter(o=>b(o)===s).length,checked:r.kind===s}))]}function Ee(e,t){return e.map(r=>ie(y(r),t)).filter(r=>r!==null)}function Oe(e){if(e.length===0)return null;const t=Math.floor(Math.min(...e)),r=Math.ceil(Math.max(...e));return r>t?{min:t,max:r}:null}function ot(e,t){return Oe(Ee(e,t))}function lt(e,t,r){const n=[];e.kind&&n.push({key:"kind",value:e.kind,label:N[e.kind]}),e.inStockOnly&&n.push({key:"inStock",value:"",label:te.inStock});for(const i of P)for(const s of e[i]){const o=String(s);n.push({key:i,value:o,label:i==="diameters"?`${o}″`:i==="pcds"?`PCD ${o}`:o})}for(const i of e.lugs??[])n.push({key:"lugs",value:String(i),label:ae(i)});return e.priceMin!=null&&n.push({key:"priceMin",value:"",label:`${re}${r(e.priceMin,t)}`}),e.priceMax!=null&&n.push({key:"price",value:"",label:`Up to ${r(e.priceMax,t)}`}),n}const m={tyreSizes:"tyreSize",brands:"brand",finishes:"colour",diameters:"size",collections:"collection",pcds:"pcd",tyreTypes:"tyreType",speedRatings:"speed"},U="type",Z="maxPrice",j="minPrice",V="inStock",X="sort",G="page";function Ne(e){const t=typeof e=="string"?new URLSearchParams(e):e,r=l=>t.getAll(l).flatMap(a=>a.split(",")).filter(Boolean),n=Number(t.get(Z)),i=Number(t.get(j)),s=Number(t.get(G)),o=t.get(U);return{tyreSizes:r(m.tyreSizes),brands:r(m.brands),finishes:r(m.finishes),diameters:r(m.diameters).map(Number).filter(Number.isFinite),collections:r(m.collections),pcds:r(m.pcds),tyreTypes:r(m.tyreTypes),speedRatings:r(m.speedRatings),priceMax:Number.isFinite(n)&&n>0?n:null,priceMin:Number.isFinite(i)&&i>0?i:null,inStockOnly:t.get(V)==="1",kind:ye.find(l=>l===o)??null,sort:B(t.get(X)),page:Number.isFinite(s)&&s>=1?Math.floor(s):1}}function Ie(e){const t=new URLSearchParams;for(const r of P){const n=e[r];n.length>0&&t.set(m[r],n.join(","))}return e.priceMin!=null&&t.set(j,String(e.priceMin)),e.priceMax!=null&&t.set(Z,String(e.priceMax)),e.inStockOnly&&t.set(V,"1"),e.kind&&t.set(U,e.kind),e.sort!=="recommended"&&t.set(X,e.sort),e.page>1&&t.set(G,String(e.page)),t}function ct(e){return Ie(Ne(e)).toString()}function at(e,t){if(e<=7)return Array.from({length:e},(s,o)=>o+1);const r=[1],n=Math.max(2,t-1),i=Math.min(e-1,t+1);n>2&&r.push(null);for(let s=n;s<=i;s++)r.push(s);return i<e-1&&r.push(null),r.push(e),r}function ut(e,t,r){const n=e.length,i=Math.max(1,Math.floor(r)),s=Math.max(1,Math.ceil(n/i)),o=Math.min(Math.max(1,Math.floor(t)),s),l=(o-1)*i;return{items:e.slice(l,l+i),page:o,pageCount:s,total:n,from:n===0?0:l+1,to:Math.min(l+i,n)}}export{je as EMPTY_PLP_FILTERS,P as PLP_FACET_KEYS,Te as PLP_FACET_LABELS,$ as PLP_ONE_VALUE_MAX,m as PLP_PARAM,Me as PLP_SORT_LABELS,U as PLP_TYPE_PARAM,He as applyPlpFilters,Qe as applyShopperFilters,B as asPlpSortKey,et as buildPlpFacets,st as buildPlpTypeOptions,rt as buildTyreSizeBoxes,ke as facetWantedByAnyKind,Ae as formatWidth,qe as hasActivePlpFilters,Je as isDeadPlpOption,x as itemMatchesPlp,tt as listingHiddenFacets,ut as paginatePlp,it as pickTyreSize,lt as plpActiveChips,C as plpFacetKeysFor,ct as plpFilterQuery,Ne as plpFiltersFromParams,Ie as plpFiltersToParams,Ge as plpInStockCount,Ue as plpOpeningSort,at as plpPageSequence,ot as plpPriceBounds,Oe as plpPriceBoundsOf,Ee as plpPricedAmounts,Ze as plpShownKinds,be as plpSortKeysFor,nt as plpTyreSizeBoxesShown,ze as plpTyreSizeCount,Ve as sizePairLabel,D as sortPlpItems,Xe as wheelSizeLabels};
@@ -2,14 +2,12 @@ import type { Data } from "efficient-easel/blocks";
2
2
  import type { ProductKind, ProductSummary, WheelSummary } from "../api/index.js";
3
3
  import type { FieldUsageAnswer } from "../content/field-usage.js";
4
4
  import { FILTER_BLOCK_TYPE, PRODUCT_GRID_TYPE } from "../document/document-nodes.js";
5
- export declare const ALLOY_WHEELS_LISTING_TYPE = "AlloyWheelsListing";
6
5
  export { PRODUCT_GRID_TYPE };
7
6
  export declare const GRID_CATALOG_PROP = "catalog";
8
7
  export declare const GRID_CATALOG_TOTAL_PROP = "catalogTotal";
9
8
  export declare const GRID_TOP_UP_SPARE = 12;
10
9
  export declare const CATALOG_FILTER_BAR_TYPE = "CatalogFilterBar";
11
10
  export declare const FIELD_USAGE_PROP = "fieldUsage";
12
- export declare const LISTING_QUERY_PROP = "requestQuery";
13
11
  export { FILTER_BLOCK_TYPE };
14
12
  interface ContentNode {
15
13
  type?: string;
@@ -26,6 +24,5 @@ export declare function hydrateWheelsListing(data: Data, products: ProductSummar
26
24
  export interface HydrateOptions {
27
25
  everyHoverPhoto?: boolean;
28
26
  }
29
- export declare function stampListingQuery(data: Data, query: string): Data;
30
27
  export declare function dehydrateWheelsListing(data: Data): Data;
31
28
  export declare function dehydrateWheelsListingNode<T extends ContentNode>(stamped: T): T;
@@ -1 +1 @@
1
- import{cardHoverOf as G}from"efficient-web-builder/format/lib/animation/hover";import{resolvePlpKinds as k}from"../catalog/plp-item.js";import{gridPagingOf as I}from"../sections/product-grid-pages.js";import{gridKindsOf as L,gridRowsOf as W,isAllProductsSource as v,isLinkedSource as C}from"./grid-source.js";import{FILTER_BLOCK_TYPE as O,PRODUCT_GRID_TYPE as R,documentNodes as N,mapDocumentNodes as U}from"../document/document-nodes.js";import{selectedRangesOf as D,stripSelectedRanges as h}from"./selected-ranges.js";import{withShopperFirstPaint as H,withoutShopperFirstPaint as Y,withoutShopperFirstPaintNode as T}from"./shopper-first-paint.js";const u="AlloyWheelsListing",m="catalog",w="catalogTotal",B=12,K="CatalogFilterBar",f="fieldUsage",S="requestQuery";function l(e){return e.props?.source}function p(e){return e?.type===R&&C(l(e))}function a(e){return e?.type===K||e?.type===O}function A(e,r){if(r)return;const{limit:t,cap:n}=I(e.props??{});return n?Math.ceil(t)+B:void 0}function _(e){return e?.type===u||p(e)||a(e)}const c=e=>N(e);function M(e){return e?c(e).some(r=>r?.type===u||p(r)):!1}function re(e){return e?M(e)||c(e).some(r=>T(r)!==r)||h(e)!==e:!1}function ne(e){return e?c(e).some(_):!1}function oe(e,r){return r.length===0?e:d(e,_,t=>({...t,props:{...t.props??{},[f]:r}}))}function Q(e){if(!e)return[];const r=new Set;for(const t of c(e)){if(t?.type!==u&&!p(t))continue;const n=t.props?.kinds;for(const o of p(t)?L(l(t),n):k(n))r.add(o)}return[...r]}function se(e){if(!e)return;const r=c(e);if(r.some(a))return;const t=Q(e).length;let n;for(const o of r){if(o?.type===u)return;if(!p(o))continue;const s=A(o,!1),i=o.props??{},g=new Set(L(l(o),i.kinds)),F=["num","title","description","linkText"].some(x=>typeof i[x]=="string"&&i[x]!=="");if(s===void 0||!v(l(o))||g.size!==t||F)return;n=Math.max(n??0,s)}return n}function ie(e){return e.length===1&&e[0]==="alloy-wheel"}function pe(e,r,{everyHoverPhoto:t=!1}={}){const n=D(e.root?.props),o=c(e).some(a),s=t?q:z;return H(V(e,i=>p(i)?b(i,r,A(i,o),s):{...i,props:{...y(i).props,products:s(i,r)}}),n)}const q=(e,r)=>[...r];function z(e,r){const t=G(e.props??{},e.type??""),n=t.kind==="nextImage"&&t.media&&t.media.kind!=="renderings"?t.media.kind:null;return r.map(o=>{const{hoverMedia:s,...i}=o;return s===void 0?o:n&&s?.[n]?{...i,hoverMedia:{[n]:s[n]}}:i})}function b(e,r,t,n){const o=n(e,W(l(e),e.props?.kinds,r)),s={...P(e).props};return t!==void 0&&o.length>t?(s[m]=o.slice(0,t),s[w]=o.length):s[m]=o,{...e,props:s}}function ue(e,r){const t=r.replace(/^\?/,"");return t?d(e,n=>n?.type===u,n=>({...n,props:{...n.props??{},[S]:t}})):e}function ce(e){return Y(d(h(e),_,r=>a(r)?E(r):p(r)?P(r):y(r)))}function E(e){if(!e.props||!(f in e.props))return e;const{[f]:r,...t}=e.props;return{...e,props:t}}function P(e){const{[m]:r,[w]:t,[f]:n,...o}=e.props??{},s=o.source;if(s&&"wheels"in s){const{wheels:i,...g}=s;o.source=g}return{...e,props:o}}function fe(e){const r=h({content:[e]}).content[0],t=T(r);return p(t)?P(t):a(t)?E(t):t?.type===u?y(t):t}function y(e){const{wheels:r,products:t,[f]:n,[S]:o,...s}=e.props??{};return{...e,props:s}}function V(e,r){return d(e,t=>t?.type===u||p(t),r)}function d(e,r,t){return U(e,n=>r(n)?t(n):n)}export{u as ALLOY_WHEELS_LISTING_TYPE,K as CATALOG_FILTER_BAR_TYPE,f as FIELD_USAGE_PROP,O as FILTER_BLOCK_TYPE,m as GRID_CATALOG_PROP,w as GRID_CATALOG_TOTAL_PROP,B as GRID_TOP_UP_SPARE,S as LISTING_QUERY_PROP,R as PRODUCT_GRID_TYPE,ce as dehydrateWheelsListing,fe as dehydrateWheelsListingNode,oe as hydrateFieldUsage,pe as hydrateWheelsListing,se as listingCatalogBound,Q as listingCatalogKinds,ie as listingWantsWheelsOnly,re as pageHasHydratedValues,M as pageHasWheelsListing,ne as pageReadsFieldUsage,ue as stampListingQuery};
1
+ import{cardHoverOf as A}from"efficient-web-builder/format/lib/animation/hover";import{resolvePlpKinds as E}from"../catalog/plp-item.js";import{gridPagingOf as G}from"../sections/product-grid-pages.js";import{gridKindsOf as L,gridRowsOf as I,isAllProductsSource as W,isLinkedSource as v}from"./grid-source.js";import{ALLOY_WHEELS_LISTING_TYPE as u,FILTER_BLOCK_TYPE as O,PRODUCT_GRID_TYPE as T,documentNodes as C,mapDocumentNodes as N}from"../document/document-nodes.js";import{selectedRangesOf as U,stripSelectedRanges as g}from"./selected-ranges.js";import{withShopperFirstPaint as D,withoutShopperFirstPaint as H,withoutShopperFirstPaintNode as R}from"./shopper-first-paint.js";const h="catalog",w="catalogTotal",B=12,K="CatalogFilterBar",f="fieldUsage";function l(e){return e.props?.source}function p(e){return e?.type===T&&v(l(e))}function a(e){return e?.type===K||e?.type===O}function F(e,t){if(t)return;const{limit:r,cap:o}=G(e.props??{});return o?Math.ceil(r)+B:void 0}function m(e){return e?.type===u||p(e)||a(e)}const c=e=>C(e);function Y(e){return e?c(e).some(t=>t?.type===u||p(t)):!1}function te(e){return e?Y(e)||c(e).some(t=>R(t)!==t)||g(e)!==e:!1}function re(e){return e?c(e).some(m):!1}function ne(e,t){return t.length===0?e:x(e,m,r=>({...r,props:{...r.props??{},[f]:t}}))}function M(e){if(!e)return[];const t=new Set;for(const r of c(e)){if(r?.type!==u&&!p(r))continue;const o=r.props?.kinds;for(const n of p(r)?L(l(r),o):E(o))t.add(n)}return[...t]}function oe(e){if(!e)return;const t=c(e);if(t.some(a))return;const r=M(e).length;let o;for(const n of t){if(n?.type===u)return;if(!p(n))continue;const s=F(n,!1),i=n.props??{},d=new Set(L(l(n),i.kinds)),k=["num","title","description","linkText"].some(y=>typeof i[y]=="string"&&i[y]!=="");if(s===void 0||!W(l(n))||d.size!==r||k)return;o=Math.max(o??0,s)}return o}function se(e){return e.length===1&&e[0]==="alloy-wheel"}function ie(e,t,{everyHoverPhoto:r=!1}={}){const o=U(e.root?.props),n=c(e).some(a),s=r?z:b;return D(j(e,i=>p(i)?V(i,t,F(i,n),s):{...i,props:{...P(i).props,products:s(i,t)}}),o)}const z=(e,t)=>[...t];function b(e,t){const r=A(e.props??{},e.type??""),o=r.kind==="nextImage"&&r.media&&r.media.kind!=="renderings"?r.media.kind:null;return t.map(n=>{const{hoverMedia:s,...i}=n;return s===void 0?n:o&&s?.[o]?{...i,hoverMedia:{[o]:s[o]}}:i})}function V(e,t,r,o){const n=o(e,I(l(e),e.props?.kinds,t)),s={..._(e).props};return r!==void 0&&n.length>r?(s[h]=n.slice(0,r),s[w]=n.length):s[h]=n,{...e,props:s}}function pe(e){return H(x(g(e),m,t=>a(t)?S(t):p(t)?_(t):P(t)))}function S(e){if(!e.props||!(f in e.props))return e;const{[f]:t,...r}=e.props;return{...e,props:r}}function _(e){const{[h]:t,[w]:r,[f]:o,...n}=e.props??{},s=n.source;if(s&&"wheels"in s){const{wheels:i,...d}=s;n.source=d}return{...e,props:n}}function ue(e){const t=g({content:[e]}).content[0],r=R(t);return p(r)?_(r):a(r)?S(r):r?.type===u?P(r):r}function P(e){const{wheels:t,products:r,[f]:o,...n}=e.props??{};return{...e,props:n}}function j(e,t){return x(e,r=>r?.type===u||p(r),t)}function x(e,t,r){return N(e,o=>t(o)?r(o):o)}export{K as CATALOG_FILTER_BAR_TYPE,f as FIELD_USAGE_PROP,O as FILTER_BLOCK_TYPE,h as GRID_CATALOG_PROP,w as GRID_CATALOG_TOTAL_PROP,B as GRID_TOP_UP_SPARE,T as PRODUCT_GRID_TYPE,pe as dehydrateWheelsListing,ue as dehydrateWheelsListingNode,ne as hydrateFieldUsage,ie as hydrateWheelsListing,oe as listingCatalogBound,M as listingCatalogKinds,se as listingWantsWheelsOnly,te as pageHasHydratedValues,Y as pageHasWheelsListing,re as pageReadsFieldUsage};
@@ -3,6 +3,7 @@ import type { SelectedRanges } from "efficient-web-builder/render/lib/content/bo
3
3
  import { type PlpSortKey } from "./plp-filters.js";
4
4
  export declare const SELECTED_RANGES_PROP = "selectedRanges";
5
5
  export declare const SHOPPER_ADDRESS_PROP = "shopperAddress";
6
+ export declare function addressQueryOf(props: Readonly<Record<string, unknown>> | null | undefined): string;
6
7
  export interface ShopperAddressMark {
7
8
  writes: boolean;
8
9
  sort: PlpSortKey;
@@ -1 +1 @@
1
- import{SHOW_FOR_PROP as R,showForOf as g}from"efficient-web-builder/format/lib/content/box-show-for-choices";import{asPlpSortKey as l,plpFiltersFromParams as w}from"./plp-filters.js";import{FILTER_BLOCK_TYPE as P,documentNodes as O,mapDocumentNodes as d}from"../document/document-nodes.js";import{documentShopperScopes as h,pageReachFilterOf as y}from"./shopper-first-paint.js";const u="selectedRanges",i="shopperAddress";function k(r){if(typeof r=="string")return new URLSearchParams(r.replace(/^\?/,""));if(r instanceof URLSearchParams)return r;const e=new URLSearchParams;for(const[o,t]of Object.entries(r))if(typeof t=="string")e.append(o,t);else if(Array.isArray(t))for(const s of t)typeof s=="string"&&e.append(o,s);return e}function A(r,e){const o=new Set(e),t=[];for(const s of w(k(r)).collections)o.has(s)&&!t.includes(s)&&t.push(s);return t}function L(r){const e=r?.[u];if(!e||!Array.isArray(e.selected)||!Array.isArray(e.known))return null;const o=s=>s.filter(n=>typeof n=="string"),t=o(e.known);return{selected:o(e.selected).filter(s=>t.includes(s)),known:t}}function D(r){const e=r?.[i];return!e||typeof e!="object"?null:{writes:e.writes===!0,sort:l(typeof e.sort=="string"?e.sort:void 0)}}function b(r,e,o){const t=[...new Set(o)],s={selected:A(e,t),known:t},n=y(r),p=new Map;if(n){const c=l(typeof n.props?.openingSort=="string"?n.props.openingSort:void 0);p.set(n,{[i]:{writes:!0,sort:c}});for(const[a,S]of h(r))S===n&&p.set(a,{[i]:{writes:!1,sort:c}})}const f=p.size?d(r,(c,a)=>p.has(a)?{...c,props:{...c.props,...p.get(a)}}:c):r,m=f.root??{};return{...f,root:{...m,props:{...m.props??{},[u]:s}}}}function N(r){const e=d(r,n=>{if(!(i in n.props))return n;const{[i]:p,...f}=n.props;return{...n,props:f}}),o=e.root;if(!o?.props||!(u in o.props))return e;const{[u]:t,...s}=o.props;return{...e,root:{...o,props:s}}}function T(r){return r?O(r).some(e=>e.type===P||g(e.props[R])!==void 0):!1}export{u as SELECTED_RANGES_PROP,i as SHOPPER_ADDRESS_PROP,T as pageReadsSelectedRanges,A as readSelectedRanges,L as selectedRangesOf,D as shopperAddressMarkOf,b as stampSelectedRanges,N as stripSelectedRanges};
1
+ import{SHOW_FOR_PROP as E,showForOf as O}from"efficient-web-builder/format/lib/content/box-show-for-choices";import{asPlpSortKey as S,plpFilterQuery as A,plpFiltersFromParams as h}from"./plp-filters.js";import{marksCurrentLink as k,menuLayoutOf as L}from"../content/tab-strip.js";import{ALLOY_WHEELS_LISTING_TYPE as x,FILTER_BLOCK_TYPE as D,MENU_BLOCK_TYPE as R,documentNodes as g,mapDocumentNodes as y}from"../document/document-nodes.js";import{documentShopperScopes as F,pageReachFilterOf as T}from"./shopper-first-paint.js";const u="selectedRanges",i="shopperAddress",m="addressQuery",N=[x,R];function P(e){return N.includes(e.type)?e.type===R?k(L(e.props.direction),e.props.currentPage):!0:!1}function I(e){const r=e?.[m];return typeof r=="string"?r:""}function _(e){if(typeof e=="string")return new URLSearchParams(e.replace(/^\?/,""));if(e instanceof URLSearchParams)return e;const r=new URLSearchParams;for(const[s,t]of Object.entries(e))if(typeof t=="string")r.append(s,t);else if(Array.isArray(t))for(const o of t)typeof o=="string"&&r.append(s,o);return r}function U(e,r){const s=new Set(r),t=[];for(const o of h(_(e)).collections)s.has(o)&&!t.includes(o)&&t.push(o);return t}function K(e){const r=e?.[u];if(!r||!Array.isArray(r.selected)||!Array.isArray(r.known))return null;const s=o=>o.filter(n=>typeof n=="string"),t=s(r.known);return{selected:s(r.selected).filter(o=>t.includes(o)),known:t}}function M(e){const r=e?.[i];return!r||typeof r!="object"?null:{writes:r.writes===!0,sort:S(typeof r.sort=="string"?r.sort:void 0)}}function j(e,r,s){const t=[...new Set(s)],o={selected:U(r,t),known:t},n=T(e),c=new Map;if(n){const p=S(typeof n.props?.openingSort=="string"?n.props.openingSort:void 0);c.set(n,{[i]:{writes:!0,sort:p}});for(const[a,w]of F(e))w===n&&c.set(a,{[i]:{writes:!1,sort:p}})}const l=A(_(r));if(l)for(const p of g(e))P(p)&&c.set(p,{...c.get(p),[m]:l});const f=c.size?y(e,(p,a)=>c.has(a)?{...p,props:{...p.props,...c.get(a)}}:p):e,d=f.root??{};return{...f,root:{...d,props:{...d.props??{},[u]:o}}}}function v(e){const r=y(e,n=>{if(!(i in n.props)&&!(m in n.props))return n;const{[i]:c,[m]:l,...f}=n.props;return{...n,props:f}}),s=r.root;if(!s?.props||!(u in s.props))return r;const{[u]:t,...o}=s.props;return{...r,root:{...s,props:o}}}function B(e){return e?g(e).some(r=>r.type===D||P(r)||O(r.props[E])!==void 0):!1}export{u as SELECTED_RANGES_PROP,i as SHOPPER_ADDRESS_PROP,I as addressQueryOf,B as pageReadsSelectedRanges,U as readSelectedRanges,K as selectedRangesOf,M as shopperAddressMarkOf,j as stampSelectedRanges,v as stripSelectedRanges};
package/dist/words.d.ts CHANGED
@@ -105,6 +105,7 @@ export type WebBuilderPhrase =
105
105
  | "A wall of your photos or your products' pictures, with a click-to-open lightbox."
106
106
  | "A world map of your locations with a legend — designed here, sold worldwide."
107
107
  | "A write-a-review form — submissions wait for your approval before they show."
108
+ | "AV1 file"
108
109
  | "About & brand story"
109
110
  | "Accessories"
110
111
  | "Accordion"
@@ -528,6 +529,7 @@ export type WebBuilderPhrase =
528
529
  | "Fitment Table"
529
530
  | "Fixed"
530
531
  | "Fixed size — the site’s Text setting doesn’t resize this."
532
+ | "Flat"
531
533
  | "Flip"
532
534
  | "Follow the page"
533
535
  | "Follow the slideshow"
@@ -615,6 +617,7 @@ export type WebBuilderPhrase =
615
617
  | "Hint"
616
618
  | "Hold video"
617
619
  | "Home"
620
+ | "Host part"
618
621
  | "Hours, minutes and seconds to a set date and time, then one line."
619
622
  | "Hover"
620
623
  | "Hover effect"
@@ -698,6 +701,7 @@ export type WebBuilderPhrase =
698
701
  | "Latitude, longitude"
699
702
  | "Layout"
700
703
  | "Layout & structure"
704
+ | "Layout's own"
701
705
  | "Layout, structure & embeds"
702
706
  | "Layouts"
703
707
  | "Lead"
@@ -866,6 +870,8 @@ export type WebBuilderPhrase =
866
870
  | "On {count} pages"
867
871
  | "On: the pinned box stays on top, and the sections after it scroll under it."
868
872
  | "One"
873
+ | "One across"
874
+ | "One colour from top to bottom"
869
875
  | "One line"
870
876
  | "One line, ends with ..."
871
877
  | "One row"
@@ -1109,6 +1115,7 @@ export type WebBuilderPhrase =
1109
1115
  | "Show ticker"
1110
1116
  | "Show {label} on the slide"
1111
1117
  | "Shown beside the heading"
1118
+ | "Shown by the section: {name}"
1112
1119
  | "Shows"
1113
1120
  | "Shows when a visitor points at the button"
1114
1121
  | "Shrink"
@@ -1251,6 +1258,7 @@ export type WebBuilderPhrase =
1251
1258
  | "Texture opacity"
1252
1259
  | "Thanks — we'll email you to confirm."
1253
1260
  | "The chat bubble is hidden across the whole site."
1261
+ | "The colour fades into the page colour at the bottom"
1254
1262
  | "The current product's compatible tyres — image, size, key specs and price per tyre, with an inquiry link. Display only."
1255
1263
  | "The current product's related items in a tidy row — the product page's built-in 'Pair with' cross-sell."
1256
1264
  | "The floating chat bubble shows in the corner of every page."
@@ -1266,6 +1274,7 @@ export type WebBuilderPhrase =
1266
1274
  | "The order the blocks stack in on a phone. Only the look moves: the Tab key and screen readers keep the desktop order."
1267
1275
  | "The preview did not open. Try again."
1268
1276
  | "The room left at the left and right edge of every page."
1277
+ | "The section draws {what} here, in every card."
1269
1278
  | "The section it belonged to has been changed or removed."
1270
1279
  | "The slide shows your Image while the video loads, because this video has no frame."
1271
1280
  | "The version was not restored. Nothing changed. Try again."
@@ -1683,6 +1692,7 @@ export type StorefrontBlocksPhrase =
1683
1692
  | "Currently unavailable"
1684
1693
  | "Custom SVG logo uploaded for this store."
1685
1694
  | "Days"
1695
+ | "Dealer Locations"
1686
1696
  | "Deck"
1687
1697
  | "Default (first finish)"
1688
1698
  | "Default (the product's default finish)"
@@ -1746,6 +1756,8 @@ export type StorefrontBlocksPhrase =
1746
1756
  | "Filter by brand, colour, size and fitment to find your set."
1747
1757
  | "Filter by name"
1748
1758
  | "Filter chips"
1759
+ | "Filter group template"
1760
+ | "Filter head template"
1749
1761
  | "Filter option template"
1750
1762
  | "Filters"
1751
1763
  | "Filters button"
@@ -1987,6 +1999,7 @@ export type StorefrontBlocksPhrase =
1987
1999
  | "PNG · JPG · SVG · WEBP · MP4"
1988
2000
  | "PNG · JPG · WEBP"
1989
2001
  | "Pair"
2002
+ | "Panel"
1990
2003
  | "Photo cards"
1991
2004
  | "Pick a category from {place} to fill this card’s name, description and image. That content is edited in the category."
1992
2005
  | "Pick a form to show here, or build a new one. Forms are made once in {place} and can be shown on any number of pages."