PageSourceSearch

https://my.otus.com/1877.6359be1a3acfa537.js

js otus.com collected 2026-09-24 09:29:03 UTC 27,960 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkotus_app=self.webpackChunkotus_app||[]).push([[1877],{77239:(J,N,i)=>{i.r(N),i.d(N,{TeacherArtifactsListComponent:()=>Ne});var T=i(36895),C=i(24006),r=i(9116),p=i(37464),m=i(57729),P=i(57455),$=i(36253),I=i(60539),y=i(20176),f=i(53785),M=i(81120),c=i(88289),O=i(77579),v=i(18505),S=i(82722),A=i(95698),V=i(63900),Z=i(70262),H=i(60515),G=i(8757),R=i(57304),e=i(94650),u=i(24047),d=i(23214),E=i(62039),L=i(79997),D=i(32090),h=i(48956);const x=["deleteMilestoneModal"];function w(s,a){if(1&s&&(e.ynx(0,9),e.tHW(1,10),e._UZ(2,"p"),e.N_p(),e.BQk()),2&s){const t=e.oxw(2);e.xp6(2),e.pQV(t.milestone.milestoneTypeName)(t.milestone.studentName),e.QtT(1)}}function U(s,a){if(1&s){const t=e.EpF();e.TgZ(0,"ot-confirmation-modal",1),e.NdJ("confirm",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.confirmDelete(o.milestone.milestoneId))})("cancel",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.close())}),e.ynx(1,2),e.SDv(2,3),e.BQk(),e.YNc(3,w,3,2,"ng-container",4),e.ynx(4,5),e.SDv(5,6),e.BQk(),e.ynx(6,7),e.SDv(7,8),e.BQk(),e.qZA()}if(2&s){const t=e.oxw();e.xp6(3),e.Q6J("ngIf",(null==t.milestone?null:t.milestone.milestoneTypeName)&&(null==t.milestone?null:t.milestone.studentName))}}let F=(()=>{class s{constructor(t,n){this.modalService=t,this.viewContainerRef=n,this.deleteMilestone=new e.vpe}open(){this.modalService.openTemplateModal(this.modal,this.viewContainerRef)}close(){this.modalService.closeModal()}confirmDelete(t){this.deleteMilestone.emit(t),this.close()}}return s.\u0275fac=function(t){return new(t||s)(e.Y36(D.Z7),e.Y36(e.s_b))},s.\u0275cmp=e.Xpm({type:s,selectors:[["ot-milestone-delete-modal"]],viewQuery:function(t,n){if(1&t&&e.Gf(x,5),2&t){let o;e.iGM(o=e.CRH())&&(n.modal=o.first)}},inputs:{milestone:"milestone"},outputs:{deleteMilestone:"deleteMilestone"},standalone:!0,features:[e._Bn([D.Z7]),e.jDz],decls:2,vars:0,consts:function(){let a,t,n,o;return a=$localize`:portfolio-v2/MilestoneDeleteModalComponent|Heading for Delete Milestone Modal␟ba433855b50e8211f6156efe986cedb75e3fe5c2␟2361959215974943555: Delete Milestone `,t=$localize`:portfolio-v2/MilestoneDeleteModalComponent|Text for Delete␟75260d9fc6cd234bcf240afdf269890502e28fd0␟7672775914970285800:Delete`,n=$localize`:portfolio-v2/MilestoneDeleteModalComponent|Text for Cancel␟1f789ada14411c8ce4005d6fea9222d96d1b51e2␟7170268622533175547:Cancel`,o=$localize`:portfolio-v2/MilestoneDeleteModalComponent|Text asking to confirm deletion of the milestone␟c48a07ded50bbabd975c460fe1c158db779ece52␟7331019211881292837:${"\ufffd#2\ufffd"}:START_PARAGRAPH:Are you sure you want to delete ${"\ufffd0\ufffd"}:INTERPOLATION: from ${"\ufffd1\ufffd"}:INTERPOLATION_1:? This cannot be undone.${"\ufffd/#2\ufffd"}:CLOSE_PARAGRAPH:`,[["deleteMilestoneModal",""],[3,"confirm","cancel"],["slot","message"],a,["slot","subtext",4,"ngIf"],["slot","confirm"],t,["slot","cancel"],n,["slot","subtext"],o]},template:function(t,n){1&t&&e.YNc(0,U,8,1,"ng-template",null,0,e.W1O)},dependencies:[T.ez,T.O5,u.v,h.c],encapsulation:2}),s})();var ee=i(10805),W=i(86535),Q=i(85368),K=i(10312),te=i(74181);function ne(s,a){if(1&s){const t=e.EpF();e.TgZ(0,"div",5)(1,"h1",6),e.SDv(2,7),e.qZA(),e.TgZ(3,"button",8),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.close())}),e._UZ(4,"ot-icon-label",9),e.qZA()()}}function ie(s,a){1&s&&e.GkF(0)}function oe(s,a){if(1&s){const t=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.TgZ(3,"td"),e._uU(4),e.qZA(),e.TgZ(5,"td"),e._uU(6),e.ALo(7,"date"),e.qZA(),e.TgZ(8,"td"),e._uU(9),e.qZA(),e.TgZ(10,"td")(11,"button",21),e.NdJ("click",function(){const l=e.CHM(t).$implicit,g=e.oxw(3);return e.KtG(g.openDeleteMilestoneModal(l))}),e._UZ(12,"ot-icon-label",22),e.qZA()()()}if(2&s){const t=a.$implicit;e.xp6(2),e.Oqu(t.milestoneTypeName),e.xp6(2),e.Oqu(t.gradeSiteDisplayName),e.xp6(2),e.Oqu(e.xi3(7,5,t.milestoneDate,"M/d/yyyy")),e.xp6(3),e.Oqu(t.createdByName),e.xp6(2),e.Q6J("disabled",!t.canDelete)}}function se(s,a){if(1&s&&e.YNc(0,oe,13,8,"tr",20),2&s){const t=e.oxw(2);e.Q6J("ngForOf",null==t.milestoneData?null:t.milestoneData.milestones)}}function ae(s,a){if(1&s&&(e.TgZ(0,"div",10)(1,"ot-table",11)(2,"thead",12)(3,"tr")(4,"th",13),e.SDv(5,14),e.qZA(),e.TgZ(6,"th",13),e.SDv(7,15),e.qZA(),e.TgZ(8,"th",13),e.SDv(9,16),e.qZA(),e.TgZ(10,"th",13),e.SDv(11,17),e.qZA(),e._UZ(12,"th"),e.qZA()(),e.TgZ(13,"tbody"),e.YNc(14,ie,1,0,"ng-container",18),e.YNc(15,se,1,1,"ng-template",null,19,e.W1O),e.qZA()()()),2&s){const t=e.MAs(16),n=e.oxw();e.xp6(14),e.Q6J("ngIf",n.isLoading)("ngIfElse",t)}}let X=(()=>{class s{constructor(){this.showSidebar=!1,this.isLoading=!1,this.deleteMilestone=new e.vpe}open(){this.showSidebar=!0}close(){this.showSidebar=!1}openDeleteMilestoneModal(t){this.milestoneToDelete={studentName:this.milestoneData.studentName,milestoneTypeName:t.milestoneTypeName,milestoneId:t.id},this.deleteModal.open()}sendDeleteMilestone(t){var n,o;this.deleteMilestone.emit(t),(null===(o=null===(n=this.milestoneData)||void 0===n?void 0:n.milestones)||void 0===o?void 0:o.length)<=1&&this.close()}}return s.\u0275fac=function(t){return new(t||s)},s.\u0275cmp=e.Xpm({type:s,selectors:[["ot-milestones-list-view"]],viewQuery:function(t,n){if(1&t&&e.Gf(F,5),2&t){let o;e.iGM(o=e.CRH())&&(n.deleteModal=o.first)}},inputs:{milestoneData:"milestoneData"},outputs:{deleteMilestone:"deleteMilestone"},standalone:!0,features:[e._Bn([T.uU]),e.jDz],decls:5,vars:3,consts:function(){let a,t,n,o,l;return a=$localize`:portfolio-v2/MilestonesListViewComponent|Milestones header␟6006da5f45915a10ff3a199b5e2e8d36e51e1576␟3466894673933396650:Milestones`,t=$localize`:portfolio-v2/MilestonesListViewComponent|Table header milestone name␟c1e58de6f86ae54e6fbbf6e4ecbeec151dfd26e3␟7144287309258820481:Milestone`,n=$localize`:portfolio-v2/MilestonesListViewComponent|Table header grade level␟192e0c3c8140c0aa2296c9b6c5b75301bba2392b␟7824551420209311602:Grade Level`,o=$localize`:portfolio-v2/MilestonesListViewComponent|Table header date/time␟6ef530b991fadf5c86556829dd1d00293d38d494␟8705063985113803872:Date`,l=$localize`:portfolio-v2/MilestonesListViewComponent|Table header added by␟ed29f0cd176510a1994f22ad0ee2ce204578c2a2␟8305249419844799413:Added By`,[["position","right",3,"visible","showCloseIcon","visibleChange"],["pTemplate","header"],["pTemplate","content"],[3,"milestone","deleteMilestone"],["deleteModal",""],[1,"milestones-list-view__header"],["ot-heading",""],a,["ot-button","","color","transparent","size","medium","trim","true",3,"click"],["type","close"],[1,"milestones-list-view__content"],["type","bright"],[1,"milestones-list-view__content-table-header"],[1,"milestones-list-view__table-col"],t,n,o,l,[4,"ngIf","ngIfElse"],["data",""],[4,"ngFor","ngForOf"],["ot-button","","color","transparent","size","medium","trim","true","aria-label","Delete milestone",3,"disabled","click"],["icon","trash","prefix","fas"]]},template:function(t,n){1&t&&(e.TgZ(0,"p-sidebar",0),e.NdJ("visibleChange",function(l){return n.showSidebar=l}),e.YNc(1,ne,5,0,"ng-template",1),e.YNc(2,ae,17,2,"ng-template",2),e.qZA(),e.TgZ(3,"ot-milestone-delete-modal",3,4),e.NdJ("deleteMilestone",function(l){return n.sendDeleteMilestone(l)}),e.qZA()),2&t&&(e.Q6J("visible",n.showSidebar)("showCloseIcon",!1),e.xp6(3),e.Q6J("milestone",n.milestoneToDelete))},dependencies:[T.ez,T.sg,T.O5,T.uU,u.v,d.l,d.Y,ee.jx,$.g,W.X,P.h,Q.zx,E.QX,I.IT,
1K.g,L.U$,te.i,F],styles:["p-sidebar[_ngcontent-%COMP%]  .p-sidebar{width:calc(100vw * 2 / 3);height:100%}@media (max-width: 56.25rem){p-sidebar[_ngcontent-%COMP%]  .p-sidebar{width:37.5rem}}@media (max-width: 37.5rem){p-sidebar[_ngcontent-%COMP%]  .p-sidebar{width:100%}}p-sidebar[_ngcontent-%COMP%]  .p-sidebar-header{padding:var(--ot-spacing-m)}p-sidebar[_ngcontent-%COMP%]  .p-sidebar-footer{padding:var(--ot-spacing-m)}p-sidebar[_ngcontent-%COMP%]  .p-sidebar-content{padding-top:var(--ot-spacing-s);padding-bottom:var(--ot-spacing-none);margin-inline-start:var(--ot-spacing-m);margin-inline-end:var(--ot-spacing-m);height:100%}.milestones-list-view__header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:var(--ot-spacing-m);width:100%;padding:var(--ot-spacing-m)}ot-table[_ngcontent-%COMP%]{min-height:85vh}"]}),s})();var z=i(74706),j=i(38495),Y=i(31682),le=i(18227),k=i(81403),q=i(75950),re=i(2116),_e=i(37755),ce=i(28310),de=i(29228),Te=i(72715),Se=i(90845),ue=i(55216),Ee=i(65278),fe=i(73156),me=i(73930),he=i(90817);const ge=["academicSessionSelect"];function pe(s,a){if(1&s){const t=e.EpF();e.ynx(0),e.TgZ(1,"button",28),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.openMilestonesView())}),e.SDv(2,29),e.ALo(3,"async"),e.qZA(),e.TgZ(4,"button",30),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.logMilestoneComponent.showModal())}),e.SDv(5,31),e.qZA(),e.BQk()}if(2&s){const t=e.oxw();e.xp6(1),e.Q6J("disabled",!0!==e.lcZ(3,1,t.milestoneService.doesStudentHaveMilestones$))}}function Me(s,a){if(1&s){const t=e.EpF();e.ynx(0),e.TgZ(1,"ot-log-milestone",32),e.NdJ("createMilestone",function(o){e.CHM(t);const l=e.oxw();return e.KtG(l.onCreateMilestone(o))}),e.ALo(2,"async"),e.qZA(),e.TgZ(3,"ot-milestones-list-view",33),e.NdJ("deleteMilestone",function(o){e.CHM(t);const l=e.oxw();return e.KtG(l.onDeleteMilestone(o))}),e.qZA(),e.BQk()}if(2&s){const t=e.oxw();e.xp6(1),e.Q6J("milestoneTypes",t.milestoneTypes)("gradeLevelOptions",e.lcZ(2,3,t.gradeLevelOptions$)),e.xp6(2),e.Q6J("milestoneData",t.milestoneData)}}function Oe(s,a){1&s&&e._UZ(0,"ot-pagination-previous",39)}function Ae(s,a){if(1&s&&(e.TgZ(0,"ot-pagination-page",43),e._uU(1),e.qZA()),2&s){const t=e.oxw().$implicit,n=e.oxw(2);e.Q6J("active",n.service.currentPage===t)("page",t),e.xp6(1),e.Oqu(t)}}function Ce(s,a){1&s&&e._UZ(0,"ot-pagination-more",44)}function Pe(s,a){1&s&&(e.ynx(0,40),e.YNc(1,Ae,2,3,"ot-pagination-page",41),e.YNc(2,Ce,1,0,"ot-pagination-more",42),e.BQk()),2&s&&(e.Q6J("ngSwitch",a.$implicit),e.xp6(2),e.Q6J("ngSwitchCase","more"))}function ve(s,a){1&s&&e._UZ(0,"ot-pagination-next",45)}function Ie(s,a){if(1&s){const t=e.EpF();e.TgZ(0,"div",34)(1,"ot-pagination",35),e.NdJ("change",function(o){e.CHM(t);const l=e.oxw();return e.KtG(l.onNavigatePagination(o))}),e.YNc(2,Oe,1,0,"ot-pagination-previous",36),e.YNc(3,Pe,3,2,"ng-container",37),e.YNc(4,ve,1,0,"ot-pagination-next",38),e.qZA()()}if(2&s){const t=e.oxw();e.xp6(2),e.Q6J("ngIf",t.service.shouldShowPrevious),e.xp6(1),e.Q6J("ngForOf",t.service.visiblePages),e.xp6(1),e.Q6J("ngIf",t.service.shouldShowNext)}}const Le=function(s){return{fromLocation:s}};let Ne=(()=>{class s{constructor(t,n,o,l,g,b,_,B){this.activatedRoute=t,this.router=n,this.service=o,this.featureNameService=l,this.milestoneService=g,this.errorHandlerService=b,this.alertMessageService=_,this.artifactsListFilterService=B,this.fromLocation=null,this.filter={},this.onDestroy$=new O.x}ngOnInit(){const{skillId:t,name:n,academicSessionId:o,offset:l,fromLocation:g}=this.activatedRoute.snapshot.queryParams;o&&(this.selectedAcademicSessionId=Number(o)),g&&(this.fromLocation=g),n&&(this.filter.name=n);const b=Object.assign(Object.assign(Object.assign(Object.assign({},t&&{skillId:Number(t)}),n&&{name:n}),o&&{academicSessionId:Number(o)}),{offset:l?Number(l):0});this.academicSessions$=this.service.academicSessions$.pipe((0,v.b)(_=>{_?.length&&!this.selectedAcademicSessionId&&(this.selectedAcademicSessionId=Number(_[0].id)),b.academicSessionId=this.selectedAcademicSessionId,this.filter.offset=0,this.service.onFilterChange(b)}),(0,S.R)(this.onDestroy$)),this.artifacts$=this.service.artifacts$.pipe((0,S.R)(this.onDestroy$)),this.skills$=this.service.skills$.pipe((0,S.R)(this.onDestroy$)).pipe((0,v.b)(_=>(t?_.forEach(B=>{B.selected=B.id===Number(t)}):_[0].selected=!0,_))),this.studentName$=this.service.studentName$.pipe((0,S.R)(this.onDestroy$)),this.activatedRoute.params.pipe((0,S.R)(this.onDestroy$)).subscribe(_=>{_?.studentId&&(this.studentId=_.studentId,this.service.onStudentChange(this.studentId))}),this.milestoneService.getMilestoneTypes().pipe((0,S.R)(this.onDestroy$)).subscribe(_=>{this.milestoneTypes=_}),this.milestoneService.getStudentMilestones(this.studentId).pipe((0,S.R)(this.onDestroy$)).subscribe(_=>{this.milestoneData=_}),this.gradeLevelOptions$=this.milestoneService.getStudentGradeLevels(this.studentId)}ngOnDestroy(){this.onDestroy$.next(null),this.onDestroy$.complete()}onSelectArtifact(t){this.router.navigate([t.id],{relativeTo:this.activatedRoute,replaceUrl:!0})}onCreateMilestone(t){const n={studentIds:[Number(this.studentId)],milestone:{milestoneTypeId:t.milestoneTypeId,academicSessionId:t.academicSessionId,milestoneDate:t.milestoneDate}};this.milestoneService.bulkCreateMilestone(n).pipe((0,A.q)(1),(0,V.w)(()=>this.milestoneService.getStudentMilestones(this.studentId).pipe((0,A.q)(1),(0,v.b)(o=>{this.milestoneData=o,this.alertMessageService.success($localize`:portfolio-v2/TeacherArtifactListComponent|Log milestone success message:Milestone successfully logged.`,void 0,5e3)}))),(0,Z.K)(()=>(this.alertMessageService.error($localize`:portfolio-v2/TeacherArtifactListComponent|Log milestone error message:Milestone was not logged. Please try again.`,void 0,5e3),H.E))).subscribe()}openMilestonesView(){this.milestonesView.open()}onDeleteMilestone(t){this.milestoneService.deleteStudentMilestone(this.studentId,t).pipe((0,A.q)(1),(0,V.w)(()=>this.milestoneService.getStudentMilestones(this.studentId).pipe((0,A.q)(1),(0,v.b)(n=>{this.milestoneData=n,this.alertMessageService.success($localize`:portfolio-v2/TeacherArtifactListComponent|Delete milestone success message:Milestone successfully deleted.`,void 0,5e3)}))),(0,Z.K)(()=>(this.alertMessageService.error($localize`:portfolio-v2/TeacherArtifactListComponent|Delete milestone error message:Milestone was not deleted. Please try again.`,void 0,5e3),H.E))).subscribe()}
1onSelectAcademicSession(t){const n=t.option,o=Number(n?.id);this.selectedAcademicSessionId===o?(n.selected=!1,this.resetAcademicSessionSelection()):(this.selectedAcademicSessionId=o,this.filter.academicSessionId=o||null),this.filter.offset=0,this.artifactsListFilterService.onFilterChange(this.filter)}filterBySkill(t){this.filter.skillId=t?.id,this.selectedAcademicSessionId&&(this.filter.academicSessionId=this.selectedAcademicSessionId),this.filter.offset=0,this.artifactsListFilterService.onFilterChange(this.filter)}onSearch(t){t&&t.length<3||(""!==t?this.filter.name=t:delete this.filter.name,this.selectedAcademicSessionId&&(this.filter.academicSessionId=this.selectedAcademicSessionId),this.filter.offset=0,this.artifactsListFilterService.onFilterChange(this.filter))}clearFilters(){var t;this.skillFilter.resetFilter();const n=(null===(t=this.academicSessionsSelect)||void 0===t?void 0:t.options)||[],o=n?.length?Number(n[0].id):null;this.resetAcademicSessionSelection(!0),this.filter=o?{academicSessionId:o}:{},this.filter.offset=0,this.artifactsListFilterService.onFilterChange(this.filter)}resetAcademicSessionSelection(t=!1){var n;const o=(null===(n=this.academicSessionsSelect)||void 0===n?void 0:n.options)||[];this.unselectDropdownOption(o),t&&o?.length?(this.selectedAcademicSessionId=Number(o?.[0].id),o[0].selected=!0):(this.selectedAcademicSessionId=null,this.filter.academicSessionId=null)}unselectDropdownOption(t){const n=t?.find(o=>o.selected);n&&(n.selected=!1)}onNavigatePagination(t){this.service.currentPage="previous"===t.page?Math.max(this.service.currentPage-1,1):"next"===t.page?Math.min(this.service.currentPage+1,this.service.totalPages):parseInt(t.page,10),this.service.shouldShowPrevious=(0,M.IE)(this.service.totalPages,this.service.currentPage),this.service.shouldShowNext=(0,M.dM)(this.service.totalPages,this.service.currentPage),this.service.visiblePages=(0,M.kG)(this.service.totalPages,this.service.currentPage),this.filter.offset=this.service.pageLimit*(this.service.currentPage-1),this.artifactsListFilterService.onFilterChange(this.filter)}onGoBack(){let t;switch(this.fromLocation){case"student-profile":t=["/student-profile",this.studentId,"content","main"];break;case"milestones":t=["/portfolio/students/milestones"];break;default:t=["/portfolio/students/artifacts"]}this.router.navigate(t)}}return s.\u0275fac=function(t){return new(t||s)(e.Y36(r.gz),e.Y36(r.F0),e.Y36(q.i),e.Y36(Y.b),e.Y36(re.J),e.Y36(j.q),e.Y36(p.Of),e.Y36(_e.J))},s.\u0275cmp=e.Xpm({type:s,selectors:[["ot-artifacts-teacher-container"]],viewQuery:function(t,n){if(1&t&&(e.Gf(k.M,5),e.Gf(X,5),e.Gf(z.Q,5),e.Gf(ge,5)),2&t){let o;e.iGM(o=e.CRH())&&(n.logMilestoneComponent=o.first),e.iGM(o=e.CRH())&&(n.milestonesView=o.first),e.iGM(o=e.CRH())&&(n.skillFilter=o.first),e.iGM(o=e.CRH())&&(n.academicSessionsSelect=o.first)}},standalone:!0,features:[e._Bn([Y.b,j.q,le.N,q.i]),e.jDz],decls:41,vars:27,consts:function(){let a,t,n,o,l,g,b;return a=$localize`:portfolio-v2/TeacherArtifactsListComponent|Teacher Artifacts Breadcrumb␟7ac8dba089fe911f8ff95b9c4bad49b844d58578␟1590735533697294154:${"\ufffd0\ufffd"}:INTERPOLATION:`,t=$localize`:portfolio-v2/TeacherArtifactsListComponent|Add artifact button label␟2ec40dfc1c849dd68380e530ffd5a971879019de␟3670873100042975081:Add Artifact`,n=$localize`:portfolio/TeacherArtifactsListComponent|Form search label␟4642971164093d288b4f972f9739e1a6c1cf4951␟100742975721662328:Search`,o=$localize`:portfolio/TeacherArtifactsListComponent|Placeholder for search artifacts␟c3fbcf037ee1a1279d74ae8facb06c18592affc4␟6990817910951692533:Search Artifacts`,l=$localize`:portfolio-v2/TeacherArtifactsListComponent|Form school year label␟b90ef52444bb25d6fcf55ac1142bfee84a3e8852␟4235190361711561401:School Year`,g=$localize`:portfolio-v2/TeacherArtifactsListComponent|View all milestones button label␟f2318c04b995912db43e9b9815d8321c835a626e␟8611241390733443187: View All Milestones `,b=$localize`:portfolio-v2/TeacherArtifactsListComponent|Log milestone button label␟fccee64f4b1234f32b553f3ac527657b8054a01d␟4461036790092590388: L
1og Milestone `,[["slot","navigation"],["ot-button","","color","transparent","size","medium","trim","true","aria-label","Navigate back",1,"ot-page-header-back-button",3,"click"],["type","back"],["slot","breadcumb"],["ot-breadcrumb","","size","small"],["ot-link","","routerLink","/portfolio/students","tabindex","0",3,"queryParams"],a,["slot","title"],["ot-heading",""],["slot","actions"],[1,"ot-teacher-artifacts-header__actions"],[4,"ngIf"],["ot-button","","aria-label","Add artifact",3,"routerLink"],["prefix","fas","icon","plus"],t,[1,"search-container"],[1,"search-name"],n,["placeholder",o,3,"ngModel","debounce","debounceTime","ngModelChange","onClickSearch"],[1,"search-academic-session"],["placeholder","Select School Year",3,"hidePlaceholderOnFirstSelect","options","initialSelectedValue","change"],["academicSessionSelect",""],l,[1,"artifact-list-content"],[3,"skills","selectSkill"],[1,"ot-teacher-artifacts-list__list"],[3,"artifacts","artifactSelected","clearFilters"],["class","ot-teacher-artifacts-list__pagination",4,"ngIf"],["ot-button","","aria-label","View All Milestones","color","transparent",3,"disabled","click"],g,["ot-button","","aria-label","Log Milestone","color","neutral",3,"click"],b,[3,"milestoneTypes","gradeLevelOptions","createMilestone"],[3,"milestoneData","deleteMilestone"],[1,"ot-teacher-artifacts-list__pagination"],[3,"change"],["label","Previous page",4,"ngIf"],[3,"ngSwitch",4,"ngFor","ngForOf"],["label","Next page",4,"ngIf"],["label","Previous page"],[3,"ngSwitch"],[3,"active","page",4,"ngSwitchDefault"],["label","More pages",4,"ngSwitchCase"],[3,"active","page"],["label","More pages"],["label","Next page"]]},template:function(t,n){1&t&&(e.TgZ(0,"ot-page-header"),e.ynx(1,0),e.TgZ(2,"button",1),e.NdJ("click",function(){return n.onGoBack()}),e._UZ(3,"ot-icon-label",2),e.qZA(),e.BQk(),e.ynx(4,3),e.TgZ(5,"nav",4)(6,"ul")(7,"li")(8,"a",5),e.SDv(9,6),e.ALo(10,"async"),e.qZA()()()(),e.BQk(),e.ynx(11,7),e.TgZ(12,"h1",8),e._uU(13),e.ALo(14,"async"),e.qZA(),e.BQk(),e.ynx(15,9),e.TgZ(16,"div",10),e.YNc(17,pe,6,3,"ng-container",11),e.TgZ(18,"button",12)(19,"ot-icon-label",13),e.SDv(20,14),e.qZA()()(),e.BQk(),e.qZA(),e.YNc(21,Me,4,5,"ng-container",11),e.TgZ(22,"div")(23,"div",15)(24,"div",16)(25,"ot-input-label"),e.SDv(26,17),e.qZA(),e.TgZ(27,"otus-input-search",18),e.NdJ("ngModelChange",function(l){return n.filter.name=l})("onClickSearch",function(l){return n.onSearch(l)}),e.qZA()(),e.TgZ(28,"div",19)(29,"ot-select",20,21),e.NdJ("change",function(l){return n.onSelectAcademicSession(l)}),e.ALo(31,"async"),e.TgZ(32,"ot-input-label"),e.SDv(33,22),e.qZA()()()(),e.TgZ(34,"div",23)(35,"ot-skill-filter",24),e.NdJ("selectSkill",function(l){return n.filterBySkill(l)}),e.ALo(36,"async"),e.qZA(),e.TgZ(37,"div",25)(38,"ot-artifacts-list",26),e.NdJ("artifactSelected",function(l){return n.onSelectArtifact(l)})("clearFilters",function(){return n.clearFilters()}),e.ALo(39,"async"),e.qZA(),e.YNc(40,Ie,5,3,"div",27),e.qZA()()()),2&t&&(e.xp6(8),e.Q6J("queryParams",e.VKq(25,Le,n.fromLocation)),e.xp6(2),e.pQV(e.lcZ(10,15,n.featureNameService.featureName$)),e.QtT(9),e.xp6(3),e.Oqu(e.lcZ(14,17,n.studentName$)),e.xp6(4),e.Q6J("ngIf",null==n.milestoneTypes?null:n.milestoneTypes.length),e.xp6(1),e.MGl("routerLink","/portfolio/students/",n.studentId,"/artifacts/create"),e.xp6(3),e.Q6J("ngIf",null==n.milestoneTypes?null:n.milestoneTypes.length),e.xp6(6),e.Q6J("ngModel",n.filter.name)("debounce",!0)("debounceTime",600),e.xp6(2),e.Q6J("hidePlaceholderOnFirstSelect",!0)("options",e.lcZ(31,19,n.academicSessions$))("initialSelectedValue",n.selectedAcademicSessionId),e.xp6(6),e.Q6J("skills",e.lcZ(36,21,n.skills$)),e.xp6(3),e.Q6J("artifacts",e.lcZ(39,23,n.artifacts$)),e.xp6(2),e.Q6J("ngIf",n.service.totalPages>1))},dependencies:[C.u5,C.JJ,C.On,T.ez,T.sg,T.O5,T.RF,T.n9,T.ED,T.Ov,r.Bz,r.rH,R.H,m.w,ce.aG,P.h,Q.zx,$.g,W.X,I.IT,K.g,f.$,de.m,k.M,X,z.Q,y.q,Te.A,G.m,G.k,c.An,Se.Ph,M.u3,ue.t,Ee.d,fe.$,me.V,he.H],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;justify-content:center;margin:var(--ot-spacing-xl)}ot-page-header[_ngcontent-%COMP%]{--ot-page-header-width: auto;--ot-page-header-actions-grow: 1}.ot-teacher-artifacts-header__actions[_ngcontent-%COMP%]{display:flex;gap:var(--ot-spacing-s)}.search-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;gap:var(--ot-spacing-m);margin-bottom:var(--ot-spacing-l);.search-academic-session {max-width: 16rem; margin-bottom: .3125rem;} & > * {flex: 1;}}.artifact-list-content[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:var(--ot-spacing-m)}.ot-teacher-artifacts-list__list[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;gap:var(--ot-spacing-m)}.ot-teacher-artifacts-list__pagination[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:var(--ot-spacing-m)}"],changeDetection:0}),s})()},75950:(J,N,i)=>{i.d(N,{i:()=>G});var T=i(61135),C=i(39841),r=i(63900),p=i(39300),m=i(39646),P=i(54004),$=i(4128),I=i(70262),y=i(95698),f=i(68675),M=i(18505),c=i(7192),O=i(38495),v=i(18227),S=i(81120),A=i(94650),V=i(9116),Z=i(37755),H=i(37699);let G=(()=>{class R{constructor(u,d,E,L,D){this.router=u,this.filterService=d,this.bffClient=E,this.portfolioAttachmentService=L,this.errorHandlerService=D,this.studentId$=ne
1w T.X(null),this.artifacts$=(0,C.a)([this.studentId$,this.filterService.artifactsFilter$]).pipe((0,r.w)(([h,x])=>(this.router.navigate([],{queryParams:x,replaceUrl:!0}),this.loadStudentArtifacts(h,x))),(0,p.h)(h=>Boolean(h))),this.skills$=this.studentId$.pipe((0,r.w)(h=>this.loadSkills(h))),this.studentName$=this.studentId$.pipe((0,r.w)(h=>this.loadStudentName(h))),this.academicSessions$=this.studentId$.pipe((0,r.w)(h=>this.loadAcademicSessions(h))),this.pageLimit=5,this.currentPage=1,this.totalPages=0,this.shouldShowPrevious=!1,this.shouldShowNext=!1,this.visiblePages=[]}onFilterChange(u){this.filterService.onFilterChange(u)}onStudentChange(u){this.studentId$.next(u)}loadStudentArtifacts(u,d){return d.limit||(d.limit=this.pageLimit),this.bffClient.getStudentArtifactsForTeacher(u,d).pipe((0,r.w)(E=>{var L,D;this.totalPages=null!==(L=E?.totalPages)&&void 0!==L?L:1,this.shouldShowPrevious=(0,S.IE)(this.totalPages,this.currentPage),this.shouldShowNext=(0,S.dM)(this.totalPages,this.currentPage),this.visiblePages=(0,S.kG)(this.totalPages,this.currentPage),this.currentPage=Math.floor(d.offset/d.limit)+1;const h=null!==(D=E?.data)&&void 0!==D?D:[];if(0===h.length)return(0,m.of)([]);const x=h.map(w=>{const U=w.attachments[0];return this.portfolioAttachmentService.getAttachment(U.source,U.identifier,c.Q[U.type],U.title).pipe((0,P.U)(F=>(F&&"string"!=typeof F.src&&(F.showPreview=!1),Object.assign(Object.assign({},w),{attachmentPreview:F}))))});return(0,$.D)(x)}),(0,I.K)(E=>(this.errorHandlerService.handleError(E),(0,m.of)([]))))}loadSkills(u){return this.bffClient.getStudentSkillsForTeacher(u).pipe((0,P.U)(d=>{const E=[{id:void 0,name:"Artifacts",icon:"palette",selected:!1,artifactsCount:d.totalArtifactsCount,backgroundColor:null}];return d.skills.forEach(L=>{E.push(Object.assign(Object.assign({},L),{selected:!1}))}),E})).pipe((0,y.q)(1),(0,I.K)(d=>(this.errorHandlerService.handleError(d),(0,m.of)([]))))}loadStudentName(u){return this.bffClient.getStudentName(u)}loadAcademicSessions(u){return this.bffClient.getStudentAcademicSessionsForTeacher(u).pipe((0,y.q)(1),(0,f.O)([]),(0,P.U)(d=>d.map(E=>({id:E.id,label:E.name,selected:!1}))),(0,M.b)(d=>(d?.length&&(d[0].selected=!0),d)),(0,I.K)(d=>(this.errorHandlerService.handleError(d),(0,m.of)([]))))}}return R.\u0275fac=function(u){return new(u||R)(A.LFG(V.F0),A.LFG(Z.J),A.LFG(H.u),A.LFG(v.N),A.LFG(O.q))},R.\u0275prov=A.Yz7({token:R,factory:R.\u0275fac,providedIn:null}),R})()},8757:(J,N,i)=>{i.d(N,{k:()=>I,m:()=>y});var T=i(78372),C=i(71884),r=i(94650),p=i(36895),m=i(24006),P=i(77579);const $={provide:m.JU,useExisting:(0,r.Gpc)(()=>I),multi:!0};let I=(()=>{class f{constructor(){this.modelChanged=new P.x,this.maxlength=200,this.debounce=!1,this.debounceTime=300,this.onClickSearch=new r.vpe,this._onTouchedCallback=()=>{},this._onChangeCallback=c=>{}}ngOnInit(){this.modelChanged.pipe((0,T.b)(this.debounceTime),(0,C.x)()).subscribe(c=>{this.onClickSearch.emit(c)})}get value(){return this._value}set value(c){c!==this._value&&(this._value=c,this._onChangeCallback(c))}onTouched(){this._onTouchedCallback()}onValueChange(c){this.debounce&&this.modelChanged.next(c)}writeValue(c){this._value=c}registerOnChange(c){this._onChangeCallback=c}registerOnTouched(c){this._onTouchedCallback=c}buttonClick(){this.onClickSearch.emit(this._value)}}return f.\u0275fac=function(c){return new(c||f)},f.\u0275cmp=r.Xpm({type:f,selectors:[["otus-input-search"]],inputs:{placeholder:"placeholder",maxlength:"maxlength",debounce:"debounce",debounceTime:"debounceTime",value:"value"},outputs:{onClickSearch:"onClickSearch"},features:[r._Bn([$])],decls:4,vars:3,consts:[[1,"otus-input-search"],["type","text","spellcheck","true",1,"otus-input-search__input",3,"ngModel","maxlength","placeholder","ngModelChange","keydown.enter"],[1,"otus-input-search__button",3,"click"],[1,"fa","fa-search"]],template:function(c,O){1&c&&(r.TgZ(0,"div",0)(1,"input",1),r.NdJ("ngModelChange",function(S){return O.value=S})("ngModelChange",function(S){return O.onValueChange(S)})("keydown.enter",function(S){return S.preventDefault(),S.stopPropagation(),O.buttonClick()}),r.qZA(),r.TgZ(2,"button",2),r.NdJ("click",function(){return O.buttonClick()}),r._UZ(3,"i",3),r.qZA()()),2&c&&(r.xp6(1),r.s9C("placeholder",O.placeholder),r.Q6J("ngModel",O.value)("maxlength",O.maxlength))},dependencies:[m.Fj,m.JJ,m.nD,m.On],encapsulation:2}),f})(),y=(()=>{class f{}return f.\u0275fac=function(c){return new(c||f)},f.\u0275mod=r.oAB({type:f}),f.\u0275inj=r.cJS({imports:[p.ez,m.u5]}),f})()},89870:(J,N,i)=>{i.d(N,{$:()=>r});var T=i(36895),C=i(94650);let r=(()=>{class p{}
1return p.\u0275fac=function(P){return new(P||p)},p.\u0275mod=C.oAB({type:p}),p.\u0275inj=C.cJS({imports:[T.ez]}),p})()}}]);

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.