{ "version": 3, "sources": ["../ui/app/components/directives/mn_search/mn_search_directive.js"], "sourcesContent": ["/*\nCopyright 2017-Present Couchbase, Inc.\n\nUse of this software is governed by the Business Source License included in\nthe file licenses/BSL-Couchbase.txt. As of the Change Date specified in that\nfile, in accordance with the Business Source License, use of this software will\nbe governed by the Apache License, Version 2.0, included in the file\nlicenses/APL2.txt.\n*/\n\nimport angular from 'angular';\nimport template from \"./mn_search.html\";\n\nexport default 'mnSearch';\n\nangular\n .module('mnSearch', [])\n .directive('mnSearch', mnSearchDirective);\n\nfunction mnSearchDirective() {\n\n var mnSearch = {\n restrict: 'AE',\n scope: {\n mnSearch: \"=\",\n mnPlaceholder: \"@\",\n mnHideButton: \"=\",\n mnDisabled: \"=\"\n },\n template,\n controller: controller,\n controllerAs: \"mnSearchCtl\",\n bindToController: true\n };\n\n return mnSearch;\n\n function controller() {\n var vm = this;\n vm.hideFilter = hideFilter;\n vm.showFilter = showFilter;\n\n function hideFilter() {\n vm.mnSearch = \"\";\n vm.showFilterFlag = false;\n }\n function showFilter() {\n vm.showFilterFlag = true;\n vm.focusFilterField = true;\n }\n }\n}\n"], "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAaA,GAAO,6BAAQ,WAEf,UACG,OAAO,WAAY,IACnB,UAAU,WAAY,mBAEzB,4BAA6B,CAE3B,GAAI,UAAW,CACb,SAAU,KACV,MAAO,CACL,SAAU,IACV,cAAe,IACf,aAAc,IACd,WAAY,KAEd,2BACA,WACA,aAAc,cACd,iBAAkB,IAGpB,MAAO,UAEP,qBAAsB,CACpB,GAAI,IAAK,KACT,GAAG,WAAa,WAChB,GAAG,WAAa,WAEhB,qBAAsB,CACpB,GAAG,SAAW,GACd,GAAG,eAAiB,GAFb,gCAIT,qBAAsB,CACpB,GAAG,eAAiB,GACpB,GAAG,iBAAmB,GAFf,iCA3BJ", "names": [] }