efficient-storefront-blocks 0.131.0 → 0.131.1

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 CHANGED
@@ -1,5 +1,24 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.131.1 — 2026-11-26 — Form button and title settings, and Menu letters
4
+
5
+ - **Button width on a Form.** The Form's Design tab has the Button block's
6
+ `Width` row (`widthFit`: Fit content / Fill): Fill makes the submit button
7
+ fill the form's width. Unset and Fit content draw today's button.
8
+ - **Button colours on a Form.** `Fill color` and `Text color` (the Button's
9
+ keys and names) paint the submit button. Unset follows the theme's button
10
+ colours, as today.
11
+ - **Hide a Form's title.** The `Heading override` row has the eye: shut, the
12
+ Form draws no title, the form's own title too. Open draws it as before.
13
+ - **Letters on a Form.** The header's `Letters` list, as a dropdown: Capitalised draws the
14
+ form's labels, button and consent line as typed. Unset and Uppercase draw
15
+ today's bytes.
16
+ - **Letters on a one-row Menu.** A page Menu in one row, Plain or Tabs, has
17
+ the header's `Letters` list as a dropdown (a Menu button's links are in its
18
+ side panel, so the row is hidden there): Uppercase (the default, today's
19
+ capitals and letter space) or Capitalised (the words as typed, no letter
20
+ space). Unset and Uppercase draw today's bytes.
21
+
3
22
  ## 0.131.0 — 2026-11-26 — Runs on efficient-web-builder 76.1, on efficient-shell 16.7
4
23
 
5
24
  **For hosts:** move `efficient-shell` to `^16.7.0` (web-builder 76's own
@@ -1 +1 @@
1
- import{jsx as m}from"react/jsx-runtime";import{plainText as o,plainTextarea as s}from"efficient-web-builder/editor/lib/document/controls";import{group as e,section as p}from"efficient-easel/screen/lib/document/box-fields";import{lengthUnitFields as d,LENGTH_UNITS_TABLE as f,rowSay as l}from"efficient-web-builder/editor/lib/document/box-fields";import{keptByRow as S,styleFieldBuilders as _}from"efficient-easel/screen/lib/document/style-fields";import{BUTTON_STYLE_KEYS as r}from"efficient-easel/screen/lib/content/style-keys";import{BUTTON_CORNERS_UNIT_KEY as c}from"efficient-easel/screen/lib/content/length-units";import{formPicker as T}from"../controls.js";import{select as E}from"efficient-web-builder/editor/lib/document/box-fields";import{EDITOR_ONLY_GROUP as F}from"efficient-web-builder/editor/lib/document/field-groups";import{deviceField as i}from"efficient-easel/screen/lib/document/device-fields";import{EyeIcon as O}from"efficient-easel/icons";import{SHOW_SENT_KEY as g,SHOW_SENT_OPTIONS as N}from"../../../../../../render/lib/content/thanks-slot.js";import{FormSlots as a}from"../../../../../../render/lib/document/blocks/service/Form/meta.js";const u=t=>l(t==="Corners"?"Field corners":t),{cornersField:R}=_(u,{lengthUnits:f}),n={kind:"radius",unitKey:c},y=()=>0,v={fields:{...a,_gForm:e("Form"),formSlug:T(),_gContent:e("Content"),heading:o("Heading override"),intro:s("Intro"),submitText:o("Submit button"),finePrint:o("Fine print"),_gPreview:i("desktop",e(F)),[g]:i("desktop",E("Show",m(O,{}),[...N],"form")),_dDesign:p("Design"),[r.corners]:R({key:r.corners,sidesKey:r.cornerSides,useFollows:y,step:4,length:n}),[r.cornerSides]:S(r.corners),...d(n,r.corners)}};export{v as FormFields};
1
+ import{jsx as r}from"react/jsx-runtime";import{colorInput as n,plainText as m,plainTextarea as l,text as T}from"efficient-web-builder/editor/lib/document/controls";import{group as e,section as p}from"efficient-easel/screen/lib/document/box-fields";import{lengthUnitFields as d,LENGTH_UNITS_TABLE as c,rowSay as f}from"efficient-web-builder/editor/lib/document/box-fields";import{keptByRow as S,styleFieldBuilders as E}from"efficient-easel/screen/lib/document/style-fields";import{BUTTON_STYLE_KEYS as o}from"efficient-easel/screen/lib/content/style-keys";import{BUTTON_CORNERS_UNIT_KEY as F}from"efficient-easel/screen/lib/content/length-units";import{formPicker as O}from"../controls.js";import{select as t}from"efficient-web-builder/editor/lib/document/box-fields";import{EDITOR_ONLY_GROUP as N}from"efficient-web-builder/editor/lib/document/field-groups";import{deviceField as s}from"efficient-easel/screen/lib/document/device-fields";import{CaseIcon as R,EyeIcon as a,FullWidthIcon as I}from"efficient-easel/icons";import{HEADER_NAV_TEXT_CASE_FALLBACK as g,HEADER_NAV_TEXT_CASES as u}from"../../../../../../render/lib/content/header-bar.js";import{SHOW_SENT_KEY as C,SHOW_SENT_OPTIONS as x}from"../../../../../../render/lib/content/thanks-slot.js";import{FORM_BUTTON_WIDTH_FIT as A,FORM_BUTTON_WIDTHS as U}from"../../../../../../render/components/FormBlock.js";import{FormSlots as y}from"../../../../../../render/lib/document/blocks/service/Form/meta.js";const B=i=>f(i==="Corners"?"Field corners":i),{cornersField:H}=E(B,{lengthUnits:c}),_={kind:"radius",unitKey:F},h=()=>0,q={fields:{...y,_gForm:e("Form"),formSlug:O(),_gContent:e("Content"),heading:T("Heading override"),intro:l("Intro"),submitText:m("Submit button"),finePrint:m("Fine print"),_gPreview:s("desktop",e(N)),[C]:s("desktop",t("Show",r(a,{}),[...x],"form")),_dDesign:p("Design"),[o.corners]:H({key:o.corners,sidesKey:o.cornerSides,useFollows:h,step:4,length:_}),[o.cornerSides]:S(o.corners),...d(_,o.corners),widthFit:t("Width",r(I,{}),[...U],A),[o.fill]:n("Fill color",""),[o.text]:n("Text color",""),textCase:t("Letters",r(R,{}),[...u],g)}};export{q as FormFields};
@@ -1 +1 @@
1
- import{jsx as l,Fragment as V,jsxs as q}from"react/jsx-runtime";import{textKindStyleRows as X}from"./text-kind-style-rows.js";import{assignSectionGroups as R,reseatBucketTabs as A}from"efficient-web-builder/editor/lib/document/field-groups";import{buildBlockCategories as Q}from"efficient-web-builder/format/lib/document/section-catalog";import{CONTAINER_DIRECTION_LABELS as v}from"efficient-web-builder/format/lib/content/container-direction";import{SITE_FOOTER_TYPE as J,SITE_HEADER_TYPE as Z}from"efficient-web-builder/format/lib/document/section-groups";import $ from"../../components/MenuLinkRangeField.js";import ee from"../../components/EditorPreviewChat.js";import te from"../../components/EditorPreviewSurface.js";import{isSystemPageSlug as oe,POPUP_DAYS_RANGE as D,POPUP_DELAY_RANGE as w,POPUP_HIDE_AFTER as re,POPUP_SCROLL_RANGE as I,POPUP_SHOW_ON as ie,POPUP_TRIGGERS as N,SUBSCRIBE_POPUP_DEFAULTS as ae,SUBSCRIBE_POPUP_KIND as le}from"efficient-web-builder/format/lib/content/subscribe";import{shownForOption as y,withRowRules as ne,withShowWhen as P}from"efficient-web-builder/render/lib/document/show-when";import{POPUP_KIND_PROP as se,POPUP_TEXT_KIND_LABELS as ce,POPUP_TEXT_KINDS as me}from"efficient-web-builder/format/lib/popup/text-kinds";import{loadPages as ue}from"efficient-web-builder/editor/components/StorefrontLinkField";import{pagePath as de}from"../../../render/lib/links/link-rules.js";import{getEditorSiteId as pe}from"efficient-web-builder/render/lib/editor-site";import{CART_DRAWER_DEFAULTS as Pe,CART_DRAWER_KIND as E}from"efficient-web-builder/format/lib/content/cart-drawer";import{POPUP_PAGE_KIND as H}from"efficient-web-builder/format/lib/popup/look";import{menuPanelLookFields as ge,popupLookFields as fe}from"./popup-look-fields.js";import{MENU_PANEL_TINT_OPACITY_DEFAULT as Se,MENU_PANEL_WIDTH_DEFAULT as be,MENU_STYLE_BUTTON as x,MENU_STYLE_PLAIN as k,MENU_STYLE_TABS as B}from"../../../render/lib/content/menu-row.js";import{CONSENT_BANNER_KIND as M}from"efficient-web-builder/format/lib/content/consent-banner";import{consentBannerLayoutField as Te}from"../../components/ConsentBannerLayoutTiles.js";import{CategoryIcon as he,CheckIcon as ye,ClockIcon as F,ColumnsIcon as ke,DirectionIcon as Ee,EyeIcon as Be,ListIcon as Fe,PageIcon as _e,PlacementIcon as Le,ScrollPointIcon as Oe,TabsIcon as Ce,TriggerIcon as Re}from"efficient-easel/icons";import{deviceField as U}from"efficient-easel/screen/lib/document/device-fields";import{FieldGlyph as Ae}from"efficient-web-builder/editor/components/FieldGlyph";import{DisplayRow as ve,multiSelect as De,panelNote as we,plainText as a,plainTextarea as p,sectionShapeFields as Ie,sectionThemeFields as Ne,textList as _,toggle as G}from"efficient-web-builder/editor/lib/document/controls";import{group as u,phoneTwinFields as He}from"efficient-easel/screen/lib/document/box-fields";import{segmented as g,select as xe,slider as L}from"efficient-web-builder/editor/lib/document/box-fields";import{blockAlignRow as Me}from"./block-align-row.js";import{formPicker as Ue}from"./blocks/service/controls.js";import{SECTION_THEME_FOLLOW_LABEL as Ge}from"efficient-web-builder/editor/components/SectionThemePicker";import{nestedAccentValue as Ke}from"efficient-web-builder/format/lib/content/section-surface";import{isEditorOnDynamicPage as We}from"efficient-web-builder/format/lib/document/editor-page-context";import{TEMPLATE_PRODUCT_TYPE_PROP as Ye}from"efficient-web-builder/format/lib/content/product-page";import{PRODUCT_KIND_OPTIONS as je}from"../../../render/lib/catalog/plp-item.js";import{PH as O}from"efficient-web-builder/format/lib/document/blocks/placeholders";import{NO_BLOCK_SOURCE as ze,blockSourceField as Ve,blockSourceFields as qe}from"efficient-web-builder/editor/lib/document/block-source-fields";import{menuTemplateFollowsContent as Xe}from"../../../render/lib/content/menu-card-seed.js";import"../efficient-backend.js";import"../../../render/lib/document/slot-seeds.js";import"../../../render/lib/document/card-templates.js";import"../../../render/lib/document/section-to-box-rows-reviews.js";import"../../../render/lib/document/section-to-box-rows-spec.js";import"../../../render/lib/document/section-to-box-rows-productgrid.js";import"../../../render/lib/document/section-to-box-rows-events.js";import"../../../render/lib/document/section-to-box-rows-collections.js";import"../../../render/lib/document/section-to-box-rows-gallery.js";import"../../../render/lib/document/section-to-box-rows-producthero.js";import"../../../render/lib/document/section-to-box-rows-fitment.js";import"../../../render/lib/document/section-to-box-rows-detail.js";import"../../../render/lib/document/section-to-box-rows-service.js";import"../../../render/lib/document/section-to-box-rows-listing.js";import"./section-text-regions.js";import{generalBlocks as e}from"efficient-web-builder/editor/lib/document/blocks/general/index";import{commerceBlocks as t}from"./blocks/commerce/index.js";import{serviceBlocks as i}from"./blocks/service/index.js";import{EditorThemedBody as Qe,suppressPreviewNav as Je}from"efficient-web-builder/editor/lib/document/page-root";import Ze from"../../components/HeaderSection.js";import{addPageBlocksFromFooter as $e,PAGE_MENU_DIRECTION_DEFAULT as C}from"../../../render/lib/document/footer-page-blocks.js";import{drawPopupPage as et,drawPublishedStorefrontRoot as tt,drawSystemPage as ot,StorefrontPageProviders as rt}from"../../../render/lib/document/storefront-root.js";import it from"../../components/PostListStartsFromPage.js";import{GENERAL_ROOT_FIELDS as at}from"efficient-web-builder/editor/lib/document/page-root-fields";import{finishRegistry as lt}from"efficient-web-builder/editor/lib/document/registry";import{pictureHoverFields as nt}from"efficient-web-builder/editor/lib/animation/hover-fields";import{HOVER_GROUP_KEY as K,PICTURE_HOVER_KEYS as W}from"efficient-web-builder/format/lib/animation/hover";import{MENU_BLOCK_TYPE as st}from"../../../render/lib/document/document-nodes.js";const ct="Newsletter (built in)",mt=[{id:"currentPage",label:"Current page"}],wo=[{value:"00",label:O.label},{value:"00",label:O.label},{value:"00",label:O.label}],r=ae,b={field:"autoOpen",is:!0},ut={all:[y("hideAfter",re,r.hideAfter,["days"]),{not:{all:[{field:"hideAfter",is:null,default:null},{field:"oncePerSession",in:[!0,!1]}]}}]},dt=[[["trigger","showOn","hideAfter"],b],[["autoOpenDelaySec"],{all:[b,y("trigger",N,r.trigger,["delay","exit"])]}],[["scrollPercent"],{all:[b,y("trigger",N,r.trigger,["scroll"])]}],[["showOnPages"],{all:[b,y("showOn",ie,r.showOn,["chosen"])]}],[["hideDays"],{all:[b,ut]}]],pt=ne({formSlug:Ue(void 0,ct),_gLeft:u("Left panel"),metaLabel:a("Meta label",r.metaLabel),issueLabel:a("Issue label",r.issueLabel),issueNumber:a("Issue number",r.issueNumber),kicker:a("Eyebrow",r.kicker),heading:p("Heading",r.heading),deck:p("Deck",r.deck),stats:{type:"array",label:"Stats",arrayFields:{label:a("Label"),value:a("Value")},getItemSummary:o=>o?.label||o?.value||"Stat"},_gForm:u("Right panel · form"),formLabel:a("Section label",r.formLabel),formHeading:a("Heading",r.formHeading),formIntro:p("Intro",r.formIntro),firstNameLabel:a("First-name label",r.firstNameLabel),firstNamePlaceholder:a("First-name placeholder",r.firstNamePlaceholder),emailLabel:a("Email label",r.emailLabel),emailPlaceholder:a("Email placeholder",r.emailPlaceholder),_gChoices:u("Right panel · choices"),interestsLabel:a("Interests label",r.interestsLabel),interests:_("Interest chips",l(Ae,{noun:"tag"}),"Chip label","verbatim"),frequencyLabel:a("Frequency label",r.frequencyLabel),frequencies:_("Frequency options",l(Fe,{}),"Option label","verbatim"),_gActions:u("Right panel · actions"),submitText:a("Submit button",r.submitText),finePrint:a("Fine print",r.finePrint),dismissText:a("Dismiss link",r.dismissText),emailInvalidText:a("Invalid-email error",r.emailInvalidText),submitErrorText:a("Submit-failed error",r.submitErrorText),_gSuccess:u("Success state"),successHeading:a("Heading",r.successHeading),successBody:p("Message",r.successBody),keepBrowsingText:a("Dismiss button",r.keepBrowsingText),...Ne(Ke,Ge),...Ie(),...X(me,se,ce,{unsetLabel:"Popup's own"}),_gBehaviour:u("Behavior"),autoOpen:G("Show by itself",r.autoOpen,l(Be,{})),trigger:g("Trigger",l(Re,{}),[{label:"Delay",value:"delay"},{label:"Scroll",value:"scroll"},{label:"Exit",value:"exit"}],r.trigger),autoOpenDelaySec:L("Delay",l(F,{}),w.min,w.max,1,r.autoOpenDelaySec,"s"),scrollPercent:L("Scroll",l(Oe,{}),I.min,I.max,5,r.scrollPercent,"%"),showOn:g("Pages",l(_e,{}),[{label:"All",value:"all"},{label:"Chosen",value:"chosen"}],r.showOn),showOnPages:De("Chosen pages",[],"None"),hideAfter:g("After close",l(F,{}),[{label:"This visit",value:"visit"},{label:"Days",value:"days"},{label:"Never",value:"never"}],r.hideAfter),hideDays:L("Days",l(F,{}),D.min,D.max,1,r.hideDays),_gArrangement:u("Arrangement"),formSide:g("Form side",l(Le,{}),[{label:"Right",value:"right"},{label:"Left",value:"left"}],r.formSide),_gPhone:U("mobile",u("On a phone")),valuePanelOnPhone:U("mobile",G("Left panel",r.valuePanelOnPhone,l(ke,{})))},dt),Y=R(pt,"SubscribePopup");async function Pt(){return(await ue(pe()??"")).filter(s=>!oe(s.slug)).map(s=>({label:s.label,value:de(s.slug)}))}async function gt(){return A({...Y,showOnPages:{...Y.showOnPages,options:await Pt().catch(()=>[])}})}const d=Pe,ft={_gHeader:u("Header"),kickerBadge:a("Eyebrow badge",d.kickerBadge),kickerText:a("Eyebrow text",d.kickerText),titleLead:a("Heading",d.titleLead),titleAccent:a("Heading accent",d.titleAccent),subtitleEmpty:p("Sub-line · empty",d.subtitleEmpty),subtitleOne:p("Sub-line · one set",d.subtitleOne),subtitleMany:p("Sub-line · several sets",d.subtitleMany,"{count} becomes the number of sets"),_gStatus:u("Status rail"),leadTimeValue:a("Lead time",d.leadTimeValue),shipsToFallback:a("Ships to · fallback",d.shipsToFallback,"Shown only while the site serves no countries — otherwise the site's default country is stated"),_gPromises:u("Promise row"),promises:_("Trust markers",l(ye,{}),"Marker","verbatim"),_gEmpty:u("Empty basket"),emptyKicker:a("Eyebrow",d.emptyKicker),emptyBody:p("Message",d.emptyBody)},j=(o,s,m)=>A({...o,...R(fe(s),m)}),St=j(ft,E,"CartDrawer"),bt={layout:Te,_nConsentWhere:we("The banner's words follow each visitor's country. Turn consent on or off, and pick the privacy page, in Admin › Storefront › Marketing › Privacy.")};function Tt({kind:o}){return l("div",{style:{padding:"14px 18px",fontFamily:"var(--font-mono, monospace)",fontSize:12,letterSpacing:"0.18em",textTransform:"uppercase",color:"var(--fg-dim)",borderBottom:"1px solid var(--site-line)"},children:o===E?"This is the cart drawer — edit its copy in the Settings panel →":o===M?"This is the cookie banner — pick its layout in the Settings panel →":"This is the site popup — edit it in the Settings panel →"})}const f={root:{fields:{...at},resolveFields:async(o,{fields:s})=>{if(o?.props?.kind===le)return gt();if(o?.props?.kind===H)return j(s,H,"PopupPage");if(o?.props?.kind===E)return St;if(o?.props?.kind===M)return bt;const m=s;return We()?{[Ye]:xe("Product type",l(he,{}),je,"alloy-wheel"),...m}:m},render:o=>{const{editor:s,pageBackground:m,theme:T,fonts:h}=o;if(!s?.isEditing)return tt(o);const S=ot(o,l(Tt,{kind:o.kind}));if(S)return S;const n=et(o,!0);return l(Qe,{propsTheme:T,propsFonts:h,pageBackground:typeof m=="string"?m:void 0,suppressPreviewNav:Je,overlay:q(V,{children:[l(ee,{}),l(te,{})]}),children:l(it,{children:n??l(rt,{rootProps:o,children:o.children})})})}},categories:Q(),components:{Heading:e.Heading,Text:e.Text,Eyebrow:e.Eyebrow,ImageBlock:e.ImageBlock,LogoBlock:e.LogoBlock,ButtonBlock:e.ButtonBlock,Spacer:e.Spacer,Divider:e.Divider,Grid:e.Grid,Flex:e.Flex,Breadcrumb:e.Breadcrumb,Masthead:e.Masthead,CategoryBar:e.CategoryBar,FeaturedCover:e.FeaturedCover,LongRead:e.LongRead,Series:e.Series,Subscribe:i.Subscribe,SubscribeBlogs:i.SubscribeBlogs,Banner:e.Banner,ParagraphsA:e.ParagraphsA,StatsParagraph:e.StatsParagraph,Timeline:e.Timeline,Footprint:e.Footprint,TimelineTrack:e.TimelineTrack,TitleWithButtons:e.TitleWithButtons,Stats:e.Stats,Integrations:e.Integrations,Mockup:e.Mockup,Chart:e.Chart,KeyFeatures:e.KeyFeatures,Testimonials:e.Testimonials,Reviews:i.Reviews,RatingBlock:i.RatingBlock,Prose:e.Prose,Cards:e.Cards,Logos:e.Logos,Ticker:e.Ticker,ContactRouting:i.ContactRouting,ContactLocations:e.ContactLocations,DealerFinder:i.DealerFinder,SignUp:i.SignUp,HeroSingle:e.HeroSingle,Hero:e.Hero,HeroSlide:e.HeroSlide,HeroGroup:e.HeroGroup,Collections:t.Collections,CollectionCard:t.CollectionCard,Events:i.Events,RateTable:i.RateTable,MessagingCards:i.MessagingCards,ContactCards:i.ContactCards,OpeningHours:i.OpeningHours,PostCard:e.PostCard,DocMetaCards:e.DocMetaCards,DocTabs:e.DocTabs,DocMasthead:e.DocMasthead,DocBody:e.DocBody,Contents:e.Contents,ListSearch:e.ListSearch,FAQ:e.FAQ,Gallery:t.Gallery,GalleryB:t.GalleryB,SpecStrip:e.SpecStrip,GalleryItem:t.GalleryItem,Manifesto:e.Manifesto,SectionHeader:e.SectionHeader,IntroBleed:e.IntroBleed,Split:e.Split,SubmitBuild:i.SubmitBuild,SubmitBox:i.SubmitBox,ReviewForm:i.ReviewForm,Form:i.Form,AppointmentBooking:i.AppointmentBooking,BookingBox:i.BookingBox,CatalogFilterBar:t.CatalogFilterBar,AlloyWheelsListing:t.AlloyWheelsListing,ProductGrid:t.ProductGrid,ProductHero:t.ProductHero,ProductGallery:t.ProductGallery,SpecTable:t.SpecTable,ProcessSteps:e.ProcessSteps,DetailRows:t.DetailRows,FitmentTable:t.FitmentTable,RelatedProducts:t.RelatedProducts,BundleOffer:t.BundleOffer,CompatibleTyres:t.CompatibleTyres,TyreSizes:t.TyreSizes,TyreFitment:t.TyreFitment,EuTyreLabel:t.EuTyreLabel,EuTyreLabelBlock:t.EuTyreLabelBlock,WheelDiagram:t.WheelDiagram,ProductSize:t.ProductSize,ProductColour:t.ProductColour,ProductPrice:t.ProductPrice,ProductBuyButton:t.ProductBuyButton,FilterBlock:t.FilterBlock,FilterChipsBlock:t.FilterChipsBlock,ProductPicture:t.ProductPicture,ProductSpecs:t.ProductSpecs,ProductBuy:t.ProductBuy,ProductEyebrow:t.ProductEyebrow,ProductName:t.ProductName,ProductSku:t.ProductSku,FitmentFinder:t.FitmentFinder,FitmentPicker:t.FitmentPicker,StockFitment:t.StockFitment,OrderSummary:e.OrderSummary,DeliveryOptions:t.DeliveryOptions,PaymentBadges:e.PaymentBadges,CheckoutCTA:t.CheckoutCTA,ProductRef:t.ProductRef,CustomHTML:e.CustomHTML,CardList:e.CardList,HostPart:e.HostPart,Header:t.Header,Footer:i.Footer,FooterLogo:i.FooterLogo,FooterMenu:i.FooterMenu,ArticleBody:i.ArticleBody,MenuLinkBlock:i.MenuLinkBlock,FooterDivider:i.FooterDivider,FooterGroup:i.FooterGroup,FooterText:i.FooterText,FooterEmailSignup:i.FooterEmailSignup,FooterSocial:i.FooterSocial,FooterMessaging:i.FooterMessaging,FooterPayment:i.FooterPayment,LegalLineBlock:i.LegalLineBlock,SearchBlock:t.SearchBlock,CartBlock:t.CartBlock,CountrySwitchBlock:t.CountrySwitchBlock,AccountBlock:t.AccountBlock,ThemeSwitchBlock:t.ThemeSwitchBlock,[Z]:i.SiteHeader,[J]:i.SiteFooter}};$e(f.components);{const o=f.components.MenuBlock;o.fields={...o.fields,direction:g("Direction",l(Ee,{}),[{label:v.column,value:"column"},{label:v.row,value:"row"}],C)};const s={type:"custom",render:({value:n,onChange:c})=>l($,{value:n,onChange:c})},m=P({type:"custom",render:({value:n,onChange:c})=>l(ve,{parts:mt,changed:n===!0,shown:()=>n===!0,onPress:(yt,z)=>c(z),onReset:()=>c(void 0)})},{not:{field:"direction",is:"column",default:C}});o.fields=Object.fromEntries(Object.entries(o.fields).flatMap(([n,c])=>n==="menu"?[["dataSource",Ve("Menu content","Manual")],[n,c],["linkRange",s],["currentPage",m]]:[[n,c]]));const T=o;T.resolveFields=(n,{fields:c})=>qe(st,c,n.props,{hides:["menu"]}),T.resolveData=n=>{const c=Xe(n.props);return c===n.props?n:{...n,props:c}},o.fields={...o.fields,linkAlign:Me({label:"Link alignment"}),...Object.fromEntries(Object.entries(He("menuStyle",g("Menu style",l(Ce,{}),[{label:"Plain",value:k},{label:"Tabs",value:B},{label:"Menu button",value:x}],k))).map(([n,c])=>[n,P(c,{not:{field:"direction",is:"column",default:C}})])),...Object.fromEntries(Object.entries(ge(be,Se)).map(([n,c])=>[n,P(c,{all:[{not:{field:"menuStyle",is:k,default:k}},{not:{field:"menuStyle",is:B}}]})]))};const h={not:{field:"menuStyle",is:B}},S={not:{field:"menuStyle",is:x}};o.fields.linkRange=P(o.fields.linkRange,{all:[h,ze]}),o.fields.linkAlign=P(o.fields.linkAlign,{all:[h,S]}),o.fields.direction=P(o.fields.direction,S)}{const o=f.components.Header,s=o.render;o.render=m=>m.editor?.isEditing?l(Ze,{editing:!0}):s(m)}const ht=lt(f);{const o=nt("none","ProductPicture",!0),s=f.components.ProductPicture;s.fields={...s.fields,[K]:o[K],[W.zoom]:o[W.zoom]}}const Io=ht.sectionGroupAllow;var No=f;export{Io as SECTION_GROUP_ALLOW,f as config,No as default,pt as subscribePopupFields};
1
+ import{jsx as n,Fragment as q,jsxs as X}from"react/jsx-runtime";import{textKindStyleRows as Q}from"./text-kind-style-rows.js";import{assignSectionGroups as R,reseatBucketTabs as v}from"efficient-web-builder/editor/lib/document/field-groups";import{buildBlockCategories as J}from"efficient-web-builder/format/lib/document/section-catalog";import{CONTAINER_DIRECTION_LABELS as D}from"efficient-web-builder/format/lib/content/container-direction";import{SITE_FOOTER_TYPE as Z,SITE_HEADER_TYPE as $}from"efficient-web-builder/format/lib/document/section-groups";import ee from"../../components/MenuLinkRangeField.js";import te from"../../components/EditorPreviewChat.js";import oe from"../../components/EditorPreviewSurface.js";import{isSystemPageSlug as re,POPUP_DAYS_RANGE as w,POPUP_DELAY_RANGE as I,POPUP_HIDE_AFTER as ie,POPUP_SCROLL_RANGE as N,POPUP_SHOW_ON as le,POPUP_TRIGGERS as H,SUBSCRIBE_POPUP_DEFAULTS as ne,SUBSCRIBE_POPUP_KIND as ae}from"efficient-web-builder/format/lib/content/subscribe";import{shownForOption as y,withRowRules as se,withShowWhen as P}from"efficient-web-builder/render/lib/document/show-when";import{POPUP_KIND_PROP as ce,POPUP_TEXT_KIND_LABELS as me,POPUP_TEXT_KINDS as ue}from"efficient-web-builder/format/lib/popup/text-kinds";import{loadPages as de}from"efficient-web-builder/editor/components/StorefrontLinkField";import{pagePath as pe}from"../../../render/lib/links/link-rules.js";import{getEditorSiteId as Pe}from"efficient-web-builder/render/lib/editor-site";import{CART_DRAWER_DEFAULTS as ge,CART_DRAWER_KIND as k}from"efficient-web-builder/format/lib/content/cart-drawer";import{POPUP_PAGE_KIND as x}from"efficient-web-builder/format/lib/popup/look";import{menuPanelLookFields as fe,popupLookFields as Se}from"./popup-look-fields.js";import{MENU_PANEL_TINT_OPACITY_DEFAULT as be,MENU_PANEL_WIDTH_DEFAULT as Te,MENU_STYLE_BUTTON as B,MENU_STYLE_PLAIN as E,MENU_STYLE_TABS as F}from"../../../render/lib/content/menu-row.js";import{CONSENT_BANNER_KIND as M}from"efficient-web-builder/format/lib/content/consent-banner";import{consentBannerLayoutField as he}from"../../components/ConsentBannerLayoutTiles.js";import{CategoryIcon as ye,CheckIcon as Ee,ClockIcon as L,ColumnsIcon as _e,DirectionIcon as ke,EyeIcon as Be,ListIcon as Fe,PageIcon as Le,PlacementIcon as Oe,ScrollPointIcon as Ce,TabsIcon as Ae,TriggerIcon as Re,CaseIcon as ve}from"efficient-easel/icons";import{deviceField as U}from"efficient-easel/screen/lib/document/device-fields";import{FieldGlyph as De}from"efficient-web-builder/editor/components/FieldGlyph";import{DisplayRow as we,multiSelect as Ie,panelNote as Ne,plainText as l,plainTextarea as p,sectionShapeFields as He,sectionThemeFields as xe,textList as O,toggle as G}from"efficient-web-builder/editor/lib/document/controls";import{group as u,phoneTwinFields as Me}from"efficient-easel/screen/lib/document/box-fields";import{segmented as g,select as K,slider as C}from"efficient-web-builder/editor/lib/document/box-fields";import{HEADER_NAV_TEXT_CASE_FALLBACK as Ue,HEADER_NAV_TEXT_CASES as Ge}from"../../../render/lib/content/header-bar.js";import{blockAlignRow as Ke}from"./block-align-row.js";import{formPicker as We}from"./blocks/service/controls.js";import{SECTION_THEME_FOLLOW_LABEL as Ye}from"efficient-web-builder/editor/components/SectionThemePicker";import{nestedAccentValue as je}from"efficient-web-builder/format/lib/content/section-surface";import{isEditorOnDynamicPage as Ve}from"efficient-web-builder/format/lib/document/editor-page-context";import{TEMPLATE_PRODUCT_TYPE_PROP as ze}from"efficient-web-builder/format/lib/content/product-page";import{PRODUCT_KIND_OPTIONS as qe}from"../../../render/lib/catalog/plp-item.js";import{PH as A}from"efficient-web-builder/format/lib/document/blocks/placeholders";import{NO_BLOCK_SOURCE as Xe,blockSourceField as Qe,blockSourceFields as Je}from"efficient-web-builder/editor/lib/document/block-source-fields";import{menuTemplateFollowsContent as Ze}from"../../../render/lib/content/menu-card-seed.js";import"../efficient-backend.js";import"../../../render/lib/document/slot-seeds.js";import"../../../render/lib/document/card-templates.js";import"../../../render/lib/document/section-to-box-rows-reviews.js";import"../../../render/lib/document/section-to-box-rows-spec.js";import"../../../render/lib/document/section-to-box-rows-productgrid.js";import"../../../render/lib/document/section-to-box-rows-events.js";import"../../../render/lib/document/section-to-box-rows-collections.js";import"../../../render/lib/document/section-to-box-rows-gallery.js";import"../../../render/lib/document/section-to-box-rows-producthero.js";import"../../../render/lib/document/section-to-box-rows-fitment.js";import"../../../render/lib/document/section-to-box-rows-detail.js";import"../../../render/lib/document/section-to-box-rows-service.js";import"../../../render/lib/document/section-to-box-rows-listing.js";import"./section-text-regions.js";import{generalBlocks as e}from"efficient-web-builder/editor/lib/document/blocks/general/index";import{commerceBlocks as t}from"./blocks/commerce/index.js";import{serviceBlocks as i}from"./blocks/service/index.js";import{EditorThemedBody as $e,suppressPreviewNav as et}from"efficient-web-builder/editor/lib/document/page-root";import tt from"../../components/HeaderSection.js";import{addPageBlocksFromFooter as ot,PAGE_MENU_DIRECTION_DEFAULT as _}from"../../../render/lib/document/footer-page-blocks.js";import{drawPopupPage as rt,drawPublishedStorefrontRoot as it,drawSystemPage as lt,StorefrontPageProviders as nt}from"../../../render/lib/document/storefront-root.js";import at from"../../components/PostListStartsFromPage.js";import{GENERAL_ROOT_FIELDS as st}from"efficient-web-builder/editor/lib/document/page-root-fields";import{finishRegistry as ct}from"efficient-web-builder/editor/lib/document/registry";import{pictureHoverFields as mt}from"efficient-web-builder/editor/lib/animation/hover-fields";import{HOVER_GROUP_KEY as W,PICTURE_HOVER_KEYS as Y}from"efficient-web-builder/format/lib/animation/hover";import{MENU_BLOCK_TYPE as ut}from"../../../render/lib/document/document-nodes.js";const dt="Newsletter (built in)",pt=[{id:"currentPage",label:"Current page"}],xo=[{value:"00",label:A.label},{value:"00",label:A.label},{value:"00",label:A.label}],r=ne,b={field:"autoOpen",is:!0},Pt={all:[y("hideAfter",ie,r.hideAfter,["days"]),{not:{all:[{field:"hideAfter",is:null,default:null},{field:"oncePerSession",in:[!0,!1]}]}}]},gt=[[["trigger","showOn","hideAfter"],b],[["autoOpenDelaySec"],{all:[b,y("trigger",H,r.trigger,["delay","exit"])]}],[["scrollPercent"],{all:[b,y("trigger",H,r.trigger,["scroll"])]}],[["showOnPages"],{all:[b,y("showOn",le,r.showOn,["chosen"])]}],[["hideDays"],{all:[b,Pt]}]],ft=se({formSlug:We(void 0,dt),_gLeft:u("Left panel"),metaLabel:l("Meta label",r.metaLabel),issueLabel:l("Issue label",r.issueLabel),issueNumber:l("Issue number",r.issueNumber),kicker:l("Eyebrow",r.kicker),heading:p("Heading",r.heading),deck:p("Deck",r.deck),stats:{type:"array",label:"Stats",arrayFields:{label:l("Label"),value:l("Value")},getItemSummary:o=>o?.label||o?.value||"Stat"},_gForm:u("Right panel · form"),formLabel:l("Section label",r.formLabel),formHeading:l("Heading",r.formHeading),formIntro:p("Intro",r.formIntro),firstNameLabel:l("First-name label",r.firstNameLabel),firstNamePlaceholder:l("First-name placeholder",r.firstNamePlaceholder),emailLabel:l("Email label",r.emailLabel),emailPlaceholder:l("Email placeholder",r.emailPlaceholder),_gChoices:u("Right panel · choices"),interestsLabel:l("Interests label",r.interestsLabel),interests:O("Interest chips",n(De,{noun:"tag"}),"Chip label","verbatim"),frequencyLabel:l("Frequency label",r.frequencyLabel),frequencies:O("Frequency options",n(Fe,{}),"Option label","verbatim"),_gActions:u("Right panel · actions"),submitText:l("Submit button",r.submitText),finePrint:l("Fine print",r.finePrint),dismissText:l("Dismiss link",r.dismissText),emailInvalidText:l("Invalid-email error",r.emailInvalidText),submitErrorText:l("Submit-failed error",r.submitErrorText),_gSuccess:u("Success state"),successHeading:l("Heading",r.successHeading),successBody:p("Message",r.successBody),keepBrowsingText:l("Dismiss button",r.keepBrowsingText),...xe(je,Ye),...He(),...Q(ue,ce,me,{unsetLabel:"Popup's own"}),_gBehaviour:u("Behavior"),autoOpen:G("Show by itself",r.autoOpen,n(Be,{})),trigger:g("Trigger",n(Re,{}),[{label:"Delay",value:"delay"},{label:"Scroll",value:"scroll"},{label:"Exit",value:"exit"}],r.trigger),autoOpenDelaySec:C("Delay",n(L,{}),I.min,I.max,1,r.autoOpenDelaySec,"s"),scrollPercent:C("Scroll",n(Ce,{}),N.min,N.max,5,r.scrollPercent,"%"),showOn:g("Pages",n(Le,{}),[{label:"All",value:"all"},{label:"Chosen",value:"chosen"}],r.showOn),showOnPages:Ie("Chosen pages",[],"None"),hideAfter:g("After close",n(L,{}),[{label:"This visit",value:"visit"},{label:"Days",value:"days"},{label:"Never",value:"never"}],r.hideAfter),hideDays:C("Days",n(L,{}),w.min,w.max,1,r.hideDays),_gArrangement:u("Arrangement"),formSide:g("Form side",n(Oe,{}),[{label:"Right",value:"right"},{label:"Left",value:"left"}],r.formSide),_gPhone:U("mobile",u("On a phone")),valuePanelOnPhone:U("mobile",G("Left panel",r.valuePanelOnPhone,n(_e,{})))},gt),j=R(ft,"SubscribePopup");async function St(){return(await de(Pe()??"")).filter(s=>!re(s.slug)).map(s=>({label:s.label,value:pe(s.slug)}))}async function bt(){return v({...j,showOnPages:{...j.showOnPages,options:await St().catch(()=>[])}})}const d=ge,Tt={_gHeader:u("Header"),kickerBadge:l("Eyebrow badge",d.kickerBadge),kickerText:l("Eyebrow text",d.kickerText),titleLead:l("Heading",d.titleLead),titleAccent:l("Heading accent",d.titleAccent),subtitleEmpty:p("Sub-line · empty",d.subtitleEmpty),subtitleOne:p("Sub-line · one set",d.subtitleOne),subtitleMany:p("Sub-line · several sets",d.subtitleMany,"{count} becomes the number of sets"),_gStatus:u("Status rail"),leadTimeValue:l("Lead time",d.leadTimeValue),shipsToFallback:l("Ships to · fallback",d.shipsToFallback,"Shown only while the site serves no countries — otherwise the site's default country is stated"),_gPromises:u("Promise row"),promises:O("Trust markers",n(Ee,{}),"Marker","verbatim"),_gEmpty:u("Empty basket"),emptyKicker:l("Eyebrow",d.emptyKicker),emptyBody:p("Message",d.emptyBody)},V=(o,s,m)=>v({...o,...R(Se(s),m)}),ht=V(Tt,k,"CartDrawer"),yt={layout:he,_nConsentWhere:Ne("The banner's words follow each visitor's country. Turn consent on or off, and pick the privacy page, in Admin › Storefront › Marketing › Privacy.")};function Et({kind:o}){return n("div",{style:{padding:"14px 18px",fontFamily:"var(--font-mono, monospace)",fontSize:12,letterSpacing:"0.18em",textTransform:"uppercase",color:"var(--fg-dim)",borderBottom:"1px solid var(--site-line)"},children:o===k?"This is the cart drawer — edit its copy in the Settings panel →":o===M?"This is the cookie banner — pick its layout in the Settings panel →":"This is the site popup — edit it in the Settings panel →"})}const f={root:{fields:{...st},resolveFields:async(o,{fields:s})=>{if(o?.props?.kind===ae)return bt();if(o?.props?.kind===x)return V(s,x,"PopupPage");if(o?.props?.kind===k)return ht;if(o?.props?.kind===M)return yt;const m=s;return Ve()?{[ze]:K("Product type",n(ye,{}),qe,"alloy-wheel"),...m}:m},render:o=>{const{editor:s,pageBackground:m,theme:T,fonts:h}=o;if(!s?.isEditing)return it(o);const S=lt(o,n(Et,{kind:o.kind}));if(S)return S;const a=rt(o,!0);return n($e,{propsTheme:T,propsFonts:h,pageBackground:typeof m=="string"?m:void 0,suppressPreviewNav:et,overlay:X(q,{children:[n(te,{}),n(oe,{})]}),children:n(at,{children:a??n(nt,{rootProps:o,children:o.children})})})}},categories:J(),components:{Heading:e.Heading,Text:e.Text,Eyebrow:e.Eyebrow,ImageBlock:e.ImageBlock,LogoBlock:e.LogoBlock,ButtonBlock:e.ButtonBlock,Spacer:e.Spacer,Divider:e.Divider,Grid:e.Grid,Flex:e.Flex,Breadcrumb:e.Breadcrumb,Masthead:e.Masthead,CategoryBar:e.CategoryBar,FeaturedCover:e.FeaturedCover,LongRead:e.LongRead,Series:e.Series,Subscribe:i.Subscribe,SubscribeBlogs:i.SubscribeBlogs,Banner:e.Banner,ParagraphsA:e.ParagraphsA,StatsParagraph:e.StatsParagraph,Timeline:e.Timeline,Footprint:e.Footprint,TimelineTrack:e.TimelineTrack,TitleWithButtons:e.TitleWithButtons,Stats:e.Stats,Integrations:e.Integrations,Mockup:e.Mockup,Chart:e.Chart,KeyFeatures:e.KeyFeatures,Testimonials:e.Testimonials,Reviews:i.Reviews,RatingBlock:i.RatingBlock,Prose:e.Prose,Cards:e.Cards,Logos:e.Logos,Ticker:e.Ticker,ContactRouting:i.ContactRouting,ContactLocations:e.ContactLocations,DealerFinder:i.DealerFinder,SignUp:i.SignUp,HeroSingle:e.HeroSingle,Hero:e.Hero,HeroSlide:e.HeroSlide,HeroGroup:e.HeroGroup,Collections:t.Collections,CollectionCard:t.CollectionCard,Events:i.Events,RateTable:i.RateTable,MessagingCards:i.MessagingCards,ContactCards:i.ContactCards,OpeningHours:i.OpeningHours,PostCard:e.PostCard,DocMetaCards:e.DocMetaCards,DocTabs:e.DocTabs,DocMasthead:e.DocMasthead,DocBody:e.DocBody,Contents:e.Contents,ListSearch:e.ListSearch,FAQ:e.FAQ,Gallery:t.Gallery,GalleryB:t.GalleryB,SpecStrip:e.SpecStrip,GalleryItem:t.GalleryItem,Manifesto:e.Manifesto,SectionHeader:e.SectionHeader,IntroBleed:e.IntroBleed,Split:e.Split,SubmitBuild:i.SubmitBuild,SubmitBox:i.SubmitBox,ReviewForm:i.ReviewForm,Form:i.Form,AppointmentBooking:i.AppointmentBooking,BookingBox:i.BookingBox,CatalogFilterBar:t.CatalogFilterBar,AlloyWheelsListing:t.AlloyWheelsListing,ProductGrid:t.ProductGrid,ProductHero:t.ProductHero,ProductGallery:t.ProductGallery,SpecTable:t.SpecTable,ProcessSteps:e.ProcessSteps,DetailRows:t.DetailRows,FitmentTable:t.FitmentTable,RelatedProducts:t.RelatedProducts,BundleOffer:t.BundleOffer,CompatibleTyres:t.CompatibleTyres,TyreSizes:t.TyreSizes,TyreFitment:t.TyreFitment,EuTyreLabel:t.EuTyreLabel,EuTyreLabelBlock:t.EuTyreLabelBlock,WheelDiagram:t.WheelDiagram,ProductSize:t.ProductSize,ProductColour:t.ProductColour,ProductPrice:t.ProductPrice,ProductBuyButton:t.ProductBuyButton,FilterBlock:t.FilterBlock,FilterChipsBlock:t.FilterChipsBlock,ProductPicture:t.ProductPicture,ProductSpecs:t.ProductSpecs,ProductBuy:t.ProductBuy,ProductEyebrow:t.ProductEyebrow,ProductName:t.ProductName,ProductSku:t.ProductSku,FitmentFinder:t.FitmentFinder,FitmentPicker:t.FitmentPicker,StockFitment:t.StockFitment,OrderSummary:e.OrderSummary,DeliveryOptions:t.DeliveryOptions,PaymentBadges:e.PaymentBadges,CheckoutCTA:t.CheckoutCTA,ProductRef:t.ProductRef,CustomHTML:e.CustomHTML,CardList:e.CardList,HostPart:e.HostPart,Header:t.Header,Footer:i.Footer,FooterLogo:i.FooterLogo,FooterMenu:i.FooterMenu,ArticleBody:i.ArticleBody,MenuLinkBlock:i.MenuLinkBlock,FooterDivider:i.FooterDivider,FooterGroup:i.FooterGroup,FooterText:i.FooterText,FooterEmailSignup:i.FooterEmailSignup,FooterSocial:i.FooterSocial,FooterMessaging:i.FooterMessaging,FooterPayment:i.FooterPayment,LegalLineBlock:i.LegalLineBlock,SearchBlock:t.SearchBlock,CartBlock:t.CartBlock,CountrySwitchBlock:t.CountrySwitchBlock,AccountBlock:t.AccountBlock,ThemeSwitchBlock:t.ThemeSwitchBlock,[$]:i.SiteHeader,[Z]:i.SiteFooter}};ot(f.components);{const o=f.components.MenuBlock;o.fields={...o.fields,direction:g("Direction",n(ke,{}),[{label:D.column,value:"column"},{label:D.row,value:"row"}],_)};const s={type:"custom",render:({value:a,onChange:c})=>n(ee,{value:a,onChange:c})},m=P({type:"custom",render:({value:a,onChange:c})=>n(we,{parts:pt,changed:a===!0,shown:()=>a===!0,onPress:(kt,z)=>c(z),onReset:()=>c(void 0)})},{not:{field:"direction",is:"column",default:_}});o.fields=Object.fromEntries(Object.entries(o.fields).flatMap(([a,c])=>a==="menu"?[["dataSource",Qe("Menu content","Manual")],[a,c],["linkRange",s],["currentPage",m]]:[[a,c]]));const T=o;T.resolveFields=(a,{fields:c})=>Je(ut,c,a.props,{hides:["menu"]}),T.resolveData=a=>{const c=Ze(a.props);return c===a.props?a:{...a,props:c}},o.fields={...o.fields,linkAlign:Ke({label:"Link alignment"}),...Object.fromEntries(Object.entries(Me("menuStyle",g("Menu style",n(Ae,{}),[{label:"Plain",value:E},{label:"Tabs",value:F},{label:"Menu button",value:B}],E))).map(([a,c])=>[a,P(c,{not:{field:"direction",is:"column",default:_}})])),textCase:P(K("Letters",n(ve,{}),[...Ge],Ue),{all:[{not:{field:"direction",is:"column",default:_}},{not:{field:"menuStyle",is:B}}]}),...Object.fromEntries(Object.entries(fe(Te,be)).map(([a,c])=>[a,P(c,{all:[{not:{field:"menuStyle",is:E,default:E}},{not:{field:"menuStyle",is:F}}]})]))};const h={not:{field:"menuStyle",is:F}},S={not:{field:"menuStyle",is:B}};o.fields.linkRange=P(o.fields.linkRange,{all:[h,Xe]}),o.fields.linkAlign=P(o.fields.linkAlign,{all:[h,S]}),o.fields.direction=P(o.fields.direction,S)}{const o=f.components.Header,s=o.render;o.render=m=>m.editor?.isEditing?n(tt,{editing:!0}):s(m)}const _t=ct(f);{const o=mt("none","ProductPicture",!0),s=f.components.ProductPicture;s.fields={...s.fields,[W]:o[W],[Y.zoom]:o[Y.zoom]}}const Mo=_t.sectionGroupAllow;var Uo=f;export{Mo as SECTION_GROUP_ALLOW,f as config,Uo as default,ft as subscribePopupFields};