@steedos/webapp 2.2.17 → 2.2.20

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.
Files changed (169) hide show
  1. package/package.json +4 -4
  2. package/lib/action_types/errors.js +0 -13
  3. package/lib/action_types/errors.js.map +0 -1
  4. package/lib/action_types/general.js +0 -38
  5. package/lib/action_types/general.js.map +0 -1
  6. package/lib/action_types/index.js +0 -15
  7. package/lib/action_types/index.js.map +0 -1
  8. package/lib/action_types/spaces.js +0 -26
  9. package/lib/action_types/spaces.js.map +0 -1
  10. package/lib/action_types/users.js +0 -51
  11. package/lib/action_types/users.js.map +0 -1
  12. package/lib/actions/errors.js +0 -111
  13. package/lib/actions/errors.js.map +0 -1
  14. package/lib/actions/general.js +0 -64
  15. package/lib/actions/general.js.map +0 -1
  16. package/lib/actions/global_actions.js +0 -215
  17. package/lib/actions/global_actions.js.map +0 -1
  18. package/lib/actions/helpers.js +0 -228
  19. package/lib/actions/helpers.js.map +0 -1
  20. package/lib/actions/i18n.js +0 -55
  21. package/lib/actions/i18n.js.map +0 -1
  22. package/lib/actions/requests.js +0 -13
  23. package/lib/actions/requests.js.map +0 -1
  24. package/lib/actions/root.js +0 -135
  25. package/lib/actions/root.js.map +0 -1
  26. package/lib/actions/settings.js +0 -72
  27. package/lib/actions/settings.js.map +0 -1
  28. package/lib/actions/spaces.js +0 -159
  29. package/lib/actions/spaces.js.map +0 -1
  30. package/lib/actions/users.js +0 -386
  31. package/lib/actions/users.js.map +0 -1
  32. package/lib/client/accounts.events.js +0 -37
  33. package/lib/client/accounts.events.js.map +0 -1
  34. package/lib/client/client4.js +0 -507
  35. package/lib/client/client4.js.map +0 -1
  36. package/lib/client/fetch_etag.js +0 -35
  37. package/lib/client/fetch_etag.js.map +0 -1
  38. package/lib/client/i18n.js +0 -17
  39. package/lib/client/i18n.js.map +0 -1
  40. package/lib/client/index.js +0 -31
  41. package/lib/client/index.js.map +0 -1
  42. package/lib/client/signup.events.js +0 -76
  43. package/lib/client/signup.events.js.map +0 -1
  44. package/lib/components/Background.js +0 -49
  45. package/lib/components/Background.js.map +0 -1
  46. package/lib/components/Card.js +0 -115
  47. package/lib/components/Card.js.map +0 -1
  48. package/lib/components/FormError.js +0 -129
  49. package/lib/components/FormError.js.map +0 -1
  50. package/lib/components/GlobalMessage.js +0 -94
  51. package/lib/components/GlobalMessage.js.map +0 -1
  52. package/lib/components/Initialized.js +0 -85
  53. package/lib/components/Initialized.js.map +0 -1
  54. package/lib/components/InputPassword.js +0 -70
  55. package/lib/components/InputPassword.js.map +0 -1
  56. package/lib/components/Loading.js +0 -84
  57. package/lib/components/Loading.js.map +0 -1
  58. package/lib/components/LocalizedInput.js +0 -39
  59. package/lib/components/LocalizedInput.js.map +0 -1
  60. package/lib/components/LoggedIn.js +0 -82
  61. package/lib/components/LoggedIn.js.map +0 -1
  62. package/lib/components/Logo.js +0 -42
  63. package/lib/components/Logo.js.map +0 -1
  64. package/lib/components/Navbar.js +0 -130
  65. package/lib/components/Navbar.js.map +0 -1
  66. package/lib/components/ResetPassword.js +0 -160
  67. package/lib/components/ResetPassword.js.map +0 -1
  68. package/lib/components/amis.js +0 -14
  69. package/lib/components/amis.js.map +0 -1
  70. package/lib/components/countdown.js +0 -83
  71. package/lib/components/countdown.js.map +0 -1
  72. package/lib/components/index.js +0 -19
  73. package/lib/components/index.js.map +0 -1
  74. package/lib/components/intl_provider/index.js +0 -28
  75. package/lib/components/intl_provider/index.js.map +0 -1
  76. package/lib/components/intl_provider/intl_provider.js +0 -97
  77. package/lib/components/intl_provider/intl_provider.js.map +0 -1
  78. package/lib/exports.js +0 -21
  79. package/lib/exports.js.map +0 -1
  80. package/lib/i18n/en.json +0 -104
  81. package/lib/i18n/i18n.js +0 -62
  82. package/lib/i18n/i18n.js.map +0 -1
  83. package/lib/i18n/zh-CN.json +0 -126
  84. package/lib/index.js +0 -18
  85. package/lib/index.js.map +0 -1
  86. package/lib/pages/CreateTenant.js +0 -176
  87. package/lib/pages/CreateTenant.js.map +0 -1
  88. package/lib/pages/Home.js +0 -153
  89. package/lib/pages/Home.js.map +0 -1
  90. package/lib/pages/Init.js +0 -174
  91. package/lib/pages/Init.js.map +0 -1
  92. package/lib/pages/Login.js +0 -432
  93. package/lib/pages/Login.js.map +0 -1
  94. package/lib/pages/Logout.js +0 -78
  95. package/lib/pages/Logout.js.map +0 -1
  96. package/lib/pages/Preference.js +0 -148
  97. package/lib/pages/Preference.js.map +0 -1
  98. package/lib/pages/SelectSpace.js +0 -123
  99. package/lib/pages/SelectSpace.js.map +0 -1
  100. package/lib/pages/Signup.js +0 -435
  101. package/lib/pages/Signup.js.map +0 -1
  102. package/lib/pages/VerifyEmail.js +0 -308
  103. package/lib/pages/VerifyEmail.js.map +0 -1
  104. package/lib/pages/VerifyMobile.js +0 -308
  105. package/lib/pages/VerifyMobile.js.map +0 -1
  106. package/lib/pages/index.js +0 -19
  107. package/lib/pages/index.js.map +0 -1
  108. package/lib/pages/updatePassword.js +0 -203
  109. package/lib/pages/updatePassword.js.map +0 -1
  110. package/lib/reducers/entities/general.js +0 -69
  111. package/lib/reducers/entities/general.js.map +0 -1
  112. package/lib/reducers/entities/index.js +0 -15
  113. package/lib/reducers/entities/index.js.map +0 -1
  114. package/lib/reducers/entities/spaces.js +0 -32
  115. package/lib/reducers/entities/spaces.js.map +0 -1
  116. package/lib/reducers/entities/users.js +0 -73
  117. package/lib/reducers/entities/users.js.map +0 -1
  118. package/lib/reducers/i18n.js +0 -34
  119. package/lib/reducers/i18n.js.map +0 -1
  120. package/lib/reducers/index.js +0 -17
  121. package/lib/reducers/index.js.map +0 -1
  122. package/lib/reducers/requests.js +0 -13
  123. package/lib/reducers/requests.js.map +0 -1
  124. package/lib/reducers/settings.js +0 -14
  125. package/lib/reducers/settings.js.map +0 -1
  126. package/lib/root.js +0 -152
  127. package/lib/root.js.map +0 -1
  128. package/lib/selectors/entities/spaces.js +0 -28
  129. package/lib/selectors/entities/spaces.js.map +0 -1
  130. package/lib/selectors/entities/users.js +0 -16
  131. package/lib/selectors/entities/users.js.map +0 -1
  132. package/lib/selectors/i18n.js +0 -48
  133. package/lib/selectors/i18n.js.map +0 -1
  134. package/lib/selectors/index.js +0 -36
  135. package/lib/selectors/index.js.map +0 -1
  136. package/lib/selectors/settings.js +0 -9
  137. package/lib/selectors/settings.js.map +0 -1
  138. package/lib/stores/initial_state.js +0 -30
  139. package/lib/stores/initial_state.js.map +0 -1
  140. package/lib/stores/local_storage_store.js +0 -78
  141. package/lib/stores/local_storage_store.js.map +0 -1
  142. package/lib/stores/redux_store.js +0 -99
  143. package/lib/stores/redux_store.js.map +0 -1
  144. package/lib/types/actions.js +0 -19
  145. package/lib/types/actions.js.map +0 -1
  146. package/lib/types/client4.js +0 -3
  147. package/lib/types/client4.js.map +0 -1
  148. package/lib/types/errors.js +0 -3
  149. package/lib/types/errors.js.map +0 -1
  150. package/lib/types/general.js +0 -4
  151. package/lib/types/general.js.map +0 -1
  152. package/lib/types/spaces.js +0 -3
  153. package/lib/types/spaces.js.map +0 -1
  154. package/lib/types/store.js +0 -3
  155. package/lib/types/store.js.map +0 -1
  156. package/lib/types/users.js +0 -3
  157. package/lib/types/users.js.map +0 -1
  158. package/lib/types/utilities.js +0 -3
  159. package/lib/types/utilities.js.map +0 -1
  160. package/lib/utils/hash_history.js +0 -6
  161. package/lib/utils/hash_history.js.map +0 -1
  162. package/lib/utils/helpers.js +0 -20
  163. package/lib/utils/helpers.js.map +0 -1
  164. package/lib/utils/key_mirror.js +0 -35
  165. package/lib/utils/key_mirror.js.map +0 -1
  166. package/lib/utils/sentry.js +0 -50
  167. package/lib/utils/sentry.js.map +0 -1
  168. package/lib/utils/utils.js +0 -106
  169. package/lib/utils/utils.js.map +0 -1
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@steedos/webapp",
3
- "version": "2.2.17",
3
+ "version": "2.2.20",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "main": "lib/exports.js",
7
7
  "scripts": {
8
8
  "start": "cross-env SKIP_PREFLIGHT_CHECK=true PUBLIC_URL=/ react-scripts start",
9
- "build": "cross-env GENERATE_SOURCEMAP=false NODE_ENV=production SKIP_PREFLIGHT_CHECK=true PUBLIC_URL=../../ react-scripts build && yarn build-after",
9
+ "build": "yarn build:react && yarn build-lib && yarn build-tailwind && yarn build-copy-to-public",
10
+ "build:react": "cross-env GENERATE_SOURCEMAP=false NODE_ENV=production SKIP_PREFLIGHT_CHECK=true PUBLIC_URL=../../ react-scripts build && yarn build-after",
10
11
  "build-after": "mkdirp build/accounts && mkdirp build/accounts/a && mv build/index.html build/accounts/a/",
11
12
  "copy-to-public": "rm -rf build/assets && mkdirp public/accounts && mv build ./public/accounts/a",
12
13
  "build-lib": "rm -rf lib && tsc --build tsconfig.lib.json",
13
14
  "build-tailwind": "cd ../../../packages/tailwind && yarn build-tailwind",
14
- "prepare": "yarn build && yarn build-lib && yarn build-tailwind && yarn build-copy-to-public",
15
15
  "test": "SKIP_PREFLIGHT_CHECK=true react-scripts test",
16
16
  "build-copy-to-public": "rm -rf ../public && mv build ../public"
17
17
  },
@@ -81,5 +81,5 @@
81
81
  "publishConfig": {
82
82
  "access": "public"
83
83
  },
84
- "gitHead": "d5f33748f18e5376484551234b3b323132a1e56c"
84
+ "gitHead": "a0462d803860690b47487ece88a0bbb380ba0f17"
85
85
  }
@@ -1,13 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- var key_mirror_1 = __importDefault(require("../utils/key_mirror"));
7
- exports.default = (0, key_mirror_1.default)({
8
- DISMISS_ERROR: null,
9
- LOG_ERROR: null,
10
- CLEAR_ERRORS: null,
11
- RESTORE_ERRORS: null,
12
- });
13
- //# sourceMappingURL=errors.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/action_types/errors.ts"],"names":[],"mappings":";;;;;AAAA,mEAA4C;AAE5C,kBAAe,IAAA,oBAAS,EAAC;IACrB,aAAa,EAAE,IAAI;IACnB,SAAS,EAAE,IAAI;IACf,YAAY,EAAE,IAAI;IAClB,cAAc,EAAE,IAAI;CACvB,CAAC,CAAC"}
@@ -1,38 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- var key_mirror_1 = __importDefault(require("../utils/key_mirror"));
7
- exports.default = (0, key_mirror_1.default)({
8
- RECEIVED_SETTINGS: null,
9
- RECEIVED_APP_STATE: null,
10
- RECEIVED_APP_CREDENTIALS: null,
11
- REMOVED_APP_CREDENTIALS: null,
12
- RECEIVED_APP_DEVICE_TOKEN: null,
13
- PING_RESET: null,
14
- RECEIVED_SERVER_VERSION: null,
15
- CLIENT_CONFIG_RECEIVED: null,
16
- CLIENT_CONFIG_RESET: null,
17
- CLIENT_LICENSE_RECEIVED: null,
18
- CLIENT_LICENSE_RESET: null,
19
- RECEIVED_DATA_RETENTION_POLICY: null,
20
- LOG_CLIENT_ERROR_REQUEST: null,
21
- LOG_CLIENT_ERROR_SUCCESS: null,
22
- LOG_CLIENT_ERROR_FAILURE: null,
23
- SUPPORTED_TIMEZONES_REQUEST: null,
24
- SUPPORTED_TIMEZONES_SUCCESS: null,
25
- SUPPORTED_TIMEZONES_FAILURE: null,
26
- SUPPORTED_TIMEZONES_RECEIVED: null,
27
- WEBSOCKET_REQUEST: null,
28
- WEBSOCKET_SUCCESS: null,
29
- WEBSOCKET_FAILURE: null,
30
- WEBSOCKET_CLOSED: null,
31
- REDIRECT_LOCATION_SUCCESS: null,
32
- REDIRECT_LOCATION_FAILURE: null,
33
- SET_CONFIG_AND_LICENSE: null,
34
- WARN_METRICS_STATUS_RECEIVED: null,
35
- WARN_METRIC_STATUS_RECEIVED: null,
36
- WARN_METRIC_STATUS_REMOVED: null,
37
- });
38
- //# sourceMappingURL=general.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"general.js","sourceRoot":"","sources":["../../src/action_types/general.ts"],"names":[],"mappings":";;;;;AAAA,mEAA4C;AAE5C,kBAAe,IAAA,oBAAS,EAAC;IACrB,iBAAiB,EAAE,IAAI;IAEvB,kBAAkB,EAAE,IAAI;IACxB,wBAAwB,EAAE,IAAI;IAC9B,uBAAuB,EAAE,IAAI;IAC7B,yBAAyB,EAAE,IAAI;IAE/B,UAAU,EAAE,IAAI;IAEhB,uBAAuB,EAAE,IAAI;IAE7B,sBAAsB,EAAE,IAAI;IAC5B,mBAAmB,EAAE,IAAI;IAEzB,uBAAuB,EAAE,IAAI;IAC7B,oBAAoB,EAAE,IAAI;IAE1B,8BAA8B,EAAE,IAAI;IAEpC,wBAAwB,EAAE,IAAI;IAC9B,wBAAwB,EAAE,IAAI;IAC9B,wBAAwB,EAAE,IAAI;IAE9B,2BAA2B,EAAE,IAAI;IACjC,2BAA2B,EAAE,IAAI;IACjC,2BAA2B,EAAE,IAAI;IACjC,4BAA4B,EAAE,IAAI;IAElC,iBAAiB,EAAE,IAAI;IACvB,iBAAiB,EAAE,IAAI;IACvB,iBAAiB,EAAE,IAAI;IACvB,gBAAgB,EAAE,IAAI;IAEtB,yBAAyB,EAAE,IAAI;IAC/B,yBAAyB,EAAE,IAAI;IAC/B,sBAAsB,EAAE,IAAI;IAE5B,4BAA4B,EAAE,IAAI;IAClC,2BAA2B,EAAE,IAAI;IACjC,0BAA0B,EAAE,IAAI;CACnC,CAAC,CAAC"}
@@ -1,15 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ErrorTypes = exports.SpaceTypes = exports.UserTypes = exports.GeneralTypes = void 0;
7
- var users_1 = __importDefault(require("./users"));
8
- exports.UserTypes = users_1.default;
9
- var spaces_1 = __importDefault(require("./spaces"));
10
- exports.SpaceTypes = spaces_1.default;
11
- var errors_1 = __importDefault(require("./errors"));
12
- exports.ErrorTypes = errors_1.default;
13
- var general_1 = __importDefault(require("./general"));
14
- exports.GeneralTypes = general_1.default;
15
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/action_types/index.ts"],"names":[],"mappings":";;;;;;AAAA,kDAAgC;AAO9B,oBAPK,eAAS,CAOL;AANX,oDAAkC;AAOhC,qBAPK,gBAAU,CAOL;AANZ,oDAAkC;AAOhC,qBAPK,gBAAU,CAOL;AANZ,sDAAqC;AAGnC,uBAHK,iBAAY,CAGL"}
@@ -1,26 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- var key_mirror_1 = __importDefault(require("../utils/key_mirror"));
7
- exports.default = (0, key_mirror_1.default)({
8
- GET_SPACES_REQUEST: null,
9
- GET_SPACES_SUCCESS: null,
10
- GET_SPACES_FAILURE: null,
11
- MY_SPACES_REQUEST: null,
12
- MY_SPACES_SUCCESS: null,
13
- MY_SPACES_FAILURE: null,
14
- CREATE_SPACE_REQUEST: null,
15
- CREATE_SPACE_SUCCESS: null,
16
- CREATE_SPACE_FAILURE: null,
17
- JOIN_SPACE_REQUEST: null,
18
- JOIN_SPACE_SUCCESS: null,
19
- JOIN_SPACE_FAILURE: null,
20
- CREATED_SPACE: null,
21
- SELECT_SPACE: null,
22
- UPDATED_SPACE: null,
23
- RECEIVED_SPACE: null,
24
- RECEIVED_SPACES_LIST: null,
25
- });
26
- //# sourceMappingURL=spaces.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"spaces.js","sourceRoot":"","sources":["../../src/action_types/spaces.ts"],"names":[],"mappings":";;;;;AAAA,mEAA4C;AAE5C,kBAAe,IAAA,oBAAS,EAAC;IACvB,kBAAkB,EAAE,IAAI;IACxB,kBAAkB,EAAE,IAAI;IACxB,kBAAkB,EAAE,IAAI;IAExB,iBAAiB,EAAE,IAAI;IACvB,iBAAiB,EAAE,IAAI;IACvB,iBAAiB,EAAE,IAAI;IAEvB,oBAAoB,EAAE,IAAI;IAC1B,oBAAoB,EAAE,IAAI;IAC1B,oBAAoB,EAAE,IAAI;IAE1B,kBAAkB,EAAE,IAAI;IACxB,kBAAkB,EAAE,IAAI;IACxB,kBAAkB,EAAE,IAAI;IAExB,aAAa,EAAE,IAAI;IACnB,YAAY,EAAE,IAAI;IAClB,aAAa,EAAE,IAAI;IAEnB,cAAc,EAAE,IAAI;IACpB,oBAAoB,EAAE,IAAI;CAC3B,CAAC,CAAA"}
@@ -1,51 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- var key_mirror_1 = __importDefault(require("../utils/key_mirror"));
7
- exports.default = (0, key_mirror_1.default)({
8
- CREATE_USER_REQUEST: null,
9
- CREATE_USER_SUCCESS: null,
10
- CREATE_USER_FAILURE: null,
11
- LOGIN_REQUEST: null,
12
- LOGIN_SUCCESS: null,
13
- LOGIN_FAILURE: null,
14
- LOGOUT_REQUEST: null,
15
- LOGOUT_SUCCESS: null,
16
- LOGOUT_FAILURE: null,
17
- REVOKE_ALL_USER_SESSIONS_SUCCESS: null,
18
- REVOKE_SESSIONS_FOR_ALL_USERS_SUCCESS: null,
19
- UPDATE_ME_REQUEST: null,
20
- UPDATE_ME_SUCCESS: null,
21
- UPDATE_ME_FAILURE: null,
22
- RECEIVED_ME: null,
23
- RECEIVED_PROFILE: null,
24
- RECEIVED_PROFILES: null,
25
- RECEIVED_PROFILES_LIST: null,
26
- RECEIVED_PROFILE_IN_TEAM: null,
27
- RECEIVED_PROFILE_NOT_IN_TEAM: null,
28
- RECEIVED_PROFILE_WITHOUT_TEAM: null,
29
- RECEIVED_SESSIONS: null,
30
- RECEIVED_REVOKED_SESSION: null,
31
- RESET_LOGOUT_STATE: null,
32
- RECEIVED_MY_USER_ACCESS_TOKEN: null,
33
- RECEIVED_MY_USER_ACCESS_TOKENS: null,
34
- CLEAR_MY_USER_ACCESS_TOKENS: null,
35
- REVOKED_USER_ACCESS_TOKEN: null,
36
- DISABLED_USER_ACCESS_TOKEN: null,
37
- ENABLED_USER_ACCESS_TOKEN: null,
38
- LOGIN: null,
39
- VERIFICATION_TOKEN_RECIEVED: null,
40
- CHANGEPASSWORD_REQUEST: null,
41
- CHANGEPASSWORD_FAILURE: null,
42
- CHANGEPASSWORD_RECEIVED: null,
43
- VERIFYEMAIL_REQUEST: null,
44
- VERIFYEMAIL_FAILURE: null,
45
- VERIFYEMAIL_RECEIVED: null,
46
- VERIFYMOBILE_REQUEST: null,
47
- VERIFYMOBILE_FAILURE: null,
48
- VERIFYMOBILE_RECEIVED: null,
49
- TO_MOBILE_CODE_LOGIN: null,
50
- });
51
- //# sourceMappingURL=users.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"users.js","sourceRoot":"","sources":["../../src/action_types/users.ts"],"names":[],"mappings":";;;;;AAAA,mEAA4C;AAE5C,kBAAe,IAAA,oBAAS,EAAC;IACrB,mBAAmB,EAAE,IAAI;IACzB,mBAAmB,EAAE,IAAI;IACzB,mBAAmB,EAAE,IAAI;IAEzB,aAAa,EAAE,IAAI;IACnB,aAAa,EAAE,IAAI;IACnB,aAAa,EAAE,IAAI;IAEnB,cAAc,EAAE,IAAI;IACpB,cAAc,EAAE,IAAI;IACpB,cAAc,EAAE,IAAI;IAEpB,gCAAgC,EAAE,IAAI;IACtC,qCAAqC,EAAE,IAAI;IAE3C,iBAAiB,EAAE,IAAI;IACvB,iBAAiB,EAAE,IAAI;IACvB,iBAAiB,EAAE,IAAI;IAEvB,WAAW,EAAE,IAAI;IACjB,gBAAgB,EAAE,IAAI;IACtB,iBAAiB,EAAE,IAAI;IACvB,sBAAsB,EAAE,IAAI;IAC5B,wBAAwB,EAAE,IAAI;IAC9B,4BAA4B,EAAE,IAAI;IAClC,6BAA6B,EAAE,IAAI;IACnC,iBAAiB,EAAE,IAAI;IACvB,wBAAwB,EAAE,IAAI;IAC9B,kBAAkB,EAAE,IAAI;IACxB,6BAA6B,EAAE,IAAI;IACnC,8BAA8B,EAAE,IAAI;IACpC,2BAA2B,EAAE,IAAI;IACjC,yBAAyB,EAAE,IAAI;IAC/B,0BAA0B,EAAE,IAAI;IAChC,yBAAyB,EAAE,IAAI;IAC/B,KAAK,EAAE,IAAI;IAEX,2BAA2B,EAAE,IAAI;IAEjC,sBAAsB,EAAE,IAAI;IAC5B,sBAAsB,EAAE,IAAI;IAC5B,uBAAuB,EAAE,IAAI;IAE7B,mBAAmB,EAAE,IAAI;IACzB,mBAAmB,EAAE,IAAI;IACzB,oBAAoB,EAAE,IAAI;IAE1B,oBAAoB,EAAE,IAAI;IAC1B,oBAAoB,EAAE,IAAI;IAC1B,qBAAqB,EAAE,IAAI;IAC3B,oBAAoB,EAAE,IAAI;CAC7B,CAAC,CAAC"}
@@ -1,111 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
- function verb(n) { return function (v) { return step([n, v]); }; }
15
- function step(op) {
16
- if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
18
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
- if (y = 0, t) op = [op[0] & 2, t.value];
20
- switch (op[0]) {
21
- case 0: case 1: t = op; break;
22
- case 4: _.label++; return { value: op[1], done: false };
23
- case 5: _.label++; y = op[1]; op = [0]; continue;
24
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
- default:
26
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
- if (t[2]) _.ops.pop();
31
- _.trys.pop(); continue;
32
- }
33
- op = body.call(thisArg, _);
34
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
- }
37
- };
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.clearErrors = exports.logError = exports.getLogErrorAction = exports.dismissError = exports.dismissErrorObject = void 0;
40
- var action_types_1 = require("../action_types");
41
- function dismissErrorObject(index) {
42
- return {
43
- type: action_types_1.ErrorTypes.DISMISS_ERROR,
44
- index: index,
45
- data: null,
46
- };
47
- }
48
- exports.dismissErrorObject = dismissErrorObject;
49
- function dismissError(index) {
50
- var _this = this;
51
- return function (dispatch) { return __awaiter(_this, void 0, void 0, function () {
52
- return __generator(this, function (_a) {
53
- dispatch(dismissErrorObject(index));
54
- return [2 /*return*/, { data: true }];
55
- });
56
- }); };
57
- }
58
- exports.dismissError = dismissError;
59
- function getLogErrorAction(error, displayable) {
60
- if (displayable === void 0) { displayable = false; }
61
- return {
62
- type: action_types_1.ErrorTypes.LOG_ERROR,
63
- displayable: displayable,
64
- error: error,
65
- data: null,
66
- };
67
- }
68
- exports.getLogErrorAction = getLogErrorAction;
69
- function logError(error, displayable) {
70
- var _this = this;
71
- if (displayable === void 0) { displayable = false; }
72
- return function (dispatch) { return __awaiter(_this, void 0, void 0, function () {
73
- return __generator(this, function (_a) {
74
- // if (error.server_error_id === 'api.context.session_expired.app_error') {
75
- // return {data: true};
76
- // }
77
- // const serializedError = serializeError(error);
78
- // let sendToServer = true;
79
- // if (error.stack && error.stack.includes('TypeError: Failed to fetch')) {
80
- // sendToServer = false;
81
- // }
82
- // if (error.server_error_id) {
83
- // sendToServer = false;
84
- // }
85
- // if (sendToServer) {
86
- // try {
87
- // const stringifiedSerializedError = JSON.stringify(serializedError).toString();
88
- // await Client4.logClientError(stringifiedSerializedError);
89
- // } catch (err) {
90
- // // avoid crashing the app if an error sending
91
- // // the error occurs.
92
- // }
93
- // }
94
- // // EventEmitter.emit(ErrorTypes.LOG_ERROR, error);
95
- // dispatch(getLogErrorAction(serializedError, displayable));
96
- return [2 /*return*/, { data: true }];
97
- });
98
- }); };
99
- }
100
- exports.logError = logError;
101
- function clearErrors() {
102
- var _this = this;
103
- return function (dispatch) { return __awaiter(_this, void 0, void 0, function () {
104
- return __generator(this, function (_a) {
105
- dispatch({ type: action_types_1.ErrorTypes.CLEAR_ERRORS, data: null });
106
- return [2 /*return*/, { data: true }];
107
- });
108
- }); };
109
- }
110
- exports.clearErrors = clearErrors;
111
- //# sourceMappingURL=errors.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/actions/errors.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,gDAA2C;AAO3C,SAAgB,kBAAk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AAI,EAAC,CAAC,CAAC;YAEtD,sBAAO,EAAC,IAAI,EAAE,IAAI,EAAC,EAAC;;SACvB,CAAC;AACN,CAAC;AAND,kCAMC"}
@@ -1,64 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
- function verb(n) { return function (v) { return step([n, v]); }; }
15
- function step(op) {
16
- if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
18
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
- if (y = 0, t) op = [op[0] & 2, t.value];
20
- switch (op[0]) {
21
- case 0: case 1: t = op; break;
22
- case 4: _.label++; return { value: op[1], done: false };
23
- case 5: _.label++; y = op[1]; op = [0]; continue;
24
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
- default:
26
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
- if (t[2]) _.ops.pop();
31
- _.trys.pop(); continue;
32
- }
33
- op = body.call(thisArg, _);
34
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
- }
37
- };
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.setUrl = exports.setDeviceToken = void 0;
40
- var client_1 = require("../client");
41
- var action_types_1 = require("../action_types");
42
- function setDeviceToken(token) {
43
- var _this = this;
44
- return function (dispatch) { return __awaiter(_this, void 0, void 0, function () {
45
- return __generator(this, function (_a) {
46
- dispatch({ type: action_types_1.GeneralTypes.RECEIVED_APP_DEVICE_TOKEN, data: token });
47
- return [2 /*return*/, { data: true }];
48
- });
49
- }); };
50
- }
51
- exports.setDeviceToken = setDeviceToken;
52
- // export function setStoreFromLocalData(data: { token: string; url: string }): ActionFunc {
53
- // return async (dispatch: DispatchFunc, getState) => {
54
- // Client4.setToken(data.token);
55
- // Client4.setUrl(data.url);
56
- // return loadMe()(dispatch, getState);
57
- // };
58
- // }
59
- function setUrl(url) {
60
- client_1.Client4.setUrl(url);
61
- return true;
62
- }
63
- exports.setUrl = setUrl;
64
- //# sourceMappingURL=general.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"general.js","sourceRoot":"","sources":["../../src/actions/general.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oCAAoC;AAGpC,gDAA+C;AAM/C,SAAgB,cAAc,CAAC,KAAkC;IAAjE,iBAMC;IALG,OAAO,UAAO,QAAsB;;YAChC,QAAQ,CAAC,EAAC,IAAI,EAAE,2BAAY,CAAC,yBAAyB,EAAE,IAAI,EAAE,KAAK,EAAC,CAAC,CAAC;YAEtE,sBAAO,EAAC,IAAI,EAAE,IAAI,EAAC,EAAC;;SACvB,CAAC;AACN,CAAC;AAND,wCAMC;AAED,4FAA4F;AAC5F,2DAA2D;AAC3D,wCAAwC;AACxC,oCAAoC;AAEpC,+CAA+C;AAC/C,SAAS;AACT,IAAI;AAGJ,SAAgB,MAAM,CAAC,GAAW;IAC9B,gBAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACpB,OAAO,IAAI,CAAC;AAChB,CAAC;AAHD,wBAGC"}
@@ -1,215 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
- function verb(n) { return function (v) { return step([n, v]); }; }
15
- function step(op) {
16
- if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
18
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
- if (y = 0, t) op = [op[0] & 2, t.value];
20
- switch (op[0]) {
21
- case 0: case 1: t = op; break;
22
- case 4: _.label++; return { value: op[1], done: false };
23
- case 5: _.label++; y = op[1]; op = [0]; continue;
24
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
- default:
26
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
- if (t[2]) _.ops.pop();
31
- _.trys.pop(); continue;
32
- }
33
- op = body.call(thisArg, _);
34
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
- }
37
- };
38
- var __importDefault = (this && this.__importDefault) || function (mod) {
39
- return (mod && mod.__esModule) ? mod : { "default": mod };
40
- };
41
- Object.defineProperty(exports, "__esModule", { value: true });
42
- exports.finishSignin = exports.redirectTo = exports.redirectUserToVerifyMobile = exports.redirectUserToVerifyEmail = exports.redirectUserToUpdatePassword = exports.redirectUserToDefaultSpace = exports.selectDefaultSpace = exports.emitUserLoggedOutEvent = void 0;
43
- var hash_history_1 = require("../utils/hash_history");
44
- var users_1 = require("./users");
45
- var redux_store_1 = __importDefault(require("../stores/redux_store"));
46
- var users_2 = require("../selectors/entities/users");
47
- var spaces_1 = require("../selectors/entities/spaces");
48
- var local_storage_store_1 = __importDefault(require("../stores/local_storage_store"));
49
- var spaces_2 = require("../actions/spaces");
50
- var dispatch = redux_store_1.default.dispatch;
51
- var getState = redux_store_1.default.getState;
52
- function emitUserLoggedOutEvent(redirectToPath, shouldSignalLogout, userAction) {
53
- if (shouldSignalLogout === void 0) { shouldSignalLogout = true; }
54
- if (userAction === void 0) { userAction = true; }
55
- // If the logout was intentional, discard knowledge about having previously been logged in.
56
- // This bit is otherwise used to detect session expirations on the login page.
57
- if (userAction) {
58
- }
59
- if (!redirectToPath)
60
- redirectToPath = '/login';
61
- dispatch((0, users_1.logout)()).then(function () {
62
- local_storage_store_1.default.setUserId(null);
63
- // if (shouldSignalLogout) {
64
- // BrowserStore.signalLogout();
65
- // }
66
- // BrowserStore.clear();
67
- // stopPeriodicStatusUpdates();
68
- // WebsocketActions.close();
69
- // clearUserCookie();
70
- redirectTo(redirectToPath);
71
- }).catch(function (e) {
72
- console.log(e);
73
- redirectTo(redirectToPath);
74
- });
75
- }
76
- exports.emitUserLoggedOutEvent = emitUserLoggedOutEvent;
77
- function selectDefaultSpace(location) {
78
- return __awaiter(this, void 0, void 0, function () {
79
- var state, user, spaceId, space;
80
- return __generator(this, function (_a) {
81
- state = getState();
82
- user = (0, users_2.getCurrentUser)(state);
83
- if (!user) {
84
- return [2 /*return*/];
85
- }
86
- spaceId = local_storage_store_1.default.getPreviousSpaceId(user.id);
87
- space = (0, spaces_1.getSpace)(state, spaceId);
88
- if (space) {
89
- dispatch((0, spaces_2.selectSpace)(space._id));
90
- return [2 /*return*/, space._id];
91
- }
92
- else {
93
- hash_history_1.hashHistory.push({
94
- pathname: '/select-space',
95
- search: location.search
96
- });
97
- }
98
- return [2 /*return*/];
99
- });
100
- });
101
- }
102
- exports.selectDefaultSpace = selectDefaultSpace;
103
- function redirectUserToDefaultSpace(location) {
104
- return __awaiter(this, void 0, void 0, function () {
105
- var spaceId;
106
- return __generator(this, function (_a) {
107
- switch (_a.label) {
108
- case 0: return [4 /*yield*/, selectDefaultSpace(location)];
109
- case 1:
110
- spaceId = _a.sent();
111
- hash_history_1.hashHistory.push({
112
- pathname: "/home/".concat(spaceId),
113
- search: location.search
114
- });
115
- return [2 /*return*/];
116
- }
117
- });
118
- });
119
- }
120
- exports.redirectUserToDefaultSpace = redirectUserToDefaultSpace;
121
- function redirectUserToUpdatePassword(location) {
122
- return __awaiter(this, void 0, void 0, function () {
123
- return __generator(this, function (_a) {
124
- hash_history_1.hashHistory.push({
125
- pathname: '/update-password',
126
- search: location.search
127
- });
128
- return [2 /*return*/];
129
- });
130
- });
131
- }
132
- exports.redirectUserToUpdatePassword = redirectUserToUpdatePassword;
133
- function redirectUserToVerifyEmail(location) {
134
- return __awaiter(this, void 0, void 0, function () {
135
- return __generator(this, function (_a) {
136
- hash_history_1.hashHistory.push({
137
- pathname: '/verify/email',
138
- search: location.search
139
- });
140
- return [2 /*return*/];
141
- });
142
- });
143
- }
144
- exports.redirectUserToVerifyEmail = redirectUserToVerifyEmail;
145
- function redirectUserToVerifyMobile(location) {
146
- return __awaiter(this, void 0, void 0, function () {
147
- return __generator(this, function (_a) {
148
- hash_history_1.hashHistory.push({
149
- pathname: '/verify/mobile',
150
- search: location.search
151
- });
152
- return [2 /*return*/];
153
- });
154
- });
155
- }
156
- exports.redirectUserToVerifyMobile = redirectUserToVerifyMobile;
157
- function redirectTo(redirectTo, location) {
158
- if (!redirectTo)
159
- return;
160
- if (redirectTo && redirectTo.indexOf('no_redirect=1') < 0) {
161
- var userId = local_storage_store_1.default.getItem('userId');
162
- var authToken = local_storage_store_1.default.getItem('token');
163
- var spaceId = local_storage_store_1.default.getItem('spaceId');
164
- redirectTo = redirectTo.indexOf("?") > 0 ? redirectTo + '&no_redirect=1' : redirectTo + '?no_redirect=1';
165
- if (userId && authToken) {
166
- redirectTo = "".concat(redirectTo, "&X-Auth-Token=").concat(authToken, "&X-User-Id=").concat(userId, "&X-Space-Id=").concat(spaceId);
167
- }
168
- if (redirectTo.match(/^\/([^/]|$)/)) {
169
- if (location) {
170
- hash_history_1.hashHistory.push({
171
- pathname: redirectTo,
172
- search: location.search
173
- });
174
- }
175
- else {
176
- hash_history_1.hashHistory.push(redirectTo);
177
- }
178
- }
179
- else
180
- document.location.href = redirectTo;
181
- }
182
- }
183
- exports.redirectTo = redirectTo;
184
- function finishSignin(currentUser, tenant, location) {
185
- var password_expired = currentUser.password_expired;
186
- if (password_expired) {
187
- redirectUserToUpdatePassword(location);
188
- return;
189
- }
190
- var enable_bind_mobile = tenant.enable_bind_mobile;
191
- if (enable_bind_mobile && !currentUser.mobile_verified) {
192
- redirectUserToVerifyMobile(location);
193
- return;
194
- }
195
- var enable_bind_email = tenant.enable_bind_email;
196
- if (enable_bind_email && !currentUser.email_verified) {
197
- redirectUserToVerifyEmail(location);
198
- return;
199
- }
200
- if (location) {
201
- hash_history_1.hashHistory.push({
202
- pathname: '/home',
203
- search: location.search
204
- });
205
- }
206
- else {
207
- hash_history_1.hashHistory.push('/home');
208
- }
209
- // let redirect_uri = new URLSearchParams(location?location.search:"").get('redirect_uri')
210
- // if (!redirect_uri)
211
- // redirect_uri = '/'
212
- // redirectTo(redirect_uri, location);
213
- }
214
- exports.finishSignin = finishSignin;
215
- //# sourceMappingURL=global_actions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"global_actions.js","sourceRoot":"","sources":["../../src/actions/global_actions.jsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sDAAoD;AACpD,iCAAyC;AACzC,sEAA0C;AAC1C,qDAA6D;AAC7D,uDAAwF;AACxF,sFAA8D;AAC9D,4CAAgD;AAGhD,IAAM,QAAQ,GAAG,qBAAK,CAAC,QAAQ,CAAC;AAChC,IAAM,QAAQ,GAAG,qBAAK,CAAC,QAAQ,CAAC;AAEhC,SAAgB,sBAAsB,CAAC,cAAc,EAAE,kBAAyB,EAAE,UAAiB;IAA5C,mCAAA,EAAA,yBAAyB;IAAE,2BAAA,EAAA,iBAAiB;IAC/F,2FAA2F;IAC3F,8EAA8E;IAC9E,IAAI,UAAU,EAAE;KACf;IAED,IAAI,CAAC,cAAc;QACf,cAAc,GAAG,QAAQ,CAAA;IAE7B,QAAQ,CAAC,IAAA,cAAM,GAAE,CAAC,CAAC,IAAI,CAAC;QACpB,6BAAiB,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QAElC,4BAA4B;QAC5B,mCAAmC;QACnC,IAAI;QAEJ,wBAAwB;QACxB,+BAA+B;QAC/B,4BAA4B;QAE5B,qBAAqB;QAErB,UAAU,CAAC,cAAc,CAAC,CAAC;IAC/B,CAAC,CAAC,CAAC,KAAK,CAAC,UAAC,CAAC;QACP,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC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