{"version":3,"sources":["jsdelivr-header.js","/npm/localize-country-select@1.0.1/localizeCountrySelect.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,EAAE,sBAAwB,OAAO,GAAG,sBAAwB,WAC3D,IAAI,EAAS,KA8Bb,OA1BA,EAAE,KAAK,CACJ,SAAU,OACV,IAAK,uBACL,QAAS,SAAS,GACZ,EAAK,SACR,EAAO,MAAK,WACJ,EAAE,MACR,IAAI,EAAK,QACd,GAEC,EACA,MAAQ,SAAU,GACjB,IAAI,EAAO,EAAM,aACjB,GAAI,EAAK,CACR,IAAI,EAAW,KAAK,MAAM,GAC1B,GAAI,GAAY,EAAS,MAExB,YADA,QAAQ,MAAM,8BAA+B,EAAS,MAGxD,CAEA,QAAQ,MAAM,8BAA+B,EAE9C,IAGG,IACR","file":"/npm/localize-country-select@1.0.1/localizeCountrySelect.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/localize-country-select@1.0.1/localizeCountrySelect.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","$.countryLocalizeSelect = jQuery.fn.countryLocalizeSelect = function () {\n\tvar $elems = this;\n\n\tvar country = null;\n\n\t$.ajax({\n\t  \tdataType: \"json\",\n\t  \turl: 'https://ipfind.co/me',\t\t\t\t  \n\t  \tsuccess: function(data){\n    \t\tif (data.country){\n    \t\t\t$elems.each(function(){\n\t\t\t\t\tvar $el = $(this);\n\t\t\t\t\t$el.val(data.country);\n\t\t\t\t});\n    \t\t}    \t\t\n    \t},\n    \terror : function (error){\n    \t\tvar resp = error.responseText;\n    \t\tif (resp){\n    \t\t\tvar errorObj = JSON.parse(resp);\n    \t\t\tif (errorObj && errorObj.error){\n    \t\t\t\tconsole.error(\"Could not localise select: \", errorObj.error);\n    \t\t\t\treturn;\n    \t\t\t}\n    \t\t} \n\n    \t\tconsole.error(\"Could not localise select: \", resp);\n    \t\t\t\t\t    \t\t\n    \t}\n\t});\t\n\n\treturn this;\n};"]}