PageSourceSearch

https://www.myhub.org/education/chunk-YK5BCFO2.js

js myhub.org collected 2026-09-28 07:39:12 UTC 31,381 bytes, 4 lines download raw bytes

1import{a as te}from"./chunk-MRPFDQMT.js";import{a as R}from"./chunk-N6YKB2EQ.js";import{a as he}from"./chunk-64OQAPST.js";import{$ as f,A as r,B as S,C as P,Cb as ae,D as z,Ea as Q,H as d,I as m,J as y,K as M,Kb as le,L as N,M as g,Mb as ce,N as n,Na as Y,Nb as se,O as o,Oa as I,P as h,Qa as q,Ra as W,S as x,Sa as X,T as u,Ta as J,U as p,Ua as K,Va as Z,W as V,Wa as ee,X as A,Y as j,Z as b,_ as a,aa as E,bb as B,da as G,ea as w,ia as L,k as U,lb as ie,m as C,ma as F,mb as ne,n as _,qc as de,rb as oe,ta as $,tc as me,uc as pe,wa as H,x as D,xc as fe,yc as ge,zb as re}from"./chunk-LK7DU4WR.js";var Oe=["livedName"],Ce=(()=>{class t{constructor(e,i){this.dialogRef=e,this.data=i}download(){this.dialogRef.close({event:"download",hasSelectedLivedName:this.livedName.checked})}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)(S(q),S(W,8))}}static{this.\u0275cmp=P({type:t,selectors:[["app-lived-name-dialogue"]],viewQuery:function(i,l){if(i&1&&V(Oe,5),i&2){let c;A(c=j())&&(l.livedName=c.first)}},standalone:!1,decls:29,vars:3,consts:[["tooltip","matTooltip"],["legalName",""],["livedName",""],["id","livedNameDialogTitle","mat-dialog-title",""],["tabIndex","0","matTooltip","The Lived Name is a self-chosen or preferred personal and/or professional name used instead of a legal name.","matTooltipPosition","right","matTooltipClass","information-box","src","assets/information-circle.png","alt","Information Icon",1,"pb-1",3,"click"],[1,"row-width"],[1,"d-flex","justify-content-start"],[1,"p-2","d-flex","flex-column"],["disableRipple","","id","legalNameRadioBtn","value","1",1,"mat-radio-Offset",3,"checked"],[1,"radio-btn-text"],["disableRipple","","id","legalAndLivedNameRadioBtn","value","2",1,"mat-radio-Offset"],[2,"text-align","center"],["mat-raised-button","","color","primary","id","livedNameDialogDownloadBtn","mat-dialog-close","",1,"submitButton",3,"click"],["mat-stroked-button","","color","primary","id","livedNameDialogCancelBtn","mat-dialog-close","",1,"resetButton","ms-3"]],template:function(i,l){if(i&1){let c=x();n(0,"h3",3),a(1,"Generate Your Certificate"),o(),n(2,"mat-dialog-content")(3,"p"),a(4,"Your school has opted-in to our Lived Name Initiative. "),n(5,"span")(6,"img",4,0),u("click",function(){C(c);let O=b(7);return _(O.toggle())}),o()()(),n(8,"p"),a(9,"Please select the name you would like to use. This will impact the name displayed on your certificate."),o(),n(10,"div")(11,"mat-radio-group")(12,"div",5)(13,"div",6)(14,"div",7)(15,"mat-radio-button",8,1)(17,"span",9),a(18),o()(),n(19,"mat-radio-button",10,2)(21,"span",9),a(22),o()()()()()()()(),n(23,"mat-dialog-actions")(24,"p",11)(25,"button",12),u("click",function(){return l.download()}),a(26," Download Certificate "),o(),n(27,"button",13),a(28," Cancel "),o()()()}i&2&&(r(15),g("checked",!0),r(3),E(" ",l.data.studentLegalFullName," "),r(4),E(" ",l.data.studentLivedFullName," "))},dependencies:[I,J,K,ee,Z,ce,se,ae],styles:[`.mat-radio-Offset[_ngcontent-%COMP%]{margin-left:5px;margin-top:8px}.radio-btn-text[_ngcontent-%COMP%]{display:block;white-space:normal}  .information-box{box-sizing:border-box;background:#e3d5e7!important;border:1px solid #C2C2C1!important;box-shadow:0 7px 20px #0000001f;border-radius:4px;font-family:Open Sans;font-style:normal;font-weight:400;font-size:.875rem;color:#292929;position:relative;left:1%;max-width:40vw!important}@media(max-width:992px){  .information-box{font-size:.5rem!important}h3[_ngcontent-%COMP%]{font-size:4vw}p[_ngcontent-%COMP%]{font-size:2.5vw}img[_ngcontent-%COMP%]{width:2.5vw}}
2/*# sourceMappingURL=lived-name-dialogue.component-XQ7GMAMM.css.map */`]})}}return t})();function be(t,s){t&1&&(n(0,"div"),h(1,"app-system-error",30),o())}function Ee(t,s){if(t&1){let e=x();n(0,"div",10),h(1,"img",31),n(2,"div",32)(3,"h5"),a(4,"Disable Pop-Up Blockers"),o(),n(5,"p"),a(6,"Please disable pop-up blockers and your enrollment certificate will open in a separate window."),o()(),n(7,"mat-icon",33),u("click",function(){C(e);let l=p(2);return _(l.popupBlockerError=!1)}),a(8,"close"),o()()}}function we(t,s){if(t&1&&(n(0,"div",14)(1,"a",34)(2,"b"),a(3,"Track the status of your order"),o()()()),t&2){let e=p(2);r(),g("href",G(e.trackOrderURL),D)}}function Te(t,s){if(t&1&&(n(0,"mat-option",24),a(1),o()),t&2){let e=s.$implicit,i=s.$index;g("id",w("enrToOrgOption",i+1))("value",i),r(),f(e.orgName)}}function De(t,s){if(t&1){let e=x();n(0,"mat-form-field",16)(1,"mat-label"),a(2,"Select a School *"),o(),n(3,"mat-select",35,2),u("selectionChange",function(){C(e);let l=b(4),c=p(2);return _(c.selectedToOrg=c.toOrgs[l.value])}),M(5,Te,2,4,"mat-option",24,y),o()()}if(t&2){let e=p(2);r(5),N(e.toOrgs)}}function ye(t,s){if(t&1&&(n(0,"div")(1,"p",36),a(2),o()()),t&2){let e=p(2);r(2),f((e.selectedToOrg==null?null:e.selectedToOrg.orgName)||"")}}function Me(t,s){t&1&&(n(0,"div")(1,"p",37),a(2,"No TO Ordering Schools"),o()())}function Ne(t,s){if(t&1){let e=x();n(0,"button",42),u("click",function(){C(e);let l=p(3);return _(l.orderTranscript(l.selectedToOrg))}),a(1,"Order Transcript"),o()}}function Pe(t,s){if(t&1&&(n(0,"app-info-box")(1,"div",43)(2,"p"),a(3),o()()()),t&2){let e=p(3);r(3),f(e.selectedToOrg==null?null:e.selectedToOrg.toDisabledStatement)}}function Ie(t,s){if(t&1&&(n(0,"div",17)(1,"div",38)(2,"p",39),a(3),o()(),n(4,"div",40),d(5,Ne,2,0,"button",41)(6,Pe,4,1,"app-info-box"),o()()),t&2){let e=p(2);r(3),f(e.selectedToOrg.orgName),r(2),m(e.selectedToOrg.allowToOrder?5:6)}}function ke(t,s){if(t&1&&(n(0,"mat-option",24),a(1),o()),t&2){let e=s.$implicit,i=s.$index;g("id",w("enrOrgSelectOption",i+1))("value",i),r(),f(e.orgName)}}function Le(t,s){if(t&1&&(n(0,"mat-option",24),a(1),o()),t&2){let e=s.$implicit,i=s.$index;g("id",w("enrCertOption",i+1))("value",i),r(),f(e.text)}}function Fe(t,s){if(t&1&&(n(0,"p",50),a(1),L(2,"date"),o()),t&2){let e=p(4);r(),E(" Certified Date : ",F(2,1,e.selectedEnrDTO.startDate,"MM/dd
2/yyyy","GMT","en-US")," ")}}function Be(t,s){if(t&1&&(n(0,"span",53),a(1," For additional information regarding this school, please contact "),n(2,"b"),a(3),o(),a(4," at "),n(5,"a",57),a(6),o()()),t&2){let e=p(4);r(3),f(e.selectedEnrDTO.contactName),r(2),g("href",w("mailto:",e.selectedEnrDTO.contactEmail),D),r(),f(e.selectedEnrDTO.contactEmail)}}function Re(t,s){t&1&&(n(0,"span",53),a(1," For additional information, please contact your school "),o())}function Ue(t,s){if(t&1&&(n(0,"p",50),a(1),L(2,"date"),o()),t&2){let e=p(4);r(),E(" Certified Date : ",F(2,1,e.selectedEnrDTO.startDate,"MM/dd/yyyy","GMT","en-US")," ")}}function ze(t,s){if(t&1&&(n(0,"span",53),a(1," For additional information regarding this school, please contact "),n(2,"b"),a(3),o(),a(4," at "),n(5,"a",57),a(6),o()()),t&2){let e=p(4);r(3),f(e.selectedEnrDTO.contactName),r(2),g("href",w("mailto:",e.selectedEnrDTO.contactEmail),D),r(),f(e.selectedEnrDTO.contactEmail)}}function Ve(t,s){t&1&&(n(0,"span",53),a(1," For additional information, please contact your school "),o())}function Ae(t,s){if(t&1){let e=x();n(0,"div",44)(1,"div",45)(2,"div"),h(3,"img",46),o(),n(4,"div",47)(5,"p",48),a(6),o(),n(7,"div",49),d(8,Fe,3,6,"p",50),n(9,"span",51),h(10,"img",52),d(11,Be,7,4,"span",53),d(12,Re,2,0,"span",53),o()()()(),n(13,"div")(14,"button",54),u("click",function(){C(e);let l=p(3);return _(l.onSubmit())}),a(15,"Download Certificate"),o()(),n(16,"div",55)(17,"div",56),d(18,Ue,3,6,"p",50),n(19,"div",51),h(20,"img",52)(21,"br"),d(22,ze,7,4,"span",53),d(23,Ve,2,0,"span",53),o()()()()}if(t&2){let e=p(3);r(3),g("src",e.selectedEnrDTO.logo,D),r(3),f(e.selectedEnrDTO.orgName),r(2),m(e.selectedEnrDTO.startDate?8:-1),r(3),m(e.selectedEnrDTO.contactName&&e.selectedEnrDTO.contactEmail?11:-1),r(),m(!e.selectedEnrOrg.contactName||!e.selectedEnrOrg.contactEmail?12:-1),r(6),m(e.selectedEnrDTO.startDate?18:-1),r(4),m(e.selectedEnrDTO.contactName&&e.selectedEnrDTO.contactEmail?22:-1),r(),m(!e.selectedEnrOrg.contactName||!e.selectedEnrOrg.contactEmail?23:-1)}}function je(t,s){t&1&&(n(0,"div",27)(1,"div",58),a(2,"Sorry your school does not offer the option to\xA0download enrollment certificates. Please contact your Registrar's office for further details."),o()())}function Ge(t,s){if(t&1&&(n(0,"div",26),d(1,Ae,24,8,"div",44),d(2,je,3,0,"div",27),o()),t&2){let e=p(2);r(),m(e.selectedEnrOrg!=null&&e.selectedEnrOrg.offerEnrollmentCertificates?1:-1),r(),m(e.selectedEnrOrg!=null&&e.selectedEnrOrg.offerEnrollmentCertificates?-1:2)}}function $e(t,s){t&1&&(n(0,"div",27)(1,"div",59),a(2,"No enrollment history at this time."),o()())}function He(t,s){t&1&&(n(0,"div",28)(1,"h5",60),a(2,"Sorry, we encountered an issue on our side. Try refreshing the page."),o()())}function Qe(t,s){if(t&1&&(n(0,"div",28)(1,"h5",61),a(2),o()()),t&2){let e=p(2);r(2),E(" You are not eligible for a ",e.selectedCertType.text,". If you have questions about your eligibility requirements please contact your school registrar's office. ")}}function Ye(t,s){if(t&1&&(n(0,"mat-option",24),a(1),o()),t&2){let e=s.$implicit,i=s.$index;g("id",w("degOrgOption",i+1))("value",i),r(),f(e.name)}}function qe(t,s){if(t&1){let e=x();n(0,"mat-form-field",16)(1,"mat-label"),a(2,"Select a Degree *"),o(),n(3,"mat-select",63,3),u("selectionChange",function(){C(e);let l=b(4),c=p(3);return _(c.selectedDegOrg=c.degreeDTO[l.value])}),M(5,Ye,2,4,"mat-option",24,y),o()()}if(t&2){let e=p(3);r(5),N(e.degreeDTO)}}function We(t,s){if(t&1&&(n(0,"div")(1,"p",36),a(2),o()()),t&2){let e=p(3);r(2),f((e.selectedDegOrg==null?null:e.selectedDegOrg.name)||"")}}function Xe(t,s){if(t&1){let e=x();n(0,"button",68),u("click",function(){C(e);let l=p(4);return _(l.redirectToCediploma(l.selectedDegOrg.ceDiplomaUrl))}),a(1,"Get CeDiploma"),o()}}function Je(t,s){t&1&&(n(0,"app-info-box")(1,"div",43)(2,"p"),a(3,"We do not have a CeDiploma on file for you at this time. If you believe this is incorrect, please reach out to your Registrar's office."),o()()())}function Ke(t,s){if(t&1&&(n(0,"div",44)(1,"div",38)(2,"div"),h(3,"img",64),o(),n(4,"p",65),a(5),o()(),n(6,"div",66),d(7,Xe,2,0,"button",67)(8,Je,4,0,"app-info-box"),o()()),t&2){let e=p(3);r(3),g("src",e.selectedDegOrg.logo,D),r(2),f(e.selectedDegOrg.name),r(2),m(e.selectedDegOrg.ceDiplomaUrl?7:8)}}function Ze(t,s){if(t&1&&(n(0,"div",18)(1,"div")(2,"h3",62),a(3,"Get a CeDiploma"),o(),h(4,"hr"),n(5,"p"),a(6,"Select a degree from the dropdown menu to get a CeDiploma."),o()(),n(7,"div",15),d(8,qe,7,0,"mat-form-field",16),o(),d(9,We,3,1,"div"),d(10,Ke,9,3,"div",44),o()),t&2){let e=p(2);r(8),m((e.degreeDTO==null?null:e.degreeDTO.length)!==1?8:-1),r(),m((e.degreeDTO==null?null:e.degreeDTO.length)===1?9:-1),r(),m(e.selectedDegOrg?10:-1)}}function et(t,s){if(t&1){let e=x();n(0,"div",9),d(1,be,2,0,"div"),d(2,Ee,9,0,"div",10),n(3,"div",11)(4,"h2",12),a(5,"Order a Transcript"),o(),h(6,"hr"),n(7,"p",13),a(8,"Select a school from the dropdown menu to order a transcript. "),o(),d(9,we,4,2,"div",14),n(10,"div",15),d(11,De,7,0,"mat-form-field",16),o(),d(12,ye,3,1,"div"),d(13,Me,3,0,"div"),d(14,Ie,7,2,"div",17),o(),n(15,"div",18)(16,"div")(17,"h2",19),a(18,"Download an Enrollment Certificate"),o(),h(19,"hr"),n(20,"div",20)(21,"p",21),a(22,"Select a school and a certificate type from the dropdown menus to download an enrollment certificate. "),o()()(),h(23,"br"),n(24,"div",22)(25,"div",15)(26,"mat-form-field",16)(27,"mat-label"),a(28,"Select a School *"),o(),n(29,"mat-select",23,0),u("selectionChange",function(){C(e);let l=b(30),c=p();return _(c.onSelectEnrOrg(l.value))}),M(31,ke,2,4,"mat-option",24,y),o()()(),n(33,"div",15)(34,"mat-form-field",16)(35,"mat-label"),a(36,"Select a Certificate Type *"),o(),n(37,"mat-select",25,1),u("selectionChange",function(){C(e);let l=b(38),c=p();return _(c.onSelectCertOption(l.value))}),M(39,Le,2,4,"mat-option",24,y),o()()()(),d(41,Ge,3,2,"div",26),d(42,$e,3,0,"div",27),d(43,He,3,0,"div",28),d(44,Qe,3,1,"div",28),o(),d(45,Ze,11,3,"div",18),h(46,"div",29),o()}if(t&2){let e=p();r(),m(e.serverError?1:-1),r(),m(e.popupBlockerError?2:-1),r(7),m(e.dis
2playNSCTranscriptOrder?9:-1),r(2),m(e.toOrgs!=null&&e.toOrgs.length&&(e.toOrgs==null?null:e.toOrgs.length)!==1?11:-1),r(),m((e.toOrgs==null?null:e.toOrgs.length)===1?12:-1),r(),m(e.hasLoadedTOSchools&&(e.toOrgs==null?null:e.toOrgs.length)===0?13:-1),r(),m(e.selectedToOrg?14:-1),r(17),N(e.enrollmentDTO),r(6),g("disabled",!e.selectedEnrOrg),r(2),N(e.certOptions),r(2),m(e.selectedEnrOrg&&e.selectedCertType?41:-1),r(),m(e.noEnrollmentData?42:-1),r(),m(e.certDownlaodError?43:-1),r(),m(e.certNotFound?44:-1),r(),m((e.degreeDTO==null?null:e.degreeDTO.length)>0?45:-1)}}var _e=(()=>{class t{constructor(e,i,l,c,v,O){this.dataService=e,this.sanitizer=i,this.certService=l,this.apiService=c,this.blockIndicator=v,this.dialog=O,this.noData=!0,this.noEnrollmentData=!0,this.noDegreeData=!0,this.noParticipatingSchools=!0,this.noParticipatingCeDiplomaSchools=!0,this.DEFAULT_ENR=0,this.certOptions=[],this.certForm=new B,this.enrollmentForm=new B(this.DEFAULT_ENR),this.trackOrderURL="https://tsorder.studentclearinghouse.org/TrackOrder",this.blobUrl="",this.displayNSCTranscriptOrder=!1}ngOnInit(){this.serverError=!1,this.hasLoadedSchoolProfiles=!1,this.blockIndicator.open(),this.dataService.hasLoadedSchoolProfiles.subscribe(e=>{this.hasLoadedSchoolProfiles=e,this.hasLoadedSchoolProfiles&&(this.getEnrollments(),this.getDegrees(),this.getToProfiles(),this.blockIndicator.close())})}onSelectEnrOrg(e){this.certDownlaodError=!1,this.popupBlockerError=!1,this.selectedEnrOrg=this.enrollmentData[e],this.selectedEnrDTO=this.enrollmentDTO[e],this.certOptions=this.setCertTypeOptions(this.selectedEnrOrg),this.certForm.setValue(this.certOptions[0].value),console.log("cert opts",this.certOptions)}onSelectCertOption(e){this.certDownlaodError=!1,this.popupBlockerError=!1,this.selectedCertType=this.certOptions[e]}getEnrollments(){if(this.dataService.get().enrollments||this.dataService.get().studentOrgs){this.noEnrollmentData=!1,this.enrollmentData=this.dataService.getLatestUniqueEnrollmentOrgMap(),(this.enrollmentData?.length==0||!this.enrollmentData)&&(this.noEnrollmentData=!0),console.log("orgMap",this.dataService.orgMap);for(var e=0;e<this.enrollmentData.length;e++)this.enrollmentData[e].offerEnrollmentCertificates&&(this.noParticipatingSchools=!1);this.enrollmentData=this.enrollmentData.sort(function(i,l){return i.latestEnrollmentStartDate<l.latestEnrollmentStartDate?1:-1}),this.enrollmentData&&(this.enrollmentDTO=this.enrollmentData.map(i=>({status:i.latestEnrollmentStatus,startDate:i.latestEnrollmentStartDate,orgName:i.orgName,logo:this.dataService.getOrgLogo(i.schoolCode,i.schoolBranch),org:this.dataService.orgMap.get(i.schoolCode+i.schoolBranch),contactName:i.contactName,contactEmail:i.contactEmail,legalNameOnly:i.legalNameOnly,allowToOrder:i.allowToOrder,toDisabledStatement:i.toDisabledStatement}))),console.log(this.enrollmentData,this.enrollmentDTO,this.dataService.orgMap)}}getDegrees(){this.dataService.get().degrees&&(console.log("has degrees"),this.noDegreeData=!1,this.degreeData=this.dataService.get().degrees.studentDegrees,this.degreeDTO=this.degreeData.filter(e=>this.filterCEDiplomas(e)).map(e=>({name:e.degreeTitle,logo:this.dataService.getOrgLogo(e.orgCode,e.branchCode),ceDiplomaUrl:e.ceDiplomaDownloadUrl,schoolCode:e.orgCode+e.branchCode,org:this.dataService.orgMap.get(e.orgCode+e.branchCode)})),this.degreeDTO?.length==1&&(this.selectedDegOrg=this.degreeDTO[0]),this.degreeDTO?.length==0&&(this.noDegreeData=!0))}filterCEDiplomas(e){let i=this.dataService.schoolProfilesMap.get(e.orgCode+e.branchCode);return!!(i&&i.offerCEDiploma)}getToProfiles(){this.hasLoadedTOSchools=!1,this.displayNSCTranscriptOrder=!1,this.toOrgs=[];let e=new Set,i=this.dataService.getStudentSchoolCds();this.blockIndicator.open(),this.apiService.getToPublicSchoolProfiles(i).subscribe(l=>{console.log("to public api data ",l),l?.length>0&&l.forEach(c=>{c.allowToOrder=!0,c.participatesInTO&&this.toOrgs.push(c),e.add(c.schoolCode+c.schoolBranch)}),this.dataService.getEnrollmnetAndDegreeOrgs().forEach(c=>{!e.has(c.schoolCode+c.schoolBranch)&&c.toURL&&(console.log("adding to toOrgs ",c.schoolCode),this.toOrgs.push(c))}),this.displayNSCTranscriptOrder=this.toOrgs.some(c=>c.participatesInTO),console.log("this.displayNSCTranscriptOrder",this.displayNSCTranscriptOrder),this.toOrgs?.length==1&&(this.selectedToOrg=this.toOrgs[0]),this.hasLoadedTOSchools=!0,this.blockIndicator.close()},l=>{console.log("failed to get to public school profile api data ",l),this.blockIndicator.close()})}isFreshManStudent(e){let i=this.dataService.get().enrollments?.studentEnrollments?.filter(c=>c.orgCode+c.branchCode===e.schoolCode+e.schoolBranch),l=this.dataService.get().degrees?.studentDegrees?.filter(c=>c.orgCode+c.branchCode===e.schoolCode+e.schoolBranch);return!i?.length&&!l?.length}setCertTypeOptions(e){let i=[];return i.push({value:"All",text:"All Enrollment Certificates"}),i.push({value:"Current",text:"Current Enrollment Certificate"}),e.displayAdvancedEnrollment&&i.push({value:"Advanced",text:"Advanced Registration Certificate"}),e.displayGoodStudentEnrollment&&i.push({value:"GoodStudent",text:"Good Student Discount Certificate"}),this.certForm.setValue(i[0].value),i}onSubmit(){this.hasLegalNameOnly=this.selectedEnrDTO.legalNameOnly,this.hasLegalNameOnly&&this.downloadCert(!1),this.hasLegalNameOnly||(console.log("freshman st ",this.isFreshManStudent(this.selectedEnrOrg)),this.isFreshManStudent(this.selectedEnrOrg)?this.selectedCertType.value==="Advanced"?(this.serverError=!1,this.blockIndicator.open(),this.apiService.getARStudentInfo(this.selectedEnrOrg.schoolCode,this.selectedEnrOrg.schoolBranch).subscribe(e=>{this.studentBasicInfo=e.arStudentList[0],this.studentLivedFullName=null,this.studentLegalFullName=this.createFullName(this.studentBasicInfo.firstName,this.studentBasicInfo?.middleName,this.studentBasicInfo.lastName),this.studentLivedFullName=this.createFullName(this.studentBasicInfo?.livedFirstName,this.studentBasicInfo?.livedMiddleName,this.studentBasicInfo?.livedLastName),this.studentLivedFullName==null||this.studentLivedFullName===this.studentLegalFullName?this.downloadCert(!1):this.showLivedNameDialog(),this.blockIndicator.close()},e=>
2{this.serverError=!0,console.log("error getting ar student lived name",e),this.blockIndicator.close()})):this.downloadCert(!1):(this.serverError=!1,this.blockIndicator.open(),this.apiService.getStudentBasicInfo(this.selectedEnrOrg.schoolCode,this.selectedEnrOrg.schoolBranch).subscribe(e=>{this.studentBasicInfo=e,this.studentLivedFullName=null,this.studentLegalFullName=this.createFullName(this.studentBasicInfo.firstName,this.studentBasicInfo?.middleName,this.studentBasicInfo.lastName),this.studentLivedFullName=this.createFullName(this.studentBasicInfo?.livedFirstName,this.studentBasicInfo?.livedMiddleName,this.studentBasicInfo?.livedLastName),this.studentLivedFullName==null||this.studentLivedFullName===this.studentLegalFullName?this.downloadCert(!1):this.showLivedNameDialog(),this.blockIndicator.close()},e=>{this.serverError=!0,console.log("error getting student lived name",e),this.blockIndicator.close()})))}showLivedNameDialog(){console.log("stnames ",this.studentLegalFullName,this.studentLivedFullName),this.dialog.open(Ce,{width:"auto",position:{left:"10vw"},disableClose:!0,autoFocus:!0,data:{studentLegalFullName:this.studentLegalFullName,studentLivedFullName:this.studentLivedFullName}}).afterClosed().subscribe(i=>{i.event==="download"&&(console.log("choosen lived name for cert : ",i.hasSelectedLivedName),this.downloadCert(i.hasSelectedLivedName))})}downloadCert(e){let i=this.selectedCertType.value,l=this.selectedEnrOrg.schoolCode,c=this.selectedEnrOrg.schoolBranch;console.log(i,this.dataService.getOrgName(l,c)),this.certNotFound=!1,this.blockIndicator.open(),!this.dataService.studentData.enrollments?.studentEnrollments?.length&&i!=="Advanced"?(this.certNotFound=!0,this.blockIndicator.close()):this.certService.getEnrollmentCertificate(l,c,i,e).subscribe(v=>{if(this.data=v,this.data.status==="SUCCESS"){let O=window.open();if(!O||O.closed||typeof O.closed>"u")console.log("popup blocked"),this.popupBlockerError=!0,this.blockIndicator.close();else{console.log("popup not blocked"),O.close();let T=this.base64toBlob(v.pdfCertificate),ve=window.URL.createObjectURL(T),k=document.createElement("a");k.href=ve,k.download=this.dataService.getOrgName(l,c)+"_enrollment_certificate.pdf",k.click(),this.blockIndicator.close()}}else this.certNotFound=!0,this.blockIndicator.close()},v=>{this.blockIndicator.close(),this.certDownlaodError=!0,console.log("loading cert failed",v)})}createFullName(e,i,l){let c="";return e&&(c=c.concat(e.trim()," ")),i&&(c=c.concat(i.trim()," ")),l&&(c=c.concat(l.trim())),c=c.trim(),c||null}base64toBlob(e){let i=atob(e.replace(/\s/g,"")),l="application/pdf",c=new ArrayBuffer(i.length),v=new Uint8Array(c);for(let T=0;T<i.length;T++)v[T]=i.charCodeAt(T);return new Blob([c],{type:l})}orderTranscript(e){console.log("org in order ts",e),e.participatesInTO?(setTimeout(()=>{this.blockIndicator.open()},0),this.certService.getTORedirectHTML(e.schoolCode+e.schoolBranch).subscribe(i=>{this.blockIndicator.close();let l=window.open("","_blank");l?.document.open(),l?.document.write(i)},i=>{this.blockIndicator.close()})):this.dialog.open(R,{disableClose:!0,width:"auto",autoFocus:!0,data:{dialogTitle:"You are being redirected to another page",dialogText:"Select continue to leave National Student Clearinghouse and go to "+decodeURIComponent(e.toURL)+" where you can get more information on how to order your transcripts. "+decodeURIComponent(e.toURL)+" has its own Terms and conditions and any information provided is subjected to those terms.",continueName:"Continue",cancelName:"Cancel"}}).afterClosed().subscribe(l=>{l.event==="continue"?window.open(decodeURIComponent(e.toURL),"_blank"):l.event})}redirectToCediploma(e){this.dialog.open(R,{width:"auto",disableClose:!0,autoFocus:!0,data:{dialogTitle:"You are being redirected to another page",dialogText:'Select <b style="color: #742C85;">Continue</b> to leave National Student Clearinghouse and go to CeCredential Trust where you can download your CeDiploma. CeCredential Trust has their own Terms and Conditions any information provided is subjected to those terms.',continueName:"Continue",cancelName:"Cancel"}}).afterClosed().subscribe(l=>{l.event==="continue"?window.open(e,"_blank"):l.event})}static{this.\u0275fac=function(i){return new(i||t)(S(me),S(Q),S(he),S(te),S(de),S(X))}}static{this.\u0275cmp=P({type:t,selectors:[["app-self-service"]],standalone:!1,decls:8,vars:1,consts:[["enrOrgSelect",""],["certTypeSelect",""],["toOrgSelect",""],["degOrgSelect",""],[1,"page-header","flex-wrap"],[1,"img-txt-title","w-100"],["id","selfServPageHeaderIcon","src","assets/self-service.svg","alt","","aria-hidden","true"],["id","selfServPageHeader"],["id","selfServPageSubHeader",1,"ms-4"],[1,"table-container"],["tabIndex","0",1,"d-flex","flex-row","mt-2","popup-blocker-box"],[1,"d-flex","flex-column","mt-5"],["id","selfservToOrderHeader","role","heading","aria-level","2",1,"subheading-2"],[1,"mt-2"],["id","selfServTrackOrderText","tabIndex","0","role","link",1,"w-100","mb-2"],[1,"selfservice-select"],["appearance","outline",2,"width","90%"],[1,"border-1","self-service-list-item-container",2,"min-height","60px"],[1,"w-100","d-flex","flex-column","mt-5"],["id","selfservEnrHeader","role","heading","aria-level","2",1,"subheading-2"],["tabIndex","0","role","contentinfo"],["id","selfservEnrSubHeader1"],[1,"d-flex","flex-column","flex-md-row","w-100"],["id","selfServEnrOrgSelect","aria-controls","selfServEnrCertSelect-panel","disableOptionCentering","","panelClass","selfserviceSelect",3,"selectionChange"],[3,"value","id"],["id","selfServEnrCertSelect","aria-controls","selfServEnrSelect-panel","disableOptionCentering","","panelClass","selfserviceSelect",3,"selectionChange","disabled"],[1,"d-flex","flex-column"],["tabIndex","0","role","alert",1,"warning"],["tabIndex","0"],[1,"spacer","w-100",2,"height","20vh"],["id","selfServiceServerError"],["src","assets/alert-triangle.svg","alt","","aria-hidden","true","
2width","20px","height","20px"],[1,"d-flex","flex-column","flex-grow-1","ms-2"],["aria-hidden","true",2,"cursor","pointer",3,"click"],["id","selfServTrackOrderLink","target","_blank",3,"href"],["id","selfServToOrgSelect","aria-controls","selfServToOrgSelect-panel","disableOptionCentering","","panelClass","selfserviceSelect",3,"selectionChange"],[1,"selfservice-select-mobile"],[1,"text-center","w-75"],[1,"img-txt-container","flex-grow-1"],["id","selfServToOrgName",1,"heading"],[1,"order-transcript-btn"],["id","SelfServToBtn","mat-raised-button","","color","primary"],["id","SelfServToBtn","mat-raised-button","","color","primary",3,"click"],[1,"info-content"],[1,"self-service-list-item-container","border-1",2,"min-height","60px"],[1,"img-txt-container","enr-school-name","flex-grow-1"],["id","selfServEnrOrgLogo","alt","","aria-hidden","true","width","5px","height","5px",3,"src"],[1,"d-flex","flex-column","w-100"],["id","selfServEnrName",1,"heading"],[1,"d-flex","flex-row","w-100","ms-3"],["id","selfServEnrStDate",2,"color","grey","margin-top","0.1rem","margin-bottom","0"],[1,"tooltip1"],["id","infoEnrOrgSelfServ","src","assets/information-circle.png","alt","info","aria-hidden","true",1,"size_of_img"],[1,"tooltiptext1"],["id","enrCertDownloadBtn","mat-raised-button","","color","primary",3,"click"],[1,"certified-date-mobile"],[1,"d-flex","flex-row","w-100","ms-2"],["role","link",3,"href"],["id","noParticipatingSchoolsText",1,"message","text-center"],["id","noEnrollmentDataText",1,"message","text-center"],["id","certDownlaodErrorText",1,"mt-2",2,"color","#AC2C1F"],["id","certNotFoundText",1,"m-4","text-center",2,"background","#FEF3EE","color","#AC2C1F","padding","0.5em 2em","font-size","1vw","border-radius","4px"],["id","selfServDegHeader",1,"subheading-2"],["id","selfServDegOrgSelect","aria-controls","selfServDegOrgSelect-panel","disableOptionCentering","","panelClass","selfserviceSelect",3,"selectionChange"],["id","selfServDegOrgLogo","alt","","aria-hidden","true","width","5px","height","5px",3,"src"],["id","selfServDegOrgName",1,"heading"],[1,"ce-diploma-btn"],["id","ceDiplomaSelfServBtn","mat-raised-button","","color","primary"],["id","ceDiplomaSelfServBtn","mat-raised-button","","color","primary",3,"click"]],template:function(i,l){i&1&&(n(0,"div",4)(1,"div",5),h(2,"img",6),n(3,"h1",7),a(4," Self Service "),o()(),n(5,"h4",8),a(6,"Download transcripts, certificates, and CEDiplomas."),o()(),d(7,et,47,13,"div",9)),i&2&&(r(7),m(l.hasLoadedSchoolProfiles?7:-1))},dependencies:[ie,I,re,oe,ne,le,pe,fe,$],styles:[`.list-padding-outer[_ngcontent-%COMP%]{padding:1rem 4rem}.subheading-2[_ngcontent-%COMP%]{color:#742c85!important;margin-bottom:.25rem!important}hr[_ngcontent-%COMP%]{margin:0;color:gray;width:100%}.radio-btn[_ngcontent-%COMP%]{width:2rem;margin-left:2rem}.img-txt-container[_ngcontent-%COMP%]{width:50%}.col-status[_ngcontent-%COMP%], .col-start-date[_ngcontent-%COMP%]{width:20%}.selfservice-select-container[_ngcontent-%COMP%]{width:100%}.self-service-list-item-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;margin-top:1rem;width:75%}.selfservice-select[_ngcontent-%COMP%]{width:40%}.order-transcript-btn[_ngcontent-%COMP%], .ce-diploma-btn[_ngcontent-%COMP%]{min-width:20%;max-width:50%}.info-content[_ngcontent-%COMP%]{font-size:12px;font-weight:500}.popup-blocker-box[_ngcontent-%COMP%]{margin-top:1rem;padding:1rem;background:#fffceb;border:.5px solid #FED600;border-radius:4px}.border-1[_ngcontent-%COMP%]{border:1px solid #E8E8E8;border-radius:4px;padding:1rem 2rem}  .mat-form-field-wrapper{padding-bottom:0!important}  .mat-select-panel{min-width:calc(100% + 1.2rem)!important}.warning[_ngcontent-%COMP%]{width:100%;height:auto;left:151px;background:#f0f0f0;border-radius:4px;margin:2rem 0;padding:1rem 0}.message[_ngcontent-%COMP%]{font-family:Open Sans;font-style:normal;font-weight:400;font-size:14px;text-align:center;color:#292929}.selfservice-select-mobile[_ngcontent-%COMP%], .certified-date-mobile[_ngcontent-%COMP%]{display:none}@media(max-width:992px){.list-padding-outer[_ngcontent-%COMP%]{padding:0}.radio-btn[_ngcontent-%COMP%]{width:0;margin-left:.5rem}.img-txt-container[_ngcontent-%COMP%], .col-status[_ngcontent-%COMP%], .col-start-date[_ngcontent-%COMP%], .order-transcript-btn[_ngcontent-%COMP%], .ce-diploma-btn[_ngcontent-%COMP%]{width:30%;word-wrap:break-word;flex:1 1 30%;display:flex;justify-content:center}.img-txt-container[_ngcontent-%COMP%]:not(.enr-school-name)   div[_ngcontent-%COMP%]{display:block!important;width:24%!important}.img-txt-container[_ngcontent-%COMP%]:not(.enr-school-name)   .heading[_ngcontent-%COMP%]{font-size:2vw}
2.img-txt-container.enr-school-name[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{display:flex!important}.img-txt-container.enr-school-name[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]{font-size:2vw}.selfservice-select-container[_ngcontent-%COMP%]{width:100%;flex-wrap:wrap}.self-service-list-item-container[_ngcontent-%COMP%]{width:100%}.selfservice-select[_ngcontent-%COMP%]{width:70%}  .mat-select-value-text{font-size:2vw}.info-content[_ngcontent-%COMP%]{font-size:10px;font-weight:400}.border-1[_ngcontent-%COMP%]{padding:0}p[_ngcontent-%COMP%]{font-size:3vw!important}h2[_ngcontent-%COMP%]{font-size:4.5vw!important}.warning[_ngcontent-%COMP%]{width:70%!important}}@media(max-width:768px){  .mat-select-value-text{font-size:3vw}.order-transcript-btn[_ngcontent-%COMP%]   .mat-raised-button[_ngcontent-%COMP%], .ce-diploma-btn[_ngcontent-%COMP%]   .mat-raised-button[_ngcontent-%COMP%]{font-size:14px}.order-transcript-btn[_ngcontent-%COMP%], .ce-diploma-btn[_ngcontent-%COMP%]{max-width:100%!important;justify-content:left!important}.info-content[_ngcontent-%COMP%]{font-size:8px}.img-txt-container[_ngcontent-%COMP%]{display:none}.selfservice-select[_ngcontent-%COMP%]{width:100%}.selfservice-select-mobile[_ngcontent-%COMP%]{width:70%;display:block;border:1px solid #939393;border-radius:4px;padding:1rem;text-align:left}.selfservice-select-mobile[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-bottom:0}.certified-date-mobile[_ngcontent-%COMP%]{display:block}.self-service-list-item-container.border-1[_ngcontent-%COMP%]{border:none!important}}.tooltip1[_ngcontent-%COMP%]{position:relative;display:inline-block;pointer-events:all}.tooltip1[_ngcontent-%COMP%]   .tooltiptext1[_ngcontent-%COMP%]{visibility:hidden;width:375px;background-color:#e3d5e7;color:#212529;font-size:12px;text-align:center;border-radius:4px;padding:4px 0;position:absolute;z-index:1}.certified-date-mobile[_ngcontent-%COMP%]   .tooltip1[_ngcontent-%COMP%]   .tooltiptext1[_ngcontent-%COMP%]{width:315px;background-color:#e3d5e7;color:#212529;font-size:12px;text-align:center;border-radius:4px;padding:4px 0;position:absolute;left:-295px;top:35px;z-index:1}.tooltip1[_ngcontent-%COMP%]:hover   .tooltiptext1[_ngcontent-%COMP%]{visibility:visible}.size_of_img[_ngcontent-%COMP%]{width:17px;height:17px}
3/*# sourceMappingURL=self-service.component-PIBSWG7S.css.map */`]})}}return t})();var tt=[{path:"",component:_e}],yt=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=z({type:t})}static{this.\u0275inj=U({imports:[H,Y.forChild(tt),ge]})}}return t})();export{yt as SelfServiceModule};
4//# sourceMappingURL=chunk-YK5BCFO2.js.map

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.