{"version":3,"file":"js/index-unauthenticated-setup.aed139f0.js","sources":["webpack/runtime/jsonp_chunk_loading","../../frontend/src/base/components/common/inputs/MaskInput.tsx","../../frontend/src/base/components/common/primitives/Card.module.scss?60c5","../../frontend/src/base/components/common/primitives/Card.tsx","../../frontend/src/base/core/CakeStore.ts","../../frontend/src/founder/index-unauthenticated-setup.tsx","../../frontend/src/base/integrations/gtm.ts","webpack/runtime/compat_get_default_export","webpack/runtime/define_property_getters","webpack/runtime/global","webpack/runtime/has_own_property","webpack/runtime/make_namespace_object","webpack/runtime/on_chunk_loaded","webpack/runtime/auto_public_path"],"sourcesContent":["\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\n      var installedChunks = {8215: 0,8541: 0,9764: 0,};\n      __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n// install a JSONP callback for chunk loading\nvar __rspack_jsonp = (parentChunkLoadingFunction, data) => {\n\tvar chunkIds = data[0];\nvar moreModules = data[1];\nvar runtime = data[2];\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 (\n\t\t\t__webpack_require__.o(installedChunks, chunkId) &&\n\t\t\tinstalledChunks[chunkId]\n\t\t) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\t\n\treturn __webpack_require__.O(result);\n\t\n};\n\nvar chunkLoadingGlobal = self[\"rspackChunkcake_react_app\"] = self[\"rspackChunkcake_react_app\"] || [];\nchunkLoadingGlobal.forEach(__rspack_jsonp.bind(null, 0));\nchunkLoadingGlobal.push = __rspack_jsonp.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));\n","import { getAppContext } from \"@base/core/CakeStore\";\nimport { MAX_DECIMAL_INPUT } from \"@base/core/numericLimits\";\nimport { useOrgStore } from \"@base/hooks/useOrgStore\";\nimport { MaskitoOptions, maskitoUpdateElement } from \"@maskito/core\";\nimport {\n\tmaskitoCaretGuard,\n\tmaskitoEventHandler,\n\tmaskitoNumberOptionsGenerator,\n\tMaskitoNumberParams,\n\tmaskitoParseNumber,\n\tmaskitoStringifyNumber,\n} from \"@maskito/kit\";\nimport { useMaskito } from \"@maskito/react\";\nimport React, {\n\tforwardRef,\n\tRefCallback,\n\tuseCallback,\n\tuseEffect,\n\tuseImperativeHandle,\n\tuseMemo,\n\tuseRef,\n\tuseState,\n} from \"react\";\n\nexport type MaskTypes = \"number\" | \"currency\" | \"percentage\";\ntype OnChangeValueType = number | null;\n\ninterface Props {\n\tmaskType: MaskTypes;\n\tonChange?: (event: { target: { value: OnChangeValueType } }) => void;\n\tprefix?: string;\n\tsufix?: string;\n\tshowThousandSeparator?: boolean;\n\tallowDecimal?: boolean;\n\tallowNegative?: boolean;\n\tdecimalLimit?: number;\n\tintegerLimit?: number;\n\tdataTest?: string;\n\tcurrency?: string;\n\tcountry?: string;\n\tdisabled?: boolean;\n\t/** Controlled value (number) */\n\tvalue?: number | null;\n\t/** Uncontrolled initial value */\n\tdefaultValue?: number | null;\n}\n\ntype MaskInputProps = Props & Omit<React.HTMLProps<HTMLInputElement>, \"onChange\" | \"value\" | \"defaultValue\">;\n\nconst getLocaleSeparators = (country: string, currency: string) => {\n\ttry {\n\t\tconst locale = `en-${country.toUpperCase()}`;\n\t\tconst parts = new Intl.NumberFormat(locale, { style: \"currency\", currency }).formatToParts(1000.1);\n\t\treturn {\n\t\t\tdecimal: parts.find((p) => p.type === \"decimal\")?.value || \".\",\n\t\t\tthousand: parts.find((p) => p.type === \"group\")?.value || \",\",\n\t\t};\n\t} catch (e) {\n\t\tconsole.warn(\"Error determining locale separators, falling back to defaults.\", e);\n\t\treturn { decimal: \".\", thousand: \",\" };\n\t}\n};\n\nconst MaskInput = forwardRef<HTMLInputElement & { valueAsNumber: number | undefined }, MaskInputProps>(\n\t(\n\t\t{\n\t\t\tmaskType = \"number\",\n\t\t\tshowThousandSeparator = true,\n\t\t\tallowDecimal = false,\n\t\t\tallowNegative = true,\n\t\t\tdecimalLimit,\n\t\t\tintegerLimit,\n\t\t\tprefix,\n\t\t\tsufix,\n\t\t\tcurrency,\n\t\t\tcountry,\n\t\t\tdataTest,\n\t\t\tvalue: controlledValue,\n\t\t\tdefaultValue,\n\t\t\tmax,\n\t\t\tmin,\n\t\t\tonChange,\n\t\t\tonBlur: onBlurProp,\n\t\t\t...props\n\t\t}: MaskInputProps,\n\t\tref\n\t) => {\n\t\tconst orgData = useOrgStore((state) => state.organisationData);\n\n\t\tconst finalCountry = country || orgData?.country || \"US\";\n\t\tconst finalCurrency = currency || orgData?.currency || \"USD\";\n\t\tconst currencySymbol = getAppContext().CURRENCY_SYMBOLS[finalCurrency] || \"$\";\n\n\t\tconst elementRef = useRef<HTMLInputElement>(null);\n\n\t\tconst isControlled = controlledValue !== undefined;\n\t\tconst localeSeparators = useMemo(\n\t\t\t() => getLocaleSeparators(finalCountry, finalCurrency),\n\t\t\t[finalCountry, finalCurrency]\n\t\t);\n\n\t\tconst maskitoConfig = useMemo(() => {\n\t\t\tconst shouldAllowDecimal = maskType === \"percentage\" || maskType === \"currency\" ? true : allowDecimal;\n\t\t\tconst calculatedDecimalLimit = maskType === \"percentage\" ? (decimalLimit ?? 2) : (decimalLimit ?? 5);\n\t\t\tconst calculatedSuffix = maskType === \"percentage\" ? \"%\" : (sufix ?? \"\");\n\t\t\tconst calculatedPrefix = maskType === \"currency\" ? currencySymbol : (prefix ?? \"\");\n\t\t\tconst calculatedIntegerLimit = maskType === \"currency\" ? 20 : (integerLimit ?? 20);\n\t\t\tconst integerLimitMax = Number(\"9\".repeat(calculatedIntegerLimit));\n\t\t\tconst calculatedMax = maskType === \"percentage\" ? 100 : Math.min(MAX_DECIMAL_INPUT, integerLimitMax);\n\t\t\tconst calculatedMin = maskType === \"percentage\" ? 0 : allowNegative ? Number.MIN_SAFE_INTEGER : 0;\n\n\t\t\tconst numberParams: MaskitoNumberParams = {\n\t\t\t\tprefix: calculatedPrefix,\n\t\t\t\tpostfix: calculatedSuffix,\n\t\t\t\tthousandSeparator: showThousandSeparator ? localeSeparators.thousand : undefined,\n\t\t\t\tmaximumFractionDigits: shouldAllowDecimal ? calculatedDecimalLimit : 0,\n\t\t\t\tdecimalSeparator: shouldAllowDecimal ? localeSeparators.decimal : undefined,\n\t\t\t\tmax: (max !== undefined && max !== null ? Number(max) : null) ?? calculatedMax,\n\t\t\t\tmin: (min !== undefined && min !== null ? Number(min) : null) ?? calculatedMin,\n\t\t\t};\n\n\t\t\tconst { plugins, ...otherOpts } = maskitoNumberOptionsGenerator(numberParams);\n\t\t\tconst maskitoOptions: MaskitoOptions = {\n\t\t\t\t...otherOpts,\n\t\t\t\tplugins: [\n\t\t\t\t\t...plugins,\n\t\t\t\t\t// Forbids caret to be placed after postfix\n\t\t\t\t\tmaskitoCaretGuard((value) => {\n\t\t\t\t\t\tif (calculatedSuffix.trim().length === 0) {\n\t\t\t\t\t\t\treturn [0, value.length];\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn [0, value.length - 1];\n\t\t\t\t\t}),\n\t\t\t\t\tmaskitoEventHandler(\"input\", (element) => {\n\t\t\t\t\t\tif (element.value === calculatedSuffix || element.value === calculatedPrefix) {\n\t\t\t\t\t\t\tmaskitoUpdateElement(element, \"\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}),\n\t\t\t\t],\n\t\t\t};\n\t\t\treturn { maskitoOptions, numberParams };\n\t\t}, [\n\t\t\tmaskType,\n\t\t\tshowThousandSeparator,\n\t\t\tallowDecimal,\n\t\t\tallowNegative,\n\t\t\tdecimalLimit,\n\t\t\tintegerLimit,\n\t\t\tprefix,\n\t\t\tsufix,\n\t\t\tcurrencySymbol,\n\t\t\tlocaleSeparators,\n\t\t\tmin,\n\t\t\tmax,\n\t\t]);\n\n\t\tconst normalizeDisplayValue = useCallback(\n\t\t\t(display: string): string => {\n\t\t\t\t// Percentage fields are common free-text entry points where users type either\n\t\t\t\t// separator regardless of locale. Normalize to the active locale decimal separator\n\t\t\t\t// before parsing so both \".\" and \",\" are accepted.\n\t\t\t\tif (maskType !== \"percentage\") {\n\t\t\t\t\treturn display;\n\t\t\t\t}\n\t\t\t\tconst decimal = localeSeparators.decimal;\n\t\t\t\tconst alternateDecimal = decimal === \".\" ? \",\" : \".\";\n\t\t\t\tif (!display.includes(alternateDecimal) || display.includes(decimal)) {\n\t\t\t\t\treturn display;\n\t\t\t\t}\n\t\t\t\treturn display.replaceAll(alternateDecimal, decimal);\n\t\t\t},\n\t\t\t[localeSeparators.decimal, maskType]\n\t\t);\n\n\t\t// Convert number to display string\n\t\tconst numberToDisplay = useCallback(\n\t\t\t(num: number | null | undefined): string => {\n\t\t\t\tif (num === null || num === undefined) return \"\";\n\t\t\t\treturn maskitoStringifyNumber(num, maskitoConfig.numberParams);\n\t\t\t},\n\t\t\t[maskitoConfig.numberParams]\n\t\t);\n\n\t\t// Convert display string to number\n\t\tconst displayToNumber = useCallback(\n\t\t\t(display: string): number | undefined => {\n\t\t\t\tif (!display || display.trim() === \"\") return undefined;\n\t\t\t\tconst parsed = maskitoParseNumber(display, maskitoConfig.numberParams);\n\t\t\t\treturn isNaN(parsed) ? undefined : parsed;\n\t\t\t},\n\t\t\t[maskitoConfig.numberParams]\n\t\t);\n\n\t\t// --- Display state ---\n\t\t//\n\t\t// MaskInput supports two modes:\n\t\t//  - Uncontrolled (defaultValue): display managed by internal useState.\n\t\t//  - Controlled (value prop):     display derived from numberToDisplay(value).\n\t\t//\n\t\t// Problem with controlled mode: onChange always sends *parsed* numbers. Typing\n\t\t// \"25.\" parses to 25, the parent stores 25, and numberToDisplay(25) = \"25\" —\n\t\t// the trailing decimal is lost, making it impossible to type \"25.5\".\n\t\t//\n\t\t// Fix: controlledDisplayDraft. When the raw display string can't survive a\n\t\t// number → string round-trip (e.g. trailing decimal, trailing zeros like \"25.0\"),\n\t\t// we stash it as a \"draft\" and render it instead of the derived value. The draft\n\t\t// is cleared on blur (clean display) or when the controlled value changes\n\t\t// externally (e.g. a linked amount field updates the percentage).\n\n\t\tconst [uncontrolledDisplayValue, setUncontrolledDisplayValue] = useState<string>(() =>\n\t\t\tnumberToDisplay(defaultValue ?? undefined)\n\t\t);\n\t\tconst [controlledDisplayDraft, setControlledDisplayDraft] = useState<string | null>(null);\n\n\t\tconst displayValue = isControlled\n\t\t\t? (controlledDisplayDraft ?? numberToDisplay(controlledValue))\n\t\t\t: uncontrolledDisplayValue;\n\n\t\t// Clear draft when the controlled value diverges from what the draft represents.\n\t\t// This handles external updates — e.g. when an amount input recalculates the\n\t\t// percentage, controlledValue changes to a new number and the old draft is stale.\n\t\tuseEffect(() => {\n\t\t\tif (!isControlled || controlledDisplayDraft == null) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst draftNumber = displayToNumber(controlledDisplayDraft);\n\t\t\tconst controlledNumber = controlledValue ?? undefined;\n\t\t\tif (draftNumber !== controlledNumber) {\n\t\t\t\tsetControlledDisplayDraft(null);\n\t\t\t}\n\t\t}, [controlledDisplayDraft, controlledValue, displayToNumber, isControlled]);\n\n\t\tconst handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n\t\t\tconst newDisplayValue = normalizeDisplayValue(e.target.value);\n\t\t\tconst newNumericValue = displayToNumber(newDisplayValue);\n\n\t\t\tif (!isControlled) {\n\t\t\t\tsetUncontrolledDisplayValue(newDisplayValue);\n\t\t\t} else {\n\t\t\t\t// Keep draft when the display can't round-trip through number → string\n\t\t\t\t// without loss. Covers trailing decimals (\"25.\"), trailing zeros (\"25.0\"),\n\t\t\t\t// and any other intermediate typing state.\n\t\t\t\tconst canRoundTrip = newDisplayValue === numberToDisplay(newNumericValue ?? null);\n\t\t\t\tsetControlledDisplayDraft(canRoundTrip ? null : newDisplayValue);\n\t\t\t}\n\n\t\t\tonChange?.({ target: { value: newNumericValue ?? null } });\n\t\t};\n\n\t\t// On blur, discard the draft so the display snaps to the clean numeric\n\t\t// representation (e.g. \"25.\" → \"25\", \"25.0\" → \"25\").\n\t\tconst handleBlur = useCallback(\n\t\t\t(e: React.FocusEvent<HTMLInputElement>) => {\n\t\t\t\tsetControlledDisplayDraft(null);\n\t\t\t\tonBlurProp?.(e);\n\t\t\t},\n\t\t\t[onBlurProp]\n\t\t);\n\n\t\tconst maskitoRef = useMaskito({ options: maskitoConfig.maskitoOptions }) as RefCallback<HTMLInputElement>;\n\t\tconst setInputRef = useCallback(\n\t\t\t(node: HTMLInputElement | null) => {\n\t\t\t\telementRef.current = node;\n\t\t\t\tmaskitoRef(node);\n\t\t\t},\n\t\t\t[maskitoRef]\n\t\t);\n\n\t\tuseImperativeHandle(ref, () => ({\n\t\t\t...elementRef.current,\n\t\t\t// @ts-expect-error STRICT_NULL_CHECKS type assignment error\n\t\t\tget valueAsNumber() {\n\t\t\t\treturn displayToNumber(elementRef.current?.value ?? \"\");\n\t\t\t},\n\t\t\tfocus: () => elementRef.current?.focus(),\n\t\t}));\n\n\t\treturn (\n\t\t\t<input\n\t\t\t\t{...props}\n\t\t\t\tref={setInputRef}\n\t\t\t\tdata-test={dataTest}\n\t\t\t\tvalue={displayValue}\n\t\t\t\tonChange={handleChange}\n\t\t\t\tonBlur={handleBlur}\n\t\t\t\tdata-is=\"input\"\n\t\t\t/>\n\t\t);\n\t}\n);\n\nMaskInput.displayName = \"MaskInput\";\n\nexport { MaskInput };\n","// extracted by css-extract-rspack-plugin\nexport default {\"card\":\"card_tTShAf\",\"cardHeader\":\"cardHeader_s3IscR\",\"hasBorder\":\"hasBorder_Sg4ngq\",\"variant-default\":\"variant-default__5MV4j\",\"variantDefault\":\"variant-default__5MV4j\",\"variant-primary\":\"variant-primary_M3Xeyd\",\"variantPrimary\":\"variant-primary_M3Xeyd\",\"variant-secondary\":\"variant-secondary_qFFJ08\",\"variantSecondary\":\"variant-secondary_qFFJ08\",\"variant-tertiary\":\"variant-tertiary_HXKPlV\",\"variantTertiary\":\"variant-tertiary_HXKPlV\",\"variant-info\":\"variant-info_VqGBbN\",\"variantInfo\":\"variant-info_VqGBbN\",\"variant-success\":\"variant-success_FV7Dzt\",\"variantSuccess\":\"variant-success_FV7Dzt\",\"variant-warning\":\"variant-warning_Vyx9Jm\",\"variantWarning\":\"variant-warning_Vyx9Jm\",\"variant-error\":\"variant-error_MsyYvR\",\"variantError\":\"variant-error_MsyYvR\",\"variant-gray\":\"variant-gray_ZRL7Wg\",\"variantGray\":\"variant-gray_ZRL7Wg\",\"variant-support\":\"variant-support_Cy89o0\",\"variantSupport\":\"variant-support_Cy89o0\"};","import clsx from \"clsx\";\nimport React, { forwardRef } from \"react\";\nimport { Box, BoxProps } from \"./Box\";\nimport styles from \"./Card.module.scss\";\n\nexport interface CardProps extends BoxProps {\n\tclassName?: string;\n\tvariant?:\n\t\t| \"primary\"\n\t\t| \"secondary\"\n\t\t| \"tertiary\"\n\t\t| \"info\"\n\t\t| \"success\"\n\t\t| \"warning\"\n\t\t| \"error\"\n\t\t| \"gray\"\n\t\t| \"support\"\n\t\t| \"default\";\n\tchildren?: React.ReactNode;\n}\n\nexport const Card = forwardRef<HTMLDivElement, CardProps>(({ variant = \"default\", className, ...props }, ref) => {\n\tconst classList = clsx([\n\t\tstyles.card,\n\t\tclassName,\n\t\tvariant && styles[`variant-${variant}`],\n\t\tprops.onClick && `cursor-pointer`,\n\t]);\n\n\treturn (\n\t\t<Box {...props} className={classList} ref={ref} data-is=\"card\">\n\t\t\t{props.children}\n\t\t</Box>\n\t);\n});\n","import { ApolloClient, HttpLink, InMemoryCache } from \"@apollo/client\";\nimport { OrganisationData, useOrgStore } from \"@base/hooks/useOrgStore\";\nimport { useServerSentEventsStore } from \"@base/hooks/useServerSentEvents\";\nimport axios from \"axios\";\nimport { create } from \"zustand\";\nimport { persist } from \"zustand/middleware\";\n\nexport enum OnboardingStatusType {\n\tNONE = \"NONE\",\n\tRETURNING_USER = \"RETURNING_USER\",\n\tNEW_USER = \"NEW_USER\",\n}\n\ninterface UserState {\n\treadonly id: string;\n\treadonly name: string;\n\treadonly first_name?: string;\n\treadonly email: string;\n\treadonly picture?: string;\n\treadonly isSupportAdmin: boolean;\n\treadonly hasCompanies: boolean;\n\treadonly onboardingStatus: OnboardingStatusType;\n\treadonly cake_finger?: string;\n\treadonly needsToAcceptNewTerms: boolean;\n\treadonly needsToDismissNewUserScreen: boolean;\n\treadonly hasVisibleValuation: boolean;\n\treadonly hasAtLeastOneVisibleValuation: boolean;\n}\n\nconst useUserProfile = create<UserState>()(() => ({\n\tid: \"\",\n\tname: \"\",\n\temail: \"\",\n\tisSupportAdmin: false,\n\thasCompanies: false,\n\tonboardingStatus: OnboardingStatusType.NONE,\n\tneedsToAcceptNewTerms: true,\n\tneedsToDismissNewUserScreen: true,\n\thasVisibleValuation: false,\n\thasAtLeastOneVisibleValuation: false,\n}));\n\ninterface AppSharedStore {\n\treadonly apolloClient?: ApolloClient;\n\treadonly csrfToken?: string;\n\treadonly paginationSize: number;\n\treadonly itemsPerLoad: number;\n}\n\ninterface Dictionary<T> {\n\t[Key: string]: T;\n}\n\ninterface BaseAppContext {\n\tCURRENCIES: Dictionary<string>;\n\tCURRENCY_SYMBOLS: Dictionary<string>;\n\tCOUNTRY_LIST: Array<Country>;\n\tGOOGLE_CLOUD_PLATFORM_KEY: string;\n\tSENTRY_DSN: string;\n\tAPP_ENDPOINT: string;\n\tBASE_DOMAIN_URL: string;\n\tPLATFORM_VERSION: string;\n\tSTRIPE_API_PUBLIC_KEY: string;\n\tAPP_ENVIRONMENT: string;\n\tADORA_ORG_ID: string;\n\tHOTJAR_ID: string;\n\tSW_URL: string;\n\tAPP_SEGMENT: \"founder\" | \"employee\";\n\tSKIP_ANALYTICS: boolean;\n\tcsrf_token: string;\n\t[key: string]: unknown; // Allow additional dynamic keys safely\n}\n\ninterface FounderAppContext extends BaseAppContext {\n\tAPP_SEGMENT: \"founder\";\n\tDEFAULT_SELECTED_COMPANY_ID: string;\n\tAUTHENTICATED_USER: UserState;\n\tORG_DATA: OrganisationData | null; // Can be null for first-time setup flows\n\tCOMMAND_CENTER_FRONTEND_REFRESH_IN_MILLIS: number;\n\tSKIP_SSE_ORG_CHECK: boolean;\n\tPOSITIONS_LIST?: { position: string; description: string }[];\n\tROLES_LIST?: { role: string; description: string }[];\n}\n\ntype FounderAppContextWithOrgData = FounderAppContext & {\n\tORG_DATA: OrganisationData;\n};\n\ninterface EmployeeAppContext extends BaseAppContext {\n\tAPP_SEGMENT: \"employee\";\n\tAUTHENTICATED_USER: UserState;\n\tSKIP_SSE_ORG_CHECK: boolean;\n}\n\ntype AppContext = FounderAppContext | EmployeeAppContext;\n\nconst OBFUSCATION_KEY = \"c0n73x7k3y\";\n\nfunction decodeXorFromHex(hex: string, key: string): string {\n\tconst bytes = hex.match(/.{1,2}/g)?.map((b) => parseInt(b, 16)) ?? [];\n\tconst decodedChars = bytes.map((byte, i) => String.fromCharCode(byte ^ key.charCodeAt(i % key.length)));\n\treturn decodedChars.join(\"\");\n}\n\nfunction loadAppContext(): AppContext | null {\n\tconst el = document.getElementById(\"initialContext\");\n\tif (!el) return null;\n\n\tconst hex = el.textContent?.trim() ?? \"\";\n\ttry {\n\t\tconst json = decodeXorFromHex(hex, OBFUSCATION_KEY);\n\t\tconst decoded = JSON.parse(json);\n\t\treturn decoded;\n\t} catch (e) {\n\t\tconsole.error(\"Failed to decode app context:\", e);\n\t\treturn null;\n\t}\n}\n\nconst useAppConfig = create<AppSharedStore>()(() => ({\n\tpaginationSize: 0,\n\titemsPerLoad: 0,\n}));\n\ninterface Country {\n\tcode: string;\n\tname: string;\n}\n\ntype SkinToneKey = \"dark\" | \"light\" | \"medium-dark\" | \"medium-light\" | \"medium\" | \"none\";\ninterface UserPreferences {\n\tuserCurrency: string;\n\tsetUserCurrency: (new_currency: string) => void;\n\temployeeGoalFeedbackUsage: boolean;\n\tsetEmployeeGoalFeedbackUsage: (new_value: boolean) => void;\n\tskinTone: SkinToneKey;\n\tsetSkinTone: (tone: SkinToneKey) => void;\n}\n\nconst useUserPreferences = create<UserPreferences>()(\n\tpersist(\n\t\t(set) => ({\n\t\t\tuserCurrency: \"\",\n\t\t\tsetUserCurrency: (new_currency) => set({ userCurrency: new_currency }),\n\t\t\temployeeGoalFeedbackUsage: false,\n\t\t\tsetEmployeeGoalFeedbackUsage: (new_value) => set({ employeeGoalFeedbackUsage: new_value }),\n\t\t\tskinTone: \"none\",\n\t\t\tsetSkinTone: (tone) => set({ skinTone: tone }),\n\t\t}),\n\t\t{\n\t\t\tname: \"EMPLOYEE_APP_USER_PREFERENCES\",\n\t\t}\n\t)\n);\n\ninterface UnauthenticatedStore {\n\thideHeader: boolean;\n\tsetHideHeader: (hide: boolean) => void;\n}\n\nconst useUnauthenticatedStore = create<UnauthenticatedStore>((set) => ({\n\thideHeader: false,\n\tsetHideHeader: (hide: boolean) => set({ hideHeader: hide }),\n}));\n\nconst appContext = loadAppContext();\n\nconst getAppContext = () => {\n\tif (!appContext) {\n\t\tthrow new Error(\"App context missing. Expected #initialContext to be present.\");\n\t}\n\treturn appContext;\n};\n\nconst isFounderContext = (context: AppContext): context is FounderAppContext => context.APP_SEGMENT === \"founder\";\nconst isEmployeeContext = (context: AppContext): context is EmployeeAppContext => context.APP_SEGMENT === \"employee\";\n\nconst getFounderAppSetupContext = (): FounderAppContext => {\n\tconst context = getAppContext();\n\tif (!isFounderContext(context)) {\n\t\tthrow new Error(`Invalid app segment \"${context.APP_SEGMENT}\" for founder context.`);\n\t}\n\treturn context;\n};\n\nconst hasOrgData = (context: FounderAppContext): context is FounderAppContextWithOrgData => context.ORG_DATA !== null;\n\nfunction assertHasOrgData(context: FounderAppContext): asserts context is FounderAppContextWithOrgData {\n\tif (!hasOrgData(context)) {\n\t\tthrow new Error(\"Founder context is missing ORG_DATA.\");\n\t}\n}\n\nconst getFounderAppContext = (): FounderAppContextWithOrgData => {\n\tconst context = getFounderAppSetupContext();\n\tassertHasOrgData(context);\n\treturn context;\n};\n\nconst getEmployeeAppContext = (): EmployeeAppContext => {\n\tconst context = getAppContext();\n\tif (!isEmployeeContext(context)) {\n\t\tthrow new Error(`Invalid app segment \"${context.APP_SEGMENT}\" for employee context.`);\n\t}\n\treturn context;\n};\n\nconst initializeCakeStores = () => {\n\tif (!appContext) {\n\t\treturn;\n\t}\n\n\tconst authenticatedUser = appContext.AUTHENTICATED_USER;\n\tif (authenticatedUser) {\n\t\tuseUserProfile.setState(() => authenticatedUser, true);\n\t}\n\n\ttry {\n\t\tconst httpLink = new HttpLink({\n\t\t\theaders: {\n\t\t\t\t\"X-CSRFToken\": appContext.csrf_token,\n\t\t\t},\n\t\t\turi: `${appContext.BASE_DOMAIN_URL}/graphql`,\n\t\t\tfetch: async (uri, options) => {\n\t\t\t\tconst response = await fetch(uri, options);\n\t\t\t\tif (response.headers.get(\"X-Maintenance-Mode\")) {\n\t\t\t\t\tconsole.debug(\"Maintenance mode detected, reloading page\");\n\t\t\t\t\twindow.location.reload();\n\t\t\t\t\tthrow new Error(\"We're performing maintenance. We'll be right back!\");\n\t\t\t\t}\n\t\t\t\treturn response;\n\t\t\t},\n\t\t});\n\t\tconst apolloCache = new InMemoryCache({\n\t\t\ttypePolicies: {\n\t\t\t\tQuery: {\n\t\t\t\t\tfields: {\n\t\t\t\t\t\torganisation: {\n\t\t\t\t\t\t\tmerge: false,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t/*\n                    If we get EsopOffer objects with different fields from different requests,\n                    they would cache bust each other. Therefore, `keyFields: false` for those.\n                    https://www.apollographql.com/docs/react/caching/cache-configuration/#disabling-normalization\n                */\n\t\t\t\tEsopOffer: {\n\t\t\t\t\tkeyFields: false,\n\t\t\t\t},\n\t\t\t\tEssOffer: {\n\t\t\t\t\tkeyFields: false,\n\t\t\t\t},\n\t\t\t\tOrganisationRaiseOffer: {\n\t\t\t\t\tkeyFields: false,\n\t\t\t\t},\n\t\t\t\tNotesRoundOffer: {\n\t\t\t\t\tkeyFields: false,\n\t\t\t\t},\n\t\t\t\tShareTransferOfferType: {\n\t\t\t\t\tkeyFields: false,\n\t\t\t\t},\n\t\t\t\tShareholder: {\n\t\t\t\t\tkeyFields: false,\n\t\t\t\t},\n\t\t\t\tBoardApprovalType: {\n\t\t\t\t\tkeyFields: false,\n\t\t\t\t},\n\t\t\t\tBillingShareholderType: {\n\t\t\t\t\tkeyFields: false,\n\t\t\t\t},\n\t\t\t\tSharetypeHoldingType: {\n\t\t\t\t\tkeyFields: false,\n\t\t\t\t},\n\t\t\t\tStakeholderAssetsPreviewType: {\n\t\t\t\t\tkeyFields: false,\n\t\t\t\t},\n\t\t\t\tStakeholderVestablePlanHoldingsType: {\n\t\t\t\t\tkeyFields: false,\n\t\t\t\t},\n\t\t\t},\n\t\t});\n\t\tconst networkStoreInitiaState: AppSharedStore = {\n\t\t\tcsrfToken: appContext.csrf_token,\n\t\t\tapolloClient: new ApolloClient({\n\t\t\t\tlink: httpLink,\n\t\t\t\tcache: apolloCache,\n\t\t\t}),\n\t\t\tpaginationSize: 24,\n\t\t\titemsPerLoad: 2,\n\t\t};\n\t\tuseAppConfig.setState(networkStoreInitiaState, true);\n\t\taxios.defaults.xsrfCookieName = \"csrftoken\";\n\t\taxios.defaults.xsrfHeaderName = \"X-CSRFToken\";\n\t\taxios.defaults.withXSRFToken = true;\n\t} catch (error) {\n\t\tconsole.error(\"Error initializing useAppConfig\", error);\n\t}\n\n\tif (isFounderContext(appContext) && appContext.ORG_DATA) {\n\t\tuseOrgStore.getState().initialize(appContext.ORG_DATA);\n\t}\n\n\tconst userId = useUserProfile.getState().id;\n\tif (userId) {\n\t\tuseServerSentEventsStore.getState().sse.initialize(userId, Boolean(appContext.SKIP_SSE_ORG_CHECK));\n\t}\n};\n\nexport {\n\tgetAppContext,\n\tgetEmployeeAppContext,\n\tgetFounderAppContext,\n\tgetFounderAppSetupContext,\n\tinitializeCakeStores,\n\tassertHasOrgData,\n\thasOrgData,\n\tisEmployeeContext,\n\tisFounderContext,\n\tuseAppConfig,\n\tuseUnauthenticatedStore,\n\tuseUserPreferences,\n\tuseUserProfile,\n\ttype AppContext,\n\ttype BaseAppContext,\n\ttype Country,\n\ttype EmployeeAppContext,\n\ttype FounderAppContext,\n\ttype FounderAppContextWithOrgData,\n};\n","import { Toaster } from \"@base/components/common/Toast\";\nimport { getFounderAppSetupContext, initializeCakeStores, useAppConfig, useUserProfile } from \"@base/core/CakeStore\";\nimport { MAX_DECIMAL_INPUT } from \"@base/core/numericLimits\";\nimport { adora } from \"@base/integrations/adora\";\nimport { hotjar } from \"@base/integrations/hotjar\";\nimport { wizardSetupCompanyMachine } from \"@founder/components/common/wizards/WizardSetupCompany\";\nimport { RegisterServiceWorker } from \"@founder/core/ServiceWorker\";\nimport { initCakeI18n } from \"@founder/utils/translate\";\nimport { useMachine } from \"@xstate/react\";\nimport React, { useEffect } from \"react\";\nimport { isMobileOnly } from \"react-device-detect\";\nimport { createRoot } from \"react-dom/client\";\nimport { useShallow } from \"zustand/shallow\";\nimport \"./styles/founder.scss\";\nimport { initializeGTM } from \"@base/integrations/gtm\";\n\ninitializeCakeStores();\ninitCakeI18n();\n\nconst container = document.getElementById(\"unauthenticatedApp\");\nconst root = createRoot(container!);\n\nconst RootElem = window.Cypress ? React.Fragment : React.StrictMode;\nconst appContext = getFounderAppSetupContext();\n\nconst WizardSetupCompany = () => {\n\tconst [state] = useMachine(wizardSetupCompanyMachine);\n\tconst paginationSize = useAppConfig((state) => state.paginationSize);\n\tconst [userId, userEmail] = useUserProfile(useShallow((state) => [state.id, state.email]));\n\n\t// Initialize Adora + Hotjar once\n\tuseEffect(() => {\n\t\tconst params = new URLSearchParams(window.location.search);\n\t\tconst cakeFinger = params.get(\"cake_finger\") || localStorage.getItem(\"cakeFinger\") || userId;\n\n\t\tif (!appContext || appContext.SKIP_ANALYTICS || !cakeFinger) {\n\t\t\tconsole.log(\"Skipping analytics initialization\");\n\t\t\treturn;\n\t\t}\n\n\t\t// GTM\n\t\tinitializeGTM([\"GTM-PC97NPW\", \"GTM-5PRFQPB\"]);\n\n\t\t// Adora\n\t\tadora.initialize({\n\t\t\torgId: appContext.ADORA_ORG_ID ?? \"\",\n\t\t\tuid: cakeFinger,\n\t\t\tproperties: {\n\t\t\t\temail: userEmail || \"\",\n\t\t\t},\n\t\t});\n\n\t\t// Hotjar\n\t\thotjar.initialize(appContext.HOTJAR_ID ?? \"\", 6, () => {\n\t\t\thotjar.identify(cakeFinger, { email: userEmail || \"\" });\n\t\t});\n\t}, [userEmail, userId, appContext]);\n\n\t// we need this effect here to handle redirects for unauthenticated\n\t// users since this entrypoint doesn't use Maestro\n\tuseEffect(() => {\n\t\tif (state.status !== \"done\") {\n\t\t\treturn;\n\t\t}\n\n\t\tconst { redirectTo } = state.context;\n\n\t\tif (!redirectTo) return;\n\n\t\tif (redirectTo === \"go_back\") {\n\t\t\twindow.history.back();\n\t\t\treturn;\n\t\t}\n\n\t\twindow.location.assign(redirectTo);\n\t}, [state.status, state.context]);\n\n\twindow.react = {\n\t\t// @ts-expect-error STRICT_NULL_CHECKS type assignment error\n\t\trouter: null,\n\t\ticonCache: {},\n\t\ticonPromiseCache: {},\n\t\t// @ts-expect-error STRICT_NULL_CHECKS type assignment error\n\t\tshowOnboardingWizard: null,\n\t\t// @ts-expect-error STRICT_NULL_CHECKS type assignment error\n\t\tshowUpdateShareholdersWizard: null,\n\t\t// @ts-expect-error STRICT_NULL_CHECKS type assignment error\n\t\tshowDrawerLapse: null,\n\t\t// @ts-expect-error STRICT_NULL_CHECKS type assignment error\n\t\tshowToast: null,\n\t\t// @ts-expect-error STRICT_NULL_CHECKS type assignment error\n\t\tdismissToast: null,\n\t\tshowDrawerFullscreenNewBoardApproval: () =>\n\t\t\tconsole.warn(\"showDrawerFullscreenNewBoardApproval not implemented\"),\n\t\tshowModalComments: () => console.warn(\"showModalComments not implemented\"),\n\t\tshowModalSingleFileUpload: () => console.warn(\"showModalSingleFileUpload not implemented\"),\n\t\tshowDrawerPlanDetails: () => console.warn(\"showDrawerPlanDetails not implemented\"),\n\t\tisMobileOnly,\n\t\titemsPerPage: paginationSize,\n\t\tMAX_DECIMAL_INPUT,\n\t};\n\treturn state.context.renderMachineDom();\n};\n\nroot.render(\n\t<RootElem>\n\t\t<WizardSetupCompany />\n\t\t<Toaster />\n\t</RootElem>\n);\nRegisterServiceWorker(appContext.APP_ENDPOINT, appContext.SW_URL);\n","import { getAppContext, useUserProfile } from \"@base/core/CakeStore\";\nimport { GetOrganisationDataQuery } from \"@base/core/graphql\";\nimport { useOrgStore } from \"@base/hooks/useOrgStore\";\n\ndeclare global {\n\tinterface Window {\n\t\tdataLayer?: unknown[];\n\t\tplatform_environment?: string;\n\t}\n}\n\nfunction _removeDots(email: string): string {\n\tconst KNOWN_DOT_IGNORERS = [\"gmail.com\", \"googlemail.com\"];\n\tconst email_s = email.split(\"@\");\n\tconst email_domain = email_s.pop();\n\tif (KNOWN_DOT_IGNORERS.some((x) => x === email_domain)) {\n\t\tconst dotless_local = email_s.join(\"@\").replace(/\\./g, \"\");\n\t\treturn `${dotless_local}@${email_domain}`;\n\t} else {\n\t\treturn email;\n\t}\n}\n\nfunction sendGtmSignUpEvent(company: GetOrganisationDataQuery[\"organisation\"]): void {\n\tconsole.debug(\"sendSignUpEvent\");\n\tconsole.debug(company);\n\n\tconst profile = useUserProfile.getState();\n\tconst env = getAppContext().APP_ENVIRONMENT;\n\n\tconst emailStrippedOfPeriods = _removeDots(profile.email);\n\n\tconst MQL_PHASES = [\"PRE_SEED\", \"SEED\", \"SERIES_A\"];\n\t// @ts-expect-error STRICT_NULL_CHECKS null or undefined\n\tconst mql = MQL_PHASES.includes(company.fundingPhase);\n\n\tconst payload = {\n\t\tuser: {\n\t\t\temail: emailStrippedOfPeriods.toLowerCase(),\n\t\t\tfirstName: profile.name.split(\" \")[0].toLowerCase(),\n\t\t\tlastName: profile.name.split(\" \")[1]?.toLowerCase() || \"\",\n\t\t\tcountry: company?.country?.toLowerCase?.(),\n\t\t\tuid: profile.id,\n\t\t},\n\t\tfunding: {\n\t\t\tfunded: true,\n\t\t\tfundingPhase: company?.fundingPhase?.toLowerCase?.(),\n\t\t\tmql,\n\t\t},\n\t};\n\n\tconsole.debug(payload);\n\n\tif (env === \"prod\") {\n\t\tif (window.dataLayer) {\n\t\t\twindow.dataLayer.push({\n\t\t\t\tevent: \"signUp\",\n\t\t\t\tfirstName: payload.user.firstName,\n\t\t\t\tlastName: payload.user.lastName,\n\t\t\t\temail: payload.user.email,\n\t\t\t\tuid: payload.user.uid,\n\t\t\t\tcountry: payload.user.country,\n\t\t\t\tfunded: payload.funding.funded,\n\t\t\t\tfundingPhase: payload.funding.fundingPhase,\n\t\t\t\tmql: payload.funding.mql,\n\t\t\t});\n\t\t} else {\n\t\t\tconsole.warn(\"GTM is not loaded\");\n\t\t}\n\t} else {\n\t\tconsole.debug(\"dataLayer.push skipped\");\n\t}\n}\n\nfunction sendGtmProfitwellStartEvent(stripeCustomerId: string): void {\n\tconst payload = {\n\t\tevent: \"start_pw\",\n\t\tpw_user_id: stripeCustomerId,\n\t};\n\tconst env = getAppContext().APP_ENVIRONMENT;\n\tif (env === \"prod\") {\n\t\tif (window.dataLayer) {\n\t\t\twindow.dataLayer.push(payload);\n\t\t} else {\n\t\t\tconsole.warn(\"GTM is not loaded\");\n\t\t}\n\t} else {\n\t\tconsole.debug(\"dataLayer.push skipped\");\n\t\tconsole.debug(payload);\n\t}\n}\n\nfunction sendSubscriptionUpgradeToPaidEvent(previousPlanId: string, targetPlanId: string): void {\n\tconsole.debug(\"sendSubscriptionUpgradeToPaidEvent\");\n\tconst profile = useUserProfile.getState();\n\tconst companyCountry = useOrgStore.getState().organisationData?.country;\n\tconst env = getAppContext().APP_ENVIRONMENT;\n\n\tif (previousPlanId.startsWith(\"FREE\") && !targetPlanId.startsWith(\"FREE\")) {\n\t\tconst emailStrippedOfPeriods = _removeDots(profile.email);\n\n\t\tconst payload = {\n\t\t\tuser: {\n\t\t\t\temail: emailStrippedOfPeriods.toLowerCase(),\n\t\t\t\tfirstName: profile.name.split(\" \")[0].toLowerCase(),\n\t\t\t\tlastName: profile.name.split(\" \")[1]?.toLowerCase() || \"\",\n\t\t\t\tcountry: companyCountry?.toLowerCase(),\n\t\t\t\tuid: profile.id,\n\t\t\t},\n\t\t\tplanId: targetPlanId,\n\t\t};\n\n\t\tconsole.debug(payload);\n\n\t\tif (env === \"prod\") {\n\t\t\tif (window.dataLayer) {\n\t\t\t\twindow.dataLayer.push({\n\t\t\t\t\tevent: \"subscriptionUpgradeToPaid\",\n\t\t\t\t\tfirstName: payload.user.firstName,\n\t\t\t\t\tlastName: payload.user.lastName,\n\t\t\t\t\temail: payload.user.email,\n\t\t\t\t\tuid: payload.user.uid,\n\t\t\t\t\tcountry: payload.user.country,\n\t\t\t\t\tplanId: payload.planId,\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tconsole.warn(\"GTM is not loaded\");\n\t\t\t}\n\t\t} else {\n\t\t\tconsole.debug(\"dataLayer.push skipped\");\n\t\t}\n\t}\n}\n\nfunction sendGTMEvent(eventName: string): void {\n\tconsole.debug(eventName);\n\n\tconst profile = useUserProfile.getState();\n\tconst companyCountry = useOrgStore.getState().organisationData?.country;\n\n\tconst emailStrippedOfPeriods = _removeDots(profile.email);\n\n\tconst payload = {\n\t\tuser: {\n\t\t\temail: emailStrippedOfPeriods.toLowerCase(),\n\t\t\tfirstName: profile.name.split(\" \")[0].toLowerCase(),\n\t\t\tlastName: profile.name.split(\" \")[1]?.toLowerCase() || \"\",\n\t\t\tcountry: companyCountry?.toLowerCase(),\n\t\t\tuid: profile.id,\n\t\t},\n\t};\n\n\tconsole.debug(payload);\n\tconst env = getAppContext().APP_ENVIRONMENT;\n\n\tif (env === \"prod\") {\n\t\tif (window.dataLayer) {\n\t\t\twindow.dataLayer.push({\n\t\t\t\tevent: eventName,\n\t\t\t\tfirstName: payload.user.firstName,\n\t\t\t\tlastName: payload.user.lastName,\n\t\t\t\temail: payload.user.email,\n\t\t\t\tuid: payload.user.uid,\n\t\t\t\tcountry: payload.user.country,\n\t\t\t});\n\t\t} else {\n\t\t\tconsole.warn(\"GTM is not loaded\");\n\t\t}\n\t} else {\n\t\tconsole.debug(\"dataLayer.push skipped\");\n\t}\n}\n\nfunction initializeGTM(ids: string[]): void {\n\tif (typeof window === \"undefined\") return;\n\n\twindow.dataLayer = window.dataLayer || [];\n\n\tids.forEach((id) => {\n\t\t// @ts-expect-error STRICT_NULL_CHECKS possibly undefined value\n\t\twindow.dataLayer.push({\n\t\t\t\"gtm.start\": new Date().getTime(),\n\t\t\tevent: \"gtm.js\",\n\t\t});\n\n\t\tconst script = document.createElement(\"script\");\n\t\tscript.async = true;\n\t\tscript.src = `https://www.googletagmanager.com/gtm.js?id=${id}`;\n\n\t\tdocument.head.appendChild(script);\n\t});\n}\n\nexport {\n\tsendGTMEvent,\n\tsendGtmProfitwellStartEvent,\n\tsendGtmSignUpEvent,\n\tsendSubscriptionUpgradeToPaidEvent,\n\tinitializeGTM,\n};\n","// getDefaultExport function for compatibility with non-ESM 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};\n","__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n        if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n            Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n        }\n    }\n};","__webpack_require__.g = (() => {\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__.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};","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--)\n\t\t\tdeferred[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 = deferred[i][0];\nvar fn = deferred[i][1];\nvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif (\n\t\t\t\t(priority & (1 === 0) || notFulfilled >= priority) &&\n\t\t\t\tObject.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))\n\t\t\t) {\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};\n","var scriptUrl;\n\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \"\";\nvar document = __webpack_require__.g.document;\nif (!scriptUrl && document) {\n  // Technically we could use `document.currentScript instanceof window.HTMLScriptElement`,\n  // but an attacker could try to inject `<script>HTMLScriptElement = HTMLImageElement</script>`\n  // and use `<img name=\"currentScript\" src=\"https://attacker.controlled.server/\"></img>`\n  if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT') scriptUrl = document.currentScript.src;\n  if (!scriptUrl) {\n    var scripts = document.getElementsByTagName(\"script\");\n    if (scripts.length) {\n      var i = scripts.length - 1;\n      while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;\n    }\n  }\n}\n\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\",\n// or pass an empty string (\"\") and set the __webpack_public_path__ variable from your code to use your own logic.',\nif (!scriptUrl) throw new Error(\"Automatic publicPath is not supported in this browser\");\nscriptUrl = scriptUrl.replace(/^blob:/, \"\").replace(/#.*$/, \"\").replace(/\\?.*$/, \"\").replace(/\\/[^\\/]+$/, \"/\");\n\n__webpack_require__.p = scriptUrl + '../';\n"],"names":["MaskInput","forwardRef","maskType","showThousandSeparator","allowDecimal","allowNegative","decimalLimit","integerLimit","prefix","sufix","currency","country","dataTest","controlledValue","defaultValue","max","min","onChange","onBlurProp","props","ref","orgData","useOrgStore","state","finalCountry","finalCurrency","currencySymbol","getAppContext","elementRef","useRef","isControlled","undefined","localeSeparators","useMemo","getLocaleSeparators","locale","parts","Intl","p","e","console","maskitoConfig","shouldAllowDecimal","calculatedDecimalLimit","calculatedSuffix","calculatedPrefix","calculatedIntegerLimit","integerLimitMax","Number","calculatedMax","Math","MAX_DECIMAL_INPUT","calculatedMin","numberParams","plugins","otherOpts","maskitoNumberOptionsGenerator","maskitoOptions","maskitoCaretGuard","value","maskitoEventHandler","element","maskitoUpdateElement","normalizeDisplayValue","useCallback","display","decimal","alternateDecimal","numberToDisplay","num","maskitoStringifyNumber","displayToNumber","parsed","maskitoParseNumber","isNaN","uncontrolledDisplayValue","setUncontrolledDisplayValue","useState","controlledDisplayDraft","setControlledDisplayDraft","displayValue","useEffect","draftNumber","handleBlur","maskitoRef","useMaskito","setInputRef","node","useImperativeHandle","newDisplayValue","newNumericValue","canRoundTrip","Card","variant","className","classList","clsx","styles","Box","useUserProfile","create","useAppConfig","persist","set","new_currency","new_value","tone","hide","appContext","loadAppContext","el","document","hex","key","json","decodedChars","bytes","b","parseInt","byte","i","String","JSON","Error","getFounderAppSetupContext","context","initializeCakeStores","authenticatedUser","httpLink","HttpLink","uri","options","response","fetch","window","apolloCache","InMemoryCache","networkStoreInitiaState","ApolloClient","axios","error","isFounderContext","userId","useServerSentEventsStore","Boolean","initCakeI18n","container","root","createRoot","RootElem","React","useMachine","wizardSetupCompanyMachine","paginationSize","userEmail","useShallow","cakeFinger","params","URLSearchParams","localStorage","ids","id","Date","script","adora","hotjar","redirectTo","isMobileOnly","WizardSetupCompany","Toaster","RegisterServiceWorker","Object","globalThis","Function","Symbol","self"],"mappings":"uBAIU,EAGN,EA+BA,E,mQC6PJA,CApOkBC,AAAAA,GAAAA,EAAAA,UAAAA,AAAAA,EACjB,CACC,CACCC,SAAAA,EAAW,QAAQ,CACnBC,sBAAAA,EAAwB,EAAI,CAC5BC,aAAAA,EAAe,EAAK,CACpBC,cAAAA,EAAgB,EAAI,CACpBC,aAAAA,CAAY,CACZC,aAAAA,CAAY,CACZC,OAAAA,CAAM,CACNC,MAAAA,CAAK,CACLC,SAAAA,CAAQ,CACRC,QAAAA,CAAO,CACPC,SAAAA,CAAQ,CACR,MAAOC,CAAe,CACtBC,aAAAA,CAAY,CACZC,IAAAA,CAAG,CACHC,IAAAA,CAAG,CACHC,SAAAA,CAAQ,CACR,OAAQC,CAAU,CAClB,GAAGC,EACa,CACjBC,KAEA,IAAMC,EAAUC,AAAAA,GAAAA,EAAAA,CAAAA,AAAAA,EAAY,AAACC,GAAUA,EAAM,gBAAgB,EAEvDC,EAAeb,GAAWU,GAAS,SAAW,KAC9CI,EAAgBf,GAAYW,GAAS,UAAY,MACjDK,EAAiBC,AAAAA,GAAAA,EAAAA,EAAAA,AAAAA,IAAgB,gBAAgB,C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