PageSourceSearch

https://inzh.ch/_static/build/routes/($lang).kantonsrat.personen.(page).($page)-RAZOYECO.js

js inzh.ch collected 2026-10-02 19:33:51 UTC 6,906 bytes, 1 lines download raw bytes

1import{a as U}from"/_static/build/_shared/chunk-ZKSE3KAS.js";import{a as B}from"/_static/build/_shared/chunk-VJXMEMVM.js";import{c as S,i as D}from"/_static/build/_shared/chunk-QTNTK4JM.js";import{a as y,b as I,d as w,f as T,h as E}from"/_static/build/_shared/chunk-NVM6UEXP.js";import{a as K,f as O,g as A,k as F,l as k,r as x,v as _}from"/_static/build/_shared/chunk-YVDUBZS6.js";import{c as f}from"/_static/build/_shared/chunk-6BUZZK5G.js";var H=f(B(),1);var L=f(K(),1);var P=f(_(),1);function u({...i}){return(0,P.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 15 15",...i,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,P.jsx)("path",{d:"M7.5 2C7.77614 2 8 2.22386 8 2.5L8 11.2929L11.1464 8.14645C11.3417 7.95118 11.6583 7.95118 11.8536 8.14645C12.0488 8.34171 12.0488 8.65829 11.8536 8.85355L7.85355 12.8536C7.75979 12.9473 7.63261 13 7.5 13C7.36739 13 7.24021 12.9473 7.14645 12.8536L3.14645 8.85355C2.95118 8.65829 2.95118 8.34171 3.14645 8.14645C3.34171 7.95118 3.65829 7.95118 3.85355 8.14645L7 11.2929L7 2.5C7 2.22386 7.22386 2 7.5 2Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}var R=f(_(),1);function m({...i}){return(0,R.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 15 15",...i,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,R.jsx)("path",{d:"M7.14645 2.14645C7.34171 1.95118 7.65829 1.95118 7.85355 2.14645L11.8536 6.14645C12.0488 6.34171 12.0488 6.65829 11.8536 6.85355C11.6583 7.04882 11.3417 7.04882 11.1464 6.85355L8 3.70711L8 12.5C8 12.7761 7.77614 13 7.5 13C7.22386 13 7 12.7761 7 12.5L7 3.70711L3.85355 6.85355C3.65829 7.04882 3.34171 7.04882 3.14645 6.85355C2.95118 6.65829 2.95118 6.34171 3.14645 6.14645L7.14645 2.14645Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}var e=f(_(),1),V={page:y.PAGE_HANDLES.H_KANTONSRAT_PERSONEN_FEED};var $=({params:i,location:b})=>{let{lang:N}=i,n=I(N),{pathname:r}=b,{URL_SITE_DOMAIN:a}=y,g=T[n.lang_code].metas;return[{title:g.m_t_kantonsrat_person_feed},{name:"description",content:g.m_d_kantonsrat_person_feed},{tagName:"link",rel:"canonical",href:a+S(r)},{property:"og:url",content:a+S(r)},{property:"og:locale",content:n.lang_code},{property:"og:image",content:a+"/_static/icons/logo512x512.png"},{property:"og:image:width",content:512},{property:"og:image:height",content:512},...D(r)]};function M(){let i=x(),{lang:b}=A(),[N]=F(),n=E("kantonsrat"),r=E("labels"),a={p1:{dir:null,pos:1,type:"string"},p2:{dir:null,pos:2,type:"string"},p3:{dir:null,pos:3,type:"string"},p6:{dir:null,pos:6,type:"number"},p12:{dir:null,pos:12,type:"string"}},[g,c]=(0,L.useState)(a),G=O(),v=(0,L.useMemo)(()=>{if(!i.feed?.length)return[];let t=Object.entries(g),s=i.feed;for(let d=0;d<t.length;d+=1)if(t[d]){let[,o]=t[d];o.type==="string"?o.dir==="asc"?s.sort((p,l)=>p[o.pos].localeCompare(l[o.pos])):o.dir==="desc"&&s.sort((p,l)=>l[o.pos].localeCompare(p[o.pos])):o.type==="number"&&(o.dir==="asc"?s.sort((p,l)=>p[o.pos]-l[o.pos]):o.dir==="desc"&&s.sort((p,l)=>l[o.pos]-p[o.pos]))}return s},[i,g]);if(i?.notFound)return(0,e.jsx)(U,{});let C=[];for(let[t,s]of N){let[d,o]=s.split(","),p=d,l="",h="";t==="p1"?l=n("l_last_name"):t==="p2"?l=n("l_first_name"):t==="p3"?l=n("l_sex"):t==="p6"?l=n("l_year_born"):t==="p12"&&(l=n("l_occupation")),o==="inc"?h=n("l_condition_include"):o==="equ"?h="=":o==="min"?h=">":o==="max"&&(h="<"),t==="p3"&&(d==="m"?p=n("l_male"):d==="w"&&(p=n("l_female"))),C=[...C,[l,h,p]]}return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("h1",{children:n("h1_personen")}),C.length?(0,e.jsxs)("div",{children:[(0,e.jsx)("h2",{children:n("l_search_settings")}),(0,e.jsx)("ul",{className:"ul_1",children:C.map((t,s)=>(0,e.jsxs)("li",{children:[t[0]," ",t[1]," ",(0,e.jsx)("em",{children:t[2]})]},s))})]}):null,(0,e.jsx)("div",{className:"overflow_frame",children:(0,e.jsxs)("table",{className:"table_feed_1 int",children:[v?.length?(0,e.jsxs)("thead",{children:[(0,e.jsxs)("tr",{children:[(0,e.jsx)("th",{children:n("l_first_name")}),(0,e.jsx)("th",{children:n("l_last_name")}),(0,e.jsx)("th",{children:n("l_sex")}),(0,e.jsx)("th",{children:n("l_year_born")}),(0,e.jsx)("th",{children:n("l_occupation")})]}),(0,e.jsxs)("tr",{children:[(0,e.jsxs)("th",{className:"whitespaceNowrap",children:[(0,e.jsx)("button",{className:"btn_2",type:"button",onClick:()=>c(t=>({...a,p2:{...t.p2,dir:"asc"}})),children:(0,e.jsx)(m,{"aria-label":r("l_asceding")})}),(0,e.jsx)("button",{className:"btn_2",type:"button",onClick:()=>c(t=>({...a,p2:{...t.p2,dir:"desc"}})),children:(0,e.jsx)(u,{"aria-label":r("l_descending")})})]}),(0,e.jsxs)("th",{className:"whitespaceNowrap",children:[(0,e.jsx)("button",{className:"btn_2",type:"button",onClick:()=>c(t=>({...a,p1:{...t.p1,dir:"asc"}})),children:(0,e.jsx)(m,{"aria-label":r("l_asceding")})}),(0,e.jsx)("button",{className:"btn_2",type:"button",onClick:()=>c(t=>({...a,p1:{...t.p1,dir:"desc"}})),children:(0,e.jsx)(u,{"aria-label":r("l_descending")})})]}),(0,e.jsxs)("th",{className:"whitespaceNowrap",children:[(0,e.jsx)("button",{className:"btn_2",type:"button",onClick:()=>c(t=>({...a,p3:{...t.p3,dir:"asc"}})),children:(0,e.jsx)(m,{"aria-label":r("l_asceding")})}),(0,e.jsx)("button",{className:"btn_2",type:"button",onClick:()=>c(t=>({...a,p3:{...t.p3,dir:"desc"}})),children:(0,e.jsx)(u,{"aria-label":r("l_descending")})})]}),(0,e.jsxs)("th",{className:"whitespaceNowrap",children:[(0,e.jsx)("button",{className:"btn_2",type:"button",onClick:()=>c(t=>({...a,p6:{...t.p6,dir:"asc"}})),children:(0,e.jsx)(m,{"aria-label":r("l_asceding")})}),(0,e.jsx)("button",{className:"btn_2",type:"button",onClick:()=>c(t=>({...a,p6:{...t.p6,dir:"desc"}})),children:(0,e.jsx)(u,{"aria-label":r("l_descending")})})]}),(0,e.jsxs)("th",{className:"whitespaceNowrap",children:[(0,e.jsx)("button",{className:"btn_2",type:"button",onClick:()=>c(t=>({...a,p12:{...t.p12,dir:"asc"}})),children:(0,e.jsx)(m,{"aria-label":r("l_asceding")})}),(0,e.jsx)("button",{className:"btn_2",type:"button",onClick:()=>c(t=>({...a,p12:{...t.p12,dir:"desc"}})),children:(0,e.jsx)(u,{"aria-label":r("l_descending")})})]})]})]}):null,(0,e.jsx)("tbody",{children:v?.length?v.map(t=>(0,e.jsxs)("tr",{tabIndex:0,role:"link",onClick:()=>
1G(w(b,`/kantonsrat/personen/id/${t[0]}`)),children:[(0,e.jsx)("td",{children:t[2]}),(0,e.jsx)("td",{children:(0,e.jsx)(k,{tabIndex:-1,to:w(b,`/kantonsrat/personen/id/${t[0]}`),children:t[1]})}),(0,e.jsx)("td",{children:t[3]}),(0,e.jsx)("td",{children:t[6]}),(0,e.jsx)("td",{children:t[12]})]},t[0])):(0,e.jsx)("tr",{className:"no_res",children:(0,e.jsx)("td",{colSpan:5,children:n("l_no_results")})})})]})}),i?.le&&!N?.size?(0,e.jsx)("div",{className:"overflow_frame pagination_frame padding05rem",children:Array.from({length:Math.floor(i.le/y.SUB_CONF.KANTONSRAT.PERSONEN_FEED_ITEMS_PER_PAGE)}).map((t,s)=>(0,e.jsx)(k,{id:`p_${s+1}`,end:!0,to:w(b,`/kantonsrat/personen/page/${s+1}`),children:s+1},s))}):null]})}export{M as default,V as handle,$ as meta};

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.