PageSourceSearch

https://preuteslaplus.com/411-es2015.9d8c1e6af8716f72c3b3.js

js preuteslaplus.com collected 2026-10-02 01:40:43 UTC 48,017 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkmetronic_angular_demo1=self.webpackChunkmetronic_angular_demo1||[]).push([[411],{43358:function(e,t,i){i.d(t,{V:function(){return d}});var n=i(32606);const o=(()=>{function e(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return e.prototype=Object.create(Error.prototype),e})();var s=i(80318),r=i(27272);class a{constructor(e,t,i,n){this.waitFor=e,this.absoluteTimeout=t,this.withObservable=i,this.scheduler=n}call(e,t){return t.subscribe(new l(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class l extends r.Ds{constructor(e,t,i,n,o){super(e),this.absoluteTimeout=t,this.waitFor=i,this.withObservable=n,this.scheduler=o,this.scheduleTimeout()}static dispatchTimeout(e){const{withObservable:t}=e;e._unsubscribeAndRecycle(),e.add((0,r.ft)(t,new r.IY(e)))}scheduleTimeout(){const{action:e}=this;e?this.action=e.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(l.dispatchTimeout,this.waitFor,this))}_next(e){this.absoluteTimeout||this.scheduleTimeout(),super._next(e)}_unsubscribe(){this.action=void 0,this.scheduler=null,this.withObservable=null}}var u=i(45871);function d(e,t=n.P){return function(e,t,i=n.P){return n=>{let o=(0,s.J)(e),r=o?+e-i.now():Math.abs(e);return n.lift(new a(r,o,t,i))}}(e,(0,u._)(new o),t)}},20411:function(e,t,i){i.r(t),i.d(t,{CampusMigrationModule:function(){return re}});var n=i(54364),o=i(55292),s=i(91154),r=i(42321),a=i(1707),l=i(42720),u=i(71435),d=i(43358),c=i(18190),g=i.n(c),m=i(73373),h=i(2316),p=i(53882),f=i(92340),Z=i(30873);let b=(()=>{class e{constructor(e){this.API_URL=`${f.N.apiUrl}/schedules`,this.http=new Z.E(e)}getMigrationPreview(e){return this.http.get(`${this.API_URL}/migration/preview`,{params:e})}executeMigration(e){return this.http.post(`${this.API_URL}/migration/migrate`,e)}getMigrationHistory(e=1,t=10,i,n,o){const s={page:e,pageSize:t};return i&&Object.keys(i).length&&(s.filters=JSON.stringify(i)),n&&(s.sortColumn=n),o&&(s.sortDirection=o),this.http.get(`${this.API_URL}/migration/history`,{params:s})}rollbackMigration(e){return this.http.post(`${this.API_URL}/migration/rollback/${e}`,{})}}return e.\u0275fac=function(t){return new(t||e)(h.LFG(p.eN))},e.\u0275prov=h.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var v=i(86102),C=i(15190),y=i(87581),A=i(36868),T=i(82006);function x(e,t){1&e&&h._UZ(0,"i",35)}function q(e,t){1&e&&h._UZ(0,"i",36)}function w(e,t){if(1&e&&(h.TgZ(0,"span"),h._uU(1),h.qZA()),2&e){const e=t.item;h.xp6(1),h.AsE("",(null==e.campus?null:e.campus.name)||"Sin sede"," | ",e.name,"")}}function I(e,t){if(1&e&&(h.TgZ(0,"span",37),h._uU(1),h.qZA(),h.TgZ(2,"span",38),h._uU(3),h.qZA()),2&e){const e=t.item;h.xp6(1),h.Oqu(e.name),h.xp6(2),h.hij("(",e.total,")")}}function M(e,t){if(1&e&&(h.TgZ(0,"span"),h._uU(1),h.qZA(),h.TgZ(2,"span",39),h._uU(3),h.qZA()),2&e){const e=t.item;h.xp6(1),h.Oqu(e.name),h.xp6(2),h.Oqu(null==e.courseType?null:e.courseType.name)}}function N(e,t){1&e&&(h.TgZ(0,"div",40),h._uU(1," Seleccione el curso origen. "),h.qZA())}function _(e,t){1&e&&(h.TgZ(0,"div",40),h._uU(1," Seleccione la sede destino. "),h.qZA())}function H(e,t){if(1&e&&(h.TgZ(0,"span"),h._uU(1),h.qZA()),2&e){const e=t.item;h.xp6(1),h.AsE("",(null==e.campus?null:e.campus.name)||"Sin sede"," | ",e.name,"")}}function O(e,t){if(1&e&&(h.TgZ(0,"span"),h._uU(1),h.qZA(),h.TgZ(2,"span",39),h._uU(3),h.qZA()),2&e){const e=t.item;h.xp6(1),h.Oqu(e.name),h.xp6(2),h.Oqu(null==e.courseType?null:e.courseType.name)}}function k(e,t){1&e&&(h.TgZ(0,"div",40),h._uU(1," Seleccione el curso destino. "),h.qZA())}function U(e,t){if(1&e&&(h.TgZ(0,"span"),h._uU(1),h.qZA()),2&e){const e=t.item,i=h.oxw();h.xp6(1),h.Oqu(i.getScheduleHourDisplay(e))}}function J(e,t){if(1&e&&(h.TgZ(0,"span"),h._uU(1),h.qZA()),2&e){const e=t.item,i=h.oxw();h.xp6(1),h.Oqu(i.getScheduleHourDisplay(e))}}function S(e,t){if(1&e&&(h.TgZ(0,"div",41),h.TgZ(1,"div",42),h.TgZ(2,"div",43),h.TgZ(3,"span",44),h._uU(4,"Origen"),h.qZA(),h.TgZ(5,"span",45),h._uU(6),h.qZA(),h.qZA(),h.TgZ(7,"div",43),h.TgZ(8,"span",44),h._uU(9,"Destino"),h.qZA(),h.TgZ(10,"span",45),h._uU(11),h.qZA(),h.qZA(),h.TgZ(12,"div",46),h.TgZ(13,"span",44),h._uU(14,"Clases"),h.qZA(),h.TgZ(15,"span",45),h._uU(16),h.qZA(),h.qZA(),h.TgZ(17,"div",46),h.TgZ(18,"span",44),h._uU(19,"Estudiantes"),h.qZA(),h.TgZ(20,"span",45),h._uU(21),h.qZA(),h.qZA(),h.qZA(),h.qZA()),2&e){const e=t.ngIf;h.xp6(6),h.AsE("",e.originCampusName," | ",e.originCourseName,""),h.xp6(5),h.AsE("",e.de
1stinationCampusName," | ",e.destinationCourseName,""),h.xp6(5),h.Oqu(e.schedules.length),h.xp6(5),h.Oqu(e.affectedStudentsCount)}}function P(e,t){if(1&e&&(h.TgZ(0,"tr"),h.TgZ(1,"td"),h._uU(2),h.qZA(),h.TgZ(3,"td"),h._uU(4),h.qZA(),h.TgZ(5,"td"),h._uU(6),h.qZA(),h.TgZ(7,"td",49),h._uU(8),h.qZA(),h.TgZ(9,"td",49),h._uU(10),h.qZA(),h.TgZ(11,"td"),h.TgZ(12,"span",54),h._uU(13),h.qZA(),h.qZA(),h.qZA()),2&e){const e=t.$implicit,i=h.oxw(3);h.xp6(2),h.Oqu(e.blockName||e.blockKey),h.xp6(2),h.Oqu(i.getDayName(e.day)),h.xp6(2),h.AsE("",i.formatTime(e.initialTime)," - ",i.formatTime(e.endTime),""),h.xp6(2),h.Oqu(e.schedulesNeeded),h.xp6(2),h.Oqu(e.availableRooms.length),h.xp6(2),h.Q6J("ngClass",e.hasEnoughRooms?"badge-light-success":"badge-light-danger"),h.xp6(1),h.hij(" ",e.hasEnoughRooms?"OK":"Insuficiente"," ")}}function B(e,t){if(1&e){const e=h.EpF();h.TgZ(0,"div"),h.TgZ(1,"div",47),h.TgZ(2,"table",48),h.TgZ(3,"thead"),h.TgZ(4,"tr"),h.TgZ(5,"th"),h._uU(6,"Bloque"),h.qZA(),h.TgZ(7,"th"),h._uU(8,"Dia"),h.qZA(),h.TgZ(9,"th"),h._uU(10,"Horario"),h.qZA(),h.TgZ(11,"th",49),h._uU(12,"Necesarias"),h.qZA(),h.TgZ(13,"th",49),h._uU(14,"Disponibles"),h.qZA(),h.TgZ(15,"th"),h._uU(16,"Estado"),h.qZA(),h.qZA(),h.TgZ(17,"tr"),h.TgZ(18,"td"),h.TgZ(19,"input",50),h.NdJ("ngModelChange",function(t){return h.CHM(e),h.oxw(2).filterAvailability.block=t})("ngModelChange",function(){return h.CHM(e),h.oxw(2).onAvailabilityFilterChange()}),h.qZA(),h.qZA(),h.TgZ(20,"td"),h.TgZ(21,"input",50),h.NdJ("ngModelChange",function(t){return h.CHM(e),h.oxw(2).filterAvailability.day=t})("ngModelChange",function(){return h.CHM(e),h.oxw(2).onAvailabilityFilterChange()}),h.qZA(),h.qZA(),h.TgZ(22,"td"),h.TgZ(23,"input",50),h.NdJ("ngModelChange",function(t){return h.CHM(e),h.oxw(2).filterAvailability.time=t})("ngModelChange",function(){return h.CHM(e),h.oxw(2).onAvailabilityFilterChange()}),h.qZA(),h.qZA(),h.TgZ(24,"td"),h.TgZ(25,"input",50),h.NdJ("ngModelChange",function(t){return h.CHM(e),h.oxw(2).filterAvailability.needed=t})("ngModelChange",function(){return h.CHM(e),h.oxw(2).onAvailabilityFilterChange()}),h.qZA(),h.qZA(),h.TgZ(26,"td"),h.TgZ(27,"input",50),h.NdJ("ngModelChange",function(t){return h.CHM(e),h.oxw(2).filterAvailability.available=t})("ngModelChange",function(){return h.CHM(e),h.oxw(2).onAvailabilityFilterChange()}),h.qZA(),h.qZA(),h.TgZ(28,"td"),h.TgZ(29,"ng-select",51),h.NdJ("ngModelChange",function(t){return h.CHM(e),h.oxw(2).filterAvailability.status=t})("change",function(){return h.CHM(e),h.oxw(2).onAvailabilityFilterChange()}),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.TgZ(30,"tbody"),h.YNc(31,P,14,8,"tr",52),h.qZA(),h.qZA(),h.qZA(),h.TgZ(32,"app-paginator",53),h.NdJ("paginate",function(t){return h.CHM(e),h.oxw(2).paginateAvailability(t)}),h.qZA(),h.qZA()}if(2&e){const e=h.oxw(2);h.xp6(19),h.Q6J("ngModel",e.filterAvailability.block),h.xp6(2),h.Q6J("ngModel",e.filterAvailability.day),h.xp6(2),h.Q6J("ngModel",e.filterAvailability.time),h.xp6(2),h.Q6J("ngModel",e.filterAvailability.needed),h.xp6(2),h.Q6J("ngModel",e.filterAvailability.available),h.xp6(2),h.Q6J("items",e.statusAvailabilityOptions)("ngModel",e.filterAvailability.status)("clearable",!1)("searchable",!1),h.xp6(2),h.Q6J("ngForOf",e.paginatedRoomsByBlock),h.xp6(1),h.Q6J("paginator",e.availabilityPaginator)("isLoading",e.isPreviewLoading)}}function R(e,t){1&e&&(h.TgZ(0,"div",60),h._uU(1," No hay suficientes salas disponibles para uno o mas bloques. Ajuste los filtros antes de migrar. "),h.qZA())}function L(e,t){1&e&&h._UZ(0,"i",36)}function D(e,t){1&e&&(h.TgZ(0,"div",63),h._uU(1," Sala repetida en el mismo bloque. "),h.qZA())}const F=function(){return{standalone:!0}};function Q(e,t){if(1&e){const e=h.EpF();h.TgZ(0,"tr"),h.TgZ(1,"td"),h._uU(2),h.qZA(),h.TgZ(3,"td"),h._uU(4),h.qZA(),h.TgZ(5,"td"),h._uU(6),h.qZA(),h.TgZ(7,"td"),h._uU(8),h.qZA(),h.TgZ(9,"td"),h.TgZ(10,"ng-select",61),h.NdJ("ngModelChange",function(t){const i=h.CHM(e).$implicit;return h.oxw(3).targetRoomByScheduleId[i.scheduleId]=t})("change",function(){return h.CHM(e),h.oxw(3).onAssignmentChange()}),h.qZA(),h.YNc(11,D,2,0,"div",62),h.qZA(),h.qZA()}if(2&e){const e=t.$implicit,i=h.oxw(3);h.xp6(2),h.Oqu(e.sectionName||"#"+e.sectionId),h.xp6(2),h.Oqu(i.getDayName(e.day)),h.xp6(2),h.AsE("",i.formatTime(e.initialTime)," - ",i.formatTime(e.endTime),""),h.xp6(2),h.Oqu(e.currentRoomName||"-"),h.xp6(2),h.Q6J("items",i.getRoomsForSchedule(e))("ngModel",i.targetRoomByScheduleId[e.scheduleId])("ngModelOptions",h.DdM(10,F))("clearable",!1),h.xp6(1),h.Q6J("ngIf",i.isDuplicateAssignment(e))}}function Y(e,t){if(1&e){const e=h.EpF();h.TgZ(0,"div"),h.YNc(1,R,2,0,"div",55),h.TgZ(2,"div",56),h.TgZ(3,"button",57),h.NdJ("click",function(){return h.CHM(e),h.oxw(2).executeMigration()}),h.YNc(4,L,1,0,"i",7),h._uU(5," Ejecutar migraci\xf3n "),h.qZA(),h.qZA(),h.TgZ(6,"div",47),h.TgZ(7,"table",48),h.TgZ(8,"thead"),h.TgZ(9,"tr"),h.TgZ(10,"th"),h._uU(11,"Seccion"),h.qZA(),h.TgZ(12,"th"),h._uU(13,"Dia"),h.qZA(),h.TgZ(14,"th"),h._uU(15,"Horario"),h.qZA(),h.TgZ(16,"th"),h._uU(17,"Sala actual"),h.qZA(),h.TgZ(18,"th"),h._uU(19,"Sala destino"),h.qZA(),h.qZA(),h.TgZ(20,"tr"),h.TgZ(21,"td"),h.TgZ(22,"input",50),h.NdJ("ngModelChange",function(t){return h.CHM(e),h.oxw(2).filterAssignments.sectionName=t})("ngModelChange",function(){return h.CHM(e),h.oxw(2).onAssignmentsFilterChange()}),h.qZA(),h.qZA(),h.TgZ(23,"td"),h.TgZ(24,"input",50),h.NdJ("ngModelChange",function(t){return h.CHM(e),h.oxw(2).filterAssignments.day=t})("ngModelChange",function(){return h.CHM(e),h.oxw(2).onAssignmentsFilterChange()}),h.qZA(),h.qZA(),h.TgZ(25,"td"),h.TgZ(26,"input",50),h.NdJ("ngModelChange",function(t){return h.CHM(e),h.oxw(2).filterAssignments.time=t})("ngModelChange",function(){return h.CHM(e),h.oxw(2).onAssignmentsFilterChange()}),h.qZA(),h.qZA(),h.TgZ(27,"td"),h.TgZ(28,"input",50),h.NdJ("ngModelChange",function(t){return h.CHM(e),h.oxw(2).filterAssignments.currentRoomName=t})("ngModelChange",function(){return h.CHM(e),h.oxw(2).onAssignmentsFilterChange()}),h.qZA(),h.qZA(),h.TgZ(29,"td"),h.TgZ(30,"input",50),h.NdJ("ngModelChange",function(t){return h.CHM(e),h.oxw(2).filterAssignments.targetRoomName=t})("ngModelChange",function(){return h.CHM(e),h.oxw(2).onAssignmentsFilterChange()}),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.TgZ(31,"tbody"),h.YNc(32,Q,12,11,"tr",58),h.qZA(),h.qZA(),h.qZA(),h.TgZ(33,"app-paginator",59),h.NdJ("paginate",function(t){return h.CHM(e),h.oxw(2).paginateAssignments(t)}),h.qZA(),h.qZA()}if(2&e){const e=h.oxw().ngIf,t=h.oxw();h.xp6(1),h.Q6J("ngIf",!e.isValid),h.xp6(2),h.Q6J("disabled",!t.canExecuteMigration()),h.xp6(1),h.Q6J("ngIf",t.isExecuting),h.xp6(18),h.Q6J("ngModel",t.filterAssignments.sectionName),h.xp6(2),h.Q6J("ngModel",t.filterAssignments.day),h.xp6(2),h.Q6J("ngModel",t.filterAssignments.time),h.xp6(2),h.Q6J("ngModel",t.filterAssignments.currentRoomName),h.xp6(2),h.Q6J("ngModel",t.filterAssignments.targetRoomName),h.xp6(2),h.Q6J("ngForOf",t.paginatedSchedules)("ngForTrackBy",t.trackByScheduleId),h.xp6(1),h.Q6J("paginator",t.assignmentsPaginator)("isLoading",t.isPreviewLoading)}}function E(e,t){if(1&e&&(h.ynx(0),h.YNc(1,B,33,12,"div",31),h.YNc(2,Y,34,12,"div",31),h.BQk()),2&e){const e=h.oxw();h.xp6(1),h.Q6J("ngIf","availability"===e.activeTab),h.xp6(1),h.Q6J("ngIf","assignments"===e.activeTab)}}function $(e,t){1&e&&h.GkF(0)}function j(e,t){if(1&e&&(h.TgZ(0,"div",64),h.YNc(1,$,1,0,"ng-container",65),h.qZA()),2&e){h.oxw();const e=h.MAs(64);h.xp6(1),h.Q6J("ngTemplateOutlet",e)}}function V(e,t){1&e&&(h.TgZ(0,"div",66),h._UZ(1,"i",67),h.TgZ(2,"h4",68),h._uU(3,"Seleccione filtros"),h.qZA(),h.TgZ(4,"p",69),h._uU(5,'Seleccione el curso de origen y la sede destino, y presione "Previsualizar" para comenzar.'),h.qZA(),h.qZA())}function G(e,t){1&e&&(h.TgZ(0,"div",76),h._UZ(1,"i",36),h._uU(2," Cargando historial... "),h.qZA())}function z(e,t){1&e&&h._UZ(0,"i",83)}function K(e,t){1&e&&h._UZ(0,"i",36)}function W(e,t){if(1&e){const e=h.EpF();h.TgZ(0,"button",81),h.NdJ("click",function(){h.CHM(e);const t=h.oxw().$implicit;return h.oxw(3).rollbackMigration(t)}),h.YNc(1,z,1,0,"i",82),h.YNc(2,K,1,0,"i",7),h._uU(3," Revertir "),h.qZA()}if(2&e){const e=h.oxw().$implicit,t=h.oxw(3);h.Q6J("disabled",t.isRollingBackId===e.id),h.xp6(1),h.Q6J("ngIf",t.isRollingBackId!==e.id),h.xp6(1),h.Q6J("ngIf",t.isRollingBackId===e.id)}}function X(e,t){if(1&e&&(h.TgZ(0,"tr"),h.TgZ(1,"td"),h._uU(2),h.qZA(),h.TgZ(3,"td"),h.TgZ(4,"div"),h._uU(5),h.qZA(),h.TgZ(6,"div",79),h._uU(7),h.qZA(),h.qZA(),h.TgZ(8,"td"),h._uU(9),h.qZA(),h.TgZ(10,"td"),h._uU(11),h.qZA(),h.TgZ(12,"td",49),h._uU(13),h.qZA(),h.TgZ(14,"td",49),h._uU(15),h.qZA(),h.TgZ(16,"td",49),h._uU(17),h.qZA(),h.TgZ(18,"td"),h.TgZ(19,"span",54),h._uU(20),h.qZA(),h.qZA(),h.TgZ(21,"td",78),h.YNc(22,W,4,3,"button",8
10),h.qZA(),h.qZA()),2&e){const e=t.$implicit,i=h.oxw(3);h.xp6(2),h.Oqu(i.formatDate(e.migrationDate)),h.xp6(3),h.AsE("",e.originCampusName," | ",e.originCourseName,""),h.xp6(2),h.AsE("",e.destinationCampusName," | ",e.destinationCourseName,""),h.xp6(2),h.Oqu(i.getHistoryDayDisplay(e)),h.xp6(2),h.Oqu(i.getHistoryTimeBlockDisplay(e)),h.xp6(2),h.Oqu(e.schedulesCount),h.xp6(2),h.Oqu(e.sectionsCount),h.xp6(2),h.Oqu(e.userCoursesInsertedCount),h.xp6(2),h.Q6J("ngClass",e.isRolledBack?"badge-light-warning":"badge-light-success"),h.xp6(1),h.hij(" ",e.isRolledBack?"Revertida":"Aplicada"," "),h.xp6(2),h.Q6J("ngIf",!e.isRolledBack)}}function ee(e,t){if(1&e){const e=h.EpF();h.TgZ(0,"div",77),h.TgZ(1,"table",48),h.TgZ(2,"thead"),h.TgZ(3,"tr"),h.TgZ(4,"th"),h._uU(5,"Fecha"),h.qZA(),h.TgZ(6,"th"),h._uU(7,"Ruta"),h.qZA(),h.TgZ(8,"th"),h._uU(9,"D\xeda"),h.qZA(),h.TgZ(10,"th"),h._uU(11,"Bloque horario"),h.qZA(),h.TgZ(12,"th",49),h._uU(13,"Schedules"),h.qZA(),h.TgZ(14,"th",49),h._uU(15,"Secciones"),h.qZA(),h.TgZ(16,"th",49),h._uU(17,"Estudiantes"),h.qZA(),h.TgZ(18,"th"),h._uU(19,"Estado"),h.qZA(),h.TgZ(20,"th",78),h._uU(21,"Acciones"),h.qZA(),h.qZA(),h.TgZ(22,"tr"),h.TgZ(23,"td"),h.TgZ(24,"input",50),h.NdJ("ngModelChange",function(t){return h.CHM(e),h.oxw(2).filterHistory.date=t})("ngModelChange",function(){return h.CHM(e),h.oxw(2).onHistoryFilterChange()}),h.qZA(),h.qZA(),h.TgZ(25,"td"),h.TgZ(26,"input",50),h.NdJ("ngModelChange",function(t){return h.CHM(e),h.oxw(2).filterHistory.route=t})("ngModelChange",function(){return h.CHM(e),h.oxw(2).onHistoryFilterChange()}),h.qZA(),h.qZA(),h.TgZ(27,"td"),h.TgZ(28,"input",50),h.NdJ("ngModelChange",function(t){return h.CHM(e),h.oxw(2).filterHistory.day=t})("ngModelChange",function(){return h.CHM(e),h.oxw(2).onHistoryFilterChange()}),h.qZA(),h.qZA(),h.TgZ(29,"td"),h.TgZ(30,"input",50),h.NdJ("ngModelChange",function(t){return h.CHM(e),h.oxw(2).filterHistory.timeBlock=t})("ngModelChange",function(){return h.CHM(e),h.oxw(2).onHistoryFilterChange()}),h.qZA(),h.qZA(),h.TgZ(31,"td"),h.TgZ(32,"input",50),h.NdJ("ngModelChange",function(t){return h.CHM(e),h.oxw(2).filterHistory.schedulesCount=t})("ngModelChange",function(){return h.CHM(e),h.oxw(2).onHistoryFilterChange()}),h.qZA(),h.qZA(),h.TgZ(33,"td"),h.TgZ(34,"input",50),h.NdJ("ngModelChange",function(t){return h.CHM(e),h.oxw(2).filterHistory.sectionsCount=t})("ngModelChange",function(){return h.CHM(e),h.oxw(2).onHistoryFilterChange()}),h.qZA(),h.qZA(),h.TgZ(35,"td"),h.TgZ(36,"input",50),h.NdJ("ngModelChange",function(t){return h.CHM(e),h.oxw(2).filterHistory.userCoursesInsertedCount=t})("ngModelChange",function(){return h.CHM(e),h.oxw(2).onHistoryFilterChange()}),h.qZA(),h.qZA(),h.TgZ(37,"td"),h.TgZ(38,"ng-select",51),h.NdJ("ngModelChange",function(t){return h.CHM(e),h.oxw(2).filterHistory.status=t})("change",function(){return h.CHM(e),h.oxw(2).onHistoryFilterChange()}),h.qZA(),h.qZA(),h._UZ(39,"td"),h.qZA(),h.qZA(),h.TgZ(40,"tbody"),h.YNc(41,X,23,13,"tr",52),h.qZA(),h.qZA(),h.qZA()}if(2&e){const e=h.oxw(2);h.xp6(24),h.Q6J("ngModel",e.filterHistory.date),h.xp6(2),h.Q6J("ngModel",e.filterHistory.route),h.xp6(2),h.Q6J("ngModel",e.filterHistory.day),h.xp6(2),h.Q6J("ngModel",e.filterHistory.timeBlock),h.xp6(2),h.Q6J("ngModel",e.filterHistory.schedulesCount),h.xp6(2),h.Q6J("ngModel",e.filterHistory.sectionsCount),h.xp6(2),h.Q6J("ngModel",e.filterHistory.userCoursesInsertedCount),h.xp6(2),h.Q6J("items",e.statusHistoryOptions)("ngModel",e.filterHistory.status)("clearable",!1)("searchable",!1),h.xp6(3),h.Q6J("ngForOf",e.paginatedHistory)}}function te(e,t){1&e&&(h.TgZ(0,"div",76),h._uU(1," No hay migraciones registradas. "),h.qZA())}function ie(e,t){if(1&e){const e=h.EpF();h.TgZ(0,"app-paginator",53),h.NdJ("paginate",function(t){return h.CHM(e),h.oxw(2).paginateHistory(t)}),h.qZA()}if(2&e){const e=h.oxw(2);h.Q6J("paginator",e.historyPaginator)("isLoading",e.isHistoryLoading)}}function ne(e,t){if(1&e&&(h.TgZ(0,"div",70),h.TgZ(1,"div",71),h.TgZ(2,"h5",72),h._uU(3,"Historial reciente"),h.qZA(),h.qZA(),h.YNc(4,G,3,0,"div",73),h.YNc(5,ee,42,12,"div",74),h.YNc(6,te,2,0,"div",73),h.YNc(7,ie,1,2,"app-paginator",75),h.qZA()),2&e){const e=h.oxw();h.xp6(4),h.Q6J("ngIf",e.isHistoryLoading),h.xp6(1),h.Q6J("ngIf",!e.isHistoryLoading&&e.history.length),h.xp6(1),h.Q6J("ngIf",!e.isHistoryLoading&&!e.history.length),h.xp6(1),h.Q6J("ngIf",!e.isHistoryLoading&&e.history.length)}}const oe=[{path:"",children:[{path:"",component:(()=>{class e{constructor(e,t,i,n,o,s){this.fb=e,this.migrationService=t,this.courseService=i,this.campusService=n,this.hourService=o,this.cdr=s,this.courses=[],this.campuses=[],this.filteredCourses=[],this.destinationCourses=[],this.hours=[],this.history=[],this.activeTab="history",this.filterAvailability={block:"",day:"",time:"",needed:"",available:"",status:""},this.filterAssignments={scheduleId:"",sectionName:"",day:"",time:"",currentRoomName:"",targetRoomName:""},this.filterHistory={id:"",date:"",route:"",day:"",timeBlock:"",schedulesCount:"",sectionsCount:"",userCoursesInsertedCount:"",status:""},this.targetRoomByScheduleId={},this.duplicateAssignmentIds={},this.isLoadingOptions=!1,this.isPreviewLoading=!1,this.isExecuting=!1,this.isHistoryLoading=!1,this.isRollingBackId=null,this.availabilityPaginator=new m.O,this.assignmentsPaginator=new m.O,this.historyPaginator=new m.O,this.dayOptions=[{value:1,label:"Lunes"},{value:2,label:"Martes"},{value:3,label:"Miercoles"},{value:4,label:"Jueves"},{value:5,label:"Viernes"},{value:6,label:"Sabado"}],this.statusAvailabilityOptions=[{id:"",name:"Todos"},{id:"OK",name:"OK"},{id:"Insuficiente",name:"Insuficiente"}],this.statusHistoryOptions=[{id:"",name:"Todos"},{id:"aplicada",name:"Aplicada"},{id:"revertida",name:"Revertida"}],this.groupCourseByCampus=e=>{var t;return(null===(t=null==e?void 0:e.campus)||void 0===t?void 0:t.name)||"Sin sede"},this.groupCourseValue=(e,t)=>
1{var i,n;return{name:(null===(n=null===(i=t[0])||void 0===i?void 0:i.campus)||void 0===n?void 0:n.name)||"Sin sede",total:t.length}},this.formGroup=this.fb.group({year:[(new Date).getFullYear(),[a.kI.required,a.kI.min(2e3),a.kI.max(2100)]],originCourseId:[null,a.kI.required],destinationCampusId:[null,a.kI.required],destinationCourseId:[null,a.kI.required],filterDay:[null],filterInitialTime:[null],scheduleHourId:[null],indexOffset:[100,[a.kI.required,a.kI.min(0)]]})}paginateAvailability(e){this.availabilityPaginator=e,this.cdr.detectChanges()}paginateAssignments(e){this.assignmentsPaginator=e,this.cdr.detectChanges()}paginateHistory(e){this.historyPaginator=e,this.cdr.detectChanges()}onAvailabilityFilterChange(){this.availabilityPaginator.page=1,this.availabilityPaginator.recalculatePaginator(this.filteredRoomsByBlock.length),this.cdr.detectChanges()}onAssignmentsFilterChange(){this.assignmentsPaginator.page=1,this.assignmentsPaginator.recalculatePaginator(this.filteredSchedules.length),this.cdr.detectChanges()}onHistoryFilterChange(){this.historyPaginator.page=1,this.historyPaginator.recalculatePaginator(this.filteredHistory.length),this.cdr.detectChanges()}setActiveTab(e){this.activeTab=e,"history"===e&&this.loadHistory(),this.cdr.detectChanges()}getRoomNameById(e){const t=this.targetRoomByScheduleId[e.scheduleId];if(!t)return"-";const i=this.getRoomsForSchedule(e).find(e=>e.roomId===Number(t));return i?i.roomName:"-"}get filteredRoomsByBlock(){var e;return(null===(e=this.preview)||void 0===e?void 0:e.roomsByBlock)?this.preview.roomsByBlock.filter(e=>{const t=(e.blockName||e.blockKey||"").toLowerCase(),i=this.getDayName(null!=e.day?e.day:0).toLowerCase(),n=`${this.formatTime(e.initialTime)} - ${this.formatTime(e.endTime)}`.toLowerCase(),o=e.hasEnoughRooms?"ok":"insuficiente",s=null!=e.day?e.day.toString():"",r=null!=e.schedulesNeeded?e.schedulesNeeded.toString():"0",a=e.availableRooms?e.availableRooms.length.toString():"0",l=this.filterAvailability;return(!l.block||t.includes(l.block.toLowerCase()))&&(!l.day||i.includes(l.day.toLowerCase())||s.includes(l.day))&&(!l.time||n.includes(l.time.toLowerCase()))&&(!l.needed||r.includes(l.needed))&&(!l.available||a.includes(l.available))&&(!l.status||o===l.status.toLowerCase())}):[]}get filteredSchedules(){var e;return(null===(e=this.preview)||void 0===e?void 0:e.schedules)?this.preview.schedules.filter(e=>{const t=`#${e.scheduleId}`,i=(e.sectionName||"").toLowerCase(),n=this.getDayName(null!=e.day?e.day:0).toLowerCase(),o=`${this.formatTime(e.initialTime)} - ${this.formatTime(e.endTime)}`.toLowerCase(),s=(e.currentRoomName||"-").toLowerCase(),r=this.getRoomNameById(e).toLowerCase(),a=null!=e.day?e.day.toString():"",l=this.filterAssignments;return(!l.scheduleId||t.includes(l.scheduleId)||e.scheduleId.toString().includes(l.scheduleId))&&(!l.sectionName||i.includes(l.sectionName.toLowerCase()))&&(!l.day||n.includes(l.day.toLowerCase())||a.includes(l.day))&&(!l.time||o.includes(l.time.toLowerCase()))&&(!l.currentRoomName||s.includes(l.currentRoomName.toLowerCase()))&&(!l.targetRoomName||r.includes(l.targetRoomName.toLowerCase()))}):[]}get filteredHistory(){return this.history.filter(e=>{const t=`#${e.id}`,i=this.formatDate(e.migrationDate).toLowerCase(),n=`${e.originCampusName||""} | ${e.originCourseName||""} ${e.destinationCampusName||""} | ${e.destinationCourseName||""}`.toLowerCase(),o=this.getHistoryDayDisplay(e).toLowerCase(),s=this.getHistoryTimeBlockDisplay(e).toLowerCase(),r=e.isRolledBack?"revertida":"aplicada",a=null!=e.schedulesCount?e.schedulesCount.toString():"",l=null!=e.sectionsCount?e.sectionsCount.toString():"",u=null!=e.userCoursesInsertedCount?e.userCoursesInsertedCount.toString():"",d=this.filterHistory;return(!d.id||t.includes(d.id)||e.id.toString().includes(d.id))&&(!d.date||i.includes(d.date.toLowerCase()))&&(!d.route||n.includes(d.route.toLowerCase()))&&(!d.day||o.includes(d.day.toLowerCase())||null!=e.filterDay&&e.filterDay.toString().includes(d.day))&&(!d.timeBlock||s.includes(d.timeBlock.toLowerCase()))&&(!d.schedulesCount||a.includes(d.schedulesCount))&&(!d.sectionsCount||l.includes(d.sectionsCount))&&(!d.userCoursesInsertedCount||u.includes(d.userCoursesInsertedCount))&&(!d.status||r===d.status.toLowerCase())})}get paginatedRoomsByBlock(){const e=(this.availabilityPaginator.page-1)*this.availabilityPaginator.pageSize;return this.filteredRoomsByBlock.slice(e,e+this.availabilityPaginator.pageSize)}get paginatedSchedules(){const e=(this.assignmentsPaginator.page-1)*this.assignmentsPaginator.pageSize;return this.filteredSchedules.slice(e,e+this.assignmentsPaginator.pageSize)}get paginatedHistory(){const e=(this.historyPaginator.page-1)*this.historyPaginator.pageSize;return this.filteredHistory.slice(e,e+this.historyPaginator.pageSize)}ngOnInit(){this.loadOptions(),this.loadHistory()}get selectedYear(){var e;return Number((null===(e=this.formGroup.get("year"))||void 0===e?void 0:e.value)||(new Date).getFullYear())}updateCourseOptions(){this.filteredCourses=this.courses.filter(e=>this.isCourseInSelectedYear(e)),this.updateDestinationCourseOptions()}updateDestinationCourseOptions(){var e;const t=Number((null===(e=this.formGroup.get("destinationCampusId"))||void 0===e?void 0:e.value)||0);this.destinationCourses=this.filteredCourses.filter(e=>!t||Number(e.campusId)===t)}loadOptions(){this.isLoadingOptions=!0,(0,l.D)([this.courseService.fetchAll(),this.campusService.fetchAll(),this.hourService.getAllHours()]).pipe((0,u.x)(()=>{this.isLoadingOptions=!1,this.cdr.detectChanges()})).subscribe({next:([e,t,i])=>{this.courses=e||[],this.campuses=t||[],this.hours=i||[],this.updateCourseOptions()},error:e=>this.showError(e,"No se pudieron cargar cursos, sedes y bloques horarios.")})}loadHistory(){this.isHistoryLoading=!0,this.migrationService.getMigrationHistory(1,1e3).pipe((0,u.x)(()=>{this.isHistoryLoading=!1,this.cdr.detectChanges()})).subscribe({next:e=>{this.history=(null==e?void 0:e.items)||[],this.historyPaginator.re
1calculatePaginator(this.filteredHistory.length),this.cdr.detectChanges()},error:e=>this.showError(e,"No se pudo cargar el historial de migraciones.")})}resetTableFilters(){this.filterAvailability={block:"",day:"",time:"",needed:"",available:"",status:""},this.filterAssignments={scheduleId:"",sectionName:"",day:"",time:"",currentRoomName:"",targetRoomName:""}}onYearChange(){this.preview=null,this.activeTab="history",this.resetTableFilters(),this.updateCourseOptions(),this.ensureOriginCourseStillValid(),this.ensureDestinationCourseStillValid()}onOriginCourseChange(){this.preview=null,this.activeTab="history",this.resetTableFilters(),this.updateDestinationCourseOptions(),this.ensureDestinationCourseStillValid()}onDestinationCampusChange(){this.preview=null,this.activeTab="history",this.resetTableFilters(),this.updateDestinationCourseOptions(),this.ensureDestinationCourseStillValid()}onScheduleFilterChange(){this.preview=null,this.activeTab="history",this.targetRoomByScheduleId={},this.duplicateAssignmentIds={},this.resetTableFilters()}loadPreview(){if(this.formGroup.markAllAsTouched(),this.formGroup.invalid)return void console.warn("[Migration] Form invalid, aborting preview",this.formGroup.errors,this.formGroup.value);const e=this.buildPreviewRequest();console.log("[Migration] Sending preview request:",e),this.preview=null,this.targetRoomByScheduleId={},this.duplicateAssignmentIds={},this.resetTableFilters(),this.isPreviewLoading=!0,this.migrationService.getMigrationPreview(e).pipe((0,d.V)(3e4),(0,u.x)(()=>{this.isPreviewLoading=!1,this.cdr.detectChanges()})).subscribe({next:e=>{var t;console.log("[Migration] Preview response received:",e),this.preview=e,this.assignDefaultRooms(),this.updateDuplicateAssignments(),this.availabilityPaginator.page=1,this.availabilityPaginator.recalculatePaginator(this.filteredRoomsByBlock.length),this.assignmentsPaginator.page=1,this.assignmentsPaginator.recalculatePaginator(this.filteredSchedules.length),this.activeTab="availability",this.cdr.detectChanges(),(null===(t=null==e?void 0:e.schedules)||void 0===t?void 0:t.length)?e.isValid||g().fire({icon:"warning",title:"Salas insuficientes",text:`Se encontraron ${e.schedules.length} schedules pero no hay suficientes salas disponibles en la sede destino. Revise la disponibilidad por bloque.`,confirmButtonText:"Entendido"}):g().fire({icon:"info",title:"Sin horarios",text:"No se encontraron schedules para los filtros seleccionados.",confirmButtonText:"Cerrar"})},error:e=>{console.error("[Migration] Preview error:",e),"TimeoutError"===(null==e?void 0:e.name)?g().fire({icon:"error",title:"Tiempo de espera agotado",text:"El servidor tard\xf3 demasiado en responder. Intente con filtros m\xe1s espec\xedficos.",confirmButtonText:"Cerrar"}):this.showError(e,"No se pudo generar la previsualizacion.")}})}executeMigration(){return(0,r.mG)(this,void 0,void 0,function*(){this.canExecuteMigration()?!(yield g().fire({icon:"warning",title:"Confirmar migracion",text:`Se migraran ${this.preview.schedules.length} schedules y sus secciones asociadas. Esta accion quedara registrada y podra revertirse desde el historial.`,showCancelButton:!0,confirmButtonText:"Migrar",cancelButtonText:"Cancelar",confirmButtonColor:"#3699ff"})).isConfirmed||(this.isExecuting=!0,this.migrationService.executeMigration(this.buildExecuteRequest()).pipe((0,u.x)(()=>{this.isExecuting=!1,this.cdr.detectChanges()})).subscribe({next:e=>{g().fire({icon:"success",title:"Migracion completada",text:e.message,confirmButtonText:"Cerrar"}),this.preview=null,this.targetRoomByScheduleId={},this.duplicateAssignmentIds={},this.activeTab="history",this.loadHistory()},error:e=>this.showError(e,"No se pudo ejecutar la migracion.")})):g().fire({icon:"warning",title:"Asignacion incompleta",text:"Revise que todos los schedules tengan sala destino y que no existan salas repetidas en el mismo bloque.",confirmButtonText:"Cerrar"})})}rollbackMigration(e){return(0,r.mG)(this,void 0,void 0,function*(){!(yield g().fire({icon:"warning",title:"Revertir migracion",text:`Se revertira la migracion #${e.id}.`,showCancelButton:!0,confirmButtonText:"Revertir",cancelButtonText:"Cancelar",confirmButtonColor:"#f64e60"})).isConfirmed||(this.isRollingBackId=e.id,this.migrationService.rollbackMigration(e.id).pipe((0,u.x)(()=>{this.isRollingBackId=null,this.cdr.detectChanges()})).subscribe({next:e=>{g().fire({icon:"success",title:"Migracion revertida",text:e.message,confirmButtonText:"Cerrar"}),this.preview=null,this.activeTab="history",this.loadHistory()},error:e=>this.showError(e,"No se pudo revertir la migracion.")}))})}getRoomsForSchedule(e){var t,i;const n=null===(i=null===(t=this.preview)||void 0===t?void 0:t.roomsByBlock)||void 0===i?void 0:i.find(t=>t.blockKey===e.blockKey);return(null==n?void 0:n.availableRooms)||[]}onAssignmentChange(){this.updateDuplicateAssignments()}isDuplicateAssignment(e){return!!this.duplicateAssignmentIds[e.scheduleId]}hasMissingAssignments(){var e,t;return!(null===(t=null===(e=this.preview)||void 0===e?void 0:e.sc
1hedules)||void 0===t?void 0:t.length)||this.preview.schedules.some(e=>!Number(this.targetRoomByScheduleId[e.scheduleId]))}hasDuplicateAssignments(){return Object.keys(this.duplicateAssignmentIds).length>0}canExecuteMigration(){return!!this.preview&&this.preview.isValid&&this.preview.schedules.length>0&&!this.hasMissingAssignments()&&!this.hasDuplicateAssignments()&&!this.isExecuting}isControlInvalid(e){const t=this.formGroup.get(e);return!!t&&t.invalid&&(t.dirty||t.touched)}getDayName(e){return["Domingo","Lunes","Martes","Miercoles","Jueves","Viernes","Sabado"][e]||"-"}getHistoryDayDisplay(e){return(null==e?void 0:e.filterDay)?this.getDayName(e.filterDay):"Todos"}getHistoryTimeBlockDisplay(e){return(null==e?void 0:e.filterTimeBlock)||"Todos"}formatTime(e){if(!e)return"-";const t=new Date(e);if(!isNaN(t.getTime()))return`${this.pad(t.getHours())}:${this.pad(t.getMinutes())}`;const i=`${e}`.match(/(\d{2}):(\d{2})/);return i?`${i[1]}:${i[2]}`:e}formatDate(e){return e?new Date(e).toLocaleString("es-CL"):"-"}trackByScheduleId(e,t){return t.scheduleId}getScheduleHourDisplay(e){return e?`${this.formatTime(e.initialTime)} a ${this.formatTime(e.endTime)} hrs.`:""}buildPreviewRequest(){const e=this.formGroup.value,t={originCourseId:Number(e.originCourseId),destinationCampusId:Number(e.destinationCampusId)};if(e.destinationCourseId&&(t.destinationCourseId=Number(e.destinationCourseId)),e.filterDay&&(t.filterDay=Number(e.filterDay)),e.scheduleHourId){const i=this.hours.find(t=>t.id===Number(e.scheduleHourId));i&&(t.filterInitialTime=this.formatTime(i.initialTime))}return t}buildExecuteRequest(){const e=this.formGroup.value;let t=null;if(e.scheduleHourId){const i=this.hours.find(t=>t.id===Number(e.scheduleHourId));i&&(t=`${this.formatTime(i.initialTime)} - ${this.formatTime(i.endTime)}`)}return{originCourseId:this.preview.originCourseId,destinationCourseId:this.preview.destinationCourseId,destinationCampusId:this.preview.destinationCampusId,filterDay:e.filterDay?Number(e.filterDay):null,filterTimeBlock:t,indexOffset:Number(e.indexOffset||100),assignments:this.preview.schedules.map(e=>({scheduleId:e.scheduleId,targetRoomId:Number(this.targetRoomByScheduleId[e.scheduleId])}))}}assignDefaultRooms(){var e;this.targetRoomByScheduleId={},((null===(e=this.preview)||void 0===e?void 0:e.roomsByBlock)||[]).forEach(e=>{var t;((null===(t=this.preview)||void 0===t?void 0:t.schedules)||[]).filter(t=>t.blockKey===e.blockKey).forEach((t,i)=>{var n;const o=null===(n=e.availableRooms)||void 0===n?void 0:n[i];o&&(this.targetRoomByScheduleId[t.scheduleId]=o.roomId)})})}updateDuplicateAssignments(){var e;const t={},i={};((null===(e=this.preview)||void 0===e?void 0:e.schedules)||[]).forEach(e=>{const t=Number(this.targetRoomByScheduleId[e.scheduleId]);!t||(i[e.blockKey]||(i[e.blockKey]={}),i[e.blockKey][t]||(i[e.blockKey][t]=[]),i[e.blockKey][t].push(e.scheduleId))}
1),Object.keys(i).forEach(e=>{Object.keys(i[e]).forEach(n=>{const o=i[e][Number(n)];o.length>1&&o.forEach(e=>t[e]=!0)})}),this.duplicateAssignmentIds=t}ensureOriginCourseStillValid(){var e;const t=Number((null===(e=this.formGroup.get("originCourseId"))||void 0===e?void 0:e.value)||0);t&&(this.filteredCourses.some(e=>Number(e.id)===t)||this.formGroup.patchValue({originCourseId:null,destinationCourseId:null}))}ensureDestinationCourseStillValid(){var e;const t=Number((null===(e=this.formGroup.get("destinationCourseId"))||void 0===e?void 0:e.value)||0);t&&(this.destinationCourses.some(e=>Number(e.id)===t)||this.formGroup.patchValue({destinationCourseId:null}))}getSelectedOriginCourse(){var e;const t=Number((null===(e=this.formGroup.get("originCourseId"))||void 0===e?void 0:e.value)||0);return this.courses.find(e=>Number(e.id)===t)}isCourseInSelectedYear(e){if(!this.selectedYear)return!0;const t=this.getYear(e.startAt),i=this.getYear(e.endAt)||t;return!t&&!i||(t||i)<=this.selectedYear&&this.selectedYear<=(i||t)}getYear(e){if(!e)return null;const t=new Date(e);return isNaN(t.getTime())?null:t.getFullYear()}showError(e,t){var i;const n="string"==typeof(null==e?void 0:e.error)?e.error:(null===(i=null==e?void 0:e.error)||void 0===i?void 0:i.message)||(null==e?void 0:e.message)||t;g().fire({icon:"error",title:"Error",text:n,confirmButtonText:"Cerrar"})}pad(e){return e<10?`0${e}`:`${e}`}}return e.\u0275fac=function(t){return new(t||e)(h.Y36(a.qu),h.Y36(b),h.Y36(v.N),h.Y36(C.j),h.Y36(y.U),h.Y36(h.sBO))},e.\u0275cmp=h.Xpm({type:e,selectors:[["app-campus-migration"]],decls:65,vars:35,consts:[[1,"card","card-custom","gutter-b"],[1,"card-header","d-flex","justify-content-between","align-items-center"],[1,"card-title"],[1,"card-label","mb-0"],[1,"card-toolbar"],["type","button",1,"btn","btn-primary",3,"disabled","click"],["class","fas fa-search mr-1",4,"ngIf"],["class","fas fa-spinner fa-spin mr-1",4,"ngIf"],[1,"separator","separator-solid"],[1,"card-body","campus-migration-page"],[1,"migration-form","mb-5",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-xl-2","col-lg-2","col-md-3","mb-3"],["type","number","formControlName","year","min","2000","max","2100",1,"form-control","form-control-solid",3,"change"],[1,"col-xl-4","col-lg-4","col-md-9","mb-3"],["bindLabel","name","bindValue","id","formControlName","originCourseId","placeholder","Seleccionar curso origen",1,"form-control-solid",3,"items","groupBy","groupValue","change"],["ng-label-tmp",""],["ng-optgroup-tmp",""],["ng-option-tmp",""],["class","invalid-feedback d-block",4,"ngIf"],[1,"col-xl-3","col-lg-3","col-md-6","mb-3"],["bindLabel","name","bindValue","id","formControlName","destinationCampusId","placeholder","Seleccionar sede destino",1,"form-control-solid",3,"items","change"],["bindLabel","name","bindValue","id","formControlName","destinationCourseId","placeholder","Seleccionar curso destino",1,"form-control-solid",3,"items","clearable"],["bindLabel","label","bindValue","value","formControlName","filterDay","placeholder","Todos",1,"form-control-solid",3,"items","clearable","change"],[1,"col-xl-4","col-lg-4","col-md-6","mb-3"],["bindLabel","name","bindValue","id","formControlName","scheduleHourId","placeholder","Todos",1,"form-control-solid",3,"items","clearable","change"],["type","submit",2,"display","none"],["class","preview-container",4,"ngIf"],["role","tablist",1,"nav","nav-tabs","nav-tabs-line","mt-8","mb-6"],[1,"nav-item"],["role","tab",1,"nav-link",2,"cursor","pointer",3,"click"],[4,"ngIf"],["class","mt-4",4,"ngIf"],["class","text-center text-muted py-10 mt-5",4,"ngIf"],["historyTemplate",""],[1,"fas","fa-search","mr-1"],[1,"fas","fa-spinner","fa-spin","mr-1"],[1,"font-weight-bold"],[1,"text-muted","ml-1"],[1,"text-muted","ml-2"],[1,"invalid-feedback","d-block"],[1,"preview-container"],[1,"migration-summary","mb-4"],[1,"summary-item"],[1,"summary-label"],[1,"summary-value"],[1,"summary-item","compact"],[1,"table-responsive","mb-3","angular-bootstrap-table"],[1,"table","table-head-custom","table-vertical-center","overflow-hidden"],[1,"text-center"],["type","text",1,"table-header-filter",3,"ngModel","ngModelChange"],["bindValue","id","bindLabel","name","appendTo","body",1,"custom",2,"min-width","100px !important",3,"items","ngModel","clearable","searchable","placeholder","ngModelChange","change"],[4,"ngFor","ngForOf"],[1,"d-flex","justify-content-between","align-items-center","flex-wrap",3,"paginator","
1isLoading","paginate"],[1,"badge",3,"ngClass"],["class","alert alert-danger",4,"ngIf"],[1,"d-flex","justify-content-end","mb-3"],[1,"btn","btn-primary",3,"disabled","click"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"d-flex","justify-content-between","align-items-center","flex-wrap","mb-4",3,"paginator","isLoading","paginate"],[1,"alert","alert-danger"],["bindLabel","roomName","bindValue","roomId","placeholder","Seleccionar sala",1,"form-control-solid","room-select",3,"items","ngModel","ngModelOptions","clearable","ngModelChange","change"],["class","text-danger mt-1",4,"ngIf"],[1,"text-danger","mt-1"],[1,"mt-4"],[4,"ngTemplateOutlet"],[1,"text-center","text-muted","py-10","mt-5"],[1,"fas","fa-info-circle","fa-2x","text-muted","mb-3",2,"color","#a8a8a8"],[1,"text-muted","mb-1","font-weight-bold",2,"color","#a8a8a8"],[1,"mb-0",2,"color","#b5b5c3"],[1,"history-container"],[1,"d-flex","justify-content-between","align-items-center","mb-3"],[1,"font-weight-bold","mb-0"],["class","text-center text-muted py-4",4,"ngIf"],["class","table-responsive angular-bootstrap-table",4,"ngIf"],["class","d-flex justify-content-between align-items-center flex-wrap",3,"paginator","isLoading","paginate",4,"ngIf"],[1,"text-center","text-muted","py-4"],[1,"table-responsive","angular-bootstrap-table"],[1,"text-right"],[1,"text-muted"],["class","btn btn-sm btn-light-danger",3,"disabled","click",4,"ngIf"],[1,"btn","btn-sm","btn-light-danger",3,"disabled","click"],["class","fas fa-undo mr-1",4,"ngIf"],[1,"fas","fa-undo","mr-1"]],template:function(e,t){1&e&&(h.TgZ(0,"div",0),h.TgZ(1,"div",1),h.TgZ(2,"div",2),h.TgZ(3,"h3",3),h._uU(4,"Migraci\xf3n de Alumnos"),h.qZA(),h.qZA(),h.TgZ(5,"div",4),h.TgZ(6,"button",5),h.NdJ("click",function(){return t.loadPreview()}),h.YNc(7,x,1,0,"i",6),h.YNc(8,q,1,0,"i",7),h._uU(9," Previsualizar "),h.qZA(),h.qZA(),h.qZA(),h._UZ(10,"div",8),h.TgZ(11,"div",9),h.TgZ(12,"form",10),h.NdJ("ngSubmit",function(){return t.loadPreview()}),h.TgZ(13,"div",11),h.TgZ(14,"div",12),h.TgZ(15,"label"),h._uU(16,"A\xf1o"),h.qZA(),h.TgZ(17,"input",13),h.NdJ("change",function(){return t.onYearChange()}),h.qZA(),h.qZA(),h.TgZ(18,"div",14),h.TgZ(19,"label"),h._uU(20,"Curso origen"),h.qZA(),h.TgZ(21,"ng-select",15),h.NdJ("change",function(){return t.onOriginCourseChange()}),h.YNc(22,w,2,2,"ng-template",16),h.YNc(23,I,4,2,"ng-template",17),h.YNc(24,M,4,2,"ng-template",18),h.qZA(),h.YNc(25,N,2,0,"div",19),h.qZA(),h.TgZ(26,"div",20),h.TgZ(27,"label"),h._uU(28,"Sede destino"),h.qZA(),h.TgZ(29,"ng-select",21),h.NdJ("change",function(){return t.onDestinationCampusChange()}),h.qZA(),h.YNc(30,_,2,0,"div",19),h.qZA(),h.TgZ(31,"div",20),h.TgZ(32,"label"),h._uU(33,"Curso destino"),h.qZA(),h.TgZ(34,"ng-select",22),h.YNc(35,H,2,2,"ng-template",16),h.YNc(36,O,4,2,"ng-template",18),h.qZA(),h.YNc(37,k,2,0,"div",19),h.qZA(),h.TgZ(38,"div",20),h.TgZ(39,"label"),h._uU(40,"Dia"),h.qZA(),h.TgZ(41,"ng-select",23),h.NdJ("change",function(){return t.onScheduleFilterChange()}),h.qZA(),h.qZA(),h.TgZ(42,"div",24),h.TgZ(43,"label"),h._uU(44,"Bloque horario"),h.qZA(),h.TgZ(45,"ng-select",25),h.NdJ("change",function(){return t.onScheduleFilterChange()}),h.YNc(46,U,2,1,"ng-template",16),h.YNc(47,J,2,1,"ng-template",18),h.qZA(),h.qZA(),h._UZ(48,"button",26),h.qZA(),h.qZA(),h.YNc(49,S,22,6,"div",27),h.TgZ(50,"ul",28),h.TgZ(51,"li",29),h.TgZ(52,"a",30),h.NdJ("click",function(){return t.setActiveTab("availability")}),h._uU(53," Disponibilidad por bloque "),h.qZA(),h.qZA(),h.TgZ(54,"li",29),h.TgZ(55,"a",30),h.NdJ("click",function(){return t.setActiveTab("assignments")}),h._uU(56," Asignaci\xf3n de salas "),h.qZA(),h.qZA(),h.TgZ(57,"li",29),h.TgZ(58,"a",30),h.NdJ("click",function(){return t.setActiveTab("history")}),h._uU(59," Historial reciente "),h.qZA(),h.qZA(),h.qZA(),h.YNc(60,E,3,2,"ng-container",31),h.YNc(61,j,2,1,"div",32),h.YNc(62,V,6,0,"div",33),h.YNc(63,ne,8,4,"ng-template",null,34,h.W1O),h.qZA(),h.qZA()),2&e&&(h.xp6(6),h.Q6J("disabled",t.isPreviewLoading||t.isLoadingOptions),h.xp6(1),h.Q6J("ngIf",!t.isPreviewLoading),h.xp6(1),h.Q6J("ngIf",t.isPreviewLoading),h.xp6(4),h.Q6J("formGroup",t.formGroup),h.xp6(5),h.ekj("is-invalid",t.isControlInvalid("year")),h.xp6(4),h.ekj("is-invalid",t.isControlInvalid("originCourseId")),h.Q6J("items",t.filteredCourses)("groupBy",t.groupCourseByCampus)("groupValue",t.groupCourseValue),h.xp6(4),h.Q6J("ngIf",t.isControlInvalid("originCourseId")),h.xp6(4),h.ekj("is-invalid",t.isControlInvalid("destinationCampusId")),h.Q6J("items",t.campuses),h.xp6(1),h.Q6J("ngIf",t.isControlInvalid("destinationCampusId")),h.xp6(4),h.ekj("is-invalid",t.isControlInvalid("destinationCourseId")),h.Q6J("items",t.destinationCourses)("clearable",!0),h.xp6(3),h.Q6J("ngIf",t.isControlInvalid("destinationCourseId")),h.xp6(4),h.Q6J("items",t.dayOptions)("clearable",!0),h.xp6(4),h.Q6J("items",t.hours)("clearable",!0),h.xp6(4),h.Q6J("ngIf",t.preview),h.xp6(3),h.ekj("active","availability"===t.activeTab),h.xp6(3),h.ekj("active","assignments"===t.activeTab),h.xp6(3),h.ekj("active","history"===t.activeTab),h.xp6(2),h.Q6J("ngIf",t.preview),h.xp6(1),h.Q6J("ngIf","history"===t.activeTab),h.xp6(1),h.Q6J("ngIf",!t.preview&&"history"!==t.activeTab))},directives:[n.O5,a._Y,a.JL,a.sg,a.wV,a.qQ,a.Fd,a.Fj,a.JJ,a.u,A.w9,A.bb,A.mD,A.Z2,a.On,n.sg,T.J,n.mk,n.tP],styles:[".campus-migration-page[_ngcontent-%COMP%]   .migration-form[_ngcontent-%COMP%]{border-bottom:1px solid #e4e6ef;padding-bottom:1rem}.card-toolbar[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;flex-wrap:wrap;grid-gap:.5rem;gap:.5rem}.migration-summary[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) 140px 140px;grid-gap:.75rem;gap:.75rem}.summary-item[_ngcontent-%COMP%]{background-color:#f3f6f9;border:1px solid #e4e6ef;border-radius:4px;padding:.75rem;min-width:0}.summary-item.compact[_ngcontent-%COMP%]{text-align:center}.summary-label[_ngcontent-%COMP%]{display:block;color:#7e8299;font-size:.78rem;font-weight:600;text-transform:uppercase}.summary-value[_ngcontent-%COMP%]{display:block;color:#3f4254;font-weight:600;overflow-wrap:anywhere}.migration-table[_ngcontent-%COMP%]{margin-bottom:0}.migration-table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{background-color:#f3f6f9;color:#3f4254;font-weight:600;white-space:nowrap}.migration-table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%], .migration-table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{vertical-align:middle}.assignment-table[_ngcontent-%COMP%]{min-width:900px}.room-select[_ngcontent-%COMP%]{min-width:220px}.history-container[_ngcontent-%COMP%]{border-top:1px solid #e4e6ef;padding-top:1.5rem}[_nghost-%COMP%]     .campus-migration-page ng-select.custom{text-transform:none!important;font-weight:normal!important;letter-spacing:normal!important;font-size:13px!important;font-family:inherit!important;color:#3f4254!important}[_nghost-%COMP%]     .campus-migration-page ng-select.custom .ng-select-container{border:0!important;border-radius:0!important;border-bottom:1px solid gray!important;min-height:28px!important;height:28px!important;margin-bottom:0!important;background-color:transparent!important;box-shadow:none!important;text-transform:none!important;font-weight:normal!important;letter-spacing:normal!important;font-size:13px!important;font-family:inherit!important;color:#3f4254!important}[_nghost-%COMP%]     .campus-migration-page ng-select.custom .ng-select-container:focus-visible{outline:none!important}[_nghost-%COMP%]     .campus-migration-page ng-select.custom .ng-value-container{padding-left:0!important;padding-right:0!important;font-size:13px!important;font-family:inherit!important;font-weight:normal!important;text-transform:none!important;letter-spacing:normal!important;color:#3f4254!important}[_nghost-%COMP%]     .campus-migration-page ng-select.custom .ng-value-container .ng-value, [_nghost-%COMP%]     .campus-migration-page ng-select.custom .ng-value-container .ng-value .ng-value-label, [_nghost-%COMP%]     .campus-migration-page ng-select.custom .ng-value-container .ng-input, [_nghost-%COMP%]     .campus-migration-page ng-select.custom .ng-value-container .ng-input>input{font-size:13px!important;font-family:inherit!important;font-weight:normal!important;text-transform:none!important;letter-spacing:normal!important;color:#3f4254!important}[_nghost-%COMP%]     .campus-migration-page ng-select.custom .ng-value-container .ng-input, [_nghost-%COMP%]     .campus-migration-page ng-select.custom .ng-placeholder{top:0!important}[_nghost-%COMP%]     .campus-migration-page ng-select.custom .ng-placeholder{font-size:13px!important;font-family:inherit!important;font-weight:normal!important;text-transform:none!important;letter-spacing:normal!important;color:#b5b5c3!important}[_nghost-%COMP%]     .campus-migration-page ng-select.custom .ng-arrow-wrapper{bottom:0!important;align-self:center!important}@media (max-width: 991px){.migration-summary[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr}}@media (max-width: 575px){.migration-summary[_ngcontent-%COMP%]{grid-template-columns:1fr}}"]}),e})()}]}];let se=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.oAB({type:e}),e.\u0275inj=h.cJS({imports:[[s.Bz.forChild(oe)],s.Bz]}),e})(),re=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.oAB({type:e}),e.\u0275inj=h.cJS({imports:[[n.ez,o.m,se]]}),e})()},15190:function(e,t,i){i.d(t,{j:function(){return a}});var n=i(53882),o=i(92340),s=i(56353),r=i(2316);let a=(()=>{class e extends s.w{constructor(e){super(e),this.API_URL=`${o.N.apiUrl}/campus`}updateSearchInfo(e=!1){this.setDefaults(),this.API_URL_PARAMS={institute:e}}fetchAll(e=!1){return this.http.get(this.API_URL,{params:{institute:String(e)}})}getRoomsByCampus(e){return this.http.get(`${this.API_URL}
1/${e}/rooms`)}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe())}}return e.\u0275fac=function(t){return new(t||e)(r.LFG(n.eN))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},86102:function(e,t,i){i.d(t,{N:function(){return a}});var n=i(53882),o=i(92340),s=i(56353),r=i(2316);let a=(()=>{class e extends s.w{constructor(e){super(e),this.API_URL=`${o.N.apiUrl}/courses`}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe())}fetchAll(){return this.http.get(this.API_URL)}getForHolidayActives(){return this.http.get(`${this.API_URL}/holidays`)}}return e.\u0275fac=function(t){return new(t||e)(r.LFG(n.eN))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()}}]);
2//# sourceMappingURL=411-es2015.9d8c1e6af8716f72c3b3.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.