PageSourceSearch

https://lms.cuonlineedu.in/assets/index28.js

js cuonlineedu.in collected 2026-10-05 22:37:16 UTC 2,062 bytes, 1 lines download raw bytes

1import{v as S,x as h,r,au as x,j as t,c as g,S as l,T as v,B as M,N as C,e as y,R as E,C as T}from"./index.js";import{u as L}from"./service12.js";const I=[{id:"name",label:"Name"},{id:"status",label:"Status"}];function A(){var o;const u=S(),s=h(),{id:c}=(s==null?void 0:s.state)||{},[m,d]=r.useState([]),[i,b]=r.useState(1),[p,N]=r.useState(0),j=[{label:"View / Edit",action:a=>{u(`/master-subject/edit/${a.id}`,{state:{...a,mode:"edit"}})},value:""},{label:"Chapter",action:a=>{u("/master-subject/chapter",{state:{...a,mode:"edit"}})},value:""}],f=a=>{b(a+1)},{data:e={},isSuccess:n}=L({role:x.ADMIN,categoryId:c,pageNumber:i},{skip:!c,refetchOnMountOrArgChange:!0});return r.useEffect(()=>{n&&(d((e==null?void 0:e.data)||[]),N((e==null?void 0:e.totalElements)||0))},[e,n]),t(T,{children:[t(g,{title:t(l,{direction:"row",alignItems:"center",justifyContent:"space-between",gap:"16px",children:[t(v,{component:"h5",fontWeight:"bold",variant:"moduleTitle",children:"Master Subject"},void 0,!1,{fileName:"/usr/src/app/src/module/MasterSubject/index.jsx",lineNumber:70,columnNumber:13},this),t(M,{component:C,to:"/master-Subject/add",state:{categoryId:(o=s==null?void 0:s.state)==null?void 0:o.id},children:"Add New"},void 0,!1,{fileName:"/usr/src/app/src/module/MasterSubject/index.jsx",lineNumber:73,columnNumber:13},this)]},void 0,!0,{fileName:"/usr/src/app/src/module/MasterSubject/index.jsx",lineNumber:64,columnNumber:9},this),disableTypography:!0},void 0,!1,{fileName:"/usr/src/app/src/module/MasterSubject/index.jsx",lineNumber:62,columnNumber:7},this),t(l,{direction:"column",gap:"12px",component:y,children:t(E,{columns:I,data:m,action:j,onPageChange:f,totalElement:p,page:i-1,rowsPerPage:300},void 0,!1,{fileName:"/usr/src/app/src/module/MasterSubject/index.jsx",lineNumber:85,columnNumber:9},this)},void 0,!1,{fileName:"/usr/src/app/src/module/MasterSubject/index.jsx",lineNumber:84,columnNumber:7},this)]},void 0,!0,{fileName:"/usr/src/app/src/module/MasterSubject/index.jsx",lineNumber:61,columnNumber:5},this)}export{A as MasterSubject,A 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.