@bigbinary/neeto-molecules 5.1.21 → 5.1.23

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.
@@ -3,39 +3,53 @@
3
3
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
4
4
  var shallow = require('zustand/shallow');
5
5
  var React = require('react');
6
- var unauthorized = require('./unauthorized-CI14HDQo.js');
6
+ var purify_es = require('./purify.es-D81wVm4N.js');
7
7
  var useDisplayErrorPage = require('@bigbinary/neeto-commons-frontend/react-utils/useDisplayErrorPage');
8
+ var Home = require('@bigbinary/neeto-icons/Home');
9
+ var Left = require('@bigbinary/neeto-icons/Left');
8
10
  var Button = require('@bigbinary/neetoui/Button');
9
11
  var Typography = require('@bigbinary/neetoui/Typography');
10
12
  var reactHelmet = require('react-helmet');
11
13
  var reactI18next = require('react-i18next');
14
+ var Lock = require('@bigbinary/neeto-icons/Lock');
15
+ var Search = require('@bigbinary/neeto-icons/Search');
16
+ var Warning = require('@bigbinary/neeto-icons/Warning');
12
17
  var injectCss = require('./inject-css-B6qYtOJe.js');
13
18
  var jsxRuntime = require('react/jsx-runtime');
14
19
 
15
20
  var ERRORS = {
16
21
  404: {
17
- Image: unauthorized.SvgPageNotFound,
22
+ Icon: Search,
18
23
  errorKey: "neetoMolecules.errorPage.cantBeFound",
19
- titleKey: "neetoMolecules.errorPage.title.cantBeFound"
24
+ titleKey: "neetoMolecules.errorPage.title.cantBeFound",
25
+ descriptionKey: "neetoMolecules.errorPage.description.cantBeFound",
26
+ primaryAction: "home",
27
+ usesChat: true
20
28
  },
21
29
  403: {
22
- Image: unauthorized.SvgUnauthorized,
30
+ Icon: Lock,
23
31
  errorKey: "neetoMolecules.errorPage.unauthorized",
24
- titleKey: "neetoMolecules.errorPage.title.unauthorized"
32
+ titleKey: "neetoMolecules.errorPage.title.unauthorized",
33
+ descriptionKey: "neetoMolecules.errorPage.description.unauthorized",
34
+ primaryAction: "back",
35
+ usesChat: false
25
36
  },
26
37
  500: {
27
- Image: unauthorized.SvgInternalServerError,
38
+ Icon: Warning,
28
39
  errorKey: "neetoMolecules.errorPage.internalServerError",
29
- titleKey: "neetoMolecules.errorPage.title.internalServerError"
40
+ titleKey: "neetoMolecules.errorPage.title.internalServerError",
41
+ descriptionKey: "neetoMolecules.errorPage.description.internalServerError",
42
+ primaryAction: "home",
43
+ usesChat: true
30
44
  }
31
45
  };
32
46
 
33
- var css = ".neeto-molecules-error-page__wrapper{align-items:center;container-name:error-page-wrapper;container-type:inline-size;display:flex;flex-direction:column;justify-content:center;min-height:100vh;min-height:100dvh;width:100%}.neeto-molecules-error-page__container{display:flex;flex-direction:column;gap:32px;max-width:100%;padding:16px;width:768px}@container error-page-wrapper (min-width: 768px){.neeto-molecules-error-page__container{flex-direction:row;gap:48px;padding:24px}}.neeto-molecules-error-page__image{flex-shrink:0;max-width:180px;width:100%}@container error-page-wrapper (min-width: 768px){.neeto-molecules-error-page__image{max-width:240px}}.neeto-molecules-error-page__action-btn{align-items:flex-start;display:flex;flex-direction:column;gap:12px}.neeto-molecules-error-page__action-btn a{text-decoration:none}.neeto-ui-theme--dark .neeto-molecules-error-code path{fill:rgb(var(--neeto-ui-black))}";
47
+ var css = ".neeto-molecules-error-page__wrapper{align-items:center;container-name:error-page-wrapper;container-type:inline-size;display:flex;flex-direction:column;justify-content:center;min-height:100vh;min-height:100dvh;width:100%}.neeto-molecules-error-page__container{align-items:center;display:flex;flex-direction:column;gap:24px;max-width:100%;padding:16px;text-align:center;width:768px}@container error-page-wrapper (min-width: 768px){.neeto-molecules-error-page__container{align-items:center;flex-direction:row;gap:48px;padding:24px;text-align:start}}.neeto-molecules-error-page__status-code{letter-spacing:.08em;text-transform:uppercase}.neeto-molecules-error-page__icon{align-items:center;background-color:rgb(var(--neeto-ui-gray-100));border:1px solid rgb(var(--neeto-ui-gray-300));border-radius:9999px;display:flex;flex-shrink:0;height:96px;justify-content:center;width:96px}.neeto-molecules-error-page__action-btn{align-items:center;display:flex;flex-direction:row;flex-wrap:wrap;gap:12px}.neeto-molecules-error-page__action-btn a{text-decoration:none}";
34
48
  injectCss.n(css,{});
35
49
 
36
50
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
37
51
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
38
- var sanitize = unauthorized.purify.sanitize;
52
+ var sanitize = purify_es.purify.sanitize;
39
53
  var ErrorPage = function ErrorPage(_ref) {
40
54
  var _ref$homeUrl = _ref.homeUrl,
41
55
  homeUrl = _ref$homeUrl === void 0 ? "/" : _ref$homeUrl,
@@ -60,9 +74,12 @@ var ErrorPage = function ErrorPage(_ref) {
60
74
  showErrorPage = _useErrorDisplayStore.showErrorPage;
61
75
  status = status || storeStatusCode;
62
76
  var _ref2 = ERRORS[status] || ERRORS[404],
63
- Image = _ref2.Image,
77
+ Icon = _ref2.Icon,
64
78
  errorKey = _ref2.errorKey,
65
- titleKey = _ref2.titleKey;
79
+ titleKey = _ref2.titleKey,
80
+ descriptionKey = _ref2.descriptionKey,
81
+ primaryAction = _ref2.primaryAction,
82
+ usesChat = _ref2.usesChat;
66
83
  React.useEffect(function () {
67
84
  var pageLoader = document.getElementById("neeto-page-loader");
68
85
  if (pageLoader) pageLoader.remove();
@@ -82,43 +99,66 @@ var ErrorPage = function ErrorPage(_ref) {
82
99
  (_window$NeetoChat = window.NeetoChat) === null || _window$NeetoChat === void 0 || (_window$NeetoChat = _window$NeetoChat.contextualHelp) === null || _window$NeetoChat === void 0 || _window$NeetoChat.maximizeWidget();
83
100
  (_window$NeetoChat2 = window.NeetoChat) === null || _window$NeetoChat2 === void 0 || (_window$NeetoChat2 = _window$NeetoChat2.contextualHelp) === null || _window$NeetoChat2 === void 0 || _window$NeetoChat2.openWidget();
84
101
  };
102
+
103
+ // Falls back to homeUrl when the user landed on the error page directly
104
+ // (deep link / fresh tab) and has no in-app history to go back to.
105
+ var handleGoBack = function handleGoBack() {
106
+ if (window.history.length > 1) {
107
+ window.history.back();
108
+ } else {
109
+ window.location.href = homeUrl;
110
+ }
111
+ };
112
+ var showDefaultDescription = !usesChat || showNeetoChatWidget;
85
113
  return /*#__PURE__*/jsxRuntime.jsx("div", {
86
114
  className: "neeto-molecules-error-page__wrapper",
87
115
  "data-testid": "error-page-container",
88
116
  children: /*#__PURE__*/jsxRuntime.jsxs("div", {
89
117
  className: "neeto-molecules-error-page__container",
90
- children: [/*#__PURE__*/jsxRuntime.jsx(Image, {
91
- className: "neeto-molecules-error-code neeto-molecules-error-page__image",
92
- "data-testid": "error-image"
118
+ children: [/*#__PURE__*/jsxRuntime.jsx("div", {
119
+ className: "neeto-molecules-error-page__icon",
120
+ "data-testid": "error-image",
121
+ children: /*#__PURE__*/jsxRuntime.jsx(Icon, {
122
+ className: "neeto-ui-text-gray-500",
123
+ size: 40
124
+ })
93
125
  }), /*#__PURE__*/jsxRuntime.jsxs("div", {
94
126
  className: "neeto-ui-flex neeto-ui-flex-col justify-center md:min-w-0 md:flex-grow",
95
127
  children: [/*#__PURE__*/jsxRuntime.jsx(reactHelmet.Helmet, {
96
128
  children: /*#__PURE__*/jsxRuntime.jsx("title", {
97
129
  children: t(titleKey)
98
130
  })
131
+ }), !!status && /*#__PURE__*/jsxRuntime.jsx(Typography, {
132
+ className: "neeto-molecules-error-page__status-code neeto-ui-mb-2 neeto-ui-text-gray-500",
133
+ "data-testid": "status-code",
134
+ style: "body3",
135
+ weight: "semibold",
136
+ children: t("neetoMolecules.errorPage.statusCodeLabel", {
137
+ status: status
138
+ })
99
139
  }), /*#__PURE__*/jsxRuntime.jsx(Typography, {
100
- className: "neeto-ui-mb-4",
140
+ className: "neeto-ui-mb-3",
101
141
  "data-testid": "title",
102
142
  style: "h2",
103
143
  weight: "semibold",
104
144
  children: title || /*#__PURE__*/jsxRuntime.jsx(reactI18next.Trans, {
105
145
  i18nKey: errorKey
106
146
  })
107
- }), !!description && /*#__PURE__*/jsxRuntime.jsx(Typography, {
108
- className: "neeto-ui-mb-4",
147
+ }), description ? /*#__PURE__*/jsxRuntime.jsx(Typography, {
148
+ className: "neeto-ui-mb-6",
109
149
  dangerouslySetInnerHTML: {
110
150
  __html: sanitize(description)
111
151
  },
112
152
  "data-testid": "description",
113
153
  style: "body1"
114
- }), showNeetoChatWidget && /*#__PURE__*/jsxRuntime.jsx(Typography, {
154
+ }) : showDefaultDescription && /*#__PURE__*/jsxRuntime.jsx(Typography, {
115
155
  className: "neeto-ui-mb-6",
116
- "data-testid": "title",
156
+ "data-testid": "description",
117
157
  style: "body1",
118
158
  children: /*#__PURE__*/jsxRuntime.jsx(reactI18next.Trans, {
119
- i18nKey: "neetoMolecules.errorPage.contactUs",
159
+ i18nKey: descriptionKey,
120
160
  components: {
121
- button: /*#__PURE__*/jsxRuntime.jsx(Button, {
161
+ contactLink: /*#__PURE__*/jsxRuntime.jsx(Button, {
122
162
  className: "neeto-ui-font-size-inherit",
123
163
  size: "large",
124
164
  style: "link",
@@ -128,8 +168,17 @@ var ErrorPage = function ErrorPage(_ref) {
128
168
  })
129
169
  }), /*#__PURE__*/jsxRuntime.jsxs("div", {
130
170
  className: "neeto-molecules-error-page__action-btn",
131
- children: [!hideBackToHomeButton && /*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread({
171
+ children: [primaryAction === "back" ? /*#__PURE__*/jsxRuntime.jsx(Button, {
172
+ icon: Left,
173
+ iconPosition: "left",
174
+ label: t("neetoMolecules.errorPage.goBack"),
175
+ size: "large",
176
+ style: "primary",
177
+ onClick: handleGoBack
178
+ }) : !hideBackToHomeButton && /*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread({
132
179
  href: homeUrl,
180
+ icon: Home,
181
+ iconPosition: "left",
133
182
  label: t("neetoMolecules.errorPage.backToHome"),
134
183
  size: "large",
135
184
  style: "primary"
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorPage.js","sources":["../../src/components/ErrorPage/constants.js","../../src/components/ErrorPage/index.jsx"],"sourcesContent":["import InternalServerErrorImage from \"assets/images/internal-server-error\";\nimport PageNotFoundImage from \"assets/images/page-not-found\";\nimport UnauthorizedImage from \"assets/images/unauthorized\";\n\nexport const ERRORS = {\n 404: {\n Image: PageNotFoundImage,\n errorKey: \"neetoMolecules.errorPage.cantBeFound\",\n titleKey: \"neetoMolecules.errorPage.title.cantBeFound\",\n },\n 403: {\n Image: UnauthorizedImage,\n errorKey: \"neetoMolecules.errorPage.unauthorized\",\n titleKey: \"neetoMolecules.errorPage.title.unauthorized\",\n },\n 500: {\n Image: InternalServerErrorImage,\n errorKey: \"neetoMolecules.errorPage.internalServerError\",\n titleKey: \"neetoMolecules.errorPage.title.internalServerError\",\n },\n};\n","// NOTE:\n// Do not use TailwindCSS classes in this molecule. Please define the styles in\n// the `error-page.scss` file or through neeto-ui helper classes.\n// The error.js entrypoint does not use TailwidCSS.\n\nimport { useEffect } from \"react\";\n\nimport DOMPurify from \"dompurify\";\nimport { useErrorDisplayStore } from \"neetocommons/react-utils/useDisplayErrorPage\";\nimport { Button, Typography } from \"neetoui\";\nimport PropTypes from \"prop-types\";\nimport { Helmet } from \"react-helmet\";\nimport { Trans, useTranslation } from \"react-i18next\";\n\nimport { ERRORS } from \"./constants\";\nimport \"./error-page.scss\";\n\nconst sanitize = DOMPurify.sanitize;\n\nconst ErrorPage = ({\n homeUrl = \"/\",\n status,\n backToHomeButtonProps,\n children,\n showNeetoChatWidget = true,\n description,\n title,\n hideBackToHomeButton = false,\n}) => {\n const { t } = useTranslation();\n const { statusCode: storeStatusCode, showErrorPage } =\n useErrorDisplayStore.pick();\n\n status = status || storeStatusCode;\n const { Image, errorKey, titleKey } = ERRORS[status] || ERRORS[404];\n\n useEffect(() => {\n const pageLoader = document.getElementById(\"neeto-page-loader\");\n if (pageLoader) pageLoader.remove();\n\n const onBackButtonPress = () => {\n if (!showErrorPage) return;\n useErrorDisplayStore.setState({ showErrorPage: false });\n };\n\n window.addEventListener(\"popstate\", onBackButtonPress);\n\n return () => {\n window.removeEventListener(\"popstate\", onBackButtonPress);\n };\n }, []);\n\n const openChatWidget = () => {\n window.NeetoChat?.contextualHelp?.maximizeWidget();\n window.NeetoChat?.contextualHelp?.openWidget();\n };\n\n return (\n <div\n className=\"neeto-molecules-error-page__wrapper\"\n data-testid=\"error-page-container\"\n >\n <div className=\"neeto-molecules-error-page__container\">\n <Image\n className=\"neeto-molecules-error-code neeto-molecules-error-page__image\"\n data-testid=\"error-image\"\n />\n <div className=\"neeto-ui-flex neeto-ui-flex-col justify-center md:min-w-0 md:flex-grow\">\n <Helmet>\n <title>{t(titleKey)}</title>\n </Helmet>\n <Typography\n className=\"neeto-ui-mb-4\"\n data-testid=\"title\"\n style=\"h2\"\n weight=\"semibold\"\n >\n {title || <Trans i18nKey={errorKey} />}\n </Typography>\n {!!description && (\n <Typography\n className=\"neeto-ui-mb-4\"\n dangerouslySetInnerHTML={{ __html: sanitize(description) }}\n data-testid=\"description\"\n style=\"body1\"\n />\n )}\n {showNeetoChatWidget && (\n <Typography\n className=\"neeto-ui-mb-6\"\n data-testid=\"title\"\n style=\"body1\"\n >\n <Trans\n i18nKey=\"neetoMolecules.errorPage.contactUs\"\n components={{\n button: (\n <Button\n className=\"neeto-ui-font-size-inherit\"\n size=\"large\"\n style=\"link\"\n onClick={openChatWidget}\n />\n ),\n }}\n />\n </Typography>\n )}\n <div className=\"neeto-molecules-error-page__action-btn\">\n {!hideBackToHomeButton && (\n <Button\n href={homeUrl}\n label={t(\"neetoMolecules.errorPage.backToHome\")}\n size=\"large\"\n style=\"primary\"\n {...backToHomeButtonProps}\n />\n )}\n {children}\n </div>\n </div>\n </div>\n </div>\n );\n};\n\nErrorPage.propTypes = {\n /**\n * The URL to which the user will be taken to when user clicks on back to home button.\n */\n homeUrl: PropTypes.string,\n /**\n * The status code of the error.\n */\n status: PropTypes.oneOf([403, 404, 500]),\n /**\n * Decides whether 'contact us' link should be displayed or not.\n */\n showNeetoChatWidget: PropTypes.bool,\n /**\n * Description about the error.\n */\n description: PropTypes.string,\n /**\n * Decides whether 'back to home' button should be displayed or not.\n */\n hideBackToHomeButton: PropTypes.bool,\n /**\n * The title of the error page.\n */\n title: PropTypes.string,\n};\n\nexport default ErrorPage;\n"],"names":["ERRORS","Image","PageNotFoundImage","errorKey","titleKey","UnauthorizedImage","InternalServerErrorImage","sanitize","DOMPurify","ErrorPage","_ref","_ref$homeUrl","homeUrl","status","backToHomeButtonProps","children","_ref$showNeetoChatWid","showNeetoChatWidget","description","title","_ref$hideBackToHomeBu","hideBackToHomeButton","_useTranslation","useTranslation","t","_useErrorDisplayStore","useErrorDisplayStore","useShallow","store","statusCode","showErrorPage","storeStatusCode","_ref2","useEffect","pageLoader","document","getElementById","remove","onBackButtonPress","setState","window","addEventListener","removeEventListener","openChatWidget","_window$NeetoChat","_window$NeetoChat2","NeetoChat","contextualHelp","maximizeWidget","openWidget","_jsx","className","_jsxs","Helmet","Typography","style","weight","Trans","i18nKey","dangerouslySetInnerHTML","__html","components","button","Button","size","onClick","_objectSpread","href","label"],"mappings":";;;;;;;;;;;;;;AAIO,IAAMA,MAAM,GAAG;AACpB,EAAA,GAAG,EAAE;AACHC,IAAAA,KAAK,EAAEC,4BAAiB;AACxBC,IAAAA,QAAQ,EAAE,sCAAsC;AAChDC,IAAAA,QAAQ,EAAE;GACX;AACD,EAAA,GAAG,EAAE;AACHH,IAAAA,KAAK,EAAEI,4BAAiB;AACxBF,IAAAA,QAAQ,EAAE,uCAAuC;AACjDC,IAAAA,QAAQ,EAAE;GACX;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AAxC,QAAA,eAEbmC,cAAA,CAACO,kBAAK,EAAA;AACJC,YAAAA,OAAO,EAAC,oCAAoC;AAC5CG,YAAAA,UAAU,EAAE;cACVC,MAAM,eACJZ,cAAA,CAACa,MAAM,EAAA;AACLZ,gBAAAA,SAAS,EAAC,4BAA4B;AACtCa,gBAAAA,IAAI,EAAC,OAAO;AACZT,gBAAAA,KAAK,EAAC,MAAM;AACZU,gBAAAA,OAAO,EAAEtB;eACV;AAEL;WACD;SACS,CACb,eACDS,eAAA,CAAA,KAAA,EAAA;AAAKD,UAAAA,SAAS,EAAC,wCAAwC;UAAApC,QAAA,EAAA,CACpD,CAACM,oBAAoB,iBACpB6B,cAAA,CAACa,MAAM,EAAAG,aAAA,CAAA;AACLC,YAAAA,IAAI,EAAEvD,OAAQ;AACdwD,YAAAA,KAAK,EAAE5C,CAAC,CAAC,qCAAqC,CAAE;AAChDwC,YAAAA,IAAI,EAAC,OAAO;AACZT,YAAAA,KAAK,EAAC;AAAS,WAAA,EACXzC,qBAAqB,CAC1B,CACF,EACAC,QAAQ;AAAA,SACN,CAAC;AAAA,OACH,CAAC;KACH;AAAC,GACH,CAAC;AAEV;;;;"}
1
+ {"version":3,"file":"ErrorPage.js","sources":["../../src/components/ErrorPage/constants.js","../../src/components/ErrorPage/index.jsx"],"sourcesContent":["import { Lock, Search, Warning } from \"neetoicons\";\n\nexport const ERRORS = {\n 404: {\n Icon: Search,\n errorKey: \"neetoMolecules.errorPage.cantBeFound\",\n titleKey: \"neetoMolecules.errorPage.title.cantBeFound\",\n descriptionKey: \"neetoMolecules.errorPage.description.cantBeFound\",\n primaryAction: \"home\",\n usesChat: true,\n },\n 403: {\n Icon: Lock,\n errorKey: \"neetoMolecules.errorPage.unauthorized\",\n titleKey: \"neetoMolecules.errorPage.title.unauthorized\",\n descriptionKey: \"neetoMolecules.errorPage.description.unauthorized\",\n primaryAction: \"back\",\n usesChat: false,\n },\n 500: {\n Icon: Warning,\n errorKey: \"neetoMolecules.errorPage.internalServerError\",\n titleKey: \"neetoMolecules.errorPage.title.internalServerError\",\n descriptionKey: \"neetoMolecules.errorPage.description.internalServerError\",\n primaryAction: \"home\",\n usesChat: true,\n },\n};\n","// NOTE:\n// Do not use TailwindCSS classes in this molecule. Please define the styles in\n// the `error-page.scss` file or through neeto-ui helper classes.\n// The error.js entrypoint does not use TailwidCSS.\n\nimport { useEffect } from \"react\";\n\nimport DOMPurify from \"dompurify\";\nimport { useErrorDisplayStore } from \"neetocommons/react-utils/useDisplayErrorPage\";\nimport { Home, Left } from \"neetoicons\";\nimport { Button, Typography } from \"neetoui\";\nimport PropTypes from \"prop-types\";\nimport { Helmet } from \"react-helmet\";\nimport { Trans, useTranslation } from \"react-i18next\";\n\nimport { ERRORS } from \"./constants\";\nimport \"./error-page.scss\";\n\nconst sanitize = DOMPurify.sanitize;\n\nconst ErrorPage = ({\n homeUrl = \"/\",\n status,\n backToHomeButtonProps,\n children,\n showNeetoChatWidget = true,\n description,\n title,\n hideBackToHomeButton = false,\n}) => {\n const { t } = useTranslation();\n const { statusCode: storeStatusCode, showErrorPage } =\n useErrorDisplayStore.pick();\n\n status = status || storeStatusCode;\n const { Icon, errorKey, titleKey, descriptionKey, primaryAction, usesChat } =\n ERRORS[status] || ERRORS[404];\n\n useEffect(() => {\n const pageLoader = document.getElementById(\"neeto-page-loader\");\n if (pageLoader) pageLoader.remove();\n\n const onBackButtonPress = () => {\n if (!showErrorPage) return;\n useErrorDisplayStore.setState({ showErrorPage: false });\n };\n\n window.addEventListener(\"popstate\", onBackButtonPress);\n\n return () => {\n window.removeEventListener(\"popstate\", onBackButtonPress);\n };\n }, []);\n\n const openChatWidget = () => {\n window.NeetoChat?.contextualHelp?.maximizeWidget();\n window.NeetoChat?.contextualHelp?.openWidget();\n };\n\n // Falls back to homeUrl when the user landed on the error page directly\n // (deep link / fresh tab) and has no in-app history to go back to.\n const handleGoBack = () => {\n if (window.history.length > 1) {\n window.history.back();\n } else {\n window.location.href = homeUrl;\n }\n };\n\n const showDefaultDescription = !usesChat || showNeetoChatWidget;\n\n return (\n <div\n className=\"neeto-molecules-error-page__wrapper\"\n data-testid=\"error-page-container\"\n >\n <div className=\"neeto-molecules-error-page__container\">\n <div\n className=\"neeto-molecules-error-page__icon\"\n data-testid=\"error-image\"\n >\n <Icon className=\"neeto-ui-text-gray-500\" size={40} />\n </div>\n <div className=\"neeto-ui-flex neeto-ui-flex-col justify-center md:min-w-0 md:flex-grow\">\n <Helmet>\n <title>{t(titleKey)}</title>\n </Helmet>\n {!!status && (\n <Typography\n className=\"neeto-molecules-error-page__status-code neeto-ui-mb-2 neeto-ui-text-gray-500\"\n data-testid=\"status-code\"\n style=\"body3\"\n weight=\"semibold\"\n >\n {t(\"neetoMolecules.errorPage.statusCodeLabel\", { status })}\n </Typography>\n )}\n <Typography\n className=\"neeto-ui-mb-3\"\n data-testid=\"title\"\n style=\"h2\"\n weight=\"semibold\"\n >\n {title || <Trans i18nKey={errorKey} />}\n </Typography>\n {description ? (\n <Typography\n className=\"neeto-ui-mb-6\"\n dangerouslySetInnerHTML={{ __html: sanitize(description) }}\n data-testid=\"description\"\n style=\"body1\"\n />\n ) : (\n showDefaultDescription && (\n <Typography\n className=\"neeto-ui-mb-6\"\n data-testid=\"description\"\n style=\"body1\"\n >\n <Trans\n i18nKey={descriptionKey}\n components={{\n contactLink: (\n <Button\n className=\"neeto-ui-font-size-inherit\"\n size=\"large\"\n style=\"link\"\n onClick={openChatWidget}\n />\n ),\n }}\n />\n </Typography>\n )\n )}\n <div className=\"neeto-molecules-error-page__action-btn\">\n {primaryAction === \"back\" ? (\n <Button\n icon={Left}\n iconPosition=\"left\"\n label={t(\"neetoMolecules.errorPage.goBack\")}\n size=\"large\"\n style=\"primary\"\n onClick={handleGoBack}\n />\n ) : (\n !hideBackToHomeButton && (\n <Button\n href={homeUrl}\n icon={Home}\n iconPosition=\"left\"\n label={t(\"neetoMolecules.errorPage.backToHome\")}\n size=\"large\"\n style=\"primary\"\n {...backToHomeButtonProps}\n />\n )\n )}\n {children}\n </div>\n </div>\n </div>\n </div>\n );\n};\n\nErrorPage.propTypes = {\n /**\n * The URL to which the user will be taken to when user clicks on back to home button.\n */\n homeUrl: PropTypes.string,\n /**\n * The status code of the error.\n */\n status: PropTypes.oneOf([403, 404, 500]),\n /**\n * Decides whether 'contact us' link should be displayed or not.\n */\n showNeetoChatWidget: PropTypes.bool,\n /**\n * Description about the error.\n */\n description: PropTypes.string,\n /**\n * Decides whether 'back to home' button should be displayed or not.\n */\n hideBackToHomeButton: PropTypes.bool,\n /**\n * The title of the error page.\n */\n title: PropTypes.string,\n};\n\nexport default ErrorPage;\n"],"names":["ERRORS","Icon","Search","errorKey","titleKey","descriptionKey","primaryAction","usesChat","Lock","Warning","sanitize","DOMPurify","ErrorPage","_ref","_ref$homeUrl","homeUrl","status","backToHomeButtonProps","children","_ref$showNeetoChatWid","showNeetoChatWidget","description","title","_ref$hideBackToHomeBu","hideBackToHomeButton","_useTranslation","useTranslation","t","_useErrorDisplayStore","useErrorDisplayStore","useShallow","store","statusCode","showErrorPage","storeStatusCode","_ref2","useEffect","pageLoader","document","getElementById","remove","onBackButtonPress","setState","window","addEventListener","removeEventListener","openChatWidget","_window$NeetoChat","_window$NeetoChat2","NeetoChat","contextualHelp","maximizeWidget","openWidget","handleGoBack","history","length","back","location","href","showDefaultDescription","_jsx","className","_jsxs","size","Helmet","Typography","style","weight","Trans","i18nKey","dangerouslySetInnerHTML","__html","components","contactLink","Button","onClick","icon","Left","iconPosition","label","_objectSpread","Home"],"mappings":";;;;;;;;;;;;;;;;;;;AAEO,IAAMA,MAAM,GAAG;AACpB,EAAA,GAAG,EAAE;AACHC,IAAAA,IAAI,EAAEC,MAAM;AACZC,IAAAA,QAAQ,EAAE,sCAAsC;AAChDC,IAAAA,QAAQ,EAAE,4CAA4C;AACtDC,IAAAA,cAAc,EAAE,kDAAkD;AAClEC,IAAAA,aAAa,EAAE,MAAM;AACrBC,IAAAA,QAAQ,EAAE;GACX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AhD,QAAA,eAEb0C,cAAA,CAACQ,kBAAK,EAAA;AACJC,YAAAA,OAAO,EAAEhE,cAAe;AACxBmE,YAAAA,UAAU,EAAE;cACVC,WAAW,eACTb,cAAA,CAACc,MAAM,EAAA;AACLb,gBAAAA,SAAS,EAAC,4BAA4B;AACtCE,gBAAAA,IAAI,EAAC,OAAO;AACZG,gBAAAA,KAAK,EAAC,MAAM;AACZS,gBAAAA,OAAO,EAAE7B;eACV;AAEL;WACD;SACS,CAEf,eACDgB,eAAA,CAAA,KAAA,EAAA;AAAKD,UAAAA,SAAS,EAAC,wCAAwC;AAAA3C,UAAAA,QAAA,GACpDZ,aAAa,KAAK,MAAM,gBACvBsD,cAAA,CAACc,MAAM,EAAA;AACLE,YAAAA,IAAI,EAAEC,IAAK;AACXC,YAAAA,YAAY,EAAC,MAAM;AACnBC,YAAAA,KAAK,EAAEpD,CAAC,CAAC,iCAAiC,CAAE;AAC5CoC,YAAAA,IAAI,EAAC,OAAO;AACZG,YAAAA,KAAK,EAAC,SAAS;AACfS,YAAAA,OAAO,EAAEtB;WACV,CAAC,GAEF,CAAC7B,oBAAoB,iBACnBoC,cAAA,CAACc,MAAM,EAAAM,aAAA,CAAA;AACLtB,YAAAA,IAAI,EAAE3C,OAAQ;AACd6D,YAAAA,IAAI,EAAEK,IAAK;AACXH,YAAAA,YAAY,EAAC,MAAM;AACnBC,YAAAA,KAAK,EAAEpD,CAAC,CAAC,qCAAqC,CAAE;AAChDoC,YAAAA,IAAI,EAAC,OAAO;AACZG,YAAAA,KAAK,EAAC;AAAS,WAAA,EACXjD,qBAAqB,CAC1B,CAEJ,EACAC,QAAQ;AAAA,SACN,CAAC;AAAA,OACH,CAAC;KACH;AAAC,GACH,CAAC;AAEV;;;;"}
@@ -46,9 +46,14 @@ var LeftArrow = require('@bigbinary/neeto-icons/LeftArrow');
46
46
  var CardLayout = require('./CardLayout.js');
47
47
  var Header$1 = require('./Header.js');
48
48
  require('zustand/shallow');
49
- require('./unauthorized-CI14HDQo.js');
49
+ require('./purify.es-D81wVm4N.js');
50
50
  require('@bigbinary/neeto-commons-frontend/react-utils/useDisplayErrorPage');
51
+ require('@bigbinary/neeto-icons/Home');
52
+ require('@bigbinary/neeto-icons/Left');
51
53
  require('react-helmet');
54
+ require('@bigbinary/neeto-icons/Lock');
55
+ require('@bigbinary/neeto-icons/Search');
56
+ require('@bigbinary/neeto-icons/Warning');
52
57
  require('./index-JY2zVpnv.js');
53
58
  require('./_commonjsHelpers-BJu3ubxk.js');
54
59
  require('@bigbinary/neeto-icons/Copy');
@@ -64,7 +69,6 @@ require('./Search.js');
64
69
  require('@bigbinary/neeto-commons-frontend/react-utils/useFuncDebounce');
65
70
  require('@bigbinary/neeto-commons-frontend/react-utils/useQueryParams');
66
71
  require('@bigbinary/neeto-commons-frontend/react-utils/useUpdateEffect');
67
- require('@bigbinary/neeto-icons/Search');
68
72
 
69
73
  function _interopNamespaceDefault(e) {
70
74
  var n = Object.create(null);