PageSourceSearch

https://www.swfc.co.uk/_nuxt/VqFH_9_9.js

js swfc.co.uk collected 2026-09-24 18:50:21 UTC 5,158 bytes, 1 lines download raw bytes

1import{PageElementBase as y}from"./CdQXFjpm.js";import{G as u}from"./Dztay-Ce.js";import{G as o}from"./D_6K3OQ2.js";import{t as d}from"./CATxlt2j.js";import{TypographyModel as p}from"./C8oKskU6.js";import{d as h}from"./ghde6Rcn.js";import{z as m}from"./CODKDDjv.js";import"./CXTOca8g.js";import"./0xmjySIm.js";import"./DUoo9A0H.js";import"./WUj_y4n6.js";class n extends y{constructor(t="root",l){super(t,l),this.widgetType="HeroSpotlight",this.component="HeroSpotlight",this.widgetName="Spotlight Hero",this.icon={icon:"hero",pack:"cms",color:{shade:"200",value:"sky"}},this.pseudoWidgetType="hero",this.autoPlay=!0,this.delay="5000",this.style=new o({theme:"dark"}),this.metaStyles={category:new o({theme:"unset"}),date:new o({theme:"unset"})},this.query=this.defaultQuery(),this.pillStyle="default",this.showMeta=!0,this.showOverlay=!0,this.showProgress=!0,this.title=new p({content:void 0,size:"6xl",textTransform:"uppercase",alignment:"center",font:"primary",tag:"h1",lineClamp:2,show:!0}),this.getSidebarTabs=i=>[{name:"Layout",fields:this.buildLayoutFields(i)},{name:"Content",fields:this.buildContentFields(i),default:!0},{name:"Style",fields:this.buildStyleFields()}],this.buildLayoutFields=i=>[{heading:"Title",toggleable:!0,toggleAttributeKey:["title","show"],options:[{type:"typography-input",attributeKey:["title"],exclude:["content"]}]},{heading:"Display",options:[{attributeKey:"showMeta",type:"switch",label:"Meta"},{attributeKey:"showOverlay",type:"switch",label:"Overlay"}]},{heading:"Autoplay",options:[{type:"switch",attributeKey:"autoPlay",label:"Auto-advance slides"},{attributeKey:"showProgress",type:"switch",label:"Show Pill Progress"}]},{heading:"Autoplay Speed",disabled:!(i!=null&&i.autoPlay),options:[{type:"radio",subType:"row",attributeKey:["delay"],options:[{label:"Slow (8s)",id:"8000",icon:{icon:"slow",pack:"cms"}},{label:"Medium (5s)",id:"5000",icon:{icon:"medium",pack:"cms"}},{label:"Fast (3s)",id:"3000",icon:{icon:"fast",pack:"cms"}}]}]},{heading:"Pill Style",options:[{type:"radio",subType:"row",attributeKey:["pillStyle"],options:[{label:"Default",id:"default"},{label:"Rounded",id:"rounded"},{label:"Square",id:"square"}]}]}],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:"Text Colour",options:[{type:"color-input",label:"Title",attributeKey:["style","color"]},{type:"color-input",label:"Meta - Category",attributeKey:["metaStyles","category","color"]},{type:"color-input",label:"Meta - Date",attributeKey:["metaStyles","date","color"]}]}],Object.assign(this,d(l))}serializeElement(){return{...super.serializeBaseElement(),autoPlay:this.autoPlay,delay:this.delay,style:this.style,query:this.query,pillStyle:this.pillStyle,showMeta:this.showMeta,showOverlay:this.showOverlay,showProgress:this.showProgress,title:this.title,metaStyles:this.metaStyles}}defaultQuery(){return new u({type:"news",method:"getLatest",contentFill:"auto-fill",count:5,offset:0,manualFillIds:[],autofillOptions:{}})}duplicateElement(){return new n(this.parentID,h({...this,uuid:void 0}))}buildContentFields(t){const{$gc:l}=m(),i=l().videos.web().getCategories().then(e=>e==null?void 0:e.data.map(a=>({name:a.attributes.name,id:a.attributes.name}))),r=l().news.web().getCategories().then(e=>e==null?void 0:e.map(a=>({name:a.newsCategory,id:a.newsCategoryID})));return[{type:"tabs",tabsOptions:{variant:"fill",orientation:"horizontal"},tabsAttributeKey:["query","contentFill"],tabsCallback:e=>{e.value==="auto-fill"&&Object.assign(t.query,this.defaultQuery())},tabs:[{title:"Auto-Fill",value:"auto-fill",index:0,icon:{icon:"auto-fill",pack:"cms",size:12},options:[{type:"query-builder",attributeKey:["query"],ctaText:"Select from Modal"},{heading:"Content Type",type:"select",attributeKey:["query","type"],items:[{name:"News",id:"news"},{name:"Videos",id:"videos"}],callback:()=>{t.query.method="getLatest"}},{heading:"Query Type",type:"select",attributeKey:["query","method"],items:t.query.type==="news"?[{name:"Latest",id:"getLatest"},{name:"Featured",id:"getIsFeatured"},{name:"By Category",id:"getByCategory"}]:[{name:"Latest",id:"getLatest"},{name:"By Category",id:"getByCategory"}],callback:async e=>{var a;if(e==="getByCategory"){t.query.autofillOptions||(t.query.autofillOptions={});const s=await(t.query.type==="videos"?i:r);t.query.autofillOptions.category=(a=s==null?void 0:s[0])==null?void 0:a.id}}},{heading:"",type:"select",attributeKey:["query","autofillOptions","category"],hidden:t.query.method!=="getByCategory",items:t.query.type==="videos"?i:r},{heading:"Listing Offset",subHeading:"Offset the starting point of the listing",type:"number",min:0,max:32,attributeKey:["query","offset"]},{heading:"Number of Slides",subHeading:"(Max 5)",type:"number",min:1,max:5,attributeKey:["query","count"]}]},{title:"Manual Fill",value:"manual-fill",index:1,icon:{icon:"manual-fill",pack:"cms",size:12},options:[{type:"query-builder",ctaText:"Select from Modal",attributeKey:["query"],callback:e=>{t.query=Object.assign(t.query,e)}}]}],options:[]}]}}export{n 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.