{
  "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": "2HAKA,IAAMA,EAAsB,6BAEtBC,EAAyB,GAAK,GAAK,GACnCC,EAAiD,EAAI,GAE9CC,EAA8BC,GAAkC,CAC3E,IAAMC,EAAUC,EAAgBC,EAAS,CAAC,EAE1C,MAAO,CACL,OAAQH,GAAQ,QAAUI,EAAkB,EAAE,OAC9C,WAAYJ,GAAQ,YAAcC,EAAQ,YAAcL,EACxD,cAAeI,GAAQ,eAAiBH,EACxC,mCACEG,GAAQ,oCACRF,CACJ,CACF",
  "names": ["DEFAULT_API_ADDRESS", "DEFAULT_EXPIRY_SECONDS", "DEFAULT_TOKEN_EXPIRATION_TOAST_WARNING_SECONDS", "getDefaultNativeAuthConfig", "config", "network", "networkSelector", "getState", "getWindowLocation"]
}
