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.
- package/CHANGELOG.md +55 -1
- package/dist/chunks/{EditorPreviewCheckout-EBG3NMJI.js → EditorPreviewCheckout-JMBBJSI7.js} +1 -1
- package/dist/chunks/{SiteEditorProvider-YAIB64UV.js → SiteEditorProvider-BKZW7KVN.js} +1 -1
- package/dist/chunks/chunk-AF5TRBQB.js +1 -0
- package/dist/chunks/chunk-GJZGQCDM.js +1 -0
- package/dist/chunks/chunk-KV3EHFHB.js +339 -0
- package/dist/chunks/chunk-XNUK2QNK.js +1 -0
- package/dist/chunks/chunk-YSKMBJ7V.js +74 -0
- package/dist/chunks/{fitment-data-PXY35OVC.js → fitment-data-HMD5DDDB.js} +1 -1
- package/dist/consent.js +1 -1
- package/dist/contract.js +1 -1
- package/dist/editor/lib/api/section-templates.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/AlloyWheelsListing/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/DetailRows/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/GalleryB/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/ProductGrid/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/index.d.ts +1 -1
- package/dist/editor/lib/document/blocks/service/FooterLogo/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/Subscribe/fields.js +1 -1
- package/dist/editor/lib/document/box-header.js +1 -1
- package/dist/editor/lib/document/config.js +1 -1
- package/dist/editor/lib/efficient-block-sources.js +1 -1
- package/dist/editor/lib/storefront-editor-words.d.ts +4 -0
- package/dist/editor/lib/storefront-editor-words.js +1 -1
- package/dist/editor.css +1 -1
- package/dist/index.js +39 -32
- package/dist/links.js +1 -1
- package/dist/render/app/globals.css +122 -16
- package/dist/render/built-with.json +1 -1
- package/dist/render/components/ChatWidget.js +1 -1
- package/dist/render/components/Collections.js +1 -1
- package/dist/render/components/ConsentContext.d.ts +6 -0
- package/dist/render/components/ConsentContext.js +1 -1
- package/dist/render/components/ConsentPanel.d.ts +6 -0
- package/dist/render/components/ConsentPanel.js +1 -1
- package/dist/render/components/ConsentProvider.js +1 -1
- package/dist/render/components/CouponField.js +1 -1
- package/dist/render/components/DealerFinderSection.js +1 -1
- package/dist/render/components/DetailRows.d.ts +2 -3
- package/dist/render/components/DetailRows.js +1 -1
- package/dist/render/components/EmailCaptureForm.js +1 -1
- package/dist/render/components/Events.d.ts +2 -3
- package/dist/render/components/Events.js +1 -1
- package/dist/render/components/FooterEmailSignup.js +1 -1
- package/dist/render/components/FooterLogo.d.ts +1 -1
- package/dist/render/components/FooterLogo.js +1 -1
- package/dist/render/components/FooterMenu.d.ts +2 -1
- package/dist/render/components/FooterMenu.js +1 -1
- package/dist/render/components/GalleryGrid.d.ts +3 -3
- package/dist/render/components/GalleryGrid.js +3 -3
- package/dist/render/components/GridCardTemplate.js +1 -1
- package/dist/render/components/LegalLine.d.ts +10 -0
- package/dist/render/components/LegalLine.js +1 -1
- package/dist/render/components/ProductGridSection.d.ts +3 -2
- package/dist/render/components/ProductGridSection.js +1 -1
- package/dist/render/components/ProductHeroPanel.js +1 -1
- package/dist/render/components/SiteLegalContext.d.ts +19 -0
- package/dist/render/components/SiteLegalContext.js +1 -0
- package/dist/render/components/Subscribe.d.ts +9 -1
- package/dist/render/components/Subscribe.js +1 -1
- package/dist/render/components/booking/BookingFormState.js +1 -1
- package/dist/render/components/catalog/ShopperFilters.d.ts +3 -1
- package/dist/render/components/catalog/ShopperFilters.js +1 -1
- package/dist/render/components/fitment/FitmentFinder.js +1 -1
- package/dist/render/components/pdp-dynamic/DynamicDetailRows.d.ts +1 -2
- package/dist/render/components/pdp-dynamic/DynamicDetailRows.js +1 -1
- package/dist/render/components/pdp-dynamic/DynamicGalleryGrid.d.ts +1 -2
- package/dist/render/components/pdp-dynamic/DynamicGalleryGrid.js +1 -1
- package/dist/render/components/useProductSelection.d.ts +2 -1
- package/dist/render/components/useProductSelection.js +1 -1
- package/dist/render/components/wheels-plp/AlloyWheelsListing.d.ts +5 -3
- package/dist/render/components/wheels-plp/AlloyWheelsListing.js +1 -1
- package/dist/render/components/wheels-plp/PlpFacetRows.d.ts +5 -2
- package/dist/render/components/wheels-plp/PlpFacetRows.js +1 -1
- package/dist/render/components/wheels-plp/PlpSidebar.d.ts +17 -6
- package/dist/render/components/wheels-plp/PlpSidebar.js +1 -1
- package/dist/render/components/wheels-plp/usePlpFiltersInUrl.d.ts +3 -2
- package/dist/render/components/wheels-plp/usePlpFiltersInUrl.js +1 -1
- package/dist/render/lib/api/index.js +1 -1
- package/dist/render/lib/api/list-rows.d.ts +3 -0
- package/dist/render/lib/api/list-rows.js +1 -0
- package/dist/render/lib/api/types.d.ts +6 -0
- package/dist/render/lib/cache-evict.d.ts +1 -0
- package/dist/render/lib/cache-evict.js +1 -1
- package/dist/render/lib/catalog/default-variant.d.ts +2 -0
- package/dist/render/lib/catalog/default-variant.js +1 -0
- package/dist/render/lib/chrome-cache.js +1 -1
- package/dist/render/lib/consent/rules.d.ts +7 -0
- package/dist/render/lib/consent/rules.js +1 -1
- package/dist/render/lib/content/collection-card-look.d.ts +0 -4
- package/dist/render/lib/content/collection-card-look.js +1 -1
- package/dist/render/lib/content/facet-row-seed.d.ts +1 -0
- package/dist/render/lib/content/facet-row-seed.js +1 -1
- package/dist/render/lib/content/product-card-seed.js +1 -1
- package/dist/render/lib/content/rail-row-seed.d.ts +16 -0
- package/dist/render/lib/content/rail-row-seed.js +1 -0
- package/dist/render/lib/content/site.d.ts +4 -0
- package/dist/render/lib/content/site.js +1 -1
- package/dist/render/lib/content/tab-strip.d.ts +3 -1
- package/dist/render/lib/content/tab-strip.js +1 -1
- package/dist/render/lib/document/blocks/commerce/AlloyWheelsListing/meta.d.ts +8 -0
- package/dist/render/lib/document/blocks/commerce/AlloyWheelsListing/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/AlloyWheelsListing/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/DetailRows/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/DetailRows/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/FilterBlock/meta.d.ts +8 -0
- package/dist/render/lib/document/blocks/commerce/FilterBlock/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/FilterBlock/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/GalleryB/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/GalleryB/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/ProductGrid/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/ProductGrid/render.js +1 -1
- package/dist/render/lib/document/blocks/service/DealerFinder/meta.js +1 -1
- package/dist/render/lib/document/blocks/service/Events/meta.js +1 -1
- package/dist/render/lib/document/blocks/service/Events/render.js +1 -1
- package/dist/render/lib/document/blocks/service/Subscribe/render.js +1 -1
- package/dist/render/lib/document/card-templates.js +1 -1
- package/dist/render/lib/document/current-product.d.ts +2 -1
- package/dist/render/lib/document/current-product.js +1 -1
- package/dist/render/lib/document/document-nodes.d.ts +2 -0
- package/dist/render/lib/document/document-nodes.js +1 -1
- package/dist/render/lib/document/footer-page-blocks.js +1 -1
- package/dist/render/lib/document/lazy-draws.js +1 -1
- package/dist/render/lib/document/section-to-box-rows-listing.js +1 -1
- package/dist/render/lib/field-input.d.ts +2 -0
- package/dist/render/lib/field-input.js +1 -1
- package/dist/render/lib/links/link-rules.d.ts +5 -0
- package/dist/render/lib/links/link-rules.js +1 -1
- package/dist/render/lib/sections/band-padding.d.ts +39 -0
- package/dist/render/lib/sections/band-padding.js +1 -0
- package/dist/render/lib/sections/gallery-toolbar.d.ts +2 -2
- package/dist/render/lib/sections/gallery-toolbar.js +1 -1
- package/dist/render/lib/sections/product-pictures.js +1 -1
- package/dist/render/lib/wheels/catalog-filters-to-listing.js +1 -1
- package/dist/render/lib/wheels/plp-filters.d.ts +2 -1
- package/dist/render/lib/wheels/plp-filters.js +1 -1
- package/dist/render/lib/wheels/plp-hydrate.d.ts +0 -3
- package/dist/render/lib/wheels/plp-hydrate.js +1 -1
- package/dist/render/lib/wheels/selected-ranges.d.ts +1 -0
- package/dist/render/lib/wheels/selected-ranges.js +1 -1
- package/dist/words.d.ts +13 -0
- package/dist/words.js +4 -4
- package/package.json +4 -4
- package/dist/chunks/chunk-5VSNQZU6.js +0 -1
- package/dist/chunks/chunk-B2IYTOE3.js +0 -1
- package/dist/chunks/chunk-DOJJTEJV.js +0 -1
- package/dist/chunks/chunk-KRMWJLBM.js +0 -412
- package/dist/chunks/chunk-QP2F42DV.js +0 -1
- package/dist/render/lib/sections/own-padding.d.ts +0 -3
- package/dist/render/lib/sections/own-padding.js +0 -1
- /package/dist/chunks/{chunk-KRMWJLBM.js.LEGAL.txt → chunk-KV3EHFHB.js.LEGAL.txt} +0 -0
|
@@ -1267,6 +1267,7 @@ export interface components {
|
|
|
1267
1267
|
coverImage: string | null;
|
|
1268
1268
|
sizes: string[];
|
|
1269
1269
|
variants: components["schemas"]["TyreVariant"][];
|
|
1270
|
+
defaultVariant?: number | null;
|
|
1270
1271
|
inStock: boolean;
|
|
1271
1272
|
mediaGroups: components["schemas"]["MediaGroups"];
|
|
1272
1273
|
compatibleWheels: components["schemas"]["CompatibleWheel"][];
|
|
@@ -1296,6 +1297,7 @@ export interface components {
|
|
|
1296
1297
|
relatedProducts: components["schemas"]["RelatedProduct"][];
|
|
1297
1298
|
bundles: components["schemas"]["Bundle"][];
|
|
1298
1299
|
variants: components["schemas"]["WheelVariant"][];
|
|
1300
|
+
defaultVariant?: number | null;
|
|
1299
1301
|
pdpTemplateSlug: string | null;
|
|
1300
1302
|
compatibleTyres: components["schemas"]["CompatibleTyre"][];
|
|
1301
1303
|
};
|
|
@@ -1435,6 +1437,10 @@ export interface components {
|
|
|
1435
1437
|
consentEnabled?: boolean;
|
|
1436
1438
|
consentPrivacyPage?: string | null;
|
|
1437
1439
|
consentNoticeOptOut?: boolean;
|
|
1440
|
+
privacyPage?: string | null;
|
|
1441
|
+
termsPage?: string | null;
|
|
1442
|
+
footerCookieSettings?: boolean;
|
|
1443
|
+
footerSitemap?: boolean;
|
|
1438
1444
|
};
|
|
1439
1445
|
SiteSocialLinks: {
|
|
1440
1446
|
instagram?: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export interface Expiring {
|
|
2
2
|
expiresAt: number;
|
|
3
3
|
}
|
|
4
|
+
export declare function isCallerChosenKey(key: string): boolean;
|
|
4
5
|
export declare function evictForInsert<V extends Expiring>(cache: Map<string, V>, max: number, isVolatileKey: (key: string) => boolean, now: number): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function u(e){return/(?:^|\|)(?:slug|xhost):/.test(e)}function d(e,o,l,s){for(;e.size>=o;){let n,t;for(const[i,f]of e){if(f.expiresAt<=s){n=i;break}t===void 0&&l(i)&&(t=i)}const r=n??t??e.keys().next().value;if(r===void 0)return;e.delete(r)}}export{d as evictForInsert,u as isCallerChosenKey};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function s(t,r){if(typeof r!="number"||!Number.isInteger(r)||r<0)return{};if((t.source.variants??[]).length!==t.parts.length)return{};const n=t.parts[r];return n?{...n.options}:{}}export{s as picksForVariant};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{resolvePreviewToken as l,resolveSiteHostSource as
|
|
1
|
+
import{resolvePreviewToken as l,resolveSiteHostSource as x,resolveSiteSlug as _}from"./api/index.js";import{evictForInsert as d,isCallerChosenKey as C}from"./cache-evict.js";const f=6e4,A=5e3,h=500,n=new Map;async function p(r){const{host:e,matchesRequestHost:t}=await x();if(!e)return"";const o=await _();return o?`${r}|slug:${encodeURIComponent(e)}/${encodeURIComponent(o)}`:t?`${r}|host:${e}`:`${r}|xhost:${e}`}async function v(r,e){if(await l()!==null)return e();const t=await p(r);if(!t)return e();const o=Date.now(),c=n.get(t);if(c&&c.expiresAt>o)return c.load;const s=await e(),a=s.outcome.state==="failed",w=a?A:f,m=n.get(t)?.lastGood,i=s.outcome.state==="ok"?s:a?m:void 0,u=a&&i?i:s;return d(n,h,C,o),n.set(t,{load:u,expiresAt:o+w,lastGood:i}),u}async function y(r,e){if(await l()!==null)return e();const t=await p(r);if(!t)return e();const o=n.get(t);if(o&&o.expiresAt>Date.now())return o.load;const c=await e(),s=Date.now();return d(n,h,C,s),n.set(t,{load:c,expiresAt:s+f}),c}function E(){n.clear()}export{A as CHROME_CACHE_FAILURE_TTL_MS,h as CHROME_CACHE_MAX,f as CHROME_CACHE_TTL_MS,v as cachedChrome,y as cachedSiteRead,E as clearChromeCache};
|
|
@@ -58,4 +58,11 @@ export declare const CONSENT_BUTTONS: {
|
|
|
58
58
|
readonly privacyChoices: "Privacy choices";
|
|
59
59
|
readonly privacyPolicy: "Privacy Policy";
|
|
60
60
|
readonly alwaysOn: "Always on";
|
|
61
|
+
readonly close: "Close";
|
|
62
|
+
readonly cookieSettings: "Cookie settings";
|
|
63
|
+
};
|
|
64
|
+
export declare const NO_TRACKING_PANEL: {
|
|
65
|
+
readonly eyebrow: "Cookie settings";
|
|
66
|
+
readonly body: "This site uses only the cookies it needs to work, such as your cart and your login. It runs no advertising or analytics cookies, so there is nothing to switch off.";
|
|
67
|
+
readonly bodyNoSale: "This site uses only the cookies it needs to work, such as remembering your choices. It runs no advertising or analytics cookies, so there is nothing to switch off.";
|
|
61
68
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const m=1,s="Ads on. Shopper can opt out.",i="Ads and analytics off until Accept",r={us:{region:"us",name:"United States",model:"opt-out",law:"California CCPA / CPRA, other state laws",beforeChoice:s,footerLink:"Do Not Sell or Share My Personal Information",panelEyebrow:"Do not sell or share",adsRowName:"Sale or sharing for ads"},ca:{region:"ca",name:"Canada",model:"opt-in",law:"PIPEDA, Quebec Law 25",beforeChoice:i,footerLink:"Privacy choices",panelEyebrow:"Privacy choices",adsRowName:"Advertising"},au:{region:"au",name:"Australia",model:"opt-out",law:"Privacy Act 1988 (APPs)",beforeChoice:s,footerLink:"Privacy choices",panelEyebrow:"Privacy choices",adsRowName:"Advertising"},nz:{region:"nz",name:"New Zealand",model:"opt-out",law:"Privacy Act 2020",beforeChoice:s,footerLink:"Privacy choices",panelEyebrow:"Privacy choices",adsRowName:"Advertising"},uk:{region:"uk",name:"United Kingdom",model:"opt-in",law:"PECR, UK GDPR",beforeChoice:i,footerLink:"Cookie settings",panelEyebrow:"Cookie settings",adsRowName:"Advertising"},eu:{region:"eu",name:"European Union",model:"opt-in",law:"ePrivacy Directive, GDPR",beforeChoice:i,footerLink:"Cookie settings",panelEyebrow:"Cookie settings",adsRowName:"Advertising"},other:{region:"other",name:"All other countries",model:"opt-in",law:"Safe default",beforeChoice:i,footerLink:"Cookie settings",panelEyebrow:"Cookie settings",adsRowName:"Advertising"}},
|
|
1
|
+
const m=1,s="Ads on. Shopper can opt out.",i="Ads and analytics off until Accept",r={us:{region:"us",name:"United States",model:"opt-out",law:"California CCPA / CPRA, other state laws",beforeChoice:s,footerLink:"Do Not Sell or Share My Personal Information",panelEyebrow:"Do not sell or share",adsRowName:"Sale or sharing for ads"},ca:{region:"ca",name:"Canada",model:"opt-in",law:"PIPEDA, Quebec Law 25",beforeChoice:i,footerLink:"Privacy choices",panelEyebrow:"Privacy choices",adsRowName:"Advertising"},au:{region:"au",name:"Australia",model:"opt-out",law:"Privacy Act 1988 (APPs)",beforeChoice:s,footerLink:"Privacy choices",panelEyebrow:"Privacy choices",adsRowName:"Advertising"},nz:{region:"nz",name:"New Zealand",model:"opt-out",law:"Privacy Act 2020",beforeChoice:s,footerLink:"Privacy choices",panelEyebrow:"Privacy choices",adsRowName:"Advertising"},uk:{region:"uk",name:"United Kingdom",model:"opt-in",law:"PECR, UK GDPR",beforeChoice:i,footerLink:"Cookie settings",panelEyebrow:"Cookie settings",adsRowName:"Advertising"},eu:{region:"eu",name:"European Union",model:"opt-in",law:"ePrivacy Directive, GDPR",beforeChoice:i,footerLink:"Cookie settings",panelEyebrow:"Cookie settings",adsRowName:"Advertising"},other:{region:"other",name:"All other countries",model:"opt-in",law:"Safe default",beforeChoice:i,footerLink:"Cookie settings",panelEyebrow:"Cookie settings",adsRowName:"Advertising"}},k="Honoured: ads off",l=new Set(["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE","IS","LI","NO"]),c={US:"us",PR:"us",GU:"us",VI:"us",AS:"us",MP:"us",CA:"ca",AU:"au",NZ:"nz",GB:"uk"};function u(o){const e=(o??"").trim().toUpperCase();return e?Object.hasOwn(c,e)?c[e]:l.has(e)?"eu":"other":"other"}const h=new Set(["Pacific/Honolulu","Pacific/Guam","Pacific/Saipan","Pacific/Pago_Pago","America/Puerto_Rico","America/St_Thomas"]),d=new Set(["New_York","Chicago","Denver","Los_Angeles","Phoenix","Anchorage","Adak","Boise","Detroit","Juneau","Sitka","Metlakatla","Yakutat","Nome","Menominee","Indianapolis","Louisville","Fort_Wayne","Knox_IN"]),f=new Set(["Toronto","Vancouver","Edmonton","Winnipeg","Halifax","St_Johns","Regina","Montreal","Moncton","Glace_Bay","Goose_Bay","Iqaluit","Whitehorse","Dawson","Dawson_Creek","Fort_Nelson","Creston","Cambridge_Bay","Inuvik","Rankin_Inlet","Resolute","Swift_Current","Atikokan","Blanc-Sablon","Nipigon","Thunder_Bay","Rainy_River","Pangnirtung","Yellowknife","Coral_Harbour"]);function y(o){const e=(o??"").trim();if(!e)return"other";if(e==="Europe/London"||e==="Europe/Belfast"||e==="GB"||e==="GB-Eire"||e==="Europe/Guernsey"||e==="Europe/Jersey"||e==="Europe/Isle_of_Man")return"uk";if(e.startsWith("Europe/")||e==="Atlantic/Canary"||e==="Atlantic/Madeira"||e==="Atlantic/Azores"||e==="Atlantic/Reykjavik"||e==="Atlantic/Faroe")return"eu";if(e.startsWith("Australia/")||e==="Antarctica/Macquarie")return"au";if(e==="Pacific/Auckland"||e==="Pacific/Chatham"||e==="NZ"||e==="NZ-CHAT")return"nz";if(e.startsWith("US/")||h.has(e))return"us";if(e.startsWith("Canada/"))return"ca";if(e.startsWith("America/")){const n=e.slice(8),t=n.split("/")[0];if(t==="Indiana"||t==="Kentucky"||t==="North_Dakota"||d.has(n))return"us";if(f.has(n))return"ca"}return"other"}function p(o,e){const n=y(o);if(!e)return n;const t=u(e);return r[n].model==="opt-in"?n:(r[t].model==="opt-in",t)}function C(o){const e=new Set,n=[];for(const t of o){const a=u(t);a==="other"||e.has(a)||(e.add(a),n.push(r[a]))}return n.push(r.other),n}function g(o){const e=[...o.googleAds?["Google"]:[],...o.meta?["Facebook","Instagram"]:[]];return e.length<=1?e.join(""):`${e.slice(0,-1).join(", ")} and ${e[e.length-1]}`}function w(o,e,n){const t=g(n),a=t?`We use cookies to count visits and to show you ${e} ads on ${t}.`:"We use cookies to count visits.";return o.model==="opt-in"?{heading:t?"Cookies and ads":"Cookies",before:`${a} Nothing loads until you choose. You can change this at any time with `,link:o.footerLink,after:" at the bottom of every page."}:{heading:t?"Cookies and ads":"Cookies",before:`${a} You can say no at any time: choose Privacy choices, or use `,link:o.footerLink,after:" at the bottom of every page."}}const A={necessary:{name:"Necessary",body:"Cart, checkout, your country and currency, sign-in, and this choice. The site cannot work without them.",bodyNoSale:"What the site needs to work, such as remembering this choice. The site cannot work without them."},analytics:{name:"Analytics",body:"Counts visits and pages so we can improve the site. Google Analytics and our own visit count."},ads:{body:"Google Ads and Meta (Facebook, Instagram) tags, and the order details we send to them to measure our ads.",bodyNoSale:"Google Ads and Meta (Facebook, Instagram) tags, which measure our ads."}},E={title:"Opt-out request honoured",body:"Your browser sent a Global Privacy Control signal. We have turned off sale and sharing of your information for ads."},P={accept:"Accept all",reject:"Reject all",choose:"Choose",save:"Save",ok:"OK",privacyChoices:"Privacy choices",privacyPolicy:"Privacy Policy",alwaysOn:"Always on",close:"Close",cookieSettings:"Cookie settings"},N={eyebrow:"Cookie settings",body:"This site uses only the cookies it needs to work, such as your cart and your login. It runs no advertising or analytics cookies, so there is nothing to switch off.",bodyNoSale:"This site uses only the cookies it needs to work, such as remembering your choices. It runs no advertising or analytics cookies, so there is nothing to switch off."};export{P as CONSENT_BUTTONS,k as CONSENT_GPC_RULE,r as CONSENT_RULES,m as CONSENT_RULES_VERSION,E as GPC_HONOURED,N as NO_TRACKING_PANEL,A as PANEL_ROWS,g as adPlaces,w as bannerWords,u as regionOfCountry,y as regionOfTimeZone,C as rulesForCountries,p as visitorRegion};
|
|
@@ -7,7 +7,3 @@ export declare const COLLECTIONS_ROOM_BELOW: {
|
|
|
7
7
|
readonly bottom: 120;
|
|
8
8
|
readonly bottomPhone: 70;
|
|
9
9
|
};
|
|
10
|
-
export declare const COLLECTIONS_ROOM_Y = "py-[120px]";
|
|
11
|
-
export declare const COLLECTIONS_ROOM_Y_PHONE = "max-view-wide:py-[70px]";
|
|
12
|
-
export declare const COLLECTIONS_ROOM_BOTTOM = "pb-[120px]";
|
|
13
|
-
export declare const COLLECTIONS_ROOM_BOTTOM_PHONE = "max-view-wide:pb-[70px]";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
import{FRAME_120 as o,FRAME_PHONE_PX as O}from"../sections/band-padding.js";const r=104,E="group-hover:scale-[1.04]",L=40,_=30,C="[background:rgba(0,0,0,0.4)] group-hover:[background:rgba(0,0,0,0.3)]",e={bottom:o.bottom,bottomPhone:O};export{e as COLLECTIONS_ROOM_BELOW,L as COLLECTION_DARKEN,_ as COLLECTION_HOVER_DARKEN,r as COLLECTION_HOVER_ZOOM,E as COLLECTION_HOVER_ZOOM_CLASS,C as COLLECTION_WASH_CLASS};
|
|
@@ -49,6 +49,7 @@ export declare function typeRow(option: {
|
|
|
49
49
|
count: number;
|
|
50
50
|
}, picked: boolean): FacetRow;
|
|
51
51
|
export declare const FACET_TEMPLATE_ALLOW: readonly ["Text", "ImageBlock", "Flex"];
|
|
52
|
+
export declare const ONE_ROW: Props;
|
|
52
53
|
export declare const NAMED_EXCEPTIONS: readonly [{
|
|
53
54
|
readonly part: "facetLabel";
|
|
54
55
|
readonly kind: "size";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{BOX_SWATCH_PROP as c}from"efficient-web-builder/format/lib/content/box-background";import{BOX_ROW_IMAGE_PROP as C}from"efficient-web-builder/format/lib/content/box-card-rule";import{BOX_HIDE_WHEN_ROW_EMPTY as l}from"efficient-web-builder/format/lib/content/card-template";import{BOX_TYPE as t,CONTAINER_BLOCKS_SLOT as r}from"efficient-web-builder/format/lib/document/container-blocks";import{rowFieldTextSeed as f}from"efficient-web-builder/format/lib/document/blocks/general/Cards/card-seed";import{BOX as
|
|
1
|
+
import{BOX_SWATCH_PROP as c}from"efficient-web-builder/format/lib/content/box-background";import{BOX_ROW_IMAGE_PROP as C}from"efficient-web-builder/format/lib/content/box-card-rule";import{BOX_HIDE_WHEN_ROW_EMPTY as l}from"efficient-web-builder/format/lib/content/card-template";import{BOX_TYPE as t,CONTAINER_BLOCKS_SLOT as r}from"efficient-web-builder/format/lib/document/container-blocks";import{rowFieldTextSeed as f}from"efficient-web-builder/format/lib/document/blocks/general/Cards/card-seed";import{BOX as E,DIM as R,INNER_BOX as d,TEXT as m,boxPadding as i,seedNodes as y}from"efficient-web-builder/format/lib/document/seed-parts";import{roundBox as p,squareBox as T}from"./square-box.js";import{ALLOY_WHEELS_LISTING_TYPE as O}from"../document/document-nodes.js";const x="facetTemplate",H="Filter option template",G=[{key:"facetLabel",label:"Filter option"},{key:"facetName",label:"Type name"},{key:"facetCount",label:"Option count"},{key:"facetColour",label:"Option colour",kind:"colour"},{key:"facetTickFill",label:"Tick box fill",kind:"colour"},{key:"facetTick",label:"Tick mark",kind:"image"},{key:"facetTickMark",label:"Tick box shown"},{key:"facetRadioMark",label:"Round mark shown"},{key:"facetDot",label:"Round mark dot",kind:"colour"}],L="sf-facet-tick-picture",v="data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%271%200.75%2014%2014%27%20id%3D%27"+L+"%27%3E%3Cpath%20d%3D%27M3.2%208%206.4%2011.2%2012.8%203.2%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272.56%27%2F%3E%3C%2Fsvg%3E",Y="--sf-facet-tick",U="[&_[data-sf-card-state~=selected]_.sf-card[style*=sf-facet-tick-picture]]:[background-image:none]! [&_[data-sf-card-state~=selected]_.sf-card[style*=sf-facet-tick-picture]]:[background-color:var(--accent-ink)]! [&_[data-sf-card-state~=selected]_.sf-card[style*=sf-facet-tick-picture]]:[-webkit-mask:var(--sf-facet-tick)_center/cover_no-repeat] [&_[data-sf-card-state~=selected]_.sf-card[style*=sf-facet-tick-picture]]:[mask:var(--sf-facet-tick)_center/cover_no-repeat]";function $(e,n){return{facetLabel:e.label,facetName:"",facetCount:String(e.count),facetColour:e.swatch??"",facetTickFill:n?"main":"",facetTick:n?v:"",facetTickMark:"tick",facetRadioMark:"",facetDot:""}}function j(e,n){return{facetLabel:"",facetName:e.label,facetCount:String(e.count),facetColour:"",facetTickFill:n?"main":"",facetTick:"",facetTickMark:"",facetRadioMark:"radio",facetDot:n?"main":""}}const q=["Text","ImageBlock",t],h={...E,direction:"row",align:"center",phoneRow:2,sharePhone:"content",wrapPhone:"nowrap"},k=13,s=10,w=2,_=1,o="2026-12-18",a="storefront sections owner",V=[{part:"facetLabel",kind:"size",value:k,reason:"The old rail's option words were 13 px; kept so no facet word moves.",owner:a,due:o},{part:"facetName",kind:"size",value:k,reason:"A type's name takes the facet words' 13 px, so the type picker has the same rail look.",owner:a,due:o},{part:"Option",kind:"gap",value:s,reason:"The old rail's 10 px between the option and its count; kept so no word moves.",owner:a,due:o},{part:"Choice",kind:"gap",value:s,reason:"The old rail's 10 px between tick box, dot and words; kept so no word moves.",owner:a,due:o},{part:"Tick box",kind:"padding",value:1,reason:"The 1 px ring round the tick box, drawn as the Box's own Fill inside 1 px padding.",owner:a,due:o},{part:"Radio",kind:"padding",value:1,reason:"The 1 px ring round the round mark, drawn as the Box's own Fill inside 1 px padding.",owner:a,due:o},{part:"Radio ground",kind:"padding",value:3,reason:"The 3 px between the round mark's ring and its 8 px dot, as the browser's own radio.",owner:a,due:o},{part:"Tick",kind:"box",value:14,reason:"The tick box's ground inside its 1 px ring: 16 px less the ring each side, the browser's own checkbox size.",owner:a,due:o},{part:"Radio ground",kind:"box",value:14,reason:"The round mark's ground inside its 1 px ring: 16 px less the ring each side, the browser's own radio size.",owner:a,due:o},{part:"Ring",kind:"box",value:13,reason:"The colour dot's 1 px ring as the old rail drew it (13 px round); kept so no swatch or word moves.",owner:a,due:o},{part:"Colour",kind:"box",value:11,reason:"The colour dot inside its 1 px ring (13 px less the ring each side), as the old rail drew it.",owner:a,due:o},{part:"Tick box",kind:"corner",value:w,reason:"The browser's own checkbox corners (2 px on 16 px), below the shell's smallest corner step (--radius-sm 4 px); kept so the tick box keeps the rail's look.",owner:a,due:o},{part:"Tick",kind:"corner",value:_,reason:"The tick box's ground inside its 1 px ring follows the box's 2 px corners (2 - 1).",owner:a,due:o},{part:"aside",kind:"padding",value:22,reason:"The rail box's right padding at lg (PlpSidebar lg:pr-[22px]): 12 px room for the picked frame plus main's 10 px scrollbar room, so the content stays main's 258 px wide.",owner:a,due:o}],A={size:k,case:"capitalize",lineHeight:1.5},F={size:k,case:"none",lineHeight:1.5},N={textStyle:"body-5",size:11,case:"none",letterSpacing:0,lineHeight:1.5},g="muted",b="surface",P=()=>({type:t,props:{...h,name:"Option",justify:"between",gap:s,gapPhone:s,...i(4,12)},slots:{[r]:[{type:t,props:{...h,name:"Choice",gap:s,gapPhone:s,minWidth:0},slots:{[r]:[{type:t,props:{...d,name:"Tick mark",[l]:["facetTickMark"]},slots:{[r]:[{type:t,props:{...T(16,{sectionCorners:w,fillColor:g,[c]:"facetTickFill",...i(1,1)}),name:"Tick box"},slots:{[r]:[{type:t,props:{...T(14,{sectionCorners:_,fillColor:b,[c]:"facetTickFill",[C]:"facetTick",...i(0,0)}),name:"Tick"}}]}}]}},{type:t,props:{...d,name:"Round mark",[l]:["facetRadioMark"]},slots:{[r]:[{type:t,props:{...p(16,{fillColor:g,[c]:"facetTickFill",...i(1,1)}),name:"Radio"},slots:{[r]:[{type:t,props:{...p(14,{fillColor:b,...i(3,3)}),name:"Radio ground"},slots:{[r]:[{type:t,props:{...p(8,{[c]:"facetDot",...i(0,0)}),name:"Dot"}}]}}]}}]}},{type:t,props:{...d,name:"Swatch",[l]:["facetColour"]},slots:{[r]:[{type:t,props:{...p(13,{sectionBorder:{width:1}}),name:"Ring"},slots:{[r]:[{type:t,props:{...p(11,{[c]:"facetColour"}),name:"Colour"}}]}}]}},{type:t,props:{...d,name:"Label",[l]:["facetLabel"]},slots:{[r]:[f("facetLabel",{...m,tag:"span",minWidth:0},A)]}},{type:t,props:{...d,name:"Name",[l]:["facetName"]},slots:{[r]:[f("facetName",{...m,tag:"span",minWidth:0},F)]}}]}},f("facetCount",{...R,tag:"span"},N)]}});function S(e){return y([P()],(n,u)=>u==="0"?`${e}~facet`:`${e}~facet.${u.slice(2)}`)}function J(e){if(e[x]!==void 0)return e;const n=typeof e.id=="string"&&e.id.trim()?e.id:O;return{...e,[x]:S(n)}}export{G as FACET_ROW_FIELDS,q as FACET_TEMPLATE_ALLOW,H as FACET_TEMPLATE_LABEL,x as FACET_TEMPLATE_SLOT,v as FACET_TICK,U as FACET_TICK_INK_CLASS,L as FACET_TICK_MARK,Y as FACET_TICK_VAR,V as NAMED_EXCEPTIONS,h as ONE_ROW,$ as facetRow,S as facetRowSeed,j as typeRow,J as withFacetTemplate};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{BOX_TYPE as s,CONTAINER_BLOCKS_SLOT as u}from"efficient-web-builder/format/lib/document/container-blocks";import{DIM as D,INNER_BOX as l,boxPadding as C,seedNodes as
|
|
1
|
+
import{BOX_TYPE as s,CONTAINER_BLOCKS_SLOT as u}from"efficient-web-builder/format/lib/document/container-blocks";import{DIM as D,INNER_BOX as l,boxPadding as C,seedNodes as m,token as E}from"efficient-web-builder/format/lib/document/seed-parts";import{CARD_ROW_FIELD_PROP as S}from"efficient-web-builder/format/lib/content/card-template";import{CARDS_BODY_LOOK as x}from"efficient-web-builder/format/lib/document/blocks/general/Cards/card-seed";import{THEME_CARD_IMAGE_BG as I,resolveBoundCardImageBackground as L}from"efficient-web-builder/format/lib/content/card-image-background";import{SHARED_ROWS_KEY as k}from"efficient-web-builder/render/lib/content/box-shared-columns";import{GRID_CARD_SHOW as w,LISTING_CARD_SHOW as b}from"../sections/card-show-defaults.js";import{ALLOY_WHEELS_LISTING_TYPE as K}from"../document/document-nodes.js";const _="ProductPicture",y="ProductSpecs",P="ProductBuy",g="ProductPrice",f="ProductColour",A="ProductSize",R="ProductEyebrow",p="ProductName",Q=[_,R,p,y,g,f,A,P],ee=[{key:"name",label:"Name"},{key:"eyebrow",label:"Eyebrow"},{key:"note",label:"Note"},{key:"href",label:"Product page",kind:"link"},{key:"colour",label:"Product colour",kind:"colour"},{key:"colourVaried",label:"Product colour, varied",kind:"colour"},{key:"colourRandom",label:"Random colour",kind:"colour"}],N={...l,gap:0,gapPhone:0,...C(32,32,32,32),[k]:"shared"},h=(e,t="ProductGrid")=>typeof e.id=="string"&&e.id.trim()?e.id:t,a=(e,t)=>typeof e=="boolean"?e:t,U={type:"Text",props:{...D,tag:"p",text:"",[S]:"note",_partStyles:{text:{...x,...E("body",14),lineHeight:1.375}}}};function H(e,t={}){const r=e.dynamic===!0,o={},i=r?t.legacyWellHonoured?e.imageBackground??I:L(e.imageBackground):e.imageBackground;i!==void 0&&(o.imageBackground=i);for(const d of["cardImage","coverIndex","indexBadge","showBadge"])e[d]!==void 0&&(o[d]=e[d]);const c=t.showRest??w,n={price:a(e.showCardPrice,!0),finishes:a(e.showCardFinishes,!0),sizes:a(e.showCardSizes,c.showCardSizes),buy:a(e.showCardBuy,c.showCardBuy),page:a(e.showCardPage,c.showCardPage)},O={...N,name:"Card"};e.outline==="hairline"&&(O.sectionBorder={width:1,style:"solid"});const T=[{type:_,props:o},{type:R},{type:p},{type:y,props:{sizes:n.sizes}},...n.price?[{type:g}]:[],...n.finishes?[{type:f}]:[],...n.buy||n.page?[{type:P,props:{buy:n.buy,page:n.page}}]:[]];return{type:s,props:O,slots:{[u]:T}}}const G={...l,gap:0,gapPhone:0,...C(0,0,0,0)},Y={...l,gap:8,gapPhone:8,...C(16,20,16,20)},z={role:"heading",size:18,weight:500,case:"none",letterSpacing:-.015,lineHeight:1.2},B=24;function W(e){const t={frame:"full"};for(const o of["cardImage","showBadge"])e[o]!==void 0&&(t[o]=e[o]);const r={type:s,props:{...Y,name:"Copy"},slots:{[u]:[{type:p,props:{fixedHeight:!1,_partStyles:{"@name":z}}},U,{type:g}]}};return{type:s,props:{...G,name:"Card"},slots:{[u]:[{type:_,props:t},r]}}}function te(e){if(e.template!==void 0)return e;const t=h(e);return{...e,gap:e.gap??B,gapPhone:e.gapPhone??B,template:m([W(e)],(r,o)=>`${t}~card-${o}-${r}`)}}function X(e,t={}){const r=h(e,t.section);return m([H(e,t)],(o,i)=>`${r}~card-${i}-${o}`)}function oe(e){return $(e,{showRest:b,section:K})}function $(e,t={}){return e.template!==void 0?e:{...e,template:X(e,t)}}export{P as PRODUCT_BUY_BLOCK,ee as PRODUCT_CARD_FIELDS,Q as PRODUCT_CARD_SLOT_BLOCKS,f as PRODUCT_COLOUR_BLOCK,R as PRODUCT_EYEBROW_BLOCK,p as PRODUCT_NAME_BLOCK,_ as PRODUCT_PICTURE_BLOCK,g as PRODUCT_PRICE_BLOCK,A as PRODUCT_SIZE_BLOCK,y as PRODUCT_SPECS_BLOCK,W as kitCardSeed,H as productCardSeed,X as productCardTemplate,te as withKitCardTemplate,oe as withListingCardTemplate,$ as withProductCardTemplate};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type Props = Record<string, unknown>;
|
|
2
|
+
export declare const RAIL_TEMPLATE_SLOT = "railTemplate";
|
|
3
|
+
export declare const RAIL_TEMPLATE_LABEL = "Filter group template";
|
|
4
|
+
export declare const RAIL_HEAD_TEMPLATE_SLOT = "railHeadTemplate";
|
|
5
|
+
export declare const RAIL_HEAD_TEMPLATE_LABEL = "Filter head template";
|
|
6
|
+
export declare const RAIL_GROUP_FIELD = "railGroup";
|
|
7
|
+
export declare const RAIL_ROW_FIELDS: readonly [{
|
|
8
|
+
readonly key: "railGroup";
|
|
9
|
+
readonly label: "Filter group";
|
|
10
|
+
}];
|
|
11
|
+
export declare const RAIL_OPTIONS_PART = "options";
|
|
12
|
+
export declare const RAIL_END_PART = "end";
|
|
13
|
+
export declare const RAIL_TEMPLATE_ALLOW: readonly ["Text", "ImageBlock", "Flex"];
|
|
14
|
+
export declare function withRailTemplates(props: Props): Props;
|
|
15
|
+
export declare const railRow: (word: string) => Record<typeof RAIL_GROUP_FIELD, string>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{HOST_PART_TYPE as c}from"efficient-web-builder/format/lib/content/card-template";import{BOX_TYPE as r,CONTAINER_BLOCKS_SLOT as i}from"efficient-web-builder/format/lib/document/container-blocks";import{rowFieldTextSeed as m}from"efficient-web-builder/format/lib/document/blocks/general/Cards/card-seed";import{INNER_BOX as a,LABEL_FACE as O,TEXT as p,boxPadding as l,seedNodes as L}from"efficient-web-builder/format/lib/document/seed-parts";import{say as P}from"efficient-web-builder/format/lib/editor-words";import{FACET_TEMPLATE_ALLOW as R,ONE_ROW as u}from"./facet-row-seed.js";import{ALLOY_WHEELS_LISTING_TYPE as f}from"../document/document-nodes.js";const _="railTemplate",W="Filter group template",d="railHeadTemplate",$="Filter head template",s="railGroup",Y=[{key:s,label:"Filter group"}],g="options",S="end",b=R,x={...O,size:11,letterSpacing:.2,lineHeight:1.5},I={fontRole:"heading",size:18,weight:500,case:"upper",letterSpacing:-.01,lineHeight:1.5},T=(t,e)=>({type:c,props:{name:t,label:e}}),h=()=>({type:r,props:{...a,name:"Group",gap:0,startsOpen:!0},slots:{rowTitle:[m(s,{...p,tag:"span"},x)],[i]:[{type:r,props:{...a,name:"Options",...l(0,0),sectionPaddingBottom:12,sectionPaddingBottomPhone:12},slots:{[i]:[T(g,"Filter options")]}}]}}),y=()=>({type:r,props:{...u,name:"Head",justify:"between",...l(0,0),sectionPaddingBottom:8,sectionPaddingBottomPhone:8},slots:{[i]:[{type:"Text",props:{...p,tag:"h2",text:P("Filter"),_partStyles:{text:I}}},T(S,"Clear all")]}}),E=(t,e)=>{let o=0;return(n,A)=>A==="0"?`${t}~${e}`:`${t}~${e}.${o++}`};function H(t){return L([h()],E(t,"rail"))}function B(t){return L([y()],E(t,"railhead"))}function K(t){const e=t[_]===void 0,o=t[d]===void 0;if(!e&&!o)return t;const n=typeof t.id=="string"&&t.id.trim()?t.id:f;return{...t,...e?{[_]:H(n)}:{},...o?{[d]:B(n)}:{}}}const X=t=>({[s]:t});export{S as RAIL_END_PART,s as RAIL_GROUP_FIELD,$ as RAIL_HEAD_TEMPLATE_LABEL,d as RAIL_HEAD_TEMPLATE_SLOT,g as RAIL_OPTIONS_PART,Y as RAIL_ROW_FIELDS,b as RAIL_TEMPLATE_ALLOW,W as RAIL_TEMPLATE_LABEL,_ as RAIL_TEMPLATE_SLOT,X as railRow,K as withRailTemplates};
|
|
@@ -51,6 +51,10 @@ export interface SiteIdentity {
|
|
|
51
51
|
consentEnabled: boolean;
|
|
52
52
|
consentPrivacyPage: string | null;
|
|
53
53
|
consentNoticeOptOut: boolean;
|
|
54
|
+
privacyPage: string | null;
|
|
55
|
+
termsPage: string | null;
|
|
56
|
+
footerCookieSettings: boolean;
|
|
57
|
+
footerSitemap: boolean;
|
|
54
58
|
socialLinks: SocialLinks;
|
|
55
59
|
}
|
|
56
60
|
export declare const NEUTRAL_SITE_IDENTITY: SiteIdentity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{cache as s}from"react";import{products as i}from"../api/index.js";import{cachedChrome as c}from"../chrome-cache.js";import{loadChrome as d}from"../chrome-load.js";import{NEUTRAL_SITE_NAME as a,resolveSiteName as t}from"efficient-web-builder/format/lib/content/site-name";import{EMPTY_SOCIAL_LINKS as o,normalizeSocialLinks as m}from"efficient-web-builder/format/lib/content/social-links";function p(e,n){return e?.trim()||n}function
|
|
1
|
+
import{cache as s}from"react";import{products as i}from"../api/index.js";import{cachedChrome as c}from"../chrome-cache.js";import{loadChrome as d}from"../chrome-load.js";import{NEUTRAL_SITE_NAME as a,resolveSiteName as t}from"efficient-web-builder/format/lib/content/site-name";import{EMPTY_SOCIAL_LINKS as o,normalizeSocialLinks as m}from"efficient-web-builder/format/lib/content/social-links";function p(e,n){return e?.trim()||n}function N({legalName:e,foundedYear:n,siteName:r},l=new Date().getFullYear()){const u=p(e,r);return`© ${n&&n<l?`${n}–${l}`:`${l}`} ${u}`}const g={name:a,legalName:null,foundedYear:null,faviconUrl:null,currencies:[],defaultCurrency:null,countries:[],defaultCountry:null,commerceEnabled:!0,cardPayments:!1,paymentMethods:[],paypalClientId:null,paypalEnvironment:null,squareApplicationId:null,squareLocationId:null,squareEnvironment:null,ga4MeasurementId:null,googleAdsId:null,googleAdsConversionLabel:null,metaPixelId:null,consentEnabled:!1,consentPrivacyPage:null,consentNoticeOptOut:!1,privacyPage:null,termsPage:null,footerCookieSettings:!0,footerSitemap:!0,socialLinks:o},y=s(async()=>c("site",()=>d("site",async()=>{const e=await i.getSite();return{name:t(e.name),legalName:e.legalName?.trim()||null,foundedYear:e.foundedYear??null,faviconUrl:e.faviconUrl??null,currencies:e.currencies??[],defaultCurrency:e.defaultCurrency??null,countries:e.countries??[],defaultCountry:e.defaultCountry??null,commerceEnabled:e.commerceEnabled??!0,cardPayments:e.cardPayments??!1,paymentMethods:e.paymentMethods??(e.cardPayments?["card"]:[]),paypalClientId:e.paypalClientId??null,paypalEnvironment:e.paypalEnvironment??null,squareApplicationId:e.squareApplicationId??null,squareLocationId:e.squareLocationId??null,squareEnvironment:e.squareEnvironment??null,ga4MeasurementId:e.ga4MeasurementId??null,googleAdsId:e.googleAdsId??null,googleAdsConversionLabel:(e.googleAdsId?e.googleAdsConversionLabel:null)??null,metaPixelId:e.metaPixelId??null,consentEnabled:e.consentEnabled??!1,consentPrivacyPage:e.consentPrivacyPage??null,consentNoticeOptOut:e.consentNoticeOptOut??!1,privacyPage:e.privacyPage??null,termsPage:e.termsPage??null,footerCookieSettings:e.footerCookieSettings??!0,footerSitemap:e.footerSitemap??!0,socialLinks:m(e.socialLinks)}},g))),f=async()=>(await y()).value,A=async()=>(await f()).name,x={name:a,legalName:null,foundedYear:null,faviconUrl:null,currencies:[{code:"USD",symbol:"$",decimalPlaces:2,isDefault:!0}],defaultCurrency:"USD",countries:[{code:"US",name:"United States",currency:"USD",url:"",isDefault:!0,chargeTax:!1,taxDisplay:"none",taxName:"",taxRate:null,postalLabel:"Zip Code"}],defaultCountry:"US",commerceEnabled:!0,cardPayments:!0,paymentMethods:["card"],paypalClientId:null,paypalEnvironment:null,squareApplicationId:null,squareLocationId:null,squareEnvironment:null,ga4MeasurementId:null,googleAdsId:null,googleAdsConversionLabel:null,metaPixelId:null,consentEnabled:!1,consentPrivacyPage:null,consentNoticeOptOut:!1,privacyPage:null,termsPage:null,footerCookieSettings:!0,footerSitemap:!0,socialLinks:o};export{g as NEUTRAL_SITE_IDENTITY,a as NEUTRAL_SITE_NAME,x as PREVIEW_SITE_IDENTITY,f as loadSiteIdentity,y as loadSiteIdentityResult,A as loadSiteName,N as resolveCopyright,p as resolveCopyrightName,t as resolveSiteName};
|
|
@@ -14,5 +14,7 @@ export declare const TAB_PILLS: {
|
|
|
14
14
|
readonly list: "flex flex-wrap gap-2 px-1 pb-1 max-view-wide:min-w-max max-view-wide:flex-nowrap";
|
|
15
15
|
readonly tab: (current: boolean) => string;
|
|
16
16
|
};
|
|
17
|
-
export declare function
|
|
17
|
+
export declare function menuLayoutOf(direction: unknown): "row" | "column";
|
|
18
|
+
export declare function marksCurrentLink(layout: "row" | "column" | undefined, currentPage: unknown): boolean;
|
|
19
|
+
export declare function currentLinkIndex(hrefs: readonly string[], pagePath: string | null | undefined, pageQuery: string): number;
|
|
18
20
|
export declare function showCurrentTab(strip: HTMLElement | null, behavior: ScrollBehavior): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{normalizePath as
|
|
1
|
+
import{normalizePath as s}from"efficient-web-builder/format/lib/popup/rules";import{menuLinkKind as u}from"../menu-link.js";import{linkParts as b}from"../links/link-rules.js";import{plpFilterQuery as m}from"../wheels/plp-filters.js";const d="[scrollbar-width:none] [&::-webkit-scrollbar]:hidden",w="text-[length:var(--size-label,13px)]",g={rowLink:"relative opacity-100",row:"pointer-events-none absolute inset-x-0 -bottom-2 h-[2px] bg-accent",tab:"absolute inset-x-0 -bottom-px h-[2px] bg-accent"},y={list:`m-0 flex list-none items-stretch gap-0 overflow-auto p-0 ${d}`,item:(e,t)=>[`relative isolate flex whitespace-nowrap border-r border-line px-[26px] py-[18px] font-mono ${w} uppercase tracking-[0.22em]`,e?"border-l border-line":"",t?"":"[&_*]:pointer-events-none [&_a]:pointer-events-auto"].join(" "),tab:e=>["block transition-colors after:absolute after:inset-0 after:-z-1",e?"text-fg":"text-fg-dim hover:text-fg"].join(" "),underline:g.tab},E={nav:"-mx-1 [scrollbar-width:none] max-view-wide:overflow-x-auto [&::-webkit-scrollbar]:hidden",list:"flex flex-wrap gap-2 px-1 pb-1 max-view-wide:min-w-max max-view-wide:flex-nowrap",tab:e=>`flex flex-col gap-0.5 rounded-[var(--sf-button-radius,999px)] border px-5 py-2.5 transition-colors ${e?"border-accent bg-accent text-accent-ink":"border-line text-fg hover:border-accent hover:text-accent"}`};function C(e){return e==="row"?"row":"column"}function R(e,t){return e==="row"&&t===!0}function f(e){return[...new URLSearchParams(m(e))].map(([t,r])=>`${t}=${r}`)}function S(e,t,r){if(!t)return-1;const n=s(t),o=new Set(f(r));let i=-1,c=-1;return e.forEach((l,p)=>{if(u(l)!=="page"||s(l)!==n)return;const a=f(b(l).query);a.every(x=>o.has(x))&&a.length>c&&(i=p,c=a.length)}),i}function _(e,t){let r=e?.querySelector('[aria-current="page"]')??null;if(!e||!r)return;for(;r.parentElement&&r.parentElement!==e;)r=r.parentElement;const n=e.getBoundingClientRect(),o=r.getBoundingClientRect(),i=o.left<n.left?o.left-n.left:o.right>n.right?Math.min(o.right-n.right,o.left-n.left):0;i!==0&&e.scrollBy({left:i,behavior:t})}export{g as CURRENT_LINE,y as TAB_CELLS,E as TAB_PILLS,S as currentLinkIndex,R as marksCurrentLink,C as menuLayoutOf,_ as showCurrentTab};
|
|
@@ -8,6 +8,14 @@ export declare const AlloyWheelsListingSlots: {
|
|
|
8
8
|
type: "slot";
|
|
9
9
|
allow: ("Flex" | "Text" | "ImageBlock")[];
|
|
10
10
|
};
|
|
11
|
+
railTemplate: {
|
|
12
|
+
type: "slot";
|
|
13
|
+
allow: ("Flex" | "Text" | "ImageBlock")[];
|
|
14
|
+
};
|
|
15
|
+
railHeadTemplate: {
|
|
16
|
+
type: "slot";
|
|
17
|
+
allow: ("Flex" | "Text" | "ImageBlock")[];
|
|
18
|
+
};
|
|
11
19
|
};
|
|
12
20
|
export declare const ALLOYWHEELSLISTING_PH: {
|
|
13
21
|
heading: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{PLP_DEFAULT_KINDS as
|
|
1
|
+
import{PLP_DEFAULT_KINDS as o}from"../../../../catalog/plp-item.js";import{PLP_COLUMNS_DEFAULT as e}from"../../../../wheels/plp-grid.js";import{ProductGridSlots as r}from"../ProductGrid/meta.js";import{FACET_TEMPLATE_ALLOW as l,FACET_TEMPLATE_SLOT as L}from"../../../../content/facet-row-seed.js";import{RAIL_HEAD_TEMPLATE_SLOT as i,RAIL_TEMPLATE_ALLOW as t,RAIL_TEMPLATE_SLOT as s}from"../../../../content/rail-row-seed.js";const n={template:r.template,[L]:{type:"slot",allow:[...l]},[s]:{type:"slot",allow:[...t]},[i]:{type:"slot",allow:[...t]}},_={heading:"Alloy wheels",intro:"Filter by brand, colour, size and fitment to find your set."},p={label:"List",fields:n,defaultProps:{heading:"",intro:"",askForCar:!0,gateHeading:"",gateIntro:"",kinds:[...o],perPage:24,columns:e,defaultSort:"recommended",showInStock:!0,showCollection:!0,showPrice:!0}};export{_ as ALLOYWHEELSLISTING_PH,p as AlloyWheelsListingMeta,n as AlloyWheelsListingSlots};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{PAGE_TITLE_LEVEL_PROP as m}from"efficient-web-builder/format/lib/document/one-h1";import l from"../../../../../components/wheels-plp/AlloyWheelsListing.js";import{hidableText as a}from"efficient-easel/screen/lib/document/hidable";import{asPlpSortKey as f,listingHiddenFacets as L}from"../../../../wheels/plp-filters.js";import{addressQueryOf as g}from"../../../../wheels/selected-ranges.js";import{cardHoverOf as T}from"efficient-web-builder/format/lib/animation/hover";import{phHide as d}from"efficient-web-builder/render/lib/document/blocks/scaffold";import{headInOwnBox as h}from"efficient-web-builder/render/lib/sections/section-to-box";import{FACET_TEMPLATE_SLOT as E}from"../../../../content/facet-row-seed.js";import{RAIL_HEAD_TEMPLATE_SLOT as c,RAIL_TEMPLATE_SLOT as _}from"../../../../content/rail-row-seed.js";import{AlloyWheelsListingMeta as s,ALLOYWHEELSLISTING_PH as n}from"./meta.js";import{ALLOY_WHEELS_LISTING_TYPE as A}from"../../../document-nodes.js";const R={...s,render:e=>{const t=h(e),i=o=>t?void 0:o;return r(l,{titleLevel:e[m],heading:i(d(e.heading,n.heading,e.editor)),intro:i(d(e.intro,n.intro,e.editor)),omitHead:t,askForCar:e.askForCar!==!1,addressQuery:g(e)||void 0,gateHeading:a(e.gateHeading),gateIntro:a(e.gateIntro),perPage:e.perPage,columns:e.columns,defaultSort:f(e.defaultSort),ownerId:typeof e.id=="string"?e.id:"",template:e.template,facetTemplate:e[E],railTemplate:e[_],railHeadTemplate:e[c],hover:T(e,A),hiddenFacets:L(e),showPrice:e.showPrice,showInStock:e.showInStock!==!1,kinds:e.kinds,products:e.products,wheels:e.wheels,fieldUsage:e.fieldUsage,editing:e.editor?.isEditing})}};export{R as AlloyWheelsListingRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{cardTemplateSlot as e}from"efficient-web-builder/format/lib/content/card-template";const
|
|
1
|
+
import{cardTemplateSlot as e}from"efficient-web-builder/format/lib/content/card-template";import{DETAIL_ROWS_ROOM as t}from"../../../../sections/band-padding.js";const a={template:e()},i=[{image:"",eyebrow:"Feature eyebrow",title:"Feature *one.*",copy:"Describe this feature in a sentence or two.",tag:"01 · Detail"},{image:"",eyebrow:"Feature eyebrow",title:"Feature *two.*",copy:"Describe this feature in a sentence or two.",tag:"02 · Detail"},{image:"",eyebrow:"Feature eyebrow",title:"Feature *three.*",copy:"Describe this feature in a sentence or two.",tag:"03 · Detail"}],s={label:"Feature Rows",innerPadding:t,fields:a,defaultProps:{dynamic:!1,rows:[],startLeft:!1,layout:"even",padTop:100,padBottom:100}};export{i as DETAILROWS_SCAFFOLD_ROWS,s as DetailRowsMeta,a as DetailRowsSlots};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import d from"../../../../../components/pdp-dynamic/DynamicDetailRows.js";import
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import d from"../../../../../components/pdp-dynamic/DynamicDetailRows.js";import a from"../../../../../components/DetailRows.js";import{phRows as r}from"efficient-web-builder/render/lib/document/blocks/scaffold";import{bandPadProps as i}from"../../../../sections/band-padding.js";import{DetailRowsMeta as m,DETAILROWS_SCAFFOLD_ROWS as n}from"./meta.js";const y={...m,render:t=>t.dynamic?e(d,{rowsFrom:t.rowsFrom==="details"?"details":"story",startLeft:t.startLeft,pads:i(t),editing:t.editor?.isEditing,template:t.template,nodeId:typeof t.id=="string"?t.id:void 0}):e(a,{rows:r(t.rows,n,t.editor),startLeft:t.startLeft,layout:t.layout,pads:i(t),editing:t.editor?.isEditing,template:t.template,nodeId:typeof t.id=="string"?t.id:void 0})};export{y as DetailRowsRender};
|
|
@@ -8,5 +8,13 @@ export declare const FilterBlockSlots: {
|
|
|
8
8
|
type: "slot";
|
|
9
9
|
allow: ("Flex" | "Text" | "ImageBlock")[];
|
|
10
10
|
};
|
|
11
|
+
railTemplate: {
|
|
12
|
+
type: "slot";
|
|
13
|
+
allow: ("Flex" | "Text" | "ImageBlock")[];
|
|
14
|
+
};
|
|
15
|
+
railHeadTemplate: {
|
|
16
|
+
type: "slot";
|
|
17
|
+
allow: ("Flex" | "Text" | "ImageBlock")[];
|
|
18
|
+
};
|
|
11
19
|
};
|
|
12
20
|
export declare const FilterBlockMeta: Omit<BlockRender, "render">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{phoneKey as
|
|
1
|
+
import{phoneKey as t}from"efficient-easel/draw";import{FACET_TEMPLATE_ALLOW as l,FACET_TEMPLATE_SLOT as L}from"../../../../content/facet-row-seed.js";import{FILTER_TEMPLATE_ALLOW as T}from"../../../../content/filter-card-seed.js";import{RAIL_HEAD_TEMPLATE_SLOT as E,RAIL_TEMPLATE_ALLOW as o,RAIL_TEMPLATE_SLOT as e}from"../../../../content/rail-row-seed.js";import{DEFAULT_FILTER_LOOK as _,DEFAULT_FILTER_LOOK_PHONE as r,DEFAULT_OPENING_SORT as A,DEFAULT_SHOWN_FILTERS as p}from"../../../../sections/shopper-filters.js";const s={template:{type:"slot",allow:[...T]},[L]:{type:"slot",allow:[...l]},[e]:{type:"slot",allow:[...o]},[E]:{type:"slot",allow:[...o]}},S={label:"Filters",fields:s,defaultProps:{look:_,[t("look")]:r,filtersShown:[...p],showSort:!0,openingSort:A,filtersBelow:!1}};export{S as FilterBlockMeta,s as FilterBlockSlots};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as o}from"react/jsx-runtime";import{phoneKey as t}from"efficient-easel/draw";import i from"../../../../../components/catalog/ShopperFilters.js";import{FACET_TEMPLATE_SLOT as r}from"../../../../content/facet-row-seed.js";import{
|
|
1
|
+
import{jsx as o}from"react/jsx-runtime";import{phoneKey as t}from"efficient-easel/draw";import i from"../../../../../components/catalog/ShopperFilters.js";import{FACET_TEMPLATE_SLOT as r}from"../../../../content/facet-row-seed.js";import{RAIL_HEAD_TEMPLATE_SLOT as l,RAIL_TEMPLATE_SLOT as m}from"../../../../content/rail-row-seed.js";import{FIRST_ROWS_PROP as n}from"../../../../wheels/shopper-first-paint.js";import{parseFilterLook as a,parseFilterLookPhone as f,parseOpeningSort as S,parseShownFilters as T}from"../../../../sections/shopper-filters.js";import{FilterBlockMeta as d}from"./meta.js";const F={...d,render:e=>o(i,{owner:{id:String(e.id??""),template:e.template,facetTemplate:e[r],railTemplate:e[m],railHeadTemplate:e[l]},look:a(e.look),lookPhone:f(e[t("look")]),shown:T(e.filtersShown),showSort:e.showSort!==!1,openingSort:S(e.openingSort),filtersBelow:e.filtersBelow===!0,fieldUsage:e.fieldUsage,firstRows:e[n],editing:e.editor?.isEditing})};export{F as FilterBlockRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{PH as e}from"efficient-web-builder/format/lib/document/blocks/placeholders";const
|
|
1
|
+
import{FRAME_120 as l}from"../../../../sections/band-padding.js";import{PH as e}from"efficient-web-builder/format/lib/document/blocks/placeholders";const r={num:e.sectionNumber,title:e.headingAccent,link:e.viewAll},t={items:{type:"slot",allow:["GalleryItem"]}},i={label:"Gallery",innerPadding:l,fields:t,defaultProps:{dynamic:!1,mediaZone:"all",photoDisplay:"covers",num:"",title:"",linkText:"",linkHref:"/contact",galleryHref:"/gallery",previewHover:!1,displayPhone:{tag:!1}}};export{r as GALLERY_B_PH,i as GalleryBMeta,t as GalleryBSlots};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Fragment as
|
|
1
|
+
import{Fragment as g,jsx as a}from"react/jsx-runtime";import{phoneKey as H}from"efficient-easel/draw";import k,{SourcedGalleryGrid as P}from"../../../../../components/pdp-dynamic/DynamicGalleryGrid.js";import{declaredBlockSource as h,sourcedRows as x}from"efficient-web-builder/format/lib/content/block-sources";import y from"../../../../../components/GalleryGrid.js";import{PRODUCT_PICTURES_SOURCE as w,productPictureTiles as T,productPicturesLayout as v}from"../../../../sections/product-pictures.js";import{hidableText as d}from"efficient-easel/screen/lib/document/hidable";import{parseSectionHeadPlacement as G}from"efficient-web-builder/format/lib/sections/section-head-placement";import{phHide as t}from"efficient-web-builder/render/lib/document/blocks/scaffold";import{bandPadProps as r}from"../../../../sections/band-padding.js";import{GalleryBMeta as B,GALLERY_B_PH as l}from"./meta.js";const j={...B,render:e=>{const m=G(e.headPlacement)==="own-box",i=n=>m?void 0:n,c={num:i(t(e.num,l.num,e.editor)),title:i(t(e.title,l.title,e.editor)),omitHead:m,linkText:i(t(e.linkText,l.link,e.editor)),linkHref:i(d(e.linkHref)||"/contact"),galleryHref:d(e.galleryHref)||"/gallery",previewHover:e.previewHover,display:e.display,displayPhone:e.displayPhone,styleOwner:e.id,layout:e.layout,layoutPhone:e.layoutPhone,columns:e.columns,columnsMobile:e.columnsMobile,gap:e.gap,gapPhone:e[H("gap")],pads:r(e),editing:e.editor?.isEditing},u=h(e);if(u===w){const n=!!e.editor?.isEditing,o=T(e,n,e.limit);return!n&&o.length===0?a(g,{}):a(y,{...c,layout:v(e),sourced:o})}if(u!==""){const n=!!e.editor?.isEditing,{rows:o,sample:f}=x(e,n);return a(P,{num:i(t(e.num,l.num,e.editor)),title:i(t(e.title,l.title,e.editor)),linkText:i(t(e.linkText,l.link,e.editor)),linkHref:i(d(e.linkHref)||"/contact"),omitHead:m,rows:f?[]:o,limit:e.limit,layout:e.layout,editing:n,pads:r(e)})}return e.dynamic?a(k,{num:i(t(e.num,l.num,e.editor)),title:i(t(e.title,l.title,e.editor)),linkText:i(t(e.linkText,l.link,e.editor)),linkHref:i(d(e.linkHref)||"/contact"),omitHead:m,galleryHref:d(e.galleryHref)||"/gallery",zone:e.mediaZone||"all",photoDisplay:e.photoDisplay||"covers",previewHover:e.previewHover,display:e.display,displayPhone:e.displayPhone,styleOwner:e.id,editing:e.editor?.isEditing,pads:r(e)}):a(y,{...c,items:e.items})}};export{j as GalleryBRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{DEFAULT_TITLE_SIZE as t}from"../../../../sections/product-grid-title.js";import{DEFAULT_MORE_PRODUCTS as
|
|
1
|
+
import{DEFAULT_TITLE_SIZE as t}from"../../../../sections/product-grid-title.js";import{DEFAULT_MORE_PRODUCTS as r,DEFAULT_PER_PAGE as l}from"../../../../sections/product-grid-pages.js";import{PRODUCT_GRID_ROOM as e}from"../../../../sections/band-padding.js";import{cardTemplateSlot as i}from"efficient-web-builder/format/lib/content/card-template";import{PRODUCT_CARD_SLOT_BLOCKS as m}from"../../../../content/product-card-seed.js";const o=i(),d={products:{type:"slot"},template:{...o,allow:[...o.allow,...m]}},P={label:"Product Grid",innerPadding:e,fields:d,defaultProps:{dynamic:!1,num:"",title:"",titleSize:t,padTop:120,description:"",linkText:"",linkHref:"",columns:4,limit:8,showAll:!1,moreProducts:r,perPage:l,source:null}};export{P as ProductGridMeta,d as ProductGridSlots};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as g}from"react/jsx-runtime";import{gridLimitOf as
|
|
1
|
+
import{jsx as g}from"react/jsx-runtime";import{gridLimitOf as H}from"../../../../sections/product-grid-pages.js";import{FIRST_COUNT_IN_CHIPS_PROP as b}from"../../../../wheels/shopper-first-paint.js";import{phoneKey as o,tabletKey as P}from"efficient-easel/draw";import C from"../../../../../components/pdp-dynamic/DynamicRelatedProducts.js";import{DEFAULT_RELATIONSHIP as s}from"../../../../catalog/relationships.js";import{resolveWidth as y}from"efficient-web-builder/format/lib/content/section-width";import R from"../../../../../components/ProductGridSection.js";import{relatedCardCount as _}from"../../../../catalog/related-cards.js";import{hidableText as k}from"efficient-easel/screen/lib/document/hidable";import{cardHoverOf as h}from"efficient-web-builder/format/lib/animation/hover";import{parseSectionHeadPlacement as T}from"efficient-web-builder/format/lib/sections/section-head-placement";import{PH as d}from"efficient-web-builder/format/lib/document/blocks/placeholders";import{phHide as t}from"efficient-web-builder/render/lib/document/blocks/scaffold";import{PRODUCTGRID_PH as a}from"../placeholders.js";import{PRODUCT_GRID_TYPE as I}from"../../../document-nodes.js";import{parseMoreProducts as O}from"../../../../sections/product-grid-pages.js";import{ProductGridMeta as S}from"./meta.js";import{bandPadProps as D}from"../../../../sections/band-padding.js";const Z={...S,render:e=>{const l=typeof e.id=="string"?e.id:"",c=e.template;if(e.dynamic){const n=T(e.headPlacement)==="own-box",m=x=>n?void 0:x;return g(C,{num:m(t(e.num,a.num,e.editor)),title:m(t(e.title,d.sectionHeading,e.editor)),description:m(t(e.description,d.body,e.editor)),omitHead:n,columns:typeof e.columns=="number"?e.columns:3,columnsPhone:e[o("columns")],columnsTablet:e[P("columns")],gap:e.gap,gapPhone:e[o("gap")],cardCount:_(e.limit),relationship:typeof e.relationship=="string"?e.relationship:s,hover:h(e,I),ownerId:l,template:c,cardImage:e.cardImage,outline:e.outline,indexBadge:e.indexBadge,editing:e.editor?.isEditing})}const r=t(e.linkText,a.link,e.editor),u=e.source,w=y(e,"full"),f=T(e.headPlacement)==="own-box",i=n=>f?void 0:n;return g(R,{gap:e.gap,gapPhone:e[o("gap")],contentCapped:w.mode==="page",num:i(t(e.num,a.num,e.editor)),title:i(t(e.title,d.sectionHeading,e.editor)),titleSize:e.titleSize,noTop:f,pads:D(e),description:i(t(e.description,d.body,e.editor)),link:i(r?{text:r,href:k(e.linkHref)||"#"}:void 0),products:e.products,wheels:e.wheels,source:u?.slug?u:void 0,catalog:e.catalog,catalogTotal:e.catalogTotal,firstCountInChips:e[b]===!0,kinds:e.kinds,fieldUsage:e.fieldUsage,columns:e.columns,columnsPhone:e[o("columns")],columnsTablet:e[P("columns")],limit:H({limit:e.limit,showAll:e.showAll}),moreProducts:O(e.moreProducts),perPage:e.perPage,editing:e.editor?.isEditing,hover:h(e,I),ownerId:l,template:c})}};export{Z as ProductGridRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{DEALER_WORDS as e}from"../../../../sections/dealer-finder.js";const l={label:"
|
|
1
|
+
import{DEALER_WORDS as e}from"../../../../sections/dealer-finder.js";const l={label:"Dealer Locations",defaultProps:{title:e.title}};export{l as DealerFinderMeta};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{PH as t}from"efficient-web-builder/format/lib/document/blocks/placeholders";import{cardTemplateSlot as
|
|
1
|
+
import{FRAME_120 as e}from"../../../../sections/band-padding.js";import{PH as t}from"efficient-web-builder/format/lib/document/blocks/placeholders";import{cardTemplateSlot as l}from"efficient-web-builder/format/lib/content/card-template";const s={num:t.sectionNumber,title:"Section title",link:t.viewAll},o={template:l()},m={label:"Latest Posts",innerPadding:e,fields:o,defaultProps:{num:"",title:"",linkText:"",linkHref:"/journal",columns:3,limit:3,showAll:!1}};export{s as EVENTS_PH,m as EventsMeta,o as EventsSlots};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as f}from"react/jsx-runtime";import{phoneKey as h}from"efficient-easel/draw";import g,{readFacets as x,readTags as k}from"../../../../../components/Events.js";import{declaredBlockSource as
|
|
1
|
+
import{jsx as f}from"react/jsx-runtime";import{phoneKey as h}from"efficient-easel/draw";import g,{readFacets as x,readTags as k}from"../../../../../components/Events.js";import{declaredBlockSource as b,sourcedRows as v}from"efficient-web-builder/format/lib/content/block-sources";import{servedListOf as y,servedRowLists as E}from"../../../../content/served-lists.js";import{hidableText as S}from"efficient-easel/screen/lib/document/hidable";import{parseSectionHeadPlacement as A}from"efficient-web-builder/format/lib/sections/section-head-placement";import{phHide as r}from"efficient-web-builder/render/lib/document/blocks/scaffold";import{say as a}from"efficient-web-builder/format/lib/editor-words";import{bandPadProps as P}from"../../../../sections/band-padding.js";import{EventsMeta as F,EVENTS_PH as m}from"./meta.js";const H=()=>[{key:"sample-1",title:a("First card"),excerpt:a("A line about it appears here.")},{key:"sample-2",title:a("Second card"),excerpt:a("A line about it appears here.")},{key:"sample-3",title:a("Third card"),excerpt:a("A line about it appears here.")},{key:"sample-4",title:a("Fourth card"),excerpt:a("A line about it appears here.")}],o=(e,i,t)=>({slug:e.key||`card-${i}`,title:e.title??"",excerpt:e.excerpt??"",cover:e.cover??"",meta:e.meta||void 0,dateLabel:e.dateLabel||void 0,href:e.href||"#",...t?.facets?{facets:t.facets}:{},...t?.tags?{tags:t.tags}:{}}),L=e=>E(e,i=>({facets:x(i.facets),tags:k(i.tags)})),N={...F,render:e=>{const i=A(e.headPlacement)==="own-box",t=l=>i?void 0:l,s=r(e.linkText,m.link,e.editor),n=b(e)!==""?v(e,!!e.editor?.isEditing,H()):null,c=n&&!n.sample?L(e):null,u=n?n.sample?[]:n.rows.map((l,d)=>o(l,d,y(c,l,d))):e.posts;return f(g,{num:t(r(e.num,m.num,e.editor)),title:t(r(e.title,m.title,e.editor)),link:t(s?{text:s,href:S(e.linkHref)||"/journal"}:void 0),omitHead:i,posts:u,sample:n?.sample?n.rows.map((l,d)=>o(l,d)):void 0,columns:e.columns,limit:e.limit,showAll:e.showAll,layout:e.layout,featuredWidth:e.featuredWidth,listCover:e.listCover,featuredDarken:e.featuredDarken,cardImage:e.cardImage,gap:e.gap,gapPhone:e[h("gap")],nameFilter:e.nameFilter===!0,pads:P(e),editing:e.editor?.isEditing,template:e.template,ownerId:String(e.id??"")})}};export{N as EventsRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as D}from"react/jsx-runtime";import{subscribeContentTypeOf as _}from"../../../subscribe-content-type.js";import j from"../../../../../components/Subscribe.js";import{hidableText as r}from"efficient-easel/screen/lib/document/hidable";import{NEWSLETTER_SOURCE as y}from"../../../../newsletter-signup.js";import{phHide as t}from"efficient-web-builder/render/lib/document/blocks/scaffold";import{SUBSCRIBE_PH as e,subscribeRailRows as O}from"../subscribe.js";import{parseSectionHeadPlacement as U}from"efficient-web-builder/format/lib/sections/section-head-placement";import{SubscribeMeta as I}from"./meta.js";const Q={...I,render:n=>{const{headNum:o,headTitle:l,headDesc:c,kicker:d,leadTitle:m,intro:b,emailPlaceholder:h,submitText:T,subscribedText:u,finePrint:x,issuesHeading:f,issues:g,contentType:p,posts:P,limit:H,archiveText:S,archiveHref:k,align:v,alignTablet:A,alignPhone:E,textAlign:R,textAlignTablet:N,textAlignPhone:w,panel:B,editor:i}=n,s=U(n.headPlacement)==="own-box",a=C=>s?void 0:C;return D(j,{headNum:a(t(o,e.headNum,i)),headTitle:a(t(l,e.headTitle,i)),headDesc:a(t(c,e.headDesc,i)),omitHead:s,kicker:t(d,e.kicker,i),leadTitle:t(m,e.leadTitle,i),intro:t(b,e.intro,i),emailPlaceholder:r(h)||e.emailPlaceholder,submitText:r(T)||e.submitText,subscribedText:r(u)||e.subscribedText,finePrint:t(x,e.finePrint,i),issuesHeading:t(f,e.issuesHeading,i),issues:O(_(p),{issues:g,posts:P,limit:H,editor:i}),source:y.subscribeSection,editing:i?.isEditing,archiveText:t(S,e.archiveText,i),archiveHref:r(k)||e.archiveHref,align:v,alignTablet:A,alignPhone:E,textAlign:R,textAlignTablet:N,textAlignPhone:w,panel:B!==!1})}};export{Q as SubscribeRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{CARD_LIST_TYPE as h,CARD_ROW_FIELD_PROP as C,CARD_ROW_LINK_PROP as p,CARD_TEMPLATE_SLOT as L,registerCardTemplates as Q}from"efficient-web-builder/format/lib/content/card-template";import{DIM as s,INNER_BOX as o,TEXT as n,boxPadding as r,fillSlot as N,labelLook as I,labelStyle as A,seedNodes as D,token as d}from"efficient-web-builder/format/lib/document/seed-parts";import{BOX_TYPE as a,CONTAINER_BLOCKS_SLOT as i}from"efficient-web-builder/format/lib/document/container-blocks";import{BOX_ROW_IMAGE_PROP as w}from"efficient-web-builder/format/lib/content/box-card-rule";import{POST_CARD_HEIGHT as J}from"efficient-web-builder/format/lib/post-card-layout";import{EVENTS_FEATURED_DARKEN as ee,EVENTS_FEATURED_DARKEN_STYLE as B,EVENTS_FEATURED_PLACEMENT as te}from"../content/events-featured-look.js";import{COLLECTION_DARKEN as le,COLLECTION_HOVER_DARKEN as oe,COLLECTION_HOVER_ZOOM as F}from"../content/collection-card-look.js";import{COLLECTION_CARD_REGIONS as _,COLLECTION_CARD_TEXT_SIZE as ae}from"efficient-web-builder/format/lib/sections/collection-card-text-regions";import{SH_LINK as H}from"efficient-web-builder/render/lib/document/blocks/general/section-to-box-row-parts";import{rowFieldTextSeed as l}from"efficient-web-builder/format/lib/document/blocks/general/Cards/card-seed";import{withRelatedTabletColumns as g}from"../sections/product-grid-columns.js";import{bundleColumns as ie}from"../sections/bundle-to-grid.js";import{HERO_PRICE_BLOCK as ne,withHeroPriceTemplate as re}from"../content/hero-price-seed.js";import{HERO_OPTION_FIELDS as K,HERO_OPTION_SLOT as se,HERO_OPTION_SLOT_LABEL as de,withHeroOptionTemplate as ce}from"../content/hero-option-seed.js";import{FILTER_OPTIONS_FIELD as Ee,withFilterChipsTemplate as Te,withFilterTemplate as pe}from"../content/filter-card-seed.js";import{FACET_ROW_FIELDS as O,FACET_TEMPLATE_LABEL as x,FACET_TEMPLATE_SLOT as M,withFacetTemplate as U}from"../content/facet-row-seed.js";import{MENU_LINK_BLOCK as _e,withMenuTemplate as Oe}from"../content/menu-card-seed.js";import{CONTACT_CHANNEL_FIELDS as v,CONTACT_CHANNEL_SLOT as me,CONTACT_REASON_FIELDS as be,CONTACT_REASON_SLOT as he,CONTACT_TOPIC_FIELDS as V,CONTACT_TOPIC_SLOT as Ce,withContactTemplates as Le}from"../content/contact-card-seed.js";import{ARTICLE_BODY_BLOCK as ge,withArticleBodyTemplate as ye}from"../content/article-body-seed.js";import{APPOINTMENT_BOOKING_TYPE as Pe,BOOKING_BOX_TYPE as ke,BOOKING_OPTION_FIELDS as fe,BOOKING_TEMPLATE_SLOTS as ue,withBookingTemplates as Se}from"../content/booking-card-seed.js";import{PRODUCT_BUY_BLOCK as Re,PRODUCT_CARD_FIELDS as y,PRODUCT_COLOUR_BLOCK as Ne,PRODUCT_EYEBROW_BLOCK as Ie,PRODUCT_NAME_BLOCK as Ae,PRODUCT_PICTURE_BLOCK as De,PRODUCT_PRICE_BLOCK as we,PRODUCT_SIZE_BLOCK as Be,PRODUCT_SPECS_BLOCK as Fe,productCardSeed as He,withKitCardTemplate as P,withListingCardTemplate as Ke,withProductCardTemplate as k}from"../content/product-card-seed.js";const G="tags",c=I(12),W={textStyle:"heading-3",...d("headingSmall",20),weight:500,lineHeight:1.2,letterSpacing:-.02},Y={textStyle:"body-1",...d("body",14),lineHeight:1.55},xe={...W,...d("headingSmall",30)},Me={sectionPaddingTop:24,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,sectionPaddingTopPhone:24,sectionPaddingRightPhone:28,sectionPaddingBottomPhone:32,sectionPaddingLeftPhone:28},Ue=J.fallback,ve=480,Ve=70,Ge=()=>({type:a,props:{...o,name:"Featured",[w]:"cover",darken:ee,darkenStyle:B,darkenPhone:Ve,darkenStylePhone:B,placement:te,direction:"column",gap:8,gapPhone:8,...r(32,32,20,20),sectionHeightMode:"fixed",sectionHeightValue:Ue,sectionHeightUnit:"px",sectionHeightModePhone:"fixed",sectionHeightValuePhone:ve,sectionHeightUnitPhone:"px",[p]:"href"},slots:{[i]:[l("meta",{...n,tag:"p"},c,!0),l("title",{...n,tag:"h3",widthFit:"fill"},xe),l("excerpt",{...s,tag:"p",widthFit:"fill",maxWidth:384},Y),l("dateLabel",{...s,tag:"p"},{...c,color:"muted"})]}}),We=()=>({type:a,props:{...o,name:"Post",gap:0,gapPhone:0,...r(0,0,0,0),...N("surface"),shadow:!0},slots:{[i]:[{type:"ImageBlock",props:{[C]:"cover",aspect:"16/10",contained:!1}},{type:a,props:{...o,name:"Words",gap:12,gapPhone:12,...Me},slots:{[i]:[{type:a,props:{...o,name:"Meta",direction:"row",wrap:!0,share:"content",sharePhone:"content",phoneRow:2,gap:12,gapPhone:12,...r(0,0,0,0)},slots:{[i]:[l("meta",{...n,tag:"p"},c,!0),l("dateLabel",{...s,tag:"p"},{...c,color:"muted"},!0)]}},l("title",{...n,tag:"h3",widthFit:"fill"},W),l("excerpt",{...s,tag:"p",widthFit:"fill"},Y),{type:h,props:{[C]:G},slots:{template:[{type:a,props:{...o,name:"Chip",...r(4,8,4,8),sectionBorder:{width:1}},slots:{[i]:[l("label",{...s,tag:"p"},c)]}}]}},{type:"ButtonBlock",props:{variant:"ghost",label:"Read more",href:"",[p]:"href",...H,icon:"arrow-right",iconPosition:"after",_partStyles:{label:A(12)}}}]}}]}}),Ye=()=>[Ge(),We()];function $e(e){if(e.template!==void 0)return e;const t=typeof e.id=="string"&&e.id.trim()?e.id:"Events",f=["featured","post"];return{...e,template:D(Ye(),(b,q)=>{const[u,...S]=q.split("."),R=f[Number(u)]??`card${u}`;return S.length?`${t}~${R}.${S.join(".")}`:`${t}~${R}`})}}const Xe={fields:[{key:"cover",label:"Cover",kind:"image",alt:"title"},{key:"meta",label:"Eyebrow"},{key:"dateLabel",label:"Date"},{key:"title",label:"Title"},{key:"excerpt",label:"Excerpt",multiline:!0},{key:"href",label:"Link",kind:"link"},{key:G,label:"Tags",kind:"list",fields:[{key:"label",label:"Tag"}]}],blocks:[{type:h,label:"Card list"}],seedOnInsert:$e},E=e=>Number(/(\d+)px/.exec(e)?.[1]),T={tag:E(_.tag.builtIn),name:E(_.name.builtIn),namePhone:E(ae.namePhone),body:E(_.body.builtIn),link:E(_.link.builtIn)},Ze={...I(T.tag),letterSpacing:.25},je={textStyle:"heading-2",...d("headingMedium",T.name,T.namePhone),weight:500,lineHeight:1,letterSpacing:-.03},ze={textStyle:"body-1",...d("body",T.body),lineHeight:1.5,paragraphSpacing:12},$=()=>[l("tag",{...n,tag:"p"},Ze,!0),l("name",{...n,tag:"h3",widthFit:"fill"},je),l("desc",{...n,tag:"p",widthFit:"fill",maxWidth:420},ze),{type:"ButtonBlock",props:{variant:"ghost",label:"Explore",href:"",[p]:"href",...H,icon:"arrow-right",iconPosition:"after",_partStyles:{label:A(T.link)}}}],X={_hidden:!0,_hiddenTablet:!0,_hiddenPhone:!1},qe=()=>({type:a,props:{...o,name:"Collection",gap:0,gapPhone:0,...r(0,0,0,0),[p]:"href"},slots:{[i]:[{type:a,props:{...o,name:"Picture",[w]:"image",boxShape:"portrait",darken:le,placement:"bottom-left",direction:"column",gap:12,gapPhone:12,...r(32,32),hoverZoom:F,hoverDarken:oe,_hiddenPhone:!0},slots:{[i]:$()}},{type:"ImageBlock",props:{[C]:"image",aspect:"4/5",contained:!1,hoverZoom:F,...X}},{type:a,props:{...o,name:"Words",gap:12,gapPhone:12,...r(24,24),...N("surface"),...X},slots:{[i]:$()}}]}});function Qe(e){if(e.template!==void 0)return e;const t=typeof e.id=="string"&&e.id.trim()?e.id:"Collections";return{...e,template:D([qe()],(f,b)=>`${t}~card${b?`.${b}`:""}`)}}const Je={fields:[{key:"tag",label:"Eyebrow"},{key:"name",label:"Title"},{key:"desc",label:"Description",multiline:!0},{key:"image",label:"Image",kind:"image",alt:"name"},{key:"href",label:"Link",kind:"link"}],seedOnInsert:Qe},et=["showCardPrice","showCardFinishes","showCardSizes","showCardBuy","showCardPage"],tt=e=>Object.fromEntries(Object.entries(e).filter(([t])=>!et.includes(t))),Z={fields:[{key:"label",label:"Label"},{key:"href",label:"Link",kind:"link"}],blocks:[{type:_e,label:"Menu link"}],seed:Oe},j=e=>e.dynamic===!0&&e.relationship==="bundles",kt=(e={})=>He(e),m={fields:y,blocks:[{type:De,label:"Picture"},{type:Ie,label:"Eyebrow"},{type:Ae,label:"Name"},{type:Fe,label:"Specs"},{type:we,label:"Price"},{type:Ne,label:"Colour"},{type:Be,label:"Size"},{type:Re,label:"Buy"}],seed:e=>{if(e.dynamic!==!0)return k(e);const t=g(e);return j(e)?P(t):k(t)}},z=[{key:"label",label:"Filter name"},{key:Ee,label:"Options",kind:"list",fields:[{key:"label",label:"Option"},{key:"count",label:"Count"}]}],lt=[{block:"Reviews",fields:[{key:"quote",label:"Quote"},{key:"title",label:"Title"},{key:"name",label:"Name"},{key:"role",label:"Role · location"},{key:"rating",label:"Rating"},{key:"dateLabel",label:"Date"}],blocks:[{type:"RatingBlock",label:"Rating"}]},{block:"SpecTable",fields:[{key:"label",label:"Label"},{key:"value",label:"Value"}]},{block:"DetailRows",fields:[{key:"eyebrow",label:"Eyebrow"},{key:"title",label:"Title"},{key:"copy",label:"Body",multiline:!0},{key:"image",label:"Image",kind:"image",alt:"title"},{key:"tag",label:"Image tag"}]},{block:"FooterMenu",...Z},{block:"MenuBlock",...Z},{block:"ProductGrid",...m},{block:"AlloyWheelsListing",...m,slots:[{slot:L,fields:y},{slot:M,label:x,fields:O}],fields:[...y,...O],seed:e=>U(Ke(e))},{block:"RelatedProducts",...m,seed:e=>{const t=g({...tt(e),dynamic:!0});return j(t)?P(t):k(t,{legacyWellHonoured:!0})}},{block:"BundleOffer",...m,seed:e=>P(g({...e,columns:ie(e),dynamic:!0}))},{block:"ProductHero",slots:[{slot:L,fields:[]},{slot:se,label:de,fields:K}],fields:K,blocks:[{type:ne,label:"Price"}],seed:e=>ce(re(e))},{block:"FilterBlock",slots:[{slot:L,fields:z},{slot:M,label:x,fields:O}],fields:[...z,...O],blocks:[{type:h,label:"Card list"}],seed:e=>U(pe(e))},{block:"FilterChipsBlock",fields:[{key:"label",label:"Pick"},{key:"mark",label:"Remove mark"}],seed:Te},{block:"ContactRouting",slots:[{slot:Ce,label:"Topic card",fields:V},{slot:he,label:"Reason chip",fields:be},{slot:me,label:"Channel row",fields:v}],fields:[...V,...v],seed:Le},{block:ge,fields:[{key:"heading",label:"Subhead"},{key:"paragraph",label:"Paragraph",multiline:!0}],seed:ye},...[ke,Pe].map(e=>({block:e,slots:ue,fields:fe,seed:t=>Se(e,t)})),{block:"Events",...Xe},{block:"Collections",...Je}];Q(lt);export{lt as STOREFRONT_CARD_TEMPLATES,qe as collectionCardSeed,j as drawsKits,Ye as eventsCardSeeds,kt as productGridCardSeed,Qe as withCollectionsTemplate,$e as withEventsTemplate};
|
|
1
|
+
import{CARD_LIST_TYPE as L,CARD_ROW_FIELD_PROP as h,CARD_ROW_LINK_PROP as _,CARD_TEMPLATE_SLOT as C,registerCardTemplates as te}from"efficient-web-builder/format/lib/content/card-template";import{DIM as s,INNER_BOX as o,TEXT as n,boxPadding as r,fillSlot as N,labelLook as A,labelStyle as D,seedNodes as w,token as d}from"efficient-web-builder/format/lib/document/seed-parts";import{BOX_TYPE as a,CONTAINER_BLOCKS_SLOT as i}from"efficient-web-builder/format/lib/document/container-blocks";import{BOX_ROW_IMAGE_PROP as B}from"efficient-web-builder/format/lib/content/box-card-rule";import{POST_CARD_HEIGHT as le}from"efficient-web-builder/format/lib/post-card-layout";import{EVENTS_FEATURED_DARKEN as oe,EVENTS_FEATURED_DARKEN_STYLE as F,EVENTS_FEATURED_PLACEMENT as ae}from"../content/events-featured-look.js";import{COLLECTION_DARKEN as ie,COLLECTION_HOVER_DARKEN as ne,COLLECTION_HOVER_ZOOM as H}from"../content/collection-card-look.js";import{COLLECTION_CARD_REGIONS as p,COLLECTION_CARD_TEXT_SIZE as re}from"efficient-web-builder/format/lib/sections/collection-card-text-regions";import{SH_LINK as K}from"efficient-web-builder/render/lib/document/blocks/general/section-to-box-row-parts";import{rowFieldTextSeed as l}from"efficient-web-builder/format/lib/document/blocks/general/Cards/card-seed";import{withRelatedTabletColumns as P}from"../sections/product-grid-columns.js";import{bundleColumns as se}from"../sections/bundle-to-grid.js";import{HERO_PRICE_BLOCK as de,withHeroPriceTemplate as Ee}from"../content/hero-price-seed.js";import{HERO_OPTION_FIELDS as M,HERO_OPTION_SLOT as ce,HERO_OPTION_SLOT_LABEL as Te,withHeroOptionTemplate as _e}from"../content/hero-option-seed.js";import{FILTER_OPTIONS_FIELD as pe,withFilterChipsTemplate as Oe,withFilterTemplate as me}from"../content/filter-card-seed.js";import{FACET_ROW_FIELDS as O,FACET_TEMPLATE_LABEL as x,FACET_TEMPLATE_SLOT as U,withFacetTemplate as v}from"../content/facet-row-seed.js";import{RAIL_HEAD_TEMPLATE_LABEL as be,RAIL_HEAD_TEMPLATE_SLOT as Le,RAIL_ROW_FIELDS as g,RAIL_TEMPLATE_LABEL as he,RAIL_TEMPLATE_SLOT as Ce,withRailTemplates as V}from"../content/rail-row-seed.js";import{MENU_LINK_BLOCK as Pe,withMenuTemplate as ge}from"../content/menu-card-seed.js";import{CONTACT_CHANNEL_FIELDS as G,CONTACT_CHANNEL_SLOT as ye,CONTACT_REASON_FIELDS as ke,CONTACT_REASON_SLOT as fe,CONTACT_TOPIC_FIELDS as W,CONTACT_TOPIC_SLOT as Se,withContactTemplates as Re}from"../content/contact-card-seed.js";import{ARTICLE_BODY_BLOCK as ue,withArticleBodyTemplate as Ie}from"../content/article-body-seed.js";import{APPOINTMENT_BOOKING_TYPE as Ne,BOOKING_BOX_TYPE as Ae,BOOKING_OPTION_FIELDS as De,BOOKING_TEMPLATE_SLOTS as we,withBookingTemplates as Be}from"../content/booking-card-seed.js";import{PRODUCT_BUY_BLOCK as Fe,PRODUCT_CARD_FIELDS as y,PRODUCT_COLOUR_BLOCK as He,PRODUCT_EYEBROW_BLOCK as Ke,PRODUCT_NAME_BLOCK as Me,PRODUCT_PICTURE_BLOCK as xe,PRODUCT_PRICE_BLOCK as Ue,PRODUCT_SIZE_BLOCK as ve,PRODUCT_SPECS_BLOCK as Ve,productCardSeed as Ge,withKitCardTemplate as k,withListingCardTemplate as We,withProductCardTemplate as f}from"../content/product-card-seed.js";import{ALLOY_WHEELS_LISTING_TYPE as Ye,MENU_BLOCK_TYPE as $e}from"./document-nodes.js";const Y="tags",E=A(12),$={textStyle:"heading-3",...d("headingSmall",20),weight:500,lineHeight:1.2,letterSpacing:-.02},X={textStyle:"body-1",...d("body",14),lineHeight:1.55},Xe={...$,...d("headingSmall",30)},Ze={sectionPaddingTop:24,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,sectionPaddingTopPhone:24,sectionPaddingRightPhone:28,sectionPaddingBottomPhone:32,sectionPaddingLeftPhone:28},je=le.fallback,ze=480,qe=70,Qe=()=>({type:a,props:{...o,name:"Featured",[B]:"cover",darken:oe,darkenStyle:F,darkenPhone:qe,darkenStylePhone:F,placement:ae,direction:"column",gap:8,gapPhone:8,...r(32,32,20,20),sectionHeightMode:"fixed",sectionHeightValue:je,sectionHeightUnit:"px",sectionHeightModePhone:"fixed",sectionHeightValuePhone:ze,sectionHeightUnitPhone:"px",[_]:"href"},slots:{[i]:[l("meta",{...n,tag:"p"},E,!0),l("title",{...n,tag:"h3",widthFit:"fill"},Xe),l("excerpt",{...s,tag:"p",widthFit:"fill",maxWidth:384},X),l("dateLabel",{...s,tag:"p"},{...E,color:"muted"})]}}),Je=()=>({type:a,props:{...o,name:"Post",gap:0,gapPhone:0,...r(0,0,0,0),...N("surface"),shadow:!0},slots:{[i]:[{type:"ImageBlock",props:{[h]:"cover",aspect:"16/10",contained:!1}},{type:a,props:{...o,name:"Words",gap:12,gapPhone:12,...Ze},slots:{[i]:[{type:a,props:{...o,name:"Meta",direction:"row",wrap:!0,share:"content",sharePhone:"content",phoneRow:2,gap:12,gapPhone:12,...r(0,0,0,0)},slots:{[i]:[l("meta",{...n,tag:"p"},E,!0),l("dateLabel",{...s,tag:"p"},{...E,color:"muted"},!0)]}},l("title",{...n,tag:"h3",widthFit:"fill"},$),l("excerpt",{...s,tag:"p",widthFit:"fill"},X),{type:L,props:{[h]:Y},slots:{template:[{type:a,props:{...o,name:"Chip",...r(4,8,4,8),sectionBorder:{width:1}},slots:{[i]:[l("label",{...s,tag:"p"},E)]}}]}},{type:"ButtonBlock",props:{variant:"ghost",label:"Read more",href:"",[_]:"href",...K,icon:"arrow-right",iconPosition:"after",_partStyles:{label:D(12)}}}]}}]}}),et=()=>[Qe(),Je()];function tt(e){if(e.template!==void 0)return e;const t=typeof e.id=="string"&&e.id.trim()?e.id:"Events",S=["featured","post"];return{...e,template:w(et(),(b,ee)=>{const[R,...u]=ee.split("."),I=S[Number(R)]??`card${R}`;return u.length?`${t}~${I}.${u.join(".")}`:`${t}~${I}`})}}const lt={fields:[{key:"cover",label:"Cover",kind:"image",alt:"title"},{key:"meta",label:"Eyebrow"},{key:"dateLabel",label:"Date"},{key:"title",label:"Title"},{key:"excerpt",label:"Excerpt",multiline:!0},{key:"href",label:"Link",kind:"link"},{key:Y,label:"Tags",kind:"list",fields:[{key:"label",label:"Tag"}]}],blocks:[{type:L,label:"Card list"}],seedOnInsert:tt},c=e=>Number(/(\d+)px/.exec(e)?.[1]),T={tag:c(p.tag.builtIn),name:c(p.name.builtIn),namePhone:c(re.namePhone),body:c(p.body.builtIn),link:c(p.link.builtIn)},ot={...A(T.tag),letterSpacing:.25},at={textStyle:"heading-2",...d("headingMedium",T.name,T.namePhone),weight:500,lineHeight:1,letterSpacing:-.03},it={textStyle:"body-1",...d("body",T.body),lineHeight:1.5,paragraphSpacing:12},Z=()=>[l("tag",{...n,tag:"p"},ot,!0),l("name",{...n,tag:"h3",widthFit:"fill"},at),l("desc",{...n,tag:"p",widthFit:"fill",maxWidth:420},it),{type:"ButtonBlock",props:{variant:"ghost",label:"Explore",href:"",[_]:"href",...K,icon:"arrow-right",iconPosition:"after",_partStyles:{label:D(T.link)}}}],j={_hidden:!0,_hiddenTablet:!0,_hiddenPhone:!1},nt=()=>({type:a,props:{...o,name:"Collection",gap:0,gapPhone:0,...r(0,0,0,0),[_]:"href"},slots:{[i]:[{type:a,props:{...o,name:"Picture",[B]:"image",boxShape:"portrait",darken:ie,placement:"bottom-left",direction:"column",gap:12,gapPhone:12,...r(32,32),hoverZoom:H,hoverDarken:ne,_hiddenPhone:!0},slots:{[i]:Z()}},{type:"ImageBlock",props:{[h]:"image",aspect:"4/5",contained:!1,hoverZoom:H,...j}},{type:a,props:{...o,name:"Words",gap:12,gapPhone:12,...r(24,24),...N("surface"),...j},slots:{[i]:Z()}}]}});function rt(e){if(e.template!==void 0)return e;const t=typeof e.id=="string"&&e.id.trim()?e.id:"Collections";return{...e,template:w([nt()],(S,b)=>`${t}~card${b?`.${b}`:""}`)}}const st={fields:[{key:"tag",label:"Eyebrow"},{key:"name",label:"Title"},{key:"desc",label:"Description",multiline:!0},{key:"image",label:"Image",kind:"image",alt:"name"},{key:"href",label:"Link",kind:"link"}],seedOnInsert:rt},dt=["showCardPrice","showCardFinishes","showCardSizes","showCardBuy","showCardPage"],Et=e=>Object.fromEntries(Object.entries(e).filter(([t])=>!dt.includes(t))),z={fields:[{key:"label",label:"Label"},{key:"href",label:"Link",kind:"link"}],blocks:[{type:Pe,label:"Menu link"}],seed:ge},q=e=>e.dynamic===!0&&e.relationship==="bundles",Ft=(e={})=>Ge(e),m={fields:y,blocks:[{type:xe,label:"Picture"},{type:Ke,label:"Eyebrow"},{type:Me,label:"Name"},{type:Ve,label:"Specs"},{type:Ue,label:"Price"},{type:He,label:"Colour"},{type:ve,label:"Size"},{type:Fe,label:"Buy"}],seed:e=>{if(e.dynamic!==!0)return f(e);const t=P(e);return q(e)?k(t):f(t)}},Q=[{key:"label",label:"Filter name"},{key:pe,label:"Options",kind:"list",fields:[{key:"label",label:"Option"},{key:"count",label:"Count"}]}],J=[{slot:Ce,label:he,fields:g},{slot:Le,label:be,fields:[]}],ct=[{block:"Reviews",fields:[{key:"quote",label:"Quote"},{key:"title",label:"Title"},{key:"name",label:"Name"},{key:"role",label:"Role · location"},{key:"rating",label:"Rating"},{key:"dateLabel",label:"Date"}],blocks:[{type:"RatingBlock",label:"Rating"}]},{block:"SpecTable",fields:[{key:"label",label:"Label"},{key:"value",label:"Value"}]},{block:"DetailRows",fields:[{key:"eyebrow",label:"Eyebrow"},{key:"title",label:"Title"},{key:"copy",label:"Body",multiline:!0},{key:"image",label:"Image",kind:"image",alt:"title"},{key:"tag",label:"Image tag"}]},{block:"FooterMenu",...z},{block:$e,...z},{block:"ProductGrid",...m},{block:Ye,...m,slots:[{slot:C,fields:y},{slot:U,label:x,fields:O},...J],fields:[...y,...O,...g],seed:e=>V(v(We(e)))},{block:"RelatedProducts",...m,seed:e=>{const t=P({...Et(e),dynamic:!0});return q(t)?k(t):f(t,{legacyWellHonoured:!0})}},{block:"BundleOffer",...m,seed:e=>k(P({...e,columns:se(e),dynamic:!0}))},{block:"ProductHero",slots:[{slot:C,fields:[]},{slot:ce,label:Te,fields:M}],fields:M,blocks:[{type:de,label:"Price"}],seed:e=>_e(Ee(e))},{block:"FilterBlock",slots:[{slot:C,fields:Q},{slot:U,label:x,fields:O},...J],fields:[...Q,...O,...g],blocks:[{type:L,label:"Card list"}],seed:e=>V(v(me(e)))},{block:"FilterChipsBlock",fields:[{key:"label",label:"Pick"},{key:"mark",label:"Remove mark"}],seed:Oe},{block:"ContactRouting",slots:[{slot:Se,label:"Topic card",fields:W},{slot:fe,label:"Reason chip",fields:ke},{slot:ye,label:"Channel row",fields:G}],fields:[...W,...G],seed:Re},{block:ue,fields:[{key:"heading",label:"Subhead"},{key:"paragraph",label:"Paragraph",multiline:!0}],seed:Ie},...[Ae,Ne].map(e=>({block:e,slots:we,fields:De,seed:t=>Be(e,t)})),{block:"Events",...lt},{block:"Collections",...st}];te(ct);export{ct as STOREFRONT_CARD_TEMPLATES,nt as collectionCardSeed,q as drawsKits,et as eventsCardSeeds,Ft as productGridCardSeed,rt as withCollectionsTemplate,tt as withEventsTemplate};
|
|
@@ -11,9 +11,10 @@ export interface CurrentProduct {
|
|
|
11
11
|
openLightbox: (src: string, alt: string) => void;
|
|
12
12
|
}
|
|
13
13
|
export declare function useCurrentProduct(): CurrentProduct | null;
|
|
14
|
-
export declare function CurrentProductProvider({ product, relatedWheels, fieldUsage, children, }: {
|
|
14
|
+
export declare function CurrentProductProvider({ product, relatedWheels, fieldUsage, defaultVariant, children, }: {
|
|
15
15
|
product: StoreProduct;
|
|
16
16
|
relatedWheels: WheelSummary[];
|
|
17
|
+
defaultVariant?: number | null;
|
|
17
18
|
fieldUsage?: readonly FieldUsageAnswer[];
|
|
18
19
|
children: ReactNode;
|
|
19
20
|
}): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as
|
|
1
|
+
"use client";import{jsx as d,jsxs as f}from"react/jsx-runtime";import{useMemo as i}from"react";import x from"../../components/ProductLightbox.js";import{useLightbox as a}from"../../components/useLightbox.js";import{useProductSelection as P}from"../../components/useProductSelection.js";import{applyVariantAnswers as C}from"../content/field-usage.js";import{PRODUCT_RECORD_TYPE as s}from"efficient-web-builder/format/lib/content/record-types";import{CurrentRecordProvider as h,useCurrentRecordOf as b}from"./current-record.js";function D(){return b(s)?.value??null}const j=Object.freeze({});function E({product:o,relatedWheels:m,fieldUsage:r=[],defaultVariant:l=null,children:u}){const t=i(()=>C(o.optionFields,r),[o.optionFields,r]),e=i(()=>t===o.optionFields?o:{...o,optionFields:t},[o,t]),c=P(e,{defaultVariant:l}),n=a(),p={type:s,key:e.slug,title:e.name,fields:j,value:{product:e,relatedWheels:m,fieldUsage:r,selection:c,openLightbox:n.open}};return f(h,{record:p,children:[u,d(x,{item:n.item,onClose:n.close})]})}export{E as CurrentProductProvider,D as useCurrentProduct};
|
|
@@ -2,6 +2,8 @@ import type { Data } from "efficient-easel/blocks";
|
|
|
2
2
|
export declare const FILTER_BLOCK_TYPE = "FilterBlock";
|
|
3
3
|
export declare const FILTER_CHIPS_TYPE = "FilterChipsBlock";
|
|
4
4
|
export declare const PRODUCT_GRID_TYPE = "ProductGrid";
|
|
5
|
+
export declare const ALLOY_WHEELS_LISTING_TYPE = "AlloyWheelsListing";
|
|
6
|
+
export declare const MENU_BLOCK_TYPE = "MenuBlock";
|
|
5
7
|
export type DocNode = {
|
|
6
8
|
type: string;
|
|
7
9
|
props: Record<string, unknown>;
|