1"use strict";(self.webpackChunkalc_app=self.webpackChunkalc_app||[]).push([[341],{20341:($,d,a)=>{a.d(d,{h:()=>p});var s=a(15861),t=a(94650),i=a(24006),l=a(90103),h=a(75535),C=a(19330),f=a(26433),g=a(17489),A=a(9040),x=a(80529),v=a(67046),U=a(69175),T=a(65412),m=a(36895),O=a(59549),b=a(60555),P=a(62268),E=a(55283),Z=a(74876),M=a(83455),S=a(26342),y=a(58372);function I(o,n){1&o&&(t.TgZ(0,"p"),t._uU(1," This user has not joined the Teacher Connect Community. "),t.qZA())}function D(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div")(1,"p"),t._uU(2),t.ALo(3,"date"),t.qZA(),t.TgZ(4,"p")(5,"app-alc-button",1),t.NdJ("click",function(){t.CHM(e);const r=t.oxw(2);return t.KtG(r.approve())}),t.qZA()()()}if(2&o){const e=t.oxw(2);t.xp6(2),t.AsE(" ",e.user.firstName," was declined access on ",t.xi3(3,2,e.declinedAt,"MMMM d, yyyy"),". If this was a mistake, you may accept the request bellow: ")}}function J(o,n){if(1&o){const e=t.EpF();t.ynx(0),t.TgZ(1,"p"),t._uU(2," This user is pending, dependent on your action: "),t.qZA(),t.TgZ(3,"p")(4,"app-alc-button",1),t.NdJ("click",function(){t.CHM(e);const r=t.oxw(2);return t.KtG(r.approve())}),t.qZA(),t.TgZ(5,"app-alc-button",2),t.NdJ("click",function(){t.CHM(e);const r=t.oxw(2);return t.KtG(r.decline())}),t.qZA()(),t.BQk()}}function k(o,n){if(1&o&&(t.ynx(0),t.YNc(1,I,2,0,"p",0),t.YNc(2,D,6,5,"div",0),t.YNc(3,J,6,0,"ng-container",0),t.BQk()),2&o){const e=t.oxw();
1t.xp6(1),t.Q6J("ngIf","inactive"===e.user.atcStatus&&!e.declinedAt),t.xp6(1),t.Q6J("ngIf","inactive"===e.user.atcStatus&&e.declinedAt),t.xp6(1),t.Q6J("ngIf","pending"===e.user.atcStatus)}}function Q(o,n){1&o&&(t.TgZ(0,"app-alc-form-notification",28),t._uU(1,"Profile updated!"),t.qZA())}function L(o,n){1&o&&(t.TgZ(0,"app-alc-form-notification",29)(1,"span",30),t._uU(2,"info"),t.qZA(),t.TgZ(3,"div"),t._uU(4," Your request to join the Teacher Connect Community is pending review. Please allow ample time for your request to be processed. "),t.qZA()())}function w(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"app-alc-form-notification",29)(1,"span",30),t._uU(2,"info"),t.qZA(),t.TgZ(3,"div"),t._uU(4," Upload a profile photo so everyone can see who they are connecting with. "),t.TgZ(5,"a",31),t.NdJ("click",function(){t.CHM(e);const r=t.oxw(2);return t.KtG(r.uploadPhoto())}),t._uU(6,"Update Profile Photo"),t.qZA()()()}}function B(o,n){if(1&o&&(t.TgZ(0,"a",32),t._uU(1,"View Profile"),t.qZA()),2&o){const e=t.oxw(2);t.Q6J("href","http://teachers.adventistlearningcommunity.com/atc/connect/"+e.user.id,t.LSH)}}function N(o,n){if(1&o&&t._UZ(0,"app-alc-select-menu",33),2&o){const e=t.oxw(2);t.Q6J("inputControl",e.form.controls.schoolState)("options",e.stateOptions)("unselectedLabel",e.stateOptionsLabel)}}function R(o,n){1&o&&(t.TgZ(0,"mat-error"),t._uU(1,"Must be less than 170 characters"),t.qZA())}function q(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",34),t.NdJ("click",function(){const u=t.CHM(e).$implicit,_=t.oxw(2);return t.KtG(_.changeColor(u))}),t.qZA()}if(2&o){const e=n.$implicit,c=t.oxw(2);t.Udp("background-color",e),t.ekj("active",c.form.value.atcColor==e)}}function Y(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",34),t.NdJ("click",function(){const u=t.CHM(e).$implicit,_=t.oxw(2);return t.KtG(_.changePattern(u))}),t.qZA()}if(2&o){const e=n.$implicit,c=t.oxw(2);t.Udp("background-color",c.form.value.atcColor)("background-image","url(/assets/patterns/"+e+")"),t.ekj("active",c.form.value.atcPattern==e)}}function K(o,n){if(1&o&&(t.ynx(0),t.TgZ(1,"p",6),t._uU(2,"Joining Teacher Connect"),t.qZA(),t._UZ(3,"app-alc-embed-content",35),t.BQk()),2&o){const e=t.oxw(3);t.xp6(3),t.Q6J("html",e.user.isAeUser?e.page.content:e.page.data.alternateContent)("targetBlankLinks",!0)}}function W(o,n){if(1&o&&(t.ynx(0),t.YNc(1,K,4,2,"ng-container",0),t.BQk()),2&o){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.isSelfEdit)}}function j(o,n){if(1&o&&(t.TgZ(0,"app-alc-form-notification",36),t._uU(1),t.qZA()),2&o){const e=t.oxw(2);t.xp6(1),t.hij(" ",e.submissionError," ")}}function G(o,n){if(1&o&&(t.ynx(0),t._UZ(1,"app-alc-button",37),t.BQk()),2&o){const e=t.oxw(2);t.xp6(1),t.Q6J("text",e.isSubmitting?"Saving...":"Save")("disabled",e.isSubmitting)}}function F(o,n){if(1&o&&t._UZ(0,"app-alc-button",37),2&o){const e=t.oxw(3);t.Q6J("text",e.isSubmitting?"Joining...":"Join")("disabled",e.isSubmitting)}}function H(o,n){if(1&o&&t._UZ(0,"app-alc-button",37),2&o){const e=t.oxw(3);t.Q6J("text",e.isSubmitting?"Requesting...":"Request to Join")("disabled",e.isSubmitting)}}function z(o,n){if(1&o&&(t.ynx(0),t.YNc(1,F,1,2,"app-alc-button",38),t.YNc(2,H,1,2,"app-alc-button",38),t.BQk()),2&o){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.user.isAeUser),t.xp6(1),t.Q6J("ngIf",!e.user.isAeUser&&"inactive"===e.user.atcStatus)}}function V(o,n){if(1&o){const e=t.EpF();t.ynx(0),t.TgZ(1,"form",3),t.NdJ("ngSubmit",function(){t.CHM(e);const r=t.oxw();return t.KtG(r.save())}),t.YNc(2,Q,2,0,"app-alc-form-notification",4),t.YNc(3,L,5,0,"app-alc-form-notification",5),t.YNc(4,w,7,0,"app-alc-form-notification",5),t.TgZ(5,"p",6),t._uU(6,"Profile Privacy Settings"),t.qZA(),t.TgZ(7,"div"),t._UZ(8,"app-alc-select-menu",7),t.YNc(9,B,2,1,"a",8),t.qZA(),t.TgZ(10,"p",6),t._uU(11,"Details"),t.qZA(),t.TgZ(12,"div",9)(13,"div",10),t._UZ(14,"app-alc-input",11),t.TgZ(15,"div",12)(16,"label"),t._uU(17,"Location"),t.qZA(),t._UZ(18,"app-alc-select-menu",13),t.YNc(19,N,1,3,"app-alc-select-menu",14),t._UZ(20,"app-alc-input",15),t.qZA(),t._UZ(21,"app-alc-select-menu",16)(22,"app-alc-select-menu",17)(23,"app-alc-select-menu",18),t.TgZ(24,"div",12)(25,"label"),t._uU(26,"# of Students"),t.qZA(),t._UZ(27,"app-alc-input",19),t.qZA()()(),t.TgZ(28,"p",6),t._uU(29,"About Me"),t.qZA(),t.TgZ(30,"div",9)(31,"div",10)(32,"label"),t._uU(33,"Why You\u2019re a Teacher"),t.qZA(),t.TgZ(34,"div",20),t._uU(35,"In 170 characters or less share why you love teaching."),t.qZA(),t.TgZ(36,"app-alc-input",19),t.YNc(37,R,2,0,"mat-error",0),t.qZA(),t.TgZ(38,"label"),t._uU(39,"Introduce yourself"),t.qZA(),t.TgZ(40,"div",20),t._uU(41," Use this space to introduce yourself to other teachers. Tell us a little about your class, your style of teaching, and your goals for the future. "),t.qZA(),t._UZ(42,"app-editor-field",21),t.qZA()(),t.TgZ(43,"p",6),t._uU(44,"Personalize"),t.qZA(),t.TgZ(45,"div",9)(46,"div",10)(47,"p"),t._uU(48,"Give your profile a bit of personality by choosing a background color and pattern below:"),t.qZA(),t.TgZ(49,"p",6),t._uU(50,"Backgroun
1d Color"),t.qZA(),t.TgZ(51,"div",22),t.YNc(52,q,1,4,"div",23),t.qZA(),t.TgZ(53,"p",6),t._uU(54,"Background Pattern"),t.qZA(),t.TgZ(55,"div",24),t.YNc(56,Y,1,6,"div",25),t.qZA()()(),t.YNc(57,W,2,1,"ng-container",0),t.YNc(58,j,2,1,"app-alc-form-notification",26),t._UZ(59,"app-alc-form-error-message"),t.TgZ(60,"p",27),t.YNc(61,G,2,2,"ng-container",0),t.YNc(62,z,3,2,"ng-container",0),t.qZA()(),t.BQk()}if(2&o){const e=t.oxw();t.xp6(1),t.Q6J("formGroup",e.form),t.xp6(1),t.Q6J("ngIf",e.wasSaved&&"active"===e.user.atcStatus),t.xp6(1),t.Q6J("ngIf",e.isSelfEdit&&!e.user.isAeUser&&"pending"===e.user.atcStatus),t.xp6(1),t.Q6J("ngIf",e.isSelfEdit&&!e.user.photoId),t.xp6(4),t.Q6J("inputControl",e.form.controls.atcPublicProfile)("options",e.publicProfileOptions)("allowUnselected",!1),t.xp6(1),t.Q6J("ngIf","active"===e.user.atcStatus),t.xp6(5),t.Q6J("inputControl",e.form.controls.schoolName),t.xp6(4),t.Q6J("inputControl",e.form.controls.schoolCountry)("options",e.countryOptions),t.xp6(1),t.Q6J("ngIf",e.stateOptions.length>1),t.xp6(1),t.Q6J("inputControl",e.form.controls.schoolCity),t.xp6(1),t.Q6J("inputControl",e.form.controls.atcSubjects)("options",e.subjectOptions)("multiple",!0),t.xp6(1),t.Q6J("inputControl",e.form.controls.atcGrades)("options",e.gradeOptions)("multiple",!0),t.xp6(1),t.Q6J("inputControl",e.form.controls.atcLanguages)("options",e.languageOptions)("multiple",!0),t.xp6(4),t.Q6J("inputControl",e.form.controls.schoolStudentCount),t.xp6(9),t.Q6J("inputControl",e.form.controls.atcTeaser),t.xp6(1),t.Q6J("ngIf",e.form.controls.atcTeaser.hasError("maxlength")),t.xp6(5),t.Q6J("inputControl",e.form.controls.biography)("balloon",!0),t.xp6(10),t.Q6J("ngForOf",e.colors),t.xp6(4),t.Q6J("ngForOf",e.patterns),t.xp6(1),t.Q6J("ngIf","active"!==e.user.atcStatus),t.xp6(1),t.Q6J("ngIf",e.submissionError),t.xp6(3),t.Q6J("ngIf","active"===e.user.atcStatus),t.xp6(1),t.Q6J("ngIf","active"!==e.user.atcStatus)}}class p{constructor(n,e,c,r,u){this.pageService=n,this.userService=e,this.atcService=c,this.fb=r,this.dialog=u,this.updateUser=new t.vpe,this.publicProfileOptions=[{label:"Visible",value:1},{label:"Hidden",value:0}],this.countryOptions=Object.keys(f.F1.STATES_BY_COUNTRY).sort().map(_=>({label:_,value:_})),this.stateOptions=[],this.subjectOptions=l.j.SUBJECTS.map(_=>({label:_,value:_})),this.gradeOptions=l.j.GRADES.map(_=>({label:_+"",value:_})),this.languageOptions=l.j.LANGUAGES.map(_=>({label:_+"",value:_})),this.isSubmitting=!1,this.submissionError="",this.wasSaved=!1}ngOnInit(){var n=this;return(0,s.Z)(function*(){n.page=yield n.pageService.getPageBySlug("atc/how-to-join");const{colors:e,patterns:c}=yield n.atcService.getUserOptions();n.colors=e,n.patterns=c,"inactive"===n.user.atcStatus&&n.atcService.getAtcDeclinedHistory(n.user.id).then(r=>n.declinedAt=r),n.form=n.fb.group({atcPublicProfile:[n.user.atcPublicProfile],schoolName:[n.user.schoolName,i.kI.required],schoolState:[n.user.schoolState||"",i.kI.required],schoolCountry:[n.user.schoolCountry||"",i.kI.required],schoolCity:[n.user.schoolCity||"",i.kI.required],atcGrades:[n.user.atcGrades,i.kI.required],atcSubjects:[n.user.atcSubjects,i.kI.required],atcLanguages:[n.user.atcLanguages,i.kI.required],schoolStudentCount:[n.user.schoolStudentCount,i.kI.required],atcStatus:["active"],atcTeaser:[n.user.atcTeaser||"",[i.kI.required,i.kI.maxLength(l.j.USER_TEASER_CHARACTER_LIMIT)]],biography:[n.user.biography||"",i.kI.required],atcColor:[n.user.atcColor||(0,g.sample)(e),i.kI.required],atcPattern:[n.user.atcPattern||(0,g.sample)(c),i.kI.required]}),n.form.controls.schoolCountry.valueChanges.subscribe(r=>n.updateStateOptions(r)),n.updateStateOptions(n.form.value.schoolCountry)})()}updateStateOptions(n){"United States"===n?this.stateOptionsLabel="State":"Canada"===n&&(this.stateOptionsLabel="Province"),this.stateOptions=n?f.F1.STATES_BY_COUNTRY[n].map(e=>({label:e,value:e})):[],1===this.stateOptions.length&&this.form.patchValue({schoolState:this.stateOptions[0].value})}changeColor(n){this.form.patchValue({atcColor:n})}changePattern(n){this.form.patchValue({atcPattern:n})}approve(){var n=this;return(0,s.Z)(function*(){n.form.patchValue({atcStatus:"active"}),yield n._save({atcStatus:"active"})})()}decline(){var n=this;return(0,s.Z)(function*(){n.form.patchValue({atcStatus:"inactive"}),yield n._save({atcStatus:"inactive"}),n.atcService.getAtcDeclinedHistory(n.user.id).then(e=>n.declinedAt=e)})()}uploadPhoto(){const n=C.C.defaultDialogConfig();n.data={user:this.user,isSelfEdit:this.isSelfEdit},n.width="350px";const e=this.dialog.open(A.R,n);e.afterClosed().subscribe(c=>{c&&(this.updateUser.emit({user:c}),e.close())})}save(){var n=this;return(0,s.Z)(function*(){if(!n.form.valid)return;n.isSubmitting=!0,n.wasSaved=!1;const e=n.form.value;e.atcGrades=e.atcGrades||[],e.atcLanguages=e.atcLanguages||[],e.atcSubjects=e.atcSubjects||[],e.schoolStudentCount=parseInt(e.schoolStudentCount,10),yield n._save(e)})()}_save(n){var e=this;return(0,s.Z)(function*(){e.submissionError="";try{const c=yield e.userService.updateUser(e.user,e.isSelfEdit,n);e.updateUser.emit({user:c}),e.wasSaved=!0,e.isSubmitting=!1,window.scrollTo({top:0,behavior:"smooth"})}catch(c){c instanceof x.UA?e.submissionError=(0,h.T)(c):e.submissionError="An error occurred.",e.isSubmitting=!1}})()}}p.\u0275fac=function(n){return new(n||p)(t.Y36(v.P),t.Y36(U.K),t.Y36(l.j),t.Y36(i.QS),t.Y36(T.uw))},p.\u0275cmp=t.Xpm({type:p,selectors:[["app-atc-user-account"]],inputs:{user:"user",isSelfEdit:"isSelfEdit"},outputs:{updateUser:"updateUser"},decls:2,vars:2,consts:[[4,"ngIf"],["text","Accept User",1,"orange","full-width-mobile",3,"click"],["text","Decline User",1,"outline-primary","full-width-mobile",3,"click"],[3,"formGroup","ngSubmit"],["type","success",4,"ngIf"],["type","info",4,"ngIf"],[1,"section-label"],[1,"privacy-setting",3,"inputControl","options","allowUnselected"],["class","profile-link",3,"href",4,"ngIf"],[1,"card"],[1,"card__content","card__content--compressed"],["label","School Name",1,"horizontal",3,"inputControl"],[1,"combo-field"],[3,"inputControl","options"],[3,"inputControl","options","unselectedLabel",4,"ngIf"],["placeholder","City",3,"inputControl"],["label","Subject(s)",1,"horizontal",3,"inputControl","options","multiple"],["label","Grade(s)",1,"horizontal",3,"inputControl","options","multiple"],["label","Language(s) Spoken",1,"horizontal",3,"inputControl","options","multiple"],[3,"inputControl"],[1,"field-hint"],["placeholder","Tell us who you are\u2026",1,"height-medium","horizontal",3,"inputControl","balloon"],[1,"palette","palette--color"],["class","palette__item",3,"active","backgroundColor","click",4,"ngFor","ngForOf"],[1,"palette","palette--pattern"],["class","palette__item",3,"active","backgroundColor","backgroundImage","click",4,"ngFor","ngForOf"],["type","error",4,"ngIf"],[1,"actions"],["type","success"],["type","info"],[1,"material-icons","notranslate"],[3,"click"],[1,"profile-link",3,"href"],[3,"inputControl","options","unselectedLabel"],[1,"palette__item",3,"click"],[3,"html","targetBlankLinks"],["type","error"],["type","submit",1,"orange",3,"text","disabled"],["type","submit","class","orange",3,"text","disabled",4,"ngIf"]],template:function(n,e){1&n&&(t.YNc(0,k,4,3,"ng-container",0),t.YNc(1,V,63,33,"ng-container",0)),2&n&&(t.Q6J("ngIf",!e.isSelfEdit),t.xp6(1),t.Q6J("ngIf",e.form&&("inactive"!==e.user.atcStatus||e.isSelfEdit)))},dependencies:[m.sg,m.O5,O.TO,i._Y,i.JL,i.sg,b.X,P.W,E.A,Z.N,M.Z,S.F,y.D,m.uU],styles:['a[_ngcontent-%COMP%]{cursor:pointer}.profile-link[_ngcontent-%COMP%]{line-height:48px;text-decoration:none}.section-label[_ngcontent-%COMP%]{font-weight:700}label[_ngcontent-%COMP%]{font-size:15px;font-weight:700}@media (min-width: 768px){.combo-field[_ngcontent-%COMP%]{display:flex}.combo-field[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{flex-basis:180px;flex-shrink:0;padding-top:17px;line-height:1.25;padding-right:4px}}@media (min-width: 768px){.combo-field[_ngcontent-%COMP%] app-alc-select-menu[_ngcontent-%COMP%], .combo-field[_ngcontent-%COMP%] app-alc-input[_ngcontent-%COMP%]{width:25%;margin-right:16px}}.field-hint[_ngcontent-%COMP%]{font-size:.9em;color:#999}.palette[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.palette__item[_ngcontent-%COMP%]{margin-bottom:32px;margin-right:8px;
1cursor:pointer}.palette__item.active[_ngcontent-%COMP%]:after, .palette__item[_ngcontent-%COMP%]:hover:after{content:"";display:block;height:4px}.palette__item.active[_ngcontent-%COMP%]:after{background:#ff5b00}.palette__item[_ngcontent-%COMP%]:hover:after{background:rgba(255,91,0,.5)}.palette--color[_ngcontent-%COMP%] .palette__item[_ngcontent-%COMP%]{height:40px;width:40px}.palette--color[_ngcontent-%COMP%] .palette__item.active[_ngcontent-%COMP%]:after, .palette--color[_ngcontent-%COMP%] .palette__item[_ngcontent-%COMP%]:hover:after{margin-top:44px}.palette--pattern[_ngcontent-%COMP%] .palette__item[_ngcontent-%COMP%]{height:60px;width:100px}.palette--pattern[_ngcontent-%COMP%] .palette__item.active[_ngcontent-%COMP%]:after, .palette--pattern[_ngcontent-%COMP%] .palette__item[_ngcontent-%COMP%]:hover:after{margin-top:66px}.actions[_ngcontent-%COMP%]{text-align:right}@media (min-width: 768px){.privacy-setting[_ngcontent-%COMP%]{width:240px;margin-right:16px}}']})}}]);
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.