PageSourceSearch

https://ripplemind.com/_next/static/chunks/pages/salary-management…/[companyId]/_layout-515559283c542844.js

js ripplemind.com collected 2026-10-06 13:16:39 UTC 2,752 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5748],{43537:function(a,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/salary-management/company/[companyId]/_layout",function(){return n(42689)}])},42689:function(a,e,n){"use strict";n.r(e);var t=n(85893),o=n(67294),s=n(41664),l=n.n(s),r=n(11163),c=n(88446),m=n(86501);e.default=a=>{let{children:e}=a,n=(0,r.useRouter)(),{companyId:s}=n.query,[i,d]=(0,o.useState)(null),[p,y]=(0,o.useState)(!0),h=[{name:"Employees",path:"/salary-management/company/".concat(s,"/employees")},{name:"Departments",path:"/salary-management/company/".concat(s,"/department")},{name:"Attendance",path:"/salary-management/company/".concat(s,"/attendance")},{name:"Designations",path:"/salary-management/company/".concat(s,"/designation")},{name:"Salary List",path:"/salary-management/company/".concat(s,"/salary-list")},{name:"Holidays",path:"/salary-management/company/".concat(s,"/holidays")},{name:"Religion",path:"/salary-management/company/".concat(s,"/religion")}].sort((a,e)=>a.name.localeCompare(e.name));return(0,o.useEffect)(()=>{if(!s)return;let a=async()=>{var a,e,n;try{let e=await c.Z.post("/payroll/company/company-by-id",{company_id:s});d(null===(a=e.data)||void 0===a?void 0:a.data)}catch(a){m.ZP.error((null==a?void 0:null===(e=a.response)||void 0===e?void 0:null===(n=e.data)||void 0===n?void 0:n.message)||"Error fetching company"),console.error("❌ Error fetching company:",a)}finally{y(!1)}};a()},[s]),(0,t.jsxs)("div",{className:"flex min-h-screen",children:[(0,t.jsxs)("aside",{className:"w-64 flex-shrink-0 bg-gray-900 text-white p-4",children:[p?(0,t.jsx)("h2",{className:"text-lg font-bold mb-6",children:"Loading..."}):(0,t.jsxs)("div",{className:"flex items-center gap-3 my-3",children:[(null==i?void 0:i.logo_url)&&(0,t.jsx)("img",{src:i.logo_url,alt:i.company_name,className:"w-12 h-12 rounded-full object-cover border border-gray-700"}),(0,t.jsx)("h2",{className:"text-lg font-bold truncate",children:(null==i?void 0:i.company_name)||"Company"})]}),(0,t.jsx)("ul",{className:"space-y-2 mb-6",children:h.map(a=>(0,t.jsx)("li",{children:(0,t.jsx)(l(),{href:a.path,children:(0,t.jsx)("span",{className:"block px-3 py-2 rounded-md cursor-pointer transition-colors ".concat(n.asPath.startsWith(a.path)?"bg-gray-700 font-semibold":"hover:bg-gray-800"),children:a.name})})},a.path))}),(0,t.jsx)(l(),{href:"/salary-management/company",children:(0,t.jsx)("span",{className:"block mt-6 text-sm text-gray-300 hover:text-white",children:"← Back to Companies"})})]}),(0,t.jsx)("main",{className:"flex-1 p-3 bg-gray-100 overflow-x-auto",children:(0,t.jsx)("div",{className:"min-w-[1200px]",children:e})})]})}}},function(a){a.O(0,[9774,2888,179],function(){return a(a.s=43537)}),_N_E=a.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.