1import{_ as f,u as x,h as y,$ as p,c as a,a as s,b as c,w as u,F as b,r as k,g as r,d as w,e as g,o,f as m,t as l,x as S}from"./index-f20200c2.js";const v={setup(){x({title:"Ù
Ø¯ÛØ±Ûت آذرآÙÙØ§ÛÙ | Ø¯Ø³ØªØ±Ø³Û ÙØ§"})},data(){const t=y();return{permissions:[],showSpinner:!0,adminStore:t}},async created(){let t=await p.get("/api/site/admin/permissions?limit=200");this.showSpinner=!1,this.permissions=t.data.permissions},methods:{async deletePermission(t){try{this.showSpinner=!0,await p.post("/api/site/admin/permissions/"+t.id+"/delete"),this.showSpinner=!1,this.$toast.open({message:"Ø¯Ø³ØªØ±Ø³Û Ù
ÙØ±Ø¯Ùظر با Ù
ÙÙÙÛØª ØØ°Ù شد.",type:"success",duration:2e3,position:"top-left"})}catch{this.$toast.open({message:"عÙ
ÙÛØ§Øª با خطا Ù
ÙØ§Ø¬Ù Ø´Ø¯Ø ÙØ·Ùا Ø¯ÙØ¨Ø§Ø±Ù ØªÙØ§Ø´ Ú©ÙÛØ¯.",type:"error",duration:3e3,position:"top-left"})}this.permissions.splice(this.permissions.indexOf(t),1)}}},B={class:"bg-white py-5 px-4 shadow-sm border-radius-8 admin-tables"},C={class:"d-flex justify-content-between px-3"},N={class:"info-table mt-5"},V={class:"item-title"},A={class:"item-title"},$={class:"item-title"},F=["onClick"];function P(t,e,j,D,i,_){const d=w,h=g;return o(),a("div",B,[s("div",C,[e[1]||(e[1]=s("h1",{class:"text-dark-blue fs-28 fw-600 mb-0 text-dark-blue"},"ÙÛØ³Øª Ø¯Ø³ØªØ±Ø³Û ÙØ§",-1)),c(d,{to:"/admin/permission/create",class:"btn-primary-orange"},{default:u(()=>e[0]||(e[0]=[s("span",{class:"fa fa-plus pe-2 align-middle"},null,-1),m(" Ø§ÛØ¬Ø§Ø¯ Ø¯Ø³ØªØ±Ø³Û Ø¬Ø¯ÛØ¯ ")])),_:1})]),s("table",N,[e[4]||(e[4]=s("thead",null,[s("tr",null,[s("th",null,"#"),s("th",null,"ÙØ§Ù
"),s("th",null,"Ú©ÙÙ
Ù Ú©ÙÛØ¯Û"),s("th",null,"عÙ
ÙÛØ§Øª")])],-1)),s("tbody",null,[c(h,{active:i.showSpinner,text:"ÙØ·Ùا Ù
ÙØªØ¸Ø± Ø¨Ø§Ø´ÛØ¯..."},null,8,["active"]),i.showSpinner?r("",!0):(o(!0),a(b,{key:0},k(i.permissions,n=>(o(),a("tr",{key:n.id},[s("td",V,[e[2]||(e[2]=s("span",{class:"text-primary-color"},"#",-1)),m(" "+l(n.id),1)]),s("td",null,l(n.name),1),s("td",A,l(n.key),1),s("td",$,[i.adminStore.hasSubmenuAccess("edit-permission")?(o(),S(d,{key:0,to:"/admin/permissions/"+n.id+"/edit"},{default:u(()=>e[3]||(e[3]=[s("i",{class:"fa fa-edit text-success me-4 d-inline-block"},null,-1)])),_:2},1032,["to"])):r("",!0),i.adminStore.hasSubmenuAccess("delete-permission")?(o(),a("i",{key:1,class:"fa fa-close text-danger d-inline-block",onClick:E=>_.deletePermission(n)},null,8,F)):r("",!0)])]))),128))])])])}const I=f(v,[["render",P],["__scopeId","data-v-162e8712"]]);export{I 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.