Module 610402

974 characters · in f7f7c05815ea751a.js
Dependencies
Required by (1)
Lazily required by (0)none
Requires (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){n.d(t,{IA:()=>a,Qk:()=>c,fl:()=>i,q0:()=>o,qm:()=>u,x2:()=>l});let i="__DISCORD_APPLY_INCODE_FALLBACK_SESSION__";var r,a=88245==n.j?((r={}).COMPLETED="completed",r.CANCELLED="cancelled",r.ERROR="error",r):null;function l(){let e=window.__DISCORD_AGE_VERIFICATION_INCODE_PARAMS__;if(null==e||"object"!=typeof e)return null;let{schemaVersion:t,apiUrl:n,sessionToken:i,consentId:r,interviewId:a,theme:l,method:s}=e;return null!=t&&2!==t||"string"!=typeof n||"string"!=typeof i||"string"!=typeof r||"string"!=typeof a||null!=l&&"string"!=typeof l?null:{apiUrl:n,sessionToken:i,consentId:r,interviewId:a,theme:l??null,method:s??null}}function s(e){let t=window.ReactNativeWebView;t?.postMessage(e)}function o(e){s(JSON.stringify({eventType:"Verification.Result",status:e}))}function c(e){s(JSON.stringify({eventType:"Verification.CaptureComplete",interviewId:e}))}function u(e){s(JSON.stringify({eventType:"Verification.FallbackRequest",previousInterviewId:e}))}}