diff --git a/assets/login.min.js b/assets/login.min.js index 16808b88..c955508a 100644 --- a/assets/login.min.js +++ b/assets/login.min.js @@ -1 +1 @@ -!function(e){function t(){return t=Object.assign?Object.assign.bind():function(e){for(var t=1;t

'+e+"

")}function h(){var e=document.getElementById("loginform"),r=function(e){var r;return t({},e,{challenge:l(s(e.challenge)),allowCredentials:null===(r=e.allowCredentials)||void 0===r?void 0:r.map((function(e){return t({},e,{id:l(s(e.id))})}))})}(tfa_webauthn.options);navigator.credentials.get({publicKey:r}).then((function(t){if(!t)throw new Error(n);var r,o;document.getElementById("webauthn_response").value=JSON.stringify((o=(r=t).response,{id:r.id,type:r.type,rawId:c(new Uint8Array(r.rawId)),clientExtensionResults:r.getClientExtensionResults(),response:{attestationObject:"attestationObject"in o?c(new Uint8Array(o.attestationObject)):void 0,authenticatorData:"authenticatorData"in o?c(new Uint8Array(o.authenticatorData)):void 0,signature:"signature"in o?c(new Uint8Array(o.signature)):void 0,userHandle:"userHandle"in o&&o.userHandle?c(new Uint8Array(o.userHandle)):void 0,clientDataJSON:c(new Uint8Array(r.response.clientDataJSON))}})),e.submit()})).catch((function(e){w(e instanceof DOMException?function(e,t){switch(e.name){case"NotAllowedError":return o;case"SecurityError":return a;case"NotSupportedError":return i;case"AbortError":return d;case"InvalidStateError":return u;default:return e.message}}(e):e.message),document.getElementById("webauthn-retry").removeAttribute("hidden")}))}e.__("This key is already registered.","two-factor-provider-webauthn"),e.__("This key is already registered.","two-factor-provider-webauthn"),e.__("Fetching registration information…","two-factor-provider-webauthn"),e.__("Generating credentials…","two-factor-provider-webauthn"),e.__("Registering credentials…","two-factor-provider-webauthn"),e.__("Unable to create public key credentials","two-factor-provider-webauthn"),e.__("The key has been registered.","two-factor-provider-webauthn"),e.__("Sending request…","two-factor-provider-webauthn"),e.__("The key has been revoked.","two-factor-provider-webauthn"),e.__("The key has been renamed.","two-factor-provider-webauthn");var p=function(){document.querySelector("#webauthn-retry .button").addEventListener("click",(function(e){document.getElementById("webauthn-retry").setAttribute("hidden","hidden"),h()})),"credentials"in navigator?navigator.webdriver?document.getElementById("webauthn-retry").removeAttribute("hidden"):h():w(r)};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",p):p()}(wp.i18n); +!function(e){function t(){return t=Object.assign?Object.assign.bind():function(e){for(var t=1;t

'+e+"

")}function h(){var e=document.getElementById("loginform"),r=function(e){var r;return t({},e,{challenge:l(s(e.challenge)),allowCredentials:null===(r=e.allowCredentials)||void 0===r?void 0:r.map((function(e){return t({},e,{id:l(s(e.id))})}))})}(tfa_webauthn.options);navigator.credentials.get({publicKey:r}).then((function(t){if(!t)throw new Error(n);var r,o;document.getElementById("webauthn_response").value=JSON.stringify((o=(r=t).response,{id:r.id,type:r.type,rawId:c(new Uint8Array(r.rawId)),clientExtensionResults:r.getClientExtensionResults(),response:{attestationObject:"attestationObject"in o?c(new Uint8Array(o.attestationObject)):void 0,authenticatorData:"authenticatorData"in o?c(new Uint8Array(o.authenticatorData)):void 0,signature:"signature"in o?c(new Uint8Array(o.signature)):void 0,userHandle:"userHandle"in o&&o.userHandle?c(new Uint8Array(o.userHandle)):void 0,clientDataJSON:c(new Uint8Array(r.response.clientDataJSON))}})),e.submit()})).catch((function(e){w(e instanceof DOMException?function(e,t){switch(e.name){case"NotAllowedError":return o;case"SecurityError":return a;case"NotSupportedError":return i;case"AbortError":return d;case"InvalidStateError":return u;default:return e.message}}(e):e.message),document.getElementById("webauthn-retry").removeAttribute("hidden")}))}e.__("This key is already registered.","two-factor-provider-webauthn"),e.__("This key is already registered.","two-factor-provider-webauthn"),e.__("Fetching registration information…","two-factor-provider-webauthn"),e.__("Generating credentials…","two-factor-provider-webauthn"),e.__("Registering credentials…","two-factor-provider-webauthn"),e.__("Unable to create public key credentials","two-factor-provider-webauthn"),e.__("The key has been registered.","two-factor-provider-webauthn"),e.__("Sending request…","two-factor-provider-webauthn"),e.__("The key has been revoked.","two-factor-provider-webauthn"),e.__("The key has been renamed.","two-factor-provider-webauthn");var b=function(){document.querySelector("#webauthn-retry .button").addEventListener("click",(function(){document.getElementById("webauthn-retry").setAttribute("hidden","hidden"),h()})),"credentials"in navigator?navigator.webdriver?document.getElementById("webauthn-retry").removeAttribute("hidden"):h():w(r)};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",b):b()}(wp.i18n); diff --git a/assets/login.min.js.map b/assets/login.min.js.map index 210c10d3..fe6eaddc 100644 --- a/assets/login.min.js.map +++ b/assets/login.min.js.map @@ -1 +1 @@ -{"version":3,"file":"login.min.js","sources":["lang.ts","common.ts","login.ts"],"sourcesContent":[null,null,null],"names":["L_WEBAUTHN_NOT_SUPPORTED","__","L_UNABLE_TO_GET_PK_CREDENTIAL","L_NOT_ALLOWED_ERROR","L_SECURITY_ERROR","L_NOT_SUPPORTED_ERROR","L_ABORT_ERROR","L_UNKNOWN_KEY","arrayToBase64String","a","window","btoa","String","fromCharCode","apply","base64UrlDecode","input","atob","replace","repeat","length","stringToBuffer","s","Uint8Array","from","c","charCodeAt","showError","error","el","document","getElementById","parentNode","removeChild","form","insertAdjacentHTML","startAuthentication","loginForm","publicKey","_extends","challenge","allowCredentials","_a","map","data","id","preparePublicKeyCredentialRequestOptions","tfa_webauthn","options","navigator","credentials","get","then","credential","Error","response","value","JSON","stringify","type","rawId","clientExtensionResults","getClientExtensionResults","attestationObject","undefined","authenticatorData","signature","userHandle","clientDataJSON","submit","e","DOMException","isAuth","name","message","decodeDOMException","removeAttribute","i18n","callback","querySelector","addEventListener","setAttribute","webdriver","readyState"],"mappings":"iPAEO,IAAMA,EAA2BC,EAAEA,GAAC,4CAA6C,gCAC3EC,EAAgCD,EAAEA,GAC9C,yCACA,gCAEYE,EAAsBF,EAAEA,GAAC,8BAA+B,gCACxDG,EAAmBH,EAAEA,GAAC,6BAA8B,gCACpDI,EAAwBJ,EAAEA,GAAC,kCAAmC,gCAC9DK,EAAgBL,EAAEA,GAAC,8BAA+B,gCAClDM,EAAgBN,EAAEA,GAAC,qCAAsC,gCC6BtE,SA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BF,GAE9CA"} \ No newline at end of file +{"version":3,"file":"login.min.js","sources":["lang.ts","common.ts","login.ts"],"sourcesContent":[null,null,null],"names":["L_WEBAUTHN_NOT_SUPPORTED","__","L_UNABLE_TO_GET_PK_CREDENTIAL","L_NOT_ALLOWED_ERROR","L_SECURITY_ERROR","L_NOT_SUPPORTED_ERROR","L_ABORT_ERROR","L_UNKNOWN_KEY","arrayToBase64String","a","window","btoa","String","fromCharCode","apply","base64UrlDecode","input","atob","replace","repeat","length","stringToBuffer","s","Uint8Array","from","c","charCodeAt","showError","error","el","document","getElementById","parentNode","removeChild","form","insertAdjacentHTML","startAuthentication","loginForm","publicKey","_extends","challenge","allowCredentials","_a","map","data","id","preparePublicKeyCredentialRequestOptions","tfa_webauthn","options","navigator","credentials","get","then","credential","Error","response","value","JSON","stringify","type","rawId","clientExtensionResults","getClientExtensionResults","attestationObject","undefined","authenticatorData","signature","userHandle","clientDataJSON","submit","e","DOMException","isAuth","name","message","decodeDOMException","removeAttribute","i18n","callback","querySelector","addEventListener","setAttribute","webdriver","readyState"],"mappings":"qOAEO,IAAMA,EAA2BC,EAAEA,GAAC,4CAA6C,gCAC3EC,EAAgCD,EAAEA,GAC9C,yCACA,gCAEYE,EAAsBF,EAAEA,GAAC,8BAA+B,gCACxDG,EAAmBH,EAAEA,GAAC,6BAA8B,gCACpDI,EAAwBJ,EAAEA,GAAC,kCAAmC,gCAC9DK,EAAgBL,EAAEA,GAAC,8BAA+B,gCAClDM,EAAgBN,EAAEA,GAAC,qCAAsC,gCC6BtE,SAASO,EAAoBC,GAC5B,OAAOC,OAAOC,KAAKC,OAAOC,aAAYC,MAAnBF,OAAuBH,GAC3C,CAEA,SAASM,EAAgBC,GACxB,OAAON,OAAOO,KAAKD,EAAME,QAAQ,KAAM,KAAKA,QAAQ,KAAM,KAAO,IAAIC,OAAO,GAAM,EAAIH,EAAMI,QAAU,GACvG,CAEA,SAASC,EAAeC,GACvB,OAAOC,WAAWC,KAAKF,GAAG,SAACG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rEhE/B,EAAUgC,QAIZ,IAAE,OACK,SAACC,GAEP3C,EADgB2C,aAAaC,aDoEhB,SAAmBD,EAAiBE,GACnD,OAAQF,EAAEG,MACT,IAAK,kBACJ,OAAOtE,EAER,IAAK,gBACJ,OAAOC,EAER,IAAK,oBACJ,OAAOC,EAER,IAAK,aACJ,OAAOC,EAER,IAAK,oBACJ,OAAgBC,EAEjB,QACC,OAAO+D,EAAEI,QAEZ,CCxF+CC,CAAmBL,GAAWA,EAAEI,SAE3E5C,SAASC,eAAe,kBAAqC6C,gBAAgB,SAC/E,GACF,CFpCwC3E,EAAAA,GAAG,kCAAmC,gCAC/CA,EAAAA,GAAG,kCAAmC,gCAClCA,EAAAA,GAAG,qCAAsC,gCACpCA,EAAAA,GAAG,0BAA2B,gCAC7BA,EAAAA,GAAG,2BAA4B,gCAC1BA,EAAAA,GAC7C,0CACA,gCAE+BA,EAAAA,GAAG,+BAAgC,gCAClCA,EAAAA,GAAG,mBAAoB,gCAC3BA,EAAAA,GAAG,4BAA6B,gCAC9B4E,EAAA5E,GAAC,4BAA6B,gCE0B7D,IAAM6E,EAAW,WACIhD,SAASiD,cAAc,2BAC/BC,iBAAiB,SAAS,WACpClD,SAASC,eAAe,kBAAqCkD,aAAa,SAAU,UACrF7C,GACD,IAEI,gBAAiBa,UACfA,UAAUiC,UAGbpD,SAASC,eAAe,kBAAqC6C,gBAAgB,UAF9ExC,IAKDT,EAAU3B,EAEZ,EAE4B,YAAxB8B,SAASqD,WACZrD,SAASkD,iBAAiB,mBAAoBF,GAE9CA"} \ No newline at end of file diff --git a/assets/login.ts b/assets/login.ts index a514456a..42ae2686 100644 --- a/assets/login.ts +++ b/assets/login.ts @@ -50,7 +50,7 @@ function startAuthentication(): void { const callback = (): void => { const retryButton = document.querySelector('#webauthn-retry .button') as HTMLButtonElement; - retryButton.addEventListener('click', (e) => { + retryButton.addEventListener('click', () => { (document.getElementById('webauthn-retry') as HTMLDivElement).setAttribute('hidden', 'hidden'); startAuthentication(); }); diff --git a/assets/profile.min.js b/assets/profile.min.js index 69b4024a..56535c12 100644 --- a/assets/profile.min.js +++ b/assets/profile.min.js @@ -1 +1 @@ -!function(e,t){function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t

'+e+"

"):t.find(".security-key-status").text("")}function k(e){var n=e instanceof DOMException?function(e,t){switch(e.name){case"NotAllowedError":return r;case"SecurityError":return a;case"NotSupportedError":return i;case"AbortError":return o;case"InvalidStateError":return s;default:return e.message}}(e):e.message,c=t.find(".registered-keys");c.siblings(".notice").remove(),c.before('")}t.find(".add-webauthn-key button").on("click",(function(){t.find(".registered-keys").prev(".notice").remove(),c(d),g({action:"webauthn_preregister",_ajax_nonce:tfa_webauthn.nonce,user_id:e("#user_id").val()}).then((function(e){c(u),tfa_webauthn.nonce=e.data.nonce;var t=function(e){var t;return n({},e,{user:n({},e.user,{id:_(y(e.user.id))}),challenge:_(y(e.challenge)),excludeCredentials:null===(t=e.excludeCredentials)||void 0===t?void 0:t.map((function(e){return n({},e,{id:_(y(e.id))})}))})}(e.data.options);return navigator.credentials.create({publicKey:t})})).then((function(t){if(t){c(l);var n=e("#webauthn-key-name").val();return g({action:"webauthn_register",_ajax_nonce:tfa_webauthn.nonce,credential:JSON.stringify((r=t,a=r.response,{id:r.id,type:r.type,rawId:p(new Uint8Array(r.rawId)),clientExtensionResults:r.getClientExtensionResults(),response:{attestationObject:"attestationObject"in a?p(new Uint8Array(a.attestationObject)):void 0,authenticatorData:"authenticatorData"in a?p(new Uint8Array(a.authenticatorData)):void 0,signature:"signature"in a?p(new Uint8Array(a.signature)):void 0,userHandle:"userHandle"in a&&a.userHandle?p(new Uint8Array(a.userHandle)):void 0,clientDataJSON:p(new Uint8Array(r.response.clientDataJSON))}})),user_id:e("#user_id").val(),name:n})}var r,a;throw new Error(f)})).then((function(e){tfa_webauthn.nonce=e.data.nonce;var n=t.find(".registered-keys");n.find("tbody > tr:last-child").after(e.data.row),n.find("tbody > tr.no-items").remove(),n.before('")})).catch(k).finally((function(){c(""),e("#webauthn-key-name").val("")}))})),t.find(".registered-keys").on("click","tbody .delete a",(function(n){t.find(".registered-keys").prev(".notice").remove(),n.preventDefault();var r=e(n.target),a=r.closest(".row-actions");if(!a.siblings(".confirm-revoke").length){var i=r.data("handle"),o=r.data("nonce"),s=t.find(".registered-keys"),d=e(e("#webauthn-revoke-confirm").text());a.after(d),a.siblings(".confirm-revoke").on("click",".button-secondary",(function(){a.siblings(".confirm-revoke").remove()})).on("click",".button-link-delete",(function(){a.siblings(".confirm-revoke").hide(),c(b),g({action:"webauthn_delete_key",_ajax_nonce:o,user_id:e("#user_id").val(),handle:i}).then((function(){s.before('"),r.closest("tr").remove(),s.find("tbody > tr").length||s.find("tbody").append(e("#webauthn-no-keys").text())})).catch(k).finally((function(){c(""),a.siblings(".confirm-revoke").remove()}))}))}})),t.find(".registered-keys").on("click","tbody .rename a",(function(n){t.find(".registered-keys").prev(".notice").remove(),n.preventDefault();var r=e(n.target),a=r.closest(".row-actions");if(!a.siblings(".rename-key").length){var i=r.data("handle"),o=r.data("nonce"),s=r.closest("td").find("span.key-name").text().trim(),d=t.find(".registered-keys"),u=e(e("#webauthn-rename-key").text());a.after(u),a.siblings(".rename-key").on("click",".button-secondary",(function(){a.siblings(".rename-key").remove()})).on("click",".button-primary",(function(){var t=a.siblings(".rename-key").find('input[type="text"]').val();a.siblings(".rename-key").hide(),c(b),g({action:"webauthn_rename_key",_ajax_nonce:o,user_id:e("#user_id").val(),handle:i,name:t}).then((function(e){d.before('"),r.closest("td").find("span.key-name").text(e.data.name)})).catch(k).finally((function(){c(""),a.siblings(".rename-key").remove()}))})).find('input[type="text"]').val(s)}}))}))}(jQuery,wp.i18n); +!function(e,t){function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t

'+e+"

"):t.find(".security-key-status").text("")}function k(e){var n=e instanceof DOMException?function(e,t){switch(e.name){case"NotAllowedError":return r;case"SecurityError":return a;case"NotSupportedError":return i;case"AbortError":return o;case"InvalidStateError":return s;default:return e.message}}(e):e.message,c=t.find(".registered-keys");c.siblings(".notice").remove(),c.before('")}t.find(".add-webauthn-key button").on("click",(function(){t.find(".registered-keys").prev(".notice").remove(),c(d),g({action:"webauthn_preregister",_ajax_nonce:tfa_webauthn.nonce,user_id:e("#user_id").val()}).then((function(e){c(u),tfa_webauthn.nonce=e.data.nonce;var t=function(e){var t;return n({},e,{user:n({},e.user,{id:_(y(e.user.id))}),challenge:_(y(e.challenge)),excludeCredentials:null===(t=e.excludeCredentials)||void 0===t?void 0:t.map((function(e){return n({},e,{id:_(y(e.id))})}))})}(e.data.options);return navigator.credentials.create({publicKey:t})})).then((function(t){if(t){c(l);var n=e("#webauthn-key-name").val();return g({action:"webauthn_register",_ajax_nonce:tfa_webauthn.nonce,credential:JSON.stringify((r=t,a=r.response,{id:r.id,type:r.type,rawId:p(new Uint8Array(r.rawId)),clientExtensionResults:r.getClientExtensionResults(),response:{attestationObject:"attestationObject"in a?p(new Uint8Array(a.attestationObject)):void 0,authenticatorData:"authenticatorData"in a?p(new Uint8Array(a.authenticatorData)):void 0,signature:"signature"in a?p(new Uint8Array(a.signature)):void 0,userHandle:"userHandle"in a&&a.userHandle?p(new Uint8Array(a.userHandle)):void 0,clientDataJSON:p(new Uint8Array(r.response.clientDataJSON))}})),user_id:e("#user_id").val(),name:n})}var r,a;throw new Error(f)})).then((function(e){tfa_webauthn.nonce=e.data.nonce;var n=t.find(".registered-keys");n.find("tbody > tr:last-child").after(e.data.row),n.find("tbody > tr.no-items").remove(),n.before('")})).catch(k).finally((function(){c(""),e("#webauthn-key-name").val("")}))})),t.find(".registered-keys").on("click","tbody .delete a",(function(n){t.find(".registered-keys").prev(".notice").remove(),n.preventDefault();var r=e(n.target),a=r.closest(".row-actions");if(!a.siblings(".confirm-revoke").length){var i=r.data("handle"),o=r.data("nonce"),s=t.find(".registered-keys"),d=e(e("#webauthn-revoke-confirm").text());a.after(d),a.siblings(".confirm-revoke").on("click",".button-secondary",(function(){a.siblings(".confirm-revoke").remove()})).on("click",".button-link-delete",(function(){a.siblings(".confirm-revoke").hide(),c(b),g({action:"webauthn_delete_key",_ajax_nonce:o,user_id:e("#user_id").val(),handle:i}).then((function(){s.before('"),r.closest("tr").remove(),s.find("tbody > tr").length||s.find("tbody").append(e("#webauthn-no-keys").text())})).catch(k).finally((function(){c(""),a.siblings(".confirm-revoke").remove()}))}))}})),t.find(".registered-keys").on("click","tbody .rename a",(function(n){t.find(".registered-keys").prev(".notice").remove(),n.preventDefault();var r=e(n.target),a=r.closest(".row-actions");if(!a.siblings(".rename-key").length){var i=r.data("handle"),o=r.data("nonce"),s=r.closest("td").find("span.key-name").text().trim(),d=t.find(".registered-keys"),u=e(e("#webauthn-rename-key").text());a.after(u),a.siblings(".rename-key").on("click",".button-secondary",(function(){a.siblings(".rename-key").remove()})).on("click",".button-primary",(function(){var t=a.siblings(".rename-key").find('input[type="text"]').val();a.siblings(".rename-key").hide(),c(b),g({action:"webauthn_rename_key",_ajax_nonce:o,user_id:e("#user_id").val(),handle:i,name:t}).then((function(e){d.before('"),r.closest("td").find("span.key-name").text(e.data.name)})).catch(k).finally((function(){c(""),a.siblings(".rename-key").remove()}))})).find('input[type="text"]').val(s)}}))}))}(jQuery,wp.i18n); diff --git a/assets/profile.min.js.map b/assets/profile.min.js.map index 585812d1..12c8ee6b 100644 --- a/assets/profile.min.js.map +++ b/assets/profile.min.js.map @@ -1 +1 @@ -{"version":3,"file":"profile.min.js","sources":["lang.ts","common.ts","profile.ts"],"sourcesContent":[null,null,null],"names":["__","L_NOT_ALLOWED_ERROR","L_SECURITY_ERROR","L_NOT_SUPPORTED_ERROR","L_ABORT_ERROR","L_KEY_ALREADY_REGISTERED","L_UNKNOWN_ERROR","L_FETCHING_REG_INFO","L_GENERATING_CREDENTIALS","L_REGISTERING_CREDENTIALS","L_FAILED_TO_CREATE_CREDENTIALS","L_KEY_REGISTERED","L_SENDING_REQUEST","L_KEY_REVOKED","L_KEY_RENAMED","arrayToBase64String","a","window","btoa","String","fromCharCode","apply","base64UrlDecode","input","atob","replace","repeat","length","stringToBuffer","s","Uint8Array","from","c","charCodeAt","ajaxRequest","data","Promise","resolve","reject","jQuery","ajax","method","url","ajaxurl","done","response","fail","message","responseJSON","statusText","Error","$","parent","updateStatus","status","find","html","text","errorHandler","e","DOMException","isAuth","name","decodeDOMException","table","siblings","remove","before","on","prev","action","_ajax_nonce","tfa_webauthn","nonce","user_id","val","then","publicKey","_extends","user","id","challenge","excludeCredentials","_a","map","preparePublicKeyCreationOptions","options","navigator","credentials","create","credential","JSON","stringify","type","rawId","clientExtensionResults","getClientExtensionResults","attestationObject","undefined","authenticatorData","signature","userHandle","clientDataJSON","after","row","preventDefault","target","actions","closest","handle","tpl","hide","append","trim","keyname","r"],"mappings":"mPAEwCA,EAAAA,GAAG,4CAA6C,gCAC3CA,EAAAA,GAC5C,yCACA,gCAEM,IAAMC,EAAsBD,EAAEA,GAAC,8BAA+B,gCACxDE,EAAmBF,EAAEA,GAAC,6BAA8B,gCACpDG,EAAwBH,EAAEA,GAAC,kCAAmC,gCAC9DI,EAAgBJ,EAAEA,GAAC,8BAA+B,gCAClCA,EAAAA,GAAG,qCAAsC,gCAC/D,IAAMK,EAA2BL,EAAEA,GAAC,kCAAmC,gCACjEM,EAAkBN,EAAEA,GAAC,kCAAmC,gCACxDO,EAAsBP,EAAEA,GAAC,qCAAsC,gCAC/DQ,EAA2BR,EAAEA,GAAC,0BAA2B,gCACzDS,EAA4BT,EAAEA,GAAC,2BAA4B,gCAC3DU,EAAiCV,EAAEA,GAC/C,0CACA,gCAEYW,EAAmBX,EAAEA,GAAC,+BAAgC,gCACtDY,EAAoBZ,EAAEA,GAAC,mBAAoB,gCAC3Ca,EAAgBb,EAAEA,GAAC,4BAA6B,gCAChDc,EAAgBd,EAAAA,GAAG,4BAA6B,gCCgB7D,SAASe,EAAoBC,GAC5B,OAAOC,OAAOC,KAAKC,OAAOC,aAAYC,MAAnBF,OAAuBH,GAC3C,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E,qBAAqBM,OAEnD,IACK,MAACC,GAAa,SACX,WACRL,EAAa,IACbsD,EAAQ1C,SAAS,mBAAmBC,QACrC,GACF,GAtCD,CAuCD,IAEAd,EAAOG,KAAK,oBAAoBa,GAAG,QAAS,mBAAmB,SAACT,GAC/DP,EAAOG,KAAK,oBAAoBc,KAAK,WAAWH,SAChDP,EAAE8C,iBACF,IAAMzF,EAAImC,EAAEQ,EAAE+C,QACRC,EAAU3F,EAAE4F,QAAQ,gBAC1B,IAAID,EAAQ1C,SAAS,eAAetC,OAApC,CAIA,IAAMkF,EAAiB7F,EAAEmB,KAAK,UACxBsC,EAAgBzD,EAAEmB,KAAK,SACvB2B,EAAO9C,EAAE4F,QAAQ,MAAMrD,KAAK,iBAAiBE,OAAOwD,OACpDjD,EAAQZ,EAAOG,KAAK,oBAEpBuD,EAAM3D,EAAEA,EAAE,wBAAwBM,QACxCkD,EAAQJ,MAAMO,GACdH,EACE1C,SAAS,eACTG,GAAG,QAAS,qBAAqB,WACjCuC,EAAQ1C,SAAS,eAAeC,QAChC,IACAE,GAAG,QAAS,mBAAmB,WAC/B,IAAM8C,EAAUP,EAAQ1C,SAAS,eAAeV,KAAK,sBAAsBoB,MAC3EgC,EAAQ1C,SAAS,eAAe8C,OAChC1D,EAAazC,GACbsB,EAA4B,CAC3BoC,OAAQ,sBACRC,YAAaE,EACbC,QAASvB,EAAE,YAAYwB,MACvBkC,OAAAA,EACA/C,KAAMoD,IAELtC,MAAK,SAACuC,GACNnD,EAAMG,OACL,gFACCrD,EACA,cAGFE,EAAE4F,QAAQ,MAAMrD,KAAK,iBAAiBE,KAAK0D,EAAEhF,KAAK2B,KAClD,IACK,MAACJ,GAAa,SACX,WACRL,EAAa,IACbsD,EAAQ1C,SAAS,eAAeC,QACjC,GACD,IACAX,KAAK,sBACLoB,IAAIb,EAzCN,CA0CD,GACD"} \ No newline at end of file +{"version":3,"file":"profile.min.js","sources":["lang.ts","common.ts","profile.ts"],"sourcesContent":[null,null,null],"names":["__","L_NOT_ALLOWED_ERROR","L_SECURITY_ERROR","L_NOT_SUPPORTED_ERROR","L_ABORT_ERROR","L_KEY_ALREADY_REGISTERED","L_UNKNOWN_ERROR","L_FETCHING_REG_INFO","L_GENERATING_CREDENTIALS","L_REGISTERING_CREDENTIALS","L_FAILED_TO_CREATE_CREDENTIALS","L_KEY_REGISTERED","L_SENDING_REQUEST","L_KEY_REVOKED","L_KEY_RENAMED","arrayToBase64String","a","window","btoa","String","fromCharCode","apply","base64UrlDecode","input","atob","replace","repeat","length","stringToBuffer","s","Uint8Array","from","c","charCodeAt","ajaxRequest","data","Promise","resolve","reject","jQuery","ajax","method","url","ajaxurl","done","response","fail","message","responseJSON","statusText","Error","$","parent","updateStatus","status","find","html","text","errorHandler","e","DOMException","isAuth","name","decodeDOMException","table","siblings","remove","before","on","prev","action","_ajax_nonce","tfa_webauthn","nonce","user_id","val","then","publicKey","_extends","user","id","challenge","excludeCredentials","_a","map","preparePublicKeyCreationOptions","options","navigator","credentials","create","credential","JSON","stringify","type","rawId","clientExtensionResults","getClientExtensionResults","attestationObject","undefined","authenticatorData","signature","userHandle","clientDataJSON","after","row","preventDefault","target","actions","closest","handle","tpl","hide","append","trim","keyname","r"],"mappings":"uOAEwCA,EAAAA,GAAG,4CAA6C,gCAC3CA,EAAAA,GAC5C,yCACA,gCAEM,IAAMC,EAAsBD,EAAEA,GAAC,8BAA+B,gCACxDE,EAAmBF,EAAEA,GAAC,6BAA8B,gCACpDG,EAAwBH,EAAEA,GAAC,kCAAmC,gCAC9DI,EAAgBJ,EAAEA,GAAC,8BAA+B,gCAClCA,EAAAA,GAAG,qCAAsC,gCAC/D,IAAMK,EAA2BL,EAAEA,GAAC,kCAAmC,gCACjEM,EAAkBN,EAAEA,GAAC,kCAAmC,gCACxDO,EAAsBP,EAAEA,GAAC,qCAAsC,gCAC/DQ,EAA2BR,EAAEA,GAAC,0BAA2B,gCACzDS,EAA4BT,EAAEA,GAAC,2BAA4B,gCAC3DU,EAA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