PageSourceSearch

https://thinkproedge.com/_next/static/chunks/pages/admin/student-lots-19a9e1c6547707b7.js

js thinkproedge.com collected 2026-10-02 01:49:11 UTC 13,221 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[388],{53850:function(e,t,n){"use strict";n.d(t,{W:function(){return d}});var r=n(90063),o=n(55284),i=n(94915),a=n(61918),s=n(84461),c=n(73808),l=n(67294);function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}var d=(0,r.G)(((e,t)=>{var n=(0,o.Lr)(e),{className:r,centerContent:c}=n,d=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(n,["className","centerContent"]),f=(0,i.m)("Container",e);return l.createElement(a.m$.div,u({ref:t,className:(0,s.cx)("chakra-container",r)},d,{__css:u({},f,c&&{display:"flex",flexDirection:"column",alignItems:"center"})}))}));c.Ts&&(d.displayName="Container")},24003:function(e,t,n){"use strict";n.d(t,{i:function(){return f}});var r=n(90063),o=n(94915),i=n(55284),a=n(61918),s=n(84461),c=n(73808),l=n(67294);function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}function d(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var f=(0,r.G)(((e,t)=>{var n=(0,o.m)("Divider",e),{borderLeftWidth:r,borderBottomWidth:c,borderTopWidth:f,borderRightWidth:h,borderWidth:p,borderStyle:m,borderColor:g}=n,x=d(n,["borderLeftWidth","borderBottomWidth","borderTopWidth","borderRightWidth","borderWidth","borderStyle","borderColor"]),v=(0,i.Lr)(e),{className:b,orientation:y="horizontal",__css:j}=v,_=d(v,["className","orientation","__css"]),w={vertical:{borderLeftWidth:r||h||p||"1px",height:"100%"},horizontal:{borderBottomWidth:c||f||p||"1px",width:"100%"}};return l.createElement(a.m$.hr,u({ref:t,role:"separator","aria-orientation":y},_,{__css:u({},x,{border:"0",borderColor:g,borderStyle:m},w[y],j),className:(0,s.cx)("chakra-divider",b)}))}));c.Ts&&(f.displayName="Divider")},99262:function(e,t,n){"use strict";n.d(t,{dy:function(){return _},sc:function(){return O}});var r=n(29676),o=n(61918),i=n(90063),a=n(84461),s=n(73808),c=n(84441),l=n(75926),u=n(67294),d=n(70370);function f(){return f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(this,arguments)}var h={bottom:{motion:{y:"100%"},baseStyle:{maxWidth:"100vw",bottom:0,left:0,right:0}},top:{motion:{y:"-100%"},baseStyle:{maxWidth:"100vw",top:0,left:0,right:0}},left:{motion:{x:"-100%"},baseStyle:{width:"100%",left:0,top:0,bottom:0}},right:{motion:{x:"100%"},baseStyle:{width:"100%",right:0,top:0,bottom:0}}},p={exit:e=>{var t,{motion:n}=null!=(t=h[e])?t:{};return f({},n,{transition:{duration:.15,ease:d.L.easeInOut}})},enter:e=>{var t,{motion:n}=null!=(t=h[e])?t:{},[r]=n?Object.keys(n):["x"];return{[r]:0,transition:{type:"spring",damping:25,stiffness:180}}}},m=u.forwardRef(((e,t)=>{var n,{direction:r="right",style:o,unmountOnExit:i,in:s,className:d}=e,m=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["direction","style","unmountOnExit","in","className"]),{baseStyle:g}=null!=(n=h[r])?n:{},x=!i||s&&i;return u.createElement(c.M,{custom:r},x&&u.createElement(l.E.div,f({ref:t,initial:"exit",className:(0,a.cx)("chakra-slide",d),animate:s||i?"enter":"exit",exit:"exit",custom:r,variants:p,style:f({position:"fixed"},g,o)},m)))}));s.Ts&&(m.displayName="Slide");var g=n(74691),x=n(51641);function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(this,arguments)}function b(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var[y,j]=(0,g.kr)();function _(e){var t,{isOpen:n,onClose:o,placement:i="right",children:a}=e,s=b(e,["isOpen","onClose","placement","children"]),c=null==(t=(0,r.Fg)().components)?void 0:t.Drawer;return u.createElement(y,{value:{placement:i}},u.createElement(x.u_,v({isOpen:n,onClose:o,styleConfig:c},s),a))}var w=(0,o.m$)(m),O=(0,i.G)(((e,t)=>{var{className:n,children:i}=e,s=b(e,["className","children"]),{getDialogProps:c,getDialogContainerProps:l,isOpen:d}
1=(0,x.vR)(),f=c(s,t),h=l(),p=(0,a.cx)("chakra-modal__content",n),m=(0,r.yK)(),g=v({display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0},m.dialog),y=v({display:"flex",width:"100vw",height:"100vh",position:"fixed",left:0,top:0},m.dialogContainer),{placement:_}=j();return u.createElement(o.m$.div,v({},h,{className:"chakra-modal__content-container",__css:y}),u.createElement(x.MI,null,u.createElement(w,v({direction:_,in:d,className:p},f,{__css:g}),i)))}));s.Ts&&(O.displayName="DrawerContent")},85728:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/student-lots",function(){return n(15706)}])},7194:function(e,t,n){"use strict";var r=n(85893),o=n(48764),i=n(25543),a=n(3689),s=(0,o.B)({colors:{brand:{primary:"#f15a2d",secondary:"#372d63"}},styles:{global:{}},components:{Button:{variants:{theme:{bg:"#f15a2d",color:"white",border:"2px solid #f15a2d",_hover:{bg:"white",color:"#f15a2d"},_active:{bg:"white",color:"#f15a2d"}}}},Menu:{parts:["menu","item"],baseStyle:{menu:{},item:{fontWeight:"medium",lineHeight:"normal",color:"gray.600",fontSize:"0.95rem",pl:5,py:3}}}}});t.Z=function(e){var t=e.children;return(0,r.jsxs)(i.x,{theme:s,children:[(0,r.jsx)(a.m,{}),t]})}},97696:function(e,t,n){"use strict";var r=n(26042),o=n(69396),i=n(85893),a=n(67294),s=n(79521),c=n(48017),l=n(83346),u=n(40980),d=n(64115),f=n(38448),h=n(38104),p=n(85105),m=n(79887),g=n(94096),x=n(87341),v=n(9345),b=n(92362),y=n(84646),j=n(7869),_=n.n(j);t.Z=function(e){var t=e.title,n=e.columnsArray,j=e.dataArray,w=e.customPageSize,O=(0,a.useRef)(null),S=a.useMemo((function(){return j}),[]),P=a.useMemo((function(){return n}),[]),Z=(0,s.useTable)({columns:P,data:S,initialState:{pageSize:w||10}},s.useGlobalFilter,s.useSortBy,s.usePagination),C=Z.getTableProps,N=Z.getTableBodyProps,E=Z.headerGroups,k=Z.prepareRow,T=Z.rows,W=Z.page,R=Z.canPreviousPage,z=Z.canNextPage,L=(Z.pageOptions,Z.pageCount,Z.gotoPage,Z.nextPage),D=Z.previousPage,H=Z.setPageSize,M=Z.state,B=M.pageIndex,A=M.pageSize,I=Z.setGlobalFilter,G=(0,a.useState)(""),$=G[0],F=G[1],X=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=(0,a.useState)(e),r=n[0],o=n[1];return(0,a.useEffect)((function(){var n=setTimeout((function(){o(e)}),t);return function(){clearTimeout(n)}}),[e,t]),r}($,200);(0,a.useEffect)((function(){I(X||void 0)}),[X]);return(0,i.jsxs)(c.xu,{mx:"5",my:"8",children:[(0,i.jsx)(d.x,{fontSize:"xl",children:t}),(0,i.jsxs)(v.r,{mt:"5",templateColumns:"repeat(6, 1fr)",gap:[3,6,6],children:[(0,i.jsx)(v.P,{colSpan:[6,2,1],children:(0,i.jsxs)(f.M,{children:["Show",(0,i.jsx)(h.Ph,{mx:"1",value:A,onChange:function(e){H(Number(e.target.value))},children:[5,10,20,30,40,50].map((function(e){return(0,i.jsx)("option",{value:e,children:e},e)}))}),"entries"]})}),(0,i.jsx)(v.P,{colSpan:[6,2,3],children:(0,i.jsx)(f.M,{children:(0,i.jsx)(p.z,{variant:"theme",onClick:function(){var e=[];T.map((function(t){var r=t.values,o=[];n.map((function(e){0!=e.exportToExcel&&(o[e.Header]=r[e.accessor])})),e.push(o)}));var t=_().utils.book_new(),r=_().utils.json_to_sheet(e);_().utils.book_append_sheet(t,r,["Sheet 1"]),_().writeFile(t,"export.xlsx")},children:"Export to Excel"})})}),(0,i.jsx)(v.P,{colSpan:[6,2,2],children:(0,i.jsxs)(f.M,{children:["Search:",(0,i.jsx)(m.I,{ml:"2",type:"text",onChange:function(e){return F(e.target.value)}})]})})]}),(0,i.jsx)(c.xu,{my:"3",borderWidth:"1px",borderRadius:"lg",overflow:"auto",children:(0,i.jsxs)(l.iA,(0,o.Z)((0,r.Z)({ref:O},C()),{children:[(0,i.jsx)(l.hr,{children:E.map((function(e){return(0,i.jsx)(l.Tr,(0,o.Z)((0,r.Z)({},e.getHeaderGroupProps()),{children:e.headers.map((function(e){return(0,i.jsxs)(l.Th,(0,o.Z)((0,r.Z)({},e.getHeaderProps(e.getSortByToggleProps())),{isNumeric:e.isNumeric,style:{width:e.width?e.width:"100%"},children:[e.render("Header"),(0,i.jsx)(u.chakra.span,{pl:"4",children:e.isSorted?e.isSortedDesc?(0,i.jsx)(b.A,{"aria-label":"sorted descending"}):(0,i.jsx)(y.$,{"aria-label":"sorted ascending"}):null})]}))}))}))}))}),(0,i.jsx)(l.p3,(0,o.Z)((0,r.Z)({},N()),{children:0==T.length?(0,i.jsx)(l.Tr,{children:(0,i.jsx)(l.Td,{colSpan:n.length,children:(0,i.jsx)(f.M,{children:"No data available"})})}):W.map((function(e,t){return k(e),(0,i.jsx)(l.Tr,(0,o.Z)((0,r.Z)({}
1,e.getRowProps()),{children:e.cells.map((function(e){return(0,i.jsx)(l.Td,(0,o.Z)((0,r.Z)({},e.getCellProps()),{isNumeric:e.column.isNumeric,children:e.render("Cell")}))}))}))}))}))]}))}),(0,i.jsxs)(g.k,{mt:"3",children:[(0,i.jsxs)(d.x,{children:["Showing ",B*A+1," to"," ",B*A+W.length," of ",T.length," entries"]}),(0,i.jsx)(x.L,{}),(0,i.jsx)(p.z,{mr:"2",onClick:function(){return D()},disabled:!R,children:"Previous"}),(0,i.jsx)(p.z,{onClick:function(){return L()},disabled:!z,children:"Next"})]})]})}},15706:function(e,t,n){"use strict";n.r(t);var r=n(4111),o=n(51438),i=n(52951),a=n(14924),s=n(88029),c=n(60460),l=n(85893),u=n(67294),d=n(70978),f=n(11163),h=n.n(f),p=n(53850),m=n(48017),g=n(64115),x=n(24003),v=n(38448),b=n(85105),y=n(45754),j=n(7194),_=n(64790),w=n(97696),O=n(17289),S=n(41664),P=n.n(S),Z=function(e){(0,s.Z)(n,e);var t=(0,c.Z)(n);function n(){var e;return(0,o.Z)(this,n),e=t.apply(this,arguments),(0,a.Z)((0,r.Z)(e),"state",{loggedIn:!1,loading:!1,studentLots:[],columns:[{Header:"LOT ID",accessor:"id"},{Header:"Date",accessor:"added_date"},{Header:"Student Count",accessor:"count"},{Header:"Admission Code",accessor:"admission_code.admission_code"},{Header:"Action",accessor:"action"}]}),e}return(0,i.Z)(n,[{key:"componentDidMount",value:function(){var e=this;if(!(0,d.jl)("admin"))return h().push("/login");this.setState({loggedIn:!0,loading:!0}),(0,O.Tmf)().then((function(t){var n=t.data;n.forEach((function(e){e.action=(0,l.jsx)(P(),{href:"/admin/student-lots/".concat(e.id),children:(0,l.jsx)(b.z,{children:"View"})})})),e.setState({studentLots:n,loading:!1})})).catch((function(e){console.log("Error in getAllStudentLots: ",e)}))}},{key:"render",value:function(){var e;return this.state.loggedIn&&(0,l.jsx)(j.Z,{children:(0,l.jsx)(_.Z,{children:(0,l.jsx)(p.W,(e={bg:"gray.100",minWidth:"full",minHeight:"full",p:[2,10,10]},(0,a.Z)(e,"minHeight","100vh"),(0,a.Z)(e,"children",(0,l.jsxs)(m.xu,{bg:"white",p:"7",border:"1px",borderColor:"gray.200",borderRadius:"5",children:[(0,l.jsx)(g.x,{fontSize:"2xl",children:"Student Lots"}),(0,l.jsx)(x.i,{my:"4"}),this.state.loading?(0,l.jsx)(v.M,{mt:"5",children:(0,l.jsx)(y.$,{})}):(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(w.Z,{title:"",columnsArray:this.state.columns,dataArray:this.state.studentLots})})]})),e))})})}}]),n}(u.Component);t.default=Z},18685:function(){},20067:function(){},55382:function(){},72095:function(){},72061:function(){},61219:function(){},4111:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},51438:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return r}})},52951:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,{Z:function(){return o}})},60460:function(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}function o(e){return r(e)}n.d(t,{Z:function(){return s}});var i=n(4111);function a(e,t){return!t||"object"!==((n=t)&&n.constructor===Symbol?"symbol":typeof n)&&"function"!==typeof t?(0,i.Z)(e):t;var n}function s(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=o(e);if(t){var i=o(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return a(this,n)}}},88029:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}n.d(t,{Z:function(){return o}})}},function(e){e.O(0,[2599,3524,4849,5844,9676,7612,5543,9667,9697,2328,4005,9015,1641,9521,1664,9690,9092,4790,9774,2888,179],(function(){return t=85728,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.