{ "version": 3, "sources": ["../ui/app/components/directives/mn_spinner.js"], "sourcesContent": ["/*\nCopyright 2015-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';\n\nexport default 'mnSpinner';\n\nangular\n .module('mnSpinner', [])\n .directive('mnSpinner', [\"$compile\", mnSpinnerDirective]);\n\nfunction mnSpinnerDirective($compile) {\n var directive = {\n restrict: 'A',\n scope: {\n mnSpinner: '=',\n minHeight: '@',\n opacity: '@'\n },\n link: link\n };\n\n return directive;\n\n function link($scope, $element) {\n var spinner = angular.element(\"
\");\n if ($scope.opacity) {\n spinner.addClass(\"opacity\");\n }\n if ($scope.minHeight) {\n spinner.css({minHeight: $scope.minHeight});\n }\n $element.addClass(\"relative\");\n $element.append($compile(spinner)($scope));\n }\n}\n"], "mappings": "mFAYA,GAAO,oBAAQ,YAEf,UACG,OAAO,YAAa,IACpB,UAAU,YAAa,CAAC,WAAY,qBAEvC,4BAA4B,SAAU,CACpC,GAAI,WAAY,CACd,SAAU,IACV,MAAO,CACL,UAAW,IACX,UAAW,IACX,QAAS,KAEX,MAGF,MAAO,WAEP,cAAc,OAAQ,SAAU,CAC9B,GAAI,SAAU,UAAQ,QAAQ,mDAC9B,AAAI,OAAO,SACT,QAAQ,SAAS,WAEf,OAAO,WACT,QAAQ,IAAI,CAAC,UAAW,OAAO,YAEjC,SAAS,SAAS,YAClB,SAAS,OAAO,SAAS,SAAS,UAtB7B", "names": [] }