feat: initial build - static app kapp-pwa
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,180 @@
|
||||
(self["webpackChunkapp"] = self["webpackChunkapp"] || []).push([[6650],{
|
||||
|
||||
/***/ 73315:
|
||||
/*!***************************************************************************!*\
|
||||
!*** ./node_modules/@aparajita/capacitor-biometric-auth/dist/esm/base.js ***!
|
||||
\***************************************************************************/
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "BiometricAuthBase": () => (/* binding */ BiometricAuthBase)
|
||||
/* harmony export */ });
|
||||
/* harmony import */ var _Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 71670);
|
||||
/* harmony import */ var _capacitor_app__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @capacitor/app */ 35057);
|
||||
/* harmony import */ var _capacitor_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @capacitor/core */ 97718);
|
||||
/* harmony import */ var _definitions__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./definitions */ 43172);
|
||||
|
||||
|
||||
|
||||
|
||||
class BiometricAuthBase extends _capacitor_core__WEBPACK_IMPORTED_MODULE_2__.WebPlugin {
|
||||
authenticate(options) {
|
||||
var _this = this;
|
||||
|
||||
return (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
|
||||
try {
|
||||
yield _this.internalAuthenticate(options);
|
||||
} catch (error) {
|
||||
// error will be an instance of CapacitorException on native platforms,
|
||||
// an instance of BiometryError on the web.
|
||||
if (error instanceof _capacitor_core__WEBPACK_IMPORTED_MODULE_2__.CapacitorException) {
|
||||
throw new _definitions__WEBPACK_IMPORTED_MODULE_3__.BiometryError(error.message, error.code);
|
||||
} else {
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
})();
|
||||
}
|
||||
|
||||
addResumeListener(listener) {
|
||||
var _this2 = this;
|
||||
|
||||
return (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
|
||||
return _capacitor_app__WEBPACK_IMPORTED_MODULE_1__.App.addListener('appStateChange', ({
|
||||
isActive
|
||||
}) => {
|
||||
if (isActive) {
|
||||
_this2.checkBiometry().then(info => {
|
||||
listener(info);
|
||||
}).catch(console.error);
|
||||
}
|
||||
});
|
||||
})();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 36650:
|
||||
/*!*****************************************************************************!*\
|
||||
!*** ./node_modules/@aparajita/capacitor-biometric-auth/dist/esm/native.js ***!
|
||||
\*****************************************************************************/
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "BiometricAuthNative": () => (/* binding */ BiometricAuthNative)
|
||||
/* harmony export */ });
|
||||
/* harmony import */ var _Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 71670);
|
||||
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./base */ 73315);
|
||||
/* harmony import */ var _definitions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./definitions */ 43172);
|
||||
|
||||
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/require-await */
|
||||
// eslint-disable-next-line import/prefer-default-export
|
||||
|
||||
class BiometricAuthNative extends _base__WEBPACK_IMPORTED_MODULE_1__.BiometricAuthBase {
|
||||
constructor(capProxy) {
|
||||
super();
|
||||
/*
|
||||
In order to call native methods and maintain the ability to
|
||||
call pure Javascript methods as well, we have to bind the native methods
|
||||
to the proxy.
|
||||
capProxy is a proxy of an instance of this class, so it is safe
|
||||
to cast it to this class.
|
||||
*/
|
||||
|
||||
const proxy = capProxy;
|
||||
/* eslint-disable @typescript-eslint/unbound-method */
|
||||
|
||||
this.checkBiometry = proxy.checkBiometry;
|
||||
this.internalAuthenticate = proxy.internalAuthenticate;
|
||||
/* eslint-enable @typescript-eslint/unbound-method */
|
||||
} // @native
|
||||
|
||||
|
||||
checkBiometry() {
|
||||
return (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
|
||||
// Never used, but we have to satisfy the compiler.
|
||||
return Promise.resolve({
|
||||
isAvailable: false,
|
||||
strongBiometryIsAvailable: false,
|
||||
biometryType: _definitions__WEBPACK_IMPORTED_MODULE_2__.BiometryType.none,
|
||||
biometryTypes: [],
|
||||
deviceIsSecure: false,
|
||||
reason: '',
|
||||
code: _definitions__WEBPACK_IMPORTED_MODULE_2__.BiometryErrorType.none,
|
||||
strongReason: '',
|
||||
strongCode: _definitions__WEBPACK_IMPORTED_MODULE_2__.BiometryErrorType.none
|
||||
});
|
||||
})();
|
||||
} // @native
|
||||
// On native platforms, this will present the native authentication UI.
|
||||
|
||||
|
||||
internalAuthenticate(options) {
|
||||
return (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {})();
|
||||
} // Web only, used for simulating biometric authentication.
|
||||
|
||||
|
||||
setBiometryType(type) {
|
||||
return (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
|
||||
console.warn('setBiometryType() is web only');
|
||||
})();
|
||||
} // Web only, used for simulating biometry enrollment.
|
||||
|
||||
|
||||
setBiometryIsEnrolled(enrolled) {
|
||||
return (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
|
||||
console.warn('setBiometryEnrolled() is web only');
|
||||
})();
|
||||
} // Web only, used for simulating device security.
|
||||
|
||||
|
||||
setDeviceIsSecure(isSecure) {
|
||||
return (0,_Volumes_case_workspace_work_APPS_KA_APP_WORK_NOW_KA_PASS_V2_2_6_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
|
||||
console.warn('setDeviceIsSecure() is web only');
|
||||
})();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 64406:
|
||||
/*!**************************************************************************************************************!*\
|
||||
!*** ./node_modules/@aparajita/capacitor-biometric-auth/node_modules/@capacitor/app/dist/esm/definitions.js ***!
|
||||
\**************************************************************************************************************/
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 35057:
|
||||
/*!********************************************************************************************************!*\
|
||||
!*** ./node_modules/@aparajita/capacitor-biometric-auth/node_modules/@capacitor/app/dist/esm/index.js ***!
|
||||
\********************************************************************************************************/
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "App": () => (/* binding */ App)
|
||||
/* harmony export */ });
|
||||
/* harmony import */ var _capacitor_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @capacitor/core */ 97718);
|
||||
/* harmony import */ var _definitions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./definitions */ 64406);
|
||||
|
||||
const App = (0,_capacitor_core__WEBPACK_IMPORTED_MODULE_0__.registerPlugin)('App', {
|
||||
web: () => __webpack_require__.e(/*! import() */ 740).then(__webpack_require__.bind(__webpack_require__, /*! ./web */ 50740)).then(m => new m.AppWeb())
|
||||
});
|
||||
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}])
|
||||
//# sourceMappingURL=6650.js.map
|
||||
Reference in New Issue
Block a user