{"version":3,"sources":["api/utils.js","assets/img/logo.svg","components/Auth/provider/authContext.js","api/axios.js","api/fileShareApi.js","components/Toolbar/Dialog/Settings.js","utils/authConfig.js","i18n/supportedLanguages.js","i18n/i18n.js","components/LanguageSwitcher/LanguageSwitcher.js","components/Toolbar/Toolbar.js","components/Footer/Footer.js","components/Logout/Logout.js","components/Auth/RedirectCallback.js","components/Auth/SilentRenewCallback.js","components/Auth/Login.js","components/Auth/NotLogedIn.js","components/Auth/PrivateRoute.js","components/Icons/FolderClosed.js","components/Icons/FolderOpen.js","components/Icons/Delete.js","components/Icons/Download.js","api/downloadManager.js","components/FileBrowser/provider/fileBrowserContext.js","components/FileBrowser/FileItem/FileItem.js","components/UI/FadeInOutIcon.js","components/FileBrowser/utils/utils.js","components/UI/ProgressButton.js","components/FileBrowser/Dialogs/DeleteFolder.js","components/FileBrowser/Dialogs/ShareFolder.js","components/FileBrowser/FolderItem/FolderItem.js","components/FileBrowser/FolderItem/SharedFolderItem.js","components/FileBrowser/FileBrowser.js","components/FileBrowser/provider/FileContextProvider.js","layout/Layout.js","api/userApi.js","utils/authService.js","components/Auth/provider/Auth.js","components/Telemetry/telemetryService.js","components/Telemetry/Telemetry.js","theme/themeProvider.js","components/Snackbar/Snackbar.js","App.js","index.js"],"names":["transformResponseError","data","headers","toLowerCase","indexOf","JSON","parse","Buffer","from","splitByRanges","totalFileSize","minRangesCount","maxBlockSize","rangesCount","rangeSize","Math","floor","ranges","Array","fill","map","val","index","start","end","concatArrayBuffers","buffers","size","reduce","a","b","byteLength","result","Uint8Array","offset","forEach","arr","set","module","exports","authContext","createContext","AuthProvider","Provider","useAuthContext","useContext","instance","axios","create","baseURL","process","listFolder","path","get","params","then","listMyFolders","userId","catch","err","response","status","styles","theme","closeButton","position","right","spacing","top","color","palette","grey","dialogActions","paddingLeft","paddingRight","generateButton","width","backgroundColor","attention","marginTop","textAreaWrapper","display","textArea","text","secondary","copyToClipboard","bottom","Settings","open","onClose","classes","makeStyles","t","useTranslation","useState","apiKey","setApiKey","loading","setLoading","handleDialogCloseAction","event","Dialog","maxWidth","fullWidth","disableBackdropClick","DialogTitle","disableTypography","Typography","variant","IconButton","aria-label","className","onClick","DialogContent","dividers","TextField","multiline","rows","value","readOnly","label","InputProps","Tooltip","title","placement","copy","DialogContentText","i18nKey","DialogActions","Button","AUTH_URL","IDENTITY_CONFIG","authority","client_id","redirect_uri","login","automaticSilentRenew","loadUserInfo","silent_redirect_uri","post_logout_redirect_uri","response_type","scope","IDENTITY_LOGOUT_URL","languages","code","name","languageResources","en","translation","translationEN","locale","de","translationDE","es","translationES","fr","translationFR","it","translationIT","pt","translationPT","findLocaleByCode","language","i18n","use","initReactI18next","LanguageDetector","init","resources","fallbackLng","keySeparator","interpolation","escapeValue","langIcon","marginRight","languageButton","textTransform","fontSize","fontWeight","borderBottom","cursor","LanguageSwitcher","setCurrentLanguage","anchorEl","setAnchorEl","handleClose","React","useEffect","initialLanguage","find","lang","startsWith","openLanguageMenu","Boolean","currentTarget","substr","Menu","lng","MenuItem","changeLanguage","handleLanguageChange","key","useStyles","appBar","divider","toolbar","flexWrap","toolbarImageContainer","flexGrow","alignItems","logo","paddingTop","paddingBottom","height","breakpoints","up","progressContainer","actionsArea","welcome","lineHeight","Toolbar","actions","showSettingsDialog","setShowSettingsDialog","isAuthenticated","logout","getUserProfile","authenticating","aria-controls","aria-haspopup","id","window","location","IDENTITY_EDIT_PROFILE","welcomeText","navBarContent","LinearProgress","to","src","alt","firstName","lastName","Fragment","CssBaseline","AppBar","elevation","disableGutters","footer","padding","background","paper","footerContainer","justifyContent","languageSwitcher","flexBasis","linksContainer","textAlign","spaceHolder","Footer","match","Link","pathname","target","component","RouterLink","root","withRouter","history","signoutRedirectCallback","Container","align","RedirectCallback","signinRedirectCallback","style","SilentRenewCallback","signinSilentCallback","button","Login","signinRedirect","handleAuthenticating","wrapper","backgroundImage","backgroundSize","backgroundPosition","container","flexDirection","caption","marginBottom","box","marginLeft","NotLoggedIn","PrivateRoute","Component","rest","render","props","FolderClosed","xmlns","viewBox","d","FolderOpen","Delete","forwardRef","ref","SvgIcon","Download","WordArray","CryptoJsLib","downloadFile","progressCallback","getFileMetadata","metadata","getFileByParts","onDownloadProgress","responseType","transformResponse","defaults","transformRequest","getFile","content_hash","partsProgress","downloadPromises","range","polly","retry","executeForPromise","getFilePart","progressObejct","loaded","totalLoaded","total","partDownloadProgress","Promise","all","httpPromiseResults","md5Algo","CryptoJsAlgo","MD5","i","length","update","hash","finalize","toString","CryptoJsEnc","Base64","console","log","Error","post","notifyDownload","fileContext","myFolders","sharedWithMeFolders","FileProvider","useFileContext","nested","level","progress","fontStyle","fileIcon","minWidth","fileName","wordBreak","successIcon","green","downloadedByContainer","FileItem","item","enqueueSnackbar","useSnackbar","donwloadProgress","setDonwloadProgress","donwloadStatus","setDonwloadStatus","getFileStatus","setFileStatus","fileStatus","handleDownloadProgress","newProgress","round","filesize","uiStatus","getStatus","downloadedBy","join","getDownloadedBy","ListItem","blob","Blob","navigator","msSaveOrOpenBlob","url","URL","createObjectURL","link","document","createElement","href","setAttribute","body","appendChild","click","revokeObjectURL","remove","message","ListItemIcon","ListItemText","primary","fileSize","iconWrapper","icon","left","FadeInOutIcon","fadeIn","fadeInIсon","fadeOutIсon","Fade","in","sortFileBrowser","item1","item2","toLocalDate","utcDate","replace","Date","toLocaleString","dateStyle","timeStyle","EMAIL_REGEXP","buttonProgress","ProgressButton","children","CircularProgress","cancelButtonBottom","deleteButtonBottom","DeleteFolder","folder","onDelete","deleting","setDeleting","handleCloseAction","sharedMembers","sharedWith","List","dense","subheader","ListSubheader","disableSticky","member","email","ListItemAvatar","Avatar","aria-labelledby","success","disabled","closeButtonBottom","ShareFolder","onShare","onUnshare","setProgress","error","setError","owner","getInitialMembers","members","setMembers","newMember","setNewMember","handleUnshareMember","memberToDelete","memberEmail","memberToRemove","indexToDelete","findIndex","slice","removeMemberFromUI","membersList","ListItemSecondaryAction","edge","membersContent","onSubmit","preventDefault","test","newRecord","concat","autoFocus","margin","type","helperText","onChange","folderName","FolderItem","onFolderDelete","onFolderShare","showDeleteDialog","setShowDeleteDialog","showShareDialog","setShowShareDialog","getFolderItems","setFolderItems","getFolderOpenStatus","toggleFolderOpenStatus","folderItems","folderOpen","handleOpenFolder","items","sorted","sort","errorMessage","folderItemsComponents","deletedItem","handleDeleteSubFolder","disableRipple","uploadedTimestamp","primaryTypographyProps","Collapse","timeout","disablePadding","fodlerName","textDecoration","sharedBy","SharedFolderItem","folderIcon","sharedBн","unmountOnExit","ul","li","listStyle","loadingWrapper","minHeight","folderRoot","FileBrowser","message401","handleFolderDeleteAction","handleFolderShareAction","hasFolders","loadFolders","initialized","anchorOrigin","vertical","horizontal","foldersContent","myFoldersComponents","Paper","square","folderItemsComponent","sharedFoldersComponents","foldersList","Box","DEFAULT_STATE","folderOpenStatus","FileContextProvider","state","setState","provider","folders","prevState","folderItem","updatedFolders","Object","assign","newItems","currentStatus","newStatuses","file","promises","sharedFolders","flex","appBarSpacer","mixins","Layout","exact","Logout","loginPingback","AuthService","UserManager","getUser","user","setUserInfo","authResult","jwt","idToken","setSessionInfo","setUser","localStorage","setItem","sub","getItem","signinSilent","createSigninRequest","clearStaleState","clear","this","userStore","WebStorageStateStore","store","sessionInitialized","refreshTokenSync","setInterval","refreshToken","events","addUserLoaded","setIdToken","id_token","stringify","profile","refresh_token","addSilentRenewError","e","addAccessTokenExpired","common","userProfile","dataCenter","encodeURIComponent","saveAndSetData","saveAndSetTokens","req","XMLHttpRequest","setRequestHeader","onload","readyState","responseText","statusText","removeItem","reload","send","authService","ai","reactPlugin","appInsights","initialize","instrumentationKey","browserHistory","ReactPlugin","ApplicationInsights","config","maxBatchInterval","disableFetchTracking","extensions","extensionConfig","identifier","loadAppInsights","createTelemetryService","TelemetryProvider","forExport","withAITracking","createMuiTheme","main","red","ThemeProvider","MuiThemeProvider","SnackbarProvider","notistackRef","createRef","onClickDismiss","current","handleDismissSnack","maxSnack","hideIconVariant","action","App","Telemetry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kB,GAAQwkB,aAAe,CAIzBjkB,QAAS,CACLkV,QAAS,CACLgP,KAAM,WAEVpjB,UAAWqjB,QAUJC,GANO,SAAC,GAAD,IAAE1N,EAAF,EAAEA,SAAF,OAClB,kBAAC2N,GAAA,EAAD,CAAkB5kB,MAAOA,IACpBiX,ICQM4N,GArBU,SAAC,GAAgB,IAAf5N,EAAc,EAAdA,SACjB6N,EAAend,IAAMod,YACrBC,EAAiB,SAAAtc,GAAG,OAAI,WAE1Boc,EAAaG,QAAQC,mBAAmBxc,KAG5C,OACI,kBAAC,oBAAD,CAAmBsG,IAAK8V,EAAcK,SAAU,EAAGvH,aAAc,CAC7DC,SAAU,MACVC,WAAY,SACbsH,iBAAiB,EAAMC,OAAQ,SAAC3c,GAAD,OAC9B,kBAAC5F,EAAA,EAAD,CAAYG,QAAS+hB,EAAetc,GAAMpI,MAAO,UAAW1C,KAAM,SAC9D,kBAAC,IAAD,SAGHqZ,ICKEqO,GAhBH,WACR,OACI,kBAAC,IAAD,KACI,kBAAC,GAAD,KACI,kBAACC,GAAD,KACI,kBAAC,GAAD,KACI,kBAACC,GAAD,KACI,kBAAC,GAAD,YCV5BC,IAASlX,OAAO,kBAAC,GAAD,MAASsG,SAAS6Q,eAAe,W","file":"static/js/main.098d06c7.chunk.js","sourcesContent":["export const transformResponseError = (data, headers) => {\r\n if (headers['Content-Type'].toLowerCase().indexOf('json') !== -1) {\r\n return JSON.parse(Buffer.from(data));\r\n }\r\n return data;\r\n}\r\n\r\nconst RANGE_BLOCK_SIZE = 16 // Range block must refer to (a) specific block(s) multiple of 16 bytes\r\nconst DEFAULT_MAX_BLOCK_SIZE = 10 * 1024 * 1024 // Download block must be less then 100 MB\r\n\r\nexport const splitByRanges = (totalFileSize, minRangesCount, maxBlockSize = DEFAULT_MAX_BLOCK_SIZE) => {\r\n let rangesCount = minRangesCount\r\n let rangeSize = Math.floor(totalFileSize / (RANGE_BLOCK_SIZE * rangesCount))\r\n\r\n // recalculate range size if block size reaches limit\r\n if (rangeSize * RANGE_BLOCK_SIZE > maxBlockSize) {\r\n rangesCount = Math.floor(totalFileSize / maxBlockSize)\r\n rangeSize = Math.floor(totalFileSize / (rangesCount * RANGE_BLOCK_SIZE))\r\n }\r\n\r\n const ranges = Array(rangesCount).fill().map((val, index) => ({\r\n start: index * rangeSize * RANGE_BLOCK_SIZE, \r\n end: (index + 1) * rangeSize * RANGE_BLOCK_SIZE - 1\r\n }))\r\n ranges[rangesCount-1].end = totalFileSize - 1\r\n \r\n return ranges\r\n}\r\n\r\nexport const concatArrayBuffers = (buffers) => {\r\n let size = buffers.reduce((a, b) => a + b.byteLength, 0)\r\n\r\n let result = new Uint8Array(size)\r\n\r\n let offset = 0\r\n buffers.forEach(arr => {\r\n result.set(new Uint8Array(arr), offset)\r\n offset += arr.byteLength\r\n })\r\n\r\n return result\r\n}","module.exports = __webpack_public_path__ + \"static/media/logo.db91bf59.svg\";","import { useContext, createContext } from \"react\";\r\n\r\nconst authContext = createContext({\r\n \r\n})\r\n\r\nexport const AuthProvider = authContext.Provider;\r\nexport const useAuthContext = () => useContext(authContext);\r\nexport default authContext;","import axios from 'axios'\r\n\r\nconst instance = axios.create({\r\n baseURL: process.env.REACT_APP_API_BASE_URL,\r\n})\r\n\r\nexport default instance\r\n\r\n","import axios from './axios'\r\nimport { transformResponseError } from './utils'\r\n\r\nexport const listFolder = path =>\r\n axios.get('/v1/ListFolder', {\r\n params: { path }\r\n }).then(({ data }) => data.data)\r\n\r\nexport const listMyFolders = userId => \r\n listFolder(userId).catch(err => {\r\n // handle home folder does not exists error as empty list\r\n if (err.response.status === 404){\r\n return [] \r\n }\r\n throw err\r\n })\r\n\r\nexport const listFoldersSharedWithMe = () =>\r\n axios.get('/v1/GetFoldersSharedWithMe')\r\n .then(({ data }) => data.data)\r\n\r\nexport const deleteFolder = (path) =>\r\n axios.post('/v1/Delete', null, {\r\n params: { path }\r\n })\r\n .then(({ data }) => data.data)\r\n .catch(err => {\r\n throw err.response.data\r\n })\r\n\r\nexport const shareFolder = (path, memberEmail) =>\r\n axios.post('/v1/ShareFolder', null, {\r\n params: { path, memberEmail }\r\n }).then(({ data }) => data.data)\r\n\r\nexport const unshareFolder = (path, memberEmail) =>\r\n axios.post('/v1/UnshareFolder', null, {\r\n params: { path, memberEmail }\r\n }).then(({ data }) => data.data)\r\n\r\n/**\r\n * @deprecated Please use OpenID authorization. This endpoint was added just for testing purposes\r\n */\r\nexport const getToken = email => {\r\n console.warn(\"\\\"getToken\\\" is deprecated!\");\r\n return axios.post('/v1/getToken', null, {\r\n params: { email },\r\n headers: { 'x-api-key': '123456789' }\r\n }).then(response => response.data)\r\n}\r\n\r\nexport const getAccountInfo = () =>\r\n axios.get('/v1/GetAccountInfo').then(({ data }) => data)\r\n\r\nexport const getApiKey = () =>\r\n axios.get('/v1/GetApiKey').then(({ data }) => data)\r\n\r\nexport const notifyDownload = (path) =>\r\n axios.post('/v1/NotifyDownload', null, {\r\n params: { path }\r\n })\r\n\r\nexport const getFile = (path, onDownloadProgress) =>\r\n axios.get('/v1/GetFile', {\r\n params: { path },\r\n responseType: 'arraybuffer',\r\n transformResponse: [...axios.defaults.transformRequest, transformResponseError],\r\n onDownloadProgress: onDownloadProgress\r\n })\r\n\r\nexport const getFilePart = (path, range, onDownloadProgress) =>\r\n axios.get('/v1/GetFilePart', {\r\n params: { path },\r\n headers: { range },\r\n responseType: 'arraybuffer',\r\n transformResponse: [...axios.defaults.transformRequest, transformResponseError],\r\n onDownloadProgress: onDownloadProgress\r\n })\r\n\r\nexport const getFileMetadata = (path) =>\r\n axios.get('/v1/GetFileMetaData', {\r\n params: { path }\r\n }).then(({ data }) => data.data)","import React, { useState } from 'react'\r\nimport Dialog from '@material-ui/core/Dialog'\r\nimport DialogTitle from '@material-ui/core/DialogTitle'\r\nimport DialogContent from '@material-ui/core/DialogContent'\r\nimport DialogActions from '@material-ui/core/DialogActions'\r\nimport Typography from '@material-ui/core/Typography'\r\nimport Button from '@material-ui/core/Button'\r\nimport IconButton from '@material-ui/core/IconButton'\r\nimport CloseIcon from '@material-ui/icons/Close'\r\nimport FileCopyIcon from '@material-ui/icons/FileCopyOutlined'\r\nimport TextField from '@material-ui/core/TextField'\r\nimport Tooltip from '@material-ui/core/Tooltip'\r\nimport DialogContentText from '@material-ui/core/DialogContentText'\r\n\r\nimport { makeStyles } from '@material-ui/core/styles'\r\nimport { Trans, useTranslation } from 'react-i18next'\r\nimport copy from 'clipboard-copy'\r\nimport { getApiKey } from '../../../api/fileShareApi'\r\n\r\nconst styles = theme => ({\r\n closeButton: {\r\n position: 'absolute',\r\n right: theme.spacing(1) / 2,\r\n top: theme.spacing(1) / 2,\r\n color: theme.palette.grey[500],\r\n },\r\n dialogActions: {\r\n paddingLeft: 0,\r\n paddingRight: 0\r\n },\r\n generateButton: {\r\n width: '100%',\r\n '&:hover':{\r\n backgroundColor:'#00B9F6'\r\n }\r\n },\r\n attention: {\r\n marginTop: theme.spacing(1)\r\n },\r\n textAreaWrapper: {\r\n position: 'relative',\r\n '&:hover $copyToClipboard': {\r\n display: 'block'\r\n }\r\n },\r\n textArea:{\r\n color: theme.palette.text.secondary\r\n },\r\n copyToClipboard: {\r\n display: 'none',\r\n position: 'absolute',\r\n right: -theme.spacing(1),\r\n bottom: theme.spacing(1) / 2,\r\n color: theme.palette.grey[500],\r\n }\r\n})\r\n\r\nconst Settings = ({open, onClose}) => {\r\n const classes = makeStyles(styles)()\r\n const { t } = useTranslation()\r\n\r\n const [apiKey, setApiKey] = useState('')\r\n const [loading, setLoading] = useState(false)\r\n\r\n const handleGenerateKeyAction = () => {\r\n if (loading){\r\n return\r\n }\r\n\r\n setLoading(true)\r\n getApiKey().then(apiKey => {\r\n setLoading(false)\r\n setApiKey(apiKey)\r\n })\r\n \r\n }\r\n\r\n const handleDialogCloseAction = (event) => {\r\n setApiKey('')\r\n onClose(event)\r\n }\r\n\r\n const handleCopyToClipboard = () => {\r\n copy(apiKey)\r\n }\r\n\r\n return (\r\n \r\n );\r\n}\r\n\r\nexport default Settings;","const AUTH_URL = process.env.REACT_APP_IDENTITY_AUTH_URL\r\n\r\nexport const IDENTITY_CONFIG = {\r\n authority: AUTH_URL, //(string): The URL of the OIDC provider.\r\n client_id: process.env.REACT_APP_IDENTITY_CLIENT_ID, //(string): Your client application's identifier as registered with the OIDC provider.\r\n redirect_uri: process.env.REACT_APP_LOGIN_CALLBACK_URL, //The URI of your client application to receive a response from the OIDC provider.\r\n login: AUTH_URL + \"/login\",\r\n automaticSilentRenew: false, //(boolean, default: false): Flag to indicate if there should be an automatic attempt to renew the access token prior to its expiration.\r\n loadUserInfo: true, //(boolean, default: true): Flag to control if additional identity data is loaded from the user info endpoint in order to populate the user's profile.\r\n silent_redirect_uri: process.env.REACT_APP_SILENT_RENEW_URL, //(string): The URL for the page containing the code handling the silent renew.\r\n post_logout_redirect_uri: process.env.REACT_APP_LOGOUT_URL, // (string): The OIDC post-logout redirect URI.\r\n response_type: \"code\",\r\n scope: \"openid ivoclarconnect\"\r\n};\r\n\r\nexport const IDENTITY_LOGOUT_URL = process.env.REACT_APP_IDENTITY_LOGOUT_URL\r\nexport const IDENTITY_EDIT_PROFILE = process.env.REACT_APP_IDENTITY_EDIT_PROFILE\r\n","import translationEN from '../assets/locales/en/translation.json'\r\nimport translationDE from '../assets/locales/de/translation.json'\r\nimport translationES from '../assets/locales/es/translation.json'\r\nimport translationFR from '../assets/locales/fr/translation.json'\r\nimport translationIT from '../assets/locales/it/translation.json'\r\nimport translationPT from '../assets/locales/pt/translation.json'\r\n\r\nexport const languages = [{\r\n code: 'en',\r\n name: 'English'\r\n}, {\r\n code: 'pt',\r\n name: 'Portuguese'\r\n}, {\r\n code: 'de',\r\n name: 'Deutsch'\r\n}, {\r\n code: 'es',\r\n name: 'Español'\r\n}, {\r\n code: 'it',\r\n name: 'Italian'\r\n}, {\r\n code: 'fr',\r\n name: 'Français'\r\n}]\r\n\r\nexport const languageResources = {\r\n en: {\r\n translation: translationEN,\r\n locale: 'en_US'\r\n },\r\n de: {\r\n translation: translationDE,\r\n locale: 'de_DE'\r\n },\r\n es: {\r\n translation: translationES,\r\n locale: 'es_ES'\r\n },\r\n fr: {\r\n translation: translationFR,\r\n locale: 'fr_FR'\r\n },\r\n it: {\r\n translation: translationIT,\r\n locale: 'it_IT'\r\n },\r\n pt: {\r\n translation: translationPT,\r\n locale: 'pt_PT'\r\n },\r\n}\r\n\r\nexport const findLanguageByCode = code => {\r\n return languages.find(lang => code.startsWith(lang.code)) || languages[0]\r\n}\r\n\r\nexport const findLocaleByCode = code => {\r\n if(code === null){\r\n code = \"en\";\r\n }\r\n var locale = \"en_EN\";\r\n var language = languageResources[code];\r\n if (language) {\r\n locale = language.locale;\r\n }\r\n return locale;\r\n}","import i18n from 'i18next';\r\nimport { initReactI18next } from \"react-i18next\";\r\nimport LanguageDetector from 'i18next-browser-languagedetector';\r\nimport {languageResources as resources} from './supportedLanguages'\r\n\r\ni18n\r\n .use(initReactI18next)\r\n .use(LanguageDetector)\r\n .init({\r\n resources,\r\n fallbackLng: 'en',\r\n\r\n keySeparator: false,\r\n\r\n interpolation: {\r\n escapeValue: false\r\n }\r\n });\r\n\r\nexport default i18n;","import React, { useState } from 'react'\r\nimport MenuItem from '@material-ui/core/MenuItem'\r\nimport Menu from '@material-ui/core/Menu'\r\nimport Tooltip from '@material-ui/core/Tooltip'\r\nimport i18n from '../../i18n/i18n';\r\nimport { languages, findLanguageByCode } from '../../i18n/supportedLanguages'\r\nimport { useTranslation } from 'react-i18next'\r\nimport { makeStyles } from '@material-ui/core/styles'\r\n\r\nconst styles = theme => ({\r\n langIcon: {\r\n marginRight: theme.spacing(1)\r\n },\r\n languageButton: {\r\n textTransform: 'uppercase',\r\n fontSize:'1.2rem',\r\n fontWeight:'100',\r\n borderBottom:'1px solid #005591',\r\n color:'#005591',\r\n marginRight:'1rem',\r\n '&:hover':{\r\n color:'#00B9F6',\r\n cursor:'pointer',\r\n borderBottom:'1px solid #00B9F6',\r\n }\r\n }\r\n});\r\n\r\nconst LanguageSwitcher = () => {\r\n const [, setCurrentLanguage] = useState('');\r\n const [anchorEl, setAnchorEl] = useState(null);\r\n const { t } = useTranslation();\r\n const classes = makeStyles(styles)()\r\n\r\n const handleMenu = event => {\r\n setAnchorEl(event.currentTarget);\r\n }\r\n\r\n const handleClose = () => {\r\n setAnchorEl(null);\r\n }\r\n \r\n React.useEffect(() => {\r\n const initialLanguage = findLanguageByCode(i18n.language)\r\n setCurrentLanguage(initialLanguage.name)\r\n }, []);\r\n\r\n const handleLanguageChange = lng => {\r\n setCurrentLanguage(lng.name);\r\n i18n.changeLanguage(lng.code)\r\n handleClose()\r\n };\r\n\r\n const openLanguageMenu = Boolean(anchorEl);\r\n\r\n return <>\r\n
\r\n {t('Our Ivoclar Cloud connects dental offices and dental labs in a new way. Share files easily and quickly with your partner and coordinate cases efficiently. Work hand in hand to envision a patient\\'s new smile together.')}\r\n
\r\n