Files
doneit-web/.angular/cache/14.2.12/babel-webpack/4762bcd130bd81d4f45d278fc25ea337.json
T

1 line
16 KiB
JSON
Raw Normal View History

2023-06-30 09:54:21 +01:00
{"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