PageSourceSearch

https://ibasa.ir/_nuxt/DA255A4l.js

js ibasa.ir collected 2026-10-02 23:29:40 UTC 3,130 bytes, 1 lines download raw bytes

1import{_ as M}from"./B-D-wx-M.js";import{f as j,am as V,o as p,c as T,a as k,t as s,b as l,L as a,an as f,a0 as $,A as w,w as d,d as g,N as v,ai as G,j as S}from"./CtMHwfXV.js";import{u as A,_ as E}from"./aGrJXm9y.js";import{_ as I}from"./DchdZZTM.js";import{u as K}from"./BzcMKjaw.js";import{g as r}from"./B0__kW3z.js";import"./Co8E1a2A.js";import"./xMlNgL3B.js";import"./CApPy2VL.js";import"./DsD4fvwB.js";import"./5VjykXnT.js";import"./C1Pj0ji8.js";import"./BkKqnNCE.js";import"./C9CE_iHo.js";import"./CRRFZZuI.js";import"./F8doVSIJ.js";import"./DKGZs-ZR.js";import"./DBgm7wId.js";import"./ShKlClOw.js";import"./BTknn6Gb.js";import"./Cfxi-aw0.js";const L={class:""},O={class:"mb-3 flex items-center gap-2"},q={class:"text-dove w-full font-bold"},z=j({__name:"Table",props:{inj:{},viewRoute:{default:"panel-base-grants-id"},addRoute:{default:"panel-base-grants-new"},editRoute:{default:"panel-base-grants-id-edit"}},setup(_){const n=K({injectionKey:_.inj}),{search:i,filter:u,isDeleteOpen:m,remove:h,openDeleteModal:C}=A(n,e=>({$or:e?[{object:{$like:e}},{subject:{$like:e}},{action:{$like:e}},{field:{$like:e}},{filter:{$like:e}}]:void 0}),{}),y=[{name:r("grant.subject"),filterable:!0,key:"subject"},{name:r("grant.action"),filterable:!0,key:"action"},{name:r("grant.object"),filterable:!0,key:"object"},{name:r("grant.field"),filterable:!0,key:"field",value:e=>{var t;return((t=e.field)==null?void 0:t.join(" "))??""}},{name:r("grant.filter"),filterable:!0,key:"filter",value:e=>{var t;return((t=e.filter)==null?void 0:t.join(" "))??""}}];return(e,t)=>{const D=M,c=S,B=E,U=I,b=V("can");return p(),T("div",L,[k("div",O,[k("div",q,s(e.$t("grant.list")),1),l(D,{search:a(i),"onUpdate:search":t[0]||(t[0]=o=>f(i)?i.value=o:null),placeholder:e.$t("form.search",{text:e.$t("grant.subject")})},null,8,["search","placeholder"]),$((p(),w(c,{onClick:t[1]||(t[1]=o=>("navigateTo"in e?e.navigateTo:a(v))({name:e.addRoute}))},{default:d(()=>[g(s(e.$t("btn.add")),1)]),_:1})),[[b,void 0,"create:client#grant"]])]),l(B,{storage:a(n).storage,"onUpdate:storage":t[2]||(t[2]=o=>a(n).storage=o),filter:a(u),"onUpdate:filter":t[3]||(t[3]=o=>f(u)?u.value=o:null),name:"grants",title:e.$t("grant.list"),heading:y,"actions-acl":"update:client#grant","row-class":"cursor-pointer",onRowClick:t[4]||(t[4]=o=>("navigateTo"in e?e.navigateTo:a(v))({name:e.viewRoute,params:{id:o.id}}))},{dropdown:d(({item:o})=>[$((p(),w(c,{color:"gray",variant:"ghost",icon:"i-solar-pen-new-round-linear",onClick:G(N=>("navigateTo"in e?e.navigateTo:a(v))({name:e.editRoute,params:{id:o.id}}),["stop"])},{default:d(()=>[g(s(e.$t("btn.edit")),1)]),_:2},1032,["onClick"])),[[b,void 0,"update:client#grant"]]),l(c,{color:"red",icon:"i-solar-trash-bin-2-linear",onClick:N=>a(C)(o)},{default:d(()=>[g(s(e.$t("btn.delete")),1)]),_:2},1032,["onClick"])]),_:1},8,["storage","filter","title"]),l(U,{show:a(m),"onUpdate:show":t[5]||(t[5]=o=>f(m)?m.value=o:null),accept:a(h),loading:a(n).storage.loading.delete},null,8,["show","accept","loading"])])}}}),ue=j({__name:"index",setup(_){return(R,n)=>{const i=z;return p(),T("div",null,[l(i,{inj:"default"})])}}});export{ue 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.