{"version":3,"sources":["controllers/tab-filter-controller.js"],"names":["angular","module","controller","$scope","$location","$timeout","onFilterClick","$event","filterName","preventDefault","loading","currentFilter","onInit","hash","replace"],"mappings":";;AAAC,aAAY;AACTA,EAAAA,OAAO,CAACC,MAAR,CAAe,eAAf,EAAgC,EAAhC,EACKC,UADL,CACgB,eADhB,EACiC,CAAC,QAAD,EAAW,WAAX,EAAwB,UAAxB,EACzB,UAAUC,MAAV,EAAkBC,SAAlB,EAA6BC,QAA7B,EAAuC;AACnCF,IAAAA,MAAM,CAACG,aAAP,GAAuB,UAACC,MAAD,EAASC,UAAT,EAAwB;AAC3CD,MAAAA,MAAM,CAACE,cAAP;AACAN,MAAAA,MAAM,CAACO,OAAP,GAAiB,IAAjB;AACAP,MAAAA,MAAM,CAACQ,aAAP,GAAuBH,UAAvB;AAEAH,MAAAA,QAAQ,CAAC,YAAY;AACjBF,QAAAA,MAAM,CAACO,OAAP,GAAiB,KAAjB;AACH,OAFO,EAEL,GAFK,CAAR;AAIH,KATD;;AAWAP,IAAAA,MAAM,CAACS,MAAP,GAAgB,YAAM;AAElB,UAAIR,SAAS,CAACS,IAAV,EAAJ,EAAsB;AAClBV,QAAAA,MAAM,CAACQ,aAAP,GAAuBP,SAAS,CAACS,IAAV,GAAiBC,OAAjB,CAAyB,GAAzB,EAA8B,EAA9B,CAAvB;AACH,OAFD,MAEO;AACHX,QAAAA,MAAM,CAACQ,aAAP,GAAuB,KAAvB;AACH;AAEJ,KARD;AASH,GAtBwB,CADjC;AAyBH,CA1BA,GAAD","sourcesContent":["(function () {\r\n angular.module('tabFilterCtrl', [])\r\n .controller('tabFilterCtrl', ['$scope', '$location', '$timeout',\r\n function ($scope, $location, $timeout) {\r\n $scope.onFilterClick = ($event, filterName) => {\r\n $event.preventDefault();\r\n $scope.loading = true;\r\n $scope.currentFilter = filterName;\r\n\r\n $timeout(function () {\r\n $scope.loading = false;\r\n }, 200);\r\n\r\n }\r\n\r\n $scope.onInit = () => {\r\n \r\n if ($location.hash()) {\r\n $scope.currentFilter = $location.hash().replace('#', '');\r\n } else {\r\n $scope.currentFilter = 'all';\r\n }\r\n\r\n }\r\n }\r\n ])\r\n}())"],"file":"../../controllers/tab-filter-controller.js"}