Loheide-eu-mitarbeiterplatt.../public/build/assets/Show-B_0i4dDx.js
Friederich Loheide f8f6a4ba2b
Some checks failed
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 5m58s
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 6m45s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 7m4s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 6m47s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 14m39s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 14m39s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 10m45s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 10m52s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 1m16s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m49s
Barrierefreiheit nach WCAG 2.1 AA (0.37.0)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-27 15:35:34 +00:00

1 line
No EOL
1.8 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{D as e,E as t,Ht as n,On as r,_ as i,b as a,mt as o,o as s,qt as c,tr as l,v as u,w as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{i as p,o as m}from"./dist--2OKCVzt.js";import{t as h}from"./download-K4OGj5k2.js";import{n as g}from"./lib-Be7KNAML.js";import{A as _,C as v,F as y,S as b,St as x,_ as S,w as C}from"./app-CN36UeEy.js";import{t as w}from"./PollForm-Cv0zXVOE.js";var T={class:`mx-auto max-w-3xl`},E=[`href`],D={key:0,class:`mb-6 text-[15px] leading-relaxed whitespace-pre-line`},O={__name:`Show`,props:{poll:{type:Object,required:!0}},setup(O){let k=m();return n(()=>k.props.flash.status,e=>e&&g.success(e),{immediate:!0}),(n,m)=>(o(),u(C,{title:O.poll.title},{default:c(()=>[i(`div`,T,[e(v,{title:O.poll.title,breadcrumbs:[{label:`Umfragen`,href:`/umfragen`}]},d({description:c(()=>[O.poll.status===`draft`?(o(),a(s,{key:0},[t(`Entwurf – nur für die Redaktion sichtbar.`)],64)):O.poll.open&&O.poll.closes_at?(o(),a(s,{key:1},[t(`Läuft bis `+l(r(_)(O.poll.closes_at))+`, `+l(r(y)(O.poll.closes_at))+` Uhr`,1)],64)):O.poll.open?(o(),a(s,{key:2},[t(`Läuft`)],64)):O.poll.closes_at?(o(),a(s,{key:3},[t(`Beendet am `+l(r(_)(O.poll.closes_at)),1)],64)):f(``,!0)]),_:2},[O.poll.edit_url?{name:`actions`,fn:c(()=>[e(r(S),{variant:`outline`,size:`sm`,"as-child":``},{default:c(()=>[i(`a`,{href:O.poll.export_url},[e(r(h)),m[0]||=t(` Ergebnisse (CSV)`,-1)],8,E)]),_:1}),e(r(S),{variant:`outline`,size:`sm`,"as-child":``},{default:c(()=>[e(r(p),{href:O.poll.edit_url},{default:c(()=>[e(r(x)),m[1]||=t(` Bearbeiten`,-1)]),_:1},8,[`href`])]),_:1})]),key:`0`}:void 0]),1032,[`title`]),e(b,null,{default:c(()=>[O.poll.description?(o(),a(`p`,D,l(O.poll.description),1)):f(``,!0),e(w,{poll:O.poll},null,8,[`poll`])]),_:1})])]),_:1},8,[`title`]))}};export{O as default};