1import{u as w,v,d as N,w as o,f as a,l as r,m as b,e as n,M as S,x as m,J as p,E as x,t as B,g as k}from"./index-CKUd8UCd.js";import{a as M}from"./DialogModal-CmPFmEai.js";import{_ as h}from"./Button-B_QCuksn.js";import{_ as g}from"./Field-BbFFq4g3.js";const V={class:"font-mono"},U={__name:"NotifyModal",props:{show:{type:Boolean,default:!1},userName:String,actionUrl:String},emits:["close"],setup(d,{emit:y}){const c=d,i=y,e=w({title:"",body:""});v(()=>c.show,f=>{f&&(e.reset(),e.clearErrors())});function u(){e.post(c.actionUrl,{preserveScroll:!0,onSuccess:()=>{e.reset(),i("close")}})}return(f,t)=>(k(),N(M,{show:d.show,"max-width":"lg",onClose:t[3]||(t[3]=s=>i("close"))},{title:o(()=>[n("span",V,"Benachrichtigung an "+B(d.userName)+" senden",1)]),content:o(()=>[n("form",{class:"space-y-4",onSubmit:S(u,["prevent"])},[a(g,{id:"notify-title",label:"Titel *",error:r(e).errors.title},{default:o(s=>[m(n("input",p(s,{"onUpdate:modelValue":t[0]||(t[0]=l=>r(e).title=l),type:"text",placeholder:"z. B. Neues NOTAM aktiv",class:[r(e).errors.title?"border-atlas-error":"border-da-border-strong","w-full rounded-da-control border bg-da-card text-da-text placeholder:text-da-text-faint transition-shadow hover:border-da-text-muted focus:border-da-accent focus:outline-none focus:ring-[3px] focus:ring-da-accent/30 h-12 px-3.5 text-base"]}),null,16),[[x,r(e).title]])]),_:1},8,["error"]),a(g,{id:"notify-body",label:"Nachricht *",error:r(e).errors.body},{default:o(s=>[m(n("textarea",p(s,{"onUpdate:modelValue":t[1]||(t[1]=l=>r(e).body=l),rows:"4",placeholder:"Schreiben Sie hier Ihre Benachrichtigungsnachricht...",class:[r(e).errors.body?"border-atlas-error":"border-da-border-strong","w-full resize-none rounded-da-control border bg-da-card text-da-text placeholder:text-da-text-faint transition-shadow hover:border-da-text-muted focus:border-da-accent focus:outline-none focus:ring-[3px] focus:ring-da-accent/30 px-3.5 py-3 text-base"]}),null,16),[[x,r(e).body]])]),_:1},8,["error"])],32)]),footer:o(()=>[a(h,{type:"button",disabled:r(e).processing,onClick:t[2]||(t[2]=s=>i("close")),variant:"secondary"},{default:o(()=>[...t[4]||(t[4]=[b(" Abbrechen ",-1)])]),_:1},8,["disabled"]),a(h,{type:"button",disabled:r(e).processing,onClick:u,class:"ms-3"},{default:o(()=>[...t[5]||(t[5]=[b(" Senden ",-1)])]),_:1},8,["disabled"])]),_:1},8,["show"]))}};export{U 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.