PageSourceSearch

https://app.cardonomics.com/assets/biometric.client-DnXrkJPk.js

js cardonomics.com collected 2026-10-02 00:00:52 UTC 3,009 bytes, 3 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/web-D9lRA5u6.js","assets/index-7bB-WqSU.js"])))=>i.map(i=>d[i]);
2import{r as s,_ as C,C as R}from"./index-7bB-WqSU.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};a.SENTRY_RELEASE={id:"818024d729f87bbd540c77bc2ba4ef8ff6487be6"};var N=new a.Error().stack;N&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[N]="d54fa62c-d61e-48f4-8432-e87951d2656b",a._sentryDebugIdIdentifier="sentry-dbid-d54fa62c-d61e-48f4-8432-e87951d2656b")}catch{}})();var I;(function(a){a[a.NONE=0]="NONE",a[a.TOUCH_ID=1]="TOUCH_ID",a[a.FACE_ID=2]="FACE_ID",a[a.FINGERPRINT=3]="FINGERPRINT",a[a.FACE_AUTHENTICATION=4]="FACE_AUTHENTICATION",a[a.IRIS_AUTHENTICATION=5]="IRIS_AUTHENTICATION",a[a.MULTIPLE=6]="MULTIPLE",a[a.DEVICE_CREDENTIAL=7]="DEVICE_CREDENTIAL"})(I||(I={}));var T;(function(a){a[a.NONE=0]="NONE",a[a.STRONG=1]="STRONG",a[a.WEAK=2]="WEAK"})(T||(T={}));var l;(function(a){a[a.NONE=0]="NONE",a[a.BIOMETRY_CURRENT_SET=1]="BIOMETRY_CURRENT_SET",a[a.BIOMETRY_ANY=2]="BIOMETRY_ANY"})(l||(l={}));var O;(function(a){a[a.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",a[a.BIOMETRICS_UNAVAILABLE=1]="BIOMETRICS_UNAVAILABLE",a[a.USER_LOCKOUT=2]="USER_LOCKOUT",a[a.BIOMETRICS_NOT_ENROLLED=3]="BIOMETRICS_NOT_ENROLLED",a[a.USER_TEMPORARY_LOCKOUT=4]="USER_TEMPORARY_LOCKOUT",a[a.AUTHENTICATION_FAILED=10]="AUTHENTICATION_FAILED",a[a.APP_CANCEL=11]="APP_CANCEL",a[a.INVALID_CONTEXT=12]="INVALID_CONTEXT",a[a.NOT_INTERACTIVE=13]="NOT_INTERACTIVE",a[a.PASSCODE_NOT_SET=14]="PASSCODE_NOT_SET",a[a.SYSTEM_CANCEL=15]="SYSTEM_CANCEL",a[a.USER_CANCEL=16]="USER_CANCEL",a[a.USER_FALLBACK=17]="USER_FALLBACK"})(O||(O={}));const _=s("NativeBiometric",{web:()=>C(()=>import("./web-D9lRA5u6.js"),__vite__mapDeps([0,1])).then(a=>new a.NativeBiometricWeb)}),e="cardonomics.app";function n(){return R.isNativePlatform()}async function d(){if(!n())return!1;try{return(await _.isAvailable()).isAvailable===!0}catch{return!1}}async function f(){var a;return n()?((a=window.localStorage)==null?void 0:a.getItem("biometric_enrolled"))==="1":!1}async function L(a){if(!n())return null;try{await _.verifyIdentity({reason:a,title:"Unlock Cardonomics",description:a});const N=await _.getCredentials({server:e});return(N==null?void 0:N.password)??null}catch{return null}}async function S(a,N){var E;if(!n())return!1;try{return await _.setCredentials({server:e,username:N,password:a}),(E=window.localStorage)==null||E.setItem("biometric_enrolled","1"),!0}catch{return!1}}async function t(){var a;if(n()){try{await _.deleteCredentials({server:e})}catch{}(a=window.localStorage)==null||a.removeItem("biometric_enrolled")}}const U=Object.freeze(Object.defineProperty({__proto__:null,clearBiometric:t,getJwtViaBiometric:L,hasStoredBiometricJwt:f,isBiometricAvailable:d,setJwt:S},Symbol.toStringTag,{value:"Module"}));export{T as A,I as B,U as b,t as c,L as g,f as h};
3//# sourceMappingURL=biometric.client-DnXrkJPk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.