{"version":3,"sources":["jsdelivr-header.js","/npm/angular-countries@1.1.5/src/main.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACLA,IAAI,UAAY,QAAQ,yBACpB,YAAc,QAAQ,OAAO,cAAe,IAIhD,YAAY,WAAW,kBAAmB,CAAC,SAAU,SAAU,GAC3D,aAEA,EAAO,UAAY,UAEnB,EAAO,cAAgB,SAAU,EAAc,GAM3C,EAJyB,UAAU,QAAO,SAAU,GAChD,OAAQ,EAAK,OAAS,CAC1B,IAAG,GAGP,CAEJ,IAGA,YAAY,UAAU,eAAe,WACjC,aAcA,MAZqB,CACjB,SAAU,IACV,SAAS,EACT,WAAY,CAAC,SAAU,SAAU,GAC7B,EAAO,UAAY,SACvB,GACA,MAAO,CAAC,YAAa,KACrB,YAAa,SAAU,EAAU,GAC7B,OAAO,EAAO,aAAe,oBACjC,EAIR,IAIA,YAAY,IAAI,CAAC,iBAAkB,SAAU,GACzC,aACA,EAAe,IAAI,qBAAsB,0GAC7C,IAQA,OAAO,QAAU,YACjB,OAAO,YAAc","file":"/npm/angular-countries@1.1.5/src/main.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/angular-countries@1.1.5/src/main.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","/*global angular, window*/\nvar countries = require('./models/countries.js');\nvar ngCountries = angular.module('ngCountries', []);\n\n\n//controller\nngCountries.controller('ngCountriesCtrl', ['$scope', function ($scope) {\n    'use strict';\n\n    $scope.countries = countries;\n\n    $scope.getCountryObj = function (country_name, callback) {\n        // console.log('Selected: ', country_name);\n        var selectedCountryObj = countries.filter(function (elem) {\n            return (elem.name === country_name);\n        })[0];\n\n        callback(selectedCountryObj);\n    };\n\n}]);\n\n\nngCountries.directive('ngcountries', function () {\n    'use strict';\n\n    var ngpassportForm = {\n        restrict: 'E',\n        replace: true,\n        controller: ['$scope', function ($scope) {\n            $scope.countries = countries;\n        }],\n        scope: {templateUrl: '='},\n        templateUrl: function (tElement, tAttrs) {\n            return tAttrs.templateUrl || 'listbootstrap.html';\n        }\n    };\n\n    return ngpassportForm;\n});\n\n\n//define default template\nngCountries.run(['$templateCache', function ($templateCache) {\n    'use strict';\n    $templateCache.put('listbootstrap.html', '<datalist id=\"countrylist\"><option ng-repeat=\"country in countries\" ng-value=\"country.name\"></datalist>');\n}]);\n\n\n\n\n\n\n\nmodule.exports = ngCountries;\nwindow.ngCountries = ngCountries;\n"]}