1import{d as R,c as S,p as b,g as m,h as a,m as n,F as g,y as u,z as v,G as h,r as A,n as w,J as D,A as N,_ as V,o as c,I as L,C as I,t as j,q as k}from"./BaXKj6ps.js";import{F as d,_ as B,a as O}from"./DZ8OZUEJ.js";import{_ as K}from"./DhmPVVIA.js";import"./C7i43XDh.js";import"./BuTqZ7Fx.js";import"./DfyaQYM2.js";import"./DjXhEeA7.js";import"./C5tWQcNg.js";import"./BaXIXRcK.js";import"./ZO0-syVN.js";import"./BIWhVaP_.js";import"./CLR9sryG.js";import"./Ce5oAXdg.js";import"./CGj5dzC6.js";import"./Bins_hZO.js";import"./jmAurOeg.js";import"./CtpUKPPo.js";import"./CWDsLsx_.js";import"./Bccd0WPR.js";import"./BTApzAf-.js";import"./Dao5AeIl.js";import"./m5-jm_19.js";import"./vxDbNVuV.js";import"./CGNQHHvf.js";import"./DPRKxonM.js";import"./Ctfl2nkf.js";import"./BIMQWbNa.js";import"./CggDJaG2.js";import"./CZe8R2Ct.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};r.SENTRY_RELEASE={id:"28d2c28e0945b6469ec584e101c9514c17a2d4a0"};var i=new r.Error().stack;i&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[i]="bb0b52c0-a73c-492d-9960-ad83a91e7ac5",r._sentryDebugIdIdentifier="sentry-dbid-bb0b52c0-a73c-492d-9960-ad83a91e7ac5")}catch{}})();const z={class:"flex w-full bg-[url(@/assets/graphic/visuals.webp)] bg-repeat bg-[#FAFAFA]"},H={class:"flex flex-col mx-auto w-full my-8 max-w-[846px] p-2 md:pt-8"},P={class:"flex justify-between mb-4"},q={class:"flex justify-center"},G={class:"flex flex-shrink"},J={class:"relative"},M=["value","selected"],we=R({__name:"electionResultFT2026",setup(r){const i=S(),f=b(typeof i.params.slug=="string"?i.params.slug:"KV25"),p=b(typeof i.params.id=="string"?i.params.id:"0"),_=b(p.value),x=Object.keys(d).sort((o,e)=>{const s=d[o].name,t=d[e].name;return!s||!t?0:s.localeCompare(t,"da",{sensitivity:"base"})}),y=k(()=>{const o=[{id:"-1",name:"Storkredse"}];return x.forEach(e=>{const s=parseInt(e),t=d[e];s>=100&&t.slug==="FT26"&&t.name&&t.name!=="Hele landet"&&o.push({id:e,name:t.name})}),o.push({id:"-2",name:"Valgkredse"}),x.forEach(e=>{const s=parseInt(e),t=d[e];s<100&&t.slug==="FT26"&&t.name&&t.name!=="Hele landet"&&o.push({id:e,name:t.name})}),o});function E(o){const e=o.target.value;if(_.value=e,parseInt(e)>0)return N({name:"electionResult2026",params:{slug:f.value,id:e.toString()}})}const F=k(()=>d[p.value]);return(o,e)=>{const s=L,t=V,T=O,C=K;return c(),m(g,null,[a("div",z,[a("div",H,[n(F)!==void 0?(c(),m(g,{key:0},[a("div",P,[u(t,{class:"text-blue text-sm flex items-center gap-1.5 justify-center",to:{name:"electionResult2026Overview",params:{slug:n(f)}}},{default:v(()=>[u(s,{icon:"fa-regular fa-chevron-left",class:"w-2 h-2 font-bold text-blue"}),e[1]||(e[1]=I(" Tilbage ",-1))]),_:1},8,["to"]),a("div",q,[a("div",G,[a("div",J,[n(y)?(c(),m("select",{key:0,class:h(["w-full border border-gray-400 hover:border-gray-500 hover:bg-gray-100 rounded-3xl pl-4 pr-10 py-1 appearance-none text-sm leading-8 font-sans focus:outline-none focus:bg-gray-100 focus:border-darkblue min-height:34px cursor:pointer",parseInt(n(_))>0?"text-black":"text-gray-500"]),onChange:e[0]||(e[0]=l=>E(l))},[(c(!0),m(g,null,A(n(y),l=>(c(),m("option",{key:l.id,value:l.id,selected:l.id==n(p),class:h([parseInt(l.id)>0?"text-black":"text-gray-500"])},j(l.name),11,M))),128))],34)):w("",!0),e[2]||(e[2]=a("div",{class:"absolute right-[18px] top-[18px] w-2 h-2 border-x-[6px] border-t-[6px] border-t-black border-r-white border-l-white opacity-50"},null,-1))])])])]),e[3]||(e[3]=a("img",{src:B,class:"sm:h-24 h-12 sm:w-24 w-12"},null,-1)),n(p)?(c(),D(T,{key:0,"area-id":n(p)},null,8,["area-id"])):w("",!0)],64)):(c(),m(g,{key:1},[u(t,{class:"text-blue text-sm flex items-center gap-1.5 justify-center",to:{name:"electionResult2026Overview",params:{slug:n(f)}}},{default:v(()=>[u(s,{icon:"fa-regular fa-chevron-left",class:"w-2 h-2 font-bold text-blue"}),e[4]||(e[4]=I(" Tilbage ",-1))]),_:1},8,["to"]),e[5]||(e[5]=a("div",{class:"text-center"},"Der findes ingen data",-1))],64))])]),u(C,{class:"pt-16"})],64)}}});export{we 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.