@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,143 @@
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 _formatText = _interopRequireDefault(require("@semcore/format-text"));
31
+
32
+ var _i18nEnhance = _interopRequireDefault(require("@semcore/utils/lib/enhances/i18nEnhance"));
33
+
34
+ var _Error = _interopRequireWildcard(require("../Error"));
35
+
36
+ var _de = _interopRequireDefault(require("./translations/de.json"));
37
+
38
+ var _en = _interopRequireDefault(require("./translations/en.json"));
39
+
40
+ var _es = _interopRequireDefault(require("./translations/es.json"));
41
+
42
+ var _fr = _interopRequireDefault(require("./translations/fr.json"));
43
+
44
+ var _it = _interopRequireDefault(require("./translations/it.json"));
45
+
46
+ var _ja = _interopRequireDefault(require("./translations/ja.json"));
47
+
48
+ var _pt = _interopRequireDefault(require("./translations/pt.json"));
49
+
50
+ var _ru = _interopRequireDefault(require("./translations/ru.json"));
51
+
52
+ var _zh = _interopRequireDefault(require("./translations/zh.json"));
53
+
54
+ var _ko = _interopRequireDefault(require("./translations/ko.json"));
55
+
56
+ var _vi = _interopRequireDefault(require("./translations/vi.json"));
57
+
58
+ 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); }; }
59
+
60
+ 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; } }
61
+
62
+ var i18n = {
63
+ de: _de["default"],
64
+ en: _en["default"],
65
+ es: _es["default"],
66
+ fr: _fr["default"],
67
+ it: _it["default"],
68
+ ja: _ja["default"],
69
+ ru: _ru["default"],
70
+ zh: _zh["default"],
71
+ pt: _pt["default"],
72
+ ko: _ko["default"],
73
+ vi: _vi["default"]
74
+ };
75
+
76
+ var RootProjectNotFound = /*#__PURE__*/function (_Component) {
77
+ (0, _inherits2["default"])(RootProjectNotFound, _Component);
78
+
79
+ var _super = _createSuper(RootProjectNotFound);
80
+
81
+ function RootProjectNotFound() {
82
+ (0, _classCallCheck2["default"])(this, RootProjectNotFound);
83
+ return _super.apply(this, arguments);
84
+ }
85
+
86
+ (0, _createClass2["default"])(RootProjectNotFound, [{
87
+ key: "render",
88
+ value: function render() {
89
+ var _ref = this ? this.asProps : arguments[0];
90
+
91
+ var _this$asProps = this.asProps,
92
+ Children = _this$asProps.Children,
93
+ getI18nText = _this$asProps.getI18nText,
94
+ projectsLink = _this$asProps.projectsLink,
95
+ contactsLink = _this$asProps.contactsLink,
96
+ supportTeamLink = _this$asProps.supportTeamLink;
97
+
98
+ var _getI18nText = getI18nText(),
99
+ title = _getI18nText.title,
100
+ btnProjects = _getI18nText.btnProjects,
101
+ btnContacts = _getI18nText.btnContacts;
102
+
103
+ var text = getI18nText('text', {
104
+ url: supportTeamLink
105
+ });
106
+ 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, {
107
+ tag: _formatText["default"],
108
+ size: "xl",
109
+ dangerouslySetInnerHTML: {
110
+ __html: text
111
+ }
112
+ }), /*#__PURE__*/_react["default"].createElement(Children, null), /*#__PURE__*/_react["default"].createElement(_Error["default"].Controls, null, /*#__PURE__*/_react["default"].createElement(_button["default"], {
113
+ tag: "a",
114
+ type: "none",
115
+ size: "xl",
116
+ use: "primary",
117
+ theme: "info",
118
+ href: projectsLink
119
+ }, btnProjects), /*#__PURE__*/_react["default"].createElement(_button["default"], {
120
+ size: "xl",
121
+ tag: "a",
122
+ type: "none",
123
+ href: contactsLink
124
+ }, btnContacts)));
125
+ }
126
+ }]);
127
+ return RootProjectNotFound;
128
+ }(_core.Component);
129
+
130
+ (0, _defineProperty2["default"])(RootProjectNotFound, "displayName", 'Maintenance');
131
+ (0, _defineProperty2["default"])(RootProjectNotFound, "enhance", [(0, _i18nEnhance["default"])()]);
132
+ (0, _defineProperty2["default"])(RootProjectNotFound, "defaultProps", {
133
+ i18n: i18n,
134
+ icon: (0, _Error.getIconPath)('project_not_found'),
135
+ projectsLink: '/projects',
136
+ contactsLink: '/company/contacts',
137
+ supportTeamLink: 'mailto:mail@semrush.com'
138
+ });
139
+
140
+ var _default = (0, _core["default"])(RootProjectNotFound);
141
+
142
+ exports["default"] = _default;
143
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/ProjectNotFound/index.js"],"names":["i18n","de","en","es","fr","it","ja","ru","zh","pt","ko","vi","RootProjectNotFound","asProps","Children","getI18nText","projectsLink","contactsLink","supportTeamLink","title","btnProjects","btnContacts","text","url","Error","FormatText","__html","Component","icon"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAGA;;AAHA;;AACA;;AACA;;AAEA;;AACA;;AACA;;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,mB;;;;;;;;;;;;WAWJ,kBAAS;AAAA;;AAAA,0BACwE,KAAKC,OAD7E;AAAA,UACCC,QADD,iBACCA,QADD;AAAA,UACWC,WADX,iBACWA,WADX;AAAA,UACwBC,YADxB,iBACwBA,YADxB;AAAA,UACsCC,YADtC,iBACsCA,YADtC;AAAA,UACoDC,eADpD,iBACoDA,eADpD;;AAAA,yBAEqCH,WAAW,EAFhD;AAAA,UAECI,KAFD,gBAECA,KAFD;AAAA,UAEQC,WAFR,gBAEQA,WAFR;AAAA,UAEqBC,WAFrB,gBAEqBA,WAFrB;;AAGP,UAAMC,IAAI,GAAGP,WAAW,CAAC,MAAD,EAAS;AAAEQ,QAAAA,GAAG,EAAEL;AAAP,OAAT,CAAxB;AACA,0BACE,gCAAcM,iBAAd,iDACE,gCAAC,iBAAD,CAAO,KAAP,QAAcL,KAAd,CADF,eAEE,gCAAC,iBAAD,CAAO,WAAP;AAAmB,QAAA,GAAG,EAAEM,sBAAxB;AAAoC,QAAA,IAAI,EAAC,IAAzC;AAA8C,QAAA,uBAAuB,EAAE;AAAEC,UAAAA,MAAM,EAAEJ;AAAV;AAAvE,QAFF,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,EAAEN;AAAvE,SACGI,WADH,CADF,eAIE,gCAAC,kBAAD;AAAQ,QAAA,IAAI,EAAC,IAAb;AAAkB,QAAA,GAAG,EAAC,GAAtB;AAA0B,QAAA,IAAI,EAAC,MAA/B;AAAsC,QAAA,IAAI,EAAEH;AAA5C,SACGI,WADH,CAJF,CAJF,CADF;AAeD;;;EA9B+BM,e;;iCAA5Bf,mB,iBACiB,a;iCADjBA,mB,aAEa,CAAC,8BAAD,C;iCAFbA,mB,kBAGkB;AACpBZ,EAAAA,IAAI,EAAJA,IADoB;AAEpB4B,EAAAA,IAAI,EAAE,wBAAY,mBAAZ,CAFc;AAGpBZ,EAAAA,YAAY,EAAE,WAHM;AAIpBC,EAAAA,YAAY,EAAE,mBAJM;AAKpBC,EAAAA,eAAe,EAAE;AALG,C;;eA8BT,sBAAgBN,mBAAhB,C","sourcesContent":["import React from 'react';\nimport Button from '@semcore/button';\nimport FormatText from '@semcore/format-text';\nimport createComponent, { Component, Root } from '@semcore/core';\nimport i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';\nimport Error, { getIconPath } from '../Error';\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 RootProjectNotFound extends Component {\n static displayName = 'Maintenance';\n static enhance = [i18nEnhance()];\n static defaultProps = {\n i18n,\n icon: getIconPath('project_not_found'),\n projectsLink: '/projects',\n contactsLink: '/company/contacts',\n supportTeamLink: 'mailto:mail@semrush.com',\n };\n\n render() {\n const { Children, getI18nText, projectsLink, contactsLink, supportTeamLink } = this.asProps;\n const { title, btnProjects, btnContacts } = getI18nText();\n const text = getI18nText('text', { url: supportTeamLink });\n return (\n <Root render={Error}>\n <Error.Title>{title}</Error.Title>\n <Error.Description tag={FormatText} size=\"xl\" dangerouslySetInnerHTML={{ __html: text }} />\n <Children />\n <Error.Controls>\n <Button tag=\"a\" type=\"none\" size=\"xl\" use=\"primary\" theme=\"info\" href={projectsLink}>\n {btnProjects}\n </Button>\n <Button size=\"xl\" tag=\"a\" type=\"none\" href={contactsLink}>\n {btnContacts}\n </Button>\n </Error.Controls>\n </Root>\n );\n }\n}\n\nexport default createComponent(RootProjectNotFound);\n"],"file":"index.js"}
@@ -0,0 +1,6 @@
1
+ {
2
+ "title": "Projekt nicht gefunden",
3
+ "text": "<p>Das Projekt, auf das Sie zugreifen möchten, wurde nicht gefunden.</p><p>Überprüfen Sie, ob eines der folgenden Probleme vorliegt:</p><ul><li>Das Projekt wurde gelöscht, oder die eingegebene URL ist fehlerhaft.</li><li>Sie sind nicht berechtigt, das Projekt anzuzeigen. Bitten Sie den Projektverantwortlichen um Zugriffsrechte.</li></ul><p>Sie finden alle Ihre Projekte auf der Seite „Projekte“.</p><p>Wenn Sie andere Probleme mit dem Zugriff auf das Projekt haben, kontaktieren Sie unser <a href=\"{{url}}\">Support-Team.</a></p>",
4
+ "btnProjects": "Zu den Projekten",
5
+ "btnContacts": "Kontakt"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "title": "Project not found",
3
+ "text": "<p>We cannot find the project you’re trying to access.</p><p>Check one of the following issues:</p><ul><li>The project may have been deleted or there is an error in the URL entered.</li><li>Maybe you don’t have permission to view the project.Please request access from the project owner.</li></ul><p>You can find all your projects on the Projects page.</p><p>If you have any other problems with access to the project, please contact our <a href=\"{{url}}\">Support Team.</a></p>",
4
+ "btnProjects": "Go to Projects",
5
+ "btnContacts": "Contact us"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "title": "Proyecto no encontrado",
3
+ "text": "<p>No encontramos el proyecto al que quieres acceder.</p><p>Comprueba que no existan los siguientes problemas:</p><ul><li>El proyecto se ha borrado o la URL proporcionada es errónea.</li><li>No cuentas con los permisos para ver el proyecto. Solicita acceso al propietario del proyecto.</li></ul><p>Todos tus proyectos están disponibles en la sección de proyectos.</p><p>Para cualquier problema relacionado con el acceso a tus proyectos, contacta con nuestro <a href=\"{{url}}\">Equipo de asistencia técnica.</a></p>",
4
+ "btnProjects": "Ir a proyectos",
5
+ "btnContacts": "Contáctanos"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "title": "Projet introuvable",
3
+ "text": "<p>Nous ne trouvons pas le projet auquel vous essayez d'accéder.</p><p>Vérifiez s'il n'y pas l'un des problèmes suivants :</p><ul><li>Le projet a peut-être été supprimé ou il y a une erreur dans l'URL saisie.</li><li>Vous n'avez peut-être pas l'autorisation de voir le projet. Veuillez demander l'accès au propriétaire du projet.</li></ul><p>Vous pouvez trouver tous vos projets sur la page Projets.</p><p>Si vous rencontrez d'autres problèmes pour accéder au projet, veuillez contacter notre <a href=\"{{url}}}\">équipe d'assistance.</a></p>",
4
+ "btnProjects": "Aller vers Projets",
5
+ "btnContacts": "Nous contacter"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "title": "Progetto non trovato",
3
+ "text": "<p>Impossibile trovare il progetto a cui stai provando ad accedere.</p><p>Verifica se è presente uno dei seguenti errori:</p><ul><li>Il progetto potrebbe essere stato cancellato o c'è un errore nell'URL inserito.</li><li>Forse non hai i permessi per visualizzare il progetto. Richiedi l'accesso al proprietario del progetto.</li></ul><p>Puoi trovare tutti i tuoi progetti nella pagina Progetti.</p><p>Se hai ancora problemi nell'accedere al progetto, contatta il nostro <a href=\"{{url}}\">Team di assistenza.</a></p>",
4
+ "btnProjects": "Vai a Progetti",
5
+ "btnContacts": "Contattaci"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "title": "プロジェクトが見つかりませんでした",
3
+ "text": "<p>アクセスしようとしているプロジェクトが見つかりません。</p><p>下記の問題をご確認ください:</p><ul><li>プロジェクトは削除されたか入力したURLにエラーがある。</li><li>プロジェクトを表示することが許可されていない。プロジェクトの所有者にアクセス許可をリクエストしてください。</li></ul><p>プロジェクトページですべてのプロジェクトを発見できます。</p><p>プロジェクトのアクセスにおいて他の問題がある場合は、<a href=\"{{url}}\"><a href=\"{{url}}\"><a href=\"{{url}}\">サポートチーム</a></p>にご連絡ください。",
4
+ "btnProjects": "プロジェクトに移動する",
5
+ "btnContacts": "お問い合わせ"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "title": "프로젝트를 찾을 수 없음",
3
+ "text": "<p>액세스를 시도 중이신 프로젝트를 찾을 수 없습니다.</p><p>이유는 다음 중 하나일 수 있습니다.</p><ul><li>프로젝트가 삭제되었거나 입력하신 URL이 잘못되었을 수 있습니다.</li><li>해당 프로젝트를 볼 수 있는 권한이 없을 수 있습니다. 프로젝트 소유자에게 액세스 권한을 요청하세요.</li></ul><p>프로젝트 페이지에서 모든 프로젝트를 찾으실 수 있습니다.</p><p>프로젝트 액세스와 관련하여 다른 문제가 더 있으시다면 <a href=\"{{url}}\">지원팀에 문의해 주세요.</a></p>",
4
+ "btnProjects": "프로젝트로 이동",
5
+ "btnContacts": "문의하기"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "title": "Projeto não encontrado",
3
+ "text": "<p>Não foi possível encontrar o projeto que você está tentando acessar.</p><p>Verifique um dos seguintes problemas:</p><ul><li>O projeto pode ter sido excluído, ou há um erro na URL informada.</li><li>Talvez você não tenha permissão para visualizar o projeto. Solicite acesso ao proprietário do projeto.</li></ul><p>Todos os seus projetos podem ser encontrados na página Projetos.</p><p>Caso tenha algum outro problema no acesso ao projeto, entre em contato com a nossa <a href=\"{{url}}\">Equipe de suporte.</a></p>",
4
+ "btnProjects": "Ir a Projetos",
5
+ "btnContacts": "Fale conosco"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "title": "Проект не найден",
3
+ "text": "<p>Проект, который вы ищете, не найден.</p>\n<p>Это может быть связано с одной из следующих проблем:</p><ul><li>Проект был удален или введенный URL-адрес введен некорректно.</li><li>Возможно, у вас нет прав доступа для просмотра этого проекта. Пожалуйста, запросите доступ у владельца проекта.</li></ul><p>Все ваши проекты находятся в разделе «Проекты».</p><p>По другим вопросам, связанным с доступом к проекту, обратитесь в нашу <a href=\"{{url}}\">службу поддержки.</a></p>",
4
+ "btnProjects": "К проектам",
5
+ "btnContacts": "Написать нам"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "title": "Không tìm thấy trang",
3
+ "text": "<p>Chúng tôi không thể tìm thấy dự án bạn đang muốn truy cập.</p><p>Hãy kiểm tra một trong các vấn đề sau:</p><ul><li>Dự án có thể đã bị xóa hoặc có lỗi trong URL đã nhập.</li><li>Có thể bạn không có quyền xem dự án. Vui lòng yêu cầu quyền truy cập từ chủ sở hữu dự án.</li></ul><p>Bạn có thể tìm thấy tất cả các dự án của mình trên trang Dự án.</p><p>Nếu bạn gặp bất kỳ sự cố nàokhác về quyền truy cập vào dự án, vui lòng liên hệ với <a href=\"{{url}}\">Đội hỗ trợ của chúng tôi.</a></p>",
4
+ "btnProjects": "Chuyển đến dự án",
5
+ "btnContacts": "Liên hệ chúng tôi"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "title": "无法找到此项目",
3
+ "text": "<p>我们找不到您尝试访问的项目。</p><p>检查是否存在以下问题:</p><ul><li>该项目可能已被删除,或者输入的 URL 中存在错误。</li><li>也许您没有查看该项目的权限。请向项目所有者请求访问权限。</li></ul><p>您可以在“项目”页面中找到所有项目。</p><p>如果您在访问项目时遇到任何其他问题,请联系我们的<a href=\"{{url}}\">支持团队。</a></p>",
4
+ "btnProjects": "转到项目",
5
+ "btnContacts": "联系我们"
6
+ }
@@ -0,0 +1,135 @@
1
+ "use strict";
2
+
3
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ var _exportNames = {
9
+ AccessDenied: true,
10
+ Maintenance: true,
11
+ PageError: true,
12
+ PageNotFound: true,
13
+ ProjectNotFound: true
14
+ };
15
+ Object.defineProperty(exports, "default", {
16
+ enumerable: true,
17
+ get: function get() {
18
+ return _Error["default"];
19
+ }
20
+ });
21
+ Object.defineProperty(exports, "AccessDenied", {
22
+ enumerable: true,
23
+ get: function get() {
24
+ return _AccessDenied["default"];
25
+ }
26
+ });
27
+ Object.defineProperty(exports, "Maintenance", {
28
+ enumerable: true,
29
+ get: function get() {
30
+ return _Maintenance["default"];
31
+ }
32
+ });
33
+ Object.defineProperty(exports, "PageError", {
34
+ enumerable: true,
35
+ get: function get() {
36
+ return _PageError["default"];
37
+ }
38
+ });
39
+ Object.defineProperty(exports, "PageNotFound", {
40
+ enumerable: true,
41
+ get: function get() {
42
+ return _PageNotFound["default"];
43
+ }
44
+ });
45
+ Object.defineProperty(exports, "ProjectNotFound", {
46
+ enumerable: true,
47
+ get: function get() {
48
+ return _ProjectNotFound["default"];
49
+ }
50
+ });
51
+
52
+ var _Error = _interopRequireWildcard(require("./Error"));
53
+
54
+ Object.keys(_Error).forEach(function (key) {
55
+ if (key === "default" || key === "__esModule") return;
56
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
57
+ if (key in exports && exports[key] === _Error[key]) return;
58
+ Object.defineProperty(exports, key, {
59
+ enumerable: true,
60
+ get: function get() {
61
+ return _Error[key];
62
+ }
63
+ });
64
+ });
65
+
66
+ var _AccessDenied = _interopRequireWildcard(require("./AccessDenied"));
67
+
68
+ Object.keys(_AccessDenied).forEach(function (key) {
69
+ if (key === "default" || key === "__esModule") return;
70
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
71
+ if (key in exports && exports[key] === _AccessDenied[key]) return;
72
+ Object.defineProperty(exports, key, {
73
+ enumerable: true,
74
+ get: function get() {
75
+ return _AccessDenied[key];
76
+ }
77
+ });
78
+ });
79
+
80
+ var _Maintenance = _interopRequireWildcard(require("./Maintenance"));
81
+
82
+ Object.keys(_Maintenance).forEach(function (key) {
83
+ if (key === "default" || key === "__esModule") return;
84
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
85
+ if (key in exports && exports[key] === _Maintenance[key]) return;
86
+ Object.defineProperty(exports, key, {
87
+ enumerable: true,
88
+ get: function get() {
89
+ return _Maintenance[key];
90
+ }
91
+ });
92
+ });
93
+
94
+ var _PageError = _interopRequireWildcard(require("./PageError"));
95
+
96
+ Object.keys(_PageError).forEach(function (key) {
97
+ if (key === "default" || key === "__esModule") return;
98
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
99
+ if (key in exports && exports[key] === _PageError[key]) return;
100
+ Object.defineProperty(exports, key, {
101
+ enumerable: true,
102
+ get: function get() {
103
+ return _PageError[key];
104
+ }
105
+ });
106
+ });
107
+
108
+ var _PageNotFound = _interopRequireWildcard(require("./PageNotFound"));
109
+
110
+ Object.keys(_PageNotFound).forEach(function (key) {
111
+ if (key === "default" || key === "__esModule") return;
112
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
113
+ if (key in exports && exports[key] === _PageNotFound[key]) return;
114
+ Object.defineProperty(exports, key, {
115
+ enumerable: true,
116
+ get: function get() {
117
+ return _PageNotFound[key];
118
+ }
119
+ });
120
+ });
121
+
122
+ var _ProjectNotFound = _interopRequireWildcard(require("./ProjectNotFound"));
123
+
124
+ Object.keys(_ProjectNotFound).forEach(function (key) {
125
+ if (key === "default" || key === "__esModule") return;
126
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
127
+ if (key in exports && exports[key] === _ProjectNotFound[key]) return;
128
+ Object.defineProperty(exports, key, {
129
+ enumerable: true,
130
+ get: function get() {
131
+ return _ProjectNotFound[key];
132
+ }
133
+ });
134
+ });
135
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA","sourcesContent":["export { default } from './Error';\nexport * from './Error';\nexport { default as AccessDenied } from './AccessDenied';\nexport * from './AccessDenied';\nexport { default as Maintenance } from './Maintenance';\nexport * from './Maintenance';\nexport { default as PageError } from './PageError';\nexport * from './PageError';\nexport { default as PageNotFound } from './PageNotFound';\nexport * from './PageNotFound';\nexport { default as ProjectNotFound } from './ProjectNotFound';\nexport * from './ProjectNotFound';\n"],"file":"index.js"}
@@ -0,0 +1,57 @@
1
+ @import '@semcore/utils/style/var.css';
2
+
3
+ SError {
4
+ padding: 96px 0;
5
+ margin: 0 auto;
6
+ max-width: 960px;
7
+ }
8
+
9
+ SInner {
10
+ width: 100%;
11
+ display: flex;
12
+ justify-content: flex-start;
13
+ flex-wrap: wrap;
14
+ align-items: flex-start;
15
+ box-sizing: border-box;
16
+
17
+ @media (max-width: 920px) {
18
+ padding: 0 10px;
19
+ }
20
+ }
21
+
22
+ SImageWrapper {
23
+ width: 240px;
24
+ height: 240px;
25
+ margin-right: 80px;
26
+ }
27
+
28
+ SWrapper {
29
+ flex: 1 0 320px;
30
+ margin-top: 32px;
31
+ @media (max-width: 920px) {
32
+ flex: 1 0 300px;
33
+ max-width: 100%;
34
+ }
35
+ }
36
+
37
+ STitle {
38
+ font-size: var(--fs-700);
39
+ line-height: var(--lh-700);
40
+ font-weight: 700;
41
+ margin: 0 0 16px 0;
42
+ }
43
+
44
+ SDescription {
45
+ font-size: var(--fs-300);
46
+ line-height: var(--lh-300);
47
+ margin: 0 0 24px 0;
48
+ }
49
+
50
+ SControls {
51
+ display: flex;
52
+ align-items: center;
53
+
54
+ & > *:not(:last-child) {
55
+ margin-right: 12px;
56
+ }
57
+ }
@@ -0,0 +1,96 @@
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, { ComponentProps } from 'react';
14
+ import Button from '@semcore/button';
15
+ import createComponent, { Component, Root } from '@semcore/core';
16
+ import i18nEnhance, { IWithI18nEnhanceProps } 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 RootAccessDenied = /*#__PURE__*/function (_Component) {
44
+ _inherits(RootAccessDenied, _Component);
45
+
46
+ var _super = _createSuper(RootAccessDenied);
47
+
48
+ function RootAccessDenied() {
49
+ _classCallCheck(this, RootAccessDenied);
50
+
51
+ return _super.apply(this, arguments);
52
+ }
53
+
54
+ _createClass(RootAccessDenied, [{
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, {
70
+ wMax: "640px"
71
+ }, text), /*#__PURE__*/React.createElement(Children, null), /*#__PURE__*/React.createElement(Error.Controls, null, /*#__PURE__*/React.createElement(Button, {
72
+ tag: "a",
73
+ type: "none",
74
+ size: "xl",
75
+ use: "primary",
76
+ theme: "info",
77
+ href: homeLink
78
+ }, btnHome)));
79
+ }
80
+ }]);
81
+
82
+ return RootAccessDenied;
83
+ }(Component);
84
+
85
+ _defineProperty(RootAccessDenied, "displayName", 'AccessDenied');
86
+
87
+ _defineProperty(RootAccessDenied, "enhance", [i18nEnhance()]);
88
+
89
+ _defineProperty(RootAccessDenied, "defaultProps", {
90
+ i18n: i18n,
91
+ homeLink: '/',
92
+ icon: getIconPath('access_denied')
93
+ });
94
+
95
+ export default createComponent(RootAccessDenied);
96
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/AccessDenied/index.js"],"names":["React","ComponentProps","Button","createComponent","Component","Root","i18nEnhance","IWithI18nEnhanceProps","Error","getIconPath","de","en","es","fr","it","ja","pt","ru","zh","ko","vi","i18n","RootAccessDenied","asProps","Children","getI18nText","homeLink","title","text","btnHome","icon"],"mappings":";;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,cAAhB,QAAsC,OAAtC;AACA,OAAOC,MAAP,MAAmB,iBAAnB;AACA,OAAOC,eAAP,IAA0BC,SAA1B,EAAqCC,IAArC,QAAiD,eAAjD;AACA,OAAOC,WAAP,IAAsBC,qBAAtB,QAAmD,yCAAnD;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;AAAmB,QAAA,IAAI,EAAC;AAAxB,SAAiCC,IAAjC,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;;;;EAxB4BzB,S;;gBAAzBkB,gB,iBACiB,c;;gBADjBA,gB,aAEa,CAAChB,WAAW,EAAZ,C;;gBAFbgB,gB,kBAGkB;AACpBD,EAAAA,IAAI,EAAJA,IADoB;AAEpBK,EAAAA,QAAQ,EAAE,GAFU;AAGpBI,EAAAA,IAAI,EAAErB,WAAW,CAAC,eAAD;AAHG,C;;AAwBxB,eAAeN,eAAe,CAACmB,gBAAD,CAA9B","sourcesContent":["import React, { ComponentProps } from 'react';\nimport Button from '@semcore/button';\nimport createComponent, { Component, Root } from '@semcore/core';\nimport i18nEnhance, { IWithI18nEnhanceProps } 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 RootAccessDenied extends Component {\n static displayName = 'AccessDenied';\n static enhance = [i18nEnhance()];\n static defaultProps = {\n i18n,\n homeLink: '/',\n icon: getIconPath('access_denied'),\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 wMax=\"640px\">{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(RootAccessDenied);\n"],"file":"index.js"}
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "Sie haben die geheime Seite gefunden",
3
+ "text": "Sie haben nicht die notwendigen Administratorrechte für den Zugriff auf diese Seite. Bitte gehen Sie zur vorigen Seite zurück oder besuchen Sie unsere Homepage. ",
4
+ "btnHome": "Homepage besuchen"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "You’ve found the secret page",
3
+ "text": "You’re missing the administrator permissions to access this page. Go back to the previous page or visit our homepage. ",
4
+ "btnHome": "Go to homepage"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "Has encontrado la página secreta",
3
+ "text": "Te faltan los permisos de administrador necesarios para acceder a esta página. Vuelve a la página anterior o visita nuestra página de inicio. ",
4
+ "btnHome": "Visitar la página de inicio"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "Vous avez trouvé la page secrète",
3
+ "text": "Il vous manque les autorisations de l'administrateur pour accéder à cette page. Retournez à la page précédente ou visitez notre page d'accueil. ",
4
+ "btnHome": "Vers la page d’accueil"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "Hai trovato la pagina segreta",
3
+ "text": "Ti mancano i permessi da amministratore per accedere a questa pagina. Torna alla pagina precedente o visita 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": "이 페이지를 볼 수 있는 권한이 없습니다. 이전 페이지로 돌아가거나 홈페이지로 이동하세요. ",
4
+ "btnHome": "홈페이지로 이동"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "Você encontrou a página secreta",
3
+ "text": "Você não tem as permissões de administrador para acessar esta página. Volte à página anterior ou acesse a nossa página inicial. ",
4
+ "btnHome": "Acessar página inicial"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "Вы нашли секретную страницу",
3
+ "text": "У вас нет прав для доступа к этой странице.\nВернитесь на предыдущую страницу или перейдите на главную. ",
4
+ "btnHome": "На главную страницу"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "Bạn vừa tìm ra một trang ẩn",
3
+ "text": "Bạn không được cấp quyền xem trang này. Quay trở tại trang trước hoặc tham khảo trang chủ của chúng tôi. ",
4
+ "btnHome": "Truy cập vào trang chủ"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "您已找到秘密页面",
3
+ "text": "您缺少访问此页面的管理员权限。返回上一页或访问我们的主页。",
4
+ "btnHome": "访问主页"
5
+ }