{"version":3,"file":"initGT.client.mjs","names":[],"sources":["../../src/setup/initGT.client.ts"],"sourcesContent":["import { internalInitializeGTSRA } from '@generaltranslation/react-core/pure';\nimport { getParams } from './shared';\nimport type { NextSetupI18nConfigParams } from './shared';\nimport type { NextI18nCacheParams } from '../i18n-cache/NextI18nCache';\n\n/**\n * Initialize GT for Next.js client entrypoints.\n */\nexport function initializeGTClient(\n  {\n    i18nConfigParams,\n    nextI18nCacheParams,\n  }: {\n    i18nConfigParams: NextSetupI18nConfigParams;\n    nextI18nCacheParams: NextI18nCacheParams;\n  } = getParams()\n): void {\n  internalInitializeGTSRA({\n    ...i18nConfigParams,\n    ...nextI18nCacheParams,\n    /**\n     * Always disable cache expiry for client-side lookups.\n     * Translations and dictionaries are exclusively passed from server to\n     * client, so the client has no loader to refresh expired entries.\n     */\n    cacheExpiryTime: null,\n  });\n}\n"],"mappings":";;;;;;AAQA,SAAgB,mBACd,EACE,kBACA,wBAIE,WAAW,EACT;AACN,yBAAwB;EACtB,GAAG;EACH,GAAG;;;;;;EAMH,iBAAiB;EAClB,CAAC"}