Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 9m16s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 9m12s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 9m52s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 9m47s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 10m4s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 10m6s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 8m6s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 56s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 8m56s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m53s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 line
No EOL
7.6 KiB
JavaScript
1 line
No EOL
7.6 KiB
JavaScript
import{D as e,E as t,Ht as n,On as r,Yt as i,Zn as ee,_ as a,b as o,bt as s,mt as c,o as l,qt as u,tr as d,v as f,vn as p,w as te,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{b as h,w as g}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as _,i as ne,o as re,s as v}from"./dist--2OKCVzt.js";import{t as y}from"./createLucideIcon-VlaMqNX_.js";import{t as b}from"./loader-circle-Wr6tQn-J.js";import{i as x}from"./PopoverTrigger-Cah311ye.js";import{t as S}from"./pencil-line-5xb0u6Cg.js";import{t as C}from"./trash-CONUPzoz.js";import{n as ie}from"./lib-Be7KNAML.js";import{C as w,O as T,P as E,T as D,b as O,j as k,p as A,u as j,w as M}from"./app-C5Z-g-oq.js";import{t as N}from"./StatusBadge-B45sWNYi.js";import{n as P,t as F}from"./SupportButton-BSAcpZd0.js";var I=y({name:`badge-check`,size:24,node:[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`verified`]}),L={class:`inline-flex flex-wrap items-center gap-2`},R={class:`grid items-start gap-6 lg:grid-cols-12`},z={class:`grid min-w-0 gap-6 lg:col-span-8`},B={class:`flex gap-5`},V={class:`min-w-0 flex-1`},H={class:`text-[15px] leading-relaxed whitespace-pre-line`},U={key:0,class:`mt-5 flex items-center gap-2.5 border-t pt-4 text-sm`},W={key:0,class:`rounded-lg border border-brand/30 bg-brand-soft/60 p-5`},G={class:`flex items-center gap-2 text-sm font-semibold text-brand-text`},K={class:`mt-2 text-sm leading-relaxed whitespace-pre-line`},ae={key:0,class:`mt-2 text-xs text-muted-foreground`},q={key:0,class:`-mx-5 mb-5 divide-y border-y`},J={class:`min-w-0 flex-1`},oe={class:`flex flex-wrap items-center gap-x-2 text-sm`},se={class:`font-semibold`},ce={key:0,class:`inline-flex items-center gap-1 text-xs font-medium text-brand-text`},le={class:`text-xs text-muted-foreground`},ue={class:`mt-1 text-sm leading-relaxed whitespace-pre-line`},de={key:0,class:`text-[13px] text-destructive`},fe={class:`flex flex-wrap items-center justify-between gap-3`},pe={key:0,class:`flex items-center gap-2 text-sm`},me={key:1},he={class:`grid gap-6 lg:col-span-4`},ge=[`value`],Y={__name:`Show`,props:{idea:{type:Object,required:!0},statuses:{type:Object,required:!0}},setup(y){let Y=y,X=re();n(()=>X.props.flash.status,e=>e&&ie.success(e),{immediate:!0});let Z=p(!1),Q=_({body:``,official:!1});function _e(){Q.post(`/ideen/${Y.idea.id}/kommentare`,{preserveScroll:!0,onSuccess:()=>Q.reset()})}function ve(e){window.confirm(`Kommentar löschen?`)&&v.delete(`/ideen/${Y.idea.id}/kommentare/${e.id}`,{preserveScroll:!0})}let $=_({status:Y.idea.status,status_note:Y.idea.status_note??``});function ye(){$.put(`/ideen/${Y.idea.id}/status`,{preserveScroll:!0})}function be(){window.confirm(`Idee „${Y.idea.title}“ löschen?`)&&v.delete(`/ideen/${Y.idea.id}`)}return(n,p)=>(c(),f(D,{title:y.idea.title},{default:u(()=>[e(M,{title:y.idea.title,breadcrumbs:[{label:`Ideenbox`,href:`/ideen`}]},te({description:u(()=>[a(`span`,L,[e(N,{status:y.idea.status,label:y.idea.status_label},null,8,[`status`,`label`]),t(` eingereicht `+d(r(E)(y.idea.created_at)),1),y.idea.author?m(``,!0):(c(),o(l,{key:0},[t(` · anonym`)],64))])]),_:2},[y.idea.can_edit||y.idea.can_manage?{name:`actions`,fn:u(()=>[y.idea.can_edit?(c(),f(r(A),{key:0,variant:`outline`,size:`sm`,onClick:p[0]||=e=>Z.value=!0},{default:u(()=>[e(r(S)),p[6]||=t(` Bearbeiten`,-1)]),_:1})):m(``,!0),e(r(A),{variant:`ghost`,size:`sm`,class:`text-destructive hover:text-destructive`,onClick:be},{default:u(()=>[e(r(C)),p[7]||=t(` Löschen`,-1)]),_:1})]),key:`0`}:void 0]),1032,[`title`]),a(`div`,R,[a(`div`,z,[e(w,null,{default:u(()=>[a(`div`,B,[e(F,{idea:y.idea,disabled:y.idea.mine,large:``},null,8,[`idea`,`disabled`]),a(`div`,V,[a(`p`,H,d(y.idea.body),1),y.idea.author?(c(),o(`div`,U,[e(T,{person:y.idea.author,class:`size-8`},null,8,[`person`]),e(r(ne),{href:`/personen/${y.idea.author.id}`,class:`font-medium hover:underline`},{default:u(()=>[t(d(y.idea.author.name),1)]),_:1},8,[`href`])])):m(``,!0)])])]),_:1}),y.idea.status_note?(c(),o(`section`,W,[a(`h2`,G,[e(r(I),{class:`size-4`}),t(` Rückmeldung: `+d(y.idea.status_label),1)]),a(`p`,K,d(y.idea.status_note),1),y.idea.status_changed_at?(c(),o(`p`,ae,d(r(k)(y.idea.status_changed_at)),1)):m(``,!0)])):m(``,!0),e(w,{id:`kommentare`,title:`Kommentare (${y.idea.comment_list.length})`},{default:u(()=>[y.idea.comment_list.length?(c(),o(`ul`,q,[(c(!0),o(l,null,s(y.idea.comment_list,n=>(c(),o(`li`,{key:n.id,class:ee([`flex gap-3 px-5 py-4`,{"bg-brand-soft/40":n.official}])},[n.author?(c(),f(T,{key:0,person:n.author,class:`size-9`},null,8,[`person`])):m(``,!0),a(`div`,J,[a(`p`,oe,[a(`span`,se,d(n.author?.name??`Gelöschtes Konto`),1),n.official?(c(),o(`span`,ce,[e(r(I),{class:`size-3.5`}),p[8]||=t(` Gremium`,-1)])):m(``,!0),a(`span`,le,d(r(E)(n.created_at)),1)]),a(`p`,ue,d(n.body),1)]),n.can_delete?(c(),f(r(A),{key:1,variant:`ghost`,size:`icon`,class:`size-7 shrink-0 text-muted-foreground hover:text-destructive`,"aria-label":`Kommentar löschen`,onClick:e=>ve(n)},{default:u(()=>[e(r(C),{class:`size-3.5`})]),_:1},8,[`onClick`])):m(``,!0)],2))),128))])):m(``,!0),a(`form`,{class:`grid gap-3`,onSubmit:g(_e,[`prevent`])},[e(r(j),{modelValue:r(Q).body,"onUpdate:modelValue":p[1]||=e=>r(Q).body=e,rows:`3`,maxlength:`3000`,placeholder:`Ihre Meinung, Ergänzungen oder Erfahrungen …`,"aria-label":`Kommentar`},null,8,[`modelValue`]),r(Q).errors.body?(c(),o(`p`,de,d(r(Q).errors.body),1)):m(``,!0),a(`div`,fe,[y.idea.can_manage?(c(),o(`label`,pe,[e(r(x),{modelValue:r(Q).official,"onUpdate:modelValue":p[2]||=e=>r(Q).official=e},null,8,[`modelValue`]),p[9]||=t(` Als Antwort des Gremiums`,-1)])):(c(),o(`span`,me)),e(r(A),{type:`submit`,disabled:r(Q).processing||!r(Q).body.trim()},{default:u(()=>[r(Q).processing?(c(),f(r(b),{key:0,class:`animate-spin`})):m(``,!0),p[10]||=t(` Kommentieren `,-1)]),_:1},8,[`disabled`])])],32)]),_:1},8,[`title`])]),a(`aside`,he,[y.idea.can_manage?(c(),f(w,{key:0,title:`Bewertung (Gremium)`},{default:u(()=>[a(`form`,{class:`grid gap-4`,onSubmit:g(ye,[`prevent`])},[e(O,{id:`idea-status`,label:`Status`},{default:u(()=>[i(a(`select`,{id:`idea-status`,"onUpdate:modelValue":p[3]||=e=>r($).status=e,class:`h-9 w-full rounded-md border bg-background px-2 text-sm`},[(c(!0),o(l,null,s(y.statuses,(e,t)=>(c(),o(`option`,{key:t,value:t},d(e),9,ge))),128))],512),[[h,r($).status]])]),_:1}),e(O,{id:`idea-note`,label:`Rückmeldung (für alle sichtbar)`,error:r($).errors.status_note},{default:u(()=>[e(r(j),{id:`idea-note`,modelValue:r($).status_note,"onUpdate:modelValue":p[4]||=e=>r($).status_note=e,rows:`5`,maxlength:`3000`,placeholder:`z. B. Wird im Frühjahr umgesetzt. / Leider nicht möglich, weil …`},null,8,[`modelValue`])]),_:1},8,[`error`]),p[12]||=a(`p`,{class:`text-xs text-muted-foreground`},`Bei einem neuen Status bekommen die einreichende Person und alle Unterstützenden Bescheid.`,-1),e(r(A),{type:`submit`,disabled:r($).processing||!r($).isDirty},{default:u(()=>[r($).processing?(c(),f(r(b),{key:0,class:`animate-spin`})):m(``,!0),p[11]||=t(` Speichern`,-1)]),_:1},8,[`disabled`])],32)]),_:1})):m(``,!0),e(w,{title:`So funktioniert’s`},{default:u(()=>[...p[13]||=[a(`ol`,{class:`grid list-decimal gap-2 pl-4 text-[13px] text-muted-foreground`},[a(`li`,null,`Ideen sind für alle sichtbar und lassen sich unterstützen und kommentieren.`),a(`li`,null,`Das Gremium sichtet neue Ideen, prüft sie und gibt eine Rückmeldung.`),a(`li`,null,`Wer eine Idee eingereicht oder unterstützt hat, erfährt, wie es ausgeht.`)],-1)]]),_:1})])]),y.idea.can_edit?(c(),f(P,{key:0,open:Z.value,"onUpdate:open":p[5]||=e=>Z.value=e,idea:y.idea},null,8,[`open`,`idea`])):m(``,!0)]),_:1},8,[`title`]))}};export{Y as default}; |