andoncloud-sdk 1.2.3 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,12 +6,11 @@ var reactRouterDom = require('react-router-dom');
6
6
  var propTypes = require('prop-types');
7
7
  var CssBaseline = _interopDefault(require('@mui/material/CssBaseline'));
8
8
  var styles = require('@mui/material/styles');
9
- var useModalHook = require('use-modal-hook');
10
9
  var mobx = require('mobx');
10
+ var material = require('@mui/material');
11
11
  var mobxReactLite = require('mobx-react-lite');
12
12
  var Dialog = _interopDefault(require('@mui/material/Dialog'));
13
13
  var DialogContent = _interopDefault(require('@mui/material/DialogContent'));
14
- var material = require('@mui/material');
15
14
  var lab = require('@mui/lab');
16
15
  var Box = _interopDefault(require('@mui/material/Box'));
17
16
  var Card = _interopDefault(require('@mui/material/Card'));
@@ -792,6 +791,92 @@ function _extends$1() {
792
791
  return _extends$1.apply(this, arguments);
793
792
  }
794
793
 
794
+ var ModalContext = React__default.createContext({
795
+ showModal: null,
796
+ hideModal: null,
797
+ isOpenedModal: false
798
+ });
799
+
800
+ var ModalProvider = function ModalProvider(_ref) {
801
+ var children = _ref.children;
802
+
803
+ var _useState = React.useState({}),
804
+ modalsConfig = _useState[0],
805
+ setConfig = _useState[1];
806
+
807
+ var hideModal = React.useCallback(function (modalKey, onClose) {
808
+ setConfig(function (prevConfig) {
809
+ var _extends2;
810
+
811
+ return _extends$1({}, prevConfig, (_extends2 = {}, _extends2[modalKey] = _extends$1({}, prevConfig[modalKey], {
812
+ isOpen: false
813
+ }), _extends2));
814
+ });
815
+
816
+ if (onClose) {
817
+ onClose();
818
+ }
819
+ }, [setConfig]);
820
+ var showModal = React.useCallback(function (modalKey, component, modalData) {
821
+ setConfig(function (prevConfig) {
822
+ var _extends3;
823
+
824
+ return _extends$1({}, prevConfig, (_extends3 = {}, _extends3[modalKey] = {
825
+ isOpen: true,
826
+ component: component,
827
+ data: modalData
828
+ }, _extends3));
829
+ });
830
+ }, [setConfig]);
831
+ var contextValue = React.useMemo(function () {
832
+ return {
833
+ showModal: showModal,
834
+ hideModal: hideModal,
835
+ isOpenedModal: Object.values(modalsConfig).some(function (_ref2) {
836
+ var isOpen = _ref2.isOpen;
837
+ return isOpen;
838
+ })
839
+ };
840
+ }, [hideModal, showModal, modalsConfig]);
841
+ return /*#__PURE__*/React__default.createElement(ModalContext.Provider, {
842
+ value: contextValue
843
+ }, children, Object.keys(modalsConfig).map(function (modalKey) {
844
+ var _modalsConfig$modalKe = modalsConfig[modalKey],
845
+ Component = _modalsConfig$modalKe.component,
846
+ isOpen = _modalsConfig$modalKe.isOpen,
847
+ data = _modalsConfig$modalKe.data;
848
+ return isOpen && /*#__PURE__*/React__default.createElement(Component, _extends$1({
849
+ onClose: function onClose() {
850
+ return hideModal(modalKey);
851
+ },
852
+ key: modalKey,
853
+ isOpen: isOpen
854
+ }, data));
855
+ }));
856
+ };
857
+
858
+ var generateModalKey = function () {
859
+ var count = 0;
860
+ return function () {
861
+ return "" + ++count;
862
+ };
863
+ }();
864
+
865
+ function useModal(component, data, onClose) {
866
+ var key = React.useMemo(generateModalKey, []);
867
+ var context = React.useContext(ModalContext);
868
+ var showModal = React.useCallback(function (modalData) {
869
+ return context.showModal(key, component, modalData instanceof Event ? data : _extends$1({}, data, modalData));
870
+ }, [data, context.showModal]);
871
+ var hideModal = React.useCallback(function () {
872
+ return context.hideModal(key, onClose);
873
+ }, [context.hideModal, onClose, key]);
874
+ return [showModal, hideModal];
875
+ }
876
+
877
+ useModal.ModalContext = ModalContext;
878
+ useModal.ModalProvider = ModalProvider;
879
+
795
880
  var AuthConfigContext = React.createContext();
796
881
  var AuthConfigProvider = function AuthConfigProvider(_ref) {
797
882
  var children = _ref.children,
@@ -934,8 +1019,8 @@ var acFetch = function acFetch(url, options) {
934
1019
 
935
1020
  return response;
936
1021
  });
937
- }, function () {
938
- sessionStore.setNetworkError(true);
1022
+ }, function (e) {
1023
+ sessionStore.setNetworkError(e.message);
939
1024
  }));
940
1025
  } catch (e) {
941
1026
  return Promise.reject(e);
@@ -1348,7 +1433,7 @@ var SessionStore = /*#__PURE__*/function () {
1348
1433
  function SessionStore() {
1349
1434
  this.loading = false;
1350
1435
  this.api = new SessionAPI();
1351
- this.networkError = false;
1436
+ this.networkError = null;
1352
1437
  mobx.makeObservable(this, {
1353
1438
  loading: mobx.observable
1354
1439
  });
@@ -2227,16 +2312,37 @@ var LoginForm = function LoginForm(_ref) {
2227
2312
  setPassword = _useState2[1];
2228
2313
 
2229
2314
  var navigate = reactRouterDom.useNavigate();
2315
+
2316
+ var authorizeUser = function authorizeUser(credentials) {
2317
+ try {
2318
+ return Promise.resolve(sessionStore.authorize(_extends$1({
2319
+ scope: scope
2320
+ }, credentials), storeSession)).then(function (session) {
2321
+ if (session) {
2322
+ if (onSuccess && typeof onSuccess === "function") {
2323
+ onSuccess(session);
2324
+ }
2325
+
2326
+ setPassword("");
2327
+ navigate(redirectPath);
2328
+ } else if (onFailure && typeof onFailure === "function") {
2329
+ onFailure();
2330
+ }
2331
+ });
2332
+ } catch (e) {
2333
+ return Promise.reject(e);
2334
+ }
2335
+ };
2336
+
2230
2337
  React.useEffect(function () {
2231
2338
  onscan.attachTo(document, {
2232
2339
  suffixKeyCodes: [13],
2233
2340
  reactToPaste: true,
2234
2341
  onScan: function onScan(sCode, _) {
2235
- console.log("logging in with code: " + sCode);
2236
- sessionStore.authorize({
2342
+ void authorizeUser({
2237
2343
  username: "code",
2238
2344
  password: sCode
2239
- }, storeSession);
2345
+ });
2240
2346
  }
2241
2347
  });
2242
2348
  return function () {
@@ -2255,22 +2361,11 @@ var LoginForm = function LoginForm(_ref) {
2255
2361
  var handleSubmit = function handleSubmit(event) {
2256
2362
  try {
2257
2363
  event.preventDefault();
2258
- return Promise.resolve(sessionStore.authorize({
2259
- scope: scope,
2364
+ void authorizeUser({
2260
2365
  username: username,
2261
2366
  password: password
2262
- }, storeSession)).then(function (session) {
2263
- if (session) {
2264
- if (onSuccess && typeof onSuccess === "function") {
2265
- onSuccess(session);
2266
- }
2267
-
2268
- setPassword("");
2269
- navigate(redirectPath);
2270
- } else if (onFailure && typeof onFailure === "function") {
2271
- onFailure();
2272
- }
2273
2367
  });
2368
+ return Promise.resolve();
2274
2369
  } catch (e) {
2275
2370
  return Promise.reject(e);
2276
2371
  }
@@ -2775,7 +2870,7 @@ var useLogin = function useLogin(scope, loginProps) {
2775
2870
  redirectUri = _useAuthConfig.redirectUri,
2776
2871
  defaultRedirectPath = _useAuthConfig.redirectPath;
2777
2872
 
2778
- var _useModal = useModalHook.useModal(LoginModal$1, _extends$1({
2873
+ var _useModal = useModal(LoginModal$1, _extends$1({
2779
2874
  scope: scope
2780
2875
  }, loginProps)),
2781
2876
  showModal = _useModal[0];
@@ -3142,6 +3237,8 @@ Container.defaultProps = {
3142
3237
  headerProps: {}
3143
3238
  };
3144
3239
 
3240
+ var backdropPattern = "backdropPattern~bkGGEBvj.svg";
3241
+
3145
3242
  var FullscreenBackdrop = function FullscreenBackdrop() {
3146
3243
  return /*#__PURE__*/React__default.createElement("div", {
3147
3244
  style: {
@@ -3153,423 +3250,12 @@ var FullscreenBackdrop = function FullscreenBackdrop() {
3153
3250
  left: "0",
3154
3251
  width: "100%",
3155
3252
  height: "100%",
3156
- overflow: "hidden"
3253
+ overflow: "hidden",
3254
+ backgroundImage: "url(" + backdropPattern + ")",
3255
+ backgroundRepeat: "no-repeat",
3256
+ backgroundSize: "cover"
3157
3257
  }
3158
- }, /*#__PURE__*/React__default.createElement("svg", {
3159
- width: "1920",
3160
- height: "1080",
3161
- viewBox: "0 0 1920 1080",
3162
- fill: "none",
3163
- xmlns: "http://www.w3.org/2000/svg"
3164
- }, /*#__PURE__*/React__default.createElement("g", {
3165
- filter: "url(#filter0_d_2183_34073)"
3166
- }, /*#__PURE__*/React__default.createElement("path", {
3167
- d: "M0 0H1920V1080H0V0Z",
3168
- fill: "#1E1E1E"
3169
- })), /*#__PURE__*/React__default.createElement("mask", {
3170
- id: "mask0_2183_34073",
3171
- style: {
3172
- maskType: "alpha"
3173
- },
3174
- maskUnits: "userSpaceOnUse",
3175
- x: "0",
3176
- y: "0",
3177
- width: "1920",
3178
- height: "1080"
3179
- }, /*#__PURE__*/React__default.createElement("rect", {
3180
- width: "1920",
3181
- height: "1080",
3182
- fill: "#1E1E1E"
3183
- })), /*#__PURE__*/React__default.createElement("g", {
3184
- mask: "url(#mask0_2183_34073)"
3185
- }, /*#__PURE__*/React__default.createElement("path", {
3186
- d: "M948.46 -0.00012207L931.49 -0.00012207L0 931.49L0 948.46L948.46 -0.00012207Z",
3187
- fill: "black",
3188
- fillOpacity: "0.1"
3189
- }), /*#__PURE__*/React__default.createElement("path", {
3190
- d: "M914.52 -0.00012207L897.54 -0.00012207L0 897.54L0 914.52L914.52 -0.00012207Z",
3191
- fill: "black",
3192
- fillOpacity: "0.1"
3193
- }), /*#__PURE__*/React__default.createElement("path", {
3194
- d: "M880.58 -0.00012207L863.6 -0.00012207L0 863.6L0 880.58L880.58 -0.00012207Z",
3195
- fill: "black",
3196
- fillOpacity: "0.1"
3197
- }), /*#__PURE__*/React__default.createElement("path", {
3198
- d: "M1016.34 -0.00012207L999.37 -0.00012207L0 999.37L0 1016.34L1016.34 -0.00012207Z",
3199
- fill: "black",
3200
- fillOpacity: "0.1"
3201
- }), /*#__PURE__*/React__default.createElement("path", {
3202
- d: "M982.4 -0.00012207L965.43 -0.00012207L0 965.43L0 982.4L982.4 -0.00012207Z",
3203
- fill: "black",
3204
- fillOpacity: "0.1"
3205
- }), /*#__PURE__*/React__default.createElement("path", {
3206
- d: "M846.63 -0.00012207L829.66 -0.00012207L0 829.66L0 846.63L846.63 -0.00012207Z",
3207
- fill: "black",
3208
- fillOpacity: "0.1"
3209
- }), /*#__PURE__*/React__default.createElement("path", {
3210
- d: "M778.75 -0.00012207L761.78 -0.00012207L0 761.78L0 778.75L778.75 -0.00012207Z",
3211
- fill: "black",
3212
- fillOpacity: "0.1"
3213
- }), /*#__PURE__*/React__default.createElement("path", {
3214
- d: "M1050.28 -0.00012207L1033.31 -0.00012207L0 1033.31L0 1050.28L1050.28 -0.00012207Z",
3215
- fill: "black",
3216
- fillOpacity: "0.1"
3217
- }), /*#__PURE__*/React__default.createElement("path", {
3218
- d: "M812.69 -0.00012207L795.72 -0.00012207L0 795.72L0 812.69L812.69 -0.00012207Z",
3219
- fill: "black",
3220
- fillOpacity: "0.1"
3221
- }), /*#__PURE__*/React__default.createElement("path", {
3222
- d: "M744.81 -0.00012207L727.84 -0.00012207L0 727.84L0 744.81L744.81 -0.00012207Z",
3223
- fill: "black",
3224
- fillOpacity: "0.1"
3225
- }), /*#__PURE__*/React__default.createElement("path", {
3226
- d: "M1457.57 -0.00012207L1440.6 -0.00012207L360.602 1080H377.572L1457.57 -0.00012207Z",
3227
- fill: "black",
3228
- fillOpacity: "0.1"
3229
- }), /*#__PURE__*/React__default.createElement("path", {
3230
- d: "M1389.69 -0.00012207L1372.72 -0.00012207L292.719 1080H309.689L1389.69 -0.00012207Z",
3231
- fill: "black",
3232
- fillOpacity: "0.1"
3233
- }), /*#__PURE__*/React__default.createElement("path", {
3234
- d: "M1321.81 -0.00012207L1304.84 -0.00012207L224.84 1080H241.81L1321.81 -0.00012207Z",
3235
- fill: "black",
3236
- fillOpacity: "0.1"
3237
- }), /*#__PURE__*/React__default.createElement("path", {
3238
- d: "M1355.75 -0.00012207L1338.78 -0.00012207L258.781 1080H275.751L1355.75 -0.00012207Z",
3239
- fill: "black",
3240
- fillOpacity: "0.1"
3241
- }), /*#__PURE__*/React__default.createElement("path", {
3242
- d: "M710.87 -0.00012207L693.9 -0.00012207L0 693.9L0 710.87L710.87 -0.00012207Z",
3243
- fill: "black",
3244
- fillOpacity: "0.1"
3245
- }), /*#__PURE__*/React__default.createElement("path", {
3246
- d: "M1423.63 -0.00012207L1406.66 -0.00012207L326.66 1080H343.63L1423.63 -0.00012207Z",
3247
- fill: "black",
3248
- fillOpacity: "0.1"
3249
- }), /*#__PURE__*/React__default.createElement("path", {
3250
- d: "M1152.1 -0.00012207L1135.13 -0.00012207L55.1289 1080H72.0989L1152.1 -0.00012207Z",
3251
- fill: "black",
3252
- fillOpacity: "0.1"
3253
- }), /*#__PURE__*/React__default.createElement("path", {
3254
- d: "M1118.16 -0.00012207L1101.19 -0.00012207L21.1914 1080H38.1614L1118.16 -0.00012207Z",
3255
- fill: "black",
3256
- fillOpacity: "0.1"
3257
- }), /*#__PURE__*/React__default.createElement("path", {
3258
- d: "M1186.04 -0.00012207L1169.07 -0.00012207L89.0703 1080H106.04L1186.04 -0.00012207Z",
3259
- fill: "black",
3260
- fillOpacity: "0.1"
3261
- }), /*#__PURE__*/React__default.createElement("path", {
3262
- d: "M1253.93 -0.00012207L1236.96 -0.00012207L156.961 1080H173.931L1253.93 -0.00012207Z",
3263
- fill: "black",
3264
- fillOpacity: "0.1"
3265
- }), /*#__PURE__*/React__default.createElement("path", {
3266
- d: "M1219.99 -0.00012207L1203.02 -0.00012207L123.02 1080H139.99L1219.99 -0.00012207Z",
3267
- fill: "black",
3268
- fillOpacity: "0.1"
3269
- }), /*#__PURE__*/React__default.createElement("path", {
3270
- d: "M1287.87 -0.00012207L1270.9 -0.00012207L190.898 1080H207.868L1287.87 -0.00012207Z",
3271
- fill: "black",
3272
- fillOpacity: "0.1"
3273
- }), /*#__PURE__*/React__default.createElement("path", {
3274
- d: "M439.34 -0.00012207L422.37 -0.00012207L0 422.37L0 439.34L439.34 -0.00012207Z",
3275
- fill: "black",
3276
- fillOpacity: "0.1"
3277
- }), /*#__PURE__*/React__default.createElement("path", {
3278
- d: "M167.81 -0.00012207L150.84 -0.00012207L0 150.84L0 167.81L167.81 -0.00012207Z",
3279
- fill: "black",
3280
- fillOpacity: "0.1"
3281
- }), /*#__PURE__*/React__default.createElement("path", {
3282
- d: "M201.75 -0.00012207L184.78 -0.00012207L0 184.78L0 201.75L201.75 -0.00012207Z",
3283
- fill: "black",
3284
- fillOpacity: "0.1"
3285
- }), /*#__PURE__*/React__default.createElement("path", {
3286
- d: "M133.87 -0.00012207L116.9 -0.00012207L0 116.9L0 133.87L133.87 -0.00012207Z",
3287
- fill: "black",
3288
- fillOpacity: "0.1"
3289
- }), /*#__PURE__*/React__default.createElement("path", {
3290
- d: "M235.69 -0.00012207L218.72 -0.00012207L0 218.72L0 235.69L235.69 -0.00012207Z",
3291
- fill: "black",
3292
- fillOpacity: "0.1"
3293
- }), /*#__PURE__*/React__default.createElement("path", {
3294
- d: "M269.63 -0.00012207L252.66 -0.00012207L0 252.66L0 269.63L269.63 -0.00012207Z",
3295
- fill: "black",
3296
- fillOpacity: "0.1"
3297
- }), /*#__PURE__*/React__default.createElement("path", {
3298
- d: "M1067.25 -0.00012207L0 1067.25L0 1080H4.22L1084.22 -0.00012207L1067.25 -0.00012207Z",
3299
- fill: "black",
3300
- fillOpacity: "0.1"
3301
- }), /*#__PURE__*/React__default.createElement("path", {
3302
- d: "M303.57 -0.00012207L286.61 -0.00012207L0 286.61L0 303.57L303.57 -0.00012207Z",
3303
- fill: "black",
3304
- fillOpacity: "0.1"
3305
- }), /*#__PURE__*/React__default.createElement("path", {
3306
- d: "M32.05 -0.00012207L15.08 -0.00012207L0 15.0799L0 32.0499L32.05 -0.00012207Z",
3307
- fill: "black",
3308
- fillOpacity: "0.1"
3309
- }), /*#__PURE__*/React__default.createElement("path", {
3310
- d: "M65.99 -0.00012207L49.02 -0.00012207L0 49.0199L0 65.9899L65.99 -0.00012207Z",
3311
- fill: "black",
3312
- fillOpacity: "0.1"
3313
- }), /*#__PURE__*/React__default.createElement("path", {
3314
- d: "M99.93 -0.00012207L82.96 -0.00012207L0 82.9599L0 99.9299L99.93 -0.00012207Z",
3315
- fill: "black",
3316
- fillOpacity: "0.1"
3317
- }), /*#__PURE__*/React__default.createElement("path", {
3318
- d: "M1491.52 -0.00012207L1474.54 -0.00012207L394.539 1080H411.509L1491.52 -0.00012207Z",
3319
- fill: "black",
3320
- fillOpacity: "0.1"
3321
- }), /*#__PURE__*/React__default.createElement("path", {
3322
- d: "M575.1 -0.00012207L558.13 -0.00012207L0 558.13L0 575.1L575.1 -0.00012207Z",
3323
- fill: "black",
3324
- fillOpacity: "0.1"
3325
- }), /*#__PURE__*/React__default.createElement("path", {
3326
- d: "M507.22 -0.00012207L490.25 -0.00012207L0 490.25L0 507.22L507.22 -0.00012207Z",
3327
- fill: "black",
3328
- fillOpacity: "0.1"
3329
- }), /*#__PURE__*/React__default.createElement("path", {
3330
- d: "M337.52 -0.00012207L320.55 -0.00012207L0 320.55L0 337.52L337.52 -0.00012207Z",
3331
- fill: "black",
3332
- fillOpacity: "0.1"
3333
- }), /*#__PURE__*/React__default.createElement("path", {
3334
- d: "M642.99 -0.00012207L626.02 -0.00012207L0 626.02L0 642.99L642.99 -0.00012207Z",
3335
- fill: "black",
3336
- fillOpacity: "0.1"
3337
- }), /*#__PURE__*/React__default.createElement("path", {
3338
- d: "M609.04 -0.00012207L592.08 -0.00012207L0 592.08L0 609.04L609.04 -0.00012207Z",
3339
- fill: "black",
3340
- fillOpacity: "0.1"
3341
- }), /*#__PURE__*/React__default.createElement("path", {
3342
- d: "M541.16 -0.00012207L524.19 -0.00012207L0 524.19L0 541.16L541.16 -0.00012207Z",
3343
- fill: "black",
3344
- fillOpacity: "0.1"
3345
- }), /*#__PURE__*/React__default.createElement("path", {
3346
- d: "M473.28 -0.00012207L456.31 -0.00012207L0 456.31L0 473.28L473.28 -0.00012207Z",
3347
- fill: "black",
3348
- fillOpacity: "0.1"
3349
- }), /*#__PURE__*/React__default.createElement("path", {
3350
- d: "M371.46 -0.00012207L354.49 -0.00012207L0 354.49L0 371.46L371.46 -0.00012207Z",
3351
- fill: "black",
3352
- fillOpacity: "0.1"
3353
- }), /*#__PURE__*/React__default.createElement("path", {
3354
- d: "M405.4 -0.00012207L388.43 -0.00012207L0 388.43L0 405.4L405.4 -0.00012207Z",
3355
- fill: "black",
3356
- fillOpacity: "0.1"
3357
- }), /*#__PURE__*/React__default.createElement("path", {
3358
- d: "M676.93 -0.00012207L659.96 -0.00012207L0 659.96L0 676.93L676.93 -0.00012207Z",
3359
- fill: "black",
3360
- fillOpacity: "0.1"
3361
- }), /*#__PURE__*/React__default.createElement("path", {
3362
- d: "M1920 420.04V403.07L1243.07 1080H1260.04L1920 420.04Z",
3363
- fill: "black",
3364
- fillOpacity: "0.1"
3365
- }), /*#__PURE__*/React__default.createElement("path", {
3366
- d: "M1920 352.16V335.19L1175.19 1080H1192.16L1920 352.16Z",
3367
- fill: "black",
3368
- fillOpacity: "0.1"
3369
- }), /*#__PURE__*/React__default.createElement("path", {
3370
- d: "M1920 589.75V572.78L1412.78 1080H1429.75L1920 589.75Z",
3371
- fill: "black",
3372
- fillOpacity: "0.1"
3373
- }), /*#__PURE__*/React__default.createElement("path", {
3374
- d: "M1920 623.69V606.72L1446.72 1080H1463.69L1920 623.69Z",
3375
- fill: "black",
3376
- fillOpacity: "0.1"
3377
- }), /*#__PURE__*/React__default.createElement("path", {
3378
- d: "M1920 691.57V674.6L1514.6 1080H1531.57L1920 691.57Z",
3379
- fill: "black",
3380
- fillOpacity: "0.1"
3381
- }), /*#__PURE__*/React__default.createElement("path", {
3382
- d: "M1920 657.63V640.66L1480.66 1080H1497.63L1920 657.63Z",
3383
- fill: "black",
3384
- fillOpacity: "0.1"
3385
- }), /*#__PURE__*/React__default.createElement("path", {
3386
- d: "M1920 386.1V369.13L1209.13 1080H1226.1L1920 386.1Z",
3387
- fill: "black",
3388
- fillOpacity: "0.1"
3389
- }), /*#__PURE__*/React__default.createElement("path", {
3390
- d: "M1920 453.98V437.01L1277.01 1080H1293.98L1920 453.98Z",
3391
- fill: "black",
3392
- fillOpacity: "0.1"
3393
- }), /*#__PURE__*/React__default.createElement("path", {
3394
- d: "M1920 521.87V504.9L1344.9 1080H1361.87L1920 521.87Z",
3395
- fill: "black",
3396
- fillOpacity: "0.1"
3397
- }), /*#__PURE__*/React__default.createElement("path", {
3398
- d: "M1920 725.51V708.54L1548.54 1080H1565.51L1920 725.51Z",
3399
- fill: "black",
3400
- fillOpacity: "0.1"
3401
- }), /*#__PURE__*/React__default.createElement("path", {
3402
- d: "M1920 487.93V470.95L1310.95 1080H1327.92L1920 487.93Z",
3403
- fill: "black",
3404
- fillOpacity: "0.1"
3405
- }), /*#__PURE__*/React__default.createElement("path", {
3406
- d: "M1920 555.81V538.84L1378.84 1080H1395.81L1920 555.81Z",
3407
- fill: "black",
3408
- fillOpacity: "0.1"
3409
- }), /*#__PURE__*/React__default.createElement("path", {
3410
- d: "M1920 963.1V946.13L1786.13 1080H1803.1L1920 963.1Z",
3411
- fill: "black",
3412
- fillOpacity: "0.1"
3413
- }), /*#__PURE__*/React__default.createElement("path", {
3414
- d: "M1920 929.16V912.19L1752.19 1080H1769.16L1920 929.16Z",
3415
- fill: "black",
3416
- fillOpacity: "0.1"
3417
- }), /*#__PURE__*/React__default.createElement("path", {
3418
- d: "M1920 997.04V980.07L1820.07 1080H1837.04L1920 997.04Z",
3419
- fill: "black",
3420
- fillOpacity: "0.1"
3421
- }), /*#__PURE__*/React__default.createElement("path", {
3422
- d: "M1920 759.45V742.48L1582.48 1080H1599.45L1920 759.45Z",
3423
- fill: "black",
3424
- fillOpacity: "0.1"
3425
- }), /*#__PURE__*/React__default.createElement("path", {
3426
- d: "M1920 1064.92V1047.95L1887.95 1080H1904.92L1920 1064.92Z",
3427
- fill: "black",
3428
- fillOpacity: "0.1"
3429
- }), /*#__PURE__*/React__default.createElement("path", {
3430
- d: "M1920 1030.98V1014.01L1854.01 1080H1870.98L1920 1030.98Z",
3431
- fill: "black",
3432
- fillOpacity: "0.1"
3433
- }), /*#__PURE__*/React__default.createElement("path", {
3434
- d: "M1920 793.39V776.42L1616.42 1080H1633.39L1920 793.39Z",
3435
- fill: "black",
3436
- fillOpacity: "0.1"
3437
- }), /*#__PURE__*/React__default.createElement("path", {
3438
- d: "M1920 827.34V810.37L1650.37 1080H1667.34L1920 827.34Z",
3439
- fill: "black",
3440
- fillOpacity: "0.1"
3441
- }), /*#__PURE__*/React__default.createElement("path", {
3442
- d: "M1920 861.28V844.31L1684.31 1080H1701.28L1920 861.28Z",
3443
- fill: "black",
3444
- fillOpacity: "0.1"
3445
- }), /*#__PURE__*/React__default.createElement("path", {
3446
- d: "M1920 895.22V878.25L1718.25 1080H1735.22L1920 895.22Z",
3447
- fill: "black",
3448
- fillOpacity: "0.1"
3449
- }), /*#__PURE__*/React__default.createElement("path", {
3450
- d: "M1920 318.22V301.25L1141.25 1080H1158.22L1920 318.22Z",
3451
- fill: "black",
3452
- fillOpacity: "0.1"
3453
- }), /*#__PURE__*/React__default.createElement("path", {
3454
- d: "M1729.1 -0.00012207L1712.13 -0.00012207L632.129 1080H649.099L1729.1 -0.00012207Z",
3455
- fill: "black",
3456
- fillOpacity: "0.1"
3457
- }), /*#__PURE__*/React__default.createElement("path", {
3458
- d: "M1763.04 -0.00012207L1746.07 -0.00012207L666.07 1080H683.04L1763.04 -0.00012207Z",
3459
- fill: "black",
3460
- fillOpacity: "0.1"
3461
- }), /*#__PURE__*/React__default.createElement("path", {
3462
- d: "M1830.93 -0.00012207L1813.96 -0.00012207L733.961 1080H750.931L1830.93 -0.00012207Z",
3463
- fill: "black",
3464
- fillOpacity: "0.1"
3465
- }), /*#__PURE__*/React__default.createElement("path", {
3466
- d: "M1796.98 -0.00012207L1780.01 -0.00012207L700.012 1080H716.992L1796.98 -0.00012207Z",
3467
- fill: "black",
3468
- fillOpacity: "0.1"
3469
- }), /*#__PURE__*/React__default.createElement("path", {
3470
- d: "M1864.87 -0.00012207L1847.9 -0.00012207L767.898 1080H784.868L1864.87 -0.00012207Z",
3471
- fill: "black",
3472
- fillOpacity: "0.1"
3473
- }), /*#__PURE__*/React__default.createElement("path", {
3474
- d: "M1695.16 -0.00012207L1678.19 -0.00012207L598.191 1080H615.161L1695.16 -0.00012207Z",
3475
- fill: "black",
3476
- fillOpacity: "0.1"
3477
- }), /*#__PURE__*/React__default.createElement("path", {
3478
- d: "M1593.34 -0.00012207L1576.37 -0.00012207L496.371 1080H513.341L1593.34 -0.00012207Z",
3479
- fill: "black",
3480
- fillOpacity: "0.1"
3481
- }), /*#__PURE__*/React__default.createElement("path", {
3482
- d: "M1559.4 -0.00012207L1542.43 -0.00012207L462.43 1080H479.4L1559.4 -0.00012207Z",
3483
- fill: "black",
3484
- fillOpacity: "0.1"
3485
- }), /*#__PURE__*/React__default.createElement("path", {
3486
- d: "M1661.22 -0.00012207L1644.25 -0.00012207L564.25 1080H581.22L1661.22 -0.00012207Z",
3487
- fill: "black",
3488
- fillOpacity: "0.1"
3489
- }), /*#__PURE__*/React__default.createElement("path", {
3490
- d: "M1627.28 -0.00012207L1610.31 -0.00012207L530.309 1080H547.279L1627.28 -0.00012207Z",
3491
- fill: "black",
3492
- fillOpacity: "0.1"
3493
- }), /*#__PURE__*/React__default.createElement("path", {
3494
- d: "M1920 46.6898V29.7198L869.719 1080H886.689L1920 46.6898Z",
3495
- fill: "black",
3496
- fillOpacity: "0.1"
3497
- }), /*#__PURE__*/React__default.createElement("path", {
3498
- d: "M1920 216.4V199.43L1039.42 1080H1056.4L1920 216.4Z",
3499
- fill: "black",
3500
- fillOpacity: "0.1"
3501
- }), /*#__PURE__*/React__default.createElement("path", {
3502
- d: "M1920 182.46V165.48L1005.48 1080H1022.46L1920 182.46Z",
3503
- fill: "black",
3504
- fillOpacity: "0.1"
3505
- }), /*#__PURE__*/React__default.createElement("path", {
3506
- d: "M1920 250.34V233.37L1073.37 1080H1090.34L1920 250.34Z",
3507
- fill: "black",
3508
- fillOpacity: "0.1"
3509
- }), /*#__PURE__*/React__default.createElement("path", {
3510
- d: "M1920 148.51V131.54L971.539 1080H988.509L1920 148.51Z",
3511
- fill: "black",
3512
- fillOpacity: "0.1"
3513
- }), /*#__PURE__*/React__default.createElement("path", {
3514
- d: "M1898.81 -0.00012207L1881.84 -0.00012207L801.84 1080H818.81L1898.81 -0.00012207Z",
3515
- fill: "black",
3516
- fillOpacity: "0.1"
3517
- }), /*#__PURE__*/React__default.createElement("path", {
3518
- d: "M1920 284.28V267.31L1107.31 1080H1124.28L1920 284.28Z",
3519
- fill: "black",
3520
- fillOpacity: "0.1"
3521
- }), /*#__PURE__*/React__default.createElement("path", {
3522
- d: "M1525.46 -0.00012207L1508.48 -0.00012207L428.488 1080H445.458L1525.46 -0.00012207Z",
3523
- fill: "black",
3524
- fillOpacity: "0.1"
3525
- }), /*#__PURE__*/React__default.createElement("path", {
3526
- d: "M1920 12.7499V-0.00012207L1915.78 -0.00012207L835.781 1080H852.751L1920 12.7499Z",
3527
- fill: "black",
3528
- fillOpacity: "0.1"
3529
- }), /*#__PURE__*/React__default.createElement("path", {
3530
- d: "M1920 80.6299V63.6599L903.66 1080H920.63L1920 80.6299Z",
3531
- fill: "black",
3532
- fillOpacity: "0.1"
3533
- }), /*#__PURE__*/React__default.createElement("path", {
3534
- d: "M1920 114.57V97.5999L937.602 1080H954.572L1920 114.57Z",
3535
- fill: "black",
3536
- fillOpacity: "0.1"
3537
- })), /*#__PURE__*/React__default.createElement("defs", null, /*#__PURE__*/React__default.createElement("filter", {
3538
- id: "filter0_d_2183_34073",
3539
- x: "-60",
3540
- y: "-64",
3541
- width: "2048",
3542
- height: "1208",
3543
- filterUnits: "userSpaceOnUse",
3544
- colorInterpolationFilters: "sRGB"
3545
- }, /*#__PURE__*/React__default.createElement("feFlood", {
3546
- floodOpacity: "0",
3547
- result: "BackgroundImageFix"
3548
- }), /*#__PURE__*/React__default.createElement("feColorMatrix", {
3549
- in: "SourceAlpha",
3550
- type: "matrix",
3551
- values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
3552
- result: "hardAlpha"
3553
- }), /*#__PURE__*/React__default.createElement("feOffset", {
3554
- dx: "4"
3555
- }), /*#__PURE__*/React__default.createElement("feGaussianBlur", {
3556
- stdDeviation: "32"
3557
- }), /*#__PURE__*/React__default.createElement("feComposite", {
3558
- in2: "hardAlpha",
3559
- operator: "out"
3560
- }), /*#__PURE__*/React__default.createElement("feColorMatrix", {
3561
- type: "matrix",
3562
- values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.28 0"
3563
- }), /*#__PURE__*/React__default.createElement("feBlend", {
3564
- mode: "normal",
3565
- in2: "BackgroundImageFix",
3566
- result: "effect1_dropShadow_2183_34073"
3567
- }), /*#__PURE__*/React__default.createElement("feBlend", {
3568
- mode: "normal",
3569
- in: "SourceGraphic",
3570
- in2: "effect1_dropShadow_2183_34073",
3571
- result: "shape"
3572
- })))));
3258
+ });
3573
3259
  };
3574
3260
 
3575
3261
  var LoginPage = function LoginPage(_ref) {
@@ -3650,7 +3336,8 @@ var Router = function Router(_ref) {
3650
3336
  })));
3651
3337
  };
3652
3338
 
3653
- var NetworkError = function NetworkError() {
3339
+ var NetworkError = function NetworkError(_ref) {
3340
+ var message = _ref.message;
3654
3341
  return /*#__PURE__*/React__default.createElement(material.Box, null, /*#__PURE__*/React__default.createElement(FullscreenBackdrop, null), /*#__PURE__*/React__default.createElement(material.Card, {
3655
3342
  style: {
3656
3343
  backgroundColor: "inherit",
@@ -3658,8 +3345,13 @@ var NetworkError = function NetworkError() {
3658
3345
  maxWidth: "600px",
3659
3346
  margin: "200px auto"
3660
3347
  }
3661
- }, /*#__PURE__*/React__default.createElement(material.CardContent, null, /*#__PURE__*/React__default.createElement(material.Box, {
3348
+ }, /*#__PURE__*/React__default.createElement(material.CardContent, {
3349
+ style: {
3350
+ minHeight: "unset"
3351
+ }
3352
+ }, /*#__PURE__*/React__default.createElement(material.Box, {
3662
3353
  display: "flex",
3354
+ flexDirection: "column",
3663
3355
  alignItems: "center",
3664
3356
  justifyContent: "center",
3665
3357
  m: "125px 80px"
@@ -3669,7 +3361,13 @@ var NetworkError = function NetworkError() {
3669
3361
  color: "rgba(255, 255, 255, 0.6)",
3670
3362
  fontFamily: "Roboto"
3671
3363
  }
3672
- }, languageStore.translations.networkErrorHeader)))));
3364
+ }, languageStore.translations.networkErrorHeader), /*#__PURE__*/React__default.createElement("br", null), /*#__PURE__*/React__default.createElement("p", {
3365
+ style: {
3366
+ textAlign: "center",
3367
+ color: "rgba(255, 255, 255, 0.6)",
3368
+ fontFamily: "Roboto"
3369
+ }
3370
+ }, message)))));
3673
3371
  };
3674
3372
 
3675
3373
  var App = mobxReactLite.observer(function (_ref) {
@@ -3729,7 +3427,7 @@ var App = mobxReactLite.observer(function (_ref) {
3729
3427
  }, authProps)
3730
3428
  }, sessionStore.networkError ? /*#__PURE__*/React__default.createElement(NetworkError, null) : appReady && /*#__PURE__*/React__default.createElement(Router, null, /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
3731
3429
  path: "*",
3732
- element: /*#__PURE__*/React__default.createElement(useModalHook.ModalProvider, null, children)
3430
+ element: /*#__PURE__*/React__default.createElement(ModalProvider, null, children)
3733
3431
  }))));
3734
3432
  });
3735
3433
  App.propTypes = {