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GAAmB,iBAARA,EACV,MAAO,GAGR,GAAIG,MAAMC,QAAQJ,GACjB,OAAON,EAAWW,MAAM,KAAML,GAG/B,GAAIA,EAAIM,WAAaC,OAAOC,UAAUF,WAAaN,EAAIM,SAASA,WAAWG,SAAS,iBACnF,OAAOT,EAAIM,WAGZ,IAAIT,EAAU,GAEd,IAAK,IAAId,KAAOiB,EACXL,EAAOe,KAAKV,EAAKjB,IAAQiB,EAAIjB,KAChCc,EAAUI,EAAYJ,EAASd,IAIjC,OAAOc,CACR,CAEA,SAASI,EAAaU,EAAOC,GAC5B,OAAKA,EAIDD,EACIA,EAAQ,IAAMC,EAGfD,EAAQC,EAPPD,CAQT,CAEqCE,EAAOC,SAC3CpB,EAAWqB,QAAUrB,EACrBmB,EAAOC,QAAUpB,QAKhB,KAFwB,EAAF,WACtB,OAAOA,CACP,UAFoB,OAEpB,YAIH,CArEA","sources":["webpack:///./Scripts/_PandoNexis/Components/GenericLoader.js","webpack:///../node_modules/classnames/index.js"],"sourcesContent":["import React, { Fragment, useMemo, useEffect, useState, useCallback } from 'react';\nimport { useSelector, useDispatch } from 'react-redux';\nimport { translate } from '../../Services/translation';\nimport { toggleGenericLoaderList } from '../Actions/GenericLoader.action';\nimport classNames from 'classnames';\nimport {\n maxFileSizeToDownload\n} from '../constants';\nconst GenericLoader = () => {\n const dispatch = useDispatch();\n const [runningLoaderType, setRunningLoaderType] = useState('');\n const [isClosing, setIsClosing] = useState(false);\n const [loaderActive, setLoaderActive] = useState(false);\n const {\n loaderType,\n loaderState,\n loaderCounter,\n genericListLoaded,\n showGenericList,\n genericListItems,\n showText,\n } = useSelector((state) => state.genericLoader);\n\n const closeGenericLoaderList = () => {\n dispatch(toggleGenericLoaderList(false));\n };\n\n useEffect(() => {\n if (loaderCounter > 0) {\n setLoaderActive(true);\n }\n if (loaderCounter === 1) {\n setRunningLoaderType(loaderType);\n } else if (loaderCounter === 0) {\n setIsClosing(true);\n setTimeout(() => { setLoaderActive(false); setIsClosing(false); setRunningLoaderType(''); }, 500);\n \n }\n }, [loaderCounter]);\n const listItems = useMemo(() => (\n genericListItems?.map((item, index) => (\n