text: (this["webpackJsonpsidiro-ar-frontend"]=this["webpackJsonpsidiro-ar-frontend"]||[]).push([[0],{451:function(e,a){e.exports="data:image/png;base64,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"},453:function(e){e.exports=JSON.parse('{"pl":{"translation":{"changeLanguageDialog":{"title":"Wyb\xf3r j\u0119zyka","content":"Wybierz j\u0119zyk aplikacji klikaj\u0105c poni\u017cszy przycisk","buttons":{"pl":"Polski","en":"Angielski"}},"mainMenu":{"myModelsText":"Moje modele","usersText":"U\u017cytkownicy","languageText":"J\u0119zyk"},"toolbar":{"title":"Hosting modeli aplikacji SidiroAR"},"userButton":{"text":"Zaloguj si\u0119"},"userButtonMenu":{"changePasswordText":"Zmie\u0144 has\u0142o","logOutText":"Wyloguj si\u0119"},"accessForbiddenContent":{"mainText":"Dost\u0119p zabroniony","errorMessage":"Dost\u0119p zabroniony"},"changePasswordDialog":{"dialogTitle":"Zmiana has\u0142a","newPasswordFieldLabel":"Nowe has\u0142o","oldPasswordFieldLabel":"Poprzednie has\u0142o","changePasswordButtonText":"Zmie\u0144","cancelButtonText":"Anuluj"},"loginDialog":{"dialogTitle":"Podaj email i has\u0142o u\u017cytkownika","emailFieldLabel":"Email","passwordFieldLabel":"Has\u0142o","logInButtonText":"Zaloguj si\u0119","cancelButtonText":"Anuluj"},"addModelDialog":{"dialogTitle":"Utw\xf3rz nowy model","createNewModelRadioLabel":"Nowy model","copyModelRadioLabel":"Klonuj model","newModelNameFieldLabel":"Nazwa","newModelNameAndroidFileLabel":"Plik Android","newModelNameIOSFileLabel":"Plik IOS","cloneModelUserFieldLabel":"U\u017cytkownik","cloneModelModelFieldLabel":"Model","createButtonText":"Utw\xf3rz","cancelButtonText":"Anuluj"},"fileField":{"buttonText":"Wczytaj","emptyFieldLabel":"Brak pliku"},"addUserDialog":{"dialogTitle":"Utw\xf3rz u\u017cytkownika","emailFieldLabel":"Email","nameFieldLabel":"Nazwa","defaultLangFieldLabel":"Domy\u015blny j\u0119zyk","permissionsFieldLabel":"Uprawnienia","createButtonText":"Utw\xf3rz","cancelButtonText":"Anuluj","langMenu":{"pl":"polski","en":"angielski"},"permissionsMenu":{"user":"U\u017cytkownik","admin":"Administrator","superAdmin":"SuperAdmin"}},"editModelDialog":{"dialogTitle":"Edytuj model","newModelNameFieldLabel":"Nazwa","editButtonText":"Edytuj","cancelButtonText":"Anuluj"},"editUserDialog":{"dialogTitle":"Edytuj u\u017cytkownika","emailFieldLabel":"Email","nameFieldLabel":"Nazwa","defaultLangFieldLabel":"Domy\u015blny j\u0119zyk","permissionsFieldLabel":"Uprawnienia","newPasswordFieldLabel":"Nowe has\u0142o (opcja)","editButtonText":"Edytuj","cancelButtonText":"Anuluj","langMenu":{"pl":"polski","en":"angielski"},"permissionsMenu":{"user":"U\u017cytkownik","admin":"Administrator","superAdmin":"SuperAdmin"}},"removeModelDialog":{"dialogTitle":"Usu\u0144 model","dialogContentText":"Czy na pewno chcesz usun\u0105\u0107 model","yesButtonText":"Tak","noButtonText":"Nie"},"removeUserDialog":{"dialogTitle":"Usu\u0144 u\u017cytkownika","dialogContentText":"Czy na pewno chcesz usun\u0105\u0107 u\u017cytkownika","yesButtonText":"Tak","noButtonText":"Nie"},"currentUserOverview":{"mainTable":{"tableTitle":"Twoje modele","modelNameColumnName":"Nazwa modelu","androidFileColumnName":"Android - plik na serwerze","iosFileColumname":"IOS - plik na serwerze","localization":{"pagination":{"labelDisplayedRows":"{from}-{to} z {count}","labelRowsSelect":"wierszy","previousAriaLabel":"Poprzednia strona","previousTooltip":"Poprzednia strona","nextAriaLabel":"Nast\u0119pna strona","nextTooltip":"Nast\u0119pna strona","firstTooltip":"Pierwsza strona","lastTooltip":"Ostatnia strona"},"toolbar":{"exportTitle":"Eksport","exportAriaLabel":"Eksport","exportName":"Eksportuj do CSV","searchTooltip":"Szukaj","searchPlaceholder":"Szukaj"},"body":{"emptyDataSourceMessage":"Brak dost\u0119pnych danych"}}},"fileCellLabel":{"fileAvailable":"Dost\u0119pny","fileUnavailable":"Niedost\u0119pny"}},"editDataComponent":{"userLabel":{"selectedUserText":"U\u017cytkownik","unselectedUserText":"U\u017cytkownicy"},"userSelectComponent":{"addUserButtonText":"Dodaj","editUserButtonText":"Edytuj","deleteUserButtonText":"Usu\u0144","addModelButtonText":"Dodaj model","SelectUserInputText":"Wybierz u\u017cytkownika","filterInputText":"Filtr"},"modelTableComponent":{"uploadFileText":"Wy\u015blij","downloadFileText":"Pobierz","uploadIOSFileText":"Wy\u015blij","downloadIOSFileText":"Pobierz","editModelButtonText":"Edytuj","deleteModelButtonText":"Usu\u0144","table":{"modelNameColumnName":"Nazwa modelu","toolsColumnName":"Narz\u0119dzia","androidFileColumnName":"Plik - Android","iosFileColumnName":"Plik - IOS"},"localization":{"pagination":{"labelDisplayedRows":"{from}-{to} z {count}","labelRowsSelect":"wierszy","previousAriaLabel":"Poprzednia strona","previousTooltip":"Poprzednia strona","nextAriaLabel":"Nast\u0119pna strona","nextTooltip":"Nast\u0119pna strona","firstTooltip":"Pierwsza strona","lastTooltip":"Ostatnia strona"},"toolbar":{"exportTitle":"Eksport","exportAriaLabel":"Eksport","exportName":"Eksportuj do CSV","searchTooltip":"Szukaj","searchPlaceholder":"Szukaj"},"body":{"emptyDataSourceMessage":"Brak dost\u0119pnych modeli"}}}}}},"en":{"translation":{"changeLanguageDialog":{"title":"Language selection","content":"Change language of application by clicking button below","buttons":{"pl":"Polish","en":"English"}},"mainMenu":{"myModelsText":"My models","usersText":"Users","languageText":"Language"},"toolbar":{"title":"Hosting platform for SidiroAR application\'s models"},"userButton":{"text":"Log in"},"userButtonMenu":{"changePasswordText":"Change password","logOutText":"Log out"},"accessForbiddenContent":{"mainText":"Access forbidden","errorMessage":"Access forbidden"},"changePasswordDialog":{"dialogTitle":"Change password","newPasswordFieldLabel":"New password","oldPasswordFieldLabel":"Old password","changePasswordButtonText":"Change","cancelButtonText":"Cancel"},"loginDialog":{"dialogTitle":"Please fill in your email and password","emailFieldLabel":"Email","passwordFieldLabel":"Password","logInButtonText":"Log in","cancelButtonText":"Cancel"},"addModelDialog":{"dialogTitle":"Create new model","createNewModelRadioLabel":"New model","copyModelRadioLabel":"Clone model","newModelNameFieldLabel":"Name","newModelNameAndroidFileLabel":"Andriod file","newModelNameIOSFileLabel":"IOS file","cloneModelUserFieldLabel":"User","cloneModelModelFieldLabel":"Model","createButtonText":"Create","cancelButtonText":"Cancel","fileButtonText":"Load"},"fileField":{"buttonText":"Load","emptyFieldLabel":"No file"},"addUserDialog":{"dialogTitle":"Create user","emailFieldLabel":"Email","nameFieldLabel":"Name","defaultLangFieldLabel":"Default language","permissionsFieldLabel":"Permissions","createButtonText":"Create","cancelButtonText":"Cancel","langMenu":{"pl":"polish","en":"english"},"permissionsMenu":{"user":"User","admin":"Admin","superAdmin":"SuperAdmin"}},"editModelDialog":{"dialogTitle":"Edit model","newModelNameFieldLabel":"Name","editButtonText":"Edit","cancelButtonText":"Cancel"},"editUserDialog":{"dialogTitle":"Edit user","emailFieldLabel":"Email","nameFieldLabel":"Name","defaultLangFieldLabel":"Default language","permissionsFieldLabel":"Permissions","newPasswordFieldLabel":"New password (optional)","editButtonText":"Edit","cancelButtonText":"Cancel","langMenu":{"pl":"polish","en":"english"},"permissionsMenu":{"user":"User","admin":"Admin","superAdmin":"SuperAdmin"}},"removeModelDialog":{"dialogTitle":"Delete model","dialogContentText":"Do you really want to delete model","yesButtonText":"Yes","noButtonText":"No"},"removeUserDialog":{"dialogTitle":"Delete user","dialogContentText":"Do you really want to delete user","yesButtonText":"Yes","noButtonText":"No"},"currentUserOverview":{"mainTable":{"tableTitle":"Your models","modelNameColumnName":"Model name","androidFileColumnName":"Android - file on server","iosFileColumname":"IOS - file on server","localization":{"pagination":{"labelDisplayedRows":"{from}-{to} of {count}","labelRowsSelect":"rows","previousAriaLabel":"Previous Page","previousTooltip":"Previous Page","nextAriaLabel":"Next Page","nextTooltip":"Next Page","firstTooltip":"First Page","lastTooltip":"Last Page"},"toolbar":{"exportTitle":"Export","exportAriaLabel":"Export","exportName":"Export as CSV","searchTooltip":"Search","searchPlaceholder":"Search"},"body":{"emptyDataSourceMessage":"No models to display"}}},"fileCellLabel":{"fileAvailable":"Available","fileUnavailable":"Not available"}},"editDataComponent":{"userLabel":{"selectedUserText":"User","unselectedUserText":"Users"},"userSelectComponent":{"addUserButtonText":"Create","editUserButtonText":"Edit","deleteUserButtonText":"Delete","addModelButtonText":"Create model","SelectUserInputText":"Select user","filterInputText":"Filter"},"modelTableComponent":{"uploadFileText":"Upload","downloadFileText":"Download","uploadIOSFileText":"Upload","downloadIOSFileText":"Download","editModelButtonText":"Edit","deleteModelButtonText":"Delete","table":{"modelNameColumnName":"Model name","toolsColumnName":"Tools","androidFileColumnName":"File - Android","iosFileColumnName":"File - IOS","localization":{"pagination":{"labelDisplayedRows":"{from}-{to} of {count}","labelRowsSelect":"rows","previousAriaLabel":"Previous Page","previousTooltip":"Previous Page","nextAriaLabel":"Next Page","nextTooltip":"Next Page","firstTooltip":"First Page","lastTooltip":"Last Page"},"toolbar":{"exportTitle":"Export","exportAriaLabel":"Export","exportName":"Export as CSV","searchTooltip":"Search","searchPlaceholder":"Search"},"body":{"emptyDataSourceMessage":"No models to display"}}}}}}}}')},487:function(e,a,t){e.exports=t(688)},492:function(e,a,t){},493:function(e,a,t){},688:function(e,a,t){"use strict";t.r(a);var n=t(0),r=t.n(n),o=t(26),l=t.n(o),i=(t(492),t(20)),s=t(21),c=t(23),u=t(22),d=(t(493),t(19)),p=t(34),m=t(446),b=t(440),f=t(7),h=t(62),w=t(109),g=t(163),y=function(e){var a=e.options&&e.options.key;return{type:"ENQUEUE_SNACKBAR",notification:Object(f.a)(Object(f.a)({},e),{},{key:a||(new Date).getTime()+Math.random()})}},E=function(e){return{type:"REMOVE_SNACKBAR",key:e}},v={notifications:[]},k=Object(p.c)({form:b.a,auth:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{currentUser:null},a=arguments.length>1?arguments[1]:void 0;switch(a.type){case"LOGIN_USER":case"LOGIN_USER_WITH_JWT":return Object(f.a)(Object(f.a)({},e),{},{currentUser:a.payload.user});case"LOGOUT_USER":return Object(f.a)(Object(f.a)({},e),{},{currentUser:null});default:return e}},data:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{usersData:{},currentUserData:null},a=arguments.length>1?arguments[1]:void 0;switch(a.type){case"FETCH_CURRENT_USER_DATA":return Object(f.a)(Object(f.a)({},e),{},{currentUserData:a.payload.user});case"FETCH_ALL_USERS_DATA":return Object(f.a)(Object(f.a)({},e),{},{usersData:a.payload.users});case"FETCH_USER_DATA":return Object(f.a)(Object(f.a)({},e),{},{usersData:Object(f.a)(Object(f.a)({},e.usersData),{},Object(w.a)({},a.payload.user._id,a.payload.user))});case"FETCH_USER_MODELS_DATA":var t=a.payload.userId,n=a.payload.models;return Object(f.a)(Object(f.a)({},e),{},{usersData:Object(f.a)(Object(f.a)({},e.usersData),{},Object(w.a)({},t,Object(f.a)(Object(f.a)({},e.usersData[t]),{},{models:n})))});case"FETCH_USER_MODEL_DATA":var r,o=a.payload.userId,l=a.payload.model,i=Object(f.a)(Object(f.a)({},e),{},{usersData:Object(f.a)(Object(f.a)({},e.usersData),{},Object(w.a)({},o,Object(f.a)(Object(f.a)({},e.usersData[o]),{},{models:Object(f.a)(Object(f.a)({},e.usersData[o].models),{},Object(w.a)({},l._id,l))})))}),s=Object.values(e.usersData).filter((function(e){return l._id in e.models&&e._id!==o})),c=Object(h.a)(s);try{for(c.s();!(r=c.n()).done;){var u=r.value;i.usersData[u._id].models[l._id]=l}}catch(g){c.e(g)}finally{c.f()}return i;case"DELETE_USER_DATA":var d=Object(f.a)({},e.usersData);return delete d[a.payload.user._id],Object(f.a)(Object(f.a)({},e),{},{usersData:d});case"DELETE_MODEL_DATA":var p=a.payload.userId,m=a.payload.model,b=Object(f.a)({},e.usersData[p].models);return delete b[m._id],Object(f.a)(Object(f.a)({},e),{},{usersData:Object(f.a)(Object(f.a)({},e.usersData),{},Object(w.a)({},p,Object(f.a)(Object(f.a)({},e.usersData[p]),{},{models:b})))});default:return e}},file:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{file:null,userId:null,modelId:null},a=arguments.length>1?arguments[1]:void 0;switch(a.type){case"FETCH_FILE_TO_SEND":return Object(f.a)(Object(f.a)({},e),{},{file:a.payload.file,userId:a.payload.userId,modelId:a.payload.modelId});case"SEND_FILE":return{file:null,userId:null,modelId:null};default:return e}},iosFile:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{file:null,userId:null,modelId:null},a=arguments.length>1?arguments[1]:void 0;switch(a.type){case"FETCH_IOS_FILE_TO_SEND":return Object(f.a)(Object(f.a)({},e),{},{file:a.payload.file,userId:a.payload.userId,modelId:a.payload.modelId});case"SEND_IOS_FILE":return{file:null,userId:null,modelId:null};default:return e}},busyDialog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{visible:!1},a=arguments.length>1?arguments[1]:void 0;switch(a.type){case"BUSY_DIALOG_SHOW":return Object(f.a)(Object(f.a)({},e),{},{visible:!0});case"BUSY_DIALOG_HIDE":return Object(f.a)(Object(f.a)({},e),{},{visible:!1});default:return e}},loginDialog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{visible:!1},a=arguments.length>1?arguments[1]:void 0;switch(a.type){case"LOGIN_DIALOG_SHOW":return Object(f.a)(Object(f.a)({},e),{},{visible:!0});case"LOGIN_DIALOG_HIDE":return Object(f.a)(Object(f.a)({},e),{},{visible:!1});default:return e}},changePasswordDialog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{visible:!1},a=arguments.length>1?arguments[1]:void 0;switch(a.type){case"CHANGE_PASSWORD_DIALOG_SHOW":return Object(f.a)(Object(f.a)({},e),{},{visible:!0});case"CHANGE_PASSWORD_DIALOG__HIDE":return Object(f.a)(Object(f.a)({},e),{},{visible:!1});default:return e}},addUserDialog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{visible:!0},a=arguments.length>1?arguments[1]:void 0;switch(a.type){case"ADD_USER_DIALOG_SHOW":return Object(f.a)(Object(f.a)({},e),{},{visible:!0});case"ADD_USER_DIALOG_HIDE":return Object(f.a)(Object(f.a)({},e),{},{visible:!1});default:return e}},editUserDialog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{visible:!0,userId:null},a=arguments.length>1?arguments[1]:void 0;switch(a.type){case"EDIT_USER_DIALOG_SHOW":return Object(f.a)(Object(f.a)({},e),{},{visible:!0,userId:a.payload.userId});case"EDIT_USER_DIALOG_HIDE":return Object(f.a)(Object(f.a)({},e),{},{visible:!1});default:return e}},removeUserDialog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{visible:!0,userId:null},a=arguments.length>1?arguments[1]:void 0;switch(a.type){case"REMOVE_USER_DIALOG_SHOW":return Object(f.a)(Object(f.a)({},e),{},{visible:!0,userId:a.payload.userId});case"REMOVE_USER_DIALOG_HIDE":return Object(f.a)(Object(f.a)({},e),{},{visible:!1,userId:null});default:return e}},removeModelDialog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{visible:!0,userId:null,modelId:null},a=arguments.length>1?arguments[1]:void 0;switch(a.type){case"REMOVE_MODEL_DIALOG_SHOW":return Object(f.a)(Object(f.a)({},e),{},{visible:!0,userId:a.payload.userId,modelId:a.payload.modelId});case"REMOVE_MODEL_DIALOG_HIDE":return Object(f.a)(Object(f.a)({},e),{},{visible:!1,userId:null,modelId:null});default:return e}},addModelDialog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{visible:!0,userId:null,newModel:!0},a=arguments.length>1?arguments[1]:void 0;switch(a.type){case"ADD_MODEL_DIALOG_SHOW":return Object(f.a)(Object(f.a)({},e),{},{visible:!0,userId:a.payload.userId,newModel:!0});case"ADD_MODEL_DIALOG_HIDE":return Object(f.a)(Object(f.a)({},e),{},{visible:!1,userId:null});case"ADD_MODEL_DIALOG_SWITCH_TO_NEW_MODEL":return Object(f.a)(Object(f.a)({},e),{},{newModel:!0});case"ADD_MODEL_DIALOG_SWITCH_TO_CLONE_MODEL":return Object(f.a)(Object(f.a)({},e),{},{newModel:!1});default:return e}},editModelDialog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{visible:!0,userId:null,modelId:null},a=arguments.length>1?arguments[1]:void 0;switch(a.type){case"EDIT_MODEL_DIALOG_SHOW":return Object(f.a)(Object(f.a)({},e),{},{visible:!0,userId:a.payload.userId,modelId:a.payload.modelId});case"EDIT_MODEL_DIALOG_HIDE":return Object(f.a)(Object(f.a)({},e),{},{visible:!1});default:return e}},changeLanguageDialog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{visible:!1},a=arguments.length>1?arguments[1]:void 0;switch(a.type){case"CHANGE_LANGUAGE_DIALOG_SHOW":return Object(f.a)(Object(f.a)({},e),{},{visible:!0});case"CHANGE_LANGUAGE_DIALOG_HIDE":return Object(f.a)(Object(f.a)({},e),{},{visible:!1});default:return e}},userMenu:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{visible:!1},a=arguments.length>1?arguments[1]:void 0;switch(a.type){case"USER_MENU_SHOW":return Object(f.a)(Object(f.a)({},e),{},{visible:!0});case"USER_MENU_HIDE":return Object(f.a)(Object(f.a)({},e),{},{visible:!1});default:return e}},mainMenu:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{visible:!1},a=arguments.length>1?arguments[1]:void 0;switch(a.type){case"MAIN_MENU_SHOW":return Object(f.a)(Object(f.a)({},e),{},{visible:!0});case"MAIN_MENU_HIDE":return Object(f.a)(Object(f.a)({},e),{},{visible:!1});default:return e}},editDataComponent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{selectedUser:"",filter:"",possibleUsers:[]},a=arguments.length>1?arguments[1]:void 0;switch(a.type){case"EDIT_DATA_COMPONENT_RESET":return Object(f.a)(Object(f.a)({},e),{},{selectedUser:"",filter:""});case"EDIT_DATA_COMPONENT_SELECT_USER":return Object(f.a)(Object(f.a)({},e),{},{selectedUser:a.payload.selectedUser});case"EDIT_DATA_COMPONENT_CHANGE_FILTER":return Object(f.a)(Object(f.a)({},e),{},{filter:a.payload.filter});default:return e}},snackbar:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,a=arguments.length>1?arguments[1]:void 0;switch(a.type){case"ENQUEUE_SNACKBAR":return Object(f.a)(Object(f.a)({},e),{},{notifications:[].concat(Object(g.a)(e.notifications),[Object(f.a)({key:a.key},a.notification)])});case"CLOSE_SNACKBAR":return Object(f.a)(Object(f.a)({},e),{},{notifications:e.notifications.map((function(e){return a.dismissAll||e.key===a.key?Object(f.a)(Object(f.a)({},e),{},{dismissed:!0}):Object(f.a)({},e)}))});case"REMOVE_SNACKBAR":return Object(f.a)(Object(f.a)({},e),{},{notifications:e.notifications.filter((function(e){return e.key!==a.key}))});default:return e}}}),O=Object(p.e)(k,Object(p.a)(m.a)),D=t(150),j=t(725),z=t(136),x=t(6),C=t.n(x),T=t(9),U=t(5),F=function(e){return null!==e&&void 0!==e},I=function(e){return F(e)&&!function(e){for(var a in e)if(e.hasOwnProperty(a))return!1;return!0}(e)},S=function(e,a){return 0!==(e&1<<a)},M=t(2),N=t(715),L=t(398),A=t(309),R=t(116),P=t(716),B=t(397),_=function(){return{type:"USER_MENU_SHOW"}},W=t(95),G=function(){return{type:"LOGIN_DIALOG_SHOW"}},H=function(){return function(){var e=Object(T.a)(C.a.mark((function e(a,t){return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a(Object(W.a)("loginDialog"));case 2:return e.next=4,a({type:"LOGIN_DIALOG_HIDE"});case 4:case"end":return e.stop()}}),e)})));return function(a,t){return e.apply(this,arguments)}}()},V=t(714),q=t(448),Y=t.n(q),Z=t(124),J=t.n(Z);J.a.defaults.baseURL="",J.a.interceptors.response.use((function(e){return e}),(function(e){return e.response&&e.response.status>=400&&e.response.status<500||console.log(e),Promise.reject(e)}));var K={get:J.a.get,post:J.a.post,put:J.a.put,delete:J.a.delete,assignJWT:function(e,a){J.a.defaults.headers.common[e]=a}},X=t(77),Q=X.authTokenName,$=X.authRoute;function ee(e,a){return ae.apply(this,arguments)}function ae(){return(ae=Object(T.a)(C.a.mark((function e(a,t){var n,r;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,K.post($,{email:a,password:t});case 2:return n=e.sent,r=n.headers[Q],e.abrupt("return",ne(r));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function te(){return localStorage.getItem(Q)}function ne(e){return localStorage.setItem(Q,e),K.assignJWT(Q,e),function(){var e=localStorage.getItem(Q);return Y()(e)}()}function re(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(){var t=Object(T.a)(C.a.mark((function t(n,r){var o;return C.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,n({type:"BUSY_DIALOG_SHOW"});case 3:return t.next=5,e(n,r);case 5:t.next=13;break;case 7:return t.prev=7,t.t0=t.catch(0),console.log(t.t0),o=a||t.t0.message,t.next=13,n(y({message:o,options:{variant:"error"}}));case 13:return t.prev=13,t.next=16,n({type:"BUSY_DIALOG_HIDE"});case 16:return t.finish(13);case 17:case"end":return t.stop()}}),t,null,[[0,7,13,17]])})));return function(e,a){return t.apply(this,arguments)}}()}var oe=t(63),le=t.n(oe),ie=X.userRoute,se=X.modelRoute,ce=function(e){var a=le.a.pick(e,"_id","email","name","permissions","defaultLang");return a.models=function(e){if(!F(e))return{};if(!I(e.modelIds))return{};if(!I(e.modelNames))return{};if(!I(e.filesExist))return{};if(!I(e.iosFilesExist))return{};var a=e.modelIds.length,t=e.modelNames.length,n=e.filesExist.length,r=e.iosFilesExist.length;if(a!==t||a!==n||a!==r)return{};for(var o=a,l={},i=0;i<o;i++){var s=e.modelIds[i],c=e.modelNames[i],u=e.filesExist[i],d=e.iosFilesExist[i];l[s]={_id:s,name:c,fileExists:u,iosFileExists:d}}return l}(e),a},ue=function(e){var a,t={},n=Object(h.a)(e);try{for(n.s();!(a=n.n()).done;){var r=a.value;t[r._id]=ce(r)}}catch(o){n.e(o)}finally{n.f()}return t},de=function(e){return le.a.pick(e,"_id","name","fileExists","iosFileExists")};function pe(){return me.apply(this,arguments)}function me(){return(me=Object(T.a)(C.a.mark((function e(){var a,t;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(F(te())){e.next=2;break}return e.abrupt("return",null);case 2:return e.next=4,K.get("".concat(ie,"/me"));case 4:return a=e.sent,t=a.data,e.abrupt("return",ce(t));case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function be(e){return fe.apply(this,arguments)}function fe(){return(fe=Object(T.a)(C.a.mark((function e(a){var t,n;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(F(te())){e.next=2;break}return e.abrupt("return",null);case 2:return e.next=4,K.put("".concat(ie,"/me"),a);case 4:return t=e.sent,n=ce(t.data),e.abrupt("return",n);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function he(){return we.apply(this,arguments)}function we(){return(we=Object(T.a)(C.a.mark((function e(){var a,t;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,K.get("".concat(ie));case 2:return a=e.sent,t=ue(a.data),e.abrupt("return",t);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ge(e){return ye.apply(this,arguments)}function ye(){return(ye=Object(T.a)(C.a.mark((function e(a){var t,n;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,K.post("".concat(ie),a);case 2:return t=e.sent,n=ce(t.data),e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ee(e,a){return ve.apply(this,arguments)}function ve(){return(ve=Object(T.a)(C.a.mark((function e(a,t){var n,r;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,K.post("".concat(se,"/").concat(a),t);case 2:return n=e.sent,r=de(n.data),e.abrupt("return",r);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ke(e){return Oe.apply(this,arguments)}function Oe(){return(Oe=Object(T.a)(C.a.mark((function e(a){var t,n;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,K.delete("".concat(ie,"/").concat(a));case 2:return t=e.sent,n=ce(t.data),e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function De(e,a){return je.apply(this,arguments)}function je(){return(je=Object(T.a)(C.a.mark((function e(a,t){var n,r;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,K.delete("".concat(se,"/").concat(a,"/").concat(t));case 2:return n=e.sent,r=de(n.data),e.abrupt("return",r);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ze(e,a){return xe.apply(this,arguments)}function xe(){return(xe=Object(T.a)(C.a.mark((function e(a,t){var n,r;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,K.put("".concat(ie,"/").concat(a),t);case 2:return n=e.sent,r=ce(n.data),e.abrupt("return",r);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ce(e,a,t){return Te.apply(this,arguments)}function Te(){return(Te=Object(T.a)(C.a.mark((function e(a,t,n){var r,o;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,K.put("".concat(se,"/").concat(a,"/").concat(t),n);case 2:return r=e.sent,o=de(r.data),e.abrupt("return",o);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Ue=function(e,a){if(!I(a))return[];if(!F(e)||""===e)return[];var t=a[e];return I(t)?function(e){return I(e.models)?Object.values(e.models).map((function(a){return{userId:e._id,userEmail:e.email,modelId:a._id,modelName:a.name,modelFileExists:a.fileExists,modelIOSFileExists:a.iosFileExists}})):[]}(t):[]},Fe=function(e,a){return!!F(e)&&(!F(a)||""===a||e.toLowerCase().includes(a.toLowerCase(),0))},Ie=function(e){return function(){var a=Object(T.a)(C.a.mark((function a(t,n){var r,o;return C.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,n();case 2:if(r=a.sent,!F(r.editDataComponent.selectedUser)||""===r.editDataComponent.selectedUser){a.next=8;break}if(o=r.data.usersData[r.editDataComponent.selectedUser].email,Fe(o,e)){a.next=8;break}return a.next=8,t(Se(""));case 8:return a.next=10,t({payload:{filter:e},type:"EDIT_DATA_COMPONENT_CHANGE_FILTER"});case 10:case"end":return a.stop()}}),a)})));return function(e,t){return a.apply(this,arguments)}}()},Se=function(e){return function(){var a=Object(T.a)(C.a.mark((function a(t,n){return C.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,t({payload:{selectedUser:e},type:"EDIT_DATA_COMPONENT_SELECT_USER"});case 2:case"end":return a.stop()}}),a)})));return function(e,t){return a.apply(this,arguments)}}()},Me=function(){return function(){var e=Object(T.a)(C.a.mark((function e(a,t){return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a({type:"EDIT_DATA_COMPONENT_RESET"});case 2:case"end":return e.stop()}}),e)})));return function(a,t){return e.apply(this,arguments)}}()},Ne=function(){return function(){var e=Object(T.a)(C.a.mark((function e(a,t){var n;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pe();case 2:n=e.sent,a({type:"FETCH_CURRENT_USER_DATA",payload:{user:n}});case 4:case"end":return e.stop()}}),e)})));return function(a,t){return e.apply(this,arguments)}}()},Le=function(){return re(Ne())},Ae=function(e){return function(){var a=Object(T.a)(C.a.mark((function a(t,n){var r;return C.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,be(e);case 2:r=a.sent,t({type:"FETCH_CURRENT_USER_DATA",payload:{user:r}});case 4:case"end":return a.stop()}}),a)})));return function(e,t){return a.apply(this,arguments)}}()},Re=function(){return re(function(){var e=Object(T.a)(C.a.mark((function e(a,t){var n;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,he();case 2:n=e.sent,a({type:"FETCH_ALL_USERS_DATA",payload:{users:n}});case 4:case"end":return e.stop()}}),e)})));return function(a,t){return e.apply(this,arguments)}}())},Pe=t(190),Be=function(e){return function(){var a=Object(T.a)(C.a.mark((function a(t,n){return C.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,Pe.a.changeLanguage(e);case 2:case"end":return a.stop()}}),a)})));return function(e,t){return a.apply(this,arguments)}}()},_e=function(){return function(){var e=Object(T.a)(C.a.mark((function e(a,t){return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a(Object(W.a)("changePasswordDialog"));case 2:return e.next=4,a({type:"CHANGE_PASSWORD_DIALOG__HIDE"});case 4:case"end":return e.stop()}}),e)})));return function(a,t){return e.apply(this,arguments)}}()},We=t(712),Ge=t(713),He=t(237),Ve=t(395),qe=t(711),Ye=t(396),Ze=t(25),Je=t.n(Ze),Ke=t(741),Xe=function(e){Object(c.a)(t,e);var a=Object(u.a)(t);function t(){var e;Object(i.a)(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=a.call.apply(a,[this].concat(r))).handleMenuClose=function(){e.props.hideUserMenu()},e.handleLogoutClick=Object(T.a)(C.a.mark((function a(){return C.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,e.props.hideUserMenu();case 2:return a.next=4,e.props.logoutUser();case 4:case"end":return a.stop()}}),a)}))),e.handleChangePasswordClick=Object(T.a)(C.a.mark((function a(){return C.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:e.props.hideUserMenu(),e.props.showChangePasswordDialog();case 2:case"end":return a.stop()}}),a)}))),e}return Object(s.a)(t,[{key:"render",value:function(){var e=this.props,a=e.userMenu,t=e.classes,n=e.referenceEl,o=e.t;return r.a.createElement(He.a,{id:"user-menu",className:t.menuRoot,anchorEl:a.visible?n.current:null,keepMounted:!0,open:a.visible,onClose:this.handleMenuClose,PaperProps:{style:{backgroundColor:Je.a[800]}}},r.a.createElement("div",{className:t.menuDiv},r.a.createElement(Ve.a,{onClick:this.handleChangePasswordClick},r.a.createElement(qe.a,null,r.a.createElement(We.a,null)),r.a.createElement(Ye.a,{primary:o("userButtonMenu.changePasswordText")})),r.a.createElement(Ve.a,{onClick:this.handleLogoutClick},r.a.createElement(qe.a,null,r.a.createElement(Ge.a,null)),r.a.createElement(Ye.a,{primary:o("userButtonMenu.logOutText")}))))}}]),t}(n.Component),Qe=Object(U.a)((function(e){return{menuRoot:{},menuDiv:{minWidth:200,background:Je.a[800]}}}))(Xe),$e=Object(Ke.a)()(Qe),ea=Object(d.b)((function(e,a){return{userMenu:e.userMenu}}),{showUserMenu:_,hideUserMenu:function(){return{type:"USER_MENU_HIDE"}},logoutUser:function(){return re(function(){var e=Object(T.a)(C.a.mark((function e(a,t){return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return localStorage.removeItem(Q),e.next=3,a({type:"LOGOUT_USER"});case 3:return e.next=5,a(Ne());case 5:case"end":return e.stop()}}),e)})));return function(a,t){return e.apply(this,arguments)}}())},showChangePasswordDialog:function(){return function(){var e=Object(T.a)(C.a.mark((function e(a,t){var n;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a(Le());case 2:return e.next=4,t();case 4:if(n=e.sent,!I(n.data.currentUserData)){e.next=8;break}return e.next=8,a({type:"CHANGE_PASSWORD_DIALOG_SHOW"});case 8:case"end":return e.stop()}}),e)})));return function(a,t){return e.apply(this,arguments)}}()}})($e),aa=function(e){Object(c.a)(t,e);var a=Object(u.a)(t);function t(e){var n;return Object(i.a)(this,t),(n=a.call(this,e)).handleButtonClicked=function(){var e=n.props,a=e.currentUser,t=e.showUserMenu,r=e.showLoginDialog;I(a)?t():r()},n.ownRef=r.a.createRef(),n}return Object(s.a)(t,[{key:"render",value:function(){var e=this.props,a=e.classes,t=e.currentUser,n=e.t;return r.a.createElement(r.a.Fragment,null,r.a.createElement(B.a,{className:a.button,variant:"contained",startIcon:r.a.createElement(V.a,{className:a.buttonIcon}),color:"primary",onClick:this.handleButtonClicked,ref:this.ownRef},I(t)?t.name:n("userButton.text")),r.a.createElement(ea,{referenceEl:this.ownRef}))}}]),t}(n.Component),ta=Object(U.a)((function(e){return{button:{},buttonIcon:{}}}))(aa),na=Object(Ke.a)()(ta),ra=Object(d.b)((function(e,a){return{currentUser:e.auth.currentUser}}),{showUserMenu:_,showLoginDialog:G})(na),oa=function(){return{type:"MAIN_MENU_SHOW"}},la=function(){return{type:"MAIN_MENU_HIDE"}},ia=function(e){Object(c.a)(t,e);var a=Object(u.a)(t);function t(){var e;Object(i.a)(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=a.call.apply(a,[this].concat(r))).renderPageTitle=function(a){return(0,e.props.t)("toolbar.title")},e.handleMenuButtonClicked=Object(T.a)(C.a.mark((function a(){return C.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:e.props.mainMenu.visible?e.props.hideMainMenu():e.props.showMainMenu();case 1:case"end":return a.stop()}}),a)}))),e}return Object(s.a)(t,[{key:"render",value:function(){var e=this.props,a=e.classes,t=e.mainMenu;return r.a.createElement(N.a,{position:"absolute",className:Object(M.a)(a.appBar,t.visible&&a.appBarShift)},r.a.createElement(L.a,{className:a.toolbar},r.a.createElement(A.a,{edge:"start",className:Object(M.a)(a.menuButton,t.visible&&a.menuButtonHidden),color:"inherit","aria-label":"menu",onClick:this.handleMenuButtonClicked},r.a.createElement(P.a,{className:a.menuIcon})),r.a.createElement(R.a,{component:"h1",variant:"h6",color:"inherit",noWrap:!0,className:a.pageTitle},this.renderPageTitle()),r.a.createElement(ra,null)))}}]),t}(n.Component),sa=Object(U.a)((function(e){return{appBar:{zIndex:e.zIndex.drawer+1,transition:e.transitions.create(["width","margin"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen})},appBarShift:{marginLeft:240,width:"calc(100% - ".concat(240,"px)"),transition:e.transitions.create(["width","margin"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen})},toolbar:{background:Je.a[900]},menuButton:{marginRight:24},menuButtonHidden:{display:"none"},menuIcon:{},pageTitle:{flexGrow:1}}}))(ia),ca=Object(Ke.a)()(sa),ua=Object(d.b)((function(e,a){return{mainMenu:e.mainMenu}}),{showMainMenu:oa,hideMainMenu:la})(ca),da=t(717),pa=t(399),ma=function(e){Object(c.a)(t,e);var a=Object(u.a)(t);function t(){return Object(i.a)(this,t),a.apply(this,arguments)}return Object(s.a)(t,[{key:"render",value:function(){var e=this.props,a=e.busyDialog,t=e.classes;return r.a.createElement("div",null,r.a.createElement(da.a,{open:a.visible,className:t.dialog,disableBackdropClick:!0,disableEscapeKeyDown:!0,PaperProps:{style:{backgroundColor:"transparent",boxShadow:"none",overflow:"visible"}}},r.a.createElement(pa.a,{className:t.circularProgress,size:150,thickness:4})))}}]),t}(n.Component),ba=Object(U.a)((function(e){return{dialog:{},circularProgress:{overflow:"visible",color:Je.a[600]}}}))(ma),fa=Object(d.b)((function(e,a){return{busyDialog:e.busyDialog}}),{})(ba),ha=t(405),wa=t(698),ga=t(718),ya=t(719),Ea=t(720),va=t(406),ka=t(437),Oa=t(438),Da=t(46),ja=t.n(Da),za=ja.a.object({email:ja.a.string().email({tlds:{allow:!1}}).required(),password:ja.a.string().min(8).max(255).required()}),xa=ja.a.object({newPassword:ja.a.string().min(8).max(255).required(),oldPassword:ja.a.string().min(8).max(255).required()}),Ca=ja.a.object({name:ja.a.string().min(3).max(100).required(),email:ja.a.string().email({tlds:{allow:!1}}).required(),defaultLang:ja.a.string().valid("pl","en").required(),permissions:ja.a.number().integer().min(0).max(255).required(),password:ja.a.string().min(8).max(255)}),Ta=ja.a.object({name:ja.a.string().min(3).max(100).required(),file:ja.a.optional(),iosFile:ja.a.optional()}),Ua=ja.a.object({userToClone:ja.a.string().required(),modelToClone:ja.a.string().required()}),Fa=ja.a.object({name:ja.a.string().min(3).max(100).required()}),Ia=t(44),Sa=t.n(Ia),Ma=function(e){Object(c.a)(t,e);var a=Object(u.a)(t);function t(){var e;Object(i.a)(this,t);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return(e=a.call.apply(a,[this].concat(o))).renderField=function(a){var t=a.input,n=a.label,o=a.type,l=a.meta,i=l.touched,s=l.error,c=l.warning;return r.a.createElement("div",{className:e.props.classes.textFieldDiv},r.a.createElement(ha.a,Object.assign({className:e.props.classes.textField},t,{label:n,placeholder:n,type:o,fullWidth:!0,autoComplete:"off"})),i&&(s&&r.a.createElement(wa.a,{className:e.props.classes.errorLabel},s)||c&&r.a.createElement(wa.a,{className:e.props.classes.errorLabel},c)))},e.handleSubmit=function(){var a=Object(T.a)(C.a.mark((function a(t){var n,r,o,l,i,s,c,u;return C.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(n=e.props,r=n.loginUser,o=n.formData,l=n.syncErrors,i=n.hideLoginDialog,!F(l)){a.next=3;break}return a.abrupt("return");case 3:return s=o.values,c=s.email,u=s.password,a.next=6,r(c,u);case 6:return a.next=8,i();case 8:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}(),e.handleCancelClicked=Object(T.a)(C.a.mark((function a(){var t;return C.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.props.hideLoginDialog,a.next=3,t();case 3:case"end":return a.stop()}}),a)}))),e}return Object(s.a)(t,[{key:"render",value:function(){var e=this.props,a=e.loginDialog,t=e.classes,n=e.formData,o=e.handleSubmit,l=e.t;return r.a.createElement("div",{className:t.rootDiv},r.a.createElement(da.a,{open:a.visible,className:t.dialog,disableBackdropClick:!0,disableEscapeKeyDown:!0,PaperProps:{style:{width:"fit-content",height:"fit-content",minWidth:500,background:Je.a[900]}}},r.a.createElement(va.a,{onSubmit:o(this.handleSubmit)},r.a.createElement(ga.a,{className:t.dialogTitle},l("loginDialog.dialogTitle")),r.a.createElement(ya.a,{className:t.dialogContent},r.a.createElement(ka.a,{name:"email",type:"text",component:this.renderField,label:l("loginDialog.emailFieldLabel")}),r.a.createElement(ka.a,{name:"password",type:"password",component:this.renderField,label:l("loginDialog.passwordFieldLabel")})),r.a.createElement(Ea.a,null,r.a.createElement(B.a,{type:"submit",disabled:!F(n)||F(n)&&(F(n.syncErrors)||!n.anyTouched),color:"secondary",variant:"contained",style:{minWidth:125}},l("loginDialog.logInButtonText")),r.a.createElement(B.a,{onClick:this.handleCancelClicked,color:"primary",variant:"contained",style:{minWidth:125}},l("loginDialog.cancelButtonText"))))))}}]),t}(n.Component),Na=Object(U.a)((function(e){return{rootDiv:{},dialog:{},dialogTitle:{},dialogContent:{},textField:{background:Je.a[900]},textFieldDiv:{"margin-bottom":e.spacing(2),display:"block",background:Je.a[900]},errorLabel:{color:Sa.a[900],display:"block"}}}))(Ma),La=Object(Ke.a)()(Na),Aa=Object(Oa.a)({form:"loginDialog",validate:function(e){var a=za.validate(e,{abortEarly:!1});if(!a.error)return{};var t,n={},r=Object(h.a)(a.error.details);try{for(r.s();!(t=r.n()).done;){var o=t.value;n[o.path]=o.message}}catch(l){r.e(l)}finally{r.f()}return n}})(La),Ra=Object(d.b)((function(e,a){return{loginDialog:e.loginDialog,formData:e.form.loginDialog}}),{loginUser:function(e,a){return re(function(e,a){return function(){var t=Object(T.a)(C.a.mark((function t(n,r){var o;return C.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ee(e,a);case 2:return o=t.sent,t.next=5,n({type:"LOGIN_USER",payload:{user:o}});case 5:return t.next=7,n(Ne());case 7:if(!F(o.defaultLang)){t.next=10;break}return t.next=10,n(Be(o.defaultLang));case 10:case"end":return t.stop()}}),t)})));return function(e,a){return t.apply(this,arguments)}}()}(e,a),"Niepoprawny email lub has\u0142o")},showLoginDialog:G,hideLoginDialog:H})(Aa),Pa=function(e){Object(c.a)(t,e);var a=Object(u.a)(t);function t(){var e;Object(i.a)(this,t);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return(e=a.call.apply(a,[this].concat(o))).renderField=function(a){var t=a.input,n=a.label,o=a.disabled,l=a.type,i=a.meta,s=i.touched,c=i.error,u=i.warning;return r.a.createElement("div",{className:e.props.classes.textFieldDiv},r.a.createElement(ha.a,Object.assign({className:e.props.classes.textField},t,{placeholder:n,label:n,type:l,disabled:o,fullWidth:!0})),s&&(c&&r.a.createElement(wa.a,{className:e.props.classes.errorLabel},c)||u&&r.a.createElement(wa.a,{className:e.props.classes.errorLabel},u)))},e.handleSubmit=function(){var a=Object(T.a)(C.a.mark((function a(t){return C.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(!I(e.props.formData)||!I(e.props.formData.values)){a.next=3;break}return a.next=3,e.props.changePassword(e.props.formData.values.newPassword,e.props.formData.values.oldPassword);case 3:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}(),e.handleCancelClicked=Object(T.a)(C.a.mark((function a(){return C.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:e.props.hideChangePasswordDialog();case 1:case"end":return a.stop()}}),a)}))),e}return Object(s.a)(t,[{key:"render",value:function(){var e=this.props,a=e.classes,t=e.changePasswordDialog,n=e.formData,o=e.handleSubmit,l=e.t;return r.a.createElement("div",null,r.a.createElement(da.a,{open:t.visible,className:a.dialog,disableBackdropClick:!0,disableEscapeKeyDown:!0,PaperProps:{style:{width:"fit-content",height:"fit-content",minWidth:500,background:Je.a[900]}}},r.a.createElement(va.a,{onSubmit:o(this.handleSubmit)},r.a.createElement(ga.a,{className:a.dialogTitle},l("changePasswordDialog.dialogTitle")),r.a.createElement(ya.a,{className:a.dialogContent},r.a.createElement(ka.a,{name:"newPassword",type:"password",component:this.renderField,label:l("changePasswordDialog.newPasswordFieldLabel")}),r.a.createElement(ka.a,{name:"oldPassword",type:"password",component:this.renderField,label:l("changePasswordDialog.oldPasswordFieldLabel")})),r.a.createElement(Ea.a,null,r.a.createElement(B.a,{type:"submit",disabled:!F(n)||F(n)&&(F(n.syncErrors)||!n.anyTouched),color:"secondary",variant:"contained",style:{minWidth:125}},l("changePasswordDialog.changePasswordButtonText")),r.a.createElement(B.a,{onClick:this.handleCancelClicked,color:"primary",variant:"contained",style:{minWidth:125}},l("changePasswordDialog.cancelButtonText"))))))}}]),t}(n.Component),Ba=Object(U.a)((function(e){return{dialog:{},dialogTitle:{},dialogContent:{},textField:{background:Je.a[900]},textFieldDiv:{"margin-bottom":e.spacing(1),display:"block",background:Je.a[900]},selectField:{},selectFieldDiv:{"margin-bottom":e.spacing(1),display:"block"},errorLabel:{color:Sa.a[900],display:"block"},inputLabel:{}}}))(Pa),_a=Object(Ke.a)()(Ba),Wa=Object(Oa.a)({form:"changePasswordDialog",validate:function(e){var a=xa.validate(e,{abortEarly:!1});if(!a.error)return{};var t,n={},r=Object(h.a)(a.error.details);try{for(r.s();!(t=r.n()).done;){var o=t.value;n[o.path]=o.message}}catch(l){r.e(l)}finally{r.f()}return n}})(_a),Ga=Object(d.b)((function(e,a){return{changePasswordDialog:e.changePasswordDialog,formData:e.form.changePasswordDialog,currentUserData:e.data.currentUserData}}),{hideChangePasswordDialog:_e,changePassword:function(e,a){return function(){var t=Object(T.a)(C.a.mark((function t(n,r){var o,l;return C.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,n({type:"BUSY_DIALOG_SHOW"});case 3:return t.next=5,r();case 5:if(o=t.sent,!I(o.data.currentUserData)){t.next=14;break}return(l=le.a.pick(o.data.currentUserData,"name","email","permissions")).password=e,l.oldPassword=a,t.next=12,n(Ae(l));case 12:return t.next=14,n(_e());case 14:t.next=22;break;case 16:return t.prev=16,t.t0=t.catch(0),console.log(t.t0),"Niew\u0142a\u015bciwe nowe lub stare has\u0142o",t.next=22,n(y({message:"Niew\u0142a\u015bciwe nowe lub stare has\u0142o",options:{variant:"error"}}));case 22:return t.prev=22,t.next=25,n({type:"BUSY_DIALOG_HIDE"});case 25:return t.finish(22);case 26:case"end":return t.stop()}}),t,null,[[0,16,22,26]])})));return function(e,a){return t.apply(this,arguments)}}()}})(Wa),Ha=t(254),Va=function(e){Object(c.a)(t,e);var a=Object(u.a)(t);function t(){var e;Object(i.a)(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=a.call.apply(a,[this].concat(r))).displayed=[],e.storeDisplayed=function(a){e.displayed=[].concat(Object(g.a)(e.displayed),[a])},e}return Object(s.a)(t,[{key:"shouldComponentUpdate",value:function(e){var a=this,t=e.notifications,n=void 0===t?[]:t;if(!n.length)return this.displayed=[],!1;for(var r=this.props.notifications,o=!1,l=function(e){var t=n[e];if(t.dismissed&&(a.props.closeSnackbar(t.key),a.props.removeSnackbar(t.key)),o)return"continue";o=o||!r.filter((function(e){var a=e.key;return t.key===a})).length},i=0;i<n.length;i+=1)l(i);return o}},{key:"componentDidUpdate",value:function(){var e=this,a=this.props.notifications;(void 0===a?[]:a).forEach((function(a){var t=a.key,n=a.message,r=a.options,o=void 0===r?{}:r;e.displayed.includes(t)||(e.props.enqueueSnackbar(n,Object(f.a)(Object(f.a)({},o),{},{onClose:function(a,t,n){o.onClose&&o.onClose(a,t,n),e.props.removeSnackbar(n)}})),e.storeDisplayed(t))}))}},{key:"render",value:function(){return null}}]),t}(n.Component),qa=Object(Ha.b)(Object(d.b)((function(e){return{notifications:e.snackbar.notifications}}),(function(e){return Object(p.b)({removeSnackbar:E},e)}))(Va)),Ya=t(728),Za=t(729),Ja=t(255),Ka=t.n(Ja),Xa=function(e){Object(c.a)(t,e);var a=Object(u.a)(t);function t(){var e;Object(i.a)(this,t);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return(e=a.call.apply(a,[this].concat(o))).componentDidMount=Object(T.a)(C.a.mark((function a(){return C.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,e.props.fetchCurrentUserData();case 2:case"end":return a.stop()}}),a)}))),e.renderFileExistsColumn=function(a){var t=e.props.t;return a.fileExists?r.a.createElement(R.a,{className:e.props.classes.fileExistsTypography,color:"inherit"},r.a.createElement(Ya.a,{className:e.props.classes.fileExistsIcon}),r.a.createElement("span",{className:e.props.classes.fileExistsText},t("currentUserOverview.fileCellLabel.fileAvailable"))):r.a.createElement(R.a,{className:e.props.classes.fileExistsTypography,color:"secondary"},r.a.createElement(Za.a,{className:e.props.classes.fileNotExistsIcon}),r.a.createElement("span",{className:e.props.classes.fileNotExistsText},t("currentUserOverview.fileCellLabel.fileUnavailable")))},e.renderIOSFileExistsColumn=function(a){var t=e.props.t;return a.iosFileExists?r.a.createElement(R.a,{className:e.props.classes.fileExistsTypography,color:"inherit"},r.a.createElement(Ya.a,{className:e.props.classes.fileExistsIcon}),r.a.createElement("span",{className:e.props.classes.fileExistsText},t("currentUserOverview.fileCellLabel.fileAvailable"))):r.a.createElement(R.a,{className:e.props.classes.fileExistsTypography,color:"secondary"},r.a.createElement(Za.a,{className:e.props.classes.fileNotExistsIcon}),r.a.createElement("span",{className:e.props.classes.fileNotExistsText},t("currentUserOverview.fileCellLabel.fileUnavailable")))},e}return Object(s.a)(t,[{key:"render",value:function(){var e=this.props,a=e.classes,t=e.currentUserData,n=e.t,o=I(t)&&I(t.models)?Object.values(t.models):[];return r.a.createElement("div",{className:a.tableRootDiv},r.a.createElement(Ka.a,{style:{background:Je.a[900]},columns:[{title:n("currentUserOverview.mainTable.modelNameColumnName"),field:"name"},{title:n("currentUserOverview.mainTable.androidFileColumnName"),field:"fileExists",render:this.renderFileExistsColumn},{title:n("currentUserOverview.mainTable.iosFileColumname"),field:"iosFileExists",render:this.renderIOSFileExistsColumn}],data:o,title:n("currentUserOverview.mainTable.tableTitle"),options:{headerStyle:{fontWeight:"bold",textAlign:"left",background:Je.a[900],fontSize:16},padding:"dense",sorting:!1,draggable:!1,pageSize:10,pageSizeOptions:[10,20,30]},localization:{pagination:{labelDisplayedRows:n("currentUserOverview.mainTable.localization.pagination.labelDisplayedRows"),labelRowsSelect:n("currentUserOverview.mainTable.localization.pagination.labelRowsSelect"),previousAriaLabel:n("currentUserOverview.mainTable.localization.pagination.previousAriaLabel"),previousTooltip:n("currentUserOverview.mainTable.localization.pagination.previousTooltip"),nextAriaLabel:n("currentUserOverview.mainTable.localization.pagination.nextAriaLabel"),nextTooltip:n("currentUserOverview.mainTable.localization.pagination.nextTooltip"),firstTooltip:n("currentUserOverview.mainTable.localization.pagination.firstTooltip"),lastTooltip:n("currentUserOverview.mainTable.localization.pagination.lastTooltip")},toolbar:{exportTitle:n("currentUserOverview.mainTable.localization.toolbar.exportTitle"),exportAriaLabel:n("currentUserOverview.mainTable.localization.toolbar.exportAriaLabel"),exportName:n("currentUserOverview.mainTable.localization.toolbar.exportName"),searchTooltip:n("currentUserOverview.mainTable.localization.toolbar.searchTooltip"),searchPlaceholder:n("currentUserOverview.mainTable.localization.toolbar.searchPlaceholder")},body:{emptyDataSourceMessage:n("currentUserOverview.mainTable.localization.body.emptyDataSourceMessage")}}}))}}]),t}(n.Component),Qa=Object(U.a)((function(e){return{tableRootDiv:{margin:e.spacing(2)},fileExistsTypography:{},fileExistsIcon:{verticalAlign:"middle",display:"inline-flex",margin:e.spacing(1)},fileExistsText:{verticalAlign:"middle",display:"inline-flex"},fileNotExistsIcon:{verticalAlign:"middle",display:"inline-flex",margin:e.spacing(1)},fileNotExistsText:{verticalAlign:"middle",display:"inline-flex"}}}))(Xa),$a=Object(Ke.a)()(Qa),et=Object(d.b)((function(e,a){return{currentUserData:e.data.currentUserData}}),{fetchCurrentUserData:Le})($a),at=t(47),tt=t(691),nt=function(e){Object(c.a)(t,e);var a=Object(u.a)(t);function t(){var e;Object(i.a)(this,t);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return(e=a.call.apply(a,[this].concat(o))).renderAccessForbiddenComponent=function(){var a=e.props.t;return r.a.createElement(R.a,{className:e.props.classes.accessForbiddenTypography,variant:"h4"},a("accessForbiddenContent.mainText"))},e}return Object(s.a)(t,[{key:"checkIfUserLoggedIn",value:function(){var e=this.props.currentUser;return I(e)}},{key:"checkUsersPermissons",value:function(){var e=this.props,a=e.permissionsBit,t=e.currentUser;return!F(a)||S(t.permissions,a)}},{key:"render",value:function(){var e=this,a=this.props,t=a.path,n=a.component,o=a.render,l=a.showLoginDialog,i=a.enqueueSnackbar,s=a.t;return r.a.createElement(at.b,{path:t,render:function(a){if(!e.checkIfUserLoggedIn()){var t=te();return I(t)||l(),e.renderAccessForbiddenComponent()}return e.checkUsersPermissons()?n?r.a.createElement(n,a):o(a):(i({message:s("accessForbiddenContent.errorMessage"),options:{variant:"error"}}),e.renderAccessForbiddenComponent())}})}}]),t}(n.Component),rt=Object(tt.a)((function(e){return{accessForbiddenTypography:{margin:e.spacing(3)}}}))(nt),ot=Object(Ke.a)()(rt),lt=Object(d.b)((function(e,a){return{currentUser:e.auth.currentUser}}),{showLoginDialog:G,hideLoginDialog:H,enqueueSnackbar:y})(ot),it=function(e){Object(c.a)(t,e);var a=Object(u.a)(t);function t(){var e;Object(i.a)(this,t);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return(e=a.call.apply(a,[this].concat(o))).renderPPText=function(){var a=e.props.classes;return r.a.createElement("div",{className:a.mainDiv},r.a.createElement(R.a,{variant:"h3"},"Polityka prywatno\u015bci - serwis internetowy"),r.a.createElement("hr",null),r.a.createElement(R.a,{variant:"h5"},"Polityka prywatno\u015bci opisuje zasady przetwarzania przez nas informacji na Tw\xf3j temat, w tym danych osobowych oraz ciasteczek, czyli tzw. cookies."),r.a.createElement("hr",null),r.a.createElement("div",null,r.a.createElement(R.a,{variant:"h4"},"1. Informacje og\xf3lne"),r.a.createElement("ol",null,r.a.createElement("li",null,r.a.createElement(R.a,null,"Niniejsza polityka dotyczy Serwisu www, funkcjonuj\u0105cego pod adresem url: ",r.a.createElement("b",null,"sidiro.pl"))),r.a.createElement("li",null,r.a.createElement(R.a,null,"Operatorem serwisu oraz Administratorem danych osobowych jest: Witold Kolaj OKM, 06-500, M\u0142awa")),r.a.createElement("li",null,r.a.createElement(R.a,null,"Adres kontaktowy poczty elektronicznej operatora: WKolaj@gmail.com")),r.a.createElement("li",null,r.a.createElement(R.a,null,"Operator jest Administratorem Twoich danych osobowych w odniesieniu do danych podanych dobrowolnie w Serwisie.")),r.a.createElement("li",null,r.a.createElement(R.a,null,"Serwis wykorzystuje dane osobowe w nast\u0119puj\u0105cych celach:")),r.a.createElement("ul",null,r.a.createElement("li",null,r.a.createElement(R.a,null,"Prowadzenie newslettera")),r.a.createElement("li",null,r.a.createElement(R.a,null,"Obs\u0142uga zapyta\u0144 przez formularz")),r.a.createElement("li",null,r.a.createElement(R.a,null,"Obs\u0142uga zam\xf3wie\u0144 towar\xf3w - przygotowanie, pakowanie, wysy\u0142ka")),r.a.createElement("li",null,r.a.createElement(R.a,null,"Realizacja zam\xf3wionych us\u0142ug")),r.a.createElement("li",null,r.a.createElement(R.a,null,"Obs\u0142uga odpowiednich dokument\xf3w ksi\u0119gowych")),r.a.createElement("li",null,r.a.createElement(R.a,null,"Windykacja nale\u017cno\u015bci")),r.a.createElement("li",null,r.a.createElement(R.a,null,"Prezentacja oferty lub informacji")),r.a.createElement("li",null,r.a.createElement(R.a,null,"Wykonanie przez Administratora danych osobowych prawnie ci\u0105\u017c\u0105cych na nim obowi\u0105zk\xf3w zgodnie z art. 6 ust. 1 lit. c) RODO w zakresie w jakim przewiduj\u0105 to przepisy szczeg\xf3lne (np. prowadzenie ksi\u0119gowo\u015bci)."))),r.a.createElement("li",null,r.a.createElement(R.a,null,"Serwis realizuje funkcje pozyskiwania informacji o u\u017cytkownikach i ich zachowaniu w nast\u0119puj\u0105cy spos\xf3b:"),r.a.createElement("ol",null,r.a.createElement("li",null,r.a.createElement(R.a,null,"Poprzez dobrowolnie wprowadzone w formularzach dane, kt\xf3re zostaj\u0105 wprowadzone do system\xf3w Operatora.")),r.a.createElement("li",null,r.a.createElement(R.a,null,"Poprzez zapisywanie w urz\u0105dzeniach ko\u0144cowych plik\xf3w cookie (tzw. \u201eciasteczka\u201d)."))))),r.a.createElement("h2",{className:"pb-12"},r.a.createElement("strong",null,r.a.createElement(R.a,{variant:"h4"},"2. Wybrane metody ochrony danych stosowane przez Operatora"))),r.a.createElement("ol",null,r.a.createElement("li",null,r.a.createElement(R.a,null,"Miejsca logowania i wprowadzania danych osobowych s\u0105 chronione w warstwie transmisji (certyfikat SSL). Dzi\u0119ki temu dane osobowe i dane logowania, wprowadzone na stronie, zostaj\u0105 zaszyfrowane w komputerze u\u017cytkownika i mog\u0105 by\u0107 odczytane jedynie na docelowym serwerze.")),r.a.createElement("li",null,r.a.createElement(R.a,null,"Has\u0142a u\u017cytkownik\xf3w s\u0105 przechowywane w postaci hashowanej. Funkcja hashuj\u0105ca dzia\u0142a jednokierunkowo - nie jest mo\u017cliwe odwr\xf3cenie jej dzia\u0142ania, co stanowi obecnie wsp\xf3\u0142czesny standard w zakresie przechowywania hase\u0142 u\u017cytkownik\xf3w."))),r.a.createElement("h2",{className:"pb-12"},r.a.createElement(R.a,{variant:"h4"},"3. Hosting")),r.a.createElement("ol",null,r.a.createElement("li",null,r.a.createElement(R.a,null,"Serwis jest hostowany (technicznie utrzymywany) na serwera operatora: nazwa.pl"))),r.a.createElement("h2",{className:"pb-12"},r.a.createElement(R.a,{variant:"h4"},"4. Twoje prawa i dodatkowe informacje o sposobie wykorzystania danych")),r.a.createElement("ol",null,r.a.createElement("li",null,r.a.createElement(R.a,null,"W niekt\xf3rych sytuacjach Administrator ma prawo przekazywa\u0107 Twoje dane osobowe innym odbiorcom, je\u015bli b\u0119dzie to niezb\u0119dne do wykonania zawartej z Tob\u0105 umowy lub do zrealizowania obowi\u0105zk\xf3w ci\u0105\u017c\u0105cych na Administratorze. Dotyczy to takich grup odbiorc\xf3w:"),r.a.createElement("ul",null,r.a.createElement("li",null,r.a.createElement(R.a,null,"osoby upowa\u017cnione przez nas, pracownicy i wsp\xf3\u0142prcownicy, kt\xf3rzy musz\u0105 mie\u0107 dost\u0119p do danych osobowych w celu wykonywania swoich obowi\u0105zk\xf3w,")),r.a.createElement("li",null,r.a.createElement(R.a,null,"firma hostingowa,")),r.a.createElement("li",null,r.a.createElement(R.a,null,"firmy obs\u0142uguj\u0105ca mailingi,")),r.a.createElement("li",null,r.a.createElement(R.a,null,"firmy obs\u0142uguj\u0105ca komunikaty SMS,")),r.a.createElement("li",null,r.a.createElement(R.a,null,"firmy, z kt\xf3rymi Administrator wsp\xf3\u0142pracuje w zakresie marketingu w\u0142asnego,")),r.a.createElement("li",null,r.a.createElement(R.a,null,"kurierzy,")),r.a.createElement("li",null,r.a.createElement(R.a,null,"ubezpieczyciele,")),r.a.createElement("li",null,r.a.createElement(R.a,null,"kancelarie prawne i windykatorzy,")),r.a.createElement("li",null,r.a.createElement(R.a,null,"banki,")),r.a.createElement("li",null,r.a.createElement(R.a,null,"operatorzy p\u0142atno\u015bci,")),r.a.createElement("li",null,r.a.createElement(R.a,null,"organy publiczne.")))),r.a.createElement("li",null,r.a.createElement(R.a,null,"Twoje dane osobowe przetwarzane przez Administratora nie d\u0142u\u017cej, ni\u017c jest to konieczne do wykonania zwi\u0105zanych z nimi czynno\u015bci okre\u015blonych osobnymi przepisami (np. o prowadzeniu rachunkowo\u015bci). W odniesieniu do danych marketingowych dane nie b\u0119d\u0105 przetwarzane d\u0142u\u017cej ni\u017c przez 3 lata.")),r.a.createElement("li",null,r.a.createElement(R.a,null,"Przys\u0142uguje Ci prawo \u017c\u0105dania od Administratora:"),r.a.createElement("ul",null,r.a.createElement("li",null,r.a.createElement(R.a,null,"dost\u0119pu do danych osobowych Ciebie dotycz\u0105cych,")),r.a.createElement("li",null,r.a.createElement(R.a,null,"ich sprostowania,")),r.a.createElement("li",null,r.a.createElement(R.a,null,"usuni\u0119cia,")),r.a.createElement("li",null,r.a.createElement(R.a,null,"ograniczenia przetwarzania,")),r.a.createElement("li",null,r.a.createElement(R.a,null,"oraz przenoszenia danych.")))),r.a.createElement("li",null,r.a.createElement(R.a,null,"Przys\u0142uguje Ci prawo do z\u0142o\u017cenia sprzeciwu w zakresie przetwarzania wskazanego w pkt 3.3 c) wobec przetwarzania danych osobowych w celu wykonania prawnie uzasadnionych interes\xf3w realizowanych przez Administratora, w tym profilowania, przy czym prawo sprzeciwu nie b\u0119dzie mog\u0142o by\u0107 wykonane w przypadku istnienia wa\u017cnych prawnie uzasadnionych podstaw do przetwarzania, nadrz\u0119dnych wobec Ciebie interes\xf3w, praw i wolno\u015bci, w szczeg\xf3lno\u015bci ustalenia, dochodzenia lub obrony roszcze\u0144.")),r.a.createElement("li",null,r.a.createElement(R.a,null,"Na dzia\u0142ania Administratora przys\u0142uguje skarga do Prezesa Urz\u0119du Ochrony Danych Osobowych, ul. Stawki 2, 00-193 Warszawa.")),r.a.createElement("li",null,r.a.createElement(R.a,null,"Podanie danych osobowych jest dobrowolne, lecz niezb\u0119dne do obs\u0142ugi Serwisu.")),r.a.createElement("li",null,r.a.createElement(R.a,null,"W stosunku do Ciebie mog\u0105 by\u0107 podejmowane czynno\u015bci polegaj\u0105ce na zautomatyzowanym podejmowaniu decyzji, w tym profilowaniu w celu \u015bwiadczenia us\u0142ug w ramach zawartej umowy oraz w celu prowadzenia przez Administratora marketingu bezpo\u015bredniego.")),r.a.createElement("li",null,r.a.createElement(R.a,null,"Dane osobowe nie s\u0105 przekazywane od kraj\xf3w trzecich w rozumieniu przepis\xf3w o ochronie danych osobowych. Oznacza to, \u017ce nie przesy\u0142amy ich poza teren Unii Europejskiej."))),r.a.createElement("h2",{className:"pb-12"},r.a.createElement("strong",null,r.a.createElement(R.a,{variant:"h4"},"5. Informacje w formularzach"))),r.a.createElement("ol",null,r.a.createElement("li",null,r.a.createElement(R.a,null,"Serwis zbiera informacje podane dobrowolnie przez u\u017cytkownika, w tym dane osobowe, o ile zostan\u0105 one podane.")),r.a.createElement("li",null,r.a.createElement(R.a,null,"Serwis mo\u017ce zapisa\u0107 informacje o parametrach po\u0142\u0105czenia (oznaczenie czasu, adres IP).")),r.a.createElement("li",null,r.a.createElement(R.a,null,"Serwis, w niekt\xf3rych wypadkach, mo\u017ce zapisa\u0107 informacj\u0119 u\u0142atwiaj\u0105c\u0105 powi\u0105zanie danych w formularzu z adresem e-mail u\u017cytkownika wype\u0142niaj\u0105cego formularz. W takim wypadku adres e-mail u\u017cytkownika pojawia si\u0119 wewn\u0105trz adresu url strony zawieraj\u0105cej formularz.")),r.a.createElement("li",null,r.a.createElement(R.a,null,"Dane podane w formularzu s\u0105 przetwarzane w celu wynikaj\u0105cym z funkcji konkretnego formularza, np. w celu dokonania procesu obs\u0142ugi zg\u0142oszenia serwisowego lub kontaktu handlowego, rejestracji us\u0142ug itp. Ka\u017cdorazowo kontekst i opis formularza w czytelny spos\xf3b informuje, do czego on s\u0142u\u017cy."))),r.a.createElement("h2",{className:"pb-12"},r.a.createElement(R.a,{variant:"h4"},"6. Logi Administratora")),r.a.createElement("ol",null,r.a.createElement("li",null,r.a.createElement(R.a,null,"Informacje zachowaniu u\u017cytkownik\xf3w w serwisie mog\u0105 podlega\u0107 logowaniu. Dane te s\u0105 wykorzystywane w celu administrowania serwisem."))),r.a.createElement("h2",{className:"pb-12"},r.a.createElement("strong",null,r.a.createElement(R.a,{variant:"h4"},"7. Istotne techniki marketingowe"))),r.a.createElement("ol",null,r.a.createElement("li",null,r.a.createElement(R.a,null,"Operator stosuje analiz\u0119 statystyczn\u0105 ruchu na stronie, poprzez Google Analytics (Google Inc. z siedzib\u0105 w USA). Operator nie przekazuje do operatora tej us\u0142ugi danych osobowych, a jedynie zanonimizowane informacje. Us\u0142uga bazuje na wykorzystaniu ciasteczek w urz\u0105dzeniu ko\u0144cowym u\u017cytkownika. W zakresie informacji o preferencjach u\u017cytkownika gromadzonych przez sie\u0107 reklamow\u0105 Google u\u017cytkownik mo\u017ce przegl\u0105da\u0107 i edytowa\u0107 informacje wynikaj\u0105ce z plik\xf3w cookies przy pomocy narz\u0119dzia: https://www.google.com/ads/preferences/")),r.a.createElement("li",null,r.a.createElement(R.a,null,"Operator stosuje techniki remarketingowe, pozwalaj\u0105ce na dopasowanie przekaz\xf3w reklamowych do zachowania u\u017cytkownika na stronie, co mo\u017ce dawa\u0107 z\u0142udzenie, \u017ce dane osobowe u\u017cytkownika s\u0105 wykorzystywane do jego \u015bledzenia, jednak w praktyce nie dochodzi do przekazania \u017cadnych danych osobowych od Operatora do operatorom reklam. Technologicznym warunkiem takich dzia\u0142a\u0144 jest w\u0142\u0105czona obs\u0142uga plik\xf3w cookie.")),r.a.createElement("li",null,r.a.createElement(R.a,null,"Operator stosuje korzysta z piksela Facebooka. Ta technologia powoduje, \u017ce serwis Facebook (Facebook Inc. z siedzib\u0105 w USA) wie, \u017ce dana osoba w nim zarejestrowana korzysta z Serwisu. Bazuje w tym wypadku na danych, wobec kt\xf3rych sam jest administratorem, Operator nie przekazuje od siebie \u017cadnych dodatkowych danych osobowych serwisowi Facebook. Us\u0142uga bazuje na wykorzystaniu ciasteczek w urz\u0105dzeniu ko\u0144cowym u\u017cytkownika.")),r.a.createElement("li",null,r.a.createElement(R.a,null,"Operator stosuje rozwi\u0105zanie badaj\u0105ce zachowanie u\u017cytkownik\xf3w poprzez tworzenie map ciep\u0142a oraz nagrywanie zachowania na stronie. Te informacje s\u0105 anonimizowane zanim zostan\u0105 przes\u0142ane do operatora us\u0142ugi tak, \u017ce nie wie on jakiej osoby fizycznej one dotycz\u0105. W szczeg\xf3lno\u015bci nagrywaniu nie podlegaj\u0105 wpisywane has\u0142a oraz inne dane osobowe.")),r.a.createElement("li",null,r.a.createElement(R.a,null,"Operator stosuje rozwi\u0105zanie automatyzuj\u0105ce dzia\u0142anie Serwisu w odniesieniu do u\u017cytkownik\xf3w, np. mog\u0105ce przes\u0142a\u0107 maila do u\u017cytkownika po odwiedzeniu konkretnej podstrony, o ile wyrazi\u0142 on zgod\u0119 na otrzymywanie korespondencji handlowej od Operatora.")),r.a.createElement("li",null,r.a.createElement(R.a,null,"Operator mo\u017ce stosowa\u0107 profilowanie w rozumieniu przepis\xf3w o ochronie danych osobowych"))),r.a.createElement("h2",{className:"pb-12"},r.a.createElement("strong",null,r.a.createElement(R.a,{variant:"h4"},"8. Informacja o plikach cookies"))),r.a.createElement("ol",null,r.a.createElement("li",null,r.a.createElement(R.a,null,"Serwis korzysta z plik\xf3w cookies.")),r.a.createElement("li",null,r.a.createElement(R.a,null,"Pliki cookies (tzw. \u201eciasteczka\u201d) stanowi\u0105 dane informatyczne, w szczeg\xf3lno\u015bci pliki tekstowe, kt\xf3re przechowywane s\u0105 w urz\u0105dzeniu ko\u0144cowym U\u017cytkownika Serwisu i przeznaczone s\u0105 do korzystania ze stron internetowych Serwisu. Cookies zazwyczaj zawieraj\u0105 nazw\u0119 strony internetowej, z kt\xf3rej pochodz\u0105, czas przechowywania ich na urz\u0105dzeniu ko\u0144cowym oraz unikalny numer.")),r.a.createElement("li",null,r.a.createElement(R.a,null,"Podmiotem zamieszczaj\u0105cym na urz\u0105dzeniu ko\u0144cowym U\u017cytkownika Serwisu pliki cookies oraz uzyskuj\u0105cym do nich dost\u0119p jest operator Serwisu.")),r.a.createElement("li",null,r.a.createElement(R.a,null,"Pliki cookies wykorzystywane s\u0105 w nast\u0119puj\u0105cych celach:"),r.a.createElement("ol",null,r.a.createElement("li",null,r.a.createElement(R.a,null,"utrzymanie sesji u\u017cytkownika Serwisu (po zalogowaniu), dzi\u0119ki kt\xf3rej u\u017cytkownik nie musi na ka\u017cdej podstronie Serwisu ponownie wpisywa\u0107 loginu i has\u0142a;")),r.a.createElement("li",null,r.a.createElement(R.a,null,'realizacji cel\xf3w okre\u015blonych powy\u017cej w cz\u0119\u015bci "Istotne techniki marketingowe";')))),r.a.createElement("li",null,r.a.createElement(R.a,null,"W ramach Serwisu stosowane s\u0105 dwa zasadnicze rodzaje plik\xf3w cookies: \u201esesyjne\u201d (session cookies) oraz \u201esta\u0142e\u201d (persistent cookies). Cookies \u201esesyjne\u201d s\u0105 plikami tymczasowymi, kt\xf3re przechowywane s\u0105 w urz\u0105dzeniu ko\u0144cowym U\u017cytkownika do czasu wylogowania, opuszczenia strony internetowej lub wy\u0142\u0105czenia oprogramowania (przegl\u0105darki internetowej). \u201eSta\u0142e\u201d pliki cookies przechowywane s\u0105 w urz\u0105dzeniu ko\u0144cowym U\u017cytkownika przez czas okre\u015blony w parametrach plik\xf3w cookies lub do czasu ich usuni\u0119cia przez U\u017cytkownika.")),r.a.createElement("li",null,r.a.createElement(R.a,null,"Oprogramowanie do przegl\u0105dania stron internetowych (przegl\u0105darka internetowa) zazwyczaj domy\u015blnie dopuszcza przechowywanie plik\xf3w cookies w urz\u0105dzeniu ko\u0144cowym U\u017cytkownika. U\u017cytkownicy Serwisu mog\u0105 dokona\u0107 zmiany ustawie\u0144 w tym zakresie.\xa0Przegl\u0105darka internetowa umo\u017cliwia usuni\u0119cie plik\xf3w cookies. Mo\u017cliwe jest tak\u017ce automatyczne blokowanie plik\xf3w cookies Szczeg\xf3\u0142owe informacje na ten temat zawiera pomoc lub dokumentacja przegl\u0105darki internetowej.")),r.a.createElement("li",null,r.a.createElement(R.a,null,"Ograniczenia stosowania plik\xf3w cookies mog\u0105 wp\u0142yn\u0105\u0107 na niekt\xf3re funkcjonalno\u015bci dost\u0119pne na stronach internetowych Serwisu.")),r.a.createElement("li",null,r.a.createElement(R.a,null,"Pliki cookies zamieszczane w urz\u0105dzeniu ko\u0144cowym U\u017cytkownika Serwisu wykorzystywane mog\u0105 by\u0107 r\xf3wnie\u017c przez wsp\xf3\u0142pracuj\u0105ce z operatorem Serwisu podmioty, w szczeg\xf3lno\u015bci dotyczy to firm: Google (Google Inc. z siedzib\u0105 w USA), Facebook (Facebook Inc. z siedzib\u0105 w USA), Twitter (Twitter Inc. z siedzib\u0105 w USA)."))),r.a.createElement("h2",{className:"pb-12"},r.a.createElement("strong",null,r.a.createElement(R.a,{variant:"h4"},"9. Zarz\u0105dzanie plikami cookies \u2013 jak w praktyce wyra\u017ca\u0107 i cofa\u0107 zgod\u0119?"))),r.a.createElement("ol",null,r.a.createElement("li",null,r.a.createElement(R.a,null,"Je\u015bli u\u017cytkownik nie chce otrzymywa\u0107 plik\xf3w cookies, mo\u017ce zmieni\u0107 ustawienia przegl\u0105darki. Zastrzegamy, \u017ce wy\u0142\u0105czenie obs\u0142ugi plik\xf3w cookies niezb\u0119dnych dla proces\xf3w uwierzytelniania, bezpiecze\u0144stwa, utrzymania preferencji u\u017cytkownika mo\u017ce utrudni\u0107,\xa0a w skrajnych przypadkach mo\u017ce uniemo\u017cliwi\u0107 korzystanie ze stron www")),r.a.createElement("li",null,r.a.createElement(R.a,null,"W celu zarz\u0105dzania ustawienia cookies wybierz z listy poni\u017cej przegl\u0105dark\u0119 internetow\u0105, kt\xf3rej u\u017cywasz i post\u0119puj zgodnie z instrukcjami:"),r.a.createElement("ul",null,r.a.createElement("li",null,r.a.createElement("a",{className:a.link,href:"https://support.microsoft.com/pl-pl/help/10607/microsoft-edge-view-delete-browser-history"},"Edge")),r.a.createElement("li",null,r.a.createElement("a",{className:a.link,href:"https://support.microsoft.com/pl-pl/help/278835/how-to-delete-cookie-files-in-internet-explorer"},"Internet Explorer")),r.a.createElement("li",null,r.a.createElement("a",{className:a.link,href:"http://support.google.com/chrome/bin/answer.py?hl=pl&answer=95647"},"Chrome")),r.a.createElement("li",null,r.a.createElement("a",{className:a.link,href:"http://support.apple.com/kb/PH5042"},"Safari")),r.a.createElement("li",null,r.a.createElement("a",{className:a.link,href:"http://support.mozilla.org/pl/kb/W%C5%82%C4%85czanie%20i%20wy%C5%82%C4%85czanie%20obs%C5%82ugi%20ciasteczek"},"Firefox")),r.a.createElement("li",null,r.a.createElement("a",{className:a.link,href:"http://help.opera.com/Windows/12.10/pl/cookies.html"},"Opera"))),r.a.createElement("p",null,r.a.createElement(R.a,null,"Urz\u0105dzenia mobilne:")),r.a.createElement("ul",null,r.a.createElement("li",null,r.a.createElement("a",{className:a.link,href:"http://support.google.com/chrome/bin/answer.py?hl=pl&answer=95647"},"Android")),r.a.createElement("li",null,r.a.createElement("a",{className:a.link,href:"http://support.apple.com/kb/HT1677?viewlocale=pl_PL"},"Safari (iOS)")),r.a.createElement("li",null,r.a.createElement("a",{className:a.link,href:"http://www.windowsphone.com/pl-pl/how-to/wp7/web/changing-privacy-and-other-browser-settings"},"Windows Phone")))))),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(R.a,{variant:"h3"},"Polityka prywatno\u015bci - aplikacja mobilna"),r.a.createElement("div",null,r.a.createElement("ol",null,r.a.createElement("li",null,r.a.createElement(R.a,null,'Niniejszy dokument opisuje Polityk\u0119 Prywatno\u015bci aplikacji mobilnej SidiroAR (dalej \u201ePolityka Prywatno\u015bci").')),r.a.createElement("li",null,r.a.createElement(R.a,null,"Alikacja SidiroAR, jest instalowana na urz\u0105dzeniach mobilnych, w szczeg\xf3lno\u015bci na telefonach kom\xf3rkowych i tabletach i po uprzednim pobraniu Aplikacji przez u\u017cytkownika za po\u015brednictwem sklepu Play (Android)).")),r.a.createElement("li",null,r.a.createElement(R.a,null,"Korzystanie z Aplikacji wymaga posiadania urz\u0105dzenia mobilnego z systemem Android oraz po\u0142\u0105czenia z Internetem w postaci w\u0142\u0105czonego pakietu transmisji danych lub w\u0142\u0105czonego po\u0142\u0105czenia wi-fi.")),r.a.createElement("li",null,r.a.createElement(R.a,null,"Korzystanie z Aplikacji wymaga rejestracji w serwisie sidiro.pl. Polityka prywatno\u015bci serwisu sidiro.pl zosta\u0142a przedstawiona powy\u017cej")),r.a.createElement("li",null,r.a.createElement(R.a,null,"W przypadku braku akceptacji na zasady Polityki Prywatno\u015bci prosimy nie instalowa\u0107 Aplikacji lub j\u0105 odinstalowa\u0107. Trwa\u0142e usuni\u0119cie Aplikacji z urz\u0105dzenia mobilnego jest r\xf3wnoznaczne z zako\u0144czeniem korzystania z Aplikacji.")),r.a.createElement("li",null,r.a.createElement(R.a,null,"Polityka Prywatno\u015bci ma jedynie charakter uzupe\u0142niaj\u0105cy w stosunku do polityki prywatno\u015bci Google Play Store. Witold Kolaj nie ponosi jakiejkolwiek odpowiedzialno\u015bci za polityk\u0119 prywatno\u015bci realizowan\u0105 przez podmioty zarz\u0105dzaj\u0105ce aplikacjami Google Play store, Apple Appstore i Microsoft Store oraz przestrzeganie przez nie przepis\xf3w Rozporz\u0105dzenia Parlamentu Europejskiego i Rady (UE) 2016/679 z dnia 27 kwietnia 2016 r. w sprawie ochrony os\xf3b fizycznych w zwi\u0105zku z przetwarzaniem danych osobowych i w sprawie swobodnego przep\u0142ywu takich danych oraz uchylenia dyrektywy 95/46/WE (Dz. Urz. UE L 119 z 2016 r., str. 1-88), ustawy z dnia z dnia 10 maja 2018 r. o ochronie danych osobowych (t.j. Dz.U.2018.1000) oraz ustawy z dnia 18 lipca 2002 r. o \u015bwiadczeniu us\u0142ug drog\u0105 elektroniczn\u0105 (t.j. Dz.U.2017.1219) w ramach Google Play store , Apple Appstore oraz Microsoft Store.")),r.a.createElement("li",null,r.a.createElement(R.a,null,"W przypadku pyta\u0144 lub w\u0105tpliwo\u015bci prosimy o kontakt na: WKolaj@gmail.com")))))},e}return Object(s.a)(t,[{key:"render",value:function(){return this.renderPPText()}}]),t}(n.Component),st=Object(tt.a)((function(e){return{mainDiv:{margin:e.spacing(4)},link:{textDecoration:"none",color:"inherit"}}}))(it),ct=Object(d.b)((function(e,a){return{}}),{})(st),ut=t(87),dt=t(727),pt=t(693),mt=t(694),bt=t(731),ft=t(732),ht=t(730),wt=t(451),gt=t.n(wt),yt=function(e){Object(c.a)(t,e);var a=Object(u.a)(t);function t(){var e;Object(i.a)(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=a.call.apply(a,[this].concat(r))).checkMenuItemDisabled=function(a){var t=e.props.currentUser;return!!I(t)&&(!!F(t.permissions)&&!S(t.permissions,a))},e}return Object(s.a)(t,[{key:"render",value:function(){var e=this,a=this.props,t=a.mainMenu,n=a.classes,o=a.hideMainMenu,l=a.showLanguageDialog,i=a.t;return r.a.createElement(ut.a,{open:t.visible,variant:"permanent",classes:{paper:Object(M.a)(n.drawerPaper,!t.visible&&n.drawerPaperClose)}},r.a.createElement("div",{className:n.toolbarIcon},r.a.createElement("img",{className:n.logo,src:gt.a,alt:"Siemens"}),r.a.createElement(A.a,{onClick:o},r.a.createElement(ht.a,null))),r.a.createElement(dt.a,null),r.a.createElement(pt.a,{className:n.menuList},r.a.createElement(z.b,{className:n.menuItemLink,to:"/sidiroar/me",onClick:function(a){return e.checkMenuItemDisabled(0)?a.preventDefault():a}},r.a.createElement(mt.a,{className:n.menuItem,button:!0,disabled:this.checkMenuItemDisabled(0)},r.a.createElement(qe.a,null,r.a.createElement(V.a,null)),r.a.createElement(Ye.a,{primary:i("mainMenu.myModelsText")}))),r.a.createElement(z.b,{className:n.menuItemLink,to:"/sidiroar/users",onClick:function(a){return e.checkMenuItemDisabled(1)?a.preventDefault():a}},r.a.createElement(mt.a,{button:!0,disabled:this.checkMenuItemDisabled(1)},r.a.createElement(qe.a,null,r.a.createElement(bt.a,null)),r.a.createElement(Ye.a,{primary:i("mainMenu.usersText")}))),r.a.createElement(mt.a,{button:!0,onClick:l},r.a.createElement(qe.a,null,r.a.createElement(ft.a,null)),r.a.createElement(Ye.a,{primary:i("mainMenu.languageText")}))))}}]),t}(n.Component),Et=Object(tt.a)((function(e){return{drawerPaper:{position:"relative",whiteSpace:"nowrap",width:240,background:Je.a[900],transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen})},drawerPaperClose:Object(w.a)({overflowX:"hidden",transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),width:e.spacing(7)},e.breakpoints.up("sm"),{width:e.spacing(9)}),toolbarIcon:Object(f.a)({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 8px"},e.mixins.toolbar),menuList:{"padding-left":8},menuItemLink:{textDecoration:"none",color:"inherit"},menuItem:{},logo:{height:50,"margin-left":10,"margin-right":10}}}))(yt),vt=Object(Ke.a)()(Et),kt=Object(d.b)((function(e,a){return{mainMenu:e.mainMenu,currentUser:e.auth.currentUser}}),{showMainMenu:oa,hideMainMenu:la,showLanguageDialog:function(){return{type:"CHANGE_LANGUAGE_DIALOG_SHOW"}}})(vt),Ot=t(733),Dt=t(734),jt=t(735),zt=t(736),xt=t(723),Ct=function(e,a){return{type:"REMOVE_MODEL_DIALOG_SHOW",payload:{userId:e,modelId:a}}},Tt=function(e,a){return{type:"EDIT_MODEL_DIALOG_SHOW",payload:{userId:e,modelId:a}}},Ut=X.fileRoute,Ft=X.maxFileSize,It=X.iosFileRoute;function St(e,a,t){return Mt.apply(this,arguments)}function Mt(){return(Mt=Object(T.a)(C.a.mark((function e(a,t,n){var r,o;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n.size>=Ft)){e.next=2;break}throw new Error("Max file size of ".concat(Ft," Bytes exceeded!"));case 2:return(r=new FormData).append("file",n),e.next=6,K.post("".concat(Ut,"/").concat(a,"/").concat(t),r,{headers:{"Content-Type":"multipart/form-data"}});case 6:return o=e.sent,e.abrupt("return",o.data);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Nt(e,a,t){return Lt.apply(this,arguments)}function Lt(){return(Lt=Object(T.a)(C.a.mark((function e(a,t,n){var r,o;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n.size>=Ft)){e.next=2;break}throw new Error("Max file size of ".concat(Ft," Bytes exceeded!"));case 2:return(r=new FormData).append("file",n),e.next=6,K.post("".concat(It,"/").concat(a,"/").concat(t),r,{headers:{"Content-Type":"multipart/form-data"}});case 6:return o=e.sent,e.abrupt("return",o.data);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function At(e,a){return Rt.apply(this,arguments)}function Rt(){return(Rt=Object(T.a)(C.a.mark((function e(a,t){var n,r,o;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,K.get("".concat(Ut,"/").concat(a,"/").concat(t),{responseType:"blob"});case 2:n=e.sent,r=window.URL.createObjectURL(new Blob([n.data])),(o=document.createElement("a")).href=r,o.setAttribute("download","".concat(t,".smdl")),document.body.appendChild(o),o.click();case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Pt(e,a){return Bt.apply(this,arguments)}function Bt(){return(Bt=Object(T.a)(C.a.mark((function e(a,t){var n,r,o;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,K.get("".concat(It,"/").concat(a,"/").concat(t),{responseType:"blob"});case 2:n=e.sent,r=window.URL.createObjectURL(new Blob([n.data])),(o=document.createElement("a")).href=r,o.setAttribute("download","".concat(t,".ismdl")),document.body.appendChild(o),o.click();case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var _t=X.maxFileSize,Wt=function(){return function(){var e=Object(T.a)(C.a.mark((function e(a,t){var n,r,o,l;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t();case 2:if(n=e.sent,r=n.file,!(F(r.userId)&&F(r.modelId)&&F(r.file))){e.next=7;break}return e.next=7,St(r.userId,r.modelId,r.file);case 7:return e.next=9,a({type:"SEND_FILE"});case 9:return o=n.data.usersData[r.userId].models[r.modelId],l=Object(f.a)(Object(f.a)({},o),{},{fileExists:!0}),e.next=13,a({type:"FETCH_USER_MODEL_DATA",payload:{userId:r.userId,model:l}});case 13:case"end":return e.stop()}}),e)})));return function(a,t){return e.apply(this,arguments)}}()},Gt=function(e,a,t){return function(){var n=Object(T.a)(C.a.mark((function n(r,o){return C.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(F(t)){n.next=2;break}return n.abrupt("return");case 2:if(!(t.size>=_t)){n.next=5;break}return console.error(new Error("Max file size of ".concat(_t," Bytes exceeded!"))),n.abrupt("return");case 5:r({type:"FETCH_FILE_TO_SEND",payload:{userId:e,modelId:a,file:t}});case 6:case"end":return n.stop()}}),n)})));return function(e,a){return n.apply(this,arguments)}}()},Ht=X.maxFileSize,Vt=function(){return function(){var e=Object(T.a)(C.a.mark((function e(a,t){var n,r,o,l;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t();case 2:if(n=e.sent,r=n.iosFile,!(F(r.userId)&&F(r.modelId)&&F(r.file))){e.next=7;break}return e.next=7,Nt(r.userId,r.modelId,r.file);case 7:return e.next=9,a({type:"SEND_IOS_FILE"});case 9:return o=n.data.usersData[r.userId].models[r.modelId],l=Object(f.a)(Object(f.a)({},o),{},{iosFileExists:!0}),e.next=13,a({type:"FETCH_USER_MODEL_DATA",payload:{userId:r.userId,model:l}});case 13:case"end":return e.stop()}}),e)})));return function(a,t){return e.apply(this,arguments)}}()},qt=function(e,a,t){return function(){var n=Object(T.a)(C.a.mark((function n(r,o){return C.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(F(t)){n.next=2;break}return n.abrupt("return");case 2:if(!(t.size>=Ht)){n.next=5;break}return console.error(new Error("Max file size of ".concat(Ht," Bytes exceeded!"))),n.abrupt("return");case 5:r({type:"FETCH_IOS_FILE_TO_SEND",payload:{userId:e,modelId:a,file:t}});case 6:case"end":return n.stop()}}),n)})));return function(e,a){return n.apply(this,arguments)}}()},Yt=function(e){Object(c.a)(t,e);var a=Object(u.a)(t);function t(e){var n;return Object(i.a)(this,t),(n=a.call(this,e)).createUploadModelFileButtonRefIfNotExists=function(e,a){F(n.uploadButtonsFormsRef[e])||(n.uploadButtonsFormsRef[e]={}),F(n.uploadButtonsFormsRef[e][a])||(n.uploadButtonsFormsRef[e][a]=r.a.createRef())},n.createUploadModelIOSFileButtonRefIfNotExists=function(e,a){F(n.uploadIOSButtonsFormsRef[e])||(n.uploadIOSButtonsFormsRef[e]={}),F(n.uploadIOSButtonsFormsRef[e][a])||(n.uploadIOSButtonsFormsRef[e][a]=r.a.createRef())},n.handleUploadModelFileFormChanged=function(){var e=Object(T.a)(C.a.mark((function e(a,t,r){return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.props.fetchAndUploadFile(t,r,a.target.files[0]);case 2:case"end":return e.stop()}}),e)})));return function(a,t,n){return e.apply(this,arguments)}}(),n.handleUploadModelFileButtonClick=function(e,a){n.uploadButtonsFormsRef[e][a].current.click()},n.handleUploadModelIOSFileFormChanged=function(){var e=Object(T.a)(C.a.mark((function e(a,t,r){return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.props.fetchAndUploadIOSFile(t,r,a.target.files[0]);case 2:case"end":return e.stop()}}),e)})));return function(a,t,n){return e.apply(this,arguments)}}(),n.handleUploadModelIOSFileButtonClick=function(e,a){n.uploadIOSButtonsFormsRef[e][a].current.click()},n.handleDeleteModelClick=function(){var e=Object(T.a)(C.a.mark((function e(a,t){return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.props.showRemoveModelDialog(a,t);case 1:case"end":return e.stop()}}),e)})));return function(a,t){return e.apply(this,arguments)}}(),n.handleEditModelClick=function(){var e=Object(T.a)(C.a.mark((function e(a,t){return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.props.showEditModelDialog(a,t);case 1:case"end":return e.stop()}}),e)})));return function(a,t){return e.apply(this,arguments)}}(),n.renderUploadModelFileButton=function(e,a){return n.createUploadModelFileButtonRefIfNotExists(e,a),r.a.createElement(r.a.Fragment,null,r.a.createElement("input",{ref:n.uploadButtonsFormsRef[e][a],style:{display:"none"},type:"file",accept:".smdl",onChange:function(t){return n.handleUploadModelFileFormChanged(t,e,a)}}),r.a.createElement(B.a,{className:n.props.classes.toolFourButtons,variant:"contained",color:"primary",startIcon:r.a.createElement(Ot.a,null),onClick:function(){return n.handleUploadModelFileButtonClick(e,a)}},n.props.t("editDataComponent.modelTableComponent.uploadFileText")))},n.renderUploadModelFileIOSButton=function(e,a){return n.createUploadModelIOSFileButtonRefIfNotExists(e,a),r.a.createElement(r.a.Fragment,null,r.a.createElement("input",{ref:n.uploadIOSButtonsFormsRef[e][a],style:{display:"none"},type:"file",accept:".ismdl",onChange:function(t){return n.handleUploadModelIOSFileFormChanged(t,e,a)}}),r.a.createElement(B.a,{className:n.props.classes.toolFourButtons,variant:"contained",color:"primary",startIcon:r.a.createElement(Ot.a,null),onClick:function(){return n.handleUploadModelIOSFileButtonClick(e,a)}},n.props.t("editDataComponent.modelTableComponent.uploadIOSFileText")))},n.renderFileDownload=function(e,a,t){return r.a.createElement(B.a,{className:n.props.classes.toolFourButtons,variant:"contained",color:"primary",disabled:!t,startIcon:r.a.createElement(Dt.a,null),onClick:function(){n.props.downloadFile(e,a)}},n.props.t("editDataComponent.modelTableComponent.downloadFileText"))},n.renderIOSFileDownload=function(e,a,t){return r.a.createElement(B.a,{className:n.props.classes.toolFourButtons,variant:"contained",color:"primary",disabled:!t,startIcon:r.a.createElement(Dt.a,null),onClick:function(){n.props.downloadIOSFile(e,a)}},n.props.t("editDataComponent.modelTableComponent.downloadIOSFileText"))},n.renderEditModelButton=function(e,a){return r.a.createElement(B.a,{className:n.props.classes.toolFourButtons,variant:"contained",color:"primary",startIcon:r.a.createElement(jt.a,null),onClick:function(){return n.handleEditModelClick(e,a)}},n.props.t("editDataComponent.modelTableComponent.editModelButtonText"))},n.renderDeleteModelButton=function(e,a){return r.a.createElement(B.a,{className:n.props.classes.toolFourButtons,variant:"contained",color:"secondary",startIcon:r.a.createElement(zt.a,null),onClick:function(){n.handleDeleteModelClick(e,a)}},n.props.t("editDataComponent.modelTableComponent.deleteModelButtonText"))},n.renderFileExistsColumn=function(e){return r.a.createElement(xt.a,{container:!0,direction:"row",justify:"center",alignItems:"center",className:n.props.classes.fileExistsCellContainer},r.a.createElement(xt.a,{item:!0},n.renderUploadModelFileButton(e.userId,e.modelId)),r.a.createElement(xt.a,{item:!0},n.renderFileDownload(e.userId,e.modelId,e.modelFileExists)))},n.renderIOSFileExistsColumn=function(e){return r.a.createElement(xt.a,{container:!0,direction:"row",justify:"center",alignItems:"center",className:n.props.classes.fileExistsCellContainer},r.a.createElement(xt.a,{item:!0},n.renderUploadModelFileIOSButton(e.userId,e.modelId)),r.a.createElement(xt.a,{item:!0},n.renderIOSFileDownload(e.userId,e.modelId,e.modelIOSFileExists)))},n.renderToolsColumn=function(e){return r.a.createElement(xt.a,{container:!0,direction:"row",justify:"center",alignItems:"center",className:n.props.classes.toolsCellContainer},r.a.createElement(xt.a,{item:!0},n.renderEditModelButton(e.userId,e.modelId)),r.a.createElement(xt.a,{item:!0},n.renderDeleteModelButton(e.userId,e.modelId)))},n.uploadButtonsFormsRef={},n.uploadIOSButtonsFormsRef={},n}return Object(s.a)(t,[{key:"render",value:function(){var e=this.props,a=e.classes,t=e.data,n=e.editDataComponent,o=e.t,l=Ue(n.selectedUser,t);return n.selectedUser&&""!==n.selectedUser?r.a.createElement(Ka.a,{className:a.materialTable,columns:[{title:o("editDataComponent.modelTableComponent.table.modelNameColumnName"),field:"modelName"},{title:o("editDataComponent.modelTableComponent.table.toolsColumnName"),render:this.renderToolsColumn,headerStyle:{textAlign:"center"}},{title:o("editDataComponent.modelTableComponent.table.androidFileColumnName"),render:this.renderFileExistsColumn,headerStyle:{textAlign:"center"}},{title:o("editDataComponent.modelTableComponent.table.iosFileColumnName"),render:this.renderIOSFileExistsColumn,headerStyle:{textAlign:"center"}}],data:l,options:{headerStyle:{fontWeight:"bold",textAlign:"left",background:Je.a[900],fontSize:16},toolbar:!1,padding:"dense",sorting:!1,draggable:!1,pageSize:5,pageSizeOptions:[5],maxBodyHeight:400,minBodyHeight:380,showTitle:!1,search:!1},localization:{pagination:{labelDisplayedRows:o("editDataComponent.modelTableComponent.table.localization.pagination.labelDisplayedRows"),labelRowsSelect:o("editDataComponent.modelTableComponent.table.localization.pagination.labelRowsSelect"),previousAriaLabel:o("editDataComponent.modelTableComponent.table.localization.pagination.previousAriaLabel"),previousTooltip:o("editDataComponent.modelTableComponent.table.localization.pagination.previousTooltip"),nextAriaLabel:o("editDataComponent.modelTableComponent.table.localization.pagination.nextAriaLabel"),nextTooltip:o("editDataComponent.modelTableComponent.table.localization.pagination.nextTooltip"),firstTooltip:o("editDataComponent.modelTableComponent.table.localization.pagination.firstTooltip"),lastTooltip:o("editDataComponent.modelTableComponent.table.localization.pagination.lastTooltip")},toolbar:{exportTitle:o("editDataComponent.modelTableComponent.table.localization.toolbar.exportTitle"),exportAriaLabel:o("editDataComponent.modelTableComponent.table.localization.toolbar.exportAriaLabel"),exportName:o("editDataComponent.modelTableComponent.table.localization.toolbar.exportName"),searchTooltip:o("editDataComponent.modelTableComponent.table.localization.toolbar.searchTooltip"),searchPlaceholder:o("editDataComponent.modelTableComponent.table.localization.toolbar.searchPlaceholder")},body:{emptyDataSourceMessage:o("editDataComponent.modelTableComponent.table.localization.body.emptyDataSourceMessage")}},components:{Container:function(e){return r.a.createElement("div",Object.assign({className:a.materialTableContainer},e))}}}):null}}]),t}(n.Component),Zt=Object(U.a)((function(e){return{materialTable:{background:Je.a[900]},materialTableContainer:{"margin-top":30},toolsCellContainer:{},fileExistsCellContainer:{},toolFourButtons:{margin:e.spacing(1),width:125},toolsButtonSpan:{}}}))(Yt),Jt=Object(Ke.a)()(Zt),Kt=Object(d.b)((function(e,a){return{data:e.data&&e.data.usersData?e.data.usersData:[],currentUser:e.auth.currentUser,editDataComponent:e.editDataComponent}}),{showRemoveModelDialog:Ct,showEditModelDialog:Tt,fetchAndUploadFile:function(e,a,t){return re(function(e,a,t){return function(){var n=Object(T.a)(C.a.mark((function n(r,o){return C.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(F(t)){n.next=2;break}return n.abrupt("return");case 2:if(!(t.size>=_t)){n.next=4;break}throw new Error("Max file size of ".concat((_t/1024/1024).toFixed(2)," MB exceeded!"));case 4:return n.next=6,r({type:"FETCH_FILE_TO_SEND",payload:{userId:e,modelId:a,file:t}});case 6:return n.next=8,r(Wt());case 8:case"end":return n.stop()}}),n)})));return function(e,a){return n.apply(this,arguments)}}()}(e,a,t))},fetchAndUploadIOSFile:function(e,a,t){return re(function(e,a,t){return function(){var n=Object(T.a)(C.a.mark((function n(r,o){return C.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(F(t)){n.next=2;break}return n.abrupt("return");case 2:if(!(t.size>=Ht)){n.next=4;break}throw new Error("Max file size of ".concat((Ht/1024/1024).toFixed(2)," MB exceeded!"));case 4:return n.next=6,r({type:"FETCH_IOS_FILE_TO_SEND",payload:{userId:e,modelId:a,file:t}});case 6:return n.next=8,r(Vt());case 8:case"end":return n.stop()}}),n)})));return function(e,a){return n.apply(this,arguments)}}()}(e,a,t))},downloadFile:function(e,a){return re(function(e,a){return function(){var t=Object(T.a)(C.a.mark((function t(n,r){return C.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,At(e,a);case 2:case"end":return t.stop()}}),t)})));return function(e,a){return t.apply(this,arguments)}}()}(e,a))},downloadIOSFile:function(e,a){return re(function(e,a){return function(){var t=Object(T.a)(C.a.mark((function t(n,r){return C.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Pt(e,a);case 2:case"end":return t.stop()}}),t)})));return function(e,a){return t.apply(this,arguments)}}()}(e,a))}})(Jt),Xt=t(311),Qt=t(315),$t=t(737),en=t(738),an=function(){return{type:"ADD_USER_DIALOG_SHOW"}},tn=function(e){return{type:"EDIT_USER_DIALOG_SHOW",payload:{userId:e}}},nn=function(e){return{type:"REMOVE_USER_DIALOG_SHOW",payload:{userId:e}}},rn=function(e){return{type:"ADD_MODEL_DIALOG_SHOW",payload:{userId:e}}},on=function(e){return S(e,1)},ln=function(e){return S(e,2)},sn=function(e){Object(c.a)(t,e);var a=Object(u.a)(t);function t(){var e;Object(i.a)(this,t);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return(e=a.call.apply(a,[this].concat(o))).handleUserSelectionChange=function(){var a=Object(T.a)(C.a.mark((function a(t){var n;return C.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n=e.props.selectUser,a.next=3,n(t.target.value);case 3:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}(),e.handleFilterTextChange=function(){var a=Object(T.a)(C.a.mark((function a(t){var n;return C.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n=e.props.changeFilter,a.next=3,n(t.target.value);case 3:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}(),e.handleCreateUserClick=Object(T.a)(C.a.mark((function a(){return C.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:e.props.showAddUserDialog();case 1:case"end":return a.stop()}}),a)}))),e.handleEditUserClick=Object(T.a)(C.a.mark((function a(){return C.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:e.props.showEditUserDialog(e.props.editDataComponent.selectedUser);case 1:case"end":return a.stop()}}),a)}))),e.handleDeleteUserClick=Object(T.a)(C.a.mark((function a(){return C.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:e.props.showRemoveUserDialog(e.props.editDataComponent.selectedUser);case 1:case"end":return a.stop()}}),a)}))),e.handleAddNewModelClick=Object(T.a)(C.a.mark((function a(){return C.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:e.props.showAddModelDialog(e.props.editDataComponent.selectedUser);case 1:case"end":return a.stop()}}),a)}))),e.getPossibleUsersToSelect=function(){var a=e.props,t=a.data,n=a.editDataComponent;return I(t)&&I(t.usersData)?Object.values(t.usersData).sort((function(e,a){return e.email<a.email?-1:e.email>a.email?1:0})).filter((function(e){return Fe(e.email,n.filter)})):[]},e.canUserBeEditedOrRemoved=function(a){if(!F(a)||""===a)return!1;if(!F(e.props.data)||!F(e.props.data.currentUserData))return!1;var t=e.props.data.currentUserData;if(ln(t.permissions))return!0;var n=e.props.data.usersData[a];return!!F(e.props.data.usersData[a])&&(!on(n.permissions)&&!ln(n.permissions))},e.renderAddUserButton=function(){return r.a.createElement(B.a,{className:e.props.classes.userButton,variant:"contained",color:"primary",startIcon:r.a.createElement($t.a,null),onClick:function(){e.handleCreateUserClick()}},e.props.t("editDataComponent.userSelectComponent.addUserButtonText"))},e.renderEditUserButton=function(){var a=e.props,t=a.classes,n=a.editDataComponent,o=!e.canUserBeEditedOrRemoved(n.selectedUser)||!F(n.selectedUser)||""===n.selectedUser;return r.a.createElement(B.a,{className:t.userButton,variant:"contained",color:"primary",startIcon:r.a.createElement(jt.a,null),disabled:o,onClick:function(){e.handleEditUserClick()}},e.props.t("editDataComponent.userSelectComponent.editUserButtonText"))},e.renderDeleteUserButton=function(){var a=e.props,t=a.classes,n=a.editDataComponent,o=!e.canUserBeEditedOrRemoved(n.selectedUser)||!F(n.selectedUser)||""===n.selectedUser;return r.a.createElement(B.a,{className:t.userButton,variant:"contained",color:"secondary",startIcon:r.a.createElement(zt.a,null),disabled:o,onClick:function(){e.handleDeleteUserClick()}},e.props.t("editDataComponent.userSelectComponent.deleteUserButtonText"))},e.renderAddModelButton=function(){var a=e.props,t=a.classes,n=a.editDataComponent,o=!F(n.selectedUser)||""===n.selectedUser;return r.a.createElement(B.a,{className:t.addModelButton,variant:"contained",color:"primary",startIcon:r.a.createElement(en.a,null),disabled:o,onClick:function(){return e.handleAddNewModelClick()}},e.props.t("editDataComponent.userSelectComponent.addModelButtonText"))},e.renderSelectUserInput=function(){var a=e.props,t=a.classes,n=a.editDataComponent,o=a.t;return r.a.createElement(r.a.Fragment,null,r.a.createElement(Xt.a,{className:t.selectUserInputLabel,shrink:!0},o("editDataComponent.userSelectComponent.SelectUserInputText")),r.a.createElement(Qt.a,{className:t.selectUserInput,value:n.selectedUser,onChange:e.handleUserSelectionChange,fullWidth:!0},e.getPossibleUsersToSelect().map((function(e){return r.a.createElement(Ve.a,{key:e._id,value:e._id},e.email)}))))},e.renderFilterUserInput=function(){var a=e.props,t=a.classes,n=a.editDataComponent,o=a.t;return r.a.createElement(r.a.Fragment,null,r.a.createElement(Xt.a,{className:t.filterInputLabel,shrink:!0},o("editDataComponent.userSelectComponent.filterInputText")),r.a.createElement(ha.a,{fullWidth:!0,value:n.filter,onChange:e.handleFilterTextChange,className:t.filterInputTextField}))},e}return Object(s.a)(t,[{key:"render",value:function(){var e=this.props.classes;return r.a.createElement(xt.a,{className:e.userGrid,container:!0,direction:"row",justify:"flex-start",alignItems:"flex-start"},r.a.createElement(xt.a,{sm:12,md:12,lg:8,className:e.selectUserGrid,item:!0},this.renderSelectUserInput()),r.a.createElement(xt.a,{sm:12,md:12,lg:4,className:e.filterUserGrid,item:!0},this.renderFilterUserInput()),r.a.createElement(xt.a,{sm:12,lg:12,item:!0,container:!0,direction:"row",justify:"flex-start",alignItems:"center",className:e.userButtonGrid},r.a.createElement(xt.a,{item:!0,className:e.userButtonGridItem},this.renderAddUserButton()),r.a.createElement(xt.a,{item:!0,className:e.userButtonGridItem},this.renderEditUserButton()),r.a.createElement(xt.a,{item:!0,className:e.userButtonGridItem},this.renderDeleteUserButton()),r.a.createElement(xt.a,{item:!0,className:e.userButtonGridItem},this.renderAddModelButton())))}}]),t}(n.Component),cn=Object(U.a)((function(e){return{userGrid:{padding:10},selectUserGrid:{"padding-right":10,"padding-top":10},addModelButton:{"margin-top":20,"margin-right":20},filterUserGrid:{"padding-right":10,"padding-top":10},selectUserInputLabel:{},selectUserInput:{},filterInputLabel:{},filterInputTextField:{},userButtonGrid:{},userButtonGridItem:{},userButton:{"margin-top":20,"margin-right":20,width:125}}}))(sn),un=Object(Ke.a)()(cn),dn=Object(d.b)((function(e,a){return{editDataComponent:e.editDataComponent,data:e.data}}),{fetchAllUsersData:Re,selectUser:Se,changeFilter:Ie,resetFilterAndSelectedUser:Me,showAddUserDialog:an,showEditUserDialog:tn,showRemoveUserDialog:nn,showAddModelDialog:rn})(un),pn=t(140),mn=function(e){Object(c.a)(t,e);var a=Object(u.a)(t);function t(){var e;Object(i.a)(this,t);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return(e=a.call.apply(a,[this].concat(o))).componentDidMount=Object(T.a)(C.a.mark((function a(){return C.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,e.props.fetchAllUsersData();case 2:return a.next=4,e.props.resetFilterAndSelectedUser();case 4:case"end":return a.stop()}}),a)}))),e.checkIfUserIsSelectedAndExists=function(){var a=e.props,t=a.editDataComponent,n=a.data;return!(!F(t.selectedUser)||""===t.selectedUser)&&!!(I(n)&&I(n.usersData)&&I(n.usersData[t.selectedUser]))},e.renderMainTitle=function(){var a=e.props,t=a.editDataComponent,n=a.classes,o=a.data,l=a.t;return r.a.createElement(R.a,{variant:"h6",className:n.mainTitle},e.checkIfUserIsSelectedAndExists()?"".concat(l("editDataComponent.userLabel.selectedUserText"),": ").concat(o.usersData[t.selectedUser].name):l("editDataComponent.userLabel.unselectedUserText"))},e}return Object(s.a)(t,[{key:"render",value:function(){var e=this.props.classes;return r.a.createElement(pn.a,{className:e.mainPaper},this.renderMainTitle(),r.a.createElement(dn,null),r.a.createElement(Kt,null))}}]),t}(n.Component),bn=Object(U.a)((function(e){return{mainPaper:{margin:e.spacing(2),padding:e.spacing(2),background:Je.a[900]},mainTitle:{"margin-left":10}}}))(mn),fn=Object(Ke.a)()(bn),hn=Object(d.b)((function(e,a){return{editDataComponent:e.editDataComponent,data:e.data}}),{fetchAllUsersData:Re,selectUser:Se,changeFilter:Ie,resetFilterAndSelectedUser:Me,showAddUserDialog:an,showEditUserDialog:tn,showRemoveUserDialog:nn,showAddModelDialog:rn})(fn),wn=function(e){Object(c.a)(t,e);var a=Object(u.a)(t);function t(){var e;Object(i.a)(this,t);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return(e=a.call.apply(a,[this].concat(o))).renderField=function(a){var t=a.input,n=a.label,o=a.type,l=a.meta,i=l.touched,s=l.error,c=l.warning;return r.a.createElement("div",{className:e.props.classes.textFieldDiv},r.a.createElement(ha.a,Object.assign({className:e.props.classes.textField},t,{label:n,placeholder:n,type:o,fullWidth:!0,autoComplete:"off"})),i&&(s&&r.a.createElement(wa.a,{className:e.props.classes.errorLabel},s)||c&&r.a.createElement(wa.a,{className:e.props.classes.errorLabel},c)))},e.handleSubmit=function(){var a=Object(T.a)(C.a.mark((function a(t){var n,r,o,l,i,s,c;return C.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(n=e.props,r=n.formData,o=n.syncErrors,l=n.hideAddUserDialog,i=n.postUserData,s=n.reset,!F(o)){a.next=3;break}return a.abrupt("return");case 3:return c=le.a.pick(r.values,"name","email","permissions","defaultLang"),a.next=6,i(c);case 6:return s(),a.next=9,l();case 9:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}(),e.handleCancelClicked=Object(T.a)(C.a.mark((function a(){var t,n;return C.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.props,n=t.hideAddUserDialog,(0,t.reset)(),a.next=4,n();case 4:case"end":return a.stop()}}),a)}))),e.checkUsersPermissions=function(e){return!!I(e)&&(!!F(e.permissions)&&on(e.permissions))},e.renderPermissionsSelect=function(a){var t=a.input,n=a.label,o=a.disabled,l=a.meta,i=(l.touched,l.error,l.warning,e.props),s=i.currentUser,c=i.t,u=s&&s.permissions&&ln(s.permissions);return r.a.createElement("div",{className:e.props.classes.selectFieldDiv},r.a.createElement(Xt.a,{className:e.props.classes.inputLabel,shrink:!0},n),r.a.createElement(Qt.a,Object.assign({className:e.props.classes.selectField},t,{placeholder:n,label:n,disabled:o,fullWidth:!0}),r.a.createElement(Ve.a,{value:1},c("addUserDialog.permissionsMenu.user")),r.a.createElement(Ve.a,{value:3,disabled:!u},c("addUserDialog.permissionsMenu.admin")),r.a.createElement(Ve.a,{value:7,disabled:!u},c("addUserDialog.permissionsMenu.superAdmin"))))},e.renderDefaultLangSelect=function(a){var t=a.input,n=a.label,o=a.disabled,l=a.meta,i=(l.touched,l.error,l.warning,e.props.t);return r.a.createElement("div",{className:e.props.classes.selectFieldDiv},r.a.createElement(Xt.a,{className:e.props.classes.inputLabel,shrink:!0},n),r.a.createElement(Qt.a,Object.assign({className:e.props.classes.selectField},t,{placeholder:n,label:n,disabled:o,fullWidth:!0}),r.a.createElement(Ve.a,{value:"pl"},i("addUserDialog.langMenu.pl")),r.a.createElement(Ve.a,{value:"en"},i("addUserDialog.langMenu.en"))))},e}return Object(s.a)(t,[{key:"render",value:function(){var e=this.props,a=e.currentUser,t=e.addUserDialog,n=e.classes,o=e.formData,l=e.hideAddUserDialog,i=e.handleSubmit,s=e.t;return this.checkUsersPermissions(a)?r.a.createElement("div",null,r.a.createElement(da.a,{open:t.visible,className:n.dialog,disableBackdropClick:!0,disableEscapeKeyDown:!0,PaperProps:{style:{width:"fit-content",height:"fit-content",minWidth:500,background:Je.a[900]}}},r.a.createElement(va.a,{onSubmit:i(this.handleSubmit)},r.a.createElement(ga.a,{className:n.dialogTitle},s("addUserDialog.dialogTitle")),r.a.createElement(ya.a,{className:n.dialogContent},r.a.createElement(ka.a,{name:"email",type:"text",component:this.renderField,label:s("addUserDialog.emailFieldLabel")}),r.a.createElement(ka.a,{name:"name",type:"text",component:this.renderField,label:s("addUserDialog.nameFieldLabel")}),r.a.createElement(ka.a,{name:"defaultLang",type:"text",component:this.renderDefaultLangSelect,label:s("addUserDialog.defaultLangFieldLabel")}),r.a.createElement(ka.a,{name:"permissions",type:"number",component:this.renderPermissionsSelect,label:s("addUserDialog.permissionsFieldLabel")})),r.a.createElement(Ea.a,null,r.a.createElement(B.a,{type:"submit",disabled:!F(o)||F(o)&&(F(o.syncErrors)||!o.anyTouched),color:"secondary",variant:"contained",style:{minWidth:125}},s("addUserDialog.createButtonText")),r.a.createElement(B.a,{onClick:this.handleCancelClicked,color:"primary",variant:"contained",style:{minWidth:125}},s("addUserDialog.cancelButtonText")))))):(t.visible&&l(),null)}}]),t}(n.Component),gn=Object(U.a)((function(e){return{dialog:{},dialogTitle:{},dialogContent:{},textField:{},textFieldDiv:{"margin-bottom":e.spacing(2),display:"block"},errorLabel:{color:Sa.a[900],display:"block"},selectField:{},selectFieldDiv:{"margin-bottom":e.spacing(1),display:"block"}}}))(wn),yn=Object(Ke.a)()(gn),En=Object(Oa.a)({form:"addUserDialog",validate:function(e,a){var t={},n=Ca.validate(e,{abortEarly:!1});if(!n.error)return Object.values(a.data).map((function(e){return e.email})).find((function(a){return a===e.email}))&&(t.email="User of given email already exists..."),t;var r,o=Object(h.a)(n.error.details);try{for(o.s();!(r=o.n()).done;){var l=r.value;t[l.path]=l.message}}catch(i){o.e(i)}finally{o.f()}return t},enableReinitialize:!0})(yn),vn=Object(d.b)((function(e,a){return{currentUser:e.auth.currentUser,addUserDialog:e.addUserDialog,formData:e.form.addUserDialog,data:e.data.usersData,initialValues:{permissions:1,defaultLang:"pl"}}}),{showAddUserDialog:an,hideAddUserDialog:function(){return{type:"ADD_USER_DIALOG_HIDE"}},postUserData:function(e){return re(function(e){return function(){var a=Object(T.a)(C.a.mark((function a(t,n){var r;return C.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,ge(e);case 2:r=a.sent,t({type:"FETCH_USER_DATA",payload:{user:r}});case 4:case"end":return a.stop()}}),a)})));return function(e,t){return a.apply(this,arguments)}}()}(e))}})(En),kn=function(e){Object(c.a)(t,e);var a=Object(u.a)(t);function t(){var e;Object(i.a)(this,t);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return(e=a.call.apply(a,[this].concat(o))).renderField=function(a){var t=a.input,n=a.label,o=a.type,l=a.disabled,i=a.meta,s=i.touched,c=i.error,u=i.warning;return r.a.createElement("div",{className:e.props.classes.textFieldDiv},r.a.createElement(ha.a,Object.assign({className:e.props.classes.textField},t,{label:n,placeholder:n,type:o,fullWidth:!0,disabled:l,autoComplete:"off"})),s&&(c&&r.a.createElement(wa.a,{className:e.props.classes.errorLabel},c)||u&&r.a.createElement(wa.a,{className:e.props.classes.errorLabel},u)))},e.handleSubmit=function(){var a=Object(T.a)(C.a.mark((function a(t){var n,r,o,l,i,s,c,u;return C.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(n=e.props,r=n.formData,o=n.syncErrors,l=n.hideEditUserDialog,i=n.editUserDialog,s=n.putUserData,c=n.reset,!F(o)){a.next=3;break}return a.abrupt("return");case 3:return u=le.a.pick(r.values,"name","email","permissions","defaultLang"),I(r.values.password)&&(u.password=r.values.password),a.next=7,s(i.userId,u);case 7:return c(),a.next=10,l();case 10:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}(),e.handleCancelClicked=Object(T.a)(C.a.mark((function a(){var t,n;return C.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.props,n=t.hideEditUserDialog,(0,t.reset)(),a.next=4,n();case 4:case"end":return a.stop()}}),a)}))),e.checkUsersPermissions=function(e){return!!I(e)&&(!!F(e.permissions)&&on(e.permissions))},e.renderDefaultLangSelect=function(a){var t=a.input,n=a.label,o=a.disabled,l=a.meta,i=(l.touched,l.error,l.warning,e.props.t);return r.a.createElement("div",{className:e.props.classes.selectFieldDiv},r.a.createElement(Xt.a,{className:e.props.classes.inputLabel,shrink:!0},n),r.a.createElement(Qt.a,Object.assign({className:e.props.classes.selectField},t,{placeholder:n,label:n,disabled:o,fullWidth:!0}),r.a.createElement(Ve.a,{value:"pl"},i("editUserDialog.langMenu.pl")),r.a.createElement(Ve.a,{value:"en"},i("editUserDialog.langMenu.en"))))},e.renderPermissionsSelect=function(a){var t=a.input,n=a.label,o=a.disabled,l=a.meta,i=(l.touched,l.error,l.warning,e.props),s=i.currentUser,c=i.t,u=s&&s.permissions&&ln(s.permissions);return r.a.createElement("div",{className:e.props.classes.selectFieldDiv},r.a.createElement(Xt.a,{className:e.props.classes.inputLabel,shrink:!0},n),r.a.createElement(Qt.a,Object.assign({className:e.props.classes.selectField},t,{placeholder:n,label:n,disabled:o,fullWidth:!0}),r.a.createElement(Ve.a,{value:1},c("editUserDialog.permissionsMenu.user")),r.a.createElement(Ve.a,{value:3,disabled:!u},c("editUserDialog.permissionsMenu.admin")),r.a.createElement(Ve.a,{value:7,disabled:!u},c("editUserDialog.permissionsMenu.superAdmin"))))},e}return Object(s.a)(t,[{key:"render",value:function(){var e=this.props,a=e.currentUser,t=e.editUserDialog,n=e.classes,o=e.formData,l=e.hideEditUserDialog,i=e.handleSubmit,s=e.t;return this.checkUsersPermissions(a)?r.a.createElement("div",null,r.a.createElement(da.a,{open:t.visible,className:n.dialog,disableBackdropClick:!0,disableEscapeKeyDown:!0,PaperProps:{style:{width:"fit-content",height:"fit-content",minWidth:500,background:Je.a[900]}}},r.a.createElement(va.a,{onSubmit:i(this.handleSubmit)},r.a.createElement(ga.a,{className:n.dialogTitle},s("editUserDialog.dialogTitle")),r.a.createElement(ya.a,{className:n.dialogContent},r.a.createElement(ka.a,{name:"email",type:"text",component:this.renderField,label:s("editUserDialog.emailFieldLabel"),disabled:!0}),r.a.createElement(ka.a,{name:"name",type:"text",component:this.renderField,label:s("editUserDialog.nameFieldLabel")}),r.a.createElement(ka.a,{name:"defaultLang",type:"text",component:this.renderDefaultLangSelect,label:s("editUserDialog.defaultLangFieldLabel")}),r.a.createElement(ka.a,{name:"permissions",type:"number",component:this.renderPermissionsSelect,label:s("editUserDialog.permissionsFieldLabel")}),r.a.createElement(ka.a,{name:"password",type:"password",component:this.renderField,label:s("editUserDialog.newPasswordFieldLabel")})),r.a.createElement(Ea.a,null,r.a.createElement(B.a,{type:"submit",disabled:!F(o)||F(o)&&F(o.syncErrors),color:"secondary",variant:"contained",style:{minWidth:125}},s("editUserDialog.editButtonText")),r.a.createElement(B.a,{onClick:this.handleCancelClicked,color:"primary",variant:"contained",style:{minWidth:125}},s("editUserDialog.cancelButtonText")))))):(t.visible&&l(),null)}}]),t}(n.Component),On=Object(U.a)((function(e){return{dialog:{},dialogTitle:{},dialogContent:{},textField:{},textFieldDiv:{"margin-bottom":e.spacing(2),display:"block"},errorLabel:{color:Sa.a[900],display:"block"},selectField:{},selectFieldDiv:{"margin-bottom":e.spacing(1),display:"block"}}}))(kn),Dn=Object(Ke.a)()(On),jn=Object(Oa.a)({form:"editUserDialog",validate:function(e,a){var t={},n=Ca.validate(e,{abortEarly:!1});if(!n.error)return t;var r,o=Object(h.a)(n.error.details);try{for(o.s();!(r=o.n()).done;){var l=r.value;t[l.path]=l.message}}catch(i){o.e(i)}finally{o.f()}return t},enableReinitialize:!0})(Dn),zn=Object(d.b)((function(e,a){var t=e.editUserDialog.userId,n={};if(I(t)){var r=e.data.usersData[t];I(r)&&(n.name=r.name,n.email=r.email,n.permissions=r.permissions,n.defaultLang=r.defaultLang)}return{currentUser:e.auth.currentUser,editUserDialog:e.editUserDialog,formData:e.form.editUserDialog,data:e.data.usersData,initialValues:n}}),{showEditUserDialog:tn,hideEditUserDialog:function(){return{type:"EDIT_USER_DIALOG_HIDE"}},putUserData:function(e,a){return re(function(e,a){return function(){var t=Object(T.a)(C.a.mark((function t(n,r){var o;return C.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ze(e,a);case 2:o=t.sent,n({type:"FETCH_USER_DATA",payload:{user:o}});case 4:case"end":return t.stop()}}),t)})));return function(e,a){return t.apply(this,arguments)}}()}(e,a))}})(jn),xn=function(e){Object(c.a)(t,e);var a=Object(u.a)(t);function t(){var e;Object(i.a)(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=a.call.apply(a,[this].concat(r))).handleDeleteClicked=function(){var a=Object(T.a)(C.a.mark((function a(t){var n,r,o,l;return C.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n=e.props,r=n.hideRemoveUserDialog,o=n.removeUserDialog,l=n.deleteUser,a.next=3,l(o.userId);case 3:return a.next=5,r();case 5:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}(),e.handleCancelClicked=Object(T.a)(C.a.mark((function a(){var t;return C.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.props.hideRemoveUserDialog,a.next=3,t();case 3:case"end":return a.stop()}}),a)}))),e.checkUsersPermissions=function(e,a){return!!I(e)&&(!!F(e.permissions)&&(!!on(e.permissions)&&(!(!ln(e.permissions)&&on(a.permissions))&&!(!ln(e.permissions)&&ln(a.permissions)))))},e}return Object(s.a)(t,[{key:"render",value:function(){var e=this.props,a=e.currentUser,t=e.removeUserDialog,n=e.classes,o=e.hideRemoveUserDialog,l=e.userToRemove,i=e.t;return I(l)?this.checkUsersPermissions(a,l)?r.a.createElement("div",null,r.a.createElement(da.a,{open:t.visible,className:n.dialog,disableBackdropClick:!0,disableEscapeKeyDown:!0,PaperProps:{style:{width:"fit-content",height:"fit-content",minWidth:500,background:Je.a[900]}}},r.a.createElement(ga.a,{className:n.dialogTitle},i("removeUserDialog.dialogTitle")),r.a.createElement(ya.a,{className:n.dialogContent},r.a.createElement(R.a,null,"".concat(i("removeUserDialog.dialogContentText")," "),r.a.createElement("b",null,l.email),"?")),r.a.createElement(Ea.a,null,r.a.createElement(B.a,{onClick:this.handleDeleteClicked,color:"secondary",variant:"contained",style:{minWidth:125}},i("removeUserDialog.yesButtonText")),r.a.createElement(B.a,{onClick:this.handleCancelClicked,color:"primary",variant:"contained",style:{minWidth:125}},i("removeUserDialog.noButtonText"))))):(t.visible&&o(),null):null}}]),t}(n.Component),Cn=Object(U.a)((function(e){return{dialog:{},dialogTitle:{},dialogContent:{},textField:{},textFieldDiv:{"margin-bottom":e.spacing(2),display:"block"},errorLabel:{color:Sa.a[900],display:"block"},selectField:{},selectFieldDiv:{"margin-bottom":e.spacing(1),display:"block"}}}))(xn),Tn=Object(Ke.a)()(Cn),Un=Object(d.b)((function(e,a){var t={};return I(e.removeUserDialog.userId)&&(t=e.data.usersData[e.removeUserDialog.userId]),{currentUser:e.auth.currentUser,userToRemove:t,removeUserDialog:e.removeUserDialog,data:e.data.usersData}}),{showRemoveUserDialog:nn,hideRemoveUserDialog:function(){return{type:"REMOVE_USER_DIALOG_HIDE"}},deleteUser:function(e){return re(function(e){return function(){var a=Object(T.a)(C.a.mark((function a(t,n){var r;return C.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,ke(e);case 2:return r=a.sent,a.next=5,t(Me());case 5:return a.next=7,t({type:"DELETE_USER_DATA",payload:{user:r}});case 7:case"end":return a.stop()}}),a)})));return function(e,t){return a.apply(this,arguments)}}()}(e))}})(Tn),Fn=function(e){Object(c.a)(t,e);var a=Object(u.a)(t);function t(){var e;Object(i.a)(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=a.call.apply(a,[this].concat(r))).handleDeleteClicked=function(){var a=Object(T.a)(C.a.mark((function a(t){var n,r,o,l;return C.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n=e.props,r=n.hideRemoveModelDialog,o=n.removeModelDialog,l=n.deleteModelData,a.next=3,l(o.userId,o.modelId);case 3:return a.next=5,r();case 5:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}(),e.handleCancelClicked=Object(T.a)(C.a.mark((function a(){var t;return C.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.props.hideRemoveModelDialog,a.next=3,t();case 3:case"end":return a.stop()}}),a)}))),e.checkUsersPermissions=function(e){return!!I(e)&&(!!F(e.permissions)&&!!on(e.permissions))},e}return Object(s.a)(t,[{key:"render",value:function(){var e=this.props,a=e.currentUser,t=e.removeModelDialog,n=e.classes,o=e.hideRemoveModelDialog,l=e.modelToRemove,i=e.t;return I(l)?this.checkUsersPermissions(a)?r.a.createElement("div",null,r.a.createElement(da.a,{open:t.visible,className:n.dialog,disableBackdropClick:!0,disableEscapeKeyDown:!0,PaperProps:{style:{width:"fit-content",height:"fit-content",minWidth:500,background:Je.a[900]}}},r.a.createElement(ga.a,{className:n.dialogTitle},i("removeModelDialog.dialogTitle")),r.a.createElement(ya.a,{className:n.dialogContent},r.a.createElement(R.a,null,"".concat(i("removeModelDialog.dialogContentText")," "),r.a.createElement("b",null,l.name),"?")),r.a.createElement(Ea.a,null,r.a.createElement(B.a,{onClick:this.handleDeleteClicked,color:"secondary",variant:"contained",style:{minWidth:125}},i("removeModelDialog.yesButtonText")),r.a.createElement(B.a,{onClick:this.handleCancelClicked,color:"primary",variant:"contained",style:{minWidth:125}},i("removeModelDialog.noButtonText"))))):(t.visible&&o(),null):null}}]),t}(n.Component),In=Object(U.a)((function(e){return{dialog:{},dialogTitle:{},dialogContent:{},textField:{},textFieldDiv:{"margin-bottom":e.spacing(2),display:"block"},errorLabel:{color:Sa.a[900],display:"block"},selectField:{},selectFieldDiv:{"margin-bottom":e.spacing(1),display:"block"}}}))(Fn),Sn=Object(Ke.a)()(In),Mn=Object(d.b)((function(e,a){var t={};return I(e.removeModelDialog.userId)&&I(e.removeModelDialog.modelId)&&(t=e.data.usersData[e.removeModelDialog.userId].models[e.removeModelDialog.modelId]),{currentUser:e.auth.currentUser,modelToRemove:t,removeModelDialog:e.removeModelDialog,data:e.data.usersData}}),{showRemoveModelDialog:Ct,hideRemoveModelDialog:function(){return{type:"REMOVE_MODEL_DIALOG_HIDE"}},deleteModelData:function(e,a){return re(function(e,a){return function(){var t=Object(T.a)(C.a.mark((function t(n,r){var o;return C.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,De(e,a);case 2:o=t.sent,n({type:"DELETE_MODEL_DATA",payload:{userId:e,model:o}});case 4:case"end":return t.stop()}}),t)})));return function(e,a){return t.apply(this,arguments)}}()}(e,a))}})(Sn),Nn=t(431),Ln=t(429),An=t(740),Rn=function(e){Object(c.a)(t,e);var a=Object(u.a)(t);function t(e){var n;return Object(i.a)(this,t),(n=a.call(this,e)).handleSelectButtonClicked=function(e){n.fileInputRef.current.click()},n.handleFileSelectionChange=function(e){(0,n.props.onChange)(e.target.files[0])},n.renderInputLabel=function(){var e=n.props,a=e.label,t=e.classes;return r.a.createElement(Xt.a,{className:t.titleLabel,shrink:!0},a)},n.renderLoadFileButton=function(){var e=n.props.t;return r.a.createElement(B.a,{className:n.props.classes.fileLoadButton,variant:"contained",color:"primary",onClick:n.handleSelectButtonClicked},e("fileField.buttonText"))},n.renderFileNameLabel=function(){var e=n.props,a=e.value,t=e.classes,o=e.t;return r.a.createElement(R.a,{className:t.fileLabel},F(a.name)?a.name:o("fileField.emptyFieldLabel"))},n.fileInputRef=r.a.createRef(),n}return Object(s.a)(t,[{key:"render",value:function(){return r.a.createElement("div",null,this.renderInputLabel(),r.a.createElement("input",{ref:this.fileInputRef,style:{display:"none"},type:"file",accept:".smdl",onChange:this.handleFileSelectionChange}),r.a.createElement("span",null,this.renderLoadFileButton(),this.renderFileNameLabel()))}}]),t}(n.Component),Pn=Object(U.a)((function(e){return{fileLoadButton:{margin:e.spacing(1)},fileLabel:{margin:e.spacing(1),display:"inline"},titleLabel:{}}}))(Rn),Bn=Object(Ke.a)()(Pn),_n=function(e){Object(c.a)(t,e);var a=Object(u.a)(t);function t(e){var n;return Object(i.a)(this,t),(n=a.call(this,e)).handleSelectButtonClicked=function(e){n.fileInputRef.current.click()},n.handleFileSelectionChange=function(e){(0,n.props.onChange)(e.target.files[0])},n.renderInputLabel=function(){var e=n.props,a=e.label,t=e.classes;return r.a.createElement(Xt.a,{className:t.titleLabel,shrink:!0},a)},n.renderLoadFileButton=function(){var e=n.props.t;return r.a.createElement(B.a,{className:n.props.classes.fileLoadButton,variant:"contained",color:"primary",onClick:n.handleSelectButtonClicked},e("fileField.buttonText"))},n.renderFileNameLabel=function(){var e=n.props,a=e.value,t=e.classes,o=e.t;return r.a.createElement(R.a,{className:t.fileLabel},F(a.name)?a.name:o("fileField.emptyFieldLabel"))},n.fileInputRef=r.a.createRef(),n}return Object(s.a)(t,[{key:"render",value:function(){return r.a.createElement("div",null,this.renderInputLabel(),r.a.createElement("input",{ref:this.fileInputRef,style:{display:"none"},type:"file",accept:".ismdl",onChange:this.handleFileSelectionChange}),r.a.createElement("span",null,this.renderLoadFileButton(),this.renderFileNameLabel()))}}]),t}(n.Component),Wn=Object(U.a)((function(e){return{fileLoadButton:{margin:e.spacing(1)},fileLabel:{margin:e.spacing(1),display:"inline"},titleLabel:{}}}))(_n),Gn=Object(Ke.a)()(Wn),Hn=function(e){Object(c.a)(t,e);var a=Object(u.a)(t);function t(){var e;Object(i.a)(this,t);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return(e=a.call.apply(a,[this].concat(o))).renderUserSelect=function(a){var t=a.input,n=a.label,o=a.disabled,l=a.meta,i=(l.touched,l.error,l.warning,Object.values(e.props.usersData).filter((function(a){return a._id!==e.props.addModelDialog.userId})));return r.a.createElement("div",{className:e.props.classes.selectFieldDiv},r.a.createElement(Xt.a,{className:e.props.classes.inputLabel,shrink:!0},n),r.a.createElement(Qt.a,Object.assign({className:e.props.classes.selectField},t,{placeholder:n,label:n,disabled:o,fullWidth:!0}),i.map((function(e){return r.a.createElement(Ve.a,{key:e._id,value:e._id},e.email)}))))},e.renderModelSelect=function(a){var t=a.input,n=a.label,o=(a.disabled,a.meta),l=(o.touched,o.error,o.warning,a.userToClone),i=!0,s=[];return F(l)&&(i=!1,s=Object.values(e.props.usersData[l].models)),r.a.createElement("div",{className:e.props.classes.selectFieldDiv},r.a.createElement(Xt.a,{className:e.props.classes.inputLabel,shrink:!0},n),r.a.createElement(Qt.a,Object.assign({className:e.props.classes.selectField},t,{placeholder:n,label:n,disabled:i,fullWidth:!0}),s.map((function(e){return r.a.createElement(Ve.a,{key:e._id,value:e._id},e.name)}))))},e.renderSwitchToCloneRadioGroup=function(){var a=e.props,t=a.addModelDialog,n=a.t;return r.a.createElement(Nn.a,{value:t.newModel?"newModel":"cloneModel",onChange:e.handleSwitchToCloneRadioGroupChange},r.a.createElement(Ln.a,{value:"newModel",control:r.a.createElement(An.a,null),label:n("addModelDialog.createNewModelRadioLabel")}),r.a.createElement(Ln.a,{value:"cloneModel",control:r.a.createElement(An.a,null),label:n("addModelDialog.copyModelRadioLabel")}))},e.renderNewModelFields=function(){var a=e.props.t;return r.a.createElement(r.a.Fragment,null,r.a.createElement(ka.a,{name:"name",type:"text",component:e.renderField,label:a("addModelDialog.newModelNameFieldLabel")}),r.a.createElement(ka.a,{name:"file",component:e.renderFileField,label:a("addModelDialog.newModelNameAndroidFileLabel")}),r.a.createElement(ka.a,{name:"iosFile",component:e.renderIOSFileField,label:a("addModelDialog.newModelNameIOSFileLabel")}))},e.renderCloneModelFields=function(){var a=e.props.t;return r.a.createElement(r.a.Fragment,null,r.a.createElement(ka.a,{name:"userToClone",type:"text",component:e.renderUserSelect,label:a("addModelDialog.cloneModelUserFieldLabel")}),r.a.createElement(ka.a,{name:"modelToClone",type:"text",component:e.renderModelSelect,userToClone:e.props.formData.values.userToClone,label:a("addModelDialog.cloneModelModelFieldLabel")}))},e.renderField=function(a){var t=a.input,n=a.label,o=a.type,l=a.meta,i=l.touched,s=l.error,c=l.warning;return r.a.createElement("div",{className:e.props.classes.textFieldDiv},r.a.createElement(ha.a,Object.assign({className:e.props.classes.textField},t,{label:n,placeholder:n,type:o,fullWidth:!0,autoComplete:"off"})),i&&(s&&r.a.createElement(wa.a,{className:e.props.classes.errorLabel},s)||c&&r.a.createElement(wa.a,{className:e.props.classes.errorLabel},c)))},e.renderFileField=function(a){var t=a.input,n=a.label,o=a.meta,l=o.error,i=o.warning,s=e.props.formData.values,c=F(s)&&F(s.file);return r.a.createElement("div",{className:e.props.classes.inputFileDiv},r.a.createElement(Bn,Object.assign({className:e.props.classes.inputFile},t,{type:"file",label:n,fullWidth:!0})),c&&(l&&r.a.createElement(wa.a,{className:e.props.classes.errorLabel},l)||i&&r.a.createElement(wa.a,{className:e.props.classes.errorLabel},i)))},e.renderIOSFileField=function(a){var t=a.input,n=a.label,o=a.meta,l=o.error,i=o.warning,s=e.props.formData.values,c=F(s)&&F(s.iosFile);return r.a.createElement("div",{className:e.props.classes.inputFileDiv},r.a.createElement(Gn,Object.assign({className:e.props.classes.inputFile},t,{type:"file",label:n,fullWidth:!0})),c&&(l&&r.a.createElement(wa.a,{className:e.props.classes.errorLabel},l)||i&&r.a.createElement(wa.a,{className:e.props.classes.errorLabel},i)))},e.handleSwitchToCloneRadioGroupChange=function(){var a=Object(T.a)(C.a.mark((function a(t){return C.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:"newModel"===t.target.value?e.props.switchToNewModel():"cloneModel"===t.target.value&&e.props.switchToCloneModel(),e.props.reset();case 2:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}(),e.handleSubmit=function(){var a=Object(T.a)(C.a.mark((function a(t){var n,r,o,l,i,s,c,u,d,p,m,b;return C.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(n=e.props,r=n.formData,o=n.syncErrors,l=n.addModelDialog,i=n.createModelAndUploadFiles,s=n.cloneModel,c=n.hideAddModelDialog,u=n.reset,!F(o)){a.next=3;break}return a.abrupt("return");case 3:if(!l.newModel){a.next=10;break}return d=le.a.pick(r.values,"name"),p=l.userId,a.next=8,i(p,d,r.values.file,r.values.iosFile);case 8:a.next=14;break;case 10:return m=l.userId,b=r.values.modelToClone,a.next=14,s(m,b);case 14:return u(),a.next=17,c();case 17:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}(),e.handleCancelClicked=Object(T.a)(C.a.mark((function a(){var t,n;return C.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.props,n=t.hideAddModelDialog,(0,t.reset)(),a.next=4,n();case 4:case"end":return a.stop()}}),a)}))),e.checkUsersPermissions=function(e){return!!I(e)&&(!!F(e.permissions)&&on(e.permissions))},e.creationDisabled=function(){var a=e.props.formData;return!F(a)||F(a)&&(F(a.syncErrors)||!a.anyTouched)},e}return Object(s.a)(t,[{key:"render",value:function(){var e=this.props,a=e.currentUser,t=e.addModelDialog,n=e.classes,o=e.hideAddModelDialog,l=e.handleSubmit,i=e.t;return this.checkUsersPermissions(a)?r.a.createElement("div",null,r.a.createElement(da.a,{open:t.visible,className:n.dialog,disableBackdropClick:!0,disableEscapeKeyDown:!0,PaperProps:{style:{width:"fit-content",height:"fit-content",minWidth:500,background:Je.a[900]}}},r.a.createElement(va.a,{onSubmit:l(this.handleSubmit)},r.a.createElement(ga.a,{className:n.dialogTitle},i("addModelDialog.dialogTitle")),r.a.createElement(ya.a,{className:n.dialogContent},this.renderSwitchToCloneRadioGroup(),t.newModel?this.renderNewModelFields():this.renderCloneModelFields()),r.a.createElement(Ea.a,null,r.a.createElement(B.a,{type:"submit",disabled:this.creationDisabled(),color:"secondary",variant:"contained",style:{minWidth:125}},i("addModelDialog.createButtonText")),r.a.createElement(B.a,{onClick:this.handleCancelClicked,color:"primary",variant:"contained",style:{minWidth:125}},i("addModelDialog.cancelButtonText")))))):(t.visible&&o(),null)}}]),t}(n.Component),Vn=Object(U.a)((function(e){return{dialog:{},dialogTitle:{},dialogContent:{},inputFileDiv:{"margin-bottom":e.spacing(2),display:"block"},inputFile:{},textField:{background:Je.a[900]},textFieldDiv:{"margin-bottom":e.spacing(2),display:"block",background:Je.a[900]},errorLabel:{color:Sa.a[900],display:"block"},selectField:{},selectFieldDiv:{"margin-top":e.spacing(1),"margin-bottom":e.spacing(1),display:"block"}}}))(Hn),qn=Object(Ke.a)()(Vn),Yn=Object(Oa.a)({form:"addModelDialog",validate:function(e,a){var t={},n=null,r=null;a.addModelDialog.newModel?(F(e.file)&&e.file.size>=_t&&(t.file="File cannot exceed ".concat((_t/1024/1024).toFixed(2)," MB")),r=le.a.pick(e,["name","file","iosFile"]),n=Ta):(r=le.a.pick(e,["userToClone","modelToClone"]),n=Ua);var o=n.validate(r,{abortEarly:!1});if(!o.error)return t;var l,i=Object(h.a)(o.error.details);try{for(i.s();!(l=i.n()).done;){var s=l.value;t[s.path]=s.message}}catch(c){i.e(c)}finally{i.f()}return t},enableReinitialize:!0})(qn),Zn=Object(d.b)((function(e,a){return{currentUser:e.auth.currentUser,addModelDialog:e.addModelDialog,formData:e.form.addModelDialog,usersData:e.data.usersData,initialValues:{}}}),{showAddModelDialog:rn,hideAddModelDialog:function(){return{type:"ADD_MODEL_DIALOG_HIDE"}},createModelAndUploadFiles:function(e,a,t,n){return re(function(e,a,t,n){return function(){var r=Object(T.a)(C.a.mark((function r(o,l){var i,s;return C.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Ee(e,a);case 2:return i=r.sent,r.next=5,o({type:"FETCH_USER_MODEL_DATA",payload:{userId:e,model:i}});case 5:if(s=i._id,!F(t)){r.next=11;break}return r.next=9,o(Gt(e,s,t));case 9:return r.next=11,o(Wt());case 11:if(!F(n)){r.next=16;break}return r.next=14,o(qt(e,s,n));case 14:return r.next=16,o(Vt());case 16:case"end":return r.stop()}}),r)})));return function(e,a){return r.apply(this,arguments)}}()}(e,a,t,n))},switchToCloneModel:function(){return{type:"ADD_MODEL_DIALOG_SWITCH_TO_CLONE_MODEL"}},switchToNewModel:function(){return{type:"ADD_MODEL_DIALOG_SWITCH_TO_NEW_MODEL"}},cloneModel:function(e,a){return re(function(e,a){return function(){var t=Object(T.a)(C.a.mark((function t(n,r){var o,l,i,s,c,u,d,p;return C.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r();case 2:if(o=t.sent,l=o.data,i=l.usersData,!((s=Object.keys(i).filter((function(t){return a in i[t].models&&t!==e}))).length<=0)){t.next=8;break}throw new Error("Model ".concat(a," not found for any user different than ").concat(e));case 8:return c=s[0],u=le.a.pick(i[c].models[a],"name"),d=Object(f.a)(Object(f.a)({},u),{},{user:[].concat(Object(g.a)(s),[e])}),t.next=13,Ce(s[0],a,d);case 13:p=t.sent,n({type:"FETCH_USER_MODEL_DATA",payload:{userId:e,model:p}});case 15:case"end":return t.stop()}}),t)})));return function(e,a){return t.apply(this,arguments)}}()}(e,a))}})(Yn),Jn=function(e){Object(c.a)(t,e);var a=Object(u.a)(t);function t(){var e;Object(i.a)(this,t);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return(e=a.call.apply(a,[this].concat(o))).renderField=function(a){var t=a.input,n=a.label,o=a.type,l=a.disabled,i=a.meta,s=i.touched,c=i.error,u=i.warning;return r.a.createElement("div",{className:e.props.classes.textFieldDiv},r.a.createElement(ha.a,Object.assign({className:e.props.classes.textField},t,{label:n,placeholder:n,type:o,fullWidth:!0,disabled:l,autoComplete:"off"})),s&&(c&&r.a.createElement(wa.a,{className:e.props.classes.errorLabel},c)||u&&r.a.createElement(wa.a,{className:e.props.classes.errorLabel},u)))},e.handleSubmit=function(){var a=Object(T.a)(C.a.mark((function a(t){var n,r,o,l,i,s,c,u;return C.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(n=e.props,r=n.formData,o=n.syncErrors,l=n.hideEditModelDialog,i=n.editModelDialog,s=n.putModelDataAction,c=n.reset,!F(o)){a.next=3;break}return a.abrupt("return");case 3:return u=le.a.pick(r.values,"name"),a.next=6,s(i.userId,i.modelId,u);case 6:return c(),a.next=9,l();case 9:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}(),e.handleCancelClicked=Object(T.a)(C.a.mark((function a(){var t,n;return C.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.props,n=t.hideEditModelDialog,(0,t.reset)(),a.next=4,n();case 4:case"end":return a.stop()}}),a)}))),e.checkUsersPermissions=function(e){return!!I(e)&&(!!F(e.permissions)&&on(e.permissions))},e}return Object(s.a)(t,[{key:"render",value:function(){var e=this.props,a=e.currentUser,t=e.editModelDialog,n=e.classes,o=e.formData,l=e.hideEditModelDialog,i=e.handleSubmit,s=e.t;return this.checkUsersPermissions(a)?r.a.createElement("div",null,r.a.createElement(da.a,{open:t.visible,className:n.dialog,disableBackdropClick:!0,disableEscapeKeyDown:!0,PaperProps:{style:{width:"fit-content",height:"fit-content",minWidth:500,background:Je.a[900]}}},r.a.createElement(va.a,{onSubmit:i(this.handleSubmit)},r.a.createElement(ga.a,{className:n.dialogTitle},s("editModelDialog.dialogTitle")),r.a.createElement(ya.a,{className:n.dialogContent},r.a.createElement(ka.a,{name:"name",type:"text",component:this.renderField,label:s("editModelDialog.newModelNameFieldLabel")})),r.a.createElement(Ea.a,null,r.a.createElement(B.a,{type:"submit",disabled:!F(o)||F(o)&&F(o.syncErrors),color:"secondary",variant:"contained",style:{minWidth:125}},s("editModelDialog.editButtonText")),r.a.createElement(B.a,{onClick:this.handleCancelClicked,color:"primary",variant:"contained",style:{minWidth:125}},s("editModelDialog.cancelButtonText")))))):(t.visible&&l(),null)}}]),t}(n.Component),Kn=Object(U.a)((function(e){return{dialog:{},dialogTitle:{},dialogContent:{},textField:{},textFieldDiv:{"margin-bottom":e.spacing(2),display:"block"},errorLabel:{color:Sa.a[900],display:"block"},selectField:{},selectFieldDiv:{"margin-bottom":e.spacing(1),display:"block"}}}))(Jn),Xn=Object(Ke.a)()(Kn),Qn=Object(Oa.a)({form:"editModelDialog",validate:function(e,a){var t={},n=Fa.validate(e,{abortEarly:!1});if(!n.error)return t;var r,o=Object(h.a)(n.error.details);try{for(o.s();!(r=o.n()).done;){var l=r.value;t[l.path]=l.message}}catch(i){o.e(i)}finally{o.f()}return t},enableReinitialize:!0})(Xn),$n=Object(d.b)((function(e,a){var t=e.editModelDialog.userId,n=e.editModelDialog.modelId,r={};if(I(t)&&I(n)){var o=e.data.usersData[t];if(I(o)){var l=o.models[n];I(l)&&(r.name=l.name)}}return{currentUser:e.auth.currentUser,editModelDialog:e.editModelDialog,formData:e.form.editModelDialog,data:e.data.usersData,initialValues:r}}),{showEditModelDialog:Tt,hideEditModelDialog:function(){return{type:"EDIT_MODEL_DIALOG_HIDE"}},putModelDataAction:function(e,a,t){return re(function(e,a,t){return function(){var n=Object(T.a)(C.a.mark((function n(r,o){var l;return C.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Ce(e,a,t);case 2:l=n.sent,r({type:"FETCH_USER_MODEL_DATA",payload:{userId:e,model:l}});case 4:case"end":return n.stop()}}),n)})));return function(e,a){return n.apply(this,arguments)}}()}(e,a,t))}})(Qn),er=function(e){Object(c.a)(t,e);var a=Object(u.a)(t);function t(){var e;Object(i.a)(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=a.call.apply(a,[this].concat(r))).handleLanguageButtonClicked=function(){var a=Object(T.a)(C.a.mark((function a(t){var n,r,o;return C.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n=e.props,r=n.changeLanguage,o=n.hideChangeLanguageDialog,a.next=3,o();case 3:return a.next=5,r(t);case 5:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}(),e}return Object(s.a)(t,[{key:"render",value:function(){var e=this,a=this.props,t=a.changeLanguageDialog,n=a.classes,o=a.t;return r.a.createElement("div",null,r.a.createElement(da.a,{open:t.visible,className:n.dialog,disableBackdropClick:!0,disableEscapeKeyDown:!0,PaperProps:{style:{width:"fit-content",height:"fit-content",minWidth:500,background:Je.a[900]}}},r.a.createElement(ga.a,{className:n.dialogTitle},o("changeLanguageDialog.title")),r.a.createElement(ya.a,{className:n.dialogContent},o("changeLanguageDialog.content")),r.a.createElement(Ea.a,null,r.a.createElement(B.a,{color:"primary",variant:"contained",style:{minWidth:125},onClick:function(){e.handleLanguageButtonClicked("pl")}},o("changeLanguageDialog.buttons.pl")),r.a.createElement(B.a,{color:"primary",variant:"contained",style:{minWidth:125},onClick:function(){e.handleLanguageButtonClicked("en")}},o("changeLanguageDialog.buttons.en")))))}}]),t}(n.Component),ar=Object(U.a)((function(e){return{dialog:{},dialogTitle:{},dialogContent:{},textField:{},textFieldDiv:{"margin-bottom":e.spacing(2),display:"block"},errorLabel:{color:Sa.a[900],display:"block"},selectField:{},selectFieldDiv:{"margin-bottom":e.spacing(1),display:"block"}}}))(er),tr=Object(Ke.a)()(ar),nr=Object(d.b)((function(e,a){return{changeLanguageDialog:e.changeLanguageDialog}}),{changeLanguage:Be,hideChangeLanguageDialog:function(){return{type:"CHANGE_LANGUAGE_DIALOG_HIDE"}}})(tr),rr=function(e){Object(c.a)(t,e);var a=Object(u.a)(t);function t(){return Object(i.a)(this,t),a.apply(this,arguments)}return Object(s.a)(t,[{key:"render",value:function(){return r.a.createElement(R.a,{className:this.props.classes.fileNotFoundTypography,variant:"h4"},"Strona nieznaleziona")}}]),t}(n.Component),or=Object(tt.a)((function(e){return{fileNotFoundTypography:{margin:e.spacing(3)}}}))(rr),lr=function(e){Object(c.a)(t,e);var a=Object(u.a)(t);function t(){var e;Object(i.a)(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=a.call.apply(a,[this].concat(r))).componentDidMount=Object(T.a)(C.a.mark((function a(){var t;return C.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:t=te(),I(t)?e.props.loginUserWithJWT(t):e.props.showLoginDialog();case 2:case"end":return a.stop()}}),a)}))),e}return Object(s.a)(t,[{key:"render",value:function(){var e=this.props.classes;return r.a.createElement(r.a.Fragment,null,r.a.createElement(qa,null),r.a.createElement(fa,null),r.a.createElement(Ra,null),r.a.createElement(nr,null),r.a.createElement(Ga,null),r.a.createElement(vn,null),r.a.createElement(zn,null),r.a.createElement(Un,null),r.a.createElement(Mn,null),r.a.createElement($n,null),r.a.createElement(Zn,null),r.a.createElement("div",{className:e.root},r.a.createElement(ua,null),r.a.createElement(kt,null),r.a.createElement("main",{className:e.content},r.a.createElement("div",{className:e.appBarSpacer}),r.a.createElement(at.d,null,r.a.createElement(lt,{permissionsBit:0,path:"/sidiroar/me",component:et}),r.a.createElement(lt,{permissionsBit:1,path:"/sidiroar/users",component:hn}),r.a.createElement(at.b,{path:"/sidiroar/politykaprywatnosci"},r.a.createElement(ct,null)),r.a.createElement(at.b,{path:"/sidiroar/notFound"},r.a.createElement(or,null)),r.a.createElement(at.a,{exact:!0,path:"/sidiroar/",to:"/sidiroar/me"}),r.a.createElement(at.a,{path:"/sidiroar/",to:"/sidiroar/notFound"})))))}}]),t}(n.Component),ir=Object(U.a)((function(e){return{root:{display:"flex"},appBarSpacer:e.mixins.toolbar,content:{flexGrow:1,height:"100vh",overflow:"auto"}}}))(lr),sr=Object(d.b)((function(e,a){return{currentUser:e.auth.currentUser}}),{showLoginDialog:G,hideLoginDialog:H,loginUserWithJWT:function(e){return re(function(e){return function(){var a=Object(T.a)(C.a.mark((function a(t,n){var r;return C.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r=ne(e),a.next=3,t({type:"LOGIN_USER_WITH_JWT",payload:{user:r}});case 3:return a.next=5,t(Ne());case 5:if(!F(r.defaultLang)){a.next=8;break}return a.next=8,t(Be(r.defaultLang));case 8:case"end":return a.stop()}}),a)})));return function(e,t){return a.apply(this,arguments)}}()}(e))}})(ir),cr=t(726),ur=Object(D.a)({palette:{primary:Je.a,secondary:{main:Sa.a[900],light:Sa.a[600]},type:"dark",background:{default:Je.a[800]}}}),dr=function(e){Object(c.a)(t,e);var a=Object(u.a)(t);function t(){return Object(i.a)(this,t),a.apply(this,arguments)}return Object(s.a)(t,[{key:"render",value:function(){return r.a.createElement(d.a,{store:O},r.a.createElement(z.a,null,r.a.createElement(j.a,{theme:ur},r.a.createElement(cr.a,null),r.a.createElement(Ha.a,{maxSnack:1},r.a.createElement(sr,null)))))}}]),t}(n.Component);Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));var pr=t(452),mr=t(192),br=t(453);Pe.a.use(pr.a).use(mr.e).init({resources:br,fallbackLng:"en",interpolation:{escapeValue:!1}});Pe.a;l.a.render(r.a.createElement(dr,null),document.getElementById("root")),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(e){e.unregister()}))},77:function(e){e.exports=JSON.parse('{"authTokenName":"x-auth-token","authRoute":"api/auth","userRoute":"api/user","modelRoute":"api/model","fileRoute":"api/file","iosFileRoute":"api/file/ios","maxFileSize":314572800}')}},[[487,1,2]]]);
  //# sourceMappingURL=main.ddce7d48.chunk.js.map