1import B from"./CMrPJnS2.js";import{_ as N}from"./BVNSpPzx.js";import{_ as R}from"./C5R0B-rL.js";import{d as $,u as P,L as F,H as L,v as W,J as E,ac as G,Y as H,K as I,m as u,w as v,a9 as K,az as V,z as h,p as l,o,f,b as a,a as q,aE as z,c as y,F as D,D as J,l as x,a1 as Q}from"./DYoAz0vE.js";import{u as Y}from"./DiJDoNMl.js";import"./PBScW77J.js";import"./Fy-ix4sR.js";const Z={class:"pt-10 mb-50"},j={key:1,class:"text-16 mt-50 text-center"},O=$({__name:"soeg-personer",async setup(X){let r,p;const{public:t}=P(),C=F();L("native").value=!1;const _=l(0),c=l(!1),i=l(0),n=l([]),e=h(()=>C.query),b=h(()=>"page="+_.value+"&person_gender="+(e.value.person_gender?e.value.person_gender:"All")+"&person_age="+(e.value.person_age?e.value.person_age:"All")+"&person_published_year_name="+(e.value.person_published_year_name?e.value.person_published_year_name:"")+"&person_city="+encodeURIComponent(e.value.city?e.value.city:"")+"&person_name="+encodeURIComponent(e.value.name?e.value.name:"")),{data:s,refresh:m}=([r,p]=W(()=>V(()=>`https://${t.dataApiUrl}/api/v1/search/person?${b.value}`,"$W-KZkKQtPN")),r=await r,p(),r),k=async()=>{_.value+=1,await m(),n.value=n.value.concat(s.value.data)},w=E(e,async()=>{await m(),s.value&&Array.isArray(s.value.data)?(c.value=!1,n.value=s.value.data,i.value=s.value.articleCount):(c.value=!0,n.value=[])},{immediate:!0,deep:!0});G(()=>{w()});const A=[{rel:"canonical",href:`${t.siteUrl}/soeg-personer`},{rel:"shortlink",href:`${t.siteUrl}/soeg-personer`}];return H(()=>({title:"Søg",meta:[{hid:"description",name:"description",content:"Søg efter personer pÃ¥ SE og HÃR."},{name:"og:site_name",content:t.brandName},{name:"og:title",content:t.brandName},{name:"og:type",content:"website"},{name:"og:url",content:`${t.siteUrl}/soeg-personer`}],link:A})),I(()=>{const{GTMPush:d}=Y();d({pageTitle:"Søg personer",pageType:"person_search_page",primaryCategory:"Mere"})}),(d,ee)=>{const M=B,S=N,T=R,U=K;return o(),u(U,{class:"py-20 pt-40"},{default:v(()=>[f(M,{gender:a(e).person_gender?a(e).person_gender:"All"},null,8,["gender"]),q("div",Z,[f(z,{tag:"section",class:"grid grid-cols-12 gap-x-20",name:"fade"},{default:v(()=>[(o(!0),y(D,null,J(a(n),g=>(o(),u(S,{key:g.id,class:"col-span-6 lg:col-span-3 mb-20",teaser:g},null,8,["teaser"]))),128))]),_:1}),a(n).length<a(i)&&!a(c)?(o(),u(T,{key:0,class:"mt-20 mb-50",onLoadMoreClicked:k})):x("",!0),a(c)?(o(),y("h2",j,"Der er desværre ingen personer, der matcher denne søgning.")):x("",!0)])]),_:1})}}}),le=Q(O,[["__scopeId","data-v-6d103de3"]]);export{le 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.