From e0e10ba38c42854b86785d79b4bcc1006719e7c0 Mon Sep 17 00:00:00 2001 From: nikita Date: Wed, 31 Jan 2018 15:36:36 +0530 Subject: [PATCH] Files changes came on switching o PreQA --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/CIController.js | 1512 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 400-SOURCECODE/AIAHTML5.Web/app/views/Link/Link-view.html | 68 ++++++++++++++++++++++++++++++++++---------------------------------- 400-SOURCECODE/Admin/dist/assets/styles/bootstrap-spinner.css | 151 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 400-SOURCECODE/Admin/dist/inline.30da24ccb8e2260fa5b7.bundle.js | 1 + 400-SOURCECODE/Admin/dist/main.efda295bc6a63c38233c.bundle.js | 1 + 5 files changed, 943 insertions(+), 790 deletions(-) create mode 100644 400-SOURCECODE/Admin/dist/assets/styles/bootstrap-spinner.css create mode 100644 400-SOURCECODE/Admin/dist/inline.30da24ccb8e2260fa5b7.bundle.js create mode 100644 400-SOURCECODE/Admin/dist/main.efda295bc6a63c38233c.bundle.js diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/CIController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/CIController.js index 90a483b..1a8e92f 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/CIController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/CIController.js @@ -1,756 +1,756 @@ -AIA.controller("CIController", ["$scope", "$window", "$rootScope", "$compile", "$http", "$log", "$location", "$timeout", "pages", "BodyRegions", "BodySystems", "ViewOrientations", "ImageTypes", "MedicalSpecialties", "DataService", -function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout, pages, BodyRegions, BodySystems, ViewOrientations, ImageTypes, MedicalSpecialties, DataService) { - // $rootScope.currentActiveModuleTitle = pages[3].name; - $scope.showTabButton = true; - $scope.IllustrationData; - $scope.CIAllBodyRegion = []; - $scope.CIAllBodySystem = []; - $scope.CIAllOrientation = []; - $scope.CIAllImageType = []; - $scope.CIAllSpeciality = []; - $scope.searchCIListViewData = []; - $scope.SelectedCIthumbImage = []; - $scope.SelectedCIImage = []; - $scope.SelectedCISummary = []; - $scope.SelectedCIId = []; - $scope.SelectedCITitle = []; - $scope.selectedCIListViewData = []; - $scope.filterstring = false; - $scope.idSelected; - $scope.srollListView; - $scope.query = { - selectedbodyregion: '', - selectedbodysystem: '', - selectedorientation: '', - selectedimagetype: '', - selectedspecialty: '', - }; - - $scope.setActiveTab = function (tabToSet) { - $scope.activeTab = tabToSet; - localStorage.setItem("currentCITabView", $scope.activeTab); - }; - - $scope.$on('$viewContentLoaded', function (event) { - - if ($rootScope.refreshcheck == null) { - $location.path('/'); - } - // code that will be executed ... - // every time this view is loaded - - //get current path - var currentURL = $location.path(); - var selectedModuleName = ''; - //set module title - angular.forEach($rootScope.userModules, function (value, key) { - if (value.slug === currentURL.replace('/', '')) { - selectedModuleName = value.name; - } - $rootScope.currentActiveModuleTitle = selectedModuleName; - }) - - $scope.LoadCIJsonData(); - - $scope.CIAllBodyRegion = BodyRegions; - $scope.CIAllBodySystem = BodySystems; - $scope.CIAllOrientation = ViewOrientations; - $scope.CIAllImageType = ImageTypes; - $scope.CIAllSpeciality = MedicalSpecialties; - $scope.scroll(); - //push the details of open module in array $rootScope.openModules - $rootScope.openModules.push({ "ModuleId": 4 }); - - //set the local storage - - var curtab = $rootScope.getLocalStorageValue("currentCITabView"); - if (curtab == 2) { - $scope.setActiveTab(2); - var curSelectedRowId = $rootScope.getLocalStorageValue("CISelectedRowId"); - if (typeof (curSelectedRowId) !== "undefined" && curSelectedRowId !== null && curSelectedRowId !== '') { - $scope.reRunSearchOnLoad(); - $scope.idSelected = curSelectedRowId; - $scope.ReloadListViewImageDiv($scope.idSelected); - } - else { - $scope.reRunSearchOnLoad() - $scope.idSelected = ''; - } - } - else { - $scope.setActiveTab(1); - $scope.reRunSearchOnLoad(); - - } - - - }); - - $scope.reRunSearchOnLoad = function () { - - var curBodyRegion = $rootScope.getLocalStorageValue("CICurBodyRegion"); - if (typeof (curBodyRegion) !== "undefined" && curBodyRegion !== null && curBodyRegion !== '') { - $scope.query.selectedbodyregion = curBodyRegion; - } - else { - $scope.query.selectedbodyregion = ""; - } - - var curBodySystem = $rootScope.getLocalStorageValue("CICurBodySystem"); - if (typeof (curBodySystem) !== "undefined" && curBodySystem !== null && curBodySystem !== '') { - $scope.query.selectedbodysystem = curBodySystem; - } - else { - $scope.query.selectedbodysystem = ""; - } - - var curOrientation = $rootScope.getLocalStorageValue("CICurOrientation"); - if (typeof (curOrientation) !== "undefined" && curOrientation !== null && curOrientation !== '') { - $scope.query.selectedorientation = curOrientation; - } - else { - $scope.query.selectedorientation = ""; - } - - var curImageType = $rootScope.getLocalStorageValue("CICurImageType"); - if (typeof (curImageType) !== "undefined" && curImageType !== null && curImageType !== '') { - $scope.query.selectedimagetype = curImageType; - } - else { - $scope.query.selectedimagetype = ""; - } - - var curSpeciality = $rootScope.getLocalStorageValue("CICurSpeciality"); - if (typeof (curSpeciality) !== "undefined" && curSpeciality !== null && curSpeciality !== '') { - $scope.query.selectedspecialty = curSpeciality; - } - else { - $scope.query.selectedspecialty = ""; - } - - - if ($scope.query.selectedbodyregion == "" && $scope.query.selectedbodysystem == "" && $scope.query.selectedorientation == "" && $scope.query.selectedimagetype == "" && $scope.query.selectedspecialty == "") { - $scope.loadAllCI(); - } - else { - $scope.ApplySearch($scope.query); - } - - } - - $scope.LoadCIJsonData = function () { - - var promise = DataService.getJson('~/../content/data/json/ci/ci_dat_contentlist.json') - promise.then( - function (result) { - $scope.IllustrationData = result; - $scope.selectedCIListViewData = new jinqJs() - .from($scope.IllustrationData.root.CIData) - .orderBy([{ field: '_Title', sort: 'asc' }]) - .select(); - - }, - function (error) { - // handle errors here - console.log(' $scope.IllustrationData = ' + error.statusText); - } - ); - - - }; - - $scope.loadAllCI = function () { - $('#ciSpinner').css('visibility', 'visible'); - $('#ciSpinner').css('zIndex', '20000'); - var promise = DataService.getJson('~/../content/data/json/ci/ci_dat_contentlist.json') - promise.then( - function (result) { - $scope.IllustrationData = result; - - $scope.selectedCIListViewData = new jinqJs() - .from($scope.IllustrationData.root.CIData) - .orderBy([{ field: '_Title', sort: 'asc' }]) - .select(); - - // console.log($scope.selectedCIListViewData); - - - - $('#grid-view').empty(); - var $e1 = $('').appendTo('#grid-view'); - $compile($e1)($scope); - //angular.forEach($scope.selectedCIListViewData, function (value, key) { - // $scope.imagePath = "~/../content/images/ci/thumbnails/" + value._ThumbnailImage; - - // var $el = $('
' - // + '
' - // + '' - // + '

' + value._Title + '

').appendTo('#grid-view'); - - - // $compile($el)($scope); - - // $(".sidebar").mCustomScrollbar({ - // autoHideScrollbar: true, - // //theme:"rounded" - // }); - - //}); - $timeout(function () - { - $('#' + $rootScope.getLocalStorageValue("currentBodyViewId")).find('.thumbnail').addClass('HightLightThumbnail'); - if ($rootScope.getLocalStorageValue('CIGridViewScroll') !== null && $location.url() == "/clinical-illustrations") { - $('html, body').animate({ scrollTop: $rootScope.getLocalStorageValue('CIGridViewScroll') }); - } - }, 100); - - - $timeout(function () { $('#ciSpinner').css('visibility', 'hidden'); }, 300); - }, - function (error) { - // handle errors here - console.log(' $scope.IllustrationData = ' + error.statusText); - } - ); - - } - - $scope.IsVisible = function () { - $scope.scroll(); - - } - - $scope.showItem = function (id) { - $scope.idSelected = id; - localStorage.setItem("CISelectedRowId", id); - - //Set the vertical scroll value of the table. - var y = $('#ListViewDiv').scrollTop(); - localStorage.setItem("CIListViewScroll", y); - - $scope.hiderow = true; - if ($scope.filterstring == false) { - - var SelectedCIthumbImage = []; - SelectedCIthumbImage = new jinqJs() - .from($scope.selectedCIListViewData) - .where('_id = ' + id) - .select('_ThumbnailImage', '_Summary', '_id', '_Title'); - - $scope.SelectedCIthumbImage = "~/../content/images/ci/thumbnails/" + SelectedCIthumbImage[0]._ThumbnailImage; - $scope.SelectedCISummary = SelectedCIthumbImage[0]._Summary; - $scope.SelectedCIId = SelectedCIthumbImage[0]._id; - $scope.SelectedCITitle = SelectedCIthumbImage[0]._Title; - - } - else { - if ($scope.searchCIListViewData.length > 0) { - - var SelectedCIthumbImage = []; - SelectedCIthumbImage = new jinqJs() - .from($scope.searchCIListViewData) - .where('_id = ' + id) - .select('_ThumbnailImage', '_Summary', '_id', '_Title'); - - $scope.SelectedCIthumbImage = "~/../content/images/ci/thumbnails/" + SelectedCIthumbImage[0]._ThumbnailImage; - $scope.SelectedCISummary = SelectedCIthumbImage[0]._Summary; - $scope.SelectedCIId = SelectedCIthumbImage[0]._id; - $scope.SelectedCITitle = SelectedCIthumbImage[0]._Title; - - } - } - }; - - $scope.Reset = function (query) { - - query.selectedbodyregion = ""; - query.selectedbodysystem = ""; - query.selectedorientation = ""; - query.selectedimagetype = ""; - query.selectedspecialty = ""; - - - //set localstorage values - localStorage.setItem("CICurBodyRegion", ''); - localStorage.setItem("CICurBodySystem", ''); - localStorage.setItem("CICurOrientation", ''); - localStorage.setItem("CICurImageType", ''); - localStorage.setItem("CICurSpeciality", ''); - localStorage.setItem("CISelectedRowId", ""); - localStorage.setItem("CIListViewScroll", ''); - - if ($('.selected').hasClass("selected")) { $('.selected').removeClass("selected"); } - - $('#ListViewDiv').scrollTop(0); - - $scope.hideListViewDiv(); - - $scope.filterstring = false; - while ($scope.searchCIListViewData.length) { - $scope.searchCIListViewData.pop(); - } - - $scope.loadAllCI(); - - } - - $scope.ApplySearch = function (query) { - - - $scope.filterstring = true; - - while ($scope.searchCIListViewData.length) { - $scope.searchCIListViewData.pop(); - } - - - - filtercount = 0; - if (typeof (query.selectedbodyregion) !== "undefined" && (query.selectedbodyregion !== null && query.selectedbodyregion !== "")) { - filtercount = filtercount + 1; - - localStorage.setItem("CICurBodyRegion", query.selectedbodyregion); - - } - else { - localStorage.setItem("CICurBodyRegion", ''); - - } - - if (typeof (query.selectedbodysystem) !== "undefined" && (query.selectedbodysystem !== null && query.selectedbodysystem !== "")) { - filtercount = filtercount + 1; - localStorage.setItem("CICurBodySystem", query.selectedbodysystem); - - } - else { - localStorage.setItem("CICurBodySystem", ''); - - } - - if (typeof (query.selectedorientation) !== "undefined" && (query.selectedorientation !== null && query.selectedorientation !== '')) { - filtercount = filtercount + 1; - localStorage.setItem("CICurOrientation", query.selectedorientation); - - } - else { - localStorage.setItem("CICurOrientation", ''); - } - - if (typeof (query.selectedimagetype) !== "undefined" && (query.selectedimagetype !== null && query.selectedimagetype !== '')) { - filtercount = filtercount + 1; - localStorage.setItem("CICurImageType", query.selectedimagetype); - - } - else { - localStorage.setItem("CICurImageType", ''); - - } - - if (typeof (query.selectedspecialty) !== "undefined" && (query.selectedspecialty !== null && query.selectedspecialty !== '')) { - filtercount = filtercount + 1; - localStorage.setItem("CICurSpeciality", query.selectedspecialty); - - } - else { - localStorage.setItem("CICurSpeciality", ''); - - } - - - var promise = DataService.getJson('~/../content/data/json/ci/ci_dat_contentlist.json') - promise.then( - function (result) { - $scope.IllustrationData = result; - - $scope.selectedCIListViewData = new jinqJs() - .from($scope.IllustrationData.root.CIData) - .orderBy([{ field: '_Title', sort: 'asc' }]) - .select(); - - $('#grid-view').empty(); - - angular.forEach($scope.selectedCIListViewData, function (value, key) { - - var selectimg = true; - var count = 0; - - - if (typeof (query.selectedbodyregion) !== "undefined" && (query.selectedbodyregion !== null && query.selectedbodyregion !== "")) { - var posbodyregion = value._BodyRegion.indexOf((query.selectedbodyregion.trim())); - if (posbodyregion > -1) { - selectimg = true; - count = count + 1; - - } - else { - selectimg = false; - count = count - 1; - } - - } - - if (typeof (query.selectedbodysystem) !== "undefined" && (query.selectedbodysystem !== null && query.selectedbodysystem !== "")) { - var posbodysystem = value._BodySystem.indexOf(query.selectedbodysystem); - if (posbodysystem > -1) { - count = count + 1; - selectimg = true; - } else { - selectimg = false; - count = count - 1; - } - } - - if (typeof (query.selectedorientation) !== "undefined" && (query.selectedorientation !== null && query.selectedorientation !== "")) { - var posorientation = value._ViewOrientation.indexOf(query.selectedorientation); - if (posorientation > -1) { - count = count + 1; - selectimg = true; - - } else { - selectimg = false; - count = count - 1; - } - - } - - if (typeof (query.selectedimagetype) !== "undefined" && (query.selectedimagetype !== null && query.selectedimagetype !== "")) { - var posimagetype = value._ImageType.indexOf(query.selectedimagetype); - if (posimagetype > -1) { - count = count + 1; - selectimg = true; - - } else { - selectimg = false; - count = count - 1; - } - - } - - if (typeof (query.selectedspecialty) !== "undefined" && (query.selectedspecialty !== null && query.selectedspecialty !== "")) { - var posspeciality = value._MedicalSpecialty.indexOf(query.selectedspecialty); - if (posspeciality > -1) { - count = count + 1; - selectimg = true; - } else { - selectimg = false; - count = count - 1; - } - - } - - if (selectimg === true && count >= filtercount) { - - - $scope.imagePath = "~/../content/images/ci/thumbnails/" + value._ThumbnailImage; - - var $el = $('
' - + '
' - + '' - + '

' + value._Title + '

').appendTo('#grid-view'); - - - $compile($el)($scope); - - $(".sidebar").mCustomScrollbar({ - autoHideScrollbar: true, - //theme:"rounded" - }); - - - $scope.searchCIListViewData.push( - { - "_id": value._id, - "_ImageId": value._ImageId, - "_Title": value._Title, - "_contentImage": value._contentImage, - "_ThumbnailImage": value._ThumbnailImage, - "_BodySystem": value._BodySystem, - "_BodyRegion": value._BodyRegion, - "_ViewOrientation": value._ViewOrientation, - "_MedicalSpecialty": value._MedicalSpecialty, - "_ImageType": value._ImageType, - "_Summary": value._Summary - - }); - } - }); - $('table > #ListViewDiv > #searchItem').remove(); - //Show Error Message in case of gridview if no data is found - if ($scope.searchCIListViewData.length == 0) { - var $el = $('
No illustration found for the selected search criteria!
').appendTo('#grid-view'); - $compile($el)($scope); - $('table > #ListViewDiv > #searchItem').remove(); - - $('#ListViewDiv').append('No illustration found for the selected search criteria!'); - } - }, - function (error) { - // handle errors here - console.log(' $scope.IllustrationData = ' + error.statusText); - } - ); - } - - - $scope.scroll = function () { - $("html,body").scrollTop(0); - } - - - $scope.openView = function ($event) { - - $rootScope.MenuModuleName = "CI"; - $rootScope.disableAnnotationTB = false; - $rootScope.CIAnotationIdentifyModeOff = true; - $rootScope.currentBodyViewId = $event.currentTarget.id; - if ($event.currentTarget.textContent !== null && typeof ($event.currentTarget.textContent) !== "undefined") { - var CITitle = []; - CITitle = new jinqJs() - .from($scope.selectedCIListViewData) - .where('_id = ' + $event.currentTarget.id) - .select('_Title'); - - // console.log(CITitle); - // console.log($scope.selectedCIListViewData); - - $rootScope.ViewTitle = CITitle[0]._Title; - } - else { - $rootScope.ViewTitle = $event.currentTarget.textContent; - - } - - - localStorage.setItem("currentViewTitleFromJson", $rootScope.ViewTitle); - localStorage.setItem("currentBodyViewId", $event.currentTarget.id); - - //Set the vertical scroll value of the Grid-View. - var y = $($window).scrollTop(); - localStorage.setItem("CIGridViewScroll", y); - var u = $location.url(); - $location.url('/clinical-illustrations-detail'); - - // console.log($location.url('/clinical-illustrations-detail')); - - } - - $scope.openBodyView = function () { - - - if ($rootScope.refreshcheck == null) { - $location.path('/'); - } - - $rootScope.isLoading = true; - $('#spinner').css('visibility', 'visible'); - $scope.voId = $rootScope.getLocalStorageValue("currentBodyViewId"); - - // alert($scope.voId); - - - //once you get id in scope push detail in jspanel content - - var openViews; - if ($rootScope.openViews.length > 0) { - openViews = new jinqJs() - .from($rootScope.openViews) - .where("BodyViewId==" + $scope.voId) - .select(); - } - var counter = 1; - var tittle = $rootScope.getLocalStorageValue("currentViewTitleFromJson"); - - if (openViews != null && openViews.length > 0) { - angular.forEach(openViews, function (value, key) { - - if (value.body - views == tittle) { - tittle = $rootScope.getLocalStorageValue("currentViewTitleFromJson") + counter++; - $rootScope.currentActiveViewTitle = tittle; - localStorage.setItem("currentViewTitle", tittle); - } - - }); - } - else { - localStorage.setItem("currentViewTitle", tittle); - - } - - //alert($rootScope.getLocalStorageValue("currentViewTitle")); - - var promise = DataService.getJson('~/../content/data/json/ci/ci_dat_contentlist.json') - promise.then( - function (result) { - $scope.CIllustrationData = result; - $scope.CIlistViewData = $scope.CIllustrationData.root.CIData; - - var clickedCIImage = []; - clickedCIImage = new jinqJs() - .from($scope.CIlistViewData) - .where('_id == ' + $scope.voId) - .select('_contentImage'); - - $scope.clickedCIImage = "~/../content/images/ci/images/" + clickedCIImage[0]._contentImage; - - var clickedCISummary = []; - clickedCISummary = new jinqJs() - .from($scope.CIlistViewData) - .where('_id == ' + $scope.voId) - .select('_Summary'); - - $scope.clickedCISummary = clickedCISummary[0]._Summary - - if (clickedCIImage.length > 0 && clickedCISummary.length > 0) { - - $.jsPanel({ - id: 'ciImagePanel', - selector: '.ciView', - theme: 'success', - currentController: 'CIController', - parentSlug: 'clinical-illustrations', - content: '
' + - '
' + - '
' + - '

' + $scope.clickedCISummary + '

' + - '
' + - '
', - //ajax: { - // url: 'app/views/ci/ci-view-detail.html' - //}, - title: $rootScope.getLocalStorageValue("currentViewTitle"), - position: { - top: 70, - left: 20, - }, - - size: { width: $(window).outerWidth() - 20, height: $(window).outerHeight() - 110 }, - - }); - - - $('#canvasDiv img').load(function () { - - $rootScope.isLoading = false; - $('#spinner').css('visibility', 'hidden'); - }); - - $rootScope.currentSlug = 'clinical-illustrations-detail'; - - $rootScope.openViews.push( - { - "module": $rootScope.currentActiveModuleTitle, "bodyView": tittle, "state": 'max', "BodyViewId": $rootScope.currentBodyViewId, - "slug": $rootScope.currentSlug - }); - - - $("#ciImagePanel .img-thumbnail").css("height", $("#ciImagePanel .jsPanel-content").height()); - var jspContentHeight = $('.jsPanel-content').height(); - //var imgHeight = $('.img-thumbnail').find('img').height(); - //if (imgHeight <= 0) - // imgHeight = 320; - //var textH = $('.img-subtitle').height(); - //textH = textH + 40; - //var blackBorderHeight = jspContentHeight - (imgHeight + textH); - //if ($('.jsPanel-content').length > 0) { - // $('.img-subtitle').css('margin-bottom', blackBorderHeight); - //} - } - - - }, - function (error) { - // handle errors here - console.log(' $scope.CIllustrationData = ' + error.statusText); - } - - ); - - // console.log($rootScope.openViews); - $('#CIView').css("height", $(window).outerHeight()); - - $('#CIView').css("width", $(window).outerWidth()); - - } - - $scope.$on('annotationToolEvent', function (event, data) { - - $('#editstylebackgroundcolor .minicolors >.minicolors-swatch > .minicolors-swatch-color').css("background-color", "rgb(255,255,255)") - $('#editstylebackgroundcolor .minicolors >.minicolors-panel > .minicolors-grid >.minicolors-picker').css({ "top": "145px", "left": "4px" }); - $('#outlineColor .minicolors >.minicolors-swatch > .minicolors-swatch-color').css("background-color", "rgb(0,0,0)") - $('#outlineColor .minicolors >.minicolors-panel > .minicolors-grid >.minicolors-picker').css({ "top": "145px", "left": "4px" }); - - $("#canvas").css("display", "block"); - $("#canvasPaint").css("display", "block"); - - $rootScope.onDrawingCanvasClick(); - $rootScope.FreeStylePaint(); - }); - - $scope.ReloadListViewImageDiv = function (id) { - //console.log(id); - $scope.idSelected = id; - $scope.hiderow = true; - - var promise = DataService.getJson('~/../content/data/json/ci/ci_dat_contentlist.json') - promise.then( - function (result) { - $scope.IllustrationData = result; - - var SelectedCIthumbImage = []; - SelectedCIthumbImage = new jinqJs() - .from($scope.IllustrationData.root.CIData) - .where('_id = ' + id) - .select('_ThumbnailImage', '_Summary', '_id', '_Title'); - - $scope.SelectedCIthumbImage = "~/../content/images/ci/thumbnails/" + SelectedCIthumbImage[0]._ThumbnailImage; - $scope.SelectedCISummary = SelectedCIthumbImage[0]._Summary; - $scope.SelectedCIId = SelectedCIthumbImage[0]._id; - $scope.SelectedCITitle = SelectedCIthumbImage[0]._Title; - - //Set the scroll position of the tablebody to show selected row. - - var curCIListViewScroll = $rootScope.getLocalStorageValue("CIListViewScroll"); - if (typeof (curCIListViewScroll) !== "undefined" && curCIListViewScroll !== null && curCIListViewScroll !== '') { - if (typeof InstallTrigger !== 'undefined') - { - - $('#ListViewDiv').animate({ scrollTop: $rootScope.getLocalStorageValue("CIListViewScroll") }); - } - else - { - - $('#ListViewDiv').scrollTop($rootScope.getLocalStorageValue("CIListViewScroll")); - } - - } - //else { - // $('#ListViewDiv').scrollTop(0); - //} - - }, - function (error) { - // handle errors here - console.log(' $scope.AnimationData = ' + error.statusText); - } - ); - }; - - $scope.hideListViewDiv = function () { - if ($rootScope.getLocalStorageValue("currentCITabView") == 2) { - localStorage.setItem("CISelectedRowId", ""); - if ($('.selected').hasClass("selected")) { $('.selected').removeClass("selected"); } - $scope.hiderow = false; - } - } - - - -}] -); - - - - +AIA.controller("CIController", ["$scope", "$window", "$rootScope", "$compile", "$http", "$log", "$location", "$timeout", "pages", "BodyRegions", "BodySystems", "ViewOrientations", "ImageTypes", "MedicalSpecialties", "DataService", +function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout, pages, BodyRegions, BodySystems, ViewOrientations, ImageTypes, MedicalSpecialties, DataService) { + // $rootScope.currentActiveModuleTitle = pages[3].name; + $scope.showTabButton = true; + $scope.IllustrationData; + $scope.CIAllBodyRegion = []; + $scope.CIAllBodySystem = []; + $scope.CIAllOrientation = []; + $scope.CIAllImageType = []; + $scope.CIAllSpeciality = []; + $scope.searchCIListViewData = []; + $scope.SelectedCIthumbImage = []; + $scope.SelectedCIImage = []; + $scope.SelectedCISummary = []; + $scope.SelectedCIId = []; + $scope.SelectedCITitle = []; + $scope.selectedCIListViewData = []; + $scope.filterstring = false; + $scope.idSelected; + $scope.srollListView; + $scope.query = { + selectedbodyregion: '', + selectedbodysystem: '', + selectedorientation: '', + selectedimagetype: '', + selectedspecialty: '', + }; + + $scope.setActiveTab = function (tabToSet) { + $scope.activeTab = tabToSet; + localStorage.setItem("currentCITabView", $scope.activeTab); + }; + + $scope.$on('$viewContentLoaded', function (event) { + + if ($rootScope.refreshcheck == null) { + $location.path('/'); + } + // code that will be executed ... + // every time this view is loaded + + //get current path + var currentURL = $location.path(); + var selectedModuleName = ''; + //set module title + angular.forEach($rootScope.userModules, function (value, key) { + if (value.slug === currentURL.replace('/', '')) { + selectedModuleName = value.name; + } + $rootScope.currentActiveModuleTitle = selectedModuleName; + }) + + $scope.LoadCIJsonData(); + + $scope.CIAllBodyRegion = BodyRegions; + $scope.CIAllBodySystem = BodySystems; + $scope.CIAllOrientation = ViewOrientations; + $scope.CIAllImageType = ImageTypes; + $scope.CIAllSpeciality = MedicalSpecialties; + $scope.scroll(); + //push the details of open module in array $rootScope.openModules + $rootScope.openModules.push({ "ModuleId": 4 }); + + //set the local storage + + var curtab = $rootScope.getLocalStorageValue("currentCITabView"); + if (curtab == 2) { + $scope.setActiveTab(2); + var curSelectedRowId = $rootScope.getLocalStorageValue("CISelectedRowId"); + if (typeof (curSelectedRowId) !== "undefined" && curSelectedRowId !== null && curSelectedRowId !== '') { + $scope.reRunSearchOnLoad(); + $scope.idSelected = curSelectedRowId; + $scope.ReloadListViewImageDiv($scope.idSelected); + } + else { + $scope.reRunSearchOnLoad() + $scope.idSelected = ''; + } + } + else { + $scope.setActiveTab(1); + $scope.reRunSearchOnLoad(); + + } + + + }); + + $scope.reRunSearchOnLoad = function () { + + var curBodyRegion = $rootScope.getLocalStorageValue("CICurBodyRegion"); + if (typeof (curBodyRegion) !== "undefined" && curBodyRegion !== null && curBodyRegion !== '') { + $scope.query.selectedbodyregion = curBodyRegion; + } + else { + $scope.query.selectedbodyregion = ""; + } + + var curBodySystem = $rootScope.getLocalStorageValue("CICurBodySystem"); + if (typeof (curBodySystem) !== "undefined" && curBodySystem !== null && curBodySystem !== '') { + $scope.query.selectedbodysystem = curBodySystem; + } + else { + $scope.query.selectedbodysystem = ""; + } + + var curOrientation = $rootScope.getLocalStorageValue("CICurOrientation"); + if (typeof (curOrientation) !== "undefined" && curOrientation !== null && curOrientation !== '') { + $scope.query.selectedorientation = curOrientation; + } + else { + $scope.query.selectedorientation = ""; + } + + var curImageType = $rootScope.getLocalStorageValue("CICurImageType"); + if (typeof (curImageType) !== "undefined" && curImageType !== null && curImageType !== '') { + $scope.query.selectedimagetype = curImageType; + } + else { + $scope.query.selectedimagetype = ""; + } + + var curSpeciality = $rootScope.getLocalStorageValue("CICurSpeciality"); + if (typeof (curSpeciality) !== "undefined" && curSpeciality !== null && curSpeciality !== '') { + $scope.query.selectedspecialty = curSpeciality; + } + else { + $scope.query.selectedspecialty = ""; + } + + + if ($scope.query.selectedbodyregion == "" && $scope.query.selectedbodysystem == "" && $scope.query.selectedorientation == "" && $scope.query.selectedimagetype == "" && $scope.query.selectedspecialty == "") { + $scope.loadAllCI(); + } + else { + $scope.ApplySearch($scope.query); + } + + } + + $scope.LoadCIJsonData = function () { + + var promise = DataService.getJson('~/../content/data/json/ci/ci_dat_contentlist.json') + promise.then( + function (result) { + $scope.IllustrationData = result; + $scope.selectedCIListViewData = new jinqJs() + .from($scope.IllustrationData.root.CIData) + .orderBy([{ field: '_Title', sort: 'asc' }]) + .select(); + + }, + function (error) { + // handle errors here + console.log(' $scope.IllustrationData = ' + error.statusText); + } + ); + + + }; + + $scope.loadAllCI = function () { + $('#ciSpinner').css('visibility', 'visible'); + $('#ciSpinner').css('zIndex', '20000'); + var promise = DataService.getJson('~/../content/data/json/ci/ci_dat_contentlist.json') + promise.then( + function (result) { + $scope.IllustrationData = result; + + $scope.selectedCIListViewData = new jinqJs() + .from($scope.IllustrationData.root.CIData) + .orderBy([{ field: '_Title', sort: 'asc' }]) + .select(); + + // console.log($scope.selectedCIListViewData); + + + + $('#grid-view').empty(); + var $e1 = $('').appendTo('#grid-view'); + $compile($e1)($scope); + //angular.forEach($scope.selectedCIListViewData, function (value, key) { + // $scope.imagePath = "~/../content/images/ci/thumbnails/" + value._ThumbnailImage; + + // var $el = $('
' + // + '
' + // + '' + // + '

' + value._Title + '

').appendTo('#grid-view'); + + + // $compile($el)($scope); + + // $(".sidebar").mCustomScrollbar({ + // autoHideScrollbar: true, + // //theme:"rounded" + // }); + + //}); + $timeout(function () + { + $('#' + $rootScope.getLocalStorageValue("currentBodyViewId")).find('.thumbnail').addClass('HightLightThumbnail'); + if ($rootScope.getLocalStorageValue('CIGridViewScroll') !== null && $location.url() == "/clinical-illustrations") { + $('html, body').animate({ scrollTop: $rootScope.getLocalStorageValue('CIGridViewScroll') }); + } + }, 100); + + + $timeout(function () { $('#ciSpinner').css('visibility', 'hidden'); }, 300); + }, + function (error) { + // handle errors here + console.log(' $scope.IllustrationData = ' + error.statusText); + } + ); + + } + + $scope.IsVisible = function () { + $scope.scroll(); + + } + + $scope.showItem = function (id) { + $scope.idSelected = id; + localStorage.setItem("CISelectedRowId", id); + + //Set the vertical scroll value of the table. + var y = $('#ListViewDiv').scrollTop(); + localStorage.setItem("CIListViewScroll", y); + + $scope.hiderow = true; + if ($scope.filterstring == false) { + + var SelectedCIthumbImage = []; + SelectedCIthumbImage = new jinqJs() + .from($scope.selectedCIListViewData) + .where('_id = ' + id) + .select('_ThumbnailImage', '_Summary', '_id', '_Title'); + + $scope.SelectedCIthumbImage = "~/../content/images/ci/thumbnails/" + SelectedCIthumbImage[0]._ThumbnailImage; + $scope.SelectedCISummary = SelectedCIthumbImage[0]._Summary; + $scope.SelectedCIId = SelectedCIthumbImage[0]._id; + $scope.SelectedCITitle = SelectedCIthumbImage[0]._Title; + + } + else { + if ($scope.searchCIListViewData.length > 0) { + + var SelectedCIthumbImage = []; + SelectedCIthumbImage = new jinqJs() + .from($scope.searchCIListViewData) + .where('_id = ' + id) + .select('_ThumbnailImage', '_Summary', '_id', '_Title'); + + $scope.SelectedCIthumbImage = "~/../content/images/ci/thumbnails/" + SelectedCIthumbImage[0]._ThumbnailImage; + $scope.SelectedCISummary = SelectedCIthumbImage[0]._Summary; + $scope.SelectedCIId = SelectedCIthumbImage[0]._id; + $scope.SelectedCITitle = SelectedCIthumbImage[0]._Title; + + } + } + }; + + $scope.Reset = function (query) { + + query.selectedbodyregion = ""; + query.selectedbodysystem = ""; + query.selectedorientation = ""; + query.selectedimagetype = ""; + query.selectedspecialty = ""; + + + //set localstorage values + localStorage.setItem("CICurBodyRegion", ''); + localStorage.setItem("CICurBodySystem", ''); + localStorage.setItem("CICurOrientation", ''); + localStorage.setItem("CICurImageType", ''); + localStorage.setItem("CICurSpeciality", ''); + localStorage.setItem("CISelectedRowId", ""); + localStorage.setItem("CIListViewScroll", ''); + + if ($('.selected').hasClass("selected")) { $('.selected').removeClass("selected"); } + + $('#ListViewDiv').scrollTop(0); + + $scope.hideListViewDiv(); + + $scope.filterstring = false; + while ($scope.searchCIListViewData.length) { + $scope.searchCIListViewData.pop(); + } + + $scope.loadAllCI(); + + } + + $scope.ApplySearch = function (query) { + + + $scope.filterstring = true; + + while ($scope.searchCIListViewData.length) { + $scope.searchCIListViewData.pop(); + } + + + + filtercount = 0; + if (typeof (query.selectedbodyregion) !== "undefined" && (query.selectedbodyregion !== null && query.selectedbodyregion !== "")) { + filtercount = filtercount + 1; + + localStorage.setItem("CICurBodyRegion", query.selectedbodyregion); + + } + else { + localStorage.setItem("CICurBodyRegion", ''); + + } + + if (typeof (query.selectedbodysystem) !== "undefined" && (query.selectedbodysystem !== null && query.selectedbodysystem !== "")) { + filtercount = filtercount + 1; + localStorage.setItem("CICurBodySystem", query.selectedbodysystem); + + } + else { + localStorage.setItem("CICurBodySystem", ''); + + } + + if (typeof (query.selectedorientation) !== "undefined" && (query.selectedorientation !== null && query.selectedorientation !== '')) { + filtercount = filtercount + 1; + localStorage.setItem("CICurOrientation", query.selectedorientation); + + } + else { + localStorage.setItem("CICurOrientation", ''); + } + + if (typeof (query.selectedimagetype) !== "undefined" && (query.selectedimagetype !== null && query.selectedimagetype !== '')) { + filtercount = filtercount + 1; + localStorage.setItem("CICurImageType", query.selectedimagetype); + + } + else { + localStorage.setItem("CICurImageType", ''); + + } + + if (typeof (query.selectedspecialty) !== "undefined" && (query.selectedspecialty !== null && query.selectedspecialty !== '')) { + filtercount = filtercount + 1; + localStorage.setItem("CICurSpeciality", query.selectedspecialty); + + } + else { + localStorage.setItem("CICurSpeciality", ''); + + } + + + var promise = DataService.getJson('~/../content/data/json/ci/ci_dat_contentlist.json') + promise.then( + function (result) { + $scope.IllustrationData = result; + + $scope.selectedCIListViewData = new jinqJs() + .from($scope.IllustrationData.root.CIData) + .orderBy([{ field: '_Title', sort: 'asc' }]) + .select(); + + $('#grid-view').empty(); + + angular.forEach($scope.selectedCIListViewData, function (value, key) { + + var selectimg = true; + var count = 0; + + + if (typeof (query.selectedbodyregion) !== "undefined" && (query.selectedbodyregion !== null && query.selectedbodyregion !== "")) { + var posbodyregion = value._BodyRegion.indexOf((query.selectedbodyregion.trim())); + if (posbodyregion > -1) { + selectimg = true; + count = count + 1; + + } + else { + selectimg = false; + count = count - 1; + } + + } + + if (typeof (query.selectedbodysystem) !== "undefined" && (query.selectedbodysystem !== null && query.selectedbodysystem !== "")) { + var posbodysystem = value._BodySystem.indexOf(query.selectedbodysystem); + if (posbodysystem > -1) { + count = count + 1; + selectimg = true; + } else { + selectimg = false; + count = count - 1; + } + } + + if (typeof (query.selectedorientation) !== "undefined" && (query.selectedorientation !== null && query.selectedorientation !== "")) { + var posorientation = value._ViewOrientation.indexOf(query.selectedorientation); + if (posorientation > -1) { + count = count + 1; + selectimg = true; + + } else { + selectimg = false; + count = count - 1; + } + + } + + if (typeof (query.selectedimagetype) !== "undefined" && (query.selectedimagetype !== null && query.selectedimagetype !== "")) { + var posimagetype = value._ImageType.indexOf(query.selectedimagetype); + if (posimagetype > -1) { + count = count + 1; + selectimg = true; + + } else { + selectimg = false; + count = count - 1; + } + + } + + if (typeof (query.selectedspecialty) !== "undefined" && (query.selectedspecialty !== null && query.selectedspecialty !== "")) { + var posspeciality = value._MedicalSpecialty.indexOf(query.selectedspecialty); + if (posspeciality > -1) { + count = count + 1; + selectimg = true; + } else { + selectimg = false; + count = count - 1; + } + + } + + if (selectimg === true && count >= filtercount) { + + + $scope.imagePath = "~/../content/images/ci/thumbnails/" + value._ThumbnailImage; + + var $el = $('
' + + '
' + + '' + + '

' + value._Title + '

').appendTo('#grid-view'); + + + $compile($el)($scope); + + $(".sidebar").mCustomScrollbar({ + autoHideScrollbar: true, + //theme:"rounded" + }); + + + $scope.searchCIListViewData.push( + { + "_id": value._id, + "_ImageId": value._ImageId, + "_Title": value._Title, + "_contentImage": value._contentImage, + "_ThumbnailImage": value._ThumbnailImage, + "_BodySystem": value._BodySystem, + "_BodyRegion": value._BodyRegion, + "_ViewOrientation": value._ViewOrientation, + "_MedicalSpecialty": value._MedicalSpecialty, + "_ImageType": value._ImageType, + "_Summary": value._Summary + + }); + } + }); + $('table > #ListViewDiv > #searchItem').remove(); + //Show Error Message in case of gridview if no data is found + if ($scope.searchCIListViewData.length == 0) { + var $el = $('
No illustration found for the selected search criteria!
').appendTo('#grid-view'); + $compile($el)($scope); + $('table > #ListViewDiv > #searchItem').remove(); + + $('#ListViewDiv').append('No illustration found for the selected search criteria!'); + } + }, + function (error) { + // handle errors here + console.log(' $scope.IllustrationData = ' + error.statusText); + } + ); + } + + + $scope.scroll = function () { + $("html,body").scrollTop(0); + } + + + $scope.openView = function ($event) { + + $rootScope.MenuModuleName = "CI"; + $rootScope.disableAnnotationTB = false; + $rootScope.CIAnotationIdentifyModeOff = true; + $rootScope.currentBodyViewId = $event.currentTarget.id; + if ($event.currentTarget.textContent !== null && typeof ($event.currentTarget.textContent) !== "undefined") { + var CITitle = []; + CITitle = new jinqJs() + .from($scope.selectedCIListViewData) + .where('_id = ' + $event.currentTarget.id) + .select('_Title'); + + // console.log(CITitle); + // console.log($scope.selectedCIListViewData); + + $rootScope.ViewTitle = CITitle[0]._Title; + } + else { + $rootScope.ViewTitle = $event.currentTarget.textContent; + + } + + + localStorage.setItem("currentViewTitleFromJson", $rootScope.ViewTitle); + localStorage.setItem("currentBodyViewId", $event.currentTarget.id); + + //Set the vertical scroll value of the Grid-View. + var y = $($window).scrollTop(); + localStorage.setItem("CIGridViewScroll", y); + var u = $location.url(); + $location.url('/clinical-illustrations-detail'); + + // console.log($location.url('/clinical-illustrations-detail')); + + } + + $scope.openBodyView = function () { + + + if ($rootScope.refreshcheck == null) { + $location.path('/'); + } + + $rootScope.isLoading = true; + $('#spinner').css('visibility', 'visible'); + $scope.voId = $rootScope.getLocalStorageValue("currentBodyViewId"); + + // alert($scope.voId); + + + //once you get id in scope push detail in jspanel content + + var openViews; + if ($rootScope.openViews.length > 0) { + openViews = new jinqJs() + .from($rootScope.openViews) + .where("BodyViewId==" + $scope.voId) + .select(); + } + var counter = 1; + var tittle = $rootScope.getLocalStorageValue("currentViewTitleFromJson"); + + if (openViews != null && openViews.length > 0) { + angular.forEach(openViews, function (value, key) { + + if (value.body - views == tittle) { + tittle = $rootScope.getLocalStorageValue("currentViewTitleFromJson") + counter++; + $rootScope.currentActiveViewTitle = tittle; + localStorage.setItem("currentViewTitle", tittle); + } + + }); + } + else { + localStorage.setItem("currentViewTitle", tittle); + + } + + //alert($rootScope.getLocalStorageValue("currentViewTitle")); + + var promise = DataService.getJson('~/../content/data/json/ci/ci_dat_contentlist.json') + promise.then( + function (result) { + $scope.CIllustrationData = result; + $scope.CIlistViewData = $scope.CIllustrationData.root.CIData; + + var clickedCIImage = []; + clickedCIImage = new jinqJs() + .from($scope.CIlistViewData) + .where('_id == ' + $scope.voId) + .select('_contentImage'); + + $scope.clickedCIImage = "~/../content/images/ci/images/" + clickedCIImage[0]._contentImage; + + var clickedCISummary = []; + clickedCISummary = new jinqJs() + .from($scope.CIlistViewData) + .where('_id == ' + $scope.voId) + .select('_Summary'); + + $scope.clickedCISummary = clickedCISummary[0]._Summary + + if (clickedCIImage.length > 0 && clickedCISummary.length > 0) { + + $.jsPanel({ + id: 'ciImagePanel', + selector: '.ciView', + theme: 'success', + currentController: 'CIController', + parentSlug: 'clinical-illustrations', + content: '
' + + '
' + + '
' + + '

' + $scope.clickedCISummary + '

' + + '
' + + '
', + //ajax: { + // url: 'app/views/ci/ci-view-detail.html' + //}, + title: $rootScope.getLocalStorageValue("currentViewTitle"), + position: { + top: 70, + left: 20, + }, + + size: { width: $(window).outerWidth() - 20, height: $(window).outerHeight() - 110 }, + + }); + + + $('#canvasDiv img').load(function () { + + $rootScope.isLoading = false; + $('#spinner').css('visibility', 'hidden'); + }); + + $rootScope.currentSlug = 'clinical-illustrations-detail'; + + $rootScope.openViews.push( + { + "module": $rootScope.currentActiveModuleTitle, "bodyView": tittle, "state": 'max', "BodyViewId": $rootScope.currentBodyViewId, + "slug": $rootScope.currentSlug + }); + + + $("#ciImagePanel .img-thumbnail").css("height", $("#ciImagePanel .jsPanel-content").height()); + var jspContentHeight = $('.jsPanel-content').height(); + //var imgHeight = $('.img-thumbnail').find('img').height(); + //if (imgHeight <= 0) + // imgHeight = 320; + //var textH = $('.img-subtitle').height(); + //textH = textH + 40; + //var blackBorderHeight = jspContentHeight - (imgHeight + textH); + //if ($('.jsPanel-content').length > 0) { + // $('.img-subtitle').css('margin-bottom', blackBorderHeight); + //} + } + + + }, + function (error) { + // handle errors here + console.log(' $scope.CIllustrationData = ' + error.statusText); + } + + ); + + // console.log($rootScope.openViews); + $('#CIView').css("height", $(window).outerHeight()); + + $('#CIView').css("width", $(window).outerWidth()); + + } + + $scope.$on('annotationToolEvent', function (event, data) { + + $('#editstylebackgroundcolor .minicolors >.minicolors-swatch > .minicolors-swatch-color').css("background-color", "rgb(255,255,255)") + $('#editstylebackgroundcolor .minicolors >.minicolors-panel > .minicolors-grid >.minicolors-picker').css({ "top": "145px", "left": "4px" }); + $('#outlineColor .minicolors >.minicolors-swatch > .minicolors-swatch-color').css("background-color", "rgb(0,0,0)") + $('#outlineColor .minicolors >.minicolors-panel > .minicolors-grid >.minicolors-picker').css({ "top": "145px", "left": "4px" }); + + $("#canvas").css("display", "block"); + $("#canvasPaint").css("display", "block"); + + $rootScope.onDrawingCanvasClick(); + $rootScope.FreeStylePaint(); + }); + + $scope.ReloadListViewImageDiv = function (id) { + //console.log(id); + $scope.idSelected = id; + $scope.hiderow = true; + + var promise = DataService.getJson('~/../content/data/json/ci/ci_dat_contentlist.json') + promise.then( + function (result) { + $scope.IllustrationData = result; + + var SelectedCIthumbImage = []; + SelectedCIthumbImage = new jinqJs() + .from($scope.IllustrationData.root.CIData) + .where('_id = ' + id) + .select('_ThumbnailImage', '_Summary', '_id', '_Title'); + + $scope.SelectedCIthumbImage = "~/../content/images/ci/thumbnails/" + SelectedCIthumbImage[0]._ThumbnailImage; + $scope.SelectedCISummary = SelectedCIthumbImage[0]._Summary; + $scope.SelectedCIId = SelectedCIthumbImage[0]._id; + $scope.SelectedCITitle = SelectedCIthumbImage[0]._Title; + + //Set the scroll position of the tablebody to show selected row. + + var curCIListViewScroll = $rootScope.getLocalStorageValue("CIListViewScroll"); + if (typeof (curCIListViewScroll) !== "undefined" && curCIListViewScroll !== null && curCIListViewScroll !== '') { + if (typeof InstallTrigger !== 'undefined') + { + + $('#ListViewDiv').animate({ scrollTop: $rootScope.getLocalStorageValue("CIListViewScroll") }); + } + else + { + + $('#ListViewDiv').scrollTop($rootScope.getLocalStorageValue("CIListViewScroll")); + } + + } + //else { + // $('#ListViewDiv').scrollTop(0); + //} + + }, + function (error) { + // handle errors here + console.log(' $scope.AnimationData = ' + error.statusText); + } + ); + }; + + $scope.hideListViewDiv = function () { + if ($rootScope.getLocalStorageValue("currentCITabView") == 2) { + localStorage.setItem("CISelectedRowId", ""); + if ($('.selected').hasClass("selected")) { $('.selected').removeClass("selected"); } + $scope.hiderow = false; + } + } + + + +}] +); + + + + diff --git a/400-SOURCECODE/AIAHTML5.Web/app/views/Link/Link-view.html b/400-SOURCECODE/AIAHTML5.Web/app/views/Link/Link-view.html index 756a49b..0329f61 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/views/Link/Link-view.html +++ b/400-SOURCECODE/AIAHTML5.Web/app/views/Link/Link-view.html @@ -1,34 +1,34 @@ -
-
-
-
- - -
-
-
- - - - +
+
+
+
+ + +
+
+
+ + + + diff --git a/400-SOURCECODE/Admin/dist/assets/styles/bootstrap-spinner.css b/400-SOURCECODE/Admin/dist/assets/styles/bootstrap-spinner.css new file mode 100644 index 0000000..076ea5f --- /dev/null +++ b/400-SOURCECODE/Admin/dist/assets/styles/bootstrap-spinner.css @@ -0,0 +1,151 @@ +/* Absolute Center Spinner */ + +.loading-mask { + display: none; + position: fixed; + z-index: 100; + top: 0; + left: 0; + width: 100%; + height: 100%; + background: black; + opacity: 0.5; + filter: alpha(opacity=50); +} + + +.loading-indicator { + display: none; + position: fixed; + z-index: 1001; + top: 50%; + left: 50%; +} +.loading-app { + position: fixed; + z-index: 999999999; + height: 2em; + width: 2em; + overflow: show; + margin: auto; + top: 0; + left: 0; + bottom: 0; + right: 0; +} + + /* Transparent Overlay */ + .loading-app:before { + content: ''; + display: block; + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: #000000; + filter: alpha(opacity=30); + -moz-opacity: 0.3; + -khtml-opacity: 0.3; + opacity: 0.3; + } + + /* :not(:required) hides these rules from IE9 and below */ + .loading-app:not(:required) { + font: 0/0 a; + color: transparent; + text-shadow: none; + background-color: transparent; + border: 0; + } + + .loading-app:not(:required):after { + content: ''; + display: block; + font-size: 10px; + width: 1em; + height: 1em; + margin-top: -0.5em; + -webkit-animation: spinner 1500ms infinite linear; + -moz-animation: spinner 1500ms infinite linear; + -ms-animation: spinner 1500ms infinite linear; + -o-animation: spinner 1500ms infinite linear; + animation: spinner 1500ms infinite linear; + border-radius: 0.5em; + -webkit-box-shadow: rgba(0, 0, 0, 0.75) 1.5em 0 0 0, rgba(0, 0, 0, 0.75) 1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) 0 1.5em 0 0, rgba(0, 0, 0, 0.75) -1.1em 1.1em 0 0, rgba(0, 0, 0, 0.5) -1.5em 0 0 0, rgba(0, 0, 0, 0.5) -1.1em -1.1em 0 0, rgba(0, 0, 0, 0.75) 0 -1.5em 0 0, rgba(0, 0, 0, 0.75) 1.1em -1.1em 0 0; + box-shadow: rgba(0, 0, 0, 0.75) 1.5em 0 0 0, rgba(0, 0, 0, 0.75) 1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) 0 1.5em 0 0, rgba(0, 0, 0, 0.75) -1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) -1.5em 0 0 0, rgba(0, 0, 0, 0.75) -1.1em -1.1em 0 0, rgba(0, 0, 0, 0.75) 0 -1.5em 0 0, rgba(0, 0, 0, 0.75) 1.1em -1.1em 0 0; + } + +/* Animation */ + +@-webkit-keyframes spinner { + 0% { + -webkit-transform: rotate(0deg); + -moz-transform: rotate(0deg); + -ms-transform: rotate(0deg); + -o-transform: rotate(0deg); + transform: rotate(0deg); + } + + 100% { + -webkit-transform: rotate(360deg); + -moz-transform: rotate(360deg); + -ms-transform: rotate(360deg); + -o-transform: rotate(360deg); + transform: rotate(360deg); + } +} + +@-moz-keyframes spinner { + 0% { + -webkit-transform: rotate(0deg); + -moz-transform: rotate(0deg); + -ms-transform: rotate(0deg); + -o-transform: rotate(0deg); + transform: rotate(0deg); + } + + 100% { + -webkit-transform: rotate(360deg); + -moz-transform: rotate(360deg); + -ms-transform: rotate(360deg); + -o-transform: rotate(360deg); + transform: rotate(360deg); + } +} + +@-o-keyframes spinner { + 0% { + -webkit-transform: rotate(0deg); + -moz-transform: rotate(0deg); + -ms-transform: rotate(0deg); + -o-transform: rotate(0deg); + transform: rotate(0deg); + } + + 100% { + -webkit-transform: rotate(360deg); + -moz-transform: rotate(360deg); + -ms-transform: rotate(360deg); + -o-transform: rotate(360deg); + transform: rotate(360deg); + } +} + +@keyframes spinner { + 0% { + -webkit-transform: rotate(0deg); + -moz-transform: rotate(0deg); + -ms-transform: rotate(0deg); + -o-transform: rotate(0deg); + transform: rotate(0deg); + } + + 100% { + -webkit-transform: rotate(360deg); + -moz-transform: rotate(360deg); + -ms-transform: rotate(360deg); + -o-transform: rotate(360deg); + transform: rotate(360deg); + } +} diff --git a/400-SOURCECODE/Admin/dist/inline.30da24ccb8e2260fa5b7.bundle.js b/400-SOURCECODE/Admin/dist/inline.30da24ccb8e2260fa5b7.bundle.js new file mode 100644 index 0000000..dc97fa1 --- /dev/null +++ b/400-SOURCECODE/Admin/dist/inline.30da24ccb8e2260fa5b7.bundle.js @@ -0,0 +1 @@ +!function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var r=window.webpackJsonp;window.webpackJsonp=function(t,c,u){for(var a,i,f,l=0,s=[];l\r\n \x3c!-- main-heading --\x3e\r\n
\r\n

Change User ID

\r\n
\r\n \x3c!-- main-heading --\x3e\r\n \x3c!-- container --\x3e\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
**To change your user ID fill all the text fields carefully.
\r\n
\r\n \x3c!-- form --\x3e\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 (Minimum 8 characters)\r\n
Minimum 8 characters is required
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
Confirm userid is required
\r\n
\r\n
\r\n\r\n
\r\n
\r\n \r\n \r\n \x3c!--cancel-button--\x3e\r\n \x3c!-- /.modal --\x3e\r\n \x3c!--cancel-button--\x3e\r\n \r\n
\r\n\r\n
\r\n
\r\n \x3c!-- form --\x3e\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \x3c!-- container --\x3e\r\n
\r\n
\r\n\r\n\r\n
\r\n'},"2Azi":function(t,e){t.exports='
\r\n \x3c!-- main-heading --\x3e\r\n
\r\n

{{Mode}} Discount Code

\r\n
\r\n \x3c!-- main-heading --\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \x3c!-- container --\x3e\r\n
\r\n
\r\n \r\n \x3c!-- form --\x3e\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
\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
\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
Discount CodePercentageDiscount Start DateDiscount End DateStatus
{{item.DiscountCode}}{{item.Percentage | number : \'1.2\'}}{{item.StartDate | date: \'MM/dd/yyyy\'}}{{item.EndDate | date: \'MM/dd/yyyy\'}}\r\n Active\r\n Inactive\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n \x3c!-- form --\x3e\r\n\r\n
\r\n
\r\n
\r\n
\r\n \x3c!-- form --\x3e\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
Discount start date is required
\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
Discount end date is required
\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n \r\n
Discount percentage is required
\r\n
Discount percentage must be numeric
\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 \x3c!--cancel-button--\x3e\r\n \r\n \x3c!-- /.modal --\x3e\r\n \x3c!--cancel-button--\x3e\r\n\r\n
\r\n \x3c!-- form --\x3e\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \x3c!-- container --\x3e\r\n
'},"3cDZ":function(t,e){t.exports=' \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 {{message}}\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

{{message}}\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 \x3c!----\x3e\r\n \r\n \r\n

\r\n {{message}}\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 {{message}}\r\n

\r\n
\r\n\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n'},"7QTD":function(t,e){t.exports='
\r\n \x3c!-- main-heading --\x3e\r\n
\r\n

Change User Password

\r\n
\r\n \x3c!-- main-heading --\x3e\r\n \x3c!-- container --\x3e\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
**To change your password fill all the text fields carefully.
\r\n
\r\n \x3c!-- form --\x3e\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
Old password is required
\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n (Minimum 8 characters)\r\n
New password of minimum 8 characters is required
\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
Confirm password is required
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \x3c!--cancel-button--\x3e\r\n \x3c!-- /.modal --\x3e\r\n \x3c!--cancel-button--\x3e\r\n
\r\n \x3c!-- form --\x3e\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n\r\n\r\n
\r\n'},LWbE:function(t,e){t.exports='
\r\n \x3c!-- main-heading --\x3e\r\n
\r\n

Add User

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \x3c!-- form --\x3e\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
User Name is required
\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n (Minimum 8 characters)\r\n
Password of minimum 8 characters is required
\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
Confirm Password is required
\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
Email Id is required
\r\n\r\n
\r\n Please enter the correct email.\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
First Name is required
\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
Last Name is required
\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 \x3c!--modal--\x3e\r\n \r\n\r\n \r\n \r\n
\r\n\r\n
\r\n
\r\n \x3c!-- form --\x3e\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n'},cDNt:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r("/oeL"),s=r("Qa4U"),i=r("bm2B"),o=r("fc+i"),a=r("XKz0"),l=r("qbdv"),d=r("CPp0"),c=r("GWzR"),u=(r("GQSG"),r("HT7u"),r("PSNg"),r("ivSB"),r("AP4T")),p=function(){function t(){this.userUrl="",this.resourceBaseUrl="",this.hostURL="",this.LiveURL="",this.UserId=0,this.UserType=1,this.AccountType=0,this.hostURL="http://192.168.84.242:97/",this.LiveURL="http://qa.beta.interactiveanatomy.com/API/Adminapi/",this.resourceBaseUrl=this.hostURL,localStorage.setItem("loggedInUserDetails",JSON.stringify({Id:1,FirstName:"Maribel",LastName:"sfsfsfsfsfsfs",EmailId:"ravi.vishwakarma@ebix.com",LoginId:"superadmin",Password:"ebix@2016",SecurityQuestionId:1,SecurityAnswer:"boxer",CreatorId:1,CreationDate:"2009-03-02T00:00:00",DeactivationDate:null,ModifierId:1,ModifiedDate:"2017-01-24T02:03:19",UserType:"Super Admin",UserTypeId:1,IsActive:!0,IsCorrectPassword:!1,IncorrectLoginAttemptCount:0,IsBlocked:!1,LicenseId:0,EditionId:0,LoginFailureCauseId:0,Modules:[{slug:"da-view-list",name:"Dissectible Anatomy",id:1},{slug:"tile-view-list",name:"Atlas Anatomy",id:2},{slug:"3d-anatomy-list",name:"3D Anatomy",id:3},{slug:"clinical-illustrations",name:"Clinical Illustrations",id:4},{slug:"clinical-animations",name:"Clinical Animations",id:5},{slug:"Link/encyclopedia",name:"Encyclopedia",id:6},{slug:"curriculum-builder",name:"Curriculum Builder",id:7},{slug:"anatomy-test",name:"Anatomy Test",id:8},{slug:"Link/IP-10",name:"IP 10",id:9},{slug:"lab-exercises",name:"Lab Exercises",id:10},{slug:"Link/indepth-reports",name:"In-Depth Reports",id:11},{slug:"Link/complementary-and-alternate-medicine",name:"CAM",id:12},{slug:"ADAM-images",name:"A.D.A.M. Images",id:13},{slug:"Link/bodyguide",name:"Body Guide",id:14},{slug:"Link/health-navigator",name:"Symptom Navigator",id:15},{slug:"Link/wellness-tools",name:"The Wellness Tools",id:16},{slug:"Link/aod",name:"A.D.A.M. OnDemand",id:1017}],LicenseInfo:null,LicenseSubscriptions:null,IsSubscriptionExpired:!1,SubscriptionExpirationDate:null,TermsAndConditionsTitle:null,TermsAndConditionsText:null})),this.loggedInUser=JSON.parse(localStorage.getItem("loggedInUserDetails")),this.UserId=this.loggedInUser.Id,this.UserType=this.loggedInUser.UserTypeId}return t}(),m=this&&this.__decorate||function(t,e,r,n){var s,i=arguments.length,o=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},f=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},h=function(){function t(t,e){this.http=t,this.commonService=e}return t.prototype.GetUserById=function(){var t=this;return this.http.get(this.commonService.resourceBaseUrl+"User/GetUserProfile/"+this.commonService.UserId).map(this.extractData).catch(function(e){return t.handleError(e)})},t.prototype.UpdateUserProfileById=function(t){var e=this;return this.http.post(this.commonService.resourceBaseUrl+"User/UpdateProfile",t).map(this.extractData).catch(function(t){return e.handleError(t)})},t.prototype.ChangeUserPassword=function(t){var e=this,r={id:t.userId,newPassword:t.newPassword};console.log(t);var n=new d.a({"Content-Type":"application/json"});return this.http.post(this.commonService.resourceBaseUrl+"User/ChangeUserPassword",JSON.stringify(r),{headers:n}).map(this.extractData).catch(function(t){return e.handleError(t)})},t.prototype.UpdateUserId=function(t){var e=this;return this.http.post(this.commonService.resourceBaseUrl+"User/UpdateUserId",t).map(this.extractData).catch(function(t){return e.handleError(t)})},t.prototype.GetUserType=function(){var t=this;return this.http.get(this.commonService.resourceBaseUrl+"User/GetUserType/"+this.commonService.UserType).map(this.extractData).catch(function(e){return t.handleError(e)})},t.prototype.GetAccountType=function(){var t=this;return this.http.get(this.commonService.resourceBaseUrl+"User/GetAccountType/"+this.commonService.AccountType).map(this.extractData).catch(function(e){return t.handleError(e)})},t.prototype.GetUserList=function(t){var e=this;return this.http.get(this.commonService.resourceBaseUrl+"User/Users?firstname="+t.FirstName+"&lastname="+t.LastName+"&emailid="+t.EmailId+"&accountnumber="+t.AccountNumber+"&usertypeid="+t.UserTypeId+"&accounttypeid="+t.AccountTypeId).map(this.extractData).catch(function(t){return e.handleError(t)})},t.prototype.UpdateUserEntity=function(t){var e=this,r={id:t.id,FirstName:t.FirstName,LastName:t.LastName,EmailId:t.EmailId,UserName:t.UserName,Password:t.Password,Modifiedby:this.commonService.UserId,IsActive:t.isActive};console.log(t);var n=new d.a({"Content-Type":"application/json"});return this.http.post(this.commonService.resourceBaseUrl+"User/UpdateUser",JSON.stringify(r),{headers:n}).map(this.extractData).catch(function(t){return e.handleError(t)})},t.prototype.GetUserTypeByLicenseType=function(t){var e=this;return this.http.get(this.commonService.resourceBaseUrl+"User/GetUserTypebyLicenseId?UserTypeId="+this.commonService.UserType+"&LicenseId="+t.AccountNumberId).map(this.extractData).catch(function(t){return e.handleError(t)})},t.prototype.GetAccountNumber=function(){var t=this;return this.http.get(this.commonService.resourceBaseUrl+"User/GetAccountNumber").map(this.extractData).catch(function(e){return t.handleError(e)})},t.prototype.GetProductEdition=function(t){var e=this;return this.http.get(this.commonService.resourceBaseUrl+"User/GetProductEdition?LicenseId="+t.AccountNumberId).map(this.extractData).catch(function(t){return e.handleError(t)})},t.prototype.InsertUser=function(t){var e=this,r={id:this.commonService.UserId,FirstName:t.FirstName,LastName:t.LastName,EmailId:t.EmailId,UserName:t.UserName,Password:t.Password,AccountNumberId:t.AccountNumberId,UserTypeId:t.UserTypeId,ProductEditionId:t.ProductEditionId};console.log(t);var n=new d.a({"Content-Type":"application/json"});return this.http.post(this.commonService.resourceBaseUrl+"User/NewUser",JSON.stringify(r),{headers:n}).map(this.extractData).catch(function(t){return e.handleError(t)})},t.prototype.GetBlockUserList=function(t){var e=this;return this.http.get(this.commonService.resourceBaseUrl+"User/BlockedUser?UserTypeId="+t.UserTypeId+"&LicenseId="+t.LicenseId).map(this.extractData).catch(function(t){return e.handleError(t)})},t.prototype.UpdateUnBlockedUser=function(t){var e=this,r=t;console.log(r);var n=new d.a({"Content-Type":"application/json"});return this.http.post(this.commonService.resourceBaseUrl+"User/UnblockedUser",r,{headers:n}).map(this.extractData).catch(function(t){return e.handleError(t)})},t.prototype.extractData=function(t){return t.json()},t.prototype.handleError=function(t){var e=t.message?t.message:t.status?""+t._body:"Server error";return console.error(e),u.Observable.throw(e)},t}();h=m([Object(n.Injectable)(),f("design:paramtypes",["function"==typeof(v=void 0!==d.b&&d.b)&&v||Object,"function"==typeof(b=void 0!==p&&p)&&b||Object])],h);var v,b,g=r("BkNc"),y=function(){function t(){}return t}(),x=function(){function t(){}return t}(),U=function(){function t(){}return t}(),w=this&&this.__decorate||function(t,e,r,n){var s,i=arguments.length,o=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},I=function(){function t(){}return t}();I=w([Object(n.Injectable)()],I);var C=(r("U6yM"),r("Wi6i"),this&&this.__decorate||function(t,e,r,n){var s,i=arguments.length,o=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o}),P=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},D=function(){function t(){}return t.prototype.ShowLoading=function(t){var e=document.getElementById(t),r=document.getElementById("loading-mask");null!=r&&void 0!=r&&($(r).show(),r.className="loading-mask"),void 0!=e&&null!=e&&($(e).show(),e.className="loading-app")},t.prototype.HideLoading=function(t){var e=document.getElementById(t),r=document.getElementById("loading-mask");null!=r&&void 0!=r&&($(r).fadeOut(1e3),setTimeout(function(){return r.className=""},1e3)),void 0!=e&&null!=e&&($(e).fadeOut(300),setTimeout(function(){return e.className=""},300))},t}();D=C([Object(n.Injectable)(),P("design:paramtypes",[])],D);var F=this&&this.__decorate||function(t,e,r,n){var s,i=arguments.length,o=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},S=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},N=function(){function t(t,e,r,n,s,i){this._loadingService=t,this.userservice=e,this.router=r,this.fb=n,this.http=s,this._confirmService=i,this.UserId=1,this.indLoading=!1,this.baseUrl="User",this.emailPattern="^[a-z0-9._%+-]+@[a-z0-9.-]+.[a-z]{2,4}$",this.validationMessages={firstName:{required:"First name is required."},lastName:{required:"Last name is required."},email:{required:"Email is required.",pattern:"Email pattern is not valid."}}}return t.prototype.ngOnInit=function(){this.user=new y,this.alerts="",this.userFrm=this.fb.group({id:[""],firstName:["",i.f.required],lastName:["",i.f.required],emailId:["",i.f.required]}),this._loadingService.ShowLoading("global-loading"),this.GetUserById()},t.prototype.redirect=function(){this.router.navigate(["/"])},t.prototype.GetUserById=function(){var t=this;this.userservice.GetUserById().subscribe(function(e){console.log(e),t.bindUsers(e)},function(e){return t.error=e}),this._loadingService.HideLoading("global-loading")},t.prototype.UpdateUserProfile=function(){var t=this;this.user=this.userFrm.value;var e=this.user;if(this.userFrm.valid)return this.userservice.UpdateUserProfileById(e).subscribe(function(e){return t.AfterInsertData(e)},function(e){return t.error=e})},t.prototype.AfterInsertData=function(t){if("False"==t.Status)return!1;this.status=!0,this._confirmService.activate("User Profile Updated Successfully.","alertMsg")},t.prototype.bindUsers=function(t){this.user=t[0],console.log(this.user),this.userFrm.controls.id.setValue(this.user.Id),this.userFrm.controls.firstName.setValue(this.user.FirstName),this.userFrm.controls.lastName.setValue(this.user.LastName),this.userFrm.controls.emailId.setValue(this.user.EmailId)},t}();N=F([Object(n.Component)({template:r("xbvx")}),S("design:paramtypes",["function"==typeof(E=void 0!==D&&D)&&E||Object,"function"==typeof(A=void 0!==h&&h)&&A||Object,"function"==typeof(R=void 0!==g.a&&g.a)&&R||Object,"function"==typeof(O=void 0!==i.a&&i.a)&&O||Object,"function"==typeof(T=void 0!==d.b&&d.b)&&T||Object,"function"==typeof(L=void 0!==I&&I)&&L||Object])],N);var E,A,R,O,T,L,j=this&&this.__decorate||function(t,e,r,n){var s,i=arguments.length,o=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},k=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},M=function(){function t(t,e,r,n,s){this._loadingService=t,this.changeUserPasswordService=e,this.router=r,this.fb=n,this._confirmService=s}return t.prototype.ngOnInit=function(){this.user=new y,this.alerts="",this.changeUserPasswordFrm=this.fb.group({userId:[""],loginId:["",i.f.required],oldPassword:["",i.f.required],newPassword:["",[i.f.required,i.f.minLength(8)]],confirmPassword:["",i.f.required]}),this._loadingService.ShowLoading("global-loading"),this.GetUserById(),this._loadingService.HideLoading("global-loading")},t.prototype.GetUserById=function(){var t=this;this.changeUserPasswordService.GetUserById().subscribe(function(e){t.BindFormFields(e)},function(e){return t.error=e})},t.prototype.redirect=function(){this.router.navigate(["/"])},t.prototype.onFormSubmit=function(){var t=this;if(this.alerts="",""==this.changeUserPasswordFrm.value.oldPassword&&(this.alerts="Old password is required."),this.user.Password!=this.changeUserPasswordFrm.value.oldPassword&&""!=this.changeUserPasswordFrm.value.oldPassword&&(this.alerts+="
Old password is invalid."),""==this.changeUserPasswordFrm.value.newPassword&&(this.alerts+="
New password is required."),this.user.Password==this.changeUserPasswordFrm.value.newPassword&&(this.alerts+="
New password and old password must be different."),""==this.changeUserPasswordFrm.value.newPassword&&(this.alerts+="
Confirm password is required."),this.changeUserPasswordFrm.value.newPassword!=this.changeUserPasswordFrm.value.confirmPassword&&(this.alerts+="
New password and confirm password must be same."),""==this.alerts){var e=this.changeUserPasswordFrm.value;return this.changeUserPasswordService.ChangeUserPassword(e).subscribe(function(e){return t.AfterInsertData(e)},function(e){return t.error=e})}},t.prototype.AfterInsertData=function(t){"false"==t.Status?this.alerts="Password change unsuccessfull":this._confirmService.activate("Password changed successfully.","alertMsg")},t.prototype.BindFormFields=function(t){this.user=t[0],this.changeUserPasswordFrm.controls.userId.setValue(this.user.Id),this.changeUserPasswordFrm.controls.loginId.setValue(this.user.LoginId)},t.prototype.ResetFormFields=function(){this.changeUserPasswordFrm.reset(),this.changeUserPasswordFrm.controls.loginId.setValue(this.user.LoginId),this.changeUserPasswordFrm.controls.oldPassword.setValue(""),this.changeUserPasswordFrm.controls.newPassword.setValue(""),this.changeUserPasswordFrm.controls.confirmPassword.setValue(""),this.alerts=""},t}();M=j([Object(n.Component)({template:r("7QTD")}),k("design:paramtypes",["function"==typeof(_=void 0!==D&&D)&&_||Object,"function"==typeof(B=void 0!==h&&h)&&B||Object,"function"==typeof(q=void 0!==g.a&&g.a)&&q||Object,"function"==typeof(V=void 0!==i.a&&i.a)&&V||Object,"function"==typeof(G=void 0!==I&&I)&&G||Object])],M);var _,B,q,V,G,z=this&&this.__decorate||function(t,e,r,n){var s,i=arguments.length,o=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},H=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Z=function(){function t(t,e,r,n,s,i){this._loadingService=t,this.userservice=e,this.router=r,this.fb=n,this.http=s,this._confirmService=i,this.UserId=1,this.baseUrl="User"}return t.prototype.ngOnInit=function(){this.user=new y,this.alerts="",this.ChangeUserIdFrm=this.fb.group({id:[""],loginid:["",i.f.required],newloginid:["",[i.f.required,i.f.minLength(8)]],confirmloginid:["",i.f.required]}),this._loadingService.ShowLoading("global-loading"),this.GetUserById(),this._loadingService.HideLoading("global-loading")},t.prototype.redirect=function(){this.router.navigate(["/"])},t.prototype.GetUserById=function(){var t=this;this.userservice.GetUserById().subscribe(function(e){console.log(e),t.bindUsers(e)},function(e){return t.error=e})},t.prototype.UpdateUserId=function(){var t=this;if(this.alerts="",this.user.LoginId==this.ChangeUserIdFrm.value.newloginid&&(this.alerts+="
New userid and old userid must be different"),this.ChangeUserIdFrm.value.newloginid!=this.ChangeUserIdFrm.value.confirmloginid&&(this.alerts+="
New userid and confirm userid must be same"),""==this.alerts){this.user=this.ChangeUserIdFrm.value,console.log(this.user);var e=this.user;if(this.ChangeUserIdFrm.valid)return this.userservice.UpdateUserId(e).subscribe(function(e){return t.AfterInsertData(e)},function(e){return t.error=e})}},t.prototype.AfterInsertData=function(t){if("success"!=t)return this.alerts+=""+t+"",!1;this._confirmService.activate("Userid Updated Successfully.","alertMsg")},t.prototype.bindUsers=function(t){this.user=t[0],console.log(this.user),this.ChangeUserIdFrm.controls.id.setValue(this.user.Id),this.ChangeUserIdFrm.controls.loginid.setValue(this.user.LoginId),this.ChangeUserIdFrm.controls.newloginid.setValue(this.user.NewLoginId),this.ChangeUserIdFrm.controls.confirmloginid.setValue("")},t.prototype.ResetFormFields=function(){this.ChangeUserIdFrm.reset(),this.ChangeUserIdFrm.controls.id.setValue(this.user.Id),this.ChangeUserIdFrm.controls.loginid.setValue(this.user.LoginId),this.ChangeUserIdFrm.controls.newloginid.setValue(""),this.ChangeUserIdFrm.controls.confirmloginid.setValue(""),this.alerts=""},t}();Z=z([Object(n.Component)({template:r("1Nhn")}),H("design:paramtypes",["function"==typeof(J=void 0!==D&&D)&&J||Object,"function"==typeof(W=void 0!==h&&h)&&W||Object,"function"==typeof(Y=void 0!==g.a&&g.a)&&Y||Object,"function"==typeof(Q=void 0!==i.a&&i.a)&&Q||Object,"function"==typeof(K=void 0!==d.b&&d.b)&&K||Object,"function"==typeof(X=void 0!==I&&I)&&X||Object])],Z);var J,W,Y,Q,K,X,tt=this&&this.__decorate||function(t,e,r,n){var s,i=arguments.length,o=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},et=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},rt=function(){function t(t,e,r,n,s,i){this._loadingService=t,this.userservice=e,this.router=r,this.fb=n,this.http=s,this._confirmService=i,this.Mode="Manage",this.emailPattern="^[a-z0-9._%+-]+@[a-z0-9.-]+.[a-z]{2,4}$",this.topPos="2000px",this.datePipe=new l.DatePipe("en-US"),this.selectedRow=0,this.selectedId=0}return t.prototype.ngOnInit=function(){this.alerts="",this.Users=this.fb.group({FirstName:[""],LastName:[""],EmailId:[""],AccountNumber:[""],UserTypeId:[""],AccountTypeId:[""]}),this.adduserFrm=this.fb.group({id:[""],UserName:["",i.f.required],Password:["",[i.f.required,i.f.minLength(8)]],ConfirmPassword:["",i.f.required],FirstName:["",i.f.required],LastName:["",i.f.required],EmailId:["",i.f.required],AccountNumber:[""],UserType:[""],AccountType:[""],Createddate:[""],LastModifiedDate:[""],Createdby:[""],Modifiedby:[""],DeactivationDate:[""],isActive:[!1],UserStatusActive:[""],UserStatusInActive:[""]}),this._loadingService.ShowLoading("global-loading"),this.GetUserType(),this.GetAccountType(),this._loadingService.HideLoading("global-loading"),$("#fixed_hdr2").fxdHdrCol({fixedCols:0,width:"100%",height:300,colModal:[{width:180,align:"center"},{width:230,align:"center"},{width:150,align:"Center"},{width:150,align:"Center"},{width:350,align:"Center"},{width:500,align:"Center"},{width:130,align:"Center"},{width:120,align:"center"},{width:280,align:"Center"},{width:180,align:"center"},{width:200,align:"center"},{width:170,align:"center"},{width:80,align:"center"},{width:150,align:"center"},{width:150,align:"center"},{width:180,align:"Center"},{width:400,align:"Center"},{width:150,align:"center"},{width:110,align:"center"}],sort:!0}),document.getElementById("fixed_table_rc").remove();var t=document.createElement("script");t.setAttribute("id","fixed_table_rc"),t.setAttribute("src","../assets/scripts/fixed_table_rc.js"),t.setAttribute("type","text/javascript"),document.body.appendChild(t),this._loadingService.ShowLoading("global-loading"),this._loadingService.HideLoading("global-loading")},t.prototype.handleChange=function(t){var e=t.target;"true"==e.value?this.isActive=!0:"false"==e.value&&(this.isActive=!1)},t.prototype.SetClickedRow=function(t,e){this.selectedRow=t,this.selectedId=e.Id,this.UserEntity=e},t.prototype.redirect=function(){this.router.navigate(["/"])},t.prototype.GetUserType=function(){var t=this;this.userservice.GetUserType().subscribe(function(e){t.UserTypeList=e},function(e){return t.error=e})},t.prototype.GetAccountType=function(){var t=this;this.userservice.GetAccountType().subscribe(function(e){t.AccountTypeList=e},function(e){return t.error=e})},t.prototype.GetUserList=function(){},t.prototype.SearchUserList=function(){var t=this;this._loadingService.ShowLoading("global-loading");this.Users.value;this.userservice.GetUserList({FirstName:this.Users.controls.FirstName.value,LastName:this.Users.controls.LastName.value,EmailId:this.Users.controls.EmailId.value,AccountNumber:this.Users.controls.AccountNumber.value,UserTypeId:null!=this.Users.controls.UserTypeId.value&&""!=this.Users.controls.UserTypeId.value?this.Users.controls.UserTypeId.value:0,AccountTypeId:null!=this.Users.controls.AccountTypeId.value&&""!=this.Users.controls.AccountTypeId.value?this.Users.controls.AccountTypeId.value:0}).subscribe(function(e){t.UserList=e},function(e){return t.error=e}),this._loadingService.HideLoading("global-loading")},t.prototype.EditUser=function(){this.Mode="Edit",this.topPos="100px",this.divClass="col-sm-10 col-sm-offset-1 col-md-8 col-md-offset-2 col-lg-6 col-lg-offset-3",this.alerts="",this.adduserFrm.controls.id.setValue(this.UserEntity.Id),this.adduserFrm.controls.FirstName.setValue(this.UserEntity.FirstName),this.adduserFrm.controls.LastName.setValue(this.UserEntity.LastName),this.adduserFrm.controls.EmailId.setValue(this.UserEntity.EmailId),this.adduserFrm.controls.UserName.setValue(this.UserEntity.LoginId),this.adduserFrm.controls.Password.setValue(this.UserEntity.Password),this.adduserFrm.controls.ConfirmPassword.setValue(this.UserEntity.Password),this.adduserFrm.controls.AccountNumber.setValue(this.UserEntity.AccountNumber),this.adduserFrm.controls.UserType.setValue(this.UserEntity.UserTypeTitle),this.adduserFrm.controls.AccountType.setValue(this.UserEntity.AccountTypeTitle),this.adduserFrm.controls.Createddate.setValue(this.datePipe.transform(this.UserEntity.CreationDate,"MM/dd/yyyy")),this.adduserFrm.controls.LastModifiedDate.setValue(this.datePipe.transform(this.UserEntity.ModifiedDate,"MM/dd/yyyy")),this.adduserFrm.controls.Createdby.setValue(this.UserEntity.Createdby),this.adduserFrm.controls.Modifiedby.setValue(this.UserEntity.Modifiedby),this.adduserFrm.controls.DeactivationDate.setValue(this.datePipe.transform(this.UserEntity.DeactivationDate,"MM/dd/yyyy")),this.adduserFrm.controls.UserStatusActive.setValue(!0),this.adduserFrm.controls.UserStatusInActive.setValue(!1),this.isActive="Active"==this.UserEntity.UserStatus},t.prototype.UpdateUser=function(){var t=this;if(this.alerts="",""==this.adduserFrm.value.UserName&&(this.alerts+="User Name is required."),""==this.adduserFrm.value.Password&&(this.alerts+="
Password of minimum 8 characters is required."),""==this.adduserFrm.value.ConfirmPassword&&(this.alerts+="
Confirm Password is required."),""==this.adduserFrm.value.EmailId&&(this.alerts+="
Email Id is required."),""==this.adduserFrm.value.FirstName&&(this.alerts+="
First Name is required."),""==this.adduserFrm.value.LastName&&(this.alerts+="
Last Name is required."),this.adduserFrm.value.newPassword!=this.adduserFrm.value.confirmPassword&&(this.alerts+="
Password and confirm password must be same"),this.adduserFrm.valid&&""==this.alerts){this.adduserFrm.controls.isActive.setValue(this.isActive);var e=this.adduserFrm.value;return this.userservice.UpdateUserEntity(e).subscribe(function(e){return t.AfterInsertData(e)},function(e){t.error=e,t.alerts=""+t.error+""})}},t.prototype.AfterInsertData=function(t){"User updated successfully"==t&&(this.alerts="",this._confirmService.activate("User updated successfully.","alertMsg"))},t.prototype.ResetFormFields=function(){this.alerts=""},t}();rt=tt([Object(n.Component)({template:r("lPoh")}),et("design:paramtypes",["function"==typeof(nt=void 0!==D&&D)&&nt||Object,"function"==typeof(st=void 0!==h&&h)&&st||Object,"function"==typeof(it=void 0!==g.a&&g.a)&&it||Object,"function"==typeof(ot=void 0!==i.a&&i.a)&&ot||Object,"function"==typeof(at=void 0!==d.b&&d.b)&&at||Object,"function"==typeof(lt=void 0!==I&&I)&<||Object])],rt);var nt,st,it,ot,at,lt,dt=this&&this.__decorate||function(t,e,r,n){var s,i=arguments.length,o=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},ct=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},ut=function(){function t(t,e,r,n,s,i,o){this._loadingService=t,this.userservice=e,this.router=r,this.fb=n,this.http=s,this._confirmService=i,this.commonService=o,this.baseUrl="User",this.emailPattern="^[a-z0-9._%+-]+@[a-z0-9.-]+.[a-z]{2,4}$"}return t.prototype.ngOnInit=function(){this.user=new y,this.alerts="",this.adduserFrm=this.fb.group({id:[""],UserName:["",i.f.required],Password:["",[i.f.required,i.f.minLength(8)]],ConfirmPassword:["",i.f.required],FirstName:["",i.f.required],LastName:["",i.f.required],EmailId:["",i.f.required],AccountNumberId:["",i.f.required],UserTypeId:["",i.f.required],ProductEditionId:["",i.f.required]}),this._loadingService.ShowLoading("global-loading"),this.bindUsers(),this.GetAccountNumber(),this.GetUserTypeByLicenseId(),this._loadingService.HideLoading("global-loading")},t.prototype.redirect=function(){this.router.navigate(["/"])},t.prototype.GetUserTypeByLicenseId=function(){var t=this,e=this.adduserFrm.controls.AccountNumberId.value;""==e&&(e=0),this.userservice.GetUserTypeByLicenseType({AccountNumberId:e}).subscribe(function(e){t.UserTypeList=e},function(e){return t.error=e})},t.prototype.GetAccountNumber=function(){var t=this;this.userservice.GetAccountNumber().subscribe(function(e){console.log(e),t.AccountNumberList=e},function(e){return t.error=e})},t.prototype.GetProductEdition=function(){var t=this;this.userservice.GetProductEdition({AccountNumberId:this.adduserFrm.controls.AccountNumberId.value}).subscribe(function(e){console.log(e),t.ProductEditionList=e},function(e){return t.error=e})},t.prototype.BindUserTypeAndProductEdition=function(t){this.GetUserTypeByLicenseId(),this.GetProductEdition()},t.prototype.AddUser=function(){var t=this;if(this.alerts="",""==this.adduserFrm.value.UserName&&(this.alerts+="User Name is required."),""==this.adduserFrm.value.Password&&(this.alerts+="
Password of minimum 8 characters is required."),""==this.adduserFrm.value.ConfirmPassword&&(this.alerts+="
Confirm Password is required."),""==this.adduserFrm.value.EmailId&&(this.alerts+="
Email Id is required."),""==this.adduserFrm.value.FirstName&&(this.alerts+="
First Name is required."),""==this.adduserFrm.value.LastName&&(this.alerts+="
Last Name is required."),this.adduserFrm.value.newPassword!=this.adduserFrm.value.confirmPassword&&(this.alerts+="
Password and confirm password must be same"),"0"==this.adduserFrm.value.AccountNumberId&&(this.alerts+="
Please select account number"),"0"==this.adduserFrm.value.UserTypeId&&(this.alerts+="
Please select user type"),"0"==this.adduserFrm.value.ProductEditionId&&(this.alerts+="
Please select product edition"),this.adduserFrm.valid&&""==this.alerts){var e=this.adduserFrm.value;return this.userservice.InsertUser(e).subscribe(function(e){return t.AfterInsertData(e)},function(e){t.error=e,t.alerts=""+t.error+""})}},t.prototype.AfterInsertData=function(t){"User added successfully"==t&&(this.alerts="",this._confirmService.activate("User added successfully.","alertMsg"))},t.prototype.ResetForm=function(){this._buildForm()},t.prototype._buildForm=function(){this.adduserFrm=this.fb.group({id:[""],UserName:[""],Password:[""],ConfirmPassword:[""],FirstName:[""],LastName:[""],EmailId:[""],AccountNumberId:["0"],UserTypeId:["0"],ProductEditionId:["0"]})},t.prototype.bindUsers=function(){this.adduserFrm.controls.id.setValue(0),this.adduserFrm.controls.FirstName.setValue(""),this.adduserFrm.controls.LastName.setValue(""),this.adduserFrm.controls.EmailId.setValue(""),this.adduserFrm.controls.UserName.setValue(""),this.adduserFrm.controls.Password.setValue(""),this.adduserFrm.controls.ConfirmPassword.setValue(""),this.adduserFrm.controls.AccountNumberId.setValue(0),this.adduserFrm.controls.UserTypeId.setValue(0),this.adduserFrm.controls.ProductEditionId.setValue(0)},t}();ut=dt([Object(n.Component)({template:r("LWbE")}),ct("design:paramtypes",["function"==typeof(pt=void 0!==D&&D)&&pt||Object,"function"==typeof(mt=void 0!==h&&h)&&mt||Object,"function"==typeof(ft=void 0!==g.a&&g.a)&&ft||Object,"function"==typeof(ht=void 0!==i.a&&i.a)&&ht||Object,"function"==typeof(vt=void 0!==d.b&&d.b)&&vt||Object,"function"==typeof(bt=void 0!==I&&I)&&bt||Object,"function"==typeof(gt=void 0!==p&&p)&>||Object])],ut);var pt,mt,ft,ht,vt,bt,gt,yt=r("WYiA"),xt=this&&this.__decorate||function(t,e,r,n){var s,i=arguments.length,o=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},Ut=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},wt=function(){function t(t,e,r,n,s,i,o,a){this._loadingService=t,this.userservice=e,this.router=r,this.fb=n,this.http=s,this._confirmService=i,this.modalService=o,this.commonService=a,this.display="none"}return t.prototype.ngOnInit=function(){this.alerts="",this.UnBlockedUserFrm=this.fb.group({}),this._loadingService.ShowLoading("global-loading"),this.GetBlockUserList(),this._loadingService.HideLoading("global-loading")},t.prototype.redirect=function(){this.router.navigate(["/"])},t.prototype.onChange=function(t,e,r){this.checkedRecords[t]=r?e:0},t.prototype.openModal=function(t){this.display="block",0!=this.checkedRecords.filter(function(t){return t>0}).length&&(this.modalRef=this.modalService.show(t))},t.prototype.UpdateUnBlockedUsers=function(t){var e=this;if(this.modalRef.hide(),console.log(this.checkedRecords),this.alerts="",""==this.alerts){var r=this.checkedRecords.filter(function(t){return t>0});return this.userservice.UpdateUnBlockedUser(r).subscribe(function(r){return e.AfterDeleteData(r,t)},function(t){e.error=t,e.alerts=""+e.error+""})}},t.prototype.AfterDeleteData=function(t,e){"false"==t.Status?this._confirmService.activate("We have encountered a technical error and same has been notified to our technical team.","alertMsg"):this.GetBlockUserList()},t.prototype.GetBlockUserList=function(){var t=this;this.UnBlockedUserFrm.value;this.userservice.GetBlockUserList({UserTypeId:this.commonService.UserType,LicenseId:0}).subscribe(function(e){t.UserList=e,t.checkedRecords=new Array(t.UserList.length)},function(e){return t.error=e})},t.prototype.AfterInsertData=function(t){if("success"!=t)return this.alerts+=""+t+"",!1;this._confirmService.activate("Userid Updated Successfully.","alertMsg")},t.prototype.ResetFormFields=function(){this.alerts=""},t}();wt=xt([Object(n.Component)({template:r("o9F3")}),Ut("design:paramtypes",["function"==typeof(It=void 0!==D&&D)&&It||Object,"function"==typeof(Ct=void 0!==h&&h)&&Ct||Object,"function"==typeof(Pt=void 0!==g.a&&g.a)&&Pt||Object,"function"==typeof(Dt=void 0!==i.a&&i.a)&&Dt||Object,"function"==typeof(Ft=void 0!==d.b&&d.b)&&Ft||Object,"function"==typeof(St=void 0!==I&&I)&&St||Object,"function"==typeof(Nt=void 0!==yt.a&&yt.a)&&Nt||Object,"function"==typeof(Et=void 0!==p&&p)&&Et||Object])],wt);var It,Ct,Pt,Dt,Ft,St,Nt,Et,At=this&&this.__decorate||function(t,e,r,n){var s,i=arguments.length,o=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},Rt=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Ot=function(){function t(t,e){this.http=t,this.commonService=e}return t.prototype.GetDiscountCodes=function(t){var e=this;return""==t.startDate&&(t.startDate="1/1/1"),""==t.endDate&&(t.endDate="1/1/9999"),this.http.get(this.commonService.resourceBaseUrl+"DiscountCode/GetDiscountCodes?discountCode="+t.discountCode+"&startDate="+t.startDate+"&endDate="+t.endDate).map(this.extractData).catch(function(t){return e.handleError(t)})},t.prototype.InsertDiscountCode=function(t){var e=this,r={id:t.discountId,discountCode:t.discountCode,startDate:t.startDate,endDate:t.endDate,percentage:t.percentage,isActive:t.isActive};console.log(t);var n=new d.a({"Content-Type":"application/json"});return this.http.post(this.commonService.resourceBaseUrl+"DiscountCode/InsertDiscountCode",JSON.stringify(r),{headers:n}).map(this.extractData).catch(function(t){return e.handleError(t)})},t.prototype.UpdateDiscountCode=function(t){var e=this,r={id:t.discountId,discountCode:t.discountCode,startDate:t.startDate,endDate:t.endDate,percentage:t.percentage,isActive:t.isActive};console.log(t);var n=new d.a({"Content-Type":"application/json"});return this.http.post(this.commonService.resourceBaseUrl+"DiscountCode/UpdateDiscountCode",JSON.stringify(r),{headers:n}).map(this.extractData).catch(function(t){return e.handleError(t)})},t.prototype.extractData=function(t){return t.json()},t.prototype.handleError=function(t){var e=t.message?t.message:t.status?t.status+" - "+t.statusText:"Server error";return console.error(e),u.Observable.throw(e)},t}();Ot=At([Object(n.Injectable)(),Rt("design:paramtypes",["function"==typeof(Tt=void 0!==d.b&&d.b)&&Tt||Object,"function"==typeof(Lt=void 0!==p&&p)&&Lt||Object])],Ot);var Tt,Lt,jt=this&&this.__decorate||function(t,e,r,n){var s,i=arguments.length,o=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},kt=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Mt=function(){function t(t,e,r,n){this.manageDiscountCodeService=t,this.router=e,this.fb=r,this.modalService=n,this.Mode="Manage",this.divClass="",this.topPos="2000px",this.selectedRow=0,this.datePipe=new l.DatePipe("en-US"),this.bsValue1=new Date,this.bsValue2=new Date,this.bsValue3=new Date,this.bsValue4=new Date,this.selectedId=0}return t.prototype.ngOnInit=function(){this.divClass="col-sm-12",this.discountCode=new x,this.alerts="",this.manageDiscountCodeFrm=this.fb.group({searchDiscountCode:[""],searchStartDate:[""],searchEndDate:[""],discountCodes:this.fb.array([])}),this.insertUpdateDiscountCodeFrm=this.fb.group({discountId:[""],discountCode:[""],startDate:["",i.f.required],endDate:["",i.f.required],percentage:["",[i.f.required,i.f.pattern("[0-9.]*")]],isActive:[!0]}),this.SearchDiscountCodes()},t.prototype.SetClickedRow=function(t,e){this.selectedRow=t,this.selectedId=e.Id,this.discountCode=e},t.prototype.SearchDiscountCodes=function(){var t=this;this.manageDiscountCodeService.GetDiscountCodes({discountCode:this.manageDiscountCodeFrm.controls.searchDiscountCode.value,startDate:this.manageDiscountCodeFrm.controls.searchStartDate.value,endDate:this.manageDiscountCodeFrm.controls.searchEndDate.value}).subscribe(function(e){t.BindFormFields(e)},function(e){return t.error=e})},t.prototype.openModal=function(t){this.modalRef=this.modalService.show(t)},t.prototype.InsertUpdateDiscountCode=function(t){var e=this;if(console.log("InsertUpdateDiscountCode"),this.alerts="",parseInt(this.insertUpdateDiscountCodeFrm.value.percentage)>100&&(this.alerts="Percentage must be between 0 to 100"),""==this.alerts){var r=this.insertUpdateDiscountCodeFrm.value;return 0==r.discountId?this.manageDiscountCodeService.InsertDiscountCode(r).subscribe(function(r){return e.AfterInsertData(r,t)},function(t){return e.error=t}):this.manageDiscountCodeService.UpdateDiscountCode(r).subscribe(function(r){return e.AfterUpdateData(r,t)},function(t){return e.error=t})}},t.prototype.AfterInsertData=function(t,e){"false"==t.Status?this.alerts="Discount code save unsuccessfull":(this.modalAlerts="

Discount code saved successfully

",this.modalRef=this.modalService.show(e))},t.prototype.AfterUpdateData=function(t,e){"false"==t.Status?this.alerts="Discount code update unsuccessfull":(this.modalAlerts="

Discount code updated successfully

",this.modalRef=this.modalService.show(e))},t.prototype.BindFormFields=function(t){this.selectedRow=0,this.discountCodes=t,this.discountCode=this.discountCodes[0],this.manageDiscountCodeFrm.setControl("discountCodes",this.fb.array(this.discountCodes))},t.prototype.AddDiscountCode=function(){this.Mode="Add",this.topPos="100px",this.divClass="col-sm-10 col-sm-offset-1 col-md-8 col-md-offset-2 col-lg-6 col-lg-offset-3",this.insertUpdateDiscountCodeFrm.reset(),this.alerts="",this.insertUpdateDiscountCodeFrm.controls.discountId.setValue(0),this.insertUpdateDiscountCodeFrm.controls.discountCode.setValue(""),this.insertUpdateDiscountCodeFrm.controls.startDate.setValue(""),this.insertUpdateDiscountCodeFrm.controls.endDate.setValue(""),this.insertUpdateDiscountCodeFrm.controls.percentage.setValue(""),this.insertUpdateDiscountCodeFrm.controls.isActive.setValue(!0)},t.prototype.EditDiscountCode=function(){this.Mode="Edit",this.topPos="100px",this.divClass="col-sm-10 col-sm-offset-1 col-md-8 col-md-offset-2 col-lg-6 col-lg-offset-3",this.alerts="",this.insertUpdateDiscountCodeFrm.controls.discountId.setValue(this.discountCode.Id),this.insertUpdateDiscountCodeFrm.controls.discountCode.setValue(this.discountCode.DiscountCode),this.insertUpdateDiscountCodeFrm.controls.startDate.setValue(this.datePipe.transform(this.discountCode.StartDate,"MM/dd/yyyy")),this.insertUpdateDiscountCodeFrm.controls.endDate.setValue(this.datePipe.transform(this.discountCode.EndDate,"MM/dd/yyyy")),this.insertUpdateDiscountCodeFrm.controls.percentage.setValue(this.discountCode.Percentage),this.insertUpdateDiscountCodeFrm.controls.isActive.setValue(this.discountCode.IsActive)},t.prototype.CancelAddEdit=function(){var t=this;this.Mode="Manage",this.topPos="2000px",this.divClass="col-sm-12",this.SearchDiscountCodes(),this.selectedRow=this.discountCodes.findIndex(function(e){return e.Id==t.selectedId}),this.SetClickedRow(this.selectedRow,this.manageDiscountCodeFrm.controls.discountCodes.value.find(function(e){return e.Id==t.selectedId}))},t}();Mt=jt([Object(n.Component)({template:r("2Azi")}),kt("design:paramtypes",["function"==typeof(_t=void 0!==Ot&&Ot)&&_t||Object,"function"==typeof(Bt=void 0!==g.a&&g.a)&&Bt||Object,"function"==typeof(qt=void 0!==i.a&&i.a)&&qt||Object,"function"==typeof(Vt=void 0!==yt.a&&yt.a)&&Vt||Object])],Mt);var _t,Bt,qt,Vt,Gt=this&&this.__decorate||function(t,e,r,n){var s,i=arguments.length,o=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},zt=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Ht=function(){function t(t,e){this.http=t,this.commonService=e}return t.prototype.GetSubscriptionPrices=function(t){var e=this;return this.http.get(this.commonService.resourceBaseUrl+"SubscriptionPrice/GetSubscriptionPrices?editionId="+t.editionId).map(this.extractData).catch(function(t){return e.handleError(t)})},t.prototype.InsertSubscriptionPrice=function(t){var e=this,r={id:t.subscriptionPriceId,title:t.title,price:t.price,duration:t.duration,editionId:t.editionId,isActive:t.isActive};console.log(t);var n=new d.a({"Content-Type":"application/json"});return this.http.post(this.commonService.resourceBaseUrl+"SubscriptionPrice/InsertSubscriptionPrice",JSON.stringify(r),{headers:n}).map(this.extractData).catch(function(t){return e.handleError(t)})},t.prototype.UpdateSubscriptionPrices=function(t){var e=this,r={obj:t};console.log(t);var n=new d.a({"Content-Type":"application/json"});return this.http.post(this.commonService.resourceBaseUrl+"SubscriptionPrice/UpdateSubscriptionPrices",JSON.stringify(r),{headers:n}).map(this.extractData).catch(function(t){return e.handleError(t)})},t.prototype.DeleteSubscriptionPrices=function(t){var e=this,r=t;console.log(r);var n=new d.a({"Content-Type":"application/json"});return this.http.post(this.commonService.resourceBaseUrl+"SubscriptionPrice/DeleteSubscriptionPrices",r,{headers:n}).map(this.extractData).catch(function(t){return e.handleError(t)})},t.prototype.extractData=function(t){return t.json()},t.prototype.handleError=function(t){var e=t.message?t.message:t.status?t.status+" - "+t.statusText:"Server error";return console.error(e),u.Observable.throw(e)},t}();Ht=Gt([Object(n.Injectable)(),zt("design:paramtypes",["function"==typeof($t=void 0!==d.b&&d.b)&&$t||Object,"function"==typeof(Zt=void 0!==p&&p)&&Zt||Object])],Ht);var $t,Zt,Jt=this&&this.__decorate||function(t,e,r,n){var s,i=arguments.length,o=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},Wt=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Yt=function(){function t(t,e,r,n){this.subscriptionPriceService=t,this.router=e,this.fb=r,this.modalService=n,this.Mode="Search",this.topPos="2000px",this.datePipe=new l.DatePipe("en-US"),this.selectedEditionId=1,this.divClass=""}return t.prototype.ngOnInit=function(){this.divClass="col-sm-12",this.subscriptionPrice=new U,this.alerts="",this.subscriptionPriceFrm=this.fb.group({subscriptionPrices:this.fb.array([])}),this.insertSubscriptionPriceFrm=this.fb.group({subscriptionPriceId:[""],title:["",i.f.required],price:["",[i.f.required,i.f.pattern("[0-9.]*")]],duration:["",[i.f.required,i.f.pattern("[0-9]*")]],editionId:[""],isActive:[!1]}),this.SearchSubscriptionPrices(this.selectedEditionId)},t.prototype.SearchSubscriptionPrices=function(t){var e=this;this.selectedEditionId=t,this.subscriptionPriceService.GetSubscriptionPrices({editionId:this.selectedEditionId}).subscribe(function(t){e.BindFormFields(t)},function(t){return e.error=t})},t.prototype.openModal=function(t){0!=this.checkedRecords.filter(function(t){return t>0}).length&&(this.modalRef=this.modalService.show(t))},t.prototype.onChange=function(t,e,r){this.checkedRecords[t]=r?e:0},t.prototype.AfterDeleteData=function(t,e){"false"==t.Status?this.alerts="Subscription prices delete unsuccessfull":(this.modalAlerts="

Subscription prices deleted successfully

",this.modalRef=this.modalService.show(e),this.SearchSubscriptionPrices(this.selectedEditionId))},t.prototype.AfterInsertData=function(t,e){"false"==t.Status?this.alerts="Subscription price save unsuccessfull":(this.modalAlerts="

Subscription price saved successfully

",this.modalRef=this.modalService.show(e))},t.prototype.AfterUpdateData=function(t,e){"false"==t.Status?this.alerts="Subscription prices update unsuccessfull\n":(this.modalAlerts="

Subscription prices updated successfully

",this.modalRef=this.modalService.show(e))},t.prototype.BindFormFields=function(t){this.subscriptionPrices=t,this.checkedRecords=new Array(this.subscriptionPrices.length),this.subscriptionPriceFrm.setControl("subscriptionPrices",this.fb.array(this.subscriptionPrices))},t.prototype.UpdateSubscriptionPrices=function(t){var e=this;if(console.log(this.subscriptionPriceFrm.value),this.alerts="",""==this.alerts){var r=this.subscriptionPriceFrm.controls.subscriptionPrices.value;this.subscriptionPriceService.UpdateSubscriptionPrices(r).subscribe(function(r){return e.AfterUpdateData(r,t)},function(t){e.error=t,e.alerts=""+e.error+""})}},t.prototype.InsertSubscriptionPrice=function(t){var e=this;if(console.log(this.insertSubscriptionPriceFrm.value),this.alerts="",""==this.alerts){var r=this.insertSubscriptionPriceFrm.value;return this.subscriptionPriceService.InsertSubscriptionPrice(r).subscribe(function(r){return e.AfterInsertData(r,t)},function(t){e.error=t,e.alerts=""+e.error+""})}},t.prototype.DeleteSubscriptionPrices=function(t){var e=this;if(console.log(this.checkedRecords),this.alerts="",""==this.alerts){var r=this.checkedRecords.filter(function(t){return t>0});return this.subscriptionPriceService.DeleteSubscriptionPrices(r).subscribe(function(r){return e.AfterDeleteData(r,t)},function(t){e.error=t,e.alerts=""+e.error+""})}},t.prototype.AddSubscriptionPrice=function(){this.Mode="Add",this.topPos="100px",this.divClass="col-sm-10 col-sm-offset-1 col-md-8 col-md-offset-2 col-lg-6 col-lg-offset-3",this.insertSubscriptionPriceFrm.reset(),this.alerts="",this.insertSubscriptionPriceFrm.controls.subscriptionPriceId.setValue(0),this.insertSubscriptionPriceFrm.controls.title.setValue(""),this.insertSubscriptionPriceFrm.controls.price.setValue(""),this.insertSubscriptionPriceFrm.controls.duration.setValue(""),this.insertSubscriptionPriceFrm.controls.editionId.setValue(this.selectedEditionId),this.insertSubscriptionPriceFrm.controls.isActive.setValue(!1)},t.prototype.CancelAdd=function(){this.Mode="Search",this.topPos="2000px",this.divClass="col-sm-12",this.insertSubscriptionPriceFrm.reset(),this.alerts="",this.SearchSubscriptionPrices(this.selectedEditionId)},t}();Yt=Jt([Object(n.Component)({template:r("wLgm")}),Wt("design:paramtypes",["function"==typeof(Qt=void 0!==Ht&&Ht)&&Qt||Object,"function"==typeof(Kt=void 0!==g.a&&g.a)&&Kt||Object,"function"==typeof(Xt=void 0!==i.a&&i.a)&&Xt||Object,"function"==typeof(te=void 0!==yt.a&&yt.a)&&te||Object])],Yt);var Qt,Kt,Xt,te,ee=this&&this.__decorate||function(t,e,r,n){var s,i=arguments.length,o=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},re=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},ne=function(){function t(t){this.userservice=t}return t.prototype.ngOnInit=function(){},t}();ne=ee([Object(n.Component)({selector:"app-component",template:r("efyd"),providers:[h,Ot,Ht]}),re("design:paramtypes",["function"==typeof(se=void 0!==h&&h)&&se||Object])],ne);var se,ie=this&&this.__decorate||function(t,e,r,n){var s,i=arguments.length,o=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},oe=[{path:"updateuserprofile",component:N},{path:"changeuserpassword",component:M},{path:"changeuserid",component:Z},{path:"users",component:rt},{path:"managediscountcode",component:Mt},{path:"subscriptionprice",component:Yt},{path:"adduser",component:ut},{path:"unblockuser",component:wt}],ae=function(){function t(){}return t}();ae=ie([Object(n.NgModule)({imports:[g.b.forRoot(oe,{enableTracing:!0})],exports:[g.b]})],ae);var le=this&&this.__decorate||function(t,e,r,n){var s,i=arguments.length,o=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},de=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},ce=function(){function t(t){this._defaults={type:"reset",message:"Do you want to cancel your changes?",cancelText:"Cancel",okText:"OK"},this.alertshow=!1,t.activate=this.activate.bind(this)}return t.prototype._setLabels=function(t,e){void 0===t&&(t=this._defaults.message),void 0===e&&(e=this._defaults.type),this.type=e,this.message=t,this.okText=this._defaults.okText,this.cancelText=this._defaults.cancelText},t.prototype.activate=function(t,e){var r=this;return void 0===t&&(t=this._defaults.message),void 0===e&&(e=this._defaults.type),this._setLabels(t,e),new Promise(function(t){r._show(t)})},t.prototype._show=function(t){var e=this;document.onkeyup=null;var r=function(e){return t(1)},n=function(e){return t(2)},s=function(e){return t(3)},i=function(e){return t(1)},o=function(e){return t(2)},a=function(e){return t(6)},l=function(e){return t(7)},d=function(e){return t(5)},c=function(e){return t(8)};if(this._cancelButton&&this._okButton)return this._cancelButton.onclick=function(t){t.preventDefault(),s()||e._hideDialog()},this._okButton.onclick=function(t){t.preventDefault(),r()||e._hideDialog()},this._noButton.onclick=function(t){t.preventDefault(),n()||e._hideDialog()},this._noResetButton.onclick=function(t){t.preventDefault(),o()||e._hideDialog()},this._yesResetButton.onclick=function(t){t.preventDefault(),i()||e._hideDialog()},this._noConfirmButton.onclick=function(t){t.preventDefault(),l()||e._hideDialog()},this._yesConfirmButton.onclick=function(t){t.preventDefault(),a()||e._hideDialog()},this._okAlert.onclick=function(t){t.preventDefault(),d()||e._hideDialog()},this._closeAlert.onclick=function(t){t.preventDefault(),c()||e._hideDialog()},"close"==this.type.toString()?void this.closeModal.open("sm"):"reset"==this.type.toString()?void this.resetModal.open("sm"):"confirmModel"==this.type.toString()?void this.confirmModel.open("sm"):"alertMsg"==this.type.toString()?(clearTimeout(this.timer),void(this.timer=setTimeout(function(){e.alertMessageModal.open("sm")},500))):"alertMsg2"==this.type.toString()?void this.alertMessageModal.open("sm"):void(document.onkeyup=function(t){if(27==t.which)return e._hideDialog(),s()})},t.prototype._hideDialog=function(){return"close"==this.type.toString()?void this.closeModal.close():"reset"==this.type.toString()?void this.resetModal.close():"confirmModel"==this.type.toString()?void this.confirmModel.close():"alertMsg"==this.type.toString()?void this.alertMessageModal.close():"alertMsg2"==this.type.toString()?void this.alertMessageModal.close():void 0},t.prototype.ngOnInit=function(){this._cancelButton=document.getElementById("cancelButton"),this._okButton=document.getElementById("okButton"),this._noButton=document.getElementById("noButton"),this._yesResetButton=document.getElementById("yesResetButton"),this._noResetButton=document.getElementById("noResetButton"),this._yesConfirmButton=document.getElementById("yesConfirmButton"),this._noConfirmButton=document.getElementById("noConfirmButton"),this._okAlert=document.getElementById("okAlert"),this._closeAlert=document.getElementById("closeAlert")},t}();le([Object(n.ViewChild)("closeModal"),de("design:type","function"==typeof(ue=void 0!==c.ModalComponent&&c.ModalComponent)&&ue||Object)],ce.prototype,"closeModal",void 0),le([Object(n.ViewChild)("confirmModel"),de("design:type","function"==typeof(pe=void 0!==c.ModalComponent&&c.ModalComponent)&&pe||Object)],ce.prototype,"confirmModel",void 0),le([Object(n.ViewChild)("resetModal"),de("design:type","function"==typeof(me=void 0!==c.ModalComponent&&c.ModalComponent)&&me||Object)],ce.prototype,"resetModal",void 0),le([Object(n.ViewChild)("alertMessageModal"),de("design:type","function"==typeof(fe=void 0!==c.ModalComponent&&c.ModalComponent)&&fe||Object)],ce.prototype,"alertMessageModal",void 0),ce=le([Object(n.Component)({selector:"modal-confirm",template:r("3cDZ")}),de("design:paramtypes",["function"==typeof(he=void 0!==I&&I)&&he||Object])],ce);var ue,pe,me,fe,he,ve=r("bqRb"),be=this&&this.__decorate||function(t,e,r,n){var s,i=arguments.length,o=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},ge=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},ye=function(){function t(t){this.elRef=t,this.update=new n.EventEmitter}return t.prototype.ngOnChanges=function(t){this._lastViewModel!==t.model.currentValue&&(this._lastViewModel=this.model,this._refreshView())},t.prototype.onBlur=function(){if("checkbox"==this.elRef.nativeElement.type||"radio"==this.elRef.nativeElement.type){var t=this.elRef.nativeElement.checked;this._lastViewModel=t,this.update.emit(t)}else{var t=this.elRef.nativeElement.innerText;this._lastViewModel=t,this.update.emit(t)}},t.prototype._refreshView=function(){"checkbox"==this.elRef.nativeElement.type||"radio"==this.elRef.nativeElement.type?(this.elRef.nativeElement.value=this.model,this.elRef.nativeElement.checked=this.model):this.elRef.nativeElement.innerText=this.model},t}();be([Object(n.Input)("contenteditableModel"),ge("design:type",Object)],ye.prototype,"model",void 0),be([Object(n.Output)("contenteditableModelChange"),ge("design:type",Object)],ye.prototype,"update",void 0),be([Object(n.HostListener)("blur"),ge("design:type",Function),ge("design:paramtypes",[]),ge("design:returntype",void 0)],ye.prototype,"onBlur",null),ye=be([Object(n.Directive)({selector:"[contenteditableModel]"}),ge("design:paramtypes",["function"==typeof(xe=void 0!==n.ElementRef&&n.ElementRef)&&xe||Object])],ye);var xe,Ue=this&&this.__decorate||function(t,e,r,n){var s,i=arguments.length,o=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},we=function(){function t(){}return t}();we=Ue([Object(n.NgModule)({declarations:[M,Z,N,rt,Mt,ut,wt,ne,ce,Yt,Mt,ye],imports:[o.a,ae,a.a,i.b,i.e,d.c,c.Ng2Bs3ModalModule,ve.a.forRoot(),ve.b.forRoot()],providers:[p,I,yt.a,D,{provide:l.APP_BASE_HREF,useValue:"/Admin-UI"}],bootstrap:[ne]})],we),{production:!0}.production&&Object(n.enableProdMode)(),Object(s.a)().bootstrapModule(we)},efyd:function(t,e){t.exports='\r\n\x3c!-- navigation --\x3e\r\n\r\n\r\n\x3c!-- navigation --\x3e\r\n
\r\n
\r\n \r\n \r\n \r\n \x3c!-- main-heading --\x3e\r\n \x3c!--
\r\n

Update Profile

\r\n
--\x3e\r\n \x3c!-- main-heading --\x3e\r\n \x3c!-- container --\x3e\r\n \x3c!--
\r\n
--\x3e\r\n \x3c!-- html of other components --\x3e\r\n\r\n\r\n \x3c!--
\r\n
--\x3e\r\n \x3c!-- container --\x3e\r\n
\r\n'},gFIY:function(t,e){function r(t){return Promise.resolve().then(function(){throw new Error("Cannot find module '"+t+"'.")})}r.keys=function(){return[]},r.resolve=r,t.exports=r,r.id="gFIY"},lPoh:function(t,e){t.exports='
\r\n
\r\n

List User

\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
\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
\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
\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 \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
First NameLast NameUser IDPasswordEmail IDUser TypeCreated DateLast Modified DateAccount NumberProduct EditionStatus
{{UserEntity.FirstName}}{{UserEntity.LastName}}{{UserEntity.LoginId}}{{UserEntity.Password}}{{UserEntity.EmailId}}{{UserEntity.UserTypeTitle}}{{UserEntity.CreationDate| date: \'MM/dd/yyyy\'}}{{UserEntity.ModifiedDate | date: \'MM/dd/yyyy\'}}{{UserEntity.AccountNumber}}{{UserEntity.EditionType}}\r\n {{UserEntity.UserStatus}}\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 \x3c!-- form --\x3e\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
User Name is required
\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n (Minimum 8 characters)\r\n
Password of minimum 8 characters is required
\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
Confirm Password is required
\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
Email Id is required
\r\n\r\n
\r\n Please enter the correct email.\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
First Name is required
\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
Last Name is required
\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\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
\r\n
\r\n
\r\n \r\n
\r\n \r\n\r\n
\r\n
\r\n
\r\n
\r\n \r\n \x3c!--modal--\x3e\r\n \r\n\r\n \r\n \r\n
\r\n\r\n
\r\n
\r\n \x3c!-- form --\x3e\r\n
\r\n
\r\n
\r\n
\r\n\r\n \r\n
\r\n
\r\n
\r\n
\r\n'},o9F3:function(t,e){t.exports='
\r\n
\r\n

Unblock User

\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 \x3c!--first-table--\x3e\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
SelectFirst NameLast NameUser IDPasswordEmail IDBlocked DateAccount Number
\r\n \r\n {{UserEntity.FirstName}}{{UserEntity.LastName}}{{UserEntity.LoginId}}{{UserEntity.Password}}{{UserEntity.EmailId}}{{UserEntity.LoginTime| date: \'MM/dd/yyyy\'}}{{UserEntity.AccountNumber}}
\r\n
\r\n\r\n \x3c!--first-table--\x3e\r\n\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \x3c!--tab-content--\x3e\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n'},wLgm:function(t,e){t.exports='
\r\n \x3c!-- main-heading --\x3e\r\n
\r\n

Subscription Price

\r\n
\r\n \x3c!-- main-heading --\x3e\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 \x3c!-- container --\x3e\r\n
\r\n\r\n
\r\n \x3c!-- form --\x3e\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \x3c!--tab-content--\x3e\r\n
\r\n \x3c!-- Nav tabs --\x3e\r\n \r\n\r\n \x3c!-- Tab panes --\x3e\r\n
\r\n \x3c!--first-table--\x3e\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
SelectSubscription TypeDuration(in Month)PriceActive
\r\n \r\n \r\n \r\n {{item.Title}}{{item.Duration}}{{item.Price | number : \'1.2\'}}\r\n \r\n
\r\n
\r\n
\r\n \x3c!--first-table--\x3e\r\n\r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n\r\n
\r\n
\r\n \x3c!--tab-content--\x3e\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \x3c!-- form --\x3e\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
Subscription title is required
\r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n \r\n
Subscription price is required
\r\n
Subscription price must be numeric
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n \r\n
Subscription duration is required
\r\n
Subscription duration must be numeric
\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 \x3c!-- form --\x3e\r\n \r\n \x3c!--modal--\x3e\r\n \r\n \x3c!-- /.modal --\x3e\r\n \x3c!--modal--\x3e\r\n \x3c!--modal--\x3e\r\n \r\n \x3c!-- /.modal --\x3e\r\n \x3c!--modal--\x3e\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\x3c!-- container --\x3e\r\n
'},xbvx:function(t,e){t.exports='
\r\n \x3c!-- main-heading --\x3e\r\n
\r\n

Update Profile

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
**To update your profile fill all the text fields carefully.
\r\n
\r\n \x3c!-- form --\x3e\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
First Name is required
\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
Last Name is required
\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n\r\n
Email Id is required
\r\n\r\n
\r\n Please enter the correct email.\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \x3c!--cancel-button--\x3e\r\n\r\n \x3c!-- /.modal --\x3e\r\n \x3c!--cancel-button--\x3e\r\n \r\n
\r\n\r\n
\r\n
\r\n \x3c!-- form --\x3e\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n'}},[0]); \ No newline at end of file -- libgit2 0.21.4