1import{_ as x}from"./C02oEUnD.js";import{_ as w}from"./ByGQix1G.js";import{e as v,m as b,c as g,a as s,b as l,w as y,g as n,o as q,d as k,j as N,y as m,p as d}from"./Dyvh3oHH.js";import{u as A}from"./4BS2-LJQ.js";import{u as h}from"./D1abb-hd.js";import"./BZkhi9C6.js";import"./CbH27re-.js";import"./C0HWcbYo.js";import"./OFoZCzGr.js";import"./D_MUfqoP.js";import"./Cet7_oYg.js";const F={class:"mb-6"},S={class:"bg-white dark:bg-slate-800 rounded-xl border border-slate-200 dark:border-slate-700 p-6"},D=v({__name:"new",setup(E){const u=b(),f=N(()=>{const t=u.query.qna_question_id;if(t==null)return null;const a=parseInt(String(t),10);return Number.isNaN(a)?null:a}),{createIstifta:c}=A(),{messageFromError:p}=h(),o=m(!1),r=m("");async function _(t){const{payload:a,exitAfterSave:i}="payload"in t&&"exitAfterSave"in t?t:{payload:t,exitAfterSave:!1};o.value=!0,r.value="";try{const e=await c(a);i?await d("/admin/fatwa/istifta"):await d(e?.id?`/admin/fatwa/istifta/${e.id}`:"/admin/fatwa/istifta")}catch(e){r.value=p(e)}finally{o.value=!1}}return(t,a)=>{const i=x,e=w;return q(),g("div",null,[s("div",F,[l(i,{to:"/admin/fatwa/istifta",class:"inline-flex items-center gap-1 text-slate-600 dark:text-slate-400 hover:text-primary text-sm mb-2"},{default:y(()=>[...a[0]||(a[0]=[s("span",{class:"material-icons text-lg"},"arrow_forward",-1),k(" بازگشت ب٠ÙÛØ³Øª Ø§Ø³ØªÙØªØ§Ø¦Ø§Øª ",-1)])]),_:1}),a[1]||(a[1]=s("h1",{class:"text-xl font-bold text-slate-900 dark:text-white"},"Ø§Ø³ØªÙØªØ§Ø¡ Ø¬Ø¯ÛØ¯",-1))]),s("div",S,[l(e,{"initial-qna-question-id":n(f),saving:n(o),error:n(r),onSubmit:_},null,8,["initial-qna-question-id","saving","error"])])])}}});export{D 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.