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vC,EAAOre,WAAUqe,EAAOre,SAAW,IACjCqe,G,MCER,IAAIwC,EAAkB,CACrB,IAAK,EACL,IAAK,GAaN5C,EAAoBS,EAAEM,EAAK8B,GAA0C,IAA7BD,EAAgBC,GAGxD,IAAIC,EAAuB,CAACC,EAA4B1iB,KACvD,IAGI4f,EAAU4C,GAHTnC,EAAUsC,EAAaC,GAAW5iB,EAGhB0D,EAAI,EAC3B,GAAG2c,EAASwC,MAAM7C,GAAgC,IAAxBuC,EAAgBvC,KAAa,CACtD,IAAIJ,KAAY+C,EACZhD,EAAoBgC,EAAEgB,EAAa/C,KACrCD,EAAoBQ,EAAEP,GAAY+C,EAAY/C,IAGhD,GAAGgD,EAAS,IAAIhb,EAASgb,EAAQjD,EAClC,CAEA,IADG+C,GAA4BA,EAA2B1iB,GACrD0D,EAAI2c,EAASxc,OAAQH,IACzB8e,EAAUnC,EAAS3c,GAChBic,EAAoBgC,EAAEY,EAAiBC,IAAYD,EAAgBC,IACrED,EAAgBC,GAAS,KAE1BD,EAAgBC,GAAW,EAE5B,OAAO7C,EAAoBS,EAAExY,EAAO,EAGjCkb,EAAqBC,KAAqB,eAAIA,KAAqB,gBAAK,GAC5ED,EAAmBrB,QAAQgB,EAAqBO,KAAK,KAAM,IAC3DF,EAAmB9Z,KAAOyZ,EAAqBO,KAAK,KAAMF,EAAmB9Z,KAAKga,KAAKF,G,KC9CvF,IAAIG,EAAsBtD,EAAoBS,OAAElf,EAAW,CAAC,IAAI,KAAK,IAAOye,EAAoB,QAChGsD,EAAsBtD,EAAoBS,EAAE6C,E","sources":["webpack://ui/webpack/runtime/chunk loaded","webpack://ui/webpack/runtime/create fake namespace object","webpack://ui/./src/features/AuthFlow/types.tsx","webpack://ui/./src/components/FlowCompleteView/index.tsx","webpack://ui/./src/components/FlowReturnView/index.tsx","webpack://ui/./src/components/LoadingView/index.tsx","webpack://ui/./src/features/AuthFlow/view.tsx","webpack://ui/./src/features/AuthFlow/provider.tsx","webpack://ui/./src/components/Logos/Gartner.tsx","webpack://ui/./src/components/Layout/footer.tsx","webpack://ui/./src/content/marketing.ts","webpack://ui/./src/components/Layout/pangea.tsx","webpack://ui/./src/components/Layout/hosted.tsx","webpack://ui/./src/components/Layout/index.tsx","webpack://ui/./src/login_component.tsx","webpack://ui/./src/App.tsx","webpack://ui/webpack/bootstrap","webpack://ui/webpack/runtime/compat get default export","webpack://ui/webpack/runtime/define property getters","webpack://ui/webpack/runtime/global","webpack://ui/webpack/runtime/harmony module decorator","webpack://ui/webpack/runtime/hasOwnProperty shorthand","webpack://ui/webpack/runtime/make namespace object","webpack://ui/webpack/runtime/node module decorator","webpack://ui/webpack/runtime/jsonp chunk loading","webpack://ui/webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);\nvar leafPrototypes;\n// create a fake namespace object\n// mode & 1: value is a module id, require it\n// mode & 2: merge all properties of value into the ns\n// mode & 4: return value when already ns object\n// mode & 16: return value when it's Promise-like\n// mode & 8|1: behave like require\n__webpack_require__.t = function(value, mode) {\n\tif(mode & 1) value = this(value);\n\tif(mode & 8) return value;\n\tif(typeof value === 'object' && value) {\n\t\tif((mode & 4) && value.__esModule) return value;\n\t\tif((mode & 16) && typeof value.then === 'function') return value;\n\t}\n\tvar ns = Object.create(null);\n\t__webpack_require__.r(ns);\n\tvar def = {};\n\tleafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];\n\tfor(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {\n\t\tObject.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));\n\t}\n\tdef['default'] = () => (value);\n\t__webpack_require__.d(ns, def);\n\treturn ns;\n};","export var FlowPhase;\n(function (FlowPhase) {\n FlowPhase[\"INIT\"] = \"init\";\n FlowPhase[\"START\"] = \"start\";\n FlowPhase[\"SIGNUP\"] = \"signup\";\n FlowPhase[\"LOGIN\"] = \"login\";\n FlowPhase[\"PASSWORD\"] = \"password\";\n FlowPhase[\"SET_PASSWORD\"] = \"set_password\";\n FlowPhase[\"RESET_PASSWORD\"] = \"reset_password\";\n FlowPhase[\"PROVISIONAL\"] = \"provisional\";\n FlowPhase[\"SOCIAL\"] = \"social\";\n FlowPhase[\"CAPTCHA\"] = \"captcha\";\n FlowPhase[\"VERIFY_EMAIL\"] = \"verify_email\";\n FlowPhase[\"EMAIL_OTP\"] = \"email_otp\";\n FlowPhase[\"SMS_OTP\"] = \"sms_otp\";\n FlowPhase[\"TOTP\"] = \"totp\";\n FlowPhase[\"MAGICLINK\"] = \"magiclink\";\n FlowPhase[\"AGREEMENTS\"] = \"agreements\";\n FlowPhase[\"PROFILE\"] = \"profile\";\n FlowPhase[\"PASSKEY\"] = \"passkey\";\n FlowPhase[\"CONSENT\"] = \"oauth_consent\";\n FlowPhase[\"COMPLETE\"] = \"complete\";\n FlowPhase[\"FLOW_RETURN\"] = \"return\";\n FlowPhase[\"INVALID_AUTH_METHOD\"] = \"invalid_auth\";\n FlowPhase[\"MISMATCH_EMAIL\"] = \"mismatch_email\";\n FlowPhase[\"RESTART_STATE\"] = \"restart_state\";\n FlowPhase[\"ERROR\"] = \"internal_error\";\n})(FlowPhase || (FlowPhase = {}));\n","import { jsxs as _jsxs, jsx as _jsx } from \"react/jsx-runtime\";\nimport { useEffect, useRef, useState } from \"react\";\nimport { Typography, useTheme } from \"@mui/material\";\nimport { AuthFlowLayout, STORAGE_DEVICE_ID_KEY, } from \"@pangeacyber/react-mui-authn\";\nvar FlowCompleteView = function (_a) {\n var options = _a.options, data = _a.data;\n var _b = useState(), deviceId = _b[0], setDeviceId = _b[1];\n var formRef = useRef(null);\n var theme = useTheme();\n useEffect(function () {\n // if a device_id is set in sessionStorage, send it as a device_id\n // and save it in local storage\n var storedId = sessionStorage.getItem(STORAGE_DEVICE_ID_KEY) || \"\";\n if (storedId) {\n sessionStorage.removeItem(STORAGE_DEVICE_ID_KEY);\n localStorage.setItem(STORAGE_DEVICE_ID_KEY, storedId);\n }\n setDeviceId(storedId);\n }, []);\n useEffect(function () {\n if (formRef.current && deviceId !== undefined) {\n formRef.current.submit();\n }\n }, [deviceId]);\n var content = options.brandName ? \" to \".concat(options.brandName) : \"\";\n return (_jsxs(AuthFlowLayout, { title: \"Authentication Successful\", children: [_jsxs(Typography, { variant: \"body2\", sx: { color: theme.palette.text.secondary }, children: [\"Redirecting\", content] }), _jsxs(\"form\", { ref: formRef, action: \"/component/complete\", method: \"POST\", children: [_jsx(\"input\", { type: \"hidden\", name: \"flow_id\", value: data.flowId }), deviceId && _jsx(\"input\", { type: \"hidden\", name: \"device_id\", value: deviceId })] })] }));\n};\nexport default FlowCompleteView;\n","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { Typography, useTheme } from \"@mui/material\";\nimport { Button, AuthFlowLayout, } from \"@pangeacyber/react-mui-authn\";\nvar FlowReturnView = function (_a) {\n var reset = _a.reset;\n var theme = useTheme();\n var buttons = (_jsx(Button, { color: \"secondary\", onClick: reset, children: \"Back to Log in\" }));\n return (_jsx(AuthFlowLayout, { title: \"Verification Complete\", buttons: buttons, children: _jsx(Typography, { variant: \"body2\", textAlign: \"center\", sx: { padding: \"0 16px\", color: theme.palette.text.secondary }, children: \"Please return to the browser where you started this flow to continue.\" }) }));\n};\nexport default FlowReturnView;\n","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { CircularProgress, Stack } from \"@mui/material\";\nvar LoadingView = function () {\n return (_jsx(Stack, { sx: { minHeight: \"100px\" }, justifyContent: \"center\", alignItems: \"center\", children: _jsx(CircularProgress, {}) }));\n};\nexport default LoadingView;\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { useAuthFlow } from \"@src/features/AuthFlow\";\nimport { StartView, LoginView, SignupView, CaptchaView, ProfileView, ProvisionedView, AgreementView, VerifyEmailView, VerifyResetView, PasskeyView, ResetPasswordView, ConsentView, InvalidAuthView, ErrorView, MismatchEmailView, } from \"@pangeacyber/react-mui-authn\";\nimport { FlowPhase } from \"./types\";\nimport FlowCompleteView from \"@src/components/FlowCompleteView\";\nimport FlowReturnView from \"@src/components/FlowReturnView\";\nimport LoadingView from \"@src/components/LoadingView\";\nvar AuthFlowView = function (_a) {\n var options = _a.options;\n var _b = useAuthFlow(), phase = _b.phase, data = _b.data, loading = _b.loading, error = _b.error, cbParams = _b.cbParams, update = _b.update, restart = _b.restart, reset = _b.reset;\n var componentProps = {\n options: options,\n data: data,\n error: error,\n cbParams: cbParams,\n loading: loading,\n update: update,\n reset: reset,\n restart: restart,\n };\n switch (phase) {\n case FlowPhase.START:\n return _jsx(StartView, __assign({}, componentProps));\n case FlowPhase.SIGNUP:\n return _jsx(SignupView, __assign({}, componentProps));\n case FlowPhase.LOGIN:\n return _jsx(LoginView, __assign({}, componentProps));\n case FlowPhase.CAPTCHA:\n return _jsx(CaptchaView, __assign({}, componentProps));\n case FlowPhase.PROFILE:\n return _jsx(ProfileView, __assign({}, componentProps));\n case FlowPhase.VERIFY_EMAIL:\n return _jsx(VerifyEmailView, __assign({}, componentProps));\n case FlowPhase.RESET_PASSWORD:\n return _jsx(VerifyResetView, __assign({}, componentProps));\n case FlowPhase.SET_PASSWORD:\n return _jsx(ResetPasswordView, __assign({}, componentProps));\n case FlowPhase.AGREEMENTS:\n return _jsx(AgreementView, __assign({}, componentProps));\n case FlowPhase.PROVISIONAL:\n return _jsx(ProvisionedView, __assign({}, componentProps));\n case FlowPhase.FLOW_RETURN:\n return _jsx(FlowReturnView, __assign({}, componentProps));\n case FlowPhase.PASSKEY:\n return _jsx(PasskeyView, __assign({}, componentProps));\n case FlowPhase.CONSENT:\n return _jsx(ConsentView, __assign({}, componentProps));\n case FlowPhase.COMPLETE:\n return _jsx(FlowCompleteView, __assign({}, componentProps));\n case FlowPhase.INVALID_AUTH_METHOD:\n return _jsx(InvalidAuthView, __assign({}, componentProps));\n case FlowPhase.MISMATCH_EMAIL:\n return _jsx(MismatchEmailView, __assign({}, componentProps));\n case FlowPhase.ERROR:\n return _jsx(ErrorView, __assign({}, componentProps));\n default:\n return _jsx(LoadingView, {});\n }\n};\nexport default AuthFlowView;\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { createContext, useCallback, useContext, useEffect, useMemo, useState, useRef, } from \"react\";\nimport cloneDeep from \"lodash/cloneDeep\";\nimport { AuthNFlowClient, AuthFlow, } from \"@pangeacyber/vanilla-js\";\nimport { STORAGE_DEVICE_ID_KEY, STORAGE_REMEMBER_USERNAME_KEY, } from \"@pangeacyber/react-mui-authn\";\nimport { setCookie, getCookie } from \"@src/utils\";\nimport { FlowPhase } from \"./types\";\nvar SESSION_DATA_NAME = \"flow-session\";\nvar SESSION_RELOAD = \"flow-session-reload\";\nvar COOKIE_NO_PASSKEY = \"no-passkey-prompt\";\nexport var AuthFlowContext = createContext({});\nexport var AuthFlowProvider = function (_a) {\n var config = _a.config, options = _a.options, children = _a.children;\n var _b = useState(\"\"), phase = _b[0], setPhase = _b[1];\n var _c = useState(), error = _c[0], setError = _c[1];\n var _d = useState(true), loading = _d[0], setLoading = _d[1];\n var _e = useState(), data = _e[0], setData = _e[1];\n var _f = useState(), cbParams = _f[0], setCbParams = _f[1];\n var isStart = useRef(true);\n var useEmail = useRef(false);\n var usedPasskey = useRef(false);\n var invite = useRef(false);\n var captchaCode = useRef(\"\");\n // @ts-ignore\n var isPangea = window.IS_PANGEA || false;\n var client = useMemo(function () {\n return new AuthNFlowClient(config, options);\n }, []);\n useEffect(function () {\n var _a;\n // use email with start call if passed as a param\n var urlParams = new URLSearchParams(window.location.search);\n var emailParam = urlParams.get(\"email\") || \"\";\n var navEntries = (_a = window === null || window === void 0 ? void 0 : window.performance) === null || _a === void 0 ? void 0 : _a.getEntriesByType(\"navigation\");\n // if back button is used, clear the session and reload - PAN-15224\n if (navEntries &&\n // @ts-ignore\n String(navEntries[0].type) === \"back_forward\") {\n deleteSessionCookie();\n deleteSessionData();\n location.reload();\n }\n if (emailParam.match(/^[A-Za-z0-9_%'+`~.-]+@[A-Za-z0-9.-]+$/gm)) {\n useEmail.current = true;\n start({ email: emailParam });\n }\n else if (!!(config === null || config === void 0 ? void 0 : config.email)) {\n start({ email: config === null || config === void 0 ? void 0 : config.email });\n }\n else {\n start({});\n }\n }, []);\n var getSessionData = function () {\n var storedData = localStorage.getItem(getSessionKeyName());\n if (storedData) {\n var session = JSON.parse(storedData);\n return session;\n }\n return {};\n };\n var updateSessionData = useCallback(function (phase, data) {\n var sessionData = getSessionData();\n var newData = __assign(__assign({}, sessionData), { flow_id: data.flowId, format: data.usernameFormat, phase: phase, invite: invite.current, callbackState: __assign({}, data.callbackStateMap) });\n var dataString = JSON.stringify(newData);\n localStorage.setItem(getSessionKeyName(), dataString);\n }, [data === null || data === void 0 ? void 0 : data.phase]);\n var deleteSessionData = function () {\n localStorage.removeItem(getSessionKeyName());\n };\n var setReloadTime = function () {\n var data = { last: Math.floor(Date.now() / 1000) };\n sessionStorage.setItem(SESSION_RELOAD, JSON.stringify(data));\n };\n var checkShouldReload = function () {\n var ts = sessionStorage.getItem(SESSION_RELOAD);\n if (ts) {\n var data_1 = JSON.parse(ts);\n var now = Math.floor(Date.now() / 1000);\n return data_1.last < now - 10;\n }\n return true;\n };\n var deleteSessionCookie = function () {\n document.cookie = \"__hosted_session2=; samesite=strict; ;expires=Thu, 01 Jan 1970 00:00:01 GMT; secure\";\n };\n var start = function (payload) { return __awaiter(void 0, void 0, void 0, function () {\n var sessionData, queryString, urlParams, cbState, cbCode, cbFlowId, redirect, flowId, providerData, socialName, payload_1, _a, success, response, samlData, providerId, providerName, payload_2, _b, success, response, deviceId, username, utmCodes, _c, success, response;\n return __generator(this, function (_d) {\n switch (_d.label) {\n case 0:\n sessionData = getSessionData();\n if (!!(config === null || config === void 0 ? void 0 : config.email) || !!sessionData.invite) {\n invite.current = true;\n }\n queryString = window.location.search;\n urlParams = new URLSearchParams(queryString);\n cbState = urlParams.get(\"state\") || \"\";\n cbCode = urlParams.get(\"code\") || \"\";\n cbFlowId = urlParams.get(\"flow\") || \"\";\n redirect = urlParams.get(\"redirect_uri\") || \"\";\n flowId = config.flowId || sessionData.flow_id;\n if (cbState && cbCode) {\n setCbParams({ state: cbState, code: cbCode });\n }\n else if (cbState && redirect) {\n sessionStorage.setItem(\"redirect\", JSON.stringify({ redirect: redirect, state: cbState }));\n }\n if (!(flowId && !useEmail.current)) return [3 /*break*/, 8];\n // continue the flow, unless an email is in the url params\n client.initState({\n flowId: flowId,\n phase: sessionData.phase,\n });\n if (!(!!cbFlowId && cbFlowId !== sessionData.flow_id)) return [3 /*break*/, 1];\n setPhase(FlowPhase.FLOW_RETURN);\n return [3 /*break*/, 7];\n case 1:\n if (!(cbCode &&\n sessionData.callbackState &&\n sessionData.callbackState[cbState])) return [3 /*break*/, 6];\n providerData = sessionData.callbackState[cbState];\n setLoading(true);\n if (!providerData.startsWith(\"social:\")) return [3 /*break*/, 3];\n socialName = providerData.replace(\"social:\", \"\");\n payload_1 = {\n social_provider: socialName,\n uri: window.location.toString(),\n };\n return [4 /*yield*/, client.verifySocial(payload_1)];\n case 2:\n _a = _d.sent(), success = _a.success, response = _a.response;\n updateFlowState(success, response);\n return [3 /*break*/, 5];\n case 3:\n if (!providerData.startsWith(\"saml:\")) return [3 /*break*/, 5];\n samlData = providerData.replace(\"saml:\", \"\");\n providerId = samlData.split(\":\", 1)[0];\n providerName = samlData.replace(\"\".concat(providerId, \":\"), \"\");\n payload_2 = {\n provider_id: providerId,\n provider_name: providerName,\n uri: window.location.toString(),\n };\n return [4 /*yield*/, client.verifySaml(payload_2)];\n case 4:\n _b = _d.sent(), success = _b.success, response = _b.response;\n updateFlowState(success, response);\n _d.label = 5;\n case 5:\n setLoading(false);\n return [3 /*break*/, 7];\n case 6:\n getState();\n _d.label = 7;\n case 7: return [3 /*break*/, 10];\n case 8:\n setLoading(true);\n deviceId = localStorage.getItem(STORAGE_DEVICE_ID_KEY);\n if (deviceId) {\n payload.device_id = deviceId;\n }\n username = localStorage.getItem(STORAGE_REMEMBER_USERNAME_KEY);\n if (username) {\n payload.email = username;\n }\n if (config.clientId) {\n payload.client_id = config.clientId;\n }\n // TODO: add scope and oauth_* vars to config and start payload\n // @ts-ignore -\n if (config.scope) {\n // @ts-ignore\n payload.scope = config.scope;\n }\n // @ts-ignore\n if (config.oauth2Nonce) {\n // @ts-ignore\n payload.oauth2_nonce = config.oauth2Nonce;\n }\n // @ts-ignore\n if (config.oauth2CodeChallenge) {\n // @ts-ignore\n payload.oauth2_code_challenge = config.oauth2CodeChallenge;\n }\n // @ts-ignore\n if (config.oauth2CodeChallengeMethod) {\n // @ts-ignore\n payload.oauth2_code_challenge_method = config.oauth2CodeChallengeMethod;\n }\n // @ts-ignore\n if (config.oauth2State) {\n // @ts-ignore\n payload.oauth2_state = config.oauth2State;\n }\n // @ts-ignore\n if (config.oauth2ResponseTypes) {\n // @ts-ignore\n payload.oauth2_response_types = config.oauth2ResponseTypes;\n }\n // @ts-ignore\n if (config.oauth2RedirectUrl) {\n // @ts-ignore\n payload.oauth2_redirect_uri = config.oauth2RedirectUrl;\n }\n // ---- end TODO\n // send signup tracking data for Pangea\n if (isPangea) {\n utmCodes = getCookie(\"pangea-utm-code\");\n if (!!utmCodes) {\n // @ts-ignore\n payload.utm_codes = utmCodes;\n }\n }\n return [4 /*yield*/, client.start(payload)];\n case 9:\n _c = _d.sent(), success = _c.success, response = _c.response;\n updateFlowState(success, response);\n setLoading(false);\n isStart.current = false;\n _d.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n }); };\n var getState = function () { return __awaiter(void 0, void 0, void 0, function () {\n var _a, success, response, sessionData, newUrl;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n setLoading(true);\n return [4 /*yield*/, client.getFlowState()];\n case 1:\n _a = _b.sent(), success = _a.success, response = _a.response;\n if (!success && (response === null || response === void 0 ? void 0 : response.status) === \"InvalidFlow\") {\n // rebuild the URL if left in a state with the /component/callback path\n if (window.location.pathname.startsWith(\"/component\")) {\n sessionData = JSON.parse(sessionStorage.getItem(\"redirect\") || \"\");\n if (sessionData) {\n newUrl = \"\".concat(window.location.protocol, \"//\").concat(window.location.host, \"/authorize?redirect_uri=\").concat(sessionData.redirect, \"&state=\").concat(sessionData.state);\n window.history.replaceState({}, document.title, newUrl);\n }\n deleteSessionCookie();\n deleteSessionData();\n location.reload();\n }\n else {\n reset();\n }\n }\n else {\n updateFlowState(success, response);\n }\n setLoading(false);\n return [2 /*return*/];\n }\n });\n }); };\n var getSessionKeyName = function () {\n return \"\".concat(SESSION_DATA_NAME, \"-\").concat((data === null || data === void 0 ? void 0 : data.phase) === \"phase_one_time\" ? \"onetime\" : \"auth\");\n };\n var restart = useCallback(function (choice, data) { return __awaiter(void 0, void 0, void 0, function () {\n var _a, success, response;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n setLoading(true);\n return [4 /*yield*/, client.restart(choice, data)];\n case 1:\n _a = _b.sent(), success = _a.success, response = _a.response;\n updateFlowState(success, response);\n setLoading(false);\n return [2 /*return*/];\n }\n });\n }); }, [client]);\n var reset = useCallback(function () {\n // remove the 'flow' parameter if it's set and update the URL\n var urlParams = new URLSearchParams(window.location.search);\n if (urlParams.get(\"flow\")) {\n urlParams.delete(\"flow\");\n var newUrl = \"\".concat(window.location.protocol, \"//\").concat(window.location.host).concat(window.location.pathname, \"?\").concat(urlParams.toString());\n window.history.replaceState({}, document.title, newUrl);\n }\n deleteSessionData();\n client.reset();\n start({});\n }, [client]);\n var update = useCallback(function (step, payload, extra) { return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n setLoading(true);\n usedPasskey.current = false;\n switch (step) {\n case AuthFlow.Choice.NONE:\n getState();\n break;\n case AuthFlow.Choice.SET_EMAIL:\n setEmailHandler(payload);\n break;\n case AuthFlow.Choice.SET_USERNAME:\n setUsernameHandler(payload);\n break;\n case AuthFlow.Choice.SET_PHONE:\n setPhoneHandler(payload);\n break;\n case AuthFlow.Choice.PASSWORD:\n verifyPasswordHandler(payload, extra);\n break;\n case AuthFlow.Choice.SET_PASSWORD:\n setPasswordHandler(payload);\n break;\n case AuthFlow.Choice.CAPTCHA:\n captchaHandler(payload);\n break;\n case AuthFlow.Choice.PROFILE:\n profileHandler(payload);\n break;\n case AuthFlow.Choice.VERIFY_EMAIL:\n verifyEmailHandler();\n break;\n case AuthFlow.Choice.SOCIAL:\n verifySocial(payload);\n break;\n case AuthFlow.Choice.SAML:\n verifySaml(payload);\n break;\n case AuthFlow.Choice.EMAIL_OTP:\n verifyEmailOtp(payload);\n break;\n case AuthFlow.Choice.SMS_OTP:\n verifySmsOtp(payload);\n break;\n case AuthFlow.Choice.TOTP:\n verifyTotp(payload);\n break;\n case AuthFlow.Choice.AGREEMENTS:\n acceptAgreement(payload);\n break;\n case AuthFlow.Choice.RESET_PASSWORD:\n resetPassword();\n break;\n case AuthFlow.Choice.PASSKEY:\n sendPasskey(payload);\n break;\n case AuthFlow.Choice.CONSENT:\n oauthConsent(payload);\n break;\n case AuthFlow.Choice.COMPLETE:\n completeFlow(payload);\n break;\n default:\n // invalid state\n console.log(\"Invalid Flow State\", step);\n }\n setLoading(false);\n return [2 /*return*/];\n });\n }); }, [client]);\n var setEmailHandler = function (payload) { return __awaiter(void 0, void 0, void 0, function () {\n var _a, success, response;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, client.setEmail(payload)];\n case 1:\n _a = _b.sent(), success = _a.success, response = _a.response;\n updateFlowState(success, response);\n return [2 /*return*/];\n }\n });\n }); };\n var setUsernameHandler = function (payload) { return __awaiter(void 0, void 0, void 0, function () {\n var _a, success, response;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, client.setUsername(payload)];\n case 1:\n _a = _b.sent(), success = _a.success, response = _a.response;\n updateFlowState(success, response);\n return [2 /*return*/];\n }\n });\n }); };\n var setPhoneHandler = function (payload) { return __awaiter(void 0, void 0, void 0, function () {\n var _a, success, response;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, client.setPhone(payload)];\n case 1:\n _a = _b.sent(), success = _a.success, response = _a.response;\n updateFlowState(success, response);\n return [2 /*return*/];\n }\n });\n }); };\n var verifyPasswordHandler = function (payload, extra) { return __awaiter(void 0, void 0, void 0, function () {\n var _a, success, response, _b, success_1, response_1;\n return __generator(this, function (_c) {\n switch (_c.label) {\n case 0:\n if (extra) {\n captchaCode.current = extra;\n }\n return [4 /*yield*/, client.verifyPassword(payload)];\n case 1:\n _a = _c.sent(), success = _a.success, response = _a.response;\n if (!(success && captchaCode.current)) return [3 /*break*/, 3];\n return [4 /*yield*/, client.verifyCaptcha({\n code: captchaCode.current,\n })];\n case 2:\n _b = _c.sent(), success_1 = _b.success, response_1 = _b.response;\n updateFlowState(success_1, response_1);\n return [3 /*break*/, 4];\n case 3:\n updateFlowState(success, response);\n _c.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n }); };\n var setPasswordHandler = function (payload) { return __awaiter(void 0, void 0, void 0, function () {\n var _a, success, response;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, client.setPassword(payload)];\n case 1:\n _a = _b.sent(), success = _a.success, response = _a.response;\n updateFlowState(success, response);\n return [2 /*return*/];\n }\n });\n }); };\n var captchaHandler = function (payload) { return __awaiter(void 0, void 0, void 0, function () {\n var _a, success, response;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, client.verifyCaptcha(payload)];\n case 1:\n _a = _b.sent(), success = _a.success, response = _a.response;\n updateFlowState(success, response);\n return [2 /*return*/];\n }\n });\n }); };\n var profileHandler = function (payload) { return __awaiter(void 0, void 0, void 0, function () {\n var _a, success, response;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, client.updateProfile(payload)];\n case 1:\n _a = _b.sent(), success = _a.success, response = _a.response;\n updateFlowState(success, response);\n return [2 /*return*/];\n }\n });\n }); };\n var verifyEmailHandler = function () { return __awaiter(void 0, void 0, void 0, function () {\n var _a, success, response;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, client.verifyEmail()];\n case 1:\n _a = _b.sent(), success = _a.success, response = _a.response;\n updateFlowState(success, response);\n return [2 /*return*/];\n }\n });\n }); };\n var verifySocial = function (payload) { return __awaiter(void 0, void 0, void 0, function () {\n var _a, success, response;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, client.verifySocial(payload)];\n case 1:\n _a = _b.sent(), success = _a.success, response = _a.response;\n updateFlowState(success, response);\n return [2 /*return*/];\n }\n });\n }); };\n var verifySaml = function (payload) { return __awaiter(void 0, void 0, void 0, function () {\n var _a, success, response;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, client.verifySaml(payload)];\n case 1:\n _a = _b.sent(), success = _a.success, response = _a.response;\n updateFlowState(success, response);\n return [2 /*return*/];\n }\n });\n }); };\n var verifyEmailOtp = function (payload) { return __awaiter(void 0, void 0, void 0, function () {\n var _a, success, response;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, client.emailOtp(payload)];\n case 1:\n _a = _b.sent(), success = _a.success, response = _a.response;\n updateFlowState(success, response);\n return [2 /*return*/];\n }\n });\n }); };\n var verifySmsOtp = function (payload) { return __awaiter(void 0, void 0, void 0, function () {\n var _a, success, response;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, client.smsOtp(payload)];\n case 1:\n _a = _b.sent(), success = _a.success, response = _a.response;\n updateFlowState(success, response);\n return [2 /*return*/];\n }\n });\n }); };\n var verifyTotp = function (payload) { return __awaiter(void 0, void 0, void 0, function () {\n var _a, success, response;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, client.totp(payload)];\n case 1:\n _a = _b.sent(), success = _a.success, response = _a.response;\n updateFlowState(success, response);\n return [2 /*return*/];\n }\n });\n }); };\n var acceptAgreement = function (payload) { return __awaiter(void 0, void 0, void 0, function () {\n var _a, success, response;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, client.acceptAgreement(payload)];\n case 1:\n _a = _b.sent(), success = _a.success, response = _a.response;\n updateFlowState(success, response);\n return [2 /*return*/];\n }\n });\n }); };\n var resetPassword = function () { return __awaiter(void 0, void 0, void 0, function () {\n var _a, success, response;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, client.resetPassword()];\n case 1:\n _a = _b.sent(), success = _a.success, response = _a.response;\n updateFlowState(success, response);\n return [2 /*return*/];\n }\n });\n }); };\n var sendPasskey = function (payload) { return __awaiter(void 0, void 0, void 0, function () {\n var _a, success, response;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n usedPasskey.current = true;\n return [4 /*yield*/, client.sendPasskey(payload)];\n case 1:\n _a = _b.sent(), success = _a.success, response = _a.response;\n updateFlowState(success, response);\n return [2 /*return*/];\n }\n });\n }); };\n var oauthConsent = function (payload) { return __awaiter(void 0, void 0, void 0, function () {\n var _a, success, response;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, client.oauthConsent(payload)];\n case 1:\n _a = _b.sent(), success = _a.success, response = _a.response;\n updateFlowState(success, response);\n return [2 /*return*/];\n }\n });\n }); };\n var completeFlow = function (payload) { return __awaiter(void 0, void 0, void 0, function () {\n var nextPhase;\n return __generator(this, function (_a) {\n if (payload === null || payload === void 0 ? void 0 : payload.suppress) {\n setCookie(COOKIE_NO_PASSKEY, \"1\");\n }\n nextPhase = FlowPhase.COMPLETE;\n updateSessionData(nextPhase, client.state);\n setPhase(nextPhase);\n return [2 /*return*/];\n });\n }); };\n /*\n Common response utility\n */\n var updateFlowState = function (success, response) {\n var _a, _b, _c, _d;\n if (success) {\n isStart.current = false;\n setData(__assign(__assign({}, cloneDeep(client.state)), { invite: invite.current }));\n setError(undefined);\n var nextPhase = FlowPhase.INIT;\n if (client.state.complete) {\n if (!!client.state.passkey &&\n !getCookie(COOKIE_NO_PASSKEY) &&\n !usedPasskey.current) {\n nextPhase = FlowPhase.PASSKEY;\n }\n else {\n nextPhase = FlowPhase.COMPLETE;\n }\n }\n else if ((!!((_a = client.state) === null || _a === void 0 ? void 0 : _a.setEmail) || !!((_b = client.state) === null || _b === void 0 ? void 0 : _b.setUsername)) &&\n ((_c = client.state) === null || _c === void 0 ? void 0 : _c.phase) !== \"phase_one_time\") {\n var urlParams = new URLSearchParams(window.location.search);\n var socialParam = urlParams.get(\"social\") || \"\";\n var emailParam = urlParams.get(\"email\") || \"\";\n if (socialParam.match(/^[a-z_]+$/) &&\n socialParam in client.state.socialProviderMap &&\n !emailParam) {\n window.location.href =\n client.state.socialProviderMap[socialParam].redirect_uri;\n }\n {\n nextPhase = FlowPhase.START;\n }\n }\n else if (client.state.setPassword) {\n nextPhase = FlowPhase.SET_PASSWORD;\n }\n else if (client.state.provisional) {\n nextPhase = FlowPhase.PROVISIONAL;\n }\n else if (client.state.resetPassword &&\n ((_d = client.state.resetPassword) === null || _d === void 0 ? void 0 : _d.sent)) {\n nextPhase = FlowPhase.RESET_PASSWORD;\n }\n else if (client.state.phase === \"phase_profile\") {\n nextPhase = FlowPhase.PROFILE;\n }\n else if (client.state.phase == \"phase_captcha\") {\n nextPhase = FlowPhase.CAPTCHA;\n }\n else if (client.state.phase === \"phase_verify_email\") {\n nextPhase = FlowPhase.VERIFY_EMAIL;\n }\n else if (client.state.phase === \"phase_agreements\") {\n nextPhase = FlowPhase.AGREEMENTS;\n }\n else if (client.state.phase === \"phase_oauth_consent\") {\n nextPhase = FlowPhase.CONSENT;\n }\n else if ((client.state.email || client.state.username) &&\n client.state.flowType.includes(\"signup\")) {\n nextPhase = FlowPhase.SIGNUP;\n }\n else if (client.state.phase === \"phase_verify_email\") {\n nextPhase = FlowPhase.VERIFY_EMAIL;\n }\n else if (((client.state.email || client.state.username) &&\n client.state.flowType.includes(\"signin\")) ||\n client.state.flowType.includes(\"one_time\")) {\n nextPhase = FlowPhase.LOGIN;\n }\n updateSessionData(nextPhase, client.state);\n setPhase(nextPhase);\n }\n else {\n if (response.status === \"Unauthorized\") {\n // reload on 403, check session storage flag to prevent reload loop\n if (checkShouldReload()) {\n setReloadTime();\n location.reload();\n }\n }\n else if (response.status === \"IncorrectAuthenticationProvider\") {\n setPhase(FlowPhase.INVALID_AUTH_METHOD);\n }\n else if (response.status === \"NotMatchExpectedEmail\") {\n setPhase(FlowPhase.MISMATCH_EMAIL);\n }\n else if (response.status === \"DisabledUser\") {\n setPhase(FlowPhase.ERROR);\n }\n else if (isStart.current) {\n setPhase(FlowPhase.ERROR);\n }\n setError(response);\n }\n };\n var memoData = useMemo(function () { return ({\n phase: phase,\n error: error,\n loading: loading,\n data: data,\n cbParams: cbParams,\n update: update,\n restart: restart,\n reset: reset,\n }); }, [phase, error, loading, data, cbParams, update, restart, reset]);\n return (_jsx(AuthFlowContext.Provider, { value: memoData, children: children }));\n};\nexport var useAuthFlow = function () {\n return useContext(AuthFlowContext);\n};\n","import { jsx as _jsx } from \"react/jsx-runtime\";\nexport var Gartner = function () {\n return (_jsx(\"svg\", { width: \"100px\", height: \"24px\", viewBox: \"0 0 100 24\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", children: _jsx(\"path\", { d: \"M99.3028 8.10683L99.0161 11.5468H97.6113C95.3684 11.5468 94.2026 13.3448 94.2026 15.0679V22.8372H90.2272V8.10683H93.9926L94.0782 9.94539C94.8682 8.68461 96.2507 8.10683 97.9555 8.10683H99.3028ZM71.7419 22.8371H67.763V15.0499C67.763 13.4191 67.6221 11.3665 65.3283 11.3665C63.1193 11.3665 62.2392 12.9608 62.2392 14.8172V22.8371H58.2616V8.10669H61.9495L62.0337 9.98984C62.8241 8.72906 64.2963 7.74736 66.4679 7.74736C70.4767 7.74736 71.7419 10.6095 71.7419 13.5881V22.8371ZM56.5266 19.3961L56.2485 22.7478C55.2944 23.0037 54.4473 23.0955 53.4224 23.0955C49.6735 23.0955 48.5861 21.3765 48.5861 17.9213V3.95284H52.5646V8.107H56.5235L56.2485 11.5465H52.5646V17.6222C52.5646 19.0087 52.9449 19.7577 54.3671 19.7577C54.9854 19.7577 55.6733 19.6832 56.5266 19.3961ZM47.2798 8.10683L46.9717 11.5468H45.8906C43.6521 11.5468 42.5389 13.3426 42.5389 15.0679V22.8372H38.5599V8.10683H42.3271L42.4056 9.94539C43.2 8.68461 44.5825 8.10683 46.2896 8.10683H47.2798ZM20.6056 21.2052C17.9071 22.6487 15.2116 23.4815 11.6513 23.3781C5.05088 23.1766 0.289062 19.0781 0.289062 12.1554C0.289062 5.26301 5.09681 0.85919 11.6544 0.755758C14.9785 0.704935 17.953 1.54843 20.2779 3.60011L17.4773 6.43329C16.0386 5.20684 13.9219 4.48996 11.3923 4.60454C7.26528 4.79669 4.77849 7.79572 4.72365 11.9191C4.6697 16.3867 7.40928 19.4656 11.6918 19.5779C13.707 19.6283 15.1505 19.3577 16.3997 18.7968V14.2303H11.9486L12.2491 10.4849H20.6056V21.2052ZM88.4504 16.8719H77.5425C77.8533 18.7541 79.3329 19.8865 81.1755 19.9378C82.9668 19.9864 83.969 19.4451 85.2793 18.1184L87.8753 20.0978C86.0305 22.3702 83.8166 23.1972 81.2945 23.1972C76.8586 23.1972 73.5355 20.0956 73.5355 15.4715C73.5355 10.8524 76.8421 7.74722 81.1287 7.74722C85.8531 7.74722 88.4504 10.6094 88.4504 15.69V16.8719ZM84.4648 13.7921C84.3426 11.9313 82.9485 10.7547 81.0284 10.8296C79.0958 10.9028 77.8091 12.1613 77.5425 13.7921H84.4648ZM36.0552 13.1912V22.837H32.5475L32.4606 21.3846C31.3843 22.7176 29.6372 23.1973 27.8383 23.1973C25.1295 23.1973 22.57 21.8616 22.5165 18.7506C22.4358 13.8609 28.0197 13.5136 31.5266 13.5136H32.2274V13.3201C32.2274 11.7031 31.1574 10.8297 29.1428 10.8297C27.6965 10.8297 26.269 11.4097 25.2133 12.3995L22.9177 10.0674C25.002 8.3777 27.1704 7.74732 29.4807 7.74732C34.0437 7.74732 36.0552 9.85606 36.0552 13.1912ZM32.2274 16.4132H31.6741C29.7905 16.4172 26.4821 16.5099 26.4946 18.4796C26.5124 21.2544 32.2274 20.3725 32.2274 17.0262V16.4132ZM96.1993 21.1236C96.1993 20.186 96.9068 19.4794 97.814 19.4794C98.7101 19.4794 99.419 20.186 99.419 21.1236C99.419 22.0776 98.7101 22.782 97.814 22.782C96.9068 22.782 96.1993 22.0776 96.1993 21.1236ZM97.814 23.1115C98.8943 23.1115 99.8158 22.2725 99.8158 21.1236C99.8158 19.9863 98.8943 19.149 97.814 19.149C96.724 19.149 95.8016 19.9863 95.8016 21.1236C95.8016 22.2725 96.724 23.1115 97.814 23.1115ZM97.3945 21.2823H97.7935L98.3949 22.2725H98.7837L98.1341 21.2662C98.4698 21.2252 98.7262 21.0451 98.7262 20.6363C98.7262 20.186 98.4591 19.9863 97.9188 19.9863H97.0494V22.2725H97.3945V21.2823ZM97.3945 20.9876V20.281H97.8658C98.1074 20.281 98.3642 20.3331 98.3642 20.6162C98.3642 20.9671 98.102 20.9876 97.8096 20.9876H97.3945Z\", fill: \"#182954\" }) }));\n};\n","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { Stack, Typography } from \"@mui/material\";\nimport { useTheme } from \"@mui/material/styles\";\nimport useMediaQuery from \"@mui/material/useMediaQuery\";\nimport { Gartner } from \"../Logos/Gartner\";\nvar MarketingFooter = function () {\n var theme = useTheme();\n var isMedium = useMediaQuery(theme.breakpoints.up(\"md\"));\n return (_jsxs(Stack, { direction: { xs: \"column\", md: \"row\" }, gap: 0.5, sx: { padding: \"0 32px\" }, alignItems: \"center\", children: [_jsx(Typography, { variant: \"body2\", color: \"textSecondary\", sx: { whiteSpace: \"nowrap\" }, children: \"Recognized by\" }), _jsx(Gartner, {}), _jsxs(Typography, { variant: \"body2\", color: \"textSecondary\", pl: 1, mt: { xs: \"8px\", md: \"unset\" }, sx: { whiteSpace: \"nowrap\" }, children: [isMedium && \"|\", \" SOC2 Certified | HIPAA Compliant\"] })] }));\n};\nexport default MarketingFooter;\n","// Copyright 2021 Pangea Cyber Corporation\n// Author: Pangea Cyber Corporation\nimport reduce from \"lodash/reduce\";\nexport var CONTENT_OPTIONS = {\n mlp: {\n title: \"Security Services for Developers\",\n subhead: \"Get the APIs you need to deliver a secure customer experience, all in one place!\",\n bullets: [\n {\n title: \"Secure Apps. Faster, Stronger, Smarter\",\n body: \"Take the smart path and integrate Pangea into your application. You'll accelerate compliance, get into production faster, and deliver a more secure customer experience.\",\n },\n {\n title: \"Complete\",\n body: \"From easy pay-as-you-go pricing, to SDKs and Sample Applications, you have everything you need to embed security into your application.\",\n },\n {\n title: \"Simple\",\n body: \"More time building your app and less time building security features, so you get to production faster.\",\n },\n ],\n },\n access: {\n title: \"Control Access with Pangea’s AuthZ API Solution\",\n subhead: \"Easy and scalable permissions management for your apps using frameworks like RBAC, ABAC, and ReBAC.\",\n bullets: [\n {\n title: \"Granular Permissions\",\n body: \"Assign precise access policies based on roles, attributes, or relationships.\",\n },\n {\n title: \"Flexible and Scalable\",\n body: \"Use RBAC, ABAC, and ReBAC to match your security model and scale easily.\",\n },\n {\n title: \"Enterprise Security\",\n body: \"Simplify access while meeting compliance and security standards.\",\n },\n ],\n quote: {\n text: \"Hand-rolling something like this would just take more time and developer time is expensive, so we leveraged Pangea and liked the way it turned out.\",\n attr: \"Senior Software Engineer, Samuel Vidovic, Reach Security\",\n },\n },\n authz: {\n title: \"Centralized Access Control with Pangea AuthZ\",\n subhead: \"Ensure that the right users have access to the right resources with fine-grained access control.\",\n bullets: [\n {\n title: \"Flexible Policies\",\n body: \"Define access controls with granular permissions and roles.\",\n },\n {\n title: \"Scalable\",\n body: \"Start with RBAC, and scale to ReBAC and ABAC as you grow.\",\n },\n {\n title: \"Few lines of code\",\n body: \"Homegrown authorization frameworks break and need 1000s of lines of code. Ours only needs a few.\",\n docsLink: \"/docs/authz/\",\n },\n ],\n quote: {\n text: \"Rather than building all of that ourselves, it was much easier to integrate Pangea’s APIs and get the security features with virtually no development effort on our side.\",\n attr: \"Garrett Hamilton, Reach Security CEO\",\n },\n },\n sso: {\n title: \"Simplify User Access with Pangea's SSO\",\n subhead: \"Single Sign-On for your app with SAML, Social Auth, or Magic Links – backed by threat intelligence.\",\n bullets: [\n {\n title: \"Effortless Integration\",\n body: \"Set up SSO in minutes with SAML or OAuth + detailed.\",\n docsLink: \"/docs/authn/single-sign-on\",\n },\n {\n title: \"Enhanced Security\",\n body: \"Get adaptive threat intelligence and advanced authentication context.\",\n },\n {\n title: \"Enterprise-Ready\",\n body: \"Ensure compliance with leading standards like HIPAA, GDPR, and SOC 2.\",\n },\n ],\n quote: {\n text: \"All of their API calls were straightforward and simple. With an authentication token and some light configuration, we were ready to deploy immediately.\",\n attr: \"Sharon Brizinov, Co-founder ScanMySMS\",\n },\n },\n oauth: {\n title: \"Simplify User Authentication with Social Logins\",\n subhead: \"Let users login with Google, GitHub, or LinkedIn. Simple and secure auth with OpenID Connect protocols.\",\n bullets: [\n {\n title: \"Quick Setup\",\n body: \"Enable OAuth and Social Logins with minimal configuration.\",\n docsLink: \"/docs/authn/general#social-oauthopenid-connect\",\n },\n {\n title: \"Improved User Experience\",\n body: \"Reduce friction by letting users log in with accounts they already trust.\",\n },\n {\n title: \"Secure and Compliant\",\n body: \"Ensure compliance with leading security standards and privacy regulations.\",\n },\n ],\n quote: {\n text: \"Hand-rolling something like this would just take more time and developer time is expensive, so we leveraged Pangea and liked the way it turned out.\",\n attr: \"Senior Software Engineer, Samuel Vidovic, Reach Security\",\n },\n },\n saml: {\n title: \"Simplify Auth with Pangea’s SAML Support\",\n subhead: \"Implement SSO with SAML easily. Protect your app and simplify user access with our API solution.\",\n bullets: [\n {\n title: \"Easy Integration\",\n body: \"Get started in minutes with our step-by-step guide.\",\n docsLink: \"/docs/authn/single-sign-on\",\n },\n {\n title: \"Enterprise-Grade Security\",\n body: \"Fully compliant with HIPAA, GDPR, and SOC 2.\",\n },\n {\n title: \"Streamline Access\",\n body: \"Allow users to log in once and access all applications securely with SAML.\",\n },\n ],\n quote: {\n text: \"All of their API calls were straightforward. With an authentication token and some light configuration we were ready to deploy immediately.\",\n attr: \"Sharon Brizinov, Co-founder ScanMySMS\",\n },\n },\n log: {\n title: \"Ensure App Compliance and Security with Pangea Secure Audit Logging\",\n subhead: \"Ensure log integrity, data protection, and compliance with Pangea’s easy to integrate audit logging API.\",\n bullets: [\n {\n title: \"Quick Setup\",\n body: \"Implement our secure audit logging API in minutes with detailed.\",\n docsLink: \"/docs/audit/\",\n },\n {\n title: \"Tamper-Proof Logs\",\n body: \"Ensure log integrity with cryptographic hashing and tamper-evident features.\",\n },\n {\n title: \"Compliance-Ready\",\n body: \"Meet standards like HIPAA, GDPR, and SOC 2 effortlessly with built-in security features.\",\n },\n ],\n quote: {\n text: \"It was much easier to integrate Pangea’s logging APIs and get the security features like log signing and verification with virtually no development effort on our side. It was a no-brainer.\",\n attr: \"Garrett Hamilton, Reach Security CEO\",\n },\n },\n totp: {\n title: \"Strengthen Security with TOTP Authentication\",\n subhead: \"Add extra security with Time-based One-Time Passwords (TOTP). Protect users with Pangea’s auth.\",\n bullets: [\n {\n title: \"Quick Setup\",\n body: \"Get TOTP up and running with our easy-to-use API.\",\n docsLink: \"/docs/authn/\",\n },\n {\n title: \"Increased Security\",\n body: \"Stop bots and bad actors from accessing your app with time-based one-time codes.\",\n },\n {\n title: \"Custom Branding\",\n body: \"Use fully-brandable hosted pages for a consistent user experience.\",\n },\n ],\n quote: {\n text: \"All of their API calls were straightforward. With an authentication token and some light configuration we were ready to deploy immediately.\",\n attr: \"Sharon Brizinov, Co-founder ScanMySMS\",\n },\n },\n mfa: {\n title: \"Secure Your App and Users with Multi-Factor Authentication\",\n subhead: \"Protect users and apps with MFA in 2 minutes. Get customizable hosted login pages and API-native flows.\",\n bullets: [\n {\n title: \"Quick Setup\",\n body: \"Deploy end-to-end MFA and secure authentication flows in minutes.\",\n docsLink: \"/docs/authn/\",\n },\n {\n title: \"Advanced Security\",\n body: \"Stop account takeovers with customizable MFA and threat intelligence.\",\n },\n {\n title: \"Custom Branding\",\n body: \"Use fully-brandable hosted pages for a seamless user experience.\",\n },\n ],\n quote: {\n text: \"It was much easier to integrate Pangea’s APIs and get the security features with virtually no development effort on our side. It was a no-brainer.\",\n attr: \"Garrett Hamilton, Reach Security CEO\",\n },\n },\n passkeys: {\n title: \"Secure & Passwordless Authentication with Pangea’s Passkeys\",\n subhead: \"Say goodbye to passwords with Passkeys. Implement secure, FIDO2-based logins with public-key cryptography via our API solution.\",\n bullets: [\n {\n title: \"Password-Free Security\",\n body: \"Leverage Passkeys in your app for more user-friendly login experiences without passwords or MFA.\",\n },\n {\n title: \"Advanced Cryptography\",\n body: \"Protect user accounts using industry-leading public/private key authentication.\",\n },\n {\n title: \"Fast and Easy Integration\",\n body: \"Add Passkeys to your app quickly with Pangea’s API-driven solution.\",\n docsLink: \"/docs/authn/single-sign-on#passkeys\",\n },\n ],\n quote: {\n text: \"The integration with Pangea was very straightforward. It was quick and easy to work with the APIs and even better to have native language support from the SDK.\",\n attr: \"Noah Mirzakhanian, Engineering, Codex\",\n },\n },\n scim: {\n title: \"Automate User Management with SCIM\",\n subhead: \"Manage user identities and provisioning with SCIM. Streamline onboarding and stay security and compliant.\",\n bullets: [\n {\n title: \"Seamless Integration\",\n body: \"Implement SCIM in minutes with fully-brandable hosted pages across all systems.\",\n docsLink: \"/docs/authn/\",\n },\n {\n title: \"Reduced Admin Overhead\",\n body: \"Automatically manage users and roles with minimal effort.\",\n },\n {\n title: \"Enterprise Compliance\",\n body: \"Align with leading security and privacy standards.\",\n },\n ],\n quote: {\n text: \"All of their API calls were straightforward and simple. With an authentication token and some light configuration we were ready to deploy immediately.\",\n attr: \"Sharon Brizinov, Co-founder ScanMySMS\",\n },\n },\n webauthn: {\n title: \"Simplify Authentication with WebAuthN and Pangea\",\n subhead: \"Protect your users with secure, standard website authentication. Implement in minutes with adaptive threat intelligence.\",\n bullets: [\n {\n title: \"Quick Setup\",\n body: \"Secure your website with API-driven authentication flows in minutes.\",\n docsLink: \"/docs/authn/\",\n },\n {\n title: \"Enhanced Security\",\n body: \"Block account takeovers using IP, user, and domain intelligence.\",\n },\n {\n title: \"Custom Branding\",\n body: \"Deploy fully-brandable login pages for a seamless user experience.\",\n },\n ],\n quote: {\n text: \"The integration with Pangea was very straightforward. It was quick and easy to work with the APIs and even better to have native language support from the SDK.\",\n attr: \"Noah Mirzakhanian, Engineering, Codex\",\n },\n },\n permission: {\n title: \"Simplify Permission Management Across Your Apps\",\n subhead: \"Manage who can do what in your app with Pangea's customizable permission management system.\",\n bullets: [\n {\n title: \"Granular Permissions\",\n body: \"Define precise permissions with role, relationship, or attribute-based controls.\",\n },\n {\n title: \"Unified Policy Management\",\n body: \"Centralize permission management to avoid sprawl across apps.\",\n },\n {\n title: \"Fast Integration\",\n body: \"Use SDKs and APIs to integrate permissions into any app in minutes.\",\n docsLink: \"/docs/authz/\",\n },\n ],\n quote: {\n text: \"The integration with Pangea was very straightforward. It was quick and easy to work with the APIs and even better to have native language support from the SDK.\",\n attr: \"Noah Mirzakhanian, Engineering, Codex\",\n },\n },\n};\nexport var getContentKeys = function () {\n return reduce(Object.keys(CONTENT_OPTIONS), function (result, key) {\n result[key] = true;\n return result;\n }, {});\n};\n","import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { Box, Link, Stack, Typography } from \"@mui/material\";\nimport { OpenInNew } from \"@mui/icons-material\";\nimport { useTheme } from \"@mui/material/styles\";\nimport useMediaQuery from \"@mui/material/useMediaQuery\";\nimport { ShieldOutlined, CheckCircleOutlineOutlined, FactCheckOutlined, } from \"@mui/icons-material\";\nimport MarketingFooter from \"./footer\";\nimport { CONTENT_OPTIONS } from \"@src/content/marketing\";\nimport { getContentKeys } from \"@src/content/marketing\";\nvar bulletIcons = [\n _jsx(ShieldOutlined, { color: \"primary\", sx: { fontSize: \"30px\" } }),\n _jsx(CheckCircleOutlineOutlined, { color: \"primary\", sx: { fontSize: \"30px\" } }),\n _jsx(FactCheckOutlined, { color: \"primary\", sx: { fontSize: \"30px\" } }),\n];\nvar getBaseDomain = function () {\n var hostname = window.location.hostname;\n if (hostname.match(/dev\\./)) {\n return \"https://dev.pangea.cloud\";\n }\n if (hostname.match(/stg\\./)) {\n return \"https://stg.pangea.cloud\";\n }\n return \"https://pangea.cloud\";\n};\nvar PangeaLayout = function (_a) {\n var _b, _c, _d;\n var contentKey = _a.contentKey, children = _a.children;\n var theme = useTheme();\n var isMedium = useMediaQuery(theme.breakpoints.up(\"md\"));\n var hostname = getBaseDomain();\n var contentKeys = getContentKeys();\n var contentKey_ = Object.hasOwn(contentKeys, contentKey)\n ? contentKey\n : \"mlp\"; // default to standard content\n var formFirst = contentKey === \"mlp\";\n var content = CONTENT_OPTIONS[contentKey_];\n var contentOrder = formFirst ? \"column-reverse\" : \"column\";\n var logo = (_jsx(Link, { href: hostname, target: \"new\", children: _jsx(Box, { component: \"img\", width: \"115px\", height: \"24px\", src: \"https://pangea-marketing.s3.us-west-2.amazonaws.com/pangea-color.svg\" }) }));\n return (_jsxs(Stack, { direction: { xs: contentOrder, md: \"row\" }, justifyContent: { xs: \"flex-end\", md: \"center\" }, gap: { xs: formFirst ? 6 : 0, sm: 4, md: 7 }, sx: {\n minHeight: \"100vh\",\n backgroundColor: \"#FFFFFF\",\n }, children: [_jsxs(Stack, { justifyContent: \"space-between\", alignItems: \"center\", gap: 4, sx: {\n width: { xs: \"100%\", md: \"50%\" },\n marginTop: 4,\n marginBottom: 4,\n }, children: [isMedium && (_jsx(Stack, { direction: \"row\", justifyContent: \"left\", sx: {\n width: \"100%\",\n maxWidth: \"490px\",\n padding: \"0 32px\",\n }, children: logo })), !isMedium && !formFirst && (_jsx(Stack, { direction: \"row\", justifyContent: \"center\", sx: {\n width: \"100%\",\n margin: \"40px 0 0\",\n }, children: logo })), _jsxs(Stack, { justifyContent: \"center\", alignItems: \"center\", sx: {\n maxWidth: \"510px\",\n padding: { xs: \"0 20px\", md: \"0 0 0 32px\" },\n }, children: [_jsx(Typography, { variant: \"h1\", mb: 1, pr: 3, sx: {\n fontSize: \"35px\",\n lineHeight: \"43px\",\n fontWeight: \"600\",\n }, children: content.title }), _jsx(Typography, { variant: \"body1\", mb: 7, sx: {\n fontSize: \"19px\",\n lineHeight: \"27px\",\n color: \"#828AA4\",\n fontWeight: \"300\",\n }, children: content.subhead }), _jsx(Stack, { gap: 4, pr: 4, children: (_b = content === null || content === void 0 ? void 0 : content.bullets) === null || _b === void 0 ? void 0 : _b.map(function (item, idx) {\n return (_jsxs(Stack, { direction: \"row\", children: [_jsx(Stack, { justifyContent: \"center\", alignItems: \"center\", mr: 2, sx: {\n height: \"50px\",\n padding: \"0 10px\",\n borderRadius: \"10px\",\n backgroundColor: \"#F1F4F7\",\n }, children: idx < 3 ? bulletIcons[idx] : null }), _jsxs(Stack, { children: [_jsx(Typography, { variant: \"h5\", sx: {\n fontSize: \"18px\",\n lineHeight: \"24px\",\n fontWeight: \"400\",\n }, children: item === null || item === void 0 ? void 0 : item.title }), _jsxs(Typography, { variant: \"body1\", sx: {\n fontSize: \"16px\",\n lineHeight: \"24px\",\n fontWeight: \"300\",\n color: \"#767f88\",\n }, children: [item === null || item === void 0 ? void 0 : item.body, (item === null || item === void 0 ? void 0 : item.docsLink) && (_jsxs(_Fragment, { children: [\" \", _jsxs(Link, { href: \"\".concat(hostname).concat(item.docsLink), target: \"docs\", sx: {\n display: \"inline-flex\",\n alignItems: \"center\",\n }, children: [\"Docs\", \" \", _jsx(OpenInNew, { fontSize: \"small\", sx: { marginLeft: \"4px\" } })] })] }))] })] })] }));\n }) }), (content === null || content === void 0 ? void 0 : content.quote) && (_jsxs(Stack, { mt: 4, p: 4, gap: \"10px\", sx: {\n width: \"100%\",\n borderRadius: \"16px\",\n background: \"linear-gradient(270deg, #F7F2FF 0%, #EBFCFF 100%)\",\n border: \"2px solid\",\n borderImageSource: \"linear-gradient(90deg, #38DDFF 0%, #D6B9FF 100%)\",\n }, children: [_jsxs(Typography, { variant: \"body1\", sx: { fontWeight: \"400\", fontStyle: \"italic\" }, children: [\"\\u201C\", (_c = content === null || content === void 0 ? void 0 : content.quote) === null || _c === void 0 ? void 0 : _c.text, \"\\u201D\"] }), _jsxs(Typography, { variant: \"body2\", sx: { fontSize: \"16px\" }, children: [\"\\u2013 \", (_d = content === null || content === void 0 ? void 0 : content.quote) === null || _d === void 0 ? void 0 : _d.attr] })] }))] }), _jsx(Stack, { direction: \"row\", alignItems: \"flex-start\", sx: {\n width: \"100%\",\n maxWidth: \"452px\",\n } }), isMedium && _jsx(MarketingFooter, {})] }), _jsxs(Stack, { justifyContent: \"center\", alignItems: \"center\", sx: {\n width: { xs: \"100%\", md: \"50%\" },\n backgroundColor: { xs: \"transparent\", md: \"#F6F9FC\" },\n }, children: [!isMedium && formFirst && (_jsx(Stack, { direction: \"row\", justifyContent: \"center\", sx: {\n width: \"100%\",\n margin: \"40px 0\",\n }, children: logo })), _jsx(Stack, { justifyContent: \"center\", alignItems: \"stretch\", textAlign: \"center\", sx: {\n width: \"100%\",\n maxWidth: \"384px\",\n padding: 4,\n backgroundColor: \"#FFFFFF\",\n borderRadius: \"16px\",\n boxShadow: {\n xs: \"none\",\n sm: \"rgba(0, 0, 0, 0.16) 0px 8px 24px 0px\",\n },\n }, children: children }), !isMedium && (_jsx(Stack, { mt: 4, mb: 4, children: _jsx(MarketingFooter, {}) }))] })] }));\n};\nexport default PangeaLayout;\n","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { Stack } from \"@mui/material\";\nimport { Panel } from \"@pangeacyber/react-mui-authn\";\nvar HostedLayout = function (_a) {\n var branding = _a.branding, children = _a.children;\n return (_jsx(Stack, { height: \"100%\", children: _jsx(Panel, { brandName: branding.authn_show_name === \"yes\" ? branding.brand_name : \"\", logoUrl: branding.brand_logo, logoHeight: branding.brand_logo_height, bgColor: branding.bg_color, bgImage: branding.bg_image, density: branding.density, children: children }) }));\n};\nexport default HostedLayout;\n","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport PangeaLayout from \"./pangea\";\nimport HostedLayout from \"./hosted\";\nvar Layout = function (_a) {\n var branding = _a.branding, isPangea = _a.isPangea, children = _a.children;\n var urlParams = new URLSearchParams(window.location.search);\n var pmParam = urlParams.get(\"pm\");\n if (isPangea && !!pmParam) {\n // if pangea and has pm=mlp (marketing left panel) flag\n return _jsx(PangeaLayout, { contentKey: pmParam, children: children });\n }\n else {\n return _jsx(HostedLayout, { branding: branding, children: children });\n }\n};\nexport default Layout;\n","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport ReactDOM from \"react-dom/client\";\nimport { createBrowserRouter, RouterProvider } from \"react-router-dom\";\nimport \"./styles/app.scss\";\nimport App from \"./App\";\nvar router = createBrowserRouter([\n {\n path: \"*\",\n element: _jsx(App, {}),\n },\n]);\nReactDOM.createRoot(document.getElementById(\"app\")).render(_jsx(RouterProvider, { router: router }));\n","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { useMemo } from \"react\";\nimport ScopedCssBaseline from \"@mui/material/ScopedCssBaseline\";\nimport { ThemeProvider, createTheme } from \"@mui/material/styles\";\nimport { getBrandingThemeOptions } from \"@pangeacyber/react-mui-branding\";\nimport { AuthFlowProvider, AuthFlowView } from \"./features/AuthFlow\";\nimport Layout from \"./components/Layout\";\nvar App = function () {\n var _a;\n // @ts-ignore\n var token = window.CLIENT_TOKEN;\n // @ts-ignore\n var domain = window.PANGEA_DOMAIN;\n // @ts-ignore\n var callback = window.REDIRECT_URI;\n // @ts-ignore\n var flowId = window.FLOW_ID;\n // @ts-ignore\n var branding = window.BRANDING;\n // @ts-ignore\n var isPangea = window.IS_PANGEA || false;\n // @ts-ignore\n var email = window.EMAIL;\n // @ts-ignore\n var clientId = window.CLIENT_ID;\n // @ts-ignore\n var clientSite = window.CLIENT_SITE;\n // @ts-ignore\n var scope = window.SCOPE;\n // @ts-ignore\n var oauth2Nonce = window.OAUTH_NONCE;\n // @ts-ignore\n var oauth2CodeChallenge = window.OAUTH_CODE_CHALLENGE;\n // @ts-ignore\n var oauth2CodeChallengeMethod = window.OAUTH_CODE_CHALLENGE_METHOD;\n // @ts-ignore\n var oauth2State = window.OAUTH_STATE;\n // @ts-ignore\n var oauth2ResponseTypes = window.OAUTH_RESPONSE_TYPES;\n // @ts-ignore\n var oauth2RedirectUrl = window.OAUTH_REDIRECT_URL;\n // @ts-ignore\n var usePathApi = window.USE_PATH_API;\n var brandTheme = useMemo(function () {\n try {\n var themeOptions = getBrandingThemeOptions(branding || {});\n return createTheme(themeOptions);\n }\n catch (_a) {\n // @ts-ignore\n return createTheme();\n }\n }, [branding]);\n var config = {\n clientToken: token || \"\",\n domain: domain || \"\",\n callbackUri: callback || \"\",\n flowId: flowId || \"\",\n email: email || \"\",\n clientId: clientId || \"\",\n scope: scope || \"\",\n oauth2Nonce: oauth2Nonce || \"\",\n oauth2CodeChallenge: oauth2CodeChallenge || \"\",\n oauth2CodeChallengeMethod: oauth2CodeChallengeMethod || \"\",\n oauth2State: oauth2State || \"\",\n oauth2ResponseTypes: oauth2ResponseTypes || \"\",\n oauth2RedirectUrl: oauth2RedirectUrl || \"\",\n usePathApi: usePathApi || false,\n };\n var clientOptions = {};\n var viewOptions = {\n brandName: isPangea ? \"Pangea\" : branding.brand_name || \"\",\n startHeading: branding.start_heading || \"Log in or Sign up\",\n startButtonLabel: branding.start_button_label || \"Continue with email\",\n signupHeading: branding.signup_heading || \"Signup\",\n signupButtonLabel: branding.signup_button_label || \"Continue\",\n passwordHeading: branding.password_heading || \"Welcome back!\",\n passwordButtonLabel: branding.password_button_label || \"Sign in\",\n socialHeading: branding.social_heading || \"Other ways\",\n showSocialIcons: (_a = branding.authn_show_social_icons) !== null && _a !== void 0 ? _a : true,\n otpButtonLabel: branding.otp_button_label || \"Submit\",\n captchaHeading: branding.captcha_heading || \"Prove you're human\",\n eulaHeading: branding.eula_heading || \"Accept License Agreement\",\n privacyHeading: branding.privacy_heading || \"Accept Privacy Policy\",\n submitLabel: branding.authn_submit_label || \"Submit\",\n cancelLabel: branding.authn_cancel_label || \"Start over\",\n compactSignup: isPangea ? true : false,\n rememberUser: isPangea ? true : false,\n clientSiteUrl: clientSite,\n };\n return (_jsx(ThemeProvider, { theme: brandTheme, children: _jsx(ScopedCssBaseline, { style: {\n position: \"absolute\",\n width: \"100%\",\n height: \"100%\",\n }, children: _jsx(AuthFlowProvider, { config: config, options: clientOptions, children: _jsx(Layout, { branding: branding, isPangea: isPangea, children: _jsx(AuthFlowView, { options: viewOptions, isPangea: isPangea }) }) }) }) }));\n};\nexport default App;\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.hmd = (module) => {\n\tmodule = Object.create(module);\n\tif (!module.children) module.children = [];\n\tObject.defineProperty(module, 'exports', {\n\t\tenumerable: true,\n\t\tset: () => {\n\t\t\tthrow new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);\n\t\t}\n\t});\n\treturn module;\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = (module) => {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t358: 0,\n\t773: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkui\"] = self[\"webpackChunkui\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [773,76], () => (__webpack_require__(4478)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","leafPrototypes","getProto","FlowPhase","_a","options","data","_b","useState","deviceId","setDeviceId","formRef","useRef","theme","useTheme","useEffect","storedId","sessionStorage","getItem","STORAGE_DEVICE_ID_KEY","removeItem","localStorage","setItem","current","undefined","submit","content","brandName","concat","_jsxs","AuthFlowLayout","title","children","Typography","variant","sx","color","palette","text","secondary","ref","action","method","_jsx","type","name","value","flowId","reset","buttons","Button","onClick","textAlign","padding","Stack","minHeight","justifyContent","alignItems","CircularProgress","__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","useAuthFlow","phase","loading","error","cbParams","update","restart","componentProps","START","StartView","SIGNUP","SignupView","LOGIN","LoginView","CAPTCHA","CaptchaView","PROFILE","ProfileView","VERIFY_EMAIL","VerifyEmailView","RESET_PASSWORD","VerifyResetView","SET_PASSWORD","ResetPasswordView","AGREEMENTS","AgreementView","PROVISIONAL","ProvisionedView","FLOW_RETURN","FlowReturnView","PASSKEY","PasskeyView","CONSENT","ConsentView","COMPLETE","FlowCompleteView","INVALID_AUTH_METHOD","InvalidAuthView","MISMATCH_EMAIL","MismatchEmailView","ERROR","ErrorView","LoadingView","__awaiter","thisArg","_arguments","P","generator","Promise","resolve","reject","fulfilled","step","next","e","rejected","result","done","then","__generator","body","f","y","g","_","label","sent","trys","ops","verb","Symbol","iterator","v","op","TypeError","pop","push","SESSION_RELOAD","COOKIE_NO_PASSKEY","AuthFlowContext","createContext","AuthFlowProvider","config","setPhase","_c","setError","_d","setLoading","_e","setData","_f","setCbParams","isStart","useEmail","usedPasskey","invite","captchaCode","isPangea","window","IS_PANGEA","client","useMemo","AuthNFlowClient","emailParam","URLSearchParams","location","search","get","navEntries","performance","getEntriesByType","String","deleteSessionCookie","deleteSessionData","reload","match","start","email","getSessionData","storedData","getSessionKeyName","JSON","parse","updateSessionData","useCallback","sessionData","newData","flow_id","format","usernameFormat","callbackState","callbackStateMap","dataString","stringify","document","cookie","payload","queryString","urlParams","cbState","cbCode","cbFlowId","redirect","providerData","socialName","payload_1","samlData","providerId","providerName","payload_2","username","utmCodes","success","response","state","code","initState","startsWith","replace","social_provider","uri","toString","verifySocial","updateFlowState","split","provider_id","provider_name","verifySaml","getState","device_id","STORAGE_REMEMBER_USERNAME_KEY","clientId","client_id","scope","oauth2Nonce","oauth2_nonce","oauth2CodeChallenge","oauth2_code_challenge","oauth2CodeChallengeMethod","oauth2_code_challenge_method","oauth2State","oauth2_state","oauth2ResponseTypes","oauth2_response_types","oauth2RedirectUrl","oauth2_redirect_uri","getCookie","utm_codes","newUrl","getFlowState","status","pathname","protocol","host","history","replaceState","choice","extra","AuthFlow","Choice","NONE","SET_EMAIL","setEmailHandler","SET_USERNAME","setUsernameHandler","SET_PHONE","setPhoneHandler","PASSWORD","verifyPasswordHandler","setPasswordHandler","captchaHandler","profileHandler","verifyEmailHandler","SOCIAL","SAML","EMAIL_OTP","verifyEmailOtp","SMS_OTP","verifySmsOtp","TOTP","verifyTotp","acceptAgreement","resetPassword","sendPasskey","oauthConsent","completeFlow","console","log","setEmail","setUsername","setPhone","success_1","response_1","verifyPassword","verifyCaptcha","setPassword","updateProfile","verifyEmail","emailOtp","smsOtp","totp","nextPhase","suppress","setCookie","cloneDeep","INIT","complete","passkey","socialParam","socialProviderMap","href","redirect_uri","provisional","flowType","includes","ts","data_1","now","Math","floor","Date","last","checkShouldReload","setReloadTime","memoData","Provider","useContext","Gartner","width","height","viewBox","fill","xmlns","d","isMedium","useMediaQuery","breakpoints","up","direction","xs","md","gap","whiteSpace","pl","mt","CONTENT_OPTIONS","mlp","subhead","bullets","access","quote","attr","authz","docsLink","sso","oauth","saml","mfa","passkeys","scim","webauthn","permission","bulletIcons","ShieldOutlined","fontSize","CheckCircleOutlineOutlined","FactCheckOutlined","contentKey","hostname","getBaseDomain","contentKeys","reduce","keys","key","contentKey_","hasOwn","formFirst","contentOrder","logo","Link","target","Box","component","src","sm","backgroundColor","marginTop","marginBottom","maxWidth","margin","mb","pr","lineHeight","fontWeight","map","item","idx","mr","borderRadius","_Fragment","display","OpenInNew","marginLeft","background","border","borderImageSource","fontStyle","MarketingFooter","boxShadow","branding","Panel","authn_show_name","brand_name","logoUrl","brand_logo","logoHeight","brand_logo_height","bgColor","bg_color","bgImage","bg_image","density","pmParam","PangeaLayout","HostedLayout","router","createBrowserRouter","path","element","token","CLIENT_TOKEN","domain","PANGEA_DOMAIN","callback","REDIRECT_URI","FLOW_ID","BRANDING","EMAIL","CLIENT_ID","clientSite","CLIENT_SITE","SCOPE","OAUTH_NONCE","OAUTH_CODE_CHALLENGE","OAUTH_CODE_CHALLENGE_METHOD","OAUTH_STATE","OAUTH_RESPONSE_TYPES","OAUTH_REDIRECT_URL","usePathApi","USE_PATH_API","brandTheme","themeOptions","getBrandingThemeOptions","createTheme","clientToken","callbackUri","viewOptions","startHeading","start_heading","startButtonLabel","start_button_label","signupHeading","signup_heading","signupButtonLabel","signup_button_label","passwordHeading","password_heading","passwordButtonLabel","password_button_label","socialHeading","social_heading","showSocialIcons","authn_show_social_icons","otpButtonLabel","otp_button_label","captchaHeading","captcha_heading","eulaHeading","eula_heading","privacyHeading","privacy_heading","submitLabel","authn_submit_label","cancelLabel","authn_cancel_label","compactSignup","rememberUser","clientSiteUrl","ThemeProvider","ScopedCssBaseline","style","position","Layout","AuthFlowView","ReactDOM","getElementById","render","RouterProvider","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","exports","module","id","loaded","__webpack_modules__","m","O","chunkIds","fn","priority","notFulfilled","Infinity","j","every","splice","r","getter","__esModule","a","getPrototypeOf","obj","mode","ns","create","def","indexOf","getOwnPropertyNames","forEach","definition","o","defineProperty","enumerable","globalThis","Function","hmd","set","Error","prop","toStringTag","nmd","paths","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","self","bind","__webpack_exports__"],"sourceRoot":""}