efficient-storefront-blocks 0.125.4 → 0.125.6
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 +41 -0
- package/dist/chunks/CustomHtmlCodeWindow-KAHNIUZO.js +26 -0
- package/dist/chunks/{EditorPreviewCheckout-3ZX2DIIL.js → EditorPreviewCheckout-M5LLO3H2.js} +1 -1
- package/dist/chunks/SiteEditorProvider-6P7LYLL2.js +1 -0
- package/dist/chunks/{chunk-5SWY36EZ.js → chunk-4SIPG47B.js} +1 -1
- package/dist/chunks/chunk-7ARO3R4C.js +9 -0
- package/dist/chunks/chunk-7SLHEYYR.js +337 -0
- package/dist/chunks/chunk-COR5IL6E.js +2 -0
- package/dist/chunks/{chunk-4WRJWM6K.js → chunk-FD3ICZTF.js} +1 -1
- package/dist/chunks/{chunk-RGLTNGJH.js → chunk-L6MXM22Q.js} +1 -1
- package/dist/chunks/chunk-SB3V6PTJ.js +1 -0
- package/dist/chunks/chunk-SQ6D33WV.js +96 -0
- package/dist/chunks/{chunk-ACYEMD5J.js → chunk-UREPZPIT.js} +1 -1
- package/dist/chunks/{fitment-data-CFDAFXJB.js → fitment-data-BQFU5HN3.js} +1 -1
- package/dist/chunks/section-css-style-VF2FOE3B.js +1 -0
- package/dist/editor/lib/document/blocks/commerce/AccountBlock/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/CartBlock/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/CountrySwitchBlock/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/SearchBlock/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/ThemeSwitchBlock/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/ContactRouting/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/Form/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/index.d.ts +1 -1
- package/dist/editor/lib/storefront-editor-words.d.ts +1 -0
- package/dist/editor/lib/storefront-editor-words.js +1 -1
- package/dist/editor.css +1 -1
- package/dist/index.d.ts +29 -2
- package/dist/index.js +33 -33
- package/dist/render/built-with.json +1 -1
- package/dist/render/components/AppointmentBooking.js +1 -1
- package/dist/render/components/CheckoutCTA.js +1 -1
- package/dist/render/components/CollectionCard.js +1 -1
- package/dist/render/components/Collections.js +1 -1
- package/dist/render/components/ContactRouting.d.ts +5 -1
- package/dist/render/components/ContactRouting.js +1 -1
- package/dist/render/components/DeliveryOptions.js +1 -1
- package/dist/render/components/Events.js +1 -1
- package/dist/render/components/FitmentTable.js +1 -1
- package/dist/render/components/FooterMenu.js +1 -1
- package/dist/render/components/FooterSection.js +1 -1
- package/dist/render/components/FormBlock.d.ts +9 -2
- package/dist/render/components/FormBlock.js +1 -1
- package/dist/render/components/GalleryGrid.js +3 -3
- package/dist/render/components/GalleryItem.js +1 -1
- package/dist/render/components/GalleryShowcase.js +1 -1
- package/dist/render/components/HeaderToolBlocks.d.ts +11 -5
- package/dist/render/components/HeaderToolBlocks.js +1 -1
- package/dist/render/components/HeaderTools.d.ts +1 -0
- package/dist/render/components/HeaderTools.js +1 -1
- package/dist/render/components/PhoneMenuAccount.d.ts +6 -0
- package/dist/render/components/PhoneMenuAccount.js +1 -0
- package/dist/render/components/PhoneSheet.js +1 -1
- package/dist/render/components/ProductGridSection.js +1 -1
- package/dist/render/components/ProductHeroPanel.js +1 -1
- package/dist/render/components/ReviewForm.js +1 -1
- package/dist/render/components/Reviews.js +1 -1
- package/dist/render/components/SectionBand.d.ts +2 -1
- package/dist/render/components/SectionBand.js +1 -1
- package/dist/render/components/SectionGroupBody.js +1 -1
- package/dist/render/components/SectionNotice.js +1 -1
- package/dist/render/components/SectionPadScope.d.ts +23 -0
- package/dist/render/components/SectionPadScope.js +1 -0
- package/dist/render/components/ThanksCard.d.ts +9 -0
- package/dist/render/components/ThanksCard.js +1 -0
- package/dist/render/components/catalog/CatalogFilterBar.js +1 -1
- package/dist/render/components/pdp-dynamic/DynamicGalleryGrid.js +1 -1
- package/dist/render/components/wheels-plp/AlloyWheelsListing.js +1 -1
- package/dist/render/lib/content/block-own-pads.d.ts +27 -0
- package/dist/render/lib/content/block-own-pads.js +1 -0
- package/dist/render/lib/content/thanks-slot.d.ts +12 -0
- package/dist/render/lib/content/thanks-slot.js +1 -0
- package/dist/render/lib/document/blocks/commerce/AccountBlock/render.js +1 -1
- 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/BundleOffer/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/BundleOffer/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/CartBlock/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/CatalogFilterBar/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/CatalogFilterBar/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/CheckoutCTA/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/CheckoutCTA/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/Collections/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/Collections/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/CompatibleTyres/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/CompatibleTyres/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/CountrySwitchBlock/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/DeliveryOptions/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/DeliveryOptions/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/EuTyreLabel/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/EuTyreLabel/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/FitmentFinder/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/FitmentFinder/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/FitmentTable/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/FitmentTable/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/Gallery/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/Gallery/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/ProductHero/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/ProductHero/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/RelatedProducts/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/RelatedProducts/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/SearchBlock/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/SpecTable/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/SpecTable/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/ThemeSwitchBlock/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/TyreFitment/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/TyreFitment/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/TyreSizes/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/TyreSizes/render.js +1 -1
- package/dist/render/lib/document/blocks/service/AppointmentBooking/meta.js +1 -1
- package/dist/render/lib/document/blocks/service/AppointmentBooking/render.js +1 -1
- package/dist/render/lib/document/blocks/service/ContactRouting/meta.d.ts +4 -0
- package/dist/render/lib/document/blocks/service/ContactRouting/meta.js +1 -1
- package/dist/render/lib/document/blocks/service/ContactRouting/render.js +1 -1
- package/dist/render/lib/document/blocks/service/Form/meta.d.ts +6 -0
- package/dist/render/lib/document/blocks/service/Form/meta.js +1 -1
- package/dist/render/lib/document/blocks/service/Form/render.js +1 -1
- package/dist/render/lib/document/blocks/service/ReviewForm/meta.js +1 -1
- package/dist/render/lib/document/blocks/service/ReviewForm/render.js +1 -1
- package/dist/render/lib/document/blocks/service/Reviews/meta.js +1 -1
- package/dist/render/lib/document/blocks/service/Reviews/render.js +1 -1
- package/dist/render/lib/document/blocks/service/SubmitBuild/meta.js +1 -1
- package/dist/render/lib/document/blocks/service/SubmitBuild/render.js +1 -1
- package/dist/render/lib/document/blocks/service/Subscribe/meta.js +1 -1
- package/dist/render/lib/document/blocks/service/Subscribe/render.js +1 -1
- package/dist/render/lib/document/blocks/service/SubscribeBlogs/meta.js +1 -1
- package/dist/render/lib/document/blocks/service/SubscribeBlogs/render.js +1 -1
- package/dist/render/lib/document/card-templates.js +1 -1
- package/dist/render/lib/document/pads-itself.d.ts +16 -0
- package/dist/render/lib/document/pads-itself.js +1 -0
- package/dist/routine-index.json +1 -1
- package/dist/value-index.json +1 -1
- package/dist/words.d.ts +1 -0
- package/dist/words.js +1 -1
- package/package.json +2 -2
- package/dist/chunks/CustomHtmlCodeWindow-KB7QEJAG.js +0 -26
- package/dist/chunks/SiteEditorProvider-TYNFV3WZ.js +0 -1
- package/dist/chunks/chunk-4M7WJPOZ.js +0 -7
- package/dist/chunks/chunk-AEBQM5LZ.js +0 -2
- package/dist/chunks/chunk-DHKJAYUG.js +0 -337
- package/dist/chunks/chunk-HKL2EKLO.js +0 -96
- package/dist/chunks/section-css-style-TKWJ7WU2.js +0 -1
- /package/dist/chunks/{chunk-DHKJAYUG.js.LEGAL.txt → chunk-7SLHEYYR.js.LEGAL.txt} +0 -0
- /package/dist/chunks/{chunk-3DCSW3PN.js → chunk-ECMYL3O7.js} +0 -0
- /package/dist/chunks/{chunk-ACYEMD5J.js.LEGAL.txt → chunk-UREPZPIT.js.LEGAL.txt} +0 -0
- /package/dist/chunks/{chunk-5NGS7VFJ.js → chunk-VYXOE5FY.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as O}from"react/jsx-runtime";import f from"../../../../../components/ContactRouting.js";import{CONTACT_ROUTING_DEFAULTS as e}from"efficient-web-builder/format/lib/content/contact";import{hidableText as i}from"efficient-easel/screen/lib/document/hidable";import{parseSectionHeadPlacement as l}from"efficient-web-builder/format/lib/sections/section-head-placement";import{phHide as o}from"efficient-web-builder/render/lib/document/blocks/scaffold";import{cardPressTitlesOf as r}from"efficient-web-builder/render/lib/document/card-press-titles";import{CONTACT_CHANNEL_SLOT as a,CONTACT_REASON_SLOT as N,CONTACT_TOPIC_SLOT as d}from"../../../../content/contact-card-seed.js";import{SHOW_SENT_KEY as u,THANKS_SLOT as h}from"../../../../content/thanks-slot.js";import{ContactRoutingMeta as g}from"./meta.js";import{splitPads as C}from"../../../pads-itself.js";import{CONTACT_MESSAGE_ONLY_OWN as _,CONTACT_ROUTING_INNER as c,CONTACT_ROUTING_ONLY_OWN as S,CONTACT_ROUTING_OWN as b}from"../../../../content/block-own-pads.js";const U={...g,render:t=>{const m=l(t.headPlacement)==="own-box",T=n=>m?void 0:n;return O(f,{routingNumber:T(o(t.routingNumber,e.routingNumber,t.editor)),routingTagline:T(o(t.routingTagline,e.routingTagline,t.editor)),omitHead:m,templates:{ownerId:String(t.id??""),topic:t[d],reason:t[N],channel:t[a],thanks:t[h],pressTitles:{topic:r(t,d),reason:r(t,N),channel:r(t,a)}},groups:t.groups??[],formNumber:o(t.formNumber,e.formNumber,t.editor),formHeading:o(t.formHeading,e.formHeading,t.editor),metaLines:(t.metaItems??[]).map(n=>n?.text??"").filter(Boolean),showOther:t.showOther,otherLabel:i(t.otherLabel)||e.otherLabel,otherNoteTitle:o(t.otherNoteTitle,e.otherNoteTitle,t.editor),otherNoteBody:o(t.otherNoteBody,e.otherNoteBody,t.editor),buttonText:i(t.buttonText)||e.buttonText,consent:o(t.consent,e.consent,t.editor),channels:t.channels??[],formSlug:i(t.formSlug)||void 0,form:t.form,editing:t.editor?.isEditing,showSent:t[u],pads:C("ContactRouting",t,{both:b,firstOnly:S,secondOnly:_},c)})}};export{U as ContactRoutingRender};
|
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
import type { BlockRender } from "efficient-web-builder/format/lib/document/blocks/block-types";
|
|
2
|
+
export declare const FormSlots: {
|
|
3
|
+
thanksTemplate: {
|
|
4
|
+
type: "slot";
|
|
5
|
+
allow: ("Flex" | "ImageBlock" | "ButtonBlock" | "Text")[];
|
|
6
|
+
};
|
|
7
|
+
};
|
|
2
8
|
export declare const FormMeta: Omit<BlockRender, "render">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const t={label:"Form",defaultProps:{formSlug:"",heading:"",intro:"",submitText:"",finePrint:""}};export{
|
|
1
|
+
import{THANKS_ALLOW as o,THANKS_SLOT as t}from"../../../../content/thanks-slot.js";import{FORM_OWN as r}from"../../../../content/block-own-pads.js";const e={[t]:{type:"slot",allow:[...o]}},i={ownPad:r,label:"Form",fields:e,defaultProps:{formSlug:"",heading:"",intro:"",submitText:"",finePrint:""}};export{i as FormMeta,e as FormSlots};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import r from"../../../../../components/FormBlock.js";import{hidableText as i}from"efficient-easel/screen/lib/document/hidable";import{BUTTON_STYLE_KEYS as n}from"efficient-easel/screen/lib/content/style-keys";import{BUTTON_CORNERS_UNIT_KEY as o}from"efficient-easel/screen/lib/content/length-units";import{SHOW_SENT_KEY as m,THANKS_SLOT as d}from"../../../../content/thanks-slot.js";import{FormMeta as f}from"./meta.js";import{padsItself as u}from"../../../pads-itself.js";const N=u("Form",{...f,render:e=>t(r,{formSlug:i(e.formSlug)||void 0,heading:i(e.heading)||void 0,intro:i(e.intro)||void 0,submitText:i(e.submitText)||void 0,finePrint:i(e.finePrint)||void 0,form:e.form,editing:e.editor?.isEditing,nodeId:typeof e.id=="string"?e.id:"",thanks:e[d],showSent:e[m],buttonCorners:e[n.corners],buttonCornerSides:e[n.cornerSides],buttonCornersUnit:e[o]})});export{N as FormRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
import{REVIEWS_OWN as e}from"../../../../content/block-own-pads.js";const r={eyebrow:"Your turn",title:"Leave a *review.*"},t={ownPad:e,label:"Review Form",defaultProps:{eyebrow:"",title:"",designCode:""}};export{r as REVIEW_FORM_PH,t as ReviewFormMeta};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as m}from"react/jsx-runtime";import n from"../../../../../components/ReviewForm.js";import{hidableText as a}from"efficient-easel/screen/lib/document/hidable";import{parseSectionHeadPlacement as f}from"efficient-web-builder/format/lib/sections/section-head-placement";import{phHide as t}from"efficient-web-builder/render/lib/document/blocks/scaffold";import{ReviewFormMeta as w,REVIEW_FORM_PH as r}from"./meta.js";import{padsItself as l}from"../../../pads-itself.js";const h=l("ReviewForm",{...w,render:e=>{const i=f(e.headPlacement)==="own-box",o=d=>i?void 0:d;return m(n,{eyebrow:o(t(e.eyebrow,r.eyebrow,e.editor)),title:o(t(e.title,r.title,e.editor)),omitHead:i,designCode:a(e.designCode)||void 0,editing:e.editor?.isEditing})}});export{h as ReviewFormRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{cardTemplateSlot as e}from"efficient-web-builder/format/lib/content/card-template";import{PRODUCT_REVIEWS_SOURCE as t}from"../../../../sections/reviews.js";const
|
|
1
|
+
import{cardTemplateSlot as e}from"efficient-web-builder/format/lib/content/card-template";import{PRODUCT_REVIEWS_SOURCE as t}from"../../../../sections/reviews.js";import{REVIEWS_OWN as o}from"../../../../content/block-own-pads.js";const l={eyebrow:"Reviews",title:"From our *customers.*"},r={template:e()},a={ownPad:o,label:"Reviews",fields:r,defaultProps:{eyebrow:"",title:"",columns:3,limit:6,dataSource:t,items:[]}};export{l as REVIEWS_PH,a as ReviewsMeta,r as ReviewsSlots};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as n}from"react/jsx-runtime";import u from"../../../../../components/Reviews.js";import{CardTemplateRows as y}from"efficient-web-builder/render/components/CardRowContext";import{cardRow as p}from"efficient-web-builder/format/lib/content/card-template";import{declaredBlockSource as h,sourcedRows as R}from"efficient-web-builder/format/lib/content/block-sources";import{parseSectionHeadPlacement as b}from"efficient-web-builder/format/lib/sections/section-head-placement";import{parseSectionEyebrowLook as g}from"efficient-web-builder/format/lib/sections/section-eyebrow-look";import{phHide as c}from"efficient-web-builder/render/lib/document/blocks/scaffold";import{say as i}from"efficient-web-builder/format/lib/editor-words";import{ReviewsMeta as k,REVIEWS_PH as d}from"./meta.js";import{padsItself as S}from"../../../pads-itself.js";const w=()=>[{key:"sample-review-1",name:i("Sample reviewer"),rating:"5",title:i("Sample review title"),quote:i("Approved customer reviews appear here automatically — this card is only a preview of the section's shape.")},{key:"sample-review-2",name:i("Sample reviewer"),rating:"4",title:"",quote:i("Reviews are collected by the Review Form section and wait for your approval before they show.")},{key:"sample-review-3",name:i("Sample reviewer"),rating:"5",title:i("Another sample"),quote:i("Set a product design code on this section to show one product's reviews; leave it blank for the whole store.")}],q=(e,o)=>{const a=Number.parseFloat(e.rating??"");return{key:e.key||`review-${o}`,quote:e.quote??"",title:e.title??"",name:e.name??"",meta:e.dateLabel||e.role||"",...Number.isFinite(a)?{rating:a}:{}}},x=e=>(Array.isArray(e)?e:[]).map(p).filter(o=>(o.quote??"").trim()),_=S("Reviews",{...k,render:e=>{const o=b(e.headPlacement)==="own-box",a=t=>o?void 0:t,m=!!e.editor?.isEditing;let r,l=!1;if(h(e)!==""){const t=R(e,m,w()),f=typeof e.limit=="number"&&e.limit>0?e.limit:6;r=t.sample?t.rows:t.rows.slice(0,f),l=t.sample}else r=x(e.items),!r.length&&m&&(r=w(),l=!0);const v=r.map(q),s=t=>n(u,{look:g(e.eyebrowLook,"Reviews"),eyebrow:a(c(e.eyebrow,d.eyebrow,e.editor)),title:a(c(e.title,d.title,e.editor)),omitHead:o,columns:e.columns,rows:v,sample:l,editing:m,cards:t});return n(y,{ownerId:String(e.id??""),ownerType:"Reviews",Template:e.template,rows:r,fallback:s(),children:t=>s(t)})}});export{_ as ReviewsRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{SUBMIT_DEFAULTS as
|
|
1
|
+
import{SUBMIT_DEFAULTS as o}from"../../../../sections/submit-build-copy.js";import{SUBMIT_BUILD_OWN as t}from"../../../../content/block-own-pads.js";const e={boxes:{type:"slot",allow:["SubmitBox"]}},i={ownPad:t,label:"Photo Submission Form",fields:e,defaultProps:{eyebrow:o.eyebrow,title:o.title,body:o.body,formSlug:"",buttonText:o.buttonText,consent:o.consent}};export{i as SubmitBuildMeta,e as SubmitBuildSlots};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as o}from"react/jsx-runtime";import d from"../../../../../components/SubmitBuild.js";import{SUBMIT_DEFAULTS as e}from"../../../../sections/submit-build-copy.js";import{hidableText as m}from"efficient-easel/screen/lib/document/hidable";import{phHideDefault as i}from"efficient-web-builder/render/lib/document/blocks/scaffold";import{SubmitBuildMeta as
|
|
1
|
+
import{jsx as o}from"react/jsx-runtime";import d from"../../../../../components/SubmitBuild.js";import{SUBMIT_DEFAULTS as e}from"../../../../sections/submit-build-copy.js";import{hidableText as m}from"efficient-easel/screen/lib/document/hidable";import{phHideDefault as i}from"efficient-web-builder/render/lib/document/blocks/scaffold";import{SubmitBuildMeta as b}from"./meta.js";import{padsItself as n}from"../../../pads-itself.js";const a=n("SubmitBuild",{...b,render:t=>o(d,{boxes:t.boxes,inBoxes:t.layout==="boxes",eyebrow:i(t.eyebrow,e.eyebrow,t.editor),title:i(t.title,e.title,t.editor),body:i(t.body,e.body,t.editor),buttonText:i(t.buttonText,e.buttonText,t.editor),consent:i(t.consent,e.consent,t.editor),formSlug:m(t.formSlug)||void 0,form:t.form,editing:t.editor?.isEditing})});export{a as SubmitBuildRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
import{SUBSCRIBE_OWN as e}from"../../../../content/block-own-pads.js";const r={ownPad:e,label:"Subscribe Form",defaultProps:{headNum:"",headTitle:"",headDesc:"",kicker:"",leadTitle:"",intro:"",emailPlaceholder:"",submitText:"",subscribedText:"",finePrint:"",issuesHeading:"",issues:[],archiveText:"",archiveHref:""}};export{r as SubscribeMeta};
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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 I}from"../subscribe.js";import{parseSectionHeadPlacement as O}from"efficient-web-builder/format/lib/sections/section-head-placement";import{SubscribeMeta as U}from"./meta.js";import{padsItself as L}from"../../../pads-itself.js";const X=L("Subscribe",{...U,render:s=>{const{headNum:o,headTitle:l,headDesc:c,kicker:d,leadTitle:m,intro:b,emailPlaceholder:h,submitText:u,subscribedText:T,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}=s,n=O(s.headPlacement)==="own-box",a=C=>n?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:n,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(u)||e.submitText,subscribedText:r(T)||e.subscribedText,finePrint:t(x,e.finePrint,i),issuesHeading:t(f,e.issuesHeading,i),issues:I(_(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{X as SubscribeRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{SUBSCRIBE_PH as e}from"../subscribe.js";const
|
|
1
|
+
import{SUBSCRIBE_PH as e}from"../subscribe.js";import{SUBSCRIBE_OWN as i}from"../../../../content/block-own-pads.js";const r={...e,issuesHeading:"Recent posts",archiveText:"Read all posts →"},a={ownPad:i,label:"Subscribe with Posts",defaultProps:{headNum:"",headTitle:"",headDesc:"",kicker:"",leadTitle:"",intro:"",emailPlaceholder:"",submitText:"",subscribedText:"",finePrint:"",issuesHeading:"",limit:4,archiveText:"",archiveHref:""}};export{r as SUBSCRIBE_BLOGS_PH,a as SubscribeBlogsMeta};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as a}from"react/jsx-runtime";import c from"../../../../../components/Subscribe.js";import{hidableText as
|
|
1
|
+
import{jsx as a}from"react/jsx-runtime";import c from"../../../../../components/Subscribe.js";import{hidableText as r}from"efficient-easel/screen/lib/document/hidable";import{NEWSLETTER_SOURCE as s}from"../../../../newsletter-signup.js";import{phHide as t}from"efficient-web-builder/render/lib/document/blocks/scaffold";import{subscribeRailRows as l}from"../subscribe.js";import{SubscribeBlogsMeta as m,SUBSCRIBE_BLOGS_PH as i}from"./meta.js";import{padsItself as b}from"../../../pads-itself.js";const g=b("SubscribeBlogs",{...m,render:e=>{const d=l("posts",e);return a(c,{headNum:t(e.headNum,i.headNum,e.editor),headTitle:t(e.headTitle,i.headTitle,e.editor),headDesc:t(e.headDesc,i.headDesc,e.editor),kicker:t(e.kicker,i.kicker,e.editor),leadTitle:t(e.leadTitle,i.leadTitle,e.editor),intro:t(e.intro,i.intro,e.editor),emailPlaceholder:r(e.emailPlaceholder)||i.emailPlaceholder,submitText:r(e.submitText)||i.submitText,subscribedText:r(e.subscribedText)||i.subscribedText,finePrint:t(e.finePrint,i.finePrint,e.editor),issuesHeading:t(e.issuesHeading,i.issuesHeading,e.editor),issues:d,source:s.subscribeBlogsSection,editing:e.editor?.isEditing,archiveText:t(e.archiveText,i.archiveText,e.editor),archiveHref:r(e.archiveHref)||i.archiveHref})}});export{g as SubscribeBlogsRender};
|
|
@@ -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 S,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 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 f}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{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 k}from"../sections/product-grid-columns.js";import{bundleColumns as ye}from"../sections/bundle-to-grid.js";import{HERO_GALLERY_BLOCK as Ce,withHeroTemplate as Se}from"../content/hero-seed.js";import{HERO_BUY_SLOT as fe,HERO_BUY_SLOT_LABEL as ke,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_SKU_BLOCK as lt,PRODUCT_SIZE_BLOCK as ot,PRODUCT_SPECS_BLOCK as at,productCardSeed as it,withKitCardTemplate as u,withListingCardTemplate as nt,withProductCardTemplate as N}from"../content/product-card-seed.js";import{ALLOY_WHEELS_LISTING_TYPE as rt,FILTER_BLOCK_TYPE as st,FILTER_CHIPS_TYPE as Et,MENU_BLOCK_TYPE as _t,PRODUCT_GRID_TYPE as dt,PRODUCT_HERO_TYPE as pt}from"./document-nodes.js";import{withSeededSlot as D}from"../content/seed-ids.js";import{FITMENT_HEAD_FIELDS as ee,FITMENT_HEAD_TEMPLATE_LABEL as Tt,FITMENT_HEAD_TEMPLATE_SLOT as ct,FITMENT_ROW_FIELDS as te,FITMENT_ROW_TEMPLATE_LABEL as Ot,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},mt={...oe,..._("headingSmall",30)},bt={sectionPaddingTop:24,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,sectionPaddingTopPhone:24,sectionPaddingRightPhone:28,sectionPaddingBottomPhone:32,sectionPaddingLeftPhone:28},ht=Le.fallback,gt=480,Pt=70,Rt=()=>({type:a,props:{...o,name:"Featured",[f]:"cover",darken:be,darkenStyle:x,darkenPhone:Pt,darkenStylePhone:x,placement:he,direction:"column",gap:8,gapPhone:8,...r(32,32,20,20),sectionHeightMode:"fixed",sectionHeightValue:ht,sectionHeightUnit:"px",sectionHeightModePhone:"fixed",sectionHeightValuePhone:gt,sectionHeightUnitPhone:"px",[m]:"href"},slots:{[i]:[t("meta",{...n,tag:"p"},T,!0),t("title",{...n,tag:"h3",widthFit:"fill"},mt),t("excerpt",{...d,tag:"p",widthFit:"fill",maxWidth:384},ae),t("dateLabel",{...d,tag:"p"},{...T,color:"muted"})]}}),yt=()=>({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,...bt},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)}}}]}}]}}),Ct=()=>[Rt(),yt()];function St(e){const l=["featured","post"];return D(e,E,"Events",L=>S(Ct(),(s,Te)=>{const[w,...B]=Te.split("."),F=l[Number(w)]??`card${w}`;return B.length?`${L}~${F}.${B.join(".")}`:`${L}~${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:St},c=e=>Number(/(\d+)px/.exec(e)?.[1]),O={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(O.tag),letterSpacing:.25},At={textStyle:"heading-2",..._("headingMedium",O.name,O.namePhone),weight:500,lineHeight:1,letterSpacing:-.03},It={textStyle:"body-1",..._("body",O.body),lineHeight:1.5,paragraphSpacing:12},ie=()=>[t("tag",{...n,tag:"p"},kt,!0),t("name",{...n,tag:"h3",widthFit:"fill"},At),t("desc",{...n,tag:"p",widthFit:"fill",maxWidth:420},It),{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},ut=()=>({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",[f]:"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 Nt(e){return D(e,E,"Collections",l=>S([ut()],(L,s)=>`${l}~card${s?`.${s}`:""}`))}const Dt={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:Nt},wt=35,Bt=50,Ft=106,Ht=85,Kt="nextImage",Mt=me,re="#c4c1ba",se={...C,...p(11),letterSpacing:.24,color:"main"},Yt={...se,color:re},Gt={...C,...p(12,11),color:"main"},xt={textStyle:"heading-3",..._("headingSmall",22,16),weight:500,lineHeight:1.05,letterSpacing:-.02,color:Mt},Ut={...C,...p(12),letterSpacing:.12,color:re},g=r(0,0,0,0),Vt=()=>({type:a,props:{...o,name:"Tile",placement:"top-left",share:"content",gap:0,gapPhone:0,...g,[f]:"image",boxShape:"square",darken:wt,[Oe]:Kt,[G.zoom]:Ft,[G.darken]:Bt},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"},Yt)]}},{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:Ht,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},Gt),t("name",{...n,tag:"h3"},xt)]}},t("meta",{...n,tag:"p"},Ut)]}}]}});function Wt(e){return D(e,E,"GalleryB",l=>S([Vt()],(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:Wt},$t=["showCardPrice","showCardFinishes","showCardSizes","showCardBuy","showCardPage"],Xt=e=>Object.fromEntries(Object.entries(e).filter(([l])=>!$t.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",yl=(e={})=>it(e),P={fields:I,blocks:[{type:tt,label:"Picture"},{type:q,label:"Eyebrow"},{type:Q,label:"Name"},{type:at,label:"Specs"},{type:J,label:"Price"},{type:et,label:"Colour"},{type:ot,label:"Size"},{type:Je,label:"Buy"}],seed:e=>{if(e.dynamic!==!0)return N(e);const l=k(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:[]}],Zt=[{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:_t,...Ee},{block:dt,...P},{block:rt,...P,slots:[{slot:E,fields:I},{slot:$,label:v,fields:h},...pe],fields:[...I,...h,...A],seed:e=>Z(X(nt(e)))},{block:"RelatedProducts",...P,seed:e=>{const l=k({...Xt(e),dynamic:!0});return _e(l)?u(l):N(l,{legacyWellHonoured:!0})}},{block:"BundleOffer",...P,seed:e=>u(k({...e,columns:ye(e),dynamic:!0}))},{block:pt,slots:[{slot:E,fields:[]},{slot:Ie,label:ue,fields:W},{slot:fe,label:ke,fields:[]}],fields:W,blocks:[{type:Ce,label:"Product Gallery"},{type:q,label:"Eyebrow"},{type:Q,label:"Name"},{type:J,label:"Price"},{type:lt,label:"SKU"}],seed:e=>Ae(Ne(Se(e)))},{block:st,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:Et,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",...Dt},{block:"GalleryB",...vt},{block:"FitmentTable",fields:[...ee,...te],slots:[{slot:ct,label:Tt,fields:ee},{slot:Lt,label:Ot,fields:te}]}];ce(Zt);export{Zt as STOREFRONT_CARD_TEMPLATES,ut as collectionCardSeed,_e as drawsKits,Ct as eventsCardSeeds,Vt as galleryTileSeed,yl as productGridCardSeed,Nt as withCollectionsTemplate,St as withEventsTemplate,Wt 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 Oe}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 T,labelStyle as K,seedNodes as S,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 me,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 f}from"efficient-web-builder/format/lib/content/box-card-rule";import{POST_CARD_HEIGHT as be}from"efficient-web-builder/format/lib/post-card-layout";import{OVERLAY_INK_LIGHT as he}from"efficient-web-builder/format/lib/theme";import{EVENTS_FEATURED_DARKEN as ge,EVENTS_FEATURED_DARKEN_STYLE as x,EVENTS_FEATURED_PLACEMENT as Pe}from"../content/events-featured-look.js";import{COLLECTION_DARKEN as Re,COLLECTION_HOVER_DARKEN as ye,COLLECTION_HOVER_ZOOM as U}from"../content/collection-card-look.js";import{COLLECTION_CARD_REGIONS as b,COLLECTION_CARD_TEXT_SIZE as Ce}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 k}from"../sections/product-grid-columns.js";import{bundleColumns as Se}from"../sections/bundle-to-grid.js";import{HERO_GALLERY_BLOCK as fe,withHeroTemplate as ke}from"../content/hero-seed.js";import{THANKS_SLOT as W,THANKS_SLOT_LABEL as v}from"../content/thanks-slot.js";import{HERO_BUY_SLOT as Ae,HERO_BUY_SLOT_LABEL as Ie,withHeroBuyTemplate as Ne}from"../content/hero-buy-seed.js";import{HERO_OPTION_FIELDS as $,HERO_OPTION_SLOT as ue,HERO_OPTION_SLOT_LABEL as De,withHeroOptionTemplate as we}from"../content/hero-option-seed.js";import{FILTER_OPTIONS_FIELD as Be,withFilterChipsTemplate as Fe,withFilterTemplate as He}from"../content/filter-card-seed.js";import{FACET_ROW_FIELDS as h,FACET_TEMPLATE_LABEL as X,FACET_TEMPLATE_SLOT as Z,withFacetTemplate as j}from"../content/facet-row-seed.js";import{RAIL_HEAD_TEMPLATE_LABEL as Ke,RAIL_HEAD_TEMPLATE_SLOT as Me,RAIL_ROW_FIELDS as A,RAIL_TEMPLATE_LABEL as Ye,RAIL_TEMPLATE_SLOT as Ge,withRailTemplates as z}from"../content/rail-row-seed.js";import{MENU_LINK_BLOCK as xe,withMenuTemplate as Ue}from"../content/menu-card-seed.js";import{CONTACT_CHANNEL_FIELDS as q,CONTACT_CHANNEL_SLOT as Ve,CONTACT_REASON_FIELDS as We,CONTACT_REASON_SLOT as ve,CONTACT_TOPIC_FIELDS as Q,CONTACT_TOPIC_SLOT as $e,withContactTemplates as Xe}from"../content/contact-card-seed.js";import{ARTICLE_BODY_BLOCK as Ze,withArticleBodyTemplate as je}from"efficient-web-builder/format/lib/document/article-body-seed";import{APPOINTMENT_BOOKING_TYPE as ze,BOOKING_BOX_TYPE as qe,BOOKING_OPTION_FIELDS as Qe,BOOKING_TEMPLATE_SLOTS as Je,withBookingTemplates as et}from"../content/booking-card-seed.js";import{PRODUCT_BUY_BLOCK as tt,PRODUCT_CARD_FIELDS as I,PRODUCT_COLOUR_BLOCK as lt,PRODUCT_EYEBROW_BLOCK as J,PRODUCT_NAME_BLOCK as ee,PRODUCT_PICTURE_BLOCK as ot,PRODUCT_PRICE_BLOCK as te,PRODUCT_SKU_BLOCK as at,PRODUCT_SIZE_BLOCK as it,PRODUCT_SPECS_BLOCK as nt,productCardSeed as rt,withKitCardTemplate as N,withListingCardTemplate as st,withProductCardTemplate as u}from"../content/product-card-seed.js";import{ALLOY_WHEELS_LISTING_TYPE as Et,FILTER_BLOCK_TYPE as _t,FILTER_CHIPS_TYPE as dt,MENU_BLOCK_TYPE as Tt,PRODUCT_GRID_TYPE as pt,PRODUCT_HERO_TYPE as ct}from"./document-nodes.js";import{withSeededSlot as D}from"../content/seed-ids.js";import{FITMENT_HEAD_FIELDS as le,FITMENT_HEAD_TEMPLATE_LABEL as Lt,FITMENT_HEAD_TEMPLATE_SLOT as Ot,FITMENT_ROW_FIELDS as oe,FITMENT_ROW_TEMPLATE_LABEL as mt,FITMENT_ROW_TEMPLATE_SLOT as bt}from"../content/fitment-row-seed.js";const ae="tags",p=T(12),ie={textStyle:"heading-3",..._("headingSmall",20),weight:500,lineHeight:1.2,letterSpacing:-.02},ne={textStyle:"body-1",..._("body",14),lineHeight:1.55},ht={...ie,..._("headingSmall",30)},gt={sectionPaddingTop:24,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,sectionPaddingTopPhone:24,sectionPaddingRightPhone:28,sectionPaddingBottomPhone:32,sectionPaddingLeftPhone:28},Pt=be.fallback,Rt=480,yt=70,Ct=()=>({type:a,props:{...o,name:"Featured",[f]:"cover",darken:ge,darkenStyle:x,darkenPhone:yt,darkenStylePhone:x,placement:Pe,direction:"column",gap:8,gapPhone:8,...r(32,32,20,20),sectionHeightMode:"fixed",sectionHeightValue:Pt,sectionHeightUnit:"px",sectionHeightModePhone:"fixed",sectionHeightValuePhone:Rt,sectionHeightUnitPhone:"px",[m]:"href"},slots:{[i]:[t("meta",{...n,tag:"p"},p,!0),t("title",{...n,tag:"h3",widthFit:"fill"},ht),t("excerpt",{...d,tag:"p",widthFit:"fill",maxWidth:384},ne),t("dateLabel",{...d,tag:"p"},{...p,color:"muted"})]}}),St=()=>({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,...gt},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"},p,!0),t("dateLabel",{...d,tag:"p"},{...p,color:"muted"},!0)]}},t("title",{...n,tag:"h3",widthFit:"fill"},ie),t("excerpt",{...d,tag:"p",widthFit:"fill"},ne),{type:R,props:{[y]:ae},slots:{template:[{type:a,props:{...o,name:"Chip",...r(4,8,4,8),sectionBorder:{width:1}},slots:{[i]:[t("label",{...d,tag:"p"},p)]}}]}},{type:"ButtonBlock",props:{variant:"ghost",label:"Read more",href:"",[m]:"href",...V,icon:"arrow-right",iconPosition:"after",_partStyles:{label:K(12)}}}]}}]}}),ft=()=>[Ct(),St()];function kt(e){const l=["featured","post"];return D(e,E,"Events",O=>S(ft(),(s,Le)=>{const[w,...B]=Le.split("."),F=l[Number(w)]??`card${w}`;return B.length?`${O}~${F}.${B.join(".")}`:`${O}~${F}`}))}const At={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:ae,label:"Tags",kind:"list",fields:[{key:"label",label:"Tag"}]}],blocks:[{type:R,label:"Card list"}],seedOnInsert:kt},c=e=>Number(/(\d+)px/.exec(e)?.[1]),L={tag:c(b.tag.builtIn),name:c(b.name.builtIn),namePhone:c(Ce.namePhone),body:c(b.body.builtIn),link:c(b.link.builtIn)},It={...T(L.tag),letterSpacing:.25},Nt={textStyle:"heading-2",..._("headingMedium",L.name,L.namePhone),weight:500,lineHeight:1,letterSpacing:-.03},ut={textStyle:"body-1",..._("body",L.body),lineHeight:1.5,paragraphSpacing:12},re=()=>[t("tag",{...n,tag:"p"},It,!0),t("name",{...n,tag:"h3",widthFit:"fill"},Nt),t("desc",{...n,tag:"p",widthFit:"fill",maxWidth:420},ut),{type:"ButtonBlock",props:{variant:"ghost",label:"Explore",href:"",[m]:"href",...V,icon:"arrow-right",iconPosition:"after",_partStyles:{label:K(L.link)}}}],se={_hidden:!0,_hiddenTablet:!0,_hiddenPhone:!1},Dt=()=>({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",[f]:"image",boxShape:"portrait",darken:Re,placement:"bottom-left",direction:"column",gap:12,gapPhone:12,...r(32,32),hoverZoom:U,hoverDarken:ye,_hiddenPhone:!0},slots:{[i]:re()}},{type:"ImageBlock",props:{[y]:"image",aspect:"4/5",contained:!1,hoverZoom:U,...se}},{type:a,props:{...o,name:"Words",gap:12,gapPhone:12,...r(24,24),...H("surface"),...se},slots:{[i]:re()}}]}});function wt(e){return D(e,E,"Collections",l=>S([Dt()],(O,s)=>`${l}~card${s?`.${s}`:""}`))}const Bt={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:wt},Ft=35,Ht=50,Kt=106,Mt=85,Yt="nextImage",Gt=he,Ee="#c4c1ba",_e={...C,...T(11),letterSpacing:.24,color:"main"},xt={..._e,color:Ee},Ut={...C,...T(12,11),color:"main"},Vt={textStyle:"heading-3",..._("headingSmall",22,16),weight:500,lineHeight:1.05,letterSpacing:-.02,color:Gt},Wt={...C,...T(12),letterSpacing:.12,color:Ee},g=r(0,0,0,0),vt=()=>({type:a,props:{...o,name:"Tile",placement:"top-left",share:"content",gap:0,gapPhone:0,...g,[f]:"image",boxShape:"square",darken:Ft,[me]:Yt,[G.zoom]:Kt,[G.darken]:Ht},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"},_e)]}},t("number",{...n,tag:"p",textFit:"line"},xt)]}},{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:Mt,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},Ut),t("name",{...n,tag:"h3"},Vt)]}},t("meta",{...n,tag:"p"},Wt)]}}]}});function $t(e){return D(e,E,"GalleryB",l=>S([vt()],(O,s)=>`${l}~tile${s?`.${s}`:""}`))}const Xt={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:$t},Zt=["showCardPrice","showCardFinishes","showCardSizes","showCardBuy","showCardPage"],jt=e=>Object.fromEntries(Object.entries(e).filter(([l])=>!Zt.includes(l))),de={fields:[{key:"label",label:"Label"},{key:"href",label:"Link",kind:"link"}],blocks:[{type:xe,label:"Menu link"}],seed:Ue},Te=e=>e.dynamic===!0&&e.relationship==="bundles",fl=(e={})=>rt(e),P={fields:I,blocks:[{type:ot,label:"Picture"},{type:J,label:"Eyebrow"},{type:ee,label:"Name"},{type:nt,label:"Specs"},{type:te,label:"Price"},{type:lt,label:"Colour"},{type:it,label:"Size"},{type:tt,label:"Buy"}],seed:e=>{if(e.dynamic!==!0)return u(e);const l=k(e);return Te(e)?N(l):u(l)}},pe=[{key:"label",label:"Filter name"},{key:Be,label:"Options",kind:"list",fields:[{key:"label",label:"Option"},{key:"count",label:"Count"}]}],ce=[{slot:Ge,label:Ye,fields:A},{slot:Me,label:Ke,fields:[]}],zt=[{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",...de},{block:Tt,...de},{block:pt,...P},{block:Et,...P,slots:[{slot:E,fields:I},{slot:Z,label:X,fields:h},...ce],fields:[...I,...h,...A],seed:e=>z(j(st(e)))},{block:"RelatedProducts",...P,seed:e=>{const l=k({...jt(e),dynamic:!0});return Te(l)?N(l):u(l,{legacyWellHonoured:!0})}},{block:"BundleOffer",...P,seed:e=>N(k({...e,columns:Se(e),dynamic:!0}))},{block:ct,slots:[{slot:E,fields:[]},{slot:ue,label:De,fields:$},{slot:Ae,label:Ie,fields:[]}],fields:$,blocks:[{type:fe,label:"Product Gallery"},{type:J,label:"Eyebrow"},{type:ee,label:"Name"},{type:te,label:"Price"},{type:at,label:"SKU"}],seed:e=>Ne(we(ke(e)))},{block:_t,slots:[{slot:E,fields:pe},{slot:Z,label:X,fields:h},...ce],fields:[...pe,...h,...A],blocks:[{type:R,label:"Card list"}],seed:e=>z(j(He(e)))},{block:dt,fields:[{key:"label",label:"Pick"},{key:"mark",label:"Remove mark"}],seed:Fe},{block:"ContactRouting",slots:[{slot:$e,label:"Topic card",fields:Q},{slot:ve,label:"Reason chip",fields:We},{slot:Ve,label:"Channel row",fields:q},{slot:W,label:v,fields:[]}],fields:[...Q,...q],seed:Xe},{block:"Form",slots:[{slot:W,label:v,fields:[]}],fields:[]},{block:Ze,fields:[{key:"heading",label:"Subhead"},{key:"paragraph",label:"Paragraph",multiline:!0}],seed:je},...[qe,ze].map(e=>({block:e,slots:Je,fields:Qe,seed:l=>et(e,l)})),{block:"Events",...At},{block:"Collections",...Bt},{block:"GalleryB",...Xt},{block:"FitmentTable",fields:[...le,...oe],slots:[{slot:Ot,label:Lt,fields:le},{slot:bt,label:mt,fields:oe}]}];Oe(zt);export{zt as STOREFRONT_CARD_TEMPLATES,Dt as collectionCardSeed,Te as drawsKits,ft as eventsCardSeeds,vt as galleryTileSeed,fl as productGridCardSeed,wt as withCollectionsTemplate,kt as withEventsTemplate,$t as withGalleryTemplate};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { BlockRender } from "efficient-web-builder/format/lib/document/blocks/block-types";
|
|
2
|
+
import { type SectionOwnPad } from "efficient-web-builder/render/lib/content/section-own-pads";
|
|
3
|
+
import type { TierFrames } from "efficient-web-builder/render/lib/content/section-padding";
|
|
4
|
+
import { type SplitPads } from "../../components/SectionPadScope.js";
|
|
5
|
+
type Render = NonNullable<BlockRender["render"]>;
|
|
6
|
+
type RenderProps = Render extends (props: infer P) => unknown ? P : never;
|
|
7
|
+
export declare function padsItself<B extends BlockRender>(type: string, block: B): B;
|
|
8
|
+
export declare function splitPads(type: string, props: RenderProps, own: {
|
|
9
|
+
both: SectionOwnPad;
|
|
10
|
+
firstOnly?: SectionOwnPad;
|
|
11
|
+
secondOnly?: SectionOwnPad;
|
|
12
|
+
}, inner: {
|
|
13
|
+
firstBottom: TierFrames;
|
|
14
|
+
lastTop: TierFrames;
|
|
15
|
+
}): SplitPads | undefined;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as f}from"react/jsx-runtime";import{sectionRootPad as e,sectionSplitPads as c}from"efficient-web-builder/render/lib/content/section-own-pads";import{SectionPadScope as u}from"../../components/SectionPadScope.js";const i={frame:()=>0};function P(n,t){const{render:o,ownPad:r}=t;return!o||!r?t:{...t,render:s=>{const d={atTop:e(n,s,r),inBox:e(n,s,i)};return!d.atTop&&!d.inBox?o(s):f(u,{pad:d,children:o(s)})}}}const a=(n,t)=>n||t?{atTop:n,inBox:t}:null;function h(n,t,o,r){const l=c(n,t,o.both,r),s=c(n,t,i,{firstBottom:0,lastTop:0}),d={first:a(l.first,s.first),second:a(l.last,s.last),firstOnly:o.firstOnly?a(e(n,t,o.firstOnly),e(n,t,i)):null,secondOnly:o.secondOnly?a(e(n,t,o.secondOnly),e(n,t,i)):null};return Object.values(d).some(Boolean)?d:void 0}export{P as padsItself,h as splitPads};
|