PageSourceSearch

https://www.bromleyfc.co.uk/_nuxt/DxKyKlkS.js

js bromleyfc.co.uk collected 2026-09-25 00:37:17 UTC 6,996 bytes, 1 lines download raw bytes

1import{PageElementBase as L}from"./CdQXFjpm.js";import{T as k}from"./CrX2__Gh.js";import{g as S,f as w,a as C,i as P}from"./BevQCUoz.js";import{G as a}from"./DA0pkXRu.js";import{G as v}from"./D_6K3OQ2.js";import{t as x}from"./CATxlt2j.js";import{TypographyModel as K}from"./C8oKskU6.js";import{u as T}from"./DItIlxnu.js";import{d as A}from"./ghde6Rcn.js";import"./CXTOca8g.js";import"./0xmjySIm.js";import"./DhOWJ3tu.js";import"./WUj_y4n6.js";import"./T-kpnD9n.js";import"./VXN1Z6Ax.js";class f extends L{constructor(e="root",t){super(e,t),this.widgetType="WidgetCardPromo",this.widgetName="Promo Card",this.component="WidgetCardPromo",this.icon={icon:"promo",pack:"cms"},this.pseudoWidgetType="card",this.variant="stacked",this.aspect="aspect-video",this.transition="image-scale",this.style=new v({theme:"light"}),this.stackBackgroundImage=new a,this.imageBackgroundImage=new a,this.title=new K({size:"xl",font:"secondary"}),this.description="",this.image=new a,this.buttons=[new k,new k],this.stackPadding="medium",this.stackSize="medium",this.stackVerticalAlignment="bottom",this.showOverlay=!0,this.buildLayoutFields=i=>{const{getRootElementById:n}=T(),o=n(i.uuid);return[{heading:"Card Style",options:[{type:"radio",subType:"row",attributeKey:"variant",options:[{label:"Stacked",id:"stacked"},{label:"Cover",id:"cover"}]},{type:"radio",subType:"row",attributeKey:"aspect",disabled:(o==null?void 0:o.widgetType)==="hero",options:[{label:"Landscape",id:"aspect-video"},{label:"Portrait",id:"aspect-tall"},{label:"Square",id:"aspect-square"}]}]},{heading:"Text Friendly Area",tooltip:"Size and vertical alignment options are only available for XL cards.",disabled:i.variant!=="stacked",options:[{heading:"Size",type:"radio",subType:"row",attributeKey:"stackSize",options:[{label:"Medium",id:"medium"},{label:"Large",id:"large"}]},{heading:"Padding",type:"radio",subType:"row",attributeKey:["stackPadding"],options:[{label:"Small",id:"small"},{label:"Medium",id:"medium"},{label:"Large",id:"large"}]},{heading:"Vertical Alignment",type:"radio",subType:"row",attributeKey:"stackVerticalAlignment",options:[{label:"Bottom",id:"bottom",icon:{icon:"cms-align-y-bottom",pack:"cms"}},{label:"Middle",id:"centre",icon:{icon:"cms-align-y-middle",pack:"cms"}},{label:"Top",id:"top",icon:{icon:"cms-align-y-top",pack:"cms"}}]}]},{heading:"Display",disabled:i.variant!=="cover",options:[{attributeKey:"showOverlay",type:"switch",label:"Overlay"}]}]},this.buildStyleFields=()=>[{heading:"Theme",options:[{type:"radio",subType:"list",attributeKey:["style","theme"],options:[{label:"Light",id:"light"},{label:"Dark",id:"dark"},{label:"Accent",id:"club"}]}]},{heading:"Background",type:"tabs",tabsOptions:{variant:"fill"},tabs:[{title:"Colour",value:"color",index:0,options:[{type:"color-input",attributeKey:["style","backgroundColor"]}]},{title:"Image",value:"image",index:1,options:[{type:"image-picker",attributeKey:["stackBackgroundImage"],heading:"Stack Background Image",size:"xs"},{type:"image-picker",attributeKey:["imageBackgroundImage"],heading:"Image Background Image",size:"xs"}]}],options:[]},{heading:"Text Colour",options:[{type:"color-input",attributeKey:["style","color"]}]}],this.getSidebarTabs=i=>[{name:"Layout",fields:this.buildLayoutFields(i)},{name:"Content",fields:this.buildContentFields(),default:!0},{name:"Style",fields:this.buildStyleFields()}],t!=null&&t.widgetType&&!("version"in t)?Object.assign(this,this.normalizeLegacyElement(t,e)):Object.assign(this,x(t))}normalizeLegacyElement(e,t){var r,l,d,c,m,g,p,y,u,b,h;const{getElementById:i,getRootElementById:n}=T(),o=i(t),I=n(t),s=((r=e.layout)==null?void 0:r.style)==="cover"?"cover":"stacked",B=S(o,I);return{aspect:s==="cover"?"aspect-cover-legacy":"aspect-video",variant:s,widgetName:"Promo Card",stackBackgroundImage:new a({...(d=(l=e.style)==null?void 0:l.background)==null?void 0:d.image,image:((g=(m=(c=e.style)==null?void 0:c.background)==null?void 0:m.image)==null?void 0:g.image)??""}),imageBackgroundImage:new a,transition:"raise",buttons:P(e.buttons??[]),description:e.description||e.subtext||"",title:new K({...B,content:e.title}),image:new a({...e.image,image:((p=e.image)==null?void 0:p.image)??"",origin:"middle middle"}),stackSize:"medium",stackPadding:"small",stackVerticalAlignment:"centre",showOverlay:!(s!=="cover"||!e.title&&!e.description&&!e.subtext),style:new v({theme:C(((y=e.style)==null?void 0:y.theme)||"light"),backgroundColor:w((b=(u=e.style)==null?void 0:u.background)==null?void 0:b.color),color:w((h=e.style)==null?void 0:h.color)})}}serializeElement(){return{...super.serializeBaseElement(),widgetType:"WidgetCardPromo",widgetName:"Promo Card",component:"WidgetCardPromo",aspect:this.aspect,variant:this.variant,transition:this.transition??"image-scale",style:this.style,stackBackgroun
1dImage:this.stackBackgroundImage,imageBackgroundImage:this.imageBackgroundImage,title:this.title,description:this.description,image:this.image,buttons:this.buttons,stackSize:this.stackSize,stackVerticalAlignment:this.stackVerticalAlignment,stackPadding:this.stackPadding,showOverlay:this.showOverlay}}buildContentFields(){return[{heading:"Media Selection",options:[{type:"image-picker",attributeKey:["image"]}]},{heading:"Title",options:[{type:"typography-input",attributeKey:["title"],exclude:[]}]},{heading:"Text Content",options:[{type:"rich-text",attributeKey:["description"]}]},{heading:"Button One",toggleable:!0,toggleAttributeKey:["buttons","0","display"],options:[{heading:"Label",type:"input",placeholder:"e.g. Learn More",attributeKey:["buttons","0","title"]},{heading:"Link",type:"action-input",attributeKey:["buttons","0"],placeholder:"Add Link"},{heading:"Icon",type:"icon-selector",attributeKey:["buttons","0","icon","icon"]},{heading:"Icon Alignment",type:"select",attributeKey:["buttons","0","iconAlign"],items:[{id:"left",name:"Left"},{id:"right",name:"Right"}]},{heading:"Button Hierarchy",type:"select",attributeKey:["buttons","0","type"],items:[{name:"Primary",id:"primary"},{name:"Secondary",id:"secondary"},{name:"Tertiary",id:"tertiary"}]},{type:"checkbox-field",attributeKey:["openInNewTab","0"],label:"Open in New Tab"}]},{heading:"Button Two",toggleable:!0,toggleAttributeKey:["buttons","1","display"],options:[{heading:"Label",type:"input",placeholder:"e.g. Learn More",attributeKey:["buttons","1","title"]},{heading:"Link",type:"action-input",attributeKey:["buttons","1"],placeholder:"Add Link"},{heading:"Icon",type:"icon-selector",attributeKey:["buttons","1","icon","icon"]},{heading:"Icon Alignment",type:"select",attributeKey:["buttons","1","iconAlign"],items:[{id:"left",name:"Left"},{id:"right",name:"Right"}]},{heading:"Button Hierarchy",type:"select",attributeKey:["buttons","1","type"],items:[{name:"Primary",id:"primary"},{name:"Secondary",id:"secondary"},{name:"Tertiary",id:"tertiary"}]},{type:"checkbox-field",attributeKey:["openInNewTab","1"],label:"Open in New Tab"}]}]}duplicateElement(){return new f(this.parentID,A({...this,uuid:void 0}))}}export{f as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.