1import{PageElementBase as l}from"./CTfzp0o-.js";import{SELECTABLE_SNACK_MEDIA_SIDEBAR_AD_SLOTS as n}from"./D1qB2YTK.js";import{d as o}from"./ghde6Rcn.js";import"./CATxlt2j.js";import"./CXTOca8g.js";import"./0xmjySIm.js";class s extends l{constructor(a="root",d){super(a,d),this.widgetType="WidgetAdSnackMedia",this.widgetName="Snack Media Advert",this.component="WidgetAdSnackMedia",this.cmsComponent="WidgetAdSnackMediaPlaceholder",this.icon={icon:"ad",pack:"cms"},this.pseudoWidgetType="widget",this.adSlotId="snack-incontent-1",this.buildContentFields=(t,i)=>[{heading:"Ad Slot",options:[{type:"select",attributeKey:"adSlotId",placeholder:"Select Ad Slot",maxHeight:400,items:n.map(e=>({name:e,id:e,disabled:JSON.stringify(i).includes(e)&&t.adSlotId!==e}))}]}],this.getSidebarTabs=(t,i)=>[{name:"Layout",fields:this.buildLayoutFields(),disabled:!0},{name:"Content",fields:this.buildContentFields(t,i),default:!0},{name:"Style",fields:this.buildStyleFields(),disabled:!0}],Object.assign(this,d)}serializeElement(){return{...super.serializeBaseElement(),adSlotId:this.adSlotId}}duplicateElement(){return new s(this.parentID,o({...this,uuid:void 0}))}}export{s 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.