1import{PageElementBase as s}from"./CdQXFjpm.js";import{G as n}from"./D_6K3OQ2.js";import{t as r}from"./CATxlt2j.js";import{d as l}from"./ghde6Rcn.js";import"./CXTOca8g.js";import"./0xmjySIm.js";import"./WUj_y4n6.js";class e extends s{constructor(i="root",t){super(i,t),this.widgetType="WidgetNewsletterSignUp",this.widgetName="Newsletter Sign Up",this.component="WidgetNewsletterSignUp",this.icon={icon:"news",pack:"cms"},this.pseudoWidgetType="widget",this.title="Sign up to our mailing list",this.description="Hear from us about the latest news, offers and much more.",this.button={type:"primary",title:"Sign Up"},this.style=new n,this.buildContentFields=()=>[{heading:"Title",options:[{type:"input",attributeKey:"title",placeholder:"Enter Title"}]},{heading:"Description",options:[{type:"input",attributeKey:"description",placeholder:"Enter Description"}]},{heading:"Button",options:[{type:"input",heading:"Text",attributeKey:["button","title"],placeholder:"Enter button text"},{heading:"Type",type:"select",attributeKey:["button","type"],placeholder:"Select type",items:[{id:"primary",name:"Primary"},{id:"secondary",name:"Secondary"},{id:"tertiary",name:"Tertiary"}]}]}],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"}]}]}],this.getSidebarTabs=()=>[{name:"Layout",fields:this.buildLayoutFields(),disabled:!0},{name:"Content",fields:this.buildContentFields(),default:!0},{name:"Style",fields:this.buildStyleFields()}],Object.assign(this,r(t))}serializeElement(){return{...super.serializeBaseElement(),title:this.title,description:this.description,button:this.button,style:this.style}}duplicateElement(){return new e(this.parentID,l({...this,uuid:void 0}))}}export{e 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.