PageSourceSearch

https://www.egtved.dk/_nuxt/CdcXXuzh.js

js egtved.dk collected 2026-09-25 10:58:44 UTC 4,236 bytes, 1 lines download raw bytes

1import{D as e,Dt as a,E as t,O as l,P as i,T as o,X as r,Y as s,_ as n,lt as m,ot as c,qt as u,rt as d,wt as f,x as p,zt as y}from"./BkO5jnta.js";import{Ct as b,Pn as h,Tn as v,_n as g,at as B,b as k,pt as N,sn as S,vn as _,zt as j}from"#entry";import{n as w,t as x}from"./CBOlTTEq.js";import{n as q,t as A}from"./Cs0Xrkbe.js";import{t as O}from"./Dk1lbXLP2.js";import{t as T}from"./C6nIJx0g.js";var V={class:"d-council-list"},z={class:"grid grid-cols-1 >=656:grid-cols-2 >=960:grid-cols-3 >=1280:grid-cols-4 gap-gutter <656:gap-y-sm pb-afterBlocks"},E={__name:"CouncilList",props:{id:Number,name:String,level:Number,contentElements:Array,partiesTitle:String,committeesTitle:String,moreAboutTitle:String,search:Object,hideFromSearch:Boolean,hideFromSiteMap:Boolean,council:Object,title:String,feedback:{type:Object,default:void 0},hideFeedback:{type:Boolean,default:!1}},setup(E){B();const L=E,U=y(null),C=y(null),F=_(),M=g(),P=y(null),D=y(w(L.search,{populate:M.query}));async function I(){const e=U.value?.id??C.value??M.query.member??null;U.value=null,await F.replace({query:{...M.query,member:void 0}}),await r(),R(e)}function R(e,a=5){if(!e)return;const t=document.getElementById(String(e));if(!t||t.closest("[inert]"))return void(a>0&&setTimeout(()=>R(e,a-1),100));const l=t.hasAttribute("tabindex");l||t.setAttribute("tabindex","-1"),t.focus(),l||t.removeAttribute("tabindex")}function X(e){const a=M.query.member;if(a){const t=(e||P.value?.limboSearch?.data||[]).find(e=>e.key===a);U.value=t||null}else U.value=null}return f(()=>M.query.member,()=>X()),d(()=>X()),(r,d)=>{const f=k,y=x,g=O,B=A,_=b,w=T,L=S;return c(),l("article",V,[i(_,{name:"list-page-layout","block-list":E.contentElements},{default:a(()=>[i(y,{role:"search",action:u(D).endpointUrl,class:"mb-beforeBlocks mt-lg relative flex flex-col gap-xs >=656:flex-row 656:gap-sm",onSubmit:d[2]||(d[2]=h(()=>{},["prevent"]))},{default:a(()=>[u(D).fieldByName.parties?(c(),t(f,{key:0,modelValue:u(D).fieldByName.parties.value,"onUpdate:modelValue":d[0]||(d[0]=e=>u(D).fieldByName.parties.value=e),name:u(D).fieldByName.parties.name,placeholder:u(D).fieldByName.parties.placeholder,color:"surface",label:u(D).fieldByName.parties.label,items:u(D).fieldByName.parties.items},null,8,["modelValue","name","placeholder","label","items"])):e("",!0),u(D).fieldByName.committees?(c(),t(f,{key:1,modelValue:u(D).fieldByName.committees.value,"onUpdate:modelValue":d[1]||(d[1]=e=>u(D).fieldByName.committees.value=e),name:u(D).fieldByName.committees.name,placeholder:u(D).fieldByName.committees.placeholder,color:"surface",label:u(D).fieldByName.committees.label,items:u(D).fieldByName.committees.items},null,8,["modelValue","name","placeholder","label","items"])):e("",!0)]),_:1},8,["action"]),i(B,{ref_key:"searchManager",ref:P,class:"mb-afterBlocks","search-filters":u(D),config:{limit:("getSearchLimit"in r?r.getSearchLimit:u(q))(u(D),{initial:99}),enableLiveSearch:!0,onAfterSearch:({data:e})=>X(e)},"show-all":!1},{default:a(e=>[o("div",z,[(c(!0),l(n,null,m(e.data,e=>(c(),t(g,s({id:e.key||e.id,key:e.id,"button-text":("localize"in r?r.localize:u(N))("MORE_ABOUT_X",{capitalize:!0,populate:[e.name?.split?.(" ")?.[0]??""]}),color:["chairman","vicechairman"].includes(e?.role?.toLowerCase?.())?"primary":"surface","show-image":"","clickable-area":"card"},{ref_for:!0},("objectSome"in r?r.objectSome:u(j))(e,["image","name","role","roleName","party","title","phone","mobile","email","address","committees","department"]),{"click-action":()=>async function(e){C.value=e?.id??null,U.value=e,e?.key&&await F.replace({query:{...M.query,member:e.key}})}(e)}),null,16,["id","button-text","color","click-action"]))),128))])]),_:1},8,["search-filters","config"])]),_:1},8,["block-list"]),i(L,null,{default:a(()=>[(c(),t(p,{to:"#global-overlay-with-site-header"},[i(v,{key:"council-overlay",name:"t-council-list-overlay-fade-out"},{default:a(()=>[u(U)?(c(),t(w,s({key:0},u(U),{onClose:I,onUpdateFilter:d[3]||(d[3]=e=>async function(e){await I();const a=new URLSearchParams(e),t=Object.fromEntries(a.entries());for(const l in D.value.fieldByName){const e=D.value.fieldByName[l];e&&(e.value=l in t?t[l]:e.defaultValue)}}(e))}),null,16)):e("",!0)]),_:1})]))]),_:1})])}}};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.