PageSourceSearch

https://thinkproedge.com/_next/static/chunks/pages/admin/jobedge/content-engagement-8c6401493d47282b.js

js thinkproedge.com collected 2026-10-02 01:48:17 UTC 16,328 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4514],{53850:function(e,t,r){"use strict";r.d(t,{W:function(){return d}});var n=r(90063),o=r(55284),i=r(94915),a=r(61918),s=r(84461),l=r(73808),c=r(67294);function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}var d=(0,n.G)(((e,t)=>{var r=(0,o.Lr)(e),{className:n,centerContent:l}=r,d=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(r,["className","centerContent"]),f=(0,i.m)("Container",e);return c.createElement(a.m$.div,u({ref:t,className:(0,s.cx)("chakra-container",n)},d,{__css:u({},f,l&&{display:"flex",flexDirection:"column",alignItems:"center"})}))}));l.Ts&&(d.displayName="Container")},24003:function(e,t,r){"use strict";r.d(t,{i:function(){return f}});var n=r(90063),o=r(94915),i=r(55284),a=r(61918),s=r(84461),l=r(73808),c=r(67294);function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}function d(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var f=(0,n.G)(((e,t)=>{var r=(0,o.m)("Divider",e),{borderLeftWidth:n,borderBottomWidth:l,borderTopWidth:f,borderRightWidth:h,borderWidth:p,borderStyle:m,borderColor:x}=r,g=d(r,["borderLeftWidth","borderBottomWidth","borderTopWidth","borderRightWidth","borderWidth","borderStyle","borderColor"]),b=(0,i.Lr)(e),{className:v,orientation:y="horizontal",__css:j}=b,_=d(b,["className","orientation","__css"]),w={vertical:{borderLeftWidth:n||h||p||"1px",height:"100%"},horizontal:{borderBottomWidth:l||f||p||"1px",width:"100%"}};return c.createElement(a.m$.hr,u({ref:t,role:"separator","aria-orientation":y},_,{__css:u({},g,{border:"0",borderColor:x,borderStyle:m},w[y],j),className:(0,s.cx)("chakra-divider",v)}))}));l.Ts&&(f.displayName="Divider")},99262:function(e,t,r){"use strict";r.d(t,{dy:function(){return _},sc:function(){return D}});var n=r(29676),o=r(61918),i=r(90063),a=r(84461),s=r(73808),l=r(84441),c=r(75926),u=r(67294),d=r(70370);function f(){return f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}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:r}=null!=(t=h[e])?t:{};return f({},r,{transition:{duration:.15,ease:d.L.easeInOut}})},enter:e=>{var t,{motion:r}=null!=(t=h[e])?t:{},[n]=r?Object.keys(r):["x"];return{[n]:0,transition:{type:"spring",damping:25,stiffness:180}}}},m=u.forwardRef(((e,t)=>{var r,{direction:n="right",style:o,unmountOnExit:i,in:s,className:d}=e,m=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,["direction","style","unmountOnExit","in","className"]),{baseStyle:x}=null!=(r=h[n])?r:{},g=!i||s&&i;return u.createElement(l.M,{custom:n},g&&u.createElement(c.E.div,f({ref:t,initial:"exit",className:(0,a.cx)("chakra-slide",d),animate:s||i?"enter":"exit",exit:"exit",custom:n,variants:p,style:f({position:"fixed"},x,o)},m)))}));s.Ts&&(m.displayName="Slide");var x=r(74691),g=r(51641);function b(){return b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},b.apply(this,arguments)}function v(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var[y,j]=(0,x.kr)();function _(e){var t,{isOpen:r,onClose:o,placement:i="right",children:a}=e,s=v(e,["isOpen","onClose","placement","children"]),l=null==(t=(0,n.Fg)().c
1omponents)?void 0:t.Drawer;return u.createElement(y,{value:{placement:i}},u.createElement(g.u_,b({isOpen:r,onClose:o,styleConfig:l},s),a))}var w=(0,o.m$)(m),D=(0,i.G)(((e,t)=>{var{className:r,children:i}=e,s=v(e,["className","children"]),{getDialogProps:l,getDialogContainerProps:c,isOpen:d}=(0,g.vR)(),f=l(s,t),h=c(),p=(0,a.cx)("chakra-modal__content",r),m=(0,n.yK)(),x=b({display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0},m.dialog),y=b({display:"flex",width:"100vw",height:"100vh",position:"fixed",left:0,top:0},m.dialogContainer),{placement:_}=j();return u.createElement(o.m$.div,b({},h,{className:"chakra-modal__content-container",__css:y}),u.createElement(g.MI,null,u.createElement(w,b({direction:_,in:d,className:p},f,{__css:x}),i)))}));s.Ts&&(D.displayName="DrawerContent")},37363:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/jobedge/content-engagement",function(){return r(84613)}])},7194:function(e,t,r){"use strict";var n=r(85893),o=r(48764),i=r(25543),a=r(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,n.jsxs)(i.x,{theme:s,children:[(0,n.jsx)(a.m,{}),t]})}},97696:function(e,t,r){"use strict";var n=r(26042),o=r(69396),i=r(85893),a=r(67294),s=r(79521),l=r(48017),c=r(83346),u=r(40980),d=r(64115),f=r(38448),h=r(38104),p=r(85105),m=r(79887),x=r(94096),g=r(87341),b=r(9345),v=r(92362),y=r(84646),j=r(7869),_=r.n(j);t.Z=function(e){var t=e.title,r=e.columnsArray,j=e.dataArray,w=e.customPageSize,D=(0,a.useRef)(null),S=a.useMemo((function(){return j}),[]),Z=a.useMemo((function(){return r}),[]),O=(0,s.useTable)({columns:Z,data:S,initialState:{pageSize:w||10}},s.useGlobalFilter,s.useSortBy,s.usePagination),P=O.getTableProps,C=O.getTableBodyProps,k=O.headerGroups,N=O.prepareRow,E=O.rows,T=O.page,z=O.canPreviousPage,W=O.canNextPage,M=(O.pageOptions,O.pageCount,O.gotoPage,O.nextPage),R=O.previousPage,H=O.setPageSize,Y=O.state,B=Y.pageIndex,I=Y.pageSize,G=O.setGlobalFilter,A=(0,a.useState)(""),F=A[0],L=A[1],$=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,r=(0,a.useState)(e),n=r[0],o=r[1];return(0,a.useEffect)((function(){var r=setTimeout((function(){o(e)}),t);return function(){clearTimeout(r)}}),[e,t]),n}(F,200);(0,a.useEffect)((function(){G($||void 0)}),[$]);return(0,i.jsxs)(l.xu,{mx:"5",my:"8",children:[(0,i.jsx)(d.x,{fontSize:"xl",children:t}),(0,i.jsxs)(b.r,{mt:"5",templateColumns:"repeat(6, 1fr)",gap:[3,6,6],children:[(0,i.jsx)(b.P,{colSpan:[6,2,1],children:(0,i.jsxs)(f.M,{children:["Show",(0,i.jsx)(h.Ph,{mx:"1",value:I,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)(b.P,{colSpan:[6,2,3],children:(0,i.jsx)(f.M,{children:(0,i.jsx)(p.z,{variant:"theme",onClick:function(){var e=[];E.map((function(t){var n=t.values,o=[];r.map((function(e){0!=e.exportToExcel&&(o[e.Header]=n[e.accessor])})),e.push(o)}));var t=_().utils.book_new(),n=_().utils.json_to_sheet(e);_().utils.book_append_sheet(t,n,["Sheet 1"]),_().writeFile(t,"export.xlsx")},children:"Export to Excel"})})}),(0,i.jsx)(b.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 L(e.target.value)}})]})})]}),(0,i.jsx)(l.xu,{my:"3",borderWidth:"1px",borderRadius:"lg",overflow:"auto",children:(0,i.jsxs)(c.iA,(0,o.Z)((0,n.Z)({ref:D},P()),{children:[(0,i.jsx)(c.hr,{children:k.map((function(e){return(0,i.jsx)(c.Tr,(0,o.Z)((0,n.Z)({},e.getHeaderGroupProps()),{children:e.headers.map((function(e){return(0,i.jsxs)(c.Th,(0,o.Z)((0,n.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)(v.A,{"aria-label":"sorted descending"}):(0,i.jsx)(y.$,{"aria-label":"sorted ascending"}):null})]}))}))}))}))}),(0,i.jsx)(c.p3,(0,o.Z)((0,n.Z)({},C()),{children:0==E.length?(0,i.jsx)(c.Tr,{children:(0,i.jsx)(c.Td,{colSpan:r.length,children:(0,i.jsx)(f.M,{children:"No data available"})})}):T.map((function(e,t){return N(e),(0,i.jsx)(c.Tr,(0,o.Z)((0,n.Z)({}
1,e.getRowProps()),{children:e.cells.map((function(e){return(0,i.jsx)(c.Td,(0,o.Z)((0,n.Z)({},e.getCellProps()),{isNumeric:e.column.isNumeric,children:e.render("Cell")}))}))}))}))}))]}))}),(0,i.jsxs)(x.k,{mt:"3",children:[(0,i.jsxs)(d.x,{children:["Showing ",B*I+1," to"," ",B*I+T.length," of ",E.length," entries"]}),(0,i.jsx)(g.L,{}),(0,i.jsx)(p.z,{mr:"2",onClick:function(){return R()},disabled:!z,children:"Previous"}),(0,i.jsx)(p.z,{onClick:function(){return M()},disabled:!W,children:"Next"})]})]})}},38455:function(e,t,r){"use strict";var n=r(85893),o=r(67294),i=r(9198),a=r.n(i);r(18698);t.Z=function(e){var t=(0,o.useState)(e.selectedDate?new Date(e.selectedDate):new Date),r=t[0],i=t[1],s=e.setDateInParent;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a(),{selected:r,onChange:function(e){i(e),s(e)}}),(0,n.jsx)("style",{children:"\n        .react-datepicker__input-container input {\n          display: block;\n          width: 100%;\n          height: calc(1.5em + .75rem + 2px);\n          padding: .375rem .75rem;\n          font-size: 1rem;\n          font-weight: 400;\n          line-height: 1.5;\n          color: #495057;\n          background-color: #fff;\n          background-clip: padding-box;\n          border: 1px solid #ced4da;\n          border-radius: .25rem;\n          transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;\n          \n        }\n      "})]})}},84613:function(e,t,r){"use strict";r.r(t);var n=r(4111),o=r(47568),i=r(51438),a=r(52951),s=r(14924),l=r(88029),c=r(60460),u=r(10092),d=r(85893),f=r(67294),h=r(11163),p=r.n(h),m=r(70978),x=r(64790),g=r(7194),b=r(53850),v=r(48017),y=r(64115),j=r(24003),_=r(9345),w=r(85105),D=r(38448),S=r(45754),Z=r(97696),O=r(38455),P=r(30381),C=r.n(P),k=r(17289),N=r(46737),E=r.n(N),T=function(e){(0,l.Z)(r,e);var t=(0,c.Z)(r);function r(){var e,a;(0,i.Z)(this,r),e=t.apply(this,arguments),(0,s.Z)((0,n.Z)(e),"state",(a={loggedIn:!1,loading:!1},(0,s.Z)(a,"loading",!1),(0,s.Z)(a,"viewData",!1),(0,s.Z)(a,"studentData",[]),(0,s.Z)(a,"CDN","https://cdn.thinkproedge.com/"),(0,s.Z)(a,"startDate",C()().format("YYYY-MM-DD")),(0,s.Z)(a,"endDate",C()().format("YYYY-MM-DD")),(0,s.Z)(a,"jobStatus",""),(0,s.Z)(a,"columns",[{Header:"Date",accessor:"date"},{Header:"IRT Started",accessor:"irt_started"},{Header:"Played Game Quiz",accessor:"played_game_quiz"},{Header:"Read Weekly Bulletin",accessor:"read_weekly_bulletin"},{Header:"Opened Blogs",accessor:"opened_blogs"},{Header:"Opened ProNotes",accessor:"opened_pronotes"},{Header:"Attempted ProQuiz",accessor:"attempted_proquiz"},{Header:"Opened a Job",accessor:"opened_a_job"},{Header:"Downloaded Resume",accessor:"downloaded_resume"},{Header:"Completed Profile",accessor:"completed_profile"}]),a)),(0,s.Z)((0,n.Z)(e),"setStartDate",(function(t){t=C()(t).format("YYYY-MM-DD"),e.setState({startDate:t})})),(0,s.Z)((0,n.Z)(e),"setEndDate",(function(t){t=C()(t).format("YYYY-MM-DD"),e.setState({endDate:t})}));var l=(0,n.Z)(e);return(0,s.Z)((0,n.Z)(e),"handleSubmit",(0,o.Z)((function(){return(0,u.__generator)(this,(function(e){return C()(l.state.endDate).diff(C()(l.state.startDate),"days")>7?[2,E()("Error!","Date range cannot exceed 7 days","error")]:(l.setState({loading:!0,viewData:!1}),(0,k.Cme)(l.state.startDate,l.state.endDate).then((function(e){var t=e.data.map((function(e,t){return{date:e.date,irt_started:e.results[1].first_time+"/"+e.results[1].total,played_game_quiz:e.results[2].first_time+"/"+e.results[2].total,read_weekly_bulletin:e.results[3].first_time+"/"+e.results[3].total,opened_blogs:e.results[4].first_time+"/"+e.results[4].total,opened_pronotes:e.results[5].first_time+"/"+e.results[5].total,attempted_proquiz:e.results[6].first_time+"/"+e.results[6].total,opened_a_job:e.results[7].first_time+"/"+e.results[7].total,downloaded_resume:e.results[8].first_time+"/"+e.results[8].total,completed_profile:e.results[9].first_time+"/"+e.results[9].total}}));l.setState({studentData:t,viewData:!0,loading:!1})})).catch((function(e){console.log(e)})),[2])}))}))),e}return(0,a.Z)(r,[{key:"componentDidMount",value:function(){if(!(0,m.jl)("admin"))return p().push("/login");this.setState({loggedIn:!0})}},{key:"render",value:function(){return this.state.loggedIn&&(0,d.jsx)(g.Z,{children:(0,d.jsx)(x.Z,{children:(0,d.jsx)(b.W,{bg:"gray.100",minWidth:"full",minHeight:"full",p:[2,10,10],children:(0,d.jsxs)(v.xu,{bg:"white",p:"7",border:"1px",borderColor:"gray.200",borderRadius:"5",children:[(0,d.jsx)(y.x,{fontSize:"2xl",children:"Content Engagement Report"}),(0,d.jsx)(j.i,{my:"4"}),(0,d.jsx)(y.x,{children:"Filter:"}),(0,d.jsx)(v.xu,{p:"5",children:(0,d.jsxs)(_.r,{templateColumns:"repeat(6, 1fr)",gap:"6",children:[(0,d.jsxs)(_.P,{colSpan:[6,3,1],children:[(0,d.jsx)(y.x,{children:"Start Date: "}
1),(0,d.jsx)(O.Z,{selectedDate:this.state.startDate,setDateInParent:this.setStartDate})]}),(0,d.jsxs)(_.P,{colSpan:[6,3,1],children:[(0,d.jsx)(y.x,{children:"End Date: "}),(0,d.jsx)(O.Z,{setDateInParent:this.setEndDate})]}),(0,d.jsx)(_.P,{mx:"auto",mt:"auto",colSpan:[6,3,1],children:(0,d.jsx)(w.z,{variant:"theme",onClick:this.handleSubmit,children:"Submit"})})]})}),this.state.loading&&(0,d.jsx)(D.M,{mt:"5",children:(0,d.jsx)(S.$,{})}),this.state.viewData&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(j.i,{my:"4"}),(0,d.jsx)(Z.Z,{columnsArray:this.state.columns,dataArray:this.state.studentData})]})]})})})})}}]),r}(f.Component);t.default=T},18685:function(){},20067:function(){},55382:function(){},72095:function(){},72061:function(){},61219:function(){},4111:function(e,t,r){"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,{Z:function(){return n}})},51438:function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,{Z:function(){return n}})},52951:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}r.d(t,{Z:function(){return o}})},60460:function(e,t,r){"use strict";
1function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}function o(e){return n(e)}r.d(t,{Z:function(){return s}});var i=r(4111);function a(e,t){return!t||"object"!==((r=t)&&r.constructor===Symbol?"symbol":typeof r)&&"function"!==typeof t?(0,i.Z)(e):t;var r}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 r,n=o(e);if(t){var i=o(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return a(this,r)}}},88029:function(e,t,r){"use strict";function n(e,t){return n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(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&&n(e,t)}r.d(t,{Z:function(){return o}})}},function(e){e.O(0,[4885,2599,3524,4849,5844,9676,7612,5543,9667,9697,2328,4005,9015,1641,6737,9521,9690,9092,8981,4544,4790,9774,2888,179],(function(){return t=37363,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.