1import{a as W}from"./chunk-YALBGRX7.js";import{a as y}from"./chunk-B5U3CDLK.js";import"./chunk-IJWVHOHL.js";import"./chunk-DHEOXHIG.js";import{a as R,b as q}from"./chunk-B7MEV2DH.js";import"./chunk-XWGGXTBH.js";import"./chunk-GWP52JAF.js";import"./chunk-SBK5GHAF.js";import"./chunk-FPPRR53P.js";import"./chunk-3UVVCPIT.js";import"./chunk-HNY54GY7.js";import"./chunk-WAF2UKPS.js";import"./chunk-R3QRL77R.js";import"./chunk-G2NZI5V3.js";import"./chunk-62DYWMYT.js";import"./chunk-NTCDGAR3.js";import"./chunk-UMK6AGIS.js";import"./chunk-PBAOXUCO.js";import"./chunk-7UZYWCAJ.js";import"./chunk-RIQOBMUM.js";import"./chunk-WX25E2HZ.js";import"./chunk-I5K7UUBW.js";import"./chunk-6BAE5M2B.js";import{a as L,b as Q}from"./chunk-GPTXSPLI.js";import"./chunk-WSF7ZPQZ.js";import{a as K,c as U,d as H,e as J}from"./chunk-7KBFIBUW.js";import"./chunk-JYXQ74JV.js";import"./chunk-7A7LFYDL.js";import"./chunk-IQBBAARC.js";import"./chunk-CWWNL6ZE.js";import"./chunk-FSAIB72R.js";import"./chunk-OLSNRRTA.js";import"./chunk-GJNXMHJK.js";import"./chunk-ROYL3S4H.js";import"./chunk-XWMJJGBF.js";import"./chunk-5G7452JJ.js";import"./chunk-O6NNHBDA.js";import"./chunk-VK3ZU6WP.js";import{G as $,t as V,u as D}from"./chunk-BRHCVEVW.js";import{Ic as g,Jc as u,Ka as _,Lc as E,Mc as z,Me as j,Nc as B,Ob as l,Oc as p,Pc as n,Qa as h,Qc as r,Ra as v,Rc as d,Sd as N,Tb as k,Td as x,Xc as b,Zc as F,_a as T,ed as M,ge as O,hc as A,hd as f,mc as C,ne as I,rd as P,td as S,wd as s,xd as G,yd as w}from"./chunk-7DV7UWC6.js";import"./chunk-XS7UEPGF.js";import"./chunk-IP4IO47A.js";j();j();var ee=e=>({"--target-width":e}),X=e=>({i:e}),te=()=>["green-800"];function ne(e,a){e&1&&(n(0,"div",4),d(1,"img",18),r())}function ie(e,a){e&1&&b(0)}function oe(e,a){e&1&&b(0)}function re(e,a){if(e&1&&(n(0,"div",20)(1,"div",21)(2,"div",22),C(3,ie,1,0,"ng-container",23),r(),n(4,"div",24),s(5),r()(),n(6,"div",25),C(7,oe,1,0,"ng-container",23),r()()),e&2){let t=f(),i=t.$implicit,o=t.$index;f();let c=P(24),m=P(26);S("green-shade",o==0)("blue-shade",o==1),l(3),p("ngTemplateOutlet",m)("ngTemplateOutletContext",x(9,X,o)),l(2),w(" ",i==null?null:i.title," "),l(2),p("ngTemplateOutlet",c)("ngTemplateOutletContext",x(11,X,o))}}function ae(e,a){if(e&1&&g(0,re,8,13,"div",19),e&2){let t=a.$implicit;u(t?0:-1)}}function le(e,a){e&1&&(n(0,"span",26),s(1,"Complete"),r())}function se(e,a){e&1&&(n(0,"span",27),s(1,"Next"),r())}function ce(e,a){e&1&&(n(0,"span",26),s(1,"Upcoming.."),r())}function de(e,a){if(e&1&&g(0,le,2,0,"span",26)(1,se,2,0,"span",27)(2,ce,2,0,"span",26),e&2){let t,i=a.i;u((t=i)===0?0:t===1?1:t===2?2:-1)}}function pe(e,a){e&1&&d(0,"un-icon",28),e&2&&p("icon","check_circle_filled.svg")("color",N(3,te))("size",20)}function me(e,a){if(e&1&&(n(0,"div",29),s(1),r()),e&2){let t=f(2);l(),w(" ",t.currSectionNumber," ")}}function ge(e,a){e&1&&(n(0,"div",30),d(1,"span"),r())}function ue(e,a){if(e&1&&g(0,pe,1,4,"un-icon",28)(1,me,2,1,"div",29)(2,ge,2,0,"div",30),e&2){let t,i=a.i;u((t=i)===0?0:t===1?1:t===2?2:-1)}}var ke=(()=>{class e{constructor(){this.navigationService=_(y),this.aiStateService=_(W),this.courseNav=_(y),this.currentThreeSections=[],this.closeModal=new k,this.showGif=T(!0),I(()=>{(this.aiStateService.aiCourseModule()||this.aiStateService?.currentChapterStore())&&this.computeCurrentActiveSections()})}ngOnInit(){this.showGifTimeout=setTimeout(()=>{this.showGif.set(!1)},1e3)}computeCurrentActiveSections(){let t=this.aiStateService.aiCourseModule(),i=-1;t.forEach((Y,Z)=>{Y.id===this.courseNav?.activeSection?.id&&(i=Z)});let o=i-1>=0?t?.[i-1]:null,c=t?.[i],m=t?.[i+1]??null;c&&(this.currSectionNumber=i+1),this.currentThreeSections=[o,c,m]}close(){this.closeModal.emit(!1)}ngOnDestroy(){this.showGifTimeout&&clearTimeout(this.showGifTimeout)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=A({type:e,selectors:[["app-ai-course-progress-card"]],outputs:{closeModal:"closeModal"},decls:27,vars:12,consts:[["course_state",""],["course_state_icon",""],[3,"closeModal","size","position","maxContent","modalSize","mobileSlide"],[1,"prog-card","d-flex","flex-column","align-center","text-center"],[1,"gif_wrapper"],[1,"top"],["src","https://cdn.unstop.com/assets/icons/ask-me.svg","alt","progress","height","130","width","130"],[1,"desc","d-flex","flex-column","gap12"],[1,"f-20","f-weight-600","grey-1100-text"],[1,"f-14","f-weight-400","grey-700-text"],[1,"curr-module","grey-50"],[1,"animateBg"],[1,"f-16","f-weight-600","mb-12"],[1,"bar-bg"],[1,"bar",3,"ngStyle"],[1,"inidicator"],[1,"list","grey-00"],["unButton","","unButtonCircle","",1,"full-width",3,"click"],["src","https://d8it4huxumps7.cloudfront.net/assets/images/certificates_generate.gif","alt","Certificate gif"],[1,"list-item","d-flex","align-center","j-between","grey-00",3,"green-shade","blue-shade"],[1,"list-item","d-flex","align-center","j-between","grey-00"],[1,"d-flex","align-center"],[1,"num","mr-10"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"txt","f-weight-400","font-14","single-wrap","max-250"],[1,"cta"],[1,"f-10","f-weight-500","grey-500-text","italic"],[1,"f-10","f-weight-500","blue-400-text","italic","cursor-pointer"],[3,"icon","color","size"],[1,"num","bdr","d-flex","j-center","align-center"],[1,"upc-mark","d-flex","j-center","align-center"]],template:function(i,o){if(i&1){let c=F();
1n(0,"un-modal",2),M("closeModal",function(){return h(c),v(o.close())}),n(1,"un-modal-content",3),g(2,ne,2,0,"div",4),n(3,"div",5),d(4,"img",6),n(5,"div",7)(6,"div",8),s(7,"Great job, you\u2019re almost there!"),r(),n(8,"p",9),s(9,"Finish a quick practice and you\u2019re on your way to crushing your learning goals."),r()()(),n(10,"div",10),d(11,"div",11),n(12,"div",12),s(13),r(),n(14,"div",13)(15,"div",14),d(16,"span",15),r()(),n(17,"div",16),z(18,ae,1,1,null,null,E),r()()(),n(20,"un-modal-footer")(21,"button",17),M("click",function(){return h(c),v(o.close())}),s(22," Keep going "),r()()(),C(23,de,3,1,"ng-template",null,0,O)(25,ue,3,1,"ng-template",null,1,O)}i&2&&(p("size","sm")("position","center")("maxContent",!1)("modalSize",500)("mobileSlide","right"),l(2),u(o.showGif()?2:-1),l(8),S("animate",o.showGif()),l(3),G(o.navigationService==null||o.navigationService.activeModule==null?null:o.navigationService.activeModule.title),l(2),p("ngStyle",x(10,ee,o.navigationService.courseProgressPercent)),l(3),B(o.currentThreeSections))},dependencies:[$,D,V,J,K,U,H,Q,L,q,R],styles:[".num[_ngcontent-%COMP%]{width:26px;height:26px}.num.bdr[_ngcontent-%COMP%]{border:1.5px solid var(--grey-00);box-shadow:0 0 0 2px var(--blue-700);background:var(--blue-200);border-radius:8px;font-weight:400;font-size:14px}.upc-mark[_ngcontent-%COMP%]{height:18px;width:18px;margin:4px;border-radius:50%;border:1px dashed var(--blue-400)}.upc-mark[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{height:4px;width:4px;border-radius:10px;background:var(--grey-1100)}.f-10[_ngcontent-%COMP%]{font-size:10px}.curr-module[_ngcontent-%COMP%]{width:100%;text-align:left;border-radius:20px;padding:20px;position:relative}.curr-module[_ngcontent-%COMP%] .animateBg[_ngcontent-%COMP%]{width:100%;height:0px;bottom:0;right:0;-webkit-transition:all .2s linear;-moz-transition:all .2s linear;-o-transition:all .2s linear;transition:all .2s linear;position:absolute;background:var(--grey-00);filter:blur(6px)}.curr-module.animate[_ngcontent-%COMP%] .animateBg[_ngcontent-%COMP%]{height:calc(100% - 82px)}.list[_ngcontent-%COMP%]{border-radius:12px;overflow:hidden}.list-item[_ngcontent-%COMP%]{height:50px;padding:12px;border-bottom:1px solid var(--grey-50)}.list-item.green-shade[_ngcontent-%COMP%]{background:linear-gradient(320deg,#05c16500 50%,#05c1653b)}.list-item.blue-shade[_ngcontent-%COMP%]{background:linear-gradient(320deg,#0073e600 50%,#0073e621)}.mb-12[_ngcontent-%COMP%]{margin-bottom:12px}.prog-card[_ngcontent-%COMP%]{gap:24px;background-image:radial-gradient(circle at top center,var(--secondary-200) 0%,transparent 60%);background-repeat:no-repeat;background-size:100% 200px;transition:all .3s ease-in-out;position:relative}.prog-card[_ngcontent-%COMP%] .gif_wrapper[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;z-index:10}.prog-card[_ngcontent-%COMP%] .gif_wrapper[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%} .un_modal_right_bg{backdrop-filter:blur(24px);background:#0000001a!important}.italic[_ngcontent-%COMP%]{font-style:italic}.bar-bg[_ngcontent-%COMP%]{position:relative;height:12px;width:100%;border-radius:5px;margin-bottom:20px;border:.5px solid var(--Brand-color-Blue-300, var(--blue-300));background:var(--grey-00)}.bar[_ngcontent-%COMP%]{height:100%;border-radius:5px 0 0 5px;background:linear-gradient(to right,#00c676,#009fe3);position:relative;width:0%;animation:_ngcontent-%COMP%_fillBar 1.5s ease-out forwards}.inidicator[_ngcontent-%COMP%]{position:absolute;background-image:url(https://d8it4huxumps7.cloudfront.net/uploads/images/68ac20f29b81d_progress_indicator.svg);width:32px;height:20px;background-position:center;background-size:cover;background-repeat:no-repeat;right:-18px;top:-5px;pointer-events:none}@keyframes _ngcontent-%COMP%_fillBar{to{width:calc(var(--target-width) * 1%)}}.f-20[_ngcontent-%COMP%]{font-size:20px}.max-250[_ngcontent-%COMP%]{max-width:250px}@media (max-width: 767px){.desc[_ngcontent-%COMP%]{gap:6px!important}.desc[_ngcontent-%COMP%] .f-20[_ngcontent-%COMP%]{font-size:16px}.desc[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:12px}}"]})}}return e})();export{ke as AiCourseProgressCardComponent};
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.