@bigbinary/neeto-molecules 3.16.87 → 3.16.88

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.
@@ -2,8 +2,8 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
2
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
3
3
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
4
4
  import { useField } from 'formik';
5
- import { P as PhoneNumberInput, g as getPhoneData, S as SingleValue } from './phone-number-BxJMWmEj.js';
6
- export { i as isPhoneNumberValid, v as validation } from './phone-number-BxJMWmEj.js';
5
+ import { P as PhoneNumberInput, g as getPhoneData, S as SingleValue } from './phone-number-BPy1zqqJ.js';
6
+ export { i as isPhoneNumberValid, v as validation } from './phone-number-BPy1zqqJ.js';
7
7
  import { jsx, jsxs } from 'react/jsx-runtime';
8
8
  import { memo } from 'react';
9
9
  import classnames from 'classnames';
@@ -34,7 +34,7 @@ import Close from '@bigbinary/neeto-icons/Close';
34
34
  import Input from '@bigbinary/neetoui/Input';
35
35
  import '@babel/runtime/helpers/objectWithoutProperties';
36
36
  import 'formik';
37
- import { P as PhoneNumberInput } from './phone-number-BxJMWmEj.js';
37
+ import { P as PhoneNumberInput } from './phone-number-BPy1zqqJ.js';
38
38
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
39
39
  import '@bigbinary/neeto-commons-frontend/utils/general';
40
40
  import '@bigbinary/neeto-icons/Copy';
@@ -1736,7 +1736,10 @@ var ErrorPage = function ErrorPage(_ref) {
1736
1736
  children = _ref.children,
1737
1737
  _ref$showNeetoChatWid = _ref.showNeetoChatWidget,
1738
1738
  showNeetoChatWidget = _ref$showNeetoChatWid === void 0 ? true : _ref$showNeetoChatWid,
1739
- description = _ref.description;
1739
+ description = _ref.description,
1740
+ title = _ref.title,
1741
+ _ref$hideBackToHomeBu = _ref.hideBackToHomeButton,
1742
+ hideBackToHomeButton = _ref$hideBackToHomeBu === void 0 ? false : _ref$hideBackToHomeBu;
1740
1743
  var _useTranslation = reactI18next.useTranslation(),
1741
1744
  t = _useTranslation.t;
1742
1745
  var _useErrorDisplayStore = useDisplayErrorPage.useErrorDisplayStore(function (store) {
@@ -1778,7 +1781,7 @@ var ErrorPage = function ErrorPage(_ref) {
1778
1781
  className: "neeto-molecules-error-code neeto-molecules-error-page__image",
1779
1782
  "data-cy": "error-image"
1780
1783
  }), /*#__PURE__*/jsxRuntime.jsxs("div", {
1781
- className: "neeto-ui-flex neeto-ui-flex-col",
1784
+ className: "neeto-ui-flex neeto-ui-flex-col justify-center",
1782
1785
  children: [/*#__PURE__*/jsxRuntime.jsx(reactHelmet.Helmet, {
1783
1786
  children: /*#__PURE__*/jsxRuntime.jsx("title", {
1784
1787
  children: t(titleKey)
@@ -1788,7 +1791,7 @@ var ErrorPage = function ErrorPage(_ref) {
1788
1791
  "data-cy": "title",
1789
1792
  style: "h2",
1790
1793
  weight: "semibold",
1791
- children: /*#__PURE__*/jsxRuntime.jsx(reactI18next.Trans, {
1794
+ children: title || /*#__PURE__*/jsxRuntime.jsx(reactI18next.Trans, {
1792
1795
  i18nKey: errorKey
1793
1796
  })
1794
1797
  }), !!description && /*#__PURE__*/jsxRuntime.jsx(Typography, {
@@ -1815,7 +1818,7 @@ var ErrorPage = function ErrorPage(_ref) {
1815
1818
  })
1816
1819
  }), /*#__PURE__*/jsxRuntime.jsxs("div", {
1817
1820
  className: "neeto-molecules-error-page__action-btn",
1818
- children: [/*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread({
1821
+ children: [!hideBackToHomeButton && /*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread({
1819
1822
  href: homeUrl,
1820
1823
  label: t("neetoMolecules.errorPage.backToHome"),
1821
1824
  size: "large",