{"version":3,"sources":["wwwroot/js/app/app.js","wwwroot/js/app/services/DesignService.js","wwwroot/js/app/services/IconService.js","wwwroot/js/app/services/OdataSurveyService.js","wwwroot/js/app/services/ResponseService.js","wwwroot/js/app/services/SurveyService.js","wwwroot/js/app/services/UserService.js","wwwroot/js/app/filters/PhoneNumber.filter.js","wwwroot/js/app/filters/Time.Recency.Filter.js","wwwroot/js/app/directives/ngEnter.directive.js","wwwroot/js/app/controllers/Root.Controller.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC5CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"app.min.js","sourcesContent":["'use strict';\n\nangular\n .module('App.v1', [\n 'App.v1.Controllers',\n 'App.v1.Services',\n 'App.v1.Directives',\n 'App.v1.Filters',\n 'ngResource',\n 'ngFileUpload'])\n\n .config(['$locationProvider',\n function ($locationProvider) {\n $locationProvider.html5Mode(true).hashPrefix('!');\n }]);\n\n\n// Register Services module. Will add specific services to the module via files in ./Services/*.js files\nangular.module('App.v1.Services', ['ngResource']);\n\n// Register Controllers module. Will add specific services to the module via files in ./Controllers/*.js files\nangular.module('App.v1.Controllers', ['App.v1.Services']);\n\n//// Register Directives module. Will add specific services to the module via files in ./Directives/*.js files\nangular.module('App.v1.Directives', []);\n\nangular.module('App.v1.Filters', []);","'use strict';\n\n//Fetch module (defined in app.js)\nangular.module('App.v1.Services')\n\n\t//******************** SERVICES *****************************************************************\n\t.factory('App.v1.Services.Design', ['$resource', '$filter',\n\t\tfunction ($resource, $filter) {\n\t\t\treturn $resource(\n\t\t\t\t'/api/design/:id',\n\t\t\t\t{},\n\t\t\t\t{\n\t\t\t\t\t'create': { method: 'POST', isArray: false },\n\t\t\t\t\t'list': { method: 'GET', isArray: false },\n\t\t\t\t\t'get': { method: 'GET', isArray: false },\n\t\t\t\t\t'update': { method: 'PATCH' },\n\t\t\t\t\t'delete': { method: 'DELETE' }\n\t\t\t\t}\n\t\t\t);\n\t\t}]);","'use strict';\n\n//Fetch module (defined in app.js)\nangular.module('App.v1.Services')\n\n\t//******************** SERVICES *****************************************************************\n\t.factory('App.v1.Services.Icon', ['$resource', \n\t\tfunction ($resource) {\n\t\t\treturn $resource(\n\t\t\t\t'/api/icon/:id',\n\t\t\t\t{},\n\t\t\t\t{\n\t\t\t\t\t'create': { method: 'POST', isArray: false },\n\t\t\t\t\t'list': { method: 'GET', isArray: true },\n\t\t\t\t\t'get': { method: 'GET', isArray: false },\n\t\t\t\t\t'update': { method: 'PATCH' },\n\t\t\t\t\t'delete': { method: 'DELETE' }\n\t\t\t\t}\n\t\t\t);\n\t\t}]);","'use strict';\n\n//Fetch module (defined in app.js)\nangular.module('App.v1.Services')\n\n //******************** SERVICES *****************************************************************\n .factory('App.v1.Services.Odata.Survey', ['$resource', '$filter',\n function ($resource, $filter) {\n return $resource(\n '/odata/survey/:id',\n {},\n {\n 'query': { method: 'GET', isArray: true }\n }\n );\n }]);","'use strict';\n\n//Fetch module (defined in app.js)\nangular.module('App.v1.Services')\n\n\t//******************** SERVICES *****************************************************************\n\t.factory('App.v1.Services.Response', ['$resource', '$filter',\n\t\tfunction ($resource, $filter) {\n\t\t\treturn $resource(\n\t\t\t\t'/api/response/:id',\n\t\t\t\t{},\n\t\t\t\t{\n\t\t\t\t\t'create': { method: 'POST', isArray: false },\n\t\t\t\t\t'list': { method: 'GET', isArray: false },\n\t\t\t\t\t'get': { method: 'GET', isArray: false },\n\t\t\t\t\t'update': { method: 'PATCH' },\n\t\t\t\t\t'delete': { method: 'DELETE' }\n\t\t\t\t}\n\t\t\t);\n\t\t}]);","'use strict';\n\n//Fetch module (defined in app.js)\nangular.module('App.v1.Services')\n\n\t//******************** SERVICES *****************************************************************\n\t.factory('App.v1.Services.Survey', ['$resource', '$filter',\n\t\tfunction ($resource, $filter) {\n\t\t\treturn $resource(\n\t\t\t\t'/api/survey/:id',\n\t\t\t\t{},\n\t\t\t\t{\n\t\t\t\t\t'create': { method: 'POST', isArray: false },\n\t\t\t\t\t'list': { method: 'GET', isArray: false },\n\t\t\t\t\t'get': { method: 'GET', isArray: false },\n\t\t\t\t\t'count': { method: 'GET', isArray: false, url: '/api/survey/:id/count' },\n\t\t\t\t\t'listResponses': { method: 'GET', isArray: false, url: '/api/survey/:id/responses' },\n\t\t\t\t\t'update': { method: 'PATCH' },\n\t\t\t\t\t'delete': { method: 'DELETE' }\n\t\t\t\t}\n\t\t\t);\n\t\t}]);","'use strict';\n\n//Fetch module (defined in app.js)\nangular.module('App.v1.Services')\n\n\t//******************** SERVICES *****************************************************************\n\t.factory('App.v1.Services.User', ['$resource', '$filter',\n\t\tfunction ($resource, $filter) {\n\t\t\treturn $resource(\n\t\t\t\t'/api/user',\n\t\t\t\t{},\n\t\t\t\t{\n\t\t\t\t\t'get': { method: 'GET', isArray: false }\n\t\t\t\t}\n\t\t\t);\n\t\t}]);","angular.module('App.v1.Filters')\n .filter('tel', function () {\n return function (tel) { \n if (!tel) { return ''; }\n\n var value = tel.toString().trim().replace(/^\\+/, '');\n\n if (value.match(/[^0-9]/)) {\n return tel;\n }\n\n var country, city, number;\n\n switch (value.length) {\n case 10: // +1PPP####### -> C (PPP) ###-####\n country = 1;\n city = value.slice(0, 3);\n number = value.slice(3);\n break;\n\n case 11: // +CPPP####### -> CCC (PP) ###-####\n country = value[0];\n city = value.slice(1, 4);\n number = value.slice(4);\n break;\n\n case 12: // +CCCPP####### -> CCC (PP) ###-####\n country = value.slice(0, 3);\n city = value.slice(3, 5);\n number = value.slice(5);\n break;\n\n default:\n return tel;\n }\n\n if (country == 1) {\n country = \"\";\n }\n\n number = number.slice(0, 3) + '-' + number.slice(3);\n\n return (country + \" (\" + city + \") \" + number).trim();\n };\n });","angular.module('App.v1.Filters')\n .filter('recency', function () {\n return function (input) {\n //Withing 1 minute\n if (input < 60) {\n return \"Seconds\";\n }\n if (input >= 3600 && input < 86400) {\n return Math.floor(input / 3600) + \" Hours\";\n }\n if (input >= 86400) {\n return Math.floor(input / 86400) + \" Days\";\n }\n\n var minutes = Math.floor(input / 60);\n if (minutes == 1) {\n return minutes + \" Minute\";\n }\n return minutes + \" Minutes\";\n };\n });","/* trigger an event when the user hits enter in a text input */\nangular.module('App.v1.Directives')\n .directive('ngEnter', function () {\n return function (scope, element, attrs) {\n element.bind(\"keydown keypress\", function (event) {\n if (event.which === 13) {\n scope.$apply(function () {\n scope.$eval(attrs.ngEnter);\n });\n\n event.preventDefault();\n }\n });\n };\n });\n","'use strict';\n\nangular\n .module('App.v1.Controllers')\n .value('isSignedIn', IsSignedIn)\n .controller(\"App.v1.Root.Controller\",\n [\"$scope\", \"App.v1.Services.User\", \"isSignedIn\",\n function ($scope, userService, isSignedIn) {\n\n $scope.vm = {\n user: {}\n };\n\n //when the page loads grab the user's details\n this.$onInit = function () {\n if (isSignedIn) {\n $scope.vm.user = userService.get();\n }\n }\n }]);"]}