(function () {
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["main"], {
/***/
0:
/*!***************************!*\
!*** multi ./src/main.ts ***!
\***************************/
/*! no static exports found */
/***/
function _(module, exports, __webpack_require__) {
module.exports = __webpack_require__(
/*! H:\1Pay1Move\1Pay1Move\src\main.ts */
"zUnb");
/***/
},
/***/
"0InE":
/*!*****************************************!*\
!*** ./src/services/mlogger.service.ts ***!
\*****************************************/
/*! exports provided: Mlogger, MloggerProvider */
/***/
function InE(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Mlogger", function () {
return Mlogger;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "MloggerProvider", function () {
return MloggerProvider;
});
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! tslib */
"mrSG");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! @angular/core */
"fXoL");
/* harmony import */
var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! rxjs */
"qCKp");
/* harmony import */
var _environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! ../environments/environment */
"AytR");
/* harmony import */
var _sentry_angular__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
/*! @sentry/angular */
"UH2p");
/*
Generated class for the MloggerProvider provider.
See https://angular.io/docs/ts/latest/guide/dependency-injection.html
for more info on providers and Angular 2 DI.
*/
var Mlogger = {
service: "sentry",
severity: {
debug2: -1,
debug: 0,
info: 1,
warn: 2,
error: 3,
none: 4
},
step: {
start: 0,
end: 99,
log: 98
},
sampling: 1.0
};
var MloggerProvider = /*#__PURE__*/function () {
function MloggerProvider() {
_classCallCheck(this, MloggerProvider);
var startedAt = Date.now();
this.severity = typeof _environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].mloggerSeverity ? _environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].mloggerSeverity : Mlogger.severity.info;
this.tz = '+00:00';
this.sampling = Mlogger.sampling;
var endedAt = Date.now();
var duration = endedAt - startedAt;
}
_createClass(MloggerProvider, [{
key: "log_init",
value: function log_init(service) {
var apptag = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'mlogger';
var session = arguments.length > 2 ? arguments[2] : undefined;
var severity = arguments.length > 3 ? arguments[3] : undefined;
var sampling = arguments.length > 4 ? arguments[4] : undefined;
var flushinterval = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0;
var tz = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : '+00:00';
var params = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : {};
if (service) this.service = service;
if (apptag) this.apptag = apptag;
if (session) this.session = session;
if (typeof severity) this.severity = severity;
if (tz) this.tz = tz;
if (sampling) this.sampling = sampling;
if (flushinterval) this.flushinterval = flushinterval;
switch (service) {
case 'sentry':
// Sentry.init(params); // this is implemented in main.ts
break;
default:
return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["throwError"])(service + ' service is not supported in mlogger provider.');
}
return true;
}
}, {
key: "log",
value: function log(severity, step, ts, user, module, ip, msg, msgdetails, params) {
// TODO Perform parameter validation
if (severity >= this.severity) {
switch (this.service) {
case 'sentry':
/**Sentry start */
this.log_flush();
_sentry_angular__WEBPACK_IMPORTED_MODULE_4__["configureScope"](function (scope) {
scope.setUser({
'username': user
});
switch (severity) {
case Mlogger.severity.debug2:
scope.setLevel(_sentry_angular__WEBPACK_IMPORTED_MODULE_4__["Severity"].Debug);
break;
case Mlogger.severity.debug:
scope.setLevel(_sentry_angular__WEBPACK_IMPORTED_MODULE_4__["Severity"].Debug);
break;
case Mlogger.severity.info:
scope.setLevel(_sentry_angular__WEBPACK_IMPORTED_MODULE_4__["Severity"].Info);
break;
case Mlogger.severity.warn:
scope.setLevel(_sentry_angular__WEBPACK_IMPORTED_MODULE_4__["Severity"].Warning);
break;
case Mlogger.severity.error:
scope.setLevel(_sentry_angular__WEBPACK_IMPORTED_MODULE_4__["Severity"].Error);
break;
case Mlogger.severity.none:
scope.setLevel(_sentry_angular__WEBPACK_IMPORTED_MODULE_4__["Severity"].Log);
break;
default:
scope.setLevel(_sentry_angular__WEBPACK_IMPORTED_MODULE_4__["Severity"].Log);
}
});
switch (step) {
case Mlogger.step.start:
_sentry_angular__WEBPACK_IMPORTED_MODULE_4__["addBreadcrumb"]({
type: this.apptag,
level: _sentry_angular__WEBPACK_IMPORTED_MODULE_4__["Severity"].Info,
event_id: '',
category: this.apptag,
message: typeof params && typeof params[0] && typeof params[0].message ? params[0].message : 'undefined',
data: typeof params && typeof params[0] && typeof params[0].data ? params[0].data : {},
timestamp: typeof params && typeof params[0] && typeof params[0].timestamp ? params[0].timestamp : 0
});
_sentry_angular__WEBPACK_IMPORTED_MODULE_4__["captureMessage"](msg);
break;
case Mlogger.step.log:
_sentry_angular__WEBPACK_IMPORTED_MODULE_4__["addBreadcrumb"]({
type: this.apptag,
level: _sentry_angular__WEBPACK_IMPORTED_MODULE_4__["Severity"].Info,
event_id: '',
category: this.apptag,
message: typeof params && typeof params.message ? params.message : 'undefined',
data: typeof params && typeof params.data ? params.data : {},
timestamp: typeof params && typeof params.timestamp ? params.timestamp : 0
});
_sentry_angular__WEBPACK_IMPORTED_MODULE_4__["captureMessage"](msg);
break;
case Mlogger.step.end:
var start = typeof params && typeof params[0] && typeof params[0].data ? params[0].data : {};
_sentry_angular__WEBPACK_IMPORTED_MODULE_4__["addBreadcrumb"]({
type: this.apptag,
level: _sentry_angular__WEBPACK_IMPORTED_MODULE_4__["Severity"].Info,
event_id: '',
category: this.apptag,
message: typeof params && typeof params[0] && typeof params[0].message ? params[0].message : 'undefined',
data: start,
timestamp: typeof params && typeof params[0] && typeof params[0].timestamp ? params[0].timestamp : 0
});
var end = typeof params && typeof params[1] && typeof params[1].data ? params[1].data : {};
end.fn_start_time = start.fn_start_time;
end.fn_exe_time = ((end.fn_end_time - end.fn_start_time) / 1000).toFixed(2) + 's';
_sentry_angular__WEBPACK_IMPORTED_MODULE_4__["addBreadcrumb"]({
type: this.apptag,
level: _sentry_angular__WEBPACK_IMPORTED_MODULE_4__["Severity"].Info,
event_id: '',
category: this.apptag,
message: typeof params && typeof params[1] && typeof params[1].message ? params[1].message : 'undefined',
data: end,
timestamp: typeof params && typeof params[1] && typeof params[1].timestamp ? params[1].timestamp : 0
});
_sentry_angular__WEBPACK_IMPORTED_MODULE_4__["captureMessage"](msg + ' ' + end.fn_exe_time);
break;
}
/**Sentry end */
break;
default:
return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["throwError"])(this.service + ' service is not supported in mlogger provider.');
}
}
return true;
} // forced flush of logs, empty for sentry.io
}, {
key: "log_flush",
value: function log_flush() {
switch (this.service) {
case 'sentry':
_sentry_angular__WEBPACK_IMPORTED_MODULE_4__["configureScope"](function (scope) {
scope.clearBreadcrumbs();
});
break;
}
}
}]);
return MloggerProvider;
}();
MloggerProvider.ctorParameters = function () {
return [];
};
MloggerProvider = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
providedIn: 'root'
})], MloggerProvider);
/***/
},
/***/
"0lNN":
/*!*************************************************************************!*\
!*** ./src/models/helpdesk-attachment/helpdesk-attachment.component.ts ***!
\*************************************************************************/
/*! exports provided: HelpdeskAttachmentComponent */
/***/
function lNN(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "HelpdeskAttachmentComponent", function () {
return HelpdeskAttachmentComponent;
});
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! tslib */
"mrSG");
/* harmony import */
var _raw_loader_helpdesk_attachment_component_html__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! raw-loader!./helpdesk-attachment.component.html */
"nBoA");
/* harmony import */
var _helpdesk_attachment_component_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ./helpdesk-attachment.component.scss */
"4Js/");
/* harmony import */
var src_services_common_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! src/services/common.service */
"FBGF");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
/*! @angular/core */
"fXoL");
/* harmony import */
var _ionic_angular__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
/*! @ionic/angular */
"TEn/");
/* harmony import */
var _capacitor_camera__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
/*! @capacitor/camera */
"/s3u");
/* harmony import */
var _capacitor_filesystem__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
/*! @capacitor/filesystem */
"F7bV");
var HelpdeskAttachmentComponent = /*#__PURE__*/function () {
function HelpdeskAttachmentComponent(modelController, alert, commonService) {
_classCallCheck(this, HelpdeskAttachmentComponent);
this.modelController = modelController;
this.alert = alert;
this.commonService = commonService;
this.data = {
userOption: '',
file: '',
docKey: ''
};
this.filename = '';
this.isValidFileSize = false;
}
_createClass(HelpdeskAttachmentComponent, [{
key: "ngOnInit",
value: function ngOnInit() {
this.platform = this.commonService.getLocalPlatformDetail();
if (this._isDisputeForm) {
this.disputeDocTypeList = JSON.parse(localStorage.getItem("disputeDocTypeList"));
this.optionField = Object.values(this.disputeDocTypeList);
} else {
this.ticketDocTypeList = JSON.parse(localStorage.getItem("ticketDocTypeList"));
this.optionField = Object.values(this.ticketDocTypeList);
}
}
}, {
key: "onFileSelected",
value: function onFileSelected(event) {
this.fileData = event.target.files[0];
this.filename = this.fileData.name;
this.isValidFileSize = this.commonService.fileValidation(this.fileData.size);
}
}, {
key: "cancel",
value: function cancel() {
this.data.userOption = 'cancel';
this.modelController.dismiss(this.data);
} //-------------------------------For upload captured image----------------------------------------------------
}, {
key: "chooseFile",
value: function chooseFile() {
this.simpleConfirm1('Please select option to upload!', 'You can use Camera or Gallery to upload photo');
}
}, {
key: "simpleConfirm1",
value: function simpleConfirm1(headerVal, messageVal) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
var _this = this;
var alert;
return regeneratorRuntime.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return this.alert.create({
cssClass: 'my-custom-class',
mode: 'ios',
header: headerVal,
message: messageVal,
buttons: [{
text: 'Camera',
handler: function handler() {
_this.selectImage();
}
}, {
text: 'Gallery',
handler: function handler() {
_this.pickImageFromGallery();
}
}, {
text: 'Cancel',
handler: function handler() {}
}]
});
case 2:
alert = _context.sent;
_context.next = 5;
return alert.present();
case 5:
case "end":
return _context.stop();
}
}
}, _callee, this);
}));
}
}, {
key: "pickImageFromGallery",
value: function pickImageFromGallery() {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
var image;
return regeneratorRuntime.wrap(function _callee2$(_context2) {
while (1) {
switch (_context2.prev = _context2.next) {
case 0:
_context2.next = 2;
return _capacitor_camera__WEBPACK_IMPORTED_MODULE_6__["Camera"].getPhoto({
quality: 70,
allowEditing: false,
resultType: _capacitor_camera__WEBPACK_IMPORTED_MODULE_6__["CameraResultType"].DataUrl,
source: _capacitor_camera__WEBPACK_IMPORTED_MODULE_6__["CameraSource"].Photos // Camera, Photos or Prompt!
});
case 2:
image = _context2.sent;
if (image) {
this.saveImage(image.dataUrl);
}
case 4:
case "end":
return _context2.stop();
}
}
}, _callee2, this);
}));
}
}, {
key: "selectImage",
value: function selectImage() {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
var image;
return regeneratorRuntime.wrap(function _callee3$(_context3) {
while (1) {
switch (_context3.prev = _context3.next) {
case 0:
_context3.next = 2;
return _capacitor_camera__WEBPACK_IMPORTED_MODULE_6__["Camera"].getPhoto({
quality: 70,
allowEditing: false,
resultType: _capacitor_camera__WEBPACK_IMPORTED_MODULE_6__["CameraResultType"].DataUrl,
source: _capacitor_camera__WEBPACK_IMPORTED_MODULE_6__["CameraSource"].Camera // Camera, Photos or Prompt!
});
case 2:
image = _context3.sent;
if (image) {
this.saveImage(image.dataUrl);
}
case 4:
case "end":
return _context3.stop();
}
}
}, _callee3, this);
}));
}
}, {
key: "saveImage",
value: function saveImage(image) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {
var fileName, savedFile;
return regeneratorRuntime.wrap(function _callee4$(_context4) {
while (1) {
switch (_context4.prev = _context4.next) {
case 0:
fileName = new Date().getTime() + '.jpeg';
_context4.next = 3;
return _capacitor_filesystem__WEBPACK_IMPORTED_MODULE_7__["Filesystem"].writeFile({
path: fileName,
data: image,
directory: _capacitor_filesystem__WEBPACK_IMPORTED_MODULE_7__["Directory"].Documents
});
case 3:
savedFile = _context4.sent;
_context4.next = 6;
return this.dataURLtoFile(image, fileName);
case 6:
this.fileData = _context4.sent;
this.filename = fileName;
this.isValidFileSize = this.commonService.fileValidation(this.fileData.size);
case 9:
case "end":
return _context4.stop();
}
}
}, _callee4, this);
}));
}
}, {
key: "dataURLtoFile",
value: function dataURLtoFile(dataurl, filename) {
var arr = dataurl.split(','),
mime = dataurl.split(';')[0].split(':')[1],
bstr = atob(arr[1]),
n = bstr.length,
u8arr = new Uint8Array(n);
while (n--) {
u8arr[n] = bstr.charCodeAt(n);
}
return new File([u8arr], filename, {
type: mime
});
} //-----------------------------------------------------------------------------------
}, {
key: "confirm",
value: function confirm() {
var _this2 = this;
if (this._isDisputeForm) {
var key = Object.keys(this.disputeDocTypeList).find(function (key) {
return _this2.disputeDocTypeList[key] === _this2.selectedDocType;
});
this.data.docKey = key;
} else {
var _key = Object.keys(this.ticketDocTypeList).find(function (key) {
return _this2.ticketDocTypeList[key] === _this2.selectedDocType;
});
this.data.docKey = _key;
}
this.data.file = this.fileData;
this.data.userOption = 'confirm';
this.modelController.dismiss(this.data);
}
}]);
return HelpdeskAttachmentComponent;
}();
HelpdeskAttachmentComponent.ctorParameters = function () {
return [{
type: _ionic_angular__WEBPACK_IMPORTED_MODULE_5__["ModalController"]
}, {
type: _ionic_angular__WEBPACK_IMPORTED_MODULE_5__["AlertController"]
}, {
type: src_services_common_service__WEBPACK_IMPORTED_MODULE_3__["CommonService"]
}];
};
HelpdeskAttachmentComponent.propDecorators = {
_isDisputeForm: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Input"]
}]
};
HelpdeskAttachmentComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_4__["Component"])({
selector: 'app-helpdesk-attachment',
template: _raw_loader_helpdesk_attachment_component_html__WEBPACK_IMPORTED_MODULE_1__["default"],
styles: [_helpdesk_attachment_component_scss__WEBPACK_IMPORTED_MODULE_2__["default"]]
})], HelpdeskAttachmentComponent);
/***/
},
/***/
"2l2O":
/*!*****************************************!*\
!*** ./src/services/profile.service.ts ***!
\*****************************************/
/*! exports provided: ProfileService */
/***/
function l2O(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ProfileService", function () {
return ProfileService;
});
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! tslib */
"mrSG");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! @angular/core */
"fXoL");
/* harmony import */
var _base_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ./base-service */
"4YT6");
/* harmony import */
var _common_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! ./common.service */
"FBGF");
/* harmony import */
var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
/*! ./constants */
"k8oS");
var ProfileService = /*#__PURE__*/function (_base_service__WEBPAC) {
_inherits(ProfileService, _base_service__WEBPAC);
var _super = _createSuper(ProfileService);
function ProfileService(_commonService) {
var _this3;
_classCallCheck(this, ProfileService);
_this3 = _super.call(this);
_this3._commonService = _commonService;
_this3.fileName = 'profile.service.ts';
_this3.userProfile = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
return _this3;
}
_createClass(ProfileService, [{
key: "getProfile",
value: function getProfile() {
try {
var dataObj = {
offset: 0,
method: 'get',
api_url: this.getLocalapiBaseURL() + _constants__WEBPACK_IMPORTED_MODULE_4__["CONSTANTS"].PROFILE_API,
local_json_file: 'local-profile',
param_data: {},
mapcol: false
};
var resp = this._commonService.fetchData(dataObj); // resp.subscribe((data) => {
// if (data.status)
// this.userProfile.emit({ data: data.data });
// });
return resp;
} catch (error) {
var obj = {
fileName: this.fileName,
functionName: 'getProfile()',
error: error
};
this._commonService.systemException(obj);
}
}
}]);
return ProfileService;
}(_base_service__WEBPACK_IMPORTED_MODULE_2__["BaseService"]);
ProfileService.ctorParameters = function () {
return [{
type: _common_service__WEBPACK_IMPORTED_MODULE_3__["CommonService"]
}];
};
ProfileService = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
providedIn: 'root'
})], ProfileService);
/***/
},
/***/
"3rhY":
/*!***************************************************************************************************************!*\
!*** ./node_modules/raw-loader/dist/cjs.js!./src/models/vehicle-attachment/vehicle-attachment.component.html ***!
\***************************************************************************************************************/
/*! exports provided: default */
/***/
function rhY(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */
__webpack_exports__["default"] = "\r\n \r\n \r\n \r\n \r\n Back\r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n \r\n \r\n \r\n\r\n\r\n\r\n\r\n \r\n\r\n\r\n\r\n \r\n \r\n \r\n Submit\r\n \r\n \r\n \r\n \r\n";
/***/
},
/***/
"4Js/":
/*!***************************************************************************!*\
!*** ./src/models/helpdesk-attachment/helpdesk-attachment.component.scss ***!
\***************************************************************************/
/*! exports provided: default */
/***/
function Js(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */
__webpack_exports__["default"] = "\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJoZWxwZGVzay1hdHRhY2htZW50LmNvbXBvbmVudC5zY3NzIn0= */";
/***/
},
/***/
"4YT6":
/*!**************************************!*\
!*** ./src/services/base-service.ts ***!
\**************************************/
/*! exports provided: BaseService */
/***/
function YT6(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "BaseService", function () {
return BaseService;
});
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! tslib */
"mrSG");
/* harmony import */
var _environments_environment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ../environments/environment */
"AytR");
/* harmony import */
var _capacitor_network__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! @capacitor/network */
"yOzG");
/* harmony import */
var _capacitor_device__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! @capacitor/device */
"rvvs");
/* harmony import */
var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
/*! ./constants */
"k8oS"); // import { Plugins } from '@capacitor/core';
// const { Device } = Plugins;
// Don't annotate it with @Injectable() ! It's a simple class.
// This class will create function which are not dependent on any of the services or modules
// This class is purely design foe some custom/helpers functions without dependency
var BaseService = /*#__PURE__*/function () {
function BaseService() {
_classCallCheck(this, BaseService);
this._month = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sept", "Oct", "Nov", "Dec"];
this.prioritySort = function (field, order) {
if (order === "asc") {
return function (x, y) {
return x[field] - y[field];
};
} else if (order === "desc") {
return function (x, y) {
return y[field] - x[field];
};
}
};
this.stringSort = function (field, order) {
if (order === "asc") {
return function (x, y) {
return x[field].toLowerCase() > y[field].toLowerCase() ? 1 : -1;
};
} else if (order === "desc") {
return function (x, y) {
return y[field].toLowerCase() > x[field].toLowerCase() ? 1 : -1;
};
}
};
this.getDeviceInfo();
}
_createClass(BaseService, [{
key: "log",
value: function log(value, type) {
// type [info,error,log,warn,debug]
if (!_environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].production) {
if (type === "error") console.error(value);else if (type === "warn") console.warn(value);else console.log(value);
}
}
}, {
key: "getTicketTags",
value: function getTicketTags(object) {
var formEle = {
wallettxnid: {
id: "wallettxnid",
key: "wallettxnid",
type: "input",
label: "Wallet Txn ID",
placeholder: _constants__WEBPACK_IMPORTED_MODULE_4__["CONSTANTS"].FORMLY_PLACEHOLDER_TEXT,
description: "Wallet Txn ID",
options: null,
maxLength: 50,
hideExpression: null,
group: "1"
},
paymode: {
id: "paymode",
key: "paymode",
type: "input",
label: "Payment Mode",
placeholder: _constants__WEBPACK_IMPORTED_MODULE_4__["CONSTANTS"].FORMLY_PLACEHOLDER_TEXT,
description: "Payment Mode",
options: null,
maxLength: 50,
hideExpression: null,
group: "1"
},
payac: {
id: "payac",
key: "payac",
type: "input",
label: "Payment Account",
placeholder: _constants__WEBPACK_IMPORTED_MODULE_4__["CONSTANTS"].FORMLY_PLACEHOLDER_TEXT,
description: "Payment Account",
options: null,
maxLength: 50,
hideExpression: null,
group: "1"
},
paytxnid: {
id: "paytxnid",
key: "paytxnid",
type: "input",
label: "Payment Txn ID",
placeholder: _constants__WEBPACK_IMPORTED_MODULE_4__["CONSTANTS"].FORMLY_PLACEHOLDER_TEXT,
description: "Payment Txn ID",
options: null,
maxLength: 50,
hideExpression: null,
group: "1"
},
paybank: {
id: "paybank",
key: "paybank",
type: "input",
label: "Payee Bank",
placeholder: _constants__WEBPACK_IMPORTED_MODULE_4__["CONSTANTS"].FORMLY_PLACEHOLDER_TEXT,
description: "Payee Bank",
options: null,
maxLength: 50,
hideExpression: null,
group: "1"
},
payts: {
id: "payts",
key: "payts",
type: "date",
label: "Payment Date",
placeholder: _constants__WEBPACK_IMPORTED_MODULE_4__["CONSTANTS"].FORMLY_PLACEHOLDER_TEXT,
description: "Payment Date",
options: null,
hideExpression: null,
group: "1"
},
vrn: {
id: "vrn",
key: "vrn",
type: "select",
label: "VRN",
placeholder: _constants__WEBPACK_IMPORTED_MODULE_4__["CONSTANTS"].FORMLY_PLACEHOLDER_TEXT,
description: "VRN",
maxLength: 50,
options: object.vrn,
hideExpression: null,
group: "2"
},
addr: {
id: "addr",
key: "addr",
type: "input",
label: "Address",
placeholder: _constants__WEBPACK_IMPORTED_MODULE_4__["CONSTANTS"].FORMLY_PLACEHOLDER_TEXT,
description: "Address",
options: null,
maxLength: 50,
hideExpression: null,
group: "1"
},
email: {
id: "email",
key: "email",
type: "email",
label: "Email",
placeholder: _constants__WEBPACK_IMPORTED_MODULE_4__["CONSTANTS"].FORMLY_PLACEHOLDER_TEXT,
description: "Email",
options: null,
maxLength: 50,
hideExpression: null,
group: "1"
},
phone: {
id: "phone",
key: "phone",
type: "number",
label: "Phone",
placeholder: _constants__WEBPACK_IMPORTED_MODULE_4__["CONSTANTS"].FORMLY_PLACEHOLDER_TEXT_PHONE,
description: "Phone",
options: null,
maxLength: 10,
hideExpression: null,
group: "1"
},
name: {
id: "name",
key: "name",
type: "input",
label: "Name",
placeholder: _constants__WEBPACK_IMPORTED_MODULE_4__["CONSTANTS"].FORMLY_PLACEHOLDER_TEXT,
description: "Name",
options: null,
maxLength: 50,
hideExpression: null,
group: "1"
},
tolltxnid: {
id: "tolltxnid",
key: "tolltxnid",
type: "input",
label: "Toll Txn ID",
placeholder: _constants__WEBPACK_IMPORTED_MODULE_4__["CONSTANTS"].FORMLY_PLACEHOLDER_TEXT,
description: "Toll Txn ID",
options: null,
maxLength: 50,
hideExpression: null,
group: "1"
},
remarks: {
id: "remarks",
key: "remarks",
type: "textarea",
label: "Remarks",
placeholder: "You comments",
description: "Remarks",
options: null,
maxLength: 199,
hideExpression: null,
group: "2"
},
reasonCode: {
id: "reasonCode",
key: "reasonCode",
type: "select",
label: "Reason Code",
placeholder: "Reason Code",
description: "Reason Code",
options: null,
maxLength: 50,
hideExpression: null,
group: "2",
defaultval: ""
},
acqTxnId: {
id: "acqTxnId",
key: "acqTxnId",
type: "input",
label: "Txn ID",
placeholder: "Txn ID",
description: "Txn ID",
options: null,
maxLength: 50,
hideExpression: null,
group: "1",
defaultval: ""
},
fullPartialIndicator: {
id: "fullPartialIndicator",
key: "fullPartialIndicator",
type: "radio",
label: "Refund Type",
placeholder: "Refund Type",
description: "Refund Type",
options: [{
val: "F",
label: "Full"
}, {
val: "P",
label: "Partial"
}],
maxLength: 1,
hideExpression: null,
group: "2",
defaultval: "F"
},
txnAmount: {
id: "txnAmount",
key: "txnAmount",
type: "number",
label: "Txn Amount",
placeholder: "Txn Amount",
description: "Txn Amount",
options: null,
maxLength: 10,
hideExpression: null,
group: "1",
defaultval: "0"
},
remark: {
id: "remark",
key: "remark",
type: "textarea",
label: "Remarks",
placeholder: "You comments",
description: "Remarks",
options: null,
maxLength: 199,
hideExpression: null,
group: "2",
defaultval: ""
}
};
return formEle;
}
}, {
key: "getDisputeDefaultForm_DELETE",
value: function getDisputeDefaultForm_DELETE(obj) {
var commonFileds = [{
className: "templet",
fieldGroupClassName: "display-flex",
fieldGroup: [{
className: "flex-2",
template: '
' + "Txn Id " + '' + "*" + "
"
}]
}, {
fieldGroupClassName: "display-flex",
fieldGroup: [{
className: "flex",
key: "acqTxnId",
type: "input",
templateOptions: {
label: "",
placeholder: "Txn Id",
description: "Txn Id",
required: true,
hideRequiredMarker: true
}
}]
}, {
className: "templet",
fieldGroupClassName: "display-flex",
fieldGroup: [{
className: "flex-2",
template: '
' + "Txn Amount " + '' + "*" + "
"
}]
}, {
fieldGroupClassName: "display-flex",
fieldGroup: [{
className: "flex",
key: "txnAmount",
type: "input",
//defaultValue: obj?.txn_amount,
templateOptions: {
label: "",
type: "number",
min: 1,
placeholder: "Txt amount",
description: "txt amount",
required: true,
hideRequiredMarker: true
}
}]
}, {
className: "templet",
fieldGroupClassName: "display-flex",
fieldGroup: [{
className: "flex-2",
template: '
' + "Refund Type" + '' + "*" + "
"
}]
}, {
fieldGroupClassName: "display-flex",
fieldGroup: [{
className: "flex",
key: "fullPartialIndicator",
type: "radio",
defaultValue: "F",
templateOptions: {
label: "Select refund type",
placeholder: "Placeholder",
description: "Description",
required: true,
options: [{
value: "F",
label: "Full Refund"
}, {
value: "P",
label: "Partial Refund"
}]
}
}]
}, {
fieldGroupClassName: "display-flex",
fieldGroup: []
}, {
className: "templet",
fieldGroupClassName: "display-flex",
fieldGroup: [{
className: "flex-2",
template: '
' + "Remark" + '' + "*" + "
"
}]
}, {
fieldGroupClassName: "display-flex",
fieldGroup: [{
className: "flex",
key: "remarks",
type: "textarea",
templateOptions: {
"class": "textarea-formly",
label: null,
placeholder: "",
description: "Remark",
maxLength: 199,
required: true,
hideRequiredMarker: true
}
}]
}];
return commonFileds;
}
}, {
key: "getDefaultForm",
value: function getDefaultForm() {
var commonFileds = [{
fieldGroupClassName: "display-flex",
fieldGroup: []
}, {
className: "templet",
fieldGroupClassName: "display-flex",
fieldGroup: [{
className: "flex-2",
template: '
' + "Remark" + '' + "*" + "
"
}]
}, {
fieldGroupClassName: "display-flex",
fieldGroup: [{
className: "flex",
key: "remarks",
type: "textarea",
templateOptions: {
"class": "textarea-formly",
label: null,
placeholder: "",
description: "Remark",
maxLength: 199,
required: true,
hideRequiredMarker: true
}
}]
}];
return commonFileds;
}
}, {
key: "getDeviceInfo",
value: function getDeviceInfo() {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
var info;
return regeneratorRuntime.wrap(function _callee5$(_context5) {
while (1) {
switch (_context5.prev = _context5.next) {
case 0:
_context5.next = 2;
return _capacitor_device__WEBPACK_IMPORTED_MODULE_3__["Device"].getInfo();
case 2:
info = _context5.sent;
localStorage.setItem("platformDetail", info.platform);
return _context5.abrupt("return", info);
case 5:
case "end":
return _context5.stop();
}
}
}, _callee5);
}));
}
}, {
key: "getAppVersion",
value: function getAppVersion() {
return localStorage.getItem("appVersion") !== null ? localStorage.getItem("appVersion") : null;
}
}, {
key: "setAppVersion",
value: function setAppVersion() {
if (localStorage.getItem("appVersion") === null) {
var version = _environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].appVersion;
localStorage.setItem("appVersion", version);
}
}
}, {
key: "getLocalPlatformDetail",
value: function getLocalPlatformDetail() {
return localStorage.getItem("platformDetail") !== null ? localStorage.getItem("platformDetail") : null;
}
}, {
key: "getglobalInitURL",
value: function getglobalInitURL() {
return localStorage.getItem("globalInitURL") !== null ? localStorage.getItem("globalInitURL") : null;
}
}, {
key: "setglobalInitURL",
value: function setglobalInitURL() {
if (localStorage.getItem("globalInitURL") === null) {
var globalInit = _constants__WEBPACK_IMPORTED_MODULE_4__["CONSTANTS"].GLOBAL_INIT_URL;
localStorage.setItem("globalInitURL", globalInit);
}
}
}, {
key: "getpackageId",
value: function getpackageId() {
return localStorage.getItem("packageId") !== null ? localStorage.getItem("packageId") : null;
}
}, {
key: "setpackageId",
value: function setpackageId() {
if (localStorage.getItem("packageId") === null) {
var packageId = _environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].packageId;
localStorage.setItem("packageId", packageId);
}
}
}, {
key: "setFCMToken",
value: function setFCMToken(token) {
localStorage.setItem("fcmToken", token);
}
}, {
key: "getFCMToken",
value: function getFCMToken() {
return localStorage.getItem("fcmToken") !== null ? localStorage.getItem("fcmToken") : null;
}
}, {
key: "getDisplayDtTm",
value: function getDisplayDtTm(dateTime) {
var date = new Date(dateTime);
var dd = date.getDate();
var mm = this._month[date.getMonth()];
var Y = date.getFullYear();
var timing = date.getHours() + ":" + (date.getMinutes() < 10 ? "0" : "") + date.getMinutes();
return dd + " " + mm + " " + Y + ", " + timing;
}
}, {
key: "isOnLine_1",
value: function isOnLine_1() {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee6() {
var status;
return regeneratorRuntime.wrap(function _callee6$(_context6) {
while (1) {
switch (_context6.prev = _context6.next) {
case 0:
_context6.next = 2;
return _capacitor_network__WEBPACK_IMPORTED_MODULE_2__["Network"].getStatus();
case 2:
status = _context6.sent;
return _context6.abrupt("return", status.connected);
case 4:
case "end":
return _context6.stop();
}
}
}, _callee6);
}));
}
}, {
key: "isOnLine",
value: function isOnLine() {
return navigator.onLine;
} // This functions return the current date in timestamp
}, {
key: "getTimestamp",
value: function getTimestamp() {
var date = new Date();
var timeStamp = date.toISOString(); //this.log(new Date().toISOString() + '<: timeStamp :>' + timeStamp);
return new Date().toISOString();
}
}, {
key: "differenceInDays",
value: function differenceInDays(date1, date2) {
var dt1 = new Date(date1);
var dt2 = new Date(date2);
return Math.floor((Date.UTC(dt2.getFullYear(), dt2.getMonth(), dt2.getDate()) - Date.UTC(dt1.getFullYear(), dt1.getMonth(), dt1.getDate())) / (1000 * 60 * 60 * 24));
}
}, {
key: "differenceInMinutes",
value: function differenceInMinutes(date1, date2) {
var dt1 = new Date(date1);
var dt2 = new Date(date2);
var diff = (dt2.getTime() - dt1.getTime()) / 1000;
diff /= 60;
return Math.abs(Math.round(diff));
} // Takes the date in new Date().toISOString(); format
}, {
key: "isBetweenDate",
value: function isBetweenDate(from, to, check) {
var fDate, lDate, cDate;
fDate = Date.parse(from.substring(0, 10));
lDate = Date.parse(to.substring(0, 10));
cDate = Date.parse(check.substring(0, 10));
if (cDate <= lDate && cDate >= fDate) {
return true;
}
return false;
}
}, {
key: "sortEntities",
value: function sortEntities(sortOn, taskList, order) {
if (sortOn === "id") {
taskList.sort(this.prioritySort(sortOn, order));
} else {
taskList.sort(this.stringSort(sortOn, order));
}
return taskList;
}
}, {
key: "ifUrlPresent",
value: function ifUrlPresent(stringVal) {
var urlRegex = /(https?:\/\/[^\s]+)/g;
var urlString = null;
stringVal.replace(urlRegex, function (url) {
urlString = url;
});
return urlString;
}
}, {
key: "mapColData",
value: function mapColData(col, records) {
var data = [];
records.forEach(function (record, i) {
var recObj = {};
record.forEach(function (val, key) {
var k = col[key];
recObj[k] = val;
});
data.push(recObj);
});
return data;
}
}, {
key: "getLocalUserId",
value: function getLocalUserId() {
return localStorage.getItem("userId") !== null ? localStorage.getItem("userId") : null;
}
}, {
key: "getLocalAuthToken",
value: function getLocalAuthToken() {
return localStorage.getItem("authToken") !== null ? localStorage.getItem("authToken") : null;
}
}, {
key: "getLocalVehicleList",
value: function getLocalVehicleList() {
return localStorage.getItem("vehicleList") !== null ? JSON.parse(localStorage.getItem("vehicleList")) : null;
}
}, {
key: "getLocalVehicleListSorted",
value: function getLocalVehicleListSorted() {
return localStorage.getItem("vehicleListSorted") !== null ? JSON.parse(localStorage.getItem("vehicleListSorted")) : null;
}
}, {
key: "getLocalsubCat",
value: function getLocalsubCat() {
return localStorage.getItem("subCat") !== null ? JSON.parse(localStorage.getItem("subCat")) : null;
}
}, {
key: "getAppTheme",
value: function getAppTheme() {
return localStorage.getItem("theme") !== null ? localStorage.getItem("theme") : "default";
}
}, {
key: "setAppTheme",
value: function setAppTheme(val) {
localStorage.setItem("theme", val);
}
}, {
key: "getLocalProfileData",
value: function getLocalProfileData() {
return localStorage.getItem("profileData") !== null ? JSON.parse(localStorage.getItem("profileData")) : null;
}
}, {
key: "getLocalappGlobalInit",
value: function getLocalappGlobalInit() {
return localStorage.getItem("globalInit") != null ? localStorage.getItem("globalInit") : "null";
}
}, {
key: "getLocalgetDeviceInfo",
value: function getLocalgetDeviceInfo() {
return localStorage.getItem("deviceInfo") != null ? JSON.parse(localStorage.getItem("deviceInfo")) : "null";
}
}, {
key: "getLocalresetPwdURL",
value: function getLocalresetPwdURL() {
return localStorage.getItem("resetPwdURL") != null ? localStorage.getItem("resetPwdURL") : "null";
}
}, {
key: "getLocalapiBaseURL",
value: function getLocalapiBaseURL() {
return localStorage.getItem("apiBaseURL") != null ? localStorage.getItem("apiBaseURL") : null; // return "https://mobapp.uat.1move.in/onemoveauth"
// return "http://3.111.190.47:8888/onemoveauth";
// return "https://1moveuat.1pay.in/onemoveauth/mobile/api";
}
}, {
key: "getOneMoveapiBaseURL",
value: function getOneMoveapiBaseURL() {
// return "https://1move.1pay.in/onemoveauth";
// return "https://mobapp.uat.1move.in/onemoveauth/mobile"
return "https://1moveuat.1pay.in/onemoveauth/";
}
}, {
key: "getLocalwebPageURL",
value: function getLocalwebPageURL() {
return localStorage.getItem("webPageURL") != null ? localStorage.getItem("webPageURL") : "null";
}
}, {
key: "getLocalloginURL",
value: function getLocalloginURL() {
return localStorage.getItem("loginURL") != null ? localStorage.getItem("loginURL") : "null";
}
}, {
key: "getLocalfbKeyFile",
value: function getLocalfbKeyFile() {
return localStorage.getItem("fbKeyFile") != null ? localStorage.getItem("fbKeyFile") : "null";
}
}, {
key: "getLocalgetAppVersion",
value: function getLocalgetAppVersion() {
return localStorage.getItem("appVersion") !== null ? localStorage.getItem("appVersion") : null;
}
}, {
key: "getLocalvehicleUpdateTime",
value: function getLocalvehicleUpdateTime() {
return localStorage.getItem("vehicleUpdateTime") !== null ? new Date(localStorage.getItem("vehicleUpdateTime")) : null;
}
}, {
key: "getLocalDashboardUpdatedTime",
value: function getLocalDashboardUpdatedTime() {
return localStorage.getItem("dashboardUpdatedTime") !== null ? new Date(localStorage.getItem("dashboardUpdatedTime")) : null;
}
}, {
key: "getLocalglobalInitURL",
value: function getLocalglobalInitURL() {
return localStorage.getItem("globalInitURL") !== null ? localStorage.getItem("globalInitURL") : null;
}
}, {
key: "getLocalpackageId",
value: function getLocalpackageId() {
return localStorage.getItem("packageId") !== null ? localStorage.getItem("packageId") : null;
}
}, {
key: "getLocalVehicleClass",
value: function getLocalVehicleClass() {
return localStorage.getItem("vehicleClass") !== null ? JSON.parse(localStorage.getItem("vehicleClass")) : null;
}
}, {
key: "getLocaltotalVehicles",
value: function getLocaltotalVehicles() {
return localStorage.getItem("totalVehicles") !== null ? JSON.parse(localStorage.getItem("totalVehicles")) : null;
}
}, {
key: "setTempTransactionID",
value: function setTempTransactionID(txn_id) {
localStorage.setItem("pg_txn_id", txn_id);
}
}, {
key: "getTempTransactionID",
value: function getTempTransactionID() {
return localStorage.getItem("pg_txn_id") !== null ? localStorage.getItem("pg_txn_id") : null;
} // getOtpId() {
// return (localStorage.getItem("otpid") !== null) ? localStorage.getItem("otpid") : null;
// }
}, {
key: "getLastThreeMonthDate",
value: function getLastThreeMonthDate(subDays) {
var today = new Date();
var dd = today.getDate();
var mm = today.getMonth() + 1;
var Y = today.getFullYear(); //const subDays = Enums.CONSTANTS.SUBTRACT_DAYS;
today.setDate(today.getDate() - subDays);
var M = today.getMonth() + 1;
return today.toISOString().substr(0, 10);
}
}, {
key: "findOcc",
value: function findOcc(obj, key) {
var arr = [];
if (typeof obj === "object") {
for (var property in obj) {
arr.push(obj[property]);
}
} else {
arr = obj;
}
var arr2 = [];
arr.forEach(function (x, index) {
// Checking if there is any object in arr2
// which contains the key value
if (arr2.some(function (val) {
return val[key] == x[key];
})) {
// If yes! then increase the occurrence by 1
arr2.forEach(function (k) {
if (k[key] === x[key]) {
k["occurrence"]++;
}
});
} else {
// If not! Then create a new object initialize
// it with the present iteration key's value and
// set the occurrence to 1
var a = {};
a[key] = x[key];
a["occurrence"] = 1;
arr2.push(a);
}
});
return arr2;
}
}, {
key: "currencyFormatter",
value: function currencyFormatter(amount, format) {
if (format == "INR") {
return "₹ " + parseInt(amount);
} // removed below regex as IOS is givig error
//return "₹" +parseInt(txn_amount).toFixed(2).replace(/\B(? 1 && arguments[1] !== undefined ? arguments[1] : 5000;
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee10() {
var toast;
return regeneratorRuntime.wrap(function _callee10$(_context10) {
while (1) {
switch (_context10.prev = _context10.next) {
case 0:
_context10.next = 2;
return this._toast.create({
message: msg,
position: 'bottom',
color: 'primary',
translucent: false,
animated: true,
duration: tm
});
case 2:
toast = _context10.sent;
toast.present();
case 4:
case "end":
return _context10.stop();
}
}
}, _callee10, this);
}));
}
}, {
key: "notificationToast",
value: function notificationToast(msg) {
var tm = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 5000;
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee11() {
var toast;
return regeneratorRuntime.wrap(function _callee11$(_context11) {
while (1) {
switch (_context11.prev = _context11.next) {
case 0:
_context11.next = 2;
return this._toast.create({
message: msg,
position: 'top',
color: 'primary',
translucent: false,
animated: true,
duration: tm
});
case 2:
toast = _context11.sent;
toast.present();
case 4:
case "end":
return _context11.stop();
}
}
}, _callee11, this);
}));
}
}, {
key: "errorToast",
value: function errorToast(msg) {
var tm = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 3000;
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee12() {
var toast;
return regeneratorRuntime.wrap(function _callee12$(_context12) {
while (1) {
switch (_context12.prev = _context12.next) {
case 0:
_context12.next = 2;
return this._toast.create({
message: msg,
position: 'top',
color: 'danger',
translucent: false,
animated: true,
duration: 5000
});
case 2:
toast = _context12.sent;
toast.present();
case 4:
case "end":
return _context12.stop();
}
}
}, _callee12, this);
}));
}
}, {
key: "simpleAlert",
value: function simpleAlert(headerVal, messageVal) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee13() {
var alert;
return regeneratorRuntime.wrap(function _callee13$(_context13) {
while (1) {
switch (_context13.prev = _context13.next) {
case 0:
_context13.next = 2;
return this._alert.create({
cssClass: 'my-custom-class',
mode: 'ios',
header: headerVal,
message: messageVal,
buttons: ['OK']
});
case 2:
alert = _context13.sent;
_context13.next = 5;
return alert.present();
case 5:
case "end":
return _context13.stop();
}
}
}, _callee13, this);
}));
}
}, {
key: "routeToPage",
value: function routeToPage(page, data) {
var navigationExtras = {
queryParams: {
data: JSON.stringify(data)
}
};
this._router.navigate(['./' + page], navigationExtras);
}
}, {
key: "getParamData",
value: function getParamData() {
var data = JSON.parse(this._router.getCurrentNavigation().extras.queryParams.data); //this.log({ paramData: data });
return typeof data !== 'undefined' ? data : null;
}
}, {
key: "getLocalData",
value: function getLocalData(obj) {
var columnArray = _constants__WEBPACK_IMPORTED_MODULE_7__["COLUMNS"];
return this._httpClient.get('./assets/data-models/' + obj.local_json_file + '.json', {}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["map"])(function (resp) {
if (resp.status) {
if (obj.mapcol) {
resp.columns.forEach(function (item, index) {
resp.columns[index] = columnArray[item];
});
}
return resp;
}
}));
}
}, {
key: "fetchData",
value: function fetchData(dataObj) {
var _this7 = this;
var _a, _b;
var element = document.getElementsByTagName("ion-loading")[0];
this.systemException({
fileName: 'API call ',
functionName: dataObj.api_url,
error: dataObj
});
var columnArray = _constants__WEBPACK_IMPORTED_MODULE_7__["COLUMNS"];
if (!this.isOnLine()) {
this.simpleToast(_constants__WEBPACK_IMPORTED_MODULE_7__["CONSTANTS"].OFFLINE_MSG);
if (element != undefined) element.style.display = 'none';
return {
error: '',
d_type: 'local',
status: false,
count: 0,
data: [],
message: "You are offline"
}; //return this.getLocalData(dataObj);
} else {
var row_offset = dataObj.offset;
var data = dataObj.param_data;
var url = dataObj.api_url;
if ((_a = dataObj === null || dataObj === void 0 ? void 0 : dataObj.param_data) === null || _a === void 0 ? void 0 : _a.file) {
data = (_b = dataObj.param_data) === null || _b === void 0 ? void 0 : _b.file;
}
if (dataObj.method === 'post') {
return this._httpClient.post(url, data).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["timeout"])(_constants__WEBPACK_IMPORTED_MODULE_7__["CONSTANTS"].API_TIMEOUT), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["catchError"])(function (e) {
var obj = {
fileName: _this7.fileName,
functionName: 'fetchData()',
error: e
};
_this7.systemException(obj);
if (element != undefined) element.style.display = 'none';
if (e.status == '403') {
_this7.errorToast(_constants__WEBPACK_IMPORTED_MODULE_7__["CONSTANTS"].SESSION_ALERT_MSG);
_this7.navCtrl.navigateRoot(['./']);
}
return Object(rxjs__WEBPACK_IMPORTED_MODULE_11__["of"])({
error: e,
d_type: 'local',
status: false,
count: 0,
data: [],
message: _constants__WEBPACK_IMPORTED_MODULE_7__["CONSTANTS"].API_TIMEOUT_MSG
});
})).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["map"])(function (resp) {
if (resp === null || resp === void 0 ? void 0 : resp.status) {
if (dataObj.mapcol) {
resp === null || resp === void 0 ? void 0 : resp.columns.forEach(function (item, index) {
resp.columns[index] = columnArray[item];
});
}
return resp;
} else {
return resp;
}
/*
if (resp?.status && (resp?.data == null || resp?.data?.length > 0)) {
if (dataObj.mapcol) {
resp?.columns.forEach((item, index) => {
resp.columns[index] = columnArray[item];
});
}
return resp;
}
if ((resp?.data == null || resp.data?.length == 0) || !resp?.status) {
return { d_type: 'local', message: resp.message, status: true, count: 0, data: [] };
}*/
}, function (error) {
return {
error: error,
d_type: 'local',
status: true,
count: 0,
data: []
};
}));
}
if (dataObj.method === 'get') {
return this._httpClient.get(url).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["timeout"])(_constants__WEBPACK_IMPORTED_MODULE_7__["CONSTANTS"].API_TIMEOUT), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["catchError"])(function (e) {
var obj = {
fileName: _this7.fileName,
functionName: 'fetchData()',
error: e
};
_this7.systemException(obj);
if (e.status == '403') {
_this7.errorToast(_constants__WEBPACK_IMPORTED_MODULE_7__["CONSTANTS"].SESSION_ALERT_MSG);
_this7.navCtrl.navigateRoot(['./']);
}
return Object(rxjs__WEBPACK_IMPORTED_MODULE_11__["of"])({
error: e,
d_type: 'local',
status: false,
count: 0,
data: [],
message: _constants__WEBPACK_IMPORTED_MODULE_7__["CONSTANTS"].API_TIMEOUT_MSG
});
})).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["map"])(function (resp) {
var _a;
if (resp === null || resp === void 0 ? void 0 : resp.status) {
if (!dataObj.mapcol) return resp;
} else {
if (((_a = resp.data) === null || _a === void 0 ? void 0 : _a.length) == 0 || !(resp === null || resp === void 0 ? void 0 : resp.status)) {
return _this7.getLocalData(dataObj);
}
}
}));
}
if (dataObj.method === 'patch') {
return this._httpClient.patch(url, dataObj === null || dataObj === void 0 ? void 0 : dataObj.body).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["timeout"])(_constants__WEBPACK_IMPORTED_MODULE_7__["CONSTANTS"].API_TIMEOUT), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["catchError"])(function (e) {
var obj = {
fileName: _this7.fileName,
functionName: 'fetchData()',
error: e
};
_this7.systemException(obj);
if (e.status == '403') {
_this7.errorToast(_constants__WEBPACK_IMPORTED_MODULE_7__["CONSTANTS"].SESSION_ALERT_MSG);
_this7.navCtrl.navigateRoot(['./']);
}
return Object(rxjs__WEBPACK_IMPORTED_MODULE_11__["of"])({
error: e,
d_type: 'local',
status: false,
count: 0,
data: [],
message: _constants__WEBPACK_IMPORTED_MODULE_7__["CONSTANTS"].API_TIMEOUT_MSG
});
})).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["map"])(function (resp) {
var _a;
if (resp === null || resp === void 0 ? void 0 : resp.status) {
if (!dataObj.mapcol) return resp;
} else {
if (((_a = resp.data) === null || _a === void 0 ? void 0 : _a.length) == 0 || !(resp === null || resp === void 0 ? void 0 : resp.status)) {
return _this7.getLocalData(dataObj);
}
}
}));
}
}
}
}, {
key: "systemException",
value: function systemException(obj) {
this.logger(_mlogger_service__WEBPACK_IMPORTED_MODULE_9__["Mlogger"].severity.debug, [], _mlogger_service__WEBPACK_IMPORTED_MODULE_9__["Mlogger"].step.log, obj.fileName + ' in ' + obj.functionName, obj.error); // this.log({
// systemException: obj
// });
}
/**create a param object for sentry data input */
}, {
key: "logger",
value: function logger(severity, obj, step, fn_name, fn_param) {
this.log(fn_name);
if (1) {
var array;
var operation;
var data;
switch (step) {
case _mlogger_service__WEBPACK_IMPORTED_MODULE_9__["Mlogger"].step.start:
array = step;
operation = 'Start: ';
data = {
fn_start_time: performance.now()
};
break;
case _mlogger_service__WEBPACK_IMPORTED_MODULE_9__["Mlogger"].step.log:
operation = 'Log: ';
var paramObj = {
data: fn_param,
message: operation + fn_name,
timestamp: Math.floor(Date.now() / 1000)
};
this._mlogger.log(severity, step, null, this.getLocalUserId(), null, null, operation + fn_name, null, paramObj);
return;
case _mlogger_service__WEBPACK_IMPORTED_MODULE_9__["Mlogger"].step.end:
array = 1;
operation = 'End: ';
data = {
fn_end_time: performance.now()
};
break;
}
data.fn_param = fn_param;
data.fn_name = fn_name;
obj[array] = {
data: data,
message: operation + fn_name,
timestamp: Math.floor(Date.now() / 1000)
};
this._mlogger.log(0, step, null, this.getLocalUserId(), null, null, operation + fn_name, null, obj);
}
}
}, {
key: "copyText",
value: function copyText(text) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee14() {
var obj;
return regeneratorRuntime.wrap(function _callee14$(_context14) {
while (1) {
switch (_context14.prev = _context14.next) {
case 0:
_context14.prev = 0;
_context14.next = 3;
return _capacitor_clipboard__WEBPACK_IMPORTED_MODULE_10__["Clipboard"].write({
string: text
});
case 3:
this.simpleToast("Copied", 500);
_context14.next = 10;
break;
case 6:
_context14.prev = 6;
_context14.t0 = _context14["catch"](0);
obj = {
fileName: this.fileName,
functionName: 'copyText(text)',
error: _context14.t0
};
this.systemException(obj);
case 10:
case "end":
return _context14.stop();
}
}
}, _callee14, this, [[0, 6]]);
}));
}
}, {
key: "copyInfo",
value: function copyInfo(text) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee15() {
var obj;
return regeneratorRuntime.wrap(function _callee15$(_context15) {
while (1) {
switch (_context15.prev = _context15.next) {
case 0:
_context15.prev = 0;
_context15.next = 3;
return _capacitor_clipboard__WEBPACK_IMPORTED_MODULE_10__["Clipboard"].write({
string: text
});
case 3:
this.simpleToast("Information Copied", 500);
_context15.next = 10;
break;
case 6:
_context15.prev = 6;
_context15.t0 = _context15["catch"](0);
obj = {
fileName: this.fileName,
functionName: 'copyInfo(text)',
error: _context15.t0
};
this.systemException(obj);
case 10:
case "end":
return _context15.stop();
}
}
}, _callee15, this, [[0, 6]]);
}));
}
}, {
key: "openFile",
value: function openFile(obj) {
var _this8 = this;
try {
var mimeType = obj.base64.split(';')[0].split(':')[1];
this._fileOpener.open(obj.filePath, mimeType).then(function () {
_this8.simpleToast('File downloaded');
})["catch"](function (err) {
_this8.simpleToast('Error in opening the file / not supported in browser');
_this8.log(err);
});
} catch (error) {
var _obj = {
fileName: this.fileName,
functionName: 'openFile(filePath)',
error: error
};
this.systemException(_obj);
}
}
}, {
key: "fileValidation",
value: function fileValidation(fileSizeInBytes) {
var fileSizeInMB = (fileSizeInBytes / (1024 * 1024)).toFixed(2);
if (fileSizeInMB < _constants__WEBPACK_IMPORTED_MODULE_7__["CONSTANTS"].FILESIZE_LIMIT_IN_MB) {
return true;
} else {
this.simpleAlert("Failed", _constants__WEBPACK_IMPORTED_MODULE_7__["CONSTANTS"].INVALID_FILESIZE_ALERT_MSG);
return false;
}
}
}]);
return CommonService;
}(_base_service__WEBPACK_IMPORTED_MODULE_5__["BaseService"]);
CommonService.ctorParameters = function () {
return [{
type: _mlogger_service__WEBPACK_IMPORTED_MODULE_9__["MloggerProvider"]
}, {
type: _ionic_angular__WEBPACK_IMPORTED_MODULE_3__["LoadingController"]
}, {
type: _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"]
}, {
type: _ionic_angular__WEBPACK_IMPORTED_MODULE_3__["ToastController"]
}, {
type: _ionic_angular__WEBPACK_IMPORTED_MODULE_3__["AlertController"]
}, {
type: _ionic_angular__WEBPACK_IMPORTED_MODULE_3__["NavController"]
}, {
type: _ionic_native_file_opener_ngx__WEBPACK_IMPORTED_MODULE_12__["FileOpener"]
}, {
type: _angular_router__WEBPACK_IMPORTED_MODULE_4__["Router"]
}, {
type: undefined,
decorators: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
args: [_angular_common__WEBPACK_IMPORTED_MODULE_8__["DOCUMENT"]]
}]
}, {
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["RendererFactory2"]
}];
};
CommonService = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
providedIn: 'root'
})], CommonService);
/***/
},
/***/
"HEGi":
/*!***************************************************************!*\
!*** ./src/models/service-filter/service-filter.component.ts ***!
\***************************************************************/
/*! exports provided: ServiceFilterComponent */
/***/
function HEGi(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ServiceFilterComponent", function () {
return ServiceFilterComponent;
});
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! tslib */
"mrSG");
/* harmony import */
var _raw_loader_service_filter_component_html__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! raw-loader!./service-filter.component.html */
"Sdes");
/* harmony import */
var _service_filter_component_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ./service-filter.component.scss */
"zTuZ");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! @angular/core */
"fXoL");
/* harmony import */
var _ionic_angular__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
/*! @ionic/angular */
"TEn/");
/* harmony import */
var src_services_common_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
/*! src/services/common.service */
"FBGF");
var ServiceFilterComponent = /*#__PURE__*/function () {
function ServiceFilterComponent(_modelController, _commonService) {
_classCallCheck(this, ServiceFilterComponent);
this._modelController = _modelController;
this._commonService = _commonService;
this.refundSel = false;
this.dateSel = false;
this.tollSel = false;
this.vehicleSel = false;
this.validateDate = [];
this.data = {
startDate: '',
endDate: ''
};
}
_createClass(ServiceFilterComponent, [{
key: "ngOnInit",
value: function ngOnInit() {
var today = new Date();
var monthStart = this._commonService.getLastThreeMonthDate(365);
var monthEnd = today.toISOString().substr(0, 10);
this.setStartDate = monthStart;
this.setEndDate = monthEnd;
this.startDate = this._startDate;
this.endDate = this._endDate;
}
}, {
key: "rechargeSelected",
value: function rechargeSelected() {
this.vehicleSel = false;
this.tollSel = false;
this.dateSel = false;
this.refundSel = false;
}
}, {
key: "refundSelected",
value: function refundSelected() {
this.vehicleSel = false;
this.tollSel = false;
this.dateSel = false;
this.refundSel = true;
}
}, {
key: "dateSelected",
value: function dateSelected() {
this.vehicleSel = false;
this.tollSel = false;
this.refundSel = false;
this.dateSel = true;
}
}, {
key: "vahicleSelected",
value: function vahicleSelected() {
this.tollSel = false;
this.vehicleSel = true;
this.refundSel = false;
this.dateSel = false;
}
}, {
key: "tollSelected",
value: function tollSelected() {
this.vehicleSel = false;
this.tollSel = true;
this.refundSel = false;
this.dateSel = false;
}
}, {
key: "resetFilters",
value: function resetFilters() {
this.ngOnInit();
}
}, {
key: "cancelDELETE",
value: function cancelDELETE() {
this.validateDate = [];
this._modelController.dismiss(this.data);
}
}, {
key: "onDateChange",
value: function onDateChange(event) {
var start_date = new Date(this.startDate);
var end_date = new Date(this.endDate);
if (end_date.getTime() < start_date.getTime()) {
if (this.endDate) {
this.endDate = this.startDate;
}
}
this.validateDate.push(event.target.value);
}
}, {
key: "confirm",
value: function confirm() {
this.data.userOption = 'confirm';
this.data.startDate = this.startDate;
this.data.endDate = this.endDate;
this._modelController.dismiss(this.data);
}
}, {
key: "cancel",
value: function cancel() {
this.validateDate = [];
this.data.userOption = 'cancel';
this._modelController.dismiss(this.data);
}
}]);
return ServiceFilterComponent;
}();
ServiceFilterComponent.ctorParameters = function () {
return [{
type: _ionic_angular__WEBPACK_IMPORTED_MODULE_4__["ModalController"]
}, {
type: src_services_common_service__WEBPACK_IMPORTED_MODULE_5__["CommonService"]
}];
};
ServiceFilterComponent.propDecorators = {
_startDate: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
}],
_endDate: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
}]
};
ServiceFilterComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Component"])({
selector: 'app-service-filter',
template: _raw_loader_service_filter_component_html__WEBPACK_IMPORTED_MODULE_1__["default"],
styles: [_service_filter_component_scss__WEBPACK_IMPORTED_MODULE_2__["default"]]
})], ServiceFilterComponent);
/***/
},
/***/
"LLt/":
/*!**************************************!*\
!*** ./src/services/auth.service.ts ***!
\**************************************/
/*! exports provided: AuthService */
/***/
function LLt(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "AuthService", function () {
return AuthService;
});
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! tslib */
"mrSG");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! @angular/core */
"fXoL");
/* harmony import */
var src_environments_environment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! src/environments/environment */
"AytR");
/* harmony import */
var _base_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! ./base-service */
"4YT6");
/* harmony import */
var _common_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
/*! ./common.service */
"FBGF");
/* harmony import */
var _constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
/*! ./constants */
"k8oS");
var AuthService = /*#__PURE__*/function (_base_service__WEBPAC4) {
_inherits(AuthService, _base_service__WEBPAC4);
var _super4 = _createSuper(AuthService);
function AuthService(commonService) {
var _this9;
_classCallCheck(this, AuthService);
_this9 = _super4.call(this);
_this9.commonService = commonService;
_this9.fileName = 'auth.service.ts';
_this9.userLogin = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
return _this9;
}
_createClass(AuthService, [{
key: "login",
value: function login(obj) {
try {
var data;
if (obj.login_type === 'mobile' || obj.login_type === 'fbtoken') {
data = {
"password": obj.password,
"userId": obj.userId,
"login_type": obj.login_type,
"timestamp": obj.timestamp
};
}
var dataObj = {
offset: 0,
method: 'post',
api_url: this.getLocalloginURL(),
local_json_file: 'local-login',
param_data: data,
mapcol: false
};
var resp = this.commonService.fetchData(dataObj); // resp.subscribe((data) => {
// if (data.status)
// this.userLogin.emit({ state: 'login', data_resp: data });
// });
return resp;
} catch (error) {
var _obj2 = {
fileName: this.fileName,
functionName: 'login(obj)',
error: error
};
this.commonService.systemException(_obj2);
}
}
}, {
key: "logout",
value: function logout() {
try {
var dataObj = {
offset: 0,
method: 'post',
// api_url: this.getLocalapiBaseURL() + Enums.CONSTANTS.LOGOUT_API,
local_json_file: '',
param_data: {},
mapcol: false
};
this.userLogin.emit({
state: 'logout'
});
localStorage.clear();
return this.commonService.fetchData(dataObj);
} catch (error) {
var obj = {
fileName: this.fileName,
functionName: 'logout()',
error: error
};
this.commonService.systemException(obj);
}
}
}, {
key: "globalAPI",
value: function globalAPI() {
try {
var deviceinfo = this.getLocalgetDeviceInfo();
console.log({
deviceinfo: deviceinfo
});
var dataObj = {
offset: 0,
method: 'post',
api_url: _constants__WEBPACK_IMPORTED_MODULE_5__["CONSTANTS"].GLOBAL_INIT_URL,
local_json_file: '',
param_data: {
package_id: src_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].packageId
},
mapcol: false
};
return this.commonService.fetchData(dataObj);
} catch (error) {
var obj = {
fileName: this.fileName,
functionName: 'globalAPI()',
error: error
};
this.commonService.systemException(obj);
}
}
}, {
key: "localAPI",
value: function localAPI(deviceId) {
try {
var deviceinfo = this.getLocalgetDeviceInfo();
console.log({
deviceinfo: deviceinfo
});
var dataObj = {
offset: 0,
method: 'post',
api_url: this.getLocalapiBaseURL() + _constants__WEBPACK_IMPORTED_MODULE_5__["CONSTANTS"].LOCAL_INIT_URL,
local_json_file: '',
param_data: {
user_id: this.getLocalUserId(),
device_id: deviceId,
notification_settings: {},
device_info: {
fcm_token: this.commonService.getFCMToken(),
os_version: deviceinfo.osVersion,
device_version: deviceinfo.model,
app_version: this.getAppVersion(),
model: deviceinfo.model,
platform: deviceinfo.platform,
operatingSystem: deviceinfo.operatingSystem,
osVersion: deviceinfo.osVersion,
manufacturer: deviceinfo.manufacturer,
isVirtual: deviceinfo.isVirtual,
webViewVersion: deviceinfo.webViewVersion
}
},
mapcol: false
};
return this.commonService.fetchData(dataObj);
} catch (error) {
var obj = {
fileName: this.fileName,
functionName: 'localAPI()',
error: error
};
this.commonService.systemException(obj);
}
} // getOneMoveapiBaseURL
}, {
key: "verifyMobile",
value: function verifyMobile(obj) {
try {
var dataObj = {
offset: 0,
method: 'post',
api_url: this.getLocalloginURL() + _constants__WEBPACK_IMPORTED_MODULE_5__["CONSTANTS"].VERIFY_MOBILE_API,
local_json_file: '',
param_data: obj,
mapcol: false
};
var resp = this.commonService.fetchData(dataObj);
return resp;
} catch (error) {
var _obj3 = {
fileName: this.fileName,
functionName: 'verifyMobile(obj)',
error: error
};
this.commonService.systemException(_obj3);
}
} // getOneMoveapiBaseURL
}, {
key: "verifyOtp",
value: function verifyOtp(obj) {
try {
var dataObj = {
offset: 0,
method: 'post',
api_url: this.getLocalloginURL() + _constants__WEBPACK_IMPORTED_MODULE_5__["CONSTANTS"].VERIFY_OTP_API,
local_json_file: '',
param_data: obj,
mapcol: false
};
var resp = this.commonService.fetchData(dataObj);
return resp;
} catch (error) {
var _obj4 = {
fileName: this.fileName,
functionName: 'verifyOtp(obj)',
error: error
};
this.commonService.systemException(_obj4);
}
}
}]);
return AuthService;
}(_base_service__WEBPACK_IMPORTED_MODULE_3__["BaseService"]);
AuthService.ctorParameters = function () {
return [{
type: _common_service__WEBPACK_IMPORTED_MODULE_4__["CommonService"]
}];
};
AuthService = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
providedIn: 'root'
})], AuthService);
/***/
},
/***/
"MJO3":
/*!***************************************!*\
!*** ./src/models/contants.models.ts ***!
\***************************************/
/*! exports provided: Constants */
/***/
function MJO3(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Constants", function () {
return Constants;
});
var Constants = /*#__PURE__*/_createClass(function Constants() {
_classCallCheck(this, Constants);
});
Constants.KEY_DEFAULT_LANGUAGE = 'tu_dl';
/***/
},
/***/
"Sdes":
/*!*******************************************************************************************************!*\
!*** ./node_modules/raw-loader/dist/cjs.js!./src/models/service-filter/service-filter.component.html ***!
\*******************************************************************************************************/
/*! exports provided: default */
/***/
function Sdes(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */
__webpack_exports__["default"] = "\r\n \r\n \r\n \r\n \r\n Back\r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n \r\n \r\n \r\n\r\n\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n Date Range\r\n \r\n \r\n\r\n \r\n \r\n From\r\n \r\n \r\n \r\n To\r\n \r\n \r\n \r\n\r\n \r\n \r\n
\r\n\r\n\r\n \r\n \r\n \r\n Apply\r\n \r\n
\r\n \r\n \r\n\r\n";
/***/
},
/***/
"Sy1n":
/*!**********************************!*\
!*** ./src/app/app.component.ts ***!
\**********************************/
/*! exports provided: AppComponent */
/***/
function Sy1n(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "AppComponent", function () {
return AppComponent;
});
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! tslib */
"mrSG");
/* harmony import */
var _raw_loader_app_component_html__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! raw-loader!./app.component.html */
"VzVu");
/* harmony import */
var _app_component_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ./app.component.scss */
"ynWL");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! @angular/core */
"fXoL");
/* harmony import */
var _ionic_angular__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
/*! @ionic/angular */
"TEn/");
/* harmony import */
var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
/*! @angular/common */
"ofXK");
/* harmony import */
var _ionic_native_status_bar_ngx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
/*! @ionic-native/status-bar/ngx */
"VYYF");
/* harmony import */
var _ionic_native_splash_screen_ngx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
/*! @ionic-native/splash-screen/ngx */
"54vc");
/* harmony import */
var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
/*! @ngx-translate/core */
"sYmb");
/* harmony import */
var src_models_contants_models__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
/*! src/models/contants.models */
"MJO3");
/* harmony import */
var _app_config__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
/*! ./app.config */
"aR35");
/* harmony import */
var src_services_auth_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(
/*! src/services/auth.service */
"LLt/");
/* harmony import */
var src_services_mlogger_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(
/*! src/services/mlogger.service */
"0InE");
/* harmony import */
var src_services_profile_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(
/*! src/services/profile.service */
"2l2O");
/* harmony import */
var src_environments_environment__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(
/*! src/environments/environment */
"AytR");
var AppComponent = /*#__PURE__*/function () {
function AppComponent(config, platform, _location, navCtrl, statusBar, splashScreen, _mlogger, _authService, _profileService, translate) {
var _this10 = this;
_classCallCheck(this, AppComponent);
this.config = config;
this.platform = platform;
this._location = _location;
this.navCtrl = navCtrl;
this.statusBar = statusBar;
this.splashScreen = splashScreen;
this._mlogger = _mlogger;
this._authService = _authService;
this._profileService = _profileService;
this.translate = translate;
this.isLoggedIn = false;
this.platform.backButton.subscribeWithPriority(10, function (processNextHandler) {
if (_this10._location.isCurrentPathEqualTo('/tab/my-dashboard')) {
// Show Exit Alert!
//this.showExitConfirm();
navigator['app'].exitApp(); //comment this when this.showExitConfirm(); is uncommented
processNextHandler();
} else {
// Navigate to back page
_this10._location.back();
}
});
if (localStorage.getItem('userId') === null) {
this.navCtrl.navigateRoot(['./landing-screen']);
} else {
if (location.pathname !== '/payment-response') {
this.navCtrl.navigateRoot(['./tabs/home']);
}
}
}
_createClass(AppComponent, [{
key: "initializeApp",
value: function initializeApp() {
var _this11 = this;
this.platform.ready().then(function () {
_this11.statusBar.styleLightContent();
_this11.splashScreen.hide();
var defaultLang = window.localStorage.getItem(src_models_contants_models__WEBPACK_IMPORTED_MODULE_9__["Constants"].KEY_DEFAULT_LANGUAGE);
_this11.globalize(defaultLang); // Trigger the push setup
//this.fcmService.initPush();
});
this._mlogger.log_init(src_environments_environment__WEBPACK_IMPORTED_MODULE_14__["environment"].loggingTool, 'mlogger', null, src_services_mlogger_service__WEBPACK_IMPORTED_MODULE_12__["Mlogger"].severity.debug, null, null, '+5:30', {});
this._authService.userLogin.subscribe(function (data) {
_this11.isLoggedIn = data.state === 'login' ? true : false;
_this11._authService.log({
subscibeLogin: data
});
});
this._profileService.userProfile.subscribe(function (data) {
_this11._profileService.log({
subscibeProfile: data
});
_this11.profileData = data.data;
});
}
}, {
key: "globalize",
value: function globalize(languagePriority) {
this.translate.setDefaultLang("en");
var defaultLangCode = this.config.availableLanguages[0].code;
this.translate.use(languagePriority && languagePriority.length ? languagePriority : defaultLangCode); //this.setDirectionAccordingly(languagePriority && languagePriority.length ? languagePriority : defaultLangCode);
}
}]);
return AppComponent;
}();
AppComponent.ctorParameters = function () {
return [{
type: undefined,
decorators: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
args: [_app_config__WEBPACK_IMPORTED_MODULE_10__["APP_CONFIG"]]
}]
}, {
type: _ionic_angular__WEBPACK_IMPORTED_MODULE_4__["Platform"]
}, {
type: _angular_common__WEBPACK_IMPORTED_MODULE_5__["Location"]
}, {
type: _ionic_angular__WEBPACK_IMPORTED_MODULE_4__["NavController"]
}, {
type: _ionic_native_status_bar_ngx__WEBPACK_IMPORTED_MODULE_6__["StatusBar"]
}, {
type: _ionic_native_splash_screen_ngx__WEBPACK_IMPORTED_MODULE_7__["SplashScreen"]
}, {
type: src_services_mlogger_service__WEBPACK_IMPORTED_MODULE_12__["MloggerProvider"]
}, {
type: src_services_auth_service__WEBPACK_IMPORTED_MODULE_11__["AuthService"]
}, {
type: src_services_profile_service__WEBPACK_IMPORTED_MODULE_13__["ProfileService"]
}, {
type: _ngx_translate_core__WEBPACK_IMPORTED_MODULE_8__["TranslateService"]
}];
};
AppComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Component"])({
selector: 'app-root',
template: _raw_loader_app_component_html__WEBPACK_IMPORTED_MODULE_1__["default"],
styles: [_app_component_scss__WEBPACK_IMPORTED_MODULE_2__["default"]]
})], AppComponent);
/***/
},
/***/
"VzVu":
/*!**************************************************************************!*\
!*** ./node_modules/raw-loader/dist/cjs.js!./src/app/app.component.html ***!
\**************************************************************************/
/*! exports provided: default */
/***/
function VzVu(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */
__webpack_exports__["default"] = "\r\n \r\n\r\n";
/***/
},
/***/
"YAtm":
/*!***********************************************************************!*\
!*** ./src/models/vehicle-attachment/vehicle-attachment.component.ts ***!
\***********************************************************************/
/*! exports provided: VehicleAttachmentComponent */
/***/
function YAtm(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "VehicleAttachmentComponent", function () {
return VehicleAttachmentComponent;
});
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! tslib */
"mrSG");
/* harmony import */
var _raw_loader_vehicle_attachment_component_html__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! raw-loader!./vehicle-attachment.component.html */
"3rhY");
/* harmony import */
var _vehicle_attachment_component_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ./vehicle-attachment.component.scss */
"C9ry");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! @angular/core */
"fXoL");
/* harmony import */
var _ionic_angular__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
/*! @ionic/angular */
"TEn/");
/* harmony import */
var _capacitor_camera__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
/*! @capacitor/camera */
"/s3u");
/* harmony import */
var _capacitor_filesystem__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
/*! @capacitor/filesystem */
"F7bV");
/* harmony import */
var src_services_common_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
/*! src/services/common.service */
"FBGF");
var VehicleAttachmentComponent = /*#__PURE__*/function () {
function VehicleAttachmentComponent(modelController, alert, commonService) {
_classCallCheck(this, VehicleAttachmentComponent);
this.modelController = modelController;
this.alert = alert;
this.commonService = commonService;
this.data = {
userOption: '',
file: '',
docKey: ''
};
this.filename = '';
this.isValidFileSize = false;
}
_createClass(VehicleAttachmentComponent, [{
key: "ngOnInit",
value: function ngOnInit() {
this.platform = this.commonService.getLocalPlatformDetail();
this.vehicleDocTypeList = JSON.parse(localStorage.getItem("vehicleDocTypeList"));
this.optionField = Object.values(this.vehicleDocTypeList);
}
}, {
key: "onFileSelected",
value: function onFileSelected(event) {
this.fileData = event.target.files[0];
this.filename = this.fileData.name;
this.isValidFileSize = this.commonService.fileValidation(this.fileData.size);
}
}, {
key: "cancel",
value: function cancel() {
this.data.userOption = 'cancel';
this.modelController.dismiss(this.data);
} //-------------------------------For upload captured image----------------------------------------------------
}, {
key: "chooseFile",
value: function chooseFile() {
this.simpleConfirm1('Please select option to upload!', 'You can use Camera or Gallery to upload photo');
}
}, {
key: "simpleConfirm1",
value: function simpleConfirm1(headerVal, messageVal) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee16() {
var _this12 = this;
var alert;
return regeneratorRuntime.wrap(function _callee16$(_context16) {
while (1) {
switch (_context16.prev = _context16.next) {
case 0:
_context16.next = 2;
return this.alert.create({
cssClass: 'my-custom-class',
mode: 'ios',
header: headerVal,
message: messageVal,
buttons: [{
text: 'Camera',
handler: function handler() {
_this12.selectImage();
}
}, {
text: 'Gallery',
handler: function handler() {
_this12.pickImageFromGallery();
}
}, {
text: 'Cancel',
handler: function handler() {}
}]
});
case 2:
alert = _context16.sent;
_context16.next = 5;
return alert.present();
case 5:
case "end":
return _context16.stop();
}
}
}, _callee16, this);
}));
}
}, {
key: "pickImageFromGallery",
value: function pickImageFromGallery() {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee17() {
var image;
return regeneratorRuntime.wrap(function _callee17$(_context17) {
while (1) {
switch (_context17.prev = _context17.next) {
case 0:
_context17.next = 2;
return _capacitor_camera__WEBPACK_IMPORTED_MODULE_5__["Camera"].getPhoto({
quality: 70,
allowEditing: false,
resultType: _capacitor_camera__WEBPACK_IMPORTED_MODULE_5__["CameraResultType"].DataUrl,
source: _capacitor_camera__WEBPACK_IMPORTED_MODULE_5__["CameraSource"].Photos // Camera, Photos or Prompt!
});
case 2:
image = _context17.sent;
if (image) {
this.saveImage(image.dataUrl);
}
case 4:
case "end":
return _context17.stop();
}
}
}, _callee17, this);
}));
}
}, {
key: "selectImage",
value: function selectImage() {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee18() {
var image;
return regeneratorRuntime.wrap(function _callee18$(_context18) {
while (1) {
switch (_context18.prev = _context18.next) {
case 0:
_context18.next = 2;
return _capacitor_camera__WEBPACK_IMPORTED_MODULE_5__["Camera"].getPhoto({
quality: 70,
allowEditing: false,
resultType: _capacitor_camera__WEBPACK_IMPORTED_MODULE_5__["CameraResultType"].DataUrl,
source: _capacitor_camera__WEBPACK_IMPORTED_MODULE_5__["CameraSource"].Camera // Camera, Photos or Prompt!
});
case 2:
image = _context18.sent;
if (image) {
this.saveImage(image.dataUrl);
}
case 4:
case "end":
return _context18.stop();
}
}
}, _callee18, this);
}));
}
}, {
key: "saveImage",
value: function saveImage(image) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee19() {
var fileName, savedFile;
return regeneratorRuntime.wrap(function _callee19$(_context19) {
while (1) {
switch (_context19.prev = _context19.next) {
case 0:
fileName = new Date().getTime() + '.jpeg';
_context19.next = 3;
return _capacitor_filesystem__WEBPACK_IMPORTED_MODULE_6__["Filesystem"].writeFile({
path: fileName,
data: image,
directory: _capacitor_filesystem__WEBPACK_IMPORTED_MODULE_6__["Directory"].Documents
});
case 3:
savedFile = _context19.sent;
_context19.next = 6;
return this.dataURLtoFile(image, fileName);
case 6:
this.fileData = _context19.sent;
this.filename = fileName;
this.isValidFileSize = this.commonService.fileValidation(this.fileData.size);
case 9:
case "end":
return _context19.stop();
}
}
}, _callee19, this);
}));
}
}, {
key: "dataURLtoFile",
value: function dataURLtoFile(dataurl, filename) {
var arr = dataurl.split(','),
mime = dataurl.split(';')[0].split(':')[1],
bstr = atob(arr[1]),
n = bstr.length,
u8arr = new Uint8Array(n);
while (n--) {
u8arr[n] = bstr.charCodeAt(n);
}
return new File([u8arr], filename, {
type: mime
});
} //-----------------------------------------------------------------------------------
}, {
key: "confirm",
value: function confirm() {
var _this13 = this;
var key = Object.keys(this.vehicleDocTypeList).find(function (key) {
return _this13.vehicleDocTypeList[key] === _this13.selectedDocType;
});
this.data.file = this.fileData;
this.data.docKey = key;
this.data.userOption = 'confirm';
this.modelController.dismiss(this.data);
}
}]);
return VehicleAttachmentComponent;
}();
VehicleAttachmentComponent.ctorParameters = function () {
return [{
type: _ionic_angular__WEBPACK_IMPORTED_MODULE_4__["ModalController"]
}, {
type: _ionic_angular__WEBPACK_IMPORTED_MODULE_4__["AlertController"]
}, {
type: src_services_common_service__WEBPACK_IMPORTED_MODULE_7__["CommonService"]
}];
};
VehicleAttachmentComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Component"])({
selector: 'app-vehicle-attachment',
template: _raw_loader_vehicle_attachment_component_html__WEBPACK_IMPORTED_MODULE_1__["default"],
styles: [_vehicle_attachment_component_scss__WEBPACK_IMPORTED_MODULE_2__["default"]]
})], VehicleAttachmentComponent);
/***/
},
/***/
"ZAI4":
/*!*******************************!*\
!*** ./src/app/app.module.ts ***!
\*******************************/
/*! exports provided: HttpLoaderFactory, AppModule */
/***/
function ZAI4(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "HttpLoaderFactory", function () {
return HttpLoaderFactory;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "AppModule", function () {
return AppModule;
});
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! tslib */
"mrSG");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! @angular/core */
"fXoL");
/* harmony import */
var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! @angular/platform-browser */
"jhN1");
/* harmony import */
var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! @angular/router */
"tyNb");
/* harmony import */
var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
/*! @ngx-translate/core */
"sYmb");
/* harmony import */
var _ngx_translate_http_loader__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
/*! @ngx-translate/http-loader */
"mqiu");
/* harmony import */
var _angular_common_http__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
/*! @angular/common/http */
"tk/3");
/* harmony import */
var _ionic_angular__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
/*! @ionic/angular */
"TEn/");
/* harmony import */
var _app_routing_module__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
/*! ./app-routing.module */
"vY5A");
/* harmony import */
var _app_config__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
/*! ./app.config */
"aR35");
/* harmony import */
var _app_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
/*! ./app.component */
"Sy1n");
/* harmony import */
var _ionic_native_splash_screen_ngx__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(
/*! @ionic-native/splash-screen/ngx */
"54vc");
/* harmony import */
var _ionic_native_status_bar_ngx__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(
/*! @ionic-native/status-bar/ngx */
"VYYF");
/* harmony import */
var _ionic_native_social_sharing_ngx__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(
/*! @ionic-native/social-sharing/ngx */
"/XPu");
/* harmony import */
var _angular_forms__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(
/*! @angular/forms */
"3Pt+");
/* harmony import */
var src_services_Interceptor_provider_interceptor__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(
/*! src/services/Interceptor-provider.interceptor */
"8l85");
/* harmony import */
var _ionic_native_file_opener_ngx__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(
/*! @ionic-native/file-opener/ngx */
"te5A");
/* harmony import */
var _sentry_angular__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(
/*! @sentry/angular */
"UH2p");
/* harmony import */
var _ionic_native_in_app_browser_ngx__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(
/*! @ionic-native/in-app-browser/ngx */
"m/P+");
/* harmony import */
var src_environments_environment__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(
/*! src/environments/environment */
"AytR");
/* harmony import */
var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(
/*! @ng-select/ng-select */
"ZOsW");
/* harmony import */
var src_models_vehicle_attachment_vehicle_attachment_component__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(
/*! src/models/vehicle-attachment/vehicle-attachment.component */
"YAtm");
/* harmony import */
var src_models_wallet_filter_wallet_filter_component__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(
/*! src/models/wallet-filter/wallet-filter.component */
"AoF4");
/* harmony import */
var src_models_helpdesk_attachment_helpdesk_attachment_component__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(
/*! src/models/helpdesk-attachment/helpdesk-attachment.component */
"0lNN");
/* harmony import */
var src_models_service_filter_service_filter_component__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(
/*! src/models/service-filter/service-filter.component */
"HEGi");
/* harmony import */
var _angular_common__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(
/*! @angular/common */
"ofXK"); //import firebase from 'firebase/app';
function HttpLoaderFactory(http) {
return new _ngx_translate_http_loader__WEBPACK_IMPORTED_MODULE_5__["TranslateHttpLoader"](http);
}
var AppModule = /*#__PURE__*/_createClass(function AppModule() {
_classCallCheck(this, AppModule);
});
AppModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
declarations: [_app_component__WEBPACK_IMPORTED_MODULE_10__["AppComponent"], src_models_wallet_filter_wallet_filter_component__WEBPACK_IMPORTED_MODULE_22__["WalletFilterComponent"], src_models_service_filter_service_filter_component__WEBPACK_IMPORTED_MODULE_24__["ServiceFilterComponent"], src_models_helpdesk_attachment_helpdesk_attachment_component__WEBPACK_IMPORTED_MODULE_23__["HelpdeskAttachmentComponent"], src_models_vehicle_attachment_vehicle_attachment_component__WEBPACK_IMPORTED_MODULE_21__["VehicleAttachmentComponent"]],
entryComponents: [],
imports: [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_2__["BrowserModule"], _ionic_angular__WEBPACK_IMPORTED_MODULE_7__["IonicModule"].forRoot(), _app_routing_module__WEBPACK_IMPORTED_MODULE_8__["AppRoutingModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_14__["FormsModule"], _angular_common_http__WEBPACK_IMPORTED_MODULE_6__["HttpClientModule"], _ngx_translate_core__WEBPACK_IMPORTED_MODULE_4__["TranslateModule"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_20__["NgSelectModule"], _ngx_translate_core__WEBPACK_IMPORTED_MODULE_4__["TranslateModule"].forRoot({
defaultLanguage: 'en',
loader: {
provide: _ngx_translate_core__WEBPACK_IMPORTED_MODULE_4__["TranslateLoader"],
useFactory: HttpLoaderFactory,
deps: [_angular_common_http__WEBPACK_IMPORTED_MODULE_6__["HttpClient"]]
}
})],
providers: [_ionic_native_file_opener_ngx__WEBPACK_IMPORTED_MODULE_16__["FileOpener"], _ionic_native_status_bar_ngx__WEBPACK_IMPORTED_MODULE_12__["StatusBar"], _ionic_native_splash_screen_ngx__WEBPACK_IMPORTED_MODULE_11__["SplashScreen"], _ionic_native_social_sharing_ngx__WEBPACK_IMPORTED_MODULE_13__["SocialSharing"], _ionic_native_in_app_browser_ngx__WEBPACK_IMPORTED_MODULE_18__["InAppBrowser"], _angular_common__WEBPACK_IMPORTED_MODULE_25__["DatePipe"], {
provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ErrorHandler"],
useValue: _sentry_angular__WEBPACK_IMPORTED_MODULE_17__["createErrorHandler"]({
showDialog: src_environments_environment__WEBPACK_IMPORTED_MODULE_19__["environment"].sentryFeedbackUserDialog
})
}, {
provide: _sentry_angular__WEBPACK_IMPORTED_MODULE_17__["TraceService"],
deps: [_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"]]
}, {
provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__["APP_INITIALIZER"],
useFactory: function useFactory() {
return function () {};
},
deps: [_sentry_angular__WEBPACK_IMPORTED_MODULE_17__["TraceService"]],
multi: true
}, {
provide: _app_config__WEBPACK_IMPORTED_MODULE_9__["APP_CONFIG"],
useValue: _app_config__WEBPACK_IMPORTED_MODULE_9__["BaseAppConfig"]
}, {
provide: _angular_router__WEBPACK_IMPORTED_MODULE_3__["RouteReuseStrategy"],
useClass: _ionic_angular__WEBPACK_IMPORTED_MODULE_7__["IonicRouteStrategy"]
}, {
provide: _angular_common_http__WEBPACK_IMPORTED_MODULE_6__["HTTP_INTERCEPTORS"],
useClass: src_services_Interceptor_provider_interceptor__WEBPACK_IMPORTED_MODULE_15__["InterceptorProvider"],
multi: true
}],
bootstrap: [_app_component__WEBPACK_IMPORTED_MODULE_10__["AppComponent"]]
})], AppModule);
/***/
},
/***/
"aR35":
/*!*******************************!*\
!*** ./src/app/app.config.ts ***!
\*******************************/
/*! exports provided: APP_CONFIG, BaseAppConfig */
/***/
function aR35(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "APP_CONFIG", function () {
return APP_CONFIG;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "BaseAppConfig", function () {
return BaseAppConfig;
});
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! @angular/core */
"fXoL");
var APP_CONFIG = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]("app.config");
var BaseAppConfig = {
availableLanguages: [{
code: 'en',
name: 'English'
}, {
code: 'ar',
name: 'Arabic'
}, {
code: 'es',
name: 'Spanish'
}, {
code: 'fr',
name: 'French'
}, {
code: 'id',
name: 'Indonesian'
}, {
code: 'pt',
name: 'Portuguese'
}],
showBuyPromt: false
};
/***/
},
/***/
"k8oS":
/*!***********************************!*\
!*** ./src/services/constants.ts ***!
\***********************************/
/*! exports provided: CONSTANTS, COLUMNS, MESSAGES */
/***/
function k8oS(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "CONSTANTS", function () {
return CONSTANTS;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "COLUMNS", function () {
return COLUMNS;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "MESSAGES", function () {
return MESSAGES;
});
var CONSTANTS;
(function (CONSTANTS) {
CONSTANTS[CONSTANTS["ROW_COUNT"] = 20] = "ROW_COUNT";
CONSTANTS[CONSTANTS["LAST_TRANSACTION_COUNT"] = 2] = "LAST_TRANSACTION_COUNT";
CONSTANTS["WALLET_STATEMENT_API"] = "/reports/run";
CONSTANTS["WALLET_TOPUP_BAL_ENQ"] = "/pgtopup/check";
CONSTANTS["WALLET_TOPUP_BEGIN"] = "/pgtopup/begin";
CONSTANTS["WALLET_DISPUTE_STATUS"] = "/disputes/check/";
CONSTANTS["PG_TRANSACTION_STATUS"] = "/pgtopup";
CONSTANTS["PG_TRANSACTION_END"] = "/pgtopup/end";
CONSTANTS["SERVICE_REQUEST_API"] = "/tickets/topics";
CONSTANTS["userId"] = "C777777";
CONSTANTS["LOGIN_TYPE"] = "userid";
CONSTANTS["SERVICE_REQUEST_TICKETS_API"] = "/reports/run";
CONSTANTS["VEHICLE_LISTING_API"] = "/reports/run";
CONSTANTS["VEHICLE_GENERATE_CHALLAN_PDF_API"] = "/vehicles/challanpdf";
CONSTANTS["VEHICLE_DOWNLOAD_CHALLAN_PDF_API"] = "/files/download";
CONSTANTS["LOGIN_API"] = "/user/fleetlogin"; // PROFILE_API = '/profile',
CONSTANTS["PROFILE_API"] = "/profile";
CONSTANTS["ADD_TICKET_API"] = "/tickets";
CONSTANTS["ADD_DISPUTE_API"] = "/disputes/raise";
CONSTANTS["CLOSE_TICKET_API"] = "/tickets/close";
CONSTANTS["DISPUTE_TICKET_DOC_UPLOAD_API"] = "/disputes/docs/upload/";
CONSTANTS["TICKET_ATTACHMENT_LISTS_API"] = "/tickets/docs/list/";
CONSTANTS["DISPUTE_TICKET_ATTACHMENT_LISTS_API"] = "/disputes/docs/list/";
CONSTANTS["VEHICLE_ATTACHMENT_LISTS_API"] = "/vehicles/docs/list/";
CONSTANTS["ATTACHMENT_LISTS_API"] = "/tickets/docs/list/1804";
CONSTANTS["ADD_VEHICLE_API"] = "/enrollment/addvehicle";
CONSTANTS["DEL_VEHICLE_API"] = "/enrollment/vehicle";
CONSTANTS["VEHICLE_CLASS_API"] = "/lookup/vehicleclass";
CONSTANTS["GLOBAL_INIT_API"] = "https://driver.1pay.devops.merce.co/apiSample.php";
CONSTANTS["LOGOUT_API"] = "/logout";
CONSTANTS[CONSTANTS["SUBTRACT_DAYS"] = 90] = "SUBTRACT_DAYS";
CONSTANTS[CONSTANTS["DISPUTE_BTN_DISABLE_DAYS"] = 45] = "DISPUTE_BTN_DISABLE_DAYS";
CONSTANTS[CONSTANTS["FILESIZE_LIMIT_IN_MB"] = 5] = "FILESIZE_LIMIT_IN_MB";
CONSTANTS[CONSTANTS["API_TIMEOUT"] = 300000] = "API_TIMEOUT";
CONSTANTS["PG_TIMEOUT_MESSAGE"] = "Payment time expires";
CONSTANTS["DISPUTE_ALERT_MSG"] = "A dispute has been raised with id #";
CONSTANTS["TICKET_ALERT_MSG"] = "Ticket has been successfully created with ticket ID #";
CONSTANTS["VEHICLE_ADD_ALERT_MSG"] = "Vehicle added successfully";
CONSTANTS["OFFLINE_MSG"] = "Please check your internet connection";
CONSTANTS["SHARE_TOP_HEADER"] = "Sent via 1PAY";
CONSTANTS["FORMLY_PLACEHOLDER_TEXT"] = "Maximum character limit is 50";
CONSTANTS["FORMLY_PLACEHOLDER_TEXT_PHONE"] = "Maximum number length is 10";
CONSTANTS["SESSION_ALERT_MSG"] = "Your session has timed out. Please log in again.";
CONSTANTS["INVALID_FILESIZE_ALERT_MSG"] = "File size is more than 5MB..! Please try again.";
CONSTANTS["FILESIZE_NOTE_ALERT_MSG"] = "Please ensure file size is not more than 5MB.";
CONSTANTS["API_TIMEOUT_MSG"] = "Failed to complete operation. Please try again later after sometime.";
CONSTANTS["SHARE_FOOTER_NOTE"] = "Install 1PAY 1Move app and move fast using the app, pay for tolls, manage trips expenses and track all your support requests using our elegant and speedy interface.";
CONSTANTS["VEHICLE_SUSPEND_API"] = "/vehicles/suspend/";
CONSTANTS["VEHICLE_UNSUSPEND_API"] = "/vehicles/unsuspend/";
CONSTANTS["NO_RECORD"] = "No records to load";
CONSTANTS["TICKET_STATUS_CNT_API"] = "/tickets/summary";
CONSTANTS["NOTIFICATION_TEST_BTN"] = "true";
CONSTANTS["PG_MERCE_URL"] = "https://driver.1pay.devops.merce.co/demo.php";
CONSTANTS["PG_1PAY_PROD_URL"] = "https://1paytag.hdfcbank.com/fleetui/processmtopup.jsp";
CONSTANTS["PG_1PAY_UAT_URL"] = "https://hdfcbankfastag.in/fleetui/processmtopup.jsp";
CONSTANTS["TMP_FCM_URL"] = "http://mobapp01.centralindia.cloudapp.azure.com:8181/fleetapi/rest";
CONSTANTS["GET_CHANNELS_API"] = "/pns/topics";
CONSTANTS["SUBSCRIBE_CHANNEL_API"] = "/pns/subscribe/";
CONSTANTS["UNSUBSCRIBE_CHANNEL_API"] = "/pns/unsubscribe/";
CONSTANTS["TOPIC_NOTIFICATION_API"] = "/pns/topic/send";
CONSTANTS["LOCAL_INIT_URL"] = "/device/register";
CONSTANTS["TICKET_DOC_TYPE_API"] = "/tickets/docs/types";
CONSTANTS["TICKET_DOC_UPLOAD_API"] = "/tickets/docs/upload/";
CONSTANTS["VEHICLE_DOC_TYPE_API"] = "/vehicles/docs/types";
CONSTANTS["DISPUTE_DOC_TYPE_API"] = "/disputes/docs/types";
CONSTANTS["VEHICLE_DOC_UPLOAD_API"] = "/vehicles/docs/upload/";
CONSTANTS["VEHICLE_DOC_DOWNLOAD_API"] = "/vehicles/docs/download/";
CONSTANTS["VERIFY_OTP_API"] = "/verify/otp";
CONSTANTS["VERIFY_MOBILE_API"] = "/verify/mobile";
CONSTANTS["GLOBAL_INIT_URL"] = "https://1moveuat.1pay.in/svclocator/globalinit"; // GLOBAL_INIT_URL = "https://1move.1pay.in/svclocator/globalinit",
CONSTANTS["ACTIVE_VEHICLE_STATUS"] = "Active";
CONSTANTS["VEHICLE_STATUS_COUNT"] = "/vehicles/summary";
CONSTANTS["ACTIVE_VEHICLE_API"] = "/lookup/activevechicles";
CONSTANTS["NOTIFICATION_API"] = "/reports/run"; // MONTH_START = "2021-07-01",
// MONTH_END = "2021-10-30",
CONSTANTS["SEND_MAIL_API"] = "/mail/send";
CONSTANTS["EMAIL_SENT"] = "Email Sent Successful";
CONSTANTS["POTENTIAL_DISPUTE_API"] = "/disputes/getdoubledebit";
CONSTANTS["RAISE_SINGLE_DOUBLEDISPUTE"] = "/disputes/raise";
CONSTANTS["RAISE_BULK_DOUBLEDISPUTE"] = "/disputes/raisebulk";
CONSTANTS["INVALID_DOUBLE_DISPUTE"] = "/disputes/updatedd";
})(CONSTANTS || (CONSTANTS = {}));
;
var COLUMNS;
(function (COLUMNS) {
COLUMNS["id"] = "id";
COLUMNS["WALLET_TXN_ID"] = "wallet_txn_id";
COLUMNS["REF_TXN_ID"] = "ref_txn_id";
COLUMNS["WALLET_ID"] = "wallet_id";
COLUMNS["TXN_TYPE"] = "txn_type";
COLUMNS["OPENING_BALANCE"] = "opening_balance";
COLUMNS["TXN_AMOUNT"] = "txn_amount";
COLUMNS["CLOSING_BALANCE"] = "closing_balance";
COLUMNS["SECURITY_DEPOSIT"] = "security_deposit";
COLUMNS["NARRATION"] = "narration";
COLUMNS["TXN_DATE"] = "txn_date";
COLUMNS["PAY_MODE"] = "pay_mode";
COLUMNS["PARTNER_ID"] = "partner_id";
COLUMNS["PARTNER_REF_NO"] = "partner_ref_no";
COLUMNS["UDF1"] = "udf1";
COLUMNS["UDF2"] = "udf2";
COLUMNS["UDF3"] = "udf3";
COLUMNS["UDF4"] = "udf4";
COLUMNS["UDF5"] = "udf5";
COLUMNS["UDF6"] = "udf6";
COLUMNS["UDF7"] = "udf7";
COLUMNS["UDF8"] = "udf8";
COLUMNS["CREATED_ON"] = "created_on";
COLUMNS["CREATED_BY"] = "created_by";
COLUMNS["SOURCE_CHANNEL"] = "source_channel";
COLUMNS["SOURCE_CHANNEL_IP"] = "source_channel_ip";
COLUMNS["reader_ts"] = "reader_ts";
COLUMNS["req_pay_id"] = "req_pay_id";
COLUMNS["user_id"] = "user_id";
COLUMNS["remarks"] = "remarks";
COLUMNS["data"] = "data";
COLUMNS["status"] = "status";
COLUMNS["admin_remark"] = "admin_remark";
COLUMNS["created_by"] = "created_by";
COLUMNS["created_on"] = "created_on";
COLUMNS["last_updated_by"] = "last_updated_by";
COLUMNS["last_updated_on"] = "last_updated_on";
COLUMNS["category_id"] = "category_id";
COLUMNS["category_desc"] = "category_desc";
COLUMNS["vehicle_id"] = "vehicle_id";
COLUMNS["vehicle_number"] = "vehicle_number";
COLUMNS["cust_id"] = "cust_id";
COLUMNS["vehicle_class_id"] = "vehicle_class_id";
COLUMNS["tag_class_id"] = "tag_class_id";
COLUMNS["engine_number"] = "engine_number";
COLUMNS["chassis_number"] = "chassis_number";
COLUMNS["is_commercial"] = "is_commercial";
COLUMNS["is_deleted"] = "is_deleted";
COLUMNS["rodt"] = "rodt";
COLUMNS["sms_flag"] = "sms_flag";
COLUMNS["tid"] = "tid";
COLUMNS["tag_id"] = "tag_id";
COLUMNS["customer_id"] = "customer_id";
COLUMNS["tag_status"] = "tag_status";
COLUMNS["signature_data"] = "signature_data";
COLUMNS["barcode_data"] = "barcode_data";
COLUMNS["tag_pwd"] = "tag_pwd";
COLUMNS["kill_pwd"] = "kill_pwd";
COLUMNS["rfu1"] = "rfu1";
COLUMNS["rfu2"] = "rfu2";
COLUMNS["rfu3"] = "rfu3";
COLUMNS["exe_code"] = "exe_code";
COLUMNS["vrn"] = "vrn";
COLUMNS["barcode"] = "barcode";
COLUMNS["tag_class"] = "tag_class";
COLUMNS["issuer_ts"] = "issuer_ts";
COLUMNS["company_name"] = "company_name";
COLUMNS["customer_type"] = "customer_type";
COLUMNS["email"] = "email";
COLUMNS["faillogin_count"] = "faillogin_count";
COLUMNS["full_name"] = "full_name";
COLUMNS["kyc_type"] = "kyc_type";
COLUMNS["last_login_ts"] = "last_login_ts";
COLUMNS["notification_settings"] = "notification_settings";
COLUMNS["password_change_ts"] = "password_change_ts";
COLUMNS["phone"] = "phone";
COLUMNS["preferences"] = "preferences";
COLUMNS["primary_address"] = "primary_address";
COLUMNS["role"] = "role";
COLUMNS["role_id"] = "role_id";
COLUMNS["user_type"] = "user_type";
COLUMNS["wallet_id"] = "wallet_id";
})(COLUMNS || (COLUMNS = {}));
;
var MESSAGES;
(function (MESSAGES) {
MESSAGES["EMAIL_SENT"] = "Email sent successfully";
})(MESSAGES || (MESSAGES = {}));
/***/
},
/***/
"kLfG":
/*!*****************************************************************************************************************************************!*\
!*** ./node_modules/@ionic/core/dist/esm lazy ^\.\/.*\.entry\.js$ include: \.entry\.js$ exclude: \.system\.entry\.js$ namespace object ***!
\*****************************************************************************************************************************************/
/*! no static exports found */
/***/
function kLfG(module, exports, __webpack_require__) {
var map = {
"./ion-action-sheet.entry.js": ["dUtr", "common", 0],
"./ion-alert.entry.js": ["Q8AI", "common", 1],
"./ion-app_8.entry.js": ["hgI1", "common", 2],
"./ion-avatar_3.entry.js": ["CfoV", "common", 3],
"./ion-back-button.entry.js": ["Nt02", "common", 4],
"./ion-backdrop.entry.js": ["Q2Bp", 5],
"./ion-button_2.entry.js": ["0Pbj", "common", 6],
"./ion-card_5.entry.js": ["ydQj", "common", 7],
"./ion-checkbox.entry.js": ["4fMi", "common", 8],
"./ion-chip.entry.js": ["czK9", "common", 9],
"./ion-col_3.entry.js": ["/CAe", 10],
"./ion-datetime_3.entry.js": ["WgF3", "common", 11],
"./ion-fab_3.entry.js": ["uQcF", "common", 12],
"./ion-img.entry.js": ["wHD8", 13],
"./ion-infinite-scroll_2.entry.js": ["2lz6", 14],
"./ion-input.entry.js": ["ercB", "common", 15],
"./ion-item-option_3.entry.js": ["MGMP", "common", 16],
"./ion-item_8.entry.js": ["9bur", "common", 17],
"./ion-loading.entry.js": ["cABk", "common", 18],
"./ion-menu_3.entry.js": ["kyFE", "common", 19],
"./ion-modal.entry.js": ["TvZU", "common", 20],
"./ion-nav_2.entry.js": ["vnES", "common", 21],
"./ion-popover.entry.js": ["qCuA", "common", 22],
"./ion-progress-bar.entry.js": ["0tOe", "common", 23],
"./ion-radio_2.entry.js": ["h11V", "common", 24],
"./ion-range.entry.js": ["XGij", "common", 25],
"./ion-refresher_2.entry.js": ["nYbb", "common", 26],
"./ion-reorder_2.entry.js": ["smMY", "common", 27],
"./ion-ripple-effect.entry.js": ["STjf", 28],
"./ion-route_4.entry.js": ["k5eQ", "common", 29],
"./ion-searchbar.entry.js": ["OR5t", "common", 30],
"./ion-segment_2.entry.js": ["fSgp", "common", 31],
"./ion-select_3.entry.js": ["lfGF", "common", 32],
"./ion-slide_2.entry.js": ["5xYT", 33],
"./ion-spinner.entry.js": ["nI0H", "common", 34],
"./ion-split-pane.entry.js": ["NAQR", 35],
"./ion-tab-bar_2.entry.js": ["knkW", "common", 36],
"./ion-tab_2.entry.js": ["TpdJ", "common", 37],
"./ion-text.entry.js": ["ISmu", "common", 38],
"./ion-textarea.entry.js": ["U7LX", "common", 39],
"./ion-toast.entry.js": ["L3sA", "common", 40],
"./ion-toggle.entry.js": ["IUOf", "common", 41],
"./ion-virtual-scroll.entry.js": ["8Mb5", 42]
};
function webpackAsyncContext(req) {
if (!__webpack_require__.o(map, req)) {
return Promise.resolve().then(function () {
var e = new Error("Cannot find module '" + req + "'");
e.code = 'MODULE_NOT_FOUND';
throw e;
});
}
var ids = map[req],
id = ids[0];
return Promise.all(ids.slice(1).map(__webpack_require__.e)).then(function () {
return __webpack_require__(id);
});
}
webpackAsyncContext.keys = function webpackAsyncContextKeys() {
return Object.keys(map);
};
webpackAsyncContext.id = "kLfG";
module.exports = webpackAsyncContext;
/***/
},
/***/
"nBoA":
/*!*****************************************************************************************************************!*\
!*** ./node_modules/raw-loader/dist/cjs.js!./src/models/helpdesk-attachment/helpdesk-attachment.component.html ***!
\*****************************************************************************************************************/
/*! exports provided: default */
/***/
function nBoA(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */
__webpack_exports__["default"] = "\r\n \r\n \r\n \r\n \r\n Back\r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n \r\n \r\n \r\n\r\n\r\n\r\n \r\n\r\n\r\n\r\n \r\n \r\n \r\n Submit\r\n \r\n \r\n \r\n \r\n";
/***/
},
/***/
"qtrZ":
/*!*****************************************************************************************************!*\
!*** ./node_modules/raw-loader/dist/cjs.js!./src/models/wallet-filter/wallet-filter.component.html ***!
\*****************************************************************************************************/
/*! exports provided: default */
/***/
function qtrZ(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */
__webpack_exports__["default"] = "\r\n \r\n \r\n \r\n \r\n Back\r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n\r\n \r\n\r\n\r\n\r\n \r\n \r\n \r\n Apply\r\n \r\n
\r\n \r\n \r\n";
/***/
},
/***/
"qyVj":
/*!***************************************************************!*\
!*** ./src/models/wallet-filter/wallet-filter.component.scss ***!
\***************************************************************/
/*! exports provided: default */
/***/
function qyVj(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */
__webpack_exports__["default"] = "\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJ3YWxsZXQtZmlsdGVyLmNvbXBvbmVudC5zY3NzIn0= */";
/***/
},
/***/
"vY5A":
/*!***************************************!*\
!*** ./src/app/app-routing.module.ts ***!
\***************************************/
/*! exports provided: AppRoutingModule */
/***/
function vY5A(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "AppRoutingModule", function () {
return AppRoutingModule;
});
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! tslib */
"mrSG");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! @angular/core */
"fXoL");
/* harmony import */
var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! @angular/router */
"tyNb"); // import { AuthGuard} from './gaurd/auth.guard'
var routes = [{
path: '',
loadChildren: function loadChildren() {
return Promise.all(
/*! import() | sign-in-sign-in-module */
[__webpack_require__.e("default~document-list-document-list-module~home-home-module~sign-in-sign-in-module~tab3-tab3-module"), __webpack_require__.e("default~document-list-document-list-module~sign-in-sign-in-module~tabs-tabs-module"), __webpack_require__.e("common"), __webpack_require__.e("sign-in-sign-in-module")]).then(__webpack_require__.bind(null,
/*! ./sign-in/sign-in.module */
"FuQ6")).then(function (m) {
return m.SignInPageModule;
});
} // ,canActivate:[AuthGuard]
}, {
path: 'tabs',
// loadChildren: () => import('./tab1/tab1.module').then(m => m.Tab1PageModule)
loadChildren: function loadChildren() {
return Promise.all(
/*! import() | tabs-tabs-module */
[__webpack_require__.e("default~document-list-document-list-module~sign-in-sign-in-module~tabs-tabs-module"), __webpack_require__.e("common"), __webpack_require__.e("tabs-tabs-module")]).then(__webpack_require__.bind(null,
/*! ./tabs/tabs.module */
"hO9l")).then(function (m) {
return m.TabsPageModule;
});
}
}, {
path: 'success',
loadChildren: function loadChildren() {
return __webpack_require__.e(
/*! import() | success-success-module */
"success-success-module").then(__webpack_require__.bind(null,
/*! ./success/success.module */
"VUit")).then(function (m) {
return m.SuccessPageModule;
});
}
}, {
path: 'payment-response',
loadChildren: function loadChildren() {
return Promise.all(
/*! import() | payment-response-payment-response-module */
[__webpack_require__.e("default~home-home-module~payment-response-payment-response-module~wallet-wallet-module"), __webpack_require__.e("payment-response-payment-response-module")]).then(__webpack_require__.bind(null,
/*! ./payment-response/payment-response.module */
"FdgP")).then(function (m) {
return m.PaymentResponsePageModule;
});
}
}, {
path: 'login',
loadChildren: function loadChildren() {
return Promise.all(
/*! import() | sign-in-sign-in-module */
[__webpack_require__.e("default~document-list-document-list-module~home-home-module~sign-in-sign-in-module~tab3-tab3-module"), __webpack_require__.e("default~document-list-document-list-module~sign-in-sign-in-module~tabs-tabs-module"), __webpack_require__.e("common"), __webpack_require__.e("sign-in-sign-in-module")]).then(__webpack_require__.bind(null,
/*! ./sign-in/sign-in.module */
"FuQ6")).then(function (m) {
return m.SignInPageModule;
});
}
}, {
path: 'profile',
loadChildren: function loadChildren() {
return Promise.all(
/*! import() | profile-profile-module */
[__webpack_require__.e("default~home-home-module~profile-profile-module"), __webpack_require__.e("profile-profile-module")]).then(__webpack_require__.bind(null,
/*! ./profile/profile.module */
"cRhG")).then(function (m) {
return m.ProfilePageModule;
});
}
}, {
path: 'raise-dispute',
loadChildren: function loadChildren() {
return __webpack_require__.e(
/*! import() | raise-dispute-raise-dispute-module */
"raise-dispute-raise-dispute-module").then(__webpack_require__.bind(null,
/*! ./raise-dispute/raise-dispute.module */
"rEVv")).then(function (m) {
return m.RaiseDisputePageModule;
});
}
}, {
path: 'document-list',
loadChildren: function loadChildren() {
return Promise.all(
/*! import() | document-list-document-list-module */
[__webpack_require__.e("default~document-list-document-list-module~home-home-module~sign-in-sign-in-module~tab3-tab3-module"), __webpack_require__.e("default~document-list-document-list-module~sign-in-sign-in-module~tabs-tabs-module"), __webpack_require__.e("document-list-document-list-module")]).then(__webpack_require__.bind(null,
/*! ./document-list/document-list.module */
"PoiV")).then(function (m) {
return m.DocumentListPageModule;
});
}
}, {
path: 'landing-screen',
loadChildren: function loadChildren() {
return __webpack_require__.e(
/*! import() | landing-screen-landing-screen-module */
"landing-screen-landing-screen-module").then(__webpack_require__.bind(null,
/*! ./landing-screen/landing-screen.module */
"6rnI")).then(function (m) {
return m.LandingScreenPageModule;
});
}
}, {
path: 'landing-screen',
loadChildren: function loadChildren() {
return __webpack_require__.e(
/*! import() | landing-screen-landing-screen-module */
"landing-screen-landing-screen-module").then(__webpack_require__.bind(null,
/*! ./landing-screen/landing-screen.module */
"6rnI")).then(function (m) {
return m.LandingScreenPageModule;
});
}
}];
var AppRoutingModule = /*#__PURE__*/_createClass(function AppRoutingModule() {
_classCallCheck(this, AppRoutingModule);
});
AppRoutingModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
imports: [_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"].forRoot(routes, {
preloadingStrategy: _angular_router__WEBPACK_IMPORTED_MODULE_2__["PreloadAllModules"]
})],
exports: [_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"]]
})], AppRoutingModule);
/***/
},
/***/
"ynWL":
/*!************************************!*\
!*** ./src/app/app.component.scss ***!
\************************************/
/*! exports provided: default */
/***/
function ynWL(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */
__webpack_exports__["default"] = ".left-iocn1 ion-img {\n width: 24px;\n -o-object-fit: contain;\n object-fit: contain;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uXFwuLlxcYXBwLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksV0FBQTtFQUNBLHNCQUFBO0tBQUEsbUJBQUE7QUFDSiIsImZpbGUiOiJhcHAuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIubGVmdC1pb2NuMSBpb24taW1nIHtcclxuICAgIHdpZHRoOiAyNHB4O1xyXG4gICAgb2JqZWN0LWZpdDogY29udGFpbjtcclxufSJdfQ== */";
/***/
},
/***/
"zTuZ":
/*!*****************************************************************!*\
!*** ./src/models/service-filter/service-filter.component.scss ***!
\*****************************************************************/
/*! exports provided: default */
/***/
function zTuZ(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */
__webpack_exports__["default"] = "\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzZXJ2aWNlLWZpbHRlci5jb21wb25lbnQuc2NzcyJ9 */";
/***/
},
/***/
"zUnb":
/*!*********************!*\
!*** ./src/main.ts ***!
\*********************/
/*! no exports provided */
/***/
function zUnb(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! @angular/core */
"fXoL");
/* harmony import */
var _angular_platform_browser_dynamic__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! @angular/platform-browser-dynamic */
"a3Wg");
/* harmony import */
var _sentry_angular__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! @sentry/angular */
"UH2p");
/* harmony import */
var _sentry_tracing__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! @sentry/tracing */
"aI3+");
/* harmony import */
var _app_app_module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
/*! ./app/app.module */
"ZAI4");
/* harmony import */
var _environments_environment__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
/*! ./environments/environment */
"AytR");
_sentry_angular__WEBPACK_IMPORTED_MODULE_2__["init"]({
dsn: _environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].sentryDsn,
integrations: [new _sentry_tracing__WEBPACK_IMPORTED_MODULE_3__["Integrations"].BrowserTracing({
tracingOrigins: ["localhost", _environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].sentryTracingOrigins],
routingInstrumentation: _sentry_angular__WEBPACK_IMPORTED_MODULE_2__["routingInstrumentation"]
})],
// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for performance monitoring.
// We recommend adjusting this value in production
tracesSampleRate: 1.0
});
if (_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].production) {
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["enableProdMode"])();
}
Object(_angular_platform_browser_dynamic__WEBPACK_IMPORTED_MODULE_1__["platformBrowserDynamic"])().bootstrapModule(_app_app_module__WEBPACK_IMPORTED_MODULE_4__["AppModule"]).then(function (success) {
return console.log("Bootstrap success");
})["catch"](function (err) {
return console.error(err);
});
/***/
},
/***/
"zn8P":
/*!******************************************************!*\
!*** ./$$_lazy_route_resource lazy namespace object ***!
\******************************************************/
/*! no static exports found */
/***/
function zn8P(module, exports) {
function webpackEmptyAsyncContext(req) {
// Here Promise.resolve().then() is used instead of new Promise() to prevent
// uncaught exception popping up in devtools
return Promise.resolve().then(function () {
var e = new Error("Cannot find module '" + req + "'");
e.code = 'MODULE_NOT_FOUND';
throw e;
});
}
webpackEmptyAsyncContext.keys = function () {
return [];
};
webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;
module.exports = webpackEmptyAsyncContext;
webpackEmptyAsyncContext.id = "zn8P";
/***/
}
}, [[0, "runtime", "vendor"]]]);
})();
//# sourceMappingURL=main-es5.js.map