efficient-storefront-blocks 0.121.0 → 0.121.2
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 +48 -0
- package/dist/chunks/{EditorPreviewCheckout-EZWWWREG.js → EditorPreviewCheckout-CDSVQFZG.js} +1 -1
- package/dist/chunks/{SiteEditorProvider-LHGHQTP7.js → SiteEditorProvider-6ZJ5MKW3.js} +1 -1
- package/dist/chunks/{chunk-R7AXTQVA.js → chunk-7D4OUJUE.js} +1 -1
- package/dist/chunks/{chunk-DRLNY2UU.js → chunk-ERY7GVI7.js} +1 -1
- package/dist/chunks/{chunk-RDOOARQX.js → chunk-HPCPOXEL.js} +1 -1
- package/dist/chunks/{chunk-4M5X72OG.js → chunk-PTRZMZVD.js} +1 -1
- package/dist/chunks/{fitment-data-62UVC7IY.js → fitment-data-SWQZTLG6.js} +1 -1
- package/dist/editor/components/HeaderSettingsPanel.js +1 -1
- package/dist/editor/components/MenuPicker.js +1 -1
- package/dist/index.js +28 -28
- package/dist/links.js +1 -1
- package/dist/render/components/BoxHeaderBar.js +1 -1
- package/dist/render/components/Events.js +1 -1
- package/dist/render/components/FitmentTable.js +1 -1
- package/dist/render/components/card-pieces/CardBuyButton.js +1 -1
- package/dist/render/components/card-pieces/CardProductPicture.js +1 -1
- package/dist/render/components/useTyreCatalog.js +3 -3
- package/dist/render/components/useTyreDetail.d.ts +1 -0
- package/dist/render/components/useTyreDetail.js +1 -1
- package/dist/render/lib/api/index.d.ts +2 -0
- package/dist/render/lib/api/index.js +1 -1
- package/dist/render/lib/api/types.d.ts +62 -0
- package/dist/render/lib/content/title-look.js +1 -1
- package/dist/render/lib/document/card-templates.js +1 -1
- package/dist/render/lib/document/document-nodes.js +1 -1
- package/dist/render/lib/document/subscribe-content-type.js +1 -1
- package/dist/render/lib/sections/band-padding.d.ts +2 -0
- package/dist/render/lib/sections/band-padding.js +1 -1
- package/dist/render/lib/sections/gallery-frame.js +1 -1
- package/dist/render/lib/sections/hero-arrangement.d.ts +3 -1
- package/dist/render/lib/sections/hero-arrangement.js +1 -1
- package/dist/render/lib/sections/hero-gallery.js +1 -1
- package/dist/render/lib/sections/hero-price-placement.d.ts +2 -1
- package/dist/render/lib/sections/hero-price-placement.js +1 -1
- package/dist/render/lib/wheels/set-mode.js +1 -1
- package/package.json +1 -1
- /package/dist/chunks/{chunk-4M5X72OG.js.LEGAL.txt → chunk-PTRZMZVD.js.LEGAL.txt} +0 -0
|
@@ -895,6 +895,22 @@ export interface paths {
|
|
|
895
895
|
patch?: never;
|
|
896
896
|
trace?: never;
|
|
897
897
|
};
|
|
898
|
+
"/bookings/manage/{token}/reschedule": {
|
|
899
|
+
parameters: {
|
|
900
|
+
query?: never;
|
|
901
|
+
header?: never;
|
|
902
|
+
path?: never;
|
|
903
|
+
cookie?: never;
|
|
904
|
+
};
|
|
905
|
+
get?: never;
|
|
906
|
+
put?: never;
|
|
907
|
+
post: operations["rescheduleBooking"];
|
|
908
|
+
delete?: never;
|
|
909
|
+
options?: never;
|
|
910
|
+
head?: never;
|
|
911
|
+
patch?: never;
|
|
912
|
+
trace?: never;
|
|
913
|
+
};
|
|
898
914
|
"/bookings/payments/intent": {
|
|
899
915
|
parameters: {
|
|
900
916
|
query?: never;
|
|
@@ -2209,8 +2225,12 @@ export interface components {
|
|
|
2209
2225
|
currency: string;
|
|
2210
2226
|
paymentExpiresAt?: string | null;
|
|
2211
2227
|
canCancel: boolean;
|
|
2228
|
+
canReschedule: boolean;
|
|
2212
2229
|
cancellationCutoffHours: number;
|
|
2213
2230
|
};
|
|
2231
|
+
BookingRescheduleRequest: {
|
|
2232
|
+
startAt: string;
|
|
2233
|
+
};
|
|
2214
2234
|
BookingConfirmation: components["schemas"]["BookingPublic"] & {
|
|
2215
2235
|
manageToken: string;
|
|
2216
2236
|
};
|
|
@@ -3897,6 +3917,48 @@ export interface operations {
|
|
|
3897
3917
|
};
|
|
3898
3918
|
};
|
|
3899
3919
|
};
|
|
3920
|
+
rescheduleBooking: {
|
|
3921
|
+
parameters: {
|
|
3922
|
+
query?: never;
|
|
3923
|
+
header?: never;
|
|
3924
|
+
path: {
|
|
3925
|
+
token: string;
|
|
3926
|
+
};
|
|
3927
|
+
cookie?: never;
|
|
3928
|
+
};
|
|
3929
|
+
requestBody: {
|
|
3930
|
+
content: {
|
|
3931
|
+
"application/json": components["schemas"]["BookingRescheduleRequest"];
|
|
3932
|
+
};
|
|
3933
|
+
};
|
|
3934
|
+
responses: {
|
|
3935
|
+
200: {
|
|
3936
|
+
headers: {
|
|
3937
|
+
[name: string]: unknown;
|
|
3938
|
+
};
|
|
3939
|
+
content: {
|
|
3940
|
+
"application/json": components["schemas"]["BookingPublic"];
|
|
3941
|
+
};
|
|
3942
|
+
};
|
|
3943
|
+
400: {
|
|
3944
|
+
headers: {
|
|
3945
|
+
[name: string]: unknown;
|
|
3946
|
+
};
|
|
3947
|
+
content: {
|
|
3948
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
3949
|
+
};
|
|
3950
|
+
};
|
|
3951
|
+
404: components["responses"]["NotFound"];
|
|
3952
|
+
409: {
|
|
3953
|
+
headers: {
|
|
3954
|
+
[name: string]: unknown;
|
|
3955
|
+
};
|
|
3956
|
+
content: {
|
|
3957
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
3958
|
+
};
|
|
3959
|
+
};
|
|
3960
|
+
};
|
|
3961
|
+
};
|
|
3900
3962
|
createBookingPaymentIntent: {
|
|
3901
3963
|
parameters: {
|
|
3902
3964
|
query?: never;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
import{parseOption as t}from"efficient-web-builder/format/lib/parse-option";const c="titleLook",e=["card","headline"],r="card",p=o=>t(e,r,o),s="accentLastWord",L="showBadge";export{r as DEFAULT_TITLE_LOOK,L as EYEBROW_BADGE_PROP,s as NAME_ACCENT_PROP,e as TITLE_LOOKS,c as TITLE_LOOK_PROP,p as parseTitleLook};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{CARD_LIST_TYPE as R,CARD_ROW_FIELD_PROP as y,CARD_ROW_LINK_PROP as m,CARD_TEMPLATE_SLOT as E,registerCardTemplates as ce}from"efficient-web-builder/format/lib/content/card-template";import{DIM as d,INNER_BOX as o,LABEL_FACE as C,TEXT as n,boxPadding as r,fillSlot as H,labelLook as p,labelStyle as K,seedNodes as f,token as _}from"efficient-web-builder/format/lib/document/seed-parts";import{BOX_SHOW_KEY as M,BOX_SHOW_ON_CARD_HOVER as Y,HOVER_KEY as Oe,PICTURE_HOVER_KEYS as x}from"efficient-web-builder/format/lib/animation/hover";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 k}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 me,EVENTS_FEATURED_DARKEN_STYLE as G,EVENTS_FEATURED_PLACEMENT as be}from"../content/events-featured-look.js";import{COLLECTION_DARKEN as he,COLLECTION_HOVER_DARKEN as ge,COLLECTION_HOVER_ZOOM as U}from"../content/collection-card-look.js";import{COLLECTION_CARD_REGIONS as b,COLLECTION_CARD_TEXT_SIZE as Pe}from"efficient-web-builder/format/lib/sections/collection-card-text-regions";import{SH_LINK as V}from"efficient-web-builder/render/lib/document/blocks/general/section-to-box-row-parts";import{rowFieldTextSeed as t}from"efficient-web-builder/format/lib/document/blocks/general/Cards/card-seed";import{withRelatedTabletColumns as S}from"../sections/product-grid-columns.js";import{bundleColumns as Re}from"../sections/bundle-to-grid.js";import{HERO_GALLERY_BLOCK as ye,withHeroTemplate as Ce}from"../content/hero-seed.js";import{HERO_BUY_SLOT as fe,HERO_BUY_SLOT_LABEL as ke,withHeroBuyTemplate as Se}from"../content/hero-buy-seed.js";import{HERO_OPTION_FIELDS as W,HERO_OPTION_SLOT as Ae,HERO_OPTION_SLOT_LABEL as Ie,withHeroOptionTemplate as ue}from"../content/hero-option-seed.js";import{FILTER_OPTIONS_FIELD as Ne,withFilterChipsTemplate as De,withFilterTemplate as we}from"../content/filter-card-seed.js";import{FACET_ROW_FIELDS as h,FACET_TEMPLATE_LABEL as v,FACET_TEMPLATE_SLOT as $,withFacetTemplate as X}from"../content/facet-row-seed.js";import{RAIL_HEAD_TEMPLATE_LABEL as Be,RAIL_HEAD_TEMPLATE_SLOT as Fe,RAIL_ROW_FIELDS as A,RAIL_TEMPLATE_LABEL as He,RAIL_TEMPLATE_SLOT as Ke,withRailTemplates as Z}from"../content/rail-row-seed.js";import{MENU_LINK_BLOCK as Me,withMenuTemplate as Ye}from"../content/menu-card-seed.js";import{CONTACT_CHANNEL_FIELDS as j,CONTACT_CHANNEL_SLOT as xe,CONTACT_REASON_FIELDS as Ge,CONTACT_REASON_SLOT as Ue,CONTACT_TOPIC_FIELDS as z,CONTACT_TOPIC_SLOT as Ve,withContactTemplates as We}from"../content/contact-card-seed.js";import{ARTICLE_BODY_BLOCK as ve,withArticleBodyTemplate as $e}from"efficient-web-builder/format/lib/document/article-body-seed";import{APPOINTMENT_BOOKING_TYPE as Xe,BOOKING_BOX_TYPE as Ze,BOOKING_OPTION_FIELDS as je,BOOKING_TEMPLATE_SLOTS as ze,withBookingTemplates as qe}from"../content/booking-card-seed.js";import{PRODUCT_BUY_BLOCK as Qe,PRODUCT_CARD_FIELDS as I,PRODUCT_COLOUR_BLOCK as Je,PRODUCT_EYEBROW_BLOCK as q,PRODUCT_NAME_BLOCK as Q,PRODUCT_PICTURE_BLOCK as et,PRODUCT_PRICE_BLOCK as J,PRODUCT_SIZE_BLOCK as tt,PRODUCT_SPECS_BLOCK as lt,productCardSeed as ot,withKitCardTemplate as u,withListingCardTemplate as at,withProductCardTemplate as N}from"../content/product-card-seed.js";import{ALLOY_WHEELS_LISTING_TYPE as it,FILTER_BLOCK_TYPE as nt,FILTER_CHIPS_TYPE as rt,MENU_BLOCK_TYPE as st,PRODUCT_GRID_TYPE as Et,PRODUCT_HERO_TYPE as _t}from"./document-nodes.js";import{withSeededSlot as D}from"../content/seed-ids.js";import{FITMENT_HEAD_FIELDS as ee,FITMENT_HEAD_TEMPLATE_LABEL as dt,FITMENT_HEAD_TEMPLATE_SLOT as pt,FITMENT_ROW_FIELDS as te,FITMENT_ROW_TEMPLATE_LABEL as Tt,FITMENT_ROW_TEMPLATE_SLOT as ct}from"../content/fitment-row-seed.js";const le="tags",T=p(12),oe={textStyle:"heading-3",..._("headingSmall",20),weight:500,lineHeight:1.2,letterSpacing:-.02},ae={textStyle:"body-1",..._("body",14),lineHeight:1.55},Ot={...oe,..._("headingSmall",30)},Lt={sectionPaddingTop:24,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,sectionPaddingTopPhone:24,sectionPaddingRightPhone:28,sectionPaddingBottomPhone:32,sectionPaddingLeftPhone:28},mt=Le.fallback,bt=480,ht=70,gt=()=>({type:a,props:{...o,name:"Featured",[k]:"cover",darken:me,darkenStyle:G,darkenPhone:ht,darkenStylePhone:G,placement:be,direction:"column",gap:8,gapPhone:8,...r(32,32,20,20),sectionHeightMode:"fixed",sectionHeightValue:mt,sectionHeightUnit:"px",sectionHeightModePhone:"fixed",sectionHeightValuePhone:bt,sectionHeightUnitPhone:"px",[m]:"href"},slots:{[i]:[t("meta",{...n,tag:"p"},T,!0),t("title",{...n,tag:"h3",widthFit:"fill"},Ot),t("excerpt",{...d,tag:"p",widthFit:"fill",maxWidth:384},ae),t("dateLabel",{...d,tag:"p"},{...T,color:"muted"})]}}),Pt=()=>({type:a,props:{...o,name:"Post",gap:0,gapPhone:0,...r(0,0,0,0),...H("surface"),shadow:!0},slots:{[i]:[{type:"ImageBlock",props:{[y]:"cover",aspect:"16/10",contained:!1}},{type:a,props:{...o,name:"Words",gap:12,gapPhone:12,...Lt},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]:[t("meta",{...n,tag:"p"},T,!0),t("dateLabel",{...d,tag:"p"},{...T,color:"muted"},!0)]}},t("title",{...n,tag:"h3",widthFit:"fill"},oe),t("excerpt",{...d,tag:"p",widthFit:"fill"},ae),{type:R,props:{[y]:le},slots:{template:[{type:a,props:{...o,name:"Chip",...r(4,8,4,8),sectionBorder:{width:1}},slots:{[i]:[t("label",{...d,tag:"p"},T)]}}]}},{type:"ButtonBlock",props:{variant:"ghost",label:"Read more",href:"",[m]:"href",...V,icon:"arrow-right",iconPosition:"after",_partStyles:{label:K(12)}}}]}}]}}),Rt=()=>[gt(),Pt()];function yt(e){const l=["featured","post"];return D(e,E,"Events",L=>f(Rt(),(s,Te)=>{const[w,...B]=Te.split("."),F=l[Number(w)]??`card${w}`;return B.length?`${L}~${F}.${B.join(".")}`:`${L}~${F}`}))}const Ct={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:le,label:"Tags",kind:"list",fields:[{key:"label",label:"Tag"}]}],blocks:[{type:R,label:"Card list"}],seedOnInsert:yt},c=e=>Number(/(\d+)px/.exec(e)?.[1]),O={tag:c(b.tag.builtIn),name:c(b.name.builtIn),namePhone:c(Pe.namePhone),body:c(b.body.builtIn),link:c(b.link.builtIn)},ft={...p(O.tag),letterSpacing:.25},kt={textStyle:"heading-2",..._("headingMedium",O.name,O.namePhone),weight:500,lineHeight:1,letterSpacing:-.03},St={textStyle:"body-1",..._("body",O.body),lineHeight:1.5,paragraphSpacing:12},ie=()=>[t("tag",{...n,tag:"p"},ft,!0),t("name",{...n,tag:"h3",widthFit:"fill"},kt),t("desc",{...n,tag:"p",widthFit:"fill",maxWidth:420},St),{type:"ButtonBlock",props:{variant:"ghost",label:"Explore",href:"",[m]:"href",...V,icon:"arrow-right",iconPosition:"after",_partStyles:{label:K(O.link)}}}],ne={_hidden:!0,_hiddenTablet:!0,_hiddenPhone:!1},At=()=>({type:a,props:{...o,name:"Collection",gap:0,gapPhone:0,...r(0,0,0,0),[m]:"href"},slots:{[i]:[{type:a,props:{...o,name:"Picture",[k]:"image",boxShape:"portrait",darken:he,placement:"bottom-left",direction:"column",gap:12,gapPhone:12,...r(32,32),hoverZoom:U,hoverDarken:ge,_hiddenPhone:!0},slots:{[i]:ie()}},{type:"ImageBlock",props:{[y]:"image",aspect:"4/5",contained:!1,hoverZoom:U,...ne}},{type:a,props:{...o,name:"Words",gap:12,gapPhone:12,...r(24,24),...H("surface"),...ne},slots:{[i]:ie()}}]}});function It(e){return D(e,E,"Collections",l=>f([At()],(L,s)=>`${l}~card${s?`.${s}`:""}`))}const ut={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:It},Nt=35,Dt=50,wt=106,Bt=85,Ft="nextImage",Ht="#f5f1e8",re="#c4c1ba",se={...C,...p(11),letterSpacing:.24,color:"main"},Kt={...se,color:re},Mt={...C,...p(12,11),color:"main"},Yt={textStyle:"heading-3",..._("headingSmall",22,16),weight:500,lineHeight:1.05,letterSpacing:-.02,color:Ht},xt={...C,...p(12),letterSpacing:.12,color:re},g=r(0,0,0,0),Gt=()=>({type:a,props:{...o,name:"Tile",placement:"top-left",share:"content",gap:0,gapPhone:0,...g,[k]:"image",boxShape:"square",darken:Nt,[Oe]:Ft,[x.zoom]:wt,[x.darken]:Dt},slots:{[i]:[{type:a,props:{...o,name:"Top row",direction:"row",justify:"between",align:"start",share:"content",phoneRow:2,sharePhone:"content",wrapPhone:"nowrap",widthFit:"fill",gap:8,gapPhone:8,...g,sectionPaddingTop:12,sectionPaddingLeft:12,sectionPaddingRight:12,sectionPaddingTopPhone:10,sectionPaddingLeftPhone:10,sectionPaddingRightPhone:10},slots:{[i]:[{type:a,props:{...o,name:"Tag",direction:"row",share:"content",minWidth:0,...g,[M]:Y},slots:{[i]:[t("tag",{...n,tag:"p",textFit:"ellipsis"},se)]}},t("number",{...n,tag:"p",textFit:"line"},Kt)]}},{type:a,props:{...o,name:"Words",justify:"end",align:"start",placement:"bottom-left",share:"content",widthFit:"fill",sectionHeightMode:"fill",gap:8,gapPhone:8,...r(24,24,12,14),sectionPaddingTopPhone:4,darken:Bt,darkenStyle:"bottom",[M]:Y},slots:{[i]:[{type:a,props:{...o,name:"Heading",widthFit:"fill",gap:4,gapPhone:4,...g},slots:{[i]:[t("eyebrow",{...n,tag:"p",_hiddenPhone:!0},Mt),t("name",{...n,tag:"h3"},Yt)]}},t("meta",{...n,tag:"p"},xt)]}}]}});function Ut(e){return D(e,E,"GalleryB",l=>f([Gt()],(L,s)=>`${l}~tile${s?`.${s}`:""}`))}const Vt={fields:[{key:"image",label:"Image",kind:"image",alt:"name"},{key:"tag",label:"Tag"},{key:"number",label:"Card number"},{key:"eyebrow",label:"Eyebrow"},{key:"name",label:"Title"},{key:"meta",label:"Meta"},{key:"href",label:"Product link",kind:"link"}],seedOnInsert:Ut},Wt=["showCardPrice","showCardFinishes","showCardSizes","showCardBuy","showCardPage"],vt=e=>Object.fromEntries(Object.entries(e).filter(([l])=>!Wt.includes(l))),Ee={fields:[{key:"label",label:"Label"},{key:"href",label:"Link",kind:"link"}],blocks:[{type:Me,label:"Menu link"}],seed:Ye},_e=e=>e.dynamic===!0&&e.relationship==="bundles",gl=(e={})=>ot(e),P={fields:I,blocks:[{type:et,label:"Picture"},{type:q,label:"Eyebrow"},{type:Q,label:"Name"},{type:lt,label:"Specs"},{type:J,label:"Price"},{type:Je,label:"Colour"},{type:tt,label:"Size"},{type:Qe,label:"Buy"}],seed:e=>{if(e.dynamic!==!0)return N(e);const l=S(e);return _e(e)?u(l):N(l)}},de=[{key:"label",label:"Filter name"},{key:Ne,label:"Options",kind:"list",fields:[{key:"label",label:"Option"},{key:"count",label:"Count"}]}],pe=[{slot:Ke,label:He,fields:A},{slot:Fe,label:Be,fields:[]}],$t=[{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",...Ee},{block:st,...Ee},{block:Et,...P},{block:it,...P,slots:[{slot:E,fields:I},{slot:$,label:v,fields:h},...pe],fields:[...I,...h,...A],seed:e=>Z(X(at(e)))},{block:"RelatedProducts",...P,seed:e=>{const l=S({...vt(e),dynamic:!0});return _e(l)?u(l):N(l,{legacyWellHonoured:!0})}},{block:"BundleOffer",...P,seed:e=>u(S({...e,columns:Re(e),dynamic:!0}))},{block:_t,slots:[{slot:E,fields:[]},{slot:Ae,label:Ie,fields:W},{slot:fe,label:ke,fields:[]}],fields:W,blocks:[{type:ye,label:"Product Gallery"},{type:q,label:"Eyebrow"},{type:Q,label:"Name"},{type:J,label:"Price"}],seed:e=>Se(ue(Ce(e)))},{block:nt,slots:[{slot:E,fields:de},{slot:$,label:v,fields:h},...pe],fields:[...de,...h,...A],blocks:[{type:R,label:"Card list"}],seed:e=>Z(X(we(e)))},{block:rt,fields:[{key:"label",label:"Pick"},{key:"mark",label:"Remove mark"}],seed:De},{block:"ContactRouting",slots:[{slot:Ve,label:"Topic card",fields:z},{slot:Ue,label:"Reason chip",fields:Ge},{slot:xe,label:"Channel row",fields:j}],fields:[...z,...j],seed:We},{block:ve,fields:[{key:"heading",label:"Subhead"},{key:"paragraph",label:"Paragraph",multiline:!0}],seed:$e},...[Ze,Xe].map(e=>({block:e,slots:ze,fields:je,seed:l=>qe(e,l)})),{block:"Events",...Ct},{block:"Collections",...ut},{block:"GalleryB",...Vt},{block:"FitmentTable",fields:[...ee,...te],slots:[{slot:pt,label:dt,fields:ee},{slot:ct,label:Tt,fields:te}]}];ce($t);export{$t as STOREFRONT_CARD_TEMPLATES,At as collectionCardSeed,_e as drawsKits,Rt as eventsCardSeeds,Gt as galleryTileSeed,gl as productGridCardSeed,It as withCollectionsTemplate,yt as withEventsTemplate,Ut as withGalleryTemplate};
|
|
1
|
+
import{CARD_LIST_TYPE as R,CARD_ROW_FIELD_PROP as y,CARD_ROW_LINK_PROP as m,CARD_TEMPLATE_SLOT as E,registerCardTemplates as ce}from"efficient-web-builder/format/lib/content/card-template";import{DIM as d,INNER_BOX as o,LABEL_FACE as C,TEXT as n,boxPadding as r,fillSlot as H,labelLook as p,labelStyle as K,seedNodes as f,token as _}from"efficient-web-builder/format/lib/document/seed-parts";import{BOX_SHOW_KEY as M,BOX_SHOW_ON_CARD_HOVER as Y,HOVER_KEY as Le,PICTURE_HOVER_KEYS as G}from"efficient-web-builder/format/lib/animation/hover";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 k}from"efficient-web-builder/format/lib/content/box-card-rule";import{POST_CARD_HEIGHT as Oe}from"efficient-web-builder/format/lib/post-card-layout";import{OVERLAY_INK_LIGHT as me}from"efficient-web-builder/format/lib/theme";import{EVENTS_FEATURED_DARKEN as be,EVENTS_FEATURED_DARKEN_STYLE as x,EVENTS_FEATURED_PLACEMENT as he}from"../content/events-featured-look.js";import{COLLECTION_DARKEN as ge,COLLECTION_HOVER_DARKEN as Pe,COLLECTION_HOVER_ZOOM as U}from"../content/collection-card-look.js";import{COLLECTION_CARD_REGIONS as b,COLLECTION_CARD_TEXT_SIZE as Re}from"efficient-web-builder/format/lib/sections/collection-card-text-regions";import{SH_LINK as V}from"efficient-web-builder/render/lib/document/blocks/general/section-to-box-row-parts";import{rowFieldTextSeed as t}from"efficient-web-builder/format/lib/document/blocks/general/Cards/card-seed";import{withRelatedTabletColumns as S}from"../sections/product-grid-columns.js";import{bundleColumns as ye}from"../sections/bundle-to-grid.js";import{HERO_GALLERY_BLOCK as Ce,withHeroTemplate as fe}from"../content/hero-seed.js";import{HERO_BUY_SLOT as ke,HERO_BUY_SLOT_LABEL as Se,withHeroBuyTemplate as Ae}from"../content/hero-buy-seed.js";import{HERO_OPTION_FIELDS as W,HERO_OPTION_SLOT as Ie,HERO_OPTION_SLOT_LABEL as ue,withHeroOptionTemplate as Ne}from"../content/hero-option-seed.js";import{FILTER_OPTIONS_FIELD as De,withFilterChipsTemplate as we,withFilterTemplate as Be}from"../content/filter-card-seed.js";import{FACET_ROW_FIELDS as h,FACET_TEMPLATE_LABEL as v,FACET_TEMPLATE_SLOT as $,withFacetTemplate as X}from"../content/facet-row-seed.js";import{RAIL_HEAD_TEMPLATE_LABEL as Fe,RAIL_HEAD_TEMPLATE_SLOT as He,RAIL_ROW_FIELDS as A,RAIL_TEMPLATE_LABEL as Ke,RAIL_TEMPLATE_SLOT as Me,withRailTemplates as Z}from"../content/rail-row-seed.js";import{MENU_LINK_BLOCK as Ye,withMenuTemplate as Ge}from"../content/menu-card-seed.js";import{CONTACT_CHANNEL_FIELDS as j,CONTACT_CHANNEL_SLOT as xe,CONTACT_REASON_FIELDS as Ue,CONTACT_REASON_SLOT as Ve,CONTACT_TOPIC_FIELDS as z,CONTACT_TOPIC_SLOT as We,withContactTemplates as ve}from"../content/contact-card-seed.js";import{ARTICLE_BODY_BLOCK as $e,withArticleBodyTemplate as Xe}from"efficient-web-builder/format/lib/document/article-body-seed";import{APPOINTMENT_BOOKING_TYPE as Ze,BOOKING_BOX_TYPE as je,BOOKING_OPTION_FIELDS as ze,BOOKING_TEMPLATE_SLOTS as qe,withBookingTemplates as Qe}from"../content/booking-card-seed.js";import{PRODUCT_BUY_BLOCK as Je,PRODUCT_CARD_FIELDS as I,PRODUCT_COLOUR_BLOCK as et,PRODUCT_EYEBROW_BLOCK as q,PRODUCT_NAME_BLOCK as Q,PRODUCT_PICTURE_BLOCK as tt,PRODUCT_PRICE_BLOCK as J,PRODUCT_SIZE_BLOCK as lt,PRODUCT_SPECS_BLOCK as ot,productCardSeed as at,withKitCardTemplate as u,withListingCardTemplate as it,withProductCardTemplate as N}from"../content/product-card-seed.js";import{ALLOY_WHEELS_LISTING_TYPE as nt,FILTER_BLOCK_TYPE as rt,FILTER_CHIPS_TYPE as st,MENU_BLOCK_TYPE as Et,PRODUCT_GRID_TYPE as _t,PRODUCT_HERO_TYPE as dt}from"./document-nodes.js";import{withSeededSlot as D}from"../content/seed-ids.js";import{FITMENT_HEAD_FIELDS as ee,FITMENT_HEAD_TEMPLATE_LABEL as pt,FITMENT_HEAD_TEMPLATE_SLOT as Tt,FITMENT_ROW_FIELDS as te,FITMENT_ROW_TEMPLATE_LABEL as ct,FITMENT_ROW_TEMPLATE_SLOT as Lt}from"../content/fitment-row-seed.js";const le="tags",T=p(12),oe={textStyle:"heading-3",..._("headingSmall",20),weight:500,lineHeight:1.2,letterSpacing:-.02},ae={textStyle:"body-1",..._("body",14),lineHeight:1.55},Ot={...oe,..._("headingSmall",30)},mt={sectionPaddingTop:24,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,sectionPaddingTopPhone:24,sectionPaddingRightPhone:28,sectionPaddingBottomPhone:32,sectionPaddingLeftPhone:28},bt=Oe.fallback,ht=480,gt=70,Pt=()=>({type:a,props:{...o,name:"Featured",[k]:"cover",darken:be,darkenStyle:x,darkenPhone:gt,darkenStylePhone:x,placement:he,direction:"column",gap:8,gapPhone:8,...r(32,32,20,20),sectionHeightMode:"fixed",sectionHeightValue:bt,sectionHeightUnit:"px",sectionHeightModePhone:"fixed",sectionHeightValuePhone:ht,sectionHeightUnitPhone:"px",[m]:"href"},slots:{[i]:[t("meta",{...n,tag:"p"},T,!0),t("title",{...n,tag:"h3",widthFit:"fill"},Ot),t("excerpt",{...d,tag:"p",widthFit:"fill",maxWidth:384},ae),t("dateLabel",{...d,tag:"p"},{...T,color:"muted"})]}}),Rt=()=>({type:a,props:{...o,name:"Post",gap:0,gapPhone:0,...r(0,0,0,0),...H("surface"),shadow:!0},slots:{[i]:[{type:"ImageBlock",props:{[y]:"cover",aspect:"16/10",contained:!1}},{type:a,props:{...o,name:"Words",gap:12,gapPhone:12,...mt},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]:[t("meta",{...n,tag:"p"},T,!0),t("dateLabel",{...d,tag:"p"},{...T,color:"muted"},!0)]}},t("title",{...n,tag:"h3",widthFit:"fill"},oe),t("excerpt",{...d,tag:"p",widthFit:"fill"},ae),{type:R,props:{[y]:le},slots:{template:[{type:a,props:{...o,name:"Chip",...r(4,8,4,8),sectionBorder:{width:1}},slots:{[i]:[t("label",{...d,tag:"p"},T)]}}]}},{type:"ButtonBlock",props:{variant:"ghost",label:"Read more",href:"",[m]:"href",...V,icon:"arrow-right",iconPosition:"after",_partStyles:{label:K(12)}}}]}}]}}),yt=()=>[Pt(),Rt()];function Ct(e){const l=["featured","post"];return D(e,E,"Events",O=>f(yt(),(s,Te)=>{const[w,...B]=Te.split("."),F=l[Number(w)]??`card${w}`;return B.length?`${O}~${F}.${B.join(".")}`:`${O}~${F}`}))}const ft={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:le,label:"Tags",kind:"list",fields:[{key:"label",label:"Tag"}]}],blocks:[{type:R,label:"Card list"}],seedOnInsert:Ct},c=e=>Number(/(\d+)px/.exec(e)?.[1]),L={tag:c(b.tag.builtIn),name:c(b.name.builtIn),namePhone:c(Re.namePhone),body:c(b.body.builtIn),link:c(b.link.builtIn)},kt={...p(L.tag),letterSpacing:.25},St={textStyle:"heading-2",..._("headingMedium",L.name,L.namePhone),weight:500,lineHeight:1,letterSpacing:-.03},At={textStyle:"body-1",..._("body",L.body),lineHeight:1.5,paragraphSpacing:12},ie=()=>[t("tag",{...n,tag:"p"},kt,!0),t("name",{...n,tag:"h3",widthFit:"fill"},St),t("desc",{...n,tag:"p",widthFit:"fill",maxWidth:420},At),{type:"ButtonBlock",props:{variant:"ghost",label:"Explore",href:"",[m]:"href",...V,icon:"arrow-right",iconPosition:"after",_partStyles:{label:K(L.link)}}}],ne={_hidden:!0,_hiddenTablet:!0,_hiddenPhone:!1},It=()=>({type:a,props:{...o,name:"Collection",gap:0,gapPhone:0,...r(0,0,0,0),[m]:"href"},slots:{[i]:[{type:a,props:{...o,name:"Picture",[k]:"image",boxShape:"portrait",darken:ge,placement:"bottom-left",direction:"column",gap:12,gapPhone:12,...r(32,32),hoverZoom:U,hoverDarken:Pe,_hiddenPhone:!0},slots:{[i]:ie()}},{type:"ImageBlock",props:{[y]:"image",aspect:"4/5",contained:!1,hoverZoom:U,...ne}},{type:a,props:{...o,name:"Words",gap:12,gapPhone:12,...r(24,24),...H("surface"),...ne},slots:{[i]:ie()}}]}});function ut(e){return D(e,E,"Collections",l=>f([It()],(O,s)=>`${l}~card${s?`.${s}`:""}`))}const Nt={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:ut},Dt=35,wt=50,Bt=106,Ft=85,Ht="nextImage",Kt=me,re="#c4c1ba",se={...C,...p(11),letterSpacing:.24,color:"main"},Mt={...se,color:re},Yt={...C,...p(12,11),color:"main"},Gt={textStyle:"heading-3",..._("headingSmall",22,16),weight:500,lineHeight:1.05,letterSpacing:-.02,color:Kt},xt={...C,...p(12),letterSpacing:.12,color:re},g=r(0,0,0,0),Ut=()=>({type:a,props:{...o,name:"Tile",placement:"top-left",share:"content",gap:0,gapPhone:0,...g,[k]:"image",boxShape:"square",darken:Dt,[Le]:Ht,[G.zoom]:Bt,[G.darken]:wt},slots:{[i]:[{type:a,props:{...o,name:"Top row",direction:"row",justify:"between",align:"start",share:"content",phoneRow:2,sharePhone:"content",wrapPhone:"nowrap",widthFit:"fill",gap:8,gapPhone:8,...g,sectionPaddingTop:12,sectionPaddingLeft:12,sectionPaddingRight:12,sectionPaddingTopPhone:10,sectionPaddingLeftPhone:10,sectionPaddingRightPhone:10},slots:{[i]:[{type:a,props:{...o,name:"Tag",direction:"row",share:"content",minWidth:0,...g,[M]:Y},slots:{[i]:[t("tag",{...n,tag:"p",textFit:"ellipsis"},se)]}},t("number",{...n,tag:"p",textFit:"line"},Mt)]}},{type:a,props:{...o,name:"Words",justify:"end",align:"start",placement:"bottom-left",share:"content",widthFit:"fill",sectionHeightMode:"fill",gap:8,gapPhone:8,...r(24,24,12,14),sectionPaddingTopPhone:4,darken:Ft,darkenStyle:"bottom",[M]:Y},slots:{[i]:[{type:a,props:{...o,name:"Heading",widthFit:"fill",gap:4,gapPhone:4,...g},slots:{[i]:[t("eyebrow",{...n,tag:"p",_hiddenPhone:!0},Yt),t("name",{...n,tag:"h3"},Gt)]}},t("meta",{...n,tag:"p"},xt)]}}]}});function Vt(e){return D(e,E,"GalleryB",l=>f([Ut()],(O,s)=>`${l}~tile${s?`.${s}`:""}`))}const Wt={fields:[{key:"image",label:"Image",kind:"image",alt:"name"},{key:"tag",label:"Tag"},{key:"number",label:"Card number"},{key:"eyebrow",label:"Eyebrow"},{key:"name",label:"Title"},{key:"meta",label:"Meta"},{key:"href",label:"Product link",kind:"link"}],seedOnInsert:Vt},vt=["showCardPrice","showCardFinishes","showCardSizes","showCardBuy","showCardPage"],$t=e=>Object.fromEntries(Object.entries(e).filter(([l])=>!vt.includes(l))),Ee={fields:[{key:"label",label:"Label"},{key:"href",label:"Link",kind:"link"}],blocks:[{type:Ye,label:"Menu link"}],seed:Ge},_e=e=>e.dynamic===!0&&e.relationship==="bundles",Rl=(e={})=>at(e),P={fields:I,blocks:[{type:tt,label:"Picture"},{type:q,label:"Eyebrow"},{type:Q,label:"Name"},{type:ot,label:"Specs"},{type:J,label:"Price"},{type:et,label:"Colour"},{type:lt,label:"Size"},{type:Je,label:"Buy"}],seed:e=>{if(e.dynamic!==!0)return N(e);const l=S(e);return _e(e)?u(l):N(l)}},de=[{key:"label",label:"Filter name"},{key:De,label:"Options",kind:"list",fields:[{key:"label",label:"Option"},{key:"count",label:"Count"}]}],pe=[{slot:Me,label:Ke,fields:A},{slot:He,label:Fe,fields:[]}],Xt=[{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",...Ee},{block:Et,...Ee},{block:_t,...P},{block:nt,...P,slots:[{slot:E,fields:I},{slot:$,label:v,fields:h},...pe],fields:[...I,...h,...A],seed:e=>Z(X(it(e)))},{block:"RelatedProducts",...P,seed:e=>{const l=S({...$t(e),dynamic:!0});return _e(l)?u(l):N(l,{legacyWellHonoured:!0})}},{block:"BundleOffer",...P,seed:e=>u(S({...e,columns:ye(e),dynamic:!0}))},{block:dt,slots:[{slot:E,fields:[]},{slot:Ie,label:ue,fields:W},{slot:ke,label:Se,fields:[]}],fields:W,blocks:[{type:Ce,label:"Product Gallery"},{type:q,label:"Eyebrow"},{type:Q,label:"Name"},{type:J,label:"Price"}],seed:e=>Ae(Ne(fe(e)))},{block:rt,slots:[{slot:E,fields:de},{slot:$,label:v,fields:h},...pe],fields:[...de,...h,...A],blocks:[{type:R,label:"Card list"}],seed:e=>Z(X(Be(e)))},{block:st,fields:[{key:"label",label:"Pick"},{key:"mark",label:"Remove mark"}],seed:we},{block:"ContactRouting",slots:[{slot:We,label:"Topic card",fields:z},{slot:Ve,label:"Reason chip",fields:Ue},{slot:xe,label:"Channel row",fields:j}],fields:[...z,...j],seed:ve},{block:$e,fields:[{key:"heading",label:"Subhead"},{key:"paragraph",label:"Paragraph",multiline:!0}],seed:Xe},...[je,Ze].map(e=>({block:e,slots:qe,fields:ze,seed:l=>Qe(e,l)})),{block:"Events",...ft},{block:"Collections",...Nt},{block:"GalleryB",...Wt},{block:"FitmentTable",fields:[...ee,...te],slots:[{slot:Tt,label:pt,fields:ee},{slot:Lt,label:ct,fields:te}]}];ce(Xt);export{Xt as STOREFRONT_CARD_TEMPLATES,It as collectionCardSeed,_e as drawsKits,yt as eventsCardSeeds,Ut as galleryTileSeed,Rl as productGridCardSeed,ut as withCollectionsTemplate,Ct as withEventsTemplate,Vt as withGalleryTemplate};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isNode as
|
|
1
|
+
import{isNode as i}from"efficient-easel/data";import{mapEachNode as u,mapNodeLists as a,mapPageLists as f}from"efficient-web-builder/format/lib/document/node-lists";const _="FilterBlock",P="FilterChipsBlock",d="ProductGrid",T="ProductHero",x="AlloyWheelsListing",N="MenuBlock";function l(e){const o=e??{},t=[];Array.isArray(o.content)&&t.push(o.content);for(const s of Object.values(o.zones??{}))Array.isArray(s)&&t.push(s);return t}function L(e){const o=[],t=(s,c)=>{const n=[s,...c];for(const r of s)i(r)&&(o.push({node:r,order:o.length,lists:n}),a(r,p=>(t(p,n),p)))};for(const s of l(e))t(s,[]);return o}function y(e){return L(e).map(o=>o.node)}function O(e,o){const t=n=>o(a(n,r=>u(r,s)),n),s=n=>t(n);return f(e,n=>u(n,r=>i(r)?t(r):r))}export{x as ALLOY_WHEELS_LISTING_TYPE,_ as FILTER_BLOCK_TYPE,P as FILTER_CHIPS_TYPE,N as MENU_BLOCK_TYPE,d as PRODUCT_GRID_TYPE,T as PRODUCT_HERO_TYPE,y as documentNodes,O as mapDocumentNodes,L as placedDocumentNodes};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{shownForOption as
|
|
1
|
+
import{parseOption as n}from"efficient-web-builder/format/lib/parse-option";import{shownForOption as r,withRowRules as i}from"efficient-web-builder/format/lib/document/show-when-attach";const t=["issues","posts"],S=[{label:"Issues",value:"issues"},{label:"Blog posts",value:"posts"}],o="issues";function _(s){return n(t,o,s)}const u={issues:["issues"],_gPosts:["posts"],posts:["posts"],limit:["posts"]};function c(s){return i(s,Object.entries(u).map(([e,p])=>[[e],r("contentType",t,o,p)]))}export{t as SUBSCRIBE_CONTENT_TYPES,o as SUBSCRIBE_CONTENT_TYPE_DEFAULT,u as SUBSCRIBE_CONTENT_TYPE_FIELDS,S as SUBSCRIBE_CONTENT_TYPE_OPTIONS,_ as subscribeContentTypeOf,c as withSubscribeContentRules};
|
|
@@ -8,6 +8,8 @@ export declare const FRAME_ROOM_NO_TOP = "pt-0";
|
|
|
8
8
|
export declare const FRAME_ROOM_NO_TOP_PHONE = "max-view-wide:pt-0";
|
|
9
9
|
export declare const FRAME_ROOM_Y = "py-[120px] max-view-wide:py-[70px]";
|
|
10
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 SECTION_FRAME_INLINE = "relative z-[2] bg-bg py-[120px] max-view-wide:py-[70px]";
|
|
12
|
+
export declare const SECTION_FRAME_OWN_BOX = "relative z-[2] bg-bg pt-0 pb-[120px] max-view-wide:pt-0 max-view-wide:pb-[70px]";
|
|
11
13
|
export declare const FRAME_ROOM_PRODUCT_GRID = "pt-[var(--pg-pt)] pb-[120px]";
|
|
12
14
|
export declare const FRAME_ROOM_PRODUCT_GRID_PHONE = "max-view-wide:pt-[70px] max-view-wide:pb-[70px]";
|
|
13
15
|
export declare const FRAME_ROOM_COUNT = "py-[32px] max-view-wide:py-[24px]";
|
|
@@ -1 +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
|
|
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 O}from"efficient-web-builder/format/lib/finite-number";import{EDGE_LINE_ATTRS as A}from"efficient-web-builder/format/lib/content/view-lines";const N="py-[120px]",R="pb-[120px]",y=70,T="max-view-wide:py-[70px]",b="max-view-wide:pt-[70px]",E="max-view-wide:pb-[70px]",P="pt-0",u="max-view-wide:pt-0",D=`${N} ${T}`,F=`${P} ${R} ${u} ${E}`,g=`relative z-[2] bg-bg ${D}`,B=`relative z-[2] bg-bg ${F}`,C=`pt-[var(--pg-pt)] ${R}`,v=`${b} ${E}`,H="py-[32px] max-view-wide:py-[24px]",Y={top:100,bottom:100},k={top:120,bottom:120},G={top:120,bottom:120},p={top:c.top,bottom:c.bottom},I=[...m.map(([t])=>t),p.top,p.bottom];function K(t){const o={};for(const n of I)t[n]!==void 0&&(o[n]=t[n]);return o}function U(t,o,n={}){const e=n.nonNegative?$(t??{}):t??{},d={top:O(e[p.top])===void 0?void 0:o.top,bottom:O(e[p.bottom])===void 0?void 0:o.bottom},s=n.noTop&&O(e[r.top])===void 0,_=a(e,d,{noTop:s}),x=Object.fromEntries(Object.entries(_.style).filter(([M,f])=>f!==void 0&&!(s&&M==="paddingTop")));return{..._,style:x,attrs:_.className?A:{}}}function $(t){const o={...t};for(const n of[r.top,r.bottom]){const e=O(o[n]);e!==void 0&&e<0&&delete o[n]}return o}function h(t,o){return o.className?`${t} ${o.className}`:t}function i(t){return t==null||t===!1||typeof t=="string"&&!t.trim()}function L(t,o,n){return i(t)&&i(o)&&i(n)}export{Y as DETAIL_ROWS_ROOM,G as FRAME_120,y as FRAME_PHONE_PX,H as FRAME_ROOM_COUNT,R as FRAME_ROOM_DESKTOP_BOTTOM,N as FRAME_ROOM_DESKTOP_Y,P as FRAME_ROOM_NO_TOP,u as FRAME_ROOM_NO_TOP_PHONE,F as FRAME_ROOM_OWN_BOX,E as FRAME_ROOM_PHONE_BOTTOM,T as FRAME_ROOM_PHONE_Y,C as FRAME_ROOM_PRODUCT_GRID,v as FRAME_ROOM_PRODUCT_GRID_PHONE,D as FRAME_ROOM_Y,k as PRODUCT_GRID_ROOM,g as SECTION_FRAME_INLINE,B as SECTION_FRAME_OWN_BOX,K as bandPadProps,U as framedBandPad,L as headIsEmpty,h as withBandClasses};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{FRAME_ROOM_NO_TOP as
|
|
1
|
+
import{FRAME_ROOM_NO_TOP as r,FRAME_ROOM_NO_TOP_PHONE as e,SECTION_FRAME_INLINE as n,SECTION_FRAME_OWN_BOX as E}from"./band-padding.js";const t=`relative z-[2] ${r} ${e}`;function N(O,_){return O?_?t:E:n}function R(O,_){return _&&(O?.blockCount??0)>0?O:void 0}export{N as galleryFrame,R as galleryTemplate};
|
|
@@ -2,10 +2,12 @@ export type HeroLayout = "split" | "imageRight" | "stacked";
|
|
|
2
2
|
export declare const HERO_LAYOUTS: readonly ["split", "imageRight", "stacked"];
|
|
3
3
|
export declare const DEFAULT_HERO_LAYOUT: HeroLayout;
|
|
4
4
|
export declare function parseHeroLayout(v: unknown): HeroLayout;
|
|
5
|
-
|
|
5
|
+
declare const HERO_TEXT_ALIGNS: readonly ["left", "center"];
|
|
6
|
+
export type HeroTextAlign = (typeof HERO_TEXT_ALIGNS)[number];
|
|
6
7
|
export declare const DEFAULT_HERO_TEXT_ALIGN: HeroTextAlign;
|
|
7
8
|
export declare function parseHeroTextAlign(v: unknown): HeroTextAlign;
|
|
8
9
|
export declare const HERO_RATIO_MIN = 35;
|
|
9
10
|
export declare const HERO_RATIO_MAX = 70;
|
|
10
11
|
export declare const DEFAULT_HERO_RATIO = 50;
|
|
11
12
|
export declare function parseHeroRatio(v: unknown): number;
|
|
13
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
import{parseOption as r}from"efficient-web-builder/format/lib/parse-option";const o=["split","imageRight","stacked"],n="split";function T(t){return r(o,n,t)}const p=["left","center"],i="left";function a(t){return r(p,i,t)}const s=35,_=70,c=50;function u(t){const e=typeof t=="number"?t:Number(t);return Number.isFinite(e)?Math.min(_,Math.max(s,Math.round(e))):c}export{n as DEFAULT_HERO_LAYOUT,c as DEFAULT_HERO_RATIO,i as DEFAULT_HERO_TEXT_ALIGN,o as HERO_LAYOUTS,_ as HERO_RATIO_MAX,s as HERO_RATIO_MIN,T as parseHeroLayout,u as parseHeroRatio,a as parseHeroTextAlign};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{IMAGE_FIT_LABEL as
|
|
1
|
+
import{parseOption as r}from"efficient-web-builder/format/lib/parse-option";import{IMAGE_FIT_LABEL as e,parseImageFit as n}from"efficient-web-builder/format/lib/content/image-fit";const i=["main","thumbs","tiled"],p="thumbs";function s(t){return r(i,p,t)}const a=["contain","cover"],E="contain";function _(t){return n(t,E)}function I(){return a.map(t=>({label:e[t],value:t}))}function u(t,o){return o?"contain":t}export{p as DEFAULT_HERO_GALLERY_MODE,E as DEFAULT_HERO_IMAGE_FIT,i as HERO_GALLERY_MODES,a as HERO_IMAGE_FITS,I as heroImageFitOptions,s as parseHeroGalleryMode,_ as parseHeroImageFit,u as resolveHeroImageFit};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
declare const HERO_PRICE_PLACEMENTS: readonly ["top", "belowSpecs"];
|
|
2
|
+
type HeroPricePlacement = (typeof HERO_PRICE_PLACEMENTS)[number];
|
|
2
3
|
export declare const DEFAULT_HERO_PRICE_PLACEMENT: HeroPricePlacement;
|
|
3
4
|
export declare function parseHeroPricePlacement(value: unknown): HeroPricePlacement;
|
|
4
5
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
import{parseOption as e}from"efficient-web-builder/format/lib/parse-option";const t=["top","belowSpecs"],r="top";function E(o){return e(t,r,o)}export{r as DEFAULT_HERO_PRICE_PLACEMENT,E as parseHeroPricePlacement};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{WHEELS_PER_SET as r}from"../commerce.js";function
|
|
1
|
+
import{parseOption as u}from"efficient-web-builder/format/lib/parse-option";import{WHEELS_PER_SET as r}from"../commerce.js";function a(e){return(e.components??[]).reduce((o,s)=>o+s.wheels,0)>r}function O(e){return e.kind==="alloy-wheel"&&(e.source.variants??[]).some(a)}const c=150,l="Front + rear",m="L/R pair",T="Not handed",i="L/R";function p(e){return e.et==null||e.rearEt==null?0:Math.abs(e.rearEt-e.et)}function n(e){return p(e)>=c}function I(e){return e.kind==="alloy-wheel"&&(e.source.variants??[]).some(n)}function d(e){return e.directional===!0}function x(e){return e.kind==="staggered"}function P(e){return e.rearWidth!=null||e.rearEt!=null&&e.rearEt!==e.et}function g(e){return{twoObjects:n(e),handed:d(e),staggered:x(e)}}function W(e){return{twoObjects:S(e),handed:e.handed??!1,staggered:!1}}function b(e){const t=[e.twoObjects?l:"",e.handed?i:""].filter(Boolean);return t.length?t.join(" · "):null}function H(e){return e.handed}function E(e){return new Set((e.components??[]).map(t=>t.partNumber)).size>1}function C(e){return e.kind==="alloy-wheel"&&(e.source.variants??[]).some(E)}function S(e){return(e.setWheelCount??0)>r}const f=new Set(["boltPattern"]);function L(e,t){return e&&f.has(t)}function N(e,t){return!e?.srcRight||!t||t!==e.src?null:e.srcRight}const _="per wheel";function y(e,t){return t?`${e} ${_}`:e}const h=[{label:"Pair",value:"pair"},{label:"One wheel",value:"one"}],R="pair";function A(e){return u(h,R,e)}export{l as AXLE_WORDS,i as CARD_HAND_WORDS,m as HAND_WORDS,T as NOT_HANDED_WORDS,_ as PER_WHEEL_UNIT,R as SET_PICTURE_DEFAULT,h as SET_PICTURE_POINTS,c as TWO_OBJECT_ET_SPREAD_MM,A as parseSetPicture,C as productHasComposedRender,O as productIsDually,I as productIsTwoObjects,b as setBuildLabel,H as setIsWide,N as setSecondSrc,L as setSuppressesRow,S as summaryIsDually,W as summarySetBuild,p as variantEtSpread,E as variantHasComposedRender,P as variantHasDistinctRear,a as variantIsDually,d as variantIsHanded,x as variantIsStaggered,n as variantIsTwoObjects,g as variantSetBuild,y as wheelCardPriceLine};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "efficient-storefront-blocks",
|
|
3
|
-
"version": "0.121.
|
|
3
|
+
"version": "0.121.2",
|
|
4
4
|
"description": "The EFFICIENT storefront's website editor — the website builder assembled with the storefront's own sections — for an app that edits a storefront website inside its own page. Built from the efficient-storefront-blocks repository.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "Efficient Pty Ltd",
|
|
File without changes
|