{"version":3,"file":"static/chunks/Performance.c680ddee3d86d281.js","sources":["webpack://_N_E/./src/modules/performance/components/PERFORMANCE_ELEMENT_ID.tsx","webpack://_N_E/./src/modules/performance/components/PerformanceStoreController/index.tsx","webpack://_N_E/./src/modules/performance/components/Performance.tsx"],"sourceRoot":"","sourcesContent":["export const PERFORMANCE_ELEMENT_ID = 'performance-box';\n","import { Loadable } from '@legacyApp/client/components/loader/loadable/loadable';\n\nexport const PerformanceStoreController = Loadable(\n\t{\n\t\tloader: () =>\n\t\t\timport(\n\t\t\t\t/* webpackChunkName: \"PerformanceStoreController\" */ './PerformanceStoreController'\n\t\t\t),\n\t},\n\t'./PerformanceStoreController',\n);\n","import { FC, useEffect, useState } from 'react';\nimport { lsGet } from '@modules/localStorage/methods/lsGet';\nimport { useUserIsLogged } from '@common/selectors/user.selectors';\nimport { useAppInitialized } from '@common/selectors/app.selectors';\nimport { lsSet } from '@modules/localStorage/methods/lsSet';\nimport { LocalStorageKeys } from '@modules/localStorage/types/localStorageKeys.type';\nimport { PerformanceStoreController } from './PerformanceStoreController';\nimport { PERFORMANCE_ELEMENT_ID } from './PERFORMANCE_ELEMENT_ID';\n\nconst isPerformance = lsGet(LocalStorageKeys.IS_LOW_PERFORMANCE);\n\nconst Performance: FC = () => {\n\tconst isLogged = useUserIsLogged();\n\tconst isAppInitialized = useAppInitialized();\n\tconst [isPerformanceNotSet_] = useState(isPerformance === null);\n\n\tuseEffect(() => {\n\t\tif (isPerformanceNotSet_ && isLogged) {\n\t\t\tlsSet(LocalStorageKeys.IS_LOW_PERFORMANCE, false);\n\t\t}\n\t}, [isLogged, isPerformanceNotSet_]);\n\n\tif (isPerformanceNotSet_ && !isLogged && isAppInitialized) {\n\t\treturn (\n\t\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t);\n\t}\n\n\treturn null;\n};\n\nexport default Performance;\n"],"names":["PERFORMANCE_ELEMENT_ID","PerformanceStoreController","Loadable","loader","isPerformance","lsGet","LocalStorageKeys","isLogged","useUserIsLogged","isAppInitialized","useAppInitialized","isPerformanceNotSet_","useState","useEffect","lsSet","id","className"],"mappings":";;uHAAO,IAAMA,EAAyB,mB,yICEzBC,GAA6BC,E,SAAAA,GACzC,CACCC,OAAQ,kBACP,kCAIF,gC,sBCAKC,GAAgBC,EAAAA,EAAAA,GAAMC,EAAAA,GAAAA,oBAwB5B,EAtBwB,WACvB,IAAMC,GAAWC,EAAAA,EAAAA,MACXC,GAAmBC,EAAAA,EAAAA,MAClBC,GAAwBC,EAAAA,EAAAA,UAA2B,OAAlBR,GAAxC,GAQA,OANAS,EAAAA,EAAAA,YAAU,WACLF,GAAwBJ,IAC3BO,EAAAA,EAAAA,GAAMR,EAAAA,GAAAA,oBAAqC,KAE1C,CAACC,EAAUI,IAEVA,IAAyBJ,GAAYE,GAEvC,gBAAKM,GAAIf,EAAAA,EAAwBgB,UAAU,SAA3C,UACC,SAACf,EAAD,MAKI","debug_id":"24b04a82-5b8e-5905-b6e0-12e64ecc71fe"}