import"./vue-C2cMydZB.js";import{c as k,q as x}from"./primevue-D560Sdto.js";import{D as h}from"./diagnostics-service-4wNjnnV6.js";import{a5 as N,r as u,c as i,d as a,N as d,I as B,K as p,J as m,D as C,E as l,F as f,j as g,e,P as c,Q as D}from"./@vue-Bf7e1FJA.js";import"./@primevue-DPkGvRPC.js";import"./@primeuix-C4hPHhAU.js";import"./axios-NIGUFBhG.js";import"./app-BEmliBhW.js";import"./pinia-BVayYkVO.js";import"./vue-router-CKUI0Twr.js";import"./@vueuse-Ca5vHdxT.js";import"./laravel-vue-i18n-DoYn1SwG.js";import"./sprintf-js-D7DtBTRn.js";import"./justified-layout-1UKsdMGj.js";import"./@sidsbrmnn-DQhBXYP8.js";import"./qrcode-B3tOMrWf.js";import"./dijkstrajs-C00ieaqj.js";import"./vue-collapsed-BjXSUHBS.js";import"./leaflet-B16DWo85.js";import"./leaflet-rotatedmarker-roe_HPmI.js";import"./leaflet.markercluster-CQ4sI09g.js";import"./@lychee-org-CcYfPfz8.js";import"./axios-cache-interceptor-hz9-Z59L.js";import"./cache-parser-DXYp_BCq.js";import"./fast-defer-9MI9za_P.js";import"./object-code-SBtdq8jY.js";import"./pinia-plugin-persistedstate-B8MS7Mes.js";import"./destr-BPvN1X9m.js";import"./deep-pick-omit-CegYQlcN.js";/* empty css            */const P={class:"grid",style:{"grid-template-columns":"1fr 1fr 1fr"}},V={key:0,class:"text-create-600"},b={key:1,class:"text-danger-600"},j={key:0,class:"font-bold text-create-700 text-center"},$={class:"grid text-muted-color",style:{"grid-template-columns":"1fr 1fr 1fr 1fr"}},it=N({__name:"Permissions",setup(w){const v=u(!0),o=u([]),n=u([]);return h.permissions().then(s=>{o.value=s.data.left.split(`
`),n.value=s.data.right.split(`
`),v.value=s.data.left===s.data.right}),(s,t)=>{const _=f("router-link"),y=f("Panel");return a(),i(c,null,[d(g(x),{class:"w-full border-0 h-14"},{start:m(()=>[d(_,{to:{name:"gallery"}},{default:m(()=>[d(g(k),{icon:"pi pi-angle-left",class:"mr-2",severity:"secondary",text:""})]),_:1})]),center:m(()=>[C(l(s.$t("diagnostics.title")),1)]),end:m(()=>t[0]||(t[0]=[])),_:1}),o.value.length&&n.value.length?(a(),B(y,{key:0,class:"border-none p-9"},{default:m(()=>[e("div",P,[t[1]||(t[1]=e("div",null,null,-1)),e("div",null,[(a(!0),i(c,null,D(Math.min(o.value.length,n.value.length),r=>(a(),i(c,null,[o.value[r]!==n.value[r]?(a(),i("pre",V,l(r)+" - "+l(o.value[r]),1)):p("",!0),o.value[r]!==n.value[r]?(a(),i("pre",b,l(r)+" + "+l(n.value[r]),1)):p("",!0)],64))),256)),v.value?(a(),i("pre",j,l(s.$t("diagnostics.identical_content")),1)):p("",!0)]),t[2]||(t[2]=e("div",null,null,-1))]),e("div",$,[t[3]||(t[3]=e("div",null,null,-1)),e("pre",null,l(o.value.join(`
`)),1),e("pre",null,l(n.value.join(`
`)),1),t[4]||(t[4]=e("div",null,null,-1))])]),_:1})):p("",!0)],64)}}});export{it as default};
