1import{a as $,b as Q}from"./chunk-GE5VJ33Z.js";import{a as A}from"./chunk-5JA4MRTV.js";import{a as q}from"./chunk-6E3LMQAL.js";import{d as j}from"./chunk-6KGZXWQC.js";import"./chunk-4B2FV7TS.js";import"./chunk-VDHMNIPW.js";import"./chunk-HHQ3DLDR.js";import"./chunk-TEBKKOGH.js";import"./chunk-UMK6AGIS.js";import"./chunk-4QX5TW7Y.js";import"./chunk-7UZYWCAJ.js";import"./chunk-RIQOBMUM.js";import"./chunk-WX25E2HZ.js";import"./chunk-I5K7UUBW.js";import"./chunk-6BAE5M2B.js";import{a as U,b as B}from"./chunk-GPTXSPLI.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"./chunk-VK3ZU6WP.js";import{G as V,m as F,n as L}from"./chunk-BRHCVEVW.js";import{Bc as f,Hb as p,Ic as s,Jc as d,Ka as C,Kc as w,Mc as T,Me as H,Nc as E,Ob as n,Oc as a,Pc as r,Qc as o,Rc as c,Sd as P,Vd as D,Xc as O,ed as k,hc as y,hd as _,mc as M,me as S,nc as u,ne as I,wd as m,xd as x,yd as z,zc as b,zd as N}from"./chunk-7DV7UWC6.js";import"./chunk-XS7UEPGF.js";import{n as h}from"./chunk-IP4IO47A.js";H();H();var G=()=>[F,U,import("./chunk-MT2GOLFB.js").then(e=>e.QuestionMetaInformationComponent)],v=()=>[L],J=(e,i,t)=>({easy:e,medium:i,hard:t}),K=()=>["green-1000"],W=()=>["orange-500"],X=()=>["red-900"],Y=()=>["grey-1100"];function Z(e,i){if(e&1&&(r(0,"div",3)(1,"div",11),c(2,"un-icon",12),r(3,"p"),m(4),o()(),r(5,"div",13)(6,"p"),m(7),o()()()),e&2){let t=_(4);n(),a("ngClass",D(7,J,(t.problemStatement==null?null:t.problemStatement.difficulty)==="easy",(t.problemStatement==null?null:t.problemStatement.difficulty)==="medium",(t.problemStatement==null?null:t.problemStatement.difficulty)==="hard")),n(),a("icon","grouped_bar_chart.svg")("size",16)("color",(t.problemStatement==null?null:t.problemStatement.difficulty)==="easy"?P(11,K):(t.problemStatement==null?null:t.problemStatement.difficulty)==="medium"?P(12,W):(t.problemStatement==null?null:t.problemStatement.difficulty)==="hard"?P(13,X):P(14,Y)),n(2),x(t.problemStatement==null?null:t.problemStatement.difficulty),n(3),N("Score - ",0,"/",t.problemStatement==null?null:t.problemStatement.score)}}function tt(e,i){if(e&1&&(r(0,"div",9)(1,"h2"),m(2),o(),r(3,"div",14)(4,"div",15)(5,"p"),m(6,"Testcase Input"),o()(),r(7,"div",16),c(8,"div",8),o()(),r(9,"div",14)(10,"div",15)(11,"p"),m(12,"Testcase Output"),o()(),r(13,"div",16),c(14,"div",8),o()(),r(15,"div",17)(16,"p"),m(17,"Explanation"),o(),c(18,"div",6),o()()),e&2){let t=i.$implicit,g=i.$index;n(2),z("Sample Test-Case ",g+1),n(6),a("innerHTML",t==null?null:t.input,p),n(6),a("innerHTML",t==null?null:t.output,p),n(4),a("innerHTML",t==null?null:t.explanation,p)}}function et(e,i){if(e&1&&(r(0,"div",2),s(1,Z,8,15,"div",3),r(2,"div",4)(3,"p"),m(4),o()(),r(5,"div",5)(6,"h2"),m(7,"Problem"),o(),c(8,"div",6),o(),r(9,"div",7)(10,"h2"),m(11,"Input Format"),o(),c(12,"div",8),o(),r(13,"div",7)(14,"h2"),m(15,"Output Format"),o(),c(16,"div",8),o(),T(17,tt,19,4,"div",9,w),c(19,"question-meta-information",10),o()),e&2){let t=_(3);n(),d(t.problemStatement!=null&&t.problemStatement.difficulty?1:-1),n(3),x(t.problemStatement==null?null:t.problemStatement.name),n(4),a("innerHTML",t.problemStatement==null?null:t.problemStatement.problem_statement,p),n(4),a("innerHTML",t.problemStatement==null?null:t.problemStatement.input_format,p),n(4),a("innerHTML",t.problemStatement==null?null:t.problemStatement.output_format,p),n(),E(t.problemStatement==null?null:t.problemStatement.sample_testcases),n(2),a("currentChallenge",t.problemStatement)}}function nt(e,i){e&1&&(u(0,et,20,6),b(1,0,G),f())}function ot(e,i){e&1&&O(0)}function it(e,i){if(e&1&&M(0,ot,1,0,"ng-container",18),e&2){let t=_(3);a("ngComponentOutlet",t.showSolutionComponent)}}function rt(e,i){e&1&&(u(0,it,1,1),b(1,0,v),f())}function at(e,i){e&1&&O(0)}function mt(e,i){if(e&1&&M(0,at,1,0,"ng-container",18),e&2){let t=_(3);a("ngComponentOutlet",t.showSubmissionComponent)}}function lt(e,i){e&1&&(u(0,mt,1,1),b(1,0,v),f())}function ct(e,i){e&1&&O(0)}function pt(e,i){if(e&1&&M(0,ct,1,0,"ng-container",18),e&2){let t=_(3);a("ngComponentOutlet",t.showNotesComponent)}}function st(e,i){e&1&&(u(0,pt,1,1),b(1,0,v),f())}function dt(e,i){if(e&1&&(r(0,"div",1),s(1,nt,3,0),s(2,rt,3,0),s(3,lt,3,0),s(4,st,3,0),o()),e&2){let t=_();
1n(),d(t.currentTabValue=="question"?1:-1),n(),d(t.currentTabValue=="solution"?2:-1),n(),d(t.currentTabValue=="submission"?3:-1),n(),d(t.currentTabValue=="notes"?4:-1)}}var yt=(()=>{class e{constructor(){this._codeEditorService=C(q),this._configService=C(j),this._compilerService=C(A),this.currentTabValue="question",this.sidepanelCollapsed=this._codeEditorService.sidepanelCollapsed,this.showSolution=S(()=>this._configService.unEditorConfig().showSolution),this.showSolutionComponent=null,this.showSubmission=S(()=>this._configService.unEditorConfig().showSubmission),this.showSubmissionComponent=null,this.showNotes=S(()=>this._configService.unEditorConfig().showNotes),this.showNotesComponent=null,this._accessCheckerService=C($),I(()=>this._compilerService.userSubmissionData()&&(this.currentTabValue="submission"))}get codeEditorService(){return this._codeEditorService}get problemStatement(){return this._codeEditorService.problemStatement()}get mode(){return this._configService.mode()}ngOnInit(){this.showSolution()&&this.loadSolutionComponent(),this.showSubmission()&&this.loadSubmissionComponent(),this.showNotes()&&this.loadNotesComponent()}handlecurrentTabChange(t){this.currentTabValue=t,this._codeEditorService.currentActiveTab.set(t)}loadSolutionComponent(){return h(this,null,function*(){if(!this.showSolutionComponent)try{let t=yield import("./chunk-DRUPEMOQ.js");this.showSolutionComponent=t.SolutionComponent}catch(t){console.error("Error loading solution:",t)}})}loadSubmissionComponent(){return h(this,null,function*(){if(!this.showSubmissionComponent)try{let t=yield import("./chunk-QPZBXHQX.js");this.showSubmissionComponent=t.SubmissionComponent}catch(t){console.error("Error loading submission:",t)}})}loadNotesComponent(){return h(this,null,function*(){if(!this.showNotesComponent)try{let t=yield import("./chunk-WEOT72IK.js");this.showNotesComponent=t.NotesComponent}catch(t){console.error("Error loading notes:",t)}})}loadSolution(){if(this._accessCheckerService.checkAccessBeforeRun("pro")){let t=this._configService.unEditorConfig();this._configService.setUnEditorConfig({showSolution:!t.showSolution})}}loadSubmission(){let t=this._configService.unEditorConfig();this._configService.setUnEditorConfig({showSubmission:!t.showSubmission})}loadNotes(){let t=this._configService.unEditorConfig();this._configService.setUnEditorConfig({showNotes:!t.showNotes})}static{this.\u0275fac=function(g){return new(g||e)}}static{this.\u0275cmp=y({type:e,selectors:[["app-problem-statement"]],decls:2,vars:6,consts:[[3,"currentTabChange","Solution","Submission","Notes","showBar","activeTab"],[1,"information-container"],[1,"problem-statement"],[1,"problem-stats"],[1,"problem-name"],[1,"problem-description"],[1,"pr-desc",3,"innerHTML"],[1,"problem-input-output-format"],[1,"pr-data",3,"innerHTML"],[1,"problem-testcases"],[3,"currentChallenge"],[1,"problem-difficulty",3,"ngClass"],[3,"icon","size","color"],[1,"problem-score"],[1,"ptc-in-out"],[1,"heading"],[1,"main"],[1,"ptc-explanation"],[4,"ngComponentOutlet"]],template:function(g,l){g&1&&(r(0,"app-code-editor-problem-menu-bar",0),k("currentTabChange",function(R){return l.handlecurrentTabChange(R)}),o(),s(1,dt,5,4,"div",1)),g&2&&(a("Solution",l.showSolution())("Submission",l.showSubmission())("Notes",l.showNotes())("showBar",l.showSolution()||l.showSubmission()||l.showNotes())("activeTab",l.currentTabValue),n(),d(l.sidepanelCollapsed()?-1:1))},dependencies:[V,B,Q],styles:['[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}.information-container[_ngcontent-%COMP%]{height:100%;overflow:auto}.problem-statement[_ngcontent-%COMP%]{min-width:300px;padding:16px;border-radius:10px;height:100%;overflow-y:auto;color:var(--editor-text-primary)}.problem-statement[_ngcontent-%COMP%] .problem-stats[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:20px}.problem-statement[_ngcontent-%COMP%] .problem-stats[_ngcontent-%COMP%] .problem-difficulty[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;border-radius:50px;padding:1px 10px;text-transform:capitalize}.problem-statement[_ngcontent-%COMP%] .problem-stats[_ngcontent-%COMP%] .problem-difficulty[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;color:var(--editor-text-primary);font-size:12px;font-weight:400}.problem-statement[_ngcontent-%COMP%] .problem-stats[_ngcontent-%COMP%] .easy[_ngcontent-%COMP%]{background-color:var(--green-100)}.problem-statement[_ngcontent-%COMP%] .problem-stats[_ngcontent-%COMP%] .easy[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--green-900)}.problem-statement[_ngcontent-%COMP%] .problem-stats[_ngcontent-%COMP%] .medium[_ng
1content-%COMP%]{background-color:var(--orange-100)}.problem-statement[_ngcontent-%COMP%] .problem-stats[_ngcontent-%COMP%] .medium[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--orange-900)}.problem-statement[_ngcontent-%COMP%] .problem-stats[_ngcontent-%COMP%] .hard[_ngcontent-%COMP%]{background-color:var(--red-100)}.problem-statement[_ngcontent-%COMP%] .problem-stats[_ngcontent-%COMP%] .hard[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--red-900)}.problem-statement[_ngcontent-%COMP%] .problem-stats[_ngcontent-%COMP%] .problem-score[_ngcontent-%COMP%]{padding:1px 10px;box-shadow:1px 1px 3px var(--editor-table-border);background:var(--grey-00);border-radius:50px}.problem-statement[_ngcontent-%COMP%] .problem-stats[_ngcontent-%COMP%] .problem-score[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:12px;font-weight:400;color:var(--text-secondary)}.problem-statement[_ngcontent-%COMP%] .problem-name[_ngcontent-%COMP%]{margin-bottom:32px}.problem-statement[_ngcontent-%COMP%] .problem-name[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:20px;font-weight:500;color:var(--editor-text-primary)}.problem-statement[_ngcontent-%COMP%] .problem-description[_ngcontent-%COMP%]{margin-bottom:32px}.problem-statement[_ngcontent-%COMP%] .problem-description[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 0 10px;font-size:14px;font-weight:500;color:var(--editor-text-primary)}.problem-statement[_ngcontent-%COMP%] .problem-description[_ngcontent-%COMP%] p img{width:100%;height:auto;max-width:400px}.problem-statement[_ngcontent-%COMP%] .problem-input-output-format[_ngcontent-%COMP%]{margin-bottom:32px}.problem-statement[_ngcontent-%COMP%] .problem-input-output-format[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 0 10px;font-size:14px;font-weight:500;color:var(--editor-text-primary)}.problem-statement[_ngcontent-%COMP%] .problem-testcases[_ngcontent-%COMP%]{margin-bottom:32px}.problem-statement[_ngcontent-%COMP%] .problem-testcases[_ngcontent-%COMP%] + .problem-testcases[_ngcontent-%COMP%]{margin-top:-16px;padding-top:16px;border-top:.5px solid var(--editor-text-primary)}.problem-statement[_ngcontent-%COMP%] .problem-testcases[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-weight:500;font-size:14px;color:var(--editor-text-primary);margin-bottom:10px}.problem-statement[_ngcontent-%COMP%] .problem-testcases[_ngcontent-%COMP%] .ptc-in-out[_ngcontent-%COMP%]{margin-bottom:10px}.problem-statement[_ngcontent-%COMP%] .problem-testcases[_ngcontent-%COMP%] .ptc-in-out[_ngcontent-%COMP%] .heading[_ngcontent-%COMP%]{display:flex;align-items:center}.problem-statement[_ngcontent-%COMP%] .problem-testcases[_ngcontent-%COMP%] .ptc-in-out[_ngcontent-%COMP%] .heading[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:12px;font-weight:500;color:var(--editor-text-primary);padding:6px 10px 0;background:var(--editor-box-bg);display:flex;align-items:center;justify-content:center;clip-path:polygon(0 0,75% 0%,100% 100%,0% 100%);border-top-left-radius:10px}.problem-statement[_ngcontent-%COMP%] .problem-testcases[_ngcontent-%COMP%] .ptc-in-out[_ngcontent-%COMP%] .heading[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:after{content:"";display:block;width:25px}.problem-statement[_ngcontent-%COMP%] .problem-testcases[_ngcontent-%COMP%] .ptc-in-out[_ngcontent-%COMP%] .main[_ngcontent-%COMP%] .pr-data[_ngcontent-%COMP%]{border-top-left-radius:0;overflow:auto}.problem-statement[_ngcontent-%COMP%] .problem-testcases[_ngcontent-%COMP%] .ptc-explanation[_ngcontent-%COMP%] .pr-desc[_ngcontent-%COMP%]{font-size:12px!important}.problem-statement[_ngcontent-%COMP%] .problem-testcases[_ngcontent-%COMP%] .ptc-explanation[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px;font-weight:500;color:var(--editor-text-primary)}.dark-theme[_ngcontent-%COMP%]{background:transparent!important}.dark-theme[_ngcontent-%COMP%] .problem-stats[_ngcontent-%COMP%] .problem-score[_ngcontent-%COMP%]{background:#ffffff1a}.dark-theme[_ngcontent-%COMP%] .problem-stats[_ngcontent-%COMP%] .problem-score[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .dark-theme[_ngcontent-%COMP%] .problem-name[_ng
1content-%COMP%] p[_ngcontent-%COMP%], .dark-theme[_ngcontent-%COMP%] .problem-description[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{color:var(--grey-00)}.dark-theme[_ngcontent-%COMP%] .problem-description[_ngcontent-%COMP%] .pr-desc[_ngcontent-%COMP%] p{font-size:12px!important;font-weight:400!important;color:var(--editor-text-primary)!important}.dark-theme[_ngcontent-%COMP%] .problem-input-output-format[_ngcontent-%COMP%] .pr-data[_ngcontent-%COMP%] p{font-size:12px!important;font-weight:400!important;color:var(--grey-50)!important}.dark-theme[_ngcontent-%COMP%] .problem-testcases[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{color:var(--grey-00)}.dark-theme[_ngcontent-%COMP%] .problem-testcases[_ngcontent-%COMP%] .ptc-in-out[_ngcontent-%COMP%] .heading[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--grey-00);background:#ffffff1a}.dark-theme[_ngcontent-%COMP%] .problem-testcases[_ngcontent-%COMP%] .ptc-in-out[_ngcontent-%COMP%] .main[_ngcontent-%COMP%] .pr-data[_ngcontent-%COMP%]{background:#ffffff1a;font-size:12px!important;font-weight:400!important;color:var(--grey-50)!important}.dark-theme[_ngcontent-%COMP%] .problem-testcases[_ngcontent-%COMP%] .ptc-in-out[_ngcontent-%COMP%] .main[_ngcontent-%COMP%] .pr-data[_ngcontent-%COMP%] p{font-size:12px!important;font-weight:400!important;color:var(--grey-50)!important}.dark-theme[_ngcontent-%COMP%] .problem-testcases[_ngcontent-%COMP%] .ptc-explanation[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--grey-00)}.dark-theme[_ngcontent-%COMP%] .problem-testcases[_ngcontent-%COMP%] .ptc-explanation[_ngcontent-%COMP%] .pr-desc[_ngcontent-%COMP%] p{font-size:12px!important;font-weight:400!important;color:var(--grey-00)!important}.pr-desc[_ngcontent-%COMP%] p{font-size:12px!important;font-weight:400!important;color:var(--editor-text-primary)!important}.pr-data[_ngcontent-%COMP%]{background:var(--editor-box-bg);padding:12px;border-radius:10px;font-size:12px!important;font-weight:400!important;color:var(--editor-text-primary)!important}.pr-data[_ngcontent-%COMP%] p{font-size:12px!important;font-weight:400!important;color:var(--editor-text-primary)!important}']})}}return e})();export{yt as ProblemStatementComponent};
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.