{"ast":null,"code":"import { checkAvailability } from './decorators/common';\nimport { get } from './util';\nvar AwesomeCordovaNativePlugin = /** @class */function () {\n function AwesomeCordovaNativePlugin() {}\n /**\n * Returns a boolean that indicates whether the plugin is installed\n *\n * @returns {boolean}\n */\n AwesomeCordovaNativePlugin.installed = function () {\n var isAvailable = checkAvailability(this.pluginRef) === true;\n return isAvailable;\n };\n /**\n * Returns the original plugin object\n */\n AwesomeCordovaNativePlugin.getPlugin = function () {\n if (typeof window !== 'undefined') {\n return get(window, this.pluginRef);\n }\n return null;\n };\n /**\n * Returns the plugin's name\n */\n AwesomeCordovaNativePlugin.getPluginName = function () {\n var pluginName = this.pluginName;\n return pluginName;\n };\n /**\n * Returns the plugin's reference\n */\n AwesomeCordovaNativePlugin.getPluginRef = function () {\n var pluginRef = this.pluginRef;\n return pluginRef;\n };\n /**\n * Returns the plugin's install name\n */\n AwesomeCordovaNativePlugin.getPluginInstallName = function () {\n var plugin = this.plugin;\n return plugin;\n };\n /**\n * Returns the plugin's supported platforms\n */\n AwesomeCordovaNativePlugin.getSupportedPlatforms = function () {\n var platform = this.platforms;\n return platform;\n };\n AwesomeCordovaNativePlugin.pluginName = '';\n AwesomeCordovaNativePlugin.pluginRef = '';\n AwesomeCordovaNativePlugin.plugin = '';\n AwesomeCordovaNativePlugin.repo = '';\n AwesomeCordovaNativePlugin.platforms = [];\n AwesomeCordovaNativePlugin.install = '';\n return AwesomeCordovaNativePlugin;\n}();\nexport { AwesomeCordovaNativePlugin };","map":{"version":3,"names":["checkAvailability","get","AwesomeCordovaNativePlugin","installed","isAvailable","pluginRef","getPlugin","window","getPluginName","pluginName","getPluginRef","getPluginInstallName","plugin","getSupportedPlatforms","platform","platforms","repo","install"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@awesome-cordova-plugins/core/awesome-cordova-plugin.js"],"sourcesContent":["import { checkAvailability } from './decorators/common';\nimport { get } from './util';\nvar AwesomeCordovaNativePlugin = /** @class */ (function () {\n function AwesomeCordovaNativePlugin() {\n }\n /**\n * Returns a boolean that indicates whether the plugin is installed\n *\n * @returns {boolean}\n */\n AwesomeCordovaNativePlugin.installed = function () {\n var isAvailable = checkAvailability(this.pluginRef) === true;\n return isAvailable;\n };\n /**\n * Returns the original plugin object\n */\n AwesomeCordovaNativePlugin.getPlugin = function () {\n if (typeof window !== 'undefined') {\n return get(window, this.pluginRef);\n }\n return null;\n };\n /**\n * Returns the plugin's name\n */\n AwesomeCordovaNativePlugin.getPluginName = function () {\n var pluginName = this.pluginName;\n return pluginName;\n };\n /**\n * Returns the plugin's reference\n */\n AwesomeCordovaNativePlugin.getPluginRef = function () {\n var pluginRef = this.pluginRef;\n return pluginRef;\n };\n /**\n * Returns the plugin's install name\n */\n AwesomeCordovaNativePlugin.getPluginInstallName = function () {\n var plugin = this.plugin;\n return plugin;\n };\n /**\n * Returns the plugin's supported platforms\n */\n AwesomeCordovaNativePlugin.getSupportedPlatforms = function () {\n var platform = this.platforms;\n return platform;\n };\n AwesomeCordovaNativePlugin.pluginName = '';\n AwesomeCordovaNativePlugin.pluginRef = '';\n AwesomeCordovaNativePlugin.plugin = '';\n AwesomeCordovaNativePlugin.repo = '';\n AwesomeCordovaNativePlugin.platforms = [];\n AwesomeCordovaNativePlugin.install = '';\n return AwesomeCordovaNativePlugin;\n}());\nexport { AwesomeCordovaNativePlugin };\n"],"mappings":"AAAA,SAASA,iBAAiB,QAAQ,qBAAqB;AACvD,SAASC,GAAG,QAAQ,QAAQ;AAC5B,IAAIC,0BAA0B,GAAG,aAAe,YAAY;EACxD,SAASA,0BAA0BA,CAAA,EAAG,CACtC;EACA;AACJ;AACA;AACA;AACA;EACIA,0BAA0B,CAACC,SAAS,GAAG,YAAY;IAC/C,IAAIC,WAAW,GAAGJ,iBAAiB,CAAC,IAAI,CAACK,SAAS,CAAC,KAAK,IAAI;IAC5D,OAAOD,WAAW;EACtB,CAAC;EACD;AACJ;AACA;EACIF,0BAA0B,CAACI,SAAS,GAAG,YAAY;IAC/C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