1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4033],{7896:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/Components/IndexingTableList",function(){return n(20052)}])},14173:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var l=n(14232),u=n(54196);function r(){let[e,t]=(0,l.useState)([]),[n,r]=(0,l.useState)(!1),[a,o]=(0,l.useState)(!0),[s,i]=(0,l.useState)([]),[c,d]=(0,l.useState)(""),[f,p]=(0,l.useState)("");return(0,l.useEffect)(()=>{var e;let n=null==(e=localStorage.getItem("admin_token"))?void 0:e.replaceAll('"',"");console.log(n),(async()=>{try{let l=await fetch("".concat(u.Qs,"admin/me"),{headers:{Authorization:"Bearer ".concat(n)},credentials:"include"}),a=await l.json();if(console.log(a),a.status){let n=(null==a?void 0:a.data)||{};"[email protected]"===n.email&&(n.role="IPMASTER"),p(n),r("SuperAdmin"===n.role),t(n.permissions||[]);let l=(n.permissions||[]).filter(e=>"Pages"===e.module);if("SuperAdmin"!==n.role&&(d(""),l.length>0)){var e;i(null==(e=l[0])?void 0:e.subModule)}d(n._id)}}catch(e){console.error("Permission fetch error:",e)}finally{o(!1)}})()},[]),{permissions:e,hasPermission:(t,l)=>{let u=e.find(e=>e.module===t);return!!n||(null==u?void 0:u.actions.includes(l))},loading:a,isSuperAdmin:n,submodules:s,adminId:c,adminData:f}}},54196:(e,t,n)=>{"use strict";n.d(t,{CY:()=>r,Ir:()=>u,Qs:()=>l});let l="https://sea-lion-app-zhe9q.ondigitalocean.app/api/",u="https://mangalmay.sfo3.cdn.digitaloceanspaces.com",r="https://www.mangalmay.org/"},89203:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return u}});let l=n(14232);function u(e,t){let n=(0,l.useRef)(null),u=(0,l.useRef)(null);return(0,l.useCallback)(l=>{if(null===l){let e=n.current;e&&(n.current=null,e());let t=u.current;t&&(u.current=null,t())}else e&&(n.current=r(e,l)),t&&(u.current=r(t,l))},[e,t])}function r(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let n=e(t);return"function"==typeof n?n:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}},e=>{e.O(0,[4e3,8230,52,636,6593,8792],()=>e(e.s=7896)),_N_E=e.O()}]);
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.