{"version":3,"sources":["components/reusableComponents/Routes/PrivateRoute/index.tsx","components/reusableComponents/Routes/PublicRoute/index.tsx","components/reusableComponents/Load/index.jsx","App.tsx","redux/messages/reducer/index.ts","redux/allMessages/reducer/index.ts","redux/contacts/reducer/index.ts","redux/chat/reducer/index.ts","redux/chats/reducer/index.ts","redux/control/reducer/index.ts","redux/authorization/reducer/index.ts","redux/rootReducer/index.ts","redux/store/index.ts","index.tsx","redux/authorization/action/index.ts","api-data/index.ts","redux/authorization/selector/index.ts","redux/control/action/index.ts","redux/chat/action/index.ts","redux/authorization/operations/index.ts","redux/messages/action/index.ts","redux/allMessages/action/index.ts","redux/contacts/action/index.ts","redux/chats/action/index.ts","helpers/index.ts","redux/chat/selector/index.ts","App.module.css","components/reusableComponents/Load/index.module.css"],"names":["PrivateRoute","children","routeProps","token","useSelector","getToken","to","PublicRoute","restricted","shouldRedirect","Load","className","s","loader","type","color","height","width","timeout","HomePage","lazy","AuthPage","App","companionId","getChat","dispatch","useDispatch","handleTypingClose","a","typingChat","useEffect","localStorage","isChecked","setToken","set","asyncCurrentUser","handleKeepIn","asyncLogout","onlineUser","window","addEventListener","removeEventListener","handleTypingChat","onMouseLeave","appWrapper","utils","DateFnsUtils","fallback","exact","path","position","autoClose","hideProgressBar","newestOnTop","closeOnClick","rtl","pauseOnFocusLoss","draggable","pauseOnHover","reducerMessages","createReducer","total","limit","page","messages","actionGetMessagesSuccess","state","payload","isEqual","actionGetMessagesReject","_payload_","reducerAllMessages","actionGetAllMessagesSuccess","actionGetAllMessagesReject","_payload","reducerContacts","contacts","actionGetContactsSuccess","actionGetContactsReject","initialState","name","lastName","originalName","originalLastName","avatarUrl","avatarsArr","online","lastMessage","lastMessageCreatedAt","mute","sort","seen","watched","typing","number","_id","owner","createdAt","updatedAt","__v","reducerChat","actionSelectChat","actionGetChatById","actionRemoveChat","_state","reducerChats","chats","actionGetChatsSuccess","actionGetChatsReject","reducerControl","leftIsOpen","rightIsOpen","scrollChat","actionLeftIsOpen","actionRightIsOpen","actionScrollChat","code","country","nightMode","reducerAuthorization","actionLogInSuccess","actionLogInReject","actionLogOutSuccess","actionLogOutReject","actionCurrentSuccess","actionCurrentReject","authorizationPersistConfig","key","storage","rootReducer","combineReducers","allMessages","chat","control","authorization","persistReducer","composeEnhancers","composeWithDevTools","store","createStore","applyMiddleware","thunk","persistor","persistStore","queryClient","QueryClient","ReactDOM","render","StrictMode","loading","QueryClientProvider","client","document","getElementById","createAction","value","axios","require","defaults","baseURL","prodBaseURL","headers","common","Authorization","unset","forbidden","message","slice","removeItem","location","reload","authorizeUser","post","data","toast","success","progress","undefined","loginUser","patch","logoutUser","updateCredentials","body","updateUser","removeUserAvatar","index","delete","updateUserAvatar","formData","currentUser","get","addContact","removeContact","id","updateContact","getContacts","getChatById","_doc","startChat","removeChatForBoth","muteChat","sortChat","seenChat","getChats","removeMessageById","sentMessageById","sentImgMessageById","sentAudioMessageById","sentVideoMessageById","sentFileMessageById","getMessagesById","getAllMessages","getNumber","getAuthorizationState","asyncCreateUser","file","FormData","append","Promise","all","find","el","asyncLogin","cb","registered","Error","format","split","join","trim","firstLetter","word","toUpperCase","slicedWord","max","from","length","timeStampEU","Date","toLocaleString","year","month","day","hour","minute","timeStampEUFilter","second","timeStampMessage","timeStampFilter","playNotification","url","Audio","play","notification","onClick","copied","text","playNotificationWithoutPermission","w","audioContext","AudioContext","webkitAudioContext","navigator","mediaDevices","getUserMedia","audio","then","source","createBufferSource","stop","close","request","XMLHttpRequest","open","responseType","onload","decodeAudioData","response","buffer","connect","destination","start","e","console","log","send","catch","reason","error","handleDownload","FileSaver","saveAs","handleSort","sortBy","b","sortByRecent","aCreatedAt","bCreatedAt","aTime","bTime","filteredMessages","arr","date","filter","fullType","toLowerCase","includes","refreshAppTime","getChatMemo","createSelector","module","exports"],"mappings":"sVAiBeA,MAXf,YAAmE,IAA3CC,EAA0C,EAA1CA,SAAaC,EAA6B,4BAC1DC,EAAQC,YAAYC,KAC1B,OACE,cAAC,I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mBCJtDkL,EAAOC,QAAU,CAAC,WAAa,0B,mBCA/BD,EAAOC,QAAU,CAAC,OAAS,uB","file":"static/js/main.8802c01f.chunk.js","sourcesContent":["import { Route, Redirect } from 'react-router-dom';\nimport { useSelector } from 'react-redux';\n\nimport { IPrivateProps} from '../../../../typescript/components/Routes/interfaces';\nimport { getToken } from '../../../../redux/authorization/selector'\n\nfunction PrivateRoute({ children, ...routeProps }: IPrivateProps) {\n const token = useSelector(getToken)\n return (\n