PageSourceSearch

https://thinkproedge.com/_next/static/chunks/pages/admin/practice-questions-759fb95c2ff7881b.js

js thinkproedge.com collected 2026-10-02 01:48:24 UTC 4,356 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9327],{49444:function(e,t,r){"use strict";r.d(t,{r:function(){return d}});var n=r(90063),s=r(94915),i=r(55284),a=r(61918),c=r(84461),o=r(73808),u=r(67294);function l(){return l=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},l.apply(this,arguments)}var d=(0,n.G)(((e,t)=>{var r=(0,s.m)("Link",e),n=(0,i.Lr)(e),{className:o,isExternal:d}=n,h=function(e,t){if(null==e)return{};var r,n,s={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(s[r]=e[r]);return s}(n,["className","isExternal"]);return u.createElement(a.m$.a,l({target:d?"_blank":void 0,rel:d?"noopener noreferrer":void 0,ref:t,className:(0,c.cx)("chakra-link",o)},h,{__css:r}))}));o.Ts&&(d.displayName="Link")},63086:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/practice-questions",function(){return r(11907)}])},11907:function(e,t,r){"use strict";r.r(t);var n=r(4111),s=r(47568),i=r(51438),a=r(52951),c=r(14924),o=r(88029),u=r(60460),l=r(10092),d=r(85893),h=r(67294),p=r(70978),f=r(11163),m=r.n(f),g=r(49444),v=r(53850),x=r(48017),_=r(64115),j=r(24003),y=r(38448),b=r(85105),Z=r(45754),w=r(7194),P=r(64790),k=r(84238),N=r(17289),Q=r(97696),S=r(46737),A=r.n(S),E=r(30381),H=r.n(E),O=function(e){(0,o.Z)(r,e);var t=(0,u.Z)(r);function r(){var e;(0,i.Z)(this,r),e=t.apply(this,arguments),(0,c.Z)((0,n.Z)(e),"state",{loggedIn:!1,loading:!1,viewPracticeQuestions:!1,name:"",structurePracticeQuestions:[],CDN:"https://cdn.thinkproedge.com/",columns:[{Header:"S.No.",accessor:"index"},{Header:"Topic Type",accessor:"topic_type"},{Header:"Topic Name",accessor:"topic_name"},{Header:"Title",accessor:"title"},{Header:"No. of questions",accessor:"questions"},{Header:"Created At",accessor:"createdAt"},{Header:"Action",accessor:"action"}]});var a=(0,n.Z)(e);return(0,c.Z)((0,n.Z)(e),"handleSubmit",function(){var e=(0,s.Z)((function(e,t,r){var n,s,i,c;return(0,l.__generator)(this,(function(o){switch(o.label){case 0:a.setState({loading:!0,viewPracticeQuestions:!1,structurePracticeQuestions:[]}),n=[],o.label=1;case 1:return o.trys.push([1,9,,10]),"course"!=e?[3,6]:0!=t?[3,3]:[4,(0,N.FcD)()];case 2:return s=o.sent(),[3,5];case 3:return[4,(0,N.jI9)(t)];case 4:s=o.sent(),o.label=5;case 5:return[3,8];case 6:return[4,(0,N.W2$)(t)];case 7:s=o.sent(),o.label=8;case 8:return n=s.data,[3,10];case 9:return i=o.sent(),console.log(i,i.response),a.setState({loading:!1}),A()("Error!",i.response.data,"error"),[2];case 10:return console.log(n),a.setState({structurePracticeQuestions:[],name:r}),c=n.map((function(e,t){return{index:t+1,topic_type:e.course_structure.structure_type.name,topic_name:e.course_structure.name,title:e.title,questions:e.questions,createdAt:H()(e.createdAt).format("DD MMMM, YYYY"),action:(0,d.jsx)(g.r,{href:"/admin/practice-questions/"+e.id,children:(0,d.jsx)(b.z,{children:"View"})})}})),a.setState({structurePracticeQuestions:c}),a.setState({loading:!1,viewPracticeQuestions:!0}),[2]}}))}));return function(t,r,n){return e.apply(this,arguments)}}()),e}return(0,a.Z)(r,[{key:"componentDidMount",value:function(){if(!(0,p.jl)("admin"))return m().push("/login");this.setState({loggedIn:!0})}},{key:"render",value:function(){var e;return this.state.loggedIn&&(0,d.jsx)(w.Z,{children:(0,d.jsx)(P.Z,{children:(0,d.jsx)(v.W,(e={bg:"gray.100",minWidth:"full",minHeight:"full",p:[2,10,10]},(0,c.Z)(e,"minHeight","100vh"),(0,c.Z)(e,"children",(0,d.jsxs)(x.xu,{bg:"white",p:"7",border:"1px",borderColor:"gray.200",borderRadius:"5",children:[(0,d.jsx)(_.x,{fontSize:"2xl",children:"View All Practice Questions"}),(0,d.jsx)(j.i,{my:"4"}),(0,d.jsx)(_.x,{children:"Filter:"}),(0,d.jsx)(k.Z,{onSubmit:this.handleSubmit}),this.state.loading&&(0,d.jsx)(y.M,{mt:"5",children:(0,d.jsx)(Z.$,{})}),this.state.viewPracticeQuestions&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(j.i,{my:"4"}),(0,d.jsx)(Q.Z,{title:"Available Practice Questions for "+this.state.name,columnsArray:this.state.columns,dataArray:this.state.structurePracticeQuestions})]})]})),e))})})}}]),r}(h.Component);t.default=O}},function(e){e.O(0,[4885,2599,3524,4849,5844,9676,7612,5543,9667,9697,2328,4005,9015,1641,6737,9521,9690,9092,4790,3180,9774,2888,179],(function(){return t=63086,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.