@bigbinary/neeto-commons-frontend 2.0.34 → 2.0.36

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.
@@ -17,7 +17,7 @@ var relativeTime = require('dayjs/plugin/relativeTime');
17
17
  var updateLocale = require('dayjs/plugin/updateLocale');
18
18
  var reactQuery = require('react-query');
19
19
  var axios$1 = require('axios');
20
- var react$1 = require('@honeybadger-io/react');
20
+ var react = require('@honeybadger-io/react');
21
21
  var reactRouterDom = require('react-router-dom');
22
22
  var customParseFormat = require('dayjs/plugin/customParseFormat');
23
23
  var timezone = require('dayjs/plugin/timezone');
@@ -1365,9 +1365,9 @@ var ContactUs = function ContactUs() {
1365
1365
  label: i18next.t("neetoCommons.browserSupport.contactUs.buttonLabel"),
1366
1366
  style: "link",
1367
1367
  onClick: function onClick() {
1368
- var _window, _window$NeetoChat, _window2, _window2$NeetoChat;
1369
- (_window = window) === null || _window === void 0 ? void 0 : (_window$NeetoChat = _window.NeetoChat) === null || _window$NeetoChat === void 0 ? void 0 : _window$NeetoChat.contextualHelp.openWidget();
1370
- (_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$NeetoChat = _window2.NeetoChat) === null || _window2$NeetoChat === void 0 ? void 0 : _window2$NeetoChat.contextualHelp.maximizeWidget();
1368
+ var _window$NeetoChat, _window$NeetoChat$con, _window$NeetoChat2, _window$NeetoChat2$co;
1369
+ (_window$NeetoChat = window.NeetoChat) === null || _window$NeetoChat === void 0 ? void 0 : (_window$NeetoChat$con = _window$NeetoChat.contextualHelp) === null || _window$NeetoChat$con === void 0 ? void 0 : _window$NeetoChat$con.maximizeWidget();
1370
+ (_window$NeetoChat2 = window.NeetoChat) === null || _window$NeetoChat2 === void 0 ? void 0 : (_window$NeetoChat2$co = _window$NeetoChat2.contextualHelp) === null || _window$NeetoChat2$co === void 0 ? void 0 : _window$NeetoChat2$co.openWidget();
1371
1371
  }
1372
1372
  })
1373
1373
  }
@@ -1459,10 +1459,10 @@ var UnsupportedBrowser = function UnsupportedBrowser(_ref) {
1459
1459
  var browserName = _ref.browserName,
1460
1460
  browserVersion = _ref.browserVersion;
1461
1461
  return /*#__PURE__*/React__default["default"].createElement(reactI18next.Trans, {
1462
- i18nKey: "neetoCommons.browserSupport.unsupportedBrowser",
1463
1462
  components: {
1464
1463
  contactUs: /*#__PURE__*/React__default["default"].createElement(ContactUs, null)
1465
1464
  },
1465
+ i18nKey: "neetoCommons.browserSupport.unsupportedBrowser",
1466
1466
  values: {
1467
1467
  browserName: browserName,
1468
1468
  browserVersion: getBrowserMajorVersion(browserVersion)
@@ -1476,9 +1476,9 @@ var DownloadLink = function DownloadLink(_ref) {
1476
1476
  i18nKey: "neetoCommons.browserSupport.downloadLink.main",
1477
1477
  components: {
1478
1478
  button: /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
1479
+ href: link,
1479
1480
  label: i18next.t("neetoCommons.browserSupport.downloadLink.buttonLabel"),
1480
- style: "link",
1481
- href: link
1481
+ style: "link"
1482
1482
  })
1483
1483
  }
1484
1484
  });
@@ -1526,8 +1526,8 @@ var BrowserSupport = function BrowserSupport(_ref) {
1526
1526
  }, isUnsupportedBrowserVersion ? /*#__PURE__*/React__default["default"].createElement(UnsupportedBrowserVersion, {
1527
1527
  browserName: browserName,
1528
1528
  browserVersion: browserVersion,
1529
- requiredMinBrowserVersion: requiredMinBrowserVersion,
1530
- downloadPageLink: downloadPageLink
1529
+ downloadPageLink: downloadPageLink,
1530
+ requiredMinBrowserVersion: requiredMinBrowserVersion
1531
1531
  }) : /*#__PURE__*/React__default["default"].createElement(UnsupportedBrowser, {
1532
1532
  browserName: browserName,
1533
1533
  browserVersion: browserVersion
@@ -1585,38 +1585,14 @@ var isNotEmpty = /*#__PURE__*/ramda.complement(ramda.isEmpty);
1585
1585
  var isNotPresent = /*#__PURE__*/ramda.either(ramda.isNil, ramda.isEmpty);
1586
1586
  var isPresent = /*#__PURE__*/ramda.complement(isNotPresent);
1587
1587
 
1588
- var slugify = function slugify(string) {
1589
- return string.toString().toLowerCase().replace(/\s+/g, "-") // Replace spaces with -
1590
- .replace(/&/g, "-and-") // Replace & with 'and'
1591
- .replace(/[^\w-]+/g, "") // Remove all non-word characters
1592
- .replace(/--+/g, "-") // Replace multiple - with single -
1593
- .replace(/^-+/, "") // Trim - from start of text
1594
- .replace(/-+$/, "");
1595
- }; // Trim - from end of text
1596
-
1597
- var humanize = function humanize(string) {
1598
- string = string.replace(/[_-]+/g, " ").replace(/\s{2,}/g, " ").replace(/([a-z\d])([A-Z])/g, "$1" + " " + "$2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g, "$1" + " " + "$2").toLowerCase().trim();
1599
- string = string.charAt(0).toUpperCase() + string.slice(1);
1600
- return string;
1601
- };
1602
1588
  var snakeToCamelCase = function snakeToCamelCase(string) {
1603
1589
  return string.replace(/(_\w)/g, function (letter) {
1604
1590
  return letter[1].toUpperCase();
1605
1591
  });
1606
1592
  };
1607
- var camelToSnakeCase = function camelToSnakeCase(string) {
1608
- return string.replace(/[A-Z]/g, function (letter) {
1609
- return "_".concat(letter.toLowerCase());
1610
- });
1611
- };
1612
1593
  var capitalize = function capitalize(string) {
1613
1594
  return string.charAt(0).toUpperCase() + string.slice(1);
1614
1595
  };
1615
- nullSafe(slugify);
1616
- nullSafe(humanize);
1617
- nullSafe(snakeToCamelCase);
1618
- nullSafe(camelToSnakeCase);
1619
- nullSafe(capitalize);
1620
1596
 
1621
1597
  var matchesImpl = function matchesImpl(pattern, object) {
1622
1598
  var __parent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : object;
@@ -1773,18 +1749,18 @@ var Columns = function Columns(_ref) {
1773
1749
  buttonStyle: "text",
1774
1750
  closeOnSelect: false,
1775
1751
  label: "Columns",
1752
+ position: "bottom-end",
1776
1753
  onClose: function onClose() {
1777
1754
  return setSearchTerm("");
1778
- },
1779
- position: "bottom-end"
1755
+ }
1780
1756
  }, dropdownProps), /*#__PURE__*/React__default["default"].createElement(Menu, null, /*#__PURE__*/React__default["default"].createElement("div", null, isSearchable && /*#__PURE__*/React__default["default"].createElement(neetoui.Input, _extends$3({
1781
1757
  className: "neeto-ui-px-3 neeto-ui-py-2",
1782
1758
  "data-cy": "neeto-ui-columns-search",
1783
- onChange: handleSearch,
1784
1759
  placeholder: "Search columns",
1785
1760
  prefix: /*#__PURE__*/React__default["default"].createElement(neetoIcons.Search, null),
1786
1761
  type: "search",
1787
- value: searchTerm
1762
+ value: searchTerm,
1763
+ onChange: handleSearch
1788
1764
  }, searchProps)), isNotEmpty(filteredColumns) ? filteredColumns.map(function (_ref4) {
1789
1765
  var dataIndex = _ref4.dataIndex,
1790
1766
  key = _ref4.key,
@@ -1795,11 +1771,11 @@ var Columns = function Columns(_ref) {
1795
1771
  className: "neeto-ui-w-full neeto-ui-px-3 neeto-ui-py-2 hover:neeto-ui-bg-gray-200 neeto-ui-cursor-pointer",
1796
1772
  htmlFor: dataIndex
1797
1773
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Checkbox, _extends$3({
1798
- id: dataIndex,
1799
- name: dataIndex,
1800
1774
  checked: !hiddenColumns.includes(dataIndex),
1801
1775
  "data-cy": "neeto-ui-columns-checkbox",
1776
+ id: dataIndex,
1802
1777
  label: title,
1778
+ name: dataIndex,
1803
1779
  onChange: handleChange
1804
1780
  }, checkboxProps))));
1805
1781
  }) : /*#__PURE__*/React__default["default"].createElement("span", {
@@ -2355,25 +2331,17 @@ const createImpl = (createState) => {
2355
2331
  return useBoundStore;
2356
2332
  };
2357
2333
  const create$9 = (createState) => createState ? createImpl(createState) : createImpl;
2358
- var react = (createState) => {
2359
- if ((undefined && undefined.MODE) !== "production") {
2360
- console.warn(
2361
- "[DEPRECATED] default export is deprecated, instead import { create } from'zustand'"
2362
- );
2363
- }
2364
- return create$9(createState);
2365
- };
2366
2334
 
2367
2335
  var useDisplayErrorPage = function useDisplayErrorPage() {
2368
2336
  return useErrorDisplayStore(ramda.prop("show404Page"));
2369
2337
  };
2370
- var useErrorDisplayStore = react(function () {
2338
+ var useErrorDisplayStore = create$9(function () {
2371
2339
  return {
2372
2340
  show404Page: false
2373
2341
  };
2374
2342
  });
2375
2343
 
2376
- function useDebounce(value) {
2344
+ var useDebounce = function useDebounce(value) {
2377
2345
  var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 350;
2378
2346
  var _useState = React.useState(value),
2379
2347
  _useState2 = _slicedToArray(_useState, 2),
@@ -2388,7 +2356,7 @@ function useDebounce(value) {
2388
2356
  };
2389
2357
  }, [value]);
2390
2358
  return debouncedValue;
2391
- }
2359
+ };
2392
2360
 
2393
2361
  var useFuncDebounce = function useFuncDebounce(func) {
2394
2362
  var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 350;
@@ -2409,6 +2377,7 @@ var useFuncDebounce = function useFuncDebounce(func) {
2409
2377
  };
2410
2378
 
2411
2379
  var useForceUpdate = function useForceUpdate() {
2380
+ // eslint-disable-next-line react/hook-use-state
2412
2381
  var _useState = React.useState(0),
2413
2382
  _useState2 = _slicedToArray(_useState, 2),
2414
2383
  setValue = _useState2[1];
@@ -2424,14 +2393,14 @@ var useIsElementVisibleInDom = function useIsElementVisibleInDom(target) {
2424
2393
  var _useState = React.useState(false),
2425
2394
  _useState2 = _slicedToArray(_useState, 2),
2426
2395
  isIntersecting = _useState2[0],
2427
- setIntersecting = _useState2[1];
2396
+ setIsIntersecting = _useState2[1];
2428
2397
  var forceUpdate = useForceUpdate();
2429
2398
  React.useEffect(function () {
2430
2399
  if (!target) return forceUpdate();
2431
2400
  var observer = new IntersectionObserver(function (_ref) {
2432
2401
  var _ref2 = _slicedToArray(_ref, 1),
2433
2402
  entry = _ref2[0];
2434
- return setIntersecting(entry.isIntersecting);
2403
+ return setIsIntersecting(entry.isIntersecting);
2435
2404
  }, options);
2436
2405
  observer.observe(target);
2437
2406
  return function () {
@@ -3542,25 +3511,25 @@ var TagBlock = function TagBlock(_ref) {
3542
3511
  "flex-col items-start": stacked
3543
3512
  })
3544
3513
  }, status === "failed" ? /*#__PURE__*/React__default["default"].createElement(neetoui.Tag, {
3514
+ indicatorStyle: "danger",
3545
3515
  label: t("neetoCommons.customDomain.status.".concat(camelCasedStatus)),
3546
- style: "secondary",
3547
- indicatorStyle: "danger"
3516
+ style: "secondary"
3548
3517
  }) : /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(neetoui.Tag, {
3549
- label: t("neetoCommons.customDomain.status.txt.".concat(camelCasedStatus)),
3518
+ indicatorStyle: isTxtValidated ? "success" : "warning",
3550
3519
  style: "secondary",
3551
- indicatorStyle: isTxtValidated ? "success" : "warning"
3520
+ label: t("neetoCommons.customDomain.status.txt.".concat(camelCasedStatus))
3552
3521
  }), isTxtValidated && /*#__PURE__*/React__default["default"].createElement("div", {
3553
3522
  className: classnames("flex items-center justify-between gap-2", {
3554
3523
  "w-full": stacked
3555
3524
  })
3556
3525
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Tag, {
3557
- label: t("neetoCommons.customDomain.status.cname.".concat(camelCasedStatus)),
3526
+ indicatorStyle: status === "active" ? "success" : "warning",
3558
3527
  style: "secondary",
3559
- indicatorStyle: status === "active" ? "success" : "warning"
3528
+ label: t("neetoCommons.customDomain.status.cname.".concat(camelCasedStatus))
3560
3529
  }), isCnameRecordsAdded && status === "pending_cname_validation" && /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
3561
- label: t("neetoCommons.customDomain.validation.buttonLabel.cnameCheck"),
3562
3530
  className: "text-xs",
3563
3531
  style: "link",
3532
+ label: t("neetoCommons.customDomain.validation.buttonLabel.cnameCheck"),
3564
3533
  onClick: handleValidateCname
3565
3534
  }))));
3566
3535
  };
@@ -3594,10 +3563,10 @@ var renderColumnData = function renderColumnData(enableManagePane, enableDeleteA
3594
3563
  }
3595
3564
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Dropdown, {
3596
3565
  autoWidth: true,
3597
- icon: neetoIcons.MenuHorizontal,
3598
3566
  buttonProps: {
3599
3567
  style: "text"
3600
3568
  },
3569
+ icon: neetoIcons.MenuHorizontal,
3601
3570
  position: "bottom-end",
3602
3571
  strategy: "fixed"
3603
3572
  }, /*#__PURE__*/React__default["default"].createElement(Menu, null, /*#__PURE__*/React__default["default"].createElement(MenuItem.Button, {
@@ -3652,8 +3621,8 @@ var Record = function Record(_ref) {
3652
3621
  return /*#__PURE__*/React__default["default"].createElement("div", {
3653
3622
  className: "grid gap-4 mt-6"
3654
3623
  }, customDomain.status !== "active" && /*#__PURE__*/React__default["default"].createElement(neetoui.Callout, {
3655
- style: "info",
3656
- icon: neetoIcons.Info
3624
+ icon: neetoIcons.Info,
3625
+ style: "info"
3657
3626
  }, recordDescription), /*#__PURE__*/React__default["default"].createElement(neetoui.Input, {
3658
3627
  disabled: true,
3659
3628
  "data-cy": joinHyphenCase(recordNameLabel),
@@ -3667,8 +3636,8 @@ var Record = function Record(_ref) {
3667
3636
  }
3668
3637
  })
3669
3638
  }), /*#__PURE__*/React__default["default"].createElement(neetoui.Input, {
3670
- "data-cy": joinHyphenCase(recordValueLabel),
3671
3639
  disabled: true,
3640
+ "data-cy": joinHyphenCase(recordValueLabel),
3672
3641
  label: recordValueLabel,
3673
3642
  value: recordValue,
3674
3643
  suffix: /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
@@ -3723,12 +3692,12 @@ var CustomDomainInfo = function CustomDomainInfo(_ref) {
3723
3692
  }, /*#__PURE__*/React__default["default"].createElement(reactI18next.Trans, {
3724
3693
  i18nKey: "neetoCommons.customDomain.messageBlock.dnsStatus"
3725
3694
  }), /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
3726
- style: "link",
3727
3695
  href: "mailto:support@neeto.com",
3728
- label: "support@neeto.com"
3696
+ label: "support@neeto.com",
3697
+ style: "link"
3729
3698
  })), /*#__PURE__*/React__default["default"].createElement(neetoui.Callout, {
3730
- style: "info",
3731
- icon: neetoIcons.Info
3699
+ icon: neetoIcons.Info,
3700
+ style: "info"
3732
3701
  }, t("neetoCommons.customDomain.messageBlock.cnameAddedTime", {
3733
3702
  time: timeFormat.fromNow(time)
3734
3703
  })));
@@ -3884,16 +3853,16 @@ var Manage = function Manage(_ref) {
3884
3853
  }, /*#__PURE__*/React__default["default"].createElement(formik.Formik, {
3885
3854
  enableReinitialize: true,
3886
3855
  initialValues: customDomain || INITIAL_VALUES$1,
3887
- validationSchema: CUSTOM_DOMAIN_VALIDATION_SCHEMA,
3888
3856
  validateOnBlur: isCreating,
3889
3857
  validateOnChange: isCreating,
3858
+ validationSchema: CUSTOM_DOMAIN_VALIDATION_SCHEMA,
3890
3859
  onSubmit: handleSubmit
3891
3860
  }, function (_ref2) {
3892
3861
  var dirty = _ref2.dirty;
3893
3862
  return /*#__PURE__*/React__default["default"].createElement(formik.Form, null, /*#__PURE__*/React__default["default"].createElement(neetoui.Pane.Header, null, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
3863
+ "data-cy": "add-custom-domain-pane-heading",
3894
3864
  style: "h2",
3895
- weight: "semibold",
3896
- "data-cy": "add-custom-domain-pane-heading"
3865
+ weight: "semibold"
3897
3866
  }, customDomain ? t("neetoCommons.common.actions.editTitle", {
3898
3867
  entity: t("neetoCommons.customDomain.customDomain", {
3899
3868
  count: ENTITY_COUNT.singular
@@ -3905,10 +3874,10 @@ var Manage = function Manage(_ref) {
3905
3874
  }))), /*#__PURE__*/React__default["default"].createElement(neetoui.Pane.Body, null, /*#__PURE__*/React__default["default"].createElement("div", {
3906
3875
  className: "space-y-6 w-full"
3907
3876
  }, !!customDomain && /*#__PURE__*/React__default["default"].createElement(TagBlock, {
3908
- status: customDomain.status,
3909
- isCnameRecordsAdded: customDomain.addedCnameAt,
3877
+ stacked: true,
3910
3878
  handleValidateCname: handleValidateCname,
3911
- stacked: true
3879
+ isCnameRecordsAdded: customDomain.addedCnameAt,
3880
+ status: customDomain.status
3912
3881
  }), /*#__PURE__*/React__default["default"].createElement("div", {
3913
3882
  className: "space-y-2"
3914
3883
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Label, {
@@ -3918,31 +3887,31 @@ var Manage = function Manage(_ref) {
3918
3887
  }) : t("neetoCommons.customDomain.label")), /*#__PURE__*/React__default["default"].createElement("div", {
3919
3888
  className: "flex items-start gap-2"
3920
3889
  }, /*#__PURE__*/React__default["default"].createElement(formik$1.Input, {
3921
- disabled: !!customDomain,
3922
3890
  autoFocus: true,
3891
+ "data-cy": "custom-domain-input-field",
3892
+ disabled: !!customDomain,
3923
3893
  name: "hostname",
3924
- placeholder: t("neetoCommons.customDomain.placeholder"),
3925
- "data-cy": "custom-domain-input-field"
3894
+ placeholder: t("neetoCommons.customDomain.placeholder")
3926
3895
  }), !customDomain && /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
3896
+ "data-cy": "submit-custom-domain-button",
3927
3897
  disabled: !dirty || isCreating,
3898
+ icon: neetoIcons.Check,
3928
3899
  loading: isCreating,
3929
3900
  style: "primary",
3930
- type: "submit",
3931
- icon: neetoIcons.Check,
3932
- "data-cy": "submit-custom-domain-button"
3901
+ type: "submit"
3933
3902
  }))), !!customDomain && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(Record, {
3934
3903
  customDomain: customDomain
3935
3904
  }), customDomain.status === "pending_txt_validation" && /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
3936
- label: t("neetoCommons.customDomain.validation.buttonLabel.txt"),
3937
- onClick: handleValidateTxt,
3905
+ "data-cy": "validate-txt-record-button",
3938
3906
  disabled: isValidating,
3939
3907
  loading: isValidating,
3940
- "data-cy": "validate-txt-record-button"
3908
+ label: t("neetoCommons.customDomain.validation.buttonLabel.txt"),
3909
+ onClick: handleValidateTxt
3941
3910
  }), customDomain.status === "pending_cname_validation" && !customDomain.addedCnameAt && /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
3942
3911
  "data-cy": "validate-cname-record-button",
3912
+ loading: isCnameValidating || isUpdating,
3943
3913
  label: t("neetoCommons.customDomain.validation.buttonLabel.cnameAdded"),
3944
- onClick: handleUpdateCname,
3945
- loading: isCnameValidating || isUpdating
3914
+ onClick: handleUpdateCname
3946
3915
  }), customDomain.status === "pending_cname_validation" && customDomain.addedCnameAt && /*#__PURE__*/React__default["default"].createElement(CustomDomainInfo, {
3947
3916
  time: customDomain.addedCnameAt
3948
3917
  })))));
@@ -3992,8 +3961,16 @@ var CustomDomain = function CustomDomain(_ref) {
3992
3961
  setIsAlertOpen(true);
3993
3962
  };
3994
3963
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(layouts.Container, null, /*#__PURE__*/React__default["default"].createElement(layouts.Header, _extends$3({
3995
- title: t("neetoCommons.customDomain.customDomain", {
3996
- count: ENTITY_COUNT.plural
3964
+ actionBlock: /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
3965
+ "data-cy": "add-new-custom-domain-button",
3966
+ label: t("neetoCommons.common.actions.addNew", {
3967
+ entity: t("neetoCommons.customDomain.customDomain", {
3968
+ count: ENTITY_COUNT.singular
3969
+ }).toLocaleLowerCase()
3970
+ }),
3971
+ onClick: function onClick() {
3972
+ return enableManagePane(null);
3973
+ }
3997
3974
  }),
3998
3975
  searchProps: {
3999
3976
  value: searchTerm,
@@ -4007,16 +3984,8 @@ var CustomDomain = function CustomDomain(_ref) {
4007
3984
  }),
4008
3985
  "data-cy": "custom-domain-search-field"
4009
3986
  },
4010
- actionBlock: /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
4011
- "data-cy": "add-new-custom-domain-button",
4012
- label: t("neetoCommons.common.actions.addNew", {
4013
- entity: t("neetoCommons.customDomain.customDomain", {
4014
- count: ENTITY_COUNT.singular
4015
- }).toLocaleLowerCase()
4016
- }),
4017
- onClick: function onClick() {
4018
- return enableManagePane(null);
4019
- }
3987
+ title: t("neetoCommons.customDomain.customDomain", {
3988
+ count: ENTITY_COUNT.plural
4020
3989
  })
4021
3990
  }, headerProps)), isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
4022
3991
  className: "w-full h-screen"
@@ -4024,24 +3993,19 @@ var CustomDomain = function CustomDomain(_ref) {
4024
3993
  className: "w-full flex-grow"
4025
3994
  }, /*#__PURE__*/React__default["default"].createElement(layouts.SubHeader, {
4026
3995
  leftActionBlock: /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
4027
- component: "h4",
4028
- className: "neeto-ui-gray-800 font-semibold"
3996
+ className: "neeto-ui-gray-800 font-semibold",
3997
+ component: "h4"
4029
3998
  }, t("neetoCommons.customDomain.customDomainWithCount", {
4030
3999
  count: data === null || data === void 0 ? void 0 : (_data$customDomains = data.customDomains) === null || _data$customDomains === void 0 ? void 0 : _data$customDomains.length
4031
4000
  }))
4032
4001
  }), /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(neetoui.Table, {
4033
- rowData: data === null || data === void 0 ? void 0 : data.customDomains,
4034
- columnData: renderColumnData(enableManagePane, enableDeleteAlert),
4035
4002
  allowRowClick: false,
4036
- rowSelection: false
4003
+ rowData: data === null || data === void 0 ? void 0 : data.customDomains,
4004
+ rowSelection: false,
4005
+ columnData: renderColumnData(enableManagePane, enableDeleteAlert)
4037
4006
  }))) : /*#__PURE__*/React__default["default"].createElement("div", {
4038
4007
  className: "flex h-full w-full flex-grow items-center justify-center"
4039
4008
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.NoData, {
4040
- title: t("neetoCommons.common.notFound.title", {
4041
- entity: t("neetoCommons.customDomain.customDomain", {
4042
- count: ENTITY_COUNT.plural
4043
- }).toLocaleLowerCase()
4044
- }),
4045
4009
  primaryButtonProps: {
4046
4010
  label: t("neetoCommons.common.actions.addNew", {
4047
4011
  entity: t("neetoCommons.customDomain.customDomain", {
@@ -4051,36 +4015,41 @@ var CustomDomain = function CustomDomain(_ref) {
4051
4015
  onClick: function onClick() {
4052
4016
  return enableManagePane(null);
4053
4017
  }
4054
- }
4018
+ },
4019
+ title: t("neetoCommons.common.notFound.title", {
4020
+ entity: t("neetoCommons.customDomain.customDomain", {
4021
+ count: ENTITY_COUNT.plural
4022
+ }).toLocaleLowerCase()
4023
+ })
4055
4024
  })))), /*#__PURE__*/React__default["default"].createElement(Manage, {
4056
4025
  customDomain: customDomain,
4057
4026
  isOpen: isPaneOpen,
4027
+ setCustomDomain: setCustomDomain,
4058
4028
  onClose: function onClose() {
4059
4029
  return setIsPaneOpen(false);
4060
- },
4061
- setCustomDomain: setCustomDomain
4030
+ }
4062
4031
  }), /*#__PURE__*/React__default["default"].createElement(neetoui.Alert, {
4032
+ cancelButtonLabel: t("neetoCommons.common.deleteAlert.no"),
4063
4033
  isOpen: isAlertOpen,
4034
+ isSubmitting: isDeleting,
4064
4035
  submitButtonLabel: t("neetoCommons.common.deleteAlert.yes"),
4065
- cancelButtonLabel: t("neetoCommons.common.deleteAlert.no"),
4066
- title: t("neetoCommons.common.deleteAlert.title", {
4067
- entity: t("neetoCommons.customDomain.customDomain", {
4068
- count: ENTITY_COUNT.singular
4069
- }).toLocaleLowerCase()
4070
- }),
4071
4036
  message: /*#__PURE__*/React__default["default"].createElement(reactI18next.Trans, {
4072
4037
  i18nKey: "neetoCommons.customDomain.alertMessage",
4073
4038
  values: {
4074
4039
  hostname: customDomain === null || customDomain === void 0 ? void 0 : customDomain.hostname
4075
4040
  }
4076
4041
  }),
4077
- onSubmit: function onSubmit() {
4078
- return deleteCustomDomain(customDomain === null || customDomain === void 0 ? void 0 : customDomain.id);
4079
- },
4042
+ title: t("neetoCommons.common.deleteAlert.title", {
4043
+ entity: t("neetoCommons.customDomain.customDomain", {
4044
+ count: ENTITY_COUNT.singular
4045
+ }).toLocaleLowerCase()
4046
+ }),
4080
4047
  onClose: function onClose() {
4081
4048
  return setIsAlertOpen(false);
4082
4049
  },
4083
- isSubmitting: isDeleting
4050
+ onSubmit: function onSubmit() {
4051
+ return deleteCustomDomain(customDomain === null || customDomain === void 0 ? void 0 : customDomain.id);
4052
+ }
4084
4053
  }));
4085
4054
  };
4086
4055
 
@@ -4096,8 +4065,8 @@ var DateFormat = ramda.fromPairs(ramda.keys(timeFormat).map(function (key) {
4096
4065
  style: "body2"
4097
4066
  }, typographyProps), timeFormat[key](date));
4098
4067
  return key === "extended" ? dateDisplay : /*#__PURE__*/React__default["default"].createElement(neetoui.Tooltip, _extends$3({
4099
- position: "top",
4100
- content: timeFormat.extended(date)
4068
+ content: timeFormat.extended(date),
4069
+ position: "top"
4101
4070
  }, tooltipProps), dateDisplay);
4102
4071
  }];
4103
4072
  }));
@@ -4154,32 +4123,32 @@ var FallbackComponent = function FallbackComponent() {
4154
4123
  }, /*#__PURE__*/React__default["default"].createElement("div", {
4155
4124
  className: "m-auto mb-8 flex items-center justify-center"
4156
4125
  }, /*#__PURE__*/React__default["default"].createElement(SvgFallbackComponent, null)), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
4126
+ className: "mb-4",
4157
4127
  component: "h2",
4158
4128
  style: "h2",
4159
- weight: "semibold",
4160
- className: "mb-4"
4129
+ weight: "semibold"
4161
4130
  }, t("neetoCommons.fallbackComponent.somethingWentWrong")), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
4131
+ className: "mb-8 text-gray-600",
4162
4132
  component: "p",
4163
4133
  style: "body1",
4164
- weight: "normal",
4165
- className: "mb-8 text-gray-600"
4134
+ weight: "normal"
4166
4135
  }, /*#__PURE__*/React__default["default"].createElement(reactI18next.Trans, {
4167
4136
  i18nKey: "neetoCommons.fallbackComponent.description",
4168
4137
  components: {
4169
4138
  reloading: /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
4170
- label: t("neetoCommons.fallbackComponent.reloadingButtonLabel"),
4171
4139
  style: "link",
4140
+ label: t("neetoCommons.fallbackComponent.reloadingButtonLabel"),
4172
4141
  onClick: function onClick() {
4173
4142
  return window.location.reload();
4174
4143
  }
4175
4144
  }),
4176
4145
  contactus: /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
4177
- label: t("neetoCommons.fallbackComponent.contactusButtonLabel"),
4178
4146
  style: "link",
4147
+ label: t("neetoCommons.fallbackComponent.contactusButtonLabel"),
4179
4148
  onClick: function onClick() {
4180
- var _window, _window$NeetoChat, _window2, _window2$NeetoChat;
4181
- (_window = window) === null || _window === void 0 ? void 0 : (_window$NeetoChat = _window.NeetoChat) === null || _window$NeetoChat === void 0 ? void 0 : _window$NeetoChat.contextualHelp.openWidget();
4182
- (_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$NeetoChat = _window2.NeetoChat) === null || _window2$NeetoChat === void 0 ? void 0 : _window2$NeetoChat.contextualHelp.maximizeWidget();
4149
+ var _window$NeetoChat, _window$NeetoChat$con, _window$NeetoChat2, _window$NeetoChat2$co;
4150
+ (_window$NeetoChat = window.NeetoChat) === null || _window$NeetoChat === void 0 ? void 0 : (_window$NeetoChat$con = _window$NeetoChat.contextualHelp) === null || _window$NeetoChat$con === void 0 ? void 0 : _window$NeetoChat$con.maximizeWidget();
4151
+ (_window$NeetoChat2 = window.NeetoChat) === null || _window$NeetoChat2 === void 0 ? void 0 : (_window$NeetoChat2$co = _window$NeetoChat2.contextualHelp) === null || _window$NeetoChat2$co === void 0 ? void 0 : _window$NeetoChat2$co.openWidget();
4183
4152
  }
4184
4153
  })
4185
4154
  }
@@ -4192,11 +4161,11 @@ var HoneybadgerErrorBoundary = function HoneybadgerErrorBoundary(_ref) {
4192
4161
  ErrorComponent = _ref$ErrorComponent === void 0 ? FallbackComponent : _ref$ErrorComponent,
4193
4162
  _ref$filterErrors = _ref.filterErrors,
4194
4163
  filterErrors = _ref$filterErrors === void 0 ? undefined : _ref$filterErrors;
4195
- react$1.Honeybadger.beforeNotify(function (notice) {
4164
+ react.Honeybadger.beforeNotify(function (notice) {
4196
4165
  if (ignorableErrorsRegex.test(notice.message)) return false;
4197
4166
  return filterErrors === null || filterErrors === void 0 ? void 0 : filterErrors(notice);
4198
4167
  });
4199
- var honeybadger = react$1.Honeybadger.configure({
4168
+ var honeybadger = react.Honeybadger.configure({
4200
4169
  apiKey: globalProps.honeybadgerApiKey,
4201
4170
  environment: globalProps.nodeEnv,
4202
4171
  revision: process.env.HEROKU_SLUG_COMMIT,
@@ -4209,9 +4178,9 @@ var HoneybadgerErrorBoundary = function HoneybadgerErrorBoundary(_ref) {
4209
4178
  return (
4210
4179
  /*#__PURE__*/
4211
4180
  // @ts-ignore
4212
- React__default["default"].createElement(react$1.HoneybadgerErrorBoundary, {
4213
- honeybadger: honeybadger,
4214
- ErrorComponent: ErrorComponent
4181
+ React__default["default"].createElement(react.HoneybadgerErrorBoundary, {
4182
+ ErrorComponent: ErrorComponent,
4183
+ honeybadger: honeybadger
4215
4184
  }, children)
4216
4185
  );
4217
4186
  };
@@ -7495,11 +7464,11 @@ var Row = function Row(_ref) {
7495
7464
  return /*#__PURE__*/React__default["default"].createElement("div", {
7496
7465
  className: "flex w-full flex-row justify-between bg-white px-1 py-2"
7497
7466
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
7498
- style: "body2",
7499
- className: "w-4/12 flex-grow px-3 py-2 text-left"
7467
+ className: "w-4/12 flex-grow px-3 py-2 text-left",
7468
+ style: "body2"
7500
7469
  }, data.ipStart), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
7501
- style: "body2",
7502
- className: "w-4/12 flex-grow px-3 py-2 text-left"
7470
+ className: "w-4/12 flex-grow px-3 py-2 text-left",
7471
+ style: "body2"
7503
7472
  }, data.ipEnd), /*#__PURE__*/React__default["default"].createElement("div", {
7504
7473
  className: "w-4/12 flex-grow px-3 py-2 text-center"
7505
7474
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
@@ -7513,9 +7482,9 @@ var Row = function Row(_ref) {
7513
7482
  return setIsDeleteIpRangeAlertOpen(true);
7514
7483
  }
7515
7484
  }), /*#__PURE__*/React__default["default"].createElement(neetoui.Alert, {
7485
+ cancelButtonLabel: t("neetoCommons.common.deleteAlert.no"),
7516
7486
  isOpen: isDeleteIpRangeAlertOpen,
7517
7487
  submitButtonLabel: t("neetoCommons.common.deleteAlert.yes"),
7518
- cancelButtonLabel: t("neetoCommons.common.deleteAlert.no"),
7519
7488
  message: t("neetoCommons.ipRestriction.allowedIpRangeConfirmation", data),
7520
7489
  title: t("neetoCommons.common.deleteAlert.title", {
7521
7490
  entity: t("neetoCommons.ipRestriction.allowedIpRangeTitle")
@@ -57231,7 +57200,7 @@ var languageLoaders = {
57231
57200
  return Promise.resolve().then(function () { return cssExtras; });
57232
57201
  }),
57233
57202
  css: createLanguageAsyncLoader("css", function () {
57234
- return Promise.resolve().then(function () { return css$3; });
57203
+ return Promise.resolve().then(function () { return css$4; });
57235
57204
  }),
57236
57205
  csv: createLanguageAsyncLoader("csv", function () {
57237
57206
  return Promise.resolve().then(function () { return csv; });
@@ -65643,10 +65612,10 @@ var markup$2 = /*#__PURE__*/_mergeNamespaces({
65643
65612
  'default': markup_1
65644
65613
  }, [markup_1]);
65645
65614
 
65646
- var css_1 = css$2;
65647
- css$2.displayName = 'css';
65648
- css$2.aliases = [];
65649
- function css$2(Prism) {
65615
+ var css_1 = css$3;
65616
+ css$3.displayName = 'css';
65617
+ css$3.aliases = [];
65618
+ function css$3(Prism) {
65650
65619
  (function (Prism) {
65651
65620
  var string =
65652
65621
  /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
@@ -65721,7 +65690,7 @@ function css$2(Prism) {
65721
65690
  })(Prism);
65722
65691
  }
65723
65692
 
65724
- var css$3 = /*#__PURE__*/_mergeNamespaces({
65693
+ var css$4 = /*#__PURE__*/_mergeNamespaces({
65725
65694
  __proto__: null,
65726
65695
  'default': css_1
65727
65696
  }, [css_1]);
@@ -65963,7 +65932,7 @@ var h = hastscript.exports;
65963
65932
  var decode = parseEntities_1;
65964
65933
  var Prism = prismCore.exports;
65965
65934
  var markup = markup_1;
65966
- var css$1 = css_1;
65935
+ var css$2 = css_1;
65967
65936
  var clike = clike_1;
65968
65937
  var js = javascript_1;
65969
65938
 
@@ -65991,7 +65960,7 @@ refract.listLanguages = listLanguages;
65991
65960
 
65992
65961
  // Register bundled grammars.
65993
65962
  register(markup);
65994
- register(css$1);
65963
+ register(css$2);
65995
65964
  register(clike);
65996
65965
  register(js);
65997
65966
 
@@ -90232,9 +90201,9 @@ var CodeBlock = function CodeBlock(_ref) {
90232
90201
  }, /*#__PURE__*/React__default["default"].createElement("div", {
90233
90202
  className: "neeto-ui-bg-primary-100 flex w-full items-center justify-between gap-2 p-3"
90234
90203
  }, title && /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
90235
- style: "h4",
90236
90204
  className: "m-0",
90237
- "data-cy": "code-block-title-text"
90205
+ "data-cy": "code-block-title-text",
90206
+ style: "h4"
90238
90207
  }, title), /*#__PURE__*/React__default["default"].createElement("div", {
90239
90208
  className: "flex items-center justify-end gap-2"
90240
90209
  }, sendViaEmail ? /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
@@ -90242,17 +90211,17 @@ var CodeBlock = function CodeBlock(_ref) {
90242
90211
  style: "secondary",
90243
90212
  onClick: sendViaEmail
90244
90213
  }) : null, showCopyButton && /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
90245
- style: "primary",
90246
90214
  icon: isCopied ? neetoIcons.Check : neetoIcons.Copy,
90215
+ style: "primary",
90247
90216
  label: isCopied ? t("neetoCommons.widget.installation.snippet.copied") : t("neetoCommons.widget.installation.snippet.copy"),
90248
90217
  onClick: function onClick() {
90249
90218
  return copyToClipboard(codeString);
90250
90219
  }
90251
90220
  }))), /*#__PURE__*/React__default["default"].createElement(SyntaxHighlighter, {
90252
- language: "javascript",
90253
- style: a11yDark,
90221
+ className: "neeto-ui-bg-gray-800 m-0",
90254
90222
  customStyle: codeStyles,
90255
- className: "neeto-ui-bg-gray-800 m-0"
90223
+ language: "javascript",
90224
+ style: a11yDark
90256
90225
  }, codeString));
90257
90226
  };
90258
90227
 
@@ -90423,24 +90392,24 @@ var CodeSnippet = function CodeSnippet(_ref) {
90423
90392
  }, t("neetoCommons.widget.email.title"))), /*#__PURE__*/React__default["default"].createElement(neetoui.Pane.Body, null, /*#__PURE__*/React__default["default"].createElement("div", {
90424
90393
  className: "space-y-4 w-full"
90425
90394
  }, /*#__PURE__*/React__default["default"].createElement(formik$1.MultiEmailInput, {
90395
+ required: true,
90426
90396
  label: "".concat(t("neetoCommons.widget.email.fields.emails.label"), "*"),
90427
90397
  name: "emails",
90428
- placeholder: t("neetoCommons.widget.email.fields.emails.placeholder"),
90429
- required: true
90398
+ placeholder: t("neetoCommons.widget.email.fields.emails.placeholder")
90430
90399
  }), /*#__PURE__*/React__default["default"].createElement(formik$1.Input, {
90400
+ required: true,
90431
90401
  label: t("neetoCommons.widget.email.fields.subject.label"),
90432
90402
  name: "subject",
90433
- type: "text",
90434
- required: true
90403
+ type: "text"
90435
90404
  }), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
90436
90405
  style: "body2"
90437
90406
  }, body), /*#__PURE__*/React__default["default"].createElement(CodeBlock, {
90438
90407
  className: "neeto-ui-bg-primary-100 neeto-ui-rounded-xl overflow-hidden",
90439
90408
  codeString: codeString,
90440
- showCopyButton: false,
90441
90409
  codeStyles: {
90442
90410
  maxHeight: 300
90443
- }
90411
+ },
90412
+ showCopyButton: false
90444
90413
  }))), /*#__PURE__*/React__default["default"].createElement(neetoui.Pane.Footer, {
90445
90414
  className: "gap-x-2"
90446
90415
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
@@ -90479,8 +90448,8 @@ var SelectionTabs = function SelectionTabs(_ref) {
90479
90448
  className: "mb-1",
90480
90449
  key: widget
90481
90450
  }, primarySelectedWidget !== widget ? /*#__PURE__*/React__default["default"].createElement(neetoui.Switch, {
90482
- label: "neeto".concat(capitalize(widget)),
90483
90451
  checked: selectedWidgets.includes(widget),
90452
+ label: "neeto".concat(capitalize(widget)),
90484
90453
  onChange: function onChange() {
90485
90454
  return updateSelectedWidgets(widget);
90486
90455
  }
@@ -90494,9 +90463,9 @@ var SelectionTabs = function SelectionTabs(_ref) {
90494
90463
  }, /*#__PURE__*/React__default["default"].createElement("div", {
90495
90464
  className: "font-semibold text-base"
90496
90465
  }, "neeto", formattedPrimaryWidget), /*#__PURE__*/React__default["default"].createElement("a", {
90497
- href: primarySelectedWidget ? WIDGET_KB_HELP_URL[primarySelectedWidget] : WIDGET_KB_BASE_URL,
90466
+ rel: "noreferrer",
90498
90467
  target: "_blank",
90499
- rel: "noreferrer"
90468
+ href: primarySelectedWidget ? WIDGET_KB_HELP_URL[primarySelectedWidget] : WIDGET_KB_BASE_URL
90500
90469
  }, /*#__PURE__*/React__default["default"].createElement(neetoIcons.Help, {
90501
90470
  size: 16
90502
90471
  }))), /*#__PURE__*/React__default["default"].createElement("div", {
@@ -90556,11 +90525,6 @@ var EmbedCode = function EmbedCode(_ref) {
90556
90525
  ref: bodyRef
90557
90526
  }, /*#__PURE__*/React__default["default"].createElement(reactI18next.Trans, {
90558
90527
  i18nKey: "neetoCommons.widget.email.body.values.embedCode",
90559
- values: {
90560
- selectedWidgets: getSelectedWidgetsCombinedText(selectedWidgets),
90561
- neetoKbUrl: NEETO_CHAT_CONFIGURE_URL,
90562
- helpEmail: INSTALLATION_HELP_EMAIL
90563
- },
90564
90528
  components: {
90565
90529
  p: /*#__PURE__*/React__default["default"].createElement("p", {
90566
90530
  style: {
@@ -90568,17 +90532,22 @@ var EmbedCode = function EmbedCode(_ref) {
90568
90532
  }
90569
90533
  }),
90570
90534
  configureLink: /*#__PURE__*/React__default["default"].createElement("a", {
90571
- href: NEETO_CHAT_CONFIGURE_URL,
90572
- target: "_blank",
90573
90535
  className: "neeto-ui-text-primary-800",
90574
- rel: "noreferrer"
90536
+ href: NEETO_CHAT_CONFIGURE_URL,
90537
+ rel: "noreferrer",
90538
+ target: "_blank"
90575
90539
  }),
90576
90540
  mail: /*#__PURE__*/React__default["default"].createElement("a", {
90577
- href: "mailto:".concat(INSTALLATION_HELP_EMAIL),
90578
- target: "_blank",
90579
90541
  className: "neeto-ui-text-primary-800",
90580
- rel: "noreferrer"
90542
+ href: "mailto:".concat(INSTALLATION_HELP_EMAIL),
90543
+ rel: "noreferrer",
90544
+ target: "_blank"
90581
90545
  })
90546
+ },
90547
+ values: {
90548
+ selectedWidgets: getSelectedWidgetsCombinedText(selectedWidgets),
90549
+ neetoKbUrl: NEETO_CHAT_CONFIGURE_URL,
90550
+ helpEmail: INSTALLATION_HELP_EMAIL
90582
90551
  }
90583
90552
  }))
90584
90553
  };
@@ -90588,9 +90557,6 @@ var EmbedCode = function EmbedCode(_ref) {
90588
90557
  subject: t("neetoCommons.widget.email.fields.subject.values.userIdentity"),
90589
90558
  body: /*#__PURE__*/React__default["default"].createElement(reactI18next.Trans, {
90590
90559
  i18nKey: "neetoCommons.widget.email.body.values.userIdentity",
90591
- values: {
90592
- userIdentityKbUrl: enabledWidgets.chat ? NEETO_CHAT_USER_IDENTITY_URL : NEETO_REPLAY_CONFIGURE_URL
90593
- },
90594
90560
  components: {
90595
90561
  p: /*#__PURE__*/React__default["default"].createElement("p", {
90596
90562
  style: {
@@ -90598,11 +90564,14 @@ var EmbedCode = function EmbedCode(_ref) {
90598
90564
  }
90599
90565
  }),
90600
90566
  configureLink: /*#__PURE__*/React__default["default"].createElement("a", {
90601
- href: enabledWidgets.chat ? NEETO_CHAT_USER_IDENTITY_URL : NEETO_REPLAY_CONFIGURE_URL,
90602
- target: "_blank",
90603
90567
  className: "neeto-ui-text-primary-800",
90604
- rel: "noreferrer"
90568
+ rel: "noreferrer",
90569
+ target: "_blank",
90570
+ href: enabledWidgets.chat ? NEETO_CHAT_USER_IDENTITY_URL : NEETO_REPLAY_CONFIGURE_URL
90605
90571
  })
90572
+ },
90573
+ values: {
90574
+ userIdentityKbUrl: enabledWidgets.chat ? NEETO_CHAT_USER_IDENTITY_URL : NEETO_REPLAY_CONFIGURE_URL
90606
90575
  }
90607
90576
  })
90608
90577
  };
@@ -90612,9 +90581,6 @@ var EmbedCode = function EmbedCode(_ref) {
90612
90581
  subject: t("neetoCommons.widget.email.fields.subject.values.sessionContext"),
90613
90582
  body: /*#__PURE__*/React__default["default"].createElement(reactI18next.Trans, {
90614
90583
  i18nKey: "neetoCommons.widget.email.body.values.sessionContext",
90615
- values: {
90616
- sessionContextKbUrl: NEETO_REPLAY_CONFIGURE_URL
90617
- },
90618
90584
  components: {
90619
90585
  p: /*#__PURE__*/React__default["default"].createElement("p", {
90620
90586
  style: {
@@ -90622,11 +90588,14 @@ var EmbedCode = function EmbedCode(_ref) {
90622
90588
  }
90623
90589
  }),
90624
90590
  configureLink: /*#__PURE__*/React__default["default"].createElement("a", {
90625
- href: NEETO_REPLAY_CONFIGURE_URL,
90626
- target: "_blank",
90627
90591
  className: "neeto-ui-text-primary-800",
90628
- rel: "noreferrer"
90592
+ href: NEETO_REPLAY_CONFIGURE_URL,
90593
+ rel: "noreferrer",
90594
+ target: "_blank"
90629
90595
  })
90596
+ },
90597
+ values: {
90598
+ sessionContextKbUrl: NEETO_REPLAY_CONFIGURE_URL
90630
90599
  }
90631
90600
  })
90632
90601
  };
@@ -90660,19 +90629,16 @@ var EmbedCode = function EmbedCode(_ref) {
90660
90629
  className: "mx-auto mb-4 w-full",
90661
90630
  "data-testid": "embed-code-block"
90662
90631
  }, /*#__PURE__*/React__default["default"].createElement(CodeBlock, {
90663
- codeString: getEmbedCodeString(),
90664
90632
  className: "neeto-ui-bg-primary-100 neeto-ui-rounded-xl overflow-hidden",
90665
- title: /*#__PURE__*/React__default["default"].createElement("div", null, "Embed code"),
90633
+ codeString: getEmbedCodeString(),
90666
90634
  sendViaEmail: function sendViaEmail() {
90667
90635
  return handleSendViaEmail(EMAIL_TYPES.embedCode);
90668
- }
90636
+ },
90637
+ title: /*#__PURE__*/React__default["default"].createElement("div", null, "Embed code")
90669
90638
  })), /*#__PURE__*/React__default["default"].createElement("div", {
90670
90639
  className: "w-full"
90671
90640
  }, /*#__PURE__*/React__default["default"].createElement(reactI18next.Trans, {
90672
90641
  i18nKey: "neetoCommons.widget.installation.instructions.placement",
90673
- values: {
90674
- selectedWidgets: isNotEmpty(selectedWidgets) ? getSelectedWidgetsCombinedText(selectedWidgets, true) : "none of the widgets"
90675
- },
90676
90642
  components: {
90677
90643
  fontBold: /*#__PURE__*/React__default["default"].createElement("span", {
90678
90644
  className: "font-semibold"
@@ -90680,24 +90646,27 @@ var EmbedCode = function EmbedCode(_ref) {
90680
90646
  fontNormal: /*#__PURE__*/React__default["default"].createElement("span", {
90681
90647
  className: "font-normal"
90682
90648
  })
90649
+ },
90650
+ values: {
90651
+ selectedWidgets: isNotEmpty(selectedWidgets) ? getSelectedWidgetsCombinedText(selectedWidgets, true) : "none of the widgets"
90683
90652
  }
90684
90653
  }, "Place the embed code in your HTML file. This will embed the selected widgets in your website."))), enabledWidgets.chat || enabledWidgets.replay ? /*#__PURE__*/React__default["default"].createElement("div", {
90685
90654
  className: "mx-auto w-full max-w-2xl flex-grow flex-col items-center justify-start mb-6"
90686
90655
  }, /*#__PURE__*/React__default["default"].createElement("div", {
90687
90656
  className: "mx-auto mb-4 w-full"
90688
90657
  }, /*#__PURE__*/React__default["default"].createElement(CodeBlock, {
90689
- codeString: getSampleUserIdentity(enabledWidgets),
90690
90658
  className: "neeto-ui-bg-primary-100 neeto-ui-rounded-xl overflow-hidden",
90659
+ codeString: getSampleUserIdentity(enabledWidgets),
90691
90660
  sendViaEmail: function sendViaEmail() {
90692
90661
  return handleSendViaEmail(EMAIL_TYPES.userIdentity);
90693
90662
  },
90694
90663
  title: /*#__PURE__*/React__default["default"].createElement("div", {
90695
90664
  className: "flex items-center justify-start"
90696
90665
  }, /*#__PURE__*/React__default["default"].createElement("div", null, "User identity (Optional)"), /*#__PURE__*/React__default["default"].createElement("a", {
90697
- href: enabledWidgets.chat ? NEETO_CHAT_USER_IDENTITY_URL : NEETO_REPLAY_CONFIGURE_URL,
90698
- target: "_blank",
90666
+ className: "ml-1",
90699
90667
  rel: "noreferrer",
90700
- className: "ml-1"
90668
+ target: "_blank",
90669
+ href: enabledWidgets.chat ? NEETO_CHAT_USER_IDENTITY_URL : NEETO_REPLAY_CONFIGURE_URL
90701
90670
  }, /*#__PURE__*/React__default["default"].createElement(neetoIcons.Help, {
90702
90671
  size: 16
90703
90672
  })))
@@ -90708,18 +90677,18 @@ var EmbedCode = function EmbedCode(_ref) {
90708
90677
  }, /*#__PURE__*/React__default["default"].createElement("div", {
90709
90678
  className: "mx-auto mb-4 w-full"
90710
90679
  }, /*#__PURE__*/React__default["default"].createElement(CodeBlock, {
90711
- codeString: SAMPLE_CONTEXT_CODE_STRING,
90712
90680
  className: "neeto-ui-bg-primary-100 neeto-ui-rounded-xl overflow-hidden",
90681
+ codeString: SAMPLE_CONTEXT_CODE_STRING,
90713
90682
  sendViaEmail: function sendViaEmail() {
90714
90683
  return handleSendViaEmail(EMAIL_TYPES.sessionContext);
90715
90684
  },
90716
90685
  title: /*#__PURE__*/React__default["default"].createElement("div", {
90717
90686
  className: "flex items-center justify-start"
90718
90687
  }, /*#__PURE__*/React__default["default"].createElement("div", null, "Session context (Optional)"), /*#__PURE__*/React__default["default"].createElement("a", {
90688
+ className: "ml-1",
90719
90689
  href: NEETO_REPLAY_CONFIGURE_URL,
90720
- target: "_blank",
90721
90690
  rel: "noreferrer",
90722
- className: "ml-1"
90691
+ target: "_blank"
90723
90692
  }, /*#__PURE__*/React__default["default"].createElement(neetoIcons.Help, {
90724
90693
  size: 16
90725
90694
  })))
@@ -90753,6 +90722,125 @@ var PrivateRoute = function PrivateRoute(_ref) {
90753
90722
  });
90754
90723
  };
90755
90724
 
90725
+ var PublishBlock = function PublishBlock(_ref) {
90726
+ var entityId = _ref.entityId,
90727
+ publishMutation = _ref.publishMutation,
90728
+ resetDraftMutation = _ref.resetDraftMutation,
90729
+ renderDraftButtons = _ref.renderDraftButtons,
90730
+ renderPublishButtons = _ref.renderPublishButtons,
90731
+ _ref$resetAlertProps = _ref.resetAlertProps,
90732
+ resetAlertProps = _ref$resetAlertProps === void 0 ? {} : _ref$resetAlertProps;
90733
+ var _useTranslation = reactI18next.useTranslation(),
90734
+ t = _useTranslation.t;
90735
+ var _useState = React.useState(false),
90736
+ _useState2 = _slicedToArray(_useState, 2),
90737
+ isResetAlertOpen = _useState2[0],
90738
+ setIsResetAlertOpen = _useState2[1];
90739
+ var _publishMutation = publishMutation(),
90740
+ publishForm = _publishMutation.mutate,
90741
+ isPublishing = _publishMutation.isLoading;
90742
+ var _resetDraftMutation = resetDraftMutation(),
90743
+ resetForm = _resetDraftMutation.mutate,
90744
+ isResetting = _resetDraftMutation.isLoading;
90745
+ var handleReset = function handleReset() {
90746
+ return resetForm(entityId, {
90747
+ onSuccess: function onSuccess() {
90748
+ return setIsResetAlertOpen(false);
90749
+ }
90750
+ });
90751
+ };
90752
+ var ViewDraftButton = function ViewDraftButton(props) {
90753
+ return /*#__PURE__*/React__default["default"].createElement(neetoui.Button, _extends$3({
90754
+ "data-cy": "view-draft-button",
90755
+ "data-testid": "view-draft-button",
90756
+ icon: neetoIcons.ExternalLink,
90757
+ style: "secondary",
90758
+ target: "_blank",
90759
+ tooltipProps: {
90760
+ content: t("neetoCommons.publishBlock.viewDraftVersion"),
90761
+ position: "top"
90762
+ }
90763
+ }, props));
90764
+ };
90765
+ var ResetDraftButton = function ResetDraftButton(props) {
90766
+ return /*#__PURE__*/React__default["default"].createElement(neetoui.Button, _extends$3({
90767
+ "data-cy": "draft-button",
90768
+ "data-testid": "draft-button",
90769
+ disabled: isResetting,
90770
+ icon: neetoIcons.Undo,
90771
+ loading: isResetting,
90772
+ style: "secondary",
90773
+ tooltipProps: {
90774
+ content: t("neetoCommons.publishBlock.deleteDraftVersion"),
90775
+ position: "top"
90776
+ },
90777
+ onClick: function onClick() {
90778
+ return setIsResetAlertOpen(true);
90779
+ }
90780
+ }, props));
90781
+ };
90782
+ var PublishButton = function PublishButton(props) {
90783
+ return /*#__PURE__*/React__default["default"].createElement(neetoui.Button, _extends$3({
90784
+ "data-cy": "publish-button",
90785
+ "data-testid": "publish-button",
90786
+ label: t("neetoCommons.common.actions.publish"),
90787
+ loading: isPublishing,
90788
+ onClick: function onClick() {
90789
+ return publishForm(entityId);
90790
+ }
90791
+ }, props, {
90792
+ disabled: isPublishing || props.disabled
90793
+ }));
90794
+ };
90795
+ var PublishPreviewButton = function PublishPreviewButton(props) {
90796
+ return /*#__PURE__*/React__default["default"].createElement(neetoui.Button, _extends$3({
90797
+ className: classnames({
90798
+ "pointer-events-none": props.disabled
90799
+ }),
90800
+ "data-cy": "publish-preview-button",
90801
+ "data-testid": "publish-preview-button",
90802
+ icon: neetoIcons.ExternalLink,
90803
+ target: "_blank",
90804
+ tooltipProps: {
90805
+ content: t("neetoCommons.publishBlock.viewPublishedVersion"),
90806
+ position: "top"
90807
+ }
90808
+ }, props));
90809
+ };
90810
+ var draftBlockButtons = renderDraftButtons({
90811
+ ViewDraftButton: ViewDraftButton,
90812
+ ResetDraftButton: ResetDraftButton
90813
+ });
90814
+ return /*#__PURE__*/React__default["default"].createElement("div", {
90815
+ className: "neeto-commons-publish-block"
90816
+ }, draftBlockButtons && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
90817
+ className: "flex items-center gap-2"
90818
+ }, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
90819
+ className: "neeto-ui-text-gray-700",
90820
+ lineHeight: "normal",
90821
+ style: "body2"
90822
+ }, t("neetoCommons.common.actions.draft")), /*#__PURE__*/React__default["default"].createElement("div", {
90823
+ className: "space-x-1"
90824
+ }, draftBlockButtons)), /*#__PURE__*/React__default["default"].createElement("div", {
90825
+ className: "neeto-ui-bg-gray-300 h-full w-px"
90826
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
90827
+ className: "neeto-commons-publish-block__action-btn"
90828
+ }, renderPublishButtons({
90829
+ PublishButton: PublishButton,
90830
+ PublishPreviewButton: PublishPreviewButton
90831
+ })), /*#__PURE__*/React__default["default"].createElement(neetoui.Alert, _extends$3({
90832
+ "data-cy": "reset-alert",
90833
+ "data-testid": "reset-alert",
90834
+ isOpen: isResetAlertOpen,
90835
+ isSubmitting: isResetting,
90836
+ submitButtonLabel: t("neetoCommons.common.actions.reset"),
90837
+ onClose: function onClose() {
90838
+ return setIsResetAlertOpen(false);
90839
+ },
90840
+ onSubmit: handleReset
90841
+ }, resetAlertProps)));
90842
+ };
90843
+
90756
90844
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
90757
90845
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
90758
90846
  var REMOVE_SELECT_DOWN_ARROW = {
@@ -91260,14 +91348,14 @@ var Form = function Form(_ref) {
91260
91348
  }, /*#__PURE__*/React__default["default"].createElement("div", {
91261
91349
  className: "mt-1 flex w-16 items-center justify-start"
91262
91350
  }, /*#__PURE__*/React__default["default"].createElement(formik$1.Checkbox, {
91351
+ "aria-label": "wdays[".concat(index, "].available"),
91263
91352
  checked: values.wdays[index].available,
91264
91353
  "data-cy": joinHyphenCase(day, "weekly-hours-checkbox"),
91265
91354
  id: "day",
91266
91355
  name: "wdays[".concat(index, "].available"),
91267
91356
  onChange: function onChange() {
91268
91357
  return handleCheckbox(setFieldValue, values);
91269
- },
91270
- "aria-label": "wdays[".concat(index, "].available")
91358
+ }
91271
91359
  }), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
91272
91360
  className: "ml-2 capitalize",
91273
91361
  component: "span",
@@ -91275,10 +91363,10 @@ var Form = function Form(_ref) {
91275
91363
  style: "body2",
91276
91364
  weight: "semibold"
91277
91365
  }, t("neetoCommons.schedule.days.".concat(day)))), /*#__PURE__*/React__default["default"].createElement(ScheduleRow, {
91366
+ day: day,
91278
91367
  setFieldValue: setFieldValue,
91279
91368
  values: values,
91280
- wdayIndex: index,
91281
- day: day
91369
+ wdayIndex: index
91282
91370
  }), /*#__PURE__*/React__default["default"].createElement(neetoui.Dropdown, {
91283
91371
  closeOnSelect: true,
91284
91372
  buttonStyle: "secondary",
@@ -91309,9 +91397,9 @@ var Form = function Form(_ref) {
91309
91397
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Label, {
91310
91398
  className: "w-full cursor-pointer capitalize"
91311
91399
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Checkbox, {
91400
+ checked: wdaysToCopy.includes(day),
91312
91401
  id: day,
91313
91402
  label: t("neetoCommons.schedule.days.".concat(day)),
91314
- checked: wdaysToCopy.includes(day),
91315
91403
  onChange: function onChange(e) {
91316
91404
  return handleCopyChange(e, day);
91317
91405
  }
@@ -91357,14 +91445,14 @@ var Fields = function Fields(_ref) {
91357
91445
  className: "space-y-4"
91358
91446
  }, values.wdays.map(function (item, index) {
91359
91447
  return /*#__PURE__*/React__default["default"].createElement(Form, {
91448
+ day: DAYS.find(function (day) {
91449
+ return day === item.wday;
91450
+ }),
91360
91451
  handleCopy: handleCopy,
91361
91452
  index: index,
91362
91453
  key: item.wday,
91363
91454
  setFieldValue: setFieldValue,
91364
- values: values,
91365
- day: DAYS.find(function (day) {
91366
- return day === item.wday;
91367
- })
91455
+ values: values
91368
91456
  });
91369
91457
  }));
91370
91458
  }
@@ -91403,8 +91491,8 @@ var Header = function Header(_ref) {
91403
91491
  }, isEditing ? /*#__PURE__*/React__default["default"].createElement("div", {
91404
91492
  className: "flex items-center space-x-4"
91405
91493
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
91406
- label: !dirty ? t("neetoCommons.common.actions.cancel") : t("neetoCommons.common.actions.reset"),
91407
91494
  style: "secondary",
91495
+ label: !dirty ? t("neetoCommons.common.actions.cancel") : t("neetoCommons.common.actions.reset"),
91408
91496
  onClick: handleReset
91409
91497
  }), /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
91410
91498
  "data-cy": "weekly-hours-save-changes-button",
@@ -91419,11 +91507,11 @@ var Header = function Header(_ref) {
91419
91507
  style: "h3",
91420
91508
  weight: "semibold"
91421
91509
  }, t("neetoCommons.schedule.weeklyHours")), /*#__PURE__*/React__default["default"].createElement(neetoui.Dropdown, {
91510
+ icon: neetoIcons.MenuVertical,
91422
91511
  buttonProps: {
91423
91512
  style: "text",
91424
91513
  "data-testid": "weekly-hours-edit-dropdown-icon"
91425
- },
91426
- icon: neetoIcons.MenuVertical
91514
+ }
91427
91515
  }, /*#__PURE__*/React__default["default"].createElement(Menu, null, /*#__PURE__*/React__default["default"].createElement(MenuItem.Button, {
91428
91516
  "data-cy": "weekly-hours-edit-link",
91429
91517
  onClick: function onClick() {
@@ -91504,9 +91592,9 @@ var Schedule = /*#__PURE__*/React.forwardRef(function (_ref, scheduleRef) {
91504
91592
  isEditing: isEditing,
91505
91593
  setIsEditing: setIsEditing
91506
91594
  }), isEditing || !showHeader ? /*#__PURE__*/React__default["default"].createElement(formik.Form, null, /*#__PURE__*/React__default["default"].createElement(Fields, {
91507
- scheduleRef: scheduleRef,
91508
91595
  handleCopy: handleCopy,
91509
- handleValuesChanged: handleValuesChanged
91596
+ handleValuesChanged: handleValuesChanged,
91597
+ scheduleRef: scheduleRef
91510
91598
  })) : /*#__PURE__*/React__default["default"].createElement(DisplayAvailability, {
91511
91599
  periods: periods
91512
91600
  }))));
@@ -91562,8 +91650,8 @@ var buildProductLogo = function buildProductLogo() {
91562
91650
  }
91563
91651
  return {
91564
91652
  logo: /*#__PURE__*/React__default["default"].createElement(ProductLogo, {
91565
- width: PRODUCT_LOGO_WIDTH,
91566
- height: PRODUCT_LOGO_HEIGHT
91653
+ height: PRODUCT_LOGO_HEIGHT,
91654
+ width: PRODUCT_LOGO_WIDTH
91567
91655
  })
91568
91656
  };
91569
91657
  };
@@ -91592,9 +91680,9 @@ var Sidebar = function Sidebar(_ref) {
91592
91680
  window.location.href = "/logout";
91593
91681
  };
91594
91682
  var openChatWidget = function openChatWidget() {
91595
- var _window, _window$NeetoChat, _window2, _window2$NeetoChat;
91596
- (_window = window) === null || _window === void 0 ? void 0 : (_window$NeetoChat = _window.NeetoChat) === null || _window$NeetoChat === void 0 ? void 0 : _window$NeetoChat.contextualHelp.openWidget();
91597
- (_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$NeetoChat = _window2.NeetoChat) === null || _window2$NeetoChat === void 0 ? void 0 : _window2$NeetoChat.contextualHelp.maximizeWidget();
91683
+ var _window$NeetoChat, _window$NeetoChat$con, _window$NeetoChat2, _window$NeetoChat2$co;
91684
+ (_window$NeetoChat = window.NeetoChat) === null || _window$NeetoChat === void 0 ? void 0 : (_window$NeetoChat$con = _window$NeetoChat.contextualHelp) === null || _window$NeetoChat$con === void 0 ? void 0 : _window$NeetoChat$con.maximizeWidget();
91685
+ (_window$NeetoChat2 = window.NeetoChat) === null || _window$NeetoChat2 === void 0 ? void 0 : (_window$NeetoChat2$co = _window$NeetoChat2.contextualHelp) === null || _window$NeetoChat2$co === void 0 ? void 0 : _window$NeetoChat2$co.openWidget();
91598
91686
  };
91599
91687
  var profileInfo = ramda.mergeLeft(profileInfoOverrides, {
91600
91688
  name: "".concat(globalProps.user.firstName, " ").concat(globalProps.user.lastName),
@@ -91628,23 +91716,28 @@ var Sidebar = function Sidebar(_ref) {
91628
91716
  isCollapsed: true,
91629
91717
  appName: "neeto".concat(capitalize(appName)),
91630
91718
  navLinks: navLinks,
91631
- profileInfo: profileInfo,
91632
91719
  organizationInfo: organizationInfo,
91720
+ profileInfo: profileInfo,
91721
+ showAppSwitcher: showAppSwitcher,
91633
91722
  onAppSwitcherToggle: function onAppSwitcherToggle() {
91634
91723
  return setIsAppSwitcherOpen(ramda.not);
91635
- },
91636
- showAppSwitcher: showAppSwitcher
91724
+ }
91637
91725
  }), showAppSwitcher && /*#__PURE__*/React__default["default"].createElement(layouts.AppSwitcher, {
91726
+ activeApp: capitalize(appName),
91727
+ environment: process.env.RAILS_ENV,
91638
91728
  isOpen: isAppSwitcherOpen,
91729
+ neetoApps: globalProps.neetoApps,
91639
91730
  onClose: function onClose() {
91640
91731
  return setIsAppSwitcherOpen(false);
91641
- },
91642
- neetoApps: globalProps.neetoApps,
91643
- activeApp: capitalize(appName),
91644
- environment: process.env.RAILS_ENV
91732
+ }
91645
91733
  }));
91646
91734
  };
91647
91735
 
91736
+ var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
91737
+
91738
+ var css$1 = ".neeto-commons-publish-block{align-items:center;display:flex;gap:12px;justify-content:flex-end}.neeto-commons-publish-block__action-btn{align-items:center;display:inline-flex;flex-direction:row;gap:1px;justify-content:center}.neeto-commons-publish-block__action-btn>.neeto-ui-btn:first-child{border-bottom-right-radius:0;border-top-right-radius:0}.neeto-commons-publish-block__action-btn>.neeto-ui-btn:last-child{border-bottom-left-radius:0;border-top-left-radius:0}";
91739
+ n(css$1,{});
91740
+
91648
91741
  var NeetoWidget = {
91649
91742
  EmbedCode: EmbedCodeQueryClient,
91650
91743
  WIDGET_TYPES: WIDGET_TYPES
@@ -91903,10 +91996,11 @@ var handleMetaClick = ramda.curry(function (history, params, event) {
91903
91996
 
91904
91997
  var withTitle = function withTitle(Component) {
91905
91998
  var title = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
91906
- return function PageTitle(props) {
91999
+ var PageTitle = function PageTitle(props) {
91907
92000
  var pageTitle = title ? "".concat(title, " | ").concat(globalProps.appName) : globalProps.appName;
91908
92001
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(reactHelmet.Helmet, null, /*#__PURE__*/React__default["default"].createElement("title", null, pageTitle)), /*#__PURE__*/React__default["default"].createElement(Component, props));
91909
92002
  };
92003
+ return PageTitle;
91910
92004
  };
91911
92005
 
91912
92006
  var setWithoutModifyingActions = function setWithoutModifyingActions(set) {
@@ -92025,7 +92119,7 @@ var LOGIN_FORM_VALIDATION_SCHEMA = yup__namespace.object().shape({
92025
92119
  password: yup__namespace.string().required("Password is required")
92026
92120
  });
92027
92121
 
92028
- function SignInForm(_ref) {
92122
+ var SignInForm = function SignInForm(_ref) {
92029
92123
  var handleFormSubmit = _ref.handleFormSubmit;
92030
92124
  var emailFromSearchParams = function emailFromSearchParams() {
92031
92125
  return new URLSearchParams(window.location.search).get("email") || "";
@@ -92046,30 +92140,30 @@ function SignInForm(_ref) {
92046
92140
  className: "mb-6"
92047
92141
  }, /*#__PURE__*/React__default["default"].createElement(formik$1.Input, {
92048
92142
  required: true,
92049
- label: "Email",
92050
- name: "email",
92143
+ "data-cy": "login-email-text-field",
92051
92144
  "data-test-id": "login-email",
92052
- "data-cy": "login-email-text-field"
92145
+ label: "Email",
92146
+ name: "email"
92053
92147
  })), /*#__PURE__*/React__default["default"].createElement("div", {
92054
92148
  className: "mb-6"
92055
92149
  }, /*#__PURE__*/React__default["default"].createElement(formik$1.Input, {
92056
92150
  required: true,
92057
- type: "password",
92151
+ "data-cy": "login-password-text-field",
92152
+ "data-test-id": "login-password",
92058
92153
  label: "Password",
92059
92154
  name: "password",
92060
- "data-test-id": "login-password",
92061
- "data-cy": "login-password-text-field"
92155
+ type: "password"
92062
92156
  })), /*#__PURE__*/React__default["default"].createElement(formik$1.Button, {
92063
- style: "secondary",
92064
- type: "submit",
92157
+ fullWidth: true,
92158
+ "data-cy": "login-submit-button",
92065
92159
  "data-test-id": "login-submit-button",
92066
92160
  label: "Login",
92067
- fullWidth: true,
92068
- "data-cy": "login-submit-button"
92161
+ style: "secondary",
92162
+ type: "submit"
92069
92163
  })));
92070
- }
92164
+ };
92071
92165
 
92072
- function SignIn(_ref) {
92166
+ var SignIn = function SignIn(_ref) {
92073
92167
  var handleSubmit = _ref.handleSubmit;
92074
92168
  var _useState = React.useState(null),
92075
92169
  _useState2 = _slicedToArray(_useState, 2),
@@ -92140,19 +92234,19 @@ function SignIn(_ref) {
92140
92234
  }, "Login to your", " ", /*#__PURE__*/React__default["default"].createElement("b", {
92141
92235
  "data-test-id": "organization-name"
92142
92236
  }, globalProps.organization.name), " ", "account"), /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
92143
- style: "primary",
92144
- size: "large",
92145
- label: "Login as Oliver",
92237
+ fullWidth: true,
92146
92238
  disabled: isSubmitting,
92239
+ label: "Login as Oliver",
92147
92240
  loading: isSubmitting,
92148
- onClick: loginAsOliver,
92149
- fullWidth: true
92241
+ size: "large",
92242
+ style: "primary",
92243
+ onClick: loginAsOliver
92150
92244
  }), /*#__PURE__*/React__default["default"].createElement("div", {
92151
92245
  className: "my-6 text-center text-lg font-semibold"
92152
92246
  }, "OR"), /*#__PURE__*/React__default["default"].createElement(SignInForm, {
92153
92247
  handleFormSubmit: handleFormSubmit
92154
92248
  })));
92155
- }
92249
+ };
92156
92250
 
92157
92251
  var _1cExports = require_1c();
92158
92252
 
@@ -95412,6 +95506,7 @@ exports.IpRestriction = IpRestriction;
95412
95506
  exports.LoginPage = SignIn;
95413
95507
  exports.NeetoWidget = NeetoWidget;
95414
95508
  exports.PrivateRoute = PrivateRoute;
95509
+ exports.PublishBlock = PublishBlock;
95415
95510
  exports.Schedule = Schedule;
95416
95511
  exports.Sidebar = Sidebar;
95417
95512
  exports.TimeFormat = TimeFormat;