Commit 0bb5c7e3 authored by Open Source Developer's avatar Open Source Developer

tranfer

parent 88ffd174
...@@ -15,7 +15,7 @@ current_user: ...@@ -15,7 +15,7 @@ current_user:
requirements: requirements:
_user_is_logged_in: 'TRUE' _user_is_logged_in: 'TRUE'
submitedapplications: submitedapplications:
path: '/epal/subapplic/{$studentid}' path: '/epal/subapplic'
options: options:
_auth: [ 'basic_auth' ] _auth: [ 'basic_auth' ]
defaults: defaults:
......
...@@ -34,44 +34,38 @@ class SubmitedApplications extends ControllerBase ...@@ -34,44 +34,38 @@ class SubmitedApplications extends ControllerBase
$epalUsers = $this->entityTypeManager->getStorage('epal_users')->loadByProperties(array('authtoken' => $authToken)); $epalUsers = $this->entityTypeManager->getStorage('epal_users')->loadByProperties(array('authtoken' => $authToken));
$epalUser = reset($epalUsers); $epalUser = reset($epalUsers);
if ($epalUser) { if ($epalUser) {
$userid = $epalUser -> user_id -> entity ->id(); $userid = $epalUser -> id();
$epalStudents = $this->entityTypeManager->getStorage('epal_student')->loadByProperties(array('user_id' => $userid)); $epalStudents = $this->entityTypeManager->getStorage('epal_student')->loadByProperties(array('epaluser_id' => $userid));
$epalStudent = reset($epalStudents); //$epalStudent = reset($epalStudents);
if ($epalStudent) { $i = 0;
return $this->respondWithStatus([ if ($epalStudents) {
'name' => $epalStudent ->name->value, $list = array();
'studentsurname' => $epalStudent ->studentsurname->value, foreach ($epalStudents as $object) {
], Response::HTTP_OK);
}
else { $list[] = array('name' => $object -> name ->value,
return $this->respondWithStatus([
'message' => t("EPAL user not found"),
], Response::HTTP_FORBIDDEN);
}
if ($studentid){
$StudentSelection = $this->entityTypeManager->getStorage('epal_student_epal_chosen')->loadByProperties(array('student_id' => $studentid, 'user_id' => $userid )); 'studentsurname' => $object -> studentsurname ->value);
$StudentSel = reset($StudentSelection); $i++;
if ($StudentSel) { }
return $this->respondWithStatus([
'epal_id' => $epalStudent ->epal_id->entity->getEpal_id(), return $this->respondWithStatus(
], Response::HTTP_OK); $list
, Response::HTTP_OK);
} }
else { else {
return $this->respondWithStatus([ return $this->respondWithStatus([
'message' => t("SpecificStudent not found"), 'message' => t("EPAL user not found"),
], Response::HTTP_FORBIDDEN); ], Response::HTTP_FORBIDDEN);
} }
}
} else { } else {
return $this->respondWithStatus([ return $this->respondWithStatus([
'message' => t("EPAL user not found"), 'message' => t(" user not found"),
], Response::HTTP_FORBIDDEN); ], Response::HTTP_FORBIDDEN);
} }
} }
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<img src="../myschool/assets/images/myschool_logo.png" alt="Αρχική" /> <img src="../myschool/assets/images/myschool_logo.png" alt="Αρχική" />
</a> </a>
<div class="collapse navbar-collapse flex-row-reverse" id="navbarNav"> <div class="collapse navbar-collapse flex-row-reverse" id="navbarNav">
<div *ngFor="let loginInfoToken$ of loginInfo$ | async; let i=index"></div> <div *ngFor="let loginInfoToken$ of loginInfo$ | async; let i=index "></div>
<ul class="navbar-nav"> <ul class="navbar-nav">
<div *ngFor="let username$ of loginInfo$ | async;"> <div *ngFor="let username$ of loginInfo$ | async;">
...@@ -21,42 +21,17 @@ ...@@ -21,42 +21,17 @@
<i class="fa fa-sign-out"></i> <i class="fa fa-sign-out"></i>
</button> </button>
</div> </div>
<div class="pull-right" class="nav-item" [ngClass]="{active: path=='submited-preview'}">
<a class="nav-link" [routerLink]="['/submited-preview']" [routerLinkActive]="['active']"><b>Υποβληθείσες αιτήσεις</b></a>
</div>
</div>
<!--
<li class="nav-item" [ngClass]="{active: path=='application-preview'}">
<a class="nav-link" [routerLink]="['/application-preview']" [routerLinkActive]="['active']">Προεπισκόπηση</a>
</li>
<li class="nav-item" [ngClass]="{active: path=='amka-fill'}">
<a class="nav-link" [routerLink]="['/amka-fill']" [routerLinkActive]="['active']">ΑΜΚΑ ΜΑΘΗΤΗ</a>
</li>
<li class="nav-item" [ngClass]="{active: path=='epal-class-select'}">
<a class="nav-link" [routerLink]="['/epal-class-select']" [routerLinkActive]="['active']">Τάξη</a>
</li>
<li class="nav-item" [ngClass]="{active: path=='sector-fields-select'}">
<a class="nav-link" [routerLink]="['/sector-fields-select']" [routerLinkActive]="['active']">Τομεας</a>
</li>
<li class="nav-item" [ngClass]="{active: path=='sectorcourses-fields-select'}">
<a class="nav-link" [routerLink]="['/sectorcourses-fields-select']" [routerLinkActive]="['active']">Ειδικοτητα</a>
</li>
<li class="nav-item" [ngClass]="{active: path=='region-schools-select'}">
<a class="nav-link" [routerLink]="['/region-schools-select']" [routerLinkActive]="['active']">Σχολειο</a>
</li>
<li class="nav-item" [ngClass]="{active: path=='student-application-form-main'}">
<a class="nav-link" [routerLink]="['/student-application-form-main']" [routerLinkActive]="['active']">Αιτηση</a>
</li>
-->
<!-- </div>
<li class="nav-item" [ngClass]="{active: path=='schools-order-select'}">
<a class="nav-link" [routerLink]="['/schools-order-select']" [routerLinkActive]="['active']">Σειρά επιλογής</a>
</li>
-->
</ul> </ul>
</div> </div>
<div class="pull-right" class="nav-item" [ngClass]="{active: path=='submited-preview'}">
<a class="nav-link" [routerLink]="['/submited-preview']" [routerLinkActive]="['active']"><b>Υποβληθείσες αιτήσεις</b></a>
</div>
</nav> </nav>
</div> </div>
</div> </div>
import { Component, OnInit, ElementRef, ViewChild} from "@angular/core"; import { Component, OnInit, OnDestroy,ElementRef, ViewChild} from "@angular/core";
let jsPDF = require('jspdf'); let jsPDF = require('jspdf');
import { Injectable } from "@angular/core"; import { Injectable } from "@angular/core";
import { AppSettings } from '../../app.settings'; import { AppSettings } from '../../app.settings';
...@@ -6,7 +6,6 @@ import { HelperDataService } from '../../services/helper-data-service'; ...@@ -6,7 +6,6 @@ import { HelperDataService } from '../../services/helper-data-service';
import {Observable} from "rxjs/Observable"; import {Observable} from "rxjs/Observable";
import {IStudentDataFields, IStudentDataField} from '../../store/studentdatafields'; import {IStudentDataFields, IStudentDataField} from '../../store/studentdatafields';
import {Http, Headers, RequestOptions} from '@angular/http'; import {Http, Headers, RequestOptions} from '@angular/http';
import * as html2canvas from "html2canvas"
import {Removetags} from '../../pipes/removehtmltags'; import {Removetags} from '../../pipes/removehtmltags';
import { NgRedux, select } from 'ng2-redux'; import { NgRedux, select } from 'ng2-redux';
import { IAppState } from '../../store/store'; import { IAppState } from '../../store/store';
...@@ -18,66 +17,49 @@ import { BehaviorSubject, Subscription } from 'rxjs/Rx'; ...@@ -18,66 +17,49 @@ import { BehaviorSubject, Subscription } from 'rxjs/Rx';
@Component({ @Component({
selector: 'submited-preview', selector: 'submited-preview',
template: ` template: `
<div *ngFor="let userdata$ of submitedapplic$ | async">
<h5 style="margin-top: 20px; line-height: 2em; ">Έχετε ολοκληρώσει την αίτηση για εγγραφή στην επαγγελπατική εκπαίδευση των παρακάτω ατόμων:</h5> {{userdata$.name}}
<div *ngFor="let userdata$ of submitedapplic$ | async; "> </div>
<ul class="list-group left-side-view" style="margin-bottom: 20px;">
<li class="list-group-item active">
Μαθητής: {{userdata$.name}}
</li>
</ul>
</div>
<button type="submit" (click)="studentpreview()"> Λεπτομέρειες
</button>
` `
}) })
@Injectable() export default class SubmitedPreview implements OnInit { @Injectable() export default class SubmitedPreview implements OnInit , OnDestroy{
public html2canvas: any;
private submitedapplic$: BehaviorSubject<any>; private submitedapplic$: BehaviorSubject<any>;
private submitedusers$: Subscription; private submitedusersSub: Subscription;
public studentid = 1 ; public studentid = 1 ;
constructor(private _hds: HelperDataService, constructor(private _hds: HelperDataService,
public http: Http,
private _ngRedux: NgRedux<IAppState>,
private activatedRoute: ActivatedRoute, private activatedRoute: ActivatedRoute,
private router: Router ) private router: Router )
{ {
this.submitedapplic$ = new BehaviorSubject({}); this.submitedapplic$ = new BehaviorSubject([{}]);
} }
ngOnDestroy()
{
if (this.submitedusersSub)
this.submitedusersSub.unsubscribe();
}
ngOnInit() { ngOnInit() {
this.submitedusers$ = this._hds.getSubmittedPreviw(0).subscribe(this.submitedapplic$); this.submitedusersSub = this._hds.getSubmittedPreviw().subscribe(this.submitedapplic$);
console.log("subscription", this.submitedusers$, "behavior", this.submitedapplic$); this.submitedapplic$.subscribe( function (x) { console.log("I am in next"); console.log(x); }, function (err) { console.log('Error: ' + err); }, function () { console.log('Completed='); } );
} }
createPdf()
{
html2canvas(document.getElementById("target")).then(function(canvas)
{
var img = canvas.toDataURL();
var doc = new jsPDF('p', 'mm');
doc.addImage(img, 'PNG', 10, 10);
doc.save('applications.pdf');
}
);
}
studentpreview() studentpreview()
{ {
......
...@@ -6,7 +6,6 @@ import { HelperDataService } from '../../services/helper-data-service'; ...@@ -6,7 +6,6 @@ import { HelperDataService } from '../../services/helper-data-service';
import {Observable} from "rxjs/Observable"; import {Observable} from "rxjs/Observable";
import {IStudentDataFields, IStudentDataField} from '../../store/studentdatafields'; import {IStudentDataFields, IStudentDataField} from '../../store/studentdatafields';
import {Http, Headers, RequestOptions} from '@angular/http'; import {Http, Headers, RequestOptions} from '@angular/http';
import * as html2canvas from "html2canvas"
import {Removetags} from '../../pipes/removehtmltags'; import {Removetags} from '../../pipes/removehtmltags';
import { NgRedux, select } from 'ng2-redux'; import { NgRedux, select } from 'ng2-redux';
import { IAppState } from '../../store/store'; import { IAppState } from '../../store/store';
...@@ -66,26 +65,11 @@ import { BehaviorSubject, Subscription } from 'rxjs/Rx'; ...@@ -66,26 +65,11 @@ import { BehaviorSubject, Subscription } from 'rxjs/Rx';
} }
}); });
this.submitedusers$ = this._hds.getSubmittedPreviw(this.userid).subscribe(this.submitedapplic$);
console.log("subscription", this.submitedusers$, "behavior", this.submitedapplic$);
} }
createPdf()
{
html2canvas(document.getElementById("target")).then(function(canvas)
{
var img = canvas.toDataURL();
var doc = new jsPDF('p', 'mm');
doc.addImage(img, 'PNG', 10, 10);
doc.save('applications.pdf');
}
);
}
} }
\ No newline at end of file
...@@ -333,7 +333,7 @@ transformUserSchema(userlogin:any,oauthtoken:string, oauthrole:string){ ...@@ -333,7 +333,7 @@ transformUserSchema(userlogin:any,oauthtoken:string, oauthrole:string){
getSubmittedPreviw(stud_id) { getSubmittedPreviw() {
this.loginInfo$.forEach(loginInfoToken => { this.loginInfo$.forEach(loginInfoToken => {
this.authToken = loginInfoToken.get(0).auth_token; this.authToken = loginInfoToken.get(0).auth_token;
...@@ -343,9 +343,13 @@ transformUserSchema(userlogin:any,oauthtoken:string, oauthrole:string){ ...@@ -343,9 +343,13 @@ transformUserSchema(userlogin:any,oauthtoken:string, oauthrole:string){
}); });
this.createAuthorizationHeader(headers); this.createAuthorizationHeader(headers);
let options = new RequestOptions({ headers: headers }); let options = new RequestOptions({ headers: headers });
return this.http.get(`${AppSettings.API_ENDPOINT}/epal/subapplic`, options , {params:{"param1": stud_id}}) return this.http.get(`${AppSettings.API_ENDPOINT}/epal/subapplic`, options )
.map(response => response.json()); .map(response => response.json());
} }
} }
"use strict";
const immutable_1 = require("immutable");
// export const INITIAL_STATE = List<ICourseField>([new CourseFieldRecord({})]);
exports.INITIAL_STATE = immutable_1.List();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY291cnNlZmllbGRzLmluaXRpYWwtc3RhdGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJjb3Vyc2VmaWVsZHMuaW5pdGlhbC1zdGF0ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEseUNBQWlDO0FBR2pDLGdGQUFnRjtBQUNuRSxRQUFBLGFBQWEsR0FBRyxnQkFBSSxFQUFnQixDQUFDIn0=
\ No newline at end of file
"use strict";
const coursefields_initial_state_1 = require("./coursefields.initial-state");
const immutable_1 = require("immutable");
const constants_1 = require("../../constants");
function courseFieldsReducer(state = coursefields_initial_state_1.INITIAL_STATE, action) {
switch (action.type) {
case constants_1.COURSEFIELDS_RECEIVED:
let newCourseFields = Array();
let i = 0;
action.payload.courseFields.forEach(courseField => {
newCourseFields.push({ id: courseField.id, name: courseField.name, selected: false });
i++;
});
return immutable_1.Seq(newCourseFields).map(n => n).toList();
case constants_1.COURSEFIELDS_SELECTED_SAVE:
let selectedCourseFields = Array();
let ind = 0;
state.forEach(courseField => {
selectedCourseFields.push({ id: courseField.id, name: courseField.name, selected: action.payload.courseFieldsSelected[ind] });
ind++;
});
return immutable_1.Seq(selectedCourseFields).map(n => n).toList();
default: return state;
}
}
exports.courseFieldsReducer = courseFieldsReducer;
;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY291cnNlZmllbGRzLnJlZHVjZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJjb3Vyc2VmaWVsZHMucmVkdWNlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQ0EsNkVBQTZEO0FBQzdELHlDQUFnQztBQUVoQywrQ0FHeUI7QUFFekIsNkJBQW9DLFFBQXVCLDBDQUFhLEVBQUUsTUFBTTtJQUM5RSxNQUFNLENBQUMsQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQztRQUNwQixLQUFLLGlDQUFxQjtZQUN0QixJQUFJLGVBQWUsR0FBRyxLQUFLLEVBQWdCLENBQUM7WUFDNUMsSUFBSSxDQUFDLEdBQUMsQ0FBQyxDQUFDO1lBQ1IsTUFBTSxDQUFDLE9BQU8sQ0FBQyxZQUFZLENBQUMsT0FBTyxDQUFDLFdBQVc7Z0JBQzNDLGVBQWUsQ0FBQyxJQUFJLENBQWUsRUFBQyxFQUFFLEVBQUUsV0FBVyxDQUFDLEVBQUUsRUFBRSxJQUFJLEVBQUUsV0FBVyxDQUFDLElBQUksRUFBRSxRQUFRLEVBQUUsS0FBSyxFQUFDLENBQUMsQ0FBQztnQkFDbEcsQ0FBQyxFQUFFLENBQUM7WUFDUixDQUFDLENBQUMsQ0FBQztZQUNILE1BQU0sQ0FBQyxlQUFHLENBQUMsZUFBZSxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxNQUFNLEVBQUUsQ0FBQztRQUNyRCxLQUFLLHNDQUEwQjtZQUMzQixJQUFJLG9CQUFvQixHQUFHLEtBQUssRUFBZ0IsQ0FBQztZQUNqRCxJQUFJLEdBQUcsR0FBQyxDQUFDLENBQUM7WUFDVixLQUFLLENBQUMsT0FBTyxDQUFDLFdBQVc7Z0JBQ3JCLG9CQUFvQixDQUFDLElBQUksQ0FBZSxFQUFDLEVBQUUsRUFBRSxXQUFXLENBQUMsRUFBRSxFQUFFLElBQUksRUFBRSxXQUFXLENBQUMsSUFBSSxFQUFFLFFBQVEsRUFBRSxNQUFNLENBQUMsT0FBTyxDQUFDLG9CQUFvQixDQUFDLEdBQUcsQ0FBQyxFQUFDLENBQUMsQ0FBQztnQkFDMUksR0FBRyxFQUFFLENBQUM7WUFDVixDQUFDLENBQUMsQ0FBQztZQUNILE1BQU0sQ0FBQyxlQUFHLENBQUMsb0JBQW9CLENBQUMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLE1BQU0sRUFBRSxDQUFDO1FBQzFELFNBQVMsTUFBTSxDQUFDLEtBQUssQ0FBQztJQUN4QixDQUFDO0FBQ0gsQ0FBQztBQXBCRCxrREFvQkM7QUFBQSxDQUFDIn0=
\ No newline at end of file
"use strict";
function deimmutifyCourseFields(state) {
let fetchedCourseFields = new Array();
state.forEach(courseField => {
fetchedCourseFields.push({ id: courseField.id, name: courseField.name, selected: courseField.selected });
});
return fetchedCourseFields;
}
exports.deimmutifyCourseFields = deimmutifyCourseFields;
;
/* export function reimmutifyCourseFields(plain): ICourseFields {
return List<ICourseField>(plain ? plain.map(CourseFieldRecord) : []);
} */
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY291cnNlZmllbGRzLnRyYW5zZm9ybWVycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImNvdXJzZWZpZWxkcy50cmFuc2Zvcm1lcnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUVBLGdDQUF1QyxLQUFvQjtJQUN2RCxJQUFJLG1CQUFtQixHQUFHLElBQUksS0FBSyxFQUFFLENBQUM7SUFDdEMsS0FBSyxDQUFDLE9BQU8sQ0FBQyxXQUFXO1FBQ3JCLG1CQUFtQixDQUFDLElBQUksQ0FBZSxFQUFDLEVBQUUsRUFBRSxXQUFXLENBQUMsRUFBRSxFQUFFLElBQUksRUFBRSxXQUFXLENBQUMsSUFBSSxFQUFFLFFBQVEsRUFBRSxXQUFXLENBQUMsUUFBUSxFQUFDLENBQUMsQ0FBQztJQUN6SCxDQUFDLENBQUMsQ0FBQztJQUNILE1BQU0sQ0FBQyxtQkFBbUIsQ0FBQztBQUMvQixDQUFDO0FBTkQsd0RBTUM7QUFBQSxDQUFDO0FBRUY7O0lBRUkifQ==
\ No newline at end of file
"use strict";
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY291cnNlZmllbGRzLnR5cGVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiY291cnNlZmllbGRzLnR5cGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
\ No newline at end of file
"use strict";
const coursefields_reducer_1 = require("./coursefields.reducer");
exports.courseFieldsReducer = coursefields_reducer_1.courseFieldsReducer;
const coursefields_transformers_1 = require("./coursefields.transformers");
exports.deimmutifyCourseFields = coursefields_transformers_1.deimmutifyCourseFields;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQ0EsaUVBQTZEO0FBTTNELHlFQUFtQjtBQUxyQiwyRUFBcUU7QUFNbkUsb0ZBQXNCIn0=
\ No newline at end of file
"use strict";
const immutable_1 = require("immutable");
exports.CRITERIA_INITIAL_STATE = immutable_1.List();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JpdGVyaWEuaW5pdGlhbC1zdGF0ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImNyaXRlcmlhLmluaXRpYWwtc3RhdGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHlDQUFpQztBQUlwQixRQUFBLHNCQUFzQixHQUFHLGdCQUFJLEVBQWEsQ0FBQyJ9
\ No newline at end of file
"use strict";
const criteria_initial_state_1 = require("./criteria.initial-state");
const immutable_1 = require("immutable");
const constants_1 = require("../../constants");
function criteriaReducer(state = criteria_initial_state_1.CRITERIA_INITIAL_STATE, action) {
switch (action.type) {
case constants_1.CRITERIA_RECEIVED:
let newCriter = Array();
let i = 0;
action.payload.criteria.forEach(criteria => {
newCriter.push({ id: criteria.id, name: criteria.name, mutual_disabled_id: criteria.mutual_disabled_id, selected: false });
i++;
});
return immutable_1.Seq(newCriter).map(n => n).toList();
case constants_1.CRITERIA_SAVE:
let criter = Array();
let ind = 0;
state.forEach(criteria => {
criter.push({ id: criteria.id, name: criteria.name, mutual_disabled_id: criteria.mutual_disabled_id, selected: action.payload.criter[0][ind] });
ind++;
});
return immutable_1.Seq(criter).map(n => n).toList();
default: return state;
}
}
exports.criteriaReducer = criteriaReducer;
;
/*
case COURSEFIELDS_SELECTED_SAVE:
let selectedCourseFields = Array<ICourseField>();
let ind=0;
state.forEach(courseField => {
selectedCourseFields.push(<ICourseField>{id: courseField.id, name: courseField.name, selected: action.payload.courseFieldsSelected[ind]});
ind++;
});
return Seq(selectedCourseFields).map(n => n).toList();
default: return state;
*/
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JpdGVyaWEucmVkdWNlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImNyaXRlcmlhLnJlZHVjZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUNBLHFFQUFrRTtBQUNsRSx5Q0FBZ0M7QUFFaEMsK0NBR3lCO0FBRXpCLHlCQUFnQyxRQUFpQiwrQ0FBc0IsRUFBRSxNQUFNO0lBQzdFLE1BQU0sQ0FBQyxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDO1FBQ3BCLEtBQUssNkJBQWlCO1lBQ2xCLElBQUksU0FBUyxHQUFHLEtBQUssRUFBYSxDQUFDO1lBQ25DLElBQUksQ0FBQyxHQUFDLENBQUMsQ0FBQztZQUNSLE1BQU0sQ0FBQyxPQUFPLENBQUMsUUFBUSxDQUFDLE9BQU8sQ0FBQyxRQUFRO2dCQUNwQyxTQUFTLENBQUMsSUFBSSxDQUFZLEVBQUMsRUFBRSxFQUFFLFFBQVEsQ0FBQyxFQUFFLEVBQUUsSUFBSSxFQUFFLFFBQVEsQ0FBQyxJQUFJLEVBQUUsa0JBQWtCLEVBQUUsUUFBUSxDQUFDLGtCQUFrQixFQUFFLFFBQVEsRUFBRyxLQUFLLEVBQUMsQ0FBQyxDQUFDO2dCQUNySSxDQUFDLEVBQUUsQ0FBQztZQUNSLENBQUMsQ0FBQyxDQUFDO1lBQ0gsTUFBTSxDQUFDLGVBQUcsQ0FBQyxTQUFTLENBQUMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLE1BQU0sRUFBRSxDQUFDO1FBRS9DLEtBQUsseUJBQWE7WUFDZCxJQUFJLE1BQU0sR0FBRyxLQUFLLEVBQWEsQ0FBQztZQUNoQyxJQUFJLEdBQUcsR0FBQyxDQUFDLENBQUM7WUFDVixLQUFLLENBQUMsT0FBTyxDQUFDLFFBQVE7Z0JBQ2xCLE1BQU0sQ0FBQyxJQUFJLENBQVksRUFBQyxFQUFFLEVBQUUsUUFBUSxDQUFDLEVBQUUsRUFBRSxJQUFJLEVBQUUsUUFBUSxDQUFDLElBQUksRUFBRSxrQkFBa0IsRUFBRSxRQUFRLENBQUMsa0JBQWtCLEVBQUUsUUFBUSxFQUFFLE1BQU0sQ0FBQyxPQUFPLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxFQUFDLENBQUMsQ0FBQztnQkFDekosR0FBRyxFQUFFLENBQUM7WUFDVixDQUFDLENBQUMsQ0FBQztZQUVILE1BQU0sQ0FBQyxlQUFHLENBQUMsTUFBTSxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxNQUFNLEVBQUUsQ0FBQztRQUM1QyxTQUFTLE1BQU0sQ0FBQyxLQUFLLENBQUM7SUFDeEIsQ0FBQztBQUNILENBQUM7QUF0QkQsMENBc0JDO0FBQUEsQ0FBQztBQUNGOzs7Ozs7Ozs7O0VBVUUifQ==
\ No newline at end of file
"use strict";
function deimmutifyCriteria(state) {
let fetchedCriteria = new Array();
state.forEach(criteria => {
fetchedCriteria.push({ id: criteria.id, name: criteria.name, mutual_disabled_id: criteria.mutual_disabled_id, selected: criteria.selected,
});
});
return fetchedCriteria;
}
exports.deimmutifyCriteria = deimmutifyCriteria;
;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JpdGVyaWEudHJhbnNmb3JtZXJzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiY3JpdGVyaWEudHJhbnNmb3JtZXJzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFFQSw0QkFBbUMsS0FBYztJQUM3QyxJQUFJLGVBQWUsR0FBRyxJQUFJLEtBQUssRUFBRSxDQUFDO0lBRWxDLEtBQUssQ0FBQyxPQUFPLENBQUMsUUFBUTtRQUNsQixlQUFlLENBQUMsSUFBSSxDQUFZLEVBQUMsRUFBRSxFQUFFLFFBQVEsQ0FBQyxFQUFFLEVBQUUsSUFBSSxFQUFFLFFBQVEsQ0FBQyxJQUFJLEVBQUcsa0JBQWtCLEVBQUUsUUFBUSxDQUFDLGtCQUFrQixFQUFFLFFBQVEsRUFBRSxRQUFRLENBQUMsUUFBUTtTQUNuSixDQUFDLENBQUM7SUFDUCxDQUFDLENBQUMsQ0FBQztJQUNILE1BQU0sQ0FBQyxlQUFlLENBQUM7QUFDM0IsQ0FBQztBQVJELGdEQVFDO0FBQUEsQ0FBQyJ9
\ No newline at end of file
"use strict";
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JpdGVyaWEudHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJjcml0ZXJpYS50eXBlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
\ No newline at end of file
"use strict";
const criteria_reducer_1 = require("./criteria.reducer");
exports.criteriaReducer = criteria_reducer_1.criteriaReducer;
const criteria_transformers_1 = require("./criteria.transformers");
exports.deimmutifyCriteria = criteria_transformers_1.deimmutifyCriteria;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQ0EseURBQXFEO0FBTW5ELDZEQUFlO0FBTGpCLG1FQUE2RDtBQU0zRCx3RUFBa0IifQ==
\ No newline at end of file
"use strict";
const immutable_1 = require("immutable");
exports.EPALCLASSES_INITIAL_STATE = immutable_1.List();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXBhbGNsYXNzZXMuaW5pdGlhbC1zdGF0ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImVwYWxjbGFzc2VzLmluaXRpYWwtc3RhdGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHlDQUFpQztBQUlwQixRQUFBLHlCQUF5QixHQUFHLGdCQUFJLEVBQWMsQ0FBQyJ9
\ No newline at end of file
"use strict";
const epalclasses_initial_state_1 = require("./epalclasses.initial-state");
const immutable_1 = require("immutable");
const constants_1 = require("../../constants");
function epalclassesReducer(state = epalclasses_initial_state_1.EPALCLASSES_INITIAL_STATE, action) {
switch (action.type) {
case constants_1.EPALCLASSES_SAVE:
let selectedEpalClasses = Array();
selectedEpalClasses.push({ name: action.payload.epalClasses.name });
return immutable_1.Seq(selectedEpalClasses).map(n => n).toList();
default: return state;
}
}
exports.epalclassesReducer = epalclassesReducer;
;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXBhbGNsYXNzZXMucmVkdWNlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImVwYWxjbGFzc2VzLnJlZHVjZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUNBLDJFQUF3RTtBQUN4RSx5Q0FBZ0M7QUFFaEMsK0NBQW1EO0FBRW5ELDRCQUFtQyxRQUFzQixxREFBeUIsRUFBRSxNQUFNO0lBR3hGLE1BQU0sQ0FBQyxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDO1FBR3BCLEtBQUssNEJBQWdCO1lBQ2pCLElBQUksbUJBQW1CLEdBQUcsS0FBSyxFQUFjLENBQUM7WUFFOUMsbUJBQW1CLENBQUMsSUFBSSxDQUFhLEVBQUUsSUFBSSxFQUFFLE1BQU0sQ0FBQyxPQUFPLENBQUMsV0FBVyxDQUFDLElBQUksRUFBQyxDQUFDLENBQUM7WUFHL0UsTUFBTSxDQUFDLGVBQUcsQ0FBQyxtQkFBbUIsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsTUFBTSxFQUFFLENBQUM7UUFDekQsU0FBUyxNQUFNLENBQUMsS0FBSyxDQUFDO0lBQ3hCLENBQUM7QUFDSCxDQUFDO0FBZkQsZ0RBZUM7QUFBQSxDQUFDIn0=
\ No newline at end of file
"use strict";
function deimmutifyEpalClasses(state) {
let fetchedEpalClasses = new Array();
state.forEach(epalclass => {
fetchedEpalClasses.push({ name: epalclass.name });
});
return fetchedEpalClasses;
}
exports.deimmutifyEpalClasses = deimmutifyEpalClasses;
;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXBhbGNsYXNzZXMudHJhbnNmb3JtZXJzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZXBhbGNsYXNzZXMudHJhbnNmb3JtZXJzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFFQSwrQkFBc0MsS0FBbUI7SUFDckQsSUFBSSxrQkFBa0IsR0FBRyxJQUFJLEtBQUssRUFBRSxDQUFDO0lBQ3JDLEtBQUssQ0FBQyxPQUFPLENBQUMsU0FBUztRQUNuQixrQkFBa0IsQ0FBQyxJQUFJLENBQWEsRUFBQyxJQUFJLEVBQUUsU0FBUyxDQUFDLElBQUksRUFBQyxDQUFDLENBQUM7SUFDaEUsQ0FBQyxDQUFDLENBQUM7SUFDSCxNQUFNLENBQUMsa0JBQWtCLENBQUM7QUFDOUIsQ0FBQztBQU5ELHNEQU1DO0FBQUEsQ0FBQyJ9
\ No newline at end of file
"use strict";
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXBhbGNsYXNzZXMudHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJlcGFsY2xhc3Nlcy50eXBlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
\ No newline at end of file
"use strict";
const epalclasses_reducer_1 = require("./epalclasses.reducer");
exports.epalclassesReducer = epalclasses_reducer_1.epalclassesReducer;
const epalclasses_transformers_1 = require("./epalclasses.transformers");
exports.deimmutifyEpalClasses = epalclasses_transformers_1.deimmutifyEpalClasses;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQ0EsK0RBQTJEO0FBTXpELHNFQUFrQjtBQUxwQix5RUFBbUU7QUFNakUsaUZBQXFCIn0=
\ No newline at end of file
"use strict";
// import * as persistState from 'redux-localstorage';
const createLogger = require("redux-logger");
const store_1 = require("./store");
exports.rootReducer = store_1.rootReducer;
exports.middleware = [
createLogger({ </