{"version":3,"sources":["jsdelivr-header.js","/npm/angular-auto-focus@1.0.4/angular-auto-focus.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,CCNC,SAAU,EAAM,GACS,mBAAX,QAAyB,OAAO,IACvC,OAAO,CAAE,SAAU,YAAa,SAAU,EAAQ,GAC9C,EAAO,QAAU,EAAQ,EAC7B,IACyB,iBAAX,OACd,OAAO,QAAU,EAAQ,QAAQ,aAE5B,EAAK,KACN,EAAK,GAAK,CAAC,GAGf,EAAK,GAAG,UAAY,EAAQ,EAAK,SAEzC,CAdA,CAcE,MAAM,SAAU,GACd,aAEA,OAAO,EAAQ,OAAO,eAAgB,IACjC,UAAU,YAAa,CAAE,WAAY,SAAU,GAC5C,MAAO,CACH,SAAU,IAEV,KAAM,SAAU,EAAQ,EAAU,GAC9B,IAA4C,IAAxC,EAAO,MAAM,EAAY,WAAsB,CAC/C,IAAI,EAAU,EAAS,GAEvB,GAAS,WACL,EAAO,MAAM,QAAS,GACtB,EAAQ,OACZ,GACJ,CACJ,EAER,GACR","file":"/npm/angular-auto-focus@1.0.4/angular-auto-focus.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.37.0.\n * Original file: /npm/angular-auto-focus@1.0.4/angular-auto-focus.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","(function (root, factory) {\n    if (typeof define === 'function' && define.amd) {\n        define([ 'module', 'angular' ], function (module, angular) {\n            module.exports = factory(angular);\n        });\n    } else if (typeof module === 'object') {\n        module.exports = factory(require('angular'));\n    } else {\n        if (!root.mp) {\n            root.mp = {};\n        }\n\n        root.mp.autoFocus = factory(root.angular);\n    }\n}(this, function (angular) {\n    'use strict';\n\n    return angular.module('mp.autoFocus', [])\n        .directive('autoFocus', [ '$timeout', function ($timeout) {\n            return {\n                restrict: 'A',\n\n                link: function ($scope, $element, $attributes) {\n                    if ($scope.$eval($attributes.autoFocus) !== false) {\n                        var element = $element[0];\n\n                        $timeout(function() {\n                            $scope.$emit('focus', element);\n                            element.focus();\n                        });\n                    }\n                }\n            };\n        } ]);\n}));\n"]}