PageSourceSearch

https://ris.hoechberg.de/51b/static/js/SitzungenDetails-D0dOq6rP.js

js hoechberg.de collected 2026-10-02 17:48:20 UTC 23,593 bytes, 4 lines download raw bytes

1import{q as B,R as M,o as e,p as u,x as J,r as y,K as Y,Q as ee,S as te,z as se,u as ne,V as ae,H as I,am as le,ag as ie,an as re,ao as oe,I as ce,J as de,G as K,M as O,N as q,au as me,av as pe,aw as ue,w as xe}from"./index-VJAOPiQ0.js";import{A as he,L as ge,H as fe,E as W,w as Q,n as X,I as je,j as z,k as F,S as be,N as Ce,D as Ne,M as we,a as ve,C as H}from"./Layout-BIzjb6g4.js";import{u as ye}from"./Login-CZKqxjSf.js";import"./react-B2Ij4Vfr.js";import"./vendor-BuNY4Ty6.js";function _e({data:f,columns:N,renderSubComponent:j,getRowCanExpand:w,isLoggedIn:m,extraColumn:b}){const[s]=B(J),_=M.useMemo(()=>j?f.some(c=>w?w({original:c}):!0):!1,[f,w,j]),S=_?w||(()=>!0):()=>!1,x=M.useMemo(()=>[{id:"expander",header:()=>e.jsx("div",{style:{width:"2.5rem"}}),cell:({row:r})=>{if(!_)return null;const D=r.original,g=D?.name||D?.numbering||"Eintrag",p=g.length>50?g.substring(0,50)+"...":g;return e.jsx("button",{onClick:r.getToggleExpandedHandler(),className:"cursor-pointer flex items-center justify-center bg-transparent border-none p-0 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-opacity-50 rounded",style:{width:"2.5rem"},tabIndex:r.getCanExpand()?0:-1,...r.getCanExpand()&&{"aria-expanded":r.getIsExpanded(),"aria-label":r.getIsExpanded()?`${p} - Dokumente zuklappen`:`${p} - Dokumente aufklappen`},children:r.getCanExpand()?r.getIsExpanded()?e.jsx(Q,{className:"w-6 h-6"}):e.jsx(X,{className:"w-6 h-6"}):null})},size:40},...N],[N,_]),i=he({data:f,columns:x,getRowCanExpand:S,getCoreRowModel:fe(),getExpandedRowModel:ge()}),T=["documentcount","anotherRightAlignedColumn"],P=b?3:2;return e.jsxs("table",{className:"min-w-full border-collapse",style:{tableLayout:"fixed",width:"100%"},children:[e.jsxs("colgroup",{children:[e.jsx("col",{style:{width:"2.5rem"}}),b&&e.jsx("col",{style:{width:"100px"}}),e.jsx("col",{style:{width:"150px"}}),e.jsx("col",{style:{width:"calc(100% - 2.5rem - 150px - 120px - 120px)"}}),e.jsx("col",{style:{width:"120px"}}),m&&e.jsx("col",{style:{width:"120px"}})]}),e.jsx("thead",{className:`remote-background ${u(s)}meetingdetails_table_header`,children:i.getHeaderGroups().map(c=>e.jsx("tr",{children:c.headers.map((r,D)=>{const p=T.includes(r.column.id)?"px-4 py-4 align-middle text-xs font-medium text-white uppercase tracking-wider whitespace-nowrap text-right":"px-6 py-4 align-middle text-xs font-medium text-white uppercase tracking-wider whitespace-nowrap text-left";return e.jsx("th",{className:p,children:e.jsx("div",{style:D===c.headers.length-2?{marginLeft:"-4px"}:void 0,children:r.isPlaceholder?null:W(r.column.columnDef.header,r.getContext())})},r.id)})},c.id))}),e.jsx("tbody",{className:"remote-theme-bg divide-y divide-border dark:divide-border_dark",children:i.getRowModel().rows.map(c=>{const r=c.getCanExpand(),D=()=>{r&&c.toggleExpanded()};return e.jsxs(M.Fragment,{children:[e.jsx("tr",{onClick:r?D:void 0,className:r?"cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800":"","aria-label":r?c.getIsExpanded()?"Klicken zum Zuklappen":"Klicken zum Aufklappen":void 0,children:c.getVisibleCells().map((g,p)=>{const G=T.includes(g.column.id)?"px-4 py-4 align-middle text-right whitespace-nowrap":"px-6 py-4 align-middle text-left",t=["expander","name","action"].includes(g.column.id);return e.jsx("td",{className:G,onClick:t?l=>l.stopPropagation():void 0,children:e.jsx("div",{style:p===c.getVisibleCells().length-2?{marginLeft:"-4px"}:void 0,children:W(g.column.columnDef.cell,g.getContext())})},g.id)})}),_&&c.getIsExpanded()&&e.jsx("tr",{children:Array.from({length:c.getVisibleCells().length}).map((g,p)=>p===P?e.jsx("td",{className:"px-6 py-4",children:j&&j(c)},`expanded-${p}`):e.jsx("td",{className:"px-6 py-4"},`expanded-${p}`))})]},c.id)})})]})}function ke({row:f,userToken:N}){const[j,w]=y.useState(null);return y.useEffect(()=>{(async()=>{try{const b=await je(!!N,f.original.id);w(b.documents)}catch(b){console.error("Fehler beim Laden der Daten:",b)}})()},[]),j?j.map(m=>e.jsx(Y,{name:m.name,fileext:m.fileext,downloadUrl:N?ee(m.id):te(m.id)})):e.jsx("span",{children:"Lädt..."})}function Se({id:f,fetchData:N,fallback:j=null,children:w}){const[m,b]=y.useState(null),[s,_]=y.useState(!0),[S,x]=y.useState(!1);return y.useEffect(()=>{let i=!1;return _(!0),x(!1),N(f).then(T=>{i||b(T)}
1).catch(()=>{i||x(!0)}).finally(()=>{i||_(!1)}),()=>{i=!0}},[f,N]),s||S?e.jsx(e.Fragment,{children:j}):m?e.jsx(e.Fragment,{children:w(m)}):null}function ze(){const f=ye(),N=se(),[j,w]=y.useState(null),[m,b]=y.useState(!0),[s,_]=y.useState(null),[S]=B(xe),{token:x}=ne(t=>t.auth),[i]=B(J);y.useEffect(()=>{f(ae({title:"Sitzungen"})),(()=>{const a=window.location.pathname.split("/"),d=a[a.length-1];Ce(!!x,d).then(async v=>{w(d),_(v)})})()},[f,x]);const T=t=>{const l=`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(t)}`;window.open(l,"_blank")},P=t=>{const l="/app/liste";t.ctrlKey||t.shiftKey?window.open(l,"_blank"):N(l)};function c(t){const l=[];return t.committeename&&l.push(t.committeename),t.committeename2&&l.push(t.committeename2),t.committeename3&&l.push(t.committeename3),e.jsx("span",{className:"text-normal-1",children:l.map((a,d)=>e.jsxs(M.Fragment,{children:[a,d<l.length-1&&e.jsx("br",{})]},d))})}function r(t){return e.jsx(ke,{row:t,userToken:x})}function D(t){let l=!1,a=!1;return s.parts.map((d,v)=>{let R=!1;d.protectedpart&&!l?(R=!0,l=!0):!d.protectedpart&&!a&&(R=!0,a=!0);const o=k=>k.original.documentcount>0,U=(k,A)=>{let V=[];switch(k.globalidmode){case 1:V=[{accessorKey:k.globalidmodetablehead,header:k.globalidmodetablehead,cell:n=>e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:u(i)+"meetingdetails_description_line",children:n.row.original.globalid}),n.row.original.unreadop===1&&e.jsx("span",{className:"status Neu-status",style:{fontSize:13},children:"Neu"}),n.row.original.unreadop===2&&e.jsx("span",{className:"status Geändert-status",style:{fontSize:13},children:"Geändert"})]})},{accessorKey:"name",header:"Bezeichnung",cell:n=>{const h=n.row.original,C=n.getValue().split(`\r
2`),E=h.globalid||h.numbering;return e.jsx("h3",{className:"text-base font-normal m-0",children:e.jsxs(H,{linkTo:h.id,customScssLabel:"meeting_details",children:[E&&e.jsxs("span",{className:"sr-only",children:["TOP ",E,": "]}),C.map(($,L)=>e.jsxs(M.Fragment,{children:[e.jsx("span",{className:u(i)+"meetingdetails_description_line",children:$}),L<C.length-1&&e.jsx("br",{})," "]},L))]})})}},{accessorKey:"documentcount",header:()=>e.jsx("div",{className:"tooltip","data-tip":"Anlagen",style:{marginLeft:"-5px"},children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:e.jsx("path",{d:"M9.225 17.5222C9.16875 17.5222 9.14062 17.5222 9.08437 17.5222C7.79062 17.5222 6.38438 16.9878 5.5125 16.1722C4.58438 15.3003 4.07812 14.1191 4.07812 12.9097V4.19094C4.07812 2.98156 4.66875 1.88469 5.70937 1.18156C6.72187 0.478439 7.9875 0.309689 9.16875 0.731564L9.225 0.759689C9.36562 0.815939 9.53437 0.844064 9.70312 0.956564C10.9969 1.63156 11.7844 2.84094 11.7844 4.21906V11.6722C11.7844 12.4316 11.5312 13.1347 11.0531 13.6972C10.9687 13.8097 10.9125 13.8659 10.8562 13.8941C10.3219 14.3722 9.70312 14.6253 9 14.6253C8.2125 14.6253 7.45313 14.2597 6.94688 13.6691C6.46875 13.1066 6.1875 12.3753 6.1875 11.6159V5.40031C6.1875 5.06281 6.46875 4.75344 6.83437 4.75344C7.2 4.75344 7.48125 5.03469 7.48125 5.40031V11.6441C7.48125 12.0941 7.65 12.5441 7.93125 12.8816C8.18438 13.1909 8.60625 13.3878 9 13.3878C9.36562 13.3878 9.675 13.2472 9.95625 12.9941C9.98438 12.9659 10.0125 12.9378 10.0687 12.8816C10.35 12.5441 10.5188 12.1222 10.5188 11.6722V4.19094C10.5188 3.29094 10.0125 2.50344 9.1125 2.05344L9.08437 2.02531C9.02812 1.99719 8.97188 1.96906 8.85938 1.94094L8.775 1.91281C7.95938 1.63156 7.11562 1.74406 6.4125 2.22219C5.70937 2.67219 5.34375 3.37531 5.34375 4.16281V12.8816C5.34375 13.7253 5.7375 14.5972 6.38438 15.2159C7.03125 15.8066 8.12813 16.2284 9.1125 16.2284C10.0688 16.2566 10.9688 15.8909 11.6719 15.2441C12.3469 14.5972 12.7125 13.7534 12.6844 12.8816V6.10344C12.6844 5.76594 12.9656 5.45656 13.3313 5.45656C13.6969 5.45656 13.9781 5.73781 13.9781 6.10344V12.8816C14.0063 14.0909 13.5 15.2722 12.5719 16.1722C11.6438 17.0159 10.4344 17.5222 9.225 17.5222Z",fill:"white"})})}),cell:n=>e.jsx("span",{className:u(i)+"meetingdetails_description_line",children:n.getValue()})}];break;case 2:V=[{accessorKey:"numbering",header:"TOP-Nr.",cell:n=>e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:u(i)+"meetingdetails_description_line",children:n.getValue()}),n.row.original.unreadop===1&&e.jsx("span",{className:"status Neu-status",style:{fontSize:13},children:"Neu"}),n.row.original.unreadop===2&&e.jsx("span",{className:"status Geändert-status",style:{fontSize:13},children:"Geändert"})]})},{accessorKey:"globalid",header:k.globalidmodetablehead,cell:n=>e.jsx("span",{className:u(i)+"meetingdetails_description_line",children:n.getValue()})},{accessorKey:"name",header:"Bezeichnung",cell:n=>{const h=n.row.original,C=n.getValue().split(`\r
3`),E=h.numbering||h.globalid;return e.jsx("h3",{className:"text-base font-normal m-0",children:e.jsxs(H,{linkTo:h.id,children:[E&&e.jsxs("span",{className:"sr-only",children:["TOP ",E,": "]}),C.map(($,L)=>e.jsxs(M.Fragment,{children:[e.jsx("span",{className:u(i)+"meetingdetails_description_line",children:$}),L<C.length-1&&e.jsx("br",{})," "]},L))]})})}},{accessorKey:"documentcount",header:()=>e.jsx("div",{className:"tooltip","data-tip":"Anlagen",style:{marginLeft:"-5px"},children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:e.jsx("path",{d:"M9.225 17.5222C9.16875 17.5222 9.14062 17.5222 9.08437 17.5222C7.79062 17.5222 6.38438 16.9878 5.5125 16.1722C4.58438 15.3003 4.07812 14.1191 4.07812 12.9097V4.19094C4.07812 2.98156 4.66875 1.88469 5.70937 1.18156C6.72187 0.478439 7.9875 0.309689 9.16875 0.731564L9.225 0.759689C9.36562 0.815939 9.53437 0.844064 9.70312 0.956
3564C10.9969 1.63156 11.7844 2.84094 11.7844 4.21906V11.6722C11.7844 12.4316 11.5312 13.1347 11.0531 13.6972C10.9687 13.8097 10.9125 13.8659 10.8562 13.8941C10.3219 14.3722 9.70312 14.6253 9 14.6253C8.2125 14.6253 7.45313 14.2597 6.94688 13.6691C6.46875 13.1066 6.1875 12.3753 6.1875 11.6159V5.40031C6.1875 5.06281 6.46875 4.75344 6.83437 4.75344C7.2 4.75344 7.48125 5.03469 7.48125 5.40031V11.6441C7.48125 12.0941 7.65 12.5441 7.93125 12.8816C8.18438 13.1909 8.60625 13.3878 9 13.3878C9.36562 13.3878 9.675 13.2472 9.95625 12.9941C9.98438 12.9659 10.0125 12.9378 10.0687 12.8816C10.35 12.5441 10.5188 12.1222 10.5188 11.6722V4.19094C10.5188 3.29094 10.0125 2.50344 9.1125 2.05344L9.08437 2.02531C9.02812 1.99719 8.97188 1.96906 8.85938 1.94094L8.775 1.91281C7.95938 1.63156 7.11562 1.74406 6.4125 2.22219C5.70937 2.67219 5.34375 3.37531 5.34375 4.16281V12.8816C5.34375 13.7253 5.7375 14.5972 6.38438 15.2159C7.03125 15.8066 8.12813 16.2284 9.1125 16.2284C10.0688 16.2566 10.9688 15.8909 11.6719 15.2441C12.3469 14.5972 12.7125 13.7534 12.6844 12.8816V6.10344C12.6844 5.76594 12.9656 5.45656 13.3313 5.45656C13.6969 5.45656 13.9781 5.73781 13.9781 6.10344V12.8816C14.0063 14.0909 13.5 15.2722 12.5719 16.1722C11.6438 17.0159 10.4344 17.5222 9.225 17.5222Z",fill:"white"})})}),cell:n=>e.jsx("span",{className:u(i)+"meetingdetails_description_line",children:n.getValue()})}];break;default:V=[{accessorKey:"numbering",header:"TOP-Nr.",cell:n=>e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:u(i)+"meetingdetails_description_line",children:n.getValue()}),n.row.original.unreadop===1&&e.jsx("span",{className:"status Neu-status",style:{fontSize:13},children:"Neu"}),n.row.original.unreadop===2&&e.jsx("span",{className:"status Geändert-status",style:{fontSize:13},children:"Geändert"})]})},{accessorKey:"name",header:"Bezeichnung",cell:n=>{const h=n.row.original,C=n.getValue().split(`\r
4`),E=h.numbering||h.globalid;return e.jsx("h3",{className:"text-base font-normal m-0",children:e.jsxs(H,{linkTo:h.id,children:[E&&e.jsxs("span",{className:"sr-only",children:["TOP ",E,": "]}),C.map(($,L)=>e.jsxs(M.Fragment,{children:[e.jsx("span",{className:u(i)+"meetingdetails_description_line",children:$}),L<C.length-1&&e.jsx("br",{})," "]},L))]})})}},{accessorKey:"documentcount",header:()=>e.jsx("div",{className:"tooltip",style:{marginRight:"-2px"},"data-tip":"Anlagen",children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:e.jsx("path",{d:"M9.225 17.5222C9.16875 17.5222 9.14062 17.5222 9.08437 17.5222C7.79062 17.5222 6.38438 16.9878 5.5125 16.1722C4.58438 15.3003 4.07812 14.1191 4.07812 12.9097V4.19094C4.07812 2.98156 4.66875 1.88469 5.70937 1.18156C6.72187 0.478439 7.9875 0.309689 9.16875 0.731564L9.225 0.759689C9.36562 0.815939 9.53437 0.844064 9.70312 0.956564C10.9969 1.63156 11.7844 2.84094 11.7844 4.21906V11.6722C11.7844 12.4316 11.5312 13.1347 11.0531 13.6972C10.9687 13.8097 10.9125 13.8659 10.8562 13.8941C10.3219 14.3722 9.70312 14.6253 9 14.6253C8.2125 14.6253 7.45313 14.2597 6.94688 13.6691C6.46875 13.1066 6.1875 12.3753 6.1875 11.6159V5.40031C6.1875 5.06281 6.46875 4.75344 6.83437 4.75344C7.2 4.75344 7.48125 5.03469 7.48125 5.40031V11.6441C7.48125 12.0941 7.65 12.5441 7.93125 12.8816C8.18438 13.1909 8.60625 13.3878 9 13.3878C9.36562 13.3878 9.675 13.2472 9.95625 12.9941C9.98438 12.9659 10.0125 12.9378 10.0687 12.8816C10.35 12.5441 10.5188 12.1222 10.5188 11.6722V4.19094C10.5188 3.29094 10.0125 2.50344 9.1125 2.05344L9.08437 2.02531C9.02812 1.99719 8.97188 1.96906 8.85938 1.94094L8.775 1.91281C7.95938 1.63156 7.11562 1.74406 6.4125 2.22219C5.70937 2.67219 5.34375 3.37531 5.34375 4.16281V12.8816C5.34375 13.7253 5.7375 14.5972 6.38438 15.2159C7.03125 15.8066 8.12813 16.2284 9.1125 16.2284C10.0688 16.2566 10.9688 15.8909 11.6719 15.2441C12.3469 14.5972 12.7125 13.7534 12.6844 12.8816V6.10344C12.6844 5.76594 12.9656 5.45656 13.3313 5.45656C13.6969 5.45656 13.9781 5.73781 13.9781 6.10344V12.8816C14.0063 14.0909 13.5 15.2722 12.5719 16.1722C11.6438 17.0159 10.4344 17.5222 9.225 17.5222Z",fill:"white"})})}),cell:n=>e.jsx("span",{className:u(i)+"meetingdetails_description_line",children:n.getValue()})}];break}return A&&V.push({accessorKey:"action",header:"AKTION",cell:n=>e.jsx(Se,{id:n.row.original.id,fetchData:me,fallback:null,children:({pdfavailable:h,zipavailable:C})=>!h&&!C?null:e.jsxs("div",{className:"ml-auto md:flex gap-4 hidden "+u(i)+"meetingdetails_description_line",children:[C&&e.jsx(I,{downloadUrl:pe(n.row.original.id),fileName:`Sitzung_Eintrag_${n.row.original.n
4ame}.zip`,children:e.jsx(z,{tooltipClass:"tooltip-left",type:F.meeting_download_zip})}),h&&e.jsx(I,{downloadUrl:ue(n.row.original.id),fileName:`Sitzung_${n.row.original.name}.pdf`,children:e.jsx(z,{tooltipClass:"tooltip-left "+u(i)+"meetingdetails_description_line",type:F.meeting_download_pdf})})]})})}),V};return e.jsxs("section",{role:"region","aria-labelledby":`meeting-section-${v}`,className:"mt-9 mb-20",children:[d.protectedpart?e.jsx("h2",{id:`meeting-section-${v}`,className:"text-normal-1 font-bold "+u(i)+"meetingdetails_type_title",children:"Nicht öffentliche Sitzung"}):e.jsx("h2",{id:`meeting-section-${v}`,className:"text-normal-1 font-bold "+u(i)+"meetingdetails_type_title",children:"Öffentliche Sitzung"}),e.jsx("div",{className:"mb-2",children:R&&p(d.protectedpart?s.freetextsbeforefirstprotectedpart:s.freetextsbeforefirstpublicpart)}),e.jsx(Ne,{mobileComponent:e.jsx(we,{functionName:"sitzung_details",listViewType:ve.SITZUNGEN_DETAILS,dataSet1:d.agendaitems,dataSet2:j}),desktopComponent:e.jsx(_e,{extraColumn:S?.globalidmode===2,isLoggedIn:!!t,data:d.agendaitems,columns:U(S,t),renderSubComponent:r,getRowCanExpand:o})}),e.jsx("div",{className:"mt-2",children:R&&p(d.protectedpart?s.freetextsafterfirstprotectedpart:s.freetextsafterfirstpublicpart)})]},v)})}function g(){if(s.documents.length<=0)return e.jsx(e.Fragment,{});const t=s.documents.filter(a=>!a.isprotected),l=s.documents.filter(a=>a.isprotected);return e.jsxs("div",{className:"relative mt-8 p-10 bg-base-100 dark:bg-base_dark shadow",children:[e.jsxs("button",{className:"cursor-pointer text-lg font-bold text-left w-full focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 rounded-sm p-1 -m-1",onClick:()=>b(!m),onKeyDown:a=>{(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),b(!m))},"aria-expanded":m,"aria-controls":"documents-content",type:"button",children:["Dokumente",m?e.jsx(Q,{className:"inline w-6 h-6 text-sidebar-1 ml-4"}):e.jsx(X,{className:"inline w-6 h-6 text-sidebar-1 ml-4"})]}),m?e.jsxs("div",{id:"documents-content",children:[e.jsx("div",{className:"divider px-3 pt-0 my-6 bg-base-100 dark:bg-base_dark"}),e.jsxs("table",{className:"w-full",children:[t.length>0&&e.jsxs(e.Fragment,{children:[e.jsx("tr",{className:"w-30",children:e.jsx("td",{rowSpan:t.length+1,valign:"top",className:"font-semibold",children:e.jsx("h2",{children:"Öffentlich"})})}),t.map(a=>e.jsx("tr",{children:e.jsx("td",{className:"pt-2",children:e.jsx(Y,{downloadUrl:x?O(a.id):q(a.id),name:a.name,fileext:a.fileext})})},a.id))]}),t.length>0&&l.length>0?e.jsx("tr",{children:e.jsx("td",{colSpan:3,children:e.jsx("div",{className:"divider px-3 pt-0 mt-6 mb-0 bg-base-100 dark:bg-base_dark"})})}):e.jsx(e.Fragment,{}),l.length>0&&e.jsxs(e.Fragment,{children:[e.jsx("tr",{className:"w-30",children:e.jsx("td",{rowSpan:l.length+1,valign:"top",className:"font-semibold",children:e.jsx("h2",{children:"Nicht öffentlich"})})}),l.map(a=>e.jsx("tr",{children:e.jsx("td",{className:"pt-2",children:e.jsx(Y,{downloadUrl:x?O(a.id):q(a.id),name:a.name,fileext:a.fileext})})},a.id))]})]})]}):e.jsx(e.Fragment,{})]})}function p(t){return!t||t.length===0?null:e.jsx("div",{className:"py-6 px-10 remote-transparency-80 rounded-md shadow space-y-4",children:t.map((l,a)=>e.jsxs("div",{className:"flex items-start gap-8 flex-wrap",children:[e.jsx("span",{className:"font-bold",children:l.caption}),e.jsx("span",{className:"text-normal-1 break-words whitespace-pre-wrap",children:l.content})]},a))})}const Z=({data:t,handleLocationClick:l})=>t.locationzip&&t.locationcity?e.jsxs("button",{onClick:()=>l(`${t.locationstreet}, ${t.locationzip} ${t.locationcity} ${t.locationdistrict}`),className:"hover:underline flex items-center mt-1 text-left","aria-label":`${t.locationname} - Externer Link zu Google Maps (öffnet in neuem Tab)`,title:"Öffnet Google Maps in einem neuen Tab",children:[t.locationname,e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-4 h-4 ml-1",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})}),e.jsx("span",{className:"sr-only",children:"(Externer Link)"})]}):e.jsx("div",{className:"flex items-center mt-1 text-left",children:t.locationname});if(s===null)return e.jsx(e.Fragment,{});if(S===null||S.globalidmode===null)return e.jsx(e.Fragment,{});const G=({data:t,userToken:l})=>{const a=(o,U)=>{if(!o)return"";const k=K(o),A=k.format("HH:mm");if(!U)return`${A}-Ende offen`;const V=K(U),n=V.format("HH:mm");return A==="00:00"&&n==="00:00"?null:n==="00:00"&&A!=="00:00"?k.format("HH:mm [
4Uhr]"):`${A}-${V.format("HH:mm [Uhr]")}`},d=[];if(t.publicstarttime){const o=a(t.publicstarttime,t.publicendtime);o&&d.push({label:"Öffentlich:",time:o})}if(t.publicstarttime2&&t.publicendtime2){const o=a(t.publicstarttime2,t.publicendtime2);o&&d.push({label:"",time:o})}const v=[];if(l){if(t.nonepublicstarttime){const o=a(t.nonepublicstarttime,t.nonepublicendtime);o&&v.push({label:"Nicht-öffentlich:",time:o})}if(t.nonepublicstarttime2&&t.nonepublicendtime2){const o=a(t.nonepublicstarttime2,t.nonepublicendtime2);o&&v.push({label:"",time:o})}}const R=[...d,...v];return e.jsx("div",{className:"grid grid-cols-[max-content_1fr] gap-y-1 gap-x-2",children:R.map((o,U)=>e.jsxs(M.Fragment,{children:[e.jsx("div",{children:o.label}),e.jsx("div",{children:o.time})]},U))})};return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"mt-6 mb-4 flex",children:[e.jsxs("div",{children:[e.jsx("span",{tabIndex:0,className:"font-sm text-normal-1 mr-3 hover:underline hover:cursor-pointer",onClick:P,onKeyDown:t=>{t.key==="Enter"&&P(t)},children:"Sitzungen"}),"/",e.jsx("span",{className:"font-sm font-semibold text-normal-1 ml-3",children:s.name})]}),e.jsxs("div",{className:"ml-auto flex gap-4",children:[s.candownloadsummonspdf&&e.jsx(I,{downloadUrl:le(s.id),fileName:`Sitzung_Einladung_${s.name}.pdf`,children:e.jsx(z,{tooltipClass:"tooltip-left",type:F.meeting_download_summons_pdf})}),e.jsx("a",{href:ie(`/app/druckansicht/sitzung/${s.id}`),target:"_blank",rel:"noreferrer noopener",children:e.jsx(z,{tooltipClass:"tooltip-left",type:F.meeting_print,ignoreAuthentification:!0})}),x.toString().length>0&&e.jsxs(e.Fragment,{children:[e.jsx(I,{downloadUrl:re(s.id),fileName:`Sitzung_${s.name}.zip`,children:e.jsx(z,{tooltipClass:"tooltip-left",type:F.meeting_download_zip})}),e.jsx(I,{downloadUrl:oe(s.id),fileName:`Sitzung_${s.name}.pdf`,children:e.jsx(z,{tooltipClass:"tooltip-left",type:F.meeting_download_pdf})})]}),e.jsx(I,{downloadUrl:x&&x.toString().length>0?ce(s.id):de(s.id),fileName:`${s.name}.ics`,children:e.jsx(z,{tooltipClass:"tooltip-left",ignoreAuthentification:!0,type:F.meeting_download_ics})})]})]}),p(s.freetextsbeforemeeting),e.jsx("div",{className:"relative mt-2 px-10 py-6 bg-base-100 dark:bg-base_dark rounded-md remote-card-border ",children:e.jsxs("div",{className:"flex flex-col lg:flex-row lg:gap-10",children:[e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"mb-6",children:[e.jsx("h2",{className:"font-bold mb-1",children:"Datum"}),e.jsx("div",{className:"text-normal-1",children:K(s.meetingdate).format("DD.MM.YYYY")})]}),e.jsxs("div",{className:"mb-6",children:[e.jsx("h2",{className:"font-bold mb-1",children:"Uhrzeit"}),e.jsx("div",{className:"text-normal-1",children:e.jsx(G,{data:s,userToken:x})})]}),e.jsxs("div",{children:[e.jsx("h2",{className:"font-bold mb-1",children:"Status"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(be,{statusType:s.state}),s.unreadop===1&&e.jsx("span",{className:"status Neu-status",style:{fontSize:15},children:"Neu"}),s.unreadop===2&&e.jsx("span",{className:"status Geändert-status",style:{fontSize:15},children:"Geändert"})]})]})]}),e.jsx("div",{className:"hidden lg:block border-l border-gray-300 mx-8"}),e.jsxs("div",{className:"flex-1 mt-6 lg:mt-0",children:[e.jsxs("div",{className:"mb-6",children:[e.jsx("h2",{className:"font-bold mb-1",children:"Sitzungsort"}),e.jsx(Z,{data:s,handleLocationClick:T})]}),e.jsxs("div",{className:"mb-6",children:[e.jsx("h2",{className:"font-bold mb-1",children:"Gremium"}),e.jsx("div",{className:"text-normal-1 mt-1",children:e.jsx("span",{children:c(s)})})]}),s.inviter&&e.jsxs("div",{children:[e.jsx("h2",{className:"font-bold mb-1",children:"Einladung"}),e.jsx("div",{className:"text-normal-1 mt-1",children:e.jsxs("span",{children:[s.inviter,s.inviterrole&&e.jsxs(e.Fragment,{children:[" (",s.inviterrole,")"]})]})})]})]})]})}),e.jsx("div",{className:"mt-2",children:p(s.freetextsbeforeparts)}),D(x),g(),e.jsx("div",{className:"mt-8",children:p(s.freetextsaftermeeting)}),e.jsx("div",{className:"mt-8 mb-12",children:e.jsxs("span",{className:"text-normal-1 text-sm italic "+u(i)+"data_as_at",children:["Datenstand vom: ",K(s.snapdatetime).format("DD.MM.YYYY HH:mm")," ","Uhr"]})})]})}export{ze 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.