0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 18.221.221.171


Current Path : /var/www/qpms/assets/
Upload File :
Current File : /var/www/qpms/assets/AbstractForm-CftDp_4O.js

import{v as l,E as r}from"./index-Dyw5MJqL.js";const c=(e,o,n,t)=>(console.log(e,"hi"),async(a,E)=>{const p=new FormData;p.append("data",JSON.stringify(e)),E();let g=localStorage.getItem("dbname");a({type:"SET_LOADER"}),await l.post("/app.php?a=saveAbstractForm&db="+g+"&id="+o,p).then(d=>{console.log(d,"anita"),a({type:"UNSET_LOADER"}),d.data.error_code===0?r("success",d.data.data.msg):r("info",d.data.data.msg),a({type:"UNSET_BTN_LOADER"})}).catch(d=>{a({type:"UNSET_BTN_LOADER"}),r("error",d)})}),m=()=>async(e,o)=>{o();let n=localStorage.getItem("dbname");e({type:"SET_LOADER"}),await l.get("/app.php?a=viewAbstractData&db="+n).then(t=>{console.log(t,"anita"),e({type:"SET_LOADER"}),t.data.error_code===0?e({type:"VIEW_ABSTRACT",payload:t.data.data}):r("info",t.data.data.msg),e({type:"UNSET_LOADER"})}).catch(t=>{e({type:"UNSET_LOADER"}),r("error",t)})},y=e=>async(o,n)=>{n();let t=localStorage.getItem("dbname");o({type:"SET_LOADER"}),await l.get("/app.php?a=deleteAbstractformData&db="+t+"&id="+e).then(a=>{console.log(a,"anita"),a.data.error_code===0?r("info",a.data.data.msg):r("info",a.data.data.msg),o({type:"UNSET_LOADER"})}).catch(a=>{o({type:"UNSET_LOADER"}),r("error",a)})},T=e=>async(o,n)=>{n();let t=localStorage.getItem("dbname");o({type:"SET_LOADER"}),await l.get("/app.php?a=updateAbstractformData&db="+t+"&id="+e).then(a=>{console.log(a,"anita"),a.data.error_code===0?o({type:"UPDATE_ABSTRACT",payload:a.data.data}):r("info",a.data.data.msg),o({type:"UNSET_LOADER"})}).catch(a=>{o({type:"UNSET_LOADER"}),r("error",a)})},_=()=>async(e,o)=>{o();let n=localStorage.getItem("dbname");await l.get("/app.php?a=loadCategoryAbstract&db="+n).then(t=>{t.data.error_code===0?e({type:"CATEGORY_ABSTRACT",payload:t.data.data}):r("info",t.data.data.msg),e({type:"UNSET_LOADER"})}).catch(t=>{e({type:"UNSET_LOADER"}),r("error",t)})};export{T as a,y as d,_ as g,c as s,m as v};