mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
1 line
16 KiB
JSON
1 line
16 KiB
JSON
{"ast":null,"code":"import { __extends } from \"tslib\";\nimport { Injectable } from '@angular/core';\nimport { IonicNativePlugin, instanceAvailability, cordovaInstance } from '@ionic-native/core';\nimport { Observable } from 'rxjs';\nimport * as ɵngcc0 from '@angular/core';\nvar InAppBrowserObject = /** @class */function () {\n /**\n * Opens a URL in a new InAppBrowser instance, the current browser instance, or the system browser.\n * @param {string} url The URL to load.\n * @param {string} [target=\"self\"] The target in which to load the URL, an optional parameter that defaults to _self.\n * _self: Opens in the WebView if the URL is in the white list, otherwise it opens in the InAppBrowser.\n * _blank: Opens in the InAppBrowser.\n * _system: Opens in the system's web browser.\n * @param {string | InAppBrowserOptions} [options] Options for the InAppBrowser. Optional, defaulting to: location=yes.\n * The options string must not contain any blank space, and each feature's\n * name/value pairs must be separated by a comma. Feature names are case insensitive.\n */\n function InAppBrowserObject(url, target, options) {\n try {\n if (options && typeof options !== 'string') {\n options = Object.keys(options).map(function (key) {\n return key + \"=\" + options[key];\n }).join(',');\n }\n this._objectInstance = cordova.InAppBrowser.open(url, target, options);\n } catch (e) {\n if (typeof window !== 'undefined') {\n window.open(url, target);\n }\n console.warn('Native: InAppBrowser is not installed or you are running on a browser. Falling back to window.open.');\n }\n }\n InAppBrowserObject.prototype._loadAfterBeforeload = function (strUrl) {\n return cordovaInstance(this, \"_loadAfterBeforeload\", {\n \"sync\": true\n }, arguments);\n };\n InAppBrowserObject.prototype.show = function () {\n return cordovaInstance(this, \"show\", {\n \"sync\": true\n }, arguments);\n };\n InAppBrowserObject.prototype.close = function () {\n return cordovaInstance(this, \"close\", {\n \"sync\": true\n }, arguments);\n };\n InAppBrowserObject.prototype.hide = function () {\n return cordovaInstance(this, \"hide\", {\n \"sync\": true\n }, arguments);\n };\n InAppBrowserObject.prototype.executeScript = function (script) {\n return cordovaInstance(this, \"executeScript\", {}, arguments);\n };\n InAppBrowserObject.prototype.insertCSS = function (css) {\n return cordovaInstance(this, \"insertCSS\", {}, arguments);\n };\n InAppBrowserObject.prototype.on = function (event) {\n var _this = this;\n return function () {\n if (instanceAvailability(_this) === true) {\n return new Observable(function (observer) {\n _this._objectInstance.addEventListener(event, observer.next.bind(observer));\n return function () {\n return _this._objectInstance.removeEventListener(event, observer.next.bind(observer));\n };\n });\n }\n }();\n };\n InAppBrowserObject.prototype.on = function (event) {\n var _this = this;\n return function () {\n if (instanceAvailability(_this) === true) {\n return new Observable(function (observer) {\n _this._objectInstance.addEventListener(event, observer.next.bind(observer));\n return function () {\n return _this._objectInstance.removeEventListener(event, observer.next.bind(observer));\n };\n });\n }\n }();\n };\n return InAppBrowserObject;\n}();\nexport { InAppBrowserObject };\nvar InAppBrowser = /** @class */function (_super) {\n __extends(InAppBrowser, _super);\n function InAppBrowser() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n /**\n * Opens a URL in a new InAppBrowser instance, the current browser instance, or the system browser.\n * @param url {string} The URL to load.\n * @param target {string} The target in which to load the URL, an optional parameter that defaults to _self.\n * @param options {string} Options for the InAppBrowser. Optional, defaulting to: location=yes.\n * The options string must not contain any blank space, and each feature's\n * name/value pairs must be separated by a comma. Feature names are case insensitive.\n * @returns {InAppBrowserObject}\n */\n InAppBrowser.prototype.create = function (url, target, options) {\n return new InAppBrowserObject(url, target, options);\n };\n InAppBrowser.pluginName = \"InAppBrowser\";\n InAppBrowser.plugin = \"cordova-plugin-inappbrowser\";\n InAppBrowser.pluginRef = \"cordova.InAppBrowser\";\n InAppBrowser.repo = \"https://github.com/apache/cordova-plugin-inappbrowser\";\n InAppBrowser.platforms = [\"AmazonFire OS\", \"Android\", \"Browser\", \"iOS\", \"macOS\", \"Windows\"];\n InAppBrowser.ɵfac = /*@__PURE__*/function () {\n var ɵInAppBrowser_BaseFactory;\n return function InAppBrowser_Factory(t) {\n return (ɵInAppBrowser_BaseFactory || (ɵInAppBrowser_BaseFactory = ɵngcc0.ɵɵgetInheritedFactory(InAppBrowser)))(t || InAppBrowser);\n };\n }();\n InAppBrowser.ɵprov = /*@__PURE__*/ɵngcc0.ɵɵdefineInjectable({\n token: InAppBrowser,\n factory: function (t) {\n return InAppBrowser.ɵfac(t);\n }\n });\n (function () {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(InAppBrowser, [{\n type: Injectable\n }], null, null);\n })();\n return InAppBrowser;\n}(IonicNativePlugin);\nexport { InAppBrowser };","map":{"version":3,"names":["__extends","Injectable","IonicNativePlugin","instanceAvailability","cordovaInstance","Observable","ɵngcc0","InAppBrowserObject","url","target","options","Object","keys","map","key","join","_objectInstance","cordova","InAppBrowser","open","e","window","console","warn","prototype","_loadAfterBeforeload","strUrl","arguments","show","close","hide","executeScript","script","insertCSS","css","on","event","_this","observer","addEventListener","next","bind","removeEventListener","_super","apply","create","pluginName","plugin","pluginRef","repo","platforms","ɵfac","ɵInAppBrowser_BaseFactory","InAppBrowser_Factory","t","ɵɵgetInheritedFactory","ɵprov","ɵɵdefineInjectable","token","factory","ngDevMode","ɵsetClassMetadata","type"],"sources":["C:/Users/eudes.inacio/GabineteDigital/gabinete-digital-fo/node_modules/@ionic-native/in-app-browser/__ivy_ngcc__/ngx/index.js"],"sourcesContent":["import { __extends } from \"tslib\";\nimport { Injectable } from '@angular/core';\nimport { IonicNativePlugin, instanceAvailability, cordovaInstance } from '@ionic-native/core';\nimport { Observable } from 'rxjs';\nimport * as ɵngcc0 from '@angular/core';\nvar InAppBrowserObject = /** @class */ (function () {\n /**\n * Opens a URL in a new InAppBrowser instance, the current browser instance, or the system browser.\n * @param {string} url The URL to load.\n * @param {string} [target=\"self\"] The target in which to load the URL, an optional parameter that defaults to _self.\n * _self: Opens in the WebView if the URL is in the white list, otherwise it opens in the InAppBrowser.\n * _blank: Opens in the InAppBrowser.\n * _system: Opens in the system's web browser.\n * @param {string | InAppBrowserOptions} [options] Options for the InAppBrowser. Optional, defaulting to: location=yes.\n * The options string must not contain any blank space, and each feature's\n * name/value pairs must be separated by a comma. Feature names are case insensitive.\n */\n function InAppBrowserObject(url, target, options) {\n try {\n if (options && typeof options !== 'string') {\n options = Object.keys(options)\n .map(function (key) { return key + \"=\" + options[key]; })\n .join(',');\n }\n this._objectInstance = cordova.InAppBrowser.open(url, target, options);\n }\n catch (e) {\n if (typeof window !== 'undefined') {\n window.open(url, target);\n }\n console.warn('Native: InAppBrowser is not installed or you are running on a browser. Falling back to window.open.');\n }\n }\n InAppBrowserObject.prototype._loadAfterBeforeload = function (strUrl) { return cordovaInstance(this, \"_loadAfterBeforeload\", { \"sync\": true }, arguments); };\n InAppBrowserObject.prototype.show = function () { return cordovaInstance(this, \"show\", { \"sync\": true }, arguments); };\n InAppBrowserObject.prototype.close = function () { return cordovaInstance(this, \"close\", { \"sync\": true }, arguments); };\n InAppBrowserObject.prototype.hide = function () { return cordovaInstance(this, \"hide\", { \"sync\": true }, arguments); };\n InAppBrowserObject.prototype.executeScript = function (script) { return cordovaInstance(this, \"executeScript\", {}, arguments); };\n InAppBrowserObject.prototype.insertCSS = function (css) { return cordovaInstance(this, \"insertCSS\", {}, arguments); };\n InAppBrowserObject.prototype.on = function (event) {\n var _this = this;\n return (function () {\n if (instanceAvailability(_this) === true) {\n return new Observable(function (observer) {\n _this._objectInstance.addEventListener(event, observer.next.bind(observer));\n return function () { return _this._objectInstance.removeEventListener(event, observer.next.bind(observer)); };\n });\n }\n })();\n };\n InAppBrowserObject.prototype.on = function (event) {\n var _this = this;\n return (function () {\n if (instanceAvailability(_this) === true) {\n return new Observable(function (observer) {\n _this._objectInstance.addEventListener(event, observer.next.bind(observer));\n return function () { return _this._objectInstance.removeEventListener(event, observer.next.bind(observer)); };\n });\n }\n })();\n };\n return InAppBrowserObject;\n}());\nexport { InAppBrowserObject };\nvar InAppBrowser = /** @class */ (function (_super) {\n __extends(InAppBrowser, _super);\n function InAppBrowser() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n /**\n * Opens a URL in a new InAppBrowser instance, the current browser instance, or the system browser.\n * @param url {string} The URL to load.\n * @param target {string} The target in which to load the URL, an optional parameter that defaults to _self.\n * @param options {string} Options for the InAppBrowser. Optional, defaulting to: location=yes.\n * The options string must not contain any blank space, and each feature's\n * name/value pairs must be separated by a comma. Feature names are case insensitive.\n * @returns {InAppBrowserObject}\n */\n InAppBrowser.prototype.create = function (url, target, options) {\n return new InAppBrowserObject(url, target, options);\n };\n InAppBrowser.pluginName = \"InAppBrowser\";\n InAppBrowser.plugin = \"cordova-plugin-inappbrowser\";\n InAppBrowser.pluginRef = \"cordova.InAppBrowser\";\n InAppBrowser.repo = \"https://github.com/apache/cordova-plugin-inappbrowser\";\n InAppBrowser.platforms = [\"AmazonFire OS\", \"Android\", \"Browser\", \"iOS\", \"macOS\", \"Windows\"];\nInAppBrowser.ɵfac = /*@__PURE__*/ function () { var ɵInAppBrowser_BaseFactory; return function InAppBrowser_Factory(t) { return (ɵInAppBrowser_BaseFactory || (ɵInAppBrowser_BaseFactory = ɵngcc0.ɵɵgetInheritedFactory(InAppBrowser)))(t || InAppBrowser); }; }();\nInAppBrowser.ɵprov = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjectable({ token: InAppBrowser, factory: function (t) { return InAppBrowser.ɵfac(t); } });\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(InAppBrowser, [{\n type: Injectable\n }], null, null); })();\n return InAppBrowser;\n}(IonicNativePlugin));\nexport { InAppBrowser };\n\n"],"mappings":"AAAA,SAASA,SAAS,QAAQ,OAAO;AACjC,SAASC,UAAU,QAAQ,eAAe;AAC1C,SAASC,iBAAiB,EAAEC,oBAAoB,EAAEC,eAAe,QAAQ,oBAAoB;AAC7F,SAASC,UAAU,QAAQ,MAAM;AACjC,OAAO,KAAKC,MAAM,MAAM,eAAe;AACvC,IAAIC,kBAAkB,GAAG,aAAe,YAAY;EAChD;AACJ;AACA;AACA;AACA;AACA;AAC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