Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //https://digitalcampus.uitm.edu.my/api/sso/login
- //https://digitalcampus.uitm.edu.my/api/sso/loggedIn
- //https://digitalcampus.uitm.edu.my/api/sso/logout
- //https://digitalcampus.uitm.edu.my/api/picture
- //https://digitalcampus.uitm.edu.my/api/ilearn/student_course_list
- //https://digitalcampus.uitm.edu.my/api/ilearn/sufo/list
- webpackJsonp([0], {
- 165: function(n, l) {
- function t(n) {
- return Promise.resolve().then(function() {
- throw new Error("Cannot find module '" + n + "'.")
- })
- }
- t.keys = function() {
- return []
- }, t.resolve = t, n.exports = t, t.id = 165
- },
- 195: function(n, l) {
- function t(n) {
- return Promise.resolve().then(function() {
- throw new Error("Cannot find module '" + n + "'.")
- })
- }
- t.keys = function() {
- return []
- }, t.resolve = t, n.exports = t, t.id = 195
- },
- 229: function(n, l, t) {
- "use strict";
- function u(n) {
- n.prototype.ionViewCanEnter = function() {
- return this.isAuth = this.injector.get(rn).isAuthenticated(), this.isAuth || !0
- }
- }
- function e(n, l) {
- switch (void 0 === n && (n = Kn), l.type) {
- case F.CHECK_AUTH:
- case F.CHECK_AUTH_SUCCESS:
- return !0;
- case F.CHECK_AUTH_NO_USER:
- return !1;
- case F.LOGIN:
- return !0;
- case F.LOGIN_SUCCESS:
- case F.LOGIN_FAIL:
- return !1;
- case F.LOGOUT:
- case F.LOGOUT_SUCCESS:
- case F.LOGOUT_FAIL:
- return !0;
- case F.TOKEN_DELETE:
- return !1;
- case F.GET_PICTURE:
- return !0;
- case F.GET_PICTURE_SUCCESS:
- case F.GET_PICTURE_CACHE:
- case xn.ERROR_DISPLAY:
- return !1;
- default:
- return n
- }
- }
- function o(n, l) {
- switch (void 0 === n && (n = $n), console.log("LOADED REDUCER-> ", l), l.type) {
- case F.CHECK_AUTH_SUCCESS:
- return !1;
- case F.CHECK_AUTH_NO_USER:
- return !0;
- case F.LOGIN:
- return !1;
- case F.LOGIN_SUCCESS:
- case F.LOGIN_FAIL:
- return !0;
- case F.LOGOUT:
- case F.LOGOUT_SUCCESS:
- case F.LOGOUT_FAIL:
- return !1;
- case F.TOKEN_DELETE:
- return !0;
- case F.GET_PICTURE:
- return !1;
- case F.GET_PICTURE_SUCCESS:
- case F.GET_PICTURE_CACHE:
- return !0;
- case F.ERROR:
- return !1;
- default:
- return n
- }
- }
- function a(n, l) {
- switch (void 0 === n && (n = qn), l.type) {
- case F.LOGIN_SUCCESS:
- return Object.assign({}, qn);
- default:
- return n
- }
- }
- function i(n, l) {
- switch (void 0 === n && (n = Hn), l.type) {
- case F.ERROR:
- return console.log("action.payload->", l.payload), Object.assign(l.payload);
- case xn.ERROR_DISPLAY_SUCCESS:
- return console.log("intitialState->", Hn), Hn;
- default:
- return n
- }
- }
- function r(n, l) {
- switch (void 0 === n && (n = Jn), console.log("AUTH REDUCER -> " + l.type), l.type) {
- case F.LOGIN_SUCCESS:
- case F.CHECK_AUTH_SUCCESS:
- return console.log(n, l.payload), !0;
- case F.ERROR:
- return console.log(n, l.payload), !1;
- case F.LOGOUT_SUCCESS:
- return console.log(n, l.payload), Object.assign(Jn);
- case F.GET_PICTURE_SUCCESS:
- return !0;
- default:
- return n
- }
- }
- function s(n, l) {
- switch (void 0 === n && (n = Xn), console.log("CURR REDUCER-> ", l.type), l.type) {
- case F.LOGIN_SUCCESS:
- return Object.assign({}, n);
- case F.CHECK_AUTH_SUCCESS:
- return Object.assign({}, n, l.payload);
- case F.TOKEN_DELETE:
- case F.LOGOUT_SUCCESS:
- case F.LOGOUT_FAIL:
- return Xn;
- default:
- return n
- }
- }
- function c(n) {
- return L._24(0, [L._21(402653184, 1, {
- nav: 0
- }), (n()(), L._4(1, 0, null, null, 2, "ion-nav", [
- ["id", "rootpage"],
- ["swipeBackEnabled", "false"]
- ], null, null, null, cl.b, cl.a)), L._20(6144, null, _l.a, null, [hl.a]), L._3(3, 4374528, [
- [1, 4],
- ["content", 4]
- ], 0, hl.a, [
- [2, pl.a],
- [2, fl.a], dl.a, gl.a, bl.a, L.l, L.y, L.E, L.j, ml.l, vl.a, [2, El.a], yl.a, L.m
- ], {
- swipeBackEnabled: [0, "swipeBackEnabled"],
- root: [1, "root"]
- }, null)], function(n, l) {
- n(l, 3, 0, "false", l.component.rootPage)
- }, null)
- }
- function _(n) {
- return L._24(0, [(n()(), L._4(0, 0, null, null, 31, "ion-content", [
- ["class", "bg-image no-scroll"],
- ["padding", ""]
- ], [
- [2, "statusbar-padding", null],
- [2, "has-refresher", null]
- ], null, null, Tl.b, Tl.a)), L._3(1, 4374528, null, 0, wl.a, [gl.a, bl.a, yl.a, L.l, L.E, dl.a, kl.a, L.y, [2, pl.a],
- [2, fl.a]
- ], null, null), (n()(), L._23(-1, 1, ["\n "])), (n()(), L._4(3, 0, null, 1, 0, "div", [
- ["class", "logo-uitm"]
- ], null, null, null, null, null)), (n()(), L._23(-1, 1, ["\n "])), (n()(), L._4(5, 0, null, 1, 15, "ion-grid", [
- ["class", "grid"]
- ], null, null, null, null, null)), L._3(6, 16384, null, 0, Rl.a, [], null, null), (n()(), L._23(-1, null, ["\n "])), (n()(), L._4(8, 0, null, null, 11, "ion-row", [
- ["class", "row"]
- ], null, null, null, null, null)), L._3(9, 16384, null, 0, Ul.a, [], null, null), (n()(), L._23(-1, null, ["\n "])), (n()(), L._4(11, 0, null, null, 7, "ion-col", [
- ["class", "col"]
- ], null, null, null, null, null)), L._3(12, 16384, null, 0, Ll.a, [], null, null), (n()(), L._23(-1, null, ["\n "])), (n()(), L._4(14, 0, null, null, 3, "div", [
- ["class", "center"]
- ], null, null, null, null, null)), (n()(), L._23(-1, null, ["\n "])), (n()(), L._4(16, 0, null, null, 0, "img", [
- ["class", "app"],
- ["src", "assets/img/icon-digital.png"]
- ], null, null, null, null, null)), (n()(), L._23(-1, null, ["\n "])), (n()(), L._23(-1, null, ["\n "])), (n()(), L._23(-1, null, ["\n "])), (n()(), L._23(-1, null, ["\n "])), (n()(), L._23(-1, 1, ["\n "])), (n()(), L._4(22, 0, null, 1, 8, "div", [
- ["class", "loginbtn"],
- ["text-center", ""]
- ], null, null, null, null, null)), (n()(), L._23(-1, null, ["\n "])), (n()(), L._4(24, 0, null, null, 1, "div", [
- ["class", "text"]
- ], null, null, null, null, null)), (n()(), L._23(-1, null, ["You will redirect to UiTM Digital Apps for login."])), (n()(), L._23(-1, null, ["\n "])), (n()(), L._4(27, 0, null, null, 2, "button", [
- ["class", "btnWidth"],
- ["color", "secondary"],
- ["ion-button", ""],
- ["round", ""]
- ], null, [
- [null, "click"]
- ], function(n, l, t) {
- var u = !0;
- if ("click" === l) {
- u = !1 !== n.component.onDeeplink() && u
- }
- return u
- }, Il.b, Il.a)), L._3(28, 1097728, null, 0, Pl.a, [
- [8, ""], gl.a, L.l, L.E
- ], {
- color: [0, "color"],
- round: [1, "round"]
- }, null), (n()(), L._23(-1, 0, ["Continue"])), (n()(), L._23(-1, null, ["\n "])), (n()(), L._23(-1, 1, ["\n "])), (n()(), L._23(-1, null, ["\n "]))], function(n, l) {
- n(l, 28, 0, "secondary", "")
- }, function(n, l) {
- n(l, 0, 0, L._18(l, 1).statusbarPadding, L._18(l, 1)._hasRefresher)
- })
- }
- function h(n) {
- return L._24(0, [(n()(), L._4(0, 0, null, null, 23, "ion-item", [
- ["class", "item item-block"],
- ["color", "secondheader"]
- ], null, null, null, Dl.b, Dl.a)), L._3(1, 1097728, null, 3, Kl.a, [$l.a, gl.a, L.l, L.E, [2, ql.a]], {
- color: [0, "color"]
- }, null), L._21(335544320, 2, {
- contentLabel: 0
- }), L._21(603979776, 3, {
- _buttons: 1
- }), L._21(603979776, 4, {
- _icons: 1
- }), L._3(5, 16384, null, 0, Hl.a, [], null, null), (n()(), L._23(-1, 2, ["\n "])), (n()(), L._4(7, 0, null, 0, 4, "ion-thumbnail", [
- ["item-start", ""]
- ], null, null, null, null, null)), L._3(8, 16384, null, 0, Ml.a, [], null, null), (n()(), L._23(-1, null, ["\n "])), (n()(), L._4(10, 0, null, null, 0, "img", [
- ["style", "border-radius: 8px;"]
- ], [
- [8, "src", 4]
- ], null, null, null, null)), (n()(), L._23(-1, null, ["\n "])), (n()(), L._23(-1, 2, ["\n \n "])), (n()(), L._4(13, 0, null, 2, 1, "h2", [
- ["text-wrap", ""]
- ], null, null, null, null, null)), (n()(), L._23(14, null, ["", ""])), (n()(), L._23(-1, 2, ["\n "])), (n()(), L._4(16, 0, null, 2, 1, "p", [
- ["text-wrap", ""]
- ], null, null, null, null, null)), (n()(), L._23(17, null, ["", ""])), (n()(), L._23(-1, 2, ["\n "])), (n()(), L._23(-1, 2, ["\n "])), (n()(), L._23(-1, 2, ["\n "])), (n()(), L._4(21, 0, null, 4, 0, "p", [
- ["item-end", ""]
- ], null, null, null, null, null)), (n()(), L._23(-1, 2, ["\n \n "])), (n()(), L._23(-1, 2, ["\n "]))], function(n, l) {
- n(l, 1, 0, "secondheader")
- }, function(n, l) {
- var t = l.component;
- n(l, 10, 0, L._7(1, "data:image/jpg;base64,", t.picture, ""));
- n(l, 14, 0, t.studentcourselist.info.fullname);
- n(l, 17, 0, t.studentcourselist.info.cgu_userid)
- })
- }
- function p(n) {
- return L._24(0, [(n()(), L._4(0, 0, null, null, 8, "div", [
- ["class", "no-sufo-view"]
- ], null, null, null, null, null)), (n()(), L._23(-1, null, ["\n "])), (n()(), L._4(2, 0, null, null, 0, "img", [
- ["src", "assets/img/close.png"]
- ], null, null, null, null, null)), (n()(), L._23(-1, null, ["\n "])), (n()(), L._4(4, 0, null, null, 3, "h4", [
- ["ion-text", ""],
- ["padding", ""],
- ["text-center", ""]
- ], null, null, null, null, null)), L._3(5, 16384, null, 0, Fl.a, [gl.a, L.l, L.E], null, null), (n()(), L._4(6, 0, null, null, 1, "i", [], null, null, null, null, null)), (n()(), L._23(-1, null, ["SuFO has been closed."])), (n()(), L._23(-1, null, ["\n "]))], null, null)
- }
- function f(n) {
- return L._24(0, [(n()(), L._4(0, 0, null, null, 23, "div", [], null, null, null, null, null)), (n()(), L._23(-1, null, ["\n "])), (n()(), L._4(2, 0, null, null, 20, "ion-card", [], null, [
- [null, "click"]
- ], function(n, l, t) {
- var u = !0;
- if ("click" === l) {
- u = !1 !== n.component.sufostart(n.parent.context.$implicit) && u
- }
- return u
- }, null, null)), L._3(3, 16384, null, 0, Yl.a, [gl.a, L.l, L.E], null, null), (n()(), L._23(-1, null, ["\n "])), (n()(), L._4(5, 0, null, null, 16, "ion-item", [
- ["class", "item item-block"]
- ], [
- [2, "statusnotcomplete", null]
- ], null, null, Dl.b, Dl.a)), L._3(6, 1097728, null, 3, Kl.a, [$l.a, gl.a, L.l, L.E, [2, ql.a]], null, null), L._21(335544320, 5, {
- contentLabel: 0
- }), L._21(603979776, 6, {
- _buttons: 1
- }), L._21(603979776, 7, {
- _icons: 1
- }), L._3(10, 16384, null, 0, Hl.a, [], null, null), (n()(), L._23(-1, 2, ["\n "])), (n()(), L._4(12, 0, null, 4, 1, "ion-icon", [
- ["color", "primary"],
- ["item-right", ""],
- ["large", ""],
- ["name", "md-arrow-dropright-circle"],
- ["padding-left", ""],
- ["role", "img"]
- ], [
- [2, "hide", null]
- ], null, null, null, null)), L._3(13, 147456, [
- [7, 4]
- ], 0, Zl.a, [gl.a, L.l, L.E], {
- color: [0, "color"],
- name: [1, "name"]
- }, null), (n()(), L._23(-1, 2, ["\n "])), (n()(), L._4(15, 0, null, 2, 1, "h2", [
- ["text-wrap", ""]
- ], null, null, null, null, null)), (n()(), L._23(16, null, ["", " - ", ""])), (n()(), L._23(-1, 2, ["\n "])), (n()(), L._4(18, 0, null, 2, 2, "p", [
- ["color", "danger"],
- ["ion-text", ""]
- ], null, null, null, null, null)), L._3(19, 16384, null, 0, Fl.a, [gl.a, L.l, L.E], {
- color: [0, "color"]
- }, null), (n()(), L._23(-1, null, ["Not Completed"])), (n()(), L._23(-1, 2, ["\n "])), (n()(), L._23(-1, null, ["\n "])), (n()(), L._23(-1, null, ["\n "]))], function(n, l) {
- n(l, 13, 0, "primary", "md-arrow-dropright-circle");
- n(l, 19, 0, "danger")
- }, function(n, l) {
- n(l, 5, 0, !0);
- n(l, 12, 0, L._18(l, 13)._hidden);
- n(l, 16, 0, l.parent.context.$implicit.cgu_courseid, l.parent.context.$implicit.name_course)
- })
- }
- function d(n) {
- return L._24(0, [(n()(), L._4(0, 0, null, null, 23, "div", [], null, null, null, null, null)), (n()(), L._23(-1, null, ["\n "])), (n()(), L._4(2, 0, null, null, 20, "ion-card", [], null, [
- [null, "click"]
- ], function(n, l, t) {
- var u = !0;
- if ("click" === l) {
- u = !1 !== n.component.giveToast(n.parent.context.$implicit.cgu_courseid) && u
- }
- return u
- }, null, null)), L._3(3, 16384, null, 0, Yl.a, [gl.a, L.l, L.E], null, null), (n()(), L._23(-1, null, ["\n "])), (n()(), L._4(5, 0, null, null, 16, "ion-item", [
- ["class", "item item-block"]
- ], [
- [2, "statuscomplete", null]
- ], null, null, Dl.b, Dl.a)), L._3(6, 1097728, null, 3, Kl.a, [$l.a, gl.a, L.l, L.E, [2, ql.a]], null, null), L._21(335544320, 8, {
- contentLabel: 0
- }), L._21(603979776, 9, {
- _buttons: 1
- }), L._21(603979776, 10, {
- _icons: 1
- }), L._3(10, 16384, null, 0, Hl.a, [], null, null), (n()(), L._23(-1, 2, ["\n "])), (n()(), L._4(12, 0, null, 4, 1, "ion-icon", [
- ["color", "tick"],
- ["item-right", ""],
- ["large", ""],
- ["name", "md-checkmark-circle"],
- ["padding-left", ""],
- ["role", "img"]
- ], [
- [2, "hide", null]
- ], null, null, null, null)), L._3(13, 147456, [
- [10, 4]
- ], 0, Zl.a, [gl.a, L.l, L.E], {
- color: [0, "color"],
- name: [1, "name"]
- }, null), (n()(), L._23(-1, 2, ["\n "])), (n()(), L._4(15, 0, null, 2, 1, "h2", [
- ["text-wrap", ""]
- ], null, null, null, null, null)), (n()(), L._23(16, null, ["", " - ", ""])), (n()(), L._23(-1, 2, ["\n "])), (n()(), L._4(18, 0, null, 2, 2, "p", [
- ["color", "tick"],
- ["ion-text", ""]
- ], null, null, null, null, null)), L._3(19, 16384, null, 0, Fl.a, [gl.a, L.l, L.E], {
- color: [0, "color"]
- }, null), (n()(), L._23(-1, null, ["Completed"])), (n()(), L._23(-1, 2, ["\n "])), (n()(), L._23(-1, null, ["\n "])), (n()(), L._23(-1, null, ["\n "]))], function(n, l) {
- n(l, 13, 0, "tick", "md-checkmark-circle");
- n(l, 19, 0, "tick")
- }, function(n, l) {
- n(l, 5, 0, !0);
- n(l, 12, 0, L._18(l, 13)._hidden);
- n(l, 16, 0, l.parent.context.$implicit.cgu_courseid, l.parent.context.$implicit.name_course)
- })
- }
- function g(n) {
- return L._24(0, [(n()(), L._4(0, 0, null, null, 7, "div", [], null, null, null, null, null)), (n()(), L._23(-1, null, ["\n "])), (n()(), L.Z(16777216, null, null, 1, null, f)), L._3(3, 16384, null, 0, Vl.i, [L.N, L.K], {
- ngIf: [0, "ngIf"]
- }, null), (n()(), L._23(-1, null, ["\n "])), (n()(), L.Z(16777216, null, null, 1, null, d)), L._3(6, 16384, null, 0, Vl.i, [L.N, L.K], {
- ngIf: [0, "ngIf"]
- }, null), (n()(), L._23(-1, null, ["\n "]))], function(n, l) {
- n(l, 3, 0, 0 == l.context.$implicit.sufo_flag);
- n(l, 6, 0, 3 == l.context.$implicit.status && 1 == l.context.$implicit.sufo_flag)
- }, null)
- }
- function b(n) {
- return L._24(0, [(n()(), L._4(0, 0, null, null, 4, "div", [], null, null, null, null, null)), (n()(), L._23(-1, null, ["\n "])), (n()(), L.Z(16777216, null, null, 1, null, g)), L._3(3, 802816, null, 0, Vl.h, [L.N, L.K, L.t], {
- ngForOf: [0, "ngForOf"]
- }, null), (n()(), L._23(-1, null, ["\n "]))], function(n, l) {
- n(l, 3, 0, l.component.studentcourselist.courses)
- }, null)
- }
- function m(n) {
- return L._24(0, [(n()(), L._4(0, 0, null, null, 44, "ion-header", [], null, null, null, null, null)), L._3(1, 16384, null, 0, Bl.a, [gl.a, L.l, L.E, [2, pl.a]], null, null), (n()(), L._23(-1, null, ["\n "])), (n()(), L._4(3, 0, null, null, 17, "ion-navbar", [
- ["class", "toolbar"],
- ["color", "secondheader"]
- ], [
- [8, "hidden", 0],
- [2, "statusbar-padding", null]
- ], null, null, Jl.b, Jl.a)), L._3(4, 49152, null, 0, Xl.a, [dl.a, [2, pl.a],
- [2, fl.a], gl.a, L.l, L.E
- ], {
- color: [0, "color"]
- }, null), (n()(), L._23(-1, 3, ["\n "])), (n()(), L._4(6, 0, null, 2, 10, "ion-buttons", [
- ["right", ""]
- ], null, null, null, null, null)), L._3(7, 16384, null, 1, zl.a, [gl.a, L.l, L.E, [2, Wl.a],
- [2, Xl.a]
- ], null, null), L._21(603979776, 1, {
- _buttons: 1
- }), (n()(), L._23(-1, null, ["\n "])), (n()(), L._4(10, 0, null, null, 5, "button", [
- ["icon-only", ""],
- ["ion-button", ""]
- ], null, [
- [null, "click"]
- ], function(n, l, t) {
- var u = !0;
- if ("click" === l) {
- u = !1 !== n.component.presentPopover(t) && u
- }
- return u
- }, Il.b, Il.a)), L._3(11, 1097728, [
- [1, 4]
- ], 0, Pl.a, [
- [8, ""], gl.a, L.l, L.E
- ], null, null), (n()(), L._23(-1, 0, ["\n "])), (n()(), L._4(13, 0, null, 0, 1, "ion-icon", [
- ["name", "more"],
- ["role", "img"]
- ], [
- [2, "hide", null]
- ], null, null, null, null)), L._3(14, 147456, null, 0, Zl.a, [gl.a, L.l, L.E], {
- name: [0, "name"]
- }, null), (n()(), L._23(-1, 0, ["\n "])), (n()(), L._23(-1, null, ["\n "])), (n()(), L._23(-1, 3, ["\n "])), (n()(), L._4(18, 0, null, 3, 1, "ion-title", [], null, null, null, Ql.b, Ql.a)), L._3(19, 49152, null, 0, nt.a, [gl.a, L.l, L.E, [2, Wl.a],
- [2, Xl.a]
- ], null, null), (n()(), L._23(-1, 3, ["\n "])), (n()(), L._23(-1, null, ["\n "])), (n()(), L._4(22, 0, null, null, 21, "ion-toolbar", [
- ["class", "toolbar"],
- ["color", "secondheader"],
- ["style", "height:110px"]
- ], [
- [2, "statusbar-padding", null]
- ], null, null, lt.b, lt.a)), L._3(23, 49152, null, 0, Wl.a, [gl.a, L.l, L.E], {
- color: [0, "color"]
- }, null), (n()(), L._23(-1, 3, ["\n "])), (n()(), L._4(25, 0, null, 3, 17, "ion-grid", [
- ["class", "grid"]
- ], null, null, null, null, null)), L._3(26, 16384, null, 0, Rl.a, [], null, null), (n()(), L._23(-1, null, ["\n "])), (n()(), L._4(28, 0, null, null, 13, "ion-row", [
- ["class", "row"]
- ], null, null, null, null, null)), L._3(29, 16384, null, 0, Ul.a, [], null, null), (n()(), L._23(-1, null, ["\n "])), (n()(), L._4(31, 0, null, null, 9, "ion-col", [
- ["class", "col"],
- ["text-left", ""]
- ], null, null, null, null, null)), L._3(32, 16384, null, 0, Ll.a, [], null, null), (n()(), L._23(-1, null, ["\n "])), (n()(), L._4(34, 0, null, null, 5, "ion-list", [], null, null, null, null, null)), L._3(35, 16384, null, 0, tt.a, [gl.a, L.l, L.E, bl.a, ml.l, yl.a], null, null), (n()(), L._23(-1, null, ["\n "])), (n()(), L.Z(16777216, null, null, 1, null, h)), L._3(38, 16384, null, 0, Vl.i, [L.N, L.K], {
- ngIf: [0, "ngIf"]
- }, null), (n()(), L._23(-1, null, ["\n "])), (n()(), L._23(-1, null, ["\n "])), (n()(), L._23(-1, null, ["\n "])), (n()(), L._23(-1, null, ["\n "])), (n()(), L._23(-1, 3, ["\n "])), (n()(), L._23(-1, null, ["\n"])), (n()(), L._23(-1, null, ["\n"])), (n()(), L._4(46, 0, null, null, 15, "ion-content", [], [
- [2, "statusbar-padding", null],
- [2, "has-refresher", null]
- ], null, null, Tl.b, Tl.a)), L._3(47, 4374528, null, 0, wl.a, [gl.a, bl.a, yl.a, L.l, L.E, dl.a, kl.a, L.y, [2, pl.a],
- [2, fl.a]
- ], null, null), (n()(), L._23(-1, 1, ["\n "])), (n()(), L._4(49, 0, null, 2, 5, "ion-refresher", [], [
- [2, "refresher-active", null],
- [4, "top", null]
- ], [
- [null, "ionRefresh"]
- ], function(n, l, t) {
- var u = !0;
- if ("ionRefresh" === l) {
- u = !1 !== n.component.loadCourse(t) && u
- }
- return u
- }, null, null)), L._3(50, 212992, null, 0, ut.a, [bl.a, wl.a, L.y, ml.l], null, {
- ionRefresh: "ionRefresh"
- }), (n()(), L._23(-1, null, ["\n "])), (n()(), L._4(52, 0, null, null, 1, "ion-refresher-content", [], [
- [1, "state", 0]
- ], null, null, et.b, et.a)), L._3(53, 114688, null, 0, ot.a, [ut.a, gl.a], null, null), (n()(), L._23(-1, null, ["\n "])), (n()(), L._23(-1, 1, ["\n "])), (n()(), L.Z(16777216, null, 1, 1, null, p)), L._3(57, 16384, null, 0, Vl.i, [L.N, L.K], {
- ngIf: [0, "ngIf"]
- }, null), (n()(), L._23(-1, 1, ["\n "])), (n()(), L.Z(16777216, null, 1, 1, null, b)), L._3(60, 16384, null, 0, Vl.i, [L.N, L.K], {
- ngIf: [0, "ngIf"]
- }, null), (n()(), L._23(-1, 1, ["\n"])), (n()(), L._23(-1, null, ["\n"]))], function(n, l) {
- var t = l.component;
- n(l, 4, 0, "secondheader");
- n(l, 14, 0, "more");
- n(l, 23, 0, "secondheader");
- n(l, 38, 0, t.studentcourselist), n(l, 50, 0), n(l, 53, 0);
- n(l, 57, 0, t.no_sufo);
- n(l, 60, 0, t.done)
- }, function(n, l) {
- n(l, 3, 0, L._18(l, 4)._hidden, L._18(l, 4)._sbPadding);
- n(l, 13, 0, L._18(l, 14)._hidden);
- n(l, 22, 0, L._18(l, 23)._sbPadding);
- n(l, 46, 0, L._18(l, 47).statusbarPadding, L._18(l, 47)._hasRefresher);
- n(l, 49, 0, "inactive" !== L._18(l, 50).state, L._18(l, 50)._top);
- n(l, 52, 0, L._18(l, 53).r.state)
- })
- }
- function v(n) {
- return L._24(0, [(n()(), L._23(-1, null, ["\n "])), (n()(), L._4(1, 0, null, null, 10, "ion-list", [], null, null, null, null, null)), L._3(2, 16384, null, 0, tt.a, [gl.a, L.l, L.E, bl.a, ml.l, yl.a], null, null), (n()(), L._23(-1, null, ["\n "])), (n()(), L._4(4, 0, null, null, 6, "button", [
- ["class", "item item-block"],
- ["ion-item", ""]
- ], null, [
- [null, "click"]
- ], function(n, l, t) {
- var u = !0;
- if ("click" === l) {
- u = !1 !== n.component.onLogout() && u
- }
- return u
- }, Dl.b, Dl.a)), L._3(5, 1097728, null, 3, Kl.a, [$l.a, gl.a, L.l, L.E, [2, ql.a]], null, null), L._21(335544320, 1, {
- contentLabel: 0
- }), L._21(603979776, 2, {
- _buttons: 1
- }), L._21(603979776, 3, {
- _icons: 1
- }), L._3(9, 16384, null, 0, Hl.a, [], null, null), (n()(), L._23(-1, 2, ["Logout"])), (n()(), L._23(-1, null, ["\n "])), (n()(), L._23(-1, null, ["\n "]))], null, null)
- }
- function E(n) {
- return L._24(0, [(n()(), L._23(-1, null, ["\n"])), (n()(), L._4(1, 0, null, null, 25, "ion-header", [], null, null, null, null, null)), L._3(2, 16384, null, 0, Bl.a, [gl.a, L.l, L.E, [2, pl.a]], null, null), (n()(), L._23(-1, null, ["\n\n "])), (n()(), L._4(4, 0, null, null, 21, "ion-navbar", [
- ["class", "toolbar"],
- ["color", "secondheader"]
- ], [
- [8, "hidden", 0],
- [2, "statusbar-padding", null]
- ], null, null, Jl.b, Jl.a)), L._3(5, 49152, null, 0, Xl.a, [dl.a, [2, pl.a],
- [2, fl.a], gl.a, L.l, L.E
- ], {
- color: [0, "color"]
- }, null), (n()(), L._23(-1, 3, ["\n \n "])), (n()(), L._4(7, 0, null, 1, 13, "ion-buttons", [
- ["start", ""]
- ], null, null, null, null, null)), L._3(8, 16384, null, 1, zl.a, [gl.a, L.l, L.E, [2, Wl.a],
- [2, Xl.a]
- ], null, null), L._21(603979776, 1, {
- _buttons: 1
- }), (n()(), L._23(-1, null, ["\n "])), (n()(), L._4(11, 0, null, null, 8, "button", [
- ["icon-only", ""],
- ["ion-button", ""],
- ["menuToggle", ""]
- ], [
- [8, "hidden", 0]
- ], [
- [null, "click"]
- ], function(n, l, t) {
- var u = !0;
- if ("click" === l) {
- u = !1 !== L._18(n, 13).toggle() && u
- }
- return u
- }, Il.b, Il.a)), L._3(12, 1097728, [
- [2, 4],
- [1, 4]
- ], 0, Pl.a, [
- [8, ""], gl.a, L.l, L.E
- ], null, null), L._3(13, 1064960, null, 0, ht.a, [pt.a, [2, pl.a],
- [2, Pl.a],
- [2, Xl.a]
- ], {
- menuToggle: [0, "menuToggle"]
- }, null), L._3(14, 16384, null, 1, zl.a, [gl.a, L.l, L.E, [2, Wl.a],
- [2, Xl.a]
- ], null, null), L._21(603979776, 2, {
- _buttons: 1
- }), (n()(), L._23(-1, 0, ["\n "])), (n()(), L._4(17, 0, null, 0, 1, "ion-icon", [
- ["name", "menu"],
- ["role", "img"]
- ], [
- [2, "hide", null]
- ], null, null, null, null)), L._3(18, 147456, null, 0, Zl.a, [gl.a, L.l, L.E], {
- name: [0, "name"]
- }, null), (n()(), L._23(-1, 0, ["\n "])), (n()(), L._23(-1, null, ["\n "])), (n()(), L._23(-1, 3, ["\n\n "])), (n()(), L._4(22, 0, null, 3, 2, "ion-title", [], null, null, null, Ql.b, Ql.a)), L._3(23, 49152, null, 0, nt.a, [gl.a, L.l, L.E, [2, Wl.a],
- [2, Xl.a]
- ], null, null), (n()(), L._23(24, 0, ["", ""])), (n()(), L._23(-1, 3, ["\n "])), (n()(), L._23(-1, null, ["\n\n"])), (n()(), L._23(-1, null, ["\n\n\n"])), (n()(), L._4(28, 0, null, null, 20, "ion-content", [
- ["padding", ""]
- ], [
- [2, "statusbar-padding", null],
- [2, "has-refresher", null]
- ], null, null, Tl.b, Tl.a)), L._3(29, 4374528, null, 0, wl.a, [gl.a, bl.a, yl.a, L.l, L.E, dl.a, kl.a, L.y, [2, pl.a],
- [2, fl.a]
- ], null, null), (n()(), L._23(-1, 1, ["\n "])), (n()(), L._4(31, 0, null, 1, 16, "ion-list", [], null, null, null, null, null)), L._3(32, 16384, null, 0, tt.a, [gl.a, L.l, L.E, bl.a, ml.l, yl.a], null, null), (n()(), L._23(-1, null, ["\n\n "])), (n()(), L._4(34, 0, null, null, 2, "h3", [
- ["class", "course"],
- ["color", "light"],
- ["ion-text", ""],
- ["text-center", ""],
- ["text-wrap", ""]
- ], null, null, null, null, null)), L._3(35, 16384, null, 0, Fl.a, [gl.a, L.l, L.E], {
- color: [0, "color"]
- }, null), (n()(), L._23(36, null, ["", " - ", ""])), (n()(), L._23(-1, null, ["\n "])), (n()(), L._4(38, 0, null, null, 1, "ion-list", [], null, null, null, null, null)), L._3(39, 16384, null, 0, tt.a, [gl.a, L.l, L.E, bl.a, ml.l, yl.a], null, null), (n()(), L._23(-1, null, ["\n\n "])), (n()(), L._4(41, 0, null, null, 1, "ion-list", [], null, null, null, null, null)), L._3(42, 16384, null, 0, tt.a, [gl.a, L.l, L.E, bl.a, ml.l, yl.a], null, null), (n()(), L._23(-1, null, ["\n "])), (n()(), L._4(44, 0, null, null, 2, "p", [
- ["class", "desc"],
- ["color", "light"],
- ["ion-text", ""],
- ["padding", ""],
- ["text-center", ""],
- ["text-wrap", ""]
- ], null, null, null, null, null)), L._3(45, 16384, null, 0, Fl.a, [gl.a, L.l, L.E], {
- color: [0, "color"]
- }, null), (n()(), L._23(-1, null, [" \n The purpose of this evaluation exercise is to obtain students feedback regarding the course, the performance of the lecturer as well as the condition of the lecture room. This feedback is significant in helping UiTM to improve the quality of its teaching and learning, thus achieving its objectives in offering excellent education. \n \n Thank you for your cooperation. "])), (n()(), L._23(-1, null, ["\n\n "])), (n()(), L._23(-1, 1, ["\n"])), (n()(), L._23(-1, null, ["\n"])), (n()(), L._4(50, 0, null, null, 6, "ion-footer", [], null, null, null, null, null)), L._3(51, 16384, null, 0, ft.a, [gl.a, L.l, L.E, [2, pl.a]], null, null), (n()(), L._23(-1, null, ["\n\n "])), (n()(), L._4(53, 0, null, null, 2, "button", [
- ["color", "primary"],
- ["full", ""],
- ["ion-button", ""],
- ["large", ""]
- ], null, [
- [null, "click"]
- ], function(n, l, t) {
- var u = !0,
- e = n.component;
- if ("click" === l) {
- u = !1 !== e.sufoquestion(e.Item) && u
- }
- return u
- }, Il.b, Il.a)), L._3(54, 1097728, null, 0, Pl.a, [
- [8, ""], gl.a, L.l, L.E
- ], {
- color: [0, "color"],
- large: [1, "large"],
- full: [2, "full"]
- }, null), (n()(), L._23(-1, 0, [" Start Now "])), (n()(), L._23(-1, null, ["\n\n"]))], function(n, l) {
- n(l, 5, 0, "secondheader");
- n(l, 13, 0, "");
- n(l, 18, 0, "menu");
- n(l, 35, 0, "light");
- n(l, 45, 0, "light");
- n(l, 54, 0, "primary", "", "")
- }, function(n, l) {
- var t = l.component;
- n(l, 4, 0, L._18(l, 5)._hidden, L._18(l, 5)._sbPadding);
- n(l, 11, 0, L._18(l, 13).isHidden);
- n(l, 17, 0, L._18(l, 18)._hidden);
- n(l, 24, 0, t.course.cgu_courseid);
- n(l, 28, 0, L._18(l, 29).statusbarPadding, L._18(l, 29)._hasRefresher);
- n(l, 36, 0, t.course.cgu_courseid, t.course.name_course)
- })
- }
- function y(n) {
- return L._24(0, [(n()(), L._4(0, 0, null, null, 2, "div", [
- ["class", "question"],
- ["color", "light"],
- ["ion-text", ""],
- ["text-center", ""],
- ["text-wrap", ""]
- ], null, null, null, null, null)), L._3(1, 16384, null, 0, Fl.a, [gl.a, L.l, L.E], {
- color: [0, "color"]
- }, null), (n()(), L._23(2, null, ["", ""]))], function(n, l) {
- n(l, 1, 0, "light")
- }, function(n, l) {
- n(l, 2, 0, l.component.question.quesbi)
- })
- }
- function C(n) {
- return L._24(0, [(n()(), L._4(0, 0, null, null, 2, "div", [
- ["class", "question"],
- ["color", "light"],
- ["ion-text", ""],
- ["text-center", ""],
- ["text-wrap", ""]
- ], null, null, null, null, null)), L._3(1, 16384, null, 0, Fl.a, [gl.a, L.l, L.E], {
- color: [0, "color"]
- }, null), (n()(), L._23(-1, null, ["The lecturer’s delivery style challenges the mind."]))], function(n, l) {
- n(l, 1, 0, "light")
- }, null)
- }
- function S(n) {
- return L._24(0, [(n()(), L._4(0, 0, null, null, 14, "ion-item", [
- ["class", "item item-block"]
- ], null, null, null, Dl.b, Dl.a)), L._3(1, 1097728, null, 3, Kl.a, [$l.a, gl.a, L.l, L.E, [2, ql.a]], null, null), L._21(335544320, 2, {
- contentLabel: 0
- }), L._21(603979776, 3, {
- _buttons: 1
- }), L._21(603979776, 4, {
- _icons: 1
- }), L._3(5, 16384, null, 0, Hl.a, [], null, null), (n()(), L._23(-1, 2, ["\n\n "])), (n()(), L._4(7, 0, null, 1, 2, "ion-label", [
- ["color", "primary"],
- ["padding-left", ""],
- ["text-lg", ""]
- ], null, null, null, null, null)), L._3(8, 16384, [
- [2, 4]
- ], 0, mt.a, [gl.a, L.l, L.E, [8, null],
- [8, null],
- [8, null],
- [8, null]
- ], {
- color: [0, "color"]
- }, null), (n()(), L._23(9, null, ["", ""])), (n()(), L._23(-1, 2, ["\n "])), (n()(), L._4(11, 0, null, 0, 2, "ion-radio", [
- ["color", "submit"],
- ["item-left", ""]
- ], [
- [8, "className", 0],
- [2, "radio-disabled", null]
- ], [
- [null, "click"]
- ], function(n, l, t) {
- var u = !0,
- e = n.component;
- if ("click" === l) {
- u = !1 !== L._18(n, 12)._click(t) && u
- }
- if ("click" === l) {
- u = !1 !== e.sufoanswer(n.context.$implicit.value) && u
- }
- return u
- }, vt.b, vt.a)), L._3(12, 245760, null, 0, Et.a, [$l.a, gl.a, L.l, L.E, [2, Kl.a],
- [2, yt.a]
- ], {
- color: [0, "color"]
- }, null), (n()(), L._23(-1, null, [" "])), (n()(), L._23(-1, 2, ["\n\n "]))], function(n, l) {
- n(l, 8, 0, "primary");
- n(l, 12, 0, "submit")
- }, function(n, l) {
- n(l, 9, 0, l.context.$implicit.option);
- n(l, 11, 0, l.context.$implicit.class, L._18(l, 12)._disabled)
- })
- }
- function O(n) {
- return L._24(0, [(n()(), L._4(0, 0, null, null, 11, "div", [], null, null, null, null, null)), (n()(), L._23(-1, null, ["\n "])), (n()(), L._4(2, 0, null, null, 8, "ion-footer", [
- ["radio-group", ""],
- ["role", "radiogroup"]
- ], null, null, null, null, null)), L._20(5120, null, Ct.e, function(n) {
- return [n]
- }, [yt.a]), L._3(4, 1064960, null, 1, yt.a, [L.E, L.l, L.g], null, null), L._21(335544320, 1, {
- _header: 0
- }), L._3(6, 16384, null, 0, ft.a, [gl.a, L.l, L.E, [2, pl.a]], null, null), (n()(), L._23(-1, null, ["\n "])), (n()(), L.Z(16777216, null, null, 1, null, S)), L._3(9, 802816, null, 0, Vl.h, [L.N, L.K, L.t], {
- ngForOf: [0, "ngForOf"]
- }, null), (n()(), L._23(-1, null, ["\n "])), (n()(), L._23(-1, null, ["\n"]))], function(n, l) {
- n(l, 9, 0, l.component.option)
- }, null)
- }
- function A(n) {
- return L._24(0, [(n()(), L._4(0, 0, null, null, 5, "div", [], null, null, null, null, null)), (n()(), L._23(-1, null, ["\n "])), (n()(), L._4(2, 0, null, null, 2, "button", [
- ["color", "secondheader"],
- ["full", ""],
- ["ion-button", ""],
- ["large", ""]
- ], null, [
- [null, "click"]
- ], function(n, l, t) {
- var u = !0,
- e = n.component;
- if ("click" === l) {
- u = !1 !== e.sufoanswer(e.value) && u
- }
- return u
- }, Il.b, Il.a)), L._3(3, 1097728, null, 0, Pl.a, [
- [8, ""], gl.a, L.l, L.E
- ], {
- color: [0, "color"],
- large: [1, "large"],
- full: [2, "full"]
- }, null), (n()(), L._23(-1, 0, [" Next "])), (n()(), L._23(-1, null, ["\n "]))], function(n, l) {
- n(l, 3, 0, "secondheader", "", "")
- }, null)
- }
- function T(n) {
- return L._24(0, [(n()(), L._4(0, 0, null, null, 5, "div", [], null, null, null, null, null)), (n()(), L._23(-1, null, ["\n "])), (n()(), L._4(2, 0, null, null, 2, "button", [
- ["color", "secondheader"],
- ["full", ""],
- ["ion-button", ""],
- ["large", ""]
- ], null, [
- [null, "click"]
- ], function(n, l, t) {
- var u = !0;
- if ("click" === l) {
- u = !1 !== n.component.sufoanswer("") && u
- }
- return u
- }, Il.b, Il.a)), L._3(3, 1097728, null, 0, Pl.a, [
- [8, ""], gl.a, L.l, L.E
- ], {
- color: [0, "color"],
- large: [1, "large"],
- full: [2, "full"]
- }, null), (n()(), L._23(-1, 0, [" Next "])), (n()(), L._23(-1, null, ["\n "]))], function(n, l) {
- n(l, 3, 0, "secondheader", "", "")
- }, null)
- }
- function w(n) {
- return L._24(0, [(n()(), L._4(0, 0, null, null, 25, "div", [], null, null, null, null, null)), (n()(), L._23(-1, null, ["\n "])), (n()(), L._4(2, 0, null, null, 22, "ion-footer", [], null, null, null, null, null)), L._3(3, 16384, null, 0, ft.a, [gl.a, L.l, L.E, [2, pl.a]], null, null), (n()(), L._23(-1, null, ["\n "])), (n()(), L._4(5, 0, null, null, 12, "ion-item", [
- ["class", "item item-block"]
- ], null, null, null, Dl.b, Dl.a)), L._3(6, 1097728, null, 3, Kl.a, [$l.a, gl.a, L.l, L.E, [2, ql.a]], null, null), L._21(335544320, 5, {
- contentLabel: 0
- }), L._21(603979776, 6, {
- _buttons: 1
- }), L._21(603979776, 7, {
- _icons: 1
- }), L._3(10, 16384, null, 0, Hl.a, [], null, null), (n()(), L._23(-1, 2, ["\n "])), (n()(), L._4(12, 0, null, 3, 4, "ion-textarea", [
- ["name", "answer"],
- ["placeholder", "Comment..."],
- ["rows", "4"],
- ["type", "answer"]
- ], [
- [2, "ng-untouched", null],
- [2, "ng-touched", null],
- [2, "ng-pristine", null],
- [2, "ng-dirty", null],
- [2, "ng-valid", null],
- [2, "ng-invalid", null],
- [2, "ng-pending", null]
- ], [
- [null, "ngModelChange"]
- ], function(n, l, t) {
- var u = !0;
- if ("ngModelChange" === l) {
- u = !1 !== (n.component.value = t) && u
- }
- return u
- }, St.b, St.a)), L._3(13, 671744, null, 0, Ct.h, [
- [8, null],
- [8, null],
- [8, null],
- [8, null]
- ], {
- name: [0, "name"],
- model: [1, "model"]
- }, {
- update: "ngModelChange"
- }), L._20(2048, null, Ct.f, null, [Ct.h]), L._3(15, 16384, null, 0, Ct.g, [Ct.f], null, null), L._3(16, 5423104, null, 0, Ot.a, [gl.a, bl.a, $l.a, dl.a, L.l, L.E, [2, wl.a],
- [2, Kl.a],
- [2, Ct.f], yl.a
- ], {
- type: [0, "type"],
- placeholder: [1, "placeholder"]
- }, null), (n()(), L._23(-1, 2, ["\n "])), (n()(), L._23(-1, null, ["\n "])), (n()(), L.Z(16777216, null, null, 1, null, A)), L._3(20, 16384, null, 0, Vl.i, [L.N, L.K], {
- ngIf: [0, "ngIf"]
- }, null), (n()(), L._23(-1, null, ["\n "])), (n()(), L.Z(16777216, null, null, 1, null, T)), L._3(23, 16384, null, 0, Vl.i, [L.N, L.K], {
- ngIf: [0, "ngIf"]
- }, null), (n()(), L._23(-1, null, ["\n "])), (n()(), L._23(-1, null, ["\n"]))], function(n, l) {
- var t = l.component;
- n(l, 13, 0, "answer", t.value);
- n(l, 16, 0, "answer", "Comment...");
- n(l, 20, 0, t.value);
- n(l, 23, 0, !t.value)
- }, function(n, l) {
- n(l, 12, 0, L._18(l, 15).ngClassUntouched, L._18(l, 15).ngClassTouched, L._18(l, 15).ngClassPristine, L._18(l, 15).ngClassDirty, L._18(l, 15).ngClassValid, L._18(l, 15).ngClassInvalid, L._18(l, 15).ngClassPending)
- })
- }
- function k(n) {
- return L._24(0, [(n()(), L._23(-1, null, ["\n"])), (n()(), L._4(1, 0, null, null, 10, "ion-header", [], null, null, null, null, null)), L._3(2, 16384, null, 0, Bl.a, [gl.a, L.l, L.E, [2, pl.a]], null, null), (n()(), L._23(-1, null, ["\n\n "])), (n()(), L._4(4, 0, null, null, 6, "ion-navbar", [
- ["class", "toolbar"],
- ["color", "secondheader"]
- ], [
- [8, "hidden", 0],
- [2, "statusbar-padding", null]
- ], null, null, Jl.b, Jl.a)), L._3(5, 49152, null, 0, Xl.a, [dl.a, [2, pl.a],
- [2, fl.a], gl.a, L.l, L.E
- ], {
- color: [0, "color"]
- }, null), (n()(), L._23(-1, 3, ["\n "])), (n()(), L._4(7, 0, null, 3, 2, "ion-title", [], null, null, null, Ql.b, Ql.a)), L._3(8, 49152, null, 0, nt.a, [gl.a, L.l, L.E, [2, Wl.a],
- [2, Xl.a]
- ], null, null), (n()(), L._23(9, 0, ["Question ", ""])), (n()(), L._23(-1, 3, ["\n "])), (n()(), L._23(-1, null, ["\n\n"])), (n()(), L._23(-1, null, ["\n\n\n"])), (n()(), L._4(13, 0, null, null, 14, "ion-content", [
- ["padding", ""]
- ], [
- [2, "statusbar-padding", null],
- [2, "has-refresher", null]
- ], null, null, Tl.b, Tl.a)), L._3(14, 4374528, null, 0, wl.a, [gl.a, bl.a, yl.a, L.l, L.E, dl.a, kl.a, L.y, [2, pl.a],
- [2, fl.a]
- ], null, null), (n()(), L._23(-1, 1, ["\n "])), (n()(), L._4(16, 0, null, 1, 10, "ion-list", [], null, null, null, null, null)), L._3(17, 16384, null, 0, tt.a, [gl.a, L.l, L.E, bl.a, ml.l, yl.a], null, null), (n()(), L._23(-1, null, ["\n\n "])), (n()(), L._4(19, 0, null, null, 0, "div", [
- ["class", "title"]
- ], null, null, null, null, null)), (n()(), L._23(-1, null, ["\n "])), (n()(), L.Z(16777216, null, null, 1, null, y)), L._3(22, 16384, null, 0, Vl.i, [L.N, L.K], {
- ngIf: [0, "ngIf"]
- }, null), (n()(), L._23(-1, null, ["\n "])), (n()(), L.Z(16777216, null, null, 1, null, C)), L._3(25, 16384, null, 0, Vl.i, [L.N, L.K], {
- ngIf: [0, "ngIf"]
- }, null), (n()(), L._23(-1, null, ["\n\n "])), (n()(), L._23(-1, 1, ["\n\n"])), (n()(), L._23(-1, null, ["\n"])), (n()(), L.Z(16777216, null, null, 1, null, O)), L._3(30, 16384, null, 0, Vl.i, [L.N, L.K], {
- ngIf: [0, "ngIf"]
- }, null), (n()(), L._23(-1, null, ["\n"])), (n()(), L.Z(16777216, null, null, 1, null, w)), L._3(33, 16384, null, 0, Vl.i, [L.N, L.K], {
- ngIf: [0, "ngIf"]
- }, null)], function(n, l) {
- var t = l.component;
- n(l, 5, 0, "secondheader");
- n(l, 22, 0, t.question.id + 1 != 19);
- n(l, 25, 0, t.question.id + 1 == 19);
- n(l, 30, 0, t.question.id + 1 <= 24);
- n(l, 33, 0, t.question.id + 1 == 25 || t.question.id + 1 == 26)
- }, function(n, l) {
- var t = l.component;
- n(l, 4, 0, L._18(l, 5)._hidden, L._18(l, 5)._sbPadding);
- n(l, 9, 0, t.question.id + 1);
- n(l, 13, 0, L._18(l, 14).statusbarPadding, L._18(l, 14)._hasRefresher)
- })
- }
- function R(n) {
- return L._24(0, [(n()(), L._4(0, 0, null, null, 9, "ion-header", [], null, null, null, null, null)), L._3(1, 16384, null, 0, Bl.a, [gl.a, L.l, L.E, [2, pl.a]], null, null), (n()(), L._23(-1, null, ["\n\n "])), (n()(), L._4(3, 0, null, null, 5, "ion-navbar", [
- ["class", "toolbar"],
- ["color", "secondheader"]
- ], [
- [8, "hidden", 0],
- [2, "statusbar-padding", null]
- ], null, null, Jl.b, Jl.a)), L._3(4, 49152, null, 0, Xl.a, [dl.a, [2, pl.a],
- [2, fl.a], gl.a, L.l, L.E
- ], {
- color: [0, "color"]
- }, null), (n()(), L._23(-1, 3, ["\n "])), (n()(), L._4(6, 0, null, 3, 1, "ion-title", [], null, null, null, Ql.b, Ql.a)), L._3(7, 49152, null, 0, nt.a, [gl.a, L.l, L.E, [2, Wl.a],
- [2, Xl.a]
- ], null, null), (n()(), L._23(-1, 3, ["\n "])), (n()(), L._23(-1, null, ["\n\n"])), (n()(), L._23(-1, null, ["\n\n\n"])), (n()(), L._4(11, 0, null, null, 14, "ion-content", [
- ["padding", "true"]
- ], [
- [2, "statusbar-padding", null],
- [2, "has-refresher", null]
- ], null, null, Tl.b, Tl.a)), L._3(12, 4374528, null, 0, wl.a, [gl.a, bl.a, yl.a, L.l, L.E, dl.a, kl.a, L.y, [2, pl.a],
- [2, fl.a]
- ], null, null), (n()(), L._23(-1, 1, ["\n "])), (n()(), L._4(14, 0, null, 1, 10, "ion-list", [], null, null, null, null, null)), L._3(15, 16384, null, 0, tt.a, [gl.a, L.l, L.E, bl.a, ml.l, yl.a], null, null), (n()(), L._23(-1, null, ["\n "])), (n()(), L._4(17, 0, null, null, 2, "ion-label", [
- ["class", "ty"],
- ["color", "light"],
- ["text-center", ""],
- ["text-wrap", ""]
- ], null, null, null, null, null)), L._3(18, 16384, null, 0, mt.a, [gl.a, L.l, L.E, [8, null],
- [8, null],
- [8, null],
- [8, null]
- ], {
- color: [0, "color"]
- }, null), (n()(), L._23(-1, null, ["Opps!"])), (n()(), L._23(-1, null, [" \n "])), (n()(), L._4(21, 0, null, null, 2, "ion-label", [
- ["class", "ty"],
- ["color", "light"],
- ["text-center", ""],
- ["text-wrap", ""]
- ], null, null, null, null, null)), L._3(22, 16384, null, 0, mt.a, [gl.a, L.l, L.E, [8, null],
- [8, null],
- [8, null],
- [8, null]
- ], {
- color: [0, "color"]
- }, null), (n()(), L._23(-1, null, ["There is no internet connections."])), (n()(), L._23(-1, null, ["\n "])), (n()(), L._23(-1, 1, ["\n"])), (n()(), L._23(-1, null, ["\n"])), (n()(), L._4(27, 0, null, null, 6, "ion-footer", [
- ["no-shadow", ""]
- ], null, null, null, null, null)), L._3(28, 16384, null, 0, ft.a, [gl.a, L.l, L.E, [2, pl.a]], null, null), (n()(), L._23(-1, null, ["\n\n "])), (n()(), L._4(30, 0, null, null, 2, "button", [
- ["color", "ined"],
- ["full", ""],
- ["ion-button", ""],
- ["large", ""]
- ], null, [
- [null, "click"]
- ], function(n, l, t) {
- var u = !0;
- if ("click" === l) {
- u = !1 !== n.component.option() && u
- }
- return u
- }, Il.b, Il.a)), L._3(31, 1097728, null, 0, Pl.a, [
- [8, ""], gl.a, L.l, L.E
- ], {
- color: [0, "color"],
- large: [1, "large"],
- full: [2, "full"]
- }, null), (n()(), L._23(-1, 0, [" Options "])), (n()(), L._23(-1, null, ["\n\n"]))], function(n, l) {
- n(l, 4, 0, "secondheader");
- n(l, 18, 0, "light");
- n(l, 22, 0, "light");
- n(l, 31, 0, "ined", "", "")
- }, function(n, l) {
- n(l, 3, 0, L._18(l, 4)._hidden, L._18(l, 4)._sbPadding);
- n(l, 11, 0, L._18(l, 12).statusbarPadding, L._18(l, 12)._hasRefresher)
- })
- }
- Object.defineProperty(l, "__esModule", {
- value: !0
- });
- var U = t(36),
- L = t(0),
- I = t(1),
- P = t(18),
- j = t(50),
- x = t(100),
- N = t(101),
- G = t(102),
- D = t(104),
- K = function() {
- function n(n) {
- this.loadingCtrl = n
- }
- return n.prototype.displayLoader = function() {
- this.loadingSpinner || (this.loadingSpinner = this.loadingCtrl.create(), this.loadingSpinner.present())
- }, n.prototype.dismissLoader = function() {
- this.loadingSpinner && (this.loadingSpinner.dismiss(), this.loadingSpinner = null)
- }, n
- }(),
- $ = t(52),
- q = function() {
- function n() {}
- return n.prototype.storeSelectFeatureState = function() {
- return this.store.select(this.STATE)
- }, n.prototype.dispatchAction = function(n) {
- this.store.dispatch(n)
- }, n
- }(),
- H = function() {
- return function(n) {
- this.payload = n
- }
- }(),
- M = this && this.__extends || function() {
- var n = Object.setPrototypeOf || {
- __proto__: []
- }
- instanceof Array && function(n, l) {
- n.__proto__ = l
- } || function(n, l) {
- for (var t in l) l.hasOwnProperty(t) && (n[t] = l[t])
- };
- return function(l, t) {
- function u() {
- this.constructor = l
- }
- n(l, t), l.prototype = null === t ? Object.create(t) : (u.prototype = t.prototype, new u)
- }
- }(),
- F = {
- CHECK_AUTH: "[Auth] Check Auth Requested",
- CHECK_AUTH_SUCCESS: "[Auth] Check Auth: user Success",
- CHECK_AUTH_NO_USER: "[Auth] Check Auth: no user Success",
- LOGIN: "[Auth] Login Requested",
- LOGIN_SUCCESS: "[Auth] Login Success",
- LOGIN_FAIL: "[Auth] Login Fail",
- LOGOUT: "[Auth] Logout Requested",
- LOGOUT_SUCCESS: "[Auth] Logout Success",
- LOGOUT_FAIL: "[Auth] Logout Fail",
- CREATE: "[Auth] CREATE Requested",
- CREATE_SUCCESS: "[Auth] CREATE Success",
- TOKEN_SAVE: "[Auth] TOKEN_SAVE Requested",
- TOKEN_SAVE_SUCCESS: "[Auth] TOKEN_SAVE Success",
- TOKEN_DELETE: "[Auth] TOKEN_REMOVE Requested",
- TOKEN_DELETE_SUCCESS: "[Auth] TOKEN_REMOVE Success",
- GET_PICTURE: "[Auth] GET_PICTURE Requested",
- GET_PICTURE_SUCCESS: "[Auth] GET_PICTURE Success",
- GET_PICTURE_CACHE: "[Auth] GET_PICTURE Cache",
- ERROR: "[Auth] Error"
- },
- Y = function(n) {
- function l() {
- var l = null !== n && n.apply(this, arguments) || this;
- return l.type = F.CHECK_AUTH, l
- }
- return M(l, n), l
- }(H),
- Z = function(n) {
- function l() {
- var l = null !== n && n.apply(this, arguments) || this;
- return l.type = F.CHECK_AUTH_SUCCESS, l
- }
- return M(l, n), l
- }(H),
- V = function(n) {
- function l() {
- var l = null !== n && n.apply(this, arguments) || this;
- return l.type = F.CHECK_AUTH_NO_USER, l
- }
- return M(l, n), l
- }(H),
- B = function(n) {
- function l() {
- var l = null !== n && n.apply(this, arguments) || this;
- return l.type = F.LOGIN, l
- }
- return M(l, n), l
- }(H),
- J = function(n) {
- function l() {
- var l = null !== n && n.apply(this, arguments) || this;
- return l.type = F.LOGIN_SUCCESS, l
- }
- return M(l, n), l
- }(H),
- X = function(n) {
- function l() {
- var l = null !== n && n.apply(this, arguments) || this;
- return l.type = F.LOGIN_FAIL, l
- }
- return M(l, n), l
- }(H),
- z = function(n) {
- function l() {
- var l = null !== n && n.apply(this, arguments) || this;
- return l.type = F.LOGOUT, l
- }
- return M(l, n), l
- }(H),
- W = function(n) {
- function l() {
- var l = null !== n && n.apply(this, arguments) || this;
- return l.type = F.LOGOUT_SUCCESS, l
- }
- return M(l, n), l
- }(H),
- Q = function(n) {
- function l() {
- var l = null !== n && n.apply(this, arguments) || this;
- return l.type = F.LOGOUT_FAIL, l
- }
- return M(l, n), l
- }(H),
- nn = function(n) {
- function l() {
- var l = null !== n && n.apply(this, arguments) || this;
- return l.type = F.CREATE, l
- }
- return M(l, n), l
- }(H),
- ln = function(n) {
- function l() {
- var l = null !== n && n.apply(this, arguments) || this;
- return l.type = F.TOKEN_SAVE, l
- }
- return M(l, n), l
- }(H),
- tn = function(n) {
- function l() {
- var l = null !== n && n.apply(this, arguments) || this;
- return l.type = F.TOKEN_SAVE_SUCCESS, l
- }
- return M(l, n), l
- }(H),
- un = function(n) {
- function l() {
- var l = null !== n && n.apply(this, arguments) || this;
- return l.type = F.TOKEN_DELETE, l
- }
- return M(l, n), l
- }(H),
- en = function(n) {
- function l() {
- var l = null !== n && n.apply(this, arguments) || this;
- return l.type = F.GET_PICTURE_SUCCESS, l
- }
- return M(l, n), l
- }(H),
- on = function(n) {
- function l() {
- var l = null !== n && n.apply(this, arguments) || this;
- return l.type = F.GET_PICTURE_CACHE, l
- }
- return M(l, n), l
- }(H),
- an = function(n) {
- function l() {
- var l = null !== n && n.apply(this, arguments) || this;
- return l.type = F.ERROR, l
- }
- return M(l, n), l
- }(H),
- rn = function(n) {
- function l(l) {
- var t = n.call(this) || this;
- return t.store = l, t.STATE = "currentUser", t
- }
- return Object(I.__extends)(l, n), l.prototype.dispatchCheckAuthAction = function() {
- this.dispatchAction(new Y)
- }, l.prototype.dispatchLoginAction = function(n) {
- this.dispatchAction(new B(n))
- }, l.prototype.dispatchLogoutAction = function() {
- this.dispatchAction(new z)
- }, l.prototype.dispatchCreateAction = function(n) {
- this.dispatchAction(new nn(n))
- }, l.prototype.dispatchTokenSaveAction = function() {
- this.dispatchAction(new ln)
- }, l.prototype.dispatchTokenDeleteAction = function() {
- this.dispatchAction(new un)
- }, l.prototype.dispatchLoadAction = function(n) {}, l.prototype.dispatchUpdateAction = function(n) {}, l.prototype.dispatchRemoveAction = function(n) {}, l.prototype.getCurrentUser = function() {
- return this.STATE = "currentUser", this.storeSelectFeatureState().map(function(n) {
- return n
- })
- }, l.prototype.getAuthCheck = function() {
- return this.STATE = "authCheck", this.storeSelectFeatureState().map(function(n) {
- return n
- })
- }, l.prototype.isAuthenticated = function() {
- var n = !1;
- return this.getAuthCheck().subscribe(function(l) {
- return n = l
- }), n
- }, l
- }(q),
- sn = t(105),
- cn = t(106),
- _n = t(107),
- hn = t(108),
- pn = t(25),
- fn = t(6),
- dn = (t(222), t(223), "https://digitalcampus.uitm.edu.my/api"),
- gn = function() {
- function n(n, l, t) {
- this.http = n, this.storage = l, this.platform = t, this.path = ""
- }
- return n.prototype.get = function() {
- var n = this;
- return fn.Observable.fromPromise(this.storage.get("token")).mergeMap(function(l) {
- var t = (new pn.g).set("cache-control", "no-cache").set("Platform", n.platform.platforms()).set("Authorization", "Bearer " + l);
- return n.http.get(dn + n.path, {
- headers: t
- })
- })
- }, n.prototype.post = function(n) {
- var l = this;
- return fn.Observable.fromPromise(this.storage.get("token")).mergeMap(function(t) {
- var u = (new pn.g).set("cache-control", "no-cache").set("Platform", l.platform.platforms()).set("Authorization", "Bearer " + t);
- return l.http.post(dn + l.path, n, {
- headers: u
- })
- })
- }, n
- }(),
- bn = "picture_date",
- mn = Date.parse(new Date(Date.now()).toDateString()),
- vn = function(n) {
- function l(l, t, u) {
- var e = n.call(this, l, t, u) || this;
- return e.http = l, e.storage = t, e.platform = u, e._authUrl = "/sso/login", e._isAuthUrl = "/sso/loggedIn", e.logout = "/sso/logout", e.picture = "/picture", e
- }
- return Object(I.__extends)(l, n), l.prototype.getPicture = function() {
- var n = this;
- return fn.Observable.fromPromise(this.storage.get(bn)).mergeMap(function(l) {
- return null == l || +l < +mn ? (n.path = n.picture, n.get().map(function(l) {
- return n.storage.set("picture", l.picture), n.storage.set(bn, mn), l.picture
- })) : fn.Observable.fromPromise(Promise.resolve(n.storage.get("picture")).then(function(n) {
- return n
- }).catch(function(n) {
- return n
- }))
- })
- }, l.prototype.doLogout = function() {
- return this.path = this.logout, this.get().map(function(n) {
- return n || {}
- })
- }, l.prototype.isAuth = function() {
- return this.path = this._isAuthUrl, this.get().map(function(n) {
- return n.isAuth || {}
- })
- }, l.prototype.doAuth = function(n) {
- return this.path = this._authUrl, this.post({
- username: n.username,
- password: n.password
- })
- }, l.prototype.saveToken = function(n) {
- var l = this;
- return fn.Observable.fromPromise(Promise.resolve(this.storage.set("token", n.token)).then(function(t) {
- return l.storage.set("picture", n.user.picture)
- }).then(function(n) {
- return l.storage.set(bn, mn)
- }).then(function(l) {
- return n.token
- }).catch(function(n) {
- return n
- }))
- }, l.prototype.dellToken = function() {
- return fn.Observable.fromPromise(Promise.resolve(this.storage.clear()))
- }, l
- }(gn),
- En = Date.parse(new Date(Date.now()).toDateString()),
- yn = "question_date",
- Cn = "question_info",
- Sn = function(n) {
- function l(l, t, u) {
- var e = n.call(this, l, t, u) || this;
- return e.http = l, e.storage = t, e.platform = u, e
- }
- return Object(I.__extends)(l, n), l.prototype.getCourse = function(n) {
- var l = this;
- return void 0 === n && (n = !1), fn.Observable.fromPromise(this.storage.get("course_date")).mergeMap(function(t) {
- return null == t || +t < +En || n ? (l.path = "/ilearn/student_course_list", l.get().map(function(n) {
- return l.storage.set("course_info", n), l.storage.set("course_date", En), n || {}
- })) : fn.Observable.fromPromise(l.storage.get("course_info"))
- })
- }, l.prototype.getSufo = function(n) {
- var l = this;
- return void 0 === n && (n = !1), fn.Observable.fromPromise(this.storage.get(yn)).mergeMap(function(t) {
- return null == t || +t < +En || n ? (l.path = "/ilearn/sufo/list", l.get().map(function(n) {
- return l.storage.set(Cn, n), l.storage.set(yn, En), n || {}
- })) : fn.Observable.fromPromise(l.storage.get(Cn))
- })
- }, l.prototype.submitSufo = function(n) {
- return this.path = "/ilearn/sufo/list", this.post(n).map(function(n) {
- return n || {}
- })
- }, l
- }(gn),
- On = function() {
- function n(n, l, t) {
- this.authStore = n, this.viewCtrl = l, this.nav = t
- }
- return n.prototype.onLogout = function() {
- this.authStore.dispatchLogoutAction(), this.viewCtrl.dismiss(), this.nav.setRoot(Rn)
- }, n
- }(),
- An = function() {
- function n(n, l, t, u, e, o) {
- this.navCtrl = n, this.navParams = l, this.httpClient = t, this.api = u, this.loadingCtrl = e, this.actionSheetCtrl = o, this.setsufo = {}
- }
- return n.prototype.option = function() {
- var n = this;
- this.actionSheetCtrl.create({
- title: "Please check your internet connection and retry.",
- buttons: [{
- text: "Retry",
- role: "retry",
- handler: function() {
- for (var l = 0; l < localStorage.length; l++)
- if (n.submitdata = localStorage.key(l), -1 !== n.submitdata.indexOf("answer") && (n.answerval = localStorage.getItem(n.submitdata), n.setsufo[n.submitdata] = n.answerval), -1 !== n.submitdata.indexOf("studentInfo")) {
- n.studentInfo = localStorage.getItem(n.submitdata), n.student = JSON.parse(n.studentInfo);
- for (var t in n.student) n.setsufo[t] = n.student[t]
- }
- var u = n.loadingCtrl.create({
- content: "Processing..."
- });
- u.present(), n.api.submitSufo(n.setsufo).subscribe(function(l) {
- n.setsufo = l, u.setContent("SuFO has completed, Please Wait..."), n.api.getCourse(!0).subscribe(function(l) {
- u.dismiss(), n.navCtrl.setRoot(kn)
- })
- }, function(n) {
- u.setContent("Process failed..."), setTimeout(function() {
- u.dismiss()
- }, 1500)
- })
- }
- }, {
- text: "Home",
- role: "home",
- handler: function() {
- n.navCtrl.push(kn, {})
- }
- }, {
- text: "Cancel",
- role: "cancel",
- handler: function() {}
- }]
- }).present()
- }, n
- }(),
- Tn = function() {
- function n(n, l, t, u, e) {
- this.navCtrl = n, this.navParams = l, this.loadingCtrl = t, this.httpClient = u, this.api = e, this.setsufo = {}, this.item = l.get("Item"), this.id = l.get("id"), this.question = this.item[this.id], this.option = [{
- option: "Strongly Agree",
- value: "4",
- class: "vhappy"
- }, {
- option: "Agree",
- value: "3",
- class: "happy"
- }, {
- option: "Disagree",
- value: "2",
- class: "sad"
- }, {
- option: "Strongly Disagree",
- value: "1",
- class: "vsad"
- }], localStorage.setItem("CurQuestion", "answer" + this.question.id)
- }
- return l = n, n.prototype.sufoanswer = function(n) {
- var t = this;
- if (localStorage.setItem("answer" + this.question.id, n), "25" == this.question.id) {
- for (var u = 0; u < localStorage.length; u++)
- if (this.submitdata = localStorage.key(u), -1 !== this.submitdata.indexOf("answer") && (this.answerval = localStorage.getItem(this.submitdata), this.setsufo[this.submitdata] = this.answerval), -1 !== this.submitdata.indexOf("studentInfo")) {
- this.studentInfo = localStorage.getItem(this.submitdata), this.student = JSON.parse(this.studentInfo);
- for (var e in this.student) this.setsufo[e] = this.student[e]
- }
- console.log(this.setsufo);
- var o = this.loadingCtrl.create({
- content: "Processing..."
- });
- o.present(), this.api.submitSufo(this.setsufo).subscribe(function(n) {
- t.setsufo = n, o.setContent("SuFO has completed, Please Wait..."), t.api.getCourse(!0).subscribe(function(n) {
- o.dismiss(), t.navCtrl.setRoot(kn)
- })
- }, function(n) {
- o.setContent("Process failed..."), setTimeout(function() {
- o.dismiss()
- }, 1500), t.navCtrl.push(An, {})
- })
- } else this.navCtrl.push(l, {
- Item: this.item,
- id: this.question.id + 1
- })
- }, n;
- var l
- }(),
- wn = function() {
- function n(n, l, t, u, e, o) {
- var a = this;
- this.navCtrl = n, this.navParams = l, this.httpClient = t, this.api = u, this.loadingCtrl = e, this.toastCtrl = o, this.course = l.get("course"), this.api.getSufo().subscribe(function(n) {
- a.questionlist = n
- }, function(n) {})
- }
- return n.prototype.sufoquestion = function(n) {
- this.navCtrl.push(Tn, {
- Item: this.questionlist,
- id: "0"
- })
- }, n
- }(),
- kn = function() {
- function n(n, l, t, u, e, o, a, i, r, s) {
- var c = this;
- this.navCtrl = n, this.authStore = l, this.injector = t, this.service = u, this.api = e, this.toastCtrl = o, this.network = a, this.events = i, this.loading = r, this.popoverCtrl = s, console.log("home"), this.service.getPicture().subscribe(function(n) {
- return c.picture = n
- }), this.loadCourse(), this.connected = this.network.onConnect().subscribe(function(n) {
- c.displayNetworkUpdate(n.type)
- }, function(n) {
- return console.error(n)
- }), this.disconnected = this.network.onDisconnect().subscribe(function(n) {
- c.displayNetworkUpdate(n.type)
- }, function(n) {
- return console.error(n)
- })
- }
- return n.prototype.presentPopover = function(n) {
- this.popoverCtrl.create(On).present({
- ev: n
- })
- }, n.prototype.loadCourse = function(n) {
- var l = this;
- void 0 === n && (n = null);
- var t = !1;
- null == n ? this.loading.displayLoader() : t = !0, this.api.getCourse(t).subscribe(function(u) {
- u.msg ? l.no_sufo = !0 : (l.studentcourselist = u, l.no_sufo = !1), l.api.getSufo(t).subscribe(function(t) {
- l.done = !0, l.events.publish("state", !1), null == n ? l.loading.dismissLoader() : n.complete()
- }, function(t) {
- l.events.publish("state", !1), null == n ? l.loading.dismissLoader() : n.complete(), 400 == t.status && (l.authStore.dispatchTokenDeleteAction(), l.navCtrl.setRoot(Rn, {
- logout: !0
- }))
- })
- }, function(t) {
- l.events.publish("state", !1), null == n ? l.loading.dismissLoader() : n.complete(), 400 == t.status && (l.authStore.dispatchTokenDeleteAction(), l.navCtrl.setRoot(Rn, {
- logout: !0
- }))
- })
- }, n.prototype.displayNetworkUpdate = function(n) {
- this.toastCtrl.create({
- message: "You are now " + n,
- duration: 3e3
- }).present()
- }, n.prototype.sufostart = function(n) {
- localStorage.setItem("studentInfo", JSON.stringify(n)), this.navCtrl.push(wn, {
- course: n
- })
- }, n.prototype.goPage = function(n) {
- console.log("page->", n), this.navCtrl.push("ItemsPage")
- }, n.prototype.giveToast = function(n) {
- this.toastCtrl.create({
- message: "SuFO for " + n + " has completed",
- duration: 3e3,
- position: "bottom"
- }).present()
- }, n = Object(I.__decorate)([u, Object(L.i)({
- selector: "page-home",
- templateUrl: "home.html"
- }), Object(I.__metadata)("design:paramtypes", [P.b, rn, L.r, vn, Sn, P.d, hn.a, P.a, K, P.c])], n)
- }(),
- Rn = function() {
- function n(n, l, t, u, e, o, a, i, r, s) {
- this.appAvailability = n, this.platform = l, this.iab = t, this.authStore = u, this.params = e, this.navCtrl = o, this.alertCtrl = a, this.market = i, this.events = r, this.storage = s, this.params.get("token") && (this.storage.clear(), this.storage.set("token", this.params.get("token")), this.navCtrl.setRoot(kn))
- }
- return l = n, n.prototype.ionViewDidLoad = function() {
- var n = this;
- this.authStore.getCurrentUser().subscribe(function(t) {
- t ? n.storage.get("token").then(function(t) {
- t && (n.events.publish("state", !1), n.user = t ? JSON.parse(atob(t.split(".")[1])) : "", "student" == n.user.type ? n.navCtrl.setRoot(kn) : (n.authStore.dispatchTokenDeleteAction(), n.navCtrl.setRoot(l)))
- }) : n.events.publish("state", !1)
- })
- }, n.prototype.onDeeplink = function() {
- var n, l = this;
- this.platform.is("ios") ? (this.store = "App Store", n = "uitmdc://") : this.platform.is("android") && (this.store = "Google Play Store", n = "my.edu.uitm.digitalcampus"), this.appAvailability.check(n).then(function(n) {
- l.iab.create("uitmdc://digital/login/sufo", "_system")
- }, function(n) {
- return l.showConfirm()
- })
- }, n.prototype.showConfirm = function() {
- var n = this;
- this.alertCtrl.create({
- message: "This app won't run unless you install UiTM Digital App. Proceed to " + this.store,
- buttons: [{
- text: "Cancel",
- handler: function() {}
- }, {
- text: "Ok",
- handler: function() {
- n.market.open("my.edu.uitm.digitalcampus")
- }
- }]
- }).present()
- }, n;
- var l
- }(),
- Un = function() {
- function n(n, l, t, u, e, o, a, i, r, s, c, _) {
- var h = this;
- this.app = n, this.platform = l, this.statusBar = t, this.splashScreen = u, this.store = e, this.loading = o, this.events = a, this.authStore = i, this.translate = r, this.injector = s, this.deeplinks = c, this.storage = _, this.doneLoad = !1, this.doneState = !1, this.setLang(), l.ready().then(function() {
- t.styleDefault(), u.hide(), h.deeplinks.route({
- "/login/:app": Rn
- }).subscribe(function(n) {
- h.nav.setRoot(n.$route, n.$args)
- }, function(n) {}), h.authStore.dispatchCheckAuthAction(), h.authStore.getCurrentUser().subscribe(function(n) {
- h.loggedIn = !0
- }), h.events.subscribe("state", function(n) {
- n || (h.doneLoad = !0), h.doneState && h.loading.dismissLoader()
- }), h.store.select(function(n) {
- return n.loading
- }).subscribe(function(n) {
- n ? h.loading.displayLoader() : (h.doneState = !0, h.doneLoad && h.loading.dismissLoader())
- }), h.rootPage = Rn
- })
- }
- return n.prototype.setLang = function() {
- var n = this;
- this.translate.setDefaultLang("ms"), this.storage.get("lang").then(function(l) {
- l ? n.translate.use(l) : (n.storage.set("lang", "ms"), n.translate.use("ms"))
- })
- }, n.prototype.openPage = function(n) {
- 1 == n.push ? this.nav.push(n.component) : this.nav.setRoot(n.component)
- }, n.prototype.isActive = function(n) {
- return this.nav.getActive() && this.nav.getActive().instance instanceof n.component ? "true" : ""
- }, n.prototype.onLogout = function() {
- var n = this.authStore.dispatchLogoutAction();
- console.log("logout " + n), this.nav.setRoot(Rn)
- }, n
- }(),
- Ln = t(275),
- In = t(225),
- Pn = t(73),
- jn = this && this.__extends || function() {
- var n = Object.setPrototypeOf || {
- __proto__: []
- }
- instanceof Array && function(n, l) {
- n.__proto__ = l
- } || function(n, l) {
- for (var t in l) l.hasOwnProperty(t) && (n[t] = l[t])
- };
- return function(l, t) {
- function u() {
- this.constructor = l
- }
- n(l, t), l.prototype = null === t ? Object.create(t) : (u.prototype = t.prototype, new u)
- }
- }(),
- xn = {
- ERROR_DISPLAY: "[Err] Display Requested",
- ERROR_DISPLAY_SUCCESS: "[Err] Display Success",
- ERROR_DISPLAY_FAILED: "[Err] Display not working"
- },
- Nn = function(n) {
- function l() {
- var l = null !== n && n.apply(this, arguments) || this;
- return l.type = xn.ERROR_DISPLAY, l
- }
- return jn(l, n), l
- }(H),
- Gn = function(n) {
- function l() {
- var l = null !== n && n.apply(this, arguments) || this;
- return l.type = xn.ERROR_DISPLAY_SUCCESS, l
- }
- return jn(l, n), l
- }(H),
- Dn = function(n) {
- function l() {
- var l = null !== n && n.apply(this, arguments) || this;
- return l.type = xn.ERROR_DISPLAY_FAILED, l
- }
- return jn(l, n), l
- }(H),
- Kn = !1,
- $n = !1,
- qn = {
- path: "/"
- },
- Hn = null,
- Mn = function() {
- function n(n) {
- this.alertCtrl = n
- }
- return n.prototype.doDisplayAlert = function(n) {
- var l = this;
- return n.msg && (this.alert = this.alertCtrl.create({
- title: "Error",
- subTitle: n.msg,
- buttons: ["Ok"]
- })), fn.Observable.create(function(n) {
- l.alert.present().then(function(l) {
- return n.next(!0)
- })
- })
- }, n
- }(),
- Fn = function() {
- function n(n, l) {
- var t = this;
- this.action$ = n, this._alert = l, this.handleErrorAction$ = this.action$.ofType(F.ERROR, F.LOGIN_FAIL).map(Pn.e).switchMap(function(n) {
- return fn.Observable.of(new Nn(n))
- }), this.displayErrorAction$ = this.action$.ofType(xn.ERROR_DISPLAY).map(Pn.e).switchMap(function(n) {
- return t._alert.doDisplayAlert(n)
- }).switchMap(function(n) {
- return fn.Observable.of(n ? new Gn : new Dn)
- }).catch(function(n) {
- return fn.Observable.of(xn.ERROR_DISPLAY_FAILED)
- })
- }
- return Object(I.__decorate)([Object(Pn.b)(), Object(I.__metadata)("design:type", Object)], n.prototype, "handleErrorAction$", void 0), Object(I.__decorate)([Object(Pn.b)(), Object(I.__metadata)("design:type", Object)], n.prototype, "displayErrorAction$", void 0), n
- }(),
- Yn = [Mn, rn],
- Zn = [Fn],
- Vn = function() {
- function n() {}
- return l = n, n.forRoot = function() {
- return {
- ngModule: l,
- providers: Yn.concat(Zn)
- }
- }, n;
- var l
- }(),
- Bn = (t(289), t(293), t(296), t(297), t(300), t(301), t(303), function() {
- function n(n, l) {
- var t = this;
- this.action$ = n, this.service = l, this.loginAction$ = this.action$.ofType(F.LOGIN).map(Pn.e).switchMap(function(n) {
- return t.service.doAuth(n)
- }).switchMap(function(n) {
- return fn.Observable.of(200 === n.code ? new J(n) : new X(n))
- }), this.checkMainAction$ = this.action$.ofType(F.CHECK_AUTH).switchMap(function(n) {
- return t.service.isAuth()
- }).switchMap(function(n) {
- return fn.Observable.of(n.username ? new Z(n) : new V)
- }).catch(function(n) {
- return fn.Observable.of(new an(n))
- }), this.logoutAction$ = this.action$.ofType(F.LOGOUT).switchMap(function() {
- return t.service.doLogout()
- }).switchMap(function(n) {
- return fn.Observable.of(new W(n))
- }).catch(function(n) {
- return fn.Observable.of(new Q)
- }), this.deleteTokenAction$ = this.action$.ofType(F.LOGOUT_SUCCESS, F.LOGOUT_FAIL).switchMap(function() {
- return t.service.dellToken()
- }).switchMap(function(n) {
- return fn.Observable.of(new un)
- }).catch(function(n) {
- return fn.Observable.of(new an)
- }), this.userSuccessAction$ = this.action$.ofType(F.CREATE_SUCCESS, F.LOGIN_SUCCESS).map(Pn.e).switchMap(function(n) {
- return t.service.saveToken(n)
- }).switchMap(function(n) {
- return n ? fn.Observable.concat(fn.Observable.of(new tn(n))) : fn.Observable.of(new an)
- }).catch(function(n) {
- return fn.Observable.of(new an(n.message))
- }), this.userPictureAction$ = this.action$.ofType(F.CHECK_AUTH_SUCCESS).switchMap(function(n) {
- return t.service.getPicture()
- }).switchMap(function(n) {
- return fn.Observable.of(n ? new en("done") : new on)
- }).catch(function(n) {
- return fn.Observable.of(new an(n.message))
- })
- }
- return Object(I.__decorate)([Object(Pn.b)(), Object(I.__metadata)("design:type", Object)], n.prototype, "loginAction$", void 0), Object(I.__decorate)([Object(Pn.b)(), Object(I.__metadata)("design:type", Object)], n.prototype, "checkMainAction$", void 0), Object(I.__decorate)([Object(Pn.b)(), Object(I.__metadata)("design:type", Object)], n.prototype, "logoutAction$", void 0), Object(I.__decorate)([Object(Pn.b)(), Object(I.__metadata)("design:type", Object)], n.prototype, "deleteTokenAction$", void 0), Object(I.__decorate)([Object(Pn.b)(), Object(I.__metadata)("design:type", Object)], n.prototype, "userSuccessAction$", void 0), Object(I.__decorate)([Object(Pn.b)(), Object(I.__metadata)("design:type", Object)], n.prototype, "userPictureAction$", void 0), n
- }()),
- Jn = !1,
- Xn = null,
- zn = function() {
- return function() {}
- }(),
- Wn = function(n) {
- return new Ln.a(n, "./assets/i18n/", ".json")
- },
- Qn = function() {
- return function() {}
- }(),
- nl = t(61),
- ll = t(304),
- tl = t(305),
- ul = t(306),
- el = t(307),
- ol = t(308),
- al = t(309),
- il = t(310),
- rl = t(311),
- sl = t(312),
- cl = t(313),
- _l = t(48),
- hl = t(66),
- pl = t(5),
- fl = t(14),
- dl = t(8),
- gl = t(2),
- bl = t(4),
- ml = t(7),
- vl = t(39),
- El = t(21),
- yl = t(9),
- Cl = t(59),
- Sl = t(99),
- Ol = L._2({
- encapsulation: 2,
- styles: [],
- data: {}
- }),
- Al = L._0("ng-component", Un, function(n) {
- return L._24(0, [(n()(), L._4(0, 0, null, null, 1, "ng-component", [], null, null, null, c, Ol)), L._3(1, 49152, null, 0, Un, [dl.a, bl.a, x.a, N.a, $.n, K, Cl.a, rn, G.i, L.r, D.a, Sl.a], null, null)], null, null)
- }, {}, {}, []),
- Tl = t(74),
- wl = t(20),
- kl = t(24),
- Rl = t(87),
- Ul = t(88),
- Ll = t(86),
- Il = t(26),
- Pl = t(15),
- jl = t(11),
- xl = t(82),
- Nl = L._2({
- encapsulation: 2,
- styles: [],
- data: {}
- }),
- Gl = L._0("page-deeplink", Rn, function(n) {
- return L._24(0, [(n()(), L._4(0, 0, null, null, 1, "page-deeplink", [], null, null, null, _, Nl)), L._3(1, 49152, null, 0, Rn, [sn.a, bl.a, _n.a, rn, jl.a, fl.a, xl.a, cn.a, Cl.a, Sl.a], null, null)], null, null)
- }, {}, {}, []),
- Dl = t(109),
- Kl = t(17),
- $l = t(16),
- ql = t(41),
- Hl = t(54),
- Ml = t(145),
- Fl = t(72),
- Yl = t(127),
- Zl = t(34),
- Vl = t(12),
- Bl = t(58),
- Jl = t(110),
- Xl = t(27),
- zl = t(98),
- Wl = t(28),
- Ql = t(111),
- nt = t(49),
- lt = t(314),
- tt = t(35),
- ut = t(68),
- et = t(315),
- ot = t(95),
- at = t(70),
- it = t(94),
- rt = L._2({
- encapsulation: 2,
- styles: [],
- data: {}
- }),
- st = L._0("page-home", kn, function(n) {
- return L._24(0, [(n()(), L._4(0, 0, null, null, 1, "page-home", [], null, null, null, m, rt)), L._3(1, 49152, null, 0, kn, [fl.a, rn, L.r, vn, Sn, at.a, hn.a, Cl.a, K, it.a], null, null)], null, null)
- }, {}, {}, []),
- ct = L._2({
- encapsulation: 2,
- styles: [],
- data: {}
- }),
- _t = L._0("ng-component", On, function(n) {
- return L._24(0, [(n()(), L._4(0, 0, null, null, 1, "ng-component", [], null, null, null, v, ct)), L._3(1, 49152, null, 0, On, [rn, pl.a, fl.a], null, null)], null, null)
- }, {}, {}, []),
- ht = t(133),
- pt = t(31),
- ft = t(71),
- dt = t(55),
- gt = L._2({
- encapsulation: 2,
- styles: [],
- data: {}
- }),
- bt = L._0("page-sufo", wn, function(n) {
- return L._24(0, [(n()(), L._4(0, 0, null, null, 1, "page-sufo", [], null, null, null, E, gt)), L._3(1, 49152, null, 0, wn, [fl.a, jl.a, pn.c, Sn, dt.a, at.a], null, null)], null, null)
- }, {}, {}, []),
- mt = t(47),
- vt = t(228),
- Et = t(67),
- yt = t(57),
- Ct = t(22),
- St = t(316),
- Ot = t(89),
- At = L._2({
- encapsulation: 2,
- styles: [],
- data: {}
- }),
- Tt = L._0("page-sufo-question", Tn, function(n) {
- return L._24(0, [(n()(), L._4(0, 0, null, null, 1, "page-sufo-question", [], null, null, null, k, At)), L._3(1, 49152, null, 0, Tn, [fl.a, jl.a, dt.a, pn.c, Sn], null, null)], null, null)
- }, {}, {}, []),
- wt = t(80),
- kt = L._2({
- encapsulation: 2,
- styles: [],
- data: {}
- }),
- Rt = L._0("page-sufo-end", An, function(n) {
- return L._24(0, [(n()(), L._4(0, 0, null, null, 1, "page-sufo-end", [], null, null, null, R, kt)), L._3(1, 49152, null, 0, An, [fl.a, jl.a, pn.c, Sn, dt.a, wt.a], null, null)], null, null)
- }, {}, {}, []),
- Ut = t(152),
- Lt = t(42),
- It = t(215),
- Pt = t(63),
- jt = t(56),
- xt = t(135),
- Nt = t(83),
- Gt = t(149),
- Dt = t(214),
- Kt = t(150),
- $t = t(134),
- qt = t(151),
- Ht = L._1(Qn, [nl.b], function(n) {
- return L._15([L._16(512, L.j, L.X, [
- [8, [ll.a, tl.a, ul.a, el.a, ol.a, al.a, il.a, rl.a, sl.a, Al, Gl, st, _t, bt, Tt, Rt]],
- [3, L.j], L.w
- ]), L._16(5120, L.v, L._14, [
- [3, L.v]
- ]), L._16(4608, Vl.k, Vl.j, [L.v, [2, Vl.s]]), L._16(5120, L.b, L._5, []), L._16(5120, L.t, L._11, []), L._16(5120, L.u, L._12, []), L._16(4608, U.c, U.q, [Vl.c]), L._16(6144, L.I, null, [U.c]), L._16(4608, U.f, Ut.a, []), L._16(5120, U.d, function(n, l, t, u, e) {
- return [new U.k(n, l), new U.o(t), new U.n(u, e)]
- }, [Vl.c, L.y, Vl.c, Vl.c, U.f]), L._16(4608, U.e, U.e, [U.d, L.y]), L._16(135680, U.m, U.m, [Vl.c]), L._16(4608, U.l, U.l, [U.e, U.m]), L._16(6144, L.G, null, [U.l]), L._16(6144, U.p, null, [U.m]), L._16(4608, L.L, L.L, [L.y]), L._16(4608, U.h, U.h, [Vl.c]), L._16(4608, U.i, U.i, [Vl.c]), L._16(4608, In.c, In.c, []), L._16(4608, In.g, In.b, []), L._16(5120, In.i, In.j, []), L._16(4608, In.h, In.h, [In.c, In.g, In.i]), L._16(4608, In.f, In.a, []), L._16(5120, In.d, In.k, [In.h, In.f]), L._16(4608, rn, rn, [$.n]), L._16(4608, Ct.k, Ct.k, []), L._16(4608, Ct.c, Ct.c, []), L._16(5120, G.f, Wn, [pn.c]), L._16(4608, G.c, G.e, []), L._16(4608, G.h, G.d, []), L._16(4608, G.b, G.a, []), L._16(4608, G.l, G.l, []), L._16(4608, G.i, G.i, [G.l, G.f, G.c, G.h, G.b, G.j, G.k]), L._16(4608, wt.a, wt.a, [dl.a, gl.a]), L._16(4608, Cl.a, Cl.a, []), L._16(4608, $l.a, $l.a, []), L._16(4608, Lt.a, Lt.a, [bl.a]), L._16(4608, kl.a, kl.a, [gl.a, bl.a, L.y, yl.a]), L._16(4608, dt.a, dt.a, [dl.a, gl.a]), L._16(5120, Vl.f, It.b, [Vl.q, [2, Vl.a], gl.a]), L._16(4608, Vl.e, Vl.e, [Vl.f]), L._16(5120, Pt.b, Pt.d, [dl.a, Pt.a]), L._16(5120, El.a, El.b, [dl.a, Pt.b, Vl.e, jt.b, L.j]), L._16(4608, xt.a, xt.a, [dl.a, gl.a, El.a]), L._16(4608, Nt.a, Nt.a, [dl.a, gl.a]), L._16(4608, it.a, it.a, [dl.a, gl.a, El.a]), L._16(4608, Gt.a, Gt.a, [gl.a, bl.a, yl.a, dl.a, ml.l]), L._16(4608, at.a, at.a, [dl.a, gl.a]), L._16(4608, vl.a, vl.a, [bl.a, gl.a]), L._16(4608, x.a, x.a, []), L._16(4608, N.a, N.a, []), L._16(4608, hn.a, hn.a, []), L._16(4608, _n.a, _n.a, []), L._16(4608, D.a, D.a, []), L._16(4608, sn.a, sn.a, []), L._16(4608, cn.a, cn.a, []), L._16(4608, K, K, [dt.a]), L._16(4608, Sn, Sn, [pn.c, Sl.a, bl.a]), L._16(512, Vl.b, Vl.b, []), L._16(512, L.m, Dt.a, []), L._16(256, gl.b, {}, []), L._16(1024, Kt.a, Kt.b, []), L._16(1024, bl.a, bl.b, [U.b, Kt.a, L.y]), L._16(1024, gl.a, gl.c, [gl.b, bl.a]), L._16(512, yl.a, yl.a, [bl.a]), L._16(512, pt.a, pt.a, []), L._16(512, dl.a, dl.a, [gl.a, bl.a, [2, pt.a]]), L._16(512, ml.l, ml.l, [dl.a]), L._16(256, Pt.a, {
- links: []
- }, []), L._16(512, L.h, L.h, []), L._16(512, $t.a, $t.a, [L.h]), L._16(1024, jt.b, jt.c, [$t.a, L.r]), L._16(1024, L.c, function(n, l, t, u, e, o, a, i, r, s, c, _, h) {
- return [U.s(n), qt.a(l), Cl.b(t, u), Gt.b(e, o, a, i, r), jt.d(s, c, _, h)]
- }, [
- [2, L.x], gl.a, bl.a, yl.a, gl.a, bl.a, yl.a, dl.a, ml.l, gl.a, Pt.a, jt.b, L.y
- ]), L._16(512, L.d, L.d, [
- [2, L.c]
- ]), L._16(131584, L.f, L.f, [L.y, L.Y, L.r, L.m, L.j, L.d]), L._16(512, L.e, L.e, [L.f]), L._16(512, U.a, U.a, [
- [3, U.a]
- ]), L._16(512, In.e, In.e, []), L._16(512, pn.e, pn.e, []), L._16(512, pn.d, pn.d, []), L._16(512, G.g, G.g, []), L._16(131584, $.a, $.a, []), L._16(2048, $.h, null, [$.a]), L._16(256, $.u, void 0, []), L._16(1024, $.d, $.z, [$.u]), L._16(256, $.t, {
- loading: e,
- loaded: o,
- queryParams: a,
- error: i
- }, []), L._16(2048, $.w, null, [$.t]), L._16(1024, $.c, $.y, [L.r, $.t, $.w]), L._16(256, $.v, $.A, []), L._16(256, $.e, [], []), L._16(1024, $.f, $.C, [$.v, $.e]), L._16(131584, $.g, $.g, [$.h, $.d, $.c, $.f]), L._16(2048, $.i, null, [$.g]), L._16(131584, $.k, $.k, []), L._16(512, $.q, $.q, [$.a, $.i, $.k]), L._16(1024, Pn.l, Pn.g, []), L._16(512, Pn.m, Pn.m, [Pn.l]), L._16(512, Pn.c, Pn.c, [Pn.m]), L._16(131584, $.l, $.l, [$.a, $.i, $.k, $.d]), L._16(2048, $.m, null, [$.l]), L._16(512, $.n, $.n, [$.m, $.a, $.g]), L._16(131584, Pn.n, Pn.n, [Pn.c, $.n]), L._16(512, Pn.a, Pn.a, [$.k]), L._16(512, xl.a, xl.a, [dl.a, gl.a]), L._16(512, Mn, Mn, [xl.a]), L._16(512, Fn, Fn, [Pn.a, Mn]), L._16(1024, Pn.j, Pn.f, [Fn]), L._16(512, $.p, $.p, []), L._16(512, Pn.h, Pn.h, [Pn.c, Pn.n, $.n, Pn.j, [2, $.p]]), L._16(512, Vn, Vn, []), L._16(512, Ct.j, Ct.j, []), L._16(512, Ct.d, Ct.d, []), L._16(512, Ct.i, Ct.i, []), L._16(512, It.a, It.a, []), L._16(1024, $.j, function() {
- return [{
- key: "currentUser",
- reducerFactory: $.A,
- metaReducers: [],
- initialState: void 0
- }, {
- key: "authCheck",
- reducerFactory: $.A,
- metaReducers: [],
- initialState: void 0
- }]
- }, []), L._16(1024, $.r, function() {
- return [s, r]
- }, []), L._16(1024, $.s, function(n, l) {
- return [n, l]
- }, [$.r, $.r]), L._16(1024, $.b, function(n, l, t, u, e, o) {
- return [$.x(n, l, t), $.x(u, e, o)]
- }, [L.r, $.r, $.s, L.r, $.r, $.s]), L._16(131584, $.o, $.o, [$.j, $.b, $.g]), L._16(512, pn.k, pn.k, []), L._16(2048, pn.j, null, [pn.k]), L._16(512, pn.h, pn.h, [pn.j]), L._16(2048, pn.b, null, [pn.h]), L._16(256, pn.l, "XSRF-TOKEN", []), L._16(512, pn.i, pn.n, [Vl.c, L.A, pn.l]), L._16(256, pn.m, "X-XSRF-TOKEN", []), L._16(512, pn.o, pn.o, [pn.i, pn.m]), L._16(1024, pn.a, function(n) {
- return [n]
- }, [pn.o]), L._16(1024, pn.f, pn.p, [pn.b, [2, pn.a]]), L._16(512, pn.c, pn.c, [pn.f]), L._16(256, Sl.b, {
- name: "__mydb",
- driverOrder: ["localstorage"]
- }, []), L._16(1024, Sl.a, Sl.c, [Sl.b]), L._16(512, vn, vn, [pn.c, Sl.a, bl.a]), L._16(512, Bn, Bn, [Pn.a, vn]), L._16(1024, Pn.k, function(n) {
- return [Pn.f(n)]
- }, [Bn]), L._16(512, Pn.i, Pn.i, [Pn.h, Pn.k, [2, $.p]]), L._16(512, Pn.d, Pn.d, []), L._16(512, zn, zn, []), L._16(512, j.a, j.a, []), L._16(512, Qn, Qn, []), L._16(256, G.k, void 0, []), L._16(256, G.j, void 0, []), L._16(256, nl.a, Un, []), L._16(256, Vl.a, "/", [])])
- });
- Object(L.R)(), Object(U.j)().bootstrapModuleFactory(Ht)
- }
- }, [229]);
Add Comment
Please, Sign In to add comment