PageSourceSearch

https://mypecb.com/chunk-WCQTN32Y.js

js mypecb.com collected 2026-10-08 01:07:27 UTC 32,633 bytes, 2 lines download raw bytes

1import{a as Pe}from"./chunk-UCPZDHQR.js";import{a as ye}from"./chunk-HHM24QNX.js";import{a as Le}from"./chunk-D2LKQGT7.js";import{a as Ee}from"./chunk-ORORAH77.js";import{a as Se}from"./chunk-L5PEEAWZ.js";import"./chunk-IFXFND3A.js";import{a as xe,b as he}from"./chunk-OVYBH5QQ.js";import{a as fe}from"./chunk-HVG7HWWR.js";import"./chunk-3TA7TJVT.js";import{b as me}from"./chunk-QIOD2ZBC.js";import{c as ve}from"./chunk-QAJUIHQG.js";import"./chunk-IEGVKZTZ.js";import"./chunk-BO7DLSM4.js";import"./chunk-73NIVVMB.js";import{d as Ce}from"./chunk-HR56DTHW.js";import"./chunk-BX6F7XVB.js";import"./chunk-PHCXJYGH.js";import{f as ue,j as _e,k as H}from"./chunk-NLYHPFEK.js";import"./chunk-5QWFSAMI.js";import{a as be,b as Me,c as we}from"./chunk-RJWN7IR6.js";import{e as D,f as pe}from"./chunk-3XKVGPOL.js";import{a as ce}from"./chunk-O4PFFPTB.js";import"./chunk-TMBGVCK3.js";import{p as ge}from"./chunk-F74OR272.js";import"./chunk-YNQPX5G6.js";import"./chunk-WSF7ZPQZ.js";import"./chunk-DBHPNJAK.js";import{h as de}from"./chunk-O6QC3F7H.js";import{a as k}from"./chunk-RBWYTWMG.js";import"./chunk-E7ASP22R.js";import{D as re,l as G}from"./chunk-GXDPKQDJ.js";import{a as O}from"./chunk-SP7W56NF.js";import{g as se}from"./chunk-GKVHN3JW.js";import{a as I}from"./chunk-WLW3UO77.js";import"./chunk-WIBM74KT.js";import{h as ie,n as ae,r as oe,s as le}from"./chunk-DI6WFRPB.js";import"./chunk-NE3O2LM5.js";import{j as $,s as W,x as ne}from"./chunk-BNFWNOF7.js";import{b as A,c as T,d as R}from"./chunk-7FOL4OMD.js";import{$b as C,Ab as B,Ec as L,Hb as K,Hc as r,Ic as p,Jc as b,Kc as y,Mc as ee,N as j,Ob as Q,Pb as X,Ub as g,Wb as _,Xb as Y,Y as J,Yc as te,Zb as F,_b as z,ac as a,bc as o,bd as d,cc as v,cd as c,dd as V,ea as U,ed as N,hb as n,ja as M,lc as w,pa as x,qa as h,qc as f,ra as E,sa as P,sc as m,tb as Z,va as q}from"./chunk-PJCNTUEH.js";import"./chunk-TSRGIXR5.js";var Oe=(()=>{let s=class s extends ce{constructor(){super("BillingProductsCilent")}};s.\u0275fac=function(i){return new(i||s)},s.\u0275prov=U({token:s,factory:s.\u0275fac,providedIn:"root"});let t=s;return t})();function De(t,s){if(t&1){let e=w();a(0,"div",9)(1,"app-promo-code-field",12),f("stateChange",function(i){x(e);let u=m();return h(u.promoState=i)}),o(),a(2,"p",13),r(3," Optional. The code covers this trainee's fees, and their exam and certification when it includes them. "),o()()}if(t&2){let e=m();n(),C("module",e.promoModule)("billingProductModelTypeId",e.promoModelTypeId)("trainingEventTypeId",(e.data==null?null:e.data.trainingEventTypeId)??null)}}var Ie=(()=>{let s=class s{get canEnterPromoCode(){return(this.data?.traineeCount??1)===1}constructor(l){this.data=l,this.dialogRef=M(be),this.translate=M(A),this.billingProductsCilentService=M(Oe),this.standards=[],this.filteredStandards=[],this.standardControl=new G,this.languageControl=new G,this.availableLanguages=[],this.manuallyOpened=!1,this.promoModule=Se.PartnerTraining,this.promoModelTypeId=Pe.TEC,this.promoState={code:null,applied:!1,hasUnapplied:!1}}ngOnInit(){this.fetchStandards(),this.setupLanguageWatcher()}setupLanguageWatcher(){this.standardControl.valueChanges.subscribe(l=>{l&&typeof l=="object"&&l.externalLanguages?(this.availableLanguages=l.externalLanguages,this.languageControl.reset()):(this.availableLanguages=[],this.languageControl.reset())})}displayStandardName(l){return l?.name||""}fetchStandards(){this.billingProductsCilentService.read({extendEndpoint:"store-product-select-list"}).subscribe(l=>{this.standards=l.data,this.filteredStandards=l.data,this.standardControl.valueChanges.pipe(J("")).subscribe(i=>{typeof i=="string"&&i.trim()!==""?this.filteredStandards=this.standards.filter(u=>u.name.toLowerCase().includes(i.toLowerCase())):this.filteredStandards=this.standards})})}onInputFocus(){}close(){this.dialogRef.close({confirmed:!1})}assignMaterials(){this.dialogRef.close({confirmed:!0,selectStandardId:this.standardControl.value?.id,selectStandardName:this.standardControl.value?.name,selectedLanguage:this.languageControl.value,promoCode:this.canEnterPromoCode?this.promoState.code:null})}};s.\u0275fac=function(i){return new(i||s)(Z(Me))},s.\u0275cmp=B({type:s,selectors:[["app-enrolled-confirm-modal"]],decls:22,vars:14,consts:[[1,"p-3","d-flex","justify-content-end"],["width","20","height","20","viewBox","0 0 20 20","fill","none","xmlns","http://www.w3.org/2000/svg",1,"curs
1or-pointer",3,"click"],["d","M15 5L5 15M5 5L15 15","stroke","#313131","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],[1,"ps-4","pe-4","mb-4","text-center"],[1,"text-center"],["width","80","height","80","viewBox","0 0 80 80","fill","none","xmlns","http://www.w3.org/2000/svg"],["opacity","0.2","d","M80 40C80 62.0914 62.0914 80 40 80C17.9086 80 0 62.0914 0 40C0 17.9086 17.9086 0 40 0C62.0914 0 80 17.9086 80 40Z","fill","#EC5837"],["d","M50.6663 40.666V33.066C50.6663 30.8258 50.6663 29.7057 50.2304 28.8501C49.8469 28.0974 49.235 27.4855 48.4823 27.102C47.6267 26.666 46.5066 26.666 44.2663 26.666H35.733C33.4928 26.666 32.3727 26.666 31.517 27.102C30.7644 27.4855 30.1525 28.0974 29.769 28.8501C29.333 29.7057 29.333 30.8258 29.333 33.066V46.9327C29.333 49.1729 29.333 50.293 29.769 51.1486C30.1525 51.9013 30.7644 52.5132 31.517 52.8967C32.3727 53.3327 33.4927 53.3327 35.7328 53.3327H40.6663M42.6663 38.666H34.6663M37.333 43.9993H34.6663M45.333 33.3327H34.6663M46.2304 51.9993L50.2304 47.9993M50.2304 47.9993L46.2304 43.9993M50.2304 47.9993H42.2304","stroke","#EC5837","stroke-width","2.5","stroke-linecap","round","stroke-linejoin","round"],[1,"mt-3"],[1,"ecm-promo"],["color","primary","mat-raised-button","","type","button",1,"primary-btn",3,"click","disabled"],["mat-raised-button","",1,"secondary-btn","ms-2",3,"click"],[3,"stateChange","module","billingProductModelTypeId","trainingEventTypeId"],[1,"ecm-promo-hint"]],template:function(i,u){i&1&&(a(0,"div",0),E(),a(1,"svg",1),f("click",function(){return u.close()}),v(2,"path",2),o()(),P(),a(3,"div",3)(4,"div",4),E(),a(5,"svg",5),v(6,"path",6)(7,"path",7),o()(),P(),a(8,"h4",8),r(9),d(10,"translate"),o(),a(11,"p",8),r(12),d(13,"translate"),o(),g(14,De,4,3,"div",9),a(15,"div")(16,"button",10),f("click",function(){return u.assignMaterials()}),r(17),d(18,"translate"),o(),a(19,"button",11),f("click",function(){return u.close()}),r(20),d(21,"translate"),o()()()),i&2&&(n(9),p(c(10,6,"Labels.confirmation")),n(3),p(c(13,8,"Labels.send_materials")),n(2),_(u.canEnterPromoCode?14:-1),n(2),C("disabled",u.promoState.hasUnapplied),n(),b(" ",c(18,10,"Labels.yes")," "),n(3),b(" ",c(21,12,"Buttons.no")," "))},dependencies:[pe,D,R,ve,ge,Ce,H,re,ye,T],styles:[".ecm-promo[_ngcontent-%COMP%]{margin:16px 0;text-align:left}.ecm-promo-hint[_ngcontent-%COMP%]{margin:6px 2px 0;font-size:12px;line-height:1.4;color:#5f6368}"]});let t=s;return t})();var Be=()=>[$,D,import("./chunk-SMPMASNH.js").then(t=>t.MatFormField),_e,ue,xe,W,T],Ve=()=>["/training-courses/launching-events"],Ae=(t,s)=>s.id;function Re(t,s){if(t&1){let e=w();a(0,"button",19),f("click",function(){x(e);let i=m(2);return h(i.updateStatusEvent(i.statusEnum.Completed))}),r(1),d(2,"translate"),o()}if(t&2){let e=m(2);L("spinner",e.loadingCompleted),C("disabled",e.loadingCompleted),n(),b(" ",c(2,4,"Labels.complete")," ")}}function He(t,s){if(t&1){let e=w();a(0,"div",10)(1,"button",17),f("click",function(){x(e);let i=m();return h(i.openEditModal())}),r(2),d(3,"translate"),o(),g(4,Re,3,6,"button",18),o()}if(t&2){let e=m();n(2),b(" ",c(3,2,"Buttons.edit")," "),n(2),_((e.details==null?null:e.details.trainingEventStatusId)!==e.statusEnum.Completed?4:-1)}}function je(t,s){if(t&1&&(a(0,"div",20)(1,"div",21)(2,"span"),r(3),d(4,"translate"),o()(),a(5,"div",21)(6,"span"),r(7),o()()(),a(8,"div",20)(9,"div",21)(10,"span"),r(11),d(12,"translate"),o()(),a(13,"div",21)(14,"span"),r(15),o()()()),t&2){let e=m(2);n(3),p(c(4,7,"Labels.event_location")),n(4),ee("",e.details==null?null:e.details.locationAddress,", ",e.details==null?null:e.details.locationCity,", ",e.details==null?null:e.details.locationPostalCode,", ",e.details==null?null:e.details.locationCountry),n(4),p(c(12,9,"Labels.venue")),n(4),p(e.details==null?null:e.details.locationVenue)}}function Fe(t,s){if(t&1&&r(0),t&2){let e=m(2);y(" ",e.enrollments.length," / ",e.details==null?null:e.details.quantityCap," ")}}function ze(t,s){t&1&&(r(0),d(1,"translate")),t&2&&b(" ",c(1,1,"Labels.no_cap")," ")}function Ne(t,s){if(t&1&&r(0),t&2){let e=s.$implicit,l=s.$index,i=s.$count;y(" ",e.name,"",l!==i-1?", ":""," ")}}function $e(t,s){if(t&1&&(a(0,"span",25),r(1),o()),t&2){let e=m(2);C("ngClass",e.getStatusClass(e.details==null?null:e.details.trainingEventStatusName)),n(),b(" ",e.getDisplayStatus(e.details==null?null:e.details.trainingEventStatusName)," ")}}function We(t,s){if(t&1){let e=w();a(0,"button",30),f("click",function(){x(e);let i=m(2);return h(i.changeStatus=!i.changeStatus)}),r(1),d(2,"translate"),o()}t&2&&(n(),b(" ",c(2,1,"Labels.change_status")," "))}function Ge(t,s){if(t&1){let e=w();a(0,"mat-form-field",27)(1,"mat-select",31)(2,"mat-option",32),f("click",function(){x(e);let i=m(2);return h(i.updateStatusEvent(i.statusEnum.Planned))}),r(3),d(4,"translate"),o(),a(5,"mat-option",32),f("click",function(){x(e);let i=m(2);return h(i.updateStatusEvent(i.statusEnum.ActiveConfirmed))}),r(6),d(7,"translate"),o()()()}if(t&2){let e=m(2);n(),C("value",e.details==null?null:e.details.trainingEventStatusId),n(),C("value",e.statusEnum.Planned),n(),p(c(4,5,"Labels.planned")),n(2),C("value",e.statusEnum.ActiveConfirmed),n(),p(c(7,7,"Labels.active_&_confirmed"))}}function Je(t,s){if(t&1){let e=w();E(),a(0,"svg",33),f("click",function(){x(e);let i=m(2);return h(i.changeStatus=!1)}),v(1,"path",34),o()}}function Ue(t,s){t&1&&(a(0,"div",29),v(1,"mat-progress-spinner",35),o())}function qe(t,s){if(t&1&&(a(0,"div",20)(1,"div",21)(2,"span"),r(3),d(4,"translate"),o()(),a(5,"div",21)(6,"span"),r(7),o()()(),g(8,je,16,11),a(9,"div",20)(10,"div",21)(11,"span"),r(12),d(13,"translate"),o()(),a(14,"div",21)(15,"span"),g(16,Fe,1,2)(17,ze,2,3),o()()(),a(18,"div",20)(19,"div",21)(20,"span"),r(21),d(22,"translate"),o()(),a(23,"div",21)(24,"span"),F(25,Ne,1,2,null,null,Y),o()()(),a(27,"div",20)(28,"div",21)(29,"span"),r(30),d(31,"translate"),o()(),a(32,"div",21)(33,"span"),r(34),d(35,"date"),d(36,"date"),o()()(),a(37,"div",20)(38,"div",21)(39,"span"),r(40),d(41,"translate"),o()(),a(42,"div",21)(43,"span"),r(44),d(45,"date"),d(46,"date"),o()()(),a(47,"div",20)(48,"div",22)(49,"span"),r(50),d(51,"translate"),o()(),a(52,"div",23)(53,"div",24),g(54,$e,2,2,"span",25),g(55,We,3,3,"button",26),g(56,Ge,8,9,"mat-form-field",27),g(57,Je,2,0,":svg:svg",28),g(58,Ue,2,0,"div",29),o()()(),a(59,"div",20)(60,"div",21)(61,"span"),r(62),d(63,"translate"),o()(),a(64,"div",21)(65,"span"),r(66),o()()(),a(67,"div",20)(68,"div",21)(69,"span"),r(70),d(71,"translate"),o()(),a(72,"div",21)(73,"span"),r(74),d(75,"translate"),o()()(),a(76,"div",20)(77,"div",21)(78,"span"),r(79),d(80,"translate"),o()(),a(81,"div",21)(82,"span"),r(83),d(84,"translate"),o()()()),t&2){let e=m();n(3),p(c(4,24,"Labels.course")),n(4),p(e.details==null?null:e.details.billingProductName),n(),_((e.details==null?null:e.details.eventType)!=="LiveOnline"?8:-1),n(4),p(c(13,26,"Labels.quantity_cap")),n(4),_((e.details==null?null:e.details.quantityCap)!=null?16:17),n(5),p(c(22,28,"Labels.trainers")),n(4),z(e.details==null?null:e.details.trainerResponse),n(5),p(c(31,30,"Labels.training_course_start_date")),n(4),y(" ",V(35,32,e.details==null?null:e.details.startDate,"yyyy-MM-dd HH:mm")," (",N(36,35,e.details==null?null:e.details.startDate,"HH:mm","UTC")," UTC) "),n(6),p(c(41,39,"Labels.training_course_end_date")),n(4),y(" ",V(45,41,e.details==null?null:e.details.endDate,"yyyy-MM-dd HH:mm")," (",N(46,44,e.details==null?null:e.details.endDate,"HH:mm","UTC")," UTC) "),n(6),p(c(51,48,"Labels.status")),n(4),_(e.changeStatus?-1:54),n(),_(!e.changeStatus&&(e.details==null?null:e.details.trainingEventStatusId)!==e.statusEnum.Completed&&(e.details==null?null:e.details.trainingEventStatusId)!==e.statusEnum.Modified?55:-1),n(),_(e.changeStatus?56:-1),n(),_(e.changeStatus?57:-1),n(),_(e.submittingStatus?58:-1),n(4),p(c(63,50,"TableColumns.description")),n(4),p(e.details==null?null:e.details.eventDescription),n(4),p(c(71,52,"Labels.visibility")),n(4),p(c(75,54,e.details!=null&&e.details.isVisible?"Buttons.public":"Buttons.private")),n(5),p(c(80,56,"L
1abels.visibilityonlandingpage")),n(4),p(c(84,58,e.details!=null&&e.details.isVisibleLandingPage?"Buttons.public":"Buttons.private"))}}function Ze(t,s){t&1&&v(0,"app-loader")}function Ke(t,s){if(t&1&&(a(0,"span",15),r(1),o()),t&2){let e=m();n(),p(e.enrollments.length)}}function Qe(t,s){t&1&&v(0,"app-loader")}function Xe(t,s){t&1&&(a(0,"div",36),r(1),d(2,"translate"),o()),t&2&&(n(),b(" ",c(2,1,"Labels.no_data_available")," "))}function Ye(t,s){if(t&1){let e=w();a(0,"span",55),f("click",function(i){x(e);let u=m().$implicit,S=m(3);return i.stopPropagation(),h(S.toggleTraineeSelection(u.traineeId))}),E(),a(1,"svg",56),v(2,"path",57),o()()}if(t&2){let e=m().$implicit,l=m(3);L("on",l.selectedTraineeIds.includes(e.traineeId))}}function et(t,s){t&1&&(a(0,"span",50),d(1,"translate"),E(),a(2,"svg",58),v(3,"path",59),o()()),t&2&&C("matTooltip",c(1,1,"Labels.course_materials_assigned"))}function tt(t,s){if(t&1&&(a(0,"div",54)(1,"div",60)(2,"div",61),r(3),d(4,"translate"),o(),a(5,"div",62),r(6),o()(),a(7,"div",60)(8,"div",61),r(9),d(10,"translate"),o(),a(11,"div",62),r(12),d(13,"date"),o()(),a(14,"div",60)(15,"div",61),r(16),d(17,"translate"),o(),a(18,"div",62),r(19),o()()()),t&2){let e=m().$implicit;n(3),p(c(4,6,"Labels.email")),n(3),p(e.email),n(3),p(c(10,8,"Labels.enroll_date")),n(3),p(V(13,10,e.enrolledDate,"yyyy-MM-dd HH:mm")),n(4),p(c(17,13,"Labels.status")),n(3),p(e.statusName)}}function nt(t,s){if(t&1){let e=w();a(0,"div",44)(1,"div",45),f("click",function(){let i=x(e).$index,u=m(3);return h(u.toggleEnrolledOpen(i))}),a(2,"div",46),g(3,Ye,3,2,"span",47),a(4,"span",48),r(5),o()(),a(6,"div",49)(7,"span",25),r(8),o(),g(9,et,4,3,"span",50),a(10,"button",51),f("click",function(i){let u=x(e).$index,S=m(3);return i.stopPropagation(),h(S.toggleEnrolledOpen(u))}),E(),a(11,"svg",52),v(12,"path",53),o()()()(),g(13,tt,20,15,"div",54),o()}if(t&2){let e=s.$implicit,l=s.$index,i=m(3);L("open",i.enrolledOpen.has(l)),n(3),_(i.isTraineeSelectable(e)?3:-1),n(2),p(e.traineeName),n(2),C("ngClass",i.getStatusClass(e.statusName)),n(),b(" ",i.getDisplayStatus(e.statusName)," "),n(),_(e.materialAssigned?9:-1),n(4),_(i.enrolledOpen.has(l)?13:-1)}}function it(t,s){if(t&1){let e=w();a(0,"div",37)(1,"button",38),f("click",function(){x(e);let i=m(2);return h(i.assignMaterialsConfirm())}),E(),a(2,"svg",39),v(3,"path",40),o(),P(),a(4,"span"),r(5),d(6,"translate"),o()(),a(7,"span",41),f("click",function(){x(e);let i=m(2);return h(i.toggleSelectAllTrainees())}),r(8),d(9,"translate"),d(10,"translate"),o()(),a(11,"div",42),F(12,nt,14,8,"div",43,Ae),o()}if(t&2){let e=m(2);n(),L("spinner",e.loadingAssign),C("disabled",e.selectedTraineeIds.length===0||e.loadingAssign),n(4),p(c(6,5,"Buttons.assign_course_materials")),n(3),b(" ",e.selectedTraineeIds.length?c(9,7,"Labels.deselect_all"):c(10,9,"Labels.select_all")," "),n(4),z(e.enrollments)}}function at(t,s){if(t&1&&(a(0,"div",16),g(1,Xe,3,3,"div",36)(2,it,14,11),o()),t&2){let e=m();n(),_(e.enrollments.length===0?1:2)}}var Qt=(()=>{let s=class s{constructor(){this.id="",this.enrollments=[],this.statusEnum=se,this.changeStatus=!1,this.submittingStatus=!1,this.loadingCompleted=!1,this.loadingAssign=!1,this.isLoading=!0,this.isLoadingEnrollments=!0,this.enrolledOpen=new Set,this.selectedTraineeIds=[],this.router=M(oe),this.activatedRoute=M(ae),this.http=M(ie),this.destroyRef=M(q),this.translate=M(A),this.toastrService=M(de),this.dialog=M(we),this.statusClasses={New:"New",Incomplete:"Incomplete",Applied:"Applied",Pending:"pending",Approved:"approved",Suspended:"suspended",Rejected:"Rejected",Revoked:"revoked",Expired:"Expired",Withdrawn:"Withdrawn",Accepted:"Accepted",Draft:"Draft",Submitted:"Submitted",Sent:"Sent",Active:"Active",Planned:"Planned",Completed:"Completed",ApprovedWithLimitation:"ApprovedWithLimitation",PreApproved:"PreApproved",Review:"Review",ActiveConfirmed:"ActiveConfirmed",Modified:"Modified"}}ngOnInit(){this.id=this.activatedRoute.snapshot.params.id,this.fetchDetails(),this.fetchEnrollments()}fetchDetails(){this.isLoading=!0;let l=k(O.partnerLaunchingEventById,{id:this.id});this.http.get(l).pipe(I(this.destroyRef)).subscribe({next:i=>{this.details=i?.data??i,this.changeStatus=!1,this.isLoading=!1},error:()=>this.isLoading=!1})}fetchEnrollments(){this.isLoadingEnrollments=!0;let l=k(O.partnerLaunchingEventEnrollments,{id:this.id});this.http.get(l).pipe(I(this.destroyRef)).subscribe({next:i=>{this.enrollments=i?.data??i??[],this.isLoadingEnrollments=!1},error:()=>this.isLoadingEnrollments=!1})}getStatusClass(l){return l?this.statusClasses[l]:""}getDisplayStatus(l){let i={New:this.translate.instant("Labels.status_new"),Incomplete:this.translate.instant("Labels.status_incomplete"),Applied:this.translate.instant("Labels.status_applied"),Pending:this.translate.instant("Labels.status_pending"),Approved:this.translate.instant("Labels.status_approved"),Suspended:this.translate.instant("Labels.status_suspended"),Rejected:this.translate.instant("Labels.status_rejected"),Revoked:this.translate.instant("Labels.status_revoked"),Expired:this.translate.instant("Labels.status_expired"),Withdrawn:this.translate.instant("Labels.status_withdrawn"),Accepted:this.translate.instant("Buttons.accepted"),Draft:this.translate.instant("Labels.status_draft"),Submitted:this.translate.instant("Labels.status_submitted"),Sent:this.translate.instant("Labels.status_sent"),Active:this.translate.instant("Labels.active"),Planned:this.translate.instant("Labels.status_planned"),Completed:this.translate.instant("Labels.status_completed"),ApprovedWithLimitation:this.translate.instant("Labels.status_approved_with_limitation"),PreApproved:this.translate.instant("Labels.status_pre_approved"),Review:this.translate.instant("Labels.status_review"),ActiveConfirmed:this.translate.instant("Labels.status_active_confirmed"),Modified:this.translate.instant("Labels.status_modified")};return l?i[l]||l:""}assignMaterialsConfirm(){this.dialog.open(Ie,{data:{},width:"100%",maxWidth:400}).afterClosed().subscribe(i=>{i?.confirmed&&this.assignCourseMaterial()})}assignCourseMaterial(){this.loadingAssign=!0;let l=k(O.partnerLaunchingEventAssignCourseMaterials),i={launchingEventId:parseInt(this.id
1),userIds:this.selectedTraineeIds};this.http.put(l,i).pipe(I(this.destroyRef),j(()=>this.loadingAssign=!1)).subscribe({next:()=>{this.toastrService.success(this.translate.instant("Messages.materials_assigned_successfully")),this.selectedTraineeIds=[],this.fetchEnrollments()},error:u=>{this.toastrService.error(u?.error?.errors?.[0]||this.translate.instant("Messages.something_went_wrong"))}})}isTraineeSelectable(l){return!l?.materialAssigned&&l?.statusName!=="Applied"}toggleTraineeSelection(l){let i=this.selectedTraineeIds.indexOf(l);i===-1?this.selectedTraineeIds.push(l):this.selectedTraineeIds.splice(i,1)}toggleSelectAllTrainees(){this.selectedTraineeIds.length?this.selectedTraineeIds=[]:this.selectedTraineeIds=this.enrollments.filter(l=>this.isTraineeSelectable(l)).map(l=>l.traineeId)}toggleEnrolledOpen(l){this.enrolledOpen.has(l)?this.enrolledOpen.delete(l):this.enrolledOpen.add(l)}openEditModal(){this.dialog.open(Le,{panelClass:"slide-in",height:"100%",width:"630px",position:{right:"0px",top:"0px"},data:{id:parseInt(this.id)}}).afterClosed().subscribe(i=>{i&&this.fetchDetails()})}updateStatusEvent(l){if(!this.details)return;let i=k(O.partnerLaunchingEvents);l!==this.statusEnum.Completed?this.submittingStatus=!0:this.loadingCompleted=!0;let u={id:this.details.id,isVisible:this.details.isVisible,isVisibleLandingPage:this.details.isVisibleLandingPage,trainingEventStatusId:l,startDate:this.details.startDate,endDate:this.details.endDate,eventLocationId:this.details.eventLocationId,eventDescription:this.details.eventDescription,isActive:this.details.isActive,partnerId:this.details.partnerId,billingProductId:this.details.billingProductId,quantityCap:this.details.quantityCap};this.http.put(i,u).pipe(I(this.destroyRef),j(()=>{this.submittingStatus=!1,this.loadingCompleted=!1})).subscribe({next:S=>{S.success?(this.toastrService.success(this.translate.instant("Messages.status_updated_successfully")),this.fetchDetails()):this.toastrService.warning(S.message||"Something went wrong.")}})}};s.\u0275fac=function(i){return new(i||s)},s.\u0275cmp=B({type:s,selectors:[["app-launching-event-details"]],decls:29,vars:15,consts:[[1,"go-back","mb-3","d-block",3,"routerLink"],[1,"me-2"],["fill","none","height","14","viewBox","0 0 13 14","width","13","xmlns","http://www.w3.org/2000/svg"],["d","M11.5 7L1 7M1 7L6.25 12.25M1 7L6.25 1.75","stroke","#313131","stroke-linecap","round","stroke-linejoin","round","stroke-width","1.67"],[1,"events-details"],[1,"row"],[1,"col-lg-6","mb-3"],[1,"table-list","bg-white"],[1,"table-header","d-flex","align-items-center","justify-content-between"],[1,"mb-0"],[1,"event-table-details"],[1,"col-lg-6"],[1,"bg-white","emails"],[1,"iso-rp-tabs"],["type","button",1,"iso-rp-tab","active"],[1,"cnt"],[1,"trainee-list","mt-3"],["mat-raised-button","","type","button",1,"white-button",3,"click"],["mat-raised-button","","type","button",1,"white-button",3,"disabled","spinner"],["mat-raised-button","","type","button",1,"white-button",3,"click","disabled"],[1,"table-row"],[1,"table-col"],[1,"table-col","table-col-status"],[1,"table-col","table-col-status-details"],[1,"d-flex"],[3,"ngClass"],["mat-raised-button","",1,"secondary-btn","ms-2"],["appearance","outline",1,"select-options"],["width","18","height","18","viewBox","0 0 18 18","xmlns","http://www.w3.org/2000/svg",1,"cursor-pointer","ms-2","mt-3"],[1,"loader-container","mt-2"],["mat-raised-button","",1,"secondary-btn","ms-2",3,"click"],[3,"value"],[3,"click","value"],["width","18","height","18","viewBox","0 0 18 18","xmlns","http://www.w3.org/2000/svg",1,"cursor-pointer","ms-2","mt-3",3,"click"],["d","M13.5 4.5L4.5 13.5M4.5 4.5L13.5 13.5","stroke","#EC5837","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["diameter","20","mode","indeterminate","color","primary"],[1,"iso-tab-empty"],[1,"ed-seltool"],["type","button",1,"ed-tbtn",3,"click","disabled"],["width","18","height","18","viewBox","0 0 18 18","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M15 9.375V5.1C15 3.83988 15 3.20982 14.7548 2.72852C14.539 2.30516 14.1948 1.96095 13.7715 1.74524C13.2902 1.5 12.6601 1.5 11.4 1.5H6.6C5.33988 1.5 4.70982 1.5 4.22852 1.74524C3.80516 1.96095 3.46095 2.30516 3.24524 2.72852C3 3.20982 3 3.83988 3 5.1V12.9C3 14.1601 3 14.7902 3.24524 15.2715C3.46095 15.6948 3.80516 16.039 4.22852 16.2548C4.70982 16.5 5.33985 16.5 6.59989 16.5H9.375M10.5 8.25H6M7.5 11.25H6M12 5.25H6M12.5048 15.75L14.7548 13.5M14.7548 13.5L12.5048 11.25M14.7548 13.5H10.2548","stroke","currentColor","stroke-width","1.2","stroke-linecap","round","stroke-linejoin","round"],[1,"ed-selall",3,"click"],[1,"acc-list"],[1,"acc-card",3,"open"],[1,"acc-card"],[1,"acc-head",3,"click"],[1,"acc-left"],[1,"acc-cbx",3,"on"],[1,"acc-name"],[1,"acc-right"],[1,"acc-iconbtn","assigned",3,"matTooltip"],["type","button",1,"acc-iconbtn",3,"click"],["width","18","height","18","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg",1,"acc-chev"],["d","M6 9l6 6 6-6","
1stroke","#212427","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],[1,"acc-body"],[1,"acc-cbx",3,"click"],["viewBox","0 0 24 24","fill","none"],["d","M5 12l4 4 10-10","stroke","#fff","stroke-width","2.4","stroke-linecap","round","stroke-linejoin","round"],["width","20","height","20","viewBox","0 0 18 18","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M5.625 9L7.875 11.25L12.375 6.75M16.5 9C16.5 13.1421 13.1421 16.5 9 16.5C4.85786 16.5 1.5 13.1421 1.5 9C1.5 4.85786 4.85786 1.5 9 1.5C13.1421 1.5 16.5 4.85786 16.5 9Z","stroke","#1F9D55","stroke-width","1.3","stroke-linecap","round","stroke-linejoin","round"],[1,"acc-field"],[1,"lab"],[1,"val"]],template:function(i,u){i&1&&(a(0,"a",0)(1,"span",1),E(),a(2,"svg",2),v(3,"path",3),o()(),r(4),d(5,"translate"),o(),P(),a(6,"div",4)(7,"div",5)(8,"div",6)(9,"div",7)(10,"div",8)(11,"p",9),r(12),d(13,"translate"),o(),g(14,He,5,4,"div",10),o(),K(15,qe,85,60)(16,Ze,1,0),Q(17,15,Be,null,16),o()(),a(19,"div",11)(20,"div",12)(21,"div",13)(22,"button",14)(23,"span"),r(24),d(25,"translate"),o(),g(26,Ke,2,1,"span",15),o()(),g(27,Qe,1,0,"app-loader")(28,at,3,1,"div",16),o()()()()),i&2&&(C("routerLink",te(14,Ve)),n(4),b(" ",c(5,8,"Buttons.go_back"),`
2`),n(8),p(c(13,10,"Buttons.details")),n(2),_(u.details?14:-1),n(3),X(u.details),n(7),p(c(25,12,"Labels.enrolled_candidates")),n(2),_(u.enrollments.length>0?26:-1),n(),_(u.isLoadingEnrollments?27:28))},dependencies:[ne,$,le,D,H,he,fe,me,R,Ee,W,T],styles:[".pending[_ngcontent-%COMP%], .Incomplete[_ngcontent-%COMP%], .NotAttended[_ngcontent-%COMP%]{color:#8b4513;background-color:#ffe4b5;border:1px solid #ffe4b5;border-radius:52px;font-size:13px;font-weight:500;padding:8px 13px}.approved[_ngcontent-%COMP%], .ActiveConfirmed[_ngcontent-%COMP%], .Applied[_ngcontent-%COMP%], .Submitted[_ngcontent-%COMP%], .Sent[_ngcontent-%COMP%], .Active[_ngcontent-%COMP%]{color:#006400;background-color:#acebac;border:1px solid #acebac;border-radius:52px;font-size:13px;font-weight:500;padding:8px 13px}.Completed[_ngcontent-%COMP%]{color:#57bc57;background-color:#e6f4ea;border:1px solid #e6f4ea;border-radius:52px;font-size:13px;font-weight:500;padding:8px 13px}.suspended[_ngcontent-%COMP%], .Rejected[_ngcontent-%COMP%], .revoked[_ngcontent-%COMP%], .Withdrawn[_ngcontent-%COMP%], .Expired[_ngcontent-%COMP%]{color:#8b0000;background-color:#ffb6c1;border:1px solid #ffb6c1;border-radius:52px;font-size:13px;font-weight:500;padding:8px 13px}.New[_ngcontent-%COMP%], .Review[_ngcontent-%COMP%]{color:#0094e8;background-color:#afe2ff;border:1px solid #afe2ff;border-radius:52px;font-size:13px;font-weight:500;padding:8px 13px}.Modified[_ngcontent-%COMP%], .Planned[_ngcontent-%COMP%], .Draft[_ngcontent-%COMP%]{color:#8b4513;background-color:#ffe4b5;border:1px solid #ffe4b5;border-radius:52px;font-size:13px;font-weight:500;padding:8px 13px}.ApprovedWithLimitation[_ngcontent-%COMP%]{color:navy;background-color:#b0c4de;border:1px solid #b0c4de;border-radius:52px;font-size:13px;font-weight:500;padding:8px 13px}.PreApproved[_ngcontent-%COMP%]{color:#8b0000;background-color:gold;border:1px solid #ffd700;border-radius:52px;font-size:13px;font-weight:500;padding:8px 13px}.table-list[_ngcontent-%COMP%]{background:#fff;border:1px solid #ececec;border-radius:12px;padding:20px 24px}.table-list[_ngcontent-%COMP%]   .table-header[_ngcontent-%COMP%]{padding-bottom:14px;margin-bottom:4px;border-bottom:1px solid #ececec}.table-list[_ngcontent-%COMP%]   .table-header[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-family:Plus Jakarta Sans,sans-serif;font-size:16px;font-weight:600;color:#1a1717}.table-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:flex-start;gap:6px 16px;padding:13px 0;border-bottom:1px solid #f4f4f4;font-family:Plus Jakarta Sans,sans-serif}.table-row[_ngcontent-%COMP%]:last-child{border-bottom:none;padding-bottom:0}.table-col[_ngcontent-%COMP%]{font-size:14px}.table-col[_ngcontent-%COMP%]:first-child{flex:0 0 190px;color:#919191;font-weight:400}.table-col[_ngcontent-%COMP%]:last-child{flex:1 1 220px;color:#1a1717;font-weight:500;overflow-wrap:anywhere}.table-col-status[_ngcontent-%COMP%]{flex-basis:190px!important}.table-col-status-details[_ngcontent-%COMP%]{flex-basis:calc(100% - 190px)!important}.table-col-status-details[_ngcontent-%COMP%]   .mat-mdc-form-field[_ngcontent-%COMP%]{margin:0!important}.event-table-details[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}.emails[_ngcontent-%COMP%]{background:#fff;border:1px solid #ececec;border-radius:12px;padding:20px 24px}.iso-rp-tabs[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:4px}.iso-rp-tab[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;gap:10px;height:40px;padding:12px 18px;border:none;background:none;border-radius:80px;cursor:default;font-family:Plus Jakarta Sans,sans-serif;font-weight:500;font-size:14px;color:#919191;white-space:nowrap}.iso-rp-tab[_ngcontent-%COMP%]   .cnt[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:9999px;background:#a11e29;color:#fff;font-weight:500;font-size:12px;line-height:1}.iso-rp-tab.active[_ngcontent-%COMP%]{background:#c2c2c2;
2color:#1a1717}.iso-tab-empty[_ngcontent-%COMP%]{padding:24px 8px;font-family:Plus Jakarta Sans,sans-serif;font-size:14px;color:#919191;text-align:center}.ed-seltool[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px}.ed-tbtn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;height:40px;padding:8px 16px;border-radius:6px;border:1px solid #212427;background:#212427;color:#fff;font-family:Plus Jakarta Sans,sans-serif;font-weight:500;font-size:14px;cursor:pointer;transition:background-color .2s ease,color .2s ease,border-color .2s ease}.ed-tbtn[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{width:18px;height:18px}.ed-tbtn[_ngcontent-%COMP%]:disabled{background:#ececec;border-color:#c2c2c280;color:#c2c2c2;cursor:not-allowed}.ed-selall[_ngcontent-%COMP%]{margin-left:auto;font-family:Plus Jakarta Sans,sans-serif;font-weight:600;font-size:14px;color:#212427;cursor:pointer;white-space:nowrap}.ed-selall[_ngcontent-%COMP%]:hover{color:#616161}.acc-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px;margin-top:4px}.acc-card[_ngcontent-%COMP%]{border:1px solid #ececec;border-radius:12px;background:#f4f4f4;overflow:hidden}
2.acc-card[_ngcontent-%COMP%]   .acc-head[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 20px;cursor:pointer}.acc-card[_ngcontent-%COMP%]   .acc-left[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px;min-width:0}.acc-card[_ngcontent-%COMP%]   .acc-cbx[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:6px;border:2px solid #c2c2c2;background:#fff;cursor:pointer;flex-shrink:0}.acc-card[_ngcontent-%COMP%]   .acc-cbx[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{width:14px;height:14px;display:none}.acc-card[_ngcontent-%COMP%]   .acc-cbx.on[_ngcontent-%COMP%]{background:#212427;border-color:#212427}.acc-card[_ngcontent-%COMP%]   .acc-cbx.on[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{display:block}.acc-card[_ngcontent-%COMP%]   .acc-name[_ngcontent-%COMP%]{font-family:Plus Jakarta Sans,sans-serif;font-weight:500;font-size:14px;color:#1a1717;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.acc-card[_ngcontent-%COMP%]   .acc-right[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;flex-shrink:0}.acc-card[_ngcontent-%COMP%]   .acc-iconbtn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid #ececec;border-radius:8px;background:#fff;cursor:pointer;color:#212427;transition:border-color .16s ease,background-color .16s ease}.acc-card[_ngcontent-%COMP%]   .acc-iconbtn[_ngcontent-%COMP%]:hover{border-color:#c2c2c2;background:#fafafa}.acc-card[_ngcontent-%COMP%]   .acc-iconbtn.assigned[_ngcontent-%COMP%]{border-color:#bfe6cc;background:#f0faf3;cursor:default}.acc-card[_ngcontent-%COMP%]   .acc-iconbtn[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:not-allowed}.acc-card[_ngcontent-%COMP%]   .acc-chev[_ngcontent-%COMP%]{transition:transform .18s ease}.acc-card.open[_ngcontent-%COMP%]   .acc-chev[_ngcontent-%COMP%]{transform:rotate(180deg)}.acc-card[_ngcontent-%COMP%]   .acc-body[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:14px 24px;padding:18px 20px;background:#fff;border-top:1px solid #ececec;border-radius:0 0 12px 12px}.acc-card[_ngcontent-%COMP%]   .acc-field[_ngcontent-%COMP%]   .lab[_ngcontent-%COMP%]{font-family:Plus Jakarta Sans,sans-serif;font-size:13px;font-weight:400;color:#919191;margin-bottom:4px}.acc-card[_ngcontent-%COMP%]   .acc-field[_ngcontent-%COMP%]   .val[_ngcontent-%COMP%]{font-family:Plus Jakarta Sans,sans-serif;font-size:14px;font-weight:500;color:#616161;overflow-wrap:anywhere}"]});let t=s;return t})();export{Qt as LaunchingEventDetailsComponent};

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.