PageSourceSearch

https://www.qpr.co.uk/_nuxt/CO_yDutu.js

js qpr.co.uk collected 2026-09-24 20:08:35 UTC 3,666 bytes, 1 lines download raw bytes

1import{PageElementBase as p}from"./CdQXFjpm.js";import{G as u}from"./D_6K3OQ2.js";import{G as m}from"./DA0pkXRu.js";import{t as g}from"./CATxlt2j.js";import{G as k}from"./T-kpnD9n.js";import{d as h}from"./ghde6Rcn.js";import{k as y}from"./CvA0iiAV.js";import"./CXTOca8g.js";import"./0xmjySIm.js";import"./WUj_y4n6.js";const b=[{id:"Facebook",pack:"social",icon:"facebook"},{id:"X",pack:"social",icon:"x"},{id:"Twitter",pack:"social",icon:"x"},{id:"Instagram",pack:"social",icon:"instagram"},{id:"Insta",pack:"social",icon:"instagram"},{id:"TikTok",pack:"social",icon:"tiktok"},{id:"Threads",pack:"social",icon:"threads"},{id:"YouTube",pack:"social",icon:"youtube"},{id:"LinkedIn",pack:"social",icon:"linkedin"},{id:"Spotify",pack:"social",icon:"spotify"},{id:"Discord",pack:"social",icon:"discord"},{id:"Snapchat",pack:"social",icon:"snapchat"},{id:"OneFootball",pack:"social",icon:"onefootball"},{id:"Weibo",pack:"social",icon:"weibo"},{id:"WhatsApp",pack:"social",icon:"whatsapp"}],f=r=>{const e=b.find(i=>i.id.toLowerCase()===r.toLowerCase());if(e)return{icon:e.icon,pack:e.pack}};class c extends p{constructor(e="root",i){super(e,i),this.widgetType="WidgetSocials",this.widgetName="Social Media",this.component="WidgetSocials",this.icon={icon:"socialsWidget",pack:"cms"},this.pseudoWidgetType="widget",this.style=new u({theme:"unset"}),this.backgroundImage=new m,this.layout={icons:{align:new k({horizontal:"center",vertical:"center"})}},this.buildContentFields=o=>[{heading:"Toggle and reorder social icons",options:[{type:"card-sorter",attributeKey:["allConfigLinks"],callback:a=>{o.links=a.filter(s=>s.active)}}]}],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:"Icon Colour",options:[{type:"color-input",attributeKey:["style","color"]}]},{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:["backgroundImage"]}]}],options:[]}
1],this.getSidebarTabs=o=>[{name:"Layout",fields:this.buildLayoutFields()},{name:"Content",fields:this.buildContentFields(o),default:!0},{name:"Style",fields:this.buildStyleFields()}],this.allConfigLinks=this.setSocialLinks(i==null?void 0:i.links),this.links=this.allConfigLinks.filter(o=>o.active),Object.assign(this,g(i))}serializeElement(){return{...super.serializeBaseElement(),links:this.allConfigLinks.filter(e=>e.active),style:this.style,backgroundImage:this.backgroundImage,layout:this.layout}}buildLayoutFields(e,i){return[{heading:"Alignment",options:[{type:"radio",subType:"row",attributeKey:["layout","icons","align","horizontal"],clearOnSecondClick:!0,options:[{label:"Left",id:"start",icon:{icon:"cms-align-x-left",pack:"cms"}},{label:"Center",id:"center",icon:{icon:"cms-align-x-middle",pack:"cms"}},{label:"Right",id:"end",icon:{icon:"cms-align-x-right",pack:"cms"}}]}]}]}duplicateElement(){return new c(this.parentID,h({...this,uuid:void 0}))}setSocialLinks(e){var a,s,n;const i=y(),o=(n=(s=(a=i==null?void 0:i.public)==null?void 0:a.core)==null?void 0:s.social)==null?void 0:n.links;return Array.isArray(o)&&o.length?o.map(t=>{var l;return{element:t,id:t.category,name:t.category,link:t.link,type:t.handle,image:t.useCustomImage?t.iconImageKey:void 0,icon:t.useCustomImage?void 0:f(t.category),useCustomImage:t.useCustomImage??!1,toggleable:!0,active:!e||((l=e.find(d=>d.id===t.category))==null?void 0:l.active)}}):[]}}export{c 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.