{"version":3,"sources":["app.min.js"],"names":["names","bob","Application","AppConfiguration","controllers","AppController","ConfirmModalController","GalleryController","NavigationController","services","ArtWorksService","NotificationService","SpinWaitService","angular","Compile","Cookies","Document","Element","ExceptionHandler","Filter","Http","HttpParamSerializer","HttpProvider","Injector","Interval","Locale","Location","LocationProvider","Log","Q","RootScope","Route","RouteParams","RouteProvider","Sce","Scope","Timeout","Translate","TranslateProvider","UiBootstrapModal","UiBootstrapModalInstance","Window","modules","ngAnimate","ngCookies","ngMessages","ngRoute","ngTranslate","uiBootstrap","uiGrid","jquery","JStorage","misc","BlockUI","Toastr","messages","ApplicationTitle","ControllerBase","$scope","this","controller","module","config","$routeProvider","factory","element","jStorage","common","Utilities","smallDevice","width","isMobile","test","navigator","userAgent","configuration","appConfiguration","implementation","$toastr","prototype","error","message","title","validateTitle","getCommonOptions","info","success","warning","closeButton","length","$inject","toastr","service","$http","$q","getArtWorks","category","deferred","defer","get","webServiceUrl","then","result","status","reject","resolve","data","artWorks","catch","reason","promise","blockList","block","key","indexOf","$","blockUI","baseZ","push","unblock","newBlockList","item","unblockUI","__extends","extendStatics","Object","setPrototypeOf","__proto__","Array","d","b","p","hasOwnProperty","__","constructor","create","_super","$location","$timeout","$window","artWorksService","notificationService","spinWaitService","_this","call","absUrl","initializeGalleryViewModel","encodeUri","uri","encodeURIComponent","imageLoaded","fadeIn","fadeOut","viewModel","artworks","setupGalleryCarousel","setCurrentImage","file","finally","currentFileName","removeClass","imageInfo","filter","v","currentImage","$$phase","$apply","owl","css","unbind","trigger","on","owlCarousel","autoWidth","dots","lazyLoad","loop","margin","nav","responsive","0","items","600","1400","stagePadding","event","targetElement","target","hasClass","directive","restrict","link","scope","attrs","bind","imageonload","initializeNavigationController","checkActive","path","location","pathname","checkHomeActive","viewmodels","ConfirmModalResult","ConfirmModalButtonOptions","CancelText","DefaultButtonOption","YesNo","NoText","OkText","YesText","ConfirmModalViewModel","prompt","confirmButtonOption","cancelText","noText","okText","yesText","confirmModalButtonOption","$sce","$uibModalInstance","buttonOptionOk","Ok","buttonOptionYesNo","buttonOptionYesNoCancel","YesNoCancel","cancelConfirm","close","Cancel","closeConfirm","confirmReturn","No","getPromptHtml","trustAsHtml","noConfirm","okConfirm","yesConfirm","Yes","showOk","showConfirm","showYesNo","injector","open","size","templateUrl","initializeApplicationViewModel"],"mappings":"AAAA,IAAIA,OACJ,SAAWA,GACP,IACWC,GAAAA,EAGFD,EAAMC,MAAQD,EAAMC,SAFrBC,YAAc,MAClBD,EAAIE,iBAAmB,mBAJ/B,CAMGH,QAAUA,WACb,SAAWA,GACP,IACWC,EAEIG,EAFJH,EAQFD,EAAMC,MAAQD,EAAMC,SANdG,EAKMH,EAAIG,cAAgBH,EAAIG,iBAJzBC,cAAgB,gBAC5BD,EAAYE,uBAAyB,yBACrCF,EAAYG,kBAAoB,oBAChCH,EAAYI,qBAAuB,uBAR/C,CAWGR,QAAUA,WACb,SAAWA,GACP,IACWC,EAEIQ,EAFJR,EAOFD,EAAMC,MAAQD,EAAMC,SALdQ,EAIGR,EAAIQ,WAAaR,EAAIQ,cAHtBC,gBAAkB,kBAC3BD,EAASE,oBAAsB,sBAC/BF,EAASG,gBAAkB,kBAPvC,CAUGZ,QAAUA,WACb,SAAWA,GACP,IACWa,GAAAA,EA6BEb,EAAMa,UAAYb,EAAMa,aA5BzBC,QAAU,WAClBD,EAAQE,QAAU,WAClBF,EAAQG,SAAW,YACnBH,EAAQI,QAAU,WAClBJ,EAAQK,iBAAmB,oBAC3BL,EAAQM,OAAS,UACjBN,EAAQO,KAAO,QACfP,EAAQQ,oBAAsB,uBAC9BR,EAAQS,aAAe,gBACvBT,EAAQU,SAAW,YACnBV,EAAQW,SAAW,YACnBX,EAAQY,OAAS,UACjBZ,EAAQa,SAAW,YACnBb,EAAQc,iBAAmB,oBAC3Bd,EAAQe,IAAM,OACdf,EAAQgB,EAAI,KACZhB,EAAQiB,UAAY,aACpBjB,EAAQkB,MAAQ,SAChBlB,EAAQmB,YAAc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AAIQ,SAASG,iBAEvBC,QAAQgD,OAAO7D,MAAMC,IAAIC,aACpB0D,WAAW5D,MAAMC,IAAIG,YAAYC,cAAeA,GA7BzD,CA8BGJ,MAAQA","file":"app.min.js","sourcesContent":["var names;\n(function (names) {\n var bob;\n (function (bob) {\n bob.Application = \"bob\";\n bob.AppConfiguration = 'AppConfiguration';\n })(bob = names.bob || (names.bob = {}));\n})(names || (names = {}));\n(function (names) {\n var bob;\n (function (bob) {\n var controllers;\n (function (controllers) {\n controllers.AppController = \"AppController\";\n controllers.ConfirmModalController = \"ConfirmModalController\";\n controllers.GalleryController = \"GalleryController\";\n controllers.NavigationController = \"NavigationController\";\n })(controllers = bob.controllers || (bob.controllers = {}));\n })(bob = names.bob || (names.bob = {}));\n})(names || (names = {}));\n(function (names) {\n var bob;\n (function (bob) {\n var services;\n (function (services) {\n services.ArtWorksService = \"ArtWorksService\";\n services.NotificationService = \"NotificationService\";\n services.SpinWaitService = \"SpinWaitService\";\n })(services = bob.services || (bob.services = {}));\n })(bob = names.bob || (names.bob = {}));\n})(names || (names = {}));\n(function (names) {\n var angular;\n (function (angular) {\n angular.Compile = '$compile';\n angular.Cookies = '$cookies';\n angular.Document = '$document';\n angular.Element = '$element';\n angular.ExceptionHandler = '$exceptionHandler';\n angular.Filter = '$filter';\n angular.Http = '$http';\n angular.HttpParamSerializer = '$httpParamSerializer';\n angular.HttpProvider = '$httpProvider';\n angular.Injector = '$injector';\n angular.Interval = '$interval';\n angular.Locale = '$locale';\n angular.Location = '$location';\n angular.LocationProvider = '$locationProvider';\n angular.Log = '$log';\n angular.Q = '$q';\n angular.RootScope = '$rootScope';\n angular.Route = '$route';\n angular.RouteParams = '$routeParams';\n angular.RouteProvider = '$routeProvider';\n angular.Sce = '$sce';\n angular.Scope = '$scope';\n angular.Timeout = '$timeout';\n angular.Translate = '$translate';\n angular.TranslateProvider = '$translateProvider';\n angular.UiBootstrapModal = '$uibModal';\n angular.UiBootstrapModalInstance = '$uibModalInstance';\n angular.Window = '$window';\n })(angular = names.angular || (names.angular = {}));\n})(names || (names = {}));\n(function (names) {\n var angular;\n (function (angular) {\n var modules;\n (function (modules) {\n modules.ngAnimate = 'ngAnimate';\n modules.ngCookies = 'ngCookies';\n modules.ngMessages = 'ngMessages';\n modules.ngRoute = 'ngRoute';\n modules.ngTranslate = 'pascalprecht.translate';\n modules.uiBootstrap = 'ui.bootstrap';\n modules.uiGrid = 'ui.grid';\n })(modules = angular.modules || (angular.modules = {}));\n })(angular = names.angular || (names.angular = {}));\n})(names || (names = {}));\n(function (names) {\n var jquery;\n (function (jquery) {\n jquery.JStorage = 'StorageService.JStorageStatic';\n })(jquery = names.jquery || (names.jquery = {}));\n})(names || (names = {}));\n(function (names) {\n var misc;\n (function (misc) {\n misc.BlockUI = 'blockUI';\n misc.Toastr = 'toastr';\n })(misc = names.misc || (names.misc = {}));\n})(names || (names = {}));\n\nvar bob;\n(function (bob) {\n var messages;\n (function (messages) {\n messages.ApplicationTitle = \"Bobby Ross\";\n })(messages = bob.messages || (bob.messages = {}));\n})(bob || (bob = {}));\n\n/// \nvar bob;\n(function (bob) {\n var controllers;\n (function (controllers) {\n var ControllerBase = (function () {\n function ControllerBase($scope) {\n this.$scope = $scope;\n this.$scope.controller = this;\n }\n return ControllerBase;\n }());\n controllers.ControllerBase = ControllerBase;\n })(controllers = bob.controllers || (bob.controllers = {}));\n})(bob || (bob = {}));\n\n/// \nvar bob;\n(function (bob) {\n angular.module(names.bob.Application, [\n names.angular.modules.ngCookies,\n names.angular.modules.ngRoute,\n names.angular.modules.uiBootstrap\n ]).config([names.angular.RouteProvider, function ($routeProvider) { }])\n .factory(names.jquery.JStorage, function () { return angular.element.jStorage; });\n})(bob || (bob = {}));\n\n/// \nvar bob;\n(function (bob) {\n var common;\n (function (common) {\n var Utilities = (function () {\n function Utilities() {\n }\n Utilities.smallDevice = function () {\n return angular.element('body').width() < 600 && this.isMobile();\n };\n Utilities.isMobile = function () {\n return (/Android|Kindle|Silk|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent));\n };\n return Utilities;\n }());\n common.Utilities = Utilities;\n })(common = bob.common || (bob.common = {}));\n})(bob || (bob = {}));\n\n/// \nvar bob;\n(function (bob) {\n var configuration;\n (function (configuration) {\n angular.module(names.bob.Application)\n .factory(names.bob.AppConfiguration, function () { return appConfiguration; });\n })(configuration = bob.configuration || (bob.configuration = {}));\n})(bob || (bob = {}));\n\n/// \nvar bob;\n(function (bob) {\n var services;\n (function (services) {\n var implementation;\n (function (implementation) {\n var Toastr = 'Toastr';\n var NotificationService = (function () {\n function NotificationService($toastr) {\n this.$toastr = $toastr;\n }\n NotificationService.prototype.error = function (message, title) {\n title = this.validateTitle(title);\n this.$toastr.error(message, title, this.getCommonOptions());\n };\n NotificationService.prototype.info = function (message, title) {\n title = this.validateTitle(title);\n this.$toastr.info(message, title, this.getCommonOptions());\n };\n NotificationService.prototype.success = function (message, title) {\n title = this.validateTitle(title);\n this.$toastr.success(message, title, this.getCommonOptions());\n };\n NotificationService.prototype.warning = function (message, title) {\n title = this.validateTitle(title);\n this.$toastr.warning(message, title, this.getCommonOptions());\n };\n NotificationService.prototype.getCommonOptions = function () {\n return {\n closeButton: true\n };\n };\n NotificationService.prototype.validateTitle = function (title) {\n if (typeof (title) == 'undefined' || title == null || title.length <= 0) {\n return bob.messages.ApplicationTitle;\n }\n return title;\n };\n return NotificationService;\n }());\n NotificationService.$inject = [Toastr];\n angular.module(names.bob.Application)\n .factory(Toastr, function () { return toastr; })\n .service(names.bob.services.NotificationService, NotificationService);\n })(implementation = services.implementation || (services.implementation = {}));\n })(services = bob.services || (bob.services = {}));\n})(bob || (bob = {}));\n\n/// \nvar bob;\n(function (bob) {\n var services;\n (function (services) {\n var implementation;\n (function (implementation) {\n var ArtWorksService = (function () {\n function ArtWorksService($http, $q, appConfiguration) {\n this.$http = $http;\n this.$q = $q;\n this.appConfiguration = appConfiguration;\n }\n ArtWorksService.prototype.getArtWorks = function (category) {\n var deferred = this.$q.defer();\n this.$http.get(this.appConfiguration.webServiceUrl + '/artworks/' + category).then(function (result) {\n if (result.status == 200) {\n deferred.resolve(result.data.artWorks);\n return;\n }\n deferred.reject(result);\n }).catch(function (reason) {\n deferred.reject(reason);\n });\n return deferred.promise;\n };\n return ArtWorksService;\n }());\n ArtWorksService.$inject = [\n names.angular.Http,\n names.angular.Q,\n names.bob.AppConfiguration\n ];\n angular.module(names.bob.Application)\n .service(names.bob.services.ArtWorksService, ArtWorksService);\n })(implementation = services.implementation || (services.implementation = {}));\n })(services = bob.services || (bob.services = {}));\n})(bob || (bob = {}));\n\n/// \nvar bob;\n(function (bob) {\n var services;\n (function (services) {\n var implementation;\n (function (implementation) {\n var BlockUI = 'BlockUI';\n var SpinWaitService = (function () {\n function SpinWaitService() {\n this.blockList = [];\n }\n SpinWaitService.prototype.block = function (key) {\n if (typeof (key) != 'undefined' && key != null && key.length > 0) {\n if (this.blockList.indexOf(key) >= 0) {\n // We are already blocking for this key.\n return;\n }\n }\n if (this.blockList.length == 0) {\n $.blockUI({\n baseZ: 10000,\n message: '
'\n });\n }\n this.blockList.push(key);\n };\n SpinWaitService.prototype.unblock = function (key) {\n if (typeof (key) != 'undefined' && key != null && key.length > 0) {\n if (this.blockList.indexOf(key) >= 0) {\n var newBlockList = [];\n for (var item in this.blockList) {\n if (this.blockList[item] != key) {\n newBlockList.push(this.blockList[item]);\n }\n }\n this.blockList = newBlockList;\n }\n else {\n // Key is not found and we shouldn't unblock in this case.\n return;\n }\n }\n if (this.blockList.length == 0) {\n $.unblockUI();\n }\n };\n return SpinWaitService;\n }());\n angular.module(names.bob.Application)\n .service(names.bob.services.SpinWaitService, SpinWaitService);\n })(implementation = services.implementation || (services.implementation = {}));\n })(services = bob.services || (bob.services = {}));\n})(bob || (bob = {}));\n\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\n/// \nvar bob;\n(function (bob) {\n var controllers;\n (function (controllers) {\n var GalleryController = (function (_super) {\n __extends(GalleryController, _super);\n function GalleryController($scope, $location, $timeout, $window, artWorksService, notificationService, spinWaitService) {\n var _this = _super.call(this, $scope) || this;\n _this.$scope = $scope;\n _this.$location = $location;\n _this.$timeout = $timeout;\n _this.$window = $window;\n _this.artWorksService = artWorksService;\n _this.notificationService = notificationService;\n _this.spinWaitService = spinWaitService;\n var category = _this.$location.absUrl().indexOf('paintings') >= 0 ? 'painting' : 'drawing';\n _this.initializeGalleryViewModel(category);\n return _this;\n }\n GalleryController.prototype.encodeUri = function (uri) {\n return encodeURIComponent(uri);\n };\n GalleryController.prototype.imageLoaded = function () {\n angular.element('.gallery-image').fadeIn(function () {\n angular.element('#imageLoading').fadeOut('fast');\n });\n };\n GalleryController.prototype.smallDevice = function () {\n return bob.common.Utilities.isMobile();\n };\n GalleryController.prototype.initializeGalleryViewModel = function (category) {\n var _this = this;\n this.$scope.viewModel = {};\n this.spinWaitService.block('GalleryViewModel');\n this.artWorksService.getArtWorks(category).then(function (result) {\n _this.$scope.viewModel.artworks = result;\n _this.setupGalleryCarousel();\n _this.setCurrentImage(_this.$scope.viewModel.artworks[0].file);\n }).catch(function (reason) {\n _this.notificationService.error('Art work list unavailable, please call us for support.', bob.messages.ApplicationTitle);\n }).finally(function () {\n _this.spinWaitService.unblock('GalleryViewModel');\n });\n };\n GalleryController.prototype.setCurrentImage = function (file) {\n var _this = this;\n if (this.$scope.viewModel.currentFileName == file) {\n return;\n }\n this.$scope.viewModel.currentFileName = file;\n this.$timeout(function () {\n angular.element('#imageLoading').removeClass('hide');\n }, 500);\n angular.element('#imageLoading').fadeIn('fast', function () {\n angular.element('.gallery-image').fadeOut('fast', function () {\n var imageInfo = _this.$scope.viewModel.artworks.filter(function (v) { return v.file == file; })[0];\n _this.$scope.viewModel.currentImage = imageInfo;\n if (_this.$scope.$$phase != '$digest') {\n _this.$scope.$apply();\n }\n });\n });\n };\n GalleryController.prototype.setupGalleryCarousel = function () {\n var _this = this;\n var owl = angular.element('.gallery-list');\n owl.css('opacity', 0);\n owl.unbind('initialized.owl.carousel');\n owl.trigger('destroy.owl.carousel');\n owl.on('initialized.owl.carousel', function () {\n _this.$timeout(function () {\n owl.css('opacity', 1);\n }, 250);\n });\n this.$timeout(function () {\n angular.element(owl).owlCarousel({\n autoWidth: true,\n dots: false,\n lazyLoad: true,\n loop: true,\n margin: 10,\n nav: true,\n responsive: {\n 0: {\n items: 2\n },\n 600: {\n items: 4\n },\n 1400: {\n items: 6\n }\n },\n stagePadding: 20\n }).on('click', '.owl-item', function (event) {\n // Note, this is here because ng-click could not be used with the carousel as the items are cloned\n var targetElement = angular.element(event.target);\n if (targetElement.hasClass('img-thumbnail')) {\n var file = targetElement.data('file');\n _this.setCurrentImage(file);\n }\n });\n }, 100);\n };\n return GalleryController;\n }(bob.controllers.ControllerBase));\n GalleryController.$inject = [\n names.angular.Scope,\n names.angular.Location,\n names.angular.Timeout,\n names.angular.Window,\n names.bob.services.ArtWorksService,\n names.bob.services.NotificationService,\n names.bob.services.SpinWaitService\n ];\n controllers.GalleryController = GalleryController;\n angular.module(names.bob.Application)\n .controller(names.bob.controllers.GalleryController, GalleryController)\n .directive('imageonload', function () {\n return {\n restrict: 'A',\n link: function (scope, element, attrs) {\n element.bind('load', function () {\n //call the function that was passed\n scope.$apply(attrs.imageonload);\n });\n }\n };\n });\n })(controllers = bob.controllers || (bob.controllers = {}));\n})(bob || (bob = {}));\n\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\n/// \nvar bob;\n(function (bob) {\n var controllers;\n (function (controllers) {\n var NavigationController = (function (_super) {\n __extends(NavigationController, _super);\n function NavigationController($scope, $location, $window) {\n var _this = _super.call(this, $scope) || this;\n _this.$scope = $scope;\n _this.$location = $location;\n _this.$window = $window;\n _this.initializeNavigationController();\n return _this;\n }\n NavigationController.prototype.initializeNavigationController = function () {\n };\n NavigationController.prototype.smallDevice = function () {\n return bob.common.Utilities.isMobile();\n };\n NavigationController.prototype.checkActive = function (path) {\n if (this.$window.location.pathname.indexOf(path) >= 0) {\n return true;\n }\n };\n NavigationController.prototype.checkHomeActive = function () {\n return !this.checkActive('contact') && !this.checkActive('payment') && !this.checkActive('rentals');\n };\n return NavigationController;\n }(controllers.ControllerBase));\n NavigationController.$inject = [\n names.angular.Scope,\n names.angular.Location,\n names.angular.Window\n ];\n angular.module(names.bob.Application)\n .controller(names.bob.controllers.NavigationController, NavigationController);\n })(controllers = bob.controllers || (bob.controllers = {}));\n})(bob || (bob = {}));\n\n/// \nvar bob;\n(function (bob) {\n var viewmodels;\n (function (viewmodels) {\n var ConfirmModalResult;\n (function (ConfirmModalResult) {\n ConfirmModalResult[ConfirmModalResult[\"Cancel\"] = 0] = \"Cancel\";\n ConfirmModalResult[ConfirmModalResult[\"Ok\"] = 1] = \"Ok\";\n ConfirmModalResult[ConfirmModalResult[\"No\"] = 2] = \"No\";\n ConfirmModalResult[ConfirmModalResult[\"Yes\"] = 3] = \"Yes\";\n })(ConfirmModalResult = viewmodels.ConfirmModalResult || (viewmodels.ConfirmModalResult = {}));\n var ConfirmModalButtonOptions;\n (function (ConfirmModalButtonOptions) {\n ConfirmModalButtonOptions[ConfirmModalButtonOptions[\"Ok\"] = 0] = \"Ok\";\n ConfirmModalButtonOptions[ConfirmModalButtonOptions[\"YesNo\"] = 1] = \"YesNo\";\n ConfirmModalButtonOptions[ConfirmModalButtonOptions[\"YesNoCancel\"] = 2] = \"YesNoCancel\";\n })(ConfirmModalButtonOptions = viewmodels.ConfirmModalButtonOptions || (viewmodels.ConfirmModalButtonOptions = {}));\n var CancelText = 'Cancel';\n var DefaultButtonOption = ConfirmModalButtonOptions.YesNo;\n var NoText = 'No';\n var OkText = 'Ok';\n var YesText = 'Yes';\n var ConfirmModalViewModel = (function () {\n function ConfirmModalViewModel(prompt, title, confirmButtonOption, cancelText, noText, okText, yesText) {\n if (confirmButtonOption === void 0) { confirmButtonOption = DefaultButtonOption; }\n if (cancelText === void 0) { cancelText = CancelText; }\n if (noText === void 0) { noText = NoText; }\n if (okText === void 0) { okText = OkText; }\n if (yesText === void 0) { yesText = YesText; }\n this.cancelText = cancelText;\n this.confirmModalButtonOption = confirmButtonOption;\n this.noText = noText;\n this.okText = okText;\n this.prompt = prompt;\n this.title = title;\n this.yesText = yesText;\n }\n return ConfirmModalViewModel;\n }());\n viewmodels.ConfirmModalViewModel = ConfirmModalViewModel;\n })(viewmodels = bob.viewmodels || (bob.viewmodels = {}));\n})(bob || (bob = {}));\n\n/// \nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar bob;\n(function (bob) {\n var controllers;\n (function (controllers) {\n var TemplateUrl = '/staticpages/confirmmodal.html';\n var ConfirmModalController = (function (_super) {\n __extends(ConfirmModalController, _super);\n function ConfirmModalController($scope, $sce, $uibModalInstance, viewModel) {\n var _this = _super.call(this, $scope) || this;\n _this.$scope = $scope;\n _this.$sce = $sce;\n _this.$uibModalInstance = $uibModalInstance;\n $scope.viewModel = viewModel;\n return _this;\n }\n ConfirmModalController.prototype.buttonOptionOk = function () {\n var viewModel = this.$scope.viewModel;\n return viewModel.confirmModalButtonOption == bob.viewmodels.ConfirmModalButtonOptions.Ok;\n };\n ConfirmModalController.prototype.buttonOptionYesNo = function () {\n var viewModel = this.$scope.viewModel;\n return viewModel.confirmModalButtonOption == bob.viewmodels.ConfirmModalButtonOptions.YesNo;\n };\n ConfirmModalController.prototype.buttonOptionYesNoCancel = function () {\n var viewModel = this.$scope.viewModel;\n return viewModel.confirmModalButtonOption == bob.viewmodels.ConfirmModalButtonOptions.YesNoCancel;\n };\n ConfirmModalController.prototype.cancelConfirm = function () {\n this.$uibModalInstance.close(bob.viewmodels.ConfirmModalResult.Cancel);\n };\n ConfirmModalController.prototype.closeConfirm = function () {\n var confirmReturn = this.buttonOptionOk()\n ? bob.viewmodels.ConfirmModalResult.Ok\n : this.buttonOptionYesNo()\n ? bob.viewmodels.ConfirmModalResult.No\n : this.buttonOptionYesNoCancel()\n ? bob.viewmodels.ConfirmModalResult.Cancel : null;\n this.$uibModalInstance.close(confirmReturn);\n };\n ConfirmModalController.prototype.getPromptHtml = function () {\n return this.$sce.trustAsHtml(this.$scope.viewModel.prompt);\n };\n ConfirmModalController.prototype.noConfirm = function () {\n this.$uibModalInstance.close(bob.viewmodels.ConfirmModalResult.No);\n };\n ConfirmModalController.prototype.okConfirm = function () {\n this.$uibModalInstance.close(bob.viewmodels.ConfirmModalResult.Ok);\n };\n ConfirmModalController.prototype.yesConfirm = function () {\n this.$uibModalInstance.close(bob.viewmodels.ConfirmModalResult.Yes);\n };\n ConfirmModalController.showOk = function (prompt, title) {\n var viewModel = new bob.viewmodels.ConfirmModalViewModel(prompt, title, bob.viewmodels.ConfirmModalButtonOptions.Ok);\n return this.showConfirm(viewModel);\n };\n ConfirmModalController.showYesNo = function (prompt, title) {\n var viewModel = new bob.viewmodels.ConfirmModalViewModel(prompt, title);\n return this.showConfirm(viewModel);\n };\n ConfirmModalController.showConfirm = function (viewModel) {\n var $injector = angular.element('html').injector();\n var $uibModal = $injector.get(names.angular.UiBootstrapModal);\n return $uibModal.open({\n controller: names.bob.controllers.ConfirmModalController,\n resolve: {\n viewModel: viewModel\n },\n size: 'sm',\n templateUrl: TemplateUrl\n });\n };\n return ConfirmModalController;\n }(bob.controllers.ControllerBase));\n ConfirmModalController.$inject = [\n names.angular.Scope,\n names.angular.Sce,\n names.angular.UiBootstrapModalInstance,\n 'viewModel'\n ];\n controllers.ConfirmModalController = ConfirmModalController;\n angular.module(names.bob.Application)\n .controller(names.bob.controllers.ConfirmModalController, ConfirmModalController);\n })(controllers = bob.controllers || (bob.controllers = {}));\n})(bob || (bob = {}));\n\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\n/// \nvar bob;\n(function (bob) {\n var AppController = (function (_super) {\n __extends(AppController, _super);\n function AppController($scope, $timeout, $window, notificationService, spinWaitService) {\n var _this = _super.call(this, $scope) || this;\n _this.$scope = $scope;\n _this.$timeout = $timeout;\n _this.$window = $window;\n _this.notificationService = notificationService;\n _this.spinWaitService = spinWaitService;\n _this.initializeApplicationViewModel($scope);\n return _this;\n }\n AppController.prototype.initializeApplicationViewModel = function (scope) {\n scope.viewModel = {};\n };\n AppController.prototype.smallDevice = function () {\n return bob.common.Utilities.isMobile();\n };\n return AppController;\n }(bob.controllers.ControllerBase));\n AppController.$inject = [\n names.angular.Scope,\n names.angular.Timeout,\n names.angular.Window,\n names.bob.services.NotificationService,\n names.bob.services.SpinWaitService\n ];\n angular.module(names.bob.Application)\n .controller(names.bob.controllers.AppController, AppController);\n})(bob || (bob = {}));\n\n//# sourceMappingURL=app.js.map\n"]}