import{_ as r,c as u,w as l,a as e,Y as t,$ as p,Q as h,a0 as n,a1 as f,aT as g,a2 as m,a3 as _,Z as k,a4 as C,o as b}from"./app-DzAYC6xy.js";const w={data(){return{input:""}},props:{title:String,message:String,label:String},emits:["ok","hide"],methods:{show(){this.$refs.dialog.show()},hide(){this.$refs.dialog.hide()},onDialogHide(){this.$emit("hide")},onOKClick(){this.$emit("ok",{input:this.input}),this.hide()},onCancelClick(){this.hide()}}},Q=["innerHTML"];function B(d,i,o,H,s,a){return b(),u(C,{ref:"dialog",onHide:a.onDialogHide},{default:l(()=>[e(k,{class:"q-dialog-plugin purple-dialog-card"},{default:l(()=>[e(t,{class:"row purple-dialog-header"},{default:l(()=>[p("div",{class:"text-body2 dialog-message",innerHTML:o.message},null,8,Q),e(h,{class:"q-ml-auto cursor-pointer close-icon",name:"close",onClick:n(a.hide,["stop"])},null,8,["onClick"])]),_:1}),e(t,{class:"purple-dialog-content"},{default:l(()=>[e(f,{class:"purple-input","label-color":"white","input-style":{color:"#ffffff"},filled:"",modelValue:s.input,"onUpdate:modelValue":i[0]||(i[0]=c=>s.input=c),label:o.label,onKeyup:g(n(a.onOKClick,["prevent"]),["enter"])},null,8,["modelValue","label","onKeyup"])]),_:1}),e(m,{align:"center",class:"purple-dialog-actions"},{default:l(()=>[e(_,{class:"purple-ok-btn","text-color":"white",label:d.$t("general.ok"),onClick:a.onOKClick},null,8,["label","onClick"])]),_:1})]),_:1})]),_:1},8,["onHide"])}const x=r(w,[["render",B],["__scopeId","data-v-87c5cd39"]]);export{x as B};
