PageSourceSearch

https://www.wearehullcity.co.uk/_nuxt/t6ry_pVS.js

js wearehullcity.co.uk collected 2026-09-25 02:39:15 UTC 2,382 bytes, 1 lines download raw bytes

1import{PageElementBase as d}from"./CdQXFjpm.js";import{G as c}from"./D_6K3OQ2.js";import{t as m}from"./CATxlt2j.js";import{C as a,z as h,k as w}from"./Cff7-4pb.js";import{d as b}from"./ghde6Rcn.js";import"./CXTOca8g.js";import"./0xmjySIm.js";import"./WUj_y4n6.js";class r extends d{constructor(e="root",o,t=[],s="client"){super(e,o),this.widgetType="WidgetSponsors",this.widgetName="Sponsors",this.component="WidgetSponsors",this.icon={icon:"cms-sponsors",pack:"cms"},this.pseudoWidgetType="widget",this.style=new c({theme:"unset"}),this.sponsorRowIds=[],this.sponsorRowsData=[],this.sponsorRowSidebarComponents=[],this.grayscale=!1,this.buildContentFields=i=>[{heading:"Sponsor Rows",options:[{type:"card-sorter",attributeKey:["sponsorRowSidebarComponents"],callback:p=>{const l=p;i.sponsorRowIds=l.filter(n=>n.active).map(n=>n.id)}},{type:"button",attributeKey:null,label:"Manage Sponsors",to:`https://cms.gc.${w().public.servicesURL}/sponsors`,openInNewTab:!0,icon:"external-link"}]},{heading:"Grayscale",options:[{type:"switch",attributeKey:["grayscale"],label:"Enable grayscale filter on sponsor logos"}]}],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 Colour",options:[{type:"color-input",attributeKey:["style","backgroundColor"]}]}],this.getSidebarTabs=i=>[{name:"Layout",disabled:!0},{name:"Content",fields:this.buildContentFields(i),default:!0},{name:"Style",fields:this.buildStyleFields()}],Object.assign(this,m(o)),s==="cms"&&this.fetchSponsorRows(this),this.sponsorRowIds=a((o==null?void 0:o.sponsorRowIds)||[]),this.sponsorRowSidebarComponents=a([]),this.sponsorRowsData=a([])}serializeElement(){return{...super.serializeBaseElement(),sponsorRowIds:this.sponsorRowIds,grayscale:this.grayscale,style:this.style}}duplicateElement(){return new r(this.parentID,b({...this,uuid:void 0}))}async fetchSponsorRows(e){const{$gc:o}=h(),t=await o().sponsors.web().getFooterSponsors({pageSize:10});e.sponsorRowIds.length===0&&(e.sponsorRowIds=t.map(s=>s.rowID)),e.sponsorRowSidebarComponents=t.map(s=>({element:{type:"SponsorRow",name:s.title},id:s.rowID,name:s.adminName,type:`Row - ${s.adminName}`,toggleable:!0,active:e.sponsorRowIds.includes(s.rowID)})),e.sponsorRowsData=t}}export{r 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.