1import{a as Je}from"./chunk-KTNUH6Q7.js";import{b as Ye}from"./chunk-4WNK4P4H.js";import"./chunk-RIL5PGQE.js";import"./chunk-O27N33U3.js";import"./chunk-BJWOJTZC.js";import"./chunk-RP2BTQHY.js";import"./chunk-LUCEHHO7.js";import"./chunk-HLYFGZCT.js";import{b as Ae}from"./chunk-M3FGSPES.js";import{a as ge}from"./chunk-AAPPULK7.js";import"./chunk-IF7WX336.js";import{a as Ke}from"./chunk-TQ4FIG6V.js";import{a as X}from"./chunk-D7UMYMCY.js";import{a as ce,b as Ge}from"./chunk-XFT76LM3.js";import{f as Ue}from"./chunk-OME7QJLL.js";import"./chunk-G6XYTQMQ.js";import"./chunk-FV7ZM2WZ.js";import"./chunk-U6SSASD4.js";import"./chunk-PCX2ON3C.js";import"./chunk-37YXYREU.js";import"./chunk-E2EY3FO5.js";import"./chunk-KMBGIYKO.js";import"./chunk-BQMWDA4F.js";import"./chunk-HANTXM7F.js";import{b as le}from"./chunk-AX2G6WXR.js";import"./chunk-6TA4DTF7.js";import{a as se}from"./chunk-GJAGXQZX.js";import"./chunk-7IMGMLDW.js";import"./chunk-KAIJ3F2A.js";import"./chunk-IJLCOAZF.js";import"./chunk-253O5CTU.js";import"./chunk-UOTKKO3D.js";import"./chunk-5DFMJBW7.js";import"./chunk-F4526N3D.js";import"./chunk-OMXQI42V.js";import"./chunk-3D6MWCMT.js";import"./chunk-3PMZJSMT.js";import"./chunk-2GT4AALN.js";import"./chunk-5IVKL24A.js";import"./chunk-7NLDXUER.js";import"./chunk-KYDX7PLZ.js";import"./chunk-7XKLRHXH.js";import"./chunk-VHIBGIIM.js";import"./chunk-WMQEI62T.js";import"./chunk-5RW73NUF.js";import"./chunk-GZSWBVH3.js";import"./chunk-M6FECGVJ.js";import"./chunk-BAV7CPFJ.js";import"./chunk-3BRPUZ4I.js";import"./chunk-3RK6DDJD.js";import"./chunk-BFZTJIT7.js";import"./chunk-TJFKCIBN.js";import"./chunk-RIY6QUVS.js";import"./chunk-B3PI2Z3Z.js";import"./chunk-MSUEAKA3.js";import"./chunk-GAS7A3L4.js";import"./chunk-M3EMDAFZ.js";import"./chunk-IJXHQE24.js";import"./chunk-NJY6F3LT.js";import{b as Re}from"./chunk-NYVKXIEZ.js";import"./chunk-DCKGCHBL.js";import{a as We,b as Be}from"./chunk-GHXZGKMT.js";import{d as je}from"./chunk-GQBR7ALB.js";import{o as Ne}from"./chunk-V3LPMSAU.js";import"./chunk-57P7T2RM.js";import"./chunk-7RWCIHFI.js";import"./chunk-TZPNXZD6.js";import"./chunk-FO7KVHCD.js";import"./chunk-DTHTIZ5C.js";import{A as J}from"./chunk-YS4QL7HL.js";import"./chunk-YAUIJJXG.js";import{a as ae}from"./chunk-NKG7VJI6.js";import"./chunk-SM333LUT.js";import"./chunk-GGQDMCFC.js";import"./chunk-2IEV6FMW.js";import"./chunk-TWZBNSN4.js";import"./chunk-55MTUKAX.js";import"./chunk-2HJPFN3S.js";import"./chunk-HIEQIAO6.js";import"./chunk-V3ARBFDV.js";import"./chunk-BYHBQABE.js";import"./chunk-6UAWTFFZ.js";import"./chunk-6NHZTPCS.js";import"./chunk-GWP52JAF.js";import"./chunk-SBK5GHAF.js";import"./chunk-C22WGXC3.js";import"./chunk-PYESVWFJ.js";import{a as ze}from"./chunk-ZCP5KTTM.js";import"./chunk-WAF2UKPS.js";import"./chunk-R3QRL77R.js";import"./chunk-G2NZI5V3.js";import"./chunk-62DYWMYT.js";import{a as G}from"./chunk-TEBKKOGH.js";import"./chunk-UMK6AGIS.js";import"./chunk-4QX5TW7Y.js";import"./chunk-7UZYWCAJ.js";import"./chunk-RIQOBMUM.js";import{j as oe,l as Ie,o as ue}from"./chunk-WX25E2HZ.js";import"./chunk-I5K7UUBW.js";import"./chunk-6BAE5M2B.js";import"./chunk-GPTXSPLI.js";import"./chunk-WSF7ZPQZ.js";import"./chunk-JYXQ74JV.js";import"./chunk-7A7LFYDL.js";import"./chunk-IQBBAARC.js";import"./chunk-CWWNL6ZE.js";import"./chunk-FSAIB72R.js";import{D as N,b as re,d as W,i as B,j as Qe,l as He,o as j,p as Le,q as Y,r as De}from"./chunk-X474JN3X.js";import"./chunk-OLSNRRTA.js";import"./chunk-GJNXMHJK.js";import"./chunk-CLUIJ6WE.js";import"./chunk-XWMJJGBF.js";import"./chunk-5G7452JJ.js";import"./chunk-O6NNHBDA.js";import{h as Ve}from"./chunk-VK3ZU6WP.js";import{G as qe,m as z,o as D,p as Q,u as Fe}from"./chunk-BRHCVEVW.js";import{Ed as C,Fa as ve,Fd as f,Ga as te,Gc as ye,Gd as v,Hb as ee,Ib as K,Ic as ke,Ja as be,Jb as we,Jc as Oe,Kd as ie,Ld as F,Me as A,O as P,Ob as s,Oc as l,Pc as o,Qa as p,Qc as i,Ra as _,Rc as x,Sd as _e,Tb as pe,Td as b,Ud as Ee,Vc as M,Wc as w,Zc as h,ac as k,db as mt,ed as g,f as de,ge as H,hc as E,hd as d,ib as Me,ic as ne,ld as Pe,mc as u,md as Se,nd as Te,rd as T,s as me,wd as a,xa as dt,xd as I,y as O,yd as q}from"./chunk-7DV7UWC6.js";import"./chunk-XS7UEPGF.js";import{a as Ce,b as fe}from"./chunk-IP4IO47A.js";mt();dt();A();var V=(()=>{class n{constructor(e){this.http=e,this.currentStep=0,this.url="/api/assesment/",this.SubmithackathoneForm=new de,this.SubmithackathoneSolution=new de}getAssesment(e){return this.http.post(this.url+"edit",e).pipe(O(r=>r)).pipe(P(this.handleError))}switchStep(e){this.currentStep=e}storeAssement(e,r){return this.http.post(this.url+"store/"+e,r).pipe(O(t=>t)).pipe(P(this.handleError))}uploadBanner(e,r){let t="/api/assesment/uploadBanner/"+e;return this.http.post(t,r).pipe(O(c=>c)).pipe(P(this.handleError))}createAssement(){return this.http.get(this.url+"create").pipe(O(e=>e)).pipe(P(this.handleError))}createAssesmentModule(e,r){return this.http.get(this.url+"create/module/"+e+"/"+r).pipe(O(t=>t)).pipe(P(this.handleError))}SaveAssementHackathoneModule(e,r,t,c){let y="/api/assesment/save/"+r+"/"+e+"/"+t;return this.http.post(y,c).pipe(O(S=>S)).pipe(P(this.handleError))}createHackQuestion(e){return console.log("fw"),this.http.get("/api/assesment/create/module/hackquestion/"+e).pi
1pe(O(r=>r)).pipe(P(this.handleError))}AssementModuleLIst(e){return this.http.get("/api/assesment/modules/list/"+e).pipe(O(r=>r)).pipe(P(this.handleError))}AssementModuleEdit(e,r){return this.http.get("/api/assesment/modules/"+r+"/edit/"+e).pipe(O(t=>t)).pipe(P(this.handleError))}gethackQuestionForEdit(e){return this.http.get("/api/assesment/hackquestion/edit/"+e).pipe(O(r=>r)).pipe(P(this.handleError))}SaveAssementModuleHackQuestion(e){return this.http.post("/api/assesment/save/hackathone/question",e).pipe(O(t=>t)).pipe(P(this.handleError))}deleteTestcase(e){return this.http.get("/api/assesment/hackquestion/delete/testcase/"+e).pipe(O(r=>r)).pipe(P(this.handleError))}AssementModuleDelete(e,r){return this.http.get("/api/assesment/modules/"+r+"/delete/"+e).pipe(O(t=>t)).pipe(P(this.handleError))}AssementModuleHackathoneQuestionDelete(e){return this.http.get("/api/assesment/modules/hackathone/delete/"+e).pipe(O(r=>r)).pipe(P(this.handleError))}SaveAssementModuleHackSolution(e){return this.http.post("/api/assesment/modules/hackthone/solution",e).pipe(O(r=>r)).pipe(P(this.handleError))}handleError(e){try{return me(e)}catch{return me(e)}}getAssesmentList(){return this.http.get("/api/assesment/list").pipe(O(e=>e)).pipe(P(this.handleError))}DeleteAssesment(e){return this.http.get("/api/assesment/delete/"+e).pipe(O(r=>r)).pipe(P(this.handleError))}static{this.\u0275fac=function(r){return new(r||n)(be(Ve))}}static{this.\u0275prov=ve({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();A();var ut=(n,m)=>({"has-img":n,"error-logo":m});function gt(n,m){if(n&1&&(M(0),x(1,"img",32),o(2,"div",33),a(3,"Change Banner"),i(),w()),n&2){let e=d(2);s(),l("src",ie(e.assesmentForm.banner==null?null:e.assesmentForm.banner.url),K)}}function xt(n,m){n&1&&(o(0,"i",34),a(1,"cloud_upload"),i(),o(2,"span"),a(3,"Click here for upload a banner"),i(),o(4,"div",35)(5,"p"),a(6,"Use square image only"),i(),o(7,"p"),a(8,"Max size of image is 5MB"),i(),o(9,"p"),a(10,"Min aspect ratio 1920x560(px)"),i()())}function ht(n,m){if(n&1&&(o(0,"p",36),a(1),i()),n&2){let e=d(2);s(),q(" ",e.error.banner.message," ")}}function Ct(n,m){if(n&1){let e=h();o(0,"div",5)(1,"div",6,0)(3,"app-text-input",7),v("valueChange",function(t){p(e);let c=d();return f(c.assesmentForm.title,t)||(c.assesmentForm.title=t),_(t)}),g("errorStateStatus",function(t){p(e);let c=T(2);return _(c.validateFormState(t))}),i(),o(4,"div",8)(5,"div",9)(6,"h3",10),a(7,"Assesment Description"),i()(),o(8,"simple-tiny",11,1),v("contentChange",function(t){p(e);let c=d();return f(c.assesmentForm.title,t)||(c.assesmentForm.title=t),_(t)}),i()(),o(10,"div",8)(11,"div",9)(12,"h3",10),a(13,"Assesment Rules"),i()(),o(14,"simple-tiny",11,1),v("contentChange",function(t){p(e);let c=d();return f(c.assesmentForm.rules,t)||(c.assesmentForm.rules=t),_(t)}),i()(),o(16,"div",8)(17,"div",12)(18,"h3",10),a(19,"Upload Banner"),i(),o(20,"p",13),a(21," Recommended image resolution is 1920x560 "),i(),o(22,"label",14)(23,"input",15),g("change",function(t){p(e);let c=d();return _(c.getBanner(t))}),i(),u(24,gt,4,2,"ng-container",16)(25,xt,11,0,"ng-template",null,2,H),o(27,"span",17),a(28,"*Required"),i()(),u(29,ht,2,1,"p",18),i()(),o(30,"div",19)(31,"label",20),a(32," Duration (hh:mm:ss) "),o(33,"sup"),a(34,"*"),i()(),o(35,"input",21,3),v("ngModelChange",function(t){p(e);let c=d();return f(c.assesmentForm.duration,t)||(c.assesmentForm.duration=t),_(t)}),i()(),o(37,"div",22)(38,"div",12)(39,"h3",10),a(40,"Assessment Type"),i()(),o(41,"div",23)(42,"div",24)(43,"input",25),v("ngModelChange",function(t){p(e);let c=d();return f(c.assesmentForm.practice,t)||(c.assesmentForm.practice=t),_(t)}),i(),o(44,"label",26),a(45,"Practice"),i()(),o(46,"div",27)(47,"input",28),v("ngModelChange",function(t){p(e);let c=d();return f(c.assesmentForm.practice,t)||(c.assesmentForm.practice=t),_(t)}),i(),o(48,"label",29),a(49,"Evaluation"),i()()()()(),o(50,"div",30)(51,"button",31),g("click",function(){p(e);let t=d();return _(t.SaveAssesment())}),a(52," Save and Continue "),i()()()}if(n&2){let e=T(2),r=T(26),t=d();s(3),C("value",t.assesmentForm.title),l("required",!0)("fieldTitle","Assesment Title"),s(5),l("elementId","Aeesement-Description"),C("content",t.assesmentForm.title),l("hideFontSize",!0)("paragraph",!0)("showLink",!0)("showMenubar",!0)("height",300),s(6),l("elementId","Aeesement-Rules"),C("content",t.assesmentForm.rules),l("hideFontSize",!0)("paragraph",!0)("showLink",!0)("showMenubar",!0)("height",300),s(8),l("ngClass",Ee(27,ut,t.assesmentForm.banner,t.error==null||t.error.banner==null?null:t.error.banner.status)),s(2),l("ngIf",t.assesmentForm.banner)("ngIfElse",r),s(5),l("ngIf",t.error.banner.status),s(6),C("ngModel",t.assesmentForm.duration),s(8),l("value",1),C("ngModel",t.assesmentForm.practice),s(4),l("value",0),C("ngModel",t.assesmentForm.practice),s(4),l("disabled",e.isInvalid)}}var et=(()=>{class n{constructor(e,r,t,c){this.router=e,this.manageAssesmentService=r,this.toastService=t,this.helper=c,this.assesmentForm={title:null,rules:null,description:null,duration:"01:00:00",banner:null,practice:null,isPaid:null},this.formData=new FormData,this.error={banner:{status:!1,message:""}},this.overallErrorStatus=!1}ngOnInit(){this.assesmentId=this.router.snapshot.paramMap.get("id"),this.getAssesment(this.assesmentId),console.log(this.assesmentId)}getAssesment(e){let r={id:e,step:0};this.manageAssesmentService.getAssesment(r).subscribe(t=>{t=t.data,console.log(t),this.assesmentForm.title=t.title,this.assesmentForm.duration=t.duration,this.assesmentForm.rules=t.guidelines,this.assesmentForm.description=t.details,this.assesmentForm.practice=t.practice,this.assesmentForm.isPaid=t.is_paid})}SaveAssesment(){let e={assesment:this.assesmentForm,step:this.manageAssesmentService.currentStep};this.manageAssesmentService.storeAssement(this.assesmentId,e).subscribe(r=>{console.log(r),r.data==!0&&this.manageAssesmentService.switchStep(1)})}getBanner(e){let r=e.target.files;if(r.length>0){let t=r[0];if(t.size>1*1024*1024)this.error.banner.status=!0,this.error.banner.message="Banner Size exceeds limit of 5 MB.",this.overallErrorStatus=!0;else{console.log(t);let c=this.helper.checkIfFileExtensionIsValid(t.name);console.log(c),c&&(this.formData.append("banner",t,t.name),console.log(this.formData),this.manageAssesmentService.uploadBanner(1,this.formData).subscribe(y=>{let S=y.data;S.status==!0?(this.assesment.banner=S.banner.image_url,this.toastService.toast(S.message,2e3,"green")):this.toastService.toast(S.message,3e3,"red"),this.formData=new FormData}))}}}static{this.\u0275fac=function(r){return new(r||n)(k(oe),k(V),k(G),k(ze))}}static{this.\u0275cmp=E({type:n,selectors:[["app-basic-deatils"]],viewQuery:function(r,t){if(r&1&&Pe(le,5),r&2){let c;Se(c=Te())&&(t.d2cForm=c.first)}},standalone:!1,decls:1,vars:1,consts:[["myForm","d2c-form"],["tiny",""],["blank",""],["contest_duration","ngModel"],["class","right-side",4,"ngIf"],[1,"right-side"],["d2c-form",""],[1,"mt-4","mb-4",3,"valueChange","errorStateStatus","value","required","fieldTitle"],[1,"card-fields"],[1,"card-title","input-field","mt-15","text-editor"],[1,"main-hdng"],[3,"contentChange","elementId","content","hideFontSize","paragraph","showLink","
1showMenubar","height"],[1,"card-title","file-field","input-field","mt-20","mb-20"],[1,"description","mb-15"],["for","course_banner",1,"upload-logo,",3,"ngClass"],["type","file","name","banner","id","course_banner",3,"change"],[4,"ngIf","ngIfElse"],[1,"required-field","red-text"],["class","red-text required-error font-12",4,"ngIf"],[1,"card-fields","mt-35","input_fields"],["for","code_contest_duration"],["required","","name","code_contest_duration","type","text","id","code_contest_duration",1,"validate",3,"ngModelChange","ngModel"],[1,"card-fields","mt-20","mb-20"],[1,"d-flex"],[1,"input_fields","d-flex","mr-15"],["type","radio","name","assesstype","id","asses1",3,"ngModelChange","value","ngModel"],["for","asses1"],[1,"input_fields","d-flex"],["type","radio","name","assesstype","id","assess2",3,"ngModelChange","value","ngModel"],["for","assess2"],[1,"d-flex","justify-space-between","bottom-btn"],[1,"btn","btn-green",3,"click","disabled"],["alt","course banner",3,"src"],[1,"change-logo-text"],[1,"material-icons"],[1,"logo-notes"],[1,"red-text","required-error","font-12"]],template:function(r,t){r&1&&u(0,Ct,53,30,"div",4),r&2&&l("ngIf",t.assesmentForm.title!=null)},dependencies:[z,Q,W,De,B,N,j,le,ae,se,X],styles:[".un-container[_ngcontent-%COMP%]{position:relative;z-index:9}.left-side[_ngcontent-%COMP%]{background-color:#d3d3d3;padding:3% 3% 1%;height:100vh;position:fixed;color:#000}@media only screen and (min-width: 769px) and (max-width: 1024px){.form-inner[_ngcontent-%COMP%]{width:auto!important}}@media only screen and (min-width: 601px) and (max-width: 768px){.form-inner[_ngcontent-%COMP%]{padding:15px!important}} .right-side{padding:30px 30px 0!important;margin:-30px}.right-side[_ngcontent-%COMP%] .card[_ngcontent-%COMP%]{border:3px solid #eee;border-right:0px solid}.right-side[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%]{padding:4px 10px}.right-side[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .logo_wrapper[_ngcontent-%COMP%]{height:77px;width:77px;border:1px solid #e3e3e3;border-radius:4px;float:left;margin-top:6px;margin-bottom:5px}.right-side[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .logo_wrapper[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{padding:0;max-width:75px;max-height:75px;margin:0 auto;overflow:hidden;font-size:7px;text-align:center}.right-side[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .card-text[_ngcontent-%COMP%]{padding:27px}.right-side[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .card-text[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%]{display:block;line-height:18px;font-weight:400;color:#000000de;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;margin-bottom:15px}.right-side[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .card-text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:inline-block;margin-top:0;margin-right:20px;font-size:13px;color:#888;padding:4px}.right-side[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .card-text[_ngcontent-%COMP%] p[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .right-side[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .card-text[_ngcontent-%COMP%] p[_ngcontent-%COMP%] em[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;margin-right:4px;font-style:normal}.right-side[_ngcontent-%COMP%] .file-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{height:200px;border:2px dashed #e3e3e3;background:#fafafa;position:static;cursor:pointer;display:flex;justify-content:center;align-items:center;flex-direction:column;padding:10px;border-radius:2px;color:var(--grey-600);overflow:hidden}.right-side[_ngcontent-%COMP%] .file-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:420px;max-height:380px}.right-side[_ngcontent-%COMP%] .file-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:hover{background-image:linear-gradient(-45deg,var(--grey-50) 25%,transparent 25%,transparent 50%,var(--grey-50) 50%,var(--grey-50) 75%,transparent 75%,transparent);background-size:30px 30px;animation:_ngcontent-%COMP%_stripes 2s linear infinite}.right-side[_ngcontent-%COMP%] .file-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:hover .change-logo-text[_ngcontent-%COMP%]{height:33px;opacity:1;visibility:visible}.right-side[_ngcontent-%COMP%] .file-field[_ngcontent-%COMP%] label.error-logo[_ngcontent-%COMP%]{border-color:#df55556e;background:#e3212112}.right-side[_ngcontent-%COMP%] .file-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%] .change-logo-text[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;width:100%;padding:8px;background:#00000080;color:var(--grey-00);
1height:0px;overflow:hidden;opacity:0;visibility:hidden;transition:.4s;text-align:center;font-size:12px}.right-side[_ngcontent-%COMP%] .file-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%] .logo-notes[_ngcontent-%COMP%]{margin-top:20px;font-size:11px;color:#bbb}.right-side[_ngcontent-%COMP%] .file-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%] .logo-notes[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:4px}.right-side[_ngcontent-%COMP%] .file-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%] .required-field[_ngcontent-%COMP%]{position:absolute;right:10px;top:10px;font-size:12px}.right-side[_ngcontent-%COMP%] .file-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:none}.right-side[_ngcontent-%COMP%] .file-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:44px;color:#e3e3e3;margin-bottom:15px}@-webkit-keyframes _ngcontent-%COMP%_stripes{0%{background-position:0 0}to{background-position:60px 30px}}@keyframes _ngcontent-%COMP%_stripes{0%{background-position:0 0}to{background-position:60px 30px}}.bottom-btn[_ngcontent-%COMP%]{box-shadow:0 -1px 5px #0000004d;padding:10px;margin:0 -30px}",'.main-hdng[_ngcontent-%COMP%]{font-size:18px;color:var(--grey-1100);font-weight:500;position:relative;padding-left:18px;margin:0 0 15px}.main-hdng[_ngcontent-%COMP%]:after, .main-hdng[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;background:var(--blue-700)}.main-hdng[_ngcontent-%COMP%]:before{left:0;height:18px;width:3px}.main-hdng[_ngcontent-%COMP%]:after{left:6px;height:22px;width:4px;opacity:.7}section[_ngcontent-%COMP%]{padding:0 0 50px}section[_ngcontent-%COMP%]:first-child{padding:50px 0}.btn-rounded[_ngcontent-%COMP%]{font-size:14px;color:var(--grey-00)}.btn-rounded[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{border-radius:20px 0 0 20px;max-height:38px;background-color:var(--blue-700);padding:10px;-webkit-border-radius:20px 0 0 20px;-moz-border-radius:20px 0 0 20px;-ms-border-radius:20px 0 0 20px;-o-border-radius:20px 0 0 20px;border-right:1px solid var(--grey-00)}.btn-rounded[_ngcontent-%COMP%] em[_ngcontent-%COMP%]{border-radius:0 20px 20px 0;max-height:38px;background-color:#196edf;padding:11px;-webkit-border-radius:0 20px 20px 0;-moz-border-radius:0 20px 20px 0;-ms-border-radius:0 20px 20px 0;-o-border-radius:0 20px 20px 0}']})}}return n})();A();function vt(n,m){if(n&1){let e=h();o(0,"li")(1,"h4"),a(2),i(),o(3,"div",7)(4,"button",8),g("click",function(){let t=p(e).$implicit,c=d();return _(c.editAssesment(t.id))}),x(5,"em",9),a(6," Edit "),i(),o(7,"button",10),g("click",function(){let t=p(e),c=t.$implicit,y=t.index,S=d();return _(S.deleteAssesment(c.id,y))}),x(8,"em",11),a(9," Delete "),i()()()}if(n&2){let e=m.$implicit;s(2),I(e.title)}}var tt=(()=>{class n{constructor(e,r){this.manageAssesmentService=e,this.router=r}ngOnInit(){this.getAssementslist()}CreateAssesment(){this.manageAssesmentService.createAssement().subscribe(e=>{console.log(e.data),this.router.navigate(["assessments/edit",e.data])})}getAssementslist(){this.manageAssesmentService.getAssesmentList().subscribe(e=>{console.log(e),this.AssesmentList=e.data})}editAssesment(e){this.router.navigate(["assessments/edit",e])}deleteAssesment(e,r){confirm("Do you want to delete this Assesment?")&&this.manageAssesmentService.DeleteAssesment(e).subscribe(t=>{this.AssesmentList.splice(r,1)})}static{this.\u0275fac=function(r){return new(r||n)(k(V),k(Ie))}}static{this.\u0275cmp=E({type:n,selectors:[["app-assessments-list"]],standalone:!1,decls:13,vars:1,consts:[[1,"container"],[1,"d-flex","justify-space-between"],[1,"hdng"],[1,"btn-rounded",3,"click"],[1,"fa","fa-plus-circle"],[1,"assessments-list"],[4,"ngFor","ngForOf"],[1,"btns"],[1,"btn",3,"click"],[1,"fa","fa-pencil"],[1,"btn","red",3,"click"],[1,"fa","fa-trash"]],template:function(r,t){r&1&&(o(0,"section")(1,"div",0)(2,"div",1)(3,"h2",2),a(4,"Manage Assessments"),i(),o(5,"button",3),g("click",function(){return t.CreateAssesment()}),o(6,"span"),a(7," Create New "),i(),x(8,"em",4),i()()()(),o(9,"section")(10,"div",0)(11,"ul",5),u(12,vt,10,1,"li",6),i()()()),r&2&&(s(12),l("ngForOf",t.AssesmentList))},dependencies:[D],styles:[".assessments-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding:15px;background:var(--grey-00);margin-bottom:20px;box-shadow:0 0 15px #186edf1a;border-radius:8px;position:relative;display:flex;justify-content:space-between;width:100%;align-items:center;transition:all .4s}.assessments-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{box-shadow:0 0 15px #186edf33}.assessments-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%] h4[_ng
1content-%COMP%]{font-size:16px;margin:0}.assessments-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .btns[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .assessments-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .btns[_ngcontent-%COMP%] button[_ngcontent-%COMP%] em[_ngcontent-%COMP%]{margin-right:10px}body[_ngcontent-%COMP%]{background:#f5f7f8}",'.main-hdng[_ngcontent-%COMP%]{font-size:18px;color:var(--grey-1100);font-weight:500;position:relative;padding-left:18px;margin:0 0 15px}.main-hdng[_ngcontent-%COMP%]:after, .main-hdng[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;background:var(--blue-700)}.main-hdng[_ngcontent-%COMP%]:before{left:0;height:18px;width:3px}.main-hdng[_ngcontent-%COMP%]:after{left:6px;height:22px;width:4px;opacity:.7}section[_ngcontent-%COMP%]{padding:0 0 50px}section[_ngcontent-%COMP%]:first-child{padding:50px 0}.btn-rounded[_ngcontent-%COMP%]{font-size:14px;color:var(--grey-00)}.btn-rounded[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{border-radius:20px 0 0 20px;max-height:38px;background-color:var(--blue-700);padding:10px;-webkit-border-radius:20px 0 0 20px;-moz-border-radius:20px 0 0 20px;-ms-border-radius:20px 0 0 20px;-o-border-radius:20px 0 0 20px;border-right:1px solid var(--grey-00)}.btn-rounded[_ngcontent-%COMP%] em[_ngcontent-%COMP%]{border-radius:0 20px 20px 0;max-height:38px;background-color:#196edf;padding:11px;-webkit-border-radius:0 20px 20px 0;-moz-border-radius:0 20px 20px 0;-ms-border-radius:0 20px 20px 0;-o-border-radius:0 20px 20px 0}']})}}return n})();A();A();var bt=n=>({"mobile-menu":n}),nt=n=>({active:n}),it=(()=>{class n{constructor(e){this.assessmentService=e,this.mobileMenu=!1}ngOnInit(){}static{this.\u0275fac=function(r){return new(r||n)(k(V))}}static{this.\u0275cmp=E({type:n,selectors:[["app-sidebar"]],standalone:!1,decls:10,vars:9,consts:[[3,"ngClass"],[1,"menu-list"],[3,"click","ngClass"],[1,"fa","fa-check"],[1,"btn","fixed-btn",3,"click"],[1,"fa","fa-bars"]],template:function(r,t){r&1&&(o(0,"menu",0)(1,"ul",1)(2,"li",2),g("click",function(){return t.assessmentService.switchStep(0)}),x(3,"em",3),a(4," Basic Details "),i(),o(5,"li",2),g("click",function(){return t.assessmentService.switchStep(1)}),x(6,"em",3),a(7," Assessment Module "),i()()(),o(8,"button",4),g("click",function(){return t.mobileMenu=!t.mobileMenu}),x(9,"em",5),i()),r&2&&(l("ngClass",b(3,bt,t.mobileMenu)),s(2),l("ngClass",b(5,nt,t.assessmentService.currentStep==0)),s(3),l("ngClass",b(7,nt,t.assessmentService.currentStep==1)))},dependencies:[z],styles:['menu[_ngcontent-%COMP%]{width:320px;position:fixed;left:0;top:45px;background-color:#f5f6f8;margin:0;padding:0 10px;min-height:100vh;transition:.4s}@media screen and (max-width: 991px){menu[_ngcontent-%COMP%]{left:-100%}menu.mobile-menu[_ngcontent-%COMP%]{left:0;z-index:9}}.menu-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding:18px 10px;background:var(--grey-00);border-radius:8px;margin-bottom:15px;cursor:default;display:block;color:inherit;transition:.4s;position:relative;display:flex;align-items:center;cursor:pointer}.menu-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%] em[_ngcontent-%COMP%]{background-color:#2ec42e;color:var(--grey-00);height:38px;width:38px;border-radius:50%;text-align:center;line-height:42px;margin-right:10px}.menu-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:after{content:"";position:absolute;top:14px;right:-10px;border-top:10px solid transparent;border-bottom:10px solid transparent;border-left:10px solid transparent;display:none}.menu-list[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{box-shadow:none!important;background:#1baee93b;cursor:default!important;box-shadow:1px 0 6px 2px #0000000d;color:#186edf;font-weight:500}.menu-list[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%] em[_ngcontent-%COMP%]{background:var(--blue-700);box-shadow:0 0 0 4px #ffffffbf;color:var(--grey-00);line-height:42px}.menu-list[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]:after{display:inline-block;border-left-color:#1baee93b}.menu-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{box-shadow:1px 0 11px 4px #0000001f;cursor:pointer}.menu-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover:after{display:inline-block}.fixed-btn[_ngcontent-%COMP%]{position:fixed;right:20px;bottom:20px;border-radius:50%;width:45px;height:45px;padding:0}@media screen and (min-width: 991px){.fixed-btn[_ngcontent-%COMP%]{display:none}}']})}}return n})();A();A();A();var he=n=>({"has-value":n});function yt(n,m){if(n&1&&(o(0,"mat-option",13),a(1),i()),n&2){let e=m.$implicit;l("value",e.id),s(),q(" ",e.name," ")}}function kt(n,m){if(n&1){let e=h();o(0,"div")(1,"div",3)(2,"div",4),a(3,"Question Title "),o(4,"sup"),a(5,"*"),i()(),o(6,"div",5)(7,"input",6),v("ngModelChange",function(t){p(e);let c=d();return f(c.HackQuestion.name,t)||(c.HackQuestion.name=t),_(t)}),i()()(),o(8,"div",7)(9,"div",4),a(10,"Problem Statement "),o(11,"sup"),a(12,"*"),i()(),o(13,"div",8)(14,"simple-tiny",9,0),v("contentChange",function(t){p(e);let c=d();return f(c.HackQuestion.problem_statement,t)||(c.HackQuestion.problem_statement=t),_(t)}),i()()(),o(16,"div",3)(17,"div",4),a(18,"Input Format "),o(19,"sup"),a(20,"*"),i()(),o(21,"div",8)(22,"simple-tiny",9,0),v("contentChange",function(t){p(e);let c=d();return f(c.HackQuestion.input_format,t)||(c.HackQuestion.input_format=t),_(t)}),i()()(),o(24,"div",3)(25,"div",4),a(26,"Output Format "),o(27,"sup"),a(28,"*"),i()(),o(29,"div",8)(30,"simple-tiny",9,0),v("contentChange",function(t){p(e);let c=d();return f(c.HackQuestion.output_format,t)||(c.HackQuestion.output_format=t),_(t)}),i()()(),o(32,"div",3)(33,"div",4),a(34,"Select Languages "),o(35,"sup"),a(36,"*"),i()(),o(37,"div",8)(38,"mat-form-field",10)(39,"mat-select",11),g("ngModelChange",function(t){p(e);let c=d();return _(c.modulequestionlanguageSelected(t,!0))}),u(40,yt,2,2,"mat-option",12),i()()()()()}if(n&2){let e=d();s(7),C("ngModel",e.HackQuestion.name),s(7),l("elementId","my-editor-problem-statement"),C("content",e.HackQuestion.problem_statement),l("activeToolbar2",!0)("height",180),s(8),l("elementId","my-editor-input-id"),C("content",e.HackQuestion.input_format),l("activeToolbar2",!0)("height",180),s(8),l("elementId","my-editor-output-id"),C("content",e.HackQuestion.output_format),l("activeToolbar2",!0)("height",180),s(9),l("ngModel",e.HackQuestion.languages),s(),l("ngForOf",e.Languages)}}function Ot(n,m){if(n&1){let e=h();o(0,"mat-option",23),g("click",function(){let t=p(e).$implicit,c=d(2);return _(c.selectLanguage(t))}),a(1),i()}if(n&2){let e=m.$implicit;l("value",e.id),s(),I(e.name)}}function Pt(n,m){if(n&1){let e=h();o(0,"div",14)(1,"div",15)(2,"input",16),v("ngModelChange",function(t){p(e);let c=d();return f(c.Is_sollution_visible_to_user,t)||(c.Is_sollution_visible_to_user=t),_(t)}),i(),o(3,"label",17),a(4,"You want to Show solution to user"),i()(),o(5,"div",18)(6,"mat-select",19),u(7,Ot,2,2,"mat-option",20),i()(),o(8,"div",21)(9,"d2c-monaco-editor",22),g("codeChange",function(t){p(e);let c=d();return _(c.onChange(t))}),v("codeChange",function(t){p(e);let c=d();return f(c.code,t)||(c.code=t),_(t)}),i()()()}if(n&2){let e=d();s(2),C("ngModel",e.Is_sollution_visible_to_user),s(4),l("ngModel",e.selectedLang),s(),l("ngForOf",e.Languages),s(2),l("mode",e.mode),C("code",e.code)}}function St(n,m){if(n&1){let e=h();o(0,"tr")(1,"td",42),a(2),i(),o(3,"td",42),a(4),i(),o(5,"td",42),a(6),i(),o(7,"td",43),a(8),i(),o(9,"td",42),x(10,"input",44)(11,"label",45),i(),o(12,"td",42)(13,"a",46),g("click",function(){let t=p(e),c=t.$implicit,y=t.index,S=d(2);return _(S.edittestcase(c,y))}),i(),M(14),o(15,"a",47),g("click",function(){let t=p(e),c=t.$implicit,y=t.index,S=d(2);return _(S.deleteTestcase(c,y))}),i(),w(),i()()}if(n&2){let e=m.$implicit,r=m.index;s(2),I(r+1),s(2),I(e.input),s(2),I(e.output),s(2),q(" ",e.strength," "),s(2),l("id",F("filled-in-box",r))("checked",e.sample),s(),l("for",F("filled-in-box",r))}}function Tt(n,m){n&1&&(o(0,"un-alerts",38),a(1," No Test Case added right now! "),i()),n&2&&l("type","info")}function Et(n,m){if(n&1){let e=h();o(0,"div",48),g("click",function(){p(e);let t=d(2);return _(t.closeD2CModal())}),i()}}function Ft(n,m){n&1&&(o(0,"span",71),a(1,"Strength value should be greater than 0."),i())}function qt(n,m){if(n&1){let e=h();o(0,"div",29)(1,"label",72),a(2,"Description"),i(),o(3,"simple-tiny",73),v("contentChange",function(t){p(e);let c=d(3);return f(c.currentTestcase.explanation,t)||(c.currentTestcase.explanation=t),_(t)}),i()()}if(n&2){let e=d(3);
1s(3),l("height",180)("elementId","my-editor-description-id")("hideFontSize",!0),C("content",e.currentTestcase.explanation)}}function Vt(n,m){if(n&1){let e=h();o(0,"div",49)(1,"div",50)(2,"div",51)(3,"div",52)(4,"label",53),a(5,"Strength"),i(),o(6,"input",54),v("ngModelChange",function(t){p(e);let c=d(2);return f(c.currentTestcase.strength,t)||(c.currentTestcase.strength=t),_(t)}),i(),u(7,Ft,2,0,"span",55),i(),o(8,"div",56)(9,"input",57),g("change",function(){p(e);let t=d(2);return _(t.sampleCheck())}),v("ngModelChange",function(t){p(e);let c=d(2);return f(c.currentTestcase.sample,t)||(c.currentTestcase.sample=t),_(t)}),i(),o(10,"label",58),a(11,"Sample"),i(),o(12,"input",59),g("change",function(){p(e);let t=d(2);return _(t.privateCheck())}),v("ngModelChange",function(t){p(e);let c=d(2);return f(c.currentTestcase.private,t)||(c.currentTestcase.private=t),_(t)}),i(),o(13,"label",60),a(14,"Private"),i()()(),o(15,"div",61)(16,"div",62),M(17),o(18,"label",63),a(19,"Input "),o(20,"sup"),a(21,"*"),i()(),o(22,"textarea",64),v("ngModelChange",function(t){p(e);let c=d(2);return f(c.currentTestcase.input,t)||(c.currentTestcase.input=t),_(t)}),i(),w(),i(),o(23,"div",62),M(24),o(25,"label",65),a(26,"Output "),o(27,"sup"),a(28,"*"),i()(),o(29,"textarea",66),v("ngModelChange",function(t){p(e);let c=d(2);return f(c.currentTestcase.output,t)||(c.currentTestcase.output=t),_(t)}),i(),w(),i()(),u(30,qt,4,4,"div",67),i(),o(31,"div",68)(32,"button",69),g("click",function(){p(e);let t=d(2);return _(t.closeD2CModal())}),a(33," Close "),i(),o(34,"button",70),g("click",function(){p(e);let t=d(2);return _(t.saveTestcase())}),a(35," Submit "),i()()()}if(n&2){let e=d(2);s(4),l("ngClass",b(15,he,e.currentTestcase.strength||e.currentTestcase.strength===0)),s(2),C("ngModel",e.currentTestcase.strength),l("disabled",e.currentTestcase.sample),s(),l("ngIf",!e.currentTestcase.sample&&(!e.currentTestcase.strength||e.currentTestcase.strength<1)),s(2),l("value",1),C("ngModel",e.currentTestcase.sample),s(3),l("value",1),C("ngModel",e.currentTestcase.private),s(6),l("ngClass",b(17,he,e.currentTestcase.input)),s(4),l("innerHTML",e.currentTestcase.input,ee),C("ngModel",e.currentTestcase.input),s(3),l("ngClass",b(19,he,e.currentTestcase.output)),s(4),l("innerHTML",e.currentTestcase.output,ee),C("ngModel",e.currentTestcase.output),s(),l("ngIf",e.currentTestcase.sample)}}function It(n,m){n&1&&(o(0,"div",74)(1,"div",75)(2,"div"),x(3,"span",76)(4,"span",76)(5,"span",76)(6,"span",76),i(),o(7,"span",77),a(8,"Please wait"),i()()())}function At(n,m){if(n&1){let e=h();o(0,"div"),M(1),o(2,"div",24)(3,"h5"),a(4,"Test Cases"),i(),o(5,"p"),a(6," A test case consists of input values to the program and the expected output. Input will be fed to the program's STDIN and output will be expected in STDOUT. "),i(),o(7,"button",25),g("click",function(){p(e);let t=d();return _(t.AddTestCase())}),o(8,"i",26),a(9,"add"),i(),a(10," Add Test Case "),i(),o(11,"button",27)(12,"i",26),a(13,"play_circle_filled"),i(),a(14," Validate & Submit "),i(),o(15,"div",28),a(16,"There must be at least one sample test case"),i(),o(17,"div",29),a(18," There must be at least one evaluation test case to submit "),i()(),o(19,"div",30)(20,"table")(21,"thead")(22,"tr")(23,"th",31),a(24,"#"),i(),o(25,"th",32),a(26," Input "),i(),o(27,"th",33),a(28," Output "),i(),o(29,"th",34),a(30," Strength "),i(),o(31,"th",35),a(32," Sample "),i(),o(33,"th",36),a(34," Actions "),i()()(),o(35,"tbody"),u(36,St,16,9,"tr",37),i()()(),ke(37,Tt,2,1,"un-alerts",38),u(38,Et,1,0,"div",39)(39,Vt,36,21,"div",40)(40,It,9,0,"div",41),w(),i()}if(n&2){let e=d();s(36),l("ngForOf",e.testcases),s(),Oe(e.testcases!=null&&e.testcases.length?-1:37),s(),l("ngIf",e.showModal),s(),l("ngIf",e.showModal),s(),l("ngIf",e.saveTestcaseLoader||e.testcaseLoader)}}var rt=(()=>{class n{constructor(e,r){this.manageAssesmentService=e,this.toastservice=r,this.tabChange=new pe,this.closeHackathoneForm=new pe,this.showModal=!1,this.testcase={id:0,new:!0,code_contest_id:null,testcase_order:null,input:null,output:null,sample:0,additional:0,strength:null,private:0,explanation:""},this.currenttestcaseIndex=-1,this.mode="c",this.theme="vs-dark",this.editorOptions={theme:this.theme,language:this.mode},this.Is_sollution_visible_to_user=1,this.selectedLang=1}ngOnInit(){this.SavehackQuestion=this.manageAssesmentService.SubmithackathoneForm.subscribe(e=>{console.log(e),console.log(this.HackQuestion),this.HackQuestion.name!=null&&this.HackQuestion.problem_statement!=null&&this.HackQuestion.input_format!=null&&this.HackQuestion.output_format!=null&&this.HackQuestion.languages!=null&&this.HackQuestion.hasOwnProperty("languages")&&this.HackQuestion.languages.length>0?this.savehackQuestion():this.toastservice.toast("Fields marked with * are required",1e3,"red")}),this.SavehackSolution=this.manageAssesmentService.SubmithackathoneSolution.subscribe(e=>{console.log(e),this.savehackSolution()}),this.selectedLang=this.Languages[0].id,this.code=this.Languages[0].stub,this.editorOptions.language=this.Languages[0].slug}ngOnChanges(e){e.HackQuestion&&(console.log(this.HackQuestion),this.testcases=this.HackQuestion.all_testcases),e.activeTab&&(this.activeTab=="solution"&&this.HackQuestion?.solution!=null&&(this.code=this.HackQuestion?.solution.solution,this.selectedLang=this.HackQuestion?.solution.lang_id,this.code=this.HackQuestion?.solution.solution,this.Is_sollution_visible_to_user=this.HackQuestion?.solution.show_to_user),console.log(this.activeTab))}savehackQuestion(){this.HackQuestion.all_testcases=this.testcases,this.manageAssesmentService.SaveAssementModuleHackQuestion(this.HackQuestion).subscribe(e=>{console.log(e,this.activeTab),this.activeTab=="testcases"?this.closeHackathoneForm.emit(!1):this.activeTab=="problem"?this.tabChange.emit("solution"):this.activeTab=="solution"&&this.tabChange.emit("testcases")})}savehackSolution(){let e={code:this.code,language:this.selectedLang,quesId:this.HackQuestion.id,enity_id:this.manageAssesmentService.currentEditAssesmentModule,enity_type:"hackathone",show_to_user:this.Is_sollution_visible_to_user};this.manageAssesmentService.SaveAssementModuleHackSolution(e).subscribe(r=>{console.log(r,this.activeTab),this.activeTab=="testcases"?this.closeHackathoneForm.emit(!1):this.activeTab=="problem"?this.tabChange.emit("solution"):this.activeTab=="solution"&&this.tabChange.emit("testcases")})}modulequestionlanguageSelected(e){this.HackQuestion.languages=e}AddTestCase(){this.currentTestcase={id:0,new:!0,code_contest_id:null,testcase_order:null,input:null,output:null,sample:0,additional:0,strength:null,private:0,explanation:null},this.showModal=!0,console.log(this.currentTestcase,this.showModal)}closeD2CModal(){this.showModal=!1}saveTestcase(){this.currenttestcaseIndex!=-1&&this.currentTestcase.hasOwnProperty("new")?(this.testcases[this.currenttestcaseIndex]=this.currentTestcase,this.currenttestcaseIndex=-1):(this.testcases==null&&(this.testcases=[]),this.testcases.push(this.currentTestcase),console.log(this.testcases)),this.showModal=!1}privateCheck(){this.currentTestcase.private?this.currentTestcase.private=1:this.currentTestcase.private=0}sampleCheck(){this.currentTestcase.sample?this.currentTestcase.sample=1:this.currentTestcase.sample=0}deleteTestcase(e,r){confirm("Do you really want to delete this testcase?")&&(e.hasOwnProperty("new")?this.testcases.splice(r,1):this.manageAssesmentService.deleteTestcase(e.id).subscribe(t=>{console.log(t),this.testcases.splice(r,1)}))}edittestcase(e,r){this.currentTestcase=e,this.currenttestcaseIndex=r,console.log(this.currenttestcaseIndex),this.showModal=!0}fileCheck(){return!0}modeChanged(e){console.log(e,this.selectedLang),this.selectedLang=e}selectLanguage(e){confirm("If input language is changed, the current progress will be lost!")&&(this.selectedLang=e.id,console.log(this.mode,e),this.editorOptions=fe(Ce({},this.editorOptions),{language:this.mode}),console.log(this.editorOptions),this.code=e.stub,console.log(this.code))}static{this.\u0275fac=function(r){return new(r||n)(k(V),k(G))}}static{this.\u0275cmp=E({type:n,selectors:[["app-course-hackathon-form"]],inputs:{activeTab:"activeTab",HackQuestion:"HackQuestion",Languages:"Languages"},outputs:{tabChange:"tabChange",closeHackathoneForm:"closeHackathoneForm"},standalone:!1,features:[Me],decls:3,vars:3,consts:[["tiny",""],[4,"ngIf"],["class","solution",4,"ngIf"],[1,"d2c_box","field_group"],[1,"form_labels"],[1,"form_field","input_fields","position-relative"],["type","text","id","code_contest_name","required","",1,"mb-0",3,"ngModelChange","ngModel"],[1,"bdr_box","field_group"],[1,"form_field","position-relative"],[3,"contentChange","elementId","content","activeToolbar2","height"],[2,"width","100%"],["multiple","",3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"solution"],[1,"d-flex","input_fields"],["type","checkbox","id","Is_sollution_visible_to_user",3,"ngModelChange","ngModel"],["for","Is_sollution_visible_to_user"],[1,"languages"],[3,"ngModel"],[3,"value","click",4,"ngFor","ngForOf"],[1,"code-editor"],[2,"display","block","border","none","padding","0 10px","height","100%",3,"codeChange","mode","code"],[3,"click","value"],[1,"d2c_box","test_case"],[3,"click"],[1,"material-icons"],[1,"waves-effect","ml-10","orange"],[1,"mt-15"],[1,"mt-10"],[1,"table-wrapper","mt-15"],[1,"center-align",2,"width","50px"],["data-field","input-size",1,"center-align",2,"width","120px"],["data-field","output-size",1,"center-align",2,"width","120px"],["data-field","strength",1,"center-align",2,"width","12%"],["data-field","sample",1,"center-align",2,"width","12%"],["data-field","price",1,"center-align",2,"width","80px"],[4,"ngFor","ngForOf"],[1,"d-block","mt-15","f-weight-400",3,"type"],["class","modal-bg",3,"click",4,"ngIf"],["class","modal animated zoomIn",4,"ngIf"],["class","save-testcase-loader absolute-wrapper",4,"ngIf"],[1,"center-align"],["contenteditable","",1,"center-align"],["type","checkbox","disabled","",1,"filled-in",3,"checked","id"],[3,"for"],[1,"fa","fa-pencil","green-text",3,"click"],[1,"fa","fa-tras
1h","red-text",3,"click"],[1,"modal-bg",3,"click"],[1,"modal","animated","zoomIn"],[1,"modal-content"],[1,"modal-ctrls"],[1,"input_fields"],["for","strength",3,"ngClass"],["type","number","name","strength","id","strength",3,"ngModelChange","ngModel","disabled"],["class","error",4,"ngIf"],[1,"m2"],["type","checkbox","id","sample",1,"filled-in",3,"change","ngModelChange","value","ngModel"],["for","sample",1,"label","mr-20"],["type","checkbox","id","private",1,"filled-in",3,"change","ngModelChange","value","ngModel"],["for","private",1,"label"],[1,"row"],[1,"col","s12","m6","input_fields"],["for","input",2,"left","0",3,"ngClass"],["name","input","id","input",1,"materialize-textarea","mb-0",3,"ngModelChange","innerHTML","ngModel"],["for","output",3,"ngClass"],["name","output","id","output",1,"materialize-textarea","mb-0",3,"ngModelChange","innerHTML","ngModel"],["class","mt-10",4,"ngIf"],[1,"modal-footer","clearfix"],[1,"waves-effect","waves-green","btn","red","left",3,"click"],[1,"modal-action","modal-close","waves-effect","right","waves-green","btn","btn-defalt",3,"click"],[1,"error"],["for","output",2,"font-size","14px","margin-bottom","10px","display","block","color","#444"],[3,"contentChange","height","elementId","hideFontSize","content"],[1,"save-testcase-loader","absolute-wrapper"],[1,"loading"],[1,"loading-bar"],[1,"font-13","mt-15"]],template:function(r,t){r&1&&u(0,kt,41,15,"div",1)(1,Pt,10,5,"div",2)(2,At,41,5,"div",1),r&2&&(l("ngIf",t.activeTab=="problem"),s(),l("ngIf",t.activeTab=="solution"),s(),l("ngIf",t.activeTab=="testcases"))},dependencies:[z,D,Q,Ne,Re,je,W,Y,re,B,N,j,J,X,Ye,ce],styles:['button[_ngcontent-%COMP%]:disabled{background:var(--grey-100)!important;color:var(--grey-500)!important;pointer-events:none;border-color:var(--grey-500)!important}.field_group[_ngcontent-%COMP%]{margin-bottom:15px;display:flex}.field_group[_ngcontent-%COMP%]:last-child{margin-bottom:0}.field_group[_ngcontent-%COMP%] .form_labels[_ngcontent-%COMP%]{width:250px;margin-top:5px;font-size:16px;line-height:19px;color:var(--grey-1100)}.field_group[_ngcontent-%COMP%] .form_labels[_ngcontent-%COMP%] sup[_ngcontent-%COMP%]{color:#f44336}.field_group[_ngcontent-%COMP%] .form_field[_ngcontent-%COMP%]{width:calc(100% - 250px)}.field_group[_ngcontent-%COMP%] .red-text[_ngcontent-%COMP%]{position:absolute;right:15px;bottom:10px;background:var(--grey-00)}@media (max-width: 767px){.field_group[_ngcontent-%COMP%]{flex-wrap:wrap}.field_group[_ngcontent-%COMP%] .form_labels[_ngcontent-%COMP%]{width:100%;margin-top:0;margin-bottom:10px}.field_group[_ngcontent-%COMP%] .form_field[_ngcontent-%COMP%]{width:100%}}.editor-cover[_ngcontent-%COMP%]{border:1px solid #e3e3e3}@media (max-width: 767px){.editor-cover[_ngcontent-%COMP%]{margin:0 -15px -15px}}.test_case[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{color:var(--grey-1300);font-size:15px;line-height:18px;letter-spacing:.01em;margin-bottom:10px}.test_case[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14px;line-height:17px;letter-spacing:.01em;color:var(--grey-1100);margin:15px 0}.test_case[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border:1px solid #186edf;color:#186edf;border-radius:4px;display:inline-flex;align-items:center;padding:8px 20px;font-weight:500;font-size:14px;transition:.3s}.test_case[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:var(--grey-00);background:#186edf}.test_case[_ngcontent-%COMP%] button[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:18px;margin-right:10px}.test_case[_ngcontent-%COMP%] button.orange[_ngcontent-%COMP%]{color:var(--grey-00);border-color:#d68000}.test_case[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{font-style:italic;font-weight:500;font-size:14px;line-height:17px;letter-spacing:.01em;color:#d63625}@media (max-width: 767px){.test_case[_ngcontent-%COMP%]{padding:10px;border-radius:4px}.test_case[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:8px 12px}}.table-wrapper[_ngcontent-%COMP%] [type=checkbox].filled-in[_ngcontent-%COMP%] + label[_ngcontent-%COMP%]{line-height:13px;height:13px}.table-wrapper[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{cursor:pointer;border:1px solid;width:25px;border-radius:50%;height:25px;display:inline-flex;align-items:center;justify-content:center;font-size:12px;transition:.3s}.table-wrapper[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background:#38843b;color:var(--grey-00)!important;border-color:#38843b}.table-wrapper[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:last-child{margin-left:5px}.table-wrapper[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:last-child:hover{background:var(--red-700);border-color:var(--red-700)}@media (max-width: 767px){.table-wrapper[_ngcontent-%COMP%]{margin:0 -16px;max-width:calc(100% + 32px);padding:0 16px}}table[_ngcontent-%COMP%]{border-collapse:collapse;border-spacing:0;width:100%}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{border-bottom:1px solid #e6e7e9}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background:#f9fafc}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:12px;padding:14px 10px;border-radius:0;color:#05111a;font-weight:400}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background:#667795;color:var(--grey-00)}@media (max-width: 767px){table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{white-space:nowrap}}.tesetcase-status[_ngcontent-%COMP%]{display:inline-flex;height:24px;width:24px;color:var(--grey-00);border-radius:50%;font-size:18px;align-items:center;justify-content:center}.tesetcase-status.pending[_ngcontent-%COMP%]{position:relative}.tesetcase-status.pending[_ngcontent-%COMP%]:after{content:"";position:absolute;top:5%;left:5%;width:90%;height:90%;border-top:2px solid #848484;border-radius:50%;border-right:2px solid #848484;border-bottom:2px solid transparent;-webkit-animation:_ngcontent-%COMP%_move 1s infinite forwards linear;-moz-animation:move 1s infinite forwards linear;-o-animation:move 1s infinite forwards linear;animation:_ngcontent-%COMP%_move 1s infinite forwards linear}@-webkit-keyframes _ngcontent-%COMP%_move{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}@-moz-keyframes move{0%{-moz-transform:rotate(0deg)}to{-moz-transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_move{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.btn-border[_ngcontent-%COMP%]{background:none;padding:10px 15px;border:1px solid;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px}
1.btn-border[_ngcontent-%COMP%]:disabled{color:var(--grey-500)!important;background:var(--grey-100)}.btn-border.small[_ngcontent-%COMP%]{padding:3px 12px}.file-error[_ngcontent-%COMP%]{right:20px!important;left:auto;top:4px;bottom:auto}.save-testcase-loader[_ngcontent-%COMP%]{z-index:99;background:#ffffffbd;text-align:center;position:fixed;display:flex;align-items:center;justify-content:center}.save-testcase-loader[_ngcontent-%COMP%] .loading[_ngcontent-%COMP%]{width:200px;padding:15px 10px 10px;background:var(--grey-00);margin:100px auto 0;box-shadow:0 1px 2px #0000001a}.modal-ctrls[_ngcontent-%COMP%]{margin-bottom:20px;display:flex;align-items:flex-end}.modal-ctrls[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{margin-bottom:0}.modal-ctrls[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{margin-bottom:10px;height:18px;display:inline-flex;align-items:center}.modal-ctrls[_ngcontent-%COMP%] .error[_ngcontent-%COMP%]{bottom:10px;right:40px}.modal-ctrls[_ngcontent-%COMP%] .input_fields[_ngcontent-%COMP%]{width:calc(100% - 190px);padding-right:30px}.modal-ctrls[_ngcontent-%COMP%] .m2[_ngcontent-%COMP%]{width:190px}@media (max-width: 767px){.modal-ctrls[_ngcontent-%COMP%]{flex-wrap:wrap}.modal-ctrls[_ngcontent-%COMP%] .input_fields[_ngcontent-%COMP%]{width:100%;padding-right:0}.modal-ctrls[_ngcontent-%COMP%] .m2[_ngcontent-%COMP%]{width:100%;margin-top:10px}}.modal-bg[_ngcontent-%COMP%]{background:#0009;position:fixed;top:0;left:0;width:100%;height:100%;z-index:999}.modal[_ngcontent-%COMP%]{width:65%;min-height:auto;max-height:85%;top:10%;z-index:999;-webkit-animation-duration:.3s;animation-duration:.3s;border-radius:4px;background:var(--grey-00)}@media (max-width: 1024px){.modal[_ngcontent-%COMP%]{width:95%;max-height:90%;top:5%}}.modal-content[_ngcontent-%COMP%]{padding:50px}.modal-content[_ngcontent-%COMP%] input[type=number][_ngcontent-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none}.modal-content[_ngcontent-%COMP%] input[type=number][_ngcontent-%COMP%]::-webkit-inner-spin-button, .modal-content[_ngcontent-%COMP%] input[type=number][_ngcontent-%COMP%]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.modal-content[_ngcontent-%COMP%] textarea.materialize-textarea[_ngcontent-%COMP%]{margin-bottom:10px}@media (max-width: 1024px){.modal-content[_ngcontent-%COMP%]{padding:10px 15px}.modal-content[_ngcontent-%COMP%] .input_fields[_ngcontent-%COMP%]:last-child{margin-top:10px}}.modal-footer[_ngcontent-%COMP%]{padding:15px 50px;background-color:var(--grey-00);box-shadow:-2px -2px 4px #ddd;height:auto}.modal-footer[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin:0}.modal-footer[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]:hover{box-shadow:0 2px 2px #00000024,0 1px 5px #0000001f,0 3px 1px -2px #0003}@media (max-width: 767px){.modal-footer[_ngcontent-%COMP%]{padding:10px 15px}}.upload-file-btn[_ngcontent-%COMP%]{width:calc(100% - 200px);float:left}@media (max-width: 767px){.upload-file-btn[_ngcontent-%COMP%]{width:100%}}.file-upload-area[_ngcontent-%COMP%]{padding:10px;border:1px solid #e3e3e3;border-radius:4px;background:#fefefe}.file-upload-area[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{padding:6px 15px;background:var(--blue-700);position:static;color:var(--grey-00);border-radius:2px;cursor:pointer;display:inline-block}.file-upload-area[_ngcontent-%COMP%] label[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:none}.file-upload-area[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-transform:uppercase;font-weight:500;font-size:12px;color:#9e9e9e;width:100%;margin-bottom:5px}.solution[_ngcontent-%COMP%] .languages[_ngcontent-%COMP%]{padding:0 10px}.solution[_ngcontent-%COMP%] .languages[_ngcontent-%COMP%] .mat-mdc-select[_ngcontent-%COMP%]{max-width:180px;margin-right:auto}.solution[_ngcontent-%COMP%] .languages[_ngcontent-%COMP%] {margin-bottom:15px}.solution[_ngcontent-%COMP%] .languages[_ngcontent-%COMP%] .mat-mdc-select-trigger{border:1px solid #ddd;padding:10px;border-radius:4px}.solution[_ngcontent-%COMP%] .code-editor[_ngcontent-%COMP%]{height:calc(100vh - 200px)}']})}}return n})();A();var Qt=()=>[1,2,3,5,85,22,8,2,5],R=n=>({active:n}),Ht=()=>[1,2,3,4],Lt=n=>({"has-value":n}),Dt=n=>
1({"invalid-column":n}),Wt=n=>({green:n}),Bt=n=>({invalid:n});function jt(n,m){n&1&&(o(0,"div")(1,"div",16)(2,"label",17),a(3,"Quiz Title"),i(),x(4,"input",18),i(),o(5,"div",16)(6,"label",19),a(7,"Total Questions"),i(),x(8,"input",20),i(),o(9,"div",16)(10,"label",21),a(11,"Quiz Duration (h:m:s)"),i(),x(12,"input",22),i()())}function Nt(n,m){n&1&&x(0,"div")}function Rt(n,m){if(n&1&&(o(0,"li",31)(1,"p")(2,"strong"),a(3),i(),o(4,"span"),a(5," Lorem ipsum dolor sit amet consectetur, adipisicing elit. Quas soluta porro est numquam eum quo adipisci, nemo saepe explicabo vel? "),i()(),o(6,"p")(7,"span")(8,"Strong"),a(9,"A."),i(),a(10," Lorem ipsum dolor, sit amet consectetur adipisicing elit. Ducimus, molestiae!"),i()()()),n&2){let e=m.index;l("ngClass",b(2,R,e==1)),s(3),I(e+1)}}function Ut(n,m){n&1&&(o(0,"p",35),a(1,"Lorem, ipsum dolor."),i())}function Kt(n,m){if(n&1){let e=h();M(0),o(1,"div",32),x(2,"div"),o(3,"button",33),g("click",function(){p(e);let t=d(2);return _(t.questionMode="edit")}),a(4,"Edit"),i()(),o(5,"p")(6,"strong"),a(7," Question: "),i()(),o(8,"p"),a(9," Lorem ipsum dolor sit amet consectetur adipisicing elit. Deserunt earum repudiandae obcaecati deleniti tempore quia illum, ut doloremque consectetur enim? "),i(),o(10,"p")(11,"strong"),a(12,"Answer:"),i()(),u(13,Ut,2,0,"p",34),w()}n&2&&(s(13),l("ngForOf",_e(1,Ht)))}function Gt(n,m){n&1&&(o(0,"span"),a(1,"Remove Image"),i())}function Yt(n,m){n&1&&(o(0,"span"),a(1,"Add Image"),i())}function Jt(n,m){n&1&&(o(0,"span"),a(1,"Remove Video"),i())}function Xt(n,m){n&1&&(o(0,"span"),a(1,"Add Video"),i())}function Zt(n,m){n&1&&(o(0,"div",61),a(1," Question is Required "),i())}function $t(n,m){if(n&1){let e=h();o(0,"div",62)(1,"label",63),a(2,"Hint"),i(),o(3,"input",64),v("ngModelChange",function(t){p(e);let c=d(3);return f(c.question.hint_link,t)||(c.question.hint_link=t),_(t)}),i()()}if(n&2){let e=d(3);s(),l("ngClass",b(2,Lt,e.question.hint_link)),s(2),C("ngModel",e.question.hint_link)}}function en(n,m){if(n&1&&(o(0,"div",72),x(1,"img",73,3),o(3,"div",74)(4,"span",75),a(5,"file_upload"),i(),a(6," Change Image "),i()()),n&2){let e=d(4);s(),l("src",e.question.question_image_url,K)}}function tn(n,m){n&1&&(o(0,"div",76)(1,"i",54),a(2,"cloud_upload"),i(),o(3,"p")(4,"em",77),a(5,"add_circle"),i(),o(6,"span",78),a(7,"Click here to upload your image"),i()()())}function nn(n,m){n&1&&(o(0,"div",61),a(1," Image is required for question type image. "),i())}function on(n,m){if(n&1){let e=h();o(0,"div",65)(1,"div",66),a(2,"Question Image"),i(),o(3,"div",67)(4,"input",68),g("change",function(t){p(e);let c=d(3);return _(c.onQuestionImageChange(t))}),i(),o(5,"label",69),u(6,en,7,1,"div",70)(7,tn,8,0,"div",71),i(),u(8,nn,2,0,"div",49),i()()}if(n&2){let e=d(3);s(6),l("ngIf",e.question.question_image_url),s(),l("ngIf",!e.question.question_image_url),s(),l("ngIf",e.errors&&e.errors.image)}}function rn(n,m){n&1&&(o(0,"div",61),a(1," YouTube video URL is required. "),i())}function an(n,m){if(n&1){let e=h();o(0,"div",62)(1,"label",79),a(2,"Question Video YouTube URL"),i(),o(3,"input",80,4),v("ngModelChange",function(t){p(e);let c=d(3);return f(c.question.link,t)||(c.question.link=t),_(t)}),g("change",function(){p(e);let t=d(3);return _(t.getYoutubeEmbedUrl(t.question.link))}),i(),u(5,rn,2,0,"div",49),i()}if(n&2){let e=T(4),r=d(3);l("@slideIn",r.slideInState),s(3),C("ngModel",r.question.link),s(2),l("ngIf",e.invalid&&(e.dirty||e.touched))}}function sn(n,m){if(n&1){let e=h();o(0,"div",94),g("click",function(){p(e);let t=d().$implicit,c=d(4);return _(c.markCorrect(t.value))}),x(1,"i",95),i()}if(n&2){let e=d().$implicit,r=d(4);l("ngClass",b(1,Wt,r.isCorrect(e.value)))}}function ln(n,m){if(n&1){let e=h();o(0,"div",96),g("click",function(){p(e);let t=d().index,c=d(4);return _(c.removeChoice(t))}),x(1,"i",97),i()}}function cn(n,m){n&1&&(o(0,"div",61),a(1," Option is required. "),i())}function dn(n,m){if(n&1){let e=h();o(0,"div",87)(1,"div",88),u(2,sn,2,3,"div",89)(3,ln,2,0,"div",90),i(),o(4,"div",91)(5,"div",92)(6,"input",93,5),g("change",function(){p(e);let t=d(4);return _(t.rewriteChoices())}),v("ngModelChange",function(t){let c=p(e).$implicit;return f(c.value,t)||(c.value=t),_(t)}),i()(),u(8,cn,2,0,"div",49),i()()}if(n&2){let e=m.$implicit,r=m.index,t=T(7),c=d(4);
1l("ngClass",b(12,Dt,t.invalid&&(t.dirty||t.touched))),s(2),l("ngIf",e.value),s(),l("ngIf",c.multipleChoice.length>2),s(3),l("name",F("choice",r+1))("id",F("choice",r+1))("placeholder",F("Choice ",r+1,"...")),C("ngModel",e.value),ye("maxLength",255),s(2),l("ngIf",t.invalid&&(t.dirty||t.touched))}}function mn(n,m){if(n&1){let e=h();o(0,"div",98),g("click",function(){p(e);let t=d(4);return _(t.addChoice())}),a(1," Add Choice "),x(2,"span",99),i()}}function pn(n,m){n&1&&(o(0,"div",100),a(1," At least 2 option are required for multiple choice questions. "),i())}function _n(n,m){n&1&&(o(0,"div",100),a(1," Mark one of the option as correct. "),i())}function un(n,m){if(n&1&&(o(0,"div",81)(1,"div",82),u(2,dn,9,14,"div",83)(3,mn,3,0,"div",84),o(4,"un-alerts",85),a(5," Each option must not exceed 255 characters. "),i()(),u(6,pn,2,0,"div",86)(7,_n,2,0,"div",86),i()),n&2){let e=d(3);s(2),l("ngForOf",e.multipleChoice),s(),l("ngIf",e.multipleChoice.length<6),s(),l("type","info"),s(2),l("ngIf",e.checked&&e.multipleChoice.length<2),s(),l("ngIf",e.checked&&!e.hasCorrectAnswer)}}function gn(n,m){n&1&&(o(0,"span"),a(1,"Add Image"),i())}function xn(n,m){n&1&&(o(0,"span"),a(1,"Remove Image"),i())}function hn(n,m){n&1&&(o(0,"div",61),a(1," Solution is Required. "),i())}function Cn(n,m){if(n&1&&(o(0,"div",72),x(1,"img",73,7),o(3,"div",74)(4,"span",75),a(5,"file_upload"),i(),a(6," Change Image "),i()()),n&2){let e=d(5);s(),l("src",e.question.answer_image_url,K)}}function fn(n,m){n&1&&(o(0,"div",76)(1,"i",54),a(2,"cloud_upload"),i(),o(3,"p")(4,"em",77),a(5,"add_circle"),i(),o(6,"span",78),a(7,"Click here to upload your image"),i()()())}function vn(n,m){if(n&1){let e=h();o(0,"div",106)(1,"div",107),a(2,"Solution Image"),i(),o(3,"div",67)(4,"input",108),g("change",function(t){p(e);let c=d(4);return _(c.onAnswerImageChange(t))}),i(),o(5,"label",109),u(6,Cn,7,1,"div",70)(7,fn,8,0,"div",71),i()()()}if(n&2){let e=d(4);s(6),l("ngIf",e.question.answer_image_url),s(),l("ngIf",!e.question.answer_image_url)}}function bn(n,m){if(n&1){let e=h();o(0,"div")(1,"div",101)(2,"div",102)(3,"button",42),g("click",function(){p(e);let t=d(3);return _(t.answerImage(t.question))}),x(4,"i",43),u(5,gn,2,0,"span",14)(6,xn,2,0,"span",14),i()(),o(7,"div",62)(8,"label",103),a(9,"Solution"),i(),o(10,"textarea",104,6),v("ngModelChange",function(t){p(e);let c=d(3);return f(c.question.answer,t)||(c.question.answer=t),_(t)}),i(),u(12,hn,2,0,"div",49),i()(),u(13,vn,8,2,"div",105),i()}if(n&2){let e=T(11),r=d(3);s(3),l("ngClass",b(6,R,r.question.answer_has_image==1)),s(2),l("ngIf",r.question.answer_has_image==0),s(),l("ngIf",r.question.answer_has_image==1),s(4),C("ngModel",r.question.answer),s(2),l("ngIf",e.invalid&&(e.dirty||e.touched)),s(),l("ngIf",r.question.answer_has_image)}}function Mn(n,m){n&1&&(M(0),o(1,"h3"),a(2,"Keywords & Scoring"),i(),o(3,"p"),a(4," Keyword Example: If the answer is Google Story, then your keywords can be either Google || Story or Google && Story. Google || Story means that answer will be marked as correct if either of the words are present. Google && Story means that answer will be marked as correct if BOTH the words are present. Another one: If the answer is Shahrukh Khan, then your keywords can be either Shahrukh || SRK. "),i(),w())}function wn(n,m){n&1&&(M(0),o(1,"h3"),a(2,"Marks"),i(),o(3,"p"),a(4,"Please assign marks to this question."),i(),w())}function yn(n,m){n&1&&(o(0,"div",61,9),a(2," Marks must be greater than zero "),i())}function kn(n,m){if(n&1){let e=h();o(0,"div",46)(1,"label",110),a(2,"Marks "),i(),o(3,"input",111,8),v("ngModelChange",function(t){p(e);let c=d(3);return f(c.question.marks,t)||(c.question.marks=t),_(t)}),i(),u(5,yn,3,0,"div",49),i()}if(n&2){let e=T(4),r=d(3);s(3),l("ngClass",b(3,Bt,e.invalid&&(e.dirty||e.touched)||r.question.marks<1)),C("ngModel",r.question.marks),s(2),l("ngIf",e.invalid&&(e.dirty||e.touched)||r.question.marks<1)}}function On(n,m){n&1&&(o(0,"div",123),a(1," Marks "),i())}function Pn(n,m){n&1&&(o(0,"div",137,9),a(2," Field can't be empty "),i())}function Sn(n,m){n&1&&(o(0,"div",137,9),a(2," Marks must be greater than zero "),i())}function Tn(n,m){if(n&1){let e=h();o(0,"div",129)(1,"div",39)(2,"div",130)(3,"label",131),a(4,"Keyword"),i(),o(5,"input",132,10),v("ngModelChange",function(t){p(e);let c=d(2).$implicit;return f(c.keyword,t)||(c.keyword=t),_(t)}),i(),u(7,Pn,3,0,"div",133),i(),o(8,"div",130)(9,"label",134),a(10,"Keyword Marks"),i(),o(11,"input",135,11),v("ngModelChange",function(t){p(e);let c=d(2).$implicit;return f(c.marks,t)||(c.marks=t),_(t)}),i(),u(13,Sn,3,0,"div",136),i()()()}if(n&2){let e=T(6),r=T(12),t=d(2),c=t.$implicit,y=t.index,S=d(4);l("ngClass",S.question!=null&&S.question.is_part_point_enable?"m10":"no-padding-right"),s(3),l("for",F("keyword",y)),s(2),l("id",F("keyword",y))("name",F("keyword",c.uid?c.uid:y)),C("ngModel",c.keyword),s(2),l("ngIf",e.invali
1d&&(e.dirty||e.touched)),s(2),l("for",F("keyword_marks",y)),s(2),l("id",F("keyword_marks",y))("name",F("keyword_marks",c.uid?c.uid:y)),C("ngModel",c.marks),s(2),l("ngIf",r.invalid&&(r.dirty||r.touched)||c.marks<=0)}}function En(n,m){if(n&1){let e=h();o(0,"a",142),g("click",function(){p(e);let t=d(3).index,c=d(4);return _(c.removeKeyword(t))}),o(1,"i",54),a(2,"remove"),i()()}}function Fn(n,m){if(n&1){let e=h();o(0,"div",138)(1,"div",139)(2,"a",140),g("click",function(){p(e);let t=d(2).index,c=d(4);return _(c.addKeyword(t))}),o(3,"i",54),a(4,"add"),i()(),u(5,En,3,0,"a",141),i()()}if(n&2){let e=d(6);s(5),l("ngIf",e.question.keywords.length>1)}}function qn(n,m){if(n&1&&(o(0,"div",125)(1,"div",126),u(2,Tn,14,17,"div",127)(3,Fn,6,1,"div",128),i()()),n&2){let e=d().index,r=d(4);s(2),l("ngIf",(r.question==null?null:r.question.is_part_point_enable)||e==0),s(),l("ngIf",r.question.is_part_point_enable)}}function Vn(n,m){if(n&1&&(M(0),u(1,qn,4,2,"div",124),w()),n&2){let e=m.index,r=d(4);s(),l("ngIf",(r.question==null?null:r.question.is_part_point_enable)||e==0)}}function In(n,m){n&1&&(o(0,"div",143)(1,"span",null,9),a(3,"Please fill in at least two keywords."),i()())}function An(n,m){if(n&1){let e=h();o(0,"div",112)(1,"div",113),a(2,"Parts Point"),i(),o(3,"div",39)(4,"div",114)(5,"div",115)(6,"div",116)(7,"label"),a(8," NO "),o(9,"input",117),v("ngModelChange",function(t){p(e);let c=d(3);return f(c.question.is_part_point_enable,t)||(c.question.is_part_point_enable=t),_(t)}),i(),x(10,"span",118),a(11," Yes "),i()()()(),u(12,On,2,0,"div",119),i(),o(13,"div",120),u(14,Vn,2,1,"ng-container",121),i(),u(15,In,4,0,"div",122),i()}if(n&2){let e=d(3);s(9),l("value",1),C("ngModel",e.question.is_part_point_enable),s(3),l("ngIf",e.question.answer_type>1),s(2),l("ngForOf",e.question==null?null:e.question.keywords),s(),l("ngIf",e.question.answer_type!=1&&e.question.is_part_point_enable&&e.question.keywords.length<2)}}function zn(n,m){n&1&&(o(0,"div",61),a(1," Value must be positive "),i())}function Qn(n,m){if(n&1){let e=h();o(0,"div",52)(1,"div",39)(2,"div",40)(3,"h3"),a(4,"Negative Marking"),i(),o(5,"p"),a(6," Deduct scores for incorrect answers (Do not add minus sign). "),i()(),o(7,"div",45)(8,"div",46)(9,"input",144,12),v("ngModelChange",function(t){p(e);let c=d(3);return f(c.question.wrong_penalty,t)||(c.question.wrong_penalty=t),_(t)}),i(),u(11,zn,2,0,"div",49),i()()()()}if(n&2){let e=d(3);s(9),C("ngModel",e.question.wrong_penalty),s(2),l("ngIf",e.question.wrong_penalty<0)}}function Hn(n,m){n&1&&(o(0,"div",61),a(1," Value must be positive "),i())}function Ln(n,m){if(n&1){let e=h();o(0,"div",52)(1,"div",39)(2,"div",40)(3,"h3"),a(4,"Negative Marking "),o(5,"un-tags",145),a(6,"Admin"),i()(),o(7,"p"),a(8," Deduct scores for incorrect answers (Do not add minus sign). "),i()(),o(9,"div",45)(10,"div",46)(11,"input",144,12),v("ngModelChange",function(t){p(e);let c=d(3);return f(c.question.wrong_penalty,t)||(c.question.wrong_penalty=t),_(t)}),i(),u(13,Hn,2,0,"div",49),i()()()()}if(n&2){let e=d(3);s(5),l("size","sm")("bgColor","red-100")("textColor","red-900")("close_icon",!1),s(6),C("ngModel",e.question.wrong_penalty),s(2),l("ngIf",e.question.wrong_penalty<0)}}function Dn(n,m){n&1&&(o(0,"div",61),a(1," Value must be positive "),i())}function Wn(n,m){if(n&1){let e=h();o(0,"div",146)(1,"div",39)(2,"div",40)(3,"h3"),a(4," Skip Marking "),o(5,"un-tags",145),a(6,"Admin"),i()(),o(7,"p"),a(8,"Deduct scores if not answered (Do not add minus sign)"),i()(),o(9,"div",45)(10,"div",46)(11,"input",147,13),v("ngModelChange",function(t){p(e);let c=d(3);return f(c.question.skip_penalty,t)||(c.question.skip_penalty=t),_(t)}),i(),u(13,Dn,2,0,"div",49),i()()()()}if(n&2){let e=d(3);s(5),l("size","sm")("bgColor","red-100")("textColor","red-900")("close_icon",!1),s(6),C("ngModel",e.question.skip_penalty),s(2),l("ngIf",e.question.skip_penalty<0)}}function Bn(n,m){if(n&1&&(o(0,"div",120),x(1,"img",155),i()),n&2){let e=d(5);s(),l("src",ie(e.question==null?null:e.question.question_image_url),K)}}function jn(n,m){if(n&1&&(M(0),u(1,Bn,2,2,"div",154),w()),n&2){let e=d(4);s(),l("ngIf",e.question==null?null:e.question.question_image_url)}}function Nn(n,m){if(n&1&&(o(0,"div",120),x(1,"iframe",156),i()),n&2){let e=d(5
1);s(),l("src",e.question.link,we)}}function Rn(n,m){if(n&1&&(M(0),u(1,Nn,2,1,"div",154),w()),n&2){let e=d(4);s(),l("ngIf",e.question==null?null:e.question.link)}}function Un(n,m){if(n&1&&(o(0,"div",158),x(1,"span"),a(2),i()),n&2){let e=m.$implicit;s(2),q(" ",e==null?null:e.value," ")}}function Kn(n,m){if(n&1&&(M(0),u(1,Un,3,1,"div",157),w()),n&2){let e=d(4);s(),l("ngForOf",e.options)}}function Gn(n,m){n&1&&(M(0),x(1,"div",159),w())}function Yn(n,m){if(n&1&&(M(0),o(1,"un-alerts",148),a(2," This is the actual representation of the quiz for the candidate. "),i(),o(3,"div",149)(4,"strong"),a(5,"Question. "),i(),x(6,"div",150),u(7,jn,2,1,"ng-container",14)(8,Rn,2,1,"ng-container",14),i(),o(9,"div",151)(10,"div",152)(11,"strong"),a(12,"Answer."),i(),o(13,"span",153),a(14),i()(),u(15,Kn,2,1,"ng-container",14)(16,Gn,2,0,"ng-container",14),i(),w()),n&2){let e=d(3);s(),l("type","info"),s(5),l("innerHTML",e.question==null?null:e.question.question,ee),s(),l("ngIf",e.question.question_type==2),s(),l("ngIf",e.question.question_type==3),s(6),q("Marks. ",e.question!=null&&e.question.total_marks?e.question==null?null:e.question.total_marks:e.question==null?null:e.question.marks),s(),l("ngIf",(e.question==null?null:e.question.answer_type)==1),s(),l("ngIf",(e.question==null?null:e.question.answer_type)!=1)}}function Jn(n,m){if(n&1){let e=h();o(0,"form",36,1)(2,"div",37)(3,"div",38)(4,"div",39)(5,"div",40)(6,"h3"),a(7,"Question Type"),i(),o(8,"p"),a(9," Please select the question type from the below buttons. It could be either normal text or with image or with a YouTube video. "),i(),o(10,"div",41)(11,"button",42),g("click",function(){p(e);let t=d(2);return _(t.questionImage(t.question))}),x(12,"i",43),u(13,Gt,2,0,"span",14)(14,Yt,2,0,"span",14),i(),o(15,"button",42),g("click",function(){p(e);let t=d(2);return _(t.questionVideo(t.question))}),x(16,"i",44),u(17,Jt,2,0,"span",14)(18,Xt,2,0,"span",14),i()()(),o(19,"div",45)(20,"div",46)(21,"label",47),a(22,"Question"),i(),o(23,"simple-tiny",48,2),g("contentChange",function(){p(e);let t=d(2);return _(t.errorStatus(t.question.question))}),v("contentChange",function(t){p(e);let c=d(2);return f(c.question.question,t)||(c.question.question=t),_(t)}),i(),u(25,Zt,2,0,"div",49),i(),u(26,$t,4,4,"div",50)(27,on,9,3,"div",51)(28,an,6,3,"div",50),i()()(),o(29,"div",52)(30,"div",39)(31,"div",40)(32,"h3"),a(33,"Answer Type"),i(),o(34,"p"),a(35," Please select the answer type from the below buttons. It could be either multiple choice or single line text or a paragraph. "),i(),o(36,"div",41)(37,"button",42),g("click",function(){p(e);let t=d(2);return _(t.question.answer_type=1)}),x(38,"i",53),o(39,"span"),a(40,"Multiple Choice"),i()(),o(41,"button",42),g("click",function(){p(e);let t=d(2);return _(t.question.answer_type=2)}),o(42,"i",54),a(43,"short_text"),i(),o(44,"span"),a(45,"Single Line"),i()(),o(46,"button",42),g("click",function(){p(e);let t=d(2);return _(t.question.answer_type=3)}
1),o(47,"i",54),a(48,"subject"),i(),o(49,"span"),a(50,"Text Box"),i()()()(),o(51,"div",45),u(52,un,8,5,"div",55)(53,bn,14,8,"div",14),i()()(),o(54,"div",52)(55,"div",39)(56,"div",40),u(57,Mn,5,0,"ng-container",14),a(58),u(59,wn,5,0,"ng-container",14),i(),o(60,"div",56),u(61,kn,6,5,"div",57)(62,An,16,5,"div",58),i()()(),u(63,Qn,12,2,"div",59)(64,Ln,14,6,"div",59)(65,Wn,14,6,"div",60),i()(),u(66,Yn,17,7,"ng-container",14)}if(n&2){let e=d(2);s(11),l("ngClass",b(27,R,e.question.question_type==2)),s(2),l("ngIf",e.question.question_type==2),s(),l("ngIf",e.question.question_type!=2),s(),l("ngClass",b(29,R,e.question.question_type==3)),s(2),l("ngIf",e.question.question_type==3),s(),l("ngIf",e.question.question_type!=3),s(5),l("elementId","my-editor-id2")("activeToolbar2",!0),C("content",e.question.question),s(2),l("ngIf",e.questionError),s(),l("ngIf",e.quizType==5),s(),l("ngIf",e.question.question_type==2),s(),l("ngIf",e.question.question_type==3),s(9),l("ngClass",b(31,R,e.question.answer_type==1)),s(4),l("ngClass",b(33,R,e.question.answer_type==2)),s(5),l("ngClass",b(35,R,e.question.answer_type==3)),s(6),l("ngIf",e.question.answer_type==1),s(),l("ngIf",e.question.answer_type==2||e.question.answer_type==3),s(4),l("ngIf",e.question.answer_type!=1),s(),q(" ",e.question.answer_type," "),s(),l("ngIf",e.question.answer_type==1),s(2),l("ngIf",e.question.answer_type==1),s(),l("ngIf",e.question.answer_type!=1),s(),l("ngIf",(e.question==null?null:e.question.answer_type)==1),s(),l("ngIf",(e.question==null?null:e.question.answer_type)!=1&&e.isAdmin),s(),l("ngIf",e.isAdmin),s(),l("ngIf",e.mode=="view")}}function Xn(n,m){if(n&1&&(o(0,"div",23)(1,"div",24)(2,"div",25)(3,"button",26),a(4,"Upload"),i()(),o(5,"ul",27),u(6,Rt,11,4,"li",28),i()(),o(7,"div",29),u(8,Kt,14,2,"ng-container",30),i(),u(9,Jn,67,37,"ng-template",null,0,H),i()),n&2){let e=T(10),r=d();s(6),l("ngForOf",_e(3,Qt)),s(2),l("ngIf",r.questionMode=="view")("ngIfElse",e)}}var at=(()=>{class n{constructor(){this.questionMode="view",this.question={question:"",question_type:1,answer_type:1,answer_has_image:0,is_part_point_enable:0,quiz_id:0,id:"id",question_image_url:null,answer_image_url:null,keywords:[{keyword:"",marks:""}],keyword:"",marks:0,total_marks:null,tags:[],quiz_tags:[],localQues:!0},this.multipleChoice=["",""]}ngOnInit(){}questionImage(e){e.question_type==2?e.question_type=1:e.question_type=2}questionVideo(e){e.question_type==3?e.question_type=1:e.question_type=3}answerImage(e){e.answer_has_image==1?e.answer_has_image=0:e.answer_has_image=1}totalMarks(){let e=0;return this.question.keywords&&(this.question.keywords.forEach(r=>{e=+e+ +r.marks}),this.question.marks=e),this.question.marks}static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275cmp=E({type:n,selectors:[["app-course-quiz-form"]],inputs:{activeTab:"activeTab"},standalone:!1,decls:3,vars:3,consts:[["questionForm",""],["addQuestionForm","ngForm"],["questionEditor",""],["question_image",""],["videoLink","ngModel"],["formMultipleChoice","ngModel"],["formSolution","ngModel"],["answer_image",""],["formTotalMark","ngModel"],["error_field",""],["formKeyword","ngModel"],["formKeywordMarks","ngModel"],["formWrongMarks","ngModel"],["formSkipMarks","ngModel"],[4,"ngIf"],["class","d-flex ques-panel justify-space-between",4,"ngIf"],[1,"input_fields"],["for","quiz-title"],["type","text","id","quiz-title"],["for","quiz-ques"],["type","number","id","quiz-ques"],["for","quiz-duration"],["type","number","id","quiz-duration"],[1,"d-flex","ques-panel","justify-space-between"],[1,"left-side"],[1,"btns"],[1,"btn"],[1,"ques-list"],[3,"ngClass",4,"ngFor","ngForOf"],[1,"right-side"],[4,"ngIf","ngIfElse"],[3,"ngClass"],[1,"ques-bar","d-flex","justify-space-between"],[1,"btn",3,"click"],["class","mcq",4,"ngFor","ngForOf"],[1,"mcq"],["action","",1,"ques_form"],[1,"clearfix","question-main"],[1,"question-parts","bdr_box","clearfix","mt-0"],[1,"row"],[1,"col","s12","m4","left_box"],[1,"buttons","mt-20"],[3,"click","ngClass"],[1,"fa","fa-file-image-o"],[1,"fa","fa-file-movie-o"],[1,"col","s12","m8","question-fields"],[1,"input_field"],[1,"required","label"],[3,"contentChange","elementId","activeToolbar2","content"],["class","errors",4,"ngIf"],["class","input_field mt-15",4,"ngIf"],["class","clearfix mt-15",4,"ngIf"],[1,"question-parts","bdr_box","clearfix"],[1,"fa","fa-dot-circle-o"],[1,"material-icons"],["class","position-relative",4,"ngIf"],[1,"col","s12","m8","question-fields","position-relative","parts_point"],["class","input_field",4,"ngIf"],["class","form-group clearfix","style","overflow: hidden",4,"ngIf"],["class","question-parts bdr_box clearfix",4,"ngIf"],["class","question-parts bdr_box clearfix red-border",4,"ngIf"],[1,"errors"],[1,"input_field","mt-15"],["for","hint_link",1,"label",3,"ngClass"],["
1id","hint_link","name","hint_link",3,"ngModelChange","ngModel"],[1,"clearfix","mt-15"],[1,"label","required"],[1,"file-upload-area"],["type","file","id","quest-img","required","",3,"change"],["for","quest-img"],["class","change-image position-relative",4,"ngIf"],["class","upload-image center-align",4,"ngIf"],[1,"change-image","position-relative"],["alt","question image",3,"src"],[1,"change-image-btn"],[1,"material-icons","d-block"],[1,"upload-image","center-align"],[1,"v-align","mr-5","material-icons","font-18"],[1,"v-align","font-14"],["for","question_video",1,"label","required"],["id","question_video","name","link","type","text","required","",1,"validate",3,"ngModelChange","change","ngModel"],[1,"position-relative"],[1,"list"],["class","item",3,"ngClass",4,"ngFor","ngForOf"],["class","btn br-4",3,"click",4,"ngIf"],[1,"d-block","mt-20",3,"type"],["class","errors errors_btm",4,"ngIf"],[1,"item",3,"ngClass"],[1,"right","floated","content"],["class","button",3,"ngClass","click",4,"ngIf"],["class","button red-bg-hover",3,"click",4,"ngIf"],[1,"content","content-main"],[1,"transparent","input"],["type","text","type","text","required","",3,"change","ngModelChange","name","id","ngModel","placeholder"],[1,"button",3,"click","ngClass"],[1,"fa","fa-check"],[1,"button","red-bg-hover",3,"click"],[1,"fa","fa-trash"],[1,"btn","br-4",3,"click"],[1,"fa","fa-plus","ml-5"],[1,"errors","errors_btm"],[1,"col","s12","no-padding"],[1,"buttons"],["for","solution",1,"label","required"],["id","solution","name","answer","required","",1,"materialize-textarea",3,"ngModelChange","ngModel"],["class","clearfix",4,"ngIf"],[1,"clearfix"],[1,"label","mt-15"],["type","file","id","answer-img",3,"change"],["for","answer-img"],["for","marks",1,"required","label"],["id","marks","type","text","name","marks","required","",1,"ui",3,"ngModelChange","ngClass","ngModel"],[1,"form-group","clearfix",2,"overflow","hidden"],[1,"label"],[1,"col","m6"],[1,"edit-fields","inline"],[1,"switch"],["type","checkbox","name","is_part_point_enable",3,"ngModelChange","value","ngModel"],[1,"lever"],["class","col m6 total_marks_info right-align",4,"ngIf"],[1,"mt-20"],[4,"ngFor","ngForOf"],["class","errors point_errors",4,"ngIf"],[1,"col","m6","total_marks_info","right-align"],["class","keyword-field",4,"ngIf"],[1,"keyword-field"],[1,"align-center"],["class","col s12",3,"ngClass",4,"ngIf"],["class","col s12 m2 input-field no-bg",4,"ngIf"],[1,"col","s12",3,"ngClass"],[1,"input_field","col","s12","m6"],[1,"label","required",3,"for"],["type","text","required","",1,"validate",3,"ngModelChange","id","name","ngModel"],["style","right: 20px","class","errors",4,"ngIf"],[1,"label","required","mt-10",3,"for"],["type","number","required","",1,"validate",3,"ngModelChange","id","name","ngModel"],["class","errors","style","right: 20px",4,"ngIf"],[1,"errors",2,"right","20px"],[1,"col","s12","m2","input-field","no-bg"],[1,"ctrls","right-align"],[1,"btn-floating","waves-effect","waves-light","green",3,"click"],["class","btn-floating waves-effect waves-light red",3,"click",4,"ngIf"],[1,"btn-floating","waves-effect","waves-light","red",3,"click"],[1,"errors","point_errors"],["id","wrong","type","text","name","wrong",1,"ui",3,"ngModelChange","ngModel"],[3,"size","bgColor","textColor","close_icon"],[1,"question-parts","bdr_box","clearfix","red-border"],["id","skip","type","text","name","skip",1,"ui",3,"ngModelChange","ngModel"],[1,"d-block","mb-20",3,"type"],[1,"question-panel"],[1,"mt-10",3,"innerHTML"],[1,"answer-panel","mt-30"],[1,"j-between","mb-15"],[1,"mrk"],["class","mt-20",4,"ngIf"],["alt","Question Image",3,"src"],["width","560","height","315","frameborder","0","allowfullscreen","",3,"src"],["class","input-field",4,"ngFor","ngForOf"],[1,"input-field"],[1,"txt-field"]],template:function(r,t){r&1&&u(0,jt,13,0,"div",14)(1,Nt,1,0,"div",14)(2,Xn,11,4,"div",15),r&2&&(l("ngIf",t.activeTab=="quizbasic"),s(),l("ngIf",t.activeTab=="quizbank"),s(),l("ngIf",t.activeTab=="quizquestions"))},dependencies:[z,D,Q,Le,W,Y,re,B,Qe,N,j,He,ae,J,X,ce,We],styles:['.ques-panel[_ngcontent-%COMP%]{max-height:calc(100vh - 160px);overflow:hidden}
1.ques-panel[_ngcontent-%COMP%] .left-side[_ngcontent-%COMP%]{width:280px;background:var(--grey-00);box-shadow:0 0 15px #186edf1a;border-radius:4px;padding:15px;height:100vh}.ques-panel[_ngcontent-%COMP%] .left-side[_ngcontent-%COMP%] .btns[_ngcontent-%COMP%]{padding:10px;border-bottom:1px solid #ddd}.ques-panel[_ngcontent-%COMP%] .left-side[_ngcontent-%COMP%] .ques-list[_ngcontent-%COMP%]{overflow-y:auto;max-height:calc(100vh - 250px);padding-right:10px}.ques-panel[_ngcontent-%COMP%] .left-side[_ngcontent-%COMP%] .ques-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding:5px;margin-bottom:15px}.ques-panel[_ngcontent-%COMP%] .left-side[_ngcontent-%COMP%] .ques-list[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{border:3px solid var(--blue-700);border-radius:8px}.ques-panel[_ngcontent-%COMP%] .ques-bar[_ngcontent-%COMP%]{padding:10px;background:var(--grey-00);margin-bottom:20px;box-shadow:0 0 15px #186edf1a;border-radius:8px;position:relative;display:flex;justify-content:space-between;width:100%;align-items:center;transition:all .4s}.ques-panel[_ngcontent-%COMP%] .right-side[_ngcontent-%COMP%]{padding:15px;background:var(--grey-00);box-shadow:0 0 15px #186edf1a;width:calc(100% - 300px);overflow-y:auto}.ques-panel[_ngcontent-%COMP%] .right-side[_ngcontent-%COMP%] .mcq[_ngcontent-%COMP%]{background-color:#d8d8d8;position:relative;padding:5px 5px 5px 40px;border-radius:4px}.ques-panel[_ngcontent-%COMP%] .right-side[_ngcontent-%COMP%] .mcq[_ngcontent-%COMP%]:before{content:"";position:absolute;left:10px;top:0;width:18px;height:18px;border:2px solid #ccc;bottom:0;background:var(--grey-00);border-radius:50%;margin:auto}.next_btns[_ngcontent-%COMP%]{position:fixed;bottom:8px;right:80px;z-index:999}.next_btns[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background:#0cb66e;box-shadow:0 -2px 4px #186edf1a,0 4px 15px #186edf1a;border-radius:4px;width:120px;height:40px;color:var(--grey-00);font-size:15px;display:inline-flex;align-items:center;justify-content:center}.next_btns[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:disabled{background:var(--grey-100)!important;color:var(--grey-500);pointer-events:none}@media (max-width: 767px){.next_btns[_ngcontent-%COMP%]{right:15px}.next_btns[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:110px;font-size:14px}}.label[_ngcontent-%COMP%]{font-size:13px;color:var(--grey-1100);display:inline-block;margin-bottom:10px;position:relative;font-weight:500;line-height:100%}.label.required[_ngcontent-%COMP%]:after{color:var(--red-700);content:"*";position:absolute;margin-left:5px;top:0;right:-10px}.errors[_ngcontent-%COMP%]{color:var(--red-700);position:absolute;bottom:-6px;font-size:12px;right:10px;background:var(--grey-00)}.errors.errors_btm[_ngcontent-%COMP%]{bottom:-25px;background:transparent}.question-parts[_ngcontent-%COMP%]{margin:20px 0;padding-right:20px}.question-parts[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{display:block}.question-parts[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .m4[_ngcontent-%COMP%], .question-parts[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .m6[_ngcontent-%COMP%], .question-parts[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .m8[_ngcontent-%COMP%]{width:100%}.question-parts[_ngcontent-%COMP%] .left_box[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:14px;color:#333;font-weight:500;margin:0 0 10px;display:inline-block}.question-parts[_ngcontent-%COMP%] .left_box[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--grey-800);margin:0;font-size:13px;line-height:19px}.question-parts[_ngcontent-%COMP%] .input_field[_ngcontent-%COMP%]{position:relative}.question-parts[_ngcontent-%COMP%] .input_field[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .question-parts[_ngcontent-%COMP%] .input_field[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{border:1px solid #b3b3b3;border-radius:4px;background:var(--grey-00);padding:0 10px;box-sizing:border-box;margin-bottom:0}.question-parts[_ngcontent-%COMP%] .input_field[_ngcontent-%COMP%] input.invalid[_ngcontent-%COMP%], .question-parts[_ngcontent-%COMP%] .input_field[_ngcontent-%COMP%] textarea.invalid[_ngcontent-%COMP%]{border:1px solid #f44336;box-shadow:none}.question-parts[_ngcontent-%COMP%] .input_field[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus, .question-parts[_ngcontent-%COMP%] .input_field[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:focus{border-color:#176ede66;box-shadow:0 0 5px #176ede33}.question-parts[_ngcontent-%COMP%] .input_field[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{padding:10px;display:block}@media (max-width: 1024px){.question-parts[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.question-parts[_ngcontent-%COMP%] .left_box[_ngcontent-%COMP%]{padding:0;width:100%;margin-bottom:15px}.question-parts[_ngcontent-%COMP%] .question-fields[_ngcontent-%COMP%]{width:100%;padding:0}}@media (max-width: 767px){.question-parts[_ngcontent-%COMP%]{margin:10px 0;border-radius:0}}@media (max-width: 767px){.question-parts[_ngcontent-%COMP%]{padding-right:10px}}.question-fields[_ngcontent-%COMP%]{padding:10px}.parts_point[_ngcontent-%COMP%] .point_errors[_ngcontent-%COMP%]{bottom:3px;right:15px;padding:0 5px}.input-field[_ngcontent-%COMP%]{margin:0 0 12px;padding:12px;background:#e3e3e3;border-radius:4px;display:flex;align-items:center}.input-field.no-bg[_ngcontent-%COMP%]{background:none}.input-field[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{border:2px solid #5a5a5a;width:16px;height:16px;margin-right:10px;border-radius:50%}.file-upload-area[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{background:var(--grey-00);cursor:pointer;padding:4px;position:static;display:block;min-height:150px;border-radius:4px;box-shadow:0 0 2px #0000001a;position:relative}.file-upload-area[_ngcontent-%COMP%] label[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:100%;max-height:180px;display:block;margin:0 auto}.file-upload-area[_ngcontent-%COMP%] input[type=file][_ngcontent-%COMP%]{display:none}.file-upload-area[_ngcontent-%COMP%] .change-image[_ngcontent-%COMP%]{min-height:142px}.total_marks_info[_ngcontent-%COMP%]{font-size:15px;font-weight:700;color:#625252}.ui.active.button[_ngcontent-%COMP%]{background:var(--blue-700);color:var(--grey-00)}.ctrls[_ngcontent-%COMP%] .btn-floating[_ngcontent-%COMP%]{width:26px;height:26px;line-height:0px}.ctrls[_ngcontent-%COMP%] .btn-floating[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:16px;line-height:27px}@media (max-width: 1024px){form[_ngcontent-%COMP%]{width:100%}}.change-image[_ngcontent-%COMP%]:hover .change-image-btn[_ngcontent-%COMP%]{max-height:100px;visibility:visible;opacity:1}.change-image-btn[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;text-align:center;width:100%;background:#00000080;color:var(--grey-00);padding:10px;max-height:0px;visibility:hidden;opacity:0;transition:.4s}.upload-image[_ngcontent-%COMP%]{min-height:140px;
1display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--grey-800)}.upload-image[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:60px;margin-bottom:10px;color:#38843b}.upload-image[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#38843b;font-weight:500}label.has-value[_ngcontent-%COMP%]{left:0!important}.list[_ngcontent-%COMP%] > .item[_ngcontent-%COMP%]{position:relative;border:none!important}.list[_ngcontent-%COMP%] > .item[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{border-radius:50%;width:32px;height:33px;display:inline-flex;align-items:center;justify-content:center;padding:0;margin:7px 5px 0 0;font-size:14px;background:#e0e1e2;color:#0009;cursor:pointer;transition:.3s}.list[_ngcontent-%COMP%] > .item[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]:hover{background-color:#38843b;color:var(--grey-00)}.list[_ngcontent-%COMP%] > .item[_ngcontent-%COMP%] .button.green[_ngcontent-%COMP%]{color:var(--grey-00)}@media (max-width: 767px){.list[_ngcontent-%COMP%] > .item[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{width:30px;height:30px;font-size:16px}}.list[_ngcontent-%COMP%] > .item.invalid-column[_ngcontent-%COMP%] .content-main[_ngcontent-%COMP%]{border-color:#f44336!important}.list[_ngcontent-%COMP%] > .item[_ngcontent-%COMP%] .content-main[_ngcontent-%COMP%]{border:1px solid #b3b3b3;border-radius:4px;background:var(--grey-00);padding:0 10px;box-sizing:border-box;margin-bottom:10px}.list[_ngcontent-%COMP%] > .item[_ngcontent-%COMP%] .content-main[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]{width:calc(100% - 100px)}.list[_ngcontent-%COMP%] > .item[_ngcontent-%COMP%] .content-main[_ngcontent-%COMP%] .input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{margin-bottom:0;border-color:transparent!important;background-color:transparent!important;padding:0!important;box-shadow:none!important}@media (max-width: 767px){.list[_ngcontent-%COMP%] > .item[_ngcontent-%COMP%] .content-main[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]{width:calc(100% - 85px)}}.field_errors[_ngcontent-%COMP%]{color:#f44336;font-weight:500;position:absolute;bottom:0;font-size:12px}.buttons[_ngcontent-%COMP%]{display:flex;align-items:center;border-radius:4px;overflow:hidden}.buttons[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:20px;margin-right:10px}.buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:14px;background:var(--grey-200);color:var(--grey-1100);padding:10px 5px;transition:.3s;flex:0 0 32.333%;border-radius:4px;margin-right:10px;display:flex;align-items:center;justify-content:center}.buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:#125dde;color:var(--grey-00)}.buttons[_ngcontent-%COMP%] button.active[_ngcontent-%COMP%]{background:var(--blue-700);color:var(--grey-00)}.buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{border-right:0}@media (max-width: 767px){.buttons[_ngcontent-%COMP%]{flex-wrap:wrap}.buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{flex:none;margin-bottom:10px;padding:10px 15px}}.txt-field[_ngcontent-%COMP%]{height:100px;border:1px solid #ddd;border-radius:4px}.keyword-field[_ngcontent-%COMP%]{padding:5px 10px 10px 0;background:var(--grey-00);margin:0 0 10px!important;border:1px solid #eaeaea;border-radius:4px}.keyword-field[_ngcontent-%COMP%]:last-child{margin-bottom:0!important}@media (max-width: 992px){.keyword-field[_ngcontent-%COMP%] .input_field[_ngcontent-%COMP%]{margin-bottom:10px}.keyword-field[_ngcontent-%COMP%] .no-padding-left[_ngcontent-%COMP%]{padding-right:0}.keyword-field[_ngcontent-%COMP%] .input-field[_ngcontent-%COMP%]{margin-top:0}.keyword-field[_ngcontent-%COMP%] .input-field[_ngcontent-%COMP%] .mt-15[_ngcontent-%COMP%]{margin-top:5px!important}}.question-panel[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:15px}.question-panel[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:10px}.question-panel[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:last-child{margin-bottom:0}.question-panel[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:100%;display:block;margin:auto}.answer-panel[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:15px}.answer-panel[_ngcontent-%COMP%] .mrk[_ngcontent-%COMP%]{background:#38843b;color:var(--grey-00);padding:5px 15px;border-radius:50px}.question-panel[_ngcontent-%COMP%] iframe[_ngcontent-%COMP%]{width:100%}.question-panel[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:100%;display:block}@media (max-width: 767px){.ques_form[_ngcontent-%COMP%]{max-height:70vh;overflow:hidden;overflow-y:auto}}'],data:{animation:[Ae]}})}}return n})();var U=n=>({active:n});function $n(n,m){if(n&1){let e=h();o(0,"div",12),a(1),x(2,"br"),a(3),o(4,"div",13)(5,"div",14),g("click",function(){let t=p(e).$implicit,c=d();return _(c.editAssementModuel(t.id,t.entity_type))}),x(6,"i",15),i(),o(7,"div",16),g("click",function(){let t=p(e),c=t.$implicit,y=t.index,S=d();return _(S.deleteAssementModuel(c.id,c.entity_type,y))}),x(8,"i",17),i()()()}if(n&2){let e=m.$implicit;s(),q(" ",e.title," "),s(2),q(" ",e.entity_type," ")}}function ei(n,m){}function ti(n,m){n&1&&u(0,ei,0,0,"ng-template")}function ni(n,m){if(n&1&&(M(0),u(1,ti,1,0,null,26),w()),n&2){d(2);let e=T(17);s(),l("ngTemplateOutlet",e)}}function ii(n,m){}function oi(n,m){n&1&&u(0,ii,0,0,"ng-template")}function ri(n,m){if(n&1&&(M(0),u(1,oi,1,0,null,26),w()),n&2){d(2);let e=T(19);s(),l("ngTemplateOutlet",e)}}function ai(n,m){}function si(n,m){n&1&&u(0,ai,0,0,"ng-template")}function li(n,m){if(n&1&&(o(0,"div",27),u(1,si,1,0,null,26),i()),n&2){d(2);let e=T(15);s(),l("ngTemplateOutlet",e)}}function ci(n,m){}
1function di(n,m){n&1&&u(0,ci,0,0,"ng-template")}function mi(n,m){if(n&1&&(M(0),u(1,di,1,0,null,26),w()),n&2){d(2);let e=T(21);s(),l("ngTemplateOutlet",e)}}function pi(n,m){if(n&1){let e=h();o(0,"div",28)(1,"button",29),g("click",function(){p(e);let t=d(2);return _(t.hackathoneModal=!1)}),a(2," Close "),i(),o(3,"button",30),g("click",function(){p(e);let t=d(2);return _(t.SaveAssementHackathone())}),a(4," Save "),i()()}}function _i(n,m){if(n&1){let e=h();o(0,"div",28)(1,"button",29),g("click",function(){p(e);let t=d(2);return _(t.hackathoneModal=!1)}),a(2," Close "),i(),o(3,"button",30),g("click",function(){p(e);let t=d(2);return _(t.SaveAssementHackathone())}),a(4," Save "),i()()}}function ui(n,m){if(n&1){let e=h();o(0,"button",30),g("click",function(){p(e);let t=d(3);return _(t.SaveAssementHackathoneSolution())}),a(1," Save "),i()}}function gi(n,m){if(n&1){let e=h();o(0,"button",30),g("click",function(){p(e);let t=d(3);return _(t.SaveAssementHackathoneQuestion())}),a(1," Save "),i()}}function xi(n,m){if(n&1){let e=h();o(0,"div",28)(1,"button",29),g("click",function(){p(e);let t=d(2);return _(t.hackChallengeEdit=!1)}),a(2," Close "),i(),u(3,ui,2,0,"button",31)(4,gi,2,0,"button",31),i()}if(n&2){let e=d(2);s(3),l("ngIf",e.activeChallengeTab=="solution"),s(),l("ngIf",e.activeChallengeTab!="solution")}}function hi(n,m){if(n&1){let e=h();o(0,"div",18)(1,"div",19)(2,"div",20),g("click",function(){p(e);let t=d();return _(t.hackathoneModal=!1)}),x(3,"em",21),i(),o(4,"div",22),u(5,ni,2,1,"ng-container",23)(6,ri,2,1,"ng-container",23)(7,li,2,1,"div",24)(8,mi,2,1,"ng-container",23),i(),o(9,"div"),u(10,pi,5,0,"div",25)(11,_i,5,0,"div",25)(12,xi,5,2,"div",25),i()()()}if(n&2){let e=d();s(5),l("ngIf",!e.hackChallengeEdit),s(),l("ngIf",e.hackChallengeEdit),s(),l("ngIf",!e.hackChallengeEdit&&e.activehackModalTab=="hackbasicDetails"),s(),l("ngIf",e.activehackModalTab=="hackChallenges"&&!e.hackChallengeEdit),s(2),l("ngIf",!e.hackChallengeEdit&&e.activehackModalTab!="hackChallenges"),s(),l("ngIf",!e.hackChallengeEdit&&e.activehackModalTab!="hackChallenges"),s(),l("ngIf",e.hackChallengeEdit)}}function Ci(n,m){if(n&1){let e=h();o(0,"div",18)(1,"div",19)(2,"div",20),g("click",function(){p(e);let t=d();return _(t.quizModal=!1)}),x(3,"em",21),i(),o(4,"div",22)(5,"div",32)(6,"div",33)(7,"p",34),g("click",function(){p(e);let t=d();return _(t.changeMenu("quizbasic"))}),a(8," Basic Details "),i(),o(9,"p",34),g("click",function(){p(e);let t=d();return _(t.changeMenu("quizquestions"))}),a(10," Questions "),i()()(),o(11,"div",35),x(12,"app-course-quiz-form",36),i()(),o(13,"div",37)(14,"button",29),g("click",function(){p(e);let t=d();return _(t.quizModal=!1)}),a(15," Close "),i(),o(16,"button",38),a(17,"Save"),i()()()()}if(n&2){let e=d();s(7),l("ngClass",b(3,U,e.activeQuizModalTab=="quizbasic")),s(2),l("ngClass",b(5,U,e.activeQuizModalTab=="quizquestions")),s(3),l("activeTab",e.activeQuizModalTab)}}function fi(n,m){if(n&1){let e=h();o(0,"section")(1,"app-text-input",39),v("valueChange",function(t){p(e);let c=d();return f(c.hackathoneForm.title,t)||(c.hackathoneForm.title=t),_(t)}),i(),o(2,"app-text-input",39),v("valueChange",function(t){p(e);let c=d();return f(c.hackathoneForm.duration,t)||(c.hackathoneForm.duration=t),_(t)}),i(),o(3,"label",40),a(4," Number Of Questions "),o(5,"sup"),a(6,"*"),i()(),o(7,"input",41),v("ngModelChange",function(t){p(e);let c=d();return f(c.hackathoneForm.no_of_questions,t)||(c.hackathoneForm.no_of_questions=t),_(t)}),i()()}if(n&2){let e=d();s(),C("value",e.hackathoneForm.title),l("required",!0)("fieldTitle","Hackathon Title"),s(),C("value",e.hackathoneForm.duration),l("required",!0)("fieldTitle","Duration (hh:mm:ss)"),s(5),C("ngModel",e.hackathoneForm.no_of_questions)}}function vi(n,m){if(n&1){let e=h();o(0,"div",32)(1,"div",33)(2,"p",34),g("click",function(){p(e);let t=d();return _(t.changeMenu("hackbasicDetails"))}),x(3,"em",42),a(4," Assessment Basic Details "),i(),o(5,"p",34),g("click",function(){p(e);let t=d();return _(t.changeMenu("hackChallenges"))}),x(6,"em",43),a(7,"Challenges "),i()()()}if(n&2){let e=d();
1s(2),l("ngClass",b(2,U,e.activehackModalTab=="hackbasicDetails")),s(3),l("ngClass",b(4,U,e.activehackModalTab=="hackChallenges"))}}function bi(n,m){if(n&1){let e=h();o(0,"div",44)(1,"em",45),g("click",function(){p(e);let t=d();return _(t.hackChallengeEdit=!1)}),i(),o(2,"div",33)(3,"p",34),g("click",function(){p(e);let t=d();return _(t.activeChallengeTab="problem")}),x(4,"em",43),a(5," Problem Statement "),i(),o(6,"p",34),g("click",function(){p(e);let t=d();return _(t.activeChallengeTab="solution")}),x(7,"em",42),a(8," Solution "),i(),o(9,"p",34),g("click",function(){p(e);let t=d();return _(t.activeChallengeTab="testcases")}),x(10,"em",42),a(11," Testcases "),i()()(),o(12,"div",35)(13,"app-course-hackathon-form",46),g("tabChange",function(t){p(e);let c=d();return _(c.ChangeEditHackTab(t))})("closeHackathoneForm",function(t){p(e);let c=d();return _(c.closeHackathoneForm(t))}),i()()}if(n&2){let e=d();s(3),l("ngClass",b(6,U,e.activeChallengeTab=="problem")),s(3),l("ngClass",b(8,U,e.activeChallengeTab=="solution")),s(3),l("ngClass",b(10,U,e.activeChallengeTab=="testcases")),s(4),l("activeTab",e.activeChallengeTab)("HackQuestion",e.CurrenthackChallange)("Languages",e.LanguagesList)}}function Mi(n,m){if(n&1){let e=h();M(0),o(1,"div",50)(2,"p",51),a(3),i(),o(4,"div")(5,"em",52),g("click",function(){let t=p(e).$implicit,c=d(2);return _(c.EdithackQuestion(t.id))}),i(),o(6,"em",53),g("click",function(){let t=p(e).$implicit,c=d(2);return _(c.DeletehackQuestion(t.id,c.i))}),i()()(),w()}if(n&2){let e=m.$implicit;s(3),I(e==null?null:e.name)}}function wi(n,m){if(n&1){let e=h();o(0,"div",27)(1,"div",47)(2,"h2",6),a(3,"Code Problems"),i(),o(4,"button",9),g("click",function(){p(e);let t=d();return _(t.AddProblemStatement("hackathon"))}),x(5,"em",48),a(6," Add "),i()(),u(7,Mi,7,1,"ng-container",49),i()}if(n&2){let e=d();s(7),l("ngForOf",e.Hackchallanges)}}var st=(()=>{class n{constructor(e,r,t){this.manageAssesmentService=e,this.router=r,this.toastService=t,this.hackathoneModal=!1,this.quizModal=!1,this.activehackModalTab="hackbasicDetails",this.activeQuizModalTab="quizbasic",this.hackChallengeEdit=!1,this.activeChallengeTab="problem",this.hackathoneForm={id:0,title:null,no_of_questions:null,duration:null},this.assesmentId=this.router.snapshot.paramMap.get("id")}ngOnInit(){this.getAssementList()}addModule(e){console.log(e),e=="hackathon"?this.Createhackathone(e):(this.quizModal=!0,console.log("quiz active"))}changeMenu(e){if(this.hackathoneModal){return this.activehackModalTab=e,console.log(e),!1;e=="hackbasicDetails"?this.manageAssesmentService.currentStep=0:this.manageAssesmentService.currentStep=1}else this.activeQuizModalTab=e}Createhackathone(e){console.log(this.assesmentId),this.manageAssesmentService.createAssesmentModule(e,this.assesmentId).subscribe(r=>{console.log(r),r=r.data,this.AssementModuleLIst.push(r),this.activehackModalTab="hackbasicDetails",this.hackathoneModal=!0,this.hackathoneForm.id=r.id,this.manageAssesmentService.currentEditAssesmentModule=r.
1id,this.hackathoneForm.title=r.title,this.hackathoneForm.no_of_questions=r.no_of_questions,this.hackathoneForm.duration=r.duration,this.CurrenthackChallange=r})}SaveAssementHackathone(){let e=null;this.activehackModalTab=="hackbasicDetails"?e=0:e=1,this.manageAssesmentService.SaveAssementHackathoneModule("hackathon",e,this.hackathoneForm.id,this.hackathoneForm).subscribe(r=>{console.log(r),this.Hackchallanges=r.data.questions,this.activehackModalTab="hackChallenges"})}AddProblemStatement(){this.manageAssesmentService.createHackQuestion(this.hackathoneForm.id).subscribe(e=>{console.log(e),this.LanguagesList=e.languages,this.activeChallengeTab="problem",this.CurrenthackChallange=e.data,this.hackChallengeEdit=!0})}getAssementList(){this.manageAssesmentService.AssementModuleLIst(this.assesmentId).subscribe(e=>{console.log(e),this.AssementModuleLIst=e.data})}editAssementModuel(e,r){console.log(e,r),this.manageAssesmentService.AssementModuleEdit(e,r).subscribe(t=>{console.log(t),t=t.data,this.activehackModalTab="hackbasicDetails",this.hackathoneModal=!0,this.hackathoneForm.id=t.id,this.manageAssesmentService.currentEditAssesmentModule=t.id,this.hackathoneForm.title=t.title,this.hackathoneForm.no_of_questions=t.no_of_questions,this.hackathoneForm.duration=t.duration,this.Hackchallanges=t.questions})}EdithackQuestion(e){console.log(e),this.manageAssesmentService.gethackQuestionForEdit(e).subscribe(r=>{this.CurrenthackChallange=r.data,this.LanguagesList=r.languages,this.activeChallengeTab="problem",console.log(this.CurrenthackChallange),this.hackChallengeEdit=!0})}SaveAssementHackathoneQuestion(){this.manageAssesmentService.SubmithackathoneForm.next(!0)}SaveAssementHackathoneSolution(){this.manageAssesmentService.SubmithackathoneSolution.next(!0)}ChangeEditHackTab(e){this.activeChallengeTab=e,console.log(e)}closeHackathoneForm(e){this.hackChallengeEdit=e}deleteAssementModuel(e,r,t){console.log(r),confirm("Do you want to delete this assement Module?")&&this.manageAssesmentService.AssementModuleDelete(e,r).subscribe(c=>{console.log(c),this.toastService.toast(c.data,1e3,"green"),this.AssementModuleLIst.splice(t,1)})}DeletehackQuestion(e,r){confirm("Do you want to delete this Question?")&&this.manageAssesmentService.AssementModuleHackathoneQuestionDelete(e).subscribe(t=>{console.log(t),this.toastService.toast(t.data,1e3,"green"),this.Hackchallanges.splice(r,1)})}static{this.\u0275fac=function(r){return new(r||n)(k(V),k(oe),k(G))}}static{this.\u0275cmp=E({type:n,selectors:[["app-assessment-module-form"]],standalone:!1,decls:22,vars:3,consts:[["HackathoneAssesmentBasicDetails",""],["AssementModuleEditMenu",""],["AssementModuleHackthoneEditOrCreateChallange",""],["AssesmentModulehackthoneCode",""],[1,"container"],[1,"top-bar","d-flex","justify-space-between","mb-15"],[1,"main-hdng"],[1,"btn","mr-15",3,"click"],[1,"fa","fa-plus-circle","mr-10"],[1,"btn",3,"click"],["class","d-flex challenge justify-space-between card",4,"ngFor","ngForOf"],["class","form-sidebar",4,"ngIf"],[1,"d-flex","challenge","justify-space-between","card"],[1,"d-flex"],[1,"edit-pencil",3,"click"],[1,"fa","fa-pencil"],[1,"edit-trash",3,"click"],[1,"fa","fa-trash"],[1,"form-sidebar"],[1,"sidebar-wrapper"],[1,"close-icon","blue","white-text","cursor-pointer",3,"click"],[1,"fa","fa-close"],[1,"hackathon-content"],[4,"ngIf"],["class","input_fields",4,"ngIf"],["class","d-flex justify-space-between sidebar-footer","style","background: white",4,"ngIf"],[4,"ngTemplateOutlet"],[1,"input_fields"],[1,"d-flex","justify-space-between","sidebar-footer",2,"background","white"],[1,"btn","red","cursor-pointer",3,"click"],["type","submit",1,"btn","green","cursor-pointer",3,"click"],["class","btn green cursor-pointer","type","submit",3,"click",4,"ngIf"],[1,"q-wrap"],[1,"menu"],[3,"click","ngClass"],[1,"hack-problem-modal"],[3,"activeTab"],[1,"d-flex","justify-space-between","sidebar-footer"],["type","submit",1,"btn","green","cursor-pointer"],[1,"mt-4","mb-4",3,"valueChange","value","required","fieldTitle"],["for","no_of_questions"],["required","","type","number","id","no_of_questions",1,"validate",3,"ngModelChange","ngModel"],[1,"fa","fa-flask"],[1,"fa","fa-question-circle","mr-10"],[1,"q-wrap","chall-menu"],[1,"fa","fa-long-arrow-left","back-btn",3,"click"],[3,"tabChange","closeHackathoneForm","activeTab","HackQuestion","
1Languages"],[1,"d-flex","justify-space-between","hdr"],[1,"fa","fa-plus-circle","font-14","mr-10"],[4,"ngFor","ngForOf"],[1,"d-flex","challenge"],[1,"m-0"],[1,"fa","fa-pencil","font-14",3,"click"],[1,"fa","fa-trash","font-14","p-10",2,"color","red",3,"click"]],template:function(r,t){if(r&1){let c=h();o(0,"div",4)(1,"div",5)(2,"h2",6),a(3,"Add Module"),i(),o(4,"div")(5,"button",7),g("click",function(){return p(c),_(t.addModule("quiz"))}),x(6,"em",8),a(7," Add Quiz "),i(),o(8,"button",9),g("click",function(){return p(c),_(t.addModule("hackathon"))}),x(9,"em",8),a(10," Add Hackathon "),i()()(),u(11,$n,9,2,"div",10),i(),u(12,hi,13,7,"div",11)(13,Ci,18,7,"div",11)(14,fi,8,7,"ng-template",null,0,H)(16,vi,8,6,"ng-template",null,1,H)(18,bi,14,12,"ng-template",null,2,H)(20,wi,8,1,"ng-template",null,3,H)}r&2&&(s(11),l("ngForOf",t.AssementModuleLIst),s(),l("ngIf",t.hackathoneModal),s(),l("ngIf",t.quizModal))},dependencies:[z,D,Q,Fe,W,Y,B,N,j,J,se,rt,at],styles:["@media screen and (max-width: 991px){.container[_ngcontent-%COMP%]{width:100%}.top-bar[_ngcontent-%COMP%]{flex-direction:column}}.form-sidebar[_ngcontent-%COMP%]{position:fixed;width:100vw;height:100vh;top:0;background:#0000004d;left:0;z-index:999}.form-sidebar[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{width:70%;background-color:#f5f6f8;height:100%;position:relative;margin-left:auto;border-radius:8px;-webkit-border-radius:8px;-moz-border-radius:8px;-ms-border-radius:8px;-o-border-radius:8px;padding:10px 20px;box-shadow:0 0 5px #0000004d}.form-sidebar[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%] .close-icon[_ngcontent-%COMP%]{position:absolute;right:20px;top:10px;height:35px;width:35px;text-align:center;line-height:35px;border-radius:8px;font-size:18px}.form-sidebar[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%] .close-icon[_ngcontent-%COMP%]:hover em[_ngcontent-%COMP%]{transition:.4s;-webkit-transition:.4s;-moz-transition:.4s;-ms-transition:.4s;-o-transition:.4s;transform:rotate(90deg);-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-ms-transform:rotate(90deg);-o-transform:rotate(90deg)}.form-sidebar[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%] .sidebar-footer[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0;box-shadow:0 0 5px #0000004d;width:100%;padding:10px;background:var(--grey-00)}@media screen and (max-width: 991px){.form-sidebar[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{width:100%}}.q-wrap[_ngcontent-%COMP%]{padding:20px;height:100%;display:flex;align-items:center;justify-content:space-between}.q-wrap[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]{display:flex;justify-content:space-around;border-bottom:1.5px solid #ccc;width:100%}.q-wrap[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:10px;margin:0 0 -2px;border-bottom:2px solid transparent;cursor:pointer}.q-wrap[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] p[_ngcontent-%COMP%] em[_ngcontent-%COMP%]{padding:5px;border:1.5px solid #ddd;border-radius:50%}.q-wrap[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] p.active[_ngcontent-%COMP%]{color:var(--blue-700);border-bottom-color:var(--blue-700)}.q-wrap[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] p.active[_ngcontent-%COMP%] em[_ngcontent-%COMP%]{color:var(--blue-700);background-color:var(--grey-00);border-color:var(--blue-700)}.q-wrap[_ngcontent-%COMP%] .back-btn[_ngcontent-%COMP%]{font-size:16px;font-weight:500;border:2px solid var(--blue-700);color:var(--blue-700);border-radius:50%;padding:6px;cursor:pointer}.q-wrap[_ngcontent-%COMP%] .back-btn[_ngcontent-%COMP%]:hover{background-color:var(--blue-700);color:var(--grey-00);transition:.4s;-webkit-transition:.4s;-moz-transition:.4s;-ms-transition:.4s;-o-transition:.4s}.q-wrap.chall-menu[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]{width:calc(100% - 30px)}@media screen and (max-width: 900px){.q-wrap[_ngcontent-%COMP%]{white-space:nowrap;overflow-x:auto}.q-wrap[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]{min-width:400px}}.challenges_box[_ngcontent-%COMP%]{padding:2% 1%;margin:1% auto;width:100%;background-color:#fff}.challenge[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-top:15px;align-items:center;padding:15px;border-radius:8px;background-color:var(--grey-00);box-shadow:0 0 15px #186edf1a;cursor:pointer;border:1px solid #edf4fb;transition:.4s;-webkit-transition:.4s;-moz-transition:.4s;-ms-transition:.4s;-o-transition:.4s}.challenge[_ngcontent-%COMP%]:hover{transform:scale(1.01);box-shadow:0 0 15px #186edf4d;color:var(--blue-700)}.hack-problem-modal[_ngcontent-%COMP%]{overflow-y:auto;max-height:calc(100vh - 160px)}.edit-pencil[_ngcontent-%COMP%], .edit-trash[_ngcontent-%COMP%]{border-radius:50%;font-size:16px;border:1px solid;padding:4px 7px 5px 8px}.edit-trash[_ngcontent-%COMP%]:hover{color:red;border:1px solid red}",'.main-hdng[_ngcontent-%COMP%]{font-size:18px;color:var(--grey-1100);font-weight:500;position:relative;padding-left:18px;margin:0 0 15px}.main-hdng[_ngcontent-%COMP%]:after, .main-hdng[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;background:var(--blue-700)}.main-hdng[_ngcontent-%COMP%]:before{left:0;height:18px;width:3px}.main-hdng[_ngcontent-%COMP%]:after{left:6px;height:22px;width:4px;opacity:.7}section[_ngcontent-%COMP%]{padding:0 0 50px}section[_ngcontent-%COMP%]:first-child{padding:50px 0}.btn-rounded[_ngcontent-%COMP%]{font-size:14px;color:var(--grey-00)}.btn-rounded[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{border-radius:20px 0 0 20px;max-height:38px;background-color:var(--blue-700);padding:10px;-webkit-border-radius:20px 0 0 20px;-moz-border-radius:20px 0 0 20px;-ms-border-radius:20px 0 0 20px;-o-border-radius:20px 0 0 20px;border-right:1px solid var(--grey-00)}.btn-rounded[_ngcontent-%COMP%] em[_ngcontent-%COMP%]{border-radius:0 20px 20px 0;max-height:38px;background-color:#196edf;padding:11px;
1-webkit-border-radius:0 20px 20px 0;-moz-border-radius:0 20px 20px 0;-ms-border-radius:0 20px 20px 0;-o-border-radius:0 20px 20px 0}']})}}return n})();function ki(n,m){n&1&&x(0,"app-basic-deatils")}function Oi(n,m){n&1&&x(0,"app-assessment-module-form")}var lt=(()=>{class n{constructor(e){this.assessmentService=e}ngOnInit(){}static{this.\u0275fac=function(r){return new(r||n)(k(V))}}static{this.\u0275cmp=E({type:n,selectors:[["app-course-assessment"]],standalone:!1,decls:5,vars:2,consts:[[1,"assessment-wrapper"],[1,"right-sect"],[4,"ngIf"]],template:function(r,t){r&1&&(o(0,"section",0),x(1,"app-sidebar"),o(2,"div",1),u(3,ki,1,0,"app-basic-deatils",2)(4,Oi,1,0,"app-assessment-module-form",2),i()()),r&2&&(s(3),l("ngIf",t.assessmentService.currentStep==0),s(),l("ngIf",t.assessmentService.currentStep==1))},dependencies:[Q,et,it,st],styles:[".right-sect[_ngcontent-%COMP%]{padding:30px 30px 30px 320px;margin-left:30px}@media screen and (max-width: 991px){.right-sect[_ngcontent-%COMP%]{padding:15px;margin:0}}"]})}}return n})();A();var Pi=[{path:"",redirectTo:"list",pathMatch:"full"},{path:"list",pathMatch:"full",component:tt,canActivate:[ge]},{path:"edit/:id",component:lt,canActivate:[ge],data:{hideFooter:!0,hideHeader:!1}}],ct=(()=>{class n{static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275mod=ne({type:n})}static{this.\u0275inj=te({imports:[ue.forChild(Pi),ue]})}}return n})();A();var Bo=(()=>{class n{static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275mod=ne({type:n})}static{this.\u0275inj=te({imports:[qe,Ue,Ke,ct,Je,Ge,Be]})}}return n})();export{Bo as CourseAssesmentsModule};
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.