@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,122 @@
1
+ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
2
+ import _createClass from "@babel/runtime/helpers/createClass";
3
+ import _inherits from "@babel/runtime/helpers/inherits";
4
+ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
5
+ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
7
+ import { sstyled as _sstyled } from "@semcore/core";
8
+ import { assignProps as _assignProps4 } from "@semcore/core";
9
+ import { assignProps as _assignProps3 } from "@semcore/core";
10
+ import { assignProps as _assignProps2 } from "@semcore/core";
11
+ import { assignProps as _assignProps } from "@semcore/core";
12
+
13
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
14
+
15
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
16
+
17
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
18
+
19
+ 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; } }
20
+
21
+ import React from 'react';
22
+ import { Box, Flex } from '@semcore/flex-box';
23
+ import createComponent, { Root, Component, sstyled } from '@semcore/core';
24
+
25
+ /*__reshadow-styles__:"./style/errors.shadow.css"*/
26
+ var style = (
27
+ /*__reshadow_css_start__*/
28
+ _sstyled.insert(
29
+ /*__inner_css_start__*/
30
+ ".___SError_1p7iq_gg_{padding:96px 0;margin:0 auto;max-width:960px}.___SInner_1p7iq_gg_{width:100%;display:flex;justify-content:flex-start;flex-wrap:wrap;align-items:flex-start;box-sizing:border-box}@media (max-width:920px){.___SInner_1p7iq_gg_{padding:0 10px}}.___SImageWrapper_1p7iq_gg_{width:240px;height:240px;margin-right:80px}.___SWrapper_1p7iq_gg_{flex:1 0 320px;margin-top:32px}@media (max-width:920px){.___SWrapper_1p7iq_gg_{flex:1 0 300px;max-width:100%}}.___STitle_1p7iq_gg_{font-size:36px;line-height:1.17;font-weight:700;margin:0 0 16px 0}.___SDescription_1p7iq_gg_{font-size:16px;line-height:1.5;margin:0 0 24px 0}.___SControls_1p7iq_gg_{display:flex;align-items:center}.___SControls_1p7iq_gg_>:not(:last-child){margin-right:12px}"
31
+ /*__inner_css_end__*/
32
+ , "igorms_gg_")
33
+ /*__reshadow_css_end__*/
34
+ , {
35
+ "__SError": "___SError_1p7iq_gg_",
36
+ "__SInner": "___SInner_1p7iq_gg_",
37
+ "__SImageWrapper": "___SImageWrapper_1p7iq_gg_",
38
+ "__SWrapper": "___SWrapper_1p7iq_gg_",
39
+ "__STitle": "___STitle_1p7iq_gg_",
40
+ "__SDescription": "___SDescription_1p7iq_gg_",
41
+ "__SControls": "___SControls_1p7iq_gg_"
42
+ });
43
+ var version = "2.4.3";
44
+ export var getIconPath = function getIconPath(name) {
45
+ return "//static.semrush.com/ui-kit/errors/".concat(version, "/").concat(name, ".svg");
46
+ };
47
+
48
+ var RootError = /*#__PURE__*/function (_Component) {
49
+ _inherits(RootError, _Component);
50
+
51
+ var _super = _createSuper(RootError);
52
+
53
+ function RootError() {
54
+ _classCallCheck(this, RootError);
55
+
56
+ return _super.apply(this, arguments);
57
+ }
58
+
59
+ _createClass(RootError, [{
60
+ key: "render",
61
+ value: function render() {
62
+ var _ref = this ? this.asProps : arguments[0],
63
+ _ref5;
64
+
65
+ var SError = Flex;
66
+ var _this$asProps = this.asProps,
67
+ Children = _this$asProps.Children,
68
+ styles = _this$asProps.styles,
69
+ icon = _this$asProps.icon;
70
+ var SInner = 'div';
71
+ var SImageWrapper = 'div';
72
+ var SWrapper = 'div';
73
+ return _ref5 = sstyled(styles), /*#__PURE__*/React.createElement(SError, _ref5.cn("SError", _objectSpread({}, _assignProps({}, _ref))), /*#__PURE__*/React.createElement(SInner, _ref5.cn("SInner", {}), icon && /*#__PURE__*/React.createElement(SImageWrapper, _ref5.cn("SImageWrapper", {}), typeof icon === 'string' ? /*#__PURE__*/React.createElement("img", _ref5.cn("img", {
74
+ "width": 240,
75
+ "height": 240,
76
+ "src": icon,
77
+ "alt": "error icon"
78
+ })) : icon), /*#__PURE__*/React.createElement(SWrapper, _ref5.cn("SWrapper", {}), /*#__PURE__*/React.createElement(Children, _ref5.cn("Children", {})))));
79
+ }
80
+ }]);
81
+
82
+ return RootError;
83
+ }(Component);
84
+
85
+ _defineProperty(RootError, "displayName", 'Error');
86
+
87
+ _defineProperty(RootError, "style", style);
88
+
89
+ function Title(props) {
90
+ var _ref2 = this ? this.asProps : arguments[0],
91
+ _ref6;
92
+
93
+ var STitle = Box;
94
+ return _ref6 = sstyled(props.styles), /*#__PURE__*/React.createElement(STitle, _ref6.cn("STitle", _objectSpread({}, _assignProps2({
95
+ "tag": "h2"
96
+ }, _ref2))));
97
+ }
98
+
99
+ function Description(props) {
100
+ var _ref3 = this ? this.asProps : arguments[0],
101
+ _ref7;
102
+
103
+ var SDescription = Box;
104
+ return _ref7 = sstyled(props.styles), /*#__PURE__*/React.createElement(SDescription, _ref7.cn("SDescription", _objectSpread({}, _assignProps3({
105
+ "tag": "p"
106
+ }, _ref3))));
107
+ }
108
+
109
+ function Controls(props) {
110
+ var _ref4 = this ? this.asProps : arguments[0],
111
+ _ref8;
112
+
113
+ var SControls = Box;
114
+ return _ref8 = sstyled(props.styles), /*#__PURE__*/React.createElement(SControls, _ref8.cn("SControls", _objectSpread({}, _assignProps4({}, _ref4))));
115
+ }
116
+
117
+ export default createComponent(RootError, {
118
+ Title: Title,
119
+ Description: Description,
120
+ Controls: Controls
121
+ });
122
+ //# sourceMappingURL=Error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/Error.js"],"names":["React","Box","Flex","createComponent","Root","Component","sstyled","version","getIconPath","name","RootError","SError","asProps","Children","styles","icon","SInner","SImageWrapper","SWrapper","style","Title","props","STitle","Description","SDescription","Controls","SControls"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,IAAd,QAA0B,mBAA1B;AACA,OAAOC,eAAP,IAA0BC,IAA1B,EAAgCC,SAAhC,EAA2CC,OAA3C,QAA0D,eAA1D;;;;;;;;;;;;;;;;;;;;AAGA,IAAMC,OAAO,UAAb;AAIA,OAAO,IAAMC,WAAW,GAAG,SAAdA,WAAc,CAACC,IAAD;AAAA,sDAAgDF,OAAhD,cAA2DE,IAA3D;AAAA,CAApB;;IAEDC,S;;;;;;;;;;;;;WAIJ,kBAAS;AAAA;AAAA;;AACP,UAAMC,MAAM,GAMMT,IANlB;AADO,0BAE4B,KAAKU,OAFjC;AAAA,UAECC,QAFD,iBAECA,QAFD;AAAA,UAEWC,MAFX,iBAEWA,MAFX;AAAA,UAEmBC,IAFnB,iBAEmBA,IAFnB;AAGP,UAAMC,MAAM,GAAG,KAAf;AACA,UAAMC,aAAa,GAAG,KAAtB;AACA,UAAMC,QAAQ,GAAG,KAAjB;AACA,qBAAOZ,OAAO,CAACQ,MAAD,CAAd,eACE,oBAAC,MAAD,8EACE,oBAAC,MAAD,0BACGC,IAAI,iBACH,oBAAC,aAAD,iCACG,OAAOA,IAAP,KAAgB,QAAhB,gBACC;AAAA,iBAAY,GAAZ;AAAA,kBAAyB,GAAzB;AAAA,eAAmCA,IAAnC;AAAA,eAA6C;AAA7C,SADD,GAGCA,IAJJ,CAFJ,eAUE,oBAAC,QAAD,yCACE,oBAAC,QAAD,2BADF,CAVF,CADF,CADF;AAkBD;;;;EA5BqBV,S;;gBAAlBK,S,iBACiB,O;;gBADjBA,S,WAEWS,K;;AA6BjB,SAASC,KAAT,CAAeC,KAAf,EAAsB;AAAA;AAAA;;AACpB,MAAMC,MAAM,GACiCrB,GAD7C;AACA,iBAAOK,OAAO,CAACe,KAAK,CAACP,MAAP,CAAd,eAA6B,oBAAC,MAAD;AAAA,WAAyB;AAAzB,cAA7B;AACD;;AAED,SAASS,WAAT,CAAqBF,KAArB,EAA4B;AAAA;AAAA;;AAC1B,MAAMG,YAAY,GACiCvB,GADnD;AACA,iBAAOK,OAAO,CAACe,KAAK,CAACP,MAAP,CAAd,eAA6B,oBAAC,YAAD;AAAA,WAA+B;AAA/B,cAA7B;AACD;;AAED,SAASW,QAAT,CAAkBJ,KAAlB,EAAyB;AAAA;AAAA;;AACvB,MAAMK,SAAS,GACiCzB,GADhD;AACA,iBAAOK,OAAO,CAACe,KAAK,CAACP,MAAP,CAAd,eAA6B,oBAAC,SAAD,qEAA7B;AACD;;AAED,eAAeX,eAAe,CAACO,SAAD,EAAY;AACxCU,EAAAA,KAAK,EAALA,KADwC;AAExCG,EAAAA,WAAW,EAAXA,WAFwC;AAGxCE,EAAAA,QAAQ,EAARA;AAHwC,CAAZ,CAA9B","sourcesContent":["import React from 'react';\nimport { Box, Flex } from '@semcore/flex-box';\nimport createComponent, { Root, Component, sstyled } from '@semcore/core';\nimport style from './style/errors.shadow.css';\n\nconst version = preval`\n module.exports = require('../package.json').version\n`;\n\nexport const getIconPath = (name) => `//static.semrush.com/ui-kit/errors/${version}/${name}.svg`;\n\nclass RootError extends Component {\n static displayName = 'Error';\n static style = style;\n\n render() {\n const SError = Root;\n const { Children, styles, icon } = this.asProps;\n const SInner = 'div';\n const SImageWrapper = 'div';\n const SWrapper = 'div';\n return sstyled(styles)(\n <SError render={Flex}>\n <SInner>\n {icon && (\n <SImageWrapper>\n {typeof icon === 'string' ? (\n <img width={240} height={240} src={icon} alt=\"error icon\" />\n ) : (\n icon\n )}\n </SImageWrapper>\n )}\n <SWrapper>\n <Children />\n </SWrapper>\n </SInner>\n </SError>,\n );\n }\n}\n\nfunction Title(props) {\n const STitle = Root;\n return sstyled(props.styles)(<STitle render={Box} tag=\"h2\" />);\n}\n\nfunction Description(props) {\n const SDescription = Root;\n return sstyled(props.styles)(<SDescription render={Box} tag=\"p\" />);\n}\n\nfunction Controls(props) {\n const SControls = Root;\n return sstyled(props.styles)(<SControls render={Box} />);\n}\n\nexport default createComponent(RootError, {\n Title,\n Description,\n Controls,\n});\n"],"file":"Error.js"}
@@ -0,0 +1,95 @@
1
+ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
2
+ import _createClass from "@babel/runtime/helpers/createClass";
3
+ import _inherits from "@babel/runtime/helpers/inherits";
4
+ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
5
+ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
7
+ import { assignProps as _assignProps } from "@semcore/core";
8
+
9
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
10
+
11
+ 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; } }
12
+
13
+ import React from 'react';
14
+ import Button from '@semcore/button';
15
+ import createComponent, { Component, Root } from '@semcore/core';
16
+ import i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';
17
+ import Error, { getIconPath } from '../Error';
18
+ import de from './translations/de.json';
19
+ import en from './translations/en.json';
20
+ import es from './translations/es.json';
21
+ import fr from './translations/fr.json';
22
+ import it from './translations/it.json';
23
+ import ja from './translations/ja.json';
24
+ import pt from './translations/pt.json';
25
+ import ru from './translations/ru.json';
26
+ import zh from './translations/zh.json';
27
+ import ko from './translations/ko.json';
28
+ import vi from './translations/vi.json';
29
+ var i18n = {
30
+ de: de,
31
+ en: en,
32
+ es: es,
33
+ fr: fr,
34
+ it: it,
35
+ ja: ja,
36
+ ru: ru,
37
+ zh: zh,
38
+ pt: pt,
39
+ ko: ko,
40
+ vi: vi
41
+ };
42
+
43
+ var RootMaintenance = /*#__PURE__*/function (_Component) {
44
+ _inherits(RootMaintenance, _Component);
45
+
46
+ var _super = _createSuper(RootMaintenance);
47
+
48
+ function RootMaintenance() {
49
+ _classCallCheck(this, RootMaintenance);
50
+
51
+ return _super.apply(this, arguments);
52
+ }
53
+
54
+ _createClass(RootMaintenance, [{
55
+ key: "render",
56
+ value: function render() {
57
+ var _ref = this ? this.asProps : arguments[0];
58
+
59
+ var _this$asProps = this.asProps,
60
+ Children = _this$asProps.Children,
61
+ getI18nText = _this$asProps.getI18nText,
62
+ homeLink = _this$asProps.homeLink,
63
+ toolName = _this$asProps.toolName;
64
+
65
+ var _getI18nText = getI18nText(),
66
+ title = _getI18nText.title,
67
+ text = _getI18nText.text,
68
+ btnHome = _getI18nText.btnHome;
69
+
70
+ return /*#__PURE__*/React.createElement(Error, _assignProps({}, _ref), /*#__PURE__*/React.createElement(Error.Title, null, "".concat(toolName, " ").concat(title)), /*#__PURE__*/React.createElement(Error.Description, null, text), /*#__PURE__*/React.createElement(Children, null), /*#__PURE__*/React.createElement(Error.Controls, null, /*#__PURE__*/React.createElement(Button, {
71
+ tag: "a",
72
+ type: "none",
73
+ size: "xl",
74
+ use: "primary",
75
+ theme: "info",
76
+ href: homeLink
77
+ }, btnHome)));
78
+ }
79
+ }]);
80
+
81
+ return RootMaintenance;
82
+ }(Component);
83
+
84
+ _defineProperty(RootMaintenance, "displayName", 'Maintenance');
85
+
86
+ _defineProperty(RootMaintenance, "enhance", [i18nEnhance()]);
87
+
88
+ _defineProperty(RootMaintenance, "defaultProps", {
89
+ i18n: i18n,
90
+ homeLink: '/',
91
+ icon: getIconPath('maintenance')
92
+ });
93
+
94
+ export default createComponent(RootMaintenance);
95
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/Maintenance/index.js"],"names":["React","Button","createComponent","Component","Root","i18nEnhance","Error","getIconPath","de","en","es","fr","it","ja","pt","ru","zh","ko","vi","i18n","RootMaintenance","asProps","Children","getI18nText","homeLink","toolName","title","text","btnHome","icon"],"mappings":";;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,MAAP,MAAmB,iBAAnB;AACA,OAAOC,eAAP,IAA0BC,SAA1B,EAAqCC,IAArC,QAAiD,eAAjD;AACA,OAAOC,WAAP,MAAwB,yCAAxB;AACA,OAAOC,KAAP,IAAgBC,WAAhB,QAAmC,UAAnC;AAEA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AAEA,IAAMC,IAAI,GAAG;AAAEX,EAAAA,EAAE,EAAFA,EAAF;AAAMC,EAAAA,EAAE,EAAFA,EAAN;AAAUC,EAAAA,EAAE,EAAFA,EAAV;AAAcC,EAAAA,EAAE,EAAFA,EAAd;AAAkBC,EAAAA,EAAE,EAAFA,EAAlB;AAAsBC,EAAAA,EAAE,EAAFA,EAAtB;AAA0BE,EAAAA,EAAE,EAAFA,EAA1B;AAA8BC,EAAAA,EAAE,EAAFA,EAA9B;AAAkCF,EAAAA,EAAE,EAAFA,EAAlC;AAAsCG,EAAAA,EAAE,EAAFA,EAAtC;AAA0CC,EAAAA,EAAE,EAAFA;AAA1C,CAAb;;IAEME,e;;;;;;;;;;;;;WASJ,kBAAS;AAAA;;AAAA,0BAC+C,KAAKC,OADpD;AAAA,UACCC,QADD,iBACCA,QADD;AAAA,UACWC,WADX,iBACWA,WADX;AAAA,UACwBC,QADxB,iBACwBA,QADxB;AAAA,UACkCC,QADlC,iBACkCA,QADlC;;AAAA,yBAE0BF,WAAW,EAFrC;AAAA,UAECG,KAFD,gBAECA,KAFD;AAAA,UAEQC,IAFR,gBAEQA,IAFR;AAAA,UAEcC,OAFd,gBAEcA,OAFd;;AAGP,0BACE,oBAActB,KAAd,uCACE,oBAAC,KAAD,CAAO,KAAP,kBAAiBmB,QAAjB,cAA6BC,KAA7B,EADF,eAEE,oBAAC,KAAD,CAAO,WAAP,QAAoBC,IAApB,CAFF,eAGE,oBAAC,QAAD,OAHF,eAIE,oBAAC,KAAD,CAAO,QAAP,qBACE,oBAAC,MAAD;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,EAAEH;AAAvE,SACGI,OADH,CADF,CAJF,CADF;AAYD;;;;EAxB2BzB,S;;gBAAxBiB,e,iBACiB,a;;gBADjBA,e,aAEa,CAACf,WAAW,EAAZ,C;;gBAFbe,e,kBAGkB;AACpBD,EAAAA,IAAI,EAAJA,IADoB;AAEpBK,EAAAA,QAAQ,EAAE,GAFU;AAGpBK,EAAAA,IAAI,EAAEtB,WAAW,CAAC,aAAD;AAHG,C;;AAwBxB,eAAeL,eAAe,CAACkB,eAAD,CAA9B","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 RootMaintenance extends Component {\n static displayName = 'Maintenance';\n static enhance = [i18nEnhance()];\n static defaultProps = {\n i18n,\n homeLink: '/',\n icon: getIconPath('maintenance'),\n };\n\n render() {\n const { Children, getI18nText, homeLink, toolName } = this.asProps;\n const { title, text, btnHome } = getI18nText();\n return (\n <Root render={Error}>\n <Error.Title>{`${toolName} ${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(RootMaintenance);\n"],"file":"index.js"}
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "wird zurzeit gewartet",
3
+ "text": "Wir bemühen uns, das Problem so bald wie möglich zu beheben. Bitte versuchen Sie es später wieder.",
4
+ "btnHome": "Homepage besuchen"
5
+ }
@@ -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,107 @@
1
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
2
+ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
+ import _createClass from "@babel/runtime/helpers/createClass";
4
+ import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
5
+ import _inherits from "@babel/runtime/helpers/inherits";
6
+ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
7
+ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
8
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
9
+
10
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
11
+
12
+ 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; } }
13
+
14
+ import React from 'react';
15
+ import Button from '@semcore/button';
16
+ import createComponent, { Component } from '@semcore/core';
17
+ import i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';
18
+ import canUseDOM from '@semcore/utils/lib/canUseDOM';
19
+ import { callAllEventHandlers } from '@semcore/utils/lib/assignProps';
20
+ import Error, { getIconPath } from '../Error';
21
+ import de from './translations/de.json';
22
+ import en from './translations/en.json';
23
+ import es from './translations/es.json';
24
+ import fr from './translations/fr.json';
25
+ import it from './translations/it.json';
26
+ import ja from './translations/ja.json';
27
+ import pt from './translations/pt.json';
28
+ import ru from './translations/ru.json';
29
+ import zh from './translations/zh.json';
30
+ import ko from './translations/ko.json';
31
+ import vi from './translations/vi.json';
32
+ var i18n = {
33
+ de: de,
34
+ en: en,
35
+ es: es,
36
+ fr: fr,
37
+ it: it,
38
+ ja: ja,
39
+ ru: ru,
40
+ zh: zh,
41
+ pt: pt,
42
+ ko: ko,
43
+ vi: vi
44
+ };
45
+
46
+ var RootPageError = /*#__PURE__*/function (_Component) {
47
+ _inherits(RootPageError, _Component);
48
+
49
+ var _super = _createSuper(RootPageError);
50
+
51
+ function RootPageError() {
52
+ var _this;
53
+
54
+ _classCallCheck(this, RootPageError);
55
+
56
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
57
+ args[_key] = arguments[_key];
58
+ }
59
+
60
+ _this = _super.call.apply(_super, [this].concat(args));
61
+
62
+ _defineProperty(_assertThisInitialized(_this), "handleReload", function () {
63
+ if (canUseDOM()) {
64
+ location.reload();
65
+ }
66
+ });
67
+
68
+ return _this;
69
+ }
70
+
71
+ _createClass(RootPageError, [{
72
+ key: "render",
73
+ value: function render() {
74
+ var _this$asProps = this.asProps,
75
+ Children = _this$asProps.Children,
76
+ getI18nText = _this$asProps.getI18nText,
77
+ onClick = _this$asProps.onClick,
78
+ other = _objectWithoutProperties(_this$asProps, ["Children", "getI18nText", "onClick"]);
79
+
80
+ var _getI18nText = getI18nText(),
81
+ title = _getI18nText.title,
82
+ text = _getI18nText.text,
83
+ btnRetry = _getI18nText.btnRetry;
84
+
85
+ return /*#__PURE__*/React.createElement(Error, other, /*#__PURE__*/React.createElement(Error.Title, null, title), /*#__PURE__*/React.createElement(Error.Description, null, text), /*#__PURE__*/React.createElement(Children, null), /*#__PURE__*/React.createElement(Error.Controls, null, /*#__PURE__*/React.createElement(Button, {
86
+ onClick: callAllEventHandlers(onClick, this.handleReload),
87
+ size: "xl",
88
+ use: "primary",
89
+ theme: "info"
90
+ }, btnRetry)));
91
+ }
92
+ }]);
93
+
94
+ return RootPageError;
95
+ }(Component);
96
+
97
+ _defineProperty(RootPageError, "displayName", 'PageError');
98
+
99
+ _defineProperty(RootPageError, "enhance", [i18nEnhance()]);
100
+
101
+ _defineProperty(RootPageError, "defaultProps", {
102
+ i18n: i18n,
103
+ icon: getIconPath('page_error')
104
+ });
105
+
106
+ export default createComponent(RootPageError);
107
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/PageError/index.js"],"names":["React","Button","createComponent","Component","i18nEnhance","canUseDOM","callAllEventHandlers","Error","getIconPath","de","en","es","fr","it","ja","pt","ru","zh","ko","vi","i18n","RootPageError","location","reload","asProps","Children","getI18nText","onClick","other","title","text","btnRetry","handleReload","icon"],"mappings":";;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,MAAP,MAAmB,iBAAnB;AACA,OAAOC,eAAP,IAA0BC,SAA1B,QAA2C,eAA3C;AACA,OAAOC,WAAP,MAAwB,yCAAxB;AACA,OAAOC,SAAP,MAAsB,8BAAtB;AACA,SAASC,oBAAT,QAAqC,gCAArC;AACA,OAAOC,KAAP,IAAgBC,WAAhB,QAAmC,UAAnC;AAEA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AAEA,IAAMC,IAAI,GAAG;AAAEX,EAAAA,EAAE,EAAFA,EAAF;AAAMC,EAAAA,EAAE,EAAFA,EAAN;AAAUC,EAAAA,EAAE,EAAFA,EAAV;AAAcC,EAAAA,EAAE,EAAFA,EAAd;AAAkBC,EAAAA,EAAE,EAAFA,EAAlB;AAAsBC,EAAAA,EAAE,EAAFA,EAAtB;AAA0BE,EAAAA,EAAE,EAAFA,EAA1B;AAA8BC,EAAAA,EAAE,EAAFA,EAA9B;AAAkCF,EAAAA,EAAE,EAAFA,EAAlC;AAAsCG,EAAAA,EAAE,EAAFA,EAAtC;AAA0CC,EAAAA,EAAE,EAAFA;AAA1C,CAAb;;IAEME,a;;;;;;;;;;;;;;;;mEAQW,YAAM;AACnB,UAAIhB,SAAS,EAAb,EAAiB;AACfiB,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,oBAAC,KAAD,EAAWH,KAAX,eACE,oBAAC,KAAD,CAAO,KAAP,QAAcC,KAAd,CADF,eAEE,oBAAC,KAAD,CAAO,WAAP,QAAoBC,IAApB,CAFF,eAGE,oBAAC,QAAD,OAHF,eAIE,oBAAC,KAAD,CAAO,QAAP,qBACE,oBAAC,MAAD;AACE,QAAA,OAAO,EAAExB,oBAAoB,CAACqB,OAAD,EAAU,KAAKK,YAAf,CAD/B;AAEE,QAAA,IAAI,EAAC,IAFP;AAGE,QAAA,GAAG,EAAC,SAHN;AAIE,QAAA,KAAK,EAAC;AAJR,SAMGD,QANH,CADF,CAJF,CADF;AAiBD;;;;EAlCyB5B,S;;gBAAtBkB,a,iBACiB,W;;gBADjBA,a,aAEa,CAACjB,WAAW,EAAZ,C;;gBAFbiB,a,kBAGkB;AACpBD,EAAAA,IAAI,EAAJA,IADoB;AAEpBa,EAAAA,IAAI,EAAEzB,WAAW,CAAC,YAAD;AAFG,C;;AAkCxB,eAAeN,eAAe,CAACmB,aAAD,CAA9B","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,94 @@
1
+ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
2
+ import _createClass from "@babel/runtime/helpers/createClass";
3
+ import _inherits from "@babel/runtime/helpers/inherits";
4
+ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
5
+ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
7
+ import { assignProps as _assignProps } from "@semcore/core";
8
+
9
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
10
+
11
+ 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; } }
12
+
13
+ import React from 'react';
14
+ import Button from '@semcore/button';
15
+ import createComponent, { Component, Root } from '@semcore/core';
16
+ import i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';
17
+ import Error, { getIconPath } from '../Error';
18
+ import de from './translations/de.json';
19
+ import en from './translations/en.json';
20
+ import es from './translations/es.json';
21
+ import fr from './translations/fr.json';
22
+ import it from './translations/it.json';
23
+ import ja from './translations/ja.json';
24
+ import pt from './translations/pt.json';
25
+ import ru from './translations/ru.json';
26
+ import zh from './translations/zh.json';
27
+ import ko from './translations/ko.json';
28
+ import vi from './translations/vi.json';
29
+ var i18n = {
30
+ de: de,
31
+ en: en,
32
+ es: es,
33
+ fr: fr,
34
+ it: it,
35
+ ja: ja,
36
+ ru: ru,
37
+ zh: zh,
38
+ pt: pt,
39
+ ko: ko,
40
+ vi: vi
41
+ };
42
+
43
+ var RootPageNotFound = /*#__PURE__*/function (_Component) {
44
+ _inherits(RootPageNotFound, _Component);
45
+
46
+ var _super = _createSuper(RootPageNotFound);
47
+
48
+ function RootPageNotFound() {
49
+ _classCallCheck(this, RootPageNotFound);
50
+
51
+ return _super.apply(this, arguments);
52
+ }
53
+
54
+ _createClass(RootPageNotFound, [{
55
+ key: "render",
56
+ value: function render() {
57
+ var _ref = this ? this.asProps : arguments[0];
58
+
59
+ var _this$asProps = this.asProps,
60
+ Children = _this$asProps.Children,
61
+ getI18nText = _this$asProps.getI18nText,
62
+ homeLink = _this$asProps.homeLink;
63
+
64
+ var _getI18nText = getI18nText(),
65
+ title = _getI18nText.title,
66
+ text = _getI18nText.text,
67
+ btnHome = _getI18nText.btnHome;
68
+
69
+ return /*#__PURE__*/React.createElement(Error, _assignProps({}, _ref), /*#__PURE__*/React.createElement(Error.Title, null, title), /*#__PURE__*/React.createElement(Error.Description, null, text), /*#__PURE__*/React.createElement(Children, null), /*#__PURE__*/React.createElement(Error.Controls, null, /*#__PURE__*/React.createElement(Button, {
70
+ tag: "a",
71
+ type: "none",
72
+ size: "xl",
73
+ use: "primary",
74
+ theme: "info",
75
+ href: homeLink
76
+ }, btnHome)));
77
+ }
78
+ }]);
79
+
80
+ return RootPageNotFound;
81
+ }(Component);
82
+
83
+ _defineProperty(RootPageNotFound, "displayName", 'Maintenance');
84
+
85
+ _defineProperty(RootPageNotFound, "enhance", [i18nEnhance()]);
86
+
87
+ _defineProperty(RootPageNotFound, "defaultProps", {
88
+ i18n: i18n,
89
+ icon: getIconPath('page_not_found'),
90
+ homeLink: '/'
91
+ });
92
+
93
+ export default createComponent(RootPageNotFound);
94
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/PageNotFound/index.js"],"names":["React","Button","createComponent","Component","Root","i18nEnhance","Error","getIconPath","de","en","es","fr","it","ja","pt","ru","zh","ko","vi","i18n","RootPageNotFound","asProps","Children","getI18nText","homeLink","title","text","btnHome","icon"],"mappings":";;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,MAAP,MAAmB,iBAAnB;AACA,OAAOC,eAAP,IAA0BC,SAA1B,EAAqCC,IAArC,QAAiD,eAAjD;AACA,OAAOC,WAAP,MAAwB,yCAAxB;AACA,OAAOC,KAAP,IAAgBC,WAAhB,QAAmC,UAAnC;AAEA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AACA,OAAOC,EAAP,MAAe,wBAAf;AAEA,IAAMC,IAAI,GAAG;AAAEX,EAAAA,EAAE,EAAFA,EAAF;AAAMC,EAAAA,EAAE,EAAFA,EAAN;AAAUC,EAAAA,EAAE,EAAFA,EAAV;AAAcC,EAAAA,EAAE,EAAFA,EAAd;AAAkBC,EAAAA,EAAE,EAAFA,EAAlB;AAAsBC,EAAAA,EAAE,EAAFA,EAAtB;AAA0BE,EAAAA,EAAE,EAAFA,EAA1B;AAA8BC,EAAAA,EAAE,EAAFA,EAA9B;AAAkCF,EAAAA,EAAE,EAAFA,EAAlC;AAAsCG,EAAAA,EAAE,EAAFA,EAAtC;AAA0CC,EAAAA,EAAE,EAAFA;AAA1C,CAAb;;IAEME,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,oBAAcrB,KAAd,uCACE,oBAAC,KAAD,CAAO,KAAP,QAAcmB,KAAd,CADF,eAEE,oBAAC,KAAD,CAAO,WAAP,QAAoBC,IAApB,CAFF,eAGE,oBAAC,QAAD,OAHF,eAIE,oBAAC,KAAD,CAAO,QAAP,qBACE,oBAAC,MAAD;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;;;;EAxB4BxB,S;;gBAAzBiB,gB,iBACiB,a;;gBADjBA,gB,aAEa,CAACf,WAAW,EAAZ,C;;gBAFbe,gB,kBAGkB;AACpBD,EAAAA,IAAI,EAAJA,IADoB;AAEpBS,EAAAA,IAAI,EAAErB,WAAW,CAAC,gBAAD,CAFG;AAGpBiB,EAAAA,QAAQ,EAAE;AAHU,C;;AAwBxB,eAAetB,eAAe,CAACkB,gBAAD,CAA9B","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
+ }