@icanbwell/composite 1.1261.1 → 1.1262.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/39.index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"39.index.js","mappings":"gJAeA,SAASA,EAAuBC,EAAUC,EAAOC,EAAMC,EAAG,CACtD,GAAID,IAAS,KAAO,CAACC,EAAG,MAAM,IAAI,UAAU,+CAA+C,EAC3F,GAAI,OAAOF,GAAU,WAAaD,IAAaC,GAAS,CAACE,EAAI,CAACF,EAAM,IAAID,CAAQ,EAAG,MAAM,IAAI,UAAU,0EAA0E,EACjL,OAAOE,IAAS,IAAMC,EAAID,IAAS,IAAMC,EAAE,KAAKH,CAAQ,EAAIG,EAAIA,EAAE,MAAQF,EAAM,IAAID,CAAQ,CAChG,C,aClBA,MAAMI,GAAkB,oFAClBC,GAAkBC,GAEfF,G,eCAT,SAASG,GAAgBC,EAAO,CAC9B,IAAIC,EACJ,IAAIC,EAAUL,GAAgB,MAAU,OAAO,EAC3CC,EAAY,MAAU,QAC1B,OAAIE,aAAiB,MACnBF,GAAaG,EAAKD,EAAM,aAAe,MAAQC,IAAO,OAASA,EAAKH,EACpEI,EAAUL,GAAgB,GAErB,CACL,QAAAK,EACA,UAAAJ,CACF,CACF,C,cChBIK,EAEG,MAAMC,EAAQ,CACjB,YAAYC,EAAQ,CAChBF,EAAgB,IAAI,KAAM,MAAM,G,EAChC,0BAAuB,KAAMA,EAAiBE,EAAQ,GAAG,CAC7D,CACA,IAAI,UAAW,CACX,MAAO,CAAC,CAAC,OAAO,kBACpB,CACA,KAAKC,EAAK,E,EACN,0BAAuB,KAAMH,EAAiB,GAAG,EAAE,KAAK,cAAeG,CAAG,CAC9E,CACA,MAAMC,EAAM,E,EACR,0BAAuB,KAAMJ,EAAiB,GAAG,EAAE,KAAK,eAAgBI,CAAI,CAChF,CAUA,OAAOC,EAAkB,GAAO,E,EAC5B,0BAAuB,KAAML,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,UAA2C,CAC9E,IAAIhJ,EAAImJ,EACR,IAAIE,GAAYF,GAAMnJ,EAAK,SAAS,eAAe,6BAA6B,KAAO,MAAQA,IAAO,OAAS,OAASA,EAAG,WAAa,MAAQmJ,IAAO,OAAS,OAASA,EAAG,UAAU,EAAI,EAC1L,OAAKE,IACHA,EAAW,SAAS,cAAc,SAAS,EAE3CA,EAAS,UAAY;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,OAoEhBA,CACT,EACK,eAAe,IAAIJ,EAAwB,GAC9C,eAAe,OAAOA,GAA0BC,EAAqB,E,0BCrHvE,MAAMQ,GAA+B,CAAC,CACpC,aAAAC,EACA,WAAAC,CACF,IAAM,CACJ,MAAMC,G,EAAM,WAAO,EACnB,O,EAAA,cAAU,IAAM,CACd,MAAMC,EAAiBD,EAAI,QACvBC,IACFA,EAAe,WAAaF,EAEhC,EAAG,CAAC,CAAC,G,EACE,QAAI,wBAAyB,CAClC,QAASD,EAAa,QACtB,IAAKE,CACP,CAAC,CACH,C","sources":["webpack://@icanbwell/composite/../../node_modules/@icanbwell/ui-toolkit-v2/_virtual/_tslib.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/frontend-telemetry/lib/core/errors/get-error-messsage.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/frontend-telemetry/lib/core/errors/get-error-details.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/native-bridge/src/plugins/Webview.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/native-bridge/src/utils.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/native-bridge/src/plugins/Biometrics.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/native-bridge/src/plugins/Events.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/native-bridge/src/plugins/Storage.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/native-bridge/src/plugins/Camera.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/native-bridge/src/plugins/Geolocation.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/native-bridge/src/plugins/Print.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/native-bridge/src/plugins/DocumentDownload.js","webpack://@icanbwell/composite/../../node_modules/react-native-permissions/dist/module/results.js","webpack://@icanbwell/composite/../../node_modules/react-native-permissions/dist/module/unsupportedPlatformMethods.js","webpack://@icanbwell/composite/../../node_modules/react-native-permissions/dist/module/methods.js","webpack://@icanbwell/composite/../../node_modules/react-native-permissions/dist/module/permissions.js","webpack://@icanbwell/composite/../../node_modules/react-native-permissions/dist/module/index.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/native-bridge/src/plugins/DocumentPicker.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/native-bridge/src/plugins/PushNotifications.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/native-bridge/src/plugins/DeepLink.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/native-bridge/src/plugins/System.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/native-bridge/src/plugins/Utils.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/native-bridge/src/plugins/ConnectDevices.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/native-bridge/src/plugins/Passkey.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/native-bridge/src/NativeBridge.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/ui-toolkit-v2/web-components/error-web-component.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/ui-toolkit-v2/components/DefaultErrorBoundaryFallback.js"],"sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n\r\nfunction __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\n\nexport { __classPrivateFieldGet };\n","// TODO: Come up with a translation strategy. I18next?\nconst genericMesssage = 'Looks like something went wrong when loading this page. Please try refreshing it.';\nconst getErrorMessage = errorCode => {\n // Custom error messages here\n return genericMesssage;\n};\n\nexport { getErrorMessage };\n","import { BwellError } from './bwell-error.js';\nimport { getErrorMessage } from './get-error-messsage.js';\nimport { ErrorCode } from '@icanbwell/types';\n\nfunction getErrorDetails(error) {\n var _a;\n let message = getErrorMessage(ErrorCode.UNKNOWN);\n let errorCode = ErrorCode.UNKNOWN;\n if (error instanceof BwellError) {\n errorCode = (_a = error.errorCode) !== null && _a !== void 0 ? _a : errorCode;\n message = getErrorMessage();\n }\n return {\n message,\n errorCode\n };\n}\n\nexport { getErrorDetails };\n","var _Webview_events;\nimport { __classPrivateFieldGet, __classPrivateFieldSet } from \"tslib\";\nexport class Webview {\n constructor(events) {\n _Webview_events.set(this, void 0);\n __classPrivateFieldSet(this, _Webview_events, events, \"f\");\n }\n get isWithin() {\n return !!window['ReactNativeWebView'];\n }\n open(url) {\n __classPrivateFieldGet(this, _Webview_events, \"f\").emit('openwebview', url);\n }\n close(data) {\n __classPrivateFieldGet(this, _Webview_events, \"f\").emit('closewebview', data);\n }\n /**\n * Reloads the webview.\n *\n * @param preserveSession - If true, captures sessionStorage entries and the current route, remounts the\n * WebView component, then restores the session state after reload.\n * If false, reloads the web page inside the existing WebView (sessionStorage\n * is naturally preserved since the component is not destroyed).\n * Defaults to false.\n */\n reload(preserveSession = false) {\n __classPrivateFieldGet(this, _Webview_events, \"f\").emit('reloadwebview', preserveSession);\n }\n}\n_Webview_events = new WeakMap();\n//# sourceMappingURL=Webview.js.map","import invoke from '@icanbwell/react-native-webview-invoke/browser';\nconst bindMethod = (plugin, method) => invoke.bind(`${plugin}.${String(method)}`);\nexport const composePluginMethodBinder = (plugin) => (method) => bindMethod(plugin, method);\n//# sourceMappingURL=utils.js.map","var _Biometrics_webview, _Biometrics_isNativeBiometricsAvailable;\nimport { __awaiter, __classPrivateFieldGet, __classPrivateFieldSet } from \"tslib\";\nimport { composePluginMethodBinder } from '../utils';\nconst bindBiometricsMethod = composePluginMethodBinder('biometrics');\n// NOTE: Explicit type annotations required below because `react-native-biometrics` doesn't export associated types.\n// Could be resolved by: https://github.com/SelfLender/react-native-biometrics/issues/234\nexport class Biometrics {\n constructor(webview) {\n _Biometrics_webview.set(this, void 0);\n _Biometrics_isNativeBiometricsAvailable.set(this, bindBiometricsMethod('isAvailable'));\n this.isAvailable = () => __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _Biometrics_webview, \"f\").isWithin) {\n // Within RN context use bridge\n return yield __classPrivateFieldGet(this, _Biometrics_isNativeBiometricsAvailable, \"f\").call(this);\n }\n // TODO: Implement web oriented biometrics check\n return false;\n });\n this.getBiometryInformation = bindBiometricsMethod('getBiometryInformation');\n this.biometricKeysExist = bindBiometricsMethod('biometricKeysExist');\n this.createKeys = bindBiometricsMethod('createKeys');\n this.createSignature = bindBiometricsMethod('createSignature');\n this.deleteKeys = bindBiometricsMethod('deleteKeys');\n this.checkPermission = bindBiometricsMethod('checkPermission');\n this.requestPermission = bindBiometricsMethod('requestPermission');\n __classPrivateFieldSet(this, _Biometrics_webview, webview, \"f\");\n }\n}\n_Biometrics_webview = new WeakMap(), _Biometrics_isNativeBiometricsAvailable = new WeakMap();\n//# sourceMappingURL=Biometrics.js.map","import { composePluginMethodBinder } from '../utils';\nconst bindEventsMethod = composePluginMethodBinder('events');\nexport class Events {\n constructor() {\n this.emit = bindEventsMethod('emit');\n }\n}\n//# sourceMappingURL=Events.js.map","var _Storage_webview, _Storage_setItemNative, _Storage_getItemNative, _Storage_removeItemNative;\nimport { __awaiter, __classPrivateFieldGet, __classPrivateFieldSet } from \"tslib\";\nimport asyncStorage from '@react-native-async-storage/async-storage';\nimport { composePluginMethodBinder } from '../utils';\nconst bindStorageMethod = composePluginMethodBinder('storage');\nexport class Storage {\n constructor(webview) {\n _Storage_webview.set(this, void 0);\n _Storage_setItemNative.set(this, bindStorageMethod('setItem'));\n _Storage_getItemNative.set(this, bindStorageMethod('getItem'));\n _Storage_removeItemNative.set(this, bindStorageMethod('removeItem'));\n __classPrivateFieldSet(this, _Storage_webview, webview, \"f\");\n }\n setItem(key, value) {\n return __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _Storage_webview, \"f\").isWithin) {\n yield __classPrivateFieldGet(this, _Storage_setItemNative, \"f\").call(this, key, value);\n }\n else {\n asyncStorage.setItem(key, value);\n }\n });\n }\n getItem(key) {\n if (__classPrivateFieldGet(this, _Storage_webview, \"f\").isWithin) {\n return __classPrivateFieldGet(this, _Storage_getItemNative, \"f\").call(this, key);\n }\n return asyncStorage.getItem(key);\n }\n removeItem(key) {\n return __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _Storage_webview, \"f\").isWithin) {\n yield __classPrivateFieldGet(this, _Storage_removeItemNative, \"f\").call(this, key);\n }\n else {\n asyncStorage.removeItem(key);\n }\n });\n }\n}\n_Storage_webview = new WeakMap(), _Storage_setItemNative = new WeakMap(), _Storage_getItemNative = new WeakMap(), _Storage_removeItemNative = new WeakMap();\n//# sourceMappingURL=Storage.js.map","var _Camera_webview, _Camera_isNativeCameraAvailable;\nimport { __awaiter, __classPrivateFieldGet, __classPrivateFieldSet } from \"tslib\";\nimport { composePluginMethodBinder } from '../utils';\nconst bindCameraMethod = composePluginMethodBinder('camera');\nexport class Camera {\n constructor(webview) {\n _Camera_webview.set(this, void 0);\n _Camera_isNativeCameraAvailable.set(this, bindCameraMethod('isAvailable'));\n /**\n * Check for camera availability.\n */\n this.isAvailable = () => __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _Camera_webview, \"f\").isWithin) {\n // Within RN context use bridge\n return yield __classPrivateFieldGet(this, _Camera_isNativeCameraAvailable, \"f\").call(this);\n }\n // TODO: Implement web oriented camera check\n return false;\n });\n /**\n * Check camera permission. Response will map to results from `react-native-permissions`.\n * See flow diagrams for operating system dependent results.\n * iOS: https://github.com/zoontek/react-native-permissions#ios-flow\n * Android: https://github.com/zoontek/react-native-permissions#android-flow\n * @returns https://github.com/zoontek/react-native-permissions#permissions-statuses\n */\n this.checkPermission = bindCameraMethod('checkPermission');\n this.checkRollPermission = bindCameraMethod('checkRollPermission');\n /**\n * Request camera permission. Response will map to results from `react-native-permissions`.\n * See flow diagrams for operating system dependent results.\n * iOS: https://github.com/zoontek/react-native-permissions#ios-flow\n * Android: https://github.com/zoontek/react-native-permissions#android-flow\n * @returns https://github.com/zoontek/react-native-permissions#permissions-statuses\n */\n this.requestPermission = bindCameraMethod('requestPermission');\n this.requestRollPermission = bindCameraMethod('requestRollPermission');\n __classPrivateFieldSet(this, _Camera_webview, webview, \"f\");\n }\n}\n_Camera_webview = new WeakMap(), _Camera_isNativeCameraAvailable = new WeakMap();\n//# sourceMappingURL=Camera.js.map","var _Geolocation_webview, _Geolocation_isNativeGeolocationAvailable, _Geolocation_getNativeCurrentPosition, _Geolocation_checkNativeGeolocationPermission, _Geolocation_requestNativeGeolocationPermission;\nimport { __awaiter, __classPrivateFieldGet, __classPrivateFieldSet } from \"tslib\";\nimport { composePluginMethodBinder } from '../utils';\nimport { BwellError } from '@icanbwell/frontend-telemetry';\nimport { ErrorCode } from '@icanbwell/types/frontend-telemetry';\nconst bindGeolocationMethod = composePluginMethodBinder('geolocation');\nexport class Geolocation {\n constructor(webview) {\n _Geolocation_webview.set(this, void 0);\n _Geolocation_isNativeGeolocationAvailable.set(this, bindGeolocationMethod('isAvailable'));\n _Geolocation_getNativeCurrentPosition.set(this, bindGeolocationMethod('getCurrentPosition'));\n _Geolocation_checkNativeGeolocationPermission.set(this, bindGeolocationMethod('checkPermission'));\n _Geolocation_requestNativeGeolocationPermission.set(this, bindGeolocationMethod('requestPermission'));\n /**\n * Check for Geolocation availability.\n *\n * @returns {Promise<boolean>}\n */\n this.isAvailable = () => __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _Geolocation_webview, \"f\").isWithin) {\n // Within RN context use bridge\n return __classPrivateFieldGet(this, _Geolocation_isNativeGeolocationAvailable, \"f\").call(this);\n }\n else {\n return !!navigator.geolocation;\n }\n });\n /**\n * Getting current device position.\n *\n * Both native and web has the same result position data structure.\n * @param options https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/getCurrentPosition\n * @returns {Promise<GeoPosition>} https://developer.mozilla.org/en-US/docs/Web/API/GeolocationPosition\n */\n this.getCurrentPosition = (options) => __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _Geolocation_webview, \"f\").isWithin) {\n // Within RN context use bridge\n return __classPrivateFieldGet(this, _Geolocation_getNativeCurrentPosition, \"f\").call(this, options);\n }\n else {\n try {\n const { state } = yield navigator.permissions.query({ name: 'geolocation' });\n if (state === 'granted' || state === 'prompt') {\n return yield new Promise((resolve, reject) => navigator.geolocation.getCurrentPosition(resolve, reject, options));\n }\n }\n catch (error) {\n throw new BwellError(`Failed to retrieve the permission or the position is unavailable. ${error.message}`, {\n errorCode: ErrorCode.UNKNOWN,\n });\n }\n // The codeblock below will be reached when\n // user denied the permission (state === 'denied')\n throw new BwellError(`Permission Denied.`, {\n errorCode: ErrorCode.INSUFFICIENT_PERMISSIONS,\n });\n }\n });\n /**\n * Check geolocation permission.\n *\n * For native, response will map to results from `react-native-permissions`.\n * See flow diagrams for operating system dependent results.\n * iOS: https://github.com/zoontek/react-native-permissions#ios-flow\n * Android: https://github.com/zoontek/react-native-permissions#android-flow\n * Possible native permission status returns: https://github.com/zoontek/react-native-permissions#permissions-statuses\n *\n * For web, permission will be queried from navigator:\n * https://developer.mozilla.org/en-US/docs/Web/API/Permissions/query\n * It then will return a promise that resolves to PermissionStatus object:\n * https://developer.mozilla.org/en-US/docs/Web/API/PermissionStatus\n *\n * There are some status differences between native and web.\n * Union of the possible returns could be found in {GlobalPermissionStatus}\n *\n * @returns {Promise<GlobalPermissionStatus>}\n */\n this.checkPermission = () => __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _Geolocation_webview, \"f\").isWithin) {\n return __classPrivateFieldGet(this, _Geolocation_checkNativeGeolocationPermission, \"f\").call(this);\n }\n else {\n return (yield navigator.permissions.query({ name: 'geolocation' })).state;\n }\n });\n /**\n * Request geolocation permission.\n *\n * For native, response will map to results from `react-native-permissions`.\n * See flow diagrams for operating system dependent results.\n * iOS: https://github.com/zoontek/react-native-permissions#ios-flow\n * Android: https://github.com/zoontek/react-native-permissions#android-flow\n * Possible native permission status returns: https://github.com/zoontek/react-native-permissions#permissions-statuses\n *\n * For web, permission will be queried from navigator:\n * https://developer.mozilla.org/en-US/docs/Web/API/Permissions/query\n * It then will return a promise that resolves to PermissionStatus object:\n * https://developer.mozilla.org/en-US/docs/Web/API/PermissionStatus\n *\n * There are some status differences between native and web.\n * Union of the possible returns could be found in {GlobalPermissionStatus}\n *\n * @returns {Promise<GlobalPermissionStatus>}\n */\n this.requestPermission = () => __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _Geolocation_webview, \"f\").isWithin) {\n return yield __classPrivateFieldGet(this, _Geolocation_requestNativeGeolocationPermission, \"f\").call(this);\n }\n else {\n const { state } = yield navigator.permissions.query({ name: 'geolocation' });\n if (state === 'granted' || state === 'prompt') {\n yield new Promise((resolve, reject) => navigator.geolocation.getCurrentPosition(resolve, reject));\n }\n return state;\n }\n });\n __classPrivateFieldSet(this, _Geolocation_webview, webview, \"f\");\n }\n}\n_Geolocation_webview = new WeakMap(), _Geolocation_isNativeGeolocationAvailable = new WeakMap(), _Geolocation_getNativeCurrentPosition = new WeakMap(), _Geolocation_checkNativeGeolocationPermission = new WeakMap(), _Geolocation_requestNativeGeolocationPermission = new WeakMap();\n//# sourceMappingURL=Geolocation.js.map","var _Print_webview, _Print_printNative;\nimport { __awaiter, __classPrivateFieldGet, __classPrivateFieldSet } from \"tslib\";\nimport { composePluginMethodBinder } from '../utils';\nimport { BwellError } from '@icanbwell/frontend-telemetry';\nimport { ErrorCode } from '@icanbwell/types/frontend-telemetry';\nimport isAbsoluteUrl from 'is-absolute-url';\nimport printJS from 'print-js';\n// Allow only https URLs to block file://, gopher://, dict:// style SSRF/LFI.\nconst isValidHttpsUrl = (url) => {\n if (!isAbsoluteUrl(url))\n return false;\n try {\n return new URL(url).protocol === 'https:';\n }\n catch (_a) {\n return false;\n }\n};\nconst bindPrintMethod = composePluginMethodBinder('print');\nexport class Print {\n constructor(webview) {\n _Print_webview.set(this, void 0);\n _Print_printNative.set(this, bindPrintMethod('print'));\n __classPrivateFieldSet(this, _Print_webview, webview, \"f\");\n }\n /**\n * The print method only takes 1 of the 2 params.\n * @param {string} options.filePath - Absolute URL (`https://google.com/`) that points to web page with content type of `application/pdf`.\n * @param {string} options.html - HTML string (`<div>Hello World</div>`).\n * @return {boolean} True if print was successful. False otherwise.\n * @todo validate that `filePath` is a PDF via a `fetch` request combined with content type response header inspection.\n */\n print(options) {\n return __awaiter(this, void 0, void 0, function* () {\n if (options.html) {\n if (__classPrivateFieldGet(this, _Print_webview, \"f\").isWithin) {\n // Within RN context use bridge\n return yield __classPrivateFieldGet(this, _Print_printNative, \"f\").call(this, { html: options.html });\n }\n else {\n // web implementation\n printJS({ type: 'raw-html', printable: options.html });\n }\n }\n else if (options.filePath && isValidHttpsUrl(options.filePath)) {\n const safeOptions = { filePath: options.filePath };\n if (__classPrivateFieldGet(this, _Print_webview, \"f\").isWithin) {\n // Within RN context use bridge\n return yield __classPrivateFieldGet(this, _Print_printNative, \"f\").call(this, safeOptions);\n }\n else {\n // web implementation\n printJS({ type: 'pdf', printable: safeOptions.filePath });\n }\n }\n else {\n // Bwell error\n throw new BwellError('Filepath must be an https URL.', { errorCode: ErrorCode.UNKNOWN });\n }\n });\n }\n}\n_Print_webview = new WeakMap(), _Print_printNative = new WeakMap();\n//# sourceMappingURL=Print.js.map","var _DocumentDownload_webview, _DocumentDownload_isNativeFileSystemAvailable, _DocumentDownload_nativeWriteFile, _DocumentDownload_checkNativeFileSystemPermission, _DocumentDownload_requestNativeFileSystemPermission;\nimport { __awaiter, __classPrivateFieldGet, __classPrivateFieldSet } from \"tslib\";\nimport { composePluginMethodBinder } from '../utils';\nimport { BwellError } from '@icanbwell/frontend-telemetry';\nimport { ErrorCode } from '@icanbwell/types/frontend-telemetry';\nconst bindFileSystemMethod = composePluginMethodBinder('documentDownload');\nconst fileTypeToExtensionMap = {\n 'image/jpeg': 'jpeg',\n 'image/png': 'png',\n 'image/svg+xml': 'svg',\n 'application/pdf': 'pdf',\n 'text/calendar': 'ics',\n};\n// Reject path separators and null bytes to prevent traversal like \"../secret\".\nconst sanitizeFilename = (filename) => {\n const trimmed = filename.trim();\n if (!trimmed || trimmed === '.' || trimmed === '..') {\n throw new BwellError('Invalid filename.', { errorCode: ErrorCode.UNKNOWN });\n }\n if (/[\\\\/]/.test(trimmed) || trimmed.includes('\\0')) {\n throw new BwellError('Invalid filename.', { errorCode: ErrorCode.UNKNOWN });\n }\n return trimmed;\n};\n// https://gist.github.com/bgrins/6194623\nconst isDataURL = (dataString) => {\n const regex = /^\\s*data:([a-z]+\\/[a-z0-9\\-+]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,[a-z0-9!$&',()*+,;=\\-._~:@/?%\\s]*\\s*$/i;\n return !!dataString.match(regex);\n};\nconst getFileTypeFromDataURL = (dataURL) => {\n // https://stackoverflow.com/questions/48456149/how-to-detect-the-mime-type-of-data-url/61827887#61827887\n return dataURL.substring(dataURL.indexOf(':') + 1, dataURL.indexOf(';'));\n};\nconst getFileNameWithExtension = (filename, dataURL) => {\n if (!isDataURL(dataURL)) {\n throw new BwellError(`Invalid Data URL Format.`, { errorCode: ErrorCode.UNKNOWN });\n }\n const fileType = getFileTypeFromDataURL(dataURL);\n checkFileTypeValidity(fileType);\n return `${filename}.${fileTypeToExtensionMap[fileType]}`;\n};\nconst checkFileTypeValidity = (fileType) => {\n if (!Object.keys(fileTypeToExtensionMap).includes(fileType)) {\n throw new BwellError(`Invalid or unallowed file type.`, { errorCode: ErrorCode.UNKNOWN });\n }\n};\nexport class DocumentDownload {\n constructor(webview) {\n _DocumentDownload_webview.set(this, void 0);\n _DocumentDownload_isNativeFileSystemAvailable.set(this, bindFileSystemMethod('isAvailable'));\n _DocumentDownload_nativeWriteFile.set(this, bindFileSystemMethod('writeFile'));\n _DocumentDownload_checkNativeFileSystemPermission.set(this, bindFileSystemMethod('checkPermission'));\n _DocumentDownload_requestNativeFileSystemPermission.set(this, bindFileSystemMethod('requestPermission'));\n /**\n * Check for filesystem availability.\n * Web will always be available for document download\n * since it doesn't require any specific permission.\n *\n * @param fileType See fileTypeToExtensionMap variable to view all allowed file types\n * @returns {Promise<boolean>}\n */\n this.isAvailable = (fileType) => __awaiter(this, void 0, void 0, function* () {\n checkFileTypeValidity(fileType);\n if (__classPrivateFieldGet(this, _DocumentDownload_webview, \"f\").isWithin) {\n // Within RN context use bridge\n return __classPrivateFieldGet(this, _DocumentDownload_isNativeFileSystemAvailable, \"f\").call(this, fileType);\n }\n else {\n return true;\n }\n });\n /**\n * Write file (pdf and image) to the system.\n *\n * File name should not include the file extension.\n * The data URL needs to be in Base64 data form, starting with \"data:\".\n *\n * For iOS, images will go to gallery using '@react-native-camera-roll/camera-roll',\n * and pdfs will go to document directory.\n *\n * For Android, images will go to 'DCIM' directory which will be read by device gallery application,\n * and pdfs will go to the downloads directory.\n *\n * For web, there is no specific directory,\n * the file will be stored according to the browser's download directory settings.\n *\n * @param filename File name without extension\n * @param dataURL Base64 data URL (Must start with \"data:\")\n * @returns {Promise<DownloadLocation>}\n *\n */\n this.writeFile = (filename, dataURL) => __awaiter(this, void 0, void 0, function* () {\n const safeFilename = sanitizeFilename(filename);\n if (Object.values(fileTypeToExtensionMap).some((extension) => safeFilename.includes(extension))) {\n throw new BwellError('Filename should not contain extension', { errorCode: ErrorCode.UNKNOWN });\n }\n const fileNameWithExtension = getFileNameWithExtension(safeFilename, dataURL);\n if (__classPrivateFieldGet(this, _DocumentDownload_webview, \"f\").isWithin) {\n // Within RN context use bridge\n return __classPrivateFieldGet(this, _DocumentDownload_nativeWriteFile, \"f\").call(this, fileNameWithExtension, dataURL);\n }\n else {\n const downloadLink = document.createElement('a');\n downloadLink.href = dataURL;\n downloadLink.download = fileNameWithExtension;\n downloadLink.click();\n return 'Files';\n }\n });\n /**\n * Check file system permission.\n *\n * For native, response will map to results from `react-native-permissions`.\n * See flow diagrams for operating system dependent results.\n * iOS: https://github.com/zoontek/react-native-permissions#ios-flow\n * Android: https://github.com/zoontek/react-native-permissions#android-flow\n * Possible native permission status returns: https://github.com/zoontek/react-native-permissions#permissions-statuses\n *\n * For web, response will always be 'granted' because downloading a file on web doesn't need any specific permission.\n *\n * There are some status differences between native and web.\n * Union of the possible returns could be found in {GlobalPermissionStatus}\n *\n * @param fileType See fileTypeToExtensionMap variable to view all allowed file types\n * @returns {Promise<GlobalPermissionStatus>}\n */\n this.checkPermission = (fileType) => __awaiter(this, void 0, void 0, function* () {\n checkFileTypeValidity(fileType);\n if (__classPrivateFieldGet(this, _DocumentDownload_webview, \"f\").isWithin) {\n return __classPrivateFieldGet(this, _DocumentDownload_checkNativeFileSystemPermission, \"f\").call(this, fileType);\n }\n else {\n return 'granted';\n }\n });\n /**\n * Request file system permission.\n *\n * For native, response will map to results from `react-native-permissions`.\n * See flow diagrams for operating system dependent results.\n * iOS: https://github.com/zoontek/react-native-permissions#ios-flow\n * Android: https://github.com/zoontek/react-native-permissions#android-flow\n * Possible native permission status returns: https://github.com/zoontek/react-native-permissions#permissions-statuses\n *\n * For web, response will always be 'granted' because downloading a file on web doesn't need any specific permission.\n *\n * There are some status differences between native and web.\n * Union of the possible returns could be found in {GlobalPermissionStatus}\n *\n * @param fileType See fileTypeToExtensionMap variable to view all allowed file types\n * @returns {Promise<GlobalPermissionStatus>}\n */\n this.requestPermission = (fileType) => __awaiter(this, void 0, void 0, function* () {\n checkFileTypeValidity(fileType);\n if (__classPrivateFieldGet(this, _DocumentDownload_webview, \"f\").isWithin) {\n return yield __classPrivateFieldGet(this, _DocumentDownload_requestNativeFileSystemPermission, \"f\").call(this, fileType);\n }\n else {\n return 'granted';\n }\n });\n __classPrivateFieldSet(this, _DocumentDownload_webview, webview, \"f\");\n }\n}\n_DocumentDownload_webview = new WeakMap(), _DocumentDownload_isNativeFileSystemAvailable = new WeakMap(), _DocumentDownload_nativeWriteFile = new WeakMap(), _DocumentDownload_checkNativeFileSystemPermission = new WeakMap(), _DocumentDownload_requestNativeFileSystemPermission = new WeakMap();\n//# sourceMappingURL=DocumentDownload.js.map","export const RESULTS = Object.freeze({\n UNAVAILABLE: 'unavailable',\n BLOCKED: 'blocked',\n DENIED: 'denied',\n GRANTED: 'granted',\n LIMITED: 'limited'\n});\n//# sourceMappingURL=results.js.map","const IOS_14 = 'Only supported by iOS 14 and above';\nexport async function checkLocationAccuracy() {\n throw new Error(IOS_14);\n}\nexport async function requestLocationAccuracy(_options) {\n throw new Error(IOS_14);\n}\nexport async function openLimitedPhotoLibraryPicker() {\n throw new Error(IOS_14);\n}\n//# sourceMappingURL=unsupportedPlatformMethods.js.map","import { RESULTS } from './results';\nimport { checkLocationAccuracy, openLimitedPhotoLibraryPicker, requestLocationAccuracy } from './unsupportedPlatformMethods';\nasync function check() {\n return RESULTS.UNAVAILABLE;\n}\nasync function checkNotifications() {\n return {\n status: RESULTS.UNAVAILABLE,\n settings: {}\n };\n}\nasync function checkMultiple(permissions) {\n return permissions.reduce((acc, permission) => {\n acc[permission] = RESULTS.UNAVAILABLE;\n return acc;\n }, {});\n}\nexport const methods = {\n check,\n checkLocationAccuracy,\n checkMultiple,\n checkNotifications,\n openLimitedPhotoLibraryPicker,\n openSettings: Promise.reject,\n request: check,\n requestLocationAccuracy,\n requestMultiple: checkMultiple,\n requestNotifications: checkNotifications\n};\n//# sourceMappingURL=methods.js.map","export const PERMISSIONS = Object.freeze({\n ANDROID: {},\n IOS: {},\n WINDOWS: {}\n});\n//# sourceMappingURL=permissions.js.map","import { methods } from './methods';\nimport { PERMISSIONS } from './permissions';\nimport { RESULTS } from './results';\nexport { PERMISSIONS } from './permissions';\nexport { RESULTS } from './results';\nexport * from './types';\nexport const check = methods.check;\nexport const checkLocationAccuracy = methods.checkLocationAccuracy;\nexport const checkMultiple = methods.checkMultiple;\nexport const checkNotifications = methods.checkNotifications;\nexport const openLimitedPhotoLibraryPicker = methods.openLimitedPhotoLibraryPicker;\nexport const openSettings = methods.openSettings;\nexport const request = methods.request;\nexport const requestLocationAccuracy = methods.requestLocationAccuracy;\nexport const requestMultiple = methods.requestMultiple;\nexport const requestNotifications = methods.requestNotifications;\nexport default {\n PERMISSIONS,\n RESULTS,\n check,\n checkLocationAccuracy,\n checkMultiple,\n checkNotifications,\n openLimitedPhotoLibraryPicker,\n openSettings,\n request,\n requestLocationAccuracy,\n requestMultiple,\n requestNotifications\n};\n//# sourceMappingURL=index.js.map","var _DocumentPicker_webview, _DocumentPicker_pickMultipleNative, _DocumentPicker_pickSingleNative, _DocumentPicker_checkPermissionNative, _DocumentPicker_requestPermissionNative;\nimport { __awaiter, __classPrivateFieldGet, __classPrivateFieldSet } from \"tslib\";\nimport { RESULTS } from 'react-native-permissions';\nimport { composePluginMethodBinder } from '../utils';\nconst bindDocumentPickerMethod = composePluginMethodBinder('documentPicker');\nconst toBase64 = (file) => new Promise((resolve, reject) => {\n const reader = new FileReader();\n reader.readAsDataURL(file);\n reader.onload = () => resolve(reader.result.replace('data:', '').replace(/^.+,/, ''));\n reader.onerror = reject;\n});\nconst handlePickWeb = (multi) => new Promise((resolve, reject) => {\n // web implementation\n const input = document.createElement('input');\n input.type = 'file';\n // if multi is true will allow multiple items to be selected\n if (multi === true)\n input.multiple = multi;\n input.onchange = ({ target }) => __awaiter(void 0, void 0, void 0, function* () {\n try {\n resolve(yield Promise.all(Object.values(target.files).map((file) => __awaiter(void 0, void 0, void 0, function* () {\n return ({\n type: file.type,\n name: file.name,\n size: file.size,\n base64: yield toBase64(file),\n });\n }))));\n }\n catch (error) {\n reject(error);\n }\n });\n input.click();\n});\nexport class DocumentPicker {\n constructor(webview) {\n _DocumentPicker_webview.set(this, void 0);\n _DocumentPicker_pickMultipleNative.set(this, bindDocumentPickerMethod('pickMultiple'));\n _DocumentPicker_pickSingleNative.set(this, bindDocumentPickerMethod('pickSingle'));\n _DocumentPicker_checkPermissionNative.set(this, bindDocumentPickerMethod('checkPermission'));\n _DocumentPicker_requestPermissionNative.set(this, bindDocumentPickerMethod('requestPermission'));\n /**\n * allows user to pick multiple items from files system\n */\n this.pickMultiple = () => {\n if (__classPrivateFieldGet(this, _DocumentPicker_webview, \"f\").isWithin) {\n // Within RN context use bridge\n return __classPrivateFieldGet(this, _DocumentPicker_pickMultipleNative, \"f\").call(this);\n }\n else {\n // web implementation\n return handlePickWeb(true);\n }\n };\n /**\n * Check external storage permission. Response will map to results from `react-native-permissions`.\n * See flow diagrams for operating system dependent results.\n * iOS: https://github.com/zoontek/react-native-permissions#ios-flow\n * Android: https://github.com/zoontek/react-native-permissions#android-flow\n * @returns https://github.com/zoontek/react-native-permissions#permissions-statuses\n */\n this.checkPermission = () => __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _DocumentPicker_webview, \"f\").isWithin) {\n // Within RN context use bridge\n return yield __classPrivateFieldGet(this, _DocumentPicker_checkPermissionNative, \"f\").call(this);\n }\n else {\n // web implementation\n return Promise.resolve(RESULTS.GRANTED);\n }\n });\n /**\n * Request external storage permission. Response will map to results from `react-native-permissions`.\n * See flow diagrams for operating system dependent results.\n * iOS: https://github.com/zoontek/react-native-permissions#ios-flow\n * Android: https://github.com/zoontek/react-native-permissions#android-flow\n * @returns https://github.com/zoontek/react-native-permissions#permissions-statuses\n */\n this.requestPermission = () => __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _DocumentPicker_webview, \"f\").isWithin) {\n // Within RN context use bridge\n return yield __classPrivateFieldGet(this, _DocumentPicker_requestPermissionNative, \"f\").call(this);\n }\n else {\n // web implementation\n return Promise.resolve(RESULTS.GRANTED);\n }\n });\n __classPrivateFieldSet(this, _DocumentPicker_webview, webview, \"f\");\n }\n /**\n * only allows user to select one item from file system\n */\n pickSingle() {\n return __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _DocumentPicker_webview, \"f\").isWithin) {\n // Within RN context use bridge\n return __classPrivateFieldGet(this, _DocumentPicker_pickSingleNative, \"f\").call(this);\n }\n else {\n // web implementation\n return (yield handlePickWeb(false))[0];\n }\n });\n }\n}\n_DocumentPicker_webview = new WeakMap(), _DocumentPicker_pickMultipleNative = new WeakMap(), _DocumentPicker_pickSingleNative = new WeakMap(), _DocumentPicker_checkPermissionNative = new WeakMap(), _DocumentPicker_requestPermissionNative = new WeakMap();\n//# sourceMappingURL=DocumentPicker.js.map","var _PushNotifications_webview, _PushNotifications_isNativePushNotificationsAvailable, _PushNotifications_getNativeNotificationsDeviceToken, _PushNotifications_checkNativePushNotificationsPermission, _PushNotifications_requestNativePushNotificationsPermission;\nimport { __awaiter, __classPrivateFieldGet, __classPrivateFieldSet } from \"tslib\";\nimport { composePluginMethodBinder } from '../utils';\nconst bindPushNotificationsMethod = composePluginMethodBinder('pushNotifications');\nexport class PushNotifications {\n constructor(webview) {\n _PushNotifications_webview.set(this, void 0);\n _PushNotifications_isNativePushNotificationsAvailable.set(this, bindPushNotificationsMethod('isAvailable'));\n _PushNotifications_getNativeNotificationsDeviceToken.set(this, bindPushNotificationsMethod('getDeviceToken'));\n _PushNotifications_checkNativePushNotificationsPermission.set(this, bindPushNotificationsMethod('checkPermission'));\n _PushNotifications_requestNativePushNotificationsPermission.set(this, bindPushNotificationsMethod('requestPermission'));\n /**\n * Check for push notification availability.\n *\n * @returns {Promise<boolean>}\n */\n this.isAvailable = () => __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _PushNotifications_webview, \"f\").isWithin) {\n // Within RN context use bridge\n return __classPrivateFieldGet(this, _PushNotifications_isNativePushNotificationsAvailable, \"f\").call(this);\n }\n else {\n // web Push Notifications not supported\n return false;\n }\n });\n this.getDeviceToken = () => __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _PushNotifications_webview, \"f\").isWithin) {\n return __classPrivateFieldGet(this, _PushNotifications_getNativeNotificationsDeviceToken, \"f\").call(this);\n }\n else {\n throw new Error('This method is currently not supported on web');\n }\n });\n /**\n * Check push notification permission.\n *\n * For native, response will map to results from `react-native-permissions`.\n * See flow diagrams for operating system dependent results.\n * iOS: https://github.com/zoontek/react-native-permissions#ios-flow\n * Android: https://github.com/zoontek/react-native-permissions#android-flow\n * Possible native permission status returns: https://github.com/zoontek/react-native-permissions#permissions-statuses\n */\n this.checkPermission = () => __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _PushNotifications_webview, \"f\").isWithin) {\n return __classPrivateFieldGet(this, _PushNotifications_checkNativePushNotificationsPermission, \"f\").call(this);\n }\n else {\n return 'unavailable';\n }\n });\n /**\n * Request push notification permission.\n *\n * For native, response will map to results from `react-native-permissions`.\n * See flow diagrams for operating system dependent results.\n * iOS: https://github.com/zoontek/react-native-permissions#ios-flow\n * Android: https://github.com/zoontek/react-native-permissions#android-flow\n * Possible native permission status returns: https://github.com/zoontek/react-native-permissions#permissions-statuses\n */\n this.requestPermission = () => __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _PushNotifications_webview, \"f\").isWithin) {\n return yield __classPrivateFieldGet(this, _PushNotifications_requestNativePushNotificationsPermission, \"f\").call(this);\n }\n else {\n return 'unavailable';\n }\n });\n __classPrivateFieldSet(this, _PushNotifications_webview, webview, \"f\");\n }\n}\n_PushNotifications_webview = new WeakMap(), _PushNotifications_isNativePushNotificationsAvailable = new WeakMap(), _PushNotifications_getNativeNotificationsDeviceToken = new WeakMap(), _PushNotifications_checkNativePushNotificationsPermission = new WeakMap(), _PushNotifications_requestNativePushNotificationsPermission = new WeakMap();\n//# sourceMappingURL=PushNotifications.js.map","var _DeepLink_webview, _DeepLink_openNativeLink;\nimport { __awaiter, __classPrivateFieldGet, __classPrivateFieldSet } from \"tslib\";\nimport { composePluginMethodBinder } from '../utils';\nconst bindDeepLinkMethod = composePluginMethodBinder('deepLink');\nexport class DeepLink {\n constructor(webview) {\n _DeepLink_webview.set(this, void 0);\n _DeepLink_openNativeLink.set(this, bindDeepLinkMethod('openLink'));\n this.openLink = (deepLinkData, target = '_blank') => __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _DeepLink_webview, \"f\").isWithin) {\n // Within RN context use bridge\n return __classPrivateFieldGet(this, _DeepLink_openNativeLink, \"f\").call(this, deepLinkData, target);\n }\n else {\n window.open(deepLinkData.webUrl, target);\n }\n });\n __classPrivateFieldSet(this, _DeepLink_webview, webview, \"f\");\n }\n}\n_DeepLink_webview = new WeakMap(), _DeepLink_openNativeLink = new WeakMap();\n//# sourceMappingURL=DeepLink.js.map","var _System_webview, _System_openSettingsNative;\nimport { __awaiter, __classPrivateFieldGet, __classPrivateFieldSet } from \"tslib\";\nimport { composePluginMethodBinder } from '../utils';\nconst bindSystemMethod = composePluginMethodBinder('system');\nexport class System {\n constructor(webview) {\n _System_webview.set(this, void 0);\n _System_openSettingsNative.set(this, bindSystemMethod('openSettings'));\n /**\n * allows user to open the apps settings on mobile device.\n * nothing to do on web implementation as there is no app settings.\n */\n this.openSettings = () => __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _System_webview, \"f\").isWithin) {\n // Within RN context use bridge\n return yield __classPrivateFieldGet(this, _System_openSettingsNative, \"f\").call(this);\n }\n // nothing to do on web\n });\n __classPrivateFieldSet(this, _System_webview, webview, \"f\");\n }\n}\n_System_webview = new WeakMap(), _System_openSettingsNative = new WeakMap();\n//# sourceMappingURL=System.js.map","var _Utils_webview, _Utils_getPlatformNative, _Utils_getBundleId;\nimport { __awaiter, __classPrivateFieldGet, __classPrivateFieldSet } from \"tslib\";\nimport { composePluginMethodBinder } from '../utils';\nconst bindUtilsMethod = composePluginMethodBinder('utils');\nexport class Utils {\n constructor(webview) {\n _Utils_webview.set(this, void 0);\n _Utils_getPlatformNative.set(this, bindUtilsMethod('getPlatform'));\n _Utils_getBundleId.set(this, bindUtilsMethod('getBundleId'));\n __classPrivateFieldSet(this, _Utils_webview, webview, \"f\");\n }\n getPlatform() {\n return __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _Utils_webview, \"f\").isWithin) {\n return __classPrivateFieldGet(this, _Utils_getPlatformNative, \"f\").call(this);\n }\n return 'web';\n });\n }\n getBundleId() {\n return __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _Utils_webview, \"f\").isWithin) {\n return __classPrivateFieldGet(this, _Utils_getBundleId, \"f\").call(this);\n }\n console.warn('bundleId not available on the web');\n });\n }\n}\n_Utils_webview = new WeakMap(), _Utils_getPlatformNative = new WeakMap(), _Utils_getBundleId = new WeakMap();\n//# sourceMappingURL=Utils.js.map","var _ConnectDevices_webview, _ConnectDevices_startSession, _ConnectDevices_syncData, _ConnectDevices_refreshData, _ConnectDevices_endSession, _ConnectDevices_getCurrentUser, _ConnectDevices_checkPermissions, _ConnectDevices_isNative;\nimport { __awaiter, __classPrivateFieldGet, __classPrivateFieldSet } from \"tslib\";\nimport { composePluginMethodBinder } from '../utils';\nconst bindMethod = composePluginMethodBinder('connectDevices');\nexport class ConnectDevices {\n constructor(webview) {\n _ConnectDevices_webview.set(this, void 0);\n _ConnectDevices_startSession.set(this, bindMethod('startSession'));\n _ConnectDevices_syncData.set(this, bindMethod('syncData'));\n _ConnectDevices_refreshData.set(this, bindMethod('refreshData'));\n _ConnectDevices_endSession.set(this, bindMethod('endSession'));\n _ConnectDevices_getCurrentUser.set(this, bindMethod('getCurrentUser'));\n _ConnectDevices_checkPermissions.set(this, bindMethod('checkPermissions'));\n _ConnectDevices_isNative.set(this, () => __classPrivateFieldGet(this, _ConnectDevices_webview, \"f\").isWithin);\n this.startSession = (user) => __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _ConnectDevices_isNative, \"f\").call(this))\n return __classPrivateFieldGet(this, _ConnectDevices_startSession, \"f\").call(this, user);\n });\n this.syncData = (daysToFetch = 30) => __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _ConnectDevices_isNative, \"f\").call(this))\n return __classPrivateFieldGet(this, _ConnectDevices_syncData, \"f\").call(this, daysToFetch);\n return [];\n });\n this.refreshData = (daysToFetch = 30) => __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _ConnectDevices_isNative, \"f\").call(this))\n return __classPrivateFieldGet(this, _ConnectDevices_refreshData, \"f\").call(this, daysToFetch);\n return [];\n });\n this.endSession = () => __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _ConnectDevices_isNative, \"f\").call(this))\n return __classPrivateFieldGet(this, _ConnectDevices_endSession, \"f\").call(this);\n });\n this.getCurrentUser = () => __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _ConnectDevices_isNative, \"f\").call(this))\n return __classPrivateFieldGet(this, _ConnectDevices_getCurrentUser, \"f\").call(this);\n return null;\n });\n this.checkPermissions = () => __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _ConnectDevices_isNative, \"f\").call(this))\n return __classPrivateFieldGet(this, _ConnectDevices_checkPermissions, \"f\").call(this);\n return false;\n });\n __classPrivateFieldSet(this, _ConnectDevices_webview, webview, \"f\");\n }\n}\n_ConnectDevices_webview = new WeakMap(), _ConnectDevices_startSession = new WeakMap(), _ConnectDevices_syncData = new WeakMap(), _ConnectDevices_refreshData = new WeakMap(), _ConnectDevices_endSession = new WeakMap(), _ConnectDevices_getCurrentUser = new WeakMap(), _ConnectDevices_checkPermissions = new WeakMap(), _ConnectDevices_isNative = new WeakMap();\n//# sourceMappingURL=ConnectDevices.js.map","var _Passkey_webview, _Passkey_nativeIsSupported, _Passkey_nativeCreate, _Passkey_nativeGet;\nimport { __awaiter, __classPrivateFieldGet, __classPrivateFieldSet } from \"tslib\";\nimport { composePluginMethodBinder } from '../utils';\nconst bindPasskeyMethod = composePluginMethodBinder('passkey');\nexport class Passkey {\n constructor(webview) {\n _Passkey_webview.set(this, void 0);\n _Passkey_nativeIsSupported.set(this, bindPasskeyMethod('isSupported'));\n _Passkey_nativeCreate.set(this, bindPasskeyMethod('create'));\n _Passkey_nativeGet.set(this, bindPasskeyMethod('get'));\n this.isSupported = () => __awaiter(this, void 0, void 0, function* () {\n if (!__classPrivateFieldGet(this, _Passkey_webview, \"f\").isWithin) {\n return false;\n }\n return __classPrivateFieldGet(this, _Passkey_nativeIsSupported, \"f\").call(this);\n });\n this.create = (request) => __awaiter(this, void 0, void 0, function* () {\n if (!__classPrivateFieldGet(this, _Passkey_webview, \"f\").isWithin) {\n throw new Error('Native passkey bridge is only available within a native WebView.');\n }\n return __classPrivateFieldGet(this, _Passkey_nativeCreate, \"f\").call(this, request);\n });\n this.get = (request) => __awaiter(this, void 0, void 0, function* () {\n if (!__classPrivateFieldGet(this, _Passkey_webview, \"f\").isWithin) {\n throw new Error('Native passkey bridge is only available within a native WebView.');\n }\n return __classPrivateFieldGet(this, _Passkey_nativeGet, \"f\").call(this, request);\n });\n __classPrivateFieldSet(this, _Passkey_webview, webview, \"f\");\n }\n}\n_Passkey_webview = new WeakMap(), _Passkey_nativeIsSupported = new WeakMap(), _Passkey_nativeCreate = new WeakMap(), _Passkey_nativeGet = new WeakMap();\n//# sourceMappingURL=Passkey.js.map","import { Webview, Biometrics, Events, Storage, Camera, Print, DocumentDownload, DocumentPicker, System, Geolocation, PushNotifications, DeepLink, Utils, ConnectDevices, Passkey, } from './plugins';\nexport class NativeBridge {\n constructor() {\n // Subclasses\n // Restrict exposed `events` type to only emittable events\n this.events = new Events();\n this.webview = new Webview(this.events);\n this.biometrics = new Biometrics(this.webview);\n this.storage = new Storage(this.webview);\n this.camera = new Camera(this.webview);\n this.geolocation = new Geolocation(this.webview);\n this.print = new Print(this.webview);\n this.documentDownload = new DocumentDownload(this.webview);\n this.documentPicker = new DocumentPicker(this.webview);\n this.pushNotifications = new PushNotifications(this.webview);\n this.deepLink = new DeepLink(this.webview);\n this.utils = new Utils(this.webview);\n this.system = new System(this.webview);\n this.connectDevices = new ConnectDevices(this.webview);\n this.passkey = new Passkey(this.webview);\n }\n // General Methods\n /**\n * Reloads the webview with configurable behavior.\n *\n * @param preserveSession - If true, captures sessionStorage entries and the current route, remounts the\n * WebView component, then restores the session state after reload.\n * If false, reloads the web page inside the existing WebView (sessionStorage\n * is naturally preserved since the component is not destroyed).\n * Defaults to false.\n */\n reloadView(preserveSession = false) {\n if (this.webview.isWithin) {\n this.webview.reload(preserveSession);\n }\n else {\n // Assume we're in a web context\n globalThis.location.reload();\n }\n }\n}\nexport const nativeBridge = new NativeBridge();\n//# sourceMappingURL=NativeBridge.js.map","import { __classPrivateFieldGet } from '../_virtual/_tslib.js';\nimport { getErrorDetails } from '@icanbwell/frontend-telemetry';\nimport { nativeBridge } from '@icanbwell/native-bridge';\n\nvar _ErrorPageWebComponent_instances, _ErrorPageWebComponent_setValue, _ErrorPageWebComponent_template;\nconst ERROR_COMPONENT_TAG_NAME = 'bwell-error-component';\nclass ErrorPageWebComponent extends HTMLElement {\n static get observedAttributes() {\n return ['message'];\n }\n constructor() {\n super();\n _ErrorPageWebComponent_instances.add(this);\n this.attachShadow({\n mode: 'open'\n });\n }\n connectedCallback() {\n var _a, _b;\n const {\n message: defaultMessage\n } = getErrorDetails();\n const template = __classPrivateFieldGet(this, _ErrorPageWebComponent_instances, \"m\", _ErrorPageWebComponent_template).call(this);\n this.shadowRoot.appendChild(template);\n __classPrivateFieldGet(this, _ErrorPageWebComponent_instances, \"m\", _ErrorPageWebComponent_setValue).call(this, 'message', this.getAttribute('message') || defaultMessage);\n (_b = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.getElementById('refresh')) === null || _b === void 0 ? void 0 : _b.addEventListener('click', () => {\n this.resetError();\n });\n }\n attributeChangedCallback(name, _oldValue, newValue) {\n __classPrivateFieldGet(this, _ErrorPageWebComponent_instances, \"m\", _ErrorPageWebComponent_setValue).call(this, name, newValue);\n }\n resetError() {\n // default behavior that can be overridden\n nativeBridge.reloadView();\n }\n}\n_ErrorPageWebComponent_instances = new WeakSet(), _ErrorPageWebComponent_setValue = function _ErrorPageWebComponent_setValue(name, value) {\n var _a;\n const el = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.getElementById(name);\n if (el) {\n el.innerHTML = value;\n }\n}, _ErrorPageWebComponent_template = function _ErrorPageWebComponent_template() {\n var _a, _b;\n let template = (_b = (_a = document.getElementById('bwell-custom-error-template')) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.cloneNode(true);\n if (!template) {\n template = document.createElement('article');\n // TODO: Do an accessibility review. Does body present any challenges?\n template.innerHTML = `\n <style>\n :host {\n --background: #FFFFFF;\n --messageTextColor: #6F6F6F;\n }\n article {\n background: var(--background);\n font-family: regular,sans-serif;\n font-size: 16px;\n font-style: normal;\n font-weight: 400;\n letter-spacing: 0px;\n line-height: 20px;\n margin: auto;\n max-width: 340px;\n text-align: center;\n }\n h3 {\n color: #2E3586;\n font-size: 28px;\n font-style: normal;\n font-weight: 400;\n line-height: 34px;\n }\n p {\n color: var(--messageTextColor);\n }\n button {\n background: #2E3586;\n border-radius: 5px;\n height: 55px;\n width: 200px;\n border: none;\n cursor: pointer;\n }\n button>span {\n color: #FFFFFF;\n font-size: 18px;\n font-style: normal;\n font-weight: 700;\n line-height: 22px;\n }\n </style>\n <header>\n <svg width=\"100\" height=\"100\" viewBox=\"0 0 100 100\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <g clip-path=\"url(#clip0_645_19)\">\n <path d=\"M98.1598 74.7658L62.8319 11.0741C60.1952 6.38657 55.3902 3.51562 50 3.51562C44.6099 3.51562 39.8049 6.38657 37.1681 11.0741L1.84023 74.7658C-0.679762 79.3358 -0.621016 84.7855 2.07445 89.2967C4.71117 93.8087 9.45742 96.5042 14.6721 96.5042H85.3279C90.5426 96.5042 95.2889 93.8087 97.9256 89.2967C100.621 84.7855 100.68 79.3358 98.1598 74.7658Z\" fill=\"#FDBF00\"/>\n <path d=\"M97.9255 89.2967C95.2888 93.8087 90.5433 96.5042 85.3279 96.5042H50V3.51562C55.3902 3.51562 60.1952 6.38657 62.8319 11.0741L98.1598 74.7658C100.68 79.3358 100.621 84.7855 97.9255 89.2967Z\" fill=\"#FF9F00\"/>\n <path d=\"M41.2109 20.3325V64.2778H58.7891V20.3325H41.2109Z\" fill=\"#5A5A5A\"/>\n <path d=\"M50 70.137C45.1363 70.137 41.2109 74.0623 41.2109 78.926C41.2109 83.789 45.1363 87.7151 50 87.7151C54.8637 87.7151 58.7891 83.789 58.7891 78.926C58.7891 74.0623 54.8637 70.137 50 70.137Z\" fill=\"#5A5A5A\"/>\n <path d=\"M58.7891 78.926C58.7891 83.789 54.8637 87.7151 50 87.7151V70.137C54.8637 70.137 58.7891 74.0623 58.7891 78.926Z\" fill=\"#444444\"/>\n <path d=\"M50 20.3323H58.7891V64.2776H50V20.3323Z\" fill=\"#444444\"/>\n </g>\n <defs>\n <clipPath id=\"clip0_645_19\">\n <rect width=\"100\" height=\"100\" fill=\"white\"/>\n </clipPath>\n </defs>\n </svg>\n </header>\n <h3>Oops!</h3>\n <p id=\"message\">Looks like something went wrong when loading this page. Please try refreshing it.</p>\n <button id=\"refresh\">\n <span>Refresh</span>\n </button>\n `;\n }\n return template;\n};\nif (!customElements.get(ERROR_COMPONENT_TAG_NAME)) {\n customElements.define(ERROR_COMPONENT_TAG_NAME, ErrorPageWebComponent);\n}\n\nexport { ERROR_COMPONENT_TAG_NAME, ErrorPageWebComponent };\n","import { jsx } from 'react/jsx-runtime';\nimport { useRef, useEffect } from 'react';\n\nconst DefaultErrorBoundaryFallback = ({\n errorDetails,\n resetError\n}) => {\n const ref = useRef();\n useEffect(() => {\n const errorComponent = ref.current;\n if (errorComponent) {\n errorComponent.resetError = resetError;\n }\n }, []);\n return jsx(\"bwell-error-component\", {\n message: errorDetails.message,\n ref: ref\n });\n};\n\nexport { DefaultErrorBoundaryFallback };\n"],"names":["__classPrivateFieldGet","receiver","state","kind","f","genericMesssage","getErrorMessage","errorCode","getErrorDetails","error","_a","message","_Webview_events","Webview","events","url","data","preserveSession","bindMethod","plugin","method","composePluginMethodBinder","_Biometrics_webview","_Biometrics_isNativeBiometricsAvailable","bindBiometricsMethod","Biometrics","webview","bindEventsMethod","Events","_Storage_webview","_Storage_setItemNative","_Storage_getItemNative","_Storage_removeItemNative","bindStorageMethod","Storage","key","value","_Camera_webview","_Camera_isNativeCameraAvailable","bindCameraMethod","Camera","_Geolocation_webview","_Geolocation_isNativeGeolocationAvailable","_Geolocation_getNativeCurrentPosition","_Geolocation_checkNativeGeolocationPermission","_Geolocation_requestNativeGeolocationPermission","bindGeolocationMethod","Geolocation","options","resolve","reject","_Print_webview","_Print_printNative","isValidHttpsUrl","bindPrintMethod","Print","safeOptions","_DocumentDownload_webview","_DocumentDownload_isNativeFileSystemAvailable","_DocumentDownload_nativeWriteFile","_DocumentDownload_checkNativeFileSystemPermission","_DocumentDownload_requestNativeFileSystemPermission","bindFileSystemMethod","fileTypeToExtensionMap","sanitizeFilename","filename","trimmed","isDataURL","dataString","regex","getFileTypeFromDataURL","dataURL","getFileNameWithExtension","fileType","checkFileTypeValidity","DocumentDownload","safeFilename","extension","fileNameWithExtension","downloadLink","RESULTS","IOS_14","checkLocationAccuracy","requestLocationAccuracy","_options","openLimitedPhotoLibraryPicker","check","checkNotifications","checkMultiple","permissions","acc","permission","methods","PERMISSIONS","openSettings","request","requestMultiple","requestNotifications","_DocumentPicker_webview","_DocumentPicker_pickMultipleNative","_DocumentPicker_pickSingleNative","_DocumentPicker_checkPermissionNative","_DocumentPicker_requestPermissionNative","bindDocumentPickerMethod","toBase64","file","reader","handlePickWeb","multi","input","target","DocumentPicker","_PushNotifications_webview","_PushNotifications_isNativePushNotificationsAvailable","_PushNotifications_getNativeNotificationsDeviceToken","_PushNotifications_checkNativePushNotificationsPermission","_PushNotifications_requestNativePushNotificationsPermission","bindPushNotificationsMethod","PushNotifications","_DeepLink_webview","_DeepLink_openNativeLink","bindDeepLinkMethod","DeepLink","deepLinkData","_System_webview","_System_openSettingsNative","bindSystemMethod","System","_Utils_webview","_Utils_getPlatformNative","_Utils_getBundleId","bindUtilsMethod","Utils","_ConnectDevices_webview","_ConnectDevices_startSession","_ConnectDevices_syncData","_ConnectDevices_refreshData","_ConnectDevices_endSession","_ConnectDevices_getCurrentUser","_ConnectDevices_checkPermissions","_ConnectDevices_isNative","ConnectDevices","user","daysToFetch","_Passkey_webview","_Passkey_nativeIsSupported","_Passkey_nativeCreate","_Passkey_nativeGet","bindPasskeyMethod","Passkey","NativeBridge","nativeBridge","_ErrorPageWebComponent_instances","_ErrorPageWebComponent_setValue","_ErrorPageWebComponent_template","ERROR_COMPONENT_TAG_NAME","ErrorPageWebComponent","_b","defaultMessage","template","name","_oldValue","newValue","el","DefaultErrorBoundaryFallback","errorDetails","resetError","ref","errorComponent"],"sourceRoot":""}
1
+ {"version":3,"file":"39.index.js","mappings":"gJAeA,SAASA,EAAuBC,EAAUC,EAAOC,EAAMC,EAAG,CACtD,GAAID,IAAS,KAAO,CAACC,EAAG,MAAM,IAAI,UAAU,+CAA+C,EAC3F,GAAI,OAAOF,GAAU,WAAaD,IAAaC,GAAS,CAACE,EAAI,CAACF,EAAM,IAAID,CAAQ,EAAG,MAAM,IAAI,UAAU,0EAA0E,EACjL,OAAOE,IAAS,IAAMC,EAAID,IAAS,IAAMC,EAAE,KAAKH,CAAQ,EAAIG,EAAIA,EAAE,MAAQF,EAAM,IAAID,CAAQ,CAChG,C,aClBA,MAAMI,GAAkB,oFAClBC,GAAkBC,GAEfF,G,eCAT,SAASG,GAAgBC,EAAO,CAC9B,IAAIC,EACJ,IAAIC,EAAUL,GAAgB,MAAU,OAAO,EAC3CC,EAAY,MAAU,QAC1B,OAAIE,aAAiB,MACnBF,GAAaG,EAAKD,EAAM,aAAe,MAAQC,IAAO,OAASA,EAAKH,EACpEI,EAAUL,GAAgB,GAErB,CACL,QAAAK,EACA,UAAAJ,CACF,CACF,C,cChBIK,EAEG,MAAMC,EAAQ,CACjB,YAAYC,EAAQ,CAChBF,EAAgB,IAAI,KAAM,MAAM,KAChC,0BAAuB,KAAMA,EAAiBE,EAAQ,GAAG,CAC7D,CACA,IAAI,UAAW,CACX,MAAO,CAAC,CAAC,OAAO,kBACpB,CACA,KAAKC,EAAK,IACN,0BAAuB,KAAMH,EAAiB,GAAG,EAAE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,6BAA6B,KAAO,MAAQA,IAAO,OAAS,OAASA,EAAG,WAAa,MAAQmJ,IAAO,OAAS,OAASA,EAAG,UAAU,EAAI,EAC1L,OAAKE,IACHA,EAAW,SAAS,cAAc,SAAS,EAE3CA,EAAS,UAAY;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,OAoEhBA,CACT,EACK,eAAe,IAAIJ,EAAwB,GAC9C,eAAe,OAAOA,GAA0BC,EAAqB,E,0BCrHvE,MAAMQ,GAA+B,CAAC,CACpC,aAAAC,EACA,WAAAC,CACF,IAAM,CACJ,MAAMC,KAAM,WAAO,EACnB,uBAAU,IAAM,CACd,MAAMC,EAAiBD,EAAI,QACvBC,IACFA,EAAe,WAAaF,EAEhC,EAAG,CAAC,CAAC,KACE,QAAI,wBAAyB,CAClC,QAASD,EAAa,QACtB,IAAKE,CACP,CAAC,CACH,C","sources":["webpack://@icanbwell/composite/../../node_modules/@icanbwell/ui-toolkit-v2/_virtual/_tslib.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/frontend-telemetry/lib/core/errors/get-error-messsage.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/frontend-telemetry/lib/core/errors/get-error-details.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/native-bridge/src/plugins/Webview.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/native-bridge/src/utils.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/native-bridge/src/plugins/Biometrics.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/native-bridge/src/plugins/Events.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/native-bridge/src/plugins/Storage.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/native-bridge/src/plugins/Camera.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/native-bridge/src/plugins/Geolocation.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/native-bridge/src/plugins/Print.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/native-bridge/src/plugins/DocumentDownload.js","webpack://@icanbwell/composite/../../node_modules/react-native-permissions/dist/module/results.js","webpack://@icanbwell/composite/../../node_modules/react-native-permissions/dist/module/unsupportedPlatformMethods.js","webpack://@icanbwell/composite/../../node_modules/react-native-permissions/dist/module/methods.js","webpack://@icanbwell/composite/../../node_modules/react-native-permissions/dist/module/permissions.js","webpack://@icanbwell/composite/../../node_modules/react-native-permissions/dist/module/index.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/native-bridge/src/plugins/DocumentPicker.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/native-bridge/src/plugins/PushNotifications.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/native-bridge/src/plugins/DeepLink.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/native-bridge/src/plugins/System.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/native-bridge/src/plugins/Utils.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/native-bridge/src/plugins/ConnectDevices.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/native-bridge/src/plugins/Passkey.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/native-bridge/src/NativeBridge.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/ui-toolkit-v2/web-components/error-web-component.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/ui-toolkit-v2/components/DefaultErrorBoundaryFallback.js"],"sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n\r\nfunction __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\n\nexport { __classPrivateFieldGet };\n","// TODO: Come up with a translation strategy. I18next?\nconst genericMesssage = 'Looks like something went wrong when loading this page. Please try refreshing it.';\nconst getErrorMessage = errorCode => {\n // Custom error messages here\n return genericMesssage;\n};\n\nexport { getErrorMessage };\n","import { BwellError } from './bwell-error.js';\nimport { getErrorMessage } from './get-error-messsage.js';\nimport { ErrorCode } from '@icanbwell/types';\n\nfunction getErrorDetails(error) {\n var _a;\n let message = getErrorMessage(ErrorCode.UNKNOWN);\n let errorCode = ErrorCode.UNKNOWN;\n if (error instanceof BwellError) {\n errorCode = (_a = error.errorCode) !== null && _a !== void 0 ? _a : errorCode;\n message = getErrorMessage();\n }\n return {\n message,\n errorCode\n };\n}\n\nexport { getErrorDetails };\n","var _Webview_events;\nimport { __classPrivateFieldGet, __classPrivateFieldSet } from \"tslib\";\nexport class Webview {\n constructor(events) {\n _Webview_events.set(this, void 0);\n __classPrivateFieldSet(this, _Webview_events, events, \"f\");\n }\n get isWithin() {\n return !!window['ReactNativeWebView'];\n }\n open(url) {\n __classPrivateFieldGet(this, _Webview_events, \"f\").emit('openwebview', url);\n }\n close(data) {\n __classPrivateFieldGet(this, _Webview_events, \"f\").emit('closewebview', data);\n }\n /**\n * Reloads the webview.\n *\n * @param preserveSession - If true, captures sessionStorage entries and the current route, remounts the\n * WebView component, then restores the session state after reload.\n * If false, reloads the web page inside the existing WebView (sessionStorage\n * is naturally preserved since the component is not destroyed).\n * Defaults to false.\n */\n reload(preserveSession = false) {\n __classPrivateFieldGet(this, _Webview_events, \"f\").emit('reloadwebview', preserveSession);\n }\n}\n_Webview_events = new WeakMap();\n//# sourceMappingURL=Webview.js.map","import invoke from '@icanbwell/react-native-webview-invoke/browser';\nconst bindMethod = (plugin, method) => invoke.bind(`${plugin}.${String(method)}`);\nexport const composePluginMethodBinder = (plugin) => (method) => bindMethod(plugin, method);\n//# sourceMappingURL=utils.js.map","var _Biometrics_webview, _Biometrics_isNativeBiometricsAvailable;\nimport { __awaiter, __classPrivateFieldGet, __classPrivateFieldSet } from \"tslib\";\nimport { composePluginMethodBinder } from '../utils';\nconst bindBiometricsMethod = composePluginMethodBinder('biometrics');\n// NOTE: Explicit type annotations required below because `react-native-biometrics` doesn't export associated types.\n// Could be resolved by: https://github.com/SelfLender/react-native-biometrics/issues/234\nexport class Biometrics {\n constructor(webview) {\n _Biometrics_webview.set(this, void 0);\n _Biometrics_isNativeBiometricsAvailable.set(this, bindBiometricsMethod('isAvailable'));\n this.isAvailable = () => __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _Biometrics_webview, \"f\").isWithin) {\n // Within RN context use bridge\n return yield __classPrivateFieldGet(this, _Biometrics_isNativeBiometricsAvailable, \"f\").call(this);\n }\n // TODO: Implement web oriented biometrics check\n return false;\n });\n this.getBiometryInformation = bindBiometricsMethod('getBiometryInformation');\n this.biometricKeysExist = bindBiometricsMethod('biometricKeysExist');\n this.createKeys = bindBiometricsMethod('createKeys');\n this.createSignature = bindBiometricsMethod('createSignature');\n this.deleteKeys = bindBiometricsMethod('deleteKeys');\n this.checkPermission = bindBiometricsMethod('checkPermission');\n this.requestPermission = bindBiometricsMethod('requestPermission');\n __classPrivateFieldSet(this, _Biometrics_webview, webview, \"f\");\n }\n}\n_Biometrics_webview = new WeakMap(), _Biometrics_isNativeBiometricsAvailable = new WeakMap();\n//# sourceMappingURL=Biometrics.js.map","import { composePluginMethodBinder } from '../utils';\nconst bindEventsMethod = composePluginMethodBinder('events');\nexport class Events {\n constructor() {\n this.emit = bindEventsMethod('emit');\n }\n}\n//# sourceMappingURL=Events.js.map","var _Storage_webview, _Storage_setItemNative, _Storage_getItemNative, _Storage_removeItemNative;\nimport { __awaiter, __classPrivateFieldGet, __classPrivateFieldSet } from \"tslib\";\nimport asyncStorage from '@react-native-async-storage/async-storage';\nimport { composePluginMethodBinder } from '../utils';\nconst bindStorageMethod = composePluginMethodBinder('storage');\nexport class Storage {\n constructor(webview) {\n _Storage_webview.set(this, void 0);\n _Storage_setItemNative.set(this, bindStorageMethod('setItem'));\n _Storage_getItemNative.set(this, bindStorageMethod('getItem'));\n _Storage_removeItemNative.set(this, bindStorageMethod('removeItem'));\n __classPrivateFieldSet(this, _Storage_webview, webview, \"f\");\n }\n setItem(key, value) {\n return __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _Storage_webview, \"f\").isWithin) {\n yield __classPrivateFieldGet(this, _Storage_setItemNative, \"f\").call(this, key, value);\n }\n else {\n asyncStorage.setItem(key, value);\n }\n });\n }\n getItem(key) {\n if (__classPrivateFieldGet(this, _Storage_webview, \"f\").isWithin) {\n return __classPrivateFieldGet(this, _Storage_getItemNative, \"f\").call(this, key);\n }\n return asyncStorage.getItem(key);\n }\n removeItem(key) {\n return __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _Storage_webview, \"f\").isWithin) {\n yield __classPrivateFieldGet(this, _Storage_removeItemNative, \"f\").call(this, key);\n }\n else {\n asyncStorage.removeItem(key);\n }\n });\n }\n}\n_Storage_webview = new WeakMap(), _Storage_setItemNative = new WeakMap(), _Storage_getItemNative = new WeakMap(), _Storage_removeItemNative = new WeakMap();\n//# sourceMappingURL=Storage.js.map","var _Camera_webview, _Camera_isNativeCameraAvailable;\nimport { __awaiter, __classPrivateFieldGet, __classPrivateFieldSet } from \"tslib\";\nimport { composePluginMethodBinder } from '../utils';\nconst bindCameraMethod = composePluginMethodBinder('camera');\nexport class Camera {\n constructor(webview) {\n _Camera_webview.set(this, void 0);\n _Camera_isNativeCameraAvailable.set(this, bindCameraMethod('isAvailable'));\n /**\n * Check for camera availability.\n */\n this.isAvailable = () => __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _Camera_webview, \"f\").isWithin) {\n // Within RN context use bridge\n return yield __classPrivateFieldGet(this, _Camera_isNativeCameraAvailable, \"f\").call(this);\n }\n // TODO: Implement web oriented camera check\n return false;\n });\n /**\n * Check camera permission. Response will map to results from `react-native-permissions`.\n * See flow diagrams for operating system dependent results.\n * iOS: https://github.com/zoontek/react-native-permissions#ios-flow\n * Android: https://github.com/zoontek/react-native-permissions#android-flow\n * @returns https://github.com/zoontek/react-native-permissions#permissions-statuses\n */\n this.checkPermission = bindCameraMethod('checkPermission');\n this.checkRollPermission = bindCameraMethod('checkRollPermission');\n /**\n * Request camera permission. Response will map to results from `react-native-permissions`.\n * See flow diagrams for operating system dependent results.\n * iOS: https://github.com/zoontek/react-native-permissions#ios-flow\n * Android: https://github.com/zoontek/react-native-permissions#android-flow\n * @returns https://github.com/zoontek/react-native-permissions#permissions-statuses\n */\n this.requestPermission = bindCameraMethod('requestPermission');\n this.requestRollPermission = bindCameraMethod('requestRollPermission');\n __classPrivateFieldSet(this, _Camera_webview, webview, \"f\");\n }\n}\n_Camera_webview = new WeakMap(), _Camera_isNativeCameraAvailable = new WeakMap();\n//# sourceMappingURL=Camera.js.map","var _Geolocation_webview, _Geolocation_isNativeGeolocationAvailable, _Geolocation_getNativeCurrentPosition, _Geolocation_checkNativeGeolocationPermission, _Geolocation_requestNativeGeolocationPermission;\nimport { __awaiter, __classPrivateFieldGet, __classPrivateFieldSet } from \"tslib\";\nimport { composePluginMethodBinder } from '../utils';\nimport { BwellError } from '@icanbwell/frontend-telemetry';\nimport { ErrorCode } from '@icanbwell/types/frontend-telemetry';\nconst bindGeolocationMethod = composePluginMethodBinder('geolocation');\nexport class Geolocation {\n constructor(webview) {\n _Geolocation_webview.set(this, void 0);\n _Geolocation_isNativeGeolocationAvailable.set(this, bindGeolocationMethod('isAvailable'));\n _Geolocation_getNativeCurrentPosition.set(this, bindGeolocationMethod('getCurrentPosition'));\n _Geolocation_checkNativeGeolocationPermission.set(this, bindGeolocationMethod('checkPermission'));\n _Geolocation_requestNativeGeolocationPermission.set(this, bindGeolocationMethod('requestPermission'));\n /**\n * Check for Geolocation availability.\n *\n * @returns {Promise<boolean>}\n */\n this.isAvailable = () => __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _Geolocation_webview, \"f\").isWithin) {\n // Within RN context use bridge\n return __classPrivateFieldGet(this, _Geolocation_isNativeGeolocationAvailable, \"f\").call(this);\n }\n else {\n return !!navigator.geolocation;\n }\n });\n /**\n * Getting current device position.\n *\n * Both native and web has the same result position data structure.\n * @param options https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/getCurrentPosition\n * @returns {Promise<GeoPosition>} https://developer.mozilla.org/en-US/docs/Web/API/GeolocationPosition\n */\n this.getCurrentPosition = (options) => __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _Geolocation_webview, \"f\").isWithin) {\n // Within RN context use bridge\n return __classPrivateFieldGet(this, _Geolocation_getNativeCurrentPosition, \"f\").call(this, options);\n }\n else {\n try {\n const { state } = yield navigator.permissions.query({ name: 'geolocation' });\n if (state === 'granted' || state === 'prompt') {\n return yield new Promise((resolve, reject) => navigator.geolocation.getCurrentPosition(resolve, reject, options));\n }\n }\n catch (error) {\n throw new BwellError(`Failed to retrieve the permission or the position is unavailable. ${error.message}`, {\n errorCode: ErrorCode.UNKNOWN,\n });\n }\n // The codeblock below will be reached when\n // user denied the permission (state === 'denied')\n throw new BwellError(`Permission Denied.`, {\n errorCode: ErrorCode.INSUFFICIENT_PERMISSIONS,\n });\n }\n });\n /**\n * Check geolocation permission.\n *\n * For native, response will map to results from `react-native-permissions`.\n * See flow diagrams for operating system dependent results.\n * iOS: https://github.com/zoontek/react-native-permissions#ios-flow\n * Android: https://github.com/zoontek/react-native-permissions#android-flow\n * Possible native permission status returns: https://github.com/zoontek/react-native-permissions#permissions-statuses\n *\n * For web, permission will be queried from navigator:\n * https://developer.mozilla.org/en-US/docs/Web/API/Permissions/query\n * It then will return a promise that resolves to PermissionStatus object:\n * https://developer.mozilla.org/en-US/docs/Web/API/PermissionStatus\n *\n * There are some status differences between native and web.\n * Union of the possible returns could be found in {GlobalPermissionStatus}\n *\n * @returns {Promise<GlobalPermissionStatus>}\n */\n this.checkPermission = () => __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _Geolocation_webview, \"f\").isWithin) {\n return __classPrivateFieldGet(this, _Geolocation_checkNativeGeolocationPermission, \"f\").call(this);\n }\n else {\n return (yield navigator.permissions.query({ name: 'geolocation' })).state;\n }\n });\n /**\n * Request geolocation permission.\n *\n * For native, response will map to results from `react-native-permissions`.\n * See flow diagrams for operating system dependent results.\n * iOS: https://github.com/zoontek/react-native-permissions#ios-flow\n * Android: https://github.com/zoontek/react-native-permissions#android-flow\n * Possible native permission status returns: https://github.com/zoontek/react-native-permissions#permissions-statuses\n *\n * For web, permission will be queried from navigator:\n * https://developer.mozilla.org/en-US/docs/Web/API/Permissions/query\n * It then will return a promise that resolves to PermissionStatus object:\n * https://developer.mozilla.org/en-US/docs/Web/API/PermissionStatus\n *\n * There are some status differences between native and web.\n * Union of the possible returns could be found in {GlobalPermissionStatus}\n *\n * @returns {Promise<GlobalPermissionStatus>}\n */\n this.requestPermission = () => __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _Geolocation_webview, \"f\").isWithin) {\n return yield __classPrivateFieldGet(this, _Geolocation_requestNativeGeolocationPermission, \"f\").call(this);\n }\n else {\n const { state } = yield navigator.permissions.query({ name: 'geolocation' });\n if (state === 'granted' || state === 'prompt') {\n yield new Promise((resolve, reject) => navigator.geolocation.getCurrentPosition(resolve, reject));\n }\n return state;\n }\n });\n __classPrivateFieldSet(this, _Geolocation_webview, webview, \"f\");\n }\n}\n_Geolocation_webview = new WeakMap(), _Geolocation_isNativeGeolocationAvailable = new WeakMap(), _Geolocation_getNativeCurrentPosition = new WeakMap(), _Geolocation_checkNativeGeolocationPermission = new WeakMap(), _Geolocation_requestNativeGeolocationPermission = new WeakMap();\n//# sourceMappingURL=Geolocation.js.map","var _Print_webview, _Print_printNative;\nimport { __awaiter, __classPrivateFieldGet, __classPrivateFieldSet } from \"tslib\";\nimport { composePluginMethodBinder } from '../utils';\nimport { BwellError } from '@icanbwell/frontend-telemetry';\nimport { ErrorCode } from '@icanbwell/types/frontend-telemetry';\nimport isAbsoluteUrl from 'is-absolute-url';\nimport printJS from 'print-js';\n// Allow only https URLs to block file://, gopher://, dict:// style SSRF/LFI.\nconst isValidHttpsUrl = (url) => {\n if (!isAbsoluteUrl(url))\n return false;\n try {\n return new URL(url).protocol === 'https:';\n }\n catch (_a) {\n return false;\n }\n};\nconst bindPrintMethod = composePluginMethodBinder('print');\nexport class Print {\n constructor(webview) {\n _Print_webview.set(this, void 0);\n _Print_printNative.set(this, bindPrintMethod('print'));\n __classPrivateFieldSet(this, _Print_webview, webview, \"f\");\n }\n /**\n * The print method only takes 1 of the 2 params.\n * @param {string} options.filePath - Absolute URL (`https://google.com/`) that points to web page with content type of `application/pdf`.\n * @param {string} options.html - HTML string (`<div>Hello World</div>`).\n * @return {boolean} True if print was successful. False otherwise.\n * @todo validate that `filePath` is a PDF via a `fetch` request combined with content type response header inspection.\n */\n print(options) {\n return __awaiter(this, void 0, void 0, function* () {\n if (options.html) {\n if (__classPrivateFieldGet(this, _Print_webview, \"f\").isWithin) {\n // Within RN context use bridge\n return yield __classPrivateFieldGet(this, _Print_printNative, \"f\").call(this, { html: options.html });\n }\n else {\n // web implementation\n printJS({ type: 'raw-html', printable: options.html });\n }\n }\n else if (options.filePath && isValidHttpsUrl(options.filePath)) {\n const safeOptions = { filePath: options.filePath };\n if (__classPrivateFieldGet(this, _Print_webview, \"f\").isWithin) {\n // Within RN context use bridge\n return yield __classPrivateFieldGet(this, _Print_printNative, \"f\").call(this, safeOptions);\n }\n else {\n // web implementation\n printJS({ type: 'pdf', printable: safeOptions.filePath });\n }\n }\n else {\n // Bwell error\n throw new BwellError('Filepath must be an https URL.', { errorCode: ErrorCode.UNKNOWN });\n }\n });\n }\n}\n_Print_webview = new WeakMap(), _Print_printNative = new WeakMap();\n//# sourceMappingURL=Print.js.map","var _DocumentDownload_webview, _DocumentDownload_isNativeFileSystemAvailable, _DocumentDownload_nativeWriteFile, _DocumentDownload_checkNativeFileSystemPermission, _DocumentDownload_requestNativeFileSystemPermission;\nimport { __awaiter, __classPrivateFieldGet, __classPrivateFieldSet } from \"tslib\";\nimport { composePluginMethodBinder } from '../utils';\nimport { BwellError } from '@icanbwell/frontend-telemetry';\nimport { ErrorCode } from '@icanbwell/types/frontend-telemetry';\nconst bindFileSystemMethod = composePluginMethodBinder('documentDownload');\nconst fileTypeToExtensionMap = {\n 'image/jpeg': 'jpeg',\n 'image/png': 'png',\n 'image/svg+xml': 'svg',\n 'application/pdf': 'pdf',\n 'text/calendar': 'ics',\n};\n// Reject path separators and null bytes to prevent traversal like \"../secret\".\nconst sanitizeFilename = (filename) => {\n const trimmed = filename.trim();\n if (!trimmed || trimmed === '.' || trimmed === '..') {\n throw new BwellError('Invalid filename.', { errorCode: ErrorCode.UNKNOWN });\n }\n if (/[\\\\/]/.test(trimmed) || trimmed.includes('\\0')) {\n throw new BwellError('Invalid filename.', { errorCode: ErrorCode.UNKNOWN });\n }\n return trimmed;\n};\n// https://gist.github.com/bgrins/6194623\nconst isDataURL = (dataString) => {\n const regex = /^\\s*data:([a-z]+\\/[a-z0-9\\-+]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,[a-z0-9!$&',()*+,;=\\-._~:@/?%\\s]*\\s*$/i;\n return !!dataString.match(regex);\n};\nconst getFileTypeFromDataURL = (dataURL) => {\n // https://stackoverflow.com/questions/48456149/how-to-detect-the-mime-type-of-data-url/61827887#61827887\n return dataURL.substring(dataURL.indexOf(':') + 1, dataURL.indexOf(';'));\n};\nconst getFileNameWithExtension = (filename, dataURL) => {\n if (!isDataURL(dataURL)) {\n throw new BwellError(`Invalid Data URL Format.`, { errorCode: ErrorCode.UNKNOWN });\n }\n const fileType = getFileTypeFromDataURL(dataURL);\n checkFileTypeValidity(fileType);\n return `${filename}.${fileTypeToExtensionMap[fileType]}`;\n};\nconst checkFileTypeValidity = (fileType) => {\n if (!Object.keys(fileTypeToExtensionMap).includes(fileType)) {\n throw new BwellError(`Invalid or unallowed file type.`, { errorCode: ErrorCode.UNKNOWN });\n }\n};\nexport class DocumentDownload {\n constructor(webview) {\n _DocumentDownload_webview.set(this, void 0);\n _DocumentDownload_isNativeFileSystemAvailable.set(this, bindFileSystemMethod('isAvailable'));\n _DocumentDownload_nativeWriteFile.set(this, bindFileSystemMethod('writeFile'));\n _DocumentDownload_checkNativeFileSystemPermission.set(this, bindFileSystemMethod('checkPermission'));\n _DocumentDownload_requestNativeFileSystemPermission.set(this, bindFileSystemMethod('requestPermission'));\n /**\n * Check for filesystem availability.\n * Web will always be available for document download\n * since it doesn't require any specific permission.\n *\n * @param fileType See fileTypeToExtensionMap variable to view all allowed file types\n * @returns {Promise<boolean>}\n */\n this.isAvailable = (fileType) => __awaiter(this, void 0, void 0, function* () {\n checkFileTypeValidity(fileType);\n if (__classPrivateFieldGet(this, _DocumentDownload_webview, \"f\").isWithin) {\n // Within RN context use bridge\n return __classPrivateFieldGet(this, _DocumentDownload_isNativeFileSystemAvailable, \"f\").call(this, fileType);\n }\n else {\n return true;\n }\n });\n /**\n * Write file (pdf and image) to the system.\n *\n * File name should not include the file extension.\n * The data URL needs to be in Base64 data form, starting with \"data:\".\n *\n * For iOS, images will go to gallery using '@react-native-camera-roll/camera-roll',\n * and pdfs will go to document directory.\n *\n * For Android, images will go to 'DCIM' directory which will be read by device gallery application,\n * and pdfs will go to the downloads directory.\n *\n * For web, there is no specific directory,\n * the file will be stored according to the browser's download directory settings.\n *\n * @param filename File name without extension\n * @param dataURL Base64 data URL (Must start with \"data:\")\n * @returns {Promise<DownloadLocation>}\n *\n */\n this.writeFile = (filename, dataURL) => __awaiter(this, void 0, void 0, function* () {\n const safeFilename = sanitizeFilename(filename);\n if (Object.values(fileTypeToExtensionMap).some((extension) => safeFilename.includes(extension))) {\n throw new BwellError('Filename should not contain extension', { errorCode: ErrorCode.UNKNOWN });\n }\n const fileNameWithExtension = getFileNameWithExtension(safeFilename, dataURL);\n if (__classPrivateFieldGet(this, _DocumentDownload_webview, \"f\").isWithin) {\n // Within RN context use bridge\n return __classPrivateFieldGet(this, _DocumentDownload_nativeWriteFile, \"f\").call(this, fileNameWithExtension, dataURL);\n }\n else {\n const downloadLink = document.createElement('a');\n downloadLink.href = dataURL;\n downloadLink.download = fileNameWithExtension;\n downloadLink.click();\n return 'Files';\n }\n });\n /**\n * Check file system permission.\n *\n * For native, response will map to results from `react-native-permissions`.\n * See flow diagrams for operating system dependent results.\n * iOS: https://github.com/zoontek/react-native-permissions#ios-flow\n * Android: https://github.com/zoontek/react-native-permissions#android-flow\n * Possible native permission status returns: https://github.com/zoontek/react-native-permissions#permissions-statuses\n *\n * For web, response will always be 'granted' because downloading a file on web doesn't need any specific permission.\n *\n * There are some status differences between native and web.\n * Union of the possible returns could be found in {GlobalPermissionStatus}\n *\n * @param fileType See fileTypeToExtensionMap variable to view all allowed file types\n * @returns {Promise<GlobalPermissionStatus>}\n */\n this.checkPermission = (fileType) => __awaiter(this, void 0, void 0, function* () {\n checkFileTypeValidity(fileType);\n if (__classPrivateFieldGet(this, _DocumentDownload_webview, \"f\").isWithin) {\n return __classPrivateFieldGet(this, _DocumentDownload_checkNativeFileSystemPermission, \"f\").call(this, fileType);\n }\n else {\n return 'granted';\n }\n });\n /**\n * Request file system permission.\n *\n * For native, response will map to results from `react-native-permissions`.\n * See flow diagrams for operating system dependent results.\n * iOS: https://github.com/zoontek/react-native-permissions#ios-flow\n * Android: https://github.com/zoontek/react-native-permissions#android-flow\n * Possible native permission status returns: https://github.com/zoontek/react-native-permissions#permissions-statuses\n *\n * For web, response will always be 'granted' because downloading a file on web doesn't need any specific permission.\n *\n * There are some status differences between native and web.\n * Union of the possible returns could be found in {GlobalPermissionStatus}\n *\n * @param fileType See fileTypeToExtensionMap variable to view all allowed file types\n * @returns {Promise<GlobalPermissionStatus>}\n */\n this.requestPermission = (fileType) => __awaiter(this, void 0, void 0, function* () {\n checkFileTypeValidity(fileType);\n if (__classPrivateFieldGet(this, _DocumentDownload_webview, \"f\").isWithin) {\n return yield __classPrivateFieldGet(this, _DocumentDownload_requestNativeFileSystemPermission, \"f\").call(this, fileType);\n }\n else {\n return 'granted';\n }\n });\n __classPrivateFieldSet(this, _DocumentDownload_webview, webview, \"f\");\n }\n}\n_DocumentDownload_webview = new WeakMap(), _DocumentDownload_isNativeFileSystemAvailable = new WeakMap(), _DocumentDownload_nativeWriteFile = new WeakMap(), _DocumentDownload_checkNativeFileSystemPermission = new WeakMap(), _DocumentDownload_requestNativeFileSystemPermission = new WeakMap();\n//# sourceMappingURL=DocumentDownload.js.map","export const RESULTS = Object.freeze({\n UNAVAILABLE: 'unavailable',\n BLOCKED: 'blocked',\n DENIED: 'denied',\n GRANTED: 'granted',\n LIMITED: 'limited'\n});\n//# sourceMappingURL=results.js.map","const IOS_14 = 'Only supported by iOS 14 and above';\nexport async function checkLocationAccuracy() {\n throw new Error(IOS_14);\n}\nexport async function requestLocationAccuracy(_options) {\n throw new Error(IOS_14);\n}\nexport async function openLimitedPhotoLibraryPicker() {\n throw new Error(IOS_14);\n}\n//# sourceMappingURL=unsupportedPlatformMethods.js.map","import { RESULTS } from './results';\nimport { checkLocationAccuracy, openLimitedPhotoLibraryPicker, requestLocationAccuracy } from './unsupportedPlatformMethods';\nasync function check() {\n return RESULTS.UNAVAILABLE;\n}\nasync function checkNotifications() {\n return {\n status: RESULTS.UNAVAILABLE,\n settings: {}\n };\n}\nasync function checkMultiple(permissions) {\n return permissions.reduce((acc, permission) => {\n acc[permission] = RESULTS.UNAVAILABLE;\n return acc;\n }, {});\n}\nexport const methods = {\n check,\n checkLocationAccuracy,\n checkMultiple,\n checkNotifications,\n openLimitedPhotoLibraryPicker,\n openSettings: Promise.reject,\n request: check,\n requestLocationAccuracy,\n requestMultiple: checkMultiple,\n requestNotifications: checkNotifications\n};\n//# sourceMappingURL=methods.js.map","export const PERMISSIONS = Object.freeze({\n ANDROID: {},\n IOS: {},\n WINDOWS: {}\n});\n//# sourceMappingURL=permissions.js.map","import { methods } from './methods';\nimport { PERMISSIONS } from './permissions';\nimport { RESULTS } from './results';\nexport { PERMISSIONS } from './permissions';\nexport { RESULTS } from './results';\nexport * from './types';\nexport const check = methods.check;\nexport const checkLocationAccuracy = methods.checkLocationAccuracy;\nexport const checkMultiple = methods.checkMultiple;\nexport const checkNotifications = methods.checkNotifications;\nexport const openLimitedPhotoLibraryPicker = methods.openLimitedPhotoLibraryPicker;\nexport const openSettings = methods.openSettings;\nexport const request = methods.request;\nexport const requestLocationAccuracy = methods.requestLocationAccuracy;\nexport const requestMultiple = methods.requestMultiple;\nexport const requestNotifications = methods.requestNotifications;\nexport default {\n PERMISSIONS,\n RESULTS,\n check,\n checkLocationAccuracy,\n checkMultiple,\n checkNotifications,\n openLimitedPhotoLibraryPicker,\n openSettings,\n request,\n requestLocationAccuracy,\n requestMultiple,\n requestNotifications\n};\n//# sourceMappingURL=index.js.map","var _DocumentPicker_webview, _DocumentPicker_pickMultipleNative, _DocumentPicker_pickSingleNative, _DocumentPicker_checkPermissionNative, _DocumentPicker_requestPermissionNative;\nimport { __awaiter, __classPrivateFieldGet, __classPrivateFieldSet } from \"tslib\";\nimport { RESULTS } from 'react-native-permissions';\nimport { composePluginMethodBinder } from '../utils';\nconst bindDocumentPickerMethod = composePluginMethodBinder('documentPicker');\nconst toBase64 = (file) => new Promise((resolve, reject) => {\n const reader = new FileReader();\n reader.readAsDataURL(file);\n reader.onload = () => resolve(reader.result.replace('data:', '').replace(/^.+,/, ''));\n reader.onerror = reject;\n});\nconst handlePickWeb = (multi) => new Promise((resolve, reject) => {\n // web implementation\n const input = document.createElement('input');\n input.type = 'file';\n // if multi is true will allow multiple items to be selected\n if (multi === true)\n input.multiple = multi;\n input.onchange = ({ target }) => __awaiter(void 0, void 0, void 0, function* () {\n try {\n resolve(yield Promise.all(Object.values(target.files).map((file) => __awaiter(void 0, void 0, void 0, function* () {\n return ({\n type: file.type,\n name: file.name,\n size: file.size,\n base64: yield toBase64(file),\n });\n }))));\n }\n catch (error) {\n reject(error);\n }\n });\n input.click();\n});\nexport class DocumentPicker {\n constructor(webview) {\n _DocumentPicker_webview.set(this, void 0);\n _DocumentPicker_pickMultipleNative.set(this, bindDocumentPickerMethod('pickMultiple'));\n _DocumentPicker_pickSingleNative.set(this, bindDocumentPickerMethod('pickSingle'));\n _DocumentPicker_checkPermissionNative.set(this, bindDocumentPickerMethod('checkPermission'));\n _DocumentPicker_requestPermissionNative.set(this, bindDocumentPickerMethod('requestPermission'));\n /**\n * allows user to pick multiple items from files system\n */\n this.pickMultiple = () => {\n if (__classPrivateFieldGet(this, _DocumentPicker_webview, \"f\").isWithin) {\n // Within RN context use bridge\n return __classPrivateFieldGet(this, _DocumentPicker_pickMultipleNative, \"f\").call(this);\n }\n else {\n // web implementation\n return handlePickWeb(true);\n }\n };\n /**\n * Check external storage permission. Response will map to results from `react-native-permissions`.\n * See flow diagrams for operating system dependent results.\n * iOS: https://github.com/zoontek/react-native-permissions#ios-flow\n * Android: https://github.com/zoontek/react-native-permissions#android-flow\n * @returns https://github.com/zoontek/react-native-permissions#permissions-statuses\n */\n this.checkPermission = () => __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _DocumentPicker_webview, \"f\").isWithin) {\n // Within RN context use bridge\n return yield __classPrivateFieldGet(this, _DocumentPicker_checkPermissionNative, \"f\").call(this);\n }\n else {\n // web implementation\n return Promise.resolve(RESULTS.GRANTED);\n }\n });\n /**\n * Request external storage permission. Response will map to results from `react-native-permissions`.\n * See flow diagrams for operating system dependent results.\n * iOS: https://github.com/zoontek/react-native-permissions#ios-flow\n * Android: https://github.com/zoontek/react-native-permissions#android-flow\n * @returns https://github.com/zoontek/react-native-permissions#permissions-statuses\n */\n this.requestPermission = () => __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _DocumentPicker_webview, \"f\").isWithin) {\n // Within RN context use bridge\n return yield __classPrivateFieldGet(this, _DocumentPicker_requestPermissionNative, \"f\").call(this);\n }\n else {\n // web implementation\n return Promise.resolve(RESULTS.GRANTED);\n }\n });\n __classPrivateFieldSet(this, _DocumentPicker_webview, webview, \"f\");\n }\n /**\n * only allows user to select one item from file system\n */\n pickSingle() {\n return __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _DocumentPicker_webview, \"f\").isWithin) {\n // Within RN context use bridge\n return __classPrivateFieldGet(this, _DocumentPicker_pickSingleNative, \"f\").call(this);\n }\n else {\n // web implementation\n return (yield handlePickWeb(false))[0];\n }\n });\n }\n}\n_DocumentPicker_webview = new WeakMap(), _DocumentPicker_pickMultipleNative = new WeakMap(), _DocumentPicker_pickSingleNative = new WeakMap(), _DocumentPicker_checkPermissionNative = new WeakMap(), _DocumentPicker_requestPermissionNative = new WeakMap();\n//# sourceMappingURL=DocumentPicker.js.map","var _PushNotifications_webview, _PushNotifications_isNativePushNotificationsAvailable, _PushNotifications_getNativeNotificationsDeviceToken, _PushNotifications_checkNativePushNotificationsPermission, _PushNotifications_requestNativePushNotificationsPermission;\nimport { __awaiter, __classPrivateFieldGet, __classPrivateFieldSet } from \"tslib\";\nimport { composePluginMethodBinder } from '../utils';\nconst bindPushNotificationsMethod = composePluginMethodBinder('pushNotifications');\nexport class PushNotifications {\n constructor(webview) {\n _PushNotifications_webview.set(this, void 0);\n _PushNotifications_isNativePushNotificationsAvailable.set(this, bindPushNotificationsMethod('isAvailable'));\n _PushNotifications_getNativeNotificationsDeviceToken.set(this, bindPushNotificationsMethod('getDeviceToken'));\n _PushNotifications_checkNativePushNotificationsPermission.set(this, bindPushNotificationsMethod('checkPermission'));\n _PushNotifications_requestNativePushNotificationsPermission.set(this, bindPushNotificationsMethod('requestPermission'));\n /**\n * Check for push notification availability.\n *\n * @returns {Promise<boolean>}\n */\n this.isAvailable = () => __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _PushNotifications_webview, \"f\").isWithin) {\n // Within RN context use bridge\n return __classPrivateFieldGet(this, _PushNotifications_isNativePushNotificationsAvailable, \"f\").call(this);\n }\n else {\n // web Push Notifications not supported\n return false;\n }\n });\n this.getDeviceToken = () => __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _PushNotifications_webview, \"f\").isWithin) {\n return __classPrivateFieldGet(this, _PushNotifications_getNativeNotificationsDeviceToken, \"f\").call(this);\n }\n else {\n throw new Error('This method is currently not supported on web');\n }\n });\n /**\n * Check push notification permission.\n *\n * For native, response will map to results from `react-native-permissions`.\n * See flow diagrams for operating system dependent results.\n * iOS: https://github.com/zoontek/react-native-permissions#ios-flow\n * Android: https://github.com/zoontek/react-native-permissions#android-flow\n * Possible native permission status returns: https://github.com/zoontek/react-native-permissions#permissions-statuses\n */\n this.checkPermission = () => __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _PushNotifications_webview, \"f\").isWithin) {\n return __classPrivateFieldGet(this, _PushNotifications_checkNativePushNotificationsPermission, \"f\").call(this);\n }\n else {\n return 'unavailable';\n }\n });\n /**\n * Request push notification permission.\n *\n * For native, response will map to results from `react-native-permissions`.\n * See flow diagrams for operating system dependent results.\n * iOS: https://github.com/zoontek/react-native-permissions#ios-flow\n * Android: https://github.com/zoontek/react-native-permissions#android-flow\n * Possible native permission status returns: https://github.com/zoontek/react-native-permissions#permissions-statuses\n */\n this.requestPermission = () => __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _PushNotifications_webview, \"f\").isWithin) {\n return yield __classPrivateFieldGet(this, _PushNotifications_requestNativePushNotificationsPermission, \"f\").call(this);\n }\n else {\n return 'unavailable';\n }\n });\n __classPrivateFieldSet(this, _PushNotifications_webview, webview, \"f\");\n }\n}\n_PushNotifications_webview = new WeakMap(), _PushNotifications_isNativePushNotificationsAvailable = new WeakMap(), _PushNotifications_getNativeNotificationsDeviceToken = new WeakMap(), _PushNotifications_checkNativePushNotificationsPermission = new WeakMap(), _PushNotifications_requestNativePushNotificationsPermission = new WeakMap();\n//# sourceMappingURL=PushNotifications.js.map","var _DeepLink_webview, _DeepLink_openNativeLink;\nimport { __awaiter, __classPrivateFieldGet, __classPrivateFieldSet } from \"tslib\";\nimport { composePluginMethodBinder } from '../utils';\nconst bindDeepLinkMethod = composePluginMethodBinder('deepLink');\nexport class DeepLink {\n constructor(webview) {\n _DeepLink_webview.set(this, void 0);\n _DeepLink_openNativeLink.set(this, bindDeepLinkMethod('openLink'));\n this.openLink = (deepLinkData, target = '_blank') => __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _DeepLink_webview, \"f\").isWithin) {\n // Within RN context use bridge\n return __classPrivateFieldGet(this, _DeepLink_openNativeLink, \"f\").call(this, deepLinkData, target);\n }\n else {\n window.open(deepLinkData.webUrl, target);\n }\n });\n __classPrivateFieldSet(this, _DeepLink_webview, webview, \"f\");\n }\n}\n_DeepLink_webview = new WeakMap(), _DeepLink_openNativeLink = new WeakMap();\n//# sourceMappingURL=DeepLink.js.map","var _System_webview, _System_openSettingsNative;\nimport { __awaiter, __classPrivateFieldGet, __classPrivateFieldSet } from \"tslib\";\nimport { composePluginMethodBinder } from '../utils';\nconst bindSystemMethod = composePluginMethodBinder('system');\nexport class System {\n constructor(webview) {\n _System_webview.set(this, void 0);\n _System_openSettingsNative.set(this, bindSystemMethod('openSettings'));\n /**\n * allows user to open the apps settings on mobile device.\n * nothing to do on web implementation as there is no app settings.\n */\n this.openSettings = () => __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _System_webview, \"f\").isWithin) {\n // Within RN context use bridge\n return yield __classPrivateFieldGet(this, _System_openSettingsNative, \"f\").call(this);\n }\n // nothing to do on web\n });\n __classPrivateFieldSet(this, _System_webview, webview, \"f\");\n }\n}\n_System_webview = new WeakMap(), _System_openSettingsNative = new WeakMap();\n//# sourceMappingURL=System.js.map","var _Utils_webview, _Utils_getPlatformNative, _Utils_getBundleId;\nimport { __awaiter, __classPrivateFieldGet, __classPrivateFieldSet } from \"tslib\";\nimport { composePluginMethodBinder } from '../utils';\nconst bindUtilsMethod = composePluginMethodBinder('utils');\nexport class Utils {\n constructor(webview) {\n _Utils_webview.set(this, void 0);\n _Utils_getPlatformNative.set(this, bindUtilsMethod('getPlatform'));\n _Utils_getBundleId.set(this, bindUtilsMethod('getBundleId'));\n __classPrivateFieldSet(this, _Utils_webview, webview, \"f\");\n }\n getPlatform() {\n return __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _Utils_webview, \"f\").isWithin) {\n return __classPrivateFieldGet(this, _Utils_getPlatformNative, \"f\").call(this);\n }\n return 'web';\n });\n }\n getBundleId() {\n return __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _Utils_webview, \"f\").isWithin) {\n return __classPrivateFieldGet(this, _Utils_getBundleId, \"f\").call(this);\n }\n console.warn('bundleId not available on the web');\n });\n }\n}\n_Utils_webview = new WeakMap(), _Utils_getPlatformNative = new WeakMap(), _Utils_getBundleId = new WeakMap();\n//# sourceMappingURL=Utils.js.map","var _ConnectDevices_webview, _ConnectDevices_startSession, _ConnectDevices_syncData, _ConnectDevices_refreshData, _ConnectDevices_endSession, _ConnectDevices_getCurrentUser, _ConnectDevices_checkPermissions, _ConnectDevices_isNative;\nimport { __awaiter, __classPrivateFieldGet, __classPrivateFieldSet } from \"tslib\";\nimport { composePluginMethodBinder } from '../utils';\nconst bindMethod = composePluginMethodBinder('connectDevices');\nexport class ConnectDevices {\n constructor(webview) {\n _ConnectDevices_webview.set(this, void 0);\n _ConnectDevices_startSession.set(this, bindMethod('startSession'));\n _ConnectDevices_syncData.set(this, bindMethod('syncData'));\n _ConnectDevices_refreshData.set(this, bindMethod('refreshData'));\n _ConnectDevices_endSession.set(this, bindMethod('endSession'));\n _ConnectDevices_getCurrentUser.set(this, bindMethod('getCurrentUser'));\n _ConnectDevices_checkPermissions.set(this, bindMethod('checkPermissions'));\n _ConnectDevices_isNative.set(this, () => __classPrivateFieldGet(this, _ConnectDevices_webview, \"f\").isWithin);\n this.startSession = (user) => __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _ConnectDevices_isNative, \"f\").call(this))\n return __classPrivateFieldGet(this, _ConnectDevices_startSession, \"f\").call(this, user);\n });\n this.syncData = (daysToFetch = 30) => __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _ConnectDevices_isNative, \"f\").call(this))\n return __classPrivateFieldGet(this, _ConnectDevices_syncData, \"f\").call(this, daysToFetch);\n return [];\n });\n this.refreshData = (daysToFetch = 30) => __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _ConnectDevices_isNative, \"f\").call(this))\n return __classPrivateFieldGet(this, _ConnectDevices_refreshData, \"f\").call(this, daysToFetch);\n return [];\n });\n this.endSession = () => __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _ConnectDevices_isNative, \"f\").call(this))\n return __classPrivateFieldGet(this, _ConnectDevices_endSession, \"f\").call(this);\n });\n this.getCurrentUser = () => __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _ConnectDevices_isNative, \"f\").call(this))\n return __classPrivateFieldGet(this, _ConnectDevices_getCurrentUser, \"f\").call(this);\n return null;\n });\n this.checkPermissions = () => __awaiter(this, void 0, void 0, function* () {\n if (__classPrivateFieldGet(this, _ConnectDevices_isNative, \"f\").call(this))\n return __classPrivateFieldGet(this, _ConnectDevices_checkPermissions, \"f\").call(this);\n return false;\n });\n __classPrivateFieldSet(this, _ConnectDevices_webview, webview, \"f\");\n }\n}\n_ConnectDevices_webview = new WeakMap(), _ConnectDevices_startSession = new WeakMap(), _ConnectDevices_syncData = new WeakMap(), _ConnectDevices_refreshData = new WeakMap(), _ConnectDevices_endSession = new WeakMap(), _ConnectDevices_getCurrentUser = new WeakMap(), _ConnectDevices_checkPermissions = new WeakMap(), _ConnectDevices_isNative = new WeakMap();\n//# sourceMappingURL=ConnectDevices.js.map","var _Passkey_webview, _Passkey_nativeIsSupported, _Passkey_nativeCreate, _Passkey_nativeGet;\nimport { __awaiter, __classPrivateFieldGet, __classPrivateFieldSet } from \"tslib\";\nimport { composePluginMethodBinder } from '../utils';\nconst bindPasskeyMethod = composePluginMethodBinder('passkey');\nexport class Passkey {\n constructor(webview) {\n _Passkey_webview.set(this, void 0);\n _Passkey_nativeIsSupported.set(this, bindPasskeyMethod('isSupported'));\n _Passkey_nativeCreate.set(this, bindPasskeyMethod('create'));\n _Passkey_nativeGet.set(this, bindPasskeyMethod('get'));\n this.isSupported = () => __awaiter(this, void 0, void 0, function* () {\n if (!__classPrivateFieldGet(this, _Passkey_webview, \"f\").isWithin) {\n return false;\n }\n return __classPrivateFieldGet(this, _Passkey_nativeIsSupported, \"f\").call(this);\n });\n this.create = (request) => __awaiter(this, void 0, void 0, function* () {\n if (!__classPrivateFieldGet(this, _Passkey_webview, \"f\").isWithin) {\n throw new Error('Native passkey bridge is only available within a native WebView.');\n }\n return __classPrivateFieldGet(this, _Passkey_nativeCreate, \"f\").call(this, request);\n });\n this.get = (request) => __awaiter(this, void 0, void 0, function* () {\n if (!__classPrivateFieldGet(this, _Passkey_webview, \"f\").isWithin) {\n throw new Error('Native passkey bridge is only available within a native WebView.');\n }\n return __classPrivateFieldGet(this, _Passkey_nativeGet, \"f\").call(this, request);\n });\n __classPrivateFieldSet(this, _Passkey_webview, webview, \"f\");\n }\n}\n_Passkey_webview = new WeakMap(), _Passkey_nativeIsSupported = new WeakMap(), _Passkey_nativeCreate = new WeakMap(), _Passkey_nativeGet = new WeakMap();\n//# sourceMappingURL=Passkey.js.map","import { Webview, Biometrics, Events, Storage, Camera, Print, DocumentDownload, DocumentPicker, System, Geolocation, PushNotifications, DeepLink, Utils, ConnectDevices, Passkey, } from './plugins';\nexport class NativeBridge {\n constructor() {\n // Subclasses\n // Restrict exposed `events` type to only emittable events\n this.events = new Events();\n this.webview = new Webview(this.events);\n this.biometrics = new Biometrics(this.webview);\n this.storage = new Storage(this.webview);\n this.camera = new Camera(this.webview);\n this.geolocation = new Geolocation(this.webview);\n this.print = new Print(this.webview);\n this.documentDownload = new DocumentDownload(this.webview);\n this.documentPicker = new DocumentPicker(this.webview);\n this.pushNotifications = new PushNotifications(this.webview);\n this.deepLink = new DeepLink(this.webview);\n this.utils = new Utils(this.webview);\n this.system = new System(this.webview);\n this.connectDevices = new ConnectDevices(this.webview);\n this.passkey = new Passkey(this.webview);\n }\n // General Methods\n /**\n * Reloads the webview with configurable behavior.\n *\n * @param preserveSession - If true, captures sessionStorage entries and the current route, remounts the\n * WebView component, then restores the session state after reload.\n * If false, reloads the web page inside the existing WebView (sessionStorage\n * is naturally preserved since the component is not destroyed).\n * Defaults to false.\n */\n reloadView(preserveSession = false) {\n if (this.webview.isWithin) {\n this.webview.reload(preserveSession);\n }\n else {\n // Assume we're in a web context\n globalThis.location.reload();\n }\n }\n}\nexport const nativeBridge = new NativeBridge();\n//# sourceMappingURL=NativeBridge.js.map","import { __classPrivateFieldGet } from '../_virtual/_tslib.js';\nimport { getErrorDetails } from '@icanbwell/frontend-telemetry';\nimport { nativeBridge } from '@icanbwell/native-bridge';\n\nvar _ErrorPageWebComponent_instances, _ErrorPageWebComponent_setValue, _ErrorPageWebComponent_template;\nconst ERROR_COMPONENT_TAG_NAME = 'bwell-error-component';\nclass ErrorPageWebComponent extends HTMLElement {\n static get observedAttributes() {\n return ['message'];\n }\n constructor() {\n super();\n _ErrorPageWebComponent_instances.add(this);\n this.attachShadow({\n mode: 'open'\n });\n }\n connectedCallback() {\n var _a, _b;\n const {\n message: defaultMessage\n } = getErrorDetails();\n const template = __classPrivateFieldGet(this, _ErrorPageWebComponent_instances, \"m\", _ErrorPageWebComponent_template).call(this);\n this.shadowRoot.appendChild(template);\n __classPrivateFieldGet(this, _ErrorPageWebComponent_instances, \"m\", _ErrorPageWebComponent_setValue).call(this, 'message', this.getAttribute('message') || defaultMessage);\n (_b = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.getElementById('refresh')) === null || _b === void 0 ? void 0 : _b.addEventListener('click', () => {\n this.resetError();\n });\n }\n attributeChangedCallback(name, _oldValue, newValue) {\n __classPrivateFieldGet(this, _ErrorPageWebComponent_instances, \"m\", _ErrorPageWebComponent_setValue).call(this, name, newValue);\n }\n resetError() {\n // default behavior that can be overridden\n nativeBridge.reloadView();\n }\n}\n_ErrorPageWebComponent_instances = new WeakSet(), _ErrorPageWebComponent_setValue = function _ErrorPageWebComponent_setValue(name, value) {\n var _a;\n const el = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.getElementById(name);\n if (el) {\n el.innerHTML = value;\n }\n}, _ErrorPageWebComponent_template = function _ErrorPageWebComponent_template() {\n var _a, _b;\n let template = (_b = (_a = document.getElementById('bwell-custom-error-template')) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.cloneNode(true);\n if (!template) {\n template = document.createElement('article');\n // TODO: Do an accessibility review. Does body present any challenges?\n template.innerHTML = `\n <style>\n :host {\n --background: #FFFFFF;\n --messageTextColor: #6F6F6F;\n }\n article {\n background: var(--background);\n font-family: regular,sans-serif;\n font-size: 16px;\n font-style: normal;\n font-weight: 400;\n letter-spacing: 0px;\n line-height: 20px;\n margin: auto;\n max-width: 340px;\n text-align: center;\n }\n h3 {\n color: #2E3586;\n font-size: 28px;\n font-style: normal;\n font-weight: 400;\n line-height: 34px;\n }\n p {\n color: var(--messageTextColor);\n }\n button {\n background: #2E3586;\n border-radius: 5px;\n height: 55px;\n width: 200px;\n border: none;\n cursor: pointer;\n }\n button>span {\n color: #FFFFFF;\n font-size: 18px;\n font-style: normal;\n font-weight: 700;\n line-height: 22px;\n }\n </style>\n <header>\n <svg width=\"100\" height=\"100\" viewBox=\"0 0 100 100\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <g clip-path=\"url(#clip0_645_19)\">\n <path d=\"M98.1598 74.7658L62.8319 11.0741C60.1952 6.38657 55.3902 3.51562 50 3.51562C44.6099 3.51562 39.8049 6.38657 37.1681 11.0741L1.84023 74.7658C-0.679762 79.3358 -0.621016 84.7855 2.07445 89.2967C4.71117 93.8087 9.45742 96.5042 14.6721 96.5042H85.3279C90.5426 96.5042 95.2889 93.8087 97.9256 89.2967C100.621 84.7855 100.68 79.3358 98.1598 74.7658Z\" fill=\"#FDBF00\"/>\n <path d=\"M97.9255 89.2967C95.2888 93.8087 90.5433 96.5042 85.3279 96.5042H50V3.51562C55.3902 3.51562 60.1952 6.38657 62.8319 11.0741L98.1598 74.7658C100.68 79.3358 100.621 84.7855 97.9255 89.2967Z\" fill=\"#FF9F00\"/>\n <path d=\"M41.2109 20.3325V64.2778H58.7891V20.3325H41.2109Z\" fill=\"#5A5A5A\"/>\n <path d=\"M50 70.137C45.1363 70.137 41.2109 74.0623 41.2109 78.926C41.2109 83.789 45.1363 87.7151 50 87.7151C54.8637 87.7151 58.7891 83.789 58.7891 78.926C58.7891 74.0623 54.8637 70.137 50 70.137Z\" fill=\"#5A5A5A\"/>\n <path d=\"M58.7891 78.926C58.7891 83.789 54.8637 87.7151 50 87.7151V70.137C54.8637 70.137 58.7891 74.0623 58.7891 78.926Z\" fill=\"#444444\"/>\n <path d=\"M50 20.3323H58.7891V64.2776H50V20.3323Z\" fill=\"#444444\"/>\n </g>\n <defs>\n <clipPath id=\"clip0_645_19\">\n <rect width=\"100\" height=\"100\" fill=\"white\"/>\n </clipPath>\n </defs>\n </svg>\n </header>\n <h3>Oops!</h3>\n <p id=\"message\">Looks like something went wrong when loading this page. Please try refreshing it.</p>\n <button id=\"refresh\">\n <span>Refresh</span>\n </button>\n `;\n }\n return template;\n};\nif (!customElements.get(ERROR_COMPONENT_TAG_NAME)) {\n customElements.define(ERROR_COMPONENT_TAG_NAME, ErrorPageWebComponent);\n}\n\nexport { ERROR_COMPONENT_TAG_NAME, ErrorPageWebComponent };\n","import { jsx } from 'react/jsx-runtime';\nimport { useRef, useEffect } from 'react';\n\nconst DefaultErrorBoundaryFallback = ({\n errorDetails,\n resetError\n}) => {\n const ref = useRef();\n useEffect(() => {\n const errorComponent = ref.current;\n if (errorComponent) {\n errorComponent.resetError = resetError;\n }\n }, []);\n return jsx(\"bwell-error-component\", {\n message: errorDetails.message,\n ref: ref\n });\n};\n\nexport { DefaultErrorBoundaryFallback };\n"],"names":["__classPrivateFieldGet","receiver","state","kind","f","genericMesssage","getErrorMessage","errorCode","getErrorDetails","error","_a","message","_Webview_events","Webview","events","url","data","preserveSession","bindMethod","plugin","method","composePluginMethodBinder","_Biometrics_webview","_Biometrics_isNativeBiometricsAvailable","bindBiometricsMethod","Biometrics","webview","bindEventsMethod","Events","_Storage_webview","_Storage_setItemNative","_Storage_getItemNative","_Storage_removeItemNative","bindStorageMethod","Storage","key","value","_Camera_webview","_Camera_isNativeCameraAvailable","bindCameraMethod","Camera","_Geolocation_webview","_Geolocation_isNativeGeolocationAvailable","_Geolocation_getNativeCurrentPosition","_Geolocation_checkNativeGeolocationPermission","_Geolocation_requestNativeGeolocationPermission","bindGeolocationMethod","Geolocation","options","resolve","reject","_Print_webview","_Print_printNative","isValidHttpsUrl","bindPrintMethod","Print","safeOptions","_DocumentDownload_webview","_DocumentDownload_isNativeFileSystemAvailable","_DocumentDownload_nativeWriteFile","_DocumentDownload_checkNativeFileSystemPermission","_DocumentDownload_requestNativeFileSystemPermission","bindFileSystemMethod","fileTypeToExtensionMap","sanitizeFilename","filename","trimmed","isDataURL","dataString","regex","getFileTypeFromDataURL","dataURL","getFileNameWithExtension","fileType","checkFileTypeValidity","DocumentDownload","safeFilename","extension","fileNameWithExtension","downloadLink","RESULTS","IOS_14","checkLocationAccuracy","requestLocationAccuracy","_options","openLimitedPhotoLibraryPicker","check","checkNotifications","checkMultiple","permissions","acc","permission","methods","PERMISSIONS","openSettings","request","requestMultiple","requestNotifications","_DocumentPicker_webview","_DocumentPicker_pickMultipleNative","_DocumentPicker_pickSingleNative","_DocumentPicker_checkPermissionNative","_DocumentPicker_requestPermissionNative","bindDocumentPickerMethod","toBase64","file","reader","handlePickWeb","multi","input","target","DocumentPicker","_PushNotifications_webview","_PushNotifications_isNativePushNotificationsAvailable","_PushNotifications_getNativeNotificationsDeviceToken","_PushNotifications_checkNativePushNotificationsPermission","_PushNotifications_requestNativePushNotificationsPermission","bindPushNotificationsMethod","PushNotifications","_DeepLink_webview","_DeepLink_openNativeLink","bindDeepLinkMethod","DeepLink","deepLinkData","_System_webview","_System_openSettingsNative","bindSystemMethod","System","_Utils_webview","_Utils_getPlatformNative","_Utils_getBundleId","bindUtilsMethod","Utils","_ConnectDevices_webview","_ConnectDevices_startSession","_ConnectDevices_syncData","_ConnectDevices_refreshData","_ConnectDevices_endSession","_ConnectDevices_getCurrentUser","_ConnectDevices_checkPermissions","_ConnectDevices_isNative","ConnectDevices","user","daysToFetch","_Passkey_webview","_Passkey_nativeIsSupported","_Passkey_nativeCreate","_Passkey_nativeGet","bindPasskeyMethod","Passkey","NativeBridge","nativeBridge","_ErrorPageWebComponent_instances","_ErrorPageWebComponent_setValue","_ErrorPageWebComponent_template","ERROR_COMPONENT_TAG_NAME","ErrorPageWebComponent","_b","defaultMessage","template","name","_oldValue","newValue","el","DefaultErrorBoundaryFallback","errorDetails","resetError","ref","errorComponent"],"sourceRoot":""}