{
  "version": 3,
  "sources": ["../../../../src/services/nativeAuth/methods/getDefaultNativeAuthConfig.ts"],
  "sourcesContent": ["import { networkSelector } from 'store/selectors/networkSelectors';\nimport { getState } from 'store/store';\nimport { getWindowLocation } from 'utils/window/getWindowLocation';\nimport { NativeAuthConfigType } from '../nativeAuth.types';\n\nconst DEFAULT_API_ADDRESS = 'https://api.multiversx.com';\n\nconst DEFAULT_EXPIRY_SECONDS = 60 * 60 * 24; // one day\nconst DEFAULT_TOKEN_EXPIRATION_TOAST_WARNING_SECONDS = 5 * 60; // five minutes\n\nexport const getDefaultNativeAuthConfig = (config?: NativeAuthConfigType) => {\n  const network = networkSelector(getState());\n\n  return {\n    origin: config?.origin || getWindowLocation().origin,\n    apiAddress: config?.apiAddress || network.apiAddress || DEFAULT_API_ADDRESS,\n    expirySeconds: config?.expirySeconds || DEFAULT_EXPIRY_SECONDS,\n    tokenExpirationToastWarningSeconds:\n      config?.tokenExpirationToastWarningSeconds ||\n      DEFAULT_TOKEN_EXPIRATION_TOAST_WARNING_SECONDS\n  };\n};\n"],
  "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,gCAAAE,IAAA,eAAAC,EAAAH,GAAA,IAAAI,EAAgC,4CAChCC,EAAyB,uBACzBC,EAAkC,0CAGlC,MAAMC,EAAsB,6BAEtBC,EAAyB,GAAK,GAAK,GACnCC,EAAiD,EAAI,GAE9CP,EAA8BQ,GAAkC,CAC3E,MAAMC,KAAU,sBAAgB,YAAS,CAAC,EAE1C,MAAO,CACL,OAAQD,GAAQ,WAAU,qBAAkB,EAAE,OAC9C,WAAYA,GAAQ,YAAcC,EAAQ,YAAcJ,EACxD,cAAeG,GAAQ,eAAiBF,EACxC,mCACEE,GAAQ,oCACRD,CACJ,CACF",
  "names": ["getDefaultNativeAuthConfig_exports", "__export", "getDefaultNativeAuthConfig", "__toCommonJS", "import_networkSelectors", "import_store", "import_getWindowLocation", "DEFAULT_API_ADDRESS", "DEFAULT_EXPIRY_SECONDS", "DEFAULT_TOKEN_EXPIRATION_TOAST_WARNING_SECONDS", "config", "network"]
}
