@semcore/errors 2.4.3

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 (220) hide show
  1. package/CHANGELOG.md +155 -0
  2. package/README.md +0 -0
  3. package/lib/cjs/AccessDenied/index.js +125 -0
  4. package/lib/cjs/AccessDenied/index.js.map +1 -0
  5. package/lib/cjs/AccessDenied/translations/de.json +5 -0
  6. package/lib/cjs/AccessDenied/translations/en.json +5 -0
  7. package/lib/cjs/AccessDenied/translations/es.json +5 -0
  8. package/lib/cjs/AccessDenied/translations/fr.json +5 -0
  9. package/lib/cjs/AccessDenied/translations/it.json +5 -0
  10. package/lib/cjs/AccessDenied/translations/ja.json +5 -0
  11. package/lib/cjs/AccessDenied/translations/ko.json +5 -0
  12. package/lib/cjs/AccessDenied/translations/pt.json +5 -0
  13. package/lib/cjs/AccessDenied/translations/ru.json +5 -0
  14. package/lib/cjs/AccessDenied/translations/vi.json +5 -0
  15. package/lib/cjs/AccessDenied/translations/zh.json +5 -0
  16. package/lib/cjs/Error.js +137 -0
  17. package/lib/cjs/Error.js.map +1 -0
  18. package/lib/cjs/Maintenance/index.js +124 -0
  19. package/lib/cjs/Maintenance/index.js.map +1 -0
  20. package/lib/cjs/Maintenance/translations/de.json +5 -0
  21. package/lib/cjs/Maintenance/translations/en.json +5 -0
  22. package/lib/cjs/Maintenance/translations/es.json +5 -0
  23. package/lib/cjs/Maintenance/translations/fr.json +5 -0
  24. package/lib/cjs/Maintenance/translations/it.json +5 -0
  25. package/lib/cjs/Maintenance/translations/ja.json +5 -0
  26. package/lib/cjs/Maintenance/translations/ko.json +5 -0
  27. package/lib/cjs/Maintenance/translations/pt.json +5 -0
  28. package/lib/cjs/Maintenance/translations/ru.json +5 -0
  29. package/lib/cjs/Maintenance/translations/vi.json +5 -0
  30. package/lib/cjs/Maintenance/translations/zh.json +5 -0
  31. package/lib/cjs/PageError/index.js +140 -0
  32. package/lib/cjs/PageError/index.js.map +1 -0
  33. package/lib/cjs/PageError/translations/de.json +5 -0
  34. package/lib/cjs/PageError/translations/en.json +5 -0
  35. package/lib/cjs/PageError/translations/es.json +5 -0
  36. package/lib/cjs/PageError/translations/fr.json +5 -0
  37. package/lib/cjs/PageError/translations/it.json +5 -0
  38. package/lib/cjs/PageError/translations/ja.json +5 -0
  39. package/lib/cjs/PageError/translations/ko.json +5 -0
  40. package/lib/cjs/PageError/translations/pt.json +5 -0
  41. package/lib/cjs/PageError/translations/ru.json +5 -0
  42. package/lib/cjs/PageError/translations/vi.json +5 -0
  43. package/lib/cjs/PageError/translations/zh.json +5 -0
  44. package/lib/cjs/PageNotFound/index.js +123 -0
  45. package/lib/cjs/PageNotFound/index.js.map +1 -0
  46. package/lib/cjs/PageNotFound/translations/de.json +5 -0
  47. package/lib/cjs/PageNotFound/translations/en.json +5 -0
  48. package/lib/cjs/PageNotFound/translations/es.json +5 -0
  49. package/lib/cjs/PageNotFound/translations/fr.json +5 -0
  50. package/lib/cjs/PageNotFound/translations/it.json +5 -0
  51. package/lib/cjs/PageNotFound/translations/ja.json +5 -0
  52. package/lib/cjs/PageNotFound/translations/ko.json +5 -0
  53. package/lib/cjs/PageNotFound/translations/pt.json +5 -0
  54. package/lib/cjs/PageNotFound/translations/ru.json +5 -0
  55. package/lib/cjs/PageNotFound/translations/vi.json +5 -0
  56. package/lib/cjs/PageNotFound/translations/zh.json +5 -0
  57. package/lib/cjs/ProjectNotFound/index.js +143 -0
  58. package/lib/cjs/ProjectNotFound/index.js.map +1 -0
  59. package/lib/cjs/ProjectNotFound/translations/de.json +6 -0
  60. package/lib/cjs/ProjectNotFound/translations/en.json +6 -0
  61. package/lib/cjs/ProjectNotFound/translations/es.json +6 -0
  62. package/lib/cjs/ProjectNotFound/translations/fr.json +6 -0
  63. package/lib/cjs/ProjectNotFound/translations/it.json +6 -0
  64. package/lib/cjs/ProjectNotFound/translations/ja.json +6 -0
  65. package/lib/cjs/ProjectNotFound/translations/ko.json +6 -0
  66. package/lib/cjs/ProjectNotFound/translations/pt.json +6 -0
  67. package/lib/cjs/ProjectNotFound/translations/ru.json +6 -0
  68. package/lib/cjs/ProjectNotFound/translations/vi.json +6 -0
  69. package/lib/cjs/ProjectNotFound/translations/zh.json +6 -0
  70. package/lib/cjs/index.js +135 -0
  71. package/lib/cjs/index.js.map +1 -0
  72. package/lib/cjs/style/errors.shadow.css +57 -0
  73. package/lib/es6/AccessDenied/index.js +96 -0
  74. package/lib/es6/AccessDenied/index.js.map +1 -0
  75. package/lib/es6/AccessDenied/translations/de.json +5 -0
  76. package/lib/es6/AccessDenied/translations/en.json +5 -0
  77. package/lib/es6/AccessDenied/translations/es.json +5 -0
  78. package/lib/es6/AccessDenied/translations/fr.json +5 -0
  79. package/lib/es6/AccessDenied/translations/it.json +5 -0
  80. package/lib/es6/AccessDenied/translations/ja.json +5 -0
  81. package/lib/es6/AccessDenied/translations/ko.json +5 -0
  82. package/lib/es6/AccessDenied/translations/pt.json +5 -0
  83. package/lib/es6/AccessDenied/translations/ru.json +5 -0
  84. package/lib/es6/AccessDenied/translations/vi.json +5 -0
  85. package/lib/es6/AccessDenied/translations/zh.json +5 -0
  86. package/lib/es6/Error.js +122 -0
  87. package/lib/es6/Error.js.map +1 -0
  88. package/lib/es6/Maintenance/index.js +95 -0
  89. package/lib/es6/Maintenance/index.js.map +1 -0
  90. package/lib/es6/Maintenance/translations/de.json +5 -0
  91. package/lib/es6/Maintenance/translations/en.json +5 -0
  92. package/lib/es6/Maintenance/translations/es.json +5 -0
  93. package/lib/es6/Maintenance/translations/fr.json +5 -0
  94. package/lib/es6/Maintenance/translations/it.json +5 -0
  95. package/lib/es6/Maintenance/translations/ja.json +5 -0
  96. package/lib/es6/Maintenance/translations/ko.json +5 -0
  97. package/lib/es6/Maintenance/translations/pt.json +5 -0
  98. package/lib/es6/Maintenance/translations/ru.json +5 -0
  99. package/lib/es6/Maintenance/translations/vi.json +5 -0
  100. package/lib/es6/Maintenance/translations/zh.json +5 -0
  101. package/lib/es6/PageError/index.js +107 -0
  102. package/lib/es6/PageError/index.js.map +1 -0
  103. package/lib/es6/PageError/translations/de.json +5 -0
  104. package/lib/es6/PageError/translations/en.json +5 -0
  105. package/lib/es6/PageError/translations/es.json +5 -0
  106. package/lib/es6/PageError/translations/fr.json +5 -0
  107. package/lib/es6/PageError/translations/it.json +5 -0
  108. package/lib/es6/PageError/translations/ja.json +5 -0
  109. package/lib/es6/PageError/translations/ko.json +5 -0
  110. package/lib/es6/PageError/translations/pt.json +5 -0
  111. package/lib/es6/PageError/translations/ru.json +5 -0
  112. package/lib/es6/PageError/translations/vi.json +5 -0
  113. package/lib/es6/PageError/translations/zh.json +5 -0
  114. package/lib/es6/PageNotFound/index.js +94 -0
  115. package/lib/es6/PageNotFound/index.js.map +1 -0
  116. package/lib/es6/PageNotFound/translations/de.json +5 -0
  117. package/lib/es6/PageNotFound/translations/en.json +5 -0
  118. package/lib/es6/PageNotFound/translations/es.json +5 -0
  119. package/lib/es6/PageNotFound/translations/fr.json +5 -0
  120. package/lib/es6/PageNotFound/translations/it.json +5 -0
  121. package/lib/es6/PageNotFound/translations/ja.json +5 -0
  122. package/lib/es6/PageNotFound/translations/ko.json +5 -0
  123. package/lib/es6/PageNotFound/translations/pt.json +5 -0
  124. package/lib/es6/PageNotFound/translations/ru.json +5 -0
  125. package/lib/es6/PageNotFound/translations/vi.json +5 -0
  126. package/lib/es6/PageNotFound/translations/zh.json +5 -0
  127. package/lib/es6/ProjectNotFound/index.js +113 -0
  128. package/lib/es6/ProjectNotFound/index.js.map +1 -0
  129. package/lib/es6/ProjectNotFound/translations/de.json +6 -0
  130. package/lib/es6/ProjectNotFound/translations/en.json +6 -0
  131. package/lib/es6/ProjectNotFound/translations/es.json +6 -0
  132. package/lib/es6/ProjectNotFound/translations/fr.json +6 -0
  133. package/lib/es6/ProjectNotFound/translations/it.json +6 -0
  134. package/lib/es6/ProjectNotFound/translations/ja.json +6 -0
  135. package/lib/es6/ProjectNotFound/translations/ko.json +6 -0
  136. package/lib/es6/ProjectNotFound/translations/pt.json +6 -0
  137. package/lib/es6/ProjectNotFound/translations/ru.json +6 -0
  138. package/lib/es6/ProjectNotFound/translations/vi.json +6 -0
  139. package/lib/es6/ProjectNotFound/translations/zh.json +6 -0
  140. package/lib/es6/index.js +13 -0
  141. package/lib/es6/index.js.map +1 -0
  142. package/lib/es6/style/errors.shadow.css +57 -0
  143. package/lib/types/index.d.ts +92 -0
  144. package/package.json +31 -0
  145. package/src/AccessDenied/index.js +48 -0
  146. package/src/AccessDenied/translations/de.json +5 -0
  147. package/src/AccessDenied/translations/en.json +5 -0
  148. package/src/AccessDenied/translations/es.json +5 -0
  149. package/src/AccessDenied/translations/fr.json +5 -0
  150. package/src/AccessDenied/translations/it.json +5 -0
  151. package/src/AccessDenied/translations/ja.json +5 -0
  152. package/src/AccessDenied/translations/ko.json +5 -0
  153. package/src/AccessDenied/translations/pt.json +5 -0
  154. package/src/AccessDenied/translations/ru.json +5 -0
  155. package/src/AccessDenied/translations/vi.json +5 -0
  156. package/src/AccessDenied/translations/zh.json +5 -0
  157. package/src/Error.js +62 -0
  158. package/src/Maintenance/index.js +48 -0
  159. package/src/Maintenance/translations/de.json +5 -0
  160. package/src/Maintenance/translations/en.json +5 -0
  161. package/src/Maintenance/translations/es.json +5 -0
  162. package/src/Maintenance/translations/fr.json +5 -0
  163. package/src/Maintenance/translations/it.json +5 -0
  164. package/src/Maintenance/translations/ja.json +5 -0
  165. package/src/Maintenance/translations/ko.json +5 -0
  166. package/src/Maintenance/translations/pt.json +5 -0
  167. package/src/Maintenance/translations/ru.json +5 -0
  168. package/src/Maintenance/translations/vi.json +5 -0
  169. package/src/Maintenance/translations/zh.json +5 -0
  170. package/src/PageError/index.js +60 -0
  171. package/src/PageError/translations/de.json +5 -0
  172. package/src/PageError/translations/en.json +5 -0
  173. package/src/PageError/translations/es.json +5 -0
  174. package/src/PageError/translations/fr.json +5 -0
  175. package/src/PageError/translations/it.json +5 -0
  176. package/src/PageError/translations/ja.json +5 -0
  177. package/src/PageError/translations/ko.json +5 -0
  178. package/src/PageError/translations/pt.json +5 -0
  179. package/src/PageError/translations/ru.json +5 -0
  180. package/src/PageError/translations/vi.json +5 -0
  181. package/src/PageError/translations/zh.json +5 -0
  182. package/src/PageNotFound/index.js +48 -0
  183. package/src/PageNotFound/translations/de.json +5 -0
  184. package/src/PageNotFound/translations/en.json +5 -0
  185. package/src/PageNotFound/translations/es.json +5 -0
  186. package/src/PageNotFound/translations/fr.json +5 -0
  187. package/src/PageNotFound/translations/it.json +5 -0
  188. package/src/PageNotFound/translations/ja.json +5 -0
  189. package/src/PageNotFound/translations/ko.json +5 -0
  190. package/src/PageNotFound/translations/pt.json +5 -0
  191. package/src/PageNotFound/translations/ru.json +5 -0
  192. package/src/PageNotFound/translations/vi.json +5 -0
  193. package/src/PageNotFound/translations/zh.json +5 -0
  194. package/src/ProjectNotFound/index.js +54 -0
  195. package/src/ProjectNotFound/translations/de.json +6 -0
  196. package/src/ProjectNotFound/translations/en.json +6 -0
  197. package/src/ProjectNotFound/translations/es.json +6 -0
  198. package/src/ProjectNotFound/translations/fr.json +6 -0
  199. package/src/ProjectNotFound/translations/it.json +6 -0
  200. package/src/ProjectNotFound/translations/ja.json +6 -0
  201. package/src/ProjectNotFound/translations/ko.json +6 -0
  202. package/src/ProjectNotFound/translations/pt.json +6 -0
  203. package/src/ProjectNotFound/translations/ru.json +6 -0
  204. package/src/ProjectNotFound/translations/vi.json +6 -0
  205. package/src/ProjectNotFound/translations/zh.json +6 -0
  206. package/src/index.d.ts +92 -0
  207. package/src/index.js +12 -0
  208. package/src/style/errors.shadow.css +57 -0
  209. package/svg/access_denied.svg +85 -0
  210. package/svg/blocked.svg +1 -0
  211. package/svg/confirmation.svg +1 -0
  212. package/svg/connection_lost.svg +1 -0
  213. package/svg/deleted_account.svg +52 -0
  214. package/svg/dns.svg +1 -0
  215. package/svg/maintenance.svg +1 -0
  216. package/svg/no_payment.svg +33 -0
  217. package/svg/page_error.svg +1 -0
  218. package/svg/page_not_found.svg +1 -0
  219. package/svg/project_not_found.svg +1 -0
  220. package/svg/timeout.svg +1 -0
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "is under maintenance",
3
+ "text": "We are doing our best to fix it as soon as possible. Please come back later.",
4
+ "btnHome": "Go to homepage"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "está actualizándose",
3
+ "text": "Estamos haciendo todo lo posible para solucionarlo rápidamente. Por favor, visítanos en otro momento.",
4
+ "btnHome": "Visitar la página de inicio"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "est actuellement en cours de maintenance",
3
+ "text": "Nous faisons tout notre possible pour résoudre ce problème dès que possible. Veuillez revenir plus tard.",
4
+ "btnHome": "Vers la page d’accueil"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "è in fase di manutenzione",
3
+ "text": "Stiamo facendo del nostro meglio per ripristinarla il prima possibile. Torna in un secondo momento.",
4
+ "btnHome": "Visita homepage"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "現在メンテナンス中です。",
3
+ "text": "できるだけ早く修正するために最善を尽くしています。後ほど再試行してください。",
4
+ "btnHome": "ホームページを閲覧"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "점검 중",
3
+ "text": "문제 해결에 최선을 다하고 있습니다. 잠시만 기다려 주세요.",
4
+ "btnHome": "홈페이지로 이동"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "está passando por manutenção",
3
+ "text": "Estamos fazendo o melhor para corrigir o problema o mais rápido possível. Volte mais tarde.",
4
+ "btnHome": "Acessar página inicial"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "находится на техническом обслуживании",
3
+ "text": "Мы делаем все возможное, чтобы решить проблему как можно быстрее. Пожалуйста, повторите попытку позже.",
4
+ "btnHome": "На главную страницу"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "đang trong giai đoạn bảo trì",
3
+ "text": "Chúng tôi đang cố gắng để khắc phục sự cố này trong thời gian sớm nhất. Vui lòng quay lại sau.",
4
+ "btnHome": "Truy cập vào trang chủ"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "正在维护中",
3
+ "text": "我们将全力尽快修复。请稍后再来。",
4
+ "btnHome": "访问主页"
5
+ }
@@ -0,0 +1,140 @@
1
+ "use strict";
2
+
3
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
4
+
5
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
6
+
7
+ Object.defineProperty(exports, "__esModule", {
8
+ value: true
9
+ });
10
+ exports["default"] = void 0;
11
+
12
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
13
+
14
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
15
+
16
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
17
+
18
+ var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
19
+
20
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
21
+
22
+ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
23
+
24
+ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
25
+
26
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
27
+
28
+ var _react = _interopRequireDefault(require("react"));
29
+
30
+ var _button = _interopRequireDefault(require("@semcore/button"));
31
+
32
+ var _core = _interopRequireWildcard(require("@semcore/core"));
33
+
34
+ var _i18nEnhance = _interopRequireDefault(require("@semcore/utils/lib/enhances/i18nEnhance"));
35
+
36
+ var _canUseDOM = _interopRequireDefault(require("@semcore/utils/lib/canUseDOM"));
37
+
38
+ var _assignProps = require("@semcore/utils/lib/assignProps");
39
+
40
+ var _Error = _interopRequireWildcard(require("../Error"));
41
+
42
+ var _de = _interopRequireDefault(require("./translations/de.json"));
43
+
44
+ var _en = _interopRequireDefault(require("./translations/en.json"));
45
+
46
+ var _es = _interopRequireDefault(require("./translations/es.json"));
47
+
48
+ var _fr = _interopRequireDefault(require("./translations/fr.json"));
49
+
50
+ var _it = _interopRequireDefault(require("./translations/it.json"));
51
+
52
+ var _ja = _interopRequireDefault(require("./translations/ja.json"));
53
+
54
+ var _pt = _interopRequireDefault(require("./translations/pt.json"));
55
+
56
+ var _ru = _interopRequireDefault(require("./translations/ru.json"));
57
+
58
+ var _zh = _interopRequireDefault(require("./translations/zh.json"));
59
+
60
+ var _ko = _interopRequireDefault(require("./translations/ko.json"));
61
+
62
+ var _vi = _interopRequireDefault(require("./translations/vi.json"));
63
+
64
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
65
+
66
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
67
+
68
+ var i18n = {
69
+ de: _de["default"],
70
+ en: _en["default"],
71
+ es: _es["default"],
72
+ fr: _fr["default"],
73
+ it: _it["default"],
74
+ ja: _ja["default"],
75
+ ru: _ru["default"],
76
+ zh: _zh["default"],
77
+ pt: _pt["default"],
78
+ ko: _ko["default"],
79
+ vi: _vi["default"]
80
+ };
81
+
82
+ var RootPageError = /*#__PURE__*/function (_Component) {
83
+ (0, _inherits2["default"])(RootPageError, _Component);
84
+
85
+ var _super = _createSuper(RootPageError);
86
+
87
+ function RootPageError() {
88
+ var _this;
89
+
90
+ (0, _classCallCheck2["default"])(this, RootPageError);
91
+
92
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
93
+ args[_key] = arguments[_key];
94
+ }
95
+
96
+ _this = _super.call.apply(_super, [this].concat(args));
97
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "handleReload", function () {
98
+ if ((0, _canUseDOM["default"])()) {
99
+ location.reload();
100
+ }
101
+ });
102
+ return _this;
103
+ }
104
+
105
+ (0, _createClass2["default"])(RootPageError, [{
106
+ key: "render",
107
+ value: function render() {
108
+ var _this$asProps = this.asProps,
109
+ Children = _this$asProps.Children,
110
+ getI18nText = _this$asProps.getI18nText,
111
+ onClick = _this$asProps.onClick,
112
+ other = (0, _objectWithoutProperties2["default"])(_this$asProps, ["Children", "getI18nText", "onClick"]);
113
+
114
+ var _getI18nText = getI18nText(),
115
+ title = _getI18nText.title,
116
+ text = _getI18nText.text,
117
+ btnRetry = _getI18nText.btnRetry;
118
+
119
+ return /*#__PURE__*/_react["default"].createElement(_Error["default"], other, /*#__PURE__*/_react["default"].createElement(_Error["default"].Title, null, title), /*#__PURE__*/_react["default"].createElement(_Error["default"].Description, null, text), /*#__PURE__*/_react["default"].createElement(Children, null), /*#__PURE__*/_react["default"].createElement(_Error["default"].Controls, null, /*#__PURE__*/_react["default"].createElement(_button["default"], {
120
+ onClick: (0, _assignProps.callAllEventHandlers)(onClick, this.handleReload),
121
+ size: "xl",
122
+ use: "primary",
123
+ theme: "info"
124
+ }, btnRetry)));
125
+ }
126
+ }]);
127
+ return RootPageError;
128
+ }(_core.Component);
129
+
130
+ (0, _defineProperty2["default"])(RootPageError, "displayName", 'PageError');
131
+ (0, _defineProperty2["default"])(RootPageError, "enhance", [(0, _i18nEnhance["default"])()]);
132
+ (0, _defineProperty2["default"])(RootPageError, "defaultProps", {
133
+ i18n: i18n,
134
+ icon: (0, _Error.getIconPath)('page_error')
135
+ });
136
+
137
+ var _default = (0, _core["default"])(RootPageError);
138
+
139
+ exports["default"] = _default;
140
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/PageError/index.js"],"names":["i18n","de","en","es","fr","it","ja","ru","zh","pt","ko","vi","RootPageError","location","reload","asProps","Children","getI18nText","onClick","other","title","text","btnRetry","handleReload","Component","icon"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,IAAMA,IAAI,GAAG;AAAEC,EAAAA,EAAE,EAAFA,cAAF;AAAMC,EAAAA,EAAE,EAAFA,cAAN;AAAUC,EAAAA,EAAE,EAAFA,cAAV;AAAcC,EAAAA,EAAE,EAAFA,cAAd;AAAkBC,EAAAA,EAAE,EAAFA,cAAlB;AAAsBC,EAAAA,EAAE,EAAFA,cAAtB;AAA0BC,EAAAA,EAAE,EAAFA,cAA1B;AAA8BC,EAAAA,EAAE,EAAFA,cAA9B;AAAkCC,EAAAA,EAAE,EAAFA,cAAlC;AAAsCC,EAAAA,EAAE,EAAFA,cAAtC;AAA0CC,EAAAA,EAAE,EAAFA;AAA1C,CAAb;;IAEMC,a;;;;;;;;;;;;;;;qGAQW,YAAM;AACnB,UAAI,4BAAJ,EAAiB;AACfC,QAAAA,QAAQ,CAACC,MAAT;AACD;AACF,K;;;;;;WAED,kBAAS;AAAA,0BAC8C,KAAKC,OADnD;AAAA,UACCC,QADD,iBACCA,QADD;AAAA,UACWC,WADX,iBACWA,WADX;AAAA,UACwBC,OADxB,iBACwBA,OADxB;AAAA,UACoCC,KADpC;;AAAA,yBAE2BF,WAAW,EAFtC;AAAA,UAECG,KAFD,gBAECA,KAFD;AAAA,UAEQC,IAFR,gBAEQA,IAFR;AAAA,UAEcC,QAFd,gBAEcA,QAFd;;AAGP,0BACE,gCAAC,iBAAD,EAAWH,KAAX,eACE,gCAAC,iBAAD,CAAO,KAAP,QAAcC,KAAd,CADF,eAEE,gCAAC,iBAAD,CAAO,WAAP,QAAoBC,IAApB,CAFF,eAGE,gCAAC,QAAD,OAHF,eAIE,gCAAC,iBAAD,CAAO,QAAP,qBACE,gCAAC,kBAAD;AACE,QAAA,OAAO,EAAE,uCAAqBH,OAArB,EAA8B,KAAKK,YAAnC,CADX;AAEE,QAAA,IAAI,EAAC,IAFP;AAGE,QAAA,GAAG,EAAC,SAHN;AAIE,QAAA,KAAK,EAAC;AAJR,SAMGD,QANH,CADF,CAJF,CADF;AAiBD;;;EAlCyBE,e;;iCAAtBZ,a,iBACiB,W;iCADjBA,a,aAEa,CAAC,8BAAD,C;iCAFbA,a,kBAGkB;AACpBZ,EAAAA,IAAI,EAAJA,IADoB;AAEpByB,EAAAA,IAAI,EAAE,wBAAY,YAAZ;AAFc,C;;eAkCT,sBAAgBb,aAAhB,C","sourcesContent":["import React from 'react';\nimport Button from '@semcore/button';\nimport createComponent, { Component } from '@semcore/core';\nimport i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';\nimport canUseDOM from '@semcore/utils/lib/canUseDOM';\nimport { callAllEventHandlers } from '@semcore/utils/lib/assignProps';\nimport Error, { getIconPath } from '../Error';\n\nimport de from './translations/de.json';\nimport en from './translations/en.json';\nimport es from './translations/es.json';\nimport fr from './translations/fr.json';\nimport it from './translations/it.json';\nimport ja from './translations/ja.json';\nimport pt from './translations/pt.json';\nimport ru from './translations/ru.json';\nimport zh from './translations/zh.json';\nimport ko from './translations/ko.json';\nimport vi from './translations/vi.json';\n\nconst i18n = { de, en, es, fr, it, ja, ru, zh, pt, ko, vi };\n\nclass RootPageError extends Component {\n static displayName = 'PageError';\n static enhance = [i18nEnhance()];\n static defaultProps = {\n i18n,\n icon: getIconPath('page_error'),\n };\n\n handleReload = () => {\n if (canUseDOM()) {\n location.reload();\n }\n };\n\n render() {\n const { Children, getI18nText, onClick, ...other } = this.asProps;\n const { title, text, btnRetry } = getI18nText();\n return (\n <Error {...other}>\n <Error.Title>{title}</Error.Title>\n <Error.Description>{text}</Error.Description>\n <Children />\n <Error.Controls>\n <Button\n onClick={callAllEventHandlers(onClick, this.handleReload)}\n size=\"xl\"\n use=\"primary\"\n theme=\"info\"\n >\n {btnRetry}\n </Button>\n </Error.Controls>\n </Error>\n );\n }\n}\n\nexport default createComponent(RootPageError);\n"],"file":"index.js"}
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "Es ist ein Fehler aufgetreten",
3
+ "text": "Keine Sorge – wir wissen von dem Problem und arbeiten an seiner Behebung. Bitte versuchen Sie es später erneut.",
4
+ "btnRetry": "Noch mal versuchen"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "Something went wrong",
3
+ "text": "Don't worry though, we are aware of the issue and are working to fix it. Please try again later.",
4
+ "btnRetry": "Try again"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "Algo salió mal",
3
+ "text": "De todas maneras no te preocupes, estamos al corriente del problema y estamos tratando de solucionarlo.",
4
+ "btnRetry": "Inténtalo de nuevo"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "Une erreur est survenue",
3
+ "text": "Ne vous inquiétez pas, nous avons connaissance du problème et travaillons pour le réparer. Veuillez réessayer plus tard.",
4
+ "btnRetry": "Veuillez réessayer"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "Si è verificato un errore",
3
+ "text": "Ma non preoccuparti, siamo a conoscenza del problema e stiamo lavorando per porvi rimedio. Riprova più tardi.",
4
+ "btnRetry": "Riprova"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "エラーが発生しました",
3
+ "text": "心配はありません。私たちは問題を把握し、解決に向けて動いています。あとで再試行してください。",
4
+ "btnRetry": "もう一度お試しください"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "오류가 발생했습니다.",
3
+ "text": "문제를 파악했으며 해결 중입니다. 나중에 다시 시도해 주세요.",
4
+ "btnRetry": "다시 시도해 주세요"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "Algo deu errado",
3
+ "text": "Não se preocupe, estamos cientes do problema e estamos trabalhando para resolvê-lo. Tente novamente mais tarde.",
4
+ "btnRetry": "Tente novamente"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "Произошла ошибка",
3
+ "text": "Мы уже знаем об этой проблеме и в настоящий момент устраняем ее. Пожалуйста, повторите попытку позже.",
4
+ "btnRetry": "Повторите попытку"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "Đã xảy ra lỗi",
3
+ "text": "Đừng lo lắng, chúng tôi đã nhận thấy vấn đề và đang khắc phục nó. Vui lòng thử lại sau.",
4
+ "btnRetry": "Vui lòng thử lại"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "出错了",
3
+ "text": "别担心,我们已经发现了问题并正在处理。请稍后重试。",
4
+ "btnRetry": "重试"
5
+ }
@@ -0,0 +1,123 @@
1
+ "use strict";
2
+
3
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
4
+
5
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
6
+
7
+ Object.defineProperty(exports, "__esModule", {
8
+ value: true
9
+ });
10
+ exports["default"] = void 0;
11
+
12
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
13
+
14
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
15
+
16
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
17
+
18
+ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
19
+
20
+ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
21
+
22
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
23
+
24
+ var _core = _interopRequireWildcard(require("@semcore/core"));
25
+
26
+ var _react = _interopRequireDefault(require("react"));
27
+
28
+ var _button = _interopRequireDefault(require("@semcore/button"));
29
+
30
+ var _i18nEnhance = _interopRequireDefault(require("@semcore/utils/lib/enhances/i18nEnhance"));
31
+
32
+ var _Error = _interopRequireWildcard(require("../Error"));
33
+
34
+ var _de = _interopRequireDefault(require("./translations/de.json"));
35
+
36
+ var _en = _interopRequireDefault(require("./translations/en.json"));
37
+
38
+ var _es = _interopRequireDefault(require("./translations/es.json"));
39
+
40
+ var _fr = _interopRequireDefault(require("./translations/fr.json"));
41
+
42
+ var _it = _interopRequireDefault(require("./translations/it.json"));
43
+
44
+ var _ja = _interopRequireDefault(require("./translations/ja.json"));
45
+
46
+ var _pt = _interopRequireDefault(require("./translations/pt.json"));
47
+
48
+ var _ru = _interopRequireDefault(require("./translations/ru.json"));
49
+
50
+ var _zh = _interopRequireDefault(require("./translations/zh.json"));
51
+
52
+ var _ko = _interopRequireDefault(require("./translations/ko.json"));
53
+
54
+ var _vi = _interopRequireDefault(require("./translations/vi.json"));
55
+
56
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
57
+
58
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
59
+
60
+ var i18n = {
61
+ de: _de["default"],
62
+ en: _en["default"],
63
+ es: _es["default"],
64
+ fr: _fr["default"],
65
+ it: _it["default"],
66
+ ja: _ja["default"],
67
+ ru: _ru["default"],
68
+ zh: _zh["default"],
69
+ pt: _pt["default"],
70
+ ko: _ko["default"],
71
+ vi: _vi["default"]
72
+ };
73
+
74
+ var RootPageNotFound = /*#__PURE__*/function (_Component) {
75
+ (0, _inherits2["default"])(RootPageNotFound, _Component);
76
+
77
+ var _super = _createSuper(RootPageNotFound);
78
+
79
+ function RootPageNotFound() {
80
+ (0, _classCallCheck2["default"])(this, RootPageNotFound);
81
+ return _super.apply(this, arguments);
82
+ }
83
+
84
+ (0, _createClass2["default"])(RootPageNotFound, [{
85
+ key: "render",
86
+ value: function render() {
87
+ var _ref = this ? this.asProps : arguments[0];
88
+
89
+ var _this$asProps = this.asProps,
90
+ Children = _this$asProps.Children,
91
+ getI18nText = _this$asProps.getI18nText,
92
+ homeLink = _this$asProps.homeLink;
93
+
94
+ var _getI18nText = getI18nText(),
95
+ title = _getI18nText.title,
96
+ text = _getI18nText.text,
97
+ btnHome = _getI18nText.btnHome;
98
+
99
+ return /*#__PURE__*/_react["default"].createElement(_Error["default"], (0, _core.assignProps)({}, _ref), /*#__PURE__*/_react["default"].createElement(_Error["default"].Title, null, title), /*#__PURE__*/_react["default"].createElement(_Error["default"].Description, null, text), /*#__PURE__*/_react["default"].createElement(Children, null), /*#__PURE__*/_react["default"].createElement(_Error["default"].Controls, null, /*#__PURE__*/_react["default"].createElement(_button["default"], {
100
+ tag: "a",
101
+ type: "none",
102
+ size: "xl",
103
+ use: "primary",
104
+ theme: "info",
105
+ href: homeLink
106
+ }, btnHome)));
107
+ }
108
+ }]);
109
+ return RootPageNotFound;
110
+ }(_core.Component);
111
+
112
+ (0, _defineProperty2["default"])(RootPageNotFound, "displayName", 'Maintenance');
113
+ (0, _defineProperty2["default"])(RootPageNotFound, "enhance", [(0, _i18nEnhance["default"])()]);
114
+ (0, _defineProperty2["default"])(RootPageNotFound, "defaultProps", {
115
+ i18n: i18n,
116
+ icon: (0, _Error.getIconPath)('page_not_found'),
117
+ homeLink: '/'
118
+ });
119
+
120
+ var _default = (0, _core["default"])(RootPageNotFound);
121
+
122
+ exports["default"] = _default;
123
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/PageNotFound/index.js"],"names":["i18n","de","en","es","fr","it","ja","ru","zh","pt","ko","vi","RootPageNotFound","asProps","Children","getI18nText","homeLink","title","text","btnHome","Error","Component","icon"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAEA;;AAFA;;AACA;;AAEA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,IAAMA,IAAI,GAAG;AAAEC,EAAAA,EAAE,EAAFA,cAAF;AAAMC,EAAAA,EAAE,EAAFA,cAAN;AAAUC,EAAAA,EAAE,EAAFA,cAAV;AAAcC,EAAAA,EAAE,EAAFA,cAAd;AAAkBC,EAAAA,EAAE,EAAFA,cAAlB;AAAsBC,EAAAA,EAAE,EAAFA,cAAtB;AAA0BC,EAAAA,EAAE,EAAFA,cAA1B;AAA8BC,EAAAA,EAAE,EAAFA,cAA9B;AAAkCC,EAAAA,EAAE,EAAFA,cAAlC;AAAsCC,EAAAA,EAAE,EAAFA,cAAtC;AAA0CC,EAAAA,EAAE,EAAFA;AAA1C,CAAb;;IAEMC,gB;;;;;;;;;;;;WASJ,kBAAS;AAAA;;AAAA,0BACqC,KAAKC,OAD1C;AAAA,UACCC,QADD,iBACCA,QADD;AAAA,UACWC,WADX,iBACWA,WADX;AAAA,UACwBC,QADxB,iBACwBA,QADxB;;AAAA,yBAE0BD,WAAW,EAFrC;AAAA,UAECE,KAFD,gBAECA,KAFD;AAAA,UAEQC,IAFR,gBAEQA,IAFR;AAAA,UAEcC,OAFd,gBAEcA,OAFd;;AAGP,0BACE,gCAAcC,iBAAd,iDACE,gCAAC,iBAAD,CAAO,KAAP,QAAcH,KAAd,CADF,eAEE,gCAAC,iBAAD,CAAO,WAAP,QAAoBC,IAApB,CAFF,eAGE,gCAAC,QAAD,OAHF,eAIE,gCAAC,iBAAD,CAAO,QAAP,qBACE,gCAAC,kBAAD;AAAQ,QAAA,GAAG,EAAC,GAAZ;AAAgB,QAAA,IAAI,EAAC,MAArB;AAA4B,QAAA,IAAI,EAAC,IAAjC;AAAsC,QAAA,GAAG,EAAC,SAA1C;AAAoD,QAAA,KAAK,EAAC,MAA1D;AAAiE,QAAA,IAAI,EAAEF;AAAvE,SACGG,OADH,CADF,CAJF,CADF;AAYD;;;EAxB4BE,e;;iCAAzBT,gB,iBACiB,a;iCADjBA,gB,aAEa,CAAC,8BAAD,C;iCAFbA,gB,kBAGkB;AACpBZ,EAAAA,IAAI,EAAJA,IADoB;AAEpBsB,EAAAA,IAAI,EAAE,wBAAY,gBAAZ,CAFc;AAGpBN,EAAAA,QAAQ,EAAE;AAHU,C;;eAwBT,sBAAgBJ,gBAAhB,C","sourcesContent":["import React from 'react';\nimport Button from '@semcore/button';\nimport createComponent, { Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';\nimport Error, { getIconPath } from '../Error';\n\nimport de from './translations/de.json';\nimport en from './translations/en.json';\nimport es from './translations/es.json';\nimport fr from './translations/fr.json';\nimport it from './translations/it.json';\nimport ja from './translations/ja.json';\nimport pt from './translations/pt.json';\nimport ru from './translations/ru.json';\nimport zh from './translations/zh.json';\nimport ko from './translations/ko.json';\nimport vi from './translations/vi.json';\n\nconst i18n = { de, en, es, fr, it, ja, ru, zh, pt, ko, vi };\n\nclass RootPageNotFound extends Component {\n static displayName = 'Maintenance';\n static enhance = [i18nEnhance()];\n static defaultProps = {\n i18n,\n icon: getIconPath('page_not_found'),\n homeLink: '/',\n };\n\n render() {\n const { Children, getI18nText, homeLink } = this.asProps;\n const { title, text, btnHome } = getI18nText();\n return (\n <Root render={Error}>\n <Error.Title>{title}</Error.Title>\n <Error.Description>{text}</Error.Description>\n <Children />\n <Error.Controls>\n <Button tag=\"a\" type=\"none\" size=\"xl\" use=\"primary\" theme=\"info\" href={homeLink}>\n {btnHome}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent(RootPageNotFound);\n"],"file":"index.js"}
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "Seite nicht gefunden",
3
+ "text": "Die gesuchte Seite wurde nicht gefunden. Sie können zur vorherigen Seite zurückkehren oder unsere Homepage besuchen.",
4
+ "btnHome": "Homepage besuchen"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "We got lost",
3
+ "text": "It looks like this page doesn't exist. Try going back or click the button below and we'll take you home.",
4
+ "btnHome": "Go to homepage"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "Página no encontrada",
3
+ "text": "No se ha encontrado la página que buscas. Puedes volver a la página anterior o visitar nuestra página de inicio.",
4
+ "btnHome": "Visitar la página de inicio"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "Page non trouvée",
3
+ "text": "Nous ne pouvons pas trouver la page que vous recherchez. Vous pouvez revenir à la page précédente ou consulter notre page d'accueil.",
4
+ "btnHome": "Vers la page d’accueil"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "Pagina non trovata",
3
+ "text": "Impossibile trovare la pagina che stai cercando. Puoi tornare alla pagina precedente o visitare la nostra homepage.",
4
+ "btnHome": "Visita homepage"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "ページが見つかりませんでした。",
3
+ "text": "お探しのページが見つかりません。前のページに戻るか、ホームページを閲覧できます。",
4
+ "btnHome": "ホームページを閲覧"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "페이지를 찾을 수 없음",
3
+ "text": "찾고 계신 페이지를 찾을 수 없습니다. 이전 페이지로 돌아가거나 Semrush 홈페이지로 이동하세요.",
4
+ "btnHome": "홈페이지로 이동"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "Página não encontrada",
3
+ "text": "Não foi possível localizar a página que você está procurando. Você pode retornar para a página anterior ou acessar a página inicial.",
4
+ "btnHome": "Acessar página inicial"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "Страница не найдена",
3
+ "text": "Страница, которую вы запрашиваете, не существует. Вы можете вернуться на предыдущую страницу или перейти на главную.",
4
+ "btnHome": "На главную страницу"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "Không tìm thấy trang",
3
+ "text": "Rất tiếc, chúng tôi không thể tìm thấy trang bạn đang tìm kiếm. Bạn có thể quay lại trang trước hoặc truy cập đến trang chủ.",
4
+ "btnHome": "Truy cập vào trang chủ"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "找不到页面",
3
+ "text": "我们找不到您要查找的页面。您可以返回到上一页或访问主页。",
4
+ "btnHome": "访问主页"
5
+ }